From: Vito Macchia Date: Fri, 27 Nov 2020 18:26:45 +0000 (+0100) Subject: Built motion from commit 129fb4d95212661e48f0db455e75d668addbaddf. Version 3.0.0... X-Git-Url: http://repos.xcallymotion.com/?a=commitdiff_plain;h=b0f676957066c6b640b028cd1e9bd748fc79dd05;p=motion-next.git Built motion from commit 129fb4d95212661e48f0db455e75d668addbaddf. Version 3.0.0-alpha.1 --- diff --git a/apidoc/api_data.js b/apidoc/api_data.js index ed6fd46..e776dc3 100644 --- a/apidoc/api_data.js +++ b/apidoc/api_data.js @@ -92,7 +92,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/analytics/custom_reports -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/analytics/custom_reports -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -284,7 +284,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/analytics/default_reports -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/analytics/default_reports -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -476,7 +476,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/analytics/extracted_reports -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/analytics/extracted_reports -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -760,7 +760,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/analytics/field_reports -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/analytics/field_reports -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -923,7 +923,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/analytics/metrics -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/analytics/metrics -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -1047,7 +1047,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/analytics/tree_reports -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/analytics/tree_reports -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -1442,7 +1442,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/automations -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/automations -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -1566,65 +1566,37 @@ define({ "api": [ "Body": [ { "group": "Body", - "type": "Virtual", - "optional": true, - "field": "name", - "description": "" - }, - { - "group": "Body", "type": "String", "optional": false, - "field": "action", - "description": "

Allowed values: contactManager, integration, motionbar, jscripty, urlForward, browser, bot, script

" - }, - { - "group": "Body", - "type": "String", - "optional": true, - "field": "data1", - "description": "

contactManager[ListId], integration[intName(zendesk)], motionbar[Popup(0),URL(1),WinApp(2)], urlForward[GET,POST], browser[TemplateId(0),URL(1)]

" - }, - { - "group": "Body", - "type": "String", - "optional": true, - "field": "data2", - "description": "

integration[AccountId], motionbar[TemplateId,URL,WinAppPath], urlForward[URL]

" - }, - { - "group": "Body", - "type": "String", - "optional": true, - "field": "data3", - "description": "

motionbar[NULL,NULL,WinAppArguments]

" + "field": "name", + "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "data4", + "field": "channel", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "data5", + "field": "description", "description": "" }, { "group": "Body", - "type": "String", + "type": "Boolean", "optional": true, - "field": "data6", + "field": "status", "description": "" }, { "group": "Body", - "type": "Text", + "type": "Integer", "optional": true, - "field": "data7", + "field": "timeout", "description": "" } ] @@ -1653,30 +1625,37 @@ define({ "api": [ "Body": [ { "group": "Body", - "type": "Virtual", - "optional": true, + "type": "String", + "optional": false, "field": "name", "description": "" }, { "group": "Body", "type": "String", - "optional": false, - "field": "field", + "optional": true, + "field": "channel", "description": "" }, { "group": "Body", "type": "String", - "optional": false, - "field": "operator", + "optional": true, + "field": "description", "description": "" }, { "group": "Body", - "type": "String", - "optional": false, - "field": "value", + "type": "Boolean", + "optional": true, + "field": "status", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "timeout", "description": "" } ] @@ -1910,7 +1889,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/chat/groups -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/chat/groups -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -2201,7 +2180,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/chat/interactions -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/chat/interactions -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -2571,23 +2550,167 @@ define({ "api": [ "Body": [ { "group": "Body", + "type": "Boolean", + "optional": true, + "field": "closed", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "ratingValue", + "description": "" + }, + { + "group": "Body", + "type": "String", + "allowedValues": [ + "\"star\"", + "\"thumb\"" + ], + "optional": true, + "field": "ratingType", + "description": "" + }, + { + "group": "Body", "type": "Text", - "optional": false, - "field": "body", + "optional": true, + "field": "ratingMessage", "description": "" }, { "group": "Body", - "type": "Boolean", + "type": "Text", "optional": true, - "field": "read", + "field": "pathTranscript", "description": "" }, { "group": "Body", - "type": "Boolean", + "type": "String", "optional": true, - "field": "secret", + "field": "mailTranscript", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "closedAt", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "disposition", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "secondDisposition", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "thirdDisposition", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "note", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "browserName", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "browserVersion", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "osName", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "osVersion", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "deviceModel", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "deviceVendor", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "deviceType", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "referer", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "customerIp", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "formData", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "read1stAt", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "lastMsgAt", "description": "" }, { @@ -2598,28 +2721,28 @@ define({ "api": [ "\"out\"" ], "optional": false, - "field": "direction", + "field": "lastMsgDirection", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "readAt", + "field": "closeReason", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "providerName", + "field": "customerPort", "description": "" }, { "group": "Body", "type": "Text", "optional": true, - "field": "providerResponse", + "field": "vidaooSessionId", "description": "" } ] @@ -2781,7 +2904,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/chat/internal/messages -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/chat/internal/messages -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -2926,7 +3049,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/chat/messages -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/chat/messages -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -3093,7 +3216,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/chat/offline_messages -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/chat/offline_messages -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -3214,7 +3337,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/chat/proactive_actions -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/chat/proactive_actions -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -3334,7 +3457,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/chat/reports/queue -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/chat/reports/queue -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -3563,7 +3686,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/chat/queues -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/chat/queues -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -3842,7 +3965,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/chat/reports/transfer -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/chat/reports/transfer -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -4000,7 +4123,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/chat/websites -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/chat/websites -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -4802,28 +4925,603 @@ define({ "api": [ "group": "Body", "type": "String", "optional": false, + "field": "name", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": false, + "field": "address", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "description", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "mapKey", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "mapKeyOffline", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": false, "field": "key", "description": "" }, { "group": "Body", + "type": "String", + "optional": true, + "field": "agentAlias", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "customerAlias", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": false, + "field": "color", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": false, + "field": "color_button", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": false, + "field": "textColor", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "fontSize", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "remote", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "animation", + "description": "" + }, + { + "group": "Body", + "type": "String", + "allowedValues": [ + "\"rounded\"", + "\"squared\"" + ], + "optional": true, + "field": "header_shape", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "header_online", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "start_chat_button", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "offline_chat_button", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "header_offline", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "download_transcript", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "timeout", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "whiteLabel", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "defaultWhiteLabel", + "description": "" + }, + { + "group": "Body", "type": "Text", + "optional": true, + "field": "sitepic", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "closingQuestion", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "formSubmitSuccessMessage", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "formSubmitFailureMessage", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "noteTitle", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "placeholderMessage", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "closingMessage", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "closingMessageButton", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "skipMessageButton", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "conditionAgreement", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "enableRating", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "enableFeedback", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "enableSendButton", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "feedbackTitle", + "description": "" + }, + { + "group": "Body", + "type": "String", + "allowedValues": [ + "\"star\"", + "\"thumb\"" + ], + "optional": true, + "field": "ratingType", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "ratingStarsNumber", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "onlineForm", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "offlineForm", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "token", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "autoclose", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "enableCustomerWriting", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "forwardTranscript", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "forwardTranscriptMessage", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "forwardOffline", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "forwardOfflineAddress", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "waitingTitle", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "waitingMessage", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "offlineMessageSubject", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "offlineMessageBody", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "enableUnmanagedNote", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "unmanagedMessage", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "skipUnmanaged", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "sendUnmanaged", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "enableCustomerAttachment", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "enableCustomerCheckmarks", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "agentAvatar", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "showAgentAvatar", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "timezone", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "notificationTemplate", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "notificationSound", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "notificationShake", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "hideWhenOffline", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "agentIdentifier", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "waitForTheAssignedAgent", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "alignment", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "verticalAlignment", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "messagesAlignment", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "defaultTitle", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "customerAvatar", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "showCustomerAvatar", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "messageFontSize", + "description": "" + }, + { + "group": "Body", + "type": "String", "optional": false, - "field": "value", + "field": "backgroundColor", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "queueTransfer", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "queueTransferTimeout", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "agentTransfer", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "agentTransferTimeout", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "description", + "field": "systemAlias", "description": "" }, { "group": "Body", - "type": "Virtual", + "type": "Text", "optional": true, - "field": "name", + "field": "systemAvatar", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "mandatoryDispositionPauseId", + "description": "

Status to put when mandatory disposition is enabled

" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "mandatoryDisposition", + "description": "

Enabled/disables mandatory dispo on a queue

" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "vidaooEscalation", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "vidaooApiKey", "description": "" } ] @@ -4852,37 +5550,605 @@ define({ "api": [ "Body": [ { "group": "Body", - "type": "Integer", + "type": "String", "optional": false, - "field": "priority", + "field": "name", "description": "" }, { "group": "Body", "type": "String", "optional": false, - "field": "app", + "field": "address", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "description", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "mapKey", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "mapKeyOffline", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": false, + "field": "key", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "agentAlias", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "customerAlias", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": false, + "field": "color", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": false, + "field": "color_button", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": false, + "field": "textColor", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "fontSize", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "remote", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "animation", + "description": "" + }, + { + "group": "Body", + "type": "String", + "allowedValues": [ + "\"rounded\"", + "\"squared\"" + ], + "optional": true, + "field": "header_shape", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "header_online", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "start_chat_button", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "offline_chat_button", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "header_offline", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "download_transcript", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "timeout", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "whiteLabel", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "defaultWhiteLabel", "description": "" }, { "group": "Body", "type": "Text", "optional": true, - "field": "appdata", + "field": "sitepic", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "description", + "field": "closingQuestion", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "interval", + "field": "formSubmitSuccessMessage", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "formSubmitFailureMessage", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "noteTitle", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "placeholderMessage", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "closingMessage", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "closingMessageButton", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "skipMessageButton", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "conditionAgreement", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "enableRating", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "enableFeedback", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "enableSendButton", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "feedbackTitle", + "description": "" + }, + { + "group": "Body", + "type": "String", + "allowedValues": [ + "\"star\"", + "\"thumb\"" + ], + "optional": true, + "field": "ratingType", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "ratingStarsNumber", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "onlineForm", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "offlineForm", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "token", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "autoclose", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "enableCustomerWriting", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "forwardTranscript", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "forwardTranscriptMessage", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "forwardOffline", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "forwardOfflineAddress", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "waitingTitle", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "waitingMessage", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "offlineMessageSubject", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "offlineMessageBody", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "enableUnmanagedNote", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "unmanagedMessage", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "skipUnmanaged", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "sendUnmanaged", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "enableCustomerAttachment", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "enableCustomerCheckmarks", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "agentAvatar", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "showAgentAvatar", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "timezone", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "notificationTemplate", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "notificationSound", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "notificationShake", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "hideWhenOffline", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "agentIdentifier", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "waitForTheAssignedAgent", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "alignment", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "verticalAlignment", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "messagesAlignment", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "defaultTitle", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "customerAvatar", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "showCustomerAvatar", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "messageFontSize", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": false, + "field": "backgroundColor", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "queueTransfer", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "queueTransferTimeout", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "agentTransfer", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "agentTransferTimeout", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "systemAlias", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "systemAvatar", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "mandatoryDispositionPauseId", + "description": "

Status to put when mandatory disposition is enabled

" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "mandatoryDisposition", + "description": "

Enabled/disables mandatory dispo on a queue

" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "vidaooEscalation", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "vidaooApiKey", "description": "" } ] @@ -4955,13 +6221,8 @@ define({ "api": [ { "group": "Body", "type": "String", - "allowedValues": [ - "\"first\"", - "\"second\"", - "\"third\"" - ], "optional": false, - "field": "level", + "field": "address", "description": "" }, { @@ -4970,36 +6231,587 @@ define({ "api": [ "optional": true, "field": "description", "description": "" - } - ] - } - }, - "description": "

Motion will return a HTTP status code 201 upon success.

Motion renders the resulting JSON representation in the response body.

", - "version": "0.0.0", - "filename": "/home/vito/Development/MOTION_V3/motion-server/src/api/chatWebsite/index.js", - "groupTitle": "Chat_Websites" - }, - { - "type": "post", - "url": "/api/chat/websites/{id}/dispositions", - "title": "Creates new disposition", - "examples": [ - { - "title": "Example usage:", - "content": "curl https://{domain}/api/chat/websites/{id}/dispositions -d '{\"name\": \"vip\"}' -H 'Content-Type: application/json' -v -u {name}:{password} -X POST", - "type": "json" - } - ], - "name": "addDisposition", - "group": "Chat_Websites", - "parameter": { - "fields": { - "Body": [ + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "mapKey", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "mapKeyOffline", + "description": "" + }, { "group": "Body", "type": "String", "optional": false, - "field": "name", + "field": "key", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "agentAlias", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "customerAlias", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": false, + "field": "color", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": false, + "field": "color_button", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": false, + "field": "textColor", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "fontSize", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "remote", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "animation", + "description": "" + }, + { + "group": "Body", + "type": "String", + "allowedValues": [ + "\"rounded\"", + "\"squared\"" + ], + "optional": true, + "field": "header_shape", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "header_online", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "start_chat_button", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "offline_chat_button", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "header_offline", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "download_transcript", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "timeout", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "whiteLabel", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "defaultWhiteLabel", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "sitepic", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "closingQuestion", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "formSubmitSuccessMessage", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "formSubmitFailureMessage", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "noteTitle", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "placeholderMessage", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "closingMessage", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "closingMessageButton", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "skipMessageButton", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "conditionAgreement", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "enableRating", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "enableFeedback", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "enableSendButton", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "feedbackTitle", + "description": "" + }, + { + "group": "Body", + "type": "String", + "allowedValues": [ + "\"star\"", + "\"thumb\"" + ], + "optional": true, + "field": "ratingType", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "ratingStarsNumber", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "onlineForm", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "offlineForm", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "token", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "autoclose", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "enableCustomerWriting", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "forwardTranscript", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "forwardTranscriptMessage", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "forwardOffline", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "forwardOfflineAddress", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "waitingTitle", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "waitingMessage", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "offlineMessageSubject", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "offlineMessageBody", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "enableUnmanagedNote", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "unmanagedMessage", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "skipUnmanaged", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "sendUnmanaged", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "enableCustomerAttachment", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "enableCustomerCheckmarks", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "agentAvatar", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "showAgentAvatar", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "timezone", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "notificationTemplate", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "notificationSound", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "notificationShake", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "hideWhenOffline", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "agentIdentifier", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "waitForTheAssignedAgent", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "alignment", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "verticalAlignment", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "messagesAlignment", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "defaultTitle", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "customerAvatar", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "showCustomerAvatar", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "messageFontSize", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": false, + "field": "backgroundColor", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "queueTransfer", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "queueTransferTimeout", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "agentTransfer", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "agentTransferTimeout", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "systemAlias", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "systemAvatar", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "mandatoryDispositionPauseId", + "description": "

Status to put when mandatory disposition is enabled

" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "mandatoryDisposition", + "description": "

Enabled/disables mandatory dispo on a queue

" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "vidaooEscalation", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "vidaooApiKey", "description": "" } ] @@ -5028,16 +6840,265 @@ define({ "api": [ "Body": [ { "group": "Body", + "type": "String", + "optional": false, + "field": "name", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": false, + "field": "address", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "description", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "mapKey", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "mapKeyOffline", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": false, + "field": "key", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "agentAlias", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "customerAlias", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": false, + "field": "color", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": false, + "field": "color_button", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": false, + "field": "textColor", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "fontSize", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "remote", + "description": "" + }, + { + "group": "Body", "type": "Boolean", "optional": true, - "field": "closed", + "field": "animation", + "description": "" + }, + { + "group": "Body", + "type": "String", + "allowedValues": [ + "\"rounded\"", + "\"squared\"" + ], + "optional": true, + "field": "header_shape", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "header_online", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "start_chat_button", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "offline_chat_button", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "header_offline", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "download_transcript", "description": "" }, { "group": "Body", "type": "Integer", "optional": true, - "field": "ratingValue", + "field": "timeout", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "whiteLabel", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "defaultWhiteLabel", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "sitepic", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "closingQuestion", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "formSubmitSuccessMessage", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "formSubmitFailureMessage", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "noteTitle", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "placeholderMessage", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "closingMessage", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "closingMessageButton", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "skipMessageButton", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "conditionAgreement", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "enableRating", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "enableFeedback", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "enableSendButton", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "feedbackTitle", "description": "" }, { @@ -5053,174 +7114,331 @@ define({ "api": [ }, { "group": "Body", + "type": "Integer", + "optional": true, + "field": "ratingStarsNumber", + "description": "" + }, + { + "group": "Body", "type": "Text", "optional": true, - "field": "ratingMessage", + "field": "onlineForm", "description": "" }, { "group": "Body", "type": "Text", "optional": true, - "field": "pathTranscript", + "field": "offlineForm", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "mailTranscript", + "field": "token", "description": "" }, { "group": "Body", - "type": "String", + "type": "Boolean", "optional": true, - "field": "closedAt", + "field": "autoclose", "description": "" }, { "group": "Body", - "type": "String", + "type": "Boolean", "optional": true, - "field": "disposition", + "field": "enableCustomerWriting", "description": "" }, { "group": "Body", - "type": "String", + "type": "Boolean", "optional": true, - "field": "secondDisposition", + "field": "forwardTranscript", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "thirdDisposition", + "field": "forwardTranscriptMessage", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "forwardOffline", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "note", + "field": "forwardOfflineAddress", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "browserName", + "field": "waitingTitle", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "browserVersion", + "field": "waitingMessage", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "osName", + "field": "offlineMessageSubject", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "osVersion", + "field": "offlineMessageBody", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "enableUnmanagedNote", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "deviceModel", + "field": "unmanagedMessage", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "deviceVendor", + "field": "skipUnmanaged", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "deviceType", + "field": "sendUnmanaged", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "enableCustomerAttachment", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "enableCustomerCheckmarks", "description": "" }, { "group": "Body", "type": "Text", "optional": true, - "field": "referer", + "field": "agentAvatar", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "showAgentAvatar", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "customerIp", + "field": "timezone", "description": "" }, { "group": "Body", "type": "Text", "optional": true, - "field": "formData", + "field": "notificationTemplate", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "notificationSound", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "notificationShake", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "hideWhenOffline", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "read1stAt", + "field": "agentIdentifier", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "waitForTheAssignedAgent", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "lastMsgAt", + "field": "alignment", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "verticalAlignment", "description": "" }, { "group": "Body", "type": "String", - "allowedValues": [ - "\"in\"", - "\"out\"" - ], - "optional": false, - "field": "lastMsgDirection", + "optional": true, + "field": "messagesAlignment", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "closeReason", + "field": "defaultTitle", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "customerAvatar", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "showCustomerAvatar", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "messageFontSize", "description": "" }, { "group": "Body", "type": "String", + "optional": false, + "field": "backgroundColor", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", "optional": true, - "field": "customerPort", + "field": "queueTransfer", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "queueTransferTimeout", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "agentTransfer", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "agentTransferTimeout", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "systemAlias", "description": "" }, { "group": "Body", "type": "Text", "optional": true, - "field": "vidaooSessionId", + "field": "systemAvatar", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "mandatoryDispositionPauseId", + "description": "

Status to put when mandatory disposition is enabled

" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "mandatoryDisposition", + "description": "

Enabled/disables mandatory dispo on a queue

" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "vidaooEscalation", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "vidaooApiKey", "description": "" } ] @@ -5275,19 +7493,138 @@ define({ "api": [ { "group": "Body", "type": "String", + "optional": false, + "field": "address", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "description", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "mapKey", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "mapKeyOffline", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": false, + "field": "key", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "agentAlias", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "customerAlias", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": false, + "field": "color", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": false, + "field": "color_button", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": false, + "field": "textColor", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "fontSize", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "remote", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "animation", + "description": "" + }, + { + "group": "Body", + "type": "String", "allowedValues": [ - "\"mouseOver\"", - "\"timeout\"" + "\"rounded\"", + "\"squared\"" ], "optional": true, - "field": "type", + "field": "header_shape", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "selector", + "field": "header_online", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "start_chat_button", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "offline_chat_button", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "header_offline", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "download_transcript", "description": "" }, { @@ -5296,6 +7633,458 @@ define({ "api": [ "optional": true, "field": "timeout", "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "whiteLabel", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "defaultWhiteLabel", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "sitepic", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "closingQuestion", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "formSubmitSuccessMessage", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "formSubmitFailureMessage", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "noteTitle", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "placeholderMessage", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "closingMessage", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "closingMessageButton", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "skipMessageButton", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "conditionAgreement", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "enableRating", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "enableFeedback", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "enableSendButton", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "feedbackTitle", + "description": "" + }, + { + "group": "Body", + "type": "String", + "allowedValues": [ + "\"star\"", + "\"thumb\"" + ], + "optional": true, + "field": "ratingType", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "ratingStarsNumber", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "onlineForm", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "offlineForm", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "token", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "autoclose", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "enableCustomerWriting", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "forwardTranscript", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "forwardTranscriptMessage", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "forwardOffline", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "forwardOfflineAddress", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "waitingTitle", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "waitingMessage", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "offlineMessageSubject", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "offlineMessageBody", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "enableUnmanagedNote", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "unmanagedMessage", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "skipUnmanaged", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "sendUnmanaged", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "enableCustomerAttachment", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "enableCustomerCheckmarks", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "agentAvatar", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "showAgentAvatar", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "timezone", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "notificationTemplate", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "notificationSound", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "notificationShake", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "hideWhenOffline", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "agentIdentifier", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "waitForTheAssignedAgent", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "alignment", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "verticalAlignment", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "messagesAlignment", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "defaultTitle", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "customerAvatar", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "showCustomerAvatar", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "messageFontSize", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": false, + "field": "backgroundColor", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "queueTransfer", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "queueTransferTimeout", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "agentTransfer", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "agentTransferTimeout", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "systemAlias", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "systemAvatar", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "mandatoryDispositionPauseId", + "description": "

Status to put when mandatory disposition is enabled

" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "mandatoryDisposition", + "description": "

Enabled/disables mandatory dispo on a queue

" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "vidaooEscalation", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "vidaooApiKey", + "description": "" } ] } @@ -5397,6 +8186,24 @@ define({ "api": [ }, { "type": "get", + "url": "/api/chat/websites/{id}/dispositions", + "title": "Gets account dispositions", + "examples": [ + { + "title": "Example usage:", + "content": "curl https://{domain}/api/chat/websites/{id}/dispositions -v -u {name}:{password} -X GET", + "type": "json" + } + ], + "name": "getDispositions", + "group": "Chat_Websites", + "description": "

Motion will return a HTTP status code 200 upon success. Motion return a HTTP status code 404 if the corresponding record could not be located.

Motion renders the resulting JSON representation in the response body.

", + "version": "0.0.0", + "filename": "/home/vito/Development/MOTION_V3/motion-server/src/api/chatWebsite/index.js", + "groupTitle": "Chat_Websites" + }, + { + "type": "get", "url": "/api/chat/websites/{id}/fields", "title": "Gets Website Fields", "examples": [ @@ -5600,7 +8407,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/cloudProviders -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/cloudProviders -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -5728,7 +8535,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/cm/companies -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/cm/companies -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -5963,56 +8770,28 @@ define({ "api": [ "group": "Body", "type": "String", "optional": false, - "field": "firstName", - "description": "" - }, - { - "group": "Body", - "type": "String", - "optional": true, - "field": "lastName", - "description": "" - }, - { - "group": "Body", - "type": "String", - "optional": true, - "field": "street", - "description": "" - }, - { - "group": "Body", - "type": "String", - "optional": true, - "field": "postalCode", + "field": "name", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "city", + "field": "vat", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "country", + "field": "companyId", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "dateOfBirth", - "description": "" - }, - { - "group": "Body", - "type": "Text", - "optional": true, - "field": "description", + "field": "website", "description": "" }, { @@ -6026,13 +8805,6 @@ define({ "api": [ "group": "Body", "type": "String", "optional": true, - "field": "mobile", - "description": "" - }, - { - "group": "Body", - "type": "String", - "optional": true, "field": "fax", "description": "" }, @@ -6040,98 +8812,84 @@ define({ "api": [ "group": "Body", "type": "String", "optional": true, - "field": "email", + "field": "type", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "url", + "field": "street", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "facebook", + "field": "postalCode", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "fb_data", + "field": "city", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "twitter", + "field": "country", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "skype", + "field": "email", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "teams", + "field": "emailDomain", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "viber", + "field": "sStreet", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "line", + "field": "sPostalCode", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "wechat", + "field": "sCity", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "telegram", - "description": "" - }, - { - "group": "Body", - "type": "Integer", - "optional": true, - "field": "UserId", - "description": "" - }, - { - "group": "Body", - "type": "Integer", - "optional": true, - "field": "priority", + "field": "sCountry", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "scheduledat", + "field": "description", "description": "" } ] @@ -6559,7 +9317,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/cm/hopper -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/cm/hopper -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -7306,7 +10064,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/cm/hopper_history -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/cm/hopper_history -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -7867,7 +10625,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/cm/lists -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/cm/lists -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -8069,55 +10827,13 @@ define({ "api": [ "group": "Body", "type": "String", "optional": false, - "field": "firstName", - "description": "" - }, - { - "group": "Body", - "type": "String", - "optional": true, - "field": "lastName", - "description": "" - }, - { - "group": "Body", - "type": "String", - "optional": true, - "field": "street", - "description": "" - }, - { - "group": "Body", - "type": "String", - "optional": true, - "field": "postalCode", - "description": "" - }, - { - "group": "Body", - "type": "String", - "optional": true, - "field": "city", - "description": "" - }, - { - "group": "Body", - "type": "String", - "optional": true, - "field": "country", + "field": "name", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "dateOfBirth", - "description": "" - }, - { - "group": "Body", - "type": "Text", - "optional": true, "field": "description", "description": "" }, @@ -8125,119 +10841,7 @@ define({ "api": [ "group": "Body", "type": "String", "optional": true, - "field": "phone", - "description": "" - }, - { - "group": "Body", - "type": "String", - "optional": true, - "field": "mobile", - "description": "" - }, - { - "group": "Body", - "type": "String", - "optional": true, - "field": "fax", - "description": "" - }, - { - "group": "Body", - "type": "String", - "optional": true, - "field": "email", - "description": "" - }, - { - "group": "Body", - "type": "String", - "optional": true, - "field": "url", - "description": "" - }, - { - "group": "Body", - "type": "String", - "optional": true, - "field": "facebook", - "description": "" - }, - { - "group": "Body", - "type": "String", - "optional": true, - "field": "fb_data", - "description": "" - }, - { - "group": "Body", - "type": "String", - "optional": true, - "field": "twitter", - "description": "" - }, - { - "group": "Body", - "type": "String", - "optional": true, - "field": "skype", - "description": "" - }, - { - "group": "Body", - "type": "String", - "optional": true, - "field": "teams", - "description": "" - }, - { - "group": "Body", - "type": "String", - "optional": true, - "field": "viber", - "description": "" - }, - { - "group": "Body", - "type": "String", - "optional": true, - "field": "line", - "description": "" - }, - { - "group": "Body", - "type": "String", - "optional": true, - "field": "wechat", - "description": "" - }, - { - "group": "Body", - "type": "String", - "optional": true, - "field": "telegram", - "description": "" - }, - { - "group": "Body", - "type": "Integer", - "optional": true, - "field": "UserId", - "description": "" - }, - { - "group": "Body", - "type": "Integer", - "optional": true, - "field": "priority", - "description": "" - }, - { - "group": "Body", - "type": "String", - "optional": true, - "field": "scheduledat", + "field": "dialPrefix", "description": "" } ] @@ -8292,20 +10896,15 @@ define({ "api": [ { "group": "Body", "type": "String", - "allowedValues": [ - "\"first\"", - "\"second\"", - "\"third\"" - ], - "optional": false, - "field": "level", + "optional": true, + "field": "description", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "description", + "field": "dialPrefix", "description": "" } ] @@ -8593,7 +11192,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/dashboards -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/dashboards -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -8739,7 +11338,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/integrations/desk/accounts -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/integrations/desk/accounts -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -9040,7 +11639,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/integrations/desk/configurations -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/integrations/desk/configurations -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -9240,7 +11839,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/integrations/desk/fields -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/integrations/desk/fields -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -9410,7 +12009,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/dispositions -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/dispositions -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -9532,7 +12131,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/integrations/dynamics365/accounts -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/integrations/dynamics365/accounts -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -9805,7 +12404,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/integrations/dynamics365/configurations -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/integrations/dynamics365/configurations -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -9980,7 +12579,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/integrations/dynamics365/fields -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/integrations/dynamics365/fields -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -10168,7 +12767,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/fax/accounts -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/fax/accounts -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -10566,29 +13165,188 @@ define({ "api": [ "group": "Body", "type": "String", "optional": false, + "field": "name", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "description", + "description": "" + }, + { + "group": "Body", + "type": "String", + "allowedValues": [ + "\"yes\"", + "\"no\"" + ], + "optional": true, + "field": "ecm", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "headerinfo", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "localstationid", + "description": "" + }, + { + "group": "Body", + "type": "String", + "allowedValues": [ + "\"2400\"", + "\"4800\"", + "\"7200\"", + "\"9600\"", + "\"12000\"", + "\"14400\"" + ], + "optional": true, + "field": "minrate", + "description": "" + }, + { + "group": "Body", + "type": "String", + "allowedValues": [ + "\"2400\"", + "\"4800\"", + "\"7200\"", + "\"9600\"", + "\"12000\"", + "\"14400\"" + ], + "optional": true, + "field": "maxrate", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "modem", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "gateway", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "faxdetect", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "t38timeout", + "description": "" + }, + { + "group": "Body", + "type": "String", + "allowedValues": [ + "\"SIP\"", + "\"IAX\"", + "\"DADHI\"", + "\"KHOMP\"" + ], + "optional": true, + "field": "tech", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": false, "field": "key", "description": "" }, { "group": "Body", "type": "Text", - "optional": false, - "field": "value", + "optional": true, + "field": "notificationTemplate", "description": "" }, { "group": "Body", - "type": "String", + "type": "Boolean", "optional": true, - "field": "description", + "field": "notificationSound", "description": "" }, { "group": "Body", - "type": "Virtual", + "type": "Boolean", "optional": true, - "field": "name", + "field": "notificationShake", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "waitForTheAssignedAgent", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "queueTransfer", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "queueTransferTimeout", "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "agentTransfer", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "agentTransferTimeout", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "mandatoryDispositionPauseId", + "description": "

Status to put when mandatory disposition is enabled

" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "mandatoryDisposition", + "description": "

Enabled/disables mandatory dispo on a queue

" } ] } @@ -10616,38 +13374,190 @@ define({ "api": [ "Body": [ { "group": "Body", - "type": "Integer", + "type": "String", "optional": false, - "field": "priority", + "field": "name", "description": "" }, { "group": "Body", "type": "String", - "optional": false, - "field": "app", + "optional": true, + "field": "description", "description": "" }, { "group": "Body", - "type": "Text", + "type": "String", + "allowedValues": [ + "\"yes\"", + "\"no\"" + ], "optional": true, - "field": "appdata", + "field": "ecm", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "description", + "field": "headerinfo", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "interval", + "field": "localstationid", + "description": "" + }, + { + "group": "Body", + "type": "String", + "allowedValues": [ + "\"2400\"", + "\"4800\"", + "\"7200\"", + "\"9600\"", + "\"12000\"", + "\"14400\"" + ], + "optional": true, + "field": "minrate", + "description": "" + }, + { + "group": "Body", + "type": "String", + "allowedValues": [ + "\"2400\"", + "\"4800\"", + "\"7200\"", + "\"9600\"", + "\"12000\"", + "\"14400\"" + ], + "optional": true, + "field": "maxrate", "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "modem", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "gateway", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "faxdetect", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "t38timeout", + "description": "" + }, + { + "group": "Body", + "type": "String", + "allowedValues": [ + "\"SIP\"", + "\"IAX\"", + "\"DADHI\"", + "\"KHOMP\"" + ], + "optional": true, + "field": "tech", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": false, + "field": "key", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "notificationTemplate", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "notificationSound", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "notificationShake", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "waitForTheAssignedAgent", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "queueTransfer", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "queueTransferTimeout", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "agentTransfer", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "agentTransferTimeout", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "mandatoryDispositionPauseId", + "description": "

Status to put when mandatory disposition is enabled

" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "mandatoryDisposition", + "description": "

Enabled/disables mandatory dispo on a queue

" } ] } @@ -10675,38 +13585,190 @@ define({ "api": [ "Body": [ { "group": "Body", - "type": "Integer", + "type": "String", "optional": false, - "field": "priority", + "field": "name", "description": "" }, { "group": "Body", "type": "String", - "optional": false, - "field": "app", + "optional": true, + "field": "description", "description": "" }, { "group": "Body", - "type": "Text", + "type": "String", + "allowedValues": [ + "\"yes\"", + "\"no\"" + ], "optional": true, - "field": "appdata", + "field": "ecm", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "description", + "field": "headerinfo", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "interval", + "field": "localstationid", + "description": "" + }, + { + "group": "Body", + "type": "String", + "allowedValues": [ + "\"2400\"", + "\"4800\"", + "\"7200\"", + "\"9600\"", + "\"12000\"", + "\"14400\"" + ], + "optional": true, + "field": "minrate", + "description": "" + }, + { + "group": "Body", + "type": "String", + "allowedValues": [ + "\"2400\"", + "\"4800\"", + "\"7200\"", + "\"9600\"", + "\"12000\"", + "\"14400\"" + ], + "optional": true, + "field": "maxrate", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "modem", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "gateway", "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "faxdetect", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "t38timeout", + "description": "" + }, + { + "group": "Body", + "type": "String", + "allowedValues": [ + "\"SIP\"", + "\"IAX\"", + "\"DADHI\"", + "\"KHOMP\"" + ], + "optional": true, + "field": "tech", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": false, + "field": "key", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "notificationTemplate", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "notificationSound", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "notificationShake", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "waitForTheAssignedAgent", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "queueTransfer", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "queueTransferTimeout", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "agentTransfer", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "agentTransferTimeout", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "mandatoryDispositionPauseId", + "description": "

Status to put when mandatory disposition is enabled

" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "mandatoryDisposition", + "description": "

Enabled/disables mandatory dispo on a queue

" } ] } @@ -10742,21 +13804,182 @@ define({ "api": [ { "group": "Body", "type": "String", + "optional": true, + "field": "description", + "description": "" + }, + { + "group": "Body", + "type": "String", "allowedValues": [ - "\"first\"", - "\"second\"", - "\"third\"" + "\"yes\"", + "\"no\"" ], - "optional": false, - "field": "level", + "optional": true, + "field": "ecm", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "description", + "field": "headerinfo", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "localstationid", + "description": "" + }, + { + "group": "Body", + "type": "String", + "allowedValues": [ + "\"2400\"", + "\"4800\"", + "\"7200\"", + "\"9600\"", + "\"12000\"", + "\"14400\"" + ], + "optional": true, + "field": "minrate", + "description": "" + }, + { + "group": "Body", + "type": "String", + "allowedValues": [ + "\"2400\"", + "\"4800\"", + "\"7200\"", + "\"9600\"", + "\"12000\"", + "\"14400\"" + ], + "optional": true, + "field": "maxrate", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "modem", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "gateway", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "faxdetect", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "t38timeout", + "description": "" + }, + { + "group": "Body", + "type": "String", + "allowedValues": [ + "\"SIP\"", + "\"IAX\"", + "\"DADHI\"", + "\"KHOMP\"" + ], + "optional": true, + "field": "tech", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": false, + "field": "key", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "notificationTemplate", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "notificationSound", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "notificationShake", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "waitForTheAssignedAgent", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "queueTransfer", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "queueTransferTimeout", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "agentTransfer", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "agentTransferTimeout", "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "mandatoryDispositionPauseId", + "description": "

Status to put when mandatory disposition is enabled

" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "mandatoryDisposition", + "description": "

Enabled/disables mandatory dispo on a queue

" } ] } @@ -10784,88 +14007,190 @@ define({ "api": [ "Body": [ { "group": "Body", - "type": "Boolean", - "optional": true, - "field": "closed", + "type": "String", + "optional": false, + "field": "name", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "closedAt", + "field": "description", "description": "" }, { "group": "Body", "type": "String", + "allowedValues": [ + "\"yes\"", + "\"no\"" + ], "optional": true, - "field": "disposition", + "field": "ecm", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "secondDisposition", + "field": "headerinfo", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "thirdDisposition", + "field": "localstationid", "description": "" }, { "group": "Body", "type": "String", + "allowedValues": [ + "\"2400\"", + "\"4800\"", + "\"7200\"", + "\"9600\"", + "\"12000\"", + "\"14400\"" + ], "optional": true, - "field": "note", + "field": "minrate", "description": "" }, { "group": "Body", "type": "String", + "allowedValues": [ + "\"2400\"", + "\"4800\"", + "\"7200\"", + "\"9600\"", + "\"12000\"", + "\"14400\"" + ], "optional": true, - "field": "read1stAt", + "field": "maxrate", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "fax", + "field": "modem", "description": "" }, { "group": "Body", "type": "String", - "allowedValues": [ - "\"in\"", - "\"out\"" - ], - "optional": false, - "field": "firstMsgDirection", + "optional": true, + "field": "gateway", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "lastMsgAt", + "field": "faxdetect", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "t38timeout", "description": "" }, { "group": "Body", "type": "String", "allowedValues": [ - "\"in\"", - "\"out\"" + "\"SIP\"", + "\"IAX\"", + "\"DADHI\"", + "\"KHOMP\"" ], + "optional": true, + "field": "tech", + "description": "" + }, + { + "group": "Body", + "type": "String", "optional": false, - "field": "lastMsgDirection", + "field": "key", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "notificationTemplate", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "notificationSound", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "notificationShake", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "waitForTheAssignedAgent", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "queueTransfer", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "queueTransferTimeout", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "agentTransfer", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "agentTransferTimeout", "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "mandatoryDispositionPauseId", + "description": "

Status to put when mandatory disposition is enabled

" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "mandatoryDisposition", + "description": "

Enabled/disables mandatory dispo on a queue

" } ] } @@ -11019,38 +14344,190 @@ define({ "api": [ "Body": [ { "group": "Body", - "type": "Integer", + "type": "String", "optional": false, - "field": "priority", + "field": "name", "description": "" }, { "group": "Body", "type": "String", - "optional": false, - "field": "app", + "optional": true, + "field": "description", "description": "" }, { "group": "Body", - "type": "Text", + "type": "String", + "allowedValues": [ + "\"yes\"", + "\"no\"" + ], "optional": true, - "field": "appdata", + "field": "ecm", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "description", + "field": "headerinfo", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "interval", + "field": "localstationid", + "description": "" + }, + { + "group": "Body", + "type": "String", + "allowedValues": [ + "\"2400\"", + "\"4800\"", + "\"7200\"", + "\"9600\"", + "\"12000\"", + "\"14400\"" + ], + "optional": true, + "field": "minrate", + "description": "" + }, + { + "group": "Body", + "type": "String", + "allowedValues": [ + "\"2400\"", + "\"4800\"", + "\"7200\"", + "\"9600\"", + "\"12000\"", + "\"14400\"" + ], + "optional": true, + "field": "maxrate", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "modem", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "gateway", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "faxdetect", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "t38timeout", + "description": "" + }, + { + "group": "Body", + "type": "String", + "allowedValues": [ + "\"SIP\"", + "\"IAX\"", + "\"DADHI\"", + "\"KHOMP\"" + ], + "optional": true, + "field": "tech", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": false, + "field": "key", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "notificationTemplate", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "notificationSound", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "notificationShake", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "waitForTheAssignedAgent", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "queueTransfer", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "queueTransferTimeout", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "agentTransfer", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "agentTransferTimeout", "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "mandatoryDispositionPauseId", + "description": "

Status to put when mandatory disposition is enabled

" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "mandatoryDisposition", + "description": "

Enabled/disables mandatory dispo on a queue

" } ] } @@ -11067,7 +14544,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/fax/applications -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/fax/applications -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -11276,7 +14753,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/fax/interactions -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/fax/interactions -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -11516,16 +14993,58 @@ define({ "api": [ "Body": [ { "group": "Body", - "type": "Text", - "optional": false, - "field": "body", + "type": "Boolean", + "optional": true, + "field": "closed", "description": "" }, { "group": "Body", - "type": "Boolean", + "type": "String", "optional": true, - "field": "read", + "field": "closedAt", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "disposition", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "secondDisposition", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "thirdDisposition", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "note", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "read1stAt", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "fax", "description": "" }, { @@ -11536,21 +15055,25 @@ define({ "api": [ "\"out\"" ], "optional": false, - "field": "direction", + "field": "firstMsgDirection", "description": "" }, { "group": "Body", - "type": "Text", + "type": "String", "optional": true, - "field": "failMessage", + "field": "lastMsgAt", "description": "" }, { "group": "Body", "type": "String", - "optional": true, - "field": "readAt", + "allowedValues": [ + "\"in\"", + "\"out\"" + ], + "optional": false, + "field": "lastMsgDirection", "description": "" } ] @@ -11834,7 +15357,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/fax/reports/queue -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/fax/reports/queue -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -12063,7 +15586,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/fax/queues -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/fax/queues -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -12349,7 +15872,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/fax/reports/transfer -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/fax/reports/transfer -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -12489,7 +16012,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/integrations/freshdesk/accounts -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/integrations/freshdesk/accounts -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -12741,7 +16264,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/integrations/freshdesk/configurations -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/integrations/freshdesk/configurations -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -12941,7 +16464,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/integrations/freshdesk/fields -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/integrations/freshdesk/fields -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -13111,7 +16634,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/integrations/freshsales/accounts -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/integrations/freshsales/accounts -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -13363,7 +16886,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/integrations/freshsales/configurations -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/integrations/freshsales/configurations -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -13527,7 +17050,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/integrations/freshsales/fields -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/integrations/freshsales/fields -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -13751,7 +17274,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/campaigns -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/campaigns -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -14327,7 +17850,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/integrations/reports -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/integrations/reports -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -14883,12 +18406,213 @@ define({ "api": [ }, { "type": "post", + "url": "/api/integrations", + "title": "Creates a new Integration", + "examples": [ + { + "title": "Example usage:", + "content": "curl https://{domain}/api/integrations -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "type": "json" + } + ], + "name": "CreateIntegrations", + "group": "Integrations", + "parameter": { + "fields": { + "Body": [ + { + "group": "Body", + "type": "String", + "optional": false, + "field": "name", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": false, + "field": "version", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "main", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "filename", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "path", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "type", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "size", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "active", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "author", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "logo", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "state", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "description", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "title", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "remoteUri", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "link", + "description": "" + } + ] + } + }, + "description": "

Motion will return a HTTP status code 201 upon success.

Motion renders the resulting JSON representation in the response body.

", + "version": "0.0.0", + "filename": "/home/vito/Development/MOTION_V3/motion-server/src/api/integration/index.js", + "groupTitle": "Integrations" + }, + { + "type": "delete", + "url": "/api/integrations/{id}", + "title": "Deletes a Integration", + "examples": [ + { + "title": "Example usage:", + "content": "curl https://{domain}/api/integrations/{id} -v -u {name}:{password} -X DELETE", + "type": "json" + } + ], + "name": "DeleteIntegrations", + "group": "Integrations", + "description": "

Motion will return a HTTP status code 204 upon success. Motion return a HTTP status code 404 if the corresponding record could not be located.

Motion renders the resulting JSON representation in the response body.

", + "version": "0.0.0", + "filename": "/home/vito/Development/MOTION_V3/motion-server/src/api/integration/index.js", + "groupTitle": "Integrations" + }, + { + "type": "get", + "url": "/api/integrations", + "title": "Gets a list of Integrations", + "examples": [ + { + "title": "Example usage:", + "content": "curl https://{domain}/api/integrations -v -u {name}:{password}", + "type": "json" + } + ], + "name": "GetIntegrations", + "group": "Integrations", + "description": "

Motion will always return paged results. Motion returns paging data in the Content-Range header in the form start - end / total.

Upon success Motion will return a HTTP status code 200 OK if the entire collection was returned otherwise it will return a HTTP status code 206 Partial Content.

Motion renders the resulting JSON representation in the response body.

Retrieving Specific Fields

To return only specific fields for a result set you can utilize the fields parameter. This parameter accepts a comma-separated list.

A call returning only id and name for a result set would look like this.

GET /api/integrations?fields=id,name

Filtering

You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.

A call returning a result set for records with name of john.doe or jane.miller.

GET /api/integrations?name=john.doe,jane.miller

If you use the key filter the result will be filtered by the value you specify.

GET /api/integrations?filter=john

Sorting

To sort a result set based on one or several fields you can utilize the sort parameter. This parameters accepts a comma-separated list.

Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (-).

A call sorting a result by id ascending and then name descending would look like this.

GET /api/integrations?sort=id,-name

Offset and Limit

Query results are always paged. Motion leverages the offset and limit parameters to facilitate this.

When the neither of these parameters are explicitly supplied the handler will assume the a default limit of 100.

offset is a number indicating the start position in the result set you want to return.

limit is a number indicating how many records past the start position you want returned.

A call with a result set starting at 5 and returning no more than 25 records would look like this.

GET /api/integrations?offset=5&limit=25

If there were 50 records in total, the returned Content-Range header would look like this.

Content-Range: 5-30/50

", + "version": "0.0.0", + "filename": "/home/vito/Development/MOTION_V3/motion-server/src/api/integration/index.js", + "groupTitle": "Integrations" + }, + { + "type": "get", + "url": "/api/integrations/{id}", + "title": "Gets a single Integration", + "examples": [ + { + "title": "Example usage:", + "content": "curl https://{domain}/api/integrations/{id} -v -u {name}:{password}", + "type": "json" + } + ], + "name": "ShowIntegrations", + "group": "Integrations", + "description": "

Motion will return a HTTP status code 200 upon success. Motion return a HTTP status code 404 if the corresponding record could not be located.

Motion renders the resulting JSON representation in the response body.

", + "version": "0.0.0", + "filename": "/home/vito/Development/MOTION_V3/motion-server/src/api/integration/index.js", + "groupTitle": "Integrations" + }, + { + "type": "put", + "url": "/api/integrations/{id}", + "title": "Update an existing Integration", + "examples": [ + { + "title": "Example usage:", + "content": "curl https://{domain}/api/integrations/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT", + "type": "json" + } + ], + "name": "updateIntegrations", + "group": "Integrations", + "description": "

Motion will return a HTTP status code 200 upon success. Motion return a HTTP status code 404 if the corresponding record could not be located.

Motion renders the resulting JSON representation in the response body.

", + "version": "0.0.0", + "filename": "/home/vito/Development/MOTION_V3/motion-server/src/api/integration/index.js", + "groupTitle": "Integrations" + }, + { + "type": "post", "url": "/api/intervals", "title": "Creates a new Interval", "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/intervals -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/intervals -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -15167,7 +18891,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/jscripty/answers/reports -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/jscripty/answers/reports -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -15344,7 +19068,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/jscripty/questions/reports -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/jscripty/questions/reports -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -15521,7 +19245,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/jscripty/sessions/reports -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/jscripty/sessions/reports -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -15734,7 +19458,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/jscripty/projects -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/jscripty/projects -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -15992,72 +19716,135 @@ define({ "api": [ { "group": "Body", "type": "String", - "optional": true, - "field": "host", + "optional": false, + "field": "name", "description": "" }, { "group": "Body", "type": "Boolean", "optional": true, - "field": "authentication", + "field": "service", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "user", + "field": "email", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "active", "description": "" }, { "group": "Body", "type": "String", + "optional": false, + "field": "key", + "description": "" + }, + { + "group": "Body", + "type": "Text", "optional": true, - "field": "password", + "field": "template", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "markAsUnread", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": false, + "field": "fontFamily", "description": "" }, { "group": "Body", "type": "Integer", "optional": true, - "field": "port", + "field": "fontSize", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "notificationTemplate", "description": "" }, { "group": "Body", "type": "Boolean", "optional": true, - "field": "tls", + "field": "notificationSound", "description": "" }, { "group": "Body", - "type": "String", + "type": "Boolean", "optional": true, - "field": "mailbox", + "field": "notificationShake", "description": "" }, { "group": "Body", "type": "Integer", "optional": true, - "field": "connTimeout", + "field": "waitForTheAssignedAgent", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "queueTransfer", "description": "" }, { "group": "Body", "type": "Integer", "optional": true, - "field": "authTimeout", + "field": "queueTransferTimeout", "description": "" }, { "group": "Body", - "type": "String", + "type": "Boolean", "optional": true, - "field": "service", + "field": "agentTransfer", "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "agentTransferTimeout", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "mandatoryDispositionPauseId", + "description": "

Status to put when mandatory disposition is enabled

" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "mandatoryDisposition", + "description": "

Enabled/disables mandatory dispo on a queue

" } ] } @@ -16093,51 +19880,135 @@ define({ "api": [ { "group": "Body", "type": "String", + "optional": false, + "field": "name", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", "optional": true, - "field": "host", + "field": "service", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "user", + "field": "email", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "active", "description": "" }, { "group": "Body", "type": "String", + "optional": false, + "field": "key", + "description": "" + }, + { + "group": "Body", + "type": "Text", "optional": true, - "field": "pass", + "field": "template", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "markAsUnread", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": false, + "field": "fontFamily", "description": "" }, { "group": "Body", "type": "Integer", "optional": true, - "field": "port", + "field": "fontSize", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "notificationTemplate", "description": "" }, { "group": "Body", "type": "Boolean", "optional": true, - "field": "secure", + "field": "notificationSound", "description": "" }, { "group": "Body", - "type": "String", + "type": "Boolean", "optional": true, - "field": "service", + "field": "notificationShake", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "waitForTheAssignedAgent", "description": "" }, { "group": "Body", "type": "Boolean", "optional": true, - "field": "authentication", + "field": "queueTransfer", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "queueTransferTimeout", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "agentTransfer", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "agentTransferTimeout", "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "mandatoryDispositionPauseId", + "description": "

Status to put when mandatory disposition is enabled

" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "mandatoryDisposition", + "description": "

Enabled/disables mandatory dispo on a queue

" } ] } @@ -16452,6 +20323,41 @@ define({ "api": [ { "group": "Body", "type": "String", + "optional": true, + "field": "description", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": false, + "field": "name", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "service", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "email", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "active", + "description": "" + }, + { + "group": "Body", + "type": "String", "optional": false, "field": "key", "description": "" @@ -16459,23 +20365,100 @@ define({ "api": [ { "group": "Body", "type": "Text", - "optional": false, - "field": "value", + "optional": true, + "field": "template", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "markAsUnread", "description": "" }, { "group": "Body", "type": "String", + "optional": false, + "field": "fontFamily", + "description": "" + }, + { + "group": "Body", + "type": "Integer", "optional": true, - "field": "description", + "field": "fontSize", "description": "" }, { "group": "Body", - "type": "Virtual", + "type": "Text", "optional": true, - "field": "name", + "field": "notificationTemplate", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "notificationSound", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "notificationShake", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "waitForTheAssignedAgent", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "queueTransfer", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "queueTransferTimeout", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "agentTransfer", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "agentTransferTimeout", "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "mandatoryDispositionPauseId", + "description": "

Status to put when mandatory disposition is enabled

" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "mandatoryDisposition", + "description": "

Enabled/disables mandatory dispo on a queue

" } ] } @@ -16503,38 +20486,143 @@ define({ "api": [ "Body": [ { "group": "Body", - "type": "Integer", + "type": "String", + "optional": true, + "field": "description", + "description": "" + }, + { + "group": "Body", + "type": "String", "optional": false, - "field": "priority", + "field": "name", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "service", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "email", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "active", "description": "" }, { "group": "Body", "type": "String", "optional": false, - "field": "app", + "field": "key", "description": "" }, { "group": "Body", "type": "Text", "optional": true, - "field": "appdata", + "field": "template", "description": "" }, { "group": "Body", - "type": "String", + "type": "Boolean", "optional": true, - "field": "description", + "field": "markAsUnread", "description": "" }, { "group": "Body", "type": "String", + "optional": false, + "field": "fontFamily", + "description": "" + }, + { + "group": "Body", + "type": "Integer", "optional": true, - "field": "interval", + "field": "fontSize", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "notificationTemplate", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "notificationSound", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "notificationShake", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "waitForTheAssignedAgent", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "queueTransfer", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "queueTransferTimeout", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "agentTransfer", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "agentTransferTimeout", "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "mandatoryDispositionPauseId", + "description": "

Status to put when mandatory disposition is enabled

" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "mandatoryDisposition", + "description": "

Enabled/disables mandatory dispo on a queue

" } ] } @@ -16563,28 +20651,142 @@ define({ "api": [ { "group": "Body", "type": "String", + "optional": true, + "field": "description", + "description": "" + }, + { + "group": "Body", + "type": "String", "optional": false, "field": "name", "description": "" }, { "group": "Body", + "type": "Boolean", + "optional": true, + "field": "service", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "email", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "active", + "description": "" + }, + { + "group": "Body", "type": "String", - "allowedValues": [ - "\"first\"", - "\"second\"", - "\"third\"" - ], "optional": false, - "field": "level", + "field": "key", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "template", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "markAsUnread", "description": "" }, { "group": "Body", "type": "String", + "optional": false, + "field": "fontFamily", + "description": "" + }, + { + "group": "Body", + "type": "Integer", "optional": true, - "field": "description", + "field": "fontSize", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "notificationTemplate", "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "notificationSound", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "notificationShake", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "waitForTheAssignedAgent", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "queueTransfer", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "queueTransferTimeout", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "agentTransfer", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "agentTransferTimeout", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "mandatoryDispositionPauseId", + "description": "

Status to put when mandatory disposition is enabled

" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "mandatoryDisposition", + "description": "

Enabled/disables mandatory dispo on a queue

" } ] } @@ -16612,144 +20814,143 @@ define({ "api": [ "Body": [ { "group": "Body", - "type": "Boolean", + "type": "String", "optional": true, - "field": "closed", + "field": "description", "description": "" }, { "group": "Body", "type": "String", - "optional": true, - "field": "closedAt", + "optional": false, + "field": "name", "description": "" }, { "group": "Body", - "type": "String", + "type": "Boolean", "optional": true, - "field": "disposition", + "field": "service", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "secondDisposition", + "field": "email", "description": "" }, { "group": "Body", - "type": "String", + "type": "Boolean", "optional": true, - "field": "thirdDisposition", + "field": "active", "description": "" }, { "group": "Body", "type": "String", + "optional": false, + "field": "key", + "description": "" + }, + { + "group": "Body", + "type": "Text", "optional": true, - "field": "note", + "field": "template", "description": "" }, { "group": "Body", - "type": "String", + "type": "Boolean", "optional": true, - "field": "inReplyTo", + "field": "markAsUnread", "description": "" }, { "group": "Body", "type": "String", - "optional": true, - "field": "to", + "optional": false, + "field": "fontFamily", "description": "" }, { "group": "Body", - "type": "Text", + "type": "Integer", "optional": true, - "field": "cc", + "field": "fontSize", "description": "" }, { "group": "Body", "type": "Text", "optional": true, - "field": "subject", + "field": "notificationTemplate", "description": "" }, { "group": "Body", "type": "Boolean", "optional": true, - "field": "attach", + "field": "notificationSound", "description": "" }, { "group": "Body", - "type": "String", + "type": "Boolean", "optional": true, - "field": "read1stAt", + "field": "notificationShake", "description": "" }, { "group": "Body", - "type": "String", + "type": "Integer", "optional": true, - "field": "substatus", + "field": "waitForTheAssignedAgent", "description": "" }, { "group": "Body", - "type": "String", + "type": "Boolean", "optional": true, - "field": "substatusAt", + "field": "queueTransfer", "description": "" }, { "group": "Body", - "type": "String", - "allowedValues": [ - "\"in\"", - "\"out\"" - ], - "optional": false, - "field": "firstMsgDirection", + "type": "Integer", + "optional": true, + "field": "queueTransferTimeout", "description": "" }, { "group": "Body", - "type": "String", + "type": "Boolean", "optional": true, - "field": "lastMsgAt", + "field": "agentTransfer", "description": "" }, { "group": "Body", - "type": "String", - "allowedValues": [ - "\"in\"", - "\"out\"" - ], - "optional": false, - "field": "lastMsgDirection", + "type": "Integer", + "optional": true, + "field": "agentTransferTimeout", "description": "" }, { "group": "Body", - "type": "Text", + "type": "Integer", "optional": true, - "field": "lastMsgBody", - "description": "" + "field": "mandatoryDispositionPauseId", + "description": "

Status to put when mandatory disposition is enabled

" }, { "group": "Body", - "type": "Text", + "type": "Boolean", "optional": true, - "field": "lastMsgText", - "description": "" + "field": "mandatoryDisposition", + "description": "

Enabled/disables mandatory dispo on a queue

" } ] } @@ -17090,7 +21291,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/mail/interactions -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/mail/interactions -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -17386,53 +21587,56 @@ define({ "api": [ "Body": [ { "group": "Body", - "type": "Text", - "optional": false, - "field": "body", + "type": "Boolean", + "optional": true, + "field": "closed", "description": "" }, { "group": "Body", - "type": "Text", + "type": "String", "optional": true, - "field": "plainBody", + "field": "closedAt", "description": "" }, { "group": "Body", - "type": "Boolean", + "type": "String", "optional": true, - "field": "read", + "field": "disposition", "description": "" }, { "group": "Body", "type": "String", - "allowedValues": [ - "\"in\"", - "\"out\"" - ], - "optional": false, - "field": "direction", + "optional": true, + "field": "secondDisposition", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "messageId", + "field": "thirdDisposition", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "from", + "field": "note", "description": "" }, { "group": "Body", - "type": "Text", + "type": "String", + "optional": true, + "field": "inReplyTo", + "description": "" + }, + { + "group": "Body", + "type": "String", "optional": true, "field": "to", "description": "" @@ -17448,56 +21652,78 @@ define({ "api": [ "group": "Body", "type": "Text", "optional": true, - "field": "bcc", + "field": "subject", "description": "" }, { "group": "Body", - "type": "Text", + "type": "Boolean", "optional": true, - "field": "subject", + "field": "attach", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "sentAt", + "field": "read1stAt", "description": "" }, { "group": "Body", - "type": "Integer", + "type": "String", "optional": true, - "field": "attach", + "field": "substatus", "description": "" }, { "group": "Body", - "type": "Boolean", + "type": "String", "optional": true, - "field": "secret", + "field": "substatusAt", + "description": "" + }, + { + "group": "Body", + "type": "String", + "allowedValues": [ + "\"in\"", + "\"out\"" + ], + "optional": false, + "field": "firstMsgDirection", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "readAt", + "field": "lastMsgAt", + "description": "" + }, + { + "group": "Body", + "type": "String", + "allowedValues": [ + "\"in\"", + "\"out\"" + ], + "optional": false, + "field": "lastMsgDirection", "description": "" }, { "group": "Body", "type": "Text", "optional": true, - "field": "originTo", + "field": "lastMsgBody", "description": "" }, { "group": "Body", "type": "Text", "optional": true, - "field": "originCc", + "field": "lastMsgText", "description": "" } ] @@ -17751,7 +21977,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/mail/reports/queue -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/mail/reports/queue -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -17980,7 +22206,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/mail/queues -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/mail/queues -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -18259,7 +22485,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/mail/out_servers -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/mail/out_servers -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -18411,7 +22637,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/mail/substatuses -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/mail/substatuses -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -18539,7 +22765,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/mail/reports/transfer -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/mail/reports/transfer -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -18947,7 +23173,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/openchannel/accounts -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/openchannel/accounts -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -19240,29 +23466,113 @@ define({ "api": [ "group": "Body", "type": "String", "optional": false, + "field": "name", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "description", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "token", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "replyUri", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": false, "field": "key", "description": "" }, { "group": "Body", "type": "Text", - "optional": false, - "field": "value", + "optional": true, + "field": "notificationTemplate", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "notificationSound", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "notificationShake", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "waitForTheAssignedAgent", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "description", + "field": "mapKey", "description": "" }, { "group": "Body", - "type": "Virtual", + "type": "Boolean", "optional": true, - "field": "name", + "field": "queueTransfer", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "queueTransferTimeout", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "agentTransfer", "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "agentTransferTimeout", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "mandatoryDispositionPauseId", + "description": "

Status to put when mandatory disposition is enabled

" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "mandatoryDisposition", + "description": "

Enabled/disables mandatory dispo on a queue

" } ] } @@ -19290,38 +23600,115 @@ define({ "api": [ "Body": [ { "group": "Body", - "type": "Integer", + "type": "String", "optional": false, - "field": "priority", + "field": "name", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "description", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "token", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "replyUri", "description": "" }, { "group": "Body", "type": "String", "optional": false, - "field": "app", + "field": "key", "description": "" }, { "group": "Body", "type": "Text", "optional": true, - "field": "appdata", + "field": "notificationTemplate", "description": "" }, { "group": "Body", - "type": "String", + "type": "Boolean", "optional": true, - "field": "description", + "field": "notificationSound", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "notificationShake", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "waitForTheAssignedAgent", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "interval", + "field": "mapKey", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "queueTransfer", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "queueTransferTimeout", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "agentTransfer", "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "agentTransferTimeout", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "mandatoryDispositionPauseId", + "description": "

Status to put when mandatory disposition is enabled

" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "mandatoryDisposition", + "description": "

Enabled/disables mandatory dispo on a queue

" } ] } @@ -19357,21 +23744,107 @@ define({ "api": [ { "group": "Body", "type": "String", - "allowedValues": [ - "\"first\"", - "\"second\"", - "\"third\"" - ], + "optional": true, + "field": "description", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "token", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "replyUri", + "description": "" + }, + { + "group": "Body", + "type": "String", "optional": false, - "field": "level", + "field": "key", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "notificationTemplate", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "notificationSound", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "notificationShake", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "waitForTheAssignedAgent", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "description", + "field": "mapKey", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "queueTransfer", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "queueTransferTimeout", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "agentTransfer", "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "agentTransferTimeout", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "mandatoryDispositionPauseId", + "description": "

Status to put when mandatory disposition is enabled

" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "mandatoryDisposition", + "description": "

Enabled/disables mandatory dispo on a queue

" } ] } @@ -19514,7 +23987,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/openchannel/applications -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/openchannel/applications -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -19723,7 +24196,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/openchannel/interactions -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/openchannel/interactions -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -19966,55 +24439,90 @@ define({ "api": [ "Body": [ { "group": "Body", - "type": "Text", - "optional": false, - "field": "body", + "type": "Boolean", + "optional": true, + "field": "closed", "description": "" }, { "group": "Body", - "type": "Boolean", + "type": "String", "optional": true, - "field": "read", + "field": "closedAt", "description": "" }, { "group": "Body", - "type": "Boolean", + "type": "String", "optional": true, - "field": "secret", + "field": "disposition", "description": "" }, { "group": "Body", "type": "String", - "allowedValues": [ - "\"in\"", - "\"out\"" - ], - "optional": false, - "field": "direction", + "optional": true, + "field": "secondDisposition", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "readAt", + "field": "thirdDisposition", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "providerName", + "field": "note", "description": "" }, { "group": "Body", - "type": "Text", + "type": "String", "optional": true, - "field": "providerResponse", + "field": "read1stAt", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "threadId", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "externalUrl", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "lastMsgAt", + "description": "" + }, + { + "group": "Body", + "type": "String", + "allowedValues": [ + "\"in\"", + "\"out\"" + ], + "optional": false, + "field": "lastMsgDirection", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "from", "description": "" } ] @@ -20086,7 +24594,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/openchannel/messages -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/openchannel/messages -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -20309,7 +24817,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/openchannel/reports/queue -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/openchannel/reports/queue -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -20538,7 +25046,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/openchannel/queues -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/openchannel/queues -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -20817,7 +25325,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/openchannel/reports/transfer -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/openchannel/reports/transfer -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -20957,7 +25465,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/pauses -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/pauses -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -21590,7 +26098,7 @@ define({ "api": [ }, { "type": "get", - "url": "/api/rpc/voice/channels", + "url": "/api/rpc/voice/channels/{uniqueid}/mixmonitor", "title": "Gets a list of RTVoiceChannelMixMonitor", "examples": [ { @@ -21608,7 +26116,7 @@ define({ "api": [ }, { "type": "get", - "url": "/api/rpc/voice/channels", + "url": "/api/rpc/voice/channels/{uniqueid}/stopmixmonitor", "title": "Gets a list of RTVoiceChannelStopMixMonitor", "examples": [ { @@ -22109,7 +26617,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/integrations/salesforce/accounts -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/integrations/salesforce/accounts -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -22393,7 +26901,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/integrations/salesforce/configurations -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/integrations/salesforce/configurations -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -22592,7 +27100,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/integrations/salesforce/fields -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/integrations/salesforce/fields -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -22748,7 +27256,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/schedules -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/schedules -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -22985,7 +27493,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/screen/recordings -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/screen/recordings -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -23187,7 +27695,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/integrations/servicenow/accounts -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/integrations/servicenow/accounts -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -23446,7 +27954,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/integrations/servicenow/configurations -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/integrations/servicenow/configurations -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -23610,7 +28118,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/integrations/servicenow/fields -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/integrations/servicenow/fields -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -24032,7 +28540,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/sms/accounts -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/sms/accounts -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -24466,14 +28974,121 @@ define({ "api": [ "group": "Body", "type": "String", "optional": false, + "field": "name", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": false, "field": "key", "description": "" }, { "group": "Body", - "type": "Text", + "type": "String", "optional": false, - "field": "value", + "field": "remote", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "token", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "phone", + "description": "" + }, + { + "group": "Body", + "type": "String", + "allowedValues": [ + "\"twilio\"", + "\"skebby\"", + "\"connectel\"", + "\"clicksend\"", + "\"plivo\"", + "\"clickatell\"", + "\"csc\"", + "\"infobip\"", + "\"intelepeer\"" + ], + "optional": true, + "field": "type", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "accountSid", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "authId", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "authToken", + "description": "" + }, + { + "group": "Body", + "type": "String", + "allowedValues": [ + "\"SI\"", + "\"TI\"", + "\"GP\"" + ], + "optional": true, + "field": "smsMethod", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "username", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "password", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "apiKey", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "senderString", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "deliveryReport", "description": "" }, { @@ -24485,10 +29100,80 @@ define({ "api": [ }, { "group": "Body", - "type": "Virtual", + "type": "Text", "optional": true, - "field": "name", + "field": "notificationTemplate", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "notificationSound", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "notificationShake", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "waitForTheAssignedAgent", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "queueTransfer", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "queueTransferTimeout", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "agentTransfer", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "agentTransferTimeout", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "baseUrl", "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "mandatoryDispositionPauseId", + "description": "

Status to put when mandatory disposition is enabled

" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "mandatoryDisposition", + "description": "

Enabled/disables mandatory dispo on a queue

" } ] } @@ -24516,23 +29201,123 @@ define({ "api": [ "Body": [ { "group": "Body", - "type": "Integer", + "type": "String", "optional": false, - "field": "priority", + "field": "name", "description": "" }, { "group": "Body", "type": "String", "optional": false, - "field": "app", + "field": "key", "description": "" }, { "group": "Body", - "type": "Text", + "type": "String", + "optional": false, + "field": "remote", + "description": "" + }, + { + "group": "Body", + "type": "String", "optional": true, - "field": "appdata", + "field": "token", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "phone", + "description": "" + }, + { + "group": "Body", + "type": "String", + "allowedValues": [ + "\"twilio\"", + "\"skebby\"", + "\"connectel\"", + "\"clicksend\"", + "\"plivo\"", + "\"clickatell\"", + "\"csc\"", + "\"infobip\"", + "\"intelepeer\"" + ], + "optional": true, + "field": "type", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "accountSid", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "authId", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "authToken", + "description": "" + }, + { + "group": "Body", + "type": "String", + "allowedValues": [ + "\"SI\"", + "\"TI\"", + "\"GP\"" + ], + "optional": true, + "field": "smsMethod", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "username", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "password", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "apiKey", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "senderString", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "deliveryReport", "description": "" }, { @@ -24544,10 +29329,80 @@ define({ "api": [ }, { "group": "Body", + "type": "Text", + "optional": true, + "field": "notificationTemplate", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "notificationSound", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "notificationShake", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "waitForTheAssignedAgent", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "queueTransfer", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "queueTransferTimeout", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "agentTransfer", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "agentTransferTimeout", + "description": "" + }, + { + "group": "Body", "type": "String", "optional": true, - "field": "interval", + "field": "baseUrl", "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "mandatoryDispositionPauseId", + "description": "

Status to put when mandatory disposition is enabled

" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "mandatoryDisposition", + "description": "

Enabled/disables mandatory dispo on a queue

" } ] } @@ -24583,13 +29438,115 @@ define({ "api": [ { "group": "Body", "type": "String", + "optional": false, + "field": "key", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": false, + "field": "remote", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "token", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "phone", + "description": "" + }, + { + "group": "Body", + "type": "String", "allowedValues": [ - "\"first\"", - "\"second\"", - "\"third\"" + "\"twilio\"", + "\"skebby\"", + "\"connectel\"", + "\"clicksend\"", + "\"plivo\"", + "\"clickatell\"", + "\"csc\"", + "\"infobip\"", + "\"intelepeer\"" ], - "optional": false, - "field": "level", + "optional": true, + "field": "type", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "accountSid", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "authId", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "authToken", + "description": "" + }, + { + "group": "Body", + "type": "String", + "allowedValues": [ + "\"SI\"", + "\"TI\"", + "\"GP\"" + ], + "optional": true, + "field": "smsMethod", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "username", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "password", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "apiKey", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "senderString", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "deliveryReport", "description": "" }, { @@ -24598,6 +29555,83 @@ define({ "api": [ "optional": true, "field": "description", "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "notificationTemplate", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "notificationSound", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "notificationShake", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "waitForTheAssignedAgent", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "queueTransfer", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "queueTransferTimeout", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "agentTransfer", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "agentTransferTimeout", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "baseUrl", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "mandatoryDispositionPauseId", + "description": "

Status to put when mandatory disposition is enabled

" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "mandatoryDisposition", + "description": "

Enabled/disables mandatory dispo on a queue

" } ] } @@ -24812,7 +29846,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/sms/applications -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/sms/applications -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -24991,7 +30025,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/sms/interactions -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/sms/interactions -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -25231,69 +30265,87 @@ define({ "api": [ "Body": [ { "group": "Body", - "type": "Text", - "optional": false, - "field": "body", + "type": "Boolean", + "optional": true, + "field": "closed", "description": "" }, { "group": "Body", - "type": "Boolean", + "type": "String", "optional": true, - "field": "read", + "field": "closedAt", "description": "" }, { "group": "Body", "type": "String", - "allowedValues": [ - "\"in\"", - "\"out\"" - ], - "optional": false, - "field": "direction", + "optional": true, + "field": "disposition", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "messageId", + "field": "secondDisposition", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "phone", + "field": "thirdDisposition", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "readAt", + "field": "note", "description": "" }, { "group": "Body", - "type": "Boolean", + "type": "String", "optional": true, - "field": "secret", + "field": "phone", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "providerName", + "field": "read1stAt", "description": "" }, { "group": "Body", - "type": "Text", + "type": "String", + "allowedValues": [ + "\"in\"", + "\"out\"" + ], + "optional": false, + "field": "firstMsgDirection", + "description": "" + }, + { + "group": "Body", + "type": "String", "optional": true, - "field": "providerResponse", + "field": "lastMsgAt", + "description": "" + }, + { + "group": "Body", + "type": "String", + "allowedValues": [ + "\"in\"", + "\"out\"" + ], + "optional": false, + "field": "lastMsgDirection", "description": "" } ] @@ -25365,7 +30417,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/sms/messages -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/sms/messages -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -25566,7 +30618,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/sms/reports/queue -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/sms/reports/queue -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -25795,7 +30847,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/sms/queues -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/sms/queues -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -26074,7 +31126,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/sms/reports/transfer -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/sms/reports/transfer -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -26362,7 +31414,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/square/details/reports -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/square/details/reports -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -26518,7 +31570,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/square/messages -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/square/messages -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -26663,7 +31715,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/square/odbc -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/square/odbc -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -26828,7 +31880,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/square/projects -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/square/projects -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -27043,7 +32095,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/square/recordings -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/square/recordings -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -27268,7 +32320,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/square/reports -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/square/reports -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -27594,7 +32646,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/integrations/sugarcrm/configurations -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/integrations/sugarcrm/configurations -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -27704,7 +32756,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/integrations/sugarcrm/accounts -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/integrations/sugarcrm/accounts -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -28010,7 +33062,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/integrations/sugarcrm/fields -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/integrations/sugarcrm/fields -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -28216,7 +33268,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/tags -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/tags -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -28351,7 +33403,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/teams -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/teams -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -28677,7 +33729,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/templates -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/templates -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -28824,7 +33876,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/triggers -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/triggers -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -29001,65 +34053,30 @@ define({ "api": [ "Body": [ { "group": "Body", - "type": "Virtual", - "optional": true, - "field": "name", - "description": "" - }, - { - "group": "Body", - "type": "String", - "optional": false, - "field": "action", - "description": "

Allowed values: contactManager, integration, motionbar, jscripty, urlForward, browser, bot, script

" - }, - { - "group": "Body", - "type": "String", - "optional": true, - "field": "data1", - "description": "

contactManager[ListId], integration[intName(zendesk)], motionbar[Popup(0),URL(1),WinApp(2)], urlForward[GET,POST], browser[TemplateId(0),URL(1)]

" - }, - { - "group": "Body", - "type": "String", - "optional": true, - "field": "data2", - "description": "

integration[AccountId], motionbar[TemplateId,URL,WinAppPath], urlForward[URL]

" - }, - { - "group": "Body", "type": "String", "optional": true, - "field": "data3", - "description": "

motionbar[NULL,NULL,WinAppArguments]

" - }, - { - "group": "Body", - "type": "String", - "optional": true, - "field": "data4", + "field": "name", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "data5", + "field": "channel", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "data6", + "field": "description", "description": "" }, { "group": "Body", - "type": "Text", + "type": "Boolean", "optional": true, - "field": "data7", + "field": "status", "description": "" } ] @@ -29088,7 +34105,7 @@ define({ "api": [ "Body": [ { "group": "Body", - "type": "Virtual", + "type": "String", "optional": true, "field": "name", "description": "" @@ -29096,22 +34113,22 @@ define({ "api": [ { "group": "Body", "type": "String", - "optional": false, - "field": "field", + "optional": true, + "field": "channel", "description": "" }, { "group": "Body", "type": "String", - "optional": false, - "field": "operator", + "optional": true, + "field": "description", "description": "" }, { "group": "Body", - "type": "String", - "optional": false, - "field": "value", + "type": "Boolean", + "optional": true, + "field": "status", "description": "" } ] @@ -29140,7 +34157,7 @@ define({ "api": [ "Body": [ { "group": "Body", - "type": "Virtual", + "type": "String", "optional": true, "field": "name", "description": "" @@ -29148,22 +34165,22 @@ define({ "api": [ { "group": "Body", "type": "String", - "optional": false, - "field": "field", + "optional": true, + "field": "channel", "description": "" }, { "group": "Body", "type": "String", - "optional": false, - "field": "operator", + "optional": true, + "field": "description", "description": "" }, { "group": "Body", - "type": "String", - "optional": false, - "field": "value", + "type": "Boolean", + "optional": true, + "field": "status", "description": "" } ] @@ -30354,7 +35371,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/userProfile/resources -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/userProfile/resources -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -30489,7 +35506,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/userProfile/sections -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/userProfile/sections -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -30699,7 +35716,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/userProfiles -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/userProfiles -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -32400,7 +37417,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/variables -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/variables -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -33529,7 +38546,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/voice/mails -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/voice/mails -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -33894,7 +38911,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/voice/mails/messages -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/voice/mails/messages -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -34500,7 +39517,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/voice/queues -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/voice/queues -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -35803,7 +40820,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/voice/recordings -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/voice/recordings -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -36253,7 +41270,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/voice/transfers/reports -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/voice/transfers/reports -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -36528,7 +41545,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/integrations/vtiger/accounts -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/integrations/vtiger/accounts -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -36787,7 +41804,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/integrations/vtiger/configurations -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/integrations/vtiger/configurations -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -36951,7 +41968,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/integrations/vtiger/fields -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/integrations/vtiger/fields -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -37419,7 +42436,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/whatsapp/accounts -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/whatsapp/accounts -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -37784,28 +42801,136 @@ define({ "api": [ "group": "Body", "type": "String", "optional": false, + "field": "name", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": false, "field": "key", "description": "" }, { "group": "Body", - "type": "Text", + "type": "String", "optional": false, - "field": "value", + "field": "remote", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "description", + "field": "token", "description": "" }, { "group": "Body", - "type": "Virtual", + "type": "String", "optional": true, - "field": "name", + "field": "phone", + "description": "" + }, + { + "group": "Body", + "type": "String", + "allowedValues": [ + "\"twilio\"" + ], + "optional": true, + "field": "type", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "accountSid", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "authToken", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "notificationTemplate", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "notificationSound", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "notificationShake", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "waitForTheAssignedAgent", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "queueTransfer", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "queueTransferTimeout", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "agentTransfer", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "agentTransferTimeout", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "mandatoryDispositionPauseId", + "description": "

Status to put when mandatory disposition is enabled

" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "mandatoryDisposition", + "description": "

Enabled/disables mandatory dispo on a queue

" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "description", "description": "" } ] @@ -37834,37 +42959,138 @@ define({ "api": [ "Body": [ { "group": "Body", - "type": "Integer", + "type": "String", "optional": false, - "field": "priority", + "field": "name", "description": "" }, { "group": "Body", "type": "String", "optional": false, - "field": "app", + "field": "key", "description": "" }, { "group": "Body", - "type": "Text", + "type": "String", + "optional": false, + "field": "remote", + "description": "" + }, + { + "group": "Body", + "type": "String", "optional": true, - "field": "appdata", + "field": "token", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "description", + "field": "phone", "description": "" }, { "group": "Body", "type": "String", + "allowedValues": [ + "\"twilio\"" + ], "optional": true, - "field": "interval", + "field": "type", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "accountSid", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "authToken", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "notificationTemplate", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "notificationSound", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "notificationShake", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "waitForTheAssignedAgent", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "queueTransfer", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "queueTransferTimeout", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "agentTransfer", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "agentTransferTimeout", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "mandatoryDispositionPauseId", + "description": "

Status to put when mandatory disposition is enabled

" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "mandatoryDisposition", + "description": "

Enabled/disables mandatory dispo on a queue

" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "description", "description": "" } ] @@ -37901,17 +43127,127 @@ define({ "api": [ { "group": "Body", "type": "String", + "optional": false, + "field": "key", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": false, + "field": "remote", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "token", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "phone", + "description": "" + }, + { + "group": "Body", + "type": "String", "allowedValues": [ - "\"first\"", - "\"second\"", - "\"third\"" + "\"twilio\"" ], - "optional": false, - "field": "level", + "optional": true, + "field": "type", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "accountSid", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "authToken", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "notificationTemplate", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "notificationSound", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "notificationShake", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "waitForTheAssignedAgent", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "queueTransfer", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "queueTransferTimeout", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "agentTransfer", "description": "" }, { "group": "Body", + "type": "Integer", + "optional": true, + "field": "agentTransferTimeout", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "mandatoryDispositionPauseId", + "description": "

Status to put when mandatory disposition is enabled

" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "mandatoryDisposition", + "description": "

Enabled/disables mandatory dispo on a queue

" + }, + { + "group": "Body", "type": "String", "optional": true, "field": "description", @@ -38076,7 +43412,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/whatsapp/applications -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/whatsapp/applications -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -38255,7 +43591,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/whatsapp/interactions -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/whatsapp/interactions -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -38495,69 +43831,87 @@ define({ "api": [ "Body": [ { "group": "Body", - "type": "Text", - "optional": false, - "field": "body", + "type": "Boolean", + "optional": true, + "field": "closed", "description": "" }, { "group": "Body", - "type": "Boolean", + "type": "String", "optional": true, - "field": "read", + "field": "closedAt", "description": "" }, { "group": "Body", "type": "String", - "allowedValues": [ - "\"in\"", - "\"out\"" - ], - "optional": false, - "field": "direction", + "optional": true, + "field": "disposition", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "messageId", + "field": "secondDisposition", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "phone", + "field": "thirdDisposition", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "readAt", + "field": "note", "description": "" }, { "group": "Body", - "type": "Boolean", + "type": "String", "optional": true, - "field": "secret", + "field": "phone", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "providerName", + "field": "read1stAt", "description": "" }, { "group": "Body", - "type": "Text", + "type": "String", + "allowedValues": [ + "\"in\"", + "\"out\"" + ], + "optional": false, + "field": "firstMsgDirection", + "description": "" + }, + { + "group": "Body", + "type": "String", "optional": true, - "field": "providerResponse", + "field": "lastMsgAt", + "description": "" + }, + { + "group": "Body", + "type": "String", + "allowedValues": [ + "\"in\"", + "\"out\"" + ], + "optional": false, + "field": "lastMsgDirection", "description": "" } ] @@ -38629,7 +43983,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/whatsapp/messages -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/whatsapp/messages -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -38830,7 +44184,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/whatsapp/reports/queue -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/whatsapp/reports/queue -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -39059,7 +44413,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/whatsapp/queues -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/whatsapp/queues -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -39338,7 +44692,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/whatsapp/reports/transfer -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/whatsapp/reports/transfer -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -39478,7 +44832,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/integrations/zendesk/accounts -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/integrations/zendesk/accounts -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -39759,7 +45113,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/integrations/zendesk/configurations -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/integrations/zendesk/configurations -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -39959,7 +45313,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/integrations/zendesk/fields -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/integrations/zendesk/fields -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -40129,7 +45483,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/integrations/zoho/accounts -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/integrations/zoho/accounts -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -40402,7 +45756,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/integrations/zoho/configurations -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/integrations/zoho/configurations -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -40590,7 +45944,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/integrations/zoho/fields -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/integrations/zoho/fields -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -40760,7 +46114,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/cdr -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/cdr -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -41021,7 +46375,7 @@ define({ "api": [ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/voiceQueuesLog -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/voiceQueuesLog -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], diff --git a/apidoc/api_data.json b/apidoc/api_data.json index 5c7e918..b4db153 100644 --- a/apidoc/api_data.json +++ b/apidoc/api_data.json @@ -92,7 +92,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/analytics/custom_reports -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/analytics/custom_reports -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -284,7 +284,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/analytics/default_reports -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/analytics/default_reports -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -476,7 +476,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/analytics/extracted_reports -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/analytics/extracted_reports -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -760,7 +760,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/analytics/field_reports -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/analytics/field_reports -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -923,7 +923,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/analytics/metrics -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/analytics/metrics -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -1047,7 +1047,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/analytics/tree_reports -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/analytics/tree_reports -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -1442,7 +1442,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/automations -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/automations -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -1566,65 +1566,37 @@ "Body": [ { "group": "Body", - "type": "Virtual", - "optional": true, - "field": "name", - "description": "" - }, - { - "group": "Body", "type": "String", "optional": false, - "field": "action", - "description": "

Allowed values: contactManager, integration, motionbar, jscripty, urlForward, browser, bot, script

" - }, - { - "group": "Body", - "type": "String", - "optional": true, - "field": "data1", - "description": "

contactManager[ListId], integration[intName(zendesk)], motionbar[Popup(0),URL(1),WinApp(2)], urlForward[GET,POST], browser[TemplateId(0),URL(1)]

" - }, - { - "group": "Body", - "type": "String", - "optional": true, - "field": "data2", - "description": "

integration[AccountId], motionbar[TemplateId,URL,WinAppPath], urlForward[URL]

" - }, - { - "group": "Body", - "type": "String", - "optional": true, - "field": "data3", - "description": "

motionbar[NULL,NULL,WinAppArguments]

" + "field": "name", + "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "data4", + "field": "channel", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "data5", + "field": "description", "description": "" }, { "group": "Body", - "type": "String", + "type": "Boolean", "optional": true, - "field": "data6", + "field": "status", "description": "" }, { "group": "Body", - "type": "Text", + "type": "Integer", "optional": true, - "field": "data7", + "field": "timeout", "description": "" } ] @@ -1653,30 +1625,37 @@ "Body": [ { "group": "Body", - "type": "Virtual", - "optional": true, + "type": "String", + "optional": false, "field": "name", "description": "" }, { "group": "Body", "type": "String", - "optional": false, - "field": "field", + "optional": true, + "field": "channel", "description": "" }, { "group": "Body", "type": "String", - "optional": false, - "field": "operator", + "optional": true, + "field": "description", "description": "" }, { "group": "Body", - "type": "String", - "optional": false, - "field": "value", + "type": "Boolean", + "optional": true, + "field": "status", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "timeout", "description": "" } ] @@ -1910,7 +1889,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/chat/groups -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/chat/groups -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -2201,7 +2180,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/chat/interactions -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/chat/interactions -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -2571,23 +2550,167 @@ "Body": [ { "group": "Body", + "type": "Boolean", + "optional": true, + "field": "closed", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "ratingValue", + "description": "" + }, + { + "group": "Body", + "type": "String", + "allowedValues": [ + "\"star\"", + "\"thumb\"" + ], + "optional": true, + "field": "ratingType", + "description": "" + }, + { + "group": "Body", "type": "Text", - "optional": false, - "field": "body", + "optional": true, + "field": "ratingMessage", "description": "" }, { "group": "Body", - "type": "Boolean", + "type": "Text", "optional": true, - "field": "read", + "field": "pathTranscript", "description": "" }, { "group": "Body", - "type": "Boolean", + "type": "String", "optional": true, - "field": "secret", + "field": "mailTranscript", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "closedAt", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "disposition", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "secondDisposition", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "thirdDisposition", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "note", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "browserName", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "browserVersion", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "osName", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "osVersion", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "deviceModel", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "deviceVendor", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "deviceType", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "referer", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "customerIp", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "formData", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "read1stAt", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "lastMsgAt", "description": "" }, { @@ -2598,28 +2721,28 @@ "\"out\"" ], "optional": false, - "field": "direction", + "field": "lastMsgDirection", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "readAt", + "field": "closeReason", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "providerName", + "field": "customerPort", "description": "" }, { "group": "Body", "type": "Text", "optional": true, - "field": "providerResponse", + "field": "vidaooSessionId", "description": "" } ] @@ -2781,7 +2904,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/chat/internal/messages -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/chat/internal/messages -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -2926,7 +3049,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/chat/messages -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/chat/messages -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -3093,7 +3216,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/chat/offline_messages -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/chat/offline_messages -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -3214,7 +3337,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/chat/proactive_actions -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/chat/proactive_actions -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -3334,7 +3457,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/chat/reports/queue -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/chat/reports/queue -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -3563,7 +3686,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/chat/queues -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/chat/queues -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -3842,7 +3965,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/chat/reports/transfer -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/chat/reports/transfer -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -4000,7 +4123,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/chat/websites -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/chat/websites -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -4802,28 +4925,603 @@ "group": "Body", "type": "String", "optional": false, + "field": "name", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": false, + "field": "address", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "description", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "mapKey", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "mapKeyOffline", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": false, "field": "key", "description": "" }, { "group": "Body", + "type": "String", + "optional": true, + "field": "agentAlias", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "customerAlias", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": false, + "field": "color", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": false, + "field": "color_button", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": false, + "field": "textColor", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "fontSize", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "remote", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "animation", + "description": "" + }, + { + "group": "Body", + "type": "String", + "allowedValues": [ + "\"rounded\"", + "\"squared\"" + ], + "optional": true, + "field": "header_shape", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "header_online", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "start_chat_button", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "offline_chat_button", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "header_offline", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "download_transcript", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "timeout", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "whiteLabel", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "defaultWhiteLabel", + "description": "" + }, + { + "group": "Body", "type": "Text", + "optional": true, + "field": "sitepic", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "closingQuestion", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "formSubmitSuccessMessage", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "formSubmitFailureMessage", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "noteTitle", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "placeholderMessage", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "closingMessage", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "closingMessageButton", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "skipMessageButton", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "conditionAgreement", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "enableRating", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "enableFeedback", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "enableSendButton", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "feedbackTitle", + "description": "" + }, + { + "group": "Body", + "type": "String", + "allowedValues": [ + "\"star\"", + "\"thumb\"" + ], + "optional": true, + "field": "ratingType", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "ratingStarsNumber", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "onlineForm", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "offlineForm", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "token", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "autoclose", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "enableCustomerWriting", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "forwardTranscript", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "forwardTranscriptMessage", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "forwardOffline", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "forwardOfflineAddress", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "waitingTitle", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "waitingMessage", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "offlineMessageSubject", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "offlineMessageBody", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "enableUnmanagedNote", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "unmanagedMessage", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "skipUnmanaged", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "sendUnmanaged", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "enableCustomerAttachment", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "enableCustomerCheckmarks", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "agentAvatar", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "showAgentAvatar", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "timezone", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "notificationTemplate", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "notificationSound", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "notificationShake", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "hideWhenOffline", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "agentIdentifier", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "waitForTheAssignedAgent", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "alignment", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "verticalAlignment", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "messagesAlignment", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "defaultTitle", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "customerAvatar", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "showCustomerAvatar", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "messageFontSize", + "description": "" + }, + { + "group": "Body", + "type": "String", "optional": false, - "field": "value", + "field": "backgroundColor", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "queueTransfer", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "queueTransferTimeout", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "agentTransfer", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "agentTransferTimeout", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "description", + "field": "systemAlias", "description": "" }, { "group": "Body", - "type": "Virtual", + "type": "Text", "optional": true, - "field": "name", + "field": "systemAvatar", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "mandatoryDispositionPauseId", + "description": "

Status to put when mandatory disposition is enabled

" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "mandatoryDisposition", + "description": "

Enabled/disables mandatory dispo on a queue

" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "vidaooEscalation", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "vidaooApiKey", "description": "" } ] @@ -4852,37 +5550,605 @@ "Body": [ { "group": "Body", - "type": "Integer", + "type": "String", "optional": false, - "field": "priority", + "field": "name", "description": "" }, { "group": "Body", "type": "String", "optional": false, - "field": "app", + "field": "address", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "description", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "mapKey", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "mapKeyOffline", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": false, + "field": "key", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "agentAlias", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "customerAlias", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": false, + "field": "color", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": false, + "field": "color_button", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": false, + "field": "textColor", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "fontSize", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "remote", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "animation", + "description": "" + }, + { + "group": "Body", + "type": "String", + "allowedValues": [ + "\"rounded\"", + "\"squared\"" + ], + "optional": true, + "field": "header_shape", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "header_online", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "start_chat_button", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "offline_chat_button", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "header_offline", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "download_transcript", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "timeout", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "whiteLabel", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "defaultWhiteLabel", "description": "" }, { "group": "Body", "type": "Text", "optional": true, - "field": "appdata", + "field": "sitepic", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "description", + "field": "closingQuestion", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "interval", + "field": "formSubmitSuccessMessage", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "formSubmitFailureMessage", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "noteTitle", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "placeholderMessage", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "closingMessage", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "closingMessageButton", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "skipMessageButton", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "conditionAgreement", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "enableRating", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "enableFeedback", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "enableSendButton", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "feedbackTitle", + "description": "" + }, + { + "group": "Body", + "type": "String", + "allowedValues": [ + "\"star\"", + "\"thumb\"" + ], + "optional": true, + "field": "ratingType", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "ratingStarsNumber", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "onlineForm", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "offlineForm", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "token", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "autoclose", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "enableCustomerWriting", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "forwardTranscript", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "forwardTranscriptMessage", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "forwardOffline", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "forwardOfflineAddress", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "waitingTitle", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "waitingMessage", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "offlineMessageSubject", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "offlineMessageBody", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "enableUnmanagedNote", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "unmanagedMessage", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "skipUnmanaged", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "sendUnmanaged", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "enableCustomerAttachment", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "enableCustomerCheckmarks", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "agentAvatar", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "showAgentAvatar", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "timezone", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "notificationTemplate", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "notificationSound", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "notificationShake", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "hideWhenOffline", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "agentIdentifier", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "waitForTheAssignedAgent", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "alignment", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "verticalAlignment", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "messagesAlignment", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "defaultTitle", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "customerAvatar", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "showCustomerAvatar", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "messageFontSize", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": false, + "field": "backgroundColor", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "queueTransfer", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "queueTransferTimeout", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "agentTransfer", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "agentTransferTimeout", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "systemAlias", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "systemAvatar", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "mandatoryDispositionPauseId", + "description": "

Status to put when mandatory disposition is enabled

" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "mandatoryDisposition", + "description": "

Enabled/disables mandatory dispo on a queue

" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "vidaooEscalation", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "vidaooApiKey", "description": "" } ] @@ -4955,13 +6221,8 @@ { "group": "Body", "type": "String", - "allowedValues": [ - "\"first\"", - "\"second\"", - "\"third\"" - ], "optional": false, - "field": "level", + "field": "address", "description": "" }, { @@ -4970,36 +6231,587 @@ "optional": true, "field": "description", "description": "" - } - ] - } - }, - "description": "

Motion will return a HTTP status code 201 upon success.

Motion renders the resulting JSON representation in the response body.

", - "version": "0.0.0", - "filename": "/home/vito/Development/MOTION_V3/motion-server/src/api/chatWebsite/index.js", - "groupTitle": "Chat_Websites" - }, - { - "type": "post", - "url": "/api/chat/websites/{id}/dispositions", - "title": "Creates new disposition", - "examples": [ - { - "title": "Example usage:", - "content": "curl https://{domain}/api/chat/websites/{id}/dispositions -d '{\"name\": \"vip\"}' -H 'Content-Type: application/json' -v -u {name}:{password} -X POST", - "type": "json" - } - ], - "name": "addDisposition", - "group": "Chat_Websites", - "parameter": { - "fields": { - "Body": [ + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "mapKey", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "mapKeyOffline", + "description": "" + }, { "group": "Body", "type": "String", "optional": false, - "field": "name", + "field": "key", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "agentAlias", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "customerAlias", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": false, + "field": "color", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": false, + "field": "color_button", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": false, + "field": "textColor", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "fontSize", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "remote", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "animation", + "description": "" + }, + { + "group": "Body", + "type": "String", + "allowedValues": [ + "\"rounded\"", + "\"squared\"" + ], + "optional": true, + "field": "header_shape", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "header_online", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "start_chat_button", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "offline_chat_button", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "header_offline", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "download_transcript", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "timeout", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "whiteLabel", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "defaultWhiteLabel", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "sitepic", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "closingQuestion", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "formSubmitSuccessMessage", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "formSubmitFailureMessage", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "noteTitle", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "placeholderMessage", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "closingMessage", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "closingMessageButton", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "skipMessageButton", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "conditionAgreement", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "enableRating", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "enableFeedback", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "enableSendButton", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "feedbackTitle", + "description": "" + }, + { + "group": "Body", + "type": "String", + "allowedValues": [ + "\"star\"", + "\"thumb\"" + ], + "optional": true, + "field": "ratingType", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "ratingStarsNumber", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "onlineForm", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "offlineForm", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "token", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "autoclose", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "enableCustomerWriting", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "forwardTranscript", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "forwardTranscriptMessage", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "forwardOffline", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "forwardOfflineAddress", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "waitingTitle", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "waitingMessage", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "offlineMessageSubject", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "offlineMessageBody", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "enableUnmanagedNote", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "unmanagedMessage", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "skipUnmanaged", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "sendUnmanaged", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "enableCustomerAttachment", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "enableCustomerCheckmarks", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "agentAvatar", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "showAgentAvatar", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "timezone", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "notificationTemplate", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "notificationSound", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "notificationShake", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "hideWhenOffline", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "agentIdentifier", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "waitForTheAssignedAgent", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "alignment", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "verticalAlignment", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "messagesAlignment", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "defaultTitle", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "customerAvatar", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "showCustomerAvatar", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "messageFontSize", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": false, + "field": "backgroundColor", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "queueTransfer", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "queueTransferTimeout", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "agentTransfer", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "agentTransferTimeout", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "systemAlias", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "systemAvatar", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "mandatoryDispositionPauseId", + "description": "

Status to put when mandatory disposition is enabled

" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "mandatoryDisposition", + "description": "

Enabled/disables mandatory dispo on a queue

" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "vidaooEscalation", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "vidaooApiKey", "description": "" } ] @@ -5028,16 +6840,265 @@ "Body": [ { "group": "Body", + "type": "String", + "optional": false, + "field": "name", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": false, + "field": "address", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "description", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "mapKey", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "mapKeyOffline", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": false, + "field": "key", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "agentAlias", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "customerAlias", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": false, + "field": "color", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": false, + "field": "color_button", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": false, + "field": "textColor", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "fontSize", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "remote", + "description": "" + }, + { + "group": "Body", "type": "Boolean", "optional": true, - "field": "closed", + "field": "animation", + "description": "" + }, + { + "group": "Body", + "type": "String", + "allowedValues": [ + "\"rounded\"", + "\"squared\"" + ], + "optional": true, + "field": "header_shape", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "header_online", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "start_chat_button", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "offline_chat_button", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "header_offline", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "download_transcript", "description": "" }, { "group": "Body", "type": "Integer", "optional": true, - "field": "ratingValue", + "field": "timeout", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "whiteLabel", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "defaultWhiteLabel", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "sitepic", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "closingQuestion", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "formSubmitSuccessMessage", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "formSubmitFailureMessage", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "noteTitle", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "placeholderMessage", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "closingMessage", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "closingMessageButton", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "skipMessageButton", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "conditionAgreement", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "enableRating", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "enableFeedback", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "enableSendButton", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "feedbackTitle", "description": "" }, { @@ -5053,174 +7114,331 @@ }, { "group": "Body", + "type": "Integer", + "optional": true, + "field": "ratingStarsNumber", + "description": "" + }, + { + "group": "Body", "type": "Text", "optional": true, - "field": "ratingMessage", + "field": "onlineForm", "description": "" }, { "group": "Body", "type": "Text", "optional": true, - "field": "pathTranscript", + "field": "offlineForm", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "mailTranscript", + "field": "token", "description": "" }, { "group": "Body", - "type": "String", + "type": "Boolean", "optional": true, - "field": "closedAt", + "field": "autoclose", "description": "" }, { "group": "Body", - "type": "String", + "type": "Boolean", "optional": true, - "field": "disposition", + "field": "enableCustomerWriting", "description": "" }, { "group": "Body", - "type": "String", + "type": "Boolean", "optional": true, - "field": "secondDisposition", + "field": "forwardTranscript", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "thirdDisposition", + "field": "forwardTranscriptMessage", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "forwardOffline", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "note", + "field": "forwardOfflineAddress", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "browserName", + "field": "waitingTitle", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "browserVersion", + "field": "waitingMessage", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "osName", + "field": "offlineMessageSubject", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "osVersion", + "field": "offlineMessageBody", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "enableUnmanagedNote", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "deviceModel", + "field": "unmanagedMessage", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "deviceVendor", + "field": "skipUnmanaged", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "deviceType", + "field": "sendUnmanaged", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "enableCustomerAttachment", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "enableCustomerCheckmarks", "description": "" }, { "group": "Body", "type": "Text", "optional": true, - "field": "referer", + "field": "agentAvatar", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "showAgentAvatar", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "customerIp", + "field": "timezone", "description": "" }, { "group": "Body", "type": "Text", "optional": true, - "field": "formData", + "field": "notificationTemplate", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "notificationSound", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "notificationShake", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "hideWhenOffline", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "read1stAt", + "field": "agentIdentifier", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "waitForTheAssignedAgent", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "lastMsgAt", + "field": "alignment", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "verticalAlignment", "description": "" }, { "group": "Body", "type": "String", - "allowedValues": [ - "\"in\"", - "\"out\"" - ], - "optional": false, - "field": "lastMsgDirection", + "optional": true, + "field": "messagesAlignment", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "closeReason", + "field": "defaultTitle", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "customerAvatar", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "showCustomerAvatar", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "messageFontSize", "description": "" }, { "group": "Body", "type": "String", + "optional": false, + "field": "backgroundColor", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", "optional": true, - "field": "customerPort", + "field": "queueTransfer", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "queueTransferTimeout", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "agentTransfer", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "agentTransferTimeout", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "systemAlias", "description": "" }, { "group": "Body", "type": "Text", "optional": true, - "field": "vidaooSessionId", + "field": "systemAvatar", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "mandatoryDispositionPauseId", + "description": "

Status to put when mandatory disposition is enabled

" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "mandatoryDisposition", + "description": "

Enabled/disables mandatory dispo on a queue

" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "vidaooEscalation", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "vidaooApiKey", "description": "" } ] @@ -5275,19 +7493,138 @@ { "group": "Body", "type": "String", + "optional": false, + "field": "address", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "description", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "mapKey", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "mapKeyOffline", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": false, + "field": "key", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "agentAlias", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "customerAlias", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": false, + "field": "color", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": false, + "field": "color_button", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": false, + "field": "textColor", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "fontSize", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "remote", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "animation", + "description": "" + }, + { + "group": "Body", + "type": "String", "allowedValues": [ - "\"mouseOver\"", - "\"timeout\"" + "\"rounded\"", + "\"squared\"" ], "optional": true, - "field": "type", + "field": "header_shape", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "selector", + "field": "header_online", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "start_chat_button", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "offline_chat_button", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "header_offline", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "download_transcript", "description": "" }, { @@ -5296,6 +7633,458 @@ "optional": true, "field": "timeout", "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "whiteLabel", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "defaultWhiteLabel", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "sitepic", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "closingQuestion", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "formSubmitSuccessMessage", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "formSubmitFailureMessage", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "noteTitle", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "placeholderMessage", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "closingMessage", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "closingMessageButton", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "skipMessageButton", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "conditionAgreement", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "enableRating", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "enableFeedback", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "enableSendButton", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "feedbackTitle", + "description": "" + }, + { + "group": "Body", + "type": "String", + "allowedValues": [ + "\"star\"", + "\"thumb\"" + ], + "optional": true, + "field": "ratingType", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "ratingStarsNumber", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "onlineForm", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "offlineForm", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "token", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "autoclose", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "enableCustomerWriting", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "forwardTranscript", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "forwardTranscriptMessage", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "forwardOffline", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "forwardOfflineAddress", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "waitingTitle", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "waitingMessage", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "offlineMessageSubject", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "offlineMessageBody", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "enableUnmanagedNote", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "unmanagedMessage", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "skipUnmanaged", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "sendUnmanaged", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "enableCustomerAttachment", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "enableCustomerCheckmarks", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "agentAvatar", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "showAgentAvatar", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "timezone", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "notificationTemplate", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "notificationSound", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "notificationShake", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "hideWhenOffline", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "agentIdentifier", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "waitForTheAssignedAgent", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "alignment", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "verticalAlignment", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "messagesAlignment", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "defaultTitle", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "customerAvatar", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "showCustomerAvatar", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "messageFontSize", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": false, + "field": "backgroundColor", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "queueTransfer", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "queueTransferTimeout", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "agentTransfer", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "agentTransferTimeout", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "systemAlias", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "systemAvatar", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "mandatoryDispositionPauseId", + "description": "

Status to put when mandatory disposition is enabled

" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "mandatoryDisposition", + "description": "

Enabled/disables mandatory dispo on a queue

" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "vidaooEscalation", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "vidaooApiKey", + "description": "" } ] } @@ -5397,6 +8186,24 @@ }, { "type": "get", + "url": "/api/chat/websites/{id}/dispositions", + "title": "Gets account dispositions", + "examples": [ + { + "title": "Example usage:", + "content": "curl https://{domain}/api/chat/websites/{id}/dispositions -v -u {name}:{password} -X GET", + "type": "json" + } + ], + "name": "getDispositions", + "group": "Chat_Websites", + "description": "

Motion will return a HTTP status code 200 upon success. Motion return a HTTP status code 404 if the corresponding record could not be located.

Motion renders the resulting JSON representation in the response body.

", + "version": "0.0.0", + "filename": "/home/vito/Development/MOTION_V3/motion-server/src/api/chatWebsite/index.js", + "groupTitle": "Chat_Websites" + }, + { + "type": "get", "url": "/api/chat/websites/{id}/fields", "title": "Gets Website Fields", "examples": [ @@ -5600,7 +8407,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/cloudProviders -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/cloudProviders -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -5728,7 +8535,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/cm/companies -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/cm/companies -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -5963,56 +8770,28 @@ "group": "Body", "type": "String", "optional": false, - "field": "firstName", - "description": "" - }, - { - "group": "Body", - "type": "String", - "optional": true, - "field": "lastName", - "description": "" - }, - { - "group": "Body", - "type": "String", - "optional": true, - "field": "street", - "description": "" - }, - { - "group": "Body", - "type": "String", - "optional": true, - "field": "postalCode", + "field": "name", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "city", + "field": "vat", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "country", + "field": "companyId", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "dateOfBirth", - "description": "" - }, - { - "group": "Body", - "type": "Text", - "optional": true, - "field": "description", + "field": "website", "description": "" }, { @@ -6026,13 +8805,6 @@ "group": "Body", "type": "String", "optional": true, - "field": "mobile", - "description": "" - }, - { - "group": "Body", - "type": "String", - "optional": true, "field": "fax", "description": "" }, @@ -6040,98 +8812,84 @@ "group": "Body", "type": "String", "optional": true, - "field": "email", + "field": "type", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "url", + "field": "street", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "facebook", + "field": "postalCode", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "fb_data", + "field": "city", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "twitter", + "field": "country", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "skype", + "field": "email", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "teams", + "field": "emailDomain", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "viber", + "field": "sStreet", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "line", + "field": "sPostalCode", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "wechat", + "field": "sCity", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "telegram", - "description": "" - }, - { - "group": "Body", - "type": "Integer", - "optional": true, - "field": "UserId", - "description": "" - }, - { - "group": "Body", - "type": "Integer", - "optional": true, - "field": "priority", + "field": "sCountry", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "scheduledat", + "field": "description", "description": "" } ] @@ -6559,7 +9317,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/cm/hopper -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/cm/hopper -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -7306,7 +10064,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/cm/hopper_history -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/cm/hopper_history -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -7867,7 +10625,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/cm/lists -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/cm/lists -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -8069,55 +10827,13 @@ "group": "Body", "type": "String", "optional": false, - "field": "firstName", - "description": "" - }, - { - "group": "Body", - "type": "String", - "optional": true, - "field": "lastName", - "description": "" - }, - { - "group": "Body", - "type": "String", - "optional": true, - "field": "street", - "description": "" - }, - { - "group": "Body", - "type": "String", - "optional": true, - "field": "postalCode", - "description": "" - }, - { - "group": "Body", - "type": "String", - "optional": true, - "field": "city", - "description": "" - }, - { - "group": "Body", - "type": "String", - "optional": true, - "field": "country", + "field": "name", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "dateOfBirth", - "description": "" - }, - { - "group": "Body", - "type": "Text", - "optional": true, "field": "description", "description": "" }, @@ -8125,119 +10841,7 @@ "group": "Body", "type": "String", "optional": true, - "field": "phone", - "description": "" - }, - { - "group": "Body", - "type": "String", - "optional": true, - "field": "mobile", - "description": "" - }, - { - "group": "Body", - "type": "String", - "optional": true, - "field": "fax", - "description": "" - }, - { - "group": "Body", - "type": "String", - "optional": true, - "field": "email", - "description": "" - }, - { - "group": "Body", - "type": "String", - "optional": true, - "field": "url", - "description": "" - }, - { - "group": "Body", - "type": "String", - "optional": true, - "field": "facebook", - "description": "" - }, - { - "group": "Body", - "type": "String", - "optional": true, - "field": "fb_data", - "description": "" - }, - { - "group": "Body", - "type": "String", - "optional": true, - "field": "twitter", - "description": "" - }, - { - "group": "Body", - "type": "String", - "optional": true, - "field": "skype", - "description": "" - }, - { - "group": "Body", - "type": "String", - "optional": true, - "field": "teams", - "description": "" - }, - { - "group": "Body", - "type": "String", - "optional": true, - "field": "viber", - "description": "" - }, - { - "group": "Body", - "type": "String", - "optional": true, - "field": "line", - "description": "" - }, - { - "group": "Body", - "type": "String", - "optional": true, - "field": "wechat", - "description": "" - }, - { - "group": "Body", - "type": "String", - "optional": true, - "field": "telegram", - "description": "" - }, - { - "group": "Body", - "type": "Integer", - "optional": true, - "field": "UserId", - "description": "" - }, - { - "group": "Body", - "type": "Integer", - "optional": true, - "field": "priority", - "description": "" - }, - { - "group": "Body", - "type": "String", - "optional": true, - "field": "scheduledat", + "field": "dialPrefix", "description": "" } ] @@ -8292,20 +10896,15 @@ { "group": "Body", "type": "String", - "allowedValues": [ - "\"first\"", - "\"second\"", - "\"third\"" - ], - "optional": false, - "field": "level", + "optional": true, + "field": "description", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "description", + "field": "dialPrefix", "description": "" } ] @@ -8593,7 +11192,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/dashboards -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/dashboards -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -8739,7 +11338,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/integrations/desk/accounts -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/integrations/desk/accounts -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -9040,7 +11639,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/integrations/desk/configurations -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/integrations/desk/configurations -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -9240,7 +11839,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/integrations/desk/fields -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/integrations/desk/fields -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -9410,7 +12009,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/dispositions -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/dispositions -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -9532,7 +12131,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/integrations/dynamics365/accounts -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/integrations/dynamics365/accounts -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -9805,7 +12404,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/integrations/dynamics365/configurations -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/integrations/dynamics365/configurations -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -9980,7 +12579,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/integrations/dynamics365/fields -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/integrations/dynamics365/fields -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -10168,7 +12767,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/fax/accounts -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/fax/accounts -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -10566,29 +13165,188 @@ "group": "Body", "type": "String", "optional": false, + "field": "name", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "description", + "description": "" + }, + { + "group": "Body", + "type": "String", + "allowedValues": [ + "\"yes\"", + "\"no\"" + ], + "optional": true, + "field": "ecm", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "headerinfo", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "localstationid", + "description": "" + }, + { + "group": "Body", + "type": "String", + "allowedValues": [ + "\"2400\"", + "\"4800\"", + "\"7200\"", + "\"9600\"", + "\"12000\"", + "\"14400\"" + ], + "optional": true, + "field": "minrate", + "description": "" + }, + { + "group": "Body", + "type": "String", + "allowedValues": [ + "\"2400\"", + "\"4800\"", + "\"7200\"", + "\"9600\"", + "\"12000\"", + "\"14400\"" + ], + "optional": true, + "field": "maxrate", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "modem", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "gateway", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "faxdetect", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "t38timeout", + "description": "" + }, + { + "group": "Body", + "type": "String", + "allowedValues": [ + "\"SIP\"", + "\"IAX\"", + "\"DADHI\"", + "\"KHOMP\"" + ], + "optional": true, + "field": "tech", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": false, "field": "key", "description": "" }, { "group": "Body", "type": "Text", - "optional": false, - "field": "value", + "optional": true, + "field": "notificationTemplate", "description": "" }, { "group": "Body", - "type": "String", + "type": "Boolean", "optional": true, - "field": "description", + "field": "notificationSound", "description": "" }, { "group": "Body", - "type": "Virtual", + "type": "Boolean", "optional": true, - "field": "name", + "field": "notificationShake", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "waitForTheAssignedAgent", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "queueTransfer", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "queueTransferTimeout", "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "agentTransfer", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "agentTransferTimeout", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "mandatoryDispositionPauseId", + "description": "

Status to put when mandatory disposition is enabled

" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "mandatoryDisposition", + "description": "

Enabled/disables mandatory dispo on a queue

" } ] } @@ -10616,38 +13374,190 @@ "Body": [ { "group": "Body", - "type": "Integer", + "type": "String", "optional": false, - "field": "priority", + "field": "name", "description": "" }, { "group": "Body", "type": "String", - "optional": false, - "field": "app", + "optional": true, + "field": "description", "description": "" }, { "group": "Body", - "type": "Text", + "type": "String", + "allowedValues": [ + "\"yes\"", + "\"no\"" + ], "optional": true, - "field": "appdata", + "field": "ecm", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "description", + "field": "headerinfo", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "interval", + "field": "localstationid", + "description": "" + }, + { + "group": "Body", + "type": "String", + "allowedValues": [ + "\"2400\"", + "\"4800\"", + "\"7200\"", + "\"9600\"", + "\"12000\"", + "\"14400\"" + ], + "optional": true, + "field": "minrate", + "description": "" + }, + { + "group": "Body", + "type": "String", + "allowedValues": [ + "\"2400\"", + "\"4800\"", + "\"7200\"", + "\"9600\"", + "\"12000\"", + "\"14400\"" + ], + "optional": true, + "field": "maxrate", "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "modem", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "gateway", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "faxdetect", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "t38timeout", + "description": "" + }, + { + "group": "Body", + "type": "String", + "allowedValues": [ + "\"SIP\"", + "\"IAX\"", + "\"DADHI\"", + "\"KHOMP\"" + ], + "optional": true, + "field": "tech", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": false, + "field": "key", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "notificationTemplate", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "notificationSound", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "notificationShake", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "waitForTheAssignedAgent", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "queueTransfer", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "queueTransferTimeout", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "agentTransfer", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "agentTransferTimeout", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "mandatoryDispositionPauseId", + "description": "

Status to put when mandatory disposition is enabled

" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "mandatoryDisposition", + "description": "

Enabled/disables mandatory dispo on a queue

" } ] } @@ -10675,38 +13585,190 @@ "Body": [ { "group": "Body", - "type": "Integer", + "type": "String", "optional": false, - "field": "priority", + "field": "name", "description": "" }, { "group": "Body", "type": "String", - "optional": false, - "field": "app", + "optional": true, + "field": "description", "description": "" }, { "group": "Body", - "type": "Text", + "type": "String", + "allowedValues": [ + "\"yes\"", + "\"no\"" + ], "optional": true, - "field": "appdata", + "field": "ecm", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "description", + "field": "headerinfo", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "interval", + "field": "localstationid", + "description": "" + }, + { + "group": "Body", + "type": "String", + "allowedValues": [ + "\"2400\"", + "\"4800\"", + "\"7200\"", + "\"9600\"", + "\"12000\"", + "\"14400\"" + ], + "optional": true, + "field": "minrate", + "description": "" + }, + { + "group": "Body", + "type": "String", + "allowedValues": [ + "\"2400\"", + "\"4800\"", + "\"7200\"", + "\"9600\"", + "\"12000\"", + "\"14400\"" + ], + "optional": true, + "field": "maxrate", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "modem", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "gateway", "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "faxdetect", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "t38timeout", + "description": "" + }, + { + "group": "Body", + "type": "String", + "allowedValues": [ + "\"SIP\"", + "\"IAX\"", + "\"DADHI\"", + "\"KHOMP\"" + ], + "optional": true, + "field": "tech", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": false, + "field": "key", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "notificationTemplate", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "notificationSound", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "notificationShake", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "waitForTheAssignedAgent", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "queueTransfer", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "queueTransferTimeout", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "agentTransfer", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "agentTransferTimeout", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "mandatoryDispositionPauseId", + "description": "

Status to put when mandatory disposition is enabled

" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "mandatoryDisposition", + "description": "

Enabled/disables mandatory dispo on a queue

" } ] } @@ -10742,21 +13804,182 @@ { "group": "Body", "type": "String", + "optional": true, + "field": "description", + "description": "" + }, + { + "group": "Body", + "type": "String", "allowedValues": [ - "\"first\"", - "\"second\"", - "\"third\"" + "\"yes\"", + "\"no\"" ], - "optional": false, - "field": "level", + "optional": true, + "field": "ecm", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "description", + "field": "headerinfo", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "localstationid", + "description": "" + }, + { + "group": "Body", + "type": "String", + "allowedValues": [ + "\"2400\"", + "\"4800\"", + "\"7200\"", + "\"9600\"", + "\"12000\"", + "\"14400\"" + ], + "optional": true, + "field": "minrate", + "description": "" + }, + { + "group": "Body", + "type": "String", + "allowedValues": [ + "\"2400\"", + "\"4800\"", + "\"7200\"", + "\"9600\"", + "\"12000\"", + "\"14400\"" + ], + "optional": true, + "field": "maxrate", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "modem", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "gateway", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "faxdetect", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "t38timeout", + "description": "" + }, + { + "group": "Body", + "type": "String", + "allowedValues": [ + "\"SIP\"", + "\"IAX\"", + "\"DADHI\"", + "\"KHOMP\"" + ], + "optional": true, + "field": "tech", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": false, + "field": "key", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "notificationTemplate", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "notificationSound", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "notificationShake", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "waitForTheAssignedAgent", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "queueTransfer", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "queueTransferTimeout", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "agentTransfer", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "agentTransferTimeout", "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "mandatoryDispositionPauseId", + "description": "

Status to put when mandatory disposition is enabled

" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "mandatoryDisposition", + "description": "

Enabled/disables mandatory dispo on a queue

" } ] } @@ -10784,88 +14007,190 @@ "Body": [ { "group": "Body", - "type": "Boolean", - "optional": true, - "field": "closed", + "type": "String", + "optional": false, + "field": "name", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "closedAt", + "field": "description", "description": "" }, { "group": "Body", "type": "String", + "allowedValues": [ + "\"yes\"", + "\"no\"" + ], "optional": true, - "field": "disposition", + "field": "ecm", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "secondDisposition", + "field": "headerinfo", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "thirdDisposition", + "field": "localstationid", "description": "" }, { "group": "Body", "type": "String", + "allowedValues": [ + "\"2400\"", + "\"4800\"", + "\"7200\"", + "\"9600\"", + "\"12000\"", + "\"14400\"" + ], "optional": true, - "field": "note", + "field": "minrate", "description": "" }, { "group": "Body", "type": "String", + "allowedValues": [ + "\"2400\"", + "\"4800\"", + "\"7200\"", + "\"9600\"", + "\"12000\"", + "\"14400\"" + ], "optional": true, - "field": "read1stAt", + "field": "maxrate", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "fax", + "field": "modem", "description": "" }, { "group": "Body", "type": "String", - "allowedValues": [ - "\"in\"", - "\"out\"" - ], - "optional": false, - "field": "firstMsgDirection", + "optional": true, + "field": "gateway", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "lastMsgAt", + "field": "faxdetect", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "t38timeout", "description": "" }, { "group": "Body", "type": "String", "allowedValues": [ - "\"in\"", - "\"out\"" + "\"SIP\"", + "\"IAX\"", + "\"DADHI\"", + "\"KHOMP\"" ], + "optional": true, + "field": "tech", + "description": "" + }, + { + "group": "Body", + "type": "String", "optional": false, - "field": "lastMsgDirection", + "field": "key", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "notificationTemplate", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "notificationSound", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "notificationShake", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "waitForTheAssignedAgent", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "queueTransfer", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "queueTransferTimeout", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "agentTransfer", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "agentTransferTimeout", "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "mandatoryDispositionPauseId", + "description": "

Status to put when mandatory disposition is enabled

" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "mandatoryDisposition", + "description": "

Enabled/disables mandatory dispo on a queue

" } ] } @@ -11019,38 +14344,190 @@ "Body": [ { "group": "Body", - "type": "Integer", + "type": "String", "optional": false, - "field": "priority", + "field": "name", "description": "" }, { "group": "Body", "type": "String", - "optional": false, - "field": "app", + "optional": true, + "field": "description", "description": "" }, { "group": "Body", - "type": "Text", + "type": "String", + "allowedValues": [ + "\"yes\"", + "\"no\"" + ], "optional": true, - "field": "appdata", + "field": "ecm", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "description", + "field": "headerinfo", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "interval", + "field": "localstationid", + "description": "" + }, + { + "group": "Body", + "type": "String", + "allowedValues": [ + "\"2400\"", + "\"4800\"", + "\"7200\"", + "\"9600\"", + "\"12000\"", + "\"14400\"" + ], + "optional": true, + "field": "minrate", + "description": "" + }, + { + "group": "Body", + "type": "String", + "allowedValues": [ + "\"2400\"", + "\"4800\"", + "\"7200\"", + "\"9600\"", + "\"12000\"", + "\"14400\"" + ], + "optional": true, + "field": "maxrate", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "modem", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "gateway", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "faxdetect", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "t38timeout", + "description": "" + }, + { + "group": "Body", + "type": "String", + "allowedValues": [ + "\"SIP\"", + "\"IAX\"", + "\"DADHI\"", + "\"KHOMP\"" + ], + "optional": true, + "field": "tech", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": false, + "field": "key", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "notificationTemplate", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "notificationSound", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "notificationShake", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "waitForTheAssignedAgent", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "queueTransfer", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "queueTransferTimeout", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "agentTransfer", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "agentTransferTimeout", "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "mandatoryDispositionPauseId", + "description": "

Status to put when mandatory disposition is enabled

" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "mandatoryDisposition", + "description": "

Enabled/disables mandatory dispo on a queue

" } ] } @@ -11067,7 +14544,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/fax/applications -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/fax/applications -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -11276,7 +14753,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/fax/interactions -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/fax/interactions -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -11516,16 +14993,58 @@ "Body": [ { "group": "Body", - "type": "Text", - "optional": false, - "field": "body", + "type": "Boolean", + "optional": true, + "field": "closed", "description": "" }, { "group": "Body", - "type": "Boolean", + "type": "String", "optional": true, - "field": "read", + "field": "closedAt", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "disposition", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "secondDisposition", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "thirdDisposition", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "note", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "read1stAt", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "fax", "description": "" }, { @@ -11536,21 +15055,25 @@ "\"out\"" ], "optional": false, - "field": "direction", + "field": "firstMsgDirection", "description": "" }, { "group": "Body", - "type": "Text", + "type": "String", "optional": true, - "field": "failMessage", + "field": "lastMsgAt", "description": "" }, { "group": "Body", "type": "String", - "optional": true, - "field": "readAt", + "allowedValues": [ + "\"in\"", + "\"out\"" + ], + "optional": false, + "field": "lastMsgDirection", "description": "" } ] @@ -11834,7 +15357,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/fax/reports/queue -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/fax/reports/queue -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -12063,7 +15586,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/fax/queues -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/fax/queues -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -12349,7 +15872,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/fax/reports/transfer -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/fax/reports/transfer -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -12489,7 +16012,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/integrations/freshdesk/accounts -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/integrations/freshdesk/accounts -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -12741,7 +16264,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/integrations/freshdesk/configurations -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/integrations/freshdesk/configurations -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -12941,7 +16464,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/integrations/freshdesk/fields -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/integrations/freshdesk/fields -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -13111,7 +16634,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/integrations/freshsales/accounts -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/integrations/freshsales/accounts -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -13363,7 +16886,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/integrations/freshsales/configurations -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/integrations/freshsales/configurations -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -13527,7 +17050,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/integrations/freshsales/fields -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/integrations/freshsales/fields -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -13751,7 +17274,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/campaigns -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/campaigns -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -14327,7 +17850,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/integrations/reports -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/integrations/reports -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -14883,12 +18406,213 @@ }, { "type": "post", + "url": "/api/integrations", + "title": "Creates a new Integration", + "examples": [ + { + "title": "Example usage:", + "content": "curl https://{domain}/api/integrations -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "type": "json" + } + ], + "name": "CreateIntegrations", + "group": "Integrations", + "parameter": { + "fields": { + "Body": [ + { + "group": "Body", + "type": "String", + "optional": false, + "field": "name", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": false, + "field": "version", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "main", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "filename", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "path", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "type", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "size", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "active", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "author", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "logo", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "state", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "description", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "title", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "remoteUri", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "link", + "description": "" + } + ] + } + }, + "description": "

Motion will return a HTTP status code 201 upon success.

Motion renders the resulting JSON representation in the response body.

", + "version": "0.0.0", + "filename": "/home/vito/Development/MOTION_V3/motion-server/src/api/integration/index.js", + "groupTitle": "Integrations" + }, + { + "type": "delete", + "url": "/api/integrations/{id}", + "title": "Deletes a Integration", + "examples": [ + { + "title": "Example usage:", + "content": "curl https://{domain}/api/integrations/{id} -v -u {name}:{password} -X DELETE", + "type": "json" + } + ], + "name": "DeleteIntegrations", + "group": "Integrations", + "description": "

Motion will return a HTTP status code 204 upon success. Motion return a HTTP status code 404 if the corresponding record could not be located.

Motion renders the resulting JSON representation in the response body.

", + "version": "0.0.0", + "filename": "/home/vito/Development/MOTION_V3/motion-server/src/api/integration/index.js", + "groupTitle": "Integrations" + }, + { + "type": "get", + "url": "/api/integrations", + "title": "Gets a list of Integrations", + "examples": [ + { + "title": "Example usage:", + "content": "curl https://{domain}/api/integrations -v -u {name}:{password}", + "type": "json" + } + ], + "name": "GetIntegrations", + "group": "Integrations", + "description": "

Motion will always return paged results. Motion returns paging data in the Content-Range header in the form start - end / total.

Upon success Motion will return a HTTP status code 200 OK if the entire collection was returned otherwise it will return a HTTP status code 206 Partial Content.

Motion renders the resulting JSON representation in the response body.

Retrieving Specific Fields

To return only specific fields for a result set you can utilize the fields parameter. This parameter accepts a comma-separated list.

A call returning only id and name for a result set would look like this.

GET /api/integrations?fields=id,name

Filtering

You can perform exact-match filtering on any of a model's fields by using the field name as the key and supplying it with a value. These parameters accept a comma-separated list.

A call returning a result set for records with name of john.doe or jane.miller.

GET /api/integrations?name=john.doe,jane.miller

If you use the key filter the result will be filtered by the value you specify.

GET /api/integrations?filter=john

Sorting

To sort a result set based on one or several fields you can utilize the sort parameter. This parameters accepts a comma-separated list.

Results will be sorted in the order of the fields provided. The default sorting order for fields is ascending. Fields can be sorted in descending order by prefixing them with a dash (-).

A call sorting a result by id ascending and then name descending would look like this.

GET /api/integrations?sort=id,-name

Offset and Limit

Query results are always paged. Motion leverages the offset and limit parameters to facilitate this.

When the neither of these parameters are explicitly supplied the handler will assume the a default limit of 100.

offset is a number indicating the start position in the result set you want to return.

limit is a number indicating how many records past the start position you want returned.

A call with a result set starting at 5 and returning no more than 25 records would look like this.

GET /api/integrations?offset=5&limit=25

If there were 50 records in total, the returned Content-Range header would look like this.

Content-Range: 5-30/50

", + "version": "0.0.0", + "filename": "/home/vito/Development/MOTION_V3/motion-server/src/api/integration/index.js", + "groupTitle": "Integrations" + }, + { + "type": "get", + "url": "/api/integrations/{id}", + "title": "Gets a single Integration", + "examples": [ + { + "title": "Example usage:", + "content": "curl https://{domain}/api/integrations/{id} -v -u {name}:{password}", + "type": "json" + } + ], + "name": "ShowIntegrations", + "group": "Integrations", + "description": "

Motion will return a HTTP status code 200 upon success. Motion return a HTTP status code 404 if the corresponding record could not be located.

Motion renders the resulting JSON representation in the response body.

", + "version": "0.0.0", + "filename": "/home/vito/Development/MOTION_V3/motion-server/src/api/integration/index.js", + "groupTitle": "Integrations" + }, + { + "type": "put", + "url": "/api/integrations/{id}", + "title": "Update an existing Integration", + "examples": [ + { + "title": "Example usage:", + "content": "curl https://{domain}/api/integrations/{id} -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X PUT", + "type": "json" + } + ], + "name": "updateIntegrations", + "group": "Integrations", + "description": "

Motion will return a HTTP status code 200 upon success. Motion return a HTTP status code 404 if the corresponding record could not be located.

Motion renders the resulting JSON representation in the response body.

", + "version": "0.0.0", + "filename": "/home/vito/Development/MOTION_V3/motion-server/src/api/integration/index.js", + "groupTitle": "Integrations" + }, + { + "type": "post", "url": "/api/intervals", "title": "Creates a new Interval", "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/intervals -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/intervals -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -15167,7 +18891,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/jscripty/answers/reports -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/jscripty/answers/reports -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -15344,7 +19068,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/jscripty/questions/reports -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/jscripty/questions/reports -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -15521,7 +19245,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/jscripty/sessions/reports -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/jscripty/sessions/reports -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -15734,7 +19458,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/jscripty/projects -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/jscripty/projects -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -15992,72 +19716,135 @@ { "group": "Body", "type": "String", - "optional": true, - "field": "host", + "optional": false, + "field": "name", "description": "" }, { "group": "Body", "type": "Boolean", "optional": true, - "field": "authentication", + "field": "service", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "user", + "field": "email", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "active", "description": "" }, { "group": "Body", "type": "String", + "optional": false, + "field": "key", + "description": "" + }, + { + "group": "Body", + "type": "Text", "optional": true, - "field": "password", + "field": "template", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "markAsUnread", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": false, + "field": "fontFamily", "description": "" }, { "group": "Body", "type": "Integer", "optional": true, - "field": "port", + "field": "fontSize", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "notificationTemplate", "description": "" }, { "group": "Body", "type": "Boolean", "optional": true, - "field": "tls", + "field": "notificationSound", "description": "" }, { "group": "Body", - "type": "String", + "type": "Boolean", "optional": true, - "field": "mailbox", + "field": "notificationShake", "description": "" }, { "group": "Body", "type": "Integer", "optional": true, - "field": "connTimeout", + "field": "waitForTheAssignedAgent", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "queueTransfer", "description": "" }, { "group": "Body", "type": "Integer", "optional": true, - "field": "authTimeout", + "field": "queueTransferTimeout", "description": "" }, { "group": "Body", - "type": "String", + "type": "Boolean", "optional": true, - "field": "service", + "field": "agentTransfer", "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "agentTransferTimeout", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "mandatoryDispositionPauseId", + "description": "

Status to put when mandatory disposition is enabled

" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "mandatoryDisposition", + "description": "

Enabled/disables mandatory dispo on a queue

" } ] } @@ -16093,51 +19880,135 @@ { "group": "Body", "type": "String", + "optional": false, + "field": "name", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", "optional": true, - "field": "host", + "field": "service", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "user", + "field": "email", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "active", "description": "" }, { "group": "Body", "type": "String", + "optional": false, + "field": "key", + "description": "" + }, + { + "group": "Body", + "type": "Text", "optional": true, - "field": "pass", + "field": "template", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "markAsUnread", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": false, + "field": "fontFamily", "description": "" }, { "group": "Body", "type": "Integer", "optional": true, - "field": "port", + "field": "fontSize", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "notificationTemplate", "description": "" }, { "group": "Body", "type": "Boolean", "optional": true, - "field": "secure", + "field": "notificationSound", "description": "" }, { "group": "Body", - "type": "String", + "type": "Boolean", "optional": true, - "field": "service", + "field": "notificationShake", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "waitForTheAssignedAgent", "description": "" }, { "group": "Body", "type": "Boolean", "optional": true, - "field": "authentication", + "field": "queueTransfer", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "queueTransferTimeout", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "agentTransfer", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "agentTransferTimeout", "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "mandatoryDispositionPauseId", + "description": "

Status to put when mandatory disposition is enabled

" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "mandatoryDisposition", + "description": "

Enabled/disables mandatory dispo on a queue

" } ] } @@ -16452,6 +20323,41 @@ { "group": "Body", "type": "String", + "optional": true, + "field": "description", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": false, + "field": "name", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "service", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "email", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "active", + "description": "" + }, + { + "group": "Body", + "type": "String", "optional": false, "field": "key", "description": "" @@ -16459,23 +20365,100 @@ { "group": "Body", "type": "Text", - "optional": false, - "field": "value", + "optional": true, + "field": "template", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "markAsUnread", "description": "" }, { "group": "Body", "type": "String", + "optional": false, + "field": "fontFamily", + "description": "" + }, + { + "group": "Body", + "type": "Integer", "optional": true, - "field": "description", + "field": "fontSize", "description": "" }, { "group": "Body", - "type": "Virtual", + "type": "Text", "optional": true, - "field": "name", + "field": "notificationTemplate", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "notificationSound", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "notificationShake", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "waitForTheAssignedAgent", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "queueTransfer", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "queueTransferTimeout", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "agentTransfer", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "agentTransferTimeout", "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "mandatoryDispositionPauseId", + "description": "

Status to put when mandatory disposition is enabled

" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "mandatoryDisposition", + "description": "

Enabled/disables mandatory dispo on a queue

" } ] } @@ -16503,38 +20486,143 @@ "Body": [ { "group": "Body", - "type": "Integer", + "type": "String", + "optional": true, + "field": "description", + "description": "" + }, + { + "group": "Body", + "type": "String", "optional": false, - "field": "priority", + "field": "name", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "service", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "email", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "active", "description": "" }, { "group": "Body", "type": "String", "optional": false, - "field": "app", + "field": "key", "description": "" }, { "group": "Body", "type": "Text", "optional": true, - "field": "appdata", + "field": "template", "description": "" }, { "group": "Body", - "type": "String", + "type": "Boolean", "optional": true, - "field": "description", + "field": "markAsUnread", "description": "" }, { "group": "Body", "type": "String", + "optional": false, + "field": "fontFamily", + "description": "" + }, + { + "group": "Body", + "type": "Integer", "optional": true, - "field": "interval", + "field": "fontSize", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "notificationTemplate", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "notificationSound", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "notificationShake", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "waitForTheAssignedAgent", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "queueTransfer", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "queueTransferTimeout", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "agentTransfer", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "agentTransferTimeout", "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "mandatoryDispositionPauseId", + "description": "

Status to put when mandatory disposition is enabled

" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "mandatoryDisposition", + "description": "

Enabled/disables mandatory dispo on a queue

" } ] } @@ -16563,28 +20651,142 @@ { "group": "Body", "type": "String", + "optional": true, + "field": "description", + "description": "" + }, + { + "group": "Body", + "type": "String", "optional": false, "field": "name", "description": "" }, { "group": "Body", + "type": "Boolean", + "optional": true, + "field": "service", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "email", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "active", + "description": "" + }, + { + "group": "Body", "type": "String", - "allowedValues": [ - "\"first\"", - "\"second\"", - "\"third\"" - ], "optional": false, - "field": "level", + "field": "key", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "template", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "markAsUnread", "description": "" }, { "group": "Body", "type": "String", + "optional": false, + "field": "fontFamily", + "description": "" + }, + { + "group": "Body", + "type": "Integer", "optional": true, - "field": "description", + "field": "fontSize", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "notificationTemplate", "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "notificationSound", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "notificationShake", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "waitForTheAssignedAgent", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "queueTransfer", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "queueTransferTimeout", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "agentTransfer", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "agentTransferTimeout", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "mandatoryDispositionPauseId", + "description": "

Status to put when mandatory disposition is enabled

" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "mandatoryDisposition", + "description": "

Enabled/disables mandatory dispo on a queue

" } ] } @@ -16612,144 +20814,143 @@ "Body": [ { "group": "Body", - "type": "Boolean", + "type": "String", "optional": true, - "field": "closed", + "field": "description", "description": "" }, { "group": "Body", "type": "String", - "optional": true, - "field": "closedAt", + "optional": false, + "field": "name", "description": "" }, { "group": "Body", - "type": "String", + "type": "Boolean", "optional": true, - "field": "disposition", + "field": "service", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "secondDisposition", + "field": "email", "description": "" }, { "group": "Body", - "type": "String", + "type": "Boolean", "optional": true, - "field": "thirdDisposition", + "field": "active", "description": "" }, { "group": "Body", "type": "String", + "optional": false, + "field": "key", + "description": "" + }, + { + "group": "Body", + "type": "Text", "optional": true, - "field": "note", + "field": "template", "description": "" }, { "group": "Body", - "type": "String", + "type": "Boolean", "optional": true, - "field": "inReplyTo", + "field": "markAsUnread", "description": "" }, { "group": "Body", "type": "String", - "optional": true, - "field": "to", + "optional": false, + "field": "fontFamily", "description": "" }, { "group": "Body", - "type": "Text", + "type": "Integer", "optional": true, - "field": "cc", + "field": "fontSize", "description": "" }, { "group": "Body", "type": "Text", "optional": true, - "field": "subject", + "field": "notificationTemplate", "description": "" }, { "group": "Body", "type": "Boolean", "optional": true, - "field": "attach", + "field": "notificationSound", "description": "" }, { "group": "Body", - "type": "String", + "type": "Boolean", "optional": true, - "field": "read1stAt", + "field": "notificationShake", "description": "" }, { "group": "Body", - "type": "String", + "type": "Integer", "optional": true, - "field": "substatus", + "field": "waitForTheAssignedAgent", "description": "" }, { "group": "Body", - "type": "String", + "type": "Boolean", "optional": true, - "field": "substatusAt", + "field": "queueTransfer", "description": "" }, { "group": "Body", - "type": "String", - "allowedValues": [ - "\"in\"", - "\"out\"" - ], - "optional": false, - "field": "firstMsgDirection", + "type": "Integer", + "optional": true, + "field": "queueTransferTimeout", "description": "" }, { "group": "Body", - "type": "String", + "type": "Boolean", "optional": true, - "field": "lastMsgAt", + "field": "agentTransfer", "description": "" }, { "group": "Body", - "type": "String", - "allowedValues": [ - "\"in\"", - "\"out\"" - ], - "optional": false, - "field": "lastMsgDirection", + "type": "Integer", + "optional": true, + "field": "agentTransferTimeout", "description": "" }, { "group": "Body", - "type": "Text", + "type": "Integer", "optional": true, - "field": "lastMsgBody", - "description": "" + "field": "mandatoryDispositionPauseId", + "description": "

Status to put when mandatory disposition is enabled

" }, { "group": "Body", - "type": "Text", + "type": "Boolean", "optional": true, - "field": "lastMsgText", - "description": "" + "field": "mandatoryDisposition", + "description": "

Enabled/disables mandatory dispo on a queue

" } ] } @@ -17090,7 +21291,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/mail/interactions -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/mail/interactions -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -17386,53 +21587,56 @@ "Body": [ { "group": "Body", - "type": "Text", - "optional": false, - "field": "body", + "type": "Boolean", + "optional": true, + "field": "closed", "description": "" }, { "group": "Body", - "type": "Text", + "type": "String", "optional": true, - "field": "plainBody", + "field": "closedAt", "description": "" }, { "group": "Body", - "type": "Boolean", + "type": "String", "optional": true, - "field": "read", + "field": "disposition", "description": "" }, { "group": "Body", "type": "String", - "allowedValues": [ - "\"in\"", - "\"out\"" - ], - "optional": false, - "field": "direction", + "optional": true, + "field": "secondDisposition", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "messageId", + "field": "thirdDisposition", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "from", + "field": "note", "description": "" }, { "group": "Body", - "type": "Text", + "type": "String", + "optional": true, + "field": "inReplyTo", + "description": "" + }, + { + "group": "Body", + "type": "String", "optional": true, "field": "to", "description": "" @@ -17448,56 +21652,78 @@ "group": "Body", "type": "Text", "optional": true, - "field": "bcc", + "field": "subject", "description": "" }, { "group": "Body", - "type": "Text", + "type": "Boolean", "optional": true, - "field": "subject", + "field": "attach", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "sentAt", + "field": "read1stAt", "description": "" }, { "group": "Body", - "type": "Integer", + "type": "String", "optional": true, - "field": "attach", + "field": "substatus", "description": "" }, { "group": "Body", - "type": "Boolean", + "type": "String", "optional": true, - "field": "secret", + "field": "substatusAt", + "description": "" + }, + { + "group": "Body", + "type": "String", + "allowedValues": [ + "\"in\"", + "\"out\"" + ], + "optional": false, + "field": "firstMsgDirection", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "readAt", + "field": "lastMsgAt", + "description": "" + }, + { + "group": "Body", + "type": "String", + "allowedValues": [ + "\"in\"", + "\"out\"" + ], + "optional": false, + "field": "lastMsgDirection", "description": "" }, { "group": "Body", "type": "Text", "optional": true, - "field": "originTo", + "field": "lastMsgBody", "description": "" }, { "group": "Body", "type": "Text", "optional": true, - "field": "originCc", + "field": "lastMsgText", "description": "" } ] @@ -17751,7 +21977,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/mail/reports/queue -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/mail/reports/queue -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -17980,7 +22206,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/mail/queues -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/mail/queues -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -18259,7 +22485,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/mail/out_servers -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/mail/out_servers -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -18411,7 +22637,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/mail/substatuses -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/mail/substatuses -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -18539,7 +22765,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/mail/reports/transfer -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/mail/reports/transfer -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -18947,7 +23173,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/openchannel/accounts -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/openchannel/accounts -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -19240,29 +23466,113 @@ "group": "Body", "type": "String", "optional": false, + "field": "name", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "description", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "token", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "replyUri", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": false, "field": "key", "description": "" }, { "group": "Body", "type": "Text", - "optional": false, - "field": "value", + "optional": true, + "field": "notificationTemplate", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "notificationSound", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "notificationShake", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "waitForTheAssignedAgent", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "description", + "field": "mapKey", "description": "" }, { "group": "Body", - "type": "Virtual", + "type": "Boolean", "optional": true, - "field": "name", + "field": "queueTransfer", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "queueTransferTimeout", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "agentTransfer", "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "agentTransferTimeout", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "mandatoryDispositionPauseId", + "description": "

Status to put when mandatory disposition is enabled

" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "mandatoryDisposition", + "description": "

Enabled/disables mandatory dispo on a queue

" } ] } @@ -19290,38 +23600,115 @@ "Body": [ { "group": "Body", - "type": "Integer", + "type": "String", "optional": false, - "field": "priority", + "field": "name", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "description", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "token", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "replyUri", "description": "" }, { "group": "Body", "type": "String", "optional": false, - "field": "app", + "field": "key", "description": "" }, { "group": "Body", "type": "Text", "optional": true, - "field": "appdata", + "field": "notificationTemplate", "description": "" }, { "group": "Body", - "type": "String", + "type": "Boolean", "optional": true, - "field": "description", + "field": "notificationSound", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "notificationShake", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "waitForTheAssignedAgent", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "interval", + "field": "mapKey", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "queueTransfer", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "queueTransferTimeout", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "agentTransfer", "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "agentTransferTimeout", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "mandatoryDispositionPauseId", + "description": "

Status to put when mandatory disposition is enabled

" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "mandatoryDisposition", + "description": "

Enabled/disables mandatory dispo on a queue

" } ] } @@ -19357,21 +23744,107 @@ { "group": "Body", "type": "String", - "allowedValues": [ - "\"first\"", - "\"second\"", - "\"third\"" - ], + "optional": true, + "field": "description", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "token", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "replyUri", + "description": "" + }, + { + "group": "Body", + "type": "String", "optional": false, - "field": "level", + "field": "key", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "notificationTemplate", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "notificationSound", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "notificationShake", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "waitForTheAssignedAgent", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "description", + "field": "mapKey", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "queueTransfer", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "queueTransferTimeout", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "agentTransfer", "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "agentTransferTimeout", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "mandatoryDispositionPauseId", + "description": "

Status to put when mandatory disposition is enabled

" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "mandatoryDisposition", + "description": "

Enabled/disables mandatory dispo on a queue

" } ] } @@ -19514,7 +23987,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/openchannel/applications -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/openchannel/applications -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -19723,7 +24196,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/openchannel/interactions -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/openchannel/interactions -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -19966,55 +24439,90 @@ "Body": [ { "group": "Body", - "type": "Text", - "optional": false, - "field": "body", + "type": "Boolean", + "optional": true, + "field": "closed", "description": "" }, { "group": "Body", - "type": "Boolean", + "type": "String", "optional": true, - "field": "read", + "field": "closedAt", "description": "" }, { "group": "Body", - "type": "Boolean", + "type": "String", "optional": true, - "field": "secret", + "field": "disposition", "description": "" }, { "group": "Body", "type": "String", - "allowedValues": [ - "\"in\"", - "\"out\"" - ], - "optional": false, - "field": "direction", + "optional": true, + "field": "secondDisposition", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "readAt", + "field": "thirdDisposition", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "providerName", + "field": "note", "description": "" }, { "group": "Body", - "type": "Text", + "type": "String", "optional": true, - "field": "providerResponse", + "field": "read1stAt", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "threadId", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "externalUrl", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "lastMsgAt", + "description": "" + }, + { + "group": "Body", + "type": "String", + "allowedValues": [ + "\"in\"", + "\"out\"" + ], + "optional": false, + "field": "lastMsgDirection", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "from", "description": "" } ] @@ -20086,7 +24594,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/openchannel/messages -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/openchannel/messages -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -20309,7 +24817,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/openchannel/reports/queue -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/openchannel/reports/queue -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -20538,7 +25046,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/openchannel/queues -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/openchannel/queues -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -20817,7 +25325,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/openchannel/reports/transfer -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/openchannel/reports/transfer -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -20957,7 +25465,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/pauses -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/pauses -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -21590,7 +26098,7 @@ }, { "type": "get", - "url": "/api/rpc/voice/channels", + "url": "/api/rpc/voice/channels/{uniqueid}/mixmonitor", "title": "Gets a list of RTVoiceChannelMixMonitor", "examples": [ { @@ -21608,7 +26116,7 @@ }, { "type": "get", - "url": "/api/rpc/voice/channels", + "url": "/api/rpc/voice/channels/{uniqueid}/stopmixmonitor", "title": "Gets a list of RTVoiceChannelStopMixMonitor", "examples": [ { @@ -22109,7 +26617,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/integrations/salesforce/accounts -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/integrations/salesforce/accounts -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -22393,7 +26901,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/integrations/salesforce/configurations -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/integrations/salesforce/configurations -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -22592,7 +27100,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/integrations/salesforce/fields -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/integrations/salesforce/fields -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -22748,7 +27256,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/schedules -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/schedules -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -22985,7 +27493,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/screen/recordings -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/screen/recordings -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -23187,7 +27695,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/integrations/servicenow/accounts -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/integrations/servicenow/accounts -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -23446,7 +27954,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/integrations/servicenow/configurations -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/integrations/servicenow/configurations -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -23610,7 +28118,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/integrations/servicenow/fields -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/integrations/servicenow/fields -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -24032,7 +28540,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/sms/accounts -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/sms/accounts -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -24466,14 +28974,121 @@ "group": "Body", "type": "String", "optional": false, + "field": "name", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": false, "field": "key", "description": "" }, { "group": "Body", - "type": "Text", + "type": "String", "optional": false, - "field": "value", + "field": "remote", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "token", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "phone", + "description": "" + }, + { + "group": "Body", + "type": "String", + "allowedValues": [ + "\"twilio\"", + "\"skebby\"", + "\"connectel\"", + "\"clicksend\"", + "\"plivo\"", + "\"clickatell\"", + "\"csc\"", + "\"infobip\"", + "\"intelepeer\"" + ], + "optional": true, + "field": "type", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "accountSid", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "authId", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "authToken", + "description": "" + }, + { + "group": "Body", + "type": "String", + "allowedValues": [ + "\"SI\"", + "\"TI\"", + "\"GP\"" + ], + "optional": true, + "field": "smsMethod", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "username", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "password", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "apiKey", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "senderString", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "deliveryReport", "description": "" }, { @@ -24485,10 +29100,80 @@ }, { "group": "Body", - "type": "Virtual", + "type": "Text", "optional": true, - "field": "name", + "field": "notificationTemplate", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "notificationSound", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "notificationShake", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "waitForTheAssignedAgent", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "queueTransfer", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "queueTransferTimeout", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "agentTransfer", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "agentTransferTimeout", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "baseUrl", "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "mandatoryDispositionPauseId", + "description": "

Status to put when mandatory disposition is enabled

" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "mandatoryDisposition", + "description": "

Enabled/disables mandatory dispo on a queue

" } ] } @@ -24516,23 +29201,123 @@ "Body": [ { "group": "Body", - "type": "Integer", + "type": "String", "optional": false, - "field": "priority", + "field": "name", "description": "" }, { "group": "Body", "type": "String", "optional": false, - "field": "app", + "field": "key", "description": "" }, { "group": "Body", - "type": "Text", + "type": "String", + "optional": false, + "field": "remote", + "description": "" + }, + { + "group": "Body", + "type": "String", "optional": true, - "field": "appdata", + "field": "token", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "phone", + "description": "" + }, + { + "group": "Body", + "type": "String", + "allowedValues": [ + "\"twilio\"", + "\"skebby\"", + "\"connectel\"", + "\"clicksend\"", + "\"plivo\"", + "\"clickatell\"", + "\"csc\"", + "\"infobip\"", + "\"intelepeer\"" + ], + "optional": true, + "field": "type", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "accountSid", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "authId", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "authToken", + "description": "" + }, + { + "group": "Body", + "type": "String", + "allowedValues": [ + "\"SI\"", + "\"TI\"", + "\"GP\"" + ], + "optional": true, + "field": "smsMethod", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "username", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "password", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "apiKey", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "senderString", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "deliveryReport", "description": "" }, { @@ -24544,10 +29329,80 @@ }, { "group": "Body", + "type": "Text", + "optional": true, + "field": "notificationTemplate", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "notificationSound", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "notificationShake", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "waitForTheAssignedAgent", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "queueTransfer", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "queueTransferTimeout", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "agentTransfer", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "agentTransferTimeout", + "description": "" + }, + { + "group": "Body", "type": "String", "optional": true, - "field": "interval", + "field": "baseUrl", "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "mandatoryDispositionPauseId", + "description": "

Status to put when mandatory disposition is enabled

" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "mandatoryDisposition", + "description": "

Enabled/disables mandatory dispo on a queue

" } ] } @@ -24583,13 +29438,115 @@ { "group": "Body", "type": "String", + "optional": false, + "field": "key", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": false, + "field": "remote", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "token", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "phone", + "description": "" + }, + { + "group": "Body", + "type": "String", "allowedValues": [ - "\"first\"", - "\"second\"", - "\"third\"" + "\"twilio\"", + "\"skebby\"", + "\"connectel\"", + "\"clicksend\"", + "\"plivo\"", + "\"clickatell\"", + "\"csc\"", + "\"infobip\"", + "\"intelepeer\"" ], - "optional": false, - "field": "level", + "optional": true, + "field": "type", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "accountSid", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "authId", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "authToken", + "description": "" + }, + { + "group": "Body", + "type": "String", + "allowedValues": [ + "\"SI\"", + "\"TI\"", + "\"GP\"" + ], + "optional": true, + "field": "smsMethod", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "username", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "password", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "apiKey", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "senderString", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "deliveryReport", "description": "" }, { @@ -24598,6 +29555,83 @@ "optional": true, "field": "description", "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "notificationTemplate", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "notificationSound", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "notificationShake", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "waitForTheAssignedAgent", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "queueTransfer", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "queueTransferTimeout", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "agentTransfer", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "agentTransferTimeout", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "baseUrl", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "mandatoryDispositionPauseId", + "description": "

Status to put when mandatory disposition is enabled

" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "mandatoryDisposition", + "description": "

Enabled/disables mandatory dispo on a queue

" } ] } @@ -24812,7 +29846,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/sms/applications -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/sms/applications -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -24991,7 +30025,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/sms/interactions -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/sms/interactions -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -25231,69 +30265,87 @@ "Body": [ { "group": "Body", - "type": "Text", - "optional": false, - "field": "body", + "type": "Boolean", + "optional": true, + "field": "closed", "description": "" }, { "group": "Body", - "type": "Boolean", + "type": "String", "optional": true, - "field": "read", + "field": "closedAt", "description": "" }, { "group": "Body", "type": "String", - "allowedValues": [ - "\"in\"", - "\"out\"" - ], - "optional": false, - "field": "direction", + "optional": true, + "field": "disposition", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "messageId", + "field": "secondDisposition", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "phone", + "field": "thirdDisposition", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "readAt", + "field": "note", "description": "" }, { "group": "Body", - "type": "Boolean", + "type": "String", "optional": true, - "field": "secret", + "field": "phone", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "providerName", + "field": "read1stAt", "description": "" }, { "group": "Body", - "type": "Text", + "type": "String", + "allowedValues": [ + "\"in\"", + "\"out\"" + ], + "optional": false, + "field": "firstMsgDirection", + "description": "" + }, + { + "group": "Body", + "type": "String", "optional": true, - "field": "providerResponse", + "field": "lastMsgAt", + "description": "" + }, + { + "group": "Body", + "type": "String", + "allowedValues": [ + "\"in\"", + "\"out\"" + ], + "optional": false, + "field": "lastMsgDirection", "description": "" } ] @@ -25365,7 +30417,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/sms/messages -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/sms/messages -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -25566,7 +30618,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/sms/reports/queue -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/sms/reports/queue -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -25795,7 +30847,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/sms/queues -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/sms/queues -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -26074,7 +31126,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/sms/reports/transfer -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/sms/reports/transfer -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -26362,7 +31414,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/square/details/reports -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/square/details/reports -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -26518,7 +31570,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/square/messages -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/square/messages -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -26663,7 +31715,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/square/odbc -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/square/odbc -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -26828,7 +31880,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/square/projects -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/square/projects -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -27043,7 +32095,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/square/recordings -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/square/recordings -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -27268,7 +32320,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/square/reports -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/square/reports -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -27594,7 +32646,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/integrations/sugarcrm/configurations -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/integrations/sugarcrm/configurations -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -27704,7 +32756,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/integrations/sugarcrm/accounts -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/integrations/sugarcrm/accounts -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -28010,7 +33062,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/integrations/sugarcrm/fields -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/integrations/sugarcrm/fields -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -28216,7 +33268,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/tags -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/tags -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -28351,7 +33403,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/teams -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/teams -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -28677,7 +33729,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/templates -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/templates -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -28824,7 +33876,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/triggers -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/triggers -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -29001,65 +34053,30 @@ "Body": [ { "group": "Body", - "type": "Virtual", - "optional": true, - "field": "name", - "description": "" - }, - { - "group": "Body", - "type": "String", - "optional": false, - "field": "action", - "description": "

Allowed values: contactManager, integration, motionbar, jscripty, urlForward, browser, bot, script

" - }, - { - "group": "Body", - "type": "String", - "optional": true, - "field": "data1", - "description": "

contactManager[ListId], integration[intName(zendesk)], motionbar[Popup(0),URL(1),WinApp(2)], urlForward[GET,POST], browser[TemplateId(0),URL(1)]

" - }, - { - "group": "Body", - "type": "String", - "optional": true, - "field": "data2", - "description": "

integration[AccountId], motionbar[TemplateId,URL,WinAppPath], urlForward[URL]

" - }, - { - "group": "Body", "type": "String", "optional": true, - "field": "data3", - "description": "

motionbar[NULL,NULL,WinAppArguments]

" - }, - { - "group": "Body", - "type": "String", - "optional": true, - "field": "data4", + "field": "name", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "data5", + "field": "channel", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "data6", + "field": "description", "description": "" }, { "group": "Body", - "type": "Text", + "type": "Boolean", "optional": true, - "field": "data7", + "field": "status", "description": "" } ] @@ -29088,7 +34105,7 @@ "Body": [ { "group": "Body", - "type": "Virtual", + "type": "String", "optional": true, "field": "name", "description": "" @@ -29096,22 +34113,22 @@ { "group": "Body", "type": "String", - "optional": false, - "field": "field", + "optional": true, + "field": "channel", "description": "" }, { "group": "Body", "type": "String", - "optional": false, - "field": "operator", + "optional": true, + "field": "description", "description": "" }, { "group": "Body", - "type": "String", - "optional": false, - "field": "value", + "type": "Boolean", + "optional": true, + "field": "status", "description": "" } ] @@ -29140,7 +34157,7 @@ "Body": [ { "group": "Body", - "type": "Virtual", + "type": "String", "optional": true, "field": "name", "description": "" @@ -29148,22 +34165,22 @@ { "group": "Body", "type": "String", - "optional": false, - "field": "field", + "optional": true, + "field": "channel", "description": "" }, { "group": "Body", "type": "String", - "optional": false, - "field": "operator", + "optional": true, + "field": "description", "description": "" }, { "group": "Body", - "type": "String", - "optional": false, - "field": "value", + "type": "Boolean", + "optional": true, + "field": "status", "description": "" } ] @@ -30354,7 +35371,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/userProfile/resources -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/userProfile/resources -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -30489,7 +35506,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/userProfile/sections -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/userProfile/sections -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -30699,7 +35716,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/userProfiles -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/userProfiles -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -32400,7 +37417,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/variables -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/variables -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -33529,7 +38546,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/voice/mails -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/voice/mails -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -33894,7 +38911,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/voice/mails/messages -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/voice/mails/messages -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -34500,7 +39517,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/voice/queues -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/voice/queues -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -35803,7 +40820,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/voice/recordings -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/voice/recordings -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -36253,7 +41270,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/voice/transfers/reports -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/voice/transfers/reports -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -36528,7 +41545,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/integrations/vtiger/accounts -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/integrations/vtiger/accounts -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -36787,7 +41804,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/integrations/vtiger/configurations -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/integrations/vtiger/configurations -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -36951,7 +41968,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/integrations/vtiger/fields -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/integrations/vtiger/fields -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -37419,7 +42436,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/whatsapp/accounts -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/whatsapp/accounts -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -37784,28 +42801,136 @@ "group": "Body", "type": "String", "optional": false, + "field": "name", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": false, "field": "key", "description": "" }, { "group": "Body", - "type": "Text", + "type": "String", "optional": false, - "field": "value", + "field": "remote", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "description", + "field": "token", "description": "" }, { "group": "Body", - "type": "Virtual", + "type": "String", "optional": true, - "field": "name", + "field": "phone", + "description": "" + }, + { + "group": "Body", + "type": "String", + "allowedValues": [ + "\"twilio\"" + ], + "optional": true, + "field": "type", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "accountSid", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "authToken", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "notificationTemplate", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "notificationSound", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "notificationShake", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "waitForTheAssignedAgent", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "queueTransfer", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "queueTransferTimeout", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "agentTransfer", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "agentTransferTimeout", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "mandatoryDispositionPauseId", + "description": "

Status to put when mandatory disposition is enabled

" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "mandatoryDisposition", + "description": "

Enabled/disables mandatory dispo on a queue

" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "description", "description": "" } ] @@ -37834,37 +42959,138 @@ "Body": [ { "group": "Body", - "type": "Integer", + "type": "String", "optional": false, - "field": "priority", + "field": "name", "description": "" }, { "group": "Body", "type": "String", "optional": false, - "field": "app", + "field": "key", "description": "" }, { "group": "Body", - "type": "Text", + "type": "String", + "optional": false, + "field": "remote", + "description": "" + }, + { + "group": "Body", + "type": "String", "optional": true, - "field": "appdata", + "field": "token", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "description", + "field": "phone", "description": "" }, { "group": "Body", "type": "String", + "allowedValues": [ + "\"twilio\"" + ], "optional": true, - "field": "interval", + "field": "type", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "accountSid", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "authToken", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "notificationTemplate", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "notificationSound", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "notificationShake", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "waitForTheAssignedAgent", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "queueTransfer", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "queueTransferTimeout", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "agentTransfer", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "agentTransferTimeout", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "mandatoryDispositionPauseId", + "description": "

Status to put when mandatory disposition is enabled

" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "mandatoryDisposition", + "description": "

Enabled/disables mandatory dispo on a queue

" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "description", "description": "" } ] @@ -37901,17 +43127,127 @@ { "group": "Body", "type": "String", + "optional": false, + "field": "key", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": false, + "field": "remote", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "token", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "phone", + "description": "" + }, + { + "group": "Body", + "type": "String", "allowedValues": [ - "\"first\"", - "\"second\"", - "\"third\"" + "\"twilio\"" ], - "optional": false, - "field": "level", + "optional": true, + "field": "type", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "accountSid", + "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "authToken", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "notificationTemplate", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "notificationSound", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "notificationShake", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "waitForTheAssignedAgent", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "queueTransfer", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "queueTransferTimeout", + "description": "" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "agentTransfer", "description": "" }, { "group": "Body", + "type": "Integer", + "optional": true, + "field": "agentTransferTimeout", + "description": "" + }, + { + "group": "Body", + "type": "Integer", + "optional": true, + "field": "mandatoryDispositionPauseId", + "description": "

Status to put when mandatory disposition is enabled

" + }, + { + "group": "Body", + "type": "Boolean", + "optional": true, + "field": "mandatoryDisposition", + "description": "

Enabled/disables mandatory dispo on a queue

" + }, + { + "group": "Body", "type": "String", "optional": true, "field": "description", @@ -38076,7 +43412,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/whatsapp/applications -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/whatsapp/applications -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -38255,7 +43591,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/whatsapp/interactions -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/whatsapp/interactions -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -38495,69 +43831,87 @@ "Body": [ { "group": "Body", - "type": "Text", - "optional": false, - "field": "body", + "type": "Boolean", + "optional": true, + "field": "closed", "description": "" }, { "group": "Body", - "type": "Boolean", + "type": "String", "optional": true, - "field": "read", + "field": "closedAt", "description": "" }, { "group": "Body", "type": "String", - "allowedValues": [ - "\"in\"", - "\"out\"" - ], - "optional": false, - "field": "direction", + "optional": true, + "field": "disposition", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "messageId", + "field": "secondDisposition", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "phone", + "field": "thirdDisposition", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "readAt", + "field": "note", "description": "" }, { "group": "Body", - "type": "Boolean", + "type": "String", "optional": true, - "field": "secret", + "field": "phone", "description": "" }, { "group": "Body", "type": "String", "optional": true, - "field": "providerName", + "field": "read1stAt", "description": "" }, { "group": "Body", - "type": "Text", + "type": "String", + "allowedValues": [ + "\"in\"", + "\"out\"" + ], + "optional": false, + "field": "firstMsgDirection", + "description": "" + }, + { + "group": "Body", + "type": "String", "optional": true, - "field": "providerResponse", + "field": "lastMsgAt", + "description": "" + }, + { + "group": "Body", + "type": "String", + "allowedValues": [ + "\"in\"", + "\"out\"" + ], + "optional": false, + "field": "lastMsgDirection", "description": "" } ] @@ -38629,7 +43983,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/whatsapp/messages -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/whatsapp/messages -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -38830,7 +44184,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/whatsapp/reports/queue -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/whatsapp/reports/queue -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -39059,7 +44413,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/whatsapp/queues -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/whatsapp/queues -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -39338,7 +44692,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/whatsapp/reports/transfer -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/whatsapp/reports/transfer -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -39478,7 +44832,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/integrations/zendesk/accounts -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/integrations/zendesk/accounts -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -39759,7 +45113,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/integrations/zendesk/configurations -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/integrations/zendesk/configurations -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -39959,7 +45313,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/integrations/zendesk/fields -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/integrations/zendesk/fields -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -40129,7 +45483,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/integrations/zoho/accounts -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/integrations/zoho/accounts -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -40402,7 +45756,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/integrations/zoho/configurations -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/integrations/zoho/configurations -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -40590,7 +45944,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/integrations/zoho/fields -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/integrations/zoho/fields -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -40760,7 +46114,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/cdr -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/cdr -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], @@ -41021,7 +46375,7 @@ "examples": [ { "title": "Example usage:", - "content": "curl https://{domain}/api/voiceQueuesLog -d '{\"key1\": \"valu1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", + "content": "curl https://{domain}/api/voiceQueuesLog -d '{\"key1\": \"value1\", \"key2\": \"value2\", \"...\": \"...\"}' \\\n -H \"Content-Type: application/json\" -v -u {name}:{password} -X POST", "type": "json" } ], diff --git a/apidoc/api_project.js b/apidoc/api_project.js index c724167..c70d75c 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-18T15:36:23.715Z", + "time": "2020-11-27T18:22:32.836Z", "url": "https://apidocjs.com", "version": "0.25.0" } diff --git a/apidoc/api_project.json b/apidoc/api_project.json index 2f921ae..40a6216 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-18T15:36:23.715Z", + "time": "2020-11-27T18:22:32.836Z", "url": "https://apidocjs.com", "version": "0.25.0" } diff --git a/package-lock.json b/package-lock.json index 944bf0f..faee6aa 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "motion", - "version": "3.0.0-alpha", + "version": "3.0.0-alpha.1", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -107,9 +107,9 @@ }, "dependencies": { "debug": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.2.0.tgz", - "integrity": "sha512-IX2ncY78vDTjZMFUdmsvIRFY2Cf4FnD0wRs+nQwJU8Lu99/tPFdb0VybiiMTPe3I6rQmwsqQqRBvxU+bZ/I8sg==", + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.1.tgz", + "integrity": "sha512-doEwdvm4PCeK4K3RQN2ZC2BYUBaxwLARCqZmMjtF8a51J2Rb0xpVloFRnCODwqjpwnAoao4pelN8l3RJdv3gRQ==", "requires": { "ms": "2.1.2" } @@ -515,6 +515,11 @@ "@types/node": "*" } }, + "@types/component-emitter": { + "version": "1.2.10", + "resolved": "https://registry.npmjs.org/@types/component-emitter/-/component-emitter-1.2.10.tgz", + "integrity": "sha512-bsjleuRKWmGqajMerkzox19aGbscQX5rmmvvXl3wlIp5gMG1HgkiwPxsN5p070fBDKTNSPgojVbuY1+HWMbFhg==" + }, "@types/connect": { "version": "3.4.33", "resolved": "https://registry.npmjs.org/@types/connect/-/connect-3.4.33.tgz", @@ -523,10 +528,23 @@ "@types/node": "*" } }, + "@types/cookie": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/@types/cookie/-/cookie-0.4.0.tgz", + "integrity": "sha512-y7mImlc/rNkvCRmg8gC3/lj87S7pTUIJ6QGjwHR9WQJcFs+ZMTOaoPrkdFA/YdbuqVEmEbb5RdhVxMkAcgOnpg==" + }, + "@types/cors": { + "version": "2.8.8", + "resolved": "https://registry.npmjs.org/@types/cors/-/cors-2.8.8.tgz", + "integrity": "sha512-fO3gf3DxU2Trcbr75O7obVndW/X5k8rJNZkLXlQWStTHhP71PkRqjwPIEI0yMnJdg9R9OasjU+Bsr+Hr1xy/0w==", + "requires": { + "@types/express": "*" + } + }, "@types/express": { - "version": "4.17.8", - "resolved": "https://registry.npmjs.org/@types/express/-/express-4.17.8.tgz", - "integrity": "sha512-wLhcKh3PMlyA2cNAB9sjM1BntnhPMiM0JOBwPBqttjHev2428MLEB4AYVN+d8s2iyCVZac+o41Pflm/ZH5vLXQ==", + "version": "4.17.9", + "resolved": "https://registry.npmjs.org/@types/express/-/express-4.17.9.tgz", + "integrity": "sha512-SDzEIZInC4sivGIFY4Sz1GG6J9UObPwCInYJjko2jzOf/Imx/dlpume6Xxwj1ORL82tBbmN4cPDIDkLbWHk9hw==", "requires": { "@types/body-parser": "*", "@types/express-serve-static-core": "*", @@ -575,9 +593,9 @@ "integrity": "sha512-ewFXqrQHlFsgc09MK5jP5iR7vumV/BYayNC6PgJO2LPe8vrnNFyjQjSppfEngITi0qvfKtzFvgKymGheFM9UOA==" }, "@types/serve-static": { - "version": "1.13.6", - "resolved": "https://registry.npmjs.org/@types/serve-static/-/serve-static-1.13.6.tgz", - "integrity": "sha512-nuRJmv7jW7VmCVTn+IgYDkkbbDGyIINOeu/G0d74X3lm6E5KfMeQPJhxIt1ayQeQB3cSxvYs1RA/wipYoFB4EA==", + "version": "1.13.8", + "resolved": "https://registry.npmjs.org/@types/serve-static/-/serve-static-1.13.8.tgz", + "integrity": "sha512-MoJhSQreaVoL+/hurAZzIm8wafFR6ajiTM1m4A0kv6AGeVBl4r4pOV8bGFrjjq1sGxDTnCoF8i22o0/aE5XCyA==", "requires": { "@types/mime": "*", "@types/node": "*" @@ -738,9 +756,9 @@ "integrity": "sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw==" }, "archiver": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/archiver/-/archiver-5.0.2.tgz", - "integrity": "sha512-Tq3yV/T4wxBsD2Wign8W9VQKhaUxzzRmjEiSoOK0SLqPgDP/N1TKdYyBeIEu56T4I9iO4fKTTR0mN9NWkBA0sg==", + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/archiver/-/archiver-5.1.0.tgz", + "integrity": "sha512-iKuQUP1nuKzBC2PFlGet5twENzCfyODmvkxwDV0cEFXavwcLrIW5ssTuHi9dyTPvpWr6Faweo2eQaQiLIwyXTA==", "requires": { "archiver-utils": "^2.1.0", "async": "^3.2.0", @@ -748,7 +766,7 @@ "readable-stream": "^3.6.0", "readdir-glob": "^1.0.0", "tar-stream": "^2.1.4", - "zip-stream": "^4.0.0" + "zip-stream": "^4.0.4" } }, "archiver-utils": { @@ -944,9 +962,9 @@ "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=" }, "aws-sdk": { - "version": "2.790.0", - "resolved": "https://registry.npmjs.org/aws-sdk/-/aws-sdk-2.790.0.tgz", - "integrity": "sha512-L278KsE+g/LsXIjLhpdtbvMcEZzZ/5dTBLIh6VIcNF0z63xlnDJQ4IWTDZ3Op5fK9B6vwQxlPT7XD5+egu+qoA==", + "version": "2.799.0", + "resolved": "https://registry.npmjs.org/aws-sdk/-/aws-sdk-2.799.0.tgz", + "integrity": "sha512-NYAoiNU+bJXhlJsC0rFqrmD5t5ho7/VxldmziP6HLPYHfOCI9Uvk6UVjfPmhLWPm0mHnIxhsHqmsNGyjhHNYmw==", "requires": { "buffer": "4.9.2", "events": "1.1.1", @@ -969,6 +987,11 @@ "isarray": "^1.0.0" } }, + "ieee754": { + "version": "1.1.13", + "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.1.13.tgz", + "integrity": "sha512-4vf7I2LYV/HaWerSo3XmlMkp5eZ83i+/CDluXi/IGTs/O1sejBNhTtnxzmRZfvOUqj7lZjqHkeTvpgSFDlWZTg==" + }, "uuid": { "version": "3.3.2", "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.3.2.tgz", @@ -1166,12 +1189,12 @@ } }, "buffer": { - "version": "5.6.0", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.6.0.tgz", - "integrity": "sha512-/gDYp/UtU0eA1ys8bOs9J6a+E/KWIY+DZ+Q2WESNUA0jFRsJOc0SNUO6xJ5SGA1xueg3NL65W6s+NY5l9cunuw==", + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", + "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", "requires": { - "base64-js": "^1.0.2", - "ieee754": "^1.1.4" + "base64-js": "^1.3.1", + "ieee754": "^1.1.13" } }, "buffer-crc32": { @@ -1467,12 +1490,12 @@ "integrity": "sha1-JYyUYunQ6eMhM/cmDuJRWdDbvgk=" }, "compress-commons": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/compress-commons/-/compress-commons-4.0.1.tgz", - "integrity": "sha512-xZm9o6iikekkI0GnXCmAl3LQGZj5TBDj0zLowsqi7tJtEa3FMGSEcHcqrSJIrOAk1UG/NBbDn/F1q+MG/p/EsA==", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/compress-commons/-/compress-commons-4.0.2.tgz", + "integrity": "sha512-qhd32a9xgzmpfoga1VQEiLEwdKZ6Plnpx5UCgIsf89FSolyJ7WnifY4Gtjgv5WR6hWAyRaHxC5MiEhU/38U70A==", "requires": { "buffer-crc32": "^0.2.13", - "crc32-stream": "^4.0.0", + "crc32-stream": "^4.0.1", "normalize-path": "^3.0.0", "readable-stream": "^3.6.0" } @@ -1621,20 +1644,21 @@ "vary": "^1" } }, - "crc": { - "version": "3.8.0", - "resolved": "https://registry.npmjs.org/crc/-/crc-3.8.0.tgz", - "integrity": "sha512-iX3mfgcTMIq3ZKLIsVFAbv7+Mc10kxabAGQb8HvjA1o3T1PIYprbakQ65d3I+2HGHt6nSKkM9PYjgoJO2KcFBQ==", + "crc-32": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/crc-32/-/crc-32-1.2.0.tgz", + "integrity": "sha512-1uBwHxF+Y/4yF5G48fwnKq6QsIXheor3ZLPT80yGBV1oEUwpPojlEhQbWKVw1VwcTQyMGHK1/XMmTjmlsmTTGA==", "requires": { - "buffer": "^5.1.0" + "exit-on-epipe": "~1.0.1", + "printj": "~1.1.0" } }, "crc32-stream": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/crc32-stream/-/crc32-stream-4.0.0.tgz", - "integrity": "sha512-tyMw2IeUX6t9jhgXI6um0eKfWq4EIDpfv5m7GX4Jzp7eVelQ360xd8EPXJhp2mHwLQIkqlnMLjzqSZI3a+0wRw==", + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/crc32-stream/-/crc32-stream-4.0.1.tgz", + "integrity": "sha512-FN5V+weeO/8JaXsamelVYO1PHyeCsuL3HcG4cqsj0ceARcocxalaShCsohZMSAF+db7UYFwBy1rARK/0oFItUw==", "requires": { - "crc": "^3.4.4", + "crc-32": "^1.2.0", "readable-stream": "^3.4.0" } }, @@ -2050,9 +2074,9 @@ } }, "engine.io": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/engine.io/-/engine.io-4.0.2.tgz", - "integrity": "sha512-sumdttqWLNjbuSMOSgDdL2xiEld9s5QZDk9VLyr4e28o+lzNNADhU3qpQDAY7cm2VZH0Otw/U0fL8mEjZ6kBMg==", + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/engine.io/-/engine.io-4.0.4.tgz", + "integrity": "sha512-4ggUX5pICZU17OTZNFv5+uFE/ZyoK+TIXv2SvxWWX8lwStllQ6Lvvs4lDBqvKpV9EYXNcvlNOcjKChd/mo+8Tw==", "requires": { "accepts": "~1.3.4", "base64id": "2.0.0", @@ -2310,6 +2334,11 @@ "resolved": "https://registry.npmjs.org/events/-/events-1.1.1.tgz", "integrity": "sha1-nr23Y1rQmccNzEwqH1AEKI6L2SQ=" }, + "exit-on-epipe": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/exit-on-epipe/-/exit-on-epipe-1.0.1.tgz", + "integrity": "sha512-h2z5mrROTxce56S+pnvAV890uu7ls7f1kEvVGJbw1OlFH3/mlJ5bkXu0KRyW94v37zzHPiUd55iLn3DA7TjWpw==" + }, "express": { "version": "4.17.1", "resolved": "https://registry.npmjs.org/express/-/express-4.17.1.tgz", @@ -3187,9 +3216,9 @@ } }, "ieee754": { - "version": "1.1.13", - "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.1.13.tgz", - "integrity": "sha512-4vf7I2LYV/HaWerSo3XmlMkp5eZ83i+/CDluXi/IGTs/O1sejBNhTtnxzmRZfvOUqj7lZjqHkeTvpgSFDlWZTg==" + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", + "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==" }, "ignore-walk": { "version": "3.0.3", @@ -3231,6 +3260,11 @@ } } }, + "immediate": { + "version": "3.0.6", + "resolved": "https://registry.npmjs.org/immediate/-/immediate-3.0.6.tgz", + "integrity": "sha1-nbHb0Pr43m++D13V5Wu2BigN5ps=" + }, "inflection": { "version": "1.12.0", "resolved": "https://registry.npmjs.org/inflection/-/inflection-1.12.0.tgz", @@ -3694,17 +3728,34 @@ "integrity": "sha512-8hfl5RD6P7rEeIbzStBz3h4f+BQHfq/ABtoU6gXKQv5OcZhnmrIpG7e1pYaZ8hS9e0mp+bxUj08fnDUbKctYyA==" }, "jszip": { - "version": "2.6.1", - "resolved": "https://registry.npmjs.org/jszip/-/jszip-2.6.1.tgz", - "integrity": "sha1-uI86ey5noqBIFSmCx6N1bZxIKPA=", + "version": "3.5.0", + "resolved": "https://registry.npmjs.org/jszip/-/jszip-3.5.0.tgz", + "integrity": "sha512-WRtu7TPCmYePR1nazfrtuF216cIVon/3GWOvHS9QR5bIwSbnxtdpma6un3jyGGNhHsKCSzn5Ypk+EkDRvTGiFA==", "requires": { - "pako": "~1.0.2" + "lie": "~3.3.0", + "pako": "~1.0.2", + "readable-stream": "~2.3.6", + "set-immediate-shim": "~1.0.1" }, "dependencies": { "pako": { "version": "1.0.11", "resolved": "https://registry.npmjs.org/pako/-/pako-1.0.11.tgz", "integrity": "sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw==" + }, + "readable-stream": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", + "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", + "requires": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } } } }, @@ -3821,6 +3872,14 @@ "resolved": "https://registry.npmjs.org/libqp/-/libqp-1.1.0.tgz", "integrity": "sha1-9ebgatdLeU+1tbZpiL9yjvHe2+g=" }, + "lie": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/lie/-/lie-3.3.0.tgz", + "integrity": "sha512-UaiMJzeWRlEujzAuw5LokY1L5ecNQYZKfmyZ9L7wDHb/p5etKaxXhohBcrw0EYby+G/NA52vRSN4N39dxHAIwQ==", + "requires": { + "immediate": "~3.0.5" + } + }, "linebreak": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/linebreak/-/linebreak-1.0.2.tgz", @@ -5215,6 +5274,11 @@ "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz", "integrity": "sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ=" }, + "printj": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/printj/-/printj-1.1.2.tgz", + "integrity": "sha512-zA2SmoLaxZyArQTOPj5LXecR+RagfPSU5Kw1qP+jkWeNlrq+eJZyY2oS68SU1Z/7/myXM4lo9716laOFAVStCQ==" + }, "process-nextick-args": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", @@ -5870,6 +5934,11 @@ "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=" }, + "set-immediate-shim": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/set-immediate-shim/-/set-immediate-shim-1.0.1.tgz", + "integrity": "sha1-SysbJ+uAip+NzEgaWOXlb1mfP2E=" + }, "setprototypeof": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.1.tgz", @@ -5914,19 +5983,19 @@ "integrity": "sha512-VUJ49FC8U1OxwZLxIbTTrDvLnf/6TDgxZcK8wxR8zs13xpx7xbG60ndBlhNrFi2EMuFRoeDoJO7wthSLq42EjA==" }, "simple-git": { - "version": "2.21.0", - "resolved": "https://registry.npmjs.org/simple-git/-/simple-git-2.21.0.tgz", - "integrity": "sha512-rohCHmEjD/ESXFLxF4bVeqgdb4Awc65ZyyuCKl3f7BvgMbZOBa/Ye3HN/GFnvruiUOAWWNupxhz3Rz5/3vJLTg==", + "version": "2.24.0", + "resolved": "https://registry.npmjs.org/simple-git/-/simple-git-2.24.0.tgz", + "integrity": "sha512-nF31Xai5lTYgRCiSJ1lHzK0Vk9jWOvAFW12bdBaWy2bhodio04eOWYurvyM/nTBYsPIiQl3PFvdod5TRcPvzww==", "requires": { "@kwsites/file-exists": "^1.1.1", "@kwsites/promise-deferred": "^1.1.1", - "debug": "^4.1.1" + "debug": "^4.3.1" }, "dependencies": { "debug": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.2.0.tgz", - "integrity": "sha512-IX2ncY78vDTjZMFUdmsvIRFY2Cf4FnD0wRs+nQwJU8Lu99/tPFdb0VybiiMTPe3I6rQmwsqQqRBvxU+bZ/I8sg==", + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.1.tgz", + "integrity": "sha512-doEwdvm4PCeK4K3RQN2ZC2BYUBaxwLARCqZmMjtF8a51J2Rb0xpVloFRnCODwqjpwnAoao4pelN8l3RJdv3gRQ==", "requires": { "ms": "2.1.2" } @@ -5952,10 +6021,13 @@ "integrity": "sha512-iVICrxOzCynf/SNaBQCw34eM9jROU/s5rzIhpOvzhzuYHfJR/DhZfDkXiZSgKXfgv26HT3Yni3AV/DGw0cGnnw==" }, "socket.io": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/socket.io/-/socket.io-3.0.1.tgz", - "integrity": "sha512-oVYbCQ4sCwm4wVi+f1bsE3YFXcvd6b4JjVP8D7IZnQqBeJOKX9XrdgJWSbXqBEqUXPY3jdTqb1M3s4KFTa/IHg==", + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/socket.io/-/socket.io-3.0.3.tgz", + "integrity": "sha512-TC1GnSXhDVmd3bHji5aG7AgWB8UL7E6quACbKra8uFXBqlMwEDbrJFK+tjuIY5Pe9N0L+MAPPDv3pycnn0000A==", "requires": { + "@types/cookie": "^0.4.0", + "@types/cors": "^2.8.8", + "@types/node": "^14.14.7", "accepts": "~1.3.4", "base64id": "~2.0.0", "debug": "~4.1.0", @@ -5964,6 +6036,11 @@ "socket.io-parser": "~4.0.1" }, "dependencies": { + "@types/node": { + "version": "14.14.10", + "resolved": "https://registry.npmjs.org/@types/node/-/node-14.14.10.tgz", + "integrity": "sha512-J32dgx2hw8vXrSbu4ZlVhn1Nm3GbeCFNw2FWL8S5QKucHGY0cyNwjdQdO+KMBZ4wpmC7KhLCiNsdk1RFRIYUQQ==" + }, "debug": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz", @@ -5976,11 +6053,6 @@ "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==" } } }, @@ -6037,10 +6109,11 @@ } }, "socket.io-parser": { - "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==", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/socket.io-parser/-/socket.io-parser-4.0.2.tgz", + "integrity": "sha512-Bs3IYHDivwf+bAAuW/8xwJgIiBNtlvnjYRc4PbXgniLmcP1BrakBoq/QhO24rgtgW7VZ7uAaswRGxutUnlAK7g==", "requires": { + "@types/component-emitter": "^1.2.10", "component-emitter": "~1.3.0", "debug": "~4.1.0" }, @@ -6066,9 +6139,9 @@ } }, "socket.io-redis": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/socket.io-redis/-/socket.io-redis-6.0.0.tgz", - "integrity": "sha512-f657jTlMMYTtlgcfjPkSUmC7kMlXXJQtyMsWC7fHJ5zzax0xPLf5sHiM7MLFe2m3VBIBcdZtgHvEweMuHAflAw==", + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/socket.io-redis/-/socket.io-redis-6.0.1.tgz", + "integrity": "sha512-RvxAhVSsDQJfDUEXUER9MvsE99XZurXkAVORjym1FTReqWlvmPVjyAnrpLlH3RxvPFdFa9sN4kmaTtyzjOtRRA==", "requires": { "debug": "~4.1.0", "notepack.io": "~2.2.0", @@ -6408,9 +6481,9 @@ } }, "systeminformation": { - "version": "4.30.0", - "resolved": "https://registry.npmjs.org/systeminformation/-/systeminformation-4.30.0.tgz", - "integrity": "sha512-RugiFbF7WppC/F71Y1S0WXbywQQ2MQcne5SUX0r51JHdhjbyKO0ydK6gdprtKlzIcU6edaADULbB8j2nAe/1LQ==" + "version": "4.30.5", + "resolved": "https://registry.npmjs.org/systeminformation/-/systeminformation-4.30.5.tgz", + "integrity": "sha512-aYWs8yttl8ePpr6VOQ/Ak8cznuc9L/NQODVhbOKhInX73ZMLvV2BS86Mzr7LLfmUteVFR36CTDNQgiJgRqq+SQ==" }, "tar": { "version": "4.4.13", @@ -6612,12 +6685,10 @@ "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=" }, "twilio": { - "version": "3.51.0", - "resolved": "https://registry.npmjs.org/twilio/-/twilio-3.51.0.tgz", - "integrity": "sha512-6TjXI7U1FWlKhqqdM2tKSZoq7MlRxv+K5IgKhKSrgcoYTm6/qZ51UwwY2rfVHUMicr6y6j4NgaBDrPiOtiu9Xg==", + "version": "3.52.0", + "resolved": "https://registry.npmjs.org/twilio/-/twilio-3.52.0.tgz", + "integrity": "sha512-G/2J4iva5T8080Mei3e24bCBxAemVe766iYQP+OonAzP7EUx9sv/hnNoNsM5u1vKkqKn7ER2uJ+mRI6bJrdEMA==", "requires": { - "@types/express": "^4.17.7", - "@types/qs": "6.9.4", "axios": "^0.19.2", "dayjs": "^1.8.29", "jsonwebtoken": "^8.5.1", @@ -6630,11 +6701,6 @@ "xmlbuilder": "^13.0.2" }, "dependencies": { - "@types/qs": { - "version": "6.9.4", - "resolved": "https://registry.npmjs.org/@types/qs/-/qs-6.9.4.tgz", - "integrity": "sha512-+wYo+L6ZF6BMoEjtf8zB2esQsqdV6WsjRK/GP9WOgLPrq87PbNWgIxS76dS5uvl/QXtHGakZmwTznIfcPXcKlQ==" - }, "qs": { "version": "6.9.4", "resolved": "https://registry.npmjs.org/qs/-/qs-6.9.4.tgz", @@ -7121,28 +7187,21 @@ } }, "zip-dir": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/zip-dir/-/zip-dir-1.0.2.tgz", - "integrity": "sha1-JT+QeurWKiGs2HIdi4gDKyQRwFE=", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/zip-dir/-/zip-dir-2.0.0.tgz", + "integrity": "sha512-uhlsJZWz26FLYXOD6WVuq+fIcZ3aBPGo/cFdiLlv3KNwpa52IF3ISV8fLhQLiqVu5No3VhlqlgthN6gehil1Dg==", "requires": { - "async": "^1.5.2", - "jszip": "^2.4.0" - }, - "dependencies": { - "async": { - "version": "1.5.2", - "resolved": "https://registry.npmjs.org/async/-/async-1.5.2.tgz", - "integrity": "sha1-7GphrlZIDAw8skHJVhjiCJL5Zyo=" - } + "async": "^3.2.0", + "jszip": "^3.2.2" } }, "zip-stream": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/zip-stream/-/zip-stream-4.0.2.tgz", - "integrity": "sha512-TGxB2g+1ur6MHkvM644DuZr8Uzyz0k0OYWtS3YlpfWBEmK4woaC2t3+pozEL3dBfIPmpgmClR5B2QRcMgGt22g==", + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/zip-stream/-/zip-stream-4.0.4.tgz", + "integrity": "sha512-a65wQ3h5gcQ/nQGWV1mSZCEzCML6EK/vyVPcrPNynySP1j3VBbQKh3nhC8CbORb+jfl2vXvh56Ul5odP1bAHqw==", "requires": { "archiver-utils": "^2.1.0", - "compress-commons": "^4.0.0", + "compress-commons": "^4.0.2", "readable-stream": "^3.6.0" } } diff --git a/package.json b/package.json index e004e52..d54ae69 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "motion", - "version": "3.0.0-alpha", + "version": "3.0.0-alpha.1", "description": "xCALLY Motion is the new Realtime asynchronous solution for your multichannel contact center over Asterisk.", "main": "src/app.js", "author": "\"xCally Team\"", @@ -33,9 +33,9 @@ "dependencies": { "@google-cloud/dialogflow": "^3.3.0", "apiai-promise": "^1.0.0", - "archiver": "^5.0.2", + "archiver": "^5.1.0", "asterisk-manager": "^0.1.16", - "aws-sdk": "^2.790.0", + "aws-sdk": "^2.799.0", "basic-auth": "^2.0.1", "body-parser": "^1.19.0", "compare-versions": "^3.6.0", @@ -94,19 +94,19 @@ "seq-queue": "0.0.5", "sequelize": "^6.3.5", "shelljs": "^0.8.4", - "simple-git": "^2.21.0", - "socket.io": "^3.0.1", + "simple-git": "^2.24.0", + "socket.io": "^3.0.3", "socket.io-emitter": "^3.1.1", - "socket.io-redis": "^6.0.0", + "socket.io-redis": "^6.0.1", "socketio-jwt": "^4.6.2", "sox": "^0.1.0", "squel": "^5.13.0", "sticky-session": "^1.1.2", - "systeminformation": "^4.30.0", + "systeminformation": "^4.30.5", "tiff2pdf": "^1.0.2", "to-csv": "^0.1.1", "triple-beam": "^1.3.0", - "twilio": "^3.51.0", + "twilio": "^3.52.0", "umzug": "^2.3.0", "user-agent-parser": "^0.6.0", "uuid": "^8.3.1", @@ -115,13 +115,13 @@ "winston": "^3.3.3", "ws": "^7.4.0", "xml2json": "^0.12.0", - "zip-dir": "^1.0.2" + "zip-dir": "^2.0.0" }, "xcally": { - "shortHash": "709aa6f", + "shortHash": "129fb4d", "branch": "develop", "tag": "", - "committedOn": "2020-11-18T15:36:04.000Z", - "buildDate": "2020-11-18T15:39:09.417Z" + "committedOn": "2020-11-27T18:17:09.000Z", + "buildDate": "2020-11-27T18:25:21.390Z" } } diff --git a/public/769-86a4a18b09268b6ab948.js b/public/769-86a4a18b09268b6ab948.js new file mode 100644 index 0000000..985024a --- /dev/null +++ b/public/769-86a4a18b09268b6ab948.js @@ -0,0 +1,2 @@ +/*! For license information please see 769-86a4a18b09268b6ab948.js.LICENSE.txt */ +var a2_0x35f6=["japanese_castle","wdtReferenceRecord ","ABORTED","8ball","UnknownMobile","\\$1","javascript:0","missionNamespace missionStart missionVersion mod modelToWorld modelToWorldVisual ","साँझ","SYSRES_CONST_NONE_ACCESS_RIGHTS_TYPE_CODE ","Android.*Nexus[\\s]+(7|9|10)","어제 LT","setHeading","[i]","initClickListeners","byte short char int long boolean float double void ","contributors controlfile conv convert convert_tz corr corr_k corr_s corresponding corruption cos cost "," þoras","!@#$%^&*()","([\\d]+[\\d_]+[\\d]+|[\\d]+)(\\.([\\d]+[\\d_]+[\\d]+|[\\d]+))?","SYSREF_EDOCUMENT_KINDS ","এক ঘন্টা","isUniquelyReferenced isUniquelyReferencedNonObjC join lazy lexicographicalCompare ","SYSRES_CONST_ORIGINALREF_REQUISITE_CODE ","SYSRES_CONST_SYSTEM_SETTING_EMPTY_VALUE_PARAM_VALUE ","application_surface_is_enabled display_get_width display_get_height ","","polyCreateFacetCtx polyCube polyCut polyCutCtx polyCylinder polyCylindricalProjection ","ds_map_replace_map ds_map_replace_list ds_map_delete ds_map_exists ","module requires exports do","cleanupResizing","hookOrder","md-chips","ctTask ","\\b(set|list|map)\\s*<","MMMM D, YYYY h:mm A"," not found. Did you forget to load it?","appendChip","JsSIP:Transport","ITaskFactory ","changeSelectedDate","markdown","SHORTDAY"," %c","uns segons","pos","=?mdOrder","length lower map markdown merge nl2br number_format raw reduce replace ","Context Random EntryLo0 EntryLo1 Context PageMask Wired EntryHi ","(`.+?`|\\+.+?\\+)","containerWidth","$sniffer","full_moon","дзень_дні_дзён","'n maand","revXMLTrees revXMLValidateDTD revZipDescribeItem revZipEnumerateItems revZipOpenArchives round sampVariance "," listoftens listofvars listp lmax lmin load loadfile local locate_matrix_entry","SYSRES_CONST_EDOC_WRITE_ACCES_CODE ","conversion","queued","fix","%d సెకన్లు","jsx","isSelectedEndDate","emRecoveryFromLocalCopy ","beforeFit","extends implements","copyRect","INVITE_SERVER","^\\=begin","achievement_show_ui achievement_show_profile ","steam_is_user_logged_on steam_get_user_steam_id steam_user_owns_dlc ","חודש","mdRadioButton","radioButtonItem","dddd D MMMM YYYY [kl.] HH:mm","randBinomial randLinear randTriangle round rPower sigmoid sign ","hltRTF ","ngEmbed","encodeDashes","disconnectAttr disconnectJoint diskCache displacementToPoly displayAffected ","dddd, D MMMM YYYY, A h:mm","single","uploader","BAD_MEDIA_DESCRIPTION","buffer_copy buffer_fill buffer_get_size buffer_tell buffer_resize ","dddd [um] LT [Uhr]","watcher","bquote|nrbquote|cmpres|qcmpres|compstor|","absolute","tree","md-select cannot have both `md-selected-text` and `md-selected-html`","հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր","md-datepicker-is-showing","post_office","[lLjJ]?","instanceable instancer intField intFieldGrp intScrollBar intSlider intSliderGrp "," минут","أغسطس","YYYY-MM-DD","edltAll edltNothing edltQuery ","uib/template/popover/popover-template.html"," with wrong or missing challenge, cannot authenticate","isInjectable","parsed","subPath","endspaceless regroup ifequal endifequal ssi now with cycle url filter ","svElement","soatPick ","минуту_минуты_минут","goto/16","xor","([ui](8|16|32|64|128|size)|f(32|64))?","xLabel","Hour","Thu","negate","%d ⵎⵉⵏⵓⴺ","destructor write message program with read initialization except default nil if case cdecl in ","\\b(\\d+(\\.\\d*)?|\\.\\d+)","PollingFileWatcher ProcessExitedException Ptr QuoteNode RandomDevice Range RangeIndex Rational RawFD ","[Утре в] LT","sendReinvite()","mdDateRangePicker","at else of catch then third it file milliseconds seconds second secs sec int1 int1s int4 ","MD-OPTGROUP","weak unowned owned ","gpu_get_tex_mip_enable_ext gpu_push_state gpu_pop_state ","BINARY_NUMBER_MODE","#c5e1a5","$$mdAnimate","deleteRipples","newEndIndex","rgbaString","Couldn't delete part, first arg has to be string.","%d eilenn","PRIVILEGE_USER_PLUGIN_SETTINGS_CUSTOMIZE ","$mdColors","div mod in and or not xor asserterror begin case do downto else end exit for if of repeat then to ","probe error: ","_|0 as at cofix else end exists exists2 fix for forall fun if IF in let ","#FF0099","бир жыл","\\][a-z]*","missing or invalid JsSIP.Socket via_transport property","animation-timing-function","__nwjs","resolveClientLocale","datepickerPopup",'\n',"sfsNormal ","hoverOut","final finalize finalizer finally flags for forward from function future global group has if implementation implements implies in index inherited ","column-rule-style","onPacket","sized","Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба","BQ1078|BC1003|BC1077|RK9702|BC9730|BC9001|IT9001|BC7008|BC7010|BC708|BC728|BC7012|BC7030|BC7027|BC7026","a8m.group-by","clockMinutes","CustomEvent","lastWeek","Jan 01, 1970 00:00:00 ","%sที่แล้ว",'("|#|/\\*|\\s+/\\w+)',"target_compile_definitions target_compile_features target_compile_options ","%sमध्ये","headers","_target",'Illegal lexeme "',"_doneCallbacks",'
\n\t
\n\n\t
\n\n\t\t
\n\t\t\t\x3c!--{{value}}--\x3e\n\t\t\t
\n\t\t\t\t\n\t\t\t
\n\t\t\t
\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\x3c!--\n\t\t\t\t\t--\x3e\n\t\t\t\t\n\t\t\t
\n\t\t
\n\t
\n\n\t
\n\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t
\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\tR\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\tG\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\tB\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\tA\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t
\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t
\n\n\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t
\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t
\n\n\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t
\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\n\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t
\n\t\t
\n\t
\n\n
\n',"showUser","chartArea","uib/template/popover/popover.html",'{{ item }}',"invalidSeconds","объявлениеэлементаxs описаниеиспользованиясобытиядоступжурналарегистрации ","#!\\/usr\\/bin\\/env runhaskell","radioChannelRemove radioChannelSetCallSign radioChannelSetLabel radioVolume rain rainbow random ","SYSRES_CONST_RIGHT_ALIGNMENT_CODE ","ugc_query_CreatedByFriendsRankedByPublicationDate ","Invalid target: ","event-key","applyTake arcLenDimContext arcLengthDimension arclen arrayMapper art3dPaintCtx ","To: ","\\s*","onSuccessResponse","zeroLineIndex","afterDraw","mouseActive","#f4ff81","registrar_server","Invalid reload state object","SYSRES_CONST_AUTHENTICATING_SIGNATURE_NAME ","icSelectRouteEventHandler ","event","en-ca","object-fit","Windows CE.*(PPC|Smartphone|Mobile|[0-9]{3}x[0-9]{3})|Windows Mobile|Windows Phone [0-9.]+|WCE;","[Минулої] dddd [","_format","ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ","[juče u] LT","СистемаДиректумКод ","cmake","sec","stateService",'',"change","-ми","PUT","selectedAnswers","SYSRES_CONST_ADITIONAL_JOB_START_DATE_REQUISITE_NAME ","bool byte i16 i32 i64 double string binary","s0 s1 s2 s3 s4 s5 s6 s7 s8 s9 s10 s11 s12 s13 s14 s15 ","transformOrigin","SYSREQ_REF_TYPE_EVENT_TEXT ","selector-pseudo","ctComboBox ","useHttpService","distanceDimension doBlur dolly dollyCtx dopeSheetEditor dot dotProduct ","&download=","landscape","[*-[]","результатчтенияданных своднаядиаграмма связьпараметравыбора связьпотипу связьпотипукомпоновкиданных сериализаторxdto ","EditText ","draw_enable_drawevent draw_enable_swf_aa draw_set_swf_aa_level ","illegalRe",'md-month-offset="$index" ',"ckEDocument ","|Hz|kHz",'custom-templates="config.customTemplates || model.customTemplates" ',"IF DO WHILE ENDWHILE CALL ENDIF SUB ENDSUB GOTO REPEAT ENDREPEAT ","SYSRES_CONST_MONTH_FORMAT_VALUE ","presentation","hcGroupParams hcLeader hcRemoveAllGroups hcRemoveGroup hcSelected hcSelectGroup hcSetGroup "," mainvar manual_demo maperror mapprint matrix_element_add matrix_element_mult","sampleSize","[कल] LT","goberserk","New-VICredentialStoreItem New-VIInventoryDrive New-VIPermission New-VIProperty New-VIRole New-VISamlSecurityContext New-VM New-VMHostAccount New-VMHostNetworkAdapter ","promiseResolved","requireMatch","SYSREQ_USERS_ACCESS_RIGHTS ","%d tímar","all","buffer_wrap buffer_fast buffer_vbuffer buffer_network buffer_u8 ","\\b(\\.\\d+|\\d+\\.\\d+)\\b","locals","%dم","SYSRES_CONST_ACTION_TYPE_CHANGE_CARD ","vm.isOpen = true","interpolate","ICustomWork ","[gestern um] LT [Uhr]","peekTail","with-input-from-file with-output-to-file write write-char zero?","%d минути","noSticky","struct enum interface union group import using const annotation extends in of on as with from fixed","DD.MM.YYYY","curr","window","preventMouseEvent","Loaded","isCalendarOpen","EBase Config Config1 Config2 Config3 LLAddr Debug DEPC DESAVE CacheErr ","pageYOffset","gl_MaxTessControlInputComponents gl_MaxTessControlOutputComponents gl_MaxTessControlTextureImageUnits ","--eg:","%d मिनेट","physics_particle_group_count physics_particle_group_get_data ","upgradeError","style","layoutLtMd","வைகறை","outline-width","ReadCertificateFromFile ","end bit tan cos sin pow map abs max ","oncoming_taxi","неделя_понеделник_вторник_сряда_четвъртък_петък_събота","md-icon-button"," цаг","DIVISION_BY_ZERO ERROR_IN_ASSIGNMENT ESCAPE_CHARACTER_CONFLICT INDICATOR_OVERFLOW ","sendACK"," log logcontract log_gamma lopow lorentz_gauge lowercasep lpart lratsubst",'"ttl"',"$stateChangeSuccess","ބުދަ","hourStep","epxansionPanelGroupCtrl","bat","pausing","close()","varinfmt|varlabel|varlen|varname|varnum|varray|",'"%"',"steps","_stopListeningFn","other","beberapa detik","%d jours","SYSRES_CONST_EDOC_CARD_TYPE_REQUISITE_CODE ","uib/template/popover/popover-html.html","adff2f","TASK_LINK_KIND ","onCancel","%d ժամ","87cefa",'
{{ calendar.date.format("MMMM YYYY") }}
',"font-face","#8d6e63","vertex_create_buffer_from_buffer ","gridster-mobile","[به‌یانی كاتژمێر] LT","sortedIndexOf","СпрТблСтрПред ","begin end if then else while do for break continue with until ","railXMarginWidth","SYSRES_CONST_GROUP_COMMON_CATEGORY_FIELD_VALUE ","wedding","steam_ugc_query_set_return_total_only ","attempts","erasConvertYear","%d күн","HH:mm:ss","selectAndFocusChipSafe","mdColors: 'hue-{hueNumber}' is not a valid hue, can be only 'hue-1', 'hue-2' and 'hue-3'"," linear all","ugc_sortorder_CreationOrderDesc ugc_sortorder_CreationOrderAsc "," totalfourier totient tpartpol trace tracematrix trace_options transform_sample","isSearch","_Nonnull _Nullable _Null_unspecified ","#CCCC33","md-toolbar","deActivateKey debriefingText debugFSM debugLog deg delete3DENEntities deleteAt deleteCenter ","SCRIPT_BLOCK_AFTER_FINISH_EVENT ","Gone","ArrayReDim ","EEE","init_incoming",' tabindex="-1">{{::dt.label}}\n',"matchdelete has char2nr simplify histget searchdecl iconv ","mdChecked",'">',"getColorByPoint","сервисвстроенныхпокупок состояниефоновогозадания типподписчикадоставляемыхуведомлений уровеньиспользованиязащищенногосоединенияftp ","actions","linky","putObject","(?=","REFER","ttl=","СоздатьОтчет ","gpu_set_texfilter_ext gpu_set_texrepeat gpu_set_texrepeat_ext ","createDateAtMidnight","onRemove","red","%s ನಂತರ"," {{ toast.content }}","months accessor is deprecated. Use month instead","reason","mdNavClick","class interface enum if else for while switch case break default continue ","$mdInteraction","getdims getf getGAUSShome getmatrix getmatrix4D getname getnamef getNextTradingDay getNextWeekDay getnr getorders ","ایک گھنٹہ","love_hotel","scrollbarY","connect","userNameWrite readJoystickY readJoystickX mouseReleased ","LOG_REJECTED_RESULT","_newMessage","minutė_minutės_minutę","%d hours","mdpTimePicker","[u] [nedelju] [u] LT","IN_PROGRESS","DISCONNECT","[object BlobConstructor]","dragClass","TIMEOFDAY TRANSACTION_TIMESTAMP|10 ","removeModelChangeListener","\\n_{4,}$","backdropPaddingX","emLock ","clearAnimate","cancelAnimFrame","preparationClasses","Ýek_Duş_Siş_Çar_Pen_Ann_Şen","SYSRES_CONST_ACCESS_RIGHTS_VIEW ","SYSRES_CONST_CONST_NEGATIVE_VALUE ","YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]","un nebeud segondennoù","\n","einer Woche",": <- Hook returned: ","SYSRES_CONST_RECSTAT_REQUISITE_CODE ","rubysitedir rubyversion selinux selinux_config_mode selinux_config_policy selinux_current_mode selinux_current_mode selinux_enforced ","Окружение ","isolateScope","[object Object]","1 分鐘","getData","%s內","strictDi","haskell","provider","addCuratorEditableObjects addCuratorEditingArea addCuratorPoints addEditorObject addEventHandler ","getMissionLayerEntities getModelInfo getMousePosition getMusicPlayedTime getNumber ",'aria-label="{{::ctrl.locale.msgOpenCalendar}}">',"Opera.*Mini|Opera.*Mobi|Android.*Opera|Mobile.*OPR/[0-9.]+$|Coast/[0-9.]+","cctDate ",".mdp-calendar-monthyear","local|lowcase|macro|mend|nrbquote|nrquote|","typeQueue","dddd LT[ට]","eZee[_']?(Tab|Go)[0-9]+|TabLC7|Looney Tunes Tab","createMetaData","barSpacing","pointer","stars","$$prepared","isWeaponDeployed isWeaponRested itemCargo items itemsWithMagazines join joinAs joinAsSilent ","mdTabsTemplate","mánuðum","Linux",'"realm"',"initialexec localdynamic localexec prefix unnamed_addr ","e9967a","\\d(_|\\d)*","include|use <",'',"longestLabelWidth","[Gëschter um] LT","januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar","locale","SYSREQ_EDOC_TYPE_VIEW_NAME ","footerFontColor",'ng-if="tab.hasContent" ',"mdInputMessageAnimation","bakeSimulation basename basenameEx batchRender bessel bevel bevelPlus binMembership ","packetCreate","add and alter as cascade check create delete describe ","cached_variants","sata",' tooltip-template-transclude-scope="originScope()">\n',"sekúnda"," scene schur2comp sconcat scopy scsimp scurvature sdowncase sec sech second","material.components.whiteframe","SYSRES_CONST_INT_REQUISITE ","no_good","circumference","unknown packet type ","target_include_directories target_link_directories target_link_libraries ","isScreenCapturingSupported","\\b(void|bool|int|int8|int16|int32|int64|uint|uint8|uint16|uint32|uint64|string|ref|array|double|float|auto|dictionary)","","netscape",":not(.md-secondary)","navigationHint","начатьтранзакцию начатьудалениефайлов начатьустановкувнешнейкомпоненты начатьустановкурасширенияработыскриптографией ","[minulý] dddd [v] LT","cancelable","path_index path_position path_positionprevious path_speed ","SYSRES_CONST_TASK_ROUTE_OR_CONDITION ","keepContent","clipEditor clipEditorCurrentTimeCtx clipSchedule clipSchedulerOutliner clipTrimBefore ","scrollY","ArrayLowBound ","countBy","[A-Z][a-zA-Z0-9_]*","php4","#304ffe","transition","inputFocus","tabContentPrefix","SYSREQ_REF_TYPE_NAME_IN_SINGULAR_LOCALIZE_ID ","_ __ %|0 %%|0","IS_BUILDER_USERS ","non-potable_water",":[ \\t]*(","libraryDisclaimers lifeState lightAttachObject lightDetachObject lightIsOn lightnings limitSpeed ","steam_ugc_create_query_user steam_ugc_create_query_user_ex ","_contact","stepped","STATUS_CONNECTED","[0-2]?[0-9]{1}|3[0-1]{1}","%s ago","ޖެނުއަރީ","rgba(255, 0, 255, 1.000)","REF VALUE OVERRIDING IMMUTABLE STABLE VOLATILE BEFORE AFTER EACH ROW PROCEDURAL ","_weekdaysParse","registerSelectedItemWatcher","relatedTarget",' uib-tooltip-template-transclude="contentExp()"\n',"switch","आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार","mdLabel","getDataset","'md-active': tab.isActive(), ","gl_MaxTessControlTotalOutputComponents gl_MaxTessControlUniformComponents ",'לפנה"צ',' {{ngModel.selectedTemplateName || placeholder}}',"cocktail","checksum checksum_agg child choose chr chunk class cleanup clear client clob clob_base clone close ","FormImageBuilderId",'not so many "',"onmousedown","element","(\\-|\\+)?\\d+([./]\\d+)?","SYSRES_CONST_USERS_REFERENCE_CODE ","uibPopoverTemplate","
\n","findMatch","$mdBottomSheet: using `` will affect the bottom-sheet opening animations.","ownKeys"," with: ","bamboo","[\\x0E-]","RANDOM SETSEED ","vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat","uibTooltip","hasSpeakers","dddd, D. MMMM YYYY. H:mm",'',"SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_CERTIFICATE_AND_PASSWORD ","y-axis-1","ERAS","mdInkRipple","new next conj set! to-array future future-call into-array aset gen-class reduce map filter find empty ","[ನಾಳೆ] LT","%define %xdefine %+ %undef %defstr %deftok %assign %strcat %strlen %substr %rotate %elif %else %endif ","hear_no_evil","ទី%d","dropRightWhile",".angucomplete-dropdown","rdtString ","preloadTitleObj preloadTitleRsc preprocessFile preprocessFileLineNumbers primaryWeapon ","preferredLanguage","shadow","minuutti","mrcrtMaximal ","application","ПВыборSQL ","a8m.conditions","create default delegate desc distinct div do downto dynamic each else empty end ensure enum equals event except exit extension external false ","Get-HCXDatastore Get-HCXGateway Get-HCXInterconnectStatus Get-HCXJob Get-HCXMigration Get-HCXNetwork Get-HCXNetworkExtension ","aria-haspopup","SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_STATUS_ACTION_CODE ","Open BSD","outerHTML",";refresher=","currentWeapon currentWeaponMode currentWeaponTurret currentZeroing cursorObject cursorTarget ","scroll","isAudioContextSupported","views","magazinesAmmoCargo magazinesAmmoFull magazinesDetail magazinesDetailBackpack ","uas","[Järgmine] dddd LT","noTransition","device_mouse_x_to_gui device_mouse_y_to_gui iap_activate iap_status ","' state]: target ui-view: '","layer_tile_get_alpha layer_tile_get_x layer_tile_get_y ","видподписейкдиаграмме видполяформы видфлажка влияниеразмеранапузырекдиаграммы горизонтальноеположение ","nsp","_configureEscapeToClose","leto","suspend switch switchoffset switchover sync synchronous synonym sys sys_xmlagg sysasm sysaux sysdate ","CHECK_FILTRATER_CHANGES_RULE_ID ","як соат","ms ease","parseDate","icStructuredConversionRule ",'md-scope="::tab.parent"> ',"waitTransitionEnd","SYSRES_CONST_ACTION_TYPE_RESTORE_FROM_ARCHIVE ","box","#FF3399","ng-animate-shim","یک سال","unas segondas"," Only numeric values are allowed as `timeout`.\n","%sមុន","YYYY년 MMMM D일 A h:mm","resource","gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.","oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ","uib/template/modal/backdrop.html","session progress","$context",".mdp-calendar-days","chartDatasetOverride","quarter","РазнРабВремя ","true false null undefined ","типизмеренияпостроителязапроса ","%d বছর","%d sekunder","mwForm.pageEvents.pageRemoved","fun function global if in inherit inline interface internal lazy let ","wdtGroupCollection ","dⓓdḋďḍḑḓḏđƌɖɗꝺ","md-no-float",'',"SYSTEM_SETTINGS_PSEUDOREFERENCE_CODE ","Add-VirtualSwitchPhysicalNetworkAdapter Add-XmlElement Add-vRACustomForm Add-vRAPrincipalToTenantRole Add-vRAReservationNetwork ","filterUpgrades","triggerAttachObject triggerAttachVehicle triggerDynamicSimulation triggerStatements triggerText ","nextItem","هڪ ڪلاڪ","beginKeywords","_week","808080","dalam %s","%d соат","typeaheadWaitMs","mwQuestionPriorityListBuilder","get","getSelectedLabels","wfepText24 ","ATTENTION_CAPTION ","dseOnUpdateRatifiedRecord ","toasty-theme-","ctDBNavigator ","URL","writer xlabel xlsGetSheetCount xlsGetSheetSize xlsGetSheetTypes xlsMakeRange xlsReadM xlsReadSA xlsWrite xlsWriteM ","steam_file_persisted steam_get_quota_total steam_get_quota_free ","rgba(","nodejs.util.inspect.custom","upgrade","navigable","updateChipContents","ФмтСтр ",";lr>","SYSRES_CONST_POWER_TO_SIGN_ACTION_CODE ","getFocusedMenu","кодлокализацииинформационнойбазы кодсимвола командасистемы конецгода конецдня конецквартала конецмесяца конецминуты ","mdAutoFocus","abstract alias align asm assert auto body break byte case cast catch class ","[昨天]LT","findAllIntersections findAnimCurves findKeyframe findMenuItem findRelatedSkinCluster ","pad position action delim readwrite eor advance nml interface procedure namelist include sequence elemental pure ","%s ó shin","maxDuration","util",'"\\t"',"stop()","rice","July","[У мінулы] dddd [ў] LT"," hessian hgfred hilbertmap hilbert_matrix hipow histogram histogram_description","UTC"," tup","$$loadingAsyncDone","Client Server GSMPIN FileIO Bridge Serial ","getNgClassMap","एक दिन","initialized","isView","tranSvc","tcptype",'
',"outerRadius","","emitEvent","mousemove touchmove","getElementsByClassName","/\\d+","ngAria","states","Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu","scrollDisplayLeft writeMicroseconds delayMicroseconds ","InputView","textureProjLod textureProjLodOffset textureProjOffset textureQueryLevels textureQueryLod ","watchDigests","gpu_get_blendmode_destalpha gpu_get_colorwriteenable ","^_^","$interval","SYSRES_CONST_USER_SERVICE_CATEGORY ","nose"," in stateview: '","ski","mangleOffer() | both on hold, mangling offer","uib/template/rating/rating.html"," is reserved!","useLoader","Unknown Resource-Priority","dotnet safe unsafe","%[qQwWx]?/","SYSREQ_EDOC_TYPE_ADD_PARAMS ","bigHour","toString toUpper triggerActivated triggerActivation triggerArea triggerAttachedVehicle ","mdTabsDummyWrapper","touchend","public subroutine|10 function program .and. .or. .not. .le. .eq. .ge. .gt. .lt. ","md-closed","railXRatio","material.components.select","::\\s*"," einstein eivals eivects elapsed_real_time elapsed_run_time ele2comp ele2polynome","1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月","типединицышкалывремени типимпортасерийслоягеографическойсхемы типлиниигеографическойсхемы типлиниидиаграммы ","DetailRange Disk Displacement Display End ErrorHandler Exposure Exterior Format ",") {\n","горизонтальноеположениеэлемента группировкаколонок группировкаподчиненныхэлементовформы ","noIncrementSeconds","broken_heart","tcl_findLibrary tcl_startOfNextWord tcl_startOfPreviousWord tcl_wordBreakAfter ",'
',"AdjustLineBreaks ","[a-f]","getMaximumHeight","broken event named: ","SYSRES_CONST_SUBTASK_BLOCK_DESCRIPTION ","removeInterceptor","DialogResult ","moment.langData is deprecated. Use moment.localeData instead.","_titleFontStyle","_realm","Literal date support has been deprecated, please switch to date object usage","msgCalendar","एक दीस","qualified type data newtype deriving class instance as default ","minLength","bodyElement","changedTouches","light","(_*f(32|64))?","emOpenForView ","network-id","час_часа_часов","uiSrefActiveEq",'"`"',"escapeUser","^gridster","_currentView","prn nul lpt3 lpt2 lpt1 con com4 com3 com2 com1 aux ","SYSCOMP_CONTROL_JOBS ","ح_ن_ث_ر_خ_ج_س","alignstack atomic catch cleanup filter inteldialect ","UNDERSCORE_TITLE_MODE","TOP","one","physics_particle_group_get_mass physics_particle_group_get_inertia ","SYSRES_CONST_SELECT_TYPE_SELECTABLE ","mousedown","soundControl source spaceLocator sphere sphrand spotLight spotLightPreviewPort ","3rd","module","rdtDocument ","hex6","un mois","Bir necha %s oldin","msReleasePointerCapture","quelques secondes","isSetSinkIdSupported","marker-end","_md-datepicker-floating-label",'"message"',"hostport_params","dayOfMonthValues","a month","areq","is-every is-float is-instance is-integer is-integer-char is-iterable is-iterator is-keyword is-neg is-none ","detachCalendarPane","(min-width: 600px)","vectorMagnitude vectorMagnitudeSqr vectorModelToWorld vectorModelToWorldVisual vectorMultiply ","pink","[minulou neděli v] LT","lexemesRe","ngSanitize","removeAllInterceptors","No instance found for handle","$translateRefreshEnd","expectedEndTime","isRtl","wonten ing %s","material.components.subheader","animation","mdHideIcons","ВыборSQL ","mdTextContent","xlsx","_focusFirstTab","Get-IseSnippet Get-Item Get-ItemProperty Get-Job Get-JobTrigger Get-Location Get-Member Get-Module Get-PfxCertificate Get-Process ","ਇੱਕ ਮਹੀਨਾ","getOpen","wdtFloat ","formatMonth","dbGetDriverName dbGetDrivers dbGetHostName dbGetLastErrorNum dbGetLastErrorText dbGetNumericalPrecPolicy ",'"~"',"\\(This","#CC0033","uibDatepickerPopup","ФмтSQLДат ","closedDeferred","small_red_triangle","sekúndum","imports","1 年","tablet","SET_PIN_MODE INTERNAL2V56 SYSTEM_RESET LED_BUILTIN ","Trident/[0-9.]+;.*rv:[VER]","parseMessage() | no CRLF found, not a SIP message","SYSREQ_EDOC_TYPE_REQ_IS_LEADING ","cal","momentProperties","notify()","COMPTYPE2_REQUISITE_REFERENCES_VALUE ","січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня","md-table-pagination","_erasNarrowRegex","SYSRES_CONST_FULL_SUBSTITUTE_TYPE ","$mdUserTemplate","کانونی دووەم","SYSRES_CONST_DETAIL_REQ_CODE ","000000","UibDatepickerController","candidate","fitRipple","$mdMenu","SYSRES_CONST_REFERENCE_RECORD_HISTORY_DELETE_ACTION_CODE ",".md-color-picker-palette","%d يىل","Si_Mo_Ti_Wo_To_Fr_So","petang","Connect-Vmc Connect-vRAServer Connect-vRNIServer ConvertFrom-Markdown ConvertTo-MOFInstance Copy-DatastoreItem Copy-HardDisk Copy-NsxEdge ","removeAllCuratorEditingAreas removeAllEventHandlers removeAllHandgunItems removeAllItems ","SYSRES_CONST_EDOC_STORAGE_CHECK_ACCESS_RIGHTS_REQUISITE_CODE ","[0-2][0-9]{1}|3[0-1]{1}","minMode","%d days","createTextNode","panelClass","SYSRES_CONST_USER_STATUS_SYSTEM_DEVELOPER_CODE ","openOnClick","@quoteStrings","isNull","///+\\s*","yhden","__super__","mwFormImageBuilder","position","md-mode-","mdp-chevron-left","ngMessages","mousemove","minuta","Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag","mdList","^^mdVirtualRepeatContainer","CANT_CHANGE_ID_REQUISITE_RULE_ID "," -> ","model.customTemplates will be removed from model on next rlease, please use root config e.g. $mdDateRangePicker.show({customTemplates}) instead","transitionInClass","IECertificates ","LoadStringFmt ","objectivec","ngResource","traceViewServiceUIViewEvent","disconnect playMelody parseFloat autoscroll ",'packet received with socket readyState "%s"',"_host","SYSRES_CONST_NAME_REQUISITE_CODE ","DebugLevel Declare DeclareC DeclareCDLL DeclareDLL DeclareModule Default ",'"branch"',"lety","early-only","test","$cookies","MemoryLocationService",";refresher=uac","SYSRES_SQLERRORS ","lle ","%d emahora","then unless until loop of by when and or is isnt not it that otherwise from to til fallthrough super ","beingDragged","handleClickSelectThisMonth","f08080","meanBy","OID REGPROC|10 REGPROCEDURE|10 REGOPER|10 REGOPERATOR|10 REGCLASS|10 REGTYPE|10 REGROLE|10 ","_view","ctScript ","sfcRed ","focusAfterAppend","[ \\t]*=","identity if if* if-not if-python2 import in inc input instance? ","activeDate","blackberry|\\bBB10\\b|rim tablet os","extractResponse","plant","SYSREF_SERVER_EVENTS_HISTORY ","[\\{$]","'unjy","normalize not notEqual outerProduct packDouble2x32 packHalf2x16 packSnorm2x16 packSnorm4x8 ","disableOptions","memoize","SYSRES_CONST_MINUTE_CHAR ","beta_binomial hypergeometric categorical categorical_logit ","formData","\\s=>","namedPage","registerHeader","(\\/\\/|","SYSRES_CONST_EXTENSION_REQUISITE_CODE ","gen._febr._març_abr._mai_junh_julh._ago._set._oct._nov._dec.","inputAriaDescribedBy","superseded","cache database_names database_schemanames database_tablenames ","dtan darcsin darccos darctan darctan2 degtorad radtodeg power logn ","Set-AlarmDefinition Set-Annotation Set-CDDrive Set-CIAccessControlRule Set-CINetworkAdapter Set-CIVApp Set-CIVAppNetwork Set-CIVAppStartRule Set-CIVAppTemplate Set-Cluster ","constant","%d timar","collapsing","connec connect connect_by_iscycle connect_by_isleaf connect_by_root connect_time connection ","formatDayTitle","ЦПодстр ","IStringRequisiteDescription ",'{{ok}}',"$mdMenu.open($event)","seat","sortedLastIndexBy","More info at https://github.com/angular/angular.js/commit/8863b9d04c722b278fa93c5d66ad1e578ad6eb1f","isMobileFallback","NonInviteServerTransaction","methods","Sun_Mon_Tue_Wed_Thu_Fri_Sat","_staled","erlang-repl","mbNo ","SYSREQ_USERS_COMPONENT_USER_IS_PUBLIC ","wsAborted ","einem Monat","hljs","object operator out override params private protected public readonly ref sbyte ","Done","large_blue_diamond","E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë","[Àna ni] LT","physics_world_update_speed physics_world_update_iterations ","md-checkbox-column","last_quarter_moon_with_face","removeChip","CONNECT_ERROR","marginRight","_addStyles","appendTo","autohotkey","labelRotation","(eq|ne|cs|cc|mi|pl|vs|vc|hi|ls|ge|lt|gt|le|al|hs|lo)?","VIEW_HOURS","SUBTASK_BLOCK_USE_STANDARD_ROUTE_PROPERTY ","enable","transitionDuration","%d分","a8m.is-empty","$$rAFScheduler","forceFallback","addNewRow","50 100 200 A100","z-index","_md-datepicker-has-calendar-icon","enjing"," lc_l lcm lc_u ldefint ldisp ldisplay legendre_p legendre_q leinstein length","Chrome/[VER]","SYSREQ_REF_TYPE_VIEW_COMMENT ","fadeOutComplete","execCommand","icDataSetEventHandler ","%d månader","printdos proc push retp return rndcon rndmod rndmult rndseed run save saveall screen ","'iens mes","сати","kbv_returnkey_default kbv_returnkey_go kbv_returnkey_google ","$formatters",'
',"Ýk_Dş_Sş_Çr_Pn_An_Şn","SYSRES_CONST_AUTO_STRONG_ENUM_METHOD_FLAG ","swap",'height="',"rel"," cgreaterp cgreaterpignore changename changevar chaosgame charat charfun charfun2","uiCanExit","userInputNgModelCtrl","mouseup","DD. MM. YYYY","float32 float64 bool char string cstring pointer expr stmt void ","ticket","#CC6600","session onhold","kahden","ds_queue_create ds_queue_destroy ds_queue_clear ds_queue_copy ","%d phút","
  • \n","Argument '{0}' is {1}","sas","textarea,[contenteditable]","splineCurve","Remove-HCXAppliance Remove-HCXNetworkExtension Remove-HCXReplication Remove-HCXSitePairing Remove-HardDisk Remove-IScsiHbaTarget Remove-Inventory Remove-KeyManagementServer ","function constructor destructor procedure method","ds_stack_push ds_stack_pop ds_stack_top ds_stack_write ds_stack_read ","curveTangent curveTightness shape shapeMode beginContour beginShape bezierVertex curveVertex ","matrix_build_identity matrix_build matrix_build_lookat ","womans_hat","ett minutt","SYSREQ_REF_TYPE_NAME_LOCALIZE_ID ","IPrivilege ","getHeaderRows","_updateTabs","verbatim","emMarkAsReaded ","argmemonly double","curryRight","rose","necktie",'"MD5-sess"',"режимосновногоокнаклиентскогоприложения режимоткрытияокнаформы режимотображениявыделения ","\\W}","ngRequired","toasty-cleared",'
      ","An t-Samhain","offset-start","SYSRES_CONST_PICK_TYPE_CHAR ","%d secondes","DATETIME_FORMATS","%s i mua","einem Jahr","SCRIPT_BLOCK_SCRIPT_PROPERTY ","1 个月","offerToReceiveAudio","sendPacket","wfepText21 ","[گزريل هفتي] dddd [تي] LT","_gradientType","_titleAlign","zap","SYSRES_CONST_REQUISITE_NUMBER_REQUISITE_CODE ","globalvar enum #macro #region #endregion","$scroll","[0-9]","несколько секунд","monthsRegex",' \n',"rgba(0, 0, 0, 1.000)","or md-nav-sref attributes per nav-item directive.","form"," test_sign test_signed_rank test_variance test_variance_ratio tex tex1 tex_display","argc count getwinvar glob foldtextresult getreg foreground cosh ","heart_eyes","dan","engine","_path","Get-vRAReservationComputeResourceNetwork Get-vRAReservationComputeResourceResourcePool Get-vRAReservationComputeResourceStorage Get-vRAReservationPolicy ","merge describe use explain help declare prepare execute deallocate release ","Dé Domhnaigh","AUTO_NUMERATION_RULE_ID ","isSpecialChar","#8c9eff","cloneDeepWith","pointerdown","nixos","parentLocale","$mdEditDialog","#ffccbc","doWrite","onicecandidate","Push-Location Read-Host Receive-Job Register-EngineEvent Register-ObjectEvent Register-PSSessionConfiguration Register-ScheduledJob ","writeln","1 ມື້","jsbinHeight","ek minut","%d ชั่วโมง","a8m.xor","CHECK_CODE_REQUISITE_RULE_ID ","win8_livetile_notification_expiry win8_livetile_notification_tag ","fillStyle","closed_lock_with_key","[^A-Za-z0-9_ \t\\->]","40e0d0","#ff3d00",'&!autoplay" ',"viewConfig","rooster","UibTypeaheadController","draw_highscore sprite_exists sprite_get_name sprite_get_number ","atomic_uchar atomic_short atomic_ushort atomic_int atomic_uint atomic_long atomic_ulong atomic_llong ","Digest ","mdMenu: The $mdOpenMenu method is deprecated. Please use `$mdMenu.open`.","md-option[selected]","$mdIcon","janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris","matchadd mkdir screenattr getfontname libcall reltimestr getfsize ","[A-Za-z$_][0-9A-Za-z$_]*","scrollbarX","^uibProgress","wstForm ","styles","_bubble","timeline_max_moment object_exists object_get_name object_get_sprite ","emDelete ","animation-delay","SYSRES_CONST_STATUS_VALUE_PURPLE_SQUARE ","IDeaObjectInfo ","oldRow","off","STATUS_NOT_READY","_focusOnOpen","#d500f9","({|$)","$urlMatcherFactory","crossed_flags","getScrollOffset","%d giây","isRippleAllowed","underline-thickness,unicode,unicode-range,units-per-em,values,version,viewBox,visibility,","buffer_create_from_vertex_buffer ","ruleslanguage","SYSREF_TASK_RIGHTS ","လာမည့် %s မှာ","%d ثانیه","object_is_ancestor room_exists room_get_name sprite_set_offset ","ViewService: No view config factory registered for type ","refreshView","Hudl HT7S3|Hudl 2","macosx_productversion_minor manufacturer memoryfree memorysize netmask metmask_ network_ operatingsystem operatingsystemmajrelease ","$setValidity","[lLfF]?","velocityX","фасетперечисленияxs фасетпробельныхсимволовxs фильтрузловdom форматированнаястрока форматированныйдокумент ","ftit sekondi","Dé hAoine","\\b([0-9_])+","alpha","Remove-NsxFirewallRule Remove-NsxFirewallRuleMember Remove-NsxFirewallSavedConfiguration Remove-NsxFirewallSection Remove-NsxIpPool Remove-NsxIpSet Remove-NsxIpSetMember ","creationData","%d years","en ","offsetParent","Line","[اليوم على الساعة] LT","LOGIN NOLOGIN REPLICATION NOREPLICATION BYPASSRLS NOBYPASSRLS ","Cannot parse rgb value","get3DENActionState get3DENAttribute get3DENCamera get3DENConnections get3DENEntity ","@fieldSeparator",'The value of "n" is out of range. It must be a non-negative number. Received ',"message withpath adminfile allow_virtual allowcdrom category configfiles flavor install_options instance package_settings platform ","wfepText9 ","FaceForm FaceGrids FaceGridsStyle FacialFeatures Factor FactorComplete Factorial Factorial2 FactorialMoment FactorialMomentGeneratingFunction FactorialPower FactorInteger FactorList FactorSquareFree FactorSquareFreeList FactorTerms FactorTermsList Fail Failure FailureAction FailureDistribution FailureQ False FareySequence FARIMAProcess FeatureDistance FeatureExtract FeatureExtraction FeatureExtractor FeatureExtractorFunction FeatureNames FeatureNearest FeatureSpacePlot FeatureSpacePlot3D FeatureTypes FEDisableConsolePrintPacket FeedbackLinearize FeedbackSector FeedbackSectorStyle FeedbackType FEEnableConsolePrintPacket FetalGrowthData Fibonacci Fibonorial FieldCompletionFunction FieldHint FieldHintStyle FieldMasked FieldSize File FileBaseName FileByteCount FileConvert FileDate FileExistsQ FileExtension FileFormat FileHandler FileHash FileInformation FileName FileNameDepth FileNameDialogSettings FileNameDrop FileNameForms FileNameJoin FileNames FileNameSetter FileNameSplit FileNameTake FilePrint FileSize FileSystemMap FileSystemScan FileTemplate FileTemplateApply FileType FilledCurve FilledCurveBox FilledCurveBoxOptions Filling FillingStyle FillingTransform FilteredEntityClass FilterRules FinancialBond FinancialData FinancialDerivative FinancialIndicator Find FindAnomalies FindArgMax FindArgMin FindChannels FindClique FindClusters FindCookies FindCurvePath FindCycle FindDevices FindDistribution FindDistributionParameters FindDivisions FindEdgeCover FindEdgeCut FindEdgeIndependentPaths FindEquationalProof FindEulerianCycle FindExternalEvaluators FindFaces FindFile FindFit FindFormula FindFundamentalCycles FindGeneratingFunction FindGeoLocation FindGeometricConjectures FindGeometricTransform FindGraphCommunities FindGraphIsomorphism FindGraphPartition FindHamiltonianCycle FindHamiltonianPath FindHiddenMarkovStates FindIndependentEdgeSet FindIndependentVertexSet FindInstance FindIntegerNullVector FindKClan FindKClique FindKClub FindKPlex FindLibrary FindLinearRecurrence FindList FindMatchingColor FindMaximum FindMaximumFlow FindMaxValue FindMeshDefects FindMinimum FindMinimumCostFlow FindMinimumCut FindMinValue FindMoleculeSubstructure FindPath FindPeaks FindPermutation FindPostmanTour FindProcessParameters FindRepeat FindRoot FindSequenceFunction FindSettings FindShortestPath FindShortestTour FindSpanningTree FindSystemModelEquilibrium FindTextualAnswer FindThreshold FindTransientRepeat FindVertexCover FindVertexCut FindVertexIndependentPaths Fine FinishDynamic FiniteAbelianGroupCount FiniteGroupCount FiniteGroupData First FirstCase FirstPassageTimeDistribution FirstPosition FischerGroupFi22 FischerGroupFi23 FischerGroupFi24Prime FisherHypergeometricDistribution FisherRatioTest FisherZDistribution Fit FitAll FitRegularization FittedModel FixedOrder FixedPoint FixedPointList FlashSelection Flat Flatten FlattenAt FlattenLayer FlatTopWindow FlipView Floor FlowPolynomial FlushPrintOutputPacket Fold FoldList FoldPair FoldPairList FollowRedirects Font FontColor FontFamily FontForm FontName FontOpacity FontPostScriptName FontProperties FontReencoding FontSize FontSlant FontSubstitutions FontTracking FontVariations FontWeight For ForAll Format FormatRules FormatType FormatTypeAutoConvert FormatValues FormBox FormBoxOptions FormControl FormFunction FormLayoutFunction FormObject FormPage FormTheme FormulaData FormulaLookup FortranForm Forward ForwardBackward Fourier FourierCoefficient FourierCosCoefficient FourierCosSeries FourierCosTransform FourierDCT FourierDCTFilter FourierDCTMatrix FourierDST FourierDSTMatrix FourierMatrix FourierParameters FourierSequenceTransform FourierSeries FourierSinCoefficient FourierSinSeries FourierSinTransform FourierTransform FourierTrigSeries FractionalBrownianMotionProcess FractionalGaussianNoiseProcess FractionalPart FractionBox FractionBoxOptions FractionLine Frame FrameBox FrameBoxOptions Framed FrameInset FrameLabel Frameless FrameMargins FrameRate FrameStyle FrameTicks FrameTicksStyle FRatioDistribution FrechetDistribution FreeQ FrenetSerretSystem FrequencySamplingFilterKernel FresnelC FresnelF FresnelG FresnelS Friday FrobeniusNumber FrobeniusSolve FromAbsoluteTime FromCharacterCode FromCoefficientRules FromContinuedFraction FromDate FromDigits FromDMS FromEntity FromJulianDate FromLetterNumber FromPolarCoordinates FromRomanNumeral FromSphericalCoordinates FromUnixTime Front FrontEndDynamicExpression FrontEndEventActions FrontEndExecute FrontEndObject FrontEndResource FrontEndResourceString FrontEndStackSize FrontEndToken FrontEndTokenExecute FrontEndValueCache FrontEndVersion FrontFaceColor FrontFaceOpacity Full FullAxes FullDefinition FullForm FullGraphics FullInformationOutputRegulator FullOptions FullRegion FullSimplify Function FunctionCompile FunctionCompileExport FunctionCompileExportByteArray FunctionCompileExportLibrary FunctionCompileExportString FunctionDomain FunctionExpand FunctionInterpolation FunctionPeriod FunctionRange FunctionSpace FussellVeselyImportance","STATUS_NULL","isPM","getScaleDefaults","response"," ctaylor ct_coordsys ctransform ctranspose cube_graph cuboctahedron_graph","points","admin all auto both bottom bzip2 colored components current custom directory false force hide highest ifdiff ifnewer instfiles lastused leave left license listonly lzma nevershow none normal notset off on open print right show silent silentlog smooth textonly top true try un.components un.custom un.directory un.instfiles un.license uninstConfirm user Win10 Win7 Win8 WinVista zlib","modalOptions","md-panel _md-panel-offscreen","negativeScrollAdjustment","s*:s*[a-z$_][0-9a-z$_]*((s*(","flashlight","rgb(92, 0, 0)","ctEdit ","#f06292","handleMenuItemMouseLeave","wfepUndefined ","webkitRequestFileSystem","startTime","if import include macro sandbox set use verbatim with","Session Interval Too Small","SYSRES_CONST_REQ_NUMBER_REQUISITE_CODE ","StereoDecoder PointCloud NetworkAccess RemoteControl RegExp ChromaKey Snowfall NodeJS Speech Charts","cloneHidden","Dil","unu horo","nav-up","_body","dddd، D MMMM YYYY HH:mm","setNgModelValue","^[ \t]*\\*.*$","FormQuestionId","РегУстВрем ","ciphers","setWaypointPosition setWaypointScript setWaypointSpeed setWaypointStatements setWaypointTimeout ","ds_grid_get_disk_mean ds_grid_value_exists ds_grid_value_x ","getIndex","bind","possition","inputContainer","almostEquals","CONNECT","Формат "," radius random random_bernoulli random_beta random_binomial random_bipartite_graph","borderWidth","listitem","diToken","localAddress","ROW_COUNT RESULT_OID|10 PG_CONTEXT|10 RETURNED_SQLSTATE COLUMN_NAME CONSTRAINT_NAME ","SYSRES_CONST_ACTION_TYPE_DISABLE_DELEGATE_ACCESS_RIGHTS ","receiveInviteResponse()"," or ","(?!%})(","%d മാസം","Color %1, in palette %2's hue %3, is invalid. Hex or rgb(a) color expected.","clearInterval","'n minuut","ISystemInfo ","newDialog","animateRotate","IDateRequisiteDescription ","[-+]?\\d+(\\.\\d+)?","scrollbarYRight","afterScaleUpdate","okta beaivi","получитьобщуюформу получитьокна получитьоперативнуюотметкувремени получитьотключениебезопасногорежима ","iOS","$$nextSibling","CAPTIVA PAD","_sendReinvite","ignore",";expires=","יומיים","SYSREQ_EDOC_TYPE_REQ_ON_CHANGE ","rgb(204, 230, 255)","num_images parity popcnt poppar shifta shiftl shiftr this_image ","action collection component concat debugger each each-in else get hash if input link-to loc log mut outlet partial query-params render textarea unbound unless with yield view","bm_inv_src_alpha bm_dest_alpha bm_inv_dest_alpha bm_dest_colour ","ssmMultiSelect ","diamonds","IStringCriterion ","-chip-","lihora","space-around","Markup '{0}' may not work as expected in IE Browsers. Consult '{1}' for details.","(i|[fF]i|Li)","#CC9933","dictsortreversed default_if_none pluralize lower join center default ","#e8f5e9","endlocalize localtime endlocaltime timezone endtimezone get_current_timezone ","IDialog ","Couldn't set part.`lang` parameter has to be a string!","onFocusHandler","loron %d","xpath","afterDataLimits","MimeEncodeBinary ","encoding","flowDirectory","material.components.fabToolbar","findMatches","resolvePolicy","defaultErrorHandler","bash","deletion","SIP_ERROR_CAUSES","tickValues","SYSRES_CONST_ACTION_TYPE_ABORT ","dropdown-toggle","J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér","pen","[ieiri à] LT","Transport not open","_succeeded","githubgistEmbed","jednog sata","`.+?`","_registrationFailure","getOpenMenuIndex","\\=cut","armasm","xAxes","edsfExecutive edsfArchive ","загрузитьизфайла ","reverse round slice sort spaceless split striptags title trim upper url_encode","НомерСпр ","#0099CC","sideUnknown taskNull teamMemberNull true west","stretchTabs","socket.io-client:manager","cssFloat","potable_water","sebulan"," \\bi?OS\\b [VER][ ;]{1}","nav-index","scope","targetState","duration","numeric real record serial serial8 smallint text time timestamp tinyint varchar varchar2 varying void","ISearchResultRestrictions ",'response="',"\\b([1-9][0-9_]*[0-9]|[0-9])(\\.[0-9][0-9_]*)?([eE]_*[-+]?[0-9_]*)?","%d თვე","tilesInvalidated","_receiveReplaces",' ng-bind-html="::dialog.mdHtmlContent">
    ',"$$childTail",'',"D [ב]MMMM YYYY",".md-virtual-repeat-container, .md-standard-list-container","timer_M","phy_position_y phy_angular_velocity phy_linear_velocity_x ","ngMessage","एका वरान","IProcessMessage ","RejectType"," solveradcan solvetrigwarn space sparse sphere spring_embedding_depth sqrtdispflag","contentEditable","missing channels property: ","Unexpected template value. Expected a string; received a ","border-color","_prepareContentElement","doy","stale","cloneNode","noDecrementHours","fakeHandlerCallback","let nameof on orderby partial remove select set value var when where yield","GGGG[W]WWE","gl_BackColor gl_BackLightModelProduct gl_BackLightProduct gl_BackMaterial ","Жк_Дй_Шй_Шр_Бй_Жм_Иш","walking","EXPMDMUSAGE EXPORT_USAGE FACTORINEFFECT GETUSERSPECIFIEDSTOP INEFFECT ISHOLIDAY RUNRATE ",'{{getLocalizationVal("Cancel")}}',"minúta","Content-Type: ","_remote_seqnum","#x[0-9a-f]+(/[0-9a-f]+)?","push_cancel_local_notification skeleton_animation_set ","SYSRES_CONST_NAME_SINGULAR_REQUISITE_CODE ",' ng-disabled="dialog.required && !dialog.result">',"letoma","положениекартинкиэлементаграфическойсхемы положениекоманднойпанелиформы положениекоманднойпанелиэлементаформы ","candidate:%s %d %s %d %s %d typ %s","CreateProgress ","SYSREQ_USERS_USER_CERTIFICATE_SUBJECT_NAME ","getStyle","^\\s*#\\w+","[прошлог] [уторка] [у] LT","content","способопределенияограничивающегозначениядиаграммы стандартнаягруппакоманд стандартноеоформление ","INVALID_GRANT_OPERATION INVALID_ROLE_SPECIFICATION DIAGNOSTICS_EXCEPTION ","showCalendar","SYSREF_EDOCUMENT_CARD_TYPES_REFERENCE ","configureAutocomplete","$mdMenuOpen","UrlService","Nexus One|Nexus S|Galaxy.*Nexus|Android.*Nexus.*Mobile|Nexus 4|Nexus 5|Nexus 6","ddd D MMM YYYY HH:mm","valuesIn","fromProvider","ISchemeBlock ","leS",' ","running","МаксСтрТблСпр ","barThickness","setMaxListeners","\\-\\->","layer_sprite_yscale layer_sprite_angle layer_sprite_blend ","SYSRES_CONST_IMAGE_MODE_MONOCHROME ","$translateChangeSuccess","inyanga","woman","icmp6-type label once probability recieved-on rtable prio queue","студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня","make_color_rgb make_color_hsv color_get_red color_get_green ","आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.","userLanguage","ಮಧ್ಯಾಹ್ನ","IHasher ","viewDecl.controllerAs","scaled_inv_chi_square exponential inv_gamma weibull frechet ","ADMINISTRATOR_USER_CODE ","endtask enum event eventually expect export extends extern final first_match for ","assignDrop","draw_light_enable draw_set_lighting draw_light_get_ambient ","unquote unquote-splicing vars walk when while with with* with-decorator with-gensyms ","socket open","getRelativePosition","list","NG_EMBED_DEFAULT_OPTIONS","attachments","configMerge","$pagination","_getPathTypes","a8m.strip-tags","bindings","SYSREQ_GROUP_CATEGORY ","regexp","pray","si._mo._ti._wo._to._fr._so.","СоздатьДиалог ","Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des","itWMF ","uib-tooltip-classes ","listNodeTypes listPanelCategories listRelatives listSets listTransforms ","[W] dddd [o] LT",'" found.',"SYSREQ_UNIT ","Proof Proposition Pwd Qed Quit Rec Record Recursive Redirect Relation Remark ","elements","getViewportTop","betainv|blshift|bnot|bor|brshift|bxor|byte|cdf|ceil|","YYYY. MMMM D. H:mm","attributeName","एका दिसान","Hold Failed","rgb(204, 153, 255)","ngAnimateChildren","rdtDate ","ISearchForObjectDescription ","#CC00CC","defaultResolvePolicy","#e0f7fa","$close($value)","[Паян] LT [сехетре]","SYSREQ_LINE_NUMBER ","targetEvent","phy_joint_motor_speed phy_joint_angle phy_joint_motor_torque ","feature","ctTabSheet ","eee8aa","
    \n","createRipple","ps--active-x","deprecationHandler"," tr_warn_bad_function_calls tr_warn_fexpr tr_warn_meval tr_warn_mode","#FDB45C","not","dropdownPosition","gpu_get_zfunc gpu_get_zwriteenable gpu_get_lightingenable ","OBJECT_IN_USE CANT_CHANGE_RUNTIME_PARAM LOCK_NOT_AVAILABLE OPERATOR_INTERVENTION ","INVITE,ACK,CANCEL,BYE,UPDATE,MESSAGE,OPTIONS,REFER,INFO,NOTIFY","union","$stateChangeStart","animateClose",'content="',".sv-visibility-hidden{","Missing SDP","updateLocale","md-foot","ARIA_Mini_wifi|Aria[ _]Mini|Evolio X10|Evolio X7|Evolio X8|\\bEvotab\\b|\\bNeura\\b","mdNestLevel","YYYY. [gada] D. MMMM","ffb6c1","attempt","mdNoAsterisk","touchstart","\\n^[=\\*]{4,}$","$async$and$plane $async$nand$plane $async$or$plane $async$nor$plane ","removeEventListener","Son_Maa_Din_Woe_Don_Vry_Sat","50 100 200 300 A100 A200","getUTCMonth","ui.bootstrap.timepicker","YYYY [m.] MMMM D [d.]","railYMarginHeight","keys len length libURLErrorData libUrlFormData libURLftpCommand libURLLastHTTPHeaders libURLLastRHHeaders ","ngBlur","ds_grid_add_region ds_grid_multiply_region ds_grid_set_disk ","connectionType","floor flt fltmt fmod fne fnemt fonts fopen formatcv formatnv fputs fputst fseek fstrerror ftell ftocv ftos ftostrC ","Paz_Pts_Sal_Çar_Per_Cum_Cts","anyTrueR","colsSortableConfig","SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_GROUP_ACTION ","_footerAlign","readAccelerometer messageAvailable sendDigitalPorts ","spir_kernel x86_64_sysvcc x86_64_win64cc x86_thiscallcc ","\\b(sub)?type\\s+","ITaskInfo ","SYSRES_CONST_PRIORITY_REQUISITE_CODE ","post %s","SYSRES_CONST_KINDS_EDOC_ALL_TEPLATES_ALLOWED_REQUISITE_CODE ","Internal Error","maintainAspectRatio","_compilerCleanup","interface","network_create_server_raw network_connect network_connect_raw ","dagar","chartType","dddd [at] LT","langApiRestored","cos","Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби","elclob","backdrop","((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]).){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\b","date_second_span date_compare_datetime date_compare_date ","ontouchstart","SYSREQ_REF_REQ_GENERATED ","#d7ccc8","black","out","mdPanel: Panel does not exist yet. Call open() or attach().","IReference ","winnr invert pow getbufline byte2line soundfold repeat fnameescape ","hammer","|vw|vh|vmin|vmax","JsSIP:RTCSession","iceRestart","withUnsafePointer withUnsafePointers withVaList zip","mdColorPickerHue","activeOption","indexOfSlide","steam_is_screenshot_requested steam_send_screenshot ","SYSRES_CONST_REQUISITE_SECTION_ACTIONS ","SYSRES_CONST_INTEGER_NUMBER_FORMAT_CHAR ","webgl_enabled event_data iap_data phy_rotation phy_position_x ","revZipCloseArchive revZipDeleteItem revZipExtractItemToFile revZipExtractItemToVariable revZipSetProgressCallback ","ttl","app","isPreview","output","SYSREQ_DOUBLE ","%d মাস","->|<-[|:]?|#!?|>>=|\\{\\||\\|\\}|:==|=:|<>","IForEach ","$$lowercase","%d वर्षां","[danas u] LT","viewDecl","sha1_string_utf8 sha1_file os_powersave_enable analytics_event ","decodeString","gmtOffset","dddd [semana kotuk] [iha] LT","ads_set_reward_callback ads_get_display_height ads_get_display_width ","lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj","DESC DISTINCT ELSE EXCEPT FOR FREEZE|10 FROM FULL HAVING ","يېرىم كېچە","peerconnection.setRemoteDescription() failed","linear","versions","trim|trimn|trunc|uniform|upcase|uss|var|varfmt|","buffer_write buffer_read buffer_seek buffer_get_surface ","a h:mm:ss","keygen","getAllHitPointsDamage getAllOwnedMines getAllSoundControllers getAmmoCargo getAnimAimPrecision ","secondary","[Warcʼhoazh da] LT","typeaheadMinLength","rtcAnswerConstraints","rgb(0, 92, 92)","%d semaines","SYSRES_CONST_LIST_REFERENCE_MODE_NAME ","systemLanguage","stroke detach attach noTone exists buffer ","hasBackdrop"," orderlessp orthogonal_complement orthopoly_recur orthopoly_weight outermap","item","HH.mm","createLocalDescription()","СпрБлокУстановить ","containerProxy","long","CreatedJobs ","JsSIP:ERROR:DigestAuthentication","disabled","request","$dirty","yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr","IWorkTreeTaskNode ","uibPagination",'md-connected-if="tab.isActive()" ',"facebook_request_read_permissions ","instr datediff formatdatetime replace isnull right sgn array snumeric log cdbl hex ","isoWeek","СоздатьКэшированныйСправочник ","yPadding","SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_PARENT_GROUP_ACTION ","получитьcomобъект получитьxmlтип получитьадреспоместоположению получитьблокировкусеансов получитьвремязавершенияспящегосеанса ",":(?![\\s:])","scala","int float string vector matrix if else switch case default while do for in break ","asset_sprite asset_sound asset_room asset_path asset_script ","getTransform","elseif enable end endfor endif endp endo errorlog errorlogat expr external fn ","rgb(0, 0, 214)","datepickerPopupTemplateUrl","Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta","asin",".md-expansion-panel-header-container","TX-A1301|TX-M9002|Q702|kf026","$ctrl.placeholder","$uiViewContextAnchor","birnäçe sekunt","[ئالدىنقى] dddd [سائەت] LT","ure","bottom-left","SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_RESTRICTION_ACTION_CODE ","proc","isSafeInteger","IRP_ALIGN irp_here","isVideoSupportsStreamCapturing","Kindle Fire",'"{"',"ordu bat","break case cast catch continue default do dynamic else enum extern ","BabyMonsterGroupB Back Background BackgroundAppearance BackgroundTasksSettings Backslash Backsubstitution Backward Ball Band BandpassFilter BandstopFilter BarabasiAlbertGraphDistribution BarChart BarChart3D BarcodeImage BarcodeRecognize BaringhausHenzeTest BarLegend BarlowProschanImportance BarnesG BarOrigin BarSpacing BartlettHannWindow BartlettWindow BaseDecode BaseEncode BaseForm Baseline BaselinePosition BaseStyle BasicRecurrentLayer BatchNormalizationLayer BatchSize BatesDistribution BattleLemarieWavelet BayesianMaximization BayesianMaximizationObject BayesianMinimization BayesianMinimizationObject Because BeckmannDistribution Beep Before Begin BeginDialogPacket BeginFrontEndInteractionPacket BeginPackage BellB BellY Below BenfordDistribution BeniniDistribution BenktanderGibratDistribution BenktanderWeibullDistribution BernoulliB BernoulliDistribution BernoulliGraphDistribution BernoulliProcess BernsteinBasis BesselFilterModel BesselI BesselJ BesselJZero BesselK BesselY BesselYZero Beta BetaBinomialDistribution BetaDistribution BetaNegativeBinomialDistribution BetaPrimeDistribution BetaRegularized Between BetweennessCentrality BeveledPolyhedron BezierCurve BezierCurve3DBox BezierCurve3DBoxOptions BezierCurveBox BezierCurveBoxOptions BezierFunction BilateralFilter Binarize BinaryDeserialize BinaryDistance BinaryFormat BinaryImageQ BinaryRead BinaryReadList BinarySerialize BinaryWrite BinCounts BinLists Binomial BinomialDistribution BinomialProcess BinormalDistribution BiorthogonalSplineWavelet BipartiteGraphQ BiquadraticFilterModel BirnbaumImportance BirnbaumSaundersDistribution BitAnd BitClear BitGet BitLength BitNot BitOr BitSet BitShiftLeft BitShiftRight BitXor BiweightLocation BiweightMidvariance Black BlackmanHarrisWindow BlackmanNuttallWindow BlackmanWindow Blank BlankForm BlankNullSequence BlankSequence Blend Block BlockchainAddressData BlockchainBase BlockchainBlockData BlockchainContractValue BlockchainData BlockchainGet BlockchainKeyEncode BlockchainPut BlockchainTokenData BlockchainTransaction BlockchainTransactionData BlockchainTransactionSign BlockchainTransactionSubmit BlockMap BlockRandom BlomqvistBeta BlomqvistBetaTest Blue Blur BodePlot BohmanWindow Bold Bond BondCount BondList BondQ Bookmarks Boole BooleanConsecutiveFunction BooleanConvert BooleanCountingFunction BooleanFunction BooleanGraph BooleanMaxterms BooleanMinimize BooleanMinterms BooleanQ BooleanRegion Booleans BooleanStrings BooleanTable BooleanVariables BorderDimensions BorelTannerDistribution Bottom BottomHatTransform BoundaryDiscretizeGraphics BoundaryDiscretizeRegion BoundaryMesh BoundaryMeshRegion BoundaryMeshRegionQ BoundaryStyle BoundedRegionQ BoundingRegion Bounds Box BoxBaselineShift BoxData BoxDimensions Boxed Boxes BoxForm BoxFormFormatTypes BoxFrame BoxID BoxMargins BoxMatrix BoxObject BoxRatios BoxRotation BoxRotationPoint BoxStyle BoxWhiskerChart Bra BracketingBar BraKet BrayCurtisDistance BreadthFirstScan Break BridgeData BrightnessEqualize BroadcastStationData Brown BrownForsytheTest BrownianBridgeProcess BrowserCategory BSplineBasis BSplineCurve BSplineCurve3DBox BSplineCurve3DBoxOptions BSplineCurveBox BSplineCurveBoxOptions BSplineFunction BSplineSurface BSplineSurface3DBox BSplineSurface3DBoxOptions BubbleChart BubbleChart3D BubbleScale BubbleSizes BuildingData BulletGauge BusinessDayQ ButterflyGraph ButterworthFilterModel Button ButtonBar ButtonBox ButtonBoxOptions ButtonCell ButtonContents ButtonData ButtonEvaluator ButtonExpandable ButtonFrame ButtonFunction ButtonMargins ButtonMinHeight ButtonNote ButtonNotebook ButtonSource ButtonStyle ButtonStyleMenuListing Byte ByteArray ByteArrayFormat ByteArrayQ ByteArrayToString ByteCount ByteOrdering","_disableDelayedDragEvents","=ngModel","uibBar",'',"select setfenv setmetatable tonumber tostring type unpack xpcall coroutine debug ","ИндикаторШаг ","[Hier à] LT","subst patsubst strip findstring filter filter-out sort ","via_host",'emit "sdp"',"له‌ %s","CSelectSQL ","%d minuts","winphone_tile_back_content winphone_tile_back_content_wide ","allItems","Max-Breadth Exceeded","Su_Má_Þr_Mi_Fi_Fö_La","[A-Z]+","Unhandled error.","area,br,col,hr,img,wbr","видотображенияполнотекстовогопоиска видрамки видсравнения видцвета видчисловогозначения видшрифта допустимаядлина допустимыйзнак ","melon","STATUS_1XX_RECEIVED","[आज] LT","Utils","ئازار","bread","^uibAccordion","расположениересурсовкомпоновкиданных типбухгалтерскогоостаткакомпоновкиданных типвыводатекстакомпоновкиданных ","STORAGE_TYPE_FILE ",'"maddr="',"PRIVILEGE_SYSTEM_DEVELOP ","ព្រឹក","yearRows","NUMBER_MODE","පෙර වරු",'cnonce="',"ngCsv","addSwitchableUnit addTeamMember addToRemainsCollector addTorque addUniform addVehicle addVest ","Blazer","connectAttr connectControl connectDynamic connectJoint connectionInfo constrain ","display_set_gui_size display_set_gui_maximise ","substr","reinvite","recalculatePercentage",' \n',"Sortable.js requires a window with a document",'
    {{digital}}
    {{gmtInfo}}
    ',"A_[a-zA-Z0-9]+","GMT","EDocuments ","sip","pickBy","icProcessMessageHandler ",'',"Details: https://material.angularjs.org/latest/api/service/$mdToast#mdtoast-simple","referenceEdit referenceQuery refineSubdivSelectionList refresh refreshAE ","selector-attr","elementButtons","angle","stopPropagation","rev(16|sh)?|sel|[su]sat(16)?|nop|pop|push|rfe([id][ab])?|","ցերեկվա","SYSRES_CONST_OURFIRM_VAR ","updateIndex","pre","lineJoin","isUrlRule","$pristine","submitForm","isMoving","and и else иначе endexcept endfinally endforeach конецвсе endif конецесли endwhile конецпока ","mdCalendarMonth",'',"qt5_use_modules qt5_use_package qt5_wrap_cpp ","grey_question","en dan","MODIFYING_SQL_DATA_NOT_PERMITTED PROHIBITED_SQL_STATEMENT_ATTEMPTED ","mul","buffer_invalidtype text_type button_type input_type ANSI_CHARSET ","DCTS_TEST_PROTOCOLS_FOLDER_PATH ","SUBTASK_BLOCK_INITIATOR_PROPERTY ","
    ","#-}","dust","autoKeyframe autoPlace bakeClip bakeFluidShading bakePartialHistory bakeResults ","разделениеаутентификацииобщегореквизита разделениеданныхобщегореквизита разделениерасширенийконфигурацииобщегореквизита ","%d日",".sv-candidate{","uibAccordionTransclude","ne_po_to_sr_če_pe_so","flower_playing_cards","otherAnswer","SameAsCurrent","rect","actionKeysNamesArray actionName actionParams activateAddons activatedAddons activateKey ","=?mdOnPaginate","__views__","resizeInputElement","$mdTabsTemplate","#f3e5f5","Expected ","SYSRES_CONST_EDITOR_TYPE_REQUISITE_CODE ","godmode","nsis","getAudioTracks","leaderboardsRequestUploadScoreKeepBest leaderboardState leaveVehicle libraryCredits ","(url|data-uri)\\(","ITask ","gpu_get_colourwriteenable gpu_get_alphatestenable ","baseDate is not a valid date","encrypt-uri","Disable-ScheduledJob Enable-ComputerRestore Enable-JobTrigger Enable-PSBreakpoint Enable-PSRemoting Enable-PSSessionConfiguration ","'md-disabled': tab.scope.disabled ","НачТран ","monitor","GaborFilter GaborMatrix GaborWavelet GainMargins GainPhaseMargins GalaxyData GalleryView Gamma GammaDistribution GammaRegularized GapPenalty GARCHProcess GatedRecurrentLayer Gather GatherBy GaugeFaceElementFunction GaugeFaceStyle GaugeFrameElementFunction GaugeFrameSize GaugeFrameStyle GaugeLabels GaugeMarkers GaugeStyle GaussianFilter GaussianIntegers GaussianMatrix GaussianOrthogonalMatrixDistribution GaussianSymplecticMatrixDistribution GaussianUnitaryMatrixDistribution GaussianWindow GCD GegenbauerC General GeneralizedLinearModelFit GenerateAsymmetricKeyPair GenerateConditions GeneratedCell GeneratedDocumentBinding GenerateDerivedKey GenerateDigitalSignature GenerateDocument GeneratedParameters GeneratedQuantityMagnitudes GenerateHTTPResponse GenerateSecuredAuthenticationKey GenerateSymmetricKey GeneratingFunction GeneratorDescription GeneratorHistoryLength GeneratorOutputType Generic GenericCylindricalDecomposition GenomeData GenomeLookup GeoAntipode GeoArea GeoArraySize GeoBackground GeoBoundingBox GeoBounds GeoBoundsRegion GeoBubbleChart GeoCenter GeoCircle GeodesicClosing GeodesicDilation GeodesicErosion GeodesicOpening GeoDestination GeodesyData GeoDirection GeoDisk GeoDisplacement GeoDistance GeoDistanceList GeoElevationData GeoEntities GeoGraphics GeogravityModelData GeoGridDirectionDifference GeoGridLines GeoGridLinesStyle GeoGridPosition GeoGridRange GeoGridRangePadding GeoGridUnitArea GeoGridUnitDistance GeoGridVector GeoGroup GeoHemisphere GeoHemisphereBoundary GeoHistogram GeoIdentify GeoImage GeoLabels GeoLength GeoListPlot GeoLocation GeologicalPeriodData GeomagneticModelData GeoMarker GeometricAssertion GeometricBrownianMotionProcess GeometricDistribution GeometricMean GeometricMeanFilter GeometricScene GeometricTransformation GeometricTransformation3DBox GeometricTransformation3DBoxOptions GeometricTransformationBox GeometricTransformationBoxOptions GeoModel GeoNearest GeoPath GeoPosition GeoPositionENU GeoPositionXYZ GeoProjection GeoProjectionData GeoRange GeoRangePadding GeoRegionValuePlot GeoResolution GeoScaleBar GeoServer GeoSmoothHistogram GeoStreamPlot GeoStyling GeoStylingImageFunction GeoVariant GeoVector GeoVectorENU GeoVectorPlot GeoVectorXYZ GeoVisibleRegion GeoVisibleRegionBoundary GeoWithinQ GeoZoomLevel GestureHandler GestureHandlerTag Get GetBoundingBoxSizePacket GetContext GetEnvironment GetFileName GetFrontEndOptionsDataPacket GetLinebreakInformationPacket GetMenusPacket GetPageBreakInformationPacket Glaisher GlobalClusteringCoefficient GlobalPreferences GlobalSession Glow GoldenAngle GoldenRatio GompertzMakehamDistribution GoodmanKruskalGamma GoodmanKruskalGammaTest Goto Grad Gradient GradientFilter GradientOrientationFilter GrammarApply GrammarRules GrammarToken Graph Graph3D GraphAssortativity GraphAutomorphismGroup GraphCenter GraphComplement GraphData GraphDensity GraphDiameter GraphDifference GraphDisjointUnion GraphDistance GraphDistanceMatrix GraphElementData GraphEmbedding GraphHighlight GraphHighlightStyle GraphHub Graphics Graphics3D Graphics3DBox Graphics3DBoxOptions GraphicsArray GraphicsBaseline GraphicsBox GraphicsBoxOptions GraphicsColor GraphicsColumn GraphicsComplex GraphicsComplex3DBox GraphicsComplex3DBoxOptions GraphicsComplexBox GraphicsComplexBoxOptions GraphicsContents GraphicsData GraphicsGrid GraphicsGridBox GraphicsGroup GraphicsGroup3DBox GraphicsGroup3DBoxOptions GraphicsGroupBox GraphicsGroupBoxOptions GraphicsGrouping GraphicsHighlightColor GraphicsRow GraphicsSpacing GraphicsStyle GraphIntersection GraphLayout GraphLinkEfficiency GraphPeriphery GraphPlot GraphPlot3D GraphPower GraphPropertyDistribution GraphQ GraphRadius GraphReciprocity GraphRoot GraphStyle GraphUnion Gray GrayLevel Greater GreaterEqual GreaterEqualLess GreaterEqualThan GreaterFullEqual GreaterGreater GreaterLess GreaterSlantEqual GreaterThan GreaterTilde Green GreenFunction Grid GridBaseline GridBox GridBoxAlignment GridBoxBackground GridBoxDividers GridBoxFrame GridBoxItemSize GridBoxItemStyle GridBoxOptions GridBoxSpacings GridCreationSettings GridDefaultElement GridElementStyleOptions GridFrame GridFrameMargins GridGraph GridLines GridLinesStyle GroebnerBasis GroupActionBase GroupBy GroupCentralizer GroupElementFromWord GroupElementPosition GroupElementQ GroupElements GroupElementToWord GroupGenerators Groupings GroupMultiplicationTable GroupOrbits GroupOrder GroupPageBreakWithin GroupSetwiseStabilizer GroupStabilizer GroupStabilizerChain GroupTogetherGrouping GroupTogetherNestedGrouping GrowCutComponents Gudermannian GuidedFilter GumbelDistribution","prepareDetectionCache","GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ","legendItems",'emit "connecting"'," órája","sprite_save_strip sprite_set_cache_size sprite_set_cache_size_ext ","ФайлПерекодировать ","ein paar Sekunden","skull","ng-click","БлокСнять ","tail","dddd [","getButtonEl","IPickCriterion ",":%s","Please check the `md-item-text` attribute.","wellformed when whene whenev wheneve whenever where while whitespace window with within without work wrapped ","ids","ITaskCardWizardStep ","Open List Menu","useUrlLoader","rndStateSkip rndu rndvm rndWeibull rndWishart rotater round rows rowsf rref sampleData satostrC saved saveStruct savewind ","50% 0","před %s",'is-disabled-date="config.isDisabledDate ? config.isDisabledDate($date) : model.isDisabledDate({ $date: $date })" ',"dddd, D MMMM YYYY H:mm","ng-class=\"{ 'md-disabled': !$mdTabsCtrl.canPageForward() }\" ","CONFIRMED","isHovered","IQ310|Fly Vision","[L~ást] dddd [át] LT","காலை","construct","значениевданныеформы значениевстрокувнутр значениевфайл значениезаполнено значениеизстрокивнутр значениеизфайла ","transform-origin",'
    ','{{getLocalizationVal("Clear")}}',"%s இல்","SYSRES_CONST_ACCESS_NO_ACCESS_VIEW_CODE ",'"::"',"merge","keyPressedOnInput","ári","%d ýyl","%[qQwWx]?\\(","c0c0c0","gl_MaxDrawBuffers gl_MaxFragmentAtomicCounterBuffers gl_MaxFragmentAtomicCounters ","GGGG","margin-top","session ended","OCTET","See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.","thodde sekond","_monthsStrictRegex","resolvablesBuilder","application/sdp","handling","setOKButtonLabel","[A-Z_][A-Z0-9_.]*","after","collapsed","interval","-?\\w+\\s*\\=\\>","[sjutra u] LT","md-radio-button","އޭޕްރީލު","phy_debug_render_core_shapes phy_debug_render_joints ","electric_plug","hodinou","isValid","md-calendar-date","(:\\-|:=|\\${|\\+=)","bodyFontStyle","GGGG[W]WW","SYSREQ_REF_REQ_REFERENCE ","posedge primitive priority program property protected pull0 pull1 pulldown pullup ","children_crossing","dayOfYear","SYSREQ_REF_TYPE_COMMENT ","_stale","một phút","_applyModification","#0066CC","$mdCheckboxInkRipple","dispatchEvent","formItemsContainer","confirm","isInMaxRange",'{{ datepicker.date.format(datepicker.displayFormat) }} ',"isDark","socket closing - telling transport to close","noPagination","windowTemplateUrl","winphone_tile_small_icon_image winphone_tile_wide_content ","SYSRES_CONST_ADITIONAL_JOB_STATE_REQUISITE_NAME ","Dia","do_lu_ma_mi_ju_vi_sá","md-datepicker-invalid","visibleWatcher","animationend","maxSizeX","status_code","atm","hankey","secondaryWeapon secondaryWeaponItems secondaryWeaponMagazine select selectBestPlaces ","You must provide an axis to the update-scroll function","column-span","[hjoed om] LT","chart-create","$$cookieReader","isPressed sendSysex pauseMode gatewayIP setCursor ",' \n',"SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_PRIVILEGE_ACTION ","dimenge_diluns_dimars_dimècres_dijòus_divendres_dissabte"," std_general_finite_discrete std_geometric std_gumbel std_hypergeometric std_laplace","wptUser ","UibTabsetController","detachEvent",'width="',"এক বছর","NS_RETURNS_INNER_POINTER NS_INLINE NS_AVAILABLE NS_DEPRECATED ","putItem","gun","labelView","dddd [lepas pukul] LT","ssmSelect ","labelOffset","create","physics_joint_gear_create physics_joint_enable_motor ","CERTIFICATE_TYPE_SIGN_AND_ENCRYPT ","New-ModuleManifest New-PSDrive New-PSSession New-PSSessionConfigurationFile New-PSSessionOption New-PSTransportOption ","$mdUtil","lineTension","setGroupIdGlobal setGroupOwner setGusts setHideBehind setHit setHitIndex setHitPointDamage ","early_only","datasetIndex","SQL ","SYSREQ_EDOC_TYPE_VIEW_CODE ","SYSRES_CONST_RED_LIFE_CYCLE_STAGE_FONT_COLOR ","rdThisMonth ","статусразборапочтовогосообщения ","ugc_sortorder_ForModeration ugc_list_Published ugc_list_VotedOn ","$mdInterimElementRemove","EXISTS VALID VALIDATE ENABLE DISABLE REPLICA|10 ALWAYS PASSING COLUMNS PATH ","view","för %s sedan","%d שניות"," ',"protected public return set static super switch this throw try typeof use var void ","LT [noong nakaraang] dddd","Mac OS","hasMaxChipsReached","fish_cake","$$addStateInfo","layer_background_change layer_background_sprite ","samplerBuffer usamplerCube usamplerCubeArray uvec2 uvec3 uvec4 vec2 vec3 vec4 void","جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر","_footerFontFamily","true false yes no nothing nil null","ServiceFactory ","STATUS_ANSWERED","md-head","dropdownItems","type alias","This Month","utils","mínútur","година_години_годин","%d minutes","strokeWidth","$$willAnimate","ఒక నెల","%d يوم","setCamUseTI setCaptive setCenterOfMass setCollisionLight setCombatMode setCompassOscillation ","Active","%r{","lightness","основнойплансчетов основнойязык очиститьокносообщений периодстр получитьвремята получитьдатута ","P0D","fishing_pole_and_fish","room_caption room_persistent score lives health show_score ","stagger-","sob","0ms",'document.body.scrollHeight + \'px\'" style="margin:10px 0;">','requestSucceeded','vm.query.filter','CHAT.CHAT','api/integrations/dynamics365/configurations/:id/subjects','The\x20agent\x20will\x20be\x20deleted.','id,name,fullname,userpic','vm.voiceQueue.joinempty.length\x20===\x201\x20&&\x20vm.voiceQueue.joinempty[0]\x20===\x20\x27unavailable\x27','ChatWebsiteController\x20as\x20vm','404','OpenchannelCannedAnswer\x20properly\x20saved!','beep','arraysetqueuevar','delete\x20applications','project_id','api/voice/chanspy/:id/clone','queueAdd','src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/amazonlex/dialog.html/dialog.html','callbackuniqueid','SYSTEM:GETjscriptyProject','apps.jscripty','Plugin\x20updated!','mailAccountApp','fr-CA','Basic','app.voice.outboundroutes','Asia/Taipei','SYSTEM:GETsounds','/api/transfer?number=','AgentHomeDashboardController','getOpenchannelAccountLabel','intZendeskAccount','deleteDashboardItem','detailForm','gotoProcess','SYSTEM:DELETEanalyticMetric','\x2722\x27','Report\x20Field\x20properly\x20deleted!','ComposeWhatsappInteractionDialogController','WHATSAPP.NEW_WHATSAPPACCOUNT','SmsAccountActionsController','license','newWindow','Oromo','DASHBOARDS.NO_DISPOSITION_SET','answerHook\x20->\x20payload','America/Havana','Romanian\x20(Romania)','sortableOptions','Invisible','ui.router.state.events','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20mailQueues?','api/sms/accounts/:id/users','OpenchannelQueue\x20updated!','src/js/modules/main/apps/settings/views/generals/generals.html/generals.html','Begin\x20forwarded\x20message:

    From:\x20{{\x20from\x20}}
    Subject:\x20{{\x20subject\x20}}
    Date:\x20{{\x20date\x20}},\x20at\x20{{\x20time\x20}}
    To:\x20{{\x20to\x20}}','shortTime','api/chat/reports/queue/:id/clone','it-IT','addNewQueueCampaign','api.openchannelAccount.delete','America/Menominee','\x27TI\x27','unreadMessages','busy','mailInteractionTags:save','rurussianmale','America/Belem','msSplashScreen::remove','src/js/modules/main/apps/contactmanager/views/globalCustomFields/globalCustomFields.html/globalCustomFields.html','CSquare\x20Details\x20Report','https','Lucida\x20Sans\x20Unicode','apps.help.about','Ringall','+09:30','app.staff.users.edit','equals','\x27xlsx\x27','userProfile','APPS','MOTIONDIALER.NEW_IVRCAMPAIGN','TOOLBAR.WARNING','set','Faroese','AdvancedSearchController','Urdu','Agents\x20association\x20has\x20been\x20updated!','hue-3','VoicePrefixesController','$emit','Unable\x20to\x20convert\x20answer','\x27basic\x27','Channel\x20','selectedDynamics365Configuration','TOOLBAR.CHINESETRADITIONAL','hasBlackLists','TOOLBAR.ENGLISH','Company','QueueCampaignteamaddController','userVoiceQueueRt:save','direction','\x27all\x27','euritalianmale','api/chat/interactions/:id/messages','The\x20servicenowConfiguration\x20will\x20be\x20deleted.','api.project.delete','deleteVariable','_path','param','exportSelectedQueueCampaigns','deselectFreshsalesAccounts','EU\x20(Frankfurt)','internalrouteApps','Brian','Italian\x20(Italy)\x20/\x20Finnish\x20(Finland)','/assets/images/theme-options/vertical-nav.jpg','multipleUsers.name','src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/dialogflow/dialog.html/dialog.html','KDE','zohoAccount','api/dashboards/:id/clone','SquareRecording\x20properly\x20deleted!','gotoUsers','src/js/modules/main/apps/analytics/views/reports/edit/field/dialog.html/dialog.html','WhatsappQueue\x20properly\x20deleted!','selectAllTeams','whatsappQueue@get','Fax\x20Account','id,tree','createOrEditTriggerAllCondition','thu','downloadfile','app.contactmanager.lists','ANALYTICS.ANALYTICS','app.dashboards.general.whatsapp','ds.clock','chanSpy\x20properly\x20saved!','QueueCampaignresetlistController','$resolved','bcc','teams','setFormatTime','api/chat/websites/:id/snippet','selectedProjects','UserFaxDashboardGeneralController','The\x20user\x20will\x20be\x20deleted.','America/Sitka','src/js/modules/main/apps/integrations/views/deskAccounts/edit/item/dialog.html/dialog.html','src/js/modules/main/apps/contactmanager/views/globalCustomFields/create/dialog.html/dialog.html','api/mail/queues/:id/clone','Phone\x20number','VOICE.EDIT_VOICERECORDING','api/voice/agents/reports/:id/clone','DASHBOARDS.APRIL','Agent\x20properly\x20saved!','api/fax/accounts/updateaccountapplications','Gmail','stateClass','api/fax/messages/:id/accept','MainController\x20as\x20vm','delete\x20vtigerAccount','ANALYTICS.EDIT_EXTRACTEDREPORT','api.dashboard.save','Read','setConfig','src/js/modules/core/directives/ms-navigation/templates/vertical.html/vertical.html','integrationTypes','America/Paramaribo','chatWebsites','item','response','chart.js','queuecallerleaveAt','Substatus','src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/tag/dialog.html/dialog.html','Contact\x20properly\x20created','OPENCHANNEL.EDIT_OPENCHANNELCANNEDANSWER','responseData','setLockedItem','api/mail/substatuses/describe','arrayecm','Hangup_Cause','info','cyan-500-fg','api/integrations/describe','memberReport','mailSubstatus@get','vm.detailForm.$pristine','IvrCampaigncloneController','api/rpc/voice/channels/:uniqueid/mixmonitor','Pacific/Wallis','MailQueue\x20properly\x20deleted!','CustomReportId','delete\x20ZohoAccounts','finals','HANGUPCAUSE_22','Telephone\x20updated!','api/users/:id/sms_interactions','Emojis','eurportuguesefemale','api/openchannel/messages/:id/reject','channelStatus','-09:30','app.voice.voiceRecordings','exportSelectedTriggerAllConditions','isChecked','createOrEditSalesforceConfiguration','ngJsTree','sugarcrmConfiguration','Atlantic/Bermuda','Armenian','getTriggerAllConditions','es-PR','Reset\x20Succesfull','SYSTEM:DELETEtemplate','addNewSugarcrmAccount','VOICE.NEW_VOICEQUEUE','saveWhatsappAccount','SYSTEM:GET_CONTEXTS','src/js/modules/main/apps/integrations/views/freshdeskAccounts/create/dialog.html/dialog.html','api/openchannel/reports/transfer/:id','Bearer\x20','icon-clock','temporarilyIgnoreMouseEvents','fil-PH','id,interval,IntervalId','/userProfiles','SYSTEM:GET_TREE_REPORT_STRUCTURE','ChatWebsites','selectedReportFields','MALE','app.voice.inboundroutes','apps.contactmanager.companies','id,uniqueid,calleridnum,statedesc,starttime,disposition','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20smsAccounts?','currentXML','CDR(prefix)=${EXTEN:0:','openchannelQueue','selectAllAgents','api/analytics/extracted_reports/:id/clone','VOICE.VOICEQUEUES','US\x20Spanish\x20Male','active','getUsers','zendeskConfiguration','SYSTEM:DELETEcmList','Australia/Broken_Hill','\x27agi://127.0.0.1/square,{{project.name}}\x27','queueCampaignHopperHistories','sumBillable','recallme','api/mail/accounts/:id/send','initialize','interval','userStatusOptions','OpenchannelCannedAnswer\x20properly\x20deleted!','Extension','getFaxInteractions','currentTab','preproduction','app.navigation','QueueCallsMotionDialerRealtimeController\x20as\x20vm','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','Brazilian\x20Portuguese\x20Female',',${EXTEN},','uploadSound','/"(.*)"\x5cs<(.*?)>$/','&?msTimelineLoadMore','delete\x20extractedReport','fail\x20callbackurl:\x22','api/integrations/zendesk/configurations/describe','api/integrations/salesforce/accounts/:id/configurations','intDeskConfiguration','userWhatsappQueue:save','CHAT.EDIT_CHATPROACTIVEACTION','customFieldsForm','api.voiceExtension.delete','arrayrecordingFormat','Admin\x20Only','The\x20pause\x20will\x20be\x20deleted.','\x27datetime\x27','Dora','Wav','Legend','api.intZohoAccount.update','\x27invalid\x27','Weeks','_new','Korean\x20Female','src/js/modules/main/apps/contactmanager/views/contacts/contacts.html/contacts.html','NO\x20QUERY','#5c616f','selectedSalesforceAccounts','MailAccountController\x20as\x20vm','api/integrations/freshdesk/configurations/:id/clone','intervals','\x20will\x20be\x20reset.','querySearch','src/js/modules/main/apps/voice/views/musiconholds/create/dialog.html/dialog.html','SYSTEM:GETintDynamics365Account','msWidgetFront','app.mail.realtime','differenceBy','Send\x20Anyway','CONTACTMANAGER.NEW_LIST','saveDisposition','api/cloudProviders/describe','UserList','QueueCampaignController','socket','WhatsappQueue\x20properly\x20saved!','trunk','GET_PROJECT','dayOfWeekTo','xlsx','America/Asuncion','TOOLS.NEW_SCHEDULE','api/settings/:id/favicon','selectedUserProfiles','api/fax/messages/:id/download','SYSTEM:GETuserProfile','saveQueueCampaign','AiTools','APP.SELECTED_USERS','ZendeskAccountsController\x20as\x20vm','$to','navigator','deleted','cs-CZ','aws_secret_access_key','Pacific/Honolulu','ForgotPasswordController\x20as\x20vm','src/js/modules/main/apps/voice/views/voiceQueues/edit/agentadd/agentadd.html/agentadd.html','src/js/modules/main/apps/motiondialer/views/realtime/queues/view.html/view.html','api.intSugarcrmConfiguration.delete','Number','api.mailSubstatus.delete','\x20has\x20been\x20downloaded!','.mp4','America/Grand_Turk','predictiveIntervalAnsweredCalls','ja-JP','userProfileSection@get','finishCallback','EditorUi','ckeditor','vtigerConfiguration','squareReportDetail','cm_contacts','data5','api.chatWebsite.save','routeId','EditInternalAppinternaldialDialogController','mailMessage:save','^msFormWizard','Australia/Perth','predictiveIntervalAvgTalktime','AgentsSmsRealtimeController\x20as\x20vm','Type\x20a\x20message','api.intSugarcrmAccount.update','api/chat/queues/describe','Delete\x20disposition','CreateOrEditWhatsappQueueDialogController','\x27fax_interactions\x27','\x27hours\x27','CreateOrEditOutboundRouteDialogController','Arabic\x20(State\x20of\x20Palestine)','\x27ja\x27','saveVoiceQueue','md-content[name*=\x27interaction-content-','jscriptyProject@get','VOICE.RUNTRANSCRIBE_VOICERECORDING','getVtigerAccounts','/login?token&userId','\x27q\x27','getByInteraction','path','getContactsCsv','src/js/modules/main/apps/jscripty/views/projects/edit/view.html/view.html','\x27whatsapp_interactions\x27','SYSTEM:DELETEreportsByParents','STAFF.NOTIFICATIONS.PERMISSIONS_ENABLED_ALL_SUCCESS_TITLE','VoiceRecording\x20properly\x20created','Odbc\x20properly\x20deleted!','$mdConstant','America/Kentucky/Louisville','PreviewReportDialogController','America/Maceio','onSaveFaxQueue','delete\x20Companys','\x27id\x27','Bosnian','api/plugins/:id','iPad','addTrack','addNewPlugin','Website','deselectODBC','Rejected','exportSelectedContexts','phoneBarPrefixRequired','IvrCampaigns','faxQueues','api/integrations/sugarcrm/accounts/describe','src/js/modules/main/apps/marketplace/views/plugins/edit/view.html/view.html','Albanian','msScroll','editHopper','collapse','updateQueue','-02:00','getVoiceQueuesPreview','app.staff.userProfiles','deselectCompanies','selectedTrunks','unmute','CreateOrEditSoundDialogController','api/whatsapp/queues/:id/members','arraystrategy','getAttachments','alias','Lingala','Delete\x20QueueCampaign','chatWebsiteChatCannedAnswers','WHATSAPP.EDIT_WHATSAPPQUEUE','SYSTEM:DOWNLOADJSON','id,phone,scheduledat,recallme,priority,UserId,OwnerId','delete\x20project','EditInternalAppvoicemailDialogController','Smtp\x20properly\x20created','api.whatsappAccount.update','motion2.home.recordings:','User\x20updated!','No\x20corresponding\x20process\x20found','isCompatibleBrowser','selectedChatQueues','gotoZohoAccounts','api/openchannel/applications/:id','Sound\x20properly\x20deleted!','CreateOrEditUserProfileDialogController','onSaveOpenchannelQueue','\x27chat_queues\x27','queryFinal','src/js/modules/main/apps/settings/views/system/system.html/system.html','ap-southeast-2','WhatsappAccountController','The\x20project\x20will\x20be\x20deleted.','api/integrations/zendesk/fields/:id','Penelope\x20(Spanish,\x20US,\x20Female)','app.whatsapp.realtime','getCannedAnswers','$observe','chatAccounts','treeCustomData','WhatsappQueueController\x20as\x20vm','EditInboundAppcustomDialogController','src/js/modules/main/apps/voice/views/voiceQueues/create/dialog.html/dialog.html','AgentHomeVoiceController','Customization\x20properly\x20created','api/chat/applications/:id','folded','exportSelectedChatWebsiteProactiveActions','snakeCase','createdAt,updatedAt,id,name,username,remoteUri,password,serverUrl,description','rpcMailQueues','exportSelectedWhatsappQueues','api/intervals/describe','app.core','arrayminrate','openchannelInteractionDownload','countbusyretry','Plivo','selectedSmsAccountInteractions','templates','dialer','app.dashboards','Last\x20Year','TOOLBAR.KOREAN','api.whatsapp.account','addIntervals','Emma','CALLYSQUARE.SQUARERECORDINGS','deleteUser','hasMicrophone','src/js/modules/main/apps/dashboards/views/general/agent/interaction/tag/dialog.html/dialog.html','gt-md','app.chat.realtime','setCurrentStep','TOOLBAR.PERSIAN','userProfiles','Invalid\x20company\x20name.','Linux','newDisposition','getCompanies','api/integrations/zoho/configurations/:id','MailSubstatuses','getProjects','Voicemail','id,fullname,userpic,internal','editInterval','DASHBOARDS.SELECT_CAMPAIGN','src/js/modules/main/apps/tools/views/trunks/create/dialog.html/dialog.html','app.dashboards.general','onSaveMember','USERPROFILE:GETRESOURCES(','treeDefaultEvents','disabled','\x27pdf\x27','CreateOrEditSquareProjectDialogController','Dynamics365Configuration\x20deleted!','RESETPASSWORD.PASSWORD_RESET','fields','chatMessage:update','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','fullname','isEstablished','sessionId\x20required','MailQueueId','api/system/process/:pid/kill','api/networks/:id/clone','$parent','isHiddenField','src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/system/dialog.html/dialog.html','listCustomFields','TemplatesController\x20as\x20vm','ispeechAsrModel','Asia/Gaza','total','$setViewValue','DisposeCallDialogController','EditWhatsappAccountAppagentDialogController','apps.voice.internalroutes','motion2.home.mycontacts:','api.cm.lists','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20squareRecordings?','api/chat/websites/:id/avatar','foreignTableFields','moveContactsIvrCampaignHopperFinal','Date','icon-checkbox-marked-outline','api/templates/:id','models','isBefore','whatsappInteraction:update','The\x20freshsalesAccount\x20will\x20be\x20deleted.','api.schedule.delete','playback','OutboundRoutesController\x20as\x20vm','External','deselectZohoAccounts','webkitHidden','timeoutId','horizontal','Delete\x20ZendeskAccount','Asia/Kuala_Lumpur','agentNotify','channel','translate','src/js/modules/main/apps/dashboards/views/general/user/voice/user.general.voice.html/user.general.voice.html','stream','SYSTEM:GET_MAILACCOUNTS','getDynamics365Configuration','progresslogin','iPhone','app.integrations.sugarcrmAccounts','GROUP\x20BY\x20','\x27uk\x27','Pacific/Pago_Pago','newChatCannedAnswer','targetChanged','America/Cayman','Bihari','addNewSmsCannedAnswer','angucomplete-alt','customDashboards','Delete\x20screenRecording','mwFormBuilder','Joanna','READ_PERMISSION'];(function(_0x325a40,_0x2e107a){const _0x5cfb3a=function(_0x3bb956){while(--_0x3bb956){_0x325a40['push'](_0x325a40['shift']());}};_0x5cfb3a(++_0x2e107a);}(a0_0x5cfb,0xa1));const a0_0x3bb9=function(_0x325a40,_0x2e107a){_0x325a40=_0x325a40-0xde;let _0x5cfb3a=a0_0x5cfb[_0x325a40];return _0x5cfb3a;};const a0_0x54e64e=a0_0x3bb9;(self[a0_0x54e64e(0x859)]=self[a0_0x54e64e(0x859)]||[])['push']([[0x8f],{0x2069:(_0x3eedb7,_0x306fbd,_0x4acfac)=>{const _0x313a4d=a0_0x54e64e;'use strict';var _0x26ba69=_0x4acfac(0x304);;_0x27732e[_0x313a4d(0x11c2)]=[_0x313a4d(0x7cb)];function _0x27732e(_0x1150de){const _0x33a4be=_0x313a4d;_0x1150de[_0x33a4be(0x2242)]['push']('authInterceptor');}const _0x2ace89=_0x27732e;;_0x106936['$inject']=[_0x313a4d(0x141e)];function _0x106936(_0x3fe7a7){const _0x553730=_0x313a4d,_0x4381c1={'to':function(_0x180c30){return _0x180c30['authenticate']===!![];}},_0x541d1a={'to':function(_0x2b1f8d){const _0x1719eb=a0_0x3bb9;return _0x2b1f8d[_0x1719eb(0x19eb)]!==_0x1719eb(0x14a4);}},_0x27c72a={'to':function(_0x48ce68){const _0x495510=a0_0x3bb9;return _0x48ce68[_0x495510(0x125d)];}},_0x52b071={'to':function(_0x3582e7){const _0x48c86b=a0_0x3bb9;return _0x3582e7[_0x48c86b(0x3fd)][_0x48c86b(0x19eb)]===_0x48c86b(0x285e);}},_0x1e5ae2=function(_0x30776a){const _0x15f907=a0_0x3bb9,_0x37f8d2=_0x30776a[_0x15f907(0x24f2)]()[_0x15f907(0x16b4)](_0x15f907(0xa87)),_0x28a491=_0x30776a['router'][_0x15f907(0x968)];return!_0x37f8d2[_0x15f907(0x1369)]()?_0x28a491[_0x15f907(0xe1d)](_0x15f907(0x14a4),undefined,{'reload':!![]}):_0x37f8d2['retrieveUser']()[_0x15f907(0x129e)](function(){const _0x55ba5b=_0x15f907;return _0x28a491[_0x55ba5b(0xe1d)](_0x55ba5b(0x14a4),undefined,{'reload':!![]});});},_0x11eff3=function(_0x3cfe0d){const _0x4872e8=a0_0x3bb9,_0x58f25e=_0x3cfe0d['injector']()[_0x4872e8(0x16b4)](_0x4872e8(0xa87)),_0x22ec3f=_0x3cfe0d[_0x4872e8(0x2127)][_0x4872e8(0x968)],_0x3bf6fc=_0x3cfe0d['$to']();if(_0x58f25e[_0x4872e8(0x23e0)]('agent')&&_0x3bf6fc['name']!=_0x4872e8(0x285e))return _0x22ec3f[_0x4872e8(0xe1d)](_0x4872e8(0x285e),{'redirect':![]},{'reload':!![]});},_0x2efffb=function(_0x33bf5a){const _0x756062=a0_0x3bb9,_0x324b9c=_0x33bf5a[_0x756062(0x24f2)]()[_0x756062(0x16b4)](_0x756062(0xa87)),_0x570830=_0x33bf5a['router']['stateService'],_0x3a8f36=_0x33bf5a[_0x756062(0x27ad)]();if(_0x324b9c['hasRole']('user')){if(!_0x324b9c['hasPermission'](_0x3a8f36[_0x756062(0x125d)]))return _0x570830[_0x756062(0xe1d)](_0x756062(0x285e),{'redirect':![]},{'reload':!![]});else{const _0xf23e3=_0x33bf5a['params']()['id']?Number(_0x33bf5a[_0x756062(0x16a)]()['id']):undefined;if(_0xf23e3)return _0x324b9c[_0x756062(0x1439)](_0x3a8f36[_0x756062(0x125d)],_0xf23e3)[_0x756062(0x129e)](function(){const _0x2a8303=_0x756062;return _0x570830['target'](_0x3a8f36['parent'][_0x2a8303(0x19eb)],{'redirect':![]},{'reload':!![]});});}}},_0x5860c1=function(_0x18e5cb){const _0x41bd36=a0_0x3bb9,_0x5c9c68=_0x18e5cb[_0x41bd36(0x24f2)]()['get'](_0x41bd36(0xa87)),_0x17ffcf=_0x18e5cb[_0x41bd36(0x2127)]['stateService'];if(_0x5c9c68[_0x41bd36(0x23e0)](_0x41bd36(0xe7b))&&!_0x5c9c68['hasPermission'](0x64))return _0x17ffcf['target'](_0x41bd36(0x285e),{'redirect':![]},{'reload':!![]});};_0x3fe7a7[_0x553730(0x1289)](_0x4381c1,_0x1e5ae2),_0x3fe7a7['onStart'](_0x541d1a,_0x11eff3),_0x3fe7a7[_0x553730(0x3c1)](_0x27c72a,_0x2efffb),_0x3fe7a7[_0x553730(0x3c1)](_0x52b071,_0x5860c1);}const _0x5d3b89=_0x106936;var _0x4d61be=_0x4acfac(0x1956),_0x3f65c0=_0x4acfac['n'](_0x4d61be),_0x69616b=_0x4acfac(0x17d),_0x2deec6=_0x4acfac['n'](_0x69616b);;const _0x5672e5=_0x4acfac['p']+_0x313a4d(0x9d6);;_0x46298c[_0x313a4d(0x11c2)]=['$mdDialog','$cookies','$q',_0x313a4d(0x247f),_0x313a4d(0x1aa9),_0x313a4d(0x4d8)];function _0x46298c(_0x16041d,_0xeb3574,_0x428609,_0x5d071d,_0x198eac,_0x218b05){let _0x1305fa;const _0x2bb56a={'getToken':_0x374967,'getCurrentUser':_0x3e0d16,'getPermissions':_0x38327c,'hasChildrenPermissions':_0x1407ea,'hasModulePermissions':_0x5927f3,'hasModulesPermissions':_0x3ce8e8,'hasRole':_0x17cdfe,'hasPermission':_0x40aab8,'hasResourcePermission':_0x4963d1,'hasSectionPermissions':_0x150b87,'hasSectionsPermissions':_0x4367e9,'isAgent':_0xa5b6f7,'isAdmin':_0x155d83,'isLoggedIn':_0x244216,'isTelephone':_0x3b86a6,'isUser':_0x46ead8,'login':_0x2e176d,'logout':_0x34fae0,'parseCrudPermissions':_0x246651,'queueLogin':_0x39c035,'reloadPermissions':_0x3cc56f,'removeCookies':_0x4c7188,'retrieveUser':_0x12b4f1,'setCurrentUser':_0x160805,'getAuthenticationType':_0x52ad89,'loginSSO':_0x33709d};return _0x2bb56a;function _0x374967(){const _0x4315c6=a0_0x3bb9;return _0xeb3574['get'](_0x4315c6(0xe2d));}function _0x3e0d16(){return _0x1305fa;}function _0x160805(_0x214b75){const _0x1c4968=a0_0x3bb9;_0x1305fa=_0x3f65c0()[_0x1c4968(0x168d)](_0x1305fa,_0x214b75);}function _0x39c035(_0x138df9){return _0x428609(function(_0x2b5414,_0x1e94b9){const _0x3265ff=a0_0x3bb9;_0x5d071d[_0x3265ff(0xe7b)][_0x3265ff(0x322)]({'id':_0x1305fa['id'],'device':'web','intrf':_0x138df9})[_0x3265ff(0x2945)][_0x3265ff(0x146b)](function(_0x39a437){_0x2b5414(_0x39a437);})[_0x3265ff(0x129e)](function(_0x2ca1de){_0x1e94b9(_0x2ca1de);});});}function _0x4864cc(){return _0x428609(function(_0x5afb06,_0x4a4207){const _0x2a680b=a0_0x3bb9;_0x5d071d[_0x2a680b(0xe7b)][_0x2a680b(0x2044)]({'id':_0x1305fa['id'],'device':_0x2a680b(0x1c63)})[_0x2a680b(0x2945)][_0x2a680b(0x146b)](function(){_0x5afb06();})[_0x2a680b(0x129e)](function(_0x246c34){_0x4a4207(_0x246c34);});});}function _0x24cd30(_0x23bcb9){return _0x428609(function(_0x4e1399,_0x47232e){const _0x31e1b6=a0_0x3bb9,_0x1580ad={'online':_0x23bcb9,'lastLoginAt':_0x23bcb9?_0x2deec6()()[_0x31e1b6(0x22b0)](_0x31e1b6(0x1ce2)):undefined};_0x5d071d[_0x31e1b6(0xe7b)][_0x31e1b6(0x18e1)]({'id':_0x1305fa['id']},_0x1580ad)['$promise']['then'](function(_0x2b191d){_0x4e1399(_0x2b191d);})[_0x31e1b6(0x129e)](function(_0x469b2d){_0x47232e(_0x469b2d);});});}function _0x2e176d(_0x6e1073){return _0x428609(function(_0x1d542b,_0x56205d){const _0x174fdf=a0_0x3bb9;_0x5d071d[_0x174fdf(0x1013)][_0x174fdf(0x106b)](_0x6e1073)[_0x174fdf(0x2945)][_0x174fdf(0x146b)](function(_0x487de4){const _0x19a0ff=_0x174fdf;return _0xeb3574[_0x19a0ff(0x17b7)](_0x19a0ff(0xe2d),_0x487de4[_0x19a0ff(0x1957)]),_0x5d071d[_0x19a0ff(0xe7b)][_0x19a0ff(0x16b4)]({'id':_0x487de4['id']})[_0x19a0ff(0x2945)];})[_0x174fdf(0x146b)](function(_0x1fcc82){const _0x59a78d=_0x174fdf;_0x1305fa=_0x1fcc82,_0x1305fa[_0x59a78d(0x1d01)]=_0x2deec6()()[_0x59a78d(0x22b0)](_0x59a78d(0x1ce2)),_0x5a3635(_0x59a78d(0x2298));})[_0x174fdf(0x146b)](function(){const _0xf3e1d8=_0x174fdf;if(_0xa5b6f7()&&_0x1305fa[_0xf3e1d8(0xd29)]===0x1&&_0x1305fa[_0xf3e1d8(0xfd1)])return _0x16041d['show']({'controller':'HotDeskDialogController','controllerAs':'vm','templateUrl':_0x5672e5,'parent':angular['element'](_0x218b05[_0xf3e1d8(0x2586)]),'clickOutsideToClose':![],'resolve':{'telephones':[_0xf3e1d8(0x362),function(_0x4d7389){const _0x5a712c=_0xf3e1d8;return _0x4d7389['resolve'](_0x5a712c(0x2484),{'fields':_0x5a712c(0xc33),'role':_0x5a712c(0x90c),'nolimit':!![]});}]}});})['then'](function(_0x554622){const _0x3b92e0=_0x174fdf;if(_0xa5b6f7()&&_0x1305fa[_0x3b92e0(0xd29)]!==0x0)return _0x39c035(_0x554622);else{if(_0x155d83()||_0x46ead8())return _0x24cd30(!![]);else return;}})['then'](function(_0x42584e){const _0x147e42=_0x174fdf;_0x1305fa=_0x3f65c0()[_0x147e42(0x255a)](_0x1305fa,_0x42584e),_0x1d542b();})['catch'](function(_0xd53831){_0x56205d(_0xd53831);});});}function _0x4c7188(){const _0x23c73f=a0_0x3bb9;_0xeb3574[_0x23c73f(0x2640)](_0x23c73f(0xe2d)),_0x1305fa&&(_0x198eac[_0x23c73f(0x1c39)][_0x23c73f(0x246d)](_0x23c73f(0x2655)+_0x1305fa['id']),_0x198eac[_0x23c73f(0x1c39)]['removeItem'](_0x23c73f(0x1c65)),_0x1305fa=null);}function _0x34fae0(_0x434806){return _0x428609(function(_0xce5cdf,_0x489fba){const _0x34bf2d=a0_0x3bb9;_0x434806?(_0x4c7188(),_0xce5cdf()):_0x428609[_0x34bf2d(0x2922)]()['then'](function(){const _0x419463=_0x34bf2d;if(_0xa5b6f7()&&_0x1305fa[_0x419463(0xd29)]!==0x0)return _0x4864cc();else{if(_0x155d83()||_0x46ead8())return _0x24cd30(![]);else return;}})[_0x34bf2d(0x146b)](function(){_0x4c7188(),_0xce5cdf();})['catch'](function(_0x815d45){_0x489fba(_0x815d45);});});}function _0x244216(){return _0x374967()?!![]:![];}function _0xa5b6f7(){const _0xa2626f=a0_0x3bb9;return _0x1305fa[_0xa2626f(0xfb0)]===_0xa2626f(0x1755);}function _0x155d83(){const _0x501a75=a0_0x3bb9;return _0x1305fa[_0x501a75(0xfb0)]==='admin';}function _0x46ead8(){const _0x82a57e=a0_0x3bb9;return _0x1305fa[_0x82a57e(0xfb0)]===_0x82a57e(0xe7b);}function _0x3b86a6(){const _0x5aef0e=a0_0x3bb9;return _0x1305fa[_0x5aef0e(0xfb0)]==='telephone';}function _0x12b4f1(){return _0x428609(function(_0x5192f9,_0x7e9f2f){const _0x35c268=a0_0x3bb9;_0x5d071d[_0x35c268(0xe7b)]['whoami']()['$promise'][_0x35c268(0x146b)](function(_0x34b27f){const _0x5c6db5=_0x35c268;return _0x34b27f[_0x5c6db5(0xfb0)]===_0x5c6db5(0xe7b)?_0x38327c(_0x34b27f[_0x5c6db5(0x209a)])[_0x5c6db5(0x146b)](function(_0x545ab5){const _0xc63874=_0x5c6db5;return _0x34b27f[_0xc63874(0x1f54)]=_0x545ab5,_0x34b27f;}):_0x34b27f;})[_0x35c268(0x146b)](function(_0x386920){_0x1305fa=_0x386920,_0x5192f9(_0x1305fa);})[_0x35c268(0x129e)](function(_0x455ad2){_0x7e9f2f(_0x455ad2);});});}function _0x17cdfe(_0x2e22a3){return _0x1305fa?_0x1305fa['role']===_0x2e22a3:![];}function _0x40aab8(_0x48bc12){const _0x16d010=a0_0x3bb9;return _0x1305fa?_0x3f65c0()[_0x16d010(0xa4e)](_0x1305fa[_0x16d010(0x1f54)],_0x48bc12):![];}function _0x38327c(_0x54c600){let _0x4620ef=[];return _0x428609(function(_0x33fa1a,_0x41a126){const _0x1bee00=a0_0x3bb9;return!_0x54c600&&_0x33fa1a(_0x4620ef),_0x5d071d['userProfile'][_0x1bee00(0x9cc)]({'id':_0x54c600})['$promise'][_0x1bee00(0x146b)](function(_0x417a70){const _0x275f3b=_0x1bee00;for(let _0x5bd5a6=0x0;_0x5bd5a6<_0x417a70[_0x275f3b(0x402)];_0x5bd5a6++){const _0x439f5d=_0x417a70[_0x5bd5a6];_0x4620ef[_0x275f3b(0x1f47)](_0x439f5d[_0x275f3b(0x631)]),_0x439f5d[_0x275f3b(0x144a)]&&(_0x4620ef=_0x3f65c0()[_0x275f3b(0x163c)](_0x4620ef,_0x439f5d['subsections']));}return _0x4620ef;})[_0x1bee00(0x146b)](function(_0x5e9928){_0x33fa1a(_0x5e9928);})[_0x1bee00(0x129e)](function(_0x496f69){const _0x4a7d70=_0x1bee00;_0x41a126(_0x4a7d70(0x13ee),_0x496f69);});});}function _0x1407ea(_0x3045d5){const _0x19dd94=a0_0x3bb9;if(!_0x3045d5)return![];return _0x3f65c0()[_0x19dd94(0x1360)](_0x3045d5,function(_0x367bcd){return _0x40aab8(_0x367bcd);});}function _0x3cc56f(){return _0x428609(function(_0x1e25ed,_0xc9fa1b){const _0xc40dc1=a0_0x3bb9;_0x38327c(_0x1305fa[_0xc40dc1(0x209a)])['then'](function(_0x5a2508){const _0x2d7729=_0xc40dc1;_0x1305fa[_0x2d7729(0x1f54)]=_0x5a2508,_0x1e25ed();})['catch'](function(_0x33544a){_0xc9fa1b(_0x33544a);});});}function _0x246651(_0x3b760d){const _0x193da5=a0_0x3bb9;return _0x155d83()?{'readOnly':![],'canEdit':!![],'canDelete':!![]}:!_0x3b760d?{'readOnly':!![],'canEdit':![],'canDelete':![]}:{'readOnly':_0x3f65c0()[_0x193da5(0xa4e)](_0x3b760d,'r')&&_0x3b760d[_0x193da5(0x402)]===0x1?!![]:![],'canEdit':_0x3f65c0()['includes'](_0x3b760d,'e')?!![]:![],'canDelete':_0x3f65c0()[_0x193da5(0xa4e)](_0x3b760d,'d')?!![]:![]};}function _0x4963d1(_0xe9235d,_0x20f3fc){return _0x428609(function(_0x52b70e,_0x1150d5){const _0x3f7432=a0_0x3bb9;return _0x5d071d[_0x3f7432(0x1366)][_0x3f7432(0x16b4)]({'userProfileId':_0x1305fa['userProfileId'],'sectionId':_0xe9235d})[_0x3f7432(0x2945)][_0x3f7432(0x146b)](function(_0xc88b94){const _0x520a2f=_0x3f7432,_0x47bbed=_0xc88b94[_0x520a2f(0x19c7)][0x0];if(_0x47bbed[_0x520a2f(0x11d2)])_0x52b70e();else return _0x5d071d['userProfileResource'][_0x520a2f(0x16b4)]({'sectionId':_0x47bbed['id'],'nolimit':!![]})[_0x520a2f(0x2945)][_0x520a2f(0x146b)](function(_0x4abd6d){const _0x925007=_0x520a2f,_0x14fc83=_0x4abd6d[_0x925007(0x19c7)];_0x3f65c0()[_0x925007(0x1360)](_0x14fc83,['resourceId',_0x20f3fc])?_0x52b70e():_0x1150d5();});})[_0x3f7432(0x129e)](function(_0xce84a7){const _0x28c789=_0x3f7432;_0x1150d5(_0x28c789(0x13ee),_0xce84a7);});});}function _0x150b87(_0x185f48){return _0x428609(function(_0x28850f,_0x1763a1){const _0x3ea65f=a0_0x3bb9,_0x25dc81={};return _0x3cc56f()['then'](function(){const _0xa8f103=a0_0x3bb9;_0x3f65c0()[_0xa8f103(0xa4e)](_0x1305fa['permissions'],_0x185f48)&&(_0x25dc81[_0x185f48]=!![]),_0x28850f(_0x25dc81);})[_0x3ea65f(0x129e)](function(_0x2dd641){_0x1763a1(_0x2dd641);});});}function _0x4367e9(_0x429444){return _0x428609(function(_0x5cca8a,_0x2e0fc1){const _0x3ac7fe=a0_0x3bb9,_0x2f0e99={};if(_0x155d83())_0x429444[_0x3ac7fe(0x1df5)](function(_0x5d16fc){_0x2f0e99[_0x5d16fc]=!![];}),_0x5cca8a(_0x2f0e99);else return _0x3cc56f()[_0x3ac7fe(0x146b)](function(){const _0x3b66cb=_0x3ac7fe;_0x429444[_0x3b66cb(0x1df5)](function(_0x26db1f){const _0x4f15b9=_0x3b66cb;_0x3f65c0()[_0x4f15b9(0xa4e)](_0x1305fa['permissions'],_0x26db1f)&&(_0x2f0e99[_0x26db1f]=!![]);}),_0x5cca8a(_0x2f0e99);})[_0x3ac7fe(0x129e)](function(_0x36bb6e){_0x2e0fc1(_0x36bb6e);});});}function _0x5927f3(_0x45c981){return _0x428609(function(_0x15c1c8,_0x3eb9f8){const _0xc4d66f=a0_0x3bb9;_0x155d83()?_0x15c1c8(!![]):_0x5d071d[_0xc4d66f(0x1366)][_0xc4d66f(0x16b4)]({'userProfileId':_0x1305fa[_0xc4d66f(0x209a)]})[_0xc4d66f(0x2945)]['then'](function(_0x3d3444){const _0x1c714e=_0xc4d66f,_0x384ff8=_0x3d3444&&_0x3d3444[_0x1c714e(0x19c7)]?_0x3d3444[_0x1c714e(0x19c7)]:[];if(!_0x3f65c0()[_0x1c714e(0x2635)](_0x384ff8)){const _0x23ef86=_0x3f65c0()[_0x1c714e(0x1dd6)](_0x384ff8,function(_0x458efd){return _0x458efd['enabled'];});_0x15c1c8(_0x3f65c0()['some'](_0x23ef86,['category',_0x45c981]));}else _0x15c1c8(![]);})['catch'](function(_0x582f23){_0x3eb9f8(_0x582f23);});});}function _0x3ce8e8(_0x14382e){return _0x428609(function(_0x410d2d,_0x29a924){const _0x3674be=a0_0x3bb9,_0x276bd2={};_0x155d83()?(_0x14382e['forEach'](function(_0x2be733){_0x276bd2[_0x2be733]=!![];}),_0x410d2d(_0x276bd2)):_0x5d071d[_0x3674be(0x1366)]['get']({'userProfileId':_0x1305fa[_0x3674be(0x209a)]})['$promise'][_0x3674be(0x146b)](function(_0x6db4fb){const _0x56bed6=_0x3674be,_0x26a165=_0x6db4fb&&_0x6db4fb[_0x56bed6(0x19c7)]?_0x6db4fb[_0x56bed6(0x19c7)]:[];if(!_0x3f65c0()[_0x56bed6(0x2635)](_0x26a165)){const _0x1cbdeb=_0x3f65c0()(_0x26a165)['filter'](function(_0x1eaa52){const _0x23a43c=_0x56bed6;return _0x1eaa52[_0x23a43c(0x193e)]&&_0x3f65c0()[_0x23a43c(0xa4e)](_0x14382e,_0x1eaa52['category']);})[_0x56bed6(0xbab)](function(_0x446750){const _0x31bfa1=_0x56bed6;return _0x446750[_0x31bfa1(0x56f)];})[_0x56bed6(0x205)](function(_0xb20af5){const _0x2c6f06=_0x56bed6;return _0xb20af5[_0x2c6f06(0x56f)];})[_0x56bed6(0x175d)]();_0x1cbdeb[_0x56bed6(0x1df5)](function(_0x305203){_0x276bd2[_0x305203]=!![];}),_0x410d2d(_0x276bd2);}else _0x410d2d({});})['catch'](function(_0x27c953){_0x29a924(_0x27c953);});});}function _0x52ad89(){const _0x505cc7=a0_0x3bb9;return _0x198eac[_0x505cc7(0x1c39)][_0x505cc7(0x1c65)]||_0x505cc7(0x232a);}function _0x5a3635(_0x24b476){const _0x35bb65=a0_0x3bb9;_0x198eac['localStorage'][_0x35bb65(0x1c65)]=_0x24b476;}function _0x33709d(_0x484685){const _0x2654e2=a0_0x3bb9;return _0x5a3635(_0x2654e2(0x1433)),_0x2654e2(0x28ed)+_0x484685;}}const _0x9164a=_0x46298c;;_0x556b6b[_0x313a4d(0x11c2)]=[_0x313a4d(0x10e8),_0x313a4d(0xd4b)];function _0x556b6b(_0x51bc7a,_0x35dbe1){const _0x21ce14=_0x313a4d,_0x4bd7f9=this;function _0x5b166c(_0x5288a4){const _0x4209dc=a0_0x3bb9;_0x51bc7a[_0x4209dc(0x2458)](_0x5288a4);}_0x4bd7f9[_0x21ce14(0xd4b)]=_0x35dbe1,_0x4bd7f9[_0x21ce14(0x13f3)]=_0x5b166c,_0x35dbe1[_0x21ce14(0x51c)]&&(_0x4bd7f9[_0x21ce14(0x19eb)]=_0x35dbe1[_0x21ce14(0x19c7)][0x0][_0x21ce14(0x19eb)]);}const _0x5ce231=_0x556b6b;;_0x471091[_0x313a4d(0x11c2)]=[_0x313a4d(0x1fc2),'$q',_0x313a4d(0x23df),_0x313a4d(0x1cd5),_0x313a4d(0x1b57)];function _0x471091(_0x43740f,_0x508fcb,_0x32aacd,_0x5f029c,_0xfa36a1){let _0x1521db;return{'request':function(_0x396cc5){const _0x5d5e09=a0_0x3bb9,_0x1f52f2=_0x32aacd[_0x5d5e09(0x16b4)]('motion.token');return _0x396cc5[_0x5d5e09(0xa01)]=_0x396cc5['headers']||{},(![]||_0xfa36a1[_0x5d5e09(0x30f)](_0x396cc5[_0x5d5e09(0x20cc)]))&&_0x1f52f2&&(_0x396cc5['headers'][_0x5d5e09(0x19f2)]='Bearer\x20'+_0x1f52f2),_0x396cc5;},'responseError':function(_0x5565e6){const _0x24a813=a0_0x3bb9;switch(_0x5565e6[_0x24a813(0x107b)]){case 0x191:_0x32aacd[_0x24a813(0x2640)](_0x24a813(0xe2d)),(_0x1521db||(_0x1521db=_0x5f029c[_0x24a813(0x16b4)](_0x24a813(0x1862))))['go']('app.login');break;case 0x194:break;default:break;}return _0x508fcb[_0x24a813(0xa6f)](_0x5565e6);}};}const _0x56f789=_0x471091;;_0x567a51[_0x313a4d(0x11c2)]=[_0x313a4d(0x1aa9)];function _0x567a51(_0x2f4368){const _0x389fa4={'safeCb':function(_0x30a895){const _0xa86397=a0_0x3bb9;return angular[_0xa86397(0x1e2c)](_0x30a895)?_0x30a895:angular[_0xa86397(0x309)];},'urlParse':function(_0x506f38){const _0x2298ab=a0_0x3bb9,_0x9e5a6f=document[_0x2298ab(0x24ec)]('a');return _0x9e5a6f[_0x2298ab(0x1b3c)]=_0x506f38,_0x9e5a6f[_0x2298ab(0x148e)]===''&&(_0x9e5a6f[_0x2298ab(0x1b3c)]=_0x9e5a6f[_0x2298ab(0x1b3c)]),_0x9e5a6f;},'isSameOrigin':function(_0x4e41d4,_0xd83992){const _0x124cbf=a0_0x3bb9;return _0x4e41d4=_0x389fa4[_0x124cbf(0x99a)](_0x4e41d4),_0xd83992=_0xd83992&&[][_0x124cbf(0x163c)](_0xd83992)||[],_0xd83992=_0xd83992[_0x124cbf(0x205)](_0x389fa4[_0x124cbf(0x99a)]),_0xd83992[_0x124cbf(0x1f47)](_0x2f4368[_0x124cbf(0x1002)]),_0xd83992=_0xd83992[_0x124cbf(0x1dd6)](function(_0x582421){const _0x296a03=_0x124cbf,_0x2fb64d=_0x4e41d4[_0x296a03(0x1e7e)]===_0x582421[_0x296a03(0x1e7e)],_0x1b1c8e=_0x4e41d4[_0x296a03(0x2414)]===_0x582421[_0x296a03(0x2414)],_0x48bdce=_0x4e41d4[_0x296a03(0x1553)]===_0x582421['port']||_0x582421['port']===''&&(_0x4e41d4['port']==='80'||_0x4e41d4[_0x296a03(0x1553)]===_0x296a03(0x9af));return _0x2fb64d&&_0x1b1c8e&&_0x48bdce;}),_0xd83992[_0x124cbf(0x402)]>=0x1;}};return _0x389fa4;}const _0x489b0c=_0x567a51;;angular[_0x313a4d(0x2528)](_0x313a4d(0x2513),[])[_0x313a4d(0x989)](_0x2ace89)['run'](_0x5d3b89)['factory']('Auth',_0x9164a)[_0x313a4d(0x28f0)]('HotDeskDialogController',_0x5ce231)[_0x313a4d(0x1750)]('authInterceptor',_0x56f789)['factory'](_0x313a4d(0x1b57),_0x489b0c);var _0x15b6e4=_0x4acfac(0xca2),_0x4e2517=_0x4acfac(0x1e94),_0x871a91=_0x4acfac(0x1e80),_0x5bbb0a=_0x4acfac(0x11ee),_0x164a4a=_0x4acfac(0x36e),_0x51cb15=_0x4acfac(0x1bdb),_0x59316b=_0x4acfac(0x1c17),_0x550f4d=_0x4acfac(0x813),_0x5df35c=_0x4acfac(0xdff),_0x3c4102=_0x4acfac(0x251),_0x4f1a2c=_0x4acfac(0xdf),_0x40b040=_0x4acfac(0x1299),_0x81833a=_0x4acfac(0x177),_0x2e10c3=_0x4acfac(0x573);;function _0x3af8ab(){const _0x168d32=_0x313a4d;let _0x4aa867={'disableCustomScrollbars':![],'disableMdInkRippleOnMobile':!![],'disableCustomScrollbarsOnMobile':!![]};function _0x4aa48b(_0x12701a){const _0x157883=a0_0x3bb9;_0x4aa867=angular[_0x157883(0xd9b)]({},_0x4aa867,_0x12701a);}function _0x160f07(_0x1bf1ad){const _0x24d829=a0_0x3bb9;if(angular[_0x24d829(0x1619)](_0x4aa867[_0x1bf1ad]))return![];return _0x4aa867[_0x1bf1ad];}function _0x3d6dcf(_0x22485c,_0x190d93){_0x4aa867[_0x22485c]=_0x190d93;}this[_0x168d32(0x980)]=function(){const _0x32c9fe={'getConfig':_0x160f07,'setConfig':_0x3d6dcf};return _0x32c9fe;},this[_0x168d32(0x989)]=_0x4aa48b;}const _0x5e62d5=_0x3af8ab;;_0x4f7740[_0x313a4d(0x11c2)]=[_0x313a4d(0x12c6),'$logProvider','msScrollConfigProvider',_0x313a4d(0x9cf)];function _0x4f7740(_0x4dce17,_0x2f927f,_0xa26b30,_0x24fb87){const _0x20313f=_0x313a4d;_0x2f927f['debugEnabled'](!![]),_0x4dce17[_0x20313f(0x989)]({'tabindex':![]}),_0x24fb87[_0x20313f(0x989)]({'disableCustomScrollbars':![],'disableCustomScrollbarsOnMobile':!![],'disableMdInkRippleOnMobile':!![]}),_0xa26b30[_0x20313f(0x989)]({'wheelPropagation':!![]});}const _0x3ab618=_0x4f7740;;_0x299113[_0x313a4d(0x11c2)]=[_0x313a4d(0x216c),_0x313a4d(0x1373),'motionConfig'];function _0x299113(_0x67a291,_0x4d1e2d,_0x397be5){const _0x299ff3=_0x313a4d;_0x4d1e2d[_0x299ff3(0x1bf)]();if(_0x397be5[_0x299ff3(0xfe8)]('disableMdInkRippleOnMobile')&&_0x67a291[_0x299ff3(0x2574)]()){const _0x3a4048=angular[_0x299ff3(0x1853)](_0x299ff3(0x2586));_0x3a4048[_0x299ff3(0x1861)](_0x299ff3(0x1ff),!![]);}_0x67a291[_0x299ff3(0x2574)]()&&angular['element'](_0x299ff3(0x1931))['addClass'](_0x299ff3(0x112c));const _0x2d598a=_0x67a291[_0x299ff3(0x17dc)]();if(_0x2d598a){const _0x1d5fc2=_0x2d598a[_0x299ff3(0x1506)]+'\x20'+_0x2d598a[_0x299ff3(0x11b7)]+'\x20'+_0x2d598a['os'];angular[_0x299ff3(0x1853)](_0x299ff3(0x1931))[_0x299ff3(0x14cf)](_0x1d5fc2);}}const _0x52f731=_0x299113;;_0x4a2913[_0x313a4d(0x11c2)]=[_0x313a4d(0x1aa9),_0x313a4d(0x10e8),_0x313a4d(0xa87),_0x313a4d(0x15bb),_0x313a4d(0x2867),_0x313a4d(0x15f0)];function _0x4a2913(_0x4546cc,_0x1372ec,_0x176bec,_0x9d4eca,_0x389f8a,_0x21c859){const _0x5b9447=_0x313a4d,_0x10c553=this;_0x10c553[_0x5b9447(0x2321)]=_0x176bec[_0x5b9447(0xb12)](),_0x10c553[_0x5b9447(0x704)]={'matchType':_0x5b9447(0x1221),'conditions':[],'fields':_0x389f8a},_0x10c553[_0x5b9447(0x5e1)]=_0x9d4eca,_0x10c553[_0x5b9447(0x3d4)]=_0x390c81,_0x10c553['applyFilter']=_0x331118,_0x10c553[_0x5b9447(0x736)]=_0x3c9955,_0x10c553[_0x5b9447(0xcaf)]=_0x362f2e,_0x10c553[_0x5b9447(0xa7c)]=_0x4d0695;function _0x390c81(){const _0x3b3f03=_0x5b9447;if(_0x21c859){const _0x25b00a=_0x24aee2();typeof _0x25b00a['advancedSearch']!==_0x3b3f03(0x2274)&&(_0x10c553[_0x3b3f03(0x704)]=_0x3f65c0()[_0x3b3f03(0x168d)](_0x10c553[_0x3b3f03(0x704)],_0x25b00a['advancedSearch']));}}function _0x331118(){const _0x166b80=_0x5b9447,_0x29e9bc=_0x3f65c0()[_0x166b80(0x1dd6)](_0x10c553[_0x166b80(0x704)]['conditions'],[_0x166b80(0x2862),![]]);let _0x4995e7='['+_0x10c553[_0x166b80(0x704)]['matchType']+']';const _0x3c1307=[];let _0x27623f='';_0x3f65c0()(_0x29e9bc)[_0x166b80(0x253)]('name')[_0x166b80(0x1df5)](function(_0x8faa80){const _0x505237=_0x166b80,_0x442a62=_0x8faa80[0x0],_0xa68b74=_0x8faa80[_0x505237(0x402)]>0x1?!![]:![],_0x1e9c6d=_0x442a62[_0x505237(0x1a56)]['column'];if(_0xa68b74){const _0x4ceb40=_0x3f65c0()(_0x8faa80)[_0x505237(0x253)](function(_0xb3def8){const _0x8da1e8=_0x505237;return _0xb3def8[_0x8da1e8(0x1a56)][_0x8da1e8(0x937)];})[_0x505237(0x1de4)](function(_0x37236a){const _0xf36dc3=_0x505237;return _0x3f65c0()[_0xf36dc3(0x1b28)](_0x37236a)[_0xf36dc3(0x205)](function(_0x11999f){const _0x753f7f=_0xf36dc3;return _0x11999f[_0x753f7f(0x1a56)][_0x753f7f(0x175d)];})[_0xf36dc3(0xbe3)]()[_0xf36dc3(0x175d)]();})[_0x505237(0x175d)](),_0x33877c=[];_0x3f65c0()[_0x505237(0x627)](_0x4ceb40)['forEach'](function(_0x5acd0e){const _0x175be7=_0x505237,_0x2490ec=_0x4ceb40[_0x5acd0e];let _0x4fe954=_0x5acd0e;_0x3f65c0()[_0x175be7(0xa4e)]([_0x175be7(0x138b),_0x175be7(0x1f6a),_0x175be7(0xbe5)],_0x5acd0e)?_0x4fe954+='['+_0x2490ec+']':_0x2490ec[_0x175be7(0x1df5)](function(_0x3a3f91){_0x4fe954+='['+_0x3a3f91+']';}),_0x33877c['push'](_0x4fe954);}),_0x27623f+=_0x1e9c6d+':='+_0x33877c['join'](':=');}else _0x27623f=_0x1e9c6d+':='+_0x442a62['query']['operator']+'['+_0x442a62['query']['value']+']';_0x3c1307[_0x505237(0x1f47)](_0x27623f);}),_0x4995e7+=_0x3c1307['join']('||'),_0x3c4def(),_0x1372ec[_0x166b80(0x2458)](_0x4995e7);}function _0x3c9955(){const _0x275ca5=_0x5b9447;_0x10c553['searchOptions'][_0x275ca5(0x1072)]=[],_0x3a481f();}function _0x362f2e(){const _0x3a8b8c=_0x5b9447;_0x3c4def(),_0x1372ec[_0x3a8b8c(0x2458)]();}function _0x4d0695(){const _0x1e01ad=_0x5b9447;_0x1372ec[_0x1e01ad(0x2458)](![]);}function _0x24aee2(){const _0x5a3560=_0x5b9447,_0x4e04bf=_0x4546cc[_0x5a3560(0x1c39)][_0x5a3560(0x1519)](_0x5a3560(0x21c1)+_0x21c859+':'+_0x10c553[_0x5a3560(0x2321)]['id']);return _0x4e04bf?JSON[_0x5a3560(0x975)](_0x4e04bf):{};}function _0x9ec394(_0x22afe3){const _0x374d59=_0x5b9447;_0x4546cc['localStorage']['setItem'](_0x374d59(0x21c1)+_0x21c859+':'+_0x10c553[_0x374d59(0x2321)]['id'],JSON[_0x374d59(0x10bb)](_0x22afe3));}function _0x3c4def(){const _0x82a32e=_0x5b9447;if(_0x21c859){const _0x5c3442=_0x24aee2();_0x5c3442[_0x82a32e(0xe93)]=_0x3f65c0()[_0x82a32e(0x2432)](_0x10c553['searchOptions'],'fields'),_0x9ec394(_0x5c3442);}}function _0x3a481f(){const _0x4682f9=_0x5b9447;if(_0x21c859){const _0x649d76=_0x24aee2();delete _0x649d76['advancedSearch'];if(_0x649d76['query'])delete _0x649d76['query'][_0x4682f9(0x21da)];_0x9ec394(_0x649d76);}}}const _0x52dc59=_0x4a2913;;_0x102b34[_0x313a4d(0x11c2)]=[_0x313a4d(0x1abe)];function _0x102b34(_0xd21b03){return{'restrict':'A','link':function(_0x47fd04,_0x23686d,_0x503610){const _0x357d23=a0_0x3bb9;_0x47fd04[_0x357d23(0x21e8)](_0x503610[_0x357d23(0x2588)],function(_0x29be7b){_0xd21b03(function(){const _0x4b092f=a0_0x3bb9;_0x29be7b?_0x23686d[0x0]['focus']():_0x23686d[0x0][_0x4b092f(0x2076)]();});});}};}const _0x5ea21c=_0x102b34;var _0x4acf25=_0x4acfac(0x1433),_0x327455=_0x4acfac['n'](_0x4acf25);;_0x28e3c3[_0x313a4d(0x11c2)]=[_0x313a4d(0x1abe),'$q','$interpolate'];function _0x28e3c3(_0x5a3098,_0x2cc3e2,_0x4ec29c){return{'restrict':'E','compile':function(_0x32d188,_0x5c7447){const _0x791e49=a0_0x3bb9;let _0x400b5e;return!_0x5c7447[_0x791e49(0x2148)]&&(_0x400b5e=_0x32d188['html'](),_0x32d188[_0x791e49(0xb58)]()),function(_0x9b6302,_0x34e28a,_0x5825f4){const _0x3428a0=_0x791e49;_0x5825f4['code']&&(_0x400b5e=_0x9b6302[_0x3428a0(0xb0c)](_0x5825f4[_0x3428a0(0x2148)]));const _0x418dfb=_0x9b6302[_0x3428a0(0xb0c)](_0x5825f4[_0x3428a0(0xe6e)]);_0x2cc3e2[_0x3428a0(0x19d0)](_0x400b5e)[_0x3428a0(0x146b)](function(_0x4b0a99){const _0xc80e73=_0x3428a0;if(_0x4b0a99){_0x418dfb&&(_0x4b0a99=_0x4ec29c(_0x4b0a99)(_0x9b6302));const _0xb3d4bc=angular[_0xc80e73(0x1853)](_0xc80e73(0x28c));_0x34e28a['append'](_0xb3d4bc),_0x5a3098(function(){_0x160bf6(_0x4b0a99,_0xb3d4bc);},0x22,![]);}});function _0x160bf6(_0x348fc3,_0x587c0d){const _0x4e8279=_0x3428a0,_0x3a4f06=_0x587c0d['find'](_0x4e8279(0x2148));let _0x210248=_0x348fc3[_0x4e8279(0x10c8)]('\x0a');_0x210248=_0x210248[_0x4e8279(0x1dd6)](function(_0x5dd760){const _0x5ea9bd=_0x4e8279;return _0x5dd760['trim']()[_0x5ea9bd(0x402)];});const _0x57b8bd=_0x210248[0x0]['match'](/^\s*/)[0x0],_0x48bb64=new RegExp('^'+_0x57b8bd);_0x210248=_0x210248['map'](function(_0x34d01f){const _0x348e12=_0x4e8279;return _0x34d01f['replace'](_0x48bb64,'')[_0x348e12(0x5f4)](/\s+$/,'');});const _0x2f5156=_0x327455()[_0x4e8279(0x1469)](_0x5825f4[_0x4e8279(0x90b)]||_0x5825f4[_0x4e8279(0x1a3e)],_0x210248[_0x4e8279(0xb47)]('\x0a'),!![]);_0x2f5156['value']=_0x2f5156[_0x4e8279(0x175d)]['replace'](/=""<\/span>/gi,'')[_0x4e8279(0x5f4)](_0x4e8279(0x2ec),'')[_0x4e8279(0x5f4)](_0x4e8279(0x1b33),''),_0x3a4f06[_0x4e8279(0x1034)](_0x2f5156[_0x4e8279(0x175d)])[_0x4e8279(0x14cf)](_0x4e8279(0x1469));}};}};}const _0x9081f3=_0x28e3c3;;const _0x3957bb=_0x4acfac['p']+'src/js/modules/core/directives/ms-advanced-search/ms-advanced-search.html/ms-advanced-search.html';;_0x505106['$inject']=[_0x313a4d(0x214b),'$q',_0x313a4d(0x247f),_0x313a4d(0x1fe4)];function _0x5355a1(){return{'restrict':'E','scope':{'options':'=','clearFilter':'&'},'controller':_0x505106,'controllerAs':'vm','bindToController':!![],'templateUrl':_0x3957bb};}function _0x505106(_0x52185f,_0x1367f4,_0x12c020,_0xdaf68a){const _0x4fa0ab=_0x313a4d,_0x33e76f=this;_0x33e76f[_0x4fa0ab(0x1bca)]=[{'type':_0x4fa0ab(0x6be),'symbol':'=','translate':_0x4fa0ab(0x744),'excludeFrom':[_0x4fa0ab(0x175c)]},{'type':_0x4fa0ab(0x1671),'symbol':'≠','translate':_0x4fa0ab(0x16ac),'excludeFrom':[_0x4fa0ab(0x175c)]},{'type':_0x4fa0ab(0x1f6a),'symbol':'∈','translate':'IS_AMONG','applyTo':[_0x4fa0ab(0x175c)]},{'type':'$notIn','symbol':'∉','translate':'IS_NOT_AMONG','applyTo':['multiselect']},{'type':'$substring','symbol':'⊃','translate':'CONTAINS','applyTo':[_0x4fa0ab(0xa8d)]},{'type':_0x4fa0ab(0x53d),'symbol':_0x4fa0ab(0x107c),'translate':_0x4fa0ab(0xf4e),'applyTo':['text']},{'type':'$endsWith','symbol':_0x4fa0ab(0x25f3),'translate':'ENDS_WITH','applyTo':[_0x4fa0ab(0xa8d)]},{'type':'$lt','symbol':'<','translate':'IS_LESS_THAN','applyTo':[_0x4fa0ab(0x1a10),'number']},{'type':'$gt','symbol':'>','translate':_0x4fa0ab(0xc02),'applyTo':['date','number']},{'type':'$lte','symbol':'≤','translate':'IS_LESS_THAN_OR_EQUAL_TO','applyTo':[_0x4fa0ab(0x1a10),_0x4fa0ab(0x181)]},{'type':'$gte','symbol':'≥','translate':_0x4fa0ab(0x1706),'applyTo':[_0x4fa0ab(0x1a10),_0x4fa0ab(0x181)]},{'type':'$between','symbol':'≬','translate':_0x4fa0ab(0xa42),'applyTo':[_0x4fa0ab(0x1a10),'number']}],_0x33e76f[_0x4fa0ab(0x18c2)]=_0x33e76f[_0x4fa0ab(0x1bca)],_0x33e76f[_0x4fa0ab(0x1b84)]=_0x25f6e3,_0x33e76f['editCondition']=_0x21817e,_0x33e76f[_0x4fa0ab(0x186c)]=_0x3fdac5,_0x33e76f[_0x4fa0ab(0x1447)]=_0x8ca186,_0x33e76f[_0x4fa0ab(0x25bd)]=_0x534dba,_0x33e76f[_0x4fa0ab(0x31d)]=_0x583d48,_0x33e76f[_0x4fa0ab(0x10ee)]=_0x57ddc7,_0x33e76f[_0x4fa0ab(0xb50)]=_0x246ac6,_0x33e76f['onOperatorChange']=_0x582505,_0x33e76f['onValueChange']=_0x51f26e,_0x33e76f[_0x4fa0ab(0x1ffd)]=_0x20c5ce,_0x33e76f['handleKeyboardAction']=_0x58fa32;function _0x246ac6(){const _0xc1d9ab=_0x4fa0ab;_0x33e76f[_0xc1d9ab(0x175d)]=undefined,_0x33e76f[_0xc1d9ab(0x1deb)]=undefined,_0x33e76f['searchText']=undefined,_0x33e76f[_0xc1d9ab(0x50e)]=![],_0x4fa87(),_0x33e76f[_0xc1d9ab(0xde2)]=_0x33e76f[_0xc1d9ab(0x1bca)][_0xc1d9ab(0x402)]===0x1?!![]:![];if(!_0x33e76f[_0xc1d9ab(0xde2)])_0x33e76f[_0xc1d9ab(0x588)]=undefined;}function _0x582505(_0x59af21){const _0x5235ca=_0x4fa0ab;_0x33e76f[_0x5235ca(0x99e)]=!![],_0x33e76f[_0x5235ca(0x588)]&&(_0x59af21?_0x59af21[_0x5235ca(0x8f1)]?_0x3f65c0()[_0x5235ca(0xa62)](_0x33e76f[_0x5235ca(0x588)]['applyTo'],_0x59af21[_0x5235ca(0x8f1)])[_0x5235ca(0x402)]>0x0&&(_0x33e76f[_0x5235ca(0x175d)]=null):_0x33e76f['selectedOperator']['applyTo']&&(_0x33e76f[_0x5235ca(0x175d)]=null):_0x33e76f[_0x5235ca(0x175d)]=null,_0x33e76f[_0x5235ca(0x588)][_0x5235ca(0x1142)]!='between'&&(_0x33e76f[_0x5235ca(0x1deb)]=null),_0x33e76f['selectedField'][_0x5235ca(0xa08)]&&!_0x3f65c0()[_0x5235ca(0x2635)](_0x33e76f['selectedField'][_0x5235ca(0xa08)][_0x5235ca(0xaa6)])&&(_0x33e76f[_0x5235ca(0x588)]['isExtra']=_0x3f65c0()['some'](_0x33e76f[_0x5235ca(0x16d4)][_0x5235ca(0xa08)]['extraOperators'],function(_0x3f15d4){const _0x95371f=_0x5235ca;return _0x3f15d4===_0x33e76f[_0x95371f(0x588)][_0x95371f(0x1142)];}))),_0x418d31();}function _0x51f26e(){const _0xe596f0=_0x4fa0ab;if(_0x33e76f['selectedOperator']&&_0x33e76f['selectedOperator'][_0xe596f0(0x1142)]===_0xe596f0(0x138b)){if(_0x33e76f[_0xe596f0(0x16d4)][_0xe596f0(0x1142)]===_0xe596f0(0x181))_0x20c5ce();else _0x33e76f[_0xe596f0(0x16d4)]['type']===_0xe596f0(0x1a10)&&(_0x33e76f[_0xe596f0(0x184d)]=_0x2deec6()(_0x33e76f[_0xe596f0(0x175d)])[_0xe596f0(0x387)](0x1,_0xe596f0(0x1066)),_0x418d31());}else _0x418d31();}function _0x4fa87(){const _0x2a1575=_0x4fa0ab,_0x2b75f8=_0x33e76f[_0x2a1575(0x16d4)][_0x2a1575(0xa08)]&&!_0x3f65c0()[_0x2a1575(0x2635)](_0x33e76f[_0x2a1575(0x16d4)][_0x2a1575(0xa08)][_0x2a1575(0xaa6)]),_0x354db6=_0x33e76f['selectedField'][_0x2a1575(0xa08)]&&!_0x3f65c0()[_0x2a1575(0x2635)](_0x33e76f[_0x2a1575(0x16d4)][_0x2a1575(0xa08)][_0x2a1575(0x930)]);_0x33e76f[_0x2a1575(0x1bca)]=_0x3f65c0()[_0x2a1575(0x1dd6)](_0x33e76f['operators'],function(_0x5dad4c){const _0x32373a=_0x2a1575,_0x4dc315=!_0x5dad4c[_0x32373a(0x8f1)]||_0x3f65c0()[_0x32373a(0xa4e)](_0x5dad4c[_0x32373a(0x8f1)],_0x33e76f[_0x32373a(0x16d4)][_0x32373a(0x1142)]);_0x5dad4c[_0x32373a(0x2600)]=_0x2b75f8&&_0x3f65c0()[_0x32373a(0x1360)](_0x33e76f[_0x32373a(0x16d4)]['options'][_0x32373a(0xaa6)],function(_0x183517){const _0xd96a7a=_0x32373a;return _0x183517===_0x5dad4c[_0xd96a7a(0x1142)];});const _0x49e9cc=_0x3f65c0()[_0x32373a(0xa4e)](_0x5dad4c['excludeFrom'],_0x33e76f['selectedField'][_0x32373a(0x1142)])||_0x354db6&&_0x3f65c0()[_0x32373a(0xa4e)](_0x33e76f[_0x32373a(0x16d4)][_0x32373a(0xa08)]['excludedOperators'],_0x5dad4c[_0x32373a(0x1142)]);if((_0x4dc315||_0x5dad4c[_0x32373a(0x2600)])&&!_0x49e9cc)return _0x5dad4c;});}function _0x57ddc7(){const _0x334ef3=_0x4fa0ab,_0x2bf477=angular[_0x334ef3(0x235a)](_0x33e76f[_0x334ef3(0x16d4)]['options']['route']);if(_0x33e76f['selectedField'][_0x334ef3(0x1142)]===_0x334ef3(0x14ee))for(let _0x23bbe5=0x0;_0x23bbe5Number(_0x33e76f['value'])?!![]:![]:_0x33e76f['isValidRange']=!![];else _0x33e76f['selectedField']['type']===_0x1f6489(0x1a10)&&(_0x33e76f[_0x1f6489(0xe2b)]=_0x2deec6()(_0x33e76f[_0x1f6489(0x1deb)])[_0x1f6489(0xd7b)](0x1,_0x1f6489(0x1066)),_0x33e76f[_0x1f6489(0x99e)]=!![]);_0x418d31();}function _0x25f6e3(){const _0x4972df=_0x4fa0ab,_0x278bdf=_0x48d132();_0x33e76f['options'][_0x4972df(0x1072)][_0x4972df(0x1f47)](_0x278bdf),_0x8cb56e();}function _0x21817e(_0x4e6191){const _0x1a0d04=_0x4fa0ab;_0x33e76f['pendingCondition']=_0x4e6191,_0x33e76f[_0x1a0d04(0x25da)]['style']=_0x1a0d04(0x1838),_0x33e76f[_0x1a0d04(0x16d4)]=_0x3f65c0()[_0x1a0d04(0xc84)](_0x33e76f[_0x1a0d04(0xa08)][_0x1a0d04(0x2867)],[_0x1a0d04(0x19eb),_0x33e76f[_0x1a0d04(0x25da)][_0x1a0d04(0x19eb)]]),_0x4fa87(),_0x33e76f[_0x1a0d04(0x588)]=_0x3f65c0()[_0x1a0d04(0xc84)](_0x33e76f[_0x1a0d04(0x1bca)],['type',_0x33e76f[_0x1a0d04(0x25da)]['query'][_0x1a0d04(0x937)]]),_0x33e76f[_0x1a0d04(0x16d4)]['type']===_0x1a0d04(0x1a10)&&typeof _0x33e76f[_0x1a0d04(0x25da)][_0x1a0d04(0x175d)]===_0x1a0d04(0x1f23)?(_0x33e76f[_0x1a0d04(0x175d)]=new Date(_0x33e76f[_0x1a0d04(0x25da)][_0x1a0d04(0x175d)]),_0x33e76f['minDateRange']=_0x2deec6()(_0x33e76f[_0x1a0d04(0x175d)])[_0x1a0d04(0x387)](0x1,_0x1a0d04(0x1066)),_0x33e76f[_0x1a0d04(0x1deb)]=_0x33e76f[_0x1a0d04(0x25da)][_0x1a0d04(0x25db)]?new Date(_0x33e76f[_0x1a0d04(0x25da)]['endValue']):undefined):(_0x33e76f['value']=_0x33e76f[_0x1a0d04(0x25da)][_0x1a0d04(0x175d)],_0x33e76f[_0x1a0d04(0x1deb)]=_0x33e76f[_0x1a0d04(0x25da)][_0x1a0d04(0x25db)]),_0x33e76f[_0x1a0d04(0x99e)]=!![],_0x33e76f[_0x1a0d04(0x50e)]=!![];}function _0x3fdac5(){const _0x3ad0c8=_0x4fa0ab,_0x5c77db=_0x48d132(),_0x59974d=_0x3f65c0()['findIndex'](_0x33e76f['options'][_0x3ad0c8(0x1072)],_0x3ad0c8(0x2376));_0x33e76f[_0x3ad0c8(0xa08)][_0x3ad0c8(0x1072)][_0x3ad0c8(0x1f7d)](_0x59974d,0x1,_0x5c77db),_0x8cb56e(),_0x33e76f[_0x3ad0c8(0x25da)]['style']=null,_0x33e76f[_0x3ad0c8(0x25da)]=undefined;}function _0x8ca186(){const _0x46ed60=_0x4fa0ab;_0x33e76f[_0x46ed60(0x25da)][_0x46ed60(0x2376)]=null,_0x33e76f['pendingCondition']=undefined;}function _0x534dba(_0x4d6820){const _0x4a8552=_0x4fa0ab;_0x4d6820[_0x4a8552(0x2376)]=_0x4d6820[_0x4a8552(0x2862)]?undefined:'chip-disabled',_0x4d6820[_0x4a8552(0x2862)]=!_0x4d6820['disabled'];}function _0x583d48(){const _0x590f35=_0x4fa0ab;if(_0x3f65c0()['isEmpty'](_0x33e76f[_0x590f35(0xa08)][_0x590f35(0x1072)]))_0x33e76f[_0x590f35(0x4f1)]();}function _0x58fa32(){const _0x3330ca=_0x4fa0ab;_0x33e76f[_0x3330ca(0x25da)]?_0x3fdac5():_0x25f6e3();}function _0x48d132(){const _0xea5c32=_0x4fa0ab;return{'name':_0x33e76f[_0xea5c32(0x16d4)]['name'],'operator':_0x52185f['instant']('DASHBOARDS.'+_0x33e76f[_0xea5c32(0x588)][_0xea5c32(0x2895)]),'value':_0x33e76f[_0xea5c32(0x175d)],'endValue':_0x33e76f[_0xea5c32(0x1deb)],'displayValue':_0x26b742(_0x33e76f[_0xea5c32(0x175d)]),'displayEndValue':_0x26b742(_0x33e76f[_0xea5c32(0x1deb)]),'query':{'column':_0x33e76f[_0xea5c32(0x16d4)][_0xea5c32(0x1dbb)],'operator':_0x33e76f[_0xea5c32(0x588)][_0xea5c32(0x1142)],'value':_0x2d2f90()},'disabled':![]};}function _0x26b742(_0xa80258){const _0xc04be2=_0x4fa0ab;let _0x16e5ed;if(!_0xa80258)return undefined;switch(_0x33e76f['selectedField'][_0xc04be2(0x1142)]){case _0xc04be2(0x1a10):_0x16e5ed=_0x2deec6()(_0xa80258)[_0xc04be2(0x22b0)]('YYYY-MM-DD');break;case _0xc04be2(0x175c):{const _0x3a5a30=_0x3f65c0()[_0xc04be2(0x205)](_0xa80258,function(_0x2f6455){return _0x2f6455['name'];});_0x16e5ed=_0x33e76f[_0xc04be2(0x588)][_0xc04be2(0x1142)]===_0xc04be2(0x6be)?_0x3a5a30[_0xc04be2(0xb47)](_0xc04be2(0x400)):_0x3a5a30[_0xc04be2(0xb47)](_0xc04be2(0x12a9));}break;case _0xc04be2(0xa5f):_0x16e5ed=_0xa80258[_0xc04be2(0x19eb)];break;case'autocomplete':_0x16e5ed=_0x33e76f['selectedOperator']['isExtra']?_0xa80258:_0xa80258[_0xc04be2(0x884)];break;default:_0x16e5ed=_0xa80258;break;}return _0x16e5ed;}function _0x2d2f90(){const _0x3f3ffd=_0x4fa0ab,_0x40db5a=_0x33e76f['value'],_0x2edd31=_0x33e76f['endRangeValue'];let _0x5f3d20;switch(_0x33e76f[_0x3f3ffd(0x16d4)]['type']){case _0x3f3ffd(0x1a10):{const _0x2a569c=_0x2deec6()(_0x40db5a)[_0x3f3ffd(0x65f)](0x0,!![])[_0x3f3ffd(0x22b0)](_0x3f3ffd(0x17d5));if(_0x33e76f[_0x3f3ffd(0x588)][_0x3f3ffd(0x1142)]===_0x3f3ffd(0x138b)){const _0x325873=_0x2deec6()(_0x2edd31)['utcOffset'](0x0,!![])[_0x3f3ffd(0x22b0)](_0x3f3ffd(0x17d5));_0x5f3d20=[_0x2a569c,_0x325873];}else _0x5f3d20=_0x2a569c;}break;case _0x3f3ffd(0x181):_0x5f3d20=_0x33e76f[_0x3f3ffd(0x588)][_0x3f3ffd(0x1142)]===_0x3f3ffd(0x138b)?[_0x40db5a,_0x2edd31]:_0x40db5a;break;case _0x3f3ffd(0x175c):{const _0x2176cf=_0x33e76f[_0x3f3ffd(0x16d4)][_0x3f3ffd(0xa08)][_0x3f3ffd(0x65c)]||'id';_0x5f3d20=_0x3f65c0()[_0x3f3ffd(0x205)](_0x40db5a,_0x2176cf);}break;case'select':_0x5f3d20=_0x40db5a['id'];break;case _0x3f3ffd(0x14ee):_0x5f3d20=_0x33e76f[_0x3f3ffd(0x588)][_0x3f3ffd(0x2600)]?_0x40db5a:_0x40db5a['id'];break;default:_0x5f3d20=_0x40db5a;break;}return _0x5f3d20;}function _0x8cb56e(){const _0x283d8f=_0x4fa0ab;_0x33e76f['value']=null,_0x33e76f[_0x283d8f(0x1deb)]=null,_0x33e76f[_0x283d8f(0x184d)]=null,_0x33e76f[_0x283d8f(0xe2b)]=null,_0x33e76f[_0x283d8f(0x50e)]=![];}}const _0x1af157=_0x5355a1;;function _0x34aefb(){const _0x1a9b9d=_0x313a4d;return{'restrict':'E','scope':{'templatePath':'=template','card':_0x1a9b9d(0x1453),'vm':'=viewModel'},'template':_0x1a9b9d(0x1bec),'compile':function(_0x47ffe5){const _0x473f3e=_0x1a9b9d;return _0x47ffe5[_0x473f3e(0x14cf)](_0x473f3e(0x2939)),function _0x3cb897(_0x292216,_0x4633c9){const _0x3ad706=_0x473f3e;function _0x551db6(){const _0x4d9b3a=a0_0x3bb9;_0x292216[_0x4d9b3a(0x26c1)](_0x4d9b3a(0x7ea),_0x4633c9);}_0x292216[_0x3ad706(0x12e)]=_0x551db6;};}};}const _0x1d7bca=_0x34aefb;;function _0x275873(){return{'restrict':'A','link':function(_0x5d0b44,_0x5855c6,_0x566428){const _0x3f05fe=a0_0x3bb9;_0x566428[_0x3f05fe(0x282b)](_0x3f05fe(0x2082),function(_0x15ba17){const _0x56a3c7=_0x3f05fe,_0x5a1855=_0x5855c6[_0x56a3c7(0x3fd)]()[_0x56a3c7(0x3fd)]();!_0x5a1855[_0x56a3c7(0x103c)](_0x56a3c7(0x2337))&&_0x5a1855['addClass'](_0x56a3c7(0x2337));if(!_0x3f65c0()['isEmpty'](_0x15ba17))_0x5a1855[_0x56a3c7(0x14cf)](_0x15ba17);else{const _0x17c3b4=_0x5a1855[0x0][_0x56a3c7(0x1b6c)][_0x56a3c7(0x10c8)]('\x20'),_0x2b8489=_0x17c3b4[_0x56a3c7(0x172b)](_0x56a3c7(0xdd8));_0x17c3b4[_0x56a3c7(0x402)]=_0x2b8489+0x1,_0x5a1855[0x0][_0x56a3c7(0x1b6c)]=_0x17c3b4[_0x56a3c7(0xb47)]('\x20');}});}};}const _0x2c593b=_0x275873;;const _0x5ec85a=_0x4acfac['p']+'src/js/modules/core/directives/ms-click-to-call/ms-click-to-call.html/ms-click-to-call.html';;const _0x4748cf=_0x4acfac['p']+_0x313a4d(0x11c8);;function _0x59fbc6(){const _0x227213=_0x313a4d;return{'restrict':'E','scope':{'type':'=','disabled':'=','target':'=','prefix':'=','license':'='},'controller':[_0x227213(0x910),_0x227213(0x1fc2),'$http','$translate',_0x227213(0x4d8),_0x227213(0x10e8),_0x227213(0xa87),_0x227213(0x1fe4),_0x227213(0x247f),function(_0x34e94b,_0xd9e7dd,_0x504f2c,_0x298e1f,_0x297dcb,_0x558432,_0x1b1bfe,_0x130df7,_0x237792){const _0x23759d=_0x227213;_0x34e94b['currentUser']=_0x1b1bfe[_0x23759d(0xb12)](),_0x34e94b[_0x23759d(0x6e3)]=function(){const _0x55c84a=_0x23759d;return _0x34e94b[_0x55c84a(0xe1d)]&&_0x34e94b['target'][_0x55c84a(0x172b)]('@')<0x0&&_0x34e94b[_0x55c84a(0xe1d)]!=_0x34e94b[_0x55c84a(0x2321)]['internal']&&_0x34e94b[_0x55c84a(0xe1d)]!=_0x34e94b['currentUser'][_0x55c84a(0x19eb)]&&(_0x34e94b[_0x55c84a(0x2321)][_0x55c84a(0xd29)]==0x0&&_0x34e94b[_0x55c84a(0x2321)][_0x55c84a(0x1fb4)]||_0x34e94b[_0x55c84a(0x2321)][_0x55c84a(0xd29)]==0x2&&_0x34e94b[_0x55c84a(0x2690)]['webrtc'])&&!_0x34e94b['disabled'];};function _0x2e508c(_0x5dd2bd){const _0x310572=_0x23759d;return _0x237792[_0x310572(0xe7b)][_0x310572(0x18ba)]({'id':_0x34e94b[_0x310572(0x2321)]['id']})[_0x310572(0x2945)][_0x310572(0x146b)](function(_0x126605){const _0x25e5ee=_0x310572;if(_0x126605[_0x25e5ee(0x51c)])return _0x558432[_0x25e5ee(0x2615)]({'controller':_0x25e5ee(0xaa7),'controllerAs':'vm','templateUrl':_0x4748cf,'parent':angular[_0x25e5ee(0x1853)](_0x297dcb[_0x25e5ee(0x2586)]),'clickOutsideToClose':!![],'locals':{'prefixes':_0x126605,'required':_0x34e94b['currentUser'][_0x25e5ee(0x27f8)]}});})[_0x310572(0x146b)](function(_0x229bf4){const _0x972ab9=_0x310572;if(!_0x34e94b[_0x972ab9(0x2321)]['phoneBarPrefixRequired']){if(_0x229bf4&&_0x229bf4!==-0x1)_0x5cbc3f(_0x229bf4+_0x5dd2bd);else!_0x229bf4&&_0x5cbc3f(_0x5dd2bd);}else _0x229bf4&&_0x229bf4!==-0x1&&_0x5cbc3f(_0x229bf4+_0x5dd2bd);});}function _0x5cbc3f(_0x4cd932){const _0x402a9e=_0x23759d;switch(_0x34e94b[_0x402a9e(0x2321)]['showWebBar']){case 0x0:return _0x348480('http://127.0.0.1:'+(_0x34e94b[_0x402a9e(0x2321)]['phoneBarRemoteControlPort']||_0x402a9e(0x118f))+_0x402a9e(0x596)+_0x32af2f(_0x4cd932));case 0x2:return _0xd9e7dd[_0x402a9e(0x25a4)](_0x402a9e(0x2111),{'target':_0x32af2f(_0x4cd932)});default:break;}}_0x34e94b['call']=function(_0x38d545){const _0x83b9ac=_0x23759d;return _0x34e94b[_0x83b9ac(0x2321)]['showWebBar']!==0x2?_0x2e508c(_0x38d545):_0x5cbc3f(_0x38d545);},_0x34e94b['transfer']=function(_0x38bb37){const _0x3029c2=_0x23759d;switch(_0x34e94b[_0x3029c2(0x2321)][_0x3029c2(0xd29)]){case 0x0:return _0x348480('http://127.0.0.1:'+(_0x34e94b[_0x3029c2(0x2321)][_0x3029c2(0x1dba)]||_0x3029c2(0x118f))+'/api/transfer?number='+_0x32af2f(_0x38bb37));case 0x2:_0xd9e7dd[_0x3029c2(0x25a4)]('webrtc::transfer',{'target':_0x32af2f(_0x38bb37)});break;default:break;}};function _0x32af2f(_0x234568){const _0x17df8b=_0x23759d;return!_0x3f65c0()[_0x17df8b(0x1b36)](_0x234568)?_0x234568[_0x17df8b(0x5f4)](/[^\w.+#*-]+/g,''):'';}function _0x348480(_0x2470b4){const _0x37dbb8=_0x23759d;return _0x504f2c[_0x37dbb8(0x16b4)](_0x2470b4)[_0x37dbb8(0x1c75)](function(){const _0xd09a15=_0x37dbb8;_0x130df7[_0xd09a15(0x1c75)]({'title':'Successful\x20call','msg':'Call\x20properly\x20handled!'});})[_0x37dbb8(0x1980)](function(){const _0x1310c2=_0x37dbb8;_0x130df7['error']({'title':_0x1310c2(0x58a),'msg':_0x298e1f[_0x1310c2(0xde)](_0x1310c2(0x38c))});});}}],'templateUrl':_0x5ec85a};}const _0x2dfd8e=_0x59fbc6;;_0x51e738[_0x313a4d(0x11c2)]=['msDatepickerFixConfig'];function _0x5d1725(){const _0x5795b7=_0x313a4d;_0x53961f[_0x5795b7(0x11c2)]=[_0x5795b7(0x19d7)];const _0x18526e=this;let _0x2c05e1={'formatter':function(_0x9a62e3){if(!_0x9a62e3)return'';return _0x9a62e3===''?_0x9a62e3:new Date(_0x9a62e3);},'parser':function(_0x53a993){const _0x5099ab=_0x5795b7;if(!_0x53a993)return'';return _0x2deec6()(_0x53a993)[_0x5099ab(0x387)](_0x2deec6()(_0x53a993)['utcOffset'](),'m')[_0x5099ab(0x2646)]();}};function _0x53961f(_0x13b1ea){const _0x3c47b5=_0x5795b7;_0x2c05e1=angular[_0x3c47b5(0xd9b)]({},_0x2c05e1,_0x13b1ea);}_0x18526e[_0x5795b7(0x989)]=_0x53961f,_0x18526e[_0x5795b7(0x980)]=function(){return _0x2c05e1;};}function _0x51e738(_0x532443){const _0x55d9f1=_0x313a4d;return{'require':_0x55d9f1(0x213f),'priority':0x1,'link':function(_0x5d5736,_0x4ec342,_0x241820,_0x25d939){const _0x5d405b=_0x55d9f1;_0x25d939[_0x5d405b(0x4c8)][_0x5d405b(0x1f47)](_0x532443[_0x5d405b(0x1920)]),_0x25d939[_0x5d405b(0x1102)][_0x5d405b(0x1f47)](_0x532443[_0x5d405b(0x138c)]);}};};_0x2307f6['$inject']=['api'];function _0x2307f6(_0x58c749){return{'restrict':'E','scope':{'id':'=','model':'=','element':'=','title':'=','path':'='},'replace':!![],'link':function(_0x53ba8b,_0x5053bb){const _0x3977e6=a0_0x3bb9;let _0x1c34bf=![];const _0x9b3d6e={};_0x9b3d6e['id']=_0x53ba8b['id'];!_0x3f65c0()[_0x3977e6(0x1b36)](_0x53ba8b[_0x3977e6(0x27e0)])&&(_0x9b3d6e[_0x3977e6(0x27e0)]=_0x53ba8b['path']);const _0x409a4c=document[_0x3977e6(0x24ec)](_0x53ba8b[_0x3977e6(0x1853)]);_0x409a4c[_0x3977e6(0x1652)](_0x3977e6(0x2366),'none'),_0x409a4c[_0x3977e6(0x1652)](_0x3977e6(0x1606),'true'),_0x53ba8b['element']==='audio'&&_0x409a4c[_0x3977e6(0x1652)]('style','width:\x20265px;'),_0x53ba8b[_0x3977e6(0x1853)]==='video'&&_0x409a4c['setAttribute'](_0x3977e6(0x2376),_0x3977e6(0x138)),_0x409a4c['setAttribute'](_0x3977e6(0x1189),_0x53ba8b[_0x3977e6(0x1189)]),_0x409a4c['setAttribute'](_0x3977e6(0x1006),'\x20'),_0x409a4c[_0x3977e6(0x1482)]=function(_0x9699bf){const _0x2b5b2e=_0x3977e6;!_0x1c34bf&&(_0x1c34bf=!![],_0x9699bf[_0x2b5b2e(0x115c)](),_0x58c749[_0x53ba8b[_0x2b5b2e(0x1320)]][_0x2b5b2e(0x15b1)](_0x9b3d6e)[_0x2b5b2e(0x2945)][_0x2b5b2e(0x146b)](function(_0x21cd42){const _0x293649=_0x2b5b2e,_0x426a97=[_0x21cd42[_0x293649(0x2eb)]],_0x27f346=new Blob(_0x426a97,{'type':_0x21cd42['type']});_0x409a4c[_0x293649(0x1652)](_0x293649(0x1142),_0x21cd42[_0x293649(0x1142)]),_0x409a4c['setAttribute']('src',URL['createObjectURL'](_0x27f346)),_0x409a4c[_0x293649(0x1fee)]();})[_0x2b5b2e(0x129e)](function(_0x4e3703){const _0x3d0dd7=_0x2b5b2e;console[_0x3d0dd7(0x1980)](_0x4e3703);}));},_0x5053bb[_0x3977e6(0x1034)](_0x409a4c);}};}const _0x14140d=_0x2307f6;;const _0x4065d0=_0x4acfac['p']+_0x313a4d(0x2618);;function _0x28ef33(){const _0x28ea5a=_0x313a4d;return{'restrict':'E','scope':{'options':'='},'controller':[_0x28ea5a(0x910),function(_0x3d5f12){const _0x41a68d=_0x28ea5a;_0x3d5f12['canTransfer']=function(_0x126599,_0x17c403,_0x13b238){const _0x1214b3=a0_0x3bb9;if(_0x17c403[_0x1214b3(0x192)])return;else{if(typeof _0x126599[_0x1214b3(0x146f)]!=='undefined'&&_0x126599[_0x1214b3(0x146f)])return _0x13b238?_0x3d5f12[_0x1214b3(0x15b)](_0x17c403['selectedItems'],_0x17c403[_0x1214b3(0x1fd6)],_0x17c403[_0x1214b3(0x1ecf)][_0x1214b3(0x172b)](_0x126599),_0x13b238):_0x3d5f12[_0x1214b3(0x15b)](_0x17c403[_0x1214b3(0x1fd6)],_0x17c403[_0x1214b3(0x1ecf)],_0x17c403['items']['indexOf'](_0x126599),_0x13b238);}},_0x3d5f12[_0x41a68d(0x15b)]=function(_0xda2aa8,_0x4bfbd4,_0x5c9590,_0x50b69){const _0x5103da=_0x41a68d;let _0x2e8fc0=[];if(_0x5c9590>=0x0)_0x2e8fc0[_0x5103da(0x1f47)](_0xda2aa8[_0x5c9590]),_0x4bfbd4['push'](_0xda2aa8[_0x5c9590]),_0xda2aa8[_0x5103da(0x1f7d)](_0x5c9590,0x1);else{for(let _0x585475=0x0;_0x585475<_0xda2aa8[_0x5103da(0x402)];_0x585475++){typeof _0xda2aa8[_0x585475][_0x5103da(0x146f)]!==_0x5103da(0x2274)&&_0xda2aa8[_0x585475][_0x5103da(0x146f)]&&_0x4bfbd4[_0x5103da(0x1f47)](_0xda2aa8[_0x585475]);}for(let _0x3436f6=_0xda2aa8['length']-0x1;_0x3436f6>=0x0;_0x3436f6--){_0xda2aa8[_0x3436f6][_0x5103da(0x146f)]&&_0xda2aa8['splice'](_0x3436f6,0x1);}_0x2e8fc0=_0x4bfbd4;}_0x3d5f12[_0x5103da(0xa08)][_0x5103da(0x201b)]&&_0x3d5f12[_0x5103da(0xa08)]['transferCallback'](_0x2e8fc0,_0x50b69);},_0x3d5f12['getLine']=function(_0x7f2eff,_0x506c17){const _0x44eef5=_0x41a68d;let _0x52e6c5='';if(_0x3f65c0()[_0x44eef5(0x1b36)](_0x506c17))return _0x52e6c5;if(_0x3f65c0()['isArray'](_0x506c17)){for(let _0x59c930=0x0;_0x59c930<_0x506c17[_0x44eef5(0x402)];_0x59c930++){_0x52e6c5+='\x20'+(_0x7f2eff[_0x506c17[_0x59c930]]?_0x7f2eff[_0x506c17[_0x59c930]]:'');}return _0x52e6c5;}else return _0x7f2eff[_0x506c17]?_0x7f2eff[_0x506c17]:'';};}],'templateUrl':_0x4065d0};}const _0xe97843=_0x28ef33;;_0x4673ce[_0x313a4d(0x11c2)]=[_0x313a4d(0x214b)];function _0x4673ce(_0x6b1c0b){const _0x379378=_0x313a4d;return{'restrict':'E','replace':!![],'scope':{'onReply':'&','ngModel':'=','ctrlMethods':'=','pickerPosition':'=','search':'=','recentEmojis':'=','placeholder':'='},'template':_0x379378(0x19ca),'link':function(_0x29ba2b,_0x1771aa){const _0x7378ef=_0x379378,_0x22f32c=_0x1771aa[_0x7378ef(0x1114)]({'pickerPosition':_0x29ba2b[_0x7378ef(0xbc3)],'search':_0x29ba2b[_0x7378ef(0x21da)],'recentEmojis':_0x29ba2b[_0x7378ef(0xb99)],'placeholder':_0x6b1c0b['instant'](_0x29ba2b[_0x7378ef(0x1a02)]||_0x7378ef(0x27ce)),'attributes':{'spellcheck':!![]},'events':{'keypress':function(_0x461b09,_0x5df703){const _0x10bd34=_0x7378ef;_0x29ba2b[_0x10bd34(0x213f)]=this[_0x10bd34(0x23c5)](),_0x29ba2b[_0x10bd34(0x18ca)]({'event':_0x5df703,'body':this[_0x10bd34(0x23c5)]()});},'emojibtn_click':function(){const _0x13cee8=_0x7378ef;_0x29ba2b[_0x13cee8(0x213f)]=this[_0x13cee8(0x23c5)]();}}});_0x29ba2b[_0x7378ef(0x213f)]&&_0x22f32c[0x0][_0x7378ef(0x1114)][_0x7378ef(0xa0d)](_0x29ba2b['ngModel']),_0x29ba2b['internalControl']=_0x29ba2b['ctrlMethods']||{},_0x29ba2b[_0x7378ef(0x299)][_0x7378ef(0xa0d)]=function(_0x1dfe7a){const _0x207a68=_0x7378ef;_0x22f32c[0x0][_0x207a68(0x1114)][_0x207a68(0xa0d)](_0x1dfe7a);},_0x29ba2b[_0x7378ef(0x299)]['getText']=function(){const _0xfcc048=_0x7378ef;return _0x22f32c[0x0][_0xfcc048(0x1114)][_0xfcc048(0x23c5)]();},_0x29ba2b[_0x7378ef(0x21e8)](_0x7378ef(0x213f),function(_0x5b182a){const _0x2b5d6e=_0x7378ef;!_0x5b182a&&_0x22f32c[0x0]['emojioneArea'][_0x2b5d6e(0xa0d)]('');});}};}const _0x4f18c7=_0x4673ce;;const _0x26bdf3=_0x4acfac['p']+_0x313a4d(0x1170);;function _0x53565d(){return{'restrict':'E','scope':{'ngModel':'='},'controller':['$scope',function(_0x3aef42){const _0x146805=a0_0x3bb9;_0x3aef42[_0x146805(0x22d7)]=[{'option':'Arial','value':_0x146805(0x2012)},{'option':_0x146805(0xda8),'value':_0x146805(0x1776)},{'option':_0x146805(0x454),'value':_0x146805(0x1cda)},{'option':_0x146805(0x1c7a),'value':_0x146805(0x261a)},{'option':'Courier\x20New','value':_0x146805(0xc46)},{'option':_0x146805(0xe3a),'value':_0x146805(0xe95)},{'option':_0x146805(0x26af),'value':_0x146805(0x2568)},{'option':_0x146805(0x1670),'value':'Tahoma,Geneva,sans-serif'},{'option':_0x146805(0x28dc),'value':_0x146805(0x1b1d)},{'option':_0x146805(0x721),'value':_0x146805(0x4fb)},{'option':_0x146805(0x28fb),'value':'Verdana,Geneva,sans-serif'}];}],'templateUrl':_0x26bdf3};}const _0xcb3466=_0x53565d;;function _0x19d7eb(){const _0x1c741f=_0x313a4d,_0x40e76c=this;_0x40e76c[_0x1c741f(0x1cf)]=[],_0x40e76c[_0x1c741f(0xc55)]=0x0,_0x40e76c['registerForm']=_0x30d2b5,_0x40e76c[_0x1c741f(0x98a)]=_0x360615,_0x40e76c[_0x1c741f(0x1398)]=_0x3ef85a,_0x40e76c[_0x1c741f(0x182c)]=_0x3620d8,_0x40e76c[_0x1c741f(0x4dc)]=_0x7e2d8a,_0x40e76c['totalSteps']=_0x28ecab,_0x40e76c['isFirstStep']=_0x420198,_0x40e76c[_0x1c741f(0x281)]=_0x38c96c,_0x40e76c[_0x1c741f(0x1305)]=_0x4eb693,_0x40e76c[_0x1c741f(0x9f5)]=_0x5cdce4,_0x40e76c[_0x1c741f(0x392)]=_0xd52a1d,_0x40e76c[_0x1c741f(0x984)]=_0x49b613;function _0x30d2b5(_0x4c909c){const _0x4fa282=_0x1c741f;_0x40e76c[_0x4fa282(0x1cf)][_0x4fa282(0x1f47)](_0x4c909c);}function _0x360615(){const _0x53dbd3=_0x1c741f;if(_0x420198())return;_0x40e76c[_0x53dbd3(0xc55)]--;}function _0x3ef85a(){const _0x12f8a0=_0x1c741f;if(_0x38c96c())return;_0x40e76c[_0x12f8a0(0xc55)]++;}function _0x3620d8(){const _0x308365=_0x1c741f;_0x40e76c[_0x308365(0xc55)]=0x0;}function _0x7e2d8a(){const _0x4b38d3=_0x1c741f;_0x40e76c[_0x4b38d3(0xc55)]=_0x28ecab()-0x1;}function _0x28ecab(){const _0x55b481=_0x1c741f;return _0x40e76c[_0x55b481(0x1cf)][_0x55b481(0x402)];}function _0x420198(){const _0x58fee2=_0x1c741f;return _0x40e76c[_0x58fee2(0xc55)]===0x0;}function _0x38c96c(){return _0x40e76c['selectedIndex']===_0x28ecab()-0x1;}function _0x4eb693(){const _0x1a02c8=_0x1c741f;return angular[_0x1a02c8(0x5ef)](_0x40e76c[_0x1a02c8(0x1cf)][_0x40e76c[_0x1a02c8(0xc55)]])&&_0x40e76c[_0x1a02c8(0x1cf)][_0x40e76c[_0x1a02c8(0xc55)]][_0x1a02c8(0x17d2)];}function _0x5cdce4(){const _0x2935d7=_0x1c741f;return _0x40e76c[_0x2935d7(0xc55)]>0x0&&angular['isDefined'](_0x40e76c[_0x2935d7(0x1cf)][_0x40e76c[_0x2935d7(0xc55)]-0x1])&&_0x40e76c[_0x2935d7(0x1cf)][_0x40e76c[_0x2935d7(0xc55)]-0x1]['$invalid'];}function _0xd52a1d(){const _0x5165a4=_0x1c741f;for(let _0x134cd9=0x0;_0x134cd9<_0x40e76c[_0x5165a4(0x1cf)]['length'];_0x134cd9++){if(_0x40e76c['forms'][_0x134cd9]['$invalid'])return!![];}return![];}function _0x49b613(){const _0x96fa6f=_0x1c741f;_0x40e76c[_0x96fa6f(0xc55)]=0x0;for(let _0xcf07b9=0x0;_0xcf07b9<_0x40e76c[_0x96fa6f(0x1cf)][_0x96fa6f(0x402)];_0xcf07b9++){_0x40e76c[_0x96fa6f(0x1cf)][_0xcf07b9][_0x96fa6f(0x1968)](),_0x40e76c['forms'][_0xcf07b9][_0x96fa6f(0x354)]();}}}function _0x5493f5(){return{'restrict':'E','scope':!![],'controller':'MsFormWizardController\x20as\x20msWizard','compile':function(_0x4b0d29){const _0xea7931=a0_0x3bb9;return _0x4b0d29[_0xea7931(0x14cf)](_0xea7931(0x1806)),function _0xed7dec(){};}};}function _0x2573c2(){const _0x50a9a8=_0x313a4d;return{'restrict':'A','require':[_0x50a9a8(0x247c),_0x50a9a8(0x27ca)],'compile':function(_0x4d4d98){const _0x1c93f=_0x50a9a8;return _0x4d4d98[_0x1c93f(0x14cf)](_0x1c93f(0x2289)),function _0x8c9b62(_0x3194d4,_0x473b6a,_0x57ccfa,_0x563254){const _0xcb31f7=_0x1c93f,_0x190cf0=_0x563254[0x0],_0x1a9cf2=_0x563254[0x1];_0x1a9cf2[_0xcb31f7(0x1bd)](_0x190cf0);};}};};const _0x1f46ae=_0x4acfac['p']+'src/js/modules/core/directives/ms-info-bar/ms-info-bar.html/ms-info-bar.html';;_0x535715[_0x313a4d(0x11c2)]=['$document'];function _0x535715(_0x23fe4f){return{'restrict':'E','scope':{'onClose':'&'},'transclude':!![],'templateUrl':_0x1f46ae,'link':function(_0x5a761a,_0x4f6314){const _0x59be72=a0_0x3bb9,_0x44ffef=_0x23fe4f['find'](_0x59be72(0x1f18)),_0x2e0220=_0x59be72(0x1f18);_0x44ffef[_0x59be72(0x14cf)](_0x2e0220);function _0x267a75(){const _0x181e38=_0x59be72;_0x44ffef['removeClass'](_0x2e0220),_0x4f6314[_0x181e38(0x2640)](),_0x5a761a[_0x181e38(0xa9d)]&&_0x5a761a[_0x181e38(0xa9d)](),_0x5a761a['$destroy']();}_0x5a761a['removeInfoBar']=_0x267a75;}};}const _0x58a159=_0x535715;;_0x42d98c[_0x313a4d(0x11c2)]=[_0x313a4d(0x1abe)],_0x1e5a09['$inject']=[_0x313a4d(0x910),_0x313a4d(0x1aa9),_0x313a4d(0x1f70),'$timeout'];function _0x1e5a09(_0x5656c2,_0x32d388,_0x1c87a7,_0x19a958){const _0x52d2dc=_0x313a4d,_0x1352e0=this,_0x40cab2={'columnCount':0x5,'respectItemOrder':![],'reLayoutDebounce':0x190,'responsive':{'md':0x3,'sm':0x2,'xs':0x1}};let _0x5712be=!![];_0x1352e0[_0x52d2dc(0xa08)]=null,_0x1352e0[_0x52d2dc(0x1784)]=[],_0x1352e0[_0x52d2dc(0x6e7)]='',_0x1352e0[_0x52d2dc(0x146a)]='',_0x1352e0[_0x52d2dc(0x1fd6)]=[],_0x1352e0['reLayout']=_0x128067,_0x1352e0[_0x52d2dc(0x2764)]=_0x577013,_0x1352e0[_0x52d2dc(0x1d9a)]=_0x4b02e8;function _0x577013(){const _0x20e88b=_0x52d2dc;_0x1352e0['options']=!_0x1352e0[_0x20e88b(0xa08)]?_0x40cab2:angular[_0x20e88b(0xd9b)](_0x40cab2,_0x1352e0[_0x20e88b(0xa08)]),_0x3537e7();}_0x5656c2[_0x52d2dc(0x16ad)](_0x52d2dc(0xd55),function(){_0x128067();});function _0x4b02e8(_0x4f3b0a,_0x2f4a0e){const _0x512417=_0x52d2dc;if(typeof imagesLoaded!==_0x512417(0x2274)){const _0x45d0aa=_0x32d388[_0x512417(0x16ea)](_0x4f3b0a);_0x45d0aa['on']('done',function(){_0x2f4a0e();});}else _0x2f4a0e();}function _0x3537e7(){const _0x445142=_0x52d2dc;_0x5656c2[_0x445142(0x21e8)](function(){const _0x3ad7ba=_0x445142;return _0x1352e0[_0x3ad7ba(0x1784)][_0x3ad7ba(0xdcf)]();},function(_0x287abd,_0x1e599c){_0x287abd!==_0x1e599c&&_0x128067();});}function _0x128067(){const _0x278e78=_0x52d2dc;_0x5712be&&_0x19a958[_0x278e78(0x6c3)](_0x5712be);_0x5712be=_0x19a958(function(){const _0x112f5b=_0x278e78;_0x40629b(),_0x5656c2[_0x112f5b(0x25a4)](_0x112f5b(0x1a72));},_0x1352e0['options']['reLayoutDebounce']);function _0x40629b(){const _0x505bad=_0x278e78;_0x1352e0[_0x505bad(0x6e7)]=_0x1352e0['container'][0x0][_0x505bad(0x697)](),_0x19d0d6(),_0x5656c2[_0x505bad(0x25a4)](_0x505bad(0x1074)),_0x1352e0[_0x505bad(0x1fd6)]=_0x1352e0[_0x505bad(0x1784)][_0x505bad(0xc84)]('ms-masonry-item');const _0x3afa56=Array[_0x505bad(0x1c3c)](null,new Array(_0x1352e0[_0x505bad(0x1987)]))[_0x505bad(0x205)](function(){return 0x0;});for(let _0x429957=0x0;_0x429957<_0x1352e0['items'][_0x505bad(0x402)];_0x429957++){let _0x3c7cdc=_0x1352e0[_0x505bad(0x1fd6)][_0x429957],_0x3ee3af,_0xb2bd85;_0x3c7cdc=angular[_0x505bad(0x1853)](_0x3c7cdc);_0x3c7cdc[_0x505bad(0x1886)]()&&_0x3c7cdc[_0x505bad(0x1886)]()[_0x505bad(0x25a4)](_0x505bad(0x237e));_0x3c7cdc[_0x505bad(0xdba)]({'width':_0x1352e0[_0x505bad(0x146a)]});_0x1352e0['options'][_0x505bad(0x17bf)]?(_0x3ee3af=_0x429957%_0x1352e0[_0x505bad(0x1987)],_0xb2bd85=_0x3afa56[_0x3ee3af]):(_0xb2bd85=Math[_0x505bad(0x28ad)]['apply'](Math,_0x3afa56),_0x3ee3af=_0x3afa56[_0x505bad(0x172b)](_0xb2bd85));_0x3afa56[_0x3ee3af]=_0xb2bd85+_0x3c7cdc[0x0][_0x505bad(0x697)]()['height'];const _0x57fb86=Math['round'](_0x3ee3af*_0x1352e0['columnWidth']),_0xa809e1=_0xb2bd85;_0x3c7cdc[_0x505bad(0xdba)]({'transform':_0x505bad(0x2039)+_0x57fb86+_0x505bad(0x2262)+_0xa809e1+'px,0px)'}),_0x3c7cdc[_0x505bad(0x14cf)](_0x505bad(0x179a)),_0x3c7cdc[_0x505bad(0x1886)]()&&_0x3c7cdc['scope']()['$broadcast'](_0x505bad(0xd8f));}}}function _0x19d0d6(){const _0x22f4dc=_0x52d2dc;_0x1352e0['columnCount']=_0x1352e0['options'][_0x22f4dc(0x1987)];if(_0x1c87a7(_0x22f4dc(0x284d)))_0x1352e0[_0x22f4dc(0x1987)]=_0x1352e0[_0x22f4dc(0xa08)]['columnCount'];else{if(_0x1c87a7('md'))_0x1352e0[_0x22f4dc(0x1987)]=_0x1352e0[_0x22f4dc(0x1987)]>_0x1352e0[_0x22f4dc(0xa08)]['responsive']['md']?_0x1352e0[_0x22f4dc(0xa08)][_0x22f4dc(0x18bc)]['md']:_0x1352e0['columnCount'];else _0x1c87a7('sm')?_0x1352e0['columnCount']=_0x1352e0[_0x22f4dc(0x1987)]>_0x1352e0[_0x22f4dc(0xa08)][_0x22f4dc(0x18bc)]['sm']?_0x1352e0[_0x22f4dc(0xa08)]['responsive']['sm']:_0x1352e0[_0x22f4dc(0x1987)]:_0x1352e0['columnCount']=_0x1352e0[_0x22f4dc(0xa08)]['responsive']['xs'];}_0x1352e0[_0x22f4dc(0x146a)]=_0x1352e0[_0x22f4dc(0x6e7)]['width']/_0x1352e0['columnCount'];}}function _0x42d98c(_0x4bffe3){const _0x4aa5a7=_0x313a4d;return{'restrict':_0x4aa5a7(0x22d1),'controller':_0x4aa5a7(0x1c84),'compile':_0x57298b};function _0x57298b(_0x5ba2e5,_0x3990bb){return{'pre':function _0x3c3415(_0x1cd523,_0x2ebd3b,_0x506abb,_0x2ea61b){const _0x20f9a8=a0_0x3bb9;_0x2ea61b[_0x20f9a8(0xa08)]=angular[_0x20f9a8(0xb08)](_0x3990bb[_0x20f9a8(0xa08)]||'{}'),_0x2ea61b[_0x20f9a8(0x1784)]=_0x5ba2e5;},'post':function _0x5cfbab(_0x3a42bd,_0x16cf67,_0x3315b8,_0x348460){_0x4bffe3(function(){const _0x44210e=a0_0x3bb9;_0x348460[_0x44210e(0x2764)]();});}};}}function _0x411ffd(){const _0x47c5ce=_0x313a4d;return{'restrict':'AEC','require':_0x47c5ce(0x8c6),'priority':0x1,'link':_0x144faa};function _0x144faa(_0x280e98,_0x19b0e2,_0x485450,_0x36e9a3){const _0x46985f=_0x47c5ce;_0x36e9a3[_0x46985f(0x1d9a)](_0x19b0e2,function(){const _0x43a56c=_0x46985f;_0x36e9a3[_0x43a56c(0x1ee3)]();}),_0x280e98[_0x46985f(0x16ad)](_0x46985f(0xd8f),function(){const _0x254c54=_0x46985f;_0x280e98[_0x254c54(0x21e8)](function(){const _0x2d3235=_0x254c54;return _0x19b0e2[_0x2d3235(0x92b)]();},function(_0x386c35,_0x3fd6bb){_0x386c35!==_0x3fd6bb&&_0x36e9a3['reLayout']();});}),_0x19b0e2['on'](_0x46985f(0x116f),function(){_0x36e9a3['reLayout']();});}};const _0xd2f539=_0x4acfac['p']+_0x313a4d(0x24ff);;_0x12358a[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1eb6),_0x313a4d(0x1573),_0x313a4d(0x1373)];function _0x12358a(_0x11deda,_0x199455,_0x69e6f9,_0x2976c5){const _0x1c64dc=_0x313a4d,_0x45d426=this;_0x45d426[_0x1c64dc(0x64c)]=_0x199455,_0x45d426[_0x1c64dc(0x192c)]=![],_0x45d426['selectedHues']=![],_0x11deda['$selectedColor']={},_0x45d426['activateHueSelection']=_0x4541a7,_0x45d426[_0x1c64dc(0x13b2)]=_0x3466be,_0x45d426[_0x1c64dc(0x20c4)]=_0x370166,_0x11deda[_0x1c64dc(0x21e8)](_0x1c64dc(0x213f),_0x157a31);function _0x4541a7(_0xedc107,_0x742f2e){const _0x51af18=_0x1c64dc;_0x45d426[_0x51af18(0x192c)]=_0xedc107,_0x45d426[_0x51af18(0x16c1)]=_0x742f2e;}function _0x3466be(_0x25c105,_0x3863a1){const _0x2f672f=_0x1c64dc;_0x4bb956(_0x25c105,_0x3863a1),_0x3a1960(),_0x69e6f9[_0x2f672f(0x2458)]();}function _0x370166(){const _0x82bb44=_0x1c64dc;_0x45d426[_0x82bb44(0x15cc)]={'palette':'','hue':'','class':''},_0x4541a7(![],![]),_0x3a1960();}function _0x157a31(){const _0x105d3e=_0x1c64dc;if(!_0x45d426[_0x105d3e(0x1cb8)][_0x105d3e(0x1751)]||_0x45d426[_0x105d3e(0x1cb8)]['$viewValue']===''){_0x370166();return;}let _0x339a7f,_0x3dd207;if(_0x45d426[_0x105d3e(0x17a4)]===_0x105d3e(0x6f6)){const _0x5f3316=_0x45d426[_0x105d3e(0x1cb8)]['$viewValue'][_0x105d3e(0x10c8)]('-');_0x5f3316[_0x105d3e(0x402)]>=0x5?(_0x339a7f=_0x5f3316[0x1]+'-'+_0x5f3316[0x2],_0x3dd207=_0x5f3316[0x3]):(_0x339a7f=_0x5f3316[0x1],_0x3dd207=_0x5f3316[0x2]);}else _0x45d426['msModelType']===_0x105d3e(0x9a5)&&(_0x339a7f=_0x45d426[_0x105d3e(0x1cb8)][_0x105d3e(0x1751)][_0x105d3e(0x15bc)],_0x3dd207=_0x45d426[_0x105d3e(0x1cb8)][_0x105d3e(0x1751)][_0x105d3e(0x1314)]||0x1f4);_0x4bb956(_0x339a7f,_0x3dd207);}function _0x4bb956(_0xd39659,_0x2f722e){const _0x52a616=_0x1c64dc;_0x45d426[_0x52a616(0x15cc)]={'palette':_0xd39659,'hue':_0x2f722e,'class':_0x52a616(0x1162)+_0xd39659+'-'+_0x2f722e+_0x52a616(0x12d9),'bgColorValue':_0x2976c5[_0x52a616(0x12d)](_0x45d426[_0x52a616(0x64c)][_0xd39659][_0x2f722e][_0x52a616(0x175d)]),'fgColorValue':_0x2976c5['rgba'](_0x45d426[_0x52a616(0x64c)][_0xd39659][_0x2f722e][_0x52a616(0xb45)])},_0x45d426[_0x52a616(0x17a4)]===_0x52a616(0x9a5)&&!angular[_0x52a616(0x26b4)](_0x45d426[_0x52a616(0x15cc)],_0x45d426[_0x52a616(0x1cb8)][_0x52a616(0x1751)])&&_0x3a1960(),_0x4541a7(_0xd39659,_0x45d426[_0x52a616(0x64c)][_0xd39659]),_0x11deda[_0x52a616(0x35a)]=_0x45d426[_0x52a616(0x15cc)];}function _0x3a1960(){const _0xef917=_0x1c64dc;if(_0x45d426[_0xef917(0x17a4)]===_0xef917(0x6f6))_0x45d426[_0xef917(0x1cb8)][_0xef917(0x2878)](_0x45d426['selectedColor'][_0xef917(0x6f6)]);else _0x45d426[_0xef917(0x17a4)]===_0xef917(0x9a5)&&_0x45d426['modelCtrl'][_0xef917(0x2878)](_0x45d426[_0xef917(0x15cc)]);}}function _0x9d5c31(){const _0x18dedc=_0x313a4d;return{'require':[_0x18dedc(0x26e),_0x18dedc(0x213f)],'restrict':'E','scope':{'ngModel':'=','msModelType':'@?'},'controller':_0x18dedc(0x21fd),'transclude':!![],'templateUrl':_0xd2f539,'link':function(_0x2ab513,_0x99f5e0,_0x226a0c,_0x2d3aaf,_0x5d2887){const _0x40dd6a=_0x18dedc,_0x8fe5ce=_0x2d3aaf[0x0];_0x8fe5ce['modelCtrl']=_0x2d3aaf[0x1],_0x8fe5ce[_0x40dd6a(0x17a4)]=_0x2ab513[_0x40dd6a(0x17a4)]||_0x40dd6a(0x6f6),_0x5d2887(_0x2ab513,function(_0x318d3b){const _0x5ddb02=_0x40dd6a;_0x318d3b=_0x318d3b[_0x5ddb02(0x1dd6)](function(_0x115bee,_0x20e748){const _0x15c4d4=_0x5ddb02;return _0x20e748[_0x15c4d4(0xb6b)]===0x1?!![]:![];}),_0x318d3b['length']&&_0x99f5e0[_0x5ddb02(0xc84)](_0x5ddb02(0x634))[_0x5ddb02(0x22d)](_0x318d3b);});}};};_0x524f66[_0x313a4d(0x11c2)]=[_0x313a4d(0x1fc2),'$q',_0x313a4d(0x1240),_0x313a4d(0x1862)],_0x42ff92[_0x313a4d(0x11c2)]=[_0x313a4d(0x1fc2),_0x313a4d(0xe53),_0x313a4d(0x220f)],_0x534b31[_0x313a4d(0x11c2)]=[_0x313a4d(0x4d8),'$rootScope',_0x313a4d(0x220f)];function _0x1fdf01(){let _0x37b414={};const _0x34aec1={'setFoldable':_0x5d8b12,'isNavFoldedOpen':_0x399b9e,'toggleFold':_0xceb86e,'openFolded':_0x2d93aa,'closeFolded':_0x1a1add};return _0x34aec1;function _0x5d8b12(_0x19a7ef,_0x3e0081){_0x37b414={'scope':_0x19a7ef,'element':_0x3e0081};}function _0x399b9e(){const _0x1aab57=a0_0x3bb9;return _0x37b414[_0x1aab57(0x1886)][_0x1aab57(0x233a)]();}function _0xceb86e(){const _0x251456=a0_0x3bb9;_0x37b414['scope'][_0x251456(0x1aea)]();}function _0x2d93aa(){const _0x31224a=a0_0x3bb9;_0x37b414[_0x31224a(0x1886)][_0x31224a(0x1f5a)]();}function _0x1a1add(){const _0x11bf90=a0_0x3bb9;_0x37b414[_0x11bf90(0x1886)]['closeFolded']();}}function _0x534b31(_0x791908,_0x2244ae,_0x43addd){return{'restrict':'A','link':function(_0x441317,_0x2c7eab,_0x499662){const _0x2e4a2f=a0_0x3bb9;let _0x4e02f3=_0x499662[_0x2e4a2f(0x1cb7)]===_0x2e4a2f(0x1185),_0x437b71=![];const _0x5c7d0b=angular['element'](_0x791908[0x0][_0x2e4a2f(0x2586)]),_0x1cf270=angular[_0x2e4a2f(0x1853)](_0x2e4a2f(0x998)),_0xe68a1d=angular['element'](_0x2e4a2f(0x3bf)),_0x2ef94a=_0x2c7eab[_0x2e4a2f(0x3fd)]();_0x43addd['setFoldable'](_0x441317,_0x2c7eab,_0x4e02f3);_0x4e02f3?_0x20bcde():_0x254f0c();function _0x3834ca(){return _0x437b71;}function _0x3e1e43(){_0x4e02f3=!_0x4e02f3,_0x4e02f3?_0x20bcde():_0x254f0c();}function _0x20bcde(){const _0x25d73c=_0x2e4a2f;_0x5c7d0b[_0x25d73c(0x14cf)](_0x25d73c(0x2426)),_0x2244ae[_0x25d73c(0x25a4)](_0x25d73c(0xb6c)),_0x2c7eab[_0x25d73c(0xa49)](0x0),_0x2ef94a['append'](_0x1cf270),_0x1cf270['on'](_0x25d73c(0x1d97),function(_0x457f2e){_0xbd56b2(_0x457f2e),_0x437b71=!![];});}function _0xbd56b2(_0x44b770){const _0x52a6a8=_0x2e4a2f;angular['isDefined'](_0x44b770)&&_0x44b770[_0x52a6a8(0x115c)](),_0x5c7d0b['addClass']('ms-nav-folded-open'),_0x2244ae[_0x52a6a8(0x25a4)]('msNav::expandMatchingToggles'),_0x2ef94a['find'](_0x1cf270)['remove'](),_0x2ef94a[_0x52a6a8(0x3fd)]()[_0x52a6a8(0x1034)](_0xe68a1d),_0xe68a1d['on'](_0x52a6a8(0x1d97),function(_0x4cf897){_0x4e6840(_0x4cf897),_0x437b71=![];});}function _0x4e6840(_0x46322d){const _0x10eb26=_0x2e4a2f;angular[_0x10eb26(0x5ef)](_0x46322d)&&_0x46322d[_0x10eb26(0x115c)](),_0x2244ae[_0x10eb26(0x25a4)]('msNav::forceCollapse'),_0x2c7eab[_0x10eb26(0xa49)](0x0),_0x5c7d0b[_0x10eb26(0x1973)](_0x10eb26(0x452)),_0x2ef94a[_0x10eb26(0x3fd)]()[_0x10eb26(0xc84)](_0xe68a1d)[_0x10eb26(0x2640)](),_0x2ef94a['append'](_0x1cf270),_0x1cf270['on'](_0x10eb26(0x1d97),function(_0x10933f){_0xbd56b2(_0x10933f),_0x437b71=!![];});}function _0x254f0c(){const _0x15c23d=_0x2e4a2f;_0x5c7d0b[_0x15c23d(0x1973)]('ms-nav-folded\x20ms-nav-folded-open'),_0x2244ae[_0x15c23d(0x25a4)](_0x15c23d(0x233)),_0x2c7eab[_0x15c23d(0x151d)](_0x15c23d(0xf97));}_0x441317['toggleFold']=_0x3e1e43,_0x441317['openFolded']=_0xbd56b2,_0x441317[_0x2e4a2f(0x219d)]=_0x4e6840,_0x441317[_0x2e4a2f(0x233a)]=_0x3834ca,_0x441317[_0x2e4a2f(0x16ad)](_0x2e4a2f(0x116f),function(){const _0x939697=_0x2e4a2f;_0x1cf270[_0x939697(0x151d)](_0x939697(0x1d97)),_0xe68a1d[_0x939697(0x151d)](_0x939697(0x1d97)),_0x2c7eab[_0x939697(0x151d)]('mouseenter\x20mouseleave');});}};}function _0x39f75b(){const _0x27866c=_0x313a4d,_0x31c262=this;let _0x6ccc5f=![];const _0x230354=[];let _0x52511e=[];_0x31c262['isDisabled']=_0x440c5e,_0x31c262[_0x27866c(0x168e)]=_0x3804af,_0x31c262[_0x27866c(0x1cdf)]=_0x23956a,_0x31c262[_0x27866c(0x82b)]=_0x5f3549,_0x31c262['getLockedItems']=_0x5a3b69,_0x31c262[_0x27866c(0x271a)]=_0x5ed1e9,_0x31c262[_0x27866c(0x1d7)]=_0x3e1c10;function _0x440c5e(){return _0x6ccc5f;}function _0x23956a(){_0x6ccc5f=!![];}function _0x3804af(){_0x6ccc5f=![];}function _0x5f3549(_0x557056,_0x15186e){_0x230354['push']({'element':_0x557056,'scope':_0x15186e});}function _0x5a3b69(){return _0x52511e;}function _0x5ed1e9(_0x1aa3e3,_0x4a1f1f){_0x52511e['push']({'element':_0x1aa3e3,'scope':_0x4a1f1f});}function _0x3e1c10(){_0x52511e=[];}}function _0x42ff92(_0x223e32,_0x3640a2,_0x3db420){return{'restrict':'E','scope':{},'controller':'MsNavController','compile':function(_0x284569){const _0x31730c=a0_0x3bb9;return _0x284569[_0x31730c(0x14cf)](_0x31730c(0x2246)),function _0x4fce6b(_0x4410ee){const _0x4bb1fc=_0x31730c;_0x223e32[_0x4bb1fc(0x25a4)](_0x4bb1fc(0x233));const _0x4c27bd=_0x223e32[_0x4bb1fc(0x16ad)](_0x4bb1fc(0x1dfb),function(){const _0x20f12b=_0x4bb1fc;_0x223e32[_0x20f12b(0x25a4)](_0x20f12b(0x233)),_0x3640a2[_0x20f12b(0x19d0)](_0x20f12b(0x145c))[_0x20f12b(0x146b)](function(_0x546c1b){const _0x2e9bec=_0x20f12b;_0x546c1b[_0x2e9bec(0xa7c)](),_0x3db420[_0x2e9bec(0x233a)]()&&_0x3db420[_0x2e9bec(0x219d)]();});});_0x4410ee['$on'](_0x4bb1fc(0x116f),function(){_0x4c27bd();});};}};}function _0x4818ed(){return{'restrict':'A','compile':function(_0x3d1ca5){const _0x27c835=a0_0x3bb9;return _0x3d1ca5[_0x27c835(0x14cf)](_0x27c835(0x25d5)),function _0x2cfed1(){};}};}function _0x448133(){return{'restrict':'AE','compile':function(_0x5de68f){const _0x1faae0=a0_0x3bb9;return _0x5de68f[_0x1faae0(0x14cf)](_0x1faae0(0x576)),function _0x538e40(){};}};}function _0x524f66(_0x3de6f8,_0x51fd7d,_0x4cab1a,_0x226f34){const _0x6fa3b8=_0x313a4d;return{'restrict':'A','require':_0x6fa3b8(0x20a2),'scope':!![],'compile':function(_0xb0258f,_0x24621d){const _0x4f63d5=_0x6fa3b8;return _0xb0258f['addClass'](_0x4f63d5(0x15af)),angular[_0x4f63d5(0x1619)](_0x24621d[_0x4f63d5(0x1822)])&&(_0x24621d[_0x4f63d5(0x1822)]=!![]),_0xb0258f[_0x4f63d5(0x1861)](_0x4f63d5(0x1822),_0x24621d[_0x4f63d5(0x1822)]),function _0x17191d(_0x459090,_0x164d18,_0x1e06a6,_0x34c59b){const _0x8e7e14=_0x4f63d5,_0x160919={'expanded':_0x8e7e14(0x257f),'expandAnimation':_0x8e7e14(0x2166),'collapseAnimation':_0x8e7e14(0x186e)},_0x4e7b03=_0x164d18[_0x8e7e14(0xc84)]('a'),_0x523064=[],_0x398fb2=/\(.*\)/g;angular[_0x8e7e14(0x1df5)](_0x4e7b03,function(_0x4f786f){const _0x29bda6=_0x8e7e14;let _0x5bc4ac=angular[_0x29bda6(0x1853)](_0x4f786f)[_0x29bda6(0x1861)](_0x29bda6(0x1af5));if(angular[_0x29bda6(0x1619)](_0x5bc4ac))return;_0x5bc4ac=_0x5bc4ac['replace'](_0x398fb2,''),_0x523064[_0x29bda6(0x1f47)](_0x5bc4ac);}),_0x34c59b[_0x8e7e14(0x82b)](_0x164d18,_0x459090),_0x164d18['children'](_0x8e7e14(0xb4a))['on']('click',_0x270bf1);function _0x270bf1(){const _0x23b0bd=_0x8e7e14;if(_0x34c59b[_0x23b0bd(0x17ae)]())return;_0x34c59b[_0x23b0bd(0x1cdf)](),_0x491701()?(_0x34c59b[_0x23b0bd(0x1d7)](),_0x459090[_0x23b0bd(0x26c1)](_0x23b0bd(0x225d)),_0x3de6f8[_0x23b0bd(0x25a4)](_0x23b0bd(0x21ee)),_0x2ea2aa()[_0x23b0bd(0x146b)](function(){_0x34c59b['enable']();})):_0x459090[_0x23b0bd(0x25a4)](_0x23b0bd(0xb6c));}_0x459090[_0x8e7e14(0x16ad)](_0x8e7e14(0x116f),function(){const _0x164ff8=_0x8e7e14;_0x164d18[_0x164ff8(0x20d0)]('.ms-nav-button')[_0x164ff8(0x151d)](_0x164ff8(0x1fa5));}),_0x459090[_0x8e7e14(0x16ad)](_0x8e7e14(0x21ee),function(){const _0x20e900=_0x8e7e14,_0x55583b=_0x34c59b[_0x20e900(0x13f4)]();let _0x2f3354=![];angular['forEach'](_0x55583b,function(_0x34b18a){const _0x46e303=_0x20e900;angular[_0x46e303(0x26b4)](_0x34b18a[_0x46e303(0x1886)],_0x459090)&&(_0x2f3354=!![]);});if(_0x2f3354)return;_0x32a8b9()['then'](function(){_0x34c59b['enable']();});}),_0x459090[_0x8e7e14(0x16ad)](_0x8e7e14(0xb6c),function(){_0x32a8b9()['then'](function(){const _0x30460e=a0_0x3bb9;_0x34c59b[_0x30460e(0x168e)]();});}),_0x459090['$on'](_0x8e7e14(0x233),function(){const _0x166d61=_0x8e7e14,_0x55d72f=_0x226f34[_0x166d61(0x2d7)]['name'];let _0x5471e1=![];angular[_0x166d61(0x1df5)](_0x523064,function(_0xf057fa){_0x55d72f===_0xf057fa&&(_0x5471e1=!![]);}),_0x5471e1?_0x2ea2aa():_0x32a8b9();}),_0x459090[_0x8e7e14(0x16ad)]('msNav::pushToLockedList',function(){const _0x244783=_0x8e7e14;_0x34c59b[_0x244783(0x271a)](_0x164d18,_0x459090);});function _0x491701(){const _0x5e2f7a=_0x8e7e14;return _0x164d18[_0x5e2f7a(0x1861)]('collapsed')===_0x5e2f7a(0x1185);}function _0x11d214(){return!_0x491701();}function _0x2ea2aa(){const _0x16399f=_0x8e7e14,_0x46e031=_0x51fd7d[_0x16399f(0xce3)]();if(_0x11d214())return _0x46e031['reject']({'error':!![]}),_0x46e031[_0x16399f(0xb9c)];_0x164d18['attr']('collapsed',![]);const _0x4f0a61=angular[_0x16399f(0x1853)](_0x164d18[_0x16399f(0xc84)](_0x16399f(0xc59))[0x0]);_0x4f0a61[_0x16399f(0xdba)]({'position':_0x16399f(0x153),'visibility':_0x16399f(0x28fc),'display':_0x16399f(0x152a),'height':_0x16399f(0x1b08)});const _0x4e32e6=_0x4f0a61[0x0][_0x16399f(0x1a37)];return _0x4f0a61[_0x16399f(0xdba)]({'position':'','visibility':'','display':'','height':''}),_0x459090['$evalAsync'](function(){const _0x4d344a=_0x16399f;_0x4cab1a[_0x4d344a(0x233b)](_0x4f0a61,{'display':'block','height':_0x4d344a(0x439)},{'height':_0x4e32e6+'px'},_0x160919[_0x4d344a(0x4a9)])['then'](function(){const _0x5c5c3b=_0x4d344a;_0x4f0a61['addClass'](_0x160919[_0x5c5c3b(0x257f)]),_0x4f0a61[_0x5c5c3b(0xdba)]({'height':''}),_0x46e031[_0x5c5c3b(0x2922)]({'success':!![]});});}),_0x46e031[_0x16399f(0xb9c)];}function _0x32a8b9(){const _0x2c1160=_0x8e7e14,_0x46d79c=_0x51fd7d[_0x2c1160(0xce3)]();if(_0x491701())return _0x46d79c['reject']({'error':!![]}),_0x46d79c[_0x2c1160(0xb9c)];_0x164d18[_0x2c1160(0x1861)](_0x2c1160(0x1822),!![]);const _0x5267c1=angular[_0x2c1160(0x1853)](_0x164d18['find'](_0x2c1160(0xc59))[0x0]),_0x2380c6=_0x5267c1[0x0][_0x2c1160(0x1a37)];return _0x459090[_0x2c1160(0x239f)](function(){const _0x2d0526=_0x2c1160;_0x4cab1a['animate'](_0x5267c1,{'height':_0x2380c6+'px'},{'height':_0x2d0526(0x439)},_0x160919[_0x2d0526(0x170)])['then'](function(){const _0x1f0a1d=_0x2d0526;_0x5267c1[_0x1f0a1d(0x1973)](_0x160919['expanded']),_0x5267c1[_0x1f0a1d(0xdba)]({'display':'','height':''}),_0x46d79c[_0x1f0a1d(0x2922)]({'success':!![]});});}),_0x46d79c[_0x2c1160(0xb9c)];}};}};};const _0xda6584=_0x4acfac['p']+'src/js/modules/core/directives/ms-navigation/templates/horizontal.html/horizontal.html';;const _0x135b49=_0x4acfac['p']+_0x313a4d(0x270d);;_0x544ef0[_0x313a4d(0x11c2)]=[_0x313a4d(0x1f70)],_0x28f06f['$inject']=[_0x313a4d(0x910),_0x313a4d(0x961),'$rootScope',_0x313a4d(0x1862),_0x313a4d(0x1f9a)],_0x2d14b9[_0x313a4d(0x11c2)]=['msNavigationService'],_0x3bcac9['$inject']=[_0x313a4d(0x910),_0x313a4d(0x961),_0x313a4d(0x1fc2),_0x313a4d(0x1240),'$state',_0x313a4d(0x1f9a)],_0x463732[_0x313a4d(0x11c2)]=['$rootScope','$timeout',_0x313a4d(0x15fe),'msNavigationService'],_0x5996f8[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1f9a)];function _0x1f77ff(){const _0x4fef10=_0x313a4d,_0x429132=angular['injector'](['ng'])[_0x4fef10(0x16b4)](_0x4fef10(0x2032));let _0x1854a2=[];const _0x5566eb=this;_0x5566eb[_0x4fef10(0x150e)]=_0x474e8c,_0x5566eb['deleteItem']=_0x34e832,_0x5566eb[_0x4fef10(0x1206)]=_0x36f569;function _0x474e8c(_0xba119e,_0xafdbe4){const _0x18bd04=_0x4fef10;if(!angular[_0x18bd04(0x54e)](_0xba119e)){_0x429132['error']('path\x20must\x20be\x20a\x20string\x20(eg.\x20`dashboard.project`)');return;}const _0x103127=_0xba119e[_0x18bd04(0x10c8)]('.'),_0x3c0bfb=_0x103127[_0x103127['length']-0x1],_0x931be2=_0x292d2c(_0x103127);let _0x180bdc=![];for(let _0x58bed0=0x0;_0x58bed0<_0x931be2[_0x18bd04(0x402)];_0x58bed0++){if(_0x931be2[_0x58bed0][_0x18bd04(0x208c)]===_0x3c0bfb){_0x180bdc=_0x931be2[_0x58bed0];break;}}_0x180bdc?(angular['extend'](_0x180bdc,_0xafdbe4),_0x180bdc['uisref']=_0x8630dd(_0x180bdc)):(_0xafdbe4[_0x18bd04(0x20d0)]=[],(angular[_0x18bd04(0x1619)](_0xafdbe4[_0x18bd04(0x1ac2)])||!angular[_0x18bd04(0x77d)](_0xafdbe4[_0x18bd04(0x1ac2)]))&&(_0xafdbe4['weight']=0x1),_0xafdbe4[_0x18bd04(0x208c)]=_0x3c0bfb,_0xafdbe4[_0x18bd04(0x26d3)]=_0xba119e,_0xafdbe4['uisref']=_0x8630dd(_0xafdbe4),_0x931be2[_0x18bd04(0x1f47)](_0xafdbe4));}function _0x34e832(_0x24281e){const _0x2000c4=_0x4fef10;if(!angular['isString'](_0x24281e)){_0x429132[_0x2000c4(0x1980)](_0x2000c4(0x1672));return;}let _0x4c8015=_0x1854a2;const _0xb22e4c=_0x24281e[_0x2000c4(0x10c8)]('.');for(let _0x2626ee=0x0;_0x2626ee<_0xb22e4c[_0x2000c4(0x402)];_0x2626ee++){const _0x19b205=_0xb22e4c[_0x2626ee];for(let _0x8cc005=0x0;_0x8cc005<_0x4c8015[_0x2000c4(0x402)];_0x8cc005++){if(_0x4c8015[_0x8cc005][_0x2000c4(0x208c)]===_0x19b205){if(_0x4c8015[_0x8cc005][_0x2000c4(0x26d3)]===_0x24281e)return _0x4c8015[_0x2000c4(0x1f7d)](_0x8cc005,0x1),!![];_0x4c8015=_0x4c8015[_0x8cc005]['children'];break;}}}return![];}function _0x36f569(_0x23aa0e){const _0x281461=_0x4fef10;!_0x23aa0e&&(_0x23aa0e=_0x1854a2,_0x23aa0e[_0x281461(0x28fa)](_0x2d9775));for(let _0x318494=0x0;_0x318494<_0x23aa0e[_0x281461(0x402)];_0x318494++){const _0x586907=_0x23aa0e[_0x318494][_0x281461(0x20d0)];_0x586907[_0x281461(0x402)]>0x1&&_0x586907[_0x281461(0x28fa)](_0x2d9775),_0x586907[_0x281461(0x402)]>0x0&&_0x36f569(_0x586907);}}function _0x292d2c(_0x4caaed){const _0x48c780=_0x4fef10;let _0x6d9b55=_0x1854a2;if(_0x4caaed[_0x48c780(0x402)]===0x1)return _0x6d9b55;_0x4caaed[_0x48c780(0x18c1)]();for(let _0x36767c=0x0;_0x36767c<_0x4caaed[_0x48c780(0x402)];_0x36767c++){const _0x2a0ed7=_0x4caaed[_0x36767c];let _0x10421a=!![];for(let _0x3d207f=0x0;_0x3d207f<_0x6d9b55[_0x48c780(0x402)];_0x3d207f++){if(_0x6d9b55[_0x3d207f][_0x48c780(0x208c)]===_0x2a0ed7){_0x6d9b55=_0x6d9b55[_0x3d207f][_0x48c780(0x20d0)],_0x10421a=![];break;}}if(_0x10421a){const _0x316916={'_id':_0x2a0ed7,'_path':_0x4caaed['join']('.'),'title':_0x2a0ed7,'weight':0x1,'children':[]};_0x6d9b55[_0x48c780(0x1f47)](_0x316916),_0x6d9b55=_0x316916['children'];}}return _0x6d9b55;}function _0x2d9775(_0x2914a1,_0x15510c){const _0x1ac24d=_0x4fef10;return parseInt(_0x2914a1[_0x1ac24d(0x1ac2)])-parseInt(_0x15510c[_0x1ac24d(0x1ac2)]);}function _0x8630dd(_0x1deff5){const _0x303f86=_0x4fef10;let _0x4504a4='';return angular[_0x303f86(0x5ef)](_0x1deff5[_0x303f86(0x13d6)])&&(_0x4504a4=_0x1deff5[_0x303f86(0x13d6)],angular[_0x303f86(0x5ef)](_0x1deff5['stateParams'])&&angular[_0x303f86(0x1a1e)](_0x1deff5[_0x303f86(0x1de9)])&&(_0x4504a4=_0x4504a4+'('+angular[_0x303f86(0x217d)](_0x1deff5['stateParams'])+')')),_0x4504a4;}this[_0x4fef10(0x980)]=function(){let _0x7a4d89=null,_0x1e8a71=null,_0x5eae90=null,_0xad0593=null;const _0x3853db={'saveItem':_0x474e8c,'deleteItem':_0x34e832,'sort':_0x36f569,'clearNavigation':_0x3d4e5c,'setActiveItem':_0x5f307b,'getActiveItem':_0x14d7d8,'getNavigation':_0x47ebb1,'getFlatNavigation':_0x100bb2,'setNavigationScope':_0x1893b6,'setFolded':_0x146c72,'getFolded':_0x5775df,'setFoldedOpen':_0x1c007b,'getFoldedOpen':_0x3bc6d8,'toggleFolded':_0x7f6fe8};return _0x3853db;function _0x3d4e5c(){_0x1854a2=[],_0x1e8a71&&(_0x1e8a71['vm']['navigation']=_0x1854a2);}function _0x5f307b(_0x9330fb,_0x5b2ad6){_0x7a4d89={'node':_0x9330fb,'scope':_0x5b2ad6};}function _0x14d7d8(){return _0x7a4d89;}function _0x47ebb1(_0xa86454){const _0x4b483a=a0_0x3bb9;if(_0xa86454){for(let _0x5edbe2=0x0;_0x5edbe2<_0x1854a2[_0x4b483a(0x402)];_0x5edbe2++){if(_0x1854a2[_0x5edbe2][_0x4b483a(0x208c)]===_0xa86454)return[_0x1854a2[_0x5edbe2]];}return null;}return _0x1854a2;}function _0x100bb2(_0x268843){const _0x32a106=_0x47ebb1(_0x268843);return _0x1b37b4(_0x32a106);}function _0x1893b6(_0x3e8eee){_0x1e8a71=_0x3e8eee;}function _0x146c72(_0x5a7616){_0x5eae90=_0x5a7616;}function _0x5775df(){return _0x5eae90;}function _0x1c007b(_0x522205){_0xad0593=_0x522205;}function _0x3bc6d8(){return _0xad0593;}function _0x7f6fe8(){const _0x4bc8cf=a0_0x3bb9;_0x1e8a71[_0x4bc8cf(0x25a3)]();}function _0x1b37b4(_0xbe0a6b){const _0x803c37=a0_0x3bb9;let _0x34dbef=[];for(let _0x490885=0x0;_0x490885<_0xbe0a6b['length'];_0x490885++){const _0x2fe126=angular[_0x803c37(0x235a)](_0xbe0a6b[_0x490885]);_0x2fe126[_0x803c37(0x20d0)]=[],_0x34dbef['push'](_0x2fe126),_0xbe0a6b[_0x490885][_0x803c37(0x20d0)][_0x803c37(0x402)]>0x0&&(_0x34dbef=_0x34dbef[_0x803c37(0x163c)](_0x1b37b4(_0xbe0a6b[_0x490885]['children'])));}return _0x34dbef;}};}function _0x5996f8(_0x5a67af,_0x2629ec){const _0x22c360=_0x313a4d,_0x449857=this;_0x5a67af[_0x22c360(0x258f)]?_0x449857[_0x22c360(0x145c)]=_0x2629ec['getNavigation'](_0x5a67af[_0x22c360(0x258f)]):_0x449857[_0x22c360(0x145c)]=_0x2629ec[_0x22c360(0x5c4)]();_0x449857[_0x22c360(0x8e7)]=_0xd7a3c5,_0xab18f6();function _0xab18f6(){const _0x2fa404=_0x22c360;_0x2629ec[_0x2fa404(0x28fa)]();}function _0xd7a3c5(){const _0x3172d5=_0x22c360;angular[_0x3172d5(0x1853)](_0x3172d5(0x2586))[_0x3172d5(0x1851)](_0x3172d5(0x1f58));}}function _0x463732(_0x3fe00b,_0x29a221,_0x5553c7,_0x5d89b6){return{'restrict':'E','scope':{'folded':'=','root':'@'},'controller':'MsNavigationController\x20as\x20vm','templateUrl':_0x135b49,'transclude':!![],'compile':function(_0x424673){const _0x1e1759=a0_0x3bb9;return _0x424673[_0x1e1759(0x14cf)]('ms-navigation'),function _0x4d24ae(_0x4e81b0,_0x43be86){const _0x378aba=_0x1e1759,_0x40f2e0=angular[_0x378aba(0x1853)](_0x378aba(0x2586)),_0x1d739d=angular[_0x378aba(0x1853)](_0x378aba(0x10c7)),_0x3a3162=angular['element']('
    '),_0x51f8c3=_0x5553c7(_0x378aba(0x145c));_0x5d89b6[_0x378aba(0x2c0)](_0x4e81b0),_0x1bbc12();function _0x1bbc12(){const _0x4ce63e=_0x378aba;_0x5d89b6['getFolded']()===null&&_0x5d89b6[_0x4ce63e(0x190d)](_0x4e81b0[_0x4ce63e(0x2834)]),_0x5d89b6[_0x4ce63e(0x3bc)]()&&(_0x29a221(function(){const _0x45d51e=_0x4ce63e;_0x3fe00b[_0x45d51e(0x25a4)](_0x45d51e(0x91b));}),_0x40f2e0[_0x4ce63e(0x14cf)]('ms-navigation-folded'),_0x3350c0());}_0x4e81b0['$watch'](function(){const _0x3d68ce=_0x378aba;return _0x51f8c3[_0x3d68ce(0x1d0)]();},function(_0x38bb30,_0x50c20f){const _0x1cfbc6=_0x378aba;if(angular[_0x1cfbc6(0x1619)](_0x38bb30)||angular[_0x1cfbc6(0x26b4)](_0x38bb30,_0x50c20f))return;const _0x479a07=_0x5d89b6['getFolded']();if(_0x479a07){if(_0x38bb30)_0x3fe00b[_0x1cfbc6(0x25a4)](_0x1cfbc6(0x91b));else{const _0x123161=_0x5d89b6[_0x1cfbc6(0x1e0)]();_0x123161&&_0x123161[_0x1cfbc6(0x1886)]['$emit'](_0x1cfbc6(0x151c));}}}),_0x4e81b0['$watch'](_0x378aba(0x2834),function(_0x15ceeb,_0x35fd04){const _0x45a02a=_0x378aba;if(angular[_0x45a02a(0x1619)](_0x15ceeb)||angular[_0x45a02a(0x26b4)](_0x15ceeb,_0x35fd04))return;_0x579654(_0x15ceeb);});function _0x579654(_0x5cfbb7){const _0x7499f0=_0x378aba;_0x5d89b6['setFolded'](_0x5cfbb7);if(_0x5cfbb7)_0x3fe00b[_0x7499f0(0x25a4)](_0x7499f0(0x91b)),_0x40f2e0[_0x7499f0(0x14cf)](_0x7499f0(0x1245)),_0x3350c0();else{const _0x479e97=_0x5d89b6[_0x7499f0(0x1e0)]();_0x479e97&&_0x479e97[_0x7499f0(0x1886)][_0x7499f0(0x26c1)](_0x7499f0(0x151c)),_0x40f2e0['removeClass']('ms-navigation-folded\x20ms-navigation-folded-open'),_0x124306();}}function _0x3350c0(){const _0x4d7c24=_0x378aba;_0x43be86['parent']()[_0x4d7c24(0x1034)](_0x1d739d),_0x29a221(function(){const _0xcd95d=_0x4d7c24;_0x1d739d['on'](_0xcd95d(0x1d97),_0x1f37e4);});}function _0x2e3603(){const _0x2ab589=_0x378aba;_0x40f2e0[_0x2ab589(0xc84)](_0x2ab589(0x2446))[_0x2ab589(0x1034)](_0x3a3162),_0x3a3162['on'](_0x2ab589(0x1d97),_0x1f39d2);}function _0x124306(){const _0xb4e3b4=_0x378aba;_0x3a3162[_0xb4e3b4(0x2640)]();}function _0x1f37e4(_0x520344){const _0x37bb73=_0x378aba;_0x520344&&_0x520344[_0x37bb73(0x115c)]();_0x5d89b6[_0x37bb73(0x103e)](!![]);const _0x5d8c38=_0x5d89b6[_0x37bb73(0x1e0)]();_0x5d8c38&&_0x5d8c38[_0x37bb73(0x1886)]['$emit'](_0x37bb73(0x151c)),_0x40f2e0[_0x37bb73(0x14cf)](_0x37bb73(0x22c)),_0x1d739d[_0x37bb73(0x2640)](),_0x2e3603();}function _0x1f39d2(_0x4d4192){const _0x40892c=_0x378aba;_0x4d4192&&_0x4d4192[_0x40892c(0x115c)](),_0x5d89b6[_0x40892c(0x103e)](![]),_0x3fe00b['$broadcast'](_0x40892c(0x91b)),_0x40f2e0[_0x40892c(0x1973)](_0x40892c(0x22c)),_0x3a3162[_0x40892c(0x2640)](),_0x3350c0();}_0x4e81b0[_0x378aba(0x25a3)]=function(){const _0x2561a2=_0x378aba,_0x33b4ce=_0x5d89b6[_0x2561a2(0x3bc)]();_0x579654(!_0x33b4ce);},_0x4e81b0[_0x378aba(0x16ad)]('$stateChangeStart',function(){const _0x3bc020=_0x378aba;_0x51f8c3[_0x3bc020(0xa7c)]();}),_0x4e81b0['$on'](_0x378aba(0x116f),function(){const _0xa10b5b=_0x378aba;_0x3a3162[_0xa10b5b(0x151d)](_0xa10b5b(0x1d97)),_0x1d739d['off'](_0xa10b5b(0x1d97));});};}};}function _0x3bcac9(_0x3c4fb8,_0x5936da,_0x2a4931,_0x1e7ec3,_0x1f9629,_0x54dd05){const _0x3ddb3e=_0x313a4d,_0x265a04=this;_0x265a04[_0x3ddb3e(0x1853)]=_0x5936da,_0x265a04['node']=_0x3c4fb8[_0x3ddb3e(0x8f7)],_0x265a04[_0x3ddb3e(0xb00)]=undefined,_0x265a04[_0x3ddb3e(0x1822)]=undefined,_0x265a04[_0x3ddb3e(0x1d5c)]=undefined,_0x265a04[_0x3ddb3e(0x1b12)]=undefined,_0x265a04[_0x3ddb3e(0x1406)]=_0x3ddb3e(0x2448),_0x265a04[_0x3ddb3e(0xbc5)]=_0xbe72e5,_0x265a04[_0x3ddb3e(0x2800)]=_0x191f64,_0x265a04[_0x3ddb3e(0x5a8)]=_0x41f4ed,_0x265a04[_0x3ddb3e(0x1e15)]=_0x3e9794,_0x265a04[_0x3ddb3e(0xbaa)]=_0x460456,_0x35b187();function _0x35b187(){const _0x5d576b=_0x3ddb3e;_0x265a04['hasChildren']=_0x265a04[_0x5d576b(0x8f7)][_0x5d576b(0x20d0)][_0x5d576b(0x402)]>0x0,_0x265a04[_0x5d576b(0x1b12)]=!!(angular[_0x5d576b(0x5ef)](_0x265a04['node'][_0x5d576b(0x1b12)])&&_0x265a04[_0x5d576b(0x8f7)][_0x5d576b(0x1b12)]===!![]);!_0x265a04['hasChildren']||_0x265a04['group']?_0x265a04[_0x5d576b(0x1d5c)]=![]:_0x265a04[_0x5d576b(0x1d5c)]=!!(angular[_0x5d576b(0x1619)](_0x265a04[_0x5d576b(0x8f7)][_0x5d576b(0x1d5c)])||typeof _0x265a04[_0x5d576b(0x8f7)][_0x5d576b(0x1d5c)]!=='boolean'||_0x265a04[_0x5d576b(0x8f7)]['collapsable']===!![]);!_0x265a04['collapsable']?_0x265a04[_0x5d576b(0x1822)]=![]:_0x265a04[_0x5d576b(0x1822)]=!!(angular['isUndefined'](_0x265a04['node']['collapsed'])||typeof _0x265a04['node'][_0x5d576b(0x1822)]!=='boolean'||_0x265a04[_0x5d576b(0x8f7)]['collapsed']===!![]);if(_0x265a04['node']['state']===_0x1f9629[_0x5d576b(0x2d7)][_0x5d576b(0x19eb)]||_0x1f9629[_0x5d576b(0xa4e)](_0x265a04[_0x5d576b(0x8f7)][_0x5d576b(0x13d6)])){if(angular[_0x5d576b(0x5ef)](_0x265a04['node'][_0x5d576b(0x1de9)])&&angular['isDefined'](_0x1f9629[_0x5d576b(0x16a)])&&!angular[_0x5d576b(0x26b4)](_0x265a04['node'][_0x5d576b(0x1de9)],_0x1f9629[_0x5d576b(0x16a)]))return;_0x3c4fb8[_0x5d576b(0x26c1)](_0x5d576b(0x151c)),_0x54dd05[_0x5d576b(0x1c8f)](_0x265a04[_0x5d576b(0x8f7)],_0x3c4fb8);}_0x3c4fb8['$on'](_0x5d576b(0x151c),function(){const _0x166f93=_0x5d576b;_0x265a04[_0x166f93(0x1d5c)]&&_0x265a04[_0x166f93(0x1822)]&&_0x3c4fb8[_0x166f93(0x239f)](function(){const _0x35657b=_0x166f93;_0x265a04[_0x35657b(0x1822)]=![];});}),_0x3c4fb8['$on'](_0x5d576b(0x91b),function(_0x156fcf,_0x43b05a){const _0x19e742=_0x5d576b;if(_0x265a04['collapsed']||!_0x265a04[_0x19e742(0x1d5c)])return;if(angular[_0x19e742(0x1619)](_0x43b05a))_0x265a04[_0x19e742(0x2800)]();else{const _0x38a2a3=_0x43b05a[_0x19e742(0x10c8)]('.');let _0x31449a=[];const _0x20fbad=_0x54dd05['getActiveItem']();_0x20fbad&&(_0x31449a=_0x20fbad[_0x19e742(0x8f7)]['_path'][_0x19e742(0x10c8)]('.'));if(_0x38a2a3[_0x19e742(0x172b)](_0x265a04['node'][_0x19e742(0x208c)])>-0x1)return;if(_0x31449a['indexOf'](_0x265a04['node']['_id'])>-0x1)return;_0x265a04['collapse']();}}),_0x3c4fb8[_0x5d576b(0x16ad)](_0x5d576b(0x1dfb),function(){const _0x32db78=_0x5d576b;if(_0x265a04[_0x32db78(0x8f7)][_0x32db78(0x13d6)]===_0x1f9629[_0x32db78(0x2d7)][_0x32db78(0x19eb)]){if(angular[_0x32db78(0x5ef)](_0x265a04[_0x32db78(0x8f7)][_0x32db78(0x1de9)])&&angular[_0x32db78(0x5ef)](_0x1f9629[_0x32db78(0x16a)])&&!angular[_0x32db78(0x26b4)](_0x265a04[_0x32db78(0x8f7)]['stateParams'],_0x1f9629['params']))return;_0x54dd05[_0x32db78(0x1c8f)](_0x265a04[_0x32db78(0x8f7)],_0x3c4fb8),_0x2a4931[_0x32db78(0x25a4)](_0x32db78(0x91b),_0x265a04[_0x32db78(0x8f7)][_0x32db78(0x26d3)]);}if(_0x1f9629[_0x32db78(0xa4e)](_0x265a04['node'][_0x32db78(0x13d6)])){if(angular[_0x32db78(0x5ef)](_0x265a04[_0x32db78(0x8f7)][_0x32db78(0x1de9)])&&angular[_0x32db78(0x5ef)](_0x1f9629[_0x32db78(0x16a)])&&!angular['equals'](_0x265a04[_0x32db78(0x8f7)][_0x32db78(0x1de9)],_0x1f9629[_0x32db78(0x16a)]))return;_0x3c4fb8['$emit'](_0x32db78(0x151c));}});}function _0xbe72e5(){const _0x231faf=_0x3ddb3e;_0x265a04['collapsed']?_0x265a04[_0x231faf(0x5a8)]():_0x265a04['collapse']();}function _0x191f64(){const _0x2c44b6=_0x3ddb3e,_0x480ae0=_0x265a04['element'][_0x2c44b6(0x20d0)]('ul'),_0x246574=_0x480ae0[0x0][_0x2c44b6(0x1a37)];_0x3c4fb8['$evalAsync'](function(){const _0x1e0769=_0x2c44b6;_0x265a04[_0x1e0769(0x1822)]=!![],_0x265a04['element'][_0x1e0769(0x14cf)](_0x1e0769(0x1287)),_0x1e7ec3[_0x1e0769(0x233b)](_0x480ae0,{'display':_0x1e0769(0x152a),'height':_0x246574+'px'},{'height':'0px'},_0x265a04[_0x1e0769(0x1406)])[_0x1e0769(0x146b)](function(){const _0x49bf84=_0x1e0769;_0x480ae0[_0x49bf84(0xdba)]({'display':'','height':''}),_0x265a04['element'][_0x49bf84(0x1973)](_0x49bf84(0x1287));}),_0x3c4fb8[_0x1e0769(0x25a4)]('msNavigation::collapse');});}function _0x41f4ed(){const _0x39048d=_0x3ddb3e,_0x17fa44=_0x265a04[_0x39048d(0x1853)][_0x39048d(0x20d0)]('ul');_0x17fa44[_0x39048d(0xdba)]({'position':_0x39048d(0x153),'visibility':_0x39048d(0x28fc),'display':_0x39048d(0x152a),'height':_0x39048d(0x1b08)});const _0x572857=_0x17fa44[0x0][_0x39048d(0x1a37)];_0x17fa44['css']({'position':'','visibility':'','display':'','height':''}),_0x3c4fb8['$evalAsync'](function(){const _0x660c06=_0x39048d;_0x265a04[_0x660c06(0x1822)]=![],_0x265a04['element']['addClass'](_0x660c06(0x36a)),_0x1e7ec3[_0x660c06(0x233b)](_0x17fa44,{'display':_0x660c06(0x152a),'height':_0x660c06(0x439)},{'height':_0x572857+'px'},_0x265a04['animateHeightClass'])[_0x660c06(0x146b)](function(){const _0x1d5f90=_0x660c06;_0x17fa44[_0x1d5f90(0xdba)]({'height':''}),_0x265a04['element'][_0x1d5f90(0x1973)]('expanding');}),_0x2a4931[_0x660c06(0x25a4)](_0x660c06(0x91b),_0x265a04['node']['_path']);});}function _0x3e9794(){const _0x918bf3=_0x3ddb3e;return _0x265a04[_0x918bf3(0x8f7)][_0x918bf3(0x6f6)];}function _0x460456(){const _0x2cbc77=_0x3ddb3e;if(angular[_0x2cbc77(0x5ef)](_0x265a04[_0x2cbc77(0x8f7)][_0x2cbc77(0x28fc)])&&angular[_0x2cbc77(0x1e2c)](_0x265a04['node']['hidden']))return _0x265a04[_0x2cbc77(0x8f7)][_0x2cbc77(0x28fc)]();return![];}}function _0x9d5ee6(){const _0x10e0c9=_0x313a4d;return{'restrict':'A','bindToController':{'node':_0x10e0c9(0x24d2)},'controller':_0x10e0c9(0x22bd),'compile':function(_0x4ffede){const _0x5e4c9a=_0x10e0c9;return _0x4ffede[_0x5e4c9a(0x14cf)](_0x5e4c9a(0x2113)),function _0x36de40(_0x344616,_0xa6c28,_0x4cde5c,_0xf34211){const _0x552270=_0x5e4c9a;_0xa6c28[_0x552270(0x14cf)](_0xf34211[_0x552270(0x1e15)]()),_0xf34211['group']&&_0xa6c28[_0x552270(0x14cf)]('group');};}};}function _0x569e92(){const _0xb9bb5=_0x313a4d;return{'restrict':'A','require':_0xb9bb5(0x14ef),'compile':function(_0x4ebaad){const _0x1cd7b2=_0xb9bb5;return _0x4ebaad[_0x1cd7b2(0x14cf)](_0x1cd7b2(0x1e5e)),function _0x38eaaf(_0x531081,_0x436bf1,_0x392df1,_0x1f34e4){const _0x59b3f9=_0x1cd7b2;_0x1f34e4[_0x59b3f9(0x1d5c)]&&_0x436bf1['on'](_0x59b3f9(0x1fa5),_0x1f34e4[_0x59b3f9(0xbc5)]),_0x531081[_0x59b3f9(0x16ad)](_0x59b3f9(0x116f),function(){const _0x2f0b39=_0x59b3f9;_0x436bf1[_0x2f0b39(0x151d)](_0x2f0b39(0x1fa5));});};}};}function _0x2d14b9(_0x99612b){const _0x3f16bb=_0x313a4d;return{'restrict':'E','scope':{'root':'@'},'controller':_0x3f16bb(0x59f),'templateUrl':_0xda6584,'transclude':!![],'compile':function(_0xf6bf69){const _0x5a8fcd=_0x3f16bb;return _0xf6bf69[_0x5a8fcd(0x14cf)]('ms-navigation-horizontal'),function _0x4a1926(_0x16a0fb){const _0x1be67c=_0x5a8fcd;_0x99612b[_0x1be67c(0x2c0)](_0x16a0fb);};}};}function _0x28f06f(_0x5c8fae,_0x511f4e,_0x1d88a2,_0x198676,_0x3ae1e7){const _0x1c5db2=_0x313a4d,_0x753443=this;_0x753443[_0x1c5db2(0x1853)]=_0x511f4e,_0x753443[_0x1c5db2(0x8f7)]=_0x5c8fae[_0x1c5db2(0x8f7)],_0x753443[_0x1c5db2(0xb00)]=undefined,_0x753443[_0x1c5db2(0x1b12)]=undefined,_0x753443['getClass']=_0xbd9d93,_0x19dc65();function _0x19dc65(){const _0xf2668a=_0x1c5db2;_0x753443['isActive']=![],_0x753443[_0xf2668a(0xb00)]=_0x753443[_0xf2668a(0x8f7)][_0xf2668a(0x20d0)][_0xf2668a(0x402)]>0x0,_0x753443[_0xf2668a(0x1b12)]=!!(angular[_0xf2668a(0x5ef)](_0x753443[_0xf2668a(0x8f7)][_0xf2668a(0x1b12)])&&_0x753443[_0xf2668a(0x8f7)][_0xf2668a(0x1b12)]===!![]);if(_0x753443[_0xf2668a(0x8f7)][_0xf2668a(0x13d6)]===_0x198676[_0xf2668a(0x2d7)][_0xf2668a(0x19eb)]||_0x198676['includes'](_0x753443[_0xf2668a(0x8f7)]['state'])){if(angular[_0xf2668a(0x5ef)](_0x753443['node'][_0xf2668a(0x1de9)])&&angular['isDefined'](_0x198676[_0xf2668a(0x16a)])&&!angular['equals'](_0x753443[_0xf2668a(0x8f7)]['stateParams'],_0x198676[_0xf2668a(0x16a)]))return;_0x5c8fae[_0xf2668a(0x26c1)](_0xf2668a(0x151c)),_0x3ae1e7['setActiveItem'](_0x753443['node'],_0x5c8fae);}_0x5c8fae[_0xf2668a(0x16ad)](_0xf2668a(0x151c),function(){const _0x1ee27b=_0xf2668a;_0x753443[_0x1ee27b(0xb00)]&&_0x5c8fae[_0x1ee27b(0x239f)](function(){const _0x265591=_0x1ee27b;_0x753443[_0x265591(0xd17)]=!![];});}),_0x5c8fae[_0xf2668a(0x16ad)](_0xf2668a(0x4b3),function(){const _0x440491=_0xf2668a;if(!_0x753443[_0x440491(0xb00)])return;let _0x93dfa3=[];const _0x2fc9eb=_0x3ae1e7[_0x440491(0x1e0)]();_0x2fc9eb&&(_0x93dfa3=_0x2fc9eb[_0x440491(0x8f7)][_0x440491(0x26d3)]['split']('.')),_0x93dfa3[_0x440491(0x172b)](_0x753443['node']['_id'])>-0x1?_0x5c8fae[_0x440491(0x239f)](function(){const _0x2f996b=_0x440491;_0x753443[_0x2f996b(0xd17)]=!![];}):_0x5c8fae[_0x440491(0x239f)](function(){_0x753443['isActive']=![];});}),_0x5c8fae[_0xf2668a(0x16ad)]('$stateChangeSuccess',function(){const _0x175679=_0xf2668a;if(_0x753443[_0x175679(0x8f7)][_0x175679(0x13d6)]===_0x198676['current'][_0x175679(0x19eb)]||_0x198676['includes'](_0x753443[_0x175679(0x8f7)][_0x175679(0x13d6)])){if(angular[_0x175679(0x5ef)](_0x753443[_0x175679(0x8f7)][_0x175679(0x1de9)])&&angular[_0x175679(0x5ef)](_0x198676[_0x175679(0x16a)])&&!angular[_0x175679(0x26b4)](_0x753443[_0x175679(0x8f7)][_0x175679(0x1de9)],_0x198676[_0x175679(0x16a)]))return;_0x3ae1e7['setActiveItem'](_0x753443[_0x175679(0x8f7)],_0x5c8fae),_0x1d88a2[_0x175679(0x25a4)](_0x175679(0x4b3));}});}function _0xbd9d93(){const _0x57d27d=_0x1c5db2;return _0x753443['node'][_0x57d27d(0x6f6)];}}function _0x2061a4(){return{'restrict':'A','bindToController':{'node':'=msNavigationHorizontalNode'},'controller':'MsNavigationHorizontalNodeController\x20as\x20vm','compile':function(_0x900d5b){const _0x2a8d2c=a0_0x3bb9;return _0x900d5b[_0x2a8d2c(0x14cf)]('ms-navigation-horizontal-node'),function _0x2811d1(_0x4aa003,_0x47e6c2,_0x3ea36a,_0x561584){const _0x3db2ed=_0x2a8d2c;_0x47e6c2['addClass'](_0x561584[_0x3db2ed(0x1e15)]()),_0x561584[_0x3db2ed(0x1b12)]&&_0x47e6c2[_0x3db2ed(0x14cf)]('group');};}};}function _0x544ef0(_0xf40bf8){const _0x431b68=_0x313a4d;return{'restrict':'A','require':_0x431b68(0x1d36),'compile':function(_0x1f896a){const _0x577b04=_0x431b68;return _0x1f896a[_0x577b04(0x14cf)](_0x577b04(0xff)),function _0x37e0a6(_0x7f27a2,_0x306450,_0x1c7e1f,_0x45dd38){const _0x237476=_0x577b04;_0x306450['on'](_0x237476(0x1fa5),_0x1d79d1);function _0x1d79d1(){const _0x2a617e=_0x237476;if(!_0x45dd38[_0x2a617e(0xb00)]||_0xf40bf8(_0x2a617e(0x284d)))return;_0x306450[_0x2a617e(0x1851)](_0x2a617e(0x257f));}_0x7f27a2[_0x237476(0x16ad)](_0x237476(0x116f),function(){const _0x1b0822=_0x237476;_0x306450[_0x1b0822(0x151d)](_0x1b0822(0x1fa5));});};}};};const _0x124190=_0x4acfac['p']+_0x313a4d(0x1975);;const _0x4394bc=_0x4acfac['p']+'src/js/modules/core/directives/ms-phonebar/referAttended/dialog.html/dialog.html';;const _0x554c60=_0x4acfac['p']+_0x313a4d(0x6b5);;const _0xc1e95f=_0x4acfac['p']+_0x313a4d(0x358);var _0x39a8c9=_0x4acfac(0x175b),_0x252c7a=_0x4acfac['n'](_0x39a8c9),_0x375d60=_0x4acfac(0x26ba),_0x9107e8=_0x4acfac['n'](_0x375d60);;_0x3ed748[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x4d8),_0x313a4d(0x1abe),_0x313a4d(0xa0a),'$mdDialog',_0x313a4d(0x1c7e),_0x313a4d(0x1aa9),_0x313a4d(0x214b),_0x313a4d(0x237),_0x313a4d(0x1fe4),_0x313a4d(0x247f),_0x313a4d(0x28fe),_0x313a4d(0xa87),'socket'];function _0x3ed748(_0x5caa1e,_0x3bdbc6,_0x4295ce,_0x5e4a0,_0x4995fc,_0x418c15,_0x4188b5,_0x406910,_0x413fcd,_0x251af4,_0x2c9a89,_0x4bcdb3,_0x457357,_0x2fcf15){const _0x5c8295=_0x313a4d,_0x3d1315=this,_0x448765=window['jabra'];_0x3d1315[_0x5c8295(0x1b1f)]=_0x2c9a89[_0x5c8295(0x1b1f)],_0x3d1315[_0x5c8295(0x190c)]=_0x5caa1e[_0x5c8295(0x2870)]['vm']['conf'];const _0x1469f3=[_0x5c8295(0x1903),_0x5c8295(0xbc8),_0x5c8295(0xa0e),_0x5c8295(0x22b8),_0x5c8295(0x17a),'microphoneVolume','ringingMute',_0x5c8295(0x119d),_0x5c8295(0xa34)],_0x2ef105=_0x3d1315[_0x5c8295(0x190c)]&&JSON[_0x5c8295(0x975)](_0x4188b5[_0x5c8295(0x1c39)]['getItem'](_0x5c8295(0x327)+_0x3d1315[_0x5c8295(0x190c)]['id']))||{'webrtc':{'ringingVolume':0.5,'speakerVolume':0.5,'microphoneVolume':0x1,'ringingMute':![],'speakerMute':![],'microphoneMute':![]}};_0x5e4a0(function(){},0x3e7),_0x3d1315[_0x5c8295(0x26cc)]=_0x5c8295(0x2236),_0x3d1315[_0x5c8295(0x758)]=_0x5c8295(0x796),_0x3d1315[_0x5c8295(0xe1d)]='',_0x3d1315['showDialpad']=![],_0x3d1315[_0x5c8295(0x21e9)]=document[_0x5c8295(0x24ec)](_0x5c8295(0x922)),_0x3d1315[_0x5c8295(0x142f)]=document[_0x5c8295(0x156b)](_0x3d1315['conf'][_0x5c8295(0x11f9)]),_0x3d1315[_0x5c8295(0x21e9)]['volume']=0x1,_0x3d1315[_0x5c8295(0x1e00)]={'mediaConstraints':{'audio':!![],'video':![]},'pcConfig':{'iceServers':[]}},_0x3d1315[_0x5c8295(0x2ca)]=[],_0x3d1315[_0x5c8295(0x197c)]=[],_0x3d1315['callbackQueue']=[],_0x3d1315[_0x5c8295(0x1609)]=![],_0x3d1315['isInConference']=![],_0x3d1315[_0x5c8295(0x1ef2)]=[],_0x3d1315['ua']=new(_0x252c7a())['UA']({'sockets':[new(_0x252c7a())[(_0x5c8295(0x3c3))]('wss://'+_0x3d1315[_0x5c8295(0x190c)][_0x5c8295(0x148e)]+':8089/ws')],'uri':new(_0x252c7a())[(_0x5c8295(0x1354))](_0x5c8295(0x1d4f),_0x3d1315[_0x5c8295(0x190c)][_0x5c8295(0x19eb)],_0x3d1315[_0x5c8295(0x190c)][_0x5c8295(0x148e)],0x13c4,null,null)[_0x5c8295(0xd5f)](),'authorization_user':_0x3d1315['conf'][_0x5c8295(0x19eb)],'ha1':_0x3d1315[_0x5c8295(0x190c)][_0x5c8295(0x21e0)],'realm':_0x3d1315[_0x5c8295(0x190c)]['realm'],'user_agent':_0x3d1315['conf']['ua'],'session_timers_refresh_method':'invite','register_expires':_0x3d1315[_0x5c8295(0x190c)]['phoneBarExpires']||0x3c,'register':!![]}),_0x3d1315[_0x5c8295(0x190c)]=_0x3f65c0()[_0x5c8295(0x168d)](_0x2ef105[_0x5c8295(0x1e42)],_0x3d1315[_0x5c8295(0x190c)]),_0x3d1315['initDeviceInProgress']=![],_0x3d1315['isJabraEnabled']=![],_0x3d1315[_0x5c8295(0x1090)]=![],_0x3d1315[_0x5c8295(0x1390)]=null,_0x3d1315['jabraClicked']=![],_0x3d1315[_0x5c8295(0x84d)]=![],_0x3d1315[_0x5c8295(0xe2c)]=![];function _0x374fda(){const _0x3dc9ec=_0x5c8295;_0xddba7a(![]),navigator[_0x3dc9ec(0x10e7)][_0x3dc9ec(0xba0)]=function(){const _0xf41945=_0x3dc9ec;!_0x3d1315[_0xf41945(0x1d40)]&&(_0x3d1315[_0xf41945(0x1d40)]=!![],_0x448765&&_0x3d1315['isJabraInitialized']?_0x448765['shutdown']()[_0xf41945(0x146b)](function(){const _0x3c7f74=_0xf41945;_0x3d1315[_0x3c7f74(0x1090)]=![],_0x3d1315[_0x3c7f74(0x1669)]=![],_0xddba7a(!![]);})['catch'](function(_0x43f0f8){const _0x3731a3=_0xf41945;console[_0x3731a3(0x1980)]('Unable\x20to\x20shutdown\x20Jabra\x20library',_0x43f0f8);}):_0xddba7a(!![]));};const _0x1d0496=[_0x2c9a89['network']['get']({'type':_0x3dc9ec(0xf87),'nolimit':!![]})[_0x3dc9ec(0x2945)],_0x2c9a89[_0x3dc9ec(0x1f0c)][_0x3dc9ec(0x16b4)]({'type':_0x3dc9ec(0x1956),'nolimit':!![]})[_0x3dc9ec(0x2945)]];Promise[_0x3dc9ec(0x1be2)](_0x1d0496)[_0x3dc9ec(0x146b)](function(_0x1f0395){const _0x107948=_0x3dc9ec,_0x1e0662=_0x1f0395[0x0][_0x107948(0x19c7)],_0x37224b=_0x1f0395[0x1]['rows'],_0x4489be=[],_0x10e583=[];_0x37224b[_0x107948(0x1df5)](function(_0x3e8fa7){const _0x368512=_0x107948;_0x10e583['push'](_0x368512(0xdaf)+_0x3e8fa7['value']);}),_0x4489be[_0x107948(0x1f47)]({'urls':_0x10e583}),_0x1e0662[_0x107948(0x1df5)](function(_0x3867ce){const _0x58472e=_0x107948,_0xc9855d={'urls':_0x58472e(0x1c52)+_0x3867ce[_0x58472e(0x175d)]};_0x3867ce['username']&&(_0xc9855d[_0x58472e(0x14b7)]=_0x3867ce[_0x58472e(0x14b7)]),_0x3867ce['password']&&(_0xc9855d[_0x58472e(0x19ed)]=_0x3867ce[_0x58472e(0xf37)]),_0x4489be['push'](_0xc9855d);}),_0x3d1315['sessionConf'][_0x107948(0x450)]={'iceServers':_0x4489be};}),this['ua']['on']('registered',_0x370453['bind'](this)),this['ua']['on'](_0x3dc9ec(0xdce),_0x284c5c[_0x3dc9ec(0x2544)](this)),this['ua']['on']('newRTCSession',_0x84eebf[_0x3dc9ec(0x2544)](this)),_0x2fcf15['on']('webbar:originate',_0x2b4c82[_0x3dc9ec(0x2544)](this)),_0x2fcf15['on'](_0x3dc9ec(0x15ce),_0x1a41c7[_0x3dc9ec(0x2544)](this)),_0x2fcf15['on'](_0x3dc9ec(0x187f),_0x23836b[_0x3dc9ec(0x2544)](this)),_0x2fcf15['on'](_0x3dc9ec(0x246c),_0x4af7d5[_0x3dc9ec(0x2544)](this)),_0x2fcf15['on'](_0x3dc9ec(0xee1),_0x390fa6[_0x3dc9ec(0x2544)](this)),_0x2fcf15['on'](_0x3dc9ec(0x41c),_0xdccc96[_0x3dc9ec(0x2544)](this));}function _0xddba7a(_0x8f9bca){const _0x535abd=_0x5c8295;let _0x54b7cf,_0x1ec136,_0xc64e99;return _0x3d1315['initDeviceInProgress']=!![],navigator[_0x535abd(0x10e7)][_0x535abd(0x1fc3)]({'audio':!![]})['then'](function(_0x1645a7){const _0xa89e7e=_0x535abd;return _0x1645a7[_0xa89e7e(0x1b7f)]()[_0xa89e7e(0x1df5)](function(_0x1d699a){const _0x4e6280=_0xa89e7e;_0x1d699a[_0x4e6280(0x1edf)]();}),navigator[_0xa89e7e(0x10e7)][_0xa89e7e(0x1b78)]();})[_0x535abd(0x146b)](function(_0xc93626){const _0x410ef1=_0x535abd,_0x3f5991=_0x3f65c0()[_0x410ef1(0x1dd6)](_0xc93626,function(_0x32d9b5){const _0x718198=_0x410ef1;return _0x32d9b5[_0x718198(0x484)]===_0x718198(0x2567)&&_0x32d9b5[_0x718198(0x2492)]!=='default'&&_0x32d9b5['deviceId']!==_0x718198(0xa48);});if(_0x3f5991[_0x410ef1(0x402)]>0x0){const _0x56c6d6=_0x3f65c0()[_0x410ef1(0xc84)](_0xc93626,function(_0x53287e){const _0x12bed8=_0x410ef1;return _0x53287e[_0x12bed8(0x2492)]===_0x12bed8(0x13b1)&&_0x53287e[_0x12bed8(0x484)]===_0x12bed8(0x2567);});_0xc64e99=_0x3f65c0()[_0x410ef1(0xc84)](_0x3f5991,function(_0x3f2482){const _0x3bd6b2=_0x410ef1;return _0x3f2482[_0x3bd6b2(0x7a5)]===_0x56c6d6[_0x3bd6b2(0x7a5)];});if(_0x3d1315[_0x410ef1(0x190c)][_0x410ef1(0xa0e)]&&!_0x8f9bca){const _0x3ee5f4=_0x3f65c0()['find'](_0x3f5991,function(_0x5e08c7){const _0x1dd080=_0x410ef1;return _0x5e08c7[_0x1dd080(0x2492)]===_0x3d1315['conf'][_0x1dd080(0xa0e)];});_0x3ee5f4&&(_0xc64e99=_0x3ee5f4);}_0x3d1315[_0x410ef1(0x190c)]['microphoneId']=_0xc64e99[_0x410ef1(0x2492)];}else _0x251af4[_0x410ef1(0x195d)]({'title':_0x406910[_0x410ef1(0xde)](_0x410ef1(0x26b9)),'msg':_0x406910['instant']('TOOLBAR.WEBRTC_MICROPHONE_NOT_AVAILABLE'),'clickToClose':!![],'showClose':!![],'shake':![],'timeout':![],'position':_0x410ef1(0x1620)});_0x3d1315[_0x410ef1(0x190c)][_0x410ef1(0xa0e)]?_0x3d1315[_0x410ef1(0x1e00)]['mediaConstraints'][_0x410ef1(0x922)]={'deviceId':_0x3d1315[_0x410ef1(0x190c)][_0x410ef1(0xa0e)]}:_0x3d1315[_0x410ef1(0x1e00)]['mediaConstraints'][_0x410ef1(0x922)]=!![];_0xdf61c5(_0x410ef1(0x1d75),![]);const _0x1b68d5=_0x3f65c0()[_0x410ef1(0x1dd6)](_0xc93626,function(_0x5eab93){const _0x5e2e7c=_0x410ef1;return _0x5eab93[_0x5e2e7c(0x484)]===_0x5e2e7c(0x1bcf)&&_0x5eab93[_0x5e2e7c(0x2492)]!==_0x5e2e7c(0x13b1)&&_0x5eab93['deviceId']!=='communications';});if(_0x1b68d5[_0x410ef1(0x402)]>0x0){const _0x5ba2d3=_0x3f65c0()[_0x410ef1(0xc84)](_0xc93626,function(_0x476438){const _0x50bb58=_0x410ef1;return _0x476438['deviceId']===_0x50bb58(0x13b1)&&_0x476438[_0x50bb58(0x484)]===_0x50bb58(0x1bcf);});_0x54b7cf=_0x3f65c0()[_0x410ef1(0xc84)](_0x1b68d5,function(_0x3879bc){const _0x1fba24=_0x410ef1;return _0x3879bc[_0x1fba24(0x7a5)]===_0x5ba2d3[_0x1fba24(0x7a5)];}),_0x1ec136=_0x54b7cf;if(_0x3d1315[_0x410ef1(0x190c)][_0x410ef1(0xbc8)]&&!_0x8f9bca){const _0x311bab=_0x3f65c0()[_0x410ef1(0xc84)](_0x1b68d5,function(_0x2c9079){const _0x38033f=_0x410ef1;return _0x2c9079['deviceId']===_0x3d1315['conf'][_0x38033f(0xbc8)];});_0x311bab&&(_0x1ec136=_0x311bab);}_0x3d1315[_0x410ef1(0x190c)][_0x410ef1(0xbc8)]=_0x1ec136[_0x410ef1(0x2492)];if(_0x3d1315['conf']['ringingId']&&!_0x8f9bca){const _0x422173=_0x3f65c0()[_0x410ef1(0xc84)](_0x1b68d5,function(_0x1d8c49){const _0x337b08=_0x410ef1;return _0x1d8c49[_0x337b08(0x2492)]===_0x3d1315[_0x337b08(0x190c)][_0x337b08(0x1903)];});_0x422173&&(_0x54b7cf=_0x422173);}_0x3d1315[_0x410ef1(0x190c)]['ringingId']=_0x54b7cf[_0x410ef1(0x2492)];}else _0x251af4[_0x410ef1(0x195d)]({'title':_0x406910['instant'](_0x410ef1(0x26b9)),'msg':_0x406910[_0x410ef1(0xde)](_0x410ef1(0xa0f)),'clickToClose':!![],'showClose':!![],'shake':![],'timeout':![],'position':_0x410ef1(0x1620)});return _0xdf61c5('speaker',![]);})['then'](function(){const _0x4b1fd0=_0x535abd;return _0xdf61c5(_0x4b1fd0(0xad4),![]);})['then'](function(){const _0x5bf44c=_0x535abd;if(_0x448765)return _0x448765[_0x5bf44c(0x5aa)]()[_0x5bf44c(0x146b)](function(){const _0x3a2f3a=_0x5bf44c;return _0x3d1315[_0x3a2f3a(0x1090)]=!![],_0x448765[_0x3a2f3a(0x1e28)]();})['then'](function(){const _0x586286=_0x5bf44c;return _0x448765[_0x586286(0x19ec)]();})['then'](function(_0x566ab8){const _0x571173=_0x5bf44c;_0xc64e99&&_0x1ec136&&_0x54b7cf&&_0x566ab8&&(_0x3f65c0()[_0x571173(0xa4e)]([_0xc64e99[_0x571173(0x7a5)],_0x1ec136[_0x571173(0x7a5)],_0x54b7cf[_0x571173(0x7a5)]],_0x566ab8[_0x571173(0x1835)][_0x571173(0x2307)])&&(console['log'](_0x571173(0xe39)),_0x3d1315[_0x571173(0x1669)]=!![],_0x448765[_0x571173(0x10fc)](),_0x448765[_0x571173(0x1c69)](_0x571173(0x223),_0x40c6e5[_0x571173(0x2544)](this)),_0x448765['addEventListener'](_0x571173(0x7da),_0x4e63de[_0x571173(0x2544)](this)),_0x448765[_0x571173(0x1c69)]('unmute',_0x36a678[_0x571173(0x2544)](this)),_0x448765['addEventListener'](_0x571173(0x22b4),_0x5596bf[_0x571173(0x2544)](this)),_0x448765['addEventListener'](_0x571173(0x28c5),_0x13408d[_0x571173(0x2544)](this))));})[_0x5bf44c(0x129e)](function(_0x101be6){const _0x15fd8d=_0x5bf44c;console[_0x15fd8d(0x1859)](_0x15fd8d(0x2475),_0x101be6);});})[_0x535abd(0x129e)](function(_0xf9a0da){const _0x4bb1d1=_0x535abd;console[_0x4bb1d1(0x1980)](_0x4bb1d1(0x142c),_0xf9a0da),_0xf9a0da[_0x4bb1d1(0x19eb)]===_0x4bb1d1(0x1264)&&_0x251af4['warning']({'title':_0x406910[_0x4bb1d1(0xde)](_0x4bb1d1(0x26b9)),'msg':_0x406910[_0x4bb1d1(0xde)](_0x4bb1d1(0x58b)),'clickToClose':!![],'showClose':!![],'shake':![],'timeout':![],'position':_0x4bb1d1(0x1620)});})[_0x535abd(0x1ec6)](function(){const _0x1f81f7=_0x535abd;_0x3d1315[_0x1f81f7(0x1d40)]=![],_0x4c329e(),_0x9107e8()['load'](_0x9972e2['bind'](this));});}function _0x40c6e5(_0x1c1607){const _0x2fd31b=_0x5c8295,_0x4a5839=_0x3f65c0()[_0x2fd31b(0x22f2)](_0x3d1315[_0x2fd31b(0x2ca)]);_0x4a5839?_0x4a5839['direction']==='incoming'&&_0x4a5839['isInProgress']()?_0x3d1315['answer'](_0x4a5839):console[_0x2fd31b(0x1980)](_0x2fd31b(0x44a),_0x1c1607):console[_0x2fd31b(0x1980)]('Unable\x20to\x20answer\x20the\x20call',_0x1c1607);}function _0x4e63de(){const _0x48b14e=_0x5c8295;_0x3d1315[_0x48b14e(0x190c)][_0x48b14e(0xa34)]=!![],_0xdf61c5(_0x48b14e(0x1d75),!![]);}function _0x36a678(){const _0x39985b=_0x5c8295;_0x3d1315[_0x39985b(0x190c)][_0x39985b(0xa34)]=![],_0xdf61c5(_0x39985b(0x1d75),!![]);}function _0x5596bf(){const _0x53cce2=_0x5c8295;_0x3d1315[_0x53cce2(0x1390)][_0x53cce2(0x77e)]?_0x3d1315[_0x53cce2(0x584)](_0x3d1315[_0x53cce2(0x1390)]):_0x3d1315['hold'](_0x3d1315[_0x53cce2(0x1390)]);}function _0x13408d(){const _0x34c565=_0x5c8295;_0xdbab30()[_0x34c565(0x146b)](function(_0x72115b){const _0x4fc6ad=_0x34c565;_0x72115b!==null&&_0x3d1315[_0x4fc6ad(0xcad)](_0x72115b);});}function _0x4c329e(){const _0xa2565f=_0x5c8295;_0x2ef105[_0xa2565f(0x1e42)]=_0x3f65c0()[_0xa2565f(0x40e)](_0x3d1315[_0xa2565f(0x190c)],_0x1469f3),_0x4188b5['localStorage'][_0xa2565f(0xc32)](_0xa2565f(0x327)+_0x3d1315[_0xa2565f(0x190c)]['id'],JSON[_0xa2565f(0x10bb)](_0x2ef105));}function _0x370453(){const _0xd8b5f3=_0x5c8295;this[_0xd8b5f3(0x6e6)]=!![];}function _0x284c5c(){const _0x280fb0=_0x5c8295;this[_0x280fb0(0x6e6)]=![];}function _0x9972e2(){const _0x1da933=_0x5c8295;_0x3d1315[_0x1da933(0x190c)]['hasMicrophone']=_0x9107e8()[_0x1da933(0x284b)],_0x3d1315[_0x1da933(0x190c)][_0x1da933(0x1eb7)]=_0x9107e8()[_0x1da933(0x1506)][_0x1da933(0x19eb)]==='Chrome'||_0x9107e8()[_0x1da933(0x1506)]['name']==='Edge'||_0x9107e8()[_0x1da933(0x1506)][_0x1da933(0x19eb)]==='Opera'?_0x9107e8()[_0x1da933(0x1eb7)]:!![],_0x3d1315[_0x1da933(0x190c)][_0x1da933(0x23d1)]=_0x9107e8()['isWebRTCSupported'],_0x3d1315[_0x1da933(0x190c)][_0x1da933(0x4c4)]=_0x9107e8()[_0x1da933(0x4c4)],_0x3d1315[_0x1da933(0x190c)][_0x1da933(0x1b7d)]=_0x9107e8()[_0x1da933(0x1b7d)],_0x3d1315[_0x1da933(0x190c)]['browserName']=_0x9107e8()[_0x1da933(0x1506)]['name'],_0x3d1315['conf'][_0x1da933(0x123b)]=_0x9107e8()[_0x1da933(0x1506)][_0x1da933(0x11b7)];if(_0x617eb3())!_0x3d1315[_0x1da933(0x2e5)]&&_0x3d1315['ua'][_0x1da933(0x48e)]();else!_0x3d1315['conf'][_0x1da933(0x2690)]&&_0x251af4[_0x1da933(0x195d)]({'title':_0x406910[_0x1da933(0xde)](_0x1da933(0x26b9)),'msg':_0x406910[_0x1da933(0xde)](_0x1da933(0xd81)),'clickToClose':!![],'showClose':!![],'shake':![],'timeout':![],'position':_0x1da933(0x1620)});}function _0x617eb3(){const _0x3f59e5=_0x5c8295;return _0x3d1315[_0x3f59e5(0x190c)][_0x3f59e5(0x2690)]&&_0x3d1315['conf'][_0x3f59e5(0x23d1)]&&_0x3d1315[_0x3f59e5(0x190c)][_0x3f59e5(0x284b)]&&_0x3d1315[_0x3f59e5(0x190c)]['hasSpeakers']&&_0x3d1315['conf']['protocol']===_0x3f59e5(0x26ae)&&_0x4cb450();}function _0x4cb450(){const _0x4070b6=_0x5c8295;return _0x3d1315[_0x4070b6(0x190c)][_0x4070b6(0x6cf)][_0x4070b6(0x256e)]()==='chrome'||_0x3d1315['conf'][_0x4070b6(0x6cf)][_0x4070b6(0x256e)]()===_0x4070b6(0x91d)||_0x3d1315[_0x4070b6(0x190c)][_0x4070b6(0x6cf)][_0x4070b6(0x256e)]()==='safari';}function _0x84eebf(_0x2a2c91){const _0x4680f9=_0x5c8295;console[_0x4680f9(0xf98)](_0x4680f9(0x89c),_0x2a2c91);const _0x3ee913=_0x2a2c91['session'];let _0x302ea1=!![],_0xa05c62='',_0x5e30b4=0x0,_0xe1f87a;switch(_0x2a2c91['originator']){case'local':{_0x3ee913['outgoing']=!![],_0x3ee913[_0x4680f9(0x19eb)]=_0x2a2c91[_0x4680f9(0xe1f)][_0x4680f9(0x1554)][_0x4680f9(0xe7b)],_0x3ee913[_0x4680f9(0xe7b)]=_0x2a2c91[_0x4680f9(0xe1f)][_0x4680f9(0x1554)][_0x4680f9(0xe7b)],_0x287684(_0x3ee913['user'],![]);const _0x4cb1b4=_0x4680f9(0x64d);_0xe1f87a=_0x1a94d3(_0x2a2c91[_0x4680f9(0xe1f)][_0x4680f9(0x5af)],_0x4cb1b4),_0x3d1315[_0x4680f9(0x1669)]&&(_0x3d1315['jabraSession']&&_0x448765[_0x4680f9(0xa57)](),_0x3d1315[_0x4680f9(0x1390)]=_0x3ee913,_0x448765[_0x4680f9(0xd5a)]());}break;case _0x4680f9(0xc75):{const _0x5b81fc=_0x457357[_0x4680f9(0xb12)]();if(_0x5b81fc['voicePause']&&_0x5b81fc[_0x4680f9(0x1587)]||_0x3d1315[_0x4680f9(0xe2c)])_0x302ea1=![];else{_0x3ee913[_0x4680f9(0x19a0)]=!![],_0x3ee913[_0x4680f9(0x19eb)]=_0x2a2c91[_0x4680f9(0xe1f)][_0x4680f9(0xfa5)][_0x4680f9(0x18d)],_0x3ee913['user']=_0x2a2c91[_0x4680f9(0xe1f)][_0x4680f9(0xfa5)][_0x4680f9(0x1e73)][_0x4680f9(0xe7b)],_0xa05c62=_0x2a2c91[_0x4680f9(0xe1f)]['getHeader'](_0x4680f9(0x96e))||'',_0x5e30b4=_0x2a2c91[_0x4680f9(0xe1f)][_0x4680f9(0x1c08)](_0x4680f9(0xb70))||0x0,_0x455140(_0x2a2c91[_0x4680f9(0x258b)]),_0x287684(_0x2a2c91[_0x4680f9(0x258b)]['user'],!![]);_0x3d1315['isJabraEnabled']&&_0x448765['ring']();_0x3d1315[_0x4680f9(0x190c)][_0x4680f9(0x1502)]&&_0x4295ce(function(){const _0x3a21be=_0x4680f9;_0x3ee913[_0x3a21be(0x18bf)]()&&(_0x3ee913[_0x3a21be(0x1502)]=!![],_0x5651d8(_0x3ee913));},_0x3d1315[_0x4680f9(0x190c)]['autoAnswerDelay']?_0x3d1315[_0x4680f9(0x190c)][_0x4680f9(0xa40)]*0x3e8:0x0);console[_0x4680f9(0xf98)](_0x4680f9(0x20f2),_0xa05c62),console[_0x4680f9(0xf98)](_0x4680f9(0x4a0),_0x5e30b4);if(_0xa05c62['toLowerCase']()=='auto'){const _0x3f1408=_0x5e30b4==0x0?0x1f4:_0x5e30b4*0x3e8;console[_0x4680f9(0xf98)](_0x4680f9(0x2441)+_0x3f1408+_0x4680f9(0x2442)),_0x4295ce(function(){const _0x23323e=_0x4680f9;_0x3ee913[_0x23323e(0x18bf)]()&&(_0x3ee913['autoAnswer']=!![],_0x5651d8(_0x3ee913));},_0x3f1408);}}break;}default:}_0x302ea1?(_0x3ee913['call_id']=_0x2a2c91[_0x4680f9(0xe1f)][_0x4680f9(0x219c)],_0xe1f87a&&(_0x3d1315[_0x4680f9(0x25e5)][_0x3ee913[_0x4680f9(0x219c)]]=_0xe1f87a,_0x4d58b7(_0xe1f87a,{'call_id':_0x3ee913[_0x4680f9(0x219c)]})[_0x4680f9(0x146b)](function(){const _0x1c699b=_0x4680f9;console[_0x1c699b(0x1a74)](_0x1c699b(0x1f43)+_0xe1f87a+_0x1c699b(0x190a));})[_0x4680f9(0x129e)](function(_0x47d64c){const _0x1ca2f1=_0x4680f9;console[_0x1ca2f1(0x1a74)](_0x1ca2f1(0x2775)+_0xe1f87a+_0x1ca2f1(0x195a),_0x47d64c);})),_0x3ee913[_0x4680f9(0x1978)]&&(_0x3ee913[_0x4680f9(0x1978)][_0x4680f9(0x79a)]=_0x15984f['bind'](this)),_0x3ee913['iceCandidateTimeout']=null,_0x3ee913['on'](_0x4680f9(0x2141),_0x31f299[_0x4680f9(0x2544)](this,_0x3ee913)),_0x3ee913['on']('confirmed',_0x4dd49a['bind'](this,_0x3ee913)),_0x3ee913['on']('hold',_0x3472be[_0x4680f9(0x2544)](this,_0x3ee913)),_0x3ee913['on'](_0x4680f9(0x584),_0x23963d[_0x4680f9(0x2544)](this,_0x3ee913)),_0x3ee913['on']('ended',_0x295099['bind'](this,_0x3ee913)),_0x3ee913['on'](_0x4680f9(0x18de),_0x1da68c[_0x4680f9(0x2544)](this,_0x3ee913)),_0x3ee913['on'](_0x4680f9(0x1d29),_0x1775da[_0x4680f9(0x2544)](this,_0x3ee913)),_0x3d1315[_0x4680f9(0x2ca)][_0x4680f9(0x1f47)](_0x3ee913),_0x4295ce(function(){const _0xd77f0=_0x4680f9;_0x5caa1e[_0xd77f0(0x6fc)](),console[_0xd77f0(0xf98)](_0xd77f0(0xa28),_0x3d1315[_0xd77f0(0x2ca)]);})):_0x376125(_0x3ee913,0x1e6);}function _0x287684(_0x514113,_0x5d9492,_0x5bd868){const _0xbd06e9=_0x5c8295;console[_0xbd06e9(0xf98)](_0xbd06e9(0x216),_0x514113,_0x5d9492,_0x5bd868),_0x3d1315['calls']['unshift']({'target':_0x514113,'fullname':_0x5bd868||_0x514113,'inbound':_0x5d9492,'time':_0x2deec6()()[_0xbd06e9(0x22b0)](_0xbd06e9(0x28b4))}),_0x3d1315[_0xbd06e9(0x197c)][_0xbd06e9(0x402)]>0x32&&_0x3d1315['calls'][_0xbd06e9(0x18c1)]();}function _0x455140(_0x14b35b){const _0x31aaaa=_0x5c8295;console[_0x31aaaa(0xf98)](_0x31aaaa(0x1b76),_0x14b35b);const _0x23d238=_0x14b35b[_0x31aaaa(0x19eb)]?_0x14b35b[_0x31aaaa(0x19eb)]+'\x20<'+_0x14b35b[_0x31aaaa(0xe7b)]+'>':_0x14b35b[_0x31aaaa(0xe7b)];_0x4bcdb3[_0x31aaaa(0x50f)](_0x31aaaa(0x5a0),_0x23d238,null,function(){_0x5651d8(_0x14b35b);},function(){_0x376125(_0x14b35b);})['then'](function(_0x45c44e){const _0x562e6d=_0x31aaaa;_0x14b35b[_0x562e6d(0xcee)]=_0x45c44e;})['catch'](function(_0x2c0a5e){const _0x2553c6=_0x31aaaa;console[_0x2553c6(0x1980)](_0x2553c6(0x229),_0x2c0a5e);});}function _0x5651d8(_0x47ae2e){const _0x1ddd3b=_0x5c8295;console[_0x1ddd3b(0xf98)](_0x1ddd3b(0x1075),_0x47ae2e),_0x3d1315[_0x1ddd3b(0x190c)][_0x1ddd3b(0xa0e)]?_0x3d1315[_0x1ddd3b(0x1e00)]['mediaConstraints'][_0x1ddd3b(0x922)]={'deviceId':_0x3d1315[_0x1ddd3b(0x190c)][_0x1ddd3b(0xa0e)]}:_0x3d1315[_0x1ddd3b(0x1e00)][_0x1ddd3b(0x1f7f)]['audio']=!![],_0x47ae2e['answer'](_0x3d1315[_0x1ddd3b(0x1e00)]),_0x3d1315['isJabraEnabled']&&(_0x448765[_0x1ddd3b(0xd5a)](),_0x3d1315[_0x1ddd3b(0x1390)]=_0x47ae2e);}function _0x376125(_0x35cdfe,_0x3f44e5){const _0x42915e=_0x5c8295;console[_0x42915e(0xf98)](_0x42915e(0xec7),_0x35cdfe);const _0x5716fc={};if(_0x3f44e5)_0x5716fc['status_code']=_0x3f44e5;else!_0x35cdfe['isEstablished']()&&(_0x5716fc[_0x42915e(0xb9a)]=0x25b);_0x35cdfe[_0x42915e(0xcad)](_0x5716fc);if(_0x3d1315[_0x42915e(0x1669)]){if(_0x3d1315['sessions'][_0x42915e(0x402)]===0x0)_0x35cdfe[_0x42915e(0x77e)]&&_0x448765['resume'](),_0x448765['onHook'](),_0x3d1315[_0x42915e(0x1390)]=null;else{const _0x48248e=_0x3f65c0()[_0x42915e(0x22f2)](_0x3d1315[_0x42915e(0x2ca)]);_0x48248e[_0x42915e(0x77e)]?(_0x448765[_0x42915e(0x10fc)](),_0x448765[_0x42915e(0x1d87)](),_0x3d1315['jabraSession']=_0x48248e):_0x448765[_0x42915e(0xd5a)]();}}}function _0x31f299(_0x40c17a,_0x3293a1){const _0x2f235b=_0x5c8295;console['debug']('onProgress\x20->\x20session,\x20data',_0x40c17a,_0x3293a1);let _0x5f2396=![];switch(_0x3293a1[_0x2f235b(0xb4c)]){case'local':!this[_0x2f235b(0x190c)][_0x2f235b(0xac1)]&&(this[_0x2f235b(0x21e9)]['setAttribute']('src',_0x2f235b(0x3b2)),_0x5f2396=!![]);break;case _0x2f235b(0xc75):this['putOtherCallsOnHold'](_0x40c17a),this[_0x2f235b(0x21e9)][_0x2f235b(0x1652)](_0x2f235b(0x1006),_0x2f235b(0x1e83)),_0x5f2396=!![];break;}_0x3d1315[_0x2f235b(0xe2c)]&&(_0x3d1315[_0x2f235b(0xe2c)]=![]),_0x5f2396&&(this[_0x2f235b(0x21e9)][_0x2f235b(0x213d)]=_0x2f235b(0x213d),this[_0x2f235b(0x21e9)][_0x2f235b(0x1fee)]()[_0x2f235b(0x129e)](function(_0x7d48b6){const _0x5a9500=_0x2f235b;console[_0x5a9500(0x1a74)](_0x7d48b6['message']);})),_0x2b9ba2(_0x40c17a)[_0x2f235b(0x146b)](function(){const _0x3c2e14=_0x2f235b,_0x5a6f98=_0x3d1315['callbackQueue'][_0x40c17a['call_id']];_0x5a6f98&&_0x4d58b7(_0x5a6f98,{'uniqueid':_0x40c17a[_0x3c2e14(0x4f8)],'call_id':_0x40c17a[_0x3c2e14(0x219c)],'number_called':_0x40c17a[_0x3c2e14(0xe7b)]})[_0x3c2e14(0x146b)](function(){const _0x6bb30a=_0x3c2e14;console[_0x6bb30a(0x1a74)](_0x6bb30a(0x1f43)+_0x5a6f98+'\x22\x20called\x20successfully');})[_0x3c2e14(0x129e)](function(_0x45f15f){const _0x53b527=_0x3c2e14;console[_0x53b527(0x1a74)](_0x53b527(0x2775)+_0x5a6f98+_0x53b527(0x195a),_0x45f15f);})[_0x3c2e14(0x1ec6)](function(){const _0x6eba2e=_0x3c2e14;delete _0x3d1315[_0x6eba2e(0x25e5)][_0x40c17a[_0x6eba2e(0x219c)]];});})[_0x2f235b(0x129e)](function(_0x363846){const _0x3f2388=_0x2f235b;console[_0x3f2388(0x1980)](_0x3f2388(0x1f33),_0x363846);});}function _0x2b9ba2(_0x495f23){const _0x3402f4=_0x5c8295;return console[_0x3402f4(0xf98)](_0x3402f4(0xe5a),_0x495f23),_0x2c9a89[_0x3402f4(0x1af7)][_0x3402f4(0x944)]()[_0x3402f4(0x2945)][_0x3402f4(0x146b)](function(_0x250007){const _0x426794=_0x3402f4,_0x37b383=_0x3f65c0()['find'](_0x250007[_0x426794(0x19c7)],function(_0x187512){const _0x5ee6ce=_0x426794;if(_0x187512['sipcalllinkedid']===_0x495f23['call_id'])return _0x187512;if(_0x187512['sipcalluniqueid']===_0x495f23[_0x5ee6ce(0x219c)])return _0x187512;return null;});_0x37b383&&(_0x495f23[_0x426794(0x234c)]=_0x37b383[_0x426794(0x234c)],_0x495f23[_0x426794(0x4f8)]=_0x37b383[_0x426794(0x4f8)],_0x495f23[_0x426794(0x25fe)]=_0x37b383[_0x426794(0x25fe)]);return;});}function _0x4dd49a(_0x1af3ce,_0x4c8935){const _0x4268b6=_0x5c8295;console[_0x4268b6(0xf98)]('onConfirmed\x20->\x20session,\x20data',_0x1af3ce,_0x4c8935);const _0x5e70b5=document[_0x4268b6(0x156b)]('div_session_'+_0x1af3ce['id'][_0x4268b6(0x16eb)](0x0,0x20));_0x5e70b5&&$(_0x5e70b5)[_0x4268b6(0x1886)]()[_0x4268b6(0x25a4)](_0x4268b6(0x1829)),_0x1af3ce['confirmed']=!![],_0x4c8935['originator']===_0x4268b6(0xc75)&&_0x1af3ce[_0x4268b6(0x1978)]&&(_0x1af3ce[_0x4268b6(0x1978)][_0x4268b6(0x79a)]=_0x15984f[_0x4268b6(0x2544)](this),_0x3f65c0()[_0x4268b6(0x6d8)](_0x1af3ce['connection'][_0x4268b6(0x23d)]())&&(this[_0x4268b6(0x142f)][_0x4268b6(0xfe6)]=_0x3f65c0()[_0x4268b6(0x6d8)](_0x1af3ce['connection']['getRemoteStreams']()),this[_0x4268b6(0x142f)][_0x4268b6(0x1fee)]())),this[_0x4268b6(0x21e9)]['pause'](),this[_0x4268b6(0x21e9)][_0x4268b6(0x213d)]=null,this[_0x4268b6(0x14e0)](_0x1af3ce),_0x1af3ce['autoAnswer']&&(this['soundPlayer'][_0x4268b6(0x1652)](_0x4268b6(0x1006),_0x4268b6(0x6b4)),this[_0x4268b6(0x21e9)][_0x4268b6(0x1fee)]()[_0x4268b6(0x129e)](function(_0x5034b5){const _0x58474d=_0x4268b6;console[_0x58474d(0x1a74)](_0x58474d(0x2038),_0x5034b5);})),_0x3d1315[_0x4268b6(0x1609)]=_0x3d1315[_0x4268b6(0x2ca)]['length']==0x2,_0x2b9ba2(_0x1af3ce)[_0x4268b6(0x129e)](function(_0x2e5166){const _0x1c2bd3=_0x4268b6;console[_0x1c2bd3(0x1980)]('Unable\x20to\x20retrieve\x20voice\x20channels',_0x2e5166);});}function _0x15984f(_0x3ad30a){const _0x40593d=_0x5c8295;console[_0x40593d(0xf98)]('onAddstream\x20->\x20data',_0x3ad30a),this['remotePlayer'][_0x40593d(0xfe6)]=_0x3ad30a[_0x40593d(0x2897)],this[_0x40593d(0x142f)][_0x40593d(0x1fee)]();}function _0x3472be(_0x198af0,_0x38ff73){const _0x16f59d=_0x5c8295;console[_0x16f59d(0xf98)](_0x16f59d(0x589),_0x198af0,_0x38ff73),_0x38ff73[_0x16f59d(0xb4c)]===_0x16f59d(0x106b)&&(_0x198af0[_0x16f59d(0x77e)]=!![]);}function _0x23963d(_0x170335,_0x1adf66){const _0x5bb5cc=_0x5c8295;console[_0x5bb5cc(0xf98)]('onUnhold\x20->\x20session,\x20data',_0x170335,_0x1adf66),_0x1adf66[_0x5bb5cc(0xb4c)]===_0x5bb5cc(0x106b)&&(_0x170335['localHold']=![]);}function _0x295099(_0x2c4ea5,_0x23f9cd){const _0x5858b3=_0x5c8295;console[_0x5858b3(0xf98)]('onEnded\x20->\x20session,\x20data',_0x2c4ea5,_0x23f9cd);_0x3d1315[_0x5858b3(0x2919)]&&(_0x3f65c0()[_0x5858b3(0xa4e)](_0x3d1315[_0x5858b3(0x1ef2)],_0x2c4ea5['id'])&&(_0x7aeebd(),_0x3d1315[_0x5858b3(0x84d)]=!![]));_0x3f65c0()[_0x5858b3(0x2640)](this[_0x5858b3(0x2ca)],{'id':_0x2c4ea5['id']});_0x3d1315[_0x5858b3(0x2ca)][_0x5858b3(0x402)]!==0x2&&(_0x3d1315[_0x5858b3(0x1609)]=![]);if(_0x3d1315['isJabraEnabled']){if(_0x3d1315[_0x5858b3(0x2ca)][_0x5858b3(0x402)]===0x0)_0x2c4ea5[_0x5858b3(0x77e)]&&_0x448765[_0x5858b3(0xa57)](),_0x448765[_0x5858b3(0x10fc)](),_0x3d1315[_0x5858b3(0x1390)]=null;else{const _0x1e7089=_0x3f65c0()[_0x5858b3(0x22f2)](_0x3d1315[_0x5858b3(0x2ca)]);_0x1e7089[_0x5858b3(0x77e)]?(_0x448765['onHook'](),_0x448765['hold'](),_0x3d1315[_0x5858b3(0x1390)]=_0x1e7089):_0x448765[_0x5858b3(0xd5a)]();}}}function _0x7aeebd(){const _0x46e7d6=_0x5c8295;_0x3d1315[_0x46e7d6(0x1609)]=![],_0x3d1315[_0x46e7d6(0x2919)]=![],_0x3d1315[_0x46e7d6(0x1515)]=[];}function _0x1da68c(_0x101b8d,_0x49af74){const _0x348a0f=_0x5c8295;console[_0x348a0f(0xf98)]('onFailed\x20->\x20session,\x20data',_0x101b8d,_0x49af74),this[_0x348a0f(0x21e9)][_0x348a0f(0x1e3e)](),this[_0x348a0f(0x21e9)][_0x348a0f(0x213d)]=null;_0x101b8d[_0x348a0f(0xcee)]&&_0x101b8d[_0x348a0f(0xcee)]['close']();_0x3d1315[_0x348a0f(0x2919)]&&(_0x3f65c0()['includes'](_0x3d1315['currentConferenceSessions'],_0x101b8d['id'])&&_0x7aeebd());_0x3d1315['originateInProgress']&&(_0x3d1315[_0x348a0f(0xe2c)]=![]);_0x3f65c0()[_0x348a0f(0x2640)](this['sessions'],{'id':_0x101b8d['id']});_0x3d1315[_0x348a0f(0x2ca)][_0x348a0f(0x402)]!==0x2&&(_0x3d1315['canGoInConference']=![]);if(_0x3d1315[_0x348a0f(0x1669)]){if(_0x3d1315[_0x348a0f(0x2ca)][_0x348a0f(0x402)]===0x0)_0x101b8d['localHold']&&_0x448765[_0x348a0f(0xa57)](),_0x448765[_0x348a0f(0x10fc)](),_0x3d1315[_0x348a0f(0x1390)]=null;else{const _0x4a9b8b=_0x3f65c0()[_0x348a0f(0x22f2)](_0x3d1315[_0x348a0f(0x2ca)]);_0x4a9b8b[_0x348a0f(0x77e)]?(_0x448765['onHook'](),_0x448765[_0x348a0f(0x1d87)](),_0x3d1315[_0x348a0f(0x1390)]=_0x4a9b8b):_0x448765[_0x348a0f(0xd5a)]();}}}function _0x1775da(_0xd63357,_0x272495){const _0x5d47ec=_0x5c8295;console[_0x5d47ec(0xf98)](_0x5d47ec(0x1a95),_0xd63357,_0x272495),_0xd63357[_0x5d47ec(0xdc0)]!==null&&clearTimeout(_0xd63357[_0x5d47ec(0xdc0)]),_0xd63357[_0x5d47ec(0xdc0)]=setTimeout(_0x272495[_0x5d47ec(0x120a)],0x1*0x3e8);}function _0x25d1c3(){const _0x3b2742=_0x5c8295;_0x3d1315[_0x3b2742(0x2326)]=![];}function _0x2d933b(_0xc11459,_0x59e402){const _0x35bf0e=_0x5c8295;let _0x4191cb=_0xc11459;!_0x3d1315[_0x35bf0e(0xe1d)]&&(_0x3d1315[_0x35bf0e(0xe1d)]='');_0x59e402&&(_0x3d1315[_0x35bf0e(0xe1d)]+=_0xc11459,_0x5caa1e[_0x35bf0e(0x25a4)]('angucomplete-alt:changeInput',_0x35bf0e(0x5b4),_0x3d1315[_0x35bf0e(0xe1d)]));switch(_0xc11459){case'*':_0x4191cb=_0x35bf0e(0x1c50);break;case'#':_0x4191cb='pound';break;default:}_0x3d1315[_0x35bf0e(0x190c)][_0x35bf0e(0x21b5)]&&(_0x3d1315[_0x35bf0e(0x21e9)][_0x35bf0e(0x1652)]('src',_0x35bf0e(0x13a6)+_0x4191cb+_0x35bf0e(0x1509)),_0x3d1315[_0x35bf0e(0x21e9)][_0x35bf0e(0x1fee)]()['catch'](function(_0x4ffc05){const _0x529b84=_0x35bf0e;console[_0x529b84(0x1a74)](_0x4ffc05[_0x529b84(0x7fd)]);}));for(let _0x591440=0x0;_0x591440<_0x3d1315[_0x35bf0e(0x2ca)][_0x35bf0e(0x402)];_0x591440+=0x1){_0x3d1315[_0x35bf0e(0x2ca)][_0x591440][_0x35bf0e(0x286b)]()&&!_0x3d1315[_0x35bf0e(0x2ca)][_0x591440][_0x35bf0e(0x2396)]()['local']&&_0x3d1315[_0x35bf0e(0x2ca)][_0x591440]['sendDTMF'](_0xc11459);}}function _0xdf61c5(_0xfe907,_0x6ead7b){const _0x37cd9a=_0x5c8295;switch(_0xfe907){case _0x37cd9a(0xad4):_0x3d1315[_0x37cd9a(0x21e9)][_0x37cd9a(0x1f7a)]=_0x3d1315[_0x37cd9a(0x190c)]['ringingMute'];_0x3d1315[_0x37cd9a(0x190c)][_0x37cd9a(0x1903)]&&_0x3d1315[_0x37cd9a(0x21e9)]['setSinkId'](_0x3d1315[_0x37cd9a(0x190c)][_0x37cd9a(0x1903)])[_0x37cd9a(0x146b)](function(){const _0x398419=_0x37cd9a;_0x3d1315[_0x398419(0x21e9)][_0x398419(0x10b2)]=_0x3d1315['conf'][_0x398419(0x22b8)];})[_0x37cd9a(0x146b)](function(){_0x6ead7b&&_0x4c329e();})[_0x37cd9a(0x129e)](function(_0xf6976c){const _0x58b0e9=_0x37cd9a;console[_0x58b0e9(0x271e)](_0xf6976c[_0x58b0e9(0x7fd)],_0x3d1315[_0x58b0e9(0x190c)][_0x58b0e9(0x1903)]);});break;case _0x37cd9a(0xf4a):_0x3d1315[_0x37cd9a(0x142f)][_0x37cd9a(0x1f7a)]=_0x3d1315[_0x37cd9a(0x190c)]['speakerMute'];_0x3d1315[_0x37cd9a(0x190c)][_0x37cd9a(0xbc8)]&&_0x3d1315[_0x37cd9a(0x142f)][_0x37cd9a(0x1159)](_0x3d1315['conf'][_0x37cd9a(0xbc8)])[_0x37cd9a(0x146b)](function(){const _0x144947=_0x37cd9a;_0x3d1315[_0x144947(0x142f)][_0x144947(0x10b2)]=_0x3d1315[_0x144947(0x190c)][_0x144947(0x17a)];})[_0x37cd9a(0x146b)](function(){_0x6ead7b&&_0x4c329e();})[_0x37cd9a(0x129e)](function(_0x3a5576){const _0x454af4=_0x37cd9a;console['info'](_0x3a5576[_0x454af4(0x7fd)],_0x3d1315[_0x454af4(0x190c)][_0x454af4(0xbc8)]);});break;case _0x37cd9a(0x1d75):for(let _0x2b0753=0x0;_0x2b0753<_0x3d1315['sessions'][_0x37cd9a(0x402)];_0x2b0753+=0x1){_0x3d1315[_0x37cd9a(0x190c)][_0x37cd9a(0xa34)]?_0x3d1315['sessions'][_0x2b0753][_0x37cd9a(0x7da)]():_0x3d1315[_0x37cd9a(0x2ca)][_0x2b0753][_0x37cd9a(0x2807)]();}_0x448765&&_0x3d1315['isJabraEnabled']&&(_0x3d1315['conf'][_0x37cd9a(0xa34)]?_0x448765[_0x37cd9a(0x7da)]():_0x448765['unmute']());_0x6ead7b&&_0x4c329e();break;default:console[_0x37cd9a(0x1a74)]('unknown\x20device');}}function _0x43a265(_0x982338){const _0x279eac=_0x5c8295;if(!_0x982338)_0x50df02();else/^(\w|\.|\+|#|\*|\(|\)|\s|-)*$/['test'](_0x982338)?(_0x3d1315['target']=_0x982338,_0x5caa1e['$broadcast'](_0x279eac(0x1f37),_0x279eac(0x5b4),_0x3d1315[_0x279eac(0xe1d)])):_0x3d1315['target']?_0x5caa1e[_0x279eac(0x25a4)](_0x279eac(0x1f37),'ms-target-wrap',_0x3d1315[_0x279eac(0xe1d)]):_0x50df02();}function _0x50df02(){const _0x7b2f52=_0x5c8295;_0x3d1315[_0x7b2f52(0xe1d)]='',document[_0x7b2f52(0x156b)](_0x7b2f52(0x1cba))[_0x7b2f52(0x2076)](),document[_0x7b2f52(0x156b)]('ms-target')[_0x7b2f52(0x175d)]='',_0x5caa1e[_0x7b2f52(0x25a4)]('angucomplete-alt:clearInput','ms-target-wrap');}function _0x5f1b31(_0x4cef73){const _0x45e207=_0x5c8295;_0x4cef73&&(_0x3d1315['target']=_0x4cef73[_0x45e207(0x23e5)][_0x45e207(0xe1d)],_0x3d1315[_0x45e207(0x133b)](),_0x50df02());}function _0x293bc2(){const _0x25fc8c=_0x5c8295;if(_0x3d1315[_0x25fc8c(0xe1d)]&&_0x3d1315[_0x25fc8c(0xe1d)]!==_0x3d1315[_0x25fc8c(0x190c)][_0x25fc8c(0x19eb)]&&_0x3d1315[_0x25fc8c(0xe1d)]!==_0x3d1315[_0x25fc8c(0x190c)][_0x25fc8c(0x113f)]){_0x3d1315[_0x25fc8c(0x190c)][_0x25fc8c(0xa0e)]?_0x3d1315[_0x25fc8c(0x1e00)][_0x25fc8c(0x1f7f)][_0x25fc8c(0x922)]={'deviceId':_0x3d1315[_0x25fc8c(0x190c)][_0x25fc8c(0xa0e)]}:_0x3d1315[_0x25fc8c(0x1e00)][_0x25fc8c(0x1f7f)][_0x25fc8c(0x922)]=!![];let _0x3246b9=_0x3d1315[_0x25fc8c(0xe1d)][_0x25fc8c(0x5f4)](/ /g,'');return _0x3246b9=_0x3246b9[_0x25fc8c(0x5f4)](/\(/g,''),_0x3246b9=_0x3246b9[_0x25fc8c(0x5f4)](/\)/g,''),_0x11e9c5(_0x3246b9)[_0x25fc8c(0x146b)](function(_0x38317c){const _0x5c3f1d=_0x25fc8c;_0x38317c&&_0x3d1315['ua'][_0x5c3f1d(0x133b)](_0x38317c,_0x3d1315[_0x5c3f1d(0x1e00)]);})[_0x25fc8c(0x146b)](function(){_0x50df02();});}}function _0x11e9c5(_0x257860){const _0x3c3976=_0x5c8295;return _0x2c9a89[_0x3c3976(0xe7b)]['getVoicePrefixes']({'id':_0x3d1315[_0x3c3976(0x190c)]['id']})[_0x3c3976(0x2945)][_0x3c3976(0x146b)](function(_0x4e5579){const _0xb9fdec=_0x3c3976;if(_0x4e5579['count'])return _0x4995fc[_0xb9fdec(0x2615)]({'controller':_0xb9fdec(0xaa7),'controllerAs':'vm','templateUrl':_0x4748cf,'parent':angular[_0xb9fdec(0x1853)](_0x3bdbc6[_0xb9fdec(0x2586)]),'clickOutsideToClose':!![],'locals':{'prefixes':_0x4e5579,'required':_0x3d1315[_0xb9fdec(0x190c)][_0xb9fdec(0x27f8)]}});})[_0x3c3976(0x146b)](function(_0x1890bd){const _0x3813f6=_0x3c3976;if(!_0x3d1315[_0x3813f6(0x190c)][_0x3813f6(0x27f8)]){if(_0x1890bd&&_0x1890bd!==-0x1)return _0x1890bd+_0x257860;else{if(!_0x1890bd)return _0x257860;}}else{if(_0x1890bd&&_0x1890bd!==-0x1)return _0x1890bd+_0x257860;}});}function _0x42d69e(_0xf1a1af){const _0x3e5f5b=_0x5c8295;switch(_0xf1a1af[_0x3e5f5b(0x2293)][_0x3e5f5b(0x256e)]()){case'0':case'1':case'2':case'3':case'4':case'5':case'6':case'7':case'8':case'9':case'*':case'#':_0x3d1315[_0x3e5f5b(0x1142)](_0xf1a1af[_0x3e5f5b(0x2293)]);break;case _0x3e5f5b(0xd7a):_0x3d1315[_0x3e5f5b(0x133b)]();break;default:}}function _0x290d68(){const _0x2a676a=_0x5c8295;_0x3d1315[_0x2a676a(0x2326)]=!_0x3d1315['showDialpad'];}_0x3bdbc6['bind'](_0x5c8295(0x1ce9),function(_0x137da6){const _0x460143=_0x5c8295;switch(_0x137da6[_0x460143(0x1252)]){case 0x1b:_0x4295ce(function(){const _0x1a223d=_0x460143;_0x3d1315[_0x1a223d(0x2326)]=![];});break;default:}});function _0x961872(){const _0x114c80=_0x5c8295;_0x3d1315[_0x114c80(0x2919)]=!![],_0x3d1315[_0x114c80(0x1609)]=![],_0x3d1315['currentConferenceSessions']['push'](_0x3d1315['sessions'][0x0]['id']),_0x3d1315[_0x114c80(0x1ef2)][_0x114c80(0x1f47)](_0x3d1315[_0x114c80(0x2ca)][0x1]['id']);const _0x5f0b44=_0x3d1315[_0x114c80(0x2ca)][0x0][_0x114c80(0x1978)][_0x114c80(0xd3f)]()[0x0],_0x4b826d=_0x3d1315[_0x114c80(0x2ca)][0x0]['connection']['getReceivers']()[0x0];_0x4b826d[_0x114c80(0x486)][_0x114c80(0x1c69)](_0x114c80(0x2807),function(){setTimeout(function(){_0x7eec0d();},0x3e8);},![]);const _0x1ab6aa=_0x3d1315[_0x114c80(0x2ca)][0x1]['connection'][_0x114c80(0xd3f)]()[0x0],_0x2dd5b1=_0x3d1315[_0x114c80(0x2ca)][0x1][_0x114c80(0x1978)][_0x114c80(0x22fa)]()[0x0];_0x2dd5b1['track'][_0x114c80(0x1c69)]('unmute',function(){setTimeout(function(){_0x7eec0d();},0x3e8);},![]),_0x3d1315[_0x114c80(0x2ca)][0x0]['unhold']({'useUpdate':![]}),_0x3d1315[_0x114c80(0x2ca)][0x1][_0x114c80(0x584)]({'useUpdate':![]}),_0x4b826d[_0x114c80(0x486)][_0x114c80(0x193e)]=!![],_0x2dd5b1[_0x114c80(0x486)][_0x114c80(0x193e)]=!![];const _0x21b16f=new MediaStream(),_0x37d75b=new AudioContext();let _0x5e43a2=_0x37d75b[_0x114c80(0xa7a)](),_0x4ebead=_0x37d75b[_0x114c80(0xc2c)](new MediaStream([_0x2dd5b1[_0x114c80(0x486)]]));_0x4ebead[_0x114c80(0x2e3)](_0x5e43a2),_0x4ebead=_0x37d75b[_0x114c80(0xc2c)](new MediaStream([_0x5f0b44[_0x114c80(0x486)]])),_0x4ebead['connect'](_0x5e43a2),_0x5f0b44['replaceTrack'](_0x5e43a2['stream']['getTracks']()[0x0])[_0x114c80(0x146b)](function(){}),_0x5e43a2=_0x37d75b[_0x114c80(0xa7a)](),_0x4ebead=_0x37d75b['createMediaStreamSource'](new MediaStream([_0x4b826d[_0x114c80(0x486)]])),_0x4ebead[_0x114c80(0x2e3)](_0x5e43a2),_0x4ebead=_0x37d75b[_0x114c80(0xc2c)](new MediaStream([_0x1ab6aa[_0x114c80(0x486)]])),_0x4ebead['connect'](_0x5e43a2),_0x1ab6aa[_0x114c80(0x339)](_0x5e43a2[_0x114c80(0x2897)][_0x114c80(0x1b7f)]()[0x0])['then'](function(){const _0x6051d7=_0x114c80;_0x21b16f[_0x6051d7(0x27f2)](_0x4b826d[_0x6051d7(0x486)]),_0x21b16f[_0x6051d7(0x27f2)](_0x2dd5b1[_0x6051d7(0x486)]);const _0x273221=document['getElementById'](_0x6051d7(0x2629));_0x273221[_0x6051d7(0xfe6)]=_0x21b16f;const _0x15b669=_0x273221[_0x6051d7(0x1fee)]();_0x15b669!==undefined&&_0x15b669['then'](function(){})['catch'](function(_0x48daa7){const _0x3c9215=_0x6051d7;console[_0x3c9215(0x1a74)](_0x48daa7);});});}function _0x7eec0d(){const _0x14db90=_0x5c8295;if(_0x3d1315[_0x14db90(0x2919)]){const _0x28ddb8=_0x3d1315[_0x14db90(0x2ca)][0x0]['connection'][_0x14db90(0x22fa)]()[0x0],_0x4cf85e=_0x3d1315[_0x14db90(0x2ca)][0x1][_0x14db90(0x1978)]['getReceivers']()[0x0],_0x313a6f=new MediaStream();_0x313a6f[_0x14db90(0x27f2)](_0x28ddb8[_0x14db90(0x486)]),_0x313a6f['addTrack'](_0x4cf85e[_0x14db90(0x486)]);const _0x3e467b=document[_0x14db90(0x156b)]('remote-audio');_0x3e467b[_0x14db90(0xfe6)]=_0x313a6f;const _0x4d3db4=_0x3e467b[_0x14db90(0x1fee)]();_0x4d3db4!==undefined&&_0x4d3db4[_0x14db90(0x146b)](function(){})[_0x14db90(0x129e)](function(_0x4ff5df){const _0x23a2bc=_0x14db90;console[_0x23a2bc(0x1a74)](_0x4ff5df);});}}function _0x132991(_0x45198e){const _0x523bff=_0x5c8295;console[_0x523bff(0xf98)]('selectSession\x20->\x20session',_0x45198e),_0x3d1315['unhold'](_0x45198e);}function _0x983ff0(_0x4d1901){const _0x798181=_0x5c8295;console[_0x798181(0xf98)]('unhold\x20->\x20session',_0x4d1901),_0x4d1901[_0x798181(0x584)]({'useUpdate':![]}),_0x3d1315['putOtherCallsOnHold'](_0x4d1901),_0x3d1315['isJabraEnabled']&&(_0x448765['offHook'](),_0x448765['resume']());}function _0xe69f5b(_0x40a9c0){const _0x5779c5=_0x5c8295;console[_0x5779c5(0xf98)](_0x5779c5(0x2231),_0x40a9c0),_0x4995fc[_0x5779c5(0x2615)]({'controller':'RecordDialogController','controllerAs':'vm','templateUrl':_0x124190,'parent':angular[_0x5779c5(0x1853)](_0x3bdbc6['body']),'clickOutsideToClose':!![],'locals':{'session':_0x40a9c0,'sessions':_0x3d1315[_0x5779c5(0x2ca)]}});}function _0x19529d(_0x58d602){const _0x33de48=_0x5c8295;console['debug'](_0x33de48(0xf2b),_0x58d602),_0x58d602['hold']({'useUpdate':![]}),_0x3d1315[_0x33de48(0x1669)]&&(_0x448765[_0x33de48(0x1d87)](),_0x448765['onHook']());}function _0x1696bc(_0xe627fb){const _0x4c8365=_0x5c8295;console[_0x4c8365(0xf98)](_0x4c8365(0x2578),_0xe627fb);const _0x2cf5d7=_0x4995fc[_0x4c8365(0x212a)]()['title'](_0x4c8365(0x9ff))[_0x4c8365(0x199c)]('Type\x20the\x20target')[_0x4c8365(0x1a02)]('Target')[_0x4c8365(0x4bd)](_0x4c8365(0x2468))['ok'](_0x4c8365(0x9ff))['cancel'](_0x4c8365(0xcf0));_0x4995fc[_0x4c8365(0x2615)](_0x2cf5d7)[_0x4c8365(0x146b)](function(_0x173ee3){return _0x11e9c5(_0x173ee3);})[_0x4c8365(0x146b)](function(_0x397414){const _0x811210=_0x4c8365;_0xe627fb['refer'](_0x397414,{'eventHandlers':{'requestSucceeded':_0x210073(_0xe627fb,_0x811210(0x2668),_0x811210(0x25f2),0xbb8),'requestFailed':_0x210073(_0xe627fb,_0x811210(0xdc5),'top\x20right',0xbb8)}});});}function _0x210073(_0x899d8,_0x7decd7,_0x1d6ed6,_0x46c6eb){const _0x3d2ca2=_0x5c8295;return console['debug'](_0x3d2ca2(0x460),_0x899d8,_0x7decd7,_0x1d6ed6,_0x46c6eb),function(){const _0x474cca=_0x3d2ca2;_0x418c15[_0x474cca(0x2615)](_0x418c15['simple']()[_0x474cca(0x199c)](_0x7decd7)['position'](_0x1d6ed6)[_0x474cca(0x1605)](_0x46c6eb)),_0x376125(_0x899d8);};}function _0x37ff70(_0x67e919){const _0x144adc=_0x5c8295;console[_0x144adc(0xf98)](_0x144adc(0x1a9),_0x67e919),_0x4995fc[_0x144adc(0x2615)]({'controller':_0x144adc(0x1af),'controllerAs':'vm','templateUrl':_0x4394bc,'parent':angular[_0x144adc(0x1853)](_0x3bdbc6[_0x144adc(0x2586)]),'clickOutsideToClose':!![],'locals':{'session':_0x67e919,'sessions':_0x3f65c0()[_0x144adc(0xa6f)](_0x3d1315['sessions'],{'id':_0x67e919['id']}),'isJabraEnabled':_0x3d1315[_0x144adc(0x1669)]}});}function _0x2d6236(_0x587994){const _0xe6530e=_0x5c8295;console[_0xe6530e(0xf98)](_0xe6530e(0x1db6),_0x587994);if(_0x3d1315[_0xe6530e(0x2ca)][_0xe6530e(0x402)]>0x1)for(let _0x4790fe=0x0;_0x4790fe<_0x3d1315['sessions'][_0xe6530e(0x402)];_0x4790fe+=0x1){_0x3d1315[_0xe6530e(0x2ca)][_0x4790fe]['id']!==_0x587994['id']&&!_0x3d1315['sessions'][_0x4790fe]['isOnHold']()[_0xe6530e(0xc75)]&&_0x3d1315[_0xe6530e(0x2ca)][_0x4790fe]['hold']({'useUpdate':![]});}}function _0x41680a(_0x3eee5c){const _0x1fcc99=_0x5c8295;_0x4995fc[_0x1fcc99(0x2615)]({'controller':_0x1fcc99(0x16a2),'controllerAs':'vm','templateUrl':_0x554c60,'parent':angular['element'](_0x3bdbc6[_0x1fcc99(0x2586)]),'targetEvent':_0x3eee5c,'clickOutsideToClose':!![],'resolve':{'devices':function(){const _0x24cdc9=_0x1fcc99;return navigator[_0x24cdc9(0x10e7)][_0x24cdc9(0x1b78)]();}},'locals':{'conf':_0x3d1315[_0x1fcc99(0x190c)]}})[_0x1fcc99(0x146b)](function(_0x41fbe4){const _0x23120e=_0x1fcc99;_0x41fbe4&&(_0x3d1315[_0x23120e(0x190c)]=_0x41fbe4,!_0x3d1315[_0x23120e(0x1d40)]&&(_0x3d1315[_0x23120e(0x1d40)]=!![],_0x448765&&_0x3d1315[_0x23120e(0x1090)]?_0x448765[_0x23120e(0x25d9)]()[_0x23120e(0x146b)](function(){const _0x2b0f5f=_0x23120e;_0x3d1315[_0x2b0f5f(0x1090)]=![],_0x3d1315[_0x2b0f5f(0x1669)]=![],_0xddba7a(![]);})['catch'](function(_0x59b9c1){const _0x17bcb3=_0x23120e;console['error'](_0x17bcb3(0x2110),_0x59b9c1);}):_0xddba7a(![])));});}function _0x8343ed(){const _0x2d243c=_0x5c8295;_0x3d1315['ua'][_0x2d243c(0x1edf)](),_0x448765&&_0x3d1315[_0x2d243c(0x1090)]&&_0x448765['shutdown'](),navigator[_0x2d243c(0x10e7)]['ondevicechange']=function(){};}function _0x86a192(_0x2bdd70,_0x2e3e33){const _0x3f0765=_0x5c8295;console['debug'](_0x3f0765(0xe1e),_0x2bdd70,_0x2e3e33),_0x2e3e33[_0x3f0765(0xe1d)]&&(_0x3d1315[_0x3f0765(0xe1d)]=_0x2e3e33['target'],_0x3d1315[_0x3f0765(0x133b)]());}function _0x29702e(_0x1df5cd,_0x351399){const _0x4a2744=_0x5c8295;console['debug'](_0x4a2744(0x184),_0x1df5cd,_0x351399);if(_0x351399['target'])for(let _0x5677ac=0x0;_0x5677ac<_0x3d1315[_0x4a2744(0x2ca)][_0x4a2744(0x402)];_0x5677ac+=0x1){if(_0x3d1315['sessions'][_0x5677ac]['isEstablished']()&&!_0x3d1315['sessions'][_0x5677ac][_0x4a2744(0x2396)]()['local'])return _0x11e9c5(_0x351399['target'])['then'](function(_0x157e5f){const _0x5bba3b=_0x4a2744;_0x157e5f&&_0x3d1315['sessions'][_0x5677ac][_0x5bba3b(0x1143)](_0x157e5f,{'eventHandlers':{'requestSucceeded':_0x210073(_0x3d1315['sessions'][_0x5677ac],'requestSucceeded',_0x5bba3b(0x25f2),0xbb8),'requestFailed':_0x210073(_0x3d1315['sessions'][_0x5677ac],_0x5bba3b(0xdc5),_0x5bba3b(0x25f2),0xbb8)}});});}}function _0xdbab30(){return new Promise(function(_0x36a23d){const _0x232c0b=a0_0x3bb9;let _0x1d1a9e=null;for(let _0xf2f5ee=0x0;_0xf2f5ee<_0x3d1315[_0x232c0b(0x2ca)]['length'];_0xf2f5ee++){!_0x3f65c0()['has'](_0x3d1315[_0x232c0b(0x2ca)][_0xf2f5ee],'localHold')?_0x1d1a9e=_0x3d1315['sessions'][_0xf2f5ee]:!_0x3d1315['sessions'][_0xf2f5ee][_0x232c0b(0x77e)]&&(_0x1d1a9e=_0x3d1315[_0x232c0b(0x2ca)][_0xf2f5ee]);}_0x36a23d(_0x1d1a9e);});}function _0x2b4c82(_0x3c5056){const _0x476f34=_0x5c8295;console[_0x476f34(0xf98)](_0x476f34(0x9b2),_0x3c5056);const _0x2757e1=_0x3c5056[_0x476f34(0x20af)],_0x1a97ac=_0x3c5056[_0x476f34(0x1d43)],_0x52f2ce=_0x3c5056[_0x476f34(0x68d)];_0x3d1315[_0x476f34(0x190c)][_0x476f34(0xa0e)]?_0x3d1315['sessionConf'][_0x476f34(0x1f7f)]['audio']={'deviceId':_0x3d1315['conf'][_0x476f34(0xa0e)]}:_0x3d1315['sessionConf'][_0x476f34(0x1f7f)][_0x476f34(0x922)]=!![];let _0x1cae1a=_0x2757e1[_0x476f34(0x5f4)](/ /g,'');_0x1cae1a=_0x1cae1a[_0x476f34(0x5f4)](/\(/g,''),_0x1cae1a=_0x1cae1a[_0x476f34(0x5f4)](/\)/g,'');if(_0x1cae1a){const _0x193a6f=angular['copy'](_0x3d1315[_0x476f34(0x1e00)]);_0x193a6f[_0x476f34(0x5af)]=[],_0x1a97ac&&_0x193a6f[_0x476f34(0x5af)]['push'](_0x476f34(0xc6c)+_0x1a97ac),_0x52f2ce&&_0x193a6f[_0x476f34(0x5af)]['push'](_0x476f34(0x1864)+_0x52f2ce),_0x3d1315[_0x476f34(0xe2c)]=!![],_0x3d1315['ua'][_0x476f34(0x133b)](_0x1cae1a,_0x193a6f);}}function _0x1a41c7(_0x230905){const _0x47ce9c=_0x5c8295;console[_0x47ce9c(0xf98)](_0x47ce9c(0x235c),_0x230905);let _0x44bba9=_0x3d1315[_0x47ce9c(0x2ca)];if(_0x230905['sessionId']){_0x44bba9=[];const _0x5caf4d=_0x230905[_0x47ce9c(0x1d2d)];_0x44bba9[_0x47ce9c(0x1f47)](_0x1ffba3(_0x230905[_0x47ce9c(0x1d2d)]));if(_0x44bba9[_0x47ce9c(0x402)]==0x0){console['warn']('call\x20with\x20session\x20Id\x20'+_0x5caf4d+_0x47ce9c(0x57b));return;}}for(let _0x6c5626=0x0;_0x6c5626<_0x44bba9[_0x47ce9c(0x402)];_0x6c5626++){const _0x5e5b2d=_0x44bba9[_0x6c5626];console['log']('hangupHook\x20->\x20sessionToHangup',_0x5e5b2d),_0x3d1315[_0x47ce9c(0xcad)](_0x5e5b2d);}}function _0x23836b(_0x2d262d){const _0x157df9=_0x5c8295;console[_0x157df9(0xf98)](_0x157df9(0x2694),_0x2d262d);let _0x1ac6c6;_0x2d262d[_0x157df9(0x1d2d)]?_0x1ac6c6=_0x1ffba3(_0x2d262d[_0x157df9(0x1d2d)]):_0x1ac6c6=_0x291e82(),_0x2d262d[_0x157df9(0x1d2d)]&&!_0x1ac6c6&&console['warn']('call\x20with\x20session\x20Id\x20'+_0x2d262d[_0x157df9(0x1d2d)]+_0x157df9(0x57b)),_0x1ac6c6&&_0x3d1315[_0x157df9(0x2336)](_0x1ac6c6);}function _0x291e82(){const _0x4dccca=_0x5c8295,_0x1cca58=_0x3f65c0()[_0x4dccca(0xc84)](_0x3d1315[_0x4dccca(0x2ca)],function(_0x5cb999){const _0x20954d=_0x4dccca;return _0x5cb999['incoming']&&!_0x5cb999[_0x20954d(0x1275)];});return _0x1cca58;}function _0x4af7d5(_0xe725fd){const _0x21c1ea=_0x5c8295;console[_0x21c1ea(0xf98)](_0x21c1ea(0x8b8),_0xe725fd);let _0x45cef6=_0x3d1315[_0x21c1ea(0x2ca)];if(_0xe725fd[_0x21c1ea(0x1d2d)]){_0x45cef6=[],_0x45cef6[_0x21c1ea(0x1f47)](_0x1ffba3(_0xe725fd[_0x21c1ea(0x1d2d)]));const _0xec5cdf=_0xe725fd[_0x21c1ea(0x1d2d)];if(_0x45cef6[_0x21c1ea(0x402)]==0x0){console['warn'](_0x21c1ea(0x284)+_0xec5cdf+'\x20not\x20found');return;}}for(let _0x40e4c3=0x0;_0x40e4c3<_0x45cef6[_0x21c1ea(0x402)];_0x40e4c3++){const _0x27158c=_0x45cef6[_0x40e4c3];_0x3d1315['hold'](_0x27158c);}}function _0x390fa6(_0x33aaec){const _0x53f082=_0x5c8295;console['debug'](_0x53f082(0x8b8),_0x33aaec);if(!_0x33aaec[_0x53f082(0x1d2d)]){console[_0x53f082(0x1980)](_0x53f082(0x286c));return;}const _0x43e50f=_0x1ffba3(_0x33aaec[_0x53f082(0x1d2d)]);if(!_0x43e50f){const _0x155beb=_0x33aaec[_0x53f082(0x1d2d)];console[_0x53f082(0x1859)](_0x53f082(0x284)+_0x155beb+_0x53f082(0x57b));return;}_0x3d1315[_0x53f082(0x584)](_0x43e50f);}function _0xdccc96(_0x2e3e67){const _0x154289=_0x5c8295;console['debug'](_0x154289(0x15da),_0x2e3e67);if(!_0x2e3e67[_0x154289(0x1d2d)]){console['error']('sessionId\x20required');return;}if(!_0x2e3e67['transferNumber']){console['error'](_0x154289(0x2926));return;}const _0x390207=_0x1ffba3(_0x2e3e67['sessionId']);if(!_0x390207){const _0x4968a2=_0x2e3e67['sessionId'];console[_0x154289(0x1859)](_0x154289(0x284)+_0x4968a2+_0x154289(0x57b));return;}_0x390207[_0x154289(0x1143)](_0x2e3e67[_0x154289(0x28bd)],{'eventHandlers':{'requestSucceeded':_0x210073(_0x390207,_0x154289(0x2668),_0x154289(0x25f2),0xbb8),'requestFailed':_0x210073(_0x390207,'requestFailed',_0x154289(0x25f2),0xbb8)}});}function _0x1ffba3(_0x494d22){const _0x9b2310=_0x5c8295;console[_0x9b2310(0xf98)](_0x9b2310(0x108d),_0x494d22,_0x3d1315[_0x9b2310(0x2ca)]);const _0x5f391d=_0x3f65c0()[_0x9b2310(0xc84)](_0x3d1315[_0x9b2310(0x2ca)],function(_0x56224b){const _0xe83944=_0x9b2310;return _0x56224b[_0xe83944(0x219c)]==_0x494d22;});return _0x5f391d;}function _0x4d58b7(_0x3ced96,_0x37a43e){const _0x4e9f0d=_0x5c8295;return console[_0x4e9f0d(0xf98)](_0x4e9f0d(0x2354),_0x3ced96,_0x37a43e),_0x413fcd({'url':_0x3ced96,'method':'GET','params':_0x37a43e});}function _0x1a94d3(_0x4cf28e,_0x37652b,_0x4bcadd){const _0x48f433=_0x5c8295,_0x29b6e0=_0x3f65c0()['find'](_0x4cf28e,function(_0x15c2d6){const _0x537315=a0_0x3bb9;return _0x3f65c0()[_0x537315(0xd4d)](_0x15c2d6,_0x37652b);});if(_0x29b6e0)return _0x3f65c0()[_0x48f433(0x15a3)](_0x29b6e0[_0x48f433(0x5f4)](_0x37652b,'')[_0x48f433(0x5f4)](_0x4bcadd||':',''));return![];}_0x3d1315[_0x5c8295(0x20de)]=_0x374fda['bind'](this),_0x3d1315['type']=_0x2d933b,_0x3d1315[_0x5c8295(0x133b)]=_0x293bc2,_0x3d1315['hold']=_0x19529d,_0x3d1315['refer']=_0x1696bc,_0x3d1315[_0x5c8295(0x243d)]=_0xe69f5b,_0x3d1315[_0x5c8295(0x584)]=_0x983ff0,_0x3d1315[_0x5c8295(0x2336)]=_0x5651d8,_0x3d1315[_0x5c8295(0xcad)]=_0x376125,_0x3d1315[_0x5c8295(0x1a30)]=_0x132991,_0x3d1315[_0x5c8295(0xd67)]=_0x42d69e,_0x3d1315['toggleDialpad']=_0x290d68,_0x3d1315[_0x5c8295(0x2b7)]=_0x37ff70,_0x3d1315['closeDialpad']=_0x25d1c3,_0x3d1315[_0x5c8295(0x427)]=_0xdf61c5,_0x3d1315[_0x5c8295(0x14e0)]=_0x2d6236,_0x3d1315[_0x5c8295(0x28a1)]=_0x43a265,_0x3d1315['targetSelected']=_0x5f1b31,_0x3d1315[_0x5c8295(0x2043)]=_0x961872,_0x3d1315[_0x5c8295(0x2304)]=_0x7eec0d,_0x5caa1e[_0x5c8295(0x16ad)](_0x5c8295(0x18d8),_0x41680a),_0x5caa1e['$on']('webrtc::logout',_0x8343ed),_0x5caa1e[_0x5c8295(0x16ad)](_0x5c8295(0x2111),_0x86a192),_0x5caa1e['$on'](_0x5c8295(0x1eb1),_0x29702e),_0x5caa1e['$on'](_0x5c8295(0x116f),function(){const _0x2782f5=_0x5c8295;console[_0x2782f5(0xf98)](_0x2782f5(0x8cc)),_0x2fcf15[_0x2782f5(0x1c5f)](_0x2782f5(0x9b9)),_0x2fcf15['removeAllListeners'](_0x2782f5(0x15ce)),_0x2fcf15[_0x2782f5(0x1c5f)](_0x2782f5(0x187f)),_0x2fcf15[_0x2782f5(0x1c5f)]('webbar:hold'),_0x2fcf15[_0x2782f5(0x1c5f)]('webbar:unhold'),_0x2fcf15['removeAllListeners'](_0x2782f5(0x41c));});}function _0x4eb318(){const _0x28684c=_0x313a4d;return{'restrict':'E','scope':{'conf':'='},'require':_0x28684c(0x234b),'controller':_0x28684c(0x11cb),'controllerAs':_0x28684c(0xdbe),'bindToController':!![],'templateUrl':_0xc1e95f};};_0x33aca6['$inject']=[_0x313a4d(0x10e8),'prefixes','required'];function _0x33aca6(_0x596ff4,_0x5e987c,_0x29ebd3){const _0x311abb=_0x313a4d,_0x24db2e=this;function _0x236ee4(){const _0x75520d=a0_0x3bb9;_0x596ff4[_0x75520d(0x2458)](_0x24db2e[_0x75520d(0x1e12)]);}function _0x587be0(_0x45feb4){const _0x34f534=a0_0x3bb9;_0x596ff4[_0x34f534(0x2458)](_0x45feb4);}_0x24db2e[_0x311abb(0x1a7c)]=_0x5e987c,_0x24db2e['required']=_0x29ebd3,_0x24db2e['closeDialog']=_0x587be0,_0x24db2e['call']=_0x236ee4;}const _0xfe22c8=_0x33aca6;;_0x1e5ae9[_0x313a4d(0x11c2)]=['$mdDialog','$q',_0x313a4d(0x247f),_0x313a4d(0x2ca),_0x313a4d(0x258b)],_0x34d685['$inject']=[_0x313a4d(0x1abe)];function _0x34d685(_0x1af0a3){const _0x293ef3=_0x313a4d;return{'restrict':'C','controller':[_0x293ef3(0x910),_0x293ef3(0x961),function(_0x54930b,_0x416667){function _0x437c20(){const _0x2f5a30=a0_0x3bb9;_0x416667[_0x2f5a30(0xdba)](_0x2f5a30(0x365),_0x2f5a30(0xc83)),_0x1af0a3(_0x25abeb,0x3e8);}function _0x25abeb(){const _0x5c494a=a0_0x3bb9;_0x416667[_0x5c494a(0xdba)]('display',_0x5c494a(0x1642)),_0x1af0a3(_0x437c20,0x3e8);}_0x437c20();}],'replace':!![]};}function _0x1e5ae9(_0x526e44,_0x20240d,_0x1213bf,_0x58bb6a,_0x147a48){const _0x235cc0=_0x313a4d,_0x5482e1=this;_0x5482e1[_0x235cc0(0x1189)]=_0x235cc0(0x1b98),_0x5482e1[_0x235cc0(0x2ca)]=_0x58bb6a,_0x5482e1[_0x235cc0(0x258b)]=_0x147a48,_0x5482e1[_0x235cc0(0x13f3)]=_0x44e470,_0x5482e1[_0x235cc0(0x672)]=_0x4f2c85,_0x5482e1[_0x235cc0(0x1edf)]=_0x1615cb,_0x5482e1[_0x235cc0(0x48e)]=_0xa63c26;function _0x58e876(){function _0x1946e0(){const _0x2f8739=a0_0x3bb9;return Math[_0x2f8739(0x19ad)]((0x1+Math[_0x2f8739(0x28e8)]())*0x10000)[_0x2f8739(0xd5f)](0x10)[_0x2f8739(0xe83)](0x1);}return _0x1946e0()+_0x1946e0()+'-'+_0x1946e0()+'-'+_0x1946e0()+'-'+_0x1946e0()+'-'+_0x1946e0()+_0x1946e0()+_0x1946e0();}function _0xa63c26(_0x13fba8,_0x380a3d){const _0x2ffd2b=_0x235cc0;console['log'](_0x2ffd2b(0x278));const _0x2e3475=_0x20240d[_0x2ffd2b(0xce3)](),_0x280c57=_0x380a3d||_0x13fba8[_0x2ffd2b(0x920)]['replace'](/^.*[\\/]/,''),_0x345a05=_0x280c57[_0x2ffd2b(0x10c8)]('.')[0x0];return _0x1213bf[_0x2ffd2b(0x1af7)][_0x2ffd2b(0x278)]({'uniqueid':_0x5482e1[_0x2ffd2b(0x258b)][_0x2ffd2b(0x4f8)],'filename':_0x345a05,'format':_0x2ffd2b(0x52d)})[_0x2ffd2b(0x2945)]['then'](function(_0x2fa480){const _0x86afde=_0x2ffd2b;_0x13fba8[_0x86afde(0x920)]=_0x345a05+_0x86afde(0xa44),_0x13fba8['mixmonitorid']=_0x2fa480['mixmonitorid'],_0x13fba8['status']='rec',_0x5482e1[_0x86afde(0x258b)][_0x86afde(0x234c)]=!![],_0x2e3475['resolve'](_0x13fba8);})[_0x2ffd2b(0x129e)](function(_0x50c2ef){const _0x2a18b6=_0x2ffd2b;_0x2e3475[_0x2a18b6(0xa6f)](_0x50c2ef);}),_0x2e3475['promise'];}function _0x1615cb(_0x127631){const _0x28b010=_0x235cc0;return console[_0x28b010(0x1a74)]('stopMonitor'),_0x1213bf[_0x28b010(0x1af7)][_0x28b010(0xe41)]({'uniqueid':_0x5482e1[_0x28b010(0x258b)][_0x28b010(0x4f8)],'mixmonitorid':_0x127631['mixmonitorid']})['$promise']['then'](function(){const _0x1cfe62=_0x28b010;_0x127631[_0x1cfe62(0x107b)]=_0x1cfe62(0x1e3e),_0x5482e1[_0x1cfe62(0x258b)][_0x1cfe62(0x234c)]=_0x3f65c0()[_0x1cfe62(0xa4e)](_0x5482e1[_0x1cfe62(0x258b)][_0x1cfe62(0x25fe)],{'status':_0x1cfe62(0x2493)});})[_0x28b010(0x129e)](function(_0xde8b7a){const _0x3f148c=_0x28b010;console[_0x3f148c(0x1980)](_0xde8b7a);});}function _0x4f2c85(){const _0xef2c7b=_0x235cc0,_0x47135e=_0x526e44[_0xef2c7b(0x212a)]({'skipHide':!![]})[_0xef2c7b(0x1189)]('Start\x20new\x20recording')[_0xef2c7b(0x199c)](_0xef2c7b(0x100f))[_0xef2c7b(0x1a02)](_0xef2c7b(0x2c9))[_0xef2c7b(0x4bd)](_0xef2c7b(0x2c9))['initialValue'](_0x58e876())['ok']('Start')[_0xef2c7b(0x6c3)](_0xef2c7b(0xcf0));_0x526e44[_0xef2c7b(0x2615)](_0x47135e)['then'](function(_0x13d558){return _0xa63c26({},_0x13d558);})[_0xef2c7b(0x146b)](function(_0x507bce){const _0xb24966=_0xef2c7b;_0x5482e1[_0xb24966(0x258b)][_0xb24966(0x25fe)]['push'](_0x507bce);});}function _0x44e470(){const _0x2cc3eb=_0x235cc0;_0x526e44[_0x2cc3eb(0x2458)]();}};_0x587550[_0x313a4d(0x11c2)]=[_0x313a4d(0x10e8),'$mdToast',_0x313a4d(0x2ca),_0x313a4d(0x258b),_0x313a4d(0x1669)];function _0x587550(_0x136b06,_0xf07bda,_0x45d4b8,_0x4e616a,_0x3dd7c1){const _0x55456a=_0x313a4d,_0x37cf4a=this,_0x5299e0=window[_0x55456a(0x158e)];_0x37cf4a[_0x55456a(0x1189)]=_0x55456a(0x90d),_0x37cf4a['sessions']=_0x45d4b8,_0x37cf4a['session']=_0x4e616a,_0x37cf4a[_0x55456a(0x1669)]=_0x3dd7c1,_0x37cf4a[_0x55456a(0xc8b)]=null;_0x45d4b8[_0x55456a(0x402)]&&(_0x37cf4a[_0x55456a(0xe1d)]=_0x45d4b8[0x0][_0x55456a(0xe7b)]);_0x37cf4a[_0x55456a(0x13f3)]=_0x465ab0,_0x37cf4a['transfer']=_0x571976;function _0x571976(){const _0x148e9b=_0x55456a;let _0x285e64,_0x21ea9c;const _0x507538=_0x3f65c0()['find'](_0x45d4b8,function(_0x1da18e){const _0x5d1be1=a0_0x3bb9;if(_0x1da18e[_0x5d1be1(0xe7b)]===_0x37cf4a[_0x5d1be1(0xe1d)])return _0x1da18e;});_0x507538[_0x148e9b(0x187b)]?(_0x285e64=_0x507538,_0x21ea9c=_0x37cf4a[_0x148e9b(0x258b)]):(_0x285e64=_0x37cf4a[_0x148e9b(0x258b)],_0x21ea9c=_0x507538),_0x21ea9c[_0x148e9b(0x1143)](_0x285e64[_0x148e9b(0xe7b)],{'replaces':_0x285e64,'eventHandlers':{'requestSucceeded':_0x30cc25(_0x4e616a,_0x148e9b(0x2668),'top\x20right',0xbb8,_0x37cf4a[_0x148e9b(0x1669)]),'requestFailed':_0x30cc25(_0x4e616a,'requestFailed',_0x148e9b(0x25f2),0xbb8,_0x37cf4a[_0x148e9b(0x1669)])}});}function _0x30cc25(_0x203709,_0x48ffc5,_0x4013d1,_0x37db54,_0x513450){const _0x5d29ba=_0x55456a;return console['debug'](_0x5d29ba(0x769),_0x203709,_0x48ffc5,_0x4013d1,_0x37db54),function(){const _0x3af687=_0x5d29ba;_0xf07bda[_0x3af687(0x2615)](_0xf07bda[_0x3af687(0x1e7b)]()['textContent'](_0x48ffc5)['position'](_0x4013d1)['hideDelay'](_0x37db54)),_0x203709[_0x3af687(0xcad)](),_0x5299e0&&_0x513450&&_0x5299e0[_0x3af687(0x10fc)](),_0x465ab0();};}function _0x465ab0(_0xd93796){const _0x137114=_0x55456a;_0x136b06[_0x137114(0x2458)](_0xd93796);}}const _0x2b1da8=_0x587550;;_0x326648[_0x313a4d(0x11c2)]=[_0x313a4d(0x10e8),_0x313a4d(0x190c),'devices'];function _0x326648(_0x292ddb,_0x40ed46,_0x2b0d0e){const _0x2d47b4=_0x313a4d,_0x56309d=this;_0x3f65c0()[_0x2d47b4(0x2640)](_0x2b0d0e,function(_0x30c335){const _0x2af2ae=_0x2d47b4;return _0x30c335[_0x2af2ae(0x484)]==='audioinput'&&(_0x30c335['deviceId']===_0x2af2ae(0x13b1)||_0x30c335[_0x2af2ae(0x2492)]===_0x2af2ae(0xa48))||_0x30c335['kind']===_0x2af2ae(0x1bcf)&&(_0x30c335[_0x2af2ae(0x2492)]===_0x2af2ae(0x13b1)||_0x30c335[_0x2af2ae(0x2492)]===_0x2af2ae(0xa48));}),_0x40ed46[_0x2d47b4(0x1903)]=_0x186f6f(_0x2b0d0e,_0x2d47b4(0x1bcf),_0x2d47b4(0x1903)),_0x40ed46[_0x2d47b4(0xbc8)]=_0x186f6f(_0x2b0d0e,_0x2d47b4(0x1bcf),_0x2d47b4(0xbc8)),_0x40ed46[_0x2d47b4(0xa0e)]=_0x186f6f(_0x2b0d0e,'audioinput',_0x2d47b4(0xa0e)),_0x40ed46[_0x2d47b4(0x22b8)]=_0x40ed46[_0x2d47b4(0x22b8)]||0.5,_0x40ed46[_0x2d47b4(0x17a)]=_0x40ed46[_0x2d47b4(0x17a)]||0.5,_0x40ed46[_0x2d47b4(0xe7e)]=_0x40ed46[_0x2d47b4(0xe7e)]||0x1,_0x40ed46[_0x2d47b4(0xac1)]=_0x40ed46[_0x2d47b4(0xac1)]||![],_0x40ed46['speakerMute']=_0x40ed46[_0x2d47b4(0x119d)]||![],_0x40ed46[_0x2d47b4(0xa34)]=_0x40ed46[_0x2d47b4(0xa34)]||![],_0x56309d['conf']=angular[_0x2d47b4(0x235a)](_0x40ed46),_0x56309d['devices']=_0x2b0d0e,_0x56309d[_0x2d47b4(0x2462)]=_0x20f4d3,_0x56309d['closeDialog']=_0x385c57,_0x56309d[_0x2d47b4(0x281a)]=_0x36a07e;function _0x36a07e(){const _0x33b194=_0x2d47b4;return _0x56309d['conf']['browserName'][_0x33b194(0x256e)]()==='chrome'||_0x56309d['conf'][_0x33b194(0x6cf)][_0x33b194(0x256e)]()===_0x33b194(0x91d)||_0x56309d[_0x33b194(0x190c)][_0x33b194(0x6cf)][_0x33b194(0x256e)]()==='safari';}function _0x186f6f(_0x1a53c4,_0x41540b,_0x5392f8){const _0x2fd912=_0x2d47b4;let _0x3dc8a7;if(!_0x40ed46[_0x5392f8])_0x3dc8a7=_0x3f65c0()[_0x2fd912(0xc84)](_0x1a53c4,function(_0x25db83){const _0x307e34=_0x2fd912;return _0x25db83[_0x307e34(0x484)]===_0x41540b;}),_0x3dc8a7&&(_0x40ed46[_0x5392f8]=_0x3dc8a7[_0x2fd912(0x2492)]);else{_0x3dc8a7=_0x3f65c0()[_0x2fd912(0xc84)](_0x1a53c4,function(_0x280038){const _0x4ef3ca=_0x2fd912;return _0x280038[_0x4ef3ca(0x2492)]===_0x40ed46[_0x5392f8];});if(_0x3dc8a7)return _0x3dc8a7[_0x2fd912(0x2492)];const _0xec84d2=_0x3f65c0()[_0x2fd912(0x99c)](_0x1a53c4,function(_0x1aabed){const _0x85a7f2=_0x2fd912;return _0x1aabed[_0x85a7f2(0x484)]===_0x41540b;});if(_0xec84d2>=0x0)return _0x1a53c4[_0xec84d2][_0x2fd912(0x2492)];}return _0x40ed46[_0x5392f8]||null;}function _0x20f4d3(){const _0x1d2680=_0x2d47b4;_0x292ddb[_0x1d2680(0x2458)](_0x56309d['conf']);}function _0x385c57(){const _0x9eb018=_0x2d47b4;_0x292ddb[_0x9eb018(0x2458)]();}}const _0x44e456=_0x326648;;const _0x188ed5=_0x4acfac['p']+_0x313a4d(0x11d);;_0x42999d[_0x313a4d(0x11c2)]=[_0x313a4d(0x1ee0),_0x313a4d(0x1768)],_0x3832bd[_0x313a4d(0x11c2)]=[_0x313a4d(0x1e49),_0x313a4d(0x2641)];function _0x3317dc(){return{'restrict':'E','scope':{'query':'=','filters':'=','search':'&'},'controller':_0x3832bd,'controllerAs':'vm','bindToController':!![],'templateUrl':_0x188ed5};}function _0x3832bd(_0x45f66f,_0x4185d0){const _0x30b24f=_0x313a4d,_0x8a4f6a=this;_0x8a4f6a[_0x30b24f(0x1a03)]={},_0x8a4f6a[_0x30b24f(0x9d3)]={},_0x8a4f6a[_0x30b24f(0x91a)]=_0x45f66f['localizationMap'],_0x8a4f6a[_0x30b24f(0x76c)]=_0x3c4ae8,_0x8a4f6a[_0x30b24f(0x1789)]=_0x631c64,_0x8a4f6a[_0x30b24f(0x180f)]=_0x44a5a9,_0x8a4f6a[_0x30b24f(0x806)]=_0x2b96f2,_0x8a4f6a['clearDate']=_0x1b550d,_0x8a4f6a['clearSelection']=_0xdc3aa4,_0x8a4f6a[_0x30b24f(0x8f0)]=_0x49eff2;function _0x3c4ae8(_0x4867cf){_0x27eac2(_0x4867cf);}function _0x631c64(_0x5926fc){const _0x44d7b5=_0x30b24f,_0x3b8def=_0x5926fc[_0x44d7b5(0x2293)];_0x8a4f6a['query'][_0x3b8def]?_0x8a4f6a[_0x44d7b5(0x1a03)][_0x3b8def]=_0x45f66f[_0x44d7b5(0x1ba2)](_0x8a4f6a[_0x44d7b5(0x1a56)][_0x3b8def]):_0x8a4f6a[_0x44d7b5(0x1a03)][_0x3b8def]={'dateStart':null};}function _0x44a5a9(_0x577ce5,_0x346151){const _0x44901d=_0x30b24f;_0x346151&&(_0x27eac2(_0x577ce5),_0x8a4f6a[_0x44901d(0x21da)]());}function _0x2b96f2(_0x195753){const _0x28f2e0=_0x30b24f,_0x17e248=_0x195753[_0x28f2e0(0x2293)];_0x8a4f6a[_0x28f2e0(0x1a03)][_0x17e248][_0x28f2e0(0x1aca)]?_0x8a4f6a['query'][_0x17e248]={'$gte':_0x2deec6()(_0x8a4f6a[_0x28f2e0(0x1a03)][_0x17e248][_0x28f2e0(0x1aca)])['utcOffset'](0x0,!![])[_0x28f2e0(0x22b0)](),'$lte':_0x2deec6()(_0x8a4f6a[_0x28f2e0(0x1a03)][_0x17e248][_0x28f2e0(0x1b6d)])['utcOffset'](0x0,!![])['add'](0x17,_0x28f2e0(0xdfa))[_0x28f2e0(0x387)](0x3b,_0x28f2e0(0x142))[_0x28f2e0(0x387)](0x3b,_0x28f2e0(0xcf5))[_0x28f2e0(0x22b0)]()}:_0x8a4f6a[_0x28f2e0(0x1a56)][_0x17e248]=undefined,_0x8a4f6a[_0x28f2e0(0x21da)]();}function _0x1b550d(_0x5daadf){const _0x3acbbf=_0x30b24f,_0x11564a=_0x5daadf[_0x3acbbf(0x2293)];_0x8a4f6a[_0x3acbbf(0x1a03)][_0x11564a]={'dateStart':null},delete _0x8a4f6a[_0x3acbbf(0x1a56)][_0x11564a],_0x8a4f6a[_0x3acbbf(0x21da)]();}function _0x49eff2(_0x277a2c){const _0x979c63=_0x30b24f,_0x42bce9=_0x277a2c['key'],_0x4e5ea9=_0x277a2c[_0x979c63(0x421)]||'id';_0x8a4f6a[_0x979c63(0x1a56)][_0x42bce9]=_0x3f65c0()[_0x979c63(0x205)](_0x277a2c[_0x979c63(0xa08)],_0x4e5ea9),_0x27eac2(_0x277a2c),_0x8a4f6a['search']();}function _0xdc3aa4(_0xebc4f5){const _0x4988f3=_0x30b24f,_0x8d3b99=_0xebc4f5['key'],_0x3a7c25=_0xebc4f5['ngValue']||'id';_0x8a4f6a[_0x4988f3(0x1a56)][_0x8d3b99]=_0xebc4f5[_0x4988f3(0x292f)]===![]?[_0x3f65c0()[_0x4988f3(0x6d8)](_0xebc4f5[_0x4988f3(0xa08)])[_0x3a7c25]]:[],_0x27eac2(_0xebc4f5),_0x8a4f6a[_0x4988f3(0x21da)]();}function _0x27eac2(_0x136917){const _0xc3711b=_0x30b24f,_0x5a3739=_0x136917[_0xc3711b(0x2293)],_0x1add45={'param':_0x8a4f6a[_0xc3711b(0x1a56)][_0x5a3739],'resources':_0x136917[_0xc3711b(0xa08)],'placeholder':_0x136917[_0xc3711b(0x1a02)],'ngValue':_0x136917[_0xc3711b(0x421)]};_0x4185d0[_0xc3711b(0x56a)](_0x1add45)['then'](function(_0x6f8d38){const _0x563027=_0xc3711b;_0x8a4f6a[_0x563027(0x9d3)][_0x5a3739]=_0x6f8d38;});}}function _0x42999d(_0x1caabf,_0x7e5a1e){const _0x45a8db={'localizationMap':_0x7e5a1e,'setSelectedDate':_0x1cdc3d};function _0x1cdc3d(_0x9b22b9){const _0x382d4f=a0_0x3bb9,_0x327205=new Date(_0x2deec6()[_0x382d4f(0x1ab5)](_0x9b22b9[_0x382d4f(0xf57)])['format'](_0x382d4f(0x17d5))),_0x333221=new Date(_0x2deec6()['utc'](_0x9b22b9[_0x382d4f(0x17bd)])[_0x382d4f(0x22b0)](_0x382d4f(0x17d5))),_0x3e6c98={'dateStart':new Date(_0x327205[_0x382d4f(0x1d3)](),_0x327205['getMonth'](),_0x327205['getDate']()),'dateEnd':new Date(_0x333221[_0x382d4f(0x1d3)](),_0x333221[_0x382d4f(0x2185)](),_0x333221[_0x382d4f(0xec3)]())};return _0x3e6c98[_0x382d4f(0x1c3e)]=_0x14256c(_0x3e6c98),_0x3e6c98;}function _0x14256c(_0x5c171c){const _0x19f307=a0_0x3bb9;if(_0x2deec6()(_0x5c171c[_0x19f307(0x1aca)])['isSame'](_0x5c171c['dateEnd'])){if(_0x136818(_0x5c171c))return _0x45a8db[_0x19f307(0x91a)]['Today'];else return _0xd95ac(_0x5c171c)?_0x45a8db[_0x19f307(0x91a)][_0x19f307(0xb55)]:_0x1caabf(_0x19f307(0x1a10))(_0x5c171c[_0x19f307(0x1aca)],'dd\x20MMM\x20yyyy');}else{if(_0x2ed653(_0x5c171c))return _0x45a8db[_0x19f307(0x91a)]['This\x20Week'];else{if(_0x54b78a(_0x5c171c))return _0x45a8db[_0x19f307(0x91a)][_0x19f307(0x2063)];else{if(_0xb6d85(_0x5c171c))return _0x45a8db[_0x19f307(0x91a)][_0x19f307(0x1724)];else{if(_0x16436a(_0x5c171c))return _0x45a8db[_0x19f307(0x91a)]['Last\x20Month'];else{if(_0x176cf6(_0x5c171c))return _0x45a8db[_0x19f307(0x91a)]['This\x20Year'];else return _0x540cf0(_0x5c171c)?_0x45a8db[_0x19f307(0x91a)][_0x19f307(0x2844)]:_0x1caabf(_0x19f307(0x1a10))(_0x5c171c[_0x19f307(0x1aca)],'dd'+(_0x5c171c[_0x19f307(0x1aca)][_0x19f307(0x2185)]()!==_0x5c171c[_0x19f307(0x1b6d)][_0x19f307(0x2185)]()||_0x5c171c['dateStart'][_0x19f307(0x1d3)]()!==_0x5c171c[_0x19f307(0x1b6d)][_0x19f307(0x1d3)]()?'\x20MMM':'')+(_0x5c171c[_0x19f307(0x1aca)][_0x19f307(0x1d3)]()!==_0x5c171c[_0x19f307(0x1b6d)][_0x19f307(0x1d3)]()?_0x19f307(0x2386):''))+_0x19f307(0x1315)+_0x1caabf(_0x19f307(0x1a10))(_0x5c171c[_0x19f307(0x1b6d)],'dd\x20MMM\x20yyyy');}}}}}}function _0x136818(_0x42221c){const _0x143351=a0_0x3bb9;return _0x2deec6()()[_0x143351(0x1fcc)]('day')[_0x143351(0x9ca)](_0x42221c[_0x143351(0x1aca)]);}function _0xd95ac(_0x11c74c){const _0x4dec35=a0_0x3bb9;return _0x2deec6()()[_0x4dec35(0xd7b)](0x1,'days')[_0x4dec35(0x1fcc)]('day')[_0x4dec35(0x9ca)](_0x11c74c[_0x4dec35(0x1aca)]);}function _0x2ed653(_0x255b67){const _0x2833f9=a0_0x3bb9;return _0x2deec6()()['startOf'](_0x2833f9(0x1fd4))[_0x2833f9(0x9ca)](_0x255b67['dateStart'],'day')&&_0x2deec6()()[_0x2833f9(0x824)](_0x2833f9(0x1fd4))[_0x2833f9(0x9ca)](_0x255b67[_0x2833f9(0x1b6d)],'day');}function _0x54b78a(_0x35a61b){const _0x38e255=a0_0x3bb9;return _0x2deec6()()[_0x38e255(0xd7b)](0x1,_0x38e255(0x1610))[_0x38e255(0x1fcc)]('isoWeek')['isSame'](_0x35a61b[_0x38e255(0x1aca)],'day')&&_0x2deec6()()[_0x38e255(0xd7b)](0x1,_0x38e255(0x1610))[_0x38e255(0x824)](_0x38e255(0x1fd4))[_0x38e255(0x9ca)](_0x35a61b[_0x38e255(0x1b6d)],_0x38e255(0x1066));}function _0xb6d85(_0x1e5ee2){const _0x256192=a0_0x3bb9;return _0x2deec6()()['startOf'](_0x256192(0x12b7))['isSame'](_0x1e5ee2[_0x256192(0x1aca)],'day')&&_0x2deec6()()[_0x256192(0x824)](_0x256192(0x12b7))[_0x256192(0x9ca)](_0x1e5ee2[_0x256192(0x1b6d)],'day');}function _0x16436a(_0x443ce1){const _0x4e05ce=a0_0x3bb9;return _0x2deec6()()[_0x4e05ce(0xd7b)](0x1,_0x4e05ce(0x4fe))[_0x4e05ce(0x1fcc)](_0x4e05ce(0x12b7))['isSame'](_0x443ce1[_0x4e05ce(0x1aca)],_0x4e05ce(0x1066))&&_0x2deec6()()['subtract'](0x1,'months')[_0x4e05ce(0x824)](_0x4e05ce(0x12b7))[_0x4e05ce(0x9ca)](_0x443ce1[_0x4e05ce(0x1b6d)],_0x4e05ce(0x1066));}function _0x176cf6(_0x192240){const _0x15579b=a0_0x3bb9;return _0x2deec6()()[_0x15579b(0x1fcc)](_0x15579b(0xadc))[_0x15579b(0x9ca)](_0x192240[_0x15579b(0x1aca)],_0x15579b(0x1066))&&_0x2deec6()()[_0x15579b(0x824)](_0x15579b(0xadc))[_0x15579b(0x9ca)](_0x192240[_0x15579b(0x1b6d)],_0x15579b(0x1066));}function _0x540cf0(_0x39168f){const _0x5cd30b=a0_0x3bb9;return _0x2deec6()()[_0x5cd30b(0xd7b)](0x1,_0x5cd30b(0x22bb))[_0x5cd30b(0x1fcc)](_0x5cd30b(0xadc))['isSame'](_0x39168f[_0x5cd30b(0x1aca)],_0x5cd30b(0x1066))&&_0x2deec6()()[_0x5cd30b(0xd7b)](0x1,_0x5cd30b(0x22bb))[_0x5cd30b(0x824)](_0x5cd30b(0xadc))[_0x5cd30b(0x9ca)](_0x39168f[_0x5cd30b(0x1b6d)],_0x5cd30b(0x1066));}return _0x45a8db;};function _0xe80888(){return{'restrict':'A','scope':{'msRandomClass':'='},'link':function(_0x170762,_0x15a145){const _0x352e4a=a0_0x3bb9,_0x4f41f6=_0x170762[_0x352e4a(0xe36)][Math[_0x352e4a(0x19ad)](Math[_0x352e4a(0x28e8)]()*_0x170762[_0x352e4a(0xe36)]['length'])];_0x15a145[_0x352e4a(0x14cf)](_0x4f41f6);}};}const _0x377109=_0xe80888;;_0x167510[_0x313a4d(0x11c2)]=[_0x313a4d(0x247f)];function _0x167510(_0x5246af){return{'restrict':'E','scope':{'id':'=','model':'=','download':'='},'replace':!![],'link':function(_0x2f2d31,_0x3454e3){const _0x3d0f79=a0_0x3bb9;let _0x5e5399=![];const _0x49b029=document['createElement'](_0x3d0f79(0x922));!_0x2f2d31['download']&&_0x49b029[_0x3d0f79(0x1652)](_0x3d0f79(0x1ea9),_0x3d0f79(0x10f6)),_0x49b029['setAttribute']('preload',_0x3d0f79(0x1642)),_0x49b029['setAttribute'](_0x3d0f79(0x1606),''),_0x49b029[_0x3d0f79(0x1652)](_0x3d0f79(0x2376),_0x3d0f79(0x1cd7)),_0x49b029[_0x3d0f79(0x1652)](_0x3d0f79(0x1006),'\x20'),_0x49b029['onplay']=function(_0x40bbfb){const _0x23e957=_0x3d0f79;!_0x5e5399&&(_0x5e5399=!![],_0x40bbfb[_0x23e957(0x115c)](),_0x5246af[_0x2f2d31[_0x23e957(0x1320)]||'voiceRecording']['download']({'id':_0x2f2d31['id']})[_0x23e957(0x2945)]['then'](function(_0x309136){const _0x59b732=_0x23e957,_0x559724=[_0x309136[_0x59b732(0x2eb)]],_0x34f6c3=new Blob(_0x559724,{'type':_0x309136[_0x59b732(0x1142)]});_0x49b029[_0x59b732(0x1652)](_0x59b732(0x1142),_0x309136['type']),_0x49b029[_0x59b732(0x1652)]('src',URL[_0x59b732(0x1c58)](_0x34f6c3)),_0x49b029[_0x59b732(0x1fee)]();})[_0x23e957(0x129e)](function(_0x24eac0){const _0x2090e8=_0x23e957;console[_0x2090e8(0x1980)](_0x24eac0);}));},_0x3454e3[_0x3d0f79(0x1034)](_0x49b029);}};}const _0x1342a7=_0x167510;;function _0x170d13(){return{'restrict':'A','link':function(_0x430ce1,_0x490200){const _0x3e7c6b=a0_0x3bb9,_0x3991d1=angular['element'](_0x3e7c6b(0x2e9));_0x490200[_0x3e7c6b(0x21dc)](_0x3991d1),_0x3991d1[_0x3e7c6b(0x1034)](_0x490200);}};}const _0x548a0d=_0x170d13;var _0x452247=_0x4acfac(0x1703),_0x2a05b9=_0x4acfac['n'](_0x452247);;_0xd7ec00[_0x313a4d(0x11c2)]=['$timeout',_0x313a4d(0x14bc),_0x313a4d(0x216c),_0x313a4d(0x22c5)];function _0x2cf52a(){const _0x4c2761=_0x313a4d;let _0x30dc89={'wheelSpeed':0x1,'wheelPropagation':![],'swipePropagation':!![],'minScrollbarLength':null,'maxScrollbarLength':null,'useBothWheelAxes':![],'useKeyboard':!![],'suppressScrollX':![],'suppressScrollY':![],'scrollXMarginOffset':0x0,'scrollYMarginOffset':0x0,'stopPropagationOnClick':!![]};this[_0x4c2761(0x980)]=function(){function _0x24509a(){return _0x30dc89;}const _0x5aa8a4={'getConfig':_0x24509a};return _0x5aa8a4;};function _0x4883b4(_0x4a2d36){const _0x177cf2=_0x4c2761;_0x30dc89=angular[_0x177cf2(0xd9b)]({},_0x30dc89,_0x4a2d36);}this['config']=_0x4883b4;}function _0xd7ec00(_0x6855fc,_0x1f02ad,_0x139512,_0x472e0e){return{'restrict':'AE','compile':function(_0x5d37be){const _0x14d1f8=a0_0x3bb9;if(_0x472e0e[_0x14d1f8(0xfe8)](_0x14d1f8(0x9c8)))return;if(_0x472e0e[_0x14d1f8(0xfe8)](_0x14d1f8(0xc4a))&&_0x139512[_0x14d1f8(0x2574)]())return;return _0x5d37be[_0x14d1f8(0x14cf)](_0x14d1f8(0x1169)),function _0x4f5fc4(_0x41f7fb,_0x29b11d,_0x3c883d){const _0x2ca4f9=_0x14d1f8;let _0x5bb684={};_0x3c883d[_0x2ca4f9(0x27fe)]&&(_0x5bb684=_0x41f7fb[_0x2ca4f9(0xb0c)](_0x3c883d['msScroll']));_0x5bb684=angular[_0x2ca4f9(0xd9b)]({},_0x1f02ad[_0x2ca4f9(0xfe8)](),_0x5bb684),_0x2a05b9()['initialize'](_0x29b11d[0x0],_0x5bb684);function _0x171eb9(){const _0x55e6cb=_0x2ca4f9;_0x2a05b9()[_0x55e6cb(0x18e1)](_0x29b11d[0x0]);}_0x29b11d['on'](_0x2ca4f9(0xf49),_0x171eb9),_0x41f7fb[_0x2ca4f9(0x21e8)](function(){const _0x367ea2=_0x2ca4f9;return _0x29b11d[_0x367ea2(0x94f)](_0x367ea2(0x9d4));},function(_0x5e0ede,_0x3f250b){const _0x31a971=_0x2ca4f9;if(angular[_0x31a971(0x1619)](_0x5e0ede)||angular['equals'](_0x5e0ede,_0x3f250b))return;_0x171eb9();}),_0x41f7fb['$watch'](function(){const _0x10470f=_0x2ca4f9;return _0x29b11d[_0x10470f(0x94f)]('scrollWidth');},function(_0x518b01,_0x2bd72c){const _0x1816f8=_0x2ca4f9;if(angular[_0x1816f8(0x1619)](_0x518b01)||angular['equals'](_0x518b01,_0x2bd72c))return;_0x171eb9();}),_0x41f7fb[_0x2ca4f9(0x16ad)](_0x2ca4f9(0x116f),function(){const _0x12db33=_0x2ca4f9;_0x29b11d[_0x12db33(0x151d)](_0x12db33(0xf49)),_0x2a05b9()[_0x12db33(0x2906)](_0x29b11d[0x0]);});};}};};const _0x25b69f=_0x4acfac['p']+_0x313a4d(0xc23);;_0x252a64['$inject']=[_0x313a4d(0x4d8)],_0x1ffb23['$inject']=[_0x313a4d(0x910),_0x313a4d(0x961),'$timeout'];function _0x1ffb23(_0x2b63d5,_0x3b498e,_0x5b37d1){const _0x25d0cf=_0x313a4d,_0x508b11=this;_0x508b11[_0x25d0cf(0x1822)]=!![],_0x508b11[_0x25d0cf(0x1a56)]=undefined,_0x508b11[_0x25d0cf(0x760)]={'debounce':_0x508b11[_0x25d0cf(0x1ebe)]||0x0};const _0x509912=_0x508b11[_0x25d0cf(0xe9c)]&&_0x508b11[_0x25d0cf(0xe9c)]==_0x25d0cf(0x1185)?!![]:![];_0x508b11['resultsLoading']=![],_0x508b11[_0x25d0cf(0x943)]=null,_0x508b11['selectedResultIndex']=0x0,_0x508b11[_0x25d0cf(0x112a)]=![],_0x508b11[_0x25d0cf(0x3d4)]=_0x3682b5,_0x508b11['populateResults']=_0x1642ab,_0x508b11[_0x25d0cf(0x5a8)]=_0x58104f,_0x508b11[_0x25d0cf(0x2800)]=_0x1faa28,_0x508b11[_0x25d0cf(0x1fb1)]=_0x537d1f,_0x508b11[_0x25d0cf(0xbad)]=_0x4a1993,_0x508b11[_0x25d0cf(0x6b1)]=_0x2261ef,_0x508b11['handleMouseenter']=_0x9cb022,_0x508b11[_0x25d0cf(0x2747)]=_0x5b705f,_0x508b11[_0x25d0cf(0x28ce)]=_0x40cfeb,_0x508b11[_0x25d0cf(0xa5d)]=_0x44ae70;function _0x3682b5(){const _0x4d01dd=_0x25d0cf;_0x2b63d5[_0x4d01dd(0x21e8)](_0x4d01dd(0x24c1),function(_0x52a215,_0x8fef49){const _0x39f006=_0x4d01dd;if(angular[_0x39f006(0x1619)](_0x52a215))return;if(angular[_0x39f006(0x26b4)](_0x52a215,_0x8fef49))return;if(_0x508b11[_0x39f006(0x1822)]){if(_0x52a215)_0x2b63d5[_0x39f006(0x5a8)]();else return;}const _0x130565=_0x2b63d5[_0x39f006(0x2870)]['$eval'](_0x508b11['onSearch'],{'query':_0x52a215}),_0x52973f=angular[_0x39f006(0x1bbb)](_0x130565),_0x5b4370=_0x130565&&!!_0x130565[_0x39f006(0x146b)];_0x52973f&&_0x508b11['populateResults'](_0x130565),_0x5b4370&&(_0x508b11['resultsLoading']=!![],_0x130565[_0x39f006(0x146b)](function(_0x2afe9d){const _0xdff331=_0x39f006;_0x508b11[_0xdff331(0x1fb3)](_0x2afe9d);},function(){_0x508b11['populateResults']([]);})[_0x39f006(0x1ec6)](function(){const _0x3516c4=_0x39f006;_0x508b11[_0x3516c4(0x22b2)]=![];}));});}function _0x1642ab(_0x4467f8){const _0x2075b4=_0x25d0cf;if(_0x508b11[_0x2075b4(0x1822)])return;const _0x2c5aba=angular[_0x2075b4(0x1bbb)](_0x4467f8),_0xad704c=_0x4467f8===null;if(!_0x2c5aba&&!_0xad704c)return;_0x508b11[_0x2075b4(0x57f)]=0x0,_0x508b11[_0x2075b4(0x943)]=_0x4467f8;}function _0x58104f(){const _0x1a2a10=_0x25d0cf;_0x508b11['collapsed']=![],_0x2b63d5[_0x1a2a10(0x5a8)](),_0x508b11['onExpand']&&angular[_0x1a2a10(0x1e2c)](_0x508b11['onExpand'])&&_0x508b11[_0x1a2a10(0x24c8)]();}function _0x1faa28(){const _0x111410=_0x25d0cf;_0x508b11[_0x111410(0x1a56)]='',_0x508b11[_0x111410(0x1fb3)](null),_0x508b11[_0x111410(0x1822)]=!![],_0x2b63d5[_0x111410(0x2800)](),_0x508b11[_0x111410(0xa2d)]&&angular[_0x111410(0x1e2c)](_0x508b11[_0x111410(0xa2d)])&&_0x508b11[_0x111410(0xa2d)]();}function _0x537d1f(){const _0x2268cb=_0x25d0cf;if(!_0x509912)return;_0x508b11[_0x2268cb(0x2800)]();}function _0x4a1993(_0x3c99e7){const _0x5e7d8e=_0x25d0cf;_0x3c99e7[_0x5e7d8e(0x115c)]();}function _0x2261ef(_0x5ebb27){const _0xa88df6=_0x25d0cf,_0x525507=_0x5ebb27[_0xa88df6(0x1252)],_0x4c0bea=[0x1b,0x26,0x28];_0x4c0bea['indexOf'](_0x525507)>-0x1&&_0x5ebb27[_0xa88df6(0x115c)]();switch(_0x525507){case 0xd:if(!_0x508b11['results'])return;_0x508b11['handleResultClick'](_0x508b11[_0xa88df6(0x943)][_0x508b11[_0xa88df6(0x57f)]]);break;case 0x1b:_0x508b11[_0xa88df6(0x2800)]();break;case 0x26:_0x508b11['selectedResultIndex']-0x1>=0x0&&(_0x508b11[_0xa88df6(0x57f)]--,_0x508b11[_0xa88df6(0xa5d)]());break;case 0x28:if(!_0x508b11[_0xa88df6(0x943)])return;_0x508b11[_0xa88df6(0x57f)]+0x1<_0x508b11[_0xa88df6(0x943)][_0xa88df6(0x402)]&&(_0x508b11['selectedResultIndex']++,_0x508b11[_0xa88df6(0xa5d)]());break;default:break;}}function _0x9cb022(_0x21427a){const _0xf868b8=_0x25d0cf;if(_0x508b11['ignoreMouseEvents'])return;_0x508b11[_0xf868b8(0x57f)]=_0x21427a;}function _0x5b705f(){const _0x31457e=_0x25d0cf;_0x508b11['ignoreMouseEvents']=!![],_0x5b37d1['cancel'](_0x508b11['mouseEventIgnoreTimeout']),_0x508b11[_0x31457e(0x36c)]=_0x5b37d1(function(){const _0x5b1b0a=_0x31457e;_0x508b11[_0x5b1b0a(0x112a)]=![];},0xfa);}function _0x40cfeb(_0x43df67){const _0x133175=_0x25d0cf;_0x508b11['onResultClick']&&_0x508b11[_0x133175(0x206a)]({'item':_0x43df67}),_0x508b11[_0x133175(0x2800)]();}function _0x44ae70(){const _0x56d50b=_0x25d0cf,_0x4467db=_0x3b498e[_0x56d50b(0xc84)](_0x56d50b(0xc8e)),_0x27e35a=angular[_0x56d50b(0x1853)](_0x4467db[_0x56d50b(0xc84)](_0x56d50b(0x18cd))[_0x508b11['selectedResultIndex']]);if(_0x4467db&&_0x27e35a){const _0x1f5f89=_0x27e35a['position']()[_0x56d50b(0x244e)]-0x8,_0x31b2ab=_0x27e35a['position']()[_0x56d50b(0x244e)]+_0x27e35a[_0x56d50b(0x9c9)]()+0x8;_0x508b11[_0x56d50b(0x2747)](),_0x4467db[_0x56d50b(0xa49)]()>_0x1f5f89&&_0x4467db['scrollTop'](_0x1f5f89),_0x31b2ab>_0x4467db['height']()+_0x4467db[_0x56d50b(0xa49)]()&&_0x4467db[_0x56d50b(0xa49)](_0x31b2ab-_0x4467db[_0x56d50b(0x92b)]());}}}function _0x252a64(_0x3103f7){const _0x2a0658=_0x313a4d;return{'restrict':'E','scope':{},'require':_0x2a0658(0x90e),'controller':_0x2a0658(0x28d1),'bindToController':{'query':'=?','debounce':'=?','direction':'@','iconColor':'@','onSearch':'@','onResultClick':'&?','onExpand':'&?','onCollapse':'&?','collapseOnBlur':'@'},'templateUrl':_0x25b69f,'compile':function(_0x63831){const _0x250bc1=_0x2a0658;return _0x63831[_0x250bc1(0x14cf)]('ms-search-bar'),function _0x4dfec0(_0x142386,_0x41225b){const _0x38bef0=_0x250bc1,_0x184fd1=_0x3103f7[_0x38bef0(0xc84)](_0x38bef0(0x2586));function _0x3cad00(){const _0xa208bb=_0x38bef0;_0x41225b[_0xa208bb(0x14cf)](_0xa208bb(0x257f));if(_0x142386['vm'][_0xa208bb(0x26cc)]===_0xa208bb(0x1982)){_0x41225b['addClass'](_0xa208bb(0x1982));const _0x1487b5=_0x41225b[_0xa208bb(0x254)](_0xa208bb(0xe4e));if(_0x1487b5)_0x1487b5[_0xa208bb(0x14cf)](_0xa208bb(0x45a));}_0x184fd1[_0xa208bb(0x14cf)](_0xa208bb(0x1c28));}function _0x510f29(){const _0x507db=_0x38bef0;_0x41225b['removeClass'](_0x507db(0x257f));if(_0x142386['vm'][_0x507db(0x26cc)]===_0x507db(0x1982)){_0x41225b['removeClass'](_0x507db(0x1982));const _0x4ccc61=_0x41225b[_0x507db(0x254)](_0x507db(0xe4e));if(_0x4ccc61)_0x4ccc61[_0x507db(0x1973)]('h-128');}_0x184fd1['removeClass'](_0x507db(0x1c28));}_0x142386[_0x38bef0(0x2800)]=_0x510f29,_0x142386[_0x38bef0(0x5a8)]=_0x3cad00;};}};};const _0x586380=_0x4acfac['p']+_0x313a4d(0x6e2);;_0x240b2a[_0x313a4d(0x11c2)]=['$scope','$cookies','$document','$timeout','$q',_0x313a4d(0x1f9a)];function _0x240b2a(_0x23576f,_0x51dadd,_0x19e327,_0x1d5779,_0x5bad5a,_0x1bd9fc){const _0x8df7a3=_0x313a4d,_0x31d8d7=this;_0x31d8d7[_0x8df7a3(0x1a56)]='',_0x31d8d7[_0x8df7a3(0x760)]={'debounce':0x12c},_0x31d8d7['resultsLoading']=![],_0x31d8d7['selectedResultIndex']=0x0,_0x31d8d7['ignoreMouseEvents']=![],_0x31d8d7[_0x8df7a3(0x1c5)]=![],_0x31d8d7['results']=null,_0x31d8d7['shortcuts']=[],_0x31d8d7[_0x8df7a3(0x2697)]={'ghostClass':'ghost','forceFallback':!![],'fallbackClass':_0x8df7a3(0x10fe),'onSort':function(){_0x31d8d7['saveShortcuts']();}};function _0x28e118(){const _0x4e8f40=_0x8df7a3;_0x31d8d7[_0x4e8f40(0xc61)]()[_0x4e8f40(0x146b)](function(_0x4ae425){const _0x4bea0c=_0x4e8f40;_0x31d8d7[_0x4bea0c(0x1b59)]=_0x4ae425,_0x31d8d7[_0x4bea0c(0x1b59)][_0x4bea0c(0x402)]>0x0&&(_0x31d8d7[_0x4bea0c(0x943)]=_0x4ae425);}),_0x23576f[_0x4e8f40(0x21e8)](_0x4e8f40(0x1341),function(_0x28da28,_0x4208b6){const _0x190230=_0x4e8f40;if(angular[_0x190230(0x1619)](_0x28da28))return;if(angular[_0x190230(0x26b4)](_0x28da28,_0x4208b6))return;_0x31d8d7[_0x190230(0x22b2)]=!![],_0x31d8d7['populateResults']()[_0x190230(0x146b)](function(_0x1ae481){const _0x4584b8=_0x190230;_0x31d8d7[_0x4584b8(0x943)]=_0x1ae481;},function(){const _0x1fa351=_0x190230;_0x31d8d7[_0x1fa351(0x943)]=[];})['finally'](function(){const _0x1898bf=_0x190230;_0x31d8d7[_0x1898bf(0x22b2)]=![];});});}function _0x1eada7(){const _0x3b32a4=_0x8df7a3;let _0x23c592=[];const _0x4d02cd=_0x1bd9fc[_0x3b32a4(0x795)](),_0x324d60=_0x5bad5a['defer']();for(let _0x37a253=0x0;_0x37a253<_0x4d02cd[_0x3b32a4(0x402)];_0x37a253++){_0x4d02cd[_0x37a253][_0x3b32a4(0x135a)]&&_0x23c592[_0x3b32a4(0x1f47)](_0x4d02cd[_0x37a253]);}if(_0x31d8d7['query']){_0x23c592=_0x23c592['filter'](function(_0x3ff997){const _0x374e3e=_0x3b32a4;if(_0x3ff997['title'][_0x374e3e(0x256e)]()[_0x374e3e(0xa4e)](_0x31d8d7[_0x374e3e(0x1a56)][_0x374e3e(0x256e)]()))return!![];});for(let _0x1882bc=0x0;_0x1882bc<_0x23c592['length'];_0x1882bc++){_0x23c592[_0x1882bc][_0x3b32a4(0x1e8b)]=![];for(let _0x880e0d=0x0;_0x880e0d<_0x31d8d7[_0x3b32a4(0x1b59)][_0x3b32a4(0x402)];_0x880e0d++){if(_0x31d8d7[_0x3b32a4(0x1b59)][_0x880e0d][_0x3b32a4(0x208c)]===_0x23c592[_0x1882bc]['_id']){_0x23c592[_0x1882bc][_0x3b32a4(0x1e8b)]=!![];break;}}}}else _0x31d8d7[_0x3b32a4(0x1b59)][_0x3b32a4(0x402)]>0x0&&(_0x23c592=_0x31d8d7[_0x3b32a4(0x1b59)]);return _0x31d8d7['selectedResultIndex']=0x0,_0x1d5779(function(){const _0x35c826=_0x3b32a4;_0x324d60[_0x35c826(0x2922)](_0x23c592);},0xfa),_0x324d60[_0x3b32a4(0xb9c)];}function _0x1c21ad(){const _0xc17939=_0x8df7a3,_0x4d28bf=_0x5bad5a['defer']();let _0x4735c6=angular[_0xc17939(0xb08)](_0x51dadd['get'](_0xc17939(0x23a7)));return angular[_0xc17939(0x1619)](_0x4735c6)&&(_0x4735c6=[{'title':_0xc17939(0xca8),'icon':'icon-account-multiple','state':'app.staff.agents','weight':0x5,'children':[],'uisref':'app.staff.agents','hasShortcut':!![]},{'title':_0xc17939(0x1dd9),'icon':_0xc17939(0x1430),'state':_0xc17939(0x198b),'weight':0xa,'children':[],'uisref':'app.settings.license','hasShortcut':!![]}],_0x51dadd[_0xc17939(0x17b7)]('motion.shortcuts',angular[_0xc17939(0x217d)](_0x4735c6))),_0x4d28bf[_0xc17939(0x2922)](_0x4735c6),_0x4d28bf[_0xc17939(0xb9c)];}function _0x37fce0(){const _0x3a9b22=_0x8df7a3,_0x2f5bd1=_0x5bad5a[_0x3a9b22(0xce3)]();return _0x51dadd[_0x3a9b22(0x17b7)](_0x3a9b22(0x23a7),angular['toJson'](_0x31d8d7['shortcuts'])),_0x1d5779(function(){const _0x48100a=_0x3a9b22;_0x2f5bd1[_0x48100a(0x2922)]({'success':!![]});},0xfa),_0x2f5bd1['promise'];}function _0x6c944b(_0x4abd6a){const _0x418f63=_0x8df7a3;_0x4abd6a[_0x418f63(0x1e8b)]=!![],_0x31d8d7[_0x418f63(0x1b59)][_0x418f63(0x1f47)](_0x4abd6a),_0x31d8d7['saveShortcuts']();}function _0x5600c5(_0x45a061){const _0xbd2242=_0x8df7a3;_0x45a061['hasShortcut']=![];for(let _0x5811cf=0x0;_0x5811cf<_0x31d8d7['shortcuts'][_0xbd2242(0x402)];_0x5811cf++){_0x31d8d7[_0xbd2242(0x1b59)][_0x5811cf][_0xbd2242(0x208c)]===_0x45a061[_0xbd2242(0x208c)]&&(_0x31d8d7['shortcuts'][_0xbd2242(0x1f7d)](_0x5811cf,0x1),!_0x31d8d7[_0xbd2242(0x1a56)]&&(_0x31d8d7['shortcuts']['length']===0x0?_0x31d8d7[_0xbd2242(0x943)]=null:_0x5811cf>=_0x31d8d7[_0xbd2242(0x1b59)][_0xbd2242(0x402)]&&(_0x31d8d7[_0xbd2242(0x57f)]=_0x31d8d7[_0xbd2242(0x1b59)][_0xbd2242(0x402)]-0x1)));}_0x31d8d7[_0xbd2242(0x227a)]();}function _0x87fddd(_0x386748){const _0x518e38=_0x8df7a3;_0x386748[_0x518e38(0x1e8b)]?_0x31d8d7[_0x518e38(0x2120)](_0x386748):_0x31d8d7['addShortcut'](_0x386748);}function _0x4be735(_0x39d124){_0x39d124['preventDefault']();}function _0x507c9b(_0x144b15){const _0x468a7f=_0x8df7a3,_0x334a9f=_0x144b15[_0x468a7f(0x1252)],_0x3dd74f=[0x26,0x28];_0x3dd74f[_0x468a7f(0x172b)](_0x334a9f)>-0x1&&_0x144b15[_0x468a7f(0x115c)]();switch(_0x334a9f){case 0xd:_0x31d8d7['handleResultClick'](_0x31d8d7['results'][_0x31d8d7[_0x468a7f(0x57f)]]);break;case 0x26:_0x31d8d7[_0x468a7f(0x57f)]-0x1>=0x0&&(_0x31d8d7[_0x468a7f(0x57f)]--,_0x31d8d7[_0x468a7f(0xa5d)]());break;case 0x28:_0x31d8d7[_0x468a7f(0x57f)]+0x1<_0x31d8d7[_0x468a7f(0x943)]['length']&&(_0x31d8d7[_0x468a7f(0x57f)]++,_0x31d8d7[_0x468a7f(0xa5d)]());break;default:break;}}function _0x44bf20(_0x12eb0b){const _0x4df252=_0x8df7a3;if(_0x31d8d7[_0x4df252(0x112a)])return;_0x31d8d7[_0x4df252(0x57f)]=_0x12eb0b;}function _0x2ccc49(){const _0x10119b=_0x8df7a3;_0x31d8d7[_0x10119b(0x112a)]=!![],_0x1d5779[_0x10119b(0x6c3)](_0x31d8d7[_0x10119b(0x36c)]),_0x31d8d7[_0x10119b(0x36c)]=_0x1d5779(function(){const _0x3e6a3b=_0x10119b;_0x31d8d7[_0x3e6a3b(0x112a)]=![];},0xfa);}function _0xcbb30f(){const _0x55a569=_0x8df7a3,_0x5b4ce5=_0x19e327[_0x55a569(0xc84)](_0x55a569(0x15ad))[_0x55a569(0xc84)](_0x55a569(0x774)),_0x591911=angular[_0x55a569(0x1853)](_0x5b4ce5[_0x55a569(0xc84)](_0x55a569(0x18cd))[_0x31d8d7[_0x55a569(0x57f)]]);if(_0x5b4ce5&&_0x591911){const _0x28b86e=_0x591911[_0x55a569(0x21ca)]()['top']-0x8,_0x26f99c=_0x591911[_0x55a569(0x21ca)]()[_0x55a569(0x244e)]+_0x591911[_0x55a569(0x9c9)]()+0x8;_0x31d8d7[_0x55a569(0x2747)](),_0x5b4ce5[_0x55a569(0xa49)]()>_0x28b86e&&_0x5b4ce5['scrollTop'](_0x28b86e),_0x26f99c>_0x5b4ce5[_0x55a569(0x92b)]()+_0x5b4ce5['scrollTop']()&&_0x5b4ce5[_0x55a569(0xa49)](_0x26f99c-_0x5b4ce5['height']());}}function _0x560315(){const _0xce4960=_0x8df7a3;_0x31d8d7[_0xce4960(0x1c5)]=!_0x31d8d7[_0xce4960(0x1c5)];}_0x31d8d7[_0x8df7a3(0x1fb3)]=_0x1eada7,_0x31d8d7[_0x8df7a3(0xc61)]=_0x1c21ad,_0x31d8d7['saveShortcuts']=_0x37fce0,_0x31d8d7[_0x8df7a3(0x10a2)]=_0x6c944b,_0x31d8d7['removeShortcut']=_0x5600c5,_0x31d8d7[_0x8df7a3(0x28ce)]=_0x87fddd,_0x31d8d7['absorbEvent']=_0x4be735,_0x31d8d7[_0x8df7a3(0x6b1)]=_0x507c9b,_0x31d8d7[_0x8df7a3(0x1d3f)]=_0x44bf20,_0x31d8d7[_0x8df7a3(0x2747)]=_0x2ccc49,_0x31d8d7[_0x8df7a3(0xa5d)]=_0xcbb30f,_0x31d8d7[_0x8df7a3(0x2b1)]=_0x560315,_0x28e118();}function _0x468a3e(){const _0x44f153=_0x313a4d;return{'restrict':'E','scope':{},'require':_0x44f153(0x237a),'controller':_0x44f153(0x2093),'bindToController':{},'templateUrl':_0x586380,'compile':function(_0xcbb35){const _0x3d55ce=_0x44f153;return _0xcbb35[_0x3d55ce(0x14cf)]('ms-shortcuts'),function _0x244bab(){};}};};function _0x1e0a4c(){return{'restrict':'A','require':'^mdSidenav','link':function(_0x2c0272,_0x3ead6e,_0x131578,_0x461737){const _0x2cea47=a0_0x3bb9;_0x2c0272[_0x2cea47(0x21e8)](function(){const _0x37e3fe=_0x2cea47;return _0x461737[_0x37e3fe(0xe7a)]()&&!_0x461737['isLockedOpen']();},function(_0x1679af){const _0x7eda1b=_0x2cea47;if(angular['isUndefined'](_0x1679af))return;_0x3ead6e[_0x7eda1b(0x3fd)]()[_0x7eda1b(0x1851)]('full-height',_0x1679af),angular['element']('html')[_0x7eda1b(0x1851)](_0x7eda1b(0x1a43),_0x1679af);});}};}const _0x16868d=_0x1e0a4c;;_0x40a771[_0x313a4d(0x11c2)]=[_0x313a4d(0x1240)];function _0x40a771(_0xf87108){return{'restrict':'E','link':function(_0x15d3f3,_0xd0f240){const _0xa6671c=a0_0x3bb9,_0x2e340b=_0x15d3f3['$on'](_0xa6671c(0x26ab),function(){_0xf87108['leave'](_0xd0f240)['then'](function(){_0x2e340b(),_0x15d3f3=null,_0xd0f240=null;});});}};}const _0x2116b5=_0x40a771;;const _0x1a29bb=_0x4acfac['p']+_0x313a4d(0x14c1);;const _0x291ad4=_0x4acfac['p']+_0x313a4d(0x259d);;const _0x540085=_0x4acfac['p']+_0x313a4d(0x1bc1);;_0xf12080[_0x313a4d(0x11c2)]=['$timeout'],_0x57e9da[_0x313a4d(0x11c2)]=[_0x313a4d(0x1abe)];function _0x57e9da(_0x16438b){const _0x53fa47=_0x313a4d,_0x543b9a=this;_0x543b9a[_0x53fa47(0x18c9)]=undefined,_0x543b9a['orientation']=_0x53fa47(0x2890),_0x543b9a[_0x53fa47(0x21b9)]=[],_0x543b9a[_0x53fa47(0x2384)]=undefined,_0x543b9a[_0x53fa47(0x1e7)]=0x1;function _0x1e13f8(_0xd4ae23){const _0x241680=_0x53fa47;return!(angular[_0x241680(0x1619)](_0xd4ae23)||_0xd4ae23<0x1||_0xd4ae23>_0x543b9a['steps']['length']);}function _0x5ca09a(_0xead3c2){const _0x93cc92=_0x53fa47;_0x543b9a[_0x93cc92(0x2581)]=_0xead3c2||_0x93cc92(0x2890);}function _0x4619c9(_0x1473bd){const _0x27cae0=_0x53fa47;_0x543b9a[_0x27cae0(0x18c9)]=_0x1473bd;}function _0x405908(){const _0x1c9645=_0x53fa47;_0x543b9a[_0x1c9645(0x284f)](0x1);}function _0x4ece9a(_0x40f703){const _0x144680=_0x53fa47;if(!_0x1e13f8(_0x40f703))return null;return!!_0x543b9a['steps'][_0x40f703-0x1]['scope'][_0x144680(0x176e)];}function _0x458774(_0x43e66e,_0x2f58ee,_0x119ce5){const _0x6ae42f=_0x53fa47,_0x1e3522={'element':_0x43e66e,'scope':_0x2f58ee,'form':_0x119ce5,'stepNumber':_0x2f58ee[_0x6ae42f(0x249a)]||_0x543b9a[_0x6ae42f(0x21b9)][_0x6ae42f(0x402)]+0x1,'stepTitle':_0x2f58ee[_0x6ae42f(0x1710)],'stepTitleTranslate':_0x2f58ee[_0x6ae42f(0x1608)]};return _0x543b9a[_0x6ae42f(0x21b9)][_0x6ae42f(0x1f47)](_0x1e3522),_0x543b9a[_0x6ae42f(0x21b9)][_0x6ae42f(0x28fa)](function(_0x33aba0,_0x450f2b){const _0x1bd36f=_0x6ae42f;return _0x33aba0[_0x1bd36f(0x20cf)]-_0x450f2b[_0x1bd36f(0x20cf)];}),_0x1e3522;}function _0x2a9b03(){const _0x72f8ab=_0x53fa47;_0x543b9a[_0x72f8ab(0x284f)](_0x543b9a[_0x72f8ab(0x1e7)]);}function _0x4233bd(){_0x16438b(function(){const _0x368620=a0_0x3bb9;for(let _0x2226ac=0x0;_0x2226ac<_0x543b9a['steps'][_0x368620(0x402)];_0x2226ac++){_0x543b9a[_0x368620(0x21b9)][_0x2226ac][_0x368620(0x247c)][_0x368620(0x1968)](),_0x543b9a[_0x368620(0x21b9)][_0x2226ac][_0x368620(0x247c)][_0x368620(0x354)]();}_0x543b9a['mainForm'][_0x368620(0x1968)](),_0x543b9a[_0x368620(0x18c9)][_0x368620(0x354)](),_0x405908();});}function _0x412118(_0x31d72d){const _0x166739=_0x53fa47;if(!_0x1e13f8(_0x31d72d))return;_0x543b9a['currentStepNumber']=_0x31d72d;if(_0x543b9a[_0x166739(0x2581)]===_0x166739(0x2890)){for(let _0x173251=0x0;_0x173251<_0x543b9a[_0x166739(0x21b9)][_0x166739(0x402)];_0x173251++){_0x543b9a[_0x166739(0x21b9)][_0x173251]['element'][_0x166739(0x2458)]();}_0x543b9a[_0x166739(0x21b9)][_0x543b9a['currentStepNumber']-0x1][_0x166739(0x1853)]['show']();}else{if(_0x543b9a['orientation']===_0x166739(0x2ff)){for(let _0x30b7e1=0x0;_0x30b7e1<_0x543b9a['steps'][_0x166739(0x402)];_0x30b7e1++){_0x543b9a[_0x166739(0x21b9)][_0x30b7e1][_0x166739(0x1853)][_0x166739(0xc84)](_0x166739(0x1a6c))[_0x166739(0x2458)]();}_0x543b9a[_0x166739(0x21b9)][_0x543b9a[_0x166739(0x1e7)]-0x1][_0x166739(0x1853)]['find'](_0x166739(0x1a6c))[_0x166739(0x2615)]();}}}function _0x2b6742(_0x59b67b){const _0x9be35d=_0x53fa47;if(_0x4ece9a(_0x59b67b))return;_0x543b9a[_0x9be35d(0x284f)](_0x59b67b);}function _0x2b7e9b(){const _0x19f4c7=_0x53fa47;let _0x4f98a7=_0x543b9a[_0x19f4c7(0x1e7)]-0x1;for(let _0x1b4372=_0x4f98a7;_0x1b4372>=0x1;_0x1b4372--){if(!_0x4ece9a(_0x1b4372)){_0x4f98a7=_0x1b4372;break;}}_0x543b9a[_0x19f4c7(0x284f)](_0x4f98a7);}function _0x51b821(){const _0x238e0e=_0x53fa47;let _0x53d5be=_0x543b9a[_0x238e0e(0x1e7)]+0x1;for(let _0xdace31=_0x53d5be;_0xdace31<=_0x543b9a['steps'][_0x238e0e(0x402)];_0xdace31++){if(!_0x4ece9a(_0xdace31)){_0x53d5be=_0xdace31;break;}}_0x543b9a[_0x238e0e(0x284f)](_0x53d5be);}function _0x567703(){const _0x4e5251=_0x53fa47;_0x543b9a[_0x4e5251(0x284f)](_0x543b9a[_0x4e5251(0x21b9)][_0x4e5251(0x402)]);}function _0x2d973a(){const _0x3e94a5=_0x53fa47;return _0x543b9a[_0x3e94a5(0x1e7)]===0x1;}function _0x597d7d(){const _0x343d61=_0x53fa47;return _0x543b9a['currentStepNumber']===_0x543b9a[_0x343d61(0x21b9)][_0x343d61(0x402)];}function _0x1013e2(_0x4cb7c0){if(!_0x1e13f8(_0x4cb7c0))return null;return _0x543b9a['currentStepNumber']===_0x4cb7c0;}function _0x1f8bd0(_0x53e67c){const _0x296430=_0x53fa47;if(!_0x1e13f8(_0x53e67c))return null;return _0x543b9a['steps'][_0x53e67c-0x1][_0x296430(0x1886)]['optionalStep'];}function _0x46bf49(_0x192dee){const _0x1b9a52=_0x53fa47;if(!_0x1e13f8(_0x192dee))return null;if(_0x1f8bd0(_0x192dee))return!![];return _0x543b9a[_0x1b9a52(0x21b9)][_0x192dee-0x1][_0x1b9a52(0x247c)][_0x1b9a52(0x19c)];}function _0x45c82f(_0x42821d){if(!_0x1e13f8(_0x42821d))return null;let _0x2fa138=![];for(let _0x2a5ab2=0x1;_0x2a5ab2<_0x42821d;_0x2a5ab2++){if(!_0x46bf49(_0x2a5ab2)){_0x2fa138=!![];break;}}return _0x2fa138;}function _0x4b085d(_0x2e3b69){const _0x39844f=_0x53fa47;return!_0x4ece9a(_0x2e3b69[_0x39844f(0x20cf)]);}function _0x56a9ff(){const _0x24cb03=_0x53fa47;return _0x543b9a[_0x24cb03(0x18c9)][_0x24cb03(0x19c)];}_0x543b9a[_0x53fa47(0x1f61)]=_0x5ca09a,_0x543b9a[_0x53fa47(0x148f)]=_0x4619c9,_0x543b9a[_0x53fa47(0x1810)]=_0x458774,_0x543b9a[_0x53fa47(0x25d8)]=_0x2a9b03,_0x543b9a['resetForm']=_0x4233bd,_0x543b9a['setCurrentStep']=_0x412118,_0x543b9a[_0x53fa47(0x7e8)]=_0x2b6742,_0x543b9a[_0x53fa47(0x18f4)]=_0x2b7e9b,_0x543b9a[_0x53fa47(0x16a3)]=_0x51b821,_0x543b9a['gotoFirstStep']=_0x405908,_0x543b9a['gotoLastStep']=_0x567703,_0x543b9a[_0x53fa47(0x1d31)]=_0x2d973a,_0x543b9a[_0x53fa47(0x281)]=_0x597d7d,_0x543b9a['isStepCurrent']=_0x1013e2,_0x543b9a[_0x53fa47(0x1337)]=_0x45c82f,_0x543b9a[_0x53fa47(0x25b0)]=_0x1f8bd0,_0x543b9a[_0x53fa47(0x319)]=_0x4ece9a,_0x543b9a['filterHiddenStep']=_0x4b085d,_0x543b9a[_0x53fa47(0x20b4)]=_0x46bf49,_0x543b9a[_0x53fa47(0x49d)]=_0x1e13f8,_0x543b9a[_0x53fa47(0x19a1)]=_0x56a9ff;}function _0x18a71a(){const _0x88eabc=_0x313a4d;return{'restrict':'A','scope':{},'require':[_0x88eabc(0x247c),'msHorizontalStepper'],'priority':0x3e9,'controller':'MsStepperController\x20as\x20MsStepper','bindToController':{'model':_0x88eabc(0x1453)},'transclude':!![],'templateUrl':_0x1a29bb,'compile':function(_0x3bb3a4){const _0x471727=_0x88eabc;return _0x3bb3a4[_0x471727(0x14cf)](_0x471727(0x21bf)),function _0x17b80c(_0x40c9b2,_0x678a1c,_0x3512bc,_0x3efdf9){const _0xdb1d4d=_0x471727,_0x12f851=_0x3efdf9[0x0],_0x4c8751=_0x3efdf9[0x1];_0x4c8751[_0xdb1d4d(0x1f61)](_0xdb1d4d(0x2890)),_0x4c8751[_0xdb1d4d(0x148f)](_0x12f851),_0x4c8751['setupSteps']();};}};}function _0x33da0f(){const _0x53d59c=_0x313a4d;return{'restrict':'E','require':[_0x53d59c(0x247c),_0x53d59c(0x1b44)],'priority':0x3e8,'scope':{'step':'=?','stepTitle':'=?','stepTitleTranslate':'=?','optionalStep':'=?','hideStep':'=?'},'compile':function(_0x4d4d59){const _0x19a6a4=_0x53d59c;return _0x4d4d59[_0x19a6a4(0x14cf)](_0x19a6a4(0x8da)),function _0x7cf59c(_0x5e6e07,_0x549bb2,_0xe2fda1,_0x58d166){const _0x3b717d=_0x19a6a4,_0xd6b886=_0x58d166[0x0],_0x549676=_0x58d166[0x1];_0x5e6e07[_0x3b717d(0xc60)]=angular[_0x3b717d(0x5ef)](_0xe2fda1[_0x3b717d(0xc60)]),_0x549676['registerStep'](_0x549bb2,_0x5e6e07,_0xd6b886),_0x549bb2[_0x3b717d(0x2458)]();};}};}function _0xf12080(_0x2391e6){const _0xf9f95f=_0x313a4d;return{'restrict':'A','scope':{},'require':['form',_0xf9f95f(0x1fd2)],'priority':0x3e9,'controller':'MsStepperController\x20as\x20MsStepper','bindToController':{'model':'=ngModel'},'transclude':!![],'templateUrl':_0x291ad4,'compile':function(_0x321c7e){const _0x33fdc4=_0xf9f95f;return _0x321c7e[_0x33fdc4(0x14cf)](_0x33fdc4(0x21bf)),function _0x3d765b(_0x232b4c,_0x3fe59c,_0x3354e0,_0x3816f0){const _0x313904=_0x3816f0[0x0],_0x32dfbb=_0x3816f0[0x1];_0x2391e6(function(){const _0x373776=a0_0x3bb9;_0x32dfbb[_0x373776(0x1f61)](_0x373776(0x2ff)),_0x32dfbb[_0x373776(0x148f)](_0x313904),_0x32dfbb[_0x373776(0x25d8)]();});};}};}function _0xa54b11(){const _0x396d49=_0x313a4d;return{'restrict':'E','require':[_0x396d49(0x247c),_0x396d49(0x279)],'priority':0x3e8,'scope':{'step':'=?','stepTitle':'=?','stepTitleTranslate':'=?','optionalStep':'=?','hideStep':'=?'},'transclude':!![],'templateUrl':-_0x540085,'compile':function(_0x5c87c6){const _0x363223=_0x396d49;return _0x5c87c6['addClass'](_0x363223(0x8da)),function _0x21f541(_0x4835d3,_0x3d5a32,_0x59e6ed,_0x43aad5){const _0x2d3f3f=_0x363223,_0x290965=_0x43aad5[0x0],_0x498858=_0x43aad5[0x1];_0x4835d3[_0x2d3f3f(0xc60)]=angular[_0x2d3f3f(0x5ef)](_0x59e6ed[_0x2d3f3f(0xc60)]),_0x4835d3['stepInfo']=_0x498858[_0x2d3f3f(0x1810)](_0x3d5a32,_0x4835d3,_0x290965),_0x4835d3[_0x2d3f3f(0x1a68)]=_0x498858,_0x3d5a32[_0x2d3f3f(0xc84)](_0x2d3f3f(0x1a6c))[_0x2d3f3f(0x2458)]();};}};};const _0x3dc907=_0x4acfac['p']+'src/js/modules/core/directives/ms-tab-scroll/ms-tab-scroll.html/ms-tab-scroll.html';;function _0x2f80ee(){const _0x48d654=_0x313a4d,_0x1e17c9=this;_0x1e17c9[_0x48d654(0x1a75)]=_0x6c9045,_0x1e17c9[_0x48d654(0x209d)]=_0x526aac;function _0x6c9045(_0x158e62){const _0x252cf6=_0x48d654;_0x158e62==_0x252cf6(0x25f5)?$('#tab-container')[_0x252cf6(0x1edf)]()[_0x252cf6(0x233b)]({'scrollLeft':'-=400'},0x3e8):$(_0x252cf6(0x406))[_0x252cf6(0x1edf)]()['animate']({'scrollLeft':_0x252cf6(0x1c68)},0x3e8);}function _0x526aac(_0x38b440){const _0x6aaa4a=_0x48d654;switch(_0x2fe6f4()){case _0x6aaa4a(0x2495):return!![];case'left':return _0x38b440==_0x6aaa4a(0x25f5)?!![]:![];case _0x6aaa4a(0x2236):return _0x38b440==_0x6aaa4a(0x2236)?!![]:![];case _0x6aaa4a(0x1642):return![];default:return![];}}function _0x2fe6f4(){const _0x1daff5=_0x48d654,_0x3caff9=document[_0x1daff5(0x156b)](_0x1daff5(0x707)),_0x127b4c=document[_0x1daff5(0x156b)]('tab-container');if(_0x127b4c[_0x1daff5(0x2402)]>_0x3caff9[_0x1daff5(0x2402)]&&_0x3caff9['scrollLeft']==0x0&&_0x127b4c[_0x1daff5(0x2490)]==0x0)return _0x1daff5(0x2236);else{if(_0x127b4c[_0x1daff5(0x2402)]>_0x3caff9[_0x1daff5(0x2402)]&&_0x127b4c[_0x1daff5(0x2490)]>_0x3caff9[_0x1daff5(0x2490)]&&_0x3caff9[_0x1daff5(0x2402)]+_0x127b4c[_0x1daff5(0x2490)]>=_0x127b4c['scrollWidth'])return'left';else return _0x127b4c[_0x1daff5(0x2402)]>_0x3caff9[_0x1daff5(0x2402)]&&_0x127b4c[_0x1daff5(0x2490)]>_0x3caff9[_0x1daff5(0x2490)]&&_0x3caff9[_0x1daff5(0x2402)]+_0x127b4c[_0x1daff5(0x2490)]<_0x127b4c[_0x1daff5(0x2402)]?_0x1daff5(0x2495):'none';}}}function _0x222191(){const _0x130769=_0x313a4d;return{'restrict':'E','scope':{},'transclude':!![],'controller':_0x130769(0x6fa),'controllerAs':'vm','bindToController':!![],'templateUrl':_0x3dc907,'compile':function(_0x1a2c69){const _0x2299dc=_0x130769;return _0x1a2c69[_0x2299dc(0x14cf)](_0x2299dc(0x241c)),function _0x5a6803(){};}};};_0x3f00c1[_0x313a4d(0x11c2)]=[_0x313a4d(0x1abe),'$q'];function _0x4ef3b2(){const _0x5c8ee7=_0x313a4d,_0x794d80=this;_0x794d80['scrollEl']=undefined,_0x794d80['setScrollEl']=_0x3f681d,_0x794d80[_0x5c8ee7(0x8a5)]=_0xdaaaa0;function _0x3f681d(_0x34dc25){const _0x1d651e=_0x5c8ee7;_0x794d80[_0x1d651e(0x28f8)]=_0x34dc25;}function _0xdaaaa0(){const _0x47ad64=_0x5c8ee7;return _0x794d80[_0x47ad64(0x28f8)];}}function _0x209ece(){const _0x557ae4=_0x313a4d;return{'scope':{'msTimeline':'=?','loadMore':_0x557ae4(0x2773)},'controller':_0x557ae4(0x31f),'compile':function(_0x1b2cd6){const _0x2fb31f=_0x557ae4;return _0x1b2cd6['addClass'](_0x2fb31f(0x1869)),function _0x2bc3e2(_0x39d891,_0x340a4e,_0x2e88c3,_0x4765e2){const _0x3c1f17=_0x2fb31f,_0x34486d=angular[_0x3c1f17(0x1853)]('');_0x340a4e[_0x3c1f17(0x1034)](_0x34486d);let _0x4c6424={'scrollEl':_0x3c1f17(0x1ae6)};_0x4c6424=angular['extend'](_0x4c6424,_0x39d891[_0x3c1f17(0x870)],{});const _0x32a8d7=angular[_0x3c1f17(0x1853)](_0x4c6424['scrollEl']);_0x4765e2[_0x3c1f17(0x1e1c)](_0x32a8d7);const _0x31bfd9=0x90;_0x4eebe2();function _0x1f5053(){const _0x1943f9=_0x3c1f17;_0x32a8d7[_0x1943f9(0xa49)]()+_0x32a8d7['height']()+_0x31bfd9>_0x34486d[_0x1943f9(0x21ca)]()['top']&&(_0x34486d[_0x1943f9(0x14cf)](_0x1943f9(0x2615)),_0x48f8d6(),_0x39d891['loadMore']()[_0x1943f9(0x146b)](function(){const _0xe14981=_0x1943f9;_0x34486d[_0xe14981(0x1973)](_0xe14981(0x2615)),_0x4eebe2();},function(){const _0x164fcc=_0x1943f9;_0x34486d[_0x164fcc(0x2640)]();}));}function _0x4eebe2(){const _0x411864=_0x3c1f17;_0x32a8d7['on'](_0x411864(0x1a49),_0x1f5053);}function _0x48f8d6(){const _0x54827d=_0x3c1f17;_0x32a8d7['off'](_0x54827d(0x1a49),_0x1f5053);}_0x39d891['$on'](_0x3c1f17(0x116f),function(){_0x48f8d6();});};}};}function _0x3f00c1(_0xb546c0,_0x4a70b4){const _0x15f6ea=_0x313a4d;return{'scope':!![],'require':_0x15f6ea(0x55a),'compile':function(_0x28f190){const _0x2e7f60=_0x15f6ea;return _0x28f190[_0x2e7f60(0x14cf)]('ms-timeline-item')[_0x2e7f60(0x14cf)](_0x2e7f60(0x28fc)),function _0x9dbaab(_0x5a3cc9,_0x2989fe,_0x5cb7aa,_0x574f42){const _0x2ba17b=_0x2e7f60,_0x1f44bc=0x48;let _0x55fc75=![],_0x2a9758=![];const _0x5765bb=_0x574f42[_0x2ba17b(0x8a5)]();_0x3c7c5d();function _0x3c7c5d(){const _0x5aa045=_0x2ba17b;_0x2989fe[_0x5aa045(0xc84)](_0x5aa045(0x2939))?_0x5a3cc9[_0x5aa045(0x16ad)](_0x5aa045(0x7ea),function(_0xc3fefc,_0x4f70f0){const _0x383b6f=_0x5aa045,_0x3bcb6f=angular[_0x383b6f(0x1853)](_0x4f70f0[0x0]);_0x50a22b(_0x3bcb6f)['then'](function(){_0xb546c0(function(){_0x55fc75=!![];});});}):_0x50a22b(_0x2989fe)[_0x5aa045(0x146b)](function(){_0xb546c0(function(){_0x55fc75=!![];});}),_0x5765bb['on']('scroll',_0x48578f),_0x48578f();}const _0x59a523=_0x5a3cc9[_0x2ba17b(0x21e8)](function(){return _0x55fc75&&_0x2a9758;},function(_0x157da7,_0x5aca74){const _0x1ff0fc=_0x2ba17b;if(angular[_0x1ff0fc(0x26b4)](_0x157da7,_0x5aca74))return;_0x157da7&&(_0x2989fe['removeClass'](_0x1ff0fc(0x28fc))[_0x1ff0fc(0x14cf)]('animate'),_0x59a523());},!![]);function _0x50a22b(_0x8b8e56){const _0x16803e=_0x2ba17b,_0x1eeef2=_0x4a70b4['defer'](),_0x5f19cd=_0x8b8e56[_0x16803e(0xc84)](_0x16803e(0x28f5));return _0x5f19cd[_0x16803e(0x402)]>0x0?_0x5f19cd['on'](_0x16803e(0x2412),function(){const _0x39b976=_0x16803e;_0x1eeef2[_0x39b976(0x2922)](_0x39b976(0xdcd));}):_0x1eeef2['resolve']('No\x20images'),_0x1eeef2[_0x16803e(0xb9c)];}function _0x48578f(){const _0xeb88a1=_0x2ba17b;_0x5765bb[_0xeb88a1(0xa49)]()+_0x5765bb[_0xeb88a1(0x92b)]()>_0x2989fe[_0xeb88a1(0x21ca)]()[_0xeb88a1(0x244e)]+_0x1f44bc&&(_0xb546c0(function(){_0x2a9758=!![];}),_0x5765bb[_0xeb88a1(0x151d)](_0xeb88a1(0x1a49),_0x48578f));}};}};};_0x56fe58['$inject']=[_0x313a4d(0x910),_0x313a4d(0x3e3),_0x313a4d(0x961),'$compile','$q','api',_0x313a4d(0x1fe4)];function _0x56fe58(_0x2a1114,_0x1c344e,_0x24ed6c,_0x3e2e9e,_0x4bd18a,_0x26bfe2,_0x1868c1){const _0x3720d1=_0x313a4d;typeof String['prototype']['trim']!==_0x3720d1(0xe9f)&&(String[_0x3720d1(0xefd)][_0x3720d1(0x15a3)]=function(){const _0x370b2e=_0x3720d1;return this[_0x370b2e(0x5f4)](/^\s+|\s+$/g,'');});_0x2a1114[_0x3720d1(0xb64)]=_0x1c344e[_0x3720d1(0xb64)]||_0x1c344e[_0x3720d1(0x2a1)];_0x24ed6c[_0x3720d1(0x1931)]()[_0x3720d1(0x15a3)]()[_0x3720d1(0x402)]===0x0?_0x24ed6c[_0x3720d1(0x1034)](_0x3e2e9e(_0x3720d1(0x1180))(_0x2a1114)):_0x24ed6c[_0x3720d1(0x1034)](_0x3e2e9e(_0x24ed6c['contents']())(_0x2a1114));_0x2a1114[_0x3720d1(0x2765)]=_0x2a1114[_0x3720d1(0x1767)]||0x3e8,_0x2a1114[_0x3720d1(0x71a)]=null,_0x2a1114[_0x3720d1(0x262c)]=null,_0x2a1114['timeoutId']=null,_0x2a1114[_0x3720d1(0xd21)]=_0x2a1114[_0x3720d1(0x23be)]&&parseInt(_0x2a1114[_0x3720d1(0x23be)],0xa)>=0x0?parseInt(_0x2a1114[_0x3720d1(0x23be)],0xa):undefined,_0x2a1114[_0x3720d1(0x2582)]=![],_0x2a1114[_0x3720d1(0x21e8)](_0x3720d1(0x2653),function(_0x335d67,_0x1ae383){const _0x18a49c=_0x3720d1;_0x335d67!==_0x1ae383&&_0x2a1114[_0x18a49c(0x2582)]&&_0x2a1114[_0x18a49c(0x48e)]();}),_0x2a1114[_0x3720d1(0x16ad)]('timer-start',function(){const _0x1d66af=_0x3720d1;_0x2a1114[_0x1d66af(0x48e)]();}),_0x2a1114['$on'](_0x3720d1(0x1694),function(){_0x2a1114['resume']();}),_0x2a1114[_0x3720d1(0x16ad)]('timer-stop',function(){const _0xffe946=_0x3720d1;_0x2a1114[_0xffe946(0x1edf)]();}),_0x2a1114[_0x3720d1(0x16ad)](_0x3720d1(0xbb4),function(){_0x2a1114['clear']();}),_0x2a1114[_0x3720d1(0x16ad)](_0x3720d1(0x1643),function(_0x4b870a,_0x31c320){const _0x8d223d=_0x3720d1;_0x2a1114[_0x8d223d(0xd21)]=_0x31c320;});function _0x4de806(){const _0x3aefd2=_0x3720d1;_0x2a1114[_0x3aefd2(0x288f)]&&clearTimeout(_0x2a1114[_0x3aefd2(0x288f)]);}_0x2a1114['start']=function(){const _0x497215=_0x3720d1;_0x8b8738()[_0x497215(0x146b)](function(_0x39ae1f){const _0x5f1889=_0x497215,_0x5a3058=_0x2a1114['startTimeAttr']?_0x2deec6()(_0x2a1114[_0x5f1889(0x2653)]):null;!_0x5a3058||_0x5a3058>_0x39ae1f?_0x2a1114[_0x5f1889(0x71a)]=_0x39ae1f:_0x2a1114['startTime']=_0x5a3058;const _0x53e131=_0x2a1114[_0x5f1889(0x1e97)]?_0x2deec6()(_0x2a1114[_0x5f1889(0x1e97)]):null;!_0x53e131||_0x53e131<_0x39ae1f?_0x2a1114[_0x5f1889(0x262c)]=null:_0x2a1114[_0x5f1889(0x262c)]=_0x53e131,!_0x2a1114[_0x5f1889(0xd21)]&&(_0x2a1114[_0x5f1889(0xd21)]=_0x2a1114[_0x5f1889(0x23be)]&&parseInt(_0x2a1114[_0x5f1889(0x23be)],0xa)>0x0?parseInt(_0x2a1114[_0x5f1889(0xaaa)],0xa):undefined),_0x4de806(),_0x35316c(),_0x2a1114[_0x5f1889(0x2582)]=!![];})[_0x497215(0x129e)](function(_0x280a5a){const _0x1fed38=_0x497215;_0x1868c1[_0x1fed38(0x1980)]({'title':_0x280a5a[_0x1fed38(0x107b)]?'API:'+_0x280a5a[_0x1fed38(0x107b)]+_0x1fed38(0x1315)+_0x280a5a[_0x1fed38(0x167f)]:_0x1fed38(0x8d4),'msg':_0x280a5a['data']?JSON[_0x1fed38(0x10bb)](_0x280a5a[_0x1fed38(0x524)][_0x1fed38(0x7fd)]):_0x280a5a[_0x1fed38(0xd5f)]()});});},_0x24ed6c[0x0][_0x3720d1(0x48e)]=_0x2a1114[_0x3720d1(0x48e)],_0x2a1114['resume']=function(){const _0x10f4e5=_0x3720d1;_0x4de806(),_0x2a1114[_0x10f4e5(0x23be)]&&(_0x2a1114[_0x10f4e5(0xd21)]+=0x1),_0x2a1114[_0x10f4e5(0x71a)]=_0x1da978()['diff'](_0x2deec6()(_0x2a1114['stoppedTime'])[_0x10f4e5(0x1bb5)](_0x2deec6()(_0x2a1114['startTime']))),_0x35316c(),_0x2a1114['isRunning']=!![];},_0x24ed6c[0x0][_0x3720d1(0xa57)]=_0x2a1114[_0x3720d1(0xa57)],_0x2a1114[_0x3720d1(0x1edf)]=function(){const _0x504f19=_0x3720d1;_0x2a1114['clear'](),_0x2a1114[_0x504f19(0x26c1)](_0x504f19(0x1cb9),{'timeoutId':_0x2a1114[_0x504f19(0x288f)],'millis':_0x2a1114[_0x504f19(0x20e)],'seconds':_0x2a1114[_0x504f19(0xcf5)],'minutes':_0x2a1114['minutes'],'hours':_0x2a1114[_0x504f19(0xdfa)],'days':_0x2a1114[_0x504f19(0x13d7)]});},_0x2a1114[_0x3720d1(0x1e3e)]=_0x2a1114['stop'],_0x24ed6c[0x0][_0x3720d1(0x1edf)]=_0x2a1114[_0x3720d1(0x1edf)],_0x24ed6c[0x0][_0x3720d1(0x1e3e)]=_0x2a1114[_0x3720d1(0x1edf)],_0x2a1114[_0x3720d1(0x8ee)]=function(){const _0x2aaec3=_0x3720d1;_0x2a1114[_0x2aaec3(0x4ef)]=_0x1da978(),_0x4de806(),_0x2a1114[_0x2aaec3(0x288f)]=null,_0x2a1114[_0x2aaec3(0x2582)]=![];},_0x24ed6c[0x0][_0x3720d1(0x8ee)]=_0x2a1114[_0x3720d1(0x8ee)],_0x24ed6c[_0x3720d1(0x2544)](_0x3720d1(0x116f),function(){_0x4de806(),_0x2a1114['isRunning']=![];});function _0x3129bb(){const _0x5224c0=_0x3720d1;_0x1c344e[_0x5224c0(0x71a)]!==undefined&&(_0x2a1114[_0x5224c0(0x20e)]=_0x1da978()['diff'](_0x2deec6()(_0x2a1114['startTime'])));if(!_0x2a1114[_0x5224c0(0x14f4)]||_0x2a1114[_0x5224c0(0x14f4)]===_0x5224c0(0x1066))_0x2a1114['seconds']=Math[_0x5224c0(0x19ad)](_0x2a1114[_0x5224c0(0x20e)]/0x3e8%0x3c),_0x2a1114[_0x5224c0(0x142)]=Math[_0x5224c0(0x19ad)](_0x2a1114['millis']/0xea60%0x3c),_0x2a1114['hours']=Math[_0x5224c0(0x19ad)](_0x2a1114[_0x5224c0(0x20e)]/0x36ee80%0x18),_0x2a1114[_0x5224c0(0x13d7)]=Math['floor'](_0x2a1114[_0x5224c0(0x20e)]/0x36ee80/0x18),_0x2a1114['months']=0x0,_0x2a1114['years']=0x0;else{if(_0x2a1114[_0x5224c0(0x14f4)]===_0x5224c0(0xfe1))_0x2a1114['seconds']=Math[_0x5224c0(0x19ad)](_0x2a1114[_0x5224c0(0x20e)]/0x3e8),_0x2a1114[_0x5224c0(0x142)]=0x0,_0x2a1114[_0x5224c0(0xdfa)]=0x0,_0x2a1114[_0x5224c0(0x13d7)]=0x0,_0x2a1114['months']=0x0,_0x2a1114[_0x5224c0(0x22bb)]=0x0;else{if(_0x2a1114[_0x5224c0(0x14f4)]===_0x5224c0(0x12f3))_0x2a1114[_0x5224c0(0xcf5)]=Math[_0x5224c0(0x19ad)](_0x2a1114[_0x5224c0(0x20e)]/0x3e8%0x3c),_0x2a1114[_0x5224c0(0x142)]=Math[_0x5224c0(0x19ad)](_0x2a1114[_0x5224c0(0x20e)]/0xea60),_0x2a1114[_0x5224c0(0xdfa)]=0x0,_0x2a1114[_0x5224c0(0x13d7)]=0x0,_0x2a1114[_0x5224c0(0x4fe)]=0x0,_0x2a1114[_0x5224c0(0x22bb)]=0x0;else{if(_0x2a1114['maxTimeUnit']===_0x5224c0(0x9ee))_0x2a1114[_0x5224c0(0xcf5)]=Math[_0x5224c0(0x19ad)](_0x2a1114[_0x5224c0(0x20e)]/0x3e8%0x3c),_0x2a1114['minutes']=Math[_0x5224c0(0x19ad)](_0x2a1114['millis']/0xea60%0x3c),_0x2a1114[_0x5224c0(0xdfa)]=Math[_0x5224c0(0x19ad)](_0x2a1114[_0x5224c0(0x20e)]/0x36ee80),_0x2a1114[_0x5224c0(0x13d7)]=0x0,_0x2a1114[_0x5224c0(0x4fe)]=0x0,_0x2a1114[_0x5224c0(0x22bb)]=0x0;else{if(_0x2a1114[_0x5224c0(0x14f4)]===_0x5224c0(0x12b7))_0x2a1114[_0x5224c0(0xcf5)]=Math[_0x5224c0(0x19ad)](_0x2a1114[_0x5224c0(0x20e)]/0x3e8%0x3c),_0x2a1114[_0x5224c0(0x142)]=Math[_0x5224c0(0x19ad)](_0x2a1114[_0x5224c0(0x20e)]/0xea60%0x3c),_0x2a1114[_0x5224c0(0xdfa)]=Math[_0x5224c0(0x19ad)](_0x2a1114['millis']/0x36ee80%0x18),_0x2a1114['days']=Math[_0x5224c0(0x19ad)](_0x2a1114[_0x5224c0(0x20e)]/0x36ee80/0x18%0x1e),_0x2a1114[_0x5224c0(0x4fe)]=Math[_0x5224c0(0x19ad)](_0x2a1114['millis']/0x36ee80/0x18/0x1e),_0x2a1114[_0x5224c0(0x22bb)]=0x0;else _0x2a1114[_0x5224c0(0x14f4)]==='year'&&(_0x2a1114[_0x5224c0(0xcf5)]=Math['floor'](_0x2a1114[_0x5224c0(0x20e)]/0x3e8%0x3c),_0x2a1114['minutes']=Math[_0x5224c0(0x19ad)](_0x2a1114[_0x5224c0(0x20e)]/0xea60%0x3c),_0x2a1114[_0x5224c0(0xdfa)]=Math['floor'](_0x2a1114[_0x5224c0(0x20e)]/0x36ee80%0x18),_0x2a1114['days']=Math[_0x5224c0(0x19ad)](_0x2a1114[_0x5224c0(0x20e)]/0x36ee80/0x18%0x1e),_0x2a1114[_0x5224c0(0x4fe)]=Math[_0x5224c0(0x19ad)](_0x2a1114[_0x5224c0(0x20e)]/0x36ee80/0x18/0x1e%0xc),_0x2a1114[_0x5224c0(0x22bb)]=Math[_0x5224c0(0x19ad)](_0x2a1114['millis']/0x36ee80/0x18/0x16d));}}}}_0x2a1114[_0x5224c0(0x1f51)]=_0x2a1114[_0x5224c0(0xcf5)]===0x1||_0x2a1114[_0x5224c0(0xcf5)]===0x0?'':'s',_0x2a1114[_0x5224c0(0x15c7)]=_0x2a1114[_0x5224c0(0x142)]===0x1||_0x2a1114[_0x5224c0(0x142)]===0x0?'':'s',_0x2a1114[_0x5224c0(0x1f20)]=_0x2a1114['hours']===0x1||_0x2a1114[_0x5224c0(0xdfa)]===0x0?'':'s',_0x2a1114[_0x5224c0(0xdc6)]=_0x2a1114[_0x5224c0(0x13d7)]===0x1||_0x2a1114[_0x5224c0(0x13d7)]===0x0?'':'s',_0x2a1114[_0x5224c0(0x18b4)]=_0x2a1114[_0x5224c0(0x4fe)]===0x1||_0x2a1114[_0x5224c0(0x4fe)]===0x0?'':'s',_0x2a1114[_0x5224c0(0x20e7)]=_0x2a1114[_0x5224c0(0x22bb)]===0x1||_0x2a1114[_0x5224c0(0x22bb)]===0x0?'':'s',_0x2a1114['sseconds']=_0x2a1114['seconds']<0xa?'0'+_0x2a1114[_0x5224c0(0xcf5)]:_0x2a1114[_0x5224c0(0xcf5)],_0x2a1114['mminutes']=_0x2a1114[_0x5224c0(0x142)]<0xa?'0'+_0x2a1114[_0x5224c0(0x142)]:_0x2a1114[_0x5224c0(0x142)],_0x2a1114[_0x5224c0(0x25ab)]=_0x2a1114[_0x5224c0(0xdfa)]<0xa?'0'+_0x2a1114[_0x5224c0(0xdfa)]:_0x2a1114[_0x5224c0(0xdfa)],_0x2a1114[_0x5224c0(0xf6b)]=_0x2a1114[_0x5224c0(0x13d7)]<0xa?'0'+_0x2a1114[_0x5224c0(0x13d7)]:_0x2a1114['days'],_0x2a1114['mmonths']=_0x2a1114[_0x5224c0(0x4fe)]<0xa?'0'+_0x2a1114[_0x5224c0(0x4fe)]:_0x2a1114[_0x5224c0(0x4fe)],_0x2a1114[_0x5224c0(0x10e1)]=_0x2a1114[_0x5224c0(0x22bb)]<0xa?'0'+_0x2a1114[_0x5224c0(0x22bb)]:_0x2a1114[_0x5224c0(0x22bb)];}const _0x35316c=function(){const _0x412e2f=_0x3720d1;_0x2a1114[_0x412e2f(0x20e)]=_0x1da978()[_0x412e2f(0x1bb5)](_0x2a1114[_0x412e2f(0x71a)]);let _0x3c9f19=_0x2a1114[_0x412e2f(0x20e)]%0x3e8;_0x2a1114[_0x412e2f(0x1e97)]&&(_0x2a1114[_0x412e2f(0x20e)]=_0x2deec6()(_0x2a1114[_0x412e2f(0x262c)])[_0x412e2f(0x1bb5)](_0x1da978()),_0x3c9f19=_0x2a1114[_0x412e2f(0x2765)]-_0x2a1114[_0x412e2f(0x20e)]%0x3e8);_0x2a1114['countdownAttr']&&(_0x2a1114[_0x412e2f(0x20e)]=_0x2a1114[_0x412e2f(0xd21)]*0x3e8);if(_0x2a1114['millis']<0x0){_0x2a1114['stop'](),_0x2a1114[_0x412e2f(0x20e)]=0x0,_0x3129bb();_0x2a1114[_0x412e2f(0x27bf)]&&_0x2a1114[_0x412e2f(0xb0c)](_0x2a1114[_0x412e2f(0x27bf)]);return;}_0x3129bb(),_0x2a1114[_0x412e2f(0x288f)]=setTimeout(function(){const _0x558e4a=_0x412e2f;_0x35316c(),_0x2a1114[_0x558e4a(0x12e7)]();},_0x2a1114[_0x412e2f(0x2765)]-_0x3c9f19),_0x2a1114[_0x412e2f(0x26c1)](_0x412e2f(0x1ebc),{'timeoutId':_0x2a1114[_0x412e2f(0x288f)],'millis':_0x2a1114[_0x412e2f(0x20e)]});if(_0x2a1114[_0x412e2f(0xd21)]>0x0)_0x2a1114[_0x412e2f(0xd21)]--;else _0x2a1114[_0x412e2f(0xd21)]<=0x0&&(_0x2a1114[_0x412e2f(0x1edf)](),_0x2a1114[_0x412e2f(0x27bf)]&&_0x2a1114[_0x412e2f(0xb0c)](_0x2a1114['finishCallback']));};(_0x2a1114['autoStart']===undefined||_0x2a1114[_0x3720d1(0xb64)]===!![])&&_0x2a1114[_0x3720d1(0x48e)]();function _0x1da978(){const _0x1ab37a=_0x3720d1;return _0x2deec6()[_0x1ab37a(0x1ab5)](_0x2deec6()()['utcOffset'](_0x2a1114[_0x1ab37a(0x1e7a)]));}function _0x8b8738(){let _0x1796b9;return _0x4bd18a(function(_0x53ef8,_0x4d408b){const _0x2de1de=a0_0x3bb9;try{if(_0x2a1114[_0x2de1de(0x1e7a)]){_0x1796b9=_0x1da978(),_0x53ef8(_0x1796b9);return;}_0x26bfe2['setting'][_0x2de1de(0xec3)]()['$promise'][_0x2de1de(0x146b)](function(_0x3e1634){const _0x5c8f2f=_0x2de1de;_0x2a1114[_0x5c8f2f(0x1e7a)]=_0x3e1634['offset'],_0x1796b9=_0x1da978(),_0x53ef8(_0x1796b9);return;});}catch(_0x5f594a){_0x4d408b(_0x5f594a);}});}}function _0x12282e(){const _0x3ae0e1=_0x313a4d;return{'restrict':'EA','replace':![],'scope':{'intervalAttr':_0x3ae0e1(0x675),'startTimeAttr':_0x3ae0e1(0x17d),'endTimeAttr':'=endTime','countdownAttr':_0x3ae0e1(0x1395),'autoStart':'&autoStart','maxTimeUnit':'='},'controller':_0x3ae0e1(0x15df)};};const _0x3384d4=_0x4acfac['p']+_0x313a4d(0x1932);;function _0x4f39ff(){const _0x4f39ca=_0x313a4d;return{'restrict':'E','scope':{'ngModel':'='},'controller':[_0x4f39ca(0x910),function(_0x928400){const _0x5a86b1=_0x4f39ca;_0x928400[_0x5a86b1(0x293b)]=[{'name':_0x5a86b1(0x71e),'utcOffset':0x3c,'offsetStr':_0x5a86b1(0x1616),'countries':['AD']},{'name':'Asia/Dubai','utcOffset':0xf0,'offsetStr':_0x5a86b1(0x1e77),'countries':['AE','OM']},{'name':_0x5a86b1(0xf65),'utcOffset':0x10e,'offsetStr':'+04:30','countries':['AF']},{'name':'Europe/Tirane','utcOffset':0x3c,'offsetStr':'+01:00','countries':['AL']},{'name':_0x5a86b1(0xac8),'utcOffset':0xf0,'offsetStr':_0x5a86b1(0x1e77),'countries':['AM']},{'name':_0x5a86b1(0x211d),'utcOffset':-0xb4,'offsetStr':_0x5a86b1(0x1504),'countries':['AQ']},{'name':_0x5a86b1(0x2e4),'utcOffset':-0xb4,'offsetStr':_0x5a86b1(0x1504),'countries':['AQ']},{'name':'Antarctica/Mawson','utcOffset':0x12c,'offsetStr':_0x5a86b1(0x1ba6),'countries':['AQ']},{'name':_0x5a86b1(0xabb),'utcOffset':0x1a4,'offsetStr':_0x5a86b1(0x1fa),'countries':['AQ']},{'name':_0x5a86b1(0x17f2),'utcOffset':0x1e0,'offsetStr':_0x5a86b1(0xea7),'countries':['AQ']},{'name':_0x5a86b1(0x1f7e),'utcOffset':0x168,'offsetStr':_0x5a86b1(0x1cd1),'countries':['AQ']},{'name':_0x5a86b1(0x215c),'utcOffset':0x258,'offsetStr':'+10:00','countries':['AQ']},{'name':_0x5a86b1(0x852),'utcOffset':0xb4,'offsetStr':_0x5a86b1(0x16f1),'countries':['AQ']},{'name':_0x5a86b1(0x24ef),'utcOffset':0x0,'offsetStr':'+00:00','countries':['AQ']},{'name':_0x5a86b1(0x16e3),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['AR']},{'name':'America/Argentina/Cordoba','utcOffset':-0xb4,'offsetStr':_0x5a86b1(0x1504),'countries':['AR']},{'name':_0x5a86b1(0x21f6),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['AR']},{'name':_0x5a86b1(0x2515),'utcOffset':-0xb4,'offsetStr':_0x5a86b1(0x1504),'countries':['AR']},{'name':_0x5a86b1(0x1c92),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['AR']},{'name':'America/Argentina/Catamarca','utcOffset':-0xb4,'offsetStr':_0x5a86b1(0x1504),'countries':['AR']},{'name':_0x5a86b1(0x11f4),'utcOffset':-0xb4,'offsetStr':_0x5a86b1(0x1504),'countries':['AR']},{'name':_0x5a86b1(0x1be),'utcOffset':-0xb4,'offsetStr':_0x5a86b1(0x1504),'countries':['AR']},{'name':_0x5a86b1(0x198d),'utcOffset':-0xb4,'offsetStr':_0x5a86b1(0x1504),'countries':['AR']},{'name':_0x5a86b1(0x1acf),'utcOffset':-0xb4,'offsetStr':_0x5a86b1(0x1504),'countries':['AR']},{'name':_0x5a86b1(0x2554),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['AR']},{'name':'America/Argentina/Ushuaia','utcOffset':-0xb4,'offsetStr':'-03:00','countries':['AR']},{'name':_0x5a86b1(0x289f),'utcOffset':-0x294,'offsetStr':_0x5a86b1(0x355),'countries':['AS','UM']},{'name':'Europe/Vienna','utcOffset':0x3c,'offsetStr':_0x5a86b1(0x1616),'countries':['AT']},{'name':'Australia/Lord_Howe','utcOffset':0x294,'offsetStr':_0x5a86b1(0x2311),'countries':['AU']},{'name':_0x5a86b1(0xe97),'utcOffset':0x294,'offsetStr':'+11:00','countries':['AU']},{'name':_0x5a86b1(0xdb9),'utcOffset':0x294,'offsetStr':_0x5a86b1(0x2311),'countries':['AU']},{'name':_0x5a86b1(0x3d2),'utcOffset':0x294,'offsetStr':_0x5a86b1(0x2311),'countries':['AU']},{'name':_0x5a86b1(0x14b1),'utcOffset':0x294,'offsetStr':_0x5a86b1(0x2311),'countries':['AU']},{'name':'Australia/Sydney','utcOffset':0x294,'offsetStr':'+11:00','countries':['AU']},{'name':_0x5a86b1(0x275e),'utcOffset':0x276,'offsetStr':_0x5a86b1(0x12dc),'countries':['AU']},{'name':'Australia/Brisbane','utcOffset':0x258,'offsetStr':_0x5a86b1(0x15f),'countries':['AU']},{'name':'Australia/Lindeman','utcOffset':0x258,'offsetStr':_0x5a86b1(0x15f),'countries':['AU']},{'name':'Australia/Adelaide','utcOffset':0x276,'offsetStr':_0x5a86b1(0x12dc),'countries':['AU']},{'name':_0x5a86b1(0x50c),'utcOffset':0x23a,'offsetStr':_0x5a86b1(0x26b2),'countries':['AU']},{'name':_0x5a86b1(0x27cb),'utcOffset':0x1e0,'offsetStr':'+08:00','countries':['AU']},{'name':'Australia/Eucla','utcOffset':0x20d,'offsetStr':_0x5a86b1(0x24b8),'countries':['AU']},{'name':_0x5a86b1(0x344),'utcOffset':0xf0,'offsetStr':_0x5a86b1(0x1e77),'countries':['AZ']},{'name':'America/Barbados','utcOffset':-0xf0,'offsetStr':_0x5a86b1(0xaba),'countries':['BB']},{'name':_0x5a86b1(0x12a4),'utcOffset':0x168,'offsetStr':_0x5a86b1(0x1cd1),'countries':['BD']},{'name':_0x5a86b1(0x1d4),'utcOffset':0x3c,'offsetStr':_0x5a86b1(0x1616),'countries':['BE']},{'name':'Europe/Sofia','utcOffset':0x78,'offsetStr':'+02:00','countries':['BG']},{'name':_0x5a86b1(0x2739),'utcOffset':-0xf0,'offsetStr':'-04:00','countries':['BM']},{'name':'Asia/Brunei','utcOffset':0x1e0,'offsetStr':'+08:00','countries':['BN']},{'name':_0x5a86b1(0xcdd),'utcOffset':-0xf0,'offsetStr':'-04:00','countries':['BO']},{'name':_0x5a86b1(0x856),'utcOffset':-0x78,'offsetStr':_0x5a86b1(0x2802),'countries':['BR']},{'name':_0x5a86b1(0x26aa),'utcOffset':-0xb4,'offsetStr':_0x5a86b1(0x1504),'countries':['BR']},{'name':_0x5a86b1(0x1d07),'utcOffset':-0xb4,'offsetStr':_0x5a86b1(0x1504),'countries':['BR']},{'name':'America/Recife','utcOffset':-0xb4,'offsetStr':_0x5a86b1(0x1504),'countries':['BR']},{'name':'America/Araguaina','utcOffset':-0xb4,'offsetStr':'-03:00','countries':['BR']},{'name':_0x5a86b1(0x27eb),'utcOffset':-0xb4,'offsetStr':_0x5a86b1(0x1504),'countries':['BR']},{'name':_0x5a86b1(0x1a18),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['BR']},{'name':_0x5a86b1(0x23ef),'utcOffset':-0x78,'offsetStr':_0x5a86b1(0x2802),'countries':['BR']},{'name':_0x5a86b1(0x112d),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['BR']},{'name':'America/Cuiaba','utcOffset':-0xb4,'offsetStr':'-03:00','countries':['BR']},{'name':_0x5a86b1(0x1e37),'utcOffset':-0xb4,'offsetStr':_0x5a86b1(0x1504),'countries':['BR']},{'name':'America/Porto_Velho','utcOffset':-0xf0,'offsetStr':_0x5a86b1(0xaba),'countries':['BR']},{'name':'America/Boa_Vista','utcOffset':-0xf0,'offsetStr':_0x5a86b1(0xaba),'countries':['BR']},{'name':_0x5a86b1(0xfb),'utcOffset':-0xf0,'offsetStr':_0x5a86b1(0xaba),'countries':['BR']},{'name':_0x5a86b1(0x2320),'utcOffset':-0x12c,'offsetStr':_0x5a86b1(0x1c0d),'countries':['BR']},{'name':'America/Rio_Branco','utcOffset':-0x12c,'offsetStr':'-05:00','countries':['BR']},{'name':'America/Nassau','utcOffset':-0x12c,'offsetStr':_0x5a86b1(0x1c0d),'countries':['BS']},{'name':_0x5a86b1(0x2457),'utcOffset':0x168,'offsetStr':'+06:00','countries':['BT']},{'name':_0x5a86b1(0x1429),'utcOffset':0xb4,'offsetStr':_0x5a86b1(0x16f1),'countries':['BY']},{'name':'America/Belize','utcOffset':-0x168,'offsetStr':'-06:00','countries':['BZ']},{'name':_0x5a86b1(0x1baf),'utcOffset':-0xd2,'offsetStr':_0x5a86b1(0x12d2),'countries':['CA']},{'name':_0x5a86b1(0x7cd),'utcOffset':-0xf0,'offsetStr':_0x5a86b1(0xaba),'countries':['CA']},{'name':'America/Glace_Bay','utcOffset':-0xf0,'offsetStr':'-04:00','countries':['CA']},{'name':_0x5a86b1(0x1ace),'utcOffset':-0xf0,'offsetStr':_0x5a86b1(0xaba),'countries':['CA']},{'name':_0x5a86b1(0x8b5),'utcOffset':-0xf0,'offsetStr':_0x5a86b1(0xaba),'countries':['CA']},{'name':'America/Blanc-Sablon','utcOffset':-0xf0,'offsetStr':_0x5a86b1(0xaba),'countries':['CA']},{'name':_0x5a86b1(0x8bb),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['CA']},{'name':_0x5a86b1(0x37e),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['CA']},{'name':_0x5a86b1(0x312),'utcOffset':-0x12c,'offsetStr':_0x5a86b1(0x1c0d),'countries':['CA']},{'name':'America/Iqaluit','utcOffset':-0x12c,'offsetStr':'-05:00','countries':['CA']},{'name':_0x5a86b1(0xfec),'utcOffset':-0x12c,'offsetStr':_0x5a86b1(0x1c0d),'countries':['CA']},{'name':_0x5a86b1(0x2249),'utcOffset':-0x168,'offsetStr':_0x5a86b1(0x22a9),'countries':['CA']},{'name':_0x5a86b1(0x19dd),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['CA']},{'name':'America/Rankin_Inlet','utcOffset':-0x168,'offsetStr':_0x5a86b1(0x22a9),'countries':['CA']},{'name':_0x5a86b1(0x1b66),'utcOffset':-0x168,'offsetStr':_0x5a86b1(0x22a9),'countries':['CA']},{'name':_0x5a86b1(0x3ef),'utcOffset':-0x168,'offsetStr':_0x5a86b1(0x22a9),'countries':['CA']},{'name':_0x5a86b1(0x1abd),'utcOffset':-0x168,'offsetStr':_0x5a86b1(0x22a9),'countries':['CA']},{'name':_0x5a86b1(0x17a6),'utcOffset':-0x168,'offsetStr':_0x5a86b1(0x22a9),'countries':['CA']},{'name':_0x5a86b1(0x23e2),'utcOffset':-0x1a4,'offsetStr':_0x5a86b1(0x2f6),'countries':['CA']},{'name':_0x5a86b1(0x1659),'utcOffset':-0x1a4,'offsetStr':'-07:00','countries':['CA']},{'name':'America/Yellowknife','utcOffset':-0x1a4,'offsetStr':_0x5a86b1(0x2f6),'countries':['CA']},{'name':_0x5a86b1(0x216e),'utcOffset':-0x1a4,'offsetStr':_0x5a86b1(0x2f6),'countries':['CA']},{'name':_0x5a86b1(0xe44),'utcOffset':-0x1a4,'offsetStr':_0x5a86b1(0x2f6),'countries':['CA']},{'name':_0x5a86b1(0xc1f),'utcOffset':-0x1a4,'offsetStr':'-07:00','countries':['CA']},{'name':'America/Fort_Nelson','utcOffset':-0x1a4,'offsetStr':_0x5a86b1(0x2f6),'countries':['CA']},{'name':'America/Vancouver','utcOffset':-0x1e0,'offsetStr':_0x5a86b1(0x185e),'countries':['CA']},{'name':_0x5a86b1(0x116c),'utcOffset':-0x1e0,'offsetStr':_0x5a86b1(0x185e),'countries':['CA']},{'name':_0x5a86b1(0x1796),'utcOffset':-0x1e0,'offsetStr':_0x5a86b1(0x185e),'countries':['CA']},{'name':'Indian/Cocos','utcOffset':0x186,'offsetStr':'+06:30','countries':['CC']},{'name':_0x5a86b1(0xf9e),'utcOffset':0x3c,'offsetStr':_0x5a86b1(0x1616),'countries':['CH','DE','LI']},{'name':'Africa/Abidjan','utcOffset':0x0,'offsetStr':_0x5a86b1(0x2a7),'countries':['CI','BF','GM','GN','ML','MR','SH','SL','SN','ST','TG']},{'name':'Pacific/Rarotonga','utcOffset':-0x258,'offsetStr':'-10:00','countries':['CK']},{'name':'America/Santiago','utcOffset':-0xb4,'offsetStr':_0x5a86b1(0x1504),'countries':['CL']},{'name':_0x5a86b1(0x97c),'utcOffset':-0x12c,'offsetStr':_0x5a86b1(0x1c0d),'countries':['CL']},{'name':_0x5a86b1(0x1d3d),'utcOffset':0x1e0,'offsetStr':_0x5a86b1(0xea7),'countries':['CN']},{'name':_0x5a86b1(0x2535),'utcOffset':0x168,'offsetStr':'+06:00','countries':['CN']},{'name':_0x5a86b1(0x117a),'utcOffset':-0x12c,'offsetStr':_0x5a86b1(0x1c0d),'countries':['CO']},{'name':_0x5a86b1(0x636),'utcOffset':-0x168,'offsetStr':_0x5a86b1(0x22a9),'countries':['CR']},{'name':_0x5a86b1(0x2695),'utcOffset':-0x12c,'offsetStr':_0x5a86b1(0x1c0d),'countries':['CU']},{'name':_0x5a86b1(0x1203),'utcOffset':-0x3c,'offsetStr':'-01:00','countries':['CV']},{'name':_0x5a86b1(0x17ef),'utcOffset':-0xf0,'offsetStr':_0x5a86b1(0xaba),'countries':['CW','AW','BQ','SX']},{'name':_0x5a86b1(0x1570),'utcOffset':0x1a4,'offsetStr':_0x5a86b1(0x1fa),'countries':['CX']},{'name':'Asia/Nicosia','utcOffset':0x78,'offsetStr':_0x5a86b1(0x101b),'countries':['CY']},{'name':'Europe/Prague','utcOffset':0x3c,'offsetStr':_0x5a86b1(0x1616),'countries':['CZ','SK']},{'name':_0x5a86b1(0x70a),'utcOffset':0x3c,'offsetStr':_0x5a86b1(0x1616),'countries':['DE']},{'name':_0x5a86b1(0xe09),'utcOffset':0x3c,'offsetStr':_0x5a86b1(0x1616),'countries':['DK']},{'name':_0x5a86b1(0x151a),'utcOffset':-0xf0,'offsetStr':_0x5a86b1(0xaba),'countries':['DO']},{'name':_0x5a86b1(0x15f9),'utcOffset':0x3c,'offsetStr':_0x5a86b1(0x1616),'countries':['DZ']},{'name':_0x5a86b1(0xfce),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['EC']},{'name':'Pacific/Galapagos','utcOffset':-0x168,'offsetStr':_0x5a86b1(0x22a9),'countries':['EC']},{'name':_0x5a86b1(0xc38),'utcOffset':0x78,'offsetStr':_0x5a86b1(0x101b),'countries':['EE']},{'name':_0x5a86b1(0x2a5),'utcOffset':0x78,'offsetStr':_0x5a86b1(0x101b),'countries':['EG']},{'name':_0x5a86b1(0x1d0e),'utcOffset':0x0,'offsetStr':_0x5a86b1(0x2a7),'countries':['EH']},{'name':_0x5a86b1(0x1f52),'utcOffset':0x3c,'offsetStr':_0x5a86b1(0x1616),'countries':['ES']},{'name':'Africa/Ceuta','utcOffset':0x3c,'offsetStr':_0x5a86b1(0x1616),'countries':['ES']},{'name':_0x5a86b1(0x21d1),'utcOffset':0x0,'offsetStr':_0x5a86b1(0x2a7),'countries':['ES']},{'name':_0x5a86b1(0x1ad1),'utcOffset':0x78,'offsetStr':_0x5a86b1(0x101b),'countries':['FI','AX']},{'name':_0x5a86b1(0x2631),'utcOffset':0x2d0,'offsetStr':_0x5a86b1(0x53f),'countries':['FJ']},{'name':_0x5a86b1(0x1cf3),'utcOffset':-0xb4,'offsetStr':_0x5a86b1(0x1504),'countries':['FK']},{'name':_0x5a86b1(0x12fa),'utcOffset':0x258,'offsetStr':_0x5a86b1(0x15f),'countries':['FM']},{'name':'Pacific/Pohnpei','utcOffset':0x294,'offsetStr':_0x5a86b1(0x2311),'countries':['FM']},{'name':_0x5a86b1(0x182e),'utcOffset':0x294,'offsetStr':_0x5a86b1(0x2311),'countries':['FM']},{'name':_0x5a86b1(0x1131),'utcOffset':0x0,'offsetStr':_0x5a86b1(0x2a7),'countries':['FO']},{'name':_0x5a86b1(0xbde),'utcOffset':0x3c,'offsetStr':_0x5a86b1(0x1616),'countries':['FR']},{'name':'Europe/London','utcOffset':0x0,'offsetStr':'+00:00','countries':['GB','GG','IM','JE']},{'name':_0x5a86b1(0xd70),'utcOffset':0xf0,'offsetStr':_0x5a86b1(0x1e77),'countries':['GE']},{'name':_0x5a86b1(0x61f),'utcOffset':-0xb4,'offsetStr':_0x5a86b1(0x1504),'countries':['GF']},{'name':_0x5a86b1(0x62f),'utcOffset':0x0,'offsetStr':_0x5a86b1(0x2a7),'countries':['GH']},{'name':_0x5a86b1(0x8b7),'utcOffset':0x3c,'offsetStr':_0x5a86b1(0x1616),'countries':['GI']},{'name':_0x5a86b1(0x200c),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['GL']},{'name':_0x5a86b1(0x1594),'utcOffset':0x0,'offsetStr':_0x5a86b1(0x2a7),'countries':['GL']},{'name':_0x5a86b1(0x1b73),'utcOffset':-0x3c,'offsetStr':'-01:00','countries':['GL']},{'name':_0x5a86b1(0x1aed),'utcOffset':-0xf0,'offsetStr':'-04:00','countries':['GL']},{'name':_0x5a86b1(0xa41),'utcOffset':0x78,'offsetStr':_0x5a86b1(0x101b),'countries':['GR']},{'name':_0x5a86b1(0x1396),'utcOffset':-0x78,'offsetStr':'-02:00','countries':['GS']},{'name':_0x5a86b1(0x264b),'utcOffset':-0x168,'offsetStr':_0x5a86b1(0x22a9),'countries':['GT']},{'name':'Pacific/Guam','utcOffset':0x258,'offsetStr':_0x5a86b1(0x15f),'countries':['GU','MP']},{'name':'Africa/Bissau','utcOffset':0x0,'offsetStr':'+00:00','countries':['GW']},{'name':'America/Guyana','utcOffset':-0xf0,'offsetStr':_0x5a86b1(0xaba),'countries':['GY']},{'name':'Asia/Hong_Kong','utcOffset':0x1e0,'offsetStr':_0x5a86b1(0xea7),'countries':['HK']},{'name':_0x5a86b1(0x902),'utcOffset':-0x168,'offsetStr':'-06:00','countries':['HN']},{'name':_0x5a86b1(0x1826),'utcOffset':-0x12c,'offsetStr':_0x5a86b1(0x1c0d),'countries':['HT']},{'name':_0x5a86b1(0x837),'utcOffset':0x3c,'offsetStr':_0x5a86b1(0x1616),'countries':['HU']},{'name':'Asia/Jakarta','utcOffset':0x1a4,'offsetStr':'+07:00','countries':['ID']},{'name':_0x5a86b1(0x246),'utcOffset':0x1a4,'offsetStr':_0x5a86b1(0x1fa),'countries':['ID']},{'name':_0x5a86b1(0xd01),'utcOffset':0x1e0,'offsetStr':_0x5a86b1(0xea7),'countries':['ID']},{'name':_0x5a86b1(0xdb1),'utcOffset':0x21c,'offsetStr':_0x5a86b1(0xe9),'countries':['ID']},{'name':'Europe/Dublin','utcOffset':0x0,'offsetStr':_0x5a86b1(0x2a7),'countries':['IE']},{'name':_0x5a86b1(0x965),'utcOffset':0x78,'offsetStr':'+02:00','countries':['IL']},{'name':_0x5a86b1(0xf09),'utcOffset':0x14a,'offsetStr':_0x5a86b1(0x1a45),'countries':['IN']},{'name':_0x5a86b1(0xc28),'utcOffset':0x168,'offsetStr':_0x5a86b1(0x1cd1),'countries':['IO']},{'name':_0x5a86b1(0x2461),'utcOffset':0xb4,'offsetStr':_0x5a86b1(0x16f1),'countries':['IQ']},{'name':_0x5a86b1(0x1d85),'utcOffset':0xd2,'offsetStr':_0x5a86b1(0x1019),'countries':['IR']},{'name':_0x5a86b1(0x2633),'utcOffset':0x0,'offsetStr':_0x5a86b1(0x2a7),'countries':['IS']},{'name':_0x5a86b1(0xcde),'utcOffset':0x3c,'offsetStr':_0x5a86b1(0x1616),'countries':['IT','SM','VA']},{'name':'America/Jamaica','utcOffset':-0x12c,'offsetStr':_0x5a86b1(0x1c0d),'countries':['JM']},{'name':_0x5a86b1(0xf14),'utcOffset':0x78,'offsetStr':_0x5a86b1(0x101b),'countries':['JO']},{'name':_0x5a86b1(0x1597),'utcOffset':0x21c,'offsetStr':_0x5a86b1(0xe9),'countries':['JP']},{'name':_0x5a86b1(0x1581),'utcOffset':0xb4,'offsetStr':_0x5a86b1(0x16f1),'countries':['KE','DJ','ER','ET','KM','MG','SO','TZ','UG','YT']},{'name':_0x5a86b1(0x1511),'utcOffset':0x168,'offsetStr':'+06:00','countries':['KG']},{'name':_0x5a86b1(0x1abc),'utcOffset':0x2d0,'offsetStr':_0x5a86b1(0x53f),'countries':['KI']},{'name':_0x5a86b1(0xda5),'utcOffset':0x30c,'offsetStr':'+13:00','countries':['KI']},{'name':_0x5a86b1(0x2ab),'utcOffset':0x348,'offsetStr':_0x5a86b1(0x5d9),'countries':['KI']},{'name':'Asia/Pyongyang','utcOffset':0x1fe,'offsetStr':'+08:30','countries':['KP']},{'name':'Asia/Seoul','utcOffset':0x21c,'offsetStr':_0x5a86b1(0xe9),'countries':['KR']},{'name':_0x5a86b1(0x28a2),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['KY']},{'name':_0x5a86b1(0x63e),'utcOffset':0x168,'offsetStr':'+06:00','countries':['KZ']},{'name':_0x5a86b1(0x1eda),'utcOffset':0x168,'offsetStr':'+06:00','countries':['KZ']},{'name':_0x5a86b1(0x111a),'utcOffset':0x12c,'offsetStr':'+05:00','countries':['KZ']},{'name':_0x5a86b1(0x2cf),'utcOffset':0x12c,'offsetStr':_0x5a86b1(0x1ba6),'countries':['KZ']},{'name':_0x5a86b1(0xaa1),'utcOffset':0x12c,'offsetStr':_0x5a86b1(0x1ba6),'countries':['KZ']},{'name':_0x5a86b1(0x1e6b),'utcOffset':0x78,'offsetStr':_0x5a86b1(0x101b),'countries':['LB']},{'name':'Asia/Colombo','utcOffset':0x14a,'offsetStr':_0x5a86b1(0x1a45),'countries':['LK']},{'name':_0x5a86b1(0x11fb),'utcOffset':0x0,'offsetStr':_0x5a86b1(0x2a7),'countries':['LR']},{'name':_0x5a86b1(0x2604),'utcOffset':0x78,'offsetStr':_0x5a86b1(0x101b),'countries':['LT']},{'name':_0x5a86b1(0x25e2),'utcOffset':0x3c,'offsetStr':_0x5a86b1(0x1616),'countries':['LU']},{'name':'Europe/Riga','utcOffset':0x78,'offsetStr':_0x5a86b1(0x101b),'countries':['LV']},{'name':_0x5a86b1(0x227c),'utcOffset':0x78,'offsetStr':'+02:00','countries':['LY']},{'name':_0x5a86b1(0xb1e),'utcOffset':0x0,'offsetStr':'+00:00','countries':['MA']},{'name':_0x5a86b1(0x786),'utcOffset':0x3c,'offsetStr':_0x5a86b1(0x1616),'countries':['MC']},{'name':'Europe/Chisinau','utcOffset':0x78,'offsetStr':_0x5a86b1(0x101b),'countries':['MD']},{'name':_0x5a86b1(0x1c17),'utcOffset':0x2d0,'offsetStr':_0x5a86b1(0x53f),'countries':['MH']},{'name':'Pacific/Kwajalein','utcOffset':0x2d0,'offsetStr':_0x5a86b1(0x53f),'countries':['MH']},{'name':_0x5a86b1(0x1ee),'utcOffset':0x186,'offsetStr':'+06:30','countries':['MM']},{'name':_0x5a86b1(0x46f),'utcOffset':0x1e0,'offsetStr':_0x5a86b1(0xea7),'countries':['MN']},{'name':'Asia/Hovd','utcOffset':0x1a4,'offsetStr':'+07:00','countries':['MN']},{'name':'Asia/Choibalsan','utcOffset':0x1e0,'offsetStr':_0x5a86b1(0xea7),'countries':['MN']},{'name':'Asia/Macau','utcOffset':0x1e0,'offsetStr':_0x5a86b1(0xea7),'countries':['MO']},{'name':_0x5a86b1(0x1675),'utcOffset':-0xf0,'offsetStr':_0x5a86b1(0xaba),'countries':['MQ']},{'name':'Europe/Malta','utcOffset':0x3c,'offsetStr':_0x5a86b1(0x1616),'countries':['MT']},{'name':'Indian/Mauritius','utcOffset':0xf0,'offsetStr':_0x5a86b1(0x1e77),'countries':['MU']},{'name':'Indian/Maldives','utcOffset':0x12c,'offsetStr':_0x5a86b1(0x1ba6),'countries':['MV']},{'name':_0x5a86b1(0x2576),'utcOffset':-0x168,'offsetStr':'-06:00','countries':['MX']},{'name':_0x5a86b1(0x228),'utcOffset':-0x12c,'offsetStr':_0x5a86b1(0x1c0d),'countries':['MX']},{'name':'America/Merida','utcOffset':-0x168,'offsetStr':_0x5a86b1(0x22a9),'countries':['MX']},{'name':'America/Monterrey','utcOffset':-0x168,'offsetStr':_0x5a86b1(0x22a9),'countries':['MX']},{'name':_0x5a86b1(0xd43),'utcOffset':-0x168,'offsetStr':_0x5a86b1(0x22a9),'countries':['MX']},{'name':_0x5a86b1(0x2909),'utcOffset':-0x1a4,'offsetStr':'-07:00','countries':['MX']},{'name':_0x5a86b1(0x19f8),'utcOffset':-0x1a4,'offsetStr':_0x5a86b1(0x2f6),'countries':['MX']},{'name':_0x5a86b1(0x2314),'utcOffset':-0x1a4,'offsetStr':_0x5a86b1(0x2f6),'countries':['MX']},{'name':'America/Hermosillo','utcOffset':-0x1a4,'offsetStr':'-07:00','countries':['MX']},{'name':'America/Tijuana','utcOffset':-0x1e0,'offsetStr':_0x5a86b1(0x185e),'countries':['MX']},{'name':'America/Santa_Isabel','utcOffset':-0x1e0,'offsetStr':_0x5a86b1(0x185e),'countries':['MX']},{'name':'America/Bahia_Banderas','utcOffset':-0x168,'offsetStr':_0x5a86b1(0x22a9),'countries':['MX']},{'name':_0x5a86b1(0x2892),'utcOffset':0x1e0,'offsetStr':'+08:00','countries':['MY']},{'name':'Asia/Kuching','utcOffset':0x1e0,'offsetStr':_0x5a86b1(0xea7),'countries':['MY']},{'name':'Africa/Maputo','utcOffset':0x78,'offsetStr':_0x5a86b1(0x101b),'countries':['MZ','BI','BW','CD','MW','RW','ZM','ZW']},{'name':'Africa/Windhoek','utcOffset':0x78,'offsetStr':_0x5a86b1(0x101b),'countries':['NA']},{'name':_0x5a86b1(0x2235),'utcOffset':0x294,'offsetStr':_0x5a86b1(0x2311),'countries':['NC']},{'name':_0x5a86b1(0x1532),'utcOffset':0x294,'offsetStr':_0x5a86b1(0x2311),'countries':['NF']},{'name':'Africa/Lagos','utcOffset':0x3c,'offsetStr':_0x5a86b1(0x1616),'countries':['NG','AO','BJ','CD','CF','CG','CM','GA','GQ','NE']},{'name':'America/Managua','utcOffset':-0x168,'offsetStr':_0x5a86b1(0x22a9),'countries':['NI']},{'name':_0x5a86b1(0x243b),'utcOffset':0x3c,'offsetStr':'+01:00','countries':['NL']},{'name':_0x5a86b1(0xe17),'utcOffset':0x3c,'offsetStr':_0x5a86b1(0x1616),'countries':['NO','SJ']},{'name':'Asia/Kathmandu','utcOffset':0x159,'offsetStr':'+05:45','countries':['NP']},{'name':'Pacific/Nauru','utcOffset':0x2d0,'offsetStr':_0x5a86b1(0x53f),'countries':['NR']},{'name':'Pacific/Niue','utcOffset':-0x294,'offsetStr':_0x5a86b1(0x355),'countries':['NU']},{'name':'Pacific/Auckland','utcOffset':0x30c,'offsetStr':_0x5a86b1(0x2531),'countries':['NZ','AQ']},{'name':'Pacific/Chatham','utcOffset':0x339,'offsetStr':_0x5a86b1(0x1d03),'countries':['NZ']},{'name':_0x5a86b1(0x1ab4),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['PA']},{'name':_0x5a86b1(0x1d30),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['PE']},{'name':'Pacific/Tahiti','utcOffset':-0x258,'offsetStr':_0x5a86b1(0x11f5),'countries':['PF']},{'name':_0x5a86b1(0x1ce),'utcOffset':-0x23a,'offsetStr':_0x5a86b1(0x2732),'countries':['PF']},{'name':_0x5a86b1(0x1800),'utcOffset':-0x21c,'offsetStr':_0x5a86b1(0x1ffb),'countries':['PF']},{'name':_0x5a86b1(0x2105),'utcOffset':0x258,'offsetStr':_0x5a86b1(0x15f),'countries':['PG']},{'name':_0x5a86b1(0xc14),'utcOffset':0x294,'offsetStr':_0x5a86b1(0x2311),'countries':['PG']},{'name':_0x5a86b1(0x21f0),'utcOffset':0x1e0,'offsetStr':_0x5a86b1(0xea7),'countries':['PH']},{'name':_0x5a86b1(0x2590),'utcOffset':0x12c,'offsetStr':'+05:00','countries':['PK']},{'name':_0x5a86b1(0x7c4),'utcOffset':0x3c,'offsetStr':_0x5a86b1(0x1616),'countries':['PL']},{'name':_0x5a86b1(0xad1),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['PM']},{'name':'Pacific/Pitcairn','utcOffset':-0x1e0,'offsetStr':_0x5a86b1(0x185e),'countries':['PN']},{'name':'America/Puerto_Rico','utcOffset':-0xf0,'offsetStr':'-04:00','countries':['PR']},{'name':_0x5a86b1(0x2876),'utcOffset':0x78,'offsetStr':'+02:00','countries':['PS']},{'name':'Asia/Hebron','utcOffset':0x78,'offsetStr':_0x5a86b1(0x101b),'countries':['PS']},{'name':'Europe/Lisbon','utcOffset':0x0,'offsetStr':'+00:00','countries':['PT']},{'name':_0x5a86b1(0x1e0a),'utcOffset':0x0,'offsetStr':'+00:00','countries':['PT']},{'name':_0x5a86b1(0x1a42),'utcOffset':-0x3c,'offsetStr':_0x5a86b1(0x1140),'countries':['PT']},{'name':_0x5a86b1(0xb88),'utcOffset':0x21c,'offsetStr':_0x5a86b1(0xe9),'countries':['PW']},{'name':_0x5a86b1(0x27a3),'utcOffset':-0xb4,'offsetStr':_0x5a86b1(0x1504),'countries':['PY']},{'name':_0x5a86b1(0x230c),'utcOffset':0xb4,'offsetStr':'+03:00','countries':['QA','BH']},{'name':'Indian/Reunion','utcOffset':0xf0,'offsetStr':_0x5a86b1(0x1e77),'countries':['RE','TF']},{'name':_0x5a86b1(0x1bc7),'utcOffset':0x78,'offsetStr':_0x5a86b1(0x101b),'countries':['RO']},{'name':_0x5a86b1(0x23b8),'utcOffset':0x3c,'offsetStr':_0x5a86b1(0x1616),'countries':['RS','BA','HR','ME','MK','SI']},{'name':'Europe/Kaliningrad','utcOffset':0x78,'offsetStr':'+02:00','countries':['RU']},{'name':_0x5a86b1(0x100),'utcOffset':0xb4,'offsetStr':_0x5a86b1(0x16f1),'countries':['RU']},{'name':_0x5a86b1(0x1de1),'utcOffset':0xb4,'offsetStr':_0x5a86b1(0x16f1),'countries':['RU']},{'name':_0x5a86b1(0xd62),'utcOffset':0xb4,'offsetStr':'+03:00','countries':['RU']},{'name':_0x5a86b1(0xe08),'utcOffset':0xf0,'offsetStr':_0x5a86b1(0x1e77),'countries':['RU']},{'name':_0x5a86b1(0x1aa0),'utcOffset':0x12c,'offsetStr':_0x5a86b1(0x1ba6),'countries':['RU']},{'name':'Asia/Omsk','utcOffset':0x168,'offsetStr':_0x5a86b1(0x1cd1),'countries':['RU']},{'name':_0x5a86b1(0xba7),'utcOffset':0x168,'offsetStr':'+06:00','countries':['RU']},{'name':_0x5a86b1(0x162),'utcOffset':0x1a4,'offsetStr':'+07:00','countries':['RU']},{'name':'Asia/Krasnoyarsk','utcOffset':0x1a4,'offsetStr':_0x5a86b1(0x1fa),'countries':['RU']},{'name':_0x5a86b1(0x164e),'utcOffset':0x1e0,'offsetStr':_0x5a86b1(0xea7),'countries':['RU']},{'name':_0x5a86b1(0x908),'utcOffset':0x1e0,'offsetStr':_0x5a86b1(0xea7),'countries':['RU']},{'name':_0x5a86b1(0x649),'utcOffset':0x21c,'offsetStr':_0x5a86b1(0xe9),'countries':['RU']},{'name':_0x5a86b1(0x263b),'utcOffset':0x21c,'offsetStr':_0x5a86b1(0xe9),'countries':['RU']},{'name':_0x5a86b1(0x2404),'utcOffset':0x258,'offsetStr':_0x5a86b1(0x15f),'countries':['RU']},{'name':'Asia/Sakhalin','utcOffset':0x258,'offsetStr':_0x5a86b1(0x15f),'countries':['RU']},{'name':_0x5a86b1(0xbac),'utcOffset':0x258,'offsetStr':'+10:00','countries':['RU']},{'name':_0x5a86b1(0x15a2),'utcOffset':0x258,'offsetStr':'+10:00','countries':['RU']},{'name':_0x5a86b1(0x22e5),'utcOffset':0x294,'offsetStr':'+11:00','countries':['RU']},{'name':_0x5a86b1(0x205a),'utcOffset':0x2d0,'offsetStr':_0x5a86b1(0x53f),'countries':['RU']},{'name':_0x5a86b1(0x10d1),'utcOffset':0x2d0,'offsetStr':'+12:00','countries':['RU']},{'name':_0x5a86b1(0x179),'utcOffset':0xb4,'offsetStr':_0x5a86b1(0x16f1),'countries':['SA','KW','YE']},{'name':_0x5a86b1(0x1a34),'utcOffset':0x294,'offsetStr':'+11:00','countries':['SB']},{'name':_0x5a86b1(0x115e),'utcOffset':0xf0,'offsetStr':_0x5a86b1(0x1e77),'countries':['SC']},{'name':_0x5a86b1(0x2085),'utcOffset':0xb4,'offsetStr':_0x5a86b1(0x16f1),'countries':['SD','SS']},{'name':_0x5a86b1(0x669),'utcOffset':0x3c,'offsetStr':_0x5a86b1(0x1616),'countries':['SE']},{'name':_0x5a86b1(0x15a5),'utcOffset':0x1e0,'offsetStr':'+08:00','countries':['SG']},{'name':_0x5a86b1(0x270f),'utcOffset':-0xb4,'offsetStr':_0x5a86b1(0x1504),'countries':['SR']},{'name':'America/El_Salvador','utcOffset':-0x168,'offsetStr':_0x5a86b1(0x22a9),'countries':['SV']},{'name':_0x5a86b1(0x35d),'utcOffset':0x78,'offsetStr':_0x5a86b1(0x101b),'countries':['SY']},{'name':_0x5a86b1(0x27bb),'utcOffset':-0xf0,'offsetStr':_0x5a86b1(0xaba),'countries':['TC']},{'name':_0x5a86b1(0x1cb4),'utcOffset':0x3c,'offsetStr':_0x5a86b1(0x1616),'countries':['TD']},{'name':_0x5a86b1(0x1a3f),'utcOffset':0x12c,'offsetStr':'+05:00','countries':['TF']},{'name':_0x5a86b1(0x1747),'utcOffset':0x1a4,'offsetStr':_0x5a86b1(0x1fa),'countries':['TH','KH','LA','VN']},{'name':'Asia/Dushanbe','utcOffset':0x12c,'offsetStr':_0x5a86b1(0x1ba6),'countries':['TJ']},{'name':_0x5a86b1(0x12e4),'utcOffset':0x30c,'offsetStr':_0x5a86b1(0x2531),'countries':['TK']},{'name':_0x5a86b1(0x17a7),'utcOffset':0x21c,'offsetStr':'+09:00','countries':['TL']},{'name':_0x5a86b1(0x11a2),'utcOffset':0x12c,'offsetStr':_0x5a86b1(0x1ba6),'countries':['TM']},{'name':_0x5a86b1(0x14f5),'utcOffset':0x3c,'offsetStr':_0x5a86b1(0x1616),'countries':['TN']},{'name':_0x5a86b1(0xba9),'utcOffset':0x30c,'offsetStr':_0x5a86b1(0x2531),'countries':['TO']},{'name':_0x5a86b1(0x7fe),'utcOffset':0x78,'offsetStr':_0x5a86b1(0x101b),'countries':['TR']},{'name':_0x5a86b1(0x8c1),'utcOffset':-0xf0,'offsetStr':_0x5a86b1(0xaba),'countries':['TT','AG','AI','BL','DM','GD','GP','KN','LC','MF','MS','VC','VG','VI']},{'name':'Pacific/Funafuti','utcOffset':0x2d0,'offsetStr':_0x5a86b1(0x53f),'countries':['TV']},{'name':_0x5a86b1(0x2681),'utcOffset':0x1e0,'offsetStr':_0x5a86b1(0xea7),'countries':['TW']},{'name':_0x5a86b1(0x15c),'utcOffset':0x78,'offsetStr':'+02:00','countries':['UA']},{'name':_0x5a86b1(0x268),'utcOffset':0x78,'offsetStr':_0x5a86b1(0x101b),'countries':['UA']},{'name':'Europe/Zaporozhye','utcOffset':0x78,'offsetStr':'+02:00','countries':['UA']},{'name':_0x5a86b1(0x15ee),'utcOffset':0x2d0,'offsetStr':_0x5a86b1(0x53f),'countries':['UM']},{'name':_0x5a86b1(0x24c0),'utcOffset':-0x12c,'offsetStr':_0x5a86b1(0x1c0d),'countries':['US']},{'name':_0x5a86b1(0x4ce),'utcOffset':-0x12c,'offsetStr':_0x5a86b1(0x1c0d),'countries':['US']},{'name':_0x5a86b1(0x27e9),'utcOffset':-0x12c,'offsetStr':_0x5a86b1(0x1c0d),'countries':['US']},{'name':_0x5a86b1(0x28b1),'utcOffset':-0x12c,'offsetStr':_0x5a86b1(0x1c0d),'countries':['US']},{'name':_0x5a86b1(0xd0f),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['US']},{'name':_0x5a86b1(0x1d9),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['US']},{'name':'America/Indiana/Winamac','utcOffset':-0x12c,'offsetStr':_0x5a86b1(0x1c0d),'countries':['US']},{'name':_0x5a86b1(0x4ae),'utcOffset':-0x12c,'offsetStr':_0x5a86b1(0x1c0d),'countries':['US']},{'name':_0x5a86b1(0x125),'utcOffset':-0x12c,'offsetStr':_0x5a86b1(0x1c0d),'countries':['US']},{'name':'America/Indiana/Vevay','utcOffset':-0x12c,'offsetStr':'-05:00','countries':['US']},{'name':_0x5a86b1(0x20e4),'utcOffset':-0x168,'offsetStr':_0x5a86b1(0x22a9),'countries':['US']},{'name':'America/Indiana/Tell_City','utcOffset':-0x168,'offsetStr':_0x5a86b1(0x22a9),'countries':['US']},{'name':_0x5a86b1(0x2341),'utcOffset':-0x168,'offsetStr':_0x5a86b1(0x22a9),'countries':['US']},{'name':_0x5a86b1(0x26a4),'utcOffset':-0x168,'offsetStr':_0x5a86b1(0x22a9),'countries':['US']},{'name':'America/North_Dakota/Center','utcOffset':-0x168,'offsetStr':'-06:00','countries':['US']},{'name':_0x5a86b1(0xbd3),'utcOffset':-0x168,'offsetStr':'-06:00','countries':['US']},{'name':_0x5a86b1(0x715),'utcOffset':-0x168,'offsetStr':_0x5a86b1(0x22a9),'countries':['US']},{'name':_0x5a86b1(0xf5e),'utcOffset':-0x1a4,'offsetStr':_0x5a86b1(0x2f6),'countries':['US']},{'name':_0x5a86b1(0x149),'utcOffset':-0x1a4,'offsetStr':'-07:00','countries':['US']},{'name':'America/Phoenix','utcOffset':-0x1a4,'offsetStr':_0x5a86b1(0x2f6),'countries':['US']},{'name':_0x5a86b1(0xc81),'utcOffset':-0x1e0,'offsetStr':_0x5a86b1(0x185e),'countries':['US']},{'name':_0x5a86b1(0x1193),'utcOffset':-0x1e0,'offsetStr':'-08:00','countries':['US']},{'name':_0x5a86b1(0x16e0),'utcOffset':-0x21c,'offsetStr':_0x5a86b1(0x1ffb),'countries':['US']},{'name':'America/Juneau','utcOffset':-0x21c,'offsetStr':'-09:00','countries':['US']},{'name':_0x5a86b1(0x26fa),'utcOffset':-0x21c,'offsetStr':_0x5a86b1(0x1ffb),'countries':['US']},{'name':'America/Yakutat','utcOffset':-0x21c,'offsetStr':_0x5a86b1(0x1ffb),'countries':['US']},{'name':_0x5a86b1(0x2c8),'utcOffset':-0x21c,'offsetStr':_0x5a86b1(0x1ffb),'countries':['US']},{'name':_0x5a86b1(0x1078),'utcOffset':-0x258,'offsetStr':_0x5a86b1(0x11f5),'countries':['US']},{'name':_0x5a86b1(0x27b2),'utcOffset':-0x258,'offsetStr':_0x5a86b1(0x11f5),'countries':['US','UM']},{'name':_0x5a86b1(0x262f),'utcOffset':-0xb4,'offsetStr':_0x5a86b1(0x1504),'countries':['UY']},{'name':'Asia/Samarkand','utcOffset':0x12c,'offsetStr':_0x5a86b1(0x1ba6),'countries':['UZ']},{'name':_0x5a86b1(0x2ae),'utcOffset':0x12c,'offsetStr':_0x5a86b1(0x1ba6),'countries':['UZ']},{'name':_0x5a86b1(0x237d),'utcOffset':-0x10e,'offsetStr':_0x5a86b1(0x928),'countries':['VE']},{'name':_0x5a86b1(0x1408),'utcOffset':0x1a4,'offsetStr':_0x5a86b1(0x1fa),'countries':['VN']},{'name':_0x5a86b1(0x1dce),'utcOffset':0x294,'offsetStr':_0x5a86b1(0x2311),'countries':['VU']},{'name':_0x5a86b1(0x2726),'utcOffset':0x2d0,'offsetStr':_0x5a86b1(0x53f),'countries':['WF']},{'name':_0x5a86b1(0x1ae5),'utcOffset':0x348,'offsetStr':_0x5a86b1(0x5d9),'countries':['WS']},{'name':_0x5a86b1(0x293a),'utcOffset':0x78,'offsetStr':_0x5a86b1(0x101b),'countries':['ZA','LS','SZ']}];}],'templateUrl':_0x3384d4};}const _0x49fc36=_0x4f39ff;;function _0x24b0a3(){const _0x16920d=_0x313a4d,_0x30c91b=this;_0x30c91b[_0x16920d(0x1dd6)]=[],_0x30c91b[_0x16920d(0xb79)]=![],_0x30c91b[_0x16920d(0x498)]=0x14;function _0x37c286(_0x57ce2b){const _0x48b906=_0x16920d;let _0x551c0c=0x0;if(_0x57ce2b){_0x30c91b[_0x48b906(0x498)]=_0x57ce2b[_0x48b906(0x63a)][0x2]&&_0x57ce2b['attrs'][0x2]['value']?parseInt(_0x57ce2b[_0x48b906(0x63a)][0x2][_0x48b906(0x175d)])-parseInt(_0x57ce2b[_0x48b906(0x63a)][0x2][_0x48b906(0x175d)])%0x2:0x14;_0x57ce2b[_0x48b906(0x63a)][0x1][_0x48b906(0x175d)]&&_0x57ce2b['attrs'][0x1][_0x48b906(0x175d)]['length']?(_0x30c91b[_0x48b906(0xb79)]=!![],_0x30c91b[_0x48b906(0x1dd6)]=_0x3f65c0()[_0x48b906(0x1be4)](_0x57ce2b[_0x48b906(0x131b)],_0x57ce2b[_0x48b906(0x63a)][0x1][_0x48b906(0x175d)])):(_0x30c91b['filtered']=![],_0x30c91b[_0x48b906(0x1dd6)]=_0x57ce2b['voiceQueuesSelected']);for(let _0x3d02c9=0x0;_0x3d02c9<_0x57ce2b[_0x48b906(0xa27)][_0x48b906(0x19c7)][_0x48b906(0x402)];_0x3d02c9+=0x1){_0x3f65c0()[_0x48b906(0xa4e)](_0x30c91b['filter'],_0x57ce2b[_0x48b906(0xa27)][_0x48b906(0x19c7)][_0x3d02c9]['id'])&&(_0x551c0c+=_0x57ce2b[_0x48b906(0xa27)][_0x48b906(0x19c7)][_0x3d02c9][_0x57ce2b['attrs'][0x0][_0x48b906(0x175d)]]?parseInt(_0x57ce2b[_0x48b906(0xa27)][_0x48b906(0x19c7)][_0x3d02c9][_0x57ce2b[_0x48b906(0x63a)][0x0][_0x48b906(0x175d)]]):0x0);}}return _0x551c0c;}_0x30c91b[_0x16920d(0x25cf)]=_0x37c286;}const _0x1f567b=_0x24b0a3;;_0x49de48[_0x313a4d(0x11c2)]=[_0x313a4d(0x214b)];function _0x49de48(_0x29eac0){const _0x5d682d=_0x313a4d,_0x55f5dc=this;_0x55f5dc[_0x5d682d(0x1dd6)]=[],_0x55f5dc[_0x5d682d(0xb79)]=![],_0x55f5dc[_0x5d682d(0x1063)]=[],_0x55f5dc[_0x5d682d(0x5a1)]={'labels':[_0x5d682d(0x340)],'series':['TOTAL'],'data':[[0x32]],'options':{'responsive':!![],'legend':{'display':!![],'fontColor':_0x5d682d(0x171e)},'scales':{'xAxes':[{'gridLines':{'display':!![]},'ticks':{'fontColor':_0x5d682d(0x171e),'stepSize':0x1,'beginAtZero':!![]}}],'yAxes':[{'gridLines':{'display':![]},'ticks':{'fontColor':_0x5d682d(0x171e)}}]}}};function _0x591cc0(_0x599373){const _0x2a5e99=_0x5d682d;_0x55f5dc['properties']=_0x3f65c0()[_0x2a5e99(0x205)](_0x3f65c0()[_0x2a5e99(0x1dd6)](_0x599373[_0x2a5e99(0x63a)],function(_0x17ff51){const _0x3e8279=_0x2a5e99;return _0x17ff51[_0x3e8279(0x19eb)]&&_0x17ff51[_0x3e8279(0x19eb)][_0x3e8279(0x172b)](_0x3e8279(0xe33))>=0x0&&_0x17ff51[_0x3e8279(0x175d)]&&_0x17ff51[_0x3e8279(0x175d)]!==_0x3e8279(0x203c);}),_0x2a5e99(0x175d));_0x599373[_0x2a5e99(0x63a)][0x3][_0x2a5e99(0x175d)]&&_0x599373['attrs'][0x3][_0x2a5e99(0x175d)][_0x2a5e99(0x402)]?(_0x55f5dc['filtered']=!![],_0x55f5dc['filter']=_0x3f65c0()[_0x2a5e99(0x1be4)](_0x599373['voiceQueuesSelected'],_0x599373[_0x2a5e99(0x63a)][0x3][_0x2a5e99(0x175d)])):(_0x55f5dc[_0x2a5e99(0xb79)]=![],_0x55f5dc[_0x2a5e99(0x1dd6)]=_0x599373['voiceQueuesSelected']);if(_0x55f5dc['multiBarChart'][_0x2a5e99(0x293)][_0x2a5e99(0x402)]>_0x55f5dc['properties'][_0x2a5e99(0x402)]){const _0x40f053=_0x55f5dc[_0x2a5e99(0x5a1)][_0x2a5e99(0x293)]['length']-_0x55f5dc[_0x2a5e99(0x1063)][_0x2a5e99(0x402)];_0x55f5dc['multiBarChart'][_0x2a5e99(0x293)][_0x2a5e99(0x1f7d)](0x0,_0x40f053),_0x55f5dc['multiBarChart'][_0x2a5e99(0x524)][_0x2a5e99(0x1f7d)](0x0,_0x40f053);}for(let _0x1edc63=0x0;_0x1edc63<_0x55f5dc[_0x2a5e99(0x1063)]['length'];_0x1edc63+=0x1){_0x55f5dc[_0x2a5e99(0x5a1)]['series'][_0x1edc63]=_0x29eac0[_0x2a5e99(0xde)](_0x2a5e99(0x14d9)+_0x55f5dc[_0x2a5e99(0x1063)][_0x1edc63][_0x2a5e99(0x1c37)]());_0x3f65c0()['isNil'](_0x55f5dc[_0x2a5e99(0x5a1)]['data'][_0x1edc63])&&(_0x55f5dc[_0x2a5e99(0x5a1)][_0x2a5e99(0x524)][_0x1edc63]=[]);if(_0x55f5dc[_0x2a5e99(0x5a1)]['labels'][_0x2a5e99(0x402)]>_0x55f5dc[_0x2a5e99(0x1dd6)][_0x2a5e99(0x402)]){const _0x226bf6=_0x55f5dc[_0x2a5e99(0x5a1)]['labels']['length']-_0x55f5dc['filter'][_0x2a5e99(0x402)];_0x55f5dc[_0x2a5e99(0x5a1)][_0x2a5e99(0x6ea)][_0x2a5e99(0x1f7d)](0x0,_0x226bf6),_0x55f5dc[_0x2a5e99(0x5a1)][_0x2a5e99(0x524)][_0x1edc63][_0x2a5e99(0x1f7d)](0x0,_0x226bf6);}for(let _0x4402f8=0x0,_0x2ddb6b=0x0;_0x4402f8<_0x599373[_0x2a5e99(0xa27)][_0x2a5e99(0x19c7)][_0x2a5e99(0x402)];_0x4402f8+=0x1){_0x3f65c0()[_0x2a5e99(0xa4e)](_0x55f5dc[_0x2a5e99(0x1dd6)],_0x599373[_0x2a5e99(0xa27)][_0x2a5e99(0x19c7)][_0x4402f8]['id'])&&(_0x55f5dc[_0x2a5e99(0x5a1)][_0x2a5e99(0x6ea)][_0x2ddb6b]=_0x599373[_0x2a5e99(0xa27)][_0x2a5e99(0x19c7)][_0x4402f8][_0x2a5e99(0x19eb)],_0x55f5dc[_0x2a5e99(0x5a1)]['data'][_0x1edc63][_0x2ddb6b]=_0x599373[_0x2a5e99(0xa27)][_0x2a5e99(0x19c7)][_0x4402f8][_0x55f5dc[_0x2a5e99(0x1063)][_0x1edc63]]?parseInt(_0x599373[_0x2a5e99(0xa27)]['rows'][_0x4402f8][_0x55f5dc['properties'][_0x1edc63]]):0x0,_0x2ddb6b+=0x1);}}}function _0x1274fb(_0x27ad88){const _0x49f45b=_0x5d682d;_0x55f5dc[_0x49f45b(0x5a1)][_0x49f45b(0xa08)][_0x49f45b(0x1145)][_0x49f45b(0xc6b)]=_0x27ad88['foreground'];for(let _0x367202=0x0;_0x367202<_0x55f5dc[_0x49f45b(0x5a1)][_0x49f45b(0xa08)][_0x49f45b(0x28b6)][_0x49f45b(0x14f7)][_0x49f45b(0x402)];_0x367202+=0x1){_0x55f5dc[_0x49f45b(0x5a1)]['options'][_0x49f45b(0x28b6)][_0x49f45b(0x14f7)][_0x367202][_0x49f45b(0x1094)][_0x49f45b(0xc6b)]=_0x27ad88[_0x49f45b(0x820)];}for(let _0x1ece77=0x0;_0x1ece77<_0x55f5dc[_0x49f45b(0x5a1)][_0x49f45b(0xa08)][_0x49f45b(0x28b6)][_0x49f45b(0xba3)][_0x49f45b(0x402)];_0x1ece77+=0x1){_0x55f5dc[_0x49f45b(0x5a1)]['options'][_0x49f45b(0x28b6)][_0x49f45b(0xba3)][_0x1ece77][_0x49f45b(0x1094)][_0x49f45b(0xc6b)]=_0x27ad88[_0x49f45b(0x820)];}}function _0x328586(_0x4e0d28){const _0x11c161=_0x5d682d;_0x4e0d28&&(_0x4e0d28[_0x11c161(0x63a)]&&_0x591cc0(_0x4e0d28),_0x4e0d28[_0x11c161(0x820)]&&_0x1274fb(_0x4e0d28));}_0x55f5dc['getMultiBarChart']=_0x328586;}const _0x350d7c=_0x49de48;;_0x737e[_0x313a4d(0x11c2)]=[_0x313a4d(0x214b)];function _0x737e(_0x55ff48){const _0xef992=_0x313a4d,_0x2005c9=this;_0x2005c9['filter']=[],_0x2005c9[_0xef992(0xb79)]=![],_0x2005c9['properties']=[],_0x2005c9['pieChart']={'labels':[_0xef992(0x1a52)],'data':[0x1e],'options':{'responsive':!![],'legend':{'display':!![]}}};function _0x20a722(_0x566299){const _0x4ba6cc=_0xef992;_0x2005c9[_0x4ba6cc(0x1063)]=_0x3f65c0()[_0x4ba6cc(0x205)](_0x3f65c0()[_0x4ba6cc(0x1dd6)](_0x566299[_0x4ba6cc(0x63a)],function(_0x29f2bb){const _0x347d45=_0x4ba6cc;return _0x29f2bb[_0x347d45(0x19eb)]&&_0x29f2bb[_0x347d45(0x19eb)][_0x347d45(0x172b)]('attrSerie')>=0x0&&_0x29f2bb[_0x347d45(0x175d)]&&_0x29f2bb[_0x347d45(0x175d)]!=='null';}),_0x4ba6cc(0x175d));_0x566299['attrs'][0x3]['value']&&_0x566299['attrs'][0x3][_0x4ba6cc(0x175d)]['length']?(_0x2005c9['filtered']=!![],_0x2005c9[_0x4ba6cc(0x1dd6)]=_0x3f65c0()['intersection'](_0x566299[_0x4ba6cc(0x131b)],_0x566299['attrs'][0x3][_0x4ba6cc(0x175d)])):(_0x2005c9['filtered']=![],_0x2005c9['filter']=_0x566299['voiceQueuesSelected']);if(_0x2005c9['pieChart'][_0x4ba6cc(0x6ea)][_0x4ba6cc(0x402)]>_0x2005c9['properties'][_0x4ba6cc(0x402)]){const _0x4ececa=_0x2005c9[_0x4ba6cc(0x6f0)]['labels'][_0x4ba6cc(0x402)]-_0x2005c9[_0x4ba6cc(0x1063)][_0x4ba6cc(0x402)];_0x2005c9['pieChart']['labels'][_0x4ba6cc(0x1f7d)](0x0,_0x4ececa),_0x2005c9[_0x4ba6cc(0x6f0)][_0x4ba6cc(0x524)][_0x4ba6cc(0x1f7d)](0x0,_0x4ececa);}for(let _0x27ad31=0x0,_0x57e3ad=0x0;_0x27ad31<_0x2005c9['properties'][_0x4ba6cc(0x402)];_0x27ad31+=0x1){_0x2005c9[_0x4ba6cc(0x6f0)][_0x4ba6cc(0x6ea)][_0x27ad31]=_0x55ff48[_0x4ba6cc(0xde)]('TOOLS.'+_0x2005c9[_0x4ba6cc(0x1063)][_0x27ad31][_0x4ba6cc(0x1c37)]());for(let _0x20ae26=0x0;_0x20ae26<_0x566299[_0x4ba6cc(0xa27)]['rows'][_0x4ba6cc(0x402)];_0x20ae26+=0x1){_0x3f65c0()[_0x4ba6cc(0xa4e)](_0x2005c9[_0x4ba6cc(0x1dd6)],_0x566299[_0x4ba6cc(0xa27)][_0x4ba6cc(0x19c7)][_0x20ae26]['id'])&&(_0x57e3ad+=_0x566299['voiceQueues']['rows'][_0x20ae26][_0x2005c9[_0x4ba6cc(0x1063)][_0x27ad31]]?parseInt(_0x566299[_0x4ba6cc(0xa27)]['rows'][_0x20ae26][_0x2005c9[_0x4ba6cc(0x1063)][_0x27ad31]]):0x0);}_0x2005c9['pieChart'][_0x4ba6cc(0x524)][_0x27ad31]=_0x57e3ad,_0x57e3ad=0x0;}}function _0x34a07a(_0x1499ad){const _0x4cce00=_0xef992;_0x2005c9[_0x4cce00(0x6f0)][_0x4cce00(0xa08)][_0x4cce00(0x1145)]['fontColor']=_0x1499ad[_0x4cce00(0x820)];}function _0x4a78ec(_0x3b42d1){const _0x474225=_0xef992;_0x3b42d1&&(_0x3b42d1[_0x474225(0x63a)]&&_0x20a722(_0x3b42d1),_0x3b42d1[_0x474225(0x820)]&&_0x34a07a(_0x3b42d1));}_0x2005c9[_0xef992(0xcbc)]=_0x4a78ec;}const _0x47edcb=_0x737e;;_0x2c623c[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),'$timeout',_0x313a4d(0xa0a),_0x313a4d(0x247f)];function _0x2c623c(_0x1f62f6,_0x2f11e0,_0xfdeea4,_0x982d40){const _0x5e02a1=_0x313a4d,_0x12616c=this;_0x12616c[_0x5e02a1(0x1b00)]=0x0,_0x12616c[_0x5e02a1(0x258a)]=0x0,_0x12616c[_0x5e02a1(0x1189)]='',_0x12616c[_0x5e02a1(0x194f)]=[],_0x12616c[_0x5e02a1(0x943)]={'rows':[],'count':0x0},_0x12616c[_0x5e02a1(0x1a56)]={'limit':0xa,'page':0x1,'startDate':_0x2deec6()()[_0x5e02a1(0x1fcc)](_0x5e02a1(0x1066))[_0x5e02a1(0x22b0)](_0x5e02a1(0x1ce2)),'endDate':_0x2deec6()()[_0x5e02a1(0x824)]('day')['format'](_0x5e02a1(0x1ce2)),'output':_0x5e02a1(0x1c63)},_0x12616c['onInit']=_0x4b2e2c,_0x12616c[_0x5e02a1(0x1198)]=_0x1ae1b2,_0x12616c['valueReplacer']=_0x38a946;function _0x4b2e2c(_0x4a135a){const _0x2e5367=_0x5e02a1;_0x4a135a&&(_0x4a135a['attrs']&&(_0x4a135a[_0x2e5367(0x63a)][0x0]&&_0x4a135a[_0x2e5367(0x63a)][0x0][_0x2e5367(0x175d)]&&(_0x12616c[_0x2e5367(0x1a56)]['id']=_0x4a135a['attrs'][0x0][_0x2e5367(0x175d)],_0x982d40['analyticFieldReport'][_0x2e5367(0x16b4)]({'fields':_0x2e5367(0x2545),'nolimit':!![],'DefaultReportId':_0x4a135a[_0x2e5367(0x63a)][0x0][_0x2e5367(0x1142)]===_0x2e5367(0x13b1)?_0x4a135a[_0x2e5367(0x63a)][0x0][_0x2e5367(0x175d)]:undefined,'CustomReportId':_0x4a135a['attrs'][0x0][_0x2e5367(0x1142)]===_0x2e5367(0x1802)?_0x4a135a[_0x2e5367(0x63a)][0x0]['value']:undefined})[_0x2e5367(0x2945)][_0x2e5367(0x146b)](function(_0x50afc8){const _0x30259c=_0x2e5367;_0x50afc8&&_0x50afc8[_0x30259c(0x19c7)]&&(_0x12616c[_0x30259c(0x194f)]=_0x50afc8['rows']);switch(_0x4a135a[_0x30259c(0x63a)][0x0][_0x30259c(0x1142)]){case'default':_0x12616c[_0x30259c(0x1ad8)]=_0x30259c(0x20fa);break;case _0x30259c(0x1802):_0x12616c[_0x30259c(0x1ad8)]=_0x30259c(0x12a5);break;}return _0x982d40[_0x12616c[_0x30259c(0x1ad8)]][_0x30259c(0x16b4)]({'id':_0x4a135a['attrs'][0x0][_0x30259c(0x175d)],'fields':_0x30259c(0x7a7)})[_0x30259c(0x2945)];})[_0x2e5367(0x146b)](function(_0x43a6ab){const _0x16a695=_0x2e5367;_0x43a6ab&&_0x43a6ab['name']&&(_0x12616c[_0x16a695(0x1189)]=_0x43a6ab[_0x16a695(0x19eb)]),_0x1ae1b2();})['catch'](function(_0x26d98b){console['log'](_0x26d98b);})),_0x4a135a[_0x2e5367(0x63a)][0x1]&&_0x4a135a[_0x2e5367(0x63a)][0x1][_0x2e5367(0x175d)]&&(_0x12616c[_0x2e5367(0x258a)]=parseInt(_0x4a135a[_0x2e5367(0x63a)][0x1][_0x2e5367(0x175d)]),!_0x3f65c0()[_0x2e5367(0x15ca)](_0x12616c[_0x2e5367(0x258a)])&&_0x12616c[_0x2e5367(0x258a)]>0x0?(_0x12616c[_0x2e5367(0x1b00)]=parseInt(_0x4a135a[_0x2e5367(0x63a)][0x1][_0x2e5367(0x175d)]),_0x12616c[_0x2e5367(0x2765)]=_0xfdeea4(function(){const _0x50b34a=_0x2e5367;_0x12616c[_0x50b34a(0x1b00)]-=0x1;},0x3e8,0x0),_0x12616c[_0x2e5367(0xa9c)]=_0x2f11e0(function(){const _0x191e32=_0x2e5367;_0x12616c[_0x191e32(0x2765)]&&_0xfdeea4['cancel'](_0x12616c[_0x191e32(0x2765)]),_0x4b2e2c(_0x4a135a);},_0x12616c[_0x2e5367(0x258a)]*0x3e8)):(_0x12616c['interval']&&_0xfdeea4[_0x2e5367(0x6c3)](_0x12616c[_0x2e5367(0x2765)]),_0x12616c['timeout']&&_0x2f11e0['cancel'](_0x12616c[_0x2e5367(0xa9c)])))));}function _0x456bb0(_0x4b46d8){const _0x4aa3a2=_0x5e02a1;_0x12616c[_0x4aa3a2(0x943)]=_0x4b46d8||{'count':0x0,'rows':[]};}function _0x1ae1b2(){const _0x57f54d=_0x5e02a1;_0x12616c[_0x57f54d(0x1a56)][_0x57f54d(0x145d)]=(_0x12616c[_0x57f54d(0x1a56)][_0x57f54d(0x844)]-0x1)*_0x12616c[_0x57f54d(0x1a56)][_0x57f54d(0x221e)],_0x12616c['promise']=_0x982d40[_0x12616c[_0x57f54d(0x1ad8)]][_0x57f54d(0x1caa)](_0x12616c[_0x57f54d(0x1a56)],_0x456bb0)[_0x57f54d(0x2945)];}function _0x38a946(_0x38aa12,_0x4152f5){const _0x4a68c3=_0x5e02a1;return _0x2deec6()(_0x4152f5,_0x4a68c3(0x11c6),!![])[_0x4a68c3(0x146f)]()&&(_0x4152f5=_0x2deec6()(_0x4152f5,'')[_0x4a68c3(0x22b0)](_0x4a68c3(0x1ce2))),_0x4152f5;}_0x1f62f6[_0x5e02a1(0x16ad)](_0x5e02a1(0x116f),function(){const _0x25df2d=_0x5e02a1;_0x12616c[_0x25df2d(0x2765)]&&_0xfdeea4[_0x25df2d(0x6c3)](_0x12616c[_0x25df2d(0x2765)]),_0x12616c[_0x25df2d(0xa9c)]&&_0x2f11e0[_0x25df2d(0x6c3)](_0x12616c[_0x25df2d(0xa9c)]);});}const _0x1cf6d7=_0x2c623c;;const _0xf3be68=_0x4acfac['p']+_0x313a4d(0x139f);;_0x50a228['$inject']=['$mdDialog',_0x313a4d(0xb51)];function _0x50a228(_0x2385b6,_0x5b5d33){const _0x42112c=_0x313a4d,_0x48d59f=this;function _0x89f705(_0x40c70d){const _0x533a99=a0_0x3bb9;return _0x5b5d33[_0x533a99(0x66b)](_0x40c70d);}_0x48d59f[_0x42112c(0x208b)]=_0x89f705;}function _0x42185c(){return{'restrict':'E','scope':{'config':'=?','onEdit':'&?','onDelete':'&?'},'require':'msWidgetEngine','controller':'MsWidgetEngineController','controllerAs':'vm','bindToController':!![],'templateUrl':_0xf3be68};};_0x1bf15f['$inject']=[_0x313a4d(0x910),_0x313a4d(0x961)];function _0x1bf15f(_0x30901f,_0x4b2fc7){const _0x87fc4b=_0x313a4d,_0x15712b=this;_0x15712b['flipped']=![];function _0x48db34(){const _0x5861f1=a0_0x3bb9;return angular['isDefined'](_0x30901f[_0x5861f1(0x443)])&&_0x30901f[_0x5861f1(0x443)]===!![];}function _0x100d37(){const _0x5e0f72=a0_0x3bb9;if(!_0x48db34())return;_0x15712b['flipped']=!_0x15712b[_0x5e0f72(0x14d2)],_0x4b2fc7[_0x5e0f72(0x1851)](_0x5e0f72(0x14d2),_0x15712b[_0x5e0f72(0x14d2)]);}_0x15712b[_0x87fc4b(0xfe5)]=_0x100d37;}function _0x68e426(){const _0x34cd59=_0x313a4d;return{'restrict':'E','scope':{'flippable':'=?'},'controller':_0x34cd59(0x21c4),'transclude':!![],'compile':function(_0x441272){const _0x2eceb6=_0x34cd59;return _0x441272[_0x2eceb6(0x14cf)](_0x2eceb6(0x15a1)),function _0x472dcf(_0x19a7a0,_0x3d0fe1,_0x24c535,_0x404934,_0xdf68d2){_0xdf68d2(function(_0x4ad611){const _0x143140=a0_0x3bb9;_0x3d0fe1[_0x143140(0xb58)](),_0x3d0fe1[_0x143140(0x1034)](_0x4ad611);});};}};}function _0x1a8449(){const _0x5e2782=_0x313a4d;return{'restrict':'E','require':_0x5e2782(0x86b),'transclude':!![],'compile':function(_0x5e6267){const _0x171d47=_0x5e2782;return _0x5e6267[_0x171d47(0x14cf)](_0x171d47(0xff8)),function _0x3ae924(_0x27c4ca,_0x43a74b,_0x2edc62,_0x2681ba,_0x3367c2){const _0x44d2e2=_0x171d47;_0x3367c2(function(_0x466a87){const _0x231be1=a0_0x3bb9;_0x43a74b[_0x231be1(0xb58)](),_0x43a74b['append'](_0x466a87);}),_0x27c4ca[_0x44d2e2(0x199f)]=_0x2681ba[_0x44d2e2(0xfe5)];};}};}function _0x489cd5(){return{'restrict':'E','require':'^msWidget','transclude':!![],'compile':function(_0x195480){const _0x33a099=a0_0x3bb9;return _0x195480['addClass'](_0x33a099(0x91c)),function _0x57f70a(_0x4df1b2,_0x4f0656,_0x189878,_0x11fd7a,_0x13c57a){const _0x1192d3=_0x33a099;_0x13c57a(function(_0x4032d9){const _0x3c4de1=a0_0x3bb9;_0x4f0656[_0x3c4de1(0xb58)](),_0x4f0656[_0x3c4de1(0x1034)](_0x4032d9);}),_0x4df1b2[_0x1192d3(0x199f)]=_0x11fd7a[_0x1192d3(0xfe5)];};}};};const _0x4ce6f8=[[_0x313a4d(0x2588),_0x5ea21c,_0x313a4d(0x2ba)],[_0x313a4d(0x5de),_0x9081f3,_0x313a4d(0x2ba)],[_0x313a4d(0x2098),_0x1af157,_0x313a4d(0x2ba)],[_0x313a4d(0x19db),_0x1d7bca,'directive'],[_0x313a4d(0x2082),_0x2c593b,'directive'],[_0x313a4d(0x273),_0x2dfd8e,_0x313a4d(0x2ba)],[_0x313a4d(0x950),_0x5d1725,_0x313a4d(0x2122)],['msDatepickerFix',_0x51e738,_0x313a4d(0x2ba)],['msDialogRecording',_0x14140d,_0x313a4d(0x2ba)],[_0x313a4d(0x947),_0xe97843,_0x313a4d(0x2ba)],[_0x313a4d(0x118a),_0x4f18c7,'directive'],[_0x313a4d(0x67f),_0xcb3466,_0x313a4d(0x2ba)],['MsFormWizardController',_0x19d7eb,_0x313a4d(0x28f0)],['msFormWizard',_0x5493f5,_0x313a4d(0x2ba)],[_0x313a4d(0xdc4),_0x2573c2,_0x313a4d(0x2ba)],[_0x313a4d(0xdef),_0x58a159,_0x313a4d(0x2ba)],['msMasonryController',_0x1e5a09,_0x313a4d(0x28f0)],[_0x313a4d(0x766),_0x42d98c,_0x313a4d(0x2ba)],[_0x313a4d(0x190f),_0x411ffd,_0x313a4d(0x2ba)],[_0x313a4d(0x88d),_0x12358a,_0x313a4d(0x28f0)],[_0x313a4d(0x26e),_0x9d5c31,_0x313a4d(0x2ba)],[_0x313a4d(0x220f),_0x1fdf01,_0x313a4d(0x1750)],[_0x313a4d(0x1cb7),_0x534b31,_0x313a4d(0x2ba)],['MsNavController',_0x39f75b,'controller'],[_0x313a4d(0x1d7c),_0x42ff92,_0x313a4d(0x2ba)],[_0x313a4d(0x757),_0x4818ed,'directive'],['msNavButton',_0x448133,_0x313a4d(0x2ba)],['msNavToggle',_0x524f66,_0x313a4d(0x2ba)],[_0x313a4d(0x1f9a),_0x1f77ff,_0x313a4d(0x2122)],[_0x313a4d(0x72d),_0x5996f8,_0x313a4d(0x28f0)],[_0x313a4d(0x111b),_0x463732,_0x313a4d(0x2ba)],['MsNavigationNodeController',_0x3bcac9,_0x313a4d(0x28f0)],[_0x313a4d(0x108e),_0x9d5ee6,_0x313a4d(0x2ba)],[_0x313a4d(0x2278),_0x569e92,_0x313a4d(0x2ba)],[_0x313a4d(0x1f3a),_0x2d14b9,_0x313a4d(0x2ba)],[_0x313a4d(0x2301),_0x28f06f,_0x313a4d(0x28f0)],['msNavigationHorizontalNode',_0x2061a4,_0x313a4d(0x2ba)],[_0x313a4d(0x329),_0x544ef0,_0x313a4d(0x2ba)],['MsPhonebarController',_0x3ed748,_0x313a4d(0x28f0)],[_0x313a4d(0x234b),_0x4eb318,'directive'],['PrefixDialogController',_0xfe22c8,'controller'],['msBlink',_0x34d685,'directive'],[_0x313a4d(0x15fa),_0x1e5ae9,_0x313a4d(0x28f0)],[_0x313a4d(0x1af),_0x2b1da8,_0x313a4d(0x28f0)],[_0x313a4d(0x16a2),_0x44e456,'controller'],[_0x313a4d(0x58e),_0x3317dc,_0x313a4d(0x2ba)],[_0x313a4d(0x1e49),_0x42999d,_0x313a4d(0x1750)],[_0x313a4d(0xe36),_0x377109,'directive'],[_0x313a4d(0x1d0b),_0x1342a7,_0x313a4d(0x2ba)],['msResponsiveTable',_0x548a0d,_0x313a4d(0x2ba)],['msScrollConfig',_0x2cf52a,_0x313a4d(0x2122)],['msScroll',_0xd7ec00,'directive'],[_0x313a4d(0x869),_0x1ffb23,_0x313a4d(0x28f0)],[_0x313a4d(0x90e),_0x252a64,'directive'],[_0x313a4d(0x1579),_0x240b2a,_0x313a4d(0x28f0)],[_0x313a4d(0x237a),_0x468a3e,_0x313a4d(0x2ba)],['msSidenavHelper',_0x16868d,_0x313a4d(0x2ba)],['msSplashScreen',_0x2116b5,_0x313a4d(0x2ba)],[_0x313a4d(0x1c38),_0x57e9da,'controller'],[_0x313a4d(0x1bcc),_0x18a71a,_0x313a4d(0x2ba)],['msHorizontalStepperStep',_0x33da0f,_0x313a4d(0x2ba)],[_0x313a4d(0x1fd2),_0xf12080,_0x313a4d(0x2ba)],[_0x313a4d(0x7e3),_0xa54b11,_0x313a4d(0x2ba)],[_0x313a4d(0x6fa),_0x2f80ee,_0x313a4d(0x28f0)],[_0x313a4d(0x1171),_0x222191,'directive'],['MsTimelineController',_0x4ef3b2,'controller'],[_0x313a4d(0x870),_0x209ece,_0x313a4d(0x2ba)],[_0x313a4d(0x853),_0x3f00c1,_0x313a4d(0x2ba)],['MsTimerController',_0x56fe58,_0x313a4d(0x28f0)],[_0x313a4d(0x1397),_0x12282e,_0x313a4d(0x2ba)],[_0x313a4d(0x217),_0x49fc36,_0x313a4d(0x2ba)],[_0x313a4d(0xd60),_0x1f567b,_0x313a4d(0x28f0)],[_0x313a4d(0x24a3),_0x350d7c,_0x313a4d(0x28f0)],[_0x313a4d(0xe10),_0x47edcb,'controller'],[_0x313a4d(0x2419),_0x1cf6d7,_0x313a4d(0x28f0)],['MsWidgetEngineController',_0x50a228,'controller'],[_0x313a4d(0x2074),_0x42185c,'directive'],[_0x313a4d(0x21c4),_0x1bf15f,_0x313a4d(0x28f0)],[_0x313a4d(0x22a2),_0x68e426,'directive'],[_0x313a4d(0x2794),_0x1a8449,_0x313a4d(0x2ba)],[_0x313a4d(0x1d95),_0x489cd5,_0x313a4d(0x2ba)]],_0xdcbf80=_0x4ce6f8;;_0x35701b[_0x313a4d(0x11c2)]=['$q',_0x313a4d(0x214b)];function _0x35701b(_0x3061d5,_0x5ae849){function _0x51142b(_0xbd924a){let _0x34faba;return _0x3061d5(function(_0x48a413){const _0xcadeb7=a0_0x3bb9;try{if(_0x3f65c0()[_0xcadeb7(0x2635)](_0xbd924a[_0xcadeb7(0x240)]))_0x34faba=_0x5ae849[_0xcadeb7(0xde)](_0xcadeb7(0x69c));else{if(_0x3f65c0()[_0xcadeb7(0x2635)](_0xbd924a[_0xcadeb7(0x26d4)]))_0x34faba=_0xbd924a[_0xcadeb7(0x1a02)]?_0x5ae849['instant'](_0xbd924a[_0xcadeb7(0x1a02)]):_0x5ae849[_0xcadeb7(0xde)]('DASHBOARDS.CHOOSE');else{if(_0xbd924a[_0xcadeb7(0x26d4)][_0xcadeb7(0x402)]===_0xbd924a[_0xcadeb7(0x240)][_0xcadeb7(0x402)])_0x34faba=_0x5ae849[_0xcadeb7(0xde)](_0xcadeb7(0x175e));else{const _0xddbc1c=_0xbd924a[_0xcadeb7(0x421)]||'id';_0x34faba=_0x3f65c0()(_0xbd924a[_0xcadeb7(0x240)])['filter'](function(_0xdad015){const _0x488ce5=_0xcadeb7;return _0x3f65c0()[_0x488ce5(0xa4e)](_0xbd924a['param'],_0xdad015[_0xddbc1c]);})[_0xcadeb7(0x205)]('name')[_0xcadeb7(0x175d)]()['join'](',\x20');}}}_0x48a413(_0x34faba);}catch(_0x45c197){console[_0xcadeb7(0x1a74)](_0xcadeb7(0x7a3),_0x45c197),_0x48a413(null);}});}const _0x4401e5={'setPlaceholder':_0x51142b};return _0x4401e5;}const _0x52197e=_0x35701b;;function _0x4d0e90(){return function(_0x60f33e){const _0x104ed8=a0_0x3bb9,_0x16eaf6=Date[_0x104ed8(0x709)]()-new Date(_0x60f33e);if(_0x16eaf6<0x3c*0x3c*0x3e8)return _0x2deec6()(_0x60f33e)[_0x104ed8(0xbd5)]();else{if(_0x16eaf6<0x3c*0x3c*0x18*0x3e8)return _0x2deec6()(_0x60f33e)[_0x104ed8(0x22b0)](_0x104ed8(0x28b4));else return _0x16eaf6<0x3c*0x3c*0x18*0x7*0x3e8?_0x2deec6()(_0x60f33e)[_0x104ed8(0x22b0)](_0x104ed8(0x3eb)):_0x2deec6()(_0x60f33e)['calendar']();}};}const _0x24564d=_0x4d0e90;;_0x3cf718[_0x313a4d(0x11c2)]=['$sce'];function _0x3cf718(_0x4b7cc0){return function(_0x33a2a3){const _0xf91bd8=a0_0x3bb9;return _0x4b7cc0[_0xf91bd8(0x1d72)](_0x33a2a3);};}function _0x2d4398(){return function(_0x3845bb){const _0x828ae7=a0_0x3bb9;return String(_0x3845bb)[_0x828ae7(0x5f4)](/<[^>]+>/gm,'');};}function _0x15bc34(){return function(_0x12c9f0){const _0x470c94=a0_0x3bb9;return!_0x12c9f0?'':_0x12c9f0[_0x470c94(0x5f4)](/ /g,'');};}function _0x29e680(){return function(_0x258a2d){const _0x54a272=a0_0x3bb9;if(!_0x258a2d)return;if(_0x258a2d[_0x54a272(0x1142)]===_0x54a272(0x2ba))return _0x258a2d[_0x54a272(0x19eb)]['replace'](/([A-Z])/g,function(_0xeb826d){const _0xe10e53=_0x54a272;return'-'+_0xeb826d[_0xe10e53(0x256e)]();});return _0x258a2d[_0x54a272(0x11f8)]||_0x258a2d['name'];};};function _0x421af9(){return function(_0x11f97b){if(!_0x11f97b)return'';return _0x3f65c0()['capitalize'](_0x11f97b);};}const _0xd8cfa1=_0x421af9;;function _0x188e09(){return function(_0x233bb5,_0x238eda){const _0x51ed20=a0_0x3bb9;if(_0x233bb5[_0x51ed20(0x402)]===0x0||!_0x238eda)return _0x233bb5;if(_0x238eda[_0x51ed20(0x402)]===0x0)return[];const _0x509c3c=[];for(let _0x10d758=0x0;_0x10d758<_0x233bb5['length'];_0x10d758++){const _0x56a393=_0x233bb5[_0x10d758];let _0x3dbf20=![];for(let _0x5536d9=0x0;_0x5536d9<_0x238eda[_0x51ed20(0x402)];_0x5536d9++){const _0x24ce90=_0x238eda[_0x5536d9];if(_0x56a393['id']===_0x24ce90){_0x3dbf20=!![];break;}}_0x3dbf20&&_0x509c3c[_0x51ed20(0x1f47)](_0x56a393);}return _0x509c3c;};}const _0x5c7cb0=_0x188e09;;function _0x4f2b30(){return function(_0x42e9f8,_0x19d6f3,_0x3fd1b8){const _0x4f526b=a0_0x3bb9;if(_0x42e9f8[_0x4f526b(0x402)]===0x0||!_0x3fd1b8||_0x3fd1b8[_0x4f526b(0x402)]===0x0)return _0x42e9f8;const _0x443f88=[];for(let _0x1d08d8=0x0;_0x1d08d8<_0x42e9f8[_0x4f526b(0x402)];_0x1d08d8++){const _0x22ea0f=_0x42e9f8[_0x1d08d8];let _0xd97db2=![];for(let _0x20dc33=0x0;_0x20dc33<_0x3fd1b8['length'];_0x20dc33++){const _0x2297bb=_0x3fd1b8[_0x20dc33];if(_0x22ea0f[_0x19d6f3][_0x4f526b(0x172b)](_0x2297bb)>-0x1){_0xd97db2=!![];break;}}_0xd97db2&&_0x443f88[_0x4f526b(0x1f47)](_0x22ea0f);}return _0x443f88;};}const _0xe1b971=_0x4f2b30;;function _0x2fe331(){return function(_0x51d67e){const _0x37fdb3=a0_0x3bb9;if(!_0x51d67e)return'';return _0x3f65c0()[_0x37fdb3(0x2836)](_0x51d67e);};}const _0x2a9c66=_0x2fe331;;function _0x4d98ce(){return function(_0x1f5b60){const _0x265b28=a0_0x3bb9;if(!_0x1f5b60)return'';return _0x3f65c0()[_0x265b28(0x20d1)](_0x1f5b60);};}const _0x5b65a6=_0x4d98ce;;function _0xbb4f31(){return function(_0x2f3213,_0x13d9da){const _0x1cbfd1=a0_0x3bb9;if(_0x2f3213['length']===0x0||_0x13d9da[_0x1cbfd1(0x402)]===0x0)return _0x2f3213;const _0x1e67d0=[];return _0x2f3213[_0x1cbfd1(0x1df5)](function(_0x2b70ba){const _0x5c9544=_0x1cbfd1,_0x21a50c=_0x13d9da[_0x5c9544(0xb14)](function(_0x2f0f42){const _0x176985=_0x5c9544;let _0x367076=![];return _0x2b70ba['tags'][_0x176985(0x1df5)](function(_0x2ed38e){const _0x3ea7ff=_0x176985;if(_0x2ed38e[_0x3ea7ff(0x19eb)]===_0x2f0f42['name']){_0x367076=!![];return;}}),_0x367076;});_0x21a50c&&_0x1e67d0[_0x5c9544(0x1f47)](_0x2b70ba);}),_0x1e67d0;};}function _0x4bf12a(){return function(_0x8aa5d0,_0x4aed8f){const _0x59f108=a0_0x3bb9;if(_0x8aa5d0[_0x59f108(0x402)]===0x0||_0x4aed8f['length']===0x0)return;if(_0x8aa5d0[_0x59f108(0x402)]<_0x4aed8f[_0x59f108(0x402)])return[];const _0x38e46e=[],_0x201c8d=_0x4aed8f['every'](function(_0x1b03e3){const _0x1a1563=_0x59f108;let _0x31cc0f=![];return _0x8aa5d0[_0x1a1563(0x1df5)](function(_0x573613){const _0x5b0bf7=_0x1a1563;if(_0x573613[_0x5b0bf7(0x19eb)]===_0x1b03e3[_0x5b0bf7(0x19eb)]){_0x31cc0f=!![];return;}}),_0x31cc0f;});return _0x201c8d&&_0x38e46e[_0x59f108(0x1f47)](_0x8aa5d0),_0x38e46e;};};class _0x1f0a75{constructor(_0x588b7b,_0x5c101f,_0x250fa8,_0x42cfe3){const _0x4692df=_0x313a4d;this['id']=Math[_0x4692df(0x28e8)]()[_0x4692df(0xd5f)](0x24)[_0x4692df(0xe83)](0x2,0xf)+Math[_0x4692df(0x28e8)]()[_0x4692df(0xd5f)](0x24)[_0x4692df(0xe83)](0x2,0xf),this[_0x4692df(0x1189)]=_0x588b7b,this['body']=_0x5c101f,this[_0x4692df(0x204a)]=_0x250fa8,this[_0x4692df(0xa6f)]=_0x42cfe3,this[_0x4692df(0xa7c)]=_0x33f76f;}}function _0xfdb87a(){const _0x27357c=_0x313a4d;return!(window[_0x27357c(0xef3)][_0x27357c(0x28fc)]||window[_0x27357c(0xef3)]['mozHidden']||window[_0x27357c(0xef3)]['webkitHidden']);}function _0xf48884(){const _0x41f014=_0x313a4d;return/Chrome/[_0x41f014(0x1e1e)](navigator[_0x41f014(0x1ca9)])&&/Google Inc/[_0x41f014(0x1e1e)](navigator[_0x41f014(0x8ca)]);}function _0x33f76f(){const _0x3e81ff=_0x313a4d,_0x59bcbe=this;navigator[_0x3e81ff(0x248f)][_0x3e81ff(0x120a)][_0x3e81ff(0x146b)](function(_0x20856a){const _0x57effa=_0x3e81ff;_0x20856a[_0x57effa(0x17d9)]()['then'](function(_0x2fa45a){const _0x5a7fdd=_0x57effa,_0x18d23c=_0x3f65c0()[_0x5a7fdd(0xc84)](_0x2fa45a,function(_0x10cb37){const _0x3df6de=_0x5a7fdd;return _0x10cb37[_0x3df6de(0x524)]['id']===_0x59bcbe['id'];});_0x18d23c&&_0x18d23c[_0x5a7fdd(0xa7c)]();});});}function _0x40799e(){return{'$get':[_0x22fb74]};function _0x22fb74(){const _0x48e241=a0_0x3bb9,_0x2a51ff=[];let _0x2b32cc,_0x5a4ca0;return _0x48e241(0x248f)in navigator&&_0xf48884()?navigator[_0x48e241(0x248f)][_0x48e241(0x2e5)](_0x48e241(0x14d4))[_0x48e241(0x146b)](function(_0x2e112f){const _0x41beef=_0x48e241;_0x2b32cc=_0x2e112f,_0x2b32cc[_0x41beef(0x18e1)]();if(_0x2b32cc[_0x41beef(0xfbf)])_0x5a4ca0=_0x2b32cc[_0x41beef(0xfbf)];else{if(_0x2b32cc['waiting'])_0x5a4ca0=_0x2b32cc[_0x41beef(0x12a3)];else _0x2b32cc[_0x41beef(0x275a)]&&(_0x5a4ca0=_0x2b32cc['active']);}})[_0x48e241(0x129e)](function(_0x4c3721){const _0x220d64=_0x48e241;console[_0x220d64(0x1980)](_0x220d64(0x779),_0x4c3721);}):console['error'](_0x48e241(0xbdd)),navigator[_0x48e241(0x248f)][_0x48e241(0x1c69)]('message',function(_0x46a0d0){const _0x25a940=_0x48e241;if(_0x46a0d0[_0x25a940(0x1d24)]!==_0x5a4ca0)return;const _0x326211=_0x3f65c0()[_0x25a940(0xc84)](_0x2a51ff,{'id':_0x46a0d0['data']['id']});if(_0x326211)switch(_0x46a0d0[_0x25a940(0x524)][_0x25a940(0x233c)]){case'accept':_0x326211['accept']&&_0x326211[_0x25a940(0x204a)]();break;case _0x25a940(0xa6f):_0x326211[_0x25a940(0xa6f)]&&_0x326211[_0x25a940(0xa6f)]();break;default:}}),{'create':function(_0x54bef5,_0x35de4a,_0x54ae83,_0xc73328,_0xa88c8d){return new Promise(function(_0x34ae5a,_0x10f957){const _0x54307d=a0_0x3bb9;let _0x1ad5ef;_0xf48884()&&!_0xfdb87a()?(_0x1ad5ef=new _0x1f0a75(_0x54bef5||_0x54307d(0x2510),_0x35de4a||_0x54307d(0x18d5),_0xc73328,_0xa88c8d),_0x2a51ff[_0x54307d(0x1f47)](_0x1ad5ef),_0x1ad5ef?window[_0x54307d(0xacc)][_0x54307d(0x1eb9)]()['then'](function(_0x56e85d){const _0x47eb8f=_0x54307d;if(_0x56e85d==='granted')return _0x2b32cc['showNotification'](_0x1ad5ef[_0x47eb8f(0x1189)],{'body':_0x1ad5ef[_0x47eb8f(0x2586)],'requireInteraction':!![],'icon':_0x54ae83||_0x47eb8f(0xf76),'data':{'id':_0x1ad5ef['id']},'actions':[{'action':_0x47eb8f(0x204a),'title':_0x47eb8f(0xa35)},{'action':_0x47eb8f(0xa6f),'title':_0x47eb8f(0x257d)}]});})[_0x54307d(0x146b)](function(){_0x34ae5a(_0x1ad5ef);})[_0x54307d(0x129e)](function(_0x477658){_0x10f957(_0x477658);}):_0x10f957(new Error(_0x54307d(0x1f03)))):_0x34ae5a();});}};}}const _0x341f96=_0x40799e;;_0xf29ba6[_0x313a4d(0x11c2)]=['$q',_0x313a4d(0x2032),_0x313a4d(0x247f)];function _0xf29ba6(_0x312e2d,_0x10cc21,_0x1f7ec1){const _0x2a9798={'resolve':_0x85035};return _0x2a9798;function _0x85035(_0x223e6a,_0x30e9dd){const _0x33f351=a0_0x3bb9,_0x5005fc=_0x223e6a[_0x33f351(0x10c8)]('@'),_0x44c8a6=_0x5005fc[0x0],_0x37a892=_0x5005fc[0x1],_0xb6de79=_0x30e9dd||{};if(!_0x44c8a6||!_0x37a892)return _0x10cc21[_0x33f351(0x1980)](_0x33f351(0x182b)),![];const _0x1ceb35=_0x312e2d[_0x33f351(0xce3)](),_0x26a8e6=_0x32f1b7(_0x44c8a6);return!_0x26a8e6?(_0x10cc21[_0x33f351(0x1980)]('Resource\x20\x22'+_0x44c8a6+_0x33f351(0x8ea)),_0x1ceb35[_0x33f351(0xa6f)](_0x33f351(0xad6)+_0x44c8a6+'\x22\x20is\x20not\x20defined\x20in\x20the\x20api\x20service!')):_0x26a8e6[_0x37a892](_0xb6de79,function(_0x1679db){const _0x34adcf=_0x33f351;_0x1ceb35[_0x34adcf(0x2922)](_0x1679db);},function(_0x25840b){const _0x359f7b=_0x33f351;_0x1ceb35[_0x359f7b(0xa6f)](_0x25840b);}),_0x1ceb35[_0x33f351(0xb9c)];}function _0x32f1b7(_0x28f0a0){const _0xa23117=a0_0x3bb9,_0x32f2a7=_0x28f0a0['split']('.');let _0x11e52e=_0x1f7ec1;for(let _0x5971ee=0x0;_0x5971ee<_0x32f2a7[_0xa23117(0x402)];_0x5971ee++){if(angular[_0xa23117(0x1619)](_0x11e52e[_0x32f2a7[_0x5971ee]])){_0x10cc21[_0xa23117(0x1980)](_0xa23117(0x1e9d)+_0x32f2a7[_0x5971ee]+_0xa23117(0x240a)),_0x11e52e=![];break;}_0x11e52e=_0x11e52e[_0x32f2a7[_0x5971ee]];}if(!_0x11e52e)return![];return _0x11e52e;}}const _0x27fceb=_0xf29ba6;;_0xa4074['$inject']=[_0x313a4d(0x1fc2)];function _0xa4074(_0x50d221){function _0x7ff61e(){const _0x1b3f1c=a0_0x3bb9;_0x50d221[_0x1b3f1c(0x651)]=!![];}function _0x6bf2ba(){const _0x268ddc=a0_0x3bb9;_0x50d221[_0x268ddc(0x651)]=![];}const _0x3f710b={'showLoadingIndicator':_0x7ff61e,'hideLoadingIndicator':_0x6bf2ba};return _0x3f710b;}const _0x34798b=_0xa4074;;function _0x5524c9(){const _0x53e171=_0x313a4d,_0x518ff8=this,_0xa720b=angular[_0x53e171(0x24f2)](['ng'])[_0x53e171(0x16b4)](_0x53e171(0x2032));let _0x4c8e73='';const _0x3bf6fd=[];_0x518ff8[_0x53e171(0x1a2)]=_0x3fc499,_0x518ff8[_0x53e171(0x9fa)]=_0x1c9b46,_0x518ff8[_0x53e171(0x18f2)]=_0x2f9ae8,_0x518ff8[_0x53e171(0x2e5)]=_0x4b6949;function _0x3fc499(_0x399011){_0x4c8e73=_0x399011;}function _0x1c9b46(){return _0x4c8e73;}function _0x2f9ae8(){return _0x3bf6fd;}function _0x4b6949(_0xae3640,_0x4bab77){const _0x228581=_0x53e171;if(!angular[_0x228581(0x54e)](_0xae3640)){_0xa720b[_0x228581(0x1980)](_0x228581(0x2333));return;}if(!angular[_0x228581(0x1bbb)](_0x4bab77)){_0xa720b[_0x228581(0x1980)](_0x228581(0xac9));return;}_0x3bf6fd[_0xae3640]={'url':_0x4c8e73+(_0x4bab77[0x0]||''),'paramDefaults':_0x4bab77[0x1]||[],'actions':_0x4bab77[0x2]||[],'options':_0x4bab77[0x3]||{}};}this[_0x53e171(0x980)]=function(_0xa2939b,_0x29c3b9,_0x21067f,_0x557bd1){const _0x2d497c={'setBaseUrl':_0x3fc499,'getBaseUrl':_0x1c9b46,'register':_0x4b6949,'resolve':_0x4eca41,'request':_0x31bb28};return _0x2d497c;function _0x4eca41(_0x9b5e4e,_0xd6fab){const _0xee73c6=a0_0x3bb9;_0x557bd1[_0xee73c6(0x25a4)](_0xee73c6(0x687));const _0xbb91c=_0x9b5e4e[_0xee73c6(0x10c8)]('@'),_0x435c07=_0xbb91c[0x0],_0x34c539=_0xbb91c[0x1],_0x1b53ca=_0xd6fab||{};if(!_0x435c07||!_0x34c539)return _0xa2939b['error']('msApi.resolve\x20requires\x20correct\x20action\x20parameter\x20(resourceName@methodName)'),![];const _0x2b2e5e=_0x29c3b9[_0xee73c6(0xce3)](),_0x41e9b5=_0x3bf6fd[_0x435c07];if(!_0x41e9b5)_0xa2939b[_0xee73c6(0x1980)]('Resource\x20\x22'+_0x435c07+'\x22\x20is\x20not\x20defined\x20in\x20the\x20api\x20service!'),_0x2b2e5e[_0xee73c6(0xa6f)](_0xee73c6(0xad6)+_0x435c07+_0xee73c6(0x8ea));else{const _0x50d34b=_0x21067f(_0x41e9b5['url'],_0x41e9b5[_0xee73c6(0x21fe)],_0x41e9b5[_0xee73c6(0x713)],_0x41e9b5[_0xee73c6(0xa08)]);_0x50d34b[_0x34c539](_0x1b53ca,function(_0x4b45b8){const _0x2068e5=_0xee73c6;_0x2b2e5e['resolve'](_0x4b45b8),_0x557bd1[_0x2068e5(0x25a4)](_0x2068e5(0x7df));},function(_0x4be87f){const _0x83c3b4=_0xee73c6;_0x2b2e5e[_0x83c3b4(0xa6f)](_0x4be87f),_0x557bd1[_0x83c3b4(0x25a4)](_0x83c3b4(0xb2b));});}return _0x2b2e5e[_0xee73c6(0xb9c)];}function _0x31bb28(_0x584e77,_0x48f2d0,_0x51438a,_0x285d06){const _0x543e22=a0_0x3bb9;_0x557bd1[_0x543e22(0x25a4)](_0x543e22(0xed5));const _0x2201c4=_0x584e77[_0x543e22(0x10c8)]('@'),_0x564be2=_0x2201c4[0x0],_0x575b76=_0x2201c4[0x1],_0x536ac7=_0x48f2d0||{};if(!_0x564be2||!_0x575b76)return _0xa2939b[_0x543e22(0x1980)](_0x543e22(0x1d86)),![];const _0x3c2f66=_0x29c3b9[_0x543e22(0xce3)](),_0x15398f=_0x3bf6fd[_0x564be2];if(!_0x15398f)_0xa2939b[_0x543e22(0x1980)](_0x543e22(0xad6)+_0x564be2+_0x543e22(0x8ea)),_0x3c2f66[_0x543e22(0xa6f)](_0x543e22(0xad6)+_0x564be2+_0x543e22(0x8ea));else{const _0x5ddb2e=_0x21067f(_0x15398f[_0x543e22(0x20cc)],_0x15398f[_0x543e22(0x21fe)],_0x15398f[_0x543e22(0x713)],_0x15398f[_0x543e22(0xa08)]);_0x5ddb2e[_0x575b76](_0x536ac7,function(_0x119edc){const _0x2bc2e0=_0x543e22;_0x557bd1[_0x2bc2e0(0x25a4)](_0x2bc2e0(0xeba)),_0x3c2f66[_0x2bc2e0(0x2922)](_0x119edc),angular[_0x2bc2e0(0x5ef)](_0x51438a)&&angular[_0x2bc2e0(0x1e2c)](_0x51438a)&&_0x51438a(_0x119edc);},function(_0x4a814d){const _0x31ecc0=_0x543e22;_0x557bd1[_0x31ecc0(0x25a4)](_0x31ecc0(0x1ff7)),_0x3c2f66['reject'](_0x4a814d),angular[_0x31ecc0(0x5ef)](_0x285d06)&&angular[_0x31ecc0(0x1e2c)](_0x285d06)&&_0x285d06(_0x4a814d);});}return _0x3c2f66[_0x543e22(0xb9c)];}};}const _0xa1d329=_0x5524c9;var _0x393f65=_0x4acfac(0x985),_0x539ed3=_0x4acfac['n'](_0x393f65);;_0xafc308[_0x313a4d(0x11c2)]=[_0x313a4d(0x1aa9)];function _0xafc308(_0x348cbd){const _0x349538=_0x313a4d,_0x497512=new(_0x539ed3())(_0x348cbd['navigator'][_0x349538(0x1ca9)]);let _0x19d428=null;const _0x575063={'exists':_0xe0e2c6,'detectBrowser':_0x138a8f,'guidGenerator':_0x357830,'isMobile':_0x4bf869,'toggleInArray':_0x193d30,'firstLastDayMonth':_0x57b181};return _0x575063;function _0xe0e2c6(_0x2aeaa5,_0x3f74d2){const _0x310229=_0x349538;return _0x3f74d2[_0x310229(0x172b)](_0x2aeaa5)>-0x1;}function _0x138a8f(){const _0xdabc9d=_0x349538;if(_0x19d428)return _0x19d428;const _0x105cad=[{'string':_0x348cbd[_0xdabc9d(0x27ae)][_0xdabc9d(0x1ca9)],'subString':_0xdabc9d(0x22af),'versionSearch':'Edge','identity':_0xdabc9d(0x22af)},{'string':_0x348cbd['navigator']['userAgent'],'subString':_0xdabc9d(0x52c),'identity':_0xdabc9d(0x52c)},{'string':_0x348cbd[_0xdabc9d(0x27ae)][_0xdabc9d(0x1ca9)],'subString':_0xdabc9d(0x1c7b),'versionSearch':_0xdabc9d(0x1e72),'identity':_0xdabc9d(0x1c7b)},{'string':_0x348cbd['navigator'][_0xdabc9d(0x8ca)],'subString':_0xdabc9d(0x169e),'versionSearch':'Version','identity':_0xdabc9d(0x2920)},{'prop':_0x348cbd['opera'],'identity':_0xdabc9d(0x29e)},{'string':_0x348cbd['navigator'][_0xdabc9d(0x8ca)],'subString':_0xdabc9d(0x5b0),'identity':'iCab'},{'string':_0x348cbd['navigator'][_0xdabc9d(0x8ca)],'subString':_0xdabc9d(0x26de),'identity':_0xdabc9d(0x14f1)},{'string':_0x348cbd[_0xdabc9d(0x27ae)][_0xdabc9d(0x1ca9)],'subString':_0xdabc9d(0x192e),'identity':_0xdabc9d(0x192e)},{'string':_0x348cbd[_0xdabc9d(0x27ae)][_0xdabc9d(0x8ca)],'subString':'Camino','identity':_0xdabc9d(0x817)},{'string':_0x348cbd[_0xdabc9d(0x27ae)][_0xdabc9d(0x1ca9)],'subString':_0xdabc9d(0x548),'identity':'Netscape'},{'string':_0x348cbd['navigator'][_0xdabc9d(0x1ca9)],'subString':_0xdabc9d(0x18b),'identity':'Explorer','versionSearch':_0xdabc9d(0x18b)},{'string':_0x348cbd[_0xdabc9d(0x27ae)][_0xdabc9d(0x1ca9)],'subString':_0xdabc9d(0x1743),'identity':'Explorer','versionSearch':'rv'},{'string':_0x348cbd[_0xdabc9d(0x27ae)][_0xdabc9d(0x1ca9)],'subString':_0xdabc9d(0x1af2),'identity':'Mozilla','versionSearch':'rv'},{'string':_0x348cbd[_0xdabc9d(0x27ae)][_0xdabc9d(0x1ca9)],'subString':_0xdabc9d(0x1b7),'identity':_0xdabc9d(0x548),'versionSearch':'Mozilla'}],_0x74db71=[{'string':_0x348cbd[_0xdabc9d(0x27ae)][_0xdabc9d(0x2b0)],'subString':_0xdabc9d(0x1feb),'identity':_0xdabc9d(0xe07)},{'string':_0x348cbd['navigator'][_0xdabc9d(0x2b0)],'subString':_0xdabc9d(0x2483),'identity':_0xdabc9d(0x2483)},{'string':_0x348cbd[_0xdabc9d(0x27ae)][_0xdabc9d(0x2b0)],'subString':_0xdabc9d(0x2853),'identity':_0xdabc9d(0x2853)},{'string':_0x348cbd[_0xdabc9d(0x27ae)][_0xdabc9d(0x2b0)],'subString':'iPhone','identity':_0xdabc9d(0x289b)},{'string':_0x348cbd[_0xdabc9d(0x27ae)][_0xdabc9d(0x2b0)],'subString':_0xdabc9d(0x1bc5),'identity':_0xdabc9d(0x1bc5)},{'string':_0x348cbd[_0xdabc9d(0x27ae)][_0xdabc9d(0x2b0)],'subString':_0xdabc9d(0x27f1),'identity':_0xdabc9d(0x27f1)},{'string':_0x348cbd[_0xdabc9d(0x27ae)][_0xdabc9d(0x2b0)],'subString':'Android','identity':'Android'}];let _0x1f3e75='';function _0x5d1756(_0x29da95){const _0x4055d6=_0xdabc9d;for(let _0x42599b=0x0;_0x42599b<_0x29da95[_0x4055d6(0x402)];_0x42599b++){const _0x4eefc7=_0x29da95[_0x42599b][_0x4055d6(0x1f23)],_0x420238=_0x29da95[_0x42599b][_0x4055d6(0x94f)];_0x1f3e75=_0x29da95[_0x42599b]['versionSearch']||_0x29da95[_0x42599b][_0x4055d6(0x86c)];if(_0x4eefc7){if(_0x4eefc7['indexOf'](_0x29da95[_0x42599b][_0x4055d6(0x1464)])!==-0x1)return _0x29da95[_0x42599b]['identity'];}else{if(_0x420238)return _0x29da95[_0x42599b][_0x4055d6(0x86c)];}}}function _0x313e01(_0x262977){const _0x46652b=_0xdabc9d,_0x151d26=_0x262977[_0x46652b(0x172b)](_0x1f3e75);if(_0x151d26===-0x1)return;return parseInt(_0x262977['substring'](_0x151d26+_0x1f3e75[_0x46652b(0x402)]+0x1));}let _0x4d6363=_0x5d1756(_0x105cad)||'unknown-browser',_0x9c3186=_0x313e01(_0x348cbd['navigator'][_0xdabc9d(0x1ca9)])||_0x313e01(_0x348cbd[_0xdabc9d(0x27ae)]['appVersion'])||_0xdabc9d(0x891),_0x151df8=_0x5d1756(_0x74db71)||_0xdabc9d(0x144c);return _0x4d6363=_0x4d6363[_0xdabc9d(0x256e)](),_0x9c3186=_0x4d6363+'-'+_0x9c3186,_0x151df8=_0x151df8['toLowerCase'](),_0x19d428={'browser':_0x4d6363,'version':_0x9c3186,'os':_0x151df8},_0x19d428;}function _0x357830(){const _0x12ef73=function(){const _0x24e5be=a0_0x3bb9;return((0x1+Math[_0x24e5be(0x28e8)]())*0x10000||0x0)[_0x24e5be(0xd5f)](0x10)[_0x24e5be(0xe83)](0x1);};return _0x12ef73()+_0x12ef73()+_0x12ef73()+_0x12ef73()+_0x12ef73()+_0x12ef73();}function _0x4bf869(){return _0x497512['mobile']();}function _0x193d30(_0x567b05,_0x242b50){const _0x9db2d9=_0x349538;_0x242b50[_0x9db2d9(0x172b)](_0x567b05)===-0x1?_0x242b50[_0x9db2d9(0x1f47)](_0x567b05):_0x242b50[_0x9db2d9(0x1f7d)](_0x242b50[_0x9db2d9(0x172b)](_0x567b05),0x1);}function _0x57b181(){const _0x1b9886=_0x349538;return{'$gte':_0x2deec6()()[_0x1b9886(0x1fcc)](_0x1b9886(0x12b7))[_0x1b9886(0x65f)](0x0,!![])[_0x1b9886(0x22b0)](),'$lte':_0x2deec6()()[_0x1b9886(0x824)]('month')[_0x1b9886(0x65f)](0x0,!![])[_0x1b9886(0x22b0)]()};}}const _0x579f71=_0xafc308;;const _0x11da21=_0x4acfac['p']+_0x313a4d(0x140a);;_0x53774c[_0x313a4d(0x11c2)]=[_0x313a4d(0x15fe)],_0x21ffcf[_0x313a4d(0x11c2)]=[_0x313a4d(0x23df),'motionTheming'];function _0x21ffcf(_0x29f346,_0x2a6aa6){const _0x3d6c39=_0x313a4d,_0x3d48b7=this;_0x3d48b7[_0x3d6c39(0x122e)]=_0x2a6aa6[_0x3d6c39(0x122e)],_0x3d48b7[_0x3d6c39(0xb6a)]=[{'label':_0x3d6c39(0x291),'value':'boxed'},{'label':_0x3d6c39(0x7d6),'value':_0x3d6c39(0x1175)}],_0x3d48b7[_0x3d6c39(0x210a)]=[{'label':_0x3d6c39(0xd28),'value':'verticalNavigation','figure':_0x3d6c39(0x26db)},{'label':'Vertical\x20Navigation\x20with\x20Fullwidth\x20Toolbar','value':'verticalNavigationFullwidthToolbar','figure':_0x3d6c39(0x2595)},{'label':_0x3d6c39(0xfa2),'value':_0x3d6c39(0x1e3f),'figure':'/assets/images/theme-options/vertical-nav-with-full-toolbar-2.jpg'},{'label':_0x3d6c39(0x1a2c),'value':_0x3d6c39(0x1b58),'figure':_0x3d6c39(0x2299)},{'label':_0x3d6c39(0x2101),'value':_0x3d6c39(0x1852),'figure':'/assets/images/theme-options/content-with-toolbar.jpg'},{'label':_0x3d6c39(0x1323),'value':_0x3d6c39(0xe69),'figure':_0x3d6c39(0x1a55)}],_0x3d48b7[_0x3d6c39(0x3d0)]=_0x3d6c39(0x1175),_0x3d48b7['layoutStyle']=_0x29f346[_0x3d6c39(0x16b4)](_0x3d6c39(0x1151))||_0x3d6c39(0x18d9),_0x3d48b7['setActiveTheme']=_0x4799cc,_0x3d48b7[_0x3d6c39(0x505)]=_0xc3109a,_0x3d48b7[_0x3d6c39(0x7f0)]=_0x5e16f6,_0x3d48b7[_0x3d6c39(0x1bba)]=_0x1ca2b3;function _0x4799cc(_0x4c617a){_0x2a6aa6['setActiveTheme'](_0x4c617a);}function _0xc3109a(){const _0x939c95=_0x3d6c39;return _0x2a6aa6['themes'][_0x939c95(0x275a)];}function _0x5e16f6(){const _0x4db8c4=_0x3d6c39,_0x508251=angular['element']('body');_0x508251[_0x4db8c4(0x1851)](_0x4db8c4(0x1e39),_0x3d48b7[_0x4db8c4(0x3d0)]===_0x4db8c4(0x1e39));}function _0x1ca2b3(){const _0x325d83=_0x3d6c39;_0x29f346[_0x325d83(0x17b7)]('motion.layoutStyle',_0x3d48b7[_0x325d83(0x388)]),location[_0x325d83(0x2502)]();}}function _0x53774c(_0xa2d427){return{'restrict':'E','scope':{},'controller':'MsThemeOptionsController\x20as\x20vm','templateUrl':_0x11da21,'compile':function(_0x1d4956){const _0x4f920e=a0_0x3bb9;return _0x1d4956[_0x4f920e(0x14cf)](_0x4f920e(0xce7)),function _0x352577(_0x24b40){const _0x55781a=_0x4f920e;function _0x202291(){const _0x50f282=a0_0x3bb9;_0xa2d427(_0x50f282(0x1166))[_0x50f282(0x1f05)]();}_0x24b40[_0x55781a(0x214a)]=_0x202291;};}};};_0x198ea8[_0x313a4d(0x11c2)]=[_0x313a4d(0x23df),_0x313a4d(0x2032),'motionTheming'];function _0x198ea8(_0xe1cfa4,_0x3dc352,_0x1d76be){const _0x3c112d={},_0xd8939c={'generate':_0x5a512c,'rgba':_0x17c421};return _0xd8939c;function _0x5a512c(){const _0x42f698=a0_0x3bb9,_0xc976b9=angular[_0x42f698(0x235a)](_0x1d76be[_0x42f698(0x226b)]()),_0x33afc4=angular[_0x42f698(0x235a)](_0x1d76be[_0x42f698(0x248c)]());angular['forEach'](_0xc976b9,function(_0x108b18){const _0x8b278a=_0x42f698;_0x3c112d[_0x108b18['name']]={},angular['forEach'](_0x108b18[_0x8b278a(0x109f)],function(_0x2f75a9,_0x2d2bda){const _0x50f17d=_0x8b278a;_0x3c112d[_0x108b18[_0x50f17d(0x19eb)]][_0x2d2bda]={'name':_0x2f75a9[_0x50f17d(0x19eb)],'levels':{'default':{'color':_0x17c421(_0x33afc4[_0x2f75a9[_0x50f17d(0x19eb)]][_0x2f75a9['hues'][_0x50f17d(0x13b1)]][_0x50f17d(0x175d)]),'contrast1':_0x17c421(_0x33afc4[_0x2f75a9['name']][_0x2f75a9[_0x50f17d(0xb21)][_0x50f17d(0x13b1)]]['contrast'],0x1),'contrast2':_0x17c421(_0x33afc4[_0x2f75a9[_0x50f17d(0x19eb)]][_0x2f75a9[_0x50f17d(0xb21)][_0x50f17d(0x13b1)]][_0x50f17d(0xb45)],0x2),'contrast3':_0x17c421(_0x33afc4[_0x2f75a9[_0x50f17d(0x19eb)]][_0x2f75a9[_0x50f17d(0xb21)]['default']][_0x50f17d(0xb45)],0x3),'contrast4':_0x17c421(_0x33afc4[_0x2f75a9[_0x50f17d(0x19eb)]][_0x2f75a9[_0x50f17d(0xb21)][_0x50f17d(0x13b1)]][_0x50f17d(0xb45)],0x4)},'hue1':{'color':_0x17c421(_0x33afc4[_0x2f75a9[_0x50f17d(0x19eb)]][_0x2f75a9[_0x50f17d(0xb21)][_0x50f17d(0xa83)]][_0x50f17d(0x175d)]),'contrast1':_0x17c421(_0x33afc4[_0x2f75a9[_0x50f17d(0x19eb)]][_0x2f75a9[_0x50f17d(0xb21)][_0x50f17d(0xa83)]][_0x50f17d(0xb45)],0x1),'contrast2':_0x17c421(_0x33afc4[_0x2f75a9[_0x50f17d(0x19eb)]][_0x2f75a9[_0x50f17d(0xb21)][_0x50f17d(0xa83)]][_0x50f17d(0xb45)],0x2),'contrast3':_0x17c421(_0x33afc4[_0x2f75a9[_0x50f17d(0x19eb)]][_0x2f75a9['hues'][_0x50f17d(0xa83)]]['contrast'],0x3),'contrast4':_0x17c421(_0x33afc4[_0x2f75a9[_0x50f17d(0x19eb)]][_0x2f75a9[_0x50f17d(0xb21)]['hue-1']]['contrast'],0x4)},'hue2':{'color':_0x17c421(_0x33afc4[_0x2f75a9[_0x50f17d(0x19eb)]][_0x2f75a9[_0x50f17d(0xb21)][_0x50f17d(0xab8)]][_0x50f17d(0x175d)]),'contrast1':_0x17c421(_0x33afc4[_0x2f75a9[_0x50f17d(0x19eb)]][_0x2f75a9[_0x50f17d(0xb21)]['hue-2']][_0x50f17d(0xb45)],0x1),'contrast2':_0x17c421(_0x33afc4[_0x2f75a9[_0x50f17d(0x19eb)]][_0x2f75a9[_0x50f17d(0xb21)][_0x50f17d(0xab8)]][_0x50f17d(0xb45)],0x2),'contrast3':_0x17c421(_0x33afc4[_0x2f75a9['name']][_0x2f75a9[_0x50f17d(0xb21)][_0x50f17d(0xab8)]]['contrast'],0x3),'contrast4':_0x17c421(_0x33afc4[_0x2f75a9[_0x50f17d(0x19eb)]][_0x2f75a9[_0x50f17d(0xb21)][_0x50f17d(0xab8)]][_0x50f17d(0xb45)],0x4)},'hue3':{'color':_0x17c421(_0x33afc4[_0x2f75a9[_0x50f17d(0x19eb)]][_0x2f75a9[_0x50f17d(0xb21)]['hue-3']][_0x50f17d(0x175d)]),'contrast1':_0x17c421(_0x33afc4[_0x2f75a9[_0x50f17d(0x19eb)]][_0x2f75a9[_0x50f17d(0xb21)][_0x50f17d(0x26bf)]][_0x50f17d(0xb45)],0x1),'contrast2':_0x17c421(_0x33afc4[_0x2f75a9[_0x50f17d(0x19eb)]][_0x2f75a9[_0x50f17d(0xb21)][_0x50f17d(0x26bf)]][_0x50f17d(0xb45)],0x2),'contrast3':_0x17c421(_0x33afc4[_0x2f75a9['name']][_0x2f75a9[_0x50f17d(0xb21)][_0x50f17d(0x26bf)]]['contrast'],0x3),'contrast4':_0x17c421(_0x33afc4[_0x2f75a9[_0x50f17d(0x19eb)]][_0x2f75a9['hues'][_0x50f17d(0x26bf)]][_0x50f17d(0xb45)],0x4)}}};});}),_0x59efb5(_0x3c112d);let _0x29c98f={};angular[_0x42f698(0x1df5)](_0x3c112d,function(_0x25198a,_0x519441){const _0x49fa82=_0x42f698;_0x29c98f={},_0x29c98f[_0x49fa82(0x19d6)]=_0x519441,angular[_0x49fa82(0x1df5)](_0x25198a,function(_0x88d1b2,_0x2009bd){const _0x8168e1=_0x49fa82;angular[_0x8168e1(0x1df5)](_0x88d1b2[_0x8168e1(0xd92)],function(_0x3a3318,_0x57aea4){const _0x9347ac=_0x8168e1;angular[_0x9347ac(0x1df5)](_0x3a3318,function(_0x5e3ad9,_0x2b28ed){_0x29c98f['@'+_0x2009bd+_0x31958f(_0x57aea4)+_0x31958f(_0x2b28ed)]=_0x5e3ad9;});});}),_0x4417a4(_0x29c98f);});}function _0x59efb5(_0x5a213e){const _0x5add8c=a0_0x3bb9,_0x5d600b=angular[_0x5add8c(0x235a)](_0x5a213e);angular[_0x5add8c(0x1df5)](_0x5d600b,function(_0x12e4f1){const _0x22034e=_0x5add8c;angular[_0x22034e(0x1df5)](_0x12e4f1,function(_0x12f640,_0x393581){const _0xcc4b17=_0x22034e;_0x12e4f1[_0x393581]=_0x12f640[_0xcc4b17(0xd92)],_0x12e4f1[_0x393581][_0xcc4b17(0x15bb)]=_0x12f640[_0xcc4b17(0xd92)]['default']['color'],_0x12e4f1[_0x393581][_0xcc4b17(0x1ce0)]=_0x12f640[_0xcc4b17(0xd92)][_0xcc4b17(0x13b1)][_0xcc4b17(0x1ce0)],_0x12e4f1[_0x393581]['contrast2']=_0x12f640[_0xcc4b17(0xd92)][_0xcc4b17(0x13b1)][_0xcc4b17(0xd52)],_0x12e4f1[_0x393581][_0xcc4b17(0x290c)]=_0x12f640['levels']['default'][_0xcc4b17(0x290c)],_0x12e4f1[_0x393581][_0xcc4b17(0xd02)]=_0x12f640[_0xcc4b17(0xd92)][_0xcc4b17(0x13b1)]['contrast4'],delete _0x12e4f1[_0x393581][_0xcc4b17(0x13b1)];});}),_0x1d76be[_0x5add8c(0x1953)](_0x5d600b);const _0x5dd127=_0xe1cfa4[_0x5add8c(0x16b4)](_0x5add8c(0x1a23));_0x5dd127?_0x1d76be[_0x5add8c(0x1168)](_0x5dd127):_0x1d76be[_0x5add8c(0x1168)](_0x5add8c(0x13b1));}function _0x4417a4(_0x339d4a){const _0x36ade7=a0_0x3bb9,_0x4c6f6e=_0x36ade7(0x1422),_0x12e778=new RegExp(Object[_0x36ade7(0x627)](_0x339d4a)['join']('|'),'gi'),_0x4ed2e7=_0x4c6f6e[_0x36ade7(0x5f4)](_0x12e778,function(_0x437340){return _0x339d4a[_0x437340];}),_0x11f9c3=angular[_0x36ade7(0x1853)](_0x36ade7(0x6d8)),_0x5429ba=angular[_0x36ade7(0x1853)](_0x36ade7(0x11fd));_0x5429ba[_0x36ade7(0x1931)](_0x4ed2e7),_0x11f9c3[_0x36ade7(0x1034)](_0x5429ba);}function _0x17c421(_0x5beab0,_0x2956b9){const _0x22c198=a0_0x3bb9,_0x413a41=_0x2956b9||![];_0x5beab0[_0x22c198(0x402)]===0x4&&_0x5beab0[0x0]===0xff&&_0x5beab0[0x1]===0xff&&_0x5beab0[0x2]===0xff&&_0x5beab0[_0x22c198(0x1f7d)](0x3,0x4);_0x413a41&&(_0x5beab0=_0x51a10d(_0x5beab0,_0x413a41));if(_0x5beab0[_0x22c198(0x402)]===0x3)return _0x22c198(0xb34)+_0x5beab0[_0x22c198(0xb47)](',')+')';else{if(_0x5beab0['length']===0x4)return _0x22c198(0x2338)+_0x5beab0[_0x22c198(0xb47)](',')+')';else _0x3dc352['error'](_0x22c198(0x1685)+_0x5beab0[_0x22c198(0x402)]+'\x0a'+'The\x20array\x20must\x20have\x203\x20or\x204\x20colors.');}}function _0x51a10d(_0x2375ee,_0x2ac6f2){const _0x47aa57=a0_0x3bb9,_0x2cc18d={'white':{0x1:'1',0x2:_0x47aa57(0x1cb5),0x3:_0x47aa57(0x2399),0x4:'0.12'},'black':{0x1:_0x47aa57(0x222b),0x2:_0x47aa57(0x1e4a),0x3:_0x47aa57(0x183c),0x4:_0x47aa57(0x2361)}};if(_0x2375ee[0x0]===0xff&&_0x2375ee[0x1]===0xff&&_0x2375ee[0x2]===0xff)_0x2375ee[0x3]=_0x2cc18d['white'][_0x2ac6f2];else _0x2375ee[0x0]===0x0&&_0x2375ee[0x1]===0x0&&_0x2375ee[0x2]===0x0&&(_0x2375ee[0x3]=_0x2cc18d[_0x47aa57(0x13fb)][_0x2ac6f2]);return _0x2375ee;}function _0x31958f(_0x278f7d){const _0x579fa7=a0_0x3bb9;return _0x278f7d[_0x579fa7(0x1121)](0x0)[_0x579fa7(0x1c37)]()+_0x278f7d[_0x579fa7(0x1298)](0x1);}}const _0x25c0aa=_0x198ea8;;const _0x1d808f=[{'name':_0x313a4d(0x19ae),'options':{0x32:_0x313a4d(0x1fab),0x64:_0x313a4d(0x2454),0xc8:_0x313a4d(0x20fe),0x12c:_0x313a4d(0xf16),0x190:_0x313a4d(0x404),0x1f4:_0x313a4d(0x46e),0x258:_0x313a4d(0xb5b),0x2bc:'#275498',0x320:_0x313a4d(0xc93),0x384:_0x313a4d(0x1418),'A100':_0x313a4d(0x2454),'A200':_0x313a4d(0x20fe),'A400':'#5688d3','A700':_0x313a4d(0x118d),'contrastDefaultColor':'light','contrastDarkColors':_0x313a4d(0x1eb2),'contrastStrongLightColors':_0x313a4d(0x1b2)}},{'name':_0x313a4d(0x4e9),'options':{0x32:_0x313a4d(0xf66),0x64:_0x313a4d(0x228a),0xc8:_0x313a4d(0x1f88),0x12c:_0x313a4d(0x10b1),0x190:_0x313a4d(0x278b),0x1f4:_0x313a4d(0x16b5),0x258:_0x313a4d(0x840),0x2bc:_0x313a4d(0xa9a),0x320:_0x313a4d(0x1c09),0x384:_0x313a4d(0x25a8),'A100':_0x313a4d(0x228a),'A200':_0x313a4d(0x1f88),'A400':'#5c616f','A700':_0x313a4d(0xa9a),'contrastDefaultColor':_0x313a4d(0x157b),'contrastDarkColors':_0x313a4d(0x1eb2),'contrastStrongLightColors':_0x313a4d(0x1b2)}}],_0xf9d376=_0x1d808f;;const _0x24a482={'default':{'primary':{'name':'motion-paleblue','hues':{'default':_0x313a4d(0x1a82),'hue-1':_0x313a4d(0x25ae),'hue-2':_0x313a4d(0x9de),'hue-3':_0x313a4d(0x10a1)}},'accent':{'name':_0x313a4d(0x34f),'hues':{'default':_0x313a4d(0x9de),'hue-1':_0x313a4d(0x10a1),'hue-2':'700','hue-3':_0x313a4d(0x1746)}},'warn':{'name':_0x313a4d(0x10f)},'background':{'name':'grey','hues':{'default':_0x313a4d(0x1746),'hue-1':_0x313a4d(0x1746),'hue-2':'100','hue-3':_0x313a4d(0xd30)}}},'pinkTheme':{'primary':{'name':_0x313a4d(0x1f3c),'hues':{'default':'800','hue-1':_0x313a4d(0x9de),'hue-2':_0x313a4d(0x10a1),'hue-3':_0x313a4d(0x1746)}},'accent':{'name':_0x313a4d(0xac3),'hues':{'default':_0x313a4d(0x10a1),'hue-1':'300','hue-2':'600','hue-3':_0x313a4d(0x1746)}},'warn':{'name':_0x313a4d(0x47c)},'background':{'name':'grey','hues':{'default':_0x313a4d(0x1746),'hue-1':_0x313a4d(0x1746),'hue-2':'100','hue-3':'300'}}},'tealTheme':{'primary':{'name':_0x313a4d(0x19ae),'hues':{'default':'900','hue-1':_0x313a4d(0x9de),'hue-2':_0x313a4d(0x25ae),'hue-3':_0x313a4d(0x1746)}},'accent':{'name':'teal','hues':{'default':_0x313a4d(0x25ae),'hue-1':_0x313a4d(0x10a1),'hue-2':_0x313a4d(0x9de),'hue-3':_0x313a4d(0x1746)}},'warn':{'name':_0x313a4d(0xaf1)},'background':{'name':'grey','hues':{'default':'A100','hue-1':_0x313a4d(0x1746),'hue-2':_0x313a4d(0x1e9f),'hue-3':'300'}}}},_0x9d0ac0=_0x24a482;;_0x385066[_0x313a4d(0x11c2)]=[_0x313a4d(0xfea),'motionPalettes',_0x313a4d(0x1ba5)];function _0x385066(_0x356201,_0x5c80f6,_0x36eea7){const _0x495045=_0x313a4d;let _0x5986d5;angular['injector']([_0x495045(0x1633)])[_0x495045(0x1e21)]([_0x495045(0x23df),function(_0x5d00ad){_0x5986d5=_0x5d00ad;}]);const _0x26fd94=_0x5986d5[_0x495045(0x1115)](_0x495045(0x1fb2));_0x26fd94&&(_0x36eea7[_0x495045(0x1802)]=_0x26fd94),_0x356201[_0x495045(0x5c1)](!![]),angular[_0x495045(0x1df5)](_0x5c80f6,function(_0x1d1389){const _0x5a9bf6=_0x495045;_0x356201['definePalette'](_0x1d1389['name'],_0x1d1389[_0x5a9bf6(0xa08)]);}),angular[_0x495045(0x1df5)](_0x36eea7,function(_0x4a6816,_0x311b0c){const _0x437836=_0x495045;_0x356201['theme'](_0x311b0c)[_0x437836(0xc24)](_0x4a6816['primary'][_0x437836(0x19eb)],_0x4a6816[_0x437836(0x1e07)][_0x437836(0xb21)])[_0x437836(0x24d9)](_0x4a6816[_0x437836(0x1119)][_0x437836(0x19eb)],_0x4a6816[_0x437836(0x1119)][_0x437836(0xb21)])['warnPalette'](_0x4a6816[_0x437836(0x1859)][_0x437836(0x19eb)],_0x4a6816[_0x437836(0x1859)][_0x437836(0xb21)])[_0x437836(0xf63)](_0x4a6816[_0x437836(0x156f)][_0x437836(0x19eb)],_0x4a6816[_0x437836(0x156f)][_0x437836(0xb21)]);});}const _0x4eb07f=_0x385066;;_0x5cdb98[_0x313a4d(0x11c2)]=[_0x313a4d(0x23df),_0x313a4d(0x2032),'$mdTheming'];function _0x5cdb98(_0xda95b0,_0x594e0d,_0x3be5dc){const _0x3531e1={'getRegisteredPalettes':_0x2c1db7,'getRegisteredThemes':_0x212b89,'setActiveTheme':_0x185ae6,'setThemesList':_0x46b671,'themes':{'list':{},'active':{'name':'','theme':{}}}};return _0x3531e1;function _0x2c1db7(){const _0x5eef64=a0_0x3bb9;return _0x3be5dc[_0x5eef64(0x269)];}function _0x212b89(){const _0x1d8632=a0_0x3bb9;return _0x3be5dc[_0x1d8632(0x1e8c)];}function _0x185ae6(_0x5de05b){const _0x18c57e=a0_0x3bb9;if(angular[_0x18c57e(0x1619)](_0x3531e1['themes'][_0x18c57e(0x25f4)][_0x5de05b])){if(angular[_0x18c57e(0x1619)](_0x3531e1['themes']['list'][_0x18c57e(0x13b1)])){_0x594e0d[_0x18c57e(0x1980)](_0x18c57e(0xa6b));return;}_0x594e0d[_0x18c57e(0x1859)](_0x18c57e(0x126f)+_0x5de05b+_0x18c57e(0x2575)),_0x3531e1[_0x18c57e(0x122e)][_0x18c57e(0x275a)][_0x18c57e(0x19eb)]=_0x18c57e(0x13b1),_0x3531e1[_0x18c57e(0x122e)][_0x18c57e(0x275a)][_0x18c57e(0x6bf)]=_0x3531e1[_0x18c57e(0x122e)][_0x18c57e(0x25f4)][_0x18c57e(0x13b1)],_0xda95b0['put']('motion.selectedTheme',_0x3531e1['themes']['active']['name']);return;}_0x3531e1[_0x18c57e(0x122e)][_0x18c57e(0x275a)][_0x18c57e(0x19eb)]=_0x5de05b,_0x3531e1['themes'][_0x18c57e(0x275a)]['theme']=_0x3531e1['themes']['list'][_0x5de05b],_0xda95b0['put'](_0x18c57e(0x1a23),_0x5de05b);}function _0x46b671(_0x334797){const _0x5bd1b3=a0_0x3bb9;_0x3531e1[_0x5bd1b3(0x122e)]['list']=_0x334797;}}const _0x313651=_0x5cdb98;;let _0x3d1dd8=angular[_0x313a4d(0x2528)](_0x313a4d(0x283b),[_0x313a4d(0xc86),_0x313a4d(0x15ef),'ngCookies',_0x313a4d(0xd95),_0x313a4d(0x1cb6),_0x313a4d(0x149c),'ngMaterial',_0x313a4d(0x24bb),_0x313a4d(0x334),_0x313a4d(0x2699),_0x313a4d(0xe1),_0x313a4d(0x26ef),_0x313a4d(0x28a5)])[_0x313a4d(0x2122)](_0x313a4d(0x22c5),_0x5e62d5)['config'](_0x3ab618)['run'](_0x52f731)[_0x313a4d(0x28f0)](_0x313a4d(0x26bc),_0x52dc59);_0x3d1dd8=_0xdcbf80['reduce']((_0xfcf353,[_0x4a1330,_0x1b8489,_0xd76307])=>{const _0x19f76e=_0x313a4d;switch(_0xd76307){case'directive':_0xfcf353[_0x19f76e(0x2ba)](_0x4a1330,_0x1b8489);break;case _0x19f76e(0x2122):_0xfcf353[_0x19f76e(0x2122)](_0x4a1330,_0x1b8489);break;case _0x19f76e(0x28f0):_0xfcf353[_0x19f76e(0x28f0)](_0x4a1330,_0x1b8489);break;case _0x19f76e(0x1750):_0xfcf353[_0x19f76e(0x1750)](_0x4a1330,_0x1b8489);break;default:break;}return _0xfcf353;},_0x3d1dd8),_0x3d1dd8[_0x313a4d(0x1750)](_0x313a4d(0x2641),_0x52197e)[_0x313a4d(0x1dd6)]('altDate',_0x24564d)[_0x313a4d(0x1dd6)](_0x313a4d(0x1062),_0x3cf718)['filter'](_0x313a4d(0x985),_0x2d4398)[_0x313a4d(0x1dd6)](_0x313a4d(0x2d2),_0x15bc34)[_0x313a4d(0x1dd6)](_0x313a4d(0xcea),_0x29e680)[_0x313a4d(0x1dd6)](_0x313a4d(0x83f),_0xd8cfa1)['filter'](_0x313a4d(0x1b5c),_0x5c7cb0)['filter']('filterByPropIds',_0xe1b971)['filter'](_0x313a4d(0x1333),_0x2a9c66)['filter'](_0x313a4d(0x2042),_0x5b65a6)['filter']('filterByTags',_0xbb4f31)[_0x313a4d(0x1dd6)](_0x313a4d(0x1b4f),_0x4bf12a)[_0x313a4d(0x2122)]('motNotification',_0x341f96)[_0x313a4d(0x1750)](_0x313a4d(0x362),_0x27fceb)['factory'](_0x313a4d(0xc5f),_0x34798b)['provider'](_0x313a4d(0x13ae),_0xa1d329)[_0x313a4d(0x1750)](_0x313a4d(0x216c),_0x579f71)['controller'](_0x313a4d(0x223d),_0x21ffcf)[_0x313a4d(0x2ba)](_0x313a4d(0x539),_0x53774c)[_0x313a4d(0x1750)](_0x313a4d(0x1373),_0x25c0aa)[_0x313a4d(0x24fe)]('motionPalettes',_0xf9d376)[_0x313a4d(0x24fe)](_0x313a4d(0x1ba5),_0x9d0ac0)[_0x313a4d(0x989)](_0x4eb07f)[_0x313a4d(0x243a)](_0x313a4d(0x1053),_0x313651);;_0x1b3b32['$inject']=[_0x313a4d(0x910),'$cookies',_0x313a4d(0x15b9),_0x313a4d(0x279d),'msNavigationService',_0x313a4d(0xa87),_0x313a4d(0x247f)];function _0x1b3b32(_0x5ec818,_0x1e2cbf,_0x2a8f87,_0xb2ff64,_0x3ba2b9,_0x1a3dcb,_0x2aa3ba){const _0x550576=_0x313a4d,_0x423fb6=this;_0x423fb6[_0x550576(0x1377)]=angular[_0x550576(0x1853)]('body'),_0x423fb6['msScrollOptions']={'suppressScrollX':!![]},_0x423fb6[_0x550576(0x15b9)]=_0x2a8f87,_0x423fb6[_0x550576(0x1b1f)]=_0x2aa3ba['baseUrl'],_0x423fb6[_0x550576(0x20de)]=_0x1626c1,_0x423fb6['toggleMsNavigationFolded']=_0x94391,_0x423fb6[_0x550576(0x1dd7)]=_0x231203,_0xb2ff64['on'](_0x550576(0x50b),_0x885ea7),_0xb2ff64['on']('dashboard:update',_0x885ea7),_0xb2ff64['on'](_0x550576(0x256c),_0x226890),_0xb2ff64['on'](_0x550576(0xc4f),_0xbe6ec2),_0xb2ff64['on'](_0x550576(0xa60),_0xbe6ec2),_0xb2ff64['on'](_0x550576(0xf78),_0x523651);function _0x1626c1(){const _0x37a618=_0x550576;_0x423fb6[_0x37a618(0x2834)]=_0x1e2cbf[_0x37a618(0x16b4)](_0x37a618(0x9ec))===_0x37a618(0x1185)||![];}function _0x94391(){const _0x24d7ae=_0x550576;_0x423fb6['folded']=!_0x423fb6[_0x24d7ae(0x2834)],_0x1e2cbf['put'](_0x24d7ae(0x9ec),_0x423fb6[_0x24d7ae(0x2834)]);}function _0x231203(){const _0x44527a=_0x550576;return _0x423fb6[_0x44527a(0x15b9)]['defaultHeaderWhiteLabel']?_0x44527a(0x23f2):_0x423fb6[_0x44527a(0x15b9)][_0x44527a(0xdac)];}function _0x885ea7(_0x393974){const _0x5f0b50=_0x550576;if(_0x393974&&_0x393974['id']){const _0x29f9cb=0x1869f+_0x393974['id'];_0x3ba2b9[_0x5f0b50(0x150e)](_0x5f0b50(0x1c77)+_0x29f9cb,{'id':_0x29f9cb,'title':_0x393974[_0x5f0b50(0x19eb)]||_0x5f0b50(0x19f9),'state':_0x5f0b50(0x993),'stateParams':_0x393974,'weight':0x2,'hidden':function(){const _0x47ff8f=_0x5f0b50;return _0x1a3dcb['hasRole'](_0x47ff8f(0x1755))||!_0x1a3dcb[_0x47ff8f(0x2434)](_0x29f9cb)&&!_0x1a3dcb[_0x47ff8f(0x23e0)](_0x47ff8f(0x174b));}});}}function _0x226890(_0x5da2c8){const _0x426031=_0x550576;if(_0x5da2c8&&_0x5da2c8['id']){const _0x540fc8=0x1869f+_0x5da2c8['id'];_0x3ba2b9[_0x426031(0xbaf)]('apps.dashboards.custom_'+_0x540fc8);}}function _0xbe6ec2(_0x26a1eb){const _0x4d5b2d=_0x550576;if(_0x26a1eb&&_0x26a1eb['id']&&_0x26a1eb[_0x4d5b2d(0x25c9)]!=_0x4d5b2d(0x6d2)){if(_0x26a1eb[_0x4d5b2d(0x275a)]){if(_0x26a1eb[_0x4d5b2d(0x25c9)]==_0x4d5b2d(0xd85)||_0x26a1eb[_0x4d5b2d(0x25c9)]==_0x4d5b2d(0x2497)){_0x3ba2b9[_0x4d5b2d(0x150e)](_0x4d5b2d(0x1e74),{'id':0x76c,'title':'Plugins','translate':_0x4d5b2d(0x5b2),'icon':_0x4d5b2d(0x1205),'weight':0x11,'hidden':function(){const _0x395159=_0x4d5b2d;return _0x1a3dcb['hasRole']('agent')||!_0x1a3dcb[_0x395159(0x2434)](0x76c)&&!_0x1a3dcb[_0x395159(0x23e0)](_0x395159(0x174b));}});const _0x23d6ea=0x15b38+_0x26a1eb['id'];_0x3ba2b9[_0x4d5b2d(0x150e)]('apps.plugins.plugin_'+_0x23d6ea,{'id':_0x23d6ea,'title':_0x26a1eb['name']||_0x4d5b2d(0x19f9),'state':_0x4d5b2d(0x9ce),'stateParams':_0x26a1eb,'weight':0x2,'hidden':function(){const _0x33fa34=_0x4d5b2d;return _0x1a3dcb[_0x33fa34(0x23e0)](_0x33fa34(0x1755))||!_0x1a3dcb[_0x33fa34(0x2434)](_0x23d6ea)&&!_0x1a3dcb[_0x33fa34(0x23e0)]('admin');}}),_0x3ba2b9['sort']();}}else{const _0x1af7fa=0x15b38+_0x26a1eb['id'];_0x11a079(0x76c,_0x1af7fa)&&(_0x26a1eb[_0x4d5b2d(0x25c9)]==_0x4d5b2d(0xd85)||_0x26a1eb[_0x4d5b2d(0x25c9)]==_0x4d5b2d(0x2497))&&(_0x3ba2b9[_0x4d5b2d(0xbaf)](_0x4d5b2d(0x1df2)+_0x1af7fa),!_0x594d7f(0x76c)&&_0x3ba2b9[_0x4d5b2d(0x150e)]('apps.plugins',{'id':0x76c,'title':_0x4d5b2d(0x40f),'translate':_0x4d5b2d(0x5b2),'icon':'icon-apps','weight':0x11,'hidden':function(){return!![];}}));}}}function _0x523651(_0x177528){const _0x209ea5=_0x550576;if(_0x177528&&_0x177528['id']&&_0x177528[_0x209ea5(0x25c9)]!=_0x209ea5(0x6d2)){const _0x9a711f=0x15b38+_0x177528['id'];(_0x177528['sidebar']=='always'||_0x177528[_0x209ea5(0x25c9)]==_0x209ea5(0x2497))&&(_0x3ba2b9['deleteItem'](_0x209ea5(0x1df2)+_0x9a711f),!_0x594d7f(0x76c)&&_0x3ba2b9[_0x209ea5(0x150e)]('apps.plugins',{'id':0x76c,'title':_0x209ea5(0x40f),'translate':_0x209ea5(0x5b2),'icon':_0x209ea5(0x1205),'weight':0x11,'hidden':function(){return!![];}}));}}function _0x594d7f(_0x1439b0){const _0xb6f124=_0x550576,_0x4629ef=_0x3ba2b9['getNavigation'](),_0x3874d4=_0x3f65c0()[_0xb6f124(0xc84)](_0x4629ef[0x0][_0xb6f124(0x20d0)],{'id':_0x1439b0});return _0x3874d4&&_0x3874d4['children']['length']>0x0?!![]:![];}function _0x11a079(_0x2cd3c3,_0x5882f1){const _0x13a042=_0x550576,_0xdd8991=_0x3ba2b9[_0x13a042(0x5c4)](),_0x2ae437=_0x3f65c0()[_0x13a042(0xc84)](_0xdd8991[0x0][_0x13a042(0x20d0)],{'id':_0x2cd3c3});if(!_0x2ae437)return![];return _0x3f65c0()[_0x13a042(0x1360)](_0x2ae437[_0x13a042(0x20d0)],{'id':_0x5882f1});}_0x5ec818[_0x550576(0x16ad)](_0x550576(0x1dfb),function(){const _0x302481=_0x550576;_0x423fb6[_0x302481(0x1377)][_0x302481(0x1973)]('ms-navigation-horizontal-mobile-menu-active');});}const _0x4da434=_0x1b3b32;;function _0x1fc1a3(){}angular[_0x313a4d(0x2528)](_0x313a4d(0x276c),[])[_0x313a4d(0x989)](_0x1fc1a3)[_0x313a4d(0x28f0)]('NavigationController',_0x4da434);;_0x465172['$inject']=[_0x313a4d(0x910),_0x313a4d(0x10e8),'$mdToast',_0x313a4d(0x247f),_0x313a4d(0xe7b),_0x313a4d(0x15b9),'reset'];function _0x465172(_0x4cf27f,_0x445ade,_0x5e8b9b,_0xab263d,_0x3e28c8,_0x1840c8,_0x31c974){const _0x4d12c2=_0x313a4d,_0x1ad16d=this;_0x1ad16d['errors']=[],_0x1ad16d[_0x4d12c2(0xe7b)]=_0x3e28c8,_0x1ad16d[_0x4d12c2(0x15b9)]=_0x1840c8,_0x1ad16d[_0x4d12c2(0x2450)]=_0x31c974,_0x1ad16d[_0x4d12c2(0x2251)]=_0x1ad16d[_0x4d12c2(0x15b9)]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1ad16d[_0x4d12c2(0x23b7)]=_0x4f8c5a,_0x1ad16d[_0x4d12c2(0x13f3)]=_0x140449,_0x4cf27f[_0x4d12c2(0x21e8)]('vm.password',function(_0x427a56){const _0x183cd0=_0x4d12c2;!_0x3f65c0()[_0x183cd0(0x1b36)](_0x1ad16d[_0x183cd0(0x2571)])&&(_0x427a56===_0x1ad16d[_0x183cd0(0x2571)]?_0x4cf27f['changePasswordForm']['password']['$setValidity'](_0x183cd0(0x1e40),![]):_0x4cf27f[_0x183cd0(0x2943)][_0x183cd0(0xf37)][_0x183cd0(0x24f8)]('oldPasswordMatch',!![]));});function _0x4f8c5a(){const _0x3deea9=_0x4d12c2;_0x1ad16d[_0x3deea9(0xcef)]=[],_0xab263d['user'][_0x3deea9(0x171a)]({'id':_0x1ad16d[_0x3deea9(0xe7b)]['id']},{'oldPassword':_0x1ad16d[_0x3deea9(0x2571)],'newPassword':_0x1ad16d[_0x3deea9(0xf37)]})[_0x3deea9(0x2945)][_0x3deea9(0x146b)](function(){const _0x2b9594=_0x3deea9;_0x5e8b9b[_0x2b9594(0x2615)](_0x5e8b9b[_0x2b9594(0x1e7b)]()['textContent'](_0x2b9594(0x5b8))[_0x2b9594(0x21ca)]('top\x20right')[_0x2b9594(0x1605)](0x1388)),_0x140449();})['catch'](function(_0x3c5009){const _0x2b9350=_0x3deea9;console[_0x2b9350(0x1980)](_0x3c5009),_0x1ad16d['errors']=_0x3c5009['data'][_0x2b9350(0xcef)]&&_0x3c5009[_0x2b9350(0x524)][_0x2b9350(0xcef)][_0x2b9350(0x402)]?_0x3c5009[_0x2b9350(0x524)]['errors']:[{'message':_0x3c5009[_0x2b9350(0x524)][_0x2b9350(0x7fd)]||'Authorization\x20error','type':_0x2b9350(0x9ad)}];});}function _0x140449(){const _0x9473e8=_0x4d12c2;_0x445ade[_0x9473e8(0x2458)]();}}const _0x3e84d9=_0x465172;;_0x35306d[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),'$state',_0x313a4d(0xd08),'$mdDialog',_0x313a4d(0x1fe4),_0x313a4d(0x247f),_0x313a4d(0x17d7),_0x313a4d(0x10ba)];function _0x35306d(_0x24e5cf,_0x198185,_0x1f8c8c,_0x3a7655,_0x3374c7,_0x3881e6,_0x5892d9,_0x56920c){const _0xb9bc29=_0x313a4d,_0x2b6355=this;_0x2b6355['customFieldsMap']=_0x56920c&&_0x56920c[_0xb9bc29(0x19c7)]?_0x3f65c0()['mapValues'](_0x3f65c0()['keyBy'](_0x56920c['rows'],function(_0x1b1853){const _0x3b0841=_0xb9bc29;return _0x3b0841(0x21ef)+_0x1b1853['id'];}),_0xb9bc29(0x19eb)):{},_0x2b6355['errors']=[],_0x2b6355[_0xb9bc29(0x5a9)]=[],_0x2b6355['preview']=_0x5892d9,_0x2b6355[_0xb9bc29(0x1e38)]=![],_0x2b6355[_0xb9bc29(0x1cdf)]=![],_0x2b6355[_0xb9bc29(0x579)]=![],_0x2b6355[_0xb9bc29(0x5a9)][_0xb9bc29(0x1f47)](_0x2b6355[_0xb9bc29(0x17d7)]['id']),_0x2b6355[_0xb9bc29(0x240c)]=_0xa94cd,_0x2b6355[_0xb9bc29(0x13f3)]=_0x4f79a8,_0x2b6355['nextContact']=_0x45ac5b,_0x2b6355[_0xb9bc29(0x54b)]=_0x138c6f,_0x2b6355[_0xb9bc29(0x1122)]=_0x3654,_0x2b6355[_0xb9bc29(0xcb8)]=_0x516a60,_0x2b6355[_0xb9bc29(0x2871)]=_0x3225de,_0x2b6355['isNil']=_0x14fe51;function _0x14fe51(_0xaf4ff6){const _0x5b15d6=_0xb9bc29;return _0x3f65c0()[_0x5b15d6(0x1b36)](_0xaf4ff6);}function _0x516a60(_0x1aab0b){const _0x498ab9=_0xb9bc29;return _0x3f65c0()[_0x498ab9(0xd4d)](_0x1aab0b,_0x498ab9(0x21ef));}function _0x3225de(_0x237568){const _0x838a05=_0xb9bc29;return _0x3f65c0()[_0x838a05(0xa4e)]([_0x838a05(0x26c9),_0x838a05(0xe7c),_0x838a05(0xb7c),_0x838a05(0xea2),_0x838a05(0xc68),_0x838a05(0x13fc),'id','priority',_0x838a05(0x432),'tags',_0x838a05(0x144f),_0x838a05(0xe77),_0x838a05(0x27c),_0x838a05(0x7a2),_0x838a05(0x106e),_0x838a05(0x26f4),_0x838a05(0x12d3),_0x838a05(0x152),'telegram'],_0x237568);}function _0xa94cd(){const _0x40cc0b=_0xb9bc29;_0x2b6355[_0x40cc0b(0x1e38)]=!![],_0x2b6355[_0x40cc0b(0x1cdf)]=!![],_0x3f65c0()['isEmpty'](_0x2b6355[_0x40cc0b(0x17d7)])?(_0x3374c7[_0x40cc0b(0x1980)]({'title':_0x40cc0b(0xe2),'msg':_0x40cc0b(0x1612)}),_0x2b6355[_0x40cc0b(0x1cdf)]=![],_0x2b6355[_0x40cc0b(0x5a9)]=[],_0x4f79a8(!![])):_0x3881e6[_0x40cc0b(0x1af7)][_0x40cc0b(0x2803)]({'id':_0x2b6355[_0x40cc0b(0x17d7)]['id']})['$promise'][_0x40cc0b(0x146b)](function(){_0x4f79a8(!![]);})[_0x40cc0b(0x129e)](function(_0x34d26b){const _0x576385=_0x40cc0b;_0x3374c7[_0x576385(0x1980)]({'title':_0x576385(0xe2),'msg':_0x34d26b[_0x576385(0x524)]}),_0x4f79a8(!![]);})['finally'](function(){const _0x41b03e=_0x40cc0b;_0x2b6355['disable']=![],_0x2b6355[_0x41b03e(0x5a9)]=[];});}function _0x4f79a8(_0x45d90b){const _0x2594db=_0xb9bc29;_0x3f65c0()[_0x2594db(0x1b36)](_0x45d90b)&&_0x3881e6[_0x2594db(0x39f)][_0x2594db(0x18e1)]({'id':_0x2b6355[_0x2594db(0x17d7)]['id'],'UserId':null}),_0x3a7655[_0x2594db(0x2458)]();}_0x24e5cf[_0xb9bc29(0x16ad)](_0xb9bc29(0x116f),function(){const _0x499123=_0xb9bc29;!_0x2b6355[_0x499123(0x1e38)]&&_0x3881e6[_0x499123(0x39f)][_0x499123(0x18e1)]({'id':_0x2b6355[_0x499123(0x17d7)]['id'],'UserId':null});});function _0x45ac5b(){const _0x1aff9e=_0xb9bc29;return _0x2b6355['disableGetContact']=!![],_0x3881e6[_0x1aff9e(0x39f)][_0x1aff9e(0x551)]({'hopperIds':_0x2b6355[_0x1aff9e(0x5a9)],'direction':_0x1aff9e(0xb66)})[_0x1aff9e(0x2945)][_0x1aff9e(0x146b)](function(_0x491994){const _0x2a1e7a=_0x1aff9e;_0x2b6355[_0x2a1e7a(0x579)]=![],!_0x3f65c0()['isNil'](_0x491994)&&!_0x3f65c0()[_0x2a1e7a(0x1b36)](_0x491994[_0x2a1e7a(0xe26)])&&_0x491994[_0x2a1e7a(0xe26)]['dialActive']?(!_0x2b6355['originated']&&_0x3881e6[_0x2a1e7a(0x39f)]['update']({'id':_0x2b6355[_0x2a1e7a(0x17d7)]['id'],'UserId':null}),_0x2b6355[_0x2a1e7a(0x17d7)]=_0x491994,_0x2b6355['hopperIds'][_0x2a1e7a(0x1f47)](_0x2b6355[_0x2a1e7a(0x17d7)]['id'])):(_0x2b6355[_0x2a1e7a(0x5a9)]=[],_0x3a7655['hide'](),_0x3374c7[_0x2a1e7a(0x271e)]({'title':_0x2a1e7a(0xe66),'msg':_0x2a1e7a(0x1133)}));})[_0x1aff9e(0x129e)](function(_0x2839ae){const _0xefd164=_0x1aff9e;_0x2b6355[_0xefd164(0x579)]=![],_0x2b6355['hopperIds']=[];if(_0x2839ae['status']===0x194)_0x2b6355['getFirstAvailableContact']();else{if(_0x2839ae['data']&&_0x2839ae[_0xefd164(0x524)][_0xefd164(0xcef)]&&_0x2839ae['data'][_0xefd164(0xcef)][_0xefd164(0x402)]){_0x3a7655[_0xefd164(0x2458)]();for(let _0x453824=0x0;_0x453824<_0x2839ae['data'][_0xefd164(0xcef)]['length'];_0x453824+=0x1){_0x3374c7['error']({'title':_0x2839ae['data'][_0xefd164(0xcef)][_0x453824]['type'],'msg':_0x2839ae[_0xefd164(0x524)][_0xefd164(0xcef)][_0x453824][_0xefd164(0x7fd)]});}}else _0x3a7655['hide'](),_0x3374c7[_0xefd164(0x1980)]({'title':_0x2839ae[_0xefd164(0x107b)]?_0xefd164(0x262a)+_0x2839ae[_0xefd164(0x107b)]+'\x20-\x20'+_0x2839ae['statusText']:_0xefd164(0x2583),'msg':_0x2839ae[_0xefd164(0x524)]?JSON['stringify'](_0x2839ae['data'][_0xefd164(0x7fd)]):_0x2839ae[_0xefd164(0xd5f)]()});}});}function _0x138c6f(){const _0x345fde=_0xb9bc29;_0x2b6355[_0x345fde(0x579)]=!![];if(_0x2b6355['hopperIds'][_0x345fde(0x402)]>0x1){const _0x4a8a4c=_0x3f65c0()[_0x345fde(0x332)](_0x2b6355[_0x345fde(0x5a9)],_0x2b6355[_0x345fde(0x17d7)]['id']);return _0x3881e6[_0x345fde(0x39f)][_0x345fde(0x551)]({'hopperIds':_0x4a8a4c,'direction':_0x345fde(0x15c2)})[_0x345fde(0x2945)][_0x345fde(0x146b)](function(_0x29b806){const _0x525af9=_0x345fde;_0x2b6355[_0x525af9(0x579)]=![],!_0x3f65c0()[_0x525af9(0x1b36)](_0x29b806)&&!_0x3f65c0()['isNil'](_0x29b806['Queue'])&&_0x29b806['Queue'][_0x525af9(0x1095)]?(_0x3f65c0()[_0x525af9(0x2640)](_0x2b6355[_0x525af9(0x5a9)],function(_0xea99c6){const _0x345b74=_0x525af9;return _0xea99c6==_0x2b6355[_0x345b74(0x17d7)]['id'];}),!_0x2b6355[_0x525af9(0x1e38)]&&_0x3881e6[_0x525af9(0x39f)][_0x525af9(0x18e1)]({'id':_0x2b6355[_0x525af9(0x17d7)]['id'],'UserId':null}),_0x2b6355[_0x525af9(0x17d7)]=_0x29b806):(_0x2b6355['hopperIds']=[],_0x3a7655[_0x525af9(0x2458)](),_0x3374c7[_0x525af9(0x271e)]({'title':_0x525af9(0xe66),'msg':'CAMPAIGN\x20NOT\x20ACTIVE'}));})[_0x345fde(0x129e)](function(_0x55a8f2){const _0xdbd09f=_0x345fde;if(_0x55a8f2[_0xdbd09f(0x107b)]===0x194)_0x2b6355[_0xdbd09f(0x5a9)]=[_0x2b6355[_0xdbd09f(0x17d7)]['id']],_0x3374c7[_0xdbd09f(0x271e)]({'title':_0xdbd09f(0xe66),'msg':_0xdbd09f(0x2059)});else{if(_0x55a8f2[_0xdbd09f(0x524)]&&_0x55a8f2[_0xdbd09f(0x524)][_0xdbd09f(0xcef)]&&_0x55a8f2[_0xdbd09f(0x524)][_0xdbd09f(0xcef)][_0xdbd09f(0x402)]){_0x2b6355[_0xdbd09f(0x5a9)]=[],_0x3a7655[_0xdbd09f(0x2458)]();for(let _0x23663e=0x0;_0x23663e<_0x55a8f2[_0xdbd09f(0x524)][_0xdbd09f(0xcef)][_0xdbd09f(0x402)];_0x23663e+=0x1){_0x3374c7[_0xdbd09f(0x1980)]({'title':_0x55a8f2[_0xdbd09f(0x524)]['errors'][_0x23663e][_0xdbd09f(0x1142)],'msg':_0x55a8f2['data'][_0xdbd09f(0xcef)][_0x23663e][_0xdbd09f(0x7fd)]});}}else _0x2b6355[_0xdbd09f(0x5a9)]=[],_0x3a7655['hide'](),_0x3374c7[_0xdbd09f(0x1980)]({'title':_0x55a8f2[_0xdbd09f(0x107b)]?_0xdbd09f(0x262a)+_0x55a8f2[_0xdbd09f(0x107b)]+_0xdbd09f(0x1315)+_0x55a8f2[_0xdbd09f(0x167f)]:_0xdbd09f(0x2583),'msg':_0x55a8f2[_0xdbd09f(0x524)]?JSON[_0xdbd09f(0x10bb)](_0x55a8f2[_0xdbd09f(0x524)][_0xdbd09f(0x7fd)]):_0x55a8f2[_0xdbd09f(0xd5f)]()});}});}}function _0x3654(){const _0x28825a=_0xb9bc29;return _0x2b6355['disableGetContact']=!![],_0x3374c7[_0x28825a(0x271e)]({'title':_0x28825a(0xe66),'msg':_0x28825a(0x1549)}),_0x3881e6['cmHopper'][_0x28825a(0x551)]({'hopperIds':[_0x2b6355['preview']['id']],'direction':'next'})['$promise'][_0x28825a(0x146b)](function(_0x4498e7){const _0x4e9295=_0x28825a;!_0x3f65c0()[_0x4e9295(0x1b36)](_0x4498e7)&&!_0x3f65c0()['isNil'](_0x4498e7['Queue'])&&_0x4498e7[_0x4e9295(0xe26)]['dialActive']?(!_0x2b6355[_0x4e9295(0x1e38)]&&_0x3881e6['cmHopper'][_0x4e9295(0x18e1)]({'id':_0x2b6355[_0x4e9295(0x17d7)]['id'],'UserId':null}),_0x2b6355['preview']=_0x4498e7,_0x2b6355[_0x4e9295(0x5a9)][_0x4e9295(0x1f47)](_0x2b6355[_0x4e9295(0x17d7)]['id'])):(_0x3a7655['hide'](),_0x3374c7['info']({'title':_0x4e9295(0xe66),'msg':_0x4e9295(0x1133)}));})['catch'](function(_0x42b4f4){const _0x53dfd4=_0x28825a;_0x3a7655[_0x53dfd4(0x2458)]();if(_0x42b4f4[_0x53dfd4(0x107b)]===0x194)_0x3374c7[_0x53dfd4(0x271e)]({'title':'PREVIEW','msg':_0x53dfd4(0x1a90)});else{if(_0x42b4f4[_0x53dfd4(0x524)]&&_0x42b4f4[_0x53dfd4(0x524)]['errors']&&_0x42b4f4[_0x53dfd4(0x524)][_0x53dfd4(0xcef)][_0x53dfd4(0x402)])for(let _0x3a03e9=0x0;_0x3a03e9<_0x42b4f4[_0x53dfd4(0x524)][_0x53dfd4(0xcef)]['length'];_0x3a03e9+=0x1){_0x3374c7[_0x53dfd4(0x1980)]({'title':_0x42b4f4['data'][_0x53dfd4(0xcef)][_0x3a03e9][_0x53dfd4(0x1142)],'msg':_0x42b4f4[_0x53dfd4(0x524)]['errors'][_0x3a03e9][_0x53dfd4(0x7fd)]});}else _0x3374c7[_0x53dfd4(0x1980)]({'title':_0x42b4f4[_0x53dfd4(0x107b)]?_0x53dfd4(0x262a)+_0x42b4f4[_0x53dfd4(0x107b)]+_0x53dfd4(0x1315)+_0x42b4f4[_0x53dfd4(0x167f)]:'api\x20preview','msg':_0x42b4f4[_0x53dfd4(0x524)]?JSON[_0x53dfd4(0x10bb)](_0x42b4f4[_0x53dfd4(0x524)]['message']):_0x42b4f4[_0x53dfd4(0xd5f)]()});}})[_0x28825a(0x1ec6)](function(){_0x2b6355['disableGetContact']=![];});}}const _0x308f03=_0x35306d;;const _0x4ea558=_0x4acfac['p']+_0x313a4d(0x6ae);;const _0x19e607=_0x4acfac['p']+_0x313a4d(0x1da3);;_0x23cf9a[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1fc2),'$q',_0x313a4d(0x1862),_0x313a4d(0x1abe),_0x313a4d(0xd08),_0x313a4d(0x15fe),'$translate',_0x313a4d(0x1c7e),_0x313a4d(0x1aa9),_0x313a4d(0x10e8),'$document',_0x313a4d(0x23df),_0x313a4d(0x1fe4),_0x313a4d(0x1f9a),_0x313a4d(0xa87),_0x313a4d(0x279d),_0x313a4d(0x247f),_0x313a4d(0x2690),_0x313a4d(0x15b9),'$interval'];function _0x23cf9a(_0x2c79a9,_0x29a108,_0x2e8af7,_0x40ec1f,_0x5142da,_0x1dd8ec,_0x17b35a,_0x37f55b,_0x4ff89b,_0x2f66f9,_0x2adaee,_0x299daa,_0x347b72,_0x28b2f0,_0x3b9b5a,_0x29d962,_0xf0689d,_0x478105,_0x2b5600,_0x58c02e,_0x233423){const _0x4009a1=_0x313a4d,_0x5e01e3=this;_0x5e01e3[_0x4009a1(0xa27)]={},_0x5e01e3['polling']=!![],_0x5e01e3[_0x4009a1(0x1b1f)]=_0x478105[_0x4009a1(0x1b1f)];let _0x17c33b;_0x29a108['global']={'search':''},_0x5e01e3[_0x4009a1(0x23bb)]=[],_0x5e01e3[_0x4009a1(0x2690)]=_0x2b5600,_0x5e01e3['currentUser']=_0x29d962[_0x4009a1(0xb12)](),_0x5e01e3[_0x4009a1(0x570)]=0x0,_0x5e01e3[_0x4009a1(0x1490)]=0x0,_0x5e01e3[_0x4009a1(0xac0)]=0x0;_0x5e01e3['currentUser']['role']===_0x4009a1(0x1755)&&(_0x17c33b=_0x233423(_0x28e726,0x3a97));_0x5e01e3['setting']=_0x58c02e,_0x5e01e3[_0x4009a1(0x1377)]=angular[_0x4009a1(0x1853)](_0x4009a1(0x2586)),_0x5e01e3[_0x4009a1(0x190c)]={'realm':_0x4009a1(0x1c50),'host':_0x1dd8ec[_0x4009a1(0x148e)](),'protocol':_0x1dd8ec['protocol'](),'remotePlayerId':_0x4009a1(0x2629),'ua':'Motion\x20WebRTC\x20Bar\x200.2.0','license':_0x5e01e3[_0x4009a1(0x2690)][_0x4009a1(0x1e42)],'phoneBarExpires':_0x5e01e3['currentUser'][_0x4009a1(0x205b)],'phoneBarPrefixRequired':_0x5e01e3[_0x4009a1(0x2321)][_0x4009a1(0x27f8)]},_0x5e01e3[_0x4009a1(0x1a56)]={'id':_0x29d962[_0x4009a1(0xb12)]()['id'],'fields':_0x4009a1(0x1285),'channel':_0x4009a1(0xe6),'nolimit':!![]},_0x5e01e3['userStatusOptions']=[{'title':_0x4009a1(0x28b8),'icon':_0x4009a1(0x8f6),'color':'#4CAF50'},{'title':'Away','icon':_0x4009a1(0x2746),'color':_0x4009a1(0x8fe)},{'title':_0x4009a1(0x2189),'icon':_0x4009a1(0xb54),'color':_0x4009a1(0x14bd)},{'title':_0x4009a1(0x2698),'icon':_0x4009a1(0x1b2e),'color':_0x4009a1(0x2a9)},{'title':'Offline','icon':_0x4009a1(0x1b2e),'color':'#616161'}],_0x5e01e3[_0x4009a1(0x20b7)]={'ar':{'title':_0x4009a1(0x1123),'translation':_0x4009a1(0x1d3a),'code':'ar','flag':'ar'},'da':{'title':'Danish','translation':_0x4009a1(0x1a33),'code':'da','flag':'da'},'de':{'title':_0x4009a1(0x592),'translation':_0x4009a1(0x4fd),'code':'de','flag':'de'},'en':{'title':_0x4009a1(0x1ce8),'translation':_0x4009a1(0x26c8),'code':'en','flag':'us'},'es':{'title':'Spanish','translation':_0x4009a1(0x1be3),'code':'es','flag':'es'},'fa':{'title':_0x4009a1(0x120e),'translation':_0x4009a1(0x2850),'code':'fa','flag':'fa'},'fi':{'title':_0x4009a1(0x1229),'translation':_0x4009a1(0x618),'code':'fi','flag':'fi'},'fr':{'title':_0x4009a1(0x12ea),'translation':_0x4009a1(0x977),'code':'fr','flag':'fr'},'he':{'title':'Hebrew','translation':_0x4009a1(0x20c0),'code':'he','flag':'he'},'hi':{'title':_0x4009a1(0x28c1),'translation':'TOOLBAR.HINDI','code':'hi','flag':'hi'},'id':{'title':'Indonesian','translation':_0x4009a1(0x20d2),'code':'id','flag':'id'},'it':{'title':'Italian','translation':_0x4009a1(0xf9b),'code':'it','flag':'it'},'ja':{'title':_0x4009a1(0xf90),'translation':_0x4009a1(0xfe),'code':'ja','flag':'ja'},'ko':{'title':_0x4009a1(0x1dc),'translation':_0x4009a1(0x2845),'code':'ko','flag':'ko'},'lv':{'title':_0x4009a1(0x1ebd),'translation':'TOOLBAR.LATVIAN','code':'lv','flag':'lv'},'nl':{'title':'Dutch','translation':_0x4009a1(0x25d3),'code':'nl','flag':'nl'},'no':{'title':_0x4009a1(0xcb4),'translation':_0x4009a1(0x1e16),'code':'no','flag':'no'},'pl':{'title':_0x4009a1(0xe06),'translation':_0x4009a1(0x1100),'code':'pl','flag':'pl'},'pt-BR':{'title':_0x4009a1(0x1204),'translation':_0x4009a1(0x75d),'code':'pt-BR','flag':'pt-BR'},'pt-PT':{'title':_0x4009a1(0x7b7),'translation':_0x4009a1(0x10b7),'code':_0x4009a1(0x23f5),'flag':'pt-PT'},'ru':{'title':'Russian','translation':'TOOLBAR.RUSSIAN','code':'ru','flag':'ru'},'sv':{'title':_0x4009a1(0x2081),'translation':_0x4009a1(0x1022),'code':'sv','flag':'sv'},'tr':{'title':'Turkish','translation':_0x4009a1(0x1272),'code':'tr','flag':'tr'},'zh-CN':{'title':'ChineseSimplified','translation':_0x4009a1(0x7c5),'code':_0x4009a1(0xc56),'flag':_0x4009a1(0xc56)},'zh-TW':{'title':_0x4009a1(0x464),'translation':_0x4009a1(0x26c6),'code':_0x4009a1(0xf12),'flag':_0x4009a1(0xf12)}};const _0x69468=['ar','fa','he'];_0x5e01e3[_0x4009a1(0xf19)]=_0x28225f,_0x5e01e3[_0x4009a1(0x2044)]=_0x248f17,_0x5e01e3['changeLanguage']=_0x47fdd8,_0x5e01e3[_0x4009a1(0x1cdd)]=_0x32d0ee,_0x5e01e3[_0x4009a1(0x8e7)]=_0x19fe4c,_0x5e01e3[_0x4009a1(0x879)]=_0x16c7aa,_0x5e01e3['search']=_0x486f80,_0x5e01e3[_0x4009a1(0x1ced)]=_0x518db3,_0x5e01e3[_0x4009a1(0x5bf)]=_0x1c95f6,_0x5e01e3[_0x4009a1(0x171a)]=_0x48428a,_0x5e01e3[_0x4009a1(0x224e)]=_0x22ce3f,_0x5e01e3[_0x4009a1(0x1b17)]=_0x555090,_0x5e01e3[_0x4009a1(0x17aa)]=_0x2b9af2,_0x5e01e3[_0x4009a1(0x1e3e)]=_0x5bf76d,_0x5e01e3[_0x4009a1(0x974)]=_0xb3c581,_0x5e01e3[_0x4009a1(0x17d7)]=_0x4571d9,_0x5e01e3['getLogo']=_0x50f477,_0x5e01e3[_0x4009a1(0x31a)]=_0x2c2359,_0x5e01e3[_0x4009a1(0x361)]=_0xfe8c4c,_0x5e01e3['onInternalMessageUpdate']=_0x1b6adc,_0x5e01e3[_0x4009a1(0x28fd)]=_0x4fb728,_0x5e01e3[_0x4009a1(0x1e2)]=_0x2444c7,_0x555755(),_0x77544e(),_0x4b0256();function _0x555755(){const _0x48fb8e=_0x4009a1;_0x5e01e3[_0x48fb8e(0xe7b)]=_0x29d962[_0x48fb8e(0xb12)](),_0x5e01e3['conf'][_0x48fb8e(0x21e0)]=_0x5e01e3[_0x48fb8e(0xe7b)][_0x48fb8e(0x1c10)],_0x5e01e3[_0x48fb8e(0x190c)]['id']=_0x5e01e3[_0x48fb8e(0xe7b)]['id'],_0x5e01e3[_0x48fb8e(0x190c)][_0x48fb8e(0x19eb)]=_0x5e01e3[_0x48fb8e(0xe7b)][_0x48fb8e(0x19eb)],_0x5e01e3[_0x48fb8e(0x190c)][_0x48fb8e(0x286a)]=_0x5e01e3[_0x48fb8e(0xe7b)][_0x48fb8e(0x286a)],_0x5e01e3[_0x48fb8e(0x190c)][_0x48fb8e(0x113f)]=_0x5e01e3['user'][_0x48fb8e(0x113f)],_0x5e01e3[_0x48fb8e(0x190c)][_0x48fb8e(0x15c0)]=_0x5e01e3['user'][_0x48fb8e(0xa8f)],_0x5e01e3['conf']['autoAnswer']=_0x5e01e3['user']['phoneBarAutoAnswer'],_0x5e01e3[_0x48fb8e(0x190c)][_0x48fb8e(0x1625)]=_0x5e01e3['user'][_0x48fb8e(0x1222)],_0x5e01e3[_0x48fb8e(0x190c)][_0x48fb8e(0x21b5)]=_0x5e01e3[_0x48fb8e(0xe7b)][_0x48fb8e(0x7aa)],_0x5e01e3[_0x48fb8e(0x190c)][_0x48fb8e(0xa40)]=_0x5e01e3[_0x48fb8e(0xe7b)][_0x48fb8e(0xb86)],_0x5e01e3[_0x48fb8e(0x1f55)]=_0x5e01e3[_0x48fb8e(0x2766)][0x0];const _0x12f447=_0x347b72[_0x48fb8e(0x16b4)](_0x48fb8e(0x8d6));_0x12f447&&typeof _0x5e01e3[_0x48fb8e(0x20b7)][_0x12f447]!==_0x48fb8e(0x2274)?_0x5e01e3[_0x48fb8e(0xf42)]=_0x5e01e3[_0x48fb8e(0x20b7)][_0x12f447]:_0x5e01e3[_0x48fb8e(0xf42)]=_0x5e01e3['languages'][_0x37f55b['preferredLanguage']()];_0x478105[_0x48fb8e(0x1e3e)]['get']({'fields':'name','nolimit':!![]})[_0x48fb8e(0x2945)][_0x48fb8e(0x146b)](function(_0x228f34){const _0x17e340=_0x48fb8e;_0x5e01e3[_0x17e340(0x23bb)]=_0x228f34[_0x17e340(0x19c7)]?_0x228f34[_0x17e340(0x19c7)]:[];})['catch'](function(_0x2d597c){const _0xb47bdb=_0x48fb8e;_0x28b2f0[_0xb47bdb(0x1980)]({'title':_0x2d597c[_0xb47bdb(0x107b)]?_0xb47bdb(0x262a)+_0x2d597c[_0xb47bdb(0x107b)]+_0xb47bdb(0x1315)+_0x2d597c['statusText']:_0xb47bdb(0x14fb),'msg':_0x2d597c[_0xb47bdb(0x107b)]?JSON[_0xb47bdb(0x10bb)](_0x2d597c[_0xb47bdb(0x524)]):_0x2d597c[_0xb47bdb(0xd5f)]()});});if(_0x29d962[_0x48fb8e(0x2007)]()==_0x48fb8e(0x2298)){if(_0x5e01e3['setting'][_0x48fb8e(0x976)]){if(!_0x5e01e3[_0x48fb8e(0xe7b)]['passwordResetAt'])_0x48428a(null,!![]);else{const _0x2d647d=_0x2deec6()(_0x5e01e3[_0x48fb8e(0xe7b)][_0x48fb8e(0xe8f)])['add'](_0x5e01e3[_0x48fb8e(0x15b9)][_0x48fb8e(0x13e)]||0x5a,_0x48fb8e(0x1066));if(_0x2deec6()()['isAfter'](_0x2d647d))_0x48428a(null,!![]);else _0x2deec6()()[_0x48fb8e(0x387)](0xf,'day')['isAfter'](_0x2d647d)&&_0x28b2f0[_0x48fb8e(0x195d)]({'title':_0x37f55b[_0x48fb8e(0xde)]('TOOLBAR.WARNING')+'!','msg':_0x37f55b[_0x48fb8e(0xde)](_0x48fb8e(0x242e))+':\x20'+Math[_0x48fb8e(0x157c)](_0x2d647d[_0x48fb8e(0x1bb5)](_0x2deec6()(),'days',!![])),'timeout':0x4e20});}}}}function _0x4b0256(){const _0x20a5cb=_0x4009a1;_0xf0689d[_0x20a5cb(0x2e3)](),_0xf0689d['on'](_0x20a5cb(0x324),_0x5e01e3[_0x20a5cb(0x1b17)]),_0xf0689d['on'](_0x20a5cb(0x1dbc),_0x5e01e3[_0x20a5cb(0x17aa)]),_0xf0689d['on'](_0x20a5cb(0xb56),_0x5e01e3[_0x20a5cb(0x361)]),_0xf0689d['on'](_0x20a5cb(0x10d2),_0x5e01e3['onInternalMessageUpdate']),_0xf0689d['on'](_0x20a5cb(0x109d),_0x5e01e3['onUserVoiceQueue']),_0xf0689d['on'](_0x20a5cb(0x11a5),_0x5e01e3[_0x20a5cb(0x1e2)]),_0xf0689d['on'](_0x20a5cb(0x1d3e),_0x5e01e3['onUserVoiceQueue']),_0xf0689d['on'](_0x20a5cb(0x1907),_0x5e01e3['onVoiceQueue']),_0xf0689d['on'](_0x20a5cb(0x235b),_0x5e01e3['onVoiceQueue']),_0xf0689d['on'](_0x20a5cb(0x1045),_0x2ae602),_0xf0689d['on'](_0x20a5cb(0x240b),_0x43bb80);}function _0x30e834(){const _0x346514=_0x4009a1;_0xf0689d[_0x346514(0x1c5f)](_0x346514(0x1dbc)),_0xf0689d[_0x346514(0x1c5f)](_0x346514(0x324)),_0xf0689d[_0x346514(0x1c5f)](_0x346514(0xb56)),_0xf0689d['removeAllListeners'](_0x346514(0x10d2)),_0xf0689d[_0x346514(0x1c5f)](_0x346514(0x109d)),_0xf0689d['removeAllListeners'](_0x346514(0x11a5)),_0xf0689d[_0x346514(0x1c5f)](_0x346514(0x1d3e)),_0xf0689d[_0x346514(0x1c5f)](_0x346514(0x1907)),_0xf0689d[_0x346514(0x1c5f)](_0x346514(0x235b)),_0xf0689d[_0x346514(0x1c5f)](_0x346514(0x1045)),_0xf0689d[_0x346514(0x1c5f)](_0x346514(0x240b)),_0xf0689d['disconnect']();}function _0x5a1a6c(_0x178507){const _0x571525=_0x4009a1;_0x5e01e3['voiceQueues']=_0x178507?_0x3f65c0()[_0x571525(0x194)](_0x178507['rows']?_0x178507['rows']:[],'id'):{};}function _0x77544e(){const _0x273fbb=_0x4009a1;_0x5e01e3[_0x273fbb(0xb9c)]=_0x478105[_0x273fbb(0xe7b)][_0x273fbb(0xc53)](_0x5e01e3[_0x273fbb(0x1a56)],_0x5a1a6c)[_0x273fbb(0x2945)];}function _0x2444c7(){_0x77544e();}function _0x4fb728(_0x2c77bb){const _0x3ec536=_0x4009a1;_0x3f65c0()['toInteger'](_0x2c77bb[_0x3ec536(0xea2)])===_0x29d962['getCurrentUser']()['id']&&_0x77544e();}function _0x5bf76d(_0x288a1b){const _0x314b6a=_0x4009a1;return _0x478105[_0x314b6a(0xe7b)][_0x314b6a(0x1e3e)]({'id':_0x5e01e3['user']['id'],'type':_0x288a1b||_0x314b6a(0x9ba)})[_0x314b6a(0x2945)][_0x314b6a(0x129e)](function(_0x9ae596){const _0x31afaa=_0x314b6a;_0x28b2f0['error']({'title':_0x9ae596[_0x31afaa(0x107b)]?'API:'+_0x9ae596['status']+_0x31afaa(0x1315)+_0x9ae596['statusText']:_0x31afaa(0xae4),'msg':_0x9ae596['status']?JSON[_0x31afaa(0x10bb)](_0x9ae596['data']):_0x9ae596[_0x31afaa(0xd5f)]()});});}function _0xb3c581(){const _0x3838e8=_0x4009a1;return _0x478105[_0x3838e8(0xe7b)][_0x3838e8(0x974)]({'id':_0x5e01e3['user']['id']})[_0x3838e8(0x2945)][_0x3838e8(0x129e)](function(_0x2c1242){const _0x140491=_0x3838e8;_0x28b2f0[_0x140491(0x1980)]({'title':_0x2c1242['status']?_0x140491(0x262a)+_0x2c1242[_0x140491(0x107b)]+_0x140491(0x1315)+_0x2c1242['statusText']:_0x140491(0x1ac9),'msg':_0x2c1242[_0x140491(0x107b)]?JSON['stringify'](_0x2c1242['data']):_0x2c1242[_0x140491(0xd5f)]()});});}function _0x4571d9(_0x241683){const _0x224553=_0x4009a1;return _0x5e01e3[_0x224553(0x1cdf)]=!![],_0x478105[_0x224553(0x39f)][_0x224553(0x551)]()[_0x224553(0x2945)][_0x224553(0x146b)](function(_0x1e975b){const _0x1ff30d=_0x224553;!_0x3f65c0()['isNil'](_0x1e975b)&&!_0x3f65c0()[_0x1ff30d(0x1b36)](_0x1e975b[_0x1ff30d(0xe26)])&&_0x1e975b[_0x1ff30d(0xe26)][_0x1ff30d(0x1095)]?_0x2adaee[_0x1ff30d(0x2615)]({'controller':'PreviewDialogController','controllerAs':'vm','templateUrl':_0x4ea558,'parent':angular[_0x1ff30d(0x1853)](_0x299daa['body']),'targetEvent':_0x241683,'clickOutsideToClose':!![],'locals':{'preview':_0x1e975b},'resolve':{'customFields':['apiResolver',function(_0x237236){const _0x221431=_0x1ff30d;return _0x237236['resolve'](_0x221431(0x1f60),{'nolimit':!![]});}]}}):_0x28b2f0['info']({'title':_0x1ff30d(0xe66),'msg':_0x1ff30d(0x1133)});})[_0x224553(0x129e)](function(_0x3ed5a6){const _0x43ff0d=_0x224553;if(_0x3ed5a6[_0x43ff0d(0x107b)]===0x194)_0x28b2f0[_0x43ff0d(0x271e)]({'title':_0x43ff0d(0xe66),'msg':_0x43ff0d(0x2011)});else{if(_0x3ed5a6[_0x43ff0d(0x524)]&&_0x3ed5a6[_0x43ff0d(0x524)]['errors']&&_0x3ed5a6[_0x43ff0d(0x524)][_0x43ff0d(0xcef)][_0x43ff0d(0x402)]){_0x5e01e3[_0x43ff0d(0xcef)]=_0x3ed5a6['data']['errors']||[{'message':_0x3ed5a6['toString'](),'type':_0x43ff0d(0x1156)}];for(let _0x5d204c=0x0;_0x5d204c<_0x3ed5a6[_0x43ff0d(0x524)]['errors']['length'];_0x5d204c+=0x1){_0x28b2f0['error']({'title':_0x3ed5a6[_0x43ff0d(0x524)][_0x43ff0d(0xcef)][_0x5d204c]['type'],'msg':_0x3ed5a6['data'][_0x43ff0d(0xcef)][_0x5d204c][_0x43ff0d(0x7fd)]});}}else _0x28b2f0[_0x43ff0d(0x1980)]({'title':_0x3ed5a6[_0x43ff0d(0x107b)]?_0x43ff0d(0x262a)+_0x3ed5a6[_0x43ff0d(0x107b)]+_0x43ff0d(0x1315)+_0x3ed5a6['statusText']:_0x43ff0d(0x1156),'msg':_0x3ed5a6[_0x43ff0d(0x524)]?JSON[_0x43ff0d(0x10bb)](_0x3ed5a6[_0x43ff0d(0x524)][_0x43ff0d(0x7fd)]):_0x3ed5a6[_0x43ff0d(0xd5f)]()});}})[_0x224553(0x1ec6)](function(){const _0x573b25=_0x224553;_0x5e01e3[_0x573b25(0x1cdf)]=![];});}function _0x28225f(_0x41001e){const _0x2c42b1=_0x4009a1;_0x17b35a(_0x41001e)[_0x2c42b1(0x1f05)]();}function _0x2c2359(){const _0x4577b6=_0x4009a1;return _0x5e01e3['currentUser']['role']===_0x4577b6(0x174b)||_0x5e01e3[_0x4577b6(0x2321)][_0x4577b6(0xfb0)]===_0x4577b6(0xe7b)||_0x5e01e3['currentUser'][_0x4577b6(0xfb0)]==='agent'&&_0x5e01e3[_0x4577b6(0x2321)]['showWebBar']!==0x0;}_0x478105[_0x4009a1(0x1841)]['get']({'fields':'FromId','ToId':_0x5e01e3[_0x4009a1(0x2321)]['id'],'read':![],'nolimit':!![]})[_0x4009a1(0x2945)]['then'](function(_0x3bccc4){const _0x325519=_0x4009a1;_0x5e01e3[_0x325519(0x570)]=_0x3bccc4[_0x325519(0x19c7)]['length'];});function _0xfe8c4c(_0x311b43){const _0x204923=_0x4009a1;_0x311b43[_0x204923(0x5b1)]===_0x5e01e3['currentUser']['id']&&!_0x311b43[_0x204923(0x1769)]&&(_0x5e01e3['unreadTotalMessages']+=0x1),_0x311b43[_0x204923(0x5b1)]===_0x5e01e3['currentUser']['id']&&_0x311b43[_0x204923(0xf96)]!==_0x5e01e3['currentUser']['id']&&!_0x311b43[_0x204923(0x229e)]&&_0x311b43['ChatGroupId']&&_0x5e01e3[_0x204923(0x1490)]++;}function _0x1b6adc(_0x5341d6){const _0xd3d3ea=_0x4009a1;_0x5341d6[_0xd3d3ea(0x5b1)]===_0x5e01e3['currentUser']['id']&&_0x5341d6[_0xd3d3ea(0x229e)]&&_0x5e01e3[_0xd3d3ea(0x570)]>0x0&&!_0x5341d6[_0xd3d3ea(0x1769)]&&(_0x5e01e3[_0xd3d3ea(0x570)]-=0x1),_0x5341d6[_0xd3d3ea(0x5b1)]===_0x5e01e3[_0xd3d3ea(0x2321)]['id']&&_0x5341d6[_0xd3d3ea(0x229e)]&&_0x5341d6['ChatGroupId']&&_0x5e01e3[_0xd3d3ea(0x1490)]>0x0&&_0x5e01e3[_0xd3d3ea(0x1490)]--;}function _0x32d0ee(_0x3fe801){const _0x3cf94e=_0x4009a1;_0x5e01e3[_0x3cf94e(0x1f55)]=_0x3fe801;}function _0x248f17(_0x4e8474){const _0x3e0faf=_0x4009a1;return _0x30e834(),_0x29d962['logout'](_0x4e8474)[_0x3e0faf(0x146b)](function(){const _0x5c3fea=_0x3e0faf;return _0x29a108[_0x5c3fea(0x25a4)](_0x5c3fea(0xf84)),_0x40ec1f['go'](_0x5c3fea(0x14a4));})[_0x3e0faf(0x129e)](function(_0x22e357){const _0x51adda=_0x3e0faf;console[_0x51adda(0x1980)](_0x22e357);});}function _0x47fdd8(_0x25c4e9){const _0x1d3104=_0x4009a1;if(typeof _0x5e01e3['languages'][_0x25c4e9[_0x1d3104(0x2148)]]==_0x1d3104(0x2274)){const _0x1691a4=_0x1d3104(0x15e1);_0x4ff89b[_0x1d3104(0x2615)]({'template':_0x1d3104(0x2210)+_0x1691a4+_0x1d3104(0x1782),'hideDelay':0x1b58,'position':'top\x20right','parent':_0x1d3104(0x1ae6)});return;}_0x5e01e3['selectedLanguage']=_0x25c4e9,_0x347b72[_0x1d3104(0x17b7)](_0x1d3104(0x8d6),_0x25c4e9['code']),_0x37f55b['use'](_0x25c4e9[_0x1d3104(0x2148)]),_0x40ec1f[_0x1d3104(0x2d7)][_0x1d3104(0x19eb)]===_0x1d3104(0x257)&&_0x2f66f9['location']['reload'](),_0x69468['indexOf'](_0x25c4e9[_0x1d3104(0x2148)])>=0x0?_0x28b2f0[_0x1d3104(0x271e)]({'title':_0x37f55b[_0x1d3104(0xde)]('TOOLBAR.CHANGE_LANGUAGE_TITLE'),'msg':_0x37f55b[_0x1d3104(0xde)]('TOOLBAR.CHANGE_LANGUAGE_MESSAGE')}):_0x2c79a9[_0x1d3104(0x2870)][_0x1d3104(0x2870)]['vm'][_0x1d3104(0x26cc)]=_0x1d3104(0x1666);}function _0x19fe4c(){const _0x1a6481=_0x4009a1;_0x5e01e3[_0x1a6481(0x1377)]['toggleClass'](_0x1a6481(0x1f58));}function _0x16c7aa(){const _0x4cf4eb=_0x4009a1;_0x3b9b5a[_0x4cf4eb(0x25a3)]();}function _0x486f80(_0x11ee61){const _0x502f3d=_0x4009a1;let _0x594c6e=[];const _0x3f7901=_0x3b9b5a[_0x502f3d(0x795)](),_0x5cd8fc=_0x2e8af7[_0x502f3d(0xce3)]();for(let _0x38870d=0x0;_0x38870d<_0x3f7901['length'];_0x38870d++){_0x3f7901[_0x38870d][_0x502f3d(0x135a)]&&_0x594c6e[_0x502f3d(0x1f47)](_0x3f7901[_0x38870d]);}return _0x11ee61&&(_0x594c6e=_0x594c6e[_0x502f3d(0x1dd6)](function(_0x248505){const _0x45819d=_0x502f3d;if(_0x248505[_0x45819d(0x1189)][_0x45819d(0x256e)]()['includes'](_0x11ee61[_0x45819d(0x256e)]()))return!![];})),_0x5142da(function(){_0x5cd8fc['resolve'](_0x594c6e);},0x3e8),_0x5cd8fc[_0x502f3d(0xb9c)];}function _0x518db3(_0x288dd8){const _0x21f538=_0x4009a1;_0x288dd8[_0x21f538(0x135a)]&&(_0x288dd8[_0x21f538(0x1de9)]?_0x40ec1f['go'](_0x288dd8['state'],_0x288dd8[_0x21f538(0x1de9)]):_0x40ec1f['go'](_0x288dd8[_0x21f538(0x13d6)]));}function _0x1c95f6(){const _0x463749=_0x4009a1;_0x29a108[_0x463749(0x25a4)](_0x463749(0x18d8));}function _0x48428a(_0x4ffc3b,_0x1522d1){const _0x3f5505=_0x4009a1;_0x2adaee[_0x3f5505(0x2615)]({'controller':_0x3f5505(0x42d),'controllerAs':'vm','templateUrl':_0x19e607,'parent':angular[_0x3f5505(0x1853)](_0x299daa['body']),'targetEvent':_0x4ffc3b,'clickOutsideToClose':_0x1522d1?![]:!![],'escapeToClose':_0x1522d1?![]:!![],'locals':{'user':_0x5e01e3['user'],'setting':_0x58c02e,'reset':_0x1522d1}});}function _0x22ce3f(){const _0x54f490=_0x4009a1;return _0x29d962['getCurrentUser']()&&_0x29d962[_0x54f490(0x23e0)]('agent');}function _0x555090(_0x50f684){const _0x45604b=_0x4009a1;if(_0x50f684['id']===_0x5e01e3[_0x45604b(0xe7b)]['id']){if(_0x50f684[_0x45604b(0xfb0)]===_0x45604b(0x1755)&&_0x3f65c0()[_0x45604b(0x1399)](_0x50f684['online'])&&!_0x50f684[_0x45604b(0x538)]){if(_0x5e01e3[_0x45604b(0xe7b)][_0x45604b(0xd29)]!==0x0){_0x30e834();const _0x1c4b2d=_0x2adaee[_0x45604b(0x1e8a)]()[_0x45604b(0x1189)](_0x37f55b[_0x45604b(0xde)]('TOOLBAR.WARNING')+'!')[_0x45604b(0x199c)](_0x37f55b[_0x45604b(0xde)](_0x45604b(0x221c)))[_0x45604b(0x4bd)](_0x37f55b['instant'](_0x45604b(0x26b9))+'!')['ok'](_0x37f55b['instant'](_0x45604b(0x1fe0)))[_0x45604b(0x6c3)](_0x45604b(0x1394));_0x2adaee['show'](_0x1c4b2d)[_0x45604b(0x146b)](function(){const _0x14f2b2=_0x45604b;return _0x29d962[_0x14f2b2(0xc63)]()['then'](function(){const _0x5c9a37=_0x14f2b2;_0x4b0256(),_0x3f65c0()[_0x5c9a37(0x168d)](_0x5e01e3['user'],_0x50f684),_0x29d962[_0x5c9a37(0x1016)](_0x5e01e3[_0x5c9a37(0xe7b)]);});})['catch'](function(){_0x248f17(!![]);});}else _0x248f17(!![]);}else _0x3f65c0()[_0x45604b(0x168d)](_0x5e01e3['user'],_0x50f684),_0x29d962[_0x45604b(0x1016)](_0x5e01e3[_0x45604b(0xe7b)]);}}function _0x2b9af2(_0x518397){const _0x2e6a37=_0x4009a1;_0x5e01e3[_0x2e6a37(0x2321)][_0x2e6a37(0xd29)]===0x2&&_0x5e01e3['currentUser'][_0x2e6a37(0xfb0)]==='agent'&&_0x5e01e3[_0x2e6a37(0x2321)][_0x2e6a37(0x19eb)]===_0x518397[_0x2e6a37(0x1801)]&&_0x28b2f0[_0x2e6a37(0x271e)]({'title':_0x2e6a37(0x374),'msg':_0x2e6a37(0x68e)+_0x518397[_0x2e6a37(0xa5c)]+'
    \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Queue:\x20'+_0x518397['queue']+_0x2e6a37(0x41b)+(_0x518397['variables']&&_0x518397[_0x2e6a37(0x85b)][_0x2e6a37(0x1aba)]?_0x518397['variables'][_0x2e6a37(0x1aba)]:_0x2e6a37(0x5f6))+_0x2e6a37(0x1458),'showClose':!![],'timeout':0x2710,'html':!![]});}function _0x50f477(){const _0x14ddfc=_0x4009a1;return _0x5e01e3[_0x14ddfc(0x15b9)]['defaultHeaderWhiteLabel']?_0x14ddfc(0x23f2):_0x5e01e3[_0x14ddfc(0x15b9)][_0x14ddfc(0xdac)];}function _0x28e726(){const _0x1e80cb=_0x4009a1;_0x3f65c0()['some'](_0x5e01e3['voiceQueues'],{'dialMethod':_0x1e80cb(0x17d7),'dialActive':!![]})&&_0x5e01e3['license'][_0x1e80cb(0x2842)]&&_0x5e01e3[_0x1e80cb(0x1b0b)]?(_0x5e01e3['polling']=![],_0x478105[_0x1e80cb(0x39f)][_0x1e80cb(0x1601)]()[_0x1e80cb(0x2945)][_0x1e80cb(0x146b)](function(_0x38c184){const _0x58b85d=_0x1e80cb;_0x38c184&&_0x3f65c0()[_0x58b85d(0x77d)](_0x38c184[_0x58b85d(0x1471)])&&(_0x5e01e3[_0x58b85d(0x1471)]=_0x38c184[_0x58b85d(0x1471)]);})[_0x1e80cb(0x1ec6)](function(){const _0x388cd0=_0x1e80cb;_0x5e01e3[_0x388cd0(0x1b0b)]=!![];})):_0x5e01e3['contacts']=0x0;}function _0x1767dd(){const _0x4eb3b0=_0x4009a1;_0x17c33b&&(_0x233423[_0x4eb3b0(0x6c3)](_0x17c33b),_0x17c33b=null);}function _0x2ae602(_0x4bc891){const _0x4329f9=_0x4009a1;console['debug']('onForceLogout\x20->\x20data',_0x4bc891);if(_0x5e01e3[_0x4329f9(0xe7b)][_0x4329f9(0xd29)]!==0x0)return _0x30e834(),_0x29d962['logout'](!![])['then'](function(){const _0x902bcc=_0x4329f9;_0x29a108[_0x902bcc(0x25a4)](_0x902bcc(0xf84)),_0x2adaee[_0x902bcc(0x2615)](_0x2adaee['alert']()[_0x902bcc(0x3fd)](angular[_0x902bcc(0x1853)](_0x299daa[_0x902bcc(0x2586)]))[_0x902bcc(0xa70)](![])[_0x902bcc(0x1d12)](![])[_0x902bcc(0x1189)](_0x37f55b[_0x902bcc(0xde)](_0x902bcc(0x26b9)))[_0x902bcc(0x199c)](_0x37f55b[_0x902bcc(0xde)](_0x902bcc(0xb46),{'ip':_0x4bc891['ip']}))['ok']('OK'))[_0x902bcc(0x146b)](function(){const _0x5f1ef4=_0x902bcc;return _0x40ec1f['go'](_0x5f1ef4(0x14a4));});})[_0x4329f9(0x129e)](function(_0x99d8db){const _0x580b3e=_0x4329f9;console[_0x580b3e(0x1980)](_0x99d8db);});}function _0x43bb80(_0x1beba9){const _0x450efd=_0x4009a1,_0x43e444=_0x1beba9;if(_0x5e01e3[_0x450efd(0x2321)]['id']===_0x43e444[_0x450efd(0x424)]){const _0x4efedf=_0x37f55b['instant'](_0x450efd(0x158d),{'sender':_0x43e444[_0x450efd(0x1ecc)]}),_0x190add=_0x43e444[_0x450efd(0xb17)]?_0x37f55b[_0x450efd(0xde)](_0x450efd(0x123c),{'recipient':_0x43e444[_0x450efd(0xb17)]}):null;_0x28b2f0[_0x450efd(0x2070)]({'title':_0x190add?_0x4efedf+'\x20'+_0x190add:_0x4efedf,'msg':_0x43e444[_0x450efd(0x80f)],'clickToClose':![],'timeout':![],'sound':_0x43e444[_0x450efd(0x2672)],'html':!![]});}}_0x2c79a9[_0x4009a1(0x16ad)](_0x4009a1(0x116f),function(){const _0x22dc9a=_0x4009a1;_0xf0689d[_0x22dc9a(0x1c5f)](_0x22dc9a(0x1dbc)),_0xf0689d[_0x22dc9a(0x1c5f)](_0x22dc9a(0x324)),_0xf0689d['removeAllListeners'](_0x22dc9a(0xb56)),_0xf0689d['removeAllListeners']('chatInternalMessage:update'),_0xf0689d['removeAllListeners'](_0x22dc9a(0x109d)),_0xf0689d[_0x22dc9a(0x1c5f)]('voiceQueue:save'),_0xf0689d[_0x22dc9a(0x1c5f)](_0x22dc9a(0x1d3e)),_0xf0689d['removeAllListeners']('voiceQueue:remove'),_0xf0689d['removeAllListeners'](_0x22dc9a(0x235b)),_0xf0689d[_0x22dc9a(0x1c5f)]('user:forcelogout'),_0xf0689d[_0x22dc9a(0x1c5f)](_0x22dc9a(0x240b)),_0x1767dd();});}const _0x266970=_0x23cf9a;;_0x578d08[_0x313a4d(0x11c2)]=[_0x313a4d(0x695)];function _0x578d08(_0x4f9352){const _0xe5255e=_0x313a4d;_0x4f9352[_0xe5255e(0x15bf)](_0xe5255e(0x2065));}angular[_0x313a4d(0x2528)](_0x313a4d(0x10a4),[])[_0x313a4d(0x989)](_0x578d08)[_0x313a4d(0x28f0)]('ChangePasswordController',_0x3e84d9)[_0x313a4d(0x28f0)]('PreviewDialogController',_0x308f03)[_0x313a4d(0x28f0)](_0x313a4d(0x1347),_0x266970);;_0x487976[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x214b),'$q',_0x313a4d(0xa87),_0x313a4d(0x279d),_0x313a4d(0x247f),_0x313a4d(0x3db),'license'];function _0x487976(_0x2ad623,_0x47f17a,_0x4b4fc5,_0x3d92e6,_0x5e3008,_0x370d9c,_0x99e7a,_0x4cf22c){const _0x34cc7a=_0x313a4d,_0x5d8331=this;_0x5d8331[_0x34cc7a(0x1a10)]=_0x2deec6()()[_0x34cc7a(0x22b0)](),_0x5d8331[_0x34cc7a(0x2321)]=_0x3d92e6['getCurrentUser'](),_0x5d8331['license']=_0x4cf22c,_0x5d8331[_0x34cc7a(0x570)]=0x0,_0x5d8331[_0x34cc7a(0x1490)]=0x0,_0x5d8331[_0x34cc7a(0x31a)]=_0x657649,_0x5d8331[_0x34cc7a(0x22dc)]=_0x2e37c7,_0x5d8331['onMessageUpdate']=_0x40174b,_0x5e3008['on'](_0x34cc7a(0xb56),_0x5d8331[_0x34cc7a(0x22dc)]),_0x5e3008['on'](_0x34cc7a(0x10d2),_0x5d8331['onMessageUpdate']),_0x370d9c[_0x34cc7a(0x1841)][_0x34cc7a(0x16b4)]({'fields':_0x34cc7a(0xf96),'ToId':_0x5d8331[_0x34cc7a(0x2321)]['id'],'read':![],'nolimit':!![],'ChatGroupId':'null'})[_0x34cc7a(0x2945)][_0x34cc7a(0x146b)](function(_0x103054){const _0x2f3e12=_0x34cc7a;return _0x103054&&_0x103054['count']&&(_0x5d8331[_0x2f3e12(0x570)]=_0x103054[_0x2f3e12(0x51c)]),_0x370d9c[_0x2f3e12(0xe7b)][_0x2f3e12(0x809)]({'id':_0x5d8331[_0x2f3e12(0x2321)]['id']})[_0x2f3e12(0x2945)];})[_0x34cc7a(0x146b)](function(_0x4bfb71){const _0xa91008=_0x34cc7a,_0x56c7df=[],_0x496c04=_0x4bfb71[_0xa91008(0x19c7)];for(let _0x525d66=0x0;_0x525d66<_0x496c04[_0xa91008(0x402)];_0x525d66++){_0x56c7df[_0xa91008(0x1f47)](_0x370d9c[_0xa91008(0x1340)][_0xa91008(0x3c6)]({'id':_0x496c04[_0x525d66]['id']})[_0xa91008(0x2945)]);}return _0x4b4fc5['all'](_0x56c7df);})[_0x34cc7a(0x146b)](function(_0x2e511f){const _0x157ac6=_0x34cc7a;for(let _0xe2fb9a=0x0;_0xe2fb9a<_0x2e511f['length'];_0xe2fb9a++){_0x5d8331[_0x157ac6(0x1490)]+=_0x2e511f[_0xe2fb9a][_0x157ac6(0x51c)];}})[_0x34cc7a(0x129e)](function(_0x44d645){const _0x10604f=_0x34cc7a;console[_0x10604f(0x1980)](_0x44d645);});function _0x47c1fa(_0x4c92ec){const _0x5ee64a=_0x34cc7a,_0x14339={'autoClose':!![],'duration':0xa,'showOnPageHidden':!![],'icon':_0x5ee64a(0x461)+_0x4c92ec[_0x5ee64a(0xf96)]+_0x5ee64a(0xf07),'body':_0x4c92ec[_0x5ee64a(0x2586)]||'','focusOnclick':!![],'closeOnClick':!![]};_0x99e7a[_0x5ee64a(0x2615)](_0x47f17a[_0x5ee64a(0xde)](_0x5ee64a(0x1e50)),_0x14339);}function _0x5eedf6(_0x4cb283){const _0x9a4b71=_0x34cc7a;_0x99e7a[_0x9a4b71(0x1335)]()?_0x99e7a['requestPermission']()['then'](function(){_0x47c1fa(_0x4cb283);},function(_0x36adb9){const _0x5c6a06=_0x9a4b71;console[_0x5c6a06(0x1980)]('Please\x20enable\x20browser\x20notifications!',_0x36adb9);}):console[_0x9a4b71(0x1980)](_0x9a4b71(0x1773));}function _0x657649(){const _0x40db71=_0x34cc7a;return _0x5d8331[_0x40db71(0x2321)][_0x40db71(0xfb0)]===_0x40db71(0x174b)||_0x5d8331['currentUser'][_0x40db71(0xfb0)]===_0x40db71(0xe7b)||_0x5d8331[_0x40db71(0x2321)][_0x40db71(0xfb0)]===_0x40db71(0x1755)&&_0x5d8331[_0x40db71(0x2321)][_0x40db71(0xd29)]!==0x0;}function _0x2e37c7(_0x1b0866){const _0x54f067=_0x34cc7a;_0x1b0866['ToId']===_0x5d8331[_0x54f067(0x2321)]['id']&&_0x1b0866[_0x54f067(0xf96)]!==_0x5d8331['currentUser']['id']&&!_0x1b0866[_0x54f067(0x229e)]&&_0x1b0866[_0x54f067(0x1769)]&&(_0x5d8331['unreadTotalGroupMessages']++,_0x5eedf6(_0x1b0866)),_0x1b0866[_0x54f067(0x5b1)]===_0x5d8331[_0x54f067(0x2321)]['id']&&!_0x1b0866[_0x54f067(0x1769)]&&(_0x5d8331[_0x54f067(0x570)]+=0x1,_0x5eedf6(_0x1b0866));}function _0x40174b(_0xfe0226){const _0x1342c1=_0x34cc7a;_0xfe0226[_0x1342c1(0x5b1)]===_0x5d8331[_0x1342c1(0x2321)]['id']&&_0xfe0226[_0x1342c1(0x229e)]&&_0x5d8331[_0x1342c1(0x570)]>0x0&&!_0xfe0226['ChatGroupId']&&(_0x5d8331[_0x1342c1(0x570)]-=0x1),_0xfe0226[_0x1342c1(0x5b1)]==_0x5d8331[_0x1342c1(0x2321)]['id']&&_0xfe0226[_0x1342c1(0xf96)]!==_0x5d8331[_0x1342c1(0x2321)]['id']&&_0xfe0226[_0x1342c1(0x1769)]&&_0xfe0226[_0x1342c1(0x229e)]&&(_0x5d8331[_0x1342c1(0x1490)]>0x0&&_0x5d8331[_0x1342c1(0x1490)]--);}_0x2ad623['$on'](_0x34cc7a(0x116f),function(){const _0x1de898=_0x34cc7a;_0x5e3008[_0x1de898(0x1c5f)]('chatInternalMessage:save'),_0x5e3008[_0x1de898(0x1c5f)](_0x1de898(0x10d2));});}const _0x68ca83=_0x487976;;_0x2226ba[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1fe4),'api',_0x313a4d(0x1abe),'Auth',_0x313a4d(0x279d),_0x313a4d(0x15fe),'$q',_0x313a4d(0xa0a),_0x313a4d(0x214b),'$rootScope',_0x313a4d(0x237)];function _0x2226ba(_0x243c9c,_0x3e44e8,_0x413cf4,_0x3077e8,_0xdd8435,_0x489d07,_0x445e14,_0x66cbe7,_0x59d038,_0x5444f5,_0x5e1b76,_0x335a8d){const _0x281022=_0x313a4d,_0x4d27d1=this;_0x4d27d1['currentUser']=_0xdd8435[_0x281022(0xb12)](),_0x4d27d1['user']=undefined,_0x4d27d1[_0x281022(0x1995)]={'count':0x0,'rows':[]},_0x4d27d1[_0x281022(0x1d49)]=_0x2deec6()(0x0)[_0x281022(0x22b0)](_0x281022(0x1ce2)),_0x4d27d1[_0x281022(0x53c)]={},_0x4d27d1[_0x281022(0x1312)]='',_0x4d27d1[_0x281022(0x2862)]=![],_0x4d27d1[_0x281022(0x5aa)]=_0x530b52,_0x4d27d1[_0x281022(0xbd6)]=_0x27520b,_0x4d27d1[_0x281022(0x512)]=_0x13822b,_0x4d27d1[_0x281022(0x22dc)]=_0x53d447,_0x4d27d1[_0x281022(0x2232)]=_0x224644,_0x4d27d1['onUserUpdate']=_0x1c0a18,_0x4d27d1[_0x281022(0x1d38)]=_0x1a641e,_0x4d27d1[_0x281022(0x133b)]=_0x35520f,_0x4d27d1[_0x281022(0x15b)]=_0x59ddbe,_0x489d07['on'](_0x281022(0xb56),_0x4d27d1['onMessageSave']),_0x489d07['on']('chatInternalMessage:update',_0x4d27d1['onMessageUpdate']),_0x489d07['on'](_0x281022(0x324),_0x4d27d1[_0x281022(0x1b17)]),_0x445e14(_0x281022(0x1414))['onClose'](function(){_0x4d27d1['user']=undefined;}),_0x413cf4[_0x281022(0x1841)]['get']({'fields':_0x281022(0xf96),'ToId':_0x4d27d1[_0x281022(0x2321)]['id'],'read':![],'nolimit':!![],'ChatGroupId':_0x281022(0x203c)})[_0x281022(0x2945)][_0x281022(0x146b)](function(_0x5f065d){const _0x4f92cc=_0x281022;_0x4d27d1[_0x4f92cc(0x53c)]=_0x3f65c0()[_0x4f92cc(0xf0d)](_0x5f065d[_0x4f92cc(0x19c7)],'FromId');})[_0x281022(0x129e)](function(){}),_0x413cf4[_0x281022(0x1841)]['getUsers']()[_0x281022(0x2945)][_0x281022(0x146b)](function(_0x5c23bc){const _0xe9e193=_0x281022;_0x4d27d1[_0xe9e193(0x1995)]=_0x5c23bc;})[_0x281022(0x129e)](function(_0x1b0218){const _0x1aecda=_0x281022;console[_0x1aecda(0x1980)](_0x1b0218);});function _0x530b52(_0x4d51bb){const _0x4ce54d=_0x281022;_0x4d27d1[_0x4ce54d(0x2690)]=_0x4d51bb;}function _0x53d447(_0x17566f){const _0x4f1759=_0x281022;if(_0x17566f[_0x4f1759(0x5b1)]===_0x4d27d1[_0x4f1759(0x2321)]['id']&&!_0x17566f['ChatGroupId']){_0x4d27d1[_0x4f1759(0xe7b)]&&_0x4d27d1['user']['id']===_0x17566f[_0x4f1759(0xf96)]?(_0x4d27d1[_0x4f1759(0xe7b)][_0x4f1759(0x8ac)]['rows'][_0x4f1759(0x1f47)](_0x17566f),_0x27a102(0x0),_0x413cf4[_0x4f1759(0x1841)]['update']({'id':_0x17566f['id'],'read':!![]})):_0x4d27d1[_0x4f1759(0x53c)][_0x17566f['FromId']]=_0x4d27d1[_0x4f1759(0x53c)][_0x17566f['FromId']]?_0x4d27d1['unreadMessage'][_0x17566f['FromId']]+0x1:0x1;const _0x4a71c4=_0x3f65c0()[_0x4f1759(0xc84)](_0x4d27d1[_0x4f1759(0x1995)][_0x4f1759(0x19c7)],{'id':_0x17566f['FromId']});_0x4a71c4&&(_0x4a71c4[_0x4f1759(0x1d9b)]=_0x17566f[_0x4f1759(0xc68)],_0x4a71c4[_0x4f1759(0x186)]=_0x17566f);}}function _0x224644(_0x33755a){const _0x521ef4=_0x281022;if((_0x33755a['FromId']===_0x4d27d1['currentUser']['id']||_0x33755a[_0x521ef4(0x5b1)]===_0x4d27d1[_0x521ef4(0x2321)]['id'])&&!_0x33755a['ChatGroupId']){if(_0x4d27d1[_0x521ef4(0xe7b)]){const _0xd52a12=_0x3f65c0()[_0x521ef4(0xc84)](_0x4d27d1[_0x521ef4(0xe7b)][_0x521ef4(0x8ac)][_0x521ef4(0x19c7)],{'id':_0x33755a['id']});_0xd52a12&&_0x3f65c0()[_0x521ef4(0x168d)](_0xd52a12,_0x33755a);}const _0x4abfe1=_0x3f65c0()[_0x521ef4(0xc84)](_0x4d27d1['users'][_0x521ef4(0x19c7)],{'id':_0x4d27d1['currentUser']['id']===_0x33755a['FromId']?_0x33755a[_0x521ef4(0x5b1)]:_0x33755a[_0x521ef4(0xf96)]});_0x4abfe1&&_0x4abfe1[_0x521ef4(0x186)]&&_0x3f65c0()[_0x521ef4(0x168d)](_0x4abfe1[_0x521ef4(0x186)],_0x33755a),_0x33755a[_0x521ef4(0x5b1)]===_0x4d27d1[_0x521ef4(0x2321)]['id']&&(_0x33755a[_0x521ef4(0x229e)]&&_0x4d27d1[_0x521ef4(0x53c)][_0x33755a[_0x521ef4(0xf96)]]>0x0&&(_0x4d27d1[_0x521ef4(0x53c)][_0x33755a[_0x521ef4(0xf96)]]-=0x1));}}function _0x1c0a18(_0x50bf05){const _0x38c434=_0x281022,_0x288aa7=_0x3f65c0()[_0x38c434(0xc84)](_0x4d27d1[_0x38c434(0x1995)][_0x38c434(0x19c7)],{'id':_0x50bf05['id']});_0x288aa7&&(!_0x3f65c0()['isNil'](_0x50bf05[_0x38c434(0x538)])&&_0x288aa7['online']!==_0x50bf05[_0x38c434(0x538)]&&(_0x288aa7[_0x38c434(0x538)]=_0x50bf05[_0x38c434(0x538)]),!_0x3f65c0()[_0x38c434(0x1b36)](_0x50bf05[_0x38c434(0x175a)])&&_0x288aa7[_0x38c434(0x175a)]!==_0x50bf05[_0x38c434(0x175a)]&&(_0x288aa7[_0x38c434(0x175a)]=_0x50bf05[_0x38c434(0x175a)]));}function _0x27520b(_0x3b69ef){const _0x1d8044=_0x281022;if(_0x3b69ef){if(!_0x3b69ef['allowmessenger']&&_0x3b69ef[_0x1d8044(0xfb0)]===_0x1d8044(0x1755)){_0x3e44e8[_0x1d8044(0x195d)]({'title':_0x5444f5[_0x1d8044(0xde)](_0x1d8044(0x1415)),'msg':_0x5444f5[_0x1d8044(0xde)](_0x1d8044(0x93c))}),_0x4d27d1[_0x1d8044(0xe7b)]=undefined;return;}_0x4d27d1[_0x1d8044(0xe7b)]=_0x3b69ef,_0x4d27d1[_0x1d8044(0x1312)]='',_0x413cf4[_0x1d8044(0x1841)]['get']({'sort':'createdAt','FromId':_0x4d27d1['currentUser']['id']+','+_0x3b69ef['id'],'ToId':_0x4d27d1['currentUser']['id']+','+_0x3b69ef['id'],'ChatGroupId':_0x1d8044(0x203c)})[_0x1d8044(0x2945)][_0x1d8044(0x146b)](function(_0x4eb8f7){const _0x5555ee=_0x1d8044;if(_0x4eb8f7&&_0x4eb8f7['rows']){_0x4d27d1[_0x5555ee(0xe7b)][_0x5555ee(0x8ac)]=_0x4eb8f7;for(let _0x5f2550=0x0;_0x5f2550<_0x4d27d1[_0x5555ee(0xe7b)]['messages']['rows'][_0x5555ee(0x402)];_0x5f2550+=0x1){_0x4d27d1[_0x5555ee(0xe7b)][_0x5555ee(0x8ac)][_0x5555ee(0x19c7)][_0x5f2550][_0x5555ee(0x229e)]===![]&&_0x4d27d1[_0x5555ee(0xe7b)][_0x5555ee(0x8ac)][_0x5555ee(0x19c7)][_0x5f2550][_0x5555ee(0x5b1)]===_0x4d27d1[_0x5555ee(0x2321)]['id']&&_0x413cf4['chatInternalMessage']['update']({'id':_0x4d27d1[_0x5555ee(0xe7b)][_0x5555ee(0x8ac)]['rows'][_0x5f2550]['id'],'read':!![]});}}})[_0x1d8044(0x1ec6)](function(){_0x27a102(0x0);});}else _0x4d27d1[_0x1d8044(0xe7b)]=undefined;}function _0x13822b(){const _0x792a=_0x281022;_0x4d27d1[_0x792a(0x2862)]=!![];if(_0x4d27d1[_0x792a(0x1312)]===''){_0x4d27d1[_0x792a(0x2862)]=![];return;}const _0x2b0b22={'FromId':_0x4d27d1[_0x792a(0x2321)]['id'],'ToId':_0x4d27d1[_0x792a(0xe7b)]['id'],'body':_0x4d27d1[_0x792a(0x1312)],'read':![]};_0x4d27d1['replyMessage']='',_0x413cf4[_0x792a(0x1841)][_0x792a(0x1e3)](_0x2b0b22)[_0x792a(0x2945)][_0x792a(0x146b)](function(_0xff8092){const _0x5095a8=_0x792a;_0x4d27d1[_0x5095a8(0xe7b)][_0x5095a8(0x8ac)][_0x5095a8(0x19c7)][_0x5095a8(0x1f47)](_0xff8092),_0x4d27d1[_0x5095a8(0xe7b)][_0x5095a8(0x1d9b)]=_0xff8092[_0x5095a8(0xc68)],_0x4d27d1[_0x5095a8(0xe7b)]['lastMessage']=_0xff8092,_0x27a102(0x190);})['catch'](function(){})[_0x792a(0x1ec6)](function(){_0x4d27d1['disabled']=![];});}function _0x27a102(_0x45c7fe){const _0x2a78a1=_0x281022,_0x1effcf=angular[_0x2a78a1(0x1853)](_0x2a78a1(0xcf7));_0x3077e8(function(){const _0x8a0e6c=_0x2a78a1;_0x1effcf[_0x8a0e6c(0x233b)]({'scrollTop':_0x1effcf[0x0][_0x8a0e6c(0x9d4)]},_0x45c7fe);},0x0);}function _0x3cb8d6(_0x23603c){const _0x570e5a=_0x281022;return!_0x3f65c0()[_0x570e5a(0x1b36)](_0x23603c)?_0x23603c[_0x570e5a(0x5f4)](/[^\w.+#*-]+/g,''):'';}function _0x1a641e(_0x5b6286){const _0x3f1f9b=_0x281022;_0x5e1b76[_0x3f1f9b(0x25a4)]('webrtc::call',{'target':_0x3cb8d6(_0x5b6286)});}function _0x35520f(_0x3610c9){const _0xcbefae=_0x281022;return _0x58b445(_0xcbefae(0x7af)+(_0x4d27d1[_0xcbefae(0xe7b)]['phoneBarRemoteControlPort']||_0xcbefae(0x118f))+_0xcbefae(0x596)+_0x3cb8d6(_0x3610c9));}function _0x59ddbe(_0x1e8677){const _0x2a267e=_0x281022;return _0x58b445(_0x2a267e(0x7af)+(_0x4d27d1[_0x2a267e(0xe7b)][_0x2a267e(0x1dba)]||_0x2a267e(0x118f))+_0x2a267e(0x2683)+_0x3cb8d6(_0x1e8677));}function _0x58b445(_0x507a6e){const _0xde1d15=_0x281022;return _0x335a8d[_0xde1d15(0x16b4)](_0x507a6e)[_0xde1d15(0x1c75)](function(){const _0xad644b=_0xde1d15;_0x3e44e8[_0xad644b(0x1c75)]({'title':_0xad644b(0x11a7),'msg':_0xad644b(0x2d3)});})['error'](function(){const _0x513352=_0xde1d15;_0x3e44e8[_0x513352(0x1980)]({'title':_0x513352(0x58a),'msg':_0x5444f5[_0x513352(0xde)](_0x513352(0x38c))});});}_0x243c9c[_0x281022(0x16ad)](_0x281022(0x116f),function(){const _0x6e7449=_0x281022;_0x489d07[_0x6e7449(0x1c5f)](_0x6e7449(0xb56)),_0x489d07[_0x6e7449(0x1c5f)](_0x6e7449(0x10d2)),_0x489d07[_0x6e7449(0x1c5f)](_0x6e7449(0x324));});}const _0x45eec4=_0x2226ba;;_0x10ed41['$inject']=['$scope',_0x313a4d(0x1862),_0x313a4d(0xd08),'$mdDialog',_0x313a4d(0x1fe4),'api',_0x313a4d(0xa87),_0x313a4d(0x1b12),_0x313a4d(0x1910)];function _0x10ed41(_0x13af87,_0x218a00,_0x5c3d24,_0xeef679,_0x18dc1f,_0x53d31b,_0x25ba6e,_0x9377b,_0x1b6a4f){const _0x59447f=_0x313a4d,_0x3b6a90=this;_0x3b6a90[_0x59447f(0xcef)]=[],_0x3b6a90[_0x59447f(0x1189)]=_0x59447f(0x1863),_0x3b6a90[_0x59447f(0x1b12)]=angular[_0x59447f(0x235a)](_0x9377b),_0x3b6a90[_0x59447f(0x2321)]=_0x25ba6e['getCurrentUser'](),_0x3b6a90[_0x59447f(0x1910)]=_0x1b6a4f,_0x3b6a90[_0x59447f(0xf7c)]=!![];!_0x3b6a90['group']&&(_0x3b6a90[_0x59447f(0x1b12)]={'write':!![],'members':[]},_0x3b6a90[_0x59447f(0x1189)]=_0x59447f(0x24b1));_0x3b6a90[_0x59447f(0x5db)]=_0x4d1574,_0x3b6a90[_0x59447f(0x13f3)]=_0x25da3d,_0x3b6a90[_0x59447f(0x2791)]=_0x50c609;function _0x535289(_0x31d59e){const _0x47be27=_0x59447f,_0x48ebec=_0x31d59e[_0x47be27(0x256e)]();return function _0x283966(_0x5c647d){const _0x24d97c=_0x47be27,_0x2064e1=_0x5c647d['name'][_0x24d97c(0x256e)]();return _0x2064e1[_0x24d97c(0x172b)](_0x48ebec)!=-0x1;};}function _0x50c609(_0x492bb6){const _0x14295f=_0x59447f;return _0x492bb6?_0x3b6a90['members'][_0x14295f(0x19c7)][_0x14295f(0x1dd6)](_0x535289(_0x492bb6)):[];}function _0x4d1574(){const _0x4667a3=_0x59447f;let _0x552362;return _0x3b6a90[_0x4667a3(0xcef)]=[],_0x53d31b[_0x4667a3(0x1340)]['save']({'name':_0x3b6a90['group'][_0x4667a3(0x19eb)],'write':_0x3b6a90[_0x4667a3(0x1b12)][_0x4667a3(0xa29)]})['$promise'][_0x4667a3(0x146b)](function(_0x4cb322){const _0x39301f=_0x4667a3,_0x366f32=_0x3f65c0()[_0x39301f(0x205)](_0x3b6a90[_0x39301f(0x1b12)]['members'],'id');return _0x366f32['unshift'](_0x3b6a90[_0x39301f(0x2321)]['id']),_0x552362=_0x4cb322,_0x53d31b[_0x39301f(0x1340)]['addMembers']({'id':_0x552362['id'],'ids':_0x366f32})[_0x39301f(0x2945)];})['then'](function(){const _0x4f0f7b=_0x4667a3;_0x18dc1f[_0x4f0f7b(0x1c75)]({'title':_0x4f0f7b(0x1c3),'msg':_0x552362[_0x4f0f7b(0x19eb)]+_0x4f0f7b(0x24db)}),_0x25da3d(_0x552362);})[_0x4667a3(0x129e)](function(_0x125729){const _0x4bdda6=_0x4667a3;_0x18dc1f[_0x4bdda6(0x1980)]({'title':_0x125729[_0x4bdda6(0x107b)]?_0x4bdda6(0x262a)+_0x125729[_0x4bdda6(0x107b)]+'\x20-\x20'+_0x125729[_0x4bdda6(0x167f)]:'api.chatQueue.update','msg':_0x125729[_0x4bdda6(0x524)]?JSON[_0x4bdda6(0x10bb)](_0x125729[_0x4bdda6(0x524)][_0x4bdda6(0x7fd)]):_0x125729['toString']()});});}function _0x25da3d(_0x78d4f7){const _0x25cc2=_0x59447f;_0xeef679[_0x25cc2(0x2458)](_0x78d4f7);}}const _0x45f675=_0x10ed41;;const _0x4f134c=_0x4acfac['p']+'src/js/modules/quick-panel/tabs/groups/create/dialog.html/dialog.html';;const _0x1a51a9=_0x4acfac['p']+_0x313a4d(0x173d);;_0x3b9923[_0x313a4d(0x11c2)]=['$scope',_0x313a4d(0x4d8),_0x313a4d(0x1abe),'$mdDialog',_0x313a4d(0x15fe),'$q',_0x313a4d(0xa87),_0x313a4d(0x247f),_0x313a4d(0x279d),_0x313a4d(0x1fe4)];function _0x3b9923(_0x49f0d8,_0x3b748e,_0x460b08,_0x4035c7,_0x195794,_0x37a646,_0x17f035,_0x54dcfb,_0x4113fe,_0x407f1f){const _0x5b7a1e=_0x313a4d,_0xc6b358=this;_0xc6b358['currentUser']=_0x17f035[_0x5b7a1e(0xb12)](),_0xc6b358[_0x5b7a1e(0x19c9)]={},_0xc6b358['groups']={},_0xc6b358[_0x5b7a1e(0x1f4b)],_0xc6b358[_0x5b7a1e(0x1b12)],_0xc6b358[_0x5b7a1e(0x5aa)]=_0x45086f,_0xc6b358[_0x5b7a1e(0x531)]=_0x460e7a,_0xc6b358[_0x5b7a1e(0x1f86)]=_0x57bc50,_0xc6b358[_0x5b7a1e(0x1109)]=_0x7938aa,_0xc6b358['groupsToArray']=_0xcd5c04,_0xc6b358[_0x5b7a1e(0x1068)]=_0x5da414,_0xc6b358['toggleChat']=_0x50596c,_0xc6b358[_0x5b7a1e(0x512)]=_0x1565d9,_0x4113fe['on'](_0x5b7a1e(0xb56),_0x293213),_0x4113fe['on'](_0x5b7a1e(0x10d2),_0x2631d3),_0x4113fe['on'](_0x5b7a1e(0x18e0),_0x559329),_0x195794(_0x5b7a1e(0x1414))[_0x5b7a1e(0xa9d)](_0x460e7a);function _0x559329(_0xf68ba6){const _0x55c0f8=_0x5b7a1e;_0xc6b358[_0x55c0f8(0x482)][_0xf68ba6['id']]&&delete _0xc6b358[_0x55c0f8(0x482)][_0xf68ba6['id']];}function _0x2631d3(_0x34bb43){const _0x127f20=_0x5b7a1e;_0x34bb43[_0x127f20(0x5b1)]==_0xc6b358['currentUser']['id']&&_0x34bb43[_0x127f20(0xf96)]!==_0xc6b358[_0x127f20(0x2321)]['id']&&_0x34bb43[_0x127f20(0x1769)]&&_0x34bb43[_0x127f20(0x229e)]&&(_0xc6b358[_0x127f20(0x482)][_0x34bb43[_0x127f20(0x1769)]][_0x127f20(0x19c9)]>0x0&&_0xc6b358[_0x127f20(0x482)][_0x34bb43[_0x127f20(0x1769)]]['unreadGroupMessages']--,_0xc6b358[_0x127f20(0x1b12)]['messages'][_0x34bb43['id']]&&(_0xc6b358[_0x127f20(0x1b12)]['messages'][_0x34bb43['id']][_0x127f20(0x229e)]=!![]));}function _0x293213(_0x1f2d45){const _0x2f542e=_0x5b7a1e;if(!_0xc6b358[_0x2f542e(0x1b12)]&&_0x1f2d45['ToId']===_0xc6b358['currentUser']['id']&&_0x1f2d45[_0x2f542e(0xf96)]!==_0xc6b358['currentUser']['id']&&!_0x1f2d45[_0x2f542e(0x229e)]&&_0x1f2d45[_0x2f542e(0x1769)]){const _0x38731e=_0xc6b358[_0x2f542e(0x482)][_0x1f2d45[_0x2f542e(0x1769)]];if(_0x38731e)!_0x38731e[_0x2f542e(0x19c9)]&&(_0x38731e[_0x2f542e(0x19c9)]=0x0),_0x38731e['unreadGroupMessages']++;else return _0x54dcfb[_0x2f542e(0x1340)][_0x2f542e(0x16b4)]({'id':_0x1f2d45[_0x2f542e(0x1769)]})[_0x2f542e(0x2945)]['then'](function(_0x4c576f){const _0x4e2de5=_0x2f542e;_0x4c576f['unreadGroupMessages']=0x1,_0xc6b358[_0x4e2de5(0x482)][_0x4c576f['id']]=_0x4c576f;});}_0xc6b358[_0x2f542e(0x1b12)]&&_0x1f2d45['ChatGroupId']===_0xc6b358[_0x2f542e(0x1b12)]['id']&&_0x1f2d45[_0x2f542e(0x5b1)]===_0xc6b358['currentUser']['id']&&_0x54dcfb[_0x2f542e(0x1841)][_0x2f542e(0x18e1)]({'id':_0x1f2d45['id'],'read':!![]})['$promise'][_0x2f542e(0x146b)](function(){_0x5df917(_0x1f2d45);});}function _0x45086f(_0x2697e4){const _0x43c400=_0x5b7a1e;return _0xc6b358['license']=_0x2697e4,_0x54dcfb[_0x43c400(0xe7b)][_0x43c400(0x809)]({'id':_0xc6b358[_0x43c400(0x2321)]['id']})[_0x43c400(0x2945)][_0x43c400(0x146b)](function(_0x3e9f4c){const _0x120bb3=_0x43c400,_0x178a40=[];for(let _0x5ca1eb=0x0;_0x5ca1eb<_0x3e9f4c['rows'][_0x120bb3(0x402)];_0x5ca1eb++){_0x3e9f4c[_0x120bb3(0x19c7)][_0x5ca1eb][_0x120bb3(0x19c9)]=0x0,_0xc6b358['groups'][_0x3e9f4c[_0x120bb3(0x19c7)][_0x5ca1eb]['id']]=_0x3e9f4c[_0x120bb3(0x19c7)][_0x5ca1eb],_0x178a40[_0x120bb3(0x1f47)](_0x54dcfb[_0x120bb3(0x1340)][_0x120bb3(0x3c6)]({'id':_0x3e9f4c[_0x120bb3(0x19c7)][_0x5ca1eb]['id']})[_0x120bb3(0x2945)]);}return _0x37a646[_0x120bb3(0x1be2)](_0x178a40);})['then'](function(_0x2bdb2d){const _0x27850d=_0x43c400;for(let _0x2132c6=0x0;_0x2132c6<_0x2bdb2d[_0x27850d(0x402)];_0x2132c6++){_0xc6b358[_0x27850d(0x482)][_0x2bdb2d[_0x2132c6]['id']][_0x27850d(0x19c9)]+=_0x2bdb2d[_0x2132c6][_0x27850d(0x51c)];}})['catch'](function(_0x3b524a){const _0x6c7a54=_0x43c400;console[_0x6c7a54(0x1980)](_0x3b524a);});}function _0xcd5c04(){const _0x39cb06=_0x5b7a1e;return _0x3f65c0()['values'](_0xc6b358[_0x39cb06(0x482)]);}function _0x5da414(_0x2c4909,_0xaa9486){const _0x6d13ee=_0x5b7a1e;_0x4035c7[_0x6d13ee(0x2615)]({'controller':'ShowMessageInfoDialogController','controllerAs':'vm','templateUrl':_0x1a51a9,'parent':angular['element'](_0x3b748e[_0x6d13ee(0x2586)]),'targetEvent':_0x2c4909,'clickOutsideToClose':!![],'locals':{'message':_0xaa9486},'resolve':{'data':function(){const _0x182ab2=_0x6d13ee,_0x53f214={'messages':[]};return _0x54dcfb[_0x182ab2(0x1841)][_0x182ab2(0x16b4)]({'ChatInternalMessageId':_0xaa9486['id']})['$promise'][_0x182ab2(0x146b)](function(_0x112761){const _0x46a797=_0x182ab2,_0x4aea7d=[];_0x53f214['messages']=_0x112761['rows'],_0x53f214[_0x46a797(0x8ac)][_0x46a797(0xb3d)](_0xaa9486);for(let _0x1a48be=0x0;_0x1a48be<_0x53f214[_0x46a797(0x8ac)][_0x46a797(0x402)];_0x1a48be++){_0x4aea7d['push'](_0x54dcfb[_0x46a797(0xe7b)][_0x46a797(0x16b4)]({'id':_0x53f214[_0x46a797(0x8ac)][_0x1a48be][_0x46a797(0x5b1)],'fields':_0x46a797(0x266d)})[_0x46a797(0x2945)]);}return _0x37a646[_0x46a797(0x1be2)](_0x4aea7d);})['then'](function(_0x4c9ddf){const _0x3f42c0=_0x182ab2;return _0x53f214[_0x3f42c0(0x1995)]=_0x4c9ddf,_0x53f214;})['catch'](function(_0xf77436){const _0x2eac55=_0x182ab2;_0xf77436&&console[_0x2eac55(0x1980)](_0xf77436);});}}})[_0x6d13ee(0x146b)](function(){})[_0x6d13ee(0x129e)](function(_0x91185){const _0x85efdc=_0x6d13ee;_0x91185&&console[_0x85efdc(0x1980)](_0x91185['message']);});}function _0x1565d9(){const _0x307288=_0x5b7a1e;if(!_0xc6b358[_0x307288(0x1312)])return;const _0xa7c04b={'id':_0xc6b358[_0x307288(0x1b12)]['id'],'FromId':_0xc6b358[_0x307288(0x2321)]['id'],'ToId':_0xc6b358['currentUser']['id'],'body':_0xc6b358['replyMessage'],'read':!![]},_0x51912e=[];_0xc6b358[_0x307288(0x1312)]='',_0x54dcfb[_0x307288(0x1340)]['addMessage'](_0xa7c04b)[_0x307288(0x2945)][_0x307288(0x146b)](function(_0xbdef4c){const _0x1ff712=_0x307288;_0xa7c04b['read']=![],_0xa7c04b[_0x1ff712(0x70e)]=_0xbdef4c['id'];for(let _0x3066c3=0x0;_0x3066c3<_0xc6b358[_0x1ff712(0x1b12)][_0x1ff712(0x1910)][_0x1ff712(0x402)];_0x3066c3++){_0xc6b358[_0x1ff712(0x1b12)][_0x1ff712(0x1910)][_0x3066c3]['id']!==_0xc6b358[_0x1ff712(0x2321)]['id']&&(_0xa7c04b[_0x1ff712(0x5b1)]=_0xc6b358[_0x1ff712(0x1b12)]['members'][_0x3066c3]['id'],_0x51912e[_0x1ff712(0x1f47)](_0x54dcfb[_0x1ff712(0x1340)][_0x1ff712(0x220)](angular[_0x1ff712(0x235a)](_0xa7c04b))['$promise']));}return _0x37a646[_0x1ff712(0x1be2)](_0x51912e);})['catch'](function(_0x3625ae){const _0x2090e6=_0x307288;console[_0x2090e6(0x1a74)](_0x3625ae);});}function _0x5df917(_0x32e8f5){const _0x7c221c=_0x5b7a1e;_0xc6b358[_0x7c221c(0x1b12)][_0x7c221c(0x8ac)][_0x32e8f5['id']]=_0x32e8f5,_0x166d7c(0x190);}function _0x460e7a(){const _0x2aeab7=_0x5b7a1e;delete _0xc6b358[_0x2aeab7(0x1b12)];}function _0x166d7c(_0x591ac2){const _0x328185=_0x5b7a1e,_0xb3e332=angular[_0x328185(0x1853)]('#chat-group-dialog');_0x460b08(function(){const _0x15bd5e=_0x328185;_0xb3e332['animate']({'scrollTop':_0xb3e332[0x0][_0x15bd5e(0x9d4)]},_0x591ac2);},0x0);}function _0x50596c(_0x2fabd1){const _0x3e73d6=_0x5b7a1e;_0xc6b358[_0x3e73d6(0x1b12)]={'id':_0x2fabd1['id'],'write':_0x2fabd1['write'],'messages':{}},_0x54dcfb['chatGroup'][_0x3e73d6(0x24c3)]({'id':_0x2fabd1['id'],'fields':_0x3e73d6(0x12bf)})[_0x3e73d6(0x2945)][_0x3e73d6(0x146b)](function(_0x34d918){const _0x3f9fad=_0x3e73d6;return _0xc6b358[_0x3f9fad(0x1b12)][_0x3f9fad(0x2476)]=_0x3f65c0()['keyBy'](_0x34d918['rows'],'id'),_0xc6b358[_0x3f9fad(0x1b12)][_0x3f9fad(0x1910)]=_0x3f65c0()['differenceBy'](_0x34d918[_0x3f9fad(0x19c7)],[{'id':_0xc6b358[_0x3f9fad(0x2321)]['id']}],'id'),_0xc6b358[_0x3f9fad(0x1f4b)]=_0x3f65c0()['map'](_0xc6b358['group'][_0x3f9fad(0x1910)],'fullname')[_0x3f9fad(0xb47)](',\x20'),_0x54dcfb['chatGroup'][_0x3f9fad(0x1c0f)]({'id':_0x2fabd1['id'],'nolimit':!![]})[_0x3f9fad(0x2945)];})[_0x3e73d6(0x146b)](function(_0xffa5de){const _0x4d8003=_0x3e73d6,_0x3acc3f=[];let _0x502340;for(let _0x1f7a17=0x0;_0x1f7a17<_0xffa5de[_0x4d8003(0x51c)];_0x1f7a17++){_0xffa5de['rows'][_0x1f7a17]['ToId']===_0xc6b358['currentUser']['id']&&(_0x502340=_0xffa5de['rows'][_0x1f7a17],_0xc6b358[_0x4d8003(0x1b12)][_0x4d8003(0x8ac)][_0x502340['id']]=_0x502340,_0xffa5de['rows'][_0x1f7a17][_0x4d8003(0x5b1)]==_0xc6b358['currentUser']['id']&&_0xffa5de[_0x4d8003(0x19c7)][_0x1f7a17][_0x4d8003(0xf96)]!==_0xc6b358['currentUser']['id']&&!_0x502340['read']&&_0x3acc3f[_0x4d8003(0x1f47)](_0x54dcfb[_0x4d8003(0x1841)][_0x4d8003(0x18e1)]({'id':_0x502340['id'],'read':!![]})));}return _0x37a646['all'](_0x3acc3f);})[_0x3e73d6(0x146b)](function(){_0x166d7c(0x190);})[_0x3e73d6(0x129e)](function(_0x21b130){const _0x3a238f=_0x3e73d6;console[_0x3a238f(0x1980)](_0x21b130[_0x3a238f(0x7fd)]);});}function _0x7938aa(_0x25959b,_0x204427){const _0x2cc5da=_0x5b7a1e,_0x28627c=_0x4035c7[_0x2cc5da(0x1e8a)]()[_0x2cc5da(0x1189)](_0x2cc5da(0x16e7))[_0x2cc5da(0x1cbe)]('Group\x20'+_0x25959b[_0x2cc5da(0x19eb)]+''+_0x2cc5da(0xe01))['ariaLabel'](_0x2cc5da(0x2917))[_0x2cc5da(0x1f27)](_0x204427)['ok']('OK')['cancel'](_0x2cc5da(0x39a));_0x4035c7[_0x2cc5da(0x2615)](_0x28627c)[_0x2cc5da(0x146b)](function(){const _0x3d69e2=_0x2cc5da;return _0x54dcfb[_0x3d69e2(0x1340)]['delete']({'id':_0x25959b['id']})[_0x3d69e2(0x2945)];})[_0x2cc5da(0x146b)](function(){const _0x4106f1=_0x2cc5da;delete _0xc6b358[_0x4106f1(0x482)][_0x25959b['id']],_0x407f1f[_0x4106f1(0x1c75)]({'title':_0x4106f1(0x2356),'msg':_0x25959b[_0x4106f1(0x19eb)]+_0x4106f1(0x23e3)});})['catch'](function(_0x59907e){const _0x366929=_0x2cc5da;_0x59907e&&_0x407f1f[_0x366929(0x1980)]({'title':_0x59907e[_0x366929(0x107b)]?_0x366929(0x262a)+_0x59907e[_0x366929(0x107b)]+_0x366929(0x1315)+_0x59907e[_0x366929(0x167f)]:'api.chatGroup.delete','msg':_0x59907e[_0x366929(0x524)]?JSON['stringify'](_0x59907e[_0x366929(0x524)][_0x366929(0x7fd)]):_0x59907e[_0x366929(0xd5f)]()});});}function _0x57bc50(_0x1d614a,_0x8d1167){const _0x1edf0e=_0x5b7a1e;_0x4035c7['show']({'controller':_0x1edf0e(0x2368),'controllerAs':'vm','templateUrl':_0x4f134c,'parent':angular[_0x1edf0e(0x1853)](_0x3b748e[_0x1edf0e(0x2586)]),'targetEvent':_0x8d1167,'clickOutsideToClose':!![],'locals':{'group':_0x1d614a,'me':_0xc6b358[_0x1edf0e(0x2321)],'license':null,'setting':null},'resolve':{'members':function(){const _0x181eeb=_0x1edf0e;return _0x17f035[_0x181eeb(0x23e0)]('admin')?_0x54dcfb[_0x181eeb(0xe7b)][_0x181eeb(0x16b4)]({'role':_0x181eeb(0x1755)})['$promise']:_0x54dcfb[_0x181eeb(0x26b6)][_0x181eeb(0x158f)]({'id':_0x17f035[_0x181eeb(0xb12)]()[_0x181eeb(0x209a)],'section':_0x181eeb(0xca8),'role':_0x181eeb(0x1755)})['$promise'];}}})[_0x1edf0e(0x146b)](function(_0x3e4446){_0x3e4446&&(_0xc6b358['groups'][_0x3e4446['id']]=_0x3e4446);})[_0x1edf0e(0x129e)](function(_0x138393){const _0x872bd8=_0x1edf0e;_0x138393&&console[_0x872bd8(0x1980)](_0x138393[_0x872bd8(0x7fd)]);});}_0x49f0d8[_0x5b7a1e(0x16ad)](_0x5b7a1e(0x116f),function(){const _0x3eb11b=_0x5b7a1e;_0x4113fe['removeAllListeners'](_0x3eb11b(0xb56)),_0x4113fe[_0x3eb11b(0x1c5f)](_0x3eb11b(0x10d2)),_0x4113fe['removeAllListeners'](_0x3eb11b(0x18e0));});}const _0x22405c=_0x3b9923;;_0x5e17d5[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1862),_0x313a4d(0xd08),_0x313a4d(0x10e8),_0x313a4d(0x1fe4),'api',_0x313a4d(0xa87),_0x313a4d(0x524)];function _0x5e17d5(_0x3f8df8,_0x61352d,_0x54acac,_0x2ba876,_0x20b9d9,_0x486e5a,_0x2b9d57,_0x24642c){const _0x18fb46=_0x313a4d,_0x3c6f90=this;_0x3c6f90[_0x18fb46(0x524)]=_0x24642c,_0x3c6f90['title']='QUICKPANEL.INFO';function _0x2c216c(){const _0x164ac1=_0x18fb46;_0x2ba876[_0x164ac1(0x2458)]();}_0x3c6f90['closeDialog']=_0x2c216c;}const _0x6a7e5c=_0x5e17d5;;_0x590a72[_0x313a4d(0x11c2)]=[_0x313a4d(0x695)];function _0x590a72(_0x516bdb){const _0x1d275b=_0x313a4d;_0x516bdb[_0x1d275b(0x15bf)]('app/quick-panel');}angular[_0x313a4d(0x2528)](_0x313a4d(0xe87),[])['config'](_0x590a72)[_0x313a4d(0x28f0)](_0x313a4d(0xf1b),_0x68ca83)[_0x313a4d(0x28f0)](_0x313a4d(0x209f),_0x45eec4)[_0x313a4d(0x28f0)](_0x313a4d(0x2368),_0x45f675)[_0x313a4d(0x28f0)](_0x313a4d(0xed0),_0x22405c)[_0x313a4d(0x28f0)](_0x313a4d(0x2a2),_0x6a7e5c);;_0x5874ec[_0x313a4d(0x11c2)]=[_0x313a4d(0xa87),_0x313a4d(0x23df)];function _0x5874ec(_0x570ab,_0x443596){const _0x53beeb=_0x313a4d,_0x1447b3=this;function _0x54872b(){const _0x5a9378=a0_0x3bb9;_0x443596[_0x5a9378(0x17b7)](_0x5a9378(0xbed)+_0x1447b3[_0x5a9378(0x2321)]['id'],!![]);}_0x1447b3[_0x53beeb(0x2321)]=_0x570ab['getCurrentUser'](),_0x1447b3['newsAlertHide']=_0x443596[_0x53beeb(0x16b4)](_0x53beeb(0xbed)+_0x1447b3['currentUser']['id'])||![],_0x1447b3[_0x53beeb(0x1857)]=_0x54872b;}const _0x37b879=_0x5874ec;;_0x49373e[_0x313a4d(0x11c2)]=[_0x313a4d(0x695)];function _0x49373e(_0x5baa78){const _0x58830f=_0x313a4d;_0x5baa78[_0x58830f(0x15bf)](_0x58830f(0x108c));}angular[_0x313a4d(0x2528)]('app.header',[])['config'](_0x49373e)['controller'](_0x313a4d(0x1969),_0x37b879);;_0x504331[_0x313a4d(0x11c2)]=[_0x313a4d(0xa87),_0x313a4d(0x23df)];function _0x504331(_0x219e1a,_0x243787){const _0x53ed03=_0x313a4d,_0x10313e=this;function _0x3a307d(){const _0x5dfa4e=a0_0x3bb9;_0x243787[_0x5dfa4e(0x17b7)](_0x5dfa4e(0x1c5a)+_0x10313e[_0x5dfa4e(0x2321)]['id'],!![]);}_0x10313e['currentUser']=_0x219e1a['getCurrentUser'](),_0x10313e[_0x53ed03(0xfbb)]=_0x243787[_0x53ed03(0x16b4)](_0x53ed03(0x1c5a)+_0x10313e[_0x53ed03(0x2321)]['id'])||![],_0x10313e[_0x53ed03(0x1a07)]=_0x3a307d;}const _0x1bef37=_0x504331;;_0x5d359b[_0x313a4d(0x11c2)]=[_0x313a4d(0x695)];function _0x5d359b(_0x4c9839){const _0x58679c=_0x313a4d;_0x4c9839['addPart'](_0x58679c(0xb89));}angular['module']('app.footer',[])[_0x313a4d(0x989)](_0x5d359b)[_0x313a4d(0x28f0)]('FooterController',_0x1bef37);var _0x34a9a0=_0x4acfac(0x1cbe),_0x5d76c7=_0x4acfac(0x2303),_0x19b3e0=_0x4acfac(0xde6),_0x4d9086=_0x4acfac(0x321),_0x2184cc=_0x4acfac(0x1c92),_0x3858f4=_0x4acfac(0x2361),_0x474f48=_0x4acfac(0xdd5),_0x52611e=_0x4acfac(0x9d6),_0x2d97ca=_0x4acfac(0x20aa),_0x23ea04=_0x4acfac(0x1ac1),_0x5793b3=_0x4acfac(0x15c3),_0x27ff47=_0x4acfac(0x154a),_0x3deb7f=_0x4acfac(0x2154),_0x597a73=_0x4acfac(0x23a1),_0x104be4=_0x4acfac(0xa7c),_0x5ab9e9=_0x4acfac(0x1eaf),_0x843c31=_0x4acfac(0x444),_0x491f49=_0x4acfac(0x1c4),_0x453051=_0x4acfac(0x121a),_0x1d6590=_0x4acfac(0x1be),_0x18d917=_0x4acfac(0xd3e);;const _0x5c97d6=_0x4acfac['p']+_0x313a4d(0x2896);;const _0x57509d=_0x4acfac['p']+_0x313a4d(0x1cc6);;const _0x7fb38f=_0x4acfac['p']+_0x313a4d(0x1e6a);;const _0x5bcc79=_0x4acfac['p']+_0x313a4d(0xf34);;const _0x3072e7=_0x4acfac['p']+_0x313a4d(0x2666);;const _0x2c3ae5=_0x4acfac['p']+'src/js/modules/main/apps/dashboards/views/general/user/openchannel/user.general.openchannel.html/user.general.openchannel.html';;const _0xb15ad6=_0x4acfac['p']+_0x313a4d(0x1584);;const _0x1f2a38=_0x4acfac['p']+'src/js/modules/main/apps/dashboards/views/general/user/whatsapp/user.general.whatsapp.html/user.general.whatsapp.html';;_0xc86927[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x279d),'chatInteractions',_0x313a4d(0x2710)];function _0xc86927(_0x1a4892,_0x2bc88a,_0x3ef216,_0x146143){const _0x1e1dde=_0x313a4d,_0x34ce58=this,_0x1916d5=[];_0x34ce58['config']={'format':'hh:mm:ss','unit':_0x1e1dde(0xcf5),'trim':![]},_0x34ce58['inbound']={'waiting':0x0,'talking':0x0,'answered':0x0,'abandoned':0x0,'unmanaged':0x0,'sumHoldTime':0x0,'sumBillable':0x0,'total':0x0,'avgHoldTime':_0x1e1dde(0x169a),'avgTalkTime':_0x1e1dde(0x169a),'answerRate':0x0,'abandonRate':0x0},_0x34ce58[_0x1e1dde(0x2710)]=_0x146143?_0x3f65c0()[_0x1e1dde(0x194)](_0x146143['rows']?_0x146143[_0x1e1dde(0x19c7)]:[],'id'):{},_0x34ce58[_0x1e1dde(0x21fa)]=_0x26a369,_0x34ce58['onUpdateChatInteraction']=_0x3169a3,_0x2bc88a['on'](_0x1e1dde(0x1284),_0x34ce58[_0x1e1dde(0x21fa)]),_0x2bc88a['on'](_0x1e1dde(0xcd1),_0x34ce58[_0x1e1dde(0xd44)]),_0x188635();function _0x46f55e(_0x3745e8,_0x51afa7){const _0x13fb83=_0x1e1dde;!_0x3745e8[_0x13fb83(0x1943)]&&!_0x3745e8[_0x13fb83(0xea2)]&&_0x51afa7&&(_0x34ce58[_0x13fb83(0x7b0)]['waiting']+=0x1);!_0x3745e8['closed']&&_0x3745e8[_0x13fb83(0xea2)]&&!_0x3f65c0()['includes'](_0x1916d5,_0x3745e8['id'])&&(_0x34ce58['inbound'][_0x13fb83(0x10ed)]+=0x1,_0x1916d5[_0x13fb83(0x1f47)](_0x3745e8['id']),!_0x51afa7&&_0x34ce58[_0x13fb83(0x7b0)][_0x13fb83(0x12a3)]&&(_0x34ce58[_0x13fb83(0x7b0)][_0x13fb83(0x12a3)]-=0x1));if(_0x3745e8[_0x13fb83(0x1943)]&&_0x3745e8['disposition']===_0x13fb83(0x521))_0x34ce58[_0x13fb83(0x7b0)]['abandoned']+=0x1,!_0x51afa7&&_0x34ce58[_0x13fb83(0x7b0)][_0x13fb83(0x12a3)]&&(_0x34ce58[_0x13fb83(0x7b0)]['waiting']-=0x1);else{if(_0x3745e8['closed']&&!_0x3745e8['UserId']&&_0x3745e8[_0x13fb83(0x9e1)])_0x34ce58[_0x13fb83(0x7b0)][_0x13fb83(0x2389)]+=0x1,!_0x51afa7&&_0x34ce58[_0x13fb83(0x7b0)][_0x13fb83(0x12a3)]&&(_0x34ce58[_0x13fb83(0x7b0)]['waiting']-=0x1);else _0x3745e8['closed']&&_0x3745e8[_0x13fb83(0xea2)]&&(_0x34ce58[_0x13fb83(0x7b0)][_0x13fb83(0x2761)]+=_0x2deec6()(_0x3745e8[_0x13fb83(0xc73)])['diff'](_0x2deec6()(_0x3745e8[_0x13fb83(0x801)]),_0x34ce58['config'][_0x13fb83(0x2408)]),_0x34ce58[_0x13fb83(0x7b0)][_0x13fb83(0x1098)]+=_0x2deec6()(_0x3745e8[_0x13fb83(0x801)])[_0x13fb83(0x1bb5)](_0x2deec6()(_0x3745e8[_0x13fb83(0xc68)]),_0x34ce58[_0x13fb83(0x989)]['unit']),_0x34ce58[_0x13fb83(0x7b0)]['answered']+=0x1,!_0x51afa7&&_0x34ce58[_0x13fb83(0x7b0)][_0x13fb83(0x10ed)]&&(_0x34ce58['inbound'][_0x13fb83(0x10ed)]-=0x1));}_0x51afa7&&(_0x34ce58[_0x13fb83(0x7b0)][_0x13fb83(0x2877)]+=0x1);}function _0x4c28e5(){const _0x59db60=_0x1e1dde;_0x34ce58[_0x59db60(0x7b0)]['abandonRate']=Math['round']((_0x34ce58[_0x59db60(0x7b0)][_0x59db60(0x521)]+_0x34ce58[_0x59db60(0x7b0)][_0x59db60(0x2389)])/(_0x34ce58['inbound'][_0x59db60(0x2877)]-_0x34ce58[_0x59db60(0x7b0)][_0x59db60(0x10ed)]-_0x34ce58['inbound'][_0x59db60(0x12a3)])*0x64,-0x2),_0x34ce58[_0x59db60(0x7b0)][_0x59db60(0x11f1)]=Math[_0x59db60(0x15dc)](_0x34ce58['inbound'][_0x59db60(0x23c3)]/(_0x34ce58['inbound'][_0x59db60(0x2877)]-_0x34ce58[_0x59db60(0x7b0)][_0x59db60(0x10ed)]-_0x34ce58[_0x59db60(0x7b0)][_0x59db60(0x12a3)])*0x64,-0x2),_0x34ce58[_0x59db60(0x7b0)]['avgHoldTime']=_0x2deec6()[_0x59db60(0x11cc)](Math[_0x59db60(0x15dc)](_0x34ce58[_0x59db60(0x7b0)][_0x59db60(0x1098)]/_0x34ce58[_0x59db60(0x7b0)]['answered']),_0x34ce58[_0x59db60(0x989)][_0x59db60(0x2408)])[_0x59db60(0x22b0)](_0x34ce58['config'][_0x59db60(0x22b0)],_0x34ce58['config']),_0x34ce58['inbound'][_0x59db60(0x1112)]=_0x2deec6()[_0x59db60(0x11cc)](Math['round'](_0x34ce58[_0x59db60(0x7b0)][_0x59db60(0x2761)]/_0x34ce58[_0x59db60(0x7b0)][_0x59db60(0x23c3)]),_0x34ce58[_0x59db60(0x989)][_0x59db60(0x2408)])[_0x59db60(0x22b0)](_0x34ce58[_0x59db60(0x989)][_0x59db60(0x22b0)],_0x34ce58['config']);}function _0x188635(){const _0x1514e8=_0x1e1dde;if(Object['keys'](_0x34ce58[_0x1514e8(0x2710)])['length']>0x0)for(let _0xc2663e=0x0;_0xc2663e<_0x3ef216[_0x1514e8(0x19c7)][_0x1514e8(0x402)];_0xc2663e+=0x1){if(_0x5501eb(_0x3ef216['rows'][_0xc2663e])){const _0x40e1ee=_0x3ef216[_0x1514e8(0x19c7)][_0xc2663e];_0x46f55e(_0x40e1ee,!![]),_0x4c28e5();}}}function _0x5501eb(_0x187e0b){const _0x6f087=_0x1e1dde;if(_0x3f65c0()[_0x6f087(0x1360)](_0x34ce58[_0x6f087(0x2710)],{'id':_0x3f65c0()[_0x6f087(0x123)](_0x187e0b[_0x6f087(0x1d92)])}))return!![];return![];}function _0x2554c7(_0x12bcfc){const _0x5ac45b=_0x1e1dde,_0x529dd7=_0x2deec6()()[_0x5ac45b(0x65f)](0x0,!![])[_0x5ac45b(0x1fcc)](_0x5ac45b(0x1066)),_0x5730e8=_0x2deec6()()[_0x5ac45b(0x65f)](0x0,!![])[_0x5ac45b(0x824)](_0x5ac45b(0x1066));return _0x2deec6()(_0x12bcfc)[_0x5ac45b(0x65f)](0x0,!![])[_0x5ac45b(0xb87)](_0x529dd7,_0x5730e8);}function _0x26a369(_0x534941){const _0xd6b892=_0x1e1dde;_0x5501eb(_0x534941)&&_0x2554c7(_0x534941[_0xd6b892(0xc68)])&&(_0x46f55e(_0x534941,!![]),_0x4c28e5());}function _0x3169a3(_0x4c36da){const _0x411b07=_0x1e1dde;_0x5501eb(_0x4c36da)&&_0x2554c7(_0x4c36da[_0x411b07(0xc68)])&&(_0x46f55e(_0x4c36da,![]),_0x4c28e5());}_0x1a4892[_0x1e1dde(0x16ad)](_0x1e1dde(0x116f),function(){const _0x1eacff=_0x1e1dde;_0x2bc88a[_0x1eacff(0x1c5f)](_0x1eacff(0x1284)),_0x2bc88a['removeAllListeners']('chatInteraction:update');});}const _0x4cabdf=_0xc86927;;_0x1fde2b[_0x313a4d(0x11c2)]=['$scope','$interval',_0x313a4d(0x279d),'outboundQueues',_0x313a4d(0x21af),_0x313a4d(0x128f),_0x313a4d(0x1882),_0x313a4d(0x163)];function _0x1fde2b(_0x55f4ae,_0x2ee65a,_0x52649c,_0x9aed9b,_0x47fe3d,_0x48f07d,_0x515799,_0x14048d){const _0x3f8e2c=_0x313a4d,_0x14819d=this;_0x14819d[_0x3f8e2c(0x1a83)]=_0x9aed9b?_0x3f65c0()[_0x3f8e2c(0x194)](_0x9aed9b[_0x3f8e2c(0x19c7)]?_0x9aed9b[_0x3f8e2c(0x19c7)]:[],'id'):{},_0x14819d[_0x3f8e2c(0x21af)]=_0x47fe3d?_0x3f65c0()[_0x3f8e2c(0x194)](_0x47fe3d[_0x3f8e2c(0x19c7)]?_0x47fe3d[_0x3f8e2c(0x19c7)]:[],'id'):{},_0x14819d['rpcCampaigns']=_0x14048d?_0x3f65c0()[_0x3f8e2c(0x194)](_0x14048d['rows']?_0x14048d[_0x3f8e2c(0x19c7)]:[],'id'):{},_0x14819d[_0x3f8e2c(0x1f0)]={'originated':0x0,'limitCalls':0x0},_0x14819d[_0x3f8e2c(0x7b0)]={'waiting':0x0,'talking':0x0,'pTalking':0x0,'answered':0x0,'abandoned':0x0,'unmanaged':0x0,'sumHoldTime':0x0,'sumBillable':0x0,'total':0x0,'avgHoldTime':_0x3f8e2c(0x169a),'avgTalkTime':_0x3f8e2c(0x169a),'answerRate':0x0,'abandonRate':0x0,'outboundDropCallsDayCallersExit':0x0,'outboundDropCallsDayTimeout':0x0},_0x14819d[_0x3f8e2c(0x2606)]=_0x10d5b4,_0x14819d[_0x3f8e2c(0x12a6)]=_0x5239fb,_0x52649c[_0x3f8e2c(0x13b7)]('voice_queue:save',_0x14819d[_0x3f8e2c(0x2606)]),_0x14819d['interval']=_0x2ee65a(function(){_0x409bd2(),_0x413aa7();},0x3e7),_0x52649c[_0x3f8e2c(0x13b7)](_0x3f8e2c(0x1d5e),_0x14819d[_0x3f8e2c(0x12a6)]),_0x409bd2(),_0x413aa7();function _0x409bd2(){const _0x37e6d7=_0x3f8e2c;_0x48f07d({'queues':_0x14819d[_0x37e6d7(0x1a83)],'rpcQueues':_0x14819d[_0x37e6d7(0x21af)]})[_0x37e6d7(0x146b)](function(_0x250c4a){_0x14819d['inbound']=_0x250c4a;});}function _0x413aa7(){const _0xfb223e=_0x3f8e2c;_0x515799({'rpcCampaigns':_0x14819d['rpcCampaigns']})[_0xfb223e(0x146b)](function(_0x53f68c){const _0xac3f4f=_0xfb223e;_0x14819d[_0xac3f4f(0x1f0)]=_0x53f68c;});}function _0x10d5b4(_0x276942){const _0x3f0975=_0x3f8e2c;_0x14819d[_0x3f0975(0x1a83)][_0x276942['id']]&&(_0x14819d[_0x3f0975(0x21af)][_0x276942['id']]&&(_0x14819d['rpcQueues'][_0x276942['id']]=_0x276942));}function _0x5239fb(_0x3adc1a){const _0x323060=_0x3f8e2c;_0x14819d[_0x323060(0x163)][_0x3adc1a['id']]&&(_0x14819d['rpcCampaigns'][_0x3adc1a['id']]=_0x3adc1a);}_0x55f4ae['$on'](_0x3f8e2c(0x116f),function(){const _0x5d2b34=_0x3f8e2c;_0x52649c[_0x5d2b34(0x1c5f)](_0x5d2b34(0x101d)),_0x52649c[_0x5d2b34(0x1c5f)](_0x5d2b34(0x1d5e)),_0x14819d['interval']&&_0x2ee65a['cancel'](_0x14819d[_0x5d2b34(0x2765)]);});}const _0x271689=_0x1fde2b;;_0x38a48d[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x279d),_0x313a4d(0x1938),'faxAccounts'];function _0x38a48d(_0x418ee2,_0x2ac84e,_0x43f432,_0x120645){const _0xaa96c7=_0x313a4d,_0x256659=this,_0x242fa9=[];_0x256659[_0xaa96c7(0x989)]={'format':'hh:mm:ss','unit':_0xaa96c7(0xcf5),'trim':![]},_0x256659[_0xaa96c7(0x7b0)]={'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},_0x256659[_0xaa96c7(0x8a9)]=_0x120645?_0x3f65c0()[_0xaa96c7(0x194)](_0x120645[_0xaa96c7(0x19c7)]?_0x120645['rows']:[],'id'):{},_0x256659[_0xaa96c7(0x15a)]=_0x4da5bc,_0x256659[_0xaa96c7(0x2547)]=_0x579fc0,_0x2ac84e['on'](_0xaa96c7(0x180a),_0x256659[_0xaa96c7(0x15a)]),_0x2ac84e['on'](_0xaa96c7(0x1bb8),_0x256659[_0xaa96c7(0x2547)]),_0x287349();function _0x17fee3(_0x13d3a8,_0x34d2f9){const _0x2e9fe7=_0xaa96c7;!_0x13d3a8[_0x2e9fe7(0x1943)]&&!_0x13d3a8[_0x2e9fe7(0xea2)]&&_0x34d2f9&&(_0x256659[_0x2e9fe7(0x7b0)]['waiting']+=0x1),!_0x13d3a8[_0x2e9fe7(0x1943)]&&_0x13d3a8[_0x2e9fe7(0xea2)]&&!_0x3f65c0()[_0x2e9fe7(0xa4e)](_0x242fa9,_0x13d3a8['id'])&&(_0x256659[_0x2e9fe7(0x7b0)][_0x2e9fe7(0x10ed)]+=0x1,_0x242fa9[_0x2e9fe7(0x1f47)](_0x13d3a8['id']),!_0x34d2f9&&_0x256659[_0x2e9fe7(0x7b0)][_0x2e9fe7(0x12a3)]&&(_0x256659[_0x2e9fe7(0x7b0)][_0x2e9fe7(0x12a3)]-=0x1)),_0x13d3a8['closed']&&_0x13d3a8[_0x2e9fe7(0xea2)]&&(_0x256659[_0x2e9fe7(0x7b0)][_0x2e9fe7(0x2761)]+=_0x2deec6()(_0x13d3a8[_0x2e9fe7(0xc73)])[_0x2e9fe7(0x1bb5)](_0x2deec6()(_0x13d3a8[_0x2e9fe7(0x801)]),_0x256659['config'][_0x2e9fe7(0x2408)]),_0x256659['inbound'][_0x2e9fe7(0x1098)]+=_0x2deec6()(_0x13d3a8[_0x2e9fe7(0x801)])[_0x2e9fe7(0x1bb5)](_0x2deec6()(_0x13d3a8[_0x2e9fe7(0xc68)]),_0x256659[_0x2e9fe7(0x989)][_0x2e9fe7(0x2408)]),_0x256659[_0x2e9fe7(0x7b0)][_0x2e9fe7(0x23c3)]+=0x1,!_0x34d2f9&&_0x256659[_0x2e9fe7(0x7b0)][_0x2e9fe7(0x10ed)]&&(_0x256659[_0x2e9fe7(0x7b0)][_0x2e9fe7(0x10ed)]-=0x1)),_0x13d3a8[_0x2e9fe7(0x1943)]&&!_0x13d3a8[_0x2e9fe7(0xea2)]&&(_0x256659[_0x2e9fe7(0x7b0)][_0x2e9fe7(0x2389)]+=0x1,!_0x34d2f9&&_0x256659[_0x2e9fe7(0x7b0)][_0x2e9fe7(0x12a3)]&&(_0x256659['inbound'][_0x2e9fe7(0x12a3)]-=0x1)),_0x34d2f9&&(_0x256659[_0x2e9fe7(0x7b0)]['total']+=0x1);}function _0x282b70(){const _0x49c885=_0xaa96c7;_0x256659[_0x49c885(0x7b0)]['abandonRate']=Math['round']((_0x256659[_0x49c885(0x7b0)]['abandoned']+_0x256659[_0x49c885(0x7b0)][_0x49c885(0x2389)])/(_0x256659[_0x49c885(0x7b0)][_0x49c885(0x2877)]-_0x256659['inbound']['talking']-_0x256659[_0x49c885(0x7b0)]['waiting'])*0x64,-0x2),_0x256659[_0x49c885(0x7b0)][_0x49c885(0x11f1)]=Math['round'](_0x256659[_0x49c885(0x7b0)][_0x49c885(0x23c3)]/(_0x256659[_0x49c885(0x7b0)][_0x49c885(0x2877)]-_0x256659[_0x49c885(0x7b0)][_0x49c885(0x10ed)]-_0x256659[_0x49c885(0x7b0)][_0x49c885(0x12a3)])*0x64,-0x2),_0x256659[_0x49c885(0x7b0)][_0x49c885(0x1a7b)]=_0x2deec6()[_0x49c885(0x11cc)](Math[_0x49c885(0x15dc)](_0x256659[_0x49c885(0x7b0)][_0x49c885(0x1098)]/_0x256659[_0x49c885(0x7b0)][_0x49c885(0x23c3)]),_0x256659['config'][_0x49c885(0x2408)])[_0x49c885(0x22b0)](_0x256659[_0x49c885(0x989)][_0x49c885(0x22b0)],_0x256659['config']),_0x256659[_0x49c885(0x7b0)][_0x49c885(0x1112)]=_0x2deec6()[_0x49c885(0x11cc)](Math[_0x49c885(0x15dc)](_0x256659['inbound'][_0x49c885(0x2761)]/_0x256659[_0x49c885(0x7b0)][_0x49c885(0x23c3)]),_0x256659[_0x49c885(0x989)]['unit'])['format'](_0x256659[_0x49c885(0x989)][_0x49c885(0x22b0)],_0x256659[_0x49c885(0x989)]);}function _0x287349(){const _0x52edb5=_0xaa96c7;if(Object['keys'](_0x256659[_0x52edb5(0x8a9)])[_0x52edb5(0x402)]>0x0)for(let _0x25bdc1=0x0;_0x25bdc1<_0x43f432[_0x52edb5(0x19c7)][_0x52edb5(0x402)];_0x25bdc1+=0x1){if(_0x547ccc(_0x43f432[_0x52edb5(0x19c7)][_0x25bdc1])){const _0x3acd03=_0x43f432[_0x52edb5(0x19c7)][_0x25bdc1];_0x17fee3(_0x3acd03,!![]),_0x282b70();}}}function _0x547ccc(_0x50db81){const _0x19fbc3=_0xaa96c7;if(_0x3f65c0()[_0x19fbc3(0x1360)](_0x256659[_0x19fbc3(0x8a9)],{'id':_0x3f65c0()[_0x19fbc3(0x123)](_0x50db81[_0x19fbc3(0x74d)])}))return!![];return![];}function _0x150f0c(_0x96ce88){const _0x5c063c=_0xaa96c7,_0x2361f7=_0x2deec6()()[_0x5c063c(0x65f)](0x0,!![])[_0x5c063c(0x1fcc)](_0x5c063c(0x1066)),_0x4c4080=_0x2deec6()()['utcOffset'](0x0,!![])[_0x5c063c(0x824)](_0x5c063c(0x1066));return _0x2deec6()(_0x96ce88)[_0x5c063c(0x65f)](0x0,!![])[_0x5c063c(0xb87)](_0x2361f7,_0x4c4080);}function _0x4da5bc(_0x329b8e){const _0x4368e6=_0xaa96c7;_0x547ccc(_0x329b8e)&&_0x150f0c(_0x329b8e[_0x4368e6(0xc68)])&&(_0x17fee3(_0x329b8e,!![]),_0x282b70());}function _0x579fc0(_0x4b2481){const _0x2ef096=_0xaa96c7;_0x547ccc(_0x4b2481)&&_0x150f0c(_0x4b2481[_0x2ef096(0xc68)])&&(_0x17fee3(_0x4b2481,![]),_0x282b70());}_0x418ee2[_0xaa96c7(0x16ad)](_0xaa96c7(0x116f),function(){const _0x53bc2f=_0xaa96c7;_0x2ac84e[_0x53bc2f(0x1c5f)]('faxInteraction:save'),_0x2ac84e[_0x53bc2f(0x1c5f)](_0x53bc2f(0x1bb8));});}const _0x4466d7=_0x38a48d;;_0x218c86['$inject']=['$scope',_0x313a4d(0x279d),_0x313a4d(0x1250),_0x313a4d(0x1593)];function _0x218c86(_0xf8dcf1,_0x15d668,_0x448070,_0x4dc701){const _0x167910=_0x313a4d,_0x20b00d=this,_0x2a4691=[];_0x20b00d[_0x167910(0x989)]={'format':_0x167910(0x84f),'unit':_0x167910(0xcf5),'trim':![]},_0x20b00d[_0x167910(0x7b0)]={'waiting':0x0,'talking':0x0,'answered':0x0,'abandoned':0x0,'unmanaged':0x0,'sumHoldTime':0x0,'sumBillable':0x0,'total':0x0,'avgHoldTime':_0x167910(0x169a),'avgTalkTime':_0x167910(0x169a),'answerRate':0x0,'abandonRate':0x0},_0x20b00d[_0x167910(0x1593)]=_0x4dc701?_0x3f65c0()[_0x167910(0x194)](_0x4dc701[_0x167910(0x19c7)]?_0x4dc701[_0x167910(0x19c7)]:[],'id'):{},_0x20b00d[_0x167910(0x2379)]=_0x4c4afc,_0x20b00d[_0x167910(0xc52)]=_0x1606f4,_0x15d668['on']('mailInteraction:save',_0x20b00d[_0x167910(0x2379)]),_0x15d668['on'](_0x167910(0xb1d),_0x20b00d[_0x167910(0xc52)]),_0x1efae1();function _0x29bac6(_0x1ffb86,_0x1d16ee){const _0x2db67b=_0x167910;!_0x1ffb86[_0x2db67b(0x1943)]&&!_0x1ffb86[_0x2db67b(0xea2)]&&_0x1d16ee&&(_0x20b00d['inbound'][_0x2db67b(0x12a3)]+=0x1),!_0x1ffb86['closed']&&_0x1ffb86[_0x2db67b(0xea2)]&&!_0x3f65c0()['includes'](_0x2a4691,_0x1ffb86['id'])&&(_0x20b00d['inbound'][_0x2db67b(0x10ed)]+=0x1,_0x2a4691[_0x2db67b(0x1f47)](_0x1ffb86['id']),!_0x1d16ee&&_0x20b00d[_0x2db67b(0x7b0)]['waiting']&&(_0x20b00d[_0x2db67b(0x7b0)][_0x2db67b(0x12a3)]-=0x1)),_0x1ffb86['closed']&&_0x1ffb86[_0x2db67b(0xea2)]&&(_0x20b00d['inbound'][_0x2db67b(0x2761)]+=_0x2deec6()(_0x1ffb86['closedAt'])[_0x2db67b(0x1bb5)](_0x2deec6()(_0x1ffb86['read1stAt']),_0x20b00d[_0x2db67b(0x989)][_0x2db67b(0x2408)]),_0x20b00d[_0x2db67b(0x7b0)][_0x2db67b(0x1098)]+=_0x2deec6()(_0x1ffb86[_0x2db67b(0x801)])[_0x2db67b(0x1bb5)](_0x2deec6()(_0x1ffb86[_0x2db67b(0xc68)]),_0x20b00d[_0x2db67b(0x989)][_0x2db67b(0x2408)]),_0x20b00d[_0x2db67b(0x7b0)]['answered']+=0x1,!_0x1d16ee&&_0x20b00d['inbound'][_0x2db67b(0x10ed)]&&(_0x20b00d[_0x2db67b(0x7b0)]['talking']-=0x1)),_0x1ffb86[_0x2db67b(0x1943)]&&!_0x1ffb86[_0x2db67b(0xea2)]&&(_0x20b00d[_0x2db67b(0x7b0)][_0x2db67b(0x2389)]+=0x1,!_0x1d16ee&&_0x20b00d['inbound'][_0x2db67b(0x12a3)]&&(_0x20b00d['inbound'][_0x2db67b(0x12a3)]-=0x1)),_0x1d16ee&&(_0x20b00d['inbound']['total']+=0x1);}function _0x4e59e1(){const _0x523f59=_0x167910;_0x20b00d[_0x523f59(0x7b0)][_0x523f59(0x349)]=Math[_0x523f59(0x15dc)]((_0x20b00d[_0x523f59(0x7b0)]['abandoned']+_0x20b00d[_0x523f59(0x7b0)][_0x523f59(0x2389)])/(_0x20b00d['inbound'][_0x523f59(0x2877)]-_0x20b00d['inbound'][_0x523f59(0x10ed)]-_0x20b00d['inbound'][_0x523f59(0x12a3)])*0x64,-0x2),_0x20b00d[_0x523f59(0x7b0)][_0x523f59(0x11f1)]=Math[_0x523f59(0x15dc)](_0x20b00d[_0x523f59(0x7b0)]['answered']/(_0x20b00d[_0x523f59(0x7b0)][_0x523f59(0x2877)]-_0x20b00d['inbound'][_0x523f59(0x10ed)]-_0x20b00d[_0x523f59(0x7b0)][_0x523f59(0x12a3)])*0x64,-0x2),_0x20b00d[_0x523f59(0x7b0)]['avgHoldTime']=_0x2deec6()[_0x523f59(0x11cc)](Math[_0x523f59(0x15dc)](_0x20b00d[_0x523f59(0x7b0)][_0x523f59(0x1098)]/_0x20b00d['inbound'][_0x523f59(0x23c3)]),_0x20b00d[_0x523f59(0x989)][_0x523f59(0x2408)])[_0x523f59(0x22b0)](_0x20b00d['config'][_0x523f59(0x22b0)],_0x20b00d['config']),_0x20b00d['inbound']['avgTalkTime']=_0x2deec6()[_0x523f59(0x11cc)](Math[_0x523f59(0x15dc)](_0x20b00d[_0x523f59(0x7b0)][_0x523f59(0x2761)]/_0x20b00d[_0x523f59(0x7b0)][_0x523f59(0x23c3)]),_0x20b00d[_0x523f59(0x989)][_0x523f59(0x2408)])[_0x523f59(0x22b0)](_0x20b00d[_0x523f59(0x989)][_0x523f59(0x22b0)],_0x20b00d[_0x523f59(0x989)]);}function _0x1efae1(){const _0x44fb93=_0x167910;if(Object[_0x44fb93(0x627)](_0x20b00d[_0x44fb93(0x1593)])[_0x44fb93(0x402)]>0x0)for(let _0x1eb62e=0x0;_0x1eb62e<_0x448070[_0x44fb93(0x19c7)][_0x44fb93(0x402)];_0x1eb62e+=0x1){if(_0xb66ce(_0x448070[_0x44fb93(0x19c7)][_0x1eb62e])){const _0x2012a7=_0x448070[_0x44fb93(0x19c7)][_0x1eb62e];_0x29bac6(_0x2012a7,!![]),_0x4e59e1();}}}function _0xb66ce(_0x56554e){const _0x39cde0=_0x167910;if(_0x3f65c0()[_0x39cde0(0x1360)](_0x20b00d[_0x39cde0(0x1593)],{'id':_0x3f65c0()[_0x39cde0(0x123)](_0x56554e[_0x39cde0(0x658)])}))return!![];return![];}function _0x3eb066(_0x1f9e09){const _0x55ec32=_0x167910,_0x5a1e27=_0x2deec6()()[_0x55ec32(0x65f)](0x0,!![])[_0x55ec32(0x1fcc)](_0x55ec32(0x1066)),_0x123652=_0x2deec6()()[_0x55ec32(0x65f)](0x0,!![])['endOf'](_0x55ec32(0x1066));return _0x2deec6()(_0x1f9e09)[_0x55ec32(0x65f)](0x0,!![])[_0x55ec32(0xb87)](_0x5a1e27,_0x123652);}function _0x4c4afc(_0x1c8862){_0xb66ce(_0x1c8862)&&_0x3eb066(_0x1c8862['createdAt'])&&(_0x29bac6(_0x1c8862,!![]),_0x4e59e1());}function _0x1606f4(_0x20ee1d){const _0x563fa8=_0x167910;_0xb66ce(_0x20ee1d)&&_0x3eb066(_0x20ee1d[_0x563fa8(0xc68)])&&(_0x29bac6(_0x20ee1d,![]),_0x4e59e1());}_0xf8dcf1['$on'](_0x167910(0x116f),function(){const _0x385fda=_0x167910;_0x15d668[_0x385fda(0x1c5f)](_0x385fda(0x240e)),_0x15d668['removeAllListeners'](_0x385fda(0xb1d));});}const _0x5c2fe6=_0x218c86;;_0x143f72['$inject']=['$scope',_0x313a4d(0x279d),_0x313a4d(0xcb6),_0x313a4d(0x1690)];function _0x143f72(_0x2c230a,_0x5bdb37,_0x3e9470,_0x1518ff){const _0xba70a0=_0x313a4d,_0x58cc87=this,_0x4ca752=[];_0x58cc87[_0xba70a0(0x989)]={'format':_0xba70a0(0x84f),'unit':'seconds','trim':![]},_0x58cc87['inbound']={'waiting':0x0,'talking':0x0,'answered':0x0,'abandoned':0x0,'unmanaged':0x0,'sumHoldTime':0x0,'sumBillable':0x0,'total':0x0,'avgHoldTime':_0xba70a0(0x169a),'avgTalkTime':_0xba70a0(0x169a),'answerRate':0x0,'abandonRate':0x0},_0x58cc87[_0xba70a0(0x1690)]=_0x1518ff?_0x3f65c0()['keyBy'](_0x1518ff['rows']?_0x1518ff[_0xba70a0(0x19c7)]:[],'id'):{},_0x58cc87[_0xba70a0(0x9b6)]=_0xbd3daa,_0x58cc87['onUpdateOpenchannelInteraction']=_0x3e8a47,_0x5bdb37['on'](_0xba70a0(0x5ad),_0x58cc87[_0xba70a0(0x9b6)]),_0x5bdb37['on'](_0xba70a0(0xe65),_0x58cc87[_0xba70a0(0x138a)]),_0x1f700b();function _0x221d82(_0x5d6589,_0x2781b2){const _0x10aa9e=_0xba70a0;!_0x5d6589[_0x10aa9e(0x1943)]&&!_0x5d6589[_0x10aa9e(0xea2)]&&_0x2781b2&&(_0x58cc87[_0x10aa9e(0x7b0)][_0x10aa9e(0x12a3)]+=0x1),!_0x5d6589[_0x10aa9e(0x1943)]&&_0x5d6589[_0x10aa9e(0xea2)]&&!_0x3f65c0()[_0x10aa9e(0xa4e)](_0x4ca752,_0x5d6589['id'])&&(_0x58cc87[_0x10aa9e(0x7b0)][_0x10aa9e(0x10ed)]+=0x1,_0x4ca752[_0x10aa9e(0x1f47)](_0x5d6589['id']),!_0x2781b2&&_0x58cc87[_0x10aa9e(0x7b0)][_0x10aa9e(0x12a3)]&&(_0x58cc87['inbound']['waiting']-=0x1)),_0x5d6589[_0x10aa9e(0x1943)]&&_0x5d6589[_0x10aa9e(0xea2)]&&(_0x58cc87[_0x10aa9e(0x7b0)][_0x10aa9e(0x2761)]+=_0x2deec6()(_0x5d6589['closedAt'])['diff'](_0x2deec6()(_0x5d6589[_0x10aa9e(0x801)]),_0x58cc87[_0x10aa9e(0x989)][_0x10aa9e(0x2408)]),_0x58cc87[_0x10aa9e(0x7b0)][_0x10aa9e(0x1098)]+=_0x2deec6()(_0x5d6589['read1stAt'])['diff'](_0x2deec6()(_0x5d6589[_0x10aa9e(0xc68)]),_0x58cc87[_0x10aa9e(0x989)][_0x10aa9e(0x2408)]),_0x58cc87[_0x10aa9e(0x7b0)][_0x10aa9e(0x23c3)]+=0x1,!_0x2781b2&&_0x58cc87[_0x10aa9e(0x7b0)]['talking']&&(_0x58cc87[_0x10aa9e(0x7b0)][_0x10aa9e(0x10ed)]-=0x1)),_0x5d6589[_0x10aa9e(0x1943)]&&!_0x5d6589[_0x10aa9e(0xea2)]&&(_0x58cc87['inbound'][_0x10aa9e(0x2389)]+=0x1,!_0x2781b2&&_0x58cc87[_0x10aa9e(0x7b0)]['waiting']&&(_0x58cc87[_0x10aa9e(0x7b0)][_0x10aa9e(0x12a3)]-=0x1)),_0x2781b2&&(_0x58cc87['inbound']['total']+=0x1);}function _0x513621(){const _0x553e7a=_0xba70a0;_0x58cc87['inbound'][_0x553e7a(0x349)]=Math[_0x553e7a(0x15dc)]((_0x58cc87[_0x553e7a(0x7b0)]['abandoned']+_0x58cc87['inbound'][_0x553e7a(0x2389)])/(_0x58cc87['inbound'][_0x553e7a(0x2877)]-_0x58cc87[_0x553e7a(0x7b0)][_0x553e7a(0x10ed)]-_0x58cc87['inbound'][_0x553e7a(0x12a3)])*0x64,-0x2),_0x58cc87['inbound']['answerRate']=Math['round'](_0x58cc87[_0x553e7a(0x7b0)][_0x553e7a(0x23c3)]/(_0x58cc87[_0x553e7a(0x7b0)]['total']-_0x58cc87[_0x553e7a(0x7b0)]['talking']-_0x58cc87['inbound'][_0x553e7a(0x12a3)])*0x64,-0x2),_0x58cc87[_0x553e7a(0x7b0)][_0x553e7a(0x1a7b)]=_0x2deec6()[_0x553e7a(0x11cc)](Math['round'](_0x58cc87[_0x553e7a(0x7b0)][_0x553e7a(0x1098)]/_0x58cc87[_0x553e7a(0x7b0)]['answered']),_0x58cc87[_0x553e7a(0x989)][_0x553e7a(0x2408)])[_0x553e7a(0x22b0)](_0x58cc87['config'][_0x553e7a(0x22b0)],_0x58cc87[_0x553e7a(0x989)]),_0x58cc87[_0x553e7a(0x7b0)]['avgTalkTime']=_0x2deec6()[_0x553e7a(0x11cc)](Math[_0x553e7a(0x15dc)](_0x58cc87['inbound'][_0x553e7a(0x2761)]/_0x58cc87[_0x553e7a(0x7b0)][_0x553e7a(0x23c3)]),_0x58cc87['config']['unit'])[_0x553e7a(0x22b0)](_0x58cc87[_0x553e7a(0x989)]['format'],_0x58cc87['config']);}function _0x1f700b(){const _0x2fa158=_0xba70a0;if(Object[_0x2fa158(0x627)](_0x58cc87[_0x2fa158(0x1690)])[_0x2fa158(0x402)]>0x0)for(let _0x3d0568=0x0;_0x3d0568<_0x3e9470['rows'][_0x2fa158(0x402)];_0x3d0568+=0x1){if(_0x41658c(_0x3e9470[_0x2fa158(0x19c7)][_0x3d0568])){const _0x1d28f8=_0x3e9470['rows'][_0x3d0568];_0x221d82(_0x1d28f8,!![]),_0x513621();}}}function _0x41658c(_0x23ea65){const _0x3f1280=_0xba70a0;if(_0x3f65c0()[_0x3f1280(0x1360)](_0x58cc87[_0x3f1280(0x1690)],{'id':_0x3f65c0()[_0x3f1280(0x123)](_0x23ea65[_0x3f1280(0x534)])}))return!![];return![];}function _0x45e29f(_0x3e39dc){const _0x13f9c6=_0xba70a0,_0x47f3ef=_0x2deec6()()[_0x13f9c6(0x65f)](0x0,!![])[_0x13f9c6(0x1fcc)](_0x13f9c6(0x1066)),_0x5131ee=_0x2deec6()()[_0x13f9c6(0x65f)](0x0,!![])[_0x13f9c6(0x824)](_0x13f9c6(0x1066));return _0x2deec6()(_0x3e39dc)['utcOffset'](0x0,!![])[_0x13f9c6(0xb87)](_0x47f3ef,_0x5131ee);}function _0xbd3daa(_0x19a3df){const _0x1e61d8=_0xba70a0;_0x41658c(_0x19a3df)&&_0x45e29f(_0x19a3df[_0x1e61d8(0xc68)])&&(_0x221d82(_0x19a3df,!![]),_0x513621());}function _0x3e8a47(_0x449fca){const _0x2a0214=_0xba70a0;_0x41658c(_0x449fca)&&_0x45e29f(_0x449fca[_0x2a0214(0xc68)])&&(_0x221d82(_0x449fca,![]),_0x513621());}_0x2c230a['$on'](_0xba70a0(0x116f),function(){const _0x1a52c0=_0xba70a0;_0x5bdb37[_0x1a52c0(0x1c5f)]('openchannelInteraction:save'),_0x5bdb37[_0x1a52c0(0x1c5f)](_0x1a52c0(0xe65));});}const _0x7ad1d6=_0x143f72;;_0x3053b5[_0x313a4d(0x11c2)]=['$scope',_0x313a4d(0x279d),_0x313a4d(0xdbc),_0x313a4d(0x1c34)];function _0x3053b5(_0x4f8b57,_0x2d584b,_0x26ba40,_0x11ff3){const _0x5e47e9=_0x313a4d,_0x1867c5=this,_0xcec7f1=[];_0x1867c5[_0x5e47e9(0x989)]={'format':_0x5e47e9(0x84f),'unit':_0x5e47e9(0xcf5),'trim':![]},_0x1867c5[_0x5e47e9(0x7b0)]={'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},_0x1867c5[_0x5e47e9(0x1c34)]=_0x11ff3?_0x3f65c0()[_0x5e47e9(0x194)](_0x11ff3[_0x5e47e9(0x19c7)]?_0x11ff3[_0x5e47e9(0x19c7)]:[],'id'):{},_0x1867c5[_0x5e47e9(0xfa3)]=_0x59c9b2,_0x1867c5[_0x5e47e9(0x16c2)]=_0x104899,_0x2d584b['on'](_0x5e47e9(0x1fa2),_0x1867c5[_0x5e47e9(0xfa3)]),_0x2d584b['on'](_0x5e47e9(0x15ae),_0x1867c5[_0x5e47e9(0x16c2)]),_0x16b737();function _0x46ec4c(_0x4652c3,_0x35f08a){const _0x519f9f=_0x5e47e9;!_0x4652c3[_0x519f9f(0x1943)]&&!_0x4652c3[_0x519f9f(0xea2)]&&_0x35f08a&&(_0x1867c5[_0x519f9f(0x7b0)][_0x519f9f(0x12a3)]+=0x1),!_0x4652c3['closed']&&_0x4652c3['UserId']&&!_0x3f65c0()[_0x519f9f(0xa4e)](_0xcec7f1,_0x4652c3['id'])&&(_0x1867c5[_0x519f9f(0x7b0)]['talking']+=0x1,_0xcec7f1[_0x519f9f(0x1f47)](_0x4652c3['id']),!_0x35f08a&&_0x1867c5[_0x519f9f(0x7b0)][_0x519f9f(0x12a3)]&&(_0x1867c5[_0x519f9f(0x7b0)][_0x519f9f(0x12a3)]-=0x1)),_0x4652c3[_0x519f9f(0x1943)]&&_0x4652c3['UserId']&&(_0x1867c5[_0x519f9f(0x7b0)][_0x519f9f(0x2761)]+=_0x2deec6()(_0x4652c3[_0x519f9f(0xc73)])['diff'](_0x2deec6()(_0x4652c3[_0x519f9f(0x801)]),_0x1867c5[_0x519f9f(0x989)][_0x519f9f(0x2408)]),_0x1867c5['inbound'][_0x519f9f(0x1098)]+=_0x2deec6()(_0x4652c3[_0x519f9f(0x801)])['diff'](_0x2deec6()(_0x4652c3[_0x519f9f(0xc68)]),_0x1867c5[_0x519f9f(0x989)][_0x519f9f(0x2408)]),_0x1867c5['inbound'][_0x519f9f(0x23c3)]+=0x1,!_0x35f08a&&_0x1867c5[_0x519f9f(0x7b0)][_0x519f9f(0x10ed)]&&(_0x1867c5[_0x519f9f(0x7b0)][_0x519f9f(0x10ed)]-=0x1)),_0x4652c3[_0x519f9f(0x1943)]&&!_0x4652c3[_0x519f9f(0xea2)]&&(_0x1867c5[_0x519f9f(0x7b0)][_0x519f9f(0x2389)]+=0x1,!_0x35f08a&&_0x1867c5[_0x519f9f(0x7b0)][_0x519f9f(0x12a3)]&&(_0x1867c5[_0x519f9f(0x7b0)][_0x519f9f(0x12a3)]-=0x1)),_0x35f08a&&(_0x1867c5[_0x519f9f(0x7b0)][_0x519f9f(0x2877)]+=0x1);}function _0x1acbd8(){const _0x56c7d3=_0x5e47e9;_0x1867c5['inbound'][_0x56c7d3(0x349)]=Math['round']((_0x1867c5['inbound'][_0x56c7d3(0x521)]+_0x1867c5[_0x56c7d3(0x7b0)][_0x56c7d3(0x2389)])/(_0x1867c5[_0x56c7d3(0x7b0)][_0x56c7d3(0x2877)]-_0x1867c5['inbound']['talking']-_0x1867c5[_0x56c7d3(0x7b0)][_0x56c7d3(0x12a3)])*0x64,-0x2),_0x1867c5[_0x56c7d3(0x7b0)]['answerRate']=Math[_0x56c7d3(0x15dc)](_0x1867c5['inbound'][_0x56c7d3(0x23c3)]/(_0x1867c5[_0x56c7d3(0x7b0)][_0x56c7d3(0x2877)]-_0x1867c5['inbound'][_0x56c7d3(0x10ed)]-_0x1867c5['inbound'][_0x56c7d3(0x12a3)])*0x64,-0x2),_0x1867c5[_0x56c7d3(0x7b0)][_0x56c7d3(0x1a7b)]=_0x2deec6()['duration'](Math['round'](_0x1867c5['inbound'][_0x56c7d3(0x1098)]/_0x1867c5[_0x56c7d3(0x7b0)]['answered']),_0x1867c5['config'][_0x56c7d3(0x2408)])[_0x56c7d3(0x22b0)](_0x1867c5['config']['format'],_0x1867c5[_0x56c7d3(0x989)]),_0x1867c5['inbound'][_0x56c7d3(0x1112)]=_0x2deec6()[_0x56c7d3(0x11cc)](Math['round'](_0x1867c5[_0x56c7d3(0x7b0)][_0x56c7d3(0x2761)]/_0x1867c5[_0x56c7d3(0x7b0)][_0x56c7d3(0x23c3)]),_0x1867c5[_0x56c7d3(0x989)][_0x56c7d3(0x2408)])[_0x56c7d3(0x22b0)](_0x1867c5['config']['format'],_0x1867c5[_0x56c7d3(0x989)]);}function _0x16b737(){const _0x39eaee=_0x5e47e9;if(Object[_0x39eaee(0x627)](_0x1867c5[_0x39eaee(0x1c34)])[_0x39eaee(0x402)]>0x0)for(let _0x52e4c6=0x0;_0x52e4c6<_0x26ba40['rows'][_0x39eaee(0x402)];_0x52e4c6+=0x1){if(_0x53ab1d(_0x26ba40[_0x39eaee(0x19c7)][_0x52e4c6])){const _0x249c31=_0x26ba40[_0x39eaee(0x19c7)][_0x52e4c6];_0x46ec4c(_0x249c31,!![]),_0x1acbd8();}}}function _0x53ab1d(_0x44f834){const _0x3547c5=_0x5e47e9;if(_0x3f65c0()[_0x3547c5(0x1360)](_0x1867c5['smsAccounts'],{'id':_0x3f65c0()['toNumber'](_0x44f834[_0x3547c5(0x1481)])}))return!![];return![];}function _0x188f47(_0x2c108d){const _0x1921e4=_0x5e47e9,_0x34513a=_0x2deec6()()['utcOffset'](0x0,!![])[_0x1921e4(0x1fcc)]('day'),_0xf290da=_0x2deec6()()[_0x1921e4(0x65f)](0x0,!![])[_0x1921e4(0x824)](_0x1921e4(0x1066));return _0x2deec6()(_0x2c108d)[_0x1921e4(0x65f)](0x0,!![])[_0x1921e4(0xb87)](_0x34513a,_0xf290da);}function _0x59c9b2(_0x4e114e){_0x53ab1d(_0x4e114e)&&_0x188f47(_0x4e114e['createdAt'])&&(_0x46ec4c(_0x4e114e,!![]),_0x1acbd8());}function _0x104899(_0x522442){const _0x59177e=_0x5e47e9;_0x53ab1d(_0x522442)&&_0x188f47(_0x522442[_0x59177e(0xc68)])&&(_0x46ec4c(_0x522442,![]),_0x1acbd8());}_0x4f8b57[_0x5e47e9(0x16ad)]('$destroy',function(){const _0xcec5cd=_0x5e47e9;_0x2d584b[_0xcec5cd(0x1c5f)](_0xcec5cd(0x1fa2)),_0x2d584b[_0xcec5cd(0x1c5f)]('smsInteraction:update');});}const _0x1f610a=_0x3053b5;;_0x460ee3[_0x313a4d(0x11c2)]=[_0x313a4d(0x1862),_0x313a4d(0xa87),_0x313a4d(0x2690)],_0x13b7e5[_0x313a4d(0x11c2)]=['$q'],_0x371bb5[_0x313a4d(0x11c2)]=['$q'];function _0x371bb5(_0x35acae){const _0x58b798=[],_0x2df023=function(){const _0x4155da=a0_0x3bb9,_0x2e7069=_0x58b798[0x0],_0x593d7a={'waiting':0x0,'talking':0x0,'pTalking':0x0,'answered':0x0,'abandoned':0x0,'unmanaged':0x0,'sumHoldTime':0x0,'sumBillable':0x0,'total':0x0,'avgHoldTime':_0x4155da(0x169a),'avgTalkTime':_0x4155da(0x169a),'answerRate':0x0,'abandonRate':0x0,'originated':0x0,'outboundDropCallsDayCallersExit':0x0,'outboundDropCallsDayTimeout':0x0};_0x3f65c0()[_0x4155da(0x1a04)](_0x2e7069[_0x4155da(0x1b32)],function(_0x34d161,_0x3eb530){const _0x5b2bfd=_0x4155da;_0x2e7069[_0x5b2bfd(0x21af)][_0x3eb530]&&(_0x593d7a[_0x5b2bfd(0x12a3)]+=_0x2e7069[_0x5b2bfd(0x21af)][_0x3eb530][_0x5b2bfd(0x12a3)]||0x0,_0x593d7a[_0x5b2bfd(0x10ed)]+=(_0x2e7069[_0x5b2bfd(0x21af)][_0x3eb530][_0x5b2bfd(0x10ed)]||0x0)+(_0x2e7069[_0x5b2bfd(0x21af)][_0x3eb530][_0x5b2bfd(0x166f)]||0x0),_0x593d7a[_0x5b2bfd(0x23c3)]+=_0x2e7069[_0x5b2bfd(0x21af)][_0x3eb530][_0x5b2bfd(0x23c3)]||0x0,_0x593d7a[_0x5b2bfd(0x521)]+=_0x2e7069[_0x5b2bfd(0x21af)][_0x3eb530][_0x5b2bfd(0x521)]||0x0,_0x593d7a[_0x5b2bfd(0x1098)]+=_0x2e7069[_0x5b2bfd(0x21af)][_0x3eb530][_0x5b2bfd(0x1098)]||0x0,_0x593d7a['sumBillable']+=_0x2e7069[_0x5b2bfd(0x21af)][_0x3eb530][_0x5b2bfd(0x2761)]||0x0,_0x593d7a[_0x5b2bfd(0x2877)]+=_0x2e7069['rpcQueues'][_0x3eb530][_0x5b2bfd(0x2877)]||0x0,_0x593d7a[_0x5b2bfd(0x1e38)]+=_0x2e7069[_0x5b2bfd(0x21af)][_0x3eb530][_0x5b2bfd(0x1e38)]||0x0,_0x593d7a['outboundDropCallsDayCallersExit']+=_0x2e7069['rpcQueues'][_0x3eb530][_0x5b2bfd(0x3d7)]||0x0,_0x593d7a[_0x5b2bfd(0xcb5)]+=_0x2e7069[_0x5b2bfd(0x21af)][_0x3eb530][_0x5b2bfd(0xcb5)]||0x0);});const _0x1b8883=_0x593d7a[_0x4155da(0x2877)]-_0x593d7a[_0x4155da(0x23c3)]-_0x593d7a['abandoned'];_0x593d7a[_0x4155da(0x2389)]=_0x1b8883>0x0?_0x1b8883:0x0,_0x593d7a['avgHoldTime']=Math[_0x4155da(0x15dc)](_0x593d7a[_0x4155da(0x2877)]>0x0?_0x593d7a[_0x4155da(0x1098)]/_0x593d7a[_0x4155da(0x2877)]:0x0),_0x593d7a['avgHoldTime']=new Date(_0x593d7a[_0x4155da(0x1a7b)]*0x3e8)[_0x4155da(0x2394)]()[_0x4155da(0x16eb)](0xb,0x8),_0x593d7a[_0x4155da(0x1112)]=Math[_0x4155da(0x15dc)](_0x593d7a[_0x4155da(0x23c3)]>0x0?_0x593d7a[_0x4155da(0x2761)]/_0x593d7a[_0x4155da(0x23c3)]:0x0),_0x593d7a['avgTalkTime']=new Date(_0x593d7a['avgTalkTime']*0x3e8)[_0x4155da(0x2394)]()[_0x4155da(0x16eb)](0xb,0x8),_0x593d7a[_0x4155da(0x11f1)]=Math[_0x4155da(0x15dc)]((_0x593d7a[_0x4155da(0x2877)]>0x0?_0x593d7a['answered']/_0x593d7a[_0x4155da(0x2877)]*0x64:0x0)*Math['pow'](0xa,0x1))/Math[_0x4155da(0x4ed)](0xa,0x1),_0x593d7a[_0x4155da(0x349)]=Math[_0x4155da(0x15dc)]((_0x593d7a[_0x4155da(0x2877)]>0x0?_0x593d7a[_0x4155da(0x521)]/_0x593d7a[_0x4155da(0x2877)]*0x64:0x0)*Math[_0x4155da(0x4ed)](0xa,0x1))/Math['pow'](0xa,0x1),_0x593d7a[_0x4155da(0x62b)]=Math[_0x4155da(0x15dc)]((_0x593d7a[_0x4155da(0x2877)]>0x0?_0x593d7a['outboundDropCallsDayTimeout']/_0x593d7a['total']*0x64:0x0)*Math['pow'](0xa,0x1))/Math[_0x4155da(0x4ed)](0xa,0x1),_0x593d7a[_0x4155da(0xd9d)]=Math[_0x4155da(0x15dc)]((_0x593d7a[_0x4155da(0x2877)]>0x0?_0x593d7a['outboundDropCallsDayCallersExit']/_0x593d7a[_0x4155da(0x2877)]*0x64:0x0)*Math[_0x4155da(0x4ed)](0xa,0x1))/Math[_0x4155da(0x4ed)](0xa,0x1),_0x593d7a[_0x4155da(0x2175)]=0x64-_0x593d7a[_0x4155da(0x62b)]-_0x593d7a[_0x4155da(0xd9d)]>0x0&&(_0x593d7a[_0x4155da(0x2877)]||0x0>0x0)?0x64-_0x593d7a[_0x4155da(0x62b)]-_0x593d7a['outboundAbandonRate']:0x0,_0x58b798[_0x4155da(0x659)](),_0x2e7069[_0x4155da(0xce3)][_0x4155da(0x2922)](_0x593d7a),_0x58b798['length']>0x0&&_0x2df023();};return function(_0x1ec757){const _0x1a1573=a0_0x3bb9,_0x399d6f=_0x35acae[_0x1a1573(0xce3)]();return _0x58b798[_0x1a1573(0x1f47)]({'queues':_0x1ec757[_0x1a1573(0x1b32)],'rpcQueues':_0x1ec757[_0x1a1573(0x21af)],'defer':_0x399d6f}),_0x58b798[_0x1a1573(0x402)]===0x1&&_0x2df023(),_0x399d6f[_0x1a1573(0xb9c)];};}function _0x13b7e5(_0xf73b8a){const _0x101ad3=[],_0x1d6292=function(){const _0xecf046=a0_0x3bb9,_0x50c322=_0x101ad3[0x0],_0x113abc={'originated':0x0,'limitCalls':0x0};_0x3f65c0()[_0xecf046(0x1a04)](_0x50c322[_0xecf046(0x163)],function(_0x4ac5b8,_0x4fa0f4){const _0xe501eb=_0xecf046;_0x50c322['rpcCampaigns'][_0x4fa0f4]&&(_0x113abc[_0xe501eb(0x1e38)]+=_0x50c322[_0xe501eb(0x163)][_0x4fa0f4]['originated']||0x0,_0x113abc[_0xe501eb(0x114c)]+=_0x50c322['rpcCampaigns'][_0x4fa0f4][_0xe501eb(0x114c)]||0x0);}),_0x101ad3['shift'](),_0x50c322[_0xecf046(0xce3)][_0xecf046(0x2922)](_0x113abc),_0x101ad3[_0xecf046(0x402)]>0x0&&_0x1d6292();};return function(_0x47c76c){const _0x1ac0ce=a0_0x3bb9,_0x3d0f1f=_0xf73b8a[_0x1ac0ce(0xce3)]();return _0x101ad3['push']({'rpcCampaigns':_0x47c76c[_0x1ac0ce(0x163)],'defer':_0x3d0f1f}),_0x101ad3['length']===0x1&&_0x1d6292(),_0x3d0f1f[_0x1ac0ce(0xb9c)];};}function _0x1e5231(){return function(_0xe4d1dd){const _0x3aec95=a0_0x3bb9;return new Date(_0xe4d1dd*0x3e8)[_0x3aec95(0x2394)]()['substr'](0xb,0x8);};}function _0x460ee3(_0x3c7aa9,_0x57cfc9,_0x41a965){const _0x1ad140=_0x313a4d,_0x3536bc=this;_0x3536bc[_0x1ad140(0x2690)]=_0x41a965,_0x3536bc[_0x1ad140(0x3d4)]=_0x49557f;function _0x49557f(){const _0x23dda2=_0x1ad140;_0x3536bc[_0x23dda2(0x3d8)]=_0x57cfc9[_0x23dda2(0x23e0)](_0x23dda2(0xe7b))?_0x57cfc9[_0x23dda2(0x2434)](0x65):!![];if(_0x3536bc['hasDashboardPermissions']){const _0x3777fc=_0x3c7aa9['current']['name'];switch(_0x3777fc){case'app.dashboards.general':_0x280528();break;case _0x23dda2(0x913):_0x3536bc[_0x23dda2(0x1b09)]=0x0;break;case'app.dashboards.general.dialer':_0x3536bc[_0x23dda2(0x1b09)]=0x1;break;case _0x23dda2(0x66c):_0x3536bc[_0x23dda2(0x1b09)]=0x2;break;case _0x23dda2(0x1c6d):_0x3536bc['selectedTab']=0x3;break;case _0x23dda2(0x4c9):_0x3536bc['selectedTab']=0x4;break;case _0x23dda2(0x1575):_0x3536bc[_0x23dda2(0x1b09)]=0x5;break;case _0x23dda2(0x1b03):_0x3536bc[_0x23dda2(0x1b09)]=0x6;break;case _0x23dda2(0x26ee):_0x3536bc[_0x23dda2(0x1b09)]=0x7;break;}}}function _0x280528(){const _0x290e19=_0x1ad140,_0x22be5b=[];_0x3536bc['license'][_0x290e19(0xe6)]&&_0x22be5b['push'](_0x290e19(0x913)),_0x3536bc[_0x290e19(0x2690)][_0x290e19(0x2842)]&&_0x22be5b[_0x290e19(0x1f47)](_0x290e19(0xeb3)),_0x3536bc['license'][_0x290e19(0xa7f)]&&_0x22be5b[_0x290e19(0x1f47)](_0x290e19(0x66c)),_0x3536bc[_0x290e19(0x2690)][_0x290e19(0x56b)]&&_0x22be5b['push'](_0x290e19(0x1c6d)),_0x3536bc[_0x290e19(0x2690)][_0x290e19(0x25ca)]&&_0x22be5b[_0x290e19(0x1f47)](_0x290e19(0x4c9)),_0x3536bc[_0x290e19(0x2690)][_0x290e19(0x7d9)]&&_0x22be5b[_0x290e19(0x1f47)](_0x290e19(0x1575)),_0x3536bc['license']['fax']&&_0x22be5b[_0x290e19(0x1f47)](_0x290e19(0x1b03)),_0x3536bc[_0x290e19(0x2690)]['whatsapp']&&_0x22be5b[_0x290e19(0x1f47)](_0x290e19(0x26ee));if(_0x22be5b[_0x290e19(0x402)]>0x0)_0x3c7aa9['go'](_0x3f65c0()[_0x290e19(0xb68)](_0x22be5b));}};_0x346bfb[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x279d),_0x313a4d(0x1d4c),_0x313a4d(0x21af),_0x313a4d(0xc9c),_0x313a4d(0x128f)];function _0x346bfb(_0x487464,_0x2ce720,_0x56bd74,_0x335658,_0x3ed9f8,_0x1c8eb2){const _0x3e2fef=_0x313a4d,_0x368d50=this;_0x368d50[_0x3e2fef(0x1d4c)]=_0x56bd74?_0x3f65c0()[_0x3e2fef(0x194)](_0x56bd74['rows']?_0x56bd74[_0x3e2fef(0x19c7)]:[],'id'):{},_0x368d50[_0x3e2fef(0x21af)]=_0x335658?_0x3f65c0()[_0x3e2fef(0x194)](_0x335658[_0x3e2fef(0x19c7)]?_0x335658[_0x3e2fef(0x19c7)]:[],'id'):{},_0x368d50[_0x3e2fef(0x7b0)]={'waiting':0x0,'talking':0x0,'answered':0x0,'abandoned':0x0,'unmanaged':0x0,'sumHoldTime':0x0,'sumBillable':0x0,'total':0x0,'avgHoldTime':'00:00:00','avgTalkTime':_0x3e2fef(0x169a),'answerRate':0x0,'abandonRate':0x0},_0x368d50[_0x3e2fef(0xc9c)]=_0x3ed9f8||{'answered':0x0,'sumBillable':0x0,'sumDuration':0x0,'sumHoldTime':0x0,'total':0x0},_0x368d50[_0x3e2fef(0x2606)]=_0x4a5b3e,_0x368d50[_0x3e2fef(0x209c)]=_0x6344db,_0x2ce720['on'](_0x3e2fef(0x101d),_0x368d50[_0x3e2fef(0x2606)]),_0x2ce720['on'](_0x3e2fef(0x1a44),_0x368d50[_0x3e2fef(0x209c)]),_0x37b921();function _0x37b921(){const _0x2d7133=_0x3e2fef;_0x1c8eb2({'queues':_0x368d50[_0x2d7133(0x1d4c)],'rpcQueues':_0x368d50[_0x2d7133(0x21af)]})[_0x2d7133(0x146b)](function(_0x22f617){const _0x5a56a7=_0x2d7133;_0x368d50[_0x5a56a7(0x7b0)]=_0x22f617;});}function _0x4a5b3e(_0xde0ee5){const _0x1c4a73=_0x3e2fef;_0x368d50[_0x1c4a73(0x1d4c)][_0xde0ee5['id']]&&(_0x368d50['rpcQueues'][_0xde0ee5['id']]&&(_0x368d50['rpcQueues'][_0xde0ee5['id']]=_0xde0ee5,_0x37b921()));}function _0x6344db(_0x48172e){const _0x14733c=_0x3e2fef;_0x368d50[_0x14733c(0xc9c)]=_0x48172e;}_0x487464[_0x3e2fef(0x16ad)](_0x3e2fef(0x116f),function(){const _0x459375=_0x3e2fef;_0x2ce720[_0x459375(0x1c5f)]('voice_queue:save'),_0x2ce720['removeAllListeners']('voice_outbound:save');});}const _0x577485=_0x346bfb;;_0x1a0918['$inject']=['$scope',_0x313a4d(0x279d),'whatsappInteractions','whatsappAccounts'];function _0x1a0918(_0x11ccce,_0x50f662,_0x2597a9,_0x1fb29b){const _0x4f245f=_0x313a4d,_0x547aa9=this,_0x51c690=[];_0x547aa9['config']={'format':'hh:mm:ss','unit':_0x4f245f(0xcf5),'trim':![]},_0x547aa9[_0x4f245f(0x7b0)]={'waiting':0x0,'talking':0x0,'answered':0x0,'abandoned':0x0,'unmanaged':0x0,'sumHoldTime':0x0,'sumBillable':0x0,'total':0x0,'avgHoldTime':_0x4f245f(0x169a),'avgTalkTime':_0x4f245f(0x169a),'answerRate':0x0,'abandonRate':0x0},_0x547aa9[_0x4f245f(0x23c)]=_0x1fb29b?_0x3f65c0()[_0x4f245f(0x194)](_0x1fb29b[_0x4f245f(0x19c7)]?_0x1fb29b[_0x4f245f(0x19c7)]:[],'id'):{},_0x547aa9['onSaveWhatsappInteraction']=_0x4a94b6,_0x547aa9[_0x4f245f(0xc2e)]=_0x1a3a9a,_0x50f662['on'](_0x4f245f(0xf40),_0x547aa9[_0x4f245f(0xba5)]),_0x50f662['on'](_0x4f245f(0x2887),_0x547aa9[_0x4f245f(0xc2e)]),_0x3035fb();function _0x2468da(_0x67a9c4,_0x281450){const _0x3f9ef4=_0x4f245f;!_0x67a9c4[_0x3f9ef4(0x1943)]&&!_0x67a9c4[_0x3f9ef4(0xea2)]&&_0x281450&&(_0x547aa9['inbound'][_0x3f9ef4(0x12a3)]+=0x1),!_0x67a9c4['closed']&&_0x67a9c4[_0x3f9ef4(0xea2)]&&!_0x3f65c0()['includes'](_0x51c690,_0x67a9c4['id'])&&(_0x547aa9[_0x3f9ef4(0x7b0)]['talking']+=0x1,_0x51c690[_0x3f9ef4(0x1f47)](_0x67a9c4['id']),!_0x281450&&_0x547aa9[_0x3f9ef4(0x7b0)]['waiting']&&(_0x547aa9['inbound'][_0x3f9ef4(0x12a3)]-=0x1)),_0x67a9c4[_0x3f9ef4(0x1943)]&&_0x67a9c4[_0x3f9ef4(0xea2)]&&(_0x547aa9[_0x3f9ef4(0x7b0)]['sumBillable']+=_0x2deec6()(_0x67a9c4[_0x3f9ef4(0xc73)])[_0x3f9ef4(0x1bb5)](_0x2deec6()(_0x67a9c4['read1stAt']),_0x547aa9[_0x3f9ef4(0x989)][_0x3f9ef4(0x2408)]),_0x547aa9[_0x3f9ef4(0x7b0)]['sumHoldTime']+=_0x2deec6()(_0x67a9c4[_0x3f9ef4(0x801)])[_0x3f9ef4(0x1bb5)](_0x2deec6()(_0x67a9c4[_0x3f9ef4(0xc68)]),_0x547aa9['config']['unit']),_0x547aa9[_0x3f9ef4(0x7b0)][_0x3f9ef4(0x23c3)]+=0x1,!_0x281450&&_0x547aa9[_0x3f9ef4(0x7b0)][_0x3f9ef4(0x10ed)]&&(_0x547aa9[_0x3f9ef4(0x7b0)][_0x3f9ef4(0x10ed)]-=0x1)),_0x67a9c4[_0x3f9ef4(0x1943)]&&!_0x67a9c4['UserId']&&(_0x547aa9[_0x3f9ef4(0x7b0)]['unmanaged']+=0x1,!_0x281450&&_0x547aa9[_0x3f9ef4(0x7b0)][_0x3f9ef4(0x12a3)]&&(_0x547aa9[_0x3f9ef4(0x7b0)]['waiting']-=0x1)),_0x281450&&(_0x547aa9['inbound']['total']+=0x1);}function _0x5a53cd(){const _0x276c08=_0x4f245f;_0x547aa9[_0x276c08(0x7b0)][_0x276c08(0x349)]=Math[_0x276c08(0x15dc)]((_0x547aa9[_0x276c08(0x7b0)][_0x276c08(0x521)]+_0x547aa9[_0x276c08(0x7b0)][_0x276c08(0x2389)])/(_0x547aa9[_0x276c08(0x7b0)][_0x276c08(0x2877)]-_0x547aa9['inbound'][_0x276c08(0x10ed)]-_0x547aa9['inbound'][_0x276c08(0x12a3)])*0x64,-0x2),_0x547aa9[_0x276c08(0x7b0)][_0x276c08(0x11f1)]=Math[_0x276c08(0x15dc)](_0x547aa9['inbound']['answered']/(_0x547aa9[_0x276c08(0x7b0)][_0x276c08(0x2877)]-_0x547aa9[_0x276c08(0x7b0)][_0x276c08(0x10ed)]-_0x547aa9[_0x276c08(0x7b0)][_0x276c08(0x12a3)])*0x64,-0x2),_0x547aa9[_0x276c08(0x7b0)]['avgHoldTime']=_0x2deec6()[_0x276c08(0x11cc)](Math['round'](_0x547aa9[_0x276c08(0x7b0)]['sumHoldTime']/_0x547aa9['inbound'][_0x276c08(0x23c3)]),_0x547aa9['config'][_0x276c08(0x2408)])[_0x276c08(0x22b0)](_0x547aa9[_0x276c08(0x989)]['format'],_0x547aa9['config']),_0x547aa9[_0x276c08(0x7b0)][_0x276c08(0x1112)]=_0x2deec6()[_0x276c08(0x11cc)](Math[_0x276c08(0x15dc)](_0x547aa9[_0x276c08(0x7b0)][_0x276c08(0x2761)]/_0x547aa9[_0x276c08(0x7b0)][_0x276c08(0x23c3)]),_0x547aa9[_0x276c08(0x989)]['unit'])[_0x276c08(0x22b0)](_0x547aa9[_0x276c08(0x989)][_0x276c08(0x22b0)],_0x547aa9['config']);}function _0x3035fb(){const _0x1e48c0=_0x4f245f;if(Object[_0x1e48c0(0x627)](_0x547aa9[_0x1e48c0(0x23c)])['length']>0x0)for(let _0x19b7c8=0x0;_0x19b7c8<_0x2597a9['rows'][_0x1e48c0(0x402)];_0x19b7c8+=0x1){if(_0x4f7013(_0x2597a9[_0x1e48c0(0x19c7)][_0x19b7c8])){const _0x21f03d=_0x2597a9[_0x1e48c0(0x19c7)][_0x19b7c8];_0x2468da(_0x21f03d,!![]),_0x5a53cd();}}}function _0x4f7013(_0x403004){const _0xfc3020=_0x4f245f;if(_0x3f65c0()['some'](_0x547aa9[_0xfc3020(0x23c)],{'id':_0x3f65c0()[_0xfc3020(0x123)](_0x403004[_0xfc3020(0x158a)])}))return!![];return![];}function _0x3e5359(_0x4b79ae){const _0x5c5183=_0x4f245f,_0x575001=_0x2deec6()()[_0x5c5183(0x65f)](0x0,!![])[_0x5c5183(0x1fcc)](_0x5c5183(0x1066)),_0x5d0cd1=_0x2deec6()()[_0x5c5183(0x65f)](0x0,!![])[_0x5c5183(0x824)](_0x5c5183(0x1066));return _0x2deec6()(_0x4b79ae)[_0x5c5183(0x65f)](0x0,!![])[_0x5c5183(0xb87)](_0x575001,_0x5d0cd1);}function _0x4a94b6(_0x108289){const _0x2e2024=_0x4f245f;_0x4f7013(_0x108289)&&_0x3e5359(_0x108289[_0x2e2024(0xc68)])&&(_0x2468da(_0x108289,!![]),_0x5a53cd());}function _0x1a3a9a(_0x1c7ea3){const _0x3ccca9=_0x4f245f;_0x4f7013(_0x1c7ea3)&&_0x3e5359(_0x1c7ea3[_0x3ccca9(0xc68)])&&(_0x2468da(_0x1c7ea3,![]),_0x5a53cd());}_0x11ccce['$on'](_0x4f245f(0x116f),function(){const _0x25b822=_0x4f245f;_0x50f662[_0x25b822(0x1c5f)]('whatsappInteraction:save'),_0x50f662[_0x25b822(0x1c5f)](_0x25b822(0x2887));});}const _0x5b4dfa=_0x1a0918;;_0x2d6e9c['$inject']=[_0x313a4d(0x921)];function _0x2d6e9c(_0x4e9838){const _0x288498=_0x313a4d;_0x4e9838['state'](_0x288498(0x913),{'url':'/voice','data':{'selectedTab':0x0},'views':{'voice':{'templateUrl':_0x5c97d6,'controller':_0x288498(0x159f)}},'resolve':{'rpcQueues':[_0x288498(0x362),function(_0x3620f1){const _0x3d6cc4=_0x288498;return _0x3620f1[_0x3d6cc4(0x2922)]('rpc@getVoiceQueues');}],'inboundQueues':[_0x288498(0x362),_0x288498(0xa87),function(_0x3db3f7,_0x5d779b){const _0x4ec254=_0x288498;return _0x5d779b[_0x4ec254(0x23e0)](_0x4ec254(0x174b))?_0x3db3f7[_0x4ec254(0x2922)](_0x4ec254(0x5c0),{'fields':'id,name','type':'inbound','nolimit':!![]}):_0x3db3f7['resolve']('userProfile@getResources',{'id':_0x5d779b['getCurrentUser']()[_0x4ec254(0x209a)],'section':_0x4ec254(0x507),'fields':'id,name','type':_0x4ec254(0x7b0),'channel':'voice','nolimit':!![]});}],'outbound':['apiResolver',function(_0x1f152f){const _0x1a1068=_0x288498;return _0x1f152f[_0x1a1068(0x2922)](_0x1a1068(0xd26));}]},'authenticate':!![],'bodyClass':_0x288498(0x6de)})[_0x288498(0x13d6)]('app.dashboards.general.dialer',{'url':_0x288498(0x369),'data':{'selectedTab':0x1},'views':{'dialer':{'templateUrl':_0x57509d,'controller':_0x288498(0x2073)}},'resolve':{'rpcQueues':[_0x288498(0x362),function(_0x58394c){const _0x8abf6b=_0x288498;return _0x58394c[_0x8abf6b(0x2922)]('rpc@getVoiceQueues');}],'outboundQueues':[_0x288498(0x362),_0x288498(0xa87),function(_0x54d83a,_0x1262ae){const _0x466d03=_0x288498;return _0x1262ae[_0x466d03(0x23e0)](_0x466d03(0x174b))?_0x54d83a[_0x466d03(0x2922)](_0x466d03(0x5c0),{'fields':'id,name','type':'outbound','nolimit':!![]}):_0x54d83a['resolve'](_0x466d03(0x938),{'id':_0x1262ae['getCurrentUser']()[_0x466d03(0x209a)],'section':'QueueCampaigns','fields':_0x466d03(0x7a7),'type':'outbound','channel':_0x466d03(0xe6),'nolimit':!![]});}],'rpcCampaigns':[_0x288498(0x362),function(_0x1dca70){const _0x284c0c=_0x288498;return _0x1dca70[_0x284c0c(0x2922)]('rpc@getCampaigns');}]},'authenticate':!![],'bodyClass':'dashboards'})[_0x288498(0x13d6)](_0x288498(0x66c),{'url':_0x288498(0xfbe),'data':{'selectedTab':0x2},'views':{'chat':{'templateUrl':_0x7fb38f,'controller':_0x288498(0x1736)}},'resolve':{'chatInteractions':['apiResolver',function(_0x3e314f){const _0x285f80=_0x288498;return _0x3e314f[_0x285f80(0x2922)]('chatInteraction@get',{'createdAt':{'$gte':_0x2deec6()()['startOf']('day')[_0x285f80(0x65f)](0x0,!![])[_0x285f80(0x22b0)](),'$lte':_0x2deec6()()['endOf'](_0x285f80(0x1066))[_0x285f80(0x65f)](0x0,!![])['format']()},'nolimit':!![]});}],'chatWebsites':[_0x288498(0x362),_0x288498(0xa87),function(_0x3b4fa5,_0x422e26){const _0x50d1a4=_0x288498;return _0x422e26[_0x50d1a4(0x23e0)](_0x50d1a4(0x174b))?_0x3b4fa5[_0x50d1a4(0x2922)](_0x50d1a4(0x176b),{'fields':_0x50d1a4(0x1b81),'sort':_0x50d1a4(0x12f2),'limit':0xa,'offset':0x0}):_0x3b4fa5[_0x50d1a4(0x2922)](_0x50d1a4(0x938),{'id':_0x422e26[_0x50d1a4(0xb12)]()[_0x50d1a4(0x209a)],'section':_0x50d1a4(0x274c),'fields':_0x50d1a4(0x1b81),'sort':_0x50d1a4(0x12f2),'limit':0xa,'offset':0x0});}]},'authenticate':!![],'bodyClass':_0x288498(0x6de)})['state']('app.dashboards.general.mail',{'url':_0x288498(0x112f),'data':{'selectedTab':0x3},'views':{'mail':{'templateUrl':_0x5bcc79,'controller':_0x288498(0x3e9)}},'resolve':{'mailInteractions':[_0x288498(0x362),function(_0x28c438){const _0x3ecb03=_0x288498;return _0x28c438[_0x3ecb03(0x2922)](_0x3ecb03(0x25be),{'createdAt':{'$gte':_0x2deec6()()[_0x3ecb03(0x1fcc)](_0x3ecb03(0x1066))[_0x3ecb03(0x65f)](0x0,!![])[_0x3ecb03(0x22b0)](),'$lte':_0x2deec6()()[_0x3ecb03(0x824)](_0x3ecb03(0x1066))[_0x3ecb03(0x65f)](0x0,!![])[_0x3ecb03(0x22b0)]()},'nolimit':!![]});}],'mailAccounts':[_0x288498(0x362),_0x288498(0xa87),function(_0x52ce68,_0x30f521){const _0x5459e4=_0x288498;return _0x30f521[_0x5459e4(0x23e0)]('admin')?_0x52ce68['resolve'](_0x5459e4(0x541),{'fields':_0x5459e4(0xc2f),'sort':_0x5459e4(0x12f2),'limit':0xa,'offset':0x0}):_0x52ce68[_0x5459e4(0x2922)]('userProfile@getResources',{'id':_0x30f521[_0x5459e4(0xb12)]()['userProfileId'],'section':'MailAccounts','fields':_0x5459e4(0xc2f),'sort':_0x5459e4(0x12f2),'limit':0xa,'offset':0x0});}]},'authenticate':!![],'bodyClass':_0x288498(0x6de)})[_0x288498(0x13d6)]('app.dashboards.general.sms',{'url':'/sms','data':{'selectedTab':0x4},'views':{'sms':{'templateUrl':_0x3072e7,'controller':_0x288498(0x25b8)}},'resolve':{'smsInteractions':[_0x288498(0x362),function(_0x3f0ad4){const _0x392e01=_0x288498;return _0x3f0ad4[_0x392e01(0x2922)](_0x392e01(0x10f0),{'createdAt':{'$gte':_0x2deec6()()['startOf'](_0x392e01(0x1066))['utcOffset'](0x0,!![])[_0x392e01(0x22b0)](),'$lte':_0x2deec6()()[_0x392e01(0x824)]('day')[_0x392e01(0x65f)](0x0,!![])[_0x392e01(0x22b0)]()},'nolimit':!![]});}],'smsAccounts':[_0x288498(0x362),_0x288498(0xa87),function(_0x557ad1,_0x4c90e6){const _0x3c5883=_0x288498;return _0x4c90e6[_0x3c5883(0x23e0)](_0x3c5883(0x174b))?_0x557ad1['resolve'](_0x3c5883(0xe51),{'fields':_0x3c5883(0x1890),'sort':_0x3c5883(0x12f2),'limit':0xa,'offset':0x0}):_0x557ad1[_0x3c5883(0x2922)](_0x3c5883(0x938),{'id':_0x4c90e6[_0x3c5883(0xb12)]()[_0x3c5883(0x209a)],'section':_0x3c5883(0xda3),'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':_0x3c5883(0x12f2),'limit':0xa,'offset':0x0});}]},'authenticate':!![],'bodyClass':_0x288498(0x6de)})['state'](_0x288498(0x1575),{'url':'/openchannel','data':{'selectedTab':0x5},'views':{'openchannel':{'templateUrl':_0x2c3ae5,'controller':_0x288498(0x166e)}},'resolve':{'openchannelInteractions':['apiResolver',function(_0x160429){const _0x326ebf=_0x288498;return _0x160429[_0x326ebf(0x2922)](_0x326ebf(0x1d82),{'createdAt':{'$gte':_0x2deec6()()[_0x326ebf(0x1fcc)](_0x326ebf(0x1066))[_0x326ebf(0x65f)](0x0,!![])[_0x326ebf(0x22b0)](),'$lte':_0x2deec6()()['endOf']('day')['utcOffset'](0x0,!![])[_0x326ebf(0x22b0)]()},'nolimit':!![]});}],'openchannelAccounts':[_0x288498(0x362),_0x288498(0xa87),function(_0x33e572,_0x31f43c){const _0x48fcc7=_0x288498;return _0x31f43c[_0x48fcc7(0x23e0)](_0x48fcc7(0x174b))?_0x33e572[_0x48fcc7(0x2922)](_0x48fcc7(0x14c3),{'fields':'createdAt,updatedAt,id,name,key,token,replyUri,ListId,waitForTheAssignedAgent,mapKey,description,receiveUri,notificationSound,notificationShake,notificationTemplate','sort':_0x48fcc7(0x12f2),'nolimit':!![]}):_0x33e572[_0x48fcc7(0x2922)](_0x48fcc7(0x938),{'id':_0x31f43c[_0x48fcc7(0xb12)]()[_0x48fcc7(0x209a)],'section':_0x48fcc7(0x5f9),'fields':_0x48fcc7(0x250c),'sort':_0x48fcc7(0x12f2),'nolimit':!![]});}]},'authenticate':!![],'bodyClass':_0x288498(0x6de)})['state'](_0x288498(0x1b03),{'url':_0x288498(0x231b),'data':{'selectedTab':0x6},'views':{'fax':{'templateUrl':_0xb15ad6,'controller':_0x288498(0x8b9)}},'resolve':{'faxInteractions':[_0x288498(0x362),function(_0x503ed7){const _0x1b0782=_0x288498;return _0x503ed7[_0x1b0782(0x2922)](_0x1b0782(0x1440),{'createdAt':{'$gte':_0x2deec6()()['startOf'](_0x1b0782(0x1066))[_0x1b0782(0x65f)](0x0,!![])[_0x1b0782(0x22b0)](),'$lte':_0x2deec6()()[_0x1b0782(0x824)](_0x1b0782(0x1066))[_0x1b0782(0x65f)](0x0,!![])[_0x1b0782(0x22b0)]()},'nolimit':!![]});}],'faxAccounts':[_0x288498(0x362),_0x288498(0xa87),function(_0x3f1b06,_0x3ced34){const _0x565bbc=_0x288498;return _0x3ced34[_0x565bbc(0x23e0)](_0x565bbc(0x174b))?_0x3f1b06[_0x565bbc(0x2922)]('faxAccount@get',{'fields':_0x565bbc(0xa6e),'sort':_0x565bbc(0x12f2),'limit':0xa,'offset':0x0}):_0x3f1b06[_0x565bbc(0x2922)](_0x565bbc(0x938),{'id':_0x3ced34[_0x565bbc(0xb12)]()[_0x565bbc(0x209a)],'section':_0x565bbc(0x17d1),'fields':_0x565bbc(0xa6e),'sort':_0x565bbc(0x12f2),'limit':0xa,'offset':0x0});}]},'authenticate':!![],'bodyClass':_0x288498(0x6de)})[_0x288498(0x13d6)]('app.dashboards.general.whatsapp',{'url':_0x288498(0x4a8),'data':{'selectedTab':0x7},'views':{'whatsapp':{'templateUrl':_0x1f2a38,'controller':'UserWhatsappDashboardGeneralController\x20as\x20vm'}},'resolve':{'whatsappInteractions':[_0x288498(0x362),function(_0x1d8b57){const _0x43ab79=_0x288498;return _0x1d8b57[_0x43ab79(0x2922)](_0x43ab79(0xb76),{'createdAt':{'$gte':_0x2deec6()()['startOf'](_0x43ab79(0x1066))[_0x43ab79(0x65f)](0x0,!![])[_0x43ab79(0x22b0)](),'$lte':_0x2deec6()()[_0x43ab79(0x824)]('day')[_0x43ab79(0x65f)](0x0,!![])['format']()},'nolimit':!![]});}],'whatsappAccounts':[_0x288498(0x362),_0x288498(0xa87),function(_0x349585,_0x386dc7){const _0x3de53b=_0x288498;return _0x386dc7[_0x3de53b(0x23e0)](_0x3de53b(0x174b))?_0x349585[_0x3de53b(0x2922)]('whatsappAccount@get',{'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':_0x3de53b(0x12f2),'limit':0xa,'offset':0x0}):_0x349585[_0x3de53b(0x2922)]('userProfile@getResources',{'id':_0x386dc7[_0x3de53b(0xb12)]()['userProfileId'],'section':_0x3de53b(0xc7c),'fields':_0x3de53b(0x172e),'sort':_0x3de53b(0x12f2),'limit':0xa,'offset':0x0});}]},'authenticate':!![],'bodyClass':_0x288498(0x6de)});}angular[_0x313a4d(0x2528)](_0x313a4d(0x2601),[])[_0x313a4d(0x989)](_0x2d6e9c)[_0x313a4d(0x28f0)](_0x313a4d(0xbc2),_0x4cabdf)[_0x313a4d(0x28f0)](_0x313a4d(0x13b4),_0x271689)['controller'](_0x313a4d(0x26f8),_0x4466d7)[_0x313a4d(0x28f0)]('UserMailDashboardGeneralController',_0x5c2fe6)[_0x313a4d(0x28f0)](_0x313a4d(0x700),_0x7ad1d6)[_0x313a4d(0x28f0)](_0x313a4d(0x14d),_0x1f610a)['filter']('secToTime',_0x1e5231)['factory'](_0x313a4d(0x128f),_0x371bb5)['factory']('initializeRealtimeCampaign',_0x13b7e5)[_0x313a4d(0x28f0)]('UserDashboardGeneralController',_0x460ee3)['controller']('UserVoiceDashboardGeneralController',_0x577485)[_0x313a4d(0x28f0)](_0x313a4d(0xbf2),_0x5b4dfa);;const _0x56fd44=_0x4acfac['p']+_0x313a4d(0x9b3);;const _0x59999a=_0x4acfac['p']+_0x313a4d(0x5d6);var _0x5a43c9=_0x4acfac(0x1d2),_0x4cbf1a=_0x4acfac['n'](_0x5a43c9);;_0x1f1003['$inject']=[_0x313a4d(0x1fc2),_0x313a4d(0x214b),_0x313a4d(0x1aa9),_0x313a4d(0xa87)],_0x14eb60['$inject']=[_0x313a4d(0x910),_0x313a4d(0x1abe),'$mdDialog',_0x313a4d(0x1aa9),_0x313a4d(0x214b),_0x313a4d(0x4d8),_0x313a4d(0xa87),'api',_0x313a4d(0x279d),'toasty',_0x313a4d(0xdfc),_0x313a4d(0x170b),_0x313a4d(0x1c5b),_0x313a4d(0x4b7),_0x313a4d(0x2690),_0x313a4d(0x15b9),_0x313a4d(0x3db),'msUtils'];function _0x14eb60(_0x4453ad,_0xcfb811,_0x4ddda2,_0x2c7547,_0x42e70c,_0x176a1e,_0x4a5f0a,_0x452fc4,_0x128f83,_0xc203bb,_0x4f2b92,_0x4912e2,_0x1d7647,_0x3b4cf2,_0x37601a,_0x246bc2,_0x11af79,_0x25da19){const _0x420fa1=_0x313a4d,_0x3c1268=this;_0x3c1268['license']=_0x37601a,_0x3c1268[_0x420fa1(0x15b9)]=_0x246bc2,_0x3c1268[_0x420fa1(0x17dc)]=_0x25da19[_0x420fa1(0x17dc)](),_0x3c1268['user']=_0x4a5f0a[_0x420fa1(0xb12)](),_0x3c1268[_0x420fa1(0x276a)]=0x0,_0x3c1268[_0x420fa1(0x237b)]={},_0x3c1268[_0x420fa1(0x16fe)]={},_0x3c1268[_0x420fa1(0x2422)]={},_0x3c1268[_0x420fa1(0xdfc)]=_0x4f2b92||{'count':0x0,'rows':[]},_0x3c1268['globalLists']=_0x4912e2||{'count':0x0,'rows':[]},_0x3c1268[_0x420fa1(0x1c5b)]=_0x1d7647||{'count':0x0,'rows':[]},_0x3c1268[_0x420fa1(0x4b7)]=_0x3b4cf2||{'count':0x0,'rows':[]},_0x3c1268[_0x420fa1(0x12c4)]=_0x4adf2f,_0x3c1268[_0x420fa1(0x2fd)]=_0x4271b0,_0x3c1268[_0x420fa1(0xdb8)]=_0x50c72d,_0x3c1268[_0x420fa1(0xd14)]=_0x298802,_0x3c1268[_0x420fa1(0x2614)]=_0x5d0636,_0x3c1268['addTab']=_0xbaa1c,_0x3c1268[_0x420fa1(0x10c3)]=_0x55b5b0,_0x3c1268[_0x420fa1(0x85a)]=_0x1ec5d4,_0x3c1268['closeTab']=_0x41f692,_0x128f83['on'](_0x420fa1(0x114d),_0x12bb7b),_0x128f83['on']('trigger:jscripty',_0x22d3a7),_0x128f83['on'](_0x420fa1(0x11dc),_0x3e246d),_0x128f83['on']('trigger:browser:url',_0x4659b0),_0x128f83['on'](_0x420fa1(0x70d),_0x6f0e69),_0x128f83['on'](_0x420fa1(0x28ef),_0x3a0aaf),_0x128f83['on'](_0x420fa1(0x1f5e),_0x564215),_0x128f83['on'](_0x420fa1(0xeb8),_0x26e3ac),_0x128f83['on'](_0x420fa1(0x247e),_0x26e3ac),_0x434970();function _0x434970(){const _0x28193c=_0x420fa1;let _0x3a31ad=_0x2c7547[_0x28193c(0x1c39)]['getItem'](_0x28193c(0x327)+_0x3c1268[_0x28193c(0xe7b)]['id']);if(_0x3a31ad)try{_0x3a31ad=JSON[_0x28193c(0x975)](_0x3a31ad),_0x3c1268[_0x28193c(0x16fe)]=_0x3a31ad[_0x28193c(0x16fe)]?_0x3a31ad[_0x28193c(0x16fe)]:{},_0x3c1268[_0x28193c(0x276a)]=_0x3a31ad[_0x28193c(0x276a)]?_0x3a31ad[_0x28193c(0x276a)]:0x0,_0x560d32(_0x3c1268['tabs'][_0x3c1268[_0x28193c(0x276a)]]);}catch(_0x1fbb9e){console[_0x28193c(0x1980)](_0x1fbb9e);}}function _0x1ec5d4(_0x509265){const _0x1d9425=_0x420fa1,_0x455f63={};for(const _0x18d2dd in _0x3c1268[_0x1d9425(0x16fe)]){typeof _0x3c1268[_0x1d9425(0x16fe)][_0x18d2dd]!=='undefined'&&(_0x455f63[_0x18d2dd]=_0x3f65c0()['pick'](_0x3c1268[_0x1d9425(0x16fe)][_0x18d2dd],[_0x1d9425(0x1142),_0x1d9425(0x1189),_0x1d9425(0x2894),'icon',_0x1d9425(0x15bb),'autoCreate','id',_0x1d9425(0x1a2e),'badges']),!_0x3f65c0()[_0x1d9425(0x1b36)](_0x3c1268['tabs'][_0x18d2dd]['contact'])&&(_0x455f63[_0x18d2dd]['contact']=_0x3f65c0()[_0x1d9425(0x40e)](_0x3c1268[_0x1d9425(0x16fe)][_0x18d2dd][_0x1d9425(0x1662)],['id',_0x1d9425(0xb7c)])),!_0x3f65c0()['isNil'](_0x3c1268[_0x1d9425(0x16fe)][_0x18d2dd]['calls'])&&(_0x455f63[_0x18d2dd][_0x1d9425(0x197c)]=_0x3c1268[_0x1d9425(0x16fe)][_0x18d2dd][_0x1d9425(0x197c)]),_0x3c1268[_0x1d9425(0x16fe)][_0x18d2dd][_0x1d9425(0xe80)]&&(_0x455f63[_0x18d2dd][_0x1d9425(0xe80)]=_0x3f65c0()['pick'](_0x3c1268['tabs'][_0x18d2dd]['interaction'],['id',_0x1d9425(0x534),_0x1d9425(0x658),'ChatWebsiteId',_0x1d9425(0x74d),_0x1d9425(0x1481),_0x1d9425(0x158a),'closed',_0x1d9425(0x1d96)])));}let _0x9468a9=JSON[_0x1d9425(0x975)](_0x2c7547[_0x1d9425(0x1c39)][_0x1d9425(0x1519)]('motion2.user:'+_0x3c1268[_0x1d9425(0xe7b)]['id']));_0x9468a9?(_0x9468a9[_0x1d9425(0x16fe)]=_0x455f63,_0x9468a9[_0x1d9425(0x276a)]=_0x3c1268['currentTab']):_0x9468a9={'tabs':_0x455f63,'currentTab':_0x3c1268[_0x1d9425(0x276a)]},_0x2c7547[_0x1d9425(0x1c39)][_0x1d9425(0xc32)]('motion2.user:'+_0x3c1268['user']['id'],JSON['stringify'](_0x9468a9)),_0x509265&&_0x560d32(_0x509265);}function _0x560d32(_0xcd06ca){const _0x4a94ca=_0x420fa1;if(_0x3f65c0()[_0x4a94ca(0x1b36)](_0xcd06ca)||_0xcd06ca&&_0xcd06ca['type']==='interaction'){const _0x11d7cc={'id':_0x3c1268[_0x4a94ca(0xe7b)]['id'],'online':!![],'capacity':{'mail':0x0,'fax':0x0,'sms':0x0,'whatsapp':0x0,'openchannel':0x0,'chat':0x0},'interaction':{'mail':[],'fax':[],'sms':[],'whatsapp':[],'openchannel':[],'chat':[]}};for(const _0x57c665 in _0x3c1268[_0x4a94ca(0x16fe)]){typeof _0x3c1268[_0x4a94ca(0x16fe)][_0x57c665]!==_0x4a94ca(0x2274)&&(typeof _0x11d7cc[_0x4a94ca(0x1d2a)][_0x3c1268['tabs'][_0x57c665][_0x4a94ca(0x2894)]]!=='undefined'&&_0x3c1268['tabs'][_0x57c665][_0x4a94ca(0xe80)]&&!_0x3c1268[_0x4a94ca(0x16fe)][_0x57c665][_0x4a94ca(0xe80)][_0x4a94ca(0x1943)]&&(_0x11d7cc['capacity'][_0x3c1268['tabs'][_0x57c665]['channel']]+=0x1,_0x11d7cc[_0x4a94ca(0xe80)][_0x3c1268['tabs'][_0x57c665][_0x4a94ca(0x2894)]]['push'](_0x3c1268[_0x4a94ca(0x16fe)][_0x57c665][_0x4a94ca(0xe80)]['id'])));}if(!_0x3f65c0()[_0x4a94ca(0x15c9)](_0x3c1268['agentCapacity'],_0x11d7cc[_0x4a94ca(0x1d2a)]))return _0x3c1268[_0x4a94ca(0x2422)]=_0x11d7cc[_0x4a94ca(0x1d2a)],_0x452fc4['rpc'][_0x4a94ca(0xea1)](_0x11d7cc);}}function _0x41f692(_0x44a159){const _0x2b7f84=_0x420fa1;let _0x44b8fc=![];const _0x144e01=_0x4ddda2['confirm']()[_0x2b7f84(0x1189)](_0x44a159[_0x2b7f84(0x1142)]===_0x2b7f84(0xe80)?'Do\x20you\x20want\x20to\x20close\x20the\x20interaction?':_0x2b7f84(0x2921)+_0x44a159[_0x2b7f84(0x1142)]+'?')[_0x2b7f84(0x199c)](_0x44a159[_0x2b7f84(0x1142)]===_0x2b7f84(0xe80)?'':_0x2b7f84(0xe57)+_0x44a159[_0x2b7f84(0x1142)]+_0x2b7f84(0x11f))['ariaLabel']('Close\x20Contact')['ok'](_0x44a159[_0x2b7f84(0x1142)]===_0x2b7f84(0xe80)?_0x2b7f84(0x14c7):'OK')['cancel'](_0x44a159['type']===_0x2b7f84(0xe80)?'NO':_0x2b7f84(0x39a));if(_0x44a159[_0x2b7f84(0x1a2e)]){let _0x1cc58f=![];_0x3f65c0()[_0x2b7f84(0x1df5)](_0x44a159[_0x2b7f84(0x197c)],function(_0x2ebb74){const _0x15e42d=_0x2b7f84;_0x2ebb74[_0x15e42d(0xc9e)]&&(_0x1cc58f=!![]);});if(_0x44a159[_0x2b7f84(0x1142)]==='contact'&&_0x44a159['calls'][_0x2b7f84(0x402)]>0x0){let _0x4f541a=undefined;if(_0x1cc58f)_0x4f541a=_0x4ddda2[_0x2b7f84(0x861)]()[_0x2b7f84(0x1189)](_0x2b7f84(0xf0))[_0x2b7f84(0x199c)](_0x2b7f84(0x1c23))['ok']('OK'),_0x4ddda2[_0x2b7f84(0x2615)](_0x4f541a)[_0x2b7f84(0x1ec6)](function(){_0x4f541a=undefined;});else return _0x144e01[_0x2b7f84(0xf3b)][_0x2b7f84(0x199c)]='There\x20is\x20a\x20call\x20that\x20hasn\x27t\x20been\x20disposed\x20yet.',_0x4ddda2['show'](_0x144e01)[_0x2b7f84(0x146b)](function(){_0x55b5b0(_0x44a159);});}else _0x55b5b0(_0x44a159);}else{const _0x81996d=_0x3c1268[_0x2b7f84(0xe7b)][_0x2b7f84(0x211c)]||_0x3c1268['user']['chatPause']||_0x3c1268['user'][_0x2b7f84(0x1e9e)]||_0x3c1268[_0x2b7f84(0xe7b)][_0x2b7f84(0xcc5)]||_0x3c1268[_0x2b7f84(0xe7b)][_0x2b7f84(0x25c4)];return _0x44b8fc=![],_0x44a159[_0x2b7f84(0x1142)]==='interaction'&&(_0x44b8fc=_0x44a159[_0x2b7f84(0xe80)]['Account'][_0x2b7f84(0xc9e)]),_0x4ddda2[_0x2b7f84(0x2615)](_0x144e01)[_0x2b7f84(0x146b)](function(){const _0x5ed4f6=_0x2b7f84;_0x44a159[_0x5ed4f6(0x1142)]===_0x5ed4f6(0xe80)&&_0x4ddda2['show']({'controller':_0x5ed4f6(0xe23),'controllerAs':'vm','templateUrl':_0x56fd44,'parent':angular[_0x5ed4f6(0x1853)](_0x176a1e[_0x5ed4f6(0x2586)]),'onRemoving':function(){const _0x2fda9c=_0x5ed4f6;_0x3c1268[_0x2fda9c(0xe7b)]&&_0x44b8fc&&!_0x81996d&&_0x452fc4[_0x2fda9c(0xe7b)][_0x2fda9c(0x974)]({'id':_0x3c1268[_0x2fda9c(0xe7b)]['id']})[_0x2fda9c(0x2945)]['catch'](function(_0x18ca8f){const _0x399cf4=_0x2fda9c;console[_0x399cf4(0x1980)](_0x18ca8f);});},'clickOutsideToClose':!_0x44b8fc,'escapeToClose':!_0x44b8fc,'locals':{'user':_0x3c1268[_0x5ed4f6(0xe7b)],'channel':_0x44a159[_0x5ed4f6(0x2894)],'interaction':_0x44a159[_0x5ed4f6(0xe80)]}}),_0x55b5b0(_0x44a159);})[_0x2b7f84(0x129e)](function(){const _0x1d15c0=_0x2b7f84;_0x44a159[_0x1d15c0(0x1142)]===_0x1d15c0(0xe80)&&_0x55b5b0(_0x44a159);});}}function _0x146526(_0x4ec062){const _0x38d725=_0x420fa1;if(_0x4ec062[_0x38d725(0x2894)]&&_0x4ec062[_0x38d725(0xe80)])return _0x452fc4[_0x38d725(0xe7b)][_0x38d725(0x2640)+_0x3f65c0()[_0x38d725(0x21cf)](_0x4ec062[_0x38d725(0x2894)])+_0x38d725(0x1fbc)]({'id':_0x3c1268[_0x38d725(0xe7b)]['id'],'ids':[_0x4ec062[_0x38d725(0xe80)]['id']]})[_0x38d725(0x2945)][_0x38d725(0x129e)](function(_0x2b4244){console['error'](_0x2b4244);});}function _0x55b5b0(_0x49aa44){const _0x53755d=_0x420fa1;if(_0x3c1268[_0x53755d(0x16fe)][_0x49aa44['id']]){_0x146526(_0x3c1268['tabs'][_0x49aa44['id']]),delete _0x3c1268[_0x53755d(0x16fe)][_0x49aa44['id']],_0x3c1268[_0x53755d(0x276a)]=0x0,_0x1ec5d4(_0x49aa44);if(_0x49aa44[_0x53755d(0x1142)]===_0x53755d(0xe80))return _0x452fc4[_0x49aa44[_0x53755d(0x2894)]+_0x53755d(0x2297)]['get']({'id':_0x49aa44[_0x53755d(0xe80)]['id']})[_0x53755d(0x2945)][_0x53755d(0x146b)](function(_0x5298c6){const _0x1b7407=_0x53755d;return _0x452fc4['user']['remove'+_0x3f65c0()[_0x1b7407(0x21cf)](_0x49aa44[_0x1b7407(0x2894)])+'Interactions']({'id':_0x3c1268['user']['id'],'ids':[_0x5298c6['id']]})[_0x1b7407(0x2945)];})[_0x53755d(0x129e)](function(_0x1aeb33){const _0x394493=_0x53755d;console[_0x394493(0x1980)](_0x1aeb33);});}}function _0xbaa1c(_0x386dc8){const _0x560db0=_0x420fa1;_0x386dc8['id']=_0x3f65c0()[_0x560db0(0x28e8)](0x2540be400),_0x386dc8[_0x560db0(0x176c)]=new Date(),_0x386dc8[_0x560db0(0x1a2e)]=![],_0x386dc8[_0x560db0(0x3a4)]=0x0,_0x3c1268[_0x560db0(0x16fe)][_0x386dc8['id']]=_0x386dc8,_0x3c1268[_0x560db0(0x276a)]=_0x386dc8['id'],_0x1ec5d4(_0x386dc8);}function _0x4271b0(_0xdb8024){return _0xdb8024===_0x3c1268['currentTab'];}function _0x4adf2f(_0x584177){const _0x5368c6=_0x420fa1;_0x3c1268['currentTab']=_0x584177,_0x1ec5d4(_0x3c1268[_0x5368c6(0x16fe)][_0x584177]);}function _0x50c72d(_0x20690b){const _0x4a49f9=_0x420fa1;return _0x3f65c0()[_0x4a49f9(0xc84)](_0x3c1268[_0x4a49f9(0x16fe)],function(_0x5d0b55){const _0x2d4271=_0x4a49f9;return _0x5d0b55['type']===_0x2d4271(0xe80)&&_0x5d0b55[_0x2d4271(0xe80)]&&_0x5d0b55[_0x2d4271(0xe80)]['id']==_0x20690b[_0x2d4271(0xd7d)]&&_0x5d0b55[_0x2d4271(0x2894)]==_0x20690b[_0x2d4271(0x2894)];});}function _0x38aeed(_0x2b91c9){const _0x256c8f=_0x420fa1;let _0x1c0f63='';if(_0x2b91c9){if(_0x2b91c9['firstName']||_0x2b91c9[_0x256c8f(0xee4)])_0x2b91c9[_0x256c8f(0x1ed4)]&&(_0x1c0f63+=_0x2b91c9[_0x256c8f(0x1ed4)]+'\x20'),_0x2b91c9[_0x256c8f(0xee4)]&&(_0x1c0f63+=_0x2b91c9['lastName']);else _0x2b91c9[_0x256c8f(0x1d55)]&&(_0x1c0f63=_0x2b91c9[_0x256c8f(0x1d55)]);}return _0x1c0f63;}function _0x2a922d(_0x423c2d){const _0x4d384a=_0x420fa1;switch(_0x423c2d){case _0x4d384a(0xa7f):return'icon-hangouts';case'mail':return _0x4d384a(0x1c3d);case _0x4d384a(0x929):return _0x4d384a(0x1580);case _0x4d384a(0x7d9):return _0x4d384a(0x9b8);case'fax':return _0x4d384a(0xc0e);case'whatsapp':return'icon-whatsapp';default:return'icon-hangouts';}}function _0x15e56e(_0x30ad46){const _0x454e5b=_0x420fa1;switch(_0x30ad46){case'chat':return'green-A700';case _0x454e5b(0x56b):return _0x454e5b(0x109e);case _0x454e5b(0x929):return _0x454e5b(0x2632);case _0x454e5b(0x7d9):return'amber-A200';case'fax':return _0x454e5b(0x276);case _0x454e5b(0xff9):return _0x454e5b(0x510);default:return'grey';}}function _0x298802(_0x24f124,_0x11009b){const _0x203a8e=_0x420fa1,_0x4f6679={'type':_0x203a8e(0x1662),'title':_0x24f124?_0x38aeed(_0x24f124):_0x42e70c[_0x203a8e(0xde)]('APP.NEW_CONTACT'),'icon':'icon-account-circle','color':_0x203a8e(0x10f),'contact':_0x24f124,'calls':_0x11009b?[_0x11009b]:[],'autoCreate':_0x11009b?_0x11009b[_0x203a8e(0x239b)]:0x0};if(_0x11009b){if(_0x11009b[_0x203a8e(0x1d22)]&&_0x11009b[_0x203a8e(0x1d22)]===_0x203a8e(0x2842))_0x11009b[_0x203a8e(0xefe)]=_0x11009b[_0x203a8e(0x2190)]?_0x2deec6()(_0x11009b[_0x203a8e(0x2190)],_0x203a8e(0x1ce2))[_0x203a8e(0x2646)]():new Date();else{if(_0x11009b[_0x203a8e(0x4f8)]){const _0x51da77=_0x11009b['uniqueid'][_0x203a8e(0x10c8)]('.')[0x0];_0x11009b[_0x203a8e(0xefe)]=_0x51da77?new Date(parseInt(_0x51da77)*0x3e8):new Date();}}(_0x11009b[_0x203a8e(0x751)]||_0x11009b[_0x203a8e(0x1660)])&&_0x40eb2e(_0x11009b);}if(_0x24f124){const _0x2cc172=_0x3f65c0()[_0x203a8e(0xc84)](_0x3c1268[_0x203a8e(0x16fe)],function(_0x1982ab){const _0x246ae7=_0x203a8e;if(_0x1982ab[_0x246ae7(0x1662)]&&_0x1982ab['contact']['id'])return _0x1982ab[_0x246ae7(0x1142)]===_0x246ae7(0x1662)&&_0x1982ab[_0x246ae7(0x1662)]&&_0x1982ab[_0x246ae7(0x1662)]['id']==_0x24f124['id'];return _0x1982ab['type']===_0x246ae7(0x1662)&&_0x1982ab[_0x246ae7(0x1662)]&&_0x1982ab[_0x246ae7(0x1662)]['phone']==_0x24f124[_0x246ae7(0x1d55)];});if(_0x2cc172){if(_0x11009b)return _0x452fc4['voiceCallReport'][_0x203a8e(0x16b4)]({'uniqueid':_0x11009b['uniqueid']})[_0x203a8e(0x2945)][_0x203a8e(0x146b)](function(_0x374c3b){const _0x99245=_0x203a8e;_0x374c3b&&_0x374c3b[_0x99245(0x19c7)]['length']>0x0&&(_0x11009b[_0x99245(0x1299)]=_0x3f65c0()['first'](_0x374c3b[_0x99245(0x19c7)])['endtime']);if(_0x2cc172[_0x99245(0x197c)]){const _0x27eac5=_0x3f65c0()[_0x99245(0xc84)](_0x2cc172['calls'],function(_0x2cfdee){const _0x185b05=_0x99245;return _0x2cfdee[_0x185b05(0x4f8)]===_0x11009b[_0x185b05(0x4f8)];});!_0x27eac5&&_0x2cc172[_0x99245(0x197c)][_0x99245(0x1f47)](_0x11009b);}else _0x2cc172[_0x99245(0x197c)]=[_0x11009b];_0x3c1268['currentTab']=_0x2cc172['id'];});}else{if(_0x24f124[_0x203a8e(0xb7c)])return _0x452fc4[_0x203a8e(0x9e1)][_0x203a8e(0x16b4)]({'ListId':_0x24f124[_0x203a8e(0xb7c)]})[_0x203a8e(0x2945)]['then'](function(_0x5cfcbb){const _0x41bf2c=_0x203a8e;return _0x4f6679[_0x41bf2c(0x2647)]=_0x5cfcbb,_0x452fc4[_0x41bf2c(0xf03)][_0x41bf2c(0x2328)]({'id':_0x24f124['ListId']})[_0x41bf2c(0x2945)];})[_0x203a8e(0x146b)](function(_0x234fe6){const _0x2b0690=_0x203a8e;_0x4f6679[_0x2b0690(0x10ba)]=_0x234fe6;})['catch'](_0x3b8e06())[_0x203a8e(0x1ec6)](function(){_0xbaa1c(_0x4f6679);});else _0xbaa1c(_0x4f6679);}}else _0xbaa1c(_0x4f6679);}function _0x5d0636(_0x55ae2d,_0x21a622){const _0x533b3d=_0x420fa1;let _0x2747f1=_0x3f65c0()['find'](_0x3c1268[_0x533b3d(0x16fe)],function(_0x338d2b){const _0xd3e10c=_0x533b3d;return _0x338d2b[_0xd3e10c(0x1142)]===_0xd3e10c(0xe80)&&_0x338d2b['interaction']&&_0x338d2b[_0xd3e10c(0xe80)]['id']===_0x21a622['id']&&_0x338d2b[_0xd3e10c(0x2894)]===_0x55ae2d;});_0x2747f1?(_0x2747f1['isDraft']=_0x21a622[_0x533b3d(0x1831)]||![],_0x3c1268['currentTab']=_0x2747f1['id']):(_0x2747f1={'type':'interaction','title':_0x55ae2d?_0x55ae2d[_0x533b3d(0x1c37)]():_0x533b3d(0x7d9),'icon':_0x2a922d(_0x55ae2d),'color':_0x15e56e(_0x55ae2d),'channel':_0x55ae2d,'interaction':_0x21a622,'isDraft':_0x21a622['isDraft']||![]},_0xbaa1c(_0x2747f1));}function _0x3e29d7(_0x8e10e9){const _0x458dc9=_0x420fa1,_0x1bd784={'autoClose':!![],'duration':0xa,'showOnPageHidden':!![],'icon':_0x458dc9(0x93d),'body':_0x8e10e9[_0x458dc9(0x1c72)]?_0x458dc9(0x367)+_0x8e10e9[_0x458dc9(0x1c72)]:'','focusOnclick':!![],'closeOnClick':!![]};_0x11af79['show'](_0x8e10e9[_0x458dc9(0x1189)],_0x1bd784);}function _0x4840f9(_0x36d288){const _0x594b1a=_0x420fa1;_0x11af79[_0x594b1a(0x1335)]()?_0x11af79[_0x594b1a(0x1eb9)]()[_0x594b1a(0x146b)](function(){_0x3e29d7(_0x36d288);},function(_0x1e8d84){const _0x5db095=_0x594b1a;console[_0x5db095(0x1980)]('Please\x20enable\x20browser\x20notifications!',_0x1e8d84);}):console['error']('Browser\x20notifications\x20are\x20not\x20supported\x20by\x20the\x20browser.\x20Normal\x20notifications\x20will\x20be\x20used.');}function _0x3a0aaf(_0x560c15){const _0x67f71d=_0x420fa1;if(_0x560c15&&_0x560c15[_0x67f71d(0x4f8)]){_0x4840f9(_0x560c15);const _0x355ea0=_0x50c72d(_0x560c15);if(_0x355ea0){if(_0x452fc4[_0x560c15[_0x67f71d(0x2894)]+_0x67f71d(0xe2)])return _0x3c1268['currentTab']!==_0x355ea0['id']&&(_0x355ea0[_0x67f71d(0x3a4)]+=0x1),_0x452fc4[_0x560c15[_0x67f71d(0x2894)]+'Message'][_0x67f71d(0x204a)]({'id':_0x560c15['id'],'UserId':_0x3c1268[_0x67f71d(0xe7b)]['id']})[_0x67f71d(0x2945)][_0x67f71d(0x129e)](_0x3b8e06());}else _0xc203bb[_0x67f71d(0x2070)]({'title':_0x560c15['title'],'msg':_0x560c15[_0x67f71d(0x2362)]||'','showClose':![],'clickToClose':![],'timeout':![],'sound':_0x560c15[_0x67f71d(0x126d)],'html':!![],'shake':_0x560c15[_0x67f71d(0x641)]||![],'onAdd':function(){const _0x3a9a16=_0x67f71d;_0x3c1268[_0x3a9a16(0x237b)][_0x560c15[_0x3a9a16(0x4f8)]]=this['id'];},'onAccept':function(){const _0x8e4159=_0x67f71d;_0x564215(_0x560c15);if(_0x452fc4[_0x560c15['channel']+_0x8e4159(0xe2)])return _0x452fc4[_0x560c15[_0x8e4159(0x2894)]+_0x8e4159(0xe2)][_0x8e4159(0x204a)]({'id':_0x560c15['id'],'UserId':_0x3c1268[_0x8e4159(0xe7b)]['id'],'manual':!![]})[_0x8e4159(0x2945)][_0x8e4159(0x146b)](function(_0x25ca77){const _0x4aefd6=_0x8e4159;_0x5d0636(_0x25ca77[_0x4aefd6(0x2894)],_0x25ca77['interaction']),_0xc203bb['success']({'title':_0x4aefd6(0x1dc4),'msg':_0x4aefd6(0x2170)});})['catch'](_0x3b8e06());},'onReject':function(){const _0x320a70=_0x67f71d;_0x564215(_0x560c15);if(_0x452fc4[_0x560c15['channel']+_0x320a70(0xe2)])return _0x452fc4[_0x560c15['channel']+_0x320a70(0xe2)][_0x320a70(0xa6f)]({'id':_0x560c15['id'],'UserId':_0x3c1268[_0x320a70(0xe7b)]['id']})['$promise'][_0x320a70(0x146b)](function(){const _0x4595fa=_0x320a70;_0xc203bb[_0x4595fa(0x1c75)]({'title':_0x4595fa(0xf75),'msg':'Message\x20has\x20been\x20rejected!'});})[_0x320a70(0x129e)](_0x3b8e06());}});}}function _0x564215(_0x2aaa72){const _0x3e5612=_0x420fa1;_0x2aaa72&&_0x2aaa72[_0x3e5612(0x4f8)]&&(_0x3c1268[_0x3e5612(0x237b)][_0x2aaa72[_0x3e5612(0x4f8)]]&&(_0xc203bb[_0x3e5612(0x8ee)](_0x3c1268[_0x3e5612(0x237b)][_0x2aaa72[_0x3e5612(0x4f8)]]),delete _0x3c1268[_0x3e5612(0x237b)][_0x2aaa72[_0x3e5612(0x4f8)]]));}function _0x12bb7b(_0x32aae7){const _0x5deaf5=_0x420fa1;if(!_0x32aae7[_0x5deaf5(0x1471)]){_0x298802(_0x32aae7[_0x5deaf5(0x1662)],_0x32aae7['evt']);return;}_0x4ddda2[_0x5deaf5(0x2615)]({'controller':'ContactSelectionController','controllerAs':'vm','templateUrl':_0x59999a,'parent':angular[_0x5deaf5(0x1853)](_0x176a1e['body']),'locals':{'contacts':_0x32aae7[_0x5deaf5(0x1471)],'callNumber':_0x32aae7[_0x5deaf5(0x6af)][_0x5deaf5(0x27c7)]?_0x32aae7[_0x5deaf5(0x6af)][_0x5deaf5(0x2167)]:_0x32aae7[_0x5deaf5(0x6af)][_0x5deaf5(0xa5c)]}})[_0x5deaf5(0x146b)](function(_0x29654e){const _0x33a7b9=_0x5deaf5;_0x298802(_0x29654e,_0x32aae7[_0x33a7b9(0x6af)]);});}function _0x22d3a7(_0x493f7b){const _0x1d3830=_0x420fa1;return _0x452fc4[_0x1d3830(0x20c8)][_0x1d3830(0x16b4)]({'id':_0x493f7b['ProjectId']})[_0x1d3830(0x2945)][_0x1d3830(0x146b)](function(_0x483938){const _0x2e85a8=_0x1d3830;if(_0x483938){if(_0x3f65c0()['isUndefined'](_0x493f7b[_0x2e85a8(0x1697)])){try{_0x483938[_0x2e85a8(0x21e6)]=_0x4cbf1a()[_0x2e85a8(0x18c)](_0x483938[_0x2e85a8(0x21e6)],_0x3f65c0()[_0x2e85a8(0x168d)](_0x493f7b,{'user':_0x3c1268[_0x2e85a8(0xe7b)]}));}catch(_0x58a33a){console['error'](_0x58a33a);}_0xbaa1c({'type':_0x2e85a8(0x1640),'title':_0x483938[_0x2e85a8(0x19eb)],'icon':'icon-script','color':'grey','project':_0x483938,'call':_0x493f7b});}else return _0x452fc4[_0x2e85a8(0x18c3)][_0x2e85a8(0x16b4)]({'id':_0x493f7b[_0x2e85a8(0x1697)]})[_0x2e85a8(0x2945)]['then'](function(_0x150429){const _0x5ab8e6=_0x2e85a8;try{_0x483938[_0x5ab8e6(0x21e6)]=_0x4cbf1a()[_0x5ab8e6(0x18c)](_0x483938[_0x5ab8e6(0x21e6)],_0x3f65c0()[_0x5ab8e6(0x168d)](_0x493f7b,{'user':_0x3c1268['user'],'contact':_0x150429}));}catch(_0x502694){console[_0x5ab8e6(0x1980)](_0x502694);}_0xbaa1c({'type':_0x5ab8e6(0x1640),'title':_0x483938['name'],'icon':_0x5ab8e6(0x2933),'color':_0x5ab8e6(0xd8a),'project':_0x483938,'call':_0x493f7b,'contact':_0x150429});})[_0x2e85a8(0x129e)](_0x3b8e06());}})['catch'](_0x3b8e06());}function _0x4659b0(_0x45d03f){const _0x52f4b6=_0x420fa1;if(_0x45d03f&&_0x45d03f[_0x52f4b6(0x1e73)]){_0x45d03f[_0x52f4b6(0x1e73)]=_0x3f65c0()[_0x52f4b6(0x5f4)](_0x45d03f[_0x52f4b6(0x1e73)],_0x52f4b6(0x1564),''),_0x45d03f[_0x52f4b6(0x1e73)]=_0x3f65c0()[_0x52f4b6(0x5f4)](_0x45d03f[_0x52f4b6(0x1e73)],_0x52f4b6(0x22e8),'');if(_0x45d03f[_0x52f4b6(0x28f9)])switch(_0x45d03f[_0x52f4b6(0x28f9)]){case'0':_0x2c7547[_0x52f4b6(0x217a)](_0x45d03f[_0x52f4b6(0x1e73)]);break;case'1':_0x2c7547[_0x52f4b6(0x217a)](_0x45d03f[_0x52f4b6(0x1e73)],'_blank',_0x52f4b6(0x1bc2)+(_0x45d03f[_0x52f4b6(0x15d0)]||'800')+_0x52f4b6(0x14c5)+_0x45d03f['windowHeight']||0x0);break;case'2':{const _0x3ecc31={'type':_0x52f4b6(0x520),'title':_0x45d03f[_0x52f4b6(0x1e73)],'icon':_0x52f4b6(0x9b8),'color':_0x52f4b6(0x47c),'src':_0x45d03f[_0x52f4b6(0x1e73)]};_0xbaa1c(_0x3ecc31);}break;default:_0x2c7547[_0x52f4b6(0x217a)](_0x45d03f[_0x52f4b6(0x1e73)]);}else _0x2c7547[_0x52f4b6(0x217a)](_0x45d03f['uri']);}}function _0x6f0e69(_0x23385a){const _0x1a5ee3=_0x420fa1;_0x23385a&&_0x23385a[_0x1a5ee3(0x1931)]&&_0xbaa1c({'type':_0x1a5ee3(0xffa),'title':_0x23385a[_0x1a5ee3(0xa5c)]||_0x1a5ee3(0xffa),'icon':_0x1a5ee3(0x16cf),'color':'grey','html':_0x23385a[_0x1a5ee3(0x1931)]});}function _0x3e246d(_0x1a90fb){const _0x2ebeed=_0x420fa1,_0xae292f=_0x1a90fb['calleridname']&&_0x1a90fb[_0x2ebeed(0x1772)]!==_0x2ebeed(0x1344)?_0x1a90fb[_0x2ebeed(0x1772)]:_0x1a90fb['calleridnum'],_0x304066=_0x1a90fb[_0x2ebeed(0xa5c)];return _0x452fc4[_0x2ebeed(0xc29)][_0x2ebeed(0x16b4)]({'fields':'id','limit':0x1,'offset':0x0,'uniqueid':_0x1a90fb[_0x2ebeed(0x4f8)]})[_0x2ebeed(0x2945)]['then'](function(_0x479e85){const _0x2c708b=_0x2ebeed;_0x479e85['count']&&_0xbaa1c({'type':_0x2c708b(0x5e2),'title':_0xae292f+'\x20<'+_0x304066+'>','icon':_0x2c708b(0x14c9),'color':_0x2c708b(0xac3),'data':{'uniqueid':_0x1a90fb[_0x2c708b(0x4f8)]}});});}function _0x26e3ac(_0x4fd50b){const _0x2f978a=_0x420fa1;console[_0x2f978a(0xf98)](_0x2f978a(0x19b0),_0x4fd50b);for(const _0x56fd63 in _0x3c1268[_0x2f978a(0x16fe)]){if(typeof _0x3c1268[_0x2f978a(0x16fe)][_0x56fd63]!==_0x2f978a(0x2274)){const _0x28ef0c=_0x3c1268[_0x2f978a(0x16fe)][_0x56fd63];if(_0x28ef0c[_0x2f978a(0x197c)]){console[_0x2f978a(0xf98)](_0x2f978a(0x1ac8),_0x56fd63,_0x28ef0c,_0x28ef0c['calls']);const _0xd76e41=_0x3f65c0()[_0x2f978a(0x99c)](_0x28ef0c[_0x2f978a(0x197c)],function(_0x18f86c){const _0x19a871=_0x2f978a;return _0x18f86c[_0x19a871(0x4f8)]===_0x4fd50b['uniqueid'];});_0xd76e41>=0x0&&!_0x28ef0c[_0x2f978a(0x197c)][_0xd76e41][_0x2f978a(0x1299)]?(console[_0x2f978a(0xf98)](_0x2f978a(0x1d81),_0x4fd50b[_0x2f978a(0x4f8)]),_0x40eb2e(_0x28ef0c[_0x2f978a(0x197c)][_0xd76e41])):console[_0x2f978a(0xf98)]('Call\x20%s\x20not\x20found\x20or\x20already\x20completed',_0x4fd50b['uniqueid']),_0x3c1268[_0x2f978a(0x1662)]&&_0x3c1268[_0x2f978a(0x1662)]['id']&&_0xcfb811(_0x3ca1d1(_0x4fd50b[_0x2f978a(0x4f8)],_0x3c1268[_0x2f978a(0x1662)]['id'],_0x28ef0c),0x3e8);}}}_0x1ec5d4();}function _0x3ca1d1(_0x3954ff,_0xbade05,_0x437db7){return function(){const _0x6fac2=a0_0x3bb9,_0x5c04cb=_0x3f65c0()[_0x6fac2(0xc84)](_0x437db7[_0x6fac2(0x197c)],function(_0x54a69c){const _0x23c60f=_0x6fac2;return _0x54a69c[_0x23c60f(0x4f8)]===_0x3954ff;});if(_0x5c04cb)return _0x452fc4['voiceCallReport']['update']({'id':_0x3954ff,'ContactId':_0xbade05})[_0x6fac2(0x2945)]['catch'](function(_0x5e0b8a){const _0x1e64fd=_0x6fac2;console[_0x1e64fd(0x1980)](_0x5e0b8a);});};}function _0x40eb2e(_0xbc0b48){const _0x18d8f7=_0x420fa1;_0xbc0b48[_0x18d8f7(0x1299)]=new Date();}function _0x3b8e06(){return function(_0x4bf605){const _0x7c51a3=a0_0x3bb9;if(_0x4bf605[_0x7c51a3(0x107b)]===0x194)_0xc203bb[_0x7c51a3(0x195d)]({'title':_0x42e70c[_0x7c51a3(0xde)](_0x7c51a3(0x1b7b)),'msg':_0x42e70c[_0x7c51a3(0xde)](_0x7c51a3(0x1d62))});else{if(_0x4bf605[_0x7c51a3(0x524)]&&_0x4bf605[_0x7c51a3(0x524)]['errors']&&_0x4bf605['data']['errors'][_0x7c51a3(0x402)]){_0x3c1268['errors']=_0x4bf605[_0x7c51a3(0x524)][_0x7c51a3(0xcef)]||[{'message':_0x4bf605['toString'](),'type':_0x7c51a3(0x1156)}];for(let _0x51065e=0x0;_0x51065e<_0x4bf605['data']['errors'][_0x7c51a3(0x402)];_0x51065e+=0x1){_0xc203bb[_0x7c51a3(0x1980)]({'title':_0x4bf605[_0x7c51a3(0x524)][_0x7c51a3(0xcef)][_0x51065e][_0x7c51a3(0x1142)],'msg':_0x4bf605['data']['errors'][_0x51065e][_0x7c51a3(0x7fd)]});}}else _0xc203bb[_0x7c51a3(0x1980)]({'title':_0x4bf605[_0x7c51a3(0x107b)]?_0x7c51a3(0x262a)+_0x4bf605['status']+_0x7c51a3(0x1315)+_0x4bf605[_0x7c51a3(0x167f)]:_0x7c51a3(0x1156),'msg':_0x4bf605[_0x7c51a3(0x524)]?JSON['stringify'](_0x4bf605[_0x7c51a3(0x524)]['message']):_0x4bf605[_0x7c51a3(0xd5f)]()});}};}_0x4453ad[_0x420fa1(0x16ad)]('$destroy',function(){const _0x14cd85=_0x420fa1;for(const _0x10c0b8 in _0x3c1268[_0x14cd85(0x237b)]){typeof _0x3c1268[_0x14cd85(0x237b)][_0x10c0b8]!==_0x14cd85(0x2274)&&_0x564215({'uniqueid':_0x10c0b8});}_0x128f83[_0x14cd85(0x1c5f)](_0x14cd85(0x114d)),_0x128f83[_0x14cd85(0x1c5f)](_0x14cd85(0x1424)),_0x128f83['removeAllListeners']('trigger:browser:url'),_0x128f83['removeAllListeners'](_0x14cd85(0x70d)),_0x128f83[_0x14cd85(0x1c5f)](_0x14cd85(0x28ef)),_0x128f83[_0x14cd85(0x1c5f)](_0x14cd85(0x1f5e)),_0x128f83[_0x14cd85(0x1c5f)](_0x14cd85(0xeb8)),_0x128f83[_0x14cd85(0x1c5f)](_0x14cd85(0x247e));});}function _0x1f1003(_0x4dd61e,_0x488f11,_0x10ba1d,_0x180135){const _0xb6f3ef=_0x313a4d,_0x37c8f1={};let _0x4b9671={},_0x3f1fc4={},_0x3a29a5={};_0x37c8f1[_0xb6f3ef(0x5aa)]=function(){const _0x552abc=_0xb6f3ef;_0x37c8f1[_0x552abc(0x1689)]=_0x27a0d6();},_0x37c8f1[_0xb6f3ef(0x27df)]=function(_0x55b17f){const _0x46260f=_0xb6f3ef;return _0x37c8f1[_0x46260f(0x1689)]=_0x27a0d6(),_0x3f65c0()[_0x46260f(0xc84)](_0x3f65c0()[_0x46260f(0x81b)](_0x37c8f1[_0x46260f(0x1689)]),function(_0x5f576d){const _0x5357c4=_0x46260f;return _0x5f576d[_0x5357c4(0xe80)]&&_0x5f576d[_0x5357c4(0xe80)]['id']===_0x55b17f;});},_0x37c8f1['removeByInteraction']=function(_0x56fe67){const _0x5a40c8=_0xb6f3ef;_0x37c8f1[_0x5a40c8(0x1689)]=_0x27a0d6();const _0x4c572c=_0x3f65c0()['find'](_0x3f65c0()[_0x5a40c8(0x81b)](_0x37c8f1[_0x5a40c8(0x1689)]),function(_0x41122d){const _0x4e14f4=_0x5a40c8;return _0x41122d[_0x4e14f4(0xe80)]&&_0x41122d[_0x4e14f4(0xe80)]['id']===_0x56fe67;});_0x4c572c&&(delete _0x37c8f1[_0x5a40c8(0x1689)][_0x4c572c['id']],_0x40b06b());},_0x37c8f1[_0xb6f3ef(0x387)]=function(_0x9402ea){const _0x56055a=_0xb6f3ef;_0x37c8f1['drafts']=_0x27a0d6();let _0x1e27e4=_0x488f11[_0x56055a(0xde)](_0x56055a(0x77b));if(_0x9402ea[_0x56055a(0x1662)])_0x1e27e4=_0x9402ea[_0x56055a(0x1662)][_0x56055a(0x1ed4)]||_0x9402ea[_0x56055a(0x1662)][_0x56055a(0x1a2b)];else!_0x3f65c0()['isEmpty'](_0x9402ea[_0x56055a(0x7fd)][_0x56055a(0xe32)])&&(_0x1e27e4=_0x9402ea['message'][_0x56055a(0xe32)]);const _0x352907={'type':_0x56055a(0x1d96),'title':_0x9402ea[_0x56055a(0x1f8e)][_0x56055a(0x2293)]+_0x56055a(0x1315)+_0x1e27e4,'channel':_0x9402ea['channel'],'content':_0x9402ea[_0x56055a(0x7fd)],'account':_0x9402ea[_0x56055a(0x1f8e)],'interaction':_0x9402ea[_0x56055a(0xe80)],'id':_0x3f65c0()[_0x56055a(0x28e8)](0x2540be400),'openedAt':new Date(),'saved':![]};_0x37c8f1[_0x56055a(0x1689)][_0x352907['id']]=_0x352907,_0x40b06b();},_0x37c8f1['update']=function(_0x49e59b){const _0x54fec8=_0xb6f3ef;_0x37c8f1[_0x54fec8(0x1689)]=_0x27a0d6();const _0x1adc15=_0x37c8f1[_0x54fec8(0x1689)][_0x49e59b['id']];_0x1adc15&&(_0x1adc15[_0x54fec8(0x80f)]=_0x49e59b[_0x54fec8(0x7fd)],_0x37c8f1[_0x54fec8(0x1689)][_0x49e59b['id']]=_0x1adc15,_0x40b06b());},_0x37c8f1[_0xb6f3ef(0x217a)]=function(_0x59db05){const _0x1f8db8=_0xb6f3ef;_0x37c8f1[_0x1f8db8(0x1689)]=_0x27a0d6();const _0x3d1d7b=_0x37c8f1['drafts'][_0x59db05];_0x3d1d7b&&_0x4dd61e[_0x1f8db8(0x25a4)](_0x1f8db8(0x217a)+_0x3f65c0()[_0x1f8db8(0x20d1)](_0x3f1fc4)+_0x1f8db8(0x254c),_0x3d1d7b);},_0x37c8f1[_0xb6f3ef(0x2640)]=function(_0x562b45){const _0x47ed9a=_0xb6f3ef;_0x37c8f1[_0x47ed9a(0x1689)]=_0x27a0d6(),_0x37c8f1['drafts'][_0x562b45]&&(delete _0x37c8f1[_0x47ed9a(0x1689)][_0x562b45],_0x40b06b());};function _0x27a0d6(){const _0x3eac8c=_0xb6f3ef;_0x4b9671=_0x180135['getCurrentUser']();const _0x1d9a83=_0x10ba1d[_0x3eac8c(0x1c39)][_0x3eac8c(0x1519)](_0x3eac8c(0xc92)+_0x4b9671['id']);_0x1d9a83?_0x3f1fc4=JSON['parse'](_0x1d9a83)[_0x3eac8c(0xeaf)]:_0x3f1fc4='dashboard';_0x3a29a5=_0x10ba1d[_0x3eac8c(0x1c39)][_0x3eac8c(0x1519)]('motion2.home.'+_0x3f1fc4+':'+_0x4b9671['id']);if(_0x3a29a5){const _0x503941=JSON[_0x3eac8c(0x975)](_0x3a29a5);!_0x503941[_0x3eac8c(0x1689)]&&(_0x503941[_0x3eac8c(0x1689)]={}),_0x3a29a5=_0x503941;}else _0x3a29a5={'drafts':{}};return _0x3a29a5['drafts'];}function _0x40b06b(){const _0x597593=_0xb6f3ef;_0x3f65c0()[_0x597593(0x2635)](_0x37c8f1[_0x597593(0x1689)])?delete _0x3a29a5[_0x597593(0x1689)]:_0x3a29a5[_0x597593(0x1689)]=_0x37c8f1[_0x597593(0x1689)],_0x10ba1d['localStorage']['setItem'](_0x597593(0x384)+_0x3f1fc4+':'+_0x4b9671['id'],JSON[_0x597593(0x10bb)](_0x3a29a5));}return _0x37c8f1;};function _0x1355b5(){const _0x534751=_0x313a4d,_0x1602d4={'autoClose':!![],'duration':0x5,'showOnPageHidden':![]};return{'config':_0x42797c,'$get':['$q',_0x534751(0x1abe),_0x534751(0x1aa9),_0x534751(0xb73),_0x3277a7]};function _0x42797c(_0x5c5b1a){const _0x48b444=_0x534751;for(const _0x19b644 in _0x5c5b1a){typeof _0x1602d4[_0x19b644]!==_0x48b444(0x2274)&&typeof _0x5c5b1a[_0x19b644]!==_0x48b444(0x2274)&&(_0x1602d4[_0x19b644]=_0x5c5b1a[_0x19b644]);}}function _0x3277a7(_0x26f4aa,_0x546591,_0x9f18cc,_0x5953f9){const _0xaf254b=_0x534751,_0x2ca1c0=_0x9f18cc['Notification']||_0x9f18cc[_0xaf254b(0x21dd)]||_0x9f18cc[_0xaf254b(0x934)],_0x202a1e={'isSupported':_0x2d157f,'currentPermission':_0x47dd65,'requestPermission':_0x3e3589,'show':_0x257459,'permissions':{'default':_0x5953f9[_0xaf254b(0xa99)],'granted':_0x5953f9[_0xaf254b(0x28ea)],'denied':_0x5953f9['DENIED']}};return _0x202a1e;function _0x2d157f(){return!(typeof _0x2ca1c0==='undefined');}function _0x47dd65(){const _0xb10ff6=_0xaf254b;return(_0x2ca1c0||{})[_0xb10ff6(0x1d7d)];}function _0x3e3589(){const _0x427e71=_0xaf254b;if(!_0x2d157f())return _0x26f4aa[_0x427e71(0xa6f)]('Notification\x20API\x20not\x20supported');const _0x429d4c=_0x26f4aa[_0x427e71(0xce3)]();return Promise[_0x427e71(0x2922)](_0x2ca1c0['requestPermission'])==_0x2ca1c0[_0x427e71(0x1eb9)]?_0x2ca1c0[_0x427e71(0x1eb9)]()[_0x427e71(0x146b)](function(_0x4ecb1b){const _0x49a50c=_0x427e71;_0x5953f9[_0x49a50c(0x28ea)]===_0x4ecb1b?_0x429d4c['resolve'](_0x4ecb1b):_0x429d4c[_0x49a50c(0xa6f)](_0x4ecb1b);}):_0x2ca1c0[_0x427e71(0x1eb9)](function(_0x1fb8a0){const _0x2b50b2=_0x427e71;_0x5953f9['GRANTED']===_0x1fb8a0?_0x429d4c[_0x2b50b2(0x2922)](_0x1fb8a0):_0x429d4c[_0x2b50b2(0xa6f)](_0x1fb8a0);}),_0x429d4c['promise'];}function _0x257459(_0x51c82a,_0x5ead78){const _0x5e59c6=_0xaf254b;_0x5ead78=_0x5ead78||{};if(!_0x2d157f()||!_0x3d1d3e(_0x51c82a,_0x5ead78)||_0x4fb76f(_0x5ead78[_0x5e59c6(0x1537)])||_0x47dd65()!==_0x5953f9[_0x5e59c6(0x28ea)])return;const _0x1b34b2=new _0x2ca1c0(_0x51c82a,_0x5ead78),_0x527f64=_0x5ead78[_0x5e59c6(0x11cc)]||_0x1602d4[_0x5e59c6(0x11cc)],_0x423af1=_0x5ead78['autoClose']===undefined?_0x1602d4[_0x5e59c6(0x129b)]:_0x5ead78[_0x5e59c6(0x129b)];_0x1b34b2[_0x5e59c6(0xd79)]=function(){const _0x5d2d4f=_0x5e59c6;_0x5ead78['onClick']&&_0x5ead78['onClick'](),_0x5ead78[_0x5d2d4f(0x1b15)]&&window[_0x5d2d4f(0x14dc)](),_0x5ead78['closeOnClick']&&_0x1b34b2[_0x5d2d4f(0xa7c)]();};if(_0x423af1)_0x2a21b9(_0x1b34b2,_0x527f64);return _0x1b34b2;}function _0x3d1d3e(_0x232311,_0x2c3847){const _0x1155dd=_0xaf254b,_0x188d81=angular[_0x1155dd(0x54e)](_0x232311),_0x55dea8=!_0x2c3847[_0x1155dd(0x558)]||angular[_0x1155dd(0x1e2c)](_0x2c3847[_0x1155dd(0x558)]);return _0x188d81&&_0x55dea8;}function _0x4fb76f(_0x31f53b){const _0x33aac9=_0xaf254b;if(!_0x31f53b&&!_0x1602d4['showOnPageHidden'])return;return!(window[_0x33aac9(0xef3)][_0x33aac9(0x28fc)]||window['document'][_0x33aac9(0x28ba)]||window[_0x33aac9(0xef3)][_0x33aac9(0x288e)]);}function _0x2a21b9(_0x3316ba,_0x2485ed){const _0x39a1dc=_0xaf254b,_0x723879=_0x2485ed*0x3e8;_0x546591(_0x3316ba[_0x39a1dc(0xa7c)][_0x39a1dc(0x2544)](_0x3316ba),_0x723879,![]);}}}function _0x1a50cb(){const _0x334e44=_0x313a4d,_0x1f6128=angular[_0x334e44(0x24f2)](['ng'])[_0x334e44(0x16b4)]('$log'),_0x4ee022=[],_0x2dc365=this;_0x2dc365[_0x334e44(0x150e)]=_0x3687ad,_0x2dc365[_0x334e44(0xbaf)]=_0x535f6e;function _0x3687ad(_0x3581f6,_0xc30cf5){const _0x2d31a3=_0x334e44;if(!angular['isString'](_0x3581f6)){_0x1f6128['error'](_0x2d31a3(0x1672));return;}const _0x23baf5=_0x3581f6[_0x2d31a3(0x10c8)]('.'),_0x136c41=_0x23baf5[_0x23baf5[_0x2d31a3(0x402)]-0x1],_0x26c6cb=_0x185682(_0x23baf5);let _0x450a57=![];for(let _0x3ce090=0x0;_0x3ce090<_0x26c6cb[_0x2d31a3(0x402)];_0x3ce090++){if(_0x26c6cb[_0x3ce090][_0x2d31a3(0x208c)]===_0x136c41){_0x450a57=_0x26c6cb[_0x3ce090];break;}}_0x450a57?(angular[_0x2d31a3(0xd9b)](_0x450a57,_0xc30cf5),_0x450a57[_0x2d31a3(0x135a)]=_0x2cdb04(_0x450a57)):(_0xc30cf5[_0x2d31a3(0x20d0)]=[],(angular[_0x2d31a3(0x1619)](_0xc30cf5['weight'])||!angular[_0x2d31a3(0x77d)](_0xc30cf5[_0x2d31a3(0x1ac2)]))&&(_0xc30cf5[_0x2d31a3(0x1ac2)]=0x1),_0xc30cf5['_id']=_0x136c41,_0xc30cf5[_0x2d31a3(0x26d3)]=_0x3581f6,_0xc30cf5[_0x2d31a3(0x135a)]=_0x2cdb04(_0xc30cf5),_0x26c6cb['push'](_0xc30cf5));}function _0x535f6e(_0x569870){const _0x2cd2ee=_0x334e44;if(!angular['isString'](_0x569870)){_0x1f6128[_0x2cd2ee(0x1980)](_0x2cd2ee(0x1672));return;}let _0x330d38=_0x4ee022;const _0xf014e6=_0x569870[_0x2cd2ee(0x10c8)]('.');for(let _0x31d58b=0x0;_0x31d58b<_0xf014e6[_0x2cd2ee(0x402)];_0x31d58b++){const _0x13631c=_0xf014e6[_0x31d58b];for(let _0x6da4=0x0;_0x6da4<_0x330d38[_0x2cd2ee(0x402)];_0x6da4++){if(_0x330d38[_0x6da4][_0x2cd2ee(0x208c)]===_0x13631c){if(_0x330d38[_0x6da4]['_path']===_0x569870)return _0x330d38[_0x2cd2ee(0x1f7d)](_0x6da4,0x1),!![];_0x330d38=_0x330d38[_0x6da4][_0x2cd2ee(0x20d0)];break;}}}return![];}function _0x185682(_0x4348e7){const _0x18a9d3=_0x334e44;let _0x3c8331=_0x4ee022;if(_0x4348e7[_0x18a9d3(0x402)]===0x1)return _0x3c8331;_0x4348e7[_0x18a9d3(0x18c1)]();for(let _0x5a38ff=0x0;_0x5a38ff<_0x4348e7[_0x18a9d3(0x402)];_0x5a38ff++){const _0x20f48c=_0x4348e7[_0x5a38ff];let _0x56f070=!![];for(let _0x20e48f=0x0;_0x20e48f<_0x3c8331['length'];_0x20e48f++){if(_0x3c8331[_0x20e48f]['_id']===_0x20f48c){_0x3c8331=_0x3c8331[_0x20e48f][_0x18a9d3(0x20d0)],_0x56f070=![];break;}}if(_0x56f070){const _0x18553e={'_id':_0x20f48c,'_path':_0x4348e7[_0x18a9d3(0xb47)]('.'),'title':_0x20f48c,'weight':0x1,'children':[]};_0x3c8331[_0x18a9d3(0x1f47)](_0x18553e),_0x3c8331=_0x18553e[_0x18a9d3(0x20d0)];}}return _0x3c8331;}function _0x2cdb04(_0x20e24a){const _0x333c3a=_0x334e44;let _0x1e828c='';return angular['isDefined'](_0x20e24a[_0x333c3a(0x13d6)])&&(_0x1e828c=_0x20e24a[_0x333c3a(0x13d6)],angular['isDefined'](_0x20e24a['stateParams'])&&angular['isObject'](_0x20e24a[_0x333c3a(0x1de9)])&&(_0x1e828c=_0x1e828c+'('+angular[_0x333c3a(0x217d)](_0x20e24a['stateParams'])+')')),_0x1e828c;}this[_0x334e44(0x980)]=function(){const _0x566e9c={'saveItem':_0x3687ad,'getNavigation':_0x4dfd61};return _0x566e9c;function _0x4dfd61(_0xd85702){const _0x2ba07c=a0_0x3bb9;if(_0xd85702){for(let _0x1546e0=0x0;_0x1546e0<_0x4ee022[_0x2ba07c(0x402)];_0x1546e0++){if(_0x4ee022[_0x1546e0][_0x2ba07c(0x208c)]===_0xd85702)return[_0x4ee022[_0x1546e0]];}return null;}return _0x4ee022;}};}const _0x2d96f1={'DEFAULT':'default','GRANTED':'granted','DENIED':_0x313a4d(0xd97)};;_0x37b456['$inject']=[_0x313a4d(0x247f)];function _0x37b456(_0x46b8f5){const _0x297645=_0x313a4d,_0x5bf2df=this;_0x5bf2df[_0x297645(0x15b9)]={},_0x5bf2df[_0x297645(0x8ac)]={'count':0x0,'rows':[]},_0x5bf2df['showInteraction']=![];function _0x36eee1(_0x7ad624,_0x11d771){const _0x588851=_0x297645;_0x5bf2df['setting']=_0x11d771,_0x5bf2df[_0x588851(0x13a3)]=_0x7ad624,_0x5bf2df[_0x588851(0x13a3)][_0x588851(0x1a2e)]=!![];if(_0x5bf2df[_0x588851(0x13a3)]&&_0x5bf2df[_0x588851(0x13a3)]['data']&&_0x5bf2df[_0x588851(0x13a3)]['data']['uniqueid'])return _0x46b8f5[_0x588851(0xc29)]['get']({'uniqueid':_0x5bf2df['tab'][_0x588851(0x524)]['uniqueid']})[_0x588851(0x2945)][_0x588851(0x146b)](function(_0x9551a9){const _0x3575d4=_0x588851;_0x5bf2df[_0x3575d4(0x8ac)]=_0x9551a9;})['finally'](function(){const _0x6c114c=_0x588851;_0x5bf2df[_0x6c114c(0x1fae)]=!![];});else _0x5bf2df[_0x588851(0x1fae)]=!![];}function _0x4371f2(_0x1d6c15){const _0x589c98=_0x297645;switch(_0x5bf2df[_0x589c98(0x15b9)][_0x589c98(0x545)]){case'left':if(_0x1d6c15[_0x589c98(0x26cc)]=='in')return _0x1d6c15['direction'];return'out-left-aligned';case'right':if(_0x1d6c15[_0x589c98(0x26cc)]=='in')return _0x589c98(0x1568);return _0x1d6c15[_0x589c98(0x26cc)];default:return _0x1d6c15[_0x589c98(0x26cc)];}}_0x5bf2df[_0x297645(0x5aa)]=_0x36eee1,_0x5bf2df['getMessagesAlignment']=_0x4371f2;}const _0x5a4dc3=_0x37b456;;const _0x3f981f=_0x4acfac['p']+_0x313a4d(0x23fc);;const _0x1cccb8=_0x4acfac['p']+'src/js/modules/main/apps/contactmanager/views/contacts/merge/dialog.html/dialog.html';;const _0x10a784=_0x4acfac['p']+_0x313a4d(0x260a);;const _0x47122e=_0x4acfac['p']+_0x313a4d(0xee8);;const _0x379013=_0x4acfac['p']+'src/js/modules/main/apps/dashboards/views/general/agent/interaction/composeMail/dialog.html/dialog.html';;const _0x5c47bf=_0x4acfac['p']+_0x313a4d(0x2145);;const _0x32f327=_0x4acfac['p']+_0x313a4d(0x20c5);;const _0xeb78a6=_0x4acfac['p']+_0x313a4d(0xed2);;_0x5a4560[_0x313a4d(0x11c2)]=[_0x313a4d(0x10e8),_0x313a4d(0x4d8),_0x313a4d(0x1abe),_0x313a4d(0x910),'$q',_0x313a4d(0x247f),_0x313a4d(0x1fe4),_0x313a4d(0xa87),_0x313a4d(0x214b),_0x313a4d(0x216c)];const _0x3300de={'fax':_0x47122e,'mail':_0x379013,'openchannel':_0x5c47bf,'sms':_0x32f327,'whatsapp':_0xeb78a6};function _0x5a4560(_0x7d84a3,_0x2fb7c9,_0x4b9625,_0x424f21,_0x3ff0ba,_0x49eeba,_0x2fc198,_0x3b064a,_0xfe69fe,_0x3d7c5b){const _0x211d39=_0x313a4d,_0x23d590=this;_0x23d590[_0x211d39(0xe7b)]=_0x3b064a[_0x211d39(0xb12)](),_0x23d590[_0x211d39(0x17dc)]=_0x3d7c5b[_0x211d39(0x17dc)](),_0x23d590['journey']=[],_0x23d590['queryHopper']={'fields':_0x211d39(0x61b),'sort':_0x211d39(0x12f2),'limit':0xa,'page':0x1},_0x23d590[_0x211d39(0x2822)]={'fields':_0x211d39(0x1cef),'sort':_0x211d39(0x12f2),'limit':0xa,'page':0x1},_0x23d590[_0x211d39(0x1536)]={'fields':'uniqueid,calleridnum,statedesc,scheduledat,starttime,endtime','sort':_0x211d39(0x12f2),'limit':0xa,'page':0x1},_0x23d590['hoppers']={'rows':[],'count':0x0},_0x23d590[_0x211d39(0x272a)]={'rows':[],'count':0x0},_0x23d590['histories']={'rows':[],'count':0x0},_0x23d590[_0x211d39(0x23e6)]=new Date(_0x2deec6()()[_0x211d39(0x1fcc)](_0x211d39(0x12b7))[_0x211d39(0xd7b)](0x1,_0x211d39(0xcf5))[_0x211d39(0x65f)](0x0,!![])[_0x211d39(0x22b0)]()),_0x23d590[_0x211d39(0x360)]=new Date(_0x2deec6()()[_0x211d39(0x824)](_0x211d39(0x12b7))[_0x211d39(0xd7b)](0x1,_0x211d39(0x1066))[_0x211d39(0x65f)](0x0,!![])['format']()),_0x23d590['addNewContact']=_0x1313a6,_0x23d590['saveContact']=_0x190e61,_0x23d590[_0x211d39(0x2328)]=_0x1f99ff,_0x23d590[_0x211d39(0x133b)]=_0x424f21['$parent']['vm'][_0x211d39(0x133b)],_0x23d590[_0x211d39(0x36e)]=_0x10a0d8,_0x23d590[_0x211d39(0x3d1)]=_0x8a043f,_0x23d590[_0x211d39(0x1325)]=_0x4c9d76,_0x23d590[_0x211d39(0xe73)]=_0x359d20,_0x23d590[_0x211d39(0x115a)]=_0x221856,_0x23d590[_0x211d39(0x3b6)]=_0x261211,_0x23d590[_0x211d39(0x1c1d)]=_0xcede8f,_0x23d590[_0x211d39(0x2330)]=_0x3bc8d3,_0x23d590[_0x211d39(0x1225)]=_0x476c4e,_0x23d590[_0x211d39(0x44b)]=_0x44da66,_0x23d590['getFaxAccounts']=_0x3cff2e,_0x23d590[_0x211d39(0x1434)]=_0x1584ac,_0x23d590[_0x211d39(0x28f)]=_0x279920,_0x23d590[_0x211d39(0x12ef)]=_0x4b17eb,_0x23d590['getChatWebsites']=_0x2b129e,_0x23d590[_0x211d39(0x233d)]=_0x17fa2b,_0x23d590['composeInteraction']=_0x494675,_0x23d590[_0x211d39(0x5aa)]=_0xbb372,_0x23d590[_0x211d39(0x2434)]=_0x83a8c4,_0x23d590[_0x211d39(0x1839)]=_0x1a4228,_0x23d590[_0x211d39(0x898)]=_0x52bf6a,_0x23d590[_0x211d39(0x1bee)]=_0x207ffa,_0x23d590[_0x211d39(0x1225)]();function _0x207ffa(_0x8ec79d){const _0x5fa5fb=_0x211d39;if(_0x8ec79d[_0x5fa5fb(0x74d)])return _0x3f65c0()[_0x5fa5fb(0xa4e)](_0x3f65c0()[_0x5fa5fb(0x205)](_0x23d590[_0x5fa5fb(0x8a9)]?_0x23d590[_0x5fa5fb(0x8a9)][_0x5fa5fb(0x19c7)]:[],'id'),_0x8ec79d['FaxAccountId']);else{if(_0x8ec79d[_0x5fa5fb(0x534)])return _0x3f65c0()[_0x5fa5fb(0xa4e)](_0x3f65c0()[_0x5fa5fb(0x205)](_0x23d590[_0x5fa5fb(0x1690)]?_0x23d590[_0x5fa5fb(0x1690)][_0x5fa5fb(0x19c7)]:[],'id'),_0x8ec79d[_0x5fa5fb(0x534)]);else{if(_0x8ec79d[_0x5fa5fb(0x1481)])return _0x3f65c0()[_0x5fa5fb(0xa4e)](_0x3f65c0()[_0x5fa5fb(0x205)](_0x23d590[_0x5fa5fb(0x1c34)]?_0x23d590[_0x5fa5fb(0x1c34)][_0x5fa5fb(0x19c7)]:[],'id'),_0x8ec79d['SmsAccountId']);else{if(_0x8ec79d[_0x5fa5fb(0x158a)])return _0x3f65c0()['includes'](_0x3f65c0()['map'](_0x23d590[_0x5fa5fb(0x23c)]?_0x23d590[_0x5fa5fb(0x23c)][_0x5fa5fb(0x19c7)]:[],'id'),_0x8ec79d[_0x5fa5fb(0x158a)]);else{if(_0x8ec79d[_0x5fa5fb(0x658)])return _0x3f65c0()[_0x5fa5fb(0xa4e)](_0x3f65c0()[_0x5fa5fb(0x205)](_0x23d590[_0x5fa5fb(0x1593)]?_0x23d590[_0x5fa5fb(0x1593)]['rows']:[],'id'),_0x8ec79d[_0x5fa5fb(0x658)]);else{if(_0x8ec79d['ChatWebsiteId'])return _0x3f65c0()[_0x5fa5fb(0xa4e)](_0x3f65c0()[_0x5fa5fb(0x205)](_0x23d590[_0x5fa5fb(0x282c)]?_0x23d590['chatAccounts'][_0x5fa5fb(0x19c7)]:[],'id'),_0x8ec79d['ChatWebsiteId']);else{if(_0x8ec79d[_0x5fa5fb(0xcbf)])return!![];}}}}}}return![];}function _0x1a4228(_0x8ce205,_0x51f2d8){const _0x1ffa5d=_0x211d39;try{if(_0x51f2d8[_0x1ffa5d(0x658)])return _0x424f21[_0x1ffa5d(0x2870)][_0x1ffa5d(0x2870)][_0x1ffa5d(0x2870)]['vm']['addInteractionTab'](_0x1ffa5d(0x56b),_0x51f2d8);else{if(_0x51f2d8[_0x1ffa5d(0x1d92)])return _0x424f21['$parent']['$parent']['$parent']['vm'][_0x1ffa5d(0x2614)]('chat',_0x51f2d8);else{if(_0x51f2d8['SmsAccountId'])return _0x424f21[_0x1ffa5d(0x2870)][_0x1ffa5d(0x2870)]['$parent']['vm'][_0x1ffa5d(0x2614)]('sms',_0x51f2d8);else{if(_0x51f2d8[_0x1ffa5d(0x158a)])return _0x424f21[_0x1ffa5d(0x2870)]['$parent'][_0x1ffa5d(0x2870)]['vm'][_0x1ffa5d(0x2614)](_0x1ffa5d(0xff9),_0x51f2d8);else{if(_0x51f2d8[_0x1ffa5d(0x534)])return _0x424f21[_0x1ffa5d(0x2870)][_0x1ffa5d(0x2870)][_0x1ffa5d(0x2870)]['vm'][_0x1ffa5d(0x2614)](_0x1ffa5d(0x7d9),_0x51f2d8);else{if(_0x51f2d8['FaxAccountId'])return _0x424f21[_0x1ffa5d(0x2870)]['$parent'][_0x1ffa5d(0x2870)]['vm']['addInteractionTab']('fax',_0x51f2d8);}}}}}}catch(_0x45408d){_0x2fc198['error']({'title':_0x1ffa5d(0xbda),'msg':_0x1ffa5d(0xc8a)});}}function _0x19045c(_0x1e16bd){const _0x3cdb73=_0x211d39;if(!_0x1e16bd['disposition'])return'('+_0xfe69fe[_0x3cdb73(0xde)](_0x3cdb73(0x2693))+')';const _0x5deb75=_0x3f65c0()[_0x3cdb73(0x10d6)]([_0x1e16bd['disposition'],_0x1e16bd['secondDisposition'],_0x1e16bd[_0x3cdb73(0x1402)]]);return'('+_0x5deb75[_0x3cdb73(0xb47)](_0x3cdb73(0x1315))+')';}function _0x1f7998(_0x3c9299){const _0x305904=_0x211d39;_0x3c9299&&_0x3c9299[_0x305904(0x51c)]&&_0x3c9299[_0x305904(0x19c7)]['length']&&(_0x23d590['journey']=_0x3f65c0()[_0x305904(0x163c)](_0x23d590['journey'],_0x3c9299[_0x305904(0x19c7)]),_0x23d590[_0x305904(0x21db)][_0x305904(0x1df5)](function(_0x1e77d2){_0x1e77d2['dispositionsValues']=_0x19045c(_0x1e77d2);}));}function _0x357dc0(_0x4e0a07){const _0x5d75b3=_0x211d39,_0x527c8a=['mail',_0x5d75b3(0xa7f),_0x5d75b3(0x929),_0x5d75b3(0x7d9),_0x5d75b3(0x22d9),_0x5d75b3(0xff9)];if(_0x4e0a07&&_0x4e0a07['id']){for(let _0x189b72=0x0;_0x189b72<_0x527c8a[_0x5d75b3(0x402)];_0x189b72++){_0x49eeba[_0x527c8a[_0x189b72]+_0x5d75b3(0x2297)][_0x5d75b3(0x16b4)]({'ContactId':_0x4e0a07['id'],'journey':!![],'includeAll':!![]})[_0x5d75b3(0x2945)][_0x5d75b3(0x146b)](_0x1f7998);}_0x49eeba[_0x5d75b3(0x629)]['get']({'ContactId':_0x4e0a07['id'],'includeAll':!![]})[_0x5d75b3(0x2945)]['then'](_0x1f7998)[_0x5d75b3(0x129e)](function(_0x4ede88){const _0x11635f=_0x5d75b3;console[_0x11635f(0x1980)](_0x4ede88);});}}function _0x5b38e8(_0x185d71){const _0x52f063=_0x211d39;switch(_0x185d71){case'chat':return _0x52f063(0x23da);case'mail':return _0x52f063(0x109e);case _0x52f063(0x929):return'orange';case _0x52f063(0x7d9):return _0x52f063(0x154c);case _0x52f063(0x22d9):return _0x52f063(0x276);case'whatsapp':return'lime-A700';default:return'blue-A700';}}function _0x52bf6a(_0x58f356){const _0x158fc5=_0x211d39;let _0x608719='';if(_0x58f356[_0x158fc5(0x74d)])_0x608719=_0x158fc5(0x22d9);else{if(_0x58f356[_0x158fc5(0x534)])_0x608719=_0x158fc5(0x7d9);else{if(_0x58f356['SmsAccountId'])_0x608719='sms';else{if(_0x58f356[_0x158fc5(0x158a)])_0x608719=_0x158fc5(0xff9);else{if(_0x58f356[_0x158fc5(0x658)])_0x608719=_0x158fc5(0x56b);else{if(_0x58f356[_0x158fc5(0x1d92)])_0x608719=_0x158fc5(0xa7f);else _0x58f356[_0x158fc5(0xcbf)]&&(_0x608719=_0x158fc5(0xe6));}}}}}return _0x5b38e8(_0x608719);}function _0xbb372(_0x467a9b,_0x44cb77){const _0x206280=_0x211d39;return _0x23d590['tab']=_0x467a9b,_0x424f21[_0x206280(0xdf5)]([_0x206280(0x2723),_0x206280(0x195c)],function(_0x3bfe9f){const _0x1a1c48=_0x206280;_0x23d590[_0x1a1c48(0x13a3)][_0x1a1c48(0x1a2e)]=_0x3bfe9f[0x0]&&_0x3bfe9f[0x1];}),_0x23d590[_0x206280(0x2690)]=_0x44cb77,_0x23d590[_0x206280(0x1662)]=_0x23d590['tab']['contact'],_0x23d590[_0x206280(0x1513)]=![],_0x23d590[_0x206280(0x276a)]=0x0,_0x49eeba[_0x206280(0xe7b)][_0x206280(0x16b4)]({'fields':_0x206280(0x1291),'nolimit':!![]})['$promise']['then'](function(_0x50c10d){const _0x1042b1=_0x206280;_0x23d590[_0x1042b1(0x1995)]=_0x50c10d||{'count':0x0,'rows':[]},_0x23d590[_0x1042b1(0xa3e)]=_0x3f65c0()[_0x1042b1(0x1de4)](_0x3f65c0()[_0x1042b1(0x194)](_0x23d590[_0x1042b1(0x1995)][_0x1042b1(0x19c7)],'id'),_0x1042b1(0x286a));return;})[_0x206280(0x146b)](function(){const _0x37ebd0=_0x206280,_0x5f1c5a=[];for(let _0x5412a8=0x0;_0x5412a8<_0x23d590[_0x37ebd0(0x13a3)][_0x37ebd0(0x197c)]['length'];_0x5412a8++){const _0x27281e=_0x23d590[_0x37ebd0(0x13a3)][_0x37ebd0(0x197c)][_0x5412a8];_0x5f1c5a['push'](_0x49eeba[_0x37ebd0(0x629)][_0x37ebd0(0x16b4)]({'uniqueid':_0x27281e['uniqueid']})[_0x37ebd0(0x2945)]['then'](function(_0x1dca9f){const _0x34a3fa=_0x37ebd0;_0x1dca9f&&_0x1dca9f[_0x34a3fa(0x19c7)][_0x34a3fa(0x402)]>0x0&&(_0x27281e[_0x34a3fa(0x1299)]=_0x3f65c0()['first'](_0x1dca9f[_0x34a3fa(0x19c7)])['endtime']);return;}));}return _0x3ff0ba[_0x37ebd0(0x1be2)](_0x5f1c5a);})[_0x206280(0x146b)](function(){const _0x48db60=_0x206280;if(_0x23d590[_0x48db60(0x1662)]&&_0x23d590['contact']['id']){const _0x170079={'id':_0x23d590[_0x48db60(0x1662)]['id'],'ListId':_0x23d590[_0x48db60(0x1662)][_0x48db60(0xb7c)],'limit':0x1,'offset':0x0,'sort':'-updatedAt'};return _0x49eeba['cmContact'][_0x48db60(0x16b4)](_0x170079)[_0x48db60(0x2945)][_0x48db60(0x146b)](function(_0x2a7770){const _0x3bbcf2=_0x48db60;return _0x23d590[_0x3bbcf2(0x1662)]=_0x2a7770,_0x23d590[_0x3bbcf2(0x13a3)][_0x3bbcf2(0x1662)]=_0x2a7770,_0x49eeba[_0x3bbcf2(0xe7b)][_0x3bbcf2(0x89b)]({'id':_0x23d590[_0x3bbcf2(0xe7b)]['id'],'ids':[_0x23d590[_0x3bbcf2(0x1662)]['id']]});})['then'](function(){const _0x3871c0=_0x48db60;if(_0x23d590[_0x3871c0(0x1662)][_0x3871c0(0xb7c)])return _0x49eeba[_0x3871c0(0x9e1)][_0x3871c0(0x16b4)]({'ListId':_0x23d590[_0x3871c0(0x1662)]['ListId']})[_0x3871c0(0x2945)][_0x3871c0(0x146b)](function(_0x29f35e){const _0x1f63a1=_0x3871c0;return _0x23d590[_0x1f63a1(0x13a3)]['dispositions']=_0x29f35e,_0x49eeba[_0x1f63a1(0xf03)][_0x1f63a1(0x2328)]({'id':_0x23d590[_0x1f63a1(0x1662)][_0x1f63a1(0xb7c)]})[_0x1f63a1(0x2945)];})['then'](function(_0x415dcf){const _0x3620b3=_0x3871c0;_0x23d590[_0x3620b3(0x13a3)]['customFields']=_0x415dcf;return;});return;})[_0x48db60(0x146b)](function(){const _0x3ff2b3=_0x48db60;try{_0x23d590[_0x3ff2b3(0x13a3)][_0x3ff2b3(0x2477)]=_0x424f21['$parent']['$parent'][_0x3ff2b3(0x2870)]['vm'][_0x3ff2b3(0xdfc)],_0x23d590[_0x3ff2b3(0x13a3)][_0x3ff2b3(0x1324)]=_0x424f21[_0x3ff2b3(0x2870)]['$parent'][_0x3ff2b3(0x2870)]['vm'][_0x3ff2b3(0x170b)],_0x23d590['tab'][_0x3ff2b3(0x762)]=_0x424f21['$parent'][_0x3ff2b3(0x2870)][_0x3ff2b3(0x2870)]['vm'][_0x3ff2b3(0x1c5b)],_0x23d590[_0x3ff2b3(0x13a3)][_0x3ff2b3(0x1b86)]=_0x424f21['$parent']['$parent']['$parent']['vm'][_0x3ff2b3(0x4b7)],_0x23d590['tab'][_0x3ff2b3(0x239b)]=0x0,_0x23d590['contact'][_0x3ff2b3(0xb7c)]&&(_0x23d590[_0x3ff2b3(0x13a3)][_0x3ff2b3(0x2477)][_0x3ff2b3(0x19c7)]=_0x3f65c0()[_0x3ff2b3(0x11c)](_0x23d590[_0x3ff2b3(0x13a3)][_0x3ff2b3(0x2477)][_0x3ff2b3(0x19c7)],_0x3f65c0()[_0x3ff2b3(0x1dd6)](_0x23d590[_0x3ff2b3(0x13a3)][_0x3ff2b3(0x1324)]['rows'],{'id':_0x23d590['contact']['ListId']}),'id'),_0x23d590[_0x3ff2b3(0x25f4)]=_0x3f65c0()['find'](_0x23d590[_0x3ff2b3(0x13a3)][_0x3ff2b3(0x2477)][_0x3ff2b3(0x19c7)],{'id':_0x23d590[_0x3ff2b3(0x1662)]['ListId']}));}catch(_0x55e8fc){}_0x23d590['getHoppers'](),_0x23d590['getFinals'](),_0x23d590[_0x3ff2b3(0x2330)](),_0x23d590[_0x3ff2b3(0x44b)](),_0x23d590['getFaxAccounts'](),_0x23d590[_0x3ff2b3(0x1434)](),_0x23d590[_0x3ff2b3(0x28f)](),_0x23d590[_0x3ff2b3(0x12ef)](),_0x23d590[_0x3ff2b3(0x3e5)](),_0x23d590[_0x3ff2b3(0x233d)]();return;})[_0x48db60(0x146b)](function(){const _0x31da05=_0x48db60;return _0x49eeba[_0x31da05(0x18c3)]['getTags']({'id':_0x23d590[_0x31da05(0x1662)]['id']})[_0x31da05(0x2945)]['then'](function(_0x3d5955){const _0x1d7d19=_0x31da05;_0x23d590[_0x1d7d19(0x13a3)][_0x1d7d19(0x2331)]=_0x3f65c0()[_0x1d7d19(0x205)](_0x3d5955['rows'],'id');return;});});}else{_0x23d590[_0x48db60(0x1513)]=!![];if(_0x467a9b['autoCreate'])return console['log'](_0x48db60(0x239b)),_0x23d590['addNewContact']();return;}})[_0x206280(0x146b)](_0x357dc0(_0x23d590[_0x206280(0x1662)]));}function _0x494675(_0x1ed770,_0x179576,_0x1bf434,_0x4015d6){const _0x22e894=_0x211d39,_0x31a9c4=_0x179576['toLowerCase']();_0x7d84a3[_0x22e894(0x2615)]({'controller':_0x22e894(0xae9)+_0x179576+'InteractionDialogController','controllerAs':'vm','templateUrl':_0x3300de[_0x31a9c4],'parent':angular[_0x22e894(0x1853)](_0x2fb7c9[_0x22e894(0x2586)]),'clickOutsideToClose':![],'locals':{'account':_0x1bf434,'message':{'to':_0x31a9c4==_0x22e894(0x56b)?_0x4015d6:_0x4015d6[_0x22e894(0x10c8)](',')},'type':_0x22e894(0x16d9),'interaction':{'Contact':_0x23d590[_0x22e894(0x1662)]}},'fullscreen':!![]})[_0x22e894(0x146b)](function(_0x15ae04){const _0x3f44c6=_0x22e894;return _0x49eeba[_0x31a9c4+_0x3f44c6(0xb48)][_0x3f44c6(0x1443)]({'id':_0x1bf434['id']},_0x15ae04)[_0x3f44c6(0x2945)][_0x3f44c6(0x146b)](function(_0x33bf9a){const _0x2410f7=_0x3f44c6;if(_0x179576===_0x2410f7(0x3b1)){const _0x3e94f4=_0x33bf9a;if(_0x3e94f4&&_0x3e94f4[_0x2410f7(0x1c7c)]&&_0x3e94f4['Messages']['length']){if(_0x15ae04[_0x2410f7(0x2644)]&&_0x15ae04[_0x2410f7(0x2644)][_0x2410f7(0x402)])for(let _0x2806dd=0x0;_0x2806dd<_0x15ae04[_0x2410f7(0x2644)]['length'];_0x2806dd+=0x1){_0x49eeba[_0x2410f7(0x2527)]['update']({'id':_0x15ae04[_0x2410f7(0x2644)][_0x2806dd]['id']},{'MailMessageId':_0x3f65c0()[_0x2410f7(0x6d8)](_0x3e94f4[_0x2410f7(0x1c7c)])['id']});}_0x2fc198[_0x2410f7(0x1c75)]({'title':_0x2410f7(0x24ad),'msg':_0x2410f7(0x54f)});if(_0x3e94f4['closed']){_0x3e94f4[_0x2410f7(0x9e1)]=null;const _0x29589f=!_0x1bf434[_0x2410f7(0xc9e)],_0xde9d84=_0x23d590[_0x2410f7(0xe7b)][_0x2410f7(0x211c)]||_0x23d590['user'][_0x2410f7(0x5f7)]||_0x23d590[_0x2410f7(0xe7b)][_0x2410f7(0x1e9e)]||_0x23d590[_0x2410f7(0xe7b)][_0x2410f7(0xcc5)]||_0x23d590[_0x2410f7(0xe7b)]['faxPause'];_0x7d84a3[_0x2410f7(0x2615)]({'controller':_0x2410f7(0xe23),'controllerAs':'vm','templateUrl':_0x56fd44,'parent':angular[_0x2410f7(0x1853)](_0x2fb7c9[_0x2410f7(0x2586)]),'onRemoving':function(){const _0x1d8286=_0x2410f7;_0x23d590[_0x1d8286(0xe7b)]&&_0x1bf434[_0x1d8286(0xc9e)]&&!_0xde9d84&&_0x49eeba[_0x1d8286(0xe7b)][_0x1d8286(0x974)]({'id':_0x23d590[_0x1d8286(0xe7b)]['id']})[_0x1d8286(0x2945)]['catch'](function(_0x35ec0a){const _0xa8a195=_0x1d8286;console[_0xa8a195(0x1980)](_0x35ec0a);});},'clickOutsideToClose':_0x29589f,'escapeToClose':_0x29589f,'locals':{'user':_0x23d590['user'],'channel':_0x2410f7(0x56b),'interaction':_0x3e94f4}});}else _0x424f21[_0x2410f7(0x2870)]['vm'][_0x2410f7(0x2614)](_0x2410f7(0x56b),_0x3e94f4);}}else _0x2fc198['success']({'title':_0x2410f7(0x24ad),'msg':_0x2410f7(0x54f)}),_0x424f21['$parent']['vm'][_0x2410f7(0x2614)](_0x31a9c4,_0x33bf9a);})['catch'](function(_0x3447d5){const _0x43aafe=_0x3f44c6;if(_0x3447d5['data']&&_0x3447d5['data']['errors']&&_0x3447d5[_0x43aafe(0x524)]['errors'][_0x43aafe(0x402)])for(let _0x2d6a66=0x0;_0x2d6a66<_0x3447d5[_0x43aafe(0x524)]['errors'][_0x43aafe(0x402)];_0x2d6a66+=0x1){_0x2fc198[_0x43aafe(0x1980)]({'title':_0x3447d5['data'][_0x43aafe(0xcef)][_0x2d6a66][_0x43aafe(0x1142)],'msg':_0x3447d5[_0x43aafe(0x524)][_0x43aafe(0xcef)][_0x2d6a66][_0x43aafe(0x7fd)]});}else _0x31a9c4==='fax'?_0x2fc198[_0x43aafe(0x1980)]({'title':_0x43aafe(0x1c02),'msg':_0x3447d5[_0x43aafe(0x524)]?JSON[_0x43aafe(0x10bb)](_0x3447d5['data']):_0x3447d5[_0x43aafe(0x7fd)]||_0x3447d5[_0x43aafe(0xd5f)]()}):_0x2fc198[_0x43aafe(0x1980)]({'title':_0x3447d5[_0x43aafe(0x107b)]?_0x43aafe(0x262a)+_0x3447d5[_0x43aafe(0x107b)]+'\x20-\x20'+_0x3447d5['statusText']:_0x179576['toUpperCase']()+_0x43aafe(0x1f59),'msg':_0x3447d5[_0x43aafe(0x524)]?JSON[_0x43aafe(0x10bb)](_0x3447d5[_0x43aafe(0x524)][_0x43aafe(0x7fd)]):_0x3447d5[_0x43aafe(0x7fd)]||_0x3447d5[_0x43aafe(0xd5f)]()});});});}function _0x1313a6(){const _0x42dcb=_0x211d39;_0x23d590[_0x42dcb(0xcef)]=[],_0x49eeba[_0x42dcb(0x18c3)]['save'](_0x23d590[_0x42dcb(0x1662)])[_0x42dcb(0x2945)][_0x42dcb(0x146b)](function(_0x2cf792){const _0x10ca17=_0x42dcb;return _0x23d590[_0x10ca17(0x1662)]['id']=_0x2cf792['id'],_0x23d590[_0x10ca17(0x1513)]=![],_0x23d590[_0x10ca17(0x13a3)]['title']=_0x2cf792[_0x10ca17(0x1ed4)]||_0x2cf792[_0x10ca17(0x1d55)],_0x23d590[_0x10ca17(0x13a3)][_0x10ca17(0x1662)]=_0x23d590[_0x10ca17(0x1662)],_0x49eeba[_0x10ca17(0xe7b)][_0x10ca17(0x89b)]({'id':_0x3b064a[_0x10ca17(0xb12)]()['id'],'ids':[_0x2cf792['id']]});})[_0x42dcb(0x146b)](function(){const _0x1a7cab=_0x42dcb;_0x23d590['detailForm'][_0x1a7cab(0x1c96)]=!![],_0x23d590['customFieldsForm'][_0x1a7cab(0x1c96)]=!![],_0x2fc198[_0x1a7cab(0x1c75)]({'title':_0x1a7cab(0x2717),'msg':_0x23d590['contact'][_0x1a7cab(0x1ed4)]?_0x23d590['contact']['firstName']+_0x1a7cab(0x1386):''});})[_0x42dcb(0x146b)](function(){const _0x467956=_0x42dcb;return _0x49eeba[_0x467956(0x18c3)][_0x467956(0x13eb)]({'id':_0x23d590['contact']['id'],'ids':_0x23d590['tab'][_0x467956(0x2331)]})[_0x467956(0x2945)];})['catch'](function(_0x571b37){const _0x1a71e0=_0x42dcb;if(_0x571b37['data']&&_0x571b37[_0x1a71e0(0x524)][_0x1a71e0(0xcef)]&&_0x571b37[_0x1a71e0(0x524)][_0x1a71e0(0xcef)][_0x1a71e0(0x402)]){_0x23d590[_0x1a71e0(0xcef)]=_0x571b37['data'][_0x1a71e0(0xcef)]||[{'message':_0x571b37[_0x1a71e0(0xd5f)](),'type':'api.contact.save'}];for(let _0x17bfbe=0x0;_0x17bfbe<_0x571b37['data'][_0x1a71e0(0xcef)][_0x1a71e0(0x402)];_0x17bfbe+=0x1){_0x2fc198['error']({'title':_0x571b37[_0x1a71e0(0x524)][_0x1a71e0(0xcef)][_0x17bfbe][_0x1a71e0(0x1142)],'msg':_0x571b37[_0x1a71e0(0x524)]['errors'][_0x17bfbe]['message']});}}else _0x2fc198[_0x1a71e0(0x1980)]({'title':_0x571b37[_0x1a71e0(0x107b)]?_0x1a71e0(0x262a)+_0x571b37['status']+_0x1a71e0(0x1315)+_0x571b37[_0x1a71e0(0x167f)]:_0x1a71e0(0x33e),'msg':_0x571b37['data']?JSON['stringify'](_0x571b37[_0x1a71e0(0x524)][_0x1a71e0(0x7fd)]):_0x571b37['toString']()});});}function _0x190e61(){const _0x5807a6=_0x211d39;_0x23d590[_0x5807a6(0xcef)]=[],_0x49eeba['cmContact']['update']({'id':_0x23d590[_0x5807a6(0x1662)]['id']},_0x23d590[_0x5807a6(0x1662)])['$promise']['then'](function(_0x10b9ea){const _0x4b5e87=_0x5807a6;return _0x23d590[_0x4b5e87(0x13a3)]['title']=_0x10b9ea[_0x4b5e87(0x1ed4)]||_0x10b9ea[_0x4b5e87(0x1d55)],_0x23d590['tab']['contact']=_0x23d590[_0x4b5e87(0x1662)],_0x424f21[_0x4b5e87(0x2870)]['vm'][_0x4b5e87(0x85a)](),_0x49eeba[_0x4b5e87(0xe7b)]['addContacts']({'id':_0x3b064a[_0x4b5e87(0xb12)]()['id'],'ids':[_0x10b9ea['id']]});})[_0x5807a6(0x146b)](function(){const _0x578919=_0x5807a6;return _0x49eeba[_0x578919(0x18c3)][_0x578919(0x13eb)]({'id':_0x23d590[_0x578919(0x1662)]['id'],'ids':_0x23d590[_0x578919(0x13a3)][_0x578919(0x2331)]})[_0x578919(0x2945)];})[_0x5807a6(0x146b)](function(){const _0x3255aa=_0x5807a6;_0x23d590[_0x3255aa(0x2688)][_0x3255aa(0x1c96)]=!![],_0x23d590[_0x3255aa(0x277b)][_0x3255aa(0x1c96)]=!![],_0x2fc198[_0x3255aa(0x1c75)]({'title':_0x3255aa(0xc2d),'msg':_0x23d590['contact'][_0x3255aa(0x19eb)]?_0x23d590['contact'][_0x3255aa(0x19eb)]+_0x3255aa(0x6b0):''});})[_0x5807a6(0x129e)](function(_0x1c77e5){const _0x5a8e0c=_0x5807a6;if(_0x1c77e5['data']&&_0x1c77e5[_0x5a8e0c(0x524)]['errors']&&_0x1c77e5[_0x5a8e0c(0x524)]['errors'][_0x5a8e0c(0x402)]){_0x23d590[_0x5a8e0c(0xcef)]=_0x1c77e5[_0x5a8e0c(0x524)]['errors']||[{'message':_0x1c77e5['toString'](),'type':'api.contact.save'}];for(let _0x15c7f7=0x0;_0x15c7f7<_0x1c77e5['data'][_0x5a8e0c(0xcef)]['length'];_0x15c7f7+=0x1){_0x2fc198[_0x5a8e0c(0x1980)]({'title':_0x1c77e5[_0x5a8e0c(0x524)]['errors'][_0x15c7f7][_0x5a8e0c(0x1142)],'msg':_0x1c77e5[_0x5a8e0c(0x524)][_0x5a8e0c(0xcef)][_0x15c7f7][_0x5a8e0c(0x7fd)]});}}else _0x2fc198['error']({'title':_0x1c77e5[_0x5a8e0c(0x107b)]?'API:'+_0x1c77e5[_0x5a8e0c(0x107b)]+'\x20-\x20'+_0x1c77e5['statusText']:'api.contact.save','msg':_0x1c77e5['data']?JSON[_0x5a8e0c(0x10bb)](_0x1c77e5['data'][_0x5a8e0c(0x7fd)]):_0x1c77e5['toString']()});});}_0x424f21[_0x211d39(0x21e8)](_0x211d39(0x276a),function(){const _0x26a506=_0x211d39;_0x23d590[_0x26a506(0x276a)]===0x1&&(_0x23d590[_0x26a506(0x3b6)](),_0x23d590[_0x26a506(0x1c1d)](),_0x23d590[_0x26a506(0x2330)]());});let _0x172709=!![],_0x111eeb=0x1;_0x424f21['$watch'](_0x211d39(0x11a0),function(_0x1e76be,_0x160471){const _0x3093ff=_0x211d39;_0x172709?_0x4b9625(function(){_0x172709=![];}):(!_0x160471&&(_0x111eeb=_0x23d590[_0x3093ff(0x1562)][_0x3093ff(0x844)]),_0x1e76be!==_0x160471&&(_0x23d590[_0x3093ff(0x1562)][_0x3093ff(0x844)]=0x1),!_0x1e76be&&(_0x23d590[_0x3093ff(0x1562)][_0x3093ff(0x844)]=_0x111eeb),_0x23d590['getHoppers']());}),_0x424f21[_0x211d39(0x21e8)](_0x211d39(0x1f71),function(_0x15b1fd,_0x9ef03c){const _0x525410=_0x211d39;_0x172709?_0x4b9625(function(){_0x172709=![];}):(!_0x9ef03c&&(_0x111eeb=_0x23d590[_0x525410(0x2822)]['page']),_0x15b1fd!==_0x9ef03c&&(_0x23d590[_0x525410(0x2822)][_0x525410(0x844)]=0x1),!_0x15b1fd&&(_0x23d590[_0x525410(0x2822)]['page']=_0x111eeb),_0x23d590[_0x525410(0x1c1d)]());}),_0x424f21[_0x211d39(0x21e8)](_0x211d39(0x11f7),function(_0x36d9df,_0x2afc5d){const _0x2dcc38=_0x211d39;_0x172709?_0x4b9625(function(){_0x172709=![];}):(!_0x2afc5d&&(_0x111eeb=_0x23d590[_0x2dcc38(0x1536)][_0x2dcc38(0x844)]),_0x36d9df!==_0x2afc5d&&(_0x23d590[_0x2dcc38(0x1536)][_0x2dcc38(0x844)]=0x1),!_0x36d9df&&(_0x23d590['queryHistory'][_0x2dcc38(0x844)]=_0x111eeb),_0x23d590['getHistories']());});function _0x760351(_0x3f3573){return function(_0x309b4f){_0x23d590[_0x3f3573]=_0x309b4f||{'count':0x0,'rows':[]};};}function _0x261211(){const _0x50cfd6=_0x211d39;_0x23d590['contact']&&_0x23d590['contact']['id']&&(_0x23d590[_0x50cfd6(0x1562)][_0x50cfd6(0x932)]=_0x23d590['contact']['id'],_0x23d590[_0x50cfd6(0x1562)][_0x50cfd6(0x145d)]=(_0x23d590['queryHopper'][_0x50cfd6(0x844)]-0x1)*_0x23d590[_0x50cfd6(0x1562)][_0x50cfd6(0x221e)],_0x23d590['promise']=_0x49eeba[_0x50cfd6(0x39f)]['get'](_0x23d590['queryHopper'],_0x760351('hoppers'))[_0x50cfd6(0x2945)]);}function _0xcede8f(){const _0x553e91=_0x211d39;_0x23d590[_0x553e91(0x1662)]&&_0x23d590[_0x553e91(0x1662)]['id']&&(_0x23d590['queryFinal'][_0x553e91(0x932)]=_0x23d590[_0x553e91(0x1662)]['id'],_0x23d590[_0x553e91(0x2822)][_0x553e91(0x145d)]=(_0x23d590[_0x553e91(0x2822)][_0x553e91(0x844)]-0x1)*_0x23d590['queryFinal']['limit'],_0x23d590['promise']=_0x49eeba['cmHopperFinal'][_0x553e91(0x16b4)](_0x23d590[_0x553e91(0x2822)],_0x760351(_0x553e91(0x272a)))[_0x553e91(0x2945)]);}function _0x3bc8d3(){const _0x31cd97=_0x211d39;_0x23d590[_0x31cd97(0x1662)]&&_0x23d590['contact']['id']&&(_0x23d590[_0x31cd97(0x1536)][_0x31cd97(0x932)]=_0x23d590['contact']['id'],_0x23d590[_0x31cd97(0x1536)][_0x31cd97(0x145d)]=(_0x23d590[_0x31cd97(0x1536)]['page']-0x1)*_0x23d590[_0x31cd97(0x1536)][_0x31cd97(0x221e)],_0x23d590['promise']=_0x49eeba['cmHopperHistory'][_0x31cd97(0x16b4)](_0x23d590[_0x31cd97(0x1536)],_0x760351(_0x31cd97(0xf95)))[_0x31cd97(0x2945)]);}function _0x476c4e(){const _0x5bba31=_0x211d39;_0x49eeba[_0x5bba31(0x20c8)][_0x5bba31(0x16b4)]({'fields':_0x5bba31(0xa52),'sort':_0x5bba31(0x12f2),'nolimit':!![]})[_0x5bba31(0x2945)][_0x5bba31(0x146b)](function(_0x56369f){const _0xdd2a12=_0x5bba31;_0x23d590[_0xdd2a12(0x25d1)]=_0x56369f||{'count':0x0,'rows':[]};})['catch'](function(_0x148afc){const _0x81c3c4=_0x5bba31;if(_0x148afc['data']&&_0x148afc[_0x81c3c4(0x524)][_0x81c3c4(0xcef)]&&_0x148afc['data'][_0x81c3c4(0xcef)][_0x81c3c4(0x402)]){_0x23d590[_0x81c3c4(0xcef)]=_0x148afc['data']['errors']||[{'message':_0x148afc[_0x81c3c4(0xd5f)](),'type':_0x81c3c4(0x564)}];for(let _0x1cfafe=0x0;_0x1cfafe<_0x148afc[_0x81c3c4(0x524)][_0x81c3c4(0xcef)]['length'];_0x1cfafe+=0x1){_0x2fc198['error']({'title':_0x148afc[_0x81c3c4(0x524)]['errors'][_0x1cfafe][_0x81c3c4(0x1142)],'msg':_0x148afc['data'][_0x81c3c4(0xcef)][_0x1cfafe][_0x81c3c4(0x7fd)]});}}else _0x2fc198[_0x81c3c4(0x1980)]({'title':_0x148afc[_0x81c3c4(0x107b)]?_0x81c3c4(0x262a)+_0x148afc[_0x81c3c4(0x107b)]+_0x81c3c4(0x1315)+_0x148afc[_0x81c3c4(0x167f)]:_0x81c3c4(0x564),'msg':_0x148afc[_0x81c3c4(0x524)]?JSON[_0x81c3c4(0x10bb)](_0x148afc[_0x81c3c4(0x524)][_0x81c3c4(0x7fd)]):_0x148afc['toString']()});});}function _0x44da66(){const _0x306696=_0x211d39;_0x49eeba[_0x306696(0xe7b)]['getMailAccounts']({'id':_0x23d590['user']['id'],'nolimit':!![]})[_0x306696(0x2945)][_0x306696(0x146b)](function(_0x2df14a){const _0xbd53e4=_0x306696;_0x23d590[_0xbd53e4(0x1593)]=_0x2df14a||{'count':0x0,'rows':[]};})[_0x306696(0x129e)](function(_0x929990){const _0x29b466=_0x306696;if(_0x929990[_0x29b466(0x524)]&&_0x929990[_0x29b466(0x524)][_0x29b466(0xcef)]&&_0x929990[_0x29b466(0x524)][_0x29b466(0xcef)]['length']){_0x23d590[_0x29b466(0xcef)]=_0x929990[_0x29b466(0x524)]['errors']||[{'message':_0x929990[_0x29b466(0xd5f)](),'type':_0x29b466(0x1654)}];for(let _0x7664d0=0x0;_0x7664d0<_0x929990[_0x29b466(0x524)][_0x29b466(0xcef)]['length'];_0x7664d0+=0x1){_0x2fc198[_0x29b466(0x1980)]({'title':_0x929990[_0x29b466(0x524)][_0x29b466(0xcef)][_0x7664d0][_0x29b466(0x1142)],'msg':_0x929990[_0x29b466(0x524)][_0x29b466(0xcef)][_0x7664d0]['message']});}}else _0x2fc198[_0x29b466(0x1980)]({'title':_0x929990[_0x29b466(0x107b)]?'API:'+_0x929990[_0x29b466(0x107b)]+'\x20-\x20'+_0x929990[_0x29b466(0x167f)]:'api.mail.account','msg':_0x929990['data']?JSON['stringify'](_0x929990[_0x29b466(0x524)][_0x29b466(0x7fd)]):_0x929990[_0x29b466(0xd5f)]()});});}function _0x3cff2e(){const _0x2a0e64=_0x211d39;_0x49eeba[_0x2a0e64(0xe7b)][_0x2a0e64(0x12d0)]({'id':_0x23d590['user']['id'],'nolimit':!![]})[_0x2a0e64(0x2945)]['then'](function(_0x4ac5f2){const _0xc39045=_0x2a0e64;_0x23d590[_0xc39045(0x8a9)]=_0x4ac5f2||{'count':0x0,'rows':[]};})['catch'](function(_0x3ae55c){const _0x37c94f=_0x2a0e64;if(_0x3ae55c[_0x37c94f(0x524)]&&_0x3ae55c[_0x37c94f(0x524)][_0x37c94f(0xcef)]&&_0x3ae55c[_0x37c94f(0x524)]['errors'][_0x37c94f(0x402)]){_0x23d590['errors']=_0x3ae55c[_0x37c94f(0x524)][_0x37c94f(0xcef)]||[{'message':_0x3ae55c[_0x37c94f(0xd5f)](),'type':_0x37c94f(0x1ef0)}];for(let _0x31cb0d=0x0;_0x31cb0d<_0x3ae55c[_0x37c94f(0x524)][_0x37c94f(0xcef)][_0x37c94f(0x402)];_0x31cb0d+=0x1){_0x2fc198[_0x37c94f(0x1980)]({'title':_0x3ae55c[_0x37c94f(0x524)]['errors'][_0x31cb0d][_0x37c94f(0x1142)],'msg':_0x3ae55c['data'][_0x37c94f(0xcef)][_0x31cb0d][_0x37c94f(0x7fd)]});}}else _0x2fc198['error']({'title':_0x3ae55c[_0x37c94f(0x107b)]?_0x37c94f(0x262a)+_0x3ae55c[_0x37c94f(0x107b)]+'\x20-\x20'+_0x3ae55c[_0x37c94f(0x167f)]:_0x37c94f(0x1ef0),'msg':_0x3ae55c['data']?JSON['stringify'](_0x3ae55c[_0x37c94f(0x524)][_0x37c94f(0x7fd)]):_0x3ae55c[_0x37c94f(0xd5f)]()});});}function _0x1584ac(){const _0x21e40b=_0x211d39;_0x49eeba['user'][_0x21e40b(0x1434)]({'id':_0x23d590[_0x21e40b(0xe7b)]['id'],'nolimit':!![]})[_0x21e40b(0x2945)][_0x21e40b(0x146b)](function(_0x5f742d){const _0x5a03d4=_0x21e40b;_0x23d590[_0x5a03d4(0x1c34)]=_0x5f742d||{'count':0x0,'rows':[]};})[_0x21e40b(0x129e)](function(_0x3ab094){const _0x7a6697=_0x21e40b;if(_0x3ab094[_0x7a6697(0x524)]&&_0x3ab094[_0x7a6697(0x524)]['errors']&&_0x3ab094[_0x7a6697(0x524)][_0x7a6697(0xcef)]['length']){_0x23d590['errors']=_0x3ab094[_0x7a6697(0x524)]['errors']||[{'message':_0x3ab094[_0x7a6697(0xd5f)](),'type':_0x7a6697(0xaf2)}];for(let _0x31fc35=0x0;_0x31fc35<_0x3ab094[_0x7a6697(0x524)][_0x7a6697(0xcef)]['length'];_0x31fc35+=0x1){_0x2fc198[_0x7a6697(0x1980)]({'title':_0x3ab094[_0x7a6697(0x524)]['errors'][_0x31fc35][_0x7a6697(0x1142)],'msg':_0x3ab094[_0x7a6697(0x524)][_0x7a6697(0xcef)][_0x31fc35]['message']});}}else _0x2fc198[_0x7a6697(0x1980)]({'title':_0x3ab094[_0x7a6697(0x107b)]?_0x7a6697(0x262a)+_0x3ab094[_0x7a6697(0x107b)]+_0x7a6697(0x1315)+_0x3ab094[_0x7a6697(0x167f)]:_0x7a6697(0xaf2),'msg':_0x3ab094[_0x7a6697(0x524)]?JSON[_0x7a6697(0x10bb)](_0x3ab094[_0x7a6697(0x524)]['message']):_0x3ab094[_0x7a6697(0xd5f)]()});});}function _0x279920(){const _0xc163e=_0x211d39;_0x49eeba[_0xc163e(0xe7b)][_0xc163e(0x28f)]({'id':_0x23d590[_0xc163e(0xe7b)]['id'],'nolimit':!![]})[_0xc163e(0x2945)][_0xc163e(0x146b)](function(_0xf5be02){const _0x327a9a=_0xc163e;_0x23d590[_0x327a9a(0x23c)]=_0xf5be02||{'count':0x0,'rows':[]};})['catch'](function(_0x13a2f7){const _0x1656d2=_0xc163e;if(_0x13a2f7[_0x1656d2(0x524)]&&_0x13a2f7['data'][_0x1656d2(0xcef)]&&_0x13a2f7[_0x1656d2(0x524)][_0x1656d2(0xcef)][_0x1656d2(0x402)]){_0x23d590['errors']=_0x13a2f7[_0x1656d2(0x524)][_0x1656d2(0xcef)]||[{'message':_0x13a2f7[_0x1656d2(0xd5f)](),'type':_0x1656d2(0x2846)}];for(let _0x298f4a=0x0;_0x298f4a<_0x13a2f7[_0x1656d2(0x524)][_0x1656d2(0xcef)][_0x1656d2(0x402)];_0x298f4a+=0x1){_0x2fc198[_0x1656d2(0x1980)]({'title':_0x13a2f7[_0x1656d2(0x524)]['errors'][_0x298f4a]['type'],'msg':_0x13a2f7[_0x1656d2(0x524)][_0x1656d2(0xcef)][_0x298f4a][_0x1656d2(0x7fd)]});}}else _0x2fc198[_0x1656d2(0x1980)]({'title':_0x13a2f7[_0x1656d2(0x107b)]?'API:'+_0x13a2f7[_0x1656d2(0x107b)]+_0x1656d2(0x1315)+_0x13a2f7['statusText']:_0x1656d2(0x2846),'msg':_0x13a2f7[_0x1656d2(0x524)]?JSON[_0x1656d2(0x10bb)](_0x13a2f7[_0x1656d2(0x524)][_0x1656d2(0x7fd)]):_0x13a2f7[_0x1656d2(0xd5f)]()});});}function _0x4b17eb(){const _0x56d4aa=_0x211d39;_0x49eeba[_0x56d4aa(0xe7b)][_0x56d4aa(0x12ef)]({'id':_0x23d590[_0x56d4aa(0xe7b)]['id'],'nolimit':!![]})['$promise']['then'](function(_0x2edfa2){const _0x1a78fb=_0x56d4aa;_0x23d590[_0x1a78fb(0x1690)]=_0x2edfa2||{'count':0x0,'rows':[]};})['catch'](function(_0x305dca){const _0x51dd77=_0x56d4aa;if(_0x305dca['data']&&_0x305dca[_0x51dd77(0x524)]['errors']&&_0x305dca[_0x51dd77(0x524)][_0x51dd77(0xcef)][_0x51dd77(0x402)]){_0x23d590[_0x51dd77(0xcef)]=_0x305dca[_0x51dd77(0x524)]['errors']||[{'message':_0x305dca[_0x51dd77(0xd5f)](),'type':'api.openchannel.account'}];for(let _0x534256=0x0;_0x534256<_0x305dca['data'][_0x51dd77(0xcef)][_0x51dd77(0x402)];_0x534256+=0x1){_0x2fc198['error']({'title':_0x305dca[_0x51dd77(0x524)][_0x51dd77(0xcef)][_0x534256][_0x51dd77(0x1142)],'msg':_0x305dca['data'][_0x51dd77(0xcef)][_0x534256][_0x51dd77(0x7fd)]});}}else _0x2fc198['error']({'title':_0x305dca[_0x51dd77(0x107b)]?_0x51dd77(0x262a)+_0x305dca[_0x51dd77(0x107b)]+_0x51dd77(0x1315)+_0x305dca[_0x51dd77(0x167f)]:_0x51dd77(0x28e4),'msg':_0x305dca['data']?JSON['stringify'](_0x305dca[_0x51dd77(0x524)][_0x51dd77(0x7fd)]):_0x305dca[_0x51dd77(0xd5f)]()});});}function _0x2b129e(){const _0x496186=_0x211d39;_0x49eeba[_0x496186(0xe7b)][_0x496186(0x3e5)]({'id':_0x23d590['user']['id'],'nolimit':!![]})[_0x496186(0x2945)]['then'](function(_0x1a5b73){const _0x13bf63=_0x496186;_0x23d590[_0x13bf63(0x282c)]=_0x1a5b73||{'count':0x0,'rows':[]};})[_0x496186(0x129e)](function(_0x3d0c75){const _0xd578fa=_0x496186;if(_0x3d0c75[_0xd578fa(0x524)]&&_0x3d0c75['data'][_0xd578fa(0xcef)]&&_0x3d0c75[_0xd578fa(0x524)][_0xd578fa(0xcef)]['length']){_0x23d590['errors']=_0x3d0c75[_0xd578fa(0x524)][_0xd578fa(0xcef)]||[{'message':_0x3d0c75['toString'](),'type':_0xd578fa(0x2108)}];for(let _0x17ecc3=0x0;_0x17ecc3<_0x3d0c75[_0xd578fa(0x524)][_0xd578fa(0xcef)][_0xd578fa(0x402)];_0x17ecc3+=0x1){_0x2fc198[_0xd578fa(0x1980)]({'title':_0x3d0c75[_0xd578fa(0x524)][_0xd578fa(0xcef)][_0x17ecc3][_0xd578fa(0x1142)],'msg':_0x3d0c75[_0xd578fa(0x524)][_0xd578fa(0xcef)][_0x17ecc3]['message']});}}else _0x2fc198['error']({'title':_0x3d0c75['status']?_0xd578fa(0x262a)+_0x3d0c75[_0xd578fa(0x107b)]+_0xd578fa(0x1315)+_0x3d0c75[_0xd578fa(0x167f)]:'api.chatAccounts.account','msg':_0x3d0c75[_0xd578fa(0x524)]?JSON['stringify'](_0x3d0c75[_0xd578fa(0x524)][_0xd578fa(0x7fd)]):_0x3d0c75['toString']()});});}function _0x17fa2b(){const _0x4dc750=_0x211d39;_0x49eeba[_0x4dc750(0xe7b)][_0x4dc750(0x233d)]({'id':_0x23d590[_0x4dc750(0xe7b)]['id'],'nolimit':!![]})[_0x4dc750(0x2945)][_0x4dc750(0x146b)](function(_0x1d56f3){_0x23d590['lists']=_0x1d56f3||{'count':0x0,'rows':[]};})['catch'](function(_0x3db8e9){const _0x3235ee=_0x4dc750;if(_0x3db8e9[_0x3235ee(0x524)]&&_0x3db8e9['data']['errors']&&_0x3db8e9[_0x3235ee(0x524)]['errors']['length']){_0x23d590['errors']=_0x3db8e9[_0x3235ee(0x524)]['errors']||[{'message':_0x3db8e9[_0x3235ee(0xd5f)](),'type':_0x3235ee(0x287d)}];for(let _0x4cc62b=0x0;_0x4cc62b<_0x3db8e9[_0x3235ee(0x524)][_0x3235ee(0xcef)][_0x3235ee(0x402)];_0x4cc62b+=0x1){_0x2fc198[_0x3235ee(0x1980)]({'title':_0x3db8e9['data']['errors'][_0x4cc62b][_0x3235ee(0x1142)],'msg':_0x3db8e9['data'][_0x3235ee(0xcef)][_0x4cc62b]['message']});}}else _0x2fc198[_0x3235ee(0x1980)]({'title':_0x3db8e9['status']?_0x3235ee(0x262a)+_0x3db8e9[_0x3235ee(0x107b)]+_0x3235ee(0x1315)+_0x3db8e9[_0x3235ee(0x167f)]:_0x3235ee(0x287d),'msg':_0x3db8e9[_0x3235ee(0x524)]?JSON[_0x3235ee(0x10bb)](_0x3db8e9[_0x3235ee(0x524)]['message']):_0x3db8e9[_0x3235ee(0xd5f)]()});});}function _0x8a043f(_0x52430d){const _0x4ed8ea=_0x211d39;_0x7d84a3[_0x4ed8ea(0x2615)]({'controller':_0x4ed8ea(0x11f3),'controllerAs':'vm','templateUrl':_0x3f981f,'parent':angular[_0x4ed8ea(0x1853)](_0x2fb7c9[_0x4ed8ea(0x2586)]),'targetEvent':_0x52430d,'clickOutsideToClose':!![],'resolve':{'contact':[_0x4ed8ea(0x362),function(_0x32fa3d){const _0x580173=_0x4ed8ea;return _0x32fa3d['resolve'](_0x580173(0x17d4),{'id':_0x23d590[_0x580173(0x1662)]['id']});}],'lists':[_0x4ed8ea(0x362),function(_0x99fac2){const _0xccb469=_0x4ed8ea;return _0x99fac2[_0xccb469(0x2922)](_0xccb469(0x22b6),{'id':_0x3b064a['getCurrentUser']()['id'],'fields':'id,name'});}]},'locals':{'contacts':[]}});}function _0x4c9d76(_0xdd7f15){const _0x2f3ecc=_0x211d39;_0x7d84a3[_0x2f3ecc(0x2615)]({'controller':'MergeContactDialogController','controllerAs':'vm','templateUrl':_0x1cccb8,'parent':angular['element'](_0x2fb7c9[_0x2f3ecc(0x2586)]),'targetEvent':_0xdd7f15,'clickOutsideToClose':!![],'resolve':{'contact':[_0x2f3ecc(0x362),function(_0x44b3d7){return _0x44b3d7['resolve']('cmContact@get',{'id':_0x23d590['contact']['id']});}],'lists':[_0x2f3ecc(0x362),function(_0x313272){const _0x4c608d=_0x2f3ecc;return _0x313272[_0x4c608d(0x2922)](_0x4c608d(0x22b6),{'id':_0x3b064a[_0x4c608d(0xb12)]()['id'],'fields':_0x4c608d(0x7a7)});}]},'locals':{'contacts':[]}})['then'](function(_0x56532a){const _0x4bad85=_0x2f3ecc;if(_0x56532a){for(const _0x55bf30 in _0x424f21[_0x4bad85(0x2870)][_0x4bad85(0x2870)]['$parent']['vm'][_0x4bad85(0x16fe)]){if(typeof _0x424f21['$parent'][_0x4bad85(0x2870)][_0x4bad85(0x2870)]['vm'][_0x4bad85(0x16fe)][_0x55bf30]!=='undefined'){const _0x27a5d5=_0x424f21['$parent']['$parent'][_0x4bad85(0x2870)]['vm'][_0x4bad85(0x16fe)][_0x55bf30];_0x27a5d5&&_0x27a5d5[_0x4bad85(0x1662)]&&(_0x56532a['from']&&_0x56532a[_0x4bad85(0xfa5)]['id']&&_0x56532a[_0x4bad85(0xfa5)]['id']===_0x27a5d5[_0x4bad85(0x1662)]['id']&&_0x424f21['$parent'][_0x4bad85(0x2870)]['$parent']['vm'][_0x4bad85(0x10c3)](_0x27a5d5),_0x56532a['to']&&_0x56532a['to']['id']&&_0x56532a['to']['id']===_0x27a5d5[_0x4bad85(0x1662)]['id']&&_0x424f21[_0x4bad85(0x2870)]['$parent'][_0x4bad85(0x2870)]['vm'][_0x4bad85(0x10c3)](_0x27a5d5));}}_0x56532a['new']&&_0x424f21[_0x4bad85(0x2870)][_0x4bad85(0x2870)][_0x4bad85(0x2870)]['vm'][_0x4bad85(0xd14)](_0x56532a[_0x4bad85(0x16d9)]);}});}function _0x10a0d8(_0x51b56c,_0x1f0249){const _0x3ebfd1=_0x211d39;if(_0x23d590[_0x3ebfd1(0x1513)]){_0x2fc198[_0x3ebfd1(0x1980)]({'title':_0x3ebfd1(0xa13),'msg':'Please\x20save\x20the\x20contact\x20before\x20disposing!'});return;}_0x7d84a3[_0x3ebfd1(0x2615)]({'controller':_0x3ebfd1(0x2879),'controllerAs':'vm','templateUrl':_0x10a784,'parent':angular[_0x3ebfd1(0x1853)](_0x2fb7c9[_0x3ebfd1(0x2586)]),'targetEvent':_0x1f0249,'clickOutsideToClose':!_0x1f0249[_0x3ebfd1(0xc9e)],'escapeToClose':!_0x1f0249[_0x3ebfd1(0xc9e)],'resolve':{'globalDispositions':[_0x3ebfd1(0x362),function(_0x48f231){const _0x475eb0=_0x3ebfd1;return _0x48f231['resolve'](_0x475eb0(0x1041),{'MailAccountId':_0x475eb0(0x203c),'FaxAccountId':_0x475eb0(0x203c),'SmsAccountId':'null','WhatsappAccountId':_0x475eb0(0x203c),'OpenchannelAccountId':_0x475eb0(0x203c),'ChatWebsiteId':'null','ListId':_0x475eb0(0x203c)});}]},'onRemoving':function(){const _0x52bc1a=_0x3ebfd1;_0x23d590[_0x52bc1a(0xe7b)]&&_0x1f0249[_0x52bc1a(0xc9e)]&&_0x49eeba[_0x52bc1a(0xe7b)][_0x52bc1a(0x974)]({'id':_0x23d590[_0x52bc1a(0xe7b)]['id']})['$promise'][_0x52bc1a(0x129e)](function(_0x551a3d){const _0x2bf20b=_0x52bc1a;console[_0x2bf20b(0x1980)](_0x551a3d);});},'locals':{'dispositions':_0x23d590[_0x3ebfd1(0x13a3)][_0x3ebfd1(0x2647)],'contact':_0x23d590['contact'],'call':_0x1f0249}})[_0x3ebfd1(0x146b)](function(_0x30e52d){const _0x335869=_0x3ebfd1;if(_0x30e52d){if(_0x30e52d===_0x335869(0x1dc2))_0x2fc198[_0x335869(0x1c75)]({'title':_0xfe69fe['instant'](_0x335869(0x1a28)),'msg':_0xfe69fe[_0x335869(0xde)](_0x335869(0x14d5))+'\x20'+_0x30e52d});else{if(_0x30e52d===_0x335869(0x2642)||_0x30e52d===_0x335869(0x2347)){}else _0x2fc198[_0x335869(0x1c75)]({'title':_0xfe69fe[_0x335869(0xde)](_0x335869(0x1a28)),'msg':_0xfe69fe[_0x335869(0xde)](_0x335869(0x1904))});}}for(const _0x38feca in _0x424f21[_0x335869(0x2870)][_0x335869(0x2870)]['$parent']['vm'][_0x335869(0x16fe)]){if(typeof _0x424f21[_0x335869(0x2870)][_0x335869(0x2870)][_0x335869(0x2870)]['vm'][_0x335869(0x16fe)][_0x38feca]!==_0x335869(0x2274)){const _0x5ce276=_0x424f21[_0x335869(0x2870)]['$parent'][_0x335869(0x2870)]['vm'][_0x335869(0x16fe)][_0x38feca];_0x3f65c0()[_0x335869(0x2640)](_0x5ce276[_0x335869(0x197c)],function(_0x4e06cb){const _0x135355=_0x335869;return _0x4e06cb['uniqueid']===_0x1f0249[_0x135355(0x4f8)];});}}_0x424f21[_0x335869(0x2870)]['vm']['updateLocalStorage']();});}function _0x1f99ff(_0x5a7334){const _0x2332a2=_0x211d39;return _0x49eeba['cmList'][_0x2332a2(0x2328)]({'id':_0x5a7334})[_0x2332a2(0x2945)]['then'](function(_0xceadec){const _0x43ceca=_0x2332a2;_0x23d590[_0x43ceca(0x13a3)][_0x43ceca(0x10ba)]=_0xceadec;})[_0x2332a2(0x129e)](function(_0x43ecb8){const _0x3b0352=_0x2332a2;_0x2fc198['error']({'title':_0x43ecb8[_0x3b0352(0x107b)]?'API:'+_0x43ecb8[_0x3b0352(0x107b)]+_0x3b0352(0x1315)+_0x43ecb8[_0x3b0352(0x167f)]:'LIST:GETCustomFields','msg':_0x43ecb8[_0x3b0352(0x524)]?JSON[_0x3b0352(0x10bb)](_0x43ecb8[_0x3b0352(0x524)]):_0x43ecb8[_0x3b0352(0xd5f)]()});});}function _0x359d20(_0x7f8a68){return _0x7f8a68===null?undefined:new Date(_0x7f8a68);}function _0x221856(_0x5883b3){const _0x4cce37=_0x211d39;try{_0x5883b3['formData']=_0x4cbf1a()[_0x4cce37(0x18c)](_0x5883b3[_0x4cce37(0x21e6)],{'contact':_0x23d590[_0x4cce37(0x1662)],'user':_0x23d590['user']});}catch(_0x4af49d){console[_0x4cce37(0x1980)](_0x4af49d);}try{_0x424f21['$parent'][_0x4cce37(0x2870)][_0x4cce37(0x2870)]['vm'][_0x4cce37(0x465)]({'type':_0x4cce37(0x1640),'title':_0x5883b3[_0x4cce37(0x19eb)],'icon':'icon-script','color':_0x4cce37(0xd8a),'project':_0x5883b3,'contact':_0x23d590['contact']});}catch(_0x41a714){_0x2fc198[_0x4cce37(0x1980)]({'title':_0x4cce37(0x1bb0),'msg':'The\x20project\x20cannot\x20be\x20started'+JSON[_0x4cce37(0x10bb)](_0x41a714)});}}function _0x83a8c4(_0x263232){const _0x495e42=_0x211d39;return _0x3b064a[_0x495e42(0x2434)](_0x263232);}_0x424f21[_0x211d39(0x16ad)](_0x211d39(0x116f),function(){});}const _0x59c03c=_0x5a4560;;_0x1e335a[_0x313a4d(0x11c2)]=[_0x313a4d(0x10e8),'$q','toasty',_0x313a4d(0x247f),'dispositions',_0x313a4d(0x4bb),_0x313a4d(0x133b),_0x313a4d(0x1662),_0x313a4d(0xa87),_0x313a4d(0x214b)];function _0x1e335a(_0x465302,_0x5be011,_0x927be5,_0x248190,_0x3b37e1,_0x1b5c03,_0x515d3e,_0x274cee,_0x3da0d8,_0x671902){const _0x4ae00b=_0x313a4d,_0x201ede=this;_0x201ede[_0x4ae00b(0x19f6)]=![],_0x201ede[_0x4ae00b(0x2762)]=![],_0x201ede['queueCampaign']=undefined,_0x201ede[_0x4ae00b(0x17c4)]={'count':0x0,'rows':[]},_0x201ede[_0x4ae00b(0x2647)]=_0x3b37e1[_0x4ae00b(0x19c7)],_0x201ede[_0x4ae00b(0x4bb)]=_0x1b5c03['rows'],_0x201ede[_0x4ae00b(0x1662)]=_0x274cee,_0x201ede[_0x4ae00b(0x133b)]=_0x515d3e,_0x201ede[_0x4ae00b(0xd38)]=_0x201ede[_0x4ae00b(0x133b)]['note']||undefined,_0x201ede['dialerCall']=![],_0x201ede[_0x4ae00b(0x26c7)]=![],_0x201ede[_0x4ae00b(0x10fa)]={'minDate':new Date(),'dateTime':new Date()};_0x201ede['call']&&_0x201ede[_0x4ae00b(0x133b)][_0x4ae00b(0x85b)]&&_0x201ede[_0x4ae00b(0x133b)][_0x4ae00b(0x85b)]['xmd-voicequeueid']?(_0x201ede[_0x4ae00b(0x1922)]=!![],_0x248190[_0x4ae00b(0x1446)][_0x4ae00b(0x1e5f)]({'id':_0x201ede['call'][_0x4ae00b(0x85b)][_0x4ae00b(0x540)]})[_0x4ae00b(0x2945)][_0x4ae00b(0x146b)](function(_0x4bfb94){const _0x3cf5bf=_0x4ae00b;_0x4bfb94&&_0x4bfb94[_0x3cf5bf(0x19c7)]&&_0x4bfb94['rows'][_0x3cf5bf(0x402)]>0x0&&(_0x201ede[_0x3cf5bf(0x26c7)]=!![]);})[_0x4ae00b(0x129e)](function(_0x3fb441){const _0x3884df=_0x4ae00b;_0x927be5[_0x3884df(0x1980)]({'title':_0x3fb441[_0x3884df(0x107b)]?_0x3884df(0x262a)+_0x3fb441[_0x3884df(0x107b)]+_0x3884df(0x1315)+_0x3fb441[_0x3884df(0x167f)]:_0x3884df(0xcc8),'msg':_0x3fb441[_0x3884df(0x524)]?JSON[_0x3884df(0x10bb)](_0x3fb441['data']):_0x3fb441[_0x3884df(0xd5f)]()});})):_0x248190[_0x4ae00b(0xe7b)]['getQueues']({'id':_0x3da0d8[_0x4ae00b(0xb12)]()['id'],'fields':_0x4ae00b(0xecf),'channel':_0x4ae00b(0xe6),'type':'outbound','nolimit':!![]})['$promise'][_0x4ae00b(0x146b)](function(_0xf8fc23){_0x201ede['queueCampaigns']=_0xf8fc23||{'count':0x0,'rows':[]};})[_0x4ae00b(0x129e)](function(_0x53ebb4){const _0x52a4a2=_0x4ae00b;console[_0x52a4a2(0x1980)](_0x53ebb4);});_0x201ede['onDispositionChange']=_0x1c4833,_0x201ede[_0x4ae00b(0xb7d)]=_0x354469,_0x201ede[_0x4ae00b(0x2799)]=_0x3a1e4d,_0x201ede[_0x4ae00b(0x13f3)]=_0x23eecf,_0x201ede[_0x4ae00b(0x7db)]=_0x5ed8b0;function _0x1c4833(_0x279b84){const _0x876a4d=_0x4ae00b,_0x3609c9=_0x3f65c0()[_0x876a4d(0x11c)](_0x201ede[_0x876a4d(0x2647)],_0x201ede[_0x876a4d(0x4bb)],'id');switch(_0x279b84){case _0x876a4d(0xb68):_0x201ede[_0x876a4d(0x85f)]=_0x201ede[_0x876a4d(0xef2)],_0x201ede[_0x876a4d(0xf38)]=_0x3f65c0()[_0x876a4d(0x1360)](_0x3609c9,[_0x876a4d(0x11b5),_0x201ede[_0x876a4d(0xef2)]['id']]),_0x201ede[_0x876a4d(0x187a)]=undefined,_0x201ede[_0x876a4d(0xc58)]=undefined,_0x201ede[_0x876a4d(0x109b)]=![];break;case'second':_0x201ede['selectedDisposition']=_0x201ede[_0x876a4d(0x187a)],_0x201ede[_0x876a4d(0x109b)]=_0x3f65c0()[_0x876a4d(0x1360)](_0x3609c9,[_0x876a4d(0x11b5),_0x201ede[_0x876a4d(0x187a)]['id']]);break;case _0x876a4d(0xb15):_0x201ede['selectedDisposition']=_0x201ede[_0x876a4d(0xc58)];break;}}function _0x354469(_0x33ff68){const _0x5b772f=_0x4ae00b;if(_0x33ff68===_0x5b772f(0xfe1))_0x201ede[_0x5b772f(0x187a)]=undefined,_0x201ede[_0x5b772f(0xc58)]=undefined,_0x201ede[_0x5b772f(0x85f)]=_0x201ede[_0x5b772f(0xef2)];else _0x33ff68==='third'&&(_0x201ede['thirdLevelDisposition']=undefined,_0x201ede[_0x5b772f(0x85f)]=_0x201ede[_0x5b772f(0x187a)]);}function _0x43dbd2(){const _0x2b7bd3=_0x4ae00b,_0x562026=_0x201ede[_0x2b7bd3(0x85f)]?_0x201ede[_0x2b7bd3(0x85f)][_0x2b7bd3(0x19eb)][_0x2b7bd3(0x256e)]():undefined;return{'id':_0x201ede[_0x2b7bd3(0x133b)]['uniqueid'],'disposition':_0x201ede[_0x2b7bd3(0xef2)]?_0x201ede[_0x2b7bd3(0xef2)]['name']:null,'secondDisposition':_0x201ede[_0x2b7bd3(0x187a)]?_0x201ede[_0x2b7bd3(0x187a)][_0x2b7bd3(0x19eb)]:null,'thirdDisposition':_0x201ede['thirdLevelDisposition']?_0x201ede[_0x2b7bd3(0xc58)][_0x2b7bd3(0x19eb)]:null,'dispositionat':_0x2deec6()(),'amd':_0x562026===_0x2b7bd3(0xabd),'fax':_0x562026===_0x2b7bd3(0x22d9),'blacklist':_0x562026===_0x2b7bd3(0x16c0),'recallme':_0x562026===_0x2b7bd3(0x2762),'UserId':_0x562026===_0x2b7bd3(0x2762)?_0x3da0d8[_0x2b7bd3(0xb12)]()['id']:null,'OwnerId':_0x3da0d8['getCurrentUser']()['id']};}function _0x488bc7(){const _0x2187df=_0x4ae00b;return _0x248190['voiceCallReport']['update']({'id':_0x201ede['call'][_0x2187df(0x4f8)],'userDisposition':_0x201ede[_0x2187df(0xef2)]?_0x201ede[_0x2187df(0xef2)][_0x2187df(0x19eb)]:null,'userSecondDisposition':_0x201ede[_0x2187df(0x187a)]?_0x201ede[_0x2187df(0x187a)][_0x2187df(0x19eb)]:null,'userThirdDisposition':_0x201ede[_0x2187df(0xc58)]?_0x201ede[_0x2187df(0xc58)][_0x2187df(0x19eb)]:null,'note':_0x201ede['note'],'UserId':_0x3da0d8[_0x2187df(0xb12)]()['id'],'ContactId':_0x201ede[_0x2187df(0x1662)]['id']})[_0x2187df(0x2945)]['catch'](function(_0x3a91d9){const _0xfb978e=_0x2187df;_0x927be5[_0xfb978e(0x1980)]({'title':_0x3a91d9['status']?_0xfb978e(0x262a)+_0x3a91d9['status']+_0xfb978e(0x1315)+_0x3a91d9['statusText']:_0xfb978e(0x230b),'msg':_0x3a91d9[_0xfb978e(0x524)]?JSON[_0xfb978e(0x10bb)](_0x3a91d9[_0xfb978e(0x524)]):_0x3a91d9[_0xfb978e(0xd5f)]()});});}function _0x27abbf(){const _0x4b73ad=_0x4ae00b;return _0x248190[_0x4b73ad(0x1688)][_0x4b73ad(0x16b4)]({'uniqueid':_0x201ede[_0x4b73ad(0x133b)]['uniqueid']})[_0x4b73ad(0x2945)][_0x4b73ad(0x146b)](function(_0x2fb332){const _0xa378ba=_0x4b73ad;if(_0x2fb332)for(let _0x35e6ab=0x0;_0x35e6ab<_0x2fb332[_0xa378ba(0x19c7)]['length'];_0x35e6ab+=0x1){_0x248190[_0xa378ba(0x1688)][_0xa378ba(0x18e1)]({'id':_0x2fb332[_0xa378ba(0x19c7)][_0x35e6ab]['id'],'userDisposition':_0x201ede['firstLevelDisposition']?_0x201ede[_0xa378ba(0xef2)][_0xa378ba(0x19eb)]:null,'userSecondDisposition':_0x201ede[_0xa378ba(0x187a)]?_0x201ede[_0xa378ba(0x187a)][_0xa378ba(0x19eb)]:null,'userThirdDisposition':_0x201ede['thirdLevelDisposition']?_0x201ede[_0xa378ba(0xc58)][_0xa378ba(0x19eb)]:null})[_0xa378ba(0x2945)][_0xa378ba(0x129e)](function(_0xe57b04){const _0xe98fb=_0xa378ba;_0x927be5[_0xe98fb(0x1980)]({'title':_0xe57b04['status']?'API:'+_0xe57b04[_0xe98fb(0x107b)]+_0xe98fb(0x1315)+_0xe57b04[_0xe98fb(0x167f)]:'SYSTEM:UPDATEVOICERECORDING','msg':_0xe57b04[_0xe98fb(0x524)]?JSON[_0xe98fb(0x10bb)](_0xe57b04[_0xe98fb(0x524)]):_0xe57b04[_0xe98fb(0xd5f)]()});});}})['catch'](function(_0x306032){const _0x1a0694=_0x4b73ad;_0x927be5[_0x1a0694(0x1980)]({'title':_0x306032[_0x1a0694(0x107b)]?_0x1a0694(0x262a)+_0x306032[_0x1a0694(0x107b)]+'\x20-\x20'+_0x306032[_0x1a0694(0x167f)]:_0x1a0694(0x5a2),'msg':_0x306032[_0x1a0694(0x524)]?JSON[_0x1a0694(0x10bb)](_0x306032[_0x1a0694(0x524)]):_0x306032['toString']()});});}function _0x271dac(){const _0x535627=_0x4ae00b;return _0x248190[_0x535627(0x2018)][_0x535627(0x18e1)](_0x43dbd2())[_0x535627(0x2945)][_0x535627(0x129e)](function(_0x4743ce){const _0x57b601=_0x535627;_0x927be5['error']({'title':_0x4743ce[_0x57b601(0x107b)]?_0x57b601(0x262a)+_0x4743ce[_0x57b601(0x107b)]+'\x20-\x20'+_0x4743ce[_0x57b601(0x167f)]:_0x57b601(0x33b),'msg':_0x4743ce[_0x57b601(0x524)]?JSON[_0x57b601(0x10bb)](_0x4743ce[_0x57b601(0x524)]):_0x4743ce[_0x57b601(0xd5f)]()});});}function _0x4f7848(){const _0x5290a5=_0x4ae00b;return _0x248190[_0x5290a5(0x22e3)][_0x5290a5(0x18e1)](_0x43dbd2())[_0x5290a5(0x2945)][_0x5290a5(0x129e)](function(_0x14e0f2){const _0x6796aa=_0x5290a5;_0x927be5[_0x6796aa(0x1980)]({'title':_0x14e0f2[_0x6796aa(0x107b)]?_0x6796aa(0x262a)+_0x14e0f2['status']+_0x6796aa(0x1315)+_0x14e0f2[_0x6796aa(0x167f)]:'SYSTEM:UPDATECMHOPPERHISTORY','msg':_0x14e0f2['data']?JSON[_0x6796aa(0x10bb)](_0x14e0f2[_0x6796aa(0x524)]):_0x14e0f2[_0x6796aa(0xd5f)]()});});}function _0x3afdb7(_0x169d83){const _0x11a3d3=_0x4ae00b;if(_0x169d83)return _0x248190['voiceQueue'][_0x11a3d3(0x1e5f)]({'id':_0x169d83,'type':_0x11a3d3(0xc9c),'fields':'id'})['$promise'][_0x11a3d3(0x146b)](function(_0x1efd50){const _0x1d2383=_0x11a3d3,_0x2aef66=[];if(_0x1efd50&&_0x1efd50[_0x1d2383(0x51c)]>0x0){for(let _0xf7e347=0x0;_0xf7e347<_0x1efd50['rows'][_0x1d2383(0x402)];_0xf7e347+=0x1){const _0x563464=angular['copy'](_0x201ede['contact']);delete _0x563464['id'],_0x563464['ListId']=_0x1efd50[_0x1d2383(0x19c7)][_0xf7e347]['id'],_0x2aef66[_0x1d2383(0x1f47)](_0x248190['cmContact'][_0x1d2383(0x1e3)](_0x563464)['$promise']);}return _0x5be011['all'](_0x2aef66);}_0x927be5['success']({'title':_0x671902['instant'](_0x1d2383(0x1a28)),'msg':_0x671902['instant']('DASHBOARDS.NOTAVAILABLE')+'\x20'+_0x201ede['selectedDisposition']}),_0x201ede['selectedDisposition']=undefined;return;})[_0x11a3d3(0x146b)](function(_0x3f3f3a){const _0x25bb95=_0x11a3d3;_0x3f3f3a&&_0x465302[_0x25bb95(0x2458)](_0x201ede[_0x25bb95(0x85f)]?_0x201ede[_0x25bb95(0x85f)][_0x25bb95(0x19eb)][_0x25bb95(0x1c37)]():'');})['catch'](function(_0xfd3815){const _0x19251f=_0x11a3d3;_0x927be5['error']({'title':_0xfd3815[_0x19251f(0x107b)]?'API:'+_0xfd3815[_0x19251f(0x107b)]+'\x20-\x20'+_0xfd3815[_0x19251f(0x167f)]:'SYSTEM:UPDATEBLACKLIST','msg':_0xfd3815[_0x19251f(0x524)]?JSON[_0x19251f(0x10bb)](_0xfd3815[_0x19251f(0x524)]):_0xfd3815['toString']()}),_0x465302[_0x19251f(0x2458)](_0x201ede[_0x19251f(0x85f)]?_0x201ede['selectedDisposition'][_0x19251f(0x19eb)][_0x19251f(0x1c37)]():'');});}function _0x3a1e4d(_0x2490ce){const _0x94d185=_0x4ae00b;_0x201ede['selectedDisposition']=_0x3f65c0()['isNil'](_0x2490ce)?_0x201ede[_0x94d185(0x85f)]:{'name':_0x2490ce};_0x2490ce&&(_0x201ede[_0x94d185(0xef2)]=_0x201ede[_0x94d185(0x85f)]);_0x201ede[_0x94d185(0x133b)]['note']=_0x201ede['note'],_0x488bc7(),_0x27abbf();_0x201ede['dialerCall']&&(_0x271dac(),_0x4f7848());if(!_0x3f65c0()[_0x94d185(0x1b36)](_0x201ede['selectedDisposition']))switch(_0x201ede[_0x94d185(0x85f)][_0x94d185(0x19eb)][_0x94d185(0x256e)]()){case _0x94d185(0x16c0):_0x201ede[_0x94d185(0x133b)]&&_0x201ede['call'][_0x94d185(0x85b)]&&_0x201ede[_0x94d185(0x133b)][_0x94d185(0x85b)]['xmd-voicequeueid']&&_0x3afdb7(_0x201ede['call'][_0x94d185(0x85b)]['xmd-voicequeueid']);break;case _0x94d185(0x16c7):_0x201ede[_0x94d185(0x19f6)]=!![],_0x201ede[_0x94d185(0x2762)]=![];break;case'recallme':_0x201ede['isReschedule']=!![],_0x201ede[_0x94d185(0x2762)]=!![];break;default:_0x465302['hide'](_0x201ede['selectedDisposition']?_0x201ede[_0x94d185(0x85f)][_0x94d185(0x19eb)][_0x94d185(0x1c37)]():'');}else _0x465302[_0x94d185(0x2458)](_0x201ede[_0x94d185(0x85f)]?_0x201ede['selectedDisposition'][_0x94d185(0x19eb)][_0x94d185(0x1c37)]():'');}function _0x23eecf(){_0x465302['cancel']();}function _0x5ed8b0(){const _0x546865=_0x4ae00b;return _0x201ede[_0x546865(0x1cdf)]=!![],_0x248190[_0x546865(0x39f)]['save']({'phone':_0x201ede[_0x546865(0x1662)][_0x546865(0x1d55)],'UserId':_0x201ede[_0x546865(0x2762)]?_0x3da0d8[_0x546865(0xb12)]()['id']:null,'ContactId':_0x201ede[_0x546865(0x1662)]['id'],'ListId':_0x201ede[_0x546865(0x1662)][_0x546865(0xb7c)],'VoiceQueueId':_0x201ede['dialerCall']?Number(_0x201ede[_0x546865(0x133b)][_0x546865(0x540)]):_0x201ede[_0x546865(0x1f0f)]?_0x201ede['queueCampaign']['id']:null,'scheduledat':_0x2deec6()(_0x201ede[_0x546865(0x10fa)][_0x546865(0xb63)])[_0x546865(0x22b0)](_0x546865(0x1ce2)),'priority':0x3,'recallme':_0x201ede[_0x546865(0x2762)],'OwnerId':_0x3da0d8[_0x546865(0xb12)]()['id']})[_0x546865(0x2945)][_0x546865(0x146b)](function(){const _0x4ce606=_0x546865;_0x201ede[_0x4ce606(0x1922)]&&_0x248190[_0x4ce606(0x2018)][_0x4ce606(0x18e1)]({'id':_0x201ede[_0x4ce606(0x133b)]['uniqueid'],'rescheduled':!![],'rescheduledat':_0x2deec6()(_0x201ede[_0x4ce606(0x10fa)][_0x4ce606(0xb63)])[_0x4ce606(0x22b0)](_0x4ce606(0x1ce2)),'recallme':_0x201ede[_0x4ce606(0x2762)]})[_0x4ce606(0x2945)][_0x4ce606(0x129e)](function(_0x1c33dc){const _0x5d83ae=_0x4ce606;console[_0x5d83ae(0x1a74)](_0x1c33dc);});})[_0x546865(0x146b)](function(){const _0x23b732=_0x546865;_0x927be5[_0x23b732(0x1c75)]({'title':_0x671902[_0x23b732(0xde)](_0x23b732(0x1a28)),'msg':_0x671902[_0x23b732(0xde)](_0x23b732(0x14d5))+'\x20'+(_0x201ede[_0x23b732(0x2762)]?_0x671902['instant'](_0x23b732(0x1ac6)):_0x671902[_0x23b732(0xde)](_0x23b732(0x1ffe)))});})['catch'](function(){const _0x5b8f74=_0x546865;_0x465302['hide'](_0x201ede['selectedDisposition']?_0x201ede[_0x5b8f74(0x85f)][_0x5b8f74(0x19eb)]['toUpperCase']():'');})[_0x546865(0x1ec6)](function(){const _0x11c733=_0x546865;_0x201ede[_0x11c733(0x1cdf)]=![],_0x465302[_0x11c733(0x2458)](_0x201ede[_0x11c733(0x85f)]?_0x201ede[_0x11c733(0x85f)]['name'][_0x11c733(0x1c37)]():'');});}}const _0x24e225=_0x1e335a;;_0x1a8fd2[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),'$state',_0x313a4d(0xd08),_0x313a4d(0x10e8),_0x313a4d(0x1abe),'toasty',_0x313a4d(0x247f),_0x313a4d(0x1662),_0x313a4d(0x133b),_0x313a4d(0xa87),_0x313a4d(0x2762),_0x313a4d(0x214b)];function _0x1a8fd2(_0x5af920,_0x2977b5,_0x3c1dcf,_0xb11a59,_0x5769a2,_0x2830fe,_0x67a12d,_0x1e33b6,_0x1e3742,_0x5f3521,_0x2639e6,_0x5e5842){const _0x45e553=_0x313a4d,_0x44cb66=this;_0x44cb66[_0x45e553(0x133b)]=_0x1e3742,_0x44cb66['contact']=_0x1e33b6,_0x44cb66[_0x45e553(0x10fa)]={'minDate':new Date(),'dateTime':new Date()};function _0x2e5c77(){const _0x2a8f6b=_0x45e553;return _0x44cb66[_0x2a8f6b(0x1cdf)]=!![],_0x67a12d[_0x2a8f6b(0x39f)][_0x2a8f6b(0x1e3)]({'phone':_0x44cb66[_0x2a8f6b(0x1662)][_0x2a8f6b(0x1d55)],'UserId':_0x2639e6?_0x5f3521[_0x2a8f6b(0xb12)]()['id']:null,'ContactId':_0x44cb66[_0x2a8f6b(0x1662)]['id'],'ListId':_0x44cb66['contact']['ListId'],'VoiceQueueId':Number(_0x44cb66[_0x2a8f6b(0x133b)][_0x2a8f6b(0x540)]),'scheduledat':_0x2deec6()(_0x44cb66[_0x2a8f6b(0x10fa)][_0x2a8f6b(0xb63)])[_0x2a8f6b(0x22b0)](_0x2a8f6b(0x1ce2)),'priority':0x3,'recallme':_0x2639e6,'OwnerId':_0x5f3521['getCurrentUser']()['id']})[_0x2a8f6b(0x2945)][_0x2a8f6b(0x146b)](function(){const _0x4f6eb1=_0x2a8f6b;_0x67a12d[_0x4f6eb1(0x2018)]['update']({'id':_0x44cb66[_0x4f6eb1(0x133b)][_0x4f6eb1(0x4f8)],'rescheduled':!![],'rescheduledat':_0x2deec6()(_0x44cb66[_0x4f6eb1(0x10fa)][_0x4f6eb1(0xb63)])[_0x4f6eb1(0x22b0)](_0x4f6eb1(0x1ce2)),'recallme':_0x2639e6})[_0x4f6eb1(0x2945)];})[_0x2a8f6b(0x146b)](function(){const _0x26e600=_0x2a8f6b;_0x2830fe[_0x26e600(0x1c75)]({'title':_0x5e5842[_0x26e600(0xde)]('APP.INFO'),'msg':_0x5e5842[_0x26e600(0xde)](_0x26e600(0x14d5))+'\x20'+(_0x2639e6?_0x5e5842[_0x26e600(0xde)](_0x26e600(0x1ac6)):_0x5e5842[_0x26e600(0xde)](_0x26e600(0x1ffe)))}),_0xb11a59[_0x26e600(0x2458)]();})[_0x2a8f6b(0x129e)](function(_0x3d1c16){_0xb11a59['cancel'](_0x3d1c16);})[_0x2a8f6b(0x1ec6)](function(){const _0x576033=_0x2a8f6b;_0x44cb66[_0x576033(0x1cdf)]=![];});}function _0x5cfc27(){const _0x1f6347=_0x45e553;_0xb11a59[_0x1f6347(0x6c3)]();}_0x44cb66[_0x45e553(0x13f3)]=_0x5cfc27,_0x44cb66[_0x45e553(0x1eaf)]=_0x2e5c77;}const _0x55b80f=_0x1a8fd2;;_0x3ad9a9[_0x313a4d(0x11c2)]=[_0x313a4d(0x10e8),_0x313a4d(0x214b),_0x313a4d(0x247f),_0x313a4d(0x1471),'callNumber',_0x313a4d(0x1fe4)];function _0x3ad9a9(_0x5cf76a,_0x546de9,_0x22df84,_0x439e25,_0x469280,_0x1eaee8){const _0x5398c3=_0x313a4d,_0x463777=this;_0x463777[_0x5398c3(0x20af)]=_0x469280,_0x463777['page']=0x1;function _0x11651f(){const _0x275b51=_0x5398c3;_0x22df84[_0x275b51(0xf03)][_0x275b51(0x16b4)]({'fields':_0x275b51(0x7a7),'nolimit':!![]})[_0x275b51(0x2945)][_0x275b51(0x146b)](function(_0xdb85d5){const _0x1ab073=_0x275b51;_0x463777[_0x1ab073(0x1324)]=_0x3f65c0()[_0x1ab073(0x1b28)](_0xdb85d5[_0x1ab073(0x19c7)])[_0x1ab073(0x194)]('id')[_0x1ab073(0x1de4)]('name')[_0x1ab073(0x175d)](),_0x22df84[_0x1ab073(0x14a9)][_0x1ab073(0x16b4)]({'fields':_0x1ab073(0x255d),'nolimit':!![]})[_0x1ab073(0x2945)][_0x1ab073(0x146b)](function(_0x8d0792){const _0x20de40=_0x1ab073;_0x463777[_0x20de40(0x10ba)]=_0x8d0792[_0x20de40(0x19c7)],_0x463777['contacts']=_0x3f65c0()['map'](_0x439e25,function(_0x2cd627){const _0x581d77=_0x20de40;return Object[_0x581d77(0x627)](_0x2cd627)[_0x581d77(0x1df5)](function(_0x223796){const _0x5af83b=_0x581d77;if(Number(_0x2cd627[_0x223796])===Number(_0x463777[_0x5af83b(0x20af)])){if(_0x223796[_0x5af83b(0xd4d)]('cf_')){const _0x61505c=_0x3f65c0()['find'](_0x463777[_0x5af83b(0x10ba)],['id',Number(_0x3f65c0()['trimStart'](_0x223796,_0x5af83b(0x21ef)))]);_0x2cd627[_0x5af83b(0x23e7)]=_0x61505c?_0x61505c[_0x5af83b(0x280c)]:_0x546de9['instant']('APP.UNKNOWN');}else _0x2cd627[_0x5af83b(0x23e7)]=_0x223796;}}),_0x2cd627;});});})['then'](function(){const _0x2bbbf9=_0x275b51;_0x463777[_0x2bbbf9(0x19cb)]=_0x3f65c0()[_0x2bbbf9(0xe6f)](_0x439e25,0x4);})[_0x275b51(0x129e)](function(_0xb3e9e1){const _0x4010da=_0x275b51;_0x1eaee8[_0x4010da(0x1980)]({'title':_0xb3e9e1[_0x4010da(0x107b)]?_0x4010da(0x262a)+_0xb3e9e1[_0x4010da(0x107b)]+'\x20-\x20'+_0xb3e9e1[_0x4010da(0x167f)]:_0x4010da(0x1ce7),'msg':_0xb3e9e1[_0x4010da(0x524)]?JSON['stringify'](_0xb3e9e1[_0x4010da(0x524)][_0x4010da(0x7fd)]):_0xb3e9e1[_0x4010da(0xd5f)]()});});}function _0x156ade(){_0x5cf76a['hide'](_0x463777['selectedContact']);}_0x463777[_0x5398c3(0x3d4)]=_0x11651f,_0x463777[_0x5398c3(0x1aa3)]=_0x156ade;}const _0x23d687=_0x3ad9a9;;_0x3bda35[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),'$interval'];function _0x3bda35(_0x10683a,_0x32e111){const _0x11fcfa=_0x313a4d;let _0x17dc37=_0x32e111(function(){},0x3e7);_0x10683a[_0x11fcfa(0x16ad)](_0x11fcfa(0x116f),function(){const _0x1676e1=_0x11fcfa;_0x17dc37&&(_0x32e111[_0x1676e1(0x6c3)](_0x17dc37),_0x17dc37=null);});}const _0x107d40=_0x3bda35;;_0x46dfca[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1abe),_0x313a4d(0x10e8),_0x313a4d(0x4d8),'$window',_0x313a4d(0x214b),_0x313a4d(0x247f),'Auth',_0x313a4d(0x279d)];function _0x46dfca(_0x1a7d37,_0x34dd85,_0x9817c,_0x3a8c8f,_0x5e4adc,_0x1b93a2,_0x3ece86,_0x282d5d,_0x44555d){const _0x174f2f=_0x313a4d,_0x4eb1ca=this;_0x4eb1ca[_0x174f2f(0x181b)]=![],_0x4eb1ca[_0x174f2f(0x258a)]=!![],_0x4eb1ca['disable']=[],_0x4eb1ca[_0x174f2f(0x2647)]={'count':0x0,'rows':[]},_0x4eb1ca[_0x174f2f(0x2321)]=_0x282d5d['getCurrentUser'](),_0x4eb1ca[_0x174f2f(0x1b32)]={},_0x4eb1ca[_0x174f2f(0x2097)]={'count':0x0,'rows':[]},_0x4eb1ca[_0x174f2f(0x1a56)]={'fields':_0x174f2f(0x655),'type':_0x174f2f(0xc9c),'queuecallerexitreason':_0x174f2f(0x1b0d)+','+_0x174f2f(0x1f0a),'sort':'-updatedAt','limit':0xa,'page':0x1},_0x4eb1ca['getAbandonedCalls']=_0x59f60a,_0x4eb1ca[_0x174f2f(0x2482)]=_0x36140c,_0x4eb1ca[_0x174f2f(0x3d4)]=_0x5b6c09,_0x4eb1ca['reserved']=_0x5ccc83,_0x4eb1ca[_0x174f2f(0x25ed)]=_0x3e29fe,_0x4eb1ca[_0x174f2f(0x133b)]=_0x1a7d37['$parent'][_0x174f2f(0x2870)][_0x174f2f(0x2870)][_0x174f2f(0x2870)]['vm'][_0x174f2f(0x133b)],_0x4eb1ca[_0x174f2f(0x15b)]=_0x1a7d37[_0x174f2f(0x2870)][_0x174f2f(0x2870)][_0x174f2f(0x2870)]['$parent']['vm'][_0x174f2f(0x15b)],_0x4eb1ca['webcall']=_0x1a7d37[_0x174f2f(0x2870)][_0x174f2f(0x2870)][_0x174f2f(0x2870)][_0x174f2f(0x2870)]['vm'][_0x174f2f(0x1d38)],_0x4eb1ca[_0x174f2f(0x1db5)]=_0x1a7d37['$parent'][_0x174f2f(0x2870)][_0x174f2f(0x2870)][_0x174f2f(0x2870)]['vm'][_0x174f2f(0x1db5)],_0x4eb1ca['onSearchBarCollapse']=_0x50268f,_0x4eb1ca[_0x174f2f(0x28b7)]=_0x4d41e1,_0x44555d[_0x174f2f(0x13b7)](_0x174f2f(0xfd4),_0x12df89),_0x44555d[_0x174f2f(0x13b7)](_0x174f2f(0x1d59),_0x21d1c2),_0x5b6c09();function _0x5b6c09(){const _0x49b682=_0x174f2f;return _0x3ece86['disposition']['get']({'MailAccountId':_0x49b682(0x203c),'FaxAccountId':_0x49b682(0x203c),'SmsAccountId':_0x49b682(0x203c),'WhatsappAccountId':_0x49b682(0x203c),'OpenchannelAccountId':'null','ChatWebsiteId':_0x49b682(0x203c)})[_0x49b682(0x2945)][_0x49b682(0x146b)](function(_0x1c7809){const _0x42af9a=_0x49b682;return _0x4eb1ca[_0x42af9a(0x2647)]=_0x1c7809?_0x1c7809[_0x42af9a(0x19c7)]:[],_0x3ece86[_0x42af9a(0xe7b)][_0x42af9a(0xc53)]({'id':_0x282d5d[_0x42af9a(0xb12)]()['id'],'fields':_0x42af9a(0x7a7),'channel':_0x42af9a(0xe6),'type':_0x42af9a(0xc9c),'nolimit':!![]})[_0x42af9a(0x2945)];})[_0x49b682(0x146b)](function(_0x45a69f){const _0x50d54a=_0x49b682;_0x4eb1ca[_0x50d54a(0x1b32)]=_0x45a69f||{'count':0x0,'rows':[]},_0x4eb1ca['queuesMap']=_0x3f65c0()[_0x50d54a(0x1de4)](_0x3f65c0()['keyBy'](_0x4eb1ca['queues']['rows'],_0x50d54a(0x19eb)),_0x50d54a(0x19eb)),_0x4eb1ca['defaultQueues']=_0x4eb1ca[_0x50d54a(0x1b32)][_0x50d54a(0x19c7)]?_0x3f65c0()[_0x50d54a(0x205)](_0x4eb1ca[_0x50d54a(0x1b32)][_0x50d54a(0x19c7)],_0x50d54a(0x19eb))[_0x50d54a(0xb47)](','):undefined;})[_0x49b682(0x146b)](function(){_0x4eb1ca['quickFilters']=_0x11a287();})['catch'](function(_0x21a7ca){const _0x4a55a1=_0x49b682;console[_0x4a55a1(0x1a74)](_0x21a7ca);})[_0x49b682(0x1ec6)](function(){const _0x52c9b3=_0x49b682;let _0x56499b=_0x5e4adc[_0x52c9b3(0x1c39)][_0x52c9b3(0x1519)](_0x52c9b3(0x10af)+_0x4eb1ca[_0x52c9b3(0x2321)]['id']);if(_0x56499b)_0x56499b=JSON[_0x52c9b3(0x975)](_0x56499b),_0x56499b[_0x52c9b3(0x1a56)]&&(_0x4eb1ca[_0x52c9b3(0x1a56)]=_0x3f65c0()[_0x52c9b3(0x168d)](_0x56499b['query'],_0x3f65c0()['omit'](_0x4eb1ca[_0x52c9b3(0x1a56)],[_0x52c9b3(0x28fa),'limit',_0x52c9b3(0x844)])),_0x4eb1ca['query']=_0x3f65c0()[_0x52c9b3(0x2432)](_0x4eb1ca['query'],_0x52c9b3(0x1dd6)));else{const _0x4299fd={'$gte':_0x2deec6()()[_0x52c9b3(0x1fcc)](_0x52c9b3(0x12b7))['utcOffset'](0x0,!![])[_0x52c9b3(0x22b0)](),'$lte':_0x2deec6()()['endOf']('month')[_0x52c9b3(0x65f)](0x0,!![])[_0x52c9b3(0x22b0)]()};_0x4eb1ca[_0x52c9b3(0x1a56)][_0x52c9b3(0xc68)]=_0x4299fd;}_0x4eb1ca[_0x52c9b3(0x2516)]=_0x4eb1ca[_0x52c9b3(0x1a56)]['filter']?!![]:![],_0x4eb1ca[_0x52c9b3(0x1d84)]();});}function _0x11a287(){const _0x4feecd=_0x174f2f;return[{'name':_0x4feecd(0x294),'key':_0x4feecd(0xc68),'type':'date','label':'DASHBOARDS.SELECT_DATE'},{'name':_0x4feecd(0x294a),'key':'UserId','type':_0x4feecd(0xa5f),'label':_0x4feecd(0x127),'customOptions':[{'value':_0x4eb1ca[_0x4feecd(0x2321)]['id'],'translate':_0x4feecd(0x6d9)},{'value':_0x4feecd(0xa03),'translate':_0x4feecd(0x38d)},{'value':undefined,'translate':_0x4feecd(0x175e)}]},{'name':_0x4feecd(0x1cd3),'key':_0x4feecd(0x1c72),'type':_0x4feecd(0x175c),'label':_0x4feecd(0x285c),'options':_0x4eb1ca[_0x4feecd(0x1b32)][_0x4feecd(0x19c7)],'ngValue':_0x4feecd(0x19eb),'clearAll':![]}];}function _0x59f60a(){const _0x3a0789=_0x174f2f;_0x4eb1ca[_0x3a0789(0x1a56)][_0x3a0789(0x1c72)]=_0x4eb1ca[_0x3a0789(0x1a56)]['queue']||_0x4eb1ca['defaultQueues']['split'](','),_0x4eb1ca[_0x3a0789(0x1a56)][_0x3a0789(0x145d)]=(_0x4eb1ca[_0x3a0789(0x1a56)][_0x3a0789(0x844)]-0x1)*_0x4eb1ca['query']['limit'];const _0x3289ff={'query':_0x4eb1ca[_0x3a0789(0x1a56)]};_0x5e4adc[_0x3a0789(0x1c39)][_0x3a0789(0xc32)](_0x3a0789(0x10af)+_0x4eb1ca['currentUser']['id'],JSON[_0x3a0789(0x10bb)](_0x3289ff)),_0x4eb1ca[_0x3a0789(0xb9c)]=_0x3ece86[_0x3a0789(0x19ef)][_0x3a0789(0x1456)](_0x4eb1ca[_0x3a0789(0x1a56)],_0x5ae3d0)[_0x3a0789(0x2945)];}function _0x5ae3d0(_0x3e93cb){const _0x671335=_0x174f2f;_0x4eb1ca['abandonedCalls']=_0x3e93cb||{'count':0x0,'rows':[]},_0x4eb1ca[_0x671335(0x258a)]=!![];}function _0x3e29fe(_0x71f59d){const _0x313aa9=_0x174f2f;_0x9817c['show']({'controller':_0x313aa9(0x1dd0),'controllerAs':'vm','templateUrl':'app/main/apps/dashboards/views/general/agent/home/abandoned/dispose/dialog.html','parent':angular[_0x313aa9(0x1853)](_0x3a8c8f[_0x313aa9(0x2586)]),'targetEvent':_0x71f59d,'resolve':{'globalDispositions':['apiResolver',function(_0x3d770f){const _0x577e22=_0x313aa9;return _0x3d770f[_0x577e22(0x2922)](_0x577e22(0x1041),{'MailAccountId':_0x577e22(0x203c),'FaxAccountId':_0x577e22(0x203c),'SmsAccountId':_0x577e22(0x203c),'WhatsappAccountId':_0x577e22(0x203c),'OpenchannelAccountId':'null','ChatWebsiteId':_0x577e22(0x203c),'ListId':_0x577e22(0x203c)});}]},'locals':{'dispositions':_0x4eb1ca[_0x313aa9(0x2647)],'call':_0x71f59d}})['then'](function(_0xe1d1af){const _0xbb28c=_0x313aa9;if(_0xe1d1af){_0x4eb1ca[_0xbb28c(0x1cdf)][_0x71f59d['id']]=!![];const _0x4ae633={'id':_0x71f59d['id'],'lastAssignedTo':_0x71f59d[_0xbb28c(0x25ff)]?_0x4eb1ca['currentUser'][_0xbb28c(0x19eb)]:null,'assigned':_0x71f59d['assigned'],'disposition':_0xe1d1af[_0xbb28c(0x1614)]||null,'secondDisposition':_0xe1d1af['secondLevel']||null,'thirdDisposition':_0xe1d1af[_0xbb28c(0x5da)]||null};_0x3ece86[_0xbb28c(0x19ef)][_0xbb28c(0x18e1)](_0x4ae633)[_0xbb28c(0x2945)][_0xbb28c(0x129e)](function(_0x42e71f){const _0x557cbb=_0xbb28c;console[_0x557cbb(0x1a74)](_0x42e71f);})['finally'](function(){const _0x2ebf41=_0xbb28c;_0x4eb1ca[_0x2ebf41(0x1cdf)][_0x71f59d['id']]=![];});}});}function _0x50268f(){const _0x3f07b7=_0x174f2f;_0x4eb1ca['query'][_0x3f07b7(0x1dd6)]=undefined,_0x4eb1ca[_0x3f07b7(0x2516)]=![];}function _0x4d41e1(){const _0x72882e=_0x174f2f;_0x4eb1ca[_0x72882e(0x2516)]=!![];}let _0x2342bc=!![],_0x70efcb=0x1;_0x1a7d37[_0x174f2f(0x21e8)](_0x174f2f(0x2114),function(_0xc25f2d,_0x234dd1){const _0x401619=_0x174f2f;_0x2342bc?_0x34dd85(function(){_0x2342bc=![];}):(!_0x234dd1&&(_0x70efcb=_0x4eb1ca[_0x401619(0x1a56)]['page']),_0xc25f2d!==_0x234dd1&&(_0x4eb1ca['query'][_0x401619(0x844)]=0x1),!_0xc25f2d&&(_0x4eb1ca[_0x401619(0x1a56)][_0x401619(0x844)]=_0x70efcb),_0x4eb1ca[_0x401619(0x1d84)]());});function _0x36140c(){const _0x4a3393=_0x174f2f;_0x4eb1ca[_0x4a3393(0x181b)]=![],_0x4eb1ca[_0x4a3393(0x1d84)]();}function _0x5ccc83(_0x57a5eb){const _0x12204=_0x174f2f;_0x57a5eb&&(_0x4eb1ca['disable'][_0x57a5eb['id']]=!![],_0x3ece86[_0x12204(0x19ef)][_0x12204(0x18e1)]({'id':_0x57a5eb['id'],'lastAssignedTo':_0x57a5eb[_0x12204(0x25ff)]?_0x4eb1ca[_0x12204(0x2321)][_0x12204(0x19eb)]:null,'assigned':_0x57a5eb[_0x12204(0x25ff)]})[_0x12204(0x2945)][_0x12204(0x129e)](function(_0x1f424e){const _0x1fd441=_0x12204;console[_0x1fd441(0x1a74)](_0x1f424e);})['finally'](function(){const _0x44d5d3=_0x12204;_0x4eb1ca[_0x44d5d3(0x1cdf)][_0x57a5eb['id']]=![];}));}function _0x12df89(_0x1e0768){const _0x98e456=_0x174f2f;_0x4eb1ca[_0x98e456(0x212b)]&&_0x1e0768[_0x98e456(0x1142)]==='outbound'&&_0x4eb1ca[_0x98e456(0x212b)][_0x1e0768[_0x98e456(0x1c72)]]&&(_0x4eb1ca['showTooltip']=!![]);}function _0x21d1c2(_0x3582fa){const _0x1d36c9=_0x174f2f;if(_0x3582fa){const _0xa2684a=_0x3f65c0()['findIndex'](_0x4eb1ca[_0x1d36c9(0x2097)][_0x1d36c9(0x19c7)],['id',_0x3582fa['id']]);_0xa2684a>=0x0&&_0x3f65c0()['merge'](_0x4eb1ca[_0x1d36c9(0x2097)][_0x1d36c9(0x19c7)][_0xa2684a],_0x3582fa);}}_0x1a7d37['$on']('$destroy',function(){const _0x32bdf8=_0x174f2f;_0x44555d[_0x32bdf8(0x1c5f)](_0x32bdf8(0xfd4)),_0x44555d[_0x32bdf8(0x1c5f)](_0x32bdf8(0x1d59));});}const _0x2de162=_0x46dfca;;_0xa4e204['$inject']=[_0x313a4d(0x10e8),_0x313a4d(0x2647),_0x313a4d(0x4bb),_0x313a4d(0x133b)];function _0xa4e204(_0x57f8a5,_0x244b20,_0x2de37a,_0x1dbe2d){const _0x5c7b82=_0x313a4d,_0x403b56=this;_0x403b56[_0x5c7b82(0x2647)]=_0x244b20[_0x5c7b82(0x19c7)],_0x403b56[_0x5c7b82(0x4bb)]=_0x2de37a['rows'],_0x403b56[_0x5c7b82(0x133b)]=_0x1dbe2d,_0x403b56['note']=_0x403b56['call']['note']||undefined,_0x403b56[_0x5c7b82(0x1216)]=_0x205627,_0x403b56[_0x5c7b82(0xb7d)]=_0x1b30f9,_0x403b56[_0x5c7b82(0x2799)]=_0x150d06,_0x403b56['closeDialog']=_0x5098ec;function _0x205627(_0x28d6bf){const _0x2ebe24=_0x5c7b82,_0x210bc4=_0x3f65c0()[_0x2ebe24(0x11c)](_0x403b56['dispositions'],_0x403b56[_0x2ebe24(0x4bb)],'id');switch(_0x28d6bf){case _0x2ebe24(0xb68):_0x403b56[_0x2ebe24(0x85f)]=_0x403b56[_0x2ebe24(0xef2)],_0x403b56['anySecondLevelDisposition']=_0x3f65c0()['some'](_0x210bc4,[_0x2ebe24(0x11b5),_0x403b56[_0x2ebe24(0xef2)]['id']]),_0x403b56[_0x2ebe24(0x187a)]=undefined,_0x403b56[_0x2ebe24(0xc58)]=undefined,_0x403b56['anyThirdLevelDisposition']=![];break;case _0x2ebe24(0xfe1):_0x403b56[_0x2ebe24(0x85f)]=_0x403b56[_0x2ebe24(0x187a)],_0x403b56['anyThirdLevelDisposition']=_0x3f65c0()[_0x2ebe24(0x1360)](_0x210bc4,[_0x2ebe24(0x11b5),_0x403b56['secondLevelDisposition']['id']]);break;case _0x2ebe24(0xb15):_0x403b56[_0x2ebe24(0x85f)]=_0x403b56[_0x2ebe24(0xc58)];break;}}function _0x1b30f9(_0x9017a2){const _0x638e8c=_0x5c7b82;if(_0x9017a2===_0x638e8c(0xfe1))_0x403b56[_0x638e8c(0x187a)]=undefined,_0x403b56[_0x638e8c(0xc58)]=undefined,_0x403b56[_0x638e8c(0x85f)]=_0x403b56[_0x638e8c(0xef2)];else _0x9017a2==='third'&&(_0x403b56[_0x638e8c(0xc58)]=undefined,_0x403b56[_0x638e8c(0x85f)]=_0x403b56[_0x638e8c(0x187a)]);}function _0x150d06(){const _0x5b59a6=_0x5c7b82;_0x403b56[_0x5b59a6(0x133b)][_0x5b59a6(0xd38)]=_0x403b56[_0x5b59a6(0xd38)];const _0x2a6677={'firstLevel':_0x403b56[_0x5b59a6(0xef2)]?_0x403b56['firstLevelDisposition']['name']:undefined,'secondLevel':_0x403b56[_0x5b59a6(0x187a)]?_0x403b56[_0x5b59a6(0x187a)][_0x5b59a6(0x19eb)]:undefined,'thirdLevel':_0x403b56['thirdLevelDisposition']?_0x403b56[_0x5b59a6(0xc58)][_0x5b59a6(0x19eb)]:undefined};_0x57f8a5[_0x5b59a6(0x2458)](_0x2a6677);}function _0x5098ec(){const _0x44bbe3=_0x5c7b82;_0x57f8a5[_0x44bbe3(0x6c3)]();}}const _0x4816bc=_0xa4e204;;_0x35ff99[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),'$timeout',_0x313a4d(0x10e8),_0x313a4d(0x4d8),'$window',_0x313a4d(0x214b),_0x313a4d(0x247f),_0x313a4d(0xa87),'socket'];function _0x35ff99(_0x867c5c,_0x320b1e,_0x1215f2,_0x256cf7,_0x552ec2,_0x3503d4,_0x3376b0,_0x455174,_0x1752f8){const _0x14adee=_0x313a4d,_0x5410d3=this;_0x5410d3[_0x14adee(0x181b)]=![],_0x5410d3[_0x14adee(0x258a)]=!![],_0x5410d3[_0x14adee(0x1cdf)]=[],_0x5410d3[_0x14adee(0x2647)]={'count':0x0,'rows':[]},_0x5410d3[_0x14adee(0x2321)]=_0x455174['getCurrentUser'](),_0x5410d3['queues']={},_0x5410d3[_0x14adee(0x2097)]={'count':0x0,'rows':[]},_0x5410d3[_0x14adee(0x1a56)]={'fields':_0x14adee(0x655),'type':_0x14adee(0x7b0),'queuecallerexitreason':_0x14adee(0x1b0d)+','+'ABANDONED','sort':_0x14adee(0x12f2),'limit':0xa,'page':0x1},_0x5410d3['getAbandonedCalls']=_0x1dc1d0,_0x5410d3[_0x14adee(0x2482)]=_0x142c57,_0x5410d3['onInit']=_0x5c37e7,_0x5410d3['reserved']=_0x3eb15d,_0x5410d3[_0x14adee(0x25ed)]=_0x49e1d2,_0x5410d3[_0x14adee(0x133b)]=_0x867c5c[_0x14adee(0x2870)][_0x14adee(0x2870)]['$parent'][_0x14adee(0x2870)]['vm']['call'],_0x5410d3[_0x14adee(0x15b)]=_0x867c5c['$parent'][_0x14adee(0x2870)]['$parent'][_0x14adee(0x2870)]['vm'][_0x14adee(0x15b)],_0x5410d3[_0x14adee(0x1d38)]=_0x867c5c[_0x14adee(0x2870)]['$parent'][_0x14adee(0x2870)][_0x14adee(0x2870)]['vm'][_0x14adee(0x1d38)],_0x5410d3[_0x14adee(0x1db5)]=_0x867c5c['$parent'][_0x14adee(0x2870)][_0x14adee(0x2870)][_0x14adee(0x2870)]['vm'][_0x14adee(0x1db5)],_0x5410d3[_0x14adee(0x1c4f)]=_0x59e879,_0x5410d3[_0x14adee(0x28b7)]=_0x335dd6,_0x1752f8[_0x14adee(0x13b7)]('voiceQueueReport:save',_0x4394a0),_0x1752f8[_0x14adee(0x13b7)](_0x14adee(0x1d59),_0x503a87),_0x5c37e7();function _0x5c37e7(){const _0x480bd8=_0x14adee;return _0x3376b0[_0x480bd8(0x9e1)][_0x480bd8(0x16b4)]({'MailAccountId':_0x480bd8(0x203c),'FaxAccountId':'null','SmsAccountId':_0x480bd8(0x203c),'WhatsappAccountId':_0x480bd8(0x203c),'OpenchannelAccountId':'null','ChatWebsiteId':_0x480bd8(0x203c)})[_0x480bd8(0x2945)][_0x480bd8(0x146b)](function(_0xe5a10b){const _0x172444=_0x480bd8;return _0x5410d3[_0x172444(0x2647)]=_0xe5a10b?_0xe5a10b[_0x172444(0x19c7)]:[],_0x3376b0[_0x172444(0xe7b)][_0x172444(0xc53)]({'id':_0x455174['getCurrentUser']()['id'],'fields':_0x172444(0x7a7),'channel':_0x172444(0xe6),'type':'inbound','nolimit':!![]})['$promise'];})['then'](function(_0x16326b){const _0x209c65=_0x480bd8;_0x5410d3[_0x209c65(0x1b32)]=_0x16326b||{'count':0x0,'rows':[]},_0x5410d3['queuesMap']=_0x3f65c0()['mapValues'](_0x3f65c0()[_0x209c65(0x194)](_0x5410d3[_0x209c65(0x1b32)][_0x209c65(0x19c7)],_0x209c65(0x19eb)),_0x209c65(0x19eb)),_0x5410d3[_0x209c65(0x1a88)]=_0x5410d3[_0x209c65(0x1b32)][_0x209c65(0x19c7)]?_0x3f65c0()[_0x209c65(0x205)](_0x5410d3['queues'][_0x209c65(0x19c7)],_0x209c65(0x19eb))[_0x209c65(0xb47)](','):undefined;})[_0x480bd8(0x146b)](function(){const _0x4e7d04=_0x480bd8;_0x5410d3[_0x4e7d04(0x28af)]=_0x4e5e9e();})[_0x480bd8(0x129e)](function(_0x5d36d8){const _0x1cf4eb=_0x480bd8;console[_0x1cf4eb(0x1a74)](_0x5d36d8);})[_0x480bd8(0x1ec6)](function(){const _0xbd834c=_0x480bd8;let _0x33ebe6=_0x552ec2[_0xbd834c(0x1c39)][_0xbd834c(0x1519)](_0xbd834c(0x368)+_0x5410d3[_0xbd834c(0x2321)]['id']);if(_0x33ebe6)_0x33ebe6=JSON['parse'](_0x33ebe6),_0x33ebe6['query']&&(_0x5410d3[_0xbd834c(0x1a56)]=_0x3f65c0()[_0xbd834c(0x168d)](_0x33ebe6[_0xbd834c(0x1a56)],_0x3f65c0()[_0xbd834c(0x2432)](_0x5410d3['query'],['sort',_0xbd834c(0x221e),_0xbd834c(0x844)])),_0x5410d3[_0xbd834c(0x1a56)]=_0x3f65c0()['omit'](_0x5410d3[_0xbd834c(0x1a56)],'filter'));else{const _0x9e3caa={'$gte':_0x2deec6()()[_0xbd834c(0x1fcc)](_0xbd834c(0x12b7))[_0xbd834c(0x65f)](0x0,!![])['format'](),'$lte':_0x2deec6()()[_0xbd834c(0x824)](_0xbd834c(0x12b7))[_0xbd834c(0x65f)](0x0,!![])[_0xbd834c(0x22b0)]()};_0x5410d3[_0xbd834c(0x1a56)]['createdAt']=_0x9e3caa;}_0x5410d3[_0xbd834c(0x2516)]=_0x5410d3['query'][_0xbd834c(0x1dd6)]?!![]:![],_0x5410d3['getAbandonedCalls']();});}function _0x4e5e9e(){const _0x99c283=_0x14adee;return[{'name':'Start\x20Date','key':_0x99c283(0xc68),'type':'date','label':_0x99c283(0x2902)},{'name':'Agent','key':_0x99c283(0xea2),'type':_0x99c283(0xa5f),'label':_0x99c283(0x127),'customOptions':[{'value':_0x5410d3['currentUser']['id'],'translate':_0x99c283(0x6d9)},{'value':_0x99c283(0xa03),'translate':'DASHBOARDS.NOT_ASSIGNED'},{'value':undefined,'translate':_0x99c283(0x175e)}]},{'name':_0x99c283(0x1cd3),'key':'queue','type':_0x99c283(0x175c),'label':_0x99c283(0x1f4a),'options':_0x5410d3['queues']['rows'],'ngValue':_0x99c283(0x19eb),'clearAll':![]}];}function _0x1dc1d0(){const _0x2dd80d=_0x14adee;_0x5410d3[_0x2dd80d(0x1a56)]['queue']=_0x5410d3[_0x2dd80d(0x1a56)][_0x2dd80d(0x1c72)]||_0x5410d3[_0x2dd80d(0x1a88)][_0x2dd80d(0x10c8)](','),_0x5410d3[_0x2dd80d(0x1a56)][_0x2dd80d(0x145d)]=(_0x5410d3['query'][_0x2dd80d(0x844)]-0x1)*_0x5410d3[_0x2dd80d(0x1a56)][_0x2dd80d(0x221e)];const _0x4e44a8={'query':_0x5410d3[_0x2dd80d(0x1a56)]};_0x552ec2['localStorage'][_0x2dd80d(0xc32)](_0x2dd80d(0x368)+_0x5410d3[_0x2dd80d(0x2321)]['id'],JSON[_0x2dd80d(0x10bb)](_0x4e44a8)),_0x5410d3[_0x2dd80d(0xb9c)]=_0x3376b0[_0x2dd80d(0x19ef)][_0x2dd80d(0x1456)](_0x5410d3[_0x2dd80d(0x1a56)],_0x32d53c)['$promise'];}function _0x32d53c(_0x341f3a){const _0x3c3a4d=_0x14adee;_0x5410d3['abandonedCalls']=_0x341f3a||{'count':0x0,'rows':[]},_0x5410d3[_0x3c3a4d(0x258a)]=!![];}function _0x49e1d2(_0x1f3dab){const _0xfb81da=_0x14adee;_0x1215f2[_0xfb81da(0x2615)]({'controller':_0xfb81da(0x1dd0),'controllerAs':'vm','templateUrl':_0xfb81da(0x16d6),'parent':angular['element'](_0x256cf7[_0xfb81da(0x2586)]),'targetEvent':_0x1f3dab,'resolve':{'globalDispositions':[_0xfb81da(0x362),function(_0x412c4c){const _0x3b8e67=_0xfb81da;return _0x412c4c[_0x3b8e67(0x2922)](_0x3b8e67(0x1041),{'MailAccountId':_0x3b8e67(0x203c),'FaxAccountId':'null','SmsAccountId':_0x3b8e67(0x203c),'WhatsappAccountId':_0x3b8e67(0x203c),'OpenchannelAccountId':_0x3b8e67(0x203c),'ChatWebsiteId':_0x3b8e67(0x203c),'ListId':_0x3b8e67(0x203c)});}]},'locals':{'dispositions':_0x5410d3[_0xfb81da(0x2647)],'call':_0x1f3dab}})[_0xfb81da(0x146b)](function(_0x209e07){const _0x554da3=_0xfb81da;if(_0x209e07){_0x5410d3[_0x554da3(0x1cdf)][_0x1f3dab['id']]=!![];const _0x4f0d6e={'id':_0x1f3dab['id'],'lastAssignedTo':_0x1f3dab['assigned']?_0x5410d3[_0x554da3(0x2321)][_0x554da3(0x19eb)]:null,'assigned':_0x1f3dab['assigned'],'disposition':_0x209e07[_0x554da3(0x1614)]||null,'secondDisposition':_0x209e07[_0x554da3(0x4af)]||null,'thirdDisposition':_0x209e07[_0x554da3(0x5da)]||null};_0x3376b0[_0x554da3(0x19ef)][_0x554da3(0x18e1)](_0x4f0d6e)[_0x554da3(0x2945)]['catch'](function(_0x1e3860){const _0x5105b7=_0x554da3;console[_0x5105b7(0x1a74)](_0x1e3860);})['finally'](function(){const _0xb2b6d1=_0x554da3;_0x5410d3[_0xb2b6d1(0x1cdf)][_0x1f3dab['id']]=![];});}});}function _0x59e879(){const _0xe421ae=_0x14adee;_0x5410d3[_0xe421ae(0x1a56)][_0xe421ae(0x1dd6)]=undefined,_0x5410d3[_0xe421ae(0x2516)]=![];}function _0x335dd6(){const _0x2c9866=_0x14adee;_0x5410d3[_0x2c9866(0x2516)]=!![];}let _0x3b0641=!![],_0xd011a1=0x1;_0x867c5c[_0x14adee(0x21e8)](_0x14adee(0x1a5d),function(_0x44beae,_0x46bdb1){const _0x1609b2=_0x14adee;_0x3b0641?_0x320b1e(function(){_0x3b0641=![];}):(!_0x46bdb1&&(_0xd011a1=_0x5410d3['query'][_0x1609b2(0x844)]),_0x44beae!==_0x46bdb1&&(_0x5410d3[_0x1609b2(0x1a56)][_0x1609b2(0x844)]=0x1),!_0x44beae&&(_0x5410d3[_0x1609b2(0x1a56)]['page']=_0xd011a1),_0x5410d3[_0x1609b2(0x1d84)]());});function _0x142c57(){const _0xfe368a=_0x14adee;_0x5410d3['showTooltip']=![],_0x5410d3[_0xfe368a(0x1d84)]();}function _0x3eb15d(_0x154c51){const _0xeab9c=_0x14adee;_0x154c51&&(_0x5410d3['disable'][_0x154c51['id']]=!![],_0x3376b0[_0xeab9c(0x19ef)][_0xeab9c(0x18e1)]({'id':_0x154c51['id'],'lastAssignedTo':_0x154c51[_0xeab9c(0x25ff)]?_0x5410d3[_0xeab9c(0x2321)][_0xeab9c(0x19eb)]:null,'assigned':_0x154c51[_0xeab9c(0x25ff)]})['$promise']['catch'](function(_0x35158b){const _0x498b0d=_0xeab9c;console[_0x498b0d(0x1a74)](_0x35158b);})['finally'](function(){const _0x3036b6=_0xeab9c;_0x5410d3[_0x3036b6(0x1cdf)][_0x154c51['id']]=![];}));}function _0x4394a0(_0x168355){const _0x52fa3d=_0x14adee;_0x5410d3['queuesMap']&&_0x168355[_0x52fa3d(0x1142)]==='inbound'&&_0x5410d3[_0x52fa3d(0x212b)][_0x168355[_0x52fa3d(0x1c72)]]&&(_0x5410d3[_0x52fa3d(0x181b)]=!![]);}function _0x503a87(_0x3dc6cb){const _0x4293c9=_0x14adee;if(_0x3dc6cb){const _0x1b5618=_0x3f65c0()[_0x4293c9(0x99c)](_0x5410d3[_0x4293c9(0x2097)][_0x4293c9(0x19c7)],['id',_0x3dc6cb['id']]);_0x1b5618>=0x0&&_0x3f65c0()['merge'](_0x5410d3[_0x4293c9(0x2097)][_0x4293c9(0x19c7)][_0x1b5618],_0x3dc6cb);}}_0x867c5c['$on'](_0x14adee(0x116f),function(){const _0x1e4890=_0x14adee;_0x1752f8[_0x1e4890(0x1c5f)](_0x1e4890(0xfd4)),_0x1752f8[_0x1e4890(0x1c5f)](_0x1e4890(0x1d59));});}const _0x1ef57e=_0x35ff99;;_0x161ac7[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1aa9),_0x313a4d(0xa87),_0x313a4d(0x2161),_0x313a4d(0x1909)];function _0x161ac7(_0xcc25fc,_0x3c1c2e,_0x579364,_0x2e3e7a,_0x103a43){const _0x2b9ec8=_0x313a4d,_0x2992db=this;_0x2992db[_0x2b9ec8(0xe7b)]=_0x579364[_0x2b9ec8(0xb12)](),_0x2992db['license']={},_0x2992db[_0x2b9ec8(0x5f5)]={},_0x2992db[_0x2b9ec8(0x15b9)]={},_0x2992db[_0x2b9ec8(0x25c9)]=_0x2b9ec8(0x130),_0x2992db[_0x2b9ec8(0x1909)]=_0x103a43,_0x2992db['navigation']=_0x2e3e7a[_0x2b9ec8(0x5c4)](),_0x2992db['addContactTab']=_0xcc25fc[_0x2b9ec8(0x2870)]['vm'][_0x2b9ec8(0xd14)],_0x2992db[_0x2b9ec8(0x2614)]=_0xcc25fc[_0x2b9ec8(0x2870)]['vm'][_0x2b9ec8(0x2614)],_0x2992db[_0x2b9ec8(0x5aa)]=_0x41d498,_0x2992db[_0x2b9ec8(0x215e)]=_0x2ae8b0,_0x2992db[_0x2b9ec8(0x2434)]=_0x206e22;function _0x41d498(_0xcef1c4,_0x55142e){const _0x18bfba=_0x2b9ec8;_0x2992db['license']=_0xcef1c4,_0x2992db['setting']=_0x55142e;let _0x35d47d=_0x3c1c2e[_0x18bfba(0x1c39)][_0x18bfba(0x1519)](_0x18bfba(0xc92)+_0x2992db['user']['id']);if(_0x35d47d){try{_0x35d47d=JSON['parse'](_0x35d47d),_0x2992db[_0x18bfba(0x25c9)]=_0x35d47d[_0x18bfba(0xeaf)]?_0x35d47d['currentSidebarTab']:_0x18bfba(0x130);}catch(_0x432092){console[_0x18bfba(0x1980)](_0x432092),_0x2992db[_0x18bfba(0x25c9)]=_0x18bfba(0x130);}_0x2992db[_0x18bfba(0x25c9)]===_0x18bfba(0x56b)&&_0x2992db[_0x18bfba(0x1909)]['init']();}}function _0x206e22(_0x40d63c){return _0x579364['hasPermission'](_0x40d63c);}function _0x2ae8b0(_0x1c11a0){const _0x2221d1=_0x2b9ec8;_0x2992db[_0x2221d1(0x25c9)]=_0x1c11a0[_0x2221d1(0x1bf2)],_0x2992db[_0x2221d1(0x25c9)]==='plugin'&&(_0x2992db['plugin']=_0x1c11a0[_0x2221d1(0x1de9)],_0x2992db[_0x2221d1(0x70f)]=_0x1c11a0['id'],_0xcc25fc['$broadcast'](_0x2221d1(0x1766),{'plugin':_0x2992db[_0x2221d1(0x5f5)]})),_0x3c1c2e[_0x2221d1(0x1c39)][_0x2221d1(0xc32)]('motion2.home:'+_0x2992db[_0x2221d1(0xe7b)]['id'],JSON['stringify']({'currentSidebarTab':_0x1c11a0[_0x2221d1(0x1bf2)]}));}_0xcc25fc[_0x2b9ec8(0x21e8)](_0x2b9ec8(0xf29),function(_0x4b1e4c){const _0x36609d=_0x2b9ec8;_0x4b1e4c===_0x36609d(0x56b)?_0x2992db[_0x36609d(0x1909)][_0x36609d(0x5aa)]():_0x2992db[_0x36609d(0x1909)][_0x36609d(0x1689)]={};});}const _0x1a77a6=_0x161ac7;;const _0x3fb128=_0x4acfac['p']+_0x313a4d(0x2309);;_0x3433a8[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),'$timeout',_0x313a4d(0x10e8),_0x313a4d(0x4d8),_0x313a4d(0x1aa9),'$translate',_0x313a4d(0x247f),_0x313a4d(0xa87),_0x313a4d(0x279d),'toasty'];function _0x3433a8(_0x44e7ce,_0x1da527,_0x5c4c3b,_0x568693,_0x5f1560,_0x4a36d1,_0x530e90,_0x9ffd67,_0x2c0e61,_0x17cb94){const _0x381bc1=_0x313a4d,_0x20a965=this;_0x20a965[_0x381bc1(0xe7b)]=_0x9ffd67[_0x381bc1(0xb12)](),_0x20a965['license']={},_0x20a965['setting']={},_0x20a965['tags']={'count':0x0,'rows':[]},_0x20a965[_0x381bc1(0x1f62)]={'count':0x0,'rows':[]},_0x20a965['query']={'includeAll':!![],'sort':'-updatedAt','limit':0xa,'page':0x1,'read':null,'closed':null},_0x20a965[_0x381bc1(0xe93)]={'fields':[{'name':'Id','column':'id','type':'number'},{'name':_0x381bc1(0x364),'column':_0x381bc1(0x364),'type':_0x381bc1(0x14ee),'options':{'searchFields':[_0x381bc1(0x1ed4),'lastName',_0x381bc1(0x1a2b)],'route':{'model':_0x381bc1(0x18c3),'action':_0x381bc1(0x16b4),'params':{'fields':_0x381bc1(0x992),'Contact':_0x381bc1(0x3fb),'nolimit':!![]}},'extraOperators':[_0x381bc1(0xacb)],'excludedOperators':[_0x381bc1(0x1671)]}},{'name':_0x381bc1(0x710),'column':_0x381bc1(0x2586),'type':_0x381bc1(0xa8d),'options':{'excludedOperators':[_0x381bc1(0x6be),_0x381bc1(0x1671)]}},{'name':_0x381bc1(0x74e),'column':'closed','type':'select','values':[{'id':0x0,'translate':_0x381bc1(0x143b)},{'id':0x1,'translate':_0x381bc1(0x1805)}],'options':{'excludedOperators':[_0x381bc1(0x1671)]}},{'name':_0x381bc1(0x668),'column':_0x381bc1(0x77f),'type':_0x381bc1(0xa8d),'options':{'excludedOperators':[_0x381bc1(0x6be),_0x381bc1(0x1671),_0x381bc1(0x53d),_0x381bc1(0xe38)]}},{'name':'Agent','column':_0x381bc1(0x2393),'type':_0x381bc1(0x14ee),'options':{'table':'i','route':{'model':_0x381bc1(0xe7b),'action':_0x381bc1(0x16b4),'params':{'role':_0x381bc1(0x1755),'fields':_0x381bc1(0x12bf),'nolimit':!![]}},'searchFields':[_0x381bc1(0x286a),_0x381bc1(0x19eb)],'extraOperators':['$substring'],'excludedOperators':[_0x381bc1(0x1671)]}},{'name':_0x381bc1(0x27f4),'column':_0x381bc1(0x1d92),'type':_0x381bc1(0x175c),'options':{'route':{'model':_0x381bc1(0xe7b),'action':'getChatWebsites','params':{'id':_0x20a965[_0x381bc1(0xe7b)]['id'],'nolimit':!![]}}}},{'name':_0x381bc1(0x2331),'column':'Tag','type':'multiselect','options':{'route':{'model':_0x381bc1(0xa80),'action':_0x381bc1(0x16b4),'params':{'nolimit':!![]}},'excludedOperators':[_0x381bc1(0xbe5)]}},{'name':_0x381bc1(0x294),'column':_0x381bc1(0xc68),'type':_0x381bc1(0x1a10),'options':{'excludedOperators':[_0x381bc1(0x1671)]}},{'name':_0x381bc1(0x270b),'column':'unreadMessages','type':_0x381bc1(0xa5f),'values':[{'id':0x1,'translate':'DASHBOARDS.READ'},{'id':0x0,'translate':_0x381bc1(0x33f)}],'options':{'excludedOperators':[_0x381bc1(0x1671)]}}]},_0x20a965['sectionColor']='green-A700',_0x20a965['onInit']=_0x59a55f,_0x20a965[_0x381bc1(0x1c75)]=_0x4b83c0,_0x20a965[_0x381bc1(0x1060)]=_0x32a83e,_0x20a965['showChatInteraction']=_0x35e007,_0x20a965[_0x381bc1(0x1541)]=_0x2ed9ae,_0x20a965[_0x381bc1(0x10ef)]=_0x3661c5,_0x20a965[_0x381bc1(0x4b5)]=_0x47fc68,_0x20a965['getAgentLabel']=_0xc7c2ce,_0x20a965[_0x381bc1(0x1d2b)]=_0x48317f,_0x20a965[_0x381bc1(0x1c4f)]=_0x5a12cd,_0x20a965['onSearchBarExpand']=_0x337861,_0x20a965['openAdvancedSearch']=_0x1840a7;function _0x59a55f(_0x535d94,_0x1172a0){const _0x4c9665=_0x381bc1;return _0x20a965['license']=_0x535d94,_0x20a965[_0x4c9665(0x15b9)]=_0x1172a0,_0x530e90[_0x4c9665(0xe7b)]['get'+_0x3f65c0()['upperFirst']('ChatWebsites')]({'id':_0x20a965[_0x4c9665(0xe7b)]['id'],'nolimit':!![]})[_0x4c9665(0x2945)]['then'](function(_0x362150){const _0x35b9db=_0x4c9665;return _0x20a965[_0x35b9db(0x282c)]=_0x362150||{'count':0x0,'rows':[]},_0x530e90[_0x35b9db(0xa80)][_0x35b9db(0x16b4)]()[_0x35b9db(0x2945)];})[_0x4c9665(0x146b)](function(_0x27cd82){_0x20a965['tags']=_0x27cd82||{'count':0x0,'rows':[]};})[_0x4c9665(0x146b)](function(){_0x20a965['quickFilters']=_0x37fdac();})[_0x4c9665(0x129e)](function(_0x2fad9a){const _0xcdf03b=_0x4c9665;console[_0xcdf03b(0x1980)](_0x2fad9a);})[_0x4c9665(0x1ec6)](function(){const _0x224311=_0x4c9665;let _0x3a5e46=_0x5f1560[_0x224311(0x1c39)]['getItem'](_0x224311(0x1036)+_0x20a965[_0x224311(0xe7b)]['id']);if(_0x3a5e46)try{_0x3a5e46=JSON[_0x224311(0x975)](_0x3a5e46);if(_0x3a5e46[_0x224311(0x1a56)]){_0x20a965[_0x224311(0x1a56)]=_0x3f65c0()[_0x224311(0x168d)](_0x20a965[_0x224311(0x1a56)],_0x3a5e46[_0x224311(0x1a56)]);if(_0x3f65c0()[_0x224311(0x2635)](_0x20a965[_0x224311(0x282c)]['rows']))_0x20a965['query'][_0x224311(0x1d92)]=[];else _0x3f65c0()[_0x224311(0x2635)](_0x20a965[_0x224311(0x1a56)][_0x224311(0x1d92)])&&(_0x20a965['query'][_0x224311(0x1d92)]=_0x3f65c0()(_0x20a965[_0x224311(0x282c)][_0x224311(0x19c7)])[_0x224311(0x205)]('id')[_0x224311(0x2421)]()[_0x224311(0x175d)]());_0x20a965[_0x224311(0x1a56)][_0x224311(0x28fa)]&&_0x20a965[_0x224311(0x1a56)]['sort'][_0x224311(0x172b)](_0x224311(0x186))>=0x0&&(_0x20a965['query']=_0x3f65c0()[_0x224311(0x2432)](_0x20a965[_0x224311(0x1a56)],'sort')),_0x20a965['query'][_0x224311(0x287)]=!![],_0x20a965[_0x224311(0x2516)]=_0x20a965[_0x224311(0x1a56)][_0x224311(0x1dd6)]?!![]:![];}}catch(_0x1d96ab){console[_0x224311(0x1980)](_0x1d96ab);}else{const _0x1bde65={'$gte':_0x2deec6()()['startOf'](_0x224311(0x12b7))[_0x224311(0x65f)](0x0,!![])[_0x224311(0x22b0)](),'$lte':_0x2deec6()()['endOf'](_0x224311(0x12b7))[_0x224311(0x65f)](0x0,!![])[_0x224311(0x22b0)]()},_0x440183={'ChatWebsiteId':_0x3f65c0()[_0x224311(0x205)](_0x20a965[_0x224311(0x282c)][_0x224311(0x19c7)],'id'),'createdAt':_0x1bde65};_0x20a965[_0x224311(0x1a56)]=_0x3f65c0()[_0x224311(0x168d)](_0x20a965['query'],_0x440183);}_0x2c0e61['on'](_0x224311(0x1284),_0x38cee9),_0x2c0e61['on']('chatInteraction:update',_0x38cee9),_0x2c0e61['on']('chatInteractionTags:save',_0x5b04ee),_0x2c0e61['on'](_0x224311(0x1c2f),_0x5a9b87),_0x2c0e61['on'](_0x224311(0x2868),_0x5a9b87),_0x2c0e61['on'](_0x224311(0x15ec),_0x5e072d),_0x2c0e61['on'](_0x224311(0xec8),_0xcf24cb),_0x32a83e(_0x20a965[_0x224311(0x1a56)][_0x224311(0x844)]);});}function _0x37fdac(){const _0x2f79f2=_0x381bc1;return[{'name':'Start\x20Date','key':_0x2f79f2(0xc68),'type':_0x2f79f2(0x1a10),'label':'DASHBOARDS.SELECT_DATE'},{'name':_0x2f79f2(0x1c7c),'key':'read','type':_0x2f79f2(0xa5f),'label':'DASHBOARDS.SELECT_READ_UNREAD','customOptions':[{'value':0x0,'translate':_0x2f79f2(0x33f)},{'value':0x1,'translate':_0x2f79f2(0x1ce6)},{'value':null,'translate':'DASHBOARDS.ALL'}]},{'name':_0x2f79f2(0x74e),'key':_0x2f79f2(0x1943),'type':_0x2f79f2(0xa5f),'label':_0x2f79f2(0x1682),'customOptions':[{'value':0x0,'translate':_0x2f79f2(0x143b)},{'value':0x1,'translate':_0x2f79f2(0x1805)},{'value':null,'translate':_0x2f79f2(0x175e)}]},{'name':'Website','key':'ChatWebsiteId','type':_0x2f79f2(0x175c),'label':_0x2f79f2(0x1b49),'options':_0x20a965[_0x2f79f2(0x282c)][_0x2f79f2(0x19c7)],'clearAll':![]},{'name':_0x2f79f2(0x294a),'key':'UserId','type':'select','label':_0x2f79f2(0x127),'customOptions':[{'value':_0x20a965[_0x2f79f2(0xe7b)]['id'],'translate':_0x2f79f2(0x6d9)},{'value':_0x2f79f2(0x203c),'translate':_0x2f79f2(0x38d)},{'value':undefined,'translate':'DASHBOARDS.ALL'}]},{'name':'Tag','key':_0x2f79f2(0xa80),'type':_0x2f79f2(0x175c),'label':_0x2f79f2(0x1c0e),'options':_0x20a965[_0x2f79f2(0x1b86)][_0x2f79f2(0x19c7)],'placeholder':_0x2f79f2(0x66f)}];}function _0x4b83c0(_0x52cbd9){const _0x52fce9=_0x381bc1;_0x20a965['searchInProgress']=![],_0x20a965[_0x52fce9(0x1f62)]=_0x52cbd9||{'count':0x0,'rows':[]};for(let _0x9e3598=0x0;_0x9e3598<_0x20a965[_0x52fce9(0x1f62)][_0x52fce9(0x19c7)]['length'];_0x9e3598+=0x1){_0x47fc68(_0x20a965[_0x52fce9(0x1f62)][_0x52fce9(0x19c7)][_0x9e3598]);}}function _0x32a83e(_0x4a94fe){const _0x2fbb95=_0x381bc1;_0x20a965[_0x2fbb95(0x14eb)]=!![];!_0x4a94fe&&(_0x20a965[_0x2fbb95(0x1a56)][_0x2fbb95(0x844)]=0x1);_0x20a965[_0x2fbb95(0x1a56)][_0x2fbb95(0x145d)]=(_0x20a965[_0x2fbb95(0x1a56)][_0x2fbb95(0x844)]-0x1)*_0x20a965[_0x2fbb95(0x1a56)][_0x2fbb95(0x221e)];let _0x491884=_0x5f1560['localStorage']['getItem'](_0x2fbb95(0x1036)+_0x20a965[_0x2fbb95(0xe7b)]['id']);_0x491884=_0x491884?JSON['parse'](_0x491884):{},_0x491884[_0x2fbb95(0x1a56)]=_0x20a965[_0x2fbb95(0x1a56)],_0x5f1560['localStorage'][_0x2fbb95(0xc32)](_0x2fbb95(0x1036)+_0x20a965['user']['id'],JSON[_0x2fbb95(0x10bb)](_0x491884)),_0x20a965[_0x2fbb95(0xb9c)]=_0x530e90['chatInteraction'][_0x2fbb95(0x16b4)](_0x20a965['query'],_0x4b83c0)[_0x2fbb95(0x2945)];}function _0x35e007(_0x89f993,_0x1d700c){const _0x40e59f=_0x381bc1;_0x44e7ce[_0x40e59f(0x2870)]['vm'][_0x40e59f(0x2614)]('chat',_0x1d700c);}function _0x2ed9ae(_0x1ecde4,_0x1e693a,_0x15540e){const _0x165825=_0x381bc1;_0x530e90[_0x165825(0xc9f)][_0x165825(0x15b1)]({'id':_0x1e693a['id'],'attachments':_0x15540e})['$promise']['then'](function(_0x4b0b67){const _0x755785=_0x165825,_0x486056=[_0x4b0b67['buffer']],_0x1921a7='chat-interaction'+_0x1e693a['id']+_0x755785(0xf04),_0x50a8dc=new Blob(_0x486056,{'type':_0x4b0b67[_0x755785(0x1142)]}),_0x5ba86f=window[_0x755785(0xef3)][_0x755785(0x24ec)]('a');_0x5ba86f[_0x755785(0x1652)](_0x755785(0x1b3c),URL[_0x755785(0x1c58)](_0x50a8dc)),_0x5ba86f[_0x755785(0x1652)](_0x755785(0x15b1),_0x1921a7),document[_0x755785(0x2586)][_0x755785(0x23e)](_0x5ba86f),_0x5ba86f['click']();})[_0x165825(0x129e)](function(_0x16fe16){const _0x3749e6=_0x165825;if(_0x16fe16[_0x3749e6(0x524)]&&_0x16fe16['data'][_0x3749e6(0xcef)]&&_0x16fe16[_0x3749e6(0x524)][_0x3749e6(0xcef)]['length'])for(let _0x111e03=0x0;_0x111e03<_0x16fe16[_0x3749e6(0x524)]['errors'][_0x3749e6(0x402)];_0x111e03+=0x1){_0x17cb94[_0x3749e6(0x1980)]({'title':_0x16fe16[_0x3749e6(0x524)]['errors'][_0x111e03][_0x3749e6(0x1142)],'msg':_0x16fe16[_0x3749e6(0x524)][_0x3749e6(0xcef)][_0x111e03][_0x3749e6(0x7fd)]});}else _0x17cb94[_0x3749e6(0x1980)]({'title':_0x16fe16[_0x3749e6(0x107b)]?_0x3749e6(0x262a)+_0x16fe16[_0x3749e6(0x107b)]+_0x3749e6(0x1315)+_0x16fe16[_0x3749e6(0x167f)]:_0x3749e6(0x1541),'msg':_0x16fe16[_0x3749e6(0x524)]?JSON[_0x3749e6(0x10bb)](_0x16fe16['data'][_0x3749e6(0x7fd)]):_0x16fe16['toString']()});});}function _0x3661c5(_0x4cf3,_0x50750d){const _0x54a25a=_0x381bc1,_0x5a37cb=_0x20a965[_0x54a25a(0xe7b)]['voicePause']||_0x20a965[_0x54a25a(0xe7b)]['chatPause']||_0x20a965[_0x54a25a(0xe7b)][_0x54a25a(0x1e9e)]||_0x20a965[_0x54a25a(0xe7b)]['openchannelPause']||_0x20a965[_0x54a25a(0xe7b)][_0x54a25a(0x25c4)],_0x332c1f=!_0x50750d[_0x54a25a(0xb48)][_0x54a25a(0xc9e)];_0x5c4c3b[_0x54a25a(0x2615)]({'controller':_0x54a25a(0xe23),'controllerAs':'vm','templateUrl':_0x56fd44,'parent':angular[_0x54a25a(0x1853)](_0x568693[_0x54a25a(0x2586)]),'clickOutsideToClose':_0x332c1f,'escapeToClose':_0x332c1f,'onRemoving':function(){const _0x395293=_0x54a25a;_0x20a965['user']&&_0x50750d[_0x395293(0xb48)][_0x395293(0xc9e)]&&!_0x5a37cb&&_0x530e90[_0x395293(0xe7b)][_0x395293(0x974)]({'id':_0x20a965[_0x395293(0xe7b)]['id']})[_0x395293(0x2945)]['catch'](function(_0x5b3868){console['error'](_0x5b3868);});},'locals':{'user':_0x20a965['user'],'channel':_0x54a25a(0xa7f),'interaction':_0x50750d}});}function _0x47fc68(_0x27ae6c){const _0x49caf7=_0x381bc1;_0x27ae6c[_0x49caf7(0x364)]?_0x27ae6c['contactName']=(_0x27ae6c[_0x49caf7(0x364)][_0x49caf7(0x1ed4)]||'')+'\x20'+(_0x27ae6c[_0x49caf7(0x364)][_0x49caf7(0xee4)]||''):_0x27ae6c[_0x49caf7(0x792)]=_0x4a36d1[_0x49caf7(0xde)]('APP.UNKNOWN');}function _0xc7c2ce(_0x32955e){const _0x5b4c42=_0x381bc1;if(_0x32955e[_0x5b4c42(0xea2)])return _0x32955e[_0x5b4c42(0xea2)]===_0x20a965[_0x5b4c42(0xe7b)]['id']?_0x4a36d1['instant'](_0x5b4c42(0x6d9)):_0x32955e['Owner'][_0x5b4c42(0x286a)]+'\x20<'+_0x32955e[_0x5b4c42(0xac5)][_0x5b4c42(0x113f)]+'>';return _0x4a36d1['instant']('DASHBOARDS.NOT_ASSIGNED');}function _0x48317f(_0x4c716e){const _0x549112=_0x381bc1;if(_0x4c716e['Account'])return _0x4c716e['Account'][_0x549112(0x2293)];return _0x4a36d1[_0x549112(0xde)](_0x549112(0xe0b));}function _0x5e072d(_0x2e50f5){const _0x1e0dc9=_0x381bc1;let _0x4b8171;const _0x2e98ca=_0x3f65c0()['find'](_0x20a965[_0x1e0dc9(0x1f62)][_0x1e0dc9(0x19c7)],{'id':_0x2e50f5['ChatInteractionId']});_0x2e98ca&&_0x2e98ca[_0x1e0dc9(0x3c4)]&&(_0x4b8171=_0x3f65c0()['find'](_0x2e98ca[_0x1e0dc9(0x3c4)],{'id':_0x2e50f5[_0x1e0dc9(0xea2)]}),!_0x4b8171&&_0x2e98ca[_0x1e0dc9(0x3c4)]['push']({'id':_0x2e50f5[_0x1e0dc9(0xea2)]}));}function _0xcf24cb(_0x256c38){const _0x17fdc3=_0x381bc1,_0x58f205=_0x3f65c0()[_0x17fdc3(0xc84)](_0x20a965[_0x17fdc3(0x1f62)][_0x17fdc3(0x19c7)],{'id':_0x256c38['ChatInteractionId']});_0x58f205&&_0x58f205['Users']&&_0x3f65c0()['remove'](_0x58f205[_0x17fdc3(0x3c4)],{'id':_0x256c38[_0x17fdc3(0xea2)]});}function _0x38cee9(_0x3497e5){const _0x56758a=_0x381bc1;if(_0x3497e5){const _0x20665d=_0x3f65c0()[_0x56758a(0xc84)](_0x20a965['chatInteractions'][_0x56758a(0x19c7)],{'id':_0x3497e5['id']});if(_0x20665d){_0x20665d['Users']=[];_0x3497e5['closed']&&(_0x20665d[_0x56758a(0x26a6)]=0x0);if(_0x20a965[_0x56758a(0x1a56)]['sort']){const _0x410acf=_0x3f65c0()[_0x56758a(0xd4d)](_0x20a965[_0x56758a(0x1a56)][_0x56758a(0x28fa)],'-')?_0x56758a(0x2517):_0x56758a(0x195);_0x20a965[_0x56758a(0x1f62)][_0x56758a(0x19c7)]=_0x3f65c0()['orderBy'](_0x20a965[_0x56758a(0x1f62)]['rows'],_0x3f65c0()['trimStart'](_0x20a965[_0x56758a(0x1a56)][_0x56758a(0x28fa)],'-'),_0x410acf);}_0x3f65c0()['merge'](_0x20665d,_0x3f65c0()[_0x56758a(0x40e)](_0x3497e5,_0x3f65c0()[_0x56758a(0x627)](_0x20665d)));}else _0x32a83e(_0x20a965[_0x56758a(0x1a56)][_0x56758a(0x844)]);}}function _0x5b04ee(_0x433cd8){const _0x47ce22=_0x381bc1;if(_0x433cd8){const _0x1ae47a=_0x3f65c0()[_0x47ce22(0xc84)](_0x20a965[_0x47ce22(0x1f62)][_0x47ce22(0x19c7)],{'id':_0x433cd8['id']});_0x1ae47a&&(_0x1ae47a[_0x47ce22(0x2331)]=_0x433cd8['tags']||[],_0x3f65c0()[_0x47ce22(0x168d)](_0x1ae47a,_0x3f65c0()[_0x47ce22(0x40e)](_0x433cd8,_0x3f65c0()[_0x47ce22(0x627)](_0x1ae47a))));}}function _0x5a9b87(_0x193be3){const _0x540bc4=_0x381bc1;if(_0x193be3&&!_0x193be3['secret']){const _0x4c6448=_0x3f65c0()['find'](_0x20a965['chatInteractions'][_0x540bc4(0x19c7)],{'id':_0x193be3['ChatInteractionId']});if(_0x4c6448){const _0x2d6f09=_0x3f65c0()[_0x540bc4(0xc84)](_0x4c6448[_0x540bc4(0x1c7c)],{'id':_0x193be3['id']});_0x2d6f09?_0x3f65c0()[_0x540bc4(0x168d)](_0x2d6f09,_0x3f65c0()['pick'](_0x193be3,_0x3f65c0()[_0x540bc4(0x627)](_0x2d6f09))):(_0x3f65c0()[_0x540bc4(0x1b36)](_0x4c6448[_0x540bc4(0x1c7c)])&&(_0x4c6448['Messages']={'count':0x0}),!_0x193be3[_0x540bc4(0x229e)]&&(_0x4c6448['Messages'][_0x540bc4(0x51c)]+=0x1));}}}function _0x5a12cd(){const _0x30e587=_0x381bc1;_0x20a965[_0x30e587(0x2516)]=![];}function _0x337861(){const _0x1a320f=_0x381bc1;_0x20a965[_0x1a320f(0x2516)]=!![];}function _0x1840a7(){const _0x32bd67=_0x381bc1;_0x20a965[_0x32bd67(0x2516)]=![],_0x5c4c3b[_0x32bd67(0x2615)]({'controller':'AdvancedSearchController','controllerAs':'vm','templateUrl':_0x3fb128,'parent':angular[_0x32bd67(0x1853)](_0x568693['body']),'clickOutsideToClose':![],'locals':{'color':_0x20a965[_0x32bd67(0x1527)],'fields':_0x20a965['advancedSearch'][_0x32bd67(0x2867)],'storagePath':'home.chat'},'fullscreen':!![]})[_0x32bd67(0x146b)](function(_0x1fd212){const _0x45e26b=_0x32bd67;_0x20a965[_0x45e26b(0x1a56)][_0x45e26b(0x21da)]=_0x1fd212===![]?undefined:_0x1fd212;if(_0x20a965[_0x45e26b(0x1a56)][_0x45e26b(0x21da)]||_0x1fd212===![])_0x32a83e();})[_0x32bd67(0x129e)](function(_0x11fe38){const _0x2280a7=_0x32bd67;_0x17cb94['error']({'title':_0x2280a7(0x10f5),'msg':_0x11fe38['data']?JSON[_0x2280a7(0x10bb)](_0x11fe38['data']['message']):_0x11fe38[_0x2280a7(0xd5f)]()});});}let _0x8dd3f=!![],_0x2e9a87=0x1;_0x44e7ce['$watch'](_0x381bc1(0x2669),function(_0x25f53a,_0x457482){const _0x4db8ae=_0x381bc1;_0x8dd3f?_0x1da527(function(){_0x8dd3f=![];}):(!_0x457482&&(_0x2e9a87=_0x20a965[_0x4db8ae(0x1a56)][_0x4db8ae(0x844)]),_0x25f53a!==_0x457482&&(_0x20a965[_0x4db8ae(0x1a56)]['page']=0x1),!_0x25f53a&&(_0x20a965[_0x4db8ae(0x1a56)]['page']=_0x2e9a87),_0x32a83e(_0x20a965[_0x4db8ae(0x1a56)]['page']));}),_0x44e7ce[_0x381bc1(0x16ad)](_0x381bc1(0x116f),function(){const _0x65f295=_0x381bc1;_0x2c0e61[_0x65f295(0x1c5f)](_0x65f295(0x1c2f)),_0x2c0e61[_0x65f295(0x1c5f)](_0x65f295(0x2868)),_0x2c0e61[_0x65f295(0x1c5f)](_0x65f295(0x1284)),_0x2c0e61[_0x65f295(0x1c5f)](_0x65f295(0x4a1)),_0x2c0e61[_0x65f295(0x1c5f)](_0x65f295(0xcd1)),_0x2c0e61[_0x65f295(0x1c5f)](_0x65f295(0x15ec)),_0x2c0e61[_0x65f295(0x1c5f)]('user_has_chat_interactions:remove');});}const _0x3e5a40=_0x3433a8;;_0x25da9a[_0x313a4d(0x11c2)]=['$document','$scope',_0x313a4d(0x1abe),_0x313a4d(0x10e8),_0x313a4d(0x1aa9),_0x313a4d(0xa87),_0x313a4d(0x247f),_0x313a4d(0x1fe4)];function _0x25da9a(_0x403cbd,_0x852778,_0x2a4968,_0x13dce1,_0x39e573,_0x53e54e,_0x4a0a7a,_0x14623f){const _0x399db9=_0x313a4d,_0x323c2c=this;_0x323c2c['currentUser']=_0x53e54e[_0x399db9(0xb12)](),_0x323c2c['lists']={},_0x323c2c['contacts']={'count':0x0,'rows':[]},_0x323c2c[_0x399db9(0x1b86)]={'count':0x0,'rows':[]},_0x323c2c['query']={'includeAll':!![],'sort':'-updatedAt','limit':0xa,'page':0x1},_0x323c2c['advancedSearch']={'fields':[]},_0x323c2c[_0x399db9(0x1527)]='red',_0x323c2c[_0x399db9(0x871)]=_0x560f4f,_0x323c2c[_0x399db9(0x41d)]=_0x21f205,_0x323c2c[_0x399db9(0x1325)]=_0x554754,_0x323c2c[_0x399db9(0x3d1)]=_0x5c3e5b,_0x323c2c['openContact']=_0x11677c,_0x323c2c[_0x399db9(0x133b)]=_0x852778[_0x399db9(0x2870)]['vm']['call'],_0x323c2c[_0x399db9(0x3d4)]=_0xf599ca,_0x323c2c[_0x399db9(0x1c4f)]=_0x281fb0,_0x323c2c[_0x399db9(0x28b7)]=_0x14c92,_0x323c2c[_0x399db9(0x21a6)]=_0x54ed8f;function _0xf599ca(){const _0x3a9aa8=_0x399db9;_0x4a0a7a[_0x3a9aa8(0xe7b)][_0x3a9aa8(0x233d)]({'id':_0x323c2c[_0x3a9aa8(0x2321)]['id'],'fields':_0x3a9aa8(0x3cd),'sort':_0x3a9aa8(0x19eb),'nolimit':!![]})['$promise'][_0x3a9aa8(0x146b)](function(_0x650c6){const _0x17d46a=_0x3a9aa8;return _0x323c2c[_0x17d46a(0x1324)]=_0x650c6||{'count':0x0,'rows':[]},_0x323c2c['listsMap']=_0x3f65c0()[_0x17d46a(0x194)](_0x323c2c[_0x17d46a(0x1324)][_0x17d46a(0x19c7)],'id'),_0x4a0a7a[_0x17d46a(0xa80)][_0x17d46a(0x16b4)]()[_0x17d46a(0x2945)];})[_0x3a9aa8(0x146b)](function(_0x4ea2a4){const _0x29fddb=_0x3a9aa8;_0x323c2c[_0x29fddb(0x1b86)]=_0x4ea2a4||{'count':0x0,'rows':[]};})[_0x3a9aa8(0x146b)](function(){const _0xc5eb2a=_0x3a9aa8;_0x323c2c[_0xc5eb2a(0x28af)]=_0x4d76ef();})[_0x3a9aa8(0x129e)](function(_0x54840e){const _0x427380=_0x3a9aa8;console[_0x427380(0x1980)](_0x54840e);})[_0x3a9aa8(0x1ec6)](function(){const _0x4f8117=_0x3a9aa8;let _0x595d0c=_0x39e573[_0x4f8117(0x1c39)][_0x4f8117(0x1519)](_0x4f8117(0x1f24)+_0x323c2c[_0x4f8117(0x2321)]['id']);if(_0x595d0c)try{_0x595d0c=JSON[_0x4f8117(0x975)](_0x595d0c);if(_0x595d0c[_0x4f8117(0x1a56)]){_0x323c2c[_0x4f8117(0x1a56)]=_0x3f65c0()[_0x4f8117(0x168d)](_0x323c2c[_0x4f8117(0x1a56)],_0x595d0c[_0x4f8117(0x1a56)]);if(_0x3f65c0()[_0x4f8117(0x2635)](_0x323c2c[_0x4f8117(0x1324)]['rows']))_0x323c2c[_0x4f8117(0x1a56)][_0x4f8117(0xb7c)]=[];else _0x3f65c0()[_0x4f8117(0x2635)](_0x323c2c[_0x4f8117(0x1a56)][_0x4f8117(0xb7c)])&&(_0x323c2c['query'][_0x4f8117(0xb7c)]=_0x3f65c0()(_0x323c2c['lists'][_0x4f8117(0x19c7)])[_0x4f8117(0x205)]('id')['take']()['value']());}}catch(_0x55ce15){console['log'](_0x55ce15);}else _0x323c2c[_0x4f8117(0x1a56)][_0x4f8117(0xb7c)]=_0x3f65c0()['map'](_0x323c2c[_0x4f8117(0x1324)][_0x4f8117(0x19c7)],'id');_0x323c2c[_0x4f8117(0x2516)]=_0x323c2c[_0x4f8117(0x1a56)][_0x4f8117(0x1dd6)]?!![]:![],_0x560f4f();});}function _0x4d76ef(){const _0x3a3f64=_0x399db9;return[{'name':_0x3a3f64(0x1940),'key':_0x3a3f64(0xb7c),'type':_0x3a3f64(0x175c),'label':'CONTACTMANAGER.SELECT_LIST','options':_0x323c2c['lists'][_0x3a3f64(0x19c7)],'clearAll':![]},{'name':_0x3a3f64(0x23a8),'key':_0x3a3f64(0xa80),'type':'multiselect','label':_0x3a3f64(0x1c0e),'options':_0x323c2c[_0x3a3f64(0x1b86)][_0x3a3f64(0x19c7)],'placeholder':_0x3a3f64(0x66f)}];}function _0x112431(_0x16938b){const _0x449b8=_0x399db9;_0x323c2c[_0x449b8(0x14eb)]=![],_0x323c2c[_0x449b8(0x1471)]=_0x16938b||{'count':0x0,'rows':[]};}function _0x560f4f(_0x417fe0){const _0x2e64d2=_0x399db9;_0x323c2c[_0x2e64d2(0x14eb)]=!![],_0x3aafe4();!_0x417fe0&&(_0x323c2c['query'][_0x2e64d2(0x844)]=0x1);_0x323c2c[_0x2e64d2(0x1a56)]['offset']=(_0x323c2c[_0x2e64d2(0x1a56)]['page']-0x1)*_0x323c2c[_0x2e64d2(0x1a56)][_0x2e64d2(0x221e)];let _0x5de0fd=_0x39e573[_0x2e64d2(0x1c39)][_0x2e64d2(0x1519)](_0x2e64d2(0x1f24)+_0x323c2c['currentUser']['id']);_0x5de0fd=_0x5de0fd?JSON[_0x2e64d2(0x975)](_0x5de0fd):{},_0x5de0fd['query']=_0x323c2c[_0x2e64d2(0x1a56)],_0x39e573[_0x2e64d2(0x1c39)]['setItem'](_0x2e64d2(0x1f24)+_0x323c2c['currentUser']['id'],JSON[_0x2e64d2(0x10bb)](_0x5de0fd)),_0x323c2c[_0x2e64d2(0xb9c)]=_0x4a0a7a[_0x2e64d2(0x18c3)]['get'](_0x323c2c[_0x2e64d2(0x1a56)],_0x112431)[_0x2e64d2(0x2945)];}function _0x11677c(_0x42fcfb){const _0x1d2237=_0x399db9;return _0x4a0a7a[_0x1d2237(0x18c3)][_0x1d2237(0x16b4)]({'id':_0x42fcfb})[_0x1d2237(0x2945)][_0x1d2237(0x146b)](function(_0x536280){_0x852778['$parent']['vm']['addContactTab'](_0x536280);});}function _0x21f205(){_0x560f4f();}function _0x5c3e5b(_0x935ad2,_0x4361c8){const _0x524cb3=_0x399db9;_0x13dce1['show']({'controller':_0x524cb3(0x11f3),'controllerAs':'vm','templateUrl':_0x3f981f,'parent':angular[_0x524cb3(0x1853)](_0x403cbd[_0x524cb3(0x2586)]),'targetEvent':_0x935ad2,'clickOutsideToClose':!![],'resolve':{'contact':[_0x524cb3(0x362),function(_0x2c3731){const _0x36e1df=_0x524cb3;return _0x2c3731['resolve'](_0x36e1df(0x17d4),{'id':_0x4361c8['id']});}],'lists':['apiResolver',function(_0x52ac72){const _0x5c459f=_0x524cb3;return _0x52ac72[_0x5c459f(0x2922)](_0x5c459f(0x22b6),{'id':_0x323c2c[_0x5c459f(0x2321)]['id'],'fields':_0x5c459f(0x7a7)});}]},'locals':{'contacts':_0x323c2c[_0x524cb3(0x1471)][_0x524cb3(0x19c7)]}});}function _0x554754(_0xbce99f,_0x1ae64d){const _0x3b93ed=_0x399db9;_0x13dce1['show']({'controller':'MergeContactDialogController','controllerAs':'vm','templateUrl':_0x1cccb8,'parent':angular[_0x3b93ed(0x1853)](_0x403cbd[_0x3b93ed(0x2586)]),'targetEvent':_0xbce99f,'clickOutsideToClose':!![],'resolve':{'contact':[_0x3b93ed(0x362),function(_0x56b036){const _0x2085f3=_0x3b93ed;return _0x56b036['resolve'](_0x2085f3(0x17d4),{'id':_0x1ae64d['id']});}],'lists':[_0x3b93ed(0x362),function(_0x54f5ff){const _0x23585f=_0x3b93ed;return _0x54f5ff['resolve'](_0x23585f(0x22b6),{'id':_0x323c2c[_0x23585f(0x2321)]['id'],'fields':'id,name'});}]},'locals':{'contacts':_0x323c2c[_0x3b93ed(0x1471)][_0x3b93ed(0x19c7)]}});}function _0x281fb0(){const _0x48caf9=_0x399db9;_0x323c2c[_0x48caf9(0x2516)]=![];}function _0x14c92(){const _0x4e3a33=_0x399db9;_0x323c2c[_0x4e3a33(0x2516)]=!![];}function _0x3aafe4(){const _0x857841=_0x399db9;return _0x4a0a7a['cmContact'][_0x857841(0x1ea2)]({'id':_0x323c2c[_0x857841(0x1a56)][_0x857841(0xb7c)]})[_0x857841(0x2945)]['then'](function(_0x3b4219){const _0x528aff=_0x857841;return _0x3f65c0()(_0x3b4219['toJSON']())[_0x528aff(0x2432)](_0x528aff(0xea2))[_0x528aff(0x81b)]()[_0x528aff(0x205)](function(_0x2607e7){return _0x3ffb0a(_0x2607e7);})[_0x528aff(0x175d)]();})['then'](function(_0x56250d){const _0x36aa95=_0x857841;_0x323c2c[_0x36aa95(0xe93)][_0x36aa95(0x2867)]=_0x56250d;const _0x48ab29={'name':_0x36aa95(0x2331),'column':'Tag','type':'multiselect','options':{'route':{'model':'tag','action':_0x36aa95(0x16b4),'params':{'nolimit':!![]}},'excludedOperators':['$notIn']}};let _0x26cdf5=_0x3f65c0()[_0x36aa95(0x99c)](_0x56250d,function(_0x3f481a){const _0xdf99be=_0x36aa95;return _0x3f65c0()[_0xdf99be(0xd4d)](_0x3f481a[_0xdf99be(0x1dbb)],_0xdf99be(0x21ef));})||_0x56250d[_0x36aa95(0x402)]-0x1;if(_0x26cdf5<0x0)_0x26cdf5=_0x56250d[_0x36aa95(0x402)];_0x323c2c[_0x36aa95(0xe93)][_0x36aa95(0x2867)]['splice'](_0x26cdf5,0x0,_0x48ab29);})[_0x857841(0x129e)](function(_0x56049f){const _0x15804e=_0x857841;_0x14623f[_0x15804e(0x1980)]({'title':_0x56049f[_0x15804e(0x107b)]?_0x15804e(0x262a)+_0x56049f[_0x15804e(0x107b)]+_0x15804e(0x1315)+_0x56049f[_0x15804e(0x167f)]:'DESCRIBE_CM_CONTACTS','msg':_0x56049f[_0x15804e(0x524)]?JSON[_0x15804e(0x10bb)](_0x56049f['data']['message']):_0x56049f[_0x15804e(0xd5f)]()});});}function _0x3ffb0a(_0x10d2d2){const _0x3d6f88=_0x399db9,_0x543090={'name':_0x3f65c0()[_0x3d6f88(0x20d1)](_0x10d2d2['displayName']),'column':_0x10d2d2[_0x3d6f88(0x1e1d)],'options':{}};if(_0x10d2d2[_0x3d6f88(0x1802)])switch(_0x10d2d2['custom'][_0x3d6f88(0x1142)]){case _0x3d6f88(0xa8d):_0x543090[_0x3d6f88(0x1142)]=_0x3d6f88(0xa8d);break;case _0x3d6f88(0xa5f):_0x543090[_0x3d6f88(0x1142)]=_0x3d6f88(0x175c),_0x543090[_0x3d6f88(0x81b)]=_0x3f65c0()[_0x3d6f88(0x205)](JSON[_0x3d6f88(0x975)](_0x10d2d2[_0x3d6f88(0x1802)][_0x3d6f88(0x81b)]),function(_0x56489b,_0x16cb1d){const _0x5c34be=_0x3d6f88;return{'id':_0x16cb1d,'name':_0x56489b[_0x5c34be(0x175d)],'value':_0x56489b[_0x5c34be(0x175d)]};}),_0x543090[_0x3d6f88(0xa08)][_0x3d6f88(0x65c)]=_0x3d6f88(0x19eb);break;case _0x3d6f88(0x1197):_0x543090['type']=_0x3d6f88(0xa5f),_0x543090[_0x3d6f88(0x81b)]=[{'id':0x1,'translate':'DASHBOARDS.ENABLED'},{'id':0x0,'translate':_0x3d6f88(0x1ab0)}],_0x543090[_0x3d6f88(0xa08)][_0x3d6f88(0x930)]=[_0x3d6f88(0x1671)];break;case'number':_0x543090[_0x3d6f88(0x1142)]=_0x3d6f88(0x181);break;case'datetime':_0x543090['type']=_0x3d6f88(0x1a10);break;}else switch(_0x10d2d2[_0x3d6f88(0x1e1d)]){case _0x3d6f88(0xc5c):_0x543090[_0x3d6f88(0x1142)]=_0x3d6f88(0x1a10);break;case _0x3d6f88(0xe7c):_0x543090[_0x3d6f88(0x19eb)]=_0x3d6f88(0x26c9),_0x543090[_0x3d6f88(0x1142)]='autocomplete',_0x543090[_0x3d6f88(0xa08)]['route']={'model':_0x3d6f88(0x134d),'action':_0x3d6f88(0x16b4),'params':{'fields':_0x3d6f88(0x7a7),'nolimit':!![]}},_0x543090['options'][_0x3d6f88(0x458)]=[_0x3d6f88(0x19eb)],_0x543090[_0x3d6f88(0xa08)][_0x3d6f88(0x930)]=[_0x3d6f88(0x1671)];break;case _0x3d6f88(0xb7c):_0x543090[_0x3d6f88(0x19eb)]=_0x3d6f88(0x1940),_0x543090['type']=_0x3d6f88(0x14ee),_0x543090[_0x3d6f88(0xa08)][_0x3d6f88(0xdb0)]={'model':_0x3d6f88(0xe7b),'action':_0x3d6f88(0x233d),'params':{'id':_0x323c2c[_0x3d6f88(0x2321)]['id'],'fields':_0x3d6f88(0x7a7),'nolimit':!![]}},_0x543090[_0x3d6f88(0xa08)][_0x3d6f88(0x458)]=[_0x3d6f88(0x19eb)],_0x543090[_0x3d6f88(0xa08)][_0x3d6f88(0x930)]=[_0x3d6f88(0x1671)];break;default:if(_0x3f65c0()[_0x3d6f88(0xa4e)](_0x10d2d2[_0x3d6f88(0x1142)][_0x3d6f88(0x256e)](),_0x3d6f88(0x81c)))_0x543090[_0x3d6f88(0x1142)]=_0x3d6f88(0x181);else _0x3f65c0()[_0x3d6f88(0xa4e)](_0x10d2d2[_0x3d6f88(0x1142)][_0x3d6f88(0x256e)](),_0x3d6f88(0x1a10))?_0x543090[_0x3d6f88(0x1142)]='date':_0x543090[_0x3d6f88(0x1142)]=_0x3d6f88(0xa8d);break;}return _0x543090;}function _0x54ed8f(){const _0x1a275b=_0x399db9;_0x323c2c[_0x1a275b(0x2516)]=![],_0x13dce1[_0x1a275b(0x2615)]({'controller':_0x1a275b(0x26bc),'controllerAs':'vm','templateUrl':_0x3fb128,'parent':angular[_0x1a275b(0x1853)](_0x403cbd['body']),'clickOutsideToClose':![],'locals':{'color':_0x323c2c[_0x1a275b(0x1527)],'fields':_0x323c2c[_0x1a275b(0xe93)][_0x1a275b(0x2867)],'storagePath':_0x1a275b(0xd54)},'fullscreen':!![]})['then'](function(_0xd577d5){const _0x4e635f=_0x1a275b;_0x323c2c['query'][_0x4e635f(0x21da)]=_0xd577d5===![]?undefined:_0xd577d5;if(_0x323c2c[_0x4e635f(0x1a56)]['search']||_0xd577d5===![])_0x560f4f();})[_0x1a275b(0x129e)](function(_0xfb198c){const _0x3dbe68=_0x1a275b;_0x14623f[_0x3dbe68(0x1980)]({'title':_0x3dbe68(0x10f5),'msg':_0xfb198c[_0x3dbe68(0x524)]?JSON[_0x3dbe68(0x10bb)](_0xfb198c[_0x3dbe68(0x524)][_0x3dbe68(0x7fd)]):_0xfb198c[_0x3dbe68(0xd5f)]()});});}let _0x463e8a=!![],_0x234335=0x1;_0x852778['$watch'](_0x399db9(0x2669),function(_0x3ebeb4,_0x5b7d21){const _0x5ee5a9=_0x399db9;_0x463e8a?_0x2a4968(function(){_0x463e8a=![];}):(!_0x5b7d21&&(_0x234335=_0x323c2c[_0x5ee5a9(0x1a56)][_0x5ee5a9(0x844)]),_0x3ebeb4!==_0x5b7d21&&(_0x323c2c['query'][_0x5ee5a9(0x844)]=0x1),!_0x3ebeb4&&(_0x323c2c[_0x5ee5a9(0x1a56)][_0x5ee5a9(0x844)]=_0x234335),_0x560f4f());});}const _0x3d6357=_0x25da9a;;_0x184cbc['$inject']=[_0x313a4d(0x910),_0x313a4d(0xa0a)];function _0x184cbc(_0x1853d6,_0x496b31){const _0x16f1ae=_0x313a4d;let _0x1761c4=_0x496b31(function(){},0x3e7);_0x1853d6[_0x16f1ae(0x16ad)](_0x16f1ae(0x116f),function(){const _0x1370cf=_0x16f1ae;_0x1761c4&&(_0x496b31[_0x1370cf(0x6c3)](_0x1761c4),_0x1761c4=null);});}const _0x257aa7=_0x184cbc;;_0x28c838[_0x313a4d(0x11c2)]=['$scope','$timeout',_0x313a4d(0x10e8),_0x313a4d(0x4d8),_0x313a4d(0x1aa9),_0x313a4d(0x214b),'api',_0x313a4d(0xa87),_0x313a4d(0x279d)];function _0x28c838(_0x26ecb3,_0x1adf46,_0x5a464a,_0x37357b,_0x2a3c4f,_0x40e46c,_0x3cce0a,_0xa8f862,_0x2a756c){const _0x2b8153=_0x313a4d,_0x34adea=this,_0x1c3f84=[_0x2b8153(0x1142),_0x2b8153(0x12a3),_0x2b8153(0x1a69),'dialActive'];_0x34adea[_0x2b8153(0xa27)]={},_0x34adea[_0x2b8153(0x2363)]=0x0,_0x34adea[_0x2b8153(0x144e)]={},_0x34adea[_0x2b8153(0x1b21)]={},_0x34adea[_0x2b8153(0x18e)]={},_0x34adea[_0x2b8153(0x2916)]={},_0x34adea['deleteVoiceQueuesChannels']=[],_0x34adea[_0x2b8153(0x2412)]=!![],_0x34adea['query']={'id':_0xa8f862[_0x2b8153(0xb12)]()['id'],'fields':_0x2b8153(0x1285),'channel':_0x2b8153(0xe6),'type':_0x2b8153(0xc9c),'limit':0xa,'page':0x1},_0x34adea[_0x2b8153(0x219)]={'limit':0xa,'page':0x1},_0x34adea[_0x2b8153(0x1c75)]=_0x445d15,_0x34adea[_0x2b8153(0x1b21)]=_0x149826,_0x34adea[_0x2b8153(0x1d9e)]=_0x42182f,_0x34adea['onSaveQueue']=_0x5c8cc9,_0x34adea['onSaveChannel']=_0x158888,_0x34adea['onUserVoiceQueue']=_0x20246a,_0x34adea[_0x2b8153(0x6ac)]=_0x350f03,_0x34adea[_0x2b8153(0x1ad)]=_0xeda343,_0x34adea[_0x2b8153(0x1df7)]=_0x5ef66b,_0x2a756c[_0x2b8153(0x13b7)](_0x2b8153(0x101d),_0x34adea[_0x2b8153(0x2606)]),_0x2a756c[_0x2b8153(0x13b7)](_0x2b8153(0x1c8),_0x34adea['onSaveChannel']),_0x2a756c[_0x2b8153(0x13b7)]('userVoiceQueue:save',_0x34adea[_0x2b8153(0x28fd)]),_0x2a756c[_0x2b8153(0x13b7)]('userVoiceQueue:remove',_0x34adea[_0x2b8153(0x28fd)]),_0x2a756c['onWithoutApply'](_0x2b8153(0x11a5),_0x34adea[_0x2b8153(0x6ac)]),_0x2a756c['onWithoutApply'](_0x2b8153(0x1907),_0x34adea['onRemoveVoiceQueue']),_0x2a756c[_0x2b8153(0x13b7)]('voiceQueue:update',_0x34adea[_0x2b8153(0x1ad)]),_0x3cce0a[_0x2b8153(0x1af7)][_0x2b8153(0x1b21)]()['$promise']['then'](function(_0xcd8a7b){const _0x18d6e9=_0x2b8153;return _0x34adea[_0x18d6e9(0x144e)]=_0xcd8a7b?_0x3f65c0()['keyBy'](_0xcd8a7b[_0x18d6e9(0x19c7)]?_0xcd8a7b[_0x18d6e9(0x19c7)]:[],'id'):{},_0x3cce0a[_0x18d6e9(0x1af7)][_0x18d6e9(0x151e)]()['$promise'];})[_0x2b8153(0x146b)](function(_0x42aab6){const _0x517eaa=_0x2b8153;_0x34adea['rpcVoiceQueuesChannels']=_0x42aab6?_0x3f65c0()['keyBy'](_0x42aab6[_0x517eaa(0x19c7)]?_0x3f65c0()['filter'](_0x42aab6[_0x517eaa(0x19c7)],{'type':_0x517eaa(0xc9c),'queuecallerleaveAt':null}):[],_0x517eaa(0x4f8)):{};})['catch'](function(_0x58a1a0){const _0x13b2dd=_0x2b8153;console[_0x13b2dd(0x1980)](_0x58a1a0);})[_0x2b8153(0x1ec6)](function(){const _0x5d04f9=_0x2b8153;_0x3f65c0()[_0x5d04f9(0x168d)](_0x34adea[_0x5d04f9(0x18e)],_0x34adea['addVoiceQueuesChannels']);for(let _0x2212bf=0x0;_0x2212bf<_0x34adea[_0x5d04f9(0x536)]['length'];_0x2212bf+=0x1){delete _0x34adea[_0x5d04f9(0x18e)][_0x34adea[_0x5d04f9(0x536)][_0x2212bf]];}_0x34adea[_0x5d04f9(0x2412)]=![],_0x34adea[_0x5d04f9(0x2916)]={},_0x34adea[_0x5d04f9(0x536)]=[],_0x34adea['getVoiceQueues']();});function _0x445d15(_0x51d816){const _0x58ba55=_0x2b8153;_0x34adea[_0x58ba55(0x2363)]=_0x51d816[_0x58ba55(0x51c)]?_0x51d816[_0x58ba55(0x51c)]:0x0,_0x34adea[_0x58ba55(0xa27)]=_0x51d816?_0x3f65c0()[_0x58ba55(0x194)](_0x51d816[_0x58ba55(0x19c7)]?_0x51d816['rows']:[],'id'):{},_0xcf2277();}function _0x149826(){const _0x50f385=_0x2b8153;_0x34adea['query'][_0x50f385(0x145d)]=(_0x34adea['query'][_0x50f385(0x844)]-0x1)*_0x34adea[_0x50f385(0x1a56)][_0x50f385(0x221e)],_0x34adea[_0x50f385(0xb9c)]=_0x3cce0a[_0x50f385(0xe7b)][_0x50f385(0xc53)](_0x34adea[_0x50f385(0x1a56)],_0x445d15)[_0x50f385(0x2945)];}let _0xd44daf=!![],_0x46d53c=0x1;_0x26ecb3[_0x2b8153(0x21e8)]('vm_dc.query.filter',function(_0x2053e5,_0x54c00e){const _0x200684=_0x2b8153;_0xd44daf?_0x1adf46(function(){_0xd44daf=![];}):(!_0x54c00e&&(_0x46d53c=_0x34adea[_0x200684(0x1a56)][_0x200684(0x844)]),_0x2053e5!==_0x54c00e&&(_0x34adea['query'][_0x200684(0x844)]=0x1),!_0x2053e5&&(_0x34adea[_0x200684(0x1a56)][_0x200684(0x844)]=_0x46d53c),_0x34adea[_0x200684(0x1b21)]());});function _0x42182f(_0x229970){const _0x149cfa=_0x2b8153;return _0x3f65c0()[_0x149cfa(0x4cc)](_0x229970);}function _0xcf2277(){const _0x3c34d3=_0x2b8153;_0x3f65c0()[_0x3c34d3(0x1a04)](_0x34adea[_0x3c34d3(0xa27)],function(_0x28a040,_0x2eedda){const _0xbe096b=_0x3c34d3;_0x34adea[_0xbe096b(0x144e)][_0x2eedda]&&(_0x34adea[_0xbe096b(0xa27)][_0x2eedda][_0xbe096b(0x12a3)]=_0x34adea[_0xbe096b(0x144e)][_0x2eedda][_0xbe096b(0x12a3)]||0x0);});}function _0x5c8cc9(_0x38aedd){const _0x424910=_0x2b8153;_0x34adea['voiceQueues'][_0x38aedd['id']]&&(_0x34adea[_0x424910(0x144e)][_0x38aedd['id']]&&(_0x34adea[_0x424910(0x144e)][_0x38aedd['id']]=_0x38aedd,_0x3f65c0()[_0x424910(0x168d)](_0x34adea[_0x424910(0xa27)][_0x38aedd['id']],_0x3f65c0()[_0x424910(0x40e)](_0x38aedd,_0x1c3f84))));}function _0x158888(_0x4f7b70){const _0x1b45fa=_0x2b8153;_0x4f7b70[_0x1b45fa(0x1142)]==='outbound'&&(_0x4f7b70['queuecallerleaveAt']?(delete _0x34adea[_0x1b45fa(0x18e)][_0x4f7b70[_0x1b45fa(0x4f8)]],_0x34adea['load']&&_0x34adea['deleteVoiceQueuesChannels'][_0x1b45fa(0x1f47)](_0x4f7b70[_0x1b45fa(0x4f8)])):(_0x34adea[_0x1b45fa(0x18e)][_0x4f7b70[_0x1b45fa(0x4f8)]]=_0x4f7b70,_0x34adea[_0x1b45fa(0x2412)]&&(_0x34adea['addVoiceQueuesChannels'][_0x4f7b70[_0x1b45fa(0x4f8)]]=_0x4f7b70)));}function _0x350f03(_0x2fe0f6){const _0xe43853=_0x2b8153;!_0x3f65c0()[_0xe43853(0x1b36)](_0x2fe0f6)&&(_0x34adea['rpcVoiceQueues'][_0x2fe0f6['id']]=_0x3f65c0()['pick'](_0x2fe0f6,_0x1c3f84));}function _0xeda343(_0x10b185){const _0x2bf08b=_0x2b8153;!_0x3f65c0()['isNil'](_0x10b185)&&(_0x34adea[_0x2bf08b(0x144e)][_0x10b185['id']]&&_0x3f65c0()[_0x2bf08b(0x168d)](_0x34adea['rpcVoiceQueues'][_0x10b185['id']],_0x3f65c0()[_0x2bf08b(0x40e)](_0x10b185,_0x1c3f84)),_0x34adea[_0x2bf08b(0xa27)][_0x10b185['id']]&&_0x3f65c0()[_0x2bf08b(0x168d)](_0x34adea[_0x2bf08b(0xa27)][_0x10b185['id']],_0x3f65c0()[_0x2bf08b(0x40e)](_0x10b185,_0x1c3f84)));}function _0x5ef66b(_0x56b58e){const _0x11c47c=_0x2b8153;!_0x3f65c0()['isNil'](_0x56b58e)&&(delete _0x34adea[_0x11c47c(0x144e)][_0x56b58e['id']],delete _0x34adea[_0x11c47c(0xa27)][_0x56b58e['id']]);}function _0x20246a(_0x5438e2){const _0x32b635=_0x2b8153;_0x3f65c0()[_0x32b635(0x13dc)](_0x5438e2[_0x32b635(0xea2)])===_0xa8f862['getCurrentUser']()['id']&&_0x34adea[_0x32b635(0x1b21)]();}_0x26ecb3['$on']('$destroy',function(){const _0x2e66a4=_0x2b8153;_0x2a756c[_0x2e66a4(0x1c5f)](_0x2e66a4(0x101d)),_0x2a756c[_0x2e66a4(0x1c5f)](_0x2e66a4(0x1c8)),_0x2a756c[_0x2e66a4(0x1c5f)]('userVoiceQueue:save'),_0x2a756c['removeAllListeners'](_0x2e66a4(0x1d3e)),_0x2a756c['removeAllListeners']('voiceQueue:save'),_0x2a756c[_0x2e66a4(0x1c5f)](_0x2e66a4(0x235b)),_0x2a756c[_0x2e66a4(0x1c5f)](_0x2e66a4(0x1907));});}const _0x5efbb3=_0x28c838;;_0xa91485[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1abe),_0x313a4d(0x10e8),'$document',_0x313a4d(0x1aa9),_0x313a4d(0x214b),_0x313a4d(0x247f),_0x313a4d(0xa87),_0x313a4d(0x279d)];function _0xa91485(_0x349ea3,_0x2cafdd,_0x34442f,_0x58a323,_0x56087e,_0x193144,_0x5a8744,_0x523318,_0x475e03){const _0x4fd338=_0x313a4d,_0x19337b=this,_0x4ae3bd=['id',_0x4fd338(0x19eb),_0x4fd338(0x18dd),_0x4fd338(0x12a3)];let _0x52a6f6=!![];_0x19337b[_0x4fd338(0x380)]={},_0x19337b['chatQueuesTotal']=0x0,_0x19337b[_0x4fd338(0x250)]={},_0x19337b['paginatedInteractions']=[],_0x19337b[_0x4fd338(0x1dcc)]=[],_0x19337b[_0x4fd338(0x2439)]={},_0x19337b[_0x4fd338(0x1a56)]={'id':_0x523318['getCurrentUser']()['id'],'channel':_0x4fd338(0xa7f),'fields':_0x4fd338(0x255b),'limit':0xa,'page':0x1},_0x19337b[_0x4fd338(0x219)]={'limit':0xa,'page':0x1},_0x19337b['success']=_0x39e118,_0x19337b[_0x4fd338(0x12fe)]=_0x3d5de3,_0x19337b['getSize']=_0x195ab8,_0x19337b[_0x4fd338(0x17e5)]=_0x5b941c,_0x19337b['paginate']=_0x5122b5,_0x19337b[_0x4fd338(0x2606)]=_0x26367f,_0x19337b[_0x4fd338(0xf92)]=_0x3e2c2a,_0x19337b['onUpdateChatQueue']=_0x357157,_0x19337b[_0x4fd338(0x100e)]=_0x3bb113,_0x19337b[_0x4fd338(0x1e63)]=_0x8152c1,_0x19337b['onRemoveUserChatQueue']=_0x4e2f51,_0x19337b[_0x4fd338(0x791)]=_0x120ac6,_0x19337b[_0x4fd338(0x25e)]=_0x2c3ec4,_0x475e03['onWithoutApply']('chat_queue:save',_0x19337b[_0x4fd338(0x2606)]),_0x475e03[_0x4fd338(0x13b7)](_0x4fd338(0x14c8),_0x19337b[_0x4fd338(0xf92)]),_0x475e03[_0x4fd338(0x13b7)](_0x4fd338(0x475),_0x19337b[_0x4fd338(0x2132)]),_0x475e03[_0x4fd338(0x13b7)](_0x4fd338(0x14e4),_0x19337b[_0x4fd338(0x100e)]),_0x475e03[_0x4fd338(0x13b7)](_0x4fd338(0x1128),_0x19337b['onSaveUserChatQueue']),_0x475e03[_0x4fd338(0x13b7)](_0x4fd338(0x24df),_0x19337b[_0x4fd338(0x117)]),_0x475e03[_0x4fd338(0x13b7)]('chat_queue_waiting_interaction:save',_0x19337b[_0x4fd338(0x791)]),_0x475e03[_0x4fd338(0x13b7)](_0x4fd338(0x2a8),_0x19337b[_0x4fd338(0x25e)]),_0x5a8744[_0x4fd338(0x1af7)][_0x4fd338(0x12fe)]()[_0x4fd338(0x2945)][_0x4fd338(0x146b)](function(_0x5e1e18){const _0x23d84b=_0x4fd338;_0x19337b['rpcChatQueues']=_0x5e1e18?_0x3f65c0()[_0x23d84b(0x194)](_0x5e1e18['rows']?_0x5e1e18['rows']:[],'id'):{};})[_0x4fd338(0x146b)](function(){const _0x1c0cb4=_0x4fd338;return _0x5a8744[_0x1c0cb4(0xe7b)][_0x1c0cb4(0xc53)]({'id':_0x523318[_0x1c0cb4(0xb12)]()['id'],'channel':_0x1c0cb4(0xa7f)})[_0x1c0cb4(0x2945)];})[_0x4fd338(0x146b)](function(_0x4aa439){const _0x16bc32=_0x4fd338;return _0x19337b['myQueues']=_0x4aa439[_0x16bc32(0x19c7)],_0x5a8744[_0x16bc32(0x1af7)][_0x16bc32(0x43b)]()['$promise'];})['then'](function(_0x352d35){const _0x42f5e2=_0x4fd338,_0x49bae9=_0x3f65c0()[_0x42f5e2(0x1dd6)](_0x352d35[_0x42f5e2(0x19c7)],function(_0x5db015){const _0x3bddc6=_0x42f5e2;return _0x3f65c0()[_0x3bddc6(0xa4e)](_0x19337b[_0x3bddc6(0x1794)],{'id':_0x5db015['queue_id']});});_0x352d35[_0x42f5e2(0x19c7)]=_0x49bae9,_0x352d35[_0x42f5e2(0x51c)]=_0x49bae9[_0x42f5e2(0x402)],_0x3f65c0()[_0x42f5e2(0x168d)](_0x19337b[_0x42f5e2(0x2439)],_0x352d35?_0x3f65c0()[_0x42f5e2(0x194)](_0x352d35['rows']?_0x352d35[_0x42f5e2(0x19c7)]:[],'id'):{});})[_0x4fd338(0x129e)](function(_0x7c2b2b){const _0x4cc091=_0x4fd338;console[_0x4cc091(0x1980)](_0x7c2b2b);})[_0x4fd338(0x1ec6)](function(){const _0x38ea48=_0x4fd338;for(let _0x4984b5=0x0;_0x4984b5<_0x19337b[_0x38ea48(0x1dcc)][_0x38ea48(0x402)];_0x4984b5+=0x1){delete _0x19337b[_0x38ea48(0x2439)][_0x19337b[_0x38ea48(0x1dcc)][_0x4984b5]];}_0x52a6f6=![],_0x19337b['deleteChatQueuesWaitingInteractions']=[],_0x3d5de3(),_0x5122b5();});function _0x5122b5(){const _0x5cd461=_0x4fd338,_0xcbfbc5=(_0x19337b[_0x5cd461(0x219)][_0x5cd461(0x844)]-0x1)*_0x19337b[_0x5cd461(0x219)][_0x5cd461(0x221e)];_0x19337b[_0x5cd461(0x24cb)]=_0x3f65c0()['orderBy'](_0x19337b[_0x5cd461(0x2439)],[_0x5cd461(0x11f0)],[_0x5cd461(0x2517)]),_0x19337b[_0x5cd461(0x1118)]=_0x3f65c0()[_0x5cd461(0x854)](_0x19337b[_0x5cd461(0x24cb)],_0xcbfbc5)[_0x5cd461(0x1298)](0x0,_0x19337b[_0x5cd461(0x219)]['limit']);}function _0x39e118(_0x2481b8){const _0x2df919=_0x4fd338;_0x19337b[_0x2df919(0x201)]=_0x2481b8[_0x2df919(0x51c)]?_0x2481b8[_0x2df919(0x51c)]:0x0,_0x19337b['chatQueues']=_0x2481b8?_0x3f65c0()[_0x2df919(0x194)](_0x2481b8[_0x2df919(0x19c7)]?_0x2481b8['rows']:[],'id'):{},_0x2db363();}function _0x3d5de3(){const _0x2b71f8=_0x4fd338;_0x19337b['query'][_0x2b71f8(0x145d)]=(_0x19337b['query']['page']-0x1)*_0x19337b[_0x2b71f8(0x1a56)]['limit'],_0x19337b[_0x2b71f8(0xb9c)]=_0x5a8744[_0x2b71f8(0xe7b)]['getQueues'](_0x19337b[_0x2b71f8(0x1a56)],_0x39e118)[_0x2b71f8(0x2945)];}let _0x5fd47a=!![],_0x40839c=0x1;_0x349ea3[_0x4fd338(0x21e8)]('vm_dc.query.filter',function(_0x1c12f7,_0x8abbe7){const _0x173189=_0x4fd338;_0x5fd47a?_0x2cafdd(function(){_0x5fd47a=![];}):(!_0x8abbe7&&(_0x40839c=_0x19337b['query'][_0x173189(0x844)]),_0x1c12f7!==_0x8abbe7&&(_0x19337b['query'][_0x173189(0x844)]=0x1),!_0x1c12f7&&(_0x19337b[_0x173189(0x1a56)][_0x173189(0x844)]=_0x40839c),_0x19337b['getChatQueues']());});function _0x195ab8(_0x3872ad){const _0x1d00a5=_0x4fd338;return _0x3f65c0()[_0x1d00a5(0x4cc)](_0x3872ad);}function _0x2db363(){const _0x1dc075=_0x4fd338;_0x3f65c0()[_0x1dc075(0x1a04)](_0x19337b[_0x1dc075(0x380)],function(_0x7e00b7,_0x23edbd){const _0x5567de=_0x1dc075;_0x19337b[_0x5567de(0x250)][_0x23edbd]&&(_0x19337b['chatQueues'][_0x23edbd][_0x5567de(0x12a3)]=_0x19337b[_0x5567de(0x250)][_0x23edbd][_0x5567de(0x12a3)]||0x0);});}function _0x26367f(_0x1a6031){const _0x524c27=_0x4fd338;_0x19337b[_0x524c27(0x380)][_0x1a6031['id']]&&(_0x19337b['rpcChatQueues'][_0x1a6031['id']]&&(_0x3f65c0()[_0x524c27(0x168d)](_0x19337b[_0x524c27(0x250)][_0x1a6031['id']],_0x3f65c0()[_0x524c27(0x40e)](_0x1a6031,_0x4ae3bd)),_0x3f65c0()[_0x524c27(0x168d)](_0x19337b['chatQueues'][_0x1a6031['id']],_0x3f65c0()[_0x524c27(0x40e)](_0x1a6031,_0x4ae3bd))));}function _0x3e2c2a(_0x469db5){const _0x3bad35=_0x4fd338;!_0x3f65c0()['isNil'](_0x469db5)&&(_0x19337b[_0x3bad35(0x250)][_0x469db5['id']]=_0x3f65c0()[_0x3bad35(0x40e)](_0x469db5,_0x4ae3bd));}function _0x357157(_0x680960){const _0x4ff5f2=_0x4fd338;!_0x3f65c0()[_0x4ff5f2(0x1b36)](_0x680960)&&(_0x19337b['rpcChatQueues'][_0x680960['id']]&&_0x3f65c0()[_0x4ff5f2(0x168d)](_0x19337b[_0x4ff5f2(0x250)][_0x680960['id']],_0x3f65c0()['pick'](_0x680960,_0x4ae3bd)),_0x19337b[_0x4ff5f2(0x380)][_0x680960['id']]&&_0x3f65c0()[_0x4ff5f2(0x168d)](_0x19337b[_0x4ff5f2(0x380)][_0x680960['id']],_0x3f65c0()[_0x4ff5f2(0x40e)](_0x680960,_0x4ae3bd)));}function _0x3bb113(_0x1efa58){const _0x4d4346=_0x4fd338;!_0x3f65c0()['isNil'](_0x1efa58)&&(delete _0x19337b[_0x4d4346(0x250)][_0x1efa58['id']],delete _0x19337b[_0x4d4346(0x380)][_0x1efa58['id']]);}function _0x8152c1(_0x1a230c){const _0x3d89d1=_0x4fd338;_0x3f65c0()[_0x3d89d1(0x13dc)](_0x1a230c[_0x3d89d1(0xea2)])===_0x523318[_0x3d89d1(0xb12)]()['id']&&_0x19337b[_0x3d89d1(0x12fe)]();}function _0x4e2f51(_0x447260){const _0x1c9a7e=_0x4fd338;_0x3f65c0()[_0x1c9a7e(0x13dc)](_0x447260[_0x1c9a7e(0xea2)])===_0x523318[_0x1c9a7e(0xb12)]()['id']&&_0x19337b['getChatQueues']();}function _0x120ac6(_0xbc1e16){const _0x4953e1=_0x4fd338;_0x19337b[_0x4953e1(0x380)][_0xbc1e16[_0x4953e1(0x1c2a)]]&&(_0x19337b[_0x4953e1(0x2439)][_0xbc1e16['id']]=_0xbc1e16,_0x5122b5());}function _0x2c3ec4(_0x14cd2a){const _0x18c5c2=_0x4fd338;delete _0x19337b['rpcChatQueuesWaitingInteractions'][_0x14cd2a['id']],_0x52a6f6&&_0x19337b[_0x18c5c2(0x1dcc)][_0x18c5c2(0x1f47)](_0x14cd2a['id']),_0x5122b5();}function _0x5b941c(_0x206fde){const _0x537775=_0x4fd338;switch(_0x206fde){case'chat':return _0x537775(0xde9);case _0x537775(0x56b):return _0x537775(0x463);case _0x537775(0x929):return _0x537775(0xd4f);case _0x537775(0xff9):return'lime-A700-bg';case'openchannel':return'amber-A200-bg';case _0x537775(0x22d9):return _0x537775(0x18f6);default:return'white-bg';}}_0x349ea3[_0x4fd338(0x16ad)](_0x4fd338(0x116f),function(){const _0x4d8691=_0x4fd338;_0x475e03[_0x4d8691(0x1c5f)](_0x4d8691(0x1e10)),_0x475e03[_0x4d8691(0x1c5f)]('chatQueue:save'),_0x475e03[_0x4d8691(0x1c5f)]('chatQueue:update'),_0x475e03[_0x4d8691(0x1c5f)]('chatQueue:remove'),_0x475e03[_0x4d8691(0x1c5f)](_0x4d8691(0x1128)),_0x475e03['removeAllListeners'](_0x4d8691(0x24df)),_0x475e03[_0x4d8691(0x1c5f)]('chat_queue_waiting_interaction:save'),_0x475e03[_0x4d8691(0x1c5f)](_0x4d8691(0x2a8));});}const _0x5aa209=_0xa91485;;_0x480f67[_0x313a4d(0x11c2)]=['$scope','$timeout',_0x313a4d(0x10e8),_0x313a4d(0x4d8),'$window',_0x313a4d(0x214b),_0x313a4d(0x247f),_0x313a4d(0xa87),_0x313a4d(0x279d)];function _0x480f67(_0x47325b,_0x4be4f9,_0x2176dc,_0xdf0a00,_0x373838,_0x15c914,_0x247a45,_0x4c0a38,_0x4639c2){const _0x24e037=_0x313a4d,_0x467e0c=this,_0x35474a=['id',_0x24e037(0x19eb),_0x24e037(0x18dd),_0x24e037(0x12a3)];let _0x5e2261=!![];_0x467e0c[_0x24e037(0x27fa)]={},_0x467e0c[_0x24e037(0x1b20)]=0x0,_0x467e0c['rpcFaxQueues']={},_0x467e0c[_0x24e037(0x24cb)]=[],_0x467e0c[_0x24e037(0x1934)]=[],_0x467e0c[_0x24e037(0x23e4)]={},_0x467e0c[_0x24e037(0x1a56)]={'id':_0x4c0a38[_0x24e037(0xb12)]()['id'],'channel':_0x24e037(0x22d9),'fields':_0x24e037(0x255b),'limit':0xa,'page':0x1},_0x467e0c[_0x24e037(0x219)]={'limit':0xa,'page':0x1},_0x467e0c[_0x24e037(0x1c75)]=_0x9aadd5,_0x467e0c[_0x24e037(0xbbc)]=_0xaf5234,_0x467e0c[_0x24e037(0x1d9e)]=_0x46be36,_0x467e0c[_0x24e037(0x17e5)]=_0x1cad67,_0x467e0c['paginate']=_0x45aa94,_0x467e0c[_0x24e037(0x2606)]=_0xbab3f,_0x467e0c['onSaveFaxQueue']=_0x5fdfab,_0x467e0c[_0x24e037(0x25e0)]=_0x4a878f,_0x467e0c[_0x24e037(0x1524)]=_0x4ac3b6,_0x467e0c[_0x24e037(0xe13)]=_0x409316,_0x467e0c[_0x24e037(0x137f)]=_0x13a561,_0x467e0c[_0x24e037(0x227f)]=_0x4eccfa,_0x467e0c['onRemoveFaxQueueChannel']=_0x4c1ddb,_0x4639c2[_0x24e037(0x13b7)](_0x24e037(0x1d46),_0x467e0c['onSaveQueue']),_0x4639c2['onWithoutApply'](_0x24e037(0x1574),_0x467e0c[_0x24e037(0x27ec)]),_0x4639c2[_0x24e037(0x13b7)](_0x24e037(0x143),_0x467e0c['onUpdateFaxQueue']),_0x4639c2[_0x24e037(0x13b7)](_0x24e037(0x99b),_0x467e0c[_0x24e037(0x1524)]),_0x4639c2[_0x24e037(0x13b7)](_0x24e037(0x48a),_0x467e0c['onSaveUserFaxQueue']),_0x4639c2['onWithoutApply'](_0x24e037(0x193),_0x467e0c[_0x24e037(0x137f)]),_0x4639c2[_0x24e037(0x13b7)](_0x24e037(0x184f),_0x467e0c[_0x24e037(0x227f)]),_0x4639c2['onWithoutApply']('fax_queue_waiting_interaction:remove',_0x467e0c[_0x24e037(0x1a08)]),_0x247a45[_0x24e037(0x1af7)][_0x24e037(0xbbc)]()[_0x24e037(0x2945)][_0x24e037(0x146b)](function(_0x342d11){const _0x1dbd06=_0x24e037;_0x467e0c[_0x1dbd06(0xeff)]=_0x342d11?_0x3f65c0()['keyBy'](_0x342d11[_0x1dbd06(0x19c7)]?_0x342d11[_0x1dbd06(0x19c7)]:[],'id'):{};})['then'](function(){const _0x33023d=_0x24e037;return _0x247a45[_0x33023d(0xe7b)][_0x33023d(0xc53)]({'id':_0x4c0a38['getCurrentUser']()['id'],'channel':'fax'})['$promise'];})[_0x24e037(0x146b)](function(_0x593a59){const _0x50ee67=_0x24e037;return _0x467e0c[_0x50ee67(0x1794)]=_0x593a59[_0x50ee67(0x19c7)],_0x247a45[_0x50ee67(0x1af7)][_0x50ee67(0x1f1)]()['$promise'];})[_0x24e037(0x146b)](function(_0x1a0845){const _0x37a846=_0x24e037,_0x381906=_0x3f65c0()['filter'](_0x1a0845[_0x37a846(0x19c7)],function(_0xb3a989){const _0x7342a3=_0x37a846;return _0x3f65c0()[_0x7342a3(0xa4e)](_0x467e0c[_0x7342a3(0x1794)],{'id':_0xb3a989[_0x7342a3(0x1c2a)]});});_0x1a0845[_0x37a846(0x19c7)]=_0x381906,_0x1a0845[_0x37a846(0x51c)]=_0x381906[_0x37a846(0x402)],_0x3f65c0()[_0x37a846(0x168d)](_0x467e0c[_0x37a846(0x23e4)],_0x1a0845?_0x3f65c0()[_0x37a846(0x194)](_0x1a0845['rows']?_0x1a0845['rows']:[],'id'):{});})[_0x24e037(0x129e)](function(_0x51dc7f){const _0x468949=_0x24e037;console[_0x468949(0x1980)](_0x51dc7f);})[_0x24e037(0x1ec6)](function(){const _0x2c950f=_0x24e037;for(let _0x3a9dcc=0x0;_0x3a9dcc<_0x467e0c['deleteFaxQueuesWaitingInteractions'][_0x2c950f(0x402)];_0x3a9dcc+=0x1){delete _0x467e0c['rpcFaxQueuesWaitingInteractions'][_0x467e0c[_0x2c950f(0x1934)][_0x3a9dcc]];}_0x5e2261=![],_0x467e0c[_0x2c950f(0x1934)]=[],_0xaf5234(),_0x45aa94();});function _0x45aa94(){const _0x37a7e6=_0x24e037,_0x1083c0=(_0x467e0c[_0x37a7e6(0x219)][_0x37a7e6(0x844)]-0x1)*_0x467e0c[_0x37a7e6(0x219)][_0x37a7e6(0x221e)];_0x467e0c[_0x37a7e6(0x24cb)]=_0x3f65c0()['orderBy'](_0x467e0c['rpcFaxQueuesWaitingInteractions'],['joinAt'],[_0x37a7e6(0x2517)]),_0x467e0c[_0x37a7e6(0x1118)]=_0x3f65c0()['drop'](_0x467e0c[_0x37a7e6(0x24cb)],_0x1083c0)[_0x37a7e6(0x1298)](0x0,_0x467e0c['queryChannels'][_0x37a7e6(0x221e)]);}function _0x9aadd5(_0x543bea){const _0x460e1b=_0x24e037;_0x467e0c[_0x460e1b(0x1b20)]=_0x543bea[_0x460e1b(0x51c)]?_0x543bea['count']:0x0,_0x467e0c['faxQueues']=_0x543bea?_0x3f65c0()['keyBy'](_0x543bea[_0x460e1b(0x19c7)]?_0x543bea['rows']:[],'id'):{},_0x256346();}function _0xaf5234(){const _0x29c8e0=_0x24e037;_0x467e0c[_0x29c8e0(0x1a56)]['offset']=(_0x467e0c['query'][_0x29c8e0(0x844)]-0x1)*_0x467e0c['query']['limit'],_0x467e0c[_0x29c8e0(0xb9c)]=_0x247a45[_0x29c8e0(0xe7b)][_0x29c8e0(0xc53)](_0x467e0c[_0x29c8e0(0x1a56)],_0x9aadd5)[_0x29c8e0(0x2945)];}let _0x5bc849=!![],_0x398961=0x1;_0x47325b['$watch'](_0x24e037(0x117f),function(_0x47d8d1,_0x3b3a8d){const _0x36f9c6=_0x24e037;_0x5bc849?_0x4be4f9(function(){_0x5bc849=![];}):(!_0x3b3a8d&&(_0x398961=_0x467e0c[_0x36f9c6(0x1a56)][_0x36f9c6(0x844)]),_0x47d8d1!==_0x3b3a8d&&(_0x467e0c[_0x36f9c6(0x1a56)][_0x36f9c6(0x844)]=0x1),!_0x47d8d1&&(_0x467e0c[_0x36f9c6(0x1a56)][_0x36f9c6(0x844)]=_0x398961),_0x467e0c['getFaxQueues']());});function _0x46be36(_0x4a1df0){const _0x3440d6=_0x24e037;return _0x3f65c0()[_0x3440d6(0x4cc)](_0x4a1df0);}function _0x256346(){const _0x3614c9=_0x24e037;_0x3f65c0()[_0x3614c9(0x1a04)](_0x467e0c['faxQueues'],function(_0x2a6848,_0x8d53a7){const _0x233917=_0x3614c9;_0x467e0c[_0x233917(0xeff)][_0x8d53a7]&&(_0x467e0c[_0x233917(0x27fa)][_0x8d53a7][_0x233917(0x12a3)]=_0x467e0c[_0x233917(0xeff)][_0x8d53a7]['waiting']||0x0);});}function _0xbab3f(_0x159697){const _0x1c890b=_0x24e037;_0x467e0c[_0x1c890b(0x27fa)][_0x159697['id']]&&(_0x467e0c[_0x1c890b(0xeff)][_0x159697['id']]&&(_0x3f65c0()[_0x1c890b(0x168d)](_0x467e0c['rpcFaxQueues'][_0x159697['id']],_0x3f65c0()[_0x1c890b(0x40e)](_0x159697,_0x35474a)),_0x3f65c0()['merge'](_0x467e0c['faxQueues'][_0x159697['id']],_0x3f65c0()[_0x1c890b(0x40e)](_0x159697,_0x35474a))));}function _0x5fdfab(_0x5d2475){const _0x43bfe4=_0x24e037;!_0x3f65c0()[_0x43bfe4(0x1b36)](_0x5d2475)&&(_0x467e0c[_0x43bfe4(0xeff)][_0x5d2475['id']]=_0x3f65c0()[_0x43bfe4(0x40e)](_0x5d2475,_0x35474a));}function _0x4a878f(_0xeaad98){const _0x5a37b9=_0x24e037;!_0x3f65c0()[_0x5a37b9(0x1b36)](_0xeaad98)&&(_0x467e0c['rpcFaxQueues'][_0xeaad98['id']]&&_0x3f65c0()[_0x5a37b9(0x168d)](_0x467e0c[_0x5a37b9(0xeff)][_0xeaad98['id']],_0x3f65c0()[_0x5a37b9(0x40e)](_0xeaad98,_0x35474a)),_0x467e0c[_0x5a37b9(0x27fa)][_0xeaad98['id']]&&_0x3f65c0()[_0x5a37b9(0x168d)](_0x467e0c[_0x5a37b9(0x27fa)][_0xeaad98['id']],_0x3f65c0()[_0x5a37b9(0x40e)](_0xeaad98,_0x35474a)));}function _0x4ac3b6(_0x512216){const _0x4f698e=_0x24e037;!_0x3f65c0()[_0x4f698e(0x1b36)](_0x512216)&&(delete _0x467e0c[_0x4f698e(0xeff)][_0x512216['id']],delete _0x467e0c['faxQueues'][_0x512216['id']]);}function _0x409316(_0x291a2d){const _0x266546=_0x24e037;_0x3f65c0()[_0x266546(0x13dc)](_0x291a2d[_0x266546(0xea2)])===_0x4c0a38[_0x266546(0xb12)]()['id']&&_0x467e0c[_0x266546(0xbbc)]();}function _0x13a561(_0x42b7ed){const _0x4f47fe=_0x24e037;_0x3f65c0()['toInteger'](_0x42b7ed['UserId'])===_0x4c0a38['getCurrentUser']()['id']&&_0x467e0c[_0x4f47fe(0xbbc)]();}function _0x4eccfa(_0x4c47d2){const _0x3e7b25=_0x24e037;_0x467e0c['faxQueues'][_0x4c47d2[_0x3e7b25(0x1c2a)]]&&(_0x467e0c[_0x3e7b25(0x23e4)][_0x4c47d2['id']]=_0x4c47d2,_0x45aa94());}function _0x4c1ddb(_0x36dddf){const _0x32f682=_0x24e037;delete _0x467e0c['rpcFaxQueuesWaitingInteractions'][_0x36dddf['id']],_0x5e2261&&_0x467e0c[_0x32f682(0x1934)][_0x32f682(0x1f47)](_0x36dddf['id']),_0x45aa94();}function _0x1cad67(_0x589e56){const _0x31342b=_0x24e037;switch(_0x589e56){case'chat':return _0x31342b(0xde9);case _0x31342b(0x56b):return'teal-bg';case _0x31342b(0x929):return _0x31342b(0xd4f);case _0x31342b(0xff9):return _0x31342b(0x1ee7);case _0x31342b(0x7d9):return'amber-A200-bg';case _0x31342b(0x22d9):return'blue-grey-A200-bg';default:return _0x31342b(0x179b);}}_0x47325b['$on'](_0x24e037(0x116f),function(){const _0x467fe2=_0x24e037;_0x4639c2[_0x467fe2(0x1c5f)](_0x467fe2(0x1d46)),_0x4639c2[_0x467fe2(0x1c5f)]('faxQueue:save'),_0x4639c2[_0x467fe2(0x1c5f)](_0x467fe2(0x143)),_0x4639c2[_0x467fe2(0x1c5f)](_0x467fe2(0x99b)),_0x4639c2['removeAllListeners']('userFaxQueue:save'),_0x4639c2['removeAllListeners'](_0x467fe2(0x193)),_0x4639c2[_0x467fe2(0x1c5f)]('fax_queue_waiting_interaction:save'),_0x4639c2[_0x467fe2(0x1c5f)](_0x467fe2(0xfc9));});}const _0x168f30=_0x480f67;;_0x212ebe[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1abe),_0x313a4d(0x10e8),_0x313a4d(0x4d8),_0x313a4d(0x1aa9),'$translate','api',_0x313a4d(0xa87),_0x313a4d(0x279d)];function _0x212ebe(_0x112c5a,_0x19277c,_0x57e8df,_0x3f7c5d,_0x458d89,_0x418dbd,_0x4711d3,_0x26cb7a,_0x20615c){const _0x158ad6=_0x313a4d,_0x28f6d8=this,_0x2ac1bb=['id',_0x158ad6(0x19eb),_0x158ad6(0x18dd),'waiting'];let _0x572830=!![];_0x28f6d8[_0x158ad6(0x2318)]={},_0x28f6d8[_0x158ad6(0x1d88)]=0x0,_0x28f6d8['rpcMailQueues']={},_0x28f6d8['paginatedInteractions']=[],_0x28f6d8[_0x158ad6(0xd98)]=[],_0x28f6d8['rpcMailQueuesWaitingInteractions']={},_0x28f6d8[_0x158ad6(0x1a56)]={'id':_0x26cb7a[_0x158ad6(0xb12)]()['id'],'channel':_0x158ad6(0x56b),'fields':_0x158ad6(0x255b),'limit':0xa,'page':0x1},_0x28f6d8[_0x158ad6(0x219)]={'limit':0xa,'page':0x1},_0x28f6d8[_0x158ad6(0x1c75)]=_0x20ba9f,_0x28f6d8[_0x158ad6(0xaea)]=_0x54a9a5,_0x28f6d8['getSize']=_0x3e8063,_0x28f6d8[_0x158ad6(0x17e5)]=_0xd68ada,_0x28f6d8[_0x158ad6(0x51d)]=_0x1c504a,_0x28f6d8[_0x158ad6(0x2606)]=_0x17b4db,_0x28f6d8[_0x158ad6(0x1ab8)]=_0x3d9bd4,_0x28f6d8[_0x158ad6(0xb3e)]=_0x2fdb81,_0x28f6d8['onRemoveMailQueue']=_0x2265a2,_0x28f6d8[_0x158ad6(0x141a)]=_0x13d431,_0x28f6d8[_0x158ad6(0x184c)]=_0x4ea54c,_0x28f6d8[_0x158ad6(0x296)]=_0x264a4b,_0x28f6d8[_0x158ad6(0x2627)]=_0x150db4,_0x20615c[_0x158ad6(0x13b7)](_0x158ad6(0x1a8b),_0x28f6d8['onSaveQueue']),_0x20615c['onWithoutApply'](_0x158ad6(0x64b),_0x28f6d8[_0x158ad6(0x1ab8)]),_0x20615c[_0x158ad6(0x13b7)](_0x158ad6(0x239),_0x28f6d8[_0x158ad6(0xb3e)]),_0x20615c['onWithoutApply']('mailQueue:remove',_0x28f6d8[_0x158ad6(0x1c97)]),_0x20615c[_0x158ad6(0x13b7)](_0x158ad6(0x1150),_0x28f6d8[_0x158ad6(0x141a)]),_0x20615c[_0x158ad6(0x13b7)](_0x158ad6(0x4d1),_0x28f6d8[_0x158ad6(0x184c)]),_0x20615c[_0x158ad6(0x13b7)](_0x158ad6(0x2334),_0x28f6d8['onSaveMailQueueChannel']),_0x20615c['onWithoutApply']('mail_queue_waiting_interaction:remove',_0x28f6d8['onRemoveMailQueueChannel']),_0x4711d3[_0x158ad6(0x1af7)][_0x158ad6(0xaea)]()['$promise']['then'](function(_0x45010b){const _0xfcaa59=_0x158ad6;_0x28f6d8[_0xfcaa59(0x2838)]=_0x45010b?_0x3f65c0()['keyBy'](_0x45010b['rows']?_0x45010b[_0xfcaa59(0x19c7)]:[],'id'):{};})[_0x158ad6(0x146b)](function(){const _0x30b6cc=_0x158ad6;return _0x4711d3[_0x30b6cc(0xe7b)][_0x30b6cc(0xc53)]({'id':_0x26cb7a[_0x30b6cc(0xb12)]()['id'],'channel':_0x30b6cc(0x56b)})['$promise'];})[_0x158ad6(0x146b)](function(_0x175e5c){const _0xc4ed79=_0x158ad6;return _0x28f6d8['myQueues']=_0x175e5c[_0xc4ed79(0x19c7)],_0x4711d3[_0xc4ed79(0x1af7)]['getMailQueuesWaitingInteractions']()[_0xc4ed79(0x2945)];})[_0x158ad6(0x146b)](function(_0x20c9e4){const _0x57b370=_0x158ad6,_0x1a85ff=_0x3f65c0()['filter'](_0x20c9e4[_0x57b370(0x19c7)],function(_0x5bab73){const _0x3e9496=_0x57b370;return _0x3f65c0()[_0x3e9496(0xa4e)](_0x28f6d8[_0x3e9496(0x1794)],{'id':_0x5bab73[_0x3e9496(0x1c2a)]});});_0x20c9e4[_0x57b370(0x19c7)]=_0x1a85ff,_0x20c9e4[_0x57b370(0x51c)]=_0x1a85ff[_0x57b370(0x402)],_0x3f65c0()[_0x57b370(0x168d)](_0x28f6d8[_0x57b370(0x1b0f)],_0x20c9e4?_0x3f65c0()[_0x57b370(0x194)](_0x20c9e4[_0x57b370(0x19c7)]?_0x20c9e4['rows']:[],'id'):{});})[_0x158ad6(0x129e)](function(_0x2337b4){console['error'](_0x2337b4);})[_0x158ad6(0x1ec6)](function(){const _0x4be8f5=_0x158ad6;for(let _0x1b4984=0x0;_0x1b4984<_0x28f6d8[_0x4be8f5(0xd98)][_0x4be8f5(0x402)];_0x1b4984+=0x1){delete _0x28f6d8[_0x4be8f5(0x1b0f)][_0x28f6d8[_0x4be8f5(0xd98)][_0x1b4984]];}_0x572830=![],_0x28f6d8[_0x4be8f5(0xd98)]=[],_0x54a9a5(),_0x1c504a();});function _0x1c504a(){const _0x3926a6=_0x158ad6,_0x45d80d=(_0x28f6d8['queryChannels']['page']-0x1)*_0x28f6d8[_0x3926a6(0x219)][_0x3926a6(0x221e)];_0x28f6d8['paginatedInteractions']=_0x3f65c0()[_0x3926a6(0x979)](_0x28f6d8[_0x3926a6(0x1b0f)],['joinAt'],[_0x3926a6(0x2517)]),_0x28f6d8['interactions']=_0x3f65c0()[_0x3926a6(0x854)](_0x28f6d8['paginatedInteractions'],_0x45d80d)['slice'](0x0,_0x28f6d8['queryChannels']['limit']);}function _0x20ba9f(_0x1d80a1){const _0xbd67b4=_0x158ad6;_0x28f6d8[_0xbd67b4(0x1d88)]=_0x1d80a1[_0xbd67b4(0x51c)]?_0x1d80a1['count']:0x0,_0x28f6d8[_0xbd67b4(0x2318)]=_0x1d80a1?_0x3f65c0()['keyBy'](_0x1d80a1[_0xbd67b4(0x19c7)]?_0x1d80a1[_0xbd67b4(0x19c7)]:[],'id'):{},_0x585e9f();}function _0x54a9a5(){const _0x563080=_0x158ad6;_0x28f6d8['query'][_0x563080(0x145d)]=(_0x28f6d8[_0x563080(0x1a56)][_0x563080(0x844)]-0x1)*_0x28f6d8[_0x563080(0x1a56)]['limit'],_0x28f6d8[_0x563080(0xb9c)]=_0x4711d3[_0x563080(0xe7b)][_0x563080(0xc53)](_0x28f6d8[_0x563080(0x1a56)],_0x20ba9f)[_0x563080(0x2945)];}let _0x515934=!![],_0x5994d9=0x1;_0x112c5a[_0x158ad6(0x21e8)]('vm_dc.query.filter',function(_0x15cea2,_0x590c22){const _0x19f5ba=_0x158ad6;_0x515934?_0x19277c(function(){_0x515934=![];}):(!_0x590c22&&(_0x5994d9=_0x28f6d8[_0x19f5ba(0x1a56)]['page']),_0x15cea2!==_0x590c22&&(_0x28f6d8['query'][_0x19f5ba(0x844)]=0x1),!_0x15cea2&&(_0x28f6d8[_0x19f5ba(0x1a56)][_0x19f5ba(0x844)]=_0x5994d9),_0x28f6d8[_0x19f5ba(0xaea)]());});function _0x3e8063(_0xfcff8d){return _0x3f65c0()['size'](_0xfcff8d);}function _0x585e9f(){_0x3f65c0()['forIn'](_0x28f6d8['mailQueues'],function(_0x54640b,_0x59bd08){const _0x448ef1=a0_0x3bb9;_0x28f6d8[_0x448ef1(0x2838)][_0x59bd08]&&(_0x28f6d8[_0x448ef1(0x2318)][_0x59bd08][_0x448ef1(0x12a3)]=_0x28f6d8['rpcMailQueues'][_0x59bd08]['waiting']||0x0);});}function _0x17b4db(_0x48bcf0){const _0x18be09=_0x158ad6;_0x28f6d8[_0x18be09(0x2318)][_0x48bcf0['id']]&&(_0x28f6d8[_0x18be09(0x2838)][_0x48bcf0['id']]&&(_0x3f65c0()['merge'](_0x28f6d8[_0x18be09(0x2838)][_0x48bcf0['id']],_0x3f65c0()[_0x18be09(0x40e)](_0x48bcf0,_0x2ac1bb)),_0x3f65c0()[_0x18be09(0x168d)](_0x28f6d8[_0x18be09(0x2318)][_0x48bcf0['id']],_0x3f65c0()['pick'](_0x48bcf0,_0x2ac1bb))));}function _0x3d9bd4(_0x220755){const _0x2442d3=_0x158ad6;!_0x3f65c0()[_0x2442d3(0x1b36)](_0x220755)&&(_0x28f6d8['rpcMailQueues'][_0x220755['id']]=_0x3f65c0()[_0x2442d3(0x40e)](_0x220755,_0x2ac1bb));}function _0x2fdb81(_0x83b1c2){const _0x5370ad=_0x158ad6;!_0x3f65c0()[_0x5370ad(0x1b36)](_0x83b1c2)&&(_0x28f6d8['rpcMailQueues'][_0x83b1c2['id']]&&_0x3f65c0()[_0x5370ad(0x168d)](_0x28f6d8['rpcMailQueues'][_0x83b1c2['id']],_0x3f65c0()[_0x5370ad(0x40e)](_0x83b1c2,_0x2ac1bb)),_0x28f6d8[_0x5370ad(0x2318)][_0x83b1c2['id']]&&_0x3f65c0()[_0x5370ad(0x168d)](_0x28f6d8[_0x5370ad(0x2318)][_0x83b1c2['id']],_0x3f65c0()[_0x5370ad(0x40e)](_0x83b1c2,_0x2ac1bb)));}function _0x2265a2(_0x113784){const _0xe21fe2=_0x158ad6;!_0x3f65c0()[_0xe21fe2(0x1b36)](_0x113784)&&(delete _0x28f6d8['rpcMailQueues'][_0x113784['id']],delete _0x28f6d8[_0xe21fe2(0x2318)][_0x113784['id']]);}function _0x13d431(_0x5c061a){const _0x1bef08=_0x158ad6;_0x3f65c0()[_0x1bef08(0x13dc)](_0x5c061a[_0x1bef08(0xea2)])===_0x26cb7a[_0x1bef08(0xb12)]()['id']&&_0x28f6d8[_0x1bef08(0xaea)]();}function _0x4ea54c(_0x1536f8){const _0x3b0fa2=_0x158ad6;_0x3f65c0()['toInteger'](_0x1536f8[_0x3b0fa2(0xea2)])===_0x26cb7a[_0x3b0fa2(0xb12)]()['id']&&_0x28f6d8['getMailQueues']();}function _0x264a4b(_0x166b6c){_0x28f6d8['mailQueues'][_0x166b6c['queue_id']]&&(_0x28f6d8['rpcMailQueuesWaitingInteractions'][_0x166b6c['id']]=_0x166b6c,_0x1c504a());}function _0x150db4(_0x33d214){const _0x31be62=_0x158ad6;delete _0x28f6d8['rpcMailQueuesWaitingInteractions'][_0x33d214['id']],_0x572830&&_0x28f6d8[_0x31be62(0xd98)][_0x31be62(0x1f47)](_0x33d214['id']),_0x1c504a();}function _0xd68ada(_0x24056c){const _0x5e2ca6=_0x158ad6;switch(_0x24056c){case _0x5e2ca6(0xa7f):return _0x5e2ca6(0xde9);case'mail':return _0x5e2ca6(0x463);case _0x5e2ca6(0x929):return'orange-bg';case _0x5e2ca6(0xff9):return _0x5e2ca6(0x1ee7);case _0x5e2ca6(0x7d9):return _0x5e2ca6(0x1d5b);case'fax':return _0x5e2ca6(0x18f6);default:return _0x5e2ca6(0x179b);}}_0x112c5a[_0x158ad6(0x16ad)](_0x158ad6(0x116f),function(){const _0x2f3ebb=_0x158ad6;_0x20615c['removeAllListeners'](_0x2f3ebb(0x1a8b)),_0x20615c[_0x2f3ebb(0x1c5f)](_0x2f3ebb(0x64b)),_0x20615c['removeAllListeners'](_0x2f3ebb(0x239)),_0x20615c[_0x2f3ebb(0x1c5f)](_0x2f3ebb(0xbd2)),_0x20615c[_0x2f3ebb(0x1c5f)](_0x2f3ebb(0x1150)),_0x20615c['removeAllListeners'](_0x2f3ebb(0x4d1)),_0x20615c[_0x2f3ebb(0x1c5f)](_0x2f3ebb(0x2334)),_0x20615c['removeAllListeners'](_0x2f3ebb(0xc91));});}const _0x3a12fd=_0x212ebe;;_0x1fc10c[_0x313a4d(0x11c2)]=['$scope',_0x313a4d(0x1abe),'$mdDialog','$document',_0x313a4d(0x1aa9),_0x313a4d(0x214b),_0x313a4d(0x247f),_0x313a4d(0xa87),_0x313a4d(0x279d)];function _0x1fc10c(_0x49806c,_0x17d65b,_0x3ba0c9,_0x6d9a06,_0x2e3588,_0x3605d9,_0x3cc3fc,_0x5787e4,_0x115345){const _0x45e454=_0x313a4d,_0x3b7aea=this,_0x39aa3c=['id',_0x45e454(0x19eb),_0x45e454(0x18dd),_0x45e454(0x12a3)];let _0x319340=!![];_0x3b7aea[_0x45e454(0x1ebb)]={},_0x3b7aea[_0x45e454(0xdb7)]=0x0,_0x3b7aea[_0x45e454(0x2264)]={},_0x3b7aea[_0x45e454(0x24cb)]=[],_0x3b7aea[_0x45e454(0x2022)]=[],_0x3b7aea[_0x45e454(0x71b)]={},_0x3b7aea['query']={'id':_0x5787e4[_0x45e454(0xb12)]()['id'],'channel':_0x45e454(0x7d9),'fields':_0x45e454(0x255b),'limit':0xa,'page':0x1},_0x3b7aea[_0x45e454(0x219)]={'limit':0xa,'page':0x1},_0x3b7aea[_0x45e454(0x1c75)]=_0xdb0567,_0x3b7aea[_0x45e454(0x28d2)]=_0x3718c1,_0x3b7aea[_0x45e454(0x1d9e)]=_0x49bdb5,_0x3b7aea[_0x45e454(0x17e5)]=_0x43baf0,_0x3b7aea[_0x45e454(0x51d)]=_0x5d343a,_0x3b7aea[_0x45e454(0x2606)]=_0x1c9be1,_0x3b7aea[_0x45e454(0x2820)]=_0x3c2e48,_0x3b7aea[_0x45e454(0x20b2)]=_0x36ab77,_0x3b7aea[_0x45e454(0x1c94)]=_0x2f3e9a,_0x3b7aea[_0x45e454(0x13c1)]=_0x245d12,_0x3b7aea['onRemoveUserOpenchannelQueue']=_0x16a738,_0x3b7aea[_0x45e454(0x10f7)]=_0x6da7b7,_0x3b7aea[_0x45e454(0x1200)]=_0x157b7f,_0x115345['onWithoutApply'](_0x45e454(0x1d9d),_0x3b7aea[_0x45e454(0x2606)]),_0x115345['onWithoutApply'](_0x45e454(0xbdc),_0x3b7aea[_0x45e454(0x2820)]),_0x115345[_0x45e454(0x13b7)]('openchannelQueue:update',_0x3b7aea[_0x45e454(0x20b2)]),_0x115345[_0x45e454(0x13b7)](_0x45e454(0x18fd),_0x3b7aea[_0x45e454(0x1c94)]),_0x115345[_0x45e454(0x13b7)](_0x45e454(0x27e),_0x3b7aea['onSaveUserOpenchannelQueue']),_0x115345[_0x45e454(0x13b7)](_0x45e454(0x594),_0x3b7aea[_0x45e454(0xca6)]),_0x115345[_0x45e454(0x13b7)](_0x45e454(0xbe0),_0x3b7aea['onSaveOpenchannelQueueChannel']),_0x115345['onWithoutApply'](_0x45e454(0x9a8),_0x3b7aea[_0x45e454(0x1200)]),_0x3cc3fc[_0x45e454(0x1af7)][_0x45e454(0x28d2)]()[_0x45e454(0x2945)][_0x45e454(0x146b)](function(_0xbad75a){const _0x85b5b9=_0x45e454;_0x3b7aea[_0x85b5b9(0x2264)]=_0xbad75a?_0x3f65c0()[_0x85b5b9(0x194)](_0xbad75a['rows']?_0xbad75a[_0x85b5b9(0x19c7)]:[],'id'):{};})[_0x45e454(0x146b)](function(){const _0x263223=_0x45e454;return _0x3cc3fc['user']['getQueues']({'id':_0x5787e4[_0x263223(0xb12)]()['id'],'channel':'openchannel'})[_0x263223(0x2945)];})[_0x45e454(0x146b)](function(_0x2dd0a7){const _0x540fc3=_0x45e454;return _0x3b7aea[_0x540fc3(0x1794)]=_0x2dd0a7[_0x540fc3(0x19c7)],_0x3cc3fc[_0x540fc3(0x1af7)]['getOpenchannelQueuesWaitingInteractions']()[_0x540fc3(0x2945)];})['then'](function(_0x431101){const _0x2a5768=_0x45e454,_0x364fdf=_0x3f65c0()[_0x2a5768(0x1dd6)](_0x431101[_0x2a5768(0x19c7)],function(_0x5da266){const _0x27ffe3=_0x2a5768;return _0x3f65c0()[_0x27ffe3(0xa4e)](_0x3b7aea[_0x27ffe3(0x1794)],{'id':_0x5da266[_0x27ffe3(0x1c2a)]});});_0x431101[_0x2a5768(0x19c7)]=_0x364fdf,_0x431101['count']=_0x364fdf['length'],_0x3f65c0()['merge'](_0x3b7aea['rpcOpenchannelQueuesWaitingInteractions'],_0x431101?_0x3f65c0()['keyBy'](_0x431101[_0x2a5768(0x19c7)]?_0x431101[_0x2a5768(0x19c7)]:[],'id'):{});})['catch'](function(_0x6cbd6){const _0x5d8e8e=_0x45e454;console[_0x5d8e8e(0x1980)](_0x6cbd6);})['finally'](function(){const _0x110710=_0x45e454;for(let _0x5f18c4=0x0;_0x5f18c4<_0x3b7aea[_0x110710(0x2022)][_0x110710(0x402)];_0x5f18c4+=0x1){delete _0x3b7aea[_0x110710(0x71b)][_0x3b7aea['deleteOpenchannelQueuesWaitingInteractions'][_0x5f18c4]];}_0x319340=![],_0x3b7aea[_0x110710(0x2022)]=[],_0x3718c1(),_0x5d343a();});function _0x5d343a(){const _0x4e2a1c=_0x45e454,_0x55d8b0=(_0x3b7aea['queryChannels'][_0x4e2a1c(0x844)]-0x1)*_0x3b7aea[_0x4e2a1c(0x219)][_0x4e2a1c(0x221e)];_0x3b7aea[_0x4e2a1c(0x24cb)]=_0x3f65c0()['orderBy'](_0x3b7aea[_0x4e2a1c(0x71b)],[_0x4e2a1c(0x11f0)],[_0x4e2a1c(0x2517)]),_0x3b7aea[_0x4e2a1c(0x1118)]=_0x3f65c0()[_0x4e2a1c(0x854)](_0x3b7aea[_0x4e2a1c(0x24cb)],_0x55d8b0)['slice'](0x0,_0x3b7aea['queryChannels'][_0x4e2a1c(0x221e)]);}function _0xdb0567(_0x3a2f72){const _0x58cc63=_0x45e454;_0x3b7aea[_0x58cc63(0xdb7)]=_0x3a2f72['count']?_0x3a2f72[_0x58cc63(0x51c)]:0x0,_0x3b7aea[_0x58cc63(0x1ebb)]=_0x3a2f72?_0x3f65c0()[_0x58cc63(0x194)](_0x3a2f72['rows']?_0x3a2f72[_0x58cc63(0x19c7)]:[],'id'):{},_0x1d91e3();}function _0x3718c1(){const _0x1af0b5=_0x45e454;_0x3b7aea[_0x1af0b5(0x1a56)][_0x1af0b5(0x145d)]=(_0x3b7aea[_0x1af0b5(0x1a56)]['page']-0x1)*_0x3b7aea['query']['limit'],_0x3b7aea['promise']=_0x3cc3fc[_0x1af0b5(0xe7b)]['getQueues'](_0x3b7aea[_0x1af0b5(0x1a56)],_0xdb0567)[_0x1af0b5(0x2945)];}let _0x15be74=!![],_0x3583b9=0x1;_0x49806c[_0x45e454(0x21e8)](_0x45e454(0x117f),function(_0x15b426,_0x591087){const _0x464e01=_0x45e454;_0x15be74?_0x17d65b(function(){_0x15be74=![];}):(!_0x591087&&(_0x3583b9=_0x3b7aea[_0x464e01(0x1a56)][_0x464e01(0x844)]),_0x15b426!==_0x591087&&(_0x3b7aea['query'][_0x464e01(0x844)]=0x1),!_0x15b426&&(_0x3b7aea[_0x464e01(0x1a56)]['page']=_0x3583b9),_0x3b7aea[_0x464e01(0x28d2)]());});function _0x49bdb5(_0x4439a2){const _0x33616b=_0x45e454;return _0x3f65c0()[_0x33616b(0x4cc)](_0x4439a2);}function _0x1d91e3(){const _0x3af089=_0x45e454;_0x3f65c0()['forIn'](_0x3b7aea[_0x3af089(0x1ebb)],function(_0x1d9f35,_0x39699f){const _0x2484b1=_0x3af089;_0x3b7aea[_0x2484b1(0x2264)][_0x39699f]&&(_0x3b7aea[_0x2484b1(0x1ebb)][_0x39699f][_0x2484b1(0x12a3)]=_0x3b7aea[_0x2484b1(0x2264)][_0x39699f][_0x2484b1(0x12a3)]||0x0);});}function _0x1c9be1(_0x16c618){const _0x4469f7=_0x45e454;_0x3b7aea[_0x4469f7(0x1ebb)][_0x16c618['id']]&&(_0x3b7aea['rpcOpenchannelQueues'][_0x16c618['id']]&&(_0x3f65c0()[_0x4469f7(0x168d)](_0x3b7aea['rpcOpenchannelQueues'][_0x16c618['id']],_0x3f65c0()[_0x4469f7(0x40e)](_0x16c618,_0x39aa3c)),_0x3f65c0()['merge'](_0x3b7aea[_0x4469f7(0x1ebb)][_0x16c618['id']],_0x3f65c0()[_0x4469f7(0x40e)](_0x16c618,_0x39aa3c))));}function _0x3c2e48(_0x5374f7){const _0x17895d=_0x45e454;!_0x3f65c0()[_0x17895d(0x1b36)](_0x5374f7)&&(_0x3b7aea[_0x17895d(0x2264)][_0x5374f7['id']]=_0x3f65c0()[_0x17895d(0x40e)](_0x5374f7,_0x39aa3c));}function _0x36ab77(_0x4c5b0f){const _0x1884b6=_0x45e454;!_0x3f65c0()[_0x1884b6(0x1b36)](_0x4c5b0f)&&(_0x3b7aea[_0x1884b6(0x2264)][_0x4c5b0f['id']]&&_0x3f65c0()['merge'](_0x3b7aea[_0x1884b6(0x2264)][_0x4c5b0f['id']],_0x3f65c0()[_0x1884b6(0x40e)](_0x4c5b0f,_0x39aa3c)),_0x3b7aea[_0x1884b6(0x1ebb)][_0x4c5b0f['id']]&&_0x3f65c0()[_0x1884b6(0x168d)](_0x3b7aea[_0x1884b6(0x1ebb)][_0x4c5b0f['id']],_0x3f65c0()['pick'](_0x4c5b0f,_0x39aa3c)));}function _0x2f3e9a(_0xb1262b){const _0x5782a0=_0x45e454;!_0x3f65c0()['isNil'](_0xb1262b)&&(delete _0x3b7aea[_0x5782a0(0x2264)][_0xb1262b['id']],delete _0x3b7aea[_0x5782a0(0x1ebb)][_0xb1262b['id']]);}function _0x245d12(_0x2a5410){const _0x1cd785=_0x45e454;_0x3f65c0()[_0x1cd785(0x13dc)](_0x2a5410[_0x1cd785(0xea2)])===_0x5787e4['getCurrentUser']()['id']&&_0x3b7aea[_0x1cd785(0x28d2)]();}function _0x16a738(_0x2de55b){const _0x5972f4=_0x45e454;_0x3f65c0()[_0x5972f4(0x13dc)](_0x2de55b[_0x5972f4(0xea2)])===_0x5787e4[_0x5972f4(0xb12)]()['id']&&_0x3b7aea[_0x5972f4(0x28d2)]();}function _0x6da7b7(_0xb15a02){const _0x487e8e=_0x45e454;_0x3b7aea[_0x487e8e(0x1ebb)][_0xb15a02[_0x487e8e(0x1c2a)]]&&(_0x3b7aea[_0x487e8e(0x71b)][_0xb15a02['id']]=_0xb15a02,_0x5d343a());}function _0x157b7f(_0x3d033f){const _0x4827cf=_0x45e454;delete _0x3b7aea[_0x4827cf(0x71b)][_0x3d033f['id']],_0x319340&&_0x3b7aea['deleteOpenchannelQueuesWaitingInteractions']['push'](_0x3d033f['id']),_0x5d343a();}function _0x43baf0(_0x5020d8){const _0x127ed1=_0x45e454;switch(_0x5020d8){case'chat':return _0x127ed1(0xde9);case _0x127ed1(0x56b):return _0x127ed1(0x463);case _0x127ed1(0x929):return'orange-bg';case _0x127ed1(0xff9):return'lime-A700-bg';case _0x127ed1(0x7d9):return _0x127ed1(0x1d5b);case _0x127ed1(0x22d9):return _0x127ed1(0x18f6);default:return _0x127ed1(0x179b);}}_0x49806c[_0x45e454(0x16ad)]('$destroy',function(){const _0x752e70=_0x45e454;_0x115345['removeAllListeners']('openchannel_queue:save'),_0x115345[_0x752e70(0x1c5f)](_0x752e70(0xbdc)),_0x115345[_0x752e70(0x1c5f)](_0x752e70(0x2223)),_0x115345[_0x752e70(0x1c5f)](_0x752e70(0x18fd)),_0x115345[_0x752e70(0x1c5f)](_0x752e70(0x27e)),_0x115345[_0x752e70(0x1c5f)](_0x752e70(0x594)),_0x115345[_0x752e70(0x1c5f)](_0x752e70(0xbe0)),_0x115345[_0x752e70(0x1c5f)](_0x752e70(0x9a8));});}const _0x3a23e3=_0x1fc10c;;_0x3ba691[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1abe),'$mdDialog','$document',_0x313a4d(0x1aa9),_0x313a4d(0x214b),_0x313a4d(0x247f),_0x313a4d(0xa87),_0x313a4d(0x279d)];function _0x3ba691(_0x5b1327,_0x1ed896,_0x98ba6d,_0x1fca33,_0x5ccaaf,_0x5e54a0,_0x22604f,_0x47e392,_0x551f05){const _0x566728=_0x313a4d,_0xbf861b=this,_0x10d191=['id',_0x566728(0x19eb),_0x566728(0x18dd),_0x566728(0x12a3)];let _0x1e1c0a=!![];_0xbf861b[_0x566728(0x1bf4)]={},_0xbf861b[_0x566728(0x16bd)]=0x0,_0xbf861b['rpcSmsQueues']={},_0xbf861b[_0x566728(0x24cb)]=[],_0xbf861b['deleteSmsQueuesWaitingInteractions']=[],_0xbf861b['rpcSmsQueuesWaitingInteractions']={},_0xbf861b[_0x566728(0x1a56)]={'id':_0x47e392[_0x566728(0xb12)]()['id'],'channel':_0x566728(0x929),'fields':_0x566728(0x255b),'limit':0xa,'page':0x1},_0xbf861b['queryChannels']={'limit':0xa,'page':0x1},_0xbf861b[_0x566728(0x1c75)]=_0x1e5a13,_0xbf861b[_0x566728(0x20c3)]=_0x2091d8,_0xbf861b['getSize']=_0xe356d0,_0xbf861b['getColorByChannel']=_0x28e738,_0xbf861b[_0x566728(0x51d)]=_0x52d6a0,_0xbf861b['onSaveQueue']=_0x3f08dd,_0xbf861b[_0x566728(0x1517)]=_0x239975,_0xbf861b[_0x566728(0x38b)]=_0x107dfd,_0xbf861b['onRemoveSmsQueue']=_0xddc569,_0xbf861b['onSaveUserSmsQueue']=_0x34a17f,_0xbf861b[_0x566728(0x720)]=_0xd191f2,_0xbf861b[_0x566728(0x4b9)]=_0xc2dc9,_0xbf861b['onRemoveSmsQueueChannel']=_0x2832a5,_0x551f05['onWithoutApply'](_0x566728(0x2066),_0xbf861b['onSaveQueue']),_0x551f05['onWithoutApply']('smsQueue:save',_0xbf861b[_0x566728(0x1517)]),_0x551f05[_0x566728(0x13b7)]('smsQueue:update',_0xbf861b['onUpdateSmsQueue']),_0x551f05[_0x566728(0x13b7)](_0x566728(0x1f97),_0xbf861b[_0x566728(0x14b)]),_0x551f05[_0x566728(0x13b7)](_0x566728(0x1ba4),_0xbf861b[_0x566728(0x1035)]),_0x551f05[_0x566728(0x13b7)](_0x566728(0xa5b),_0xbf861b[_0x566728(0x720)]),_0x551f05[_0x566728(0x13b7)](_0x566728(0x2637),_0xbf861b[_0x566728(0x4b9)]),_0x551f05[_0x566728(0x13b7)](_0x566728(0xa91),_0xbf861b[_0x566728(0x2405)]),_0x22604f[_0x566728(0x1af7)][_0x566728(0x20c3)]()[_0x566728(0x2945)][_0x566728(0x146b)](function(_0x457443){const _0xe41265=_0x566728;_0xbf861b[_0xe41265(0x1e25)]=_0x457443?_0x3f65c0()[_0xe41265(0x194)](_0x457443[_0xe41265(0x19c7)]?_0x457443[_0xe41265(0x19c7)]:[],'id'):{};})[_0x566728(0x146b)](function(){const _0x38e2c1=_0x566728;return _0x22604f[_0x38e2c1(0xe7b)][_0x38e2c1(0xc53)]({'id':_0x47e392['getCurrentUser']()['id'],'channel':_0x38e2c1(0x929)})[_0x38e2c1(0x2945)];})[_0x566728(0x146b)](function(_0x1901b8){const _0x49e1a1=_0x566728;return _0xbf861b[_0x49e1a1(0x1794)]=_0x1901b8[_0x49e1a1(0x19c7)],_0x22604f[_0x49e1a1(0x1af7)][_0x49e1a1(0x11d0)]()[_0x49e1a1(0x2945)];})[_0x566728(0x146b)](function(_0x3428fd){const _0x2a76b8=_0x566728,_0x1719f8=_0x3f65c0()[_0x2a76b8(0x1dd6)](_0x3428fd[_0x2a76b8(0x19c7)],function(_0x3118d7){const _0x5cdf56=_0x2a76b8;return _0x3f65c0()[_0x5cdf56(0xa4e)](_0xbf861b['myQueues'],{'id':_0x3118d7[_0x5cdf56(0x1c2a)]});});_0x3428fd[_0x2a76b8(0x19c7)]=_0x1719f8,_0x3428fd[_0x2a76b8(0x51c)]=_0x1719f8[_0x2a76b8(0x402)],_0x3f65c0()[_0x2a76b8(0x168d)](_0xbf861b['rpcSmsQueuesWaitingInteractions'],_0x3428fd?_0x3f65c0()['keyBy'](_0x3428fd['rows']?_0x3428fd['rows']:[],'id'):{});})[_0x566728(0x129e)](function(_0x4c7d91){const _0x1f0040=_0x566728;console[_0x1f0040(0x1980)](_0x4c7d91);})['finally'](function(){const _0x41b77c=_0x566728;for(let _0x157026=0x0;_0x157026<_0xbf861b[_0x41b77c(0x9c4)][_0x41b77c(0x402)];_0x157026+=0x1){delete _0xbf861b[_0x41b77c(0x1d3c)][_0xbf861b[_0x41b77c(0x9c4)][_0x157026]];}_0x1e1c0a=![],_0xbf861b[_0x41b77c(0x9c4)]=[],_0x2091d8(),_0x52d6a0();});function _0x52d6a0(){const _0x2f81c6=_0x566728,_0xde81cb=(_0xbf861b[_0x2f81c6(0x219)]['page']-0x1)*_0xbf861b['queryChannels'][_0x2f81c6(0x221e)];_0xbf861b[_0x2f81c6(0x24cb)]=_0x3f65c0()[_0x2f81c6(0x979)](_0xbf861b[_0x2f81c6(0x1d3c)],[_0x2f81c6(0x11f0)],['desc']),_0xbf861b['interactions']=_0x3f65c0()[_0x2f81c6(0x854)](_0xbf861b[_0x2f81c6(0x24cb)],_0xde81cb)[_0x2f81c6(0x1298)](0x0,_0xbf861b['queryChannels'][_0x2f81c6(0x221e)]);}function _0x1e5a13(_0x59a437){const _0x220dbb=_0x566728;_0xbf861b[_0x220dbb(0x16bd)]=_0x59a437[_0x220dbb(0x51c)]?_0x59a437[_0x220dbb(0x51c)]:0x0,_0xbf861b[_0x220dbb(0x1bf4)]=_0x59a437?_0x3f65c0()[_0x220dbb(0x194)](_0x59a437[_0x220dbb(0x19c7)]?_0x59a437[_0x220dbb(0x19c7)]:[],'id'):{},_0x2cb0f6();}function _0x2091d8(){const _0x1ff0ec=_0x566728;_0xbf861b['query'][_0x1ff0ec(0x145d)]=(_0xbf861b[_0x1ff0ec(0x1a56)]['page']-0x1)*_0xbf861b[_0x1ff0ec(0x1a56)][_0x1ff0ec(0x221e)],_0xbf861b[_0x1ff0ec(0xb9c)]=_0x22604f[_0x1ff0ec(0xe7b)][_0x1ff0ec(0xc53)](_0xbf861b[_0x1ff0ec(0x1a56)],_0x1e5a13)[_0x1ff0ec(0x2945)];}let _0x40c5df=!![],_0x47060b=0x1;_0x5b1327[_0x566728(0x21e8)]('vm_dc.query.filter',function(_0x22903f,_0x4066b9){const _0x45194a=_0x566728;_0x40c5df?_0x1ed896(function(){_0x40c5df=![];}):(!_0x4066b9&&(_0x47060b=_0xbf861b[_0x45194a(0x1a56)][_0x45194a(0x844)]),_0x22903f!==_0x4066b9&&(_0xbf861b[_0x45194a(0x1a56)][_0x45194a(0x844)]=0x1),!_0x22903f&&(_0xbf861b[_0x45194a(0x1a56)][_0x45194a(0x844)]=_0x47060b),_0xbf861b[_0x45194a(0x20c3)]());});function _0xe356d0(_0x5a8a02){return _0x3f65c0()['size'](_0x5a8a02);}function _0x2cb0f6(){const _0x2c1e05=_0x566728;_0x3f65c0()[_0x2c1e05(0x1a04)](_0xbf861b[_0x2c1e05(0x1bf4)],function(_0x498e62,_0x165d9c){const _0x32d178=_0x2c1e05;_0xbf861b['rpcSmsQueues'][_0x165d9c]&&(_0xbf861b[_0x32d178(0x1bf4)][_0x165d9c][_0x32d178(0x12a3)]=_0xbf861b[_0x32d178(0x1e25)][_0x165d9c]['waiting']||0x0);});}function _0x3f08dd(_0x3e9252){const _0x40e725=_0x566728;_0xbf861b[_0x40e725(0x1bf4)][_0x3e9252['id']]&&(_0xbf861b[_0x40e725(0x1e25)][_0x3e9252['id']]&&(_0x3f65c0()[_0x40e725(0x168d)](_0xbf861b[_0x40e725(0x1e25)][_0x3e9252['id']],_0x3f65c0()['pick'](_0x3e9252,_0x10d191)),_0x3f65c0()[_0x40e725(0x168d)](_0xbf861b[_0x40e725(0x1bf4)][_0x3e9252['id']],_0x3f65c0()[_0x40e725(0x40e)](_0x3e9252,_0x10d191))));}function _0x239975(_0x571944){const _0x7eccc8=_0x566728;!_0x3f65c0()[_0x7eccc8(0x1b36)](_0x571944)&&(_0xbf861b['rpcSmsQueues'][_0x571944['id']]=_0x3f65c0()['pick'](_0x571944,_0x10d191));}function _0x107dfd(_0xac9b65){const _0x21062b=_0x566728;!_0x3f65c0()[_0x21062b(0x1b36)](_0xac9b65)&&(_0xbf861b['rpcSmsQueues'][_0xac9b65['id']]&&_0x3f65c0()[_0x21062b(0x168d)](_0xbf861b[_0x21062b(0x1e25)][_0xac9b65['id']],_0x3f65c0()[_0x21062b(0x40e)](_0xac9b65,_0x10d191)),_0xbf861b['smsQueues'][_0xac9b65['id']]&&_0x3f65c0()[_0x21062b(0x168d)](_0xbf861b[_0x21062b(0x1bf4)][_0xac9b65['id']],_0x3f65c0()['pick'](_0xac9b65,_0x10d191)));}function _0xddc569(_0x16ab84){const _0x3fbba0=_0x566728;!_0x3f65c0()[_0x3fbba0(0x1b36)](_0x16ab84)&&(delete _0xbf861b['rpcSmsQueues'][_0x16ab84['id']],delete _0xbf861b[_0x3fbba0(0x1bf4)][_0x16ab84['id']]);}function _0x34a17f(_0x5469b9){const _0x2ef3b5=_0x566728;_0x3f65c0()[_0x2ef3b5(0x13dc)](_0x5469b9['UserId'])===_0x47e392['getCurrentUser']()['id']&&_0xbf861b[_0x2ef3b5(0x20c3)]();}function _0xd191f2(_0x461fa5){const _0x4f2a9e=_0x566728;_0x3f65c0()[_0x4f2a9e(0x13dc)](_0x461fa5[_0x4f2a9e(0xea2)])===_0x47e392['getCurrentUser']()['id']&&_0xbf861b[_0x4f2a9e(0x20c3)]();}function _0xc2dc9(_0x718ac7){const _0x283cb0=_0x566728;_0xbf861b[_0x283cb0(0x1bf4)][_0x718ac7[_0x283cb0(0x1c2a)]]&&(_0xbf861b[_0x283cb0(0x1d3c)][_0x718ac7['id']]=_0x718ac7,_0x52d6a0());}function _0x2832a5(_0x21e08c){const _0x159871=_0x566728;delete _0xbf861b[_0x159871(0x1d3c)][_0x21e08c['id']],_0x1e1c0a&&_0xbf861b['deleteSmsQueuesWaitingInteractions']['push'](_0x21e08c['id']),_0x52d6a0();}function _0x28e738(_0x684ee8){const _0x45f5a5=_0x566728;switch(_0x684ee8){case _0x45f5a5(0xa7f):return'green-A700-bg';case _0x45f5a5(0x56b):return _0x45f5a5(0x463);case _0x45f5a5(0x929):return _0x45f5a5(0xd4f);case _0x45f5a5(0xff9):return _0x45f5a5(0x1ee7);case _0x45f5a5(0x7d9):return'amber-A200-bg';case _0x45f5a5(0x22d9):return _0x45f5a5(0x18f6);default:return'white-bg';}}_0x5b1327[_0x566728(0x16ad)](_0x566728(0x116f),function(){const _0x511061=_0x566728;_0x551f05[_0x511061(0x1c5f)](_0x511061(0x2066)),_0x551f05[_0x511061(0x1c5f)](_0x511061(0x1e19)),_0x551f05[_0x511061(0x1c5f)](_0x511061(0xe8)),_0x551f05['removeAllListeners']('smsQueue:remove'),_0x551f05[_0x511061(0x1c5f)](_0x511061(0x1ba4)),_0x551f05[_0x511061(0x1c5f)](_0x511061(0xa5b)),_0x551f05[_0x511061(0x1c5f)](_0x511061(0x2637)),_0x551f05[_0x511061(0x1c5f)]('sms_queue_waiting_interaction:remove');});}const _0x244316=_0x3ba691;;_0x5beac7[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1abe),'$mdDialog','$document','$window',_0x313a4d(0x214b),_0x313a4d(0x247f),'Auth','socket'];function _0x5beac7(_0x255d00,_0xd9ed1d,_0x488ad8,_0x192a05,_0x24bcf9,_0x197400,_0x5aefe9,_0x57aa14,_0x30a672){const _0x4d5a1a=_0x313a4d,_0x14a683=this,_0x358df5=['type',_0x4d5a1a(0x12a3),_0x4d5a1a(0x1a69),_0x4d5a1a(0x1095)];_0x14a683[_0x4d5a1a(0xa27)]={},_0x14a683[_0x4d5a1a(0x2363)]=0x0,_0x14a683['rpcVoiceQueues']={},_0x14a683[_0x4d5a1a(0x1b21)]={},_0x14a683[_0x4d5a1a(0x18e)]={},_0x14a683[_0x4d5a1a(0x2916)]={},_0x14a683['deleteVoiceQueuesChannels']=[],_0x14a683[_0x4d5a1a(0x2412)]=!![],_0x14a683['query']={'id':_0x57aa14[_0x4d5a1a(0xb12)]()['id'],'fields':_0x4d5a1a(0x1285),'channel':'voice','type':_0x4d5a1a(0x7b0),'limit':0xa,'page':0x1},_0x14a683[_0x4d5a1a(0x219)]={'limit':0xa,'page':0x1},_0x14a683[_0x4d5a1a(0x1c75)]=_0x366ed9,_0x14a683[_0x4d5a1a(0x1b21)]=_0x9adb61,_0x14a683[_0x4d5a1a(0x1d9e)]=_0x4b323e,_0x14a683[_0x4d5a1a(0x2606)]=_0x25dff5,_0x14a683['onSaveChannel']=_0xcdf649,_0x14a683[_0x4d5a1a(0x28fd)]=_0x35c7dc,_0x14a683[_0x4d5a1a(0x6ac)]=_0x370fe8,_0x14a683['onUpdateVoiceQueue']=_0x595f4d,_0x14a683[_0x4d5a1a(0x1df7)]=_0x346497,_0x30a672[_0x4d5a1a(0x13b7)](_0x4d5a1a(0x101d),_0x14a683[_0x4d5a1a(0x2606)]),_0x30a672[_0x4d5a1a(0x13b7)](_0x4d5a1a(0x1c8),_0x14a683[_0x4d5a1a(0x663)]),_0x30a672[_0x4d5a1a(0x13b7)](_0x4d5a1a(0x109d),_0x14a683[_0x4d5a1a(0x28fd)]),_0x30a672[_0x4d5a1a(0x13b7)](_0x4d5a1a(0x1d3e),_0x14a683[_0x4d5a1a(0x28fd)]),_0x30a672[_0x4d5a1a(0x13b7)](_0x4d5a1a(0x11a5),_0x14a683[_0x4d5a1a(0x6ac)]),_0x30a672[_0x4d5a1a(0x13b7)]('voiceQueue:remove',_0x14a683[_0x4d5a1a(0x1df7)]),_0x30a672['onWithoutApply'](_0x4d5a1a(0x235b),_0x14a683[_0x4d5a1a(0x1ad)]),_0x5aefe9['user'][_0x4d5a1a(0xc53)](_0x14a683[_0x4d5a1a(0x1a56)])[_0x4d5a1a(0x2945)][_0x4d5a1a(0x146b)](function(_0x367f9e){const _0x3cc8da=_0x4d5a1a;return _0x14a683['myQueues']=_0x367f9e,_0x5aefe9[_0x3cc8da(0x1af7)][_0x3cc8da(0x1b21)]()[_0x3cc8da(0x2945)];})[_0x4d5a1a(0x146b)](function(_0xfdf792){const _0x1cc258=_0x4d5a1a,_0x6d9637=_0xfdf792[_0x1cc258(0x19c7)],_0x29759b=_0x3f65c0()['keyBy'](_0x6d9637,'id');for(let _0x24b174=0x0;_0x24b174<_0x14a683[_0x1cc258(0x1794)][_0x1cc258(0x51c)];_0x24b174++){const _0x5e25c2=_0x14a683[_0x1cc258(0x1794)][_0x1cc258(0x19c7)][_0x24b174];_0x14a683['rpcVoiceQueues'][_0x5e25c2['id']]=_0x29759b[_0x5e25c2['id']];}return _0x5aefe9[_0x1cc258(0x1af7)][_0x1cc258(0x151e)]()[_0x1cc258(0x2945)];})[_0x4d5a1a(0x146b)](function(_0x2179ba){const _0x51db0e=_0x4d5a1a;_0x14a683[_0x51db0e(0x18e)]=_0x2179ba?_0x3f65c0()[_0x51db0e(0x194)](_0x2179ba[_0x51db0e(0x19c7)]?_0x3f65c0()['filter'](_0x2179ba[_0x51db0e(0x19c7)],function(_0x2510b5){const _0x3b0b26=_0x51db0e;if(_0x2510b5['type']==='inbound'&&!_0x2510b5[_0x3b0b26(0x2714)]&&_0x3f65c0()[_0x3b0b26(0xc84)](_0x14a683[_0x3b0b26(0x1794)][_0x3b0b26(0x19c7)],{'name':_0x2510b5[_0x3b0b26(0x1c72)]}))return!![];return![];}):[],_0x51db0e(0x4f8)):{};})['catch'](function(_0xb0eed6){const _0x2405f2=_0x4d5a1a;console[_0x2405f2(0x1980)](_0xb0eed6);})[_0x4d5a1a(0x1ec6)](function(){const _0x41ea05=_0x4d5a1a;_0x3f65c0()[_0x41ea05(0x168d)](_0x14a683[_0x41ea05(0x18e)],_0x14a683['addVoiceQueuesChannels']);for(let _0x5a7bf7=0x0;_0x5a7bf7<_0x14a683['deleteVoiceQueuesChannels'][_0x41ea05(0x402)];_0x5a7bf7+=0x1){delete _0x14a683[_0x41ea05(0x18e)][_0x14a683[_0x41ea05(0x536)][_0x5a7bf7]];}_0x14a683[_0x41ea05(0x2412)]=![],_0x14a683['addVoiceQueuesChannels']={},_0x14a683[_0x41ea05(0x536)]=[],_0x14a683[_0x41ea05(0x1b21)]();});function _0x366ed9(_0x2c6e5e){const _0x558893=_0x4d5a1a;_0x14a683['voiceQueuesTotal']=_0x2c6e5e[_0x558893(0x51c)]?_0x2c6e5e[_0x558893(0x51c)]:0x0,_0x14a683[_0x558893(0xa27)]=_0x2c6e5e?_0x3f65c0()[_0x558893(0x194)](_0x2c6e5e[_0x558893(0x19c7)]?_0x2c6e5e[_0x558893(0x19c7)]:[],'id'):{},_0xe76e00();}function _0x9adb61(){const _0x41e73d=_0x4d5a1a;_0x14a683[_0x41e73d(0x1a56)][_0x41e73d(0x145d)]=(_0x14a683[_0x41e73d(0x1a56)][_0x41e73d(0x844)]-0x1)*_0x14a683[_0x41e73d(0x1a56)][_0x41e73d(0x221e)],_0x14a683[_0x41e73d(0xb9c)]=_0x5aefe9['user'][_0x41e73d(0xc53)](_0x14a683[_0x41e73d(0x1a56)],_0x366ed9)[_0x41e73d(0x2945)];}let _0x58ee34=!![],_0x4c6ef3=0x1;_0x255d00[_0x4d5a1a(0x21e8)](_0x4d5a1a(0x117f),function(_0x48bba7,_0x364b23){const _0x1591a2=_0x4d5a1a;_0x58ee34?_0xd9ed1d(function(){_0x58ee34=![];}):(!_0x364b23&&(_0x4c6ef3=_0x14a683[_0x1591a2(0x1a56)]['page']),_0x48bba7!==_0x364b23&&(_0x14a683[_0x1591a2(0x1a56)][_0x1591a2(0x844)]=0x1),!_0x48bba7&&(_0x14a683[_0x1591a2(0x1a56)]['page']=_0x4c6ef3),_0x14a683[_0x1591a2(0x1b21)]());});function _0x4b323e(_0x174c24){return _0x3f65c0()['size'](_0x174c24);}function _0xe76e00(){const _0x3bd684=_0x4d5a1a;_0x3f65c0()[_0x3bd684(0x1a04)](_0x14a683[_0x3bd684(0xa27)],function(_0x4520ed,_0x407a53){const _0x369966=_0x3bd684;_0x14a683[_0x369966(0x144e)][_0x407a53]&&(_0x14a683['voiceQueues'][_0x407a53][_0x369966(0x12a3)]=_0x14a683[_0x369966(0x144e)][_0x407a53][_0x369966(0x12a3)]||0x0);});}function _0x25dff5(_0x472d14){const _0x2ba15d=_0x4d5a1a;_0x14a683[_0x2ba15d(0xa27)][_0x472d14['id']]&&(_0x14a683[_0x2ba15d(0x144e)][_0x472d14['id']]&&(_0x14a683[_0x2ba15d(0x144e)][_0x472d14['id']]=_0x472d14,_0x3f65c0()[_0x2ba15d(0x168d)](_0x14a683[_0x2ba15d(0xa27)][_0x472d14['id']],_0x3f65c0()[_0x2ba15d(0x40e)](_0x472d14,_0x358df5))));}function _0xcdf649(_0x56c108){const _0x19e1f0=_0x4d5a1a;_0x56c108['type']===_0x19e1f0(0x7b0)&&(_0x56c108[_0x19e1f0(0x2714)]?(delete _0x14a683[_0x19e1f0(0x18e)][_0x56c108[_0x19e1f0(0x4f8)]],_0x14a683[_0x19e1f0(0x2412)]&&_0x14a683['deleteVoiceQueuesChannels']['push'](_0x56c108[_0x19e1f0(0x4f8)])):(_0x14a683['rpcVoiceQueuesChannels'][_0x56c108[_0x19e1f0(0x4f8)]]=_0x56c108,_0x14a683[_0x19e1f0(0x2412)]&&(_0x14a683[_0x19e1f0(0x2916)][_0x56c108[_0x19e1f0(0x4f8)]]=_0x56c108)));}function _0x370fe8(_0x4a2150){const _0x104666=_0x4d5a1a;!_0x3f65c0()[_0x104666(0x1b36)](_0x4a2150)&&(_0x14a683[_0x104666(0x144e)][_0x4a2150['id']]=_0x3f65c0()[_0x104666(0x40e)](_0x4a2150,_0x358df5));}function _0x595f4d(_0x5e82c2){const _0x515ab8=_0x4d5a1a;!_0x3f65c0()[_0x515ab8(0x1b36)](_0x5e82c2)&&(_0x14a683[_0x515ab8(0x144e)][_0x5e82c2['id']]&&_0x3f65c0()[_0x515ab8(0x168d)](_0x14a683[_0x515ab8(0x144e)][_0x5e82c2['id']],_0x3f65c0()[_0x515ab8(0x40e)](_0x5e82c2,_0x358df5)),_0x14a683['voiceQueues'][_0x5e82c2['id']]&&_0x3f65c0()[_0x515ab8(0x168d)](_0x14a683['voiceQueues'][_0x5e82c2['id']],_0x3f65c0()[_0x515ab8(0x40e)](_0x5e82c2,_0x358df5)));}function _0x346497(_0x46f842){const _0x387342=_0x4d5a1a;!_0x3f65c0()['isNil'](_0x46f842)&&(delete _0x14a683[_0x387342(0x144e)][_0x46f842['id']],delete _0x14a683['voiceQueues'][_0x46f842['id']]);}function _0x35c7dc(_0x38b261){const _0x5c88a1=_0x4d5a1a;_0x3f65c0()[_0x5c88a1(0x13dc)](_0x38b261[_0x5c88a1(0xea2)])===_0x57aa14['getCurrentUser']()['id']&&_0x14a683[_0x5c88a1(0x1b21)]();}_0x255d00['$on'](_0x4d5a1a(0x116f),function(){const _0x1e3bb0=_0x4d5a1a;_0x30a672[_0x1e3bb0(0x1c5f)](_0x1e3bb0(0x101d)),_0x30a672[_0x1e3bb0(0x1c5f)](_0x1e3bb0(0x1c8)),_0x30a672[_0x1e3bb0(0x1c5f)]('userVoiceQueue:save'),_0x30a672[_0x1e3bb0(0x1c5f)]('userVoiceQueue:remove'),_0x30a672[_0x1e3bb0(0x1c5f)](_0x1e3bb0(0x11a5)),_0x30a672[_0x1e3bb0(0x1c5f)](_0x1e3bb0(0x235b)),_0x30a672[_0x1e3bb0(0x1c5f)](_0x1e3bb0(0x1907));});}const _0x253d40=_0x5beac7;;_0x466927['$inject']=['$scope',_0x313a4d(0x1abe),'$mdDialog','$document',_0x313a4d(0x1aa9),_0x313a4d(0x214b),'api',_0x313a4d(0xa87),_0x313a4d(0x279d)];function _0x466927(_0x5d0129,_0x44b99a,_0x3c9346,_0x392d21,_0x3218ce,_0x1a4c47,_0x2d68eb,_0x6f25d7,_0x2d0f4e){const _0x43e53e=_0x313a4d,_0x550cf7=this,_0x3e24b2=['id',_0x43e53e(0x19eb),'mapAgentsId','waiting'];let _0x4e32fd=!![];_0x550cf7['whatsappQueues']={},_0x550cf7[_0x43e53e(0x1b37)]=0x0,_0x550cf7['rpcWhatsappQueues']={},_0x550cf7[_0x43e53e(0x24cb)]=[],_0x550cf7[_0x43e53e(0x1c0b)]=[],_0x550cf7[_0x43e53e(0x2391)]={},_0x550cf7[_0x43e53e(0x1a56)]={'id':_0x6f25d7['getCurrentUser']()['id'],'channel':'whatsapp','fields':'id,name,mapAgentsId,waiting','limit':0xa,'page':0x1},_0x550cf7[_0x43e53e(0x219)]={'limit':0xa,'page':0x1},_0x550cf7[_0x43e53e(0x1c75)]=_0x4205ce,_0x550cf7[_0x43e53e(0x1db9)]=_0x12b28e,_0x550cf7[_0x43e53e(0x1d9e)]=_0x7e376a,_0x550cf7[_0x43e53e(0x17e5)]=_0x38fc32,_0x550cf7[_0x43e53e(0x51d)]=_0x361feb,_0x550cf7[_0x43e53e(0x2606)]=_0xad7c14,_0x550cf7[_0x43e53e(0x1f7b)]=_0x22b21a,_0x550cf7['onUpdateWhatsappQueue']=_0x5c0cc9,_0x550cf7[_0x43e53e(0x1a8e)]=_0x242b64,_0x550cf7['onSaveUserWhatsappQueue']=_0x7fec6,_0x550cf7['onRemoveUserWhatsappQueue']=_0x306f56,_0x550cf7[_0x43e53e(0x1c13)]=_0x4e2dcd,_0x550cf7['onRemoveWhatsappQueueChannel']=_0x34ff37,_0x2d0f4e['onWithoutApply']('whatsapp_queue:save',_0x550cf7[_0x43e53e(0x2606)]),_0x2d0f4e['onWithoutApply'](_0x43e53e(0x20bd),_0x550cf7['onSaveWhatsappQueue']),_0x2d0f4e[_0x43e53e(0x13b7)](_0x43e53e(0x235d),_0x550cf7[_0x43e53e(0x4b1)]),_0x2d0f4e[_0x43e53e(0x13b7)](_0x43e53e(0x87e),_0x550cf7[_0x43e53e(0x1a8e)]),_0x2d0f4e['onWithoutApply'](_0x43e53e(0x2779),_0x550cf7[_0x43e53e(0x7b4)]),_0x2d0f4e[_0x43e53e(0x13b7)]('userWhatsappQueue:remove',_0x550cf7[_0x43e53e(0xcbd)]),_0x2d0f4e['onWithoutApply'](_0x43e53e(0x25ec),_0x550cf7[_0x43e53e(0x1c13)]),_0x2d0f4e['onWithoutApply'](_0x43e53e(0x2092),_0x550cf7[_0x43e53e(0x8b3)]),_0x2d68eb[_0x43e53e(0x1af7)]['getWhatsappQueues']()[_0x43e53e(0x2945)][_0x43e53e(0x146b)](function(_0x27ffc5){const _0x1a43ed=_0x43e53e;_0x550cf7[_0x1a43ed(0x1059)]=_0x27ffc5?_0x3f65c0()[_0x1a43ed(0x194)](_0x27ffc5['rows']?_0x27ffc5[_0x1a43ed(0x19c7)]:[],'id'):{};})[_0x43e53e(0x146b)](function(){const _0x4c85b8=_0x43e53e;return _0x2d68eb[_0x4c85b8(0xe7b)][_0x4c85b8(0xc53)]({'id':_0x6f25d7['getCurrentUser']()['id'],'channel':'whatsapp'})[_0x4c85b8(0x2945)];})[_0x43e53e(0x146b)](function(_0x35bdb0){const _0x31b31b=_0x43e53e;return _0x550cf7[_0x31b31b(0x1794)]=_0x35bdb0['rows'],_0x2d68eb[_0x31b31b(0x1af7)][_0x31b31b(0x207b)]()[_0x31b31b(0x2945)];})[_0x43e53e(0x146b)](function(_0x5cb174){const _0x1e0f9c=_0x43e53e,_0x253fe4=_0x3f65c0()[_0x1e0f9c(0x1dd6)](_0x5cb174[_0x1e0f9c(0x19c7)],function(_0x4b3c64){const _0xee644f=_0x1e0f9c;return _0x3f65c0()['includes'](_0x550cf7[_0xee644f(0x1794)],{'id':_0x4b3c64['queue_id']});});_0x5cb174[_0x1e0f9c(0x19c7)]=_0x253fe4,_0x5cb174[_0x1e0f9c(0x51c)]=_0x253fe4['length'],_0x3f65c0()['merge'](_0x550cf7['rpcWhatsappQueuesWaitingInteractions'],_0x5cb174?_0x3f65c0()[_0x1e0f9c(0x194)](_0x5cb174[_0x1e0f9c(0x19c7)]?_0x5cb174[_0x1e0f9c(0x19c7)]:[],'id'):{});})[_0x43e53e(0x129e)](function(_0x100c4d){const _0x3ee7f5=_0x43e53e;console[_0x3ee7f5(0x1980)](_0x100c4d);})[_0x43e53e(0x1ec6)](function(){const _0x12cb86=_0x43e53e;for(let _0x2c6776=0x0;_0x2c6776<_0x550cf7[_0x12cb86(0x1c0b)][_0x12cb86(0x402)];_0x2c6776+=0x1){delete _0x550cf7[_0x12cb86(0x2391)][_0x550cf7['deleteWhatsappQueuesWaitingInteractions'][_0x2c6776]];}_0x4e32fd=![],_0x550cf7[_0x12cb86(0x1c0b)]=[],_0x12b28e(),_0x361feb();});function _0x361feb(){const _0x3a975e=_0x43e53e,_0x187a38=(_0x550cf7[_0x3a975e(0x219)][_0x3a975e(0x844)]-0x1)*_0x550cf7['queryChannels'][_0x3a975e(0x221e)];_0x550cf7['paginatedInteractions']=_0x3f65c0()['orderBy'](_0x550cf7[_0x3a975e(0x2391)],[_0x3a975e(0x11f0)],[_0x3a975e(0x2517)]),_0x550cf7[_0x3a975e(0x1118)]=_0x3f65c0()[_0x3a975e(0x854)](_0x550cf7['paginatedInteractions'],_0x187a38)[_0x3a975e(0x1298)](0x0,_0x550cf7[_0x3a975e(0x219)][_0x3a975e(0x221e)]);}function _0x4205ce(_0x4b2845){const _0x1e40b0=_0x43e53e;_0x550cf7[_0x1e40b0(0x1b37)]=_0x4b2845['count']?_0x4b2845['count']:0x0,_0x550cf7['whatsappQueues']=_0x4b2845?_0x3f65c0()[_0x1e40b0(0x194)](_0x4b2845[_0x1e40b0(0x19c7)]?_0x4b2845['rows']:[],'id'):{},_0x985b89();}function _0x12b28e(){const _0x6e73f2=_0x43e53e;_0x550cf7[_0x6e73f2(0x1a56)][_0x6e73f2(0x145d)]=(_0x550cf7[_0x6e73f2(0x1a56)][_0x6e73f2(0x844)]-0x1)*_0x550cf7[_0x6e73f2(0x1a56)][_0x6e73f2(0x221e)],_0x550cf7[_0x6e73f2(0xb9c)]=_0x2d68eb[_0x6e73f2(0xe7b)]['getQueues'](_0x550cf7[_0x6e73f2(0x1a56)],_0x4205ce)[_0x6e73f2(0x2945)];}let _0x59143e=!![],_0x324ebd=0x1;_0x5d0129[_0x43e53e(0x21e8)](_0x43e53e(0x117f),function(_0x3ea966,_0x793a0c){const _0x47e526=_0x43e53e;_0x59143e?_0x44b99a(function(){_0x59143e=![];}):(!_0x793a0c&&(_0x324ebd=_0x550cf7[_0x47e526(0x1a56)][_0x47e526(0x844)]),_0x3ea966!==_0x793a0c&&(_0x550cf7[_0x47e526(0x1a56)][_0x47e526(0x844)]=0x1),!_0x3ea966&&(_0x550cf7[_0x47e526(0x1a56)][_0x47e526(0x844)]=_0x324ebd),_0x550cf7['getWhatsappQueues']());});function _0x7e376a(_0x2e0e4c){const _0x590494=_0x43e53e;return _0x3f65c0()[_0x590494(0x4cc)](_0x2e0e4c);}function _0x985b89(){const _0x2bf3da=_0x43e53e;_0x3f65c0()['forIn'](_0x550cf7[_0x2bf3da(0x740)],function(_0x40fd9c,_0x292559){const _0x8bcf64=_0x2bf3da;_0x550cf7[_0x8bcf64(0x1059)][_0x292559]&&(_0x550cf7[_0x8bcf64(0x740)][_0x292559]['waiting']=_0x550cf7[_0x8bcf64(0x1059)][_0x292559][_0x8bcf64(0x12a3)]||0x0);});}function _0xad7c14(_0x43d580){const _0x4b8568=_0x43e53e;_0x550cf7['whatsappQueues'][_0x43d580['id']]&&(_0x550cf7[_0x4b8568(0x1059)][_0x43d580['id']]&&(_0x3f65c0()[_0x4b8568(0x168d)](_0x550cf7[_0x4b8568(0x1059)][_0x43d580['id']],_0x3f65c0()['pick'](_0x43d580,_0x3e24b2)),_0x3f65c0()[_0x4b8568(0x168d)](_0x550cf7[_0x4b8568(0x740)][_0x43d580['id']],_0x3f65c0()[_0x4b8568(0x40e)](_0x43d580,_0x3e24b2))));}function _0x22b21a(_0x491409){const _0x1dd246=_0x43e53e;!_0x3f65c0()[_0x1dd246(0x1b36)](_0x491409)&&(_0x550cf7[_0x1dd246(0x1059)][_0x491409['id']]=_0x3f65c0()['pick'](_0x491409,_0x3e24b2));}function _0x5c0cc9(_0x204f3e){const _0x45624d=_0x43e53e;!_0x3f65c0()[_0x45624d(0x1b36)](_0x204f3e)&&(_0x550cf7[_0x45624d(0x1059)][_0x204f3e['id']]&&_0x3f65c0()[_0x45624d(0x168d)](_0x550cf7[_0x45624d(0x1059)][_0x204f3e['id']],_0x3f65c0()['pick'](_0x204f3e,_0x3e24b2)),_0x550cf7[_0x45624d(0x740)][_0x204f3e['id']]&&_0x3f65c0()[_0x45624d(0x168d)](_0x550cf7[_0x45624d(0x740)][_0x204f3e['id']],_0x3f65c0()[_0x45624d(0x40e)](_0x204f3e,_0x3e24b2)));}function _0x242b64(_0x1f1ace){const _0x2a5166=_0x43e53e;!_0x3f65c0()['isNil'](_0x1f1ace)&&(delete _0x550cf7['rpcWhatsappQueues'][_0x1f1ace['id']],delete _0x550cf7[_0x2a5166(0x740)][_0x1f1ace['id']]);}function _0x7fec6(_0x231431){const _0x3a2cb4=_0x43e53e;_0x3f65c0()[_0x3a2cb4(0x13dc)](_0x231431[_0x3a2cb4(0xea2)])===_0x6f25d7[_0x3a2cb4(0xb12)]()['id']&&_0x550cf7[_0x3a2cb4(0x1db9)]();}function _0x306f56(_0x426692){const _0x5d544b=_0x43e53e;_0x3f65c0()['toInteger'](_0x426692[_0x5d544b(0xea2)])===_0x6f25d7[_0x5d544b(0xb12)]()['id']&&_0x550cf7[_0x5d544b(0x1db9)]();}function _0x4e2dcd(_0x32601b){const _0x532aeb=_0x43e53e;_0x550cf7[_0x532aeb(0x740)][_0x32601b[_0x532aeb(0x1c2a)]]&&(_0x550cf7['rpcWhatsappQueuesWaitingInteractions'][_0x32601b['id']]=_0x32601b,_0x361feb());}function _0x34ff37(_0x5de282){const _0x259132=_0x43e53e;delete _0x550cf7[_0x259132(0x2391)][_0x5de282['id']],_0x4e32fd&&_0x550cf7['deleteWhatsappQueuesWaitingInteractions'][_0x259132(0x1f47)](_0x5de282['id']),_0x361feb();}function _0x38fc32(_0x37a0f0){const _0x131f84=_0x43e53e;switch(_0x37a0f0){case _0x131f84(0xa7f):return _0x131f84(0xde9);case _0x131f84(0x56b):return _0x131f84(0x463);case _0x131f84(0x929):return'orange-bg';case _0x131f84(0xff9):return _0x131f84(0x1ee7);case _0x131f84(0x7d9):return _0x131f84(0x1d5b);case _0x131f84(0x22d9):return _0x131f84(0x18f6);default:return _0x131f84(0x179b);}}_0x5d0129[_0x43e53e(0x16ad)](_0x43e53e(0x116f),function(){const _0x182b1e=_0x43e53e;_0x2d0f4e['removeAllListeners']('whatsapp_queue:save'),_0x2d0f4e[_0x182b1e(0x1c5f)](_0x182b1e(0x20bd)),_0x2d0f4e[_0x182b1e(0x1c5f)](_0x182b1e(0x235d)),_0x2d0f4e[_0x182b1e(0x1c5f)](_0x182b1e(0x87e)),_0x2d0f4e[_0x182b1e(0x1c5f)](_0x182b1e(0x2779)),_0x2d0f4e[_0x182b1e(0x1c5f)]('userWhatsappQueue:remove'),_0x2d0f4e[_0x182b1e(0x1c5f)](_0x182b1e(0x25ec)),_0x2d0f4e[_0x182b1e(0x1c5f)]('whatsapp_queue_waiting_interaction:remove');});}const _0x55a4b6=_0x466927;;_0x4a25dc[_0x313a4d(0x11c2)]=['$scope',_0x313a4d(0x1abe),'$mdDialog','$document','$window','$translate','api',_0x313a4d(0xa87),_0x313a4d(0x279d),_0x313a4d(0x1fe4),_0x313a4d(0x1909)];function _0x4a25dc(_0x5ad11a,_0xd41f2c,_0x53d0a0,_0x3aa2d1,_0x191a14,_0x25ba88,_0x1935b4,_0x182b63,_0x510352,_0xb736e7,_0x58c2d2){const _0x2bb6b0=_0x313a4d,_0xf7ea55=this;_0xf7ea55[_0x2bb6b0(0xe7b)]=_0x182b63[_0x2bb6b0(0xb12)](),_0xf7ea55[_0x2bb6b0(0x2690)]={},_0xf7ea55[_0x2bb6b0(0x15b9)]={},_0xf7ea55['tags']={'count':0x0,'rows':[]},_0xf7ea55[_0x2bb6b0(0x1938)]={'count':0x0,'rows':[]},_0xf7ea55['query']={'includeAll':!![],'sort':_0x2bb6b0(0x12f2),'limit':0xa,'page':0x1,'read':null,'closed':null},_0xf7ea55['advancedSearch']={'fields':[{'name':'Id','column':'id','type':_0x2bb6b0(0x181)},{'name':_0x2bb6b0(0x364),'column':'Contact','type':_0x2bb6b0(0x14ee),'options':{'searchFields':['firstName','lastName',_0x2bb6b0(0x1a2b)],'route':{'model':'cmContact','action':_0x2bb6b0(0x16b4),'params':{'fields':_0x2bb6b0(0x992),'Contact':_0x2bb6b0(0x3fb),'nolimit':!![]}},'extraOperators':[_0x2bb6b0(0xacb)],'excludedOperators':['$ne']}},{'name':_0x2bb6b0(0x710),'column':_0x2bb6b0(0x2586),'type':'text','options':{'excludedOperators':[_0x2bb6b0(0x6be),'$ne']}},{'name':_0x2bb6b0(0x74e),'column':_0x2bb6b0(0x1943),'type':_0x2bb6b0(0xa5f),'values':[{'id':0x0,'translate':_0x2bb6b0(0x143b)},{'id':0x1,'translate':_0x2bb6b0(0x1805)}],'options':{'excludedOperators':[_0x2bb6b0(0x1671)]}},{'name':'Agent','column':_0x2bb6b0(0x2393),'type':'autocomplete','options':{'table':'i','route':{'model':_0x2bb6b0(0xe7b),'action':_0x2bb6b0(0x16b4),'params':{'role':'agent','fields':_0x2bb6b0(0x12bf),'nolimit':!![]}},'searchFields':[_0x2bb6b0(0x286a),_0x2bb6b0(0x19eb)],'extraOperators':['$substring'],'excludedOperators':[_0x2bb6b0(0x1671)]}},{'name':_0x2bb6b0(0xb48),'column':_0x2bb6b0(0x74d),'type':_0x2bb6b0(0x175c),'options':{'route':{'model':'user','action':_0x2bb6b0(0x12d0),'params':{'id':_0xf7ea55[_0x2bb6b0(0xe7b)]['id'],'nolimit':!![]}}}},{'name':_0x2bb6b0(0x2331),'column':'Tag','type':_0x2bb6b0(0x175c),'options':{'route':{'model':_0x2bb6b0(0xa80),'action':'get','params':{'nolimit':!![]}},'excludedOperators':[_0x2bb6b0(0xbe5)]}},{'name':_0x2bb6b0(0x294),'column':_0x2bb6b0(0xc68),'type':_0x2bb6b0(0x1a10),'options':{'excludedOperators':[_0x2bb6b0(0x1671)]}},{'name':_0x2bb6b0(0x270b),'column':_0x2bb6b0(0x26a6),'type':_0x2bb6b0(0xa5f),'values':[{'id':0x1,'translate':_0x2bb6b0(0x1ce6)},{'id':0x0,'translate':'DASHBOARDS.UNREAD'}],'options':{'excludedOperators':[_0x2bb6b0(0x1671)]}}]},_0xf7ea55['sectionColor']='blue-grey',_0xf7ea55[_0x2bb6b0(0x3d4)]=_0x1b1490,_0xf7ea55['success']=_0x426415,_0xf7ea55[_0x2bb6b0(0x2769)]=_0x259344,_0xf7ea55[_0x2bb6b0(0x16dc)]=_0x4e5737,_0xf7ea55[_0x2bb6b0(0x2949)]=_0x2bf5ca,_0xf7ea55[_0x2bb6b0(0x10ef)]=_0x31706c,_0xf7ea55[_0x2bb6b0(0x4b5)]=_0xe3bdf8,_0xf7ea55[_0x2bb6b0(0xe3b)]=_0x58112f,_0xf7ea55[_0x2bb6b0(0x9b5)]=_0x431fcd,_0xf7ea55[_0x2bb6b0(0xc96)]=_0x41988c,_0xf7ea55[_0x2bb6b0(0x1c4f)]=_0x125ece,_0xf7ea55['onSearchBarExpand']=_0x58a4f2,_0xf7ea55[_0x2bb6b0(0x21a6)]=_0x146c45;function _0x1b1490(_0x4ed422,_0x44bc07){const _0xb90328=_0x2bb6b0;return _0xf7ea55['license']=_0x4ed422,_0xf7ea55[_0xb90328(0x15b9)]=_0x44bc07,_0x1935b4[_0xb90328(0xe7b)]['get'+_0x3f65c0()[_0xb90328(0x21cf)]('faxAccounts')]({'id':_0xf7ea55[_0xb90328(0xe7b)]['id'],'nolimit':!![]})['$promise'][_0xb90328(0x146b)](function(_0x2d4670){const _0x5b9dba=_0xb90328;return _0xf7ea55[_0x5b9dba(0x8a9)]=_0x2d4670||{'count':0x0,'rows':[]},_0x1935b4[_0x5b9dba(0xa80)][_0x5b9dba(0x16b4)]()[_0x5b9dba(0x2945)];})[_0xb90328(0x146b)](function(_0x2505b8){const _0x3664bb=_0xb90328;_0xf7ea55[_0x3664bb(0x1b86)]=_0x2505b8||{'count':0x0,'rows':[]};})['then'](function(){const _0x4f2b89=_0xb90328;_0xf7ea55[_0x4f2b89(0x28af)]=_0x366ded();})[_0xb90328(0x129e)](function(_0x220cff){const _0x21c122=_0xb90328;console[_0x21c122(0x1980)](_0x220cff);})[_0xb90328(0x1ec6)](function(){const _0x9f2e1c=_0xb90328;let _0x240f47=_0x191a14[_0x9f2e1c(0x1c39)][_0x9f2e1c(0x1519)]('motion2.home.fax:'+_0xf7ea55[_0x9f2e1c(0xe7b)]['id']);if(_0x240f47)try{_0x240f47=JSON[_0x9f2e1c(0x975)](_0x240f47);if(_0x240f47[_0x9f2e1c(0x1a56)]){_0xf7ea55[_0x9f2e1c(0x1a56)]=_0x3f65c0()[_0x9f2e1c(0x168d)](_0xf7ea55[_0x9f2e1c(0x1a56)],_0x240f47['query']);if(_0x3f65c0()[_0x9f2e1c(0x2635)](_0xf7ea55[_0x9f2e1c(0x8a9)][_0x9f2e1c(0x19c7)]))_0xf7ea55[_0x9f2e1c(0x1a56)][_0x9f2e1c(0x74d)]=[];else _0x3f65c0()[_0x9f2e1c(0x2635)](_0xf7ea55[_0x9f2e1c(0x1a56)][_0x9f2e1c(0x74d)])&&(_0xf7ea55[_0x9f2e1c(0x1a56)][_0x9f2e1c(0x74d)]=_0x3f65c0()(_0xf7ea55[_0x9f2e1c(0x8a9)]['rows'])[_0x9f2e1c(0x205)]('id')[_0x9f2e1c(0x2421)]()[_0x9f2e1c(0x175d)]());_0xf7ea55[_0x9f2e1c(0x1a56)]['sort']&&_0xf7ea55[_0x9f2e1c(0x1a56)]['sort'][_0x9f2e1c(0x172b)](_0x9f2e1c(0x186))>=0x0&&(_0xf7ea55[_0x9f2e1c(0x1a56)]=_0x3f65c0()['omit'](_0xf7ea55['query'],_0x9f2e1c(0x28fa))),_0xf7ea55['query'][_0x9f2e1c(0x287)]=!![],_0xf7ea55[_0x9f2e1c(0x2516)]=_0xf7ea55[_0x9f2e1c(0x1a56)][_0x9f2e1c(0x1dd6)]?!![]:![];}}catch(_0x16b638){console[_0x9f2e1c(0x1980)](_0x16b638);}else{const _0x1ca5bf={'$gte':_0x2deec6()()['startOf'](_0x9f2e1c(0x12b7))['utcOffset'](0x0,!![])[_0x9f2e1c(0x22b0)](),'$lte':_0x2deec6()()['endOf'](_0x9f2e1c(0x12b7))[_0x9f2e1c(0x65f)](0x0,!![])[_0x9f2e1c(0x22b0)]()},_0xe2f252={'FaxAccountId':_0x3f65c0()['map'](_0xf7ea55[_0x9f2e1c(0x8a9)][_0x9f2e1c(0x19c7)],'id'),'createdAt':_0x1ca5bf};_0xf7ea55[_0x9f2e1c(0x1a56)]=_0x3f65c0()[_0x9f2e1c(0x168d)](_0xf7ea55[_0x9f2e1c(0x1a56)],_0xe2f252);}_0x510352['on'](_0x9f2e1c(0x180a),_0x460ad1),_0x510352['on'](_0x9f2e1c(0x1bb8),_0x460ad1),_0x510352['on'](_0x9f2e1c(0x1be6),_0x11dcdc),_0x510352['on'](_0x9f2e1c(0x1ed5),_0x25dfbe),_0x510352['on'](_0x9f2e1c(0xcf3),_0x25dfbe),_0x510352['on'](_0x9f2e1c(0x1efc),_0x514bf9),_0x510352['on'](_0x9f2e1c(0x2225),_0x3373b0),_0x259344(_0xf7ea55[_0x9f2e1c(0x1a56)][_0x9f2e1c(0x844)]);});}function _0x366ded(){const _0x300373=_0x2bb6b0;return[{'name':_0x300373(0x294),'key':'createdAt','type':'date','label':_0x300373(0x2902)},{'name':_0x300373(0x1c7c),'key':_0x300373(0x229e),'type':_0x300373(0xa5f),'label':'DASHBOARDS.SELECT_READ_UNREAD','customOptions':[{'value':0x0,'translate':_0x300373(0x33f)},{'value':0x1,'translate':_0x300373(0x1ce6)},{'value':null,'translate':_0x300373(0x175e)}]},{'name':_0x300373(0x74e),'key':_0x300373(0x1943),'type':_0x300373(0xa5f),'label':_0x300373(0x1682),'customOptions':[{'value':0x0,'translate':_0x300373(0x143b)},{'value':0x1,'translate':_0x300373(0x1805)},{'value':null,'translate':_0x300373(0x175e)}]},{'name':_0x300373(0xb48),'key':_0x300373(0x74d),'type':_0x300373(0x175c),'label':_0x300373(0x1b49),'options':_0xf7ea55['faxAccounts'][_0x300373(0x19c7)],'clearAll':![]},{'name':_0x300373(0x294a),'key':_0x300373(0xea2),'type':_0x300373(0xa5f),'label':'DASHBOARDS.SELECT_AGENT','customOptions':[{'value':_0xf7ea55[_0x300373(0xe7b)]['id'],'translate':_0x300373(0x6d9)},{'value':_0x300373(0x203c),'translate':_0x300373(0x38d)},{'value':undefined,'translate':'DASHBOARDS.ALL'}]},{'name':'Tag','key':_0x300373(0xa80),'type':'multiselect','label':_0x300373(0x1c0e),'options':_0xf7ea55['tags']['rows'],'placeholder':'DASHBOARDS.TAGS'}];}function _0x426415(_0x5a8447){const _0xd28c2b=_0x2bb6b0;_0xf7ea55[_0xd28c2b(0x14eb)]=![],_0xf7ea55[_0xd28c2b(0x1938)]=_0x5a8447||{'count':0x0,'rows':[]};for(let _0x3566d5=0x0;_0x3566d5<_0xf7ea55[_0xd28c2b(0x1938)][_0xd28c2b(0x19c7)][_0xd28c2b(0x402)];_0x3566d5+=0x1){_0xe3bdf8(_0xf7ea55['faxInteractions']['rows'][_0x3566d5]);}}function _0x259344(_0x248eff){const _0x936d93=_0x2bb6b0;_0xf7ea55['searchInProgress']=!![];!_0x248eff&&(_0xf7ea55[_0x936d93(0x1a56)][_0x936d93(0x844)]=0x1);_0xf7ea55['query'][_0x936d93(0x145d)]=(_0xf7ea55[_0x936d93(0x1a56)]['page']-0x1)*_0xf7ea55[_0x936d93(0x1a56)][_0x936d93(0x221e)];let _0xeda7a8=_0x191a14[_0x936d93(0x1c39)][_0x936d93(0x1519)](_0x936d93(0x105c)+_0xf7ea55['user']['id']);_0xeda7a8=_0xeda7a8?JSON[_0x936d93(0x975)](_0xeda7a8):{},_0xeda7a8[_0x936d93(0x1a56)]=_0xf7ea55[_0x936d93(0x1a56)],_0x191a14[_0x936d93(0x1c39)]['setItem'](_0x936d93(0x105c)+_0xf7ea55[_0x936d93(0xe7b)]['id'],JSON[_0x936d93(0x10bb)](_0xeda7a8)),_0xf7ea55[_0x936d93(0xb9c)]=_0x1935b4['faxInteraction'][_0x936d93(0x16b4)](_0xf7ea55[_0x936d93(0x1a56)],_0x426415)[_0x936d93(0x2945)];}function _0x4e5737(_0xc452a3,_0x388f2f){const _0xfd9977=_0x2bb6b0;_0x5ad11a[_0xfd9977(0x2870)]['vm']['addInteractionTab'](_0xfd9977(0x22d9),_0x388f2f);}function _0x2bf5ca(_0x4b1074,_0x1f2921,_0x154b05){const _0x4d45e3=_0x2bb6b0;_0x1935b4[_0x4d45e3(0xe5b)][_0x4d45e3(0x15b1)]({'id':_0x1f2921['id'],'attachments':_0x154b05})[_0x4d45e3(0x2945)][_0x4d45e3(0x146b)](function(_0xc5d20e){const _0x50971a=_0x4d45e3,_0x383f0d=[_0xc5d20e[_0x50971a(0x2eb)]],_0x40a156=_0x50971a(0x200d)+_0x1f2921['id']+_0x50971a(0xf04),_0x6d2644=new Blob(_0x383f0d,{'type':_0xc5d20e[_0x50971a(0x1142)]}),_0x13d160=window[_0x50971a(0xef3)][_0x50971a(0x24ec)]('a');_0x13d160[_0x50971a(0x1652)]('href',URL[_0x50971a(0x1c58)](_0x6d2644)),_0x13d160[_0x50971a(0x1652)](_0x50971a(0x15b1),_0x40a156),document[_0x50971a(0x2586)][_0x50971a(0x23e)](_0x13d160),_0x13d160[_0x50971a(0x1fa5)]();})[_0x4d45e3(0x129e)](function(_0x3af6a9){const _0x114474=_0x4d45e3;if(_0x3af6a9[_0x114474(0x524)]&&_0x3af6a9[_0x114474(0x524)][_0x114474(0xcef)]&&_0x3af6a9[_0x114474(0x524)]['errors'][_0x114474(0x402)])for(let _0x48a90f=0x0;_0x48a90f<_0x3af6a9['data'][_0x114474(0xcef)][_0x114474(0x402)];_0x48a90f+=0x1){_0xb736e7[_0x114474(0x1980)]({'title':_0x3af6a9[_0x114474(0x524)][_0x114474(0xcef)][_0x48a90f][_0x114474(0x1142)],'msg':_0x3af6a9['data'][_0x114474(0xcef)][_0x48a90f][_0x114474(0x7fd)]});}else _0xb736e7[_0x114474(0x1980)]({'title':_0x3af6a9[_0x114474(0x107b)]?'API:'+_0x3af6a9[_0x114474(0x107b)]+'\x20-\x20'+_0x3af6a9[_0x114474(0x167f)]:_0x114474(0x2949),'msg':_0x3af6a9[_0x114474(0x524)]?JSON[_0x114474(0x10bb)](_0x3af6a9['data'][_0x114474(0x7fd)]):_0x3af6a9['toString']()});});}function _0x31706c(_0x1a24ca,_0x559245){const _0x1e76a4=_0x2bb6b0,_0x29694d=_0xf7ea55[_0x1e76a4(0xe7b)][_0x1e76a4(0x211c)]||_0xf7ea55[_0x1e76a4(0xe7b)][_0x1e76a4(0x5f7)]||_0xf7ea55[_0x1e76a4(0xe7b)][_0x1e76a4(0x1e9e)]||_0xf7ea55[_0x1e76a4(0xe7b)][_0x1e76a4(0xcc5)]||_0xf7ea55[_0x1e76a4(0xe7b)][_0x1e76a4(0x25c4)],_0x2c50bd=!_0x559245['Account'][_0x1e76a4(0xc9e)];_0x53d0a0[_0x1e76a4(0x2615)]({'controller':_0x1e76a4(0xe23),'controllerAs':'vm','templateUrl':_0x56fd44,'parent':angular['element'](_0x3aa2d1[_0x1e76a4(0x2586)]),'clickOutsideToClose':_0x2c50bd,'escapeToClose':_0x2c50bd,'onRemoving':function(){const _0x3c9efc=_0x1e76a4;_0xf7ea55[_0x3c9efc(0xe7b)]&&_0x559245[_0x3c9efc(0xb48)][_0x3c9efc(0xc9e)]&&!_0x29694d&&_0x1935b4[_0x3c9efc(0xe7b)][_0x3c9efc(0x974)]({'id':_0xf7ea55[_0x3c9efc(0xe7b)]['id']})['$promise'][_0x3c9efc(0x129e)](function(_0x143cb7){const _0xbaa4aa=_0x3c9efc;console[_0xbaa4aa(0x1980)](_0x143cb7);});},'locals':{'user':_0xf7ea55['user'],'channel':'fax','interaction':_0x559245}});}function _0xe3bdf8(_0x54dbfc){const _0x44a8fb=_0x2bb6b0;_0x54dbfc[_0x44a8fb(0x364)]?(_0x54dbfc['contactName']=(_0x54dbfc[_0x44a8fb(0x364)][_0x44a8fb(0x1ed4)]||'')+'\x20'+(_0x54dbfc[_0x44a8fb(0x364)][_0x44a8fb(0xee4)]||''),_0x54dbfc[_0x44a8fb(0x14e3)]=_0x54dbfc[_0x44a8fb(0x364)][_0x44a8fb(0x22d9)]):_0x54dbfc[_0x44a8fb(0x792)]=_0x25ba88[_0x44a8fb(0xde)](_0x44a8fb(0xe0b));}function _0x58112f(_0xe2d16b){const _0x424556=_0x2bb6b0;if(_0xe2d16b[_0x424556(0xea2)])return _0xe2d16b[_0x424556(0xea2)]===_0xf7ea55['user']['id']?_0x25ba88[_0x424556(0xde)](_0x424556(0x6d9)):_0xe2d16b[_0x424556(0xac5)][_0x424556(0x286a)]+'\x20<'+_0xe2d16b[_0x424556(0xac5)]['internal']+'>';return _0x25ba88[_0x424556(0xde)](_0x424556(0x38d));}function _0x431fcd(_0x5608ca){const _0x54c055=_0x2bb6b0;if(_0x5608ca[_0x54c055(0xb48)])return _0x5608ca[_0x54c055(0xb48)][_0x54c055(0x2293)];return _0x25ba88[_0x54c055(0xde)]('APP.UNKNOWN');}function _0x41988c(_0x3c7a11,_0x266a0a){const _0x1dbd43=_0x2bb6b0;_0x53d0a0[_0x1dbd43(0x2615)]({'controller':_0x1dbd43(0x1c90),'controllerAs':'vm','templateUrl':_0x47122e,'parent':angular[_0x1dbd43(0x1853)](_0x3aa2d1[_0x1dbd43(0x2586)]),'clickOutsideToClose':![],'locals':{'account':_0x266a0a,'message':{},'type':_0x1dbd43(0x16d9),'interaction':{}},'fullscreen':!![]})[_0x1dbd43(0x146b)](function(_0x12de1f){const _0x86121d=_0x1dbd43;if(_0x12de1f){if(_0x12de1f[_0x86121d(0x7fd)]&&_0x12de1f[_0x86121d(0x7fd)][_0x86121d(0x1703)]){const _0x10cc37={'channel':_0x86121d(0x22d9),'account':_0x266a0a,'message':_0x12de1f[_0x86121d(0x7fd)],'contact':_0x12de1f[_0x86121d(0x1662)]};_0x58c2d2[_0x86121d(0x387)](_0x10cc37);}else{const _0x47c6ee=_0x12de1f;return _0x1935b4[_0x86121d(0x178)][_0x86121d(0x1443)]({'id':_0x266a0a['id']},_0x47c6ee)[_0x86121d(0x2945)][_0x86121d(0x146b)](function(_0x130ecf){const _0x7406ca=_0x86121d;_0xb736e7[_0x7406ca(0x1c75)]({'title':'Message\x20properly\x20sent!','msg':_0x7406ca(0x54f)}),_0x5ad11a[_0x7406ca(0x2870)]['vm'][_0x7406ca(0x2614)]('fax',_0x130ecf);})['catch'](function(_0x288cd1){const _0x5928a3=_0x86121d;if(_0x288cd1['data']&&_0x288cd1['data'][_0x5928a3(0xcef)]&&_0x288cd1[_0x5928a3(0x524)][_0x5928a3(0xcef)]['length'])for(let _0x3feb21=0x0;_0x3feb21<_0x288cd1[_0x5928a3(0x524)][_0x5928a3(0xcef)][_0x5928a3(0x402)];_0x3feb21++){_0xb736e7['error']({'title':_0x288cd1[_0x5928a3(0x524)]['errors'][_0x3feb21][_0x5928a3(0x1142)],'msg':_0x288cd1[_0x5928a3(0x524)][_0x5928a3(0xcef)][_0x3feb21][_0x5928a3(0x7fd)]});}else _0xb736e7[_0x5928a3(0x1980)]({'title':_0x5928a3(0x1c02),'msg':_0x288cd1[_0x5928a3(0x524)]?JSON[_0x5928a3(0x10bb)](_0x288cd1['data']):_0x288cd1[_0x5928a3(0x7fd)]||_0x288cd1['toString']()});});}}});}function _0x514bf9(_0x2622f9){const _0x24c03e=_0x2bb6b0;let _0x3816ef;const _0x3c2623=_0x3f65c0()['find'](_0xf7ea55[_0x24c03e(0x1938)][_0x24c03e(0x19c7)],{'id':_0x2622f9[_0x24c03e(0x19e3)]});_0x3c2623&&_0x3c2623[_0x24c03e(0x3c4)]&&(_0x3816ef=_0x3f65c0()[_0x24c03e(0xc84)](_0x3c2623[_0x24c03e(0x3c4)],{'id':_0x2622f9[_0x24c03e(0xea2)]}),!_0x3816ef&&_0x3c2623[_0x24c03e(0x3c4)][_0x24c03e(0x1f47)]({'id':_0x2622f9['UserId']}));}function _0x3373b0(_0x41fa9a){const _0x629036=_0x2bb6b0,_0x21dc2c=_0x3f65c0()['find'](_0xf7ea55[_0x629036(0x1938)][_0x629036(0x19c7)],{'id':_0x41fa9a[_0x629036(0x19e3)]});_0x21dc2c&&_0x21dc2c[_0x629036(0x3c4)]&&_0x3f65c0()[_0x629036(0x2640)](_0x21dc2c[_0x629036(0x3c4)],{'id':_0x41fa9a['UserId']});}function _0x460ad1(_0x136fcd){const _0x504fc2=_0x2bb6b0;if(_0x136fcd){const _0x1dd066=_0x3f65c0()[_0x504fc2(0xc84)](_0xf7ea55[_0x504fc2(0x1938)]['rows'],{'id':_0x136fcd['id']});if(_0x1dd066){_0x1dd066[_0x504fc2(0x3c4)]=[];_0x136fcd[_0x504fc2(0x1943)]&&(_0x1dd066[_0x504fc2(0x26a6)]=0x0);if(_0xf7ea55[_0x504fc2(0x1a56)][_0x504fc2(0x28fa)]){const _0x22aeb7=_0x3f65c0()[_0x504fc2(0xd4d)](_0xf7ea55[_0x504fc2(0x1a56)][_0x504fc2(0x28fa)],'-')?'desc':_0x504fc2(0x195);_0xf7ea55['faxInteractions']['rows']=_0x3f65c0()[_0x504fc2(0x979)](_0xf7ea55[_0x504fc2(0x1938)][_0x504fc2(0x19c7)],_0x3f65c0()[_0x504fc2(0x25b5)](_0xf7ea55[_0x504fc2(0x1a56)][_0x504fc2(0x28fa)],'-'),_0x22aeb7);}_0x3f65c0()['merge'](_0x1dd066,_0x3f65c0()[_0x504fc2(0x40e)](_0x136fcd,_0x3f65c0()[_0x504fc2(0x627)](_0x1dd066)));}else _0x259344(_0xf7ea55[_0x504fc2(0x1a56)][_0x504fc2(0x844)]);}}function _0x11dcdc(_0x41a36d){const _0x10af7f=_0x2bb6b0;if(_0x41a36d){const _0x2c5618=_0x3f65c0()[_0x10af7f(0xc84)](_0xf7ea55[_0x10af7f(0x1938)][_0x10af7f(0x19c7)],{'id':_0x41a36d['id']});_0x2c5618&&(_0x2c5618[_0x10af7f(0x2331)]=_0x41a36d[_0x10af7f(0x1b86)]||[],_0x3f65c0()[_0x10af7f(0x168d)](_0x2c5618,_0x3f65c0()[_0x10af7f(0x40e)](_0x41a36d,_0x3f65c0()[_0x10af7f(0x627)](_0x2c5618))));}}function _0x25dfbe(_0x1e9030){const _0x4412e0=_0x2bb6b0;if(_0x1e9030&&!_0x1e9030[_0x4412e0(0xaf0)]){const _0x1faa8b=_0x3f65c0()[_0x4412e0(0xc84)](_0xf7ea55[_0x4412e0(0x1938)][_0x4412e0(0x19c7)],{'id':_0x1e9030[_0x4412e0(0x19e3)]});if(_0x1faa8b){const _0x4ac613=_0x3f65c0()[_0x4412e0(0xc84)](_0x1faa8b[_0x4412e0(0x1c7c)],{'id':_0x1e9030['id']});_0x4ac613?_0x3f65c0()['merge'](_0x4ac613,_0x3f65c0()[_0x4412e0(0x40e)](_0x1e9030,_0x3f65c0()[_0x4412e0(0x627)](_0x4ac613))):(_0x3f65c0()[_0x4412e0(0x1b36)](_0x1faa8b[_0x4412e0(0x1c7c)])&&(_0x1faa8b[_0x4412e0(0x1c7c)]={'count':0x0}),!_0x1e9030[_0x4412e0(0x229e)]&&(_0x1faa8b[_0x4412e0(0x1c7c)]['count']+=0x1));}}}function _0x125ece(){const _0x5bf752=_0x2bb6b0;_0xf7ea55[_0x5bf752(0x2516)]=![];}function _0x58a4f2(){const _0x26ee6=_0x2bb6b0;_0xf7ea55[_0x26ee6(0x2516)]=!![];}function _0x146c45(){const _0x7c3592=_0x2bb6b0;_0xf7ea55[_0x7c3592(0x2516)]=![],_0x53d0a0[_0x7c3592(0x2615)]({'controller':_0x7c3592(0x26bc),'controllerAs':'vm','templateUrl':_0x3fb128,'parent':angular[_0x7c3592(0x1853)](_0x3aa2d1[_0x7c3592(0x2586)]),'clickOutsideToClose':![],'locals':{'color':_0xf7ea55[_0x7c3592(0x1527)],'fields':_0xf7ea55[_0x7c3592(0xe93)][_0x7c3592(0x2867)],'storagePath':_0x7c3592(0x69f)},'fullscreen':!![]})[_0x7c3592(0x146b)](function(_0x1219a9){const _0x470068=_0x7c3592;_0xf7ea55[_0x470068(0x1a56)][_0x470068(0x21da)]=_0x1219a9===![]?undefined:_0x1219a9;if(_0xf7ea55[_0x470068(0x1a56)][_0x470068(0x21da)]||_0x1219a9===![])_0x259344();})[_0x7c3592(0x129e)](function(_0x271fe7){const _0x16dea4=_0x7c3592;_0xb736e7[_0x16dea4(0x1980)]({'title':_0x16dea4(0x10f5),'msg':_0x271fe7[_0x16dea4(0x524)]?JSON[_0x16dea4(0x10bb)](_0x271fe7[_0x16dea4(0x524)]['message']):_0x271fe7[_0x16dea4(0xd5f)]()});});}let _0x4436be=!![],_0x15aeac=0x1;_0x5ad11a['$watch']('vm.query.filter',function(_0x47f084,_0x2c8e63){const _0x516f5a=_0x2bb6b0;_0x4436be?_0xd41f2c(function(){_0x4436be=![];}):(!_0x2c8e63&&(_0x15aeac=_0xf7ea55[_0x516f5a(0x1a56)][_0x516f5a(0x844)]),_0x47f084!==_0x2c8e63&&(_0xf7ea55[_0x516f5a(0x1a56)][_0x516f5a(0x844)]=0x1),!_0x47f084&&(_0xf7ea55[_0x516f5a(0x1a56)][_0x516f5a(0x844)]=_0x15aeac),_0x259344(_0xf7ea55[_0x516f5a(0x1a56)]['page']));}),_0x5ad11a[_0x2bb6b0(0x16ad)](_0x2bb6b0(0x116f),function(){const _0x16c619=_0x2bb6b0;_0x510352[_0x16c619(0x1c5f)](_0x16c619(0x1ed5)),_0x510352[_0x16c619(0x1c5f)](_0x16c619(0xcf3)),_0x510352['removeAllListeners']('faxInteraction:save'),_0x510352[_0x16c619(0x1c5f)](_0x16c619(0x1be6)),_0x510352['removeAllListeners'](_0x16c619(0x1bb8)),_0x510352['removeAllListeners'](_0x16c619(0x1efc)),_0x510352[_0x16c619(0x1c5f)](_0x16c619(0x2225));});}const _0x54a684=_0x4a25dc;;_0x20bafc[_0x313a4d(0x11c2)]=['$scope',_0x313a4d(0x1abe),'$mdDialog','$document','$window',_0x313a4d(0x214b),_0x313a4d(0x247f),_0x313a4d(0xa87),_0x313a4d(0x279d),_0x313a4d(0x1fe4),_0x313a4d(0x1909)];function _0x20bafc(_0x438610,_0x134f81,_0x234533,_0x141134,_0x2111b6,_0x2c32f3,_0x368fc3,_0x2e9a03,_0x29ea70,_0x3f8898,_0x342adb){const _0x1454c6=_0x313a4d,_0x5c5e76=this;_0x5c5e76[_0x1454c6(0xe7b)]=_0x2e9a03[_0x1454c6(0xb12)](),_0x5c5e76[_0x1454c6(0x2690)]={},_0x5c5e76[_0x1454c6(0x15b9)]={},_0x5c5e76[_0x1454c6(0x1b86)]={'count':0x0,'rows':[]},_0x5c5e76[_0x1454c6(0x1250)]={'count':0x0,'rows':[]},_0x5c5e76[_0x1454c6(0x1a56)]={'includeAll':!![],'sort':_0x1454c6(0x12f2),'limit':0xa,'page':0x1,'read':null,'closed':null},_0x5c5e76[_0x1454c6(0xe93)]={'fields':[{'name':'Id','column':'id','type':_0x1454c6(0x181)},{'name':_0x1454c6(0x364),'column':_0x1454c6(0x364),'type':'autocomplete','options':{'searchFields':[_0x1454c6(0x1ed4),'lastName',_0x1454c6(0x1a2b)],'route':{'model':_0x1454c6(0x18c3),'action':_0x1454c6(0x16b4),'params':{'fields':_0x1454c6(0x992),'Contact':_0x1454c6(0x3fb),'nolimit':!![]}},'extraOperators':[_0x1454c6(0xacb)],'excludedOperators':[_0x1454c6(0x1671)]}},{'name':'Subject','column':'subject','type':'text','options':{'excludedOperators':[_0x1454c6(0x6be),'$ne']}},{'name':_0x1454c6(0x710),'column':'plainBody','type':_0x1454c6(0xa8d),'options':{'excludedOperators':['$eq','$ne']}},{'name':_0x1454c6(0x74e),'column':_0x1454c6(0x1943),'type':'select','values':[{'id':0x0,'translate':_0x1454c6(0x143b)},{'id':0x1,'translate':_0x1454c6(0x1805)}],'options':{'excludedOperators':[_0x1454c6(0x1671)]}},{'name':'Substatus','column':'substatus','type':'multiselect','options':{'field':_0x1454c6(0x19eb),'route':{'model':_0x1454c6(0x2036),'action':_0x1454c6(0x16b4),'params':{'nolimit':!![]}},'excludedOperators':['$notIn']}},{'name':_0x1454c6(0x294a),'column':_0x1454c6(0x2393),'type':_0x1454c6(0x14ee),'options':{'table':'i','route':{'model':_0x1454c6(0xe7b),'action':'get','params':{'role':_0x1454c6(0x1755),'fields':_0x1454c6(0x12bf),'nolimit':!![]}},'searchFields':[_0x1454c6(0x286a),'name'],'extraOperators':[_0x1454c6(0xacb)],'excludedOperators':[_0x1454c6(0x1671)]}},{'name':_0x1454c6(0xb48),'column':_0x1454c6(0x658),'type':_0x1454c6(0x175c),'options':{'route':{'model':_0x1454c6(0xe7b),'action':_0x1454c6(0x44b),'params':{'id':_0x5c5e76[_0x1454c6(0xe7b)]['id'],'nolimit':!![]}}}},{'name':_0x1454c6(0x2331),'column':'Tag','type':'multiselect','options':{'route':{'model':_0x1454c6(0xa80),'action':_0x1454c6(0x16b4),'params':{'nolimit':!![]}},'excludedOperators':['$notIn']}},{'name':_0x1454c6(0x294),'column':_0x1454c6(0xc68),'type':_0x1454c6(0x1a10),'options':{'excludedOperators':['$ne']}},{'name':_0x1454c6(0x270b),'column':'unreadMessages','type':_0x1454c6(0xa5f),'values':[{'id':0x1,'translate':_0x1454c6(0x1ce6)},{'id':0x0,'translate':_0x1454c6(0x33f)}],'options':{'excludedOperators':[_0x1454c6(0x1671)]}}]},_0x5c5e76[_0x1454c6(0x1527)]=_0x1454c6(0x109e),_0x5c5e76[_0x1454c6(0x3d4)]=_0x3169b0,_0x5c5e76[_0x1454c6(0x1c75)]=_0x4fb3df,_0x5c5e76['getMailInteractions']=_0x35b28b,_0x5c5e76['showMailInteraction']=_0x417282,_0x5c5e76[_0x1454c6(0xd51)]=_0x5ac9d2,_0x5c5e76[_0x1454c6(0x10ef)]=_0x36e4d7,_0x5c5e76[_0x1454c6(0x4b5)]=_0x20d647,_0x5c5e76[_0x1454c6(0xe3b)]=_0x456684,_0x5c5e76[_0x1454c6(0x21ec)]=_0x55e5ec,_0x5c5e76[_0x1454c6(0x107a)]=_0x386885,_0x5c5e76['onSearchBarCollapse']=_0x26a1dd,_0x5c5e76[_0x1454c6(0x28b7)]=_0x18ce7d,_0x5c5e76['openAdvancedSearch']=_0x366c21,_0x438610[_0x1454c6(0x16ad)](_0x1454c6(0x1fe9),_0x4875ab);function _0x3169b0(_0x488ba3,_0x45c56d){const _0x553690=_0x1454c6;return _0x5c5e76[_0x553690(0x2690)]=_0x488ba3,_0x5c5e76['setting']=_0x45c56d,_0x368fc3[_0x553690(0xe7b)]['get'+_0x3f65c0()[_0x553690(0x21cf)](_0x553690(0x1593))]({'id':_0x5c5e76[_0x553690(0xe7b)]['id'],'nolimit':!![]})[_0x553690(0x2945)][_0x553690(0x146b)](function(_0x4d1ad0){const _0x41b9d1=_0x553690;return _0x5c5e76['mailAccounts']=_0x4d1ad0||{'count':0x0,'rows':[]},_0x368fc3[_0x41b9d1(0xa80)]['get']()[_0x41b9d1(0x2945)];})[_0x553690(0x146b)](function(_0x4da3f7){_0x5c5e76['tags']=_0x4da3f7||{'count':0x0,'rows':[]};})[_0x553690(0x146b)](function(){const _0xe04e0f=_0x553690;return _0x368fc3['mailSubstatus']['get']({'nolimit':!![]})[_0xe04e0f(0x2945)];})[_0x553690(0x146b)](function(_0xd1a581){_0x5c5e76['subStatuses']=_0xd1a581||{'count':0x0,'rows':[]};})[_0x553690(0x146b)](function(){const _0x771841=_0x553690;_0x5c5e76[_0x771841(0x28af)]=_0x5c7de6();})[_0x553690(0x129e)](function(_0x4762e0){const _0x150291=_0x553690;console[_0x150291(0x1980)](_0x4762e0);})[_0x553690(0x1ec6)](function(){const _0x925f14=_0x553690;let _0x1d81d2=_0x2111b6['localStorage'][_0x925f14(0x1519)](_0x925f14(0x131c)+_0x5c5e76[_0x925f14(0xe7b)]['id']);if(_0x1d81d2)try{_0x1d81d2=JSON[_0x925f14(0x975)](_0x1d81d2);if(_0x1d81d2['query']){_0x5c5e76[_0x925f14(0x1a56)]=_0x3f65c0()[_0x925f14(0x168d)](_0x5c5e76[_0x925f14(0x1a56)],_0x1d81d2['query']);if(_0x3f65c0()[_0x925f14(0x2635)](_0x5c5e76['mailAccounts'][_0x925f14(0x19c7)]))_0x5c5e76[_0x925f14(0x1a56)]['MailAccountId']=[];else _0x3f65c0()[_0x925f14(0x2635)](_0x5c5e76[_0x925f14(0x1a56)]['MailAccountId'])&&(_0x5c5e76[_0x925f14(0x1a56)][_0x925f14(0x658)]=_0x3f65c0()(_0x5c5e76[_0x925f14(0x1593)][_0x925f14(0x19c7)])[_0x925f14(0x205)]('id')[_0x925f14(0x2421)]()['value']());_0x5c5e76[_0x925f14(0x1a56)][_0x925f14(0x28fa)]&&_0x5c5e76['query'][_0x925f14(0x28fa)][_0x925f14(0x172b)](_0x925f14(0x186))>=0x0&&(_0x5c5e76[_0x925f14(0x1a56)]=_0x3f65c0()['omit'](_0x5c5e76[_0x925f14(0x1a56)],_0x925f14(0x28fa))),_0x5c5e76['query'][_0x925f14(0x287)]=!![],_0x5c5e76[_0x925f14(0x2516)]=_0x5c5e76['query'][_0x925f14(0x1dd6)]?!![]:![];}}catch(_0x4ea903){console[_0x925f14(0x1980)](_0x4ea903);}else{const _0x3b88ed={'$gte':_0x2deec6()()[_0x925f14(0x1fcc)](_0x925f14(0x12b7))[_0x925f14(0x65f)](0x0,!![])[_0x925f14(0x22b0)](),'$lte':_0x2deec6()()[_0x925f14(0x824)](_0x925f14(0x12b7))[_0x925f14(0x65f)](0x0,!![])[_0x925f14(0x22b0)]()},_0x3792b3={'MailAccountId':_0x3f65c0()[_0x925f14(0x205)](_0x5c5e76[_0x925f14(0x1593)][_0x925f14(0x19c7)],'id'),'createdAt':_0x3b88ed};_0x5c5e76['query']=_0x3f65c0()[_0x925f14(0x168d)](_0x5c5e76['query'],_0x3792b3);}_0x29ea70['on'](_0x925f14(0x240e),_0x37feb6),_0x29ea70['on'](_0x925f14(0xb1d),_0x37feb6),_0x29ea70['on'](_0x925f14(0x26a8),_0x1ff437),_0x29ea70['on'](_0x925f14(0x27c9),_0x4a9e52),_0x29ea70['on'](_0x925f14(0x1f87),_0x4a9e52),_0x29ea70['on']('user_has_mail_interactions:save',_0x48aeef),_0x29ea70['on']('user_has_mail_interactions:remove',_0x42d9bd),_0x35b28b(_0x5c5e76[_0x925f14(0x1a56)][_0x925f14(0x844)]);});}function _0x5c7de6(){const _0x15e333=_0x1454c6;return[{'name':'Start\x20Date','key':_0x15e333(0xc68),'type':'date','label':_0x15e333(0x2902)},{'name':_0x15e333(0x1c7c),'key':_0x15e333(0x229e),'type':'select','label':_0x15e333(0x8f5),'customOptions':[{'value':0x0,'translate':'DASHBOARDS.UNREAD'},{'value':0x1,'translate':_0x15e333(0x1ce6)},{'value':null,'translate':_0x15e333(0x175e)}]},{'name':_0x15e333(0x74e),'key':_0x15e333(0x1943),'type':_0x15e333(0xa5f),'label':_0x15e333(0x1682),'customOptions':[{'value':0x0,'translate':_0x15e333(0x143b)},{'value':0x1,'translate':_0x15e333(0x1805)},{'value':null,'translate':'DASHBOARDS.ALL'}]},{'name':_0x15e333(0x2715),'key':_0x15e333(0x100d),'type':_0x15e333(0xa5f),'label':_0x15e333(0x103),'options':_0x5c5e76[_0x15e333(0xcb3)][_0x15e333(0x19c7)],'customOptions':[{'value':_0x15e333(0x203c),'translate':_0x15e333(0x69c)},{'value':undefined,'translate':'DASHBOARDS.ALL'}],'ngValue':'name','ngIf':'closed\x20===\x200'},{'name':'Account','key':_0x15e333(0x658),'type':_0x15e333(0x175c),'label':_0x15e333(0x1b49),'options':_0x5c5e76['mailAccounts']['rows'],'clearAll':![]},{'name':_0x15e333(0x294a),'key':_0x15e333(0xea2),'type':_0x15e333(0xa5f),'label':_0x15e333(0x127),'customOptions':[{'value':_0x5c5e76[_0x15e333(0xe7b)]['id'],'translate':'DASHBOARDS.ME'},{'value':'null','translate':_0x15e333(0x38d)},{'value':undefined,'translate':_0x15e333(0x175e)}]},{'name':'Tag','key':_0x15e333(0xa80),'type':_0x15e333(0x175c),'label':_0x15e333(0x1c0e),'options':_0x5c5e76['tags']['rows'],'placeholder':_0x15e333(0x66f)}];}function _0x4fb3df(_0x1f986a){const _0x27974b=_0x1454c6;_0x5c5e76[_0x27974b(0x14eb)]=![],_0x5c5e76[_0x27974b(0x1250)]=_0x1f986a||{'count':0x0,'rows':[]};for(let _0x4cf50d=0x0;_0x4cf50d<_0x5c5e76[_0x27974b(0x1250)][_0x27974b(0x19c7)][_0x27974b(0x402)];_0x4cf50d+=0x1){_0x20d647(_0x5c5e76[_0x27974b(0x1250)][_0x27974b(0x19c7)][_0x4cf50d]);}}function _0x35b28b(_0x15e82f){const _0x2c352a=_0x1454c6;_0x5c5e76[_0x2c352a(0x14eb)]=!![];!_0x15e82f&&(_0x5c5e76[_0x2c352a(0x1a56)][_0x2c352a(0x844)]=0x1);_0x5c5e76[_0x2c352a(0x1a56)]['offset']=(_0x5c5e76['query'][_0x2c352a(0x844)]-0x1)*_0x5c5e76['query'][_0x2c352a(0x221e)];let _0x2dc54e=_0x2111b6['localStorage'][_0x2c352a(0x1519)]('motion2.home.mail:'+_0x5c5e76['user']['id']);_0x2dc54e=_0x2dc54e?JSON[_0x2c352a(0x975)](_0x2dc54e):{},_0x2dc54e[_0x2c352a(0x1a56)]=_0x5c5e76[_0x2c352a(0x1a56)],_0x2111b6[_0x2c352a(0x1c39)][_0x2c352a(0xc32)](_0x2c352a(0x131c)+_0x5c5e76[_0x2c352a(0xe7b)]['id'],JSON[_0x2c352a(0x10bb)](_0x2dc54e)),_0x5c5e76[_0x2c352a(0xb9c)]=_0x368fc3[_0x2c352a(0x3c7)]['get'](_0x5c5e76[_0x2c352a(0x1a56)],_0x4fb3df)[_0x2c352a(0x2945)];}function _0x417282(_0x3894d6,_0x6a2a5d){const _0x1f3f5e=_0x1454c6;_0x438610['$parent']['vm'][_0x1f3f5e(0x2614)](_0x1f3f5e(0x56b),_0x6a2a5d);}function _0x5ac9d2(_0x32147c,_0x3e5825,_0x125f8b){const _0x3299f2=_0x1454c6;_0x368fc3[_0x3299f2(0x3c7)][_0x3299f2(0x15b1)]({'id':_0x3e5825['id'],'attachments':_0x125f8b})['$promise']['then'](function(_0x371128){const _0x1b0dbd=_0x3299f2,_0x2aefc9=[_0x371128[_0x1b0dbd(0x2eb)]],_0x95da5b=_0x1b0dbd(0x16ff)+_0x3e5825['id']+_0x1b0dbd(0xf04),_0x306cbe=new Blob(_0x2aefc9,{'type':_0x371128[_0x1b0dbd(0x1142)]}),_0xb45206=window['document'][_0x1b0dbd(0x24ec)]('a');_0xb45206[_0x1b0dbd(0x1652)](_0x1b0dbd(0x1b3c),URL[_0x1b0dbd(0x1c58)](_0x306cbe)),_0xb45206[_0x1b0dbd(0x1652)](_0x1b0dbd(0x15b1),_0x95da5b),document['body'][_0x1b0dbd(0x23e)](_0xb45206),_0xb45206[_0x1b0dbd(0x1fa5)]();})[_0x3299f2(0x129e)](function(_0x132d5e){const _0x36832e=_0x3299f2;if(_0x132d5e[_0x36832e(0x524)]&&_0x132d5e[_0x36832e(0x524)][_0x36832e(0xcef)]&&_0x132d5e[_0x36832e(0x524)][_0x36832e(0xcef)][_0x36832e(0x402)])for(let _0x3b8cfd=0x0;_0x3b8cfd<_0x132d5e['data'][_0x36832e(0xcef)][_0x36832e(0x402)];_0x3b8cfd+=0x1){_0x3f8898['error']({'title':_0x132d5e[_0x36832e(0x524)][_0x36832e(0xcef)][_0x3b8cfd][_0x36832e(0x1142)],'msg':_0x132d5e[_0x36832e(0x524)]['errors'][_0x3b8cfd][_0x36832e(0x7fd)]});}else _0x3f8898['error']({'title':_0x132d5e['status']?_0x36832e(0x262a)+_0x132d5e[_0x36832e(0x107b)]+_0x36832e(0x1315)+_0x132d5e[_0x36832e(0x167f)]:_0x36832e(0xd51),'msg':_0x132d5e['data']?JSON[_0x36832e(0x10bb)](_0x132d5e[_0x36832e(0x524)]['message']):_0x132d5e['toString']()});});}function _0x36e4d7(_0x54583d,_0x26f53f){const _0x44fde7=_0x1454c6,_0x24a131=_0x5c5e76['user'][_0x44fde7(0x211c)]||_0x5c5e76['user']['chatPause']||_0x5c5e76['user'][_0x44fde7(0x1e9e)]||_0x5c5e76['user'][_0x44fde7(0xcc5)]||_0x5c5e76[_0x44fde7(0xe7b)]['faxPause'],_0x444a22=!_0x26f53f[_0x44fde7(0xb48)]['mandatoryDisposition'];_0x234533[_0x44fde7(0x2615)]({'controller':_0x44fde7(0xe23),'controllerAs':'vm','templateUrl':_0x56fd44,'parent':angular['element'](_0x141134['body']),'clickOutsideToClose':_0x444a22,'escapeToClose':_0x444a22,'onRemoving':function(){const _0x2e4a88=_0x44fde7;_0x5c5e76[_0x2e4a88(0xe7b)]&&_0x26f53f['Account']['mandatoryDisposition']&&!_0x24a131&&_0x368fc3['user'][_0x2e4a88(0x974)]({'id':_0x5c5e76[_0x2e4a88(0xe7b)]['id']})[_0x2e4a88(0x2945)]['catch'](function(_0x181a9e){console['error'](_0x181a9e);});},'locals':{'user':_0x5c5e76[_0x44fde7(0xe7b)],'channel':_0x44fde7(0x56b),'interaction':_0x26f53f}});}function _0x20d647(_0x394ff6){const _0x5c7a0e=_0x1454c6;if(!_0x3f65c0()[_0x5c7a0e(0x2635)](_0x394ff6['to'])&&_0x394ff6[_0x5c7a0e(0xb48)]&&!_0x3f65c0()['includes'](_0x394ff6['to'],_0x394ff6[_0x5c7a0e(0xb48)][_0x5c7a0e(0x1a2b)]))_0x394ff6[_0x5c7a0e(0x792)]=_0x394ff6['to'][_0x5c7a0e(0x10c8)]('\x20<')[0x0],_0x394ff6[_0x5c7a0e(0x14e3)]=_0x394ff6['to']['split']('<')[_0x5c7a0e(0x18c1)]()[_0x5c7a0e(0x10c8)]('>')[0x0];else _0x394ff6['Contact']?(_0x394ff6[_0x5c7a0e(0x792)]=(_0x394ff6[_0x5c7a0e(0x364)][_0x5c7a0e(0x1ed4)]||'')+'\x20'+(_0x394ff6[_0x5c7a0e(0x364)][_0x5c7a0e(0xee4)]||''),_0x394ff6[_0x5c7a0e(0x14e3)]=_0x394ff6[_0x5c7a0e(0x364)][_0x5c7a0e(0x1a2b)]||''):_0x394ff6[_0x5c7a0e(0x792)]=_0x2c32f3[_0x5c7a0e(0xde)](_0x5c7a0e(0xe0b));}function _0x456684(_0x1eec96){const _0x19940c=_0x1454c6;if(_0x1eec96['UserId'])return _0x1eec96[_0x19940c(0xea2)]===_0x5c5e76[_0x19940c(0xe7b)]['id']?_0x2c32f3[_0x19940c(0xde)](_0x19940c(0x6d9)):_0x1eec96['Owner'][_0x19940c(0x286a)]+'\x20<'+_0x1eec96[_0x19940c(0xac5)][_0x19940c(0x113f)]+'>';return _0x2c32f3['instant'](_0x19940c(0x38d));}function _0x55e5ec(_0xb4f460){const _0x47a038=_0x1454c6;if(_0xb4f460[_0x47a038(0xb48)])return _0xb4f460[_0x47a038(0xb48)][_0x47a038(0x2293)];return _0x2c32f3[_0x47a038(0xde)](_0x47a038(0xe0b));}function _0x4875ab(_0x335a28,_0x32239b){const _0xe5db86=_0x1454c6;_0x32239b[_0xe5db86(0xe80)]?(_0x32239b['interaction']['isDraft']=!![],_0x417282(null,_0x32239b[_0xe5db86(0xe80)])):_0x234533['show']({'controller':_0xe5db86(0x1faa),'controllerAs':'vm','templateUrl':_0x379013,'parent':angular['element'](_0x141134[_0xe5db86(0x2586)]),'clickOutsideToClose':![],'locals':{'account':_0x32239b['account'],'message':_0x32239b['content'],'type':_0xe5db86(0x1d96),'interaction':{}},'fullscreen':!![]})[_0xe5db86(0x146b)](function(_0x114d3d){const _0x78536b=_0xe5db86;if(_0x114d3d){if(_0x114d3d['message']&&_0x114d3d[_0x78536b(0x7fd)][_0x78536b(0x1703)]){const _0x37f6f0={'id':_0x32239b['id'],'channel':_0x78536b(0x56b),'account':_0x114d3d[_0x78536b(0x1f8e)],'message':_0x114d3d[_0x78536b(0x7fd)]};_0x342adb[_0x78536b(0x18e1)](_0x37f6f0);}else{const _0x369ad8=_0x114d3d;return _0x368fc3[_0x78536b(0x67d)][_0x78536b(0x1443)]({'id':_0x32239b[_0x78536b(0x1f8e)]['id']},_0x369ad8)['$promise'][_0x78536b(0x146b)](function(_0x2d9979){const _0xb7463d=_0x78536b;_0x342adb[_0xb7463d(0x2640)](_0x32239b['id']);if(_0x2d9979&&_0x2d9979[_0xb7463d(0x1c7c)]&&_0x2d9979[_0xb7463d(0x1c7c)][_0xb7463d(0x402)]){if(_0x369ad8[_0xb7463d(0x2644)]&&_0x369ad8[_0xb7463d(0x2644)]['length'])for(let _0x57202e=0x0;_0x57202e<_0x369ad8[_0xb7463d(0x2644)][_0xb7463d(0x402)];_0x57202e+=0x1){_0x368fc3['attachment']['update']({'id':_0x369ad8[_0xb7463d(0x2644)][_0x57202e]['id']},{'MailMessageId':_0x3f65c0()['head'](_0x2d9979[_0xb7463d(0x1c7c)])['id']});}_0x3f8898[_0xb7463d(0x1c75)]({'title':'Message\x20properly\x20sent!','msg':'Message\x20has\x20been\x20sent!'});if(_0x2d9979[_0xb7463d(0x1943)]){_0x2d9979['disposition']=null;const _0xb98ba4=!_0x32239b[_0xb7463d(0x1f8e)][_0xb7463d(0xc9e)],_0x113564=_0x5c5e76[_0xb7463d(0xe7b)][_0xb7463d(0x211c)]||_0x5c5e76[_0xb7463d(0xe7b)][_0xb7463d(0x5f7)]||_0x5c5e76['user']['mailPause']||_0x5c5e76[_0xb7463d(0xe7b)]['openchannelPause']||_0x5c5e76[_0xb7463d(0xe7b)][_0xb7463d(0x25c4)];_0x234533[_0xb7463d(0x2615)]({'controller':_0xb7463d(0xe23),'controllerAs':'vm','templateUrl':_0x56fd44,'parent':angular['element'](_0x141134[_0xb7463d(0x2586)]),'onRemoving':function(){const _0x136d97=_0xb7463d;_0x5c5e76[_0x136d97(0xe7b)]&&_0x32239b[_0x136d97(0x1f8e)]['mandatoryDisposition']&&!_0x113564&&_0x368fc3[_0x136d97(0xe7b)][_0x136d97(0x974)]({'id':_0x5c5e76['user']['id']})[_0x136d97(0x2945)][_0x136d97(0x129e)](function(_0x59ee5d){const _0x3d1fd5=_0x136d97;console[_0x3d1fd5(0x1980)](_0x59ee5d);});},'clickOutsideToClose':_0xb98ba4,'escapeToClose':_0xb98ba4,'locals':{'user':_0x5c5e76[_0xb7463d(0xe7b)],'channel':'mail','interaction':_0x2d9979}});}else _0x438610[_0xb7463d(0x2870)]['vm']['addInteractionTab']('mail',_0x2d9979);}})[_0x78536b(0x129e)](function(_0x50f595){const _0xc83ba0=_0x78536b;if(_0x50f595[_0xc83ba0(0x524)]&&_0x50f595[_0xc83ba0(0x524)][_0xc83ba0(0xcef)]&&_0x50f595[_0xc83ba0(0x524)][_0xc83ba0(0xcef)][_0xc83ba0(0x402)])for(let _0x19132b=0x0;_0x19132b<_0x50f595[_0xc83ba0(0x524)][_0xc83ba0(0xcef)]['length'];_0x19132b++){_0x3f8898[_0xc83ba0(0x1980)]({'title':_0x50f595['data'][_0xc83ba0(0xcef)][_0x19132b][_0xc83ba0(0x1142)],'msg':_0x50f595[_0xc83ba0(0x524)][_0xc83ba0(0xcef)][_0x19132b][_0xc83ba0(0x7fd)]});}else _0x3f8898[_0xc83ba0(0x1980)]({'title':_0x50f595[_0xc83ba0(0x107b)]?_0xc83ba0(0x262a)+_0x50f595[_0xc83ba0(0x107b)]+_0xc83ba0(0x1315)+_0x50f595[_0xc83ba0(0x167f)]:_0xc83ba0(0x892),'msg':_0x50f595['data']?JSON[_0xc83ba0(0x10bb)](_0x50f595[_0xc83ba0(0x524)][_0xc83ba0(0x7fd)]):_0x50f595[_0xc83ba0(0x7fd)]||_0x50f595[_0xc83ba0(0xd5f)]()});});}}});}function _0x386885(_0x1b5c34,_0x498d4a){const _0x16271f=_0x1454c6;_0x234533[_0x16271f(0x2615)]({'controller':_0x16271f(0x1faa),'controllerAs':'vm','templateUrl':_0x379013,'parent':angular[_0x16271f(0x1853)](_0x141134[_0x16271f(0x2586)]),'clickOutsideToClose':![],'locals':{'account':_0x498d4a,'message':{},'type':_0x16271f(0x16d9),'interaction':{}},'fullscreen':!![]})[_0x16271f(0x146b)](function(_0x15a4d4){const _0x2e175a=_0x16271f;if(_0x15a4d4){if(_0x15a4d4[_0x2e175a(0x7fd)]&&_0x15a4d4[_0x2e175a(0x7fd)]['savedAsDraft']){const _0x46924a={'channel':_0x2e175a(0x56b),'account':_0x498d4a,'message':_0x15a4d4[_0x2e175a(0x7fd)],'contact':_0x15a4d4[_0x2e175a(0x1662)]};_0x342adb[_0x2e175a(0x387)](_0x46924a);}else{const _0x27e4ce=_0x15a4d4;return _0x368fc3['mailAccount']['send']({'id':_0x498d4a['id']},_0x27e4ce)['$promise'][_0x2e175a(0x146b)](function(_0x4595c5){const _0x16fa03=_0x2e175a;if(_0x4595c5&&_0x4595c5['Messages']&&_0x4595c5[_0x16fa03(0x1c7c)][_0x16fa03(0x402)]){if(_0x27e4ce['attachments']&&_0x27e4ce[_0x16fa03(0x2644)][_0x16fa03(0x402)])for(let _0x16158e=0x0;_0x16158e<_0x27e4ce['attachments'][_0x16fa03(0x402)];_0x16158e+=0x1){_0x368fc3['attachment'][_0x16fa03(0x18e1)]({'id':_0x27e4ce['attachments'][_0x16158e]['id']},{'MailMessageId':_0x3f65c0()[_0x16fa03(0x6d8)](_0x4595c5[_0x16fa03(0x1c7c)])['id']});}_0x3f8898[_0x16fa03(0x1c75)]({'title':_0x16fa03(0x24ad),'msg':_0x16fa03(0x54f)});if(_0x4595c5[_0x16fa03(0x1943)]){_0x4595c5[_0x16fa03(0x9e1)]=null;const _0xe922c0=!_0x498d4a['mandatoryDisposition'],_0x18ca24=_0x5c5e76[_0x16fa03(0xe7b)][_0x16fa03(0x211c)]||_0x5c5e76[_0x16fa03(0xe7b)][_0x16fa03(0x5f7)]||_0x5c5e76['user']['mailPause']||_0x5c5e76[_0x16fa03(0xe7b)][_0x16fa03(0xcc5)]||_0x5c5e76[_0x16fa03(0xe7b)]['faxPause'];_0x234533[_0x16fa03(0x2615)]({'controller':_0x16fa03(0xe23),'controllerAs':'vm','templateUrl':_0x56fd44,'parent':angular[_0x16fa03(0x1853)](_0x141134[_0x16fa03(0x2586)]),'onRemoving':function(){const _0x4771ce=_0x16fa03;_0x5c5e76[_0x4771ce(0xe7b)]&&_0x498d4a['mandatoryDisposition']&&!_0x18ca24&&_0x368fc3[_0x4771ce(0xe7b)][_0x4771ce(0x974)]({'id':_0x5c5e76['user']['id']})[_0x4771ce(0x2945)][_0x4771ce(0x129e)](function(_0x3173f1){const _0x10afda=_0x4771ce;console[_0x10afda(0x1980)](_0x3173f1);});},'clickOutsideToClose':_0xe922c0,'escapeToClose':_0xe922c0,'locals':{'user':_0x5c5e76[_0x16fa03(0xe7b)],'channel':_0x16fa03(0x56b),'interaction':_0x4595c5}});}else _0x438610[_0x16fa03(0x2870)]['vm'][_0x16fa03(0x2614)](_0x16fa03(0x56b),_0x4595c5);}})['catch'](function(_0x2f9137){const _0x1967d4=_0x2e175a;if(_0x2f9137[_0x1967d4(0x524)]&&_0x2f9137['data'][_0x1967d4(0xcef)]&&_0x2f9137[_0x1967d4(0x524)][_0x1967d4(0xcef)][_0x1967d4(0x402)])for(let _0x22ce01=0x0;_0x22ce01<_0x2f9137[_0x1967d4(0x524)][_0x1967d4(0xcef)][_0x1967d4(0x402)];_0x22ce01++){_0x3f8898[_0x1967d4(0x1980)]({'title':_0x2f9137[_0x1967d4(0x524)][_0x1967d4(0xcef)][_0x22ce01][_0x1967d4(0x1142)],'msg':_0x2f9137['data'][_0x1967d4(0xcef)][_0x22ce01][_0x1967d4(0x7fd)]});}else _0x3f8898['error']({'title':_0x2f9137[_0x1967d4(0x107b)]?_0x1967d4(0x262a)+_0x2f9137['status']+_0x1967d4(0x1315)+_0x2f9137[_0x1967d4(0x167f)]:'MAILACCOUNT:SEND','msg':_0x2f9137['data']?JSON['stringify'](_0x2f9137[_0x1967d4(0x524)][_0x1967d4(0x7fd)]):_0x2f9137[_0x1967d4(0x7fd)]||_0x2f9137['toString']()});});}}});}function _0x48aeef(_0x43041d){const _0x2cb584=_0x1454c6;let _0x534352;const _0x5f0a61=_0x3f65c0()[_0x2cb584(0xc84)](_0x5c5e76[_0x2cb584(0x1250)]['rows'],{'id':_0x43041d[_0x2cb584(0x1d89)]});_0x5f0a61&&_0x5f0a61['Users']&&(_0x534352=_0x3f65c0()[_0x2cb584(0xc84)](_0x5f0a61[_0x2cb584(0x3c4)],{'id':_0x43041d[_0x2cb584(0xea2)]}),!_0x534352&&_0x5f0a61[_0x2cb584(0x3c4)]['push']({'id':_0x43041d[_0x2cb584(0xea2)]}));}function _0x42d9bd(_0x44ab7){const _0xeb91bb=_0x1454c6,_0x26afeb=_0x3f65c0()[_0xeb91bb(0xc84)](_0x5c5e76[_0xeb91bb(0x1250)][_0xeb91bb(0x19c7)],{'id':_0x44ab7[_0xeb91bb(0x1d89)]});_0x26afeb&&_0x26afeb[_0xeb91bb(0x3c4)]&&_0x3f65c0()[_0xeb91bb(0x2640)](_0x26afeb[_0xeb91bb(0x3c4)],{'id':_0x44ab7['UserId']});}function _0x37feb6(_0x5755af){const _0x368c8d=_0x1454c6;if(_0x5755af){const _0x190c96=_0x3f65c0()[_0x368c8d(0xc84)](_0x5c5e76[_0x368c8d(0x1250)][_0x368c8d(0x19c7)],{'id':_0x5755af['id']});if(_0x190c96){_0x190c96[_0x368c8d(0x3c4)]=[];_0x5755af[_0x368c8d(0x1943)]&&(_0x190c96['unreadMessages']=0x0);if(_0x5c5e76[_0x368c8d(0x1a56)][_0x368c8d(0x28fa)]){const _0xbf506=_0x3f65c0()[_0x368c8d(0xd4d)](_0x5c5e76[_0x368c8d(0x1a56)]['sort'],'-')?'desc':'asc';_0x5c5e76['mailInteractions'][_0x368c8d(0x19c7)]=_0x3f65c0()[_0x368c8d(0x979)](_0x5c5e76['mailInteractions'][_0x368c8d(0x19c7)],_0x3f65c0()['trimStart'](_0x5c5e76[_0x368c8d(0x1a56)]['sort'],'-'),_0xbf506);}_0x3f65c0()['merge'](_0x190c96,_0x3f65c0()[_0x368c8d(0x40e)](_0x5755af,_0x3f65c0()[_0x368c8d(0x627)](_0x190c96)));}else _0x35b28b(_0x5c5e76[_0x368c8d(0x1a56)][_0x368c8d(0x844)]);}}function _0x1ff437(_0x2ac8f9){const _0x32f725=_0x1454c6;if(_0x2ac8f9){const _0x55b043=_0x3f65c0()[_0x32f725(0xc84)](_0x5c5e76[_0x32f725(0x1250)][_0x32f725(0x19c7)],{'id':_0x2ac8f9['id']});_0x55b043&&(_0x55b043[_0x32f725(0x2331)]=_0x2ac8f9[_0x32f725(0x1b86)]||[],_0x3f65c0()[_0x32f725(0x168d)](_0x55b043,_0x3f65c0()[_0x32f725(0x40e)](_0x2ac8f9,_0x3f65c0()[_0x32f725(0x627)](_0x55b043))));}}function _0x4a9e52(_0x8212a7){const _0x2c3bb6=_0x1454c6;if(_0x8212a7&&!_0x8212a7[_0x2c3bb6(0xaf0)]){const _0x28ae23=_0x3f65c0()[_0x2c3bb6(0xc84)](_0x5c5e76[_0x2c3bb6(0x1250)][_0x2c3bb6(0x19c7)],{'id':_0x8212a7[_0x2c3bb6(0x1d89)]});if(_0x28ae23){const _0x122b3c=_0x3f65c0()[_0x2c3bb6(0xc84)](_0x28ae23[_0x2c3bb6(0x1c7c)],{'id':_0x8212a7['id']});_0x122b3c?_0x3f65c0()[_0x2c3bb6(0x168d)](_0x122b3c,_0x3f65c0()[_0x2c3bb6(0x40e)](_0x8212a7,_0x3f65c0()[_0x2c3bb6(0x627)](_0x122b3c))):(_0x3f65c0()[_0x2c3bb6(0x1b36)](_0x28ae23[_0x2c3bb6(0x1c7c)])&&(_0x28ae23[_0x2c3bb6(0x1c7c)]={'count':0x0}),!_0x8212a7['read']&&(_0x28ae23[_0x2c3bb6(0x1c7c)][_0x2c3bb6(0x51c)]+=0x1));}}}function _0x26a1dd(){const _0x4a40c3=_0x1454c6;_0x5c5e76[_0x4a40c3(0x2516)]=![];}function _0x18ce7d(){_0x5c5e76['isSearchBarVisible']=!![];}function _0x366c21(){const _0x592710=_0x1454c6;_0x5c5e76['isSearchBarVisible']=![],_0x234533['show']({'controller':'AdvancedSearchController','controllerAs':'vm','templateUrl':_0x3fb128,'parent':angular['element'](_0x141134[_0x592710(0x2586)]),'clickOutsideToClose':![],'locals':{'color':_0x5c5e76[_0x592710(0x1527)],'fields':_0x5c5e76[_0x592710(0xe93)][_0x592710(0x2867)],'storagePath':_0x592710(0x1ef6)},'fullscreen':!![]})['then'](function(_0x137961){const _0x1955cb=_0x592710;_0x5c5e76[_0x1955cb(0x1a56)][_0x1955cb(0x21da)]=_0x137961===![]?undefined:_0x137961;if(_0x5c5e76[_0x1955cb(0x1a56)][_0x1955cb(0x21da)]||_0x137961===![])_0x35b28b();})[_0x592710(0x129e)](function(_0x373cf8){const _0x436aff=_0x592710;_0x3f8898[_0x436aff(0x1980)]({'title':'ERROR','msg':_0x373cf8[_0x436aff(0x524)]?JSON['stringify'](_0x373cf8[_0x436aff(0x524)][_0x436aff(0x7fd)]):_0x373cf8[_0x436aff(0xd5f)]()});});}let _0x401c2c=!![],_0x380072=0x1;_0x438610[_0x1454c6(0x21e8)](_0x1454c6(0x2669),function(_0x4d7b67,_0x2602e9){const _0x499349=_0x1454c6;_0x401c2c?_0x134f81(function(){_0x401c2c=![];}):(!_0x2602e9&&(_0x380072=_0x5c5e76[_0x499349(0x1a56)][_0x499349(0x844)]),_0x4d7b67!==_0x2602e9&&(_0x5c5e76[_0x499349(0x1a56)]['page']=0x1),!_0x4d7b67&&(_0x5c5e76[_0x499349(0x1a56)][_0x499349(0x844)]=_0x380072),_0x35b28b(_0x5c5e76['query'][_0x499349(0x844)]));}),_0x438610[_0x1454c6(0x16ad)]('$destroy',function(){const _0x36284d=_0x1454c6;_0x29ea70[_0x36284d(0x1c5f)](_0x36284d(0x27c9)),_0x29ea70[_0x36284d(0x1c5f)]('mailMessage:update'),_0x29ea70['removeAllListeners'](_0x36284d(0x240e)),_0x29ea70['removeAllListeners'](_0x36284d(0x26a8)),_0x29ea70[_0x36284d(0x1c5f)](_0x36284d(0xb1d)),_0x29ea70[_0x36284d(0x1c5f)](_0x36284d(0x2931)),_0x29ea70[_0x36284d(0x1c5f)](_0x36284d(0x1313));});}const _0x1513e2=_0x20bafc;;_0x3543a7[_0x313a4d(0x11c2)]=[_0x313a4d(0x4d8),_0x313a4d(0x910),_0x313a4d(0x1abe),_0x313a4d(0x10e8),_0x313a4d(0xa87),_0x313a4d(0x247f),_0x313a4d(0x1aa9),'toasty'];function _0x3543a7(_0x8b1d51,_0x2b2de1,_0x3aedb2,_0x58ce4c,_0x256def,_0x4c4f79,_0x579d6d,_0x206d11){const _0x346636=_0x313a4d,_0x192937=this;_0x192937[_0x346636(0x2321)]=_0x256def[_0x346636(0xb12)](),_0x192937[_0x346636(0x1324)]={},_0x192937['contacts']={'count':0x0,'rows':[]},_0x192937[_0x346636(0x1b86)]={'count':0x0,'rows':[]},_0x192937[_0x346636(0x1a56)]={'includeAll':!![],'id':_0x192937[_0x346636(0x2321)]['id'],'sort':_0x346636(0x12f2),'limit':0xa,'page':0x1},_0x192937[_0x346636(0xe93)]={'fields':[]},_0x192937[_0x346636(0x1527)]=_0x346636(0x10f),_0x192937['getContacts']=_0x3f5a80,_0x192937[_0x346636(0x41d)]=_0xbcfc67,_0x192937[_0x346636(0x1325)]=_0x496f0c,_0x192937[_0x346636(0x3d1)]=_0x47ae1b,_0x192937[_0x346636(0x155f)]=_0xa69cfb,_0x192937['call']=_0x2b2de1['$parent']['vm'][_0x346636(0x133b)],_0x192937['onInit']=_0x17a3d0,_0x192937[_0x346636(0x1c4f)]=_0x5d0c50,_0x192937[_0x346636(0x28b7)]=_0x3104c3,_0x192937['openAdvancedSearch']=_0x4853af;function _0x17a3d0(){const _0x56f4a8=_0x346636;_0x4c4f79[_0x56f4a8(0xf03)][_0x56f4a8(0x16b4)]({'fields':_0x56f4a8(0x3cd),'sort':_0x56f4a8(0x19eb),'nolimit':!![]})[_0x56f4a8(0x2945)][_0x56f4a8(0x146b)](function(_0x936332){const _0x98a68e=_0x56f4a8;return _0x192937['lists']=_0x936332||{'count':0x0,'rows':[]},_0x192937[_0x98a68e(0x96c)]=_0x3f65c0()[_0x98a68e(0x194)](_0x192937[_0x98a68e(0x1324)][_0x98a68e(0x19c7)],'id'),_0x4c4f79[_0x98a68e(0xa80)][_0x98a68e(0x16b4)]()[_0x98a68e(0x2945)];})[_0x56f4a8(0x146b)](function(_0x53a5ef){const _0x55523d=_0x56f4a8;_0x192937[_0x55523d(0x1b86)]=_0x53a5ef||{'count':0x0,'rows':[]};})[_0x56f4a8(0x146b)](function(){_0x192937['quickFilters']=_0x1473d2();})[_0x56f4a8(0x129e)](function(_0x3fdd55){console['error'](_0x3fdd55);})[_0x56f4a8(0x1ec6)](function(){const _0x173010=_0x56f4a8;let _0x2d5752=_0x579d6d[_0x173010(0x1c39)][_0x173010(0x1519)](_0x173010(0x287c)+_0x192937['currentUser']['id']);if(_0x2d5752)try{_0x2d5752=JSON[_0x173010(0x975)](_0x2d5752);if(_0x2d5752[_0x173010(0x1a56)]){_0x192937[_0x173010(0x1a56)]=_0x3f65c0()[_0x173010(0x168d)](_0x192937[_0x173010(0x1a56)],_0x2d5752[_0x173010(0x1a56)]);if(_0x3f65c0()[_0x173010(0x2635)](_0x192937[_0x173010(0x1324)][_0x173010(0x19c7)]))_0x192937['query']['ListId']=[];else _0x3f65c0()[_0x173010(0x2635)](_0x192937['query']['ListId'])&&(_0x192937[_0x173010(0x1a56)][_0x173010(0xb7c)]=_0x3f65c0()(_0x192937['lists'][_0x173010(0x19c7)])[_0x173010(0x205)]('id')[_0x173010(0x2421)]()[_0x173010(0x175d)]());}}catch(_0x1167db){console['error'](_0x1167db);}else _0x192937[_0x173010(0x1a56)]['ListId']=_0x3f65c0()[_0x173010(0x205)](_0x192937['lists']['rows'],'id');_0x192937[_0x173010(0x2516)]=_0x192937[_0x173010(0x1a56)][_0x173010(0x1dd6)]?!![]:![],_0x3f5a80();});}function _0x1473d2(){const _0x4fd81d=_0x346636;return[{'name':_0x4fd81d(0x1940),'key':_0x4fd81d(0xb7c),'type':_0x4fd81d(0x175c),'label':_0x4fd81d(0x3b9),'options':_0x192937[_0x4fd81d(0x1324)][_0x4fd81d(0x19c7)],'clearAll':![]},{'name':_0x4fd81d(0x23a8),'key':_0x4fd81d(0xa80),'type':'multiselect','label':_0x4fd81d(0x1c0e),'options':_0x192937['tags']['rows'],'placeholder':_0x4fd81d(0x66f)}];}function _0xc6d91c(_0x42d55c){const _0x17701a=_0x346636;_0x192937[_0x17701a(0x14eb)]=![],_0x192937[_0x17701a(0x1471)]=_0x42d55c||{'count':0x0,'rows':[]};}function _0x3f5a80(_0xe4e2e0){const _0x451b87=_0x346636;_0x192937['searchInProgress']=!![],_0x66a64a();!_0xe4e2e0&&(_0x192937[_0x451b87(0x1a56)]['page']=0x1);_0x192937['query']['offset']=(_0x192937[_0x451b87(0x1a56)]['page']-0x1)*_0x192937['query'][_0x451b87(0x221e)];let _0x1237d9=_0x579d6d[_0x451b87(0x1c39)][_0x451b87(0x1519)](_0x451b87(0x287c)+_0x192937[_0x451b87(0x2321)]['id']);_0x1237d9=_0x1237d9?JSON[_0x451b87(0x975)](_0x1237d9):{},_0x1237d9[_0x451b87(0x1a56)]=_0x192937[_0x451b87(0x1a56)],_0x579d6d[_0x451b87(0x1c39)][_0x451b87(0xc32)]('motion2.home.mycontacts:'+_0x192937[_0x451b87(0x2321)]['id'],JSON[_0x451b87(0x10bb)](_0x1237d9));if(_0x192937[_0x451b87(0x1a56)]['search'])_0x192937[_0x451b87(0xb85)]=_0x3f65c0()['omit'](_0x192937[_0x451b87(0x1a56)],'id');_0x192937['promise']=_0x192937['query'][_0x451b87(0x21da)]?_0x4c4f79['cmContact'][_0x451b87(0x16b4)](_0x192937[_0x451b87(0xb85)],_0xc6d91c)[_0x451b87(0x2945)]:_0x4c4f79[_0x451b87(0xe7b)]['getContacts'](_0x192937[_0x451b87(0x1a56)],_0xc6d91c)[_0x451b87(0x2945)];}function _0xa69cfb(_0x59ee10,_0x28b375){const _0x1826b1=_0x346636;_0x2b2de1[_0x1826b1(0x2870)]['vm']['addContactTab'](_0x28b375);}function _0xbcfc67(){_0x3f5a80();}function _0x47ae1b(_0x3dd763,_0x32321c){const _0x4305a9=_0x346636;_0x58ce4c[_0x4305a9(0x2615)]({'controller':_0x4305a9(0x11f3),'controllerAs':'vm','templateUrl':_0x3f981f,'parent':angular[_0x4305a9(0x1853)](_0x8b1d51['body']),'targetEvent':_0x3dd763,'clickOutsideToClose':!![],'resolve':{'contact':[_0x4305a9(0x362),function(_0x4a7b6a){const _0x26e442=_0x4305a9;return _0x4a7b6a[_0x26e442(0x2922)](_0x26e442(0x17d4),{'id':_0x32321c['id']});}],'lists':[_0x4305a9(0x362),function(_0x102e10){const _0x599b5e=_0x4305a9;return _0x102e10[_0x599b5e(0x2922)](_0x599b5e(0x22b6),{'id':_0x192937[_0x599b5e(0x2321)]['id'],'fields':_0x599b5e(0x7a7)});}]},'locals':{'contacts':_0x192937[_0x4305a9(0x1471)][_0x4305a9(0x19c7)]}});}function _0x496f0c(_0x39a973,_0x5e0e73){const _0x489266=_0x346636;_0x58ce4c[_0x489266(0x2615)]({'controller':'MergeContactDialogController','controllerAs':'vm','templateUrl':_0x1cccb8,'parent':angular[_0x489266(0x1853)](_0x8b1d51[_0x489266(0x2586)]),'targetEvent':_0x39a973,'clickOutsideToClose':!![],'resolve':{'contact':[_0x489266(0x362),function(_0x235fa5){const _0x4d7cda=_0x489266;return _0x235fa5[_0x4d7cda(0x2922)]('cmContact@get',{'id':_0x5e0e73['id']});}],'lists':[_0x489266(0x362),function(_0x4d9147){const _0x3203f4=_0x489266;return _0x4d9147[_0x3203f4(0x2922)](_0x3203f4(0x22b6),{'id':_0x192937['currentUser']['id'],'fields':_0x3203f4(0x7a7)});}]},'locals':{'contacts':_0x192937[_0x489266(0x1471)]['rows']}});}function _0x5d0c50(){_0x192937['isSearchBarVisible']=![];}function _0x3104c3(){const _0x5079b3=_0x346636;_0x192937[_0x5079b3(0x2516)]=!![];}function _0x66a64a(){const _0xe38769=_0x346636;return _0x4c4f79['cmContact']['describe']({'id':_0x192937['query'][_0xe38769(0xb7c)]})['$promise'][_0xe38769(0x146b)](function(_0x252af6){const _0x3f4723=_0xe38769;return _0x3f65c0()(_0x252af6[_0x3f4723(0x2488)]())[_0x3f4723(0x2432)]('UserId')[_0x3f4723(0x81b)]()['map'](function(_0x36eca6){return _0x1973d1(_0x36eca6);})[_0x3f4723(0x175d)]();})[_0xe38769(0x146b)](function(_0xdee211){const _0x451d1c=_0xe38769;_0x192937[_0x451d1c(0xe93)]['fields']=_0xdee211;const _0x2983e7={'name':_0x451d1c(0x2331),'column':_0x451d1c(0x23a8),'type':'multiselect','options':{'route':{'model':_0x451d1c(0xa80),'action':_0x451d1c(0x16b4),'params':{'nolimit':!![]}},'excludedOperators':[_0x451d1c(0xbe5)]}};let _0x5b331e=_0x3f65c0()[_0x451d1c(0x99c)](_0xdee211,function(_0x21acdd){const _0x27b6e9=_0x451d1c;return _0x3f65c0()['startsWith'](_0x21acdd['column'],_0x27b6e9(0x21ef));})||_0xdee211[_0x451d1c(0x402)]-0x1;if(_0x5b331e<0x0)_0x5b331e=_0xdee211[_0x451d1c(0x402)];_0x192937[_0x451d1c(0xe93)][_0x451d1c(0x2867)]['splice'](_0x5b331e,0x0,_0x2983e7);})[_0xe38769(0x129e)](function(_0x2cfe44){const _0x402f9b=_0xe38769;_0x206d11[_0x402f9b(0x1980)]({'title':_0x2cfe44['status']?'API:'+_0x2cfe44[_0x402f9b(0x107b)]+_0x402f9b(0x1315)+_0x2cfe44[_0x402f9b(0x167f)]:'DESCRIBE_CM_CONTACTS','msg':_0x2cfe44['data']?JSON[_0x402f9b(0x10bb)](_0x2cfe44[_0x402f9b(0x524)][_0x402f9b(0x7fd)]):_0x2cfe44[_0x402f9b(0xd5f)]()});});}function _0x1973d1(_0x107c96){const _0xf0eafb=_0x346636,_0x1f4d83={'name':_0x3f65c0()[_0xf0eafb(0x20d1)](_0x107c96['displayName']),'column':_0x107c96['columnName'],'options':{}};if(_0x107c96['custom'])switch(_0x107c96[_0xf0eafb(0x1802)][_0xf0eafb(0x1142)]){case _0xf0eafb(0xa8d):_0x1f4d83[_0xf0eafb(0x1142)]=_0xf0eafb(0xa8d);break;case _0xf0eafb(0xa5f):_0x1f4d83[_0xf0eafb(0x1142)]=_0xf0eafb(0x175c),_0x1f4d83['values']=_0x3f65c0()[_0xf0eafb(0x205)](JSON[_0xf0eafb(0x975)](_0x107c96['custom'][_0xf0eafb(0x81b)]),function(_0x483706,_0x17823b){const _0x62ee32=_0xf0eafb;return{'id':_0x17823b,'name':_0x483706[_0x62ee32(0x175d)],'value':_0x483706[_0x62ee32(0x175d)]};}),_0x1f4d83[_0xf0eafb(0xa08)]['field']=_0xf0eafb(0x19eb);break;case _0xf0eafb(0x1197):_0x1f4d83[_0xf0eafb(0x1142)]=_0xf0eafb(0xa5f),_0x1f4d83['values']=[{'id':0x1,'translate':'DASHBOARDS.ENABLED'},{'id':0x0,'translate':_0xf0eafb(0x1ab0)}],_0x1f4d83[_0xf0eafb(0xa08)][_0xf0eafb(0x930)]=[_0xf0eafb(0x1671)];break;case _0xf0eafb(0x181):_0x1f4d83[_0xf0eafb(0x1142)]=_0xf0eafb(0x181);break;case _0xf0eafb(0x16ca):_0x1f4d83['type']=_0xf0eafb(0x1a10);break;}else switch(_0x107c96[_0xf0eafb(0x1e1d)]){case'dateOfBirth':_0x1f4d83[_0xf0eafb(0x1142)]='date';break;case'CompanyId':_0x1f4d83['name']=_0xf0eafb(0x26c9),_0x1f4d83['type']=_0xf0eafb(0x14ee),_0x1f4d83[_0xf0eafb(0xa08)][_0xf0eafb(0xdb0)]={'model':_0xf0eafb(0x134d),'action':'get','params':{'fields':_0xf0eafb(0x7a7),'nolimit':!![]}},_0x1f4d83[_0xf0eafb(0xa08)][_0xf0eafb(0x458)]=[_0xf0eafb(0x19eb)],_0x1f4d83[_0xf0eafb(0xa08)][_0xf0eafb(0x930)]=['$ne'];break;case'ListId':_0x1f4d83['name']=_0xf0eafb(0x1940),_0x1f4d83[_0xf0eafb(0x1142)]='autocomplete',_0x1f4d83[_0xf0eafb(0xa08)][_0xf0eafb(0xdb0)]={'model':_0xf0eafb(0xe7b),'action':_0xf0eafb(0x233d),'params':{'id':_0x192937[_0xf0eafb(0x2321)]['id'],'fields':_0xf0eafb(0x7a7),'nolimit':!![]}},_0x1f4d83[_0xf0eafb(0xa08)][_0xf0eafb(0x458)]=[_0xf0eafb(0x19eb)],_0x1f4d83['options']['excludedOperators']=[_0xf0eafb(0x1671)];break;default:if(_0x3f65c0()[_0xf0eafb(0xa4e)](_0x107c96[_0xf0eafb(0x1142)][_0xf0eafb(0x256e)](),_0xf0eafb(0x81c)))_0x1f4d83[_0xf0eafb(0x1142)]=_0xf0eafb(0x181);else _0x3f65c0()['includes'](_0x107c96[_0xf0eafb(0x1142)]['toLowerCase'](),_0xf0eafb(0x1a10))?_0x1f4d83['type']='date':_0x1f4d83['type']='text';break;}return _0x1f4d83;}function _0x4853af(){const _0x158706=_0x346636;_0x192937[_0x158706(0x2516)]=![],_0x58ce4c[_0x158706(0x2615)]({'controller':'AdvancedSearchController','controllerAs':'vm','templateUrl':_0x3fb128,'parent':angular[_0x158706(0x1853)](_0x8b1d51[_0x158706(0x2586)]),'clickOutsideToClose':![],'locals':{'color':_0x192937[_0x158706(0x1527)],'fields':_0x192937['advancedSearch'][_0x158706(0x2867)],'storagePath':_0x158706(0x155c)},'fullscreen':!![]})['then'](function(_0x1cc981){const _0x121731=_0x158706;_0x192937[_0x121731(0x1a56)][_0x121731(0x21da)]=_0x1cc981===![]?undefined:_0x1cc981;if(_0x1cc981===![])_0x3f5a80();else _0x192937[_0x121731(0x1a56)][_0x121731(0x21da)]&&(_0x192937[_0x121731(0x1a56)]['search']+='||User:=$eq['+_0x192937[_0x121731(0x2321)]['id']+']',_0x3f5a80());})['catch'](function(_0x1a9c89){const _0x176b57=_0x158706;_0x206d11['error']({'title':_0x176b57(0x10f5),'msg':_0x1a9c89[_0x176b57(0x524)]?JSON[_0x176b57(0x10bb)](_0x1a9c89[_0x176b57(0x524)][_0x176b57(0x7fd)]):_0x1a9c89[_0x176b57(0xd5f)]()});});}let _0x4ea57f=!![],_0x3a953e=0x1;_0x2b2de1[_0x346636(0x21e8)](_0x346636(0x2669),function(_0x461049,_0x574d78){const _0x2dfa73=_0x346636;_0x4ea57f?_0x3aedb2(function(){_0x4ea57f=![];}):(!_0x574d78&&(_0x3a953e=_0x192937[_0x2dfa73(0x1a56)]['page']),_0x461049!==_0x574d78&&(_0x192937[_0x2dfa73(0x1a56)][_0x2dfa73(0x844)]=0x1),!_0x461049&&(_0x192937['query']['page']=_0x3a953e),_0x3f5a80());});}const _0xfea453=_0x3543a7;;_0x143c1f[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1abe),_0x313a4d(0x10e8),_0x313a4d(0x4d8),'$window',_0x313a4d(0x214b),_0x313a4d(0x247f),_0x313a4d(0xa87),_0x313a4d(0x279d),_0x313a4d(0x1fe4),'draftManager'];function _0x143c1f(_0x2ecb49,_0x276d3b,_0x4b194f,_0x2a3422,_0x4159e9,_0x51f6c5,_0x1f5223,_0x446e24,_0xd83fd1,_0x3e8b40,_0x222ed5){const _0x52533e=_0x313a4d,_0x329cd9=this;_0x329cd9[_0x52533e(0xe7b)]=_0x446e24[_0x52533e(0xb12)](),_0x329cd9[_0x52533e(0x2690)]={},_0x329cd9['setting']={},_0x329cd9[_0x52533e(0x1b86)]={'count':0x0,'rows':[]},_0x329cd9[_0x52533e(0xcb6)]={'count':0x0,'rows':[]},_0x329cd9[_0x52533e(0x1a56)]={'includeAll':!![],'sort':'-updatedAt','limit':0xa,'page':0x1,'read':null,'closed':null},_0x329cd9['advancedSearch']={'fields':[{'name':'Id','column':'id','type':_0x52533e(0x181)},{'name':'Contact','column':_0x52533e(0x364),'type':'autocomplete','options':{'searchFields':[_0x52533e(0x1ed4),_0x52533e(0xee4),'email'],'route':{'model':_0x52533e(0x18c3),'action':'get','params':{'fields':'id,firstName,lastName,email','Contact':_0x52533e(0x3fb),'nolimit':!![]}},'extraOperators':[_0x52533e(0xacb)],'excludedOperators':[_0x52533e(0x1671)]}},{'name':_0x52533e(0x710),'column':_0x52533e(0x2586),'type':_0x52533e(0xa8d),'options':{'excludedOperators':[_0x52533e(0x6be),_0x52533e(0x1671)]}},{'name':_0x52533e(0x74e),'column':_0x52533e(0x1943),'type':'select','values':[{'id':0x0,'translate':_0x52533e(0x143b)},{'id':0x1,'translate':_0x52533e(0x1805)}],'options':{'excludedOperators':[_0x52533e(0x1671)]}},{'name':_0x52533e(0x294a),'column':_0x52533e(0x2393),'type':'autocomplete','options':{'table':'i','route':{'model':_0x52533e(0xe7b),'action':_0x52533e(0x16b4),'params':{'role':_0x52533e(0x1755),'fields':_0x52533e(0x12bf),'nolimit':!![]}},'searchFields':[_0x52533e(0x286a),_0x52533e(0x19eb)],'extraOperators':['$substring'],'excludedOperators':[_0x52533e(0x1671)]}},{'name':'Account','column':_0x52533e(0x534),'type':_0x52533e(0x175c),'options':{'route':{'model':_0x52533e(0xe7b),'action':_0x52533e(0x12ef),'params':{'id':_0x329cd9[_0x52533e(0xe7b)]['id'],'nolimit':!![]}}}},{'name':_0x52533e(0x2331),'column':'Tag','type':_0x52533e(0x175c),'options':{'route':{'model':_0x52533e(0xa80),'action':_0x52533e(0x16b4),'params':{'nolimit':!![]}},'excludedOperators':[_0x52533e(0xbe5)]}},{'name':_0x52533e(0x294),'column':'createdAt','type':_0x52533e(0x1a10),'options':{'excludedOperators':[_0x52533e(0x1671)]}},{'name':_0x52533e(0x270b),'column':_0x52533e(0x26a6),'type':_0x52533e(0xa5f),'values':[{'id':0x1,'translate':_0x52533e(0x1ce6)},{'id':0x0,'translate':_0x52533e(0x33f)}],'options':{'excludedOperators':['$ne']}}]},_0x329cd9[_0x52533e(0x1527)]=_0x52533e(0x16b),_0x329cd9[_0x52533e(0x3d4)]=_0x292ed6,_0x329cd9['success']=_0x3e68dd,_0x329cd9[_0x52533e(0x2367)]=_0x5b0aad,_0x329cd9['showOpenchannelInteraction']=_0x473624,_0x329cd9[_0x52533e(0x1ad7)]=_0x659992,_0x329cd9[_0x52533e(0x10ef)]=_0x176200,_0x329cd9['getContactLabel']=_0x2848a0,_0x329cd9[_0x52533e(0xe3b)]=_0x57d3e5,_0x329cd9[_0x52533e(0x2685)]=_0xdfa51c,_0x329cd9['composeOpenchannelInteraction']=_0xf48106,_0x329cd9[_0x52533e(0x1c4f)]=_0x10ef3e,_0x329cd9[_0x52533e(0x28b7)]=_0x3b7595,_0x329cd9[_0x52533e(0x21a6)]=_0x25fd7e;function _0x292ed6(_0x561539,_0x271532){const _0x380e77=_0x52533e;return _0x329cd9[_0x380e77(0x2690)]=_0x561539,_0x329cd9['setting']=_0x271532,_0x1f5223[_0x380e77(0xe7b)][_0x380e77(0x16b4)+_0x3f65c0()[_0x380e77(0x21cf)](_0x380e77(0x1690))]({'id':_0x329cd9[_0x380e77(0xe7b)]['id'],'nolimit':!![]})['$promise']['then'](function(_0x581cd5){const _0x594b32=_0x380e77;return _0x329cd9[_0x594b32(0x1690)]=_0x581cd5||{'count':0x0,'rows':[]},_0x1f5223['tag'][_0x594b32(0x16b4)]()['$promise'];})[_0x380e77(0x146b)](function(_0x41ad44){const _0x2c0cfe=_0x380e77;_0x329cd9[_0x2c0cfe(0x1b86)]=_0x41ad44||{'count':0x0,'rows':[]};})['then'](function(){const _0x1e7ab1=_0x380e77;_0x329cd9[_0x1e7ab1(0x28af)]=_0x4ba95d();})['catch'](function(_0x5345b3){const _0x4c120b=_0x380e77;console[_0x4c120b(0x1980)](_0x5345b3);})['finally'](function(){const _0x58b6a9=_0x380e77;let _0x38bd14=_0x4159e9[_0x58b6a9(0x1c39)][_0x58b6a9(0x1519)](_0x58b6a9(0x1b43)+_0x329cd9[_0x58b6a9(0xe7b)]['id']);if(_0x38bd14)try{_0x38bd14=JSON[_0x58b6a9(0x975)](_0x38bd14);if(_0x38bd14[_0x58b6a9(0x1a56)]){_0x329cd9[_0x58b6a9(0x1a56)]=_0x3f65c0()['merge'](_0x329cd9[_0x58b6a9(0x1a56)],_0x38bd14[_0x58b6a9(0x1a56)]);if(_0x3f65c0()['isEmpty'](_0x329cd9[_0x58b6a9(0x1690)]['rows']))_0x329cd9['query']['OpenchannelAccountId']=[];else _0x3f65c0()['isEmpty'](_0x329cd9['query'][_0x58b6a9(0x534)])&&(_0x329cd9[_0x58b6a9(0x1a56)][_0x58b6a9(0x534)]=_0x3f65c0()(_0x329cd9[_0x58b6a9(0x1690)][_0x58b6a9(0x19c7)])[_0x58b6a9(0x205)]('id')['take']()[_0x58b6a9(0x175d)]());_0x329cd9[_0x58b6a9(0x1a56)][_0x58b6a9(0x28fa)]&&_0x329cd9[_0x58b6a9(0x1a56)][_0x58b6a9(0x28fa)][_0x58b6a9(0x172b)](_0x58b6a9(0x186))>=0x0&&(_0x329cd9['query']=_0x3f65c0()['omit'](_0x329cd9['query'],'sort')),_0x329cd9[_0x58b6a9(0x1a56)][_0x58b6a9(0x287)]=!![],_0x329cd9[_0x58b6a9(0x2516)]=_0x329cd9[_0x58b6a9(0x1a56)]['filter']?!![]:![];}}catch(_0xe693c4){console['error'](_0xe693c4);}else{const _0x205fa7={'$gte':_0x2deec6()()[_0x58b6a9(0x1fcc)](_0x58b6a9(0x12b7))[_0x58b6a9(0x65f)](0x0,!![])[_0x58b6a9(0x22b0)](),'$lte':_0x2deec6()()['endOf'](_0x58b6a9(0x12b7))[_0x58b6a9(0x65f)](0x0,!![])[_0x58b6a9(0x22b0)]()},_0x2560fc={'OpenchannelAccountId':_0x3f65c0()[_0x58b6a9(0x205)](_0x329cd9[_0x58b6a9(0x1690)][_0x58b6a9(0x19c7)],'id'),'createdAt':_0x205fa7};_0x329cd9[_0x58b6a9(0x1a56)]=_0x3f65c0()['merge'](_0x329cd9[_0x58b6a9(0x1a56)],_0x2560fc);}_0xd83fd1['on'](_0x58b6a9(0x5ad),_0x83159d),_0xd83fd1['on']('openchannelInteraction:update',_0x83159d),_0xd83fd1['on']('openchannelInteractionTags:save',_0x619e3b),_0xd83fd1['on'](_0x58b6a9(0x666),_0x59494b),_0xd83fd1['on']('openchannelMessage:update',_0x59494b),_0xd83fd1['on'](_0x58b6a9(0x1021),_0x882dc5),_0xd83fd1['on'](_0x58b6a9(0x166a),_0x1f99ac),_0x5b0aad(_0x329cd9['query'][_0x58b6a9(0x844)]);});}function _0x4ba95d(){const _0x44e86e=_0x52533e;return[{'name':_0x44e86e(0x294),'key':_0x44e86e(0xc68),'type':_0x44e86e(0x1a10),'label':'DASHBOARDS.SELECT_DATE'},{'name':_0x44e86e(0x1c7c),'key':_0x44e86e(0x229e),'type':_0x44e86e(0xa5f),'label':_0x44e86e(0x8f5),'customOptions':[{'value':0x0,'translate':_0x44e86e(0x33f)},{'value':0x1,'translate':_0x44e86e(0x1ce6)},{'value':null,'translate':_0x44e86e(0x175e)}]},{'name':_0x44e86e(0x74e),'key':'closed','type':_0x44e86e(0xa5f),'label':'DASHBOARDS.SELECT_STATUS','customOptions':[{'value':0x0,'translate':'DASHBOARDS.OPENED'},{'value':0x1,'translate':_0x44e86e(0x1805)},{'value':null,'translate':_0x44e86e(0x175e)}]},{'name':_0x44e86e(0xb48),'key':_0x44e86e(0x534),'type':_0x44e86e(0x175c),'label':_0x44e86e(0x1b49),'options':_0x329cd9[_0x44e86e(0x1690)][_0x44e86e(0x19c7)],'clearAll':![]},{'name':_0x44e86e(0x294a),'key':_0x44e86e(0xea2),'type':'select','label':_0x44e86e(0x127),'customOptions':[{'value':_0x329cd9['user']['id'],'translate':'DASHBOARDS.ME'},{'value':_0x44e86e(0x203c),'translate':_0x44e86e(0x38d)},{'value':undefined,'translate':_0x44e86e(0x175e)}]},{'name':_0x44e86e(0x23a8),'key':_0x44e86e(0xa80),'type':_0x44e86e(0x175c),'label':'DASHBOARDS.SELECT_TAG','options':_0x329cd9['tags']['rows'],'placeholder':_0x44e86e(0x66f)}];}function _0x3e68dd(_0x16b53b){const _0x5a1bbe=_0x52533e;_0x329cd9['searchInProgress']=![],_0x329cd9[_0x5a1bbe(0xcb6)]=_0x16b53b||{'count':0x0,'rows':[]};for(let _0x4a8874=0x0;_0x4a8874<_0x329cd9[_0x5a1bbe(0xcb6)][_0x5a1bbe(0x19c7)][_0x5a1bbe(0x402)];_0x4a8874+=0x1){_0x2848a0(_0x329cd9[_0x5a1bbe(0xcb6)]['rows'][_0x4a8874]);}}function _0x5b0aad(_0x284081){const _0x37dcd3=_0x52533e;_0x329cd9[_0x37dcd3(0x14eb)]=!![];!_0x284081&&(_0x329cd9[_0x37dcd3(0x1a56)][_0x37dcd3(0x844)]=0x1);_0x329cd9[_0x37dcd3(0x1a56)][_0x37dcd3(0x145d)]=(_0x329cd9[_0x37dcd3(0x1a56)][_0x37dcd3(0x844)]-0x1)*_0x329cd9['query'][_0x37dcd3(0x221e)];let _0x3ccdfc=_0x4159e9[_0x37dcd3(0x1c39)]['getItem']('motion2.home.openchannel:'+_0x329cd9['user']['id']);_0x3ccdfc=_0x3ccdfc?JSON[_0x37dcd3(0x975)](_0x3ccdfc):{},_0x3ccdfc[_0x37dcd3(0x1a56)]=_0x329cd9[_0x37dcd3(0x1a56)],_0x4159e9['localStorage'][_0x37dcd3(0xc32)](_0x37dcd3(0x1b43)+_0x329cd9[_0x37dcd3(0xe7b)]['id'],JSON[_0x37dcd3(0x10bb)](_0x3ccdfc)),_0x329cd9['promise']=_0x1f5223[_0x37dcd3(0x119)][_0x37dcd3(0x16b4)](_0x329cd9[_0x37dcd3(0x1a56)],_0x3e68dd)[_0x37dcd3(0x2945)];}function _0x473624(_0x35c523,_0x14ad17){const _0x165b47=_0x52533e;_0x2ecb49[_0x165b47(0x2870)]['vm'][_0x165b47(0x2614)](_0x165b47(0x7d9),_0x14ad17);}function _0x659992(_0x397494,_0x56eae6,_0x1f9658){const _0x364fa4=_0x52533e;_0x1f5223[_0x364fa4(0x119)][_0x364fa4(0x15b1)]({'id':_0x56eae6['id'],'attachments':_0x1f9658})[_0x364fa4(0x2945)]['then'](function(_0x578851){const _0x4c98d9=_0x364fa4,_0x3cc03b=[_0x578851[_0x4c98d9(0x2eb)]],_0x3319a1=_0x4c98d9(0x23c4)+_0x56eae6['id']+_0x4c98d9(0xf04),_0x220c3f=new Blob(_0x3cc03b,{'type':_0x578851[_0x4c98d9(0x1142)]}),_0x3b88b5=window[_0x4c98d9(0xef3)][_0x4c98d9(0x24ec)]('a');_0x3b88b5[_0x4c98d9(0x1652)]('href',URL[_0x4c98d9(0x1c58)](_0x220c3f)),_0x3b88b5['setAttribute'](_0x4c98d9(0x15b1),_0x3319a1),document[_0x4c98d9(0x2586)][_0x4c98d9(0x23e)](_0x3b88b5),_0x3b88b5[_0x4c98d9(0x1fa5)]();})[_0x364fa4(0x129e)](function(_0x3f590f){const _0x2e800b=_0x364fa4;if(_0x3f590f[_0x2e800b(0x524)]&&_0x3f590f[_0x2e800b(0x524)][_0x2e800b(0xcef)]&&_0x3f590f['data']['errors'][_0x2e800b(0x402)])for(let _0x3a6483=0x0;_0x3a6483<_0x3f590f['data']['errors']['length'];_0x3a6483+=0x1){_0x3e8b40[_0x2e800b(0x1980)]({'title':_0x3f590f['data'][_0x2e800b(0xcef)][_0x3a6483][_0x2e800b(0x1142)],'msg':_0x3f590f[_0x2e800b(0x524)][_0x2e800b(0xcef)][_0x3a6483][_0x2e800b(0x7fd)]});}else _0x3e8b40['error']({'title':_0x3f590f[_0x2e800b(0x107b)]?'API:'+_0x3f590f[_0x2e800b(0x107b)]+'\x20-\x20'+_0x3f590f[_0x2e800b(0x167f)]:_0x2e800b(0x1ad7),'msg':_0x3f590f[_0x2e800b(0x524)]?JSON[_0x2e800b(0x10bb)](_0x3f590f[_0x2e800b(0x524)][_0x2e800b(0x7fd)]):_0x3f590f[_0x2e800b(0xd5f)]()});});}function _0x176200(_0x5b0f50,_0x1e83ac){const _0x30d766=_0x52533e,_0x7e3222=_0x329cd9['user'][_0x30d766(0x211c)]||_0x329cd9[_0x30d766(0xe7b)][_0x30d766(0x5f7)]||_0x329cd9[_0x30d766(0xe7b)][_0x30d766(0x1e9e)]||_0x329cd9[_0x30d766(0xe7b)]['openchannelPause']||_0x329cd9[_0x30d766(0xe7b)]['faxPause'],_0x4c8b81=!_0x1e83ac['Account'][_0x30d766(0xc9e)];_0x4b194f[_0x30d766(0x2615)]({'controller':'DisposeInteractionDialogController','controllerAs':'vm','templateUrl':_0x56fd44,'parent':angular[_0x30d766(0x1853)](_0x2a3422['body']),'clickOutsideToClose':_0x4c8b81,'escapeToClose':_0x4c8b81,'onRemoving':function(){const _0x30ba3e=_0x30d766;_0x329cd9[_0x30ba3e(0xe7b)]&&_0x1e83ac['Account'][_0x30ba3e(0xc9e)]&&!_0x7e3222&&_0x1f5223[_0x30ba3e(0xe7b)][_0x30ba3e(0x974)]({'id':_0x329cd9[_0x30ba3e(0xe7b)]['id']})[_0x30ba3e(0x2945)][_0x30ba3e(0x129e)](function(_0x392f08){const _0x57fbc1=_0x30ba3e;console[_0x57fbc1(0x1980)](_0x392f08);});},'locals':{'user':_0x329cd9[_0x30d766(0xe7b)],'channel':'openchannel','interaction':_0x1e83ac}});}function _0x2848a0(_0x280b42){const _0x45da9a=_0x52533e;if(_0x280b42[_0x45da9a(0xfa5)])_0x280b42[_0x45da9a(0x792)]=_0x280b42[_0x45da9a(0xfa5)];else _0x280b42[_0x45da9a(0x364)]?_0x280b42[_0x45da9a(0x792)]=(_0x280b42[_0x45da9a(0x364)]['firstName']||'')+'\x20'+(_0x280b42[_0x45da9a(0x364)][_0x45da9a(0xee4)]||''):_0x280b42[_0x45da9a(0x792)]=_0x51f6c5['instant'](_0x45da9a(0xe0b));}function _0x57d3e5(_0x3d1124){const _0xa6e8fc=_0x52533e;if(_0x3d1124[_0xa6e8fc(0xea2)])return _0x3d1124[_0xa6e8fc(0xea2)]===_0x329cd9[_0xa6e8fc(0xe7b)]['id']?_0x51f6c5['instant'](_0xa6e8fc(0x6d9)):_0x3d1124[_0xa6e8fc(0xac5)][_0xa6e8fc(0x286a)]+'\x20<'+_0x3d1124[_0xa6e8fc(0xac5)][_0xa6e8fc(0x113f)]+'>';return _0x51f6c5[_0xa6e8fc(0xde)]('DASHBOARDS.NOT_ASSIGNED');}function _0xdfa51c(_0x27db42){const _0x5be373=_0x52533e;if(_0x27db42[_0x5be373(0xb48)])return _0x27db42[_0x5be373(0xb48)][_0x5be373(0x2293)];return _0x51f6c5[_0x5be373(0xde)](_0x5be373(0xe0b));}function _0xf48106(_0x9aaea6,_0x58ef15){const _0x428451=_0x52533e;_0x4b194f[_0x428451(0x2615)]({'controller':_0x428451(0xde7),'controllerAs':'vm','templateUrl':_0x5c47bf,'parent':angular[_0x428451(0x1853)](_0x2a3422['body']),'clickOutsideToClose':![],'locals':{'account':_0x58ef15,'message':{},'type':'new','interaction':{}},'fullscreen':!![]})[_0x428451(0x146b)](function(_0x4d8ce1){const _0x4a2fdd=_0x428451;if(_0x4d8ce1){if(_0x4d8ce1[_0x4a2fdd(0x7fd)]&&_0x4d8ce1[_0x4a2fdd(0x7fd)][_0x4a2fdd(0x1703)]){const _0x1168e8={'channel':_0x4a2fdd(0x7d9),'account':_0x58ef15,'message':_0x4d8ce1[_0x4a2fdd(0x7fd)],'contact':_0x4d8ce1[_0x4a2fdd(0x1662)]};_0x222ed5[_0x4a2fdd(0x387)](_0x1168e8);}else{const _0x46d37c=_0x4d8ce1;return _0x1f5223[_0x4a2fdd(0xbd7)][_0x4a2fdd(0x1443)]({'id':_0x58ef15['id']},_0x46d37c)['$promise']['then'](function(_0x52e9e1){const _0x5cf1fb=_0x4a2fdd;_0x3e8b40['success']({'title':'Message\x20properly\x20sent!','msg':'Message\x20has\x20been\x20sent!'}),_0x2ecb49[_0x5cf1fb(0x2870)]['vm'][_0x5cf1fb(0x2614)](_0x5cf1fb(0x7d9),_0x52e9e1);})[_0x4a2fdd(0x129e)](function(_0x189bfc){const _0x552ec5=_0x4a2fdd;if(_0x189bfc[_0x552ec5(0x524)]&&_0x189bfc[_0x552ec5(0x524)][_0x552ec5(0xcef)]&&_0x189bfc['data'][_0x552ec5(0xcef)][_0x552ec5(0x402)])for(let _0x31cde6=0x0;_0x31cde6<_0x189bfc[_0x552ec5(0x524)][_0x552ec5(0xcef)]['length'];_0x31cde6++){_0x3e8b40[_0x552ec5(0x1980)]({'title':_0x189bfc[_0x552ec5(0x524)][_0x552ec5(0xcef)][_0x31cde6][_0x552ec5(0x1142)],'msg':_0x189bfc['data'][_0x552ec5(0xcef)][_0x31cde6][_0x552ec5(0x7fd)]});}else _0x3e8b40[_0x552ec5(0x1980)]({'title':_0x189bfc[_0x552ec5(0x107b)]?'API:'+_0x189bfc['status']+'\x20-\x20'+_0x189bfc[_0x552ec5(0x167f)]:'OPENCHANNELACCOUNT:SEND','msg':_0x189bfc['data']?JSON[_0x552ec5(0x10bb)](_0x189bfc[_0x552ec5(0x524)][_0x552ec5(0x7fd)]):_0x189bfc[_0x552ec5(0x7fd)]||_0x189bfc[_0x552ec5(0xd5f)]()});});}}});}function _0x882dc5(_0x7f91c6){const _0x14ef4e=_0x52533e;let _0x10b2ee;const _0x4201bb=_0x3f65c0()[_0x14ef4e(0xc84)](_0x329cd9[_0x14ef4e(0xcb6)][_0x14ef4e(0x19c7)],{'id':_0x7f91c6[_0x14ef4e(0x1959)]});_0x4201bb&&_0x4201bb['Users']&&(_0x10b2ee=_0x3f65c0()[_0x14ef4e(0xc84)](_0x4201bb[_0x14ef4e(0x3c4)],{'id':_0x7f91c6['UserId']}),!_0x10b2ee&&_0x4201bb['Users']['push']({'id':_0x7f91c6[_0x14ef4e(0xea2)]}));}function _0x1f99ac(_0x522801){const _0x1324dd=_0x52533e,_0x30a5b6=_0x3f65c0()['find'](_0x329cd9[_0x1324dd(0xcb6)][_0x1324dd(0x19c7)],{'id':_0x522801[_0x1324dd(0x1959)]});_0x30a5b6&&_0x30a5b6[_0x1324dd(0x3c4)]&&_0x3f65c0()[_0x1324dd(0x2640)](_0x30a5b6[_0x1324dd(0x3c4)],{'id':_0x522801[_0x1324dd(0xea2)]});}function _0x83159d(_0x20d453){const _0x36bd26=_0x52533e;if(_0x20d453){const _0x56acd6=_0x3f65c0()[_0x36bd26(0xc84)](_0x329cd9[_0x36bd26(0xcb6)][_0x36bd26(0x19c7)],{'id':_0x20d453['id']});if(_0x56acd6){_0x56acd6[_0x36bd26(0x3c4)]=[];_0x20d453[_0x36bd26(0x1943)]&&(_0x56acd6['unreadMessages']=0x0);if(_0x329cd9[_0x36bd26(0x1a56)][_0x36bd26(0x28fa)]){const _0x1d913a=_0x3f65c0()[_0x36bd26(0xd4d)](_0x329cd9[_0x36bd26(0x1a56)][_0x36bd26(0x28fa)],'-')?_0x36bd26(0x2517):_0x36bd26(0x195);_0x329cd9[_0x36bd26(0xcb6)]['rows']=_0x3f65c0()['orderBy'](_0x329cd9[_0x36bd26(0xcb6)][_0x36bd26(0x19c7)],_0x3f65c0()[_0x36bd26(0x25b5)](_0x329cd9[_0x36bd26(0x1a56)][_0x36bd26(0x28fa)],'-'),_0x1d913a);}_0x3f65c0()[_0x36bd26(0x168d)](_0x56acd6,_0x3f65c0()[_0x36bd26(0x40e)](_0x20d453,_0x3f65c0()[_0x36bd26(0x627)](_0x56acd6)));}else _0x5b0aad(_0x329cd9[_0x36bd26(0x1a56)][_0x36bd26(0x844)]);}}function _0x619e3b(_0x590a42){const _0x3afdc2=_0x52533e;if(_0x590a42){const _0x23178e=_0x3f65c0()[_0x3afdc2(0xc84)](_0x329cd9['openchannelInteractions'][_0x3afdc2(0x19c7)],{'id':_0x590a42['id']});_0x23178e&&(_0x23178e[_0x3afdc2(0x2331)]=_0x590a42[_0x3afdc2(0x1b86)]||[],_0x3f65c0()['merge'](_0x23178e,_0x3f65c0()[_0x3afdc2(0x40e)](_0x590a42,_0x3f65c0()['keys'](_0x23178e))));}}function _0x59494b(_0x27b141){const _0x337fed=_0x52533e;if(_0x27b141&&!_0x27b141[_0x337fed(0xaf0)]){const _0x2ec3fc=_0x3f65c0()[_0x337fed(0xc84)](_0x329cd9[_0x337fed(0xcb6)][_0x337fed(0x19c7)],{'id':_0x27b141[_0x337fed(0x1959)]});if(_0x2ec3fc){const _0x5a9805=_0x3f65c0()[_0x337fed(0xc84)](_0x2ec3fc[_0x337fed(0x1c7c)],{'id':_0x27b141['id']});_0x5a9805?_0x3f65c0()[_0x337fed(0x168d)](_0x5a9805,_0x3f65c0()[_0x337fed(0x40e)](_0x27b141,_0x3f65c0()['keys'](_0x5a9805))):(_0x3f65c0()[_0x337fed(0x1b36)](_0x2ec3fc['Messages'])&&(_0x2ec3fc['Messages']={'count':0x0}),!_0x27b141[_0x337fed(0x229e)]&&(_0x2ec3fc['Messages'][_0x337fed(0x51c)]+=0x1));}}}function _0x10ef3e(){const _0xe7381a=_0x52533e;_0x329cd9[_0xe7381a(0x2516)]=![];}function _0x3b7595(){const _0x94515=_0x52533e;_0x329cd9[_0x94515(0x2516)]=!![];}function _0x25fd7e(){const _0x4562e5=_0x52533e;_0x329cd9[_0x4562e5(0x2516)]=![],_0x4b194f[_0x4562e5(0x2615)]({'controller':'AdvancedSearchController','controllerAs':'vm','templateUrl':_0x3fb128,'parent':angular[_0x4562e5(0x1853)](_0x2a3422[_0x4562e5(0x2586)]),'clickOutsideToClose':![],'locals':{'color':_0x329cd9[_0x4562e5(0x1527)],'fields':_0x329cd9[_0x4562e5(0xe93)][_0x4562e5(0x2867)],'storagePath':_0x4562e5(0x604)},'fullscreen':!![]})[_0x4562e5(0x146b)](function(_0x1cd623){const _0x1d5daa=_0x4562e5;_0x329cd9[_0x1d5daa(0x1a56)][_0x1d5daa(0x21da)]=_0x1cd623===![]?undefined:_0x1cd623;if(_0x329cd9[_0x1d5daa(0x1a56)][_0x1d5daa(0x21da)]||_0x1cd623===![])_0x5b0aad();})[_0x4562e5(0x129e)](function(_0x131962){const _0x847ecf=_0x4562e5;_0x3e8b40[_0x847ecf(0x1980)]({'title':_0x847ecf(0x10f5),'msg':_0x131962[_0x847ecf(0x524)]?JSON['stringify'](_0x131962[_0x847ecf(0x524)][_0x847ecf(0x7fd)]):_0x131962[_0x847ecf(0xd5f)]()});});}let _0x355a51=!![],_0x173339=0x1;_0x2ecb49[_0x52533e(0x21e8)]('vm.query.filter',function(_0x337916,_0x4fc944){const _0x220aee=_0x52533e;_0x355a51?_0x276d3b(function(){_0x355a51=![];}):(!_0x4fc944&&(_0x173339=_0x329cd9[_0x220aee(0x1a56)][_0x220aee(0x844)]),_0x337916!==_0x4fc944&&(_0x329cd9['query'][_0x220aee(0x844)]=0x1),!_0x337916&&(_0x329cd9[_0x220aee(0x1a56)][_0x220aee(0x844)]=_0x173339),_0x5b0aad(_0x329cd9[_0x220aee(0x1a56)]['page']));}),_0x2ecb49[_0x52533e(0x16ad)](_0x52533e(0x116f),function(){const _0x23b41=_0x52533e;_0xd83fd1[_0x23b41(0x1c5f)](_0x23b41(0x666)),_0xd83fd1[_0x23b41(0x1c5f)]('openchannelMessage:update'),_0xd83fd1['removeAllListeners'](_0x23b41(0x5ad)),_0xd83fd1[_0x23b41(0x1c5f)](_0x23b41(0xe88)),_0xd83fd1[_0x23b41(0x1c5f)]('openchannelInteraction:update'),_0xd83fd1[_0x23b41(0x1c5f)](_0x23b41(0x1021)),_0xd83fd1['removeAllListeners'](_0x23b41(0x166a));});}const _0x3ab007=_0x143c1f;;_0x429806['$inject']=[_0x313a4d(0x4d8),_0x313a4d(0x910),'$timeout',_0x313a4d(0x10e8),_0x313a4d(0x28c8),_0x313a4d(0xb51),_0x313a4d(0xa87)];function _0x429806(_0x2da6fb,_0x3870f2,_0x3781f3,_0x4234da,_0x2ddcd0,_0x4283e1,_0x47dd78){const _0x338ad7=_0x313a4d,_0x1800c4=this;_0x1800c4[_0x338ad7(0x2321)]=_0x47dd78[_0x338ad7(0xb12)](),_0x1800c4['plugin']={};function _0x32cf5c(_0x45f84e,_0xa2e54c,_0x14a25a){const _0x57aad3=_0x338ad7;_0x1800c4[_0x57aad3(0x2690)]=_0x45f84e,_0x1800c4[_0x57aad3(0x15b9)]=_0xa2e54c,_0x1800c4[_0x57aad3(0x5f5)]=_0x14a25a;}function _0x225b5e(){const _0x5883cf=_0x338ad7;return _0x4283e1[_0x5883cf(0x66b)](_0x1800c4[_0x5883cf(0x5f5)][_0x5883cf(0xcd9)]);}_0x3870f2[_0x338ad7(0x16ad)](_0x338ad7(0x1766),function(_0x4f890c,_0x424b0b){const _0x55b668=_0x338ad7;_0x1800c4[_0x55b668(0x5f5)]=_0x424b0b['plugin'];}),_0x1800c4[_0x338ad7(0x3d4)]=_0x32cf5c,_0x1800c4[_0x338ad7(0x208b)]=_0x225b5e,_0x32cf5c();}const _0x29347f=_0x429806;;_0x1ed78a[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1aa9),_0x313a4d(0x1abe),_0x313a4d(0x247f),'toasty',_0x313a4d(0xa87)];function _0x1ed78a(_0x58b43b,_0x55b4f4,_0x4cb85f,_0x3c37a9,_0x3025df,_0x37f67b){const _0x4519e8=_0x313a4d,_0x5c7d8e=this;_0x5c7d8e['currentUser']=_0x37f67b[_0x4519e8(0xb12)](),_0x5c7d8e[_0x4519e8(0x2546)]={},_0x5c7d8e[_0x4519e8(0x768)]=_0x4519e8(0x2546),_0x5c7d8e[_0x4519e8(0x1a56)]={'UserId':_0x5c7d8e[_0x4519e8(0x2321)]['id'],'fields':_0x4519e8(0x2932),'sort':_0x4519e8(0x12f2),'limit':0xa,'page':0x1,'type':null},_0x5c7d8e[_0x4519e8(0x26eb)]=_0x2c80ad,_0x5c7d8e['downloadtranscribe']=_0x318dda,_0x5c7d8e[_0x4519e8(0x1c75)]=_0x5dbe8b,_0x5c7d8e[_0x4519e8(0x1f4)]=_0x17f539,_0x5c7d8e['onInit']=_0x4fbead,_0x5c7d8e[_0x4519e8(0x1c4f)]=_0x3b1d82,_0x5c7d8e[_0x4519e8(0x28b7)]=_0x18f36f;function _0x4fbead(){const _0xc52a5e=_0x4519e8;_0x5c7d8e[_0xc52a5e(0x28af)]=_0xea28fa();let _0x36b7b8=_0x55b4f4['localStorage'][_0xc52a5e(0x1519)](_0xc52a5e(0x2817)+_0x5c7d8e[_0xc52a5e(0x2321)]['id']);if(_0x36b7b8)try{_0x36b7b8=JSON[_0xc52a5e(0x975)](_0x36b7b8),_0x36b7b8[_0xc52a5e(0x1a56)]&&(_0x5c7d8e['query']=_0x3f65c0()['omit'](_0x36b7b8[_0xc52a5e(0x1a56)],[_0xc52a5e(0x1dd6),'id']),_0x5c7d8e['query'][_0xc52a5e(0x2867)]=_0xc52a5e(0x2155),_0x5c7d8e[_0xc52a5e(0x1a56)][_0xc52a5e(0xea2)]=_0x5c7d8e[_0xc52a5e(0x2321)]['id']);}catch(_0x5ad928){console[_0xc52a5e(0x1980)](_0x5ad928);}else{const _0x453ecf={'$gte':_0x2deec6()()[_0xc52a5e(0x1fcc)](_0xc52a5e(0x12b7))[_0xc52a5e(0x65f)](0x0,!![])[_0xc52a5e(0x22b0)](),'$lte':_0x2deec6()()[_0xc52a5e(0x824)](_0xc52a5e(0x12b7))[_0xc52a5e(0x65f)](0x0,!![])['format']()};_0x5c7d8e[_0xc52a5e(0x1a56)][_0xc52a5e(0xc68)]=_0x453ecf;}_0x5c7d8e[_0xc52a5e(0x2516)]=_0x5c7d8e[_0xc52a5e(0x1a56)]['filter']?!![]:![],_0x5c7d8e['getVoiceRecordings']();}function _0x2c80ad(_0x3b0390){const _0x400d3f=_0x4519e8;return _0x3c37a9[_0x400d3f(0x1688)][_0x400d3f(0x15b1)]({'id':_0x3b0390['id'],'exists':!![]})[_0x400d3f(0x2945)]['then'](function(_0x35d44a){const _0x2734b2=_0x400d3f,_0x53f84b=[_0x35d44a['buffer']],_0x346a50=new Blob(_0x53f84b,{'type':_0x35d44a['type']}),_0x515d2f=window[_0x2734b2(0xef3)][_0x2734b2(0x24ec)]('a');_0x515d2f[_0x2734b2(0x1652)](_0x2734b2(0x1b3c),URL[_0x2734b2(0x1c58)](_0x346a50)),_0x515d2f[_0x2734b2(0x1652)](_0x2734b2(0x15b1),_0x3b0390[_0x2734b2(0x4f8)]+_0x3b0390[_0x2734b2(0x22b0)]),_0x515d2f['click']();})[_0x400d3f(0x129e)](function(_0x5e7a96){const _0x5c80f4=_0x400d3f;_0x3025df[_0x5c80f4(0x1980)]({'title':_0x5e7a96[_0x5c80f4(0x107b)]?'API:'+_0x5e7a96[_0x5c80f4(0x107b)]+'\x20-\x20'+_0x5e7a96['statusText']:_0x5c80f4(0x2186),'msg':_0x5e7a96[_0x5c80f4(0x524)]?JSON[_0x5c80f4(0x10bb)](_0x5e7a96['data']):_0x5e7a96['toString']()});});}function _0x318dda(_0x321e73){const _0x486a83=_0x4519e8;return _0x3c37a9[_0x486a83(0x1688)]['downloadTranscribe']({'id':_0x321e73['id']})['$promise'][_0x486a83(0x146b)](function(_0x4a9ded){const _0x4ad7b4=_0x486a83,_0x5aa8cc=[_0x4a9ded['buffer']];let _0x407ade=_0x4ad7b4(0x15b1);const _0x1622f0=new Blob(_0x5aa8cc,{'type':_0x4a9ded[_0x4ad7b4(0x1142)]});_0x407ade=_0x321e73[_0x4ad7b4(0x4f8)];const _0x4e46a2=window['document'][_0x4ad7b4(0x24ec)]('a');_0x4e46a2[_0x4ad7b4(0x1652)](_0x4ad7b4(0x1b3c),URL[_0x4ad7b4(0x1c58)](_0x1622f0)),_0x4e46a2['setAttribute'](_0x4ad7b4(0x15b1),_0x407ade),document['body'][_0x4ad7b4(0x23e)](_0x4e46a2),_0x4e46a2[_0x4ad7b4(0x1fa5)]();})[_0x486a83(0x129e)](function(_0x244fa1){const _0x32b41f=_0x486a83;_0x3025df[_0x32b41f(0x1980)]({'title':_0x244fa1[_0x32b41f(0x107b)]?_0x32b41f(0x262a)+_0x244fa1['status']+_0x32b41f(0x1315)+_0x244fa1[_0x32b41f(0x167f)]:'SYSTEM:GETvoiceRecording','msg':_0x244fa1[_0x32b41f(0x524)]?JSON[_0x32b41f(0x10bb)](_0x244fa1[_0x32b41f(0x524)]):_0x244fa1[_0x32b41f(0xd5f)]()});});}function _0xea28fa(){const _0x26e02e=_0x4519e8;return[{'name':_0x26e02e(0x294),'key':_0x26e02e(0xc68),'type':'date','label':_0x26e02e(0x2902)},{'name':_0x26e02e(0x18be),'key':_0x26e02e(0x1142),'type':_0x26e02e(0xa5f),'label':_0x26e02e(0x1684),'customOptions':[{'value':_0x26e02e(0x113f),'translate':'VOICE.INTERNAL'},{'value':_0x26e02e(0x7b0),'translate':_0x26e02e(0x203e)},{'value':_0x26e02e(0xc9c),'translate':'VOICE.OUTBOUND'},{'value':'dialer','translate':_0x26e02e(0x1ea6)},{'value':null,'translate':'VOICE.ALL'}]}];}function _0x5dbe8b(_0x1a14b4){const _0x5452ac=_0x4519e8;_0x5c7d8e[_0x5452ac(0x14eb)]=![],_0x5c7d8e[_0x5452ac(0x2546)]=_0x1a14b4||{'count':0x0,'rows':[]};}function _0x17f539(){const _0x417ced=_0x4519e8;_0x5c7d8e[_0x417ced(0x14eb)]=!![],_0x5c7d8e[_0x417ced(0x1a56)][_0x417ced(0x145d)]=(_0x5c7d8e[_0x417ced(0x1a56)][_0x417ced(0x844)]-0x1)*_0x5c7d8e[_0x417ced(0x1a56)][_0x417ced(0x221e)];const _0x4b7a88={'query':_0x5c7d8e['query']};_0x55b4f4[_0x417ced(0x1c39)][_0x417ced(0xc32)]('motion2.home.recordings:'+_0x5c7d8e[_0x417ced(0x2321)]['id'],JSON[_0x417ced(0x10bb)](_0x4b7a88)),_0x5c7d8e['promise']=_0x3c37a9['voiceRecording'][_0x417ced(0x16b4)](_0x5c7d8e['query'],_0x5dbe8b)[_0x417ced(0x2945)];}function _0x3b1d82(){const _0x388ad1=_0x4519e8;_0x5c7d8e['query'][_0x388ad1(0x1dd6)]=undefined,_0x5c7d8e[_0x388ad1(0x2516)]=![];}function _0x18f36f(){const _0x489771=_0x4519e8;_0x5c7d8e[_0x489771(0x2516)]=!![];}let _0x5ab1ba=!![],_0x11adae=0x1;_0x58b43b[_0x4519e8(0x21e8)](_0x4519e8(0x2669),function(_0x4eaa96,_0x43efb0){const _0x5381fd=_0x4519e8;_0x5ab1ba?_0x4cb85f(function(){_0x5ab1ba=![];}):(!_0x43efb0&&(_0x11adae=_0x5c7d8e['query'][_0x5381fd(0x844)]),_0x4eaa96!==_0x43efb0&&(_0x5c7d8e[_0x5381fd(0x1a56)][_0x5381fd(0x844)]=0x1),!_0x4eaa96&&(_0x5c7d8e['query'][_0x5381fd(0x844)]=_0x11adae),_0x5c7d8e[_0x5381fd(0x1f4)]());});}const _0x4b50b9=_0x1ed78a;;const _0x24c092=_0x4acfac['p']+_0x313a4d(0x17a1);;_0x581716[_0x313a4d(0x11c2)]=['$scope',_0x313a4d(0x1aa9),_0x313a4d(0x1abe),'$mdDialog',_0x313a4d(0x4d8),'toasty','api',_0x313a4d(0xa87)];function _0x581716(_0x73e267,_0x511b51,_0x46d14b,_0x4f6472,_0x823ed9,_0x5184ff,_0x2ecb98,_0x903d4a){const _0x3ae5d2=_0x313a4d,_0x363d16=this;_0x363d16['currentUser']=_0x903d4a['getCurrentUser'](),_0x363d16[_0x3ae5d2(0x1b2d)]=[_0x3ae5d2(0x2188),'Low','Medium',_0x3ae5d2(0x25c5),_0x3ae5d2(0xa73)],_0x363d16['crudPermissions']={'readOnly':![],'canEdit':!![],'canDelete':!![]},_0x363d16[_0x3ae5d2(0x114f)]={},_0x363d16[_0x3ae5d2(0x1a56)]={'id':_0x363d16['currentUser']['id'],'fields':_0x3ae5d2(0x2812),'sort':_0x3ae5d2(0x432),'limit':0xa,'page':0x1},_0x363d16[_0x3ae5d2(0x17c4)]={'rows':[],'count':0x0},_0x363d16['success']=_0x12cef0,_0x363d16[_0x3ae5d2(0xb94)]=_0x282061,_0x363d16['onInit']=_0xe03d14,_0x363d16[_0x3ae5d2(0x238c)]=_0x1eb552,_0x363d16[_0x3ae5d2(0x1bc8)]=_0x1c3713,_0x363d16['deleteConfirm']=_0x172755;function _0xe03d14(){const _0x3dd091=_0x3ae5d2;_0x2ecb98['user'][_0x3dd091(0xc53)]({'id':_0x903d4a[_0x3dd091(0xb12)]()['id'],'fields':'id,name','channel':_0x3dd091(0xe6),'type':_0x3dd091(0xc9c),'nolimit':!![]})[_0x3dd091(0x2945)][_0x3dd091(0x146b)](function(_0x3981a3){_0x363d16['queueCampaigns']=_0x3981a3||{'count':0x0,'rows':[]};})[_0x3dd091(0x146b)](function(){_0x363d16['quickFilters']=_0x133580();})[_0x3dd091(0x129e)](function(_0x419627){const _0x38a493=_0x3dd091;console[_0x38a493(0x1980)](_0x419627);})[_0x3dd091(0x1ec6)](function(){const _0x31454e=_0x3dd091;let _0x287a14=_0x511b51['localStorage'][_0x31454e(0x1519)](_0x31454e(0xa14)+_0x363d16[_0x31454e(0x2321)]['id']);if(_0x287a14)try{_0x287a14=JSON['parse'](_0x287a14),_0x287a14[_0x31454e(0x1a56)]&&(_0x363d16['query']=_0x3f65c0()['omit'](_0x287a14['query'],[_0x31454e(0x1dd6)]));}catch(_0x2c55d6){console[_0x31454e(0x1980)](_0x2c55d6);}else{const _0x531607={'$gte':_0x2deec6()()[_0x31454e(0x1fcc)](_0x31454e(0x12b7))[_0x31454e(0x65f)](0x0,!![])['format'](),'$lte':_0x2deec6()()[_0x31454e(0x824)](_0x31454e(0x12b7))['utcOffset'](0x0,!![])['format']()};_0x363d16[_0x31454e(0x1a56)]['createdAt']=_0x531607;}_0x363d16['getScheduledCalls']();});}function _0x12cef0(_0xd2af36){const _0x3cf704=_0x3ae5d2;_0x363d16[_0x3cf704(0x14eb)]=![],_0x363d16[_0x3cf704(0x114f)]=_0xd2af36||{'count':0x0,'rows':[]};}function _0x133580(){const _0x4d35ca=_0x3ae5d2;return[{'name':_0x4d35ca(0x294),'key':'createdAt','type':_0x4d35ca(0x1a10),'label':_0x4d35ca(0x2902)},{'name':_0x4d35ca(0xeb5),'key':_0x4d35ca(0x6ed),'type':_0x4d35ca(0x175c),'label':_0x4d35ca(0x7ad),'options':_0x363d16[_0x4d35ca(0x17c4)][_0x4d35ca(0x19c7)]}];}function _0x282061(){const _0x544b41=_0x3ae5d2;_0x363d16[_0x544b41(0x14eb)]=!![],_0x363d16[_0x544b41(0x1a56)]['id']=_0x363d16[_0x544b41(0x2321)]['id'],_0x363d16[_0x544b41(0x1a56)][_0x544b41(0x287)]=!![],_0x363d16[_0x544b41(0x1a56)][_0x544b41(0x145d)]=(_0x363d16[_0x544b41(0x1a56)][_0x544b41(0x844)]-0x1)*_0x363d16[_0x544b41(0x1a56)][_0x544b41(0x221e)];const _0x83bb0a={'query':_0x363d16[_0x544b41(0x1a56)]};_0x511b51[_0x544b41(0x1c39)]['setItem'](_0x544b41(0xa14)+_0x363d16[_0x544b41(0x2321)]['id'],JSON['stringify'](_0x83bb0a)),_0x363d16[_0x544b41(0xb9c)]=_0x2ecb98['user'][_0x544b41(0xb94)](_0x363d16[_0x544b41(0x1a56)],_0x12cef0)[_0x544b41(0x2945)];}function _0x1c3713(_0xfb1162,_0x512263){const _0x424d1b=_0x3ae5d2;_0x4f6472[_0x424d1b(0x2615)]({'controller':_0x424d1b(0x14da),'controllerAs':'vm','templateUrl':_0x24c092,'parent':angular[_0x424d1b(0x1853)](_0x823ed9[_0x424d1b(0x2586)]),'targetEvent':_0xfb1162,'clickOutsideToClose':!![],'locals':{'queueCampaign':null,'hopper':_0x512263,'hoppers':_0x363d16[_0x424d1b(0x114f)][_0x424d1b(0x19c7)],'license':null,'setting':null,'crudPermissions':_0x363d16['crudPermissions']}});}function _0xd24f81(_0x171587){const _0x12b123=_0x3ae5d2;_0x2ecb98[_0x12b123(0x39f)][_0x12b123(0x1fac)]({'id':_0x171587['id']})[_0x12b123(0x2945)]['then'](function(){const _0x4015c2=_0x12b123;_0x3f65c0()[_0x4015c2(0x2640)](_0x363d16['scheduledCalls'][_0x4015c2(0x19c7)],{'id':_0x171587['id']}),_0x363d16['scheduledCalls'][_0x4015c2(0x51c)]-=0x1,!_0x363d16['scheduledCalls'][_0x4015c2(0x19c7)][_0x4015c2(0x402)]&&_0x363d16[_0x4015c2(0xb94)](),_0x5184ff['success']({'title':'Scheduled\x20call\x20deleted!','msg':_0x171587[_0x4015c2(0x19eb)]?_0x4015c2(0x2037):''});})['catch'](function(_0x27efb7){const _0x5cea84=_0x12b123;if(_0x27efb7[_0x5cea84(0x524)]&&_0x27efb7[_0x5cea84(0x524)]['errors']&&_0x27efb7[_0x5cea84(0x524)][_0x5cea84(0xcef)][_0x5cea84(0x402)]){_0x363d16['errors']=_0x27efb7[_0x5cea84(0x524)][_0x5cea84(0xcef)]||[{'message':_0x27efb7[_0x5cea84(0xd5f)](),'type':_0x5cea84(0x2649)}];for(let _0x303bd1=0x0;_0x303bd1<_0x27efb7[_0x5cea84(0x524)][_0x5cea84(0xcef)][_0x5cea84(0x402)];_0x303bd1++){_0x5184ff[_0x5cea84(0x1980)]({'title':_0x27efb7[_0x5cea84(0x524)][_0x5cea84(0xcef)][_0x303bd1][_0x5cea84(0x1142)],'msg':_0x27efb7[_0x5cea84(0x524)]['errors'][_0x303bd1][_0x5cea84(0x7fd)]});}}else _0x5184ff['error']({'title':_0x27efb7[_0x5cea84(0x107b)]?'API:'+_0x27efb7[_0x5cea84(0x107b)]+'\x20-\x20'+_0x27efb7[_0x5cea84(0x167f)]:_0x5cea84(0x2649),'msg':_0x27efb7[_0x5cea84(0x524)]?JSON['stringify'](_0x27efb7[_0x5cea84(0x524)][_0x5cea84(0x7fd)]):_0x27efb7[_0x5cea84(0x7fd)]||_0x27efb7['toString']()});});}function _0x172755(_0x5ddd06,_0x44b5e4){const _0x17cf65=_0x3ae5d2,_0x4ffe4f=_0x4f6472[_0x17cf65(0x1e8a)]()[_0x17cf65(0x1189)](_0x17cf65(0x2247))[_0x17cf65(0x1cbe)](_0x17cf65(0x35f)+_0x17cf65(0xe01))[_0x17cf65(0x4bd)](_0x17cf65(0xa31))[_0x17cf65(0x1f27)](_0x44b5e4)['ok']('OK')[_0x17cf65(0x6c3)](_0x17cf65(0x39a));_0x4f6472[_0x17cf65(0x2615)](_0x4ffe4f)[_0x17cf65(0x146b)](function(){_0xd24f81(_0x5ddd06);},function(){const _0x247f14=_0x17cf65;console[_0x247f14(0x1a74)](_0x247f14(0x39a));});}function _0x1eb552(_0x13993c){const _0x170701=_0x3ae5d2;return _0x2deec6()(_0x13993c)[_0x170701(0x2886)](_0x2deec6()());}let _0x151982=!![],_0x1ed434=0x1;_0x73e267[_0x3ae5d2(0x21e8)](_0x3ae5d2(0x2669),function(_0x13260b,_0x36183b){const _0x379fee=_0x3ae5d2;_0x151982?_0x46d14b(function(){_0x151982=![];}):(!_0x36183b&&(_0x1ed434=_0x363d16[_0x379fee(0x1a56)]['page']),_0x13260b!==_0x36183b&&(_0x363d16[_0x379fee(0x1a56)][_0x379fee(0x844)]=0x1),!_0x13260b&&(_0x363d16[_0x379fee(0x1a56)][_0x379fee(0x844)]=_0x1ed434),_0x363d16[_0x379fee(0xb94)]());});}const _0x2873a1=_0x581716;;_0x25f77c[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1abe),_0x313a4d(0x10e8),_0x313a4d(0x4d8),_0x313a4d(0x1aa9),_0x313a4d(0x214b),_0x313a4d(0x247f),_0x313a4d(0xa87),_0x313a4d(0x279d),_0x313a4d(0x1fe4),_0x313a4d(0x1909)];function _0x25f77c(_0x4dc55e,_0x5a2e5a,_0x5b66c8,_0x5412b5,_0x5f0f32,_0x53a8db,_0x51630a,_0x221d64,_0x14eb96,_0x47e2c3,_0x34b2f6){const _0xee069c=_0x313a4d,_0x4b0986=this;_0x4b0986[_0xee069c(0xe7b)]=_0x221d64[_0xee069c(0xb12)](),_0x4b0986[_0xee069c(0x2690)]={},_0x4b0986[_0xee069c(0x15b9)]={},_0x4b0986[_0xee069c(0x1b86)]={'count':0x0,'rows':[]},_0x4b0986[_0xee069c(0xdbc)]={'count':0x0,'rows':[]},_0x4b0986[_0xee069c(0x1a56)]={'includeAll':!![],'sort':_0xee069c(0x12f2),'limit':0xa,'page':0x1,'read':null,'closed':null},_0x4b0986['advancedSearch']={'fields':[{'name':'Id','column':'id','type':_0xee069c(0x181)},{'name':_0xee069c(0x364),'column':_0xee069c(0x364),'type':_0xee069c(0x14ee),'options':{'searchFields':[_0xee069c(0x1ed4),_0xee069c(0xee4),'email'],'route':{'model':_0xee069c(0x18c3),'action':_0xee069c(0x16b4),'params':{'fields':'id,firstName,lastName,email','Contact':_0xee069c(0x3fb),'nolimit':!![]}},'extraOperators':[_0xee069c(0xacb)],'excludedOperators':[_0xee069c(0x1671)]}},{'name':'Body','column':_0xee069c(0x2586),'type':_0xee069c(0xa8d),'options':{'excludedOperators':['$eq',_0xee069c(0x1671)]}},{'name':_0xee069c(0x74e),'column':'closed','type':_0xee069c(0xa5f),'values':[{'id':0x0,'translate':_0xee069c(0x143b)},{'id':0x1,'translate':_0xee069c(0x1805)}],'options':{'excludedOperators':[_0xee069c(0x1671)]}},{'name':_0xee069c(0x294a),'column':_0xee069c(0x2393),'type':_0xee069c(0x14ee),'options':{'table':'i','route':{'model':_0xee069c(0xe7b),'action':_0xee069c(0x16b4),'params':{'role':'agent','fields':_0xee069c(0x12bf),'nolimit':!![]}},'searchFields':['fullname',_0xee069c(0x19eb)],'extraOperators':[_0xee069c(0xacb)],'excludedOperators':[_0xee069c(0x1671)]}},{'name':_0xee069c(0xb48),'column':_0xee069c(0x1481),'type':_0xee069c(0x175c),'options':{'route':{'model':'user','action':_0xee069c(0x1434),'params':{'id':_0x4b0986[_0xee069c(0xe7b)]['id'],'nolimit':!![]}}}},{'name':_0xee069c(0x2331),'column':_0xee069c(0x23a8),'type':_0xee069c(0x175c),'options':{'route':{'model':'tag','action':_0xee069c(0x16b4),'params':{'nolimit':!![]}},'excludedOperators':['$notIn']}},{'name':'Start\x20Date','column':_0xee069c(0xc68),'type':_0xee069c(0x1a10),'options':{'excludedOperators':[_0xee069c(0x1671)]}},{'name':_0xee069c(0x270b),'column':_0xee069c(0x26a6),'type':_0xee069c(0xa5f),'values':[{'id':0x1,'translate':'DASHBOARDS.READ'},{'id':0x0,'translate':_0xee069c(0x33f)}],'options':{'excludedOperators':[_0xee069c(0x1671)]}}]},_0x4b0986['sectionColor']=_0xee069c(0x2632),_0x4b0986['onInit']=_0x36126f,_0x4b0986[_0xee069c(0x1c75)]=_0xad5ea2,_0x4b0986[_0xee069c(0x28a)]=_0xb4daec,_0x4b0986[_0xee069c(0x1d8)]=_0x2a38fc,_0x4b0986[_0xee069c(0xc94)]=_0xbf1406,_0x4b0986[_0xee069c(0x10ef)]=_0xac6c99,_0x4b0986[_0xee069c(0x4b5)]=_0x518a75,_0x4b0986[_0xee069c(0xe3b)]=_0x434ef4,_0x4b0986[_0xee069c(0x599)]=_0x213612,_0x4b0986[_0xee069c(0x13d8)]=_0x477eba,_0x4b0986['onSearchBarCollapse']=_0x3737cf,_0x4b0986[_0xee069c(0x28b7)]=_0xa85b50,_0x4b0986[_0xee069c(0x21a6)]=_0xe7d75a;function _0x36126f(_0x50640e,_0x3d6b22){const _0x4cc23b=_0xee069c;return _0x4b0986[_0x4cc23b(0x2690)]=_0x50640e,_0x4b0986[_0x4cc23b(0x15b9)]=_0x3d6b22,_0x51630a['user']['get'+_0x3f65c0()['upperFirst'](_0x4cc23b(0x1c34))]({'id':_0x4b0986['user']['id'],'nolimit':!![]})[_0x4cc23b(0x2945)]['then'](function(_0x3b1cce){const _0x4ef3e7=_0x4cc23b;return _0x4b0986[_0x4ef3e7(0x1c34)]=_0x3b1cce||{'count':0x0,'rows':[]},_0x51630a[_0x4ef3e7(0xa80)][_0x4ef3e7(0x16b4)]()[_0x4ef3e7(0x2945)];})[_0x4cc23b(0x146b)](function(_0x1590d4){const _0x3957fe=_0x4cc23b;_0x4b0986[_0x3957fe(0x1b86)]=_0x1590d4||{'count':0x0,'rows':[]};})[_0x4cc23b(0x146b)](function(){const _0x5ecae6=_0x4cc23b;_0x4b0986[_0x5ecae6(0x28af)]=_0x42e670();})[_0x4cc23b(0x129e)](function(_0x3e081e){const _0x180beb=_0x4cc23b;console[_0x180beb(0x1980)](_0x3e081e);})['finally'](function(){const _0x16199e=_0x4cc23b;let _0x152a21=_0x5f0f32[_0x16199e(0x1c39)][_0x16199e(0x1519)](_0x16199e(0x542)+_0x4b0986[_0x16199e(0xe7b)]['id']);if(_0x152a21)try{_0x152a21=JSON[_0x16199e(0x975)](_0x152a21);if(_0x152a21[_0x16199e(0x1a56)]){_0x4b0986[_0x16199e(0x1a56)]=_0x3f65c0()[_0x16199e(0x168d)](_0x4b0986[_0x16199e(0x1a56)],_0x152a21[_0x16199e(0x1a56)]);if(_0x3f65c0()['isEmpty'](_0x4b0986[_0x16199e(0x1c34)][_0x16199e(0x19c7)]))_0x4b0986[_0x16199e(0x1a56)]['SmsAccountId']=[];else _0x3f65c0()[_0x16199e(0x2635)](_0x4b0986[_0x16199e(0x1a56)][_0x16199e(0x1481)])&&(_0x4b0986['query'][_0x16199e(0x1481)]=_0x3f65c0()(_0x4b0986[_0x16199e(0x1c34)][_0x16199e(0x19c7)])[_0x16199e(0x205)]('id')[_0x16199e(0x2421)]()['value']());_0x4b0986[_0x16199e(0x1a56)]['sort']&&_0x4b0986[_0x16199e(0x1a56)][_0x16199e(0x28fa)]['indexOf'](_0x16199e(0x186))>=0x0&&(_0x4b0986[_0x16199e(0x1a56)]=_0x3f65c0()[_0x16199e(0x2432)](_0x4b0986[_0x16199e(0x1a56)],_0x16199e(0x28fa))),_0x4b0986[_0x16199e(0x1a56)][_0x16199e(0x287)]=!![],_0x4b0986[_0x16199e(0x2516)]=_0x4b0986[_0x16199e(0x1a56)]['filter']?!![]:![];}}catch(_0x4c8bc4){console[_0x16199e(0x1980)](_0x4c8bc4);}else{const _0x4d814a={'$gte':_0x2deec6()()[_0x16199e(0x1fcc)]('month')[_0x16199e(0x65f)](0x0,!![])[_0x16199e(0x22b0)](),'$lte':_0x2deec6()()[_0x16199e(0x824)](_0x16199e(0x12b7))['utcOffset'](0x0,!![])[_0x16199e(0x22b0)]()},_0x4d9dbd={'SmsAccountId':_0x3f65c0()[_0x16199e(0x205)](_0x4b0986[_0x16199e(0x1c34)][_0x16199e(0x19c7)],'id'),'createdAt':_0x4d814a};_0x4b0986[_0x16199e(0x1a56)]=_0x3f65c0()[_0x16199e(0x168d)](_0x4b0986[_0x16199e(0x1a56)],_0x4d9dbd);}_0x14eb96['on'](_0x16199e(0x1fa2),_0x5be4e3),_0x14eb96['on'](_0x16199e(0x15ae),_0x5be4e3),_0x14eb96['on'](_0x16199e(0xe00),_0x5026ee),_0x14eb96['on']('smsMessage:save',_0x135862),_0x14eb96['on'](_0x16199e(0x28f1),_0x135862),_0x14eb96['on']('user_has_sms_interactions:save',_0x1be1fa),_0x14eb96['on'](_0x16199e(0x1bd1),_0x4f7ab2),_0xb4daec(_0x4b0986[_0x16199e(0x1a56)][_0x16199e(0x844)]);});}function _0x42e670(){const _0x1174cd=_0xee069c;return[{'name':_0x1174cd(0x294),'key':_0x1174cd(0xc68),'type':_0x1174cd(0x1a10),'label':_0x1174cd(0x2902)},{'name':_0x1174cd(0x1c7c),'key':_0x1174cd(0x229e),'type':_0x1174cd(0xa5f),'label':_0x1174cd(0x8f5),'customOptions':[{'value':0x0,'translate':'DASHBOARDS.UNREAD'},{'value':0x1,'translate':_0x1174cd(0x1ce6)},{'value':null,'translate':_0x1174cd(0x175e)}]},{'name':_0x1174cd(0x74e),'key':_0x1174cd(0x1943),'type':_0x1174cd(0xa5f),'label':_0x1174cd(0x1682),'customOptions':[{'value':0x0,'translate':_0x1174cd(0x143b)},{'value':0x1,'translate':_0x1174cd(0x1805)},{'value':null,'translate':_0x1174cd(0x175e)}]},{'name':_0x1174cd(0xb48),'key':_0x1174cd(0x1481),'type':_0x1174cd(0x175c),'label':_0x1174cd(0x1b49),'options':_0x4b0986[_0x1174cd(0x1c34)][_0x1174cd(0x19c7)],'clearAll':![]},{'name':_0x1174cd(0x294a),'key':_0x1174cd(0xea2),'type':_0x1174cd(0xa5f),'label':_0x1174cd(0x127),'customOptions':[{'value':_0x4b0986[_0x1174cd(0xe7b)]['id'],'translate':_0x1174cd(0x6d9)},{'value':'null','translate':_0x1174cd(0x38d)},{'value':undefined,'translate':'DASHBOARDS.ALL'}]},{'name':_0x1174cd(0x23a8),'key':_0x1174cd(0xa80),'type':_0x1174cd(0x175c),'label':_0x1174cd(0x1c0e),'options':_0x4b0986['tags'][_0x1174cd(0x19c7)],'placeholder':'DASHBOARDS.TAGS'}];}function _0xad5ea2(_0x11bfe1){const _0xe130e5=_0xee069c;_0x4b0986[_0xe130e5(0x14eb)]=![],_0x4b0986['smsInteractions']=_0x11bfe1||{'count':0x0,'rows':[]};for(let _0x559ae7=0x0;_0x559ae7<_0x4b0986[_0xe130e5(0xdbc)][_0xe130e5(0x19c7)][_0xe130e5(0x402)];_0x559ae7+=0x1){_0x518a75(_0x4b0986[_0xe130e5(0xdbc)][_0xe130e5(0x19c7)][_0x559ae7]);}}function _0xb4daec(_0x10e894){const _0xc91c=_0xee069c;_0x4b0986[_0xc91c(0x14eb)]=!![];!_0x10e894&&(_0x4b0986['query'][_0xc91c(0x844)]=0x1);_0x4b0986[_0xc91c(0x1a56)][_0xc91c(0x145d)]=(_0x4b0986[_0xc91c(0x1a56)][_0xc91c(0x844)]-0x1)*_0x4b0986[_0xc91c(0x1a56)][_0xc91c(0x221e)];let _0x426035=_0x5f0f32['localStorage'][_0xc91c(0x1519)](_0xc91c(0x542)+_0x4b0986[_0xc91c(0xe7b)]['id']);_0x426035=_0x426035?JSON['parse'](_0x426035):{},_0x426035[_0xc91c(0x1a56)]=_0x4b0986['query'],_0x5f0f32[_0xc91c(0x1c39)][_0xc91c(0xc32)](_0xc91c(0x542)+_0x4b0986['user']['id'],JSON[_0xc91c(0x10bb)](_0x426035)),_0x4b0986[_0xc91c(0xb9c)]=_0x51630a['smsInteraction']['get'](_0x4b0986[_0xc91c(0x1a56)],_0xad5ea2)['$promise'];}function _0x2a38fc(_0x3efe80,_0x43f412){const _0x5c9d0a=_0xee069c;_0x4dc55e[_0x5c9d0a(0x2870)]['vm']['addInteractionTab'](_0x5c9d0a(0x929),_0x43f412);}function _0xbf1406(_0x4cfda7,_0x107b75,_0x6ae4f3){const _0x43fbf6=_0xee069c;_0x51630a[_0x43fbf6(0xb18)][_0x43fbf6(0x15b1)]({'id':_0x107b75['id'],'attachments':_0x6ae4f3})[_0x43fbf6(0x2945)][_0x43fbf6(0x146b)](function(_0x14ae2d){const _0x2df066=_0x43fbf6,_0x9f1050=[_0x14ae2d[_0x2df066(0x2eb)]],_0x3d6bd8=_0x2df066(0x1c61)+_0x107b75['id']+'.zip',_0x7654ee=new Blob(_0x9f1050,{'type':_0x14ae2d['type']}),_0x2cf83d=window['document'][_0x2df066(0x24ec)]('a');_0x2cf83d[_0x2df066(0x1652)]('href',URL[_0x2df066(0x1c58)](_0x7654ee)),_0x2cf83d[_0x2df066(0x1652)](_0x2df066(0x15b1),_0x3d6bd8),document['body'][_0x2df066(0x23e)](_0x2cf83d),_0x2cf83d['click']();})[_0x43fbf6(0x129e)](function(_0x28b799){const _0x246cbd=_0x43fbf6;if(_0x28b799['data']&&_0x28b799[_0x246cbd(0x524)][_0x246cbd(0xcef)]&&_0x28b799[_0x246cbd(0x524)][_0x246cbd(0xcef)][_0x246cbd(0x402)])for(let _0x47126d=0x0;_0x47126d<_0x28b799['data'][_0x246cbd(0xcef)][_0x246cbd(0x402)];_0x47126d+=0x1){_0x47e2c3['error']({'title':_0x28b799[_0x246cbd(0x524)][_0x246cbd(0xcef)][_0x47126d][_0x246cbd(0x1142)],'msg':_0x28b799[_0x246cbd(0x524)][_0x246cbd(0xcef)][_0x47126d]['message']});}else _0x47e2c3[_0x246cbd(0x1980)]({'title':_0x28b799[_0x246cbd(0x107b)]?_0x246cbd(0x262a)+_0x28b799[_0x246cbd(0x107b)]+_0x246cbd(0x1315)+_0x28b799[_0x246cbd(0x167f)]:'downloadSmsInteraction','msg':_0x28b799['data']?JSON[_0x246cbd(0x10bb)](_0x28b799[_0x246cbd(0x524)][_0x246cbd(0x7fd)]):_0x28b799['toString']()});});}function _0xac6c99(_0x22db4f,_0x329fa1){const _0x3e090d=_0xee069c,_0x4de309=_0x4b0986[_0x3e090d(0xe7b)][_0x3e090d(0x211c)]||_0x4b0986[_0x3e090d(0xe7b)][_0x3e090d(0x5f7)]||_0x4b0986[_0x3e090d(0xe7b)][_0x3e090d(0x1e9e)]||_0x4b0986[_0x3e090d(0xe7b)][_0x3e090d(0xcc5)]||_0x4b0986['user'][_0x3e090d(0x25c4)],_0x30922f=!_0x329fa1['Account']['mandatoryDisposition'];_0x5b66c8['show']({'controller':_0x3e090d(0xe23),'controllerAs':'vm','templateUrl':_0x56fd44,'parent':angular[_0x3e090d(0x1853)](_0x5412b5[_0x3e090d(0x2586)]),'clickOutsideToClose':_0x30922f,'escapeToClose':_0x30922f,'onRemoving':function(){const _0x20ea6c=_0x3e090d;_0x4b0986[_0x20ea6c(0xe7b)]&&_0x329fa1[_0x20ea6c(0xb48)][_0x20ea6c(0xc9e)]&&!_0x4de309&&_0x51630a['user']['unpause']({'id':_0x4b0986[_0x20ea6c(0xe7b)]['id']})['$promise'][_0x20ea6c(0x129e)](function(_0x3c016d){const _0x4ea427=_0x20ea6c;console[_0x4ea427(0x1980)](_0x3c016d);});},'locals':{'user':_0x4b0986[_0x3e090d(0xe7b)],'channel':'sms','interaction':_0x329fa1}});}function _0x518a75(_0x75dee0){const _0xedefa4=_0xee069c;_0x75dee0[_0xedefa4(0x364)]?(_0x75dee0[_0xedefa4(0x792)]=(_0x75dee0[_0xedefa4(0x364)][_0xedefa4(0x1ed4)]||'')+'\x20'+(_0x75dee0[_0xedefa4(0x364)][_0xedefa4(0xee4)]||''),_0x75dee0['contactInfo']=_0x75dee0['Contact']['mobile']):_0x75dee0[_0xedefa4(0x792)]=_0x53a8db['instant'](_0xedefa4(0xe0b));}function _0x434ef4(_0x57b90e){const _0x2b7097=_0xee069c;if(_0x57b90e[_0x2b7097(0xea2)])return _0x57b90e[_0x2b7097(0xea2)]===_0x4b0986[_0x2b7097(0xe7b)]['id']?_0x53a8db['instant']('DASHBOARDS.ME'):_0x57b90e['Owner'][_0x2b7097(0x286a)]+'\x20<'+_0x57b90e[_0x2b7097(0xac5)][_0x2b7097(0x113f)]+'>';return _0x53a8db[_0x2b7097(0xde)](_0x2b7097(0x38d));}function _0x213612(_0x417f81){const _0x13bfe8=_0xee069c;if(_0x417f81[_0x13bfe8(0xb48)])return _0x417f81[_0x13bfe8(0xb48)][_0x13bfe8(0x2293)];return _0x53a8db[_0x13bfe8(0xde)](_0x13bfe8(0xe0b));}function _0x477eba(_0x1a3bf1,_0xccea5d){const _0x4a47ed=_0xee069c;_0x5b66c8[_0x4a47ed(0x2615)]({'controller':_0x4a47ed(0x1d08),'controllerAs':'vm','templateUrl':_0x32f327,'parent':angular['element'](_0x5412b5['body']),'clickOutsideToClose':![],'locals':{'account':_0xccea5d,'message':{},'type':_0x4a47ed(0x16d9),'interaction':{}},'fullscreen':!![]})[_0x4a47ed(0x146b)](function(_0x4a4526){const _0x4df4a2=_0x4a47ed;if(_0x4a4526){if(_0x4a4526['message']&&_0x4a4526['message'][_0x4df4a2(0x1703)]){const _0x1c4078={'channel':'sms','account':_0xccea5d,'message':_0x4a4526[_0x4df4a2(0x7fd)],'contact':_0x4a4526['contact']};_0x34b2f6[_0x4df4a2(0x387)](_0x1c4078);}else{const _0x42c8f6=_0x4a4526;return _0x51630a[_0x4df4a2(0x2209)][_0x4df4a2(0x1443)]({'id':_0xccea5d['id']},_0x42c8f6)[_0x4df4a2(0x2945)][_0x4df4a2(0x146b)](function(_0x39cc38){const _0x9f9385=_0x4df4a2;_0x47e2c3[_0x9f9385(0x1c75)]({'title':_0x9f9385(0x24ad),'msg':_0x9f9385(0x54f)}),_0x4dc55e[_0x9f9385(0x2870)]['vm']['addInteractionTab'](_0x9f9385(0x929),_0x39cc38);})[_0x4df4a2(0x129e)](function(_0x452023){const _0x16a4b9=_0x4df4a2;if(_0x452023[_0x16a4b9(0x524)]&&_0x452023['data'][_0x16a4b9(0xcef)]&&_0x452023[_0x16a4b9(0x524)]['errors'][_0x16a4b9(0x402)])for(let _0x1f096f=0x0;_0x1f096f<_0x452023[_0x16a4b9(0x524)][_0x16a4b9(0xcef)][_0x16a4b9(0x402)];_0x1f096f++){_0x47e2c3[_0x16a4b9(0x1980)]({'title':_0x452023[_0x16a4b9(0x524)]['errors'][_0x1f096f][_0x16a4b9(0x1142)],'msg':_0x452023[_0x16a4b9(0x524)][_0x16a4b9(0xcef)][_0x1f096f][_0x16a4b9(0x7fd)]});}else _0x47e2c3[_0x16a4b9(0x1980)]({'title':_0x452023[_0x16a4b9(0x107b)]?_0x16a4b9(0x262a)+_0x452023['status']+_0x16a4b9(0x1315)+_0x452023[_0x16a4b9(0x167f)]:_0x16a4b9(0x1837),'msg':_0x452023[_0x16a4b9(0x524)]?JSON[_0x16a4b9(0x10bb)](_0x452023[_0x16a4b9(0x524)][_0x16a4b9(0x7fd)]):_0x452023[_0x16a4b9(0x7fd)]||_0x452023[_0x16a4b9(0xd5f)]()});});}}});}function _0x1be1fa(_0x57e7bc){const _0x30a799=_0xee069c;let _0x3c3ce6;const _0x5809a7=_0x3f65c0()[_0x30a799(0xc84)](_0x4b0986[_0x30a799(0xdbc)][_0x30a799(0x19c7)],{'id':_0x57e7bc[_0x30a799(0x12c0)]});_0x5809a7&&_0x5809a7[_0x30a799(0x3c4)]&&(_0x3c3ce6=_0x3f65c0()[_0x30a799(0xc84)](_0x5809a7[_0x30a799(0x3c4)],{'id':_0x57e7bc['UserId']}),!_0x3c3ce6&&_0x5809a7[_0x30a799(0x3c4)]['push']({'id':_0x57e7bc[_0x30a799(0xea2)]}));}function _0x4f7ab2(_0x4adb90){const _0x165189=_0xee069c,_0x390d03=_0x3f65c0()['find'](_0x4b0986[_0x165189(0xdbc)]['rows'],{'id':_0x4adb90[_0x165189(0x12c0)]});_0x390d03&&_0x390d03[_0x165189(0x3c4)]&&_0x3f65c0()[_0x165189(0x2640)](_0x390d03[_0x165189(0x3c4)],{'id':_0x4adb90[_0x165189(0xea2)]});}function _0x5be4e3(_0xb58f24){const _0x132f21=_0xee069c;if(_0xb58f24){const _0x286e6a=_0x3f65c0()[_0x132f21(0xc84)](_0x4b0986[_0x132f21(0xdbc)]['rows'],{'id':_0xb58f24['id']});if(_0x286e6a){_0x286e6a['Users']=[];_0xb58f24['closed']&&(_0x286e6a['unreadMessages']=0x0);if(_0x4b0986['query'][_0x132f21(0x28fa)]){const _0x2699a6=_0x3f65c0()['startsWith'](_0x4b0986[_0x132f21(0x1a56)][_0x132f21(0x28fa)],'-')?'desc':'asc';_0x4b0986['smsInteractions'][_0x132f21(0x19c7)]=_0x3f65c0()['orderBy'](_0x4b0986[_0x132f21(0xdbc)][_0x132f21(0x19c7)],_0x3f65c0()[_0x132f21(0x25b5)](_0x4b0986['query']['sort'],'-'),_0x2699a6);}_0x3f65c0()[_0x132f21(0x168d)](_0x286e6a,_0x3f65c0()[_0x132f21(0x40e)](_0xb58f24,_0x3f65c0()[_0x132f21(0x627)](_0x286e6a)));}else _0xb4daec(_0x4b0986[_0x132f21(0x1a56)][_0x132f21(0x844)]);}}function _0x5026ee(_0x4abd4b){const _0x22466e=_0xee069c;if(_0x4abd4b){const _0x549545=_0x3f65c0()[_0x22466e(0xc84)](_0x4b0986[_0x22466e(0xdbc)][_0x22466e(0x19c7)],{'id':_0x4abd4b['id']});_0x549545&&(_0x549545[_0x22466e(0x2331)]=_0x4abd4b[_0x22466e(0x1b86)]||[],_0x3f65c0()[_0x22466e(0x168d)](_0x549545,_0x3f65c0()['pick'](_0x4abd4b,_0x3f65c0()[_0x22466e(0x627)](_0x549545))));}}function _0x135862(_0x504785){const _0x4f77cd=_0xee069c;if(_0x504785&&!_0x504785[_0x4f77cd(0xaf0)]){const _0x107fd2=_0x3f65c0()[_0x4f77cd(0xc84)](_0x4b0986['smsInteractions'][_0x4f77cd(0x19c7)],{'id':_0x504785[_0x4f77cd(0x12c0)]});if(_0x107fd2){const _0x4419c3=_0x3f65c0()['find'](_0x107fd2[_0x4f77cd(0x1c7c)],{'id':_0x504785['id']});_0x4419c3?_0x3f65c0()[_0x4f77cd(0x168d)](_0x4419c3,_0x3f65c0()['pick'](_0x504785,_0x3f65c0()[_0x4f77cd(0x627)](_0x4419c3))):(_0x3f65c0()[_0x4f77cd(0x1b36)](_0x107fd2[_0x4f77cd(0x1c7c)])&&(_0x107fd2[_0x4f77cd(0x1c7c)]={'count':0x0}),!_0x504785[_0x4f77cd(0x229e)]&&(_0x107fd2[_0x4f77cd(0x1c7c)][_0x4f77cd(0x51c)]+=0x1));}}}function _0x3737cf(){_0x4b0986['isSearchBarVisible']=![];}function _0xa85b50(){_0x4b0986['isSearchBarVisible']=!![];}function _0xe7d75a(){const _0x33e2e9=_0xee069c;_0x4b0986['isSearchBarVisible']=![],_0x5b66c8[_0x33e2e9(0x2615)]({'controller':_0x33e2e9(0x26bc),'controllerAs':'vm','templateUrl':_0x3fb128,'parent':angular[_0x33e2e9(0x1853)](_0x5412b5[_0x33e2e9(0x2586)]),'clickOutsideToClose':![],'locals':{'color':_0x4b0986['sectionColor'],'fields':_0x4b0986[_0x33e2e9(0xe93)]['fields'],'storagePath':'home.sms'},'fullscreen':!![]})[_0x33e2e9(0x146b)](function(_0xf34616){const _0x3f8513=_0x33e2e9;_0x4b0986[_0x3f8513(0x1a56)][_0x3f8513(0x21da)]=_0xf34616===![]?undefined:_0xf34616;if(_0x4b0986[_0x3f8513(0x1a56)][_0x3f8513(0x21da)]||_0xf34616===![])_0xb4daec();})[_0x33e2e9(0x129e)](function(_0x1b9e93){const _0x4bbf2a=_0x33e2e9;_0x47e2c3['error']({'title':_0x4bbf2a(0x10f5),'msg':_0x1b9e93[_0x4bbf2a(0x524)]?JSON[_0x4bbf2a(0x10bb)](_0x1b9e93[_0x4bbf2a(0x524)][_0x4bbf2a(0x7fd)]):_0x1b9e93[_0x4bbf2a(0xd5f)]()});});}let _0x1c3e6f=!![],_0x192459=0x1;_0x4dc55e[_0xee069c(0x21e8)](_0xee069c(0x2669),function(_0x2ccc21,_0x56734f){const _0x3538ac=_0xee069c;_0x1c3e6f?_0x5a2e5a(function(){_0x1c3e6f=![];}):(!_0x56734f&&(_0x192459=_0x4b0986['query'][_0x3538ac(0x844)]),_0x2ccc21!==_0x56734f&&(_0x4b0986['query'][_0x3538ac(0x844)]=0x1),!_0x2ccc21&&(_0x4b0986[_0x3538ac(0x1a56)][_0x3538ac(0x844)]=_0x192459),_0xb4daec(_0x4b0986[_0x3538ac(0x1a56)][_0x3538ac(0x844)]));}),_0x4dc55e[_0xee069c(0x16ad)](_0xee069c(0x116f),function(){const _0x59e161=_0xee069c;_0x14eb96[_0x59e161(0x1c5f)](_0x59e161(0x2034)),_0x14eb96[_0x59e161(0x1c5f)](_0x59e161(0x28f1)),_0x14eb96[_0x59e161(0x1c5f)](_0x59e161(0x1fa2)),_0x14eb96[_0x59e161(0x1c5f)](_0x59e161(0xe00)),_0x14eb96['removeAllListeners']('smsInteraction:update'),_0x14eb96[_0x59e161(0x1c5f)]('user_has_sms_interactions:save'),_0x14eb96['removeAllListeners'](_0x59e161(0x1bd1));});}const _0x50e67a=_0x25f77c;;const _0x531f1c=_0x4acfac['p']+'src/js/modules/main/apps/dashboards/views/general/agent/home/voice/details/dialog.html/dialog.html';;_0x37eaf5['$inject']=[_0x313a4d(0x10e8),_0x313a4d(0x4d8),_0x313a4d(0x247f),_0x313a4d(0x1fe4),_0x313a4d(0xa87),_0x313a4d(0x1aa9),_0x313a4d(0x910),'$timeout'];function _0x37eaf5(_0x23210c,_0x13a225,_0x3d2dde,_0x2be8a7,_0x4d3dc2,_0x225c6b,_0x4f6b16,_0x1225be){const _0x1712d3=_0x313a4d,_0x480898=this;_0x480898[_0x1712d3(0x2321)]=_0x4d3dc2['getCurrentUser'](),_0x480898['voiceCalls']={},_0x480898['table']='voiceCalls',_0x480898[_0x1712d3(0x1a56)]={'UserId':_0x480898[_0x1712d3(0x2321)]['id'],'fields':_0x1712d3(0x18a1),'sort':'-updatedAt','limit':0xa,'page':0x1,'type':null},_0x480898['success']=_0x4f4787,_0x480898[_0x1712d3(0x12ee)]=_0x405d88,_0x480898[_0x1712d3(0x3d4)]=_0x4b6270,_0x480898['showDetails']=_0x4b4a84,_0x480898[_0x1712d3(0x1c4f)]=_0x4c98e5,_0x480898[_0x1712d3(0x28b7)]=_0x900fb1;function _0x4b6270(){const _0x5655b4=_0x1712d3;return _0x3d2dde[_0x5655b4(0xa80)][_0x5655b4(0x16b4)]()[_0x5655b4(0x2945)][_0x5655b4(0x146b)](function(_0x3b5a2c){const _0x442f9d=_0x5655b4;_0x480898[_0x442f9d(0x1b86)]=_0x3b5a2c||{'count':0x0,'rows':[]};})[_0x5655b4(0x146b)](function(){const _0x4cfe14=_0x5655b4;_0x480898[_0x4cfe14(0x28af)]=_0x378d68();})[_0x5655b4(0x129e)](function(_0x5bbf1f){const _0x31ad1a=_0x5655b4;_0x2be8a7['error']({'title':'Init\x20error','msg':_0x5bbf1f[_0x31ad1a(0x524)]?JSON[_0x31ad1a(0x10bb)](_0x5bbf1f[_0x31ad1a(0x524)][_0x31ad1a(0x7fd)]):_0x5bbf1f[_0x31ad1a(0x7fd)]||_0x5bbf1f[_0x31ad1a(0xd5f)]()}),_0x480898['tags']={'count':0x0,'rows':[]};})[_0x5655b4(0x1ec6)](function(){const _0xc0aa07=_0x5655b4;let _0x52f28b=_0x225c6b[_0xc0aa07(0x1c39)][_0xc0aa07(0x1519)](_0xc0aa07(0x1442)+_0x480898[_0xc0aa07(0x2321)]['id']);if(_0x52f28b)try{_0x52f28b=JSON[_0xc0aa07(0x975)](_0x52f28b),_0x52f28b['query']&&(_0x480898[_0xc0aa07(0x1a56)]=_0x3f65c0()['omit'](_0x52f28b[_0xc0aa07(0x1a56)],'filter'));}catch(_0x227ee3){console[_0xc0aa07(0x1980)](_0x227ee3);}else{const _0x4f066b={'$gte':_0x2deec6()()[_0xc0aa07(0x1fcc)](_0xc0aa07(0x12b7))['utcOffset'](0x0,!![])[_0xc0aa07(0x22b0)](),'$lte':_0x2deec6()()['endOf']('month')[_0xc0aa07(0x65f)](0x0,!![])[_0xc0aa07(0x22b0)]()};_0x480898[_0xc0aa07(0x1a56)]['createdAt']=_0x4f066b;}_0x405d88();});}function _0x378d68(){const _0x361178=_0x1712d3;return[{'name':_0x361178(0x294),'key':_0x361178(0xc68),'type':_0x361178(0x1a10),'label':_0x361178(0x2902)},{'name':_0x361178(0x18be),'key':'type','type':_0x361178(0xa5f),'label':_0x361178(0x1684),'customOptions':[{'value':_0x361178(0x113f),'translate':_0x361178(0x261d)},{'value':_0x361178(0x7b0),'translate':_0x361178(0x203e)},{'value':_0x361178(0xc9c),'translate':_0x361178(0xe48)},{'value':_0x361178(0x2842),'translate':_0x361178(0x1ea6)},{'value':null,'translate':_0x361178(0x1d00)}]}];}function _0x4f4787(_0x503154){const _0xd0a076=_0x1712d3;_0x480898[_0xd0a076(0x14eb)]=![],_0x480898[_0xd0a076(0x21b3)]=_0x503154||{'count':0x0,'rows':[]};}function _0x405d88(){const _0x5c6efb=_0x1712d3;_0x480898[_0x5c6efb(0x14eb)]=!![],_0x480898[_0x5c6efb(0x1a56)]['offset']=(_0x480898[_0x5c6efb(0x1a56)]['page']-0x1)*_0x480898[_0x5c6efb(0x1a56)]['limit'];const _0x1d242f={'query':_0x480898[_0x5c6efb(0x1a56)]};_0x225c6b[_0x5c6efb(0x1c39)][_0x5c6efb(0xc32)]('motion2.home.voice:'+_0x480898[_0x5c6efb(0x2321)]['id'],JSON[_0x5c6efb(0x10bb)](_0x1d242f)),_0x480898[_0x5c6efb(0xb9c)]=_0x3d2dde[_0x5c6efb(0x629)][_0x5c6efb(0x16b4)](_0x480898[_0x5c6efb(0x1a56)],_0x4f4787)[_0x5c6efb(0x2945)];}function _0x4b4a84(_0x441213){const _0x3bdec0=_0x1712d3;_0x23210c[_0x3bdec0(0x2615)]({'controller':_0x3bdec0(0x35b),'controllerAs':'vm','templateUrl':_0x531f1c,'parent':angular['element'](_0x13a225[_0x3bdec0(0x2586)]),'clickOutsideToClose':!![],'locals':{'call':_0x441213}});}function _0x4c98e5(){const _0x2a8988=_0x1712d3;_0x480898[_0x2a8988(0x1a56)][_0x2a8988(0x1dd6)]=undefined,_0x480898[_0x2a8988(0x2516)]=![];}function _0x900fb1(){_0x480898['isSearchBarVisible']=!![];}let _0x56e6ac=!![],_0x2a2719=0x1;_0x4f6b16[_0x1712d3(0x21e8)]('vm.query.filter',function(_0x473363,_0x37f4a8){const _0x32810b=_0x1712d3;_0x56e6ac?_0x1225be(function(){_0x56e6ac=![];}):(!_0x37f4a8&&(_0x2a2719=_0x480898[_0x32810b(0x1a56)][_0x32810b(0x844)]),_0x473363!==_0x37f4a8&&(_0x480898[_0x32810b(0x1a56)][_0x32810b(0x844)]=0x1),!_0x473363&&(_0x480898['query'][_0x32810b(0x844)]=_0x2a2719),_0x480898[_0x32810b(0x12ee)]());});}const _0x2fa6f1=_0x37eaf5;;_0x376768['$inject']=[_0x313a4d(0x10e8),_0x313a4d(0x133b)];function _0x376768(_0x1b44e0,_0x20dc12){const _0x3bb3f1=_0x313a4d,_0x3c5c73=this;_0x3c5c73[_0x3bb3f1(0x133b)]=_0x20dc12;function _0xa5fbaa(){const _0x4d9c53=_0x3bb3f1;_0x1b44e0[_0x4d9c53(0x2458)]();}_0x3c5c73['closeDialog']=_0xa5fbaa;}const _0x298ae7=_0x376768;;_0x52133d[_0x313a4d(0x11c2)]=['$scope',_0x313a4d(0x1abe),_0x313a4d(0x10e8),'$document',_0x313a4d(0x1aa9),'$translate',_0x313a4d(0x247f),_0x313a4d(0xa87),_0x313a4d(0x279d),_0x313a4d(0x1fe4),_0x313a4d(0x1909)];function _0x52133d(_0x309a7f,_0x442dbc,_0x1ce68,_0x27c410,_0x5583bc,_0x3b7e70,_0x2b6576,_0x1721cd,_0x2935a8,_0x5c2aac,_0x9ac100){const _0x21bdaf=_0x313a4d,_0x4eef21=this;_0x4eef21[_0x21bdaf(0xe7b)]=_0x1721cd[_0x21bdaf(0xb12)](),_0x4eef21[_0x21bdaf(0x2690)]={},_0x4eef21['setting']={},_0x4eef21[_0x21bdaf(0x1b86)]={'count':0x0,'rows':[]},_0x4eef21[_0x21bdaf(0x941)]={'count':0x0,'rows':[]},_0x4eef21[_0x21bdaf(0x1a56)]={'includeAll':!![],'sort':_0x21bdaf(0x12f2),'limit':0xa,'page':0x1,'read':null,'closed':null},_0x4eef21['advancedSearch']={'fields':[{'name':'Id','column':'id','type':_0x21bdaf(0x181)},{'name':'Contact','column':'Contact','type':_0x21bdaf(0x14ee),'options':{'searchFields':['firstName',_0x21bdaf(0xee4),'email'],'route':{'model':_0x21bdaf(0x18c3),'action':'get','params':{'fields':'id,firstName,lastName,email','Contact':'@autocomplete','nolimit':!![]}},'extraOperators':['$substring'],'excludedOperators':['$ne']}},{'name':_0x21bdaf(0x710),'column':_0x21bdaf(0x2586),'type':_0x21bdaf(0xa8d),'options':{'excludedOperators':[_0x21bdaf(0x6be),_0x21bdaf(0x1671)]}},{'name':_0x21bdaf(0x74e),'column':_0x21bdaf(0x1943),'type':'select','values':[{'id':0x0,'translate':_0x21bdaf(0x143b)},{'id':0x1,'translate':_0x21bdaf(0x1805)}],'options':{'excludedOperators':['$ne']}},{'name':_0x21bdaf(0x294a),'column':_0x21bdaf(0x2393),'type':'autocomplete','options':{'table':'i','route':{'model':'user','action':_0x21bdaf(0x16b4),'params':{'role':'agent','fields':_0x21bdaf(0x12bf),'nolimit':!![]}},'searchFields':['fullname',_0x21bdaf(0x19eb)],'extraOperators':[_0x21bdaf(0xacb)],'excludedOperators':[_0x21bdaf(0x1671)]}},{'name':'Account','column':'WhatsappAccountId','type':'multiselect','options':{'route':{'model':_0x21bdaf(0xe7b),'action':_0x21bdaf(0x28f),'params':{'id':_0x4eef21['user']['id'],'nolimit':!![]}}}},{'name':_0x21bdaf(0x2331),'column':'Tag','type':_0x21bdaf(0x175c),'options':{'route':{'model':_0x21bdaf(0xa80),'action':_0x21bdaf(0x16b4),'params':{'nolimit':!![]}},'excludedOperators':['$notIn']}},{'name':_0x21bdaf(0x294),'column':_0x21bdaf(0xc68),'type':_0x21bdaf(0x1a10),'options':{'excludedOperators':[_0x21bdaf(0x1671)]}},{'name':_0x21bdaf(0x270b),'column':_0x21bdaf(0x26a6),'type':_0x21bdaf(0xa5f),'values':[{'id':0x1,'translate':_0x21bdaf(0x1ce6)},{'id':0x0,'translate':'DASHBOARDS.UNREAD'}],'options':{'excludedOperators':[_0x21bdaf(0x1671)]}}]},_0x4eef21[_0x21bdaf(0x1527)]=_0x21bdaf(0x510),_0x4eef21[_0x21bdaf(0x3d4)]=_0x181acf,_0x4eef21[_0x21bdaf(0x1c75)]=_0x50c8e6,_0x4eef21[_0x21bdaf(0x152f)]=_0x1619a9,_0x4eef21[_0x21bdaf(0x75a)]=_0x3c9303,_0x4eef21[_0x21bdaf(0xbcc)]=_0x2abe56,_0x4eef21['disposeInteraction']=_0x26ef9f,_0x4eef21[_0x21bdaf(0x4b5)]=_0x1582e0,_0x4eef21[_0x21bdaf(0xe3b)]=_0x1b4d22,_0x4eef21[_0x21bdaf(0x22fe)]=_0x3fe82d,_0x4eef21[_0x21bdaf(0x1ae3)]=_0x3e5922,_0x4eef21[_0x21bdaf(0x1c4f)]=_0x5149f2,_0x4eef21['onSearchBarExpand']=_0x1dc038,_0x4eef21[_0x21bdaf(0x21a6)]=_0x47ed44;function _0x181acf(_0x15d89b,_0x3ed582){const _0x3eb591=_0x21bdaf;return _0x4eef21[_0x3eb591(0x2690)]=_0x15d89b,_0x4eef21['setting']=_0x3ed582,_0x2b6576[_0x3eb591(0xe7b)][_0x3eb591(0x16b4)+_0x3f65c0()[_0x3eb591(0x21cf)](_0x3eb591(0x23c))]({'id':_0x4eef21['user']['id'],'nolimit':!![]})['$promise']['then'](function(_0x12949f){const _0x199a8f=_0x3eb591;return _0x4eef21['whatsappAccounts']=_0x12949f||{'count':0x0,'rows':[]},_0x2b6576[_0x199a8f(0xa80)][_0x199a8f(0x16b4)]()[_0x199a8f(0x2945)];})[_0x3eb591(0x146b)](function(_0x2bb218){const _0x43649a=_0x3eb591;_0x4eef21[_0x43649a(0x1b86)]=_0x2bb218||{'count':0x0,'rows':[]};})[_0x3eb591(0x146b)](function(){const _0x1e9cba=_0x3eb591;_0x4eef21[_0x1e9cba(0x28af)]=_0x3d8bc6();})['catch'](function(_0x2f8795){const _0x2c7f3=_0x3eb591;console[_0x2c7f3(0x1980)](_0x2f8795);})[_0x3eb591(0x1ec6)](function(){const _0x312f58=_0x3eb591;let _0x2fe0c2=_0x5583bc['localStorage'][_0x312f58(0x1519)](_0x312f58(0x1e4e)+_0x4eef21[_0x312f58(0xe7b)]['id']);if(_0x2fe0c2)try{_0x2fe0c2=JSON['parse'](_0x2fe0c2);if(_0x2fe0c2[_0x312f58(0x1a56)]){_0x4eef21[_0x312f58(0x1a56)]=_0x3f65c0()['merge'](_0x4eef21[_0x312f58(0x1a56)],_0x2fe0c2[_0x312f58(0x1a56)]);if(_0x3f65c0()['isEmpty'](_0x4eef21[_0x312f58(0x23c)][_0x312f58(0x19c7)]))_0x4eef21[_0x312f58(0x1a56)][_0x312f58(0x158a)]=[];else _0x3f65c0()[_0x312f58(0x2635)](_0x4eef21[_0x312f58(0x1a56)]['WhatsappAccountId'])&&(_0x4eef21[_0x312f58(0x1a56)][_0x312f58(0x158a)]=_0x3f65c0()(_0x4eef21[_0x312f58(0x23c)]['rows'])[_0x312f58(0x205)]('id')[_0x312f58(0x2421)]()[_0x312f58(0x175d)]());_0x4eef21['query'][_0x312f58(0x28fa)]&&_0x4eef21['query']['sort'][_0x312f58(0x172b)](_0x312f58(0x186))>=0x0&&(_0x4eef21[_0x312f58(0x1a56)]=_0x3f65c0()[_0x312f58(0x2432)](_0x4eef21['query'],_0x312f58(0x28fa))),_0x4eef21[_0x312f58(0x1a56)][_0x312f58(0x287)]=!![],_0x4eef21[_0x312f58(0x2516)]=_0x4eef21[_0x312f58(0x1a56)]['filter']?!![]:![];}}catch(_0x443b53){console[_0x312f58(0x1980)](_0x443b53);}else{const _0x2a09f9={'$gte':_0x2deec6()()[_0x312f58(0x1fcc)](_0x312f58(0x12b7))['utcOffset'](0x0,!![])['format'](),'$lte':_0x2deec6()()[_0x312f58(0x824)](_0x312f58(0x12b7))[_0x312f58(0x65f)](0x0,!![])[_0x312f58(0x22b0)]()},_0x2b1654={'WhatsappAccountId':_0x3f65c0()[_0x312f58(0x205)](_0x4eef21[_0x312f58(0x23c)][_0x312f58(0x19c7)],'id'),'createdAt':_0x2a09f9};_0x4eef21[_0x312f58(0x1a56)]=_0x3f65c0()[_0x312f58(0x168d)](_0x4eef21['query'],_0x2b1654);}_0x2935a8['on'](_0x312f58(0xf40),_0x491122),_0x2935a8['on'](_0x312f58(0x2887),_0x491122),_0x2935a8['on'](_0x312f58(0x1355),_0x5a122f),_0x2935a8['on'](_0x312f58(0xe72),_0x5496a7),_0x2935a8['on'](_0x312f58(0xbfe),_0x5496a7),_0x2935a8['on'](_0x312f58(0xd6c),_0x1ea179),_0x2935a8['on'](_0x312f58(0x78d),_0x17d590),_0x1619a9(_0x4eef21[_0x312f58(0x1a56)][_0x312f58(0x844)]);});}function _0x3d8bc6(){const _0x4350ab=_0x21bdaf;return[{'name':_0x4350ab(0x294),'key':'createdAt','type':_0x4350ab(0x1a10),'label':'DASHBOARDS.SELECT_DATE'},{'name':'Messages','key':_0x4350ab(0x229e),'type':_0x4350ab(0xa5f),'label':'DASHBOARDS.SELECT_READ_UNREAD','customOptions':[{'value':0x0,'translate':_0x4350ab(0x33f)},{'value':0x1,'translate':_0x4350ab(0x1ce6)},{'value':null,'translate':_0x4350ab(0x175e)}]},{'name':_0x4350ab(0x74e),'key':_0x4350ab(0x1943),'type':'select','label':_0x4350ab(0x1682),'customOptions':[{'value':0x0,'translate':_0x4350ab(0x143b)},{'value':0x1,'translate':_0x4350ab(0x1805)},{'value':null,'translate':'DASHBOARDS.ALL'}]},{'name':_0x4350ab(0xb48),'key':_0x4350ab(0x158a),'type':_0x4350ab(0x175c),'label':_0x4350ab(0x1b49),'options':_0x4eef21[_0x4350ab(0x23c)][_0x4350ab(0x19c7)],'clearAll':![]},{'name':_0x4350ab(0x294a),'key':'UserId','type':_0x4350ab(0xa5f),'label':_0x4350ab(0x127),'customOptions':[{'value':_0x4eef21[_0x4350ab(0xe7b)]['id'],'translate':_0x4350ab(0x6d9)},{'value':_0x4350ab(0x203c),'translate':'DASHBOARDS.NOT_ASSIGNED'},{'value':undefined,'translate':'DASHBOARDS.ALL'}]},{'name':'Tag','key':_0x4350ab(0xa80),'type':_0x4350ab(0x175c),'label':'DASHBOARDS.SELECT_TAG','options':_0x4eef21[_0x4350ab(0x1b86)][_0x4350ab(0x19c7)],'placeholder':_0x4350ab(0x66f)}];}function _0x50c8e6(_0x263745){const _0x59bcc1=_0x21bdaf;_0x4eef21[_0x59bcc1(0x14eb)]=![],_0x4eef21['whatsappInteractions']=_0x263745||{'count':0x0,'rows':[]};for(let _0x517b4a=0x0;_0x517b4a<_0x4eef21[_0x59bcc1(0x941)]['rows'][_0x59bcc1(0x402)];_0x517b4a+=0x1){_0x1582e0(_0x4eef21[_0x59bcc1(0x941)][_0x59bcc1(0x19c7)][_0x517b4a]);}}function _0x1619a9(_0x2761d2){const _0x17612c=_0x21bdaf;_0x4eef21['searchInProgress']=!![];!_0x2761d2&&(_0x4eef21[_0x17612c(0x1a56)][_0x17612c(0x844)]=0x1);_0x4eef21[_0x17612c(0x1a56)][_0x17612c(0x145d)]=(_0x4eef21['query'][_0x17612c(0x844)]-0x1)*_0x4eef21[_0x17612c(0x1a56)][_0x17612c(0x221e)];let _0x398127=_0x5583bc[_0x17612c(0x1c39)][_0x17612c(0x1519)]('motion2.home.whatsapp:'+_0x4eef21[_0x17612c(0xe7b)]['id']);_0x398127=_0x398127?JSON['parse'](_0x398127):{},_0x398127['query']=_0x4eef21[_0x17612c(0x1a56)],_0x5583bc[_0x17612c(0x1c39)][_0x17612c(0xc32)]('motion2.home.whatsapp:'+_0x4eef21[_0x17612c(0xe7b)]['id'],JSON[_0x17612c(0x10bb)](_0x398127)),_0x4eef21[_0x17612c(0xb9c)]=_0x2b6576[_0x17612c(0x257a)][_0x17612c(0x16b4)](_0x4eef21[_0x17612c(0x1a56)],_0x50c8e6)[_0x17612c(0x2945)];}function _0x3c9303(_0x25698e,_0x20f1fe){const _0x3c40c8=_0x21bdaf;_0x309a7f[_0x3c40c8(0x2870)]['vm']['addInteractionTab'](_0x3c40c8(0xff9),_0x20f1fe);}function _0x2abe56(_0x591aa6,_0x128791,_0x52d966){const _0x16d493=_0x21bdaf;_0x2b6576['whatsappInteraction']['download']({'id':_0x128791['id'],'attachments':_0x52d966})[_0x16d493(0x2945)][_0x16d493(0x146b)](function(_0x502b7e){const _0x5787e1=_0x16d493,_0x1e1dae=[_0x502b7e[_0x5787e1(0x2eb)]],_0x42fef3=_0x5787e1(0x19a6)+_0x128791['id']+_0x5787e1(0xf04),_0x59cb84=new Blob(_0x1e1dae,{'type':_0x502b7e['type']}),_0x4ad15f=window['document'][_0x5787e1(0x24ec)]('a');_0x4ad15f['setAttribute']('href',URL[_0x5787e1(0x1c58)](_0x59cb84)),_0x4ad15f['setAttribute'](_0x5787e1(0x15b1),_0x42fef3),document[_0x5787e1(0x2586)][_0x5787e1(0x23e)](_0x4ad15f),_0x4ad15f['click']();})[_0x16d493(0x129e)](function(_0x50a853){const _0x379ef9=_0x16d493;if(_0x50a853[_0x379ef9(0x524)]&&_0x50a853['data'][_0x379ef9(0xcef)]&&_0x50a853[_0x379ef9(0x524)]['errors'][_0x379ef9(0x402)])for(let _0x25aaae=0x0;_0x25aaae<_0x50a853[_0x379ef9(0x524)]['errors'][_0x379ef9(0x402)];_0x25aaae+=0x1){_0x5c2aac[_0x379ef9(0x1980)]({'title':_0x50a853[_0x379ef9(0x524)][_0x379ef9(0xcef)][_0x25aaae]['type'],'msg':_0x50a853[_0x379ef9(0x524)][_0x379ef9(0xcef)][_0x25aaae][_0x379ef9(0x7fd)]});}else _0x5c2aac[_0x379ef9(0x1980)]({'title':_0x50a853[_0x379ef9(0x107b)]?_0x379ef9(0x262a)+_0x50a853[_0x379ef9(0x107b)]+'\x20-\x20'+_0x50a853['statusText']:_0x379ef9(0xbcc),'msg':_0x50a853['data']?JSON[_0x379ef9(0x10bb)](_0x50a853[_0x379ef9(0x524)][_0x379ef9(0x7fd)]):_0x50a853[_0x379ef9(0xd5f)]()});});}function _0x26ef9f(_0x1c7450,_0x355d0){const _0x3c33bb=_0x21bdaf,_0x287226=_0x4eef21[_0x3c33bb(0xe7b)][_0x3c33bb(0x211c)]||_0x4eef21[_0x3c33bb(0xe7b)][_0x3c33bb(0x5f7)]||_0x4eef21['user']['mailPause']||_0x4eef21[_0x3c33bb(0xe7b)][_0x3c33bb(0xcc5)]||_0x4eef21[_0x3c33bb(0xe7b)][_0x3c33bb(0x25c4)],_0x110de9=!_0x355d0[_0x3c33bb(0xb48)]['mandatoryDisposition'];_0x1ce68[_0x3c33bb(0x2615)]({'controller':_0x3c33bb(0xe23),'controllerAs':'vm','templateUrl':_0x56fd44,'parent':angular[_0x3c33bb(0x1853)](_0x27c410['body']),'clickOutsideToClose':_0x110de9,'escapeToClose':_0x110de9,'onRemoving':function(){const _0xbfd6ac=_0x3c33bb;_0x4eef21[_0xbfd6ac(0xe7b)]&&_0x355d0['Account'][_0xbfd6ac(0xc9e)]&&!_0x287226&&_0x2b6576[_0xbfd6ac(0xe7b)][_0xbfd6ac(0x974)]({'id':_0x4eef21[_0xbfd6ac(0xe7b)]['id']})[_0xbfd6ac(0x2945)]['catch'](function(_0x2abfa4){console['error'](_0x2abfa4);});},'locals':{'user':_0x4eef21[_0x3c33bb(0xe7b)],'channel':_0x3c33bb(0xff9),'interaction':_0x355d0}});}function _0x1582e0(_0x5a5aef){const _0x3728de=_0x21bdaf;_0x5a5aef[_0x3728de(0x364)]?(_0x5a5aef[_0x3728de(0x792)]=(_0x5a5aef['Contact']['firstName']||'')+'\x20'+(_0x5a5aef[_0x3728de(0x364)][_0x3728de(0xee4)]||''),_0x5a5aef[_0x3728de(0x14e3)]=_0x5a5aef[_0x3728de(0x364)][_0x3728de(0xa4b)]):_0x5a5aef[_0x3728de(0x792)]=_0x3b7e70[_0x3728de(0xde)](_0x3728de(0xe0b));}function _0x1b4d22(_0x5c0d0b){const _0x2ced00=_0x21bdaf;if(_0x5c0d0b[_0x2ced00(0xea2)])return _0x5c0d0b[_0x2ced00(0xea2)]===_0x4eef21[_0x2ced00(0xe7b)]['id']?_0x3b7e70[_0x2ced00(0xde)](_0x2ced00(0x6d9)):_0x5c0d0b[_0x2ced00(0xac5)]['fullname']+'\x20<'+_0x5c0d0b[_0x2ced00(0xac5)][_0x2ced00(0x113f)]+'>';return _0x3b7e70[_0x2ced00(0xde)]('DASHBOARDS.NOT_ASSIGNED');}function _0x3fe82d(_0x2c2ee3){const _0x5ee8f4=_0x21bdaf;if(_0x2c2ee3['Account'])return _0x2c2ee3[_0x5ee8f4(0xb48)][_0x5ee8f4(0x2293)];return _0x3b7e70[_0x5ee8f4(0xde)](_0x5ee8f4(0xe0b));}function _0x3e5922(_0x27c554,_0x5ccd81){const _0x43ae6f=_0x21bdaf;_0x1ce68[_0x43ae6f(0x2615)]({'controller':_0x43ae6f(0x268d),'controllerAs':'vm','templateUrl':_0xeb78a6,'parent':angular[_0x43ae6f(0x1853)](_0x27c410['body']),'clickOutsideToClose':![],'locals':{'account':_0x5ccd81,'message':{},'type':_0x43ae6f(0x16d9),'interaction':{}},'fullscreen':!![]})[_0x43ae6f(0x146b)](function(_0x2e3819){const _0x25a961=_0x43ae6f;if(_0x2e3819){if(_0x2e3819['message']&&_0x2e3819['message'][_0x25a961(0x1703)]){const _0x20c471={'channel':_0x25a961(0xff9),'account':_0x5ccd81,'message':_0x2e3819[_0x25a961(0x7fd)],'contact':_0x2e3819[_0x25a961(0x1662)]};_0x9ac100[_0x25a961(0x387)](_0x20c471);}else{const _0x5283c5=_0x2e3819;return _0x2b6576[_0x25a961(0x815)][_0x25a961(0x1443)]({'id':_0x5ccd81['id']},_0x5283c5)[_0x25a961(0x2945)]['then'](function(_0x55286e){const _0x435872=_0x25a961;_0x5c2aac[_0x435872(0x1c75)]({'title':_0x435872(0x24ad),'msg':_0x435872(0x54f)}),_0x309a7f[_0x435872(0x2870)]['vm'][_0x435872(0x2614)](_0x435872(0xff9),_0x55286e);})[_0x25a961(0x129e)](function(_0x949c95){const _0x548e62=_0x25a961;if(_0x949c95['data']&&_0x949c95[_0x548e62(0x524)][_0x548e62(0xcef)]&&_0x949c95[_0x548e62(0x524)][_0x548e62(0xcef)]['length'])for(let _0x534bf7=0x0;_0x534bf7<_0x949c95[_0x548e62(0x524)][_0x548e62(0xcef)][_0x548e62(0x402)];_0x534bf7++){_0x5c2aac[_0x548e62(0x1980)]({'title':_0x949c95[_0x548e62(0x524)][_0x548e62(0xcef)][_0x534bf7]['type'],'msg':_0x949c95[_0x548e62(0x524)][_0x548e62(0xcef)][_0x534bf7][_0x548e62(0x7fd)]});}else _0x5c2aac[_0x548e62(0x1980)]({'title':_0x949c95['status']?_0x548e62(0x262a)+_0x949c95['status']+_0x548e62(0x1315)+_0x949c95[_0x548e62(0x167f)]:_0x548e62(0x1f6c),'msg':_0x949c95[_0x548e62(0x524)]?JSON[_0x548e62(0x10bb)](_0x949c95[_0x548e62(0x524)][_0x548e62(0x7fd)]):_0x949c95['message']||_0x949c95[_0x548e62(0xd5f)]()});});}}});}function _0x1ea179(_0x510a5f){const _0x31dcc8=_0x21bdaf;let _0x1d7a51;const _0x8f1ddd=_0x3f65c0()[_0x31dcc8(0xc84)](_0x4eef21[_0x31dcc8(0x941)][_0x31dcc8(0x19c7)],{'id':_0x510a5f[_0x31dcc8(0xcd7)]});_0x8f1ddd&&_0x8f1ddd['Users']&&(_0x1d7a51=_0x3f65c0()[_0x31dcc8(0xc84)](_0x8f1ddd[_0x31dcc8(0x3c4)],{'id':_0x510a5f[_0x31dcc8(0xea2)]}),!_0x1d7a51&&_0x8f1ddd[_0x31dcc8(0x3c4)][_0x31dcc8(0x1f47)]({'id':_0x510a5f[_0x31dcc8(0xea2)]}));}function _0x17d590(_0x33e6c6){const _0x3c66fd=_0x21bdaf,_0x2f014e=_0x3f65c0()[_0x3c66fd(0xc84)](_0x4eef21[_0x3c66fd(0x941)][_0x3c66fd(0x19c7)],{'id':_0x33e6c6[_0x3c66fd(0xcd7)]});_0x2f014e&&_0x2f014e[_0x3c66fd(0x3c4)]&&_0x3f65c0()['remove'](_0x2f014e[_0x3c66fd(0x3c4)],{'id':_0x33e6c6['UserId']});}function _0x491122(_0x284ec5){const _0x2b85b7=_0x21bdaf;if(_0x284ec5){const _0x192db0=_0x3f65c0()['find'](_0x4eef21['whatsappInteractions'][_0x2b85b7(0x19c7)],{'id':_0x284ec5['id']});if(_0x192db0){_0x192db0[_0x2b85b7(0x3c4)]=[];_0x284ec5[_0x2b85b7(0x1943)]&&(_0x192db0[_0x2b85b7(0x26a6)]=0x0);if(_0x4eef21[_0x2b85b7(0x1a56)][_0x2b85b7(0x28fa)]){const _0x302e9d=_0x3f65c0()['startsWith'](_0x4eef21[_0x2b85b7(0x1a56)][_0x2b85b7(0x28fa)],'-')?_0x2b85b7(0x2517):_0x2b85b7(0x195);_0x4eef21['whatsappInteractions'][_0x2b85b7(0x19c7)]=_0x3f65c0()['orderBy'](_0x4eef21[_0x2b85b7(0x941)]['rows'],_0x3f65c0()['trimStart'](_0x4eef21[_0x2b85b7(0x1a56)]['sort'],'-'),_0x302e9d);}_0x3f65c0()['merge'](_0x192db0,_0x3f65c0()['pick'](_0x284ec5,_0x3f65c0()[_0x2b85b7(0x627)](_0x192db0)));}else _0x1619a9(_0x4eef21[_0x2b85b7(0x1a56)]['page']);}}function _0x5a122f(_0x449b78){const _0x204dfa=_0x21bdaf;if(_0x449b78){const _0x29fb0a=_0x3f65c0()[_0x204dfa(0xc84)](_0x4eef21['whatsappInteractions'][_0x204dfa(0x19c7)],{'id':_0x449b78['id']});_0x29fb0a&&(_0x29fb0a[_0x204dfa(0x2331)]=_0x449b78['tags']||[],_0x3f65c0()[_0x204dfa(0x168d)](_0x29fb0a,_0x3f65c0()[_0x204dfa(0x40e)](_0x449b78,_0x3f65c0()[_0x204dfa(0x627)](_0x29fb0a))));}}function _0x5496a7(_0x4011fd){const _0x3ef59c=_0x21bdaf;if(_0x4011fd&&!_0x4011fd['secret']){const _0x5570b6=_0x3f65c0()[_0x3ef59c(0xc84)](_0x4eef21[_0x3ef59c(0x941)][_0x3ef59c(0x19c7)],{'id':_0x4011fd[_0x3ef59c(0xcd7)]});if(_0x5570b6){const _0x3f0d3d=_0x3f65c0()[_0x3ef59c(0xc84)](_0x5570b6[_0x3ef59c(0x1c7c)],{'id':_0x4011fd['id']});_0x3f0d3d?_0x3f65c0()[_0x3ef59c(0x168d)](_0x3f0d3d,_0x3f65c0()[_0x3ef59c(0x40e)](_0x4011fd,_0x3f65c0()['keys'](_0x3f0d3d))):(_0x3f65c0()[_0x3ef59c(0x1b36)](_0x5570b6[_0x3ef59c(0x1c7c)])&&(_0x5570b6[_0x3ef59c(0x1c7c)]={'count':0x0}),!_0x4011fd[_0x3ef59c(0x229e)]&&(_0x5570b6[_0x3ef59c(0x1c7c)][_0x3ef59c(0x51c)]+=0x1));}}}function _0x5149f2(){const _0x2522b3=_0x21bdaf;_0x4eef21[_0x2522b3(0x2516)]=![];}function _0x1dc038(){const _0x5a59ca=_0x21bdaf;_0x4eef21[_0x5a59ca(0x2516)]=!![];}function _0x47ed44(){const _0x13d777=_0x21bdaf;_0x4eef21[_0x13d777(0x2516)]=![],_0x1ce68['show']({'controller':_0x13d777(0x26bc),'controllerAs':'vm','templateUrl':_0x3fb128,'parent':angular[_0x13d777(0x1853)](_0x27c410[_0x13d777(0x2586)]),'clickOutsideToClose':![],'locals':{'color':_0x4eef21['sectionColor'],'fields':_0x4eef21['advancedSearch'][_0x13d777(0x2867)],'storagePath':_0x13d777(0xfcf)},'fullscreen':!![]})[_0x13d777(0x146b)](function(_0x2e51de){const _0x2fc339=_0x13d777;_0x4eef21[_0x2fc339(0x1a56)][_0x2fc339(0x21da)]=_0x2e51de===![]?undefined:_0x2e51de;if(_0x4eef21['query'][_0x2fc339(0x21da)]||_0x2e51de===![])_0x1619a9();})['catch'](function(_0x1065b9){const _0x16786a=_0x13d777;_0x5c2aac[_0x16786a(0x1980)]({'title':_0x16786a(0x10f5),'msg':_0x1065b9['data']?JSON[_0x16786a(0x10bb)](_0x1065b9[_0x16786a(0x524)][_0x16786a(0x7fd)]):_0x1065b9[_0x16786a(0xd5f)]()});});}let _0x1a74bb=!![],_0x18ed97=0x1;_0x309a7f[_0x21bdaf(0x21e8)](_0x21bdaf(0x2669),function(_0x5c3570,_0x8f48f2){const _0x53383b=_0x21bdaf;_0x1a74bb?_0x442dbc(function(){_0x1a74bb=![];}):(!_0x8f48f2&&(_0x18ed97=_0x4eef21[_0x53383b(0x1a56)][_0x53383b(0x844)]),_0x5c3570!==_0x8f48f2&&(_0x4eef21[_0x53383b(0x1a56)]['page']=0x1),!_0x5c3570&&(_0x4eef21[_0x53383b(0x1a56)][_0x53383b(0x844)]=_0x18ed97),_0x1619a9(_0x4eef21['query'][_0x53383b(0x844)]));}),_0x309a7f[_0x21bdaf(0x16ad)](_0x21bdaf(0x116f),function(){const _0x5e5481=_0x21bdaf;_0x2935a8['removeAllListeners'](_0x5e5481(0xe72)),_0x2935a8[_0x5e5481(0x1c5f)](_0x5e5481(0xbfe)),_0x2935a8[_0x5e5481(0x1c5f)](_0x5e5481(0xf40)),_0x2935a8[_0x5e5481(0x1c5f)]('whatsappInteractionTags:save'),_0x2935a8[_0x5e5481(0x1c5f)](_0x5e5481(0x2887)),_0x2935a8[_0x5e5481(0x1c5f)](_0x5e5481(0xd6c)),_0x2935a8[_0x5e5481(0x1c5f)](_0x5e5481(0x78d));});}const _0x1bdaba=_0x52133d;;_0x369d96[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0xb51)];function _0x369d96(_0x469f9a,_0x9cdd4b){const _0xe4732a=_0x313a4d,_0x4ec78b=this;_0x4ec78b[_0xe4732a(0x15b9)]={},_0x4ec78b['messages']={'count':0x0,'rows':[]},_0x4ec78b[_0xe4732a(0x1fae)]=![];function _0x183ab1(_0x11624a,_0x38c78d){const _0x10569b=_0xe4732a;_0x4ec78b['setting']=_0x38c78d,_0x4ec78b[_0x10569b(0x13a3)]=_0x11624a,_0x4ec78b[_0x10569b(0x13a3)][_0x10569b(0x1a2e)]=!![];}function _0x4ce941(){const _0x45edb7=_0xe4732a;return _0x9cdd4b[_0x45edb7(0x66b)](_0x4ec78b[_0x45edb7(0x13a3)][_0x45edb7(0x1006)]);}_0x4ec78b[_0xe4732a(0x5aa)]=_0x183ab1,_0x4ec78b[_0xe4732a(0x208b)]=_0x4ce941;}const _0x5be76c=_0x369d96;;const _0x57afc0=_0x4acfac['p']+_0x313a4d(0x284c);;const _0x5c9cbe=_0x4acfac['p']+_0x313a4d(0xdfe);;_0x371c1a[_0x313a4d(0x11c2)]=[_0x313a4d(0xb51)],_0x1141d1[_0x313a4d(0x11c2)]=['$cookies',_0x313a4d(0x1abe),_0x313a4d(0x4d8),_0x313a4d(0x910),'$mdDialog','$q',_0x313a4d(0xd08),_0x313a4d(0x214b),_0x313a4d(0x247f),_0x313a4d(0x1fe4),_0x313a4d(0xa87),'socket','msUtils',_0x313a4d(0x1909)];function _0x1141d1(_0x9255f0,_0x28db6b,_0x10d48a,_0x17bccc,_0x443e7a,_0x4afbf4,_0x36656a,_0x3ddbd0,_0x21aa01,_0x2bf50f,_0x58df5e,_0x2009d1,_0x52b794,_0x9d3764){const _0x1da86e=_0x313a4d,_0x6f1d61=this,_0x2c9e34=0x19,_0x4f2773=_0x2c9e34*0x400*0x400;_0x6f1d61[_0x1da86e(0x1c9f)]=![],_0x6f1d61[_0x1da86e(0x1fae)]=![],_0x6f1d61[_0x1da86e(0xe7b)]=_0x58df5e[_0x1da86e(0xb12)](),_0x6f1d61[_0x1da86e(0x17dc)]=_0x52b794['detectBrowser'](),_0x6f1d61[_0x1da86e(0x21db)]=[],_0x6f1d61[_0x1da86e(0xb5e)]=[],_0x6f1d61[_0x1da86e(0x449)]=['mail',_0x1da86e(0xa7f),'sms',_0x1da86e(0x7d9),_0x1da86e(0x22d9),_0x1da86e(0xff9)],_0x6f1d61['ngFlowOptions']={'target':_0x1da86e(0x17cb),'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x4f2773,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x6f1d61[_0x1da86e(0x1376)]={'flow':{}},_0x6f1d61[_0x1da86e(0x184a)]={},_0x6f1d61['selectedMailShowSystemMessage']={},_0x6f1d61['setting']={},_0x6f1d61['ctrlMethods']={},_0x6f1d61[_0x1da86e(0x12c8)]={'fontSmiley':!![],'sanitizeHtml':!![],'emoji':!![],'link':!![],'linkTarget':_0x1da86e(0x20f1)},_0x6f1d61[_0x1da86e(0x23e6)]=new Date(_0x2deec6()()[_0x1da86e(0x1fcc)](_0x1da86e(0x12b7))[_0x1da86e(0xd7b)](0x1,_0x1da86e(0xcf5))[_0x1da86e(0x65f)](0x0,!![])['format']()),_0x6f1d61['lastDayMonth']=new Date(_0x2deec6()()[_0x1da86e(0x824)](_0x1da86e(0x12b7))[_0x1da86e(0xd7b)](0x1,_0x1da86e(0x1066))[_0x1da86e(0x65f)](0x0,!![])[_0x1da86e(0x22b0)]()),_0x6f1d61[_0x1da86e(0x5aa)]=_0x5c9973,_0x6f1d61['getLabelByMessage']=_0x2d5b2f,_0x6f1d61[_0x1da86e(0x155f)]=_0x47756e,_0x6f1d61[_0x1da86e(0x1839)]=_0x9e407e,_0x6f1d61['disposeInteraction']=_0xb9e3a5,_0x6f1d61['tagInteraction']=_0x4c8bf5,_0x6f1d61[_0x1da86e(0x107a)]=_0x29fd93,_0x6f1d61[_0x1da86e(0xc96)]=_0x83d3da,_0x6f1d61[_0x1da86e(0x13d8)]=_0x53d091,_0x6f1d61[_0x1da86e(0x1ae3)]=_0x545173,_0x6f1d61[_0x1da86e(0x24b)]=_0x1f8c6b,_0x6f1d61[_0x1da86e(0xc04)]=_0x415ea7,_0x6f1d61[_0x1da86e(0x1301)]=_0x438276,_0x6f1d61[_0x1da86e(0x478)]=_0x24ec4e,_0x6f1d61[_0x1da86e(0x226)]=_0x3ee3fb,_0x6f1d61[_0x1da86e(0x44b)]=_0xc23179,_0x6f1d61[_0x1da86e(0x12d0)]=_0xfb0007,_0x6f1d61['getSmsAccounts']=_0x9d648e,_0x6f1d61['getWhatsappAccounts']=_0x16e483,_0x6f1d61[_0x1da86e(0x12ef)]=_0xa2abd9,_0x6f1d61[_0x1da86e(0x3e5)]=_0xd93911,_0x6f1d61[_0x1da86e(0x233d)]=_0x3d1faf,_0x6f1d61[_0x1da86e(0x512)]=_0x1b9f80,_0x6f1d61[_0x1da86e(0x1dc6)]=_0x4bf587,_0x6f1d61[_0x1da86e(0x143d)]=_0x53ec74,_0x6f1d61[_0x1da86e(0xc4c)]=_0x2ccd03,_0x6f1d61[_0x1da86e(0x22dc)]=_0x4c1e76,_0x6f1d61[_0x1da86e(0x1a85)]=_0x26daa7,_0x6f1d61[_0x1da86e(0x1ef1)]=_0x255554,_0x6f1d61['selectedItemChange']=_0x27e9c6,_0x6f1d61[_0x1da86e(0x230e)]=_0xfdf592,_0x6f1d61[_0x1da86e(0x17e5)]=_0x46aaed,_0x6f1d61[_0x1da86e(0x898)]=_0xdf5660,_0x6f1d61[_0x1da86e(0xaa5)]=_0x184d6f,_0x6f1d61[_0x1da86e(0x14ae)]=![],_0x6f1d61[_0x1da86e(0x1411)]=_0x26500f,_0x6f1d61['setAs']=_0x585fbc,_0x6f1d61[_0x1da86e(0x1c31)]=_0x33a5a0,_0x6f1d61[_0x1da86e(0x1bee)]=_0x3d2650,_0x6f1d61[_0x1da86e(0x280b)]=_0x3b7ae6,_0x6f1d61[_0x1da86e(0x16f5)]=_0x48c9ae,_0x6f1d61['htmlToPlaintext']=_0x29d824,_0x6f1d61[_0x1da86e(0x2015)]=_0x1f68d6,_0x6f1d61[_0x1da86e(0xf28)]=_0x3c76b1,_0x6f1d61['loadNextPage']=_0x11b1b6,_0x6f1d61[_0x1da86e(0x496)]={'scrollEl':_0x1da86e(0x4c5)};function _0xd93911(){const _0x45e38d=_0x1da86e;_0x21aa01[_0x45e38d(0xe7b)]['getChatWebsites']({'id':_0x6f1d61[_0x45e38d(0xe7b)]['id'],'nolimit':!![]})[_0x45e38d(0x2945)][_0x45e38d(0x146b)](function(_0x41a1bf){const _0xb3d206=_0x45e38d;_0x6f1d61[_0xb3d206(0x282c)]=_0x41a1bf||{'count':0x0,'rows':[]};});}function _0x3d1faf(){const _0x5943ae=_0x1da86e;_0x21aa01[_0x5943ae(0xe7b)][_0x5943ae(0x233d)]({'id':_0x6f1d61[_0x5943ae(0xe7b)]['id'],'nolimit':!![]})[_0x5943ae(0x2945)]['then'](function(_0x44e8a1){const _0x1c1f06=_0x5943ae;_0x6f1d61[_0x1c1f06(0x245a)]=_0x44e8a1||{'count':0x0,'rows':[]};});}function _0xa2abd9(){const _0x3f91fc=_0x1da86e;_0x21aa01[_0x3f91fc(0xe7b)][_0x3f91fc(0x12ef)]({'id':_0x6f1d61[_0x3f91fc(0xe7b)]['id'],'nolimit':!![]})[_0x3f91fc(0x2945)][_0x3f91fc(0x146b)](function(_0x3778c){const _0x5ce957=_0x3f91fc;_0x6f1d61[_0x5ce957(0x1690)]=_0x3778c||{'count':0x0,'rows':[]};})['catch'](function(_0x243306){const _0x25af5a=_0x3f91fc;if(_0x243306['data']&&_0x243306[_0x25af5a(0x524)]['errors']&&_0x243306['data'][_0x25af5a(0xcef)][_0x25af5a(0x402)]){_0x6f1d61['errors']=_0x243306[_0x25af5a(0x524)][_0x25af5a(0xcef)]||[{'message':_0x243306[_0x25af5a(0xd5f)](),'type':_0x25af5a(0x1654)}];for(let _0x5c7eb5=0x0;_0x5c7eb5<_0x243306[_0x25af5a(0x524)][_0x25af5a(0xcef)][_0x25af5a(0x402)];_0x5c7eb5+=0x1){_0x2bf50f['error']({'title':_0x243306[_0x25af5a(0x524)][_0x25af5a(0xcef)][_0x5c7eb5][_0x25af5a(0x1142)],'msg':_0x243306[_0x25af5a(0x524)][_0x25af5a(0xcef)][_0x5c7eb5][_0x25af5a(0x7fd)]});}}else _0x2bf50f[_0x25af5a(0x1980)]({'title':_0x243306['status']?_0x25af5a(0x262a)+_0x243306[_0x25af5a(0x107b)]+_0x25af5a(0x1315)+_0x243306['statusText']:'api.mail.account','msg':_0x243306[_0x25af5a(0x524)]?JSON[_0x25af5a(0x10bb)](_0x243306[_0x25af5a(0x524)]['message']):_0x243306[_0x25af5a(0xd5f)]()});});}function _0xc23179(){const _0x594365=_0x1da86e;_0x21aa01[_0x594365(0xe7b)][_0x594365(0x44b)]({'id':_0x6f1d61[_0x594365(0xe7b)]['id'],'nolimit':!![]})[_0x594365(0x2945)][_0x594365(0x146b)](function(_0xdcf3b1){_0x6f1d61['mailAccounts']=_0xdcf3b1||{'count':0x0,'rows':[]};});}function _0xfb0007(){const _0x1bdb1c=_0x1da86e;_0x21aa01[_0x1bdb1c(0xe7b)][_0x1bdb1c(0x12d0)]({'id':_0x6f1d61[_0x1bdb1c(0xe7b)]['id'],'nolimit':!![]})[_0x1bdb1c(0x2945)][_0x1bdb1c(0x146b)](function(_0x271e16){_0x6f1d61['faxAccounts']=_0x271e16||{'count':0x0,'rows':[]};});}function _0x9d648e(){const _0x57d87a=_0x1da86e;_0x21aa01[_0x57d87a(0xe7b)][_0x57d87a(0x1434)]({'id':_0x6f1d61[_0x57d87a(0xe7b)]['id'],'nolimit':!![]})[_0x57d87a(0x2945)][_0x57d87a(0x146b)](function(_0x478b5c){const _0x2fbc50=_0x57d87a;_0x6f1d61[_0x2fbc50(0x1c34)]=_0x478b5c||{'count':0x0,'rows':[]};});}function _0x16e483(){const _0x4c0614=_0x1da86e;_0x21aa01['user']['getWhatsappAccounts']({'id':_0x6f1d61[_0x4c0614(0xe7b)]['id'],'nolimit':!![]})[_0x4c0614(0x2945)]['then'](function(_0x2362f0){const _0x47fe38=_0x4c0614;_0x6f1d61[_0x47fe38(0x23c)]=_0x2362f0||{'count':0x0,'rows':[]};});}function _0x11b1b6(){const _0x317760=_0x1da86e,_0x5a631b=_0x4afbf4[_0x317760(0xce3)]();if(_0x6f1d61[_0x317760(0xbba)])return _0x6f1d61[_0x317760(0xbba)][_0x317760(0x145d)]=_0x6f1d61[_0x317760(0x8ac)][_0x317760(0x19c7)][_0x317760(0x402)],_0x21aa01[_0x6f1d61[_0x317760(0x13a3)][_0x317760(0x2894)]+_0x317760(0x2297)]['getMessages'](_0x6f1d61[_0x317760(0xbba)])[_0x317760(0x2945)][_0x317760(0x146b)](function(_0x772505){const _0x39c8ab=_0x317760;for(let _0xb7184a=0x0;_0xb7184a<_0x772505['rows'][_0x39c8ab(0x402)];_0xb7184a+=0x1){_0x6f1d61[_0x39c8ab(0x8ac)]['rows'][_0x39c8ab(0x1f47)](_0x772505[_0x39c8ab(0x19c7)][_0xb7184a]),!_0x6f1d61[_0x39c8ab(0xe80)][_0x39c8ab(0x1943)]&&_0x772505[_0x39c8ab(0x19c7)][_0xb7184a]['direction']==='in'&&!_0x772505[_0x39c8ab(0x19c7)][_0xb7184a][_0x39c8ab(0x229e)]&&(_0x21aa01[_0x6f1d61[_0x39c8ab(0x13a3)][_0x39c8ab(0x2894)]+_0x39c8ab(0xe2)][_0x39c8ab(0x204a)]({'id':_0x772505[_0x39c8ab(0x19c7)][_0xb7184a]['id'],'UserId':_0x6f1d61[_0x39c8ab(0xe7b)]['id']}),_0x6f1d61[_0x39c8ab(0xb5e)]['push'](_0x772505['rows'][_0xb7184a]['id']));}return _0x5a631b[_0x39c8ab(0x2922)](_0x772505);})[_0x317760(0x129e)](function(_0x446f15){const _0x49b987=_0x317760;return _0x5a631b[_0x49b987(0xa6f)](_0x446f15);});return _0x5a631b[_0x317760(0xa6f)]();}function _0x5c9973(_0x35fc13,_0x50589f){const _0x2fe391=_0x1da86e;_0x6f1d61[_0x2fe391(0x13a3)]=_0x35fc13,_0x6f1d61[_0x2fe391(0x13a3)]['saved']=!![],_0x6f1d61[_0x2fe391(0x13a3)][_0x2fe391(0x3a4)]=0x0,_0x6f1d61[_0x2fe391(0x15b9)]=_0x50589f||{},_0x6f1d61[_0x2fe391(0x13a3)]&&_0x6f1d61[_0x2fe391(0x13a3)]['channel']&&_0x6f1d61['tab'][_0x2fe391(0xe80)]&&(_0x6f1d61[_0x2fe391(0xe80)]=_0x6f1d61['tab'][_0x2fe391(0xe80)],_0x21aa01[_0x6f1d61[_0x2fe391(0x13a3)][_0x2fe391(0x2894)]+'Interaction'][_0x2fe391(0x16b4)]({'id':_0x6f1d61[_0x2fe391(0x13a3)]['interaction']['id'],'includeAll':!![]})[_0x2fe391(0x2945)][_0x2fe391(0x146b)](function(_0x112a6a){const _0x4337f0=_0x2fe391;return _0x112a6a&&(_0x6f1d61['interaction']=_0x112a6a,_0x6f1d61[_0x4337f0(0x13a3)][_0x4337f0(0xe80)]=_0x112a6a),_0x6f1d61[_0x4337f0(0x13a3)][_0x4337f0(0x1a2e)]=_0x6f1d61[_0x4337f0(0xe80)]['closed'],_0x6f1d61[_0x4337f0(0xbba)]={'id':_0x6f1d61[_0x4337f0(0xe80)]['id'],'includeAll':!![]},_0x6f1d61[_0x4337f0(0x13a3)][_0x4337f0(0x2894)]===_0x4337f0(0x56b)?(_0x6f1d61['queryMessage']['sort']=_0x4337f0(0xef6),_0x6f1d61[_0x4337f0(0xbba)][_0x4337f0(0x145d)]=0x0,_0x6f1d61[_0x4337f0(0xbba)][_0x4337f0(0x221e)]=0x3):(_0x6f1d61['queryMessage']['sort']='id',_0x6f1d61[_0x4337f0(0xbba)][_0x4337f0(0x6c5)]=!![]),_0x21aa01[_0x6f1d61[_0x4337f0(0x13a3)]['channel']+_0x4337f0(0x2297)]['getMessages'](_0x6f1d61[_0x4337f0(0xbba)])[_0x4337f0(0x2945)];})[_0x2fe391(0x146b)](function(_0x2d0d04){const _0x3f26da=_0x2fe391;return _0x6f1d61[_0x3f26da(0x8ac)]=_0x2d0d04||{'count':0x0,'rows':[]},_0x21aa01[_0x6f1d61[_0x3f26da(0x13a3)]['channel']==='chat'?_0x3f26da(0x189e):_0x6f1d61[_0x3f26da(0x13a3)]['channel']+_0x3f26da(0xb48)][_0x3f26da(0x16b4)]({'id':_0x6f1d61[_0x3f26da(0xe80)][_0x6f1d61[_0x3f26da(0x13a3)][_0x3f26da(0x2894)]===_0x3f26da(0xa7f)?_0x3f26da(0x1d92):_0x3f65c0()[_0x3f26da(0x83f)](_0x6f1d61[_0x3f26da(0x13a3)]['channel'])+_0x3f26da(0x348)]})['$promise'];})[_0x2fe391(0x146b)](function(_0x42408b){const _0x161c3c=_0x2fe391;_0x6f1d61[_0x161c3c(0x1f8e)]=_0x42408b,_0x6f1d61[_0x161c3c(0x13a3)][_0x161c3c(0x1189)]=_0x6f1d61['account'][_0x161c3c(0x2293)]||_0x6f1d61['account'][_0x161c3c(0x19eb)];if(_0x6f1d61[_0x161c3c(0xe80)][_0x161c3c(0x932)])return _0x21aa01[_0x161c3c(0x18c3)]['get']({'id':_0x6f1d61[_0x161c3c(0xe80)][_0x161c3c(0x932)]})[_0x161c3c(0x2945)];})[_0x2fe391(0x146b)](function(_0x549aa5){const _0x2276f9=_0x2fe391;return _0x549aa5&&(_0x6f1d61[_0x2276f9(0x1662)]=_0x549aa5),_0x6f1d61[_0x2276f9(0x1fae)]=!![],_0x6f1d61[_0x2276f9(0x1662)]?(_0x4bad2d(_0x6f1d61[_0x2276f9(0x1662)]),_0x6f1d61[_0x2276f9(0x13a3)][_0x2276f9(0x1189)]+=_0x2276f9(0x1315)+_0x6f1d61[_0x2276f9(0x1662)][_0x2276f9(0x1ed4)]):_0x6f1d61['tab'][_0x2276f9(0x1189)]+=_0x2276f9(0x1315)+_0x3ddbd0[_0x2276f9(0xde)](_0x6f1d61['tab'][_0x2276f9(0x2894)][_0x2276f9(0x1c37)]()+_0x2276f9(0x23d2)),_0x21aa01[_0x2276f9(0xe7b)][_0x2276f9(0x16b4)]({'fields':_0x2276f9(0x1291),'nolimit':!![]})[_0x2276f9(0x2945)];})[_0x2fe391(0x146b)](function(_0x144b88){const _0x3734e3=_0x2fe391;_0x6f1d61[_0x3734e3(0x1995)]=_0x144b88||{'count':0x0,'rows':[]},_0x6f1d61[_0x3734e3(0xa3e)]=_0x3f65c0()[_0x3734e3(0x1de4)](_0x3f65c0()[_0x3734e3(0x194)](_0x6f1d61[_0x3734e3(0x1995)][_0x3734e3(0x19c7)],'id'),_0x3734e3(0x286a));})['then'](function(){const _0x329c6d=_0x2fe391;if(_0x6f1d61[_0x329c6d(0x13a3)]['channel']&&_0x6f1d61['interaction'])return _0x21aa01[_0x329c6d(0xe7b)][_0x329c6d(0x387)+_0x3f65c0()['upperFirst'](_0x6f1d61['tab'][_0x329c6d(0x2894)])+_0x329c6d(0x1fbc)]({'id':_0x6f1d61[_0x329c6d(0xe7b)]['id'],'ids':[_0x6f1d61[_0x329c6d(0xe80)]['id']]});})[_0x2fe391(0x146b)](function(){const _0x2a3374=_0x2fe391;return _0x21aa01[_0x2a3374(0x2036)]['get']({'sort':_0x2a3374(0x19eb),'nolimit':!![]})[_0x2a3374(0x2945)];})[_0x2fe391(0x146b)](function(_0x3cdc77){_0x6f1d61['subStatuses']=_0x3cdc77||{'count':0x0,'rows':[]};})['then'](function(){return _0x6f1d61['getMailAccounts']();})[_0x2fe391(0x146b)](function(){const _0xb276d3=_0x2fe391;return _0x6f1d61[_0xb276d3(0x12d0)]();})['then'](function(){const _0x4eff05=_0x2fe391;return _0x6f1d61[_0x4eff05(0x1434)]();})[_0x2fe391(0x146b)](function(){const _0xeb6851=_0x2fe391;return _0x6f1d61[_0xeb6851(0x28f)]();})['then'](function(){const _0x11eb73=_0x2fe391;return _0x6f1d61[_0x11eb73(0x12ef)]();})[_0x2fe391(0x146b)](function(){const _0x2826e8=_0x2fe391;return _0x6f1d61[_0x2826e8(0x3e5)]();})[_0x2fe391(0x146b)](function(){const _0x4e09e3=_0x2fe391;return _0x6f1d61[_0x4e09e3(0x233d)]();})[_0x2fe391(0x129e)](function(){_0x6f1d61['showInteraction']=!![];})[_0x2fe391(0x1ec6)](function(){const _0x4f16d9=_0x2fe391;_0x4a5f1c(),_0x28d33f(),_0x2009d1['on'](_0x6f1d61[_0x4f16d9(0x13a3)]['channel']+_0x4f16d9(0x142d),_0x6f1d61['onMessageSave']),_0x2009d1['on'](_0x6f1d61[_0x4f16d9(0x13a3)][_0x4f16d9(0x2894)]+_0x4f16d9(0x6c7),_0x6f1d61[_0x4f16d9(0x22dc)]),_0x2009d1['on'](_0x6f1d61[_0x4f16d9(0x13a3)][_0x4f16d9(0x2894)]+_0x4f16d9(0x28df),_0x6f1d61[_0x4f16d9(0x1a85)]),_0x2009d1['on'](_0x6f1d61[_0x4f16d9(0x13a3)]['channel']+_0x4f16d9(0x1c22),_0x6f1d61[_0x4f16d9(0x1a85)]),_0x2009d1['on'](_0x4f16d9(0x1b79)+_0x6f1d61['tab']['channel']+_0x4f16d9(0x6d3),_0x6f1d61['onInteractionOpen']),_0x2009d1['on']('user_has_'+_0x6f1d61[_0x4f16d9(0x13a3)][_0x4f16d9(0x2894)]+_0x4f16d9(0x1bc0),_0x6f1d61[_0x4f16d9(0xf28)]),_0x6f1d61[_0x4f16d9(0x13a3)][_0x4f16d9(0x1fa0)]=_0x6f1d61['tab'][_0x4f16d9(0x1fa0)]?_0x6f1d61[_0x4f16d9(0x13a3)][_0x4f16d9(0x1fa0)]:'',_0x6f1d61['showFooter']=!![],_0x6f1d61[_0x4f16d9(0x13a3)][_0x4f16d9(0x2894)]===_0x4f16d9(0x56b)&&(_0x6f1d61[_0x4f16d9(0x1d96)]=_0x9d3764['getByInteraction'](_0x6f1d61[_0x4f16d9(0x13a3)][_0x4f16d9(0xe80)]['id']),_0x6f1d61[_0x4f16d9(0x13a3)]['isDraft']&&(_0x6f1d61[_0x4f16d9(0x13a3)][_0x4f16d9(0xe80)][_0x4f16d9(0x1943)]?(_0x9d3764['removeByInteraction'](_0x6f1d61['tab'][_0x4f16d9(0xe80)]['id']),_0x6f1d61['draft']=null):_0x24ec4e()));}));}function _0x3d2650(_0x3403fe){const _0x111067=_0x1da86e;if(_0x3403fe[_0x111067(0x74d)])return _0x3f65c0()[_0x111067(0xa4e)](_0x3f65c0()[_0x111067(0x205)](_0x6f1d61[_0x111067(0x8a9)]?_0x6f1d61[_0x111067(0x8a9)]['rows']:[],'id'),_0x3403fe[_0x111067(0x74d)]);else{if(_0x3403fe[_0x111067(0x534)])return _0x3f65c0()[_0x111067(0xa4e)](_0x3f65c0()[_0x111067(0x205)](_0x6f1d61[_0x111067(0x1690)]?_0x6f1d61[_0x111067(0x1690)][_0x111067(0x19c7)]:[],'id'),_0x3403fe[_0x111067(0x534)]);else{if(_0x3403fe['SmsAccountId'])return _0x3f65c0()[_0x111067(0xa4e)](_0x3f65c0()[_0x111067(0x205)](_0x6f1d61['smsAccounts']?_0x6f1d61[_0x111067(0x1c34)][_0x111067(0x19c7)]:[],'id'),_0x3403fe[_0x111067(0x1481)]);else{if(_0x3403fe[_0x111067(0x158a)])return _0x3f65c0()[_0x111067(0xa4e)](_0x3f65c0()[_0x111067(0x205)](_0x6f1d61[_0x111067(0x23c)]?_0x6f1d61['whatsappAccounts'][_0x111067(0x19c7)]:[],'id'),_0x3403fe['WhatsappAccountId']);else{if(_0x3403fe[_0x111067(0x658)])return _0x3f65c0()[_0x111067(0xa4e)](_0x3f65c0()['map'](_0x6f1d61['mailAccounts']?_0x6f1d61['mailAccounts'][_0x111067(0x19c7)]:[],'id'),_0x3403fe[_0x111067(0x658)]);else{if(_0x3403fe[_0x111067(0x1d92)])return _0x3f65c0()[_0x111067(0xa4e)](_0x3f65c0()['map'](_0x6f1d61['chatAccounts']?_0x6f1d61[_0x111067(0x282c)][_0x111067(0x19c7)]:[],'id'),_0x3403fe[_0x111067(0x1d92)]);else{if(_0x3403fe['amaflags'])return!![];}}}}}}return![];}function _0x1f68d6(_0x405fc5){const _0x4c3552=_0x1da86e;let _0x49bcf1;_0x6f1d61['interaction']['id']==_0x405fc5[_0x3f65c0()[_0x4c3552(0x21cf)](_0x6f1d61[_0x4c3552(0x13a3)][_0x4c3552(0x2894)])+_0x4c3552(0x14ad)]&&(_0x6f1d61[_0x4c3552(0xe80)][_0x4c3552(0x3c4)]&&(_0x49bcf1=_0x3f65c0()['find'](_0x6f1d61['interaction'][_0x4c3552(0x3c4)],{'id':_0x405fc5[_0x4c3552(0xea2)]})),!_0x49bcf1&&_0x6f1d61[_0x4c3552(0xe80)][_0x4c3552(0x3c4)][_0x4c3552(0x1f47)]({'id':_0x405fc5[_0x4c3552(0xea2)]}));}function _0x3c76b1(_0x37a1e9){const _0x15eae7=_0x1da86e;_0x6f1d61[_0x15eae7(0xe80)]['id']==_0x37a1e9[_0x3f65c0()[_0x15eae7(0x21cf)](_0x6f1d61[_0x15eae7(0x13a3)][_0x15eae7(0x2894)])+_0x15eae7(0x14ad)]&&(_0x6f1d61[_0x15eae7(0xe80)]['Users']&&_0x3f65c0()['remove'](_0x6f1d61[_0x15eae7(0xe80)][_0x15eae7(0x3c4)],{'id':_0x37a1e9[_0x15eae7(0xea2)]}));}function _0x27e9c6(_0x121db9){const _0x6979d3=_0x1da86e;if(_0x121db9){try{_0x3f65c0()['templateSettings'][_0x6979d3(0x1687)]=/{{([\s\S]+?)}}/g;const _0x253d75=_0x3f65c0()[_0x6979d3(0x1928)](_0x121db9[_0x6979d3(0x175d)]),_0x16a61a={'user':_0x6f1d61[_0x6979d3(0xe7b)],'account':_0x6f1d61[_0x6979d3(0x1f8e)],'interaction':_0x6f1d61[_0x6979d3(0xe80)],'contact':_0x6f1d61[_0x6979d3(0xe80)]&&_0x6f1d61['interaction'][_0x6979d3(0x364)]?_0x6f1d61[_0x6979d3(0xe80)][_0x6979d3(0x364)]:{}};_0x6f1d61['tab']['areaText']+='\x20'+_0x253d75(_0x16a61a),_0x6f1d61[_0x6979d3(0x1e5b)][_0x6979d3(0xa0d)](_0x6f1d61[_0x6979d3(0x13a3)]['areaText']);}catch(_0x523489){_0x6f1d61[_0x6979d3(0x13a3)][_0x6979d3(0x1fa0)]+='\x20'+_0x121db9[_0x6979d3(0x175d)],_0x6f1d61[_0x6979d3(0x1e5b)][_0x6979d3(0xa0d)](_0x6f1d61['tab'][_0x6979d3(0x1fa0)]);}_0x6f1d61['selectedItem']=null,_0x6f1d61[_0x6979d3(0x1411)]();}}function _0x255554(_0x17b990){const _0x3a16aa=_0x1da86e,_0x3990d6=_0x4afbf4[_0x3a16aa(0xce3)]();let _0x23189e=[];const _0x2a3332={},_0x4e281d=_0x6f1d61['tab'][_0x3a16aa(0x2894)]===_0x3a16aa(0xa7f)?_0x3a16aa(0x1d92):_0x3f65c0()[_0x3a16aa(0x83f)](_0x6f1d61[_0x3a16aa(0x13a3)][_0x3a16aa(0x2894)])+_0x3a16aa(0x348);return _0x2a3332[_0x3a16aa(0x1dd6)]=_0x17b990,_0x2a3332[_0x4e281d]=_0x6f1d61['account']['id'],_0x21aa01[_0x3a16aa(0x1ada)]['get'](_0x2a3332)[_0x3a16aa(0x2945)][_0x3a16aa(0x146b)](function(_0x5ebf8d){const _0x381574=_0x3a16aa;return _0x23189e=_0x3f65c0()['concat'](_0x23189e,_0x5ebf8d[_0x381574(0x19c7)]),_0x21aa01[_0x381574(0x1ada)][_0x381574(0x16b4)]({'filter':_0x17b990})['$promise'];})[_0x3a16aa(0x146b)](function(_0x1140a4){const _0x2d3a68=_0x3a16aa;_0x23189e=_0x3f65c0()['concat'](_0x23189e,_0x3f65c0()[_0x2d3a68(0x1dd6)](_0x1140a4[_0x2d3a68(0x19c7)],function(_0x481d6f){const _0x690bcb=_0x2d3a68;return!_0x481d6f['MailAccountId']&&!_0x481d6f['FaxAccountId']&&!_0x481d6f[_0x690bcb(0x1481)]&&!_0x481d6f[_0x690bcb(0x158a)]&&!_0x481d6f[_0x690bcb(0x534)]&&!_0x481d6f['ChatWebsiteId'];})),_0x3990d6[_0x2d3a68(0x2922)](_0x23189e);})['catch'](function(_0x23d761){const _0x50c226=_0x3a16aa;_0x3990d6[_0x50c226(0xa6f)](_0x23d761);}),_0x3990d6['promise'];}function _0x47756e(_0x6a8ccc,_0x48bd03){const _0x2af918=_0x1da86e;try{_0x6f1d61[_0x2af918(0x13a3)]&&!_0x6f1d61[_0x2af918(0x13a3)][_0x2af918(0x2c5)]&&_0x17bccc[_0x2af918(0x2870)]['$parent'][_0x2af918(0x2870)]['vm'][_0x2af918(0xd14)](_0x48bd03||_0x6f1d61[_0x2af918(0x1662)]);}catch(_0x576e34){_0x2bf50f[_0x2af918(0x1980)]({'title':'ERROR\x20OPEN\x20CONTACT','msg':'Unable\x20to\x20open\x20the\x20contact'});}}function _0x9e407e(_0xec4e4a,_0x3455da){const _0x67a4ad=_0x1da86e;try{if(_0x3455da[_0x67a4ad(0x658)])return _0x17bccc[_0x67a4ad(0x2870)][_0x67a4ad(0x2870)][_0x67a4ad(0x2870)]['vm'][_0x67a4ad(0x2614)]('mail',_0x3455da);else{if(_0x3455da[_0x67a4ad(0x1d92)])return _0x17bccc['$parent'][_0x67a4ad(0x2870)][_0x67a4ad(0x2870)]['vm'][_0x67a4ad(0x2614)]('chat',_0x3455da);else{if(_0x3455da[_0x67a4ad(0x1481)])return _0x17bccc[_0x67a4ad(0x2870)]['$parent']['$parent']['vm'][_0x67a4ad(0x2614)](_0x67a4ad(0x929),_0x3455da);else{if(_0x3455da[_0x67a4ad(0x158a)])return _0x17bccc[_0x67a4ad(0x2870)]['$parent'][_0x67a4ad(0x2870)]['vm']['addInteractionTab'](_0x67a4ad(0xff9),_0x3455da);else{if(_0x3455da[_0x67a4ad(0x534)])return _0x17bccc[_0x67a4ad(0x2870)][_0x67a4ad(0x2870)]['$parent']['vm'][_0x67a4ad(0x2614)](_0x67a4ad(0x7d9),_0x3455da);else{if(_0x3455da[_0x67a4ad(0x74d)])return _0x17bccc[_0x67a4ad(0x2870)]['$parent'][_0x67a4ad(0x2870)]['vm'][_0x67a4ad(0x2614)](_0x67a4ad(0x22d9),_0x3455da);}}}}}}catch(_0x12dfca){_0x2bf50f[_0x67a4ad(0x1980)]({'title':'ERROR\x20OPEN\x20INTERACTION','msg':'Customer\x20Journey\x20can\x27t\x20open\x20the\x20interaction'});}}function _0x4c8bf5(){const _0x482bfd=_0x1da86e;_0x443e7a['show']({'controller':'TagInteractionDialogController','controllerAs':'vm','templateUrl':_0x57afc0,'parent':angular[_0x482bfd(0x1853)](_0x10d48a[_0x482bfd(0x2586)]),'clickOutsideToClose':!![],'skipHide':Boolean(_0x6f1d61[_0x482bfd(0x13a3)][_0x482bfd(0x2c5)]),'resolve':{'tags':[_0x482bfd(0x362),function(_0x2391ab){const _0x337be5=_0x482bfd;return _0x2391ab[_0x337be5(0x2922)](_0x337be5(0x2552),{'sort':_0x337be5(0x19eb),'nolimit':!![],'fields':'id,name,color'});}]},'locals':{'channel':_0x6f1d61[_0x482bfd(0x13a3)][_0x482bfd(0x2894)],'interaction':_0x6f1d61['tab']['interaction']}});}function _0xb9e3a5(){const _0x4087e1=_0x1da86e,_0x2cabea=_0x6f1d61[_0x4087e1(0xe7b)][_0x4087e1(0x211c)]||_0x6f1d61[_0x4087e1(0xe7b)][_0x4087e1(0x5f7)]||_0x6f1d61['user']['mailPause']||_0x6f1d61[_0x4087e1(0xe7b)][_0x4087e1(0xcc5)]||_0x6f1d61['user'][_0x4087e1(0x25c4)],_0x13bbf9=!_0x6f1d61[_0x4087e1(0x13a3)][_0x4087e1(0xe80)][_0x4087e1(0xb48)][_0x4087e1(0xc9e)];_0x443e7a[_0x4087e1(0x2615)]({'controller':_0x4087e1(0xe23),'controllerAs':'vm','templateUrl':_0x56fd44,'parent':angular[_0x4087e1(0x1853)](_0x10d48a['body']),'clickOutsideToClose':_0x13bbf9,'escapeToClose':_0x13bbf9,'onRemoving':function(){const _0x4d957a=_0x4087e1;_0x6f1d61[_0x4d957a(0xe7b)]&&_0x6f1d61['interaction']['Account'][_0x4d957a(0xc9e)]&&!_0x2cabea&&_0x21aa01['user'][_0x4d957a(0x974)]({'id':_0x6f1d61[_0x4d957a(0xe7b)]['id']})[_0x4d957a(0x2945)]['catch'](function(_0x1f8583){const _0x459f46=_0x4d957a;console[_0x459f46(0x1980)](_0x1f8583);});},'locals':{'user':_0x6f1d61['user'],'channel':_0x6f1d61[_0x4087e1(0x13a3)][_0x4087e1(0x2894)],'interaction':_0x6f1d61[_0x4087e1(0x13a3)][_0x4087e1(0xe80)]}})['then'](function(_0x14e824){const _0x432242=_0x4087e1;_0x6f1d61[_0x432242(0x13a3)][_0x432242(0x1a2e)]=Boolean(_0x14e824),_0x14e824&&_0x17bccc[_0x432242(0x2870)]['$parent'][_0x432242(0x2870)]['vm'][_0x432242(0x17ff)](_0x6f1d61['tab']);});}function _0x3d4f4a(_0x347331,_0x5b4d26){const _0x508f7c=_0x1da86e;_0x6f1d61[_0x508f7c(0x13a3)][_0x508f7c(0x7fd)]=_0x5b4d26,_0x443e7a[_0x508f7c(0x2615)]({'controller':_0x508f7c(0x1faa),'controllerAs':'vm','templateUrl':_0x379013,'parent':angular[_0x508f7c(0x1853)](_0x10d48a[_0x508f7c(0x2586)]),'clickOutsideToClose':![],'locals':{'account':_0x6f1d61[_0x508f7c(0x1f8e)],'message':_0x6f1d61[_0x508f7c(0x13a3)][_0x508f7c(0x7fd)],'type':_0x347331,'interaction':_0x6f1d61['interaction']},'fullscreen':!![],'skipHide':Boolean(_0x6f1d61['tab'][_0x508f7c(0x2c5)])})[_0x508f7c(0x146b)](function(_0x1c1f96){const _0x26a717=_0x508f7c;if(_0x1c1f96){if(_0x1c1f96[_0x26a717(0x7fd)]&&_0x1c1f96[_0x26a717(0x7fd)][_0x26a717(0x1703)])_0x6f1d61[_0x26a717(0x1d96)]?_0x9d3764[_0x26a717(0x18e1)]({'id':_0x6f1d61[_0x26a717(0x1d96)]['id'],'channel':_0x26a717(0x56b),'account':_0x6f1d61['account'],'message':_0x1c1f96['message'],'contact':_0x6f1d61[_0x26a717(0x1662)],'interaction':_0x6f1d61[_0x26a717(0xe80)]}):_0x9d3764[_0x26a717(0x387)]({'channel':_0x26a717(0x56b),'account':_0x6f1d61[_0x26a717(0x1f8e)],'message':_0x1c1f96[_0x26a717(0x7fd)],'contact':_0x6f1d61[_0x26a717(0x1662)],'interaction':_0x6f1d61['interaction']}),_0x6f1d61[_0x26a717(0x1d96)]=_0x9d3764['getByInteraction'](_0x6f1d61[_0x26a717(0x13a3)]['interaction']['id']);else{const _0x381ca2=_0x1c1f96;_0x381ca2&&_0xeee395(_0x381ca2),_0x381ca2[_0x26a717(0x2297)]&&_0x6f1d61[_0x26a717(0xe80)]&&_0x6f1d61[_0x26a717(0xe80)]['id']&&(_0x381ca2[_0x26a717(0x2297)]['id']=_0x6f1d61[_0x26a717(0xe80)]['id'],_0x21aa01[_0x26a717(0x3c7)]['update'](_0x381ca2[_0x26a717(0x2297)])[_0x26a717(0x2945)][_0x26a717(0x146b)](function(_0xfac7f0){const _0x304aa0=_0x26a717;if(_0xfac7f0&&_0xfac7f0[_0x304aa0(0x1943)])_0x6f1d61[_0x304aa0(0x13a3)][_0x304aa0(0x1a2e)]=!![],_0x6f1d61[_0x304aa0(0xe80)]['closed']=!![],_0xb9e3a5();else _0x381ca2['Interaction'][_0x304aa0(0x100d)]!==null&&(_0x6f1d61[_0x304aa0(0x13a3)][_0x304aa0(0x1a2e)]=!![],_0x6f1d61['tab']['interaction'][_0x304aa0(0x100d)]=_0x381ca2['Interaction']['substatus'],_0x17bccc[_0x304aa0(0x2870)][_0x304aa0(0x2870)][_0x304aa0(0x2870)]['vm'][_0x304aa0(0x17ff)](_0x6f1d61[_0x304aa0(0x13a3)]));})[_0x26a717(0x129e)](function(_0x423eb3){console['error'](_0x423eb3);}));}}})[_0x508f7c(0x1ec6)](function(){const _0x3b5617=_0x508f7c;_0x6f1d61[_0x3b5617(0x13a3)]['isDraft']=![];});}function _0x29fd93(_0x2e9b91,_0x476a87){const _0x6e4cd4=_0x1da86e;if(_0x476a87[_0x6e4cd4(0x24e0)]){const _0xcdb206=_0x3f65c0()[_0x6e4cd4(0xc84)](_0x6f1d61[_0x6e4cd4(0x8ac)][_0x6e4cd4(0x19c7)],{'messageId':_0x476a87['inReplyTo']});if(_0xcdb206)_0x3d4f4a(_0x2e9b91,_0xcdb206);else return _0x21aa01[_0x6e4cd4(0x213)]['get']({'messageId':_0x476a87[_0x6e4cd4(0x24e0)]})[_0x6e4cd4(0x2945)][_0x6e4cd4(0x146b)](function(_0x3b518a){const _0x2f0740=_0x6e4cd4;_0x3d4f4a(_0x2e9b91,_0x3b518a&&_0x3b518a['count']?_0x3b518a[_0x2f0740(0x19c7)][0x0]:undefined);})[_0x6e4cd4(0x129e)](function(_0x12efb3){console['error'](_0x12efb3),_0x3d4f4a(_0x2e9b91,undefined);});}else _0x3d4f4a(_0x2e9b91,_0x476a87);}function _0x83d3da(_0x29518f){const _0x210176=_0x1da86e,_0x496191={'to':[]};_0x496191['to'][_0x210176(0x1f47)](_0x6f1d61[_0x210176(0x1662)][_0x210176(0x22d9)]),_0x443e7a[_0x210176(0x2615)]({'controller':_0x210176(0x1c90),'controllerAs':'vm','templateUrl':_0x47122e,'parent':angular[_0x210176(0x1853)](_0x10d48a[_0x210176(0x2586)]),'clickOutsideToClose':![],'locals':{'account':_0x6f1d61[_0x210176(0x1f8e)],'message':_0x496191,'type':_0x29518f},'fullscreen':!![]})[_0x210176(0x146b)](function(_0x243417){const _0x3e5833=_0x210176;return _0x21aa01[_0x3e5833(0x178)][_0x3e5833(0x1443)]({'id':_0x6f1d61['account']['id']},_0x243417)[_0x3e5833(0x2945)][_0x3e5833(0x146b)](function(_0x53e8b0){const _0x578134=_0x3e5833;_0x2bf50f[_0x578134(0x1c75)]({'title':'Message\x20properly\x20sent!','msg':_0x578134(0x54f)}),_0x17bccc[_0x578134(0x2870)]['vm'][_0x578134(0x2614)]('fax',_0x53e8b0);})[_0x3e5833(0x129e)](function(_0x44d808){const _0x566422=_0x3e5833;if(_0x44d808[_0x566422(0x524)]&&_0x44d808[_0x566422(0x524)][_0x566422(0xcef)]&&_0x44d808[_0x566422(0x524)][_0x566422(0xcef)][_0x566422(0x402)])for(let _0x5dc323=0x0;_0x5dc323<_0x44d808[_0x566422(0x524)][_0x566422(0xcef)][_0x566422(0x402)];_0x5dc323++){_0x2bf50f[_0x566422(0x1980)]({'title':_0x44d808['data'][_0x566422(0xcef)][_0x5dc323][_0x566422(0x1142)],'msg':_0x44d808[_0x566422(0x524)]['errors'][_0x5dc323][_0x566422(0x7fd)]});}else _0x2bf50f[_0x566422(0x1980)]({'title':_0x566422(0x1c02),'msg':_0x44d808[_0x566422(0x524)]?JSON[_0x566422(0x10bb)](_0x44d808[_0x566422(0x524)]):_0x44d808[_0x566422(0x7fd)]||_0x44d808[_0x566422(0xd5f)]()});});});}function _0x53d091(_0x416a70,_0x563354){const _0x1c63c3=_0x1da86e;_0x443e7a[_0x1c63c3(0x2615)]({'controller':_0x1c63c3(0x1d08),'controllerAs':'vm','templateUrl':_0x32f327,'parent':angular['element'](_0x10d48a[_0x1c63c3(0x2586)]),'clickOutsideToClose':![],'locals':{'account':_0x6f1d61['account'],'message':_0x563354,'type':_0x416a70},'fullscreen':!![],'skipHide':Boolean(_0x6f1d61[_0x1c63c3(0x13a3)][_0x1c63c3(0x2c5)])})[_0x1c63c3(0x146b)](function(_0x39f1d2){_0x39f1d2&&_0xeee395(_0x39f1d2);});}function _0x545173(_0x2d47b2,_0x3cc751){const _0x6bdbae=_0x1da86e;_0x443e7a['show']({'controller':_0x6bdbae(0x268d),'controllerAs':'vm','templateUrl':_0xeb78a6,'parent':angular[_0x6bdbae(0x1853)](_0x10d48a[_0x6bdbae(0x2586)]),'clickOutsideToClose':![],'locals':{'account':_0x6f1d61['account'],'message':_0x3cc751,'type':_0x2d47b2},'fullscreen':!![],'skipHide':Boolean(_0x6f1d61[_0x6bdbae(0x13a3)]['spy'])})['then'](function(_0x2f0aca){_0x2f0aca&&_0xeee395(_0x2f0aca);});}function _0x1f8c6b(){const _0x45f829=_0x1da86e;if(_0x6f1d61[_0x45f829(0xe80)]){const _0x273270=_0x3f65c0()[_0x45f829(0x2198)](_0x6f1d61[_0x45f829(0x8ac)][_0x45f829(0x19c7)],function(_0x4ecf1f){const _0x2282c5=_0x45f829;return _0x4ecf1f[_0x2282c5(0x26cc)]==='in';});_0x273270?_0x443e7a[_0x45f829(0x2615)]({'controller':_0x45f829(0x116e),'controllerAs':'vm','templateUrl':_0x5c9cbe,'parent':angular[_0x45f829(0x1853)](_0x10d48a[_0x45f829(0x2586)]),'clickOutsideToClose':![],'locals':{'account':_0x6f1d61[_0x45f829(0x1f8e)],'interaction':_0x6f1d61[_0x45f829(0xe80)],'message':_0x273270,'channel':_0x6f1d61[_0x45f829(0x13a3)][_0x45f829(0x2894)]}})[_0x45f829(0x146b)](function(_0x15aa56){const _0x5bcf29=_0x45f829;_0x6f1d61[_0x5bcf29(0x13a3)][_0x5bcf29(0x1a2e)]=Boolean(_0x15aa56),_0x15aa56&&_0x17bccc['$parent']['$parent'][_0x5bcf29(0x2870)]['vm'][_0x5bcf29(0x17ff)](_0x6f1d61[_0x5bcf29(0x13a3)]);}):_0x2bf50f[_0x45f829(0x1980)]({'title':'Invalid\x20transfer','msg':'Message\x20not\x20found!'});}}function _0x3da26e(_0x310834){const _0x38b448=_0x1da86e,_0x154805={},_0x447b56=_0x6f1d61[_0x38b448(0x13a3)][_0x38b448(0x2894)]===_0x38b448(0xa7f)?_0x38b448(0x1d92):_0x3f65c0()[_0x38b448(0x83f)](_0x6f1d61[_0x38b448(0x13a3)]['channel'])+_0x38b448(0x348);return _0x154805[_0x447b56]=_0x6f1d61[_0x38b448(0xe80)][_0x447b56][_0x38b448(0xd5f)](),_0x154805[_0x3f65c0()[_0x38b448(0x83f)](_0x6f1d61[_0x38b448(0x13a3)]['channel'])+_0x38b448(0x14ad)]=_0x6f1d61[_0x38b448(0xe80)]['id'],(_0x6f1d61['tab'][_0x38b448(0x2894)]===_0x38b448(0x929)||_0x6f1d61['tab'][_0x38b448(0x2894)]===_0x38b448(0xff9))&&(_0x154805['phone']=_0x6f1d61[_0x38b448(0xe80)][_0x38b448(0x1d55)]),_0x310834&&(_0x154805[_0x38b448(0xea2)]=_0x6f1d61[_0x38b448(0xe7b)]['id'],_0x154805[_0x38b448(0x932)]=_0x6f1d61[_0x38b448(0xe80)][_0x38b448(0x932)],_0x154805[_0x38b448(0x2586)]=_0x310834),_0x154805;}function _0x53ec74(_0xbdaa07){const _0x4c6fd2=_0x1da86e;if(_0xbdaa07['size']>_0x4f2773)return _0x2bf50f[_0x4c6fd2(0x1980)]({'title':_0x4c6fd2(0x625),'msg':_0x4c6fd2(0x923)+_0x2c9e34+'MB'}),![];return!![];}function _0x2ccd03(_0x3a0a80,_0x2abf89){const _0x62c217=_0x1da86e,_0x2566c8=JSON[_0x62c217(0x975)](_0x2abf89);let _0x15e069=_0x2566c8[_0x62c217(0x19eb)];_0x6f1d61['tab'][_0x62c217(0x2894)]==='chat'&&(_0x15e069=_0x62c217(0x61d)+(_0x6f1d61[_0x62c217(0x1f8e)][_0x62c217(0xc75)]?_0x6f1d61[_0x62c217(0x1f8e)]['remote']:_0x36656a[_0x62c217(0x2414)]()+'://'+_0x36656a[_0x62c217(0x148e)]())+_0x62c217(0x2364)+_0x6f1d61['interaction']['id']+_0x62c217(0x2255)+_0x2566c8['id']+_0x62c217(0x48d)+_0x6f1d61[_0x62c217(0x1f8e)][_0x62c217(0x1957)]+_0x62c217(0x422)+_0x2566c8[_0x62c217(0x19eb)]+_0x62c217(0x1484)),_0xeee395({'body':_0x15e069,'AttachmentId':_0x2566c8['id']});}function _0x4bf587(){const _0x2a43fc=_0x1da86e;_0x6f1d61[_0x2a43fc(0x1376)][_0x2a43fc(0x963)][_0x2a43fc(0x1da1)]['headers']={'X-Requested-With':'XMLHttpRequest','Authorization':_0x2a43fc(0x2745)+_0x9255f0[_0x2a43fc(0x16b4)]('motion.token')},_0x6f1d61[_0x2a43fc(0x1376)]['flow'][_0x2a43fc(0x1dc6)]();}function _0x1b9f80(_0xd731ed,_0x2c5d37){const _0x4b00c0=_0x1da86e;if(_0xd731ed&&_0xd731ed[_0x4b00c0(0x1252)]===0xd&&_0xd731ed[_0x4b00c0(0x863)])return;if(_0xd731ed&&_0xd731ed[_0x4b00c0(0x1252)]!==0xd)return;if(_0x2c5d37[_0x4b00c0(0x15a3)]()==='')return;_0xeee395(_0x3da26e(_0x2c5d37[_0x4b00c0(0x5f4)](/\n$/,'')));}function _0x28d33f(){const _0x46962a=_0x1da86e;_0x6f1d61[_0x46962a(0x13a3)][_0x46962a(0x2894)]!=='mail'&&_0x28db6b(function(){const _0x392a26=_0x46962a,_0x1f1792=angular[_0x392a26(0x1853)](_0x10d48a[_0x392a26(0xc84)](_0x392a26(0x27d9)+_0x6f1d61[_0x392a26(0x13a3)]['id']+'\x27]'));_0x1f1792&&_0x1f1792[0x0]&&(_0x1f1792[0x0][_0x392a26(0xa49)]=_0x1f1792[0x0]['scrollHeight']);},0x0);}function _0x2d5b2f(_0x71e872){const _0x1d8fb7=_0x1da86e,_0xcad54e='loading...';if(_0x71e872){if(_0x71e872[_0x1d8fb7(0x26cc)]==='in')return _0x71e872[_0x1d8fb7(0x364)]?_0x71e872[_0x1d8fb7(0x364)][_0x1d8fb7(0x1ed4)]||'Anonymous':_0xcad54e;else{if(_0x71e872[_0x1d8fb7(0xea2)])return _0x6f1d61[_0x1d8fb7(0xa3e)]?_0x6f1d61[_0x1d8fb7(0xa3e)][_0x71e872[_0x1d8fb7(0xea2)]]:_0xcad54e;}return _0x1d8fb7(0x1c62)||0x0;}}function _0x415ea7(_0x1b7861,_0x40cc4e){const _0x1ea853=_0x1da86e;_0x6f1d61['tab'][_0x1ea853(0x2894)]&&_0x1b7861['id']&&_0x21aa01[_0x6f1d61['tab'][_0x1ea853(0x2894)]+'Message']['download']({'id':_0x1b7861['id'],'attachments':_0x40cc4e})[_0x1ea853(0x2945)]['then'](function(_0x281aee){const _0x24c2d3=_0x1ea853,_0x4371fb=[_0x281aee[_0x24c2d3(0x2eb)]];let _0x523c3c=_0x24c2d3(0x15b1);const _0xc6aece=new Blob(_0x4371fb,{'type':_0x281aee['type']});_0x523c3c=_0x6f1d61['tab'][_0x24c2d3(0x2894)]+_0x24c2d3(0x2123)+_0x1b7861['id']+_0x24c2d3(0x14de);const _0x179a2a=window[_0x24c2d3(0xef3)][_0x24c2d3(0x24ec)]('a');_0x179a2a['setAttribute'](_0x24c2d3(0x1b3c),URL['createObjectURL'](_0xc6aece)),_0x179a2a[_0x24c2d3(0x1652)]('download',_0x523c3c),document[_0x24c2d3(0x2586)][_0x24c2d3(0x23e)](_0x179a2a),_0x179a2a[_0x24c2d3(0x1fa5)]();})[_0x1ea853(0x129e)](function(_0x4f152b){const _0x21b19d=_0x1ea853;if(_0x4f152b[_0x21b19d(0x524)]&&_0x4f152b[_0x21b19d(0x524)][_0x21b19d(0xcef)]&&_0x4f152b['data'][_0x21b19d(0xcef)][_0x21b19d(0x402)])for(let _0x168f88=0x0;_0x168f88<_0x4f152b[_0x21b19d(0x524)]['errors'][_0x21b19d(0x402)];_0x168f88+=0x1){_0x2bf50f['error']({'title':_0x4f152b['data']['errors'][_0x168f88][_0x21b19d(0x1142)],'msg':_0x4f152b[_0x21b19d(0x524)][_0x21b19d(0xcef)][_0x168f88][_0x21b19d(0x7fd)]});}else _0x2bf50f['error']({'title':_0x4f152b['status']?'API:'+_0x4f152b[_0x21b19d(0x107b)]+_0x21b19d(0x1315)+_0x4f152b[_0x21b19d(0x167f)]:'api.downloadMessage.get','msg':_0x4f152b[_0x21b19d(0x524)]?JSON['stringify'](_0x4f152b[_0x21b19d(0x524)][_0x21b19d(0x7fd)]):_0x4f152b['toString']()});});}function _0x438276(_0x2f44c7,_0x39cbfd){const _0x60d39d=_0x1da86e;_0x6f1d61[_0x60d39d(0x13a3)][_0x60d39d(0x2894)]&&_0x2f44c7['id']&&_0x21aa01[_0x6f1d61['tab'][_0x60d39d(0x2894)]+_0x60d39d(0x2297)][_0x60d39d(0x15b1)]({'id':_0x2f44c7['id'],'attachments':_0x39cbfd})['$promise'][_0x60d39d(0x146b)](function(_0x1cf1ea){const _0xae2911=_0x60d39d,_0x177136=[_0x1cf1ea[_0xae2911(0x2eb)]],_0x405045=_0x6f1d61[_0xae2911(0x13a3)][_0xae2911(0x2894)]+_0xae2911(0x1c78)+_0x2f44c7['id']+_0xae2911(0xf04),_0x456e70=new Blob(_0x177136,{'type':_0x1cf1ea[_0xae2911(0x1142)]}),_0x523278=window[_0xae2911(0xef3)]['createElement']('a');_0x523278[_0xae2911(0x1652)](_0xae2911(0x1b3c),URL['createObjectURL'](_0x456e70)),_0x523278[_0xae2911(0x1652)](_0xae2911(0x15b1),_0x405045),document[_0xae2911(0x2586)][_0xae2911(0x23e)](_0x523278),_0x523278[_0xae2911(0x1fa5)]();})[_0x60d39d(0x129e)](function(_0x256ecb){const _0x182ab6=_0x60d39d;if(_0x256ecb[_0x182ab6(0x524)]&&_0x256ecb[_0x182ab6(0x524)][_0x182ab6(0xcef)]&&_0x256ecb[_0x182ab6(0x524)][_0x182ab6(0xcef)]['length'])for(let _0x3713d5=0x0;_0x3713d5<_0x256ecb[_0x182ab6(0x524)][_0x182ab6(0xcef)]['length'];_0x3713d5+=0x1){_0x2bf50f[_0x182ab6(0x1980)]({'title':_0x256ecb['data'][_0x182ab6(0xcef)][_0x3713d5][_0x182ab6(0x1142)],'msg':_0x256ecb['data'][_0x182ab6(0xcef)][_0x3713d5][_0x182ab6(0x7fd)]});}else _0x2bf50f[_0x182ab6(0x1980)]({'title':_0x256ecb[_0x182ab6(0x107b)]?_0x182ab6(0x262a)+_0x256ecb[_0x182ab6(0x107b)]+_0x182ab6(0x1315)+_0x256ecb[_0x182ab6(0x167f)]:_0x182ab6(0x1990),'msg':_0x256ecb[_0x182ab6(0x524)]?JSON[_0x182ab6(0x10bb)](_0x256ecb[_0x182ab6(0x524)][_0x182ab6(0x7fd)]):_0x256ecb[_0x182ab6(0xd5f)]()});});}function _0xeee395(_0x29f43d){const _0x3d2ee3=_0x1da86e;if(_0x29f43d)return _0x29f43d[_0x6f1d61[_0x3d2ee3(0x13a3)][_0x3d2ee3(0x2894)]==='chat'?'ChatWebsiteId':_0x3f65c0()[_0x3d2ee3(0x83f)](_0x6f1d61[_0x3d2ee3(0x13a3)][_0x3d2ee3(0x2894)])+_0x3d2ee3(0x348)]=_0x6f1d61[_0x3d2ee3(0xe80)][_0x6f1d61['tab']['channel']===_0x3d2ee3(0xa7f)?_0x3d2ee3(0x1d92):_0x3f65c0()[_0x3d2ee3(0x83f)](_0x6f1d61[_0x3d2ee3(0x13a3)][_0x3d2ee3(0x2894)])+_0x3d2ee3(0x348)],_0x29f43d[_0x3f65c0()[_0x3d2ee3(0x83f)](_0x6f1d61[_0x3d2ee3(0x13a3)][_0x3d2ee3(0x2894)])+_0x3d2ee3(0x14ad)]=_0x6f1d61[_0x3d2ee3(0xe80)]['id'],_0x29f43d[_0x3d2ee3(0xea2)]=_0x6f1d61[_0x3d2ee3(0xe7b)]['id'],_0x29f43d['ContactId']=_0x6f1d61[_0x3d2ee3(0xe80)][_0x3d2ee3(0x932)],_0x29f43d[_0x3d2ee3(0x26cc)]=_0x3d2ee3(0x147f),_0x29f43d[_0x3d2ee3(0xaf0)]=Boolean(_0x6f1d61['tab'][_0x3d2ee3(0x2c5)]||_0x29f43d[_0x3d2ee3(0xaf0)]),_0x21aa01[_0x6f1d61[_0x3d2ee3(0x13a3)][_0x3d2ee3(0x2894)]+_0x3d2ee3(0xe2)][_0x3d2ee3(0x1e3)](_0x29f43d)[_0x3d2ee3(0x2945)][_0x3d2ee3(0x146b)](function(_0x47d2ac){const _0x5911e9=_0x3d2ee3;if(_0x47d2ac&&_0x47d2ac['id']){if(!_0x3f65c0()[_0x5911e9(0x2635)](_0x29f43d[_0x5911e9(0x2644)])){const _0x171dfd=[];for(let _0x5bd31b=0x0;_0x5bd31b<_0x29f43d[_0x5911e9(0x2644)][_0x5911e9(0x402)];_0x5bd31b++){const _0x1bbd23=_0x29f43d[_0x5911e9(0x2644)][_0x5bd31b];_0x1bbd23[_0x5911e9(0x1c05)]?_0x171dfd['push'](_0x21aa01['attachment'][_0x5911e9(0x12cc)]({'id':_0x1bbd23['id']},{'name':_0x1bbd23['name'],'basename':_0x1bbd23[_0x5911e9(0x17af)],'type':_0x1bbd23[_0x5911e9(0x1142)],'MailMessageId':_0x47d2ac['id']})[_0x5911e9(0x2945)]):_0x171dfd[_0x5911e9(0x1f47)](_0x21aa01[_0x5911e9(0x2527)][_0x5911e9(0x18e1)]({'id':_0x1bbd23['id']},{'MailMessageId':_0x47d2ac['id']})[_0x5911e9(0x2945)]);}return _0x4afbf4[_0x5911e9(0x1be2)](_0x171dfd);}}})[_0x3d2ee3(0x129e)](function(_0x3da448){const _0x118633=_0x3d2ee3;_0x2bf50f[_0x118633(0x1980)]({'title':_0x3da448[_0x118633(0x107b)]?_0x118633(0x262a)+_0x3da448[_0x118633(0x107b)]+_0x118633(0x1315)+_0x3da448[_0x118633(0x167f)]:_0x118633(0xf9f),'msg':_0x3da448[_0x118633(0x524)]?JSON[_0x118633(0x10bb)](_0x3da448['data']):_0x3da448[_0x118633(0xd5f)]()});})[_0x3d2ee3(0x1ec6)](function(){const _0x5a23e1=_0x3d2ee3;_0x6f1d61[_0x5a23e1(0x13a3)][_0x5a23e1(0x2894)]===_0x5a23e1(0x56b)&&(_0x29f43d['isDraft']&&(_0x9d3764['removeByInteraction'](_0x6f1d61[_0x5a23e1(0xe80)]['id']),_0x6f1d61[_0x5a23e1(0x1d96)]=null)),_0x6f1d61['tab']['areaText']='',_0x28d33f();});}function _0x585fbc(_0x3c46e4){const _0xfb95c5=_0x1da86e;_0x6f1d61[_0xfb95c5(0x13a3)][_0xfb95c5(0x2894)]&&_0x6f1d61[_0xfb95c5(0xe80)]&&_0x6f1d61[_0xfb95c5(0xe80)]['id']&&_0x21aa01[_0x6f1d61[_0xfb95c5(0x13a3)]['channel']+_0xfb95c5(0x2297)][_0xfb95c5(0x18e1)]({'id':_0x6f1d61[_0xfb95c5(0xe80)]['id'],'substatus':_0x3c46e4})[_0xfb95c5(0x2945)][_0xfb95c5(0x129e)](function(_0x3b12fa){const _0x1d21f4=_0xfb95c5;console[_0x1d21f4(0x1980)](_0x3b12fa);});}function _0x33a5a0(){const _0x55dc53=_0x1da86e;if(_0x6f1d61['tab'][_0x55dc53(0x2894)]&&_0x6f1d61[_0x55dc53(0xe80)]&&_0x6f1d61[_0x55dc53(0xe80)]['id']){if(_0x6f1d61[_0x55dc53(0xb5e)][_0x55dc53(0x402)])for(let _0xe58b68=0x0;_0xe58b68<_0x6f1d61['acceptedMessages'][_0x55dc53(0x402)];_0xe58b68+=0x1){_0x21aa01[_0x6f1d61[_0x55dc53(0x13a3)]['channel']+'Message']['update']({'id':_0x6f1d61[_0x55dc53(0xb5e)][_0xe58b68],'read':![],'UserId':null});}else for(let _0x1ee057=0x0;_0x1ee057<_0x6f1d61['messages']['rows']['length'];_0x1ee057+=0x1){if(_0x6f1d61['messages']['rows'][_0x1ee057]['direction']==='in'){_0x6f1d61[_0x55dc53(0x8ac)]['rows'][_0x1ee057][_0x55dc53(0xea2)]===_0x6f1d61['user']['id']?_0x21aa01[_0x6f1d61[_0x55dc53(0x13a3)][_0x55dc53(0x2894)]+_0x55dc53(0xe2)][_0x55dc53(0x18e1)]({'id':_0x6f1d61[_0x55dc53(0x8ac)][_0x55dc53(0x19c7)][_0x1ee057]['id'],'read':![],'UserId':null}):_0x2bf50f[_0x55dc53(0x1980)]({'title':_0x55dc53(0xf32),'msg':_0x55dc53(0x130b)});break;}}}_0x6f1d61[_0x55dc53(0x13a3)][_0x55dc53(0x1a2e)]=!![],_0x17bccc['$parent']['$parent'][_0x55dc53(0x2870)]['vm'][_0x55dc53(0x17ff)](_0x6f1d61[_0x55dc53(0x13a3)]);}function _0x26daa7(_0x6904c4){const _0x42503e=_0x1da86e;if(_0x6904c4&&_0x6f1d61['interaction']['id']!==_0x6904c4['id'])return;_0x6904c4[_0x42503e(0x1943)]&&(_0x6f1d61[_0x42503e(0x13a3)][_0x42503e(0x1a2e)]=!![]),_0x3f65c0()[_0x42503e(0x168d)](_0x6f1d61['interaction'],_0x6904c4);}function _0x4c1e76(_0x3fa7c7){const _0x196194=_0x1da86e;if(_0x3fa7c7&&_0x6f1d61[_0x196194(0xe80)]['id']!=_0x3fa7c7[_0x3f65c0()[_0x196194(0x83f)](_0x6f1d61[_0x196194(0x13a3)][_0x196194(0x2894)])+_0x196194(0x14ad)])return;let _0x3b5e96=![];_0x6f1d61[_0x196194(0x8ac)]?_0x3b5e96=_0x3f65c0()['find'](_0x6f1d61[_0x196194(0x8ac)][_0x196194(0x19c7)],{'id':_0x3fa7c7['id']}):_0x6f1d61[_0x196194(0x8ac)]={'rows':[],'count':0x0},_0x3b5e96?_0x3f65c0()[_0x196194(0x168d)](_0x3b5e96,_0x3fa7c7):(_0x6f1d61['tab']['channel']===_0x196194(0x56b)?_0x6f1d61['messages']['rows'][_0x196194(0xb3d)](_0x3fa7c7):_0x6f1d61[_0x196194(0x8ac)][_0x196194(0x19c7)][_0x196194(0x1f47)](_0x3fa7c7),_0x28d33f());}function _0xfdf592(_0xa85689){const _0x314ff3=_0x1da86e;switch(_0xa85689){case _0x314ff3(0xa7f):return _0x314ff3(0x1bed);case _0x314ff3(0x56b):return _0x314ff3(0x1c3d);case _0x314ff3(0x929):return _0x314ff3(0x1580);case'whatsapp':return _0x314ff3(0x28bf);case _0x314ff3(0x7d9):return _0x314ff3(0x9b8);case _0x314ff3(0x22d9):return _0x314ff3(0xc0e);default:return _0x314ff3(0x1bed);}}function _0x46aaed(_0x3ffeea){const _0x2d0ce8=_0x1da86e;switch(_0x3ffeea){case _0x2d0ce8(0xa7f):return _0x2d0ce8(0x23da);case'mail':return _0x2d0ce8(0x109e);case _0x2d0ce8(0x929):return _0x2d0ce8(0x2632);case _0x2d0ce8(0x7d9):return _0x2d0ce8(0x154c);case _0x2d0ce8(0x22d9):return _0x2d0ce8(0x276);case _0x2d0ce8(0xff9):return'lime-A700';default:return'blue-A700';}}function _0xdf5660(_0x493655){const _0x169509=_0x1da86e;let _0x351d6e='';if(_0x493655[_0x169509(0x74d)])_0x351d6e=_0x169509(0x22d9);else{if(_0x493655['OpenchannelAccountId'])_0x351d6e=_0x169509(0x7d9);else{if(_0x493655['SmsAccountId'])_0x351d6e='sms';else{if(_0x493655['WhatsappAccountId'])_0x351d6e=_0x169509(0xff9);else{if(_0x493655[_0x169509(0x658)])_0x351d6e=_0x169509(0x56b);else{if(_0x493655[_0x169509(0x1d92)])_0x351d6e=_0x169509(0xa7f);else _0x493655[_0x169509(0xcbf)]&&(_0x351d6e=_0x169509(0xe6));}}}}}return _0x46aaed(_0x351d6e);}function _0x184d6f(_0x45da30){const _0x357699=_0x1da86e;if(_0x45da30['secret']&&_0x6f1d61[_0x357699(0xe7b)]['id']!=_0x45da30[_0x357699(0xea2)])return'in';switch(_0x6f1d61[_0x357699(0x15b9)]['messagesAlignment']){case _0x357699(0x25f5):if(_0x45da30['direction']=='in')return _0x45da30[_0x357699(0x26cc)];return _0x357699(0xaff);case'right':if(_0x45da30[_0x357699(0x26cc)]=='in')return _0x357699(0x1568);return _0x45da30[_0x357699(0x26cc)];default:return _0x45da30[_0x357699(0x26cc)];}}function _0x26500f(){const _0x3f2230=_0x1da86e;_0x6f1d61[_0x3f2230(0x14ae)]=!_0x6f1d61['displayCannedAnswerInput'];}function _0x3b7ae6(_0x1e2292){const _0x4935f9=_0x1da86e;return _0x21aa01[_0x4935f9(0x2527)]['get']({'MailMessageId':_0x1e2292['id']})[_0x4935f9(0x2945)]['then'](function(_0x265c32){const _0x4ce132=_0x4935f9;_0x265c32&&_0x265c32[_0x4ce132(0x19c7)]&&(_0x1e2292[_0x4ce132(0x2644)]=_0x265c32[_0x4ce132(0x19c7)]);})[_0x4935f9(0x129e)](function(_0x1129f2){const _0xec94ce=_0x4935f9;_0x2bf50f['error']({'title':_0x1129f2['status']?_0xec94ce(0x262a)+_0x1129f2['status']+_0xec94ce(0x1315)+_0x1129f2[_0xec94ce(0x167f)]:_0xec94ce(0xa61),'msg':_0x1129f2[_0xec94ce(0x524)]?JSON[_0xec94ce(0x10bb)](_0x1129f2[_0xec94ce(0x524)]):_0x1129f2[_0xec94ce(0xd5f)]()});});}function _0x48c9ae(_0x4ffd80){const _0x5c35af=_0x1da86e;return _0x21aa01[_0x5c35af(0x2527)][_0x5c35af(0x15b1)]({'id':_0x4ffd80['id']})[_0x5c35af(0x2945)]['then'](function(_0x5f162b){const _0xcb8b34=_0x5c35af;if(_0x5f162b){const _0x3e231c=new Blob([_0x5f162b['buffer']],{'type':_0x5f162b[_0xcb8b34(0x1142)]}),_0x4cc414=document[_0xcb8b34(0x24ec)]('a'),_0x41a008=window[_0xcb8b34(0x1227)][_0xcb8b34(0x1c58)](_0x3e231c);_0x4cc414[_0xcb8b34(0x1b3c)]=_0x41a008,_0x4cc414['target']=_0xcb8b34(0x20cb),_0x4cc414[_0xcb8b34(0x15b1)]=_0x4ffd80[_0xcb8b34(0x19eb)],document[_0xcb8b34(0x2586)][_0xcb8b34(0x23e)](_0x4cc414),_0x4cc414['click'](),setTimeout(function(){const _0x72d0a8=_0xcb8b34;document[_0x72d0a8(0x2586)][_0x72d0a8(0x1124)](_0x4cc414),window['URL'][_0x72d0a8(0x2479)](_0x41a008);},0x64);}})[_0x5c35af(0x129e)](function(_0x4344c3){const _0x2c923c=_0x5c35af;_0x2bf50f[_0x2c923c(0x1980)]({'title':_0x4344c3[_0x2c923c(0x107b)]?_0x2c923c(0x262a)+_0x4344c3[_0x2c923c(0x107b)]+_0x2c923c(0x1315)+_0x4344c3[_0x2c923c(0x167f)]:_0x2c923c(0xa61),'msg':_0x4344c3[_0x2c923c(0x524)]?JSON['stringify'](_0x4344c3[_0x2c923c(0x524)]):_0x4344c3['toString']()});});}function _0x4a5f1c(){const _0x309117=_0x1da86e;if(!_0x6f1d61[_0x309117(0x13a3)][_0x309117(0x2c5)]&&!_0x6f1d61[_0x309117(0xe80)][_0x309117(0x1943)])for(let _0x56d816=0x0;_0x56d816<_0x6f1d61[_0x309117(0x8ac)][_0x309117(0x19c7)][_0x309117(0x402)];_0x56d816+=0x1){_0x6f1d61[_0x309117(0x8ac)][_0x309117(0x19c7)][_0x56d816][_0x309117(0x26cc)]==='in'&&!_0x6f1d61[_0x309117(0x8ac)][_0x309117(0x19c7)][_0x56d816][_0x309117(0x229e)]&&(_0x21aa01[_0x6f1d61[_0x309117(0x13a3)][_0x309117(0x2894)]+_0x309117(0xe2)]['accept']({'id':_0x6f1d61[_0x309117(0x8ac)][_0x309117(0x19c7)][_0x56d816]['id'],'UserId':_0x6f1d61['user']['id']}),_0x6f1d61[_0x309117(0xb5e)][_0x309117(0x1f47)](_0x6f1d61[_0x309117(0x8ac)]['rows'][_0x56d816]['id']));}}function _0x1f3af9(_0x523699){const _0x32a808=_0x1da86e;if(!_0x523699[_0x32a808(0x9e1)])return'('+_0x3ddbd0[_0x32a808(0xde)](_0x32a808(0x2693))+')';const _0xb0772b=_0x3f65c0()[_0x32a808(0x10d6)]([_0x523699[_0x32a808(0x9e1)],_0x523699[_0x32a808(0xb5c)],_0x523699[_0x32a808(0x1402)]]);return'('+_0xb0772b[_0x32a808(0xb47)](_0x32a808(0x1315))+')';}function _0x261161(_0x4e1ed8){const _0x4ff2c5=_0x1da86e;_0x4e1ed8&&_0x4e1ed8[_0x4ff2c5(0x51c)]&&_0x4e1ed8[_0x4ff2c5(0x19c7)][_0x4ff2c5(0x402)]&&(_0x6f1d61['journey']=_0x3f65c0()[_0x4ff2c5(0x163c)](_0x6f1d61[_0x4ff2c5(0x21db)],_0x4e1ed8[_0x4ff2c5(0x19c7)]),_0x6f1d61[_0x4ff2c5(0x21db)][_0x4ff2c5(0x1df5)](function(_0xfa71b2){const _0x23d17d=_0x4ff2c5;_0xfa71b2[_0x23d17d(0x472)]=_0x1f3af9(_0xfa71b2);}));}function _0x4bad2d(_0x3d7368){const _0x227acd=_0x1da86e;if(_0x3d7368&&_0x3d7368['id']){for(let _0x16e452=0x0;_0x16e452<_0x6f1d61[_0x227acd(0x449)]['length'];_0x16e452++){_0x21aa01[_0x6f1d61[_0x227acd(0x449)][_0x16e452]+'Interaction'][_0x227acd(0x16b4)]({'ContactId':_0x3d7368['id'],'journey':!![],'includeAll':!![]})[_0x227acd(0x2945)][_0x227acd(0x146b)](_0x261161);}_0x21aa01[_0x227acd(0x629)][_0x227acd(0x16b4)]({'ContactId':_0x3d7368['id'],'includeAll':!![]})[_0x227acd(0x2945)][_0x227acd(0x146b)](_0x261161);}}function _0x29d824(_0x4a90ef){const _0x12abaf=_0x1da86e;return _0x4a90ef?String(_0x4a90ef)[_0x12abaf(0x5f4)](/<[^>]+>/gm,''):'';}function _0x24ec4e(_0x1f97f1){const _0x430179=_0x1da86e;switch(_0x6f1d61[_0x430179(0x13a3)]['channel']){case _0x430179(0x56b):_0x6f1d61[_0x430179(0x1d96)]['content'][_0x430179(0x2c4)]=_0x1f97f1?_0x3f65c0()['find'](_0x6f1d61[_0x430179(0xe80)][_0x430179(0x1c7c)],['id',_0x1f97f1]):_0x6f1d61['interaction'][_0x430179(0x1c7c)][_0x6f1d61[_0x430179(0xe80)][_0x430179(0x1c7c)][_0x430179(0x402)]-0x1],_0x3d4f4a(_0x6f1d61[_0x430179(0x1d96)]['type'],_0x6f1d61['draft'][_0x430179(0x80f)]);break;case _0x430179(0x22d9):break;case'openchannel':break;case'sms':break;case _0x430179(0xff9):break;}}_0x17bccc['$on'](_0x1da86e(0x116f),function(){const _0x312d61=_0x1da86e;_0x2009d1[_0x312d61(0x1c5f)](_0x6f1d61[_0x312d61(0x13a3)][_0x312d61(0x2894)]+_0x312d61(0x142d)),_0x2009d1['removeAllListeners'](_0x6f1d61[_0x312d61(0x13a3)][_0x312d61(0x2894)]+_0x312d61(0x6c7)),_0x2009d1[_0x312d61(0x1c5f)](_0x6f1d61[_0x312d61(0x13a3)][_0x312d61(0x2894)]+_0x312d61(0x28df)),_0x2009d1[_0x312d61(0x1c5f)](_0x6f1d61[_0x312d61(0x13a3)][_0x312d61(0x2894)]+_0x312d61(0x1c22)),_0x2009d1[_0x312d61(0x1c5f)](_0x312d61(0x1b79)+_0x6f1d61[_0x312d61(0x13a3)]['channel']+'_interactions:save'),_0x2009d1[_0x312d61(0x1c5f)](_0x312d61(0x1b79)+_0x6f1d61['tab'][_0x312d61(0x2894)]+_0x312d61(0x1bc0));});function _0x3ee3fb(_0x511ec9){const _0x465149=_0x1da86e,_0x5b676b={'id':_0x511ec9['id']};return _0x21aa01['chatInteraction']['createVidaooSession'](_0x5b676b)[_0x465149(0x2945)][_0x465149(0x146b)](function(){const _0x4c54ee=_0x465149;_0x2bf50f['success']({'title':_0x4c54ee(0x114),'msg':_0x4c54ee(0x1cd8)});})[_0x465149(0x129e)](function(){const _0x5bd519=_0x465149;_0x2bf50f[_0x5bd519(0x1980)]({'title':_0x5bd519(0x114),'msg':_0x5bd519(0xf1a)});});}}function _0x371c1a(_0x16e615){const _0xecdf66=_0x313a4d;return{'scope':{'ngBindHtmlUnsafe':'='},'template':_0xecdf66(0xef7),'link':function(_0x5cd011){const _0x5bfc2b=_0xecdf66;function _0x4964ba(){const _0x43b2d8=a0_0x3bb9,_0x14d69a=_0x43b2d8(0x20ec)+Math[_0x43b2d8(0x19ad)](Math['random']()*0x270f+0x1);return _0x43b2d8(0x4e0)+_0x14d69a+_0x43b2d8(0x1a4f)+_0x14d69a+_0x43b2d8(0x256b);}_0x5cd011['updateView']=function(){const _0x2d1223=a0_0x3bb9,_0xd972ec=_0x3f65c0()[_0x2d1223(0x5f4)](_0x5cd011[_0x2d1223(0x181e)],_0x2d1223(0x9a4),_0x4964ba());_0x5cd011[_0x2d1223(0x19e0)]=_0x16e615[_0x2d1223(0x1d72)](_0xd972ec);},_0x5cd011[_0x5bfc2b(0x21e8)](_0x5bfc2b(0x181e),function(_0x3475c1){const _0x31d73b=_0x5bfc2b;_0x5cd011[_0x31d73b(0xf2a)](_0x3475c1);});}};}function _0x1f5322(){return function(_0xbdd200,_0x4a2853,_0x38d388,_0x4ed616){const _0x169151=a0_0x3bb9,_0x519237=[];for(let _0x2bf82a=0x0;_0x2bf82a<_0xbdd200[_0x169151(0x402)];_0x2bf82a+=0x1){let _0x4b925c=!![];switch(_0x4a2853){case _0x169151(0xe6):_0x4b925c=Boolean(_0xbdd200[_0x2bf82a][_0x169151(0x4f8)]);break;case'chat':_0x4b925c=Boolean(_0xbdd200[_0x2bf82a]['ChatWebsiteId']);break;case _0x169151(0x56b):_0x4b925c=Boolean(_0xbdd200[_0x2bf82a]['MailAccountId']);break;case'sms':_0x4b925c=Boolean(_0xbdd200[_0x2bf82a][_0x169151(0x1481)]);break;case _0x169151(0xff9):_0x4b925c=Boolean(_0xbdd200[_0x2bf82a][_0x169151(0x158a)]);break;case _0x169151(0x22d9):_0x4b925c=Boolean(_0xbdd200[_0x2bf82a]['FaxAccountId']);break;case _0x169151(0x7d9):_0x4b925c=Boolean(_0xbdd200[_0x2bf82a][_0x169151(0x534)]);break;default:_0x4b925c=!![];break;}_0x4b925c&&(_0x38d388&&_0x4ed616&&(_0x4b925c=_0x2deec6()(_0xbdd200[_0x2bf82a][_0x169151(0xc68)])[_0x169151(0xb87)](_0x2deec6()(_0x38d388)['utcOffset'](0x0,!![]),_0x2deec6()(_0x4ed616)[_0x169151(0x65f)](0x0,!![])[_0x169151(0x387)](0x17,_0x169151(0xdfa))['add'](0x3b,_0x169151(0x142))[_0x169151(0x387)](0x3b,'seconds')))),_0x4b925c&&_0x519237[_0x169151(0x1f47)](_0xbdd200[_0x2bf82a]);}return _0x519237;};};function _0x119733(){const _0x14403d=_0x313a4d;return{'watchEmbedData':![],'sanitizeHtml':![],'fontSmiley':![],'emoji':!![],'link':!![],'linkTarget':'_blank','pdf':{'embed':!![]},'image':{'embed':!![]},'audio':{'embed':!![]},'basicVideo':![],'gdevAuth':_0x14403d(0x11ce),'video':{'embed':![],'width':null,'height':null,'ytTheme':'dark','details':![],'thumbnailQuality':_0x14403d(0x772),'autoPlay':!![]},'twitchtvEmbed':!![],'dailymotionEmbed':!![],'tedEmbed':!![],'dotsubEmbed':!![],'liveleakEmbed':!![],'ustreamEmbed':!![],'soundCloudEmbed':!![],'soundCloudOptions':{'height':0xa0,'themeColor':_0x14403d(0x1e6f),'autoPlay':![],'hideRelated':![],'showComments':!![],'showUser':!![],'showReposts':![],'visual':![],'download':![]},'spotifyEmbed':!![],'tweetEmbed':!![],'tweetOptions':{'maxWidth':0x226,'hideMedia':![],'hideThread':![],'align':_0x14403d(0x1642),'lang':'en'},'code':{'highlight':!![],'lineNumbers':![]},'codepenEmbed':!![],'codepenHeight':0x12c,'jsfiddleEmbed':!![],'jsfiddleHeight':0x12c,'jsbinEmbed':!![],'jsbinHeight':0x12c,'plunkerEmbed':!![],'githubgistEmbed':!![],'ideoneEmbed':!![],'ideoneHeight':0x12c};}const _0x3e78fe=_0x119733;;_0xcf98f[_0x313a4d(0x11c2)]=[_0x313a4d(0x23df),'$window',_0x313a4d(0x10e8),'$mdConstant',_0x313a4d(0x1f8e),_0x313a4d(0x7fd),_0x313a4d(0x1142),_0x313a4d(0x247f),_0x313a4d(0x1fe4)];function _0xcf98f(_0x30a461,_0x3f8dc4,_0x1964df,_0x599480,_0x1af212,_0x1e9fb8,_0x4fe36c,_0x297009,_0x281d97){const _0x21d473=_0x313a4d,_0x1cfebb=this,_0xa31d84=0x19,_0xd59da5=_0xa31d84*0x400*0x400;_0x1cfebb[_0x21d473(0x20e5)]=[_0x599480[_0x21d473(0x1c3f)][_0x21d473(0xf18)],_0x599480[_0x21d473(0x1c3f)][_0x21d473(0x19b8)],_0x599480['KEY_CODE'][_0x21d473(0x1556)]],_0x1cfebb[_0x21d473(0x7fd)]={'from':_0x1af212['localstationid'],'to':_0x3f65c0()[_0x21d473(0x1b36)](_0x1e9fb8['to'])||_0x3f65c0()[_0x21d473(0x2635)](_0x1e9fb8['to'])?[]:_0x1e9fb8['to'],'attachments':[]},_0x1cfebb[_0x21d473(0x4c3)]={'target':_0x21d473(0x17cb),'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0xd59da5,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x1cfebb[_0x21d473(0x1376)]={'flow':{}},_0x1cfebb[_0x21d473(0x1443)]=_0x449fc9,_0x1cfebb['upload']=_0x27540d,_0x1cfebb[_0x21d473(0xc4c)]=_0x25bcd4,_0x1cfebb[_0x21d473(0x143d)]=_0x131dda,_0x1cfebb[_0x21d473(0x1d90)]=_0x3387e0,_0x1cfebb[_0x21d473(0x1384)]=_0xd137f,_0x1cfebb[_0x21d473(0x2369)]=_0x5b1de3,_0x1cfebb[_0x21d473(0x13f3)]=_0x38f4d2;function _0x24a4a0(){const _0x3aef53=_0x21d473;_0x1964df[_0x3aef53(0x2458)]({'from':_0x1cfebb[_0x3aef53(0x7fd)]['from'],'to':_0x1cfebb[_0x3aef53(0x7fd)]['to'],'attach':_0x1cfebb[_0x3aef53(0x7fd)]['attachments'][_0x3aef53(0x402)],'attachments':_0x1cfebb['message'][_0x3aef53(0x2644)]});}function _0x449fc9(){const _0xc8bb46=_0x21d473;_0x1cfebb[_0xc8bb46(0x7fd)]['attachments'][_0xc8bb46(0x402)]===0x1?_0x1cfebb[_0xc8bb46(0x7fd)]['to'][_0xc8bb46(0x402)]?(_0x1e9fb8[_0xc8bb46(0x1d96)]=undefined,_0x24a4a0()):_0x281d97[_0xc8bb46(0x1980)](_0xc8bb46(0x611)):_0x281d97[_0xc8bb46(0x1980)]('Attachment\x20is\x20mandatory');}function _0x27540d(){const _0x2d02a5=_0x21d473;_0x1cfebb[_0x2d02a5(0x1376)][_0x2d02a5(0x963)][_0x2d02a5(0x1da1)][_0x2d02a5(0xa01)]={'X-Requested-With':_0x2d02a5(0x1f8f),'Authorization':_0x2d02a5(0x2745)+_0x30a461[_0x2d02a5(0x16b4)]('motion.token')},_0x1cfebb['ngFlow']['flow'][_0x2d02a5(0x1dc6)]();}function _0x131dda(_0x17e1c7){const _0x205328=_0x21d473,_0x2b9ed5=[_0x205328(0x1aab),_0x205328(0x2218)];if(!_0x3f65c0()[_0x205328(0xa4e)](_0x2b9ed5,_0x17e1c7[_0x205328(0x193f)]()))return _0x281d97[_0x205328(0x1980)]({'title':_0x205328(0x4c6)+_0x17e1c7[_0x205328(0x193f)](),'msg':'Supported\x20extensions:\x20'+_0x2b9ed5['join']()}),![];if(_0x17e1c7[_0x205328(0x4cc)]>_0xd59da5)return _0x281d97[_0x205328(0x1980)]({'title':'File\x20too\x20big','msg':'The\x20max\x20allowed\x20size\x20is\x20'+_0xa31d84+'MB'}),![];return!![];}function _0x25bcd4(_0x28c7a0,_0x4a6bb8){const _0x389bdd=_0x21d473;try{_0x4a6bb8=JSON[_0x389bdd(0x975)](_0x4a6bb8),_0x4a6bb8[_0x389bdd(0x4cc)]=_0x28c7a0[_0x389bdd(0x4cc)],_0x1cfebb[_0x389bdd(0x7fd)][_0x389bdd(0x2644)][_0x389bdd(0x1f47)](_0x4a6bb8);}catch(_0x1d2f3e){console[_0x389bdd(0x1980)](_0x1d2f3e);}}function _0x3387e0(_0x4c0693){const _0x25ed48=_0x21d473;let _0x113589='';return _0x4c0693[_0x25ed48(0x1ed4)]&&_0x4c0693[_0x25ed48(0x1ed4)]!==_0x4c0693[_0x25ed48(0x22d9)]&&(_0x113589+=_0x4c0693['firstName']+'\x20'),_0x4c0693[_0x25ed48(0xee4)]&&_0x4c0693[_0x25ed48(0xee4)]!==_0x4c0693[_0x25ed48(0x22d9)]&&(_0x113589+=_0x4c0693[_0x25ed48(0xee4)]+'\x20'),_0x113589+='<'+_0x4c0693['fax']+'>';}function _0x5b1de3(_0x354a52){const _0xe9842d=_0x21d473,_0x3a73a7=_0x354a52;if(_0x3f65c0()[_0xe9842d(0x1a1e)](_0x354a52))return _0x354a52[_0xe9842d(0x22d9)];if(_0x5cc17d(_0x3a73a7))return _0x3a73a7;return _0x281d97[_0xe9842d(0x1980)](_0xe9842d(0x1ae0)+_0x3a73a7+_0xe9842d(0x1cfa)),null;}function _0x5cc17d(_0x5dc444){const _0x57adca=_0x21d473,_0x14e9e9=/[&/\\#,()$~%.'":;*?<>{}\s\\|a-zA-Z\pS!òàùè…_§°çéì-]/;return!_0x14e9e9[_0x57adca(0x1e1e)](_0x5dc444);}function _0xd137f(_0xc10162){const _0x2312bd=_0x21d473;return _0x1af212&&_0x1af212[_0x2312bd(0xb7c)]?_0x297009[_0x2312bd(0x18c3)][_0x2312bd(0x16b4)]({'ListId':_0x1af212[_0x2312bd(0xb7c)],'nolimit':!![],'filter':_0xc10162,'fields':_0x2312bd(0x9d5)})[_0x2312bd(0x2945)]['then'](function(_0x4e2ecb){const _0x124f8a=_0x2312bd;return _0x4e2ecb[_0x124f8a(0x19c7)];}):[];}function _0x38f4d2(){const _0x5bef0e=_0x21d473;_0x1e9fb8[_0x5bef0e(0x1d96)]=_0x1cfebb[_0x5bef0e(0x7fd)],_0x1964df['cancel']();}}const _0xfce772=_0xcf98f;;_0x1a9fa5[_0x313a4d(0x11c2)]=[_0x313a4d(0x23df),'$window',_0x313a4d(0x10e8),_0x313a4d(0x27e8),'$translate',_0x313a4d(0x1f8e),_0x313a4d(0x7fd),_0x313a4d(0x1142),_0x313a4d(0x247f),_0x313a4d(0x1fe4),'$q','Auth',_0x313a4d(0xe80),'draftManager'];function _0x1a9fa5(_0x49ae7d,_0x1f7f66,_0x59e958,_0x564d49,_0x18cfda,_0x1b4ac5,_0x1fffa5,_0x3cddd4,_0x14bebb,_0x51435c,_0x5e33b8,_0x2f8f75,_0xd2060e,_0x3ce15e){const _0x2fdff5=_0x313a4d,_0x4b4676=this,_0x20c0fe=0x19,_0x4f56a1=_0x20c0fe*0x400*0x400;_0x4b4676[_0x2fdff5(0x2321)]=_0x2f8f75[_0x2fdff5(0xb12)](),_0x4b4676[_0x2fdff5(0xaf0)]=_0x3cddd4===_0x2fdff5(0xd38)?!![]:![],_0x4b4676[_0x2fdff5(0x1664)]=!![],_0x4b4676[_0x2fdff5(0xe28)]=!![],_0x4b4676[_0x2fdff5(0x218e)]=!![],_0x4b4676[_0x2fdff5(0xcef)]=[],_0x4b4676[_0x2fdff5(0x20e5)]=[_0x564d49[_0x2fdff5(0x1c3f)]['ENTER'],_0x564d49[_0x2fdff5(0x1c3f)]['COMMA'],_0x564d49[_0x2fdff5(0x1c3f)][_0x2fdff5(0x1556)]],_0x4b4676['searchTextChange']=_0x3e0caa,_0x4b4676[_0x2fdff5(0x265e)]=_0x4b8b73,_0x4b4676[_0x2fdff5(0xa1c)]=_0x5daa94,_0x3f65c0()[_0x2fdff5(0x1294)][_0x2fdff5(0x1687)]=/{{([\s\S]+?)}}/g,_0x4b4676[_0x2fdff5(0x9a1)]=_0x3f65c0()['template'](_0x2fdff5(0x591)),_0x4b4676[_0x2fdff5(0x1ce5)]=_0x3f65c0()[_0x2fdff5(0x1928)]('On\x20{{\x20date\x20}},\x20at\x20{{\x20time\x20}},\x20{{\x20from\x20}}\x20wrote:'),_0x4b4676['forwardTemplate']=_0x3f65c0()[_0x2fdff5(0x1928)](_0x2fdff5(0x269e)),_0x4b4676['message']={'from':_0x4b4676[_0x2fdff5(0x9a1)]({'name':_0x1b4ac5[_0x2fdff5(0x19eb)],'email':_0x1b4ac5[_0x2fdff5(0x1a2b)]||_0x1b4ac5[_0x2fdff5(0x24fb)][_0x2fdff5(0xe7b)]}),'to':[],'cc':[],'bcc':[],'body':_0x411a0f(),'type':_0x3cddd4,'attachments':[],'showLastMessage':!![]},_0x4b4676['draft']=null,_0x4b4676[_0x2fdff5(0x27c1)]={'skin':_0x2fdff5(0x2622),'startupFocus':!![],'language':'en','allowedContent':!![],'extraPlugins':_0x2fdff5(0xdde),'toolbarGroups':[{'name':_0x2fdff5(0x973),'groups':[_0x2fdff5(0x973)]},{'name':_0x2fdff5(0x6a4),'groups':[_0x2fdff5(0x302)]},{'name':_0x2fdff5(0x109f),'groups':['colors']},{'name':'basicstyles','groups':['basicstyles']},{'name':_0x2fdff5(0x8b1),'groups':[_0x2fdff5(0x25f4),_0x2fdff5(0x842),_0x2fdff5(0x12af)]}],'autoGrow_onStartup':!![],'autoGrow_minHeight':_0x4b4676['secret']?0xa0:0x12c,'autoGrow_maxHeight':_0x1f7f66['innerHeight']-0x190,'autocorrect_enabled':!![],'disableNativeSpellChecker':![],'enterMode':window[_0x2fdff5(0x1ddc)]['ENTER_BR'],'font_defaultLabel':_0x1b4ac5[_0x2fdff5(0x2138)]?_0x1b4ac5[_0x2fdff5(0x2138)][_0x2fdff5(0x10c8)](',')[0x0]:_0x2fdff5(0x6d0),'fontSize_defaultLabel':_0x1b4ac5[_0x2fdff5(0x498)]||'12','removePlugins':'magicline'};const _0x11fef8=[];for(let _0xf0f6fa=0x8;_0xf0f6fa<=0x48;_0xf0f6fa++){_0x11fef8[_0x2fdff5(0x1f47)](_0xf0f6fa+'/'+_0xf0f6fa+'pt');}_0x4b4676[_0x2fdff5(0x27c1)][_0x2fdff5(0x1964)]=_0x11fef8[_0x2fdff5(0xb47)](';'),_0x4b4676['ngFlowOptions']={'target':_0x2fdff5(0x17cb),'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x4f56a1,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x4b4676[_0x2fdff5(0x1376)]={'flow':{}},_0x4b4676[_0x2fdff5(0x512)]=_0x142666,_0x4b4676[_0x2fdff5(0x11a)]=_0x58bc1a,_0x4b4676['forward']=_0x38e1ac,_0x4b4676[_0x2fdff5(0x144)]=_0x12635e,_0x4b4676['send']=_0x3feb2e,_0x4b4676[_0x2fdff5(0xd38)]=_0x37a9d4,_0x4b4676['addNote']=_0x4b6cf5,_0x4b4676[_0x2fdff5(0x1dc6)]=_0xa7f945,_0x4b4676[_0x2fdff5(0xc4c)]=_0x4f154c,_0x4b4676['removeAttachment']=_0x541fea,_0x4b4676[_0x2fdff5(0x143d)]=_0x4bd8db,_0x4b4676[_0x2fdff5(0x1d90)]=_0x4a9666,_0x4b4676[_0x2fdff5(0x1384)]=_0x56186e,_0x4b4676['transformContact']=_0x3b9dc0,_0x4b4676[_0x2fdff5(0xba8)]=_0x387ad7,_0x4b4676[_0x2fdff5(0x13f3)]=_0x2b407d,_0x4b4676[_0x2fdff5(0x8cb)]=_0x25befd;switch(_0x3cddd4){case _0x2fdff5(0x512):_0x4b4676[_0x2fdff5(0x512)](![]);break;case _0x2fdff5(0x1600):_0x4b4676[_0x2fdff5(0x512)](!![]);break;case _0x2fdff5(0x1218):_0x4b4676[_0x2fdff5(0x1218)]();break;case'draft':_0x4b4676[_0x2fdff5(0x144)]();break;case _0x2fdff5(0x16d9):_0x4b4676[_0x2fdff5(0x11a)]();break;case _0x2fdff5(0xd38):_0x4b4676[_0x2fdff5(0xd38)]();break;}_0x14bebb[_0x2fdff5(0x2036)][_0x2fdff5(0x16b4)]({'nolimit':!![]})[_0x2fdff5(0x2945)][_0x2fdff5(0x146b)](function(_0x37ccb8){const _0x2cb1df=_0x2fdff5;_0x4b4676[_0x2cb1df(0xcb3)]=_0x37ccb8||{'count':0x0,'rows':[]};})[_0x2fdff5(0x129e)](function(_0x877371){const _0x1c18d3=_0x2fdff5;console[_0x1c18d3(0x1980)](_0x877371);});!_0x4b4676[_0x2fdff5(0xaf0)]&&_0x325eb3();function _0x142666(_0x4feab8){const _0x339075=_0x2fdff5;angular['isDefined'](_0x1fffa5)&&(_0x4b4676[_0x339075(0x7fd)][_0x339075(0x1142)]=_0x339075(0x512),_0x4b4676['message']['to']=_0x1fffa5[_0x339075(0x26cc)]==='in'?_0x1fffa5[_0x339075(0xfa5)][_0x339075(0x10c8)](','):_0x1fffa5['to']['split'](','),_0x4b4676[_0x339075(0x7fd)][_0x339075(0xe32)]=_0x3f65c0()['startsWith'](_0x1fffa5[_0x339075(0xe32)],'Re:')?_0x1fffa5[_0x339075(0xe32)]:'Re:\x20'+_0x1fffa5[_0x339075(0xe32)],_0x4b4676[_0x339075(0x7fd)][_0x339075(0x24e0)]=_0x1fffa5[_0x339075(0x1b11)],_0x4b4676[_0x339075(0x7fd)]['body']=_0x411a0f(),_0x4b4676[_0x339075(0x7fd)][_0x339075(0x2644)]=[],_0x4feab8&&_0x1fffa5['cc']&&(_0x4b4676[_0x339075(0x1664)]=![],_0x4b4676[_0x339075(0x7fd)]['cc']=_0x1fffa5['cc'][_0x339075(0x10c8)](',')),_0x4b4676[_0x339075(0x7fd)][_0x339075(0x1bd5)]=![]);}function _0x58bc1a(){const _0x346c1e=_0x2fdff5;angular[_0x346c1e(0x5ef)](_0x1fffa5)&&(_0x4b4676[_0x346c1e(0x7fd)][_0x346c1e(0x1142)]='new',_0x4b4676['message']['to']=_0x1fffa5['to']?_0x1fffa5['to'][_0x346c1e(0x10c8)](','):[]);}function _0x12635e(){const _0x417206=_0x2fdff5;_0x4b4676[_0x417206(0x1831)]=!![],angular[_0x417206(0x5ef)](_0x1fffa5)&&(_0x1fffa5[_0x417206(0x1703)]=![],_0x4b4676['message']=angular[_0x417206(0x235a)](_0x1fffa5),!_0x3f65c0()[_0x417206(0x2635)](_0x4b4676[_0x417206(0x7fd)]['cc'])&&(_0x4b4676[_0x417206(0x1664)]=![]),!_0x3f65c0()[_0x417206(0x2635)](_0x4b4676[_0x417206(0x7fd)]['bcc'])&&(_0x4b4676[_0x417206(0xe28)]=![]));}function _0x38e1ac(){const _0x3fde8c=_0x2fdff5;if(angular[_0x3fde8c(0x5ef)](_0x1fffa5)){_0x4b4676[_0x3fde8c(0x7fd)][_0x3fde8c(0x1142)]=_0x3fde8c(0x1218),_0x4b4676['message'][_0x3fde8c(0xe32)]=_0x3f65c0()[_0x3fde8c(0xd4d)](_0x1fffa5[_0x3fde8c(0xe32)],_0x3fde8c(0x34c))?_0x1fffa5['subject']:_0x3fde8c(0xaaf)+_0x1fffa5[_0x3fde8c(0xe32)],_0x4b4676['message']['body']=_0x411a0f();if(_0x1fffa5[_0x3fde8c(0xca5)]&&_0x1fffa5['Attachments'][_0x3fde8c(0x402)])for(let _0x58d623=0x0;_0x58d623<_0x1fffa5[_0x3fde8c(0xca5)][_0x3fde8c(0x402)];_0x58d623++){_0x4b4676['message']['attachments'][_0x3fde8c(0x1f47)](_0x1fffa5['Attachments'][_0x58d623]);}_0x4b4676['message'][_0x3fde8c(0x1bd5)]=![];}}function _0x37a9d4(){const _0x20a97d=_0x2fdff5;_0x4b4676[_0x20a97d(0x1142)]=_0x20a97d(0xd38),_0x4b4676['secret']=!![],_0x4b4676[_0x20a97d(0x7fd)]['body']=_0x20a97d(0x18b0)+_0x1b4ac5[_0x20a97d(0x2138)]+_0x20a97d(0xa86)+_0x1b4ac5[_0x20a97d(0x498)]+'pt\x22>

    ';}function _0x6be51d(_0x2832aa,_0x5505aa){const _0x361438=_0x2fdff5,_0x27258c={'from':_0x4b4676[_0x361438(0x7fd)][_0x361438(0xfa5)],'to':_0x4b4676[_0x361438(0x7fd)]['to']['join'](','),'cc':_0x4b4676[_0x361438(0x7fd)]['cc'][_0x361438(0xb47)](','),'bcc':_0x4b4676[_0x361438(0x7fd)]['bcc'][_0x361438(0xb47)](','),'subject':_0x4b4676[_0x361438(0x7fd)]['subject'],'body':_0x4b4676[_0x361438(0x7fd)]['showLastMessage']?_0x4b4676[_0x361438(0x7fd)][_0x361438(0x2586)]:_0x4b4676[_0x361438(0x7fd)]['body']+_0x2fe177(_0x4b4676[_0x361438(0x7fd)][_0x361438(0x1142)]),'inReplyTo':_0x4b4676[_0x361438(0x7fd)]['inReplyTo'],'attach':_0x4b4676['message']['attachments']['length'],'attachments':_0x4b4676['message'][_0x361438(0x2644)],'Interaction':{'lastMsgDirection':_0x361438(0x147f),'lastMsgBody':_0x4b4676['message'][_0x361438(0x2586)],'substatus':_0x5505aa},'isDraft':_0x4b4676['isDraft']};_0x27258c[_0x361438(0x1931)]=_0x361438(0x1e46)+_0x3f65c0()['replace'](_0x27258c[_0x361438(0x2586)],_0x361438(0x9a4),'_0x4f56a1)return _0x51435c[_0x23303e(0x1980)]({'title':_0x23303e(0x625),'msg':_0x23303e(0x923)+_0x20c0fe+'MB'}),![];return!![];}function _0xa7f945(){const _0x4ef826=_0x2fdff5;_0x4b4676[_0x4ef826(0x1376)][_0x4ef826(0x963)][_0x4ef826(0x1da1)][_0x4ef826(0xa01)]={'X-Requested-With':_0x4ef826(0x1f8f),'Authorization':_0x4ef826(0x2745)+_0x49ae7d[_0x4ef826(0x16b4)](_0x4ef826(0xe2d))},_0x4b4676['ngFlow'][_0x4ef826(0x963)][_0x4ef826(0x1dc6)]();}function _0x4f154c(_0x326866,_0x25d453){const _0x52f145=_0x2fdff5;try{_0x25d453=JSON[_0x52f145(0x975)](_0x25d453),_0x25d453[_0x52f145(0x4cc)]=_0x326866[_0x52f145(0x4cc)],_0x4b4676[_0x52f145(0x7fd)][_0x52f145(0x2644)]['push'](_0x25d453);}catch(_0x2d53d4){console[_0x52f145(0x1980)](_0x2d53d4);}}function _0x541fea(_0x48a357){const _0x1f6599=_0x2fdff5;_0x4b4676[_0x1f6599(0x7fd)][_0x1f6599(0x2644)]=_0x3f65c0()[_0x1f6599(0xa6f)](_0x4b4676[_0x1f6599(0x7fd)][_0x1f6599(0x2644)],{'id':_0x48a357['id']}),!_0x48a357[_0x1f6599(0x1c05)]&&_0x14bebb[_0x1f6599(0x2527)][_0x1f6599(0x1fac)]({'id':_0x48a357['id']})['$promise'][_0x1f6599(0x129e)](function(_0x15b73b){const _0x229ff5=_0x1f6599;_0x51435c['error']({'title':_0x15b73b['status']?_0x229ff5(0x262a)+_0x15b73b[_0x229ff5(0x107b)]+'\x20-\x20'+_0x15b73b[_0x229ff5(0x167f)]:_0x229ff5(0x1f6e),'msg':_0x15b73b[_0x229ff5(0x524)]?JSON['stringify'](_0x15b73b[_0x229ff5(0x524)][_0x229ff5(0x7fd)]):_0x15b73b[_0x229ff5(0xd5f)]()});});}function _0x4a9666(_0x5669f9){const _0x3b7572=_0x2fdff5;let _0x10c4ab='';return _0x5669f9[_0x3b7572(0x1ed4)]&&_0x5669f9['firstName']!==_0x5669f9['email']&&(_0x10c4ab+=_0x5669f9['firstName']+'\x20'),_0x5669f9['lastName']&&_0x5669f9[_0x3b7572(0xee4)]!==_0x5669f9[_0x3b7572(0x1a2b)]&&(_0x10c4ab+=_0x5669f9[_0x3b7572(0xee4)]+'\x20'),_0x10c4ab+='<'+_0x5669f9['email']+'>';}function _0x3b9dc0(_0x1dc5f4,_0x58aeca){const _0x9daa69=_0x2fdff5;if(_0x3f65c0()[_0x9daa69(0x1a1e)](_0x1dc5f4))return _0x4b4676[_0x9daa69(0x1662)]=_0x1dc5f4,_0x1dc5f4[_0x9daa69(0x1a2b)];if(_0x3f65c0()[_0x9daa69(0x54e)](_0x1dc5f4)){if(_0x52c04d(_0x1dc5f4))return _0x4b4676[_0x9daa69(0x1662)]={'email':_0x1dc5f4},_0x1dc5f4;else{const _0x4cb5cc=_0x1dc5f4[_0x9daa69(0x10c8)](',');for(let _0x5c4025=0x0;_0x5c4025<_0x4cb5cc[_0x9daa69(0x402)];_0x5c4025+=0x1){_0x52c04d(_0x4cb5cc[_0x5c4025])?_0x3f65c0()['isArray'](_0x58aeca)&&_0x3f65c0()[_0x9daa69(0x172b)](_0x58aeca,_0x4cb5cc[_0x5c4025])<0x0&&_0x58aeca[_0x9daa69(0x1f47)](_0x4cb5cc[_0x5c4025]):_0x51435c[_0x9daa69(0x1980)](_0x9daa69(0x21a4)+_0x4cb5cc[_0x5c4025]+_0x9daa69(0x1cfa));}return _0x4b4676[_0x9daa69(0x1662)]={'email':_0x1dc5f4[_0x9daa69(0x10c8)](',')[0x0]},null;}}return _0x51435c[_0x9daa69(0x1980)](_0x9daa69(0x1a06)),null;}function _0x56186e(_0x3567f4){const _0x34a70a=_0x2fdff5;return _0x1b4ac5&&_0x1b4ac5[_0x34a70a(0xb7c)]?_0x14bebb['cmContact']['get']({'ListId':_0x1b4ac5[_0x34a70a(0xb7c)],'nolimit':!![],'filter':_0x3567f4,'fields':_0x34a70a(0x156d)})[_0x34a70a(0x2945)][_0x34a70a(0x146b)](function(_0x209255){const _0x2ab2fc=_0x34a70a;return _0x209255[_0x2ab2fc(0x19c7)];}):[];}function _0x387ad7(){const _0x14944c=_0x2fdff5;_0x4b4676['message'][_0x14944c(0x1703)]=!![],_0x4b4676['draft']=_0x3ce15e['getByInteraction'](_0xd2060e['id']);const _0x947f56={'account':_0x1b4ac5,'message':_0x4b4676[_0x14944c(0x7fd)],'contact':_0x4b4676[_0x14944c(0x1662)],'interaction':_0xd2060e};if(_0x4b4676[_0x14944c(0x1d96)]&&!_0x4b4676['isDraft']){const _0x2b93f6=_0x59e958[_0x14944c(0x1e8a)]({'skipHide':!![]})[_0x14944c(0x1189)](_0x18cfda[_0x14944c(0xde)](_0x14944c(0x4f2)))[_0x14944c(0x80f)](_0x18cfda[_0x14944c(0xde)](_0x14944c(0x2154)))['ariaLabel'](_0x14944c(0xa5a))['ok'](_0x18cfda[_0x14944c(0xde)](_0x14944c(0x20ad)))[_0x14944c(0x6c3)](_0x18cfda[_0x14944c(0xde)](_0x14944c(0x1161)));_0x59e958[_0x14944c(0x2615)](_0x2b93f6)['then'](function(){_0x59e958['hide'](_0x947f56);});}else _0x59e958[_0x14944c(0x2458)](_0x947f56);}function _0x2b407d(){const _0x423cdc=_0x2fdff5;_0x59e958[_0x423cdc(0x6c3)]();}function _0x52c04d(_0x6d1e77){const _0x2f401e=_0x2fdff5,_0x3821a6=/^(([^<>()[\]\\.,;:\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 _0x3821a6[_0x2f401e(0x1e1e)](_0x6d1e77);}function _0x4a94c3(_0x48971a){const _0x529cc1=_0x2fdff5,_0x13f5eb=/]*>([^]*)<\/body/m,_0xb435c2=_0x48971a[_0x529cc1(0xf6c)](_0x13f5eb);if(_0xb435c2)return _0xb435c2[0x1];return _0x48971a;}function _0x1079bd(){const _0x1ece34=_0x2fdff5;if(_0x3f65c0()[_0x1ece34(0x1b36)](_0x1b4ac5[_0x1ece34(0x1928)]))return'';try{const _0xe19fca=_0x3f65c0()['template'](_0x1b4ac5[_0x1ece34(0x1928)]),_0x38d53c={'user':_0x4b4676[_0x1ece34(0x2321)],'account':_0x1b4ac5,'interaction':_0xd2060e,'contact':_0xd2060e&&_0xd2060e[_0x1ece34(0x364)]?_0xd2060e[_0x1ece34(0x364)]:{}};return _0xe19fca(_0x38d53c);}catch(_0x5ce2ee){return console[_0x1ece34(0x1980)](_0x5ce2ee),'';}}function _0x411a0f(){const _0x5b58dd=_0x2fdff5;return _0x5b58dd(0x18b0)+_0x1b4ac5[_0x5b58dd(0x2138)]+_0x5b58dd(0xa86)+_0x1b4ac5['fontSize']+_0x5b58dd(0x83d)+_0x1079bd()+'';}function _0x2fe177(_0x46fc76){const _0x49235a=_0x2fdff5;let _0x202941=_0x49235a(0x17bc);switch(_0x46fc76){case _0x49235a(0x512):case _0x49235a(0x1600):_0x202941+=_0x4b4676[_0x49235a(0x1ce5)]({'date':_0x2deec6()(_0x1fffa5[_0x49235a(0xc68)])[_0x49235a(0x22b0)](_0x49235a(0xa45))||'','time':_0x2deec6()(_0x1fffa5[_0x49235a(0xc68)])[_0x49235a(0x22b0)](_0x49235a(0x28b4))||'','from':_0x3f65c0()[_0x49235a(0xac6)](_0x1fffa5[_0x49235a(0xfa5)])||''});break;case _0x49235a(0x1218):_0x202941+=_0x4b4676[_0x49235a(0x462)]({'date':_0x2deec6()(_0x1fffa5['createdAt'])[_0x49235a(0x22b0)](_0x49235a(0xa45))||'','time':_0x2deec6()(_0x1fffa5['createdAt'])[_0x49235a(0x22b0)](_0x49235a(0x28b4))||'','from':_0x3f65c0()[_0x49235a(0xac6)](_0x1fffa5[_0x49235a(0xfa5)])||'','to':_0x3f65c0()['escape'](_0x1fffa5['to'])||'','subject':_0x3f65c0()[_0x49235a(0xac6)](_0x1fffa5[_0x49235a(0xe32)])||''});break;}const _0x561365=_0x4b4676[_0x49235a(0x7fd)]['showLastMessage']&&_0x1fffa5[_0x49235a(0x2c4)]?_0x1fffa5['originalMessage'][_0x49235a(0x2586)]:_0x1fffa5[_0x49235a(0x2586)];return _0x202941+=_0x49235a(0x1830),_0x202941+=_0x4a94c3(_0x561365?_0x3f65c0()[_0x49235a(0x5f4)](_0x561365,_0x49235a(0x9a4),'';}function _0x2c8902(_0x5b1c45){const _0x422562=_0x332945,_0x2d6f0f=_0x5b1c45;if(_0x3f65c0()[_0x422562(0x1a1e)](_0x2d6f0f))return _0x5b1c45[_0x105f4b['mapKey']];return _0x2d6f0f;}function _0x4daea0(_0x5df3ab){const _0x166622=_0x332945;if(_0x105f4b&&_0x105f4b[_0x166622(0xb7c)]){let _0x367a2d=_0x166622(0xfb6);return _0x105f4b[_0x166622(0xb2a)]&&(_0x367a2d+=','+_0x105f4b[_0x166622(0xb2a)]),_0x2f669c[_0x166622(0x18c3)][_0x166622(0x16b4)]({'ListId':_0x105f4b['ListId'],'nolimit':!![],'filter':_0x5df3ab,'fields':_0x367a2d})[_0x166622(0x2945)][_0x166622(0x146b)](function(_0x25c3f8){const _0x2a7ac3=_0x166622;return _0x25c3f8[_0x2a7ac3(0x19c7)];});}return[];}function _0xc1f2f9(){_0x22de4d['cancel']();}function _0x72231d(){const _0x1bb7b1=_0x332945;_0x592eac[_0x1bb7b1(0xaf0)]=!![];}function _0x21a8fc(){const _0x3a4faa=_0x332945;_0x592eac[_0x3a4faa(0x7fd)][_0x3a4faa(0x2586)]&&_0x22de4d[_0x3a4faa(0x2458)]({'secret':!![],'body':_0x592eac[_0x3a4faa(0x7fd)][_0x3a4faa(0x2586)]});}}const _0x2979c2=_0xc1c05c;;_0x42be68[_0x313a4d(0x11c2)]=[_0x313a4d(0x23df),_0x313a4d(0x1abe),_0x313a4d(0x1aa9),_0x313a4d(0x10e8),'$mdConstant',_0x313a4d(0x1f8e),'message',_0x313a4d(0x1142),_0x313a4d(0x247f),_0x313a4d(0x1fe4),'$q',_0x313a4d(0x214b),'Auth'];function _0x42be68(_0x448b89,_0x13fff4,_0x4662f2,_0x12197f,_0x411ec2,_0x5f042f,_0x971679,_0x79cd7f,_0x24d1da,_0x1be20a,_0x24d915,_0x50d39b,_0x1fc2ca){const _0x56035f=_0x313a4d,_0x5207b2=this;_0x5207b2[_0x56035f(0x2321)]=_0x1fc2ca[_0x56035f(0xb12)](),_0x5207b2['errors']=[],_0x5207b2[_0x56035f(0x20e5)]=[_0x411ec2[_0x56035f(0x1c3f)][_0x56035f(0xf18)],_0x411ec2[_0x56035f(0x1c3f)][_0x56035f(0x19b8)],_0x411ec2[_0x56035f(0x1c3f)][_0x56035f(0x1556)]],_0x5207b2[_0x56035f(0x1ef1)]=_0x3683f0,_0x5207b2[_0x56035f(0x265e)]=_0x2be2cf,_0x5207b2[_0x56035f(0xd38)]=_0x1c0f6f,_0x5207b2[_0x56035f(0x11ea)]=_0x40c562,_0x5207b2['ctrlMethods']={},_0x5207b2[_0x56035f(0x7fd)]={'from':_0x5f042f[_0x56035f(0x1d55)],'to':_0x3f65c0()['isNil'](_0x971679['to'])||_0x3f65c0()[_0x56035f(0x2635)](_0x971679['to'])?[]:_0x971679['to'],'body':''},_0x5207b2[_0x56035f(0x1443)]=_0x1356b0,_0x5207b2[_0x56035f(0x1d90)]=_0x1f3617,_0x5207b2[_0x56035f(0x13f3)]=_0x240570,_0x5207b2[_0x56035f(0x1384)]=_0x37c456,_0x5207b2[_0x56035f(0x2369)]=_0x20ebea;switch(_0x79cd7f){case _0x56035f(0xd38):_0x5207b2['note']();break;}function _0x1da0cd(_0x54f472){const _0x44cc3b=_0x56035f;_0x12197f[_0x44cc3b(0x2458)]({'to':_0x5207b2['message']['to'][_0x44cc3b(0xb47)](','),'body':_0x54f472});}function _0x1356b0(){const _0xfa9013=_0x56035f;_0x5207b2[_0xfa9013(0x7fd)]['to']&&_0x5207b2['message'][_0xfa9013(0x2586)]&&(_0x5207b2[_0xfa9013(0x7fd)]['to']['length']?_0x1da0cd(_0x5207b2[_0xfa9013(0x7fd)]['body']):_0x1be20a['error'](_0xfa9013(0x611)));}function _0x2be2cf(_0x530e17){const _0x469a35=_0x56035f;if(_0x530e17){try{_0x3f65c0()[_0x469a35(0x1294)][_0x469a35(0x1687)]=/{{([\s\S]+?)}}/g;const _0x3e4159=_0x3f65c0()[_0x469a35(0x1928)](_0x530e17[_0x469a35(0x175d)]),_0x4fbb80={'user':_0x5207b2[_0x469a35(0x2321)],'account':_0x5f042f};_0x5207b2[_0x469a35(0x7fd)][_0x469a35(0x2586)]+='\x20'+_0x3e4159(_0x4fbb80),_0x5207b2[_0x469a35(0x1e5b)][_0x469a35(0xa0d)](_0x5207b2[_0x469a35(0x7fd)]['body']);}catch(_0x2dbc84){_0x5207b2[_0x469a35(0x7fd)]['body']+='\x20'+_0x530e17[_0x469a35(0x175d)],_0x5207b2['ctrlMethods'][_0x469a35(0xa0d)](_0x5207b2['message']['body']);}_0x5207b2[_0x469a35(0xdab)]=null;}}function _0x3683f0(_0x5a8e85){const _0x1335c1=_0x56035f,_0x358343=_0x24d915[_0x1335c1(0xce3)]();let _0x1a3258=[];return _0x24d1da['cannedAnswer'][_0x1335c1(0x16b4)]({'filter':_0x5a8e85,'SmsAccountId':_0x5f042f['id']})[_0x1335c1(0x2945)][_0x1335c1(0x146b)](function(_0x325be0){const _0x590554=_0x1335c1;return _0x1a3258=_0x3f65c0()[_0x590554(0x163c)](_0x1a3258,_0x325be0[_0x590554(0x19c7)]),_0x24d1da['cannedAnswer']['get']({'filter':_0x5a8e85})[_0x590554(0x2945)];})['then'](function(_0x2fa625){const _0x3e9caa=_0x1335c1;_0x1a3258=_0x3f65c0()['concat'](_0x1a3258,_0x3f65c0()[_0x3e9caa(0x1dd6)](_0x2fa625[_0x3e9caa(0x19c7)],function(_0xebe1e6){const _0x231497=_0x3e9caa;return!_0xebe1e6[_0x231497(0x658)]&&!_0xebe1e6[_0x231497(0x74d)]&&!_0xebe1e6[_0x231497(0x1481)]&&!_0xebe1e6['OpenchannelAccountId']&&!_0xebe1e6['ChatWebsiteId'];})),_0x358343[_0x3e9caa(0x2922)](_0x1a3258);})[_0x1335c1(0x129e)](function(_0x297d8f){const _0x4603cf=_0x1335c1;_0x358343[_0x4603cf(0xa6f)](_0x297d8f);}),_0x358343[_0x1335c1(0xb9c)];}function _0x1f3617(_0x17ebb1){const _0x2172ca=_0x56035f;let _0x314be6='';return _0x17ebb1[_0x2172ca(0x1ed4)]&&_0x17ebb1[_0x2172ca(0x1ed4)]!==_0x17ebb1[_0x2172ca(0xa4b)]&&(_0x314be6+=_0x17ebb1[_0x2172ca(0x1ed4)]+'\x20'),_0x17ebb1[_0x2172ca(0xee4)]&&_0x17ebb1[_0x2172ca(0xee4)]!==_0x17ebb1[_0x2172ca(0xa4b)]&&(_0x314be6+=_0x17ebb1[_0x2172ca(0xee4)]+'\x20'),_0x314be6+='<'+_0x17ebb1[_0x2172ca(0xa4b)]+'>';}function _0x20ebea(_0x470ecf){const _0x1f9c32=_0x56035f,_0x2f0492=_0x470ecf;if(_0x3f65c0()[_0x1f9c32(0x1a1e)](_0x2f0492))return _0x470ecf[_0x1f9c32(0xa4b)];if(_0x26808b(_0x2f0492))return _0x2f0492;return _0x1be20a[_0x1f9c32(0x1980)](_0x1f9c32(0x57a)+_0x2f0492+_0x1f9c32(0x1cfa)),null;}function _0x37c456(_0xed70df){const _0x47e3b9=_0x56035f;if(_0x5f042f&&_0x5f042f[_0x47e3b9(0xb7c)])return _0x24d1da['cmContact']['get']({'ListId':_0x5f042f[_0x47e3b9(0xb7c)],'nolimit':!![],'filter':_0xed70df,'fields':_0x47e3b9(0x81a)})[_0x47e3b9(0x2945)][_0x47e3b9(0x146b)](function(_0x5a837c){return _0x5a837c['rows'];});return[];}function _0x240570(){_0x12197f['cancel']();}function _0x26808b(_0x43fb3c){const _0x467267=_0x56035f,_0x49c428=/^(\+|\d)[0-9]{7,16}$/;return _0x49c428[_0x467267(0x1e1e)](_0x43fb3c);}function _0x1c0f6f(){const _0x3ba017=_0x56035f;_0x5207b2[_0x3ba017(0xaf0)]=!![];}function _0x40c562(){const _0x5afec7=_0x56035f;_0x5207b2['message'][_0x5afec7(0x2586)]&&_0x12197f[_0x5afec7(0x2458)]({'secret':!![],'body':_0x5207b2[_0x5afec7(0x7fd)][_0x5afec7(0x2586)]});}}const _0x4f874e=_0x42be68;;_0x5b3612[_0x313a4d(0x11c2)]=['$cookies',_0x313a4d(0x1abe),_0x313a4d(0x1aa9),_0x313a4d(0x10e8),_0x313a4d(0x27e8),_0x313a4d(0x1f8e),_0x313a4d(0x7fd),'type',_0x313a4d(0x247f),_0x313a4d(0x1fe4),'$q','$translate',_0x313a4d(0xa87)];function _0x5b3612(_0x4bcac3,_0x4989ce,_0x37b7c6,_0x1d7c61,_0x3f5721,_0x4fbf9d,_0x4f79b8,_0x11d6eb,_0x71847a,_0x326137,_0x380971,_0x4a87d9,_0x3843eb){const _0x5cadcd=_0x313a4d,_0x5d45b1=this;_0x5d45b1[_0x5cadcd(0x2321)]=_0x3843eb[_0x5cadcd(0xb12)](),_0x5d45b1['errors']=[],_0x5d45b1[_0x5cadcd(0x20e5)]=[_0x3f5721[_0x5cadcd(0x1c3f)][_0x5cadcd(0xf18)],_0x3f5721[_0x5cadcd(0x1c3f)]['COMMA'],_0x3f5721[_0x5cadcd(0x1c3f)][_0x5cadcd(0x1556)]],_0x5d45b1[_0x5cadcd(0x1ef1)]=_0x544822,_0x5d45b1['selectedItemChange']=_0x579a4e,_0x5d45b1[_0x5cadcd(0xd38)]=_0x4a13d2,_0x5d45b1[_0x5cadcd(0x11ea)]=_0x20650f,_0x5d45b1['ctrlMethods']={},_0x5d45b1[_0x5cadcd(0x7fd)]={'from':_0x4fbf9d[_0x5cadcd(0x1d55)],'to':_0x3f65c0()[_0x5cadcd(0x1b36)](_0x4f79b8['to'])||_0x3f65c0()['isEmpty'](_0x4f79b8['to'])?[]:_0x4f79b8['to'],'body':''},_0x5d45b1[_0x5cadcd(0x1443)]=_0x48f51e,_0x5d45b1[_0x5cadcd(0x1d90)]=_0x5aa3ef,_0x5d45b1['closeDialog']=_0xbc451b,_0x5d45b1['contactSearch']=_0x5c8ddb,_0x5d45b1['transformContact']=_0x5240ec;switch(_0x11d6eb){case'note':_0x5d45b1[_0x5cadcd(0xd38)]();break;}function _0x447bfa(_0x31b734){const _0x251c9f=_0x5cadcd;_0x1d7c61[_0x251c9f(0x2458)]({'to':_0x5d45b1[_0x251c9f(0x7fd)]['to']['join'](','),'body':_0x31b734});}function _0x48f51e(){const _0x1916e7=_0x5cadcd;_0x5d45b1[_0x1916e7(0x7fd)]['to']&&_0x5d45b1[_0x1916e7(0x7fd)][_0x1916e7(0x2586)]&&(_0x5d45b1[_0x1916e7(0x7fd)]['to'][_0x1916e7(0x402)]?_0x447bfa(_0x5d45b1[_0x1916e7(0x7fd)][_0x1916e7(0x2586)]):_0x326137[_0x1916e7(0x1980)](_0x1916e7(0x611)));}function _0x579a4e(_0x11b8f7){const _0x4b0534=_0x5cadcd;if(_0x11b8f7){try{_0x3f65c0()[_0x4b0534(0x1294)][_0x4b0534(0x1687)]=/{{([\s\S]+?)}}/g;const _0x58d550=_0x3f65c0()[_0x4b0534(0x1928)](_0x11b8f7[_0x4b0534(0x175d)]),_0x396e3c={'user':_0x5d45b1[_0x4b0534(0x2321)],'account':_0x4fbf9d};_0x5d45b1['message'][_0x4b0534(0x2586)]+='\x20'+_0x58d550(_0x396e3c),_0x5d45b1[_0x4b0534(0x1e5b)][_0x4b0534(0xa0d)](_0x5d45b1['message']['body']);}catch(_0x2f3af6){_0x5d45b1['message'][_0x4b0534(0x2586)]+='\x20'+_0x11b8f7[_0x4b0534(0x175d)],_0x5d45b1[_0x4b0534(0x1e5b)][_0x4b0534(0xa0d)](_0x5d45b1[_0x4b0534(0x7fd)]['body']);}_0x5d45b1[_0x4b0534(0xdab)]=null;}}function _0x544822(_0x2857c7){const _0x55b00b=_0x5cadcd,_0x274023=_0x380971[_0x55b00b(0xce3)]();let _0xc9061d=[];return _0x71847a[_0x55b00b(0x1ada)][_0x55b00b(0x16b4)]({'filter':_0x2857c7,'WhatsappAccountId':_0x4fbf9d['id']})[_0x55b00b(0x2945)]['then'](function(_0x5e6420){const _0x45ab2f=_0x55b00b;return _0xc9061d=_0x3f65c0()['concat'](_0xc9061d,_0x5e6420[_0x45ab2f(0x19c7)]),_0x71847a[_0x45ab2f(0x1ada)][_0x45ab2f(0x16b4)]({'filter':_0x2857c7})[_0x45ab2f(0x2945)];})['then'](function(_0x34d4c0){const _0x11862d=_0x55b00b;_0xc9061d=_0x3f65c0()[_0x11862d(0x163c)](_0xc9061d,_0x3f65c0()['filter'](_0x34d4c0['rows'],function(_0x532d28){const _0x3edb66=_0x11862d;return!_0x532d28[_0x3edb66(0x658)]&&!_0x532d28['FaxAccountId']&&!_0x532d28['WhatsappAccountId']&&!_0x532d28[_0x3edb66(0x534)]&&!_0x532d28[_0x3edb66(0x1d92)];})),_0x274023[_0x11862d(0x2922)](_0xc9061d);})['catch'](function(_0x277ec5){_0x274023['reject'](_0x277ec5);}),_0x274023[_0x55b00b(0xb9c)];}function _0x5aa3ef(_0x195055){const _0x1ef572=_0x5cadcd;let _0x29d195='';return _0x195055[_0x1ef572(0x1ed4)]&&_0x195055[_0x1ef572(0x1ed4)]!==_0x195055[_0x1ef572(0xa4b)]&&(_0x29d195+=_0x195055['firstName']+'\x20'),_0x195055[_0x1ef572(0xee4)]&&_0x195055[_0x1ef572(0xee4)]!==_0x195055[_0x1ef572(0xa4b)]&&(_0x29d195+=_0x195055[_0x1ef572(0xee4)]+'\x20'),_0x29d195+='<'+_0x195055[_0x1ef572(0xa4b)]+'>';}function _0x5240ec(_0x15e8d5){const _0x1fb997=_0x5cadcd,_0x1270f2=_0x15e8d5;if(_0x3f65c0()['isObject'](_0x1270f2))return _0x15e8d5['mobile'];if(_0x482bf2(_0x1270f2))return _0x1270f2;return _0x326137[_0x1fb997(0x1980)](_0x1fb997(0x57a)+_0x1270f2+_0x1fb997(0x1cfa)),null;}function _0x5c8ddb(_0x409c2e){const _0x5af843=_0x5cadcd;if(_0x4fbf9d&&_0x4fbf9d[_0x5af843(0xb7c)])return _0x71847a['cmContact'][_0x5af843(0x16b4)]({'ListId':_0x4fbf9d[_0x5af843(0xb7c)],'nolimit':!![],'filter':_0x409c2e,'fields':'firstName,lastName,mobile'})['$promise']['then'](function(_0x54ba63){const _0x3402b9=_0x5af843;return _0x54ba63[_0x3402b9(0x19c7)];});return[];}function _0xbc451b(){const _0x3a4581=_0x5cadcd;_0x1d7c61[_0x3a4581(0x6c3)]();}function _0x482bf2(_0xf6729d){const _0x1f66a4=_0x5cadcd,_0xae7cbe=/^(\+|\d)[0-9]{7,16}$/;return _0xae7cbe[_0x1f66a4(0x1e1e)](_0xf6729d);}function _0x4a13d2(){_0x5d45b1['secret']=!![];}function _0x20650f(){const _0x39b588=_0x5cadcd;_0x5d45b1['message']['body']&&_0x1d7c61[_0x39b588(0x2458)]({'secret':!![],'body':_0x5d45b1['message'][_0x39b588(0x2586)]});}}const _0x449643=_0x5b3612;;_0x261de0['$inject']=[_0x313a4d(0x10e8),_0x313a4d(0x1fe4),_0x313a4d(0x247f),_0x313a4d(0xe80),_0x313a4d(0x2894),_0x313a4d(0xe7b),_0x313a4d(0x1909)];function _0x261de0(_0x5a0488,_0x1c5003,_0x4a6dc3,_0x3efb12,_0x56b37b,_0x52d841,_0x126f73){const _0x4d101e=_0x313a4d,_0xae2c8f=this;_0xae2c8f[_0x4d101e(0xcef)]=[],_0xae2c8f['dispositions']=[],_0xae2c8f[_0x4d101e(0xe80)]=angular['copy'](_0x3efb12);!_0xae2c8f['interaction']['disposition']&&(_0xae2c8f[_0x4d101e(0xe80)]['disposition']=null);_0xae2c8f['channel']=_0x56b37b,_0xae2c8f[_0x4d101e(0x161a)]=_0xae2c8f[_0x4d101e(0x2894)]+_0x4d101e(0x2297),_0xae2c8f['apiAccountRoute']=_0xae2c8f['channel']+(_0xae2c8f['channel']==='chat'?_0x4d101e(0x27f4):_0x4d101e(0xb48)),_0xae2c8f[_0x4d101e(0x2417)]=_0x3f65c0()[_0x4d101e(0x83f)](_0xae2c8f[_0x4d101e(0x2894)])+(_0xae2c8f[_0x4d101e(0x2894)]==='chat'?_0x4d101e(0x27f4):_0x4d101e(0xb48))+'Id',_0xae2c8f['firstLevelDisposition']=null,_0xae2c8f[_0x4d101e(0xc9e)]=![],_0xae2c8f[_0x4d101e(0x4ab)]='',_0xae2c8f[_0x4d101e(0x1488)]=_0x52d841[_0x4d101e(0x211c)]||_0x52d841[_0x4d101e(0x5f7)]||_0x52d841[_0x4d101e(0x1e9e)]||_0x52d841[_0x4d101e(0xcc5)]||_0x52d841[_0x4d101e(0x25c4)],_0xae2c8f[_0x4d101e(0x1216)]=_0x4cc5a0,_0xae2c8f[_0x4d101e(0xb7d)]=_0x2550f9,_0xae2c8f[_0x4d101e(0x2799)]=_0x10b2bc,_0xae2c8f[_0x4d101e(0x13f3)]=_0x4b329a;function _0x4efb3a(){const _0x20a9c7=_0x4d101e;let _0x17afed=[];const _0x414e5d={'fields':_0x20a9c7(0xe9b),'sort':_0x20a9c7(0x19eb),'nolimit':!![]};_0x414e5d[_0xae2c8f[_0x20a9c7(0x2417)]]=_0x3efb12[_0xae2c8f['accountProperty']],_0x4a6dc3[_0xae2c8f[_0x20a9c7(0x835)]]['get']({'id':_0x3efb12[_0xae2c8f['accountProperty']]})[_0x20a9c7(0x2945)][_0x20a9c7(0x146b)](function(_0x5f1d4c){const _0xe95d72=_0x20a9c7;return _0xae2c8f[_0xe95d72(0xc9e)]=_0x5f1d4c[_0xe95d72(0xc9e)],_0xae2c8f['mandatoryDisposition']&&(_0xae2c8f[_0xe95d72(0x4ab)]=_0x5f1d4c[_0xe95d72(0x4ab)][_0xe95d72(0x19eb)]),_0x4a6dc3[_0xe95d72(0x9e1)]['get'](_0x414e5d)[_0xe95d72(0x2945)];})['then'](function(_0x1c15af){const _0x3c2035=_0x20a9c7;return _0x1c15af[_0x3c2035(0x19c7)][_0x3c2035(0x402)]&&(_0x17afed=_0x3f65c0()[_0x3c2035(0x163c)](_0x17afed,_0x1c15af[_0x3c2035(0x19c7)])),_0x4a6dc3[_0x3c2035(0x9e1)]['get']({'MailAccountId':_0x3c2035(0x203c),'FaxAccountId':'null','SmsAccountId':_0x3c2035(0x203c),'WhatsappAccountId':_0x3c2035(0x203c),'OpenchannelAccountId':_0x3c2035(0x203c),'ChatWebsiteId':_0x3c2035(0x203c),'ListId':_0x3c2035(0x203c)})[_0x3c2035(0x2945)];})['then'](function(_0xa692fb){const _0x1c6f7a=_0x20a9c7;_0xa692fb[_0x1c6f7a(0x19c7)][_0x1c6f7a(0x402)]&&(_0x17afed=_0x3f65c0()[_0x1c6f7a(0x163c)](_0x17afed,_0xa692fb['rows']));})[_0x20a9c7(0x129e)](function(_0x512a97){const _0x4d5253=_0x20a9c7;console[_0x4d5253(0x1980)](_0x512a97);})[_0x20a9c7(0x1ec6)](function(){const _0x25e87d=_0x20a9c7;_0xae2c8f[_0x25e87d(0x2647)]=_0x3f65c0()[_0x25e87d(0x979)](_0x17afed,[_0x25e87d(0x19eb)],['asc']),_0x3021cb();});}function _0x3021cb(){const _0x12b637=_0x4d101e;_0xae2c8f[_0x12b637(0xc9e)]&&!_0xae2c8f[_0x12b637(0x1488)]&&_0x4a6dc3[_0x12b637(0xe7b)][_0x12b637(0x1e3e)]({'id':_0x52d841['id'],'type':_0xae2c8f[_0x12b637(0x4ab)]||_0x12b637(0x9ba)})['$promise'][_0x12b637(0x146b)](function(){})[_0x12b637(0x129e)](function(_0x24be49){console['error'](_0x24be49);});}function _0x4cc5a0(_0x457cab){const _0x18f187=_0x4d101e;if(_0x457cab===_0x18f187(0xb68)){_0xae2c8f[_0x18f187(0xf38)]=_0xae2c8f[_0x18f187(0xef2)]?_0x3f65c0()['some'](_0xae2c8f[_0x18f187(0x2647)],[_0x18f187(0x11b5),_0xae2c8f[_0x18f187(0xef2)]['id']]):![];if(!_0xae2c8f[_0x18f187(0xef2)])_0xae2c8f[_0x18f187(0x187a)]=undefined;}else _0x457cab==='second'&&(_0xae2c8f[_0x18f187(0x109b)]=_0x3f65c0()[_0x18f187(0x1360)](_0xae2c8f[_0x18f187(0x2647)],[_0x18f187(0x11b5),_0xae2c8f[_0x18f187(0x187a)]['id']]));}function _0x2550f9(_0x5ae88c){const _0x2d7e8b=_0x4d101e;if(_0x5ae88c===_0x2d7e8b(0xfe1))_0xae2c8f[_0x2d7e8b(0x187a)]=undefined,_0xae2c8f[_0x2d7e8b(0xc58)]=undefined;else _0x5ae88c===_0x2d7e8b(0xb15)&&(_0xae2c8f[_0x2d7e8b(0xc58)]=undefined);}function _0x10b2bc(){const _0xa5463c=_0x4d101e;_0xae2c8f[_0xa5463c(0xcef)]=[],_0xae2c8f['interaction']['UserId']=_0x52d841['id'],_0xae2c8f[_0xa5463c(0xe80)][_0xa5463c(0x1943)]=!![],_0xae2c8f['interaction'][_0xa5463c(0x11bc)]='agent',_0xae2c8f[_0xa5463c(0xe80)][_0xa5463c(0x9e1)]=_0xae2c8f[_0xa5463c(0xef2)]?_0xae2c8f[_0xa5463c(0xef2)][_0xa5463c(0x19eb)]:null,_0xae2c8f[_0xa5463c(0xe80)]['secondDisposition']=_0xae2c8f[_0xa5463c(0x187a)]?_0xae2c8f[_0xa5463c(0x187a)][_0xa5463c(0x19eb)]:undefined,_0xae2c8f['interaction'][_0xa5463c(0x1402)]=_0xae2c8f[_0xa5463c(0xc58)]?_0xae2c8f[_0xa5463c(0xc58)][_0xa5463c(0x19eb)]:undefined,_0x4a6dc3[_0xae2c8f['apiRoute']]?_0x4a6dc3[_0xae2c8f[_0xa5463c(0x161a)]][_0xa5463c(0x18e1)](_0x3f65c0()[_0xa5463c(0x40e)](_0xae2c8f['interaction'],[_0xa5463c(0x658),'FaxAccountId',_0xa5463c(0x1481),'WhatsappAccountId',_0xa5463c(0x1d92),_0xa5463c(0x534),_0xa5463c(0x1943),_0xa5463c(0x11bc),_0xa5463c(0x9e1),_0xa5463c(0xb5c),_0xa5463c(0x1402),'id',_0xa5463c(0xd38),_0xa5463c(0xea2)]))[_0xa5463c(0x2945)][_0xa5463c(0x146b)](function(_0x4dd4f5){const _0x4d25f4=_0xa5463c;_0xae2c8f[_0x4d25f4(0xe80)]=_0x4dd4f5,_0xae2c8f[_0x4d25f4(0x2894)]===_0x4d25f4(0x56b)&&_0x126f73['removeByInteraction'](_0xae2c8f[_0x4d25f4(0xe80)]['id']),_0x1c5003[_0x4d25f4(0x1c75)]({'title':_0x4d25f4(0x53b),'msg':'Interaction\x20has\x20been\x20closed!'});})[_0xa5463c(0x146b)](function(){_0x4b329a(!![]);})[_0xa5463c(0x129e)](function(_0x32a96d){const _0x291a8e=_0xa5463c;if(_0x32a96d[_0x291a8e(0x524)]&&_0x32a96d[_0x291a8e(0x524)][_0x291a8e(0xcef)]&&_0x32a96d[_0x291a8e(0x524)][_0x291a8e(0xcef)][_0x291a8e(0x402)]){_0xae2c8f[_0x291a8e(0xcef)]=_0x32a96d[_0x291a8e(0x524)]['errors']||[{'message':_0x32a96d[_0x291a8e(0xd5f)](),'type':_0x291a8e(0x343)}];for(let _0x118bc8=0x0;_0x118bc8<_0x32a96d[_0x291a8e(0x524)]['errors'][_0x291a8e(0x402)];_0x118bc8++){_0x1c5003[_0x291a8e(0x1980)]({'title':_0x32a96d[_0x291a8e(0x524)][_0x291a8e(0xcef)][_0x118bc8][_0x291a8e(0x1142)],'msg':_0x32a96d['data'][_0x291a8e(0xcef)][_0x118bc8]['message']});}}else _0x1c5003[_0x291a8e(0x1980)]({'title':_0x32a96d[_0x291a8e(0x107b)]?'API:'+_0x32a96d[_0x291a8e(0x107b)]+_0x291a8e(0x1315)+_0x32a96d['statusText']:_0x291a8e(0x343),'msg':_0x32a96d[_0x291a8e(0x524)]?JSON[_0x291a8e(0x10bb)](_0x32a96d[_0x291a8e(0x524)]['message']):_0x32a96d[_0x291a8e(0xd5f)]()});}):_0x4b329a(![]);}function _0x4b329a(_0x23631c){const _0x3e2bd4=_0x4d101e;_0x5a0488[_0x3e2bd4(0x2458)](_0x23631c);}_0x4efb3a();}const _0x74b870=_0x261de0;;_0x4496d0['$inject']=['$mdDialog',_0x313a4d(0x1fe4),_0x313a4d(0x247f),_0x313a4d(0xe80),_0x313a4d(0x2894),'tags'];function _0x4496d0(_0x2df46f,_0x1588eb,_0x190bed,_0x1d5b6b,_0x3250d7,_0x6d0f42){const _0x5b4896=_0x313a4d,_0x4cd214=this;_0x4cd214[_0x5b4896(0xcef)]=[],_0x4cd214[_0x5b4896(0x1b86)]=_0x6d0f42,_0x4cd214[_0x5b4896(0xe80)]=angular[_0x5b4896(0x235a)](_0x1d5b6b),_0x4cd214[_0x5b4896(0xe80)][_0x5b4896(0x2331)]=_0x3f65c0()[_0x5b4896(0x205)](_0x4cd214[_0x5b4896(0xe80)][_0x5b4896(0x2331)],function(_0x6d5345){const _0x499e43=_0x5b4896;return{'id':_0x6d5345['id'],'name':_0x6d5345[_0x499e43(0x19eb)],'color':_0x6d5345[_0x499e43(0x15bb)]};}),_0x4cd214[_0x5b4896(0x2894)]=_0x3250d7,_0x4cd214[_0x5b4896(0x1bf6)]=!![],_0x4cd214[_0x5b4896(0x236b)]=_0x43bdc8,_0x4cd214[_0x5b4896(0x13f3)]=_0x37b9fd,_0x4cd214[_0x5b4896(0x161a)]=_0x4cd214[_0x5b4896(0x2894)]+_0x5b4896(0x2297);function _0x43bdc8(){const _0x420ba0=_0x5b4896;_0x4cd214[_0x420ba0(0xcef)]=[];if(_0x190bed[_0x4cd214[_0x420ba0(0x161a)]])return _0x190bed[_0x4cd214['apiRoute']][_0x420ba0(0x22ad)]({'id':_0x4cd214[_0x420ba0(0xe80)]['id'],'ids':_0x3f65c0()[_0x420ba0(0x205)](_0x4cd214['interaction'][_0x420ba0(0x2331)],'id')})[_0x420ba0(0x2945)][_0x420ba0(0x146b)](function(){const _0x4f4745=_0x420ba0;_0x1588eb[_0x4f4745(0x1c75)]({'title':'Interaction\x20properly\x20tagged!','msg':_0x4f4745(0xf25)}),_0x1d5b6b[_0x4f4745(0x2331)]=_0x4cd214[_0x4f4745(0xe80)][_0x4f4745(0x2331)],_0x37b9fd(!![]);})[_0x420ba0(0x129e)](function(_0x27cb67){const _0x34a855=_0x420ba0;if(_0x27cb67[_0x34a855(0x524)]&&_0x27cb67[_0x34a855(0x524)][_0x34a855(0xcef)]&&_0x27cb67[_0x34a855(0x524)][_0x34a855(0xcef)][_0x34a855(0x402)])for(let _0x156cf8=0x0;_0x156cf8<_0x27cb67[_0x34a855(0x524)]['errors'][_0x34a855(0x402)];_0x156cf8+=0x1){_0x1588eb[_0x34a855(0x1980)]({'title':_0x27cb67[_0x34a855(0x524)]['errors'][_0x156cf8][_0x34a855(0x1142)],'msg':_0x27cb67[_0x34a855(0x524)][_0x34a855(0xcef)][_0x156cf8][_0x34a855(0x7fd)]});}else _0x1588eb[_0x34a855(0x1980)]({'title':_0x27cb67[_0x34a855(0x107b)]?'API:'+_0x27cb67[_0x34a855(0x107b)]+_0x34a855(0x1315)+_0x27cb67['statusText']:_0x34a855(0x343),'msg':_0x27cb67[_0x34a855(0x524)]?JSON[_0x34a855(0x10bb)](_0x27cb67[_0x34a855(0x524)][_0x34a855(0x7fd)]):_0x27cb67[_0x34a855(0xd5f)]()});});else _0x37b9fd(![]);}function _0x37b9fd(_0x40f29b){_0x2df46f['hide'](_0x40f29b);}}const _0x1ee1f0=_0x4496d0;;_0x1954d0[_0x313a4d(0x11c2)]=['$mdDialog',_0x313a4d(0x1abe),'Auth',_0x313a4d(0x247f),_0x313a4d(0x1fe4),_0x313a4d(0x2894),_0x313a4d(0x7fd),'account'];function _0x1954d0(_0x50c056,_0xc782da,_0x101634,_0x18aac0,_0x391f7d,_0x56d934,_0x5873d5,_0x4ab4f1){const _0x4e8093=_0x313a4d,_0x5735be=this;_0x5735be[_0x4e8093(0x2321)]=_0x101634[_0x4e8093(0xb12)](),_0x5735be[_0x4e8093(0x2894)]=_0x56d934[_0x4e8093(0x256e)](),_0x5735be[_0x4e8093(0x7fd)]=_0x5873d5,_0x5735be[_0x4e8093(0x1f8e)]=_0x4ab4f1,_0x5735be[_0x4e8093(0x15b)]={'id':0x0,'type':'queue'},_0x5735be[_0x4e8093(0x1b32)]={'count':0x0,'rows':[]},_0x5735be[_0x4e8093(0x23c0)]=_0x5735be['queues'],_0x5735be[_0x4e8093(0x4be)]=_0x5735be[_0x4e8093(0x2894)]+_0x4e8093(0xe26),_0x5735be[_0x4e8093(0xf3f)]=_0x5735be[_0x4e8093(0x2894)]+_0x4e8093(0x74b),_0x5735be[_0x4e8093(0x1e8e)]=_0x5d1e92,_0x5735be['closeDialog']=_0x1db0c6,_0x5735be[_0x4e8093(0x5aa)]=_0x29a8a1,_0x5735be[_0x4e8093(0x5aa)]();function _0x29a8a1(){const _0x3c5872=_0x4e8093;return _0x18aac0[_0x3c5872(0xe7b)]['get']({'fields':'id,name','role':_0x3c5872(0x1755),'sort':'name','nolimit':!![]})[_0x3c5872(0x2945)][_0x3c5872(0x146b)](function(_0xfe3436){const _0x381184=_0x3c5872;return _0x5735be[_0x381184(0x23c0)]=_0xfe3436||{'count':0x0,'rows':[]},_0x18aac0[_0x5735be['queueMethod']]['get']({'fields':_0x381184(0x7a7),'sort':_0x381184(0x19eb),'nolimit':!![]})['$promise'];})[_0x3c5872(0x146b)](function(_0xfe56c4){const _0xeb1806=_0x3c5872;_0x5735be[_0xeb1806(0x1b32)]=_0xfe56c4||{'count':0x0,'rows':[]};})[_0x3c5872(0x129e)](function(_0x1bff32){const _0x4dc795=_0x3c5872;console[_0x4dc795(0x1980)](_0x1bff32);});}function _0x1db0c6(_0xce0b8e){const _0x4f1544=_0x4e8093;_0x50c056[_0x4f1544(0x2458)](_0xce0b8e);}function _0x5d1e92(){_0x1db0c6(!![]),_0xc782da(function(){const _0x23b64a=a0_0x3bb9;return _0x18aac0[_0x23b64a(0x1af7)][_0x5735be['transfer'][_0x23b64a(0x1142)]==='agent'?_0x23b64a(0x2893):_0x5735be['queueNotifyMethod']]({'id':_0x5735be['transfer']['id'],'messageId':_0x5735be['message']['id'],'channel':_0x5735be[_0x23b64a(0x2894)]})['$promise'][_0x23b64a(0x146b)](function(){const _0x216d34=_0x23b64a;_0x391f7d[_0x216d34(0x1c75)]({'title':_0x216d34(0x3ee),'msg':_0x216d34(0x1ab6)+_0x5735be[_0x216d34(0x15b)][_0x216d34(0x1142)]+_0x216d34(0x98b)});})['catch'](function(_0x595beb){const _0x3ec371=_0x23b64a;if(_0x595beb[_0x3ec371(0x524)]&&_0x595beb[_0x3ec371(0x524)][_0x3ec371(0xcef)]&&_0x595beb[_0x3ec371(0x524)][_0x3ec371(0xcef)][_0x3ec371(0x402)]){_0x5735be['errors']=_0x595beb[_0x3ec371(0x524)][_0x3ec371(0xcef)]||[{'message':_0x595beb['toString'](),'type':_0x3ec371(0x1cae)}];for(let _0x434ffc=0x0;_0x434ffc<_0x595beb[_0x3ec371(0x524)][_0x3ec371(0xcef)][_0x3ec371(0x402)];_0x434ffc++){_0x391f7d['error']({'title':_0x595beb[_0x3ec371(0x524)][_0x3ec371(0xcef)][_0x434ffc][_0x3ec371(0x1142)],'msg':_0x595beb['data'][_0x3ec371(0xcef)][_0x434ffc][_0x3ec371(0x7fd)]});}}else _0x391f7d['error']({'title':_0x595beb[_0x3ec371(0x107b)]?'API:'+_0x595beb['status']+_0x3ec371(0x1315)+_0x595beb[_0x3ec371(0x167f)]:'api.rpc.notify','msg':_0x595beb[_0x3ec371(0x524)]?JSON[_0x3ec371(0x10bb)](_0x595beb[_0x3ec371(0x524)][_0x3ec371(0x7fd)]):_0x595beb[_0x3ec371(0xd5f)]()});});},0x1388);}}const _0x1b279d=_0x1954d0;;_0x4f41ae[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),'$q',_0x313a4d(0x10e8),_0x313a4d(0x25c8),'api',_0x313a4d(0x1fe4),_0x313a4d(0xa87),'$translate',_0x313a4d(0x1fc2),_0x313a4d(0x1abe),_0x313a4d(0x216c)];function _0x4f41ae(_0x360097,_0x2d1588,_0x41c2ff,_0x3609a1,_0x576f21,_0x1d34f4,_0x3cdb5c,_0x39b60f,_0x35cfeb,_0x59c2b7,_0x39c217){const _0x100943=_0x313a4d,_0x47f1b5=this;_0x47f1b5[_0x100943(0x3dc)]={},_0x47f1b5['showResetButton']=!![],_0x47f1b5[_0x100943(0x49b)]=![],_0x47f1b5[_0x100943(0x17dc)]=_0x39c217[_0x100943(0x17dc)](),_0x47f1b5[_0x100943(0xb9f)]=_0x3216b3,_0x47f1b5[_0x100943(0x155f)]=_0x44c9d0,_0x47f1b5[_0x100943(0xc87)]=_0x15de95,_0x47f1b5['getResponseSheet']=_0x146b99,_0x47f1b5['getResponseSheetRow']=_0x2789fa,_0x47f1b5['getResponseSheetHeaders']=_0x2eabba,_0x47f1b5[_0x100943(0x1c89)]=_0x4927f6,_0x47f1b5['init']=_0x98fca5,_0x47f1b5[_0x100943(0xe50)]=function(_0x41a3c7){const _0x46d740=_0x100943;if(_0x47f1b5['formViewer'][_0x46d740(0x2450)]){const _0x31e4ed=_0x41c2ff['confirm']()[_0x46d740(0x1189)](_0x39b60f[_0x46d740(0xde)](_0x46d740(0x2344)))[_0x46d740(0x80f)](_0x39b60f['instant'](_0x46d740(0x1071)))['textContent']('')[_0x46d740(0x4bd)]('survey')[_0x46d740(0x1f27)](_0x41a3c7)['ok'](_0x39b60f[_0x46d740(0xde)](_0x46d740(0x2ea)))[_0x46d740(0x6c3)](_0x39b60f[_0x46d740(0xde)](_0x46d740(0x7dc)));_0x41c2ff[_0x46d740(0x2615)](_0x31e4ed)[_0x46d740(0x146b)](function(){const _0x1b6bcc=_0x46d740;_0x47f1b5[_0x1b6bcc(0x49b)]=![],_0x47f1b5[_0x1b6bcc(0x9e0)]['currentPage']=undefined,_0x2dc780(),_0x47f1b5['formViewer']['reset']();});}};function _0x2dc780(){const _0x5b391c=_0x100943;try{_0x360097[_0x5b391c(0x2870)][_0x5b391c(0x2870)][_0x5b391c(0x2870)]['vm'][_0x5b391c(0x85a)]();}catch(_0x469f9c){_0x1d34f4['error']({'title':'ERROR\x20UPDATE\x20LOCAL\x20TABS','msg':_0x5b391c(0x1b2c)});}}function _0x98fca5(_0xdbf1e4){const _0x4b2912=_0x100943;_0x47f1b5[_0x4b2912(0x13a3)]=_0xdbf1e4;if(_0x47f1b5[_0x4b2912(0x13a3)]){_0x47f1b5[_0x4b2912(0x133b)]=_0x47f1b5[_0x4b2912(0x13a3)][_0x4b2912(0x133b)],_0x47f1b5[_0x4b2912(0x112)]=_0x47f1b5[_0x4b2912(0x13a3)]['openedAt'],_0x47f1b5['contact']=_0x47f1b5[_0x4b2912(0x13a3)][_0x4b2912(0x1662)],_0x47f1b5['project']=_0x47f1b5[_0x4b2912(0x13a3)][_0x4b2912(0x9e0)];if(_0x47f1b5[_0x4b2912(0x9e0)]){if(_0x3f65c0()[_0x4b2912(0x18a2)](_0x47f1b5[_0x4b2912(0x9e0)][_0x4b2912(0x21e6)])){}else _0x47f1b5[_0x4b2912(0xc87)](_0x47f1b5['project']['formData'])?_0x47f1b5[_0x4b2912(0x9e0)][_0x4b2912(0x21e6)]=JSON[_0x4b2912(0x975)](_0x47f1b5['project'][_0x4b2912(0x21e6)]):_0x47f1b5[_0x4b2912(0x9e0)][_0x4b2912(0x21e6)]=undefined;_0x47f1b5['project'][_0x4b2912(0x2719)]=_0x47f1b5[_0x4b2912(0x9e0)][_0x4b2912(0x2719)]||{},_0x47f1b5[_0x4b2912(0x9e0)][_0x4b2912(0x292)]!==undefined&&_0x59c2b7(function(){const _0x2040c5=_0x4b2912;_0x35cfeb['$broadcast'](_0x2040c5(0xedc),{'page':_0x47f1b5[_0x2040c5(0x9e0)][_0x2040c5(0x292)]});}),_0x360097['$on'](_0x4b2912(0xa54),function(_0x3c3bea,_0x3e108c){const _0xae3518=_0x4b2912;if(_0x3e108c[_0xae3518(0x292)]){_0x47f1b5[_0xae3518(0x9e0)][_0xae3518(0x292)]=_0x3e108c['currentPage'][_0xae3518(0x181)]-0x1,_0x2dc780();_0x47f1b5[_0xae3518(0x9e0)][_0xae3518(0x310)]&&(_0x3e108c['currentPage'][_0xae3518(0x181)]>=0x1&&_0x3e108c[_0xae3518(0x292)][_0xae3518(0x181)]<_0x47f1b5[_0xae3518(0x9e0)]['formData'][_0xae3518(0x28cc)][_0xae3518(0x402)]?_0x47f1b5[_0xae3518(0x49b)]=!![]:_0x47f1b5[_0xae3518(0x49b)]=![]);if(_0x47f1b5[_0xae3518(0x9e0)]['formData']&&_0x47f1b5['project'][_0xae3518(0x21e6)][_0xae3518(0x28cc)])for(let _0xc1718e=0x0,_0x3f06b7=_0x47f1b5[_0xae3518(0x9e0)]['formData'][_0xae3518(0x28cc)]['length'];_0xc1718e<_0x3f06b7;_0xc1718e++){if(_0x3e108c[_0xae3518(0x292)][_0xae3518(0x181)]<_0xc1718e+0x1&&_0x47f1b5[_0xae3518(0x9e0)]['formData']['pages'][_0xc1718e][_0xae3518(0x1aa7)])for(let _0x3f8a84=0x0,_0x2ae4f2=_0x47f1b5['project'][_0xae3518(0x21e6)][_0xae3518(0x28cc)][_0xc1718e]['elements'][_0xae3518(0x402)];_0x3f8a84<_0x2ae4f2;_0x3f8a84++){_0x47f1b5[_0xae3518(0x9e0)]['formData']['pages'][_0xc1718e][_0xae3518(0x1aa7)][_0x3f8a84][_0xae3518(0x1142)]===_0xae3518(0x1246)&&_0x47f1b5[_0xae3518(0x9e0)][_0xae3518(0x21e6)]['pages'][_0xc1718e][_0xae3518(0x1aa7)][_0x3f8a84]['question']&&delete _0x47f1b5['project'][_0xae3518(0x2719)][_0x47f1b5[_0xae3518(0x9e0)]['formData'][_0xae3518(0x28cc)][_0xc1718e][_0xae3518(0x1aa7)][_0x3f8a84][_0xae3518(0x1246)]['id']];}}}});}}}function _0x15de95(_0x3edafa){const _0x36d1eb=_0x100943;if(_0x3f65c0()[_0x36d1eb(0x1b36)](_0x3edafa))return![];try{JSON[_0x36d1eb(0x975)](_0x3edafa);}catch(_0x5abe41){return![];}return!![];}function _0x44c9d0(_0x1f1cef,_0x553f0c){const _0xaf59b6=_0x100943;try{_0x360097[_0xaf59b6(0x2870)][_0xaf59b6(0x2870)][_0xaf59b6(0x2870)]['vm']['addContactTab'](_0x553f0c);}catch(_0x560f06){_0x1d34f4[_0xaf59b6(0x1980)]({'title':_0xaf59b6(0x206c),'msg':_0xaf59b6(0x1caf)});}}function _0x233103(_0x8ec269){const _0x466869=_0x100943,_0x149bb4=_0x2d1588[_0x466869(0xce3)]();return _0x47f1b5[_0x466869(0x9e0)][_0x466869(0x563)]?_0x576f21[_0x466869(0xe7b)][_0x466869(0x974)]({'id':_0x8ec269['id']})[_0x466869(0x2945)]['then'](function(){_0x149bb4['resolve']();})['catch'](function(){const _0x57723c=_0x466869;console['log'](_0x57723c(0xa36)),_0x149bb4['resolve']();}):_0x149bb4[_0x466869(0x2922)](),_0x149bb4[_0x466869(0xb9c)];}function _0x37bd28(_0x3d8074,_0x2d1dde){const _0xa1a01=_0x100943,_0x2081b8=[],_0x55f959=[],_0x487cf7=_0x3cdb5c[_0xa1a01(0xb12)]();_0x233103(_0x487cf7)[_0xa1a01(0x146b)](function(){const _0x1c18e1=_0xa1a01;return _0x576f21[_0x1c18e1(0x468)][_0x1c18e1(0x1e3)]({'starttime':_0x47f1b5[_0x1c18e1(0x112)],'membername':_0x47f1b5[_0x1c18e1(0x133b)]&&_0x47f1b5[_0x1c18e1(0x133b)][_0x1c18e1(0x1801)]?_0x47f1b5['call'][_0x1c18e1(0x1801)]:_0x487cf7[_0x1c18e1(0x19eb)],'calleridname':_0x47f1b5[_0x1c18e1(0x133b)]&&_0x47f1b5[_0x1c18e1(0x133b)][_0x1c18e1(0x1772)]?_0x47f1b5[_0x1c18e1(0x133b)][_0x1c18e1(0x1772)]:undefined,'calleridnum':_0x47f1b5[_0x1c18e1(0x133b)]&&_0x47f1b5[_0x1c18e1(0x133b)]['calleridnum']?_0x47f1b5[_0x1c18e1(0x133b)][_0x1c18e1(0xa5c)]:undefined,'queue':_0x47f1b5[_0x1c18e1(0x133b)]&&_0x47f1b5[_0x1c18e1(0x133b)][_0x1c18e1(0x1c72)]?_0x47f1b5[_0x1c18e1(0x133b)][_0x1c18e1(0x1c72)]:undefined,'uniqueid':_0x47f1b5[_0x1c18e1(0x133b)]&&_0x47f1b5['call'][_0x1c18e1(0x4f8)]?_0x47f1b5[_0x1c18e1(0x133b)]['uniqueid']:undefined,'VoiceQueueId':_0x47f1b5[_0x1c18e1(0x133b)]&&_0x47f1b5['call'][_0x1c18e1(0x540)]?_0x47f1b5[_0x1c18e1(0x133b)][_0x1c18e1(0x540)]:undefined,'ProjectId':_0x47f1b5['project']&&_0x47f1b5[_0x1c18e1(0x9e0)]['id']?_0x47f1b5[_0x1c18e1(0x9e0)]['id']:undefined,'projectname':_0x47f1b5[_0x1c18e1(0x9e0)]&&_0x47f1b5[_0x1c18e1(0x9e0)][_0x1c18e1(0x19eb)]?_0x47f1b5[_0x1c18e1(0x9e0)]['name']:undefined,'ContactId':_0x47f1b5['contact']&&_0x47f1b5['contact']['id']?_0x47f1b5[_0x1c18e1(0x1662)]['id']:undefined,'completed':_0x2d1dde})[_0x1c18e1(0x2945)];})['then'](function(_0x2ad1a2){const _0xee31dd=_0xa1a01;if(_0x2ad1a2){const _0x360c85=_0x47f1b5[_0xee31dd(0x1595)](),_0x1b2402=_0x47f1b5[_0xee31dd(0x28ff)](),_0x38d72a=_0x47f1b5[_0xee31dd(0x1c89)]();for(let _0x5dd384=0x0;_0x5dd384<_0x360c85[_0xee31dd(0x402)];_0x5dd384+=0x1){if(!_0x3f65c0()[_0xee31dd(0x2635)](String(_0x1b2402[_0x5dd384]))){try{_0x2081b8[_0xee31dd(0x1f47)](_0x576f21[_0xee31dd(0x2526)][_0xee31dd(0x1e3)]({'question':_0x360c85[_0x5dd384],'answer':_0x38d72a[_0x5dd384]['type']==='date'?_0x2deec6()(String(_0x1b2402[_0x5dd384]))[_0xee31dd(0x22b0)](_0xee31dd(0x17d5)):_0x38d72a[_0x5dd384][_0xee31dd(0x1142)]==='time'?_0x2deec6()(String(_0x1b2402[_0x5dd384]))[_0xee31dd(0x22b0)](_0xee31dd(0x28b4)):String(_0x1b2402[_0x5dd384]),'questionId':_0x38d72a[_0x5dd384]['id'],'membername':_0x47f1b5[_0xee31dd(0x133b)]&&_0x47f1b5[_0xee31dd(0x133b)]['membername']?_0x47f1b5['call'][_0xee31dd(0x1801)]:_0x487cf7['name'],'calleridname':_0x47f1b5[_0xee31dd(0x133b)]&&_0x47f1b5[_0xee31dd(0x133b)][_0xee31dd(0x1772)]?_0x47f1b5[_0xee31dd(0x133b)]['calleridname']:undefined,'calleridnum':_0x47f1b5[_0xee31dd(0x133b)]&&_0x47f1b5[_0xee31dd(0x133b)][_0xee31dd(0xa5c)]?_0x47f1b5[_0xee31dd(0x133b)][_0xee31dd(0xa5c)]:undefined,'queue':_0x47f1b5['call']&&_0x47f1b5['call'][_0xee31dd(0x1c72)]?_0x47f1b5[_0xee31dd(0x133b)][_0xee31dd(0x1c72)]:undefined,'uniqueid':_0x47f1b5[_0xee31dd(0x133b)]&&_0x47f1b5[_0xee31dd(0x133b)][_0xee31dd(0x4f8)]?_0x47f1b5[_0xee31dd(0x133b)][_0xee31dd(0x4f8)]:undefined,'SessionId':_0x2ad1a2['id'],'ProjectId':_0x47f1b5[_0xee31dd(0x9e0)]['id'],'projectname':_0x47f1b5[_0xee31dd(0x9e0)][_0xee31dd(0x19eb)]}));}catch(_0x5b48a7){console[_0xee31dd(0x1980)](_0xee31dd(0x20b1),_0x5b48a7);}const _0x531708=String(_0x1b2402[_0x5dd384])[_0xee31dd(0x10c8)](';');for(let _0x4e1d26=0x0;_0x4e1d26<_0x531708[_0xee31dd(0x402)];_0x4e1d26+=0x1){const _0x36495e=_0x531708[_0x4e1d26][_0xee31dd(0x15a3)]();try{_0x55f959[_0xee31dd(0x1f47)](_0x576f21[_0xee31dd(0x1641)][_0xee31dd(0x1e3)]({'question':_0x360c85[_0x5dd384],'questionId':_0x38d72a[_0x5dd384]['id'],'answer':_0x38d72a[_0x5dd384][_0xee31dd(0x1142)]===_0xee31dd(0x1a10)?_0x2deec6()(_0x36495e)['format']('YYYY-MM-DD'):_0x38d72a[_0x5dd384]['type']===_0xee31dd(0x1df0)?_0x2deec6()(_0x36495e)[_0xee31dd(0x22b0)](_0xee31dd(0x28b4)):_0x36495e,'membername':_0x47f1b5[_0xee31dd(0x133b)]&&_0x47f1b5['call'][_0xee31dd(0x1801)]?_0x47f1b5[_0xee31dd(0x133b)][_0xee31dd(0x1801)]:_0x487cf7['name'],'calleridname':_0x47f1b5[_0xee31dd(0x133b)]&&_0x47f1b5[_0xee31dd(0x133b)]['calleridname']?_0x47f1b5['call'][_0xee31dd(0x1772)]:undefined,'calleridnum':_0x47f1b5[_0xee31dd(0x133b)]&&_0x47f1b5['call'][_0xee31dd(0xa5c)]?_0x47f1b5['call'][_0xee31dd(0xa5c)]:undefined,'queue':_0x47f1b5[_0xee31dd(0x133b)]&&_0x47f1b5[_0xee31dd(0x133b)][_0xee31dd(0x1c72)]?_0x47f1b5[_0xee31dd(0x133b)][_0xee31dd(0x1c72)]:undefined,'uniqueid':_0x47f1b5['call']&&_0x47f1b5[_0xee31dd(0x133b)][_0xee31dd(0x4f8)]?_0x47f1b5['call'][_0xee31dd(0x4f8)]:undefined,'SessionId':_0x2ad1a2['id'],'ProjectId':_0x47f1b5[_0xee31dd(0x9e0)]['id'],'projectname':_0x47f1b5[_0xee31dd(0x9e0)][_0xee31dd(0x19eb)]}));}catch(_0x965215){console['error'](_0xee31dd(0x26c2),_0x965215);}}}}}return _0x2d1588[_0xee31dd(0x1be2)](_0x2081b8)[_0xee31dd(0x146b)](function(){const _0x4d6704=_0xee31dd;return _0x2d1588[_0x4d6704(0x1be2)](_0x55f959)[_0x4d6704(0x146b)](function(){return _0x2ad1a2;});});})['then'](function(_0x2fca7d){const _0x44c2c6=_0xa1a01;_0x2fca7d?_0x3d8074[_0x44c2c6(0x2922)](!![]):_0x3d8074[_0x44c2c6(0xa6f)]();})['catch'](function(_0x28fdbd){const _0x5a7e89=_0xa1a01;if(_0x28fdbd[_0x5a7e89(0x524)]&&_0x28fdbd[_0x5a7e89(0x524)][_0x5a7e89(0xcef)]&&_0x28fdbd['data'][_0x5a7e89(0xcef)][_0x5a7e89(0x402)]){_0x47f1b5[_0x5a7e89(0xcef)]=_0x28fdbd['data'][_0x5a7e89(0xcef)]||[{'message':_0x28fdbd[_0x5a7e89(0xd5f)](),'type':_0x5a7e89(0x33e)}];for(let _0x16c841=0x0;_0x16c841<_0x28fdbd[_0x5a7e89(0x524)][_0x5a7e89(0xcef)][_0x5a7e89(0x402)];_0x16c841+=0x1){_0x1d34f4[_0x5a7e89(0x1980)]({'title':_0x28fdbd[_0x5a7e89(0x524)][_0x5a7e89(0xcef)][_0x16c841][_0x5a7e89(0x1142)],'msg':_0x28fdbd[_0x5a7e89(0x524)][_0x5a7e89(0xcef)][_0x16c841][_0x5a7e89(0x7fd)]});}}else _0x1d34f4['error']({'title':_0x28fdbd['status']?_0x5a7e89(0x262a)+_0x28fdbd[_0x5a7e89(0x107b)]+'\x20-\x20'+_0x28fdbd[_0x5a7e89(0x167f)]:'api.contact.save','msg':_0x28fdbd[_0x5a7e89(0x524)]?JSON['stringify'](_0x28fdbd[_0x5a7e89(0x524)][_0x5a7e89(0x7fd)]):_0x28fdbd[_0x5a7e89(0xd5f)]()});_0x3d8074[_0x5a7e89(0xa6f)]();});}function _0x999384(_0x3545ff){const _0x2a7bb8=_0x100943;try{_0x360097['$parent'][_0x2a7bb8(0x2870)]['$parent']['vm']['removeTab'](_0x3545ff);}catch(_0x37dc6e){_0x1d34f4[_0x2a7bb8(0x1980)]({'title':'ERROR\x20REMOVE\x20TAB','msg':_0x2a7bb8(0x282)});}}function _0x3216b3(_0x4578e1,_0x5ce227){const _0x4b1e78=_0x100943,_0x2f2391=_0x2d1588[_0x4b1e78(0xce3)]();if(_0x5ce227){const _0x80d620=_0x41c2ff[_0x4b1e78(0x1e8a)]()[_0x4b1e78(0x1189)]('Would\x20you\x20like\x20to\x20save\x20your\x20survey?')[_0x4b1e78(0x199c)]('')[_0x4b1e78(0x4bd)](_0x4b1e78(0x2a3))[_0x4b1e78(0x1f27)](_0x4578e1)['ok']('YES')['cancel']('NO');_0x41c2ff[_0x4b1e78(0x2615)](_0x80d620)[_0x4b1e78(0x146b)](function(){_0x37bd28(_0x2f2391,![]);},function(){const _0x213eb1=_0x4b1e78;_0x2f2391[_0x213eb1(0x2922)]();});}else _0x37bd28(_0x2f2391,!![]);return _0x2f2391[_0x4b1e78(0xb9c)][_0x4b1e78(0x146b)](function(_0x5e599b){const _0x3d6a1d=_0x4b1e78;_0x5e599b&&(_0x1d34f4[_0x3d6a1d(0x1c75)]({'title':_0x3d6a1d(0x2135),'msg':'Your\x20survey\x20session\x20has\x20been\x20properly\x20saved!'}),_0x999384(_0x47f1b5[_0x3d6a1d(0x13a3)]));})[_0x4b1e78(0x129e)](function(){const _0x4e7752=_0x4b1e78;_0x1d34f4[_0x4e7752(0x1980)]({'title':'Session\x20save\x20error','msg':_0x4e7752(0x149b)});});}function _0x146b99(){const _0x41bd31=_0x100943;return _0x3609a1[_0x41bd31(0x21a5)](_0x47f1b5[_0x41bd31(0x9e0)]['formData'],_0x47f1b5[_0x41bd31(0x9e0)]['responseData'],![]);}function _0x2789fa(){const _0x19e2ba=_0x100943;return _0x3609a1[_0x19e2ba(0x28ff)](_0x47f1b5['project'][_0x19e2ba(0x21e6)],_0x47f1b5[_0x19e2ba(0x9e0)][_0x19e2ba(0x2719)]);}function _0x2eabba(){const _0x4e800d=_0x100943;return _0x3609a1['getResponseSheetHeaders'](_0x47f1b5[_0x4e800d(0x9e0)][_0x4e800d(0x21e6)],![]);}function _0x4927f6(){const _0x3eab38=_0x100943;return _0x3609a1[_0x3eab38(0x1c89)](_0x47f1b5[_0x3eab38(0x9e0)][_0x3eab38(0x21e6)],_0x47f1b5[_0x3eab38(0x9e0)]['responseData']);}}const _0x89ff6f=_0x4f41ae;;_0x373ce4[_0x313a4d(0x11c2)]=['$translate',_0x313a4d(0x1fe4),_0x313a4d(0xcee),'api','Auth'];function _0x373ce4(_0x402172,_0xe605c0,_0x3935be,_0x500827,_0x27e6d9){const _0x5dbac8=_0x313a4d,_0x39ee5e=this;_0x39ee5e[_0x5dbac8(0xcee)]=_0x3935be,_0x39ee5e[_0x5dbac8(0xe7b)]=_0x27e6d9[_0x5dbac8(0xb12)]();function _0x2f788a(){return function(_0x425894){const _0x56f4e4=a0_0x3bb9;if(_0x425894['status']===0x194)_0xe605c0['info']({'title':_0x402172['instant'](_0x56f4e4(0x1b7b)),'msg':_0x402172['instant'](_0x56f4e4(0x1d62))});else{if(_0x425894[_0x56f4e4(0x524)]&&_0x425894['data'][_0x56f4e4(0xcef)]&&_0x425894[_0x56f4e4(0x524)][_0x56f4e4(0xcef)][_0x56f4e4(0x402)]){_0x39ee5e[_0x56f4e4(0xcef)]=_0x425894[_0x56f4e4(0x524)][_0x56f4e4(0xcef)]||[{'message':_0x425894['toString'](),'type':'api.openchannelMessage.accept'}];for(let _0x5640ac=0x0;_0x5640ac<_0x425894[_0x56f4e4(0x524)]['errors']['length'];_0x5640ac+=0x1){_0xe605c0[_0x56f4e4(0x1980)]({'title':_0x425894[_0x56f4e4(0x524)][_0x56f4e4(0xcef)][_0x5640ac][_0x56f4e4(0x1142)],'msg':_0x425894['data'][_0x56f4e4(0xcef)][_0x5640ac][_0x56f4e4(0x7fd)]});}}else _0xe605c0[_0x56f4e4(0x1980)]({'title':_0x425894[_0x56f4e4(0x107b)]?_0x56f4e4(0x262a)+_0x425894[_0x56f4e4(0x107b)]+_0x56f4e4(0x1315)+_0x425894[_0x56f4e4(0x167f)]:_0x56f4e4(0x1156),'msg':_0x425894[_0x56f4e4(0x524)]?JSON[_0x56f4e4(0x10bb)](_0x425894['data'][_0x56f4e4(0x7fd)]):_0x425894[_0x56f4e4(0xd5f)]()});}};}function _0x489cef(){const _0x1f2866=_0x5dbac8;if(_0x500827[_0x39ee5e[_0x1f2866(0xcee)]['channel']+'Message'])return _0x500827[_0x39ee5e[_0x1f2866(0xcee)][_0x1f2866(0x2894)]+_0x1f2866(0xe2)][_0x1f2866(0x204a)]({'id':_0x39ee5e[_0x1f2866(0xcee)]['id'],'UserId':_0x39ee5e[_0x1f2866(0xe7b)]['id'],'manual':!![]})[_0x1f2866(0x2945)]['then'](function(){const _0x1fd4b2=_0x1f2866;_0xe605c0[_0x1fd4b2(0x1c75)]({'title':_0x1fd4b2(0x1dc4),'msg':_0x1fd4b2(0x2170)});})[_0x1f2866(0x129e)](_0x2f788a());else _0xe605c0[_0x1f2866(0x1980)]({'title':_0x1f2866(0x428),'msg':_0x1f2866(0x2521)+_0x39ee5e[_0x1f2866(0xcee)][_0x1f2866(0x2894)]+_0x1f2866(0xe2)});}function _0x3d2b1f(){const _0x3c73d3=_0x5dbac8;if(_0x500827[_0x39ee5e[_0x3c73d3(0xcee)][_0x3c73d3(0x2894)]+'Message'])return _0x500827[_0x39ee5e['notification']['channel']+'Message']['reject']({'id':_0x39ee5e[_0x3c73d3(0xcee)]['id'],'UserId':_0x39ee5e['user']['id']})['$promise']['then'](function(){const _0x29343a=_0x3c73d3;_0xe605c0[_0x29343a(0x1c75)]({'title':_0x29343a(0xf75),'msg':'Message\x20has\x20been\x20rejected!'});})[_0x3c73d3(0x129e)](_0x2f788a());else _0xe605c0['error']({'title':_0x3c73d3(0x428),'msg':'API\x20reject\x20message\x20not\x20found:\x20'+_0x39ee5e[_0x3c73d3(0xcee)][_0x3c73d3(0x2894)]+_0x3c73d3(0xe2)});}_0x39ee5e[_0x5dbac8(0x204a)]=_0x489cef,_0x39ee5e['reject']=_0x3d2b1f;}const _0x21c7d2=_0x373ce4;;function _0x52c1c4(){const _0x1bee0a=_0x313a4d,_0x145331=this;function _0x590ceb(_0x28a06d){const _0x55bf2f=a0_0x3bb9;_0x145331[_0x55bf2f(0x13a3)]=_0x28a06d,_0x145331[_0x55bf2f(0x13a3)]&&(_0x145331[_0x55bf2f(0x13a3)][_0x55bf2f(0x1a2e)]=!![],_0x145331[_0x55bf2f(0x1931)]=_0x145331[_0x55bf2f(0x13a3)][_0x55bf2f(0x1931)]);}_0x145331[_0x1bee0a(0x5aa)]=_0x590ceb;}const _0x436337=_0x52c1c4;;const _0x59f0d1=_0x4acfac['p']+_0x313a4d(0x151f);;const _0x43c5df=_0x4acfac['p']+_0x313a4d(0x117e);;_0x37d44e[_0x313a4d(0x11c2)]=[_0x313a4d(0x921)];function _0x37d44e(_0x42c905){const _0xca26b7=_0x313a4d;_0x42c905[_0xca26b7(0x13d6)]('app.dashboards.general',{'url':_0xca26b7(0x2390),'views':{'content@app':{'templateProvider':[_0xca26b7(0x28c8),_0xca26b7(0x25c1),_0xca26b7(0xa87),function(_0xde5469,_0x3ef106,_0x148761){const _0x535879=_0xca26b7;return _0x148761[_0x535879(0x224e)]()?_0x3ef106[_0x535879(0x1389)](_0x43c5df,_0xde5469):_0x3ef106[_0x535879(0x1389)](_0x59f0d1,_0xde5469);}],'controllerProvider':['Auth',function(_0x7143f){const _0x57694c=_0xca26b7;return _0x7143f['isAgent']()?_0x57694c(0x1985):_0x57694c(0xabf);}]}},'resolve':{'globalUserLists':['apiResolver',_0xca26b7(0xa87),function(_0xd151c1,_0x372878){const _0x463cfa=_0xca26b7;return _0xd151c1[_0x463cfa(0x2922)](_0x463cfa(0x22b6),{'id':_0x372878[_0x463cfa(0xb12)]()['id'],'sort':'name','nolimit':!![]});}],'globalLists':['apiResolver',function(_0x3978f3){const _0x134e3a=_0xca26b7;return _0x3978f3[_0x134e3a(0x2922)]('cmList@get',{'sort':_0x134e3a(0x19eb),'nolimit':!![]});}],'globalTags':[_0xca26b7(0x362),function(_0x43cd95){const _0x1baa30=_0xca26b7;return _0x43cd95[_0x1baa30(0x2922)](_0x1baa30(0x2552),{'sort':'name','nolimit':!![]});}],'globalCompanies':['apiResolver',function(_0x1e4bd2){const _0x35e14b=_0xca26b7;return _0x1e4bd2[_0x35e14b(0x2922)](_0x35e14b(0x11ff),{'sort':_0x35e14b(0x19eb),'nolimit':!![]});}]},'authenticate':!![],'bodyClass':'dashboards'});}angular[_0x313a4d(0x2528)]('app.dashboards.general',[_0x313a4d(0xf51),'app.dashboards.general.user'])[_0x313a4d(0x989)](_0x37d44e)[_0x313a4d(0x28f0)]('AgentDashboardGeneralController',_0x14eb60)['factory'](_0x313a4d(0x1909),_0x1f1003)['provider']('desktopNotification',_0x1355b5)['provider'](_0x313a4d(0x2161),_0x1a50cb)[_0x313a4d(0x24fe)]('PERMISSIONS',_0x2d96f1)[_0x313a4d(0x28f0)](_0x313a4d(0x253a),_0x5a4dc3)[_0x313a4d(0x28f0)]('AgentGeneralContactController',_0x59c03c)[_0x313a4d(0x28f0)](_0x313a4d(0x2879),_0x24e225)[_0x313a4d(0x28f0)](_0x313a4d(0x1b22),_0x55b80f)[_0x313a4d(0x28f0)](_0x313a4d(0xe0c),_0x23d687)[_0x313a4d(0x28f0)](_0x313a4d(0x1a12),_0x107d40)[_0x313a4d(0x28f0)]('AgentHomeAbandonedBullController',_0x2de162)['controller']('DisposeAbandonedCallDialogController',_0x4816bc)[_0x313a4d(0x28f0)](_0x313a4d(0xebd),_0x1ef57e)['controller'](_0x313a4d(0x1632),_0x1a77a6)[_0x313a4d(0x28f0)](_0x313a4d(0x1eb4),_0x3e5a40)[_0x313a4d(0x28f0)]('AgentHomeContactsController',_0x3d6357)[_0x313a4d(0x28f0)](_0x313a4d(0x2684),_0x257aa7)[_0x313a4d(0x28f0)](_0x313a4d(0xdd3),_0x5efbb3)[_0x313a4d(0x28f0)](_0x313a4d(0x34e),_0x5aa209)[_0x313a4d(0x28f0)](_0x313a4d(0xdc3),_0x168f30)[_0x313a4d(0x28f0)]('AgentHomeDashboardMultiChannelMailController',_0x3a12fd)[_0x313a4d(0x28f0)](_0x313a4d(0xa06),_0x3a23e3)[_0x313a4d(0x28f0)](_0x313a4d(0x2465),_0x244316)['controller'](_0x313a4d(0x208d),_0x253d40)[_0x313a4d(0x28f0)]('AgentHomeDashboardMultiChannelWhatsappController',_0x55a4b6)[_0x313a4d(0x28f0)]('AgentHomeFaxController',_0x54a684)[_0x313a4d(0x28f0)](_0x313a4d(0x1b2f),_0x1513e2)[_0x313a4d(0x28f0)](_0x313a4d(0x1cbc),_0xfea453)[_0x313a4d(0x28f0)](_0x313a4d(0xed9),_0x3ab007)['controller']('AgentHomePluginsController',_0x29347f)[_0x313a4d(0x28f0)](_0x313a4d(0x778),_0x4b50b9)[_0x313a4d(0x28f0)](_0x313a4d(0x204),_0x2873a1)[_0x313a4d(0x28f0)]('AgentHomeSmsController',_0x50e67a)[_0x313a4d(0x28f0)](_0x313a4d(0x2831),_0x2fa6f1)[_0x313a4d(0x28f0)](_0x313a4d(0x35b),_0x298ae7)[_0x313a4d(0x28f0)](_0x313a4d(0x2584),_0x1bdaba)[_0x313a4d(0x28f0)]('AgentGeneralIframeController',_0x5be76c)[_0x313a4d(0x2ba)](_0x313a4d(0x181e),_0x371c1a)['filter']('getChannelByItem',_0x1f5322)[_0x313a4d(0x28f0)](_0x313a4d(0xd2c),_0x1141d1)[_0x313a4d(0x1750)](_0x313a4d(0x272e),_0x3e78fe)[_0x313a4d(0x28f0)](_0x313a4d(0x1c90),_0xfce772)['controller'](_0x313a4d(0x1faa),_0x5a42c9)['controller'](_0x313a4d(0xde7),_0x2979c2)['controller'](_0x313a4d(0x1d08),_0x4f874e)[_0x313a4d(0x28f0)](_0x313a4d(0x268d),_0x449643)[_0x313a4d(0x28f0)](_0x313a4d(0xe23),_0x74b870)[_0x313a4d(0x28f0)]('TagInteractionDialogController',_0x1ee1f0)['controller'](_0x313a4d(0x116e),_0x1b279d)['controller'](_0x313a4d(0x163b),_0x89ff6f)[_0x313a4d(0x28f0)](_0x313a4d(0x17e6),_0x21c7d2)['controller'](_0x313a4d(0x2244),_0x436337);;const _0x1c9e43=_0x4acfac['p']+_0x313a4d(0x1555);;_0x2eb87e[_0x313a4d(0x11c2)]=[_0x313a4d(0x1862),_0x313a4d(0xa0a),_0x313a4d(0x910),_0x313a4d(0x247f),_0x313a4d(0x279d),_0x313a4d(0xa87),_0x313a4d(0xa27),_0x313a4d(0x26b6),_0x313a4d(0x1366)];function _0x2eb87e(_0x2868b9,_0x2e6bab,_0x45c7cb,_0x25970a,_0x240bf0,_0x3cfafa,_0x363324,_0x3e39a1,_0x1c9be5){const _0x7ddeff=_0x313a4d,_0xa85012=this;_0xa85012[_0x7ddeff(0x2321)]=_0x3cfafa[_0x7ddeff(0xb12)](),_0xa85012[_0x7ddeff(0x26b6)]=_0x3e39a1,_0xa85012[_0x7ddeff(0x1366)]=_0x1c9be5&&_0x1c9be5[_0x7ddeff(0x51c)]==0x1?_0x1c9be5[_0x7ddeff(0x19c7)][0x0]:null,_0xa85012[_0x7ddeff(0x2514)]=_0x3cfafa[_0x7ddeff(0xe60)](_0xa85012[_0x7ddeff(0x1366)]?_0xa85012['userProfileSection'][_0x7ddeff(0x2514)]:null),_0xa85012[_0x7ddeff(0x1d3b)]={},_0xa85012['voiceQueues']=_0x363324&&_0x363324[_0x7ddeff(0x51c)]?_0x363324:{'count':0x0,'rows':[]},_0xa85012['voiceQueuesSelected']=_0x363324&&_0x363324[_0x7ddeff(0x51c)]?_0x3f65c0()['map'](_0x363324['rows'],'id'):[],_0xa85012[_0x7ddeff(0x2765)]=_0x2e6bab(function(){},0x3e8),_0xa85012[_0x7ddeff(0x959)]=_0x14d932,_0xa85012[_0x7ddeff(0x1c6e)]=_0x5983d9,_0x240bf0[_0x7ddeff(0x13b7)](_0x7ddeff(0x101d),_0x4d2d37),_0x25970a[_0x7ddeff(0x130)][_0x7ddeff(0x16b4)]({'id':_0x2868b9['params']['id']})['$promise'][_0x7ddeff(0x146b)](function(_0x5837de){const _0x1a74aa=_0x7ddeff;if(_0x5837de)return _0xa85012[_0x1a74aa(0x1d3b)]=_0x5837de,_0xa85012[_0x1a74aa(0x1d3b)][_0x1a74aa(0x25f1)]=[],_0xa85012[_0x1a74aa(0x1d3b)]['preview']=!![],_0xa85012[_0x1a74aa(0x1d3b)][_0x1a74aa(0x2fe)]={'enabled':![]},_0xa85012['customDashboard']['resizable']={'enabled':![]},_0x25970a[_0x1a74aa(0x130)][_0x1a74aa(0xe92)]({'id':_0xa85012[_0x1a74aa(0x1d3b)]['id']})['$promise'];})[_0x7ddeff(0x146b)](function(_0x57974b){const _0x5cda9e=_0x7ddeff;if(_0x57974b&&_0x57974b['count']&&_0x57974b[_0x5cda9e(0x19c7)])for(let _0x208f37=0x0;_0x208f37<_0x57974b[_0x5cda9e(0x19c7)][_0x5cda9e(0x402)];_0x208f37+=0x1){_0x57974b['rows'][_0x208f37][_0x5cda9e(0x112e)]=_0x5cda9e(0xbb5)+_0x57974b['rows'][_0x208f37][_0x5cda9e(0x1142)]+_0x5cda9e(0x1cfb)+_0x57974b['rows'][_0x208f37][_0x5cda9e(0x1142)]+_0x5cda9e(0x23d6),_0x57974b[_0x5cda9e(0x19c7)][_0x208f37][_0x5cda9e(0xa27)]=_0xa85012[_0x5cda9e(0xa27)],_0x57974b[_0x5cda9e(0x19c7)][_0x208f37]['voiceQueuesSelected']=_0xa85012['voiceQueuesSelected'],_0xa85012[_0x5cda9e(0x1d3b)][_0x5cda9e(0x25f1)][_0x5cda9e(0x1f47)](_0x57974b[_0x5cda9e(0x19c7)][_0x208f37]);}})[_0x7ddeff(0x129e)](function(){const _0x316efb=_0x7ddeff;_0xa85012[_0x316efb(0x1d3b)]=undefined;});function _0x4d2d37(_0x55d5a7){const _0x390c9f=_0x7ddeff,_0x44a8d6=_0x3f65c0()['find'](_0xa85012['voiceQueues'][_0x390c9f(0x19c7)],{'id':_0x55d5a7['id']});_0x44a8d6&&_0x3f65c0()['merge'](_0x44a8d6,_0x3f65c0()[_0x390c9f(0x40e)](_0x55d5a7,_0x3f65c0()[_0x390c9f(0x627)](_0x44a8d6)));}function _0x14d932(){const _0x20c82f=_0x7ddeff;for(let _0x3e3a62=0x0;_0x3e3a62<_0xa85012[_0x20c82f(0x1d3b)][_0x20c82f(0x25f1)][_0x20c82f(0x402)];_0x3e3a62+=0x1){_0xa85012[_0x20c82f(0x1d3b)]['widgets'][_0x3e3a62]['voiceQueuesSelected']=_0xa85012['voiceQueuesSelected'];}}function _0x5983d9(){const _0x555511=_0x7ddeff;_0x2868b9['go']('app.tools.customDashboards.edit',{'id':_0xa85012[_0x555511(0x1d3b)]['id'],'tab':0x1});}_0x45c7cb[_0x7ddeff(0x16ad)](_0x7ddeff(0x116f),function(){const _0x4b0478=_0x7ddeff;_0x240bf0[_0x4b0478(0x1c5f)]('voice_queue:save'),_0xa85012[_0x4b0478(0x2765)]&&_0x2e6bab[_0x4b0478(0x6c3)](_0xa85012['interval']);});}const _0x47fe7b=_0x2eb87e;;_0x5194c6[_0x313a4d(0x11c2)]=[_0x313a4d(0x921)];function _0x5194c6(_0x346852){const _0x1cad47=_0x313a4d;_0x346852['state'](_0x1cad47(0x993),{'url':_0x1cad47(0x1241),'views':{'content@app':{'templateUrl':_0x1c9e43,'controller':_0x1cad47(0x606)}},'resolve':{'voiceQueues':['apiResolver','Auth',function(_0x42e609,_0x4c2e31){const _0x47b808=_0x1cad47;let _0x2ecb3f;const _0x106fd3=_0x4c2e31[_0x47b808(0x23e0)](_0x47b808(0x174b))?_0x42e609[_0x47b808(0x2922)](_0x47b808(0x5c0),{'fields':_0x47b808(0x7a7),'nolimit':!![]}):_0x42e609['resolve'](_0x47b808(0x938),{'id':_0x4c2e31[_0x47b808(0xb12)]()[_0x47b808(0x209a)],'section':'VoiceQueues','mergeResources':!![],'fields':_0x47b808(0x7a7),'channel':_0x47b808(0xe6),'nolimit':!![]});return _0x106fd3['then'](function(_0x2faba8){const _0x16e646=_0x47b808;return _0x2ecb3f=_0x2faba8,_0x42e609['resolve'](_0x16e646(0x684));})[_0x47b808(0x146b)](function(_0x53a037){const _0x50775c=_0x47b808;if(_0x53a037)for(let _0x3ef54a=0x0,_0x4ae8c5;_0x3ef54a<_0x53a037[_0x50775c(0x19c7)]['length'];_0x3ef54a+=0x1){_0x4ae8c5=_0x3f65c0()[_0x50775c(0xc84)](_0x2ecb3f[_0x50775c(0x19c7)],{'id':_0x53a037[_0x50775c(0x19c7)][_0x3ef54a]['id']}),_0x4ae8c5&&_0x3f65c0()[_0x50775c(0x168d)](_0x4ae8c5,_0x3f65c0()[_0x50775c(0x40e)](_0x53a037[_0x50775c(0x19c7)][_0x3ef54a],[_0x50775c(0x12a3),'total',_0x50775c(0x10ed),_0x50775c(0x23c3),_0x50775c(0x2389),_0x50775c(0x521)]));}return _0x2ecb3f;});}],'userProfile':[_0x1cad47(0x362),'Auth',function(_0x41364c,_0x15fc03){const _0x4d35fd=_0x1cad47;return _0x41364c['resolve'](_0x4d35fd(0x119a),{'fields':_0x4d35fd(0x227),'id':_0x15fc03[_0x4d35fd(0xb12)]()[_0x4d35fd(0x209a)]});}],'userProfileSection':[_0x1cad47(0x362),_0x1cad47(0xa87),function(_0x4bc4e3,_0x598bdd){const _0x24d23a=_0x1cad47;return _0x4bc4e3[_0x24d23a(0x2922)](_0x24d23a(0x27be),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x598bdd[_0x24d23a(0xb12)]()['userProfileId'],'sectionId':0x64});}]},'authenticate':!![],'bodyClass':_0x1cad47(0x6de)});}angular['module'](_0x313a4d(0x993),[])[_0x313a4d(0x989)](_0x5194c6)['controller'](_0x313a4d(0x924),_0x47fe7b);;_0x21c087[_0x313a4d(0x11c2)]=[_0x313a4d(0x921),_0x313a4d(0x695)];function _0x21c087(_0xa2e4fc,_0x3138d5){const _0x23a961=_0x313a4d;_0xa2e4fc['state'](_0x23a961(0x2843),{'abstract':!![],'url':_0x23a961(0xcb2)}),_0x3138d5[_0x23a961(0x15bf)](_0x23a961(0xe12));}angular['module'](_0x313a4d(0x2843),[_0x313a4d(0xdad),_0x313a4d(0x962),_0x313a4d(0x23c7),'flow',_0x313a4d(0x19e2),'ckeditor',_0x313a4d(0x195b),'ngAria',_0x313a4d(0xc86),_0x313a4d(0x1f5f),_0x313a4d(0x28a8),_0x313a4d(0xfb2),'mwFormUtils',_0x313a4d(0x581),_0x313a4d(0x1bd2),'ngEmbed',_0x313a4d(0x1b65),_0x313a4d(0x1626),_0x313a4d(0x2713),_0x313a4d(0x11df),'app.dashboards.general',_0x313a4d(0x993)])[_0x313a4d(0x989)](_0x21c087);;const _0x229b1c=_0x4acfac['p']+_0x313a4d(0x2142);;const _0x58a671=_0x4acfac['p']+_0x313a4d(0x98c);;_0x2fde47['$inject']=[_0x313a4d(0x910),_0x313a4d(0x1aa9),_0x313a4d(0x1862),_0x313a4d(0x15fe),_0x313a4d(0x10e8),'$document',_0x313a4d(0x1abe),'$translate',_0x313a4d(0x23c0),_0x313a4d(0x26b6),_0x313a4d(0x1366),_0x313a4d(0x247f),_0x313a4d(0x216c),'toasty',_0x313a4d(0xa87),'license',_0x313a4d(0x15b9)];function _0x2fde47(_0x2b79e3,_0x7b66a7,_0x3bf87d,_0x20f72c,_0x51316e,_0x5f261f,_0x17ff7e,_0x42cf76,_0x1dd66c,_0x13557b,_0xb07ff2,_0x393840,_0xf2b2dd,_0x23a963,_0x3351a5,_0x52012c,_0xcdbaed){const _0x147a34=_0x313a4d,_0x341649=this;_0x341649[_0x147a34(0x2690)]=_0x52012c,_0x341649['setting']=_0xcdbaed,_0x341649[_0x147a34(0x2321)]=_0x3351a5[_0x147a34(0xb12)](),_0x341649[_0x147a34(0x23c0)]=_0x1dd66c||{'count':0x0,'rows':[]},_0x341649['userProfile']=_0x13557b,_0x341649[_0x147a34(0x1366)]=_0xb07ff2&&_0xb07ff2[_0x147a34(0x51c)]==0x1?_0xb07ff2[_0x147a34(0x19c7)][0x0]:null,_0x341649[_0x147a34(0x2514)]=_0x3351a5[_0x147a34(0xe60)](_0x341649['userProfileSection']?_0x341649[_0x147a34(0x1366)][_0x147a34(0x2514)]:null),_0x341649[_0x147a34(0x768)]=_0x147a34(0x23c0),_0x341649[_0x147a34(0x216a)]='',_0x341649[_0x147a34(0x214f)]=null,_0x341649[_0x147a34(0x100a)]=[],_0x341649[_0x147a34(0x1a56)]={'fields':_0x147a34(0x1c11),'role':_0x147a34(0x1755),'sort':_0x147a34(0x12f2),'limit':0xa,'page':0x1},_0x341649[_0x147a34(0xfcd)]=_0x3f65c0()[_0x147a34(0x194)]([{'option':_0x147a34(0x1334),'value':'0'},{'option':_0x147a34(0x288c),'value':'1'},{'option':'WebRTC','value':'2'}],function(_0x1dadd8){const _0x49c1e0=_0x147a34;return _0x3f65c0()['replace'](_0x1dadd8[_0x49c1e0(0x175d)],new RegExp('\x27','g'),'');}),_0x341649['arraytransport']=_0x3f65c0()[_0x147a34(0x194)]([{'option':_0x147a34(0x3ce),'value':_0x147a34(0x21bd)},{'option':_0x147a34(0x1701),'value':_0x147a34(0x1992)},{'option':'ws','value':_0x147a34(0x9ae),'ngIf':_0x147a34(0x490)},{'option':'wss','value':_0x147a34(0x222c),'ngIf':_0x147a34(0x490)},{'option':_0x147a34(0xcbe),'value':_0x147a34(0x17ca),'ngIf':_0x147a34(0x490)}],function(_0x391433){const _0x8e42d3=_0x147a34;return _0x3f65c0()[_0x8e42d3(0x5f4)](_0x391433[_0x8e42d3(0x175d)],new RegExp('\x27','g'),'');}),_0x341649[_0x147a34(0x1e0b)]=_0x3f65c0()[_0x147a34(0x194)]([{'option':_0x147a34(0x22e7),'value':_0x147a34(0x1dcf)},{'option':_0x147a34(0x113b),'value':_0x147a34(0x73c)},{'option':_0x147a34(0x18e3),'value':_0x147a34(0x2339)},{'option':'no','value':_0x147a34(0x74f)},{'option':_0x147a34(0x6d2),'value':_0x147a34(0xc7b)},{'option':'route','value':_0x147a34(0xd9a)}],function(_0x3a6080){const _0x53b343=_0x147a34;return _0x3f65c0()[_0x53b343(0x5f4)](_0x3a6080['value'],new RegExp('\x27','g'),'');}),_0x341649[_0x147a34(0x11da)]=_0x3f65c0()['keyBy']([{'option':_0x147a34(0x19e1),'value':_0x147a34(0x180d)},{'option':_0x147a34(0x2393),'value':_0x147a34(0x232e)},{'option':'Peer','value':_0x147a34(0x1e47)}],function(_0x4f71d7){const _0x3335ba=_0x147a34;return _0x3f65c0()[_0x3335ba(0x5f4)](_0x4f71d7[_0x3335ba(0x175d)],new RegExp('\x27','g'),'');}),_0x341649[_0x147a34(0x1ee2)]=_0x3f65c0()[_0x147a34(0x194)]([{'option':_0x147a34(0x8c3),'value':'\x27ulaw\x27'},{'option':_0x147a34(0x10ea),'value':_0x147a34(0x174d)},{'option':'gsm','value':'\x27gsm\x27'},{'option':_0x147a34(0x2453),'value':'\x27g722\x27'},{'option':_0x147a34(0xe90),'value':_0x147a34(0x1bf3)},{'option':_0x147a34(0xdc9),'value':_0x147a34(0x1a7f)},{'option':'h264','value':'\x27h264\x27'}],function(_0x257a03){const _0x3d65cc=_0x147a34;return _0x3f65c0()['replace'](_0x257a03[_0x3d65cc(0x175d)],new RegExp('\x27','g'),'');}),_0x341649[_0x147a34(0xc95)]=_0x3f65c0()[_0x147a34(0x194)]([{'option':'Yes','value':_0x147a34(0x2339)},{'option':'No','value':_0x147a34(0x74f)},{'option':_0x147a34(0x132f),'value':_0x147a34(0x220a)}],function(_0x3b6cc0){const _0x54b509=_0x147a34;return _0x3f65c0()[_0x54b509(0x5f4)](_0x3b6cc0[_0x54b509(0x175d)],new RegExp('\x27','g'),'');}),_0x341649[_0x147a34(0x187)]=_0x3f65c0()[_0x147a34(0x194)]([{'option':_0x147a34(0x180),'value':'\x27\x27'},{'option':'wav','value':_0x147a34(0x13fd)},{'option':'wav49','value':_0x147a34(0x834)},{'option':_0x147a34(0xdf0),'value':_0x147a34(0x5a3)}],function(_0x3b1dc9){const _0x2bd10e=_0x147a34;return _0x3f65c0()[_0x2bd10e(0x5f4)](_0x3b1dc9[_0x2bd10e(0x175d)],new RegExp('\x27','g'),'');}),_0x341649['editstate']=_0x4b352f,_0x341649['teamadddialog']=_0x448912,_0x341649[_0x147a34(0xf0a)]=_0x39666e,_0x341649[_0x147a34(0x1c75)]=_0x13788c,_0x341649[_0x147a34(0x333)]=_0x1e061c,_0x341649[_0x147a34(0x19c6)]=_0x3125f8,_0x341649['deleteAgent']=_0x50983e,_0x341649[_0x147a34(0x3b7)]=_0x4cb96a,_0x341649[_0x147a34(0x1de3)]=_0x2cd16e,_0x341649[_0x147a34(0x5e3)]=_0x587bda,_0x341649[_0x147a34(0x2756)]=_0x1aca59;function _0x4b352f(_0x474889){const _0x177b2b=_0x147a34;_0x3bf87d['go'](_0x177b2b(0x1fd8),{'id':_0x474889['id'],'agent':_0x474889,'crudPermissions':_0x341649[_0x177b2b(0x2514)]});}function _0x448912(_0x4774ec,_0x3b7f2b){const _0x3e32df=_0x147a34;_0x51316e['show']({'controller':'AgentteamaddController','controllerAs':'vm','templateUrl':_0x229b1c,'parent':angular['element'](_0x5f261f[_0x3e32df(0x2586)]),'targetEvent':_0x3b7f2b,'clickOutsideToClose':!![],'locals':{'agent':_0x4774ec,'agents':_0x341649[_0x3e32df(0x23c0)]?_0x341649[_0x3e32df(0x23c0)][_0x3e32df(0x19c7)]:[],'crudPermissions':_0x341649['crudPermissions']}});}function _0x39666e(_0xc23a75,_0x203498){const _0x3b39be=_0x147a34,_0x4c617e=_0x51316e['confirm']()['title'](_0x3b39be(0xdb2)+_0x3f65c0()[_0x3b39be(0x20d1)](_0x3b39be(0x1755))+'?')[_0x3b39be(0x1cbe)](''+(_0xc23a75[_0x3b39be(0x19eb)]||_0x3b39be(0x1755))+_0x3b39be(0x252f)+_0x3b39be(0xe01))[_0x3b39be(0x4bd)](_0x3b39be(0x2918))[_0x3b39be(0x1f27)](_0x203498)['ok']('OK')[_0x3b39be(0x6c3)](_0x3b39be(0x39a));_0x51316e['show'](_0x4c617e)[_0x3b39be(0x146b)](function(){_0x50983e(_0xc23a75);},function(){const _0x50e407=_0x3b39be;console['log'](_0x50e407(0x39a));});}let _0x36ec07=!![],_0x52cdb9=0x1;_0x2b79e3[_0x147a34(0x21e8)](_0x147a34(0x2669),function(_0x3fb22e,_0x54220e){const _0x156244=_0x147a34;_0x36ec07?_0x17ff7e(function(){_0x36ec07=![];}):(!_0x54220e&&(_0x52cdb9=_0x341649['query']['page']),_0x3fb22e!==_0x54220e&&(_0x341649[_0x156244(0x1a56)][_0x156244(0x844)]=0x1),!_0x3fb22e&&(_0x341649[_0x156244(0x1a56)][_0x156244(0x844)]=_0x52cdb9),_0x341649[_0x156244(0x333)]());});function _0x13788c(_0x46c67d){const _0x54d7d6=_0x147a34;_0x341649[_0x54d7d6(0x23c0)]=_0x46c67d||{'count':0x0,'rows':[]};}function _0x1e061c(){const _0x419f6b=_0x147a34;_0x341649['query']['offset']=(_0x341649[_0x419f6b(0x1a56)][_0x419f6b(0x844)]-0x1)*_0x341649[_0x419f6b(0x1a56)][_0x419f6b(0x221e)],_0x3351a5[_0x419f6b(0x23e0)](_0x419f6b(0x174b))?_0x341649['promise']=_0x393840[_0x419f6b(0xe7b)]['get'](_0x341649[_0x419f6b(0x1a56)],_0x13788c)['$promise']:(_0x341649['query']['id']=_0x341649[_0x419f6b(0x26b6)]['id'],_0x341649['query'][_0x419f6b(0x2146)]=_0x419f6b(0xca8),_0x341649[_0x419f6b(0xb9c)]=_0x393840[_0x419f6b(0x26b6)][_0x419f6b(0x158f)](_0x341649['query'],_0x13788c)[_0x419f6b(0x2945)]);}function _0x3125f8(_0x49d08a,_0x153cae){const _0x4ffac7=_0x147a34;_0x51316e[_0x4ffac7(0x2615)]({'controller':_0x4ffac7(0x19fe),'controllerAs':'vm','templateUrl':_0x58a671,'parent':angular[_0x4ffac7(0x1853)](_0x5f261f[_0x4ffac7(0x2586)]),'targetEvent':_0x49d08a,'clickOutsideToClose':!![],'locals':{'agent':_0x153cae,'agents':_0x341649['agents'][_0x4ffac7(0x19c7)],'license':_0x341649[_0x4ffac7(0x2690)],'setting':_0x341649[_0x4ffac7(0x15b9)],'crudPermissions':_0x341649[_0x4ffac7(0x2514)]}});}function _0x50983e(_0x1cf073){const _0x2a1b4d=_0x147a34;_0x393840[_0x2a1b4d(0xe7b)][_0x2a1b4d(0x1fac)]({'id':_0x1cf073['id']})[_0x2a1b4d(0x2945)][_0x2a1b4d(0x146b)](function(){const _0x5ddc46=_0x2a1b4d;_0x3f65c0()[_0x5ddc46(0x2640)](_0x341649['agents'][_0x5ddc46(0x19c7)],{'id':_0x1cf073['id']}),_0x341649[_0x5ddc46(0x23c0)]['count']-=0x1,!_0x341649['agents']['rows']['length']&&_0x341649[_0x5ddc46(0x333)](),_0x23a963['success']({'title':_0x3f65c0()[_0x5ddc46(0x20d1)](_0x5ddc46(0x294a))+_0x5ddc46(0x201c),'msg':_0x1cf073[_0x5ddc46(0x19eb)]?_0x1cf073[_0x5ddc46(0x19eb)]+'\x20has\x20been\x20deleted!':''});})[_0x2a1b4d(0x129e)](function(_0x75da10){const _0x692d18=_0x2a1b4d;if(_0x75da10[_0x692d18(0x524)]&&_0x75da10[_0x692d18(0x524)][_0x692d18(0xcef)]&&_0x75da10['data'][_0x692d18(0xcef)][_0x692d18(0x402)]){_0x341649['errors']=_0x75da10[_0x692d18(0x524)]['errors']||[{'message':_0x75da10[_0x692d18(0xd5f)](),'type':_0x692d18(0xc69)}];for(let _0x286f87=0x0;_0x286f87<_0x75da10[_0x692d18(0x524)][_0x692d18(0xcef)]['length'];_0x286f87++){_0x23a963['error']({'title':_0x75da10[_0x692d18(0x524)][_0x692d18(0xcef)][_0x286f87][_0x692d18(0x1142)],'msg':_0x75da10[_0x692d18(0x524)][_0x692d18(0xcef)][_0x286f87][_0x692d18(0x7fd)]});}}else _0x23a963['error']({'title':_0x75da10[_0x692d18(0x107b)]?_0x692d18(0x262a)+_0x75da10[_0x692d18(0x107b)]+_0x692d18(0x1315)+_0x75da10[_0x692d18(0x167f)]:_0x692d18(0xc69),'msg':_0x75da10[_0x692d18(0x524)]?JSON['stringify'](_0x75da10[_0x692d18(0x524)][_0x692d18(0x7fd)]):_0x75da10['message']||_0x75da10[_0x692d18(0xd5f)]()});});}function _0x4cb96a(){const _0x4840cf=_0x147a34,_0x5e9889=angular[_0x4840cf(0x235a)](_0x341649['selectedAgents']);return _0x341649[_0x4840cf(0x100a)]=[],_0x5e9889;}function _0x2cd16e(_0x4eabf9){const _0x2aaebc=_0x147a34,_0x199be3=_0x51316e[_0x2aaebc(0x1e8a)]()[_0x2aaebc(0x1189)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20agents?')[_0x2aaebc(0x1cbe)](_0x2aaebc(0x16d3)+_0x341649[_0x2aaebc(0x100a)][_0x2aaebc(0x402)]+_0x2aaebc(0x2452)+_0x2aaebc(0xe01))['ariaLabel'](_0x2aaebc(0x2260))[_0x2aaebc(0x1f27)](_0x4eabf9)['ok']('OK')[_0x2aaebc(0x6c3)]('CANCEL');_0x51316e[_0x2aaebc(0x2615)](_0x199be3)[_0x2aaebc(0x146b)](function(){const _0x145c44=_0x2aaebc;_0x341649[_0x145c44(0x100a)]['forEach'](function(_0x4c60c2){_0x50983e(_0x4c60c2);}),_0x341649[_0x145c44(0x100a)]=[];});}function _0x587bda(){_0x341649['selectedAgents']=[];}function _0x1aca59(){const _0x2067aa=_0x147a34;_0x341649[_0x2067aa(0x100a)]=_0x341649[_0x2067aa(0x23c0)]['rows'];}}const _0x3173d8=_0x2fde47;;_0x512c4d[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),'$state',_0x313a4d(0xd08),_0x313a4d(0x10e8),'$q',_0x313a4d(0x214b),_0x313a4d(0x1fe4),'agents','agent','api',_0x313a4d(0xa87),_0x313a4d(0x2690),_0x313a4d(0x15b9),_0x313a4d(0x2514)];function _0x512c4d(_0x1e13f6,_0x2051cb,_0x10a090,_0x187178,_0x581d44,_0x45931b,_0x101dd8,_0x457cfa,_0x2383bb,_0x3aa6f8,_0x42c86a,_0x356231,_0x55e11d,_0x146eee){const _0x2a3a41=_0x313a4d,_0x2dfb27=this;_0x2dfb27[_0x2a3a41(0x2321)]=_0x42c86a[_0x2a3a41(0xb12)](),_0x2dfb27[_0x2a3a41(0xcef)]=[],_0x2dfb27['setting']=_0x55e11d,_0x2dfb27['license']=_0x356231,_0x2dfb27[_0x2a3a41(0x2514)]=_0x146eee,_0x2dfb27[_0x2a3a41(0x855)]={},_0x2dfb27['passwordPattern']=_0x2dfb27[_0x2a3a41(0x15b9)]&&_0x2dfb27['setting'][_0x2a3a41(0x976)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2dfb27[_0x2a3a41(0x1189)]=_0x2a3a41(0xede),_0x2dfb27[_0x2a3a41(0x1755)]=angular['copy'](_0x2383bb),_0x2dfb27['agents']=_0x457cfa,_0x2dfb27[_0x2a3a41(0x880)]=![];!_0x2dfb27['agent']&&(_0x2dfb27[_0x2a3a41(0x1755)]={'role':'agent','showWebBar':'0','autointernal':!![],'type':'friend','context':_0x2a3a41(0x57e),'phoneBarRemoteControl':!![],'phoneBarRemoteControlPort':0x26a0,'allowmessenger':!![]},_0x2dfb27[_0x2a3a41(0x1189)]=_0x2a3a41(0x1a41),_0x2dfb27[_0x2a3a41(0x880)]=!![]);_0x2dfb27[_0x2a3a41(0x1c5d)]=_0x372554,_0x2dfb27[_0x2a3a41(0x19c1)]=_0x2bb3eb,_0x2dfb27[_0x2a3a41(0xfdc)]=_0x499659,_0x2dfb27[_0x2a3a41(0xe73)]=_0x53d90c,_0x2dfb27[_0x2a3a41(0x13f3)]=_0x1765e0;function _0x372554(){const _0x12533b=_0x2a3a41;_0x2dfb27[_0x12533b(0xcef)]=[],_0x3aa6f8[_0x12533b(0xe7b)][_0x12533b(0x1e3)](_0x2dfb27[_0x12533b(0x1755)])['$promise'][_0x12533b(0x146b)](function(_0xf7c461){const _0xd17f92=_0x12533b;_0x2dfb27[_0xd17f92(0x23c0)]['unshift'](_0xf7c461[_0xd17f92(0x2488)]()),_0x101dd8[_0xd17f92(0x1c75)]({'title':'Agent\x20properly\x20created','msg':_0x2dfb27[_0xd17f92(0x1755)]['name']?_0x2dfb27[_0xd17f92(0x1755)][_0xd17f92(0x19eb)]+_0xd17f92(0x1386):''}),_0x1765e0(_0xf7c461);})[_0x12533b(0x129e)](function(_0x23efbe){const _0x1a32b0=_0x12533b;if(_0x23efbe[_0x1a32b0(0x524)]&&_0x23efbe['data']['errors']&&_0x23efbe[_0x1a32b0(0x524)][_0x1a32b0(0xcef)][_0x1a32b0(0x402)]){_0x2dfb27[_0x1a32b0(0xcef)]=_0x23efbe[_0x1a32b0(0x524)][_0x1a32b0(0xcef)]||[{'message':_0x23efbe[_0x1a32b0(0xd5f)](),'type':_0x1a32b0(0x2406)}];for(let _0x23ca97=0x0;_0x23ca97<_0x23efbe[_0x1a32b0(0x524)][_0x1a32b0(0xcef)][_0x1a32b0(0x402)];_0x23ca97+=0x1){_0x101dd8[_0x1a32b0(0x1980)]({'title':_0x23efbe[_0x1a32b0(0x524)][_0x1a32b0(0xcef)][_0x23ca97][_0x1a32b0(0x1142)],'msg':_0x23efbe[_0x1a32b0(0x524)][_0x1a32b0(0xcef)][_0x23ca97][_0x1a32b0(0x7fd)]});}}else _0x101dd8[_0x1a32b0(0x1980)]({'title':_0x23efbe[_0x1a32b0(0x107b)]?_0x1a32b0(0x262a)+_0x23efbe['status']+_0x1a32b0(0x1315)+_0x23efbe[_0x1a32b0(0x167f)]:'api.user.save','msg':_0x23efbe['data']?JSON[_0x1a32b0(0x10bb)](_0x23efbe[_0x1a32b0(0x524)][_0x1a32b0(0x7fd)]):_0x23efbe['toString']()});});}function _0x2bb3eb(){const _0x3ca23e=_0x2a3a41;_0x2dfb27[_0x3ca23e(0xcef)]=[],_0x3aa6f8[_0x3ca23e(0xe7b)][_0x3ca23e(0x18e1)]({'id':_0x2dfb27['agent']['id']},_0x2dfb27[_0x3ca23e(0x1755)])['$promise'][_0x3ca23e(0x146b)](function(_0x47f295){const _0x24dd0c=_0x3ca23e,_0x1ffc83=_0x3f65c0()['find'](_0x2dfb27[_0x24dd0c(0x23c0)],{'id':_0x47f295['id']});_0x1ffc83&&_0x3f65c0()[_0x24dd0c(0x168d)](_0x1ffc83,_0x3f65c0()[_0x24dd0c(0x40e)](_0x47f295[_0x24dd0c(0x2488)](),_0x3f65c0()[_0x24dd0c(0x627)](_0x1ffc83))),_0x101dd8[_0x24dd0c(0x1c75)]({'title':_0x24dd0c(0x2702),'msg':_0x2dfb27['agent'][_0x24dd0c(0x19eb)]?_0x2dfb27[_0x24dd0c(0x1755)][_0x24dd0c(0x19eb)]+_0x24dd0c(0x24db):''}),_0x1765e0(_0x47f295);})[_0x3ca23e(0x129e)](function(_0x67e722){const _0xbd8041=_0x3ca23e;if(_0x67e722[_0xbd8041(0x524)]&&_0x67e722['data'][_0xbd8041(0xcef)]&&_0x67e722[_0xbd8041(0x524)][_0xbd8041(0xcef)][_0xbd8041(0x402)]){_0x2dfb27['errors']=_0x67e722[_0xbd8041(0x524)]['errors']||[{'message':_0x67e722['toString'](),'type':'api.user.update'}];for(let _0x3f2fc4=0x0;_0x3f2fc4<_0x67e722['data'][_0xbd8041(0xcef)][_0xbd8041(0x402)];_0x3f2fc4++){_0x101dd8[_0xbd8041(0x1980)]({'title':_0x67e722[_0xbd8041(0x524)][_0xbd8041(0xcef)][_0x3f2fc4][_0xbd8041(0x1142)],'msg':_0x67e722['data'][_0xbd8041(0xcef)][_0x3f2fc4]['message']});}}else _0x101dd8[_0xbd8041(0x1980)]({'title':_0x67e722[_0xbd8041(0x107b)]?_0xbd8041(0x262a)+_0x67e722['status']+'\x20-\x20'+_0x67e722[_0xbd8041(0x167f)]:_0xbd8041(0x254f),'msg':_0x67e722[_0xbd8041(0x524)]?JSON[_0xbd8041(0x10bb)](_0x67e722[_0xbd8041(0x524)][_0xbd8041(0x7fd)]):_0x67e722[_0xbd8041(0xd5f)]()});});}function _0x499659(_0x510339){const _0x303d34=_0x2a3a41;_0x2dfb27[_0x303d34(0xcef)]=[];const _0x4ceeec=_0x187178[_0x303d34(0x1e8a)]()[_0x303d34(0x1189)](_0x303d34(0x1d64))[_0x303d34(0x80f)](_0x303d34(0x266c))[_0x303d34(0x4bd)](_0x303d34(0x59b))['ok'](_0x303d34(0x25de))[_0x303d34(0x6c3)](_0x303d34(0xcf0))['targetEvent'](_0x510339);_0x187178[_0x303d34(0x2615)](_0x4ceeec)[_0x303d34(0x146b)](function(){const _0xa2829=_0x303d34;_0x3aa6f8['user'][_0xa2829(0x1fac)]({'id':_0x2dfb27[_0xa2829(0x1755)]['id']})[_0xa2829(0x2945)][_0xa2829(0x146b)](function(){const _0x2b0280=_0xa2829;_0x3f65c0()[_0x2b0280(0x2640)](_0x2dfb27['agents'],{'id':_0x2dfb27[_0x2b0280(0x1755)]['id']}),_0x101dd8[_0x2b0280(0x1c75)]({'title':'Agent\x20properly\x20deleted!','msg':(_0x2dfb27['agent'][_0x2b0280(0x19eb)]||'agent')+_0x2b0280(0x23e3)}),_0x1765e0(_0x2dfb27['agent']);})[_0xa2829(0x129e)](function(_0x49a948){const _0x5f1bc4=_0xa2829;if(_0x49a948['data']&&_0x49a948[_0x5f1bc4(0x524)]['errors']&&_0x49a948['data'][_0x5f1bc4(0xcef)]['length']){_0x2dfb27[_0x5f1bc4(0xcef)]=_0x49a948[_0x5f1bc4(0x524)][_0x5f1bc4(0xcef)]||[{'message':_0x49a948[_0x5f1bc4(0xd5f)](),'type':_0x5f1bc4(0xddf)}];for(let _0x17611f=0x0;_0x17611f<_0x49a948[_0x5f1bc4(0x524)]['errors'][_0x5f1bc4(0x402)];_0x17611f++){_0x101dd8[_0x5f1bc4(0x1980)]({'title':_0x49a948[_0x5f1bc4(0x524)][_0x5f1bc4(0xcef)][_0x17611f]['type'],'msg':_0x49a948[_0x5f1bc4(0x524)][_0x5f1bc4(0xcef)][_0x17611f]['message']});}}else _0x101dd8[_0x5f1bc4(0x1980)]({'title':_0x49a948['status']?_0x5f1bc4(0x262a)+_0x49a948[_0x5f1bc4(0x107b)]+_0x5f1bc4(0x1315)+_0x49a948[_0x5f1bc4(0x167f)]:_0x5f1bc4(0xddf),'msg':_0x49a948[_0x5f1bc4(0x524)]?JSON[_0x5f1bc4(0x10bb)](_0x49a948[_0x5f1bc4(0x524)][_0x5f1bc4(0x7fd)]):_0x49a948[_0x5f1bc4(0x7fd)]||_0x49a948[_0x5f1bc4(0xd5f)]()});});},function(){});}function _0x53d90c(_0x348884){return _0x348884===null?undefined:new Date(_0x348884);}function _0x1765e0(_0x3726da){_0x187178['hide'](_0x3726da);}}const _0x2202e4=_0x512c4d;;_0x6534f8['$inject']=[_0x313a4d(0x23df),_0x313a4d(0x1fe4)];function _0x6534f8(_0x3d2d79,_0x104a0b){const _0x2beff5=_0x313a4d,_0x3817dd=this,_0x7a0482=0x8,_0x5c8f9b=_0x7a0482*0x400*0x400;_0x3817dd[_0x2beff5(0x1755)]={},_0x3817dd[_0x2beff5(0x2514)],_0x3817dd[_0x2beff5(0x4c3)]={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x5c8f9b,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x3817dd[_0x2beff5(0x1376)]={'flow':{}},_0x3817dd[_0x2beff5(0x240d)]=![],_0x3817dd[_0x2beff5(0x143d)]=_0x4cb310,_0x3817dd['upload']=_0x5b2361,_0x3817dd['fileSuccess']=_0x12d2a0,_0x3817dd[_0x2beff5(0x5aa)]=_0x563209;function _0x563209(_0x45d485,_0x564446){const _0x4d1c54=_0x2beff5;_0x3817dd['agent']=angular[_0x4d1c54(0x235a)](_0x45d485),_0x3817dd[_0x4d1c54(0x2514)]=typeof _0x564446!==_0x4d1c54(0x2274)?_0x564446:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x3817dd[_0x4d1c54(0x4c3)][_0x4d1c54(0xe1d)]='api/users/'+_0x3817dd['agent']['id']+_0x4d1c54(0xf07),_0x3817dd['agent'][_0x4d1c54(0x1f07)]=[];}function _0x4cb310(_0x375154){const _0x33f767=_0x2beff5,_0x31b40e=[_0x33f767(0xadf),_0x33f767(0x621)];if(!_0x3f65c0()['includes'](_0x31b40e,_0x375154[_0x33f767(0x193f)]()))return _0x104a0b[_0x33f767(0x1980)]({'title':_0x33f767(0x4c6)+_0x375154[_0x33f767(0x193f)](),'msg':_0x33f767(0x208f)+_0x31b40e['join']()}),![];if(_0x375154[_0x33f767(0x4cc)]>_0x5c8f9b)return _0x104a0b[_0x33f767(0x1980)]({'title':_0x33f767(0x625),'msg':_0x33f767(0x923)+_0x7a0482+'MB'}),![];const _0x1bfa86={'id':_0x375154[_0x33f767(0x1276)],'file':_0x375154,'type':_0x33f767(0x159c)};return _0x3817dd[_0x33f767(0x1755)][_0x33f767(0x1f07)][_0x33f767(0xb3d)](_0x1bfa86),!![];}function _0x5b2361(){const _0x5526d1=_0x2beff5;_0x3817dd['ngFlow'][_0x5526d1(0x963)][_0x5526d1(0x1da1)][_0x5526d1(0xa01)]={'X-Requested-With':_0x5526d1(0x1f8f),'Authorization':_0x5526d1(0x2745)+_0x3d2d79[_0x5526d1(0x16b4)]('motion.token')},_0x3817dd[_0x5526d1(0x1376)]['flow'][_0x5526d1(0x1dc6)]();}function _0x12d2a0(_0x57bc0d){const _0x4df282=_0x2beff5;angular[_0x4df282(0x1df5)](_0x3817dd[_0x4df282(0x1755)][_0x4df282(0x1f07)],function(_0x39ef5c){const _0xc3b7d0=_0x4df282;if(_0x39ef5c['id']===_0x57bc0d[_0xc3b7d0(0x1276)]){const _0x463147=new FileReader();_0x463147[_0xc3b7d0(0xa0c)](_0x39ef5c[_0xc3b7d0(0x252e)]['file']),_0x463147[_0xc3b7d0(0x20f6)]=function(_0x1c71cf){const _0x5e3aa5=_0xc3b7d0;_0x39ef5c[_0x5e3aa5(0x20cc)]=_0x1c71cf[_0x5e3aa5(0xe1d)]['result'];},_0x39ef5c[_0xc3b7d0(0x1142)]=_0xc3b7d0(0x106c);}});}}const _0x3829cc=_0x6534f8;;_0x17c4da[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x10e8),_0x313a4d(0x1fe4),_0x313a4d(0x247f),'agent','setting',_0x313a4d(0xa87)];function _0x17c4da(_0x351db6,_0x3f9293,_0x26f85e,_0x1c7ece,_0x91bda2,_0x38f53d,_0x39c7ee){const _0x36e29e=_0x313a4d,_0x4fa277=this;_0x4fa277['currentUser']=_0x39c7ee[_0x36e29e(0xb12)](),_0x4fa277[_0x36e29e(0xcef)]=[],_0x4fa277['setting']=_0x38f53d,_0x4fa277[_0x36e29e(0x2251)]=_0x4fa277['setting'][_0x36e29e(0x976)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x4fa277[_0x36e29e(0x1755)]=_0x91bda2,_0x4fa277['password']='',_0x4fa277[_0x36e29e(0x2571)]='',_0x4fa277[_0x36e29e(0x23b7)]=_0x5e1969,_0x4fa277[_0x36e29e(0x13f3)]=_0x39a5a6,_0x351db6[_0x36e29e(0x21e8)]('vm.password',function(_0x3be4eb){const _0x46eeb3=_0x36e29e;!_0x3f65c0()[_0x46eeb3(0x1b36)](_0x4fa277['oldPassword'])&&(_0x3be4eb===_0x4fa277['oldPassword']?_0x351db6[_0x46eeb3(0x129d)][_0x46eeb3(0xf37)][_0x46eeb3(0x24f8)](_0x46eeb3(0x1e40),![]):_0x351db6[_0x46eeb3(0x129d)]['password'][_0x46eeb3(0x24f8)](_0x46eeb3(0x1e40),!![]));});function _0x5e1969(){const _0x491d70=_0x36e29e;_0x4fa277[_0x491d70(0xcef)]=[];const _0xe8c243={'id':_0x4fa277[_0x491d70(0x1755)]['id'],'newPassword':_0x4fa277[_0x491d70(0xf37)]};_0x4fa277[_0x491d70(0x2321)]['id']==_0x4fa277[_0x491d70(0x1755)]['id']&&(_0xe8c243[_0x491d70(0x2571)]=_0x4fa277[_0x491d70(0x2571)]),_0x1c7ece[_0x491d70(0xe7b)][_0x491d70(0x171a)](_0xe8c243)[_0x491d70(0x2945)][_0x491d70(0x146b)](function(){const _0x573249=_0x491d70;_0x26f85e[_0x573249(0x1c75)]({'title':_0x573249(0x23a9)}),_0x39a5a6();})[_0x491d70(0x129e)](function(_0x9d6568){const _0x31d2ce=_0x491d70;_0x26f85e['error']({'title':_0x9d6568[_0x31d2ce(0x107b)]?_0x31d2ce(0x262a)+_0x9d6568[_0x31d2ce(0x107b)]+_0x31d2ce(0x1315)+_0x9d6568[_0x31d2ce(0x167f)]:_0x31d2ce(0xf4),'msg':_0x9d6568['data']?JSON[_0x31d2ce(0x10bb)](_0x9d6568[_0x31d2ce(0x524)]['message']):_0x9d6568[_0x31d2ce(0xd5f)]()}),_0x4fa277[_0x31d2ce(0xcef)]=_0x9d6568[_0x31d2ce(0x524)][_0x31d2ce(0xcef)]||[{'message':_0x9d6568[_0x31d2ce(0xd5f)](),'type':_0x31d2ce(0x2001)}];});}function _0x39a5a6(){const _0xaab3af=_0x36e29e;_0x3f9293[_0xaab3af(0x2458)]();}}const _0x42c883=_0x17c4da;;_0x3d235b['$inject']=['$document','$mdDialog',_0x313a4d(0x247f),'msNavigationAgentService','toasty'];function _0x3d235b(_0x22899b,_0x1e6119,_0x4e41c4,_0x16680f,_0x111f65){const _0x26888e=_0x313a4d,_0x43f80d=this;_0x43f80d[_0x26888e(0x1755)]={},_0x43f80d[_0x26888e(0x145c)]=_0x16680f[_0x26888e(0x5c4)](),_0x43f80d['crudPermissions'],_0x43f80d[_0x26888e(0x5aa)]=_0x57ebf3,_0x43f80d[_0x26888e(0x1f31)]=_0x5465f3;function _0x57ebf3(_0x1793d5,_0x1f9b72){const _0x346190=_0x26888e;_0x43f80d['agent']=_0x1793d5,_0x43f80d[_0x346190(0x2514)]=typeof _0x1f9b72!==_0x346190(0x2274)?_0x1f9b72:{'readOnly':!![],'canEdit':![],'canDelete':![]};}function _0x5465f3(_0x4bfeab,_0x4cc866){const _0x34b229=_0x26888e,_0x3134dc=_0x4cc866||_0x4bfeab;if(_0x3134dc['enabled']){if(_0x4cc866)_0x4cc866[_0x34b229(0x193e)]=!![],_0x43f80d['agent']['permissions']['push'](_0x4cc866['id']);else for(let _0x4668d9=0x0;_0x4668d9<_0x4bfeab[_0x34b229(0x20d0)][_0x34b229(0x402)];_0x4668d9++){_0x4bfeab[_0x34b229(0x20d0)][_0x4668d9]['enabled']=!![],_0x43f80d[_0x34b229(0x1755)][_0x34b229(0x1f54)][_0x34b229(0x1f47)](_0x4bfeab[_0x34b229(0x20d0)][_0x4668d9]['id']);}_0x4bfeab[_0x34b229(0x193e)]=!![],_0x43f80d[_0x34b229(0x1755)][_0x34b229(0x1f54)]['push'](_0x4bfeab['id']);}else{if(_0x4cc866)_0x4cc866[_0x34b229(0x193e)]=![],_0x3f65c0()[_0x34b229(0x2640)](_0x43f80d[_0x34b229(0x1755)][_0x34b229(0x1f54)],function(_0x310122){return _0x4cc866['id']===_0x310122;}),_0x3f65c0()[_0x34b229(0x1dd6)](_0x4bfeab[_0x34b229(0x20d0)],{'enabled':![]})[_0x34b229(0x402)]===_0x4bfeab[_0x34b229(0x20d0)]['length']&&(_0x4bfeab['enabled']=![],_0x3f65c0()['remove'](_0x43f80d[_0x34b229(0x1755)]['permissions'],function(_0x32a910){return _0x4bfeab['id']===_0x32a910;}));else{_0x4bfeab[_0x34b229(0x193e)]=![],_0x3f65c0()[_0x34b229(0x2640)](_0x43f80d[_0x34b229(0x1755)][_0x34b229(0x1f54)],function(_0xd856c0){return _0x4bfeab['id']===_0xd856c0;});for(let _0x2d23dd=0x0;_0x2d23dd<_0x4bfeab[_0x34b229(0x20d0)][_0x34b229(0x402)];_0x2d23dd++){_0x4bfeab[_0x34b229(0x20d0)][_0x2d23dd][_0x34b229(0x193e)]=![],_0x3f65c0()['remove'](_0x43f80d[_0x34b229(0x1755)][_0x34b229(0x1f54)],function(_0x2743d4){const _0x2fb4be=_0x34b229;return _0x4bfeab[_0x2fb4be(0x20d0)][_0x2d23dd]['id']===_0x2743d4;});}}}return _0x4e41c4[_0x34b229(0xe7b)][_0x34b229(0x18e1)]({'id':_0x43f80d[_0x34b229(0x1755)]['id'],'permissions':_0x3f65c0()[_0x34b229(0x918)](_0x43f80d[_0x34b229(0x1755)][_0x34b229(0x1f54)])})['$promise'][_0x34b229(0x146b)](function(){const _0x509000=_0x34b229;_0x111f65[_0x509000(0x1c75)]({'title':_0x509000(0x3a8),'msg':_0x43f80d[_0x509000(0x1755)][_0x509000(0x19eb)]?_0x43f80d['agent']['name']+_0x509000(0x6b0):''});})[_0x34b229(0x129e)](function(_0xcb89c9){const _0x27451e=_0x34b229;console[_0x27451e(0x1980)](_0xcb89c9);});}}const _0x565307=_0x3d235b;;_0xfe02f8[_0x313a4d(0x11c2)]=[_0x313a4d(0x10e8),'$q',_0x313a4d(0x1fe4),_0x313a4d(0x247f),_0x313a4d(0x1755),'channel',_0x313a4d(0x26cc),_0x313a4d(0x214b),_0x313a4d(0xa87),_0x313a4d(0x2514)];function _0xfe02f8(_0x1fd6dc,_0x42eaf5,_0x2ce3bc,_0x561f59,_0x474a96,_0x172dc2,_0x35daf3,_0x414a34,_0x21e2b6,_0x54e0cd){const _0x43197b=_0x313a4d,_0x108721=this;_0x108721[_0x43197b(0x2321)]=_0x21e2b6['getCurrentUser'](),_0x108721[_0x43197b(0x1755)]=_0x474a96,_0x108721[_0x43197b(0x2514)]=_0x54e0cd,_0x108721['penalty']=0x0,_0x108721[_0x43197b(0x2894)]=_0x172dc2,_0x108721[_0x43197b(0x26cc)]=_0x35daf3,_0x108721[_0x43197b(0x320)]=_0x108721['channel']+'Queue',_0x108721[_0x43197b(0x1189)]=_0x414a34[_0x43197b(0xde)](_0x43197b(0x21eb)+_0x108721['channel']['toUpperCase']()+'_'+_0x108721[_0x43197b(0x26cc)]['toUpperCase']()),_0x108721[_0x43197b(0x1fd6)]=[],_0x108721[_0x43197b(0xc4e)]=[],_0x108721[_0x43197b(0x1ecf)]=[],_0x108721[_0x43197b(0x2e8)]=[],_0x108721[_0x43197b(0xa65)]=[],_0x108721[_0x43197b(0x132)]=![],_0x108721[_0x43197b(0x1f8a)]={'readOnly':!_0x108721['crudPermissions'][_0x43197b(0x15f4)],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x43197b(0x19eb),'line1':_0x43197b(0x19eb),'line2':_0x43197b(0x1142),'line3':_0x108721[_0x43197b(0x2894)]===_0x43197b(0xe6)?_0x43197b(0x188d):'','labelAll':_0x414a34['instant']('STAFF.ALL_QUEUES_'+_0x108721[_0x43197b(0x2894)][_0x43197b(0x1c37)]()+'_'+_0x108721[_0x43197b(0x26cc)][_0x43197b(0x1c37)]()),'labelSelected':_0x414a34['instant']('STAFF.SELECTED_QUEUES_'+_0x108721['channel'][_0x43197b(0x1c37)]()+'_'+_0x108721[_0x43197b(0x26cc)][_0x43197b(0x1c37)]()),'transferCallback':function(_0x5f4523,_0x2f6b86){const _0x3e6f45=_0x43197b;_0x2f6b86?_0x5f4523[_0x3e6f45(0x1df5)](function(_0x591f6d){const _0x235e63=_0x3e6f45;_0x591f6d[_0x235e63(0x188d)]=undefined;}):_0x5f4523[_0x3e6f45(0x1df5)](function(_0x290e89){const _0x1ffd3c=_0x3e6f45;_0x290e89['penalty']=_0x1ffd3c(0x2505)+_0x108721[_0x1ffd3c(0x188d)];});const _0x2872a1=_0x3f65c0()['xorWith'](_0x108721[_0x3e6f45(0xa65)],_0x108721[_0x3e6f45(0x1ecf)],function(_0x4958c8,_0x455979){const _0x1ed3f2=_0x3e6f45;return _0x4958c8['id']===_0x455979['id']&&_0x4958c8[_0x1ed3f2(0x188d)]===_0x455979[_0x1ed3f2(0x188d)];});_0x108721[_0x3e6f45(0x132)]=_0x3f65c0()[_0x3e6f45(0x2635)](_0x2872a1)?![]:!![];}},_0x108721[_0x43197b(0x3d4)]=_0x2109a6,_0x108721['saveQueues']=_0x5b3e0f,_0x108721[_0x43197b(0x13f3)]=_0x1668e6;function _0x2109a6(){const _0x1dca57=_0x43197b;return _0x21e2b6[_0x1dca57(0x23e0)]('admin')?_0x3d7d23()[_0x1dca57(0x129e)](function(_0x4bacda){const _0x57346a=_0x1dca57;_0x2ce3bc[_0x57346a(0x1980)]({'title':_0x4bacda[_0x57346a(0x107b)]?'API:'+_0x4bacda[_0x57346a(0x107b)]+_0x57346a(0x1315)+_0x4bacda[_0x57346a(0x167f)]:'SYSTEM:GET_QUEUES','msg':_0x4bacda['status']?JSON[_0x57346a(0x10bb)](_0x4bacda['data']):_0x4bacda['toString']()});}):_0x1bcee4()[_0x1dca57(0x146b)](function(_0x19dee2){const _0x1105e3=_0x1dca57;return _0x108721[_0x1105e3(0x2146)]=_0x19dee2,_0x3d7d23();})[_0x1dca57(0x129e)](function(_0x2bdf34){const _0x10129d=_0x1dca57;_0x2ce3bc[_0x10129d(0x1980)]({'title':_0x2bdf34['status']?'API:'+_0x2bdf34[_0x10129d(0x107b)]+_0x10129d(0x1315)+_0x2bdf34['statusText']:_0x10129d(0x22d8),'msg':_0x2bdf34[_0x10129d(0x107b)]?JSON[_0x10129d(0x10bb)](_0x2bdf34[_0x10129d(0x524)]):_0x2bdf34[_0x10129d(0xd5f)]()});});}function _0x1bcee4(){return _0x42eaf5(function(_0x522e9b,_0x5d5d9c){const _0x219fae=a0_0x3bb9;let _0x3ec7fa;switch(_0x108721['channel']){case _0x219fae(0xe6):switch(_0x108721[_0x219fae(0x26cc)]){case _0x219fae(0x7b0):_0x3ec7fa=_0x219fae(0x507);break;case _0x219fae(0xc9c):_0x3ec7fa=_0x219fae(0x15d6);break;}break;case _0x219fae(0xa7f):_0x3ec7fa=_0x219fae(0x1d54);break;case'mail':_0x3ec7fa=_0x219fae(0xf4d);break;case _0x219fae(0x929):_0x3ec7fa='SmsQueues';break;case _0x219fae(0x7d9):_0x3ec7fa='OpenchannelQueues';break;case _0x219fae(0x22d9):_0x3ec7fa=_0x219fae(0x2915);break;}_0x561f59[_0x219fae(0x1366)][_0x219fae(0x16b4)]({'userProfileId':_0x108721[_0x219fae(0x2321)][_0x219fae(0x209a)],'name':_0x3ec7fa})[_0x219fae(0x2945)][_0x219fae(0x146b)](function(_0x43354d){const _0x43d17b=_0x219fae,_0x44aa1e=_0x43354d&&_0x43354d[_0x43d17b(0x19c7)]?_0x43354d['rows'][0x0]:null;_0x522e9b(_0x44aa1e);})[_0x219fae(0x129e)](function(_0x265729){_0x5d5d9c(_0x265729);});});}function _0x3d7d23(){return _0x42eaf5(function(_0x214e03,_0x576723){const _0x1c9703=a0_0x3bb9;return _0x29f5d3()[_0x1c9703(0x146b)](function(_0x53e6f0){const _0x5e1026=_0x1c9703;return _0x108721[_0x5e1026(0x1fd6)]=_0x53e6f0[_0x5e1026(0x19c7)]?_0x53e6f0['rows']:[],_0x21e2b6[_0x5e1026(0x23e0)](_0x5e1026(0x174b))?_0x53e6f0:_0x108721[_0x5e1026(0x2146)]?_0x108721[_0x5e1026(0x2146)][_0x5e1026(0x11d2)]?_0x53e6f0:_0x407a6a():null;})[_0x1c9703(0x146b)](function(_0x5a10e6){const _0x46c867=_0x1c9703,_0x26c56d=_0x5a10e6&&_0x5a10e6[_0x46c867(0x19c7)]?_0x5a10e6[_0x46c867(0x19c7)]:[];return _0x108721[_0x46c867(0xc4e)]=_0x3f65c0()[_0x46c867(0x205)](_0x26c56d,function(_0x3f6e68){const _0x5207e3=_0x46c867;return _0x3f65c0()[_0x5207e3(0xc84)](_0x108721[_0x5207e3(0x1fd6)],{'id':_0x21e2b6[_0x5207e3(0x23e0)](_0x5207e3(0x174b))||_0x108721[_0x5207e3(0x2146)][_0x5207e3(0x11d2)]?_0x3f6e68['id']:_0x3f6e68[_0x5207e3(0x18b8)]});}),_0x108721[_0x46c867(0x2e8)]=angular['copy'](_0x108721[_0x46c867(0xc4e)]),_0x108721[_0x46c867(0x1fd6)][_0x46c867(0x1df5)](function(_0x30ff6b){const _0x38c414=_0x46c867,_0x3e14a6=_0x3f65c0()['find'](_0x108721['allowedItems'],{'id':_0x30ff6b['id']});_0x21e2b6[_0x38c414(0x23e0)](_0x38c414(0x174b))?_0x30ff6b[_0x38c414(0x146f)]=!![]:_0x30ff6b[_0x38c414(0x146f)]=typeof _0x3e14a6!==_0x38c414(0x2274)?!![]:![];}),_0x33258f();})['then'](function(_0x480458){const _0x4f6ba8=_0x1c9703,_0x30676d=_0x480458&&_0x480458[_0x4f6ba8(0x19c7)]?_0x480458['rows']:[];_0x108721[_0x4f6ba8(0x1ecf)]=_0x3f65c0()[_0x4f6ba8(0x205)](_0x30676d,function(_0x1d513a){const _0x4442ed=_0x4f6ba8,_0x186094=_0x3f65c0()[_0x4442ed(0xc84)](_0x108721[_0x4442ed(0x1fd6)],{'id':_0x1d513a['id']});return _0x108721[_0x4442ed(0x2894)]===_0x4442ed(0xe6)&&(_0x186094[_0x4442ed(0x188d)]=typeof _0x186094!==_0x4442ed(0x2274)&&typeof _0x1d513a[_0x4442ed(0x1f91)]!==_0x4442ed(0x2274)?_0x4442ed(0x2505)+_0x1d513a[_0x4442ed(0x1f91)][_0x4442ed(0x188d)]:_0x4442ed(0x2505)+0x0),_0x186094;}),_0x108721['startingSelectedItems']=angular[_0x4f6ba8(0x235a)](_0x108721[_0x4f6ba8(0x1ecf)]),_0x108721['dualMultiselectOptions'][_0x4f6ba8(0x1ecf)]=_0x108721[_0x4f6ba8(0x1ecf)],_0x108721['dualMultiselectOptions']['items']=_0x3f65c0()['differenceBy'](_0x108721[_0x4f6ba8(0xc4e)],_0x108721[_0x4f6ba8(0x1f8a)][_0x4f6ba8(0x1ecf)],'id'),_0x214e03();})[_0x1c9703(0x129e)](function(_0x15e43b){_0x576723(_0x15e43b);});});}function _0x407a6a(){return _0x42eaf5(function(_0x2d6b02,_0x300747){const _0x8c68c1=a0_0x3bb9;return _0x561f59[_0x8c68c1(0xdcc)][_0x8c68c1(0x16b4)]({'sectionId':_0x108721[_0x8c68c1(0x2146)]['id'],'nolimit':!![]})[_0x8c68c1(0x2945)][_0x8c68c1(0x146b)](function(_0x48f15b){_0x2d6b02(_0x48f15b);})[_0x8c68c1(0x129e)](function(_0x8c22ec){_0x300747(_0x8c22ec);});});}function _0x33258f(){return _0x42eaf5(function(_0x25c850,_0x2400f4){const _0x4e6512=a0_0x3bb9;return _0x561f59[_0x4e6512(0xe7b)]['getQueues']({'id':_0x108721[_0x4e6512(0x1755)]['id'],'fields':'id,name,strategy,type,penalty','nolimit':!![],'type':_0x108721[_0x4e6512(0x26cc)],'channel':_0x108721['channel']})['$promise']['then'](function(_0x675fb7){_0x25c850(_0x675fb7);})[_0x4e6512(0x129e)](function(_0x1c3617){_0x2400f4(_0x1c3617);});});}function _0x29f5d3(){return _0x42eaf5(function(_0x2402a2,_0x24b848){const _0x2da7f4=a0_0x3bb9;return _0x561f59[_0x108721[_0x2da7f4(0x320)]][_0x2da7f4(0x16b4)]({'fields':_0x2da7f4(0x1005),'channel':_0x108721[_0x2da7f4(0x2894)]==='bull'?_0x2da7f4(0xe6):_0x108721['channel'],'type':_0x108721[_0x2da7f4(0x26cc)],'nolimit':!![]})['$promise'][_0x2da7f4(0x146b)](function(_0x1e13c5){_0x2402a2(_0x1e13c5);})[_0x2da7f4(0x129e)](function(_0x39e91e){_0x24b848(_0x39e91e);});});}function _0x4f5704(_0x2c3996){return _0x42eaf5(function(_0x8acc00,_0x12c625){const _0x2ffb27=a0_0x3bb9;if(_0x3f65c0()['isEmpty'](_0x2c3996))_0x8acc00();else{if(_0x108721['channel']===_0x2ffb27(0xe6)){const _0x5397a0=[],_0x881876=_0x3f65c0()[_0x2ffb27(0x253)](_0x2c3996,_0x2ffb27(0x188d));for(let _0x269645=0x0;_0x269645':'',_0x2c26d5;}),_0x63b8b[_0x2eb592(0xa65)]=angular[_0x2eb592(0x235a)](_0x63b8b['selectedItems']),_0x63b8b[_0x2eb592(0x1f8a)][_0x2eb592(0x1ecf)]=_0x63b8b[_0x2eb592(0x1ecf)],_0x63b8b[_0x2eb592(0x1f8a)][_0x2eb592(0x1fd6)]=_0x3f65c0()[_0x2eb592(0x2796)](_0x63b8b[_0x2eb592(0xc4e)],_0x63b8b[_0x2eb592(0x1f8a)]['selectedItems'],'id'),_0x2859e3();})[_0x42fdff(0x129e)](function(_0x1ac8cf){_0x222df3(_0x1ac8cf);});});}function _0x31ced0(){return _0x464ea7(function(_0x263fc4,_0x27be86){const _0xbf0d39=a0_0x3bb9;return _0x3c07de[_0xbf0d39(0xdcc)][_0xbf0d39(0x16b4)]({'sectionId':_0x63b8b[_0xbf0d39(0x2146)]['id'],'nolimit':!![]})[_0xbf0d39(0x2945)][_0xbf0d39(0x146b)](function(_0x452f10){_0x263fc4(_0x452f10);})[_0xbf0d39(0x129e)](function(_0x33b503){_0x27be86(_0x33b503);});});}function _0x319f1e(){return _0x464ea7(function(_0x449a5f,_0x46b926){const _0x5c1068=a0_0x3bb9;return _0x3c07de[_0x5c1068(0x23f1)][_0x5c1068(0x333)]({'id':_0x63b8b[_0x5c1068(0x23f1)]['id'],'fields':'id,name,internal,fullname','nolimit':!![],'role':'agent'})['$promise'][_0x5c1068(0x146b)](function(_0x266a0b){_0x449a5f(_0x266a0b);})[_0x5c1068(0x129e)](function(_0x1fb170){_0x46b926(_0x1fb170);});});}function _0x1e0c06(){return _0x464ea7(function(_0x2503fb,_0x19b46e){const _0x79d040=a0_0x3bb9;return _0x3c07de[_0x79d040(0xe7b)][_0x79d040(0x16b4)]({'fields':_0x79d040(0x1569),'nolimit':!![],'role':'agent'})[_0x79d040(0x2945)][_0x79d040(0x146b)](function(_0x1c2766){_0x2503fb(_0x1c2766);})[_0x79d040(0x129e)](function(_0x1c3cf5){_0x19b46e(_0x1c3cf5);});});}function _0xccf47a(_0x523e08){return _0x464ea7(function(_0x495a9e,_0x14299c){const _0x1af881=a0_0x3bb9;_0x3f65c0()[_0x1af881(0x2635)](_0x523e08)?_0x495a9e():_0x3c07de['team'][_0x1af881(0x135e)]({'id':_0x63b8b[_0x1af881(0x23f1)]['id'],'ids':_0x3f65c0()[_0x1af881(0x205)](_0x523e08,'id')})[_0x1af881(0x2945)][_0x1af881(0x146b)](function(){_0x495a9e();})[_0x1af881(0x129e)](function(_0x1dca10){_0x14299c(_0x1dca10);});});}function _0x59ee2f(_0x1bae5a){return _0x464ea7(function(_0x5b8b48,_0x157a2a){const _0x1985e9=a0_0x3bb9;_0x3f65c0()[_0x1985e9(0x2635)](_0x1bae5a)?_0x5b8b48():_0x3c07de[_0x1985e9(0x23f1)][_0x1985e9(0x1f53)]({'id':_0x63b8b[_0x1985e9(0x23f1)]['id'],'ids':_0x3f65c0()[_0x1985e9(0x205)](_0x1bae5a,'id')})[_0x1985e9(0x2945)][_0x1985e9(0x146b)](function(){_0x5b8b48();})['catch'](function(_0x1854df){_0x157a2a(_0x1854df);});});}function _0x2218f5(){const _0x42ef54=_0xe7641f,_0x426eed=_0x3f65c0()['differenceBy'](_0x63b8b['startingSelectedItems'],_0x63b8b[_0x42ef54(0x1ecf)],'id'),_0x330002=_0x3f65c0()['differenceBy'](_0x63b8b['selectedItems'],_0x63b8b['startingSelectedItems'],'id');return _0x59ee2f(_0x426eed)['then'](function(){return _0xccf47a(_0x330002);})[_0x42ef54(0x146b)](function(){const _0xa862da=_0x42ef54;_0x63b8b[_0xa862da(0x132)]=![],_0x63b8b[_0xa862da(0x2e8)]=angular['copy'](_0x63b8b['allowedItems']),_0x63b8b[_0xa862da(0xa65)]=angular[_0xa862da(0x235a)](_0x63b8b[_0xa862da(0x1ecf)]),_0x55304c[_0xa862da(0x1c75)]({'title':'SUCCESS','msg':_0xa862da(0x26be)});})['catch'](function(_0x236504){const _0x55ced1=_0x42ef54;_0x55304c[_0x55ced1(0x1980)]({'title':_0x236504[_0x55ced1(0x107b)]?'API:'+_0x236504[_0x55ced1(0x107b)]+'\x20-\x20'+_0x236504[_0x55ced1(0x167f)]:'SYSTEM:LISTS_ASSOCIATION','msg':_0x236504[_0x55ced1(0x107b)]?JSON['stringify'](_0x236504[_0x55ced1(0x524)]):_0x236504[_0x55ced1(0xd5f)]()});});}function _0x366597(){const _0xa91250=_0xe7641f;_0x21db15[_0xa91250(0x2458)]();}}const _0x19671f=_0x3d6d98;;const _0x319dda=_0x4acfac['p']+_0x313a4d(0x413);;const _0x1cea14=_0x4acfac['p']+_0x313a4d(0x18bb);;_0x30eff5[_0x313a4d(0x11c2)]=['$scope',_0x313a4d(0x1aa9),'$state','$mdSidenav',_0x313a4d(0x10e8),'$document',_0x313a4d(0x1abe),_0x313a4d(0x214b),_0x313a4d(0x26f4),_0x313a4d(0x26b6),_0x313a4d(0x1366),_0x313a4d(0x247f),_0x313a4d(0x216c),_0x313a4d(0x1fe4),'Auth',_0x313a4d(0x2690),_0x313a4d(0x15b9)];function _0x30eff5(_0x14453d,_0x5f0345,_0x35a531,_0x1b4ca7,_0x5ed0e9,_0x21422b,_0x1d2d9a,_0x1a9376,_0x5171c,_0xb6ecc2,_0x12ab45,_0x4de045,_0x39221d,_0x3da5ad,_0x4bf8a5,_0x31674e,_0x4f723f){const _0x1c523f=_0x313a4d,_0x543753=this;_0x543753[_0x1c523f(0x2690)]=_0x31674e,_0x543753[_0x1c523f(0x15b9)]=_0x4f723f,_0x543753[_0x1c523f(0x2321)]=_0x4bf8a5['getCurrentUser'](),_0x543753[_0x1c523f(0x26f4)]=_0x5171c||{'count':0x0,'rows':[]},_0x543753['userProfile']=_0xb6ecc2,_0x543753['userProfileSection']=_0x12ab45&&_0x12ab45[_0x1c523f(0x51c)]==0x1?_0x12ab45[_0x1c523f(0x19c7)][0x0]:null,_0x543753[_0x1c523f(0x2514)]=_0x4bf8a5[_0x1c523f(0xe60)](_0x543753['userProfileSection']?_0x543753[_0x1c523f(0x1366)][_0x1c523f(0x2514)]:null),_0x543753[_0x1c523f(0x768)]=_0x1c523f(0x26f4),_0x543753[_0x1c523f(0x216a)]='',_0x543753[_0x1c523f(0x214f)]=null,_0x543753[_0x1c523f(0x1c73)]=[],_0x543753[_0x1c523f(0x1a56)]={'fields':'createdAt,updatedAt,id,name,description','sort':'-updatedAt','limit':0xa,'page':0x1},_0x543753[_0x1c523f(0x2ed)]=_0x3535eb,_0x543753[_0x1c523f(0x1027)]=_0x20a5ff,_0x543753[_0x1c523f(0xf0a)]=_0xf544b4,_0x543753[_0x1c523f(0x1c75)]=_0x2b79cd,_0x543753[_0x1c523f(0x11d1)]=_0x5545c2,_0x543753['createOrEditTeam']=_0x28ce34,_0x543753['deleteTeam']=_0x2537f7,_0x543753[_0x1c523f(0x25d6)]=_0xcc877e,_0x543753[_0x1c523f(0x1208)]=_0x20473e,_0x543753[_0x1c523f(0x44c)]=_0x4be07b,_0x543753[_0x1c523f(0x26e5)]=_0x59038b;function _0x3535eb(_0x4d4a94,_0x40ea61){const _0xa34ff5=_0x1c523f;_0x5ed0e9[_0xa34ff5(0x2615)]({'controller':_0xa34ff5(0xf60),'controllerAs':'vm','templateUrl':_0x319dda,'parent':angular[_0xa34ff5(0x1853)](_0x21422b[_0xa34ff5(0x2586)]),'targetEvent':_0x40ea61,'clickOutsideToClose':!![],'locals':{'team':_0x4d4a94,'teams':_0x543753['teams'][_0xa34ff5(0x19c7)],'license':_0x543753[_0xa34ff5(0x2690)],'setting':null,'crudPermissions':_0x543753[_0xa34ff5(0x2514)]}});}function _0x20a5ff(_0xd2da1d,_0x4f6bc5){const _0x9b95d6=_0x1c523f;_0x5ed0e9[_0x9b95d6(0x2615)]({'controller':_0x9b95d6(0x132c),'controllerAs':'vm','templateUrl':_0x1cea14,'parent':angular['element'](_0x21422b['body']),'targetEvent':_0x4f6bc5,'clickOutsideToClose':!![],'locals':{'team':_0xd2da1d,'teams':_0x543753[_0x9b95d6(0x26f4)]?_0x543753[_0x9b95d6(0x26f4)][_0x9b95d6(0x19c7)]:[],'crudPermissions':_0x543753[_0x9b95d6(0x2514)],'realtime':![]}});}function _0xf544b4(_0xa524c0,_0x2d9e05){const _0x3d32fa=_0x1c523f,_0x3632e9=_0x5ed0e9[_0x3d32fa(0x1e8a)]()[_0x3d32fa(0x1189)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x3f65c0()[_0x3d32fa(0x20d1)](_0x3d32fa(0x23f1))+'?')[_0x3d32fa(0x1cbe)](_0x3d32fa(0x16d3)+(_0xa524c0[_0x3d32fa(0x19eb)]||_0x3d32fa(0x23f1))+_0x3d32fa(0x252f)+_0x3d32fa(0xe01))[_0x3d32fa(0x4bd)]('delete\x20team')[_0x3d32fa(0x1f27)](_0x2d9e05)['ok']('OK')[_0x3d32fa(0x6c3)](_0x3d32fa(0x39a));_0x5ed0e9[_0x3d32fa(0x2615)](_0x3632e9)[_0x3d32fa(0x146b)](function(){_0x2537f7(_0xa524c0);},function(){const _0x5cd2e8=_0x3d32fa;console[_0x5cd2e8(0x1a74)](_0x5cd2e8(0x39a));});}let _0x4fdf04=!![],_0x43a9c8=0x1;_0x14453d[_0x1c523f(0x21e8)]('vm.query.filter',function(_0x26baac,_0x108744){const _0x1fa36e=_0x1c523f;_0x4fdf04?_0x1d2d9a(function(){_0x4fdf04=![];}):(!_0x108744&&(_0x43a9c8=_0x543753[_0x1fa36e(0x1a56)]['page']),_0x26baac!==_0x108744&&(_0x543753[_0x1fa36e(0x1a56)]['page']=0x1),!_0x26baac&&(_0x543753[_0x1fa36e(0x1a56)][_0x1fa36e(0x844)]=_0x43a9c8),_0x543753[_0x1fa36e(0x11d1)]());});function _0x2b79cd(_0x43f157){const _0x258792=_0x1c523f;_0x543753[_0x258792(0x26f4)]=_0x43f157||{'count':0x0,'rows':[]};}function _0x5545c2(){const _0x2fce7f=_0x1c523f;_0x543753[_0x2fce7f(0x1a56)][_0x2fce7f(0x145d)]=(_0x543753['query'][_0x2fce7f(0x844)]-0x1)*_0x543753[_0x2fce7f(0x1a56)]['limit'],_0x4bf8a5[_0x2fce7f(0x23e0)](_0x2fce7f(0x174b))?_0x543753['promise']=_0x4de045[_0x2fce7f(0x23f1)][_0x2fce7f(0x16b4)](_0x543753['query'],_0x2b79cd)['$promise']:(_0x543753['query']['id']=_0x543753['userProfile']['id'],_0x543753[_0x2fce7f(0x1a56)][_0x2fce7f(0x2146)]=_0x2fce7f(0x21ae),_0x543753['promise']=_0x4de045[_0x2fce7f(0x26b6)][_0x2fce7f(0x158f)](_0x543753[_0x2fce7f(0x1a56)],_0x2b79cd)[_0x2fce7f(0x2945)]);}function _0x28ce34(_0x1de002,_0x4a7629){const _0x65a1bc=_0x1c523f;_0x5ed0e9[_0x65a1bc(0x2615)]({'controller':_0x65a1bc(0xf60),'controllerAs':'vm','templateUrl':_0x319dda,'parent':angular[_0x65a1bc(0x1853)](_0x21422b[_0x65a1bc(0x2586)]),'targetEvent':_0x1de002,'clickOutsideToClose':!![],'locals':{'team':_0x4a7629,'teams':_0x543753['teams']['rows'],'license':_0x543753['license'],'setting':_0x543753[_0x65a1bc(0x15b9)],'crudPermissions':_0x543753[_0x65a1bc(0x2514)]}});}function _0x2537f7(_0x2e7ba9){const _0x2d0738=_0x1c523f;_0x4de045[_0x2d0738(0x23f1)][_0x2d0738(0x1fac)]({'id':_0x2e7ba9['id']})[_0x2d0738(0x2945)][_0x2d0738(0x146b)](function(){const _0x817103=_0x2d0738;_0x3f65c0()[_0x817103(0x2640)](_0x543753[_0x817103(0x26f4)][_0x817103(0x19c7)],{'id':_0x2e7ba9['id']}),_0x543753[_0x817103(0x26f4)][_0x817103(0x51c)]-=0x1,!_0x543753['teams'][_0x817103(0x19c7)][_0x817103(0x402)]&&_0x543753[_0x817103(0x11d1)](),_0x3da5ad[_0x817103(0x1c75)]({'title':_0x3f65c0()[_0x817103(0x20d1)](_0x817103(0x1a4))+_0x817103(0x201c),'msg':_0x2e7ba9['name']?_0x2e7ba9[_0x817103(0x19eb)]+'\x20has\x20been\x20deleted!':''});})[_0x2d0738(0x129e)](function(_0x30eeaa){const _0x2ba1ec=_0x2d0738;if(_0x30eeaa[_0x2ba1ec(0x524)]&&_0x30eeaa['data'][_0x2ba1ec(0xcef)]&&_0x30eeaa[_0x2ba1ec(0x524)][_0x2ba1ec(0xcef)][_0x2ba1ec(0x402)]){_0x543753[_0x2ba1ec(0xcef)]=_0x30eeaa[_0x2ba1ec(0x524)][_0x2ba1ec(0xcef)]||[{'message':_0x30eeaa['toString'](),'type':'SYSTEM:DELETEteam'}];for(let _0x89f40e=0x0;_0x89f40e<_0x30eeaa[_0x2ba1ec(0x524)][_0x2ba1ec(0xcef)][_0x2ba1ec(0x402)];_0x89f40e++){_0x3da5ad[_0x2ba1ec(0x1980)]({'title':_0x30eeaa[_0x2ba1ec(0x524)][_0x2ba1ec(0xcef)][_0x89f40e]['type'],'msg':_0x30eeaa[_0x2ba1ec(0x524)][_0x2ba1ec(0xcef)][_0x89f40e]['message']});}}else _0x3da5ad[_0x2ba1ec(0x1980)]({'title':_0x30eeaa['status']?_0x2ba1ec(0x262a)+_0x30eeaa[_0x2ba1ec(0x107b)]+'\x20-\x20'+_0x30eeaa[_0x2ba1ec(0x167f)]:_0x2ba1ec(0x25e6),'msg':_0x30eeaa[_0x2ba1ec(0x524)]?JSON[_0x2ba1ec(0x10bb)](_0x30eeaa[_0x2ba1ec(0x524)][_0x2ba1ec(0x7fd)]):_0x30eeaa[_0x2ba1ec(0x7fd)]||_0x30eeaa[_0x2ba1ec(0xd5f)]()});});}function _0xcc877e(){const _0x1bd56d=_0x1c523f,_0x585de8=angular[_0x1bd56d(0x235a)](_0x543753[_0x1bd56d(0x1c73)]);return _0x543753[_0x1bd56d(0x1c73)]=[],_0x585de8;}function _0x20473e(_0x4b5461){const _0x17de1d=_0x1c523f,_0x60361c=_0x5ed0e9[_0x17de1d(0x1e8a)]()[_0x17de1d(0x1189)](_0x17de1d(0x1705))[_0x17de1d(0x1cbe)](_0x17de1d(0x16d3)+_0x543753[_0x17de1d(0x1c73)][_0x17de1d(0x402)]+_0x17de1d(0x2452)+_0x17de1d(0xe01))['ariaLabel']('delete\x20Teams')[_0x17de1d(0x1f27)](_0x4b5461)['ok']('OK')[_0x17de1d(0x6c3)]('CANCEL');_0x5ed0e9['show'](_0x60361c)['then'](function(){const _0x594e31=_0x17de1d;_0x543753[_0x594e31(0x1c73)][_0x594e31(0x1df5)](function(_0xe9cdff){_0x2537f7(_0xe9cdff);}),_0x543753[_0x594e31(0x1c73)]=[];});}function _0x4be07b(){const _0x22785e=_0x1c523f;_0x543753[_0x22785e(0x1c73)]=[];}function _0x59038b(){const _0x1c1c2e=_0x1c523f;_0x543753['selectedTeams']=_0x543753[_0x1c1c2e(0x26f4)]['rows'];}}const _0x1c64a1=_0x30eff5;;_0x5a586d[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1862),_0x313a4d(0xd08),'$mdDialog','$q',_0x313a4d(0x214b),_0x313a4d(0x1fe4),_0x313a4d(0xd4b),_0x313a4d(0x90c),_0x313a4d(0x247f),_0x313a4d(0xa87),'license','setting','crudPermissions'];function _0x5a586d(_0x1ad334,_0x539b0a,_0x3f89da,_0x597f39,_0x47356e,_0xce448b,_0x5ae9ce,_0x4fec49,_0x2b9cca,_0x452905,_0x4f889d,_0x1e5cd2,_0x1d9f63,_0x9166fc){const _0x3ac8c8=_0x313a4d,_0x161180=this;_0x161180[_0x3ac8c8(0x2321)]=_0x4f889d[_0x3ac8c8(0xb12)](),_0x161180[_0x3ac8c8(0xcef)]=[],_0x161180['setting']=_0x1d9f63,_0x161180[_0x3ac8c8(0x2690)]=_0x1e5cd2,_0x161180[_0x3ac8c8(0x2514)]=_0x9166fc,_0x161180['hasModulePermissions']={},_0x161180[_0x3ac8c8(0x2251)]=_0x161180[_0x3ac8c8(0x15b9)]&&_0x161180[_0x3ac8c8(0x15b9)]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x161180['title']=_0x3ac8c8(0xfff),_0x161180[_0x3ac8c8(0x90c)]=angular[_0x3ac8c8(0x235a)](_0x2b9cca),_0x161180['telephones']=_0x4fec49,_0x161180[_0x3ac8c8(0x1b9f)]=![];!_0x161180[_0x3ac8c8(0x90c)]&&(_0x161180[_0x3ac8c8(0x90c)]={'role':_0x3ac8c8(0x90c),'autointernal':!![],'context':_0x3ac8c8(0x57e)},_0x161180[_0x3ac8c8(0x1189)]='STAFF.NEW_TELEPHONE',_0x161180[_0x3ac8c8(0x1b9f)]=!![]);_0x161180[_0x3ac8c8(0x1e2f)]=_0x5cc0a3,_0x161180[_0x3ac8c8(0x2411)]=_0x169c94,_0x161180[_0x3ac8c8(0x1487)]=_0x2218dc,_0x161180[_0x3ac8c8(0xe73)]=_0x33314e,_0x161180[_0x3ac8c8(0x13f3)]=_0x5d3eff;function _0x5cc0a3(){const _0xfe304c=_0x3ac8c8;_0x161180['errors']=[],_0x452905[_0xfe304c(0xe7b)][_0xfe304c(0x1e3)](_0x161180[_0xfe304c(0x90c)])['$promise'][_0xfe304c(0x146b)](function(_0x49bf9d){const _0x30cd7b=_0xfe304c;_0x161180[_0x30cd7b(0xd4b)][_0x30cd7b(0xb3d)](_0x49bf9d[_0x30cd7b(0x2488)]()),_0x5ae9ce[_0x30cd7b(0x1c75)]({'title':_0x30cd7b(0x2253),'msg':_0x161180['telephone'][_0x30cd7b(0x19eb)]?_0x161180[_0x30cd7b(0x90c)]['name']+_0x30cd7b(0x1386):''}),_0x5d3eff(_0x49bf9d);})[_0xfe304c(0x129e)](function(_0x32b37f){const _0x2d45b5=_0xfe304c;if(_0x32b37f[_0x2d45b5(0x524)]&&_0x32b37f[_0x2d45b5(0x524)][_0x2d45b5(0xcef)]&&_0x32b37f[_0x2d45b5(0x524)]['errors'][_0x2d45b5(0x402)]){_0x161180[_0x2d45b5(0xcef)]=_0x32b37f['data'][_0x2d45b5(0xcef)]||[{'message':_0x32b37f['toString'](),'type':'api.user.save'}];for(let _0x50665c=0x0;_0x50665c<_0x32b37f[_0x2d45b5(0x524)][_0x2d45b5(0xcef)][_0x2d45b5(0x402)];_0x50665c+=0x1){_0x5ae9ce[_0x2d45b5(0x1980)]({'title':_0x32b37f[_0x2d45b5(0x524)]['errors'][_0x50665c][_0x2d45b5(0x1142)],'msg':_0x32b37f[_0x2d45b5(0x524)][_0x2d45b5(0xcef)][_0x50665c][_0x2d45b5(0x7fd)]});}}else _0x5ae9ce[_0x2d45b5(0x1980)]({'title':_0x32b37f[_0x2d45b5(0x107b)]?_0x2d45b5(0x262a)+_0x32b37f[_0x2d45b5(0x107b)]+_0x2d45b5(0x1315)+_0x32b37f[_0x2d45b5(0x167f)]:_0x2d45b5(0x2406),'msg':_0x32b37f['data']?JSON[_0x2d45b5(0x10bb)](_0x32b37f[_0x2d45b5(0x524)][_0x2d45b5(0x7fd)]):_0x32b37f['toString']()});});}function _0x169c94(){const _0x3de242=_0x3ac8c8;_0x161180[_0x3de242(0xcef)]=[],_0x452905[_0x3de242(0xe7b)][_0x3de242(0x18e1)]({'id':_0x161180['telephone']['id']},_0x161180[_0x3de242(0x90c)])[_0x3de242(0x2945)][_0x3de242(0x146b)](function(_0x30df36){const _0x47e3ca=_0x3de242,_0x8385e9=_0x3f65c0()['find'](_0x161180[_0x47e3ca(0xd4b)],{'id':_0x30df36['id']});_0x8385e9&&_0x3f65c0()[_0x47e3ca(0x168d)](_0x8385e9,_0x3f65c0()[_0x47e3ca(0x40e)](_0x30df36[_0x47e3ca(0x2488)](),_0x3f65c0()[_0x47e3ca(0x627)](_0x8385e9))),_0x5ae9ce[_0x47e3ca(0x1c75)]({'title':'Telephone\x20properly\x20saved!','msg':_0x161180['telephone'][_0x47e3ca(0x19eb)]?_0x161180[_0x47e3ca(0x90c)][_0x47e3ca(0x19eb)]+_0x47e3ca(0x24db):''}),_0x5d3eff(_0x30df36);})[_0x3de242(0x129e)](function(_0x25fcff){const _0x2826eb=_0x3de242;if(_0x25fcff[_0x2826eb(0x524)]&&_0x25fcff[_0x2826eb(0x524)][_0x2826eb(0xcef)]&&_0x25fcff['data'][_0x2826eb(0xcef)][_0x2826eb(0x402)]){_0x161180[_0x2826eb(0xcef)]=_0x25fcff['data']['errors']||[{'message':_0x25fcff[_0x2826eb(0xd5f)](),'type':_0x2826eb(0x254f)}];for(let _0x18f2fa=0x0;_0x18f2fa<_0x25fcff['data'][_0x2826eb(0xcef)][_0x2826eb(0x402)];_0x18f2fa++){_0x5ae9ce[_0x2826eb(0x1980)]({'title':_0x25fcff['data'][_0x2826eb(0xcef)][_0x18f2fa][_0x2826eb(0x1142)],'msg':_0x25fcff[_0x2826eb(0x524)][_0x2826eb(0xcef)][_0x18f2fa][_0x2826eb(0x7fd)]});}}else _0x5ae9ce[_0x2826eb(0x1980)]({'title':_0x25fcff[_0x2826eb(0x107b)]?_0x2826eb(0x262a)+_0x25fcff[_0x2826eb(0x107b)]+_0x2826eb(0x1315)+_0x25fcff[_0x2826eb(0x167f)]:_0x2826eb(0x254f),'msg':_0x25fcff[_0x2826eb(0x524)]?JSON['stringify'](_0x25fcff[_0x2826eb(0x524)][_0x2826eb(0x7fd)]):_0x25fcff['toString']()});});}function _0x2218dc(_0x1aed75){const _0x48c145=_0x3ac8c8;_0x161180[_0x48c145(0xcef)]=[];const _0x69f967=_0x597f39[_0x48c145(0x1e8a)]()[_0x48c145(0x1189)]('Are\x20you\x20sure?')[_0x48c145(0x80f)](_0x48c145(0xc19))[_0x48c145(0x4bd)](_0x48c145(0x2000))['ok']('Delete')['cancel']('Cancel')[_0x48c145(0x1f27)](_0x1aed75);_0x597f39['show'](_0x69f967)[_0x48c145(0x146b)](function(){const _0x344639=_0x48c145;_0x452905[_0x344639(0xe7b)]['delete']({'id':_0x161180[_0x344639(0x90c)]['id']})['$promise'][_0x344639(0x146b)](function(){const _0x31c88f=_0x344639;_0x3f65c0()[_0x31c88f(0x2640)](_0x161180['telephones'],{'id':_0x161180[_0x31c88f(0x90c)]['id']}),_0x5ae9ce[_0x31c88f(0x1c75)]({'title':'Telephone\x20properly\x20deleted!','msg':(_0x161180[_0x31c88f(0x90c)][_0x31c88f(0x19eb)]||_0x31c88f(0x90c))+_0x31c88f(0x23e3)}),_0x5d3eff(_0x161180['telephone']);})[_0x344639(0x129e)](function(_0x1ce0c8){const _0xa23d6d=_0x344639;if(_0x1ce0c8[_0xa23d6d(0x524)]&&_0x1ce0c8[_0xa23d6d(0x524)][_0xa23d6d(0xcef)]&&_0x1ce0c8['data'][_0xa23d6d(0xcef)][_0xa23d6d(0x402)]){_0x161180['errors']=_0x1ce0c8[_0xa23d6d(0x524)][_0xa23d6d(0xcef)]||[{'message':_0x1ce0c8['toString'](),'type':_0xa23d6d(0xddf)}];for(let _0x26199a=0x0;_0x26199a<_0x1ce0c8[_0xa23d6d(0x524)][_0xa23d6d(0xcef)][_0xa23d6d(0x402)];_0x26199a++){_0x5ae9ce[_0xa23d6d(0x1980)]({'title':_0x1ce0c8[_0xa23d6d(0x524)]['errors'][_0x26199a][_0xa23d6d(0x1142)],'msg':_0x1ce0c8['data'][_0xa23d6d(0xcef)][_0x26199a][_0xa23d6d(0x7fd)]});}}else _0x5ae9ce[_0xa23d6d(0x1980)]({'title':_0x1ce0c8['status']?_0xa23d6d(0x262a)+_0x1ce0c8['status']+_0xa23d6d(0x1315)+_0x1ce0c8['statusText']:_0xa23d6d(0xddf),'msg':_0x1ce0c8['data']?JSON['stringify'](_0x1ce0c8['data'][_0xa23d6d(0x7fd)]):_0x1ce0c8[_0xa23d6d(0x7fd)]||_0x1ce0c8['toString']()});});},function(){});}function _0x33314e(_0x1bc1da){return _0x1bc1da===null?undefined:new Date(_0x1bc1da);}function _0x5d3eff(_0x979467){const _0x34b40a=_0x3ac8c8;_0x597f39[_0x34b40a(0x2458)](_0x979467);}}const _0x545318=_0x5a586d;;_0x10f6cb[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),'$mdDialog',_0x313a4d(0x1fe4),_0x313a4d(0x247f),_0x313a4d(0x90c),'setting',_0x313a4d(0xa87)];function _0x10f6cb(_0x195741,_0x51539e,_0x5b563f,_0x4f69e9,_0x308ffc,_0x47cd80,_0x33873e){const _0x213618=_0x313a4d,_0x471840=this;_0x471840[_0x213618(0x2321)]=_0x33873e[_0x213618(0xb12)](),_0x471840[_0x213618(0xcef)]=[],_0x471840[_0x213618(0x15b9)]=_0x47cd80,_0x471840[_0x213618(0x2251)]=_0x471840['setting'][_0x213618(0x976)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x471840['telephone']=_0x308ffc,_0x471840[_0x213618(0xf37)]='',_0x471840[_0x213618(0x2571)]='',_0x471840[_0x213618(0x23b7)]=_0x2c18e7,_0x471840[_0x213618(0x13f3)]=_0x46f207,_0x195741[_0x213618(0x21e8)](_0x213618(0x12f8),function(_0x586ae3){const _0x10bbd7=_0x213618;!_0x3f65c0()[_0x10bbd7(0x1b36)](_0x471840[_0x10bbd7(0x2571)])&&(_0x586ae3===_0x471840[_0x10bbd7(0x2571)]?_0x195741[_0x10bbd7(0x10c2)][_0x10bbd7(0xf37)][_0x10bbd7(0x24f8)]('oldPasswordMatch',![]):_0x195741[_0x10bbd7(0x10c2)]['password']['$setValidity'](_0x10bbd7(0x1e40),!![]));});function _0x2c18e7(){const _0x2fc2d1=_0x213618;_0x471840[_0x2fc2d1(0xcef)]=[];const _0x1d9151={'id':_0x471840[_0x2fc2d1(0x90c)]['id'],'newPassword':_0x471840[_0x2fc2d1(0xf37)]};_0x471840['currentUser']['id']==_0x471840[_0x2fc2d1(0x90c)]['id']&&(_0x1d9151[_0x2fc2d1(0x2571)]=_0x471840[_0x2fc2d1(0x2571)]),_0x4f69e9[_0x2fc2d1(0xe7b)][_0x2fc2d1(0x171a)](_0x1d9151)['$promise'][_0x2fc2d1(0x146b)](function(){const _0x5bf456=_0x2fc2d1;_0x5b563f['success']({'title':_0x5bf456(0x8cd)}),_0x46f207();})[_0x2fc2d1(0x129e)](function(_0x43d57b){const _0x55534a=_0x2fc2d1;_0x5b563f[_0x55534a(0x1980)]({'title':_0x43d57b[_0x55534a(0x107b)]?_0x55534a(0x262a)+_0x43d57b[_0x55534a(0x107b)]+_0x55534a(0x1315)+_0x43d57b[_0x55534a(0x167f)]:_0x55534a(0xc97),'msg':_0x43d57b['data']?JSON[_0x55534a(0x10bb)](_0x43d57b[_0x55534a(0x524)][_0x55534a(0x7fd)]):_0x43d57b['toString']()}),_0x471840[_0x55534a(0xcef)]=_0x43d57b[_0x55534a(0x524)][_0x55534a(0xcef)]||[{'message':_0x43d57b[_0x55534a(0xd5f)](),'type':_0x55534a(0x46d)}];});}function _0x46f207(){const _0x576f65=_0x213618;_0x51539e[_0x576f65(0x2458)]();}}const _0x22c5e6=_0x10f6cb;;const _0x279866=_0x4acfac['p']+_0x313a4d(0x1383);;_0x441bf2[_0x313a4d(0x11c2)]=[_0x313a4d(0x1862),_0x313a4d(0xd08),_0x313a4d(0x10e8),_0x313a4d(0x4d8),'$translate',_0x313a4d(0x2690),_0x313a4d(0x15b9),_0x313a4d(0x247f),_0x313a4d(0x1fe4),_0x313a4d(0xa87),'telephone',_0x313a4d(0x1366)];function _0x441bf2(_0x3254b0,_0x7a2fe2,_0x41881a,_0x416a25,_0xfa398,_0x1c57b2,_0xbd98a7,_0x5a5e4e,_0x442c01,_0x55e91c,_0x6d26c7,_0x5c31f7){const _0x2d63b1=_0x313a4d,_0xdf560e=this;_0xdf560e[_0x2d63b1(0x2321)]=_0x55e91c[_0x2d63b1(0xb12)](),_0xdf560e[_0x2d63b1(0x2690)]=_0x1c57b2,_0xdf560e['setting']=_0xbd98a7,_0xdf560e['passwordPattern']=_0xdf560e[_0x2d63b1(0x15b9)][_0x2d63b1(0x976)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0xdf560e[_0x2d63b1(0x1002)]=_0x7a2fe2[_0x2d63b1(0x2414)]()+_0x2d63b1(0xb0e)+_0x7a2fe2['host'](),_0xdf560e[_0x2d63b1(0x90c)]=_0x6d26c7||_0x3254b0['params'][_0x2d63b1(0x90c)]||{},_0xdf560e[_0x2d63b1(0x1366)]=_0x5c31f7&&_0x5c31f7['count']==0x1?_0x5c31f7[_0x2d63b1(0x19c7)][0x0]:null,_0xdf560e['crudPermissions']=_0x55e91c['parseCrudPermissions'](_0xdf560e[_0x2d63b1(0x1366)]?_0xdf560e[_0x2d63b1(0x1366)]['crudPermissions']:null),_0xdf560e['hasModulePermissions']={},_0xdf560e[_0x2d63b1(0x1b09)]=_0x3254b0[_0x2d63b1(0x16a)][_0x2d63b1(0x13a3)]||0x0,_0xdf560e[_0x2d63b1(0x1ff1)]=_0x4f5fc3,_0xdf560e[_0x2d63b1(0x861)]=_0x442c01[_0x2d63b1(0x271e)],_0xdf560e['gotoTelephones']=_0x39b0ec,_0xdf560e[_0x2d63b1(0x2411)]=_0x231b69,_0x55e91c['hasRole']('admin')?_0x5a5e4e[_0x2d63b1(0x1b82)][_0x2d63b1(0x16b4)]({'fields':'id,name','sort':_0x2d63b1(0x19eb)})['$promise'][_0x2d63b1(0x146b)](function(_0x18afdb){const _0x461cc0=_0x2d63b1;_0xdf560e[_0x461cc0(0xfe9)]=_0x18afdb[_0x461cc0(0x19c7)]||[];})[_0x2d63b1(0x129e)](function(_0xf9bf23){const _0x5da18b=_0x2d63b1;_0x442c01[_0x5da18b(0x1980)]({'title':_0xf9bf23[_0x5da18b(0x107b)]?_0x5da18b(0x262a)+_0xf9bf23[_0x5da18b(0x107b)]+'\x20-\x20'+_0xf9bf23['statusText']:_0x5da18b(0x2742),'msg':_0xf9bf23[_0x5da18b(0x524)]?JSON[_0x5da18b(0x10bb)](_0xf9bf23[_0x5da18b(0x524)]):_0xf9bf23[_0x5da18b(0xd5f)]()});}):_0x5a5e4e[_0x2d63b1(0x1b82)][_0x2d63b1(0x16b4)]({'fields':'id,name','sort':_0x2d63b1(0x19eb)})[_0x2d63b1(0x2945)]['then'](function(_0x16dbd5){const _0x53b7ba=_0x2d63b1;_0xdf560e[_0x53b7ba(0xfe9)]=_0x16dbd5[_0x53b7ba(0x19c7)]||[];})[_0x2d63b1(0x146b)](function(){const _0x4b5e00=_0x2d63b1;return _0x5a5e4e['userProfileSection'][_0x4b5e00(0x16b4)]({'userProfileId':_0xdf560e[_0x4b5e00(0x2321)][_0x4b5e00(0x209a)],'sectionId':0x195})[_0x4b5e00(0x2945)];})[_0x2d63b1(0x146b)](function(_0x328981){const _0x522181=_0x2d63b1,_0x38e705=_0x328981&&_0x328981[_0x522181(0x19c7)]?_0x328981['rows'][0x0]:null;if(!_0x38e705)return _0x5a5e4e[_0x522181(0x1b82)][_0x522181(0x16b4)]({'fields':_0x522181(0x7a7),'sort':_0x522181(0x19eb),'defaultEntry':0x1})[_0x522181(0x2945)][_0x522181(0x146b)](function(_0x5eab74){const _0x515f22=_0x522181;_0xdf560e[_0x515f22(0xfe9)]=_0x5eab74[_0x515f22(0x19c7)]||[];});else{if(!_0x38e705[_0x522181(0x11d2)])return _0x5a5e4e['userProfileResource'][_0x522181(0x16b4)]({'sectionId':_0x38e705['id']})[_0x522181(0x2945)][_0x522181(0x146b)](function(_0x3a725e){const _0x324b82=_0x522181,_0x315467=_0x3f65c0()[_0x324b82(0x205)](_0x3a725e[_0x324b82(0x19c7)],function(_0x383052){const _0x6247ca=_0x324b82;return _0x3f65c0()[_0x6247ca(0xc84)](_0xdf560e[_0x6247ca(0xfe9)],{'id':_0x383052['resourceId']});});let _0x20b5e8=null;_0xdf560e[_0x324b82(0x90c)]&&(_0x20b5e8=_0x3f65c0()[_0x324b82(0xc84)](_0xdf560e[_0x324b82(0xfe9)],{'name':_0xdf560e[_0x324b82(0x90c)]['context']}));if(_0x20b5e8&&!_0x3f65c0()[_0x324b82(0x1360)](_0x315467,['id',_0x20b5e8['id']])){const _0x227515=_0x3f65c0()['find'](_0xdf560e[_0x324b82(0xfe9)],{'id':_0x20b5e8['id']});_0x227515[_0x324b82(0x8ff)]=![],_0x315467[_0x324b82(0x1f47)](_0x227515);}_0xdf560e[_0x324b82(0xfe9)]=_0x315467;});}})['catch'](function(_0x493208){const _0x1fec33=_0x2d63b1;_0x442c01[_0x1fec33(0x1980)]({'title':_0x493208['status']?'API:'+_0x493208['status']+_0x1fec33(0x1315)+_0x493208['statusText']:'SYSTEM:GETcontexts','msg':_0x493208[_0x1fec33(0x524)]?JSON[_0x1fec33(0x10bb)](_0x493208[_0x1fec33(0x524)]):_0x493208[_0x1fec33(0xd5f)]()});});function _0x4f5fc3(_0x2e15ba,_0x36fa6b){const _0x2e827f=_0x2d63b1;_0x41881a[_0x2e827f(0x2615)]({'controller':_0x2e827f(0x17a9),'controllerAs':'vm','templateUrl':_0x279866,'parent':angular['element'](_0x416a25[_0x2e827f(0x2586)]),'targetEvent':_0x36fa6b,'clickOutsideToClose':!![],'locals':{'telephone':_0x2e15ba,'setting':_0xbd98a7,'telephones':_0xdf560e['telephones']?_0xdf560e[_0x2e827f(0xd4b)][_0x2e827f(0x19c7)]:[],'crudPermissions':_0xdf560e[_0x2e827f(0x2514)]}});}function _0x39b0ec(){const _0x590b55=_0x2d63b1;_0x3254b0['go'](_0x590b55(0xa79),{},{'reload':_0x590b55(0xa79)});}function _0x231b69(){const _0x36c4b8=_0x2d63b1;_0x5a5e4e[_0x36c4b8(0xe7b)][_0x36c4b8(0x18e1)]({'id':_0xdf560e[_0x36c4b8(0x90c)]['id']},_0xdf560e[_0x36c4b8(0x90c)])['$promise'][_0x36c4b8(0x146b)](function(){const _0x3fdec1=_0x36c4b8;_0x442c01[_0x3fdec1(0x1c75)]({'title':_0x3fdec1(0x272c),'msg':_0xdf560e[_0x3fdec1(0x90c)][_0x3fdec1(0x19eb)]?_0xdf560e['telephone'][_0x3fdec1(0x19eb)]+_0x3fdec1(0x6b0):''});})[_0x36c4b8(0x129e)](function(_0x18198a){const _0x8af5=_0x36c4b8;_0x442c01[_0x8af5(0x1980)]({'title':_0x18198a[_0x8af5(0x107b)]?_0x8af5(0x262a)+_0x18198a[_0x8af5(0x107b)]+_0x8af5(0x1315)+_0x18198a[_0x8af5(0x167f)]:_0x8af5(0x825),'msg':_0x18198a[_0x8af5(0x524)]?JSON['stringify'](_0x18198a[_0x8af5(0x524)]):_0x18198a['toString']()});});}}const _0x2450e1=_0x441bf2;;const _0x599c2a=_0x4acfac['p']+_0x313a4d(0x7d3);;_0x25b217['$inject']=[_0x313a4d(0x910),_0x313a4d(0x1aa9),_0x313a4d(0x1862),_0x313a4d(0x15fe),_0x313a4d(0x10e8),'$document','$timeout','$translate',_0x313a4d(0xd4b),'userProfile',_0x313a4d(0x1366),_0x313a4d(0x247f),_0x313a4d(0x216c),_0x313a4d(0x1fe4),_0x313a4d(0xa87),_0x313a4d(0x2690),_0x313a4d(0x15b9)];function _0x25b217(_0x321b6a,_0x2b10a9,_0x4aae0d,_0x42b0f9,_0x3989a3,_0x4cc8fd,_0x17208a,_0x32f666,_0x21dd2a,_0x2567c5,_0xbbe7a9,_0x5020ad,_0x5b21ee,_0x516833,_0x4f53c,_0x3ec035,_0x5ae510){const _0x24107d=_0x313a4d,_0x482da4=this;_0x482da4['license']=_0x3ec035,_0x482da4[_0x24107d(0x15b9)]=_0x5ae510,_0x482da4['currentUser']=_0x4f53c[_0x24107d(0xb12)](),_0x482da4[_0x24107d(0xd4b)]=_0x21dd2a||{'count':0x0,'rows':[]},_0x482da4['userProfile']=_0x2567c5,_0x482da4[_0x24107d(0x1366)]=_0xbbe7a9&&_0xbbe7a9[_0x24107d(0x51c)]==0x1?_0xbbe7a9[_0x24107d(0x19c7)][0x0]:null,_0x482da4['crudPermissions']=_0x4f53c[_0x24107d(0xe60)](_0x482da4[_0x24107d(0x1366)]?_0x482da4[_0x24107d(0x1366)][_0x24107d(0x2514)]:null),_0x482da4[_0x24107d(0x768)]=_0x24107d(0xd4b),_0x482da4['listOrder']='',_0x482da4['listOrderAsc']=null,_0x482da4[_0x24107d(0x1812)]=[],_0x482da4[_0x24107d(0x1a56)]={'fields':_0x24107d(0x359),'role':_0x24107d(0x90c),'sort':_0x24107d(0x12f2),'limit':0xa,'page':0x1},_0x482da4[_0x24107d(0x1dea)]=_0x3f65c0()[_0x24107d(0x194)]([{'option':'udp','value':'\x27udp\x27'},{'option':_0x24107d(0x1701),'value':_0x24107d(0x1992)},{'option':'ws','value':_0x24107d(0x9ae)},{'option':_0x24107d(0x1457),'value':_0x24107d(0x222c)},{'option':_0x24107d(0xcbe),'value':_0x24107d(0x17ca)}],function(_0x52e619){const _0x433842=_0x24107d;return _0x3f65c0()['replace'](_0x52e619[_0x433842(0x175d)],new RegExp('\x27','g'),'');}),_0x482da4['arraynat']=_0x3f65c0()[_0x24107d(0x194)]([{'option':_0x24107d(0x22e7),'value':_0x24107d(0x1dcf)},{'option':_0x24107d(0x113b),'value':_0x24107d(0x73c)},{'option':_0x24107d(0x18e3),'value':_0x24107d(0x2339)},{'option':'no','value':_0x24107d(0x74f)},{'option':_0x24107d(0x6d2),'value':_0x24107d(0xc7b)},{'option':_0x24107d(0xdb0),'value':'\x27route\x27'}],function(_0x6bfe96){const _0x2b5ffb=_0x24107d;return _0x3f65c0()[_0x2b5ffb(0x5f4)](_0x6bfe96[_0x2b5ffb(0x175d)],new RegExp('\x27','g'),'');}),_0x482da4[_0x24107d(0x1ee2)]=_0x3f65c0()['keyBy']([{'option':_0x24107d(0x8c3),'value':_0x24107d(0x1f6f)},{'option':'alaw','value':'\x27alaw\x27'},{'option':'gsm','value':_0x24107d(0x5a3)},{'option':'g722','value':_0x24107d(0x1d33)},{'option':'g729','value':'\x27g729\x27'},{'option':_0x24107d(0xdc9),'value':'\x27opus\x27'},{'option':_0x24107d(0x1c87),'value':_0x24107d(0x559)}],function(_0x23c9d6){const _0x11b75b=_0x24107d;return _0x3f65c0()['replace'](_0x23c9d6[_0x11b75b(0x175d)],new RegExp('\x27','g'),'');}),_0x482da4[_0x24107d(0xc95)]=_0x3f65c0()[_0x24107d(0x194)]([{'option':_0x24107d(0x1b97),'value':'\x27yes\x27'},{'option':'No','value':_0x24107d(0x74f)},{'option':'Always','value':'\x27always\x27'}],function(_0x440fb4){const _0x509a56=_0x24107d;return _0x3f65c0()[_0x509a56(0x5f4)](_0x440fb4['value'],new RegExp('\x27','g'),'');}),_0x482da4['arrayencryption']=_0x3f65c0()[_0x24107d(0x194)]([{'option':_0x24107d(0x18e3),'value':_0x24107d(0x2339)},{'option':'no','value':_0x24107d(0x74f)}],function(_0x22a7e5){const _0x2e7640=_0x24107d;return _0x3f65c0()[_0x2e7640(0x5f4)](_0x22a7e5[_0x2e7640(0x175d)],new RegExp('\x27','g'),'');}),_0x482da4[_0x24107d(0x23f9)]=_0x5a92b8,_0x482da4[_0x24107d(0xf0a)]=_0xe92300,_0x482da4[_0x24107d(0x1c75)]=_0x5341a8,_0x482da4[_0x24107d(0x1948)]=_0x5bc953,_0x482da4['createOrEditTelephone']=_0x2c4015,_0x482da4[_0x24107d(0x1487)]=_0x49215e,_0x482da4['exportSelectedTelephones']=_0x10e7df,_0x482da4[_0x24107d(0xc54)]=_0x25c334,_0x482da4['deselectTelephones']=_0x5e05bc,_0x482da4[_0x24107d(0x103a)]=_0x411676;function _0x5a92b8(_0x4a5bc7){const _0x17ba10=_0x24107d;_0x4aae0d['go'](_0x17ba10(0xc85),{'id':_0x4a5bc7['id'],'telephone':_0x4a5bc7,'crudPermissions':_0x482da4[_0x17ba10(0x2514)]});}function _0xe92300(_0x18e50f,_0x3aedd2){const _0x4042d4=_0x24107d,_0x3ce3bb=_0x3989a3[_0x4042d4(0x1e8a)]()[_0x4042d4(0x1189)](_0x4042d4(0xdb2)+_0x3f65c0()[_0x4042d4(0x20d1)]('telephone')+'?')[_0x4042d4(0x1cbe)](_0x4042d4(0x16d3)+(_0x18e50f[_0x4042d4(0x19eb)]||_0x4042d4(0x90c))+''+_0x4042d4(0xe01))[_0x4042d4(0x4bd)]('delete\x20telephone')[_0x4042d4(0x1f27)](_0x3aedd2)['ok']('OK')[_0x4042d4(0x6c3)](_0x4042d4(0x39a));_0x3989a3[_0x4042d4(0x2615)](_0x3ce3bb)[_0x4042d4(0x146b)](function(){_0x49215e(_0x18e50f);},function(){const _0x5e221f=_0x4042d4;console[_0x5e221f(0x1a74)](_0x5e221f(0x39a));});}let _0x2fd9ee=!![],_0x49a8a5=0x1;_0x321b6a['$watch'](_0x24107d(0x2669),function(_0x1f80bb,_0x474cba){const _0x3052ab=_0x24107d;_0x2fd9ee?_0x17208a(function(){_0x2fd9ee=![];}):(!_0x474cba&&(_0x49a8a5=_0x482da4[_0x3052ab(0x1a56)][_0x3052ab(0x844)]),_0x1f80bb!==_0x474cba&&(_0x482da4[_0x3052ab(0x1a56)][_0x3052ab(0x844)]=0x1),!_0x1f80bb&&(_0x482da4[_0x3052ab(0x1a56)]['page']=_0x49a8a5),_0x482da4[_0x3052ab(0x1948)]());});function _0x5341a8(_0xfb78af){const _0x98f002=_0x24107d;_0x482da4[_0x98f002(0xd4b)]=_0xfb78af||{'count':0x0,'rows':[]};}function _0x5bc953(){const _0x1795e2=_0x24107d;_0x482da4[_0x1795e2(0x1a56)]['offset']=(_0x482da4[_0x1795e2(0x1a56)][_0x1795e2(0x844)]-0x1)*_0x482da4[_0x1795e2(0x1a56)][_0x1795e2(0x221e)],_0x4f53c['hasRole'](_0x1795e2(0x174b))?_0x482da4[_0x1795e2(0xb9c)]=_0x5020ad[_0x1795e2(0xe7b)][_0x1795e2(0x16b4)](_0x482da4[_0x1795e2(0x1a56)],_0x5341a8)[_0x1795e2(0x2945)]:(_0x482da4[_0x1795e2(0x1a56)]['id']=_0x482da4[_0x1795e2(0x26b6)]['id'],_0x482da4[_0x1795e2(0x1a56)][_0x1795e2(0x2146)]=_0x1795e2(0x3af),_0x482da4[_0x1795e2(0xb9c)]=_0x5020ad[_0x1795e2(0x26b6)][_0x1795e2(0x158f)](_0x482da4[_0x1795e2(0x1a56)],_0x5341a8)[_0x1795e2(0x2945)]);}function _0x2c4015(_0x112ce4,_0x53964f){const _0x40be35=_0x24107d;_0x3989a3[_0x40be35(0x2615)]({'controller':_0x40be35(0x10c5),'controllerAs':'vm','templateUrl':_0x599c2a,'parent':angular[_0x40be35(0x1853)](_0x4cc8fd[_0x40be35(0x2586)]),'targetEvent':_0x112ce4,'clickOutsideToClose':!![],'locals':{'telephone':_0x53964f,'telephones':_0x482da4[_0x40be35(0xd4b)][_0x40be35(0x19c7)],'license':_0x482da4[_0x40be35(0x2690)],'setting':_0x482da4[_0x40be35(0x15b9)],'crudPermissions':_0x482da4[_0x40be35(0x2514)]}});}function _0x49215e(_0x16e327){const _0x12e199=_0x24107d;_0x5020ad['user'][_0x12e199(0x1fac)]({'id':_0x16e327['id']})[_0x12e199(0x2945)][_0x12e199(0x146b)](function(){const _0x2bdd16=_0x12e199;_0x3f65c0()['remove'](_0x482da4['telephones'][_0x2bdd16(0x19c7)],{'id':_0x16e327['id']}),_0x482da4[_0x2bdd16(0xd4b)][_0x2bdd16(0x51c)]-=0x1,!_0x482da4['telephones'][_0x2bdd16(0x19c7)][_0x2bdd16(0x402)]&&_0x482da4['getTelephones'](),_0x516833[_0x2bdd16(0x1c75)]({'title':_0x3f65c0()['startCase'](_0x2bdd16(0xbf1))+_0x2bdd16(0x201c),'msg':_0x16e327[_0x2bdd16(0x19eb)]?_0x16e327[_0x2bdd16(0x19eb)]+_0x2bdd16(0x23e3):''});})[_0x12e199(0x129e)](function(_0x3e0663){const _0x18014d=_0x12e199;if(_0x3e0663[_0x18014d(0x524)]&&_0x3e0663[_0x18014d(0x524)]['errors']&&_0x3e0663[_0x18014d(0x524)][_0x18014d(0xcef)][_0x18014d(0x402)]){_0x482da4[_0x18014d(0xcef)]=_0x3e0663['data']['errors']||[{'message':_0x3e0663[_0x18014d(0xd5f)](),'type':_0x18014d(0xc69)}];for(let _0x4a270f=0x0;_0x4a270f<_0x3e0663['data'][_0x18014d(0xcef)][_0x18014d(0x402)];_0x4a270f++){_0x516833[_0x18014d(0x1980)]({'title':_0x3e0663[_0x18014d(0x524)][_0x18014d(0xcef)][_0x4a270f][_0x18014d(0x1142)],'msg':_0x3e0663[_0x18014d(0x524)]['errors'][_0x4a270f]['message']});}}else _0x516833[_0x18014d(0x1980)]({'title':_0x3e0663[_0x18014d(0x107b)]?_0x18014d(0x262a)+_0x3e0663['status']+_0x18014d(0x1315)+_0x3e0663[_0x18014d(0x167f)]:'SYSTEM:DELETEuser','msg':_0x3e0663[_0x18014d(0x524)]?JSON[_0x18014d(0x10bb)](_0x3e0663['data'][_0x18014d(0x7fd)]):_0x3e0663[_0x18014d(0x7fd)]||_0x3e0663[_0x18014d(0xd5f)]()});});}function _0x10e7df(){const _0x386ff3=_0x24107d,_0x4f8c76=angular[_0x386ff3(0x235a)](_0x482da4[_0x386ff3(0x1812)]);return _0x482da4['selectedTelephones']=[],_0x4f8c76;}function _0x25c334(_0x496396){const _0x1af36f=_0x24107d,_0x33061b=_0x3989a3[_0x1af36f(0x1e8a)]()[_0x1af36f(0x1189)](_0x1af36f(0x28bc))[_0x1af36f(0x1cbe)](_0x1af36f(0x16d3)+_0x482da4[_0x1af36f(0x1812)][_0x1af36f(0x402)]+_0x1af36f(0x2452)+'\x20will\x20be\x20deleted.')[_0x1af36f(0x4bd)]('delete\x20Telephones')[_0x1af36f(0x1f27)](_0x496396)['ok']('OK')['cancel'](_0x1af36f(0x39a));_0x3989a3['show'](_0x33061b)['then'](function(){const _0xbc43b6=_0x1af36f;_0x482da4[_0xbc43b6(0x1812)][_0xbc43b6(0x1df5)](function(_0x2d7eef){_0x49215e(_0x2d7eef);}),_0x482da4[_0xbc43b6(0x1812)]=[];});}function _0x5e05bc(){const _0x420d0c=_0x24107d;_0x482da4[_0x420d0c(0x1812)]=[];}function _0x411676(){const _0x1556fa=_0x24107d;_0x482da4[_0x1556fa(0x1812)]=_0x482da4[_0x1556fa(0xd4b)][_0x1556fa(0x19c7)];}}const _0x4f7381=_0x25b217;;_0x5e1632['$inject']=['$scope',_0x313a4d(0x1862),_0x313a4d(0xd08),_0x313a4d(0x10e8),'$q',_0x313a4d(0x214b),_0x313a4d(0x1fe4),_0x313a4d(0x2851),_0x313a4d(0x26b6),_0x313a4d(0x247f),_0x313a4d(0xa87),_0x313a4d(0x2690),_0x313a4d(0x15b9),_0x313a4d(0x2514)];function _0x5e1632(_0x228276,_0x10330b,_0x5d81fb,_0x1e90e1,_0x13155d,_0x5efdba,_0x566d4b,_0x455a89,_0x78b071,_0x441a67,_0x37cd5f,_0x2b30ac,_0x737e58,_0x34ca6e){const _0x16ab51=_0x313a4d,_0x4cfd62=this;_0x4cfd62[_0x16ab51(0x2321)]=_0x37cd5f[_0x16ab51(0xb12)](),_0x4cfd62['errors']=[],_0x4cfd62[_0x16ab51(0x15b9)]=_0x737e58,_0x4cfd62['license']=_0x2b30ac,_0x4cfd62[_0x16ab51(0x2514)]=_0x34ca6e,_0x4cfd62[_0x16ab51(0x855)]={},_0x4cfd62[_0x16ab51(0x2251)]=_0x4cfd62[_0x16ab51(0x15b9)]&&_0x4cfd62[_0x16ab51(0x15b9)][_0x16ab51(0x976)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x4cfd62['title']=_0x16ab51(0x9b0),_0x4cfd62[_0x16ab51(0x26b6)]=angular[_0x16ab51(0x235a)](_0x78b071),_0x4cfd62[_0x16ab51(0x2851)]=_0x455a89,_0x4cfd62[_0x16ab51(0x225)]=![];!_0x4cfd62[_0x16ab51(0x26b6)]&&(_0x4cfd62[_0x16ab51(0x26b6)]={'crudPermissions':['r']},_0x4cfd62['title']=_0x16ab51(0xfe3),_0x4cfd62['newUserProfile']=!![]);_0x4cfd62[_0x16ab51(0x1dc5)]=_0x2fac00,_0x4cfd62['saveUserProfile']=_0x3830c9,_0x4cfd62[_0x16ab51(0xe37)]=_0x57e273,_0x4cfd62[_0x16ab51(0xe73)]=_0x5ed122,_0x4cfd62[_0x16ab51(0x13f3)]=_0xefcf7e;function _0x2fac00(){const _0x200c34=_0x16ab51;_0x4cfd62[_0x200c34(0xcef)]=[],_0x441a67['userProfile']['save'](_0x4cfd62[_0x200c34(0x26b6)])['$promise'][_0x200c34(0x146b)](function(_0x525bd8){const _0x295696=_0x200c34;_0x32ce5a(_0x525bd8),_0x4cfd62[_0x295696(0x2851)][_0x295696(0xb3d)](_0x525bd8[_0x295696(0x2488)]()),_0x566d4b[_0x295696(0x1c75)]({'title':_0x295696(0x1182),'msg':_0x4cfd62[_0x295696(0x26b6)][_0x295696(0x19eb)]?_0x4cfd62[_0x295696(0x26b6)][_0x295696(0x19eb)]+_0x295696(0x1386):''}),_0xefcf7e(_0x525bd8);})[_0x200c34(0x129e)](function(_0x388b14){const _0x1c06f4=_0x200c34;if(_0x388b14[_0x1c06f4(0x524)]&&_0x388b14[_0x1c06f4(0x524)]['errors']&&_0x388b14['data'][_0x1c06f4(0xcef)][_0x1c06f4(0x402)]){_0x4cfd62[_0x1c06f4(0xcef)]=_0x388b14[_0x1c06f4(0x524)][_0x1c06f4(0xcef)]||[{'message':_0x388b14['toString'](),'type':_0x1c06f4(0x82f)}];for(let _0x1d7c59=0x0;_0x1d7c59<_0x388b14[_0x1c06f4(0x524)]['errors']['length'];_0x1d7c59+=0x1){_0x566d4b['error']({'title':_0x388b14[_0x1c06f4(0x524)][_0x1c06f4(0xcef)][_0x1d7c59][_0x1c06f4(0x1142)],'msg':_0x388b14['data'][_0x1c06f4(0xcef)][_0x1d7c59][_0x1c06f4(0x7fd)]});}}else _0x566d4b['error']({'title':_0x388b14['status']?'API:'+_0x388b14['status']+_0x1c06f4(0x1315)+_0x388b14[_0x1c06f4(0x167f)]:_0x1c06f4(0x82f),'msg':_0x388b14['data']?JSON[_0x1c06f4(0x10bb)](_0x388b14['data'][_0x1c06f4(0x7fd)]):_0x388b14[_0x1c06f4(0xd5f)]()});});}function _0x3830c9(){const _0x890f12=_0x16ab51;_0x4cfd62['errors']=[],_0x441a67[_0x890f12(0x26b6)][_0x890f12(0x18e1)]({'id':_0x4cfd62[_0x890f12(0x26b6)]['id']},_0x4cfd62[_0x890f12(0x26b6)])[_0x890f12(0x2945)][_0x890f12(0x146b)](function(_0x54938c){const _0x368087=_0x890f12,_0x39feb9=_0x3f65c0()[_0x368087(0xc84)](_0x4cfd62[_0x368087(0x2851)],{'id':_0x54938c['id']});_0x39feb9&&_0x3f65c0()[_0x368087(0x168d)](_0x39feb9,_0x3f65c0()[_0x368087(0x40e)](_0x54938c[_0x368087(0x2488)](),_0x3f65c0()[_0x368087(0x627)](_0x39feb9))),_0x566d4b[_0x368087(0x1c75)]({'title':_0x368087(0x1958),'msg':_0x4cfd62[_0x368087(0x26b6)]['name']?_0x4cfd62[_0x368087(0x26b6)]['name']+_0x368087(0x24db):''}),_0xefcf7e(_0x54938c);})[_0x890f12(0x129e)](function(_0x5302e3){const _0x123c0e=_0x890f12;if(_0x5302e3['data']&&_0x5302e3['data']['errors']&&_0x5302e3[_0x123c0e(0x524)][_0x123c0e(0xcef)]['length']){_0x4cfd62[_0x123c0e(0xcef)]=_0x5302e3[_0x123c0e(0x524)][_0x123c0e(0xcef)]||[{'message':_0x5302e3[_0x123c0e(0xd5f)](),'type':_0x123c0e(0x22f9)}];for(let _0x3a47e4=0x0;_0x3a47e4<_0x5302e3[_0x123c0e(0x524)][_0x123c0e(0xcef)]['length'];_0x3a47e4++){_0x566d4b[_0x123c0e(0x1980)]({'title':_0x5302e3[_0x123c0e(0x524)][_0x123c0e(0xcef)][_0x3a47e4][_0x123c0e(0x1142)],'msg':_0x5302e3[_0x123c0e(0x524)][_0x123c0e(0xcef)][_0x3a47e4][_0x123c0e(0x7fd)]});}}else _0x566d4b[_0x123c0e(0x1980)]({'title':_0x5302e3[_0x123c0e(0x107b)]?_0x123c0e(0x262a)+_0x5302e3['status']+'\x20-\x20'+_0x5302e3['statusText']:'api.userProfile.update','msg':_0x5302e3[_0x123c0e(0x524)]?JSON[_0x123c0e(0x10bb)](_0x5302e3[_0x123c0e(0x524)][_0x123c0e(0x7fd)]):_0x5302e3[_0x123c0e(0xd5f)]()});});}function _0x57e273(_0x8c18fc){const _0x353747=_0x16ab51;_0x4cfd62[_0x353747(0xcef)]=[];const _0x23e694=_0x1e90e1[_0x353747(0x1e8a)]()[_0x353747(0x1189)](_0x353747(0x1d64))[_0x353747(0x80f)](_0x353747(0x8bd))[_0x353747(0x4bd)]('Delete\x20UserProfile')['ok'](_0x353747(0x25de))[_0x353747(0x6c3)](_0x353747(0xcf0))[_0x353747(0x1f27)](_0x8c18fc);_0x1e90e1['show'](_0x23e694)['then'](function(){const _0x1ddb1e=_0x353747;_0x441a67['userProfile'][_0x1ddb1e(0x1fac)]({'id':_0x4cfd62['userProfile']['id']})[_0x1ddb1e(0x2945)][_0x1ddb1e(0x146b)](function(){const _0x397257=_0x1ddb1e;_0x3f65c0()[_0x397257(0x2640)](_0x4cfd62[_0x397257(0x2851)],{'id':_0x4cfd62[_0x397257(0x26b6)]['id']}),_0x566d4b[_0x397257(0x1c75)]({'title':_0x397257(0x10e9),'msg':(_0x4cfd62['userProfile'][_0x397257(0x19eb)]||_0x397257(0x26b6))+'\x20has\x20been\x20deleted!'}),_0xefcf7e(_0x4cfd62[_0x397257(0x26b6)]);})[_0x1ddb1e(0x129e)](function(_0x40a0a7){const _0x29f00a=_0x1ddb1e;if(_0x40a0a7[_0x29f00a(0x524)]&&_0x40a0a7[_0x29f00a(0x524)][_0x29f00a(0xcef)]&&_0x40a0a7[_0x29f00a(0x524)][_0x29f00a(0xcef)][_0x29f00a(0x402)]){_0x4cfd62[_0x29f00a(0xcef)]=_0x40a0a7[_0x29f00a(0x524)][_0x29f00a(0xcef)]||[{'message':_0x40a0a7[_0x29f00a(0xd5f)](),'type':_0x29f00a(0x73e)}];for(let _0x4b4624=0x0;_0x4b4624<_0x40a0a7[_0x29f00a(0x524)]['errors'][_0x29f00a(0x402)];_0x4b4624++){_0x566d4b['error']({'title':_0x40a0a7[_0x29f00a(0x524)]['errors'][_0x4b4624][_0x29f00a(0x1142)],'msg':_0x40a0a7['data'][_0x29f00a(0xcef)][_0x4b4624]['message']});}}else _0x566d4b[_0x29f00a(0x1980)]({'title':_0x40a0a7['status']?_0x29f00a(0x262a)+_0x40a0a7[_0x29f00a(0x107b)]+_0x29f00a(0x1315)+_0x40a0a7[_0x29f00a(0x167f)]:_0x29f00a(0x73e),'msg':_0x40a0a7[_0x29f00a(0x524)]?JSON['stringify'](_0x40a0a7['data'][_0x29f00a(0x7fd)]):_0x40a0a7[_0x29f00a(0x7fd)]||_0x40a0a7[_0x29f00a(0xd5f)]()});});},function(){});}function _0x32ce5a(_0x2c7e10){const _0x3c222e=_0x16ab51,_0x9c5fc1=[];_0x2c7e10[_0x3c222e(0x2514)]['forEach'](function(_0x4d225a){const _0x58fd69=_0x3c222e;let _0x2f1003;switch(_0x4d225a){case'r':_0x2f1003=_0x58fd69(0x28aa);break;case'e':_0x2f1003='EDIT_PERMISSION';break;case'd':_0x2f1003=_0x58fd69(0x509);break;}_0x9c5fc1['push'](_0x5efdba[_0x58fd69(0xde)](_0x58fd69(0x3a7)+_0x2f1003));}),_0x2c7e10['selectedcrudPermissions']=_0x9c5fc1[_0x3c222e(0xb47)](',\x20');}function _0x5ed122(_0x5d63cb){return _0x5d63cb===null?undefined:new Date(_0x5d63cb);}function _0xefcf7e(_0x1a8a37){_0x1e90e1['hide'](_0x1a8a37);}}const _0x90c5bf=_0x5e1632;;_0x424da8[_0x313a4d(0x11c2)]=['$mdDialog','$state',_0x313a4d(0x1fe4),_0x313a4d(0x247f),_0x313a4d(0x26b6),'userProfiles','$translate'];function _0x424da8(_0x5c735b,_0x286ce6,_0xa2ef94,_0x29a65a,_0x57197d,_0x26df98,_0x4dfac5){const _0x2593b2=_0x313a4d,_0xbab965=this;_0xbab965[_0x2593b2(0x225)]=!![],_0xbab965[_0x2593b2(0x26b6)]=angular[_0x2593b2(0x235a)](_0x57197d),_0xbab965[_0x2593b2(0x2851)]=_0x26df98,_0xbab965['title']=_0x4dfac5[_0x2593b2(0xde)](_0x2593b2(0x485));_0x57197d&&_0x57197d['name']&&(_0xbab965[_0x2593b2(0x1189)]+=':\x20'+_0x57197d[_0x2593b2(0x19eb)]);_0xbab965[_0x2593b2(0xb57)]=_0x49f3c1,_0xbab965[_0x2593b2(0x13f3)]=_0x3dada7;function _0x49f3c1(){const _0x178156=_0x2593b2;return _0x29a65a[_0x178156(0x26b6)][_0x178156(0x12cc)]({'id':_0x57197d['id']},_0xbab965[_0x178156(0x26b6)])[_0x178156(0x2945)][_0x178156(0x146b)](function(_0x1de491){const _0x5bc7a8=_0x178156;_0x1005f5(_0x1de491),_0xbab965[_0x5bc7a8(0x2851)][_0x5bc7a8(0xb3d)](_0x1de491[_0x5bc7a8(0x2488)]()),_0xa2ef94[_0x5bc7a8(0x1c75)]({'title':_0x5bc7a8(0x931),'msg':_0xbab965[_0x5bc7a8(0x26b6)][_0x5bc7a8(0x19eb)]?_0xbab965[_0x5bc7a8(0x26b6)][_0x5bc7a8(0x19eb)]+_0x5bc7a8(0x1b63):''}),_0x286ce6['go'](_0x5bc7a8(0x12a1),{'id':_0x1de491['id']}),_0x3dada7(_0x1de491);})[_0x178156(0x129e)](function(_0x1c7e54){const _0xe2796e=_0x178156;if(_0x1c7e54[_0xe2796e(0x524)]&&_0x1c7e54['data'][_0xe2796e(0xcef)]&&_0x1c7e54[_0xe2796e(0x524)][_0xe2796e(0xcef)][_0xe2796e(0x402)]){_0xbab965[_0xe2796e(0xcef)]=_0x1c7e54[_0xe2796e(0x524)][_0xe2796e(0xcef)]||[{'message':_0x1c7e54[_0xe2796e(0xd5f)](),'type':'api.userProfile.clone'}];for(let _0x2a5f9d=0x0;_0x2a5f9d<_0x1c7e54[_0xe2796e(0x524)][_0xe2796e(0xcef)][_0xe2796e(0x402)];_0x2a5f9d+=0x1){_0xa2ef94['error']({'title':_0x1c7e54[_0xe2796e(0x524)][_0xe2796e(0xcef)][_0x2a5f9d]['type'],'msg':_0x1c7e54[_0xe2796e(0x524)]['errors'][_0x2a5f9d]['message']});}}else _0xa2ef94[_0xe2796e(0x1980)]({'title':_0x1c7e54[_0xe2796e(0x107b)]?_0xe2796e(0x262a)+_0x1c7e54[_0xe2796e(0x107b)]+'\x20-\x20'+_0x1c7e54[_0xe2796e(0x167f)]:_0xe2796e(0x787),'msg':_0x1c7e54[_0xe2796e(0x524)]?JSON[_0xe2796e(0x10bb)](_0x1c7e54[_0xe2796e(0x524)][_0xe2796e(0x7fd)]):_0x1c7e54['toString']()});});}function _0x1005f5(_0x2ee78e){const _0x486559=_0x2593b2,_0x243ad1=[];_0x2ee78e['crudPermissions'][_0x486559(0x1df5)](function(_0x13dd42){const _0x1db766=_0x486559;let _0x5f08cd;switch(_0x13dd42){case'r':_0x5f08cd='READ_PERMISSION';break;case'e':_0x5f08cd=_0x1db766(0x1520);break;case'd':_0x5f08cd=_0x1db766(0x509);break;}_0x243ad1[_0x1db766(0x1f47)](_0x4dfac5['instant']('STAFF.'+_0x5f08cd));}),_0x2ee78e[_0x486559(0x173c)]=_0x243ad1[_0x486559(0xb47)](',\x20');}function _0x3dada7(_0x427e25){const _0x42c329=_0x2593b2;_0x5c735b[_0x42c329(0x2458)](_0x427e25);}}const _0x2c310e=_0x424da8;;const _0x5956ae=_0x4acfac['p']+_0x313a4d(0x2279);;_0x3127b9[_0x313a4d(0x11c2)]=['$document',_0x313a4d(0x10e8),'$translate','$q',_0x313a4d(0x247f),_0x313a4d(0x1f9a),'Auth',_0x313a4d(0x1fe4)];function _0x3127b9(_0x49870d,_0x489290,_0x3aaa43,_0x8f6188,_0x22270b,_0x6848ea,_0x486b49,_0x650b4b){const _0x45e5d4=_0x313a4d,_0x4a1a86=this;_0x4a1a86[_0x45e5d4(0x26b6)]={},_0x4a1a86['license']={},_0x4a1a86[_0x45e5d4(0x145c)]=_0x6848ea[_0x45e5d4(0x5c4)](),_0x4a1a86['modules']=_0x4a1a86[_0x45e5d4(0x145c)][0x0]['children'],_0x4a1a86[_0x45e5d4(0x1824)]=[{'id':0x0,'name':_0x45e5d4(0x573),'color':_0x45e5d4(0xde9),'info':_0x45e5d4(0x1f65),'tag':'full'},{'id':0x1,'name':'Partially\x20Enabled','color':_0x45e5d4(0x17c3),'info':_0x45e5d4(0x8f3),'tag':_0x45e5d4(0x2541)},{'id':0x2,'name':'Disabled','color':'grey-A400-bg','info':'No\x20resources\x20enabled','tag':_0x45e5d4(0x2862)},{'id':0x3,'name':_0x45e5d4(0x476),'color':_0x45e5d4(0x14ec),'info':_0x45e5d4(0xecd),'tag':_0x45e5d4(0x20ff)},{'id':0x4,'name':_0x45e5d4(0x89f),'color':_0x45e5d4(0x1d39),'info':'Unknown\x20status','tag':_0x45e5d4(0x207d)}],_0x4a1a86[_0x45e5d4(0x1712)]=[{'title':_0x45e5d4(0x11e8),'translate':_0x45e5d4(0xb03),'id':0x64}],_0x4a1a86[_0x45e5d4(0x5aa)]=_0x4f1891,_0x4a1a86[_0x45e5d4(0x830)]=_0x1f97ae,_0x4a1a86['manageResources']=_0x425426,_0x4a1a86[_0x45e5d4(0xe71)]=_0x426b05;function _0x4f1891(_0x5aa5f3,_0x253c67){const _0xcd527d=_0x45e5d4;_0x4a1a86[_0xcd527d(0x26b6)]=_0x5aa5f3,_0x4a1a86[_0xcd527d(0x2690)]=_0x253c67;}function _0x1f97ae(_0x4a53d1){const _0x4c5e2a=_0x45e5d4,_0x2dcac6=typeof _0x4a53d1['permissions']!==_0x4c5e2a(0x2274)&&!_0x4a53d1[_0x4c5e2a(0x1f54)][_0x4c5e2a(0x91f)]?!![]:![],_0x1f2ca0=_0x4a53d1['title']===_0x4c5e2a(0xa3f)?_0x4c5e2a(0x905):_0x4a53d1[_0x4c5e2a(0x1189)];if(_0x4a53d1[_0x4c5e2a(0x107b)][_0x4c5e2a(0x19eb)]!==_0x4c5e2a(0x573)){const _0x3f6083=[];if(!_0x2dcac6){const _0x2d91c3=_0x489290['confirm']({'skipHide':!![]})[_0x4c5e2a(0x1189)](_0x4c5e2a(0xf0))['textContent'](_0x3aaa43['instant']('STAFF.PERMISSIONS_WARNING_ENABLE_ALL',{'sectionName':_0x3aaa43['instant'](_0x4a53d1['translate'])}))[_0x4c5e2a(0x4bd)](_0x4c5e2a(0xf0))['ok'](_0x3aaa43[_0x4c5e2a(0xde)]('STAFF.CONFIRM'))[_0x4c5e2a(0x6c3)](_0x3aaa43[_0x4c5e2a(0xde)](_0x4c5e2a(0x1161)));_0x489290[_0x4c5e2a(0x2615)](_0x2d91c3)[_0x4c5e2a(0x146b)](function(){const _0xed0a92=_0x4c5e2a;switch(_0x1f2ca0){case _0xed0a92(0x11e8):_0x3f65c0()[_0xed0a92(0x205)](_0x4a1a86[_0xed0a92(0x1712)],function(_0x9d01d8){const _0x2662b2=_0xed0a92;_0x3f6083[_0x2662b2(0x1f47)]({'category':_0x1f2ca0,'sectionId':_0x9d01d8['id'],'name':_0x9d01d8['title'],'enabled':!![],'autoAssociation':!![],'crudPermissions':_0x3f65c0()[_0x2662b2(0x205)](_0x4a1a86[_0x2662b2(0x26b6)][_0x2662b2(0x2514)])[_0x2662b2(0xb47)]('')});});break;default:_0x3f65c0()[_0xed0a92(0x205)](_0x4a53d1[_0xed0a92(0x20d0)],function(_0x6ba6){const _0x2109a2=_0xed0a92,_0x2ca3d2=typeof _0x6ba6[_0x2109a2(0x1f54)]!=_0x2109a2(0x2274)&&_0x6ba6[_0x2109a2(0x1f54)]['hidden']?!![]:![];if(!_0x2ca3d2){let _0x6cdbe3=_0x6ba6[_0x2109a2(0x1189)];switch(_0x1f2ca0){case'CallySquare':_0x6cdbe3=_0x6cdbe3===_0x2109a2(0x1ea)?'SquareProjects':_0x6cdbe3;break;}_0x3f6083[_0x2109a2(0x1f47)]({'category':_0x1f2ca0,'sectionId':_0x6ba6['id'],'name':_0x6cdbe3,'enabled':!![],'autoAssociation':!![],'crudPermissions':_0x3f65c0()[_0x2109a2(0x205)](_0x4a1a86[_0x2109a2(0x26b6)][_0x2109a2(0x2514)])[_0x2109a2(0xb47)]('')});}});break;}return _0x22270b[_0xed0a92(0x26b6)][_0xed0a92(0x2158)]({'id':_0x4a1a86[_0xed0a92(0x26b6)]['id']},_0x3f6083)[_0xed0a92(0x2945)][_0xed0a92(0x146b)](function(){const _0x4e8960=_0xed0a92;_0x4a53d1[_0x4e8960(0x107b)]=_0x62dfa0(_0x4a53d1,_0x4e8960(0x1de8)),_0x650b4b['success']({'title':_0x3aaa43[_0x4e8960(0xde)](_0x4e8960(0x27e5),{'sectionName':_0x3aaa43[_0x4e8960(0xde)](_0x4a53d1[_0x4e8960(0x2895)]),'userProfileName':_0x4a1a86[_0x4e8960(0x26b6)][_0x4e8960(0x19eb)]}),'msg':_0x3aaa43[_0x4e8960(0xde)]('STAFF.NOTIFICATIONS.PERMISSIONS_ENABLED_ALL_SUCCESS_MESSAGE',{'sectionName':_0x3aaa43[_0x4e8960(0xde)](_0x4a53d1[_0x4e8960(0x2895)]),'userProfileName':_0x4a1a86[_0x4e8960(0x26b6)][_0x4e8960(0x19eb)]})});});})[_0x4c5e2a(0x129e)](function(_0x368876){const _0x5b3af8=_0x4c5e2a;_0x368876?_0x650b4b['error']({'title':_0x368876[_0x5b3af8(0x107b)]?_0x5b3af8(0x262a)+_0x368876['status']+_0x5b3af8(0x1315)+_0x368876['statusText']:'SYSTEM:USERPROFILE.ADDSECTIONS','msg':_0x368876[_0x5b3af8(0x107b)]?JSON[_0x5b3af8(0x10bb)](_0x368876[_0x5b3af8(0x524)]):_0x368876['toString']()}):_0x4a53d1[_0x5b3af8(0x107b)]=_0x62dfa0(_0x4a53d1,_0x4a53d1[_0x5b3af8(0x107b)][_0x5b3af8(0xa80)]);});}else return _0x3f6083[_0x4c5e2a(0x1f47)]({'category':_0x1f2ca0,'sectionId':_0x4a53d1['id'],'name':_0x1f2ca0,'enabled':!![],'crudPermissions':_0x4c5e2a(0x10f)}),_0x22270b['userProfile']['addSections']({'id':_0x4a1a86['userProfile']['id']},_0x3f6083)[_0x4c5e2a(0x2945)][_0x4c5e2a(0x146b)](function(){const _0x14a1fb=_0x4c5e2a;_0x4a53d1[_0x14a1fb(0x107b)]=_0x62dfa0(_0x4a53d1,'full'),_0x650b4b[_0x14a1fb(0x1c75)]({'title':_0x3aaa43[_0x14a1fb(0xde)](_0x14a1fb(0x27e5),{'sectionName':_0x3aaa43[_0x14a1fb(0xde)](_0x4a53d1[_0x14a1fb(0x2895)]),'userProfileName':_0x4a1a86['userProfile'][_0x14a1fb(0x19eb)]}),'msg':_0x3aaa43[_0x14a1fb(0xde)](_0x14a1fb(0x13e7),{'sectionName':_0x3aaa43[_0x14a1fb(0xde)](_0x4a53d1[_0x14a1fb(0x2895)]),'userProfileName':_0x4a1a86['userProfile'][_0x14a1fb(0x19eb)]})});})[_0x4c5e2a(0x129e)](function(_0x423df0){const _0x3ad257=_0x4c5e2a;_0x650b4b[_0x3ad257(0x1980)]({'title':_0x423df0[_0x3ad257(0x107b)]?'API:'+_0x423df0['status']+_0x3ad257(0x1315)+_0x423df0[_0x3ad257(0x167f)]:'SYSTEM:USERPROFILE.ADDSECTIONS','msg':_0x423df0[_0x3ad257(0x107b)]?JSON[_0x3ad257(0x10bb)](_0x423df0[_0x3ad257(0x524)]):_0x423df0[_0x3ad257(0xd5f)]()});});}else{if(_0x4a53d1[_0x4c5e2a(0x107b)][_0x4c5e2a(0x19eb)]===_0x4c5e2a(0x573)){_0x4a53d1['status']=_0x62dfa0(_0x4a53d1,_0x4c5e2a(0x2862));let _0x543f4f=[];switch(_0x1f2ca0){case _0x4c5e2a(0x24f4):case _0x4c5e2a(0x22ab):_0x543f4f=[_0x4a53d1['id']];break;case _0x4c5e2a(0x11e8):_0x543f4f=_0x3f65c0()[_0x4c5e2a(0x205)](_0x4a1a86[_0x4c5e2a(0x1712)],function(_0x51f047){return _0x51f047['id'];});break;default:_0x543f4f=_0x3f65c0()['map'](_0x4a53d1[_0x4c5e2a(0x20d0)],function(_0x39cb2b){return _0x39cb2b['id'];});break;}return _0x22270b[_0x4c5e2a(0x26b6)]['removeSections']({'id':_0x4a1a86['userProfile']['id'],'ids':_0x543f4f})[_0x4c5e2a(0x2945)][_0x4c5e2a(0x146b)](function(){const _0x489733=_0x4c5e2a;_0x650b4b['success']({'title':_0x3aaa43[_0x489733(0xde)](_0x489733(0x1e32),{'sectionName':_0x3aaa43['instant'](_0x4a53d1[_0x489733(0x2895)]),'userProfileName':_0x4a1a86[_0x489733(0x26b6)][_0x489733(0x19eb)]}),'msg':_0x3aaa43[_0x489733(0xde)]('STAFF.NOTIFICATIONS.PERMISSIONS_DISABLED_ALL_SUCCESS_MESSAGE',{'sectionName':_0x3aaa43[_0x489733(0xde)](_0x4a53d1['translate']),'userProfileName':_0x4a1a86[_0x489733(0x26b6)][_0x489733(0x19eb)]})});})['catch'](function(_0x4b8246){const _0x1f1789=_0x4c5e2a;_0x650b4b[_0x1f1789(0x1980)]({'title':_0x4b8246['status']?'API:'+_0x4b8246[_0x1f1789(0x107b)]+_0x1f1789(0x1315)+_0x4b8246[_0x1f1789(0x167f)]:_0x1f1789(0x650),'msg':_0x4b8246[_0x1f1789(0x107b)]?JSON['stringify'](_0x4b8246['data']):_0x4b8246[_0x1f1789(0xd5f)]()});});}}}function _0x425426(_0x5b428c,_0x33111a){const _0x3bfb05=_0x45e5d4,_0x5e61f7=_0x489290['show']({'controller':_0x3bfb05(0x1d13),'controllerAs':'vm','templateUrl':_0x5956ae,'parent':angular[_0x3bfb05(0x1853)](_0x49870d[_0x3bfb05(0x2586)]),'targetEvent':_0x33111a,'clickOutsideToClose':![],'locals':{'userProfile':_0x4a1a86[_0x3bfb05(0x26b6)],'userProfiles':[],'section':_0x5b428c}});_0x5e61f7[_0x3bfb05(0x146b)](function(){_0x426b05(_0x5b428c);});}function _0x62dfa0(_0x351996,_0x22685c){const _0x13c66b=_0x45e5d4;_0x351996['allResourcesEnabled']=_0x400f03(_0x22685c);switch(_0x22685c){case _0x13c66b(0x1de8):return _0x3f65c0()[_0x13c66b(0xc84)](_0x4a1a86['statusList'],[_0x13c66b(0xa80),_0x13c66b(0x1de8)]);case _0x13c66b(0x2541):return _0x3f65c0()[_0x13c66b(0xc84)](_0x4a1a86[_0x13c66b(0x1824)],[_0x13c66b(0xa80),_0x13c66b(0x2541)]);case _0x13c66b(0x2862):return _0x3f65c0()['find'](_0x4a1a86[_0x13c66b(0x1824)],[_0x13c66b(0xa80),'disabled']);case _0x13c66b(0x20ff):return _0x3f65c0()['find'](_0x4a1a86[_0x13c66b(0x1824)],[_0x13c66b(0xa80),_0x13c66b(0x20ff)]);case _0x13c66b(0x207d):return _0x3f65c0()['find'](_0x4a1a86['statusList'],['tag','unknown']);default:return _0x3f65c0()[_0x13c66b(0xc84)](_0x4a1a86[_0x13c66b(0x1824)],[_0x13c66b(0xa80),_0x13c66b(0x207d)]);}}function _0x622409(_0x4c7a8f){return _0x8f6188(function(_0x526ab7,_0x1dfdcb){const _0x22ea20=a0_0x3bb9,_0x512420=typeof _0x4c7a8f[_0x22ea20(0x2894)]!=='undefined'&&_0x3f65c0()['includes'](_0x4c7a8f[_0x22ea20(0xdb0)],_0x22ea20(0xe26));_0x512420?_0x217e5e(_0x4c7a8f)[_0x22ea20(0x146b)](function(_0x479a44){_0x526ab7(_0x479a44);})[_0x22ea20(0x129e)](function(_0x1b4a49){_0x1dfdcb(_0x1b4a49);}):_0x3a2aa9(_0x4c7a8f)[_0x22ea20(0x146b)](function(_0x21a85b){_0x526ab7(_0x21a85b);})['catch'](function(_0x8924bf){_0x1dfdcb(_0x8924bf);});});}function _0x217e5e(_0x143683){return _0x8f6188(function(_0xe0f817,_0x203729){const _0x5d1ed9=a0_0x3bb9,_0x488380=typeof _0x143683[_0x5d1ed9(0x2894)]!==_0x5d1ed9(0x2274)&&_0x143683[_0x5d1ed9(0x2894)]===_0x5d1ed9(0xbca)?'outbound':_0x5d1ed9(0x7b0);return _0x22270b[_0x143683[_0x5d1ed9(0xdb0)]][_0x5d1ed9(0x16b4)]({'fields':_0x5d1ed9(0x1005),'channel':_0x143683[_0x5d1ed9(0x2894)]===_0x5d1ed9(0xbca)?_0x5d1ed9(0xe6):_0x143683[_0x5d1ed9(0x2894)],'type':_0x488380,'nolimit':!![]})[_0x5d1ed9(0x2945)][_0x5d1ed9(0x146b)](function(_0x5a3d20){_0xe0f817(_0x5a3d20);})[_0x5d1ed9(0x129e)](function(_0x55042c){_0x203729(_0x55042c);});});}function _0x3a2aa9(_0x4ec246){return _0x8f6188(function(_0x4e8a9,_0x257632){const _0x461bee=a0_0x3bb9;let _0x6d269b,_0x57768e,_0x4c8b69=![],_0x264295=![];switch(_0x4ec246[_0x461bee(0xdb0)]){case _0x461bee(0xd47):switch(_0x4ec246['title']){case _0x461bee(0x109a):_0x6d269b='inbound';break;case _0x461bee(0x1c80):_0x6d269b=_0x461bee(0xc9c);break;case _0x461bee(0xa2b):_0x6d269b=_0x461bee(0x113f);break;}break;case _0x461bee(0x2765):_0x4c8b69=!![];break;case _0x461bee(0x9e1):_0x264295=!![];break;case'user':switch(_0x4ec246[_0x461bee(0x1189)]){case _0x461bee(0xca8):_0x57768e=_0x461bee(0x1755);break;case'Telephones':_0x57768e='telephone';break;case _0x461bee(0x3c4):_0x57768e=_0x461bee(0xe7b);break;}break;}if(_0x4ec246['title']==='Reports'){if(_0x4ec246[_0x461bee(0x22a)])switch(_0x4ec246['reportType']){case _0x461bee(0x13b1):_0x4ec246['route']=_0x461bee(0x20fa);break;case'custom':_0x4ec246[_0x461bee(0xdb0)]='analyticCustomReport';break;}else return _0x22270b[_0x461bee(0x20fa)]['get']({'nolimit':!![]})[_0x461bee(0x2945)][_0x461bee(0x146b)](function(_0x396163){const _0x53b2a7=_0x461bee;_0x22270b['analyticCustomReport'][_0x53b2a7(0x16b4)]({'nolimit':!![]})[_0x53b2a7(0x2945)][_0x53b2a7(0x146b)](function(_0x402322){const _0x1af69a=_0x53b2a7,_0x3301a1=_0x3f65c0()[_0x1af69a(0x21c8)](_0x396163[_0x1af69a(0x19c7)],_0x402322[_0x1af69a(0x19c7)]);_0x4e8a9({'count':_0x3301a1[_0x1af69a(0x402)],'rows':_0x3301a1[_0x1af69a(0x19c7)]});});})[_0x461bee(0x129e)](function(_0x5cb88c){_0x257632(_0x5cb88c);});}return _0x22270b[_0x4ec246['route']][_0x461bee(0x16b4)]({'role':_0x57768e?_0x57768e:undefined,'type':_0x6d269b?_0x6d269b:undefined,'VoiceExtensionId':_0x6d269b?'null':undefined,'IntervalId':_0x4c8b69?'null':undefined,'MailAccountId':_0x264295?'null':undefined,'FaxAccountId':_0x264295?'null':undefined,'SmsAccountId':_0x264295?_0x461bee(0x203c):undefined,'OpenchannelAccountId':_0x264295?'null':undefined,'ChatWebsiteId':_0x264295?_0x461bee(0x203c):undefined,'WhatsappAccountId':_0x264295?_0x461bee(0x203c):undefined,'ListId':_0x264295?_0x461bee(0x203c):undefined,'nolimit':!![]})[_0x461bee(0x2945)][_0x461bee(0x146b)](function(_0x12e1a7){_0x4e8a9(_0x12e1a7);})[_0x461bee(0x129e)](function(_0x73ab71){_0x257632(_0x73ab71);});});}function _0x227ae7(_0x55828e,_0x4953be){return _0x8f6188(function(_0x1d4e75,_0x363930){const _0x124a52=a0_0x3bb9;_0x22270b['userProfileResource'][_0x124a52(0x16b4)]({'sectionId':_0x4953be})[_0x124a52(0x2945)][_0x124a52(0x146b)](function(_0x2548f8){const _0x430b96=_0x124a52;return _0x622409(_0x55828e)[_0x430b96(0x146b)](function(_0x4e9860){const _0x430e42=_0x430b96;return _0x3f65c0()[_0x430e42(0x2796)](_0x2548f8[_0x430e42(0x19c7)],_0x4e9860[_0x430e42(0x19c7)],'id');});})[_0x124a52(0x146b)](function(_0x299895){const _0x1bf117=_0x124a52;_0x3f65c0()[_0x1bf117(0x2635)](_0x299895)?_0x1d4e75():_0x363930();})[_0x124a52(0x129e)](function(_0x2145aa){_0x363930(_0x2145aa);});});}function _0x4e100f(_0x44dcd4,_0x2e0041,_0x2dc8fb){const _0x1bfaef=_0x45e5d4,_0xafd9a5=_0x44dcd4&&_0x44dcd4['length']>0x0?_0x44dcd4[0x0]:null;if(!_0xafd9a5)return _0x2dc8fb;const _0x39b578=_0x3f65c0()[_0x1bfaef(0xc84)](_0x2e0041,['sectionId',_0xafd9a5['id']]);if(_0x39b578)return _0x2e0041=_0x3f65c0()[_0x1bfaef(0x2640)](_0x2e0041,[_0x1bfaef(0x631),_0xafd9a5['id']]),_0x227ae7(_0xafd9a5,_0x39b578['id'])['then'](function(){const _0x40e590=_0x1bfaef;return _0x2dc8fb='full',_0x4e100f(_0x44dcd4[_0x40e590(0x659)](),_0x2e0041,_0x2dc8fb);})[_0x1bfaef(0x129e)](function(_0x65b1c0){const _0x6783d8=_0x1bfaef;return _0x8f6188[_0x6783d8(0xa6f)](_0x65b1c0);});}function _0x426b05(_0x2892f7){const _0x46dc60=_0x45e5d4,_0x217a40=_0x2892f7[_0x46dc60(0x1189)]===_0x46dc60(0xa3f)?_0x46dc60(0x905):_0x2892f7[_0x46dc60(0x1189)];if(!_0x4a1a86[_0x46dc60(0x2690)]){_0x2892f7['status']=_0x62dfa0(_0x2892f7,_0x46dc60(0x207d));return;}typeof _0x2892f7[_0x46dc60(0x1f54)]!==_0x46dc60(0x2274)&&!_0x2892f7[_0x46dc60(0x1f54)][_0x46dc60(0x91f)]?_0x22270b['userProfileSection'][_0x46dc60(0x16b4)]({'userProfileId':_0x4a1a86[_0x46dc60(0x26b6)]['id'],'sectionId':_0x2892f7['id']})['$promise']['then'](function(_0x2bb7b9){const _0x82efa1=_0x46dc60,_0x3bd9b4=_0x2bb7b9&&_0x2bb7b9[_0x82efa1(0x19c7)][_0x82efa1(0x402)]===0x1?_0x2bb7b9[_0x82efa1(0x19c7)][0x0]:null,_0x149eb9=_0x3bd9b4?_0x82efa1(0x1de8):'disabled';_0x2892f7[_0x82efa1(0x107b)]=_0x62dfa0(_0x2892f7,_0x149eb9);}):typeof _0x2892f7[_0x46dc60(0x2690)]!==_0x46dc60(0x2274)&&!_0x4a1a86[_0x46dc60(0x2690)][_0x2892f7[_0x46dc60(0x2690)]]?_0x2892f7[_0x46dc60(0x107b)]=_0x62dfa0(_0x2892f7,_0x46dc60(0x20ff)):_0x22270b[_0x46dc60(0x1366)]['get']({'userProfileId':_0x4a1a86[_0x46dc60(0x26b6)]['id'],'category':_0x217a40})[_0x46dc60(0x2945)]['then'](function(_0x18e37b){const _0x56d90d=_0x46dc60,_0x541eb9=_0x18e37b&&_0x18e37b[_0x56d90d(0x19c7)]&&_0x18e37b[_0x56d90d(0x19c7)][_0x56d90d(0x402)]>0x0?_0x18e37b[_0x56d90d(0x19c7)]:[];if(_0x2892f7[_0x56d90d(0x1189)]===_0x56d90d(0x11e8))return _0x3f65c0()[_0x56d90d(0x2635)](_0x541eb9)?_0x56d90d(0x2862):_0x541eb9[0x0][_0x56d90d(0x11d2)]?_0x56d90d(0x1de8):_0x22270b[_0x56d90d(0xdcc)][_0x56d90d(0x16b4)]({'sectionId':_0x541eb9[0x0]['id'],'resourceId':0x65})[_0x56d90d(0x2945)][_0x56d90d(0x146b)](function(_0x2250b1){const _0x11cf83=_0x56d90d,_0x26d1b7=_0x2250b1&&_0x2250b1[_0x11cf83(0x19c7)]?_0x2250b1[_0x11cf83(0x19c7)][0x0]:null;return _0x26d1b7?_0x11cf83(0x1de8):_0x11cf83(0x2541);});else{const _0x29a39a=_0x3f65c0()[_0x56d90d(0x1dd6)](_0x2892f7[_0x56d90d(0x20d0)],function(_0x2a3d71){const _0x52ed56=_0x56d90d;return typeof _0x2a3d71[_0x52ed56(0x1f54)]!==_0x52ed56(0x2274)&&_0x2a3d71[_0x52ed56(0x1f54)][_0x52ed56(0x28fc)]?undefined:_0x2a3d71;});if(_0x541eb9[_0x56d90d(0x402)]===_0x29a39a[_0x56d90d(0x402)]){if(_0x3f65c0()['every'](_0x541eb9,['autoAssociation',!![]]))return'full';else{const _0x18b53e=_0x3f65c0()[_0x56d90d(0x1dd6)](_0x29a39a,function(_0x7b846d){const _0x473940=_0x56d90d;return typeof _0x7b846d[_0x473940(0x1f54)]!=='undefined'&&!_0x7b846d[_0x473940(0x1f54)][_0x473940(0x91f)]?undefined:_0x7b846d;});return _0x4e100f(_0x18b53e,_0x541eb9,_0x56d90d(0x2541));}}else return _0x541eb9[_0x56d90d(0x402)]===0x0?_0x56d90d(0x2862):'partial';}})['then'](function(_0x1c3d5f){const _0x593937=_0x46dc60;_0x2892f7[_0x593937(0x107b)]=_0x62dfa0(_0x2892f7,_0x1c3d5f);})[_0x46dc60(0x129e)](function(_0x41782e){const _0x5f5e0b=_0x46dc60,_0x2da72e=_0x41782e?_0x5f5e0b(0x207d):'partial';_0x2892f7[_0x5f5e0b(0x107b)]=_0x62dfa0(_0x2892f7,_0x2da72e),_0x41782e&&_0x650b4b[_0x5f5e0b(0x1980)]({'title':_0x41782e['status']?_0x5f5e0b(0x262a)+_0x41782e['status']+'\x20-\x20'+_0x41782e['statusText']:_0x5f5e0b(0x2860)+_0x217a40[_0x5f5e0b(0x1c37)]()+')','msg':_0x41782e[_0x5f5e0b(0x107b)]?JSON[_0x5f5e0b(0x10bb)](_0x41782e[_0x5f5e0b(0x524)]):_0x41782e['toString']()});});}function _0x400f03(_0x406ee5){const _0x2dfaaa=_0x45e5d4;return _0x406ee5===_0x2dfaaa(0x1de8)?!![]:![];}}const _0x1b5d36=_0x3127b9;;_0xbce6ab[_0x313a4d(0x11c2)]=['$scope',_0x313a4d(0x10e8),'$q',_0x313a4d(0x1fe4),_0x313a4d(0x247f),_0x313a4d(0x26b6),_0x313a4d(0x2851),_0x313a4d(0x214b),_0x313a4d(0xa87),_0x313a4d(0x2146)];function _0xbce6ab(_0x283b26,_0xa32dea,_0x132b62,_0x495dd6,_0x394903,_0x9315c4,_0x11a380,_0x12755f,_0xe4e9c4,_0x5e98f8){const _0x103319=_0x313a4d,_0x5957d7=this;_0x5957d7[_0x103319(0x26b6)]=_0x9315c4,_0x5957d7[_0x103319(0x188d)]=0x0,_0x5957d7[_0x103319(0x2146)]=angular[_0x103319(0x235a)](_0x5e98f8),_0x5957d7[_0x103319(0x1189)]=_0x12755f[_0x103319(0xde)](_0x103319(0x1254),{'sectionName':_0x12755f[_0x103319(0xde)](_0x5957d7[_0x103319(0x2146)]['translate'])}),_0x5957d7[_0x103319(0x1fd6)]=[],_0x5957d7[_0x103319(0x1ecf)]=[],_0x5957d7[_0x103319(0x144a)]=_0x3f65c0()[_0x103319(0x1dd6)](_0x5957d7[_0x103319(0x2146)][_0x103319(0x20d0)],function(_0x3c8f82){const _0x2d458b=_0x103319;return typeof _0x3c8f82[_0x2d458b(0x1f54)]!=_0x2d458b(0x2274)&&_0x3c8f82['permissions'][_0x2d458b(0x28fc)]?undefined:_0x3c8f82;}),_0x5957d7[_0x103319(0x1712)]=[{'title':'Dashboards','translate':_0x103319(0xb03),'id':0x64}],_0x5957d7[_0x103319(0x17fb)]=[];_0x5957d7[_0x103319(0x2146)][_0x103319(0x1189)]===_0x103319(0x11e8)&&(_0x5957d7[_0x103319(0x17fb)]=_0x5957d7['subsections'],_0x5957d7[_0x103319(0x144a)]=_0x5957d7['dashboardSections']);_0x5957d7[_0x103319(0x71c)]=null,_0x5957d7[_0x103319(0x1b93)]=null,_0x5957d7['allReportsSelected']=[],_0x5957d7[_0x103319(0x13f3)]=_0x50142c,_0x5957d7[_0x103319(0x1a0e)]=_0x3305ef,_0x5957d7[_0x103319(0xbe7)]=_0x80c78d,_0x5957d7[_0x103319(0x22f3)]=_0x5e6134,_0x5957d7[_0x103319(0x1332)]=_0x37250c,_0x5957d7[_0x103319(0x316)]=_0x24bd4a,_0x5957d7[_0x103319(0x1ac3)]=_0x192bbd,_0x5957d7['dualMultiselectOptions']={'readOnly':![],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x103319(0x19eb),'line1':_0x103319(0x19eb),'line2':'','line3':'','line4':'fullPath','labelAll':_0x12755f[_0x103319(0xde)](_0x103319(0x9d1)),'labelSelected':_0x12755f[_0x103319(0xde)](_0x103319(0xbc7)),'labelSearch':_0x12755f['instant']('STAFF.PERMISSIONS_PLACEHOLDER_SEARCH'),'transferCallback':function(_0x5ee55f,_0x2c6274){const _0x4c4d62=_0x103319;_0x1e141c(!![]),_0x2c6274?(_0x5957d7[_0x4c4d62(0x71c)]['selectedItems']=_0x3f65c0()[_0x4c4d62(0x2062)](_0x5957d7[_0x4c4d62(0x71c)]['selectedItems'],_0x5ee55f,'id'),_0x5957d7[_0x4c4d62(0x71c)][_0x4c4d62(0x11d2)]=![]):_0x5957d7[_0x4c4d62(0x71c)][_0x4c4d62(0x1ecf)]=_0x3f65c0()['unionBy'](_0x5957d7['selectedSection'][_0x4c4d62(0x1ecf)],_0x5ee55f,'id'),_0x5957d7[_0x4c4d62(0x71c)]['title']===_0x4c4d62(0xc20)&&_0x40854b();}};function _0x5af2c8(){return _0x132b62(function(_0x1829ca,_0xd77e38){const _0x383ca3=a0_0x3bb9,_0x5d1c74=typeof _0x5957d7['selectedSection'][_0x383ca3(0x2894)]!==_0x383ca3(0x2274)&&_0x5957d7[_0x383ca3(0x71c)][_0x383ca3(0x2894)]===_0x383ca3(0xbca)?_0x383ca3(0xc9c):_0x383ca3(0x7b0);return _0x394903[_0x5957d7['selectedSection'][_0x383ca3(0xdb0)]][_0x383ca3(0x16b4)]({'fields':_0x383ca3(0x1005),'channel':_0x5957d7[_0x383ca3(0x71c)][_0x383ca3(0x2894)]===_0x383ca3(0xbca)?'voice':_0x5957d7[_0x383ca3(0x71c)][_0x383ca3(0x2894)],'type':_0x5d1c74,'nolimit':!![]})['$promise'][_0x383ca3(0x146b)](function(_0x1f2124){_0x1829ca(_0x1f2124);})[_0x383ca3(0x129e)](function(_0x443942){_0xd77e38(_0x443942);});});}function _0x346efb(){return _0x132b62(function(_0xed2eb5,_0x5daae2){const _0x34ac95=a0_0x3bb9;let _0x5a41c8,_0x14d68e,_0x5e0c0a=![],_0x1e3031=![];if(_0x5957d7[_0x34ac95(0x71c)][_0x34ac95(0xdb0)]===_0x34ac95(0xd47))switch(_0x5957d7[_0x34ac95(0x71c)][_0x34ac95(0x1189)]){case _0x34ac95(0x109a):_0x5a41c8=_0x34ac95(0x7b0);break;case _0x34ac95(0x1c80):_0x5a41c8=_0x34ac95(0xc9c);break;case _0x34ac95(0xa2b):_0x5a41c8='internal';break;}if(_0x5957d7[_0x34ac95(0x71c)][_0x34ac95(0xdb0)]===_0x34ac95(0xe7b))switch(_0x5957d7[_0x34ac95(0x71c)]['title']){case _0x34ac95(0xca8):_0x14d68e=_0x34ac95(0x1755);break;case _0x34ac95(0x3af):_0x14d68e=_0x34ac95(0x90c);break;case _0x34ac95(0x3c4):_0x14d68e=_0x34ac95(0xe7b);break;}_0x5957d7['selectedSection'][_0x34ac95(0xdb0)]===_0x34ac95(0x2765)&&(_0x5e0c0a=!![]);_0x5957d7[_0x34ac95(0x71c)]['route']==='disposition'&&(_0x1e3031=!![]);_0x5957d7[_0x34ac95(0x71c)][_0x34ac95(0x1189)]==='Reports'&&(_0x5957d7['selectedSection'][_0x34ac95(0xdb0)]=_0x5957d7[_0x34ac95(0x71c)]['reportType']===_0x34ac95(0x13b1)?_0x34ac95(0x20fa):_0x34ac95(0x12a5));if(_0x5957d7[_0x34ac95(0x71c)]['title']===_0x34ac95(0x11e8))_0xed2eb5({'count':0x1,'rows':[{'id':0x65,'name':_0x12755f[_0x34ac95(0xde)]('APP.GENERAL')}]});else return _0x394903[_0x5957d7[_0x34ac95(0x71c)]['route']][_0x34ac95(0x16b4)]({'role':_0x14d68e?_0x14d68e:undefined,'type':_0x5a41c8?_0x5a41c8:undefined,'VoiceExtensionId':_0x5a41c8?_0x34ac95(0x203c):undefined,'IntervalId':_0x5e0c0a?_0x34ac95(0x203c):undefined,'MailAccountId':_0x1e3031?_0x34ac95(0x203c):undefined,'FaxAccountId':_0x1e3031?_0x34ac95(0x203c):undefined,'SmsAccountId':_0x1e3031?_0x34ac95(0x203c):undefined,'OpenchannelAccountId':_0x1e3031?'null':undefined,'ChatWebsiteId':_0x1e3031?_0x34ac95(0x203c):undefined,'WhatsappAccountId':_0x1e3031?_0x34ac95(0x203c):undefined,'ListId':_0x1e3031?_0x34ac95(0x203c):undefined,'nolimit':!![]})[_0x34ac95(0x2945)][_0x34ac95(0x146b)](function(_0x145e4c){_0xed2eb5(_0x145e4c);})[_0x34ac95(0x129e)](function(_0xd7c00c){_0x5daae2(_0xd7c00c);});});}function _0x2e1634(){const _0x1ecd47=_0x103319,_0x3a8eac=typeof _0x5957d7[_0x1ecd47(0x71c)][_0x1ecd47(0x2017)]!='undefined'?_0x5957d7[_0x1ecd47(0x71c)][_0x1ecd47(0x2017)]:![];return _0x132b62(function(_0x5452df,_0x84fdac){const _0x4fe36e=_0x1ecd47;_0x394903[_0x4fe36e(0x1366)][_0x4fe36e(0x16b4)]({'userProfileId':_0x5957d7['userProfile']['id'],'sectionId':_0x5957d7[_0x4fe36e(0x71c)]['id']})[_0x4fe36e(0x2945)][_0x4fe36e(0x146b)](function(_0x245762){const _0xfcb7a0=_0x4fe36e,_0x598b4a=_0x245762&&_0x245762[_0xfcb7a0(0x19c7)]?_0x245762['rows'][0x0]:null;!_0x3a8eac&&(_0x5957d7['selectedSection'][_0xfcb7a0(0x193e)]=_0x598b4a?!!_0x598b4a[_0xfcb7a0(0x193e)]:![],_0x5957d7[_0xfcb7a0(0x71c)]['autoAssociation']=_0x598b4a?!!_0x598b4a[_0xfcb7a0(0x11d2)]:![],_0x5957d7[_0xfcb7a0(0x71c)][_0xfcb7a0(0x2514)]=_0x598b4a?_0x59f2b1(_0x598b4a[_0xfcb7a0(0x2514)]):_0x59f2b1(_0x5957d7[_0xfcb7a0(0x26b6)][_0xfcb7a0(0x2514)])),_0x5452df(_0x598b4a);})[_0x4fe36e(0x129e)](function(_0x346baf){_0x84fdac(_0x346baf);});});}function _0x1d99cc(){return _0x132b62(function(_0x498341,_0x2b89d9){const _0x31ad50=a0_0x3bb9;!_0x5957d7['loadedSection']?_0x498341(null):_0x394903[_0x31ad50(0xdcc)][_0x31ad50(0x16b4)]({'sectionId':_0x5957d7[_0x31ad50(0x1b93)]['id'],'nolimit':!![]})[_0x31ad50(0x2945)][_0x31ad50(0x146b)](function(_0x2706c1){_0x498341(_0x2706c1);})[_0x31ad50(0x129e)](function(_0x4bef85){_0x2b89d9(_0x4bef85);});});}function _0x47bce3(){return _0x132b62(function(_0x5330aa,_0x3f72ad){const _0x190cfd=a0_0x3bb9,_0x50e47a=typeof _0x5957d7[_0x190cfd(0x71c)][_0x190cfd(0x2894)]!==_0x190cfd(0x2274)&&_0x3f65c0()[_0x190cfd(0xa4e)](_0x5957d7[_0x190cfd(0x71c)][_0x190cfd(0xdb0)],_0x190cfd(0xe26));_0x50e47a?_0x5af2c8()[_0x190cfd(0x146b)](function(_0x235951){_0x5330aa(_0x235951);})[_0x190cfd(0x129e)](function(_0x10631f){_0x3f72ad(_0x10631f);}):_0x346efb()[_0x190cfd(0x146b)](function(_0x152c8d){_0x5330aa(_0x152c8d);})[_0x190cfd(0x129e)](function(_0x201c61){_0x3f72ad(_0x201c61);});});}function _0x4f8b7(){const _0x436f56=_0x103319,_0x34c5bc=typeof _0x5957d7[_0x436f56(0x71c)][_0x436f56(0x2017)]!=_0x436f56(0x2274)?_0x5957d7['selectedSection'][_0x436f56(0x2017)]:![];let _0x42b487=[];return _0x1d99cc()[_0x436f56(0x146b)](function(_0x3704e8){const _0x8c1345=_0x436f56;return _0x42b487=_0x3704e8&&_0x3704e8['rows']?_0x3704e8[_0x8c1345(0x19c7)]:[],_0x5957d7['selectedSection'][_0x8c1345(0x1189)]==='Reports'&&(_0x5957d7[_0x8c1345(0x14a1)]=!_0x5957d7[_0x8c1345(0x14a1)]?_0x42b487:_0x5957d7[_0x8c1345(0x14a1)],_0x42b487=_0xac1002(_0x5957d7[_0x8c1345(0x14a1)])),typeof _0x5957d7['selectedSection'][_0x8c1345(0x1f54)]!==_0x8c1345(0x2274)&&!_0x5957d7[_0x8c1345(0x71c)][_0x8c1345(0x1f54)][_0x8c1345(0x91f)]?{'rows':[]}:_0x47bce3();})[_0x436f56(0x146b)](function(_0x194630){const _0x2ef949=_0x436f56;_0x5957d7['items']=_0x194630[_0x2ef949(0x19c7)]?_0x3f65c0()[_0x2ef949(0x205)](_0x194630[_0x2ef949(0x19c7)],function(_0x268ae2){const _0x44d120=_0x2ef949;return _0x5957d7['selectedSection'][_0x44d120(0x1189)]===_0x44d120(0xc20)&&(_0x268ae2[_0x44d120(0x1a11)]=_0x40b6aa(_0x268ae2[_0x44d120(0x3fd)])[_0x44d120(0x5f4)]('\x20','_')),_0x268ae2[_0x44d120(0x146f)]=!![],_0x268ae2;}):[];!_0x34c5bc&&(_0x5957d7[_0x2ef949(0x71c)][_0x2ef949(0x1ecf)]=_0x3f65c0()[_0x2ef949(0x205)](_0x42b487,function(_0x7ca121){const _0x43a00b=_0x2ef949;return _0x3f65c0()['find'](_0x5957d7[_0x43a00b(0x1fd6)],{'id':_0x7ca121[_0x43a00b(0x18b8)]});}));const _0x2a8146=_0x3f65c0()[_0x2ef949(0x2796)](_0x5957d7[_0x2ef949(0x71c)][_0x2ef949(0x1ecf)],_0x5957d7[_0x2ef949(0x1fd6)],'id');!_0x3f65c0()['isEmpty'](_0x2a8146)&&(_0x5957d7[_0x2ef949(0x71c)][_0x2ef949(0x1ecf)]=_0x3f65c0()[_0x2ef949(0x2062)](_0x5957d7[_0x2ef949(0x71c)][_0x2ef949(0x1ecf)],_0x2a8146,'id'));let _0x3c4d72;switch(_0x5957d7[_0x2ef949(0x71c)][_0x2ef949(0x1189)]){case _0x2ef949(0x275):_0x5957d7['selectedSection'][_0x2ef949(0x1ecf)]=_0x3f65c0()['filter'](_0x5957d7['items'],function(_0x3bc594){const _0x38d227=_0x2ef949;if(_0x3bc594[_0x38d227(0x102e)])return _0x3bc594['isValid']=![],_0x3bc594;else{const _0x443724=_0x3f65c0()['find'](_0x42b487,{'resourceId':_0x3bc594['id']});if(typeof _0x443724!==_0x38d227(0x2274))return _0x3bc594[_0x38d227(0x146f)]=!![],_0x3bc594;}});break;case'MusicOnHolds':_0x5957d7[_0x2ef949(0x71c)]['selectedItems']=_0x3f65c0()[_0x2ef949(0x1dd6)](_0x5957d7['items'],function(_0xdea88c){const _0xc64962=_0x2ef949;if(_0xdea88c['defaultEntry'])return _0xdea88c['isValid']=![],_0xdea88c;else{const _0x1f89ed=_0x3f65c0()[_0xc64962(0xc84)](_0x42b487,{'resourceId':_0xdea88c['id']});if(typeof _0x1f89ed!==_0xc64962(0x2274))return _0xdea88c['isValid']=!![],_0xdea88c;}});break;case _0x2ef949(0xc20):_0x3c4d72=_0x2ca77a(_0x5957d7[_0x2ef949(0xfa0)]),_0x5957d7['selectedSection'][_0x2ef949(0x1ecf)]=_0x470c69(_0x5957d7[_0x2ef949(0x71c)][_0x2ef949(0x1ecf)]),_0x5957d7['selectedSection']['selectedItems']=_0x3f65c0()[_0x2ef949(0x11c)](_0x5957d7[_0x2ef949(0x71c)]['selectedItems'],_0x3c4d72,'id');break;}_0x5957d7[_0x2ef949(0x1f8a)]['selectedItems']=_0x5957d7[_0x2ef949(0x71c)][_0x2ef949(0x1ecf)],_0x5957d7[_0x2ef949(0x1f8a)][_0x2ef949(0x1fd6)]=_0x3f65c0()['differenceBy'](_0x5957d7['items'],_0x5957d7['dualMultiselectOptions']['selectedItems'],'id');})[_0x436f56(0x129e)](function(_0x4c8d31){const _0x2af4c0=_0x436f56;_0x495dd6[_0x2af4c0(0x1980)]({'title':_0x4c8d31[_0x2af4c0(0x107b)]?_0x2af4c0(0x262a)+_0x4c8d31[_0x2af4c0(0x107b)]+'\x20-\x20'+_0x4c8d31[_0x2af4c0(0x167f)]:_0x2af4c0(0x209e)+_0x5957d7[_0x2af4c0(0x71c)][_0x2af4c0(0x1189)]['toUpperCase'](),'msg':_0x4c8d31['status']?JSON['stringify'](_0x4c8d31[_0x2af4c0(0x524)]):_0x4c8d31[_0x2af4c0(0xd5f)]()});});}function _0x3305ef(){const _0x39d4ab=_0x103319;return _0x2e1634()[_0x39d4ab(0x146b)](function(_0x3b4ff5){const _0x10ed20=_0x39d4ab;_0x5957d7['loadedSection']=_0x3b4ff5;if(_0x5957d7[_0x10ed20(0x71c)][_0x10ed20(0x1189)]===_0x10ed20(0xc20))return _0x1cce0c()[_0x10ed20(0x146b)](function(){if(!_0x5957d7['selectedSection']['reportType'])return _0x1d99cc()['then'](function(_0x32ef2c){const _0x41d039=a0_0x3bb9;_0x5957d7[_0x41d039(0xfa0)]=_0x32ef2c?_0x3f65c0()[_0x41d039(0x205)](_0x32ef2c[_0x41d039(0x19c7)],function(_0x2ea697){const _0x578f96=_0x41d039;return{'id':_0x2ea697[_0x578f96(0x18b8)],'name':_0x2ea697[_0x578f96(0x19eb)],'type':_0x2ea697['type']};}):[];});})[_0x10ed20(0x129e)](function(_0x20de6f){const _0x4eca2c=_0x10ed20;_0x495dd6[_0x4eca2c(0x1980)]({'title':_0x20de6f[_0x4eca2c(0x107b)]?_0x4eca2c(0x262a)+_0x20de6f[_0x4eca2c(0x107b)]+_0x4eca2c(0x1315)+_0x20de6f[_0x4eca2c(0x167f)]:_0x4eca2c(0x274b),'msg':_0x20de6f[_0x4eca2c(0x524)]?JSON[_0x4eca2c(0x10bb)](_0x20de6f[_0x4eca2c(0x524)]):_0x20de6f[_0x4eca2c(0xd5f)]()});});else _0x4f8b7();})[_0x39d4ab(0x129e)](function(_0x4355bb){const _0x534679=_0x39d4ab;_0x495dd6['error']({'title':_0x4355bb[_0x534679(0x107b)]?'API:'+_0x4355bb[_0x534679(0x107b)]+_0x534679(0x1315)+_0x4355bb[_0x534679(0x167f)]:_0x534679(0x209e)+_0x5957d7[_0x534679(0x71c)]['title'][_0x534679(0x1c37)](),'msg':_0x4355bb[_0x534679(0x107b)]?JSON[_0x534679(0x10bb)](_0x4355bb[_0x534679(0x524)]):_0x4355bb[_0x534679(0xd5f)]()});});}function _0x59f2b1(_0x26de18){const _0x2c176a=_0x103319;return _0x26de18&&(_0x5957d7[_0x2c176a(0x71c)]['allowEdit']=_0x3f65c0()[_0x2c176a(0xa4e)](_0x26de18,'e')?!![]:![],_0x5957d7[_0x2c176a(0x71c)]['allowDelete']=_0x3f65c0()[_0x2c176a(0xa4e)](_0x26de18,'d')?!![]:![]),_0x345eb4();}function _0x345eb4(){const _0x22d0df=_0x103319,_0x3048f7=['r'];if(_0x5957d7[_0x22d0df(0x71c)]['allowEdit'])_0x3048f7[_0x22d0df(0x1f47)]('e');else{const _0x4d0dc6=_0x3f65c0()[_0x22d0df(0x172b)](_0x3048f7,['e']);_0x4d0dc6>0x0&&_0x5957d7['selectedSection'][_0x22d0df(0x2514)][_0x22d0df(0x5f4)]('e','');}if(_0x5957d7[_0x22d0df(0x71c)][_0x22d0df(0x1e94)])_0x3048f7[_0x22d0df(0x1f47)]('d');else{const _0x23fd78=_0x3f65c0()['indexOf'](_0x3048f7,['d']);_0x23fd78>0x0&&_0x5957d7[_0x22d0df(0x71c)][_0x22d0df(0x2514)][_0x22d0df(0x5f4)]('d','');}return _0x3048f7;}function _0x80c78d(){const _0x6831bf=_0x103319;_0x5957d7[_0x6831bf(0x71c)][_0x6831bf(0x193e)]=!_0x5957d7[_0x6831bf(0x71c)][_0x6831bf(0x193e)],_0x1e141c(!![]);}function _0x5e6134(){const _0x298000=_0x103319;if(!_0x5957d7[_0x298000(0x71c)]['autoAssociation']){const _0x2100d4=[];for(let _0x3aa491=0x0;_0x3aa491<_0x5957d7[_0x298000(0x1f8a)][_0x298000(0x1fd6)]['length'];_0x3aa491++){_0x2100d4['push'](_0x5957d7['dualMultiselectOptions'][_0x298000(0x1fd6)][_0x3aa491]),_0x5957d7[_0x298000(0x1f8a)][_0x298000(0x1ecf)][_0x298000(0x1f47)](_0x5957d7['dualMultiselectOptions'][_0x298000(0x1fd6)][_0x3aa491]);}_0x5957d7['dualMultiselectOptions']['items']=[],_0x5957d7['dualMultiselectOptions'][_0x298000(0x201b)](_0x2100d4,![]);}_0x1e141c(!![]);}function _0x37250c(){const _0x186e41=_0x103319;_0x5957d7[_0x186e41(0x20dd)]=_0x5c3e23(),_0x5957d7[_0x186e41(0x71c)]['selectedItems']&&(_0x5957d7['allReportsSelected']=_0x470c69(_0x5957d7['allReportsSelected']),_0x40854b()),_0x4f8b7();}function _0x24bd4a(_0x58c436){const _0x3a8012=_0x103319;if(_0x58c436===_0x3a8012(0x129))_0x5957d7[_0x3a8012(0x71c)][_0x3a8012(0x104e)]=!_0x5957d7['selectedSection']['allowEdit'];else _0x58c436==='delete'&&(_0x5957d7[_0x3a8012(0x71c)][_0x3a8012(0x1e94)]=!_0x5957d7[_0x3a8012(0x71c)]['allowDelete']);_0x5957d7['selectedSection']['crudPermissions']=_0x59f2b1(),_0x1e141c(!![]);}function _0x192bbd(){const _0x4f5d3f=_0x103319,_0x21fadb=_0x5957d7['section'][_0x4f5d3f(0x1189)]===_0x4f5d3f(0xa3f)?_0x4f5d3f(0x905):_0x5957d7[_0x4f5d3f(0x2146)]['title'],_0x34beea=_0x3f65c0()(_0x5957d7[_0x4f5d3f(0x144a)])[_0x4f5d3f(0x1dd6)]({'pending':!![]})[_0x4f5d3f(0x205)](function(_0x466349){const _0x23a6ad=_0x4f5d3f,_0x5bde39=_0x21fadb===_0x23a6ad(0x22cc)&&_0x466349[_0x23a6ad(0x1189)]==='Projects'?_0x23a6ad(0x14e8):_0x466349[_0x23a6ad(0x1189)],_0x4af2df=_0x5bde39==='Reports'?_0x5957d7[_0x23a6ad(0xfa0)]:_0x466349[_0x23a6ad(0x1ecf)];return _0x21fadb===_0x23a6ad(0x1e43)&&(_0x466349[_0x23a6ad(0x11d2)]=!![]),{'category':_0x21fadb,'sectionId':_0x466349['id'],'name':_0x5bde39,'enabled':_0x466349[_0x23a6ad(0x193e)],'autoAssociation':_0x466349[_0x23a6ad(0x11d2)],'crudPermissions':_0x3f65c0()[_0x23a6ad(0x205)](_0x466349['crudPermissions'])[_0x23a6ad(0xb47)](''),'Resources':_0x3f65c0()[_0x23a6ad(0x205)](_0x4af2df,function(_0x1426bc){return{'name':_0x1426bc['name'],'resourceId':_0x1426bc['id'],'type':_0x1bfaca(_0x5bde39,_0x1426bc)};})};})[_0x4f5d3f(0x175d)]();return _0x394903[_0x4f5d3f(0x26b6)][_0x4f5d3f(0x2158)]({'id':_0x5957d7[_0x4f5d3f(0x26b6)]['id']},_0x34beea)[_0x4f5d3f(0x2945)]['then'](function(){const _0x494589=_0x4f5d3f;_0x5957d7[_0x494589(0x144a)][_0x494589(0x1df5)](function(_0x112b67){_0x112b67['pending']=undefined;}),_0x5957d7[_0x494589(0x14a1)]=null,_0x469106(),_0x5957d7['selectedSection']['title']===_0x494589(0xc20)&&!_0x5957d7[_0x494589(0x71c)][_0x494589(0x22a)]&&_0x283b26['userProfileForm'][_0x494589(0x1968)](),_0x495dd6[_0x494589(0x1c75)]({'title':_0x12755f[_0x494589(0xde)](_0x494589(0x1129),{'sectionName':_0x12755f['instant'](_0x21fadb[_0x494589(0x2895)])}),'msg':_0x12755f[_0x494589(0xde)]('STAFF.NOTIFICATIONS.PERMISSIONS_SAVED_SUCCESS_MESSAGE')});})['then'](function(){const _0x1b25f9=_0x4f5d3f;return _0x2e1634()[_0x1b25f9(0x146b)](function(_0x51d59c){const _0x50e6a0=_0x1b25f9;_0x5957d7[_0x50e6a0(0x1b93)]=_0x51d59c;});})[_0x4f5d3f(0x129e)](function(_0x2744b1){const _0x95ea2c=_0x4f5d3f;_0x495dd6[_0x95ea2c(0x1980)]({'title':_0x2744b1[_0x95ea2c(0x107b)]?_0x95ea2c(0x262a)+_0x2744b1['status']+_0x95ea2c(0x1315)+_0x2744b1['statusText']:_0x95ea2c(0x99f),'msg':_0x2744b1[_0x95ea2c(0x107b)]?JSON[_0x95ea2c(0x10bb)](_0x2744b1['data']):_0x2744b1[_0x95ea2c(0xd5f)]()});});}function _0x1e141c(_0x2476f6){const _0x44883b=_0x103319,_0x3acb8f=_0x3f65c0()[_0x44883b(0x99c)](_0x5957d7[_0x44883b(0x144a)],function(_0x20aa26){return _0x20aa26['id']==_0x5957d7['selectedSection']['id'];});_0x5957d7[_0x44883b(0x144a)][_0x3acb8f]['pending']=_0x2476f6,_0x469106();}function _0x469106(){const _0x547512=_0x103319;return _0x5957d7[_0x547512(0x132)]=_0x3f65c0()[_0x547512(0x1360)](_0x5957d7[_0x547512(0x144a)],[_0x547512(0x2017),!![]]);}function _0x5c3e23(){const _0x1db16e=_0x103319;let _0x3d6c17={};return _0x5957d7[_0x1db16e(0x71c)][_0x1db16e(0x22a)]===_0x1db16e(0x13b1)?_0x3d6c17=_0x5957d7[_0x1db16e(0x728)][0x0]?angular[_0x1db16e(0xb08)](_0x5957d7['treeReports'][0x0][_0x1db16e(0xf47)]):[]:_0x3d6c17=_0x5957d7[_0x1db16e(0x728)][0x1]?angular[_0x1db16e(0xb08)](_0x5957d7[_0x1db16e(0x728)][0x1]['tree']):[],_0x3d6c17;}function _0x1cce0c(){return _0x132b62(function(_0x327c53,_0x39af43){const _0x4a6dfe=a0_0x3bb9;_0x394903['analyticTreeReport'][_0x4a6dfe(0x16b4)]({})[_0x4a6dfe(0x2945)][_0x4a6dfe(0x146b)](function(_0x33d5f2){const _0x3c672f=_0x4a6dfe;_0x5957d7['treeReports']=_0x33d5f2[_0x3c672f(0x19c7)]||[],_0x327c53(_0x5957d7['treeReports']);})[_0x4a6dfe(0x129e)](function(_0xe558b8){_0x39af43(_0xe558b8);});});}function _0x40b6aa(_0x21617c){const _0x346142=_0x103319;let _0x5dcdbf=_0x5957d7[_0x346142(0x20dd)][0x0][_0x346142(0xa8d)];return _0x5dcdbf=_0x4309aa(_0x5dcdbf,_0x21617c,_0x5957d7[_0x346142(0x20dd)][0x0]),_0x5dcdbf;}function _0x4309aa(_0x4c3766,_0x5ee8bc,_0x1765aa){const _0x32cee6=_0x103319;if(_0x1765aa&&!_0x3f65c0()['isEmpty'](_0x1765aa[_0x32cee6(0x20d0)]))_0x1765aa=_0x3f65c0()[_0x32cee6(0xc84)](_0x1765aa[_0x32cee6(0x20d0)],function(_0x131466){return _0x3f65c0()['includes'](_0x5ee8bc,_0x131466['id'])?_0x131466:undefined;}),_0x4c3766+=_0x1765aa?'/'+_0x1765aa[_0x32cee6(0xa8d)]:'';else return _0x4c3766;return _0x4309aa(_0x4c3766,_0x5ee8bc,_0x1765aa);}function _0xac1002(_0x304122){const _0x34e390=_0x103319;return _0x3f65c0()[_0x34e390(0x1dd6)](_0x304122,{'type':_0x5957d7[_0x34e390(0x71c)][_0x34e390(0x22a)]===_0x34e390(0x13b1)?_0x34e390(0x3b0):'CustomReports'});}function _0x2ca77a(_0x375090){const _0x610556=_0x103319;return _0x3f65c0()[_0x610556(0x1dd6)](_0x375090,function(_0x5d35c3){const _0x5c9e1d=_0x610556;return _0x3f65c0()[_0x5c9e1d(0xd4d)](_0x5d35c3['parent'],_0x5957d7[_0x5c9e1d(0x71c)][_0x5c9e1d(0x22a)]==='default'?_0x5c9e1d(0x24cc):_0x5c9e1d(0x1802));});}function _0x470c69(_0xcfe329){return _0x3f65c0()['remove'](_0xcfe329,function(_0x701e7c){const _0x209637=a0_0x3bb9;return _0x3f65c0()[_0x209637(0xd4d)](_0x701e7c['parent'],_0x5957d7[_0x209637(0x71c)][_0x209637(0x22a)]==='default'?_0x209637(0x24cc):'custom');});}function _0x40854b(){const _0x2b034f=_0x103319;_0x3f65c0()[_0x2b034f(0x2635)](_0x5957d7[_0x2b034f(0x71c)][_0x2b034f(0x1ecf)])?_0x5957d7['allReportsSelected']=_0x3f65c0()[_0x2b034f(0x2640)](_0x5957d7['allReportsSelected'],function(_0x46814c){const _0x3ccb34=_0x2b034f;return _0x46814c[_0x3ccb34(0x1142)]===(_0x5957d7[_0x3ccb34(0x71c)][_0x3ccb34(0x22a)]===_0x3ccb34(0x13b1)?'CustomReports':'DefaultReports');}):_0x5957d7[_0x2b034f(0x71c)]['selectedItems']['forEach'](function(_0x1b272a){const _0x2efb85=_0x2b034f,_0x4e27ea=_0x3f65c0()[_0x2efb85(0x1360)](_0x5957d7['allReportsSelected'],{'id':_0x1b272a['id'],'parent':_0x1b272a['parent']});!_0x4e27ea&&_0x5957d7[_0x2efb85(0xfa0)][_0x2efb85(0x1f47)](_0x1b272a);});}function _0x1bfaca(_0x241982,_0x328739){const _0x1ca36f=_0x103319;if(_0x241982===_0x1ca36f(0xc20)){if(_0x328739['parent']){const _0x2bfb16=_0x3f65c0()[_0x1ca36f(0xd4d)](_0x328739[_0x1ca36f(0x3fd)],_0x1ca36f(0x24cc))?'Default':_0x1ca36f(0xf21);return _0x2bfb16+_0x241982;}else return _0x328739[_0x1ca36f(0x1142)];}return _0x241982;}function _0x50142c(_0x15238a){const _0x305556=_0x103319;if(_0x5957d7[_0x305556(0x132)]){const _0x4fb33b=_0xa32dea[_0x305556(0x1e8a)]({'skipHide':!![]})[_0x305556(0x1189)](_0x305556(0xf0))[_0x305556(0x199c)](_0x12755f['instant'](_0x305556(0x1eeb)))[_0x305556(0x4bd)](_0x305556(0xf0))[_0x305556(0x1f27)](_0x15238a)['ok'](_0x12755f['instant'](_0x305556(0x1a9b)))[_0x305556(0x6c3)](_0x12755f[_0x305556(0xde)](_0x305556(0x1161)));_0xa32dea[_0x305556(0x2615)](_0x4fb33b)[_0x305556(0x146b)](function(){const _0x12ba40=_0x305556;_0xa32dea[_0x12ba40(0x2458)]();});}else _0xa32dea[_0x305556(0x2458)]();}}const _0x40b535=_0xbce6ab;;const _0x56c7cb=_0x4acfac['p']+_0x313a4d(0x1726);;_0x4acdbc[_0x313a4d(0x11c2)]=[_0x313a4d(0x1862),_0x313a4d(0xd08),_0x313a4d(0x10e8),_0x313a4d(0x4d8),_0x313a4d(0x214b),'license',_0x313a4d(0x15b9),'api',_0x313a4d(0x1fe4),'Auth',_0x313a4d(0x26b6),_0x313a4d(0x1366)];function _0x4acdbc(_0x3a2391,_0x23aafc,_0x2d315d,_0x2c7031,_0x1fc169,_0x3ea4ac,_0xa4d96f,_0x5e5617,_0x4542b4,_0x45d255,_0x42a82f,_0x52c844){const _0x4fcf58=_0x313a4d,_0x1896c0=this;_0x1896c0['currentUser']=_0x45d255[_0x4fcf58(0xb12)](),_0x1896c0[_0x4fcf58(0x2690)]=_0x3ea4ac,_0x1896c0[_0x4fcf58(0x15b9)]=_0xa4d96f,_0x1896c0[_0x4fcf58(0x2251)]=_0x1896c0[_0x4fcf58(0x15b9)]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1896c0[_0x4fcf58(0x1002)]=_0x23aafc[_0x4fcf58(0x2414)]()+_0x4fcf58(0xb0e)+_0x23aafc[_0x4fcf58(0x148e)](),_0x1896c0['userProfile']=_0x42a82f||_0x3a2391[_0x4fcf58(0x16a)][_0x4fcf58(0x26b6)]||{},_0x1896c0['userProfileSection']=_0x52c844&&_0x52c844[_0x4fcf58(0x51c)]==0x1?_0x52c844['rows'][0x0]:null,_0x1896c0['crudPermissions']=_0x45d255[_0x4fcf58(0xe60)](_0x1896c0[_0x4fcf58(0x1366)]?_0x1896c0[_0x4fcf58(0x1366)]['crudPermissions']:null),_0x1896c0[_0x4fcf58(0x855)]={},_0x1896c0[_0x4fcf58(0x1b09)]=_0x3a2391[_0x4fcf58(0x16a)][_0x4fcf58(0x13a3)]||0x0,_0x1896c0[_0x4fcf58(0x267)]=_0x47a8f6,_0x1896c0[_0x4fcf58(0xa26)]=_0x1abd28,_0x1896c0[_0x4fcf58(0x861)]=_0x4542b4[_0x4fcf58(0x271e)],_0x1896c0[_0x4fcf58(0xbd1)]=_0x1ec4b2,_0x1896c0['saveUserProfile']=_0x5ba385;function _0x47a8f6(_0xe1d92a,_0x2a8c50){const _0x173623=_0x4fcf58;_0x2d315d[_0x173623(0x2615)]({'controller':_0x173623(0x1d13),'controllerAs':'vm','templateUrl':_0x5956ae,'parent':angular[_0x173623(0x1853)](_0x2c7031['body']),'targetEvent':_0x2a8c50,'clickOutsideToClose':!![],'locals':{'userProfile':_0xe1d92a,'userProfiles':_0x1896c0[_0x173623(0x2851)]?_0x1896c0[_0x173623(0x2851)][_0x173623(0x19c7)]:[],'crudPermissions':_0x1896c0['crudPermissions']}});}function _0x1abd28(_0x4f1d18,_0x5c0370){const _0x182445=_0x4fcf58;_0x2d315d[_0x182445(0x2615)]({'controller':'UserProfilecloneController','controllerAs':'vm','templateUrl':_0x56c7cb,'parent':angular[_0x182445(0x1853)](_0x2c7031[_0x182445(0x2586)]),'targetEvent':_0x5c0370,'clickOutsideToClose':!![],'locals':{'userProfile':_0x4f1d18,'userProfiles':_0x1896c0['userProfiles']?_0x1896c0['userProfiles']['rows']:[],'crudPermissions':_0x1896c0['crudPermissions']}});}function _0x1ec4b2(){const _0x3acd7d=_0x4fcf58;_0x3a2391['go']('app.staff.userProfiles',{},{'reload':_0x3acd7d(0x2804)});}function _0x5ba385(){const _0x27e874=_0x4fcf58;_0x5e5617[_0x27e874(0x26b6)][_0x27e874(0x18e1)]({'id':_0x1896c0[_0x27e874(0x26b6)]['id']},_0x1896c0[_0x27e874(0x26b6)])[_0x27e874(0x2945)][_0x27e874(0x146b)](function(){const _0x4dd1b5=_0x27e874;_0x4542b4[_0x4dd1b5(0x1c75)]({'title':_0x4dd1b5(0x104b),'msg':_0x1896c0[_0x4dd1b5(0x26b6)]['name']?_0x1896c0['userProfile'][_0x4dd1b5(0x19eb)]+_0x4dd1b5(0x6b0):''});})[_0x27e874(0x129e)](function(_0x223575){const _0x504a65=_0x27e874;_0x4542b4[_0x504a65(0x1980)]({'title':_0x223575[_0x504a65(0x107b)]?_0x504a65(0x262a)+_0x223575['status']+_0x504a65(0x1315)+_0x223575[_0x504a65(0x167f)]:_0x504a65(0x27a8),'msg':_0x223575[_0x504a65(0x524)]?JSON['stringify'](_0x223575[_0x504a65(0x524)]):_0x223575[_0x504a65(0xd5f)]()});});}}const _0x510430=_0x4acdbc;;const _0x512059=_0x4acfac['p']+'src/js/modules/main/apps/staff/views/userProfiles/create/dialog.html/dialog.html';;_0x285f2c[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1aa9),_0x313a4d(0x1862),'$mdSidenav','$mdDialog',_0x313a4d(0x4d8),_0x313a4d(0x1abe),'$translate',_0x313a4d(0x2851),_0x313a4d(0x26b6),_0x313a4d(0x1366),'api',_0x313a4d(0x216c),_0x313a4d(0x1fe4),_0x313a4d(0xa87),'license','setting'];function _0x285f2c(_0x52103d,_0x4c345d,_0x2a8fdf,_0x17d052,_0x3354fa,_0xf44685,_0x521df4,_0x3e9654,_0x37981a,_0x4c9d53,_0x3c505b,_0x92d384,_0x274ba0,_0x2d0102,_0x1551cf,_0x485ed0,_0x218615){const _0x1bbb33=_0x313a4d,_0x3aec08=this;_0x3aec08[_0x1bbb33(0x2690)]=_0x485ed0,_0x3aec08[_0x1bbb33(0x15b9)]=_0x218615,_0x3aec08[_0x1bbb33(0x2321)]=_0x1551cf[_0x1bbb33(0xb12)](),_0x3aec08[_0x1bbb33(0x2851)]=_0x37981a||{'count':0x0,'rows':[]},_0x3aec08['userProfile']=_0x4c9d53,_0x3aec08[_0x1bbb33(0x1366)]=_0x3c505b&&_0x3c505b[_0x1bbb33(0x51c)]==0x1?_0x3c505b[_0x1bbb33(0x19c7)][0x0]:null,_0x3aec08['crudPermissions']=_0x1551cf[_0x1bbb33(0xe60)](_0x3aec08['userProfileSection']?_0x3aec08['userProfileSection'][_0x1bbb33(0x2514)]:null),_0x3aec08[_0x1bbb33(0x768)]='userProfiles',_0x3aec08[_0x1bbb33(0x216a)]='',_0x3aec08['listOrderAsc']=null,_0x3aec08[_0x1bbb33(0x27a6)]=[],_0x3aec08[_0x1bbb33(0x1a56)]={'fields':_0x1bbb33(0x1fbf),'sort':_0x1bbb33(0x12f2),'limit':0xa,'page':0x1},_0x3aec08[_0x1bbb33(0x1b56)]=_0x3f65c0()[_0x1bbb33(0x194)]([{'option':_0x1bbb33(0x1048),'value':_0x1bbb33(0x1007),'disabled':!![]},{'option':'Edit_permission','value':'\x27e\x27'},{'option':_0x1bbb33(0x22ba),'value':_0x1bbb33(0x15c3)}],function(_0x459045){const _0x2ef62e=_0x1bbb33;return _0x3f65c0()[_0x2ef62e(0x5f4)](_0x459045[_0x2ef62e(0x175d)],new RegExp('\x27','g'),'');});_0x3aec08[_0x1bbb33(0x2851)]&&_0x3aec08[_0x1bbb33(0x2851)][_0x1bbb33(0x51c)]>0x0&&_0x3aec08[_0x1bbb33(0x2851)]['rows'][_0x1bbb33(0x1df5)](function(_0x760e54){const _0xc9ecbb=_0x1bbb33,_0x424496=[];_0x760e54[_0xc9ecbb(0x2514)][_0xc9ecbb(0x1df5)](function(_0x5657d4){const _0x5e7dff=_0xc9ecbb;_0x424496['push'](_0x3aec08[_0x5e7dff(0x1b56)][_0x5657d4][_0x5e7dff(0x2927)]);});const _0x357bef=[];_0x424496[_0xc9ecbb(0x1df5)](function(_0xe40bbb){const _0x44cd43=_0xc9ecbb;_0x357bef[_0x44cd43(0x1f47)](_0x3e9654[_0x44cd43(0xde)](_0x44cd43(0x3a7)+_0xe40bbb[_0x44cd43(0x1c37)]()));}),_0x760e54[_0xc9ecbb(0x173c)]=_0x357bef[_0xc9ecbb(0xb47)](',\x20');});_0x3aec08[_0x1bbb33(0x23f9)]=_0x413e34,_0x3aec08[_0x1bbb33(0xa26)]=_0x30f641,_0x3aec08[_0x1bbb33(0xf0a)]=_0x575364,_0x3aec08['success']=_0x35504c,_0x3aec08[_0x1bbb33(0x6cc)]=_0x579d6e,_0x3aec08[_0x1bbb33(0x764)]=_0x3fd8a1,_0x3aec08[_0x1bbb33(0xe37)]=_0x4da2af,_0x3aec08[_0x1bbb33(0x982)]=_0x34be73,_0x3aec08['deleteSelectedUserProfiles']=_0x57d9dc,_0x3aec08[_0x1bbb33(0xfd8)]=_0x25dc87,_0x3aec08[_0x1bbb33(0xe85)]=_0x282821;function _0x413e34(_0x4d7bbe){const _0x2e172d=_0x1bbb33;_0x2a8fdf['go']('app.staff.userProfiles.edit',{'id':_0x4d7bbe['id'],'userProfile':_0x4d7bbe,'crudPermissions':_0x3aec08[_0x2e172d(0x2514)]});}function _0x30f641(_0x4bd9e7,_0x49c5cf){const _0x5783da=_0x1bbb33;_0x3354fa[_0x5783da(0x2615)]({'controller':_0x5783da(0x378),'controllerAs':'vm','templateUrl':_0x56c7cb,'parent':angular[_0x5783da(0x1853)](_0xf44685[_0x5783da(0x2586)]),'targetEvent':_0x49c5cf,'clickOutsideToClose':!![],'locals':{'userProfile':_0x4bd9e7,'userProfiles':_0x3aec08[_0x5783da(0x2851)]?_0x3aec08['userProfiles']['rows']:[],'crudPermissions':_0x3aec08['crudPermissions']}});}function _0x575364(_0x5e5803,_0xf9ebf8){const _0x245c72=_0x1bbb33,_0x5eb84=_0x3354fa[_0x245c72(0x1e8a)]()[_0x245c72(0x1189)](_0x245c72(0xdb2)+_0x3f65c0()['startCase'](_0x245c72(0x26b6))+'?')['htmlContent'](_0x245c72(0x16d3)+(_0x5e5803[_0x245c72(0x19eb)]||'userProfile')+''+_0x245c72(0xe01))[_0x245c72(0x4bd)]('delete\x20userProfile')['targetEvent'](_0xf9ebf8)['ok']('OK')[_0x245c72(0x6c3)]('CANCEL');_0x3354fa[_0x245c72(0x2615)](_0x5eb84)[_0x245c72(0x146b)](function(){_0x4da2af(_0x5e5803);},function(){const _0xbd57e=_0x245c72;console[_0xbd57e(0x1a74)](_0xbd57e(0x39a));});}let _0x1bca12=!![],_0xd9960f=0x1;_0x52103d[_0x1bbb33(0x21e8)]('vm.query.filter',function(_0x2144ef,_0x49431b){const _0xdac15c=_0x1bbb33;_0x1bca12?_0x521df4(function(){_0x1bca12=![];}):(!_0x49431b&&(_0xd9960f=_0x3aec08['query'][_0xdac15c(0x844)]),_0x2144ef!==_0x49431b&&(_0x3aec08[_0xdac15c(0x1a56)][_0xdac15c(0x844)]=0x1),!_0x2144ef&&(_0x3aec08[_0xdac15c(0x1a56)][_0xdac15c(0x844)]=_0xd9960f),_0x3aec08['getUserProfiles']());});function _0x35504c(_0x2e42ba){const _0x12c26e=_0x1bbb33;_0x3aec08[_0x12c26e(0x2851)]=_0x2e42ba||{'count':0x0,'rows':[]};}function _0x579d6e(){const _0x10d313=_0x1bbb33;_0x3aec08[_0x10d313(0x1a56)]['offset']=(_0x3aec08[_0x10d313(0x1a56)][_0x10d313(0x844)]-0x1)*_0x3aec08[_0x10d313(0x1a56)][_0x10d313(0x221e)],_0x1551cf[_0x10d313(0x23e0)](_0x10d313(0x174b))?_0x3aec08['promise']=_0x92d384[_0x10d313(0x26b6)][_0x10d313(0x16b4)](_0x3aec08[_0x10d313(0x1a56)],_0x35504c)[_0x10d313(0x2945)]:(_0x3aec08[_0x10d313(0x1a56)]['id']=_0x3aec08[_0x10d313(0x26b6)]['id'],_0x3aec08[_0x10d313(0x1a56)][_0x10d313(0x2146)]=_0x10d313(0x1a0c),_0x3aec08[_0x10d313(0xb9c)]=_0x92d384[_0x10d313(0x26b6)][_0x10d313(0x158f)](_0x3aec08[_0x10d313(0x1a56)],_0x35504c)[_0x10d313(0x2945)]);}function _0x3fd8a1(_0x250c32,_0x20b859){const _0x40eb7d=_0x1bbb33;_0x3354fa[_0x40eb7d(0x2615)]({'controller':_0x40eb7d(0x281f),'controllerAs':'vm','templateUrl':_0x512059,'parent':angular[_0x40eb7d(0x1853)](_0xf44685['body']),'targetEvent':_0x250c32,'clickOutsideToClose':!![],'locals':{'userProfile':_0x20b859,'userProfiles':_0x3aec08[_0x40eb7d(0x2851)]['rows'],'license':_0x3aec08[_0x40eb7d(0x2690)],'setting':_0x3aec08[_0x40eb7d(0x15b9)],'crudPermissions':_0x3aec08['crudPermissions']}});}function _0x4da2af(_0x328a25){const _0x2334a4=_0x1bbb33;_0x92d384['userProfile'][_0x2334a4(0x1fac)]({'id':_0x328a25['id']})[_0x2334a4(0x2945)][_0x2334a4(0x146b)](function(){const _0x23bf8d=_0x2334a4;_0x3f65c0()['remove'](_0x3aec08['userProfiles'][_0x23bf8d(0x19c7)],{'id':_0x328a25['id']}),_0x3aec08['userProfiles'][_0x23bf8d(0x51c)]-=0x1,!_0x3aec08[_0x23bf8d(0x2851)][_0x23bf8d(0x19c7)][_0x23bf8d(0x402)]&&_0x3aec08[_0x23bf8d(0x6cc)](),_0x2d0102[_0x23bf8d(0x1c75)]({'title':_0x3f65c0()['startCase'](_0x23bf8d(0x240f))+_0x23bf8d(0x201c),'msg':_0x328a25['name']?_0x328a25['name']+'\x20has\x20been\x20deleted!':''});})[_0x2334a4(0x129e)](function(_0xc07c60){const _0x3df5a0=_0x2334a4;if(_0xc07c60[_0x3df5a0(0x524)]&&_0xc07c60['data'][_0x3df5a0(0xcef)]&&_0xc07c60[_0x3df5a0(0x524)]['errors'][_0x3df5a0(0x402)]){_0x3aec08[_0x3df5a0(0xcef)]=_0xc07c60[_0x3df5a0(0x524)][_0x3df5a0(0xcef)]||[{'message':_0xc07c60[_0x3df5a0(0xd5f)](),'type':'SYSTEM:DELETEuserProfile'}];for(let _0x20826c=0x0;_0x20826c<_0xc07c60[_0x3df5a0(0x524)][_0x3df5a0(0xcef)][_0x3df5a0(0x402)];_0x20826c++){_0x2d0102[_0x3df5a0(0x1980)]({'title':_0xc07c60[_0x3df5a0(0x524)][_0x3df5a0(0xcef)][_0x20826c]['type'],'msg':_0xc07c60[_0x3df5a0(0x524)][_0x3df5a0(0xcef)][_0x20826c][_0x3df5a0(0x7fd)]});}}else _0x2d0102[_0x3df5a0(0x1980)]({'title':_0xc07c60[_0x3df5a0(0x107b)]?_0x3df5a0(0x262a)+_0xc07c60[_0x3df5a0(0x107b)]+_0x3df5a0(0x1315)+_0xc07c60[_0x3df5a0(0x167f)]:'SYSTEM:DELETEuserProfile','msg':_0xc07c60[_0x3df5a0(0x524)]?JSON[_0x3df5a0(0x10bb)](_0xc07c60[_0x3df5a0(0x524)][_0x3df5a0(0x7fd)]):_0xc07c60[_0x3df5a0(0x7fd)]||_0xc07c60[_0x3df5a0(0xd5f)]()});});}function _0x34be73(){const _0x2ad660=_0x1bbb33,_0x2c2596=angular[_0x2ad660(0x235a)](_0x3aec08[_0x2ad660(0x27a6)]);return _0x3aec08[_0x2ad660(0x27a6)]=[],_0x2c2596;}function _0x57d9dc(_0x3b933e){const _0x3e1381=_0x1bbb33,_0x87ef25=_0x3354fa[_0x3e1381(0x1e8a)]()[_0x3e1381(0x1189)](_0x3e1381(0x1b46))['htmlContent'](_0x3e1381(0x16d3)+_0x3aec08['selectedUserProfiles']['length']+_0x3e1381(0x2452)+_0x3e1381(0xe01))[_0x3e1381(0x4bd)](_0x3e1381(0xb30))[_0x3e1381(0x1f27)](_0x3b933e)['ok']('OK')['cancel'](_0x3e1381(0x39a));_0x3354fa[_0x3e1381(0x2615)](_0x87ef25)[_0x3e1381(0x146b)](function(){const _0x2147e9=_0x3e1381;_0x3aec08[_0x2147e9(0x27a6)][_0x2147e9(0x1df5)](function(_0x1e0140){_0x4da2af(_0x1e0140);}),_0x3aec08['selectedUserProfiles']=[];});}function _0x25dc87(){const _0x1ab2b7=_0x1bbb33;_0x3aec08[_0x1ab2b7(0x27a6)]=[];}function _0x282821(){const _0x27fb88=_0x1bbb33;_0x3aec08[_0x27fb88(0x27a6)]=_0x3aec08[_0x27fb88(0x2851)][_0x27fb88(0x19c7)];}}const _0x28c363=_0x285f2c;;_0x4a5b2e[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),'$state',_0x313a4d(0xd08),_0x313a4d(0x10e8),'$q','$translate',_0x313a4d(0x1fe4),_0x313a4d(0x1995),_0x313a4d(0xe7b),_0x313a4d(0x247f),_0x313a4d(0xa87),_0x313a4d(0x2690),'setting',_0x313a4d(0x2514)];function _0x4a5b2e(_0x13af3a,_0x1997bb,_0x4849a8,_0x548648,_0x5f5622,_0x543ac7,_0x196fab,_0x4bfcad,_0xaf6375,_0x20cc76,_0x215dcc,_0x313633,_0x2c48ae,_0x15ae92){const _0x3ae517=_0x313a4d,_0x3548a0=this;_0x3548a0['currentUser']=_0x215dcc[_0x3ae517(0xb12)](),_0x3548a0[_0x3ae517(0xcef)]=[],_0x3548a0[_0x3ae517(0x15b9)]=_0x2c48ae,_0x3548a0['license']=_0x313633,_0x3548a0[_0x3ae517(0x2514)]=_0x15ae92,_0x3548a0['hasModulePermissions']={},_0x3548a0[_0x3ae517(0x2251)]=_0x3548a0[_0x3ae517(0x15b9)]&&_0x3548a0[_0x3ae517(0x15b9)][_0x3ae517(0x976)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3548a0['title']=_0x3ae517(0x22e0),_0x3548a0['user']=angular[_0x3ae517(0x235a)](_0xaf6375),_0x3548a0[_0x3ae517(0x1995)]=_0x4bfcad,_0x3548a0[_0x3ae517(0x12d1)]=![];!_0x3548a0[_0x3ae517(0xe7b)]&&(_0x3548a0[_0x3ae517(0xe7b)]={'role':_0x3ae517(0xe7b),'autointernal':!![],'context':'from-sip'},_0x3548a0[_0x3ae517(0x1189)]='STAFF.NEW_USER',_0x3548a0['newUser']=!![]);_0x3548a0['addNewUser']=_0x37f7ef,_0x3548a0[_0x3ae517(0x395)]=_0x4a1e52,_0x3548a0['deleteUser']=_0x3be27c,_0x3548a0[_0x3ae517(0xe73)]=_0x3c3630,_0x3548a0[_0x3ae517(0x13f3)]=_0x193f45,_0x20cc76['userProfile'][_0x3ae517(0x16b4)]({'fields':'id,name','sort':_0x3ae517(0x19eb)})[_0x3ae517(0x2945)][_0x3ae517(0x146b)](function(_0x1fe705){const _0x2bf3ce=_0x3ae517;_0x3548a0[_0x2bf3ce(0x2851)]=_0x1fe705['rows']||[];})[_0x3ae517(0x129e)](function(_0x1d5fcd){const _0x2c49b8=_0x3ae517;_0x196fab[_0x2c49b8(0x1980)]({'title':_0x1d5fcd['status']?_0x2c49b8(0x262a)+_0x1d5fcd[_0x2c49b8(0x107b)]+_0x2c49b8(0x1315)+_0x1d5fcd[_0x2c49b8(0x167f)]:'SYSTEM:GET_USERPROFILES','msg':_0x1d5fcd[_0x2c49b8(0x524)]?JSON[_0x2c49b8(0x10bb)](_0x1d5fcd['data']):_0x1d5fcd[_0x2c49b8(0xd5f)]()});});function _0x37f7ef(){const _0x337f78=_0x3ae517;_0x3548a0['errors']=[],_0x20cc76[_0x337f78(0xe7b)][_0x337f78(0x1e3)](_0x3548a0['user'])['$promise']['then'](function(_0x6adfa8){const _0xbcfebd=_0x337f78;_0x3548a0[_0xbcfebd(0x1995)][_0xbcfebd(0xb3d)](_0x6adfa8[_0xbcfebd(0x2488)]()),_0x196fab['success']({'title':'User\x20properly\x20created','msg':_0x3548a0[_0xbcfebd(0xe7b)][_0xbcfebd(0x19eb)]?_0x3548a0[_0xbcfebd(0xe7b)][_0xbcfebd(0x19eb)]+_0xbcfebd(0x1386):''}),_0x193f45(_0x6adfa8);})[_0x337f78(0x129e)](function(_0x45a672){const _0x57c23e=_0x337f78;if(_0x45a672[_0x57c23e(0x524)]&&_0x45a672['data'][_0x57c23e(0xcef)]&&_0x45a672['data'][_0x57c23e(0xcef)][_0x57c23e(0x402)]){_0x3548a0['errors']=_0x45a672[_0x57c23e(0x524)][_0x57c23e(0xcef)]||[{'message':_0x45a672[_0x57c23e(0xd5f)](),'type':'api.user.save'}];for(let _0x5e544d=0x0;_0x5e544d<_0x45a672[_0x57c23e(0x524)][_0x57c23e(0xcef)][_0x57c23e(0x402)];_0x5e544d+=0x1){_0x196fab[_0x57c23e(0x1980)]({'title':_0x45a672[_0x57c23e(0x524)][_0x57c23e(0xcef)][_0x5e544d]['type'],'msg':_0x45a672[_0x57c23e(0x524)][_0x57c23e(0xcef)][_0x5e544d][_0x57c23e(0x7fd)]});}}else _0x196fab[_0x57c23e(0x1980)]({'title':_0x45a672[_0x57c23e(0x107b)]?'API:'+_0x45a672[_0x57c23e(0x107b)]+'\x20-\x20'+_0x45a672['statusText']:_0x57c23e(0x2406),'msg':_0x45a672[_0x57c23e(0x524)]?JSON[_0x57c23e(0x10bb)](_0x45a672[_0x57c23e(0x524)]['message']):_0x45a672['toString']()});});}function _0x4a1e52(){const _0x595f57=_0x3ae517;_0x3548a0[_0x595f57(0xcef)]=[],_0x20cc76['user'][_0x595f57(0x18e1)]({'id':_0x3548a0[_0x595f57(0xe7b)]['id']},_0x3548a0['user'])[_0x595f57(0x2945)]['then'](function(_0x563274){const _0x2a0477=_0x595f57,_0x4684be=_0x3f65c0()[_0x2a0477(0xc84)](_0x3548a0[_0x2a0477(0x1995)],{'id':_0x563274['id']});_0x4684be&&_0x3f65c0()[_0x2a0477(0x168d)](_0x4684be,_0x3f65c0()['pick'](_0x563274[_0x2a0477(0x2488)](),_0x3f65c0()[_0x2a0477(0x627)](_0x4684be))),_0x196fab[_0x2a0477(0x1c75)]({'title':_0x2a0477(0x80e),'msg':_0x3548a0['user'][_0x2a0477(0x19eb)]?_0x3548a0[_0x2a0477(0xe7b)]['name']+'\x20has\x20been\x20saved!':''}),_0x193f45(_0x563274);})['catch'](function(_0x53e3f2){const _0x4c2975=_0x595f57;if(_0x53e3f2[_0x4c2975(0x524)]&&_0x53e3f2[_0x4c2975(0x524)]['errors']&&_0x53e3f2[_0x4c2975(0x524)]['errors'][_0x4c2975(0x402)]){_0x3548a0[_0x4c2975(0xcef)]=_0x53e3f2[_0x4c2975(0x524)][_0x4c2975(0xcef)]||[{'message':_0x53e3f2[_0x4c2975(0xd5f)](),'type':'api.user.update'}];for(let _0x30bf84=0x0;_0x30bf84<_0x53e3f2[_0x4c2975(0x524)][_0x4c2975(0xcef)][_0x4c2975(0x402)];_0x30bf84++){_0x196fab[_0x4c2975(0x1980)]({'title':_0x53e3f2['data'][_0x4c2975(0xcef)][_0x30bf84][_0x4c2975(0x1142)],'msg':_0x53e3f2['data']['errors'][_0x30bf84][_0x4c2975(0x7fd)]});}}else _0x196fab[_0x4c2975(0x1980)]({'title':_0x53e3f2['status']?_0x4c2975(0x262a)+_0x53e3f2[_0x4c2975(0x107b)]+'\x20-\x20'+_0x53e3f2[_0x4c2975(0x167f)]:_0x4c2975(0x254f),'msg':_0x53e3f2[_0x4c2975(0x524)]?JSON[_0x4c2975(0x10bb)](_0x53e3f2[_0x4c2975(0x524)]['message']):_0x53e3f2[_0x4c2975(0xd5f)]()});});}function _0x3be27c(_0x376204){const _0x3aacde=_0x3ae517,_0x3f1462=_0x215dcc[_0x3aacde(0xb12)]();if(_0x3f1462['id']===_0x3548a0['user']['id'])return _0x196fab['error']({'title':_0x3aacde(0x66d),'msg':_0x3aacde(0x1c9d)});_0x3548a0[_0x3aacde(0xcef)]=[];const _0x57ddc9=_0x548648['confirm']()['title'](_0x3aacde(0x1d64))[_0x3aacde(0x80f)](_0x3aacde(0x26f9))[_0x3aacde(0x4bd)](_0x3aacde(0x1fba))['ok'](_0x3aacde(0x25de))[_0x3aacde(0x6c3)](_0x3aacde(0xcf0))[_0x3aacde(0x1f27)](_0x376204);_0x548648['show'](_0x57ddc9)[_0x3aacde(0x146b)](function(){const _0x291ceb=_0x3aacde;_0x20cc76['user'][_0x291ceb(0x1fac)]({'id':_0x3548a0['user']['id']})[_0x291ceb(0x2945)][_0x291ceb(0x146b)](function(){const _0x41ff84=_0x291ceb;_0x3f65c0()['remove'](_0x3548a0[_0x41ff84(0x1995)],{'id':_0x3548a0['user']['id']}),_0x196fab[_0x41ff84(0x1c75)]({'title':_0x41ff84(0x5c2),'msg':(_0x3548a0[_0x41ff84(0xe7b)][_0x41ff84(0x19eb)]||_0x41ff84(0xe7b))+'\x20has\x20been\x20deleted!'}),_0x193f45(_0x3548a0['user']);})[_0x291ceb(0x129e)](function(_0x14ffc7){const _0x5b8193=_0x291ceb;if(_0x14ffc7['data']&&_0x14ffc7[_0x5b8193(0x524)][_0x5b8193(0xcef)]&&_0x14ffc7[_0x5b8193(0x524)][_0x5b8193(0xcef)][_0x5b8193(0x402)]){_0x3548a0['errors']=_0x14ffc7[_0x5b8193(0x524)][_0x5b8193(0xcef)]||[{'message':_0x14ffc7[_0x5b8193(0xd5f)](),'type':_0x5b8193(0xddf)}];for(let _0x3f5484=0x0;_0x3f5484<_0x14ffc7[_0x5b8193(0x524)][_0x5b8193(0xcef)]['length'];_0x3f5484++){_0x196fab[_0x5b8193(0x1980)]({'title':_0x14ffc7[_0x5b8193(0x524)]['errors'][_0x3f5484]['type'],'msg':_0x14ffc7[_0x5b8193(0x524)][_0x5b8193(0xcef)][_0x3f5484][_0x5b8193(0x7fd)]});}}else _0x196fab[_0x5b8193(0x1980)]({'title':_0x14ffc7['status']?_0x5b8193(0x262a)+_0x14ffc7[_0x5b8193(0x107b)]+_0x5b8193(0x1315)+_0x14ffc7['statusText']:_0x5b8193(0xddf),'msg':_0x14ffc7[_0x5b8193(0x524)]?JSON[_0x5b8193(0x10bb)](_0x14ffc7[_0x5b8193(0x524)]['message']):_0x14ffc7[_0x5b8193(0x7fd)]||_0x14ffc7[_0x5b8193(0xd5f)]()});});},function(){});}function _0x3c3630(_0x3159bf){return _0x3159bf===null?undefined:new Date(_0x3159bf);}function _0x193f45(_0x4a3ee4){_0x548648['hide'](_0x4a3ee4);}}const _0x11bc92=_0x4a5b2e;;_0x5be517['$inject']=[_0x313a4d(0x10e8),'toasty',_0x313a4d(0x247f),_0x313a4d(0xe7b),_0x313a4d(0xa87)];function _0x5be517(_0x4a304d,_0x5b1c78,_0x3de7f3,_0x514390,_0x4d0d4f){const _0x3b62c0=_0x313a4d,_0x416682=this;_0x416682[_0x3b62c0(0x2321)]=_0x4d0d4f[_0x3b62c0(0xb12)](),_0x416682[_0x3b62c0(0xcef)]=[],_0x416682['user']=_0x514390,_0x416682[_0x3b62c0(0x32e)]=_0x35bb79,_0x416682[_0x3b62c0(0x1a27)]=_0x3ac666,_0x416682['closeDialog']=_0x224556;function _0x35bb79(){const _0x901948=_0x3b62c0;_0x416682[_0x901948(0xcef)]=[],_0x3de7f3[_0x901948(0xe7b)][_0x901948(0x1c06)]({'id':_0x416682[_0x901948(0xe7b)]['id']})['$promise']['then'](function(_0x1e0354){const _0x5978d9=_0x901948;_0x416682['user'][_0x5978d9(0x25b9)]=_0x1e0354[_0x5978d9(0x25af)]||_0x5978d9(0x1c8d),_0x5b1c78[_0x5978d9(0x1c75)]({'title':_0x5978d9(0x16aa)}),_0x224556();})[_0x901948(0x129e)](function(_0x4fb864){const _0x5de3e4=_0x901948;_0x5b1c78[_0x5de3e4(0x1980)]({'title':_0x4fb864[_0x5de3e4(0x107b)]?'API:'+_0x4fb864[_0x5de3e4(0x107b)]+_0x5de3e4(0x1315)+_0x4fb864['statusText']:_0x5de3e4(0x571),'msg':_0x4fb864['data']?JSON[_0x5de3e4(0x10bb)](_0x4fb864['data'][_0x5de3e4(0x7fd)]):_0x4fb864[_0x5de3e4(0xd5f)]()}),_0x416682[_0x5de3e4(0xcef)]=_0x4fb864[_0x5de3e4(0x524)][_0x5de3e4(0xcef)]||[{'message':_0x4fb864[_0x5de3e4(0xd5f)](),'type':_0x5de3e4(0x571)}];});}function _0x3ac666(){const _0x39a546=_0x3b62c0;_0x416682['errors']=[],_0x3de7f3[_0x39a546(0xe7b)]['removeApiKey']({'id':_0x416682[_0x39a546(0xe7b)]['id']})[_0x39a546(0x2945)]['then'](function(){const _0x45718e=_0x39a546;_0x416682[_0x45718e(0xe7b)][_0x45718e(0x25b9)]=_0x45718e(0x1c8d),_0x5b1c78[_0x45718e(0x1c75)]({'title':'User\x20API\x20key\x20removed!'}),_0x224556();})['catch'](function(_0x14bfa0){const _0x6a1d3a=_0x39a546;_0x5b1c78[_0x6a1d3a(0x1980)]({'title':_0x14bfa0['status']?_0x6a1d3a(0x262a)+_0x14bfa0[_0x6a1d3a(0x107b)]+_0x6a1d3a(0x1315)+_0x14bfa0[_0x6a1d3a(0x167f)]:'api.user.removeApiKey','msg':_0x14bfa0[_0x6a1d3a(0x524)]?JSON[_0x6a1d3a(0x10bb)](_0x14bfa0[_0x6a1d3a(0x524)]['message']):_0x14bfa0[_0x6a1d3a(0xd5f)]()}),_0x416682[_0x6a1d3a(0xcef)]=_0x14bfa0[_0x6a1d3a(0x524)][_0x6a1d3a(0xcef)]||[{'message':_0x14bfa0[_0x6a1d3a(0xd5f)](),'type':'api.user.removeApiKey'}];});}function _0x224556(){_0x4a304d['hide']();}}const _0xf94f89=_0x5be517;;_0x23413d[_0x313a4d(0x11c2)]=[_0x313a4d(0x23df),_0x313a4d(0x1fe4)];function _0x23413d(_0xba9a6d,_0xd2dac7){const _0x3b333a=_0x313a4d,_0x221fe3=this,_0x560348=0x8,_0x185655=_0x560348*0x400*0x400;_0x221fe3[_0x3b333a(0xe7b)]={},_0x221fe3[_0x3b333a(0x2514)],_0x221fe3[_0x3b333a(0x4c3)]={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x185655,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x221fe3[_0x3b333a(0x1376)]={'flow':{}},_0x221fe3[_0x3b333a(0x240d)]=![],_0x221fe3[_0x3b333a(0x143d)]=_0x2880bb,_0x221fe3[_0x3b333a(0x1dc6)]=_0x509526,_0x221fe3[_0x3b333a(0xc4c)]=_0x57044b,_0x221fe3[_0x3b333a(0x5aa)]=_0x5084dd;function _0x5084dd(_0x146628,_0x268486){const _0x49b4b1=_0x3b333a;_0x221fe3[_0x49b4b1(0xe7b)]=angular[_0x49b4b1(0x235a)](_0x146628),_0x221fe3['crudPermissions']=typeof _0x268486!==_0x49b4b1(0x2274)?_0x268486:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x221fe3[_0x49b4b1(0x4c3)][_0x49b4b1(0xe1d)]='api/users/'+_0x221fe3[_0x49b4b1(0xe7b)]['id']+_0x49b4b1(0xf07),_0x221fe3['user'][_0x49b4b1(0x1f07)]=[];}function _0x2880bb(_0x4f594d){const _0x44531f=_0x3b333a,_0xfcd404=[_0x44531f(0xadf),_0x44531f(0x621)];if(!_0x3f65c0()[_0x44531f(0xa4e)](_0xfcd404,_0x4f594d[_0x44531f(0x193f)]()))return _0xd2dac7['error']({'title':_0x44531f(0x4c6)+_0x4f594d[_0x44531f(0x193f)](),'msg':_0x44531f(0x208f)+_0xfcd404['join']()}),![];if(_0x4f594d[_0x44531f(0x4cc)]>_0x185655)return _0xd2dac7[_0x44531f(0x1980)]({'title':_0x44531f(0x625),'msg':'The\x20max\x20allowed\x20size\x20is\x20'+_0x560348+'MB'}),![];const _0x7af42d={'id':_0x4f594d['uniqueIdentifier'],'file':_0x4f594d,'type':'uploading'};return _0x221fe3['user'][_0x44531f(0x1f07)][_0x44531f(0xb3d)](_0x7af42d),!![];}function _0x509526(){const _0x369cdf=_0x3b333a;_0x221fe3['ngFlow'][_0x369cdf(0x963)]['opts'][_0x369cdf(0xa01)]={'X-Requested-With':'XMLHttpRequest','Authorization':_0x369cdf(0x2745)+_0xba9a6d['get'](_0x369cdf(0xe2d))},_0x221fe3[_0x369cdf(0x1376)][_0x369cdf(0x963)][_0x369cdf(0x1dc6)]();}function _0x57044b(_0x3573da){const _0x37b740=_0x3b333a;angular[_0x37b740(0x1df5)](_0x221fe3[_0x37b740(0xe7b)]['images'],function(_0x4f1ac5){const _0x3096e8=_0x37b740;if(_0x4f1ac5['id']===_0x3573da[_0x3096e8(0x1276)]){const _0x16d732=new FileReader();_0x16d732[_0x3096e8(0xa0c)](_0x4f1ac5['file']['file']),_0x16d732[_0x3096e8(0x20f6)]=function(_0x21b818){const _0x331882=_0x3096e8;_0x4f1ac5[_0x331882(0x20cc)]=_0x21b818[_0x331882(0xe1d)][_0x331882(0x61a)];},_0x4f1ac5[_0x3096e8(0x1142)]=_0x3096e8(0x106c);}});}}const _0x2b7f2e=_0x23413d;;_0x5da411[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x10e8),_0x313a4d(0x1fe4),_0x313a4d(0x247f),'user',_0x313a4d(0x15b9),_0x313a4d(0xa87)];function _0x5da411(_0x2020db,_0xdd11a0,_0x55fe4a,_0xcdbe52,_0x586bc5,_0x158c05,_0x19c918){const _0x18cf26=_0x313a4d,_0x3356f7=this;_0x3356f7[_0x18cf26(0x2321)]=_0x19c918[_0x18cf26(0xb12)](),_0x3356f7['errors']=[],_0x3356f7['setting']=_0x158c05,_0x3356f7[_0x18cf26(0x2251)]=_0x3356f7[_0x18cf26(0x15b9)]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3356f7['user']=_0x586bc5,_0x3356f7[_0x18cf26(0xf37)]='',_0x3356f7[_0x18cf26(0x2571)]='',_0x3356f7['savePassword']=_0x56e6aa,_0x3356f7[_0x18cf26(0x13f3)]=_0x5f0a69,_0x2020db[_0x18cf26(0x21e8)](_0x18cf26(0x12f8),function(_0x149eca){const _0x478218=_0x18cf26;!_0x3f65c0()['isNil'](_0x3356f7['oldPassword'])&&(_0x149eca===_0x3356f7['oldPassword']?_0x2020db[_0x478218(0x1fde)][_0x478218(0xf37)][_0x478218(0x24f8)]('oldPasswordMatch',![]):_0x2020db[_0x478218(0x1fde)][_0x478218(0xf37)][_0x478218(0x24f8)]('oldPasswordMatch',!![]));});function _0x56e6aa(){const _0x390ab9=_0x18cf26;_0x3356f7[_0x390ab9(0xcef)]=[];const _0x3d51fc={'id':_0x3356f7[_0x390ab9(0xe7b)]['id'],'newPassword':_0x3356f7[_0x390ab9(0xf37)]};_0x3356f7[_0x390ab9(0x2321)]['id']==_0x3356f7[_0x390ab9(0xe7b)]['id']&&(_0x3d51fc['oldPassword']=_0x3356f7[_0x390ab9(0x2571)]),_0xcdbe52[_0x390ab9(0xe7b)][_0x390ab9(0x171a)](_0x3d51fc)['$promise'][_0x390ab9(0x146b)](function(){const _0x2ca30c=_0x390ab9;_0x55fe4a[_0x2ca30c(0x1c75)]({'title':'User\x20password\x20properly\x20updated!'}),_0x5f0a69();})[_0x390ab9(0x129e)](function(_0x13e027){const _0x103a11=_0x390ab9;_0x55fe4a[_0x103a11(0x1980)]({'title':_0x13e027['status']?'API:'+_0x13e027[_0x103a11(0x107b)]+_0x103a11(0x1315)+_0x13e027[_0x103a11(0x167f)]:_0x103a11(0x2406),'msg':_0x13e027['data']?JSON['stringify'](_0x13e027['data'][_0x103a11(0x7fd)]):_0x13e027[_0x103a11(0xd5f)]()}),_0x3356f7[_0x103a11(0xcef)]=_0x13e027[_0x103a11(0x524)][_0x103a11(0xcef)]||[{'message':_0x13e027[_0x103a11(0xd5f)](),'type':_0x103a11(0x9ad)}];});}function _0x5f0a69(){const _0x1befbe=_0x18cf26;_0xdd11a0[_0x1befbe(0x2458)]();}}const _0x55f406=_0x5da411;;const _0x4f4b01=_0x4acfac['p']+'src/js/modules/main/apps/staff/views/users/edit/apikeymanager/apikeymanager.html/apikeymanager.html';;const _0x390a91=_0x4acfac['p']+_0x313a4d(0xcf1);;_0x22d1ad[_0x313a4d(0x11c2)]=[_0x313a4d(0x1862),_0x313a4d(0xd08),_0x313a4d(0x10e8),_0x313a4d(0x4d8),_0x313a4d(0x214b),'license','setting',_0x313a4d(0x247f),'toasty',_0x313a4d(0xa87),_0x313a4d(0xe7b),_0x313a4d(0x1366)];function _0x22d1ad(_0x1be1ed,_0x37ba8f,_0x38f2b8,_0x6f1079,_0x675de4,_0x224320,_0x13345c,_0x12ee11,_0x4f7011,_0x49aaff,_0x26dc14,_0x5276f7){const _0x5bc817=_0x313a4d,_0x25afa6=this;_0x25afa6[_0x5bc817(0x2321)]=_0x49aaff[_0x5bc817(0xb12)](),_0x25afa6['license']=_0x224320,_0x25afa6[_0x5bc817(0x15b9)]=_0x13345c,_0x25afa6[_0x5bc817(0x2251)]=_0x25afa6[_0x5bc817(0x15b9)][_0x5bc817(0x976)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x25afa6[_0x5bc817(0x1002)]=_0x37ba8f['protocol']()+_0x5bc817(0xb0e)+_0x37ba8f[_0x5bc817(0x148e)](),_0x25afa6['user']=_0x26dc14||_0x1be1ed[_0x5bc817(0x16a)][_0x5bc817(0xe7b)]||{},_0x25afa6[_0x5bc817(0x1366)]=_0x5276f7&&_0x5276f7['count']==0x1?_0x5276f7[_0x5bc817(0x19c7)][0x0]:null,_0x25afa6[_0x5bc817(0x2514)]=_0x49aaff[_0x5bc817(0xe60)](_0x25afa6['userProfileSection']?_0x25afa6[_0x5bc817(0x1366)][_0x5bc817(0x2514)]:null),_0x25afa6['hasModulePermissions']={},_0x25afa6[_0x5bc817(0x1b09)]=_0x1be1ed['params'][_0x5bc817(0x13a3)]||0x0,_0x25afa6[_0x5bc817(0x903)]=_0x43a1f4,_0x25afa6['changepassworddialog']=_0x18d840,_0x25afa6[_0x5bc817(0x861)]=_0x4f7011[_0x5bc817(0x271e)],_0x25afa6[_0x5bc817(0x26e2)]=_0x322166,_0x25afa6[_0x5bc817(0x395)]=_0x5c008d,_0x12ee11[_0x5bc817(0x1b82)]['get']({'fields':'id,name','sort':_0x5bc817(0x19eb)})[_0x5bc817(0x2945)]['then'](function(_0x5b20df){const _0x17fcdb=_0x5bc817;_0x25afa6[_0x17fcdb(0xfe9)]=_0x5b20df[_0x17fcdb(0x19c7)]||[];})[_0x5bc817(0x129e)](function(_0x29b8e7){const _0x1ce9d6=_0x5bc817;_0x4f7011['error']({'title':_0x29b8e7[_0x1ce9d6(0x107b)]?_0x1ce9d6(0x262a)+_0x29b8e7[_0x1ce9d6(0x107b)]+_0x1ce9d6(0x1315)+_0x29b8e7[_0x1ce9d6(0x167f)]:_0x1ce9d6(0x2742),'msg':_0x29b8e7[_0x1ce9d6(0x524)]?JSON[_0x1ce9d6(0x10bb)](_0x29b8e7[_0x1ce9d6(0x524)]):_0x29b8e7[_0x1ce9d6(0xd5f)]()});}),_0x12ee11[_0x5bc817(0x26b6)]['get']({'fields':_0x5bc817(0x7a7),'sort':'name'})[_0x5bc817(0x2945)][_0x5bc817(0x146b)](function(_0x231c1b){const _0xce3d37=_0x5bc817;_0x25afa6[_0xce3d37(0x2851)]=_0x231c1b['rows']||[];})[_0x5bc817(0x129e)](function(_0x7ba818){const _0x124d20=_0x5bc817;_0x4f7011['error']({'title':_0x7ba818['status']?'API:'+_0x7ba818[_0x124d20(0x107b)]+'\x20-\x20'+_0x7ba818[_0x124d20(0x167f)]:'SYSTEM:GET_USERPROFILES','msg':_0x7ba818[_0x124d20(0x524)]?JSON[_0x124d20(0x10bb)](_0x7ba818['data']):_0x7ba818[_0x124d20(0xd5f)]()});}),_0x12ee11[_0x5bc817(0xe7b)][_0x5bc817(0xe1a)]({'id':_0x25afa6['user']['id']})[_0x5bc817(0x2945)][_0x5bc817(0x146b)](function(_0x35fda9){const _0x468dc5=_0x5bc817;_0x25afa6['user']['apiKey']=_0x35fda9[_0x468dc5(0x25af)]?_0x35fda9['api_key']:_0x468dc5(0x1c8d);})[_0x5bc817(0x129e)](function(_0x3bb237){const _0x1e8a45=_0x5bc817;_0x4f7011[_0x1e8a45(0x1980)]({'title':_0x3bb237['status']?_0x1e8a45(0x262a)+_0x3bb237[_0x1e8a45(0x107b)]+'\x20-\x20'+_0x3bb237[_0x1e8a45(0x167f)]:'SYSTEM:GET_APIKEY','msg':_0x3bb237[_0x1e8a45(0x524)]?JSON['stringify'](_0x3bb237[_0x1e8a45(0x524)]):_0x3bb237[_0x1e8a45(0xd5f)]()});});function _0x43a1f4(_0x7b47ac,_0x345648){const _0x225790=_0x5bc817;_0x38f2b8['show']({'controller':'UserapikeymanagerController','controllerAs':'vm','templateUrl':_0x4f4b01,'parent':angular[_0x225790(0x1853)](_0x6f1079[_0x225790(0x2586)]),'targetEvent':_0x345648,'clickOutsideToClose':!![],'locals':{'user':_0x7b47ac,'users':_0x25afa6[_0x225790(0x1995)]?_0x25afa6[_0x225790(0x1995)]['rows']:[],'crudPermissions':_0x25afa6[_0x225790(0x2514)]}});}function _0x18d840(_0x3d5c5f,_0x2adc15){const _0x52a38c=_0x5bc817;_0x38f2b8[_0x52a38c(0x2615)]({'controller':_0x52a38c(0x866),'controllerAs':'vm','templateUrl':_0x390a91,'parent':angular[_0x52a38c(0x1853)](_0x6f1079[_0x52a38c(0x2586)]),'targetEvent':_0x2adc15,'clickOutsideToClose':!![],'locals':{'user':_0x3d5c5f,'setting':_0x13345c,'users':_0x25afa6[_0x52a38c(0x1995)]?_0x25afa6[_0x52a38c(0x1995)]['rows']:[],'crudPermissions':_0x25afa6[_0x52a38c(0x2514)]}});}function _0x322166(){const _0x28276c=_0x5bc817;_0x1be1ed['go']('app.staff.users',{},{'reload':_0x28276c(0x201d)});}function _0x5c008d(){const _0x481e57=_0x5bc817;_0x25afa6[_0x481e57(0xe7b)]=_0x3f65c0()[_0x481e57(0x2432)](_0x25afa6[_0x481e57(0xe7b)],'userpic'),_0x12ee11['user'][_0x481e57(0x18e1)]({'id':_0x25afa6[_0x481e57(0xe7b)]['id']},_0x25afa6[_0x481e57(0xe7b)])[_0x481e57(0x2945)][_0x481e57(0x146b)](function(){const _0x39067e=_0x481e57;_0x4f7011[_0x39067e(0x1c75)]({'title':_0x39067e(0x2818),'msg':_0x25afa6[_0x39067e(0xe7b)][_0x39067e(0x19eb)]?_0x25afa6['user'][_0x39067e(0x19eb)]+_0x39067e(0x6b0):''});})[_0x481e57(0x129e)](function(_0x1da4ab){const _0x523845=_0x481e57;_0x4f7011[_0x523845(0x1980)]({'title':_0x1da4ab[_0x523845(0x107b)]?'API:'+_0x1da4ab[_0x523845(0x107b)]+_0x523845(0x1315)+_0x1da4ab[_0x523845(0x167f)]:_0x523845(0x825),'msg':_0x1da4ab[_0x523845(0x524)]?JSON[_0x523845(0x10bb)](_0x1da4ab[_0x523845(0x524)]):_0x1da4ab[_0x523845(0xd5f)]()});});}}const _0x554332=_0x22d1ad;;const _0xd3f100=_0x4acfac['p']+_0x313a4d(0x1fe5);;_0x533dc0[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1aa9),'$state',_0x313a4d(0x15fe),_0x313a4d(0x10e8),'$document',_0x313a4d(0x1abe),_0x313a4d(0x214b),'users',_0x313a4d(0x26b6),_0x313a4d(0x1366),_0x313a4d(0x247f),_0x313a4d(0x216c),_0x313a4d(0x1fe4),_0x313a4d(0xa87),_0x313a4d(0x2690),'setting'];function _0x533dc0(_0x4f8908,_0x31fc3f,_0x390f58,_0x258a77,_0x1e0b60,_0x25d985,_0xc6d131,_0x49645c,_0x274734,_0x5a3297,_0x3096b,_0x555f9c,_0x393a5d,_0x3d0209,_0x275f30,_0x3fd4a7,_0x5418d2){const _0x549432=_0x313a4d,_0x4988b8=this;_0x4988b8[_0x549432(0x2690)]=_0x3fd4a7,_0x4988b8[_0x549432(0x15b9)]=_0x5418d2,_0x4988b8[_0x549432(0x2321)]=_0x275f30[_0x549432(0xb12)](),_0x4988b8['users']=_0x274734||{'count':0x0,'rows':[]},_0x4988b8[_0x549432(0x26b6)]=_0x5a3297,_0x4988b8[_0x549432(0x1366)]=_0x3096b&&_0x3096b[_0x549432(0x51c)]==0x1?_0x3096b['rows'][0x0]:null,_0x4988b8['crudPermissions']=_0x275f30[_0x549432(0xe60)](_0x4988b8[_0x549432(0x1366)]?_0x4988b8[_0x549432(0x1366)][_0x549432(0x2514)]:null),_0x4988b8[_0x549432(0x768)]=_0x549432(0x1995),_0x4988b8['listOrder']='',_0x4988b8[_0x549432(0x214f)]=null,_0x4988b8[_0x549432(0x4ee)]=[],_0x4988b8[_0x549432(0x1a56)]={'fields':_0x549432(0x145e),'role':_0x549432(0x168b),'sort':_0x549432(0x12f2),'limit':0xa,'page':0x1},_0x4988b8[_0x549432(0x216d)]=_0x3f65c0()[_0x549432(0x194)]([{'option':'Admin','value':_0x549432(0xdee)},{'option':'User','value':_0x549432(0x232e)}],function(_0x4c426a){const _0x261232=_0x549432;return _0x3f65c0()[_0x261232(0x5f4)](_0x4c426a[_0x261232(0x175d)],new RegExp('\x27','g'),'');}),_0x4988b8[_0x549432(0x1dea)]=_0x3f65c0()[_0x549432(0x194)]([{'option':'udp','value':_0x549432(0x21bd)},{'option':_0x549432(0x1701),'value':'\x27tcp\x27'},{'option':'ws','value':_0x549432(0x9ae)},{'option':_0x549432(0x1457),'value':_0x549432(0x222c)},{'option':'tls','value':_0x549432(0x17ca)}],function(_0x5147f4){return _0x3f65c0()['replace'](_0x5147f4['value'],new RegExp('\x27','g'),'');}),_0x4988b8[_0x549432(0x1e0b)]=_0x3f65c0()[_0x549432(0x194)]([{'option':_0x549432(0x22e7),'value':_0x549432(0x1dcf)},{'option':_0x549432(0x113b),'value':_0x549432(0x73c)},{'option':_0x549432(0x18e3),'value':_0x549432(0x2339)},{'option':'no','value':_0x549432(0x74f)},{'option':_0x549432(0x6d2),'value':_0x549432(0xc7b)},{'option':'route','value':_0x549432(0xd9a)}],function(_0x31450b){const _0x3131fb=_0x549432;return _0x3f65c0()[_0x3131fb(0x5f4)](_0x31450b[_0x3131fb(0x175d)],new RegExp('\x27','g'),'');}),_0x4988b8[_0x549432(0x1ee2)]=_0x3f65c0()['keyBy']([{'option':_0x549432(0x8c3),'value':_0x549432(0x1f6f)},{'option':_0x549432(0x10ea),'value':_0x549432(0x174d)},{'option':_0x549432(0xdf0),'value':'\x27gsm\x27'},{'option':_0x549432(0x2453),'value':_0x549432(0x1d33)},{'option':'g729','value':_0x549432(0x1bf3)},{'option':_0x549432(0xdc9),'value':'\x27opus\x27'},{'option':_0x549432(0x1c87),'value':'\x27h264\x27'}],function(_0x3a0dd8){const _0x3766b7=_0x549432;return _0x3f65c0()[_0x3766b7(0x5f4)](_0x3a0dd8[_0x3766b7(0x175d)],new RegExp('\x27','g'),'');}),_0x4988b8[_0x549432(0xc95)]=_0x3f65c0()[_0x549432(0x194)]([{'option':_0x549432(0x1b97),'value':_0x549432(0x2339)},{'option':'No','value':_0x549432(0x74f)},{'option':_0x549432(0x132f),'value':_0x549432(0x220a)}],function(_0x258c08){const _0xd27b20=_0x549432;return _0x3f65c0()['replace'](_0x258c08[_0xd27b20(0x175d)],new RegExp('\x27','g'),'');}),_0x4988b8['editstate']=_0x34ffcd,_0x4988b8[_0x549432(0xf0a)]=_0x17aadf,_0x4988b8[_0x549432(0x1c75)]=_0x400584,_0x4988b8[_0x549432(0x275b)]=_0x231d4d,_0x4988b8[_0x549432(0xd05)]=_0x48dc9e,_0x4988b8[_0x549432(0x284a)]=_0x579ad6,_0x4988b8['exportSelectedUsers']=_0x52bc7e,_0x4988b8['deleteSelectedUsers']=_0x463cb5,_0x4988b8[_0x549432(0xdb6)]=_0x37a84f,_0x4988b8[_0x549432(0x1e41)]=_0x3449af,_0x555f9c[_0x549432(0x26b6)][_0x549432(0x16b4)]({'fields':_0x549432(0x7a7),'sort':_0x549432(0x19eb)})[_0x549432(0x2945)][_0x549432(0x146b)](function(_0x35a3a0){const _0x569811=_0x549432;_0x4988b8[_0x569811(0x2851)]=_0x35a3a0[_0x569811(0x19c7)]||[];})[_0x549432(0x129e)](function(_0x645e12){const _0x28591e=_0x549432;_0x3d0209[_0x28591e(0x1980)]({'title':_0x645e12[_0x28591e(0x107b)]?_0x28591e(0x262a)+_0x645e12[_0x28591e(0x107b)]+_0x28591e(0x1315)+_0x645e12[_0x28591e(0x167f)]:_0x28591e(0x1495),'msg':_0x645e12['data']?JSON[_0x28591e(0x10bb)](_0x645e12['data']):_0x645e12[_0x28591e(0xd5f)]()});});function _0x34ffcd(_0x33d04e){const _0x50f4a2=_0x549432;_0x390f58['go'](_0x50f4a2(0x26b3),{'id':_0x33d04e['id'],'user':_0x33d04e,'crudPermissions':_0x4988b8[_0x50f4a2(0x2514)]});}function _0x17aadf(_0x1400e5,_0x323795){const _0x39819e=_0x549432,_0x4caa54=_0x1e0b60[_0x39819e(0x1e8a)]()[_0x39819e(0x1189)](_0x39819e(0xdb2)+_0x3f65c0()['startCase']('user')+'?')[_0x39819e(0x1cbe)](_0x39819e(0x16d3)+(_0x1400e5['name']||_0x39819e(0xe7b))+_0x39819e(0x252f)+_0x39819e(0xe01))[_0x39819e(0x4bd)](_0x39819e(0x1874))[_0x39819e(0x1f27)](_0x323795)['ok']('OK')[_0x39819e(0x6c3)]('CANCEL');_0x1e0b60[_0x39819e(0x2615)](_0x4caa54)['then'](function(){_0x579ad6(_0x1400e5);},function(){const _0x5d71fe=_0x39819e;console[_0x5d71fe(0x1a74)](_0x5d71fe(0x39a));});}let _0x32deab=!![],_0x3733bd=0x1;_0x4f8908[_0x549432(0x21e8)](_0x549432(0x2669),function(_0x333742,_0x52155e){const _0x532536=_0x549432;_0x32deab?_0xc6d131(function(){_0x32deab=![];}):(!_0x52155e&&(_0x3733bd=_0x4988b8[_0x532536(0x1a56)][_0x532536(0x844)]),_0x333742!==_0x52155e&&(_0x4988b8[_0x532536(0x1a56)][_0x532536(0x844)]=0x1),!_0x333742&&(_0x4988b8[_0x532536(0x1a56)]['page']=_0x3733bd),_0x4988b8[_0x532536(0x275b)]());});function _0x400584(_0x29c534){const _0x1b01f7=_0x549432;_0x4988b8[_0x1b01f7(0x1995)]=_0x29c534||{'count':0x0,'rows':[]};}function _0x231d4d(){const _0x345f4b=_0x549432;_0x4988b8[_0x345f4b(0x1a56)][_0x345f4b(0x145d)]=(_0x4988b8[_0x345f4b(0x1a56)][_0x345f4b(0x844)]-0x1)*_0x4988b8[_0x345f4b(0x1a56)][_0x345f4b(0x221e)],_0x275f30[_0x345f4b(0x23e0)](_0x345f4b(0x174b))?_0x4988b8[_0x345f4b(0xb9c)]=_0x555f9c[_0x345f4b(0xe7b)][_0x345f4b(0x16b4)](_0x4988b8[_0x345f4b(0x1a56)],_0x400584)[_0x345f4b(0x2945)]:(_0x4988b8[_0x345f4b(0x1a56)]['id']=_0x4988b8[_0x345f4b(0x26b6)]['id'],_0x4988b8['query']['section']=_0x345f4b(0x3c4),_0x4988b8['promise']=_0x555f9c[_0x345f4b(0x26b6)][_0x345f4b(0x158f)](_0x4988b8[_0x345f4b(0x1a56)],_0x400584)[_0x345f4b(0x2945)]);}function _0x48dc9e(_0x20748c,_0x2f0ea6){const _0xa4c3a4=_0x549432;_0x1e0b60[_0xa4c3a4(0x2615)]({'controller':_0xa4c3a4(0x14f0),'controllerAs':'vm','templateUrl':_0xd3f100,'parent':angular[_0xa4c3a4(0x1853)](_0x25d985[_0xa4c3a4(0x2586)]),'targetEvent':_0x20748c,'clickOutsideToClose':!![],'locals':{'user':_0x2f0ea6,'users':_0x4988b8[_0xa4c3a4(0x1995)][_0xa4c3a4(0x19c7)],'license':_0x4988b8['license'],'setting':_0x4988b8['setting'],'crudPermissions':_0x4988b8[_0xa4c3a4(0x2514)]}});}function _0x579ad6(_0x1bbf81){const _0x3c67ed=_0x549432;_0x555f9c[_0x3c67ed(0xe7b)][_0x3c67ed(0x1fac)]({'id':_0x1bbf81['id']})[_0x3c67ed(0x2945)][_0x3c67ed(0x146b)](function(){const _0x255832=_0x3c67ed;_0x3f65c0()[_0x255832(0x2640)](_0x4988b8[_0x255832(0x1995)][_0x255832(0x19c7)],{'id':_0x1bbf81['id']}),_0x4988b8[_0x255832(0x1995)][_0x255832(0x51c)]-=0x1,!_0x4988b8['users'][_0x255832(0x19c7)][_0x255832(0x402)]&&_0x4988b8[_0x255832(0x275b)](),_0x3d0209['success']({'title':_0x3f65c0()['startCase'](_0x255832(0x2393))+_0x255832(0x201c),'msg':_0x1bbf81['name']?_0x1bbf81[_0x255832(0x19eb)]+_0x255832(0x23e3):''});})[_0x3c67ed(0x129e)](function(_0xcc8c97){const _0x2c1827=_0x3c67ed;if(_0xcc8c97[_0x2c1827(0x524)]&&_0xcc8c97[_0x2c1827(0x524)][_0x2c1827(0xcef)]&&_0xcc8c97[_0x2c1827(0x524)][_0x2c1827(0xcef)][_0x2c1827(0x402)]){_0x4988b8['errors']=_0xcc8c97[_0x2c1827(0x524)]['errors']||[{'message':_0xcc8c97[_0x2c1827(0xd5f)](),'type':'SYSTEM:DELETEuser'}];for(let _0x5b9bb0=0x0;_0x5b9bb0<_0xcc8c97[_0x2c1827(0x524)][_0x2c1827(0xcef)]['length'];_0x5b9bb0++){_0x3d0209[_0x2c1827(0x1980)]({'title':_0xcc8c97[_0x2c1827(0x524)][_0x2c1827(0xcef)][_0x5b9bb0][_0x2c1827(0x1142)],'msg':_0xcc8c97[_0x2c1827(0x524)]['errors'][_0x5b9bb0][_0x2c1827(0x7fd)]});}}else _0x3d0209[_0x2c1827(0x1980)]({'title':_0xcc8c97[_0x2c1827(0x107b)]?_0x2c1827(0x262a)+_0xcc8c97[_0x2c1827(0x107b)]+_0x2c1827(0x1315)+_0xcc8c97[_0x2c1827(0x167f)]:_0x2c1827(0xc69),'msg':_0xcc8c97[_0x2c1827(0x524)]?JSON['stringify'](_0xcc8c97['data'][_0x2c1827(0x7fd)]):_0xcc8c97[_0x2c1827(0x7fd)]||_0xcc8c97[_0x2c1827(0xd5f)]()});});}function _0x52bc7e(){const _0x29411f=_0x549432,_0x222554=angular[_0x29411f(0x235a)](_0x4988b8[_0x29411f(0x4ee)]);return _0x4988b8[_0x29411f(0x4ee)]=[],_0x222554;}function _0x463cb5(_0x15f31b){const _0x2a7f03=_0x549432,_0x86cb04=_0x1e0b60['confirm']()[_0x2a7f03(0x1189)](_0x2a7f03(0x2266))[_0x2a7f03(0x1cbe)](_0x2a7f03(0x16d3)+_0x4988b8[_0x2a7f03(0x4ee)][_0x2a7f03(0x402)]+'\x20selected'+_0x2a7f03(0xe01))[_0x2a7f03(0x4bd)](_0x2a7f03(0x17b))['targetEvent'](_0x15f31b)['ok']('OK')['cancel'](_0x2a7f03(0x39a));_0x1e0b60[_0x2a7f03(0x2615)](_0x86cb04)[_0x2a7f03(0x146b)](function(){const _0x11a646=_0x2a7f03;_0x4988b8[_0x11a646(0x4ee)][_0x11a646(0x1df5)](function(_0x36c43b){_0x579ad6(_0x36c43b);}),_0x4988b8['selectedUsers']=[];});}function _0x37a84f(){const _0x47fdbf=_0x549432;_0x4988b8[_0x47fdbf(0x4ee)]=[];}function _0x3449af(){const _0x197dde=_0x549432;_0x4988b8[_0x197dde(0x4ee)]=_0x4988b8[_0x197dde(0x1995)][_0x197dde(0x19c7)];}}const _0x47388e=_0x533dc0;;const _0x75f9a8=_0x4acfac['p']+_0x313a4d(0x13be);;const _0x37312c=_0x4acfac['p']+'src/js/modules/main/apps/staff/views/users/edit/view.html/view.html';;const _0x326caf=_0x4acfac['p']+'src/js/modules/main/apps/staff/views/agents/agents.html/agents.html';;const _0x36a722=_0x4acfac['p']+_0x313a4d(0x1f83);;const _0x426942=_0x4acfac['p']+_0x313a4d(0x10b6);;const _0x3003c9=_0x4acfac['p']+'src/js/modules/main/apps/staff/views/telephones/edit/view.html/view.html';;const _0xc64ef2=_0x4acfac['p']+_0x313a4d(0x2129);;const _0x461f55=_0x4acfac['p']+_0x313a4d(0x1936);;const _0x2849f9=_0x4acfac['p']+_0x313a4d(0x1a73);;_0x518556[_0x313a4d(0x11c2)]=[_0x313a4d(0x921),_0x313a4d(0x695)];function _0x518556(_0xb558d8,_0x4d4573){const _0x34eea9=_0x313a4d;_0xb558d8['state']('app.staff',{'abstract':!![],'url':'/staff'})[_0x34eea9(0x13d6)](_0x34eea9(0x201d),{'url':'/users','views':{'content@app':{'templateUrl':_0x75f9a8,'controller':_0x34eea9(0x1a97)}},'resolve':{'users':[_0x34eea9(0x362),function(_0x49ae00){const _0x5880a2=_0x34eea9;return _0x49ae00[_0x5880a2(0x2922)]('user@get',{'fields':_0x5880a2(0x145e),'role':_0x5880a2(0x168b),'sort':_0x5880a2(0x12f2),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x34eea9(0xa87),function(_0x30789c,_0x16d0a4){const _0x5ca7a5=_0x34eea9;return _0x16d0a4[_0x5ca7a5(0x23e0)](_0x5ca7a5(0x174b))?null:_0x30789c['resolve']('userProfile@get',{'fields':_0x5ca7a5(0x227),'id':_0x16d0a4[_0x5ca7a5(0xb12)]()['userProfileId']});}],'userProfileSection':[_0x34eea9(0x362),_0x34eea9(0xa87),function(_0x584f3f,_0x13269f){const _0x52f196=_0x34eea9;return _0x13269f[_0x52f196(0x23e0)]('admin')?null:_0x584f3f[_0x52f196(0x2922)](_0x52f196(0x27be),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x13269f[_0x52f196(0xb12)]()[_0x52f196(0x209a)],'sectionId':0xc9});}]},'authenticate':!![],'permissionId':0xc9,'bodyClass':_0x34eea9(0x17c1)})[_0x34eea9(0x13d6)](_0x34eea9(0x26b3),{'url':'/:id?tab','params':{'user':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x37312c,'controller':_0x34eea9(0x213a)}},'resolve':{'user':['apiResolver','$stateParams',function(_0x2b0ee2,_0x290875){const _0x29e648=_0x34eea9;return _0x2b0ee2[_0x29e648(0x2922)](_0x29e648(0x2484),{'fields':_0x29e648(0x145e),'id':_0x290875['id']});}],'userProfileSection':[_0x34eea9(0x362),'Auth',function(_0x5a031b,_0x3b76fc){const _0x2f2b6e=_0x34eea9;return _0x5a031b[_0x2f2b6e(0x2922)](_0x2f2b6e(0x27be),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x3b76fc[_0x2f2b6e(0xb12)]()['userProfileId'],'sectionId':0xc9});}]},'authenticate':!![],'permissionId':0xc9,'bodyClass':_0x34eea9(0x17c1)})['state']('app.staff.agents',{'url':_0x34eea9(0x1507),'views':{'content@app':{'templateUrl':_0x326caf,'controller':_0x34eea9(0x1966)}},'resolve':{'agents':[_0x34eea9(0x362),'Auth',function(_0x45ff3e,_0x12b300){const _0x159ba4=_0x34eea9;return _0x12b300[_0x159ba4(0x23e0)]('admin')?_0x45ff3e[_0x159ba4(0x2922)](_0x159ba4(0x2484),{'fields':_0x159ba4(0x1c11),'role':_0x159ba4(0x1755),'sort':_0x159ba4(0x12f2),'limit':0xa,'offset':0x0}):_0x45ff3e[_0x159ba4(0x2922)](_0x159ba4(0x938),{'id':_0x12b300[_0x159ba4(0xb12)]()[_0x159ba4(0x209a)],'section':_0x159ba4(0xca8),'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':_0x159ba4(0x1755),'sort':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':[_0x34eea9(0x362),_0x34eea9(0xa87),function(_0x3cff87,_0x11b8a6){const _0x5cdd27=_0x34eea9;return _0x11b8a6[_0x5cdd27(0x23e0)](_0x5cdd27(0x174b))?null:_0x3cff87['resolve']('userProfile@get',{'fields':_0x5cdd27(0x227),'id':_0x11b8a6[_0x5cdd27(0xb12)]()[_0x5cdd27(0x209a)]});}],'userProfileSection':['apiResolver',_0x34eea9(0xa87),function(_0x246615,_0x2283ef){const _0x4933c7=_0x34eea9;return _0x2283ef['hasRole'](_0x4933c7(0x174b))?null:_0x246615[_0x4933c7(0x2922)](_0x4933c7(0x27be),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x2283ef[_0x4933c7(0xb12)]()[_0x4933c7(0x209a)],'sectionId':0xca});}]},'authenticate':!![],'permissionId':0xca,'bodyClass':_0x34eea9(0x17c1)})[_0x34eea9(0x13d6)]('app.staff.agents.edit',{'url':_0x34eea9(0x2028),'params':{'agent':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x36a722,'controller':'AgentController\x20as\x20vm'}},'resolve':{'agent':[_0x34eea9(0x362),'$stateParams',function(_0x2e487e,_0x47a722){const _0xaf25bf=_0x34eea9;return _0x2e487e[_0xaf25bf(0x2922)]('user@get',{'fields':_0xaf25bf(0x1c11),'id':_0x47a722['id']});}],'userProfileSection':[_0x34eea9(0x362),_0x34eea9(0xa87),function(_0x5d44b0,_0x584504){const _0x5f442a=_0x34eea9;return _0x5d44b0[_0x5f442a(0x2922)](_0x5f442a(0x27be),{'fields':_0x5f442a(0x1e64),'userProfileId':_0x584504[_0x5f442a(0xb12)]()[_0x5f442a(0x209a)],'sectionId':0xca});}]},'authenticate':!![],'permissionId':0xca,'bodyClass':_0x34eea9(0x17c1)})[_0x34eea9(0x13d6)](_0x34eea9(0xa79),{'url':_0x34eea9(0x15d1),'views':{'content@app':{'templateUrl':_0x426942,'controller':_0x34eea9(0x906)}},'resolve':{'telephones':[_0x34eea9(0x362),_0x34eea9(0xa87),function(_0x907cd9,_0x4021cf){const _0x20a174=_0x34eea9;return _0x4021cf[_0x20a174(0x23e0)](_0x20a174(0x174b))?_0x907cd9[_0x20a174(0x2922)](_0x20a174(0x2484),{'fields':_0x20a174(0x359),'role':'telephone','sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x907cd9[_0x20a174(0x2922)]('userProfile@getResources',{'id':_0x4021cf[_0x20a174(0xb12)]()[_0x20a174(0x209a)],'section':_0x20a174(0x3af),'fields':_0x20a174(0x359),'role':_0x20a174(0x90c),'sort':_0x20a174(0x12f2),'limit':0xa,'offset':0x0});}],'userProfile':[_0x34eea9(0x362),_0x34eea9(0xa87),function(_0x6194c,_0x5f5976){const _0x21a32a=_0x34eea9;return _0x5f5976[_0x21a32a(0x23e0)](_0x21a32a(0x174b))?null:_0x6194c[_0x21a32a(0x2922)](_0x21a32a(0x119a),{'fields':'id,name,crudPermissions','id':_0x5f5976['getCurrentUser']()['userProfileId']});}],'userProfileSection':[_0x34eea9(0x362),'Auth',function(_0x5c5b9c,_0x50f7e1){const _0x187e75=_0x34eea9;return _0x50f7e1['hasRole'](_0x187e75(0x174b))?null:_0x5c5b9c[_0x187e75(0x2922)]('userProfileSection@get',{'fields':_0x187e75(0x1e64),'userProfileId':_0x50f7e1[_0x187e75(0xb12)]()['userProfileId'],'sectionId':0xcb});}]},'authenticate':!![],'permissionId':0xcb,'bodyClass':_0x34eea9(0x17c1)})[_0x34eea9(0x13d6)]('app.staff.telephones.edit',{'url':_0x34eea9(0x2028),'params':{'telephone':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x3003c9,'controller':_0x34eea9(0x1cc7)}},'resolve':{'telephone':[_0x34eea9(0x362),_0x34eea9(0x28c8),function(_0x2a229d,_0x158b3e){const _0x13c89a=_0x34eea9;return _0x2a229d[_0x13c89a(0x2922)](_0x13c89a(0x2484),{'fields':_0x13c89a(0x359),'id':_0x158b3e['id']});}],'userProfileSection':[_0x34eea9(0x362),_0x34eea9(0xa87),function(_0x2bdede,_0x483df8){const _0x32e99b=_0x34eea9;return _0x2bdede['resolve'](_0x32e99b(0x27be),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x483df8[_0x32e99b(0xb12)]()['userProfileId'],'sectionId':0xcb});}]},'authenticate':!![],'permissionId':0xcb,'bodyClass':_0x34eea9(0x17c1)})[_0x34eea9(0x13d6)](_0x34eea9(0x17bb),{'url':_0x34eea9(0x254b),'views':{'content@app':{'templateUrl':_0xc64ef2,'controller':_0x34eea9(0x2908)}},'resolve':{'teams':[_0x34eea9(0x362),'Auth',function(_0x4a37bb,_0x11bdd0){const _0x210ee1=_0x34eea9;return _0x11bdd0[_0x210ee1(0x23e0)](_0x210ee1(0x174b))?_0x4a37bb[_0x210ee1(0x2922)](_0x210ee1(0x2650),{'fields':'createdAt,updatedAt,id,name,description','sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x4a37bb[_0x210ee1(0x2922)](_0x210ee1(0x938),{'id':_0x11bdd0['getCurrentUser']()['userProfileId'],'section':_0x210ee1(0x21ae),'fields':_0x210ee1(0x608),'sort':_0x210ee1(0x12f2),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver','Auth',function(_0x44aad2,_0x416312){const _0x213ef4=_0x34eea9;return _0x416312[_0x213ef4(0x23e0)](_0x213ef4(0x174b))?null:_0x44aad2['resolve']('userProfile@get',{'fields':_0x213ef4(0x227),'id':_0x416312[_0x213ef4(0xb12)]()[_0x213ef4(0x209a)]});}],'userProfileSection':['apiResolver',_0x34eea9(0xa87),function(_0x1245cc,_0x30b1ac){const _0x43878d=_0x34eea9;return _0x30b1ac['hasRole'](_0x43878d(0x174b))?null:_0x1245cc['resolve']('userProfileSection@get',{'fields':_0x43878d(0x1e64),'userProfileId':_0x30b1ac[_0x43878d(0xb12)]()[_0x43878d(0x209a)],'sectionId':0xcc});}]},'authenticate':!![],'permissionId':0xcc,'bodyClass':_0x34eea9(0x17c1)})[_0x34eea9(0x13d6)](_0x34eea9(0x2804),{'url':_0x34eea9(0x274a),'views':{'content@app':{'templateUrl':_0x461f55,'controller':'UserProfilesController\x20as\x20vm'}},'resolve':{'userProfiles':[_0x34eea9(0x362),function(_0x5b55e1){const _0x50c8b5=_0x34eea9;return _0x5b55e1[_0x50c8b5(0x2922)](_0x50c8b5(0x119a),{'fields':'createdAt,updatedAt,id,name,description,crudPermissions','sort':_0x50c8b5(0x12f2),'limit':0xa,'offset':0x0});}],'userProfile':[_0x34eea9(0x362),_0x34eea9(0xa87),function(_0x441128,_0x10945b){const _0x1b1c64=_0x34eea9;return _0x10945b[_0x1b1c64(0x23e0)](_0x1b1c64(0x174b))?null:_0x441128['resolve'](_0x1b1c64(0x119a),{'fields':_0x1b1c64(0x227),'id':_0x10945b['getCurrentUser']()[_0x1b1c64(0x209a)]});}],'userProfileSection':[_0x34eea9(0x362),_0x34eea9(0xa87),function(_0x22b001,_0x2261af){const _0x1f8319=_0x34eea9;return _0x2261af[_0x1f8319(0x23e0)](_0x1f8319(0x174b))?null:_0x22b001[_0x1f8319(0x2922)](_0x1f8319(0x27be),{'fields':_0x1f8319(0x1e64),'userProfileId':_0x2261af[_0x1f8319(0xb12)]()[_0x1f8319(0x209a)],'sectionId':0xcd});}]},'authenticate':!![],'permissionId':0xcd,'bodyClass':_0x34eea9(0x17c1)})[_0x34eea9(0x13d6)]('app.staff.userProfiles.edit',{'url':_0x34eea9(0x2028),'params':{'userProfile':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x2849f9,'controller':_0x34eea9(0x169f)}},'resolve':{'userProfile':[_0x34eea9(0x362),_0x34eea9(0x28c8),function(_0x5eefe1,_0x56b362){const _0x4bd8cc=_0x34eea9;return _0x5eefe1[_0x4bd8cc(0x2922)]('userProfile@get',{'fields':_0x4bd8cc(0x1fbf),'id':_0x56b362['id']});}],'userProfileSection':['apiResolver',_0x34eea9(0xa87),function(_0x3fb59e,_0x2b5c68){const _0x553cae=_0x34eea9;return _0x3fb59e['resolve'](_0x553cae(0x27be),{'fields':_0x553cae(0x1e64),'userProfileId':_0x2b5c68[_0x553cae(0xb12)]()[_0x553cae(0x209a)],'sectionId':0xcd});}]},'authenticate':!![],'permissionId':0xcd,'bodyClass':_0x34eea9(0x17c1)}),_0x4d4573['addPart'](_0x34eea9(0xc5a));}angular[_0x313a4d(0x2528)]('app.staff',[_0x313a4d(0xdad),_0x313a4d(0x962),_0x313a4d(0x23c7),'flow',_0x313a4d(0x19e2),'ckeditor',_0x313a4d(0x195b),_0x313a4d(0x15ef),_0x313a4d(0xc86),_0x313a4d(0x1f5f),_0x313a4d(0x28a8),_0x313a4d(0xfb2),_0x313a4d(0x1e57),'ngclipboard','angular-cron-jobs',_0x313a4d(0x1792),_0x313a4d(0x1b65),_0x313a4d(0x1626),_0x313a4d(0x2713),_0x313a4d(0x11df)])[_0x313a4d(0x989)](_0x518556)[_0x313a4d(0x28f0)](_0x313a4d(0x10c0),_0x3173d8)[_0x313a4d(0x28f0)](_0x313a4d(0x19fe),_0x2202e4)[_0x313a4d(0x28f0)](_0x313a4d(0x150c),_0x3829cc)[_0x313a4d(0x28f0)]('AgentchangepasswordController',_0x42c883)[_0x313a4d(0x28f0)](_0x313a4d(0x200e),_0x565307)[_0x313a4d(0x28f0)](_0x313a4d(0x2610),_0x378634)[_0x313a4d(0x28f0)]('AgentteamaddController',_0x16f719)[_0x313a4d(0x28f0)](_0x313a4d(0x143f),_0x150b9e)[_0x313a4d(0x28f0)](_0x313a4d(0xf60),_0x3da3a8)['controller'](_0x313a4d(0x132c),_0x19671f)['controller'](_0x313a4d(0x1989),_0x1c64a1)[_0x313a4d(0x28f0)]('CreateOrEditTelephoneDialogController',_0x545318)[_0x313a4d(0x28f0)](_0x313a4d(0x17a9),_0x22c5e6)[_0x313a4d(0x28f0)](_0x313a4d(0x247b),_0x2450e1)[_0x313a4d(0x28f0)](_0x313a4d(0x68b),_0x4f7381)[_0x313a4d(0x28f0)](_0x313a4d(0x281f),_0x90c5bf)['controller'](_0x313a4d(0x378),_0x2c310e)[_0x313a4d(0x28f0)]('UserProfilePermissionsController',_0x1b5d36)[_0x313a4d(0x28f0)](_0x313a4d(0x1d13),_0x40b535)[_0x313a4d(0x28f0)](_0x313a4d(0x54d),_0x510430)[_0x313a4d(0x28f0)](_0x313a4d(0x1c1),_0x28c363)[_0x313a4d(0x28f0)](_0x313a4d(0x14f0),_0x11bc92)[_0x313a4d(0x28f0)](_0x313a4d(0x1cca),_0xf94f89)['controller'](_0x313a4d(0xf3d),_0x2b7f2e)[_0x313a4d(0x28f0)]('UserchangepasswordController',_0x55f406)[_0x313a4d(0x28f0)]('UserController',_0x554332)[_0x313a4d(0x28f0)]('UsersController',_0x47388e);;const _0x29af64=_0x4acfac['p']+_0x313a4d(0x230d);;const _0x25278a=_0x4acfac['p']+_0x313a4d(0x1350);;_0x3469db[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x4d8),_0x313a4d(0x1abe),_0x313a4d(0x1862),'$stateParams',_0x313a4d(0x10e8),'$q',_0x313a4d(0x26b6),_0x313a4d(0x1366),'api',_0x313a4d(0x1471),_0x313a4d(0x1324),_0x313a4d(0x96c),'companies',_0x313a4d(0x911),_0x313a4d(0x1b86),'toasty',_0x313a4d(0xa87),_0x313a4d(0x2690)];function _0x3469db(_0x3d4e86,_0x1d829d,_0x20aca2,_0x1d7070,_0x1599dc,_0x240880,_0x12aa27,_0x40584a,_0x428fb4,_0x265a57,_0x4e2af9,_0xd0b47d,_0x113381,_0x366f8d,_0xe584d6,_0x25b5e8,_0x203578,_0x332a07,_0x1a1360){const _0x296cbf=_0x313a4d,_0x3273b5=this;_0x3273b5[_0x296cbf(0x1b1f)]=_0x265a57[_0x296cbf(0x1b1f)],_0x3273b5['currentUser']=_0x332a07[_0x296cbf(0xb12)](),_0x3273b5[_0x296cbf(0x2690)]=_0x1a1360,_0x3273b5[_0x296cbf(0x26b6)]=_0x40584a,_0x3273b5['userProfileSection']=_0x428fb4&&_0x428fb4[_0x296cbf(0x51c)]==0x1?_0x428fb4[_0x296cbf(0x19c7)][0x0]:null,_0x3273b5[_0x296cbf(0x2514)]=_0x332a07[_0x296cbf(0xe60)](_0x3273b5[_0x296cbf(0x1366)]?_0x3273b5[_0x296cbf(0x1366)][_0x296cbf(0x2514)]:null);const _0x7b10e7=0x3c,_0x9869e4=_0x7b10e7*0x400*0x400;_0x3273b5[_0x296cbf(0x4c3)]={'target':_0x3273b5[_0x296cbf(0x1b1f)]+_0x296cbf(0x1134),'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x9869e4,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x3273b5['contacts']=_0x4e2af9||{'count':0x0,'rows':[]},_0x3273b5['options']={'hidden':![],'hover':![],'isOpen':![]},_0x3273b5[_0x296cbf(0x768)]=_0x296cbf(0x27c4),_0x3273b5[_0x296cbf(0x1300)]=[],_0x3273b5[_0x296cbf(0x1324)]=_0xd0b47d||{'rows':[],'count':0x0},_0x3273b5[_0x296cbf(0x762)]=_0x366f8d||{'rows':[],'count':0x0},_0x3273b5[_0x296cbf(0x1b86)]=_0x25b5e8||{'rows':[],'count':0x0},_0x3273b5['listsMap']=_0x113381,_0x3273b5[_0x296cbf(0x911)]=_0xe584d6,_0x3273b5[_0x296cbf(0x2323)]=[],_0x3273b5[_0x296cbf(0xb78)]=null,_0x3273b5[_0x296cbf(0x10be)]=null,_0x3273b5[_0x296cbf(0x1a56)]=_0x3f65c0()[_0x296cbf(0x168d)]({'includeAll':!![],'sort':_0x296cbf(0x12f2),'limit':0xa,'offset':0x0,'page':0x1},_0x1599dc),_0x3273b5[_0x296cbf(0x2ed)]=_0xe6f4cc,_0x3273b5[_0x296cbf(0xf0a)]=_0xa61945,_0x3273b5[_0x296cbf(0x1c75)]=_0x201a54,_0x3273b5[_0x296cbf(0x871)]=_0x42d377,_0x3273b5['getAssignedCompanies']=_0x3cc146,_0x3273b5['mergeContact']=_0x539a8f,_0x3273b5[_0x296cbf(0x3d1)]=_0x538b3f,_0x3273b5[_0x296cbf(0x120b)]=_0x5eea08,_0x3273b5[_0x296cbf(0x1821)]=_0x493ec0,_0x3273b5[_0x296cbf(0x24e6)]=_0x59cb4e,_0x3273b5['deleteSelectedContacts']=_0x180606,_0x3273b5[_0x296cbf(0xb1a)]=_0x1f0d3c,_0x3273b5[_0x296cbf(0x189d)]=_0x4165a5,_0x3273b5['createTag']=_0x27dff5,_0x3273b5[_0x296cbf(0x1eec)]=_0x9d5c7f,_0x3273b5[_0x296cbf(0x1e61)]=_0x497ee5,_0x3273b5[_0x296cbf(0x1192)]=_0x21f186,_0x3273b5[_0x296cbf(0x2434)]=_0x3863ba,_0x3273b5[_0x296cbf(0x143d)]=_0x45de2d;_0x1d7070[_0x296cbf(0x16a)]['ListId']&&(_0x3273b5[_0x296cbf(0xb78)]=_0x1d7070[_0x296cbf(0x16a)]['ListId']);_0x1d7070[_0x296cbf(0x16a)][_0x296cbf(0xe7c)]&&(_0x3273b5['selectedCompany']=_0x1d7070['params'][_0x296cbf(0xe7c)]);_0x3d4e86[_0x296cbf(0x21e8)](_0x296cbf(0x948),function(_0x3ad405){const _0x4586d9=_0x296cbf;_0x3ad405?_0x20aca2(function(){const _0x58c882=a0_0x3bb9;_0x3d4e86[_0x58c882(0x1023)]=_0x3273b5[_0x58c882(0xa08)][_0x58c882(0xe7a)];},0x258):_0x3d4e86[_0x4586d9(0x1023)]=_0x3273b5[_0x4586d9(0xa08)][_0x4586d9(0xe7a)];});function _0x3cc146(){const _0x31d57e=_0x296cbf;if(!_0x332a07[_0x31d57e(0x23e0)](_0x31d57e(0x174b))){const _0x8c2dc8=_0x3f65c0()(_0x3273b5[_0x31d57e(0x1471)][_0x31d57e(0x19c7)])[_0x31d57e(0x205)](function(_0x3cb420){const _0x407cf9=_0x31d57e;return{'id':_0x3cb420[_0x407cf9(0xe7c)]};})[_0x31d57e(0xbab)]('id')['filter'](function(_0x53e5f8){return _0x53e5f8['id']&&_0x53e5f8['id']>0x0;})[_0x31d57e(0x2062)](_0x3273b5[_0x31d57e(0x762)][_0x31d57e(0x19c7)],'id')[_0x31d57e(0x175d)]();if(!_0x3f65c0()[_0x31d57e(0x2635)](_0x8c2dc8)){const _0x20936f=[];_0x8c2dc8[_0x31d57e(0x1df5)](function(_0x2de8a1){const _0x3df3a7=_0x31d57e;_0x20936f[_0x3df3a7(0x1f47)](_0x265a57[_0x3df3a7(0x134d)]['get']({'id':_0x2de8a1['id'],'fields':'id,name'})[_0x3df3a7(0x2945)]);}),_0x12aa27[_0x31d57e(0x1be2)](_0x20936f)[_0x31d57e(0x146b)](function(_0x4d29f7){const _0x239936=_0x31d57e;_0x4d29f7[_0x239936(0x1df5)](function(_0x18880e){const _0x1ae4c5=_0x239936,_0x51d5e0=_0x18880e['toJSON']();_0x51d5e0[_0x1ae4c5(0x8ff)]=![],_0x3273b5[_0x1ae4c5(0x762)][_0x1ae4c5(0x19c7)][_0x1ae4c5(0x1f47)](_0x51d5e0);const _0x5f2dd0={};_0x5f2dd0[_0x51d5e0['id']]=_0x51d5e0['name'],_0x3273b5[_0x1ae4c5(0x911)]=_0x3f65c0()['assignIn'](_0x3273b5['companiesMap'],_0x5f2dd0);});})['catch'](function(_0x4579ae){const _0x128bfa=_0x31d57e;_0x203578[_0x128bfa(0x1980)]({'title':_0x4579ae[_0x128bfa(0x107b)]?_0x128bfa(0x262a)+_0x4579ae[_0x128bfa(0x107b)]+_0x128bfa(0x1315)+_0x4579ae[_0x128bfa(0x167f)]:_0x128bfa(0x1868),'msg':_0x4579ae[_0x128bfa(0x524)]?JSON[_0x128bfa(0x10bb)](_0x4579ae['data'][_0x128bfa(0x7fd)]):_0x4579ae[_0x128bfa(0xd5f)]()});});}}}function _0x9d5c7f(_0x17dc0b){const _0x333840=_0x296cbf,_0x3ec731=_0x240880['prompt']()[_0x333840(0x1189)](_0x333840(0x1634))[_0x333840(0x1a02)](_0x333840(0x1dc9))[_0x333840(0x4bd)](_0x333840(0x1dc9))[_0x333840(0x1f27)](_0x17dc0b)['ok']('Ok')['cancel'](_0x333840(0xcf0));return _0x240880[_0x333840(0x2615)](_0x3ec731)['then'](function(_0x435bb5){const _0x416e91=_0x333840;if(_0x435bb5)return _0x265a57['cmList'][_0x416e91(0x1e3)]({'name':_0x435bb5});else _0x203578[_0x416e91(0x1980)]({'title':_0x416e91(0x22d2),'msg':_0x416e91(0x24b6)});})[_0x333840(0x146b)](function(_0x2413d4){const _0x4a6589=_0x333840;_0x2413d4&&(_0x3273b5[_0x4a6589(0x1324)][_0x4a6589(0x19c7)][_0x4a6589(0x1f47)](_0x2413d4),_0x203578['success']({'title':_0x4a6589(0x1b06),'msg':_0x2413d4[_0x4a6589(0x19eb)]?_0x2413d4[_0x4a6589(0x19eb)]+_0x4a6589(0x1386):''}));});}function _0x3863ba(){const _0x1e6a8e=_0x296cbf;return _0x332a07['hasPermission'](0x12f)||_0x332a07[_0x1e6a8e(0x23e0)](_0x1e6a8e(0x174b));}function _0x497ee5(_0x10317f){const _0x2d87ee=_0x296cbf,_0x5293d2=_0x240880[_0x2d87ee(0x212a)]()['title'](_0x2d87ee(0x1448))[_0x2d87ee(0x1a02)](_0x2d87ee(0x1ad4))[_0x2d87ee(0x4bd)](_0x2d87ee(0x1ad4))['targetEvent'](_0x10317f)['ok']('Ok')['cancel']('Cancel');return _0x240880[_0x2d87ee(0x2615)](_0x5293d2)[_0x2d87ee(0x146b)](function(_0x281800){const _0x2a146a=_0x2d87ee;if(_0x281800)return _0x265a57[_0x2a146a(0x134d)]['save']({'name':_0x281800});else _0x203578[_0x2a146a(0x1980)]({'title':_0x2a146a(0x245e),'msg':_0x2a146a(0x2852)});})['then'](function(_0x3336fb){const _0x5768dc=_0x2d87ee;_0x3336fb&&(_0x3273b5[_0x5768dc(0x762)][_0x5768dc(0x19c7)][_0x5768dc(0x1f47)](_0x3336fb),_0x203578['success']({'title':_0x5768dc(0x216b),'msg':_0x3336fb['name']?_0x3336fb[_0x5768dc(0x19eb)]+'\x20has\x20been\x20created!':''}));});}function _0x27dff5(_0x2c9914){const _0x14d6a5=_0x296cbf,_0x252929=_0x240880[_0x14d6a5(0x212a)]()[_0x14d6a5(0x1189)](_0x14d6a5(0x2549))['placeholder'](_0x14d6a5(0x1400))['ariaLabel'](_0x14d6a5(0x1400))[_0x14d6a5(0x1f27)](_0x2c9914)['ok']('Ok')['cancel'](_0x14d6a5(0xcf0));return _0x240880[_0x14d6a5(0x2615)](_0x252929)[_0x14d6a5(0x146b)](function(_0x153812){const _0xab7c71=_0x14d6a5;if(_0x153812)return _0x265a57[_0xab7c71(0xa80)]['save']({'name':_0x153812});else _0x203578['error']({'title':_0xab7c71(0xf27),'msg':_0xab7c71(0x2126)});})['then'](function(_0x2cef5e){const _0x134fcd=_0x14d6a5;_0x2cef5e&&(_0x3273b5[_0x134fcd(0x1b86)][_0x134fcd(0x19c7)][_0x134fcd(0x1f47)](_0x2cef5e),_0x203578['success']({'title':_0x134fcd(0xe74),'msg':_0x2cef5e[_0x134fcd(0xa80)]?_0x2cef5e[_0x134fcd(0x19eb)]+'\x20has\x20been\x20created!':''}));});}function _0x21f186(_0x3b0fca,_0x3bddd0){const _0x12818b=_0x296cbf,_0x4e8bcb=JSON[_0x12818b(0x975)](_0x3bddd0);_0x240880[_0x12818b(0x2615)]({'controller':'ImportContactsDialogController','controllerAs':'vm','templateUrl':_0x29af64,'parent':angular[_0x12818b(0x1853)](_0x1d829d['body']),'clickOutsideToClose':![],'locals':{'lists':_0xd0b47d,'companies':_0x366f8d,'file':_0x4e8bcb[_0x12818b(0x252e)],'fields':_0x4e8bcb[_0x12818b(0x2867)],'license':_0x3273b5[_0x12818b(0x2690)]}})['then'](function(){const _0x5b8e2c=_0x12818b;_0x3273b5[_0x5b8e2c(0x871)]();})[_0x12818b(0x129e)](function(){const _0x1a58ac=_0x12818b;console[_0x1a58ac(0x1980)]();});}function _0xe6f4cc(_0x242f7c){const _0x31ab2c=_0x296cbf;_0x1d7070['go'](_0x31ab2c(0x575),{'id':_0x242f7c['id'],'crudPermissions':_0x3273b5[_0x31ab2c(0x2514)]});}function _0xa61945(_0x4ee101,_0x5d148a){const _0x59a944=_0x296cbf,_0x12d899=_0x240880['confirm']()[_0x59a944(0x1189)](_0x59a944(0x251c))[_0x59a944(0x1cbe)](''+(_0x4ee101[_0x59a944(0x1ed4)]||_0x4ee101[_0x59a944(0x1a2b)]||_0x4ee101['phone']||'Contact')+_0x59a944(0x252f)+_0x59a944(0xe01))['ariaLabel']('delete\x20contact')[_0x59a944(0x1f27)](_0x5d148a)['ok']('OK')[_0x59a944(0x6c3)](_0x59a944(0x39a));_0x240880[_0x59a944(0x2615)](_0x12d899)['then'](function(){_0x493ec0(_0x4ee101);});}function _0x45de2d(_0x1ea7fa){const _0x47018b=_0x296cbf,_0x45b2f1=[_0x47018b(0x214e)];if(!_0x3f65c0()[_0x47018b(0xa4e)](_0x45b2f1,_0x1ea7fa[_0x47018b(0x193f)]()))return _0x203578[_0x47018b(0x1980)]({'title':'Invalid\x20extension:\x20'+_0x1ea7fa[_0x47018b(0x193f)](),'msg':_0x47018b(0x208f)+_0x45b2f1[_0x47018b(0xb47)]()}),![];if(_0x1ea7fa[_0x47018b(0x4cc)]>_0x9869e4)return _0x203578[_0x47018b(0x1980)]({'title':_0x47018b(0x625),'msg':_0x47018b(0x923)+_0x7b10e7+'MB'}),![];return!![];}let _0x2665f4=!![],_0x316eb4=0x1;_0x3d4e86[_0x296cbf(0x21e8)](_0x296cbf(0x2669),function(_0x2fb0d5,_0x54b951){const _0x550328=_0x296cbf;_0x2665f4?_0x20aca2(function(){_0x2665f4=![];}):(!_0x54b951&&(_0x316eb4=_0x3273b5[_0x550328(0x1a56)][_0x550328(0x844)]),_0x2fb0d5!==_0x54b951&&(_0x3273b5[_0x550328(0x1a56)][_0x550328(0x844)]=0x1),!_0x2fb0d5&&(_0x3273b5[_0x550328(0x1a56)][_0x550328(0x844)]=_0x316eb4),_0x3273b5[_0x550328(0x871)]());},!![]),_0x3d4e86['$watch'](_0x296cbf(0xef1),function(_0x39a151,_0x2a3c53){const _0x3b4466=_0x296cbf;_0x39a151!==_0x2a3c53&&(_0x3273b5[_0x3b4466(0x1a56)]['ListId']=_0x3273b5[_0x3b4466(0xb78)]||undefined,_0x3273b5[_0x3b4466(0x871)]());}),_0x3d4e86[_0x296cbf(0x21e8)]('vm.selectedCompany',function(_0xf3d793,_0x4af75d){const _0x15fc96=_0x296cbf;_0xf3d793!==_0x4af75d&&(_0x3273b5[_0x15fc96(0x1a56)][_0x15fc96(0xe7c)]=_0x3273b5[_0x15fc96(0x10be)]||undefined,_0x3273b5[_0x15fc96(0x871)]());}),_0x3d4e86[_0x296cbf(0x21e8)]('vm.selectedTags',function(_0x44e681,_0x24cb1b){const _0x3c1002=_0x296cbf;(_0x44e681[_0x3c1002(0x402)]||_0x24cb1b['length'])&&_0x3273b5['getContacts']();});function _0x201a54(_0x27cb0d){_0x3273b5['contacts']=_0x27cb0d||{'count':0x0,'rows':[]};}function _0x42d377(){const _0x5e199f=_0x296cbf;_0x3273b5[_0x5e199f(0x1a56)]['offset']=(_0x3273b5['query']['page']-0x1)*_0x3273b5[_0x5e199f(0x1a56)][_0x5e199f(0x221e)],_0x332a07[_0x5e199f(0x23e0)](_0x5e199f(0x174b))?_0x3273b5[_0x5e199f(0xb9c)]=_0x265a57['cmContact']['get'](_0x3273b5['query'],_0x201a54)['$promise']:(_0x3273b5[_0x5e199f(0x1a56)]['id']=_0x3273b5[_0x5e199f(0x26b6)]['id'],_0x3273b5[_0x5e199f(0x1a56)][_0x5e199f(0xb7c)]=!_0x3273b5[_0x5e199f(0x1a56)][_0x5e199f(0xb7c)]?_0x3f65c0()[_0x5e199f(0x205)](_0x3273b5[_0x5e199f(0x1324)][_0x5e199f(0x19c7)],'id'):_0x3273b5[_0x5e199f(0x1a56)][_0x5e199f(0xb7c)],_0x3273b5['query'][_0x5e199f(0xe7c)]=!_0x3273b5[_0x5e199f(0x1a56)][_0x5e199f(0xe7c)]?_0x3f65c0()(_0x3273b5[_0x5e199f(0x762)][_0x5e199f(0x19c7)])['filter']({'canSelect':undefined})[_0x5e199f(0x205)]('id')[_0x5e199f(0x175d)]():_0x3273b5[_0x5e199f(0x1a56)][_0x5e199f(0xe7c)],_0x3273b5[_0x5e199f(0x1a56)][_0x5e199f(0x2146)]=_0x5e199f(0x1efa),_0x3273b5[_0x5e199f(0xb9c)]=_0x265a57[_0x5e199f(0x26b6)][_0x5e199f(0x158f)](_0x3273b5[_0x5e199f(0x1a56)],_0x201a54)[_0x5e199f(0x2945)]);}function _0x5eea08(_0x2e0f82,_0xcadc67){const _0x2e7d79=_0x296cbf;_0xcadc67&&_0xcadc67[_0x2e7d79(0xc5c)]&&(_0xcadc67[_0x2e7d79(0xc5c)]=new Date(_0xcadc67['dateOfBirth'])),_0x240880[_0x2e7d79(0x2615)]({'controller':_0x2e7d79(0x17e1),'controllerAs':'vm','templateUrl':_0x25278a,'parent':angular[_0x2e7d79(0x1853)](_0x1d829d[_0x2e7d79(0x2586)]),'targetEvent':_0x2e0f82,'clickOutsideToClose':!![],'locals':{'ListId':_0x3273b5[_0x2e7d79(0x1a56)]['ListId']||_0x1d7070['params'][_0x2e7d79(0xb7c)],'CompanyId':_0x3273b5[_0x2e7d79(0x1a56)][_0x2e7d79(0xe7c)]||_0x1d7070['params'][_0x2e7d79(0xe7c)],'contact':_0xcadc67,'contacts':_0x3273b5[_0x2e7d79(0x1471)][_0x2e7d79(0x19c7)],'companies':_0x3273b5[_0x2e7d79(0x762)],'lists':_0x3273b5['lists'],'setting':null,'crudPermissions':_0x3273b5[_0x2e7d79(0x2514)]}});}function _0x538b3f(_0x51dd3f,_0x212d78){const _0xfc86ae=_0x296cbf;_0x240880[_0xfc86ae(0x2615)]({'controller':_0xfc86ae(0x11f3),'controllerAs':'vm','templateUrl':_0x3f981f,'parent':angular[_0xfc86ae(0x1853)](_0x1d829d[_0xfc86ae(0x2586)]),'targetEvent':_0x51dd3f,'clickOutsideToClose':!![],'resolve':{'contact':[_0xfc86ae(0x362),function(_0xf5fa3d){const _0x11072f=_0xfc86ae;return _0xf5fa3d[_0x11072f(0x2922)](_0x11072f(0x17d4),{'id':_0x212d78['id']});}],'lists':[_0xfc86ae(0x362),_0xfc86ae(0xa87),function(_0x381614,_0x5b295d){const _0x3b9e9a=_0xfc86ae;return _0x5b295d['hasRole'](_0x3b9e9a(0x174b))?_0x381614['resolve']('cmList@get',{'fields':_0x3b9e9a(0x7a7),'nolimit':!![]}):_0x381614[_0x3b9e9a(0x2922)](_0x3b9e9a(0x938),{'id':_0x5b295d[_0x3b9e9a(0xb12)]()[_0x3b9e9a(0x209a)],'section':_0x3b9e9a(0x174f),'fields':_0x3b9e9a(0x7a7),'nolimit':!![]});}]},'locals':{'contacts':_0x3273b5['contacts'][_0xfc86ae(0x19c7)]}});}function _0x539a8f(_0x17ceec,_0x4c10e2){const _0x5b9c34=_0x296cbf;_0x240880[_0x5b9c34(0x2615)]({'controller':_0x5b9c34(0xcd2),'controllerAs':'vm','templateUrl':_0x1cccb8,'parent':angular[_0x5b9c34(0x1853)](_0x1d829d[_0x5b9c34(0x2586)]),'targetEvent':_0x17ceec,'clickOutsideToClose':!![],'resolve':{'contact':[_0x5b9c34(0x362),function(_0xb66604){return _0xb66604['resolve']('cmContact@get',{'id':_0x4c10e2['id']});}],'lists':[_0x5b9c34(0x362),_0x5b9c34(0xa87),function(_0x2d0569,_0x13f075){const _0x1080eb=_0x5b9c34;return _0x13f075['hasRole'](_0x1080eb(0x174b))?_0x2d0569[_0x1080eb(0x2922)](_0x1080eb(0xd64),{'fields':'id,name','nolimit':!![]}):_0x2d0569[_0x1080eb(0x2922)](_0x1080eb(0x938),{'id':_0x13f075['getCurrentUser']()[_0x1080eb(0x209a)],'section':_0x1080eb(0x174f),'fields':_0x1080eb(0x7a7),'nolimit':!![]});}]},'locals':{'contacts':_0x3273b5['contacts'][_0x5b9c34(0x19c7)]}});}function _0x493ec0(_0x19560c){const _0xf90744=_0x296cbf;_0x265a57[_0xf90744(0x18c3)][_0xf90744(0x1fac)]({'id':_0x19560c['id']})['$promise'][_0xf90744(0x146b)](function(){const _0x341564=_0xf90744;_0x3f65c0()[_0x341564(0x2640)](_0x3273b5[_0x341564(0x1471)][_0x341564(0x19c7)],{'id':_0x19560c['id']}),_0x3273b5[_0x341564(0x1471)][_0x341564(0x51c)]-=0x1,!_0x3273b5['contacts'][_0x341564(0x19c7)][_0x341564(0x402)]&&_0x3273b5['getContacts'](),_0x203578['success']({'title':_0x341564(0x1809),'msg':_0x19560c[_0x341564(0x19eb)]?_0x19560c[_0x341564(0x19eb)]+'\x20has\x20been\x20deleted!':''});})['catch'](function(_0x42bb6a){const _0x5c02cd=_0xf90744;if(_0x42bb6a[_0x5c02cd(0x524)]&&_0x42bb6a[_0x5c02cd(0x524)][_0x5c02cd(0xcef)]&&_0x42bb6a[_0x5c02cd(0x524)][_0x5c02cd(0xcef)][_0x5c02cd(0x402)]){_0x3273b5[_0x5c02cd(0xcef)]=_0x42bb6a[_0x5c02cd(0x524)][_0x5c02cd(0xcef)]||[{'message':_0x42bb6a[_0x5c02cd(0xd5f)](),'type':_0x5c02cd(0x1926)}];for(let _0x52933c=0x0;_0x52933c<_0x42bb6a[_0x5c02cd(0x524)]['errors'][_0x5c02cd(0x402)];_0x52933c++){_0x203578['error']({'title':_0x42bb6a[_0x5c02cd(0x524)][_0x5c02cd(0xcef)][_0x52933c][_0x5c02cd(0x1142)],'msg':_0x42bb6a[_0x5c02cd(0x524)][_0x5c02cd(0xcef)][_0x52933c][_0x5c02cd(0x7fd)]});}}else _0x203578[_0x5c02cd(0x1980)]({'title':_0x42bb6a[_0x5c02cd(0x107b)]?_0x5c02cd(0x262a)+_0x42bb6a[_0x5c02cd(0x107b)]+'\x20-\x20'+_0x42bb6a[_0x5c02cd(0x167f)]:_0x5c02cd(0x1926),'msg':_0x42bb6a[_0x5c02cd(0x524)]?JSON[_0x5c02cd(0x10bb)](_0x42bb6a['data'][_0x5c02cd(0x7fd)]):_0x42bb6a[_0x5c02cd(0x7fd)]||_0x42bb6a[_0x5c02cd(0xd5f)]()});});}function _0x59cb4e(){const _0x58419a=_0x296cbf,_0x43abb6=angular['copy'](_0x3273b5[_0x58419a(0x1300)]);return _0x3273b5[_0x58419a(0x1300)]=[],_0x43abb6;}function _0x180606(_0x2347f9){const _0x56972c=_0x296cbf,_0x193304=_0x240880[_0x56972c(0x1e8a)]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20contacts?')[_0x56972c(0x1cbe)](_0x56972c(0x16d3)+_0x3273b5['selectedContacts'][_0x56972c(0x402)]+_0x56972c(0x2452)+'\x20will\x20be\x20deleted.')[_0x56972c(0x4bd)](_0x56972c(0x114e))[_0x56972c(0x1f27)](_0x2347f9)['ok']('OK')[_0x56972c(0x6c3)]('CANCEL');_0x240880[_0x56972c(0x2615)](_0x193304)[_0x56972c(0x146b)](function(){const _0x2d6547=_0x56972c;_0x3273b5['selectedContacts'][_0x2d6547(0x1df5)](function(_0x199ef1){_0x493ec0(_0x199ef1);}),_0x3273b5[_0x2d6547(0x1300)]=[];});}function _0x1f0d3c(){const _0x2fae11=_0x296cbf;_0x3273b5[_0x2fae11(0x1300)]=[];}function _0x4165a5(){const _0x27f6ac=_0x296cbf;_0x3273b5['selectedContacts']=_0x3273b5[_0x27f6ac(0x1471)][_0x27f6ac(0x19c7)];}}const _0xb0b6cf=_0x3469db;;_0x418a00['$inject']=['$mdDialog',_0x313a4d(0x1fe4),_0x313a4d(0x1471),_0x313a4d(0x1324),'companies','contact','ListId',_0x313a4d(0xe7c),_0x313a4d(0x247f),_0x313a4d(0x2514)];function _0x418a00(_0x2db3fb,_0x2f939c,_0x2980d7,_0x279876,_0x5348de,_0x456dcd,_0x53df57,_0x58d7b9,_0x4eb5de,_0x3a24a8){const _0x3f7ad1=_0x313a4d,_0x5f248d=this;_0x5f248d['errors']=[],_0x5f248d[_0x3f7ad1(0x1189)]='CONTACTMANAGER.EDIT_CONTACT',_0x5f248d[_0x3f7ad1(0x2514)]=_0x3a24a8,_0x5f248d[_0x3f7ad1(0x1662)]=angular['copy'](_0x456dcd),_0x5f248d['contacts']=_0x2980d7||{'rows':[],'count':0x0},_0x5f248d['lists']=_0x279876||{'rows':[],'count':0x0},_0x5f248d[_0x3f7ad1(0x762)]=_0x5348de||{'rows':[],'count':0x0},_0x5f248d['customFields']={'rows':[],'count':0x0},_0x5f248d[_0x3f7ad1(0x1513)]=![];!_0x5f248d[_0x3f7ad1(0x1662)]?(_0x5f248d[_0x3f7ad1(0x1662)]={'ListId':_0x53df57?parseInt(_0x53df57,0xa):undefined,'CompanyId':_0x58d7b9?parseInt(_0x58d7b9,0xa):undefined},_0x5f248d[_0x3f7ad1(0x1189)]=_0x3f7ad1(0xcc1),_0x5f248d[_0x3f7ad1(0x1513)]=!![]):(delete _0x5f248d[_0x3f7ad1(0x1662)][_0x3f7ad1(0x1940)],_0x5f248d[_0x3f7ad1(0xb7c)]=_0x5f248d[_0x3f7ad1(0x1662)][_0x3f7ad1(0xb7c)]||undefined);_0x5f248d['addNewContact']=_0x4a65ec,_0x5f248d['saveContact']=_0x207362,_0x5f248d['deleteContact']=_0x545207,_0x5f248d[_0x3f7ad1(0x13f3)]=_0x25ac36,_0x5f248d[_0x3f7ad1(0x2328)]=_0x211417,_0x5f248d['getDateFromString']=_0x1fbe80;function _0x4a65ec(){const _0x593cef=_0x3f7ad1;_0x5f248d['errors']=[],_0x4eb5de[_0x593cef(0x18c3)]['save'](_0x5f248d[_0x593cef(0x1662)])[_0x593cef(0x2945)][_0x593cef(0x146b)](function(_0x5f58b7){const _0x404363=_0x593cef;_0x5f248d[_0x404363(0x1471)]['unshift'](_0x5f58b7),_0x2f939c[_0x404363(0x1c75)]({'title':_0x404363(0x2717),'msg':_0x5f248d[_0x404363(0x1662)][_0x404363(0x19eb)]?_0x5f248d['contact'][_0x404363(0x19eb)]+_0x404363(0x1386):''}),_0x25ac36();})[_0x593cef(0x129e)](function(_0xc42250){const _0x1a60f1=_0x593cef;if(_0xc42250[_0x1a60f1(0x524)]&&_0xc42250[_0x1a60f1(0x524)][_0x1a60f1(0xcef)]&&_0xc42250[_0x1a60f1(0x524)][_0x1a60f1(0xcef)][_0x1a60f1(0x402)]){_0x5f248d[_0x1a60f1(0xcef)]=_0xc42250['data']['errors']||[{'message':_0xc42250[_0x1a60f1(0xd5f)](),'type':_0x1a60f1(0x2406)}];for(let _0x3d7b71=0x0;_0x3d7b71<_0xc42250['data'][_0x1a60f1(0xcef)][_0x1a60f1(0x402)];_0x3d7b71++){_0x2f939c[_0x1a60f1(0x1980)]({'title':_0xc42250[_0x1a60f1(0x524)][_0x1a60f1(0xcef)][_0x3d7b71]['type'],'msg':_0xc42250[_0x1a60f1(0x524)][_0x1a60f1(0xcef)][_0x3d7b71]['message']});}}else _0x2f939c['error']({'title':_0xc42250[_0x1a60f1(0x107b)]?_0x1a60f1(0x262a)+_0xc42250[_0x1a60f1(0x107b)]+'\x20-\x20'+_0xc42250[_0x1a60f1(0x167f)]:_0x1a60f1(0xb10),'msg':_0xc42250[_0x1a60f1(0x524)]?JSON[_0x1a60f1(0x10bb)](_0xc42250[_0x1a60f1(0x524)][_0x1a60f1(0x7fd)]):_0xc42250['toString']()});});}function _0x207362(){const _0x2a906e=_0x3f7ad1;_0x5f248d[_0x2a906e(0xcef)]=[],_0x4eb5de[_0x2a906e(0x18c3)][_0x2a906e(0x18e1)]({'id':_0x5f248d[_0x2a906e(0x1662)]['id']},_0x5f248d[_0x2a906e(0x1662)])[_0x2a906e(0x2945)][_0x2a906e(0x146b)](function(_0x1d7b28){const _0xadbf25=_0x2a906e,_0x5dc5e4=_0x3f65c0()[_0xadbf25(0xc84)](_0x5f248d[_0xadbf25(0x1471)],{'id':_0x1d7b28['id']});_0x5dc5e4&&_0x3f65c0()[_0xadbf25(0x168d)](_0x5dc5e4,_0x1d7b28),_0x2f939c[_0xadbf25(0x1c75)]({'title':'Contact\x20properly\x20saved!','msg':_0x5f248d[_0xadbf25(0x1662)][_0xadbf25(0x19eb)]?_0x5f248d[_0xadbf25(0x1662)][_0xadbf25(0x19eb)]+_0xadbf25(0x24db):''}),_0x25ac36();})[_0x2a906e(0x129e)](function(_0x201b6c){const _0x3630aa=_0x2a906e;if(_0x201b6c[_0x3630aa(0x524)]&&_0x201b6c[_0x3630aa(0x524)]['errors']&&_0x201b6c[_0x3630aa(0x524)]['errors'][_0x3630aa(0x402)]){_0x5f248d[_0x3630aa(0xcef)]=_0x201b6c[_0x3630aa(0x524)][_0x3630aa(0xcef)]||[{'message':_0x201b6c[_0x3630aa(0xd5f)](),'type':_0x3630aa(0xc8d)}];for(let _0x331322=0x0;_0x331322<_0x201b6c['data'][_0x3630aa(0xcef)][_0x3630aa(0x402)];_0x331322++){_0x2f939c['error']({'title':_0x201b6c[_0x3630aa(0x524)][_0x3630aa(0xcef)][_0x331322][_0x3630aa(0x1142)],'msg':_0x201b6c[_0x3630aa(0x524)][_0x3630aa(0xcef)][_0x331322][_0x3630aa(0x7fd)]});}}else _0x2f939c[_0x3630aa(0x1980)]({'title':_0x201b6c[_0x3630aa(0x107b)]?_0x3630aa(0x262a)+_0x201b6c[_0x3630aa(0x107b)]+_0x3630aa(0x1315)+_0x201b6c[_0x3630aa(0x167f)]:_0x3630aa(0xc8d),'msg':_0x201b6c[_0x3630aa(0x524)]?JSON[_0x3630aa(0x10bb)](_0x201b6c[_0x3630aa(0x524)][_0x3630aa(0x7fd)]):_0x201b6c[_0x3630aa(0xd5f)]()});});}function _0x211417(_0x46bbbd){const _0x3892fb=_0x3f7ad1;if(_0x46bbbd)return _0x4eb5de[_0x3892fb(0xf03)]['getCustomFields']({'id':_0x46bbbd})[_0x3892fb(0x2945)][_0x3892fb(0x146b)](function(_0x14b85c){const _0x154996=_0x3892fb;if(_0x14b85c){_0x5f248d['customFields']=_0x14b85c;const _0x4f9cc7=_0x3f65c0()[_0x154996(0x205)](_0x5f248d[_0x154996(0x10ba)][_0x154996(0x19c7)],function(_0xf1a24c){const _0x5d043b=_0x154996;return _0x5d043b(0x21ef)+_0xf1a24c['id'];});_0x4eb5de['cmContact'][_0x154996(0x16b4)]({'id':_0x5f248d[_0x154996(0x1662)]['id'],'attributes':_0x4f9cc7,'raw':!![]})['$promise'][_0x154996(0x146b)](function(_0x5c8002){const _0xffe9a4=_0x154996;_0x5f248d['contact']=_0x3f65c0()[_0xffe9a4(0x168d)](_0x5f248d[_0xffe9a4(0x1662)],_0x5c8002);});}})[_0x3892fb(0x129e)](function(_0x27e0ad){const _0x3c3445=_0x3892fb;console[_0x3c3445(0x1980)](_0x27e0ad);});else _0x5f248d[_0x3892fb(0x10ba)]={'rows':[],'count':0x0};}function _0x545207(_0x37e99c){const _0x413439=_0x3f7ad1;_0x5f248d[_0x413439(0xcef)]=[];const _0x4c1e8c=_0x2db3fb[_0x413439(0x1e8a)]()[_0x413439(0x1189)]('Are\x20you\x20sure?')[_0x413439(0x80f)]('The\x20contact\x20will\x20be\x20deleted.')[_0x413439(0x4bd)]('Delete\x20Contact')['ok']('Delete')[_0x413439(0x6c3)](_0x413439(0xcf0))[_0x413439(0x1f27)](_0x37e99c);_0x2db3fb[_0x413439(0x2615)](_0x4c1e8c)['then'](function(){const _0x6b9f01=_0x413439;_0x4eb5de['cmContact']['delete']({'id':_0x5f248d[_0x6b9f01(0x1662)]['id']})[_0x6b9f01(0x2945)][_0x6b9f01(0x146b)](function(){const _0x5653bb=_0x6b9f01;_0x3f65c0()[_0x5653bb(0x2640)](_0x5f248d[_0x5653bb(0x1471)],{'id':_0x5f248d[_0x5653bb(0x1662)]['id']}),_0x2f939c[_0x5653bb(0x1c75)]({'title':'Contact\x20properly\x20deleted!','msg':_0x5f248d[_0x5653bb(0x1662)]['name']?_0x5f248d[_0x5653bb(0x1662)][_0x5653bb(0x19eb)]+_0x5653bb(0x23e3):''}),_0x25ac36();})['catch'](function(_0x2c9bb6){const _0x2535f9=_0x6b9f01;console[_0x2535f9(0x1980)](_0x2c9bb6),_0x5f248d[_0x2535f9(0xcef)]=_0x2c9bb6[_0x2535f9(0x524)][_0x2535f9(0xcef)]||[{'message':_0x2c9bb6[_0x2535f9(0xd5f)](),'type':_0x2535f9(0x1926)}];});},function(){});}function _0x1fbe80(_0x192763){return _0x192763===null?undefined:new Date(_0x192763);}function _0x25ac36(){const _0x5c58f6=_0x3f7ad1;_0x2db3fb[_0x5c58f6(0x2458)]();}}const _0x4e4378=_0x418a00;;_0x22ec2a['$inject']=[_0x313a4d(0x10e8),_0x313a4d(0x1fe4),_0x313a4d(0x1662),_0x313a4d(0x1471),_0x313a4d(0x1324),'api'];function _0x22ec2a(_0x2de97f,_0x363e57,_0x2aec46,_0x1de462,_0x2ea9a3,_0x328102){const _0x45ec53=_0x313a4d,_0x41ec02=this;_0x41ec02['errors']=[],_0x41ec02[_0x45ec53(0x1189)]='CONTACTMANAGER.COPY_CONTACT',_0x41ec02['contact']=angular[_0x45ec53(0x235a)](_0x2aec46),_0x41ec02['lists']=_0x2ea9a3||{'rows':[],'count':0x0},_0x41ec02['addNewContact']=_0x42934d,_0x41ec02[_0x45ec53(0x13f3)]=_0x55baf9;function _0x42934d(){const _0x22b87e=_0x45ec53;_0x41ec02[_0x22b87e(0xcef)]=[],delete _0x41ec02[_0x22b87e(0x1662)]['id'],_0x41ec02[_0x22b87e(0x1662)][_0x22b87e(0x1b86)]&&!_0x41ec02[_0x22b87e(0x1662)][_0x22b87e(0x1b86)][_0x22b87e(0x402)]&&delete _0x41ec02[_0x22b87e(0x1662)][_0x22b87e(0x1b86)],_0x328102[_0x22b87e(0x18c3)]['save'](_0x41ec02[_0x22b87e(0x1662)])[_0x22b87e(0x2945)][_0x22b87e(0x146b)](function(_0x1f4f20){const _0x1d6f4a=_0x22b87e;_0x1de462[_0x1d6f4a(0xb3d)](_0x1f4f20),_0x363e57[_0x1d6f4a(0x1c75)]({'title':'Contact\x20properly\x20created','msg':_0x41ec02['contact']['name']?_0x41ec02[_0x1d6f4a(0x1662)]['name']+_0x1d6f4a(0x1386):''}),_0x55baf9();})['catch'](function(_0x1d3240){const _0x3f4484=_0x22b87e;console['error'](_0x1d3240),_0x41ec02[_0x3f4484(0xcef)]=_0x1d3240[_0x3f4484(0x524)][_0x3f4484(0xcef)]||[{'message':_0x1d3240[_0x3f4484(0xd5f)](),'type':_0x3f4484(0x33e)}];});}function _0x55baf9(){_0x2de97f['hide']();}}const _0x14b405=_0x22ec2a;;_0x555abb[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),'$state',_0x313a4d(0xd08),_0x313a4d(0x10e8),'toasty',_0x313a4d(0x9f0),_0x313a4d(0x10fa),_0x313a4d(0x247f),_0x313a4d(0x2514)];function _0x555abb(_0x3d0a41,_0x2979e2,_0x1b0b14,_0x863ee5,_0x874b38,_0x2b164f,_0x3d0b7f,_0x38c4f9,_0x126586){const _0x140a03=_0x313a4d,_0x20c008=this;_0x20c008[_0x140a03(0xcef)]=[],_0x20c008[_0x140a03(0x1189)]='CONTACTMANAGER.EDIT_HOPPER',_0x20c008['hopper']=angular[_0x140a03(0x235a)](_0x3d0b7f),_0x20c008[_0x140a03(0x9f0)]=_0x2b164f,_0x20c008[_0x140a03(0xaa9)]=![],_0x20c008[_0x140a03(0x2514)]=_0x126586;!_0x20c008['hopper']&&(_0x20c008[_0x140a03(0x10fa)]={},_0x20c008[_0x140a03(0x1189)]=_0x140a03(0x1f1e),_0x20c008[_0x140a03(0xaa9)]=!![]);_0x20c008[_0x140a03(0x38f)]=_0x401dc9,_0x20c008[_0x140a03(0xe73)]=_0x4c8fd0,_0x20c008[_0x140a03(0x13f3)]=_0x257cde;function _0x401dc9(){const _0x45a25e=_0x140a03;_0x20c008[_0x45a25e(0xcef)]=[],_0x38c4f9['cmHopper'][_0x45a25e(0x18e1)]({'id':_0x20c008[_0x45a25e(0x10fa)]['id']},_0x20c008[_0x45a25e(0x10fa)])[_0x45a25e(0x2945)]['then'](function(_0x4bab16){const _0x148490=_0x45a25e,_0x1accef=_0x3f65c0()[_0x148490(0xc84)](_0x20c008[_0x148490(0x9f0)],{'id':_0x4bab16['id']});_0x1accef&&_0x3f65c0()[_0x148490(0x168d)](_0x1accef,_0x4bab16),_0x874b38[_0x148490(0x1c75)]({'title':_0x148490(0x17e3),'msg':_0x20c008[_0x148490(0x10fa)]['name']?_0x20c008['hopper'][_0x148490(0x19eb)]+_0x148490(0x24db):''}),_0x257cde(_0x4bab16);})[_0x45a25e(0x129e)](function(_0x168c42){const _0x2ba2c3=_0x45a25e;console[_0x2ba2c3(0x1980)](_0x168c42),_0x20c008[_0x2ba2c3(0xcef)]=_0x168c42[_0x2ba2c3(0x524)][_0x2ba2c3(0xcef)]||[{'message':_0x168c42[_0x2ba2c3(0xd5f)](),'type':_0x2ba2c3(0x1a93)}];});}function _0x4c8fd0(_0x50f13f){return _0x50f13f===null?undefined:new Date(_0x50f13f);}function _0x257cde(_0x4c5a84){const _0x30b06b=_0x140a03;_0x863ee5[_0x30b06b(0x2458)](_0x4c5a84);}}const _0x5bdb16=_0x555abb;;const _0x581f39=_0x4acfac['p']+_0x313a4d(0x1ba3);;_0x407354['$inject']=[_0x313a4d(0x910),_0x313a4d(0x1abe),_0x313a4d(0x1862),_0x313a4d(0x4d8),_0x313a4d(0x10e8),'$translate',_0x313a4d(0x1fe4),_0x313a4d(0x247f),_0x313a4d(0x1662),'hoppers',_0x313a4d(0x272a),_0x313a4d(0xf95),_0x313a4d(0x1471),'companies',_0x313a4d(0x1324),_0x313a4d(0x10ba),_0x313a4d(0x1b86),_0x313a4d(0x1d6d),_0x313a4d(0x2690),_0x313a4d(0xa87),_0x313a4d(0x1366)];function _0x407354(_0x20c4be,_0x48f8db,_0x51e2ee,_0x135212,_0x557e47,_0x3d530e,_0x4cc2bd,_0x605028,_0x3ec806,_0x5bec17,_0x5d51ce,_0x547679,_0x408cbf,_0x415617,_0x6e82fc,_0x51a2c9,_0x1196d8,_0x4a257c,_0x4bcfc4,_0x569776,_0x3c3cfd){const _0x23568b=_0x313a4d,_0x4cc197=this;_0x4cc197['currentUser']=_0x569776[_0x23568b(0xb12)](),_0x4cc197['license']=_0x4bcfc4,_0x4cc197['journey']=[],_0x4cc197[_0x23568b(0x1662)]=_0x3ec806||{},_0x4cc197['hoppers']=_0x5bec17||{'rows':[],'count':0x0},_0x4cc197[_0x23568b(0x272a)]=_0x5d51ce||{'rows':[],'count':0x0},_0x4cc197[_0x23568b(0xf95)]=_0x547679||{'rows':[],'count':0x0},_0x4cc197[_0x23568b(0x762)]=_0x415617||{'rows':[],'count':0x0},_0x4cc197[_0x23568b(0x1324)]=_0x6e82fc||{'rows':[],'count':0x0},_0x4cc197[_0x23568b(0x10ba)]=_0x51a2c9||{'rows':[],'count':0x0},_0x4cc197['tags']=_0x1196d8||{'rows':[],'count':0x0},_0x4cc197[_0x23568b(0x1d6d)]=_0x4a257c||{'rows':[],'count':0x0},_0x4cc197[_0x23568b(0x496)]={'scrollEl':_0x23568b(0x4c5)},_0x4cc197[_0x23568b(0x23e6)]=new Date(_0x2deec6()()[_0x23568b(0x1fcc)]('month')[_0x23568b(0xd7b)](0x1,_0x23568b(0xcf5))[_0x23568b(0x65f)](0x0,!![])[_0x23568b(0x22b0)]()),_0x4cc197['lastDayMonth']=new Date(_0x2deec6()()[_0x23568b(0x824)](_0x23568b(0x12b7))[_0x23568b(0xd7b)](0x1,'day')[_0x23568b(0x65f)](0x0,!![])[_0x23568b(0x22b0)]()),_0x4cc197[_0x23568b(0x1366)]=_0x3c3cfd&&_0x3c3cfd[_0x23568b(0x51c)]==0x1?_0x3c3cfd['rows'][0x0]:null,_0x4cc197[_0x23568b(0x2514)]=_0x569776[_0x23568b(0xe60)](_0x4cc197[_0x23568b(0x1366)]?_0x4cc197[_0x23568b(0x1366)][_0x23568b(0x2514)]:null),_0x4cc197[_0x23568b(0x221d)]=_0x3f65c0()[_0x23568b(0x194)]([{'option':_0x23568b(0xa73),'value':_0x23568b(0x1428)},{'option':_0x23568b(0x25c5),'value':_0x23568b(0x1f63)},{'option':_0x23568b(0x6c4),'value':'\x272\x27'},{'option':_0x23568b(0xce5),'value':'\x271\x27'},{'option':'Lowest','value':_0x23568b(0x35c)}],function(_0x452a9e){const _0x502ceb=_0x23568b;return _0x3f65c0()[_0x502ceb(0x5f4)](_0x452a9e[_0x502ceb(0x175d)],new RegExp('\x27','g'),'');}),_0x4cc197['queryHopper']={'fields':_0x23568b(0xadb),'sort':_0x23568b(0x12f2),'limit':0xa,'page':0x1},_0x4cc197['queryFinal']={'fields':_0x23568b(0x2751),'sort':_0x23568b(0xef6),'limit':0xa,'page':0x1},_0x4cc197['queryHistory']={'fields':_0x23568b(0x25ad),'sort':_0x23568b(0xef6),'limit':0xa,'page':0x1},_0x4cc197[_0x23568b(0x157d)]={'fields':_0x23568b(0x21b8),'sort':_0x23568b(0xc89),'limit':0xa,'page':0x1},_0x4cc197[_0x23568b(0x1b09)]=_0x51e2ee['params']['tab']||0x0,_0x4cc197[_0x23568b(0x3d4)]=_0x44ce6e,_0x4cc197[_0x23568b(0x23cb)]=_0x338fd8,_0x4cc197['duplicateContact']=_0x3feabd,_0x4cc197[_0x23568b(0xdf)]=_0x1a4f3b,_0x4cc197['editCompany']=_0xd75f43,_0x4cc197[_0x23568b(0x24af)]=_0x1de0e0,_0x4cc197['onSelectListSuccess']=_0x4cbf78,_0x4cc197[_0x23568b(0xe73)]=_0x2561de,_0x4cc197[_0x23568b(0x3b6)]=_0x149db9,_0x4cc197['getFinals']=_0x58907e,_0x4cc197[_0x23568b(0x2330)]=_0x3fd0e7,_0x4cc197['getJscriptySessions']=_0x5248c8,_0x4cc197[_0x23568b(0xf0a)]=_0x4bc3d1,_0x4cc197[_0x23568b(0x27ff)]=_0x4d2b84,_0x4cc197[_0x23568b(0x1f79)]=_0x466e2f,_0x4cc197[_0x23568b(0x898)]=_0x461f4f;let _0x100106=!![],_0x5b6620=0x1;_0x20c4be[_0x23568b(0x21e8)](_0x23568b(0x18b1),function(_0x53786d,_0x2f3ef7){const _0x30da18=_0x23568b;_0x100106?_0x48f8db(function(){_0x100106=![];}):(!_0x2f3ef7&&(_0x5b6620=_0x4cc197[_0x30da18(0x1562)]['page']),_0x53786d!==_0x2f3ef7&&(_0x4cc197['queryHopper'][_0x30da18(0x844)]=0x1),!_0x53786d&&(_0x4cc197['queryHopper'][_0x30da18(0x844)]=_0x5b6620),_0x4cc197[_0x30da18(0x3b6)]());}),_0x20c4be['$watch'](_0x23568b(0x127c),function(_0x5dd334,_0x1b0a1a){const _0x869e94=_0x23568b;_0x100106?_0x48f8db(function(){_0x100106=![];}):(!_0x1b0a1a&&(_0x5b6620=_0x4cc197[_0x869e94(0x2822)][_0x869e94(0x844)]),_0x5dd334!==_0x1b0a1a&&(_0x4cc197[_0x869e94(0x2822)][_0x869e94(0x844)]=0x1),!_0x5dd334&&(_0x4cc197[_0x869e94(0x2822)][_0x869e94(0x844)]=_0x5b6620),_0x4cc197[_0x869e94(0x1c1d)]());}),_0x20c4be[_0x23568b(0x21e8)](_0x23568b(0xf45),function(_0x39ed0d,_0x3b1831){const _0xb0e8ca=_0x23568b;_0x100106?_0x48f8db(function(){_0x100106=![];}):(!_0x3b1831&&(_0x5b6620=_0x4cc197[_0xb0e8ca(0x1536)][_0xb0e8ca(0x844)]),_0x39ed0d!==_0x3b1831&&(_0x4cc197[_0xb0e8ca(0x1536)][_0xb0e8ca(0x844)]=0x1),!_0x39ed0d&&(_0x4cc197['queryHistory'][_0xb0e8ca(0x844)]=_0x5b6620),_0x4cc197[_0xb0e8ca(0x2330)]());});function _0x4a9889(_0x2caed9){const _0x2cd9a0=_0x23568b;switch(_0x2caed9){case _0x2cd9a0(0xa7f):return _0x2cd9a0(0x23da);case _0x2cd9a0(0x56b):return _0x2cd9a0(0x109e);case'sms':return _0x2cd9a0(0x2632);case'openchannel':return _0x2cd9a0(0x154c);case _0x2cd9a0(0x22d9):return _0x2cd9a0(0x276);case _0x2cd9a0(0xff9):return'lime-A700';default:return _0x2cd9a0(0x4e2);}}function _0x461f4f(_0x472b41){const _0x306822=_0x23568b;let _0x506c6c='';if(_0x472b41[_0x306822(0x74d)])_0x506c6c=_0x306822(0x22d9);else{if(_0x472b41['OpenchannelAccountId'])_0x506c6c=_0x306822(0x7d9);else{if(_0x472b41[_0x306822(0x1481)])_0x506c6c='sms';else{if(_0x472b41['MailAccountId'])_0x506c6c='mail';else{if(_0x472b41[_0x306822(0x1d92)])_0x506c6c=_0x306822(0xa7f);else _0x472b41[_0x306822(0xcbf)]&&(_0x506c6c='voice');}}}}return _0x4a9889(_0x506c6c);}function _0x96668d(_0x27d2d9){return function(_0x5d1ee8){_0x4cc197[_0x27d2d9]=_0x5d1ee8||{'count':0x0,'rows':[]};};}function _0x44ce6e(){const _0x386221=_0x23568b;return!_0x569776[_0x386221(0x23e0)](_0x386221(0x174b))&&(_0x2484a6(),_0xb2ca2b()),_0x605028['user']['get']({'fields':_0x386221(0x1291),'nolimit':!![]})[_0x386221(0x2945)]['then'](function(_0x415275){const _0x2d2568=_0x386221;_0x4cc197[_0x2d2568(0x1995)]=_0x415275||{'count':0x0,'rows':[]},_0x4cc197[_0x2d2568(0xa3e)]=_0x3f65c0()[_0x2d2568(0x1de4)](_0x3f65c0()['keyBy'](_0x4cc197[_0x2d2568(0x1995)]['rows'],'id'),_0x2d2568(0x286a)),_0x4cc197[_0x2d2568(0x2331)]=_0x3f65c0()['map'](_0x4cc197[_0x2d2568(0x1662)][_0x2d2568(0x2331)],'id');})[_0x386221(0x146b)](_0x353ece(_0x3ec806));}function _0x2484a6(){const _0x1cbb66=_0x23568b,_0x5d7984=_0x3f65c0()[_0x1cbb66(0x1360)](_0x4cc197[_0x1cbb66(0x762)]['rows'],{'id':_0x4cc197['contact'][_0x1cbb66(0xe7c)]});if(!_0x5d7984)return _0x605028[_0x1cbb66(0x134d)]['get']({'id':_0x4cc197[_0x1cbb66(0x1662)][_0x1cbb66(0xe7c)],'fields':'id,name'})[_0x1cbb66(0x2945)][_0x1cbb66(0x146b)](function(_0x4c02c8){const _0x38b822=_0x1cbb66,_0x1527a7=_0x4c02c8['toJSON']();_0x1527a7[_0x38b822(0x8ff)]=![],_0x4cc197[_0x38b822(0x762)][_0x38b822(0x19c7)]['push'](_0x1527a7);})[_0x1cbb66(0x129e)](function(_0x42484d){const _0x346d04=_0x1cbb66;_0x4cc2bd[_0x346d04(0x1980)]({'title':_0x42484d['status']?_0x346d04(0x262a)+_0x42484d[_0x346d04(0x107b)]+_0x346d04(0x1315)+_0x42484d[_0x346d04(0x167f)]:_0x346d04(0x1868),'msg':_0x42484d[_0x346d04(0x524)]?JSON[_0x346d04(0x10bb)](_0x42484d[_0x346d04(0x524)]['message']):_0x42484d[_0x346d04(0xd5f)]()});});}function _0xb2ca2b(){const _0x4ecfc1=_0x23568b,_0x114be7=_0x3f65c0()[_0x4ecfc1(0x205)](_0x4cc197[_0x4ecfc1(0x1662)][_0x4ecfc1(0x2331)],function(_0x20a19a){const _0x55a886=_0x4ecfc1;return{'id':_0x20a19a['id'],'name':_0x20a19a[_0x55a886(0x19eb)]};});if(!_0x3f65c0()[_0x4ecfc1(0x2635)](_0x114be7))for(let _0x3fecc8=0x0;_0x3fecc8<_0x114be7[_0x4ecfc1(0x402)];_0x3fecc8++){!_0x3f65c0()[_0x4ecfc1(0x1360)](_0x4cc197[_0x4ecfc1(0x1b86)]['rows'],{'id':_0x114be7['id']})&&(_0x114be7[_0x3fecc8]['canSelect']=![],_0x4cc197['tags'][_0x4ecfc1(0x19c7)][_0x4ecfc1(0x1f47)](_0x114be7[_0x3fecc8]));}}function _0x5178b0(_0x456282){const _0x2fabff=_0x23568b;if(!_0x456282[_0x2fabff(0x9e1)])return'('+_0x3d530e[_0x2fabff(0xde)]('DASHBOARDS.NO_DISPOSITION_SET')+')';const _0x358fc2=_0x3f65c0()['compact']([_0x456282['disposition'],_0x456282[_0x2fabff(0xb5c)],_0x456282[_0x2fabff(0x1402)]]);return'('+_0x358fc2[_0x2fabff(0xb47)](_0x2fabff(0x1315))+')';}function _0x5a807a(_0x186f91){const _0x2955d1=_0x23568b;_0x186f91&&_0x186f91[_0x2955d1(0x51c)]&&_0x186f91[_0x2955d1(0x19c7)][_0x2955d1(0x402)]&&(_0x4cc197['journey']=_0x3f65c0()[_0x2955d1(0x163c)](_0x4cc197['journey'],_0x186f91[_0x2955d1(0x19c7)]),_0x4cc197[_0x2955d1(0x21db)][_0x2955d1(0x1df5)](function(_0x340789){const _0x18e7da=_0x2955d1;_0x340789[_0x18e7da(0x472)]=_0x5178b0(_0x340789);}));}function _0x353ece(_0x3edf73){const _0x49cf1f=_0x23568b,_0x495254=['mail','chat',_0x49cf1f(0x929),_0x49cf1f(0x7d9),_0x49cf1f(0x22d9)];if(_0x3edf73&&_0x3edf73['id']){for(let _0x1677ae=0x0;_0x1677ae<_0x495254[_0x49cf1f(0x402)];_0x1677ae++){_0x605028[_0x495254[_0x1677ae]+_0x49cf1f(0x2297)]['get']({'ContactId':_0x3edf73['id'],'includeAll':!![]})[_0x49cf1f(0x2945)]['then'](_0x5a807a);}_0x605028[_0x49cf1f(0x629)]['get']({'ContactId':_0x3edf73['id'],'includeAll':!![]})[_0x49cf1f(0x2945)][_0x49cf1f(0x146b)](_0x5a807a)[_0x49cf1f(0x129e)](function(_0x2c1339){console['error'](_0x2c1339);});}}function _0x4d2b84(_0x2c42bc,_0x43c4d6){const _0x371e19=_0x23568b;_0x557e47[_0x371e19(0x2615)]({'controller':_0x371e19(0x14da),'controllerAs':'vm','templateUrl':_0x24c092,'parent':angular[_0x371e19(0x1853)](_0x135212['body']),'targetEvent':_0x2c42bc,'clickOutsideToClose':!![],'locals':{'hopper':_0x43c4d6,'hoppers':_0x4cc197['hoppers']['rows'],'license':null,'setting':null,'crudPermissions':_0x4cc197['crudPermissions']}});}function _0x466e2f(_0x3ba59b,_0x2546d8){const _0x4f34f6=_0x23568b;_0x557e47['show']({'controller':_0x4f34f6(0x375),'controllerAs':'vm','templateUrl':_0x581f39,'parent':angular['element'](_0x135212[_0x4f34f6(0x2586)]),'targetEvent':_0x3ba59b,'clickOutsideToClose':!![],'locals':{'hopper':_0x2546d8,'hoppers':_0x4cc197[_0x4f34f6(0x9f0)][_0x4f34f6(0x19c7)],'license':null,'setting':null,'crudPermissions':_0x4cc197[_0x4f34f6(0x2514)]}});}function _0x4bc3d1(_0x3e4b20,_0x380d1d){const _0x3c00f1=_0x23568b,_0x6c0421=_0x557e47[_0x3c00f1(0x1e8a)]()[_0x3c00f1(0x1189)](_0x3c00f1(0x881))[_0x3c00f1(0x1cbe)](_0x3c00f1(0x16d3)+(_0x3e4b20[_0x3c00f1(0x1d55)]||'hopper')+_0x3c00f1(0x252f)+_0x3c00f1(0xe01))[_0x3c00f1(0x4bd)]('delete\x20hopper')[_0x3c00f1(0x1f27)](_0x380d1d)['ok']('OK')[_0x3c00f1(0x6c3)](_0x3c00f1(0x39a));_0x557e47[_0x3c00f1(0x2615)](_0x6c0421)[_0x3c00f1(0x146b)](function(){_0x4e9d20(_0x3e4b20);},function(){const _0x1a828f=_0x3c00f1;console['log'](_0x1a828f(0x39a));});}function _0x4e9d20(_0x1660e7){const _0x36e29b=_0x23568b;return _0x605028['cmHopper']['delete']({'id':_0x1660e7['id']})['$promise'][_0x36e29b(0x146b)](function(){const _0x3f02a6=_0x36e29b;_0x3f65c0()[_0x3f02a6(0x2640)](_0x4cc197[_0x3f02a6(0x9f0)][_0x3f02a6(0x19c7)],{'id':_0x1660e7['id']}),_0x4cc197[_0x3f02a6(0x9f0)][_0x3f02a6(0x51c)]--,!_0x4cc197[_0x3f02a6(0x9f0)][_0x3f02a6(0x19c7)][_0x3f02a6(0x402)]&&_0x4cc197[_0x3f02a6(0x3b6)](),_0x4cc2bd[_0x3f02a6(0x1c75)]({'title':_0x3f02a6(0xdbb),'msg':_0x1660e7[_0x3f02a6(0x1d55)]?_0x1660e7['phone']+_0x3f02a6(0x23e3):''});})[_0x36e29b(0x129e)](function(_0x107969){const _0x4f1daa=_0x36e29b;_0x4cc2bd[_0x4f1daa(0x1980)]({'title':_0x107969[_0x4f1daa(0x107b)]?_0x4f1daa(0x262a)+_0x107969[_0x4f1daa(0x107b)]+_0x4f1daa(0x1315)+_0x107969[_0x4f1daa(0x167f)]:'SYSTEM:DELETEhopper','msg':_0x107969[_0x4f1daa(0x524)]?JSON[_0x4f1daa(0x10bb)](_0x107969[_0x4f1daa(0x524)]):_0x107969[_0x4f1daa(0xd5f)]()});});}function _0x149db9(){const _0xd9c6a0=_0x23568b;_0x4cc197['queryHopper']['offset']=(_0x4cc197[_0xd9c6a0(0x1562)]['page']-0x1)*_0x4cc197['queryHopper'][_0xd9c6a0(0x221e)],_0x4cc197[_0xd9c6a0(0x1562)]['id']=_0x4cc197[_0xd9c6a0(0x1662)]['id'],_0x4cc197[_0xd9c6a0(0xb9c)]=_0x605028[_0xd9c6a0(0x18c3)]['getHoppers'](_0x4cc197['queryHopper'],_0x96668d(_0xd9c6a0(0x9f0)))[_0xd9c6a0(0x2945)];}function _0x58907e(){const _0x5cf110=_0x23568b;_0x4cc197[_0x5cf110(0x2822)][_0x5cf110(0x145d)]=(_0x4cc197[_0x5cf110(0x2822)][_0x5cf110(0x844)]-0x1)*_0x4cc197[_0x5cf110(0x2822)][_0x5cf110(0x221e)],_0x4cc197[_0x5cf110(0x2822)]['id']=_0x4cc197['contact']['id'],_0x4cc197[_0x5cf110(0xb9c)]=_0x605028['cmContact']['getHopperFinals'](_0x4cc197[_0x5cf110(0x2822)],_0x96668d('finals'))[_0x5cf110(0x2945)];}function _0x3fd0e7(){const _0x450ab1=_0x23568b;_0x4cc197[_0x450ab1(0x1536)][_0x450ab1(0x145d)]=(_0x4cc197[_0x450ab1(0x1536)]['page']-0x1)*_0x4cc197[_0x450ab1(0x1536)][_0x450ab1(0x221e)],_0x4cc197[_0x450ab1(0x1536)]['id']=_0x4cc197[_0x450ab1(0x1662)]['id'],_0x4cc197[_0x450ab1(0xb9c)]=_0x605028[_0x450ab1(0x18c3)][_0x450ab1(0x12b3)](_0x4cc197[_0x450ab1(0x1536)],_0x96668d(_0x450ab1(0xf95)))[_0x450ab1(0x2945)];}function _0x5248c8(){const _0x1429bb=_0x23568b;_0x4cc197[_0x1429bb(0x157d)][_0x1429bb(0x145d)]=(_0x4cc197[_0x1429bb(0x157d)][_0x1429bb(0x844)]-0x1)*_0x4cc197[_0x1429bb(0x157d)]['limit'],_0x4cc197['queryJscriptySession']['id']=_0x4cc197[_0x1429bb(0x1662)]['id'],_0x4cc197['promise']=_0x605028['cmContact'][_0x1429bb(0x1576)](_0x4cc197[_0x1429bb(0x157d)],_0x96668d(_0x1429bb(0x1d6d)))['$promise'];}function _0x1de0e0(_0x55d592){const _0x4d0ec1=_0x23568b;if(_0x4cc197[_0x4d0ec1(0x1662)]['ListId']){const _0x4ac4f1=_0x557e47['confirm']()[_0x4d0ec1(0x1189)](_0x4d0ec1(0x15f7)+_0x4cc197[_0x4d0ec1(0x1662)][_0x4d0ec1(0xb7c)])[_0x4d0ec1(0x199c)](_0x4d0ec1(0x10e4)+_0x4cc197[_0x4d0ec1(0x1662)][_0x4d0ec1(0x1ed4)]||0x0||0x0)[_0x4d0ec1(0x1f27)](_0x55d592)['ok']('Ok')[_0x4d0ec1(0x6c3)]('Cancel');return _0x557e47['show'](_0x4ac4f1)['then'](_0x4cc197['onSelectListSuccess'])[_0x4d0ec1(0x129e)](function(){const _0x4631e=_0x4d0ec1;_0x4cc197[_0x4631e(0x1662)][_0x4631e(0xb7c)]=null;});}}function _0x4cbf78(){const _0x396d2f=_0x23568b;return _0x605028['cmList'][_0x396d2f(0x2328)]({'id':_0x4cc197['contact']['ListId']})[_0x396d2f(0x2945)]['then'](function(_0x3fad5c){const _0x2963cb=_0x396d2f;_0x4cc197[_0x2963cb(0x10ba)]=_0x3fad5c||{'rows':[],'count':0x0};})[_0x396d2f(0x129e)](function(_0x2e7cd6){const _0xefa0e=_0x396d2f;console[_0xefa0e(0x1980)](_0x2e7cd6);});}function _0x68120a(){const _0x26a7ec=_0x23568b;return _0x605028[_0x26a7ec(0x1366)][_0x26a7ec(0x16b4)]({'userProfileId':_0x4cc197[_0x26a7ec(0x2321)][_0x26a7ec(0x209a)],'sectionId':0x12e})[_0x26a7ec(0x2945)][_0x26a7ec(0x146b)](function(_0x2beef2){const _0x297765=_0x26a7ec,_0x97e74e=_0x2beef2['rows']?_0x2beef2[_0x297765(0x19c7)][0x0]:null;return _0x569776[_0x297765(0xe60)](_0x97e74e?_0x97e74e['crudPermissions']:null);})[_0x26a7ec(0x129e)](function(_0x99a235){const _0x1f2a51=_0x26a7ec;_0x4cc2bd[_0x1f2a51(0x1980)]({'title':_0x99a235[_0x1f2a51(0x107b)]?'API:'+_0x99a235[_0x1f2a51(0x107b)]+'\x20-\x20'+_0x99a235[_0x1f2a51(0x167f)]:_0x1f2a51(0x1c2),'msg':_0x99a235[_0x1f2a51(0x524)]?JSON['stringify'](_0x99a235['data']):_0x99a235[_0x1f2a51(0xd5f)]()});});}function _0xd75f43(_0x1f90a6,_0xf35eb0){const _0x5a3aa3=_0x23568b,_0xe8df7c=_0x3f65c0()[_0x5a3aa3(0xc84)](_0x4cc197[_0x5a3aa3(0x762)][_0x5a3aa3(0x19c7)],{'id':_0xf35eb0});_0x557e47[_0x5a3aa3(0x2615)]({'controller':_0x5a3aa3(0x39d),'controllerAs':'vm','templateUrl':_0x25278a,'parent':angular['element'](_0x135212[_0x5a3aa3(0x2586)]),'targetEvent':_0x1f90a6,'clickOutsideToClose':!![],'locals':{'companies':[],'license':null,'setting':null,'crudPermissions':_0xe8df7c[_0x5a3aa3(0x8ff)]===![]?{'readOnly':!![],'canEdit':![],'canDelete':![]}:_0x68120a()},'resolve':{'company':[_0x5a3aa3(0x362),function(_0x590fa2){const _0x3fac97=_0x5a3aa3;return _0x590fa2[_0x3fac97(0x2922)]('cmCompany@get',{'id':_0xf35eb0});}]}});}function _0x3feabd(_0x3ad229){const _0x997848=_0x23568b;_0x557e47['show']({'controller':_0x997848(0x11f3),'controllerAs':'vm','templateUrl':_0x3f981f,'parent':angular['element'](_0x135212[_0x997848(0x2586)]),'targetEvent':_0x3ad229,'clickOutsideToClose':!![],'resolve':{'lists':[_0x997848(0x362),_0x997848(0xa87),function(_0x10d10b,_0x5c4760){const _0x372d8d=_0x997848;return _0x5c4760[_0x372d8d(0x23e0)](_0x372d8d(0x174b))?_0x10d10b[_0x372d8d(0x2922)](_0x372d8d(0xd64),{'fields':_0x372d8d(0x7a7)}):_0x10d10b['resolve']('userProfile@getResources',{'id':_0x4cc197[_0x372d8d(0x2321)]['userProfileId'],'section':'Lists','fields':_0x372d8d(0x7a7)});}]},'locals':{'contacts':_0x408cbf[_0x997848(0x19c7)],'contact':_0x3ec806}});}function _0x1a4f3b(){const _0x1e464a=_0x23568b;_0x605028[_0x1e464a(0x18c3)][_0x1e464a(0x18e1)]({'id':_0x4cc197['contact']['id']},_0x4cc197['contact'])[_0x1e464a(0x2945)]['then'](function(){const _0xed9d64=_0x1e464a;_0x4cc2bd[_0xed9d64(0x1c75)]({'title':'Contact\x20updated!','msg':_0x4cc197[_0xed9d64(0x1662)][_0xed9d64(0x19eb)]?_0x4cc197['contact'][_0xed9d64(0x19eb)]+_0xed9d64(0x6b0):''});})[_0x1e464a(0x146b)](function(){const _0x3bc115=_0x1e464a;return _0x605028['cmContact'][_0x3bc115(0x13eb)]({'id':_0x4cc197['contact']['id'],'ids':_0x4cc197[_0x3bc115(0x2331)]})[_0x3bc115(0x2945)];})[_0x1e464a(0x129e)](function(_0x8a53b5){const _0x134094=_0x1e464a;_0x4cc2bd['error']({'title':_0x8a53b5[_0x134094(0x107b)]?_0x134094(0x262a)+_0x8a53b5[_0x134094(0x107b)]+_0x134094(0x1315)+_0x8a53b5['statusText']:_0x134094(0x408),'msg':_0x8a53b5[_0x134094(0x524)]?JSON['stringify'](_0x8a53b5['data']):_0x8a53b5[_0x134094(0xd5f)]()});});}function _0x2561de(_0x5f1d23){return _0x5f1d23===null?undefined:new Date(_0x5f1d23);}function _0x338fd8(){const _0x191255=_0x23568b;_0x51e2ee['go'](_0x191255(0x23fa),{},{'reload':!![],'notify':!![]});}}const _0x4aaf41=_0x407354;;_0x58d558[_0x313a4d(0x11c2)]=[_0x313a4d(0x23df),_0x313a4d(0x10e8),_0x313a4d(0xa0a),'$q',_0x313a4d(0x1abe),_0x313a4d(0x1324),_0x313a4d(0x762),_0x313a4d(0x1fe4),_0x313a4d(0x247f),'socket',_0x313a4d(0x910),'file',_0x313a4d(0x2867),_0x313a4d(0x2690)];function _0x58d558(_0x194369,_0x3f4e3b,_0xc5bd6f,_0x4a7f59,_0x19e6e9,_0x180824,_0x18451f,_0x4781f9,_0xae36fc,_0x53b0d1,_0x1bd8df,_0xa23478,_0x19a814,_0x3b159f){const _0x3288b3=_0x313a4d,_0x95bcc7=this;_0x95bcc7[_0x3288b3(0x40c)]=![],_0x95bcc7[_0x3288b3(0xaad)]=!![],_0x95bcc7[_0x3288b3(0x2690)]=_0x3b159f,_0x95bcc7[_0x3288b3(0x1086)]=0x0,_0x95bcc7[_0x3288b3(0x61a)]={'finish':![],'rows':0x0,'affectedRows':0x0,'failedRows':0x0,'duplicatedRows':0x0,'errors':[]},_0x95bcc7['contactFields']=[{'key':'firstName','required':!![]},{'key':_0x3288b3(0xee4),'required':![]},{'key':_0x3288b3(0x1d55),'required':!![]},{'key':'mobile','required':![]},{'key':_0x3288b3(0x1a2b),'required':![]},{'key':'dateOfBirth','required':![]},{'key':_0x3288b3(0x203d),'required':![]},{'key':_0x3288b3(0x7d1),'required':![]},{'key':_0x3288b3(0xcc3),'required':![]},{'key':_0x3288b3(0x10c),'required':![]},{'key':_0x3288b3(0x22d9),'required':![]}],_0x95bcc7[_0x3288b3(0x180b)]=[{'key':_0x3288b3(0xea2),'required':![]},{'key':_0x3288b3(0x432),'required':![]},{'key':_0x3288b3(0xa6a),'required':![]}],_0x95bcc7['binding']={},_0x95bcc7[_0x3288b3(0x14f8)]=[],_0x95bcc7[_0x3288b3(0x1324)]=_0x180824||{'rows':[],'count':0x0},_0x95bcc7[_0x3288b3(0x762)]=_0x18451f||{'rows':[],'count':0x0},_0x95bcc7['customFields']={'rows':[],'count':0x0},_0x95bcc7[_0x3288b3(0x2867)]=_0x19a814||[],_0x95bcc7[_0x3288b3(0x13f3)]=_0x2f840b,_0x95bcc7[_0x3288b3(0x17b6)]=_0x35cbd0,_0x95bcc7[_0x3288b3(0x140b)]=_0x587200,_0x95bcc7[_0x3288b3(0x2d0)]=_0x19fb8e,_0x95bcc7['getArrayErrors']=_0x40933e,_0x95bcc7[_0x3288b3(0x4f7)]=_0x140707;const _0x216030=_0x2deec6()()['unix']();_0x53b0d1['on'](_0x3288b3(0x11b2)+_0x216030,_0x216a98);function _0x35cbd0(){const _0x22ee1d=_0x3288b3;return _0xae36fc[_0x22ee1d(0xf03)][_0x22ee1d(0x2328)]({'id':_0x95bcc7[_0x22ee1d(0xb7c)]})[_0x22ee1d(0x2945)]['then'](function(_0x10189e){const _0x37d9d2=_0x22ee1d;_0x95bcc7[_0x37d9d2(0x10ba)]=_0x10189e;})[_0x22ee1d(0x129e)](function(_0x15bf27){const _0x390b1b=_0x22ee1d;console[_0x390b1b(0x1980)](_0x15bf27);});}function _0x587200(){const _0x10adbc=_0x3288b3;_0x95bcc7['processing']=_0x2deec6()(),_0xae36fc['cmContact'][_0x10adbc(0x12b2)]({'id':_0xa23478['filename'],'binding':_0x95bcc7['binding'],'ListId':_0x95bcc7[_0x10adbc(0xb7c)],'CompanyId':_0x95bcc7[_0x10adbc(0xe7c)],'duplicates':_0x95bcc7[_0x10adbc(0x1774)],'socket_timestamp':_0x216030})[_0x10adbc(0x2945)][_0x10adbc(0x146b)](function(_0x466b42){const _0x5e11c9=_0x10adbc;_0x95bcc7[_0x5e11c9(0xaad)]=![],_0x466b42&&_0x466b42[_0x5e11c9(0x1086)]&&(_0x95bcc7[_0x5e11c9(0x1086)]=_0x466b42[_0x5e11c9(0x1086)]);})[_0x10adbc(0x129e)](function(){const _0x32fec4=_0x10adbc;_0x95bcc7[_0x32fec4(0x40c)]=![],_0x4781f9[_0x32fec4(0x1980)]({'title':_0x32fec4(0x1977),'msg':_0x32fec4(0xcc0)});});}function _0x216a98(_0x29d45b){_0x19e6e9(function(){const _0x50467c=a0_0x3bb9;_0x95bcc7[_0x50467c(0x61a)][_0x50467c(0x19c7)]=_0x29d45b[_0x50467c(0x19c7)];if(_0x29d45b[_0x50467c(0xcef)])for(let _0x4d19c0=0x0;_0x4d19c0<_0x29d45b[_0x50467c(0xcef)][_0x50467c(0x402)];_0x4d19c0++){_0x95bcc7[_0x50467c(0x61a)][_0x50467c(0xcef)][_0x50467c(0x1f47)](_0x29d45b[_0x50467c(0xcef)][_0x4d19c0]);}if(_0x29d45b['finish']){_0x95bcc7[_0x50467c(0x61a)][_0x50467c(0x25d2)]=!![],_0x95bcc7[_0x50467c(0x61a)][_0x50467c(0xaf4)]=_0x29d45b['affectedRows'],_0x95bcc7[_0x50467c(0x61a)]['failedRows']=_0x95bcc7[_0x50467c(0x61a)][_0x50467c(0xcef)][_0x50467c(0x402)];const _0x54e0b8=_0x95bcc7[_0x50467c(0x61a)][_0x50467c(0x19c7)]-_0x95bcc7['result'][_0x50467c(0xaf4)]-_0x95bcc7[_0x50467c(0x61a)][_0x50467c(0xcef)]['length'];_0x54e0b8&&_0x54e0b8>0x0&&(_0x95bcc7['duplicates'][_0x50467c(0x402)]?_0x95bcc7['result']['duplicatedRows']=_0x54e0b8:_0x95bcc7[_0x50467c(0x61a)]['failedRows']+=_0x54e0b8),_0x95bcc7['result'][_0x50467c(0xbe4)]=_0x2deec6()()[_0x50467c(0x1bb5)](_0x95bcc7[_0x50467c(0x40c)],'seconds');}});}function _0x19fb8e(){const _0x313984=_0x3288b3,_0x1ab6a8=_0x19a814;return _0x1ab6a8[_0x313984(0x1f47)]('contact_import_error'),_0x1ab6a8;}function _0x40933e(){const _0x29e87c=_0x3288b3,_0xb9e4ee=[];for(let _0x1352d7=0x0;_0x1352d7<_0x95bcc7['result'][_0x29e87c(0xcef)][_0x29e87c(0x402)];_0x1352d7+=0x1){const _0x44f723=_0x95bcc7['result']['errors'][_0x1352d7]['row'];_0x44f723['contact_import_error']=_0x95bcc7['result'][_0x29e87c(0xcef)][_0x1352d7][_0x29e87c(0x7fd)],_0xb9e4ee[_0x29e87c(0x1f47)](_0x44f723);}return _0xb9e4ee;}function _0x140707(){const _0x33b02c=_0x3288b3;_0x95bcc7[_0x33b02c(0xaad)]=!![];if(_0x95bcc7[_0x33b02c(0x1086)])return _0xae36fc['system'][_0x33b02c(0xa2e)]({'pid':_0x95bcc7['pid']})[_0x33b02c(0x2945)][_0x33b02c(0x146b)](function(){const _0xc10dab=_0x33b02c;_0x4781f9[_0xc10dab(0x1c75)]({'title':_0xc10dab(0x1f42),'msg':'Import\x20has\x20been\x20stopped!'});})[_0x33b02c(0x129e)](function(){const _0x440ec0=_0x33b02c;_0x4781f9['error']({'title':_0x440ec0(0xce1),'msg':_0x440ec0(0x1177)});});}_0x1bd8df[_0x3288b3(0x16ad)]('$destroy',function(){const _0x4dee36=_0x3288b3;_0x53b0d1['removeAllListeners'](_0x4dee36(0x11b2)+_0x216030);});function _0x2f840b(){const _0x6e2146=_0x3288b3;_0x53b0d1['removeAllListeners'](_0x6e2146(0x11b2)+_0x216030),_0x3f4e3b[_0x6e2146(0x2458)]();}}const _0x33257f=_0x58d558;;_0x372591['$inject']=['$mdDialog',_0x313a4d(0x910),_0x313a4d(0x1fe4),_0x313a4d(0x1662),'contacts',_0x313a4d(0x1324),_0x313a4d(0x247f)];function _0x372591(_0x58e9ab,_0xa513fe,_0x5386b9,_0x2ea8e0,_0x15333a,_0x4903d8,_0x35b2f7){const _0x5c7fdf=_0x313a4d,_0x16fd05=this;_0x16fd05['errors']=[],_0x16fd05[_0x5c7fdf(0x1189)]=_0x5c7fdf(0xd69),_0x16fd05[_0x5c7fdf(0x1662)]=angular['copy'](_0x2ea8e0),_0x16fd05[_0x5c7fdf(0x1324)]=_0x4903d8||[],_0x16fd05[_0x5c7fdf(0x1cb1)]=function(){const _0x3347ac=_0x5c7fdf;_0x16fd05[_0x3347ac(0x1e5d)]?_0x35b2f7[_0x3347ac(0x18c3)][_0x3347ac(0x16b4)]({'fields':_0x3347ac(0x1521),'filter':_0x16fd05[_0x3347ac(0x1e5d)],'ListId':_0x2ea8e0[_0x3347ac(0xb7c)]})[_0x3347ac(0x2945)][_0x3347ac(0x146b)](function(_0x15a076){const _0x3f0acb=_0x3347ac;_0x16fd05[_0x3f0acb(0x1471)]=_0x15a076[_0x3f0acb(0x19c7)];})['catch'](function(_0x5a699b){const _0x48bd6b=_0x3347ac;console[_0x48bd6b(0x1980)](_0x5a699b);}):_0x16fd05[_0x3347ac(0x1471)]=[];},_0x16fd05['showConfirm']=_0x555137,_0x16fd05[_0x5c7fdf(0x13f3)]=_0x44e9f9;function _0x555137(_0xa0102e,_0x1cc927,_0x4e4ce3){const _0xb07983=_0x5c7fdf,_0x42e987=_0x58e9ab['confirm']({'skipHide':!![]})[_0xb07983(0x1189)]('Would\x20you\x20like\x20to\x20merge\x20your\x20contacs?')[_0xb07983(0x199c)]('All\x20unfilled\x20values\x20of\x20the\x20contact\x20#'+_0x4e4ce3['id']+_0xb07983(0x1176)+_0x1cc927['id']+'.')['targetEvent'](_0xa0102e)['ok']('Ok')[_0xb07983(0x6c3)](_0xb07983(0xcf0));_0x58e9ab['show'](_0x42e987)['then'](function(){const _0xa345b4=_0xb07983;return _0x35b2f7[_0xa345b4(0x18c3)]['merge']({'to':_0x4e4ce3['id'],'from':_0x1cc927['id']})[_0xa345b4(0x2945)];})[_0xb07983(0x146b)](function(_0x42631d){const _0x12266b=_0xb07983;_0x58e9ab['hide']({'new':_0x42631d,'to':_0x4e4ce3,'from':_0x1cc927}),_0x3f65c0()['remove'](_0x15333a,{'id':_0x4e4ce3['id']}),_0x3f65c0()['remove'](_0x15333a,{'id':_0x1cc927['id']}),_0x15333a[_0x12266b(0xb3d)](_0x42631d);})[_0xb07983(0x146b)](function(){const _0x2c388e=_0xb07983;_0x5386b9[_0x2c388e(0x1c75)]({'title':_0x2c388e(0x18a5)});})[_0xb07983(0x129e)](function(_0x4e2d7f){const _0x10a3bc=_0xb07983;_0x4e2d7f&&_0x4e2d7f[_0x10a3bc(0x107b)]&&_0x5386b9[_0x10a3bc(0x1980)]({'title':_0x4e2d7f[_0x10a3bc(0x107b)]?_0x10a3bc(0x262a)+_0x4e2d7f['status']+_0x10a3bc(0x1315)+_0x4e2d7f[_0x10a3bc(0x167f)]:_0x10a3bc(0x1583),'msg':_0x4e2d7f[_0x10a3bc(0x524)]?JSON[_0x10a3bc(0x10bb)](_0x4e2d7f['data']):_0x4e2d7f[_0x10a3bc(0xd5f)]()});});}function _0x44e9f9(){const _0x356f33=_0x5c7fdf;_0x58e9ab[_0x356f33(0x2458)]();}}const _0xa844f2=_0x372591;;const _0x51785c=_0x4acfac['p']+_0x313a4d(0x2789);;const _0x271993=_0x4acfac['p']+_0x313a4d(0x185f);;_0x29dc79[_0x313a4d(0x11c2)]=[_0x313a4d(0x921)];function _0x29dc79(_0x2cf106){const _0x3f5806=_0x313a4d;_0x2cf106['state'](_0x3f5806(0x23fa),{'url':_0x3f5806(0x113d),'views':{'content@app':{'templateUrl':_0x51785c,'controller':_0x3f5806(0xd46)}},'resolve':{'contacts':[_0x3f5806(0x362),_0x3f5806(0xa87),_0x3f5806(0x28c8),function(_0xedd43,_0x5e6166,_0x108cc8){const _0x3dfa66=_0x3f5806;return _0x5e6166[_0x3dfa66(0x23e0)]('admin')?_0xedd43[_0x3dfa66(0x2922)](_0x3dfa66(0x17d4),_0x3f65c0()['merge']({'includeAll':!![],'sort':_0x3dfa66(0x12f2),'limit':0xa,'offset':0x0},_0x108cc8)):_0xedd43[_0x3dfa66(0x2922)](_0x3dfa66(0x938),_0x3f65c0()[_0x3dfa66(0x168d)]({'id':_0x5e6166[_0x3dfa66(0xb12)]()[_0x3dfa66(0x209a)],'section':_0x3dfa66(0x1efa),'includeAll':!![],'sort':_0x3dfa66(0x12f2),'limit':0xa,'offset':0x0},_0x108cc8));}],'lists':[_0x3f5806(0x362),_0x3f5806(0xa87),function(_0x59999b,_0x57ef58){const _0x3dc762=_0x3f5806;return _0x57ef58[_0x3dc762(0x23e0)]('admin')?_0x59999b[_0x3dc762(0x2922)](_0x3dc762(0xd64),{'fields':_0x3dc762(0x7a7),'sort':_0x3dc762(0x19eb),'nolimit':!![]}):_0x59999b[_0x3dc762(0x2922)](_0x3dc762(0x938),{'id':_0x57ef58[_0x3dc762(0xb12)]()[_0x3dc762(0x209a)],'section':_0x3dc762(0x174f),'fields':_0x3dc762(0x7a7),'sort':_0x3dc762(0x12f2),'nolimit':!![]});}],'listsMap':[_0x3f5806(0x1324),function(_0x4b3aff){const _0x91d957=_0x3f5806,_0x9369b2={};for(let _0x3157ff=0x0;_0x3157ff<_0x4b3aff['rows'][_0x91d957(0x402)];_0x3157ff++){_0x9369b2[_0x4b3aff[_0x91d957(0x19c7)][_0x3157ff]['id']]=_0x4b3aff[_0x91d957(0x19c7)][_0x3157ff][_0x91d957(0x19eb)];}return _0x9369b2;}],'companies':[_0x3f5806(0x362),_0x3f5806(0xa87),function(_0x20e716,_0x4da37c){const _0x1f2327=_0x3f5806;return _0x4da37c[_0x1f2327(0x23e0)](_0x1f2327(0x174b))?_0x20e716[_0x1f2327(0x2922)](_0x1f2327(0x11ff),{'fields':_0x1f2327(0x7a7),'sort':_0x1f2327(0x19eb),'nolimit':!![]}):_0x20e716['resolve']('userProfile@getResources',{'id':_0x4da37c['getCurrentUser']()[_0x1f2327(0x209a)],'section':'Companies','fields':_0x1f2327(0x7a7),'sort':_0x1f2327(0x19eb),'nolimit':!![]});}],'companiesMap':[_0x3f5806(0x762),function(_0x54fca6){const _0x1587bb=_0x3f5806,_0x5e7ff2={};for(let _0xf727e7=0x0;_0xf727e7<_0x54fca6['rows'][_0x1587bb(0x402)];_0xf727e7++){_0x5e7ff2[_0x54fca6[_0x1587bb(0x19c7)][_0xf727e7]['id']]=_0x54fca6[_0x1587bb(0x19c7)][_0xf727e7]['name'];}return _0x5e7ff2;}],'tags':[_0x3f5806(0x362),_0x3f5806(0xa87),function(_0x2326eb,_0x57de05){const _0x3dbc9a=_0x3f5806;return _0x57de05[_0x3dbc9a(0x23e0)]('admin')?_0x2326eb[_0x3dbc9a(0x2922)](_0x3dbc9a(0x2552),{'fields':_0x3dbc9a(0x7a7),'sort':_0x3dbc9a(0x19eb),'nolimit':!![]}):_0x2326eb['resolve'](_0x3dbc9a(0x938),{'id':_0x57de05['getCurrentUser']()[_0x3dbc9a(0x209a)],'section':'Tags','fields':_0x3dbc9a(0x7a7),'sort':_0x3dbc9a(0x19eb),'nolimit':!![]});}],'userProfile':[_0x3f5806(0x362),_0x3f5806(0xa87),function(_0x182120,_0x3106c6){const _0x4c75ad=_0x3f5806;return _0x182120[_0x4c75ad(0x2922)](_0x4c75ad(0x119a),{'fields':_0x4c75ad(0x227),'id':_0x3106c6['getCurrentUser']()[_0x4c75ad(0x209a)]});}],'userProfileSection':[_0x3f5806(0x362),_0x3f5806(0xa87),function(_0x58bb28,_0x253bfc){const _0x197ed0=_0x3f5806;return _0x58bb28[_0x197ed0(0x2922)](_0x197ed0(0x27be),{'fields':_0x197ed0(0x1e64),'userProfileId':_0x253bfc[_0x197ed0(0xb12)]()[_0x197ed0(0x209a)],'sectionId':0x12f});}]},'authenticate':!![],'permissionId':0x12f,'bodyClass':_0x3f5806(0x16a7)})['state'](_0x3f5806(0x575),{'url':_0x3f5806(0x2028),'params':{'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x271993,'controller':_0x3f5806(0x1ead)}},'resolve':{'contact':[_0x3f5806(0x362),_0x3f5806(0x28c8),function(_0x2f867e,_0x2ae917){const _0x2bad20=_0x3f5806;return _0x2f867e[_0x2bad20(0x2922)](_0x2bad20(0x17d4),{'id':_0x2ae917['id']})['then'](function(_0x59a844){const _0x9a4502=_0x2bad20;return _0x59a844[_0x9a4502(0xc5c)]&&(_0x59a844['dateOfBirth']=new Date(_0x59a844[_0x9a4502(0xc5c)])),_0x59a844;})['catch'](function(_0xc82a7b){console['error'](_0xc82a7b);});}],'hoppers':[_0x3f5806(0x362),'$stateParams',function(_0x3d62bd,_0x4a8645){const _0x145756=_0x3f5806;return _0x3d62bd[_0x145756(0x2922)](_0x145756(0x65d),{'id':_0x4a8645['id'],'fields':_0x145756(0xadb),'sort':_0x145756(0x12f2),'limit':0xa,'offset':0x0});}],'finals':[_0x3f5806(0x362),'$stateParams',function(_0x304c6e,_0x8a47c){const _0x2f1e5a=_0x3f5806;return _0x304c6e[_0x2f1e5a(0x2922)](_0x2f1e5a(0x20a5),{'id':_0x8a47c['id'],'fields':_0x2f1e5a(0x2751),'sort':'-updatedAt','limit':0xa,'offset':0x0});}],'histories':['apiResolver',_0x3f5806(0x28c8),function(_0x5c5c2f,_0x262484){const _0xd8c95f=_0x3f5806;return _0x5c5c2f[_0xd8c95f(0x2922)]('cmContact@getHopperHistories',{'id':_0x262484['id'],'fields':_0xd8c95f(0x25ad),'sort':_0xd8c95f(0x12f2),'limit':0xa,'offset':0x0});}],'jscriptySessions':[_0x3f5806(0x362),_0x3f5806(0x28c8),function(_0x2c8d75,_0x444d61){const _0x2e32b0=_0x3f5806;return _0x2c8d75[_0x2e32b0(0x2922)]('cmContact@getJscriptySessions',{'id':_0x444d61['id'],'fields':_0x2e32b0(0x21b8),'sort':_0x2e32b0(0xc89),'limit':0xa,'offset':0x0});}],'companies':[_0x3f5806(0x362),_0x3f5806(0xa87),function(_0x4c5b64,_0x41c4e1){const _0x83d8cc=_0x3f5806;return _0x41c4e1['hasRole'](_0x83d8cc(0x174b))?_0x4c5b64[_0x83d8cc(0x2922)](_0x83d8cc(0x11ff)):_0x4c5b64[_0x83d8cc(0x2922)]('userProfile@getResources',{'id':_0x41c4e1[_0x83d8cc(0xb12)]()[_0x83d8cc(0x209a)],'section':'Companies'});}],'lists':[_0x3f5806(0x362),_0x3f5806(0xa87),function(_0x11f953,_0x57d7ba){const _0x421fd6=_0x3f5806;return _0x57d7ba[_0x421fd6(0x23e0)]('admin')?_0x11f953[_0x421fd6(0x2922)](_0x421fd6(0xd64),{'fields':_0x421fd6(0x7a7),'sort':_0x421fd6(0x12f2),'nolimit':!![]}):_0x11f953['resolve'](_0x421fd6(0x938),{'id':_0x57d7ba[_0x421fd6(0xb12)]()[_0x421fd6(0x209a)],'section':_0x421fd6(0x174f),'fields':'id,name','sort':_0x421fd6(0x12f2),'nolimit':!![]});}],'customFields':[_0x3f5806(0x362),_0x3f5806(0x1662),function(_0x4c4f0f,_0x3f643e){const _0x54b450=_0x3f5806;return _0x3f643e['ListId']?_0x4c4f0f[_0x54b450(0x2922)](_0x54b450(0xdd4),{'id':_0x3f643e[_0x54b450(0xb7c)]}):null;}],'tags':[_0x3f5806(0x362),'Auth',function(_0x11448b,_0x3affe5){const _0x4a6839=_0x3f5806;return _0x3affe5[_0x4a6839(0x23e0)]('admin')?_0x11448b['resolve']('tag@get'):_0x11448b['resolve'](_0x4a6839(0x938),{'id':_0x3affe5[_0x4a6839(0xb12)]()[_0x4a6839(0x209a)],'section':_0x4a6839(0x2331)});}],'userProfileSection':[_0x3f5806(0x362),_0x3f5806(0xa87),function(_0x597f17,_0x1102a2){const _0x1afdca=_0x3f5806;return _0x597f17[_0x1afdca(0x2922)](_0x1afdca(0x27be),{'fields':_0x1afdca(0x1e64),'userProfileId':_0x1102a2[_0x1afdca(0xb12)]()['userProfileId'],'sectionId':0x12f});}]},'authenticate':!![],'permissionId':0x12f,'bodyClass':_0x3f5806(0x16a7)});}angular['module'](_0x313a4d(0x23fa),[])[_0x313a4d(0x989)](_0x29dc79)[_0x313a4d(0x28f0)](_0x313a4d(0x291c),_0xb0b6cf)['controller'](_0x313a4d(0x17e1),_0x4e4378)[_0x313a4d(0x28f0)](_0x313a4d(0x11f3),_0x14b405)[_0x313a4d(0x28f0)](_0x313a4d(0x2021),_0x5bdb16)[_0x313a4d(0x28f0)](_0x313a4d(0x23bc),_0x4aaf41)[_0x313a4d(0x28f0)]('ImportContactsDialogController',_0x33257f)[_0x313a4d(0x28f0)]('MergeContactDialogController',_0xa844f2);;const _0x4dae68=_0x4acfac['p']+_0x313a4d(0x2067);;_0x39cfb6[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1aa9),_0x313a4d(0x1862),_0x313a4d(0x15fe),_0x313a4d(0x10e8),'$document','$timeout',_0x313a4d(0x214b),'companies','userProfile','userProfileSection',_0x313a4d(0x247f),_0x313a4d(0x216c),_0x313a4d(0x1fe4),_0x313a4d(0xa87),_0x313a4d(0x2690),_0x313a4d(0x15b9)];function _0x39cfb6(_0x479350,_0x23b130,_0x35cab9,_0x5cddf2,_0x1f3c64,_0x432fb0,_0x2e5c83,_0x2e6acb,_0x1e8380,_0x3036c6,_0x4ee040,_0x4743e3,_0x449070,_0x59cf05,_0xf6ad72,_0xec15b5,_0x56f994){const _0x345fd2=_0x313a4d,_0x16d9eb=this;_0x16d9eb['license']=_0xec15b5,_0x16d9eb[_0x345fd2(0x15b9)]=_0x56f994,_0x16d9eb[_0x345fd2(0x2321)]=_0xf6ad72[_0x345fd2(0xb12)](),_0x16d9eb['companies']=_0x1e8380||{'count':0x0,'rows':[]},_0x16d9eb[_0x345fd2(0x26b6)]=_0x3036c6,_0x16d9eb[_0x345fd2(0x1366)]=_0x4ee040&&_0x4ee040['count']==0x1?_0x4ee040[_0x345fd2(0x19c7)][0x0]:null,_0x16d9eb[_0x345fd2(0x2514)]=_0xf6ad72['parseCrudPermissions'](_0x16d9eb[_0x345fd2(0x1366)]?_0x16d9eb['userProfileSection']['crudPermissions']:null),_0x16d9eb['table']=_0x345fd2(0x762),_0x16d9eb[_0x345fd2(0x216a)]='',_0x16d9eb[_0x345fd2(0x214f)]=null,_0x16d9eb[_0x345fd2(0x64e)]=[],_0x16d9eb[_0x345fd2(0x1a56)]={'fields':'createdAt,updatedAt,id,name,phone,vat,fax,companyId,type,website,emailDomain,email,description,sStreet,sPostalCode,sCity,sCountry,street,postalCode,city,country','sort':_0x345fd2(0x12f2),'limit':0xa,'page':0x1},_0x16d9eb[_0x345fd2(0x23f9)]=_0x1af968,_0x16d9eb['gotocontactsgoto']=_0x5d8fc0,_0x16d9eb[_0x345fd2(0xf0a)]=_0xbcc8b0,_0x16d9eb[_0x345fd2(0x1c75)]=_0x58161a,_0x16d9eb[_0x345fd2(0x2855)]=_0x2873e1,_0x16d9eb['createOrEditCompany']=_0x845115,_0x16d9eb['deleteCompany']=_0x4a77a4,_0x16d9eb['exportSelectedCompanies']=_0x5573ce,_0x16d9eb[_0x345fd2(0x24b2)]=_0x5e7ccc,_0x16d9eb[_0x345fd2(0x2805)]=_0x5ab3cf,_0x16d9eb['selectAllCompanies']=_0x127b4d;function _0x1af968(_0x4727de){const _0x15772e=_0x345fd2;_0x35cab9['go'](_0x15772e(0xe3c),{'id':_0x4727de['id'],'company':_0x4727de,'crudPermissions':_0x16d9eb[_0x15772e(0x2514)]});}function _0x5d8fc0(_0x423116){const _0x58e8dc=_0x345fd2;if(_0xf6ad72[_0x58e8dc(0x23e0)](_0x58e8dc(0x174b)))_0x35cab9['go'](_0x58e8dc(0x23fa),{'CompanyId':_0x423116['id']});else return _0x4743e3['userProfileSection'][_0x58e8dc(0x16b4)]({'userProfileId':_0xf6ad72[_0x58e8dc(0xb12)]()[_0x58e8dc(0x209a)],'sectionId':0x12f})[_0x58e8dc(0x2945)][_0x58e8dc(0x146b)](function(_0x9c0d90){const _0x47e0d1=_0x58e8dc,_0x23250d=_0x9c0d90&&_0x9c0d90[_0x47e0d1(0x19c7)]?_0x9c0d90[_0x47e0d1(0x19c7)][0x0]:null;_0x23250d&&_0x23250d[_0x47e0d1(0x193e)]?_0x35cab9['go'](_0x47e0d1(0x23fa),{'CompanyId':_0x423116['id']}):_0x59cf05[_0x47e0d1(0x271e)]({'title':_0x2e6acb[_0x47e0d1(0xde)](_0x47e0d1(0xb27)),'msg':_0x2e6acb[_0x47e0d1(0xde)](_0x47e0d1(0x174a))});})[_0x58e8dc(0x129e)](function(_0x58f92a){const _0x376a6f=_0x58e8dc;_0x59cf05['error']({'title':_0x58f92a['status']?_0x376a6f(0x262a)+_0x58f92a[_0x376a6f(0x107b)]+'\x20-\x20'+_0x58f92a[_0x376a6f(0x167f)]:_0x376a6f(0x698),'msg':_0x58f92a['status']?JSON[_0x376a6f(0x10bb)](_0x58f92a[_0x376a6f(0x524)]):_0x58f92a[_0x376a6f(0xd5f)]()});});}function _0xbcc8b0(_0xd03003,_0x2c9e51){const _0x63511e=_0x345fd2,_0x58c8be=_0x1f3c64[_0x63511e(0x1e8a)]()[_0x63511e(0x1189)](_0x63511e(0xdb2)+_0x3f65c0()[_0x63511e(0x20d1)](_0x63511e(0x21ba))+'?')['htmlContent'](''+(_0xd03003[_0x63511e(0x19eb)]||_0x63511e(0x21ba))+_0x63511e(0x252f)+_0x63511e(0xe01))[_0x63511e(0x4bd)](_0x63511e(0x953))['targetEvent'](_0x2c9e51)['ok']('OK')[_0x63511e(0x6c3)](_0x63511e(0x39a));_0x1f3c64['show'](_0x58c8be)[_0x63511e(0x146b)](function(){_0x4a77a4(_0xd03003);},function(){const _0x38b226=_0x63511e;console[_0x38b226(0x1a74)]('CANCEL');});}let _0x8f9191=!![],_0x8619c0=0x1;_0x479350[_0x345fd2(0x21e8)](_0x345fd2(0x2669),function(_0x3abd5a,_0x4130a5){const _0x50d32c=_0x345fd2;_0x8f9191?_0x2e5c83(function(){_0x8f9191=![];}):(!_0x4130a5&&(_0x8619c0=_0x16d9eb[_0x50d32c(0x1a56)][_0x50d32c(0x844)]),_0x3abd5a!==_0x4130a5&&(_0x16d9eb['query'][_0x50d32c(0x844)]=0x1),!_0x3abd5a&&(_0x16d9eb[_0x50d32c(0x1a56)][_0x50d32c(0x844)]=_0x8619c0),_0x16d9eb[_0x50d32c(0x2855)]());});function _0x58161a(_0x548e95){const _0x58103c=_0x345fd2;_0x16d9eb[_0x58103c(0x762)]=_0x548e95||{'count':0x0,'rows':[]};}function _0x2873e1(){const _0x36db39=_0x345fd2;_0x16d9eb[_0x36db39(0x1a56)]['offset']=(_0x16d9eb[_0x36db39(0x1a56)][_0x36db39(0x844)]-0x1)*_0x16d9eb[_0x36db39(0x1a56)][_0x36db39(0x221e)],_0xf6ad72[_0x36db39(0x23e0)](_0x36db39(0x174b))?_0x16d9eb[_0x36db39(0xb9c)]=_0x4743e3['cmCompany'][_0x36db39(0x16b4)](_0x16d9eb[_0x36db39(0x1a56)],_0x58161a)['$promise']:(_0x16d9eb[_0x36db39(0x1a56)]['id']=_0x16d9eb[_0x36db39(0x26b6)]['id'],_0x16d9eb[_0x36db39(0x1a56)]['section']=_0x36db39(0x1a5e),_0x16d9eb[_0x36db39(0xb9c)]=_0x4743e3[_0x36db39(0x26b6)]['getResources'](_0x16d9eb[_0x36db39(0x1a56)],_0x58161a)[_0x36db39(0x2945)]);}function _0x845115(_0x1c12be,_0x1bc93e){const _0xc10c22=_0x345fd2;_0x1f3c64[_0xc10c22(0x2615)]({'controller':_0xc10c22(0x39d),'controllerAs':'vm','templateUrl':_0x4dae68,'parent':angular['element'](_0x432fb0[_0xc10c22(0x2586)]),'targetEvent':_0x1c12be,'clickOutsideToClose':!![],'locals':{'company':_0x1bc93e,'companies':_0x16d9eb[_0xc10c22(0x762)][_0xc10c22(0x19c7)],'license':_0x16d9eb[_0xc10c22(0x2690)],'setting':_0x16d9eb[_0xc10c22(0x15b9)],'crudPermissions':_0x16d9eb[_0xc10c22(0x2514)]}});}function _0x4a77a4(_0x4a92c0){const _0x5b5bcc=_0x345fd2;_0x4743e3[_0x5b5bcc(0x134d)][_0x5b5bcc(0x1fac)]({'id':_0x4a92c0['id']})['$promise']['then'](function(){const _0x803b93=_0x5b5bcc;_0x3f65c0()['remove'](_0x16d9eb[_0x803b93(0x762)]['rows'],{'id':_0x4a92c0['id']}),_0x16d9eb[_0x803b93(0x762)]['count']-=0x1,!_0x16d9eb[_0x803b93(0x762)]['rows']['length']&&_0x16d9eb['getCompanies'](),_0x59cf05[_0x803b93(0x1c75)]({'title':_0x3f65c0()[_0x803b93(0x20d1)](_0x803b93(0x26c9))+_0x803b93(0x201c),'msg':_0x4a92c0[_0x803b93(0x19eb)]?_0x4a92c0['name']+_0x803b93(0x23e3):''});})[_0x5b5bcc(0x129e)](function(_0x168875){const _0x34163f=_0x5b5bcc;if(_0x168875[_0x34163f(0x524)]&&_0x168875[_0x34163f(0x524)][_0x34163f(0xcef)]&&_0x168875['data'][_0x34163f(0xcef)][_0x34163f(0x402)]){_0x16d9eb['errors']=_0x168875[_0x34163f(0x524)][_0x34163f(0xcef)]||[{'message':_0x168875[_0x34163f(0xd5f)](),'type':'SYSTEM:DELETEcmCompany'}];for(let _0x442797=0x0;_0x442797<_0x168875[_0x34163f(0x524)][_0x34163f(0xcef)][_0x34163f(0x402)];_0x442797++){_0x59cf05[_0x34163f(0x1980)]({'title':_0x168875[_0x34163f(0x524)][_0x34163f(0xcef)][_0x442797][_0x34163f(0x1142)],'msg':_0x168875[_0x34163f(0x524)][_0x34163f(0xcef)][_0x442797][_0x34163f(0x7fd)]});}}else _0x59cf05[_0x34163f(0x1980)]({'title':_0x168875['status']?_0x34163f(0x262a)+_0x168875[_0x34163f(0x107b)]+_0x34163f(0x1315)+_0x168875[_0x34163f(0x167f)]:_0x34163f(0x28be),'msg':_0x168875['data']?JSON[_0x34163f(0x10bb)](_0x168875[_0x34163f(0x524)][_0x34163f(0x7fd)]):_0x168875[_0x34163f(0x7fd)]||_0x168875[_0x34163f(0xd5f)]()});});}function _0x5573ce(){const _0x36ee3e=_0x345fd2,_0x186f0a=angular['copy'](_0x16d9eb[_0x36ee3e(0x64e)]);return _0x16d9eb[_0x36ee3e(0x64e)]=[],_0x186f0a;}function _0x5e7ccc(_0x2ba187){const _0xa48d02=_0x345fd2,_0xbac7b8=_0x1f3c64['confirm']()[_0xa48d02(0x1189)](_0xa48d02(0x28ab))[_0xa48d02(0x1cbe)](_0xa48d02(0x16d3)+_0x16d9eb[_0xa48d02(0x64e)][_0xa48d02(0x402)]+'\x20selected'+_0xa48d02(0xe01))[_0xa48d02(0x4bd)](_0xa48d02(0x27ed))['targetEvent'](_0x2ba187)['ok']('OK')[_0xa48d02(0x6c3)](_0xa48d02(0x39a));_0x1f3c64[_0xa48d02(0x2615)](_0xbac7b8)['then'](function(){const _0x14491b=_0xa48d02;_0x16d9eb[_0x14491b(0x64e)]['forEach'](function(_0x52ebb9){_0x4a77a4(_0x52ebb9);}),_0x16d9eb[_0x14491b(0x64e)]=[];});}function _0x5ab3cf(){const _0x5e9ab1=_0x345fd2;_0x16d9eb[_0x5e9ab1(0x64e)]=[];}function _0x127b4d(){const _0x4123e8=_0x345fd2;_0x16d9eb[_0x4123e8(0x64e)]=_0x16d9eb['companies'][_0x4123e8(0x19c7)];}}const _0x4396c4=_0x39cfb6;;_0x42cd98['$inject']=[_0x313a4d(0x910),'$state',_0x313a4d(0xd08),_0x313a4d(0x10e8),'$q',_0x313a4d(0x214b),_0x313a4d(0x1fe4),'companies','company','api','Auth',_0x313a4d(0x2690),_0x313a4d(0x15b9),'crudPermissions'];function _0x42cd98(_0x1a04e8,_0x1afb57,_0x2cdafa,_0x48cd94,_0xaef8e4,_0x2a63cb,_0x1fc87a,_0x202175,_0x56f866,_0x270ccb,_0x38d6b6,_0x3f3136,_0x49c04b,_0x56442d){const _0x20b1cf=_0x313a4d,_0x30cc04=this;_0x30cc04['currentUser']=_0x38d6b6[_0x20b1cf(0xb12)](),_0x30cc04[_0x20b1cf(0xcef)]=[],_0x30cc04[_0x20b1cf(0x15b9)]=_0x49c04b,_0x30cc04[_0x20b1cf(0x2690)]=_0x3f3136,_0x30cc04[_0x20b1cf(0x2514)]=_0x56442d,_0x30cc04[_0x20b1cf(0x855)]={},_0x30cc04[_0x20b1cf(0x2251)]=_0x30cc04[_0x20b1cf(0x15b9)]&&_0x30cc04[_0x20b1cf(0x15b9)][_0x20b1cf(0x976)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x30cc04[_0x20b1cf(0x1189)]=_0x20b1cf(0x1b6e),_0x30cc04['company']=angular['copy'](_0x56f866),_0x30cc04[_0x20b1cf(0x762)]=_0x202175,_0x30cc04['newCompany']=![];!_0x30cc04['company']&&(_0x30cc04[_0x20b1cf(0x21ba)]={},_0x30cc04[_0x20b1cf(0x1189)]='CONTACTMANAGER.NEW_COMPANY',_0x30cc04[_0x20b1cf(0x4b6)]=!![]);_0x30cc04[_0x20b1cf(0xa8c)]=_0x4f335d,_0x30cc04['saveCompany']=_0x20b07c,_0x30cc04[_0x20b1cf(0xe8a)]=_0x1bcb48,_0x30cc04[_0x20b1cf(0xe73)]=_0x328637,_0x30cc04['closeDialog']=_0x598355;function _0x4f335d(){const _0x936a24=_0x20b1cf;_0x30cc04[_0x936a24(0xcef)]=[],_0x270ccb[_0x936a24(0x134d)][_0x936a24(0x1e3)](_0x30cc04[_0x936a24(0x21ba)])[_0x936a24(0x2945)]['then'](function(_0xb56501){const _0x4ef97a=_0x936a24;_0x30cc04[_0x4ef97a(0x762)][_0x4ef97a(0xb3d)](_0xb56501['toJSON']()),_0x1fc87a[_0x4ef97a(0x1c75)]({'title':_0x4ef97a(0x1d67),'msg':_0x30cc04[_0x4ef97a(0x21ba)][_0x4ef97a(0x19eb)]?_0x30cc04[_0x4ef97a(0x21ba)][_0x4ef97a(0x19eb)]+_0x4ef97a(0x1386):''}),_0x598355(_0xb56501);})['catch'](function(_0x176dcf){const _0x1550f7=_0x936a24;if(_0x176dcf[_0x1550f7(0x524)]&&_0x176dcf[_0x1550f7(0x524)]['errors']&&_0x176dcf[_0x1550f7(0x524)]['errors'][_0x1550f7(0x402)]){_0x30cc04['errors']=_0x176dcf[_0x1550f7(0x524)][_0x1550f7(0xcef)]||[{'message':_0x176dcf[_0x1550f7(0xd5f)](),'type':_0x1550f7(0x750)}];for(let _0x49e366=0x0;_0x49e366<_0x176dcf[_0x1550f7(0x524)][_0x1550f7(0xcef)][_0x1550f7(0x402)];_0x49e366+=0x1){_0x1fc87a[_0x1550f7(0x1980)]({'title':_0x176dcf[_0x1550f7(0x524)]['errors'][_0x49e366][_0x1550f7(0x1142)],'msg':_0x176dcf['data']['errors'][_0x49e366][_0x1550f7(0x7fd)]});}}else _0x1fc87a[_0x1550f7(0x1980)]({'title':_0x176dcf[_0x1550f7(0x107b)]?'API:'+_0x176dcf[_0x1550f7(0x107b)]+'\x20-\x20'+_0x176dcf[_0x1550f7(0x167f)]:_0x1550f7(0x750),'msg':_0x176dcf['data']?JSON[_0x1550f7(0x10bb)](_0x176dcf['data'][_0x1550f7(0x7fd)]):_0x176dcf[_0x1550f7(0xd5f)]()});});}function _0x20b07c(){const _0x4d6d0d=_0x20b1cf;_0x30cc04[_0x4d6d0d(0xcef)]=[],_0x270ccb[_0x4d6d0d(0x134d)][_0x4d6d0d(0x18e1)]({'id':_0x30cc04[_0x4d6d0d(0x21ba)]['id']},_0x30cc04[_0x4d6d0d(0x21ba)])['$promise'][_0x4d6d0d(0x146b)](function(_0x43026f){const _0x101dd1=_0x4d6d0d,_0x23115c=_0x3f65c0()[_0x101dd1(0xc84)](_0x30cc04['companies'],{'id':_0x43026f['id']});_0x23115c&&_0x3f65c0()[_0x101dd1(0x168d)](_0x23115c,_0x3f65c0()[_0x101dd1(0x40e)](_0x43026f[_0x101dd1(0x2488)](),_0x3f65c0()[_0x101dd1(0x627)](_0x23115c))),_0x1fc87a[_0x101dd1(0x1c75)]({'title':_0x101dd1(0x2285),'msg':_0x30cc04[_0x101dd1(0x21ba)]['name']?_0x30cc04[_0x101dd1(0x21ba)][_0x101dd1(0x19eb)]+'\x20has\x20been\x20saved!':''}),_0x598355(_0x43026f);})[_0x4d6d0d(0x129e)](function(_0x59a967){const _0x6fa307=_0x4d6d0d;if(_0x59a967[_0x6fa307(0x524)]&&_0x59a967[_0x6fa307(0x524)]['errors']&&_0x59a967[_0x6fa307(0x524)][_0x6fa307(0xcef)][_0x6fa307(0x402)]){_0x30cc04['errors']=_0x59a967['data'][_0x6fa307(0xcef)]||[{'message':_0x59a967[_0x6fa307(0xd5f)](),'type':'api.cmCompany.update'}];for(let _0x31c12f=0x0;_0x31c12f<_0x59a967[_0x6fa307(0x524)]['errors'][_0x6fa307(0x402)];_0x31c12f++){_0x1fc87a[_0x6fa307(0x1980)]({'title':_0x59a967[_0x6fa307(0x524)][_0x6fa307(0xcef)][_0x31c12f][_0x6fa307(0x1142)],'msg':_0x59a967['data']['errors'][_0x31c12f]['message']});}}else _0x1fc87a[_0x6fa307(0x1980)]({'title':_0x59a967[_0x6fa307(0x107b)]?_0x6fa307(0x262a)+_0x59a967[_0x6fa307(0x107b)]+_0x6fa307(0x1315)+_0x59a967[_0x6fa307(0x167f)]:'api.cmCompany.update','msg':_0x59a967[_0x6fa307(0x524)]?JSON[_0x6fa307(0x10bb)](_0x59a967[_0x6fa307(0x524)][_0x6fa307(0x7fd)]):_0x59a967[_0x6fa307(0xd5f)]()});});}function _0x1bcb48(_0x28adeb){const _0x177d97=_0x20b1cf;_0x30cc04[_0x177d97(0xcef)]=[];const _0x2c92e3=_0x48cd94[_0x177d97(0x1e8a)]()[_0x177d97(0x1189)]('Are\x20you\x20sure?')[_0x177d97(0x80f)](_0x177d97(0x1e85))[_0x177d97(0x4bd)]('Delete\x20Company')['ok'](_0x177d97(0x25de))['cancel'](_0x177d97(0xcf0))['targetEvent'](_0x28adeb);_0x48cd94[_0x177d97(0x2615)](_0x2c92e3)[_0x177d97(0x146b)](function(){const _0x6f0c82=_0x177d97;_0x270ccb[_0x6f0c82(0x134d)][_0x6f0c82(0x1fac)]({'id':_0x30cc04[_0x6f0c82(0x21ba)]['id']})[_0x6f0c82(0x2945)][_0x6f0c82(0x146b)](function(){const _0x3705fb=_0x6f0c82;_0x3f65c0()[_0x3705fb(0x2640)](_0x30cc04[_0x3705fb(0x762)],{'id':_0x30cc04['company']['id']}),_0x1fc87a[_0x3705fb(0x1c75)]({'title':_0x3705fb(0x1431),'msg':(_0x30cc04[_0x3705fb(0x21ba)][_0x3705fb(0x19eb)]||'company')+_0x3705fb(0x23e3)}),_0x598355(_0x30cc04[_0x3705fb(0x21ba)]);})[_0x6f0c82(0x129e)](function(_0x4256a0){const _0x2a973c=_0x6f0c82;if(_0x4256a0[_0x2a973c(0x524)]&&_0x4256a0[_0x2a973c(0x524)]['errors']&&_0x4256a0[_0x2a973c(0x524)][_0x2a973c(0xcef)][_0x2a973c(0x402)]){_0x30cc04[_0x2a973c(0xcef)]=_0x4256a0[_0x2a973c(0x524)][_0x2a973c(0xcef)]||[{'message':_0x4256a0['toString'](),'type':_0x2a973c(0x23f)}];for(let _0x266728=0x0;_0x266728<_0x4256a0['data'][_0x2a973c(0xcef)][_0x2a973c(0x402)];_0x266728++){_0x1fc87a[_0x2a973c(0x1980)]({'title':_0x4256a0[_0x2a973c(0x524)]['errors'][_0x266728][_0x2a973c(0x1142)],'msg':_0x4256a0[_0x2a973c(0x524)]['errors'][_0x266728][_0x2a973c(0x7fd)]});}}else _0x1fc87a[_0x2a973c(0x1980)]({'title':_0x4256a0[_0x2a973c(0x107b)]?'API:'+_0x4256a0[_0x2a973c(0x107b)]+'\x20-\x20'+_0x4256a0['statusText']:'api.cmCompany.delete','msg':_0x4256a0[_0x2a973c(0x524)]?JSON[_0x2a973c(0x10bb)](_0x4256a0[_0x2a973c(0x524)][_0x2a973c(0x7fd)]):_0x4256a0[_0x2a973c(0x7fd)]||_0x4256a0[_0x2a973c(0xd5f)]()});});},function(){});}function _0x328637(_0x2af34f){return _0x2af34f===null?undefined:new Date(_0x2af34f);}function _0x598355(_0x127b84){const _0x4afbe4=_0x20b1cf;_0x48cd94[_0x4afbe4(0x2458)](_0x127b84);}}const _0x47d488=_0x42cd98;;_0x487bbe[_0x313a4d(0x11c2)]=['$state',_0x313a4d(0xd08),_0x313a4d(0x10e8),_0x313a4d(0x4d8),_0x313a4d(0x214b),_0x313a4d(0x2690),'setting','api','toasty',_0x313a4d(0xa87),_0x313a4d(0x21ba),'userProfileSection'];function _0x487bbe(_0x53eccd,_0x5f5b3e,_0x4c041b,_0x4b4774,_0x4c0c8b,_0x3c0e09,_0x1555fd,_0x4cc516,_0x3a9ac5,_0xf20537,_0x4eb016,_0x5d0bee){const _0x4ff07d=_0x313a4d,_0x46d40f=this;_0x46d40f['currentUser']=_0xf20537[_0x4ff07d(0xb12)](),_0x46d40f[_0x4ff07d(0x2690)]=_0x3c0e09,_0x46d40f[_0x4ff07d(0x15b9)]=_0x1555fd,_0x46d40f['passwordPattern']=_0x46d40f[_0x4ff07d(0x15b9)][_0x4ff07d(0x976)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x46d40f[_0x4ff07d(0x1002)]=_0x5f5b3e[_0x4ff07d(0x2414)]()+_0x4ff07d(0xb0e)+_0x5f5b3e['host'](),_0x46d40f[_0x4ff07d(0x21ba)]=_0x4eb016||_0x53eccd['params'][_0x4ff07d(0x21ba)]||{},_0x46d40f[_0x4ff07d(0x1366)]=_0x5d0bee&&_0x5d0bee[_0x4ff07d(0x51c)]==0x1?_0x5d0bee[_0x4ff07d(0x19c7)][0x0]:null,_0x46d40f[_0x4ff07d(0x2514)]=_0xf20537[_0x4ff07d(0xe60)](_0x46d40f[_0x4ff07d(0x1366)]?_0x46d40f[_0x4ff07d(0x1366)][_0x4ff07d(0x2514)]:null),_0x46d40f['hasModulePermissions']={},_0x46d40f[_0x4ff07d(0x1b09)]=_0x53eccd[_0x4ff07d(0x16a)][_0x4ff07d(0x13a3)]||0x0,_0x46d40f[_0x4ff07d(0x3a9)]=_0x217a2e,_0x46d40f[_0x4ff07d(0x861)]=_0x3a9ac5[_0x4ff07d(0x271e)],_0x46d40f['gotoCompanies']=_0x3faebc,_0x46d40f['saveCompany']=_0x4fc3fc;function _0x217a2e(_0x1bb0c3){const _0x15adbf=_0x4ff07d;if(_0xf20537[_0x15adbf(0x23e0)](_0x15adbf(0x174b)))_0x53eccd['go']('app.contactmanager.contacts',{'CompanyId':_0x1bb0c3['id']});else return _0x4cc516[_0x15adbf(0x1366)][_0x15adbf(0x16b4)]({'userProfileId':_0xf20537['getCurrentUser']()[_0x15adbf(0x209a)],'sectionId':0x12f})[_0x15adbf(0x2945)][_0x15adbf(0x146b)](function(_0xeedfbc){const _0x49ec20=_0x15adbf,_0x100313=_0xeedfbc&&_0xeedfbc[_0x49ec20(0x19c7)]?_0xeedfbc[_0x49ec20(0x19c7)][0x0]:null;_0x100313&&_0x100313[_0x49ec20(0x193e)]?_0x53eccd['go'](_0x49ec20(0x23fa),{'CompanyId':_0x1bb0c3['id']}):_0x3a9ac5[_0x49ec20(0x271e)]({'title':_0x4c0c8b[_0x49ec20(0xde)](_0x49ec20(0xb27)),'msg':_0x4c0c8b['instant'](_0x49ec20(0x174a))});})['catch'](function(_0x256f8b){const _0x1809a9=_0x15adbf;_0x3a9ac5[_0x1809a9(0x1980)]({'title':_0x256f8b['status']?_0x1809a9(0x262a)+_0x256f8b[_0x1809a9(0x107b)]+_0x1809a9(0x1315)+_0x256f8b[_0x1809a9(0x167f)]:_0x1809a9(0x698),'msg':_0x256f8b[_0x1809a9(0x107b)]?JSON[_0x1809a9(0x10bb)](_0x256f8b[_0x1809a9(0x524)]):_0x256f8b[_0x1809a9(0xd5f)]()});});}function _0x3faebc(){const _0x5eedea=_0x4ff07d;_0x53eccd['go'](_0x5eedea(0xd99),{},{'reload':_0x5eedea(0xd99)});}function _0x4fc3fc(){const _0x11462e=_0x4ff07d;_0x4cc516[_0x11462e(0x134d)][_0x11462e(0x18e1)]({'id':_0x46d40f[_0x11462e(0x21ba)]['id']},_0x46d40f[_0x11462e(0x21ba)])[_0x11462e(0x2945)][_0x11462e(0x146b)](function(){const _0x4ead50=_0x11462e;_0x3a9ac5['success']({'title':'Company\x20updated!','msg':_0x46d40f['company'][_0x4ead50(0x19eb)]?_0x46d40f[_0x4ead50(0x21ba)][_0x4ead50(0x19eb)]+'\x20has\x20been\x20updated!':''});})[_0x11462e(0x129e)](function(_0x4416bf){const _0x399b6b=_0x11462e;_0x3a9ac5[_0x399b6b(0x1980)]({'title':_0x4416bf[_0x399b6b(0x107b)]?_0x399b6b(0x262a)+_0x4416bf[_0x399b6b(0x107b)]+_0x399b6b(0x1315)+_0x4416bf['statusText']:_0x399b6b(0xf10),'msg':_0x4416bf[_0x399b6b(0x524)]?JSON[_0x399b6b(0x10bb)](_0x4416bf[_0x399b6b(0x524)]):_0x4416bf[_0x399b6b(0xd5f)]()});});}}const _0x41350e=_0x487bbe;;_0x272844[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1862),'$location',_0x313a4d(0x10e8),'$q',_0x313a4d(0x214b),'toasty',_0x313a4d(0x19ba),_0x313a4d(0x200a),_0x313a4d(0x247f),_0x313a4d(0xa87),_0x313a4d(0x2690),_0x313a4d(0x15b9),_0x313a4d(0x2514)];function _0x272844(_0x3000d7,_0x478f92,_0x1b78dc,_0x1869d4,_0x2320b6,_0x870c63,_0x39a4e2,_0x15030a,_0x33070e,_0x40751b,_0x1b550a,_0x2cef60,_0x4905f4,_0x4d7afb){const _0x48748d=_0x313a4d,_0x38f1a5=this;_0x38f1a5[_0x48748d(0x2321)]=_0x1b550a['getCurrentUser'](),_0x38f1a5[_0x48748d(0xcef)]=[],_0x38f1a5[_0x48748d(0x15b9)]=_0x4905f4,_0x38f1a5[_0x48748d(0x2690)]=_0x2cef60,_0x38f1a5[_0x48748d(0x2514)]=_0x4d7afb,_0x38f1a5[_0x48748d(0x855)]={},_0x38f1a5[_0x48748d(0x2251)]=_0x38f1a5[_0x48748d(0x15b9)]&&_0x38f1a5[_0x48748d(0x15b9)][_0x48748d(0x976)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x38f1a5[_0x48748d(0x1189)]=_0x48748d(0x11e2),_0x38f1a5[_0x48748d(0x20f5)]={'animation':0x320,'sort':!![],'onSort':function(){const _0x112f5e=_0x48748d;_0x3000d7[_0x112f5e(0x1f89)][_0x112f5e(0x1c96)]=![];}},_0x38f1a5[_0x48748d(0x200a)]=_0x33070e,_0x38f1a5[_0x48748d(0x19ba)]=_0x15030a,_0x38f1a5[_0x48748d(0x1f16)]=![];!_0x38f1a5[_0x48748d(0x200a)]&&(_0x38f1a5['globalCustomField']={'type':_0x48748d(0xa8d),'actionType':_0x48748d(0xe6)},_0x38f1a5[_0x48748d(0x1189)]='CONTACTMANAGER.NEW_GLOBALCUSTOMFIELD',_0x38f1a5[_0x48748d(0x1f16)]=!![]);_0x3000d7[_0x48748d(0x21e8)](_0x48748d(0x419),function(_0x5f45e1,_0xec0ae0){const _0x561165=_0x48748d;if(_0x5f45e1!==_0xec0ae0)switch(_0x5f45e1){case _0x561165(0xa8d):_0x38f1a5[_0x561165(0x200a)][_0x561165(0x81b)]='';break;case _0x561165(0xa5f):_0x38f1a5[_0x561165(0x200a)]['values']=[];break;default:}}),_0x38f1a5['addNewGlobalCustomField']=_0x307534,_0x38f1a5[_0x48748d(0x21e1)]=_0x2ecb77,_0x38f1a5['deleteGlobalCustomField']=_0x159736,_0x38f1a5[_0x48748d(0xe73)]=_0x23d276,_0x38f1a5['addItem']=_0x1d2559,_0x38f1a5[_0x48748d(0x246d)]=_0x299877,_0x38f1a5['removeItems']=_0x4469a3,_0x38f1a5[_0x48748d(0x13f3)]=_0x4c676c;function _0x1d2559(_0x56cb26){const _0x44d8a0=_0x48748d;_0x56cb26[_0x44d8a0(0x1f47)]({'value':_0x44d8a0(0x17e0)}),_0x3000d7[_0x44d8a0(0x1f89)]['$pristine']=![];}function _0x299877(_0x3b7f81,_0xbb161){const _0x3c2af2=_0x48748d;_0x3b7f81[_0x3c2af2(0x1f7d)](_0xbb161,0x1),_0x3000d7[_0x3c2af2(0x1f89)]['$pristine']=![];}function _0x4469a3(_0x3847b7){const _0x1e2f66=_0x48748d,_0x108198=_0x3847b7[_0x1e2f66(0x402)];for(let _0x13ba32=0x0;_0x13ba32<_0x108198;_0x13ba32++){_0x3847b7[_0x1e2f66(0x1f7d)](0x0,0x1);}_0x3000d7['globalCustomFieldForm'][_0x1e2f66(0x1c96)]=![];}function _0x307534(){const _0x168c81=_0x48748d;_0x38f1a5[_0x168c81(0xcef)]=[],_0x40751b['cmCustomField'][_0x168c81(0x1e3)](_0x38f1a5[_0x168c81(0x200a)])[_0x168c81(0x2945)]['then'](function(_0x2a5c0d){const _0x3a2c86=_0x168c81;_0x38f1a5[_0x3a2c86(0x19ba)][_0x3a2c86(0xb3d)](_0x2a5c0d[_0x3a2c86(0x2488)]()),_0x39a4e2[_0x3a2c86(0x1c75)]({'title':_0x3a2c86(0x78c),'msg':_0x38f1a5[_0x3a2c86(0x200a)][_0x3a2c86(0x19eb)]?_0x38f1a5[_0x3a2c86(0x200a)][_0x3a2c86(0x19eb)]+_0x3a2c86(0x1386):''}),_0x4c676c(_0x2a5c0d);})['catch'](function(_0x25636e){const _0x542dad=_0x168c81;if(_0x25636e['data']&&_0x25636e[_0x542dad(0x524)][_0x542dad(0xcef)]&&_0x25636e[_0x542dad(0x524)]['errors'][_0x542dad(0x402)]){_0x38f1a5[_0x542dad(0xcef)]=_0x25636e[_0x542dad(0x524)][_0x542dad(0xcef)]||[{'message':_0x25636e['toString'](),'type':_0x542dad(0x1807)}];for(let _0x173cc2=0x0;_0x173cc2<_0x25636e[_0x542dad(0x524)]['errors'][_0x542dad(0x402)];_0x173cc2+=0x1){_0x39a4e2[_0x542dad(0x1980)]({'title':_0x25636e[_0x542dad(0x524)][_0x542dad(0xcef)][_0x173cc2][_0x542dad(0x1142)],'msg':_0x25636e[_0x542dad(0x524)][_0x542dad(0xcef)][_0x173cc2][_0x542dad(0x7fd)]});}}else _0x39a4e2[_0x542dad(0x1980)]({'title':_0x25636e[_0x542dad(0x107b)]?_0x542dad(0x262a)+_0x25636e[_0x542dad(0x107b)]+_0x542dad(0x1315)+_0x25636e[_0x542dad(0x167f)]:_0x542dad(0x1807),'msg':_0x25636e[_0x542dad(0x524)]?JSON[_0x542dad(0x10bb)](_0x25636e[_0x542dad(0x524)][_0x542dad(0x7fd)]):_0x25636e[_0x542dad(0xd5f)]()});});}function _0x2ecb77(){const _0x3e7086=_0x48748d;_0x38f1a5[_0x3e7086(0xcef)]=[],_0x40751b[_0x3e7086(0x14a9)][_0x3e7086(0x18e1)]({'id':_0x38f1a5['globalCustomField']['id']},_0x38f1a5[_0x3e7086(0x200a)])[_0x3e7086(0x2945)][_0x3e7086(0x146b)](function(_0x278ee9){const _0x1d811b=_0x3e7086,_0xfc8a25=_0x3f65c0()[_0x1d811b(0xc84)](_0x38f1a5['globalCustomFields'],{'id':_0x278ee9['id']});_0xfc8a25&&_0x3f65c0()[_0x1d811b(0x168d)](_0xfc8a25,_0x3f65c0()['pick'](_0x278ee9[_0x1d811b(0x2488)](),_0x3f65c0()[_0x1d811b(0x627)](_0xfc8a25))),_0x39a4e2['success']({'title':_0x1d811b(0x1edd),'msg':_0x38f1a5[_0x1d811b(0x200a)]['name']?_0x38f1a5[_0x1d811b(0x200a)][_0x1d811b(0x19eb)]+_0x1d811b(0x24db):''}),_0x4c676c(_0x278ee9);})[_0x3e7086(0x129e)](function(_0x1197e9){const _0x52278b=_0x3e7086;if(_0x1197e9[_0x52278b(0x524)]&&_0x1197e9[_0x52278b(0x524)][_0x52278b(0xcef)]&&_0x1197e9[_0x52278b(0x524)][_0x52278b(0xcef)][_0x52278b(0x402)]){_0x38f1a5[_0x52278b(0xcef)]=_0x1197e9[_0x52278b(0x524)][_0x52278b(0xcef)]||[{'message':_0x1197e9['toString'](),'type':_0x52278b(0x1b07)}];for(let _0x502310=0x0;_0x502310<_0x1197e9['data'][_0x52278b(0xcef)]['length'];_0x502310++){_0x39a4e2[_0x52278b(0x1980)]({'title':_0x1197e9[_0x52278b(0x524)][_0x52278b(0xcef)][_0x502310][_0x52278b(0x1142)],'msg':_0x1197e9[_0x52278b(0x524)]['errors'][_0x502310]['message']});}}else _0x39a4e2[_0x52278b(0x1980)]({'title':_0x1197e9[_0x52278b(0x107b)]?_0x52278b(0x262a)+_0x1197e9[_0x52278b(0x107b)]+_0x52278b(0x1315)+_0x1197e9[_0x52278b(0x167f)]:_0x52278b(0x1b07),'msg':_0x1197e9[_0x52278b(0x524)]?JSON[_0x52278b(0x10bb)](_0x1197e9[_0x52278b(0x524)]['message']):_0x1197e9['toString']()});});}function _0x159736(_0x13d4b5){const _0x4ce0ab=_0x48748d;_0x38f1a5[_0x4ce0ab(0xcef)]=[];const _0x50418e=_0x1869d4[_0x4ce0ab(0x1e8a)]()[_0x4ce0ab(0x1189)](_0x4ce0ab(0x1d64))[_0x4ce0ab(0x80f)](_0x4ce0ab(0x8c5))['ariaLabel']('Delete\x20GlobalCustomField')['ok'](_0x4ce0ab(0x25de))[_0x4ce0ab(0x6c3)](_0x4ce0ab(0xcf0))[_0x4ce0ab(0x1f27)](_0x13d4b5);_0x1869d4[_0x4ce0ab(0x2615)](_0x50418e)[_0x4ce0ab(0x146b)](function(){const _0x50dcb5=_0x4ce0ab;_0x40751b[_0x50dcb5(0x14a9)][_0x50dcb5(0x1fac)]({'id':_0x38f1a5[_0x50dcb5(0x200a)]['id']})['$promise'][_0x50dcb5(0x146b)](function(){const _0x4c8d43=_0x50dcb5;_0x3f65c0()['remove'](_0x38f1a5['globalCustomFields'],{'id':_0x38f1a5[_0x4c8d43(0x200a)]['id']}),_0x39a4e2[_0x4c8d43(0x1c75)]({'title':_0x4c8d43(0x260b),'msg':(_0x38f1a5[_0x4c8d43(0x200a)][_0x4c8d43(0x19eb)]||'globalCustomField')+'\x20has\x20been\x20deleted!'}),_0x4c676c(_0x38f1a5[_0x4c8d43(0x200a)]);})[_0x50dcb5(0x129e)](function(_0x2a9f78){const _0x4e4920=_0x50dcb5;if(_0x2a9f78[_0x4e4920(0x524)]&&_0x2a9f78[_0x4e4920(0x524)][_0x4e4920(0xcef)]&&_0x2a9f78[_0x4e4920(0x524)][_0x4e4920(0xcef)][_0x4e4920(0x402)]){_0x38f1a5[_0x4e4920(0xcef)]=_0x2a9f78[_0x4e4920(0x524)][_0x4e4920(0xcef)]||[{'message':_0x2a9f78[_0x4e4920(0xd5f)](),'type':_0x4e4920(0x1676)}];for(let _0x47786e=0x0;_0x47786e<_0x2a9f78[_0x4e4920(0x524)][_0x4e4920(0xcef)][_0x4e4920(0x402)];_0x47786e++){_0x39a4e2[_0x4e4920(0x1980)]({'title':_0x2a9f78['data']['errors'][_0x47786e][_0x4e4920(0x1142)],'msg':_0x2a9f78[_0x4e4920(0x524)][_0x4e4920(0xcef)][_0x47786e][_0x4e4920(0x7fd)]});}}else _0x39a4e2[_0x4e4920(0x1980)]({'title':_0x2a9f78[_0x4e4920(0x107b)]?_0x4e4920(0x262a)+_0x2a9f78['status']+'\x20-\x20'+_0x2a9f78['statusText']:'api.cmCustomField.delete','msg':_0x2a9f78[_0x4e4920(0x524)]?JSON[_0x4e4920(0x10bb)](_0x2a9f78[_0x4e4920(0x524)][_0x4e4920(0x7fd)]):_0x2a9f78[_0x4e4920(0x7fd)]||_0x2a9f78[_0x4e4920(0xd5f)]()});});},function(){});}function _0x23d276(_0x43d89a){return _0x43d89a===null?undefined:new Date(_0x43d89a);}function _0x4c676c(_0x54cb36){_0x1869d4['hide'](_0x54cb36);}}const _0x2bd827=_0x272844;;const _0x4e5e07=_0x4acfac['p']+_0x313a4d(0x26fc);;_0x25c9da['$inject']=[_0x313a4d(0x910),_0x313a4d(0x1aa9),_0x313a4d(0x1862),_0x313a4d(0x15fe),_0x313a4d(0x10e8),_0x313a4d(0x4d8),_0x313a4d(0x1abe),_0x313a4d(0x214b),'globalCustomFields',_0x313a4d(0x26b6),_0x313a4d(0x1366),_0x313a4d(0x247f),_0x313a4d(0x216c),_0x313a4d(0x1fe4),_0x313a4d(0xa87),_0x313a4d(0x2690),_0x313a4d(0x15b9)];function _0x25c9da(_0xa238c0,_0xfb52bb,_0x124c55,_0x3ba43a,_0x864086,_0x4c54e0,_0x513a51,_0x100502,_0x6cb2df,_0x499b43,_0x574fc9,_0x1b80b4,_0x1bee8f,_0x42ae26,_0x4df233,_0x326f94,_0x369441){const _0x1882dd=_0x313a4d,_0x45f24d=this;_0x45f24d[_0x1882dd(0x2690)]=_0x326f94,_0x45f24d[_0x1882dd(0x15b9)]=_0x369441,_0x45f24d[_0x1882dd(0x2321)]=_0x4df233['getCurrentUser'](),_0x45f24d[_0x1882dd(0x19ba)]=_0x6cb2df||{'count':0x0,'rows':[]},_0x45f24d[_0x1882dd(0x26b6)]=_0x499b43,_0x45f24d[_0x1882dd(0x1366)]=_0x574fc9&&_0x574fc9['count']==0x1?_0x574fc9[_0x1882dd(0x19c7)][0x0]:null,_0x45f24d['crudPermissions']=_0x4df233['parseCrudPermissions'](_0x45f24d[_0x1882dd(0x1366)]?_0x45f24d['userProfileSection']['crudPermissions']:null),_0x45f24d[_0x1882dd(0x768)]=_0x1882dd(0x19ba),_0x45f24d['listOrder']='',_0x45f24d[_0x1882dd(0x214f)]=null,_0x45f24d[_0x1882dd(0x11b6)]=[],_0x45f24d[_0x1882dd(0x1a56)]={'fields':_0x1882dd(0x204d),'sort':_0x1882dd(0x12f2),'ListId':'null','limit':0xa,'page':0x1},_0x45f24d[_0x1882dd(0x11da)]=_0x3f65c0()['keyBy']([{'option':_0x1882dd(0x23d7),'value':'\x27text\x27'},{'option':_0x1882dd(0x110b),'value':_0x1882dd(0x12e9)},{'option':_0x1882dd(0x27b7),'value':'\x27number\x27'},{'option':'Switch','value':_0x1882dd(0xc99)},{'option':'Datetime','value':'\x27datetime\x27'}],function(_0x131c95){const _0x163c76=_0x1882dd;return _0x3f65c0()[_0x163c76(0x5f4)](_0x131c95['value'],new RegExp('\x27','g'),'');}),_0x45f24d[_0x1882dd(0x17cf)]=_0x3f65c0()[_0x1882dd(0x194)]([{'option':_0x1882dd(0x127d),'value':_0x1882dd(0xc15)}],function(_0x3cbe6f){const _0xee9a76=_0x1882dd;return _0x3f65c0()[_0xee9a76(0x5f4)](_0x3cbe6f[_0xee9a76(0x175d)],new RegExp('\x27','g'),'');}),_0x45f24d[_0x1882dd(0x2ed)]=_0x4b8ab4,_0x45f24d[_0x1882dd(0xf0a)]=_0x16d2f6,_0x45f24d[_0x1882dd(0x1c75)]=_0x53b76e,_0x45f24d[_0x1882dd(0x44d)]=_0xb7cd80,_0x45f24d[_0x1882dd(0x13d1)]=_0x20ce24,_0x45f24d[_0x1882dd(0x215b)]=_0x557b22,_0x45f24d[_0x1882dd(0x144d)]=_0x5cc8cb,_0x45f24d[_0x1882dd(0x170d)]=_0x3a7fea,_0x45f24d[_0x1882dd(0x1351)]=_0x23ebc1,_0x45f24d[_0x1882dd(0x1f84)]=_0x39d138;function _0x4b8ab4(_0x244a5f,_0x3b3020){const _0x27935f=_0x1882dd;_0x864086[_0x27935f(0x2615)]({'controller':_0x27935f(0x246e),'controllerAs':'vm','templateUrl':_0x4e5e07,'parent':angular[_0x27935f(0x1853)](_0x4c54e0['body']),'targetEvent':_0x3b3020,'clickOutsideToClose':!![],'locals':{'globalCustomField':_0x244a5f,'globalCustomFields':_0x45f24d[_0x27935f(0x19ba)]['rows'],'license':_0x45f24d[_0x27935f(0x2690)],'setting':null,'crudPermissions':_0x45f24d['crudPermissions']}});}function _0x16d2f6(_0x4bb258,_0x2f398e){const _0x20f163=_0x1882dd,_0x5401ff=_0x864086[_0x20f163(0x1e8a)]()[_0x20f163(0x1189)](_0x20f163(0xdb2)+_0x3f65c0()[_0x20f163(0x20d1)]('globalCustomField')+'?')[_0x20f163(0x1cbe)](_0x20f163(0x16d3)+(_0x4bb258[_0x20f163(0x19eb)]||'globalCustomField')+''+_0x20f163(0xe01))[_0x20f163(0x4bd)]('delete\x20globalCustomField')[_0x20f163(0x1f27)](_0x2f398e)['ok']('OK')['cancel'](_0x20f163(0x39a));_0x864086[_0x20f163(0x2615)](_0x5401ff)[_0x20f163(0x146b)](function(){_0x557b22(_0x4bb258);},function(){const _0x279a09=_0x20f163;console[_0x279a09(0x1a74)](_0x279a09(0x39a));});}let _0x8fc6a8=!![],_0x4ea1e8=0x1;_0xa238c0[_0x1882dd(0x21e8)](_0x1882dd(0x2669),function(_0x366262,_0xb6dc4b){const _0x49d9cb=_0x1882dd;_0x8fc6a8?_0x513a51(function(){_0x8fc6a8=![];}):(!_0xb6dc4b&&(_0x4ea1e8=_0x45f24d[_0x49d9cb(0x1a56)][_0x49d9cb(0x844)]),_0x366262!==_0xb6dc4b&&(_0x45f24d['query'][_0x49d9cb(0x844)]=0x1),!_0x366262&&(_0x45f24d[_0x49d9cb(0x1a56)][_0x49d9cb(0x844)]=_0x4ea1e8),_0x45f24d[_0x49d9cb(0x44d)]());});function _0x53b76e(_0x10bb37){const _0x49c807=_0x1882dd;_0x45f24d[_0x49c807(0x19ba)]=_0x10bb37||{'count':0x0,'rows':[]};}function _0xb7cd80(){const _0x458e10=_0x1882dd;_0x45f24d[_0x458e10(0x1a56)]['offset']=(_0x45f24d[_0x458e10(0x1a56)][_0x458e10(0x844)]-0x1)*_0x45f24d[_0x458e10(0x1a56)][_0x458e10(0x221e)],_0x4df233[_0x458e10(0x23e0)]('admin')?_0x45f24d[_0x458e10(0xb9c)]=_0x1b80b4[_0x458e10(0x14a9)][_0x458e10(0x16b4)](_0x45f24d[_0x458e10(0x1a56)],_0x53b76e)[_0x458e10(0x2945)]:(_0x45f24d[_0x458e10(0x1a56)]['id']=_0x45f24d['userProfile']['id'],_0x45f24d[_0x458e10(0x1a56)]['section']=_0x458e10(0x1b8f),_0x45f24d[_0x458e10(0xb9c)]=_0x1b80b4['userProfile'][_0x458e10(0x158f)](_0x45f24d['query'],_0x53b76e)[_0x458e10(0x2945)]);}function _0x20ce24(_0x3ac45c,_0x30a2af){const _0x2be47f=_0x1882dd;_0x864086['show']({'controller':'CreateOrEditGlobalCustomFieldDialogController','controllerAs':'vm','templateUrl':_0x4e5e07,'parent':angular[_0x2be47f(0x1853)](_0x4c54e0[_0x2be47f(0x2586)]),'targetEvent':_0x3ac45c,'clickOutsideToClose':!![],'locals':{'globalCustomField':_0x30a2af,'globalCustomFields':_0x45f24d[_0x2be47f(0x19ba)][_0x2be47f(0x19c7)],'license':_0x45f24d[_0x2be47f(0x2690)],'setting':_0x45f24d[_0x2be47f(0x15b9)],'crudPermissions':_0x45f24d[_0x2be47f(0x2514)]}});}function _0x557b22(_0x3ba45d){const _0x47281d=_0x1882dd;_0x1b80b4[_0x47281d(0x14a9)][_0x47281d(0x1fac)]({'id':_0x3ba45d['id']})[_0x47281d(0x2945)]['then'](function(){const _0x11a96c=_0x47281d;_0x3f65c0()['remove'](_0x45f24d['globalCustomFields'][_0x11a96c(0x19c7)],{'id':_0x3ba45d['id']}),_0x45f24d[_0x11a96c(0x19ba)][_0x11a96c(0x51c)]-=0x1,!_0x45f24d[_0x11a96c(0x19ba)][_0x11a96c(0x19c7)][_0x11a96c(0x402)]&&_0x45f24d[_0x11a96c(0x44d)](),_0x42ae26['success']({'title':_0x3f65c0()['startCase']('GlobalCustomField')+_0x11a96c(0x201c),'msg':_0x3ba45d[_0x11a96c(0x19eb)]?_0x3ba45d['name']+_0x11a96c(0x23e3):''});})[_0x47281d(0x129e)](function(_0xeabe2a){const _0x30e2cb=_0x47281d;if(_0xeabe2a['data']&&_0xeabe2a['data'][_0x30e2cb(0xcef)]&&_0xeabe2a[_0x30e2cb(0x524)][_0x30e2cb(0xcef)][_0x30e2cb(0x402)]){_0x45f24d[_0x30e2cb(0xcef)]=_0xeabe2a['data'][_0x30e2cb(0xcef)]||[{'message':_0xeabe2a[_0x30e2cb(0xd5f)](),'type':'SYSTEM:DELETEcmCustomField'}];for(let _0x3e1a80=0x0;_0x3e1a80<_0xeabe2a['data']['errors'][_0x30e2cb(0x402)];_0x3e1a80++){_0x42ae26[_0x30e2cb(0x1980)]({'title':_0xeabe2a[_0x30e2cb(0x524)][_0x30e2cb(0xcef)][_0x3e1a80][_0x30e2cb(0x1142)],'msg':_0xeabe2a[_0x30e2cb(0x524)]['errors'][_0x3e1a80][_0x30e2cb(0x7fd)]});}}else _0x42ae26[_0x30e2cb(0x1980)]({'title':_0xeabe2a[_0x30e2cb(0x107b)]?'API:'+_0xeabe2a[_0x30e2cb(0x107b)]+_0x30e2cb(0x1315)+_0xeabe2a[_0x30e2cb(0x167f)]:_0x30e2cb(0x1a4c),'msg':_0xeabe2a[_0x30e2cb(0x524)]?JSON[_0x30e2cb(0x10bb)](_0xeabe2a['data'][_0x30e2cb(0x7fd)]):_0xeabe2a[_0x30e2cb(0x7fd)]||_0xeabe2a[_0x30e2cb(0xd5f)]()});});}function _0x5cc8cb(){const _0x139f70=_0x1882dd,_0x287220=angular['copy'](_0x45f24d[_0x139f70(0x11b6)]);return _0x45f24d[_0x139f70(0x11b6)]=[],_0x287220;}function _0x3a7fea(_0x4dea8f){const _0xdb600a=_0x1882dd,_0x349993=_0x864086[_0xdb600a(0x1e8a)]()[_0xdb600a(0x1189)](_0xdb600a(0x21a2))[_0xdb600a(0x1cbe)](_0xdb600a(0x16d3)+_0x45f24d[_0xdb600a(0x11b6)][_0xdb600a(0x402)]+_0xdb600a(0x2452)+_0xdb600a(0xe01))['ariaLabel'](_0xdb600a(0x1265))[_0xdb600a(0x1f27)](_0x4dea8f)['ok']('OK')[_0xdb600a(0x6c3)](_0xdb600a(0x39a));_0x864086[_0xdb600a(0x2615)](_0x349993)[_0xdb600a(0x146b)](function(){const _0x1b8ffa=_0xdb600a;_0x45f24d[_0x1b8ffa(0x11b6)][_0x1b8ffa(0x1df5)](function(_0x26ab74){_0x557b22(_0x26ab74);}),_0x45f24d[_0x1b8ffa(0x11b6)]=[];});}function _0x23ebc1(){const _0x4153a9=_0x1882dd;_0x45f24d[_0x4153a9(0x11b6)]=[];}function _0x39d138(){const _0x25a649=_0x1882dd;_0x45f24d[_0x25a649(0x11b6)]=_0x45f24d['globalCustomFields']['rows'];}}const _0x11394b=_0x25c9da;;_0x2fbdd5['$inject']=[_0x313a4d(0x910),_0x313a4d(0x1862),_0x313a4d(0xd08),'$mdDialog','$q','$translate',_0x313a4d(0x1fe4),'lists',_0x313a4d(0x25f4),_0x313a4d(0x247f),_0x313a4d(0xa87),_0x313a4d(0x2690),_0x313a4d(0x15b9),_0x313a4d(0x2514)];function _0x2fbdd5(_0x2a9ec0,_0x4480d8,_0x589540,_0x2bfc1a,_0x1b9a06,_0x535b44,_0x4582cc,_0x564bdc,_0x5e7b8b,_0x4e5e74,_0x42b98d,_0x552dd8,_0x3d7440,_0x3b24ce){const _0x3844ae=_0x313a4d,_0x18b2e0=this;_0x18b2e0[_0x3844ae(0x2321)]=_0x42b98d[_0x3844ae(0xb12)](),_0x18b2e0[_0x3844ae(0xcef)]=[],_0x18b2e0[_0x3844ae(0x15b9)]=_0x3d7440,_0x18b2e0[_0x3844ae(0x2690)]=_0x552dd8,_0x18b2e0[_0x3844ae(0x2514)]=_0x3b24ce,_0x18b2e0[_0x3844ae(0x855)]={},_0x18b2e0[_0x3844ae(0x2251)]=_0x18b2e0[_0x3844ae(0x15b9)]&&_0x18b2e0[_0x3844ae(0x15b9)]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x18b2e0[_0x3844ae(0x1189)]=_0x3844ae(0x1b5e),_0x18b2e0[_0x3844ae(0x25f4)]=angular[_0x3844ae(0x235a)](_0x5e7b8b),_0x18b2e0['lists']=_0x564bdc,_0x18b2e0[_0x3844ae(0x1e8f)]=![];!_0x18b2e0[_0x3844ae(0x25f4)]&&(_0x18b2e0['list']={},_0x18b2e0[_0x3844ae(0x1189)]=_0x3844ae(0x2798),_0x18b2e0[_0x3844ae(0x1e8f)]=!![]);_0x18b2e0[_0x3844ae(0x1eb3)]=_0x1daa4d,_0x18b2e0['saveList']=_0x37d045,_0x18b2e0[_0x3844ae(0x2638)]=_0x3dcdd1,_0x18b2e0['getDateFromString']=_0x33e95b,_0x18b2e0['closeDialog']=_0x357748;function _0x1daa4d(){const _0x3d60f1=_0x3844ae;_0x18b2e0[_0x3d60f1(0xcef)]=[],_0x4e5e74[_0x3d60f1(0xf03)][_0x3d60f1(0x1e3)](_0x18b2e0['list'])['$promise'][_0x3d60f1(0x146b)](function(_0x9eb357){const _0x517595=_0x3d60f1;_0x18b2e0['lists'][_0x517595(0xb3d)](_0x9eb357[_0x517595(0x2488)]()),_0x4582cc[_0x517595(0x1c75)]({'title':_0x517595(0xd32),'msg':_0x18b2e0[_0x517595(0x25f4)][_0x517595(0x19eb)]?_0x18b2e0[_0x517595(0x25f4)][_0x517595(0x19eb)]+_0x517595(0x1386):''}),_0x357748(_0x9eb357);})['catch'](function(_0x2d5e26){const _0x4d8a40=_0x3d60f1;if(_0x2d5e26['data']&&_0x2d5e26[_0x4d8a40(0x524)]['errors']&&_0x2d5e26[_0x4d8a40(0x524)][_0x4d8a40(0xcef)][_0x4d8a40(0x402)]){_0x18b2e0[_0x4d8a40(0xcef)]=_0x2d5e26[_0x4d8a40(0x524)]['errors']||[{'message':_0x2d5e26[_0x4d8a40(0xd5f)](),'type':_0x4d8a40(0x7bc)}];for(let _0x4340ff=0x0;_0x4340ff<_0x2d5e26[_0x4d8a40(0x524)][_0x4d8a40(0xcef)][_0x4d8a40(0x402)];_0x4340ff+=0x1){_0x4582cc[_0x4d8a40(0x1980)]({'title':_0x2d5e26[_0x4d8a40(0x524)]['errors'][_0x4340ff]['type'],'msg':_0x2d5e26[_0x4d8a40(0x524)][_0x4d8a40(0xcef)][_0x4340ff][_0x4d8a40(0x7fd)]});}}else _0x4582cc['error']({'title':_0x2d5e26[_0x4d8a40(0x107b)]?_0x4d8a40(0x262a)+_0x2d5e26[_0x4d8a40(0x107b)]+_0x4d8a40(0x1315)+_0x2d5e26[_0x4d8a40(0x167f)]:_0x4d8a40(0x7bc),'msg':_0x2d5e26[_0x4d8a40(0x524)]?JSON['stringify'](_0x2d5e26[_0x4d8a40(0x524)][_0x4d8a40(0x7fd)]):_0x2d5e26[_0x4d8a40(0xd5f)]()});});}function _0x37d045(){const _0x45ad2b=_0x3844ae;_0x18b2e0[_0x45ad2b(0xcef)]=[],_0x4e5e74[_0x45ad2b(0xf03)][_0x45ad2b(0x18e1)]({'id':_0x18b2e0['list']['id']},_0x18b2e0['list'])[_0x45ad2b(0x2945)][_0x45ad2b(0x146b)](function(_0x2a8f99){const _0x26e250=_0x45ad2b,_0x172877=_0x3f65c0()[_0x26e250(0xc84)](_0x18b2e0['lists'],{'id':_0x2a8f99['id']});_0x172877&&_0x3f65c0()[_0x26e250(0x168d)](_0x172877,_0x3f65c0()[_0x26e250(0x40e)](_0x2a8f99[_0x26e250(0x2488)](),_0x3f65c0()[_0x26e250(0x627)](_0x172877))),_0x4582cc['success']({'title':_0x26e250(0xd63),'msg':_0x18b2e0[_0x26e250(0x25f4)][_0x26e250(0x19eb)]?_0x18b2e0[_0x26e250(0x25f4)][_0x26e250(0x19eb)]+'\x20has\x20been\x20saved!':''}),_0x357748(_0x2a8f99);})['catch'](function(_0x5b276c){const _0x57d04f=_0x45ad2b;if(_0x5b276c[_0x57d04f(0x524)]&&_0x5b276c[_0x57d04f(0x524)][_0x57d04f(0xcef)]&&_0x5b276c[_0x57d04f(0x524)][_0x57d04f(0xcef)][_0x57d04f(0x402)]){_0x18b2e0[_0x57d04f(0xcef)]=_0x5b276c[_0x57d04f(0x524)]['errors']||[{'message':_0x5b276c['toString'](),'type':_0x57d04f(0xc45)}];for(let _0x477002=0x0;_0x477002<_0x5b276c[_0x57d04f(0x524)]['errors'][_0x57d04f(0x402)];_0x477002++){_0x4582cc[_0x57d04f(0x1980)]({'title':_0x5b276c[_0x57d04f(0x524)][_0x57d04f(0xcef)][_0x477002][_0x57d04f(0x1142)],'msg':_0x5b276c[_0x57d04f(0x524)][_0x57d04f(0xcef)][_0x477002][_0x57d04f(0x7fd)]});}}else _0x4582cc[_0x57d04f(0x1980)]({'title':_0x5b276c[_0x57d04f(0x107b)]?'API:'+_0x5b276c[_0x57d04f(0x107b)]+_0x57d04f(0x1315)+_0x5b276c[_0x57d04f(0x167f)]:_0x57d04f(0xc45),'msg':_0x5b276c['data']?JSON[_0x57d04f(0x10bb)](_0x5b276c['data']['message']):_0x5b276c[_0x57d04f(0xd5f)]()});});}function _0x3dcdd1(_0x252310){const _0x7ad171=_0x3844ae;_0x18b2e0[_0x7ad171(0xcef)]=[];const _0x31e0c2=_0x2bfc1a[_0x7ad171(0x1e8a)]()[_0x7ad171(0x1189)](_0x7ad171(0x1d64))['content'](_0x7ad171(0x556))[_0x7ad171(0x4bd)](_0x7ad171(0x16c5))['ok'](_0x7ad171(0x25de))['cancel'](_0x7ad171(0xcf0))[_0x7ad171(0x1f27)](_0x252310);_0x2bfc1a[_0x7ad171(0x2615)](_0x31e0c2)[_0x7ad171(0x146b)](function(){const _0x43ed92=_0x7ad171;_0x4e5e74[_0x43ed92(0xf03)][_0x43ed92(0x1fac)]({'id':_0x18b2e0[_0x43ed92(0x25f4)]['id']})['$promise'][_0x43ed92(0x146b)](function(){const _0x1380c0=_0x43ed92;_0x3f65c0()[_0x1380c0(0x2640)](_0x18b2e0[_0x1380c0(0x1324)],{'id':_0x18b2e0[_0x1380c0(0x25f4)]['id']}),_0x4582cc[_0x1380c0(0x1c75)]({'title':_0x1380c0(0x196e),'msg':(_0x18b2e0[_0x1380c0(0x25f4)]['name']||_0x1380c0(0x25f4))+'\x20has\x20been\x20deleted!'}),_0x357748(_0x18b2e0['list']);})[_0x43ed92(0x129e)](function(_0x300aac){const _0x21eff2=_0x43ed92;if(_0x300aac[_0x21eff2(0x524)]&&_0x300aac[_0x21eff2(0x524)][_0x21eff2(0xcef)]&&_0x300aac[_0x21eff2(0x524)][_0x21eff2(0xcef)]['length']){_0x18b2e0[_0x21eff2(0xcef)]=_0x300aac[_0x21eff2(0x524)][_0x21eff2(0xcef)]||[{'message':_0x300aac[_0x21eff2(0xd5f)](),'type':_0x21eff2(0x7c0)}];for(let _0x2b2aad=0x0;_0x2b2aad<_0x300aac[_0x21eff2(0x524)]['errors']['length'];_0x2b2aad++){_0x4582cc[_0x21eff2(0x1980)]({'title':_0x300aac[_0x21eff2(0x524)][_0x21eff2(0xcef)][_0x2b2aad][_0x21eff2(0x1142)],'msg':_0x300aac[_0x21eff2(0x524)]['errors'][_0x2b2aad][_0x21eff2(0x7fd)]});}}else _0x4582cc[_0x21eff2(0x1980)]({'title':_0x300aac[_0x21eff2(0x107b)]?_0x21eff2(0x262a)+_0x300aac[_0x21eff2(0x107b)]+_0x21eff2(0x1315)+_0x300aac[_0x21eff2(0x167f)]:_0x21eff2(0x7c0),'msg':_0x300aac[_0x21eff2(0x524)]?JSON[_0x21eff2(0x10bb)](_0x300aac[_0x21eff2(0x524)][_0x21eff2(0x7fd)]):_0x300aac[_0x21eff2(0x7fd)]||_0x300aac[_0x21eff2(0xd5f)]()});});},function(){});}function _0x33e95b(_0x7299dd){return _0x7299dd===null?undefined:new Date(_0x7299dd);}function _0x357748(_0x35a51f){const _0x50f284=_0x3844ae;_0x2bfc1a[_0x50f284(0x2458)](_0x35a51f);}}const _0x169313=_0x2fbdd5;;_0x433ede[_0x313a4d(0x11c2)]=[_0x313a4d(0x10e8),'$q',_0x313a4d(0x1fe4),_0x313a4d(0x247f),_0x313a4d(0x25f4),_0x313a4d(0x1324),_0x313a4d(0xfc4),'$translate',_0x313a4d(0xa87),'crudPermissions'];function _0x433ede(_0x1de18c,_0x531cd9,_0x238fbb,_0x193703,_0x596bdb,_0x36f27e,_0x4b9fd0,_0x1668ec,_0x41adce,_0x32a0d9){const _0x7efc55=_0x313a4d,_0x1ae4c2=this;_0x1ae4c2[_0x7efc55(0x2321)]=_0x41adce[_0x7efc55(0xb12)](),_0x1ae4c2['list']=_0x596bdb,_0x1ae4c2[_0x7efc55(0x2514)]=_0x32a0d9,_0x1ae4c2[_0x7efc55(0xfc4)]=_0x4b9fd0,_0x1ae4c2[_0x7efc55(0x1fd6)]=[],_0x1ae4c2['allowedItems']=[],_0x1ae4c2[_0x7efc55(0x1ecf)]=[],_0x1ae4c2[_0x7efc55(0x2e8)]=[],_0x1ae4c2[_0x7efc55(0xa65)]=[],_0x1ae4c2['pendingChanges']=![],_0x1ae4c2['onInit']=_0x5f0861,_0x1ae4c2['saveAgents']=_0x322968,_0x1ae4c2['closeDialog']=_0x20760c,_0x1ae4c2[_0x7efc55(0x1f8a)]={'readOnly':!_0x1ae4c2[_0x7efc55(0x2514)][_0x7efc55(0x15f4)],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x7efc55(0x19eb),'line1':_0x7efc55(0x286a),'line2':['name','internal'],'line3':'','labelAll':_0x1668ec[_0x7efc55(0xde)](_0x7efc55(0x2050)),'labelSelected':_0x1668ec[_0x7efc55(0xde)](_0x7efc55(0xf73)),'transferCallback':function(){const _0xfcd6d0=_0x7efc55,_0x2f247c=_0x3f65c0()[_0xfcd6d0(0x1883)](_0x1ae4c2[_0xfcd6d0(0xa65)],_0x1ae4c2[_0xfcd6d0(0x1ecf)],'id');_0x1ae4c2[_0xfcd6d0(0x132)]=_0x3f65c0()[_0xfcd6d0(0x2635)](_0x2f247c)?![]:!![];}};function _0x5f0861(){const _0x46267b=_0x7efc55;return _0x41adce[_0x46267b(0x23e0)](_0x46267b(0x174b))?_0x21a7f3()[_0x46267b(0x129e)](function(_0x12a801){const _0x53daa4=_0x46267b;_0x238fbb[_0x53daa4(0x1980)]({'title':_0x12a801[_0x53daa4(0x107b)]?_0x53daa4(0x262a)+_0x12a801[_0x53daa4(0x107b)]+_0x53daa4(0x1315)+_0x12a801[_0x53daa4(0x167f)]:_0x53daa4(0x557),'msg':_0x12a801['status']?JSON[_0x53daa4(0x10bb)](_0x12a801[_0x53daa4(0x524)]):_0x12a801[_0x53daa4(0xd5f)]()});}):_0x15f491()[_0x46267b(0x146b)](function(_0x1a7912){const _0x562fda=_0x46267b;return _0x1ae4c2[_0x562fda(0x2146)]=_0x1a7912,_0x21a7f3();})['catch'](function(_0x2bb8a2){const _0x10cded=_0x46267b;_0x238fbb['error']({'title':_0x2bb8a2[_0x10cded(0x107b)]?_0x10cded(0x262a)+_0x2bb8a2['status']+_0x10cded(0x1315)+_0x2bb8a2[_0x10cded(0x167f)]:_0x10cded(0x557),'msg':_0x2bb8a2[_0x10cded(0x107b)]?JSON[_0x10cded(0x10bb)](_0x2bb8a2[_0x10cded(0x524)]):_0x2bb8a2[_0x10cded(0xd5f)]()});});}function _0x15f491(){return _0x531cd9(function(_0x53aba6,_0x3ea2f6){const _0x1110dc=a0_0x3bb9;_0x193703[_0x1110dc(0x1366)]['get']({'userProfileId':_0x1ae4c2[_0x1110dc(0x2321)]['userProfileId'],'name':_0x1110dc(0xca8)})[_0x1110dc(0x2945)][_0x1110dc(0x146b)](function(_0x132ff3){const _0x147b07=_0x1110dc,_0x3312f7=_0x132ff3&&_0x132ff3['rows']?_0x132ff3[_0x147b07(0x19c7)][0x0]:null;_0x53aba6(_0x3312f7);})['catch'](function(_0x5df271){_0x3ea2f6(_0x5df271);});});}function _0x21a7f3(){return _0x531cd9(function(_0x37f7a3,_0x52cf75){const _0x5a80ee=a0_0x3bb9;return _0x444726()['then'](function(_0x292b17){const _0x5cc38d=a0_0x3bb9;return _0x1ae4c2['items']=_0x292b17[_0x5cc38d(0x19c7)]?_0x292b17[_0x5cc38d(0x19c7)]:[],_0x41adce[_0x5cc38d(0x23e0)](_0x5cc38d(0x174b))?_0x292b17:_0x1ae4c2['section']?_0x1ae4c2[_0x5cc38d(0x2146)][_0x5cc38d(0x11d2)]?_0x292b17:_0x3df00b():null;})['then'](function(_0x28e51b){const _0x159737=a0_0x3bb9,_0x73b33d=_0x28e51b&&_0x28e51b['rows']?_0x28e51b['rows']:[];return _0x1ae4c2[_0x159737(0xc4e)]=_0x3f65c0()[_0x159737(0x205)](_0x73b33d,function(_0x4fb06b){const _0x34517c=_0x159737;return _0x3f65c0()[_0x34517c(0xc84)](_0x1ae4c2[_0x34517c(0x1fd6)],{'id':_0x41adce[_0x34517c(0x23e0)](_0x34517c(0x174b))||_0x1ae4c2[_0x34517c(0x2146)]['autoAssociation']?_0x4fb06b['id']:_0x4fb06b['resourceId']});}),_0x1ae4c2[_0x159737(0x2e8)]=angular[_0x159737(0x235a)](_0x1ae4c2[_0x159737(0xc4e)]),_0x1ae4c2[_0x159737(0x1fd6)][_0x159737(0x1df5)](function(_0x3cee5e){const _0x3cb367=_0x159737,_0x384eb0=_0x3f65c0()[_0x3cb367(0xc84)](_0x1ae4c2['allowedItems'],{'id':_0x3cee5e['id']});_0x41adce['hasRole']('admin')?_0x3cee5e[_0x3cb367(0x146f)]=!![]:_0x3cee5e[_0x3cb367(0x146f)]=typeof _0x384eb0!=='undefined'?!![]:![];}),_0x1d4828();})[_0x5a80ee(0x146b)](function(_0x5e0b62){const _0x5073c3=_0x5a80ee,_0x268c26=_0x5e0b62&&_0x5e0b62['rows']?_0x5e0b62[_0x5073c3(0x19c7)]:[];_0x1ae4c2[_0x5073c3(0x1ecf)]=_0x3f65c0()[_0x5073c3(0x205)](_0x268c26,function(_0xa65de3){const _0x48c91b=_0x5073c3,_0x58dbed=_0x3f65c0()[_0x48c91b(0xc84)](_0x1ae4c2[_0x48c91b(0x1fd6)],{'id':_0xa65de3['id']});return _0x58dbed['penalty']=_0xa65de3[_0x48c91b(0x279b)]?_0x48c91b(0x2505)+_0xa65de3[_0x48c91b(0x279b)]['penalty']:'',_0x58dbed[_0x48c91b(0x113f)]=typeof _0xa65de3['internal']!==_0x48c91b(0x2274)?'<'+_0xa65de3['internal']+'>':'',_0x58dbed;}),_0x1ae4c2['startingSelectedItems']=angular[_0x5073c3(0x235a)](_0x1ae4c2['selectedItems']),_0x1ae4c2['dualMultiselectOptions']['selectedItems']=_0x1ae4c2[_0x5073c3(0x1ecf)],_0x1ae4c2[_0x5073c3(0x1f8a)][_0x5073c3(0x1fd6)]=_0x3f65c0()[_0x5073c3(0x2796)](_0x1ae4c2['allowedItems'],_0x1ae4c2['dualMultiselectOptions'][_0x5073c3(0x1ecf)],'id'),_0x37f7a3();})['catch'](function(_0x1e72e9){_0x52cf75(_0x1e72e9);});});}function _0x3df00b(){return _0x531cd9(function(_0xc8e234,_0x1217a0){const _0x102472=a0_0x3bb9;return _0x193703[_0x102472(0xdcc)][_0x102472(0x16b4)]({'sectionId':_0x1ae4c2[_0x102472(0x2146)]['id'],'nolimit':!![]})['$promise'][_0x102472(0x146b)](function(_0x295032){_0xc8e234(_0x295032);})[_0x102472(0x129e)](function(_0x73e29a){_0x1217a0(_0x73e29a);});});}function _0x1d4828(){return _0x531cd9(function(_0x70c4ab,_0xfd5ee0){const _0x439f1d=a0_0x3bb9;return _0x193703[_0x439f1d(0xf03)]['getAgents']({'id':_0x1ae4c2[_0x439f1d(0x25f4)]['id'],'fields':_0x439f1d(0x1569),'nolimit':!![],'role':_0x439f1d(0x1755)})[_0x439f1d(0x2945)][_0x439f1d(0x146b)](function(_0x3426d9){_0x70c4ab(_0x3426d9);})[_0x439f1d(0x129e)](function(_0xba7a74){_0xfd5ee0(_0xba7a74);});});}function _0x444726(){return _0x531cd9(function(_0x7efd76,_0x236716){const _0x4f5e43=a0_0x3bb9;return _0x193703[_0x4f5e43(0xe7b)][_0x4f5e43(0x16b4)]({'fields':_0x4f5e43(0x1569),'nolimit':!![],'role':'agent'})[_0x4f5e43(0x2945)][_0x4f5e43(0x146b)](function(_0x517287){_0x7efd76(_0x517287);})['catch'](function(_0x56a707){_0x236716(_0x56a707);});});}function _0x2cf48c(_0x300039){return _0x531cd9(function(_0x3d5bc1,_0x374061){const _0x2147c6=a0_0x3bb9;_0x3f65c0()[_0x2147c6(0x2635)](_0x300039)?_0x3d5bc1():_0x193703[_0x2147c6(0xf03)][_0x2147c6(0x135e)]({'id':_0x1ae4c2['list']['id'],'ids':_0x3f65c0()['map'](_0x300039,'id')})[_0x2147c6(0x2945)][_0x2147c6(0x146b)](function(){_0x3d5bc1();})[_0x2147c6(0x129e)](function(_0x230c41){_0x374061(_0x230c41);});});}function _0x5f41f6(_0x4e073f){return _0x531cd9(function(_0x1f8248,_0x44aa7b){const _0xa07848=a0_0x3bb9;_0x3f65c0()[_0xa07848(0x2635)](_0x4e073f)?_0x1f8248():_0x193703[_0xa07848(0xf03)][_0xa07848(0x1f53)]({'id':_0x1ae4c2[_0xa07848(0x25f4)]['id'],'ids':_0x3f65c0()[_0xa07848(0x205)](_0x4e073f,'id')})['$promise'][_0xa07848(0x146b)](function(){_0x1f8248();})[_0xa07848(0x129e)](function(_0x1eea50){_0x44aa7b(_0x1eea50);});});}function _0x322968(){const _0x74ec41=_0x7efc55,_0xd0f953=_0x3f65c0()['differenceBy'](_0x1ae4c2[_0x74ec41(0xa65)],_0x1ae4c2['selectedItems'],'id'),_0x6848c=_0x3f65c0()[_0x74ec41(0x2796)](_0x1ae4c2[_0x74ec41(0x1ecf)],_0x1ae4c2['startingSelectedItems'],'id');return _0x5f41f6(_0xd0f953)['then'](function(){return _0x2cf48c(_0x6848c);})[_0x74ec41(0x146b)](function(){const _0x166f98=_0x74ec41;_0x1ae4c2['pendingChanges']=![],_0x1ae4c2[_0x166f98(0x2e8)]=angular[_0x166f98(0x235a)](_0x1ae4c2[_0x166f98(0xc4e)]),_0x1ae4c2[_0x166f98(0xa65)]=angular[_0x166f98(0x235a)](_0x1ae4c2['selectedItems']),_0x238fbb['success']({'title':_0x166f98(0x4c0),'msg':_0x166f98(0x26be)});})[_0x74ec41(0x129e)](function(_0x2ad9d2){const _0x3d25ab=_0x74ec41;_0x238fbb[_0x3d25ab(0x1980)]({'title':_0x2ad9d2[_0x3d25ab(0x107b)]?_0x3d25ab(0x262a)+_0x2ad9d2[_0x3d25ab(0x107b)]+_0x3d25ab(0x1315)+_0x2ad9d2[_0x3d25ab(0x167f)]:_0x3d25ab(0xa56),'msg':_0x2ad9d2['status']?JSON[_0x3d25ab(0x10bb)](_0x2ad9d2[_0x3d25ab(0x524)]):_0x2ad9d2[_0x3d25ab(0xd5f)]()});});}function _0x20760c(){const _0x5c6639=_0x7efc55;_0x1de18c[_0x5c6639(0x2458)]();}}const _0x4ab1b6=_0x433ede;;const _0x5aa7b7=_0x4acfac['p']+'src/js/modules/main/apps/contactmanager/views/lists/edit/customFields/dialog.html/dialog.html';;_0x2bc479[_0x313a4d(0x11c2)]=[_0x313a4d(0x23df),_0x313a4d(0x910),_0x313a4d(0x1862),'$q',_0x313a4d(0x214b),_0x313a4d(0x1abe),_0x313a4d(0x10e8),_0x313a4d(0x4d8),_0x313a4d(0x1fe4),_0x313a4d(0x247f),_0x313a4d(0xa87)];function _0x2bc479(_0x592334,_0x2e3ae7,_0x2272b5,_0x1c2485,_0x5687f0,_0x321559,_0x5f1bcd,_0x12a7f3,_0x16cedf,_0x44a7f2,_0x24976a){const _0x2261ab=_0x313a4d,_0x208f2c=this;_0x208f2c[_0x2261ab(0x2321)]=_0x24976a[_0x2261ab(0xb12)](),_0x208f2c['list']={},_0x208f2c[_0x2261ab(0x2873)]={'count':0x0,'rows':[]},_0x208f2c[_0x2261ab(0x107d)]=[],_0x208f2c[_0x2261ab(0x2514)],_0x208f2c[_0x2261ab(0x1a56)]={'fields':_0x2261ab(0x204d),'limit':0xa,'page':0x1},_0x208f2c[_0x2261ab(0x11da)]=_0x3f65c0()[_0x2261ab(0x194)]([{'option':_0x2261ab(0x23d7),'value':_0x2261ab(0x9c7)},{'option':_0x2261ab(0x110b),'value':'\x27select\x27'},{'option':'Number','value':_0x2261ab(0xf3c)},{'option':_0x2261ab(0x2256),'value':_0x2261ab(0xc99)},{'option':_0x2261ab(0xd7c),'value':_0x2261ab(0x2780)}],function(_0x17857e){return _0x3f65c0()['replace'](_0x17857e['value'],new RegExp('\x27','g'),'');}),_0x208f2c[_0x2261ab(0x17cf)]=_0x3f65c0()[_0x2261ab(0x194)]([{'option':_0x2261ab(0x127d),'value':_0x2261ab(0xc15)}],function(_0x3b47c5){const _0x59c437=_0x2261ab;return _0x3f65c0()[_0x59c437(0x5f4)](_0x3b47c5[_0x59c437(0x175d)],new RegExp('\x27','g'),'');}),_0x208f2c[_0x2261ab(0x5aa)]=_0x4b5935,_0x208f2c[_0x2261ab(0x19b4)]=_0x33bf03,_0x208f2c[_0x2261ab(0x1c75)]=_0x300437,_0x208f2c[_0x2261ab(0x1888)]=_0x469e6e,_0x208f2c['createOrEditListCustomField']=_0x47cbe5,_0x208f2c['exportSelectedListCustomFields']=_0x55c739,_0x208f2c['deleteListCustomField']=_0x5e2786,_0x208f2c['deleteSelectedListCustomFields']=_0x5c8994;function _0x4b5935(_0x501292,_0x3f5c37){const _0x49a9c6=_0x2261ab;_0x208f2c[_0x49a9c6(0x25f4)]=_0x501292,_0x208f2c[_0x49a9c6(0x2514)]=typeof _0x3f5c37!==_0x49a9c6(0x2274)?_0x3f5c37:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x208f2c[_0x49a9c6(0x1a56)]['ListId']=_0x208f2c[_0x49a9c6(0x25f4)]['id'],_0x208f2c[_0x49a9c6(0x1a56)]['id']=_0x208f2c[_0x49a9c6(0x25f4)]['id'],_0x469e6e();}function _0x33bf03(_0x43b25c,_0x6fafd2){const _0x38ece9=_0x2261ab,_0x15a16d=_0x5f1bcd[_0x38ece9(0x1e8a)]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20customField?')[_0x38ece9(0x1cbe)](_0x38ece9(0x16d3)+(_0x43b25c[_0x38ece9(0x19eb)]||_0x43b25c['id']&&_0x3f65c0()[_0x38ece9(0x21cf)](_0x38ece9(0xa97))+_0x43b25c['id']||_0x38ece9(0x165e))+''+'\x20will\x20be\x20deleted.')[_0x38ece9(0x4bd)](_0x38ece9(0x1d48))['targetEvent'](_0x6fafd2)['ok']('OK')[_0x38ece9(0x6c3)](_0x38ece9(0x39a));_0x5f1bcd[_0x38ece9(0x2615)](_0x15a16d)[_0x38ece9(0x146b)](function(){_0x5e2786(_0x43b25c);},function(){const _0x2e066f=_0x38ece9;console[_0x2e066f(0x1a74)]('CANCEL');});}function _0x300437(_0x991f9b){const _0x2fd2ef=_0x2261ab;_0x208f2c[_0x2fd2ef(0x2873)]=_0x991f9b||{'count':0x0,'rows':[]};}function _0x469e6e(){const _0x45090d=_0x2261ab;_0x208f2c['query'][_0x45090d(0x145d)]=(_0x208f2c[_0x45090d(0x1a56)][_0x45090d(0x844)]-0x1)*_0x208f2c[_0x45090d(0x1a56)][_0x45090d(0x221e)],_0x208f2c[_0x45090d(0xb9c)]=_0x44a7f2[_0x45090d(0xf03)][_0x45090d(0x2328)](_0x208f2c[_0x45090d(0x1a56)],_0x300437)['$promise'];}function _0x47cbe5(_0x5ebe46,_0x344749){const _0x4847b0=_0x2261ab;_0x5f1bcd[_0x4847b0(0x2615)]({'controller':_0x4847b0(0xa15),'controllerAs':'vm','templateUrl':_0x5aa7b7,'parent':angular[_0x4847b0(0x1853)](_0x12a7f3[_0x4847b0(0x2586)]),'targetEvent':_0x5ebe46,'clickOutsideToClose':!![],'locals':{'list':_0x208f2c['list'],'customField':_0x344749,'customFields':_0x208f2c[_0x4847b0(0x2873)][_0x4847b0(0x19c7)],'license':null,'setting':null,'crudPermissions':_0x208f2c['crudPermissions']}});}function _0x5e2786(_0x10ebe8){const _0x795a6f=_0x2261ab;_0x44a7f2[_0x795a6f(0x14a9)][_0x795a6f(0x1fac)]({'id':_0x10ebe8['id']})['$promise'][_0x795a6f(0x146b)](function(){const _0x4fc429=_0x795a6f;_0x3f65c0()[_0x4fc429(0x2640)](_0x208f2c[_0x4fc429(0x2873)][_0x4fc429(0x19c7)],{'id':_0x10ebe8['id']}),_0x208f2c[_0x4fc429(0x2873)][_0x4fc429(0x51c)]-=0x1,!_0x208f2c[_0x4fc429(0x2873)][_0x4fc429(0x19c7)][_0x4fc429(0x402)]&&_0x469e6e(),_0x16cedf[_0x4fc429(0x1c75)]({'title':'CustomField\x20deleted!','msg':_0x10ebe8[_0x4fc429(0x19eb)]?_0x10ebe8[_0x4fc429(0x19eb)]+_0x4fc429(0x23e3):''});})['catch'](function(_0x4bf153){const _0x18d812=_0x795a6f;if(_0x4bf153[_0x18d812(0x524)]&&_0x4bf153[_0x18d812(0x524)][_0x18d812(0xcef)]&&_0x4bf153['data'][_0x18d812(0xcef)][_0x18d812(0x402)]){_0x208f2c[_0x18d812(0xcef)]=_0x4bf153[_0x18d812(0x524)][_0x18d812(0xcef)]||[{'message':_0x4bf153[_0x18d812(0xd5f)](),'type':_0x18d812(0x184b)}];for(let _0x1627e2=0x0;_0x1627e2<_0x4bf153[_0x18d812(0x524)][_0x18d812(0xcef)][_0x18d812(0x402)];_0x1627e2++){_0x16cedf[_0x18d812(0x1980)]({'title':_0x4bf153[_0x18d812(0x524)][_0x18d812(0xcef)][_0x1627e2]['type'],'msg':_0x4bf153[_0x18d812(0x524)][_0x18d812(0xcef)][_0x1627e2][_0x18d812(0x7fd)]});}}else _0x16cedf['error']({'title':_0x4bf153['status']?_0x18d812(0x262a)+_0x4bf153[_0x18d812(0x107b)]+'\x20-\x20'+_0x4bf153[_0x18d812(0x167f)]:_0x18d812(0x184b),'msg':_0x4bf153[_0x18d812(0x524)]?JSON[_0x18d812(0x10bb)](_0x4bf153['data']['message']):_0x4bf153[_0x18d812(0x7fd)]||_0x4bf153[_0x18d812(0xd5f)]()});});}function _0x55c739(){const _0x5666ab=_0x2261ab,_0x3918a9=angular[_0x5666ab(0x235a)](_0x208f2c[_0x5666ab(0x107d)]);return _0x208f2c[_0x5666ab(0x107d)]=[],_0x3918a9;}function _0x5c8994(_0x443ed7){const _0x52de5c=_0x2261ab,_0x1d9bdb=_0x5f1bcd[_0x52de5c(0x1e8a)]()[_0x52de5c(0x1189)](_0x52de5c(0x654))[_0x52de5c(0x1cbe)](''+_0x208f2c[_0x52de5c(0x107d)][_0x52de5c(0x402)]+_0x52de5c(0x2452)+'\x20will\x20be\x20deleted.')[_0x52de5c(0x4bd)](_0x52de5c(0x25ef))[_0x52de5c(0x1f27)](_0x443ed7)['ok']('OK')[_0x52de5c(0x6c3)](_0x52de5c(0x39a));_0x5f1bcd[_0x52de5c(0x2615)](_0x1d9bdb)[_0x52de5c(0x146b)](function(){const _0x51b827=_0x52de5c;_0x208f2c[_0x51b827(0x107d)][_0x51b827(0x1df5)](function(_0x144ee3){_0x5e2786(_0x144ee3);}),_0x208f2c['selectedListCustomFields']=[];});}let _0xf7e7d5=!![],_0x2236e7=0x1;_0x2e3ae7[_0x2261ab(0x21e8)](_0x2261ab(0x117f),function(_0x5627f4,_0x5d9a0d){const _0x1a487e=_0x2261ab;_0xf7e7d5?_0x321559(function(){_0xf7e7d5=![];}):(!_0x5d9a0d&&(_0x2236e7=_0x208f2c[_0x1a487e(0x1a56)][_0x1a487e(0x844)]),_0x5627f4!==_0x5d9a0d&&(_0x208f2c[_0x1a487e(0x1a56)][_0x1a487e(0x844)]=0x1),!_0x5627f4&&(_0x208f2c[_0x1a487e(0x1a56)][_0x1a487e(0x844)]=_0x2236e7),_0x469e6e());});}const _0x12f938=_0x2bc479;;_0x5e3211['$inject']=[_0x313a4d(0x910),_0x313a4d(0x1862),_0x313a4d(0xd08),_0x313a4d(0x10e8),'$q',_0x313a4d(0x214b),_0x313a4d(0x1fe4),_0x313a4d(0x10ba),_0x313a4d(0x165e),_0x313a4d(0x247f),_0x313a4d(0xa87),_0x313a4d(0x2690),_0x313a4d(0x15b9),_0x313a4d(0x2514)];function _0x5e3211(_0x613002,_0x585bc4,_0x9d51e4,_0x419f63,_0x34d3f7,_0x15ffbd,_0x561f94,_0xafa5e8,_0x229f42,_0x2bbe45,_0xf50c9,_0x11b29a,_0x150de6,_0x3f1e03){const _0x2c23e6=_0x313a4d,_0x531a1c=this;_0x531a1c[_0x2c23e6(0x2321)]=_0xf50c9[_0x2c23e6(0xb12)](),_0x531a1c['errors']=[],_0x531a1c['setting']=_0x150de6,_0x531a1c['license']=_0x11b29a,_0x531a1c[_0x2c23e6(0x2514)]=_0x3f1e03,_0x531a1c[_0x2c23e6(0x855)]={},_0x531a1c['passwordPattern']=_0x531a1c[_0x2c23e6(0x15b9)]&&_0x531a1c[_0x2c23e6(0x15b9)][_0x2c23e6(0x976)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x531a1c[_0x2c23e6(0x1189)]=_0x2c23e6(0xe63),_0x531a1c[_0x2c23e6(0x20f5)]={'animation':0x320,'sort':!![],'onSort':function(){const _0x425ae8=_0x2c23e6;_0x613002[_0x425ae8(0x1467)][_0x425ae8(0x1c96)]=![];}},_0x531a1c[_0x2c23e6(0x165e)]=_0x229f42,_0x531a1c[_0x2c23e6(0x10ba)]=_0xafa5e8,_0x531a1c[_0x2c23e6(0x21d5)]=![];!_0x531a1c['customField']&&(_0x531a1c[_0x2c23e6(0x165e)]={'type':_0x2c23e6(0xa8d),'actionType':_0x2c23e6(0xe6)},_0x531a1c['title']=_0x2c23e6(0xe9a),_0x531a1c[_0x2c23e6(0x21d5)]=!![]);_0x585bc4[_0x2c23e6(0x16a)]['id']&&(_0x531a1c[_0x2c23e6(0x165e)][_0x2c23e6(0xb7c)]=_0x585bc4['params']['id']);_0x613002[_0x2c23e6(0x21e8)](_0x2c23e6(0x105a),function(_0x28494b,_0x180f84){const _0x4f2d8c=_0x2c23e6;if(_0x28494b!==_0x180f84)switch(_0x28494b){case _0x4f2d8c(0xa8d):_0x531a1c[_0x4f2d8c(0x165e)]['values']='';break;case'select':_0x531a1c[_0x4f2d8c(0x165e)][_0x4f2d8c(0x81b)]=[];break;default:}}),_0x531a1c[_0x2c23e6(0x2d9)]=_0x5bb606,_0x531a1c[_0x2c23e6(0x274)]=_0x1c2209,_0x531a1c[_0x2c23e6(0x1bc9)]=_0x5bea95,_0x531a1c[_0x2c23e6(0xe73)]=_0x2c39fa,_0x531a1c[_0x2c23e6(0x1e31)]=_0x1ae3b9,_0x531a1c[_0x2c23e6(0x246d)]=_0x1652a4,_0x531a1c[_0x2c23e6(0x2315)]=_0x2d6dc1,_0x531a1c[_0x2c23e6(0x13f3)]=_0x47dc31;function _0x1ae3b9(_0x51fe11){const _0xab85e=_0x2c23e6;_0x51fe11[_0xab85e(0x1f47)]({'value':'New\x20Item'}),_0x613002['customFieldForm']['$pristine']=![];}function _0x1652a4(_0x446672,_0x3dc02e){const _0x2ce102=_0x2c23e6;_0x446672['splice'](_0x3dc02e,0x1),_0x613002[_0x2ce102(0x1467)][_0x2ce102(0x1c96)]=![];}function _0x2d6dc1(_0x27d57c){const _0x4ccd01=_0x2c23e6,_0x3cc8c5=_0x27d57c[_0x4ccd01(0x402)];for(let _0x5d43a7=0x0;_0x5d43a7<_0x3cc8c5;_0x5d43a7++){_0x27d57c[_0x4ccd01(0x1f7d)](0x0,0x1);}_0x613002[_0x4ccd01(0x1467)][_0x4ccd01(0x1c96)]=![];}function _0x5bb606(){const _0x2e9201=_0x2c23e6;_0x531a1c[_0x2e9201(0xcef)]=[],_0x2bbe45[_0x2e9201(0xf03)][_0x2e9201(0x196d)]({'id':_0x585bc4[_0x2e9201(0x16a)]['id']},_0x531a1c[_0x2e9201(0x165e)])[_0x2e9201(0x2945)][_0x2e9201(0x146b)](function(_0x362a16){const _0x1e0de5=_0x2e9201;_0x531a1c[_0x1e0de5(0x10ba)][_0x1e0de5(0xb3d)](_0x362a16[_0x1e0de5(0x2488)]()),_0x561f94[_0x1e0de5(0x1c75)]({'title':_0x1e0de5(0x318),'msg':_0x531a1c[_0x1e0de5(0x165e)]['name']?_0x531a1c[_0x1e0de5(0x165e)]['name']+'\x20has\x20been\x20created!':''}),_0x47dc31(_0x362a16);})[_0x2e9201(0x129e)](function(_0x337c18){const _0x5a126c=_0x2e9201;if(_0x337c18[_0x5a126c(0x524)]&&_0x337c18['data'][_0x5a126c(0xcef)]&&_0x337c18[_0x5a126c(0x524)][_0x5a126c(0xcef)][_0x5a126c(0x402)]){_0x531a1c['errors']=_0x337c18['data'][_0x5a126c(0xcef)]||[{'message':_0x337c18[_0x5a126c(0xd5f)](),'type':_0x5a126c(0x1807)}];for(let _0x269d6a=0x0;_0x269d6a<_0x337c18[_0x5a126c(0x524)][_0x5a126c(0xcef)][_0x5a126c(0x402)];_0x269d6a+=0x1){_0x561f94[_0x5a126c(0x1980)]({'title':_0x337c18[_0x5a126c(0x524)]['errors'][_0x269d6a][_0x5a126c(0x1142)],'msg':_0x337c18['data'][_0x5a126c(0xcef)][_0x269d6a][_0x5a126c(0x7fd)]});}}else _0x561f94[_0x5a126c(0x1980)]({'title':_0x337c18[_0x5a126c(0x107b)]?'API:'+_0x337c18[_0x5a126c(0x107b)]+'\x20-\x20'+_0x337c18[_0x5a126c(0x167f)]:_0x5a126c(0x1807),'msg':_0x337c18[_0x5a126c(0x524)]?JSON[_0x5a126c(0x10bb)](_0x337c18['data'][_0x5a126c(0x7fd)]):_0x337c18[_0x5a126c(0xd5f)]()});});}function _0x1c2209(){const _0x41c522=_0x2c23e6;_0x531a1c['errors']=[],_0x2bbe45[_0x41c522(0x14a9)][_0x41c522(0x18e1)]({'id':_0x531a1c['customField']['id']},_0x531a1c[_0x41c522(0x165e)])['$promise'][_0x41c522(0x146b)](function(_0x1a7cc9){const _0x50a58e=_0x41c522,_0x1c89cd=_0x3f65c0()['find'](_0x531a1c[_0x50a58e(0x10ba)],{'id':_0x1a7cc9['id']});_0x1c89cd&&_0x3f65c0()[_0x50a58e(0x168d)](_0x1c89cd,_0x3f65c0()[_0x50a58e(0x40e)](_0x1a7cc9[_0x50a58e(0x2488)](),_0x3f65c0()['keys'](_0x1c89cd))),_0x561f94['success']({'title':_0x50a58e(0x210),'msg':_0x531a1c[_0x50a58e(0x165e)][_0x50a58e(0x19eb)]?_0x531a1c[_0x50a58e(0x165e)][_0x50a58e(0x19eb)]+_0x50a58e(0x24db):''}),_0x47dc31(_0x1a7cc9);})[_0x41c522(0x129e)](function(_0x293fd3){const _0x110d4c=_0x41c522;if(_0x293fd3[_0x110d4c(0x524)]&&_0x293fd3[_0x110d4c(0x524)][_0x110d4c(0xcef)]&&_0x293fd3[_0x110d4c(0x524)][_0x110d4c(0xcef)]['length']){_0x531a1c[_0x110d4c(0xcef)]=_0x293fd3[_0x110d4c(0x524)]['errors']||[{'message':_0x293fd3[_0x110d4c(0xd5f)](),'type':_0x110d4c(0x1b07)}];for(let _0xc46d9f=0x0;_0xc46d9f<_0x293fd3['data'][_0x110d4c(0xcef)][_0x110d4c(0x402)];_0xc46d9f++){_0x561f94[_0x110d4c(0x1980)]({'title':_0x293fd3[_0x110d4c(0x524)][_0x110d4c(0xcef)][_0xc46d9f][_0x110d4c(0x1142)],'msg':_0x293fd3[_0x110d4c(0x524)][_0x110d4c(0xcef)][_0xc46d9f][_0x110d4c(0x7fd)]});}}else _0x561f94[_0x110d4c(0x1980)]({'title':_0x293fd3[_0x110d4c(0x107b)]?_0x110d4c(0x262a)+_0x293fd3[_0x110d4c(0x107b)]+_0x110d4c(0x1315)+_0x293fd3[_0x110d4c(0x167f)]:_0x110d4c(0x1b07),'msg':_0x293fd3[_0x110d4c(0x524)]?JSON[_0x110d4c(0x10bb)](_0x293fd3[_0x110d4c(0x524)][_0x110d4c(0x7fd)]):_0x293fd3[_0x110d4c(0xd5f)]()});});}function _0x5bea95(_0x2775c8){const _0x376657=_0x2c23e6;_0x531a1c[_0x376657(0xcef)]=[];const _0x408fd6=_0x419f63[_0x376657(0x1e8a)]()[_0x376657(0x1189)](_0x376657(0x1d64))[_0x376657(0x80f)](_0x376657(0x1292))['ariaLabel'](_0x376657(0x1bfd))['ok'](_0x376657(0x25de))[_0x376657(0x6c3)]('Cancel')[_0x376657(0x1f27)](_0x2775c8);_0x419f63[_0x376657(0x2615)](_0x408fd6)[_0x376657(0x146b)](function(){const _0x464514=_0x376657;_0x2bbe45[_0x464514(0x14a9)][_0x464514(0x1fac)]({'id':_0x531a1c[_0x464514(0x165e)]['id']})['$promise'][_0x464514(0x146b)](function(){const _0x438b76=_0x464514;_0x3f65c0()[_0x438b76(0x2640)](_0x531a1c[_0x438b76(0x10ba)],{'id':_0x531a1c[_0x438b76(0x165e)]['id']}),_0x561f94[_0x438b76(0x1c75)]({'title':'CustomField\x20properly\x20deleted!','msg':(_0x531a1c[_0x438b76(0x165e)][_0x438b76(0x19eb)]||'customField')+_0x438b76(0x23e3)}),_0x47dc31(_0x531a1c[_0x438b76(0x165e)]);})[_0x464514(0x129e)](function(_0x367bfb){const _0x23a70e=_0x464514;if(_0x367bfb[_0x23a70e(0x524)]&&_0x367bfb[_0x23a70e(0x524)][_0x23a70e(0xcef)]&&_0x367bfb[_0x23a70e(0x524)][_0x23a70e(0xcef)][_0x23a70e(0x402)]){_0x531a1c[_0x23a70e(0xcef)]=_0x367bfb[_0x23a70e(0x524)][_0x23a70e(0xcef)]||[{'message':_0x367bfb[_0x23a70e(0xd5f)](),'type':'api.cmCustomField.delete'}];for(let _0x1caad1=0x0;_0x1caad1<_0x367bfb[_0x23a70e(0x524)]['errors'][_0x23a70e(0x402)];_0x1caad1++){_0x561f94[_0x23a70e(0x1980)]({'title':_0x367bfb[_0x23a70e(0x524)][_0x23a70e(0xcef)][_0x1caad1]['type'],'msg':_0x367bfb[_0x23a70e(0x524)]['errors'][_0x1caad1][_0x23a70e(0x7fd)]});}}else _0x561f94[_0x23a70e(0x1980)]({'title':_0x367bfb[_0x23a70e(0x107b)]?'API:'+_0x367bfb[_0x23a70e(0x107b)]+'\x20-\x20'+_0x367bfb[_0x23a70e(0x167f)]:_0x23a70e(0x1676),'msg':_0x367bfb[_0x23a70e(0x524)]?JSON[_0x23a70e(0x10bb)](_0x367bfb[_0x23a70e(0x524)][_0x23a70e(0x7fd)]):_0x367bfb[_0x23a70e(0x7fd)]||_0x367bfb[_0x23a70e(0xd5f)]()});});},function(){});}function _0x2c39fa(_0x4c391f){return _0x4c391f===null?undefined:new Date(_0x4c391f);}function _0x47dc31(_0x259ede){_0x419f63['hide'](_0x259ede);}}const _0x2c6862=_0x5e3211;;const _0x25b054=_0x4acfac['p']+_0x313a4d(0x1722);;_0x4ae547['$inject']=[_0x313a4d(0x1862),_0x313a4d(0xd08),_0x313a4d(0x10e8),_0x313a4d(0x4d8),_0x313a4d(0x214b),_0x313a4d(0x2690),_0x313a4d(0x15b9),_0x313a4d(0x247f),_0x313a4d(0x1fe4),_0x313a4d(0xa87),_0x313a4d(0x25f4),_0x313a4d(0x1366)];function _0x4ae547(_0x4eeaaa,_0x585b60,_0x29e0aa,_0x33a6c2,_0x46ce15,_0x5c6479,_0x3b7a51,_0x1f2df0,_0x1fc066,_0x148de3,_0x1899ef,_0x207b88){const _0x211633=_0x313a4d,_0x4a7643=this;_0x4a7643[_0x211633(0x2321)]=_0x148de3[_0x211633(0xb12)](),_0x4a7643[_0x211633(0x2690)]=_0x5c6479,_0x4a7643[_0x211633(0x15b9)]=_0x3b7a51,_0x4a7643['passwordPattern']=_0x4a7643['setting'][_0x211633(0x976)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x4a7643[_0x211633(0x1002)]=_0x585b60[_0x211633(0x2414)]()+'://'+_0x585b60['host'](),_0x4a7643[_0x211633(0x25f4)]=_0x1899ef||_0x4eeaaa[_0x211633(0x16a)][_0x211633(0x25f4)]||{},_0x4a7643['userProfileSection']=_0x207b88&&_0x207b88[_0x211633(0x51c)]==0x1?_0x207b88['rows'][0x0]:null,_0x4a7643[_0x211633(0x2514)]=_0x148de3['parseCrudPermissions'](_0x4a7643[_0x211633(0x1366)]?_0x4a7643[_0x211633(0x1366)][_0x211633(0x2514)]:null),_0x4a7643[_0x211633(0x855)]={},_0x4a7643[_0x211633(0x1b09)]=_0x4eeaaa[_0x211633(0x16a)]['tab']||0x0,_0x4a7643[_0x211633(0x3a9)]=_0x430569,_0x4a7643['agentadddialog']=_0x3a421e,_0x4a7643['alert']=_0x1fc066['info'],_0x4a7643['gotoLists']=_0x20c0ae,_0x4a7643[_0x211633(0xbfb)]=_0x9cab10;function _0x430569(_0x11e0e4){const _0x296b70=_0x211633;if(_0x148de3[_0x296b70(0x23e0)](_0x296b70(0x174b)))_0x4eeaaa['go']('app.contactmanager.contacts',{'ListId':_0x11e0e4['id']});else return _0x1f2df0[_0x296b70(0x1366)][_0x296b70(0x16b4)]({'userProfileId':_0x148de3['getCurrentUser']()[_0x296b70(0x209a)],'sectionId':0x12f})[_0x296b70(0x2945)][_0x296b70(0x146b)](function(_0x5e7c1c){const _0x4417eb=_0x296b70,_0x53e285=_0x5e7c1c&&_0x5e7c1c[_0x4417eb(0x19c7)]?_0x5e7c1c['rows'][0x0]:null;_0x53e285&&_0x53e285[_0x4417eb(0x193e)]?_0x4eeaaa['go'](_0x4417eb(0x23fa),{'ListId':_0x11e0e4['id']}):_0x1fc066[_0x4417eb(0x271e)]({'title':_0x46ce15['instant'](_0x4417eb(0xb27)),'msg':_0x46ce15[_0x4417eb(0xde)]('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_MESSAGE')});})['catch'](function(_0x489f27){const _0x196f97=_0x296b70;_0x1fc066['error']({'title':_0x489f27['status']?_0x196f97(0x262a)+_0x489f27[_0x196f97(0x107b)]+_0x196f97(0x1315)+_0x489f27[_0x196f97(0x167f)]:'USERPROFILE:GET_SECTION','msg':_0x489f27['status']?JSON[_0x196f97(0x10bb)](_0x489f27[_0x196f97(0x524)]):_0x489f27['toString']()});});}function _0x3a421e(_0x425783,_0x5bf6bc){const _0x4ceb8e=_0x211633;_0x29e0aa[_0x4ceb8e(0x2615)]({'controller':_0x4ceb8e(0x207a),'controllerAs':'vm','templateUrl':_0x25b054,'parent':angular[_0x4ceb8e(0x1853)](_0x33a6c2[_0x4ceb8e(0x2586)]),'targetEvent':_0x5bf6bc,'clickOutsideToClose':!![],'locals':{'list':_0x425783,'lists':_0x4a7643[_0x4ceb8e(0x1324)]?_0x4a7643['lists'][_0x4ceb8e(0x19c7)]:[],'crudPermissions':_0x4a7643['crudPermissions'],'realtime':![]}});}function _0x20c0ae(){const _0x2c84b8=_0x211633;_0x4eeaaa['go'](_0x2c84b8(0x26ec),{},{'reload':_0x2c84b8(0x26ec)});}function _0x9cab10(){const _0x26d2c5=_0x211633;_0x1f2df0[_0x26d2c5(0xf03)][_0x26d2c5(0x18e1)]({'id':_0x4a7643[_0x26d2c5(0x25f4)]['id']},_0x4a7643[_0x26d2c5(0x25f4)])[_0x26d2c5(0x2945)]['then'](function(){const _0x3d9003=_0x26d2c5;_0x1fc066[_0x3d9003(0x1c75)]({'title':'List\x20updated!','msg':_0x4a7643[_0x3d9003(0x25f4)][_0x3d9003(0x19eb)]?_0x4a7643[_0x3d9003(0x25f4)]['name']+_0x3d9003(0x6b0):''});})[_0x26d2c5(0x129e)](function(_0x443297){const _0x534b1f=_0x26d2c5;_0x1fc066[_0x534b1f(0x1980)]({'title':_0x443297[_0x534b1f(0x107b)]?'API:'+_0x443297[_0x534b1f(0x107b)]+_0x534b1f(0x1315)+_0x443297[_0x534b1f(0x167f)]:'SYSTEM:GETcmList','msg':_0x443297[_0x534b1f(0x524)]?JSON[_0x534b1f(0x10bb)](_0x443297[_0x534b1f(0x524)]):_0x443297[_0x534b1f(0xd5f)]()});});}}const _0x408672=_0x4ae547;;const _0x4f093a=_0x4acfac['p']+'src/js/modules/main/apps/tools/views/dispositions/create/dialog.html/dialog.html';;_0xd338a6[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1aa9),_0x313a4d(0x1862),_0x313a4d(0x15fe),'$mdDialog',_0x313a4d(0x4d8),_0x313a4d(0x1abe),_0x313a4d(0x214b),'api',_0x313a4d(0x1fe4),_0x313a4d(0xa87)];function _0xd338a6(_0x96aab2,_0x25c18b,_0x46c8f4,_0x153404,_0x4102ed,_0x452c52,_0x16c9f3,_0x5066a7,_0x2c1586,_0xab0519,_0x4ca914){const _0x5d55b6=_0x313a4d,_0x35fe44=this;_0x35fe44['currentUser']=_0x4ca914[_0x5d55b6(0xb12)](),_0x35fe44[_0x5d55b6(0x2647)]={'count':0x0,'rows':[]},_0x35fe44[_0x5d55b6(0x2ad)]=[],_0x35fe44[_0x5d55b6(0x2514)],_0x35fe44[_0x5d55b6(0xd92)]={'first':'1st','second':_0x5d55b6(0x227b),'third':_0x5d55b6(0x1195)},_0x35fe44['query']={'fields':_0x5d55b6(0x2430),'sort':_0x5d55b6(0x12f2),'limit':0xa,'page':0x1},_0x35fe44[_0x5d55b6(0x5aa)]=_0x446606,_0x35fe44['deleteConfirm']=_0x2fbb6e,_0x35fe44[_0x5d55b6(0x1c75)]=_0x283979,_0x35fe44[_0x5d55b6(0x2451)]=_0xbac234,_0x35fe44[_0x5d55b6(0x24dc)]=_0x5af5ea,_0x35fe44[_0x5d55b6(0x1220)]=_0x22c5f5,_0x35fe44[_0x5d55b6(0x25f0)]=_0x577ab8,_0x35fe44[_0x5d55b6(0x11e4)]=_0x434c5a,_0x35fe44['deselectDispositions']=_0x3fb8ee,_0x35fe44[_0x5d55b6(0x481)]=_0x1febf4;function _0x446606(_0x5c689c,_0x134f79){const _0x2ec214=_0x5d55b6;_0x35fe44['list']=_0x5c689c||{},_0x35fe44[_0x2ec214(0x2514)]=typeof _0x134f79!==_0x2ec214(0x2274)?_0x134f79:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x35fe44[_0x2ec214(0x1a56)]['ListId']=_0x35fe44[_0x2ec214(0x25f4)]['id'],_0x35fe44[_0x2ec214(0x1a56)]['id']=_0x35fe44['list']['id'],_0xbac234();}function _0x5af5ea(_0x2f6a00,_0x443bb4){const _0xe66e9a=_0x5d55b6;_0x4102ed[_0xe66e9a(0x2615)]({'controller':'CreateOrEditDispositionDialogController','controllerAs':'vm','templateUrl':_0x4f093a,'parent':angular[_0xe66e9a(0x1853)](_0x452c52[_0xe66e9a(0x2586)]),'targetEvent':_0x2f6a00,'clickOutsideToClose':!![],'locals':{'disposition':_0x443bb4,'model':{'id':_0x35fe44[_0xe66e9a(0x25f4)]['id'],'field':'ListId','route':_0xe66e9a(0xf03)},'license':null,'setting':null,'crudPermissions':_0x35fe44[_0xe66e9a(0x2514)]}})[_0xe66e9a(0x146b)](function(_0x5307f1){if(_0x5307f1)_0xbac234();});}function _0x2fbb6e(_0x339cd1,_0x83993c){const _0x298218=_0x5d55b6,_0x29e7ae=_0x3f65c0()['some'](_0x35fe44['dispositions']['rows'],[_0x298218(0x11b5),_0x339cd1['id']]),_0x340d1f=_0x4102ed['confirm']()[_0x298218(0x1189)](_0x5066a7['instant']('TOOLS.NOTIFICATIONS.DISPOSITION_DELETE_TITLE'))['content'](_0x5066a7['instant'](_0x298218(0xe8d)+(_0x29e7ae?_0x298218(0xda9):_0x298218(0xd49)),{'name':_0x339cd1[_0x298218(0x19eb)]}))['ariaLabel'](_0x298218(0x27d1))[_0x298218(0x1f27)](_0x83993c)['ok']('OK')[_0x298218(0x6c3)](_0x5066a7[_0x298218(0xde)]('APP.CANCEL'));_0x4102ed[_0x298218(0x2615)](_0x340d1f)[_0x298218(0x146b)](function(){_0x22c5f5(_0x339cd1);});}function _0x283979(_0x4fb9e7){const _0x2bcb60=_0x5d55b6;_0x35fe44[_0x2bcb60(0x2647)]=_0x4fb9e7||{'count':0x0,'rows':[]};}function _0xbac234(){const _0x312083=_0x5d55b6;_0x35fe44[_0x312083(0x1a56)][_0x312083(0x145d)]=(_0x35fe44[_0x312083(0x1a56)][_0x312083(0x844)]-0x1)*_0x35fe44[_0x312083(0x1a56)]['limit'],_0x35fe44[_0x312083(0xb9c)]=_0x2c1586[_0x312083(0xf03)][_0x312083(0x2451)](_0x35fe44[_0x312083(0x1a56)],_0x283979)[_0x312083(0x2945)];}function _0x22c5f5(_0x4bb03b){const _0x129b41=_0x5d55b6;_0x2c1586[_0x129b41(0x9e1)][_0x129b41(0x1fac)]({'id':_0x4bb03b['id']})[_0x129b41(0x2945)]['then'](function(){const _0x2013ee=_0x129b41;_0xbac234(),_0xab0519[_0x2013ee(0x1c75)]({'title':_0x5066a7[_0x2013ee(0xde)](_0x2013ee(0xa2f))});})[_0x129b41(0x129e)](function(_0x4eb561){const _0x5494be=_0x129b41;if(_0x4eb561[_0x5494be(0x524)]&&_0x4eb561['data']['errors']&&_0x4eb561[_0x5494be(0x524)][_0x5494be(0xcef)][_0x5494be(0x402)]){_0x35fe44[_0x5494be(0xcef)]=_0x4eb561[_0x5494be(0x524)]['errors']||[{'message':_0x4eb561[_0x5494be(0xd5f)](),'type':_0x5494be(0x24a7)}];for(let _0x160d00=0x0;_0x160d00<_0x4eb561[_0x5494be(0x524)][_0x5494be(0xcef)]['length'];_0x160d00++){_0xab0519['error']({'title':_0x4eb561[_0x5494be(0x524)][_0x5494be(0xcef)][_0x160d00]['type'],'msg':_0x4eb561[_0x5494be(0x524)][_0x5494be(0xcef)][_0x160d00][_0x5494be(0x7fd)]});}}else _0xab0519['error']({'title':_0x4eb561[_0x5494be(0x107b)]?_0x5494be(0x262a)+_0x4eb561[_0x5494be(0x107b)]+_0x5494be(0x1315)+_0x4eb561[_0x5494be(0x167f)]:_0x5494be(0x24a7),'msg':_0x4eb561[_0x5494be(0x524)]?JSON[_0x5494be(0x10bb)](_0x4eb561[_0x5494be(0x524)]['message']):_0x4eb561[_0x5494be(0x7fd)]||_0x4eb561['toString']()});});}function _0x577ab8(){const _0x50a334=_0x5d55b6,_0x27e0f1=angular[_0x50a334(0x235a)](_0x35fe44[_0x50a334(0x2ad)]);return _0x35fe44[_0x50a334(0x2ad)]=[],_0x27e0f1;}function _0x434c5a(_0x4af5fe){const _0x1495e9=_0x5d55b6,_0xd6f6ef=_0x4102ed[_0x1495e9(0x1e8a)]()[_0x1495e9(0x1189)](_0x5066a7[_0x1495e9(0xde)](_0x1495e9(0x1a5b)))[_0x1495e9(0x80f)](_0x5066a7[_0x1495e9(0xde)](_0x1495e9(0x23ce),{'total':_0x35fe44[_0x1495e9(0x2ad)][_0x1495e9(0x402)]}))['ariaLabel'](_0x1495e9(0x1eb0))[_0x1495e9(0x1f27)](_0x4af5fe)['ok']('OK')[_0x1495e9(0x6c3)](_0x5066a7[_0x1495e9(0xde)](_0x1495e9(0x1161)));_0x4102ed[_0x1495e9(0x2615)](_0xd6f6ef)[_0x1495e9(0x146b)](function(){const _0x41ead9=_0x1495e9;_0x35fe44[_0x41ead9(0x2ad)][_0x41ead9(0x1df5)](function(_0x85a1c4){_0x22c5f5(_0x85a1c4);}),_0x35fe44[_0x41ead9(0x2ad)]=[];});}function _0x3fb8ee(){const _0x3224ae=_0x5d55b6;_0x35fe44[_0x3224ae(0x2ad)]=[];}function _0x1febf4(){const _0x39f2e4=_0x5d55b6;_0x35fe44[_0x39f2e4(0x2ad)]=_0x35fe44['dispositions'][_0x39f2e4(0x19c7)];}let _0x44fe44=!![],_0x3dd3f7=0x1;_0x96aab2['$watch'](_0x5d55b6(0x117f),function(_0x4a65b9,_0x1f7081){const _0x529f80=_0x5d55b6;_0x44fe44?_0x16c9f3(function(){_0x44fe44=![];}):(!_0x1f7081&&(_0x3dd3f7=_0x35fe44['query']['page']),_0x4a65b9!==_0x1f7081&&(_0x35fe44[_0x529f80(0x1a56)]['page']=0x1),!_0x4a65b9&&(_0x35fe44[_0x529f80(0x1a56)][_0x529f80(0x844)]=_0x3dd3f7),_0xbac234());});}const _0x67a0d7=_0xd338a6;;const _0x50f64a=_0x4acfac['p']+'src/js/modules/main/apps/contactmanager/views/lists/create/dialog.html/dialog.html';;_0x4d03d6['$inject']=[_0x313a4d(0x910),_0x313a4d(0x1aa9),_0x313a4d(0x1862),_0x313a4d(0x15fe),'$mdDialog','$document','$timeout',_0x313a4d(0x214b),_0x313a4d(0x1324),_0x313a4d(0x26b6),_0x313a4d(0x1366),_0x313a4d(0x247f),_0x313a4d(0x216c),_0x313a4d(0x1fe4),_0x313a4d(0xa87),_0x313a4d(0x2690),_0x313a4d(0x15b9)];function _0x4d03d6(_0x24e73b,_0xbe91ce,_0x6f35e4,_0x25ce90,_0x17a4ec,_0x547082,_0x4def5c,_0x222858,_0x3d715d,_0x5ec786,_0x5e83e5,_0x45dbe4,_0x53b8d3,_0x981b82,_0x2283e1,_0x332e76,_0x5d5d26){const _0x587447=_0x313a4d,_0x1b1a3e=this;_0x1b1a3e[_0x587447(0x2690)]=_0x332e76,_0x1b1a3e[_0x587447(0x15b9)]=_0x5d5d26,_0x1b1a3e[_0x587447(0x2321)]=_0x2283e1['getCurrentUser'](),_0x1b1a3e[_0x587447(0x1324)]=_0x3d715d||{'count':0x0,'rows':[]},_0x1b1a3e['userProfile']=_0x5ec786,_0x1b1a3e[_0x587447(0x1366)]=_0x5e83e5&&_0x5e83e5[_0x587447(0x51c)]==0x1?_0x5e83e5[_0x587447(0x19c7)][0x0]:null,_0x1b1a3e[_0x587447(0x2514)]=_0x2283e1[_0x587447(0xe60)](_0x1b1a3e[_0x587447(0x1366)]?_0x1b1a3e[_0x587447(0x1366)][_0x587447(0x2514)]:null),_0x1b1a3e[_0x587447(0x768)]='lists',_0x1b1a3e[_0x587447(0x216a)]='',_0x1b1a3e[_0x587447(0x214f)]=null,_0x1b1a3e[_0x587447(0x10f2)]=[],_0x1b1a3e[_0x587447(0x1a56)]={'fields':_0x587447(0x1929),'sort':'-updatedAt','limit':0xa,'page':0x1},_0x1b1a3e[_0x587447(0x23f9)]=_0x34fa7a,_0x1b1a3e[_0x587447(0x17b0)]=_0x40f5cb,_0x1b1a3e[_0x587447(0x2607)]=_0x3b476e,_0x1b1a3e['agentadddialog']=_0x2b6503,_0x1b1a3e[_0x587447(0xf0a)]=_0xb11a2,_0x1b1a3e['success']=_0x38c678,_0x1b1a3e[_0x587447(0x233d)]=_0x56ec5a,_0x1b1a3e[_0x587447(0x1a92)]=_0x21829b,_0x1b1a3e[_0x587447(0x2638)]=_0x40ec29,_0x1b1a3e[_0x587447(0x6f4)]=_0x4ddaef,_0x1b1a3e[_0x587447(0x198e)]=_0x558abb,_0x1b1a3e[_0x587447(0xaab)]=_0x32b495,_0x1b1a3e[_0x587447(0x170e)]=_0x3cd6c5;function _0x34fa7a(_0x4208ec){const _0x121ab5=_0x587447;_0x6f35e4['go'](_0x121ab5(0x357),{'id':_0x4208ec['id'],'list':_0x4208ec,'crudPermissions':_0x1b1a3e[_0x121ab5(0x2514)]});}function _0x40f5cb(_0x3884e8){const _0x25ba23=_0x587447;if(_0x2283e1[_0x25ba23(0x23e0)]('admin'))_0x6f35e4['go'](_0x25ba23(0x23fa),{'ListId':_0x3884e8['id']});else return _0x45dbe4['userProfileSection'][_0x25ba23(0x16b4)]({'userProfileId':_0x2283e1[_0x25ba23(0xb12)]()[_0x25ba23(0x209a)],'sectionId':0x12f})['$promise']['then'](function(_0x1512a0){const _0xd75ada=_0x25ba23,_0x5492a1=_0x1512a0&&_0x1512a0[_0xd75ada(0x19c7)]?_0x1512a0[_0xd75ada(0x19c7)][0x0]:null;_0x5492a1&&_0x5492a1[_0xd75ada(0x193e)]?_0x6f35e4['go'](_0xd75ada(0x23fa),{'ListId':_0x3884e8['id']}):_0x981b82[_0xd75ada(0x271e)]({'title':_0x222858[_0xd75ada(0xde)](_0xd75ada(0xb27)),'msg':_0x222858[_0xd75ada(0xde)](_0xd75ada(0x174a))});})[_0x25ba23(0x129e)](function(_0x4adec1){const _0x8489f3=_0x25ba23;_0x981b82[_0x8489f3(0x1980)]({'title':_0x4adec1[_0x8489f3(0x107b)]?_0x8489f3(0x262a)+_0x4adec1[_0x8489f3(0x107b)]+'\x20-\x20'+_0x4adec1[_0x8489f3(0x167f)]:'USERPROFILE:GET_SECTION','msg':_0x4adec1[_0x8489f3(0x107b)]?JSON[_0x8489f3(0x10bb)](_0x4adec1[_0x8489f3(0x524)]):_0x4adec1[_0x8489f3(0xd5f)]()});});}function _0x3b476e(_0x3980c0){const _0x36eaac=_0x587447;return _0x45dbe4[_0x36eaac(0xf03)][_0x36eaac(0x27e1)]({'id':_0x3980c0['id'],'nolimit':!![]})[_0x36eaac(0x2945)]['then'](function(_0x3d072d){const _0x3ae572=_0x36eaac;if(typeof _0x3d072d['length']!==_0x3ae572(0x2274)){const _0x2f0977=[_0x3d072d[_0x3ae572(0x2eb)]],_0x517270=new Blob(_0x2f0977,{'type':_0x3d072d[_0x3ae572(0x1142)]}),_0x3ae27e=window[_0x3ae572(0xef3)]['createElement']('a');_0x3ae27e[_0x3ae572(0x1652)]('href',URL[_0x3ae572(0x1c58)](_0x517270)),_0x3ae27e[_0x3ae572(0x1652)]('download','exportContacts_'+_0x3980c0['id']+_0x3ae572(0x1e1b)),_0x3ae27e[_0x3ae572(0x1fa5)]();}else _0x981b82[_0x3ae572(0x271e)]({'title':_0x3ae572(0x6bb),'msg':'The\x20list\x20is\x20empty'});})['catch'](function(_0x5d0274){const _0x69b11a=_0x36eaac;_0x981b82[_0x69b11a(0x1980)]({'title':_0x5d0274['status']?_0x69b11a(0x262a)+_0x5d0274[_0x69b11a(0x107b)]+_0x69b11a(0x1315)+_0x5d0274[_0x69b11a(0x167f)]:_0x69b11a(0x184b),'msg':_0x5d0274[_0x69b11a(0x524)]?JSON['stringify'](_0x5d0274[_0x69b11a(0x524)]):_0x5d0274['toString']()});});}function _0x2b6503(_0x10a036,_0x14a707){const _0x3ccb0a=_0x587447;_0x17a4ec[_0x3ccb0a(0x2615)]({'controller':_0x3ccb0a(0x207a),'controllerAs':'vm','templateUrl':_0x25b054,'parent':angular['element'](_0x547082[_0x3ccb0a(0x2586)]),'targetEvent':_0x14a707,'clickOutsideToClose':!![],'locals':{'list':_0x10a036,'lists':_0x1b1a3e[_0x3ccb0a(0x1324)]?_0x1b1a3e[_0x3ccb0a(0x1324)][_0x3ccb0a(0x19c7)]:[],'crudPermissions':_0x1b1a3e[_0x3ccb0a(0x2514)],'realtime':![]}});}function _0xb11a2(_0x5192ce,_0x27e58a){const _0x308945=_0x587447,_0x6e9d2=_0x17a4ec[_0x308945(0x1e8a)]()[_0x308945(0x1189)](_0x308945(0xdb2)+_0x3f65c0()[_0x308945(0x20d1)](_0x308945(0x25f4))+'?')[_0x308945(0x1cbe)](''+(_0x5192ce[_0x308945(0x19eb)]||_0x308945(0x25f4))+''+_0x308945(0xe01))[_0x308945(0x4bd)](_0x308945(0x1533))[_0x308945(0x1f27)](_0x27e58a)['ok']('OK')[_0x308945(0x6c3)]('CANCEL');_0x17a4ec[_0x308945(0x2615)](_0x6e9d2)[_0x308945(0x146b)](function(){_0x40ec29(_0x5192ce);},function(){const _0x281df3=_0x308945;console[_0x281df3(0x1a74)](_0x281df3(0x39a));});}let _0x1bf526=!![],_0x542fc8=0x1;_0x24e73b[_0x587447(0x21e8)](_0x587447(0x2669),function(_0x168bfb,_0xf24f3d){const _0x57458e=_0x587447;_0x1bf526?_0x4def5c(function(){_0x1bf526=![];}):(!_0xf24f3d&&(_0x542fc8=_0x1b1a3e[_0x57458e(0x1a56)][_0x57458e(0x844)]),_0x168bfb!==_0xf24f3d&&(_0x1b1a3e['query'][_0x57458e(0x844)]=0x1),!_0x168bfb&&(_0x1b1a3e[_0x57458e(0x1a56)][_0x57458e(0x844)]=_0x542fc8),_0x1b1a3e[_0x57458e(0x233d)]());});function _0x38c678(_0x3d334f){const _0x35486d=_0x587447;_0x1b1a3e[_0x35486d(0x1324)]=_0x3d334f||{'count':0x0,'rows':[]};}function _0x56ec5a(){const _0x3902f3=_0x587447;_0x1b1a3e[_0x3902f3(0x1a56)][_0x3902f3(0x145d)]=(_0x1b1a3e[_0x3902f3(0x1a56)][_0x3902f3(0x844)]-0x1)*_0x1b1a3e['query'][_0x3902f3(0x221e)],_0x2283e1[_0x3902f3(0x23e0)](_0x3902f3(0x174b))?_0x1b1a3e[_0x3902f3(0xb9c)]=_0x45dbe4[_0x3902f3(0xf03)][_0x3902f3(0x16b4)](_0x1b1a3e['query'],_0x38c678)['$promise']:(_0x1b1a3e[_0x3902f3(0x1a56)]['id']=_0x1b1a3e[_0x3902f3(0x26b6)]['id'],_0x1b1a3e['query'][_0x3902f3(0x2146)]=_0x3902f3(0x174f),_0x1b1a3e[_0x3902f3(0xb9c)]=_0x45dbe4['userProfile'][_0x3902f3(0x158f)](_0x1b1a3e['query'],_0x38c678)['$promise']);}function _0x21829b(_0x286bec,_0x1e3862){const _0x333789=_0x587447;_0x17a4ec[_0x333789(0x2615)]({'controller':_0x333789(0x28d5),'controllerAs':'vm','templateUrl':_0x50f64a,'parent':angular['element'](_0x547082[_0x333789(0x2586)]),'targetEvent':_0x286bec,'clickOutsideToClose':!![],'locals':{'list':_0x1e3862,'lists':_0x1b1a3e[_0x333789(0x1324)][_0x333789(0x19c7)],'license':_0x1b1a3e[_0x333789(0x2690)],'setting':_0x1b1a3e[_0x333789(0x15b9)],'crudPermissions':_0x1b1a3e['crudPermissions']}});}function _0x40ec29(_0x5b0c86){const _0xa8b664=_0x587447;_0x45dbe4['cmList'][_0xa8b664(0x1fac)]({'id':_0x5b0c86['id']})[_0xa8b664(0x2945)]['then'](function(){const _0x3f7d5e=_0xa8b664;_0x3f65c0()['remove'](_0x1b1a3e[_0x3f7d5e(0x1324)][_0x3f7d5e(0x19c7)],{'id':_0x5b0c86['id']}),_0x1b1a3e[_0x3f7d5e(0x1324)]['count']-=0x1,!_0x1b1a3e[_0x3f7d5e(0x1324)][_0x3f7d5e(0x19c7)][_0x3f7d5e(0x402)]&&_0x1b1a3e['getLists'](),_0x981b82[_0x3f7d5e(0x1c75)]({'title':_0x3f65c0()['startCase'](_0x3f7d5e(0x1940))+'\x20deleted!','msg':_0x5b0c86['name']?_0x5b0c86['name']+_0x3f7d5e(0x23e3):''});})[_0xa8b664(0x129e)](function(_0xb28617){const _0x5dcaf7=_0xa8b664;if(_0xb28617[_0x5dcaf7(0x524)]&&_0xb28617['data'][_0x5dcaf7(0xcef)]&&_0xb28617[_0x5dcaf7(0x524)]['errors'][_0x5dcaf7(0x402)]){_0x1b1a3e['errors']=_0xb28617[_0x5dcaf7(0x524)][_0x5dcaf7(0xcef)]||[{'message':_0xb28617[_0x5dcaf7(0xd5f)](),'type':_0x5dcaf7(0x275d)}];for(let _0x61bffb=0x0;_0x61bffb<_0xb28617[_0x5dcaf7(0x524)][_0x5dcaf7(0xcef)][_0x5dcaf7(0x402)];_0x61bffb++){_0x981b82[_0x5dcaf7(0x1980)]({'title':_0xb28617[_0x5dcaf7(0x524)][_0x5dcaf7(0xcef)][_0x61bffb][_0x5dcaf7(0x1142)],'msg':_0xb28617[_0x5dcaf7(0x524)][_0x5dcaf7(0xcef)][_0x61bffb][_0x5dcaf7(0x7fd)]});}}else _0x981b82[_0x5dcaf7(0x1980)]({'title':_0xb28617[_0x5dcaf7(0x107b)]?_0x5dcaf7(0x262a)+_0xb28617[_0x5dcaf7(0x107b)]+_0x5dcaf7(0x1315)+_0xb28617['statusText']:'SYSTEM:DELETEcmList','msg':_0xb28617[_0x5dcaf7(0x524)]?JSON[_0x5dcaf7(0x10bb)](_0xb28617['data'][_0x5dcaf7(0x7fd)]):_0xb28617[_0x5dcaf7(0x7fd)]||_0xb28617[_0x5dcaf7(0xd5f)]()});});}function _0x4ddaef(){const _0x300e19=_0x587447,_0x495c03=angular['copy'](_0x1b1a3e['selectedLists']);return _0x1b1a3e[_0x300e19(0x10f2)]=[],_0x495c03;}function _0x558abb(_0xea7e5f){const _0x148399=_0x587447,_0x423bec=_0x17a4ec['confirm']()['title'](_0x148399(0x1ca3))[_0x148399(0x1cbe)](_0x148399(0x16d3)+_0x1b1a3e[_0x148399(0x10f2)]['length']+_0x148399(0x2452)+_0x148399(0xe01))[_0x148399(0x4bd)]('delete\x20Lists')[_0x148399(0x1f27)](_0xea7e5f)['ok']('OK')[_0x148399(0x6c3)](_0x148399(0x39a));_0x17a4ec[_0x148399(0x2615)](_0x423bec)[_0x148399(0x146b)](function(){const _0x2f241d=_0x148399;_0x1b1a3e['selectedLists'][_0x2f241d(0x1df5)](function(_0x16fae3){_0x40ec29(_0x16fae3);}),_0x1b1a3e[_0x2f241d(0x10f2)]=[];});}function _0x32b495(){const _0xd58675=_0x587447;_0x1b1a3e[_0xd58675(0x10f2)]=[];}function _0x3cd6c5(){const _0x3597a8=_0x587447;_0x1b1a3e[_0x3597a8(0x10f2)]=_0x1b1a3e[_0x3597a8(0x1324)][_0x3597a8(0x19c7)];}}const _0xca7ba4=_0x4d03d6;;const _0x26d50f=_0x4acfac['p']+'src/js/modules/main/apps/contactmanager/views/lists/lists.html/lists.html';;const _0x322d98=_0x4acfac['p']+_0x313a4d(0x1e1a);;const _0xc770ff=_0x4acfac['p']+_0x313a4d(0x2023);;const _0x47698e=_0x4acfac['p']+_0x313a4d(0x2930);;const _0x558b5f=_0x4acfac['p']+_0x313a4d(0x26ac);;_0x536387[_0x313a4d(0x11c2)]=[_0x313a4d(0x921),'$translatePartialLoaderProvider'];function _0x536387(_0x380462,_0x4be9c7){const _0x5d4a01=_0x313a4d;_0x380462[_0x5d4a01(0x13d6)](_0x5d4a01(0x1d7a),{'abstract':!![],'url':_0x5d4a01(0x113c)})['state'](_0x5d4a01(0x26ec),{'url':_0x5d4a01(0x2115),'views':{'content@app':{'templateUrl':_0x26d50f,'controller':_0x5d4a01(0x238a)}},'resolve':{'lists':['apiResolver',_0x5d4a01(0xa87),function(_0x270062,_0x54ce64){const _0x35787f=_0x5d4a01;return _0x54ce64[_0x35787f(0x23e0)](_0x35787f(0x174b))?_0x270062[_0x35787f(0x2922)](_0x35787f(0xd64),{'fields':_0x35787f(0x1929),'sort':_0x35787f(0x12f2),'limit':0xa,'offset':0x0}):_0x270062['resolve'](_0x35787f(0x938),{'id':_0x54ce64['getCurrentUser']()['userProfileId'],'section':_0x35787f(0x174f),'fields':_0x35787f(0x1929),'sort':_0x35787f(0x12f2),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x5d4a01(0xa87),function(_0x24de5d,_0x18c174){const _0x85df27=_0x5d4a01;return _0x18c174[_0x85df27(0x23e0)]('admin')?null:_0x24de5d[_0x85df27(0x2922)](_0x85df27(0x119a),{'fields':_0x85df27(0x227),'id':_0x18c174[_0x85df27(0xb12)]()['userProfileId']});}],'userProfileSection':[_0x5d4a01(0x362),'Auth',function(_0x1af2cd,_0x4a072a){const _0x4feabf=_0x5d4a01;return _0x4a072a['hasRole'](_0x4feabf(0x174b))?null:_0x1af2cd[_0x4feabf(0x2922)](_0x4feabf(0x27be),{'fields':_0x4feabf(0x1e64),'userProfileId':_0x4a072a[_0x4feabf(0xb12)]()[_0x4feabf(0x209a)],'sectionId':0x12d});}]},'authenticate':!![],'permissionId':0x12d,'bodyClass':'contactmanager'})['state'](_0x5d4a01(0x357),{'url':_0x5d4a01(0x2028),'params':{'list':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x322d98,'controller':_0x5d4a01(0x2c3)}},'resolve':{'list':['apiResolver',_0x5d4a01(0x28c8),function(_0x1f2ed6,_0x5ef9f4){const _0x5c4c6b=_0x5d4a01;return _0x1f2ed6[_0x5c4c6b(0x2922)](_0x5c4c6b(0xd64),{'fields':_0x5c4c6b(0x1929),'id':_0x5ef9f4['id']});}],'userProfileSection':[_0x5d4a01(0x362),'Auth',function(_0x39147e,_0x209ee0){const _0xf8c29a=_0x5d4a01;return _0x39147e[_0xf8c29a(0x2922)](_0xf8c29a(0x27be),{'fields':_0xf8c29a(0x1e64),'userProfileId':_0x209ee0[_0xf8c29a(0xb12)]()['userProfileId'],'sectionId':0x12d});}]},'authenticate':!![],'permissionId':0x12d,'bodyClass':_0x5d4a01(0x16a7)})['state'](_0x5d4a01(0xd99),{'url':_0x5d4a01(0x1423),'views':{'content@app':{'templateUrl':_0xc770ff,'controller':_0x5d4a01(0xfd2)}},'resolve':{'companies':[_0x5d4a01(0x362),_0x5d4a01(0xa87),function(_0x18287e,_0x2e75db){const _0x21e7d7=_0x5d4a01;return _0x2e75db['hasRole'](_0x21e7d7(0x174b))?_0x18287e[_0x21e7d7(0x2922)](_0x21e7d7(0x11ff),{'fields':_0x21e7d7(0x25fa),'sort':_0x21e7d7(0x12f2),'limit':0xa,'offset':0x0}):_0x18287e[_0x21e7d7(0x2922)](_0x21e7d7(0x938),{'id':_0x2e75db[_0x21e7d7(0xb12)]()[_0x21e7d7(0x209a)],'section':_0x21e7d7(0x1a5e),'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':[_0x5d4a01(0x362),_0x5d4a01(0xa87),function(_0x252022,_0x457fa0){const _0xfa2571=_0x5d4a01;return _0x457fa0[_0xfa2571(0x23e0)](_0xfa2571(0x174b))?null:_0x252022['resolve']('userProfile@get',{'fields':_0xfa2571(0x227),'id':_0x457fa0[_0xfa2571(0xb12)]()[_0xfa2571(0x209a)]});}],'userProfileSection':[_0x5d4a01(0x362),_0x5d4a01(0xa87),function(_0x4de545,_0x19302d){const _0x2bf2d4=_0x5d4a01;return _0x19302d[_0x2bf2d4(0x23e0)](_0x2bf2d4(0x174b))?null:_0x4de545[_0x2bf2d4(0x2922)](_0x2bf2d4(0x27be),{'fields':_0x2bf2d4(0x1e64),'userProfileId':_0x19302d[_0x2bf2d4(0xb12)]()[_0x2bf2d4(0x209a)],'sectionId':0x12e});}]},'authenticate':!![],'permissionId':0x12e,'bodyClass':'contactmanager'})[_0x5d4a01(0x13d6)]('app.contactmanager.companies.edit',{'url':_0x5d4a01(0x2028),'params':{'company':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x47698e,'controller':'CompanyController\x20as\x20vm'}},'resolve':{'company':[_0x5d4a01(0x362),_0x5d4a01(0x28c8),function(_0x280f8b,_0x17fc34){const _0x58e9d5=_0x5d4a01;return _0x280f8b[_0x58e9d5(0x2922)](_0x58e9d5(0x11ff),{'fields':_0x58e9d5(0x25fa),'id':_0x17fc34['id']});}],'userProfileSection':[_0x5d4a01(0x362),_0x5d4a01(0xa87),function(_0x28525f,_0x386b8d){const _0xc9314f=_0x5d4a01;return _0x28525f['resolve'](_0xc9314f(0x27be),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x386b8d[_0xc9314f(0xb12)]()[_0xc9314f(0x209a)],'sectionId':0x12e});}]},'authenticate':!![],'permissionId':0x12e,'bodyClass':'contactmanager'})[_0x5d4a01(0x13d6)]('app.contactmanager.globalCustomFields',{'url':_0x5d4a01(0x223b),'views':{'content@app':{'templateUrl':_0x558b5f,'controller':'GlobalCustomFieldsController\x20as\x20vm'}},'resolve':{'globalCustomFields':['apiResolver',function(_0x23a4b0){const _0x507810=_0x5d4a01;return _0x23a4b0['resolve'](_0x507810(0x1f60),{'fields':_0x507810(0x204d),'sort':_0x507810(0x12f2),'ListId':_0x507810(0x203c),'limit':0xa,'offset':0x0});}],'userProfile':[_0x5d4a01(0x362),_0x5d4a01(0xa87),function(_0x138480,_0x133ad9){const _0x2097a0=_0x5d4a01;return _0x133ad9['hasRole'](_0x2097a0(0x174b))?null:_0x138480[_0x2097a0(0x2922)](_0x2097a0(0x119a),{'fields':_0x2097a0(0x227),'id':_0x133ad9[_0x2097a0(0xb12)]()[_0x2097a0(0x209a)]});}],'userProfileSection':[_0x5d4a01(0x362),_0x5d4a01(0xa87),function(_0x4ab465,_0x811ac1){const _0x226b23=_0x5d4a01;return _0x811ac1[_0x226b23(0x23e0)](_0x226b23(0x174b))?null:_0x4ab465[_0x226b23(0x2922)](_0x226b23(0x27be),{'fields':_0x226b23(0x1e64),'userProfileId':_0x811ac1[_0x226b23(0xb12)]()[_0x226b23(0x209a)],'sectionId':0x130});}]},'authenticate':!![],'permissionId':0x130,'bodyClass':_0x5d4a01(0x16a7)}),_0x4be9c7[_0x5d4a01(0x15bf)](_0x5d4a01(0x1d21));}angular[_0x313a4d(0x2528)](_0x313a4d(0x1d7a),[_0x313a4d(0xdad),_0x313a4d(0x962),_0x313a4d(0x23c7),_0x313a4d(0x963),_0x313a4d(0x19e2),_0x313a4d(0x27c1),_0x313a4d(0x195b),_0x313a4d(0x15ef),'ngAnimate',_0x313a4d(0x1f5f),_0x313a4d(0x28a8),_0x313a4d(0xfb2),_0x313a4d(0x1e57),_0x313a4d(0x581),_0x313a4d(0x1bd2),_0x313a4d(0x1792),_0x313a4d(0x1b65),_0x313a4d(0x1626),_0x313a4d(0x2713),_0x313a4d(0x11df),_0x313a4d(0x23fa)])[_0x313a4d(0x989)](_0x536387)[_0x313a4d(0x28f0)](_0x313a4d(0x717),_0x4396c4)[_0x313a4d(0x28f0)](_0x313a4d(0x39d),_0x47d488)['controller'](_0x313a4d(0x168c),_0x41350e)[_0x313a4d(0x28f0)](_0x313a4d(0x246e),_0x2bd827)[_0x313a4d(0x28f0)](_0x313a4d(0x14aa),_0x11394b)['controller'](_0x313a4d(0x28d5),_0x169313)[_0x313a4d(0x28f0)]('ListagentaddController',_0x4ab1b6)[_0x313a4d(0x28f0)](_0x313a4d(0x13b5),_0x12f938)[_0x313a4d(0x28f0)](_0x313a4d(0xa15),_0x2c6862)[_0x313a4d(0x28f0)]('ListController',_0x408672)[_0x313a4d(0x28f0)](_0x313a4d(0x1ddf),_0x67a0d7)[_0x313a4d(0x28f0)](_0x313a4d(0xce8),_0xca7ba4);;_0x1e335f[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1abe),_0x313a4d(0x10e8),_0x313a4d(0x4d8),_0x313a4d(0x1aa9),_0x313a4d(0x214b),_0x313a4d(0x247f),_0x313a4d(0x26b6),_0x313a4d(0x1366),_0x313a4d(0xa87),_0x313a4d(0x279d),_0x313a4d(0x1fe4),_0x313a4d(0x23c0),_0x313a4d(0x2647)];function _0x1e335f(_0x1ddfd5,_0x49c85f,_0x37d6ba,_0x58744e,_0x505da1,_0x522347,_0x4adf83,_0x573202,_0x3c4a6a,_0x2e362b,_0x524717,_0x549157,_0x5c5772,_0x5c8245){const _0x1e8c53=_0x313a4d,_0x4166e0=this;_0x4166e0['currentUser']=_0x2e362b[_0x1e8c53(0xb12)](),_0x4166e0[_0x1e8c53(0x23c0)]=_0x5c5772?_0x5c5772:[],_0x4166e0[_0x1e8c53(0x2647)]=_0x5c8245,_0x4166e0[_0x1e8c53(0x2097)]={'count':0x0,'rows':[]},_0x4166e0[_0x1e8c53(0x181b)]=![],_0x4166e0[_0x1e8c53(0x258a)]=!![],_0x4166e0[_0x1e8c53(0x26b6)]=_0x573202,_0x4166e0['userProfileSection']=_0x3c4a6a&&_0x3c4a6a[_0x1e8c53(0x51c)]==0x1?_0x3c4a6a[_0x1e8c53(0x19c7)][0x0]:null,_0x4166e0[_0x1e8c53(0x2514)]=_0x2e362b[_0x1e8c53(0xe60)](_0x4166e0[_0x1e8c53(0x1366)]?_0x4166e0[_0x1e8c53(0x1366)][_0x1e8c53(0x2514)]:null),_0x4166e0['query']={'fields':_0x1e8c53(0x655),'type':'inbound','queuecallerexitreason':_0x1e8c53(0x1b0d)+','+'ABANDONED','sort':_0x1e8c53(0x12f2),'limit':0xa,'page':0x1},_0x4166e0[_0x1e8c53(0x1d84)]=_0x9aae0a,_0x4166e0[_0x1e8c53(0x2482)]=_0x267906,_0x4166e0[_0x1e8c53(0x1e2e)]=_0x3df0d7,_0x4166e0[_0x1e8c53(0x25ed)]=_0x3efe4a,_0x4166e0['onSaveVoiceQueueReport']=_0x2bbc14,_0x4166e0[_0x1e8c53(0x6b3)]=_0x368ea9,_0x524717[_0x1e8c53(0x13b7)](_0x1e8c53(0xfd4),_0x4166e0[_0x1e8c53(0x196c)]),_0x524717['on'](_0x1e8c53(0x1d59),_0x4166e0[_0x1e8c53(0x6b3)]),_0x3dd541();function _0x3dd541(){const _0x419d50=_0x1e8c53;let _0x40acd4=_0x505da1[_0x419d50(0x1c39)]['getItem'](_0x419d50(0x1273)+_0x4166e0[_0x419d50(0x2321)]['id']);if(_0x40acd4)_0x40acd4=JSON[_0x419d50(0x975)](_0x40acd4),_0x40acd4&&_0x40acd4[_0x419d50(0x1a56)]&&(_0x4166e0['query']=_0x3f65c0()[_0x419d50(0x168d)](_0x40acd4[_0x419d50(0x1a56)],_0x3f65c0()[_0x419d50(0x2432)](_0x4166e0[_0x419d50(0x1a56)],[_0x419d50(0x28fa),'limit',_0x419d50(0x844)])),_0x4166e0[_0x419d50(0x1a56)]=_0x3f65c0()[_0x419d50(0x2432)](_0x4166e0[_0x419d50(0x1a56)],_0x419d50(0x1dd6)));else{const _0x3f157e={'$gte':_0x2deec6()()[_0x419d50(0x1fcc)](_0x419d50(0x12b7))[_0x419d50(0x65f)](0x0,!![])[_0x419d50(0x22b0)](),'$lte':_0x2deec6()()['endOf'](_0x419d50(0x12b7))[_0x419d50(0x65f)](0x0,!![])[_0x419d50(0x22b0)]()};_0x4166e0['query'][_0x419d50(0xc68)]=_0x3f157e;}_0x2e362b[_0x419d50(0x23e0)](_0x419d50(0x174b))?_0x4adf83[_0x419d50(0xe7b)][_0x419d50(0xc53)]({'id':_0x2e362b['getCurrentUser']()['id'],'fields':_0x419d50(0x7a7),'channel':'voice','type':'inbound','nolimit':!![]})[_0x419d50(0x2945)][_0x419d50(0x146b)](function(_0x5ba540){const _0x1d7fb3=_0x419d50;_0x4166e0['queues']=_0x5ba540||{'count':0x0,'rows':[]},_0x4166e0[_0x1d7fb3(0x212b)]=_0x3f65c0()['mapValues'](_0x3f65c0()[_0x1d7fb3(0x194)](_0x4166e0[_0x1d7fb3(0x1b32)][_0x1d7fb3(0x19c7)],_0x1d7fb3(0x19eb)),_0x1d7fb3(0x19eb));})[_0x419d50(0x129e)](function(_0x31946a){console['error'](_0x31946a);})[_0x419d50(0x1ec6)](function(){const _0x415a2f=_0x419d50;_0x4166e0[_0x415a2f(0x28af)]=_0x296c1c(),_0x4166e0[_0x415a2f(0x1d84)]();}):_0x4adf83['userProfile'][_0x419d50(0x158f)]({'id':_0x4166e0['currentUser']['userProfileId'],'section':'VoiceQueues','channel':_0x419d50(0xe6),'type':_0x419d50(0x7b0),'sort':_0x419d50(0x12f2),'nolimit':!![]})[_0x419d50(0x2945)][_0x419d50(0x146b)](function(_0x269a34){const _0x4543c6=_0x419d50;_0x4166e0['queues']=_0x269a34||{'count':0x0,'rows':[]},_0x4166e0[_0x4543c6(0x212b)]=_0x3f65c0()['mapValues'](_0x3f65c0()[_0x4543c6(0x194)](_0x4166e0['queues'][_0x4543c6(0x19c7)],_0x4543c6(0x19eb)),_0x4543c6(0x19eb));})[_0x419d50(0x129e)](function(_0x5aef4a){const _0x1d8e73=_0x419d50;console[_0x1d8e73(0x1980)](_0x5aef4a);})[_0x419d50(0x1ec6)](function(){const _0x243211=_0x419d50;_0x4166e0['quickFilters']=_0x296c1c(),_0x4166e0[_0x243211(0x1d84)]();});}function _0x296c1c(){const _0x2ccc20=_0x1e8c53;return[{'name':_0x2ccc20(0x294),'key':'createdAt','type':'date','label':'DASHBOARDS.SELECT_DATE'},{'name':'Agent','key':_0x2ccc20(0x19ac),'type':'select','label':_0x2ccc20(0x127),'options':_0x4166e0[_0x2ccc20(0x23c0)][_0x2ccc20(0x19c7)],'customOptions':[{'value':_0x2ccc20(0xa03),'translate':_0x2ccc20(0x38d)},{'value':undefined,'translate':'DASHBOARDS.ALL'}]},{'name':_0x2ccc20(0x1cd3),'key':_0x2ccc20(0x1c72),'type':'multiselect','label':_0x2ccc20(0x285c),'options':_0x4166e0[_0x2ccc20(0x1b32)]['rows']}];}function _0x9aae0a(){const _0x3f848d=_0x1e8c53;_0x4166e0['refresh']=![],_0x4166e0['queues'][_0x3f848d(0x51c)]>0x0?(_0x4166e0[_0x3f848d(0x1a56)][_0x3f848d(0x1c72)]=_0x4166e0['queues'][_0x3f848d(0x51c)]===0x1?_0x4166e0[_0x3f848d(0x1b32)][_0x3f848d(0x19c7)][0x0][_0x3f848d(0x19eb)]:_0x4166e0['query']['queue'],_0x4166e0[_0x3f848d(0x1a56)][_0x3f848d(0x145d)]=(_0x4166e0['query'][_0x3f848d(0x844)]-0x1)*_0x4166e0[_0x3f848d(0x1a56)][_0x3f848d(0x221e)],_0x505da1['localStorage'][_0x3f848d(0xc32)](_0x3f848d(0x1273)+_0x4166e0[_0x3f848d(0x2321)]['id'],JSON['stringify']({'query':_0x3f65c0()[_0x3f848d(0x2432)](_0x4166e0[_0x3f848d(0x1a56)],'queue')})),_0x4166e0['promise']=_0x4adf83[_0x3f848d(0x19ef)][_0x3f848d(0x1456)](_0x4166e0[_0x3f848d(0x1a56)],_0x1a95d0)[_0x3f848d(0x2945)]):_0x1a95d0(null);}function _0x1a95d0(_0x4cfd7b){const _0xa3694b=_0x1e8c53;_0x4166e0[_0xa3694b(0x2097)]=_0x4cfd7b||{'count':0x0,'rows':[]},_0x4166e0[_0xa3694b(0x258a)]=!![];}function _0x267906(){const _0x3edad4=_0x1e8c53;_0x4166e0[_0x3edad4(0x181b)]=![],_0x4166e0[_0x3edad4(0x1d84)]();}function _0x2bbc14(_0x2ca1d5){const _0xc392c6=_0x1e8c53,_0x3c4006=_0xc392c6(0x7b0);_0x2ca1d5&&_0x4166e0[_0xc392c6(0x212b)]&&_0x4166e0[_0xc392c6(0x1a56)][_0xc392c6(0x1142)]===_0x3c4006&&_0x4166e0['queuesMap'][_0x2ca1d5['queue']]&&(_0x4166e0[_0xc392c6(0x181b)]=!![]);}function _0x368ea9(_0x54224d){const _0x40ddbe=_0x1e8c53;if(_0x54224d){const _0x334e13=_0x3f65c0()[_0x40ddbe(0x99c)](_0x4166e0[_0x40ddbe(0x2097)][_0x40ddbe(0x19c7)],['id',_0x54224d['id']]);_0x334e13>=0x0&&_0x3f65c0()[_0x40ddbe(0x168d)](_0x4166e0['abandonedCalls'][_0x40ddbe(0x19c7)][_0x334e13],_0x54224d);}}function _0x3df0d7(_0x4df328,_0x25c157){const _0x13ffa2=_0x1e8c53;_0x4df328&&_0x4adf83[_0x13ffa2(0x19ef)]['update']({'id':_0x4df328['id'],'lastAssignedTo':_0x25c157?_0x25c157[_0x13ffa2(0x19eb)]:null,'assigned':_0x25c157?!![]:![]})[_0x13ffa2(0x2945)][_0x13ffa2(0x129e)](function(_0x50dd0a){const _0x4625d5=_0x13ffa2;console[_0x4625d5(0x1a74)](_0x50dd0a);});}function _0x3efe4a(_0xbd3fdc){const _0x4f6ede=_0x1e8c53;_0x37d6ba['show']({'controller':'DisposeAbandonedCallDialogController','controllerAs':'vm','templateUrl':_0x4f6ede(0x16d6),'parent':angular[_0x4f6ede(0x1853)](_0x58744e[_0x4f6ede(0x2586)]),'targetEvent':_0xbd3fdc,'resolve':{'globalDispositions':['apiResolver',function(_0x29219c){const _0x460058=_0x4f6ede;return _0x29219c[_0x460058(0x2922)](_0x460058(0x1041),{'MailAccountId':_0x460058(0x203c),'FaxAccountId':_0x460058(0x203c),'SmsAccountId':_0x460058(0x203c),'WhatsappAccountId':_0x460058(0x203c),'OpenchannelAccountId':'null','ChatWebsiteId':_0x460058(0x203c),'ListId':_0x460058(0x203c)});}]},'locals':{'dispositions':_0x4166e0['dispositions'],'call':_0xbd3fdc}})[_0x4f6ede(0x146b)](function(_0x410499){const _0x561059=_0x4f6ede;if(_0x410499){const _0x46f2b8={'id':_0xbd3fdc['id'],'disposition':_0x410499[_0x561059(0x1614)]||null,'secondDisposition':_0x410499[_0x561059(0x4af)]||null,'thirdDisposition':_0x410499[_0x561059(0x5da)]||null};_0x4adf83['voiceQueueReport'][_0x561059(0x18e1)](_0x46f2b8)['$promise']['catch'](function(_0x4a82f5){const _0x318f86=_0x561059;console[_0x318f86(0x1a74)](_0x4a82f5);});}});}let _0x3b6901=!![],_0x49df2f=0x1;_0x1ddfd5[_0x1e8c53(0x21e8)]('vm.query.filter',function(_0x3323d5,_0xfdbefe){const _0x4ab646=_0x1e8c53;_0x3b6901?_0x49c85f(function(){_0x3b6901=![];}):(!_0xfdbefe&&(_0x49df2f=_0x4166e0[_0x4ab646(0x1a56)]['page']),_0x3323d5!==_0xfdbefe&&(_0x4166e0[_0x4ab646(0x1a56)][_0x4ab646(0x844)]=0x1),!_0x3323d5&&(_0x4166e0['query'][_0x4ab646(0x844)]=_0x49df2f),_0x4166e0[_0x4ab646(0x1d84)]());}),_0x1ddfd5[_0x1e8c53(0x16ad)](_0x1e8c53(0x116f),function(){const _0x4d6c74=_0x1e8c53;_0x524717['removeAllListeners'](_0x4d6c74(0xfd4)),_0x524717[_0x4d6c74(0x1c5f)](_0x4d6c74(0x1d59));});}const _0x20b28d=_0x1e335f;;_0x45f46b[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),'$q',_0x313a4d(0x1abe),_0x313a4d(0x10e8),_0x313a4d(0x4d8),'$filter','pauses',_0x313a4d(0x23c0),_0x313a4d(0x2445),_0x313a4d(0x247f),_0x313a4d(0x279d),_0x313a4d(0x1fe4),_0x313a4d(0x1ac0),_0x313a4d(0x26b6),_0x313a4d(0x1366),'Auth',_0x313a4d(0x2690),_0x313a4d(0xa0a)];function _0x45f46b(_0x3ded65,_0x1d1ffa,_0x4e37fe,_0x600788,_0x2c0c4e,_0x292b43,_0x4271dc,_0x2a5e69,_0x5c1b63,_0xda723e,_0x57fc2f,_0x53b621,_0x3534d1,_0x4533ed,_0x211781,_0xb7416f,_0x247eaf,_0xc96c72){const _0x4cdf4d=_0x313a4d,_0x46a746=this,_0x241f73=['userpic',_0x4cdf4d(0x538),_0x4cdf4d(0x1d01),'lastPauseAt',_0x4cdf4d(0x1125),'lastPauseAt','internal','address',_0x4cdf4d(0x5f7),_0x4cdf4d(0xcc5),_0x4cdf4d(0x1e9e),'smsPause',_0x4cdf4d(0x1f9d),'faxPause',_0x4cdf4d(0x211c),_0x4cdf4d(0x6e4),_0x4cdf4d(0x15fd),'mailCapacity',_0x4cdf4d(0x1820),_0x4cdf4d(0x237c),_0x4cdf4d(0x1cf6),_0x4cdf4d(0xaac),'openchannelCurrentCapacity','mailCurrentCapacity','smsCurrentCapacity',_0x4cdf4d(0xfc1),'faxCurrentCapacity',_0x4cdf4d(0xfc3),_0x4cdf4d(0xfae),_0x4cdf4d(0x1fc6),_0x4cdf4d(0x22f6),_0x4cdf4d(0xfdf),'faxStatus',_0x4cdf4d(0x685),_0x4cdf4d(0x1a22),'openchannelStatusTime',_0x4cdf4d(0x10cd),_0x4cdf4d(0x1f5c),_0x4cdf4d(0xadd),'faxStatusTime',_0x4cdf4d(0x1dda),_0x4cdf4d(0x1c72),_0x4cdf4d(0x1e8d),_0x4cdf4d(0x1ca2),_0x4cdf4d(0x4e3),'phoneBarEnableAutomaticScreenRecording'],_0x4ae861=[_0x4cdf4d(0x5f7),_0x4cdf4d(0xcc5),_0x4cdf4d(0x1e9e),_0x4cdf4d(0x17c),_0x4cdf4d(0x1f9d),_0x4cdf4d(0x25c4),_0x4cdf4d(0x211c),_0x4cdf4d(0x538)];_0x46a746['currentUser']=_0xb7416f['getCurrentUser'](),_0x46a746[_0x4cdf4d(0xe3e)]=[_0x4cdf4d(0xad4),_0x4cdf4d(0xfe4),_0x4cdf4d(0x26a7),_0x4cdf4d(0x776),'not_inuse'],_0x46a746[_0x4cdf4d(0x23bb)]=_0x4271dc||{'count':0x0,'rows':[]},_0x46a746[_0x4cdf4d(0x2690)]=_0x247eaf,_0x46a746[_0x4cdf4d(0x26b6)]=_0x4533ed,_0x46a746['userProfileSection']=_0x211781&&_0x211781['count']==0x1?_0x211781[_0x4cdf4d(0x19c7)][0x0]:null,_0x46a746[_0x4cdf4d(0x2514)]=_0xb7416f['parseCrudPermissions'](_0x46a746[_0x4cdf4d(0x1366)]?_0x46a746[_0x4cdf4d(0x1366)]['crudPermissions']:null),_0x46a746[_0x4cdf4d(0x23c0)]=_0x2a5e69?_0x3f65c0()[_0x4cdf4d(0x194)](_0x2a5e69['rows']?_0x2a5e69['rows']:[],'id'):{},_0x46a746[_0x4cdf4d(0x2445)]=_0x5c1b63?_0x3f65c0()['keyBy'](_0x5c1b63['rows']?_0x5c1b63['rows']:[],'id'):{},_0x46a746[_0x4cdf4d(0x285)]={},_0x46a746[_0x4cdf4d(0x2412)]=![],_0x46a746['order']=[],_0x46a746[_0x4cdf4d(0x626)]={};for(const _0x5b56e1 in _0x46a746[_0x4cdf4d(0x23c0)]){typeof _0x46a746[_0x4cdf4d(0x23c0)][_0x5b56e1]!==_0x4cdf4d(0x2274)&&(_0x46a746[_0x4cdf4d(0x23c0)][_0x5b56e1][_0x4cdf4d(0x5aa)]=!![]);}_0x46a746[_0x4cdf4d(0x1a56)]={'limit':0xa,'page':0x1,'order':_0x4cdf4d(0x286a),'globalStatusFilter':'','pauseTypeFilter':''},_0x46a746[_0x4cdf4d(0x2044)]=_0x4f781d,_0x46a746['queueAdd']=_0x55cbd7,_0x46a746[_0x4cdf4d(0x1e3e)]=_0x3fa6a7,_0x46a746[_0x4cdf4d(0x693)]=_0x99351a,_0x46a746[_0x4cdf4d(0x232c)]=_0x104cf8,_0x46a746[_0x4cdf4d(0x1eaa)]=_0x5a8f69,_0x46a746['getAgentGlobalStatus']=_0x2a0e4a,_0x46a746[_0x4cdf4d(0x2075)]=_0x1e1724,_0x46a746[_0x4cdf4d(0x169)]=_0x531209,_0x46a746[_0x4cdf4d(0x1d53)]=_0x3d53b6,_0x46a746[_0x4cdf4d(0x1db0)]=_0x2cdaa4,_0x46a746[_0x4cdf4d(0x1a76)]=_0x4b9ed0,_0x46a746['onInit']=_0x58df20,_0x46a746[_0x4cdf4d(0x201a)]=_0x22a280,_0x46a746[_0x4cdf4d(0x483)]=_0x36262c,_0x46a746[_0x4cdf4d(0x1b80)]=_0x3035bf,_0x57fc2f['on'](_0x4cdf4d(0x17de),_0x46a746[_0x4cdf4d(0x1db0)]),_0x57fc2f['on'](_0x4cdf4d(0x324),_0x46a746['onUpdate']),_0x57fc2f['on']('user:agentconnect',_0x46a746[_0x4cdf4d(0x201a)]),_0x57fc2f['on'](_0x4cdf4d(0x198f),_0x46a746[_0x4cdf4d(0x483)]),_0x58df20();let _0x37bdf3=_0xc96c72(function(){const _0x274ca4=_0x4cdf4d;_0x46a746['load']&&(_0x46a746[_0x274ca4(0x2412)]=![],_0x58df20());},0x3e7);function _0x58df20(){const _0x4ca506=_0x4cdf4d;_0x46a746[_0x4ca506(0x2412)]=![];const _0x478fd9=_0x1d1ffa[_0x4ca506(0xce3)]();_0x46a746['promise']=_0x478fd9['promise'],_0x46a746[_0x4ca506(0x202e)]=[],_0x46a746[_0x4ca506(0x206e)]=[],_0x3f65c0()[_0x4ca506(0x1a04)](_0x46a746[_0x4ca506(0x23c0)],function(_0x206a67,_0x1b5b5e){const _0xdee6c4=_0x4ca506;_0x46a746[_0xdee6c4(0x2445)][_0x1b5b5e]&&_0x3f65c0()[_0xdee6c4(0x168d)](_0x206a67,_0x3f65c0()[_0xdee6c4(0x40e)](_0x3f65c0()[_0xdee6c4(0x2432)](_0x46a746['rpcAgents'][_0x1b5b5e],_0x4ae861),_0x241f73)),_0x2a0e4a(_0x206a67),_0x206a67['online']?(_0x46a746[_0xdee6c4(0x202e)]['push'](_0x206a67),_0x46a746['agentInternal'][_0x206a67[_0xdee6c4(0x113f)]]=_0x1b5b5e):_0x206a67[_0xdee6c4(0xed1)]=_0x3f65c0()[_0xdee6c4(0x123)](_0x2deec6()()[_0xdee6c4(0x22b0)]('x'));});_0x46a746['query'][_0x4ca506(0x1500)]&&_0x3f65c0()['remove'](_0x46a746['filteredAgents'],function(_0x4a541e){const _0x102554=_0x4ca506;return _0x4a541e[_0x102554(0x72b)]!==_0x46a746[_0x102554(0x1a56)][_0x102554(0x1500)];});_0x46a746[_0x4ca506(0x1a56)][_0x4ca506(0x301)]&&_0x3f65c0()['remove'](_0x46a746[_0x4ca506(0x202e)],function(_0x4fb8e0){const _0x564d64=_0x4ca506;return _0x4fb8e0[_0x564d64(0x1125)]!==_0x46a746[_0x564d64(0x1a56)]['pauseTypeFilter'];});_0x46a746['query'][_0x4ca506(0x1dd6)]&&_0x3f65c0()['remove'](_0x46a746[_0x4ca506(0x202e)],function(_0x36e0c3){const _0x32f27e=_0x4ca506;return _0x36e0c3[_0x32f27e(0x286a)]['toLowerCase']()[_0x32f27e(0x172b)](_0x46a746[_0x32f27e(0x1a56)]['filter'][_0x32f27e(0x256e)]())<0x0;});_0x46a746[_0x4ca506(0x202e)]=_0x1c7174(_0x46a746[_0x4ca506(0x202e)]);const _0x4da7f4=(_0x46a746[_0x4ca506(0x1a56)][_0x4ca506(0x844)]-0x1)*_0x46a746[_0x4ca506(0x1a56)][_0x4ca506(0x221e)];_0x46a746[_0x4ca506(0x285)]=_0x3f65c0()[_0x4ca506(0x854)](_0x46a746['filteredAgents'],_0x4da7f4)[_0x4ca506(0x1298)](0x0,_0x46a746['query'][_0x4ca506(0x221e)]);for(let _0x23660f=0x0;_0x23660f<_0x46a746[_0x4ca506(0x285)][_0x4ca506(0x402)];_0x23660f+=0x1){_0x46a746[_0x4ca506(0x206e)]['push'](_0x46a746[_0x4ca506(0x285)][_0x23660f]['id']);}_0x478fd9['resolve'](),_0x46a746[_0x4ca506(0x2412)]=!![];}function _0x2cdaa4(_0x306a8d){const _0x518b57=_0x4cdf4d;_0x46a746['agents'][_0x306a8d['id']]&&(_0x3f65c0()[_0x518b57(0x168d)](_0x46a746[_0x518b57(0x23c0)][_0x306a8d['id']],_0x3f65c0()[_0x518b57(0x40e)](_0x3f65c0()[_0x518b57(0x2432)](_0x306a8d,_0x4ae861),_0x241f73)),_0x3f65c0()[_0x518b57(0x168d)](_0x46a746[_0x518b57(0x2445)][_0x306a8d['id']],_0x3f65c0()[_0x518b57(0x40e)](_0x3f65c0()[_0x518b57(0x2432)](_0x306a8d,_0x4ae861),_0x241f73)),_0x2a0e4a(_0x46a746[_0x518b57(0x23c0)][_0x306a8d['id']]));}function _0x4b9ed0(_0x4e3255){const _0x8e439c=_0x4cdf4d;_0x46a746[_0x8e439c(0x23c0)][_0x4e3255['id']]&&(_0x3f65c0()[_0x8e439c(0x168d)](_0x46a746[_0x8e439c(0x23c0)][_0x4e3255['id']],_0x3f65c0()[_0x8e439c(0x40e)](_0x4e3255,_0x241f73)),_0x3f65c0()[_0x8e439c(0x168d)](_0x46a746[_0x8e439c(0x2445)][_0x4e3255['id']],_0x3f65c0()[_0x8e439c(0x40e)](_0x4e3255,_0x241f73)),_0x4e3255[_0x8e439c(0x192a)]&&(_0x46a746[_0x8e439c(0x23c0)][_0x4e3255['id']][_0x8e439c(0xed1)]=_0x4e3255[_0x8e439c(0x192a)],_0x46a746[_0x8e439c(0x2445)][_0x4e3255['id']][_0x8e439c(0xed1)]=_0x4e3255['lastPauseAt']),_0x2a0e4a(_0x46a746[_0x8e439c(0x23c0)][_0x4e3255['id']]));}function _0x22a280(_0x3ee8b3){const _0x51ae87=_0x4cdf4d;_0x46a746[_0x51ae87(0x23c0)][_0x46a746['agentInternal'][_0x3ee8b3[_0x51ae87(0x1fb9)]]]&&(_0x3f65c0()['merge'](_0x46a746['agents'][_0x46a746[_0x51ae87(0x626)][_0x3ee8b3[_0x51ae87(0x1fb9)]]],_0x3f65c0()[_0x51ae87(0x40e)](_0x3ee8b3,[_0x51ae87(0x1c72),_0x51ae87(0x1e8d)])),_0x3f65c0()['merge'](_0x46a746['rpcAgents'][_0x46a746[_0x51ae87(0x626)][_0x3ee8b3[_0x51ae87(0x1fb9)]]],_0x3f65c0()[_0x51ae87(0x40e)](_0x3ee8b3,[_0x51ae87(0x1c72),'destconnectedlinenum'])));}function _0x36262c(_0x5e8b69){const _0x577570=_0x4cdf4d;_0x46a746[_0x577570(0x23c0)][_0x46a746[_0x577570(0x626)][_0x5e8b69[_0x577570(0x1fb9)]]]&&(_0x46a746[_0x577570(0x23c0)][_0x46a746[_0x577570(0x626)][_0x5e8b69[_0x577570(0x1fb9)]]]=_0x3f65c0()[_0x577570(0x2432)](_0x46a746['agents'][_0x46a746[_0x577570(0x626)][_0x5e8b69[_0x577570(0x1fb9)]]],[_0x577570(0x1c72),_0x577570(0x1e8d)]),_0x46a746[_0x577570(0x2445)][_0x46a746[_0x577570(0x626)][_0x5e8b69[_0x577570(0x1fb9)]]]=_0x3f65c0()['omit'](_0x46a746[_0x577570(0x2445)][_0x46a746[_0x577570(0x626)][_0x5e8b69[_0x577570(0x1fb9)]]],[_0x577570(0x1c72),'destconnectedlinenum']));}function _0x4f781d(_0x56a81b){const _0x5f06b8=_0x4cdf4d;return _0xda723e[_0x5f06b8(0xe7b)][_0x5f06b8(0x2044)]({'id':_0x56a81b['id'],'device':'realtime','agent_id':_0x56a81b['id'],'agent_name':_0x56a81b[_0x5f06b8(0x19eb)]})['$promise'][_0x5f06b8(0x146b)](function(){const _0x4a6022=_0x5f06b8;_0x53b621[_0x4a6022(0x1c75)]({'title':_0x4a6022(0x1c70),'msg':_0x56a81b[_0x4a6022(0x286a)]+_0x4a6022(0x166c)}),_0x46a746[_0x4a6022(0x23c0)][_0x56a81b['id']]&&(_0x46a746[_0x4a6022(0x23c0)][_0x56a81b['id']][_0x4a6022(0x538)]=![]),_0x46a746['rpcAgents'][_0x56a81b['id']]&&(_0x46a746[_0x4a6022(0x2445)][_0x56a81b['id']][_0x4a6022(0x538)]=![]),_0x58df20();})[_0x5f06b8(0x129e)](function(_0x4d3ce2){const _0x36db54=_0x5f06b8;_0x53b621[_0x36db54(0x1980)]({'title':_0x4d3ce2[_0x36db54(0x107b)]?_0x36db54(0x262a)+_0x4d3ce2['status']+_0x36db54(0x1315)+_0x4d3ce2['statusText']:_0x36db54(0x23c6),'msg':_0x4d3ce2['data']?JSON['stringify'](_0x4d3ce2[_0x36db54(0x524)][_0x36db54(0x7fd)]):_0x4d3ce2[_0x36db54(0xd5f)]()});});}function _0x3fa6a7(_0x2b7278,_0x28df43){const _0x3e16ba=_0x4cdf4d;return _0xda723e[_0x3e16ba(0xe7b)][_0x3e16ba(0x1e3e)]({'id':_0x2b7278['id'],'type':_0x28df43})[_0x3e16ba(0x2945)][_0x3e16ba(0x146b)](function(_0x63fc97){const _0x4ee4d7=_0x3e16ba;_0x46a746['agents'][_0x2b7278['id']]&&_0x3f65c0()[_0x4ee4d7(0x168d)](_0x46a746[_0x4ee4d7(0x23c0)][_0x2b7278['id']],_0x3f65c0()[_0x4ee4d7(0x40e)](_0x63fc97,_0x241f73)),_0x46a746[_0x4ee4d7(0x2445)][_0x2b7278['id']]&&_0x3f65c0()[_0x4ee4d7(0x168d)](_0x46a746['rpcAgents'][_0x2b7278['id']],_0x3f65c0()['pick'](_0x63fc97,_0x241f73)),_0x2a0e4a(_0x46a746[_0x4ee4d7(0x23c0)][_0x2b7278['id']]);})[_0x3e16ba(0x129e)](function(_0x28926f){const _0x3b2608=_0x3e16ba;_0x53b621[_0x3b2608(0x1980)]({'title':_0x28926f[_0x3b2608(0x107b)]?_0x3b2608(0x262a)+_0x28926f[_0x3b2608(0x107b)]+'\x20-\x20'+_0x28926f['statusText']:_0x3b2608(0x23c6),'msg':_0x28926f[_0x3b2608(0x524)]?JSON[_0x3b2608(0x10bb)](_0x28926f[_0x3b2608(0x524)][_0x3b2608(0x7fd)]):_0x28926f['toString']()});});}function _0x99351a(_0x8102da){const _0x5c125f=_0x4cdf4d;return _0xda723e[_0x5c125f(0xe7b)][_0x5c125f(0x974)]({'id':_0x8102da['id']})[_0x5c125f(0x2945)][_0x5c125f(0x146b)](function(_0x568a72){const _0x48f09b=_0x5c125f;_0x46a746[_0x48f09b(0x23c0)][_0x8102da['id']]&&_0x3f65c0()[_0x48f09b(0x168d)](_0x46a746['agents'][_0x8102da['id']],_0x3f65c0()[_0x48f09b(0x40e)](_0x568a72,_0x241f73)),_0x46a746['rpcAgents'][_0x8102da['id']]&&_0x3f65c0()[_0x48f09b(0x168d)](_0x46a746[_0x48f09b(0x2445)][_0x8102da['id']],_0x3f65c0()['pick'](_0x568a72,_0x241f73)),_0x2a0e4a(_0x46a746[_0x48f09b(0x23c0)][_0x8102da['id']]);})[_0x5c125f(0x129e)](function(_0x139dd2){const _0x239d86=_0x5c125f;_0x53b621[_0x239d86(0x1980)]({'title':_0x139dd2[_0x239d86(0x107b)]?_0x239d86(0x262a)+_0x139dd2[_0x239d86(0x107b)]+_0x239d86(0x1315)+_0x139dd2[_0x239d86(0x167f)]:_0x239d86(0x23c6),'msg':_0x139dd2[_0x239d86(0x524)]?JSON['stringify'](_0x139dd2[_0x239d86(0x524)]['message']):_0x139dd2[_0x239d86(0xd5f)]()});});}function _0x104cf8(_0x1d8a54){const _0x152889=_0x4cdf4d;_0x600788[_0x152889(0x2615)](_0x600788[_0x152889(0x861)]()['clickOutsideToClose'](!![])[_0x152889(0x1189)](_0x152889(0x2783))[_0x152889(0x1cbe)]('
    TODO\x20legend\x20status\x20+\x20state
    ')['ok']('Ok')[_0x152889(0x1f27)](_0x1d8a54));}function _0x55cbd7(_0x5e2808,_0x4e890e){const _0x516403=_0x4cdf4d;_0x600788['show']({'controller':_0x516403(0x2610),'controllerAs':'vm','templateUrl':_0xbb22f1,'parent':angular['element'](_0x2c0c4e[_0x516403(0x2586)]),'targetEvent':_0x4e890e,'clickOutsideToClose':!![],'locals':{'agent':_0x5e2808,'agents':[],'channel':'voice','direction':_0x516403(0x7b0),'crudPermissions':_0x46a746[_0x516403(0x2514)]}});}function _0x1e1724(_0x32d24c){const _0x205576=_0x4cdf4d;return _0x32d24c===_0x205576(0x1e3e)||_0x32d24c===_0x205576(0x1127);}function _0x531209(_0x366ab6){const _0x1039be=_0x4cdf4d;return _0x366ab6===_0x1039be(0x1e3e);}function _0x3d53b6(_0x440553){const _0x49b2e0=_0x4cdf4d;return _0x440553===_0x49b2e0(0x1127);}function _0x513285(_0x1b59d5){const _0x10794c=_0x4cdf4d;return _0x1b59d5===_0x10794c(0xb09)||_0x1b59d5==='unknown'||_0x1b59d5==='unavailable'||_0x1b59d5===_0x10794c(0xad4)||_0x3f65c0()[_0x10794c(0x1b36)](_0x1b59d5);}function _0x5a8f69(_0x389416,_0x4cb4b1){const _0x3ace2f=_0x4cdf4d;if(_0x4cb4b1==='voice'){if(_0x389416[_0x4cb4b1+'Status']!==_0x3ace2f(0xb09))return _0x389416[_0x4cb4b1+'Status'];if(_0x389416[_0x4cb4b1+'Pause'])return _0x389416[_0x4cb4b1+_0x3ace2f(0x74e)]=_0x3ace2f(0x1e3e),_0x3ace2f(0x1e3e);return _0x3ace2f(0xb09);}else{if(_0x389416[_0x4cb4b1+_0x3ace2f(0xde0)])return _0x389416[_0x4cb4b1+_0x3ace2f(0x74e)]=_0x3ace2f(0x1e3e),_0x3ace2f(0x1e3e);return _0x389416[_0x4cb4b1+_0x3ace2f(0x74e)];}}function _0x2a0e4a(_0x3b5568){const _0x4be176=_0x4cdf4d;let _0x4e4631=_0x4be176(0x207d);if(_0x3f65c0()[_0x4be176(0xb14)]([_0x5a8f69(_0x3b5568,'voice'),_0x5a8f69(_0x3b5568,_0x4be176(0xa7f)),_0x5a8f69(_0x3b5568,'mail'),_0x5a8f69(_0x3b5568,_0x4be176(0x7d9)),_0x5a8f69(_0x3b5568,_0x4be176(0x929)),_0x5a8f69(_0x3b5568,'whatsapp'),_0x5a8f69(_0x3b5568,_0x4be176(0x22d9))],_0x1e1724))_0x4e4631=_0x4be176(0x1e3e);else{if(_0x3f65c0()[_0x4be176(0x1360)]([_0x5a8f69(_0x3b5568,_0x4be176(0xe6)),_0x5a8f69(_0x3b5568,_0x4be176(0xa7f)),_0x5a8f69(_0x3b5568,_0x4be176(0x56b)),_0x5a8f69(_0x3b5568,'openchannel'),_0x5a8f69(_0x3b5568,'sms'),_0x5a8f69(_0x3b5568,_0x4be176(0xff9)),_0x5a8f69(_0x3b5568,_0x4be176(0x22d9))],_0x1e1724))_0x4e4631=_0x4be176(0x1127);else _0x3f65c0()[_0x4be176(0xb14)]([_0x5a8f69(_0x3b5568,_0x4be176(0xe6)),_0x5a8f69(_0x3b5568,_0x4be176(0xa7f)),_0x5a8f69(_0x3b5568,'mail'),_0x5a8f69(_0x3b5568,'openchannel'),_0x5a8f69(_0x3b5568,_0x4be176(0x929)),_0x5a8f69(_0x3b5568,_0x4be176(0xff9)),_0x5a8f69(_0x3b5568,_0x4be176(0x22d9))],_0x513285)?_0x4e4631=_0x4be176(0xb09):_0x4e4631=_0x4be176(0x26a7);}_0x3b5568['globalStatus']!==_0x4e4631&&(_0x3b5568[_0x4be176(0x72b)]=_0x4e4631,_0x3b5568[_0x4be176(0x5aa)]?(_0x3b5568[_0x4be176(0x5aa)]=![],_0x3b5568[_0x4be176(0xed1)]=_0x1e1724(_0x4e4631)?_0x3f65c0()['toNumber'](_0x2deec6()(_0x3b5568[_0x4be176(0x192a)])[_0x4be176(0x22b0)]('x')):_0x3f65c0()[_0x4be176(0x727)]([_0x3b5568[_0x4be176(0x1dda)],_0x3b5568[_0x4be176(0x1a22)],_0x3b5568['mailStatusTime'],_0x3b5568[_0x4be176(0x1f5c)],_0x3b5568['whatsappStatusTime'],_0x3b5568[_0x4be176(0x6cb)],_0x3b5568[_0x4be176(0x47a)]])):_0x3b5568[_0x4be176(0xed1)]=_0x3f65c0()[_0x4be176(0x123)](_0x2deec6()()[_0x4be176(0x22b0)]('x')));}function _0x1c7174(_0x680a35){const _0x46f1a2=_0x4cdf4d,_0x130e0a=_0x3f65c0()['startsWith'](_0x46a746['query']['order'],'-')?_0x46f1a2(0x2517):_0x46f1a2(0x195);return _0x3f65c0()[_0x46f1a2(0x979)](_0x680a35,[_0x46a746[_0x46f1a2(0x1a56)][_0x46f1a2(0x206e)][_0x46f1a2(0x5f4)]('-','')],[_0x130e0a]);}function _0x49f2fd(){const _0x5277ac=_0x4cdf4d;_0x37bdf3&&(_0xc96c72[_0x5277ac(0x6c3)](_0x37bdf3),_0x37bdf3=null);}function _0x3035bf(_0x1f5742,_0x934f73){const _0x1999d4=_0x4cdf4d;return _0xda723e[_0x1999d4(0xe7b)]['update']({'id':_0x1f5742['id']},{'screenrecording':_0x934f73})[_0x1999d4(0x2945)]['catch'](function(_0x5f4a28){const _0x1929d6=_0x1999d4;_0x53b621[_0x1929d6(0x1980)]({'title':_0x5f4a28[_0x1929d6(0x107b)]?_0x1929d6(0x262a)+_0x5f4a28[_0x1929d6(0x107b)]+'\x20-\x20'+_0x5f4a28[_0x1929d6(0x167f)]:'api.user.update','msg':_0x5f4a28[_0x1929d6(0x524)]?JSON[_0x1929d6(0x10bb)](_0x5f4a28['data'][_0x1929d6(0x7fd)]):_0x5f4a28[_0x1929d6(0xd5f)]()});});}_0x3ded65['$on']('$destroy',function(){const _0x2c40d2=_0x4cdf4d;_0x57fc2f[_0x2c40d2(0x1c5f)](_0x2c40d2(0x17de)),_0x57fc2f['removeAllListeners'](_0x2c40d2(0x324)),_0x57fc2f[_0x2c40d2(0x1c5f)](_0x2c40d2(0x118c)),_0x57fc2f['removeAllListeners'](_0x2c40d2(0x198f)),_0x49f2fd();});}const _0x1be76c=_0x45f46b;;_0x3604f0[_0x313a4d(0x11c2)]=['$scope','$timeout',_0x313a4d(0x247f),_0x313a4d(0x279d),'rpcCalls',_0x313a4d(0x1ac0)];function _0x3604f0(_0x5bd057,_0x44d868,_0x163031,_0x124e94,_0x51bff9,_0xaef1ec){const _0x232111=_0x313a4d,_0x3e2056=this;_0x3e2056[_0x232111(0x197c)]=_0x51bff9||{'rows':[],'count':0x0},_0x3e2056[_0x232111(0x1a56)]={'limit':0xa,'page':0x1},_0x3e2056[_0x232111(0x2731)]=_0xaef1ec[_0x232111(0x13d4)],_0x124e94['on'](_0x232111(0x1f72),_0x3e2056[_0x232111(0x1db0)]),_0x124e94['on'](_0x232111(0x247e),_0x3e2056[_0x232111(0xe7)]);function _0x1471a0(_0x273d78){const _0x4038da=_0x232111,_0x39a11f=_0x3f65c0()[_0x4038da(0xc84)](_0x3e2056[_0x4038da(0x197c)][_0x4038da(0x19c7)],{'channel':_0x273d78[_0x4038da(0x2894)]});_0x273d78[_0x4038da(0x2164)]=_0x273d78[_0x4038da(0xb11)]?'up':_0x4038da(0x22a3);if(_0x39a11f)_0x3f65c0()['merge'](_0x39a11f,_0x273d78);else _0x273d78['channel']&&_0x3e2056['calls'][_0x4038da(0x19c7)]['push'](_0x273d78);}function _0x58c034(_0x2cdda9){const _0x4d4490=_0x232111,_0x25f408=_0x3f65c0()[_0x4d4490(0x99c)](_0x3e2056[_0x4d4490(0x197c)][_0x4d4490(0x19c7)],{'channel':_0x2cdda9[_0x4d4490(0x2894)]});_0x25f408>=0x0&&(_0x3e2056[_0x4d4490(0x197c)][_0x4d4490(0x19c7)][_0x25f408][_0x4d4490(0x107b)]=_0x4d4490(0x1dbf)),_0x44d868(function(){const _0x35826a=_0x4d4490;_0x3e2056['calls'][_0x35826a(0x19c7)]['splice'](_0x25f408,0x1);},0x1388);}_0x5bd057[_0x232111(0x16ad)](_0x232111(0x116f),function(){const _0x1b7185=_0x232111;_0x124e94[_0x1b7185(0x1c5f)](_0x1b7185(0x1f72)),_0x124e94[_0x1b7185(0x1c5f)](_0x1b7185(0x247e));}),_0x3e2056[_0x232111(0x1db0)]=_0x1471a0,_0x3e2056['onRemove']=_0x58c034;}const _0xff5b7f=_0x3604f0;;_0x3e896d[_0x313a4d(0x11c2)]=['$scope',_0x313a4d(0x1abe),'$mdDialog','agents','queues','rpcVoiceQueuesChannels','api','socket',_0x313a4d(0x1ac0),_0x313a4d(0x1fe4),_0x313a4d(0x26b6),_0x313a4d(0x1366),_0x313a4d(0xa87)];function _0x3e896d(_0x28764b,_0x575df7,_0x537ffb,_0x4791bc,_0x29cbad,_0x504bf3,_0x422ad2,_0x5a94a2,_0x58d234,_0xc0b701,_0x4e7c2a,_0x54b8e7,_0x281ea4){const _0x5520ed=_0x313a4d,_0x4c8c17=this;_0x4c8c17[_0x5520ed(0x2321)]=_0x281ea4[_0x5520ed(0xb12)](),_0x4c8c17[_0x5520ed(0x23c0)]=_0x4791bc||{'count':0x0,'rows':[]},_0x4c8c17['queues']=_0x29cbad?_0x3f65c0()[_0x5520ed(0x194)](_0x29cbad[_0x5520ed(0x19c7)]?_0x29cbad[_0x5520ed(0x19c7)]:[],'name'):{},_0x4c8c17[_0x5520ed(0x2160)]=_0x504bf3?_0x3f65c0()[_0x5520ed(0x194)](_0x504bf3['rows']?_0x3f65c0()[_0x5520ed(0x1dd6)](_0x504bf3[_0x5520ed(0x19c7)],{'type':'inbound'}):[],_0x5520ed(0x4f8)):{},_0x4c8c17[_0x5520ed(0x18e)]={},_0x4c8c17['userProfile']=_0x4e7c2a,_0x4c8c17[_0x5520ed(0x1366)]=_0x54b8e7&&_0x54b8e7['count']==0x1?_0x54b8e7[_0x5520ed(0x19c7)][0x0]:null,_0x4c8c17[_0x5520ed(0x2514)]=_0x281ea4[_0x5520ed(0xe60)](_0x4c8c17['userProfileSection']?_0x4c8c17[_0x5520ed(0x1366)][_0x5520ed(0x2514)]:null),_0x4c8c17[_0x5520ed(0x219)]={'limit':0xa,'page':0x1},_0x4c8c17[_0x5520ed(0x1d9e)]=_0x1484b4,_0x4c8c17[_0x5520ed(0x20de)]=_0x35c894,_0x4c8c17[_0x5520ed(0x1db0)]=_0xe0d86f,_0x4c8c17[_0x5520ed(0xe7)]=_0xb1ba0a,_0x4c8c17[_0x5520ed(0x1dbf)]=_0x1c9821,_0x4c8c17[_0x5520ed(0x1309)]=_0x31e02e,_0x4c8c17['redirectToNumber']=_0x1d2576,_0x5a94a2['on'](_0x5520ed(0x1c8),_0x4c8c17['onSave']),_0x5a94a2['on'](_0x5520ed(0xeb8),_0x4c8c17[_0x5520ed(0xe7)]);function _0x1484b4(_0x2a643a){const _0x46c9b6=_0x5520ed;return _0x3f65c0()[_0x46c9b6(0x4cc)](_0x2a643a);}function _0x35c894(){const _0x4a076e=_0x5520ed;_0x3f65c0()[_0x4a076e(0x1a04)](_0x4c8c17[_0x4a076e(0x2160)],function(_0x269ee6,_0x33c332){const _0x5eb368=_0x4a076e;_0x3f65c0()[_0x5eb368(0xc84)](_0x4c8c17[_0x5eb368(0x1b32)],{'name':_0x269ee6[_0x5eb368(0x19eb)]})&&(_0x4c8c17['rpcVoiceQueuesChannels'][_0x33c332]=_0x269ee6);});}function _0xe0d86f(_0x4ab5a1){const _0x50e227=_0x5520ed;_0x4ab5a1[_0x50e227(0x1142)]===_0x50e227(0x7b0)&&(_0x3f65c0()[_0x50e227(0xc84)](_0x4c8c17[_0x50e227(0x1b32)],{'name':_0x4ab5a1[_0x50e227(0x19eb)]})&&(_0x4c8c17['rpcVoiceQueuesChannels'][_0x4ab5a1[_0x50e227(0x4f8)]]=_0x4ab5a1));}function _0xb1ba0a(_0x5a171b){const _0x4931ff=_0x5520ed;_0x4c8c17[_0x4931ff(0x18e)][_0x5a171b[_0x4931ff(0x4f8)]]&&delete _0x4c8c17[_0x4931ff(0x18e)][_0x5a171b[_0x4931ff(0x4f8)]];}function _0x1c9821(_0x3fbebf){const _0x46ed14=_0x5520ed;return _0x422ad2[_0x46ed14(0x1af7)][_0x46ed14(0xdae)]({'uniqueid':_0x3fbebf})['$promise'][_0x46ed14(0x146b)](function(_0x3903f4){const _0x1c6e39=_0x46ed14;_0xc0b701[_0x1c6e39(0x1c75)]({'title':_0x1c6e39(0x26c4)+_0x3fbebf+_0x1c6e39(0x1419),'msg':_0x3903f4[_0x1c6e39(0x7fd)]||''});})['catch'](function(_0xbd84d4){const _0x4b55dc=_0x46ed14;_0xc0b701[_0x4b55dc(0x1980)]({'title':_0xbd84d4[_0x4b55dc(0x107b)]+_0x4b55dc(0x1315)+_0xbd84d4[_0x4b55dc(0x167f)],'msg':JSON[_0x4b55dc(0x10bb)](_0xbd84d4[_0x4b55dc(0x524)])||_0xbd84d4[_0x4b55dc(0x7fd)][_0x4b55dc(0xb47)]('\x20')});});}function _0x31e02e(_0x95e507,_0x4f3990,_0x3b92d9){const _0x5714f9=_0x5520ed;return _0x422ad2[_0x5714f9(0x1af7)][_0x5714f9(0x1741)]({'uniqueid':_0x95e507,'exten':_0x4f3990,'context':_0x3b92d9})[_0x5714f9(0x2945)][_0x5714f9(0x146b)](function(_0x171152){const _0x5c470b=_0x5714f9;_0xc0b701[_0x5c470b(0x1c75)]({'title':_0x5c470b(0x26c4)+_0x95e507+_0x5c470b(0x16e),'msg':_0x171152['message']||''});})['catch'](function(_0x451f81){const _0x378302=_0x5714f9;_0xc0b701[_0x378302(0x1980)]({'title':_0x451f81[_0x378302(0x107b)]+'\x20-\x20'+_0x451f81[_0x378302(0x167f)],'msg':JSON[_0x378302(0x10bb)](_0x451f81['data'])||_0x451f81[_0x378302(0x7fd)][_0x378302(0xb47)]('\x20')});});}function _0x1d2576(_0x2715bb,_0xcc11d7){const _0x46dbd5=_0x5520ed,_0x4fe4d9=_0x537ffb[_0x46dbd5(0x212a)]()[_0x46dbd5(0x1189)](_0x46dbd5(0x1d8c))['placeholder'](_0x46dbd5(0x27b7))[_0x46dbd5(0x1f27)](_0x2715bb)['ok']('Ok')[_0x46dbd5(0x6c3)](_0x46dbd5(0xcf0));return _0x537ffb['show'](_0x4fe4d9)['then'](function(_0x3676ec){const _0x2eae0c=_0x46dbd5;return _0x422ad2[_0x2eae0c(0x1af7)][_0x2eae0c(0x1741)]({'uniqueid':_0xcc11d7,'exten':_0x3676ec})['$promise'];})[_0x46dbd5(0x146b)](function(_0x345247){const _0x32a13c=_0x46dbd5;_0xc0b701[_0x32a13c(0x1c75)]({'title':_0x32a13c(0x26c4)+_0xcc11d7+_0x32a13c(0x16e),'msg':_0x345247['message']||''});})[_0x46dbd5(0x129e)](function(_0x422093){const _0x1c21a3=_0x46dbd5;_0xc0b701[_0x1c21a3(0x1980)]({'title':_0x422093[_0x1c21a3(0x107b)]+_0x1c21a3(0x1315)+_0x422093[_0x1c21a3(0x167f)],'msg':JSON[_0x1c21a3(0x10bb)](_0x422093['data'])||_0x422093[_0x1c21a3(0x7fd)]['join']('\x20')});});}_0x28764b[_0x5520ed(0x16ad)](_0x5520ed(0x116f),function(){const _0x9d7912=_0x5520ed;_0x5a94a2[_0x9d7912(0x1c5f)]('voice_queue_channel:save'),_0x5a94a2['removeAllListeners']('voice_queue_channel:remove');});}const _0x14b378=_0x3e896d;;_0xbf2d5['$inject']=[_0x313a4d(0x910),_0x313a4d(0x1abe),_0x313a4d(0xa0a),_0x313a4d(0x1b32),_0x313a4d(0x21af),_0x313a4d(0x247f),_0x313a4d(0x279d),_0x313a4d(0x26b6),_0x313a4d(0x1366),_0x313a4d(0xa87)];function _0xbf2d5(_0x3557b4,_0x46a502,_0x30859c,_0x3a6f4c,_0x142e76,_0x19277b,_0x3d1d2,_0x5c87d4,_0x4faaf3,_0x2ceef7){const _0x53bac3=_0x313a4d,_0x14eeef=this,_0x4d110e=[_0x53bac3(0x2877),_0x53bac3(0x23c3),'unmanaged',_0x53bac3(0x521),_0x53bac3(0x1098),'sumDuration',_0x53bac3(0x2761)];_0x14eeef['count']=_0x3a6f4c[_0x53bac3(0x51c)],_0x14eeef[_0x53bac3(0x1b32)]=_0x3a6f4c?_0x3f65c0()[_0x53bac3(0x194)](_0x3a6f4c[_0x53bac3(0x19c7)]?_0x3a6f4c[_0x53bac3(0x19c7)]:[],'id'):{},_0x14eeef[_0x53bac3(0x21af)]=_0x142e76?_0x3f65c0()[_0x53bac3(0x194)](_0x142e76[_0x53bac3(0x19c7)]?_0x142e76[_0x53bac3(0x19c7)]:[],'id'):{},_0x14eeef[_0x53bac3(0x26b6)]=_0x5c87d4,_0x14eeef[_0x53bac3(0x1366)]=_0x4faaf3&&_0x4faaf3['count']==0x1?_0x4faaf3[_0x53bac3(0x19c7)][0x0]:null,_0x14eeef['crudPermissions']=_0x2ceef7[_0x53bac3(0xe60)](_0x14eeef[_0x53bac3(0x1366)]?_0x14eeef[_0x53bac3(0x1366)][_0x53bac3(0x2514)]:null);_0x2ceef7[_0x53bac3(0x23e0)]('admin')?_0x14eeef['query']={'type':_0x53bac3(0x7b0),'fields':_0x53bac3(0x7a7),'sort':'-updatedAt','limit':0xa,'page':0x1}:_0x14eeef['query']={'id':_0x2ceef7[_0x53bac3(0xb12)]()['id'],'channel':_0x53bac3(0xe6),'type':_0x53bac3(0x7b0),'fields':_0x53bac3(0x7a7),'sort':_0x53bac3(0x12f2),'limit':0xa,'page':0x1};_0x14eeef[_0x53bac3(0x1c75)]=_0x6edb17,_0x14eeef[_0x53bac3(0xc53)]=_0x39b8a3,_0x14eeef['onSave']=_0x7b622f,_0x14eeef[_0x53bac3(0x20de)]=_0x3717d9,_0x3d1d2[_0x53bac3(0x13b7)]('voice_queue:save',_0x14eeef[_0x53bac3(0x1db0)]),_0x14eeef['interval']=_0x30859c(function(){},0x3e7);function _0x3717d9(){const _0x5b8c5c=_0x53bac3;_0x3f65c0()[_0x5b8c5c(0x1a04)](_0x14eeef[_0x5b8c5c(0x1b32)],function(_0x2de45d,_0x269678){const _0x51567f=_0x5b8c5c;_0x14eeef[_0x51567f(0x21af)][_0x269678]&&_0x3f65c0()[_0x51567f(0x168d)](_0x2de45d,_0x3f65c0()[_0x51567f(0x40e)](_0x14eeef[_0x51567f(0x21af)][_0x269678],_0x4d110e));});}function _0x7b622f(_0x248a77){const _0x1c592a=_0x53bac3;_0x14eeef[_0x1c592a(0x1b32)][_0x248a77['id']]&&_0x3f65c0()[_0x1c592a(0x168d)](_0x14eeef['queues'][_0x248a77['id']],_0x3f65c0()['pick'](_0x248a77,_0x4d110e));}let _0x411800=!![],_0x44d0d0=0x1;_0x3557b4['$watch']('vm.query.filter',function(_0x17873b,_0x359a71){const _0x54f8f0=_0x53bac3;_0x411800?_0x46a502(function(){_0x411800=![];}):(!_0x359a71&&(_0x44d0d0=_0x14eeef['query'][_0x54f8f0(0x844)]),_0x17873b!==_0x359a71&&(_0x14eeef['query'][_0x54f8f0(0x844)]=0x1),!_0x17873b&&(_0x14eeef[_0x54f8f0(0x1a56)][_0x54f8f0(0x844)]=_0x44d0d0),_0x14eeef[_0x54f8f0(0xc53)]());});function _0x6edb17(_0x4502e0){const _0x489610=_0x53bac3;_0x14eeef[_0x489610(0x51c)]=_0x4502e0[_0x489610(0x51c)],_0x14eeef[_0x489610(0x1b32)]=_0x4502e0?_0x3f65c0()[_0x489610(0x194)](_0x4502e0[_0x489610(0x19c7)]?_0x4502e0['rows']:[],'id'):{},_0x3717d9();}function _0x39b8a3(){const _0x246b8a=_0x53bac3;_0x14eeef[_0x246b8a(0x1a56)][_0x246b8a(0x145d)]=(_0x14eeef[_0x246b8a(0x1a56)]['page']-0x1)*_0x14eeef[_0x246b8a(0x1a56)]['limit'],_0x2ceef7[_0x246b8a(0x23e0)](_0x246b8a(0x174b))?_0x14eeef[_0x246b8a(0xb9c)]=_0x19277b[_0x246b8a(0x1446)][_0x246b8a(0x16b4)](_0x14eeef[_0x246b8a(0x1a56)],_0x6edb17)[_0x246b8a(0x2945)]:(_0x14eeef[_0x246b8a(0x1a56)]['id']=_0x14eeef[_0x246b8a(0x26b6)]['id'],_0x14eeef[_0x246b8a(0x1a56)][_0x246b8a(0x2146)]='VoiceQueues',_0x14eeef['promise']=_0x19277b[_0x246b8a(0x26b6)][_0x246b8a(0x158f)](_0x14eeef[_0x246b8a(0x1a56)],_0x6edb17)[_0x246b8a(0x2945)]);}_0x3557b4[_0x53bac3(0x16ad)]('$destroy',function(){const _0x35ccfb=_0x53bac3;_0x3d1d2[_0x35ccfb(0x1c5f)]('voice_queue:save'),_0x14eeef[_0x35ccfb(0x2765)]&&_0x30859c[_0x35ccfb(0x6c3)](_0x14eeef['interval']);});}const _0x253122=_0xbf2d5;;const _0x52d6e4=_0x4acfac['p']+_0x313a4d(0x2830);;const _0x78d9d1=_0x4acfac['p']+_0x313a4d(0x27b4);;_0x1aec4c['$inject']=[_0x313a4d(0x910),'$timeout',_0x313a4d(0x10e8),'$q',_0x313a4d(0x4d8),_0x313a4d(0xa0a),_0x313a4d(0x1b32),'rpcQueues',_0x313a4d(0x247f),_0x313a4d(0x279d),'toasty',_0x313a4d(0x26b6),'userProfileSection',_0x313a4d(0xa87)];function _0x1aec4c(_0x1b02a8,_0x3aa3c3,_0x453c9d,_0x8ee315,_0x1e91e0,_0x1830cc,_0x108df4,_0x4fd299,_0x2f06fb,_0x6fde71,_0x41e30f,_0xa1cad0,_0x4916c4,_0x3f63bb){const _0x3c1ecc=_0x313a4d,_0x3b08a4=this,_0x2c38c9=['loggedIn',_0x3c1ecc(0xbdb),'waiting',_0x3c1ecc(0x10ed),_0x3c1ecc(0x166f),'originated',_0x3c1ecc(0x7fd),_0x3c1ecc(0x1095),_0x3c1ecc(0x1a69),_0x3c1ecc(0x13c4),_0x3c1ecc(0x1e3d)];_0x3b08a4[_0x3c1ecc(0x2321)]=_0x3f63bb[_0x3c1ecc(0xb12)](),_0x3b08a4[_0x3c1ecc(0x51c)]=_0x108df4[_0x3c1ecc(0x51c)]?_0x108df4['count']:0x0,_0x3b08a4[_0x3c1ecc(0x1b32)]=_0x108df4?_0x3f65c0()[_0x3c1ecc(0x194)](_0x108df4[_0x3c1ecc(0x19c7)]?_0x108df4[_0x3c1ecc(0x19c7)]:[],'id'):{},_0x3b08a4['rpcQueues']=_0x4fd299?_0x3f65c0()[_0x3c1ecc(0x194)](_0x4fd299['rows']?_0x4fd299['rows']:[],'id'):{},_0x3b08a4[_0x3c1ecc(0x26b6)]=_0xa1cad0,_0x3b08a4[_0x3c1ecc(0x1366)]=_0x4916c4&&_0x4916c4[_0x3c1ecc(0x51c)]==0x1?_0x4916c4[_0x3c1ecc(0x19c7)][0x0]:null,_0x3b08a4[_0x3c1ecc(0x2514)]=_0x3f63bb[_0x3c1ecc(0xe60)](_0x3b08a4[_0x3c1ecc(0x1366)]?_0x3b08a4[_0x3c1ecc(0x1366)][_0x3c1ecc(0x2514)]:null);_0x3f63bb[_0x3c1ecc(0x23e0)]('admin')?_0x3b08a4[_0x3c1ecc(0x1a56)]={'type':_0x3c1ecc(0x7b0),'sort':_0x3c1ecc(0x12f2),'limit':0xa,'page':0x1}:_0x3b08a4[_0x3c1ecc(0x1a56)]={'id':_0x3b08a4[_0x3c1ecc(0x2321)]['id'],'channel':_0x3c1ecc(0xe6),'type':_0x3c1ecc(0x7b0),'sort':'-updatedAt','limit':0xa,'page':0x1};_0x3b08a4[_0x3c1ecc(0x1c75)]=_0x48daf0,_0x3b08a4['getQueues']=_0x4fd09b,_0x3b08a4[_0x3c1ecc(0x23b6)]=_0xdab8fb,_0x3b08a4[_0x3c1ecc(0x13c)]=_0x508702,_0x3b08a4[_0x3c1ecc(0x2801)]=_0x489e06,_0x3b08a4[_0x3c1ecc(0x1db0)]=_0x262284,_0x3b08a4[_0x3c1ecc(0x1028)]=_0x113701,_0x3b08a4[_0x3c1ecc(0x1c6c)]=_0x161b94,_0x3b08a4[_0x3c1ecc(0x600)]=_0x495e2c,_0x3b08a4[_0x3c1ecc(0x20de)]=_0x5245c6,_0x3b08a4[_0x3c1ecc(0x206e)]=[],_0x3f65c0()[_0x3c1ecc(0x1a04)](_0x3b08a4[_0x3c1ecc(0x1b32)],function(_0x2aa32d){const _0x5c4fe7=_0x3c1ecc;_0x3b08a4[_0x5c4fe7(0x206e)][_0x5c4fe7(0x1f47)](_0x2aa32d['id']);}),_0x6fde71[_0x3c1ecc(0x13b7)](_0x3c1ecc(0x101d),_0x3b08a4['onSave']),_0x3b08a4['interval']=_0x1830cc(function(){},0x3e7),_0x6fde71['on'](_0x3c1ecc(0x324),_0x3b08a4[_0x3c1ecc(0x1028)]),_0x6fde71['on'](_0x3c1ecc(0x1d3e),_0x3b08a4[_0x3c1ecc(0x600)]),_0x6fde71['on'](_0x3c1ecc(0x109d),_0x3b08a4[_0x3c1ecc(0x1c6c)]);function _0x5245c6(){const _0x408c41=_0x3c1ecc,_0x1b19b7=[];return _0x3f65c0()['forIn'](_0x3b08a4[_0x408c41(0x1b32)],function(_0x979ef8,_0x53b866){const _0x2ad7d8=_0x408c41;_0x979ef8[_0x2ad7d8(0x1e3d)]=0x0,_0x979ef8[_0x2ad7d8(0x1899)]=0x0,_0x3b08a4[_0x2ad7d8(0x1b32)][_0x53b866][_0x2ad7d8(0x23c0)]={},_0x1b19b7[_0x2ad7d8(0x1f47)](_0x2f06fb[_0x2ad7d8(0x1446)][_0x2ad7d8(0x24c3)]({'id':_0x53b866})['$promise']),_0x3b08a4[_0x2ad7d8(0x21af)][_0x53b866]&&_0x3f65c0()['merge'](_0x979ef8,_0x3f65c0()['pick'](_0x3b08a4['rpcQueues'][_0x53b866],_0x2c38c9));}),_0x8ee315[_0x408c41(0x1be2)](_0x1b19b7)[_0x408c41(0x146b)](function(_0x411062){const _0x2b538d=_0x408c41;for(let _0x1b4368=0x0;_0x1b4368<_0x411062[_0x2b538d(0x402)];_0x1b4368+=0x1){for(let _0x451856=0x0;_0x451856<_0x411062[_0x1b4368][_0x2b538d(0x19c7)][_0x2b538d(0x402)];_0x451856++){_0x411062[_0x1b4368][_0x2b538d(0x19c7)][_0x451856][_0x2b538d(0x1e3d)]&&_0x3b08a4[_0x2b538d(0x1b32)][_0x411062[_0x1b4368][_0x2b538d(0x19c7)][_0x451856][_0x2b538d(0x6ed)]][_0x2b538d(0x1e3d)]++,_0x3b08a4[_0x2b538d(0x1b32)][_0x411062[_0x1b4368][_0x2b538d(0x19c7)][_0x451856]['VoiceQueueId']][_0x2b538d(0x1899)]++,_0x3b08a4['queues'][_0x411062[_0x1b4368][_0x2b538d(0x19c7)][_0x451856][_0x2b538d(0x6ed)]][_0x2b538d(0x23c0)][_0x411062[_0x1b4368][_0x2b538d(0x19c7)][_0x451856][_0x2b538d(0xea2)]]=_0x411062[_0x1b4368][_0x2b538d(0x19c7)][_0x451856][_0x2b538d(0x6ed)];}}})[_0x408c41(0x129e)](function(_0x5b36b9){console['error'](_0x5b36b9);});}function _0x262284(_0x213fcb){const _0x14fab9=_0x3c1ecc;_0x3b08a4[_0x14fab9(0x1b32)][_0x213fcb['id']]&&_0x3f65c0()['merge'](_0x3b08a4[_0x14fab9(0x1b32)][_0x213fcb['id']],_0x3f65c0()[_0x14fab9(0x40e)](_0x213fcb,_0x2c38c9));}function _0x113701(_0x44730d){const _0x42da8f=_0x3c1ecc;console[_0x42da8f(0x1a74)](_0x42da8f(0x1028),_0x44730d);if(_0x44730d[_0x42da8f(0x211c)])_0x3f65c0()[_0x42da8f(0x1a04)](_0x3b08a4[_0x42da8f(0x1b32)],function(_0x4e71d4){const _0x5a146d=_0x42da8f;_0x4e71d4[_0x5a146d(0x23c0)][_0x44730d['id']]&&(_0x4e71d4[_0x5a146d(0x1e3d)]+=0x1,console[_0x5a146d(0x1a74)](_0x5a146d(0x1e3e)));});else!_0x44730d[_0x42da8f(0x211c)]&&_0x3f65c0()['forIn'](_0x3b08a4[_0x42da8f(0x1b32)],function(_0x1741ce){const _0x5f4670=_0x42da8f;_0x1741ce[_0x5f4670(0x23c0)][_0x44730d['id']]&&(_0x1741ce[_0x5f4670(0x1e3d)]>0x0&&(_0x1741ce[_0x5f4670(0x1e3d)]-=0x1,console[_0x5f4670(0x1a74)](_0x5f4670(0x974))));});}function _0x161b94(_0xc73327){const _0x96b5d6=_0x3c1ecc;console[_0x96b5d6(0x1a74)]('onLogged',_0xc73327),_0x3b08a4[_0x96b5d6(0x1b32)][_0xc73327[_0x96b5d6(0x6ed)]]&&(_0x3b08a4[_0x96b5d6(0x1b32)][_0xc73327[_0x96b5d6(0x6ed)]][_0x96b5d6(0x1899)]+=0x1,_0x3b08a4[_0x96b5d6(0x1b32)][_0xc73327[_0x96b5d6(0x6ed)]][_0x96b5d6(0x23c0)][_0xc73327[_0x96b5d6(0xea2)]]=_0xc73327[_0x96b5d6(0x6ed)]);}function _0x495e2c(_0x510c9a){const _0x115c5d=_0x3c1ecc;console[_0x115c5d(0x1a74)](_0x115c5d(0x600),_0x510c9a),_0x3b08a4['queues'][_0x510c9a['VoiceQueueId']]&&_0x3b08a4[_0x115c5d(0x1b32)][_0x510c9a['VoiceQueueId']][_0x115c5d(0x1899)]>0x0&&(_0x3b08a4[_0x115c5d(0x1b32)][_0x510c9a['VoiceQueueId']][_0x115c5d(0x1899)]-=0x1,delete _0x3b08a4['queues'][_0x510c9a[_0x115c5d(0x6ed)]][_0x115c5d(0x23c0)][_0x510c9a['UserId']]);}let _0x24614a=!![],_0x3f6fd7=0x1;_0x1b02a8[_0x3c1ecc(0x21e8)]('vm.query.filter',function(_0x4724f5,_0x41870a){const _0x1e1b65=_0x3c1ecc;_0x24614a?_0x3aa3c3(function(){_0x24614a=![];}):(!_0x41870a&&(_0x3f6fd7=_0x3b08a4['query'][_0x1e1b65(0x844)]),_0x4724f5!==_0x41870a&&(_0x3b08a4[_0x1e1b65(0x1a56)][_0x1e1b65(0x844)]=0x1),!_0x4724f5&&(_0x3b08a4['query']['page']=_0x3f6fd7),_0x3b08a4[_0x1e1b65(0xc53)]());});function _0x48daf0(_0x176c39){const _0x1bd77b=_0x3c1ecc;_0x3b08a4[_0x1bd77b(0x51c)]=_0x176c39[_0x1bd77b(0x51c)],_0x3b08a4[_0x1bd77b(0x1b32)]=_0x176c39?_0x3f65c0()[_0x1bd77b(0x194)](_0x176c39['rows']?_0x176c39[_0x1bd77b(0x19c7)]:[],'id'):{};if(_0x176c39[_0x1bd77b(0x19c7)]){_0x3b08a4[_0x1bd77b(0x206e)]=[];for(let _0x2d89b1=0x0;_0x2d89b1<_0x176c39[_0x1bd77b(0x19c7)]['length'];_0x2d89b1++){_0x3b08a4['order'][_0x1bd77b(0x1f47)](_0x176c39['rows'][_0x2d89b1]['id']);}}_0x5245c6();}function _0x4fd09b(){const _0x2a4427=_0x3c1ecc;_0x3b08a4[_0x2a4427(0x1a56)][_0x2a4427(0x145d)]=(_0x3b08a4[_0x2a4427(0x1a56)]['page']-0x1)*_0x3b08a4[_0x2a4427(0x1a56)]['limit'],_0x3f63bb[_0x2a4427(0x23e0)](_0x2a4427(0x174b))?_0x3b08a4[_0x2a4427(0xb9c)]=_0x2f06fb['voiceQueue']['get'](_0x3b08a4['query'],_0x48daf0)[_0x2a4427(0x2945)]:(_0x3b08a4[_0x2a4427(0x1a56)]['id']=_0x3b08a4[_0x2a4427(0x26b6)]['id'],_0x3b08a4['query'][_0x2a4427(0x2146)]='VoiceQueues',_0x3b08a4['promise']=_0x2f06fb[_0x2a4427(0x26b6)][_0x2a4427(0x158f)](_0x3b08a4[_0x2a4427(0x1a56)],_0x48daf0)[_0x2a4427(0x2945)]);}function _0xdab8fb(_0x76dff9,_0x56aeec){const _0x1c0d11=_0x3c1ecc;_0x453c9d[_0x1c0d11(0x2615)]({'controller':_0x1c0d11(0xb8b),'controllerAs':'vm','templateUrl':_0x52d6e4,'parent':angular[_0x1c0d11(0x1853)](_0x1e91e0[_0x1c0d11(0x2586)]),'targetEvent':_0x76dff9,'clickOutsideToClose':!![],'locals':{'voiceQueue':_0x56aeec,'voiceQueues':_0x3f65c0()[_0x1c0d11(0x81b)](_0x3b08a4[_0x1c0d11(0x1b32)]),'license':null,'setting':null,'crudPermissions':_0x3b08a4[_0x1c0d11(0x2514)]}});}function _0x508702(_0x39e780,_0x4bf9d5){const _0x533f97=_0x3c1ecc;_0x453c9d['show']({'controller':_0x533f97(0x244d),'controllerAs':'vm','templateUrl':_0x78d9d1,'parent':angular['element'](_0x1e91e0[_0x533f97(0x2586)]),'targetEvent':_0x39e780,'clickOutsideToClose':!![],'locals':{'voiceQueue':_0x4bf9d5,'voiceQueues':_0x3b08a4['queues']?_0x3b08a4[_0x533f97(0x1b32)][_0x533f97(0x19c7)]:[],'realtime':!![],'crudPermissions':_0x3b08a4[_0x533f97(0x2514)]}});}function _0x489e06(_0x5011a0){const _0x2c7197=_0x3c1ecc;return _0x2f06fb[_0x2c7197(0x1446)][_0x2c7197(0x18e1)](_0x5011a0)['$promise'][_0x2c7197(0x146b)](function(){const _0x15219f=_0x2c7197;_0x41e30f[_0x15219f(0x1c75)]({'title':_0x15219f(0x5f1),'msg':_0x5011a0[_0x15219f(0x19eb)]?_0x5011a0['name']+_0x15219f(0x6b0):''});})[_0x2c7197(0x129e)](function(_0x3fbf7e){const _0x189a03=_0x2c7197;_0x41e30f[_0x189a03(0x1980)]({'title':_0x189a03(0x2174),'msg':_0x3fbf7e[_0x189a03(0x7fd)]});});}_0x1b02a8[_0x3c1ecc(0x16ad)](_0x3c1ecc(0x116f),function(){const _0x368462=_0x3c1ecc;_0x6fde71['removeAllListeners'](_0x368462(0x101d)),_0x3b08a4[_0x368462(0x2765)]&&_0x1830cc[_0x368462(0x6c3)](_0x3b08a4[_0x368462(0x2765)]),_0x6fde71[_0x368462(0x1c5f)](_0x368462(0x324)),_0x6fde71['removeAllListeners'](_0x368462(0x1d3e)),_0x6fde71[_0x368462(0x1c5f)](_0x368462(0x109d));});}const _0xb427ff=_0x1aec4c;;function _0xbbaa46(){const _0x388604=_0x313a4d;return{'status':{'registered':_0x388604(0xdf4),'unregistered':'red-300-fg\x20icon-close-circle','lagged':_0x388604(0x4c7),'reachable':_0x388604(0xdf4),'unreachable':_0x388604(0x4c7),'unknown':'grey-fg\x20icon-minus-circle'},'state':{'unknown':_0x388604(0x1fd7),'not_inuse':_0x388604(0x1756),'inuse':_0x388604(0x255c),'busy':_0x388604(0xb3c),'invalid':_0x388604(0x1fd7),'unavailable':_0x388604(0x1fd7),'ringing':_0x388604(0x1172),'ringinuse':_0x388604(0x1172),'onhold':_0x388604(0x119f)},'channelStatus':{'ring':'blue-300-fg\x20icon-phone-incoming','up':_0x388604(0x1668),'hangup':_0x388604(0x135d)},'channelStatusOut':{'ring':'blue-300-fg\x20icon-phone-outgoing','up':_0x388604(0x1668),'hangup':_0x388604(0x135d)}};}const _0x3554c0=_0xbbaa46;;_0x58823a[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1862),_0x313a4d(0x279d)];function _0x58823a(_0x2e410e,_0x226108,_0x3ab132){const _0x34e49c=_0x313a4d,_0x5e464c=this;_0x3ab132[_0x34e49c(0x194a)](),_0x3ab132[_0x34e49c(0x2e3)](),_0x5e464c[_0x34e49c(0x1b09)]=0x0;switch(_0x226108[_0x34e49c(0x2d7)][_0x34e49c(0x19eb)]){case'app.voice.realtime.agents':_0x5e464c[_0x34e49c(0x1b09)]=0x0;break;case _0x34e49c(0xfca):_0x5e464c[_0x34e49c(0x1b09)]=0x1;break;case'app.voice.realtime.trunks':_0x5e464c['selectedTab']=0x2;break;case _0x34e49c(0x32b):_0x5e464c[_0x34e49c(0x1b09)]=0x3;break;case'app.voice.realtime.queue_calls':_0x5e464c[_0x34e49c(0x1b09)]=0x4;break;case _0x34e49c(0x13bb):_0x5e464c[_0x34e49c(0x1b09)]=0x5;break;case _0x34e49c(0x1024):_0x5e464c['selectedTab']=0x6;break;case _0x34e49c(0x978):_0x5e464c[_0x34e49c(0x1b09)]=0x7;break;default:_0x5e464c[_0x34e49c(0x1b09)]=0x0,_0x226108['go']('app.voice.realtime.agents');}_0x2e410e['$watch'](_0x34e49c(0x241b),function(_0x32faa6,_0x3bc1ee){const _0x570b92=_0x34e49c;if(_0x32faa6!==_0x3bc1ee)switch(_0x32faa6){case 0x0:_0x226108['go'](_0x570b92(0x74a));break;case 0x1:_0x226108['go'](_0x570b92(0xfca));break;case 0x2:_0x226108['go'](_0x570b92(0x146));break;case 0x3:_0x226108['go'](_0x570b92(0x32b));break;case 0x4:_0x226108['go'](_0x570b92(0x17e4));break;case 0x5:_0x226108['go'](_0x570b92(0x13bb));break;case 0x6:_0x226108['go'](_0x570b92(0x1024));break;case 0x7:_0x226108['go'](_0x570b92(0x978));break;default:_0x226108['go'](_0x570b92(0x74a));}});}const _0x2d3060=_0x58823a;;_0xa11eb1[_0x313a4d(0x11c2)]=['$scope',_0x313a4d(0x1abe),_0x313a4d(0x10e8),'telephones','rpcTelephones','api',_0x313a4d(0x279d),_0x313a4d(0x1ac0),'userProfile','userProfileSection',_0x313a4d(0xa87)];function _0xa11eb1(_0x789b42,_0x182484,_0x194331,_0xf8f410,_0x12a470,_0x3d5341,_0x1f7508,_0x1fd921,_0x2617e1,_0x63362c,_0x337b3f){const _0x307a2b=_0x313a4d,_0x558ca4=this,_0x14d5e4=[_0x307a2b(0x286a),_0x307a2b(0x113f),_0x307a2b(0x13d6),_0x307a2b(0x107b)];_0x558ca4[_0x307a2b(0x51c)]=_0xf8f410['count'],_0x558ca4[_0x307a2b(0x130d)]=['fullname','internal','state',_0x307a2b(0x107b),_0x307a2b(0x2bb)],_0x558ca4['telephones']=_0xf8f410?_0x3f65c0()[_0x307a2b(0x194)](_0xf8f410[_0x307a2b(0x19c7)]?_0xf8f410[_0x307a2b(0x19c7)]:[],'id'):{},_0x558ca4[_0x307a2b(0x2648)]=_0x12a470?_0x3f65c0()[_0x307a2b(0x194)](_0x12a470[_0x307a2b(0x19c7)]?_0x12a470[_0x307a2b(0x19c7)]:[],'id'):{},_0x558ca4['userProfile']=_0x2617e1,_0x558ca4['userProfileSection']=_0x63362c&&_0x63362c[_0x307a2b(0x51c)]==0x1?_0x63362c[_0x307a2b(0x19c7)][0x0]:null,_0x558ca4['crudPermissions']=_0x337b3f[_0x307a2b(0xe60)](_0x558ca4['userProfileSection']?_0x558ca4[_0x307a2b(0x1366)][_0x307a2b(0x2514)]:null),_0x558ca4[_0x307a2b(0x1a56)]={'fields':_0x307a2b(0xbff),'role':_0x307a2b(0x90c),'sort':_0x307a2b(0x12f2),'limit':0xa,'page':0x1},_0x558ca4[_0x307a2b(0x1bce)]=_0x1fd921['status'],_0x558ca4[_0x307a2b(0x2705)]=_0x1fd921['state'],_0x558ca4[_0x307a2b(0x1c75)]=_0x373a19,_0x558ca4[_0x307a2b(0x20de)]=_0x4d1874,_0x558ca4['showInfo']=_0xdd4e58,_0x558ca4[_0x307a2b(0x1948)]=_0x290215,_0x558ca4[_0x307a2b(0x1db0)]=_0xed7a2b,_0x1f7508['on'](_0x307a2b(0xd12),_0x558ca4[_0x307a2b(0x1db0)]);function _0x4d1874(){const _0x5dd7b5=_0x307a2b;_0x3f65c0()['forIn'](_0x558ca4[_0x5dd7b5(0xd4b)],function(_0x340dd1,_0x2fb2a4){const _0x392b5b=_0x5dd7b5;_0x558ca4[_0x392b5b(0x2648)][_0x2fb2a4]&&_0x3f65c0()['merge'](_0x340dd1,_0x3f65c0()[_0x392b5b(0x40e)](_0x558ca4[_0x392b5b(0x2648)][_0x2fb2a4],_0x14d5e4));});}function _0xdd4e58(_0x555620){const _0x474b62=_0x307a2b;_0x194331[_0x474b62(0x2615)](_0x194331[_0x474b62(0x861)]()['clickOutsideToClose'](!![])['title'](_0x474b62(0x2783))[_0x474b62(0x1cbe)](_0x474b62(0x1f77))['ok']('Ok')[_0x474b62(0x1f27)](_0x555620));}function _0xed7a2b(_0x668af2){const _0x35dfc0=_0x307a2b;_0x558ca4[_0x35dfc0(0xd4b)][_0x668af2['id']]&&_0x3f65c0()[_0x35dfc0(0x168d)](_0x558ca4[_0x35dfc0(0xd4b)][_0x668af2['id']],_0x3f65c0()[_0x35dfc0(0x40e)](_0x668af2,_0x14d5e4));}let _0x5db244=!![],_0x3d18db=0x1;_0x789b42[_0x307a2b(0x21e8)](_0x307a2b(0x2669),function(_0x28d0b0,_0x3207a2){const _0x49ba2d=_0x307a2b;_0x5db244?_0x182484(function(){_0x5db244=![];}):(!_0x3207a2&&(_0x3d18db=_0x558ca4[_0x49ba2d(0x1a56)][_0x49ba2d(0x844)]),_0x28d0b0!==_0x3207a2&&(_0x558ca4[_0x49ba2d(0x1a56)][_0x49ba2d(0x844)]=0x1),!_0x28d0b0&&(_0x558ca4['query'][_0x49ba2d(0x844)]=_0x3d18db),_0x558ca4[_0x49ba2d(0x1948)]());});function _0x373a19(_0x33f79f){const _0x25545d=_0x307a2b;_0x558ca4['telephones']=_0x33f79f?_0x3f65c0()[_0x25545d(0x194)](_0x33f79f[_0x25545d(0x19c7)]?_0x33f79f[_0x25545d(0x19c7)]:[],'id'):{},_0x4d1874();}function _0x290215(){const _0x44b48a=_0x307a2b;_0x558ca4[_0x44b48a(0x1a56)][_0x44b48a(0x145d)]=(_0x558ca4[_0x44b48a(0x1a56)][_0x44b48a(0x844)]-0x1)*_0x558ca4['query'][_0x44b48a(0x221e)],_0x337b3f[_0x44b48a(0x23e0)](_0x44b48a(0x174b))?_0x558ca4[_0x44b48a(0xb9c)]=_0x3d5341[_0x44b48a(0xe7b)][_0x44b48a(0x16b4)](_0x558ca4['query'],_0x373a19)[_0x44b48a(0x2945)]:(_0x558ca4[_0x44b48a(0x1a56)]['id']=_0x558ca4['userProfile']['id'],_0x558ca4['query']['section']=_0x44b48a(0x3af),_0x558ca4[_0x44b48a(0xb9c)]=_0x3d5341[_0x44b48a(0x26b6)]['getResources'](_0x558ca4[_0x44b48a(0x1a56)],_0x373a19)['$promise']);}_0x789b42[_0x307a2b(0x16ad)](_0x307a2b(0x116f),function(){_0x1f7508['removeAllListeners']('telephone:save');});}const _0x314b68=_0xa11eb1;;_0x1ad5a1[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1abe),_0x313a4d(0x10e8),_0x313a4d(0x2433),_0x313a4d(0x12fd),'api',_0x313a4d(0x279d),_0x313a4d(0x1ac0),'$state',_0x313a4d(0x26b6),_0x313a4d(0x1366),_0x313a4d(0xa87)];function _0x1ad5a1(_0x51e65e,_0x240b0f,_0x1cf021,_0x5bd650,_0x2c82a6,_0x57385e,_0x2363ed,_0x2e25c0,_0x19831e,_0x284d9e,_0x480645,_0x3a4544){const _0x3abde1=_0x313a4d,_0x4f9883=this,_0x8a2d01=[_0x3abde1(0x107b),_0x3abde1(0x124d),_0x3abde1(0xccb),_0x3abde1(0x148e),_0x3abde1(0x1553),_0x3abde1(0x113f),_0x3abde1(0x13d6),_0x3abde1(0x107b)];_0x4f9883[_0x3abde1(0x2321)]=_0x3a4544[_0x3abde1(0xb12)](),_0x4f9883['count']=_0x5bd650['count'],_0x4f9883['trunks']=_0x5bd650?_0x5bd650[_0x3abde1(0x19c7)]:[],_0x4f9883[_0x3abde1(0x12fd)]=_0x2c82a6?_0x2c82a6[_0x3abde1(0x19c7)]?_0x2c82a6['rows']:[]:[],_0x4f9883[_0x3abde1(0x1a56)]={'fields':_0x3abde1(0x7a7),'active':!![],'sort':_0x3abde1(0x12f2),'limit':0xa,'page':0x1},_0x4f9883['statusClass']=_0x2e25c0['status'],_0x4f9883[_0x3abde1(0x2705)]=_0x2e25c0[_0x3abde1(0x13d6)],_0x4f9883['userProfile']=_0x284d9e,_0x4f9883['userProfileSection']=_0x480645&&_0x480645['count']==0x1?_0x480645[_0x3abde1(0x19c7)][0x0]:null,_0x4f9883[_0x3abde1(0x2514)]=_0x3a4544['parseCrudPermissions'](_0x4f9883[_0x3abde1(0x1366)]?_0x4f9883[_0x3abde1(0x1366)][_0x3abde1(0x2514)]:null),_0x4f9883[_0x3abde1(0x1c75)]=_0x509467,_0x4f9883[_0x3abde1(0x20de)]=_0x36f062,_0x4f9883[_0x3abde1(0x232c)]=_0x3ce7a2,_0x4f9883[_0x3abde1(0x1cd4)]=_0x4f3f9e,_0x4f9883[_0x3abde1(0x2428)]=_0xb3df5f,_0x4f9883['onSave']=_0x970cd3,_0x2363ed['on'](_0x3abde1(0x1d61),_0x4f9883['onSave']);function _0x36f062(){const _0x3d5eb1=_0x3abde1;let _0x1cfef7;for(let _0xa4ea71=0x0;_0xa4ea71<_0x4f9883['trunks'][_0x3d5eb1(0x402)];_0xa4ea71+=0x1){_0x1cfef7=_0x3f65c0()[_0x3d5eb1(0x99c)](_0x4f9883[_0x3d5eb1(0x12fd)],['id',_0x4f9883['trunks'][_0xa4ea71]['id']]),_0x1cfef7>=0x0&&_0x3f65c0()['merge'](_0x4f9883['trunks'][_0xa4ea71],_0x3f65c0()[_0x3d5eb1(0x40e)](_0x4f9883[_0x3d5eb1(0x12fd)][_0x1cfef7],_0x8a2d01));}}function _0x3ce7a2(_0x409073){const _0xec8af8=_0x3abde1;_0x1cf021['show'](_0x1cf021[_0xec8af8(0x861)]()[_0xec8af8(0xa70)](!![])[_0xec8af8(0x1189)](_0xec8af8(0x2783))[_0xec8af8(0x1cbe)]('
    TODO\x20legend\x20status\x20+\x20state
    ')['ok']('Ok')['targetEvent'](_0x409073));}function _0x9d69e1(_0x385766,_0x318feb,_0x47b227){const _0x3c209c=_0x3abde1;_0x318feb>=0x0&&_0x3f65c0()[_0x3c209c(0x168d)](_0x385766[_0x318feb],_0x3f65c0()[_0x3c209c(0x40e)](_0x47b227,_0x8a2d01));}function _0x970cd3(_0x2889fc){const _0x3ed0a2=_0x3abde1,_0x12bda0=_0x3f65c0()[_0x3ed0a2(0x99c)](_0x4f9883[_0x3ed0a2(0x2433)],['id',_0x2889fc['id']]),_0x3027c4=_0x3f65c0()[_0x3ed0a2(0x99c)](_0x4f9883[_0x3ed0a2(0x12fd)],['id',_0x2889fc['id']]);_0x9d69e1(_0x4f9883[_0x3ed0a2(0x2433)],_0x12bda0,_0x2889fc),_0x9d69e1(_0x4f9883[_0x3ed0a2(0x12fd)],_0x3027c4,_0x2889fc);}let _0xa1215d=!![],_0x2823eb=0x1;_0x51e65e[_0x3abde1(0x21e8)]('vm.query.filter',function(_0x2acd98,_0x5a672d){const _0x499ea4=_0x3abde1;_0xa1215d?_0x240b0f(function(){_0xa1215d=![];}):(!_0x5a672d&&(_0x2823eb=_0x4f9883[_0x499ea4(0x1a56)][_0x499ea4(0x844)]),_0x2acd98!==_0x5a672d&&(_0x4f9883[_0x499ea4(0x1a56)][_0x499ea4(0x844)]=0x1),!_0x2acd98&&(_0x4f9883[_0x499ea4(0x1a56)][_0x499ea4(0x844)]=_0x2823eb),_0x4f9883[_0x499ea4(0x1cd4)]());});function _0x509467(_0x2dcee3){const _0x28e603=_0x3abde1;_0x4f9883[_0x28e603(0x51c)]=_0x2dcee3[_0x28e603(0x51c)],_0x4f9883['trunks']=_0x2dcee3?_0x2dcee3[_0x28e603(0x19c7)]?_0x2dcee3[_0x28e603(0x19c7)]:[]:[],_0x36f062();}function _0x4f3f9e(){const _0x6f4cc4=_0x3abde1;_0x4f9883[_0x6f4cc4(0x1a56)][_0x6f4cc4(0x145d)]=(_0x4f9883[_0x6f4cc4(0x1a56)]['page']-0x1)*_0x4f9883['query']['limit'],_0x3a4544['hasRole'](_0x6f4cc4(0x174b))?_0x4f9883[_0x6f4cc4(0xb9c)]=_0x57385e[_0x6f4cc4(0x279f)][_0x6f4cc4(0x16b4)](_0x4f9883['query'],_0x509467)[_0x6f4cc4(0x2945)]:(_0x4f9883[_0x6f4cc4(0x1a56)]['id']=_0x4f9883[_0x6f4cc4(0x26b6)]['id'],_0x4f9883['query']['section']=_0x6f4cc4(0x110f),_0x4f9883[_0x6f4cc4(0xb9c)]=_0x57385e[_0x6f4cc4(0x26b6)][_0x6f4cc4(0x158f)](_0x4f9883[_0x6f4cc4(0x1a56)],_0x509467)[_0x6f4cc4(0x2945)]);}_0x51e65e[_0x3abde1(0x16ad)](_0x3abde1(0x116f),function(){const _0x1114f7=_0x3abde1;_0x2363ed[_0x1114f7(0x1c5f)](_0x1114f7(0x1d61));});function _0xb3df5f(_0x196573,_0x455c9c){const _0x5a8097=_0x3abde1;_0x19831e['go'](_0x5a8097(0x5f0),{'id':_0x455c9c['id']});}}const _0x381cb9=_0x1ad5a1;;const _0x24ed2e=_0x4acfac['p']+_0x313a4d(0x271);;const _0x171109=_0x4acfac['p']+_0x313a4d(0x1472);;const _0x18ba53=_0x4acfac['p']+'src/js/modules/main/apps/voice/views/realtime/telephones/view.html/view.html';;const _0x4da02d=_0x4acfac['p']+'src/js/modules/main/apps/voice/views/realtime/trunks/view.html/view.html';;const _0x354242=_0x4acfac['p']+_0x313a4d(0xf71);;const _0x45c711=_0x4acfac['p']+'src/js/modules/main/apps/voice/views/realtime/queue_calls/view.html/view.html';;const _0x14cf2a=_0x4acfac['p']+_0x313a4d(0x5cf);;const _0x372da4=_0x4acfac['p']+_0x313a4d(0x201e);;const _0x439c73=_0x4acfac['p']+_0x313a4d(0xc41);;_0x538823[_0x313a4d(0x11c2)]=[_0x313a4d(0x921)];function _0x538823(_0x3af03f){const _0x9cf319=_0x313a4d;_0x3af03f[_0x9cf319(0x13d6)](_0x9cf319(0x17fd),{'url':'/realtime','views':{'content@app':{'templateUrl':_0x24ed2e,'controller':_0x9cf319(0xea8)}},'resolve':{'userProfile':[_0x9cf319(0x362),_0x9cf319(0xa87),function(_0x5b3e1d,_0xc1c57d){const _0x2cc430=_0x9cf319;return _0xc1c57d['hasRole'](_0x2cc430(0x174b))?null:_0x5b3e1d[_0x2cc430(0x2922)](_0x2cc430(0x119a),{'fields':_0x2cc430(0x227),'id':_0xc1c57d[_0x2cc430(0xb12)]()[_0x2cc430(0x209a)]});}],'userProfileSection':[_0x9cf319(0x362),'Auth',function(_0x18465d,_0x4dfcfb){const _0x2df8fc=_0x9cf319;return _0x4dfcfb[_0x2df8fc(0x23e0)]('admin')?null:_0x18465d[_0x2df8fc(0x2922)](_0x2df8fc(0x27be),{'fields':_0x2df8fc(0x1e64),'userProfileId':_0x4dfcfb[_0x2df8fc(0xb12)]()[_0x2df8fc(0x209a)],'sectionId':0x19b});}]},'authenticate':!![],'permissionId':0x19b})['state']('app.voice.realtime.agents',{'url':_0x9cf319(0x1507),'controller':_0x9cf319(0x1baa),'templateUrl':_0x171109,'resolve':{'pauses':[_0x9cf319(0x362),function(_0x40cb01){const _0x23f771=_0x9cf319;return _0x40cb01[_0x23f771(0x2922)](_0x23f771(0x3f6),{'nolimit':!![]});}],'agents':[_0x9cf319(0x362),_0x9cf319(0xa87),function(_0x4ab350,_0x21ba1e){const _0x5c73c9=_0x9cf319;return _0x21ba1e['hasRole'](_0x5c73c9(0x174b))?_0x4ab350['resolve'](_0x5c73c9(0x2484),{'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':_0x5c73c9(0x1755),'sort':_0x5c73c9(0x286a),'nolimit':!![]}):_0x4ab350['resolve'](_0x5c73c9(0x938),{'id':_0x21ba1e[_0x5c73c9(0xb12)]()[_0x5c73c9(0x209a)],'section':_0x5c73c9(0xca8),'fields':_0x5c73c9(0x2869),'role':'agent','sort':_0x5c73c9(0x286a),'nolimit':!![]});}],'userProfile':[_0x9cf319(0x362),_0x9cf319(0xa87),function(_0x1a1a52,_0x5d4944){const _0x144ccb=_0x9cf319;return _0x5d4944['hasRole']('admin')?null:_0x1a1a52['resolve'](_0x144ccb(0x119a),{'fields':_0x144ccb(0x227),'id':_0x5d4944['getCurrentUser']()[_0x144ccb(0x209a)]});}],'userProfileSection':['apiResolver',_0x9cf319(0xa87),function(_0xdfc29d,_0x26cc8f){const _0x5881e4=_0x9cf319;return _0x26cc8f['hasRole'](_0x5881e4(0x174b))?null:_0xdfc29d['resolve']('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x26cc8f[_0x5881e4(0xb12)]()[_0x5881e4(0x209a)],'sectionId':0xca});}],'rpcAgents':[_0x9cf319(0x362),function(_0x1b972a){const _0xb9af3d=_0x9cf319;return _0x1b972a[_0xb9af3d(0x2922)](_0xb9af3d(0x19ab));}]},'authenticate':!![],'permissionId':0x19b})[_0x9cf319(0x13d6)](_0x9cf319(0xfca),{'url':_0x9cf319(0x15d1),'controller':'TelephonesVoiceRealtimeController\x20as\x20vm','templateUrl':_0x18ba53,'resolve':{'telephones':[_0x9cf319(0x362),_0x9cf319(0xa87),function(_0x582953,_0x28bfeb){const _0x5dcbed=_0x9cf319;return _0x28bfeb[_0x5dcbed(0x23e0)](_0x5dcbed(0x174b))?_0x582953[_0x5dcbed(0x2922)](_0x5dcbed(0x2484),{'fields':_0x5dcbed(0x285a),'role':_0x5dcbed(0x90c),'sort':_0x5dcbed(0x12f2),'limit':0xa,'offset':0x0}):_0x582953[_0x5dcbed(0x2922)](_0x5dcbed(0x938),{'id':_0x28bfeb[_0x5dcbed(0xb12)]()[_0x5dcbed(0x209a)],'section':'Telephones','fields':_0x5dcbed(0x285a),'role':_0x5dcbed(0x90c),'sort':_0x5dcbed(0x12f2),'limit':0xa,'offset':0x0});}],'userProfile':[_0x9cf319(0x362),'Auth',function(_0x2ebe03,_0x29c96e){const _0x23ec0b=_0x9cf319;return _0x29c96e[_0x23ec0b(0x23e0)]('admin')?null:_0x2ebe03[_0x23ec0b(0x2922)](_0x23ec0b(0x119a),{'fields':_0x23ec0b(0x227),'id':_0x29c96e[_0x23ec0b(0xb12)]()[_0x23ec0b(0x209a)]});}],'userProfileSection':[_0x9cf319(0x362),_0x9cf319(0xa87),function(_0x252b4c,_0x27346d){const _0xea8187=_0x9cf319;return _0x27346d['hasRole']('admin')?null:_0x252b4c[_0xea8187(0x2922)](_0xea8187(0x27be),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x27346d[_0xea8187(0xb12)]()[_0xea8187(0x209a)],'sectionId':0xcb});}],'rpcTelephones':[_0x9cf319(0x362),function(_0x4cc1d6){const _0x102a46=_0x9cf319;return _0x4cc1d6[_0x102a46(0x2922)](_0x102a46(0x2206));}]},'authenticate':!![],'permissionId':0x19b})[_0x9cf319(0x13d6)](_0x9cf319(0x146),{'url':'/trunks','controller':_0x9cf319(0x138e),'templateUrl':_0x4da02d,'resolve':{'trunks':[_0x9cf319(0x362),_0x9cf319(0xa87),function(_0xcd94e3,_0xe5426b){const _0x5de700=_0x9cf319;return _0xe5426b[_0x5de700(0x23e0)](_0x5de700(0x174b))?_0xcd94e3[_0x5de700(0x2922)](_0x5de700(0x244b),{'fields':_0x5de700(0x7a7),'active':!![],'sort':_0x5de700(0x12f2),'limit':0xa,'offset':0x0}):_0xcd94e3[_0x5de700(0x2922)](_0x5de700(0x938),{'id':_0xe5426b['getCurrentUser']()[_0x5de700(0x209a)],'section':_0x5de700(0x110f),'fields':'id,name','active':!![],'sort':_0x5de700(0x12f2),'limit':0xa,'offset':0x0});}],'userProfile':[_0x9cf319(0x362),_0x9cf319(0xa87),function(_0x3d10ff,_0x1ac7a2){const _0x395731=_0x9cf319;return _0x1ac7a2[_0x395731(0x23e0)](_0x395731(0x174b))?null:_0x3d10ff[_0x395731(0x2922)](_0x395731(0x119a),{'fields':_0x395731(0x227),'id':_0x1ac7a2[_0x395731(0xb12)]()[_0x395731(0x209a)]});}],'userProfileSection':[_0x9cf319(0x362),_0x9cf319(0xa87),function(_0x12f27a,_0x368b6f){const _0xd5c7e5=_0x9cf319;return _0x368b6f[_0xd5c7e5(0x23e0)](_0xd5c7e5(0x174b))?null:_0x12f27a[_0xd5c7e5(0x2922)](_0xd5c7e5(0x27be),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x368b6f[_0xd5c7e5(0xb12)]()[_0xd5c7e5(0x209a)],'sectionId':0x3f3});}],'rpcTrunks':[_0x9cf319(0x362),function(_0x4e7b33){const _0x4f6cc0=_0x9cf319;return _0x4e7b33[_0x4f6cc0(0x2922)]('rpc@getTrunks');}]},'authenticate':!![],'permissionId':0x19b})['state'](_0x9cf319(0x32b),{'url':_0x9cf319(0xf15),'controller':_0x9cf319(0xbd0),'templateUrl':_0x354242,'resolve':{'queues':[_0x9cf319(0x362),_0x9cf319(0xa87),function(_0x5e4bbc,_0x4c7c34){const _0x28e5fe=_0x9cf319;return _0x4c7c34[_0x28e5fe(0x23e0)](_0x28e5fe(0x174b))?_0x5e4bbc[_0x28e5fe(0x2922)](_0x28e5fe(0x5c0),{'type':_0x28e5fe(0x7b0),'sort':_0x28e5fe(0x12f2),'limit':0xa,'offset':0x0}):_0x5e4bbc[_0x28e5fe(0x2922)](_0x28e5fe(0x938),{'id':_0x4c7c34[_0x28e5fe(0xb12)]()['userProfileId'],'section':_0x28e5fe(0x507),'channel':_0x28e5fe(0xe6),'type':_0x28e5fe(0x7b0),'sort':_0x28e5fe(0x12f2),'limit':0xa,'page':0x1});}],'userProfile':[_0x9cf319(0x362),_0x9cf319(0xa87),function(_0x37be8f,_0x2892d5){const _0x5614bf=_0x9cf319;return _0x2892d5[_0x5614bf(0x23e0)]('admin')?null:_0x37be8f[_0x5614bf(0x2922)](_0x5614bf(0x119a),{'fields':_0x5614bf(0x227),'id':_0x2892d5[_0x5614bf(0xb12)]()['userProfileId']});}],'userProfileSection':[_0x9cf319(0x362),_0x9cf319(0xa87),function(_0x4c1a6c,_0x16afcb){const _0x425afc=_0x9cf319;return _0x16afcb[_0x425afc(0x23e0)](_0x425afc(0x174b))?null:_0x4c1a6c[_0x425afc(0x2922)](_0x425afc(0x27be),{'fields':_0x425afc(0x1e64),'userProfileId':_0x16afcb[_0x425afc(0xb12)]()[_0x425afc(0x209a)],'sectionId':0x191});}],'rpcQueues':[_0x9cf319(0x362),function(_0x129d59){const _0x1e94a5=_0x9cf319;return _0x129d59[_0x1e94a5(0x2922)](_0x1e94a5(0x684));}]},'authenticate':!![],'permissionId':0x19b})[_0x9cf319(0x13d6)](_0x9cf319(0x17e4),{'url':'/queue_calls','controller':_0x9cf319(0xb8e),'templateUrl':_0x45c711,'resolve':{'agents':[_0x9cf319(0x362),_0x9cf319(0xa87),function(_0x275870,_0x37c542){const _0x41a7ed=_0x9cf319;return _0x37c542[_0x41a7ed(0x23e0)](_0x41a7ed(0x174b))?_0x275870[_0x41a7ed(0x2922)](_0x41a7ed(0x2484),{'fields':'id,name,role,context','role':_0x41a7ed(0x1755),'nolimit':!![]}):_0x275870[_0x41a7ed(0x2922)](_0x41a7ed(0x938),{'id':_0x37c542[_0x41a7ed(0xb12)]()[_0x41a7ed(0x209a)],'section':_0x41a7ed(0xca8),'fields':_0x41a7ed(0x2041),'role':_0x41a7ed(0x1755),'nolimit':!![]});}],'queues':[_0x9cf319(0x362),_0x9cf319(0xa87),function(_0x54b101,_0x2b41b0){const _0x501c1e=_0x9cf319;return _0x2b41b0['hasRole']('admin')?_0x54b101[_0x501c1e(0x2922)](_0x501c1e(0x5c0),{'type':_0x501c1e(0x7b0),'sort':_0x501c1e(0x12f2),'nolimit':!![]}):_0x54b101[_0x501c1e(0x2922)]('userProfile@getResources',{'id':_0x2b41b0[_0x501c1e(0xb12)]()[_0x501c1e(0x209a)],'section':'VoiceQueues','channel':'voice','type':_0x501c1e(0x7b0),'sort':_0x501c1e(0x12f2),'nolimit':!![]});}],'userProfile':[_0x9cf319(0x362),_0x9cf319(0xa87),function(_0x3ccab0,_0x235bdd){const _0x19b136=_0x9cf319;return _0x235bdd[_0x19b136(0x23e0)](_0x19b136(0x174b))?null:_0x3ccab0[_0x19b136(0x2922)](_0x19b136(0x119a),{'fields':_0x19b136(0x227),'id':_0x235bdd[_0x19b136(0xb12)]()['userProfileId']});}],'userProfileSection':[_0x9cf319(0x362),_0x9cf319(0xa87),function(_0x44d1fd,_0x1f1ceb){const _0xd8b15b=_0x9cf319;return _0x1f1ceb[_0xd8b15b(0x23e0)]('admin')?null:_0x44d1fd[_0xd8b15b(0x2922)](_0xd8b15b(0x27be),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x1f1ceb[_0xd8b15b(0xb12)]()['userProfileId'],'sectionId':0x191});}],'rpcVoiceQueuesChannels':[_0x9cf319(0x362),function(_0x15fbbb){const _0x155809=_0x9cf319;return _0x15fbbb[_0x155809(0x2922)](_0x155809(0x1b41));}]},'authenticate':!![],'permissionId':0x19b})['state']('app.voice.realtime.abandonedcalls',{'url':'/abandonedcalls','controller':_0x9cf319(0x7b8),'templateUrl':_0x14cf2a,'resolve':{'agents':[_0x9cf319(0x362),_0x9cf319(0xa87),function(_0x2b611a,_0x51ad1c){const _0x1ee16f=_0x9cf319;return _0x51ad1c[_0x1ee16f(0x23e0)](_0x1ee16f(0x174b))?_0x2b611a['resolve'](_0x1ee16f(0x2484),{'fields':_0x1ee16f(0x2041),'role':_0x1ee16f(0x1755),'nolimit':!![]}):_0x2b611a[_0x1ee16f(0x2922)](_0x1ee16f(0x938),{'id':_0x51ad1c[_0x1ee16f(0xb12)]()['userProfileId'],'section':'Agents','fields':'id,name,role,context','role':'agent','nolimit':!![]});}],'queues':['apiResolver',_0x9cf319(0xa87),function(_0x3212f8,_0x5f1e69){const _0x31a0ea=_0x9cf319;return _0x5f1e69[_0x31a0ea(0x23e0)](_0x31a0ea(0x174b))?_0x3212f8[_0x31a0ea(0x2922)](_0x31a0ea(0x5c0),{'type':_0x31a0ea(0x7b0),'sort':_0x31a0ea(0x12f2),'nolimit':!![]}):_0x3212f8['resolve']('userProfile@getResources',{'id':_0x5f1e69[_0x31a0ea(0xb12)]()['userProfileId'],'section':_0x31a0ea(0x507),'channel':'voice','type':_0x31a0ea(0x7b0),'sort':'-updatedAt','nolimit':!![]});}],'dispositions':[_0x9cf319(0x362),'Auth',function(_0x41734d,_0x302930){const _0x1ddcd4=_0x9cf319;return _0x302930['hasRole']('admin')?_0x41734d['resolve']('disposition@get',{'fields':'createdAt,updatedAt,id,name,level,ParentId','sort':_0x1ddcd4(0x12f2),'MailAccountId':_0x1ddcd4(0x203c),'FaxAccountId':_0x1ddcd4(0x203c),'SmsAccountId':'null','WhatsappAccountId':_0x1ddcd4(0x203c),'OpenchannelAccountId':_0x1ddcd4(0x203c),'ChatWebsiteId':_0x1ddcd4(0x203c),'ListId':_0x1ddcd4(0x203c),'nolimit':!![]}):_0x41734d['resolve'](_0x1ddcd4(0x938),{'id':_0x302930[_0x1ddcd4(0xb12)]()['userProfileId'],'section':_0x1ddcd4(0x1754),'fields':_0x1ddcd4(0x1aec),'sort':_0x1ddcd4(0x12f2),'MailAccountId':_0x1ddcd4(0x203c),'FaxAccountId':_0x1ddcd4(0x203c),'SmsAccountId':_0x1ddcd4(0x203c),'WhatsappAccountId':_0x1ddcd4(0x203c),'OpenchannelAccountId':_0x1ddcd4(0x203c),'ChatWebsiteId':_0x1ddcd4(0x203c),'ListId':_0x1ddcd4(0x203c),'nolimit':!![]});}],'userProfile':[_0x9cf319(0x362),_0x9cf319(0xa87),function(_0x718f16,_0x3c095f){const _0x87aeb6=_0x9cf319;return _0x3c095f['hasRole']('admin')?null:_0x718f16[_0x87aeb6(0x2922)](_0x87aeb6(0x119a),{'fields':_0x87aeb6(0x227),'id':_0x3c095f[_0x87aeb6(0xb12)]()['userProfileId']});}],'userProfileSection':[_0x9cf319(0x362),_0x9cf319(0xa87),function(_0x44c710,_0x50af0d){const _0x112134=_0x9cf319;return _0x50af0d[_0x112134(0x23e0)]('admin')?null:_0x44c710['resolve'](_0x112134(0x27be),{'fields':_0x112134(0x1e64),'userProfileId':_0x50af0d[_0x112134(0xb12)]()[_0x112134(0x209a)],'sectionId':0x191});}]},'authenticate':!![],'permissionId':0x19b})[_0x9cf319(0x13d6)]('app.voice.realtime.queue_params',{'url':'/queue_params','controller':_0x9cf319(0x251f),'templateUrl':_0x372da4,'resolve':{'queues':[_0x9cf319(0x362),_0x9cf319(0xa87),function(_0xf37505,_0xc50dbc){const _0x1f59db=_0x9cf319;return _0xc50dbc[_0x1f59db(0x23e0)](_0x1f59db(0x174b))?_0xf37505[_0x1f59db(0x2922)](_0x1f59db(0x5c0),{'type':_0x1f59db(0x7b0),'fields':_0x1f59db(0x7a7),'sort':_0x1f59db(0x12f2),'limit':0xa,'offset':0x0}):_0xf37505[_0x1f59db(0x2922)](_0x1f59db(0x938),{'id':_0xc50dbc['getCurrentUser']()[_0x1f59db(0x209a)],'section':_0x1f59db(0x507),'channel':_0x1f59db(0xe6),'type':_0x1f59db(0x7b0),'sort':_0x1f59db(0x12f2),'nolimit':!![]});}],'userProfile':[_0x9cf319(0x362),_0x9cf319(0xa87),function(_0x3dbbfd,_0x3a02e4){const _0x4da000=_0x9cf319;return _0x3a02e4[_0x4da000(0x23e0)]('admin')?null:_0x3dbbfd['resolve']('userProfile@get',{'fields':_0x4da000(0x227),'id':_0x3a02e4[_0x4da000(0xb12)]()[_0x4da000(0x209a)]});}],'userProfileSection':[_0x9cf319(0x362),_0x9cf319(0xa87),function(_0x2291c6,_0x84492){const _0x41796c=_0x9cf319;return _0x84492[_0x41796c(0x23e0)](_0x41796c(0x174b))?null:_0x2291c6['resolve'](_0x41796c(0x27be),{'fields':_0x41796c(0x1e64),'userProfileId':_0x84492[_0x41796c(0xb12)]()['userProfileId'],'sectionId':0x191});}],'rpcQueues':[_0x9cf319(0x362),function(_0x5e4fba){const _0x2da1c7=_0x9cf319;return _0x5e4fba[_0x2da1c7(0x2922)](_0x2da1c7(0x684));}]},'authenticate':!![],'permissionId':0x19b})['state']('app.voice.realtime.outbound_calls',{'url':_0x9cf319(0x15e5),'controller':'OutboundCallsVoiceRealtimeController\x20as\x20vm','templateUrl':_0x439c73,'resolve':{'rpcCalls':['apiResolver',function(_0x1bb5db){const _0x1e1068=_0x9cf319;return _0x1bb5db[_0x1e1068(0x2922)](_0x1e1068(0x1fe7));}]},'authenticate':!![],'permissionId':0x19b});}angular[_0x313a4d(0x2528)](_0x313a4d(0x17fd),[])['config'](_0x538823)[_0x313a4d(0x28f0)]('AbandonedCallsVoiceRealtimeController',_0x20b28d)[_0x313a4d(0x28f0)](_0x313a4d(0x2233),_0x1be76c)[_0x313a4d(0x28f0)](_0x313a4d(0x1080),_0xff5b7f)[_0x313a4d(0x28f0)](_0x313a4d(0x15ac),_0x14b378)[_0x313a4d(0x28f0)]('QueueParamsVoiceRealtimeController',_0x253122)[_0x313a4d(0x28f0)]('QueuesVoiceRealtimeController',_0xb427ff)[_0x313a4d(0x1750)]('helperClasses',_0x3554c0)[_0x313a4d(0x28f0)](_0x313a4d(0x166b),_0x2d3060)[_0x313a4d(0x28f0)](_0x313a4d(0x5e7),_0x314b68)[_0x313a4d(0x28f0)](_0x313a4d(0x11bd),_0x381cb9);;const _0x51cedc=_0x4acfac['p']+_0x313a4d(0x2176);;_0xf93eab['$inject']=['$scope',_0x313a4d(0x1aa9),_0x313a4d(0x1862),'$mdSidenav','$mdDialog',_0x313a4d(0x4d8),'$timeout',_0x313a4d(0x214b),_0x313a4d(0x24ca),'userProfile',_0x313a4d(0x1366),_0x313a4d(0x247f),'msUtils',_0x313a4d(0x1fe4),_0x313a4d(0xa87),_0x313a4d(0x2690),'setting'];function _0xf93eab(_0x4f5963,_0x290006,_0xc6b993,_0x33a2ac,_0x18c584,_0x10eea2,_0x5a5962,_0x12f6f3,_0x514291,_0x291166,_0xca881a,_0x3130b6,_0x32cd8e,_0xffcfd,_0x5371b4,_0x52ccc4,_0x3e367b){const _0x42ed77=_0x313a4d,_0x396df7=this;_0x396df7[_0x42ed77(0x2690)]=_0x52ccc4,_0x396df7[_0x42ed77(0x15b9)]=_0x3e367b,_0x396df7[_0x42ed77(0x2321)]=_0x5371b4['getCurrentUser'](),_0x396df7[_0x42ed77(0x24ca)]=_0x514291||{'count':0x0,'rows':[]},_0x396df7[_0x42ed77(0x26b6)]=_0x291166,_0x396df7[_0x42ed77(0x1366)]=_0xca881a&&_0xca881a['count']==0x1?_0xca881a[_0x42ed77(0x19c7)][0x0]:null,_0x396df7[_0x42ed77(0x2514)]=_0x5371b4[_0x42ed77(0xe60)](_0x396df7[_0x42ed77(0x1366)]?_0x396df7[_0x42ed77(0x1366)][_0x42ed77(0x2514)]:null),_0x396df7['table']=_0x42ed77(0x24ca),_0x396df7['listOrder']='',_0x396df7[_0x42ed77(0x214f)]=null,_0x396df7[_0x42ed77(0x19d9)]=[],_0x396df7[_0x42ed77(0x1a56)]={'fields':_0x42ed77(0x1be1),'sort':_0x42ed77(0x12f2),'limit':0xa,'page':0x1},_0x396df7[_0x42ed77(0x28c3)]=_0x3f65c0()[_0x42ed77(0x194)]([{'option':_0x42ed77(0x14ab),'value':_0x42ed77(0xd53)},{'option':_0x42ed77(0x12de),'value':'\x27B\x27'},{'option':_0x42ed77(0x19f5),'value':_0x42ed77(0x5ac)},{'option':_0x42ed77(0xad3),'value':'\x27o\x27'},{'option':_0x42ed77(0x16a1),'value':_0x42ed77(0x27de)},{'option':_0x42ed77(0x1f1a),'value':_0x42ed77(0x18a9)},{'option':_0x42ed77(0x1ad5),'value':_0x42ed77(0x23ea)},{'option':_0x42ed77(0x25ba),'value':_0x42ed77(0x1327)},{'option':_0x42ed77(0xcd3),'value':_0x42ed77(0xd73)}],function(_0x161289){const _0x37682a=_0x42ed77;return _0x3f65c0()[_0x37682a(0x5f4)](_0x161289[_0x37682a(0x175d)],new RegExp('\x27','g'),'');}),_0x396df7['arrayrecordingFormat']=_0x3f65c0()[_0x42ed77(0x194)]([{'option':_0x42ed77(0x52d),'value':_0x42ed77(0x13fd)},{'option':_0x42ed77(0xdf0),'value':_0x42ed77(0x5a3)},{'option':_0x42ed77(0x306),'value':_0x42ed77(0x834)}],function(_0x352d4b){const _0x3bd008=_0x42ed77;return _0x3f65c0()[_0x3bd008(0x5f4)](_0x352d4b['value'],new RegExp('\x27','g'),'');}),_0x396df7[_0x42ed77(0x2ed)]=_0x33fdbe,_0x396df7[_0x42ed77(0xf0a)]=_0x21458c,_0x396df7['success']=_0x19fccb,_0x396df7['getChanSpies']=_0x4a7885,_0x396df7[_0x42ed77(0x188b)]=_0x339084,_0x396df7['deletechanSpy']=_0x1a7485,_0x396df7[_0x42ed77(0x1343)]=_0x10e00e,_0x396df7[_0x42ed77(0x412)]=_0x168791,_0x396df7[_0x42ed77(0x1d60)]=_0x1081d5,_0x396df7['selectAllChanSpies']=_0x3a1711;function _0x33fdbe(_0x4bfe9a,_0x4468cb){const _0x3ad48a=_0x42ed77;_0x18c584[_0x3ad48a(0x2615)]({'controller':_0x3ad48a(0x1e98),'controllerAs':'vm','templateUrl':_0x51cedc,'parent':angular[_0x3ad48a(0x1853)](_0x10eea2['body']),'targetEvent':_0x4468cb,'clickOutsideToClose':!![],'locals':{'chanSpy':_0x4bfe9a,'chanSpies':_0x396df7[_0x3ad48a(0x24ca)]['rows'],'license':_0x396df7[_0x3ad48a(0x2690)],'setting':null,'crudPermissions':_0x396df7['crudPermissions']}});}function _0x21458c(_0x525d68,_0x42d91d){const _0x5b0ccb=_0x42ed77,_0x1640c2=_0x18c584['confirm']()[_0x5b0ccb(0x1189)](_0x5b0ccb(0xdb2)+_0x3f65c0()[_0x5b0ccb(0x20d1)](_0x5b0ccb(0x399))+'?')['htmlContent'](_0x5b0ccb(0x16d3)+(_0x525d68[_0x5b0ccb(0x19eb)]||'chanSpy')+'
    '+_0x5b0ccb(0xe01))['ariaLabel'](_0x5b0ccb(0x2b2))[_0x5b0ccb(0x1f27)](_0x42d91d)['ok']('OK')[_0x5b0ccb(0x6c3)](_0x5b0ccb(0x39a));_0x18c584[_0x5b0ccb(0x2615)](_0x1640c2)[_0x5b0ccb(0x146b)](function(){_0x1a7485(_0x525d68);},function(){const _0x21eef4=_0x5b0ccb;console[_0x21eef4(0x1a74)](_0x21eef4(0x39a));});}let _0x1eff3c=!![],_0x3f7856=0x1;_0x4f5963[_0x42ed77(0x21e8)](_0x42ed77(0x2669),function(_0x2810dd,_0x4afd5e){const _0x5b946a=_0x42ed77;_0x1eff3c?_0x5a5962(function(){_0x1eff3c=![];}):(!_0x4afd5e&&(_0x3f7856=_0x396df7[_0x5b946a(0x1a56)]['page']),_0x2810dd!==_0x4afd5e&&(_0x396df7['query'][_0x5b946a(0x844)]=0x1),!_0x2810dd&&(_0x396df7['query'][_0x5b946a(0x844)]=_0x3f7856),_0x396df7[_0x5b946a(0x130c)]());});function _0x19fccb(_0x4f3419){const _0x5f2842=_0x42ed77;_0x396df7[_0x5f2842(0x24ca)]=_0x4f3419||{'count':0x0,'rows':[]};}function _0x4a7885(){const _0x497300=_0x42ed77;_0x396df7[_0x497300(0x1a56)][_0x497300(0x145d)]=(_0x396df7[_0x497300(0x1a56)]['page']-0x1)*_0x396df7[_0x497300(0x1a56)][_0x497300(0x221e)],_0x5371b4['hasRole'](_0x497300(0x174b))?_0x396df7[_0x497300(0xb9c)]=_0x3130b6[_0x497300(0x15e8)][_0x497300(0x16b4)](_0x396df7['query'],_0x19fccb)[_0x497300(0x2945)]:(_0x396df7[_0x497300(0x1a56)]['id']=_0x396df7[_0x497300(0x26b6)]['id'],_0x396df7['query'][_0x497300(0x2146)]='ChanSpies',_0x396df7[_0x497300(0xb9c)]=_0x3130b6['userProfile'][_0x497300(0x158f)](_0x396df7[_0x497300(0x1a56)],_0x19fccb)[_0x497300(0x2945)]);}function _0x339084(_0x2e9adb,_0x1d5178){const _0x2b4d62=_0x42ed77;_0x18c584[_0x2b4d62(0x2615)]({'controller':'CreateOrEditchanSpyDialogController','controllerAs':'vm','templateUrl':_0x51cedc,'parent':angular[_0x2b4d62(0x1853)](_0x10eea2[_0x2b4d62(0x2586)]),'targetEvent':_0x2e9adb,'clickOutsideToClose':!![],'locals':{'chanSpy':_0x1d5178,'chanSpies':_0x396df7[_0x2b4d62(0x24ca)][_0x2b4d62(0x19c7)],'license':_0x396df7[_0x2b4d62(0x2690)],'setting':_0x396df7[_0x2b4d62(0x15b9)],'crudPermissions':_0x396df7[_0x2b4d62(0x2514)]}});}function _0x1a7485(_0x5ca9e7){const _0x51c953=_0x42ed77;_0x3130b6[_0x51c953(0x15e8)][_0x51c953(0x1fac)]({'id':_0x5ca9e7['id']})[_0x51c953(0x2945)][_0x51c953(0x146b)](function(){const _0x31caff=_0x51c953;_0x3f65c0()[_0x31caff(0x2640)](_0x396df7[_0x31caff(0x24ca)][_0x31caff(0x19c7)],{'id':_0x5ca9e7['id']}),_0x396df7['chanSpies'][_0x31caff(0x51c)]-=0x1,!_0x396df7[_0x31caff(0x24ca)][_0x31caff(0x19c7)][_0x31caff(0x402)]&&_0x396df7[_0x31caff(0x130c)](),_0xffcfd[_0x31caff(0x1c75)]({'title':_0x3f65c0()[_0x31caff(0x20d1)](_0x31caff(0x399))+_0x31caff(0x201c),'msg':_0x5ca9e7[_0x31caff(0x19eb)]?_0x5ca9e7['name']+_0x31caff(0x23e3):''});})[_0x51c953(0x129e)](function(_0x3afb1e){const _0x57e492=_0x51c953;if(_0x3afb1e[_0x57e492(0x524)]&&_0x3afb1e[_0x57e492(0x524)][_0x57e492(0xcef)]&&_0x3afb1e[_0x57e492(0x524)][_0x57e492(0xcef)][_0x57e492(0x402)]){_0x396df7[_0x57e492(0xcef)]=_0x3afb1e[_0x57e492(0x524)][_0x57e492(0xcef)]||[{'message':_0x3afb1e[_0x57e492(0xd5f)](),'type':_0x57e492(0x3f0)}];for(let _0x53379a=0x0;_0x53379a<_0x3afb1e['data'][_0x57e492(0xcef)][_0x57e492(0x402)];_0x53379a++){_0xffcfd['error']({'title':_0x3afb1e[_0x57e492(0x524)][_0x57e492(0xcef)][_0x53379a][_0x57e492(0x1142)],'msg':_0x3afb1e[_0x57e492(0x524)][_0x57e492(0xcef)][_0x53379a][_0x57e492(0x7fd)]});}}else _0xffcfd[_0x57e492(0x1980)]({'title':_0x3afb1e['status']?_0x57e492(0x262a)+_0x3afb1e['status']+_0x57e492(0x1315)+_0x3afb1e[_0x57e492(0x167f)]:_0x57e492(0x3f0),'msg':_0x3afb1e[_0x57e492(0x524)]?JSON[_0x57e492(0x10bb)](_0x3afb1e[_0x57e492(0x524)][_0x57e492(0x7fd)]):_0x3afb1e['message']||_0x3afb1e[_0x57e492(0xd5f)]()});});}function _0x10e00e(){const _0x3d26f3=_0x42ed77,_0x27846b=angular[_0x3d26f3(0x235a)](_0x396df7[_0x3d26f3(0x19d9)]);return _0x396df7[_0x3d26f3(0x19d9)]=[],_0x27846b;}function _0x168791(_0x4acc39){const _0x11bd0e=_0x42ed77,_0x4d8bd5=_0x18c584[_0x11bd0e(0x1e8a)]()[_0x11bd0e(0x1189)](_0x11bd0e(0x1af1))[_0x11bd0e(0x1cbe)](_0x11bd0e(0x16d3)+_0x396df7['selectedChanSpies'][_0x11bd0e(0x402)]+_0x11bd0e(0x2452)+_0x11bd0e(0xe01))[_0x11bd0e(0x4bd)](_0x11bd0e(0x1037))[_0x11bd0e(0x1f27)](_0x4acc39)['ok']('OK')[_0x11bd0e(0x6c3)](_0x11bd0e(0x39a));_0x18c584[_0x11bd0e(0x2615)](_0x4d8bd5)[_0x11bd0e(0x146b)](function(){const _0x2cd72d=_0x11bd0e;_0x396df7['selectedChanSpies'][_0x2cd72d(0x1df5)](function(_0x50db88){_0x1a7485(_0x50db88);}),_0x396df7[_0x2cd72d(0x19d9)]=[];});}function _0x1081d5(){_0x396df7['selectedChanSpies']=[];}function _0x3a1711(){const _0x39f747=_0x42ed77;_0x396df7[_0x39f747(0x19d9)]=_0x396df7['chanSpies'][_0x39f747(0x19c7)];}}const _0x2a36af=_0xf93eab;;_0x2a53c[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1862),_0x313a4d(0xd08),_0x313a4d(0x10e8),'$q',_0x313a4d(0x214b),_0x313a4d(0x1fe4),_0x313a4d(0x24ca),_0x313a4d(0x399),'api','Auth',_0x313a4d(0x2690),_0x313a4d(0x15b9),'crudPermissions'];function _0x2a53c(_0x395f12,_0x3aa851,_0x2752a5,_0xe1ba84,_0x2eb696,_0x395a12,_0xc8f200,_0x5efac4,_0x57a3d5,_0x5d2cbe,_0x47b64b,_0x4687e9,_0x377841,_0x49495a){const _0x2c1e07=_0x313a4d,_0x46a7c4=this;_0x46a7c4[_0x2c1e07(0x2321)]=_0x47b64b[_0x2c1e07(0xb12)](),_0x46a7c4['errors']=[],_0x46a7c4[_0x2c1e07(0x15b9)]=_0x377841,_0x46a7c4['license']=_0x4687e9,_0x46a7c4[_0x2c1e07(0x2514)]=_0x49495a,_0x46a7c4['hasModulePermissions']={},_0x46a7c4[_0x2c1e07(0x2251)]=_0x46a7c4[_0x2c1e07(0x15b9)]&&_0x46a7c4[_0x2c1e07(0x15b9)][_0x2c1e07(0x976)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x46a7c4[_0x2c1e07(0x1189)]=_0x2c1e07(0xc66),_0x46a7c4[_0x2c1e07(0x399)]=angular[_0x2c1e07(0x235a)](_0x57a3d5),_0x46a7c4[_0x2c1e07(0x24ca)]=_0x5efac4,_0x46a7c4[_0x2c1e07(0x783)]=![];!_0x46a7c4[_0x2c1e07(0x399)]&&(_0x46a7c4[_0x2c1e07(0x399)]={'recordingFormat':_0x2c1e07(0x52d)},_0x46a7c4['title']=_0x2c1e07(0x1681),_0x46a7c4[_0x2c1e07(0x783)]=!![]);_0x46a7c4[_0x2c1e07(0xe29)]=_0x594d6f,_0x46a7c4[_0x2c1e07(0x20e9)]=_0x5bd530,_0x46a7c4[_0x2c1e07(0x1ed7)]=_0x4d6f8b,_0x46a7c4[_0x2c1e07(0xe73)]=_0x35195f,_0x46a7c4[_0x2c1e07(0x13f3)]=_0x404214;function _0x594d6f(){const _0x449692=_0x2c1e07;_0x46a7c4['errors']=[],_0x5d2cbe['voiceChanSpy'][_0x449692(0x1e3)](_0x46a7c4['chanSpy'])[_0x449692(0x2945)][_0x449692(0x146b)](function(_0xda69b6){const _0x5912ce=_0x449692;_0x46a7c4[_0x5912ce(0x24ca)][_0x5912ce(0xb3d)](_0xda69b6[_0x5912ce(0x2488)]()),_0xc8f200[_0x5912ce(0x1c75)]({'title':_0x5912ce(0x2509),'msg':_0x46a7c4[_0x5912ce(0x399)]['name']?_0x46a7c4[_0x5912ce(0x399)][_0x5912ce(0x19eb)]+'\x20has\x20been\x20created!':''}),_0x404214(_0xda69b6);})[_0x449692(0x129e)](function(_0x4572e2){const _0x5f521e=_0x449692;if(_0x4572e2[_0x5f521e(0x524)]&&_0x4572e2[_0x5f521e(0x524)][_0x5f521e(0xcef)]&&_0x4572e2[_0x5f521e(0x524)][_0x5f521e(0xcef)][_0x5f521e(0x402)]){_0x46a7c4[_0x5f521e(0xcef)]=_0x4572e2['data']['errors']||[{'message':_0x4572e2[_0x5f521e(0xd5f)](),'type':'api.voiceChanSpy.save'}];for(let _0x2fc5ac=0x0;_0x2fc5ac<_0x4572e2[_0x5f521e(0x524)]['errors'][_0x5f521e(0x402)];_0x2fc5ac+=0x1){_0xc8f200['error']({'title':_0x4572e2[_0x5f521e(0x524)][_0x5f521e(0xcef)][_0x2fc5ac][_0x5f521e(0x1142)],'msg':_0x4572e2[_0x5f521e(0x524)]['errors'][_0x2fc5ac][_0x5f521e(0x7fd)]});}}else _0xc8f200[_0x5f521e(0x1980)]({'title':_0x4572e2[_0x5f521e(0x107b)]?_0x5f521e(0x262a)+_0x4572e2[_0x5f521e(0x107b)]+'\x20-\x20'+_0x4572e2['statusText']:_0x5f521e(0x248b),'msg':_0x4572e2[_0x5f521e(0x524)]?JSON[_0x5f521e(0x10bb)](_0x4572e2['data'][_0x5f521e(0x7fd)]):_0x4572e2['toString']()});});}function _0x5bd530(){const _0x514ce0=_0x2c1e07;_0x46a7c4['errors']=[],_0x5d2cbe['voiceChanSpy'][_0x514ce0(0x18e1)]({'id':_0x46a7c4[_0x514ce0(0x399)]['id']},_0x46a7c4[_0x514ce0(0x399)])[_0x514ce0(0x2945)][_0x514ce0(0x146b)](function(_0x2e3fda){const _0x54139c=_0x514ce0,_0x1a845e=_0x3f65c0()[_0x54139c(0xc84)](_0x46a7c4[_0x54139c(0x24ca)],{'id':_0x2e3fda['id']});_0x1a845e&&_0x3f65c0()[_0x54139c(0x168d)](_0x1a845e,_0x3f65c0()['pick'](_0x2e3fda[_0x54139c(0x2488)](),_0x3f65c0()[_0x54139c(0x627)](_0x1a845e))),_0xc8f200[_0x54139c(0x1c75)]({'title':_0x54139c(0x26f0),'msg':_0x46a7c4[_0x54139c(0x399)][_0x54139c(0x19eb)]?_0x46a7c4['chanSpy'][_0x54139c(0x19eb)]+'\x20has\x20been\x20saved!':''}),_0x404214(_0x2e3fda);})[_0x514ce0(0x129e)](function(_0x4749a7){const _0x3e01f1=_0x514ce0;if(_0x4749a7[_0x3e01f1(0x524)]&&_0x4749a7[_0x3e01f1(0x524)][_0x3e01f1(0xcef)]&&_0x4749a7[_0x3e01f1(0x524)]['errors']['length']){_0x46a7c4['errors']=_0x4749a7[_0x3e01f1(0x524)][_0x3e01f1(0xcef)]||[{'message':_0x4749a7[_0x3e01f1(0xd5f)](),'type':_0x3e01f1(0x52a)}];for(let _0x4d9487=0x0;_0x4d9487<_0x4749a7['data']['errors']['length'];_0x4d9487++){_0xc8f200[_0x3e01f1(0x1980)]({'title':_0x4749a7[_0x3e01f1(0x524)]['errors'][_0x4d9487][_0x3e01f1(0x1142)],'msg':_0x4749a7[_0x3e01f1(0x524)][_0x3e01f1(0xcef)][_0x4d9487][_0x3e01f1(0x7fd)]});}}else _0xc8f200[_0x3e01f1(0x1980)]({'title':_0x4749a7[_0x3e01f1(0x107b)]?'API:'+_0x4749a7[_0x3e01f1(0x107b)]+_0x3e01f1(0x1315)+_0x4749a7[_0x3e01f1(0x167f)]:'api.voiceChanSpy.update','msg':_0x4749a7[_0x3e01f1(0x524)]?JSON[_0x3e01f1(0x10bb)](_0x4749a7[_0x3e01f1(0x524)][_0x3e01f1(0x7fd)]):_0x4749a7[_0x3e01f1(0xd5f)]()});});}function _0x4d6f8b(_0x5b7db9){const _0x4a05e6=_0x2c1e07;_0x46a7c4[_0x4a05e6(0xcef)]=[];const _0x3c557e=_0xe1ba84[_0x4a05e6(0x1e8a)]()[_0x4a05e6(0x1189)]('Are\x20you\x20sure?')[_0x4a05e6(0x80f)](_0x4a05e6(0x1194))['ariaLabel'](_0x4a05e6(0xd88))['ok'](_0x4a05e6(0x25de))[_0x4a05e6(0x6c3)](_0x4a05e6(0xcf0))[_0x4a05e6(0x1f27)](_0x5b7db9);_0xe1ba84['show'](_0x3c557e)[_0x4a05e6(0x146b)](function(){const _0x3907df=_0x4a05e6;_0x5d2cbe[_0x3907df(0x15e8)][_0x3907df(0x1fac)]({'id':_0x46a7c4[_0x3907df(0x399)]['id']})[_0x3907df(0x2945)][_0x3907df(0x146b)](function(){const _0x3177a5=_0x3907df;_0x3f65c0()['remove'](_0x46a7c4['chanSpies'],{'id':_0x46a7c4[_0x3177a5(0x399)]['id']}),_0xc8f200[_0x3177a5(0x1c75)]({'title':_0x3177a5(0x2481),'msg':(_0x46a7c4['chanSpy'][_0x3177a5(0x19eb)]||'chanSpy')+'\x20has\x20been\x20deleted!'}),_0x404214(_0x46a7c4['chanSpy']);})[_0x3907df(0x129e)](function(_0x509c61){const _0x1c7eca=_0x3907df;if(_0x509c61[_0x1c7eca(0x524)]&&_0x509c61['data'][_0x1c7eca(0xcef)]&&_0x509c61[_0x1c7eca(0x524)][_0x1c7eca(0xcef)][_0x1c7eca(0x402)]){_0x46a7c4[_0x1c7eca(0xcef)]=_0x509c61[_0x1c7eca(0x524)][_0x1c7eca(0xcef)]||[{'message':_0x509c61[_0x1c7eca(0xd5f)](),'type':_0x1c7eca(0x2228)}];for(let _0x384e71=0x0;_0x384e71<_0x509c61['data'][_0x1c7eca(0xcef)][_0x1c7eca(0x402)];_0x384e71++){_0xc8f200[_0x1c7eca(0x1980)]({'title':_0x509c61['data']['errors'][_0x384e71][_0x1c7eca(0x1142)],'msg':_0x509c61[_0x1c7eca(0x524)][_0x1c7eca(0xcef)][_0x384e71][_0x1c7eca(0x7fd)]});}}else _0xc8f200[_0x1c7eca(0x1980)]({'title':_0x509c61[_0x1c7eca(0x107b)]?_0x1c7eca(0x262a)+_0x509c61['status']+_0x1c7eca(0x1315)+_0x509c61[_0x1c7eca(0x167f)]:_0x1c7eca(0x2228),'msg':_0x509c61[_0x1c7eca(0x524)]?JSON[_0x1c7eca(0x10bb)](_0x509c61[_0x1c7eca(0x524)][_0x1c7eca(0x7fd)]):_0x509c61[_0x1c7eca(0x7fd)]||_0x509c61[_0x1c7eca(0xd5f)]()});});},function(){});}function _0x35195f(_0x3a378b){return _0x3a378b===null?undefined:new Date(_0x3a378b);}function _0x404214(_0x30e65d){const _0x1d7819=_0x2c1e07;_0xe1ba84[_0x1d7819(0x2458)](_0x30e65d);}}const _0x50496d=_0x2a53c;;const _0x5e8d84=_0x4acfac['p']+'src/js/modules/main/apps/voice/views/contexts/create/dialog.html/dialog.html';;_0x238177[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),'$window',_0x313a4d(0x1862),'$mdSidenav',_0x313a4d(0x10e8),_0x313a4d(0x4d8),'$timeout',_0x313a4d(0x214b),_0x313a4d(0xfe9),_0x313a4d(0x26b6),_0x313a4d(0x1366),'api',_0x313a4d(0x216c),_0x313a4d(0x1fe4),_0x313a4d(0xa87),_0x313a4d(0x2690),_0x313a4d(0x15b9)];function _0x238177(_0x477f40,_0x23310e,_0x5da8d1,_0x511195,_0x33d5ba,_0x57ba78,_0x4bd580,_0x305f61,_0xa18293,_0x53488a,_0x37d19b,_0x4c1897,_0x4fad83,_0x437f22,_0x4206b6,_0x5bebf8,_0x19a18c){const _0x144235=_0x313a4d,_0x221831=this;_0x221831[_0x144235(0x2690)]=_0x5bebf8,_0x221831['setting']=_0x19a18c,_0x221831[_0x144235(0x2321)]=_0x4206b6[_0x144235(0xb12)](),_0x221831[_0x144235(0xfe9)]=_0xa18293||{'count':0x0,'rows':[]},_0x221831[_0x144235(0x26b6)]=_0x53488a,_0x221831[_0x144235(0x1366)]=_0x37d19b&&_0x37d19b[_0x144235(0x51c)]==0x1?_0x37d19b[_0x144235(0x19c7)][0x0]:null,_0x221831['crudPermissions']=_0x4206b6[_0x144235(0xe60)](_0x221831[_0x144235(0x1366)]?_0x221831[_0x144235(0x1366)]['crudPermissions']:null),_0x221831[_0x144235(0x768)]=_0x144235(0xfe9),_0x221831[_0x144235(0x216a)]='',_0x221831['listOrderAsc']=null,_0x221831[_0x144235(0x2068)]=[],_0x221831[_0x144235(0x1a56)]={'fields':_0x144235(0x608),'sort':'-updatedAt','defaultEntry':_0x144235(0x1ed8),'limit':0xa,'page':0x1},_0x221831[_0x144235(0x2ed)]=_0x3e502d,_0x221831[_0x144235(0xf0a)]=_0x22f582,_0x221831[_0x144235(0x1c75)]=_0x123534,_0x221831[_0x144235(0x1088)]=_0x3fa2dc,_0x221831['createOrEditContext']=_0x3012f3,_0x221831[_0x144235(0x2121)]=_0x3d6b27,_0x221831[_0x144235(0x27f7)]=_0x3ed922,_0x221831[_0x144235(0x92f)]=_0x3bf1ef,_0x221831['deselectContexts']=_0x56d8d2,_0x221831[_0x144235(0x1358)]=_0x71ac4f;function _0x3e502d(_0xd422e6,_0x138e27){const _0x4101cd=_0x144235;_0x33d5ba['show']({'controller':_0x4101cd(0x1468),'controllerAs':'vm','templateUrl':_0x5e8d84,'parent':angular[_0x4101cd(0x1853)](_0x57ba78[_0x4101cd(0x2586)]),'targetEvent':_0x138e27,'clickOutsideToClose':!![],'locals':{'context':_0xd422e6,'contexts':_0x221831[_0x4101cd(0xfe9)][_0x4101cd(0x19c7)],'license':_0x221831[_0x4101cd(0x2690)],'setting':null,'crudPermissions':_0x221831[_0x4101cd(0x2514)]}});}function _0x22f582(_0x9b0532,_0x489d24){const _0x2c782c=_0x144235,_0x1f0bad=_0x33d5ba[_0x2c782c(0x1e8a)]()[_0x2c782c(0x1189)](_0x2c782c(0xdb2)+_0x3f65c0()['startCase'](_0x2c782c(0x1ac1))+'?')[_0x2c782c(0x1cbe)](_0x2c782c(0x16d3)+(_0x9b0532[_0x2c782c(0x19eb)]||_0x2c782c(0x1ac1))+''+_0x2c782c(0xe01))['ariaLabel'](_0x2c782c(0x5ce))[_0x2c782c(0x1f27)](_0x489d24)['ok']('OK')[_0x2c782c(0x6c3)](_0x2c782c(0x39a));_0x33d5ba[_0x2c782c(0x2615)](_0x1f0bad)[_0x2c782c(0x146b)](function(){_0x3d6b27(_0x9b0532);},function(){const _0x1bec5f=_0x2c782c;console[_0x1bec5f(0x1a74)](_0x1bec5f(0x39a));});}let _0x4ae985=!![],_0x3a15ec=0x1;_0x477f40['$watch']('vm.query.filter',function(_0x2190fc,_0x479ca0){const _0x122a5c=_0x144235;_0x4ae985?_0x4bd580(function(){_0x4ae985=![];}):(!_0x479ca0&&(_0x3a15ec=_0x221831[_0x122a5c(0x1a56)][_0x122a5c(0x844)]),_0x2190fc!==_0x479ca0&&(_0x221831[_0x122a5c(0x1a56)][_0x122a5c(0x844)]=0x1),!_0x2190fc&&(_0x221831[_0x122a5c(0x1a56)][_0x122a5c(0x844)]=_0x3a15ec),_0x221831['getContexts']());});function _0x123534(_0x43a1df){_0x221831['contexts']=_0x43a1df||{'count':0x0,'rows':[]};}function _0x3fa2dc(){const _0x4706aa=_0x144235;_0x221831[_0x4706aa(0x1a56)]['offset']=(_0x221831['query'][_0x4706aa(0x844)]-0x1)*_0x221831['query'][_0x4706aa(0x221e)],_0x4206b6['hasRole'](_0x4706aa(0x174b))?_0x221831['promise']=_0x4c1897[_0x4706aa(0x1b82)][_0x4706aa(0x16b4)](_0x221831[_0x4706aa(0x1a56)],_0x123534)['$promise']:(_0x221831[_0x4706aa(0x1a56)]['id']=_0x221831[_0x4706aa(0x26b6)]['id'],_0x221831[_0x4706aa(0x1a56)][_0x4706aa(0x2146)]=_0x4706aa(0x275),_0x221831['promise']=_0x4c1897[_0x4706aa(0x26b6)][_0x4706aa(0x158f)](_0x221831['query'],_0x123534)['$promise']);}function _0x3012f3(_0x3b825d,_0x3829c6){const _0x45e296=_0x144235;_0x33d5ba['show']({'controller':_0x45e296(0x1468),'controllerAs':'vm','templateUrl':_0x5e8d84,'parent':angular[_0x45e296(0x1853)](_0x57ba78['body']),'targetEvent':_0x3b825d,'clickOutsideToClose':!![],'locals':{'context':_0x3829c6,'contexts':_0x221831['contexts'][_0x45e296(0x19c7)],'license':_0x221831[_0x45e296(0x2690)],'setting':_0x221831['setting'],'crudPermissions':_0x221831[_0x45e296(0x2514)]}});}function _0x3d6b27(_0x4ce5ba){const _0xfd18f2=_0x144235;_0x4c1897['voiceContext'][_0xfd18f2(0x1fac)]({'id':_0x4ce5ba['id']})[_0xfd18f2(0x2945)][_0xfd18f2(0x146b)](function(){const _0x3dca54=_0xfd18f2;_0x3f65c0()[_0x3dca54(0x2640)](_0x221831[_0x3dca54(0xfe9)][_0x3dca54(0x19c7)],{'id':_0x4ce5ba['id']}),_0x221831['contexts'][_0x3dca54(0x51c)]-=0x1,!_0x221831[_0x3dca54(0xfe9)][_0x3dca54(0x19c7)][_0x3dca54(0x402)]&&_0x221831[_0x3dca54(0x1088)](),_0x437f22[_0x3dca54(0x1c75)]({'title':_0x3f65c0()[_0x3dca54(0x20d1)](_0x3dca54(0xc8c))+_0x3dca54(0x201c),'msg':_0x4ce5ba[_0x3dca54(0x19eb)]?_0x4ce5ba[_0x3dca54(0x19eb)]+_0x3dca54(0x23e3):''});})['catch'](function(_0x8e5004){const _0x4c7279=_0xfd18f2;if(_0x8e5004[_0x4c7279(0x524)]&&_0x8e5004[_0x4c7279(0x524)]['errors']&&_0x8e5004[_0x4c7279(0x524)]['errors'][_0x4c7279(0x402)]){_0x221831['errors']=_0x8e5004['data'][_0x4c7279(0xcef)]||[{'message':_0x8e5004[_0x4c7279(0xd5f)](),'type':_0x4c7279(0x1c4c)}];for(let _0x15aa81=0x0;_0x15aa81<_0x8e5004[_0x4c7279(0x524)][_0x4c7279(0xcef)]['length'];_0x15aa81++){_0x437f22['error']({'title':_0x8e5004[_0x4c7279(0x524)][_0x4c7279(0xcef)][_0x15aa81][_0x4c7279(0x1142)],'msg':_0x8e5004['data'][_0x4c7279(0xcef)][_0x15aa81][_0x4c7279(0x7fd)]});}}else _0x437f22[_0x4c7279(0x1980)]({'title':_0x8e5004[_0x4c7279(0x107b)]?_0x4c7279(0x262a)+_0x8e5004[_0x4c7279(0x107b)]+_0x4c7279(0x1315)+_0x8e5004['statusText']:'SYSTEM:DELETEvoiceContext','msg':_0x8e5004[_0x4c7279(0x524)]?JSON[_0x4c7279(0x10bb)](_0x8e5004['data'][_0x4c7279(0x7fd)]):_0x8e5004[_0x4c7279(0x7fd)]||_0x8e5004[_0x4c7279(0xd5f)]()});});}function _0x3ed922(){const _0x36fd40=_0x144235,_0x358e9a=angular['copy'](_0x221831[_0x36fd40(0x2068)]);return _0x221831['selectedContexts']=[],_0x358e9a;}function _0x3bf1ef(_0x243aab){const _0x1550d3=_0x144235,_0x5b812c=_0x33d5ba['confirm']()[_0x1550d3(0x1189)](_0x1550d3(0xd1a))[_0x1550d3(0x1cbe)](_0x1550d3(0x16d3)+_0x221831[_0x1550d3(0x2068)][_0x1550d3(0x402)]+_0x1550d3(0x2452)+'\x20will\x20be\x20deleted.')[_0x1550d3(0x4bd)]('delete\x20Contexts')[_0x1550d3(0x1f27)](_0x243aab)['ok']('OK')[_0x1550d3(0x6c3)]('CANCEL');_0x33d5ba[_0x1550d3(0x2615)](_0x5b812c)[_0x1550d3(0x146b)](function(){const _0x5025ad=_0x1550d3;_0x221831[_0x5025ad(0x2068)][_0x5025ad(0x1df5)](function(_0xe9db87){_0x3d6b27(_0xe9db87);}),_0x221831[_0x5025ad(0x2068)]=[];});}function _0x56d8d2(){_0x221831['selectedContexts']=[];}function _0x71ac4f(){const _0x1ac2ce=_0x144235;_0x221831['selectedContexts']=_0x221831[_0x1ac2ce(0xfe9)][_0x1ac2ce(0x19c7)];}}const _0x31a471=_0x238177;;_0x347a4b[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),'$state',_0x313a4d(0xd08),_0x313a4d(0x10e8),'$q','$translate',_0x313a4d(0x1fe4),_0x313a4d(0xfe9),_0x313a4d(0x1ac1),_0x313a4d(0x247f),_0x313a4d(0xa87),_0x313a4d(0x2690),_0x313a4d(0x15b9),_0x313a4d(0x2514)];function _0x347a4b(_0x4827a5,_0x5a6a1b,_0x5785e2,_0x5eea38,_0x1625c0,_0x926c26,_0x4acae6,_0x5ee5eb,_0x17455c,_0x2cc417,_0x554aaf,_0x2180c6,_0x4c9278,_0x1cb3af){const _0x5ad7ee=_0x313a4d,_0x3e6f31=this;_0x3e6f31['currentUser']=_0x554aaf[_0x5ad7ee(0xb12)](),_0x3e6f31['errors']=[],_0x3e6f31[_0x5ad7ee(0x15b9)]=_0x4c9278,_0x3e6f31['license']=_0x2180c6,_0x3e6f31[_0x5ad7ee(0x2514)]=_0x1cb3af,_0x3e6f31['hasModulePermissions']={},_0x3e6f31[_0x5ad7ee(0x2251)]=_0x3e6f31[_0x5ad7ee(0x15b9)]&&_0x3e6f31[_0x5ad7ee(0x15b9)][_0x5ad7ee(0x976)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3e6f31[_0x5ad7ee(0x1189)]='VOICE.EDIT_CONTEXT',_0x3e6f31[_0x5ad7ee(0x1ac1)]=angular[_0x5ad7ee(0x235a)](_0x17455c),_0x3e6f31[_0x5ad7ee(0xfe9)]=_0x5ee5eb,_0x3e6f31[_0x5ad7ee(0x143c)]=![];!_0x3e6f31[_0x5ad7ee(0x1ac1)]&&(_0x3e6f31[_0x5ad7ee(0x1ac1)]={},_0x3e6f31[_0x5ad7ee(0x1189)]=_0x5ad7ee(0x857),_0x3e6f31['newContext']=!![]);_0x3e6f31[_0x5ad7ee(0x28b)]=_0x5e51d0,_0x3e6f31['saveContext']=_0x45194e,_0x3e6f31[_0x5ad7ee(0x2121)]=_0x5d554a,_0x3e6f31[_0x5ad7ee(0xe73)]=_0x2ce7e2,_0x3e6f31[_0x5ad7ee(0x13f3)]=_0x40ac7f;function _0x5e51d0(){const _0x27ca6c=_0x5ad7ee;_0x3e6f31[_0x27ca6c(0xcef)]=[],_0x2cc417[_0x27ca6c(0x1b82)][_0x27ca6c(0x1e3)](_0x3e6f31[_0x27ca6c(0x1ac1)])[_0x27ca6c(0x2945)][_0x27ca6c(0x146b)](function(_0x8fbaad){const _0x2ac019=_0x27ca6c;_0x3e6f31[_0x2ac019(0xfe9)]['unshift'](_0x8fbaad[_0x2ac019(0x2488)]()),_0x4acae6[_0x2ac019(0x1c75)]({'title':_0x2ac019(0x1dfd),'msg':_0x3e6f31['context']['name']?_0x3e6f31['context'][_0x2ac019(0x19eb)]+_0x2ac019(0x1386):''}),_0x40ac7f(_0x8fbaad);})['catch'](function(_0x2d5585){const _0x464a00=_0x27ca6c;if(_0x2d5585[_0x464a00(0x524)]&&_0x2d5585[_0x464a00(0x524)][_0x464a00(0xcef)]&&_0x2d5585[_0x464a00(0x524)]['errors'][_0x464a00(0x402)]){_0x3e6f31[_0x464a00(0xcef)]=_0x2d5585[_0x464a00(0x524)][_0x464a00(0xcef)]||[{'message':_0x2d5585[_0x464a00(0xd5f)](),'type':_0x464a00(0xcdb)}];for(let _0x5cf7cb=0x0;_0x5cf7cb<_0x2d5585[_0x464a00(0x524)][_0x464a00(0xcef)][_0x464a00(0x402)];_0x5cf7cb+=0x1){_0x4acae6[_0x464a00(0x1980)]({'title':_0x2d5585[_0x464a00(0x524)]['errors'][_0x5cf7cb][_0x464a00(0x1142)],'msg':_0x2d5585[_0x464a00(0x524)][_0x464a00(0xcef)][_0x5cf7cb][_0x464a00(0x7fd)]});}}else _0x4acae6['error']({'title':_0x2d5585[_0x464a00(0x107b)]?_0x464a00(0x262a)+_0x2d5585[_0x464a00(0x107b)]+_0x464a00(0x1315)+_0x2d5585['statusText']:_0x464a00(0xcdb),'msg':_0x2d5585[_0x464a00(0x524)]?JSON['stringify'](_0x2d5585[_0x464a00(0x524)][_0x464a00(0x7fd)]):_0x2d5585['toString']()});});}function _0x45194e(){const _0xafb783=_0x5ad7ee;_0x3e6f31[_0xafb783(0xcef)]=[],_0x2cc417[_0xafb783(0x1b82)][_0xafb783(0x18e1)]({'id':_0x3e6f31[_0xafb783(0x1ac1)]['id']},_0x3e6f31[_0xafb783(0x1ac1)])['$promise'][_0xafb783(0x146b)](function(_0x4963e6){const _0x37c374=_0xafb783,_0x53bcb1=_0x3f65c0()[_0x37c374(0xc84)](_0x3e6f31[_0x37c374(0xfe9)],{'id':_0x4963e6['id']});_0x53bcb1&&_0x3f65c0()[_0x37c374(0x168d)](_0x53bcb1,_0x3f65c0()['pick'](_0x4963e6[_0x37c374(0x2488)](),_0x3f65c0()['keys'](_0x53bcb1))),_0x4acae6['success']({'title':_0x37c374(0x288),'msg':_0x3e6f31[_0x37c374(0x1ac1)]['name']?_0x3e6f31[_0x37c374(0x1ac1)][_0x37c374(0x19eb)]+_0x37c374(0x24db):''}),_0x40ac7f(_0x4963e6);})[_0xafb783(0x129e)](function(_0x414f03){const _0x4e8ce2=_0xafb783;if(_0x414f03[_0x4e8ce2(0x524)]&&_0x414f03[_0x4e8ce2(0x524)][_0x4e8ce2(0xcef)]&&_0x414f03[_0x4e8ce2(0x524)][_0x4e8ce2(0xcef)][_0x4e8ce2(0x402)]){_0x3e6f31[_0x4e8ce2(0xcef)]=_0x414f03[_0x4e8ce2(0x524)]['errors']||[{'message':_0x414f03[_0x4e8ce2(0xd5f)](),'type':_0x4e8ce2(0xecb)}];for(let _0x25318c=0x0;_0x25318c<_0x414f03[_0x4e8ce2(0x524)][_0x4e8ce2(0xcef)][_0x4e8ce2(0x402)];_0x25318c++){_0x4acae6[_0x4e8ce2(0x1980)]({'title':_0x414f03[_0x4e8ce2(0x524)][_0x4e8ce2(0xcef)][_0x25318c][_0x4e8ce2(0x1142)],'msg':_0x414f03['data']['errors'][_0x25318c]['message']});}}else _0x4acae6['error']({'title':_0x414f03[_0x4e8ce2(0x107b)]?_0x4e8ce2(0x262a)+_0x414f03[_0x4e8ce2(0x107b)]+_0x4e8ce2(0x1315)+_0x414f03[_0x4e8ce2(0x167f)]:_0x4e8ce2(0xecb),'msg':_0x414f03['data']?JSON[_0x4e8ce2(0x10bb)](_0x414f03['data'][_0x4e8ce2(0x7fd)]):_0x414f03[_0x4e8ce2(0xd5f)]()});});}function _0x5d554a(_0x1e3d5b){const _0x1c15f5=_0x5ad7ee;_0x3e6f31[_0x1c15f5(0xcef)]=[];const _0x2800a5=_0x5eea38[_0x1c15f5(0x1e8a)]()['title'](_0x1c15f5(0x1d64))['content'](_0x1c15f5(0x1e6d))[_0x1c15f5(0x4bd)]('Delete\x20Context')['ok'](_0x1c15f5(0x25de))['cancel'](_0x1c15f5(0xcf0))['targetEvent'](_0x1e3d5b);_0x5eea38['show'](_0x2800a5)[_0x1c15f5(0x146b)](function(){const _0x2f0996=_0x1c15f5;_0x2cc417[_0x2f0996(0x1b82)][_0x2f0996(0x1fac)]({'id':_0x3e6f31[_0x2f0996(0x1ac1)]['id']})['$promise'][_0x2f0996(0x146b)](function(){const _0x2a33ba=_0x2f0996;_0x3f65c0()['remove'](_0x3e6f31['contexts'],{'id':_0x3e6f31[_0x2a33ba(0x1ac1)]['id']}),_0x4acae6[_0x2a33ba(0x1c75)]({'title':_0x2a33ba(0x9a6),'msg':(_0x3e6f31[_0x2a33ba(0x1ac1)]['name']||_0x2a33ba(0x1ac1))+_0x2a33ba(0x23e3)}),_0x40ac7f(_0x3e6f31[_0x2a33ba(0x1ac1)]);})['catch'](function(_0x4ad112){const _0x1bce39=_0x2f0996;if(_0x4ad112['data']&&_0x4ad112[_0x1bce39(0x524)]['errors']&&_0x4ad112[_0x1bce39(0x524)][_0x1bce39(0xcef)][_0x1bce39(0x402)]){_0x3e6f31[_0x1bce39(0xcef)]=_0x4ad112[_0x1bce39(0x524)][_0x1bce39(0xcef)]||[{'message':_0x4ad112[_0x1bce39(0xd5f)](),'type':_0x1bce39(0x1678)}];for(let _0x57221b=0x0;_0x57221b<_0x4ad112[_0x1bce39(0x524)]['errors'][_0x1bce39(0x402)];_0x57221b++){_0x4acae6[_0x1bce39(0x1980)]({'title':_0x4ad112['data'][_0x1bce39(0xcef)][_0x57221b][_0x1bce39(0x1142)],'msg':_0x4ad112[_0x1bce39(0x524)]['errors'][_0x57221b][_0x1bce39(0x7fd)]});}}else _0x4acae6[_0x1bce39(0x1980)]({'title':_0x4ad112[_0x1bce39(0x107b)]?'API:'+_0x4ad112['status']+_0x1bce39(0x1315)+_0x4ad112['statusText']:_0x1bce39(0x1678),'msg':_0x4ad112[_0x1bce39(0x524)]?JSON[_0x1bce39(0x10bb)](_0x4ad112[_0x1bce39(0x524)][_0x1bce39(0x7fd)]):_0x4ad112['message']||_0x4ad112['toString']()});});},function(){});}function _0x2ce7e2(_0x44b2d8){return _0x44b2d8===null?undefined:new Date(_0x44b2d8);}function _0x40ac7f(_0x92f689){const _0x20e374=_0x5ad7ee;_0x5eea38[_0x20e374(0x2458)](_0x92f689);}}const _0xbe9e56=_0x347a4b;;_0x27e88e[_0x313a4d(0x11c2)]=['$scope',_0x313a4d(0x1862),_0x313a4d(0xd08),_0x313a4d(0x10e8),'$q',_0x313a4d(0x214b),_0x313a4d(0x1fe4),'inboundroutes',_0x313a4d(0x1d70),_0x313a4d(0x247f),_0x313a4d(0xa87),_0x313a4d(0x2690),'setting',_0x313a4d(0x2514)];function _0x27e88e(_0x4a3172,_0x515899,_0x2f4e19,_0x2e863f,_0x576a68,_0x3f6ecc,_0x344fc4,_0x4116f3,_0x225b15,_0x6b8eaf,_0x40d79d,_0x29ad7f,_0x269f1e,_0x21a2e0){const _0x412d54=_0x313a4d,_0x4c8918=this;_0x4c8918['currentUser']=_0x40d79d[_0x412d54(0xb12)](),_0x4c8918[_0x412d54(0xcef)]=[],_0x4c8918['setting']=_0x269f1e,_0x4c8918[_0x412d54(0x2690)]=_0x29ad7f,_0x4c8918[_0x412d54(0x2514)]=_0x21a2e0,_0x4c8918[_0x412d54(0x855)]={},_0x4c8918[_0x412d54(0x2251)]=_0x4c8918[_0x412d54(0x15b9)]&&_0x4c8918[_0x412d54(0x15b9)][_0x412d54(0x976)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x4c8918[_0x412d54(0x1189)]=_0x412d54(0x1f2a),_0x4c8918['inboundroute']=angular['copy'](_0x225b15),_0x4c8918['inboundroutes']=_0x4116f3,_0x4c8918[_0x412d54(0x252d)]=![];!_0x4c8918[_0x412d54(0x1d70)]&&(_0x4c8918[_0x412d54(0x1d70)]={'appdata':'Inbound\x20Call','type':_0x412d54(0x7b0),'context':'from-voip-provider'},_0x4c8918[_0x412d54(0x1189)]='VOICE.NEW_INBOUNDROUTE',_0x4c8918[_0x412d54(0x252d)]=!![]);_0x4c8918[_0x412d54(0x20d5)]=_0x130bf1,_0x4c8918['saveInboundRoute']=_0xdf42aa,_0x4c8918[_0x412d54(0x45d)]=_0x1a1f6b,_0x4c8918[_0x412d54(0xe73)]=_0x1d9d27,_0x4c8918[_0x412d54(0x13f3)]=_0x2314dc,_0x40d79d[_0x412d54(0x23e0)](_0x412d54(0x174b))?_0x6b8eaf['voiceContext']['get']({'fields':'id,name','sort':_0x412d54(0x19eb),'nolimit':_0x412d54(0x1185)})['$promise'][_0x412d54(0x146b)](function(_0x481ef4){const _0x50ae7c=_0x412d54;_0x4c8918[_0x50ae7c(0xfe9)]=_0x481ef4[_0x50ae7c(0x19c7)]||[];})[_0x412d54(0x129e)](function(_0x5343fd){const _0x3d9ae1=_0x412d54;_0x344fc4[_0x3d9ae1(0x1980)]({'title':_0x5343fd[_0x3d9ae1(0x107b)]?'API:'+_0x5343fd[_0x3d9ae1(0x107b)]+'\x20-\x20'+_0x5343fd[_0x3d9ae1(0x167f)]:_0x3d9ae1(0x2742),'msg':_0x5343fd['data']?JSON['stringify'](_0x5343fd[_0x3d9ae1(0x524)]):_0x5343fd['toString']()});}):_0x6b8eaf['voiceContext'][_0x412d54(0x16b4)]({'fields':_0x412d54(0x7a7),'sort':_0x412d54(0x19eb),'nolimit':_0x412d54(0x1185)})[_0x412d54(0x2945)]['then'](function(_0x13c136){const _0x41d2af=_0x412d54;_0x4c8918[_0x41d2af(0xfe9)]=_0x13c136[_0x41d2af(0x19c7)]||[];})[_0x412d54(0x146b)](function(){const _0x3ca048=_0x412d54;return _0x6b8eaf['userProfileSection'][_0x3ca048(0x16b4)]({'userProfileId':_0x4c8918[_0x3ca048(0x2321)]['userProfileId'],'sectionId':0x195})[_0x3ca048(0x2945)];})['then'](function(_0x44b066){const _0x31fd47=_0x412d54,_0x468550=_0x44b066&&_0x44b066[_0x31fd47(0x19c7)]?_0x44b066[_0x31fd47(0x19c7)][0x0]:null;if(!_0x468550)return _0x6b8eaf['voiceContext'][_0x31fd47(0x16b4)]({'fields':_0x31fd47(0x7a7),'sort':_0x31fd47(0x19eb),'nolimit':_0x31fd47(0x1185),'defaultEntry':0x1})[_0x31fd47(0x2945)][_0x31fd47(0x146b)](function(_0x2e3cb8){const _0x4a0837=_0x31fd47;_0x4c8918['contexts']=_0x2e3cb8[_0x4a0837(0x19c7)]||[];});else{if(!_0x468550[_0x31fd47(0x11d2)])return _0x6b8eaf['userProfileResource'][_0x31fd47(0x16b4)]({'sectionId':_0x468550['id']})['$promise'][_0x31fd47(0x146b)](function(_0x16eaed){const _0x2c059e=_0x31fd47,_0x5784ee=_0x3f65c0()['map'](_0x16eaed['rows'],function(_0x1c40a3){const _0x4497c3=a0_0x3bb9;return _0x3f65c0()[_0x4497c3(0xc84)](_0x4c8918[_0x4497c3(0xfe9)],{'id':_0x1c40a3['resourceId']});});let _0x1eb4e6=null;_0x4c8918[_0x2c059e(0x1d70)]&&(_0x1eb4e6=_0x3f65c0()[_0x2c059e(0xc84)](_0x4c8918['contexts'],{'name':_0x4c8918[_0x2c059e(0x1d70)][_0x2c059e(0x1ac1)]}));if(_0x1eb4e6&&!_0x3f65c0()['some'](_0x5784ee,['id',_0x1eb4e6['id']])){const _0x3e619c=_0x3f65c0()['find'](_0x4c8918[_0x2c059e(0xfe9)],{'id':_0x1eb4e6['id']});_0x3e619c['canSelect']=![],_0x5784ee[_0x2c059e(0x1f47)](_0x3e619c);}_0x4c8918[_0x2c059e(0xfe9)]=_0x5784ee;});}})[_0x412d54(0x129e)](function(_0x101e9e){const _0x599e4f=_0x412d54;_0x344fc4['error']({'title':_0x101e9e[_0x599e4f(0x107b)]?'API:'+_0x101e9e[_0x599e4f(0x107b)]+'\x20-\x20'+_0x101e9e[_0x599e4f(0x167f)]:_0x599e4f(0x155e),'msg':_0x101e9e[_0x599e4f(0x524)]?JSON[_0x599e4f(0x10bb)](_0x101e9e[_0x599e4f(0x524)]):_0x101e9e['toString']()});});function _0x130bf1(){const _0x2c0a72=_0x412d54;_0x4c8918[_0x2c0a72(0xcef)]=[],_0x6b8eaf[_0x2c0a72(0xd47)][_0x2c0a72(0x1e3)](_0x4c8918[_0x2c0a72(0x1d70)])[_0x2c0a72(0x2945)][_0x2c0a72(0x146b)](function(_0x257ab9){const _0x5b708b=_0x2c0a72;_0x4c8918[_0x5b708b(0x1470)][_0x5b708b(0xb3d)](_0x257ab9['toJSON']()),_0x344fc4['success']({'title':_0x5b708b(0xdf3),'msg':_0x4c8918[_0x5b708b(0x1d70)]['name']?_0x4c8918['inboundroute'][_0x5b708b(0x19eb)]+_0x5b708b(0x1386):''}),_0x2314dc(_0x257ab9);})[_0x2c0a72(0x129e)](function(_0x5a4c75){const _0x1b5a58=_0x2c0a72;if(_0x5a4c75['data']&&_0x5a4c75[_0x1b5a58(0x524)]['errors']&&_0x5a4c75[_0x1b5a58(0x524)][_0x1b5a58(0xcef)]['length']){_0x4c8918[_0x1b5a58(0xcef)]=_0x5a4c75[_0x1b5a58(0x524)][_0x1b5a58(0xcef)]||[{'message':_0x5a4c75[_0x1b5a58(0xd5f)](),'type':_0x1b5a58(0x52e)}];for(let _0x66752f=0x0;_0x66752f<_0x5a4c75[_0x1b5a58(0x524)][_0x1b5a58(0xcef)]['length'];_0x66752f+=0x1){_0x344fc4['error']({'title':_0x5a4c75[_0x1b5a58(0x524)][_0x1b5a58(0xcef)][_0x66752f][_0x1b5a58(0x1142)],'msg':_0x5a4c75[_0x1b5a58(0x524)][_0x1b5a58(0xcef)][_0x66752f]['message']});}}else _0x344fc4[_0x1b5a58(0x1980)]({'title':_0x5a4c75['status']?_0x1b5a58(0x262a)+_0x5a4c75[_0x1b5a58(0x107b)]+'\x20-\x20'+_0x5a4c75[_0x1b5a58(0x167f)]:_0x1b5a58(0x52e),'msg':_0x5a4c75[_0x1b5a58(0x524)]?JSON[_0x1b5a58(0x10bb)](_0x5a4c75[_0x1b5a58(0x524)][_0x1b5a58(0x7fd)]):_0x5a4c75['toString']()});});}function _0xdf42aa(){const _0x36f6e2=_0x412d54;_0x4c8918[_0x36f6e2(0xcef)]=[],_0x6b8eaf[_0x36f6e2(0xd47)]['update']({'id':_0x4c8918[_0x36f6e2(0x1d70)]['id']},_0x4c8918[_0x36f6e2(0x1d70)])[_0x36f6e2(0x2945)][_0x36f6e2(0x146b)](function(_0x2e923b){const _0x473385=_0x36f6e2,_0x13d010=_0x3f65c0()[_0x473385(0xc84)](_0x4c8918['inboundroutes'],{'id':_0x2e923b['id']});_0x13d010&&_0x3f65c0()[_0x473385(0x168d)](_0x13d010,_0x3f65c0()[_0x473385(0x40e)](_0x2e923b[_0x473385(0x2488)](),_0x3f65c0()['keys'](_0x13d010))),_0x344fc4[_0x473385(0x1c75)]({'title':_0x473385(0x1dbe),'msg':_0x4c8918['inboundroute'][_0x473385(0x19eb)]?_0x4c8918[_0x473385(0x1d70)][_0x473385(0x19eb)]+'\x20has\x20been\x20saved!':''}),_0x2314dc(_0x2e923b);})[_0x36f6e2(0x129e)](function(_0x3e0d4c){const _0x774706=_0x36f6e2;if(_0x3e0d4c[_0x774706(0x524)]&&_0x3e0d4c['data'][_0x774706(0xcef)]&&_0x3e0d4c[_0x774706(0x524)]['errors'][_0x774706(0x402)]){_0x4c8918[_0x774706(0xcef)]=_0x3e0d4c[_0x774706(0x524)][_0x774706(0xcef)]||[{'message':_0x3e0d4c['toString'](),'type':_0x774706(0x872)}];for(let _0x2e3fe0=0x0;_0x2e3fe0<_0x3e0d4c['data'][_0x774706(0xcef)][_0x774706(0x402)];_0x2e3fe0++){_0x344fc4['error']({'title':_0x3e0d4c[_0x774706(0x524)]['errors'][_0x2e3fe0][_0x774706(0x1142)],'msg':_0x3e0d4c['data'][_0x774706(0xcef)][_0x2e3fe0]['message']});}}else _0x344fc4['error']({'title':_0x3e0d4c[_0x774706(0x107b)]?_0x774706(0x262a)+_0x3e0d4c[_0x774706(0x107b)]+_0x774706(0x1315)+_0x3e0d4c[_0x774706(0x167f)]:_0x774706(0x872),'msg':_0x3e0d4c[_0x774706(0x524)]?JSON[_0x774706(0x10bb)](_0x3e0d4c[_0x774706(0x524)][_0x774706(0x7fd)]):_0x3e0d4c[_0x774706(0xd5f)]()});});}function _0x1a1f6b(_0x36cdee){const _0x2e4641=_0x412d54;_0x4c8918[_0x2e4641(0xcef)]=[];const _0x4c481a=_0x2e863f[_0x2e4641(0x1e8a)]()[_0x2e4641(0x1189)](_0x2e4641(0x1d64))[_0x2e4641(0x80f)](_0x2e4641(0x293e))[_0x2e4641(0x4bd)](_0x2e4641(0x24fd))['ok'](_0x2e4641(0x25de))['cancel']('Cancel')[_0x2e4641(0x1f27)](_0x36cdee);_0x2e863f[_0x2e4641(0x2615)](_0x4c481a)[_0x2e4641(0x146b)](function(){const _0x177d31=_0x2e4641;_0x6b8eaf[_0x177d31(0xd47)][_0x177d31(0x1fac)]({'id':_0x4c8918[_0x177d31(0x1d70)]['id']})[_0x177d31(0x2945)][_0x177d31(0x146b)](function(){const _0x5273ef=_0x177d31;_0x3f65c0()[_0x5273ef(0x2640)](_0x4c8918['inboundroutes'],{'id':_0x4c8918[_0x5273ef(0x1d70)]['id']}),_0x344fc4[_0x5273ef(0x1c75)]({'title':_0x5273ef(0xd1f),'msg':(_0x4c8918[_0x5273ef(0x1d70)][_0x5273ef(0x19eb)]||'inboundroute')+_0x5273ef(0x23e3)}),_0x2314dc(_0x4c8918[_0x5273ef(0x1d70)]);})[_0x177d31(0x129e)](function(_0x8bfa11){const _0x1f2c28=_0x177d31;if(_0x8bfa11[_0x1f2c28(0x524)]&&_0x8bfa11[_0x1f2c28(0x524)][_0x1f2c28(0xcef)]&&_0x8bfa11[_0x1f2c28(0x524)][_0x1f2c28(0xcef)]['length']){_0x4c8918[_0x1f2c28(0xcef)]=_0x8bfa11[_0x1f2c28(0x524)][_0x1f2c28(0xcef)]||[{'message':_0x8bfa11[_0x1f2c28(0xd5f)](),'type':'api.voiceExtension.delete'}];for(let _0x5c1a35=0x0;_0x5c1a35<_0x8bfa11[_0x1f2c28(0x524)]['errors'][_0x1f2c28(0x402)];_0x5c1a35++){_0x344fc4[_0x1f2c28(0x1980)]({'title':_0x8bfa11[_0x1f2c28(0x524)][_0x1f2c28(0xcef)][_0x5c1a35][_0x1f2c28(0x1142)],'msg':_0x8bfa11[_0x1f2c28(0x524)][_0x1f2c28(0xcef)][_0x5c1a35][_0x1f2c28(0x7fd)]});}}else _0x344fc4[_0x1f2c28(0x1980)]({'title':_0x8bfa11[_0x1f2c28(0x107b)]?_0x1f2c28(0x262a)+_0x8bfa11['status']+_0x1f2c28(0x1315)+_0x8bfa11['statusText']:_0x1f2c28(0x277c),'msg':_0x8bfa11['data']?JSON['stringify'](_0x8bfa11[_0x1f2c28(0x524)][_0x1f2c28(0x7fd)]):_0x8bfa11[_0x1f2c28(0x7fd)]||_0x8bfa11['toString']()});});},function(){});}function _0x1d9d27(_0xd59279){return _0xd59279===null?undefined:new Date(_0xd59279);}function _0x2314dc(_0x3adbcd){const _0x143e53=_0x412d54;_0x2e863f[_0x143e53(0x2458)](_0x3adbcd);}}const _0x3a5ae9=_0x27e88e;;const _0x4e27e9=_0x4acfac['p']+_0x313a4d(0xeb9);;const _0x13acdd=_0x4acfac['p']+_0x313a4d(0x9da);;const _0x5754f3=_0x4acfac['p']+_0x313a4d(0x466);;const _0x3816ea=_0x4acfac['p']+_0x313a4d(0x25eb);;const _0x131c5a=_0x4acfac['p']+_0x313a4d(0xefa);;const _0x3932c4=_0x4acfac['p']+_0x313a4d(0x2512);;const _0x3259e4=_0x4acfac['p']+_0x313a4d(0x1c67);;const _0x21a04e=_0x4acfac['p']+'src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/interval/dialog.html/dialog.html';;const _0x3d5e51=_0x4acfac['p']+_0x313a4d(0x1fa6);;const _0x25d6e5=_0x4acfac['p']+_0x313a4d(0x78b);;const _0x3e5d6b=_0x4acfac['p']+_0x313a4d(0x1e95);;const _0x84c884=_0x4acfac['p']+_0x313a4d(0x503);;const _0x1c17a7=_0x4acfac['p']+_0x313a4d(0x459);;_0x5e960e[_0x313a4d(0x11c2)]=['api',_0x313a4d(0x10e8),_0x313a4d(0x4d8),'toasty',_0x313a4d(0xa87)];const _0x585c0e={'agi':_0x4e27e9,'custom':_0x13acdd,'dial':_0x5754f3,'externaldial':_0x3816ea,'goto':_0x131c5a,'hangup':_0x3932c4,'internaldial':_0x3259e4,'interval':_0x21a04e,'playback':_0x3d5e51,'queue':_0x25d6e5,'ringgroup':_0x3e5d6b,'set':_0x84c884,'voicemail':_0x1c17a7};function _0x5e960e(_0x86d59e,_0x418d30,_0xc5d4c2,_0xcdb044,_0x40776f){const _0x37afb5=_0x313a4d,_0x3b6242=this;_0x3b6242[_0x37afb5(0x2321)]=_0x40776f['getCurrentUser'](),_0x3b6242[_0x37afb5(0x1d70)]={},_0x3b6242[_0x37afb5(0x1ee9)]={'count':0x0,'rows':[]},_0x3b6242['selectedInboundRouteApps']=[],_0x3b6242[_0x37afb5(0x2514)],_0x3b6242[_0x37afb5(0x1a56)]={'sort':_0x37afb5(0xa6a)},_0x3b6242['apps']=_0x3f65c0()[_0x37afb5(0xa6f)](_0x3f65c0()[_0x37afb5(0x939)]([{'app':_0x37afb5(0x1b4e),'appType':_0x37afb5(0x2765),'types':[_0x37afb5(0xd85),_0x37afb5(0x1802),_0x37afb5(0x25f4)],'fields':[],'isApp':![]},{'app':'Queue','appType':_0x37afb5(0x1c72),'context':_0x37afb5(0x515),'type':_0x37afb5(0x1d02),'appdata':_0x37afb5(0x1452),'icon':_0x37afb5(0x1205),'options':'xX','interval':'*,*,*,*','answer':!![],'isApp':!![],'extraApi':[{'name':_0x37afb5(0xb02),'field':{'name':_0x37afb5(0x126d),'key':'save_name','prefix':_0x37afb5(0xe2e)},'route':_0x37afb5(0x126d),'filters':{'fields':_0x37afb5(0x222a),'sort':_0x37afb5(0x19eb),'nolimit':!![]},'permissions':{'section':0x3ef}},{'name':'queues','field':{'name':_0x37afb5(0x1c72),'key':_0x37afb5(0x19eb)},'route':'voiceQueue','filters':{'type':'inbound','fields':'id,name,type','sort':_0x37afb5(0x19eb),'nolimit':!![]},'permissions':{'section':0x191}}],'fields':[{'title':_0x37afb5(0xe26),'name':_0x37afb5(0x1c72),'type':'apiselect','values':_0x37afb5(0x1b32),'value':_0x37afb5(0x15b0),'option':_0x37afb5(0x15b0),'required':!![],'param':0x0},{'title':_0x37afb5(0x23ec),'name':_0x37afb5(0xa08),'type':_0x37afb5(0xa8d),'param':0x1},{'title':_0x37afb5(0xae8),'name':_0x37afb5(0x1227),'type':'text','param':0x2},{'title':_0x37afb5(0x17b9),'name':_0x37afb5(0x126d),'type':_0x37afb5(0x28c6),'values':_0x37afb5(0xb02),'value':_0x37afb5(0x9ef),'option':_0x37afb5(0x1c76),'defaultValues':[{'value':'\x27\x27','option':_0x37afb5(0x13dd)}],'param':0x3},{'title':_0x37afb5(0x5cc),'name':'timeout','type':'number','min':0x0,'param':0x4},{'title':_0x37afb5(0x180e),'name':'agi','type':'text','param':0x5},{'title':_0x37afb5(0x18fc),'name':_0x37afb5(0x9d2),'type':_0x37afb5(0xa8d),'param':0x6},{'title':'GoSub','name':_0x37afb5(0x1779),'type':_0x37afb5(0xa8d),'param':0x7},{'title':_0x37afb5(0xfd0),'name':_0x37afb5(0x95e),'type':_0x37afb5(0xa8d),'param':0x8},{'title':_0x37afb5(0x25b),'name':'position','type':_0x37afb5(0x181),'min':0x0,'param':0x9},{'title':'Answer','name':_0x37afb5(0x2336),'type':_0x37afb5(0x1197),'general':!![]}]},{'app':'Playback','appType':_0x37afb5(0x288a),'context':_0x37afb5(0x515),'type':_0x37afb5(0x1d02),'icon':_0x37afb5(0x1205),'interval':_0x37afb5(0x1559),'answer':!![],'isApp':!![],'extraApi':[{'name':_0x37afb5(0xb02),'field':{'name':_0x37afb5(0x126d),'key':_0x37afb5(0xa3d),'prefix':_0x37afb5(0xe2e)},'route':_0x37afb5(0x126d),'filters':{'fields':_0x37afb5(0x222a),'sort':_0x37afb5(0x19eb),'nolimit':!![]},'permissions':{'section':0x3ef}}],'fields':[{'title':_0x37afb5(0x671),'name':_0x37afb5(0x168a),'type':_0x37afb5(0x28c6),'values':_0x37afb5(0xb02),'value':_0x37afb5(0x2130),'option':_0x37afb5(0x2227),'required':!![],'param':0x0},{'title':'Options','name':_0x37afb5(0xa08),'type':_0x37afb5(0xa8d),'param':0x1},{'title':_0x37afb5(0x21c0),'name':_0x37afb5(0x2336),'type':_0x37afb5(0x1197),'general':!![]}]},{'app':'Dial','appType':_0x37afb5(0xb98),'context':_0x37afb5(0x515),'type':'Inbound','icon':_0x37afb5(0x1205),'interval':_0x37afb5(0x1559),'options':'xX','isApp':!![],'fields':[{'title':_0x37afb5(0x2599),'name':'tech','type':_0x37afb5(0xa8d),'required':!![],'param':0x0},{'title':_0x37afb5(0x5cc),'name':_0x37afb5(0xa9c),'type':_0x37afb5(0x181),'min':0x0,'param':0x1},{'title':_0x37afb5(0x23ec),'name':'options','type':_0x37afb5(0xa8d),'param':0x2},{'title':_0x37afb5(0xae8),'name':_0x37afb5(0x20cc),'type':_0x37afb5(0xa8d),'param':0x3}]},{'app':_0x37afb5(0x20fb),'appType':'internalDial','context':'from-voip-provider','type':_0x37afb5(0x1d02),'icon':_0x37afb5(0x1205),'interval':_0x37afb5(0x1559),'options':'xX','isApp':!![],'extraApi':[{'name':_0x37afb5(0x1995),'field':{'name':'user','key':_0x37afb5(0x19eb),'prefix':'SIP/'},'route':_0x37afb5(0xe7b),'filters':{'fields':_0x37afb5(0x245b),'sort':_0x37afb5(0x19eb),'nolimit':!![]},'permissions':{'sections':[{'id':0xca,'role':_0x37afb5(0x1755)},{'id':0xcb,'role':_0x37afb5(0x90c)}]}}],'fields':[{'title':_0x37afb5(0x2393),'name':'user','type':_0x37afb5(0x28c6),'values':'users','value':'\x27SIP/{{user.name}}\x27','option':_0x37afb5(0x742),'required':!![],'param':0x0},{'title':_0x37afb5(0x5cc),'name':_0x37afb5(0xa9c),'type':'number','min':0x0,'param':0x1},{'title':_0x37afb5(0x23ec),'name':_0x37afb5(0xa08),'type':_0x37afb5(0xa8d),'param':0x2},{'title':_0x37afb5(0xae8),'name':_0x37afb5(0x20cc),'type':_0x37afb5(0xa8d),'param':0x3}]},{'app':'Dial','appType':'externalDial','context':'from-voip-provider','type':_0x37afb5(0x7b0),'icon':'icon-apps','interval':_0x37afb5(0x1559),'options':'xX','isApp':!![],'extraApi':[{'name':_0x37afb5(0x2433),'field':{'name':_0x37afb5(0x279f),'key':_0x37afb5(0x19eb)},'route':'trunk','filters':{'fields':_0x37afb5(0x7a7),'sort':_0x37afb5(0x19eb),'nolimit':!![]},'permissions':{'section':0x3f3}}],'fields':[{'title':_0x37afb5(0x13c4),'name':_0x37afb5(0x279f),'type':'apiselect','values':'trunks','value':_0x37afb5(0x1845),'option':_0x37afb5(0x1845),'required':!![],'param':0x0},{'title':_0x37afb5(0x1184),'name':_0x37afb5(0x1d55),'required':!![],'type':_0x37afb5(0xa8d)},{'title':_0x37afb5(0x5cc),'name':_0x37afb5(0xa9c),'type':_0x37afb5(0x181),'min':0x0,'param':0x1},{'title':_0x37afb5(0x23ec),'name':_0x37afb5(0xa08),'type':_0x37afb5(0xa8d),'param':0x2},{'title':'Url','name':_0x37afb5(0x20cc),'type':_0x37afb5(0xa8d),'param':0x3}]},{'app':_0x37afb5(0x20fb),'appType':_0x37afb5(0xd0c),'context':_0x37afb5(0x515),'type':_0x37afb5(0x7b0),'icon':_0x37afb5(0x1205),'interval':_0x37afb5(0x1559),'options':'xX','isApp':!![],'extraApi':[{'name':_0x37afb5(0x1995),'field':{'name':'multipleUsers','key':'name','prefix':'SIP/'},'route':_0x37afb5(0xe7b),'filters':{'fields':_0x37afb5(0x245b),'sort':_0x37afb5(0x19eb),'nolimit':!![]},'permissions':{'sections':[{'id':0xca,'role':'agent'},{'id':0xcb,'role':_0x37afb5(0x90c)}]}}],'fields':[{'title':_0x37afb5(0x2393),'name':'multipleUsers','type':_0x37afb5(0x28c6),'multiple':!![],'values':_0x37afb5(0x1995),'value':_0x37afb5(0x1e52),'option':_0x37afb5(0x26dc),'required':!![],'param':0x0},{'title':_0x37afb5(0x5cc),'name':_0x37afb5(0xa9c),'type':_0x37afb5(0x181),'min':0x0,'param':0x1},{'title':_0x37afb5(0x23ec),'name':'options','type':_0x37afb5(0xa8d),'param':0x2},{'title':_0x37afb5(0xae8),'name':_0x37afb5(0x20cc),'type':_0x37afb5(0xa8d),'param':0x3}]},{'app':_0x37afb5(0xca3),'alias':'CallySquare','appType':_0x37afb5(0x1ecb),'context':_0x37afb5(0x515),'type':_0x37afb5(0x7b0),'icon':'icon-apps','interval':_0x37afb5(0x1559),'isApp':!![],'extraApi':[{'name':_0x37afb5(0x1991),'field':{'name':_0x37afb5(0x9e0),'key':'name','prefix':_0x37afb5(0x1e2a)},'route':_0x37afb5(0x9b1),'filters':{'fields':_0x37afb5(0x7a7),'sort':_0x37afb5(0x19eb),'nolimit':!![]},'permissions':{'section':0x44f}}],'fields':[{'title':_0x37afb5(0x176d),'name':_0x37afb5(0x9e0),'type':_0x37afb5(0x28c6),'values':_0x37afb5(0x1991),'value':_0x37afb5(0x275f),'option':_0x37afb5(0x25c6),'required':!![],'param':0x0}]},{'app':'goto','appType':_0x37afb5(0x22c1),'context':_0x37afb5(0x515),'type':'Inbound','icon':'icon-apps','interval':_0x37afb5(0x1559),'isApp':!![],'extraApi':[{'name':'contexts','field':{'name':'context','key':'name'},'route':'voiceContext','filters':{'fields':_0x37afb5(0x7a7),'sort':_0x37afb5(0x19eb),'nolimit':!![]},'permissions':{'section':0x195}}],'fields':[{'title':'Context','name':_0x37afb5(0x1ac1),'type':_0x37afb5(0x28c6),'values':_0x37afb5(0xfe9),'value':'context.name','option':'context.name','required':!![],'param':0x0},{'title':_0x37afb5(0x2768),'name':_0x37afb5(0x1bc6),'type':'text','required':!![],'param':0x1},{'title':_0x37afb5(0x23d8),'name':_0x37afb5(0xa6a),'type':_0x37afb5(0xa8d),'required':!![],'param':0x2}]},{'app':_0x37afb5(0x1dbf),'appType':_0x37afb5(0x1dbf),'context':'from-voip-provider','type':_0x37afb5(0x1d02),'icon':'icon-apps','interval':_0x37afb5(0x1559),'isApp':!![],'fields':[{'title':_0x37afb5(0x271d),'name':_0x37afb5(0x168a),'type':_0x37afb5(0xa5f),'param':0x0,'values':[{'option':_0x37afb5(0x2cc),'value':'\x271\x27'},{'option':_0x37afb5(0x2612),'value':_0x37afb5(0x2395)},{'option':_0x37afb5(0x16ef),'value':_0x37afb5(0x12ce)},{'option':_0x37afb5(0x13d2),'value':_0x37afb5(0x3f8)},{'option':_0x37afb5(0x124b),'value':_0x37afb5(0x23e8)},{'option':_0x37afb5(0x272b),'value':_0x37afb5(0x268b)},{'option':_0x37afb5(0xab5),'value':_0x37afb5(0xb13)},{'option':'HANGUPCAUSE_38','value':_0x37afb5(0x5b9)},{'option':_0x37afb5(0x2192),'value':_0x37afb5(0x2048)}],'translate':!![],'required':!![],'general':!![]}]},{'app':_0x37afb5(0x124f),'appType':_0x37afb5(0x26ba),'context':'from-voip-provider','type':'Inbound','separator':'=','icon':_0x37afb5(0x1205),'interval':_0x37afb5(0x1559),'extraApi':[{'name':'variables','field':{'name':'name','key':'name'},'route':_0x37afb5(0x212),'filters':{'fields':_0x37afb5(0x7a7),'sort':_0x37afb5(0x19eb),'nolimit':!![]},'permissions':{'section':0x3f4}}],'isApp':!![],'fields':[{'title':'Variable','name':_0x37afb5(0x19eb),'type':_0x37afb5(0x28c6),'values':_0x37afb5(0x85b),'value':_0x37afb5(0x17ac),'option':_0x37afb5(0x17ac),'required':!![],'param':0x0},{'title':_0x37afb5(0x2193),'name':_0x37afb5(0x175d),'type':_0x37afb5(0xa8d),'required':!![],'param':0x1}]},{'app':null,'appType':_0x37afb5(0x1802),'icon':_0x37afb5(0x1205),'type':'Inbound','interval':_0x37afb5(0x1559),'isApp':!![],'fields':[{'title':_0x37afb5(0x1b64),'name':_0x37afb5(0x1873),'type':'text','required':!![],'param':0x0},{'title':_0x37afb5(0x2357),'name':_0x37afb5(0x168a),'type':'text','param':0x1}]},{'app':'Voicemail','appType':_0x37afb5(0x356),'context':_0x37afb5(0x515),'icon':_0x37afb5(0x1205),'type':_0x37afb5(0x1d02),'interval':_0x37afb5(0x1559),'isApp':!![],'extraApi':[{'name':_0x37afb5(0xcb1),'field':{'name':_0x37afb5(0xe8c),'key':'mailbox','suffix':_0x37afb5(0x225b)},'route':_0x37afb5(0xe8c),'filters':{'fields':'id,mailbox','sort':'mailbox','nolimit':!![]},'permissions':{'section':0x196}}],'fields':[{'title':_0x37afb5(0x1a7e),'name':_0x37afb5(0xe8c),'type':'apiselect','values':'voiceMails','value':_0x37afb5(0x199e),'option':_0x37afb5(0xa58),'required':!![],'param':0x0},{'title':_0x37afb5(0x23ec),'name':'options','type':_0x37afb5(0xa8d),'param':0x1}]}],[_0x37afb5(0x1873)]),{'isApp':![]}),_0x3b6242[_0x37afb5(0x25f4)]={'group':{'name':'opt1','pull':_0x37afb5(0x12cc)},'animation':0x64,'sort':![]},_0x3b6242[_0x37afb5(0x25fc)]={'group':{'name':_0x37afb5(0x916),'put':_0x37afb5(0x156c)},'animation':0x64,'onAdd':function(_0x1a6ab6){const _0x4a76cd=_0x37afb5;_0x5c6ca6(_0x1a6ab6,_0x1a6ab6[_0x4a76cd(0x154d)]);},'onSort':function(){_0xe041ef();}},_0x3b6242[_0x37afb5(0x5aa)]=_0x5da3be,_0x3b6242[_0x37afb5(0x19b4)]=_0x5b9080,_0x3b6242[_0x37afb5(0x1c4d)]=_0x4547b5,_0x3b6242[_0x37afb5(0x1ea1)]=_0x5c6ca6,_0x3b6242[_0x37afb5(0x285b)]=_0x430235,_0x3b6242[_0x37afb5(0x2329)]=_0x5cea23,_0x3b6242['deleteSelectedInboundRouteApps']=_0x32672f,_0x3b6242[_0x37afb5(0x1450)]=_0xe041ef,_0x3b6242[_0x37afb5(0x1c1c)]=_0x430145;function _0x5da3be(_0x5de347,_0x54a13b){const _0x4aaa00=_0x37afb5;_0x3b6242[_0x4aaa00(0x1d70)]=_0x5de347,_0x3b6242[_0x4aaa00(0x2514)]=typeof _0x54a13b!=='undefined'?_0x54a13b:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x3b6242[_0x4aaa00(0x25fc)][_0x4aaa00(0x2862)]=!_0x3b6242[_0x4aaa00(0x2514)][_0x4aaa00(0x15f4)]?!![]:![],_0x3b6242['query']['VoiceExtensionId']=_0x5de347['id'],_0x3b6242['query'][_0x4aaa00(0x16f6)]=!![],_0x3b6242['query'][_0x4aaa00(0x6c5)]=!![],_0x3b6242['getInboundRouteApps'](),_0x3b6242[_0x4aaa00(0x1c1c)]();}function _0x5b9080(_0x341c8f,_0x12bc96,_0xf16c7a){const _0x2146db=_0x37afb5,_0x6dd2d6=_0x418d30[_0x2146db(0x1e8a)]()[_0x2146db(0x1189)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20application?')['htmlContent'](_0x2146db(0x16d3)+_0x341c8f['app']+_0x2146db(0x252f)+_0x2146db(0xe01))[_0x2146db(0x4bd)](_0x2146db(0x847))[_0x2146db(0x1f27)](_0xf16c7a)['ok']('OK')['cancel']('CANCEL');_0x418d30[_0x2146db(0x2615)](_0x6dd2d6)[_0x2146db(0x146b)](function(){const _0x4b51a7=_0x2146db;_0x3b6242['inboundrouteApps'][_0x4b51a7(0x19c7)][_0x4b51a7(0x1f7d)](_0x12bc96,0x1),_0xe041ef();},function(){const _0x26452e=_0x2146db;console[_0x26452e(0x1a74)](_0x26452e(0x39a));});}function _0x5c6ca6(_0xe8e1d9,_0x29e886){const _0x1160e0=_0x37afb5;if(_0x3b6242['inboundrouteApps'][_0x1160e0(0x19c7)]['length']){const _0x452685=_0x3b6242[_0x1160e0(0x1ee9)]['rows'][_0x29e886]?_0x3b6242[_0x1160e0(0x1ee9)]['rows'][_0x29e886]:_0x3b6242[_0x1160e0(0x1ee9)][_0x1160e0(0x19c7)][0x0],_0x4759c6=(_0x452685['appType']||_0x452685[_0x1160e0(0x1873)])[_0x1160e0(0x256e)]();_0x418d30[_0x1160e0(0x2615)]({'controller':_0x1160e0(0x1363)+_0x4759c6+_0x1160e0(0x76a),'controllerAs':'vm','templateUrl':_0x585c0e[_0x4759c6],'parent':angular['element'](_0xc5d4c2[_0x1160e0(0x2586)]),'targetEvent':_0xe8e1d9,'clickOutsideToClose':!![],'locals':{'inboundrouteApp':_0x452685,'inboundroute':_0x3b6242['inboundroute'],'crudPermissions':_0x3b6242[_0x1160e0(0x2514)]}})[_0x1160e0(0x146b)](function(_0x4ea219){const _0x7cd9ef=_0x1160e0;_0x4ea219&&(_0x4ea219['id']?_0x3b6242[_0x7cd9ef(0x1ee9)][_0x7cd9ef(0x19c7)][_0x29e886]=_0x4ea219:_0x3b6242['inboundrouteApps']['rows'][_0x7cd9ef(0x1f7d)](_0x29e886,0x0,_0x4ea219),_0xe041ef());})[_0x1160e0(0x129e)](function(_0x5de48d){const _0x5c0f85=_0x1160e0;_0x5de48d&&_0xcdb044[_0x5c0f85(0x1980)]({'title':_0x5de48d[_0x5c0f85(0x107b)]?'API:'+_0x5de48d[_0x5c0f85(0x107b)]+_0x5c0f85(0x1315)+_0x5de48d['statusText']:_0x5c0f85(0x10a0),'msg':_0x5de48d['data']?JSON['stringify'](_0x5de48d[_0x5c0f85(0x524)]):_0x5de48d[_0x5c0f85(0xd5f)]()});});}}function _0x430235(_0x13264e,_0x40a455){const _0x46a995=_0x37afb5;if(_0x3b6242[_0x46a995(0x1ee9)][_0x46a995(0x19c7)]['length']){const _0xaf7d3e=_0x3b6242[_0x46a995(0x1ee9)]['rows'][_0x40a455]?_0x3b6242['inboundrouteApps']['rows'][_0x40a455]:_0x3b6242[_0x46a995(0x1ee9)]['rows'][0x0];_0x418d30[_0x46a995(0x2615)]({'controller':_0x46a995(0x2be),'controllerAs':'vm','templateUrl':_0x21a04e,'parent':angular[_0x46a995(0x1853)](_0xc5d4c2[_0x46a995(0x2586)]),'targetEvent':_0x13264e,'clickOutsideToClose':!![],'locals':{'interval':{'interval':_0xaf7d3e[_0x46a995(0x2765)],'IntervalId':_0xaf7d3e['IntervalId'],'application':!![]},'intervals':[],'crudPermissions':_0x3b6242[_0x46a995(0x2514)]}})['then'](function(_0x257e2a){const _0x11afd3=_0x46a995;_0x257e2a&&(_0xaf7d3e[_0x11afd3(0x2765)]=_0x257e2a[_0x11afd3(0x2765)]||_0x11afd3(0x1559),_0xaf7d3e[_0x11afd3(0x1ff2)]=_0x257e2a[_0x11afd3(0x1ff2)]||null,_0xe041ef());});}}function _0xe041ef(){const _0x384953=_0x37afb5,_0x6ac1b=['queue',_0x384953(0x288a)];let _0x35bd11=0x2,_0x3c8612=[];_0x3c8612[_0x384953(0x1f47)]({'type':_0x384953(0x7b0),'app':'Set','appdata':_0x384953(0x1105),'context':_0x3b6242[_0x384953(0x1d70)]['context'],'exten':_0x3b6242[_0x384953(0x1d70)][_0x384953(0x19b2)],'priority':_0x35bd11++,'VoiceExtensionId':_0x3b6242['inboundroute']['id']}),_0x3c8612[_0x384953(0x1f47)]({'type':_0x384953(0x7b0),'app':_0x384953(0x124f),'appdata':_0x384953(0x209),'context':_0x3b6242[_0x384953(0x1d70)][_0x384953(0x1ac1)],'exten':_0x3b6242[_0x384953(0x1d70)][_0x384953(0x19b2)],'priority':_0x35bd11++,'VoiceExtensionId':_0x3b6242[_0x384953(0x1d70)]['id']}),_0x3c8612['push']({'type':_0x384953(0x7b0),'app':_0x384953(0x124f),'appdata':_0x384953(0x25dc),'context':_0x3b6242[_0x384953(0x1d70)][_0x384953(0x1ac1)],'exten':_0x3b6242[_0x384953(0x1d70)][_0x384953(0x19b2)],'priority':_0x35bd11++,'VoiceExtensionId':_0x3b6242[_0x384953(0x1d70)]['id']}),_0x3c8612[_0x384953(0x1f47)]({'type':_0x384953(0x7b0),'app':'Set','appdata':_0x384953(0x1486),'context':_0x3b6242[_0x384953(0x1d70)][_0x384953(0x1ac1)],'exten':_0x3b6242[_0x384953(0x1d70)][_0x384953(0x19b2)],'priority':_0x35bd11++,'VoiceExtensionId':_0x3b6242[_0x384953(0x1d70)]['id']});for(let _0x1cfa69=0x0,_0x41f40d=0x0;_0x1cfa69<_0x3b6242[_0x384953(0x1ee9)][_0x384953(0x19c7)][_0x384953(0x402)];_0x1cfa69++,_0x41f40d=0x0){const _0x1a70e0=_0x3b6242[_0x384953(0x1ee9)][_0x384953(0x19c7)][_0x1cfa69],_0x1b65e8=[],_0x30d6ab=[];_0x1a70e0[_0x384953(0x278f)]=_0x1a70e0['interval']!==_0x384953(0x1559)?[_0x1a70e0[_0x384953(0x2765)]]:_0x1a70e0['IntervalId']?_0x3f65c0()[_0x384953(0x205)](_0x3f65c0()[_0x384953(0x1dd6)](_0x3b6242[_0x384953(0x278f)][_0x384953(0x19c7)],{'IntervalId':_0x1a70e0['IntervalId']}),'interval'):[],_0x1a70e0[_0x384953(0x1ac1)]=_0x3b6242[_0x384953(0x1d70)][_0x384953(0x1ac1)],_0x1a70e0[_0x384953(0x19b2)]=_0x3b6242['inboundroute'][_0x384953(0x19b2)];_0x1a70e0[_0x384953(0x1142)]&&(_0x1a70e0[_0x384953(0x1142)]=_0x1a70e0[_0x384953(0x1142)][_0x384953(0x256e)]());typeof _0x1a70e0[_0x384953(0x2336)]!=='undefined'&&(_0x6ac1b[_0x384953(0xa4e)](_0x1a70e0[_0x384953(0x1873)][_0x384953(0x256e)]())&&_0x1a70e0[_0x384953(0x8f2)]!==_0x384953(0x1802)&&(_0x1a70e0[_0x384953(0x2336)]?(_0x1b65e8['push']({'type':_0x1a70e0[_0x384953(0x1142)][_0x384953(0x256e)](),'app':_0x384953(0xf74),'appdata':_0x384953(0x1a64),'context':_0x3b6242[_0x384953(0x1d70)][_0x384953(0x1ac1)],'exten':_0x3b6242[_0x384953(0x1d70)]['exten'],'priority':_0x1a70e0[_0x384953(0x278f)][_0x384953(0x402)]+_0x35bd11+_0x41f40d++,'VoiceExtensionId':_0x3b6242[_0x384953(0x1d70)]['id']}),_0x1b65e8['push']({'type':_0x1a70e0[_0x384953(0x1142)]['toLowerCase'](),'app':_0x384953(0x124f),'appdata':_0x384953(0x1a60),'context':_0x3b6242[_0x384953(0x1d70)][_0x384953(0x1ac1)],'exten':_0x3b6242['inboundroute']['exten'],'priority':_0x1a70e0['intervals']['length']+_0x35bd11+_0x41f40d++,'VoiceExtensionId':_0x3b6242[_0x384953(0x1d70)]['id']})):(_0x1b65e8[_0x384953(0x1f47)]({'type':_0x1a70e0[_0x384953(0x1142)][_0x384953(0x256e)](),'app':_0x384953(0xf74),'appdata':_0x384953(0x28f3),'context':_0x3b6242[_0x384953(0x1d70)][_0x384953(0x1ac1)],'exten':_0x3b6242['inboundroute'][_0x384953(0x19b2)],'priority':_0x1a70e0[_0x384953(0x278f)][_0x384953(0x402)]+_0x35bd11+_0x41f40d++,'VoiceExtensionId':_0x3b6242[_0x384953(0x1d70)]['id']}),_0x1b65e8[_0x384953(0x1f47)]({'type':_0x1a70e0[_0x384953(0x1142)][_0x384953(0x256e)](),'app':_0x384953(0x124f),'appdata':_0x384953(0x11fa),'context':_0x3b6242[_0x384953(0x1d70)][_0x384953(0x1ac1)],'exten':_0x3b6242[_0x384953(0x1d70)][_0x384953(0x19b2)],'priority':_0x1a70e0['intervals'][_0x384953(0x402)]+_0x35bd11+_0x41f40d++,'VoiceExtensionId':_0x3b6242[_0x384953(0x1d70)]['id']}))));for(let _0x2208b8=0x0;_0x2208b8<_0x1a70e0[_0x384953(0x278f)]['length'];_0x2208b8++){const _0x522552=_0x35bd11+_0x1a70e0[_0x384953(0x278f)][_0x384953(0x402)],_0x527138=_0x2208b8===_0x1a70e0[_0x384953(0x278f)]['length']-0x1?_0x35bd11+_0x1b65e8['length']+_0x30d6ab[_0x384953(0x402)]+0x2:_0x35bd11+_0x2208b8+0x1;_0x1b65e8[_0x384953(0x1f7d)](_0x2208b8,0x0,{'type':_0x384953(0x7b0),'app':_0x384953(0x2229),'appdata':_0x1a70e0['intervals'][_0x2208b8]+'?'+_0x3b6242['inboundroute'][_0x384953(0x1ac1)]+_0x384953(0x2770)+_0x522552+':'+_0x3b6242[_0x384953(0x1d70)][_0x384953(0x1ac1)]+_0x384953(0x2770)+_0x527138,'exten':_0x3b6242[_0x384953(0x1d70)]['exten'],'context':_0x3b6242['inboundroute'][_0x384953(0x1ac1)],'priority':_0x35bd11+_0x2208b8,'VoiceExtensionId':_0x3b6242[_0x384953(0x1d70)]['id']});}_0x1a70e0[_0x384953(0xa6a)]=_0x1b65e8[_0x384953(0x402)]?_0x3f65c0()[_0x384953(0x22f2)](_0x1b65e8)[_0x384953(0xa6a)]+0x1:_0x35bd11,_0x35bd11=(_0x30d6ab[_0x384953(0x402)]?_0x3f65c0()[_0x384953(0x22f2)](_0x30d6ab)['priority']:_0x1a70e0['priority'])+0x1,_0x3c8612=_0x3f65c0()[_0x384953(0x163c)](_0x3c8612,_0x1b65e8,[_0x1a70e0],_0x30d6ab);}_0x3c8612['push']({'type':_0x384953(0x7b0),'app':_0x384953(0x2626),'exten':_0x3b6242[_0x384953(0x1d70)][_0x384953(0x19b2)],'context':_0x3b6242[_0x384953(0x1d70)][_0x384953(0x1ac1)],'priority':_0x35bd11,'VoiceExtensionId':_0x3b6242['inboundroute']['id']}),_0x86d59e[_0x384953(0xd47)]['addApplications']({'id':_0x3b6242[_0x384953(0x1d70)]['id']},_0x3f65c0()['sortBy'](_0x3c8612,_0x384953(0xa6a)))[_0x384953(0x2945)][_0x384953(0x146b)](function(_0x4d07fd){const _0x451719=_0x384953;_0x3b6242[_0x451719(0x1ee9)][_0x451719(0x19c7)]=_0x4d07fd[_0x451719(0x19c7)];})[_0x384953(0x129e)](function(_0x18e028){const _0xf092ea=_0x384953;console[_0xf092ea(0x1980)](_0x18e028);});}function _0x5b5552(_0x2a87e0){const _0x542ad2=_0x37afb5;_0x3b6242[_0x542ad2(0x1ee9)]=_0x2a87e0||{'count':0x0,'rows':[]};}function _0x430145(){const _0x563a93=_0x37afb5;return _0x86d59e['interval'][_0x563a93(0x16b4)]({'fields':_0x563a93(0x2749)})['$promise'][_0x563a93(0x146b)](function(_0x5d138a){const _0x592d35=_0x563a93;_0x3b6242[_0x592d35(0x278f)]=_0x5d138a;})[_0x563a93(0x129e)](function(_0x25a42b){console['error'](_0x25a42b);});}function _0x4547b5(){const _0x49c18e=_0x37afb5;_0x3b6242['promise']=_0x86d59e[_0x49c18e(0xd47)][_0x49c18e(0x16b4)](_0x3b6242[_0x49c18e(0x1a56)],_0x5b5552)[_0x49c18e(0x2945)];}function _0x5cea23(_0x271596){const _0x50d92d=_0x37afb5;_0x3f65c0()[_0x50d92d(0x2640)](_0x3b6242[_0x50d92d(0x1ee9)][_0x50d92d(0x19c7)],{'id':_0x271596['id']}),_0xe041ef(),_0xcdb044['success']({'title':'App\x20deleted!','msg':_0x271596[_0x50d92d(0x1873)]?_0x271596['app']+'\x20has\x20been\x20deleted!':''});}function _0x32672f(_0x23d150){const _0x51382d=_0x37afb5,_0x5402b6=_0x418d30[_0x51382d(0x1e8a)]()[_0x51382d(0x1189)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20applications?')[_0x51382d(0x1cbe)](_0x51382d(0x16d3)+_0x3b6242['selectedInboundRouteApps']['length']+'\x20selected'+_0x51382d(0xe01))[_0x51382d(0x4bd)]('delete\x20applications')[_0x51382d(0x1f27)](_0x23d150)['ok']('OK')[_0x51382d(0x6c3)](_0x51382d(0x39a));_0x418d30[_0x51382d(0x2615)](_0x5402b6)[_0x51382d(0x146b)](function(){const _0x4c5921=_0x51382d;_0x3b6242[_0x4c5921(0x1120)][_0x4c5921(0x1df5)](function(_0x4ce32c){const _0x4ae080=_0x4c5921;_0x3f65c0()[_0x4ae080(0x2640)](_0x3b6242['inboundrouteApps'][_0x4ae080(0x19c7)],{'id':_0x4ce32c['id']});}),_0x3b6242[_0x4c5921(0x1120)]=[],_0xe041ef();});}}const _0x21d2e6=_0x5e960e;;_0x13ffbb[_0x313a4d(0x11c2)]=[_0x313a4d(0x10e8),'$q','toasty',_0x313a4d(0x2296),_0x313a4d(0x1d70),_0x313a4d(0x247f),_0x313a4d(0xa87),_0x313a4d(0x2514)];function _0x13ffbb(_0x39fd02,_0x13485e,_0x5174c8,_0x4828cc,_0x371206,_0x58448f,_0x4dbfae,_0x1c1f7c){const _0x2011de=_0x313a4d,_0x8ad98a=this;_0x8ad98a[_0x2011de(0x2321)]=_0x4dbfae['getCurrentUser'](),_0x8ad98a[_0x2011de(0xcef)]=[],_0x8ad98a[_0x2011de(0x1189)]=_0x2011de(0x1950)+(_0x4828cc['appType']||_0x4828cc['app'])[_0x2011de(0x1c37)](),_0x8ad98a['agi']=angular['copy'](_0x4828cc),_0x8ad98a[_0x2011de(0x2514)]=_0x1c1f7c,_0x8ad98a[_0x2011de(0x855)]={};if(_0x8ad98a[_0x2011de(0x1ecb)][_0x2011de(0x168a)])switch(_0x8ad98a['agi'][_0x2011de(0x8f2)]?_0x8ad98a[_0x2011de(0x1ecb)][_0x2011de(0x8f2)][_0x2011de(0x256e)]():_0x8ad98a[_0x2011de(0x1ecb)][_0x2011de(0x1873)][_0x2011de(0x256e)]()){case _0x2011de(0x1802):break;case'dialogflow':{const _0x18f872=_0x8ad98a[_0x2011de(0x1ecb)][_0x2011de(0x168a)][_0x2011de(0x10c8)](',');_0x8ad98a[_0x2011de(0x1ecb)][_0x2011de(0x2293)]=_0x18f872[0x0],_0x8ad98a[_0x2011de(0x1ecb)][_0x2011de(0x90b)]=_0x18f872[0x1],_0x8ad98a[_0x2011de(0x1ecb)]['welcomemessage']=_0x18f872['slice'](0x2,_0x18f872[_0x2011de(0x402)])[_0x2011de(0xb47)](',');}break;case'dialogflowv2':{const _0x797b80=_0x8ad98a[_0x2011de(0x1ecb)][_0x2011de(0x168a)]['split'](',');_0x8ad98a[_0x2011de(0x1ecb)][_0x2011de(0x153a)]=_0x797b80[0x0],_0x8ad98a['agi'][_0x2011de(0x1392)]=_0x797b80[0x1],_0x8ad98a[_0x2011de(0x1ecb)]['privateKey']=_0x797b80[0x2],_0x8ad98a[_0x2011de(0x1ecb)][_0x2011de(0x90b)]=_0x797b80[0x3],_0x8ad98a[_0x2011de(0x1ecb)][_0x2011de(0xaf3)]=_0x797b80[_0x2011de(0x1298)](0x4,_0x797b80['length'])['join'](',');}break;case _0x2011de(0x17d6):{const _0x20ec08=_0x8ad98a[_0x2011de(0x1ecb)][_0x2011de(0x168a)][_0x2011de(0x10c8)](',');_0x8ad98a[_0x2011de(0x1ecb)]['accesskeyid']=_0x20ec08[0x0],_0x8ad98a[_0x2011de(0x1ecb)][_0x2011de(0x252)]=_0x20ec08[0x1],_0x8ad98a[_0x2011de(0x1ecb)][_0x2011de(0x1039)]=_0x20ec08[0x2],_0x8ad98a['agi']['botname']=_0x20ec08[0x3],_0x8ad98a['agi'][_0x2011de(0xaf3)]=_0x20ec08['slice'](0x4,_0x20ec08[_0x2011de(0x402)])['join'](',');}break;case _0x2011de(0x1713):{const _0x4b2fae=_0x8ad98a[_0x2011de(0x1ecb)][_0x2011de(0x168a)]['split'](',');_0x8ad98a[_0x2011de(0x1ecb)][_0x2011de(0x583)]=isNaN(_0x4b2fae[0x0])?_0x4b2fae[0x0]:parseInt(_0x4b2fae[0x0],0xa),_0x8ad98a[_0x2011de(0x1ecb)]['text']=_0x4b2fae['slice'](0x1,_0x4b2fae[_0x2011de(0x402)])[_0x2011de(0xb47)](',');}break;case _0x2011de(0x7fd):_0x8ad98a[_0x2011de(0x1ecb)]['text']=_0x8ad98a[_0x2011de(0x1ecb)]['appdata'];break;case'set':_0x8ad98a[_0x2011de(0x1ecb)][_0x2011de(0x19eb)]=_0x8ad98a['agi'][_0x2011de(0x168a)]['split']('=')[0x0],_0x8ad98a['agi'][_0x2011de(0x175d)]=_0x8ad98a[_0x2011de(0x1ecb)][_0x2011de(0x168a)][_0x2011de(0x10c8)]('=')[0x1];break;case _0x2011de(0x1ecb):_0x8ad98a[_0x2011de(0x1ecb)][_0x2011de(0x9e0)]=_0x8ad98a[_0x2011de(0x1ecb)][_0x2011de(0x168a)];break;default:{const _0x33b7b2=_0x8ad98a[_0x2011de(0x1ecb)][_0x2011de(0x168a)][_0x2011de(0x10c8)](',');_0x8ad98a[_0x2011de(0x1ecb)]['project']=_0x3f65c0()[_0x2011de(0x2635)](_0x33b7b2[0x0])?_0x33b7b2[0x0]:isNaN(_0x33b7b2[0x0])?_0x33b7b2[0x0]:parseInt(_0x33b7b2[0x0],0xa);}break;}else{}_0x8ad98a[_0x2011de(0x1ecb)]['type']&&_0x8ad98a[_0x2011de(0x1ecb)][_0x2011de(0x1142)]['toLowerCase']()===_0x2011de(0xc9c)&&_0x8ad98a[_0x2011de(0x1ecb)]['appType'][_0x2011de(0x256e)]()===_0x2011de(0x3bb)&&(_0x8ad98a[_0x2011de(0x1ecb)][_0x2011de(0x1e12)]=_0x8ad98a['agi']['phone']?_0x8ad98a[_0x2011de(0x1ecb)][_0x2011de(0x1d55)][_0x2011de(0x10c8)]('$')[0x0]:undefined,_0x8ad98a[_0x2011de(0x1ecb)][_0x2011de(0x1d43)]=_0x8ad98a[_0x2011de(0x1ecb)][_0x2011de(0x11be)]?_0x2011de(0x1b60)+_0x8ad98a[_0x2011de(0x1ecb)][_0x2011de(0x11be)]:undefined);_0x8ad98a[_0x2011de(0x2332)]=_0x165696,_0x8ad98a[_0x2011de(0x13f3)]=_0x33b26e,_0x4dbfae[_0x2011de(0x23e0)](_0x2011de(0x174b))?_0x58448f[_0x2011de(0x9b1)][_0x2011de(0x16b4)]({'fields':'id,name','sort':_0x2011de(0x19eb),'nolimit':_0x2011de(0x1185)})[_0x2011de(0x2945)][_0x2011de(0x146b)](function(_0x7f426a){const _0x33b527=_0x2011de;_0x8ad98a['projects']=_0x7f426a[_0x33b527(0x19c7)]||[];})[_0x2011de(0x129e)](function(_0x3696ef){const _0x5af533=_0x2011de;_0x5174c8[_0x5af533(0x1980)]({'title':_0x3696ef[_0x5af533(0x107b)]?_0x5af533(0x262a)+_0x3696ef[_0x5af533(0x107b)]+'\x20-\x20'+_0x3696ef['statusText']:_0x5af533(0x1764),'msg':_0x3696ef[_0x5af533(0x524)]?JSON[_0x5af533(0x10bb)](_0x3696ef[_0x5af533(0x524)]):_0x3696ef['toString']()});}):_0x58448f[_0x2011de(0x9b1)][_0x2011de(0x16b4)]({'fields':'id,name','sort':_0x2011de(0x19eb),'nolimit':_0x2011de(0x1185)})['$promise'][_0x2011de(0x146b)](function(_0x5c9d85){const _0x31aa3e=_0x2011de;_0x8ad98a[_0x31aa3e(0x1991)]=_0x5c9d85['rows']||[];})[_0x2011de(0x146b)](function(){const _0x43eaee=_0x2011de;return _0x58448f['userProfileSection'][_0x43eaee(0x16b4)]({'userProfileId':_0x8ad98a['currentUser'][_0x43eaee(0x209a)],'sectionId':0x44f})['$promise'];})[_0x2011de(0x146b)](function(_0x20713d){const _0x2cf212=_0x2011de,_0x56f4a1=_0x20713d&&_0x20713d[_0x2cf212(0x19c7)]?_0x20713d['rows'][0x0]:null;if(!_0x56f4a1){const _0x1855b6=[];let _0x481c8b=null;_0x8ad98a['agi']&&(_0x481c8b=_0x3f65c0()[_0x2cf212(0xc84)](_0x8ad98a[_0x2cf212(0x1991)],{'name':_0x8ad98a[_0x2cf212(0x1ecb)]['project']}));for(let _0x390495=0x0;_0x390495<_0x8ad98a[_0x2cf212(0x1991)]['length'];_0x390495++){_0x481c8b&&_0x8ad98a[_0x2cf212(0x1991)][_0x390495]['id']===_0x481c8b['id']&&(_0x8ad98a[_0x2cf212(0x1991)][_0x390495][_0x2cf212(0x8ff)]=![],_0x1855b6[_0x2cf212(0x1f47)](_0x8ad98a[_0x2cf212(0x1991)][_0x390495]));}_0x8ad98a[_0x2cf212(0x1991)]=_0x1855b6;}else{if(!_0x56f4a1[_0x2cf212(0x11d2)])return _0x58448f[_0x2cf212(0xdcc)][_0x2cf212(0x16b4)]({'sectionId':_0x56f4a1['id']})[_0x2cf212(0x2945)]['then'](function(_0x5d6f16){const _0x288562=_0x2cf212,_0x294ed5=_0x3f65c0()[_0x288562(0x205)](_0x5d6f16[_0x288562(0x19c7)],function(_0x1d2431){const _0x5a8c76=_0x288562;return _0x3f65c0()[_0x5a8c76(0xc84)](_0x8ad98a['projects'],{'id':_0x1d2431[_0x5a8c76(0x18b8)]});});let _0x171296=null;_0x8ad98a[_0x288562(0x1ecb)]&&(_0x171296=_0x3f65c0()[_0x288562(0xc84)](_0x8ad98a[_0x288562(0x1991)],{'name':_0x8ad98a[_0x288562(0x1ecb)]['project']}));if(_0x171296&&!_0x3f65c0()['some'](_0x294ed5,['id',_0x171296['id']])){const _0x1b8b6=_0x3f65c0()[_0x288562(0xc84)](_0x8ad98a['projects'],{'id':_0x171296['id']});_0x1b8b6[_0x288562(0x8ff)]=![],_0x294ed5['push'](_0x1b8b6);}_0x8ad98a['projects']=_0x294ed5;});}})[_0x2011de(0x129e)](function(_0x5e225c){const _0x33657d=_0x2011de;_0x5174c8[_0x33657d(0x1980)]({'title':_0x5e225c[_0x33657d(0x107b)]?_0x33657d(0x262a)+_0x5e225c['status']+_0x33657d(0x1315)+_0x5e225c[_0x33657d(0x167f)]:'SYSTEM:GETprojects','msg':_0x5e225c[_0x33657d(0x524)]?JSON[_0x33657d(0x10bb)](_0x5e225c[_0x33657d(0x524)]):_0x5e225c[_0x33657d(0xd5f)]()});});function _0x165696(){const _0x554b17=_0x2011de;_0x8ad98a[_0x554b17(0xcef)]=[];const _0x5f57c9=[];_0x8ad98a[_0x554b17(0x1ecb)][_0x554b17(0x1142)]&&_0x8ad98a['agi']['type'][_0x554b17(0x256e)]()===_0x554b17(0xc9c)&&_0x8ad98a['agi'][_0x554b17(0x8f2)]===_0x554b17(0x118b)&&(_0x8ad98a['agi'][_0x554b17(0x1d55)]=_0x371206[_0x554b17(0x1274)]?(_0x8ad98a[_0x554b17(0x1ecb)][_0x554b17(0x1e12)]||'')+_0x554b17(0x2147)+_0x371206['cutdigits']+'}':(_0x8ad98a[_0x554b17(0x1ecb)][_0x554b17(0x1e12)]||'')+_0x554b17(0x20df),_0x371206[_0x554b17(0x1425)]!==_0x554b17(0x1642)?_0x8ad98a['agi']['options'][_0x554b17(0x172b)](_0x554b17(0x1ea4))<0x0&&(_0x8ad98a[_0x554b17(0x1ecb)][_0x554b17(0xa08)]+=_0x554b17(0x1ea4)):_0x8ad98a[_0x554b17(0x1ecb)][_0x554b17(0xa08)]=_0x8ad98a[_0x554b17(0x1ecb)][_0x554b17(0xa08)][_0x554b17(0x5f4)](_0x554b17(0x1ea4),''));if(_0x8ad98a['agi']['appType']&&_0x8ad98a[_0x554b17(0x1ecb)][_0x554b17(0x8f2)]===_0x554b17(0x1802)){}else switch((_0x8ad98a[_0x554b17(0x1ecb)][_0x554b17(0x1873)]||_0x8ad98a[_0x554b17(0x1ecb)][_0x554b17(0x8f2)])[_0x554b17(0x256e)]()){case _0x554b17(0x26ba):_0x8ad98a[_0x554b17(0x1ecb)][_0x554b17(0x168a)]=_0x8ad98a[_0x554b17(0x1ecb)][_0x554b17(0x19eb)]+'='+_0x8ad98a['agi'][_0x554b17(0x175d)];break;case _0x554b17(0x1802):break;default:_0x5f57c9[0x0]=_0x8ad98a[_0x554b17(0x1ecb)][_0x554b17(0x9e0)],_0x8ad98a[_0x554b17(0x1ecb)][_0x554b17(0x168a)]=_0x5f57c9[_0x554b17(0xb47)](',');}_0x33b26e(_0x8ad98a[_0x554b17(0x1ecb)]);}function _0x33b26e(_0x1bc170){const _0x71c955=_0x2011de;_0x39fd02[_0x71c955(0x2458)](_0x1bc170);}}const _0x502b9a=_0x13ffbb;;_0x37d287[_0x313a4d(0x11c2)]=[_0x313a4d(0x10e8),'$q',_0x313a4d(0x1fe4),_0x313a4d(0x2296),'inboundroute',_0x313a4d(0x247f),'Auth',_0x313a4d(0x2514)];function _0x37d287(_0x32311a,_0x3220c0,_0x35e576,_0x31639d,_0x1b8fa3,_0x5bd7d9,_0x399b52,_0x36ae78){const _0x3e1d25=_0x313a4d,_0x360984=this;_0x360984[_0x3e1d25(0x2321)]=_0x399b52[_0x3e1d25(0xb12)](),_0x360984[_0x3e1d25(0xcef)]=[],_0x360984['title']='VOICE.EDIT_'+(_0x31639d[_0x3e1d25(0x8f2)]||_0x31639d[_0x3e1d25(0x1873)])['toUpperCase'](),_0x360984['custom']=angular[_0x3e1d25(0x235a)](_0x31639d),_0x360984[_0x3e1d25(0x2514)]=_0x36ae78,_0x360984[_0x3e1d25(0x855)]={};if(_0x360984[_0x3e1d25(0x1802)][_0x3e1d25(0x168a)])switch(_0x360984[_0x3e1d25(0x1802)]['appType']?_0x360984['custom'][_0x3e1d25(0x8f2)][_0x3e1d25(0x256e)]():_0x360984[_0x3e1d25(0x1802)][_0x3e1d25(0x1873)]['toLowerCase']()){case'custom':break;case'dialogflow':{const _0xfa59aa=_0x360984[_0x3e1d25(0x1802)]['appdata'][_0x3e1d25(0x10c8)](',');_0x360984['custom']['key']=_0xfa59aa[0x0],_0x360984[_0x3e1d25(0x1802)][_0x3e1d25(0x90b)]=_0xfa59aa[0x1],_0x360984['custom'][_0x3e1d25(0xaf3)]=_0xfa59aa[_0x3e1d25(0x1298)](0x2,_0xfa59aa['length'])[_0x3e1d25(0xb47)](',');}break;case'dialogflowv2':{const _0x31fe91=_0x360984['custom']['appdata'][_0x3e1d25(0x10c8)](',');_0x360984[_0x3e1d25(0x1802)][_0x3e1d25(0x153a)]=_0x31fe91[0x0],_0x360984[_0x3e1d25(0x1802)][_0x3e1d25(0x1392)]=_0x31fe91[0x1],_0x360984['custom'][_0x3e1d25(0x2217)]=_0x31fe91[0x2],_0x360984['custom'][_0x3e1d25(0x90b)]=_0x31fe91[0x3],_0x360984['custom'][_0x3e1d25(0xaf3)]=_0x31fe91[_0x3e1d25(0x1298)](0x4,_0x31fe91[_0x3e1d25(0x402)])[_0x3e1d25(0xb47)](',');}break;case _0x3e1d25(0x17d6):{const _0x4161ac=_0x360984[_0x3e1d25(0x1802)][_0x3e1d25(0x168a)]['split'](',');_0x360984[_0x3e1d25(0x1802)][_0x3e1d25(0x1651)]=_0x4161ac[0x0],_0x360984[_0x3e1d25(0x1802)][_0x3e1d25(0x252)]=_0x4161ac[0x1],_0x360984[_0x3e1d25(0x1802)]['lexregion']=_0x4161ac[0x2],_0x360984[_0x3e1d25(0x1802)][_0x3e1d25(0x8dd)]=_0x4161ac[0x3],_0x360984[_0x3e1d25(0x1802)][_0x3e1d25(0xaf3)]=_0x4161ac['slice'](0x4,_0x4161ac[_0x3e1d25(0x402)])[_0x3e1d25(0xb47)](',');}break;case _0x3e1d25(0x1713):{const _0x35ce33=_0x360984[_0x3e1d25(0x1802)][_0x3e1d25(0x168a)][_0x3e1d25(0x10c8)](',');_0x360984[_0x3e1d25(0x1802)][_0x3e1d25(0x583)]=isNaN(_0x35ce33[0x0])?_0x35ce33[0x0]:parseInt(_0x35ce33[0x0],0xa),_0x360984[_0x3e1d25(0x1802)]['text']=_0x35ce33[_0x3e1d25(0x1298)](0x1,_0x35ce33[_0x3e1d25(0x402)])[_0x3e1d25(0xb47)](',');}break;case'message':_0x360984[_0x3e1d25(0x1802)]['text']=_0x360984[_0x3e1d25(0x1802)]['appdata'];break;case _0x3e1d25(0x26ba):_0x360984[_0x3e1d25(0x1802)][_0x3e1d25(0x19eb)]=_0x360984['custom']['appdata'][_0x3e1d25(0x10c8)]('=')[0x0],_0x360984[_0x3e1d25(0x1802)][_0x3e1d25(0x175d)]=_0x360984[_0x3e1d25(0x1802)][_0x3e1d25(0x168a)][_0x3e1d25(0x10c8)]('=')[0x1];break;case _0x3e1d25(0x1ecb):_0x360984['custom'][_0x3e1d25(0x9e0)]=_0x360984['custom'][_0x3e1d25(0x168a)];break;default:{const _0x3b3044=_0x360984[_0x3e1d25(0x1802)]['appdata']['split'](',');_0x360984['custom'][_0x3e1d25(0x1873)]=_0x3f65c0()['isEmpty'](_0x3b3044[0x0])?_0x3b3044[0x0]:isNaN(_0x3b3044[0x0])?_0x3b3044[0x0]:parseInt(_0x3b3044[0x0],0xa),_0x360984[_0x3e1d25(0x1802)][_0x3e1d25(0x168a)]=_0x3f65c0()['isEmpty'](_0x3b3044[0x1])?_0x3b3044[0x1]:isNaN(_0x3b3044[0x1])?_0x3b3044[0x1]:parseInt(_0x3b3044[0x1],0xa);}break;}else{}_0x360984[_0x3e1d25(0x1802)][_0x3e1d25(0x1142)]&&_0x360984[_0x3e1d25(0x1802)][_0x3e1d25(0x1142)][_0x3e1d25(0x256e)]()==='outbound'&&_0x360984['custom'][_0x3e1d25(0x8f2)][_0x3e1d25(0x256e)]()==='outbounddial'&&(_0x360984[_0x3e1d25(0x1802)][_0x3e1d25(0x1e12)]=_0x360984[_0x3e1d25(0x1802)][_0x3e1d25(0x1d55)]?_0x360984['custom'][_0x3e1d25(0x1d55)][_0x3e1d25(0x10c8)]('$')[0x0]:undefined,_0x360984[_0x3e1d25(0x1802)][_0x3e1d25(0x1d43)]=_0x360984['custom']['callerID']?'CALLERID(all)='+_0x360984[_0x3e1d25(0x1802)][_0x3e1d25(0x11be)]:undefined);_0x360984[_0x3e1d25(0x2332)]=_0x14d7a7,_0x360984['closeDialog']=_0x5e78e4;function _0x14d7a7(){const _0x1a8c26=_0x3e1d25;_0x360984[_0x1a8c26(0xcef)]=[];const _0x1be083=[];_0x360984[_0x1a8c26(0x1802)]['type']&&_0x360984['custom'][_0x1a8c26(0x1142)][_0x1a8c26(0x256e)]()===_0x1a8c26(0xc9c)&&_0x360984[_0x1a8c26(0x1802)][_0x1a8c26(0x8f2)]==='outboundDial'&&(_0x360984[_0x1a8c26(0x1802)][_0x1a8c26(0x1d55)]=_0x1b8fa3[_0x1a8c26(0x1274)]?(_0x360984['custom'][_0x1a8c26(0x1e12)]||'')+'${EXTEN:'+_0x1b8fa3[_0x1a8c26(0x1274)]+'}':(_0x360984[_0x1a8c26(0x1802)][_0x1a8c26(0x1e12)]||'')+_0x1a8c26(0x20df),_0x1b8fa3[_0x1a8c26(0x1425)]!==_0x1a8c26(0x1642)?_0x360984['custom']['options'][_0x1a8c26(0x172b)](_0x1a8c26(0x1ea4))<0x0&&(_0x360984[_0x1a8c26(0x1802)][_0x1a8c26(0xa08)]+=_0x1a8c26(0x1ea4)):_0x360984[_0x1a8c26(0x1802)][_0x1a8c26(0xa08)]=_0x360984[_0x1a8c26(0x1802)][_0x1a8c26(0xa08)]['replace'](_0x1a8c26(0x1ea4),''));if(_0x360984[_0x1a8c26(0x1802)][_0x1a8c26(0x8f2)]&&_0x360984['custom'][_0x1a8c26(0x8f2)]===_0x1a8c26(0x1802)){}else switch((_0x360984[_0x1a8c26(0x1802)]['app']||_0x360984[_0x1a8c26(0x1802)][_0x1a8c26(0x8f2)])['toLowerCase']()){case _0x1a8c26(0x26ba):_0x360984[_0x1a8c26(0x1802)][_0x1a8c26(0x168a)]=_0x360984[_0x1a8c26(0x1802)][_0x1a8c26(0x19eb)]+'='+_0x360984[_0x1a8c26(0x1802)][_0x1a8c26(0x175d)];break;case _0x1a8c26(0x1802):break;default:_0x1be083[0x0]=_0x360984[_0x1a8c26(0x1802)]['app'],_0x1be083[0x1]=_0x360984['custom'][_0x1a8c26(0x168a)],_0x360984[_0x1a8c26(0x1802)][_0x1a8c26(0x168a)]=_0x1be083[_0x1a8c26(0xb47)](',');}_0x5e78e4(_0x360984['custom']);}function _0x5e78e4(_0x277726){_0x32311a['hide'](_0x277726);}}const _0x5848e5=_0x37d287;;_0x3791da[_0x313a4d(0x11c2)]=[_0x313a4d(0x10e8),'$q',_0x313a4d(0x1fe4),_0x313a4d(0x2296),_0x313a4d(0x1d70),_0x313a4d(0x247f),_0x313a4d(0xa87),_0x313a4d(0x2514)];function _0x3791da(_0x16b0da,_0xa1e696,_0x1b797b,_0x535386,_0x3d1ecd,_0x1ec209,_0x9fe12,_0x3d988d){const _0xed06ce=_0x313a4d,_0xd6d295=this;_0xd6d295[_0xed06ce(0x2321)]=_0x9fe12[_0xed06ce(0xb12)](),_0xd6d295['errors']=[],_0xd6d295['title']=_0xed06ce(0x1950)+(_0x535386[_0xed06ce(0x8f2)]||_0x535386['app'])[_0xed06ce(0x1c37)](),_0xd6d295[_0xed06ce(0xb98)]=angular[_0xed06ce(0x235a)](_0x535386),_0xd6d295[_0xed06ce(0x2514)]=_0x3d988d,_0xd6d295['hasModulePermissions']={};if(_0xd6d295[_0xed06ce(0xb98)][_0xed06ce(0x168a)])switch(_0xd6d295[_0xed06ce(0xb98)][_0xed06ce(0x8f2)]?_0xd6d295[_0xed06ce(0xb98)][_0xed06ce(0x8f2)]['toLowerCase']():_0xd6d295[_0xed06ce(0xb98)][_0xed06ce(0x1873)][_0xed06ce(0x256e)]()){case _0xed06ce(0x1802):break;case'dialogflow':{const _0x1a805e=_0xd6d295['dial'][_0xed06ce(0x168a)][_0xed06ce(0x10c8)](',');_0xd6d295[_0xed06ce(0xb98)][_0xed06ce(0x2293)]=_0x1a805e[0x0],_0xd6d295[_0xed06ce(0xb98)][_0xed06ce(0x90b)]=_0x1a805e[0x1],_0xd6d295[_0xed06ce(0xb98)][_0xed06ce(0xaf3)]=_0x1a805e[_0xed06ce(0x1298)](0x2,_0x1a805e[_0xed06ce(0x402)])[_0xed06ce(0xb47)](',');}break;case _0xed06ce(0xa46):{const _0x2f2660=_0xd6d295['dial']['appdata']['split'](',');_0xd6d295[_0xed06ce(0xb98)][_0xed06ce(0x153a)]=_0x2f2660[0x0],_0xd6d295[_0xed06ce(0xb98)][_0xed06ce(0x1392)]=_0x2f2660[0x1],_0xd6d295[_0xed06ce(0xb98)][_0xed06ce(0x2217)]=_0x2f2660[0x2],_0xd6d295['dial'][_0xed06ce(0x90b)]=_0x2f2660[0x3],_0xd6d295['dial'][_0xed06ce(0xaf3)]=_0x2f2660[_0xed06ce(0x1298)](0x4,_0x2f2660[_0xed06ce(0x402)])[_0xed06ce(0xb47)](',');}break;case _0xed06ce(0x17d6):{const _0x158522=_0xd6d295['dial']['appdata'][_0xed06ce(0x10c8)](',');_0xd6d295[_0xed06ce(0xb98)][_0xed06ce(0x1651)]=_0x158522[0x0],_0xd6d295[_0xed06ce(0xb98)][_0xed06ce(0x252)]=_0x158522[0x1],_0xd6d295[_0xed06ce(0xb98)][_0xed06ce(0x1039)]=_0x158522[0x2],_0xd6d295['dial'][_0xed06ce(0x8dd)]=_0x158522[0x3],_0xd6d295['dial'][_0xed06ce(0xaf3)]=_0x158522[_0xed06ce(0x1298)](0x4,_0x158522[_0xed06ce(0x402)])[_0xed06ce(0xb47)](',');}break;case _0xed06ce(0x1713):{const _0x1f2be0=_0xd6d295[_0xed06ce(0xb98)][_0xed06ce(0x168a)][_0xed06ce(0x10c8)](',');_0xd6d295[_0xed06ce(0xb98)][_0xed06ce(0x583)]=isNaN(_0x1f2be0[0x0])?_0x1f2be0[0x0]:parseInt(_0x1f2be0[0x0],0xa),_0xd6d295[_0xed06ce(0xb98)][_0xed06ce(0xa8d)]=_0x1f2be0[_0xed06ce(0x1298)](0x1,_0x1f2be0[_0xed06ce(0x402)])[_0xed06ce(0xb47)](',');}break;case _0xed06ce(0x7fd):_0xd6d295[_0xed06ce(0xb98)]['text']=_0xd6d295[_0xed06ce(0xb98)]['appdata'];break;case _0xed06ce(0x26ba):_0xd6d295[_0xed06ce(0xb98)][_0xed06ce(0x19eb)]=_0xd6d295[_0xed06ce(0xb98)][_0xed06ce(0x168a)]['split']('=')[0x0],_0xd6d295['dial'][_0xed06ce(0x175d)]=_0xd6d295[_0xed06ce(0xb98)][_0xed06ce(0x168a)]['split']('=')[0x1];break;case _0xed06ce(0x1ecb):_0xd6d295[_0xed06ce(0xb98)][_0xed06ce(0x9e0)]=_0xd6d295[_0xed06ce(0xb98)][_0xed06ce(0x168a)];break;default:{const _0x38c7ad=_0xd6d295[_0xed06ce(0xb98)][_0xed06ce(0x168a)][_0xed06ce(0x10c8)](',');_0xd6d295[_0xed06ce(0xb98)][_0xed06ce(0xbe1)]=_0x3f65c0()['isEmpty'](_0x38c7ad[0x0])?_0x38c7ad[0x0]:isNaN(_0x38c7ad[0x0])?_0x38c7ad[0x0]:parseInt(_0x38c7ad[0x0],0xa),_0xd6d295[_0xed06ce(0xb98)]['timeout']=_0x3f65c0()['isEmpty'](_0x38c7ad[0x1])?_0x38c7ad[0x1]:isNaN(_0x38c7ad[0x1])?_0x38c7ad[0x1]:parseInt(_0x38c7ad[0x1],0xa),_0xd6d295[_0xed06ce(0xb98)][_0xed06ce(0xa08)]=_0x3f65c0()[_0xed06ce(0x2635)](_0x38c7ad[0x2])?_0x38c7ad[0x2]:isNaN(_0x38c7ad[0x2])?_0x38c7ad[0x2]:parseInt(_0x38c7ad[0x2],0xa),_0xd6d295[_0xed06ce(0xb98)][_0xed06ce(0x20cc)]=_0x3f65c0()[_0xed06ce(0x2635)](_0x38c7ad[0x3])?_0x38c7ad[0x3]:isNaN(_0x38c7ad[0x3])?_0x38c7ad[0x3]:parseInt(_0x38c7ad[0x3],0xa);}break;}else{}_0xd6d295[_0xed06ce(0xb98)]['type']&&_0xd6d295[_0xed06ce(0xb98)][_0xed06ce(0x1142)]['toLowerCase']()==='outbound'&&_0xd6d295[_0xed06ce(0xb98)][_0xed06ce(0x8f2)][_0xed06ce(0x256e)]()===_0xed06ce(0x3bb)&&(_0xd6d295[_0xed06ce(0xb98)][_0xed06ce(0x1e12)]=_0xd6d295[_0xed06ce(0xb98)][_0xed06ce(0x1d55)]?_0xd6d295['dial'][_0xed06ce(0x1d55)][_0xed06ce(0x10c8)]('$')[0x0]:undefined,_0xd6d295[_0xed06ce(0xb98)]['callerId']=_0xd6d295['dial']['callerID']?_0xed06ce(0x1b60)+_0xd6d295[_0xed06ce(0xb98)][_0xed06ce(0x11be)]:undefined);_0xd6d295[_0xed06ce(0x2332)]=_0xbc0d3e,_0xd6d295[_0xed06ce(0x13f3)]=_0x3dc006;function _0xbc0d3e(){const _0x278404=_0xed06ce;_0xd6d295[_0x278404(0xcef)]=[];const _0x50a922=[];_0xd6d295[_0x278404(0xb98)][_0x278404(0x1142)]&&_0xd6d295[_0x278404(0xb98)][_0x278404(0x1142)][_0x278404(0x256e)]()===_0x278404(0xc9c)&&_0xd6d295['dial'][_0x278404(0x8f2)]==='outboundDial'&&(_0xd6d295[_0x278404(0xb98)][_0x278404(0x1d55)]=_0x3d1ecd['cutdigits']?(_0xd6d295['dial'][_0x278404(0x1e12)]||'')+_0x278404(0x2147)+_0x3d1ecd[_0x278404(0x1274)]+'}':(_0xd6d295['dial'][_0x278404(0x1e12)]||'')+_0x278404(0x20df),_0x3d1ecd[_0x278404(0x1425)]!=='none'?_0xd6d295[_0x278404(0xb98)][_0x278404(0xa08)][_0x278404(0x172b)]('U(xcally-mixmonitor-context)')<0x0&&(_0xd6d295[_0x278404(0xb98)][_0x278404(0xa08)]+='U(xcally-mixmonitor-context)'):_0xd6d295['dial']['options']=_0xd6d295[_0x278404(0xb98)][_0x278404(0xa08)]['replace']('U(xcally-mixmonitor-context)',''));if(_0xd6d295[_0x278404(0xb98)][_0x278404(0x8f2)]&&_0xd6d295[_0x278404(0xb98)][_0x278404(0x8f2)]===_0x278404(0x1802)){}else switch((_0xd6d295[_0x278404(0xb98)][_0x278404(0x1873)]||_0xd6d295['dial'][_0x278404(0x8f2)])['toLowerCase']()){case _0x278404(0x26ba):_0xd6d295[_0x278404(0xb98)][_0x278404(0x168a)]=_0xd6d295[_0x278404(0xb98)][_0x278404(0x19eb)]+'='+_0xd6d295[_0x278404(0xb98)][_0x278404(0x175d)];break;case _0x278404(0x1802):break;default:_0x50a922[0x0]=_0xd6d295[_0x278404(0xb98)][_0x278404(0xbe1)],_0x50a922[0x1]=_0xd6d295[_0x278404(0xb98)][_0x278404(0xa9c)],_0x50a922[0x2]=_0xd6d295[_0x278404(0xb98)][_0x278404(0xa08)],_0x50a922[0x3]=_0xd6d295['dial']['url'],_0xd6d295[_0x278404(0xb98)][_0x278404(0x168a)]=_0x50a922[_0x278404(0xb47)](',');}_0x3dc006(_0xd6d295[_0x278404(0xb98)]);}function _0x3dc006(_0x1b2f46){const _0x5394ba=_0xed06ce;_0x16b0da[_0x5394ba(0x2458)](_0x1b2f46);}}const _0x2b1770=_0x3791da;;_0x40c4fa[_0x313a4d(0x11c2)]=[_0x313a4d(0x10e8),'$q',_0x313a4d(0x1fe4),'inboundrouteApp',_0x313a4d(0x1d70),_0x313a4d(0x247f),_0x313a4d(0xa87),'crudPermissions'];function _0x40c4fa(_0x5f2b5e,_0x40bb14,_0x122fc1,_0x24de1c,_0x3f195b,_0x43a8d5,_0x196ea5,_0xd3cb61){const _0x2a46cf=_0x313a4d,_0x536e9b=this;_0x536e9b[_0x2a46cf(0x2321)]=_0x196ea5[_0x2a46cf(0xb12)](),_0x536e9b[_0x2a46cf(0xcef)]=[],_0x536e9b['title']=_0x2a46cf(0x1950)+(_0x24de1c[_0x2a46cf(0x8f2)]||_0x24de1c['app'])[_0x2a46cf(0x1c37)](),_0x536e9b[_0x2a46cf(0x1fb6)]=angular['copy'](_0x24de1c),_0x536e9b[_0x2a46cf(0x2514)]=_0xd3cb61,_0x536e9b['hasModulePermissions']={};if(_0x536e9b[_0x2a46cf(0x1fb6)][_0x2a46cf(0x168a)])switch(_0x536e9b[_0x2a46cf(0x1fb6)][_0x2a46cf(0x8f2)]?_0x536e9b[_0x2a46cf(0x1fb6)][_0x2a46cf(0x8f2)]['toLowerCase']():_0x536e9b['externaldial'][_0x2a46cf(0x1873)][_0x2a46cf(0x256e)]()){case _0x2a46cf(0x1802):break;case _0x2a46cf(0xeaa):{const _0x311c29=_0x536e9b[_0x2a46cf(0x1fb6)]['appdata'][_0x2a46cf(0x10c8)](',');_0x536e9b['externaldial'][_0x2a46cf(0x2293)]=_0x311c29[0x0],_0x536e9b[_0x2a46cf(0x1fb6)][_0x2a46cf(0x90b)]=_0x311c29[0x1],_0x536e9b['externaldial']['welcomemessage']=_0x311c29[_0x2a46cf(0x1298)](0x2,_0x311c29['length'])[_0x2a46cf(0xb47)](',');}break;case _0x2a46cf(0xa46):{const _0x1e4872=_0x536e9b['externaldial'][_0x2a46cf(0x168a)]['split'](',');_0x536e9b[_0x2a46cf(0x1fb6)]['projectId']=_0x1e4872[0x0],_0x536e9b['externaldial'][_0x2a46cf(0x1392)]=_0x1e4872[0x1],_0x536e9b[_0x2a46cf(0x1fb6)][_0x2a46cf(0x2217)]=_0x1e4872[0x2],_0x536e9b['externaldial'][_0x2a46cf(0x90b)]=_0x1e4872[0x3],_0x536e9b[_0x2a46cf(0x1fb6)][_0x2a46cf(0xaf3)]=_0x1e4872[_0x2a46cf(0x1298)](0x4,_0x1e4872[_0x2a46cf(0x402)])[_0x2a46cf(0xb47)](',');}break;case _0x2a46cf(0x17d6):{const _0x5654d6=_0x536e9b[_0x2a46cf(0x1fb6)][_0x2a46cf(0x168a)][_0x2a46cf(0x10c8)](',');_0x536e9b['externaldial'][_0x2a46cf(0x1651)]=_0x5654d6[0x0],_0x536e9b[_0x2a46cf(0x1fb6)]['secretaccesskey']=_0x5654d6[0x1],_0x536e9b[_0x2a46cf(0x1fb6)][_0x2a46cf(0x1039)]=_0x5654d6[0x2],_0x536e9b['externaldial'][_0x2a46cf(0x8dd)]=_0x5654d6[0x3],_0x536e9b['externaldial'][_0x2a46cf(0xaf3)]=_0x5654d6[_0x2a46cf(0x1298)](0x4,_0x5654d6['length'])[_0x2a46cf(0xb47)](',');}break;case'autoreply':{const _0x1e733a=_0x536e9b[_0x2a46cf(0x1fb6)][_0x2a46cf(0x168a)][_0x2a46cf(0x10c8)](',');_0x536e9b[_0x2a46cf(0x1fb6)][_0x2a46cf(0x583)]=isNaN(_0x1e733a[0x0])?_0x1e733a[0x0]:parseInt(_0x1e733a[0x0],0xa),_0x536e9b[_0x2a46cf(0x1fb6)][_0x2a46cf(0xa8d)]=_0x1e733a[_0x2a46cf(0x1298)](0x1,_0x1e733a[_0x2a46cf(0x402)])[_0x2a46cf(0xb47)](',');}break;case _0x2a46cf(0x7fd):_0x536e9b[_0x2a46cf(0x1fb6)]['text']=_0x536e9b['externaldial'][_0x2a46cf(0x168a)];break;case _0x2a46cf(0x26ba):_0x536e9b[_0x2a46cf(0x1fb6)][_0x2a46cf(0x19eb)]=_0x536e9b[_0x2a46cf(0x1fb6)][_0x2a46cf(0x168a)]['split']('=')[0x0],_0x536e9b[_0x2a46cf(0x1fb6)][_0x2a46cf(0x175d)]=_0x536e9b[_0x2a46cf(0x1fb6)][_0x2a46cf(0x168a)][_0x2a46cf(0x10c8)]('=')[0x1];break;case'agi':_0x536e9b[_0x2a46cf(0x1fb6)]['project']=_0x536e9b[_0x2a46cf(0x1fb6)]['appdata'];break;default:{const _0x187d7c=_0x536e9b[_0x2a46cf(0x1fb6)]['appdata'][_0x2a46cf(0x10c8)](',');_0x536e9b[_0x2a46cf(0x1fb6)][_0x2a46cf(0x279f)]=_0x187d7c[0x0][_0x2a46cf(0x10c8)]('/')[0x1],_0x536e9b[_0x2a46cf(0x1fb6)][_0x2a46cf(0x1d55)]=_0x187d7c[0x0]['split']('/')[0x2],_0x536e9b[_0x2a46cf(0x1fb6)][_0x2a46cf(0xa9c)]=_0x3f65c0()['isEmpty'](_0x187d7c[0x1])?_0x187d7c[0x1]:isNaN(_0x187d7c[0x1])?_0x187d7c[0x1]:parseInt(_0x187d7c[0x1],0xa),_0x536e9b[_0x2a46cf(0x1fb6)][_0x2a46cf(0xa08)]=_0x3f65c0()[_0x2a46cf(0x2635)](_0x187d7c[0x2])?_0x187d7c[0x2]:isNaN(_0x187d7c[0x2])?_0x187d7c[0x2]:parseInt(_0x187d7c[0x2],0xa),_0x536e9b[_0x2a46cf(0x1fb6)]['url']=_0x3f65c0()[_0x2a46cf(0x2635)](_0x187d7c[0x3])?_0x187d7c[0x3]:isNaN(_0x187d7c[0x3])?_0x187d7c[0x3]:parseInt(_0x187d7c[0x3],0xa);}break;}else{}_0x536e9b[_0x2a46cf(0x1fb6)][_0x2a46cf(0x1142)]&&_0x536e9b[_0x2a46cf(0x1fb6)][_0x2a46cf(0x1142)][_0x2a46cf(0x256e)]()===_0x2a46cf(0xc9c)&&_0x536e9b[_0x2a46cf(0x1fb6)]['appType'][_0x2a46cf(0x256e)]()===_0x2a46cf(0x3bb)&&(_0x536e9b['externaldial'][_0x2a46cf(0x1e12)]=_0x536e9b[_0x2a46cf(0x1fb6)][_0x2a46cf(0x1d55)]?_0x536e9b['externaldial'][_0x2a46cf(0x1d55)][_0x2a46cf(0x10c8)]('$')[0x0]:undefined,_0x536e9b['externaldial'][_0x2a46cf(0x1d43)]=_0x536e9b['externaldial'][_0x2a46cf(0x11be)]?_0x2a46cf(0x1b60)+_0x536e9b[_0x2a46cf(0x1fb6)]['callerID']:undefined);_0x536e9b[_0x2a46cf(0x2332)]=_0x45e260,_0x536e9b[_0x2a46cf(0x13f3)]=_0x42911c,_0x196ea5[_0x2a46cf(0x23e0)](_0x2a46cf(0x174b))?_0x43a8d5[_0x2a46cf(0x279f)][_0x2a46cf(0x16b4)]({'fields':_0x2a46cf(0x7a7),'sort':_0x2a46cf(0x19eb),'nolimit':_0x2a46cf(0x1185)})['$promise'][_0x2a46cf(0x146b)](function(_0x13cfc0){const _0x1cce74=_0x2a46cf;_0x536e9b[_0x1cce74(0x2433)]=_0x13cfc0['rows']||[];})['catch'](function(_0x427b46){const _0x3bac8c=_0x2a46cf;_0x122fc1[_0x3bac8c(0x1980)]({'title':_0x427b46[_0x3bac8c(0x107b)]?'API:'+_0x427b46[_0x3bac8c(0x107b)]+_0x3bac8c(0x1315)+_0x427b46['statusText']:_0x3bac8c(0xfc0),'msg':_0x427b46[_0x3bac8c(0x524)]?JSON[_0x3bac8c(0x10bb)](_0x427b46[_0x3bac8c(0x524)]):_0x427b46[_0x3bac8c(0xd5f)]()});}):_0x43a8d5[_0x2a46cf(0x279f)][_0x2a46cf(0x16b4)]({'fields':_0x2a46cf(0x7a7),'sort':_0x2a46cf(0x19eb),'nolimit':_0x2a46cf(0x1185)})[_0x2a46cf(0x2945)][_0x2a46cf(0x146b)](function(_0x5d1ec4){const _0x3ea68d=_0x2a46cf;_0x536e9b[_0x3ea68d(0x2433)]=_0x5d1ec4[_0x3ea68d(0x19c7)]||[];})[_0x2a46cf(0x146b)](function(){const _0x1e138e=_0x2a46cf;return _0x43a8d5['userProfileSection']['get']({'userProfileId':_0x536e9b[_0x1e138e(0x2321)][_0x1e138e(0x209a)],'sectionId':0x3f3})[_0x1e138e(0x2945)];})['then'](function(_0x232f7e){const _0x2a8278=_0x2a46cf,_0x42dca8=_0x232f7e&&_0x232f7e[_0x2a8278(0x19c7)]?_0x232f7e[_0x2a8278(0x19c7)][0x0]:null;if(!_0x42dca8){const _0x4636aa=[];let _0x5e97c8=null;_0x536e9b[_0x2a8278(0x1fb6)]&&(_0x5e97c8=_0x3f65c0()['find'](_0x536e9b[_0x2a8278(0x2433)],{'name':_0x536e9b[_0x2a8278(0x1fb6)][_0x2a8278(0x279f)]}));for(let _0x11c260=0x0;_0x11c260<_0x536e9b['trunks'][_0x2a8278(0x402)];_0x11c260++){_0x5e97c8&&_0x536e9b[_0x2a8278(0x2433)][_0x11c260]['id']===_0x5e97c8['id']&&(_0x536e9b['trunks'][_0x11c260][_0x2a8278(0x8ff)]=![],_0x4636aa[_0x2a8278(0x1f47)](_0x536e9b['trunks'][_0x11c260]));}_0x536e9b[_0x2a8278(0x2433)]=_0x4636aa;}else{if(!_0x42dca8[_0x2a8278(0x11d2)])return _0x43a8d5[_0x2a8278(0xdcc)]['get']({'sectionId':_0x42dca8['id']})[_0x2a8278(0x2945)][_0x2a8278(0x146b)](function(_0x162454){const _0x23aba0=_0x2a8278,_0x15178c=_0x3f65c0()[_0x23aba0(0x205)](_0x162454[_0x23aba0(0x19c7)],function(_0x664124){return _0x3f65c0()['find'](_0x536e9b['trunks'],{'id':_0x664124['resourceId']});});let _0x50bc78=null;_0x536e9b[_0x23aba0(0x1fb6)]&&(_0x50bc78=_0x3f65c0()[_0x23aba0(0xc84)](_0x536e9b[_0x23aba0(0x2433)],{'name':_0x536e9b[_0x23aba0(0x1fb6)]['trunk']}));if(_0x50bc78&&!_0x3f65c0()[_0x23aba0(0x1360)](_0x15178c,['id',_0x50bc78['id']])){const _0x56fa7b=_0x3f65c0()[_0x23aba0(0xc84)](_0x536e9b[_0x23aba0(0x2433)],{'id':_0x50bc78['id']});_0x56fa7b[_0x23aba0(0x8ff)]=![],_0x15178c[_0x23aba0(0x1f47)](_0x56fa7b);}_0x536e9b['trunks']=_0x15178c;});}})[_0x2a46cf(0x129e)](function(_0x1e5812){const _0x5026d9=_0x2a46cf;_0x122fc1[_0x5026d9(0x1980)]({'title':_0x1e5812[_0x5026d9(0x107b)]?_0x5026d9(0x262a)+_0x1e5812[_0x5026d9(0x107b)]+'\x20-\x20'+_0x1e5812[_0x5026d9(0x167f)]:'SYSTEM:GETtrunks','msg':_0x1e5812[_0x5026d9(0x524)]?JSON[_0x5026d9(0x10bb)](_0x1e5812['data']):_0x1e5812[_0x5026d9(0xd5f)]()});});function _0x45e260(){const _0x527848=_0x2a46cf;_0x536e9b['errors']=[];const _0x1d1bb2=[];_0x536e9b[_0x527848(0x1fb6)][_0x527848(0x1142)]&&_0x536e9b['externaldial'][_0x527848(0x1142)][_0x527848(0x256e)]()===_0x527848(0xc9c)&&_0x536e9b['externaldial']['appType']===_0x527848(0x118b)&&(_0x536e9b[_0x527848(0x1fb6)]['phone']=_0x3f195b[_0x527848(0x1274)]?(_0x536e9b[_0x527848(0x1fb6)][_0x527848(0x1e12)]||'')+_0x527848(0x2147)+_0x3f195b['cutdigits']+'}':(_0x536e9b['externaldial'][_0x527848(0x1e12)]||'')+_0x527848(0x20df),_0x3f195b[_0x527848(0x1425)]!==_0x527848(0x1642)?_0x536e9b[_0x527848(0x1fb6)]['options'][_0x527848(0x172b)](_0x527848(0x1ea4))<0x0&&(_0x536e9b['externaldial'][_0x527848(0xa08)]+=_0x527848(0x1ea4)):_0x536e9b[_0x527848(0x1fb6)][_0x527848(0xa08)]=_0x536e9b[_0x527848(0x1fb6)][_0x527848(0xa08)][_0x527848(0x5f4)]('U(xcally-mixmonitor-context)',''));if(_0x536e9b[_0x527848(0x1fb6)][_0x527848(0x8f2)]&&_0x536e9b[_0x527848(0x1fb6)]['appType']===_0x527848(0x1802)){}else switch((_0x536e9b[_0x527848(0x1fb6)][_0x527848(0x1873)]||_0x536e9b['externaldial'][_0x527848(0x8f2)])[_0x527848(0x256e)]()){case _0x527848(0x26ba):_0x536e9b[_0x527848(0x1fb6)][_0x527848(0x168a)]=_0x536e9b[_0x527848(0x1fb6)][_0x527848(0x19eb)]+'='+_0x536e9b[_0x527848(0x1fb6)][_0x527848(0x175d)];break;case _0x527848(0x1802):break;default:_0x1d1bb2[0x0]=['SIP',_0x536e9b[_0x527848(0x1fb6)][_0x527848(0x279f)],_0x536e9b[_0x527848(0x1fb6)][_0x527848(0x1d55)]][_0x527848(0xb47)]('/'),_0x1d1bb2[0x1]=_0x536e9b[_0x527848(0x1fb6)][_0x527848(0xa9c)],_0x1d1bb2[0x2]=_0x536e9b['externaldial'][_0x527848(0xa08)],_0x1d1bb2[0x3]=_0x536e9b[_0x527848(0x1fb6)]['url'],_0x536e9b[_0x527848(0x1fb6)][_0x527848(0x168a)]=_0x1d1bb2['join'](',');}_0x42911c(_0x536e9b[_0x527848(0x1fb6)]);}function _0x42911c(_0x18f2ac){_0x5f2b5e['hide'](_0x18f2ac);}}const _0x2fef2f=_0x40c4fa;;_0x38594d['$inject']=[_0x313a4d(0x10e8),'$q',_0x313a4d(0x1fe4),_0x313a4d(0x2296),_0x313a4d(0x1d70),_0x313a4d(0x247f),_0x313a4d(0xa87),'crudPermissions'];function _0x38594d(_0xf0d686,_0x2abdc7,_0x527e3f,_0x4a6545,_0x450782,_0x453c0d,_0x849ca6,_0x1be5be){const _0x2a019a=_0x313a4d,_0x448128=this;_0x448128[_0x2a019a(0x2321)]=_0x849ca6[_0x2a019a(0xb12)](),_0x448128[_0x2a019a(0xcef)]=[],_0x448128[_0x2a019a(0x1189)]=_0x2a019a(0x1950)+(_0x4a6545['appType']||_0x4a6545[_0x2a019a(0x1873)])['toUpperCase'](),_0x448128[_0x2a019a(0x151b)]=angular[_0x2a019a(0x235a)](_0x4a6545),_0x448128[_0x2a019a(0x2514)]=_0x1be5be,_0x448128[_0x2a019a(0x855)]={};if(_0x448128[_0x2a019a(0x151b)][_0x2a019a(0x168a)])switch(_0x448128[_0x2a019a(0x151b)][_0x2a019a(0x8f2)]?_0x448128[_0x2a019a(0x151b)][_0x2a019a(0x8f2)]['toLowerCase']():_0x448128[_0x2a019a(0x151b)][_0x2a019a(0x1873)][_0x2a019a(0x256e)]()){case _0x2a019a(0x1802):break;case'dialogflow':{const _0x533dbf=_0x448128[_0x2a019a(0x151b)][_0x2a019a(0x168a)][_0x2a019a(0x10c8)](',');_0x448128[_0x2a019a(0x151b)][_0x2a019a(0x2293)]=_0x533dbf[0x0],_0x448128['goto']['language']=_0x533dbf[0x1],_0x448128['goto'][_0x2a019a(0xaf3)]=_0x533dbf[_0x2a019a(0x1298)](0x2,_0x533dbf[_0x2a019a(0x402)])[_0x2a019a(0xb47)](',');}break;case _0x2a019a(0xa46):{const _0x5e1e01=_0x448128[_0x2a019a(0x151b)][_0x2a019a(0x168a)][_0x2a019a(0x10c8)](',');_0x448128[_0x2a019a(0x151b)]['projectId']=_0x5e1e01[0x0],_0x448128[_0x2a019a(0x151b)][_0x2a019a(0x1392)]=_0x5e1e01[0x1],_0x448128['goto']['privateKey']=_0x5e1e01[0x2],_0x448128[_0x2a019a(0x151b)][_0x2a019a(0x90b)]=_0x5e1e01[0x3],_0x448128['goto'][_0x2a019a(0xaf3)]=_0x5e1e01[_0x2a019a(0x1298)](0x4,_0x5e1e01[_0x2a019a(0x402)])['join'](',');}break;case'amazonlex':{const _0x415243=_0x448128[_0x2a019a(0x151b)][_0x2a019a(0x168a)][_0x2a019a(0x10c8)](',');_0x448128[_0x2a019a(0x151b)][_0x2a019a(0x1651)]=_0x415243[0x0],_0x448128[_0x2a019a(0x151b)][_0x2a019a(0x252)]=_0x415243[0x1],_0x448128[_0x2a019a(0x151b)][_0x2a019a(0x1039)]=_0x415243[0x2],_0x448128[_0x2a019a(0x151b)][_0x2a019a(0x8dd)]=_0x415243[0x3],_0x448128['goto'][_0x2a019a(0xaf3)]=_0x415243[_0x2a019a(0x1298)](0x4,_0x415243[_0x2a019a(0x402)])[_0x2a019a(0xb47)](',');}break;case _0x2a019a(0x1713):{const _0x3b58e8=_0x448128[_0x2a019a(0x151b)][_0x2a019a(0x168a)][_0x2a019a(0x10c8)](',');_0x448128[_0x2a019a(0x151b)][_0x2a019a(0x583)]=isNaN(_0x3b58e8[0x0])?_0x3b58e8[0x0]:parseInt(_0x3b58e8[0x0],0xa),_0x448128[_0x2a019a(0x151b)][_0x2a019a(0xa8d)]=_0x3b58e8['slice'](0x1,_0x3b58e8[_0x2a019a(0x402)])[_0x2a019a(0xb47)](',');}break;case'message':_0x448128[_0x2a019a(0x151b)]['text']=_0x448128['goto'][_0x2a019a(0x168a)];break;case _0x2a019a(0x26ba):_0x448128[_0x2a019a(0x151b)][_0x2a019a(0x19eb)]=_0x448128[_0x2a019a(0x151b)][_0x2a019a(0x168a)]['split']('=')[0x0],_0x448128[_0x2a019a(0x151b)][_0x2a019a(0x175d)]=_0x448128['goto']['appdata'][_0x2a019a(0x10c8)]('=')[0x1];break;case _0x2a019a(0x1ecb):_0x448128[_0x2a019a(0x151b)][_0x2a019a(0x9e0)]=_0x448128[_0x2a019a(0x151b)]['appdata'];break;default:{const _0x3d81b8=_0x448128[_0x2a019a(0x151b)][_0x2a019a(0x168a)]['split'](',');_0x448128[_0x2a019a(0x151b)][_0x2a019a(0x1ac1)]=_0x3f65c0()[_0x2a019a(0x2635)](_0x3d81b8[0x0])?_0x3d81b8[0x0]:isNaN(_0x3d81b8[0x0])?_0x3d81b8[0x0]:parseInt(_0x3d81b8[0x0],0xa),_0x448128[_0x2a019a(0x151b)][_0x2a019a(0x1bc6)]=_0x3f65c0()[_0x2a019a(0x2635)](_0x3d81b8[0x1])?_0x3d81b8[0x1]:isNaN(_0x3d81b8[0x1])?_0x3d81b8[0x1]:parseInt(_0x3d81b8[0x1],0xa),_0x448128[_0x2a019a(0x151b)]['priority']=_0x3f65c0()[_0x2a019a(0x2635)](_0x3d81b8[0x2])?_0x3d81b8[0x2]:isNaN(_0x3d81b8[0x2])?_0x3d81b8[0x2]:parseInt(_0x3d81b8[0x2],0xa);}break;}else{}_0x448128[_0x2a019a(0x151b)][_0x2a019a(0x1142)]&&_0x448128[_0x2a019a(0x151b)][_0x2a019a(0x1142)]['toLowerCase']()==='outbound'&&_0x448128[_0x2a019a(0x151b)][_0x2a019a(0x8f2)][_0x2a019a(0x256e)]()===_0x2a019a(0x3bb)&&(_0x448128[_0x2a019a(0x151b)][_0x2a019a(0x1e12)]=_0x448128[_0x2a019a(0x151b)][_0x2a019a(0x1d55)]?_0x448128[_0x2a019a(0x151b)][_0x2a019a(0x1d55)][_0x2a019a(0x10c8)]('$')[0x0]:undefined,_0x448128[_0x2a019a(0x151b)]['callerId']=_0x448128[_0x2a019a(0x151b)][_0x2a019a(0x11be)]?_0x2a019a(0x1b60)+_0x448128['goto'][_0x2a019a(0x11be)]:undefined);_0x448128[_0x2a019a(0x2332)]=_0x2111e8,_0x448128[_0x2a019a(0x13f3)]=_0x34d3b4,_0x849ca6[_0x2a019a(0x23e0)]('admin')?_0x453c0d['voiceContext'][_0x2a019a(0x16b4)]({'fields':_0x2a019a(0x7a7),'sort':_0x2a019a(0x19eb),'nolimit':_0x2a019a(0x1185)})['$promise'][_0x2a019a(0x146b)](function(_0x522f1f){const _0x15838f=_0x2a019a;_0x448128['contexts']=_0x522f1f[_0x15838f(0x19c7)]||[];})[_0x2a019a(0x129e)](function(_0x487a3b){const _0x4b6aed=_0x2a019a;_0x527e3f['error']({'title':_0x487a3b[_0x4b6aed(0x107b)]?_0x4b6aed(0x262a)+_0x487a3b[_0x4b6aed(0x107b)]+_0x4b6aed(0x1315)+_0x487a3b[_0x4b6aed(0x167f)]:_0x4b6aed(0x2742),'msg':_0x487a3b[_0x4b6aed(0x524)]?JSON[_0x4b6aed(0x10bb)](_0x487a3b[_0x4b6aed(0x524)]):_0x487a3b['toString']()});}):_0x453c0d[_0x2a019a(0x1b82)][_0x2a019a(0x16b4)]({'fields':_0x2a019a(0x7a7),'sort':_0x2a019a(0x19eb),'nolimit':_0x2a019a(0x1185)})['$promise']['then'](function(_0x43186d){const _0x1ebccc=_0x2a019a;_0x448128['contexts']=_0x43186d[_0x1ebccc(0x19c7)]||[];})[_0x2a019a(0x146b)](function(){const _0x728925=_0x2a019a;return _0x453c0d[_0x728925(0x1366)][_0x728925(0x16b4)]({'userProfileId':_0x448128[_0x728925(0x2321)][_0x728925(0x209a)],'sectionId':0x195})[_0x728925(0x2945)];})[_0x2a019a(0x146b)](function(_0x674cf7){const _0x8776e0=_0x2a019a,_0x4d8b54=_0x674cf7&&_0x674cf7[_0x8776e0(0x19c7)]?_0x674cf7['rows'][0x0]:null;if(!_0x4d8b54)return _0x453c0d[_0x8776e0(0x1b82)][_0x8776e0(0x16b4)]({'fields':'id,name','sort':'name','nolimit':_0x8776e0(0x1185),'defaultEntry':0x1})[_0x8776e0(0x2945)]['then'](function(_0x501a58){const _0x3488c2=_0x8776e0;_0x448128[_0x3488c2(0xfe9)]=_0x501a58['rows']||[];});else{if(!_0x4d8b54[_0x8776e0(0x11d2)])return _0x453c0d[_0x8776e0(0xdcc)][_0x8776e0(0x16b4)]({'sectionId':_0x4d8b54['id']})[_0x8776e0(0x2945)][_0x8776e0(0x146b)](function(_0x5ac674){const _0x25d176=_0x8776e0,_0x3f9640=_0x3f65c0()['map'](_0x5ac674['rows'],function(_0xa549c8){const _0x345728=a0_0x3bb9;return _0x3f65c0()[_0x345728(0xc84)](_0x448128[_0x345728(0xfe9)],{'id':_0xa549c8[_0x345728(0x18b8)]});});let _0x4d2d28=null;_0x448128[_0x25d176(0x151b)]&&(_0x4d2d28=_0x3f65c0()[_0x25d176(0xc84)](_0x448128[_0x25d176(0xfe9)],{'name':_0x448128['goto']['context']}));if(_0x4d2d28&&!_0x3f65c0()['some'](_0x3f9640,['id',_0x4d2d28['id']])){const _0x52d4f9=_0x3f65c0()[_0x25d176(0xc84)](_0x448128[_0x25d176(0xfe9)],{'id':_0x4d2d28['id']});_0x52d4f9[_0x25d176(0x8ff)]=![],_0x3f9640[_0x25d176(0x1f47)](_0x52d4f9);}_0x448128['contexts']=_0x3f9640;});}})[_0x2a019a(0x129e)](function(_0x2e7485){const _0x2fa9e9=_0x2a019a;_0x527e3f[_0x2fa9e9(0x1980)]({'title':_0x2e7485['status']?_0x2fa9e9(0x262a)+_0x2e7485[_0x2fa9e9(0x107b)]+_0x2fa9e9(0x1315)+_0x2e7485['statusText']:'SYSTEM:GETcontexts','msg':_0x2e7485[_0x2fa9e9(0x524)]?JSON[_0x2fa9e9(0x10bb)](_0x2e7485[_0x2fa9e9(0x524)]):_0x2e7485[_0x2fa9e9(0xd5f)]()});});function _0x2111e8(){const _0x81d1fe=_0x2a019a;_0x448128[_0x81d1fe(0xcef)]=[];const _0x4ebf61=[];_0x448128['goto'][_0x81d1fe(0x1142)]&&_0x448128[_0x81d1fe(0x151b)][_0x81d1fe(0x1142)]['toLowerCase']()===_0x81d1fe(0xc9c)&&_0x448128['goto'][_0x81d1fe(0x8f2)]===_0x81d1fe(0x118b)&&(_0x448128[_0x81d1fe(0x151b)][_0x81d1fe(0x1d55)]=_0x450782[_0x81d1fe(0x1274)]?(_0x448128['goto'][_0x81d1fe(0x1e12)]||'')+_0x81d1fe(0x2147)+_0x450782['cutdigits']+'}':(_0x448128[_0x81d1fe(0x151b)][_0x81d1fe(0x1e12)]||'')+_0x81d1fe(0x20df),_0x450782[_0x81d1fe(0x1425)]!==_0x81d1fe(0x1642)?_0x448128[_0x81d1fe(0x151b)]['options'][_0x81d1fe(0x172b)](_0x81d1fe(0x1ea4))<0x0&&(_0x448128['goto'][_0x81d1fe(0xa08)]+=_0x81d1fe(0x1ea4)):_0x448128['goto'][_0x81d1fe(0xa08)]=_0x448128[_0x81d1fe(0x151b)]['options']['replace'](_0x81d1fe(0x1ea4),''));if(_0x448128['goto']['appType']&&_0x448128[_0x81d1fe(0x151b)]['appType']===_0x81d1fe(0x1802)){}else switch((_0x448128[_0x81d1fe(0x151b)][_0x81d1fe(0x1873)]||_0x448128[_0x81d1fe(0x151b)][_0x81d1fe(0x8f2)])[_0x81d1fe(0x256e)]()){case _0x81d1fe(0x26ba):_0x448128[_0x81d1fe(0x151b)][_0x81d1fe(0x168a)]=_0x448128['goto'][_0x81d1fe(0x19eb)]+'='+_0x448128['goto'][_0x81d1fe(0x175d)];break;case _0x81d1fe(0x1802):break;default:_0x4ebf61[0x0]=_0x448128[_0x81d1fe(0x151b)][_0x81d1fe(0x1ac1)],_0x4ebf61[0x1]=_0x448128['goto'][_0x81d1fe(0x1bc6)],_0x4ebf61[0x2]=_0x448128[_0x81d1fe(0x151b)][_0x81d1fe(0xa6a)],_0x448128[_0x81d1fe(0x151b)][_0x81d1fe(0x168a)]=_0x4ebf61['join'](',');}_0x34d3b4(_0x448128[_0x81d1fe(0x151b)]);}function _0x34d3b4(_0x473101){const _0xfa6f12=_0x2a019a;_0xf0d686[_0xfa6f12(0x2458)](_0x473101);}}const _0x2661c3=_0x38594d;;_0x356084['$inject']=['$mdDialog','$q',_0x313a4d(0x1fe4),_0x313a4d(0x2296),_0x313a4d(0x1d70),_0x313a4d(0x247f),_0x313a4d(0xa87),'crudPermissions'];function _0x356084(_0x182b2c,_0x41851a,_0x14dcd9,_0x1f31d6,_0x2a22ab,_0x2e4b98,_0x16203a,_0x3a39e7){const _0x1bbd87=_0x313a4d,_0x596afb=this;_0x596afb[_0x1bbd87(0x2321)]=_0x16203a[_0x1bbd87(0xb12)](),_0x596afb[_0x1bbd87(0xcef)]=[],_0x596afb[_0x1bbd87(0x1189)]='VOICE.EDIT_'+(_0x1f31d6['appType']||_0x1f31d6[_0x1bbd87(0x1873)])['toUpperCase'](),_0x596afb['hangup']=angular['copy'](_0x1f31d6),_0x596afb[_0x1bbd87(0x2514)]=_0x3a39e7,_0x596afb[_0x1bbd87(0x855)]={};if(_0x596afb[_0x1bbd87(0x1dbf)][_0x1bbd87(0x168a)])switch(_0x596afb['hangup']['appType']?_0x596afb[_0x1bbd87(0x1dbf)]['appType'][_0x1bbd87(0x256e)]():_0x596afb['hangup'][_0x1bbd87(0x1873)][_0x1bbd87(0x256e)]()){case _0x1bbd87(0x1802):break;case _0x1bbd87(0xeaa):{const _0x2b1b00=_0x596afb[_0x1bbd87(0x1dbf)][_0x1bbd87(0x168a)][_0x1bbd87(0x10c8)](',');_0x596afb['hangup'][_0x1bbd87(0x2293)]=_0x2b1b00[0x0],_0x596afb[_0x1bbd87(0x1dbf)][_0x1bbd87(0x90b)]=_0x2b1b00[0x1],_0x596afb[_0x1bbd87(0x1dbf)][_0x1bbd87(0xaf3)]=_0x2b1b00[_0x1bbd87(0x1298)](0x2,_0x2b1b00[_0x1bbd87(0x402)])[_0x1bbd87(0xb47)](',');}break;case _0x1bbd87(0xa46):{const _0xa92a90=_0x596afb['hangup']['appdata'][_0x1bbd87(0x10c8)](',');_0x596afb[_0x1bbd87(0x1dbf)][_0x1bbd87(0x153a)]=_0xa92a90[0x0],_0x596afb[_0x1bbd87(0x1dbf)][_0x1bbd87(0x1392)]=_0xa92a90[0x1],_0x596afb['hangup']['privateKey']=_0xa92a90[0x2],_0x596afb[_0x1bbd87(0x1dbf)][_0x1bbd87(0x90b)]=_0xa92a90[0x3],_0x596afb[_0x1bbd87(0x1dbf)][_0x1bbd87(0xaf3)]=_0xa92a90[_0x1bbd87(0x1298)](0x4,_0xa92a90[_0x1bbd87(0x402)])[_0x1bbd87(0xb47)](',');}break;case _0x1bbd87(0x17d6):{const _0x394ee2=_0x596afb[_0x1bbd87(0x1dbf)][_0x1bbd87(0x168a)][_0x1bbd87(0x10c8)](',');_0x596afb['hangup'][_0x1bbd87(0x1651)]=_0x394ee2[0x0],_0x596afb['hangup']['secretaccesskey']=_0x394ee2[0x1],_0x596afb[_0x1bbd87(0x1dbf)][_0x1bbd87(0x1039)]=_0x394ee2[0x2],_0x596afb['hangup'][_0x1bbd87(0x8dd)]=_0x394ee2[0x3],_0x596afb[_0x1bbd87(0x1dbf)][_0x1bbd87(0xaf3)]=_0x394ee2['slice'](0x4,_0x394ee2[_0x1bbd87(0x402)])['join'](',');}break;case _0x1bbd87(0x1713):{const _0x2aa025=_0x596afb[_0x1bbd87(0x1dbf)]['appdata'][_0x1bbd87(0x10c8)](',');_0x596afb[_0x1bbd87(0x1dbf)][_0x1bbd87(0x583)]=isNaN(_0x2aa025[0x0])?_0x2aa025[0x0]:parseInt(_0x2aa025[0x0],0xa),_0x596afb[_0x1bbd87(0x1dbf)][_0x1bbd87(0xa8d)]=_0x2aa025[_0x1bbd87(0x1298)](0x1,_0x2aa025['length'])['join'](',');}break;case _0x1bbd87(0x7fd):_0x596afb[_0x1bbd87(0x1dbf)]['text']=_0x596afb[_0x1bbd87(0x1dbf)][_0x1bbd87(0x168a)];break;case _0x1bbd87(0x26ba):_0x596afb[_0x1bbd87(0x1dbf)]['name']=_0x596afb[_0x1bbd87(0x1dbf)][_0x1bbd87(0x168a)]['split']('=')[0x0],_0x596afb['hangup'][_0x1bbd87(0x175d)]=_0x596afb[_0x1bbd87(0x1dbf)][_0x1bbd87(0x168a)][_0x1bbd87(0x10c8)]('=')[0x1];break;case'agi':_0x596afb[_0x1bbd87(0x1dbf)]['project']=_0x596afb[_0x1bbd87(0x1dbf)][_0x1bbd87(0x168a)];break;default:{const _0x22f2b0=_0x596afb['hangup'][_0x1bbd87(0x168a)][_0x1bbd87(0x10c8)](',');_0x596afb[_0x1bbd87(0x1dbf)][_0x1bbd87(0x168a)]=_0x3f65c0()[_0x1bbd87(0x2635)](_0x22f2b0[0x0])?_0x22f2b0[0x0]:isNaN(_0x22f2b0[0x0])?_0x22f2b0[0x0]:parseInt(_0x22f2b0[0x0],0xa);}break;}else{}_0x596afb['hangup']['type']&&_0x596afb[_0x1bbd87(0x1dbf)]['type']['toLowerCase']()===_0x1bbd87(0xc9c)&&_0x596afb[_0x1bbd87(0x1dbf)][_0x1bbd87(0x8f2)][_0x1bbd87(0x256e)]()==='outbounddial'&&(_0x596afb[_0x1bbd87(0x1dbf)][_0x1bbd87(0x1e12)]=_0x596afb['hangup'][_0x1bbd87(0x1d55)]?_0x596afb[_0x1bbd87(0x1dbf)]['phone'][_0x1bbd87(0x10c8)]('$')[0x0]:undefined,_0x596afb[_0x1bbd87(0x1dbf)][_0x1bbd87(0x1d43)]=_0x596afb[_0x1bbd87(0x1dbf)][_0x1bbd87(0x11be)]?_0x1bbd87(0x1b60)+_0x596afb[_0x1bbd87(0x1dbf)][_0x1bbd87(0x11be)]:undefined);_0x596afb[_0x1bbd87(0x2332)]=_0x332258,_0x596afb[_0x1bbd87(0x13f3)]=_0x118ad0;function _0x332258(){const _0x2c3ccb=_0x1bbd87;_0x596afb[_0x2c3ccb(0xcef)]=[];const _0x39209f=[];_0x596afb[_0x2c3ccb(0x1dbf)][_0x2c3ccb(0x1142)]&&_0x596afb['hangup']['type'][_0x2c3ccb(0x256e)]()===_0x2c3ccb(0xc9c)&&_0x596afb[_0x2c3ccb(0x1dbf)][_0x2c3ccb(0x8f2)]===_0x2c3ccb(0x118b)&&(_0x596afb[_0x2c3ccb(0x1dbf)]['phone']=_0x2a22ab[_0x2c3ccb(0x1274)]?(_0x596afb[_0x2c3ccb(0x1dbf)][_0x2c3ccb(0x1e12)]||'')+_0x2c3ccb(0x2147)+_0x2a22ab[_0x2c3ccb(0x1274)]+'}':(_0x596afb[_0x2c3ccb(0x1dbf)][_0x2c3ccb(0x1e12)]||'')+_0x2c3ccb(0x20df),_0x2a22ab[_0x2c3ccb(0x1425)]!==_0x2c3ccb(0x1642)?_0x596afb['hangup'][_0x2c3ccb(0xa08)][_0x2c3ccb(0x172b)](_0x2c3ccb(0x1ea4))<0x0&&(_0x596afb[_0x2c3ccb(0x1dbf)]['options']+=_0x2c3ccb(0x1ea4)):_0x596afb[_0x2c3ccb(0x1dbf)][_0x2c3ccb(0xa08)]=_0x596afb[_0x2c3ccb(0x1dbf)]['options'][_0x2c3ccb(0x5f4)](_0x2c3ccb(0x1ea4),''));if(_0x596afb[_0x2c3ccb(0x1dbf)][_0x2c3ccb(0x8f2)]&&_0x596afb[_0x2c3ccb(0x1dbf)][_0x2c3ccb(0x8f2)]==='custom'){}else switch((_0x596afb[_0x2c3ccb(0x1dbf)][_0x2c3ccb(0x1873)]||_0x596afb[_0x2c3ccb(0x1dbf)][_0x2c3ccb(0x8f2)])[_0x2c3ccb(0x256e)]()){case _0x2c3ccb(0x26ba):_0x596afb[_0x2c3ccb(0x1dbf)]['appdata']=_0x596afb[_0x2c3ccb(0x1dbf)][_0x2c3ccb(0x19eb)]+'='+_0x596afb[_0x2c3ccb(0x1dbf)][_0x2c3ccb(0x175d)];break;case'custom':break;default:_0x39209f[0x0]=_0x596afb[_0x2c3ccb(0x1dbf)][_0x2c3ccb(0x168a)],_0x596afb[_0x2c3ccb(0x1dbf)]['appdata']=_0x39209f[_0x2c3ccb(0xb47)](',');}_0x118ad0(_0x596afb[_0x2c3ccb(0x1dbf)]);}function _0x118ad0(_0x4e25f5){_0x182b2c['hide'](_0x4e25f5);}}const _0x5dfcb=_0x356084;;_0x1cf117['$inject']=['$mdDialog','$q',_0x313a4d(0x1fe4),_0x313a4d(0x2296),_0x313a4d(0x1d70),_0x313a4d(0x247f),_0x313a4d(0xa87),_0x313a4d(0x2514)];function _0x1cf117(_0xb5c95e,_0x26c25e,_0x13b6a6,_0x2203de,_0x5691e0,_0x333196,_0x678259,_0x1d6f12){const _0x4b4504=_0x313a4d,_0xa8a69f=this;_0xa8a69f[_0x4b4504(0x2321)]=_0x678259['getCurrentUser'](),_0xa8a69f['errors']=[],_0xa8a69f[_0x4b4504(0x1189)]='VOICE.EDIT_'+(_0x2203de[_0x4b4504(0x8f2)]||_0x2203de[_0x4b4504(0x1873)])[_0x4b4504(0x1c37)](),_0xa8a69f[_0x4b4504(0x3bd)]=angular[_0x4b4504(0x235a)](_0x2203de),_0xa8a69f['crudPermissions']=_0x1d6f12,_0xa8a69f[_0x4b4504(0x855)]={};if(_0xa8a69f[_0x4b4504(0x3bd)][_0x4b4504(0x168a)])switch(_0xa8a69f['internaldial'][_0x4b4504(0x8f2)]?_0xa8a69f[_0x4b4504(0x3bd)][_0x4b4504(0x8f2)][_0x4b4504(0x256e)]():_0xa8a69f['internaldial'][_0x4b4504(0x1873)][_0x4b4504(0x256e)]()){case _0x4b4504(0x1802):break;case _0x4b4504(0xeaa):{const _0x3bc0e2=_0xa8a69f[_0x4b4504(0x3bd)]['appdata'][_0x4b4504(0x10c8)](',');_0xa8a69f[_0x4b4504(0x3bd)][_0x4b4504(0x2293)]=_0x3bc0e2[0x0],_0xa8a69f['internaldial']['language']=_0x3bc0e2[0x1],_0xa8a69f[_0x4b4504(0x3bd)][_0x4b4504(0xaf3)]=_0x3bc0e2[_0x4b4504(0x1298)](0x2,_0x3bc0e2['length'])[_0x4b4504(0xb47)](',');}break;case _0x4b4504(0xa46):{const _0x1be4c6=_0xa8a69f[_0x4b4504(0x3bd)][_0x4b4504(0x168a)][_0x4b4504(0x10c8)](',');_0xa8a69f[_0x4b4504(0x3bd)][_0x4b4504(0x153a)]=_0x1be4c6[0x0],_0xa8a69f[_0x4b4504(0x3bd)]['clientEmail']=_0x1be4c6[0x1],_0xa8a69f[_0x4b4504(0x3bd)][_0x4b4504(0x2217)]=_0x1be4c6[0x2],_0xa8a69f[_0x4b4504(0x3bd)][_0x4b4504(0x90b)]=_0x1be4c6[0x3],_0xa8a69f[_0x4b4504(0x3bd)][_0x4b4504(0xaf3)]=_0x1be4c6[_0x4b4504(0x1298)](0x4,_0x1be4c6[_0x4b4504(0x402)])[_0x4b4504(0xb47)](',');}break;case'amazonlex':{const _0x54e3dc=_0xa8a69f[_0x4b4504(0x3bd)]['appdata'][_0x4b4504(0x10c8)](',');_0xa8a69f['internaldial']['accesskeyid']=_0x54e3dc[0x0],_0xa8a69f['internaldial'][_0x4b4504(0x252)]=_0x54e3dc[0x1],_0xa8a69f[_0x4b4504(0x3bd)]['lexregion']=_0x54e3dc[0x2],_0xa8a69f[_0x4b4504(0x3bd)][_0x4b4504(0x8dd)]=_0x54e3dc[0x3],_0xa8a69f[_0x4b4504(0x3bd)][_0x4b4504(0xaf3)]=_0x54e3dc[_0x4b4504(0x1298)](0x4,_0x54e3dc[_0x4b4504(0x402)])['join'](',');}break;case _0x4b4504(0x1713):{const _0x5e7742=_0xa8a69f[_0x4b4504(0x3bd)][_0x4b4504(0x168a)][_0x4b4504(0x10c8)](',');_0xa8a69f[_0x4b4504(0x3bd)][_0x4b4504(0x583)]=isNaN(_0x5e7742[0x0])?_0x5e7742[0x0]:parseInt(_0x5e7742[0x0],0xa),_0xa8a69f[_0x4b4504(0x3bd)][_0x4b4504(0xa8d)]=_0x5e7742[_0x4b4504(0x1298)](0x1,_0x5e7742[_0x4b4504(0x402)])[_0x4b4504(0xb47)](',');}break;case'message':_0xa8a69f[_0x4b4504(0x3bd)][_0x4b4504(0xa8d)]=_0xa8a69f['internaldial'][_0x4b4504(0x168a)];break;case _0x4b4504(0x26ba):_0xa8a69f['internaldial'][_0x4b4504(0x19eb)]=_0xa8a69f[_0x4b4504(0x3bd)][_0x4b4504(0x168a)][_0x4b4504(0x10c8)]('=')[0x0],_0xa8a69f[_0x4b4504(0x3bd)][_0x4b4504(0x175d)]=_0xa8a69f[_0x4b4504(0x3bd)][_0x4b4504(0x168a)][_0x4b4504(0x10c8)]('=')[0x1];break;case _0x4b4504(0x1ecb):_0xa8a69f['internaldial'][_0x4b4504(0x9e0)]=_0xa8a69f[_0x4b4504(0x3bd)]['appdata'];break;default:{const _0x15d4c6=_0xa8a69f['internaldial']['appdata'][_0x4b4504(0x10c8)](',');_0xa8a69f['internaldial'][_0x4b4504(0xe7b)]=_0x3f65c0()[_0x4b4504(0x2635)](_0x15d4c6[0x0])?_0x15d4c6[0x0]:isNaN(_0x15d4c6[0x0])?_0x15d4c6[0x0]:parseInt(_0x15d4c6[0x0],0xa),_0xa8a69f['internaldial'][_0x4b4504(0xa9c)]=_0x3f65c0()['isEmpty'](_0x15d4c6[0x1])?_0x15d4c6[0x1]:isNaN(_0x15d4c6[0x1])?_0x15d4c6[0x1]:parseInt(_0x15d4c6[0x1],0xa),_0xa8a69f[_0x4b4504(0x3bd)][_0x4b4504(0xa08)]=_0x3f65c0()[_0x4b4504(0x2635)](_0x15d4c6[0x2])?_0x15d4c6[0x2]:isNaN(_0x15d4c6[0x2])?_0x15d4c6[0x2]:parseInt(_0x15d4c6[0x2],0xa),_0xa8a69f['internaldial'][_0x4b4504(0x20cc)]=_0x3f65c0()[_0x4b4504(0x2635)](_0x15d4c6[0x3])?_0x15d4c6[0x3]:isNaN(_0x15d4c6[0x3])?_0x15d4c6[0x3]:parseInt(_0x15d4c6[0x3],0xa);}break;}else{}_0xa8a69f[_0x4b4504(0x3bd)][_0x4b4504(0x1142)]&&_0xa8a69f['internaldial'][_0x4b4504(0x1142)][_0x4b4504(0x256e)]()==='outbound'&&_0xa8a69f[_0x4b4504(0x3bd)]['appType']['toLowerCase']()===_0x4b4504(0x3bb)&&(_0xa8a69f[_0x4b4504(0x3bd)]['prefix']=_0xa8a69f[_0x4b4504(0x3bd)][_0x4b4504(0x1d55)]?_0xa8a69f['internaldial'][_0x4b4504(0x1d55)][_0x4b4504(0x10c8)]('$')[0x0]:undefined,_0xa8a69f[_0x4b4504(0x3bd)]['callerId']=_0xa8a69f['internaldial']['callerID']?'CALLERID(all)='+_0xa8a69f[_0x4b4504(0x3bd)][_0x4b4504(0x11be)]:undefined);_0xa8a69f[_0x4b4504(0x2332)]=_0x3e90fa,_0xa8a69f[_0x4b4504(0x13f3)]=_0x3e6b66;const _0x4e008e=[{'id':0xca,'role':_0x4b4504(0x1755)},{'id':0xcb,'role':_0x4b4504(0x90c)}];let _0x9028ce=null;_0x678259[_0x4b4504(0x23e0)](_0x4b4504(0x174b))?_0x333196[_0x4b4504(0xe7b)]['get']({'fields':_0x4b4504(0x245b),'sort':_0x4b4504(0x19eb),'nolimit':_0x4b4504(0x1185)})[_0x4b4504(0x2945)]['then'](function(_0x46f117){const _0x4cb5dd=_0x4b4504;_0xa8a69f['users']=_0x46f117[_0x4cb5dd(0x19c7)]||[];})[_0x4b4504(0x129e)](function(_0x33e63e){const _0x53fde7=_0x4b4504;_0x13b6a6['error']({'title':_0x33e63e[_0x53fde7(0x107b)]?'API:'+_0x33e63e[_0x53fde7(0x107b)]+'\x20-\x20'+_0x33e63e[_0x53fde7(0x167f)]:_0x53fde7(0x42e),'msg':_0x33e63e['data']?JSON[_0x53fde7(0x10bb)](_0x33e63e[_0x53fde7(0x524)]):_0x33e63e['toString']()});}):_0x333196['user']['get']({'fields':_0x4b4504(0x245b),'sort':_0x4b4504(0x19eb),'nolimit':_0x4b4504(0x1185)})[_0x4b4504(0x2945)][_0x4b4504(0x146b)](function(_0x5a535b){_0x9028ce=_0x5a535b['rows']||[];})[_0x4b4504(0x146b)](function(){const _0x741359=_0x4b4504,_0x4906e9=[];for(let _0x982341=0x0;_0x982341<_0x4e008e[_0x741359(0x402)];_0x982341++){_0x4906e9[_0x741359(0x1f47)](_0x333196['userProfileSection'][_0x741359(0x16b4)]({'userProfileId':_0xa8a69f['currentUser']['userProfileId'],'sectionId':_0x4e008e[_0x982341]['id']})['$promise']);}return _0x26c25e[_0x741359(0x1be2)](_0x4906e9);})[_0x4b4504(0x146b)](function(_0x5cb2c4){const _0x23392b=_0x4b4504,_0x3d4f37=_0x3f65c0()[_0x23392b(0x205)](_0x5cb2c4,function(_0x34078d){const _0xb11570=_0x23392b;return _0x34078d&&_0x34078d['rows']?_0x34078d[_0xb11570(0x19c7)][0x0]:null;}),_0x18e390=[];for(let _0x7924b2=0x0;_0x7924b2<_0x4e008e[_0x23392b(0x402)];_0x7924b2++){const _0x48550b=_0x3f65c0()[_0x23392b(0xc84)](_0x3d4f37,['sectionId',_0x4e008e[_0x7924b2]['id']]);if(_0x48550b){if(!_0x48550b[_0x23392b(0x11d2)])_0x18e390[_0x23392b(0x1f47)](_0x333196[_0x23392b(0xdcc)][_0x23392b(0x16b4)]({'sectionId':_0x48550b['id']})[_0x23392b(0x2945)]);else{const _0x3dda57=[];_0x9028ce[_0x23392b(0x1df5)](function(_0x267f6f){const _0x5b9ae5=_0x23392b;_0x267f6f[_0x5b9ae5(0xfb0)]===_0x4e008e[_0x7924b2][_0x5b9ae5(0xfb0)]&&_0x3dda57[_0x5b9ae5(0x1f47)](_0x267f6f);}),_0x18e390[_0x23392b(0x1f47)]({'rows':_0x3dda57,'count':_0x3dda57[_0x23392b(0x402)]});}}}return _0x26c25e[_0x23392b(0x1be2)](_0x18e390);})[_0x4b4504(0x146b)](function(_0x2c59ba){const _0x5790e7=_0x4b4504,_0x3b8b90=[];let _0x29ccd6=null;_0xa8a69f['internaldial']&&(_0x29ccd6=_0x3f65c0()['find'](_0x9028ce,{'name':_0xa8a69f['internaldial'][_0x5790e7(0xe7b)]}));for(let _0x3d7564=0x0;_0x3d7564<_0x2c59ba['length'];_0x3d7564++){const _0x47bb9d=_0x2c59ba[_0x3d7564]['rows']||[];_0x47bb9d['forEach'](function(_0x5bd365){const _0xe8e8f0=_0x5790e7;_0x3b8b90[_0xe8e8f0(0x1f47)](_0x5bd365);});}_0x29ccd6&&!_0x3f65c0()[_0x5790e7(0x1360)](_0x3b8b90,[_0x5790e7(0x18b8),_0x29ccd6['id']])&&_0x9028ce[_0x5790e7(0x1df5)](function(_0x338446){const _0x374ae1=_0x5790e7;_0x338446['id']===_0x29ccd6['id']&&(_0x338446[_0x374ae1(0x8ff)]=![],_0x3b8b90[_0x374ae1(0x1f47)](_0x338446));}),_0xa8a69f[_0x5790e7(0x1995)]=_0x3b8b90;})['catch'](function(_0x3e2f24){const _0x1eb972=_0x4b4504;_0x13b6a6[_0x1eb972(0x1980)]({'title':_0x3e2f24[_0x1eb972(0x107b)]?_0x1eb972(0x262a)+_0x3e2f24[_0x1eb972(0x107b)]+_0x1eb972(0x1315)+_0x3e2f24[_0x1eb972(0x167f)]:_0x1eb972(0x8d5),'msg':_0x3e2f24[_0x1eb972(0x524)]?JSON[_0x1eb972(0x10bb)](_0x3e2f24['data']):_0x3e2f24['toString']()});});function _0x3e90fa(){const _0x233d37=_0x4b4504;_0xa8a69f['errors']=[];const _0x2c1fa6=[];_0xa8a69f['internaldial'][_0x233d37(0x1142)]&&_0xa8a69f[_0x233d37(0x3bd)][_0x233d37(0x1142)][_0x233d37(0x256e)]()===_0x233d37(0xc9c)&&_0xa8a69f[_0x233d37(0x3bd)][_0x233d37(0x8f2)]==='outboundDial'&&(_0xa8a69f[_0x233d37(0x3bd)]['phone']=_0x5691e0[_0x233d37(0x1274)]?(_0xa8a69f['internaldial'][_0x233d37(0x1e12)]||'')+'${EXTEN:'+_0x5691e0[_0x233d37(0x1274)]+'}':(_0xa8a69f[_0x233d37(0x3bd)][_0x233d37(0x1e12)]||'')+'${EXTEN}',_0x5691e0['recordingFormat']!==_0x233d37(0x1642)?_0xa8a69f['internaldial'][_0x233d37(0xa08)][_0x233d37(0x172b)](_0x233d37(0x1ea4))<0x0&&(_0xa8a69f[_0x233d37(0x3bd)][_0x233d37(0xa08)]+=_0x233d37(0x1ea4)):_0xa8a69f['internaldial']['options']=_0xa8a69f[_0x233d37(0x3bd)][_0x233d37(0xa08)][_0x233d37(0x5f4)](_0x233d37(0x1ea4),''));if(_0xa8a69f['internaldial'][_0x233d37(0x8f2)]&&_0xa8a69f[_0x233d37(0x3bd)][_0x233d37(0x8f2)]===_0x233d37(0x1802)){}else switch((_0xa8a69f[_0x233d37(0x3bd)]['app']||_0xa8a69f['internaldial']['appType'])[_0x233d37(0x256e)]()){case _0x233d37(0x26ba):_0xa8a69f[_0x233d37(0x3bd)][_0x233d37(0x168a)]=_0xa8a69f[_0x233d37(0x3bd)][_0x233d37(0x19eb)]+'='+_0xa8a69f['internaldial']['value'];break;case _0x233d37(0x1802):break;default:_0x2c1fa6[0x0]=_0xa8a69f[_0x233d37(0x3bd)]['user'],_0x2c1fa6[0x1]=_0xa8a69f[_0x233d37(0x3bd)]['timeout'],_0x2c1fa6[0x2]=_0xa8a69f[_0x233d37(0x3bd)][_0x233d37(0xa08)],_0x2c1fa6[0x3]=_0xa8a69f['internaldial'][_0x233d37(0x20cc)],_0xa8a69f[_0x233d37(0x3bd)]['appdata']=_0x2c1fa6[_0x233d37(0xb47)](',');}_0x3e6b66(_0xa8a69f[_0x233d37(0x3bd)]);}function _0x3e6b66(_0x12b25c){const _0x3c1256=_0x4b4504;_0xb5c95e[_0x3c1256(0x2458)](_0x12b25c);}}const _0x4b7a9f=_0x1cf117;;_0x3167a6[_0x313a4d(0x11c2)]=[_0x313a4d(0x1862),_0x313a4d(0x10e8),'$mdToast',_0x313a4d(0x15f6),_0x313a4d(0x2765),'intervals',_0x313a4d(0x1fe4),_0x313a4d(0x247f),_0x313a4d(0xa87),_0x313a4d(0x2514)];function _0x3167a6(_0x4a1097,_0x16e6cf,_0x2a7aee,_0x4932b4,_0x3471ad,_0x181a8f,_0x646a15,_0x219e1e,_0x91f952,_0x1a0655){const _0x3dbfc2=_0x313a4d,_0x3c1a8d=this;_0x3c1a8d[_0x3dbfc2(0x2321)]=_0x91f952[_0x3dbfc2(0xb12)](),_0x3c1a8d[_0x3dbfc2(0xcef)]=[],_0x3c1a8d['title']=_0x3dbfc2(0x56d),_0x3c1a8d[_0x3dbfc2(0x2765)]=angular[_0x3dbfc2(0x235a)](_0x3471ad),_0x3c1a8d[_0x3dbfc2(0x278f)]=_0x181a8f,_0x3c1a8d[_0x3dbfc2(0xa76)]=![],_0x3c1a8d[_0x3dbfc2(0x1960)]=['always','custom',_0x3dbfc2(0x25f4)],_0x3c1a8d[_0x3dbfc2(0x2514)]=_0x1a0655,_0x3c1a8d[_0x3dbfc2(0x1e35)]=_0x4932b4[_0x3dbfc2(0x2045)](),_0x3c1a8d[_0x3dbfc2(0x593)]=_0x4932b4['getMonthNumber'](),_0x3c1a8d['monthName']=_0x4932b4[_0x3dbfc2(0x18b6)](),_0x3c1a8d[_0x3dbfc2(0x15f1)]=_0x4932b4['getDaysOfMonth']();if(!_0x3c1a8d[_0x3dbfc2(0x2765)])_0x3c1a8d[_0x3dbfc2(0x2765)]={'interval':_0x3dbfc2(0x1559)},_0x3c1a8d[_0x3dbfc2(0x1142)]='always',_0x3c1a8d[_0x3dbfc2(0x1189)]=_0x3dbfc2(0x79c),_0x3c1a8d['newInterval']=!![];else{if(_0x3c1a8d[_0x3dbfc2(0x2765)][_0x3dbfc2(0x2765)]!=='*,*,*,*'){_0x3c1a8d[_0x3dbfc2(0x1142)]='custom';const _0x21b6fb=_0x3c1a8d[_0x3dbfc2(0x2765)][_0x3dbfc2(0x2765)]['split'](','),_0x5623dc=_0x21b6fb[0x0],_0x58a27e=_0x21b6fb[0x1],_0x166dcf=_0x21b6fb[0x2],_0xebb379=_0x21b6fb[0x3];if(_0x5623dc!=='*'){const _0x5b5d4b=_0x5623dc[_0x3dbfc2(0x10c8)]('-')[0x0],_0x480ba9=_0x5623dc[_0x3dbfc2(0x10c8)]('-')[0x1];let _0xc2092c;_0xc2092c=new Date(),_0xc2092c[_0x3dbfc2(0x25cd)](Number(_0x5b5d4b[_0x3dbfc2(0x10c8)](':')[0x0])),_0xc2092c[_0x3dbfc2(0x2348)](Number(_0x5b5d4b[_0x3dbfc2(0x10c8)](':')[0x1])),_0x3c1a8d[_0x3dbfc2(0x2469)]=_0xc2092c,_0xc2092c=new Date(),_0xc2092c[_0x3dbfc2(0x25cd)](Number(_0x480ba9['split'](':')[0x0])),_0xc2092c[_0x3dbfc2(0x2348)](Number(_0x480ba9[_0x3dbfc2(0x10c8)](':')[0x1])),_0x3c1a8d[_0x3dbfc2(0x637)]=_0xc2092c;}_0x58a27e!=='*'&&(_0x3c1a8d['dayOfWeekFrom']=_0x58a27e[_0x3dbfc2(0x10c8)]('-')[0x0],_0x3c1a8d[_0x3dbfc2(0x27a1)]=_0x58a27e['split']('-')[0x1]),_0x166dcf!=='*'&&(_0x3c1a8d[_0x3dbfc2(0xf0b)]=_0x166dcf[_0x3dbfc2(0x10c8)]('-')[0x0],_0x3c1a8d[_0x3dbfc2(0x896)]=_0x166dcf['split']('-')[0x1]),_0xebb379!=='*'&&(_0x3c1a8d[_0x3dbfc2(0x167)]=_0xebb379['split']('-')[0x0],_0x3c1a8d[_0x3dbfc2(0x9c3)]=_0xebb379['split']('-')[0x1]);}else _0x3c1a8d[_0x3dbfc2(0x1142)]=_0x3dbfc2(0xd85);}_0x4a1097[_0x3dbfc2(0x16a)]['id']&&!_0x3c1a8d[_0x3dbfc2(0x2765)][_0x3dbfc2(0xea)]&&(_0x3c1a8d[_0x3dbfc2(0x2765)]['IntervalId']=_0x4a1097['params']['id']);_0x3c1a8d[_0x3dbfc2(0x2765)][_0x3dbfc2(0x1ff2)]&&_0x3c1a8d[_0x3dbfc2(0x2765)][_0x3dbfc2(0xea)]&&(_0x3c1a8d[_0x3dbfc2(0x1142)]=_0x3dbfc2(0x25f4));_0x3c1a8d[_0x3dbfc2(0x2f0)]=_0xd69050,_0x3c1a8d[_0x3dbfc2(0x1242)]=_0x2bea93,_0x3c1a8d[_0x3dbfc2(0x13f3)]=_0x2ed19d;_0x3c1a8d['interval'][_0x3dbfc2(0xea)]&&(_0x91f952[_0x3dbfc2(0x23e0)](_0x3dbfc2(0x174b))?_0x219e1e[_0x3dbfc2(0x2765)][_0x3dbfc2(0x16b4)]({'fields':_0x3dbfc2(0x648),'IntervalId':'null','nolimit':!![]})['$promise'][_0x3dbfc2(0x146b)](function(_0x3a5790){const _0x3fabc3=_0x3dbfc2;_0x3c1a8d[_0x3fabc3(0x278f)]=_0x3a5790['rows']||[];})[_0x3dbfc2(0x129e)](function(_0x59eeb9){const _0x262adf=_0x3dbfc2;_0x646a15['error']({'title':_0x59eeb9[_0x262adf(0x107b)]?_0x262adf(0x262a)+_0x59eeb9[_0x262adf(0x107b)]+_0x262adf(0x1315)+_0x59eeb9[_0x262adf(0x167f)]:'SYSTEM:GET_INTERVALS','msg':_0x59eeb9[_0x262adf(0x524)]?JSON[_0x262adf(0x10bb)](_0x59eeb9['data']):_0x59eeb9[_0x262adf(0xd5f)]()});}):_0x219e1e['interval'][_0x3dbfc2(0x16b4)]({'fields':_0x3dbfc2(0x648),'IntervalId':_0x3dbfc2(0x203c),'nolimit':!![]})[_0x3dbfc2(0x2945)][_0x3dbfc2(0x146b)](function(_0x447344){const _0xfc614f=_0x3dbfc2;_0x3c1a8d[_0xfc614f(0x278f)]=_0x447344[_0xfc614f(0x19c7)]||[];})[_0x3dbfc2(0x146b)](function(){const _0x1992c8=_0x3dbfc2;return _0x219e1e[_0x1992c8(0x1366)][_0x1992c8(0x16b4)]({'userProfileId':_0x3c1a8d['currentUser']['userProfileId'],'sectionId':0x3ec})[_0x1992c8(0x2945)];})[_0x3dbfc2(0x146b)](function(_0x352c08){const _0x19489b=_0x3dbfc2,_0x437eec=_0x352c08&&_0x352c08[_0x19489b(0x19c7)]?_0x352c08[_0x19489b(0x19c7)][0x0]:null;if(!_0x437eec)_0x3c1a8d[_0x19489b(0x278f)]=[];else{if(!_0x437eec[_0x19489b(0x11d2)])return _0x219e1e[_0x19489b(0xdcc)][_0x19489b(0x16b4)]({'sectionId':_0x437eec['id']})['$promise']['then'](function(_0x530b50){const _0x59d519=_0x19489b,_0x6bf341=_0x530b50&&_0x530b50[_0x59d519(0x19c7)]?_0x530b50['rows']:[],_0x2bf5ac=[];let _0x2e1cf6=null;_0x3c1a8d[_0x59d519(0x2765)]&&(_0x2e1cf6=_0x3f65c0()[_0x59d519(0xc84)](_0x3c1a8d['intervals'],{'name':_0x3c1a8d[_0x59d519(0x2765)][_0x59d519(0x1ff2)]})),_0x2e1cf6&&!_0x3f65c0()[_0x59d519(0x1360)](_0x6bf341,[_0x59d519(0x18b8),_0x2e1cf6['id']])&&_0x3c1a8d[_0x59d519(0x278f)][_0x59d519(0x1df5)](function(_0x45f3b7){const _0x161b7e=_0x59d519;_0x45f3b7['id']===_0x2e1cf6['id']&&(_0x45f3b7[_0x161b7e(0x8ff)]=![],_0x2bf5ac['push'](_0x45f3b7));}),_0x3c1a8d['intervals']=_0x2bf5ac;});}})[_0x3dbfc2(0x129e)](function(_0x25da3c){const _0x5110c5=_0x3dbfc2;_0x646a15[_0x5110c5(0x1980)]({'title':_0x25da3c['status']?_0x5110c5(0x262a)+_0x25da3c[_0x5110c5(0x107b)]+_0x5110c5(0x1315)+_0x25da3c[_0x5110c5(0x167f)]:_0x5110c5(0x603),'msg':_0x25da3c[_0x5110c5(0x524)]?JSON[_0x5110c5(0x10bb)](_0x25da3c[_0x5110c5(0x524)]):_0x25da3c[_0x5110c5(0xd5f)]()});}));function _0x34ca13(){const _0x4eb9d4=_0x3dbfc2;switch(_0x3c1a8d['type']){case _0x4eb9d4(0xd85):case'list':return _0x4eb9d4(0x1559);case _0x4eb9d4(0x1802):{const _0x51ad74=[];if(_0x3c1a8d['timeRangeFrom']!=='*'&&_0x3c1a8d[_0x4eb9d4(0x2469)]&&_0x3c1a8d[_0x4eb9d4(0x637)]){const _0x442224=(_0x3c1a8d[_0x4eb9d4(0x2469)][_0x4eb9d4(0x1d57)]()<0xa?'0':'')+_0x3c1a8d[_0x4eb9d4(0x2469)][_0x4eb9d4(0x1d57)]()+':'+((_0x3c1a8d[_0x4eb9d4(0x2469)][_0x4eb9d4(0x7fc)]()<0xa?'0':'')+_0x3c1a8d[_0x4eb9d4(0x2469)][_0x4eb9d4(0x7fc)]()),_0x538eed=(_0x3c1a8d['timeRangeTo']['getHours']()<0xa?'0':'')+_0x3c1a8d[_0x4eb9d4(0x637)]['getHours']()+':'+((_0x3c1a8d['timeRangeTo'][_0x4eb9d4(0x7fc)]()<0xa?'0':'')+_0x3c1a8d[_0x4eb9d4(0x637)][_0x4eb9d4(0x7fc)]());_0x51ad74[_0x4eb9d4(0x1f47)](_0x442224+'-'+_0x538eed);}else _0x51ad74[_0x4eb9d4(0x1f47)]('*');return _0x3c1a8d[_0x4eb9d4(0x1455)]?_0x3c1a8d[_0x4eb9d4(0x27a1)]?_0x51ad74['push'](_0x3c1a8d[_0x4eb9d4(0x1455)]+'-'+_0x3c1a8d[_0x4eb9d4(0x27a1)]):_0x51ad74[_0x4eb9d4(0x1f47)](_0x3c1a8d['dayOfWeekFrom']):_0x51ad74[_0x4eb9d4(0x1f47)]('*'),_0x3c1a8d[_0x4eb9d4(0xf0b)]?_0x3c1a8d[_0x4eb9d4(0x896)]?_0x51ad74['push'](_0x3c1a8d['monthDayFrom']+'-'+_0x3c1a8d[_0x4eb9d4(0x896)]):_0x51ad74[_0x4eb9d4(0x1f47)](_0x3c1a8d[_0x4eb9d4(0xf0b)]):_0x51ad74[_0x4eb9d4(0x1f47)]('*'),_0x3c1a8d['monthFrom']?_0x3c1a8d[_0x4eb9d4(0x9c3)]?_0x51ad74[_0x4eb9d4(0x1f47)](_0x3c1a8d[_0x4eb9d4(0x167)]+'-'+_0x3c1a8d[_0x4eb9d4(0x9c3)]):_0x51ad74[_0x4eb9d4(0x1f47)](_0x3c1a8d[_0x4eb9d4(0x167)]):_0x51ad74[_0x4eb9d4(0x1f47)]('*'),_0x51ad74[_0x4eb9d4(0xb47)]();}}}function _0xd69050(){const _0xffa75c=_0x3dbfc2;_0x3c1a8d['errors']=[],_0x3c1a8d['interval']['interval']=_0x34ca13(),_0x219e1e['interval'][_0xffa75c(0x1e3)](_0x3c1a8d[_0xffa75c(0x2765)])[_0xffa75c(0x2945)][_0xffa75c(0x146b)](function(_0x3879da){const _0x1df156=_0xffa75c;_0x3c1a8d[_0x1df156(0x278f)][_0x1df156(0x1f47)](_0x3879da),_0x646a15[_0x1df156(0x1c75)]({'title':_0x1df156(0x17f5),'msg':_0x3c1a8d['interval'][_0x1df156(0x19eb)]?_0x3c1a8d[_0x1df156(0x2765)][_0x1df156(0x19eb)]+_0x1df156(0x1386):''}),_0x2ed19d();})['catch'](function(_0x5f3d94){const _0xcdf6c4=_0xffa75c;console[_0xcdf6c4(0x1980)](_0x5f3d94),_0x3c1a8d[_0xcdf6c4(0xcef)]=_0x5f3d94['data']['errors']||[{'message':_0x5f3d94[_0xcdf6c4(0xd5f)](),'type':_0xcdf6c4(0x7e7)}];});}function _0x2bea93(){const _0x2bbaf7=_0x3dbfc2;_0x3c1a8d[_0x2bbaf7(0xcef)]=[],_0x3c1a8d[_0x2bbaf7(0x2765)][_0x2bbaf7(0x2765)]=_0x34ca13(),_0x3c1a8d['interval']['application']?(_0x3c1a8d['type']!==_0x2bbaf7(0x25f4)&&(_0x3c1a8d[_0x2bbaf7(0x2765)]['IntervalId']=null),_0x2ed19d(_0x3c1a8d[_0x2bbaf7(0x2765)])):_0x219e1e['interval']['update']({'id':_0x3c1a8d[_0x2bbaf7(0x2765)]['id']},_0x3c1a8d[_0x2bbaf7(0x2765)])[_0x2bbaf7(0x2945)][_0x2bbaf7(0x146b)](function(_0x3ea5dc){const _0xa078be=_0x2bbaf7,_0x4155ac=_0x3f65c0()['find'](_0x3c1a8d[_0xa078be(0x278f)],{'id':_0x3ea5dc['id']});_0x4155ac&&_0x3f65c0()[_0xa078be(0x168d)](_0x4155ac,_0x3ea5dc),_0x646a15[_0xa078be(0x1c75)]({'title':_0xa078be(0x1d51),'msg':'Interval\x20has\x20been\x20saved!'}),_0x2ed19d();})[_0x2bbaf7(0x129e)](function(_0x3be1a8){const _0x55d4fe=_0x2bbaf7;console[_0x55d4fe(0x1980)](_0x3be1a8),_0x3c1a8d[_0x55d4fe(0xcef)]=_0x3be1a8['data'][_0x55d4fe(0xcef)]||[{'message':_0x3be1a8[_0x55d4fe(0xd5f)](),'type':'api.interval.update'}];});}function _0x2ed19d(_0x1c7176){const _0x5d17f8=_0x3dbfc2;_0x16e6cf[_0x5d17f8(0x2458)](_0x1c7176);}}const _0x5cf705=_0x3167a6;;_0x571b1b[_0x313a4d(0x11c2)]=['$mdDialog','$q',_0x313a4d(0x1fe4),_0x313a4d(0x2296),_0x313a4d(0x1d70),'api',_0x313a4d(0xa87),_0x313a4d(0x2514)];function _0x571b1b(_0x5eed3c,_0x566b24,_0x4dac49,_0x5ce998,_0x3e3d2e,_0x59a074,_0x1047d5,_0x42b642){const _0xfaf8db=_0x313a4d,_0x182423=this;_0x182423['currentUser']=_0x1047d5['getCurrentUser'](),_0x182423['errors']=[],_0x182423[_0xfaf8db(0x1189)]=_0xfaf8db(0x1950)+(_0x5ce998[_0xfaf8db(0x8f2)]||_0x5ce998[_0xfaf8db(0x1873)])['toUpperCase'](),_0x182423['playback']=angular[_0xfaf8db(0x235a)](_0x5ce998),_0x182423[_0xfaf8db(0x2514)]=_0x42b642,_0x182423[_0xfaf8db(0x855)]={};if(_0x182423[_0xfaf8db(0x288a)][_0xfaf8db(0x168a)])switch(_0x182423[_0xfaf8db(0x288a)][_0xfaf8db(0x8f2)]?_0x182423[_0xfaf8db(0x288a)][_0xfaf8db(0x8f2)]['toLowerCase']():_0x182423[_0xfaf8db(0x288a)][_0xfaf8db(0x1873)][_0xfaf8db(0x256e)]()){case _0xfaf8db(0x1802):break;case _0xfaf8db(0xeaa):{const _0x29da8b=_0x182423['playback']['appdata']['split'](',');_0x182423[_0xfaf8db(0x288a)][_0xfaf8db(0x2293)]=_0x29da8b[0x0],_0x182423['playback'][_0xfaf8db(0x90b)]=_0x29da8b[0x1],_0x182423[_0xfaf8db(0x288a)][_0xfaf8db(0xaf3)]=_0x29da8b[_0xfaf8db(0x1298)](0x2,_0x29da8b[_0xfaf8db(0x402)])[_0xfaf8db(0xb47)](',');}break;case'dialogflowv2':{const _0x4a17fa=_0x182423['playback'][_0xfaf8db(0x168a)]['split'](',');_0x182423['playback']['projectId']=_0x4a17fa[0x0],_0x182423[_0xfaf8db(0x288a)][_0xfaf8db(0x1392)]=_0x4a17fa[0x1],_0x182423[_0xfaf8db(0x288a)][_0xfaf8db(0x2217)]=_0x4a17fa[0x2],_0x182423['playback'][_0xfaf8db(0x90b)]=_0x4a17fa[0x3],_0x182423['playback'][_0xfaf8db(0xaf3)]=_0x4a17fa[_0xfaf8db(0x1298)](0x4,_0x4a17fa['length'])['join'](',');}break;case'amazonlex':{const _0x173bc4=_0x182423[_0xfaf8db(0x288a)][_0xfaf8db(0x168a)]['split'](',');_0x182423[_0xfaf8db(0x288a)]['accesskeyid']=_0x173bc4[0x0],_0x182423[_0xfaf8db(0x288a)][_0xfaf8db(0x252)]=_0x173bc4[0x1],_0x182423[_0xfaf8db(0x288a)]['lexregion']=_0x173bc4[0x2],_0x182423[_0xfaf8db(0x288a)][_0xfaf8db(0x8dd)]=_0x173bc4[0x3],_0x182423['playback'][_0xfaf8db(0xaf3)]=_0x173bc4[_0xfaf8db(0x1298)](0x4,_0x173bc4[_0xfaf8db(0x402)])[_0xfaf8db(0xb47)](',');}break;case _0xfaf8db(0x1713):{const _0x45fac7=_0x182423['playback']['appdata'][_0xfaf8db(0x10c8)](',');_0x182423['playback'][_0xfaf8db(0x583)]=isNaN(_0x45fac7[0x0])?_0x45fac7[0x0]:parseInt(_0x45fac7[0x0],0xa),_0x182423[_0xfaf8db(0x288a)]['text']=_0x45fac7[_0xfaf8db(0x1298)](0x1,_0x45fac7[_0xfaf8db(0x402)])[_0xfaf8db(0xb47)](',');}break;case'message':_0x182423[_0xfaf8db(0x288a)]['text']=_0x182423[_0xfaf8db(0x288a)][_0xfaf8db(0x168a)];break;case'set':_0x182423[_0xfaf8db(0x288a)][_0xfaf8db(0x19eb)]=_0x182423[_0xfaf8db(0x288a)][_0xfaf8db(0x168a)][_0xfaf8db(0x10c8)]('=')[0x0],_0x182423[_0xfaf8db(0x288a)][_0xfaf8db(0x175d)]=_0x182423['playback'][_0xfaf8db(0x168a)][_0xfaf8db(0x10c8)]('=')[0x1];break;case _0xfaf8db(0x1ecb):_0x182423[_0xfaf8db(0x288a)][_0xfaf8db(0x9e0)]=_0x182423['playback']['appdata'];break;default:{const _0x2adedc=_0x182423['playback']['appdata'][_0xfaf8db(0x10c8)](',');_0x182423[_0xfaf8db(0x288a)]['appdata']=_0x3f65c0()['isEmpty'](_0x2adedc[0x0])?_0x2adedc[0x0]:isNaN(_0x2adedc[0x0])?_0x2adedc[0x0]:parseInt(_0x2adedc[0x0],0xa),_0x182423['playback']['options']=_0x3f65c0()['isEmpty'](_0x2adedc[0x1])?_0x2adedc[0x1]:isNaN(_0x2adedc[0x1])?_0x2adedc[0x1]:parseInt(_0x2adedc[0x1],0xa);}break;}else{}_0x182423['playback'][_0xfaf8db(0x1142)]&&_0x182423[_0xfaf8db(0x288a)][_0xfaf8db(0x1142)][_0xfaf8db(0x256e)]()===_0xfaf8db(0xc9c)&&_0x182423['playback']['appType'][_0xfaf8db(0x256e)]()===_0xfaf8db(0x3bb)&&(_0x182423[_0xfaf8db(0x288a)][_0xfaf8db(0x1e12)]=_0x182423[_0xfaf8db(0x288a)][_0xfaf8db(0x1d55)]?_0x182423['playback'][_0xfaf8db(0x1d55)][_0xfaf8db(0x10c8)]('$')[0x0]:undefined,_0x182423[_0xfaf8db(0x288a)]['callerId']=_0x182423[_0xfaf8db(0x288a)][_0xfaf8db(0x11be)]?_0xfaf8db(0x1b60)+_0x182423[_0xfaf8db(0x288a)][_0xfaf8db(0x11be)]:undefined);_0x182423['saveInboundRouteApp']=_0x532d0b,_0x182423[_0xfaf8db(0x13f3)]=_0x286ade,_0x1047d5['hasRole'](_0xfaf8db(0x174b))?_0x59a074['sound'][_0xfaf8db(0x16b4)]({'fields':_0xfaf8db(0x222a),'sort':_0xfaf8db(0x19eb),'nolimit':'true'})[_0xfaf8db(0x2945)]['then'](function(_0x36b5c8){const _0x2c3245=_0xfaf8db;_0x182423[_0x2c3245(0xb02)]=_0x36b5c8[_0x2c3245(0x19c7)]||[];})[_0xfaf8db(0x129e)](function(_0x4b09bd){const _0x1c3764=_0xfaf8db;_0x4dac49[_0x1c3764(0x1980)]({'title':_0x4b09bd[_0x1c3764(0x107b)]?'API:'+_0x4b09bd[_0x1c3764(0x107b)]+_0x1c3764(0x1315)+_0x4b09bd[_0x1c3764(0x167f)]:_0x1c3764(0xd4a),'msg':_0x4b09bd['data']?JSON[_0x1c3764(0x10bb)](_0x4b09bd[_0x1c3764(0x524)]):_0x4b09bd[_0x1c3764(0xd5f)]()});}):_0x59a074[_0xfaf8db(0x126d)][_0xfaf8db(0x16b4)]({'fields':_0xfaf8db(0x222a),'sort':_0xfaf8db(0x19eb),'nolimit':_0xfaf8db(0x1185)})[_0xfaf8db(0x2945)]['then'](function(_0x2370c0){const _0x196bf6=_0xfaf8db;_0x182423[_0x196bf6(0xb02)]=_0x2370c0[_0x196bf6(0x19c7)]||[];})[_0xfaf8db(0x146b)](function(){const _0x47b584=_0xfaf8db;return _0x59a074[_0x47b584(0x1366)]['get']({'userProfileId':_0x182423['currentUser'][_0x47b584(0x209a)],'sectionId':0x3ef})['$promise'];})['then'](function(_0x5132d7){const _0x308a12=_0xfaf8db,_0xa75574=_0x5132d7&&_0x5132d7[_0x308a12(0x19c7)]?_0x5132d7['rows'][0x0]:null;if(!_0xa75574){const _0x32e040=[];let _0x258dce=null;_0x182423[_0x308a12(0x288a)]&&(_0x258dce=_0x3f65c0()[_0x308a12(0xc84)](_0x182423[_0x308a12(0xb02)],{'save_name':_0x182423['playback'][_0x308a12(0x126d)]}));for(let _0x5e5c4f=0x0;_0x5e5c4f<_0x182423['sounds'][_0x308a12(0x402)];_0x5e5c4f++){_0x258dce&&_0x182423['sounds'][_0x5e5c4f]['id']===_0x258dce['id']&&(_0x182423[_0x308a12(0xb02)][_0x5e5c4f]['canSelect']=![],_0x32e040[_0x308a12(0x1f47)](_0x182423['sounds'][_0x5e5c4f]));}_0x182423['sounds']=_0x32e040;}else{if(!_0xa75574[_0x308a12(0x11d2)])return _0x59a074[_0x308a12(0xdcc)][_0x308a12(0x16b4)]({'sectionId':_0xa75574['id']})[_0x308a12(0x2945)][_0x308a12(0x146b)](function(_0x16720a){const _0x159cf4=_0x308a12,_0x46c9a6=_0x3f65c0()[_0x159cf4(0x205)](_0x16720a[_0x159cf4(0x19c7)],function(_0x5aaac4){const _0x713af9=_0x159cf4;return _0x3f65c0()[_0x713af9(0xc84)](_0x182423[_0x713af9(0xb02)],{'id':_0x5aaac4[_0x713af9(0x18b8)]});});let _0x22ce78=null;_0x182423[_0x159cf4(0x288a)]&&(_0x22ce78=_0x3f65c0()[_0x159cf4(0xc84)](_0x182423[_0x159cf4(0xb02)],{'save_name':_0x182423[_0x159cf4(0x288a)][_0x159cf4(0x126d)]}));if(_0x22ce78&&!_0x3f65c0()[_0x159cf4(0x1360)](_0x46c9a6,['id',_0x22ce78['id']])){const _0x411aaf=_0x3f65c0()[_0x159cf4(0xc84)](_0x182423[_0x159cf4(0xb02)],{'id':_0x22ce78['id']});_0x411aaf[_0x159cf4(0x8ff)]=![],_0x46c9a6[_0x159cf4(0x1f47)](_0x411aaf);}_0x182423[_0x159cf4(0xb02)]=_0x46c9a6;});}})[_0xfaf8db(0x129e)](function(_0x436406){const _0x1ee9c6=_0xfaf8db;_0x4dac49[_0x1ee9c6(0x1980)]({'title':_0x436406[_0x1ee9c6(0x107b)]?'API:'+_0x436406['status']+_0x1ee9c6(0x1315)+_0x436406[_0x1ee9c6(0x167f)]:_0x1ee9c6(0x2682),'msg':_0x436406[_0x1ee9c6(0x524)]?JSON['stringify'](_0x436406[_0x1ee9c6(0x524)]):_0x436406['toString']()});});function _0x532d0b(){const _0x422a63=_0xfaf8db;_0x182423[_0x422a63(0xcef)]=[];const _0x311ecb=[];_0x182423[_0x422a63(0x288a)][_0x422a63(0x1142)]&&_0x182423['playback'][_0x422a63(0x1142)]['toLowerCase']()===_0x422a63(0xc9c)&&_0x182423[_0x422a63(0x288a)][_0x422a63(0x8f2)]===_0x422a63(0x118b)&&(_0x182423['playback'][_0x422a63(0x1d55)]=_0x3e3d2e[_0x422a63(0x1274)]?(_0x182423[_0x422a63(0x288a)][_0x422a63(0x1e12)]||'')+_0x422a63(0x2147)+_0x3e3d2e[_0x422a63(0x1274)]+'}':(_0x182423['playback'][_0x422a63(0x1e12)]||'')+'${EXTEN}',_0x3e3d2e['recordingFormat']!==_0x422a63(0x1642)?_0x182423[_0x422a63(0x288a)][_0x422a63(0xa08)][_0x422a63(0x172b)](_0x422a63(0x1ea4))<0x0&&(_0x182423[_0x422a63(0x288a)][_0x422a63(0xa08)]+=_0x422a63(0x1ea4)):_0x182423[_0x422a63(0x288a)]['options']=_0x182423['playback'][_0x422a63(0xa08)][_0x422a63(0x5f4)](_0x422a63(0x1ea4),''));if(_0x182423[_0x422a63(0x288a)]['appType']&&_0x182423[_0x422a63(0x288a)][_0x422a63(0x8f2)]===_0x422a63(0x1802)){}else switch((_0x182423[_0x422a63(0x288a)][_0x422a63(0x1873)]||_0x182423[_0x422a63(0x288a)]['appType'])[_0x422a63(0x256e)]()){case _0x422a63(0x26ba):_0x182423[_0x422a63(0x288a)][_0x422a63(0x168a)]=_0x182423[_0x422a63(0x288a)][_0x422a63(0x19eb)]+'='+_0x182423[_0x422a63(0x288a)][_0x422a63(0x175d)];break;case _0x422a63(0x1802):break;default:_0x311ecb[0x0]=_0x182423[_0x422a63(0x288a)][_0x422a63(0x168a)],_0x311ecb[0x1]=_0x182423[_0x422a63(0x288a)][_0x422a63(0xa08)],_0x182423[_0x422a63(0x288a)]['appdata']=_0x311ecb[_0x422a63(0xb47)](',');}_0x286ade(_0x182423['playback']);}function _0x286ade(_0x28e987){const _0x1174a5=_0xfaf8db;_0x5eed3c[_0x1174a5(0x2458)](_0x28e987);}}const _0x565e43=_0x571b1b;;_0x368486[_0x313a4d(0x11c2)]=[_0x313a4d(0x10e8),'$q',_0x313a4d(0x1fe4),_0x313a4d(0x2296),'inboundroute',_0x313a4d(0x247f),_0x313a4d(0xa87),_0x313a4d(0x2514)];function _0x368486(_0x4c1d48,_0x48a222,_0x5f3d33,_0x1a14d5,_0x5ba95f,_0x1662bb,_0x106292,_0x431d58){const _0xcd302=_0x313a4d,_0x2541db=this;_0x2541db['currentUser']=_0x106292[_0xcd302(0xb12)](),_0x2541db[_0xcd302(0xcef)]=[],_0x2541db[_0xcd302(0x1189)]=_0xcd302(0x1950)+(_0x1a14d5['appType']||_0x1a14d5[_0xcd302(0x1873)])[_0xcd302(0x1c37)](),_0x2541db[_0xcd302(0x1c72)]=angular[_0xcd302(0x235a)](_0x1a14d5),_0x2541db[_0xcd302(0x2514)]=_0x431d58,_0x2541db[_0xcd302(0x855)]={};if(_0x2541db[_0xcd302(0x1c72)][_0xcd302(0x168a)])switch(_0x2541db['queue'][_0xcd302(0x8f2)]?_0x2541db[_0xcd302(0x1c72)][_0xcd302(0x8f2)][_0xcd302(0x256e)]():_0x2541db[_0xcd302(0x1c72)][_0xcd302(0x1873)][_0xcd302(0x256e)]()){case'custom':break;case _0xcd302(0xeaa):{const _0x579ae8=_0x2541db[_0xcd302(0x1c72)][_0xcd302(0x168a)][_0xcd302(0x10c8)](',');_0x2541db['queue']['key']=_0x579ae8[0x0],_0x2541db[_0xcd302(0x1c72)][_0xcd302(0x90b)]=_0x579ae8[0x1],_0x2541db[_0xcd302(0x1c72)]['welcomemessage']=_0x579ae8[_0xcd302(0x1298)](0x2,_0x579ae8['length'])[_0xcd302(0xb47)](',');}break;case _0xcd302(0xa46):{const _0x14adf9=_0x2541db[_0xcd302(0x1c72)][_0xcd302(0x168a)]['split'](',');_0x2541db[_0xcd302(0x1c72)]['projectId']=_0x14adf9[0x0],_0x2541db['queue'][_0xcd302(0x1392)]=_0x14adf9[0x1],_0x2541db[_0xcd302(0x1c72)][_0xcd302(0x2217)]=_0x14adf9[0x2],_0x2541db[_0xcd302(0x1c72)][_0xcd302(0x90b)]=_0x14adf9[0x3],_0x2541db[_0xcd302(0x1c72)][_0xcd302(0xaf3)]=_0x14adf9['slice'](0x4,_0x14adf9[_0xcd302(0x402)])['join'](',');}break;case'amazonlex':{const _0x41ab30=_0x2541db['queue'][_0xcd302(0x168a)][_0xcd302(0x10c8)](',');_0x2541db[_0xcd302(0x1c72)][_0xcd302(0x1651)]=_0x41ab30[0x0],_0x2541db['queue']['secretaccesskey']=_0x41ab30[0x1],_0x2541db[_0xcd302(0x1c72)][_0xcd302(0x1039)]=_0x41ab30[0x2],_0x2541db[_0xcd302(0x1c72)][_0xcd302(0x8dd)]=_0x41ab30[0x3],_0x2541db[_0xcd302(0x1c72)]['welcomemessage']=_0x41ab30[_0xcd302(0x1298)](0x4,_0x41ab30[_0xcd302(0x402)])[_0xcd302(0xb47)](',');}break;case _0xcd302(0x1713):{const _0x4d4217=_0x2541db[_0xcd302(0x1c72)][_0xcd302(0x168a)][_0xcd302(0x10c8)](',');_0x2541db['queue'][_0xcd302(0x583)]=isNaN(_0x4d4217[0x0])?_0x4d4217[0x0]:parseInt(_0x4d4217[0x0],0xa),_0x2541db['queue'][_0xcd302(0xa8d)]=_0x4d4217['slice'](0x1,_0x4d4217[_0xcd302(0x402)])[_0xcd302(0xb47)](',');}break;case _0xcd302(0x7fd):_0x2541db[_0xcd302(0x1c72)][_0xcd302(0xa8d)]=_0x2541db[_0xcd302(0x1c72)]['appdata'];break;case _0xcd302(0x26ba):_0x2541db[_0xcd302(0x1c72)]['name']=_0x2541db[_0xcd302(0x1c72)][_0xcd302(0x168a)]['split']('=')[0x0],_0x2541db[_0xcd302(0x1c72)][_0xcd302(0x175d)]=_0x2541db['queue'][_0xcd302(0x168a)]['split']('=')[0x1];break;case _0xcd302(0x1ecb):_0x2541db['queue']['project']=_0x2541db['queue'][_0xcd302(0x168a)];break;default:{const _0x55052d=_0x2541db['queue'][_0xcd302(0x168a)][_0xcd302(0x10c8)](',');_0x2541db[_0xcd302(0x1c72)]['queue']=_0x3f65c0()['isEmpty'](_0x55052d[0x0])?_0x55052d[0x0]:isNaN(_0x55052d[0x0])?_0x55052d[0x0]:parseInt(_0x55052d[0x0],0xa),_0x2541db['queue']['options']=_0x3f65c0()[_0xcd302(0x2635)](_0x55052d[0x1])?_0x55052d[0x1]:isNaN(_0x55052d[0x1])?_0x55052d[0x1]:parseInt(_0x55052d[0x1],0xa),_0x2541db[_0xcd302(0x1c72)][_0xcd302(0x1227)]=_0x3f65c0()[_0xcd302(0x2635)](_0x55052d[0x2])?_0x55052d[0x2]:isNaN(_0x55052d[0x2])?_0x55052d[0x2]:parseInt(_0x55052d[0x2],0xa),_0x2541db[_0xcd302(0x1c72)]['sound']=_0x3f65c0()[_0xcd302(0x2635)](_0x55052d[0x3])?_0x55052d[0x3]:isNaN(_0x55052d[0x3])?_0x55052d[0x3]:parseInt(_0x55052d[0x3],0xa),_0x2541db['queue']['timeout']=_0x3f65c0()['isEmpty'](_0x55052d[0x4])?_0x55052d[0x4]:isNaN(_0x55052d[0x4])?_0x55052d[0x4]:parseInt(_0x55052d[0x4],0xa),_0x2541db[_0xcd302(0x1c72)]['agi']=_0x3f65c0()[_0xcd302(0x2635)](_0x55052d[0x5])?_0x55052d[0x5]:isNaN(_0x55052d[0x5])?_0x55052d[0x5]:parseInt(_0x55052d[0x5],0xa),_0x2541db[_0xcd302(0x1c72)][_0xcd302(0x9d2)]=_0x3f65c0()[_0xcd302(0x2635)](_0x55052d[0x6])?_0x55052d[0x6]:isNaN(_0x55052d[0x6])?_0x55052d[0x6]:parseInt(_0x55052d[0x6],0xa),_0x2541db[_0xcd302(0x1c72)][_0xcd302(0x1779)]=_0x3f65c0()[_0xcd302(0x2635)](_0x55052d[0x7])?_0x55052d[0x7]:isNaN(_0x55052d[0x7])?_0x55052d[0x7]:parseInt(_0x55052d[0x7],0xa),_0x2541db[_0xcd302(0x1c72)][_0xcd302(0x95e)]=_0x3f65c0()[_0xcd302(0x2635)](_0x55052d[0x8])?_0x55052d[0x8]:isNaN(_0x55052d[0x8])?_0x55052d[0x8]:parseInt(_0x55052d[0x8],0xa),_0x2541db[_0xcd302(0x1c72)][_0xcd302(0x21ca)]=_0x3f65c0()[_0xcd302(0x2635)](_0x55052d[0x9])?_0x55052d[0x9]:isNaN(_0x55052d[0x9])?_0x55052d[0x9]:parseInt(_0x55052d[0x9],0xa);}break;}else{}_0x2541db['queue'][_0xcd302(0x1142)]&&_0x2541db['queue'][_0xcd302(0x1142)][_0xcd302(0x256e)]()===_0xcd302(0xc9c)&&_0x2541db[_0xcd302(0x1c72)][_0xcd302(0x8f2)][_0xcd302(0x256e)]()===_0xcd302(0x3bb)&&(_0x2541db[_0xcd302(0x1c72)][_0xcd302(0x1e12)]=_0x2541db['queue']['phone']?_0x2541db[_0xcd302(0x1c72)][_0xcd302(0x1d55)]['split']('$')[0x0]:undefined,_0x2541db[_0xcd302(0x1c72)][_0xcd302(0x1d43)]=_0x2541db['queue']['callerID']?'CALLERID(all)='+_0x2541db[_0xcd302(0x1c72)][_0xcd302(0x11be)]:undefined);_0x2541db[_0xcd302(0x2332)]=_0x53d6a1,_0x2541db[_0xcd302(0x13f3)]=_0x50d188,_0x106292['hasRole'](_0xcd302(0x174b))?_0x1662bb[_0xcd302(0x126d)][_0xcd302(0x16b4)]({'fields':_0xcd302(0x222a),'sort':_0xcd302(0x19eb),'nolimit':'true'})[_0xcd302(0x2945)]['then'](function(_0x46d49a){const _0x252ad7=_0xcd302;_0x2541db['sounds']=_0x46d49a[_0x252ad7(0x19c7)]||[];})[_0xcd302(0x129e)](function(_0x196377){const _0x30e293=_0xcd302;_0x5f3d33[_0x30e293(0x1980)]({'title':_0x196377[_0x30e293(0x107b)]?_0x30e293(0x262a)+_0x196377[_0x30e293(0x107b)]+'\x20-\x20'+_0x196377[_0x30e293(0x167f)]:'SYSTEM:GET_SOUNDS','msg':_0x196377[_0x30e293(0x524)]?JSON[_0x30e293(0x10bb)](_0x196377[_0x30e293(0x524)]):_0x196377['toString']()});}):_0x1662bb[_0xcd302(0x126d)][_0xcd302(0x16b4)]({'fields':_0xcd302(0x222a),'sort':_0xcd302(0x19eb),'nolimit':_0xcd302(0x1185)})[_0xcd302(0x2945)][_0xcd302(0x146b)](function(_0x9b2ee7){const _0x24b703=_0xcd302;_0x2541db[_0x24b703(0xb02)]=_0x9b2ee7[_0x24b703(0x19c7)]||[];})[_0xcd302(0x146b)](function(){const _0x28ebb3=_0xcd302;return _0x1662bb[_0x28ebb3(0x1366)][_0x28ebb3(0x16b4)]({'userProfileId':_0x2541db[_0x28ebb3(0x2321)][_0x28ebb3(0x209a)],'sectionId':0x3ef})[_0x28ebb3(0x2945)];})[_0xcd302(0x146b)](function(_0x3d6e60){const _0x2e797f=_0xcd302,_0x2eb5e9=_0x3d6e60&&_0x3d6e60[_0x2e797f(0x19c7)]?_0x3d6e60[_0x2e797f(0x19c7)][0x0]:null;if(!_0x2eb5e9){const _0xe7f612=[];let _0x1df43f=null;_0x2541db[_0x2e797f(0x1c72)]&&(_0x1df43f=_0x3f65c0()['find'](_0x2541db[_0x2e797f(0xb02)],{'save_name':_0x2541db[_0x2e797f(0x1c72)][_0x2e797f(0x126d)]}));for(let _0x5c373e=0x0;_0x5c373e<_0x2541db['sounds']['length'];_0x5c373e++){_0x1df43f&&_0x2541db[_0x2e797f(0xb02)][_0x5c373e]['id']===_0x1df43f['id']&&(_0x2541db[_0x2e797f(0xb02)][_0x5c373e]['canSelect']=![],_0xe7f612[_0x2e797f(0x1f47)](_0x2541db[_0x2e797f(0xb02)][_0x5c373e]));}_0x2541db[_0x2e797f(0xb02)]=_0xe7f612;}else{if(!_0x2eb5e9[_0x2e797f(0x11d2)])return _0x1662bb['userProfileResource'][_0x2e797f(0x16b4)]({'sectionId':_0x2eb5e9['id']})[_0x2e797f(0x2945)][_0x2e797f(0x146b)](function(_0x541d99){const _0x3cba51=_0x2e797f,_0x17a004=_0x3f65c0()['map'](_0x541d99[_0x3cba51(0x19c7)],function(_0x1d7cf9){const _0x5966db=_0x3cba51;return _0x3f65c0()[_0x5966db(0xc84)](_0x2541db[_0x5966db(0xb02)],{'id':_0x1d7cf9[_0x5966db(0x18b8)]});});let _0x2ff16c=null;_0x2541db[_0x3cba51(0x1c72)]&&(_0x2ff16c=_0x3f65c0()['find'](_0x2541db[_0x3cba51(0xb02)],{'save_name':_0x2541db['queue'][_0x3cba51(0x126d)]}));if(_0x2ff16c&&!_0x3f65c0()[_0x3cba51(0x1360)](_0x17a004,['id',_0x2ff16c['id']])){const _0xe81c1=_0x3f65c0()['find'](_0x2541db[_0x3cba51(0xb02)],{'id':_0x2ff16c['id']});_0xe81c1[_0x3cba51(0x8ff)]=![],_0x17a004['push'](_0xe81c1);}_0x2541db['sounds']=_0x17a004;});}})[_0xcd302(0x129e)](function(_0x50eda6){const _0x278d4b=_0xcd302;_0x5f3d33['error']({'title':_0x50eda6['status']?_0x278d4b(0x262a)+_0x50eda6[_0x278d4b(0x107b)]+_0x278d4b(0x1315)+_0x50eda6['statusText']:_0x278d4b(0x2682),'msg':_0x50eda6[_0x278d4b(0x524)]?JSON[_0x278d4b(0x10bb)](_0x50eda6['data']):_0x50eda6[_0x278d4b(0xd5f)]()});}),_0x106292[_0xcd302(0x23e0)](_0xcd302(0x174b))?_0x1662bb[_0xcd302(0x1446)][_0xcd302(0x16b4)]({'type':'inbound','fields':'id,name,type','sort':_0xcd302(0x19eb),'nolimit':_0xcd302(0x1185)})[_0xcd302(0x2945)][_0xcd302(0x146b)](function(_0x426dbf){const _0x170103=_0xcd302;_0x2541db[_0x170103(0x1b32)]=_0x426dbf['rows']||[];})[_0xcd302(0x129e)](function(_0x418438){const _0x51cd28=_0xcd302;_0x5f3d33[_0x51cd28(0x1980)]({'title':_0x418438[_0x51cd28(0x107b)]?_0x51cd28(0x262a)+_0x418438[_0x51cd28(0x107b)]+_0x51cd28(0x1315)+_0x418438[_0x51cd28(0x167f)]:_0x51cd28(0x22d8),'msg':_0x418438[_0x51cd28(0x524)]?JSON[_0x51cd28(0x10bb)](_0x418438[_0x51cd28(0x524)]):_0x418438[_0x51cd28(0xd5f)]()});}):_0x1662bb[_0xcd302(0x1446)][_0xcd302(0x16b4)]({'type':_0xcd302(0x7b0),'fields':_0xcd302(0x45e),'sort':'name','nolimit':_0xcd302(0x1185)})[_0xcd302(0x2945)]['then'](function(_0x421bba){const _0x5572ac=_0xcd302;_0x2541db[_0x5572ac(0x1b32)]=_0x421bba[_0x5572ac(0x19c7)]||[];})[_0xcd302(0x146b)](function(){const _0x6c0952=_0xcd302;return _0x1662bb[_0x6c0952(0x1366)][_0x6c0952(0x16b4)]({'userProfileId':_0x2541db[_0x6c0952(0x2321)]['userProfileId'],'sectionId':0x191})[_0x6c0952(0x2945)];})[_0xcd302(0x146b)](function(_0x167b2d){const _0x36f44d=_0xcd302,_0x2bce3d=_0x167b2d&&_0x167b2d[_0x36f44d(0x19c7)]?_0x167b2d[_0x36f44d(0x19c7)][0x0]:null;if(!_0x2bce3d){const _0x273afd=[];let _0x576a74=null;_0x2541db['queue']&&(_0x576a74=_0x3f65c0()[_0x36f44d(0xc84)](_0x2541db[_0x36f44d(0x1b32)],{'name':_0x2541db[_0x36f44d(0x1c72)][_0x36f44d(0x1c72)]}));for(let _0x1f0610=0x0;_0x1f0610<_0x2541db[_0x36f44d(0x1b32)]['length'];_0x1f0610++){_0x576a74&&_0x2541db['queues'][_0x1f0610]['id']===_0x576a74['id']&&(_0x2541db['queues'][_0x1f0610][_0x36f44d(0x8ff)]=![],_0x273afd[_0x36f44d(0x1f47)](_0x2541db[_0x36f44d(0x1b32)][_0x1f0610]));}_0x2541db[_0x36f44d(0x1b32)]=_0x273afd;}else{if(!_0x2bce3d[_0x36f44d(0x11d2)])return _0x1662bb[_0x36f44d(0xdcc)][_0x36f44d(0x16b4)]({'sectionId':_0x2bce3d['id']})['$promise']['then'](function(_0x5b2baa){const _0x51bff8=_0x36f44d,_0x25b3e1=_0x3f65c0()[_0x51bff8(0x205)](_0x5b2baa[_0x51bff8(0x19c7)],function(_0xd5bf71){const _0x2e1e08=_0x51bff8;return _0x3f65c0()[_0x2e1e08(0xc84)](_0x2541db['queues'],{'id':_0xd5bf71['resourceId']});});let _0x3fb1f3=null;_0x2541db[_0x51bff8(0x1c72)]&&(_0x3fb1f3=_0x3f65c0()[_0x51bff8(0xc84)](_0x2541db[_0x51bff8(0x1b32)],{'name':_0x2541db['queue'][_0x51bff8(0x1c72)]}));if(_0x3fb1f3&&!_0x3f65c0()[_0x51bff8(0x1360)](_0x25b3e1,['id',_0x3fb1f3['id']])){const _0x354b86=_0x3f65c0()[_0x51bff8(0xc84)](_0x2541db[_0x51bff8(0x1b32)],{'id':_0x3fb1f3['id']});_0x354b86[_0x51bff8(0x8ff)]=![],_0x25b3e1['push'](_0x354b86);}_0x2541db[_0x51bff8(0x1b32)]=_0x25b3e1;});}})[_0xcd302(0x129e)](function(_0x7923a9){const _0x56d840=_0xcd302;_0x5f3d33[_0x56d840(0x1980)]({'title':_0x7923a9[_0x56d840(0x107b)]?'API:'+_0x7923a9[_0x56d840(0x107b)]+_0x56d840(0x1315)+_0x7923a9[_0x56d840(0x167f)]:_0x56d840(0x561),'msg':_0x7923a9[_0x56d840(0x524)]?JSON['stringify'](_0x7923a9['data']):_0x7923a9[_0x56d840(0xd5f)]()});});function _0x53d6a1(){const _0xaf8a2f=_0xcd302;_0x2541db['errors']=[];const _0x427463=[];_0x2541db[_0xaf8a2f(0x1c72)][_0xaf8a2f(0x1142)]&&_0x2541db[_0xaf8a2f(0x1c72)]['type'][_0xaf8a2f(0x256e)]()==='outbound'&&_0x2541db[_0xaf8a2f(0x1c72)]['appType']===_0xaf8a2f(0x118b)&&(_0x2541db[_0xaf8a2f(0x1c72)][_0xaf8a2f(0x1d55)]=_0x5ba95f['cutdigits']?(_0x2541db[_0xaf8a2f(0x1c72)][_0xaf8a2f(0x1e12)]||'')+_0xaf8a2f(0x2147)+_0x5ba95f[_0xaf8a2f(0x1274)]+'}':(_0x2541db[_0xaf8a2f(0x1c72)][_0xaf8a2f(0x1e12)]||'')+_0xaf8a2f(0x20df),_0x5ba95f[_0xaf8a2f(0x1425)]!=='none'?_0x2541db[_0xaf8a2f(0x1c72)][_0xaf8a2f(0xa08)]['indexOf'](_0xaf8a2f(0x1ea4))<0x0&&(_0x2541db['queue'][_0xaf8a2f(0xa08)]+='U(xcally-mixmonitor-context)'):_0x2541db['queue'][_0xaf8a2f(0xa08)]=_0x2541db[_0xaf8a2f(0x1c72)][_0xaf8a2f(0xa08)][_0xaf8a2f(0x5f4)]('U(xcally-mixmonitor-context)',''));if(_0x2541db[_0xaf8a2f(0x1c72)][_0xaf8a2f(0x8f2)]&&_0x2541db['queue'][_0xaf8a2f(0x8f2)]===_0xaf8a2f(0x1802)){}else switch((_0x2541db['queue'][_0xaf8a2f(0x1873)]||_0x2541db[_0xaf8a2f(0x1c72)][_0xaf8a2f(0x8f2)])[_0xaf8a2f(0x256e)]()){case _0xaf8a2f(0x26ba):_0x2541db[_0xaf8a2f(0x1c72)][_0xaf8a2f(0x168a)]=_0x2541db[_0xaf8a2f(0x1c72)][_0xaf8a2f(0x19eb)]+'='+_0x2541db[_0xaf8a2f(0x1c72)][_0xaf8a2f(0x175d)];break;case _0xaf8a2f(0x1802):break;default:_0x427463[0x0]=_0x2541db['queue']['queue'],_0x427463[0x1]=_0x2541db[_0xaf8a2f(0x1c72)]['options'],_0x427463[0x2]=_0x2541db[_0xaf8a2f(0x1c72)][_0xaf8a2f(0x1227)],_0x427463[0x3]=_0x2541db['queue']['sound'],_0x427463[0x4]=_0x2541db[_0xaf8a2f(0x1c72)]['timeout'],_0x427463[0x5]=_0x2541db[_0xaf8a2f(0x1c72)]['agi'],_0x427463[0x6]=_0x2541db[_0xaf8a2f(0x1c72)][_0xaf8a2f(0x9d2)],_0x427463[0x7]=_0x2541db['queue']['gosub'],_0x427463[0x8]=_0x2541db[_0xaf8a2f(0x1c72)][_0xaf8a2f(0x95e)],_0x427463[0x9]=_0x2541db['queue'][_0xaf8a2f(0x21ca)],_0x2541db[_0xaf8a2f(0x1c72)][_0xaf8a2f(0x168a)]=_0x427463[_0xaf8a2f(0xb47)](',');}_0x50d188(_0x2541db[_0xaf8a2f(0x1c72)]);}function _0x50d188(_0x116f2f){const _0x18c159=_0xcd302;_0x4c1d48[_0x18c159(0x2458)](_0x116f2f);}}const _0x48ad30=_0x368486;;_0x542863[_0x313a4d(0x11c2)]=[_0x313a4d(0x10e8),'$q',_0x313a4d(0x1fe4),_0x313a4d(0x2296),_0x313a4d(0x1d70),_0x313a4d(0x247f),_0x313a4d(0xa87),'crudPermissions'];function _0x542863(_0x39d58f,_0x26aa6f,_0x196f5a,_0x41e192,_0x20c122,_0xe40677,_0x14fee1,_0x2972c2){const _0x42eeac=_0x313a4d,_0x53977d=this;_0x53977d[_0x42eeac(0x2321)]=_0x14fee1['getCurrentUser'](),_0x53977d[_0x42eeac(0xcef)]=[],_0x53977d['title']=_0x42eeac(0x1950)+(_0x41e192[_0x42eeac(0x8f2)]||_0x41e192['app'])[_0x42eeac(0x1c37)](),_0x53977d[_0x42eeac(0x248d)]=angular[_0x42eeac(0x235a)](_0x41e192),_0x53977d['crudPermissions']=_0x2972c2,_0x53977d[_0x42eeac(0x855)]={};if(_0x53977d[_0x42eeac(0x248d)]['appdata'])switch(_0x53977d['ringgroup'][_0x42eeac(0x8f2)]?_0x53977d[_0x42eeac(0x248d)][_0x42eeac(0x8f2)]['toLowerCase']():_0x53977d[_0x42eeac(0x248d)][_0x42eeac(0x1873)]['toLowerCase']()){case'custom':break;case'dialogflow':{const _0x5d4378=_0x53977d[_0x42eeac(0x248d)]['appdata'][_0x42eeac(0x10c8)](',');_0x53977d[_0x42eeac(0x248d)][_0x42eeac(0x2293)]=_0x5d4378[0x0],_0x53977d['ringgroup'][_0x42eeac(0x90b)]=_0x5d4378[0x1],_0x53977d[_0x42eeac(0x248d)]['welcomemessage']=_0x5d4378[_0x42eeac(0x1298)](0x2,_0x5d4378[_0x42eeac(0x402)])[_0x42eeac(0xb47)](',');}break;case _0x42eeac(0xa46):{const _0x48fb71=_0x53977d[_0x42eeac(0x248d)][_0x42eeac(0x168a)][_0x42eeac(0x10c8)](',');_0x53977d[_0x42eeac(0x248d)][_0x42eeac(0x153a)]=_0x48fb71[0x0],_0x53977d[_0x42eeac(0x248d)][_0x42eeac(0x1392)]=_0x48fb71[0x1],_0x53977d[_0x42eeac(0x248d)]['privateKey']=_0x48fb71[0x2],_0x53977d[_0x42eeac(0x248d)][_0x42eeac(0x90b)]=_0x48fb71[0x3],_0x53977d[_0x42eeac(0x248d)][_0x42eeac(0xaf3)]=_0x48fb71[_0x42eeac(0x1298)](0x4,_0x48fb71[_0x42eeac(0x402)])[_0x42eeac(0xb47)](',');}break;case _0x42eeac(0x17d6):{const _0x592973=_0x53977d[_0x42eeac(0x248d)][_0x42eeac(0x168a)][_0x42eeac(0x10c8)](',');_0x53977d[_0x42eeac(0x248d)]['accesskeyid']=_0x592973[0x0],_0x53977d[_0x42eeac(0x248d)][_0x42eeac(0x252)]=_0x592973[0x1],_0x53977d[_0x42eeac(0x248d)][_0x42eeac(0x1039)]=_0x592973[0x2],_0x53977d['ringgroup'][_0x42eeac(0x8dd)]=_0x592973[0x3],_0x53977d[_0x42eeac(0x248d)][_0x42eeac(0xaf3)]=_0x592973['slice'](0x4,_0x592973[_0x42eeac(0x402)])['join'](',');}break;case'autoreply':{const _0xe6c8be=_0x53977d[_0x42eeac(0x248d)][_0x42eeac(0x168a)][_0x42eeac(0x10c8)](',');_0x53977d[_0x42eeac(0x248d)][_0x42eeac(0x583)]=isNaN(_0xe6c8be[0x0])?_0xe6c8be[0x0]:parseInt(_0xe6c8be[0x0],0xa),_0x53977d[_0x42eeac(0x248d)][_0x42eeac(0xa8d)]=_0xe6c8be[_0x42eeac(0x1298)](0x1,_0xe6c8be[_0x42eeac(0x402)])[_0x42eeac(0xb47)](',');}break;case _0x42eeac(0x7fd):_0x53977d[_0x42eeac(0x248d)]['text']=_0x53977d[_0x42eeac(0x248d)][_0x42eeac(0x168a)];break;case _0x42eeac(0x26ba):_0x53977d[_0x42eeac(0x248d)][_0x42eeac(0x19eb)]=_0x53977d[_0x42eeac(0x248d)][_0x42eeac(0x168a)][_0x42eeac(0x10c8)]('=')[0x0],_0x53977d[_0x42eeac(0x248d)]['value']=_0x53977d['ringgroup']['appdata'][_0x42eeac(0x10c8)]('=')[0x1];break;case _0x42eeac(0x1ecb):_0x53977d[_0x42eeac(0x248d)][_0x42eeac(0x9e0)]=_0x53977d[_0x42eeac(0x248d)][_0x42eeac(0x168a)];break;default:{const _0x5d9de1=_0x53977d[_0x42eeac(0x248d)][_0x42eeac(0x168a)][_0x42eeac(0x10c8)](',');_0x53977d[_0x42eeac(0x248d)][_0x42eeac(0x96a)]=_0x5d9de1[0x0][_0x42eeac(0x10c8)]('&'),_0x53977d['ringgroup'][_0x42eeac(0xa9c)]=_0x3f65c0()[_0x42eeac(0x2635)](_0x5d9de1[0x1])?_0x5d9de1[0x1]:isNaN(_0x5d9de1[0x1])?_0x5d9de1[0x1]:parseInt(_0x5d9de1[0x1],0xa),_0x53977d[_0x42eeac(0x248d)][_0x42eeac(0xa08)]=_0x3f65c0()[_0x42eeac(0x2635)](_0x5d9de1[0x2])?_0x5d9de1[0x2]:isNaN(_0x5d9de1[0x2])?_0x5d9de1[0x2]:parseInt(_0x5d9de1[0x2],0xa),_0x53977d[_0x42eeac(0x248d)]['url']=_0x3f65c0()['isEmpty'](_0x5d9de1[0x3])?_0x5d9de1[0x3]:isNaN(_0x5d9de1[0x3])?_0x5d9de1[0x3]:parseInt(_0x5d9de1[0x3],0xa);}break;}else{}_0x53977d['ringgroup'][_0x42eeac(0x1142)]&&_0x53977d[_0x42eeac(0x248d)][_0x42eeac(0x1142)][_0x42eeac(0x256e)]()==='outbound'&&_0x53977d[_0x42eeac(0x248d)]['appType'][_0x42eeac(0x256e)]()===_0x42eeac(0x3bb)&&(_0x53977d[_0x42eeac(0x248d)][_0x42eeac(0x1e12)]=_0x53977d['ringgroup'][_0x42eeac(0x1d55)]?_0x53977d[_0x42eeac(0x248d)][_0x42eeac(0x1d55)][_0x42eeac(0x10c8)]('$')[0x0]:undefined,_0x53977d[_0x42eeac(0x248d)][_0x42eeac(0x1d43)]=_0x53977d['ringgroup'][_0x42eeac(0x11be)]?'CALLERID(all)='+_0x53977d[_0x42eeac(0x248d)][_0x42eeac(0x11be)]:undefined);_0x53977d[_0x42eeac(0x2332)]=_0x18445d,_0x53977d['closeDialog']=_0x5b079a;const _0x238c95=[{'id':0xca,'role':'agent'},{'id':0xcb,'role':_0x42eeac(0x90c)}];let _0x342afd=null;_0x14fee1[_0x42eeac(0x23e0)](_0x42eeac(0x174b))?_0xe40677[_0x42eeac(0xe7b)][_0x42eeac(0x16b4)]({'fields':_0x42eeac(0x245b),'sort':_0x42eeac(0x19eb),'nolimit':_0x42eeac(0x1185)})[_0x42eeac(0x2945)]['then'](function(_0x357a49){const _0x1622dd=_0x42eeac;_0x53977d[_0x1622dd(0x1995)]=_0x357a49['rows']||[];})[_0x42eeac(0x129e)](function(_0x34ed9f){const _0x5937d9=_0x42eeac;_0x196f5a[_0x5937d9(0x1980)]({'title':_0x34ed9f[_0x5937d9(0x107b)]?_0x5937d9(0x262a)+_0x34ed9f[_0x5937d9(0x107b)]+_0x5937d9(0x1315)+_0x34ed9f[_0x5937d9(0x167f)]:_0x5937d9(0x42e),'msg':_0x34ed9f[_0x5937d9(0x524)]?JSON['stringify'](_0x34ed9f[_0x5937d9(0x524)]):_0x34ed9f[_0x5937d9(0xd5f)]()});}):_0xe40677[_0x42eeac(0xe7b)]['get']({'fields':'id,name,role','sort':_0x42eeac(0x19eb),'nolimit':_0x42eeac(0x1185)})[_0x42eeac(0x2945)]['then'](function(_0x278620){_0x342afd=_0x278620['rows']||[];})[_0x42eeac(0x146b)](function(){const _0x342033=_0x42eeac,_0x3eb70b=[];for(let _0x36cf11=0x0;_0x36cf11<_0x238c95['length'];_0x36cf11++){_0x3eb70b[_0x342033(0x1f47)](_0xe40677['userProfileSection']['get']({'userProfileId':_0x53977d['currentUser'][_0x342033(0x209a)],'sectionId':_0x238c95[_0x36cf11]['id']})[_0x342033(0x2945)]);}return _0x26aa6f[_0x342033(0x1be2)](_0x3eb70b);})[_0x42eeac(0x146b)](function(_0x413a23){const _0x2b465e=_0x42eeac,_0x16e36d=_0x3f65c0()[_0x2b465e(0x205)](_0x413a23,function(_0x3b2196){const _0x448114=_0x2b465e;return _0x3b2196&&_0x3b2196['rows']?_0x3b2196[_0x448114(0x19c7)][0x0]:null;}),_0xaab67d=[];for(let _0x4dc267=0x0;_0x4dc267<_0x238c95[_0x2b465e(0x402)];_0x4dc267++){const _0x5ea282=_0x3f65c0()[_0x2b465e(0xc84)](_0x16e36d,['sectionId',_0x238c95[_0x4dc267]['id']]);if(_0x5ea282){if(!_0x5ea282[_0x2b465e(0x11d2)])_0xaab67d[_0x2b465e(0x1f47)](_0xe40677[_0x2b465e(0xdcc)][_0x2b465e(0x16b4)]({'sectionId':_0x5ea282['id']})[_0x2b465e(0x2945)]);else{const _0x30b602=[];_0x342afd['forEach'](function(_0x5b7e28){const _0x3f5b1f=_0x2b465e;_0x5b7e28[_0x3f5b1f(0xfb0)]===_0x238c95[_0x4dc267]['role']&&_0x30b602['push'](_0x5b7e28);}),_0xaab67d[_0x2b465e(0x1f47)]({'rows':_0x30b602,'count':_0x30b602[_0x2b465e(0x402)]});}}}return _0x26aa6f['all'](_0xaab67d);})[_0x42eeac(0x146b)](function(_0x2d59e4){const _0x296c45=_0x42eeac,_0x3fc44c=[];let _0x2c020c=null;_0x53977d[_0x296c45(0x248d)]&&(_0x2c020c=_0x3f65c0()[_0x296c45(0xc84)](_0x342afd,{'name':_0x53977d[_0x296c45(0x248d)][_0x296c45(0x96a)]}));for(let _0x555766=0x0;_0x555766<_0x2d59e4['length'];_0x555766++){const _0x49f36f=_0x2d59e4[_0x555766][_0x296c45(0x19c7)]||[];_0x49f36f[_0x296c45(0x1df5)](function(_0x222d10){const _0x10ed4b=_0x296c45;_0x3fc44c[_0x10ed4b(0x1f47)](_0x222d10);});}_0x2c020c&&!_0x3f65c0()[_0x296c45(0x1360)](_0x3fc44c,[_0x296c45(0x18b8),_0x2c020c['id']])&&_0x342afd['forEach'](function(_0x437439){const _0x293a67=_0x296c45;_0x437439['id']===_0x2c020c['id']&&(_0x437439[_0x293a67(0x8ff)]=![],_0x3fc44c[_0x293a67(0x1f47)](_0x437439));}),_0x53977d[_0x296c45(0x1995)]=_0x3fc44c;})[_0x42eeac(0x129e)](function(_0x9f23eb){const _0x24a4aa=_0x42eeac;_0x196f5a[_0x24a4aa(0x1980)]({'title':_0x9f23eb[_0x24a4aa(0x107b)]?_0x24a4aa(0x262a)+_0x9f23eb['status']+_0x24a4aa(0x1315)+_0x9f23eb[_0x24a4aa(0x167f)]:_0x24a4aa(0x8d5),'msg':_0x9f23eb[_0x24a4aa(0x524)]?JSON[_0x24a4aa(0x10bb)](_0x9f23eb['data']):_0x9f23eb[_0x24a4aa(0xd5f)]()});});function _0x18445d(){const _0x21efc6=_0x42eeac;_0x53977d['errors']=[];const _0x522045=[];_0x53977d[_0x21efc6(0x248d)][_0x21efc6(0x1142)]&&_0x53977d[_0x21efc6(0x248d)]['type']['toLowerCase']()==='outbound'&&_0x53977d[_0x21efc6(0x248d)][_0x21efc6(0x8f2)]===_0x21efc6(0x118b)&&(_0x53977d[_0x21efc6(0x248d)][_0x21efc6(0x1d55)]=_0x20c122[_0x21efc6(0x1274)]?(_0x53977d[_0x21efc6(0x248d)]['prefix']||'')+'${EXTEN:'+_0x20c122[_0x21efc6(0x1274)]+'}':(_0x53977d[_0x21efc6(0x248d)][_0x21efc6(0x1e12)]||'')+'${EXTEN}',_0x20c122['recordingFormat']!==_0x21efc6(0x1642)?_0x53977d[_0x21efc6(0x248d)]['options']['indexOf'](_0x21efc6(0x1ea4))<0x0&&(_0x53977d[_0x21efc6(0x248d)]['options']+=_0x21efc6(0x1ea4)):_0x53977d[_0x21efc6(0x248d)]['options']=_0x53977d[_0x21efc6(0x248d)][_0x21efc6(0xa08)][_0x21efc6(0x5f4)](_0x21efc6(0x1ea4),''));if(_0x53977d['ringgroup'][_0x21efc6(0x8f2)]&&_0x53977d[_0x21efc6(0x248d)]['appType']===_0x21efc6(0x1802)){}else switch((_0x53977d[_0x21efc6(0x248d)][_0x21efc6(0x1873)]||_0x53977d[_0x21efc6(0x248d)][_0x21efc6(0x8f2)])['toLowerCase']()){case _0x21efc6(0x26ba):_0x53977d[_0x21efc6(0x248d)]['appdata']=_0x53977d[_0x21efc6(0x248d)][_0x21efc6(0x19eb)]+'='+_0x53977d[_0x21efc6(0x248d)][_0x21efc6(0x175d)];break;case _0x21efc6(0x1802):break;default:_0x522045[0x0]=_0x53977d[_0x21efc6(0x248d)][_0x21efc6(0x96a)][_0x21efc6(0xb47)]('&'),_0x522045[0x1]=_0x53977d['ringgroup'][_0x21efc6(0xa9c)],_0x522045[0x2]=_0x53977d['ringgroup']['options'],_0x522045[0x3]=_0x53977d[_0x21efc6(0x248d)][_0x21efc6(0x20cc)],_0x53977d[_0x21efc6(0x248d)][_0x21efc6(0x168a)]=_0x522045[_0x21efc6(0xb47)](',');}_0x5b079a(_0x53977d[_0x21efc6(0x248d)]);}function _0x5b079a(_0x251efe){const _0x576560=_0x42eeac;_0x39d58f[_0x576560(0x2458)](_0x251efe);}}const _0x486093=_0x542863;;_0x22d544[_0x313a4d(0x11c2)]=[_0x313a4d(0x10e8),'$q',_0x313a4d(0x1fe4),_0x313a4d(0x2296),'inboundroute','api',_0x313a4d(0xa87),'crudPermissions'];function _0x22d544(_0x330f63,_0x484d49,_0xd3fa95,_0x5d0ca3,_0x215184,_0x599c1f,_0x56dea0,_0x96f0a8){const _0x397ec0=_0x313a4d,_0x21e0c1=this;_0x21e0c1['currentUser']=_0x56dea0[_0x397ec0(0xb12)](),_0x21e0c1[_0x397ec0(0xcef)]=[],_0x21e0c1[_0x397ec0(0x1189)]=_0x397ec0(0x1950)+(_0x5d0ca3[_0x397ec0(0x8f2)]||_0x5d0ca3['app'])[_0x397ec0(0x1c37)](),_0x21e0c1[_0x397ec0(0x26ba)]=angular[_0x397ec0(0x235a)](_0x5d0ca3),_0x21e0c1[_0x397ec0(0x2514)]=_0x96f0a8,_0x21e0c1[_0x397ec0(0x855)]={};if(_0x21e0c1[_0x397ec0(0x26ba)][_0x397ec0(0x168a)])switch(_0x21e0c1[_0x397ec0(0x26ba)][_0x397ec0(0x8f2)]?_0x21e0c1['set']['appType']['toLowerCase']():_0x21e0c1[_0x397ec0(0x26ba)][_0x397ec0(0x1873)]['toLowerCase']()){case _0x397ec0(0x1802):break;case _0x397ec0(0xeaa):{const _0xf65e4c=_0x21e0c1[_0x397ec0(0x26ba)][_0x397ec0(0x168a)][_0x397ec0(0x10c8)](',');_0x21e0c1['set'][_0x397ec0(0x2293)]=_0xf65e4c[0x0],_0x21e0c1[_0x397ec0(0x26ba)][_0x397ec0(0x90b)]=_0xf65e4c[0x1],_0x21e0c1[_0x397ec0(0x26ba)][_0x397ec0(0xaf3)]=_0xf65e4c[_0x397ec0(0x1298)](0x2,_0xf65e4c['length'])[_0x397ec0(0xb47)](',');}break;case _0x397ec0(0xa46):{const _0x56c7c8=_0x21e0c1[_0x397ec0(0x26ba)]['appdata'][_0x397ec0(0x10c8)](',');_0x21e0c1[_0x397ec0(0x26ba)]['projectId']=_0x56c7c8[0x0],_0x21e0c1[_0x397ec0(0x26ba)]['clientEmail']=_0x56c7c8[0x1],_0x21e0c1[_0x397ec0(0x26ba)][_0x397ec0(0x2217)]=_0x56c7c8[0x2],_0x21e0c1[_0x397ec0(0x26ba)][_0x397ec0(0x90b)]=_0x56c7c8[0x3],_0x21e0c1[_0x397ec0(0x26ba)][_0x397ec0(0xaf3)]=_0x56c7c8[_0x397ec0(0x1298)](0x4,_0x56c7c8[_0x397ec0(0x402)])[_0x397ec0(0xb47)](',');}break;case _0x397ec0(0x17d6):{const _0xf8c1e3=_0x21e0c1['set']['appdata'][_0x397ec0(0x10c8)](',');_0x21e0c1[_0x397ec0(0x26ba)]['accesskeyid']=_0xf8c1e3[0x0],_0x21e0c1[_0x397ec0(0x26ba)][_0x397ec0(0x252)]=_0xf8c1e3[0x1],_0x21e0c1[_0x397ec0(0x26ba)]['lexregion']=_0xf8c1e3[0x2],_0x21e0c1[_0x397ec0(0x26ba)]['botname']=_0xf8c1e3[0x3],_0x21e0c1[_0x397ec0(0x26ba)][_0x397ec0(0xaf3)]=_0xf8c1e3['slice'](0x4,_0xf8c1e3[_0x397ec0(0x402)])[_0x397ec0(0xb47)](',');}break;case'autoreply':{const _0x1beb97=_0x21e0c1['set'][_0x397ec0(0x168a)]['split'](',');_0x21e0c1[_0x397ec0(0x26ba)]['times']=isNaN(_0x1beb97[0x0])?_0x1beb97[0x0]:parseInt(_0x1beb97[0x0],0xa),_0x21e0c1[_0x397ec0(0x26ba)]['text']=_0x1beb97[_0x397ec0(0x1298)](0x1,_0x1beb97[_0x397ec0(0x402)])[_0x397ec0(0xb47)](',');}break;case _0x397ec0(0x7fd):_0x21e0c1[_0x397ec0(0x26ba)][_0x397ec0(0xa8d)]=_0x21e0c1['set'][_0x397ec0(0x168a)];break;case _0x397ec0(0x26ba):_0x21e0c1['set']['name']=_0x21e0c1[_0x397ec0(0x26ba)]['appdata'][_0x397ec0(0x10c8)]('=')[0x0],_0x21e0c1[_0x397ec0(0x26ba)][_0x397ec0(0x175d)]=_0x21e0c1[_0x397ec0(0x26ba)][_0x397ec0(0x168a)]['split']('=')[0x1];break;case _0x397ec0(0x1ecb):_0x21e0c1[_0x397ec0(0x26ba)]['project']=_0x21e0c1[_0x397ec0(0x26ba)]['appdata'];break;default:{const _0x553253=_0x21e0c1[_0x397ec0(0x26ba)]['appdata'][_0x397ec0(0x10c8)]('=');_0x21e0c1['set']['name']=_0x3f65c0()[_0x397ec0(0x2635)](_0x553253[0x0])?_0x553253[0x0]:isNaN(_0x553253[0x0])?_0x553253[0x0]:parseInt(_0x553253[0x0],0xa),_0x21e0c1[_0x397ec0(0x26ba)][_0x397ec0(0x175d)]=_0x3f65c0()[_0x397ec0(0x2635)](_0x553253[0x1])?_0x553253[0x1]:isNaN(_0x553253[0x1])?_0x553253[0x1]:parseInt(_0x553253[0x1],0xa);}break;}else{}_0x21e0c1['set'][_0x397ec0(0x1142)]&&_0x21e0c1['set'][_0x397ec0(0x1142)][_0x397ec0(0x256e)]()===_0x397ec0(0xc9c)&&_0x21e0c1[_0x397ec0(0x26ba)][_0x397ec0(0x8f2)]['toLowerCase']()===_0x397ec0(0x3bb)&&(_0x21e0c1[_0x397ec0(0x26ba)][_0x397ec0(0x1e12)]=_0x21e0c1[_0x397ec0(0x26ba)][_0x397ec0(0x1d55)]?_0x21e0c1['set'][_0x397ec0(0x1d55)][_0x397ec0(0x10c8)]('$')[0x0]:undefined,_0x21e0c1[_0x397ec0(0x26ba)][_0x397ec0(0x1d43)]=_0x21e0c1['set'][_0x397ec0(0x11be)]?'CALLERID(all)='+_0x21e0c1[_0x397ec0(0x26ba)][_0x397ec0(0x11be)]:undefined);_0x21e0c1[_0x397ec0(0x2332)]=_0x173914,_0x21e0c1[_0x397ec0(0x13f3)]=_0x12541c,_0x56dea0[_0x397ec0(0x23e0)](_0x397ec0(0x174b))?_0x599c1f['variable'][_0x397ec0(0x16b4)]({'fields':_0x397ec0(0x7a7),'sort':_0x397ec0(0x19eb),'nolimit':_0x397ec0(0x1185)})['$promise']['then'](function(_0x3db8bc){const _0x5b43f1=_0x397ec0;_0x21e0c1['variables']=_0x3db8bc[_0x5b43f1(0x19c7)]||[];})['catch'](function(_0x3fe9ab){const _0x52f7da=_0x397ec0;_0xd3fa95[_0x52f7da(0x1980)]({'title':_0x3fe9ab[_0x52f7da(0x107b)]?'API:'+_0x3fe9ab[_0x52f7da(0x107b)]+_0x52f7da(0x1315)+_0x3fe9ab['statusText']:_0x52f7da(0x84b),'msg':_0x3fe9ab[_0x52f7da(0x524)]?JSON[_0x52f7da(0x10bb)](_0x3fe9ab[_0x52f7da(0x524)]):_0x3fe9ab[_0x52f7da(0xd5f)]()});}):_0x599c1f[_0x397ec0(0x212)][_0x397ec0(0x16b4)]({'fields':'id,name','sort':_0x397ec0(0x19eb),'nolimit':_0x397ec0(0x1185)})['$promise'][_0x397ec0(0x146b)](function(_0x10bd86){const _0x14bb11=_0x397ec0;_0x21e0c1[_0x14bb11(0x85b)]=_0x10bd86[_0x14bb11(0x19c7)]||[];})[_0x397ec0(0x146b)](function(){const _0x1c97d7=_0x397ec0;return _0x599c1f[_0x1c97d7(0x1366)]['get']({'userProfileId':_0x21e0c1[_0x1c97d7(0x2321)][_0x1c97d7(0x209a)],'sectionId':0x3f4})['$promise'];})[_0x397ec0(0x146b)](function(_0x1facaf){const _0x46bc36=_0x397ec0,_0x54b09e=_0x1facaf&&_0x1facaf[_0x46bc36(0x19c7)]?_0x1facaf[_0x46bc36(0x19c7)][0x0]:null;if(!_0x54b09e){const _0x26b69f=[];let _0x1c5b07=null;_0x21e0c1[_0x46bc36(0x26ba)]&&(_0x1c5b07=_0x3f65c0()['find'](_0x21e0c1[_0x46bc36(0x85b)],{'name':_0x21e0c1[_0x46bc36(0x26ba)][_0x46bc36(0x19eb)]}));for(let _0x5afbc0=0x0;_0x5afbc0<_0x21e0c1[_0x46bc36(0x85b)][_0x46bc36(0x402)];_0x5afbc0++){_0x1c5b07&&_0x21e0c1['variables'][_0x5afbc0]['id']===_0x1c5b07['id']&&(_0x21e0c1[_0x46bc36(0x85b)][_0x5afbc0][_0x46bc36(0x8ff)]=![],_0x26b69f[_0x46bc36(0x1f47)](_0x21e0c1[_0x46bc36(0x85b)][_0x5afbc0]));}_0x21e0c1[_0x46bc36(0x85b)]=_0x26b69f;}else{if(!_0x54b09e[_0x46bc36(0x11d2)])return _0x599c1f[_0x46bc36(0xdcc)][_0x46bc36(0x16b4)]({'sectionId':_0x54b09e['id']})[_0x46bc36(0x2945)][_0x46bc36(0x146b)](function(_0x43c0f8){const _0xb0df5c=_0x46bc36,_0x566b4e=_0x3f65c0()[_0xb0df5c(0x205)](_0x43c0f8[_0xb0df5c(0x19c7)],function(_0x2bfb9f){const _0x22ca0b=_0xb0df5c;return _0x3f65c0()[_0x22ca0b(0xc84)](_0x21e0c1[_0x22ca0b(0x85b)],{'id':_0x2bfb9f[_0x22ca0b(0x18b8)]});});let _0x546427=null;_0x21e0c1[_0xb0df5c(0x26ba)]&&(_0x546427=_0x3f65c0()[_0xb0df5c(0xc84)](_0x21e0c1[_0xb0df5c(0x85b)],{'name':_0x21e0c1[_0xb0df5c(0x26ba)][_0xb0df5c(0x19eb)]}));if(_0x546427&&!_0x3f65c0()[_0xb0df5c(0x1360)](_0x566b4e,['id',_0x546427['id']])){const _0x28de77=_0x3f65c0()[_0xb0df5c(0xc84)](_0x21e0c1[_0xb0df5c(0x85b)],{'id':_0x546427['id']});_0x28de77[_0xb0df5c(0x8ff)]=![],_0x566b4e[_0xb0df5c(0x1f47)](_0x28de77);}_0x21e0c1[_0xb0df5c(0x85b)]=_0x566b4e;});}})[_0x397ec0(0x129e)](function(_0x5c22be){const _0xc31410=_0x397ec0;_0xd3fa95[_0xc31410(0x1980)]({'title':_0x5c22be[_0xc31410(0x107b)]?_0xc31410(0x262a)+_0x5c22be[_0xc31410(0x107b)]+_0xc31410(0x1315)+_0x5c22be[_0xc31410(0x167f)]:_0xc31410(0x493),'msg':_0x5c22be[_0xc31410(0x524)]?JSON['stringify'](_0x5c22be['data']):_0x5c22be[_0xc31410(0xd5f)]()});});function _0x173914(){const _0x243d53=_0x397ec0;_0x21e0c1['errors']=[];const _0x4ef4f0=[];_0x21e0c1[_0x243d53(0x26ba)]['type']&&_0x21e0c1[_0x243d53(0x26ba)][_0x243d53(0x1142)][_0x243d53(0x256e)]()===_0x243d53(0xc9c)&&_0x21e0c1[_0x243d53(0x26ba)][_0x243d53(0x8f2)]===_0x243d53(0x118b)&&(_0x21e0c1['set']['phone']=_0x215184[_0x243d53(0x1274)]?(_0x21e0c1[_0x243d53(0x26ba)][_0x243d53(0x1e12)]||'')+'${EXTEN:'+_0x215184[_0x243d53(0x1274)]+'}':(_0x21e0c1[_0x243d53(0x26ba)]['prefix']||'')+_0x243d53(0x20df),_0x215184['recordingFormat']!==_0x243d53(0x1642)?_0x21e0c1[_0x243d53(0x26ba)]['options']['indexOf']('U(xcally-mixmonitor-context)')<0x0&&(_0x21e0c1[_0x243d53(0x26ba)]['options']+='U(xcally-mixmonitor-context)'):_0x21e0c1['set']['options']=_0x21e0c1[_0x243d53(0x26ba)][_0x243d53(0xa08)][_0x243d53(0x5f4)]('U(xcally-mixmonitor-context)',''));if(_0x21e0c1['set']['appType']&&_0x21e0c1[_0x243d53(0x26ba)][_0x243d53(0x8f2)]===_0x243d53(0x1802)){}else switch((_0x21e0c1['set'][_0x243d53(0x1873)]||_0x21e0c1[_0x243d53(0x26ba)][_0x243d53(0x8f2)])[_0x243d53(0x256e)]()){case _0x243d53(0x26ba):_0x21e0c1[_0x243d53(0x26ba)][_0x243d53(0x168a)]=_0x21e0c1[_0x243d53(0x26ba)][_0x243d53(0x19eb)]+'='+_0x21e0c1[_0x243d53(0x26ba)][_0x243d53(0x175d)];break;case _0x243d53(0x1802):break;default:_0x4ef4f0[0x0]=_0x21e0c1[_0x243d53(0x26ba)][_0x243d53(0x19eb)],_0x4ef4f0[0x1]=_0x21e0c1[_0x243d53(0x26ba)][_0x243d53(0x175d)],_0x21e0c1[_0x243d53(0x26ba)][_0x243d53(0x168a)]=_0x4ef4f0[_0x243d53(0xb47)]('=');}_0x12541c(_0x21e0c1[_0x243d53(0x26ba)]);}function _0x12541c(_0x116033){const _0x4bbe7d=_0x397ec0;_0x330f63[_0x4bbe7d(0x2458)](_0x116033);}}const _0x402dd6=_0x22d544;;_0x50d8ad[_0x313a4d(0x11c2)]=[_0x313a4d(0x10e8),'$q',_0x313a4d(0x1fe4),'inboundrouteApp',_0x313a4d(0x1d70),'api','Auth',_0x313a4d(0x2514)];function _0x50d8ad(_0xe0615f,_0x52ce10,_0x243469,_0x440d1c,_0x16ceb3,_0x2b039a,_0x435630,_0x25f0eb){const _0x5bfaa5=_0x313a4d,_0x4627ae=this;_0x4627ae[_0x5bfaa5(0x2321)]=_0x435630['getCurrentUser'](),_0x4627ae[_0x5bfaa5(0xcef)]=[],_0x4627ae[_0x5bfaa5(0x1189)]='VOICE.EDIT_'+(_0x440d1c[_0x5bfaa5(0x8f2)]||_0x440d1c[_0x5bfaa5(0x1873)])['toUpperCase'](),_0x4627ae[_0x5bfaa5(0x356)]=angular[_0x5bfaa5(0x235a)](_0x440d1c),_0x4627ae[_0x5bfaa5(0x2514)]=_0x25f0eb,_0x4627ae['hasModulePermissions']={};if(_0x4627ae['voicemail'][_0x5bfaa5(0x168a)])switch(_0x4627ae[_0x5bfaa5(0x356)][_0x5bfaa5(0x8f2)]?_0x4627ae[_0x5bfaa5(0x356)][_0x5bfaa5(0x8f2)][_0x5bfaa5(0x256e)]():_0x4627ae[_0x5bfaa5(0x356)][_0x5bfaa5(0x1873)][_0x5bfaa5(0x256e)]()){case _0x5bfaa5(0x1802):break;case _0x5bfaa5(0xeaa):{const _0x545789=_0x4627ae[_0x5bfaa5(0x356)][_0x5bfaa5(0x168a)][_0x5bfaa5(0x10c8)](',');_0x4627ae[_0x5bfaa5(0x356)][_0x5bfaa5(0x2293)]=_0x545789[0x0],_0x4627ae[_0x5bfaa5(0x356)][_0x5bfaa5(0x90b)]=_0x545789[0x1],_0x4627ae['voicemail'][_0x5bfaa5(0xaf3)]=_0x545789[_0x5bfaa5(0x1298)](0x2,_0x545789[_0x5bfaa5(0x402)])[_0x5bfaa5(0xb47)](',');}break;case _0x5bfaa5(0xa46):{const _0x2eb797=_0x4627ae['voicemail'][_0x5bfaa5(0x168a)]['split'](',');_0x4627ae[_0x5bfaa5(0x356)][_0x5bfaa5(0x153a)]=_0x2eb797[0x0],_0x4627ae[_0x5bfaa5(0x356)][_0x5bfaa5(0x1392)]=_0x2eb797[0x1],_0x4627ae[_0x5bfaa5(0x356)][_0x5bfaa5(0x2217)]=_0x2eb797[0x2],_0x4627ae[_0x5bfaa5(0x356)][_0x5bfaa5(0x90b)]=_0x2eb797[0x3],_0x4627ae[_0x5bfaa5(0x356)][_0x5bfaa5(0xaf3)]=_0x2eb797[_0x5bfaa5(0x1298)](0x4,_0x2eb797[_0x5bfaa5(0x402)])[_0x5bfaa5(0xb47)](',');}break;case'amazonlex':{const _0x5d9902=_0x4627ae[_0x5bfaa5(0x356)][_0x5bfaa5(0x168a)]['split'](',');_0x4627ae[_0x5bfaa5(0x356)][_0x5bfaa5(0x1651)]=_0x5d9902[0x0],_0x4627ae[_0x5bfaa5(0x356)][_0x5bfaa5(0x252)]=_0x5d9902[0x1],_0x4627ae['voicemail'][_0x5bfaa5(0x1039)]=_0x5d9902[0x2],_0x4627ae[_0x5bfaa5(0x356)][_0x5bfaa5(0x8dd)]=_0x5d9902[0x3],_0x4627ae[_0x5bfaa5(0x356)][_0x5bfaa5(0xaf3)]=_0x5d9902[_0x5bfaa5(0x1298)](0x4,_0x5d9902[_0x5bfaa5(0x402)])[_0x5bfaa5(0xb47)](',');}break;case'autoreply':{const _0x2b47a4=_0x4627ae[_0x5bfaa5(0x356)][_0x5bfaa5(0x168a)][_0x5bfaa5(0x10c8)](',');_0x4627ae[_0x5bfaa5(0x356)][_0x5bfaa5(0x583)]=isNaN(_0x2b47a4[0x0])?_0x2b47a4[0x0]:parseInt(_0x2b47a4[0x0],0xa),_0x4627ae[_0x5bfaa5(0x356)][_0x5bfaa5(0xa8d)]=_0x2b47a4['slice'](0x1,_0x2b47a4[_0x5bfaa5(0x402)])['join'](',');}break;case'message':_0x4627ae[_0x5bfaa5(0x356)][_0x5bfaa5(0xa8d)]=_0x4627ae[_0x5bfaa5(0x356)][_0x5bfaa5(0x168a)];break;case _0x5bfaa5(0x26ba):_0x4627ae[_0x5bfaa5(0x356)]['name']=_0x4627ae[_0x5bfaa5(0x356)][_0x5bfaa5(0x168a)]['split']('=')[0x0],_0x4627ae[_0x5bfaa5(0x356)][_0x5bfaa5(0x175d)]=_0x4627ae[_0x5bfaa5(0x356)][_0x5bfaa5(0x168a)]['split']('=')[0x1];break;case'agi':_0x4627ae[_0x5bfaa5(0x356)][_0x5bfaa5(0x9e0)]=_0x4627ae['voicemail'][_0x5bfaa5(0x168a)];break;default:{const _0x4e7ee7=_0x4627ae['voicemail']['appdata']['split'](',');_0x4627ae[_0x5bfaa5(0x356)][_0x5bfaa5(0xe8c)]=_0x3f65c0()['isEmpty'](_0x4e7ee7[0x0])?_0x4e7ee7[0x0]:isNaN(_0x4e7ee7[0x0])?_0x4e7ee7[0x0]:parseInt(_0x4e7ee7[0x0],0xa),_0x4627ae[_0x5bfaa5(0x356)][_0x5bfaa5(0xa08)]=_0x3f65c0()[_0x5bfaa5(0x2635)](_0x4e7ee7[0x1])?_0x4e7ee7[0x1]:isNaN(_0x4e7ee7[0x1])?_0x4e7ee7[0x1]:parseInt(_0x4e7ee7[0x1],0xa);}break;}else{}_0x4627ae[_0x5bfaa5(0x356)][_0x5bfaa5(0x1142)]&&_0x4627ae[_0x5bfaa5(0x356)][_0x5bfaa5(0x1142)][_0x5bfaa5(0x256e)]()===_0x5bfaa5(0xc9c)&&_0x4627ae['voicemail'][_0x5bfaa5(0x8f2)][_0x5bfaa5(0x256e)]()===_0x5bfaa5(0x3bb)&&(_0x4627ae[_0x5bfaa5(0x356)][_0x5bfaa5(0x1e12)]=_0x4627ae[_0x5bfaa5(0x356)]['phone']?_0x4627ae[_0x5bfaa5(0x356)][_0x5bfaa5(0x1d55)][_0x5bfaa5(0x10c8)]('$')[0x0]:undefined,_0x4627ae['voicemail']['callerId']=_0x4627ae['voicemail'][_0x5bfaa5(0x11be)]?_0x5bfaa5(0x1b60)+_0x4627ae[_0x5bfaa5(0x356)]['callerID']:undefined);_0x4627ae['saveInboundRouteApp']=_0x1eb1df,_0x4627ae[_0x5bfaa5(0x13f3)]=_0x504e5c,_0x435630[_0x5bfaa5(0x23e0)](_0x5bfaa5(0x174b))?_0x2b039a[_0x5bfaa5(0xe8c)][_0x5bfaa5(0x16b4)]({'fields':_0x5bfaa5(0x116d),'sort':_0x5bfaa5(0x1cc5),'nolimit':'true'})['$promise'][_0x5bfaa5(0x146b)](function(_0x3cc13e){const _0x4c76ee=_0x5bfaa5;_0x4627ae[_0x4c76ee(0xcb1)]=_0x3cc13e[_0x4c76ee(0x19c7)]||[];})[_0x5bfaa5(0x129e)](function(_0x1104b4){const _0x2d19d3=_0x5bfaa5;_0x243469[_0x2d19d3(0x1980)]({'title':_0x1104b4['status']?_0x2d19d3(0x262a)+_0x1104b4[_0x2d19d3(0x107b)]+'\x20-\x20'+_0x1104b4[_0x2d19d3(0x167f)]:'SYSTEM:GET_VOICEMAILS','msg':_0x1104b4[_0x2d19d3(0x524)]?JSON[_0x2d19d3(0x10bb)](_0x1104b4[_0x2d19d3(0x524)]):_0x1104b4[_0x2d19d3(0xd5f)]()});}):_0x2b039a[_0x5bfaa5(0xe8c)]['get']({'fields':_0x5bfaa5(0x116d),'sort':_0x5bfaa5(0x1cc5),'nolimit':_0x5bfaa5(0x1185)})[_0x5bfaa5(0x2945)]['then'](function(_0x1b91af){const _0x103133=_0x5bfaa5;_0x4627ae[_0x103133(0xcb1)]=_0x1b91af[_0x103133(0x19c7)]||[];})[_0x5bfaa5(0x146b)](function(){const _0x43ce73=_0x5bfaa5;return _0x2b039a[_0x43ce73(0x1366)][_0x43ce73(0x16b4)]({'userProfileId':_0x4627ae[_0x43ce73(0x2321)][_0x43ce73(0x209a)],'sectionId':0x196})[_0x43ce73(0x2945)];})['then'](function(_0x3ff95a){const _0x2d3f1a=_0x5bfaa5,_0x3d377b=_0x3ff95a&&_0x3ff95a[_0x2d3f1a(0x19c7)]?_0x3ff95a['rows'][0x0]:null;if(!_0x3d377b){const _0x4967ea=[];let _0x59001e=null;_0x4627ae[_0x2d3f1a(0x356)]&&(_0x59001e=_0x3f65c0()[_0x2d3f1a(0xc84)](_0x4627ae['voiceMails'],{'mailbox':_0x4627ae[_0x2d3f1a(0x356)][_0x2d3f1a(0xe8c)]}));for(let _0x724046=0x0;_0x724046<_0x4627ae[_0x2d3f1a(0xcb1)]['length'];_0x724046++){_0x59001e&&_0x4627ae[_0x2d3f1a(0xcb1)][_0x724046]['id']===_0x59001e['id']&&(_0x4627ae[_0x2d3f1a(0xcb1)][_0x724046]['canSelect']=![],_0x4967ea['push'](_0x4627ae[_0x2d3f1a(0xcb1)][_0x724046]));}_0x4627ae[_0x2d3f1a(0xcb1)]=_0x4967ea;}else{if(!_0x3d377b[_0x2d3f1a(0x11d2)])return _0x2b039a[_0x2d3f1a(0xdcc)]['get']({'sectionId':_0x3d377b['id']})[_0x2d3f1a(0x2945)][_0x2d3f1a(0x146b)](function(_0x4e9dac){const _0x3cbc42=_0x2d3f1a,_0x3d11a4=_0x3f65c0()[_0x3cbc42(0x205)](_0x4e9dac['rows'],function(_0x27d756){const _0x56eb0f=_0x3cbc42;return _0x3f65c0()[_0x56eb0f(0xc84)](_0x4627ae['voiceMails'],{'id':_0x27d756[_0x56eb0f(0x18b8)]});});let _0x459643=null;_0x4627ae['voicemail']&&(_0x459643=_0x3f65c0()['find'](_0x4627ae['voiceMails'],{'mailbox':_0x4627ae[_0x3cbc42(0x356)]['voiceMail']}));if(_0x459643&&!_0x3f65c0()[_0x3cbc42(0x1360)](_0x3d11a4,['id',_0x459643['id']])){const _0x53ba26=_0x3f65c0()[_0x3cbc42(0xc84)](_0x4627ae['voiceMails'],{'id':_0x459643['id']});_0x53ba26[_0x3cbc42(0x8ff)]=![],_0x3d11a4[_0x3cbc42(0x1f47)](_0x53ba26);}_0x4627ae['voiceMails']=_0x3d11a4;});}})['catch'](function(_0x1c2fe6){const _0x440b17=_0x5bfaa5;_0x243469['error']({'title':_0x1c2fe6['status']?'API:'+_0x1c2fe6['status']+_0x440b17(0x1315)+_0x1c2fe6[_0x440b17(0x167f)]:_0x440b17(0x1fc9),'msg':_0x1c2fe6[_0x440b17(0x524)]?JSON[_0x440b17(0x10bb)](_0x1c2fe6[_0x440b17(0x524)]):_0x1c2fe6[_0x440b17(0xd5f)]()});});function _0x1eb1df(){const _0x5035b4=_0x5bfaa5;_0x4627ae[_0x5035b4(0xcef)]=[];const _0xc2651d=[];_0x4627ae[_0x5035b4(0x356)]['type']&&_0x4627ae['voicemail'][_0x5035b4(0x1142)][_0x5035b4(0x256e)]()===_0x5035b4(0xc9c)&&_0x4627ae[_0x5035b4(0x356)]['appType']==='outboundDial'&&(_0x4627ae[_0x5035b4(0x356)]['phone']=_0x16ceb3['cutdigits']?(_0x4627ae['voicemail'][_0x5035b4(0x1e12)]||'')+_0x5035b4(0x2147)+_0x16ceb3[_0x5035b4(0x1274)]+'}':(_0x4627ae['voicemail'][_0x5035b4(0x1e12)]||'')+_0x5035b4(0x20df),_0x16ceb3['recordingFormat']!==_0x5035b4(0x1642)?_0x4627ae['voicemail'][_0x5035b4(0xa08)][_0x5035b4(0x172b)](_0x5035b4(0x1ea4))<0x0&&(_0x4627ae[_0x5035b4(0x356)][_0x5035b4(0xa08)]+='U(xcally-mixmonitor-context)'):_0x4627ae[_0x5035b4(0x356)]['options']=_0x4627ae[_0x5035b4(0x356)][_0x5035b4(0xa08)]['replace'](_0x5035b4(0x1ea4),''));if(_0x4627ae[_0x5035b4(0x356)][_0x5035b4(0x8f2)]&&_0x4627ae[_0x5035b4(0x356)][_0x5035b4(0x8f2)]===_0x5035b4(0x1802)){}else switch((_0x4627ae[_0x5035b4(0x356)][_0x5035b4(0x1873)]||_0x4627ae[_0x5035b4(0x356)][_0x5035b4(0x8f2)])['toLowerCase']()){case'set':_0x4627ae[_0x5035b4(0x356)][_0x5035b4(0x168a)]=_0x4627ae[_0x5035b4(0x356)]['name']+'='+_0x4627ae[_0x5035b4(0x356)]['value'];break;case _0x5035b4(0x1802):break;default:_0xc2651d[0x0]=_0x4627ae[_0x5035b4(0x356)]['voiceMail'],_0xc2651d[0x1]=_0x4627ae[_0x5035b4(0x356)]['options'],_0x4627ae[_0x5035b4(0x356)][_0x5035b4(0x168a)]=_0xc2651d[_0x5035b4(0xb47)](',');}_0x504e5c(_0x4627ae['voicemail']);}function _0x504e5c(_0x54d0f9){const _0x324079=_0x5bfaa5;_0xe0615f[_0x324079(0x2458)](_0x54d0f9);}}const _0x59f3e1=_0x50d8ad;;_0x2de03d['$inject']=['$state','$location',_0x313a4d(0x10e8),'$document',_0x313a4d(0x214b),'license','setting','api',_0x313a4d(0x1fe4),_0x313a4d(0xa87),_0x313a4d(0x1d70),'userProfileSection'];function _0x2de03d(_0x1c9929,_0x145ea5,_0x2a4d22,_0x1ece9d,_0x277744,_0x4dc402,_0x509a00,_0x4081e7,_0x103e22,_0x366b1a,_0x1c53ab,_0x3f927f){const _0x20fcbb=_0x313a4d,_0x41aeb5=this;_0x41aeb5['currentUser']=_0x366b1a[_0x20fcbb(0xb12)](),_0x41aeb5[_0x20fcbb(0x2690)]=_0x4dc402,_0x41aeb5[_0x20fcbb(0x15b9)]=_0x509a00,_0x41aeb5[_0x20fcbb(0x2251)]=_0x41aeb5['setting']['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x41aeb5[_0x20fcbb(0x1002)]=_0x145ea5[_0x20fcbb(0x2414)]()+_0x20fcbb(0xb0e)+_0x145ea5['host'](),_0x41aeb5[_0x20fcbb(0x1d70)]=_0x1c53ab||_0x1c9929['params'][_0x20fcbb(0x1d70)]||{},_0x41aeb5[_0x20fcbb(0x1366)]=_0x3f927f&&_0x3f927f[_0x20fcbb(0x51c)]==0x1?_0x3f927f[_0x20fcbb(0x19c7)][0x0]:null,_0x41aeb5[_0x20fcbb(0x2514)]=_0x366b1a[_0x20fcbb(0xe60)](_0x41aeb5[_0x20fcbb(0x1366)]?_0x41aeb5[_0x20fcbb(0x1366)][_0x20fcbb(0x2514)]:null),_0x41aeb5[_0x20fcbb(0x855)]={},_0x41aeb5[_0x20fcbb(0x1b09)]=_0x1c9929[_0x20fcbb(0x16a)][_0x20fcbb(0x13a3)]||0x0,_0x41aeb5[_0x20fcbb(0x861)]=_0x103e22[_0x20fcbb(0x271e)],_0x41aeb5[_0x20fcbb(0xdfd)]=_0x5305f1,_0x41aeb5[_0x20fcbb(0x1988)]=_0x39596b,_0x366b1a['hasRole'](_0x20fcbb(0x174b))?_0x4081e7[_0x20fcbb(0x1b82)]['get']({'fields':_0x20fcbb(0x7a7),'sort':'name','nolimit':_0x20fcbb(0x1185)})['$promise'][_0x20fcbb(0x146b)](function(_0x4569df){const _0x56c7d6=_0x20fcbb;_0x41aeb5[_0x56c7d6(0xfe9)]=_0x4569df[_0x56c7d6(0x19c7)]||[];})[_0x20fcbb(0x129e)](function(_0x8a6d93){const _0x3ced9f=_0x20fcbb;_0x103e22[_0x3ced9f(0x1980)]({'title':_0x8a6d93[_0x3ced9f(0x107b)]?_0x3ced9f(0x262a)+_0x8a6d93[_0x3ced9f(0x107b)]+_0x3ced9f(0x1315)+_0x8a6d93[_0x3ced9f(0x167f)]:_0x3ced9f(0x2742),'msg':_0x8a6d93['data']?JSON[_0x3ced9f(0x10bb)](_0x8a6d93[_0x3ced9f(0x524)]):_0x8a6d93[_0x3ced9f(0xd5f)]()});}):_0x4081e7['voiceContext'][_0x20fcbb(0x16b4)]({'fields':_0x20fcbb(0x7a7),'sort':'name','nolimit':'true'})[_0x20fcbb(0x2945)][_0x20fcbb(0x146b)](function(_0x3497f1){const _0x29f55c=_0x20fcbb;_0x41aeb5[_0x29f55c(0xfe9)]=_0x3497f1[_0x29f55c(0x19c7)]||[];})['then'](function(){const _0xfc5128=_0x20fcbb;return _0x4081e7[_0xfc5128(0x1366)][_0xfc5128(0x16b4)]({'userProfileId':_0x41aeb5['currentUser'][_0xfc5128(0x209a)],'sectionId':0x195})['$promise'];})[_0x20fcbb(0x146b)](function(_0x333059){const _0x309f5b=_0x20fcbb,_0xee8a47=_0x333059&&_0x333059[_0x309f5b(0x19c7)]?_0x333059['rows'][0x0]:null;if(!_0xee8a47)return _0x4081e7['voiceContext'][_0x309f5b(0x16b4)]({'fields':_0x309f5b(0x7a7),'sort':_0x309f5b(0x19eb),'nolimit':'true','defaultEntry':0x1})[_0x309f5b(0x2945)][_0x309f5b(0x146b)](function(_0x1029a4){const _0x4aa361=_0x309f5b;_0x41aeb5[_0x4aa361(0xfe9)]=_0x1029a4[_0x4aa361(0x19c7)]||[];});else{if(!_0xee8a47[_0x309f5b(0x11d2)])return _0x4081e7[_0x309f5b(0xdcc)][_0x309f5b(0x16b4)]({'sectionId':_0xee8a47['id']})[_0x309f5b(0x2945)][_0x309f5b(0x146b)](function(_0x453b21){const _0x1aaef6=_0x309f5b,_0x5eac2c=_0x3f65c0()['map'](_0x453b21[_0x1aaef6(0x19c7)],function(_0x36f1bb){const _0x4ddab8=_0x1aaef6;return _0x3f65c0()[_0x4ddab8(0xc84)](_0x41aeb5[_0x4ddab8(0xfe9)],{'id':_0x36f1bb[_0x4ddab8(0x18b8)]});});let _0x49c809=null;_0x41aeb5['inboundroute']&&(_0x49c809=_0x3f65c0()[_0x1aaef6(0xc84)](_0x41aeb5[_0x1aaef6(0xfe9)],{'name':_0x41aeb5[_0x1aaef6(0x1d70)][_0x1aaef6(0x1ac1)]}));if(_0x49c809&&!_0x3f65c0()[_0x1aaef6(0x1360)](_0x5eac2c,['id',_0x49c809['id']])){const _0x50660a=_0x3f65c0()[_0x1aaef6(0xc84)](_0x41aeb5[_0x1aaef6(0xfe9)],{'id':_0x49c809['id']});_0x50660a['canSelect']=![],_0x5eac2c[_0x1aaef6(0x1f47)](_0x50660a);}_0x41aeb5['contexts']=_0x5eac2c;});}})[_0x20fcbb(0x129e)](function(_0x112b4d){const _0x558290=_0x20fcbb;_0x103e22[_0x558290(0x1980)]({'title':_0x112b4d[_0x558290(0x107b)]?_0x558290(0x262a)+_0x112b4d[_0x558290(0x107b)]+_0x558290(0x1315)+_0x112b4d[_0x558290(0x167f)]:_0x558290(0x155e),'msg':_0x112b4d[_0x558290(0x524)]?JSON[_0x558290(0x10bb)](_0x112b4d[_0x558290(0x524)]):_0x112b4d['toString']()});});function _0x5305f1(){const _0x19396b=_0x20fcbb;_0x1c9929['go'](_0x19396b(0x274f),{},{'reload':'app.voice.inboundroutes'});}function _0x39596b(){const _0x5c183d=_0x20fcbb;_0x4081e7[_0x5c183d(0xd47)][_0x5c183d(0x18e1)]({'id':_0x41aeb5['inboundroute']['id']},_0x41aeb5['inboundroute'])[_0x5c183d(0x2945)][_0x5c183d(0x146b)](function(){const _0x413eba=_0x5c183d;_0x103e22[_0x413eba(0x1c75)]({'title':_0x413eba(0xb4e),'msg':_0x41aeb5[_0x413eba(0x1d70)][_0x413eba(0x19eb)]?_0x41aeb5[_0x413eba(0x1d70)][_0x413eba(0x19eb)]+_0x413eba(0x6b0):''});})[_0x5c183d(0x129e)](function(_0x233086){const _0x8a75b3=_0x5c183d;_0x103e22[_0x8a75b3(0x1980)]({'title':_0x233086[_0x8a75b3(0x107b)]?_0x8a75b3(0x262a)+_0x233086['status']+'\x20-\x20'+_0x233086['statusText']:_0x8a75b3(0x6df),'msg':_0x233086[_0x8a75b3(0x524)]?JSON[_0x8a75b3(0x10bb)](_0x233086['data']):_0x233086['toString']()});});}}const _0x3ef292=_0x2de03d;;const _0x709116=_0x4acfac['p']+_0x313a4d(0x5fc);;_0x13bb05[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1aa9),_0x313a4d(0x1862),_0x313a4d(0x15fe),_0x313a4d(0x10e8),_0x313a4d(0x4d8),_0x313a4d(0x1abe),_0x313a4d(0x214b),_0x313a4d(0x1470),_0x313a4d(0x26b6),_0x313a4d(0x1366),_0x313a4d(0x247f),_0x313a4d(0x216c),_0x313a4d(0x1fe4),_0x313a4d(0xa87),_0x313a4d(0x2690),'setting'];function _0x13bb05(_0xc9d576,_0x1b0944,_0x305348,_0x1b2efb,_0x16ec75,_0x5b9345,_0x278da1,_0x29409d,_0x454c13,_0x22ba49,_0x3a731a,_0x5e517e,_0x5d4982,_0x5030b2,_0x25db86,_0x1c5196,_0x538818){const _0x55a720=_0x313a4d,_0x16a004=this;_0x16a004[_0x55a720(0x2690)]=_0x1c5196,_0x16a004[_0x55a720(0x15b9)]=_0x538818,_0x16a004[_0x55a720(0x2321)]=_0x25db86[_0x55a720(0xb12)](),_0x16a004[_0x55a720(0x1470)]=_0x454c13||{'count':0x0,'rows':[]},_0x16a004[_0x55a720(0x26b6)]=_0x22ba49,_0x16a004[_0x55a720(0x1366)]=_0x3a731a&&_0x3a731a[_0x55a720(0x51c)]==0x1?_0x3a731a['rows'][0x0]:null,_0x16a004[_0x55a720(0x2514)]=_0x25db86[_0x55a720(0xe60)](_0x16a004[_0x55a720(0x1366)]?_0x16a004['userProfileSection'][_0x55a720(0x2514)]:null),_0x16a004[_0x55a720(0x768)]=_0x55a720(0x1470),_0x16a004[_0x55a720(0x216a)]='',_0x16a004[_0x55a720(0x214f)]=null,_0x16a004[_0x55a720(0x1a6b)]=[],_0x16a004[_0x55a720(0x1a56)]={'fields':_0x55a720(0x152e),'type':_0x55a720(0x7b0),'sort':_0x55a720(0x12f2),'VoiceExtensionId':'null','limit':0xa,'page':0x1},_0x16a004[_0x55a720(0x23f9)]=_0x5647e7,_0x16a004['deleteconfirm']=_0x37e07d,_0x16a004['success']=_0x54861c,_0x16a004['getInboundRoutes']=_0x4f74fd,_0x16a004['createOrEditInboundRoute']=_0x19d1e6,_0x16a004[_0x55a720(0x45d)]=_0x5973cf,_0x16a004['exportSelectedInboundRoutes']=_0x256435,_0x16a004[_0x55a720(0x1f25)]=_0x1eb2fd,_0x16a004[_0x55a720(0x1ccc)]=_0x399f57,_0x16a004[_0x55a720(0x7d5)]=_0x53f2e8,_0x25db86[_0x55a720(0x23e0)](_0x55a720(0x174b))?_0x5e517e[_0x55a720(0x1b82)]['get']({'fields':_0x55a720(0x7a7),'sort':_0x55a720(0x19eb),'nolimit':_0x55a720(0x1185)})[_0x55a720(0x2945)]['then'](function(_0x57c463){const _0x165e8b=_0x55a720;_0x16a004[_0x165e8b(0xfe9)]=_0x57c463[_0x165e8b(0x19c7)]||[];})[_0x55a720(0x129e)](function(_0x1b50a3){const _0x4be30f=_0x55a720;_0x5030b2[_0x4be30f(0x1980)]({'title':_0x1b50a3[_0x4be30f(0x107b)]?_0x4be30f(0x262a)+_0x1b50a3[_0x4be30f(0x107b)]+'\x20-\x20'+_0x1b50a3['statusText']:_0x4be30f(0x2742),'msg':_0x1b50a3[_0x4be30f(0x524)]?JSON[_0x4be30f(0x10bb)](_0x1b50a3['data']):_0x1b50a3[_0x4be30f(0xd5f)]()});}):_0x5e517e[_0x55a720(0x1b82)][_0x55a720(0x16b4)]({'fields':_0x55a720(0x7a7),'sort':'name','nolimit':_0x55a720(0x1185)})[_0x55a720(0x2945)][_0x55a720(0x146b)](function(_0xf95068){const _0x34c635=_0x55a720;_0x16a004[_0x34c635(0xfe9)]=_0xf95068[_0x34c635(0x19c7)]||[];})['then'](function(){const _0x1bb0a8=_0x55a720;return _0x5e517e[_0x1bb0a8(0x1366)][_0x1bb0a8(0x16b4)]({'userProfileId':_0x16a004['currentUser'][_0x1bb0a8(0x209a)],'sectionId':0x195})['$promise'];})[_0x55a720(0x146b)](function(_0x50d932){const _0x208a01=_0x55a720,_0x3bbb02=_0x50d932&&_0x50d932[_0x208a01(0x19c7)]?_0x50d932[_0x208a01(0x19c7)][0x0]:null;if(!_0x3bbb02)return _0x5e517e['voiceContext'][_0x208a01(0x16b4)]({'fields':_0x208a01(0x7a7),'sort':_0x208a01(0x19eb),'nolimit':_0x208a01(0x1185),'defaultEntry':0x1})[_0x208a01(0x2945)][_0x208a01(0x146b)](function(_0x7d0b30){const _0x4c00b2=_0x208a01;_0x16a004[_0x4c00b2(0xfe9)]=_0x7d0b30[_0x4c00b2(0x19c7)]||[];});else{if(!_0x3bbb02[_0x208a01(0x11d2)])return _0x5e517e[_0x208a01(0xdcc)]['get']({'sectionId':_0x3bbb02['id']})[_0x208a01(0x2945)][_0x208a01(0x146b)](function(_0x4dcb22){const _0x1c896f=_0x208a01,_0x5e3510=_0x3f65c0()[_0x1c896f(0x205)](_0x4dcb22[_0x1c896f(0x19c7)],function(_0x4a0823){const _0xb695b7=_0x1c896f;return _0x3f65c0()[_0xb695b7(0xc84)](_0x16a004['contexts'],{'id':_0x4a0823[_0xb695b7(0x18b8)]});});let _0x1c80de=null;_0x16a004[_0x1c896f(0x1d70)]&&(_0x1c80de=_0x3f65c0()['find'](_0x16a004[_0x1c896f(0xfe9)],{'name':_0x16a004[_0x1c896f(0x1d70)][_0x1c896f(0x1ac1)]}));if(_0x1c80de&&!_0x3f65c0()[_0x1c896f(0x1360)](_0x5e3510,['id',_0x1c80de['id']])){const _0x40db57=_0x3f65c0()[_0x1c896f(0xc84)](_0x16a004[_0x1c896f(0xfe9)],{'id':_0x1c80de['id']});_0x40db57['canSelect']=![],_0x5e3510[_0x1c896f(0x1f47)](_0x40db57);}_0x16a004[_0x1c896f(0xfe9)]=_0x5e3510;});}})['catch'](function(_0x4b1d4a){const _0x5917ad=_0x55a720;_0x5030b2[_0x5917ad(0x1980)]({'title':_0x4b1d4a['status']?_0x5917ad(0x262a)+_0x4b1d4a[_0x5917ad(0x107b)]+'\x20-\x20'+_0x4b1d4a[_0x5917ad(0x167f)]:_0x5917ad(0x155e),'msg':_0x4b1d4a[_0x5917ad(0x524)]?JSON[_0x5917ad(0x10bb)](_0x4b1d4a[_0x5917ad(0x524)]):_0x4b1d4a[_0x5917ad(0xd5f)]()});});function _0x5647e7(_0x4e7e68){const _0x396087=_0x55a720;_0x305348['go'](_0x396087(0x2941),{'id':_0x4e7e68['id'],'inboundroute':_0x4e7e68,'crudPermissions':_0x16a004['crudPermissions']});}function _0x37e07d(_0x3c8346,_0x4cb3fe){const _0x1064be=_0x55a720,_0xe76567=_0x16ec75[_0x1064be(0x1e8a)]()[_0x1064be(0x1189)](_0x1064be(0xdb2)+_0x3f65c0()['startCase'](_0x1064be(0x1d70))+'?')[_0x1064be(0x1cbe)](_0x1064be(0x16d3)+(_0x3c8346[_0x1064be(0x19eb)]||'inboundroute')+_0x1064be(0x252f)+_0x1064be(0xe01))['ariaLabel'](_0x1064be(0x1d05))[_0x1064be(0x1f27)](_0x4cb3fe)['ok']('OK')[_0x1064be(0x6c3)](_0x1064be(0x39a));_0x16ec75[_0x1064be(0x2615)](_0xe76567)[_0x1064be(0x146b)](function(){_0x5973cf(_0x3c8346);},function(){const _0x2ecdc2=_0x1064be;console[_0x2ecdc2(0x1a74)](_0x2ecdc2(0x39a));});}let _0x5646f6=!![],_0x2aee60=0x1;_0xc9d576[_0x55a720(0x21e8)]('vm.query.filter',function(_0x613a40,_0x26fadb){const _0x16206f=_0x55a720;_0x5646f6?_0x278da1(function(){_0x5646f6=![];}):(!_0x26fadb&&(_0x2aee60=_0x16a004[_0x16206f(0x1a56)][_0x16206f(0x844)]),_0x613a40!==_0x26fadb&&(_0x16a004[_0x16206f(0x1a56)][_0x16206f(0x844)]=0x1),!_0x613a40&&(_0x16a004[_0x16206f(0x1a56)][_0x16206f(0x844)]=_0x2aee60),_0x16a004[_0x16206f(0x28f6)]());});function _0x54861c(_0x2bde59){const _0x1ea6ee=_0x55a720;_0x16a004[_0x1ea6ee(0x1470)]=_0x2bde59||{'count':0x0,'rows':[]};}function _0x4f74fd(){const _0x5bc3be=_0x55a720;_0x16a004[_0x5bc3be(0x1a56)][_0x5bc3be(0x145d)]=(_0x16a004['query'][_0x5bc3be(0x844)]-0x1)*_0x16a004['query'][_0x5bc3be(0x221e)],_0x25db86['hasRole']('admin')?_0x16a004[_0x5bc3be(0xb9c)]=_0x5e517e[_0x5bc3be(0xd47)][_0x5bc3be(0x16b4)](_0x16a004['query'],_0x54861c)[_0x5bc3be(0x2945)]:(_0x16a004['query']['id']=_0x16a004[_0x5bc3be(0x26b6)]['id'],_0x16a004[_0x5bc3be(0x1a56)][_0x5bc3be(0x2146)]='InboundRoutes',_0x16a004['promise']=_0x5e517e[_0x5bc3be(0x26b6)][_0x5bc3be(0x158f)](_0x16a004[_0x5bc3be(0x1a56)],_0x54861c)[_0x5bc3be(0x2945)]);}function _0x19d1e6(_0x1febc4,_0x5229d5){const _0xe72957=_0x55a720;_0x16ec75[_0xe72957(0x2615)]({'controller':_0xe72957(0xf20),'controllerAs':'vm','templateUrl':_0x709116,'parent':angular[_0xe72957(0x1853)](_0x5b9345[_0xe72957(0x2586)]),'targetEvent':_0x1febc4,'clickOutsideToClose':!![],'locals':{'inboundroute':_0x5229d5,'inboundroutes':_0x16a004[_0xe72957(0x1470)][_0xe72957(0x19c7)],'license':_0x16a004[_0xe72957(0x2690)],'setting':_0x16a004[_0xe72957(0x15b9)],'crudPermissions':_0x16a004[_0xe72957(0x2514)]}});}function _0x5973cf(_0x5585a3){const _0xcd5a39=_0x55a720;_0x5e517e['voiceExtension'][_0xcd5a39(0x1fac)]({'id':_0x5585a3['id']})['$promise']['then'](function(){const _0x3d80b0=_0xcd5a39;_0x3f65c0()[_0x3d80b0(0x2640)](_0x16a004[_0x3d80b0(0x1470)][_0x3d80b0(0x19c7)],{'id':_0x5585a3['id']}),_0x16a004['inboundroutes'][_0x3d80b0(0x51c)]-=0x1,!_0x16a004[_0x3d80b0(0x1470)]['rows'][_0x3d80b0(0x402)]&&_0x16a004[_0x3d80b0(0x28f6)](),_0x5030b2[_0x3d80b0(0x1c75)]({'title':_0x3f65c0()[_0x3d80b0(0x20d1)]('InboundRoute')+'\x20deleted!','msg':_0x5585a3[_0x3d80b0(0x19eb)]?_0x5585a3['name']+_0x3d80b0(0x23e3):''});})[_0xcd5a39(0x129e)](function(_0x5b0eb4){const _0x4e8d5d=_0xcd5a39;if(_0x5b0eb4[_0x4e8d5d(0x524)]&&_0x5b0eb4[_0x4e8d5d(0x524)]['errors']&&_0x5b0eb4[_0x4e8d5d(0x524)][_0x4e8d5d(0xcef)]['length']){_0x16a004[_0x4e8d5d(0xcef)]=_0x5b0eb4[_0x4e8d5d(0x524)][_0x4e8d5d(0xcef)]||[{'message':_0x5b0eb4['toString'](),'type':_0x4e8d5d(0x1c36)}];for(let _0x491210=0x0;_0x491210<_0x5b0eb4[_0x4e8d5d(0x524)][_0x4e8d5d(0xcef)][_0x4e8d5d(0x402)];_0x491210++){_0x5030b2['error']({'title':_0x5b0eb4[_0x4e8d5d(0x524)]['errors'][_0x491210][_0x4e8d5d(0x1142)],'msg':_0x5b0eb4[_0x4e8d5d(0x524)][_0x4e8d5d(0xcef)][_0x491210][_0x4e8d5d(0x7fd)]});}}else _0x5030b2[_0x4e8d5d(0x1980)]({'title':_0x5b0eb4[_0x4e8d5d(0x107b)]?_0x4e8d5d(0x262a)+_0x5b0eb4['status']+_0x4e8d5d(0x1315)+_0x5b0eb4['statusText']:'SYSTEM:DELETEvoiceExtension','msg':_0x5b0eb4['data']?JSON[_0x4e8d5d(0x10bb)](_0x5b0eb4[_0x4e8d5d(0x524)][_0x4e8d5d(0x7fd)]):_0x5b0eb4['message']||_0x5b0eb4['toString']()});});}function _0x256435(){const _0x248502=_0x55a720,_0x2a2abc=angular['copy'](_0x16a004[_0x248502(0x1a6b)]);return _0x16a004[_0x248502(0x1a6b)]=[],_0x2a2abc;}function _0x1eb2fd(_0x911ba9){const _0x2cbd4d=_0x55a720,_0x5d4445=_0x16ec75[_0x2cbd4d(0x1e8a)]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20inboundroutes?')[_0x2cbd4d(0x1cbe)](''+_0x16a004[_0x2cbd4d(0x1a6b)][_0x2cbd4d(0x402)]+_0x2cbd4d(0x2452)+'\x20will\x20be\x20deleted.')['ariaLabel']('delete\x20InboundRoutes')[_0x2cbd4d(0x1f27)](_0x911ba9)['ok']('OK')[_0x2cbd4d(0x6c3)](_0x2cbd4d(0x39a));_0x16ec75[_0x2cbd4d(0x2615)](_0x5d4445)['then'](function(){const _0x21af2e=_0x2cbd4d;_0x16a004['selectedInboundRoutes'][_0x21af2e(0x1df5)](function(_0x3ec3e3){_0x5973cf(_0x3ec3e3);}),_0x16a004[_0x21af2e(0x1a6b)]=[];});}function _0x399f57(){_0x16a004['selectedInboundRoutes']=[];}function _0x53f2e8(){const _0x59c5df=_0x55a720;_0x16a004[_0x59c5df(0x1a6b)]=_0x16a004[_0x59c5df(0x1470)][_0x59c5df(0x19c7)];}}const _0x5b4627=_0x13bb05;;_0x4bfbf4['$inject']=[_0x313a4d(0x910),'$state','$location',_0x313a4d(0x10e8),'$q',_0x313a4d(0x214b),_0x313a4d(0x1fe4),'internalroutes',_0x313a4d(0x86f),_0x313a4d(0x247f),_0x313a4d(0xa87),_0x313a4d(0x2690),_0x313a4d(0x15b9),'crudPermissions'];function _0x4bfbf4(_0x2c567e,_0x1997ef,_0xa3bb27,_0x5877b7,_0x46efd8,_0x17b8b5,_0x3970a2,_0x508cad,_0xd01e5f,_0x4b0e21,_0x23ba12,_0x4c5242,_0x58d8c7,_0x377132){const _0x42eb33=_0x313a4d,_0xe7f77b=this;_0xe7f77b[_0x42eb33(0x2321)]=_0x23ba12[_0x42eb33(0xb12)](),_0xe7f77b[_0x42eb33(0xcef)]=[],_0xe7f77b[_0x42eb33(0x15b9)]=_0x58d8c7,_0xe7f77b[_0x42eb33(0x2690)]=_0x4c5242,_0xe7f77b[_0x42eb33(0x2514)]=_0x377132,_0xe7f77b['hasModulePermissions']={},_0xe7f77b[_0x42eb33(0x2251)]=_0xe7f77b['setting']&&_0xe7f77b[_0x42eb33(0x15b9)][_0x42eb33(0x976)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0xe7f77b[_0x42eb33(0x1189)]=_0x42eb33(0x1295),_0xe7f77b[_0x42eb33(0x86f)]=angular[_0x42eb33(0x235a)](_0xd01e5f),_0xe7f77b[_0x42eb33(0x101f)]=_0x508cad,_0xe7f77b[_0x42eb33(0x13aa)]=![];!_0xe7f77b[_0x42eb33(0x86f)]&&(_0xe7f77b[_0x42eb33(0x86f)]={'appdata':_0x42eb33(0xa63),'type':_0x42eb33(0x113f),'context':'from-sip'},_0xe7f77b['title']=_0x42eb33(0x155),_0xe7f77b['newInternalRoute']=!![]);_0xe7f77b[_0x42eb33(0x15d)]=_0x16bcc9,_0xe7f77b['saveInternalRoute']=_0x4bb4d4,_0xe7f77b[_0x42eb33(0x196)]=_0xce71d4,_0xe7f77b[_0x42eb33(0xe73)]=_0x41ae63,_0xe7f77b[_0x42eb33(0x13f3)]=_0x46fe04,_0x23ba12['hasRole']('admin')?_0x4b0e21[_0x42eb33(0x1b82)][_0x42eb33(0x16b4)]({'fields':_0x42eb33(0x7a7),'sort':_0x42eb33(0x19eb),'nolimit':'true'})[_0x42eb33(0x2945)][_0x42eb33(0x146b)](function(_0x32a741){const _0x24cf41=_0x42eb33;_0xe7f77b['contexts']=_0x32a741[_0x24cf41(0x19c7)]||[];})[_0x42eb33(0x129e)](function(_0x494cc9){const _0xe0ddd3=_0x42eb33;_0x3970a2[_0xe0ddd3(0x1980)]({'title':_0x494cc9[_0xe0ddd3(0x107b)]?_0xe0ddd3(0x262a)+_0x494cc9[_0xe0ddd3(0x107b)]+_0xe0ddd3(0x1315)+_0x494cc9[_0xe0ddd3(0x167f)]:'SYSTEM:GET_CONTEXTS','msg':_0x494cc9[_0xe0ddd3(0x524)]?JSON[_0xe0ddd3(0x10bb)](_0x494cc9['data']):_0x494cc9['toString']()});}):_0x4b0e21[_0x42eb33(0x1b82)][_0x42eb33(0x16b4)]({'fields':_0x42eb33(0x7a7),'sort':_0x42eb33(0x19eb),'nolimit':'true'})['$promise'][_0x42eb33(0x146b)](function(_0x1e31df){_0xe7f77b['contexts']=_0x1e31df['rows']||[];})['then'](function(){const _0x320bc0=_0x42eb33;return _0x4b0e21['userProfileSection']['get']({'userProfileId':_0xe7f77b[_0x320bc0(0x2321)][_0x320bc0(0x209a)],'sectionId':0x195})['$promise'];})[_0x42eb33(0x146b)](function(_0x3c2278){const _0x7d139c=_0x42eb33,_0x408ecb=_0x3c2278&&_0x3c2278[_0x7d139c(0x19c7)]?_0x3c2278[_0x7d139c(0x19c7)][0x0]:null;if(!_0x408ecb)return _0x4b0e21[_0x7d139c(0x1b82)][_0x7d139c(0x16b4)]({'fields':_0x7d139c(0x7a7),'sort':'name','nolimit':_0x7d139c(0x1185),'defaultEntry':0x1})[_0x7d139c(0x2945)]['then'](function(_0x1a735b){const _0x49e504=_0x7d139c;_0xe7f77b['contexts']=_0x1a735b[_0x49e504(0x19c7)]||[];});else{if(!_0x408ecb[_0x7d139c(0x11d2)])return _0x4b0e21[_0x7d139c(0xdcc)][_0x7d139c(0x16b4)]({'sectionId':_0x408ecb['id']})[_0x7d139c(0x2945)]['then'](function(_0x5d8e99){const _0x82679f=_0x7d139c,_0x4f8b20=_0x3f65c0()[_0x82679f(0x205)](_0x5d8e99[_0x82679f(0x19c7)],function(_0x10f304){const _0x57df32=_0x82679f;return _0x3f65c0()[_0x57df32(0xc84)](_0xe7f77b['contexts'],{'id':_0x10f304[_0x57df32(0x18b8)]});});let _0x5997e1=null;_0xe7f77b[_0x82679f(0x86f)]&&(_0x5997e1=_0x3f65c0()['find'](_0xe7f77b[_0x82679f(0xfe9)],{'name':_0xe7f77b[_0x82679f(0x86f)][_0x82679f(0x1ac1)]}));if(_0x5997e1&&!_0x3f65c0()[_0x82679f(0x1360)](_0x4f8b20,['id',_0x5997e1['id']])){const _0x3b6567=_0x3f65c0()['find'](_0xe7f77b[_0x82679f(0xfe9)],{'id':_0x5997e1['id']});_0x3b6567[_0x82679f(0x8ff)]=![],_0x4f8b20['push'](_0x3b6567);}_0xe7f77b[_0x82679f(0xfe9)]=_0x4f8b20;});}})[_0x42eb33(0x129e)](function(_0xe21a59){const _0x4e4079=_0x42eb33;_0x3970a2[_0x4e4079(0x1980)]({'title':_0xe21a59[_0x4e4079(0x107b)]?_0x4e4079(0x262a)+_0xe21a59[_0x4e4079(0x107b)]+_0x4e4079(0x1315)+_0xe21a59['statusText']:_0x4e4079(0x155e),'msg':_0xe21a59[_0x4e4079(0x524)]?JSON[_0x4e4079(0x10bb)](_0xe21a59[_0x4e4079(0x524)]):_0xe21a59[_0x4e4079(0xd5f)]()});});function _0x16bcc9(){const _0x3c06b7=_0x42eb33;_0xe7f77b[_0x3c06b7(0xcef)]=[],_0x4b0e21[_0x3c06b7(0xd47)][_0x3c06b7(0x1e3)](_0xe7f77b['internalroute'])[_0x3c06b7(0x2945)][_0x3c06b7(0x146b)](function(_0x3ce5ad){const _0x1a6d13=_0x3c06b7;_0xe7f77b[_0x1a6d13(0x101f)][_0x1a6d13(0xb3d)](_0x3ce5ad[_0x1a6d13(0x2488)]()),_0x3970a2[_0x1a6d13(0x1c75)]({'title':'InternalRoute\x20properly\x20created','msg':_0xe7f77b['internalroute'][_0x1a6d13(0x19eb)]?_0xe7f77b[_0x1a6d13(0x86f)][_0x1a6d13(0x19eb)]+_0x1a6d13(0x1386):''}),_0x46fe04(_0x3ce5ad);})[_0x3c06b7(0x129e)](function(_0x462478){const _0x41572d=_0x3c06b7;if(_0x462478[_0x41572d(0x524)]&&_0x462478[_0x41572d(0x524)][_0x41572d(0xcef)]&&_0x462478['data'][_0x41572d(0xcef)][_0x41572d(0x402)]){_0xe7f77b[_0x41572d(0xcef)]=_0x462478[_0x41572d(0x524)][_0x41572d(0xcef)]||[{'message':_0x462478[_0x41572d(0xd5f)](),'type':_0x41572d(0x52e)}];for(let _0x2849bb=0x0;_0x2849bb<_0x462478[_0x41572d(0x524)][_0x41572d(0xcef)][_0x41572d(0x402)];_0x2849bb+=0x1){_0x3970a2[_0x41572d(0x1980)]({'title':_0x462478[_0x41572d(0x524)][_0x41572d(0xcef)][_0x2849bb][_0x41572d(0x1142)],'msg':_0x462478['data'][_0x41572d(0xcef)][_0x2849bb][_0x41572d(0x7fd)]});}}else _0x3970a2[_0x41572d(0x1980)]({'title':_0x462478['status']?_0x41572d(0x262a)+_0x462478['status']+_0x41572d(0x1315)+_0x462478[_0x41572d(0x167f)]:_0x41572d(0x52e),'msg':_0x462478[_0x41572d(0x524)]?JSON['stringify'](_0x462478['data'][_0x41572d(0x7fd)]):_0x462478[_0x41572d(0xd5f)]()});});}function _0x4bb4d4(){const _0x2078f0=_0x42eb33;_0xe7f77b['errors']=[],_0x4b0e21['voiceExtension'][_0x2078f0(0x18e1)]({'id':_0xe7f77b[_0x2078f0(0x86f)]['id']},_0xe7f77b[_0x2078f0(0x86f)])[_0x2078f0(0x2945)][_0x2078f0(0x146b)](function(_0x12dede){const _0x5e2f7e=_0x2078f0,_0x48ea4c=_0x3f65c0()[_0x5e2f7e(0xc84)](_0xe7f77b['internalroutes'],{'id':_0x12dede['id']});_0x48ea4c&&_0x3f65c0()['merge'](_0x48ea4c,_0x3f65c0()['pick'](_0x12dede[_0x5e2f7e(0x2488)](),_0x3f65c0()['keys'](_0x48ea4c))),_0x3970a2[_0x5e2f7e(0x1c75)]({'title':_0x5e2f7e(0xedd),'msg':_0xe7f77b[_0x5e2f7e(0x86f)][_0x5e2f7e(0x19eb)]?_0xe7f77b[_0x5e2f7e(0x86f)][_0x5e2f7e(0x19eb)]+'\x20has\x20been\x20saved!':''}),_0x46fe04(_0x12dede);})[_0x2078f0(0x129e)](function(_0x88e53f){const _0x16bb5b=_0x2078f0;if(_0x88e53f[_0x16bb5b(0x524)]&&_0x88e53f[_0x16bb5b(0x524)][_0x16bb5b(0xcef)]&&_0x88e53f[_0x16bb5b(0x524)][_0x16bb5b(0xcef)][_0x16bb5b(0x402)]){_0xe7f77b[_0x16bb5b(0xcef)]=_0x88e53f[_0x16bb5b(0x524)][_0x16bb5b(0xcef)]||[{'message':_0x88e53f['toString'](),'type':_0x16bb5b(0x872)}];for(let _0x486961=0x0;_0x486961<_0x88e53f['data'][_0x16bb5b(0xcef)]['length'];_0x486961++){_0x3970a2[_0x16bb5b(0x1980)]({'title':_0x88e53f[_0x16bb5b(0x524)][_0x16bb5b(0xcef)][_0x486961][_0x16bb5b(0x1142)],'msg':_0x88e53f['data']['errors'][_0x486961][_0x16bb5b(0x7fd)]});}}else _0x3970a2[_0x16bb5b(0x1980)]({'title':_0x88e53f[_0x16bb5b(0x107b)]?'API:'+_0x88e53f[_0x16bb5b(0x107b)]+_0x16bb5b(0x1315)+_0x88e53f[_0x16bb5b(0x167f)]:_0x16bb5b(0x872),'msg':_0x88e53f[_0x16bb5b(0x524)]?JSON[_0x16bb5b(0x10bb)](_0x88e53f[_0x16bb5b(0x524)][_0x16bb5b(0x7fd)]):_0x88e53f[_0x16bb5b(0xd5f)]()});});}function _0xce71d4(_0x3de1f8){const _0x6b5ff=_0x42eb33;_0xe7f77b[_0x6b5ff(0xcef)]=[];const _0x5e0554=_0x5877b7['confirm']()[_0x6b5ff(0x1189)](_0x6b5ff(0x1d64))[_0x6b5ff(0x80f)](_0x6b5ff(0x1061))['ariaLabel'](_0x6b5ff(0x19c4))['ok'](_0x6b5ff(0x25de))[_0x6b5ff(0x6c3)]('Cancel')[_0x6b5ff(0x1f27)](_0x3de1f8);_0x5877b7[_0x6b5ff(0x2615)](_0x5e0554)[_0x6b5ff(0x146b)](function(){const _0x3ccc8b=_0x6b5ff;_0x4b0e21[_0x3ccc8b(0xd47)][_0x3ccc8b(0x1fac)]({'id':_0xe7f77b[_0x3ccc8b(0x86f)]['id']})[_0x3ccc8b(0x2945)][_0x3ccc8b(0x146b)](function(){const _0x25cc68=_0x3ccc8b;_0x3f65c0()[_0x25cc68(0x2640)](_0xe7f77b[_0x25cc68(0x101f)],{'id':_0xe7f77b['internalroute']['id']}),_0x3970a2[_0x25cc68(0x1c75)]({'title':_0x25cc68(0x212e),'msg':(_0xe7f77b[_0x25cc68(0x86f)][_0x25cc68(0x19eb)]||_0x25cc68(0x86f))+'\x20has\x20been\x20deleted!'}),_0x46fe04(_0xe7f77b['internalroute']);})[_0x3ccc8b(0x129e)](function(_0x2cfc10){const _0x5d1fae=_0x3ccc8b;if(_0x2cfc10[_0x5d1fae(0x524)]&&_0x2cfc10['data'][_0x5d1fae(0xcef)]&&_0x2cfc10[_0x5d1fae(0x524)][_0x5d1fae(0xcef)][_0x5d1fae(0x402)]){_0xe7f77b[_0x5d1fae(0xcef)]=_0x2cfc10[_0x5d1fae(0x524)][_0x5d1fae(0xcef)]||[{'message':_0x2cfc10[_0x5d1fae(0xd5f)](),'type':'api.voiceExtension.delete'}];for(let _0x3b06bd=0x0;_0x3b06bd<_0x2cfc10[_0x5d1fae(0x524)][_0x5d1fae(0xcef)]['length'];_0x3b06bd++){_0x3970a2[_0x5d1fae(0x1980)]({'title':_0x2cfc10[_0x5d1fae(0x524)]['errors'][_0x3b06bd][_0x5d1fae(0x1142)],'msg':_0x2cfc10[_0x5d1fae(0x524)]['errors'][_0x3b06bd][_0x5d1fae(0x7fd)]});}}else _0x3970a2[_0x5d1fae(0x1980)]({'title':_0x2cfc10[_0x5d1fae(0x107b)]?_0x5d1fae(0x262a)+_0x2cfc10['status']+'\x20-\x20'+_0x2cfc10['statusText']:'api.voiceExtension.delete','msg':_0x2cfc10[_0x5d1fae(0x524)]?JSON[_0x5d1fae(0x10bb)](_0x2cfc10[_0x5d1fae(0x524)][_0x5d1fae(0x7fd)]):_0x2cfc10[_0x5d1fae(0x7fd)]||_0x2cfc10['toString']()});});},function(){});}function _0x41ae63(_0x38a265){return _0x38a265===null?undefined:new Date(_0x38a265);}function _0x46fe04(_0x621aac){const _0x577462=_0x42eb33;_0x5877b7[_0x577462(0x2458)](_0x621aac);}}const _0x2bdba3=_0x4bfbf4;;const _0x21fb16=_0x4acfac['p']+_0x313a4d(0xf2f);;const _0x552101=_0x4acfac['p']+_0x313a4d(0x19a3);;const _0x52c5c2=_0x4acfac['p']+_0x313a4d(0x7f5);;const _0x109a85=_0x4acfac['p']+_0x313a4d(0x18a4);;const _0x217369=_0x4acfac['p']+_0x313a4d(0x1680);;const _0x3e8c8f=_0x4acfac['p']+'src/js/modules/main/apps/voice/views/internalroutes/edit/apps/hangup/dialog.html/dialog.html';;const _0x1e8387=_0x4acfac['p']+'src/js/modules/main/apps/voice/views/internalroutes/edit/apps/internaldial/dialog.html/dialog.html';;const _0x49e751=_0x4acfac['p']+_0x313a4d(0xc35);;const _0x436567=_0x4acfac['p']+_0x313a4d(0x2491);;const _0x14c287=_0x4acfac['p']+_0x313a4d(0xc78);;const _0x377871=_0x4acfac['p']+_0x313a4d(0xbc0);;const _0x331a2c=_0x4acfac['p']+_0x313a4d(0xceb);;const _0xea8075=_0x4acfac['p']+'src/js/modules/main/apps/voice/views/internalroutes/edit/apps/voicemail/dialog.html/dialog.html';;_0x54f76a[_0x313a4d(0x11c2)]=[_0x313a4d(0x247f),_0x313a4d(0x10e8),'$document',_0x313a4d(0x1fe4),_0x313a4d(0xa87)];const _0x3baf4a={'agi':_0x21fb16,'custom':_0x552101,'dial':_0x52c5c2,'externaldial':_0x109a85,'goto':_0x217369,'hangup':_0x3e8c8f,'internaldial':_0x1e8387,'interval':_0x49e751,'playback':_0x436567,'queue':_0x14c287,'ringgroup':_0x377871,'set':_0x331a2c,'voicemail':_0xea8075};function _0x54f76a(_0x3b5a51,_0x3c8db5,_0x362317,_0x496b2a,_0x48daef){const _0x4b117c=_0x313a4d,_0x79ae22=this;_0x79ae22[_0x4b117c(0x2321)]=_0x48daef[_0x4b117c(0xb12)](),_0x79ae22[_0x4b117c(0x86f)]={},_0x79ae22[_0x4b117c(0x26d8)]={'count':0x0,'rows':[]},_0x79ae22[_0x4b117c(0xf94)]=[],_0x79ae22['crudPermissions'],_0x79ae22[_0x4b117c(0x1a56)]={'sort':_0x4b117c(0xa6a)},_0x79ae22[_0x4b117c(0x8b0)]=_0x3f65c0()[_0x4b117c(0xa6f)](_0x3f65c0()[_0x4b117c(0x939)]([{'app':_0x4b117c(0x1b4e),'appType':'interval','type':_0x4b117c(0x182a),'types':[_0x4b117c(0xd85),_0x4b117c(0x1802),_0x4b117c(0x25f4)],'fields':[],'isApp':![]},{'app':'Queue','appType':_0x4b117c(0x1c72),'context':_0x4b117c(0x57e),'type':'Internal','options':'xX','appdata':_0x4b117c(0x1452),'icon':_0x4b117c(0x1205),'interval':_0x4b117c(0x1559),'answer':!![],'isApp':!![],'extraApi':[{'name':_0x4b117c(0xb02),'field':{'name':'sound','key':'save_name','prefix':_0x4b117c(0xe2e)},'route':_0x4b117c(0x126d),'filters':{'fields':_0x4b117c(0x222a),'sort':'name','nolimit':!![]},'permissions':{'section':0x3ef}},{'name':'queues','field':{'name':_0x4b117c(0x1c72),'key':_0x4b117c(0x19eb)},'route':'voiceQueue','filters':{'type':_0x4b117c(0x7b0),'fields':_0x4b117c(0x45e),'sort':_0x4b117c(0x19eb),'nolimit':!![]},'permissions':{'section':0x191}}],'fields':[{'title':_0x4b117c(0xe26),'name':_0x4b117c(0x1c72),'type':_0x4b117c(0x28c6),'values':_0x4b117c(0x1b32),'value':_0x4b117c(0x15b0),'option':_0x4b117c(0x15b0),'required':!![],'param':0x0},{'title':_0x4b117c(0x23ec),'name':'options','type':_0x4b117c(0xa8d),'param':0x1},{'title':_0x4b117c(0xae8),'name':'URL','type':_0x4b117c(0xa8d),'param':0x2},{'title':'Announce_Overrides','name':_0x4b117c(0x126d),'type':_0x4b117c(0x28c6),'values':_0x4b117c(0xb02),'value':_0x4b117c(0x9ef),'option':_0x4b117c(0x1c76),'defaultValues':[{'value':'\x27\x27','option':_0x4b117c(0x13dd)}],'param':0x3},{'title':'Timeout','name':_0x4b117c(0xa9c),'type':_0x4b117c(0x181),'min':0x0,'param':0x4},{'title':_0x4b117c(0x180e),'name':_0x4b117c(0x1ecb),'type':_0x4b117c(0xa8d),'param':0x5},{'title':_0x4b117c(0x18fc),'name':_0x4b117c(0x9d2),'type':_0x4b117c(0xa8d),'param':0x6},{'title':_0x4b117c(0x1260),'name':'gosub','type':'text','param':0x7},{'title':_0x4b117c(0xfd0),'name':_0x4b117c(0x95e),'type':_0x4b117c(0xa8d),'param':0x8},{'title':_0x4b117c(0x25b),'name':_0x4b117c(0x21ca),'type':_0x4b117c(0x181),'min':0x0,'param':0x9},{'title':_0x4b117c(0x21c0),'name':_0x4b117c(0x2336),'type':_0x4b117c(0x1197),'general':!![]}]},{'app':'Playback','appType':'playback','context':_0x4b117c(0x57e),'type':'Internal','icon':'icon-apps','interval':_0x4b117c(0x1559),'answer':!![],'isApp':!![],'extraApi':[{'name':'sounds','field':{'name':_0x4b117c(0x168a),'key':_0x4b117c(0xa3d),'prefix':_0x4b117c(0xe2e)},'route':_0x4b117c(0x126d),'filters':{'fields':_0x4b117c(0x222a),'sort':_0x4b117c(0x19eb),'nolimit':!![]},'permissions':{'section':0x3ef}}],'fields':[{'title':_0x4b117c(0x671),'name':'appdata','type':_0x4b117c(0x28c6),'values':'sounds','value':_0x4b117c(0x2130),'option':_0x4b117c(0x2227),'required':!![],'param':0x0},{'title':_0x4b117c(0x23ec),'name':'options','type':'text','param':0x1},{'title':'Answer','name':_0x4b117c(0x2336),'type':_0x4b117c(0x1197),'general':!![]}]},{'app':_0x4b117c(0x20fb),'appType':_0x4b117c(0xb98),'context':_0x4b117c(0x57e),'type':_0x4b117c(0x182a),'icon':_0x4b117c(0x1205),'options':'xX','interval':_0x4b117c(0x1559),'isApp':!![],'fields':[{'title':_0x4b117c(0x2599),'name':'tech','type':_0x4b117c(0xa8d),'required':!![],'param':0x0},{'title':_0x4b117c(0x5cc),'name':_0x4b117c(0xa9c),'type':_0x4b117c(0x181),'min':0x0,'param':0x1},{'title':_0x4b117c(0x23ec),'name':_0x4b117c(0xa08),'type':'text','param':0x2},{'title':'Url','name':_0x4b117c(0x20cc),'type':'text','param':0x3}]},{'app':_0x4b117c(0x20fb),'appType':'internalDial','context':_0x4b117c(0x57e),'type':_0x4b117c(0x182a),'icon':'icon-apps','options':'xX','interval':_0x4b117c(0x1559),'isApp':!![],'extraApi':[{'name':'users','field':{'name':_0x4b117c(0xe7b),'key':_0x4b117c(0x19eb),'prefix':_0x4b117c(0xc67)},'route':_0x4b117c(0xe7b),'filters':{'fields':_0x4b117c(0x245b),'sort':_0x4b117c(0x19eb),'nolimit':!![]},'permissions':{'sections':[{'id':0xca,'role':_0x4b117c(0x1755)},{'id':0xcb,'role':_0x4b117c(0x90c)}]}}],'fields':[{'title':'User','name':_0x4b117c(0xe7b),'type':_0x4b117c(0x28c6),'values':_0x4b117c(0x1995),'value':_0x4b117c(0x23a6),'option':_0x4b117c(0x742),'required':!![],'param':0x0},{'title':_0x4b117c(0x5cc),'name':_0x4b117c(0xa9c),'type':_0x4b117c(0x181),'min':0x0,'param':0x1},{'title':'Options','name':_0x4b117c(0xa08),'type':_0x4b117c(0xa8d),'param':0x2},{'title':_0x4b117c(0xae8),'name':_0x4b117c(0x20cc),'type':'text','param':0x3}]},{'app':_0x4b117c(0x20fb),'appType':_0x4b117c(0x2168),'context':_0x4b117c(0x57e),'type':_0x4b117c(0x182a),'icon':_0x4b117c(0x1205),'interval':'*,*,*,*','options':'xX','isApp':!![],'extraApi':[{'name':'trunks','field':{'name':_0x4b117c(0x279f),'key':_0x4b117c(0x19eb)},'route':_0x4b117c(0x279f),'filters':{'fields':_0x4b117c(0x7a7),'sort':'name','nolimit':!![]},'permissions':{'section':0x3f3}}],'fields':[{'title':_0x4b117c(0x13c4),'name':_0x4b117c(0x279f),'type':_0x4b117c(0x28c6),'values':'trunks','value':_0x4b117c(0x1845),'option':_0x4b117c(0x1845),'required':!![],'param':0x0},{'title':_0x4b117c(0x1184),'name':_0x4b117c(0x1d55),'type':'text'},{'title':_0x4b117c(0x5cc),'name':_0x4b117c(0xa9c),'type':_0x4b117c(0x181),'min':0x0,'param':0x1},{'title':_0x4b117c(0x23ec),'name':_0x4b117c(0xa08),'type':_0x4b117c(0xa8d),'param':0x2},{'title':_0x4b117c(0xae8),'name':'url','type':_0x4b117c(0xa8d),'param':0x3}]},{'app':_0x4b117c(0x20fb),'appType':_0x4b117c(0xd0c),'context':_0x4b117c(0x57e),'type':_0x4b117c(0x182a),'icon':_0x4b117c(0x1205),'interval':'*,*,*,*','options':'xX','isApp':!![],'extraApi':[{'name':_0x4b117c(0x1995),'field':{'name':_0x4b117c(0x96a),'key':_0x4b117c(0x19eb),'prefix':_0x4b117c(0xc67)},'route':_0x4b117c(0xe7b),'filters':{'fields':_0x4b117c(0x245b),'sort':'name','nolimit':!![]},'permissions':{'sections':[{'id':0xca,'role':_0x4b117c(0x1755)},{'id':0xcb,'role':_0x4b117c(0x90c)}]}}],'fields':[{'title':'User','name':_0x4b117c(0x96a),'type':_0x4b117c(0x28c6),'multiple':!![],'values':'users','value':_0x4b117c(0x1e52),'option':_0x4b117c(0x26dc),'required':!![],'param':0x0},{'title':_0x4b117c(0x5cc),'name':_0x4b117c(0xa9c),'type':_0x4b117c(0x181),'min':0x0,'param':0x1},{'title':'Options','name':_0x4b117c(0xa08),'type':_0x4b117c(0xa8d),'param':0x2},{'title':_0x4b117c(0xae8),'name':_0x4b117c(0x20cc),'type':_0x4b117c(0xa8d),'param':0x3}]},{'app':'AGI','alias':_0x4b117c(0x22cc),'appType':'agi','context':_0x4b117c(0x57e),'type':'Internal','icon':_0x4b117c(0x1205),'interval':_0x4b117c(0x1559),'isApp':!![],'extraApi':[{'name':_0x4b117c(0x1991),'field':{'name':_0x4b117c(0x9e0),'key':_0x4b117c(0x19eb),'prefix':_0x4b117c(0x1e2a)},'route':_0x4b117c(0x9b1),'filters':{'fields':_0x4b117c(0x7a7),'sort':_0x4b117c(0x19eb),'nolimit':!![]},'permissions':{'section':0x44f}}],'fields':[{'title':_0x4b117c(0x176d),'name':_0x4b117c(0x9e0),'type':_0x4b117c(0x28c6),'values':_0x4b117c(0x1991),'value':_0x4b117c(0x275f),'option':_0x4b117c(0x25c6),'required':!![],'param':0x0}]},{'app':'goto','appType':'goTo','context':_0x4b117c(0x57e),'type':_0x4b117c(0x182a),'icon':_0x4b117c(0x1205),'interval':_0x4b117c(0x1559),'isApp':!![],'extraApi':[{'name':_0x4b117c(0xfe9),'field':{'name':_0x4b117c(0x1ac1),'key':_0x4b117c(0x19eb)},'route':_0x4b117c(0x1b82),'filters':{'fields':_0x4b117c(0x7a7),'sort':_0x4b117c(0x19eb),'nolimit':!![]},'permissions':{'section':0x195}}],'fields':[{'title':_0x4b117c(0xc8c),'name':_0x4b117c(0x1ac1),'type':_0x4b117c(0x28c6),'values':_0x4b117c(0xfe9),'value':_0x4b117c(0x1dfe),'option':_0x4b117c(0x1dfe),'required':!![],'param':0x0},{'title':_0x4b117c(0x2768),'name':_0x4b117c(0x1bc6),'type':_0x4b117c(0xa8d),'required':!![],'param':0x1},{'title':'Priority','name':_0x4b117c(0xa6a),'type':_0x4b117c(0xa8d),'required':!![],'param':0x2}]},{'app':_0x4b117c(0x1dbf),'appType':_0x4b117c(0x1dbf),'context':_0x4b117c(0x57e),'type':'Internal','icon':'icon-apps','interval':'*,*,*,*','isApp':!![],'fields':[{'title':_0x4b117c(0x271d),'name':_0x4b117c(0x168a),'type':_0x4b117c(0xa5f),'param':0x0,'values':[{'option':_0x4b117c(0x2cc),'value':'\x271\x27'},{'option':'HANGUPCAUSE_16','value':'\x2716\x27'},{'option':_0x4b117c(0x16ef),'value':_0x4b117c(0x12ce)},{'option':_0x4b117c(0x13d2),'value':'\x2718\x27'},{'option':'HANGUPCAUSE_21','value':'\x2721\x27'},{'option':_0x4b117c(0x272b),'value':'\x2722\x27'},{'option':_0x4b117c(0xab5),'value':_0x4b117c(0xb13)},{'option':_0x4b117c(0x24ed),'value':_0x4b117c(0x5b9)},{'option':'HANGUPCAUSE_41','value':_0x4b117c(0x2048)}],'translate':!![],'required':!![],'general':!![]}]},{'app':_0x4b117c(0x124f),'appType':_0x4b117c(0x26ba),'context':_0x4b117c(0x57e),'type':_0x4b117c(0x182a),'separator':'=','icon':_0x4b117c(0x1205),'interval':'*,*,*,*','extraApi':[{'name':_0x4b117c(0x85b),'field':{'name':'name','key':_0x4b117c(0x19eb)},'route':_0x4b117c(0x212),'filters':{'fields':_0x4b117c(0x7a7),'sort':'name','nolimit':!![]},'permissions':{'section':0x3f4}}],'isApp':!![],'fields':[{'title':_0x4b117c(0x182),'name':'name','type':_0x4b117c(0x28c6),'values':_0x4b117c(0x85b),'value':'name.name','option':_0x4b117c(0x17ac),'required':!![],'param':0x0},{'title':_0x4b117c(0x2193),'name':_0x4b117c(0x175d),'type':_0x4b117c(0xa8d),'required':!![],'param':0x1}]},{'app':null,'appType':_0x4b117c(0x1802),'icon':'icon-apps','type':'Internal','interval':'*,*,*,*','isApp':!![],'fields':[{'title':_0x4b117c(0x1b64),'name':'app','type':'text','required':!![],'param':0x0},{'title':'Arguments','name':'appdata','type':_0x4b117c(0xa8d),'param':0x1}]},{'app':_0x4b117c(0x2859),'appType':'voicemail','context':_0x4b117c(0x57e),'icon':_0x4b117c(0x1205),'type':_0x4b117c(0x182a),'interval':_0x4b117c(0x1559),'isApp':!![],'extraApi':[{'name':'voiceMails','field':{'name':_0x4b117c(0xe8c),'key':'mailbox','suffix':_0x4b117c(0x225b)},'route':_0x4b117c(0xe8c),'filters':{'fields':_0x4b117c(0x116d),'sort':'mailbox','nolimit':!![]},'permissions':{'section':0x196}}],'fields':[{'title':_0x4b117c(0x1a7e),'name':_0x4b117c(0xe8c),'type':_0x4b117c(0x28c6),'values':_0x4b117c(0xcb1),'value':_0x4b117c(0x199e),'option':_0x4b117c(0xa58),'required':!![],'param':0x0},{'title':_0x4b117c(0x23ec),'name':_0x4b117c(0xa08),'type':_0x4b117c(0xa8d),'param':0x1}]}],[_0x4b117c(0x1873)]),{'isApp':![]}),_0x79ae22[_0x4b117c(0x25f4)]={'group':{'name':'opt1','pull':_0x4b117c(0x12cc)},'animation':0x64,'sort':![]},_0x79ae22[_0x4b117c(0x25fc)]={'group':{'name':_0x4b117c(0x916),'put':_0x4b117c(0x156c)},'animation':0x64,'onAdd':function(_0x557c59){const _0x5a6434=_0x4b117c;_0x2b5fda(_0x557c59,_0x557c59[_0x5a6434(0x154d)]);},'onSort':function(){_0x515f91();}},_0x79ae22[_0x4b117c(0x5aa)]=_0x26320e,_0x79ae22[_0x4b117c(0x19b4)]=_0x2393af,_0x79ae22['getInternalRouteApps']=_0x4ff092,_0x79ae22['editInternalRouteApp']=_0x2b5fda,_0x79ae22[_0x4b117c(0x285b)]=_0x3f663,_0x79ae22['deleteInternalRouteApp']=_0x1a9dbc,_0x79ae22['deleteSelectedInternalRouteApps']=_0x5a0123,_0x79ae22[_0x4b117c(0x1450)]=_0x515f91,_0x79ae22[_0x4b117c(0x1c1c)]=_0x3b617e;function _0x26320e(_0x1a37ad,_0x5c8660){const _0xc34150=_0x4b117c;_0x79ae22[_0xc34150(0x86f)]=_0x1a37ad,_0x79ae22[_0xc34150(0x2514)]=typeof _0x5c8660!==_0xc34150(0x2274)?_0x5c8660:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x79ae22[_0xc34150(0x25fc)][_0xc34150(0x2862)]=!_0x79ae22[_0xc34150(0x2514)][_0xc34150(0x15f4)]?!![]:![],_0x79ae22[_0xc34150(0x1a56)][_0xc34150(0x1f3f)]=_0x1a37ad['id'],_0x79ae22[_0xc34150(0x1a56)][_0xc34150(0x16f6)]=!![],_0x79ae22[_0xc34150(0x1a56)]['nolimit']=!![],_0x79ae22[_0xc34150(0x260)](),_0x79ae22[_0xc34150(0x1c1c)]();}function _0x2393af(_0x23c2ac,_0x3b2589,_0x4669ec){const _0x2ea2fb=_0x4b117c,_0x24a784=_0x3c8db5['confirm']()['title'](_0x2ea2fb(0x1058))[_0x2ea2fb(0x1cbe)](_0x2ea2fb(0x16d3)+_0x23c2ac[_0x2ea2fb(0x1873)]+''+_0x2ea2fb(0xe01))['ariaLabel'](_0x2ea2fb(0x847))[_0x2ea2fb(0x1f27)](_0x4669ec)['ok']('OK')[_0x2ea2fb(0x6c3)]('CANCEL');_0x3c8db5[_0x2ea2fb(0x2615)](_0x24a784)['then'](function(){const _0x38b17a=_0x2ea2fb;_0x79ae22[_0x38b17a(0x26d8)]['rows'][_0x38b17a(0x1f7d)](_0x3b2589,0x1),_0x515f91();},function(){const _0x1e49ad=_0x2ea2fb;console[_0x1e49ad(0x1a74)](_0x1e49ad(0x39a));});}function _0x2b5fda(_0x37532a,_0x3c4278){const _0x3661e7=_0x4b117c;if(_0x79ae22[_0x3661e7(0x26d8)]['rows'][_0x3661e7(0x402)]){const _0xc43cb=_0x79ae22[_0x3661e7(0x26d8)][_0x3661e7(0x19c7)][_0x3c4278]?_0x79ae22[_0x3661e7(0x26d8)][_0x3661e7(0x19c7)][_0x3c4278]:_0x79ae22[_0x3661e7(0x26d8)][_0x3661e7(0x19c7)][0x0],_0x4ae209=(_0xc43cb[_0x3661e7(0x8f2)]||_0xc43cb['app'])[_0x3661e7(0x256e)]();_0x3c8db5[_0x3661e7(0x2615)]({'controller':_0x3661e7(0x25e1)+_0x4ae209+_0x3661e7(0x76a),'controllerAs':'vm','templateUrl':_0x3baf4a[_0x4ae209],'parent':angular[_0x3661e7(0x1853)](_0x362317[_0x3661e7(0x2586)]),'targetEvent':_0x37532a,'clickOutsideToClose':!![],'locals':{'internalrouteApp':_0xc43cb,'internalroute':_0x79ae22[_0x3661e7(0x86f)],'crudPermissions':_0x79ae22[_0x3661e7(0x2514)]}})['then'](function(_0x1d2c32){const _0x362281=_0x3661e7;_0x1d2c32&&(_0x1d2c32['id']?_0x79ae22[_0x362281(0x26d8)][_0x362281(0x19c7)][_0x3c4278]=_0x1d2c32:_0x79ae22[_0x362281(0x26d8)]['rows']['splice'](_0x3c4278,0x0,_0x1d2c32),_0x515f91());})[_0x3661e7(0x129e)](function(_0x926ece){const _0x154076=_0x3661e7;_0x926ece&&_0x496b2a[_0x154076(0x1980)]({'title':_0x926ece[_0x154076(0x107b)]?'API:'+_0x926ece[_0x154076(0x107b)]+_0x154076(0x1315)+_0x926ece['statusText']:_0x154076(0x10a0),'msg':_0x926ece[_0x154076(0x524)]?JSON[_0x154076(0x10bb)](_0x926ece['data']):_0x926ece[_0x154076(0xd5f)]()});});}}function _0x3f663(_0x46ce48,_0x51cc83){const _0x4db215=_0x4b117c;if(_0x79ae22[_0x4db215(0x26d8)]['rows'][_0x4db215(0x402)]){const _0x507d95=_0x79ae22[_0x4db215(0x26d8)][_0x4db215(0x19c7)][_0x51cc83]?_0x79ae22[_0x4db215(0x26d8)][_0x4db215(0x19c7)][_0x51cc83]:_0x79ae22[_0x4db215(0x26d8)][_0x4db215(0x19c7)][0x0];_0x3c8db5[_0x4db215(0x2615)]({'controller':_0x4db215(0x2577),'controllerAs':'vm','templateUrl':_0x49e751,'parent':angular[_0x4db215(0x1853)](_0x362317['body']),'targetEvent':_0x46ce48,'clickOutsideToClose':!![],'locals':{'interval':{'interval':_0x507d95[_0x4db215(0x2765)],'IntervalId':_0x507d95[_0x4db215(0x1ff2)],'application':!![]},'intervals':[],'crudPermissions':_0x79ae22['crudPermissions']}})['then'](function(_0x4ef4ff){const _0x3be25f=_0x4db215;_0x4ef4ff&&(_0x507d95[_0x3be25f(0x2765)]=_0x4ef4ff[_0x3be25f(0x2765)]||'*,*,*,*',_0x507d95[_0x3be25f(0x1ff2)]=_0x4ef4ff[_0x3be25f(0x1ff2)]||null,_0x515f91());});}}function _0x515f91(){const _0x534f08=_0x4b117c,_0x4cc4e3=[_0x534f08(0x1c72),_0x534f08(0x288a)];let _0x4aefd9=0x2,_0x5ea5fc=[];_0x5ea5fc[_0x534f08(0x1f47)]({'type':_0x534f08(0x113f),'app':_0x534f08(0x124f),'appdata':_0x534f08(0x174),'context':_0x79ae22[_0x534f08(0x86f)]['context'],'exten':_0x79ae22['internalroute']['exten'],'priority':_0x4aefd9++,'VoiceExtensionId':_0x79ae22['internalroute']['id']}),_0x5ea5fc[_0x534f08(0x1f47)]({'type':_0x534f08(0x113f),'app':'Set','appdata':_0x534f08(0x209),'context':_0x79ae22['internalroute'][_0x534f08(0x1ac1)],'exten':_0x79ae22['internalroute'][_0x534f08(0x19b2)],'priority':_0x4aefd9++,'VoiceExtensionId':_0x79ae22[_0x534f08(0x86f)]['id']}),_0x5ea5fc['push']({'type':_0x534f08(0x113f),'app':_0x534f08(0x124f),'appdata':'XCALLY-MOTION-PROGRESS=0','context':_0x79ae22['internalroute']['context'],'exten':_0x79ae22[_0x534f08(0x86f)][_0x534f08(0x19b2)],'priority':_0x4aefd9++,'VoiceExtensionId':_0x79ae22['internalroute']['id']}),_0x5ea5fc[_0x534f08(0x1f47)]({'type':'internal','app':_0x534f08(0x124f),'appdata':'MONITOR_OPTIONS=ab','context':_0x79ae22[_0x534f08(0x86f)][_0x534f08(0x1ac1)],'exten':_0x79ae22[_0x534f08(0x86f)][_0x534f08(0x19b2)],'priority':_0x4aefd9++,'VoiceExtensionId':_0x79ae22[_0x534f08(0x86f)]['id']});for(let _0x265849=0x0,_0x40f611=0x0;_0x265849<_0x79ae22[_0x534f08(0x26d8)]['rows'][_0x534f08(0x402)];_0x265849++,_0x40f611=0x0){const _0x4a4cf7=_0x79ae22['internalrouteApps'][_0x534f08(0x19c7)][_0x265849],_0x27478c=[],_0x3859d7=[];_0x4a4cf7[_0x534f08(0x278f)]=_0x4a4cf7[_0x534f08(0x2765)]!=='*,*,*,*'?[_0x4a4cf7[_0x534f08(0x2765)]]:_0x4a4cf7['IntervalId']?_0x3f65c0()[_0x534f08(0x205)](_0x3f65c0()[_0x534f08(0x1dd6)](_0x79ae22[_0x534f08(0x278f)]['rows'],{'IntervalId':_0x4a4cf7['IntervalId']}),_0x534f08(0x2765)):[],_0x4a4cf7['context']=_0x79ae22[_0x534f08(0x86f)][_0x534f08(0x1ac1)],_0x4a4cf7['exten']=_0x79ae22['internalroute'][_0x534f08(0x19b2)];_0x4a4cf7[_0x534f08(0x1142)]&&(_0x4a4cf7[_0x534f08(0x1142)]=_0x4a4cf7[_0x534f08(0x1142)][_0x534f08(0x256e)]());typeof _0x4a4cf7['answer']!==_0x534f08(0x2274)&&(_0x4cc4e3['includes'](_0x4a4cf7[_0x534f08(0x1873)][_0x534f08(0x256e)]())&&_0x4a4cf7[_0x534f08(0x8f2)]!==_0x534f08(0x1802)&&(_0x4a4cf7['answer']?(_0x27478c[_0x534f08(0x1f47)]({'type':_0x4a4cf7[_0x534f08(0x1142)][_0x534f08(0x256e)](),'app':'ExecIf','appdata':_0x534f08(0x1a64),'context':_0x79ae22['internalroute']['context'],'exten':_0x79ae22[_0x534f08(0x86f)]['exten'],'priority':_0x4a4cf7[_0x534f08(0x278f)][_0x534f08(0x402)]+_0x4aefd9+_0x40f611++,'VoiceExtensionId':_0x79ae22[_0x534f08(0x86f)]['id']}),_0x27478c[_0x534f08(0x1f47)]({'type':_0x4a4cf7[_0x534f08(0x1142)]['toLowerCase'](),'app':_0x534f08(0x124f),'appdata':_0x534f08(0x1a60),'context':_0x79ae22[_0x534f08(0x86f)][_0x534f08(0x1ac1)],'exten':_0x79ae22[_0x534f08(0x86f)]['exten'],'priority':_0x4a4cf7[_0x534f08(0x278f)][_0x534f08(0x402)]+_0x4aefd9+_0x40f611++,'VoiceExtensionId':_0x79ae22[_0x534f08(0x86f)]['id']})):(_0x27478c[_0x534f08(0x1f47)]({'type':_0x4a4cf7['type']['toLowerCase'](),'app':_0x534f08(0xf74),'appdata':'$[${XCALLY-MOTION-PROGRESS}=0]?Progress','context':_0x79ae22['internalroute'][_0x534f08(0x1ac1)],'exten':_0x79ae22[_0x534f08(0x86f)]['exten'],'priority':_0x4a4cf7[_0x534f08(0x278f)][_0x534f08(0x402)]+_0x4aefd9+_0x40f611++,'VoiceExtensionId':_0x79ae22['internalroute']['id']}),_0x27478c[_0x534f08(0x1f47)]({'type':_0x4a4cf7[_0x534f08(0x1142)][_0x534f08(0x256e)](),'app':_0x534f08(0x124f),'appdata':_0x534f08(0x11fa),'context':_0x79ae22[_0x534f08(0x86f)][_0x534f08(0x1ac1)],'exten':_0x79ae22['internalroute'][_0x534f08(0x19b2)],'priority':_0x4a4cf7[_0x534f08(0x278f)]['length']+_0x4aefd9+_0x40f611++,'VoiceExtensionId':_0x79ae22[_0x534f08(0x86f)]['id']}))));for(let _0x323096=0x0;_0x323096<_0x4a4cf7[_0x534f08(0x278f)][_0x534f08(0x402)];_0x323096++){const _0x176555=_0x4aefd9+_0x4a4cf7[_0x534f08(0x278f)][_0x534f08(0x402)],_0x129b9d=_0x323096===_0x4a4cf7[_0x534f08(0x278f)][_0x534f08(0x402)]-0x1?_0x4aefd9+_0x27478c[_0x534f08(0x402)]+_0x3859d7[_0x534f08(0x402)]+0x2:_0x4aefd9+_0x323096+0x1;_0x27478c[_0x534f08(0x1f7d)](_0x323096,0x0,{'type':_0x534f08(0x113f),'app':'GotoIfTime','appdata':_0x4a4cf7['intervals'][_0x323096]+'?'+_0x79ae22[_0x534f08(0x86f)][_0x534f08(0x1ac1)]+_0x534f08(0x2770)+_0x176555+':'+_0x79ae22[_0x534f08(0x86f)][_0x534f08(0x1ac1)]+_0x534f08(0x2770)+_0x129b9d,'exten':_0x79ae22[_0x534f08(0x86f)][_0x534f08(0x19b2)],'context':_0x79ae22[_0x534f08(0x86f)]['context'],'priority':_0x4aefd9+_0x323096,'VoiceExtensionId':_0x79ae22['internalroute']['id']});}_0x4a4cf7[_0x534f08(0xa6a)]=_0x27478c[_0x534f08(0x402)]?_0x3f65c0()[_0x534f08(0x22f2)](_0x27478c)[_0x534f08(0xa6a)]+0x1:_0x4aefd9,_0x4aefd9=(_0x3859d7[_0x534f08(0x402)]?_0x3f65c0()[_0x534f08(0x22f2)](_0x3859d7)[_0x534f08(0xa6a)]:_0x4a4cf7['priority'])+0x1,_0x5ea5fc=_0x3f65c0()[_0x534f08(0x163c)](_0x5ea5fc,_0x27478c,[_0x4a4cf7],_0x3859d7);}_0x5ea5fc[_0x534f08(0x1f47)]({'type':_0x534f08(0x113f),'app':'Hangup','exten':_0x79ae22['internalroute'][_0x534f08(0x19b2)],'context':_0x79ae22[_0x534f08(0x86f)][_0x534f08(0x1ac1)],'priority':_0x4aefd9,'VoiceExtensionId':_0x79ae22[_0x534f08(0x86f)]['id']}),_0x3b5a51[_0x534f08(0xd47)][_0x534f08(0x1711)]({'id':_0x79ae22[_0x534f08(0x86f)]['id']},_0x3f65c0()['sortBy'](_0x5ea5fc,_0x534f08(0xa6a)))[_0x534f08(0x2945)][_0x534f08(0x146b)](function(_0x50839a){const _0x25e336=_0x534f08;_0x79ae22[_0x25e336(0x26d8)][_0x25e336(0x19c7)]=_0x50839a[_0x25e336(0x19c7)];})[_0x534f08(0x129e)](function(_0x529768){const _0x266433=_0x534f08;console[_0x266433(0x1980)](_0x529768);});}function _0x486a9f(_0x3092e0){_0x79ae22['internalrouteApps']=_0x3092e0||{'count':0x0,'rows':[]};}function _0x3b617e(){const _0x323f62=_0x4b117c;return _0x3b5a51[_0x323f62(0x2765)][_0x323f62(0x16b4)]({'fields':_0x323f62(0x2749)})['$promise'][_0x323f62(0x146b)](function(_0x1c7589){const _0x5920ea=_0x323f62;_0x79ae22[_0x5920ea(0x278f)]=_0x1c7589;})[_0x323f62(0x129e)](function(_0x12a150){const _0x15099d=_0x323f62;console[_0x15099d(0x1980)](_0x12a150);});}function _0x4ff092(){const _0x4bef23=_0x4b117c;_0x79ae22[_0x4bef23(0xb9c)]=_0x3b5a51[_0x4bef23(0xd47)][_0x4bef23(0x16b4)](_0x79ae22[_0x4bef23(0x1a56)],_0x486a9f)[_0x4bef23(0x2945)];}function _0x1a9dbc(_0x1fbc14){const _0x32095d=_0x4b117c;_0x3f65c0()['remove'](_0x79ae22[_0x32095d(0x26d8)][_0x32095d(0x19c7)],{'id':_0x1fbc14['id']}),_0x515f91(),_0x496b2a['success']({'title':'App\x20deleted!','msg':_0x1fbc14['app']?_0x1fbc14[_0x32095d(0x1873)]+'\x20has\x20been\x20deleted!':''});}function _0x5a0123(_0x28805f){const _0x1c8ce2=_0x4b117c,_0x463658=_0x3c8db5['confirm']()[_0x1c8ce2(0x1189)](_0x1c8ce2(0x1d9f))[_0x1c8ce2(0x1cbe)](''+_0x79ae22[_0x1c8ce2(0xf94)][_0x1c8ce2(0x402)]+'\x20selected'+_0x1c8ce2(0xe01))[_0x1c8ce2(0x4bd)](_0x1c8ce2(0x2674))[_0x1c8ce2(0x1f27)](_0x28805f)['ok']('OK')[_0x1c8ce2(0x6c3)](_0x1c8ce2(0x39a));_0x3c8db5['show'](_0x463658)[_0x1c8ce2(0x146b)](function(){const _0x1de95c=_0x1c8ce2;_0x79ae22[_0x1de95c(0xf94)]['forEach'](function(_0xd84ddf){const _0x1bb71a=_0x1de95c;_0x3f65c0()[_0x1bb71a(0x2640)](_0x79ae22['internalrouteApps'][_0x1bb71a(0x19c7)],{'id':_0xd84ddf['id']});}),_0x79ae22[_0x1de95c(0xf94)]=[],_0x515f91();});}}const _0xae6248=_0x54f76a;;_0x5481ba[_0x313a4d(0x11c2)]=[_0x313a4d(0x10e8),'$q',_0x313a4d(0x1fe4),_0x313a4d(0x1492),'internalroute','api','Auth','crudPermissions'];function _0x5481ba(_0x438ede,_0x671773,_0x1b75eb,_0x48f2af,_0x390c27,_0x4a60b5,_0x517081,_0x512652){const _0x438536=_0x313a4d,_0xdc71f=this;_0xdc71f[_0x438536(0x2321)]=_0x517081[_0x438536(0xb12)](),_0xdc71f['errors']=[],_0xdc71f[_0x438536(0x1189)]=_0x438536(0x1950)+(_0x48f2af[_0x438536(0x8f2)]||_0x48f2af[_0x438536(0x1873)])[_0x438536(0x1c37)](),_0xdc71f[_0x438536(0x1ecb)]=angular[_0x438536(0x235a)](_0x48f2af),_0xdc71f[_0x438536(0x2514)]=_0x512652,_0xdc71f[_0x438536(0x855)]={};if(_0xdc71f['agi'][_0x438536(0x168a)])switch(_0xdc71f['agi'][_0x438536(0x8f2)]?_0xdc71f['agi'][_0x438536(0x8f2)][_0x438536(0x256e)]():_0xdc71f['agi']['app'][_0x438536(0x256e)]()){case'custom':break;case _0x438536(0xeaa):{const _0x588030=_0xdc71f[_0x438536(0x1ecb)][_0x438536(0x168a)][_0x438536(0x10c8)](',');_0xdc71f['agi'][_0x438536(0x2293)]=_0x588030[0x0],_0xdc71f[_0x438536(0x1ecb)][_0x438536(0x90b)]=_0x588030[0x1],_0xdc71f[_0x438536(0x1ecb)][_0x438536(0xaf3)]=_0x588030['slice'](0x2,_0x588030[_0x438536(0x402)])[_0x438536(0xb47)](',');}break;case'dialogflowv2':{const _0x14ffeb=_0xdc71f[_0x438536(0x1ecb)][_0x438536(0x168a)][_0x438536(0x10c8)](',');_0xdc71f[_0x438536(0x1ecb)][_0x438536(0x153a)]=_0x14ffeb[0x0],_0xdc71f[_0x438536(0x1ecb)][_0x438536(0x1392)]=_0x14ffeb[0x1],_0xdc71f['agi'][_0x438536(0x2217)]=_0x14ffeb[0x2],_0xdc71f['agi']['language']=_0x14ffeb[0x3],_0xdc71f['agi'][_0x438536(0xaf3)]=_0x14ffeb[_0x438536(0x1298)](0x4,_0x14ffeb[_0x438536(0x402)])[_0x438536(0xb47)](',');}break;case _0x438536(0x17d6):{const _0x5a5d3a=_0xdc71f[_0x438536(0x1ecb)][_0x438536(0x168a)][_0x438536(0x10c8)](',');_0xdc71f[_0x438536(0x1ecb)]['accesskeyid']=_0x5a5d3a[0x0],_0xdc71f[_0x438536(0x1ecb)][_0x438536(0x252)]=_0x5a5d3a[0x1],_0xdc71f[_0x438536(0x1ecb)][_0x438536(0x1039)]=_0x5a5d3a[0x2],_0xdc71f[_0x438536(0x1ecb)][_0x438536(0x8dd)]=_0x5a5d3a[0x3],_0xdc71f[_0x438536(0x1ecb)][_0x438536(0xaf3)]=_0x5a5d3a[_0x438536(0x1298)](0x4,_0x5a5d3a[_0x438536(0x402)])[_0x438536(0xb47)](',');}break;case _0x438536(0x1713):{const _0x34e34f=_0xdc71f[_0x438536(0x1ecb)][_0x438536(0x168a)][_0x438536(0x10c8)](',');_0xdc71f[_0x438536(0x1ecb)][_0x438536(0x583)]=isNaN(_0x34e34f[0x0])?_0x34e34f[0x0]:parseInt(_0x34e34f[0x0],0xa),_0xdc71f['agi'][_0x438536(0xa8d)]=_0x34e34f[_0x438536(0x1298)](0x1,_0x34e34f[_0x438536(0x402)])[_0x438536(0xb47)](',');}break;case _0x438536(0x7fd):_0xdc71f['agi']['text']=_0xdc71f[_0x438536(0x1ecb)]['appdata'];break;case'set':_0xdc71f[_0x438536(0x1ecb)][_0x438536(0x19eb)]=_0xdc71f[_0x438536(0x1ecb)][_0x438536(0x168a)][_0x438536(0x10c8)]('=')[0x0],_0xdc71f['agi'][_0x438536(0x175d)]=_0xdc71f['agi'][_0x438536(0x168a)][_0x438536(0x10c8)]('=')[0x1];break;case _0x438536(0x1ecb):_0xdc71f['agi']['project']=_0xdc71f[_0x438536(0x1ecb)][_0x438536(0x168a)];break;default:{const _0x309e97=_0xdc71f['agi'][_0x438536(0x168a)]['split'](',');_0xdc71f['agi'][_0x438536(0x9e0)]=_0x3f65c0()[_0x438536(0x2635)](_0x309e97[0x0])?_0x309e97[0x0]:isNaN(_0x309e97[0x0])?_0x309e97[0x0]:parseInt(_0x309e97[0x0],0xa);}break;}else{}_0xdc71f[_0x438536(0x1ecb)][_0x438536(0x1142)]&&_0xdc71f['agi'][_0x438536(0x1142)][_0x438536(0x256e)]()==='outbound'&&_0xdc71f[_0x438536(0x1ecb)][_0x438536(0x8f2)][_0x438536(0x256e)]()===_0x438536(0x3bb)&&(_0xdc71f[_0x438536(0x1ecb)]['prefix']=_0xdc71f[_0x438536(0x1ecb)]['phone']?_0xdc71f[_0x438536(0x1ecb)][_0x438536(0x1d55)][_0x438536(0x10c8)]('$')[0x0]:undefined,_0xdc71f[_0x438536(0x1ecb)][_0x438536(0x1d43)]=_0xdc71f['agi'][_0x438536(0x11be)]?_0x438536(0x1b60)+_0xdc71f[_0x438536(0x1ecb)][_0x438536(0x11be)]:undefined);_0xdc71f['saveInternalRouteApp']=_0x122ad5,_0xdc71f[_0x438536(0x13f3)]=_0x3d51f5,_0x517081['hasRole'](_0x438536(0x174b))?_0x4a60b5[_0x438536(0x9b1)][_0x438536(0x16b4)]({'fields':_0x438536(0x7a7),'sort':'name','nolimit':_0x438536(0x1185)})[_0x438536(0x2945)][_0x438536(0x146b)](function(_0x3b82b5){_0xdc71f['projects']=_0x3b82b5['rows']||[];})[_0x438536(0x129e)](function(_0x271afd){const _0x41ac78=_0x438536;_0x1b75eb[_0x41ac78(0x1980)]({'title':_0x271afd[_0x41ac78(0x107b)]?_0x41ac78(0x262a)+_0x271afd[_0x41ac78(0x107b)]+_0x41ac78(0x1315)+_0x271afd['statusText']:'SYSTEM:GET_PROJECTS','msg':_0x271afd[_0x41ac78(0x524)]?JSON[_0x41ac78(0x10bb)](_0x271afd['data']):_0x271afd[_0x41ac78(0xd5f)]()});}):_0x4a60b5[_0x438536(0x9b1)]['get']({'fields':'id,name','sort':_0x438536(0x19eb),'nolimit':_0x438536(0x1185)})[_0x438536(0x2945)][_0x438536(0x146b)](function(_0x3815c7){const _0x3bb1ea=_0x438536;_0xdc71f[_0x3bb1ea(0x1991)]=_0x3815c7[_0x3bb1ea(0x19c7)]||[];})['then'](function(){const _0x47da07=_0x438536;return _0x4a60b5[_0x47da07(0x1366)][_0x47da07(0x16b4)]({'userProfileId':_0xdc71f['currentUser'][_0x47da07(0x209a)],'sectionId':0x44f})[_0x47da07(0x2945)];})[_0x438536(0x146b)](function(_0x48eae6){const _0x47cbee=_0x438536,_0x2f7c1d=_0x48eae6&&_0x48eae6[_0x47cbee(0x19c7)]?_0x48eae6[_0x47cbee(0x19c7)][0x0]:null;if(!_0x2f7c1d){const _0x180921=[];let _0x191f2e=null;_0xdc71f[_0x47cbee(0x1ecb)]&&(_0x191f2e=_0x3f65c0()[_0x47cbee(0xc84)](_0xdc71f[_0x47cbee(0x1991)],{'name':_0xdc71f[_0x47cbee(0x1ecb)]['project']}));for(let _0x2af8b7=0x0;_0x2af8b7<_0xdc71f[_0x47cbee(0x1991)][_0x47cbee(0x402)];_0x2af8b7++){_0x191f2e&&_0xdc71f[_0x47cbee(0x1991)][_0x2af8b7]['id']===_0x191f2e['id']&&(_0xdc71f['projects'][_0x2af8b7][_0x47cbee(0x8ff)]=![],_0x180921[_0x47cbee(0x1f47)](_0xdc71f['projects'][_0x2af8b7]));}_0xdc71f[_0x47cbee(0x1991)]=_0x180921;}else{if(!_0x2f7c1d['autoAssociation'])return _0x4a60b5[_0x47cbee(0xdcc)][_0x47cbee(0x16b4)]({'sectionId':_0x2f7c1d['id']})[_0x47cbee(0x2945)][_0x47cbee(0x146b)](function(_0x485738){const _0x47a0c7=_0x47cbee,_0x13daf7=_0x3f65c0()[_0x47a0c7(0x205)](_0x485738['rows'],function(_0x388174){const _0xfbc29e=_0x47a0c7;return _0x3f65c0()[_0xfbc29e(0xc84)](_0xdc71f[_0xfbc29e(0x1991)],{'id':_0x388174['resourceId']});});let _0x53b53f=null;_0xdc71f[_0x47a0c7(0x1ecb)]&&(_0x53b53f=_0x3f65c0()['find'](_0xdc71f['projects'],{'name':_0xdc71f[_0x47a0c7(0x1ecb)][_0x47a0c7(0x9e0)]}));if(_0x53b53f&&!_0x3f65c0()['some'](_0x13daf7,['id',_0x53b53f['id']])){const _0x2e26be=_0x3f65c0()[_0x47a0c7(0xc84)](_0xdc71f[_0x47a0c7(0x1991)],{'id':_0x53b53f['id']});_0x2e26be[_0x47a0c7(0x8ff)]=![],_0x13daf7[_0x47a0c7(0x1f47)](_0x2e26be);}_0xdc71f['projects']=_0x13daf7;});}})['catch'](function(_0x3a49a3){const _0x385333=_0x438536;_0x1b75eb['error']({'title':_0x3a49a3[_0x385333(0x107b)]?_0x385333(0x262a)+_0x3a49a3[_0x385333(0x107b)]+'\x20-\x20'+_0x3a49a3[_0x385333(0x167f)]:'SYSTEM:GETprojects','msg':_0x3a49a3['data']?JSON['stringify'](_0x3a49a3['data']):_0x3a49a3[_0x385333(0xd5f)]()});});function _0x122ad5(){const _0x20b8e5=_0x438536;_0xdc71f['errors']=[];const _0x158427=[];_0xdc71f[_0x20b8e5(0x1ecb)]['type']&&_0xdc71f[_0x20b8e5(0x1ecb)][_0x20b8e5(0x1142)]['toLowerCase']()===_0x20b8e5(0xc9c)&&_0xdc71f[_0x20b8e5(0x1ecb)][_0x20b8e5(0x8f2)]==='outboundDial'&&(_0xdc71f[_0x20b8e5(0x1ecb)][_0x20b8e5(0x1d55)]=_0x390c27[_0x20b8e5(0x1274)]?(_0xdc71f['agi']['prefix']||'')+_0x20b8e5(0x2147)+_0x390c27['cutdigits']+'}':(_0xdc71f['agi']['prefix']||'')+_0x20b8e5(0x20df),_0x390c27['recordingFormat']!==_0x20b8e5(0x1642)?_0xdc71f[_0x20b8e5(0x1ecb)][_0x20b8e5(0xa08)]['indexOf'](_0x20b8e5(0x1ea4))<0x0&&(_0xdc71f[_0x20b8e5(0x1ecb)][_0x20b8e5(0xa08)]+=_0x20b8e5(0x1ea4)):_0xdc71f[_0x20b8e5(0x1ecb)][_0x20b8e5(0xa08)]=_0xdc71f[_0x20b8e5(0x1ecb)][_0x20b8e5(0xa08)][_0x20b8e5(0x5f4)](_0x20b8e5(0x1ea4),''));if(_0xdc71f[_0x20b8e5(0x1ecb)][_0x20b8e5(0x8f2)]&&_0xdc71f[_0x20b8e5(0x1ecb)][_0x20b8e5(0x8f2)]===_0x20b8e5(0x1802)){}else switch((_0xdc71f[_0x20b8e5(0x1ecb)]['app']||_0xdc71f[_0x20b8e5(0x1ecb)][_0x20b8e5(0x8f2)])[_0x20b8e5(0x256e)]()){case _0x20b8e5(0x26ba):_0xdc71f['agi'][_0x20b8e5(0x168a)]=_0xdc71f[_0x20b8e5(0x1ecb)]['name']+'='+_0xdc71f['agi'][_0x20b8e5(0x175d)];break;case'custom':break;default:_0x158427[0x0]=_0xdc71f[_0x20b8e5(0x1ecb)][_0x20b8e5(0x9e0)],_0xdc71f[_0x20b8e5(0x1ecb)][_0x20b8e5(0x168a)]=_0x158427[_0x20b8e5(0xb47)](',');}_0x3d51f5(_0xdc71f['agi']);}function _0x3d51f5(_0x172d56){const _0x2aa494=_0x438536;_0x438ede[_0x2aa494(0x2458)](_0x172d56);}}const _0x57a848=_0x5481ba;;_0x2878af[_0x313a4d(0x11c2)]=[_0x313a4d(0x10e8),'$q','toasty',_0x313a4d(0x1492),_0x313a4d(0x86f),_0x313a4d(0x247f),'Auth',_0x313a4d(0x2514)];function _0x2878af(_0x4d86e2,_0xed3bd7,_0x5571ec,_0x29c03a,_0x49a9c0,_0xc8e13e,_0x6feb74,_0x17327a){const _0x1a14f6=_0x313a4d,_0x301d1b=this;_0x301d1b['currentUser']=_0x6feb74[_0x1a14f6(0xb12)](),_0x301d1b[_0x1a14f6(0xcef)]=[],_0x301d1b['title']=_0x1a14f6(0x1950)+(_0x29c03a[_0x1a14f6(0x8f2)]||_0x29c03a[_0x1a14f6(0x1873)])[_0x1a14f6(0x1c37)](),_0x301d1b[_0x1a14f6(0x1802)]=angular[_0x1a14f6(0x235a)](_0x29c03a),_0x301d1b['crudPermissions']=_0x17327a,_0x301d1b[_0x1a14f6(0x855)]={};if(_0x301d1b[_0x1a14f6(0x1802)][_0x1a14f6(0x168a)])switch(_0x301d1b[_0x1a14f6(0x1802)][_0x1a14f6(0x8f2)]?_0x301d1b[_0x1a14f6(0x1802)][_0x1a14f6(0x8f2)][_0x1a14f6(0x256e)]():_0x301d1b['custom'][_0x1a14f6(0x1873)][_0x1a14f6(0x256e)]()){case'custom':break;case _0x1a14f6(0xeaa):{const _0x3eb687=_0x301d1b[_0x1a14f6(0x1802)][_0x1a14f6(0x168a)]['split'](',');_0x301d1b[_0x1a14f6(0x1802)]['key']=_0x3eb687[0x0],_0x301d1b[_0x1a14f6(0x1802)][_0x1a14f6(0x90b)]=_0x3eb687[0x1],_0x301d1b[_0x1a14f6(0x1802)]['welcomemessage']=_0x3eb687[_0x1a14f6(0x1298)](0x2,_0x3eb687['length'])[_0x1a14f6(0xb47)](',');}break;case _0x1a14f6(0xa46):{const _0x175391=_0x301d1b[_0x1a14f6(0x1802)]['appdata'][_0x1a14f6(0x10c8)](',');_0x301d1b['custom'][_0x1a14f6(0x153a)]=_0x175391[0x0],_0x301d1b['custom'][_0x1a14f6(0x1392)]=_0x175391[0x1],_0x301d1b['custom'][_0x1a14f6(0x2217)]=_0x175391[0x2],_0x301d1b[_0x1a14f6(0x1802)][_0x1a14f6(0x90b)]=_0x175391[0x3],_0x301d1b['custom'][_0x1a14f6(0xaf3)]=_0x175391[_0x1a14f6(0x1298)](0x4,_0x175391[_0x1a14f6(0x402)])['join'](',');}break;case'amazonlex':{const _0x383cf9=_0x301d1b[_0x1a14f6(0x1802)][_0x1a14f6(0x168a)]['split'](',');_0x301d1b['custom'][_0x1a14f6(0x1651)]=_0x383cf9[0x0],_0x301d1b[_0x1a14f6(0x1802)][_0x1a14f6(0x252)]=_0x383cf9[0x1],_0x301d1b[_0x1a14f6(0x1802)][_0x1a14f6(0x1039)]=_0x383cf9[0x2],_0x301d1b['custom']['botname']=_0x383cf9[0x3],_0x301d1b[_0x1a14f6(0x1802)]['welcomemessage']=_0x383cf9[_0x1a14f6(0x1298)](0x4,_0x383cf9['length'])[_0x1a14f6(0xb47)](',');}break;case'autoreply':{const _0x2fb684=_0x301d1b['custom'][_0x1a14f6(0x168a)][_0x1a14f6(0x10c8)](',');_0x301d1b['custom'][_0x1a14f6(0x583)]=isNaN(_0x2fb684[0x0])?_0x2fb684[0x0]:parseInt(_0x2fb684[0x0],0xa),_0x301d1b['custom'][_0x1a14f6(0xa8d)]=_0x2fb684[_0x1a14f6(0x1298)](0x1,_0x2fb684[_0x1a14f6(0x402)])[_0x1a14f6(0xb47)](',');}break;case _0x1a14f6(0x7fd):_0x301d1b[_0x1a14f6(0x1802)]['text']=_0x301d1b[_0x1a14f6(0x1802)]['appdata'];break;case'set':_0x301d1b[_0x1a14f6(0x1802)][_0x1a14f6(0x19eb)]=_0x301d1b[_0x1a14f6(0x1802)]['appdata'][_0x1a14f6(0x10c8)]('=')[0x0],_0x301d1b[_0x1a14f6(0x1802)][_0x1a14f6(0x175d)]=_0x301d1b['custom'][_0x1a14f6(0x168a)][_0x1a14f6(0x10c8)]('=')[0x1];break;case _0x1a14f6(0x1ecb):_0x301d1b[_0x1a14f6(0x1802)][_0x1a14f6(0x9e0)]=_0x301d1b[_0x1a14f6(0x1802)][_0x1a14f6(0x168a)];break;default:{const _0x1e807a=_0x301d1b['custom'][_0x1a14f6(0x168a)]['split'](',');_0x301d1b[_0x1a14f6(0x1802)][_0x1a14f6(0x1873)]=_0x3f65c0()[_0x1a14f6(0x2635)](_0x1e807a[0x0])?_0x1e807a[0x0]:isNaN(_0x1e807a[0x0])?_0x1e807a[0x0]:parseInt(_0x1e807a[0x0],0xa),_0x301d1b[_0x1a14f6(0x1802)]['appdata']=_0x3f65c0()[_0x1a14f6(0x2635)](_0x1e807a[0x1])?_0x1e807a[0x1]:isNaN(_0x1e807a[0x1])?_0x1e807a[0x1]:parseInt(_0x1e807a[0x1],0xa);}break;}else{}_0x301d1b['custom'][_0x1a14f6(0x1142)]&&_0x301d1b[_0x1a14f6(0x1802)][_0x1a14f6(0x1142)][_0x1a14f6(0x256e)]()===_0x1a14f6(0xc9c)&&_0x301d1b[_0x1a14f6(0x1802)][_0x1a14f6(0x8f2)][_0x1a14f6(0x256e)]()==='outbounddial'&&(_0x301d1b[_0x1a14f6(0x1802)][_0x1a14f6(0x1e12)]=_0x301d1b[_0x1a14f6(0x1802)][_0x1a14f6(0x1d55)]?_0x301d1b[_0x1a14f6(0x1802)][_0x1a14f6(0x1d55)][_0x1a14f6(0x10c8)]('$')[0x0]:undefined,_0x301d1b['custom'][_0x1a14f6(0x1d43)]=_0x301d1b['custom'][_0x1a14f6(0x11be)]?_0x1a14f6(0x1b60)+_0x301d1b[_0x1a14f6(0x1802)]['callerID']:undefined);_0x301d1b[_0x1a14f6(0x1f34)]=_0x1d1254,_0x301d1b[_0x1a14f6(0x13f3)]=_0x17e1b2;function _0x1d1254(){const _0x3b8558=_0x1a14f6;_0x301d1b['errors']=[];const _0x32594f=[];_0x301d1b[_0x3b8558(0x1802)][_0x3b8558(0x1142)]&&_0x301d1b[_0x3b8558(0x1802)]['type'][_0x3b8558(0x256e)]()===_0x3b8558(0xc9c)&&_0x301d1b['custom'][_0x3b8558(0x8f2)]===_0x3b8558(0x118b)&&(_0x301d1b[_0x3b8558(0x1802)]['phone']=_0x49a9c0[_0x3b8558(0x1274)]?(_0x301d1b[_0x3b8558(0x1802)][_0x3b8558(0x1e12)]||'')+'${EXTEN:'+_0x49a9c0[_0x3b8558(0x1274)]+'}':(_0x301d1b[_0x3b8558(0x1802)][_0x3b8558(0x1e12)]||'')+_0x3b8558(0x20df),_0x49a9c0[_0x3b8558(0x1425)]!==_0x3b8558(0x1642)?_0x301d1b[_0x3b8558(0x1802)]['options'][_0x3b8558(0x172b)](_0x3b8558(0x1ea4))<0x0&&(_0x301d1b[_0x3b8558(0x1802)][_0x3b8558(0xa08)]+=_0x3b8558(0x1ea4)):_0x301d1b[_0x3b8558(0x1802)][_0x3b8558(0xa08)]=_0x301d1b['custom'][_0x3b8558(0xa08)][_0x3b8558(0x5f4)](_0x3b8558(0x1ea4),''));if(_0x301d1b['custom']['appType']&&_0x301d1b['custom'][_0x3b8558(0x8f2)]===_0x3b8558(0x1802)){}else switch((_0x301d1b['custom'][_0x3b8558(0x1873)]||_0x301d1b[_0x3b8558(0x1802)][_0x3b8558(0x8f2)])[_0x3b8558(0x256e)]()){case'set':_0x301d1b[_0x3b8558(0x1802)][_0x3b8558(0x168a)]=_0x301d1b[_0x3b8558(0x1802)][_0x3b8558(0x19eb)]+'='+_0x301d1b['custom']['value'];break;case _0x3b8558(0x1802):break;default:_0x32594f[0x0]=_0x301d1b[_0x3b8558(0x1802)]['app'],_0x32594f[0x1]=_0x301d1b[_0x3b8558(0x1802)][_0x3b8558(0x168a)],_0x301d1b[_0x3b8558(0x1802)]['appdata']=_0x32594f[_0x3b8558(0xb47)](',');}_0x17e1b2(_0x301d1b[_0x3b8558(0x1802)]);}function _0x17e1b2(_0xd17ed6){const _0xef21f4=_0x1a14f6;_0x4d86e2[_0xef21f4(0x2458)](_0xd17ed6);}}const _0x112861=_0x2878af;;_0xfd11bb[_0x313a4d(0x11c2)]=[_0x313a4d(0x10e8),'$q',_0x313a4d(0x1fe4),'internalrouteApp',_0x313a4d(0x86f),_0x313a4d(0x247f),_0x313a4d(0xa87),_0x313a4d(0x2514)];function _0xfd11bb(_0x37ae2,_0x4ec948,_0x2adfd4,_0x2ce35d,_0x58807e,_0x57605e,_0x3fa7af,_0x44c7c2){const _0x220733=_0x313a4d,_0x356b2c=this;_0x356b2c[_0x220733(0x2321)]=_0x3fa7af[_0x220733(0xb12)](),_0x356b2c[_0x220733(0xcef)]=[],_0x356b2c[_0x220733(0x1189)]=_0x220733(0x1950)+(_0x2ce35d[_0x220733(0x8f2)]||_0x2ce35d[_0x220733(0x1873)])[_0x220733(0x1c37)](),_0x356b2c[_0x220733(0xb98)]=angular[_0x220733(0x235a)](_0x2ce35d),_0x356b2c[_0x220733(0x2514)]=_0x44c7c2,_0x356b2c['hasModulePermissions']={};if(_0x356b2c[_0x220733(0xb98)][_0x220733(0x168a)])switch(_0x356b2c[_0x220733(0xb98)][_0x220733(0x8f2)]?_0x356b2c[_0x220733(0xb98)][_0x220733(0x8f2)][_0x220733(0x256e)]():_0x356b2c[_0x220733(0xb98)][_0x220733(0x1873)][_0x220733(0x256e)]()){case _0x220733(0x1802):break;case'dialogflow':{const _0x2f21ef=_0x356b2c[_0x220733(0xb98)][_0x220733(0x168a)][_0x220733(0x10c8)](',');_0x356b2c[_0x220733(0xb98)]['key']=_0x2f21ef[0x0],_0x356b2c[_0x220733(0xb98)]['language']=_0x2f21ef[0x1],_0x356b2c[_0x220733(0xb98)][_0x220733(0xaf3)]=_0x2f21ef[_0x220733(0x1298)](0x2,_0x2f21ef[_0x220733(0x402)])[_0x220733(0xb47)](',');}break;case'dialogflowv2':{const _0x1472f4=_0x356b2c[_0x220733(0xb98)][_0x220733(0x168a)][_0x220733(0x10c8)](',');_0x356b2c['dial'][_0x220733(0x153a)]=_0x1472f4[0x0],_0x356b2c[_0x220733(0xb98)]['clientEmail']=_0x1472f4[0x1],_0x356b2c[_0x220733(0xb98)][_0x220733(0x2217)]=_0x1472f4[0x2],_0x356b2c[_0x220733(0xb98)][_0x220733(0x90b)]=_0x1472f4[0x3],_0x356b2c[_0x220733(0xb98)][_0x220733(0xaf3)]=_0x1472f4[_0x220733(0x1298)](0x4,_0x1472f4['length'])[_0x220733(0xb47)](',');}break;case _0x220733(0x17d6):{const _0x4ce6a0=_0x356b2c[_0x220733(0xb98)][_0x220733(0x168a)]['split'](',');_0x356b2c['dial']['accesskeyid']=_0x4ce6a0[0x0],_0x356b2c['dial'][_0x220733(0x252)]=_0x4ce6a0[0x1],_0x356b2c[_0x220733(0xb98)][_0x220733(0x1039)]=_0x4ce6a0[0x2],_0x356b2c[_0x220733(0xb98)]['botname']=_0x4ce6a0[0x3],_0x356b2c[_0x220733(0xb98)][_0x220733(0xaf3)]=_0x4ce6a0[_0x220733(0x1298)](0x4,_0x4ce6a0[_0x220733(0x402)])[_0x220733(0xb47)](',');}break;case'autoreply':{const _0x3c37c4=_0x356b2c[_0x220733(0xb98)][_0x220733(0x168a)][_0x220733(0x10c8)](',');_0x356b2c[_0x220733(0xb98)][_0x220733(0x583)]=isNaN(_0x3c37c4[0x0])?_0x3c37c4[0x0]:parseInt(_0x3c37c4[0x0],0xa),_0x356b2c[_0x220733(0xb98)][_0x220733(0xa8d)]=_0x3c37c4[_0x220733(0x1298)](0x1,_0x3c37c4[_0x220733(0x402)])['join'](',');}break;case _0x220733(0x7fd):_0x356b2c[_0x220733(0xb98)]['text']=_0x356b2c[_0x220733(0xb98)][_0x220733(0x168a)];break;case'set':_0x356b2c['dial'][_0x220733(0x19eb)]=_0x356b2c[_0x220733(0xb98)][_0x220733(0x168a)]['split']('=')[0x0],_0x356b2c[_0x220733(0xb98)]['value']=_0x356b2c[_0x220733(0xb98)][_0x220733(0x168a)][_0x220733(0x10c8)]('=')[0x1];break;case _0x220733(0x1ecb):_0x356b2c[_0x220733(0xb98)][_0x220733(0x9e0)]=_0x356b2c[_0x220733(0xb98)][_0x220733(0x168a)];break;default:{const _0xaed5e2=_0x356b2c[_0x220733(0xb98)][_0x220733(0x168a)]['split'](',');_0x356b2c['dial']['tech']=_0x3f65c0()[_0x220733(0x2635)](_0xaed5e2[0x0])?_0xaed5e2[0x0]:isNaN(_0xaed5e2[0x0])?_0xaed5e2[0x0]:parseInt(_0xaed5e2[0x0],0xa),_0x356b2c[_0x220733(0xb98)][_0x220733(0xa9c)]=_0x3f65c0()[_0x220733(0x2635)](_0xaed5e2[0x1])?_0xaed5e2[0x1]:isNaN(_0xaed5e2[0x1])?_0xaed5e2[0x1]:parseInt(_0xaed5e2[0x1],0xa),_0x356b2c[_0x220733(0xb98)]['options']=_0x3f65c0()[_0x220733(0x2635)](_0xaed5e2[0x2])?_0xaed5e2[0x2]:isNaN(_0xaed5e2[0x2])?_0xaed5e2[0x2]:parseInt(_0xaed5e2[0x2],0xa),_0x356b2c[_0x220733(0xb98)][_0x220733(0x20cc)]=_0x3f65c0()['isEmpty'](_0xaed5e2[0x3])?_0xaed5e2[0x3]:isNaN(_0xaed5e2[0x3])?_0xaed5e2[0x3]:parseInt(_0xaed5e2[0x3],0xa);}break;}else{}_0x356b2c[_0x220733(0xb98)][_0x220733(0x1142)]&&_0x356b2c['dial'][_0x220733(0x1142)][_0x220733(0x256e)]()===_0x220733(0xc9c)&&_0x356b2c[_0x220733(0xb98)][_0x220733(0x8f2)][_0x220733(0x256e)]()===_0x220733(0x3bb)&&(_0x356b2c[_0x220733(0xb98)][_0x220733(0x1e12)]=_0x356b2c[_0x220733(0xb98)][_0x220733(0x1d55)]?_0x356b2c[_0x220733(0xb98)][_0x220733(0x1d55)]['split']('$')[0x0]:undefined,_0x356b2c[_0x220733(0xb98)][_0x220733(0x1d43)]=_0x356b2c[_0x220733(0xb98)]['callerID']?_0x220733(0x1b60)+_0x356b2c['dial'][_0x220733(0x11be)]:undefined);_0x356b2c[_0x220733(0x1f34)]=_0x4fe5bd,_0x356b2c['closeDialog']=_0x3705c8;function _0x4fe5bd(){const _0x4f1da9=_0x220733;_0x356b2c[_0x4f1da9(0xcef)]=[];const _0x598c32=[];_0x356b2c[_0x4f1da9(0xb98)][_0x4f1da9(0x1142)]&&_0x356b2c[_0x4f1da9(0xb98)][_0x4f1da9(0x1142)][_0x4f1da9(0x256e)]()===_0x4f1da9(0xc9c)&&_0x356b2c['dial'][_0x4f1da9(0x8f2)]===_0x4f1da9(0x118b)&&(_0x356b2c['dial'][_0x4f1da9(0x1d55)]=_0x58807e[_0x4f1da9(0x1274)]?(_0x356b2c[_0x4f1da9(0xb98)]['prefix']||'')+'${EXTEN:'+_0x58807e[_0x4f1da9(0x1274)]+'}':(_0x356b2c[_0x4f1da9(0xb98)][_0x4f1da9(0x1e12)]||'')+_0x4f1da9(0x20df),_0x58807e[_0x4f1da9(0x1425)]!==_0x4f1da9(0x1642)?_0x356b2c[_0x4f1da9(0xb98)]['options'][_0x4f1da9(0x172b)](_0x4f1da9(0x1ea4))<0x0&&(_0x356b2c[_0x4f1da9(0xb98)]['options']+=_0x4f1da9(0x1ea4)):_0x356b2c['dial'][_0x4f1da9(0xa08)]=_0x356b2c['dial'][_0x4f1da9(0xa08)][_0x4f1da9(0x5f4)]('U(xcally-mixmonitor-context)',''));if(_0x356b2c[_0x4f1da9(0xb98)]['appType']&&_0x356b2c['dial'][_0x4f1da9(0x8f2)]==='custom'){}else switch((_0x356b2c[_0x4f1da9(0xb98)][_0x4f1da9(0x1873)]||_0x356b2c[_0x4f1da9(0xb98)][_0x4f1da9(0x8f2)])[_0x4f1da9(0x256e)]()){case _0x4f1da9(0x26ba):_0x356b2c[_0x4f1da9(0xb98)][_0x4f1da9(0x168a)]=_0x356b2c[_0x4f1da9(0xb98)][_0x4f1da9(0x19eb)]+'='+_0x356b2c[_0x4f1da9(0xb98)][_0x4f1da9(0x175d)];break;case _0x4f1da9(0x1802):break;default:_0x598c32[0x0]=_0x356b2c[_0x4f1da9(0xb98)][_0x4f1da9(0xbe1)],_0x598c32[0x1]=_0x356b2c['dial']['timeout'],_0x598c32[0x2]=_0x356b2c['dial']['options'],_0x598c32[0x3]=_0x356b2c[_0x4f1da9(0xb98)][_0x4f1da9(0x20cc)],_0x356b2c['dial']['appdata']=_0x598c32[_0x4f1da9(0xb47)](',');}_0x3705c8(_0x356b2c[_0x4f1da9(0xb98)]);}function _0x3705c8(_0x12be7a){const _0x5807b9=_0x220733;_0x37ae2[_0x5807b9(0x2458)](_0x12be7a);}}const _0xb05143=_0xfd11bb;;_0x554da7['$inject']=[_0x313a4d(0x10e8),'$q',_0x313a4d(0x1fe4),_0x313a4d(0x1492),_0x313a4d(0x86f),'api','Auth','crudPermissions'];function _0x554da7(_0xea89db,_0x1bab67,_0x523790,_0x25ea51,_0x421e63,_0x405c64,_0x551873,_0x3ea306){const _0x484c4f=_0x313a4d,_0x42b573=this;_0x42b573[_0x484c4f(0x2321)]=_0x551873[_0x484c4f(0xb12)](),_0x42b573['errors']=[],_0x42b573['title']='VOICE.EDIT_'+(_0x25ea51[_0x484c4f(0x8f2)]||_0x25ea51['app'])[_0x484c4f(0x1c37)](),_0x42b573[_0x484c4f(0x1fb6)]=angular[_0x484c4f(0x235a)](_0x25ea51),_0x42b573[_0x484c4f(0x2514)]=_0x3ea306,_0x42b573[_0x484c4f(0x855)]={};if(_0x42b573[_0x484c4f(0x1fb6)][_0x484c4f(0x168a)])switch(_0x42b573[_0x484c4f(0x1fb6)][_0x484c4f(0x8f2)]?_0x42b573[_0x484c4f(0x1fb6)][_0x484c4f(0x8f2)][_0x484c4f(0x256e)]():_0x42b573[_0x484c4f(0x1fb6)]['app'][_0x484c4f(0x256e)]()){case _0x484c4f(0x1802):break;case _0x484c4f(0xeaa):{const _0x12680e=_0x42b573[_0x484c4f(0x1fb6)][_0x484c4f(0x168a)][_0x484c4f(0x10c8)](',');_0x42b573[_0x484c4f(0x1fb6)][_0x484c4f(0x2293)]=_0x12680e[0x0],_0x42b573[_0x484c4f(0x1fb6)][_0x484c4f(0x90b)]=_0x12680e[0x1],_0x42b573['externaldial'][_0x484c4f(0xaf3)]=_0x12680e[_0x484c4f(0x1298)](0x2,_0x12680e[_0x484c4f(0x402)])[_0x484c4f(0xb47)](',');}break;case _0x484c4f(0xa46):{const _0x2a7f78=_0x42b573[_0x484c4f(0x1fb6)][_0x484c4f(0x168a)][_0x484c4f(0x10c8)](',');_0x42b573[_0x484c4f(0x1fb6)][_0x484c4f(0x153a)]=_0x2a7f78[0x0],_0x42b573[_0x484c4f(0x1fb6)][_0x484c4f(0x1392)]=_0x2a7f78[0x1],_0x42b573[_0x484c4f(0x1fb6)][_0x484c4f(0x2217)]=_0x2a7f78[0x2],_0x42b573['externaldial']['language']=_0x2a7f78[0x3],_0x42b573[_0x484c4f(0x1fb6)][_0x484c4f(0xaf3)]=_0x2a7f78[_0x484c4f(0x1298)](0x4,_0x2a7f78[_0x484c4f(0x402)])[_0x484c4f(0xb47)](',');}break;case _0x484c4f(0x17d6):{const _0x47dca8=_0x42b573[_0x484c4f(0x1fb6)][_0x484c4f(0x168a)][_0x484c4f(0x10c8)](',');_0x42b573[_0x484c4f(0x1fb6)][_0x484c4f(0x1651)]=_0x47dca8[0x0],_0x42b573[_0x484c4f(0x1fb6)][_0x484c4f(0x252)]=_0x47dca8[0x1],_0x42b573[_0x484c4f(0x1fb6)][_0x484c4f(0x1039)]=_0x47dca8[0x2],_0x42b573[_0x484c4f(0x1fb6)]['botname']=_0x47dca8[0x3],_0x42b573[_0x484c4f(0x1fb6)][_0x484c4f(0xaf3)]=_0x47dca8[_0x484c4f(0x1298)](0x4,_0x47dca8[_0x484c4f(0x402)])[_0x484c4f(0xb47)](',');}break;case'autoreply':{const _0x244f99=_0x42b573[_0x484c4f(0x1fb6)][_0x484c4f(0x168a)][_0x484c4f(0x10c8)](',');_0x42b573[_0x484c4f(0x1fb6)][_0x484c4f(0x583)]=isNaN(_0x244f99[0x0])?_0x244f99[0x0]:parseInt(_0x244f99[0x0],0xa),_0x42b573[_0x484c4f(0x1fb6)][_0x484c4f(0xa8d)]=_0x244f99[_0x484c4f(0x1298)](0x1,_0x244f99[_0x484c4f(0x402)])[_0x484c4f(0xb47)](',');}break;case _0x484c4f(0x7fd):_0x42b573[_0x484c4f(0x1fb6)][_0x484c4f(0xa8d)]=_0x42b573['externaldial'][_0x484c4f(0x168a)];break;case _0x484c4f(0x26ba):_0x42b573['externaldial'][_0x484c4f(0x19eb)]=_0x42b573[_0x484c4f(0x1fb6)][_0x484c4f(0x168a)][_0x484c4f(0x10c8)]('=')[0x0],_0x42b573[_0x484c4f(0x1fb6)][_0x484c4f(0x175d)]=_0x42b573[_0x484c4f(0x1fb6)][_0x484c4f(0x168a)][_0x484c4f(0x10c8)]('=')[0x1];break;case _0x484c4f(0x1ecb):_0x42b573[_0x484c4f(0x1fb6)][_0x484c4f(0x9e0)]=_0x42b573[_0x484c4f(0x1fb6)][_0x484c4f(0x168a)];break;default:{const _0x19f756=_0x42b573[_0x484c4f(0x1fb6)][_0x484c4f(0x168a)][_0x484c4f(0x10c8)](',');_0x42b573['externaldial'][_0x484c4f(0x279f)]=_0x19f756[0x0]['split']('/')[0x1],_0x42b573[_0x484c4f(0x1fb6)]['phone']=_0x19f756[0x0]['split']('/')[0x2],_0x42b573[_0x484c4f(0x1fb6)]['timeout']=_0x3f65c0()[_0x484c4f(0x2635)](_0x19f756[0x1])?_0x19f756[0x1]:isNaN(_0x19f756[0x1])?_0x19f756[0x1]:parseInt(_0x19f756[0x1],0xa),_0x42b573['externaldial'][_0x484c4f(0xa08)]=_0x3f65c0()[_0x484c4f(0x2635)](_0x19f756[0x2])?_0x19f756[0x2]:isNaN(_0x19f756[0x2])?_0x19f756[0x2]:parseInt(_0x19f756[0x2],0xa),_0x42b573[_0x484c4f(0x1fb6)][_0x484c4f(0x20cc)]=_0x3f65c0()[_0x484c4f(0x2635)](_0x19f756[0x3])?_0x19f756[0x3]:isNaN(_0x19f756[0x3])?_0x19f756[0x3]:parseInt(_0x19f756[0x3],0xa);}break;}else{}_0x42b573['externaldial'][_0x484c4f(0x1142)]&&_0x42b573['externaldial']['type']['toLowerCase']()==='outbound'&&_0x42b573[_0x484c4f(0x1fb6)][_0x484c4f(0x8f2)]['toLowerCase']()===_0x484c4f(0x3bb)&&(_0x42b573[_0x484c4f(0x1fb6)][_0x484c4f(0x1e12)]=_0x42b573[_0x484c4f(0x1fb6)][_0x484c4f(0x1d55)]?_0x42b573[_0x484c4f(0x1fb6)][_0x484c4f(0x1d55)]['split']('$')[0x0]:undefined,_0x42b573[_0x484c4f(0x1fb6)][_0x484c4f(0x1d43)]=_0x42b573['externaldial'][_0x484c4f(0x11be)]?_0x484c4f(0x1b60)+_0x42b573[_0x484c4f(0x1fb6)]['callerID']:undefined);_0x42b573['saveInternalRouteApp']=_0x2ab701,_0x42b573[_0x484c4f(0x13f3)]=_0x421621,_0x551873[_0x484c4f(0x23e0)](_0x484c4f(0x174b))?_0x405c64[_0x484c4f(0x279f)][_0x484c4f(0x16b4)]({'fields':_0x484c4f(0x7a7),'sort':_0x484c4f(0x19eb),'nolimit':_0x484c4f(0x1185)})[_0x484c4f(0x2945)][_0x484c4f(0x146b)](function(_0x2c3cb8){const _0x24733c=_0x484c4f;_0x42b573['trunks']=_0x2c3cb8[_0x24733c(0x19c7)]||[];})[_0x484c4f(0x129e)](function(_0x37ea14){const _0x5adb7e=_0x484c4f;_0x523790[_0x5adb7e(0x1980)]({'title':_0x37ea14[_0x5adb7e(0x107b)]?'API:'+_0x37ea14[_0x5adb7e(0x107b)]+_0x5adb7e(0x1315)+_0x37ea14['statusText']:_0x5adb7e(0xfc0),'msg':_0x37ea14[_0x5adb7e(0x524)]?JSON[_0x5adb7e(0x10bb)](_0x37ea14['data']):_0x37ea14['toString']()});}):_0x405c64[_0x484c4f(0x279f)]['get']({'fields':_0x484c4f(0x7a7),'sort':_0x484c4f(0x19eb),'nolimit':_0x484c4f(0x1185)})[_0x484c4f(0x2945)][_0x484c4f(0x146b)](function(_0x2576d5){const _0x2c7d7f=_0x484c4f;_0x42b573[_0x2c7d7f(0x2433)]=_0x2576d5['rows']||[];})['then'](function(){const _0x2fd7c6=_0x484c4f;return _0x405c64[_0x2fd7c6(0x1366)][_0x2fd7c6(0x16b4)]({'userProfileId':_0x42b573['currentUser'][_0x2fd7c6(0x209a)],'sectionId':0x3f3})[_0x2fd7c6(0x2945)];})[_0x484c4f(0x146b)](function(_0x587170){const _0x325b37=_0x484c4f,_0x4aa682=_0x587170&&_0x587170[_0x325b37(0x19c7)]?_0x587170[_0x325b37(0x19c7)][0x0]:null;if(!_0x4aa682){const _0x5c9529=[];let _0x543d0a=null;_0x42b573['externaldial']&&(_0x543d0a=_0x3f65c0()[_0x325b37(0xc84)](_0x42b573[_0x325b37(0x2433)],{'name':_0x42b573[_0x325b37(0x1fb6)][_0x325b37(0x279f)]}));for(let _0x3bdd97=0x0;_0x3bdd97<_0x42b573[_0x325b37(0x2433)][_0x325b37(0x402)];_0x3bdd97++){_0x543d0a&&_0x42b573[_0x325b37(0x2433)][_0x3bdd97]['id']===_0x543d0a['id']&&(_0x42b573[_0x325b37(0x2433)][_0x3bdd97][_0x325b37(0x8ff)]=![],_0x5c9529[_0x325b37(0x1f47)](_0x42b573[_0x325b37(0x2433)][_0x3bdd97]));}_0x42b573[_0x325b37(0x2433)]=_0x5c9529;}else{if(!_0x4aa682[_0x325b37(0x11d2)])return _0x405c64[_0x325b37(0xdcc)][_0x325b37(0x16b4)]({'sectionId':_0x4aa682['id']})[_0x325b37(0x2945)][_0x325b37(0x146b)](function(_0x3ebf73){const _0x1a2364=_0x325b37,_0x1d6439=_0x3f65c0()[_0x1a2364(0x205)](_0x3ebf73[_0x1a2364(0x19c7)],function(_0x392cd0){const _0x3ee94e=_0x1a2364;return _0x3f65c0()[_0x3ee94e(0xc84)](_0x42b573[_0x3ee94e(0x2433)],{'id':_0x392cd0[_0x3ee94e(0x18b8)]});});let _0xd35b6a=null;_0x42b573['externaldial']&&(_0xd35b6a=_0x3f65c0()[_0x1a2364(0xc84)](_0x42b573[_0x1a2364(0x2433)],{'name':_0x42b573['externaldial'][_0x1a2364(0x279f)]}));if(_0xd35b6a&&!_0x3f65c0()[_0x1a2364(0x1360)](_0x1d6439,['id',_0xd35b6a['id']])){const _0x5f4923=_0x3f65c0()[_0x1a2364(0xc84)](_0x42b573['trunks'],{'id':_0xd35b6a['id']});_0x5f4923['canSelect']=![],_0x1d6439[_0x1a2364(0x1f47)](_0x5f4923);}_0x42b573[_0x1a2364(0x2433)]=_0x1d6439;});}})[_0x484c4f(0x129e)](function(_0x125d7f){const _0x34ff9f=_0x484c4f;_0x523790[_0x34ff9f(0x1980)]({'title':_0x125d7f['status']?_0x34ff9f(0x262a)+_0x125d7f[_0x34ff9f(0x107b)]+_0x34ff9f(0x1315)+_0x125d7f['statusText']:_0x34ff9f(0x2436),'msg':_0x125d7f['data']?JSON[_0x34ff9f(0x10bb)](_0x125d7f[_0x34ff9f(0x524)]):_0x125d7f['toString']()});});function _0x2ab701(){const _0x4e3c19=_0x484c4f;_0x42b573[_0x4e3c19(0xcef)]=[];const _0xaa625a=[];_0x42b573['externaldial'][_0x4e3c19(0x1142)]&&_0x42b573[_0x4e3c19(0x1fb6)]['type'][_0x4e3c19(0x256e)]()===_0x4e3c19(0xc9c)&&_0x42b573[_0x4e3c19(0x1fb6)][_0x4e3c19(0x8f2)]==='outboundDial'&&(_0x42b573[_0x4e3c19(0x1fb6)]['phone']=_0x421e63[_0x4e3c19(0x1274)]?(_0x42b573[_0x4e3c19(0x1fb6)]['prefix']||'')+'${EXTEN:'+_0x421e63[_0x4e3c19(0x1274)]+'}':(_0x42b573[_0x4e3c19(0x1fb6)][_0x4e3c19(0x1e12)]||'')+_0x4e3c19(0x20df),_0x421e63[_0x4e3c19(0x1425)]!==_0x4e3c19(0x1642)?_0x42b573[_0x4e3c19(0x1fb6)][_0x4e3c19(0xa08)][_0x4e3c19(0x172b)](_0x4e3c19(0x1ea4))<0x0&&(_0x42b573[_0x4e3c19(0x1fb6)][_0x4e3c19(0xa08)]+='U(xcally-mixmonitor-context)'):_0x42b573[_0x4e3c19(0x1fb6)][_0x4e3c19(0xa08)]=_0x42b573[_0x4e3c19(0x1fb6)][_0x4e3c19(0xa08)]['replace'](_0x4e3c19(0x1ea4),''));if(_0x42b573[_0x4e3c19(0x1fb6)]['appType']&&_0x42b573['externaldial']['appType']===_0x4e3c19(0x1802)){}else switch((_0x42b573[_0x4e3c19(0x1fb6)][_0x4e3c19(0x1873)]||_0x42b573[_0x4e3c19(0x1fb6)][_0x4e3c19(0x8f2)])[_0x4e3c19(0x256e)]()){case _0x4e3c19(0x26ba):_0x42b573[_0x4e3c19(0x1fb6)][_0x4e3c19(0x168a)]=_0x42b573[_0x4e3c19(0x1fb6)][_0x4e3c19(0x19eb)]+'='+_0x42b573[_0x4e3c19(0x1fb6)]['value'];break;case'custom':break;default:_0xaa625a[0x0]=['SIP',_0x42b573[_0x4e3c19(0x1fb6)][_0x4e3c19(0x279f)],_0x42b573[_0x4e3c19(0x1fb6)]['phone']][_0x4e3c19(0xb47)]('/'),_0xaa625a[0x1]=_0x42b573[_0x4e3c19(0x1fb6)]['timeout'],_0xaa625a[0x2]=_0x42b573[_0x4e3c19(0x1fb6)][_0x4e3c19(0xa08)],_0xaa625a[0x3]=_0x42b573['externaldial'][_0x4e3c19(0x20cc)],_0x42b573[_0x4e3c19(0x1fb6)][_0x4e3c19(0x168a)]=_0xaa625a[_0x4e3c19(0xb47)](',');}_0x421621(_0x42b573[_0x4e3c19(0x1fb6)]);}function _0x421621(_0x12f576){_0xea89db['hide'](_0x12f576);}}const _0x36955c=_0x554da7;;_0x443c35[_0x313a4d(0x11c2)]=[_0x313a4d(0x10e8),'$q',_0x313a4d(0x1fe4),_0x313a4d(0x1492),_0x313a4d(0x86f),_0x313a4d(0x247f),_0x313a4d(0xa87),'crudPermissions'];function _0x443c35(_0x2374db,_0x2a72c3,_0xe51d5a,_0x4a029c,_0x3d231e,_0x505397,_0x1dd422,_0x243e66){const _0x5b56c3=_0x313a4d,_0x54de06=this;_0x54de06[_0x5b56c3(0x2321)]=_0x1dd422[_0x5b56c3(0xb12)](),_0x54de06['errors']=[],_0x54de06[_0x5b56c3(0x1189)]='VOICE.EDIT_'+(_0x4a029c[_0x5b56c3(0x8f2)]||_0x4a029c[_0x5b56c3(0x1873)])['toUpperCase'](),_0x54de06[_0x5b56c3(0x151b)]=angular[_0x5b56c3(0x235a)](_0x4a029c),_0x54de06[_0x5b56c3(0x2514)]=_0x243e66,_0x54de06['hasModulePermissions']={};if(_0x54de06['goto'][_0x5b56c3(0x168a)])switch(_0x54de06[_0x5b56c3(0x151b)][_0x5b56c3(0x8f2)]?_0x54de06[_0x5b56c3(0x151b)][_0x5b56c3(0x8f2)][_0x5b56c3(0x256e)]():_0x54de06['goto'][_0x5b56c3(0x1873)]['toLowerCase']()){case _0x5b56c3(0x1802):break;case _0x5b56c3(0xeaa):{const _0xd86110=_0x54de06[_0x5b56c3(0x151b)][_0x5b56c3(0x168a)][_0x5b56c3(0x10c8)](',');_0x54de06['goto'][_0x5b56c3(0x2293)]=_0xd86110[0x0],_0x54de06[_0x5b56c3(0x151b)][_0x5b56c3(0x90b)]=_0xd86110[0x1],_0x54de06[_0x5b56c3(0x151b)]['welcomemessage']=_0xd86110['slice'](0x2,_0xd86110[_0x5b56c3(0x402)])[_0x5b56c3(0xb47)](',');}break;case _0x5b56c3(0xa46):{const _0x297361=_0x54de06[_0x5b56c3(0x151b)][_0x5b56c3(0x168a)]['split'](',');_0x54de06[_0x5b56c3(0x151b)][_0x5b56c3(0x153a)]=_0x297361[0x0],_0x54de06[_0x5b56c3(0x151b)][_0x5b56c3(0x1392)]=_0x297361[0x1],_0x54de06['goto'][_0x5b56c3(0x2217)]=_0x297361[0x2],_0x54de06[_0x5b56c3(0x151b)][_0x5b56c3(0x90b)]=_0x297361[0x3],_0x54de06[_0x5b56c3(0x151b)][_0x5b56c3(0xaf3)]=_0x297361[_0x5b56c3(0x1298)](0x4,_0x297361['length'])['join'](',');}break;case _0x5b56c3(0x17d6):{const _0x5f3ace=_0x54de06[_0x5b56c3(0x151b)][_0x5b56c3(0x168a)][_0x5b56c3(0x10c8)](',');_0x54de06[_0x5b56c3(0x151b)][_0x5b56c3(0x1651)]=_0x5f3ace[0x0],_0x54de06[_0x5b56c3(0x151b)][_0x5b56c3(0x252)]=_0x5f3ace[0x1],_0x54de06[_0x5b56c3(0x151b)]['lexregion']=_0x5f3ace[0x2],_0x54de06['goto']['botname']=_0x5f3ace[0x3],_0x54de06[_0x5b56c3(0x151b)][_0x5b56c3(0xaf3)]=_0x5f3ace['slice'](0x4,_0x5f3ace[_0x5b56c3(0x402)])[_0x5b56c3(0xb47)](',');}break;case _0x5b56c3(0x1713):{const _0x12c14c=_0x54de06[_0x5b56c3(0x151b)][_0x5b56c3(0x168a)][_0x5b56c3(0x10c8)](',');_0x54de06[_0x5b56c3(0x151b)][_0x5b56c3(0x583)]=isNaN(_0x12c14c[0x0])?_0x12c14c[0x0]:parseInt(_0x12c14c[0x0],0xa),_0x54de06[_0x5b56c3(0x151b)][_0x5b56c3(0xa8d)]=_0x12c14c[_0x5b56c3(0x1298)](0x1,_0x12c14c[_0x5b56c3(0x402)])[_0x5b56c3(0xb47)](',');}break;case _0x5b56c3(0x7fd):_0x54de06[_0x5b56c3(0x151b)][_0x5b56c3(0xa8d)]=_0x54de06[_0x5b56c3(0x151b)][_0x5b56c3(0x168a)];break;case _0x5b56c3(0x26ba):_0x54de06[_0x5b56c3(0x151b)][_0x5b56c3(0x19eb)]=_0x54de06['goto'][_0x5b56c3(0x168a)][_0x5b56c3(0x10c8)]('=')[0x0],_0x54de06[_0x5b56c3(0x151b)]['value']=_0x54de06[_0x5b56c3(0x151b)][_0x5b56c3(0x168a)]['split']('=')[0x1];break;case _0x5b56c3(0x1ecb):_0x54de06[_0x5b56c3(0x151b)]['project']=_0x54de06[_0x5b56c3(0x151b)][_0x5b56c3(0x168a)];break;default:{const _0xc038d0=_0x54de06['goto'][_0x5b56c3(0x168a)][_0x5b56c3(0x10c8)](',');_0x54de06[_0x5b56c3(0x151b)]['context']=_0x3f65c0()[_0x5b56c3(0x2635)](_0xc038d0[0x0])?_0xc038d0[0x0]:isNaN(_0xc038d0[0x0])?_0xc038d0[0x0]:parseInt(_0xc038d0[0x0],0xa),_0x54de06[_0x5b56c3(0x151b)][_0x5b56c3(0x1bc6)]=_0x3f65c0()[_0x5b56c3(0x2635)](_0xc038d0[0x1])?_0xc038d0[0x1]:isNaN(_0xc038d0[0x1])?_0xc038d0[0x1]:parseInt(_0xc038d0[0x1],0xa),_0x54de06[_0x5b56c3(0x151b)][_0x5b56c3(0xa6a)]=_0x3f65c0()[_0x5b56c3(0x2635)](_0xc038d0[0x2])?_0xc038d0[0x2]:isNaN(_0xc038d0[0x2])?_0xc038d0[0x2]:parseInt(_0xc038d0[0x2],0xa);}break;}else{}_0x54de06[_0x5b56c3(0x151b)][_0x5b56c3(0x1142)]&&_0x54de06[_0x5b56c3(0x151b)][_0x5b56c3(0x1142)][_0x5b56c3(0x256e)]()===_0x5b56c3(0xc9c)&&_0x54de06[_0x5b56c3(0x151b)]['appType'][_0x5b56c3(0x256e)]()===_0x5b56c3(0x3bb)&&(_0x54de06[_0x5b56c3(0x151b)]['prefix']=_0x54de06[_0x5b56c3(0x151b)][_0x5b56c3(0x1d55)]?_0x54de06[_0x5b56c3(0x151b)][_0x5b56c3(0x1d55)]['split']('$')[0x0]:undefined,_0x54de06[_0x5b56c3(0x151b)][_0x5b56c3(0x1d43)]=_0x54de06[_0x5b56c3(0x151b)][_0x5b56c3(0x11be)]?_0x5b56c3(0x1b60)+_0x54de06['goto'][_0x5b56c3(0x11be)]:undefined);_0x54de06[_0x5b56c3(0x1f34)]=_0x54a03d,_0x54de06['closeDialog']=_0x36d4fd,_0x1dd422[_0x5b56c3(0x23e0)]('admin')?_0x505397[_0x5b56c3(0x1b82)][_0x5b56c3(0x16b4)]({'fields':_0x5b56c3(0x7a7),'sort':'name','nolimit':_0x5b56c3(0x1185)})['$promise']['then'](function(_0x5548eb){const _0x2ef0d8=_0x5b56c3;_0x54de06[_0x2ef0d8(0xfe9)]=_0x5548eb[_0x2ef0d8(0x19c7)]||[];})[_0x5b56c3(0x129e)](function(_0x43265c){const _0x5c03fe=_0x5b56c3;_0xe51d5a[_0x5c03fe(0x1980)]({'title':_0x43265c['status']?_0x5c03fe(0x262a)+_0x43265c[_0x5c03fe(0x107b)]+_0x5c03fe(0x1315)+_0x43265c[_0x5c03fe(0x167f)]:_0x5c03fe(0x2742),'msg':_0x43265c['data']?JSON[_0x5c03fe(0x10bb)](_0x43265c['data']):_0x43265c[_0x5c03fe(0xd5f)]()});}):_0x505397[_0x5b56c3(0x1b82)][_0x5b56c3(0x16b4)]({'fields':'id,name','sort':_0x5b56c3(0x19eb),'nolimit':_0x5b56c3(0x1185)})[_0x5b56c3(0x2945)]['then'](function(_0x104428){const _0x46a1c4=_0x5b56c3;_0x54de06[_0x46a1c4(0xfe9)]=_0x104428['rows']||[];})[_0x5b56c3(0x146b)](function(){const _0x31097b=_0x5b56c3;return _0x505397[_0x31097b(0x1366)][_0x31097b(0x16b4)]({'userProfileId':_0x54de06[_0x31097b(0x2321)][_0x31097b(0x209a)],'sectionId':0x195})[_0x31097b(0x2945)];})[_0x5b56c3(0x146b)](function(_0x33a0cb){const _0x435963=_0x5b56c3,_0x51dea3=_0x33a0cb&&_0x33a0cb[_0x435963(0x19c7)]?_0x33a0cb[_0x435963(0x19c7)][0x0]:null;if(!_0x51dea3)return _0x505397['voiceContext'][_0x435963(0x16b4)]({'fields':_0x435963(0x7a7),'sort':_0x435963(0x19eb),'nolimit':_0x435963(0x1185),'defaultEntry':0x1})[_0x435963(0x2945)][_0x435963(0x146b)](function(_0x35cd8e){const _0xb4d111=_0x435963;_0x54de06[_0xb4d111(0xfe9)]=_0x35cd8e[_0xb4d111(0x19c7)]||[];});else{if(!_0x51dea3[_0x435963(0x11d2)])return _0x505397[_0x435963(0xdcc)][_0x435963(0x16b4)]({'sectionId':_0x51dea3['id']})[_0x435963(0x2945)]['then'](function(_0x1679a8){const _0x3b88e7=_0x435963,_0x291f77=_0x3f65c0()['map'](_0x1679a8[_0x3b88e7(0x19c7)],function(_0x509d7e){const _0x5bc998=_0x3b88e7;return _0x3f65c0()['find'](_0x54de06[_0x5bc998(0xfe9)],{'id':_0x509d7e[_0x5bc998(0x18b8)]});});let _0x32e7d6=null;_0x54de06[_0x3b88e7(0x151b)]&&(_0x32e7d6=_0x3f65c0()[_0x3b88e7(0xc84)](_0x54de06[_0x3b88e7(0xfe9)],{'name':_0x54de06[_0x3b88e7(0x151b)][_0x3b88e7(0x1ac1)]}));if(_0x32e7d6&&!_0x3f65c0()[_0x3b88e7(0x1360)](_0x291f77,['id',_0x32e7d6['id']])){const _0x3bc66b=_0x3f65c0()[_0x3b88e7(0xc84)](_0x54de06['contexts'],{'id':_0x32e7d6['id']});_0x3bc66b[_0x3b88e7(0x8ff)]=![],_0x291f77[_0x3b88e7(0x1f47)](_0x3bc66b);}_0x54de06[_0x3b88e7(0xfe9)]=_0x291f77;});}})[_0x5b56c3(0x129e)](function(_0x2fae3f){const _0x3a66aa=_0x5b56c3;_0xe51d5a[_0x3a66aa(0x1980)]({'title':_0x2fae3f[_0x3a66aa(0x107b)]?'API:'+_0x2fae3f['status']+_0x3a66aa(0x1315)+_0x2fae3f['statusText']:'SYSTEM:GETcontexts','msg':_0x2fae3f[_0x3a66aa(0x524)]?JSON['stringify'](_0x2fae3f[_0x3a66aa(0x524)]):_0x2fae3f[_0x3a66aa(0xd5f)]()});});function _0x54a03d(){const _0x22c4eb=_0x5b56c3;_0x54de06[_0x22c4eb(0xcef)]=[];const _0x44c3e5=[];_0x54de06[_0x22c4eb(0x151b)]['type']&&_0x54de06[_0x22c4eb(0x151b)]['type'][_0x22c4eb(0x256e)]()===_0x22c4eb(0xc9c)&&_0x54de06[_0x22c4eb(0x151b)]['appType']===_0x22c4eb(0x118b)&&(_0x54de06[_0x22c4eb(0x151b)][_0x22c4eb(0x1d55)]=_0x3d231e[_0x22c4eb(0x1274)]?(_0x54de06['goto'][_0x22c4eb(0x1e12)]||'')+_0x22c4eb(0x2147)+_0x3d231e[_0x22c4eb(0x1274)]+'}':(_0x54de06[_0x22c4eb(0x151b)][_0x22c4eb(0x1e12)]||'')+_0x22c4eb(0x20df),_0x3d231e[_0x22c4eb(0x1425)]!==_0x22c4eb(0x1642)?_0x54de06[_0x22c4eb(0x151b)][_0x22c4eb(0xa08)][_0x22c4eb(0x172b)](_0x22c4eb(0x1ea4))<0x0&&(_0x54de06[_0x22c4eb(0x151b)][_0x22c4eb(0xa08)]+=_0x22c4eb(0x1ea4)):_0x54de06[_0x22c4eb(0x151b)]['options']=_0x54de06['goto'][_0x22c4eb(0xa08)][_0x22c4eb(0x5f4)](_0x22c4eb(0x1ea4),''));if(_0x54de06[_0x22c4eb(0x151b)][_0x22c4eb(0x8f2)]&&_0x54de06['goto'][_0x22c4eb(0x8f2)]===_0x22c4eb(0x1802)){}else switch((_0x54de06['goto']['app']||_0x54de06[_0x22c4eb(0x151b)][_0x22c4eb(0x8f2)])[_0x22c4eb(0x256e)]()){case _0x22c4eb(0x26ba):_0x54de06[_0x22c4eb(0x151b)][_0x22c4eb(0x168a)]=_0x54de06['goto']['name']+'='+_0x54de06[_0x22c4eb(0x151b)][_0x22c4eb(0x175d)];break;case _0x22c4eb(0x1802):break;default:_0x44c3e5[0x0]=_0x54de06['goto'][_0x22c4eb(0x1ac1)],_0x44c3e5[0x1]=_0x54de06[_0x22c4eb(0x151b)]['extension'],_0x44c3e5[0x2]=_0x54de06[_0x22c4eb(0x151b)]['priority'],_0x54de06[_0x22c4eb(0x151b)][_0x22c4eb(0x168a)]=_0x44c3e5['join'](',');}_0x36d4fd(_0x54de06[_0x22c4eb(0x151b)]);}function _0x36d4fd(_0x46d5c7){const _0x2d10b5=_0x5b56c3;_0x2374db[_0x2d10b5(0x2458)](_0x46d5c7);}}const _0x5f29cd=_0x443c35;;_0x12560c['$inject']=['$mdDialog','$q',_0x313a4d(0x1fe4),_0x313a4d(0x1492),_0x313a4d(0x86f),_0x313a4d(0x247f),'Auth','crudPermissions'];function _0x12560c(_0x544392,_0x484ae6,_0x4e2a00,_0x1cad9a,_0x4c0574,_0x4ecce0,_0x1557ac,_0x37d1da){const _0x13136d=_0x313a4d,_0x3bd4c6=this;_0x3bd4c6[_0x13136d(0x2321)]=_0x1557ac[_0x13136d(0xb12)](),_0x3bd4c6[_0x13136d(0xcef)]=[],_0x3bd4c6['title']='VOICE.EDIT_'+(_0x1cad9a[_0x13136d(0x8f2)]||_0x1cad9a['app'])[_0x13136d(0x1c37)](),_0x3bd4c6[_0x13136d(0x1dbf)]=angular['copy'](_0x1cad9a),_0x3bd4c6[_0x13136d(0x2514)]=_0x37d1da,_0x3bd4c6[_0x13136d(0x855)]={};if(_0x3bd4c6['hangup'][_0x13136d(0x168a)])switch(_0x3bd4c6[_0x13136d(0x1dbf)]['appType']?_0x3bd4c6[_0x13136d(0x1dbf)][_0x13136d(0x8f2)][_0x13136d(0x256e)]():_0x3bd4c6[_0x13136d(0x1dbf)][_0x13136d(0x1873)][_0x13136d(0x256e)]()){case'custom':break;case'dialogflow':{const _0x3c0089=_0x3bd4c6['hangup'][_0x13136d(0x168a)][_0x13136d(0x10c8)](',');_0x3bd4c6[_0x13136d(0x1dbf)][_0x13136d(0x2293)]=_0x3c0089[0x0],_0x3bd4c6[_0x13136d(0x1dbf)]['language']=_0x3c0089[0x1],_0x3bd4c6[_0x13136d(0x1dbf)][_0x13136d(0xaf3)]=_0x3c0089['slice'](0x2,_0x3c0089[_0x13136d(0x402)])['join'](',');}break;case'dialogflowv2':{const _0x1a0ffe=_0x3bd4c6[_0x13136d(0x1dbf)][_0x13136d(0x168a)][_0x13136d(0x10c8)](',');_0x3bd4c6['hangup'][_0x13136d(0x153a)]=_0x1a0ffe[0x0],_0x3bd4c6[_0x13136d(0x1dbf)][_0x13136d(0x1392)]=_0x1a0ffe[0x1],_0x3bd4c6[_0x13136d(0x1dbf)][_0x13136d(0x2217)]=_0x1a0ffe[0x2],_0x3bd4c6[_0x13136d(0x1dbf)][_0x13136d(0x90b)]=_0x1a0ffe[0x3],_0x3bd4c6[_0x13136d(0x1dbf)][_0x13136d(0xaf3)]=_0x1a0ffe[_0x13136d(0x1298)](0x4,_0x1a0ffe[_0x13136d(0x402)])[_0x13136d(0xb47)](',');}break;case _0x13136d(0x17d6):{const _0x31b64e=_0x3bd4c6[_0x13136d(0x1dbf)][_0x13136d(0x168a)][_0x13136d(0x10c8)](',');_0x3bd4c6[_0x13136d(0x1dbf)]['accesskeyid']=_0x31b64e[0x0],_0x3bd4c6[_0x13136d(0x1dbf)][_0x13136d(0x252)]=_0x31b64e[0x1],_0x3bd4c6[_0x13136d(0x1dbf)][_0x13136d(0x1039)]=_0x31b64e[0x2],_0x3bd4c6[_0x13136d(0x1dbf)][_0x13136d(0x8dd)]=_0x31b64e[0x3],_0x3bd4c6[_0x13136d(0x1dbf)]['welcomemessage']=_0x31b64e[_0x13136d(0x1298)](0x4,_0x31b64e['length'])['join'](',');}break;case'autoreply':{const _0x3cb082=_0x3bd4c6[_0x13136d(0x1dbf)][_0x13136d(0x168a)][_0x13136d(0x10c8)](',');_0x3bd4c6[_0x13136d(0x1dbf)][_0x13136d(0x583)]=isNaN(_0x3cb082[0x0])?_0x3cb082[0x0]:parseInt(_0x3cb082[0x0],0xa),_0x3bd4c6[_0x13136d(0x1dbf)][_0x13136d(0xa8d)]=_0x3cb082[_0x13136d(0x1298)](0x1,_0x3cb082['length'])[_0x13136d(0xb47)](',');}break;case _0x13136d(0x7fd):_0x3bd4c6['hangup'][_0x13136d(0xa8d)]=_0x3bd4c6[_0x13136d(0x1dbf)][_0x13136d(0x168a)];break;case'set':_0x3bd4c6[_0x13136d(0x1dbf)][_0x13136d(0x19eb)]=_0x3bd4c6['hangup'][_0x13136d(0x168a)][_0x13136d(0x10c8)]('=')[0x0],_0x3bd4c6[_0x13136d(0x1dbf)]['value']=_0x3bd4c6[_0x13136d(0x1dbf)][_0x13136d(0x168a)]['split']('=')[0x1];break;case _0x13136d(0x1ecb):_0x3bd4c6['hangup'][_0x13136d(0x9e0)]=_0x3bd4c6['hangup']['appdata'];break;default:{const _0x15feff=_0x3bd4c6[_0x13136d(0x1dbf)]['appdata'][_0x13136d(0x10c8)](',');_0x3bd4c6[_0x13136d(0x1dbf)][_0x13136d(0x168a)]=_0x3f65c0()[_0x13136d(0x2635)](_0x15feff[0x0])?_0x15feff[0x0]:isNaN(_0x15feff[0x0])?_0x15feff[0x0]:parseInt(_0x15feff[0x0],0xa);}break;}else{}_0x3bd4c6[_0x13136d(0x1dbf)]['type']&&_0x3bd4c6[_0x13136d(0x1dbf)]['type']['toLowerCase']()==='outbound'&&_0x3bd4c6[_0x13136d(0x1dbf)][_0x13136d(0x8f2)]['toLowerCase']()===_0x13136d(0x3bb)&&(_0x3bd4c6['hangup'][_0x13136d(0x1e12)]=_0x3bd4c6[_0x13136d(0x1dbf)]['phone']?_0x3bd4c6[_0x13136d(0x1dbf)]['phone']['split']('$')[0x0]:undefined,_0x3bd4c6['hangup'][_0x13136d(0x1d43)]=_0x3bd4c6[_0x13136d(0x1dbf)]['callerID']?_0x13136d(0x1b60)+_0x3bd4c6[_0x13136d(0x1dbf)][_0x13136d(0x11be)]:undefined);_0x3bd4c6[_0x13136d(0x1f34)]=_0xd17f7e,_0x3bd4c6['closeDialog']=_0x333dfc;function _0xd17f7e(){const _0x57fbe8=_0x13136d;_0x3bd4c6[_0x57fbe8(0xcef)]=[];const _0x583001=[];_0x3bd4c6[_0x57fbe8(0x1dbf)][_0x57fbe8(0x1142)]&&_0x3bd4c6['hangup']['type']['toLowerCase']()===_0x57fbe8(0xc9c)&&_0x3bd4c6['hangup'][_0x57fbe8(0x8f2)]==='outboundDial'&&(_0x3bd4c6[_0x57fbe8(0x1dbf)][_0x57fbe8(0x1d55)]=_0x4c0574['cutdigits']?(_0x3bd4c6['hangup'][_0x57fbe8(0x1e12)]||'')+'${EXTEN:'+_0x4c0574[_0x57fbe8(0x1274)]+'}':(_0x3bd4c6[_0x57fbe8(0x1dbf)][_0x57fbe8(0x1e12)]||'')+_0x57fbe8(0x20df),_0x4c0574[_0x57fbe8(0x1425)]!==_0x57fbe8(0x1642)?_0x3bd4c6['hangup'][_0x57fbe8(0xa08)][_0x57fbe8(0x172b)](_0x57fbe8(0x1ea4))<0x0&&(_0x3bd4c6['hangup'][_0x57fbe8(0xa08)]+=_0x57fbe8(0x1ea4)):_0x3bd4c6[_0x57fbe8(0x1dbf)][_0x57fbe8(0xa08)]=_0x3bd4c6[_0x57fbe8(0x1dbf)]['options'][_0x57fbe8(0x5f4)](_0x57fbe8(0x1ea4),''));if(_0x3bd4c6[_0x57fbe8(0x1dbf)][_0x57fbe8(0x8f2)]&&_0x3bd4c6[_0x57fbe8(0x1dbf)][_0x57fbe8(0x8f2)]===_0x57fbe8(0x1802)){}else switch((_0x3bd4c6[_0x57fbe8(0x1dbf)][_0x57fbe8(0x1873)]||_0x3bd4c6[_0x57fbe8(0x1dbf)]['appType'])[_0x57fbe8(0x256e)]()){case'set':_0x3bd4c6[_0x57fbe8(0x1dbf)][_0x57fbe8(0x168a)]=_0x3bd4c6[_0x57fbe8(0x1dbf)][_0x57fbe8(0x19eb)]+'='+_0x3bd4c6[_0x57fbe8(0x1dbf)]['value'];break;case _0x57fbe8(0x1802):break;default:_0x583001[0x0]=_0x3bd4c6['hangup'][_0x57fbe8(0x168a)],_0x3bd4c6['hangup']['appdata']=_0x583001[_0x57fbe8(0xb47)](',');}_0x333dfc(_0x3bd4c6[_0x57fbe8(0x1dbf)]);}function _0x333dfc(_0x5e66ce){const _0x183639=_0x13136d;_0x544392[_0x183639(0x2458)](_0x5e66ce);}}const _0x42a866=_0x12560c;;_0x17fa7c['$inject']=['$mdDialog','$q',_0x313a4d(0x1fe4),_0x313a4d(0x1492),_0x313a4d(0x86f),_0x313a4d(0x247f),_0x313a4d(0xa87),'crudPermissions'];function _0x17fa7c(_0x371c85,_0x1a89c7,_0x440817,_0x47345a,_0x21b91e,_0x4ac1eb,_0x5830e4,_0x4a92b1){const _0x313bd2=_0x313a4d,_0x537823=this;_0x537823[_0x313bd2(0x2321)]=_0x5830e4[_0x313bd2(0xb12)](),_0x537823[_0x313bd2(0xcef)]=[],_0x537823[_0x313bd2(0x1189)]=_0x313bd2(0x1950)+(_0x47345a[_0x313bd2(0x8f2)]||_0x47345a['app'])['toUpperCase'](),_0x537823[_0x313bd2(0x3bd)]=angular['copy'](_0x47345a),_0x537823['crudPermissions']=_0x4a92b1,_0x537823[_0x313bd2(0x855)]={};if(_0x537823[_0x313bd2(0x3bd)][_0x313bd2(0x168a)])switch(_0x537823[_0x313bd2(0x3bd)][_0x313bd2(0x8f2)]?_0x537823[_0x313bd2(0x3bd)]['appType'][_0x313bd2(0x256e)]():_0x537823['internaldial'][_0x313bd2(0x1873)][_0x313bd2(0x256e)]()){case'custom':break;case _0x313bd2(0xeaa):{const _0x306ec8=_0x537823[_0x313bd2(0x3bd)]['appdata'][_0x313bd2(0x10c8)](',');_0x537823[_0x313bd2(0x3bd)]['key']=_0x306ec8[0x0],_0x537823[_0x313bd2(0x3bd)][_0x313bd2(0x90b)]=_0x306ec8[0x1],_0x537823['internaldial'][_0x313bd2(0xaf3)]=_0x306ec8[_0x313bd2(0x1298)](0x2,_0x306ec8[_0x313bd2(0x402)])[_0x313bd2(0xb47)](',');}break;case _0x313bd2(0xa46):{const _0x3c4415=_0x537823['internaldial'][_0x313bd2(0x168a)][_0x313bd2(0x10c8)](',');_0x537823[_0x313bd2(0x3bd)][_0x313bd2(0x153a)]=_0x3c4415[0x0],_0x537823[_0x313bd2(0x3bd)][_0x313bd2(0x1392)]=_0x3c4415[0x1],_0x537823[_0x313bd2(0x3bd)][_0x313bd2(0x2217)]=_0x3c4415[0x2],_0x537823[_0x313bd2(0x3bd)]['language']=_0x3c4415[0x3],_0x537823[_0x313bd2(0x3bd)][_0x313bd2(0xaf3)]=_0x3c4415[_0x313bd2(0x1298)](0x4,_0x3c4415['length'])[_0x313bd2(0xb47)](',');}break;case _0x313bd2(0x17d6):{const _0x4321f7=_0x537823['internaldial'][_0x313bd2(0x168a)][_0x313bd2(0x10c8)](',');_0x537823['internaldial'][_0x313bd2(0x1651)]=_0x4321f7[0x0],_0x537823['internaldial'][_0x313bd2(0x252)]=_0x4321f7[0x1],_0x537823[_0x313bd2(0x3bd)][_0x313bd2(0x1039)]=_0x4321f7[0x2],_0x537823[_0x313bd2(0x3bd)][_0x313bd2(0x8dd)]=_0x4321f7[0x3],_0x537823['internaldial'][_0x313bd2(0xaf3)]=_0x4321f7[_0x313bd2(0x1298)](0x4,_0x4321f7[_0x313bd2(0x402)])[_0x313bd2(0xb47)](',');}break;case _0x313bd2(0x1713):{const _0x31cab7=_0x537823['internaldial'][_0x313bd2(0x168a)][_0x313bd2(0x10c8)](',');_0x537823['internaldial'][_0x313bd2(0x583)]=isNaN(_0x31cab7[0x0])?_0x31cab7[0x0]:parseInt(_0x31cab7[0x0],0xa),_0x537823[_0x313bd2(0x3bd)][_0x313bd2(0xa8d)]=_0x31cab7[_0x313bd2(0x1298)](0x1,_0x31cab7[_0x313bd2(0x402)])[_0x313bd2(0xb47)](',');}break;case _0x313bd2(0x7fd):_0x537823[_0x313bd2(0x3bd)][_0x313bd2(0xa8d)]=_0x537823['internaldial'][_0x313bd2(0x168a)];break;case _0x313bd2(0x26ba):_0x537823['internaldial'][_0x313bd2(0x19eb)]=_0x537823['internaldial'][_0x313bd2(0x168a)][_0x313bd2(0x10c8)]('=')[0x0],_0x537823[_0x313bd2(0x3bd)][_0x313bd2(0x175d)]=_0x537823['internaldial']['appdata'][_0x313bd2(0x10c8)]('=')[0x1];break;case'agi':_0x537823[_0x313bd2(0x3bd)]['project']=_0x537823['internaldial'][_0x313bd2(0x168a)];break;default:{const _0x3ddb1e=_0x537823[_0x313bd2(0x3bd)]['appdata']['split'](',');_0x537823[_0x313bd2(0x3bd)][_0x313bd2(0xe7b)]=_0x3f65c0()[_0x313bd2(0x2635)](_0x3ddb1e[0x0])?_0x3ddb1e[0x0]:isNaN(_0x3ddb1e[0x0])?_0x3ddb1e[0x0]:parseInt(_0x3ddb1e[0x0],0xa),_0x537823[_0x313bd2(0x3bd)][_0x313bd2(0xa9c)]=_0x3f65c0()['isEmpty'](_0x3ddb1e[0x1])?_0x3ddb1e[0x1]:isNaN(_0x3ddb1e[0x1])?_0x3ddb1e[0x1]:parseInt(_0x3ddb1e[0x1],0xa),_0x537823[_0x313bd2(0x3bd)][_0x313bd2(0xa08)]=_0x3f65c0()[_0x313bd2(0x2635)](_0x3ddb1e[0x2])?_0x3ddb1e[0x2]:isNaN(_0x3ddb1e[0x2])?_0x3ddb1e[0x2]:parseInt(_0x3ddb1e[0x2],0xa),_0x537823[_0x313bd2(0x3bd)][_0x313bd2(0x20cc)]=_0x3f65c0()[_0x313bd2(0x2635)](_0x3ddb1e[0x3])?_0x3ddb1e[0x3]:isNaN(_0x3ddb1e[0x3])?_0x3ddb1e[0x3]:parseInt(_0x3ddb1e[0x3],0xa);}break;}else{}_0x537823[_0x313bd2(0x3bd)][_0x313bd2(0x1142)]&&_0x537823[_0x313bd2(0x3bd)][_0x313bd2(0x1142)][_0x313bd2(0x256e)]()===_0x313bd2(0xc9c)&&_0x537823[_0x313bd2(0x3bd)][_0x313bd2(0x8f2)][_0x313bd2(0x256e)]()===_0x313bd2(0x3bb)&&(_0x537823[_0x313bd2(0x3bd)][_0x313bd2(0x1e12)]=_0x537823['internaldial'][_0x313bd2(0x1d55)]?_0x537823[_0x313bd2(0x3bd)]['phone'][_0x313bd2(0x10c8)]('$')[0x0]:undefined,_0x537823[_0x313bd2(0x3bd)][_0x313bd2(0x1d43)]=_0x537823['internaldial'][_0x313bd2(0x11be)]?'CALLERID(all)='+_0x537823[_0x313bd2(0x3bd)][_0x313bd2(0x11be)]:undefined);_0x537823[_0x313bd2(0x1f34)]=_0x4efd21,_0x537823[_0x313bd2(0x13f3)]=_0x1641b1;const _0x1b12fa=[{'id':0xca,'role':_0x313bd2(0x1755)},{'id':0xcb,'role':_0x313bd2(0x90c)}];let _0x51973e=null;_0x5830e4[_0x313bd2(0x23e0)](_0x313bd2(0x174b))?_0x4ac1eb['user']['get']({'fields':_0x313bd2(0x245b),'sort':_0x313bd2(0x19eb),'nolimit':_0x313bd2(0x1185)})['$promise'][_0x313bd2(0x146b)](function(_0xd70f25){const _0x147781=_0x313bd2;_0x537823['users']=_0xd70f25[_0x147781(0x19c7)]||[];})['catch'](function(_0x51ab5f){const _0x4645a2=_0x313bd2;_0x440817[_0x4645a2(0x1980)]({'title':_0x51ab5f[_0x4645a2(0x107b)]?_0x4645a2(0x262a)+_0x51ab5f['status']+_0x4645a2(0x1315)+_0x51ab5f[_0x4645a2(0x167f)]:_0x4645a2(0x42e),'msg':_0x51ab5f['data']?JSON[_0x4645a2(0x10bb)](_0x51ab5f[_0x4645a2(0x524)]):_0x51ab5f[_0x4645a2(0xd5f)]()});}):_0x4ac1eb[_0x313bd2(0xe7b)][_0x313bd2(0x16b4)]({'fields':'id,name,role','sort':_0x313bd2(0x19eb),'nolimit':_0x313bd2(0x1185)})[_0x313bd2(0x2945)][_0x313bd2(0x146b)](function(_0x3bbe7c){const _0x2e9473=_0x313bd2;_0x51973e=_0x3bbe7c[_0x2e9473(0x19c7)]||[];})[_0x313bd2(0x146b)](function(){const _0x16e2b1=_0x313bd2,_0x1b3b86=[];for(let _0x1d9a76=0x0;_0x1d9a76<_0x1b12fa[_0x16e2b1(0x402)];_0x1d9a76++){_0x1b3b86[_0x16e2b1(0x1f47)](_0x4ac1eb[_0x16e2b1(0x1366)]['get']({'userProfileId':_0x537823['currentUser']['userProfileId'],'sectionId':_0x1b12fa[_0x1d9a76]['id']})['$promise']);}return _0x1a89c7[_0x16e2b1(0x1be2)](_0x1b3b86);})[_0x313bd2(0x146b)](function(_0x58bbad){const _0x17707a=_0x313bd2,_0x13de67=_0x3f65c0()['map'](_0x58bbad,function(_0x10458d){const _0x18d3cc=a0_0x3bb9;return _0x10458d&&_0x10458d[_0x18d3cc(0x19c7)]?_0x10458d[_0x18d3cc(0x19c7)][0x0]:null;}),_0x168587=[];for(let _0x321821=0x0;_0x321821<_0x1b12fa['length'];_0x321821++){const _0x347249=_0x3f65c0()['find'](_0x13de67,[_0x17707a(0x631),_0x1b12fa[_0x321821]['id']]);if(_0x347249){if(!_0x347249[_0x17707a(0x11d2)])_0x168587[_0x17707a(0x1f47)](_0x4ac1eb['userProfileResource']['get']({'sectionId':_0x347249['id']})['$promise']);else{const _0x4c9a59=[];_0x51973e['forEach'](function(_0x320939){const _0x353c53=_0x17707a;_0x320939['role']===_0x1b12fa[_0x321821][_0x353c53(0xfb0)]&&_0x4c9a59[_0x353c53(0x1f47)](_0x320939);}),_0x168587[_0x17707a(0x1f47)]({'rows':_0x4c9a59,'count':_0x4c9a59[_0x17707a(0x402)]});}}}return _0x1a89c7[_0x17707a(0x1be2)](_0x168587);})[_0x313bd2(0x146b)](function(_0x31affd){const _0x5c90cb=_0x313bd2,_0x669fd=[];let _0x3d23f8=null;_0x537823['internaldial']&&(_0x3d23f8=_0x3f65c0()[_0x5c90cb(0xc84)](_0x51973e,{'name':_0x537823[_0x5c90cb(0x3bd)][_0x5c90cb(0xe7b)]}));for(let _0x5aa068=0x0;_0x5aa068<_0x31affd[_0x5c90cb(0x402)];_0x5aa068++){const _0xcf0086=_0x31affd[_0x5aa068][_0x5c90cb(0x19c7)]||[];_0xcf0086['forEach'](function(_0x3e3b33){_0x669fd['push'](_0x3e3b33);});}_0x3d23f8&&!_0x3f65c0()[_0x5c90cb(0x1360)](_0x669fd,[_0x5c90cb(0x18b8),_0x3d23f8['id']])&&_0x51973e[_0x5c90cb(0x1df5)](function(_0x9cc7be){const _0x22b081=_0x5c90cb;_0x9cc7be['id']===_0x3d23f8['id']&&(_0x9cc7be[_0x22b081(0x8ff)]=![],_0x669fd[_0x22b081(0x1f47)](_0x9cc7be));}),_0x537823[_0x5c90cb(0x1995)]=_0x669fd;})[_0x313bd2(0x129e)](function(_0x259a42){const _0x3d2d87=_0x313bd2;_0x440817[_0x3d2d87(0x1980)]({'title':_0x259a42[_0x3d2d87(0x107b)]?_0x3d2d87(0x262a)+_0x259a42[_0x3d2d87(0x107b)]+_0x3d2d87(0x1315)+_0x259a42[_0x3d2d87(0x167f)]:'SYSTEM:GETusers','msg':_0x259a42[_0x3d2d87(0x524)]?JSON[_0x3d2d87(0x10bb)](_0x259a42[_0x3d2d87(0x524)]):_0x259a42['toString']()});});function _0x4efd21(){const _0x32d008=_0x313bd2;_0x537823[_0x32d008(0xcef)]=[];const _0x43041b=[];_0x537823[_0x32d008(0x3bd)][_0x32d008(0x1142)]&&_0x537823[_0x32d008(0x3bd)][_0x32d008(0x1142)][_0x32d008(0x256e)]()===_0x32d008(0xc9c)&&_0x537823['internaldial'][_0x32d008(0x8f2)]==='outboundDial'&&(_0x537823[_0x32d008(0x3bd)][_0x32d008(0x1d55)]=_0x21b91e[_0x32d008(0x1274)]?(_0x537823['internaldial'][_0x32d008(0x1e12)]||'')+_0x32d008(0x2147)+_0x21b91e[_0x32d008(0x1274)]+'}':(_0x537823[_0x32d008(0x3bd)][_0x32d008(0x1e12)]||'')+_0x32d008(0x20df),_0x21b91e[_0x32d008(0x1425)]!=='none'?_0x537823[_0x32d008(0x3bd)][_0x32d008(0xa08)][_0x32d008(0x172b)](_0x32d008(0x1ea4))<0x0&&(_0x537823[_0x32d008(0x3bd)][_0x32d008(0xa08)]+='U(xcally-mixmonitor-context)'):_0x537823[_0x32d008(0x3bd)][_0x32d008(0xa08)]=_0x537823[_0x32d008(0x3bd)]['options'][_0x32d008(0x5f4)]('U(xcally-mixmonitor-context)',''));if(_0x537823[_0x32d008(0x3bd)][_0x32d008(0x8f2)]&&_0x537823[_0x32d008(0x3bd)][_0x32d008(0x8f2)]===_0x32d008(0x1802)){}else switch((_0x537823[_0x32d008(0x3bd)]['app']||_0x537823[_0x32d008(0x3bd)]['appType'])[_0x32d008(0x256e)]()){case _0x32d008(0x26ba):_0x537823[_0x32d008(0x3bd)]['appdata']=_0x537823['internaldial'][_0x32d008(0x19eb)]+'='+_0x537823[_0x32d008(0x3bd)]['value'];break;case _0x32d008(0x1802):break;default:_0x43041b[0x0]=_0x537823[_0x32d008(0x3bd)][_0x32d008(0xe7b)],_0x43041b[0x1]=_0x537823[_0x32d008(0x3bd)][_0x32d008(0xa9c)],_0x43041b[0x2]=_0x537823[_0x32d008(0x3bd)]['options'],_0x43041b[0x3]=_0x537823[_0x32d008(0x3bd)][_0x32d008(0x20cc)],_0x537823[_0x32d008(0x3bd)][_0x32d008(0x168a)]=_0x43041b['join'](',');}_0x1641b1(_0x537823[_0x32d008(0x3bd)]);}function _0x1641b1(_0x52fc06){const _0x2a378e=_0x313bd2;_0x371c85[_0x2a378e(0x2458)](_0x52fc06);}}const _0x2e7618=_0x17fa7c;;_0xe23b33[_0x313a4d(0x11c2)]=[_0x313a4d(0x1862),_0x313a4d(0x10e8),_0x313a4d(0x1c7e),'IndexFactory',_0x313a4d(0x2765),'intervals',_0x313a4d(0x1fe4),_0x313a4d(0x247f),_0x313a4d(0xa87),_0x313a4d(0x2514)];function _0xe23b33(_0x1535e1,_0x3e3744,_0x483faf,_0x314387,_0x43decf,_0xbda44f,_0x124142,_0x4c1be1,_0x5cecc7,_0x43704d){const _0x5f579e=_0x313a4d,_0x1f806c=this;_0x1f806c['currentUser']=_0x5cecc7[_0x5f579e(0xb12)](),_0x1f806c[_0x5f579e(0xcef)]=[],_0x1f806c[_0x5f579e(0x1189)]=_0x5f579e(0x56d),_0x1f806c['interval']=angular['copy'](_0x43decf),_0x1f806c[_0x5f579e(0x278f)]=_0xbda44f,_0x1f806c['newInterval']=![],_0x1f806c[_0x5f579e(0x1960)]=[_0x5f579e(0xd85),'custom','list'],_0x1f806c[_0x5f579e(0x2514)]=_0x43704d,_0x1f806c[_0x5f579e(0x1e35)]=_0x314387[_0x5f579e(0x2045)](),_0x1f806c['monthNumber']=_0x314387[_0x5f579e(0xead)](),_0x1f806c['monthName']=_0x314387[_0x5f579e(0x18b6)](),_0x1f806c['daysOfMonth']=_0x314387[_0x5f579e(0x1421)]();if(!_0x1f806c['interval'])_0x1f806c[_0x5f579e(0x2765)]={'interval':_0x5f579e(0x1559)},_0x1f806c[_0x5f579e(0x1142)]=_0x5f579e(0xd85),_0x1f806c[_0x5f579e(0x1189)]=_0x5f579e(0x79c),_0x1f806c['newInterval']=!![];else{if(_0x1f806c[_0x5f579e(0x2765)][_0x5f579e(0x2765)]!==_0x5f579e(0x1559)){_0x1f806c[_0x5f579e(0x1142)]=_0x5f579e(0x1802);const _0x59b8f8=_0x1f806c[_0x5f579e(0x2765)][_0x5f579e(0x2765)][_0x5f579e(0x10c8)](','),_0x40b81a=_0x59b8f8[0x0],_0x1f1826=_0x59b8f8[0x1],_0xfa11e3=_0x59b8f8[0x2],_0x227abd=_0x59b8f8[0x3];if(_0x40b81a!=='*'){const _0x3429c2=_0x40b81a[_0x5f579e(0x10c8)]('-')[0x0],_0x4a4b58=_0x40b81a[_0x5f579e(0x10c8)]('-')[0x1];let _0x500621;_0x500621=new Date(),_0x500621[_0x5f579e(0x25cd)](Number(_0x3429c2['split'](':')[0x0])),_0x500621[_0x5f579e(0x2348)](Number(_0x3429c2['split'](':')[0x1])),_0x1f806c[_0x5f579e(0x2469)]=_0x500621,_0x500621=new Date(),_0x500621[_0x5f579e(0x25cd)](Number(_0x4a4b58['split'](':')[0x0])),_0x500621['setMinutes'](Number(_0x4a4b58[_0x5f579e(0x10c8)](':')[0x1])),_0x1f806c['timeRangeTo']=_0x500621;}_0x1f1826!=='*'&&(_0x1f806c[_0x5f579e(0x1455)]=_0x1f1826['split']('-')[0x0],_0x1f806c['dayOfWeekTo']=_0x1f1826[_0x5f579e(0x10c8)]('-')[0x1]),_0xfa11e3!=='*'&&(_0x1f806c[_0x5f579e(0xf0b)]=_0xfa11e3[_0x5f579e(0x10c8)]('-')[0x0],_0x1f806c[_0x5f579e(0x896)]=_0xfa11e3[_0x5f579e(0x10c8)]('-')[0x1]),_0x227abd!=='*'&&(_0x1f806c['monthFrom']=_0x227abd[_0x5f579e(0x10c8)]('-')[0x0],_0x1f806c['monthTo']=_0x227abd[_0x5f579e(0x10c8)]('-')[0x1]);}else _0x1f806c[_0x5f579e(0x1142)]=_0x5f579e(0xd85);}_0x1535e1[_0x5f579e(0x16a)]['id']&&!_0x1f806c[_0x5f579e(0x2765)][_0x5f579e(0xea)]&&(_0x1f806c[_0x5f579e(0x2765)]['IntervalId']=_0x1535e1[_0x5f579e(0x16a)]['id']);_0x1f806c[_0x5f579e(0x2765)]['IntervalId']&&_0x1f806c[_0x5f579e(0x2765)][_0x5f579e(0xea)]&&(_0x1f806c[_0x5f579e(0x1142)]=_0x5f579e(0x25f4));_0x1f806c[_0x5f579e(0x2f0)]=_0x293038,_0x1f806c[_0x5f579e(0x1242)]=_0x4b3823,_0x1f806c[_0x5f579e(0x13f3)]=_0x14c362;_0x1f806c['interval'][_0x5f579e(0xea)]&&(_0x5cecc7[_0x5f579e(0x23e0)](_0x5f579e(0x174b))?_0x4c1be1[_0x5f579e(0x2765)][_0x5f579e(0x16b4)]({'fields':_0x5f579e(0x648),'IntervalId':_0x5f579e(0x203c),'nolimit':!![]})['$promise']['then'](function(_0x3a9ba3){const _0x3bca22=_0x5f579e;_0x1f806c['intervals']=_0x3a9ba3[_0x3bca22(0x19c7)]||[];})[_0x5f579e(0x129e)](function(_0x546bda){const _0x39bbd3=_0x5f579e;_0x124142[_0x39bbd3(0x1980)]({'title':_0x546bda[_0x39bbd3(0x107b)]?_0x39bbd3(0x262a)+_0x546bda[_0x39bbd3(0x107b)]+_0x39bbd3(0x1315)+_0x546bda['statusText']:_0x39bbd3(0x603),'msg':_0x546bda[_0x39bbd3(0x524)]?JSON[_0x39bbd3(0x10bb)](_0x546bda[_0x39bbd3(0x524)]):_0x546bda[_0x39bbd3(0xd5f)]()});}):_0x4c1be1[_0x5f579e(0x2765)][_0x5f579e(0x16b4)]({'fields':'id,name,interval,IntervalId','IntervalId':_0x5f579e(0x203c),'nolimit':!![]})['$promise']['then'](function(_0x2fa95b){_0x1f806c['intervals']=_0x2fa95b['rows']||[];})[_0x5f579e(0x146b)](function(){const _0x182827=_0x5f579e;return _0x4c1be1['userProfileSection'][_0x182827(0x16b4)]({'userProfileId':_0x1f806c[_0x182827(0x2321)][_0x182827(0x209a)],'sectionId':0x3ec})[_0x182827(0x2945)];})[_0x5f579e(0x146b)](function(_0x4b0383){const _0x13e569=_0x5f579e,_0x897f3e=_0x4b0383&&_0x4b0383['rows']?_0x4b0383[_0x13e569(0x19c7)][0x0]:null;if(!_0x897f3e)_0x1f806c[_0x13e569(0x278f)]=[];else{if(!_0x897f3e[_0x13e569(0x11d2)])return _0x4c1be1[_0x13e569(0xdcc)][_0x13e569(0x16b4)]({'sectionId':_0x897f3e['id']})[_0x13e569(0x2945)][_0x13e569(0x146b)](function(_0x5bf1e1){const _0x25f3dc=_0x13e569,_0x250037=_0x5bf1e1&&_0x5bf1e1['rows']?_0x5bf1e1[_0x25f3dc(0x19c7)]:[],_0x292fd1=[];let _0x227fcb=null;_0x1f806c['interval']&&(_0x227fcb=_0x3f65c0()['find'](_0x1f806c[_0x25f3dc(0x278f)],{'name':_0x1f806c[_0x25f3dc(0x2765)][_0x25f3dc(0x1ff2)]})),_0x227fcb&&!_0x3f65c0()[_0x25f3dc(0x1360)](_0x250037,[_0x25f3dc(0x18b8),_0x227fcb['id']])&&_0x1f806c[_0x25f3dc(0x278f)][_0x25f3dc(0x1df5)](function(_0x495551){const _0xdf47a7=_0x25f3dc;_0x495551['id']===_0x227fcb['id']&&(_0x495551[_0xdf47a7(0x8ff)]=![],_0x292fd1[_0xdf47a7(0x1f47)](_0x495551));}),_0x1f806c[_0x25f3dc(0x278f)]=_0x292fd1;});}})['catch'](function(_0x1fbba3){const _0xb1fcb1=_0x5f579e;_0x124142[_0xb1fcb1(0x1980)]({'title':_0x1fbba3[_0xb1fcb1(0x107b)]?_0xb1fcb1(0x262a)+_0x1fbba3['status']+_0xb1fcb1(0x1315)+_0x1fbba3[_0xb1fcb1(0x167f)]:_0xb1fcb1(0x603),'msg':_0x1fbba3[_0xb1fcb1(0x524)]?JSON['stringify'](_0x1fbba3[_0xb1fcb1(0x524)]):_0x1fbba3[_0xb1fcb1(0xd5f)]()});}));function _0x2c7939(){const _0x5783df=_0x5f579e;switch(_0x1f806c[_0x5783df(0x1142)]){case _0x5783df(0xd85):case _0x5783df(0x25f4):return _0x5783df(0x1559);case'custom':{const _0x4a3165=[];if(_0x1f806c[_0x5783df(0x2469)]!=='*'&&_0x1f806c['timeRangeFrom']&&_0x1f806c[_0x5783df(0x637)]){const _0x5b314f=(_0x1f806c['timeRangeFrom'][_0x5783df(0x1d57)]()<0xa?'0':'')+_0x1f806c['timeRangeFrom'][_0x5783df(0x1d57)]()+':'+((_0x1f806c['timeRangeFrom'][_0x5783df(0x7fc)]()<0xa?'0':'')+_0x1f806c[_0x5783df(0x2469)][_0x5783df(0x7fc)]()),_0x4e0ea1=(_0x1f806c['timeRangeTo']['getHours']()<0xa?'0':'')+_0x1f806c[_0x5783df(0x637)][_0x5783df(0x1d57)]()+':'+((_0x1f806c[_0x5783df(0x637)][_0x5783df(0x7fc)]()<0xa?'0':'')+_0x1f806c[_0x5783df(0x637)][_0x5783df(0x7fc)]());_0x4a3165['push'](_0x5b314f+'-'+_0x4e0ea1);}else _0x4a3165[_0x5783df(0x1f47)]('*');return _0x1f806c[_0x5783df(0x1455)]?_0x1f806c[_0x5783df(0x27a1)]?_0x4a3165[_0x5783df(0x1f47)](_0x1f806c[_0x5783df(0x1455)]+'-'+_0x1f806c[_0x5783df(0x27a1)]):_0x4a3165[_0x5783df(0x1f47)](_0x1f806c[_0x5783df(0x1455)]):_0x4a3165[_0x5783df(0x1f47)]('*'),_0x1f806c[_0x5783df(0xf0b)]?_0x1f806c['monthDayTo']?_0x4a3165[_0x5783df(0x1f47)](_0x1f806c[_0x5783df(0xf0b)]+'-'+_0x1f806c['monthDayTo']):_0x4a3165[_0x5783df(0x1f47)](_0x1f806c[_0x5783df(0xf0b)]):_0x4a3165['push']('*'),_0x1f806c['monthFrom']?_0x1f806c[_0x5783df(0x9c3)]?_0x4a3165[_0x5783df(0x1f47)](_0x1f806c[_0x5783df(0x167)]+'-'+_0x1f806c[_0x5783df(0x9c3)]):_0x4a3165['push'](_0x1f806c['monthFrom']):_0x4a3165[_0x5783df(0x1f47)]('*'),_0x4a3165[_0x5783df(0xb47)]();}}}function _0x293038(){const _0xc55487=_0x5f579e;_0x1f806c[_0xc55487(0xcef)]=[],_0x1f806c[_0xc55487(0x2765)]['interval']=_0x2c7939(),_0x4c1be1[_0xc55487(0x2765)][_0xc55487(0x1e3)](_0x1f806c[_0xc55487(0x2765)])[_0xc55487(0x2945)][_0xc55487(0x146b)](function(_0x3006c1){const _0x404053=_0xc55487;_0x1f806c['intervals']['push'](_0x3006c1),_0x124142[_0x404053(0x1c75)]({'title':_0x404053(0x17f5),'msg':_0x1f806c[_0x404053(0x2765)][_0x404053(0x19eb)]?_0x1f806c['interval']['name']+_0x404053(0x1386):''}),_0x14c362();})[_0xc55487(0x129e)](function(_0x251224){const _0x10cbcd=_0xc55487;console['error'](_0x251224),_0x1f806c[_0x10cbcd(0xcef)]=_0x251224[_0x10cbcd(0x524)][_0x10cbcd(0xcef)]||[{'message':_0x251224['toString'](),'type':_0x10cbcd(0x7e7)}];});}function _0x4b3823(){const _0x44fc5b=_0x5f579e;_0x1f806c[_0x44fc5b(0xcef)]=[],_0x1f806c['interval'][_0x44fc5b(0x2765)]=_0x2c7939(),_0x1f806c[_0x44fc5b(0x2765)][_0x44fc5b(0xea)]?(_0x1f806c[_0x44fc5b(0x1142)]!==_0x44fc5b(0x25f4)&&(_0x1f806c[_0x44fc5b(0x2765)]['IntervalId']=null),_0x14c362(_0x1f806c[_0x44fc5b(0x2765)])):_0x4c1be1[_0x44fc5b(0x2765)][_0x44fc5b(0x18e1)]({'id':_0x1f806c[_0x44fc5b(0x2765)]['id']},_0x1f806c[_0x44fc5b(0x2765)])['$promise'][_0x44fc5b(0x146b)](function(_0x1cad06){const _0x4c71c6=_0x44fc5b,_0x5857db=_0x3f65c0()[_0x4c71c6(0xc84)](_0x1f806c[_0x4c71c6(0x278f)],{'id':_0x1cad06['id']});_0x5857db&&_0x3f65c0()[_0x4c71c6(0x168d)](_0x5857db,_0x1cad06),_0x124142['success']({'title':_0x4c71c6(0x1d51),'msg':_0x4c71c6(0x97a)}),_0x14c362();})[_0x44fc5b(0x129e)](function(_0x4d0f77){const _0x176c82=_0x44fc5b;console[_0x176c82(0x1980)](_0x4d0f77),_0x1f806c[_0x176c82(0xcef)]=_0x4d0f77[_0x176c82(0x524)][_0x176c82(0xcef)]||[{'message':_0x4d0f77[_0x176c82(0xd5f)](),'type':_0x176c82(0x1fbe)}];});}function _0x14c362(_0x13cb02){const _0x463e19=_0x5f579e;_0x3e3744[_0x463e19(0x2458)](_0x13cb02);}}const _0x4f87f7=_0xe23b33;;_0x1bc1c4[_0x313a4d(0x11c2)]=['$mdDialog','$q',_0x313a4d(0x1fe4),'internalrouteApp',_0x313a4d(0x86f),_0x313a4d(0x247f),'Auth','crudPermissions'];function _0x1bc1c4(_0x253030,_0x4eb9eb,_0x3ce0ce,_0x57d8d6,_0x8fd175,_0x8cf24,_0xf6f96,_0x38d013){const _0x877491=_0x313a4d,_0xfa3948=this;_0xfa3948[_0x877491(0x2321)]=_0xf6f96[_0x877491(0xb12)](),_0xfa3948[_0x877491(0xcef)]=[],_0xfa3948['title']=_0x877491(0x1950)+(_0x57d8d6[_0x877491(0x8f2)]||_0x57d8d6['app'])[_0x877491(0x1c37)](),_0xfa3948[_0x877491(0x288a)]=angular[_0x877491(0x235a)](_0x57d8d6),_0xfa3948['crudPermissions']=_0x38d013,_0xfa3948[_0x877491(0x855)]={};if(_0xfa3948[_0x877491(0x288a)]['appdata'])switch(_0xfa3948['playback'][_0x877491(0x8f2)]?_0xfa3948[_0x877491(0x288a)][_0x877491(0x8f2)][_0x877491(0x256e)]():_0xfa3948['playback'][_0x877491(0x1873)]['toLowerCase']()){case _0x877491(0x1802):break;case'dialogflow':{const _0x1457ee=_0xfa3948[_0x877491(0x288a)][_0x877491(0x168a)][_0x877491(0x10c8)](',');_0xfa3948[_0x877491(0x288a)][_0x877491(0x2293)]=_0x1457ee[0x0],_0xfa3948[_0x877491(0x288a)][_0x877491(0x90b)]=_0x1457ee[0x1],_0xfa3948[_0x877491(0x288a)]['welcomemessage']=_0x1457ee['slice'](0x2,_0x1457ee[_0x877491(0x402)])['join'](',');}break;case _0x877491(0xa46):{const _0x898be0=_0xfa3948['playback']['appdata'][_0x877491(0x10c8)](',');_0xfa3948[_0x877491(0x288a)][_0x877491(0x153a)]=_0x898be0[0x0],_0xfa3948['playback']['clientEmail']=_0x898be0[0x1],_0xfa3948[_0x877491(0x288a)][_0x877491(0x2217)]=_0x898be0[0x2],_0xfa3948[_0x877491(0x288a)]['language']=_0x898be0[0x3],_0xfa3948[_0x877491(0x288a)][_0x877491(0xaf3)]=_0x898be0[_0x877491(0x1298)](0x4,_0x898be0['length'])[_0x877491(0xb47)](',');}break;case _0x877491(0x17d6):{const _0x3d59f9=_0xfa3948['playback'][_0x877491(0x168a)][_0x877491(0x10c8)](',');_0xfa3948[_0x877491(0x288a)][_0x877491(0x1651)]=_0x3d59f9[0x0],_0xfa3948[_0x877491(0x288a)]['secretaccesskey']=_0x3d59f9[0x1],_0xfa3948['playback'][_0x877491(0x1039)]=_0x3d59f9[0x2],_0xfa3948[_0x877491(0x288a)][_0x877491(0x8dd)]=_0x3d59f9[0x3],_0xfa3948['playback'][_0x877491(0xaf3)]=_0x3d59f9[_0x877491(0x1298)](0x4,_0x3d59f9[_0x877491(0x402)])[_0x877491(0xb47)](',');}break;case'autoreply':{const _0x5cd0b4=_0xfa3948[_0x877491(0x288a)][_0x877491(0x168a)][_0x877491(0x10c8)](',');_0xfa3948[_0x877491(0x288a)][_0x877491(0x583)]=isNaN(_0x5cd0b4[0x0])?_0x5cd0b4[0x0]:parseInt(_0x5cd0b4[0x0],0xa),_0xfa3948[_0x877491(0x288a)][_0x877491(0xa8d)]=_0x5cd0b4['slice'](0x1,_0x5cd0b4['length'])['join'](',');}break;case _0x877491(0x7fd):_0xfa3948['playback'][_0x877491(0xa8d)]=_0xfa3948[_0x877491(0x288a)][_0x877491(0x168a)];break;case'set':_0xfa3948[_0x877491(0x288a)][_0x877491(0x19eb)]=_0xfa3948['playback'][_0x877491(0x168a)][_0x877491(0x10c8)]('=')[0x0],_0xfa3948[_0x877491(0x288a)][_0x877491(0x175d)]=_0xfa3948[_0x877491(0x288a)]['appdata'][_0x877491(0x10c8)]('=')[0x1];break;case _0x877491(0x1ecb):_0xfa3948[_0x877491(0x288a)]['project']=_0xfa3948[_0x877491(0x288a)][_0x877491(0x168a)];break;default:{const _0x2a9c9a=_0xfa3948[_0x877491(0x288a)]['appdata'][_0x877491(0x10c8)](',');_0xfa3948[_0x877491(0x288a)][_0x877491(0x168a)]=_0x3f65c0()[_0x877491(0x2635)](_0x2a9c9a[0x0])?_0x2a9c9a[0x0]:isNaN(_0x2a9c9a[0x0])?_0x2a9c9a[0x0]:parseInt(_0x2a9c9a[0x0],0xa),_0xfa3948[_0x877491(0x288a)][_0x877491(0xa08)]=_0x3f65c0()[_0x877491(0x2635)](_0x2a9c9a[0x1])?_0x2a9c9a[0x1]:isNaN(_0x2a9c9a[0x1])?_0x2a9c9a[0x1]:parseInt(_0x2a9c9a[0x1],0xa);}break;}else{}_0xfa3948[_0x877491(0x288a)][_0x877491(0x1142)]&&_0xfa3948[_0x877491(0x288a)][_0x877491(0x1142)][_0x877491(0x256e)]()===_0x877491(0xc9c)&&_0xfa3948['playback']['appType'][_0x877491(0x256e)]()===_0x877491(0x3bb)&&(_0xfa3948[_0x877491(0x288a)]['prefix']=_0xfa3948['playback'][_0x877491(0x1d55)]?_0xfa3948[_0x877491(0x288a)][_0x877491(0x1d55)][_0x877491(0x10c8)]('$')[0x0]:undefined,_0xfa3948[_0x877491(0x288a)]['callerId']=_0xfa3948[_0x877491(0x288a)][_0x877491(0x11be)]?_0x877491(0x1b60)+_0xfa3948['playback'][_0x877491(0x11be)]:undefined);_0xfa3948[_0x877491(0x1f34)]=_0x18ff08,_0xfa3948[_0x877491(0x13f3)]=_0x4c33ee,_0xf6f96['hasRole'](_0x877491(0x174b))?_0x8cf24[_0x877491(0x126d)][_0x877491(0x16b4)]({'fields':_0x877491(0x222a),'sort':_0x877491(0x19eb),'nolimit':_0x877491(0x1185)})['$promise'][_0x877491(0x146b)](function(_0x36aad4){const _0x4d5761=_0x877491;_0xfa3948[_0x4d5761(0xb02)]=_0x36aad4[_0x4d5761(0x19c7)]||[];})[_0x877491(0x129e)](function(_0x1c8db6){const _0x2b51a7=_0x877491;_0x3ce0ce[_0x2b51a7(0x1980)]({'title':_0x1c8db6[_0x2b51a7(0x107b)]?_0x2b51a7(0x262a)+_0x1c8db6[_0x2b51a7(0x107b)]+_0x2b51a7(0x1315)+_0x1c8db6['statusText']:_0x2b51a7(0xd4a),'msg':_0x1c8db6['data']?JSON[_0x2b51a7(0x10bb)](_0x1c8db6['data']):_0x1c8db6[_0x2b51a7(0xd5f)]()});}):_0x8cf24['sound'][_0x877491(0x16b4)]({'fields':'id,name,save_name','sort':_0x877491(0x19eb),'nolimit':'true'})[_0x877491(0x2945)][_0x877491(0x146b)](function(_0x5ec362){const _0x3ad67c=_0x877491;_0xfa3948['sounds']=_0x5ec362[_0x3ad67c(0x19c7)]||[];})[_0x877491(0x146b)](function(){const _0x396e53=_0x877491;return _0x8cf24['userProfileSection']['get']({'userProfileId':_0xfa3948[_0x396e53(0x2321)][_0x396e53(0x209a)],'sectionId':0x3ef})['$promise'];})[_0x877491(0x146b)](function(_0x334352){const _0x1c148c=_0x877491,_0x3739a4=_0x334352&&_0x334352['rows']?_0x334352[_0x1c148c(0x19c7)][0x0]:null;if(!_0x3739a4){const _0x5984b4=[];let _0x3702fe=null;_0xfa3948[_0x1c148c(0x288a)]&&(_0x3702fe=_0x3f65c0()[_0x1c148c(0xc84)](_0xfa3948[_0x1c148c(0xb02)],{'save_name':_0xfa3948[_0x1c148c(0x288a)][_0x1c148c(0x168a)]}));for(let _0xa66d50=0x0;_0xa66d50<_0xfa3948[_0x1c148c(0xb02)][_0x1c148c(0x402)];_0xa66d50++){_0x3702fe&&_0xfa3948[_0x1c148c(0xb02)][_0xa66d50]['id']===_0x3702fe['id']&&(_0xfa3948[_0x1c148c(0xb02)][_0xa66d50][_0x1c148c(0x8ff)]=![],_0x5984b4[_0x1c148c(0x1f47)](_0xfa3948[_0x1c148c(0xb02)][_0xa66d50]));}_0xfa3948[_0x1c148c(0xb02)]=_0x5984b4;}else{if(!_0x3739a4['autoAssociation'])return _0x8cf24[_0x1c148c(0xdcc)][_0x1c148c(0x16b4)]({'sectionId':_0x3739a4['id']})[_0x1c148c(0x2945)]['then'](function(_0x3cc77a){const _0x26ef43=_0x1c148c,_0x18371d=_0x3f65c0()['map'](_0x3cc77a[_0x26ef43(0x19c7)],function(_0x1c3cc6){const _0x4c00be=_0x26ef43;return _0x3f65c0()[_0x4c00be(0xc84)](_0xfa3948['sounds'],{'id':_0x1c3cc6[_0x4c00be(0x18b8)]});});let _0x9fe5af=null;_0xfa3948[_0x26ef43(0x288a)]&&(_0x9fe5af=_0x3f65c0()[_0x26ef43(0xc84)](_0xfa3948[_0x26ef43(0xb02)],{'save_name':_0xfa3948['playback'][_0x26ef43(0x168a)]}));if(_0x9fe5af&&!_0x3f65c0()[_0x26ef43(0x1360)](_0x18371d,['id',_0x9fe5af['id']])){const _0x2e8657=_0x3f65c0()[_0x26ef43(0xc84)](_0xfa3948[_0x26ef43(0xb02)],{'id':_0x9fe5af['id']});_0x2e8657[_0x26ef43(0x8ff)]=![],_0x18371d[_0x26ef43(0x1f47)](_0x2e8657);}_0xfa3948[_0x26ef43(0xb02)]=_0x18371d;});}})['catch'](function(_0x23ab03){const _0x4803eb=_0x877491;_0x3ce0ce[_0x4803eb(0x1980)]({'title':_0x23ab03[_0x4803eb(0x107b)]?_0x4803eb(0x262a)+_0x23ab03[_0x4803eb(0x107b)]+'\x20-\x20'+_0x23ab03[_0x4803eb(0x167f)]:_0x4803eb(0x2682),'msg':_0x23ab03[_0x4803eb(0x524)]?JSON[_0x4803eb(0x10bb)](_0x23ab03[_0x4803eb(0x524)]):_0x23ab03[_0x4803eb(0xd5f)]()});});function _0x18ff08(){const _0x400e24=_0x877491;_0xfa3948[_0x400e24(0xcef)]=[];const _0x378875=[];_0xfa3948[_0x400e24(0x288a)]['type']&&_0xfa3948[_0x400e24(0x288a)][_0x400e24(0x1142)][_0x400e24(0x256e)]()===_0x400e24(0xc9c)&&_0xfa3948[_0x400e24(0x288a)]['appType']===_0x400e24(0x118b)&&(_0xfa3948[_0x400e24(0x288a)][_0x400e24(0x1d55)]=_0x8fd175['cutdigits']?(_0xfa3948['playback'][_0x400e24(0x1e12)]||'')+'${EXTEN:'+_0x8fd175[_0x400e24(0x1274)]+'}':(_0xfa3948['playback']['prefix']||'')+_0x400e24(0x20df),_0x8fd175[_0x400e24(0x1425)]!==_0x400e24(0x1642)?_0xfa3948[_0x400e24(0x288a)]['options']['indexOf'](_0x400e24(0x1ea4))<0x0&&(_0xfa3948[_0x400e24(0x288a)][_0x400e24(0xa08)]+=_0x400e24(0x1ea4)):_0xfa3948[_0x400e24(0x288a)][_0x400e24(0xa08)]=_0xfa3948['playback']['options']['replace']('U(xcally-mixmonitor-context)',''));if(_0xfa3948[_0x400e24(0x288a)][_0x400e24(0x8f2)]&&_0xfa3948[_0x400e24(0x288a)]['appType']==='custom'){}else switch((_0xfa3948[_0x400e24(0x288a)]['app']||_0xfa3948[_0x400e24(0x288a)]['appType'])[_0x400e24(0x256e)]()){case _0x400e24(0x26ba):_0xfa3948[_0x400e24(0x288a)][_0x400e24(0x168a)]=_0xfa3948['playback'][_0x400e24(0x19eb)]+'='+_0xfa3948[_0x400e24(0x288a)][_0x400e24(0x175d)];break;case'custom':break;default:_0x378875[0x0]=_0xfa3948['playback'][_0x400e24(0x168a)],_0x378875[0x1]=_0xfa3948[_0x400e24(0x288a)][_0x400e24(0xa08)],_0xfa3948[_0x400e24(0x288a)]['appdata']=_0x378875[_0x400e24(0xb47)](',');}_0x4c33ee(_0xfa3948[_0x400e24(0x288a)]);}function _0x4c33ee(_0xa09d25){const _0x12cfd7=_0x877491;_0x253030[_0x12cfd7(0x2458)](_0xa09d25);}}const _0x122cea=_0x1bc1c4;;_0x3acdaa[_0x313a4d(0x11c2)]=['$mdDialog','$q',_0x313a4d(0x1fe4),'internalrouteApp','internalroute',_0x313a4d(0x247f),_0x313a4d(0xa87),_0x313a4d(0x2514)];function _0x3acdaa(_0x219e8a,_0x453962,_0x372722,_0x646c39,_0xbddb98,_0x148412,_0xac7fcb,_0x558ede){const _0x1ba6f5=_0x313a4d,_0x58db0b=this;_0x58db0b[_0x1ba6f5(0x2321)]=_0xac7fcb[_0x1ba6f5(0xb12)](),_0x58db0b[_0x1ba6f5(0xcef)]=[],_0x58db0b[_0x1ba6f5(0x1189)]=_0x1ba6f5(0x1950)+(_0x646c39['appType']||_0x646c39[_0x1ba6f5(0x1873)])['toUpperCase'](),_0x58db0b[_0x1ba6f5(0x1c72)]=angular['copy'](_0x646c39),_0x58db0b['crudPermissions']=_0x558ede,_0x58db0b[_0x1ba6f5(0x855)]={};if(_0x58db0b[_0x1ba6f5(0x1c72)][_0x1ba6f5(0x168a)])switch(_0x58db0b[_0x1ba6f5(0x1c72)][_0x1ba6f5(0x8f2)]?_0x58db0b[_0x1ba6f5(0x1c72)][_0x1ba6f5(0x8f2)][_0x1ba6f5(0x256e)]():_0x58db0b[_0x1ba6f5(0x1c72)]['app']['toLowerCase']()){case _0x1ba6f5(0x1802):break;case _0x1ba6f5(0xeaa):{const _0x5890e8=_0x58db0b[_0x1ba6f5(0x1c72)][_0x1ba6f5(0x168a)][_0x1ba6f5(0x10c8)](',');_0x58db0b[_0x1ba6f5(0x1c72)][_0x1ba6f5(0x2293)]=_0x5890e8[0x0],_0x58db0b[_0x1ba6f5(0x1c72)]['language']=_0x5890e8[0x1],_0x58db0b[_0x1ba6f5(0x1c72)][_0x1ba6f5(0xaf3)]=_0x5890e8[_0x1ba6f5(0x1298)](0x2,_0x5890e8['length'])[_0x1ba6f5(0xb47)](',');}break;case _0x1ba6f5(0xa46):{const _0xf983c2=_0x58db0b['queue'][_0x1ba6f5(0x168a)][_0x1ba6f5(0x10c8)](',');_0x58db0b[_0x1ba6f5(0x1c72)][_0x1ba6f5(0x153a)]=_0xf983c2[0x0],_0x58db0b[_0x1ba6f5(0x1c72)]['clientEmail']=_0xf983c2[0x1],_0x58db0b[_0x1ba6f5(0x1c72)][_0x1ba6f5(0x2217)]=_0xf983c2[0x2],_0x58db0b[_0x1ba6f5(0x1c72)]['language']=_0xf983c2[0x3],_0x58db0b['queue']['welcomemessage']=_0xf983c2[_0x1ba6f5(0x1298)](0x4,_0xf983c2[_0x1ba6f5(0x402)])[_0x1ba6f5(0xb47)](',');}break;case'amazonlex':{const _0x420a68=_0x58db0b[_0x1ba6f5(0x1c72)]['appdata'][_0x1ba6f5(0x10c8)](',');_0x58db0b['queue']['accesskeyid']=_0x420a68[0x0],_0x58db0b['queue'][_0x1ba6f5(0x252)]=_0x420a68[0x1],_0x58db0b[_0x1ba6f5(0x1c72)][_0x1ba6f5(0x1039)]=_0x420a68[0x2],_0x58db0b[_0x1ba6f5(0x1c72)][_0x1ba6f5(0x8dd)]=_0x420a68[0x3],_0x58db0b[_0x1ba6f5(0x1c72)][_0x1ba6f5(0xaf3)]=_0x420a68[_0x1ba6f5(0x1298)](0x4,_0x420a68[_0x1ba6f5(0x402)])[_0x1ba6f5(0xb47)](',');}break;case _0x1ba6f5(0x1713):{const _0xd03c7e=_0x58db0b[_0x1ba6f5(0x1c72)]['appdata'][_0x1ba6f5(0x10c8)](',');_0x58db0b[_0x1ba6f5(0x1c72)]['times']=isNaN(_0xd03c7e[0x0])?_0xd03c7e[0x0]:parseInt(_0xd03c7e[0x0],0xa),_0x58db0b[_0x1ba6f5(0x1c72)][_0x1ba6f5(0xa8d)]=_0xd03c7e[_0x1ba6f5(0x1298)](0x1,_0xd03c7e[_0x1ba6f5(0x402)])[_0x1ba6f5(0xb47)](',');}break;case _0x1ba6f5(0x7fd):_0x58db0b[_0x1ba6f5(0x1c72)][_0x1ba6f5(0xa8d)]=_0x58db0b[_0x1ba6f5(0x1c72)][_0x1ba6f5(0x168a)];break;case _0x1ba6f5(0x26ba):_0x58db0b[_0x1ba6f5(0x1c72)][_0x1ba6f5(0x19eb)]=_0x58db0b['queue'][_0x1ba6f5(0x168a)][_0x1ba6f5(0x10c8)]('=')[0x0],_0x58db0b[_0x1ba6f5(0x1c72)]['value']=_0x58db0b[_0x1ba6f5(0x1c72)][_0x1ba6f5(0x168a)][_0x1ba6f5(0x10c8)]('=')[0x1];break;case _0x1ba6f5(0x1ecb):_0x58db0b[_0x1ba6f5(0x1c72)][_0x1ba6f5(0x9e0)]=_0x58db0b['queue'][_0x1ba6f5(0x168a)];break;default:{const _0x37ffd5=_0x58db0b['queue'][_0x1ba6f5(0x168a)][_0x1ba6f5(0x10c8)](',');_0x58db0b[_0x1ba6f5(0x1c72)][_0x1ba6f5(0x1c72)]=_0x3f65c0()[_0x1ba6f5(0x2635)](_0x37ffd5[0x0])?_0x37ffd5[0x0]:isNaN(_0x37ffd5[0x0])?_0x37ffd5[0x0]:parseInt(_0x37ffd5[0x0],0xa),_0x58db0b['queue'][_0x1ba6f5(0xa08)]=_0x3f65c0()[_0x1ba6f5(0x2635)](_0x37ffd5[0x1])?_0x37ffd5[0x1]:isNaN(_0x37ffd5[0x1])?_0x37ffd5[0x1]:parseInt(_0x37ffd5[0x1],0xa),_0x58db0b['queue'][_0x1ba6f5(0x1227)]=_0x3f65c0()['isEmpty'](_0x37ffd5[0x2])?_0x37ffd5[0x2]:isNaN(_0x37ffd5[0x2])?_0x37ffd5[0x2]:parseInt(_0x37ffd5[0x2],0xa),_0x58db0b['queue'][_0x1ba6f5(0x126d)]=_0x3f65c0()[_0x1ba6f5(0x2635)](_0x37ffd5[0x3])?_0x37ffd5[0x3]:isNaN(_0x37ffd5[0x3])?_0x37ffd5[0x3]:parseInt(_0x37ffd5[0x3],0xa),_0x58db0b['queue']['timeout']=_0x3f65c0()[_0x1ba6f5(0x2635)](_0x37ffd5[0x4])?_0x37ffd5[0x4]:isNaN(_0x37ffd5[0x4])?_0x37ffd5[0x4]:parseInt(_0x37ffd5[0x4],0xa),_0x58db0b[_0x1ba6f5(0x1c72)][_0x1ba6f5(0x1ecb)]=_0x3f65c0()['isEmpty'](_0x37ffd5[0x5])?_0x37ffd5[0x5]:isNaN(_0x37ffd5[0x5])?_0x37ffd5[0x5]:parseInt(_0x37ffd5[0x5],0xa),_0x58db0b['queue'][_0x1ba6f5(0x9d2)]=_0x3f65c0()[_0x1ba6f5(0x2635)](_0x37ffd5[0x6])?_0x37ffd5[0x6]:isNaN(_0x37ffd5[0x6])?_0x37ffd5[0x6]:parseInt(_0x37ffd5[0x6],0xa),_0x58db0b[_0x1ba6f5(0x1c72)][_0x1ba6f5(0x1779)]=_0x3f65c0()['isEmpty'](_0x37ffd5[0x7])?_0x37ffd5[0x7]:isNaN(_0x37ffd5[0x7])?_0x37ffd5[0x7]:parseInt(_0x37ffd5[0x7],0xa),_0x58db0b[_0x1ba6f5(0x1c72)][_0x1ba6f5(0x95e)]=_0x3f65c0()['isEmpty'](_0x37ffd5[0x8])?_0x37ffd5[0x8]:isNaN(_0x37ffd5[0x8])?_0x37ffd5[0x8]:parseInt(_0x37ffd5[0x8],0xa),_0x58db0b[_0x1ba6f5(0x1c72)]['position']=_0x3f65c0()[_0x1ba6f5(0x2635)](_0x37ffd5[0x9])?_0x37ffd5[0x9]:isNaN(_0x37ffd5[0x9])?_0x37ffd5[0x9]:parseInt(_0x37ffd5[0x9],0xa);}break;}else{}_0x58db0b[_0x1ba6f5(0x1c72)]['type']&&_0x58db0b[_0x1ba6f5(0x1c72)][_0x1ba6f5(0x1142)][_0x1ba6f5(0x256e)]()==='outbound'&&_0x58db0b['queue'][_0x1ba6f5(0x8f2)][_0x1ba6f5(0x256e)]()===_0x1ba6f5(0x3bb)&&(_0x58db0b[_0x1ba6f5(0x1c72)][_0x1ba6f5(0x1e12)]=_0x58db0b[_0x1ba6f5(0x1c72)][_0x1ba6f5(0x1d55)]?_0x58db0b['queue'][_0x1ba6f5(0x1d55)][_0x1ba6f5(0x10c8)]('$')[0x0]:undefined,_0x58db0b['queue']['callerId']=_0x58db0b[_0x1ba6f5(0x1c72)][_0x1ba6f5(0x11be)]?_0x1ba6f5(0x1b60)+_0x58db0b[_0x1ba6f5(0x1c72)]['callerID']:undefined);_0x58db0b[_0x1ba6f5(0x1f34)]=_0x4177a0,_0x58db0b[_0x1ba6f5(0x13f3)]=_0x20ed91,_0xac7fcb[_0x1ba6f5(0x23e0)](_0x1ba6f5(0x174b))?_0x148412['sound'][_0x1ba6f5(0x16b4)]({'fields':'id,name,save_name','sort':_0x1ba6f5(0x19eb),'nolimit':'true'})['$promise'][_0x1ba6f5(0x146b)](function(_0x3abde3){const _0x130bb5=_0x1ba6f5;_0x58db0b[_0x130bb5(0xb02)]=_0x3abde3[_0x130bb5(0x19c7)]||[];})[_0x1ba6f5(0x129e)](function(_0x1346b1){const _0x2d767f=_0x1ba6f5;_0x372722[_0x2d767f(0x1980)]({'title':_0x1346b1[_0x2d767f(0x107b)]?_0x2d767f(0x262a)+_0x1346b1['status']+_0x2d767f(0x1315)+_0x1346b1[_0x2d767f(0x167f)]:_0x2d767f(0xd4a),'msg':_0x1346b1['data']?JSON[_0x2d767f(0x10bb)](_0x1346b1[_0x2d767f(0x524)]):_0x1346b1['toString']()});}):_0x148412[_0x1ba6f5(0x126d)]['get']({'fields':_0x1ba6f5(0x222a),'sort':_0x1ba6f5(0x19eb),'nolimit':'true'})[_0x1ba6f5(0x2945)]['then'](function(_0x3aed52){const _0x51a235=_0x1ba6f5;_0x58db0b[_0x51a235(0xb02)]=_0x3aed52['rows']||[];})[_0x1ba6f5(0x146b)](function(){const _0x4c1ba6=_0x1ba6f5;return _0x148412[_0x4c1ba6(0x1366)]['get']({'userProfileId':_0x58db0b[_0x4c1ba6(0x2321)][_0x4c1ba6(0x209a)],'sectionId':0x3ef})[_0x4c1ba6(0x2945)];})[_0x1ba6f5(0x146b)](function(_0x1627ff){const _0x188739=_0x1ba6f5,_0x5215e4=_0x1627ff&&_0x1627ff['rows']?_0x1627ff[_0x188739(0x19c7)][0x0]:null;if(!_0x5215e4){const _0x4bf13a=[];let _0x3b3375=null;_0x58db0b[_0x188739(0x1c72)]&&(_0x3b3375=_0x3f65c0()[_0x188739(0xc84)](_0x58db0b['sounds'],{'save_name':_0x58db0b[_0x188739(0x1c72)][_0x188739(0x126d)]}));for(let _0xd9b8=0x0;_0xd9b8<_0x58db0b['sounds']['length'];_0xd9b8++){_0x3b3375&&_0x58db0b[_0x188739(0xb02)][_0xd9b8]['id']===_0x3b3375['id']&&(_0x58db0b['sounds'][_0xd9b8]['canSelect']=![],_0x4bf13a[_0x188739(0x1f47)](_0x58db0b[_0x188739(0xb02)][_0xd9b8]));}_0x58db0b[_0x188739(0xb02)]=_0x4bf13a;}else{if(!_0x5215e4[_0x188739(0x11d2)])return _0x148412['userProfileResource']['get']({'sectionId':_0x5215e4['id']})[_0x188739(0x2945)]['then'](function(_0x1b9e3f){const _0xf26dcd=_0x188739,_0x3993b7=_0x3f65c0()[_0xf26dcd(0x205)](_0x1b9e3f[_0xf26dcd(0x19c7)],function(_0x20bc72){const _0x49c264=_0xf26dcd;return _0x3f65c0()[_0x49c264(0xc84)](_0x58db0b[_0x49c264(0xb02)],{'id':_0x20bc72[_0x49c264(0x18b8)]});});let _0x44062b=null;_0x58db0b[_0xf26dcd(0x1c72)]&&(_0x44062b=_0x3f65c0()[_0xf26dcd(0xc84)](_0x58db0b[_0xf26dcd(0xb02)],{'save_name':_0x58db0b[_0xf26dcd(0x1c72)]['sound']}));if(_0x44062b&&!_0x3f65c0()[_0xf26dcd(0x1360)](_0x3993b7,['id',_0x44062b['id']])){const _0x35d6cc=_0x3f65c0()['find'](_0x58db0b[_0xf26dcd(0xb02)],{'id':_0x44062b['id']});_0x35d6cc['canSelect']=![],_0x3993b7[_0xf26dcd(0x1f47)](_0x35d6cc);}_0x58db0b[_0xf26dcd(0xb02)]=_0x3993b7;});}})['catch'](function(_0x337fa9){const _0x2d7da4=_0x1ba6f5;_0x372722[_0x2d7da4(0x1980)]({'title':_0x337fa9[_0x2d7da4(0x107b)]?'API:'+_0x337fa9['status']+_0x2d7da4(0x1315)+_0x337fa9['statusText']:_0x2d7da4(0x2682),'msg':_0x337fa9[_0x2d7da4(0x524)]?JSON['stringify'](_0x337fa9[_0x2d7da4(0x524)]):_0x337fa9[_0x2d7da4(0xd5f)]()});}),_0xac7fcb[_0x1ba6f5(0x23e0)](_0x1ba6f5(0x174b))?_0x148412[_0x1ba6f5(0x1446)]['get']({'type':'inbound','fields':_0x1ba6f5(0x45e),'sort':_0x1ba6f5(0x19eb),'nolimit':_0x1ba6f5(0x1185)})[_0x1ba6f5(0x2945)][_0x1ba6f5(0x146b)](function(_0x5e8726){const _0x2ae56b=_0x1ba6f5;_0x58db0b[_0x2ae56b(0x1b32)]=_0x5e8726[_0x2ae56b(0x19c7)]||[];})['catch'](function(_0x29b112){const _0x5e0834=_0x1ba6f5;_0x372722['error']({'title':_0x29b112[_0x5e0834(0x107b)]?'API:'+_0x29b112[_0x5e0834(0x107b)]+'\x20-\x20'+_0x29b112[_0x5e0834(0x167f)]:_0x5e0834(0x22d8),'msg':_0x29b112[_0x5e0834(0x524)]?JSON[_0x5e0834(0x10bb)](_0x29b112[_0x5e0834(0x524)]):_0x29b112[_0x5e0834(0xd5f)]()});}):_0x148412[_0x1ba6f5(0x1446)][_0x1ba6f5(0x16b4)]({'type':'inbound','fields':'id,name,type','sort':'name','nolimit':'true'})[_0x1ba6f5(0x2945)][_0x1ba6f5(0x146b)](function(_0x362595){const _0x1cf01b=_0x1ba6f5;_0x58db0b[_0x1cf01b(0x1b32)]=_0x362595[_0x1cf01b(0x19c7)]||[];})[_0x1ba6f5(0x146b)](function(){const _0x5866c6=_0x1ba6f5;return _0x148412[_0x5866c6(0x1366)][_0x5866c6(0x16b4)]({'userProfileId':_0x58db0b[_0x5866c6(0x2321)][_0x5866c6(0x209a)],'sectionId':0x191})[_0x5866c6(0x2945)];})[_0x1ba6f5(0x146b)](function(_0x5efad4){const _0x1d44f6=_0x1ba6f5,_0x399048=_0x5efad4&&_0x5efad4[_0x1d44f6(0x19c7)]?_0x5efad4[_0x1d44f6(0x19c7)][0x0]:null;if(!_0x399048){const _0x29c9e2=[];let _0x216986=null;_0x58db0b[_0x1d44f6(0x1c72)]&&(_0x216986=_0x3f65c0()['find'](_0x58db0b[_0x1d44f6(0x1b32)],{'name':_0x58db0b['queue'][_0x1d44f6(0x1c72)]}));for(let _0x12ee22=0x0;_0x12ee22<_0x58db0b[_0x1d44f6(0x1b32)]['length'];_0x12ee22++){_0x216986&&_0x58db0b[_0x1d44f6(0x1b32)][_0x12ee22]['id']===_0x216986['id']&&(_0x58db0b[_0x1d44f6(0x1b32)][_0x12ee22][_0x1d44f6(0x8ff)]=![],_0x29c9e2['push'](_0x58db0b[_0x1d44f6(0x1b32)][_0x12ee22]));}_0x58db0b[_0x1d44f6(0x1b32)]=_0x29c9e2;}else{if(!_0x399048[_0x1d44f6(0x11d2)])return _0x148412['userProfileResource'][_0x1d44f6(0x16b4)]({'sectionId':_0x399048['id']})['$promise'][_0x1d44f6(0x146b)](function(_0x5681a3){const _0x2c4b8a=_0x1d44f6,_0x47fc60=_0x3f65c0()[_0x2c4b8a(0x205)](_0x5681a3[_0x2c4b8a(0x19c7)],function(_0x27552a){const _0x5dc268=_0x2c4b8a;return _0x3f65c0()[_0x5dc268(0xc84)](_0x58db0b[_0x5dc268(0x1b32)],{'id':_0x27552a[_0x5dc268(0x18b8)]});});let _0x450072=null;_0x58db0b[_0x2c4b8a(0x1c72)]&&(_0x450072=_0x3f65c0()['find'](_0x58db0b[_0x2c4b8a(0x1b32)],{'name':_0x58db0b['queue'][_0x2c4b8a(0x1c72)]}));if(_0x450072&&!_0x3f65c0()[_0x2c4b8a(0x1360)](_0x47fc60,['id',_0x450072['id']])){const _0x502149=_0x3f65c0()[_0x2c4b8a(0xc84)](_0x58db0b['queues'],{'id':_0x450072['id']});_0x502149[_0x2c4b8a(0x8ff)]=![],_0x47fc60['push'](_0x502149);}_0x58db0b['queues']=_0x47fc60;});}})[_0x1ba6f5(0x129e)](function(_0x346adf){const _0x3d7e63=_0x1ba6f5;_0x372722[_0x3d7e63(0x1980)]({'title':_0x346adf[_0x3d7e63(0x107b)]?_0x3d7e63(0x262a)+_0x346adf['status']+_0x3d7e63(0x1315)+_0x346adf[_0x3d7e63(0x167f)]:_0x3d7e63(0x561),'msg':_0x346adf[_0x3d7e63(0x524)]?JSON[_0x3d7e63(0x10bb)](_0x346adf['data']):_0x346adf[_0x3d7e63(0xd5f)]()});});function _0x4177a0(){const _0x2b7bdd=_0x1ba6f5;_0x58db0b['errors']=[];const _0x2f31bb=[];_0x58db0b[_0x2b7bdd(0x1c72)]['type']&&_0x58db0b[_0x2b7bdd(0x1c72)][_0x2b7bdd(0x1142)]['toLowerCase']()===_0x2b7bdd(0xc9c)&&_0x58db0b[_0x2b7bdd(0x1c72)][_0x2b7bdd(0x8f2)]===_0x2b7bdd(0x118b)&&(_0x58db0b[_0x2b7bdd(0x1c72)][_0x2b7bdd(0x1d55)]=_0xbddb98[_0x2b7bdd(0x1274)]?(_0x58db0b[_0x2b7bdd(0x1c72)][_0x2b7bdd(0x1e12)]||'')+'${EXTEN:'+_0xbddb98['cutdigits']+'}':(_0x58db0b[_0x2b7bdd(0x1c72)][_0x2b7bdd(0x1e12)]||'')+_0x2b7bdd(0x20df),_0xbddb98[_0x2b7bdd(0x1425)]!=='none'?_0x58db0b[_0x2b7bdd(0x1c72)]['options']['indexOf'](_0x2b7bdd(0x1ea4))<0x0&&(_0x58db0b[_0x2b7bdd(0x1c72)][_0x2b7bdd(0xa08)]+=_0x2b7bdd(0x1ea4)):_0x58db0b[_0x2b7bdd(0x1c72)][_0x2b7bdd(0xa08)]=_0x58db0b['queue'][_0x2b7bdd(0xa08)][_0x2b7bdd(0x5f4)](_0x2b7bdd(0x1ea4),''));if(_0x58db0b[_0x2b7bdd(0x1c72)][_0x2b7bdd(0x8f2)]&&_0x58db0b['queue'][_0x2b7bdd(0x8f2)]==='custom'){}else switch((_0x58db0b[_0x2b7bdd(0x1c72)][_0x2b7bdd(0x1873)]||_0x58db0b[_0x2b7bdd(0x1c72)][_0x2b7bdd(0x8f2)])['toLowerCase']()){case _0x2b7bdd(0x26ba):_0x58db0b[_0x2b7bdd(0x1c72)][_0x2b7bdd(0x168a)]=_0x58db0b[_0x2b7bdd(0x1c72)][_0x2b7bdd(0x19eb)]+'='+_0x58db0b[_0x2b7bdd(0x1c72)]['value'];break;case _0x2b7bdd(0x1802):break;default:_0x2f31bb[0x0]=_0x58db0b[_0x2b7bdd(0x1c72)][_0x2b7bdd(0x1c72)],_0x2f31bb[0x1]=_0x58db0b['queue'][_0x2b7bdd(0xa08)],_0x2f31bb[0x2]=_0x58db0b[_0x2b7bdd(0x1c72)]['URL'],_0x2f31bb[0x3]=_0x58db0b['queue'][_0x2b7bdd(0x126d)],_0x2f31bb[0x4]=_0x58db0b[_0x2b7bdd(0x1c72)]['timeout'],_0x2f31bb[0x5]=_0x58db0b['queue']['agi'],_0x2f31bb[0x6]=_0x58db0b[_0x2b7bdd(0x1c72)][_0x2b7bdd(0x9d2)],_0x2f31bb[0x7]=_0x58db0b[_0x2b7bdd(0x1c72)][_0x2b7bdd(0x1779)],_0x2f31bb[0x8]=_0x58db0b['queue'][_0x2b7bdd(0x95e)],_0x2f31bb[0x9]=_0x58db0b[_0x2b7bdd(0x1c72)][_0x2b7bdd(0x21ca)],_0x58db0b['queue'][_0x2b7bdd(0x168a)]=_0x2f31bb['join'](',');}_0x20ed91(_0x58db0b[_0x2b7bdd(0x1c72)]);}function _0x20ed91(_0x37742f){const _0x2c6235=_0x1ba6f5;_0x219e8a[_0x2c6235(0x2458)](_0x37742f);}}const _0x47eb02=_0x3acdaa;;_0x274fa6[_0x313a4d(0x11c2)]=['$mdDialog','$q',_0x313a4d(0x1fe4),_0x313a4d(0x1492),'internalroute',_0x313a4d(0x247f),_0x313a4d(0xa87),_0x313a4d(0x2514)];function _0x274fa6(_0x3a2177,_0x5b7a87,_0x35b406,_0x1d0d8f,_0x4c9b28,_0x598c0,_0x384515,_0x255ca4){const _0x2260f1=_0x313a4d,_0x56225f=this;_0x56225f[_0x2260f1(0x2321)]=_0x384515[_0x2260f1(0xb12)](),_0x56225f[_0x2260f1(0xcef)]=[],_0x56225f['title']=_0x2260f1(0x1950)+(_0x1d0d8f[_0x2260f1(0x8f2)]||_0x1d0d8f['app'])['toUpperCase'](),_0x56225f[_0x2260f1(0x248d)]=angular[_0x2260f1(0x235a)](_0x1d0d8f),_0x56225f[_0x2260f1(0x2514)]=_0x255ca4,_0x56225f[_0x2260f1(0x855)]={};if(_0x56225f[_0x2260f1(0x248d)]['appdata'])switch(_0x56225f[_0x2260f1(0x248d)]['appType']?_0x56225f[_0x2260f1(0x248d)]['appType'][_0x2260f1(0x256e)]():_0x56225f['ringgroup']['app']['toLowerCase']()){case _0x2260f1(0x1802):break;case _0x2260f1(0xeaa):{const _0x1f8b9d=_0x56225f[_0x2260f1(0x248d)][_0x2260f1(0x168a)][_0x2260f1(0x10c8)](',');_0x56225f[_0x2260f1(0x248d)][_0x2260f1(0x2293)]=_0x1f8b9d[0x0],_0x56225f[_0x2260f1(0x248d)][_0x2260f1(0x90b)]=_0x1f8b9d[0x1],_0x56225f[_0x2260f1(0x248d)]['welcomemessage']=_0x1f8b9d[_0x2260f1(0x1298)](0x2,_0x1f8b9d['length'])['join'](',');}break;case _0x2260f1(0xa46):{const _0xdf8428=_0x56225f[_0x2260f1(0x248d)][_0x2260f1(0x168a)][_0x2260f1(0x10c8)](',');_0x56225f[_0x2260f1(0x248d)][_0x2260f1(0x153a)]=_0xdf8428[0x0],_0x56225f[_0x2260f1(0x248d)][_0x2260f1(0x1392)]=_0xdf8428[0x1],_0x56225f[_0x2260f1(0x248d)][_0x2260f1(0x2217)]=_0xdf8428[0x2],_0x56225f[_0x2260f1(0x248d)]['language']=_0xdf8428[0x3],_0x56225f['ringgroup'][_0x2260f1(0xaf3)]=_0xdf8428[_0x2260f1(0x1298)](0x4,_0xdf8428[_0x2260f1(0x402)])[_0x2260f1(0xb47)](',');}break;case'amazonlex':{const _0x1f9a60=_0x56225f['ringgroup'][_0x2260f1(0x168a)][_0x2260f1(0x10c8)](',');_0x56225f['ringgroup'][_0x2260f1(0x1651)]=_0x1f9a60[0x0],_0x56225f[_0x2260f1(0x248d)][_0x2260f1(0x252)]=_0x1f9a60[0x1],_0x56225f[_0x2260f1(0x248d)]['lexregion']=_0x1f9a60[0x2],_0x56225f[_0x2260f1(0x248d)][_0x2260f1(0x8dd)]=_0x1f9a60[0x3],_0x56225f[_0x2260f1(0x248d)][_0x2260f1(0xaf3)]=_0x1f9a60[_0x2260f1(0x1298)](0x4,_0x1f9a60[_0x2260f1(0x402)])['join'](',');}break;case _0x2260f1(0x1713):{const _0xa6bc40=_0x56225f[_0x2260f1(0x248d)][_0x2260f1(0x168a)][_0x2260f1(0x10c8)](',');_0x56225f[_0x2260f1(0x248d)]['times']=isNaN(_0xa6bc40[0x0])?_0xa6bc40[0x0]:parseInt(_0xa6bc40[0x0],0xa),_0x56225f[_0x2260f1(0x248d)][_0x2260f1(0xa8d)]=_0xa6bc40[_0x2260f1(0x1298)](0x1,_0xa6bc40['length'])[_0x2260f1(0xb47)](',');}break;case _0x2260f1(0x7fd):_0x56225f['ringgroup'][_0x2260f1(0xa8d)]=_0x56225f[_0x2260f1(0x248d)][_0x2260f1(0x168a)];break;case'set':_0x56225f[_0x2260f1(0x248d)][_0x2260f1(0x19eb)]=_0x56225f[_0x2260f1(0x248d)][_0x2260f1(0x168a)][_0x2260f1(0x10c8)]('=')[0x0],_0x56225f[_0x2260f1(0x248d)][_0x2260f1(0x175d)]=_0x56225f[_0x2260f1(0x248d)][_0x2260f1(0x168a)][_0x2260f1(0x10c8)]('=')[0x1];break;case'agi':_0x56225f[_0x2260f1(0x248d)][_0x2260f1(0x9e0)]=_0x56225f[_0x2260f1(0x248d)]['appdata'];break;default:{const _0x369ae8=_0x56225f[_0x2260f1(0x248d)]['appdata'][_0x2260f1(0x10c8)](',');_0x56225f['ringgroup'][_0x2260f1(0x96a)]=_0x369ae8[0x0][_0x2260f1(0x10c8)]('&'),_0x56225f[_0x2260f1(0x248d)][_0x2260f1(0xa9c)]=_0x3f65c0()['isEmpty'](_0x369ae8[0x1])?_0x369ae8[0x1]:isNaN(_0x369ae8[0x1])?_0x369ae8[0x1]:parseInt(_0x369ae8[0x1],0xa),_0x56225f[_0x2260f1(0x248d)][_0x2260f1(0xa08)]=_0x3f65c0()[_0x2260f1(0x2635)](_0x369ae8[0x2])?_0x369ae8[0x2]:isNaN(_0x369ae8[0x2])?_0x369ae8[0x2]:parseInt(_0x369ae8[0x2],0xa),_0x56225f['ringgroup'][_0x2260f1(0x20cc)]=_0x3f65c0()[_0x2260f1(0x2635)](_0x369ae8[0x3])?_0x369ae8[0x3]:isNaN(_0x369ae8[0x3])?_0x369ae8[0x3]:parseInt(_0x369ae8[0x3],0xa);}break;}else{}_0x56225f[_0x2260f1(0x248d)][_0x2260f1(0x1142)]&&_0x56225f[_0x2260f1(0x248d)]['type'][_0x2260f1(0x256e)]()===_0x2260f1(0xc9c)&&_0x56225f[_0x2260f1(0x248d)][_0x2260f1(0x8f2)][_0x2260f1(0x256e)]()===_0x2260f1(0x3bb)&&(_0x56225f[_0x2260f1(0x248d)][_0x2260f1(0x1e12)]=_0x56225f[_0x2260f1(0x248d)]['phone']?_0x56225f[_0x2260f1(0x248d)][_0x2260f1(0x1d55)][_0x2260f1(0x10c8)]('$')[0x0]:undefined,_0x56225f['ringgroup'][_0x2260f1(0x1d43)]=_0x56225f[_0x2260f1(0x248d)][_0x2260f1(0x11be)]?'CALLERID(all)='+_0x56225f['ringgroup']['callerID']:undefined);_0x56225f[_0x2260f1(0x1f34)]=_0x1e13d8,_0x56225f[_0x2260f1(0x13f3)]=_0x50c7b4;const _0x5e69bc=[{'id':0xca,'role':_0x2260f1(0x1755)},{'id':0xcb,'role':'telephone'}];let _0x205d6c=null;_0x384515[_0x2260f1(0x23e0)](_0x2260f1(0x174b))?_0x598c0[_0x2260f1(0xe7b)][_0x2260f1(0x16b4)]({'fields':_0x2260f1(0x245b),'sort':_0x2260f1(0x19eb),'nolimit':_0x2260f1(0x1185)})[_0x2260f1(0x2945)][_0x2260f1(0x146b)](function(_0xcc8481){const _0x33f7b8=_0x2260f1;_0x56225f[_0x33f7b8(0x1995)]=_0xcc8481['rows']||[];})[_0x2260f1(0x129e)](function(_0x2f886f){const _0x3b52a7=_0x2260f1;_0x35b406[_0x3b52a7(0x1980)]({'title':_0x2f886f['status']?_0x3b52a7(0x262a)+_0x2f886f[_0x3b52a7(0x107b)]+'\x20-\x20'+_0x2f886f[_0x3b52a7(0x167f)]:'SYSTEM:GET_USERS','msg':_0x2f886f[_0x3b52a7(0x524)]?JSON[_0x3b52a7(0x10bb)](_0x2f886f[_0x3b52a7(0x524)]):_0x2f886f[_0x3b52a7(0xd5f)]()});}):_0x598c0['user'][_0x2260f1(0x16b4)]({'fields':_0x2260f1(0x245b),'sort':_0x2260f1(0x19eb),'nolimit':'true'})[_0x2260f1(0x2945)][_0x2260f1(0x146b)](function(_0x419a61){_0x205d6c=_0x419a61['rows']||[];})['then'](function(){const _0x181155=_0x2260f1,_0x34a3cf=[];for(let _0x111a1d=0x0;_0x111a1d<_0x5e69bc[_0x181155(0x402)];_0x111a1d++){_0x34a3cf[_0x181155(0x1f47)](_0x598c0[_0x181155(0x1366)][_0x181155(0x16b4)]({'userProfileId':_0x56225f['currentUser'][_0x181155(0x209a)],'sectionId':_0x5e69bc[_0x111a1d]['id']})[_0x181155(0x2945)]);}return _0x5b7a87['all'](_0x34a3cf);})[_0x2260f1(0x146b)](function(_0x53734e){const _0x13a85d=_0x2260f1,_0x34fb56=_0x3f65c0()[_0x13a85d(0x205)](_0x53734e,function(_0x468b21){const _0x155f58=_0x13a85d;return _0x468b21&&_0x468b21[_0x155f58(0x19c7)]?_0x468b21[_0x155f58(0x19c7)][0x0]:null;}),_0x19127c=[];for(let _0x1bebff=0x0;_0x1bebff<_0x5e69bc[_0x13a85d(0x402)];_0x1bebff++){const _0x28b68d=_0x3f65c0()[_0x13a85d(0xc84)](_0x34fb56,[_0x13a85d(0x631),_0x5e69bc[_0x1bebff]['id']]);if(_0x28b68d){if(!_0x28b68d[_0x13a85d(0x11d2)])_0x19127c[_0x13a85d(0x1f47)](_0x598c0['userProfileResource'][_0x13a85d(0x16b4)]({'sectionId':_0x28b68d['id']})['$promise']);else{const _0x28b094=[];_0x205d6c[_0x13a85d(0x1df5)](function(_0x12a4fe){const _0x21bb95=_0x13a85d;_0x12a4fe['role']===_0x5e69bc[_0x1bebff][_0x21bb95(0xfb0)]&&_0x28b094[_0x21bb95(0x1f47)](_0x12a4fe);}),_0x19127c[_0x13a85d(0x1f47)]({'rows':_0x28b094,'count':_0x28b094[_0x13a85d(0x402)]});}}}return _0x5b7a87[_0x13a85d(0x1be2)](_0x19127c);})[_0x2260f1(0x146b)](function(_0x5aa835){const _0x416527=_0x2260f1,_0x5575f2=[];let _0x874a4c=null;_0x56225f[_0x416527(0x248d)]&&(_0x874a4c=_0x3f65c0()[_0x416527(0xc84)](_0x205d6c,{'name':_0x56225f[_0x416527(0x248d)][_0x416527(0x96a)]}));for(let _0x20a1c6=0x0;_0x20a1c6<_0x5aa835[_0x416527(0x402)];_0x20a1c6++){const _0xa071d0=_0x5aa835[_0x20a1c6][_0x416527(0x19c7)]||[];_0xa071d0[_0x416527(0x1df5)](function(_0x1c9e6c){const _0x5d715c=_0x416527;_0x5575f2[_0x5d715c(0x1f47)](_0x1c9e6c);});}_0x874a4c&&!_0x3f65c0()[_0x416527(0x1360)](_0x5575f2,['resourceId',_0x874a4c['id']])&&_0x205d6c[_0x416527(0x1df5)](function(_0xd0f6b1){const _0x5b00f4=_0x416527;_0xd0f6b1['id']===_0x874a4c['id']&&(_0xd0f6b1[_0x5b00f4(0x8ff)]=![],_0x5575f2[_0x5b00f4(0x1f47)](_0xd0f6b1));}),_0x56225f[_0x416527(0x1995)]=_0x5575f2;})[_0x2260f1(0x129e)](function(_0x5de742){const _0x1c6161=_0x2260f1;_0x35b406[_0x1c6161(0x1980)]({'title':_0x5de742[_0x1c6161(0x107b)]?_0x1c6161(0x262a)+_0x5de742[_0x1c6161(0x107b)]+_0x1c6161(0x1315)+_0x5de742[_0x1c6161(0x167f)]:_0x1c6161(0x8d5),'msg':_0x5de742[_0x1c6161(0x524)]?JSON[_0x1c6161(0x10bb)](_0x5de742['data']):_0x5de742['toString']()});});function _0x1e13d8(){const _0x20582b=_0x2260f1;_0x56225f['errors']=[];const _0x7a4504=[];_0x56225f[_0x20582b(0x248d)][_0x20582b(0x1142)]&&_0x56225f[_0x20582b(0x248d)]['type'][_0x20582b(0x256e)]()===_0x20582b(0xc9c)&&_0x56225f[_0x20582b(0x248d)][_0x20582b(0x8f2)]===_0x20582b(0x118b)&&(_0x56225f['ringgroup'][_0x20582b(0x1d55)]=_0x4c9b28[_0x20582b(0x1274)]?(_0x56225f[_0x20582b(0x248d)][_0x20582b(0x1e12)]||'')+'${EXTEN:'+_0x4c9b28['cutdigits']+'}':(_0x56225f[_0x20582b(0x248d)][_0x20582b(0x1e12)]||'')+_0x20582b(0x20df),_0x4c9b28[_0x20582b(0x1425)]!==_0x20582b(0x1642)?_0x56225f[_0x20582b(0x248d)][_0x20582b(0xa08)][_0x20582b(0x172b)](_0x20582b(0x1ea4))<0x0&&(_0x56225f[_0x20582b(0x248d)][_0x20582b(0xa08)]+=_0x20582b(0x1ea4)):_0x56225f['ringgroup']['options']=_0x56225f[_0x20582b(0x248d)][_0x20582b(0xa08)][_0x20582b(0x5f4)]('U(xcally-mixmonitor-context)',''));if(_0x56225f[_0x20582b(0x248d)][_0x20582b(0x8f2)]&&_0x56225f[_0x20582b(0x248d)][_0x20582b(0x8f2)]===_0x20582b(0x1802)){}else switch((_0x56225f[_0x20582b(0x248d)][_0x20582b(0x1873)]||_0x56225f[_0x20582b(0x248d)]['appType'])[_0x20582b(0x256e)]()){case _0x20582b(0x26ba):_0x56225f[_0x20582b(0x248d)]['appdata']=_0x56225f[_0x20582b(0x248d)]['name']+'='+_0x56225f[_0x20582b(0x248d)]['value'];break;case'custom':break;default:_0x7a4504[0x0]=_0x56225f[_0x20582b(0x248d)]['multipleUsers'][_0x20582b(0xb47)]('&'),_0x7a4504[0x1]=_0x56225f[_0x20582b(0x248d)][_0x20582b(0xa9c)],_0x7a4504[0x2]=_0x56225f[_0x20582b(0x248d)][_0x20582b(0xa08)],_0x7a4504[0x3]=_0x56225f['ringgroup'][_0x20582b(0x20cc)],_0x56225f[_0x20582b(0x248d)][_0x20582b(0x168a)]=_0x7a4504[_0x20582b(0xb47)](',');}_0x50c7b4(_0x56225f[_0x20582b(0x248d)]);}function _0x50c7b4(_0x1aa584){const _0x47acc4=_0x2260f1;_0x3a2177[_0x47acc4(0x2458)](_0x1aa584);}}const _0x58020f=_0x274fa6;;_0x58f395['$inject']=[_0x313a4d(0x10e8),'$q',_0x313a4d(0x1fe4),_0x313a4d(0x1492),'internalroute',_0x313a4d(0x247f),_0x313a4d(0xa87),'crudPermissions'];function _0x58f395(_0x392757,_0x12e376,_0x3130bf,_0x44b434,_0x3734d1,_0xf25ed7,_0xbb6b6a,_0x1db90a){const _0x4bdb6b=_0x313a4d,_0x4974af=this;_0x4974af['currentUser']=_0xbb6b6a[_0x4bdb6b(0xb12)](),_0x4974af[_0x4bdb6b(0xcef)]=[],_0x4974af['title']=_0x4bdb6b(0x1950)+(_0x44b434['appType']||_0x44b434[_0x4bdb6b(0x1873)])[_0x4bdb6b(0x1c37)](),_0x4974af[_0x4bdb6b(0x26ba)]=angular['copy'](_0x44b434),_0x4974af[_0x4bdb6b(0x2514)]=_0x1db90a,_0x4974af[_0x4bdb6b(0x855)]={};if(_0x4974af[_0x4bdb6b(0x26ba)][_0x4bdb6b(0x168a)])switch(_0x4974af[_0x4bdb6b(0x26ba)][_0x4bdb6b(0x8f2)]?_0x4974af[_0x4bdb6b(0x26ba)][_0x4bdb6b(0x8f2)][_0x4bdb6b(0x256e)]():_0x4974af[_0x4bdb6b(0x26ba)][_0x4bdb6b(0x1873)][_0x4bdb6b(0x256e)]()){case _0x4bdb6b(0x1802):break;case _0x4bdb6b(0xeaa):{const _0x2f7dd6=_0x4974af[_0x4bdb6b(0x26ba)]['appdata'][_0x4bdb6b(0x10c8)](',');_0x4974af[_0x4bdb6b(0x26ba)][_0x4bdb6b(0x2293)]=_0x2f7dd6[0x0],_0x4974af[_0x4bdb6b(0x26ba)]['language']=_0x2f7dd6[0x1],_0x4974af[_0x4bdb6b(0x26ba)]['welcomemessage']=_0x2f7dd6[_0x4bdb6b(0x1298)](0x2,_0x2f7dd6[_0x4bdb6b(0x402)])[_0x4bdb6b(0xb47)](',');}break;case'dialogflowv2':{const _0x22b51d=_0x4974af[_0x4bdb6b(0x26ba)][_0x4bdb6b(0x168a)]['split'](',');_0x4974af['set'][_0x4bdb6b(0x153a)]=_0x22b51d[0x0],_0x4974af[_0x4bdb6b(0x26ba)][_0x4bdb6b(0x1392)]=_0x22b51d[0x1],_0x4974af[_0x4bdb6b(0x26ba)][_0x4bdb6b(0x2217)]=_0x22b51d[0x2],_0x4974af[_0x4bdb6b(0x26ba)][_0x4bdb6b(0x90b)]=_0x22b51d[0x3],_0x4974af['set'][_0x4bdb6b(0xaf3)]=_0x22b51d[_0x4bdb6b(0x1298)](0x4,_0x22b51d[_0x4bdb6b(0x402)])[_0x4bdb6b(0xb47)](',');}break;case _0x4bdb6b(0x17d6):{const _0x42a18b=_0x4974af[_0x4bdb6b(0x26ba)][_0x4bdb6b(0x168a)][_0x4bdb6b(0x10c8)](',');_0x4974af[_0x4bdb6b(0x26ba)][_0x4bdb6b(0x1651)]=_0x42a18b[0x0],_0x4974af['set'][_0x4bdb6b(0x252)]=_0x42a18b[0x1],_0x4974af[_0x4bdb6b(0x26ba)][_0x4bdb6b(0x1039)]=_0x42a18b[0x2],_0x4974af[_0x4bdb6b(0x26ba)]['botname']=_0x42a18b[0x3],_0x4974af[_0x4bdb6b(0x26ba)][_0x4bdb6b(0xaf3)]=_0x42a18b[_0x4bdb6b(0x1298)](0x4,_0x42a18b[_0x4bdb6b(0x402)])['join'](',');}break;case _0x4bdb6b(0x1713):{const _0x3b2aa2=_0x4974af[_0x4bdb6b(0x26ba)][_0x4bdb6b(0x168a)][_0x4bdb6b(0x10c8)](',');_0x4974af[_0x4bdb6b(0x26ba)][_0x4bdb6b(0x583)]=isNaN(_0x3b2aa2[0x0])?_0x3b2aa2[0x0]:parseInt(_0x3b2aa2[0x0],0xa),_0x4974af[_0x4bdb6b(0x26ba)][_0x4bdb6b(0xa8d)]=_0x3b2aa2[_0x4bdb6b(0x1298)](0x1,_0x3b2aa2['length'])[_0x4bdb6b(0xb47)](',');}break;case _0x4bdb6b(0x7fd):_0x4974af['set']['text']=_0x4974af[_0x4bdb6b(0x26ba)]['appdata'];break;case'set':_0x4974af[_0x4bdb6b(0x26ba)][_0x4bdb6b(0x19eb)]=_0x4974af[_0x4bdb6b(0x26ba)][_0x4bdb6b(0x168a)][_0x4bdb6b(0x10c8)]('=')[0x0],_0x4974af['set']['value']=_0x4974af['set'][_0x4bdb6b(0x168a)][_0x4bdb6b(0x10c8)]('=')[0x1];break;case'agi':_0x4974af[_0x4bdb6b(0x26ba)]['project']=_0x4974af['set']['appdata'];break;default:{const _0x4d8837=_0x4974af['set']['appdata'][_0x4bdb6b(0x10c8)]('=');_0x4974af['set'][_0x4bdb6b(0x19eb)]=_0x3f65c0()[_0x4bdb6b(0x2635)](_0x4d8837[0x0])?_0x4d8837[0x0]:isNaN(_0x4d8837[0x0])?_0x4d8837[0x0]:parseInt(_0x4d8837[0x0],0xa),_0x4974af[_0x4bdb6b(0x26ba)][_0x4bdb6b(0x175d)]=_0x3f65c0()[_0x4bdb6b(0x2635)](_0x4d8837[0x1])?_0x4d8837[0x1]:isNaN(_0x4d8837[0x1])?_0x4d8837[0x1]:parseInt(_0x4d8837[0x1],0xa);}break;}else{}_0x4974af[_0x4bdb6b(0x26ba)][_0x4bdb6b(0x1142)]&&_0x4974af[_0x4bdb6b(0x26ba)][_0x4bdb6b(0x1142)][_0x4bdb6b(0x256e)]()===_0x4bdb6b(0xc9c)&&_0x4974af[_0x4bdb6b(0x26ba)][_0x4bdb6b(0x8f2)]['toLowerCase']()===_0x4bdb6b(0x3bb)&&(_0x4974af[_0x4bdb6b(0x26ba)]['prefix']=_0x4974af[_0x4bdb6b(0x26ba)]['phone']?_0x4974af[_0x4bdb6b(0x26ba)][_0x4bdb6b(0x1d55)][_0x4bdb6b(0x10c8)]('$')[0x0]:undefined,_0x4974af[_0x4bdb6b(0x26ba)]['callerId']=_0x4974af[_0x4bdb6b(0x26ba)]['callerID']?_0x4bdb6b(0x1b60)+_0x4974af[_0x4bdb6b(0x26ba)][_0x4bdb6b(0x11be)]:undefined);_0x4974af[_0x4bdb6b(0x1f34)]=_0x3b2e29,_0x4974af[_0x4bdb6b(0x13f3)]=_0x42fbf6,_0xbb6b6a[_0x4bdb6b(0x23e0)]('admin')?_0xf25ed7[_0x4bdb6b(0x212)][_0x4bdb6b(0x16b4)]({'fields':_0x4bdb6b(0x7a7),'sort':_0x4bdb6b(0x19eb),'nolimit':_0x4bdb6b(0x1185)})[_0x4bdb6b(0x2945)][_0x4bdb6b(0x146b)](function(_0x27dfa8){const _0x979f49=_0x4bdb6b;_0x4974af[_0x979f49(0x85b)]=_0x27dfa8['rows']||[];})['catch'](function(_0x4b0d97){const _0x1c9995=_0x4bdb6b;_0x3130bf['error']({'title':_0x4b0d97['status']?_0x1c9995(0x262a)+_0x4b0d97['status']+_0x1c9995(0x1315)+_0x4b0d97[_0x1c9995(0x167f)]:_0x1c9995(0x84b),'msg':_0x4b0d97[_0x1c9995(0x524)]?JSON[_0x1c9995(0x10bb)](_0x4b0d97[_0x1c9995(0x524)]):_0x4b0d97[_0x1c9995(0xd5f)]()});}):_0xf25ed7[_0x4bdb6b(0x212)][_0x4bdb6b(0x16b4)]({'fields':_0x4bdb6b(0x7a7),'sort':_0x4bdb6b(0x19eb),'nolimit':_0x4bdb6b(0x1185)})[_0x4bdb6b(0x2945)][_0x4bdb6b(0x146b)](function(_0x3cd861){const _0x45a496=_0x4bdb6b;_0x4974af[_0x45a496(0x85b)]=_0x3cd861[_0x45a496(0x19c7)]||[];})[_0x4bdb6b(0x146b)](function(){const _0x16d2e1=_0x4bdb6b;return _0xf25ed7[_0x16d2e1(0x1366)][_0x16d2e1(0x16b4)]({'userProfileId':_0x4974af[_0x16d2e1(0x2321)][_0x16d2e1(0x209a)],'sectionId':0x3f4})[_0x16d2e1(0x2945)];})[_0x4bdb6b(0x146b)](function(_0x949162){const _0x182341=_0x4bdb6b,_0x495d3a=_0x949162&&_0x949162[_0x182341(0x19c7)]?_0x949162[_0x182341(0x19c7)][0x0]:null;if(!_0x495d3a){const _0x5ddb9b=[];let _0x5cae57=null;_0x4974af['set']&&(_0x5cae57=_0x3f65c0()[_0x182341(0xc84)](_0x4974af[_0x182341(0x85b)],{'name':_0x4974af[_0x182341(0x26ba)][_0x182341(0x19eb)]}));for(let _0x194930=0x0;_0x194930<_0x4974af[_0x182341(0x85b)][_0x182341(0x402)];_0x194930++){_0x5cae57&&_0x4974af['variables'][_0x194930]['id']===_0x5cae57['id']&&(_0x4974af[_0x182341(0x85b)][_0x194930][_0x182341(0x8ff)]=![],_0x5ddb9b[_0x182341(0x1f47)](_0x4974af[_0x182341(0x85b)][_0x194930]));}_0x4974af[_0x182341(0x85b)]=_0x5ddb9b;}else{if(!_0x495d3a[_0x182341(0x11d2)])return _0xf25ed7[_0x182341(0xdcc)]['get']({'sectionId':_0x495d3a['id']})[_0x182341(0x2945)][_0x182341(0x146b)](function(_0x3816e2){const _0x13580d=_0x182341,_0x33bde5=_0x3f65c0()[_0x13580d(0x205)](_0x3816e2[_0x13580d(0x19c7)],function(_0x49576f){const _0x4c6859=_0x13580d;return _0x3f65c0()[_0x4c6859(0xc84)](_0x4974af[_0x4c6859(0x85b)],{'id':_0x49576f[_0x4c6859(0x18b8)]});});let _0x2e556a=null;_0x4974af[_0x13580d(0x26ba)]&&(_0x2e556a=_0x3f65c0()[_0x13580d(0xc84)](_0x4974af[_0x13580d(0x85b)],{'name':_0x4974af[_0x13580d(0x26ba)][_0x13580d(0x19eb)]}));if(_0x2e556a&&!_0x3f65c0()[_0x13580d(0x1360)](_0x33bde5,['id',_0x2e556a['id']])){const _0x293ab7=_0x3f65c0()[_0x13580d(0xc84)](_0x4974af[_0x13580d(0x85b)],{'id':_0x2e556a['id']});_0x293ab7['canSelect']=![],_0x33bde5[_0x13580d(0x1f47)](_0x293ab7);}_0x4974af['variables']=_0x33bde5;});}})[_0x4bdb6b(0x129e)](function(_0x4ef98a){const _0x527cc0=_0x4bdb6b;_0x3130bf['error']({'title':_0x4ef98a[_0x527cc0(0x107b)]?_0x527cc0(0x262a)+_0x4ef98a[_0x527cc0(0x107b)]+_0x527cc0(0x1315)+_0x4ef98a[_0x527cc0(0x167f)]:_0x527cc0(0x493),'msg':_0x4ef98a['data']?JSON['stringify'](_0x4ef98a['data']):_0x4ef98a[_0x527cc0(0xd5f)]()});});function _0x3b2e29(){const _0x1b91aa=_0x4bdb6b;_0x4974af[_0x1b91aa(0xcef)]=[];const _0x5dd59c=[];_0x4974af['set']['type']&&_0x4974af['set'][_0x1b91aa(0x1142)]['toLowerCase']()===_0x1b91aa(0xc9c)&&_0x4974af[_0x1b91aa(0x26ba)][_0x1b91aa(0x8f2)]===_0x1b91aa(0x118b)&&(_0x4974af[_0x1b91aa(0x26ba)][_0x1b91aa(0x1d55)]=_0x3734d1[_0x1b91aa(0x1274)]?(_0x4974af['set']['prefix']||'')+_0x1b91aa(0x2147)+_0x3734d1[_0x1b91aa(0x1274)]+'}':(_0x4974af['set'][_0x1b91aa(0x1e12)]||'')+_0x1b91aa(0x20df),_0x3734d1['recordingFormat']!==_0x1b91aa(0x1642)?_0x4974af[_0x1b91aa(0x26ba)]['options'][_0x1b91aa(0x172b)](_0x1b91aa(0x1ea4))<0x0&&(_0x4974af[_0x1b91aa(0x26ba)]['options']+=_0x1b91aa(0x1ea4)):_0x4974af['set']['options']=_0x4974af[_0x1b91aa(0x26ba)]['options'][_0x1b91aa(0x5f4)](_0x1b91aa(0x1ea4),''));if(_0x4974af[_0x1b91aa(0x26ba)]['appType']&&_0x4974af[_0x1b91aa(0x26ba)][_0x1b91aa(0x8f2)]===_0x1b91aa(0x1802)){}else switch((_0x4974af[_0x1b91aa(0x26ba)][_0x1b91aa(0x1873)]||_0x4974af['set'][_0x1b91aa(0x8f2)])['toLowerCase']()){case _0x1b91aa(0x26ba):_0x4974af[_0x1b91aa(0x26ba)][_0x1b91aa(0x168a)]=_0x4974af['set'][_0x1b91aa(0x19eb)]+'='+_0x4974af[_0x1b91aa(0x26ba)]['value'];break;case'custom':break;default:_0x5dd59c[0x0]=_0x4974af[_0x1b91aa(0x26ba)][_0x1b91aa(0x19eb)],_0x5dd59c[0x1]=_0x4974af[_0x1b91aa(0x26ba)][_0x1b91aa(0x175d)],_0x4974af[_0x1b91aa(0x26ba)][_0x1b91aa(0x168a)]=_0x5dd59c['join']('=');}_0x42fbf6(_0x4974af[_0x1b91aa(0x26ba)]);}function _0x42fbf6(_0x43600b){const _0x1ff85c=_0x4bdb6b;_0x392757[_0x1ff85c(0x2458)](_0x43600b);}}const _0x3180f7=_0x58f395;;_0x4fa1f0['$inject']=[_0x313a4d(0x10e8),'$q',_0x313a4d(0x1fe4),_0x313a4d(0x1492),'internalroute',_0x313a4d(0x247f),'Auth','crudPermissions'];function _0x4fa1f0(_0x351b0e,_0x46ef93,_0x3d01d2,_0x2f05b1,_0x3df6b0,_0x214fc3,_0x126872,_0x1dd253){const _0x396585=_0x313a4d,_0x5c24a8=this;_0x5c24a8[_0x396585(0x2321)]=_0x126872[_0x396585(0xb12)](),_0x5c24a8[_0x396585(0xcef)]=[],_0x5c24a8[_0x396585(0x1189)]=_0x396585(0x1950)+(_0x2f05b1[_0x396585(0x8f2)]||_0x2f05b1[_0x396585(0x1873)])[_0x396585(0x1c37)](),_0x5c24a8[_0x396585(0x356)]=angular['copy'](_0x2f05b1),_0x5c24a8['crudPermissions']=_0x1dd253,_0x5c24a8['hasModulePermissions']={};if(_0x5c24a8[_0x396585(0x356)]['appdata'])switch(_0x5c24a8[_0x396585(0x356)]['appType']?_0x5c24a8[_0x396585(0x356)][_0x396585(0x8f2)][_0x396585(0x256e)]():_0x5c24a8[_0x396585(0x356)][_0x396585(0x1873)][_0x396585(0x256e)]()){case _0x396585(0x1802):break;case'dialogflow':{const _0x1696e6=_0x5c24a8[_0x396585(0x356)]['appdata'][_0x396585(0x10c8)](',');_0x5c24a8[_0x396585(0x356)][_0x396585(0x2293)]=_0x1696e6[0x0],_0x5c24a8['voicemail']['language']=_0x1696e6[0x1],_0x5c24a8[_0x396585(0x356)][_0x396585(0xaf3)]=_0x1696e6['slice'](0x2,_0x1696e6['length'])['join'](',');}break;case _0x396585(0xa46):{const _0x48b422=_0x5c24a8['voicemail'][_0x396585(0x168a)][_0x396585(0x10c8)](',');_0x5c24a8[_0x396585(0x356)]['projectId']=_0x48b422[0x0],_0x5c24a8[_0x396585(0x356)][_0x396585(0x1392)]=_0x48b422[0x1],_0x5c24a8['voicemail']['privateKey']=_0x48b422[0x2],_0x5c24a8[_0x396585(0x356)][_0x396585(0x90b)]=_0x48b422[0x3],_0x5c24a8[_0x396585(0x356)][_0x396585(0xaf3)]=_0x48b422[_0x396585(0x1298)](0x4,_0x48b422[_0x396585(0x402)])['join'](',');}break;case _0x396585(0x17d6):{const _0xc6f095=_0x5c24a8[_0x396585(0x356)][_0x396585(0x168a)][_0x396585(0x10c8)](',');_0x5c24a8['voicemail'][_0x396585(0x1651)]=_0xc6f095[0x0],_0x5c24a8['voicemail'][_0x396585(0x252)]=_0xc6f095[0x1],_0x5c24a8[_0x396585(0x356)][_0x396585(0x1039)]=_0xc6f095[0x2],_0x5c24a8[_0x396585(0x356)]['botname']=_0xc6f095[0x3],_0x5c24a8[_0x396585(0x356)][_0x396585(0xaf3)]=_0xc6f095[_0x396585(0x1298)](0x4,_0xc6f095[_0x396585(0x402)])['join'](',');}break;case _0x396585(0x1713):{const _0x50bc7b=_0x5c24a8[_0x396585(0x356)][_0x396585(0x168a)][_0x396585(0x10c8)](',');_0x5c24a8['voicemail'][_0x396585(0x583)]=isNaN(_0x50bc7b[0x0])?_0x50bc7b[0x0]:parseInt(_0x50bc7b[0x0],0xa),_0x5c24a8[_0x396585(0x356)][_0x396585(0xa8d)]=_0x50bc7b[_0x396585(0x1298)](0x1,_0x50bc7b[_0x396585(0x402)])[_0x396585(0xb47)](',');}break;case'message':_0x5c24a8['voicemail'][_0x396585(0xa8d)]=_0x5c24a8[_0x396585(0x356)][_0x396585(0x168a)];break;case _0x396585(0x26ba):_0x5c24a8[_0x396585(0x356)][_0x396585(0x19eb)]=_0x5c24a8[_0x396585(0x356)][_0x396585(0x168a)][_0x396585(0x10c8)]('=')[0x0],_0x5c24a8[_0x396585(0x356)]['value']=_0x5c24a8['voicemail']['appdata'][_0x396585(0x10c8)]('=')[0x1];break;case _0x396585(0x1ecb):_0x5c24a8[_0x396585(0x356)]['project']=_0x5c24a8[_0x396585(0x356)][_0x396585(0x168a)];break;default:{const _0x5e3df6=_0x5c24a8[_0x396585(0x356)][_0x396585(0x168a)]['split'](',');_0x5c24a8[_0x396585(0x356)]['voiceMail']=_0x3f65c0()[_0x396585(0x2635)](_0x5e3df6[0x0])?_0x5e3df6[0x0]:isNaN(_0x5e3df6[0x0])?_0x5e3df6[0x0]:parseInt(_0x5e3df6[0x0],0xa),_0x5c24a8[_0x396585(0x356)]['options']=_0x3f65c0()[_0x396585(0x2635)](_0x5e3df6[0x1])?_0x5e3df6[0x1]:isNaN(_0x5e3df6[0x1])?_0x5e3df6[0x1]:parseInt(_0x5e3df6[0x1],0xa);}break;}else{}_0x5c24a8[_0x396585(0x356)]['type']&&_0x5c24a8[_0x396585(0x356)]['type']['toLowerCase']()==='outbound'&&_0x5c24a8[_0x396585(0x356)]['appType'][_0x396585(0x256e)]()===_0x396585(0x3bb)&&(_0x5c24a8[_0x396585(0x356)]['prefix']=_0x5c24a8[_0x396585(0x356)][_0x396585(0x1d55)]?_0x5c24a8[_0x396585(0x356)]['phone'][_0x396585(0x10c8)]('$')[0x0]:undefined,_0x5c24a8[_0x396585(0x356)][_0x396585(0x1d43)]=_0x5c24a8[_0x396585(0x356)][_0x396585(0x11be)]?'CALLERID(all)='+_0x5c24a8[_0x396585(0x356)]['callerID']:undefined);_0x5c24a8[_0x396585(0x1f34)]=_0x20e13a,_0x5c24a8[_0x396585(0x13f3)]=_0x4645b4,_0x126872[_0x396585(0x23e0)](_0x396585(0x174b))?_0x214fc3[_0x396585(0xe8c)][_0x396585(0x16b4)]({'fields':'id,mailbox','sort':_0x396585(0x1cc5),'nolimit':_0x396585(0x1185)})[_0x396585(0x2945)][_0x396585(0x146b)](function(_0x5abeab){_0x5c24a8['voiceMails']=_0x5abeab['rows']||[];})[_0x396585(0x129e)](function(_0x498bb1){const _0x3717a2=_0x396585;_0x3d01d2['error']({'title':_0x498bb1[_0x3717a2(0x107b)]?_0x3717a2(0x262a)+_0x498bb1[_0x3717a2(0x107b)]+_0x3717a2(0x1315)+_0x498bb1[_0x3717a2(0x167f)]:_0x3717a2(0x2447),'msg':_0x498bb1[_0x3717a2(0x524)]?JSON[_0x3717a2(0x10bb)](_0x498bb1[_0x3717a2(0x524)]):_0x498bb1[_0x3717a2(0xd5f)]()});}):_0x214fc3[_0x396585(0xe8c)][_0x396585(0x16b4)]({'fields':_0x396585(0x116d),'sort':_0x396585(0x1cc5),'nolimit':_0x396585(0x1185)})[_0x396585(0x2945)][_0x396585(0x146b)](function(_0x2cc485){const _0x205731=_0x396585;_0x5c24a8[_0x205731(0xcb1)]=_0x2cc485[_0x205731(0x19c7)]||[];})[_0x396585(0x146b)](function(){const _0x48de2b=_0x396585;return _0x214fc3[_0x48de2b(0x1366)][_0x48de2b(0x16b4)]({'userProfileId':_0x5c24a8[_0x48de2b(0x2321)][_0x48de2b(0x209a)],'sectionId':0x196})[_0x48de2b(0x2945)];})[_0x396585(0x146b)](function(_0x4a4ab6){const _0x5060a2=_0x396585,_0xa77f3a=_0x4a4ab6&&_0x4a4ab6['rows']?_0x4a4ab6[_0x5060a2(0x19c7)][0x0]:null;if(!_0xa77f3a){const _0x52036d=[];let _0xffe223=null;_0x5c24a8[_0x5060a2(0x356)]&&(_0xffe223=_0x3f65c0()[_0x5060a2(0xc84)](_0x5c24a8['voiceMails'],{'mailbox':_0x5c24a8[_0x5060a2(0x356)][_0x5060a2(0xe8c)]}));for(let _0x382660=0x0;_0x382660<_0x5c24a8[_0x5060a2(0xcb1)][_0x5060a2(0x402)];_0x382660++){_0xffe223&&_0x5c24a8['voiceMails'][_0x382660]['id']===_0xffe223['id']&&(_0x5c24a8[_0x5060a2(0xcb1)][_0x382660][_0x5060a2(0x8ff)]=![],_0x52036d[_0x5060a2(0x1f47)](_0x5c24a8[_0x5060a2(0xcb1)][_0x382660]));}_0x5c24a8[_0x5060a2(0xcb1)]=_0x52036d;}else{if(!_0xa77f3a[_0x5060a2(0x11d2)])return _0x214fc3['userProfileResource'][_0x5060a2(0x16b4)]({'sectionId':_0xa77f3a['id']})['$promise'][_0x5060a2(0x146b)](function(_0x16a9a4){const _0x169c69=_0x5060a2,_0xa3c891=_0x3f65c0()[_0x169c69(0x205)](_0x16a9a4['rows'],function(_0x8fba9b){const _0x11d182=_0x169c69;return _0x3f65c0()[_0x11d182(0xc84)](_0x5c24a8['voiceMails'],{'id':_0x8fba9b['resourceId']});});let _0x4362fd=null;_0x5c24a8[_0x169c69(0x356)]&&(_0x4362fd=_0x3f65c0()['find'](_0x5c24a8['voiceMails'],{'mailbox':_0x5c24a8['voicemail'][_0x169c69(0xe8c)]}));if(_0x4362fd&&!_0x3f65c0()[_0x169c69(0x1360)](_0xa3c891,['id',_0x4362fd['id']])){const _0x3311af=_0x3f65c0()[_0x169c69(0xc84)](_0x5c24a8['voiceMails'],{'id':_0x4362fd['id']});_0x3311af[_0x169c69(0x8ff)]=![],_0xa3c891[_0x169c69(0x1f47)](_0x3311af);}_0x5c24a8[_0x169c69(0xcb1)]=_0xa3c891;});}})[_0x396585(0x129e)](function(_0x5e326f){const _0x5f4858=_0x396585;_0x3d01d2[_0x5f4858(0x1980)]({'title':_0x5e326f[_0x5f4858(0x107b)]?_0x5f4858(0x262a)+_0x5e326f[_0x5f4858(0x107b)]+_0x5f4858(0x1315)+_0x5e326f[_0x5f4858(0x167f)]:_0x5f4858(0x1fc9),'msg':_0x5e326f['data']?JSON['stringify'](_0x5e326f['data']):_0x5e326f[_0x5f4858(0xd5f)]()});});function _0x20e13a(){const _0xc92d22=_0x396585;_0x5c24a8[_0xc92d22(0xcef)]=[];const _0x55f849=[];_0x5c24a8[_0xc92d22(0x356)][_0xc92d22(0x1142)]&&_0x5c24a8[_0xc92d22(0x356)][_0xc92d22(0x1142)][_0xc92d22(0x256e)]()===_0xc92d22(0xc9c)&&_0x5c24a8[_0xc92d22(0x356)][_0xc92d22(0x8f2)]===_0xc92d22(0x118b)&&(_0x5c24a8['voicemail'][_0xc92d22(0x1d55)]=_0x3df6b0['cutdigits']?(_0x5c24a8[_0xc92d22(0x356)][_0xc92d22(0x1e12)]||'')+_0xc92d22(0x2147)+_0x3df6b0[_0xc92d22(0x1274)]+'}':(_0x5c24a8[_0xc92d22(0x356)][_0xc92d22(0x1e12)]||'')+_0xc92d22(0x20df),_0x3df6b0['recordingFormat']!=='none'?_0x5c24a8[_0xc92d22(0x356)][_0xc92d22(0xa08)]['indexOf'](_0xc92d22(0x1ea4))<0x0&&(_0x5c24a8[_0xc92d22(0x356)][_0xc92d22(0xa08)]+=_0xc92d22(0x1ea4)):_0x5c24a8['voicemail'][_0xc92d22(0xa08)]=_0x5c24a8[_0xc92d22(0x356)][_0xc92d22(0xa08)][_0xc92d22(0x5f4)](_0xc92d22(0x1ea4),''));if(_0x5c24a8[_0xc92d22(0x356)][_0xc92d22(0x8f2)]&&_0x5c24a8['voicemail'][_0xc92d22(0x8f2)]==='custom'){}else switch((_0x5c24a8[_0xc92d22(0x356)][_0xc92d22(0x1873)]||_0x5c24a8[_0xc92d22(0x356)][_0xc92d22(0x8f2)])[_0xc92d22(0x256e)]()){case _0xc92d22(0x26ba):_0x5c24a8[_0xc92d22(0x356)]['appdata']=_0x5c24a8[_0xc92d22(0x356)][_0xc92d22(0x19eb)]+'='+_0x5c24a8['voicemail']['value'];break;case'custom':break;default:_0x55f849[0x0]=_0x5c24a8[_0xc92d22(0x356)][_0xc92d22(0xe8c)],_0x55f849[0x1]=_0x5c24a8[_0xc92d22(0x356)][_0xc92d22(0xa08)],_0x5c24a8[_0xc92d22(0x356)]['appdata']=_0x55f849['join'](',');}_0x4645b4(_0x5c24a8[_0xc92d22(0x356)]);}function _0x4645b4(_0x15fe14){_0x351b0e['hide'](_0x15fe14);}}const _0x54cab9=_0x4fa1f0;;_0x12aa4d['$inject']=['$state',_0x313a4d(0xd08),_0x313a4d(0x10e8),'$document',_0x313a4d(0x214b),'license','setting',_0x313a4d(0x247f),'toasty',_0x313a4d(0xa87),_0x313a4d(0x86f),_0x313a4d(0x1366)];function _0x12aa4d(_0x2e0373,_0x4accdb,_0x2a7653,_0x281521,_0x2e0956,_0x369021,_0x39f7da,_0x3c531a,_0x1ef044,_0x1deb1f,_0xefd3fa,_0x2a6d93){const _0x185e16=_0x313a4d,_0x61436c=this;_0x61436c['currentUser']=_0x1deb1f['getCurrentUser'](),_0x61436c['license']=_0x369021,_0x61436c['setting']=_0x39f7da,_0x61436c[_0x185e16(0x2251)]=_0x61436c[_0x185e16(0x15b9)]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x61436c[_0x185e16(0x1002)]=_0x4accdb[_0x185e16(0x2414)]()+_0x185e16(0xb0e)+_0x4accdb[_0x185e16(0x148e)](),_0x61436c[_0x185e16(0x86f)]=_0xefd3fa||_0x2e0373[_0x185e16(0x16a)][_0x185e16(0x86f)]||{},_0x61436c[_0x185e16(0x1366)]=_0x2a6d93&&_0x2a6d93[_0x185e16(0x51c)]==0x1?_0x2a6d93['rows'][0x0]:null,_0x61436c[_0x185e16(0x2514)]=_0x1deb1f[_0x185e16(0xe60)](_0x61436c['userProfileSection']?_0x61436c[_0x185e16(0x1366)][_0x185e16(0x2514)]:null),_0x61436c[_0x185e16(0x855)]={},_0x61436c['selectedTab']=_0x2e0373[_0x185e16(0x16a)]['tab']||0x0,_0x61436c[_0x185e16(0x861)]=_0x1ef044[_0x185e16(0x271e)],_0x61436c['gotoInternalRoutes']=_0x24e0d5,_0x61436c[_0x185e16(0x1aa2)]=_0x4bd05a,_0x1deb1f[_0x185e16(0x23e0)](_0x185e16(0x174b))?_0x3c531a[_0x185e16(0x1b82)]['get']({'fields':'id,name','sort':_0x185e16(0x19eb),'nolimit':_0x185e16(0x1185)})[_0x185e16(0x2945)][_0x185e16(0x146b)](function(_0x140b93){const _0x1fa82e=_0x185e16;_0x61436c[_0x1fa82e(0xfe9)]=_0x140b93['rows']||[];})[_0x185e16(0x129e)](function(_0x333508){const _0x9218f4=_0x185e16;_0x1ef044[_0x9218f4(0x1980)]({'title':_0x333508[_0x9218f4(0x107b)]?_0x9218f4(0x262a)+_0x333508[_0x9218f4(0x107b)]+_0x9218f4(0x1315)+_0x333508[_0x9218f4(0x167f)]:'SYSTEM:GET_CONTEXTS','msg':_0x333508['data']?JSON[_0x9218f4(0x10bb)](_0x333508['data']):_0x333508[_0x9218f4(0xd5f)]()});}):_0x3c531a[_0x185e16(0x1b82)][_0x185e16(0x16b4)]({'fields':_0x185e16(0x7a7),'sort':'name','nolimit':_0x185e16(0x1185)})['$promise']['then'](function(_0x13459f){const _0x523d09=_0x185e16;_0x61436c[_0x523d09(0xfe9)]=_0x13459f[_0x523d09(0x19c7)]||[];})[_0x185e16(0x146b)](function(){const _0x290182=_0x185e16;return _0x3c531a[_0x290182(0x1366)][_0x290182(0x16b4)]({'userProfileId':_0x61436c[_0x290182(0x2321)][_0x290182(0x209a)],'sectionId':0x195})[_0x290182(0x2945)];})['then'](function(_0x475038){const _0x17a097=_0x185e16,_0xde864b=_0x475038&&_0x475038[_0x17a097(0x19c7)]?_0x475038[_0x17a097(0x19c7)][0x0]:null;if(!_0xde864b)return _0x3c531a[_0x17a097(0x1b82)][_0x17a097(0x16b4)]({'fields':_0x17a097(0x7a7),'sort':'name','nolimit':_0x17a097(0x1185),'defaultEntry':0x1})[_0x17a097(0x2945)]['then'](function(_0x2c9c5e){const _0x4def4b=_0x17a097;_0x61436c[_0x4def4b(0xfe9)]=_0x2c9c5e[_0x4def4b(0x19c7)]||[];});else{if(!_0xde864b[_0x17a097(0x11d2)])return _0x3c531a[_0x17a097(0xdcc)][_0x17a097(0x16b4)]({'sectionId':_0xde864b['id']})[_0x17a097(0x2945)]['then'](function(_0x242d95){const _0x20bcad=_0x17a097,_0x55aa3b=_0x3f65c0()[_0x20bcad(0x205)](_0x242d95[_0x20bcad(0x19c7)],function(_0x58106b){const _0x2848c7=_0x20bcad;return _0x3f65c0()['find'](_0x61436c[_0x2848c7(0xfe9)],{'id':_0x58106b[_0x2848c7(0x18b8)]});});let _0xd45642=null;_0x61436c['internalroute']&&(_0xd45642=_0x3f65c0()['find'](_0x61436c['contexts'],{'name':_0x61436c[_0x20bcad(0x86f)]['context']}));if(_0xd45642&&!_0x3f65c0()[_0x20bcad(0x1360)](_0x55aa3b,['id',_0xd45642['id']])){const _0x521fdd=_0x3f65c0()[_0x20bcad(0xc84)](_0x61436c[_0x20bcad(0xfe9)],{'id':_0xd45642['id']});_0x521fdd[_0x20bcad(0x8ff)]=![],_0x55aa3b[_0x20bcad(0x1f47)](_0x521fdd);}_0x61436c[_0x20bcad(0xfe9)]=_0x55aa3b;});}})[_0x185e16(0x129e)](function(_0x149268){const _0xdffd8f=_0x185e16;_0x1ef044[_0xdffd8f(0x1980)]({'title':_0x149268['status']?_0xdffd8f(0x262a)+_0x149268['status']+_0xdffd8f(0x1315)+_0x149268['statusText']:_0xdffd8f(0x155e),'msg':_0x149268[_0xdffd8f(0x524)]?JSON[_0xdffd8f(0x10bb)](_0x149268[_0xdffd8f(0x524)]):_0x149268['toString']()});});function _0x24e0d5(){const _0xc56cf0=_0x185e16;_0x2e0373['go'](_0xc56cf0(0x239a),{},{'reload':_0xc56cf0(0x239a)});}function _0x4bd05a(){const _0x55b7e2=_0x185e16;_0x3c531a[_0x55b7e2(0xd47)][_0x55b7e2(0x18e1)]({'id':_0x61436c[_0x55b7e2(0x86f)]['id']},_0x61436c['internalroute'])[_0x55b7e2(0x2945)][_0x55b7e2(0x146b)](function(){const _0x36182f=_0x55b7e2;_0x1ef044[_0x36182f(0x1c75)]({'title':_0x36182f(0xa92),'msg':_0x61436c[_0x36182f(0x86f)][_0x36182f(0x19eb)]?_0x61436c[_0x36182f(0x86f)][_0x36182f(0x19eb)]+'\x20has\x20been\x20updated!':''});})[_0x55b7e2(0x129e)](function(_0x5983eb){const _0x312ca5=_0x55b7e2;_0x1ef044[_0x312ca5(0x1980)]({'title':_0x5983eb[_0x312ca5(0x107b)]?_0x312ca5(0x262a)+_0x5983eb[_0x312ca5(0x107b)]+_0x312ca5(0x1315)+_0x5983eb[_0x312ca5(0x167f)]:'SYSTEM:GETvoiceExtension','msg':_0x5983eb[_0x312ca5(0x524)]?JSON[_0x312ca5(0x10bb)](_0x5983eb[_0x312ca5(0x524)]):_0x5983eb[_0x312ca5(0xd5f)]()});});}}const _0x2e96c1=_0x12aa4d;;const _0x10ef3c=_0x4acfac['p']+_0x313a4d(0xff2);;_0x2535a9[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),'$window',_0x313a4d(0x1862),_0x313a4d(0x15fe),_0x313a4d(0x10e8),'$document',_0x313a4d(0x1abe),_0x313a4d(0x214b),_0x313a4d(0x101f),_0x313a4d(0x26b6),_0x313a4d(0x1366),'api',_0x313a4d(0x216c),'toasty',_0x313a4d(0xa87),_0x313a4d(0x2690),'setting'];function _0x2535a9(_0x3eac6d,_0x4e582d,_0x4b896d,_0x155232,_0x19eb5e,_0x103e6e,_0x46d20f,_0x43eccf,_0x519df9,_0xd78a88,_0x509268,_0x97525f,_0x4bb095,_0x4a90c6,_0x25edb4,_0x9f18a2,_0x54ebd4){const _0x4ece29=_0x313a4d,_0x5c151c=this;_0x5c151c[_0x4ece29(0x2690)]=_0x9f18a2,_0x5c151c[_0x4ece29(0x15b9)]=_0x54ebd4,_0x5c151c[_0x4ece29(0x2321)]=_0x25edb4[_0x4ece29(0xb12)](),_0x5c151c[_0x4ece29(0x101f)]=_0x519df9||{'count':0x0,'rows':[]},_0x5c151c[_0x4ece29(0x26b6)]=_0xd78a88,_0x5c151c[_0x4ece29(0x1366)]=_0x509268&&_0x509268[_0x4ece29(0x51c)]==0x1?_0x509268['rows'][0x0]:null,_0x5c151c[_0x4ece29(0x2514)]=_0x25edb4['parseCrudPermissions'](_0x5c151c[_0x4ece29(0x1366)]?_0x5c151c[_0x4ece29(0x1366)][_0x4ece29(0x2514)]:null),_0x5c151c['table']=_0x4ece29(0x101f),_0x5c151c['listOrder']='',_0x5c151c[_0x4ece29(0x214f)]=null,_0x5c151c[_0x4ece29(0x20a8)]=[],_0x5c151c['query']={'fields':'createdAt,updatedAt,id,appdata,type,exten,context,description','type':'internal','sort':_0x4ece29(0x12f2),'VoiceExtensionId':_0x4ece29(0x203c),'limit':0xa,'page':0x1},_0x5c151c[_0x4ece29(0x23f9)]=_0x59b6c1,_0x5c151c[_0x4ece29(0xf0a)]=_0x51c7a5,_0x5c151c[_0x4ece29(0x1c75)]=_0x5daf2e,_0x5c151c[_0x4ece29(0x21f5)]=_0x334d76,_0x5c151c[_0x4ece29(0x22ee)]=_0x1c6502,_0x5c151c[_0x4ece29(0x196)]=_0x5b39be,_0x5c151c[_0x4ece29(0x229a)]=_0x125f71,_0x5c151c['deleteSelectedInternalRoutes']=_0x3f14f7,_0x5c151c[_0x4ece29(0x2151)]=_0x2649e4,_0x5c151c['selectAllInternalRoutes']=_0x4c0551,_0x25edb4['hasRole'](_0x4ece29(0x174b))?_0x97525f[_0x4ece29(0x1b82)][_0x4ece29(0x16b4)]({'fields':_0x4ece29(0x7a7),'sort':_0x4ece29(0x19eb),'nolimit':_0x4ece29(0x1185)})[_0x4ece29(0x2945)][_0x4ece29(0x146b)](function(_0x12e5ee){const _0x4a9cb2=_0x4ece29;_0x5c151c['contexts']=_0x12e5ee[_0x4a9cb2(0x19c7)]||[];})[_0x4ece29(0x129e)](function(_0x109031){const _0xe935bb=_0x4ece29;_0x4a90c6[_0xe935bb(0x1980)]({'title':_0x109031['status']?_0xe935bb(0x262a)+_0x109031['status']+_0xe935bb(0x1315)+_0x109031[_0xe935bb(0x167f)]:'SYSTEM:GET_CONTEXTS','msg':_0x109031[_0xe935bb(0x524)]?JSON['stringify'](_0x109031['data']):_0x109031[_0xe935bb(0xd5f)]()});}):_0x97525f['voiceContext'][_0x4ece29(0x16b4)]({'fields':_0x4ece29(0x7a7),'sort':'name','nolimit':_0x4ece29(0x1185)})[_0x4ece29(0x2945)][_0x4ece29(0x146b)](function(_0x255164){const _0xf1a401=_0x4ece29;_0x5c151c['contexts']=_0x255164[_0xf1a401(0x19c7)]||[];})[_0x4ece29(0x146b)](function(){const _0x24c4c7=_0x4ece29;return _0x97525f[_0x24c4c7(0x1366)][_0x24c4c7(0x16b4)]({'userProfileId':_0x5c151c[_0x24c4c7(0x2321)][_0x24c4c7(0x209a)],'sectionId':0x195})['$promise'];})[_0x4ece29(0x146b)](function(_0x276552){const _0x1d91fd=_0x4ece29,_0x5b7c0f=_0x276552&&_0x276552[_0x1d91fd(0x19c7)]?_0x276552['rows'][0x0]:null;if(!_0x5b7c0f)return _0x97525f['voiceContext'][_0x1d91fd(0x16b4)]({'fields':_0x1d91fd(0x7a7),'sort':_0x1d91fd(0x19eb),'nolimit':_0x1d91fd(0x1185),'defaultEntry':0x1})[_0x1d91fd(0x2945)]['then'](function(_0x5a3aa9){const _0x471b42=_0x1d91fd;_0x5c151c[_0x471b42(0xfe9)]=_0x5a3aa9[_0x471b42(0x19c7)]||[];});else{if(!_0x5b7c0f[_0x1d91fd(0x11d2)])return _0x97525f['userProfileResource'][_0x1d91fd(0x16b4)]({'sectionId':_0x5b7c0f['id']})[_0x1d91fd(0x2945)]['then'](function(_0x1fa571){const _0x117a37=_0x1d91fd,_0xab636=_0x3f65c0()[_0x117a37(0x205)](_0x1fa571[_0x117a37(0x19c7)],function(_0x33ecf7){const _0x1320fe=_0x117a37;return _0x3f65c0()['find'](_0x5c151c[_0x1320fe(0xfe9)],{'id':_0x33ecf7[_0x1320fe(0x18b8)]});});let _0x403a32=null;_0x5c151c[_0x117a37(0x86f)]&&(_0x403a32=_0x3f65c0()[_0x117a37(0xc84)](_0x5c151c[_0x117a37(0xfe9)],{'name':_0x5c151c['internalroute'][_0x117a37(0x1ac1)]}));if(_0x403a32&&!_0x3f65c0()[_0x117a37(0x1360)](_0xab636,['id',_0x403a32['id']])){const _0x32d540=_0x3f65c0()[_0x117a37(0xc84)](_0x5c151c[_0x117a37(0xfe9)],{'id':_0x403a32['id']});_0x32d540[_0x117a37(0x8ff)]=![],_0xab636['push'](_0x32d540);}_0x5c151c['contexts']=_0xab636;});}})[_0x4ece29(0x129e)](function(_0x9828ac){const _0x2f2e77=_0x4ece29;_0x4a90c6[_0x2f2e77(0x1980)]({'title':_0x9828ac[_0x2f2e77(0x107b)]?_0x2f2e77(0x262a)+_0x9828ac[_0x2f2e77(0x107b)]+_0x2f2e77(0x1315)+_0x9828ac[_0x2f2e77(0x167f)]:'SYSTEM:GETcontexts','msg':_0x9828ac[_0x2f2e77(0x524)]?JSON[_0x2f2e77(0x10bb)](_0x9828ac[_0x2f2e77(0x524)]):_0x9828ac[_0x2f2e77(0xd5f)]()});});function _0x59b6c1(_0x2fdd41){const _0x32c8ea=_0x4ece29;_0x4b896d['go'](_0x32c8ea(0x1f2c),{'id':_0x2fdd41['id'],'internalroute':_0x2fdd41,'crudPermissions':_0x5c151c['crudPermissions']});}function _0x51c7a5(_0x325432,_0xc51cf9){const _0x2a1153=_0x4ece29,_0x269881=_0x19eb5e['confirm']()[_0x2a1153(0x1189)](_0x2a1153(0xdb2)+_0x3f65c0()[_0x2a1153(0x20d1)]('internalroute')+'?')['htmlContent'](''+(_0x325432[_0x2a1153(0x19eb)]||'internalroute')+_0x2a1153(0x252f)+_0x2a1153(0xe01))['ariaLabel'](_0x2a1153(0x13ba))[_0x2a1153(0x1f27)](_0xc51cf9)['ok']('OK')['cancel'](_0x2a1153(0x39a));_0x19eb5e['show'](_0x269881)[_0x2a1153(0x146b)](function(){_0x5b39be(_0x325432);},function(){const _0xf5bd11=_0x2a1153;console[_0xf5bd11(0x1a74)](_0xf5bd11(0x39a));});}let _0x23e844=!![],_0x2802b8=0x1;_0x3eac6d[_0x4ece29(0x21e8)]('vm.query.filter',function(_0x3b2a72,_0x4305b8){const _0x27f96b=_0x4ece29;_0x23e844?_0x46d20f(function(){_0x23e844=![];}):(!_0x4305b8&&(_0x2802b8=_0x5c151c[_0x27f96b(0x1a56)][_0x27f96b(0x844)]),_0x3b2a72!==_0x4305b8&&(_0x5c151c['query'][_0x27f96b(0x844)]=0x1),!_0x3b2a72&&(_0x5c151c['query'][_0x27f96b(0x844)]=_0x2802b8),_0x5c151c[_0x27f96b(0x21f5)]());});function _0x5daf2e(_0x44e9d3){const _0x5b0b0c=_0x4ece29;_0x5c151c[_0x5b0b0c(0x101f)]=_0x44e9d3||{'count':0x0,'rows':[]};}function _0x334d76(){const _0x38396e=_0x4ece29;_0x5c151c[_0x38396e(0x1a56)]['offset']=(_0x5c151c[_0x38396e(0x1a56)]['page']-0x1)*_0x5c151c[_0x38396e(0x1a56)]['limit'],_0x25edb4[_0x38396e(0x23e0)]('admin')?_0x5c151c[_0x38396e(0xb9c)]=_0x97525f[_0x38396e(0xd47)]['get'](_0x5c151c[_0x38396e(0x1a56)],_0x5daf2e)['$promise']:(_0x5c151c[_0x38396e(0x1a56)]['id']=_0x5c151c['userProfile']['id'],_0x5c151c[_0x38396e(0x1a56)]['section']=_0x38396e(0xa2b),_0x5c151c[_0x38396e(0xb9c)]=_0x97525f[_0x38396e(0x26b6)]['getResources'](_0x5c151c[_0x38396e(0x1a56)],_0x5daf2e)[_0x38396e(0x2945)]);}function _0x1c6502(_0x2f396e,_0xcf33c){const _0x1c7a5a=_0x4ece29;_0x19eb5e['show']({'controller':_0x1c7a5a(0x927),'controllerAs':'vm','templateUrl':_0x10ef3c,'parent':angular[_0x1c7a5a(0x1853)](_0x103e6e[_0x1c7a5a(0x2586)]),'targetEvent':_0x2f396e,'clickOutsideToClose':!![],'locals':{'internalroute':_0xcf33c,'internalroutes':_0x5c151c[_0x1c7a5a(0x101f)][_0x1c7a5a(0x19c7)],'license':_0x5c151c[_0x1c7a5a(0x2690)],'setting':_0x5c151c['setting'],'crudPermissions':_0x5c151c[_0x1c7a5a(0x2514)]}});}function _0x5b39be(_0x83a8cc){const _0x3f9fdc=_0x4ece29;_0x97525f[_0x3f9fdc(0xd47)][_0x3f9fdc(0x1fac)]({'id':_0x83a8cc['id']})[_0x3f9fdc(0x2945)]['then'](function(){const _0x3c50e4=_0x3f9fdc;_0x3f65c0()[_0x3c50e4(0x2640)](_0x5c151c[_0x3c50e4(0x101f)]['rows'],{'id':_0x83a8cc['id']}),_0x5c151c[_0x3c50e4(0x101f)][_0x3c50e4(0x51c)]-=0x1,!_0x5c151c[_0x3c50e4(0x101f)][_0x3c50e4(0x19c7)][_0x3c50e4(0x402)]&&_0x5c151c[_0x3c50e4(0x21f5)](),_0x4a90c6['success']({'title':_0x3f65c0()[_0x3c50e4(0x20d1)](_0x3c50e4(0x20e3))+'\x20deleted!','msg':_0x83a8cc[_0x3c50e4(0x19eb)]?_0x83a8cc[_0x3c50e4(0x19eb)]+_0x3c50e4(0x23e3):''});})['catch'](function(_0x6024c2){const _0x22b435=_0x3f9fdc;if(_0x6024c2[_0x22b435(0x524)]&&_0x6024c2[_0x22b435(0x524)][_0x22b435(0xcef)]&&_0x6024c2[_0x22b435(0x524)]['errors']['length']){_0x5c151c[_0x22b435(0xcef)]=_0x6024c2['data']['errors']||[{'message':_0x6024c2[_0x22b435(0xd5f)](),'type':_0x22b435(0x1c36)}];for(let _0x27fb08=0x0;_0x27fb08<_0x6024c2['data'][_0x22b435(0xcef)][_0x22b435(0x402)];_0x27fb08++){_0x4a90c6[_0x22b435(0x1980)]({'title':_0x6024c2[_0x22b435(0x524)]['errors'][_0x27fb08][_0x22b435(0x1142)],'msg':_0x6024c2[_0x22b435(0x524)][_0x22b435(0xcef)][_0x27fb08][_0x22b435(0x7fd)]});}}else _0x4a90c6[_0x22b435(0x1980)]({'title':_0x6024c2[_0x22b435(0x107b)]?_0x22b435(0x262a)+_0x6024c2[_0x22b435(0x107b)]+'\x20-\x20'+_0x6024c2[_0x22b435(0x167f)]:_0x22b435(0x1c36),'msg':_0x6024c2[_0x22b435(0x524)]?JSON[_0x22b435(0x10bb)](_0x6024c2[_0x22b435(0x524)]['message']):_0x6024c2[_0x22b435(0x7fd)]||_0x6024c2[_0x22b435(0xd5f)]()});});}function _0x125f71(){const _0x1d60f7=_0x4ece29,_0xbdb06b=angular[_0x1d60f7(0x235a)](_0x5c151c[_0x1d60f7(0x20a8)]);return _0x5c151c['selectedInternalRoutes']=[],_0xbdb06b;}function _0x3f14f7(_0x39f2d4){const _0x22d085=_0x4ece29,_0x91c30f=_0x19eb5e[_0x22d085(0x1e8a)]()[_0x22d085(0x1189)](_0x22d085(0x1cc3))[_0x22d085(0x1cbe)](_0x22d085(0x16d3)+_0x5c151c[_0x22d085(0x20a8)][_0x22d085(0x402)]+_0x22d085(0x2452)+_0x22d085(0xe01))[_0x22d085(0x4bd)](_0x22d085(0x990))[_0x22d085(0x1f27)](_0x39f2d4)['ok']('OK')[_0x22d085(0x6c3)](_0x22d085(0x39a));_0x19eb5e['show'](_0x91c30f)['then'](function(){const _0x2f9945=_0x22d085;_0x5c151c[_0x2f9945(0x20a8)][_0x2f9945(0x1df5)](function(_0x5d717b){_0x5b39be(_0x5d717b);}),_0x5c151c[_0x2f9945(0x20a8)]=[];});}function _0x2649e4(){const _0x2153d8=_0x4ece29;_0x5c151c[_0x2153d8(0x20a8)]=[];}function _0x4c0551(){const _0x51190d=_0x4ece29;_0x5c151c[_0x51190d(0x20a8)]=_0x5c151c[_0x51190d(0x101f)][_0x51190d(0x19c7)];}}const _0x56bc14=_0x2535a9;;_0x5dbf7f[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1862),_0x313a4d(0xd08),_0x313a4d(0x10e8),'$q','$translate',_0x313a4d(0x1fe4),'musiconholds',_0x313a4d(0x23ee),_0x313a4d(0x247f),_0x313a4d(0xa87),_0x313a4d(0x2690),_0x313a4d(0x15b9),'crudPermissions'];function _0x5dbf7f(_0x3e2662,_0x2afd40,_0x217109,_0x3ec861,_0x4de759,_0x21286f,_0x585187,_0x227507,_0x3087bc,_0x9b534b,_0x35d5e7,_0x5a1ec0,_0x21acf7,_0x589085){const _0xc96b97=_0x313a4d,_0x2c72e4=this;_0x2c72e4[_0xc96b97(0x2321)]=_0x35d5e7[_0xc96b97(0xb12)](),_0x2c72e4[_0xc96b97(0xcef)]=[],_0x2c72e4[_0xc96b97(0x15b9)]=_0x21acf7,_0x2c72e4[_0xc96b97(0x2690)]=_0x5a1ec0,_0x2c72e4[_0xc96b97(0x2514)]=_0x589085,_0x2c72e4['hasModulePermissions']={},_0x2c72e4['passwordPattern']=_0x2c72e4[_0xc96b97(0x15b9)]&&_0x2c72e4[_0xc96b97(0x15b9)][_0xc96b97(0x976)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2c72e4[_0xc96b97(0x1189)]=_0xc96b97(0x25a2),_0x2c72e4['musiconhold']=angular['copy'](_0x3087bc),_0x2c72e4[_0xc96b97(0x19a8)]=_0x227507,_0x2c72e4['newMusicOnHold']=![];!_0x2c72e4[_0xc96b97(0x23ee)]&&(_0x2c72e4['musiconhold']={'mode':'files'},_0x2c72e4[_0xc96b97(0x1189)]=_0xc96b97(0x3cb),_0x2c72e4[_0xc96b97(0x7c6)]=!![]);_0x2c72e4[_0xc96b97(0x16e5)]=_0x286b8d,_0x2c72e4['saveMusicOnHold']=_0x465056,_0x2c72e4[_0xc96b97(0x24e7)]=_0x292134,_0x2c72e4[_0xc96b97(0xe73)]=_0x1b62c8,_0x2c72e4['closeDialog']=_0x39a0cf;function _0x286b8d(){const _0x19066f=_0xc96b97;_0x2c72e4['errors']=[],_0x9b534b[_0x19066f(0x7bd)][_0x19066f(0x1e3)](_0x2c72e4[_0x19066f(0x23ee)])[_0x19066f(0x2945)][_0x19066f(0x146b)](function(_0x2213ec){const _0xf2edca=_0x19066f;_0x2c72e4[_0xf2edca(0x19a8)][_0xf2edca(0xb3d)](_0x2213ec[_0xf2edca(0x2488)]()),_0x585187['success']({'title':_0xf2edca(0x1b6a),'msg':_0x2c72e4['musiconhold'][_0xf2edca(0x19eb)]?_0x2c72e4[_0xf2edca(0x23ee)][_0xf2edca(0x19eb)]+_0xf2edca(0x1386):''}),_0x39a0cf(_0x2213ec);})[_0x19066f(0x129e)](function(_0x2ac371){const _0x4e88e5=_0x19066f;if(_0x2ac371['data']&&_0x2ac371[_0x4e88e5(0x524)][_0x4e88e5(0xcef)]&&_0x2ac371[_0x4e88e5(0x524)][_0x4e88e5(0xcef)][_0x4e88e5(0x402)]){_0x2c72e4[_0x4e88e5(0xcef)]=_0x2ac371[_0x4e88e5(0x524)]['errors']||[{'message':_0x2ac371[_0x4e88e5(0xd5f)](),'type':_0x4e88e5(0x12bd)}];for(let _0x2bf549=0x0;_0x2bf549<_0x2ac371[_0x4e88e5(0x524)][_0x4e88e5(0xcef)][_0x4e88e5(0x402)];_0x2bf549+=0x1){_0x585187[_0x4e88e5(0x1980)]({'title':_0x2ac371[_0x4e88e5(0x524)][_0x4e88e5(0xcef)][_0x2bf549][_0x4e88e5(0x1142)],'msg':_0x2ac371[_0x4e88e5(0x524)][_0x4e88e5(0xcef)][_0x2bf549][_0x4e88e5(0x7fd)]});}}else _0x585187[_0x4e88e5(0x1980)]({'title':_0x2ac371[_0x4e88e5(0x107b)]?_0x4e88e5(0x262a)+_0x2ac371[_0x4e88e5(0x107b)]+_0x4e88e5(0x1315)+_0x2ac371[_0x4e88e5(0x167f)]:_0x4e88e5(0x12bd),'msg':_0x2ac371[_0x4e88e5(0x524)]?JSON['stringify'](_0x2ac371['data'][_0x4e88e5(0x7fd)]):_0x2ac371[_0x4e88e5(0xd5f)]()});});}function _0x465056(){const _0x8c31a4=_0xc96b97;_0x2c72e4[_0x8c31a4(0xcef)]=[],_0x9b534b['voiceMusicOnHold'][_0x8c31a4(0x18e1)]({'id':_0x2c72e4[_0x8c31a4(0x23ee)]['id']},_0x2c72e4[_0x8c31a4(0x23ee)])['$promise'][_0x8c31a4(0x146b)](function(_0x41b7e7){const _0x23029b=_0x8c31a4,_0x53c07d=_0x3f65c0()['find'](_0x2c72e4[_0x23029b(0x19a8)],{'id':_0x41b7e7['id']});_0x53c07d&&_0x3f65c0()[_0x23029b(0x168d)](_0x53c07d,_0x3f65c0()[_0x23029b(0x40e)](_0x41b7e7[_0x23029b(0x2488)](),_0x3f65c0()[_0x23029b(0x627)](_0x53c07d))),_0x585187[_0x23029b(0x1c75)]({'title':_0x23029b(0x28d6),'msg':_0x2c72e4[_0x23029b(0x23ee)][_0x23029b(0x19eb)]?_0x2c72e4[_0x23029b(0x23ee)][_0x23029b(0x19eb)]+_0x23029b(0x24db):''}),_0x39a0cf(_0x41b7e7);})[_0x8c31a4(0x129e)](function(_0x174320){const _0xc732a2=_0x8c31a4;if(_0x174320['data']&&_0x174320[_0xc732a2(0x524)][_0xc732a2(0xcef)]&&_0x174320[_0xc732a2(0x524)][_0xc732a2(0xcef)]['length']){_0x2c72e4['errors']=_0x174320[_0xc732a2(0x524)][_0xc732a2(0xcef)]||[{'message':_0x174320[_0xc732a2(0xd5f)](),'type':'api.voiceMusicOnHold.update'}];for(let _0x12c414=0x0;_0x12c414<_0x174320['data'][_0xc732a2(0xcef)][_0xc732a2(0x402)];_0x12c414++){_0x585187[_0xc732a2(0x1980)]({'title':_0x174320[_0xc732a2(0x524)]['errors'][_0x12c414]['type'],'msg':_0x174320[_0xc732a2(0x524)][_0xc732a2(0xcef)][_0x12c414][_0xc732a2(0x7fd)]});}}else _0x585187[_0xc732a2(0x1980)]({'title':_0x174320[_0xc732a2(0x107b)]?'API:'+_0x174320[_0xc732a2(0x107b)]+'\x20-\x20'+_0x174320[_0xc732a2(0x167f)]:_0xc732a2(0x42c),'msg':_0x174320['data']?JSON[_0xc732a2(0x10bb)](_0x174320['data'][_0xc732a2(0x7fd)]):_0x174320[_0xc732a2(0xd5f)]()});});}function _0x292134(_0x1395c0){const _0x1dd81f=_0xc96b97;_0x2c72e4[_0x1dd81f(0xcef)]=[];const _0x58039a=_0x3ec861[_0x1dd81f(0x1e8a)]()[_0x1dd81f(0x1189)](_0x1dd81f(0x1d64))[_0x1dd81f(0x80f)]('The\x20musiconhold\x20will\x20be\x20deleted.')['ariaLabel'](_0x1dd81f(0xad0))['ok']('Delete')[_0x1dd81f(0x6c3)](_0x1dd81f(0xcf0))[_0x1dd81f(0x1f27)](_0x1395c0);_0x3ec861[_0x1dd81f(0x2615)](_0x58039a)['then'](function(){const _0x2a0d4d=_0x1dd81f;_0x9b534b['voiceMusicOnHold'][_0x2a0d4d(0x1fac)]({'id':_0x2c72e4[_0x2a0d4d(0x23ee)]['id']})['$promise'][_0x2a0d4d(0x146b)](function(){const _0x1cca8f=_0x2a0d4d;_0x3f65c0()[_0x1cca8f(0x2640)](_0x2c72e4['musiconholds'],{'id':_0x2c72e4[_0x1cca8f(0x23ee)]['id']}),_0x585187[_0x1cca8f(0x1c75)]({'title':_0x1cca8f(0x17cc),'msg':(_0x2c72e4['musiconhold'][_0x1cca8f(0x19eb)]||_0x1cca8f(0x23ee))+_0x1cca8f(0x23e3)}),_0x39a0cf(_0x2c72e4[_0x1cca8f(0x23ee)]);})[_0x2a0d4d(0x129e)](function(_0x2c00e1){const _0x15c5a5=_0x2a0d4d;if(_0x2c00e1['data']&&_0x2c00e1[_0x15c5a5(0x524)][_0x15c5a5(0xcef)]&&_0x2c00e1[_0x15c5a5(0x524)]['errors'][_0x15c5a5(0x402)]){_0x2c72e4['errors']=_0x2c00e1[_0x15c5a5(0x524)]['errors']||[{'message':_0x2c00e1[_0x15c5a5(0xd5f)](),'type':'api.voiceMusicOnHold.delete'}];for(let _0xaed3d4=0x0;_0xaed3d4<_0x2c00e1[_0x15c5a5(0x524)][_0x15c5a5(0xcef)][_0x15c5a5(0x402)];_0xaed3d4++){_0x585187[_0x15c5a5(0x1980)]({'title':_0x2c00e1['data'][_0x15c5a5(0xcef)][_0xaed3d4]['type'],'msg':_0x2c00e1[_0x15c5a5(0x524)][_0x15c5a5(0xcef)][_0xaed3d4]['message']});}}else _0x585187['error']({'title':_0x2c00e1[_0x15c5a5(0x107b)]?'API:'+_0x2c00e1[_0x15c5a5(0x107b)]+_0x15c5a5(0x1315)+_0x2c00e1[_0x15c5a5(0x167f)]:_0x15c5a5(0xf23),'msg':_0x2c00e1[_0x15c5a5(0x524)]?JSON[_0x15c5a5(0x10bb)](_0x2c00e1['data'][_0x15c5a5(0x7fd)]):_0x2c00e1[_0x15c5a5(0x7fd)]||_0x2c00e1[_0x15c5a5(0xd5f)]()});});},function(){});}function _0x1b62c8(_0x37744f){return _0x37744f===null?undefined:new Date(_0x37744f);}function _0x39a0cf(_0x54c6e9){_0x3ec861['hide'](_0x54c6e9);}}const _0x1abb76=_0x5dbf7f;;const _0x237ff6=_0x4acfac['p']+_0x313a4d(0x2343);;_0x11a8a1[_0x313a4d(0x11c2)]=[_0x313a4d(0x23df),_0x313a4d(0x910),_0x313a4d(0x1862),'$q',_0x313a4d(0x214b),_0x313a4d(0x1abe),'$mdDialog',_0x313a4d(0x4d8),_0x313a4d(0x1fe4),'api',_0x313a4d(0xa87)];function _0x11a8a1(_0x14385b,_0x47a11b,_0x598e18,_0x6e77cd,_0x32a50b,_0x49a392,_0x2888a3,_0x172a55,_0x129e14,_0x1a5264,_0x5684a3){const _0x5b8495=_0x313a4d,_0x58e616=this;_0x58e616[_0x5b8495(0x2321)]=_0x5684a3[_0x5b8495(0xb12)](),_0x58e616[_0x5b8495(0x23ee)]={},_0x58e616['musiconholdMohSounds']={'count':0x0,'rows':[]},_0x58e616['selectedMusicOnHoldMohSounds']=[],_0x58e616[_0x5b8495(0x2514)],_0x58e616[_0x5b8495(0x1a56)]={'fields':_0x5b8495(0x1c64),'limit':0xa,'page':0x1},_0x58e616[_0x5b8495(0x5aa)]=_0x406e00,_0x58e616[_0x5b8495(0x19b4)]=_0x33edd0,_0x58e616[_0x5b8495(0x142e)]=_0x50cdb5,_0x58e616[_0x5b8495(0x1c75)]=_0x30ebbc,_0x58e616[_0x5b8495(0xefc)]=_0x5928c6,_0x58e616[_0x5b8495(0x1479)]=_0x4ff660,_0x58e616[_0x5b8495(0x16fa)]=_0x4e94db,_0x58e616[_0x5b8495(0x607)]=_0x51bafc,_0x58e616[_0x5b8495(0x1efd)]=_0x112243,_0x5684a3[_0x5b8495(0x23e0)](_0x5b8495(0x174b))?_0x1a5264[_0x5b8495(0x126d)][_0x5b8495(0x16b4)]({'fields':_0x5b8495(0x7a7),'sort':_0x5b8495(0x19eb)})[_0x5b8495(0x2945)][_0x5b8495(0x146b)](function(_0xcb109f){const _0x537f3a=_0x5b8495;_0x58e616[_0x537f3a(0xb02)]=_0xcb109f[_0x537f3a(0x19c7)]||[];})[_0x5b8495(0x129e)](function(_0x2e98a4){const _0x28ba9a=_0x5b8495;_0x129e14[_0x28ba9a(0x1980)]({'title':_0x2e98a4[_0x28ba9a(0x107b)]?_0x28ba9a(0x262a)+_0x2e98a4[_0x28ba9a(0x107b)]+_0x28ba9a(0x1315)+_0x2e98a4[_0x28ba9a(0x167f)]:_0x28ba9a(0xd4a),'msg':_0x2e98a4[_0x28ba9a(0x524)]?JSON[_0x28ba9a(0x10bb)](_0x2e98a4[_0x28ba9a(0x524)]):_0x2e98a4[_0x28ba9a(0xd5f)]()});}):_0x1a5264[_0x5b8495(0x126d)][_0x5b8495(0x16b4)]({'fields':'id,name','sort':_0x5b8495(0x19eb)})['$promise'][_0x5b8495(0x146b)](function(_0x129763){const _0x7e6328=_0x5b8495;_0x58e616[_0x7e6328(0xb02)]=_0x129763[_0x7e6328(0x19c7)]||[];})[_0x5b8495(0x146b)](function(){const _0x3c7b4c=_0x5b8495;return _0x1a5264['userProfileSection']['get']({'userProfileId':_0x58e616[_0x3c7b4c(0x2321)]['userProfileId'],'sectionId':0x3ef})['$promise'];})[_0x5b8495(0x146b)](function(_0x2e81b2){const _0x5208fe=_0x5b8495,_0x1ce51d=_0x2e81b2&&_0x2e81b2['rows']?_0x2e81b2[_0x5208fe(0x19c7)][0x0]:null;if(!_0x1ce51d){const _0x432d6e=[];let _0x2aaec7=null;_0x58e616['musiconhold']&&(_0x2aaec7=_0x3f65c0()[_0x5208fe(0xc84)](_0x58e616[_0x5208fe(0xb02)],{'id':Number(_0x58e616['musiconhold']['id'])}));for(let _0x3eacc2=0x0;_0x3eacc2<_0x58e616[_0x5208fe(0xb02)][_0x5208fe(0x402)];_0x3eacc2++){_0x2aaec7&&_0x58e616[_0x5208fe(0xb02)][_0x3eacc2]['id']===_0x2aaec7['id']&&(_0x58e616[_0x5208fe(0xb02)][_0x3eacc2][_0x5208fe(0x8ff)]=![],_0x432d6e[_0x5208fe(0x1f47)](_0x58e616['sounds'][_0x3eacc2]));}_0x58e616[_0x5208fe(0xb02)]=_0x432d6e;}else{if(!_0x1ce51d[_0x5208fe(0x11d2)])return _0x1a5264['userProfileResource'][_0x5208fe(0x16b4)]({'sectionId':_0x1ce51d['id']})['$promise'][_0x5208fe(0x146b)](function(_0x1bc6de){const _0x129ed1=_0x5208fe,_0x4aa890=_0x3f65c0()[_0x129ed1(0x205)](_0x1bc6de[_0x129ed1(0x19c7)],function(_0x1a6159){const _0x15aaa8=_0x129ed1;return _0x3f65c0()[_0x15aaa8(0xc84)](_0x58e616['sounds'],{'id':_0x1a6159[_0x15aaa8(0x18b8)]});});let _0x23011c=null;_0x58e616[_0x129ed1(0x23ee)]&&(_0x23011c=_0x3f65c0()[_0x129ed1(0xc84)](_0x58e616[_0x129ed1(0xb02)],{'id':Number(_0x58e616[_0x129ed1(0x23ee)]['id'])}));if(_0x23011c&&!_0x3f65c0()[_0x129ed1(0x1360)](_0x4aa890,['id',_0x23011c['id']])){const _0x458789=_0x3f65c0()[_0x129ed1(0xc84)](_0x58e616['sounds'],{'id':_0x23011c['id']});_0x458789[_0x129ed1(0x8ff)]=![],_0x4aa890[_0x129ed1(0x1f47)](_0x458789);}_0x58e616[_0x129ed1(0xb02)]=_0x4aa890;});}})[_0x5b8495(0x129e)](function(_0x4a63d1){const _0xdc6fbc=_0x5b8495;_0x129e14[_0xdc6fbc(0x1980)]({'title':_0x4a63d1['status']?_0xdc6fbc(0x262a)+_0x4a63d1['status']+_0xdc6fbc(0x1315)+_0x4a63d1[_0xdc6fbc(0x167f)]:_0xdc6fbc(0x2682),'msg':_0x4a63d1[_0xdc6fbc(0x524)]?JSON[_0xdc6fbc(0x10bb)](_0x4a63d1[_0xdc6fbc(0x524)]):_0x4a63d1[_0xdc6fbc(0xd5f)]()});});function _0x406e00(_0x7d9858,_0x4db3fe){const _0xbf836e=_0x5b8495;_0x58e616[_0xbf836e(0x23ee)]=_0x7d9858,_0x58e616[_0xbf836e(0x2514)]=typeof _0x4db3fe!==_0xbf836e(0x2274)?_0x4db3fe:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x58e616['query'][_0xbf836e(0x1387)]=_0x58e616[_0xbf836e(0x23ee)]['id'],_0x58e616[_0xbf836e(0x1a56)]['id']=_0x58e616[_0xbf836e(0x23ee)]['id'],_0x5928c6();}function _0x50cdb5(_0x351455,_0x19c2ad,_0xe9139e){const _0x529c39=_0x5b8495;return _0x1a5264[_0x529c39(0x126d)][_0x529c39(0x15b1)]({'id':_0x351455['id'],'exists':!![],'attachments':_0xe9139e})['$promise'][_0x529c39(0x146b)](function(_0x47fe62){const _0x1089e2=_0x529c39,_0x29ef41=[_0x47fe62['buffer']];let _0x5cc959='mohSound'+_0x351455['id'];const _0x236b9c=new Blob(_0x29ef41,{'type':_0x47fe62[_0x1089e2(0x1142)]});_0x5cc959=_0x351455[_0x1089e2(0x2570)]?_0x351455[_0x1089e2(0xa3d)]+'.'+_0x351455[_0x1089e2(0x2570)]:_0x351455['save_name'];const _0x1573da=window[_0x1089e2(0xef3)][_0x1089e2(0x24ec)]('a');_0x1573da['setAttribute'](_0x1089e2(0x1b3c),URL['createObjectURL'](_0x236b9c)),_0x1573da[_0x1089e2(0x1652)](_0x1089e2(0x15b1),_0x5cc959),document[_0x1089e2(0x2586)]['appendChild'](_0x1573da),_0x1573da[_0x1089e2(0x1fa5)]();})[_0x529c39(0x129e)](function(_0x495321){const _0x426f14=_0x529c39;if(_0x495321[_0x426f14(0x524)]&&_0x495321[_0x426f14(0x524)]['errors']&&_0x495321[_0x426f14(0x524)][_0x426f14(0xcef)][_0x426f14(0x402)])for(let _0x150a95=0x0;_0x150a95<_0x495321[_0x426f14(0x524)][_0x426f14(0xcef)][_0x426f14(0x402)];_0x150a95+=0x1){_0x129e14[_0x426f14(0x1980)]({'title':_0x495321['data'][_0x426f14(0xcef)][_0x150a95][_0x426f14(0x1142)],'msg':_0x495321[_0x426f14(0x524)][_0x426f14(0xcef)][_0x150a95]['message']});}else _0x129e14[_0x426f14(0x1980)]({'title':_0x495321[_0x426f14(0x107b)]?_0x426f14(0x262a)+_0x495321[_0x426f14(0x107b)]+'\x20-\x20'+_0x495321[_0x426f14(0x167f)]:_0x426f14(0x12bd),'msg':_0x495321[_0x426f14(0x524)]?JSON[_0x426f14(0x10bb)](_0x495321[_0x426f14(0x524)][_0x426f14(0x7fd)]):_0x495321[_0x426f14(0xd5f)]()});});}function _0x33edd0(_0x56a684,_0x4e2f85){const _0xccc4e5=_0x5b8495,_0x3a8a78=_0x2888a3[_0xccc4e5(0x1e8a)]()['title'](_0xccc4e5(0xffc))[_0xccc4e5(0x1cbe)](_0xccc4e5(0x16d3)+(_0x56a684[_0xccc4e5(0x19eb)]||_0x56a684['id']&&_0x3f65c0()[_0xccc4e5(0x21cf)]('mohSound\x20#')+_0x56a684['id']||_0xccc4e5(0x51f))+''+_0xccc4e5(0xe01))[_0xccc4e5(0x4bd)](_0xccc4e5(0x95c))[_0xccc4e5(0x1f27)](_0x4e2f85)['ok']('OK')[_0xccc4e5(0x6c3)](_0xccc4e5(0x39a));_0x2888a3[_0xccc4e5(0x2615)](_0x3a8a78)[_0xccc4e5(0x146b)](function(){_0x51bafc(_0x56a684);},function(){const _0x589b70=_0xccc4e5;console[_0x589b70(0x1a74)](_0x589b70(0x39a));});}function _0x30ebbc(_0x396bd7){const _0x13e9e5=_0x5b8495;_0x58e616[_0x13e9e5(0x2536)]=_0x396bd7||{'count':0x0,'rows':[]};}function _0x5928c6(){const _0x5172b4=_0x5b8495;_0x58e616[_0x5172b4(0x1a56)][_0x5172b4(0x145d)]=(_0x58e616[_0x5172b4(0x1a56)][_0x5172b4(0x844)]-0x1)*_0x58e616[_0x5172b4(0x1a56)][_0x5172b4(0x221e)],_0x58e616[_0x5172b4(0xb9c)]=_0x1a5264[_0x5172b4(0x7bd)][_0x5172b4(0x2208)](_0x58e616['query'],_0x30ebbc)['$promise'];}function _0x4ff660(_0x24ab11,_0x22e487){const _0x397790=_0x5b8495;_0x2888a3[_0x397790(0x2615)]({'controller':'CreateOrEditMohSoundDialogController','controllerAs':'vm','templateUrl':_0x237ff6,'parent':angular[_0x397790(0x1853)](_0x172a55[_0x397790(0x2586)]),'targetEvent':_0x24ab11,'clickOutsideToClose':!![],'locals':{'musiconhold':_0x58e616[_0x397790(0x23ee)],'mohSound':_0x22e487,'mohSounds':_0x58e616[_0x397790(0x2536)][_0x397790(0x19c7)],'license':null,'setting':null,'crudPermissions':_0x58e616[_0x397790(0x2514)]}});}function _0x51bafc(_0x3cd34a){const _0x255eb0=_0x5b8495;_0x1a5264[_0x255eb0(0x7bd)]['removeSound']({'id':_0x598e18[_0x255eb0(0x16a)]['id'],'id2':_0x3cd34a['id']})[_0x255eb0(0x2945)][_0x255eb0(0x146b)](function(){const _0x19ca1d=_0x255eb0;_0x3f65c0()[_0x19ca1d(0x2640)](_0x58e616[_0x19ca1d(0x2536)][_0x19ca1d(0x19c7)],{'id':_0x3cd34a['id']}),_0x58e616[_0x19ca1d(0x2536)][_0x19ca1d(0x51c)]-=0x1,!_0x58e616[_0x19ca1d(0x2536)]['rows'][_0x19ca1d(0x402)]&&_0x5928c6(),_0x129e14[_0x19ca1d(0x1c75)]({'title':_0x19ca1d(0x1501),'msg':_0x3cd34a[_0x19ca1d(0x19eb)]?_0x3cd34a['name']+_0x19ca1d(0x23e3):''});})[_0x255eb0(0x129e)](function(_0x22141a){const _0xdb8524=_0x255eb0;if(_0x22141a['data']&&_0x22141a['data'][_0xdb8524(0xcef)]&&_0x22141a[_0xdb8524(0x524)][_0xdb8524(0xcef)][_0xdb8524(0x402)]){_0x58e616[_0xdb8524(0xcef)]=_0x22141a[_0xdb8524(0x524)][_0xdb8524(0xcef)]||[{'message':_0x22141a[_0xdb8524(0xd5f)](),'type':_0xdb8524(0xb49)}];for(let _0x94040e=0x0;_0x94040e<_0x22141a[_0xdb8524(0x524)][_0xdb8524(0xcef)][_0xdb8524(0x402)];_0x94040e++){_0x129e14['error']({'title':_0x22141a[_0xdb8524(0x524)][_0xdb8524(0xcef)][_0x94040e][_0xdb8524(0x1142)],'msg':_0x22141a[_0xdb8524(0x524)]['errors'][_0x94040e][_0xdb8524(0x7fd)]});}}else _0x129e14['error']({'title':_0x22141a['status']?_0xdb8524(0x262a)+_0x22141a[_0xdb8524(0x107b)]+'\x20-\x20'+_0x22141a[_0xdb8524(0x167f)]:'SYSTEM:GETvoiceMusicOnHold','msg':_0x22141a['data']?JSON[_0xdb8524(0x10bb)](_0x22141a[_0xdb8524(0x524)]['message']):_0x22141a['message']||_0x22141a[_0xdb8524(0xd5f)]()});});}function _0x4e94db(){const _0x24d544=_0x5b8495,_0xdc78a5=angular['copy'](_0x58e616[_0x24d544(0x407)]);return _0x58e616[_0x24d544(0x407)]=[],_0xdc78a5;}function _0x112243(_0x3e1629){const _0x3501cf=_0x5b8495,_0x21516d=_0x2888a3[_0x3501cf(0x1e8a)]()[_0x3501cf(0x1189)](_0x3501cf(0x79e))[_0x3501cf(0x1cbe)](_0x3501cf(0x16d3)+_0x58e616[_0x3501cf(0x407)][_0x3501cf(0x402)]+_0x3501cf(0x2452)+_0x3501cf(0xe01))[_0x3501cf(0x4bd)](_0x3501cf(0x83b))['targetEvent'](_0x3e1629)['ok']('OK')[_0x3501cf(0x6c3)](_0x3501cf(0x39a));_0x2888a3[_0x3501cf(0x2615)](_0x21516d)[_0x3501cf(0x146b)](function(){const _0x48f290=_0x3501cf;_0x58e616['selectedMusicOnHoldMohSounds'][_0x48f290(0x1df5)](function(_0x561bfb){_0x51bafc(_0x561bfb);}),_0x58e616[_0x48f290(0x407)]=[];});}let _0x3feab6=!![],_0x3f6639=0x1;_0x47a11b[_0x5b8495(0x21e8)](_0x5b8495(0x117f),function(_0x426b22,_0x1953b7){const _0xaf6eca=_0x5b8495;_0x3feab6?_0x49a392(function(){_0x3feab6=![];}):(!_0x1953b7&&(_0x3f6639=_0x58e616['query']['page']),_0x426b22!==_0x1953b7&&(_0x58e616['query']['page']=0x1),!_0x426b22&&(_0x58e616['query'][_0xaf6eca(0x844)]=_0x3f6639),_0x5928c6());});}const _0x33dfc9=_0x11a8a1;;_0xd74d2e['$inject']=[_0x313a4d(0x910),_0x313a4d(0x1862),_0x313a4d(0xd08),_0x313a4d(0x10e8),'$q',_0x313a4d(0x214b),_0x313a4d(0x1fe4),_0x313a4d(0x1f76),_0x313a4d(0x51f),_0x313a4d(0x247f),_0x313a4d(0xa87),_0x313a4d(0x2690),_0x313a4d(0x15b9),_0x313a4d(0x2514)];function _0xd74d2e(_0x4f7fb7,_0x31297e,_0x4f958a,_0x29f082,_0x59204a,_0x18c07e,_0x4ac567,_0x103f1a,_0x69c83c,_0x1f4f03,_0x37b6f1,_0x675323,_0x2e9b7e,_0x7df518){const _0x19052b=_0x313a4d,_0x631c4e=this;_0x631c4e[_0x19052b(0x2321)]=_0x37b6f1[_0x19052b(0xb12)](),_0x631c4e[_0x19052b(0xcef)]=[],_0x631c4e[_0x19052b(0x15b9)]=_0x2e9b7e,_0x631c4e[_0x19052b(0x2690)]=_0x675323,_0x631c4e['crudPermissions']=_0x7df518,_0x631c4e['hasModulePermissions']={},_0x631c4e[_0x19052b(0x2251)]=_0x631c4e[_0x19052b(0x15b9)]&&_0x631c4e['setting'][_0x19052b(0x976)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x631c4e['title']='VOICE.EDIT_MOHSOUND',_0x631c4e[_0x19052b(0x51f)]=angular[_0x19052b(0x235a)](_0x69c83c),_0x631c4e['mohSounds']=_0x103f1a,_0x631c4e[_0x19052b(0xda2)]=![];!_0x631c4e[_0x19052b(0x51f)]&&(_0x631c4e[_0x19052b(0x51f)]={},_0x631c4e[_0x19052b(0x1189)]=_0x19052b(0x7cf),_0x631c4e[_0x19052b(0xda2)]=!![]);_0x31297e[_0x19052b(0x16a)]['id']&&(_0x631c4e[_0x19052b(0x51f)]['VoiceMusicOnHoldId']=_0x31297e[_0x19052b(0x16a)]['id']);_0x631c4e[_0x19052b(0x1c53)]=_0x4099a5,_0x631c4e[_0x19052b(0x1ab)]=_0x2b9fe9,_0x631c4e[_0x19052b(0x144b)]=_0x1dd92c,_0x631c4e[_0x19052b(0xe73)]=_0x423cc9,_0x631c4e[_0x19052b(0x13f3)]=_0x217366,_0x37b6f1['hasRole'](_0x19052b(0x174b))?_0x1f4f03[_0x19052b(0x126d)][_0x19052b(0x16b4)]({'fields':_0x19052b(0x7a7),'sort':'name'})[_0x19052b(0x2945)][_0x19052b(0x146b)](function(_0x372ae2){const _0x524ad6=_0x19052b;_0x631c4e[_0x524ad6(0xb02)]=_0x372ae2[_0x524ad6(0x19c7)]||[];})[_0x19052b(0x129e)](function(_0x155db0){const _0x15953c=_0x19052b;_0x4ac567[_0x15953c(0x1980)]({'title':_0x155db0['status']?_0x15953c(0x262a)+_0x155db0[_0x15953c(0x107b)]+_0x15953c(0x1315)+_0x155db0[_0x15953c(0x167f)]:_0x15953c(0xd4a),'msg':_0x155db0[_0x15953c(0x524)]?JSON[_0x15953c(0x10bb)](_0x155db0['data']):_0x155db0[_0x15953c(0xd5f)]()});}):_0x1f4f03['sound'][_0x19052b(0x16b4)]({'fields':'id,name','sort':_0x19052b(0x19eb)})[_0x19052b(0x2945)][_0x19052b(0x146b)](function(_0x52db00){const _0x350dbf=_0x19052b;_0x631c4e[_0x350dbf(0xb02)]=_0x52db00[_0x350dbf(0x19c7)]||[];})[_0x19052b(0x146b)](function(){const _0x5172e8=_0x19052b;return _0x1f4f03[_0x5172e8(0x1366)][_0x5172e8(0x16b4)]({'userProfileId':_0x631c4e[_0x5172e8(0x2321)][_0x5172e8(0x209a)],'sectionId':0x3ef})[_0x5172e8(0x2945)];})[_0x19052b(0x146b)](function(_0x4fd571){const _0x26ca50=_0x19052b,_0x41745c=_0x4fd571&&_0x4fd571[_0x26ca50(0x19c7)]?_0x4fd571[_0x26ca50(0x19c7)][0x0]:null;if(!_0x41745c){const _0x12a618=[];let _0x3cac4b=null;_0x631c4e['mohSound']&&(_0x3cac4b=_0x3f65c0()[_0x26ca50(0xc84)](_0x631c4e[_0x26ca50(0xb02)],{'id':Number(_0x631c4e[_0x26ca50(0x51f)]['id'])}));for(let _0x12d1b0=0x0;_0x12d1b0<_0x631c4e[_0x26ca50(0xb02)][_0x26ca50(0x402)];_0x12d1b0++){_0x3cac4b&&_0x631c4e[_0x26ca50(0xb02)][_0x12d1b0]['id']===_0x3cac4b['id']&&(_0x631c4e[_0x26ca50(0xb02)][_0x12d1b0][_0x26ca50(0x8ff)]=![],_0x12a618[_0x26ca50(0x1f47)](_0x631c4e['sounds'][_0x12d1b0]));}_0x631c4e[_0x26ca50(0xb02)]=_0x12a618;}else{if(!_0x41745c['autoAssociation'])return _0x1f4f03[_0x26ca50(0xdcc)][_0x26ca50(0x16b4)]({'sectionId':_0x41745c['id']})[_0x26ca50(0x2945)][_0x26ca50(0x146b)](function(_0x451523){const _0x3161f4=_0x26ca50,_0x5239da=_0x3f65c0()['map'](_0x451523[_0x3161f4(0x19c7)],function(_0x3e894f){const _0xe0eaec=_0x3161f4;return _0x3f65c0()[_0xe0eaec(0xc84)](_0x631c4e[_0xe0eaec(0xb02)],{'id':_0x3e894f['resourceId']});});let _0xdaf9a6=null;_0x631c4e[_0x3161f4(0x51f)]&&(_0xdaf9a6=_0x3f65c0()[_0x3161f4(0xc84)](_0x631c4e[_0x3161f4(0xb02)],{'id':Number(_0x631c4e[_0x3161f4(0x51f)]['id'])}));if(_0xdaf9a6&&!_0x3f65c0()['some'](_0x5239da,['id',_0xdaf9a6['id']])){const _0x137cda=_0x3f65c0()['find'](_0x631c4e[_0x3161f4(0xb02)],{'id':_0xdaf9a6['id']});_0x137cda['canSelect']=![],_0x5239da[_0x3161f4(0x1f47)](_0x137cda);}_0x631c4e['sounds']=_0x5239da;});}})[_0x19052b(0x129e)](function(_0x5f37f0){const _0x36f2db=_0x19052b;_0x4ac567[_0x36f2db(0x1980)]({'title':_0x5f37f0[_0x36f2db(0x107b)]?_0x36f2db(0x262a)+_0x5f37f0[_0x36f2db(0x107b)]+_0x36f2db(0x1315)+_0x5f37f0['statusText']:_0x36f2db(0x2682),'msg':_0x5f37f0[_0x36f2db(0x524)]?JSON['stringify'](_0x5f37f0['data']):_0x5f37f0[_0x36f2db(0xd5f)]()});});function _0x4099a5(){const _0x53d868=_0x19052b;_0x631c4e[_0x53d868(0xcef)]=[],_0x1f4f03[_0x53d868(0x7bd)][_0x53d868(0x1bd3)]({'id':_0x31297e[_0x53d868(0x16a)]['id']},_0x631c4e[_0x53d868(0x51f)])[_0x53d868(0x2945)][_0x53d868(0x146b)](function(_0x8f3aa){const _0xfb1411=_0x53d868;_0x631c4e[_0xfb1411(0x1f76)]['unshift'](_0x8f3aa[_0xfb1411(0x2488)]()),_0x4ac567[_0xfb1411(0x1c75)]({'title':'MohSound\x20properly\x20created','msg':_0x631c4e['mohSound'][_0xfb1411(0x19eb)]?_0x631c4e[_0xfb1411(0x51f)]['name']+'\x20has\x20been\x20created!':''}),_0x217366(_0x8f3aa);})['catch'](function(_0x2281f7){const _0x5d1b45=_0x53d868;if(_0x2281f7[_0x5d1b45(0x524)]&&_0x2281f7['data'][_0x5d1b45(0xcef)]&&_0x2281f7[_0x5d1b45(0x524)][_0x5d1b45(0xcef)][_0x5d1b45(0x402)]){_0x631c4e[_0x5d1b45(0xcef)]=_0x2281f7[_0x5d1b45(0x524)][_0x5d1b45(0xcef)]||[{'message':_0x2281f7['toString'](),'type':_0x5d1b45(0x12bd)}];for(let _0x3a39f4=0x0;_0x3a39f4<_0x2281f7[_0x5d1b45(0x524)][_0x5d1b45(0xcef)][_0x5d1b45(0x402)];_0x3a39f4+=0x1){_0x4ac567['error']({'title':_0x2281f7['data'][_0x5d1b45(0xcef)][_0x3a39f4][_0x5d1b45(0x1142)],'msg':_0x2281f7['data']['errors'][_0x3a39f4]['message']});}}else _0x4ac567[_0x5d1b45(0x1980)]({'title':_0x2281f7[_0x5d1b45(0x107b)]?'API:'+_0x2281f7[_0x5d1b45(0x107b)]+_0x5d1b45(0x1315)+_0x2281f7['statusText']:_0x5d1b45(0x12bd),'msg':_0x2281f7[_0x5d1b45(0x524)]?JSON[_0x5d1b45(0x10bb)](_0x2281f7[_0x5d1b45(0x524)][_0x5d1b45(0x7fd)]):_0x2281f7['toString']()});});}function _0x2b9fe9(){const _0x36a837=_0x19052b;_0x631c4e['errors']=[],_0x1f4f03[_0x36a837(0x7bd)][_0x36a837(0x18e1)]({'id':_0x631c4e['mohSound']['id']},_0x631c4e[_0x36a837(0x51f)])['$promise']['then'](function(_0x327ca9){const _0x393635=_0x36a837,_0xfd08b3=_0x3f65c0()[_0x393635(0xc84)](_0x631c4e[_0x393635(0x1f76)],{'id':_0x327ca9['id']});_0xfd08b3&&_0x3f65c0()['merge'](_0xfd08b3,_0x3f65c0()[_0x393635(0x40e)](_0x327ca9[_0x393635(0x2488)](),_0x3f65c0()[_0x393635(0x627)](_0xfd08b3))),_0x4ac567[_0x393635(0x1c75)]({'title':_0x393635(0x711),'msg':_0x631c4e[_0x393635(0x51f)][_0x393635(0x19eb)]?_0x631c4e[_0x393635(0x51f)][_0x393635(0x19eb)]+_0x393635(0x24db):''}),_0x217366(_0x327ca9);})[_0x36a837(0x129e)](function(_0x39de3f){const _0x16ce1d=_0x36a837;if(_0x39de3f[_0x16ce1d(0x524)]&&_0x39de3f[_0x16ce1d(0x524)][_0x16ce1d(0xcef)]&&_0x39de3f['data'][_0x16ce1d(0xcef)]['length']){_0x631c4e['errors']=_0x39de3f['data'][_0x16ce1d(0xcef)]||[{'message':_0x39de3f[_0x16ce1d(0xd5f)](),'type':_0x16ce1d(0x42c)}];for(let _0x1ab447=0x0;_0x1ab447<_0x39de3f[_0x16ce1d(0x524)]['errors'][_0x16ce1d(0x402)];_0x1ab447++){_0x4ac567[_0x16ce1d(0x1980)]({'title':_0x39de3f[_0x16ce1d(0x524)][_0x16ce1d(0xcef)][_0x1ab447][_0x16ce1d(0x1142)],'msg':_0x39de3f['data']['errors'][_0x1ab447]['message']});}}else _0x4ac567[_0x16ce1d(0x1980)]({'title':_0x39de3f[_0x16ce1d(0x107b)]?'API:'+_0x39de3f[_0x16ce1d(0x107b)]+_0x16ce1d(0x1315)+_0x39de3f[_0x16ce1d(0x167f)]:_0x16ce1d(0x42c),'msg':_0x39de3f[_0x16ce1d(0x524)]?JSON[_0x16ce1d(0x10bb)](_0x39de3f['data'][_0x16ce1d(0x7fd)]):_0x39de3f[_0x16ce1d(0xd5f)]()});});}function _0x1dd92c(_0x2723e8){const _0x3a74d4=_0x19052b;_0x631c4e['errors']=[];const _0x2b1f88=_0x29f082[_0x3a74d4(0x1e8a)]()[_0x3a74d4(0x1189)](_0x3a74d4(0x1d64))[_0x3a74d4(0x80f)]('The\x20mohSound\x20will\x20be\x20deleted.')['ariaLabel'](_0x3a74d4(0x5a4))['ok']('Delete')['cancel'](_0x3a74d4(0xcf0))[_0x3a74d4(0x1f27)](_0x2723e8);_0x29f082[_0x3a74d4(0x2615)](_0x2b1f88)['then'](function(){const _0xe9e4f8=_0x3a74d4;_0x1f4f03['voiceMusicOnHold'][_0xe9e4f8(0x1fac)]({'id':_0x631c4e[_0xe9e4f8(0x51f)]['id']})[_0xe9e4f8(0x2945)][_0xe9e4f8(0x146b)](function(){const _0x58973f=_0xe9e4f8;_0x3f65c0()[_0x58973f(0x2640)](_0x631c4e[_0x58973f(0x1f76)],{'id':_0x631c4e['mohSound']['id']}),_0x4ac567[_0x58973f(0x1c75)]({'title':_0x58973f(0x1234),'msg':(_0x631c4e[_0x58973f(0x51f)]['name']||'mohSound')+_0x58973f(0x23e3)}),_0x217366(_0x631c4e['mohSound']);})[_0xe9e4f8(0x129e)](function(_0x3bdc8d){const _0x5f1dde=_0xe9e4f8;if(_0x3bdc8d['data']&&_0x3bdc8d[_0x5f1dde(0x524)]['errors']&&_0x3bdc8d[_0x5f1dde(0x524)][_0x5f1dde(0xcef)][_0x5f1dde(0x402)]){_0x631c4e[_0x5f1dde(0xcef)]=_0x3bdc8d[_0x5f1dde(0x524)]['errors']||[{'message':_0x3bdc8d[_0x5f1dde(0xd5f)](),'type':_0x5f1dde(0xf23)}];for(let _0x4a6a3d=0x0;_0x4a6a3d<_0x3bdc8d[_0x5f1dde(0x524)][_0x5f1dde(0xcef)][_0x5f1dde(0x402)];_0x4a6a3d++){_0x4ac567['error']({'title':_0x3bdc8d[_0x5f1dde(0x524)][_0x5f1dde(0xcef)][_0x4a6a3d]['type'],'msg':_0x3bdc8d[_0x5f1dde(0x524)]['errors'][_0x4a6a3d]['message']});}}else _0x4ac567[_0x5f1dde(0x1980)]({'title':_0x3bdc8d[_0x5f1dde(0x107b)]?_0x5f1dde(0x262a)+_0x3bdc8d[_0x5f1dde(0x107b)]+_0x5f1dde(0x1315)+_0x3bdc8d[_0x5f1dde(0x167f)]:'api.voiceMusicOnHold.delete','msg':_0x3bdc8d[_0x5f1dde(0x524)]?JSON[_0x5f1dde(0x10bb)](_0x3bdc8d[_0x5f1dde(0x524)][_0x5f1dde(0x7fd)]):_0x3bdc8d[_0x5f1dde(0x7fd)]||_0x3bdc8d[_0x5f1dde(0xd5f)]()});});},function(){});}function _0x423cc9(_0x144ff2){return _0x144ff2===null?undefined:new Date(_0x144ff2);}function _0x217366(_0x13b74b){const _0x30f186=_0x19052b;_0x29f082[_0x30f186(0x2458)](_0x13b74b);}}const _0x3b7890=_0xd74d2e;;_0x5603a0[_0x313a4d(0x11c2)]=[_0x313a4d(0x1862),_0x313a4d(0xd08),'$mdDialog',_0x313a4d(0x4d8),_0x313a4d(0x214b),_0x313a4d(0x2690),_0x313a4d(0x15b9),_0x313a4d(0x247f),_0x313a4d(0x1fe4),'Auth','musiconhold',_0x313a4d(0x1366)];function _0x5603a0(_0x373ea0,_0x10086c,_0x6ce7b,_0x532239,_0x398f46,_0x356e75,_0x5cda09,_0x197cd6,_0x3a40d8,_0x9d3368,_0x14e44c,_0x1f498d){const _0x1ae578=_0x313a4d,_0x41e4c6=this;_0x41e4c6['currentUser']=_0x9d3368[_0x1ae578(0xb12)](),_0x41e4c6[_0x1ae578(0x2690)]=_0x356e75,_0x41e4c6[_0x1ae578(0x15b9)]=_0x5cda09,_0x41e4c6[_0x1ae578(0x2251)]=_0x41e4c6[_0x1ae578(0x15b9)][_0x1ae578(0x976)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x41e4c6[_0x1ae578(0x1002)]=_0x10086c[_0x1ae578(0x2414)]()+_0x1ae578(0xb0e)+_0x10086c[_0x1ae578(0x148e)](),_0x41e4c6[_0x1ae578(0x23ee)]=_0x14e44c||_0x373ea0['params'][_0x1ae578(0x23ee)]||{},_0x41e4c6[_0x1ae578(0x1366)]=_0x1f498d&&_0x1f498d[_0x1ae578(0x51c)]==0x1?_0x1f498d[_0x1ae578(0x19c7)][0x0]:null,_0x41e4c6[_0x1ae578(0x2514)]=_0x9d3368[_0x1ae578(0xe60)](_0x41e4c6[_0x1ae578(0x1366)]?_0x41e4c6['userProfileSection'][_0x1ae578(0x2514)]:null),_0x41e4c6[_0x1ae578(0x855)]={},_0x41e4c6['selectedTab']=_0x373ea0[_0x1ae578(0x16a)]['tab']||0x0,_0x41e4c6[_0x1ae578(0x861)]=_0x3a40d8['info'],_0x41e4c6[_0x1ae578(0x51b)]=_0x5d5cfb,_0x41e4c6[_0x1ae578(0xffb)]=_0x20c5f3;function _0x5d5cfb(){const _0x26d571=_0x1ae578;_0x373ea0['go']('app.voice.musiconholds',{},{'reload':_0x26d571(0x1dd8)});}function _0x20c5f3(){const _0x527291=_0x1ae578;_0x197cd6['voiceMusicOnHold']['update']({'id':_0x41e4c6[_0x527291(0x23ee)]['id']},_0x41e4c6[_0x527291(0x23ee)])[_0x527291(0x2945)]['then'](function(){const _0xe9dac5=_0x527291;_0x3a40d8[_0xe9dac5(0x1c75)]({'title':_0xe9dac5(0xf3),'msg':_0x41e4c6[_0xe9dac5(0x23ee)]['name']?_0x41e4c6[_0xe9dac5(0x23ee)][_0xe9dac5(0x19eb)]+'\x20has\x20been\x20updated!':''});})['catch'](function(_0x457b0f){const _0x53a7a6=_0x527291;_0x3a40d8[_0x53a7a6(0x1980)]({'title':_0x457b0f[_0x53a7a6(0x107b)]?'API:'+_0x457b0f[_0x53a7a6(0x107b)]+_0x53a7a6(0x1315)+_0x457b0f[_0x53a7a6(0x167f)]:_0x53a7a6(0xb49),'msg':_0x457b0f['data']?JSON[_0x53a7a6(0x10bb)](_0x457b0f[_0x53a7a6(0x524)]):_0x457b0f[_0x53a7a6(0xd5f)]()});});}}const _0x3a3cdf=_0x5603a0;;const _0x121b12=_0x4acfac['p']+_0x313a4d(0x2792);;_0x297b08[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1aa9),'$state',_0x313a4d(0x15fe),'$mdDialog',_0x313a4d(0x4d8),_0x313a4d(0x1abe),_0x313a4d(0x214b),_0x313a4d(0x19a8),_0x313a4d(0x26b6),_0x313a4d(0x1366),_0x313a4d(0x247f),_0x313a4d(0x216c),_0x313a4d(0x1fe4),_0x313a4d(0xa87),_0x313a4d(0x2690),_0x313a4d(0x15b9)];function _0x297b08(_0x31f561,_0x137d3b,_0x3b969b,_0x3c28fa,_0x42d907,_0x30f32b,_0x58def5,_0x4c13a7,_0x27d0a0,_0x56f49a,_0x4e2101,_0x2cbed5,_0x6938c5,_0x2d8e8e,_0x4ba48e,_0x41ccc7,_0x3d0e7b){const _0x546762=_0x313a4d,_0x50619b=this;_0x50619b['license']=_0x41ccc7,_0x50619b['setting']=_0x3d0e7b,_0x50619b[_0x546762(0x2321)]=_0x4ba48e[_0x546762(0xb12)](),_0x50619b[_0x546762(0x19a8)]=_0x27d0a0||{'count':0x0,'rows':[]},_0x50619b[_0x546762(0x26b6)]=_0x56f49a,_0x50619b['userProfileSection']=_0x4e2101&&_0x4e2101[_0x546762(0x51c)]==0x1?_0x4e2101[_0x546762(0x19c7)][0x0]:null,_0x50619b['crudPermissions']=_0x4ba48e['parseCrudPermissions'](_0x50619b[_0x546762(0x1366)]?_0x50619b[_0x546762(0x1366)][_0x546762(0x2514)]:null),_0x50619b[_0x546762(0x768)]='musiconholds',_0x50619b['listOrder']='',_0x50619b[_0x546762(0x214f)]=null,_0x50619b['selectedMusicOnHolds']=[],_0x50619b[_0x546762(0x1a56)]={'fields':'createdAt,updatedAt,id,name,mode,directory,application,format,sort','defaultEntry':_0x546762(0x1ed8),'limit':0xa,'page':0x1},_0x50619b[_0x546762(0xdc8)]=_0x3f65c0()['keyBy']([{'option':_0x546762(0x1f2),'value':'\x27files\x27'},{'option':_0x546762(0xf21),'value':_0x546762(0x676)}],function(_0x5edce1){const _0x38d128=_0x546762;return _0x3f65c0()[_0x38d128(0x5f4)](_0x5edce1[_0x38d128(0x175d)],new RegExp('\x27','g'),'');}),_0x50619b[_0x546762(0x9d7)]=_0x3f65c0()[_0x546762(0x194)]([{'option':'Random','value':_0x546762(0xb40)},{'option':'Alphabetical','value':_0x546762(0xb33)}],function(_0x19e753){const _0x46d371=_0x546762;return _0x3f65c0()[_0x46d371(0x5f4)](_0x19e753[_0x46d371(0x175d)],new RegExp('\x27','g'),'');}),_0x50619b[_0x546762(0x23f9)]=_0x543adb,_0x50619b[_0x546762(0xf0a)]=_0x2fda70,_0x50619b[_0x546762(0x1c75)]=_0xea870b,_0x50619b['getMusicOnHolds']=_0x506ae0,_0x50619b[_0x546762(0x114a)]=_0x25d651,_0x50619b[_0x546762(0x24e7)]=_0x3db0f9,_0x50619b[_0x546762(0x21a9)]=_0x138147,_0x50619b['deleteSelectedMusicOnHolds']=_0x27b28f,_0x50619b['deselectMusicOnHolds']=_0x5f022d,_0x50619b[_0x546762(0x13a4)]=_0x2f261e;function _0x543adb(_0x12388c){const _0x2c1fd9=_0x546762;_0x3b969b['go']('app.voice.musiconholds.edit',{'id':_0x12388c['id'],'musiconhold':_0x12388c,'crudPermissions':_0x50619b[_0x2c1fd9(0x2514)]});}function _0x2fda70(_0x53e7db,_0x24c242){const _0x223700=_0x546762,_0x2ac338=_0x42d907[_0x223700(0x1e8a)]()[_0x223700(0x1189)](_0x223700(0xdb2)+_0x3f65c0()[_0x223700(0x20d1)]('musiconhold')+'?')[_0x223700(0x1cbe)](_0x223700(0x16d3)+(_0x53e7db[_0x223700(0x19eb)]||_0x223700(0x23ee))+_0x223700(0x252f)+_0x223700(0xe01))[_0x223700(0x4bd)](_0x223700(0xae6))[_0x223700(0x1f27)](_0x24c242)['ok']('OK')[_0x223700(0x6c3)](_0x223700(0x39a));_0x42d907[_0x223700(0x2615)](_0x2ac338)['then'](function(){_0x3db0f9(_0x53e7db);},function(){const _0x56c677=_0x223700;console['log'](_0x56c677(0x39a));});}let _0x1aa9fe=!![],_0x390a64=0x1;_0x31f561[_0x546762(0x21e8)](_0x546762(0x2669),function(_0x1d2695,_0x52166c){const _0x85c5cb=_0x546762;_0x1aa9fe?_0x58def5(function(){_0x1aa9fe=![];}):(!_0x52166c&&(_0x390a64=_0x50619b[_0x85c5cb(0x1a56)]['page']),_0x1d2695!==_0x52166c&&(_0x50619b[_0x85c5cb(0x1a56)][_0x85c5cb(0x844)]=0x1),!_0x1d2695&&(_0x50619b[_0x85c5cb(0x1a56)][_0x85c5cb(0x844)]=_0x390a64),_0x50619b[_0x85c5cb(0x25c)]());});function _0xea870b(_0x3398c1){const _0x4e6d0d=_0x546762;_0x50619b[_0x4e6d0d(0x19a8)]=_0x3398c1||{'count':0x0,'rows':[]};}function _0x506ae0(){const _0xe6952=_0x546762;_0x50619b['query'][_0xe6952(0x145d)]=(_0x50619b['query'][_0xe6952(0x844)]-0x1)*_0x50619b[_0xe6952(0x1a56)][_0xe6952(0x221e)],_0x4ba48e[_0xe6952(0x23e0)](_0xe6952(0x174b))?_0x50619b['promise']=_0x2cbed5['voiceMusicOnHold'][_0xe6952(0x16b4)](_0x50619b['query'],_0xea870b)[_0xe6952(0x2945)]:(_0x50619b[_0xe6952(0x1a56)]['id']=_0x50619b[_0xe6952(0x26b6)]['id'],_0x50619b[_0xe6952(0x1a56)][_0xe6952(0x2146)]=_0xe6952(0x1760),_0x50619b['promise']=_0x2cbed5[_0xe6952(0x26b6)]['getResources'](_0x50619b[_0xe6952(0x1a56)],_0xea870b)[_0xe6952(0x2945)]);}function _0x25d651(_0x51f380,_0x59548a){const _0x5091c5=_0x546762;_0x42d907[_0x5091c5(0x2615)]({'controller':_0x5091c5(0xbc9),'controllerAs':'vm','templateUrl':_0x121b12,'parent':angular[_0x5091c5(0x1853)](_0x30f32b[_0x5091c5(0x2586)]),'targetEvent':_0x51f380,'clickOutsideToClose':!![],'locals':{'musiconhold':_0x59548a,'musiconholds':_0x50619b[_0x5091c5(0x19a8)]['rows'],'license':_0x50619b[_0x5091c5(0x2690)],'setting':_0x50619b[_0x5091c5(0x15b9)],'crudPermissions':_0x50619b[_0x5091c5(0x2514)]}});}function _0x3db0f9(_0x4900cf){const _0x463e4a=_0x546762;_0x2cbed5[_0x463e4a(0x7bd)][_0x463e4a(0x1fac)]({'id':_0x4900cf['id']})[_0x463e4a(0x2945)][_0x463e4a(0x146b)](function(){const _0xdfb77b=_0x463e4a;_0x3f65c0()[_0xdfb77b(0x2640)](_0x50619b[_0xdfb77b(0x19a8)][_0xdfb77b(0x19c7)],{'id':_0x4900cf['id']}),_0x50619b['musiconholds'][_0xdfb77b(0x51c)]-=0x1,!_0x50619b['musiconholds'][_0xdfb77b(0x19c7)][_0xdfb77b(0x402)]&&_0x50619b[_0xdfb77b(0x25c)](),_0x2d8e8e[_0xdfb77b(0x1c75)]({'title':_0x3f65c0()[_0xdfb77b(0x20d1)](_0xdfb77b(0x2c7))+_0xdfb77b(0x201c),'msg':_0x4900cf[_0xdfb77b(0x19eb)]?_0x4900cf[_0xdfb77b(0x19eb)]+'\x20has\x20been\x20deleted!':''});})['catch'](function(_0x3f521c){const _0x3e4ef8=_0x463e4a;if(_0x3f521c[_0x3e4ef8(0x524)]&&_0x3f521c['data'][_0x3e4ef8(0xcef)]&&_0x3f521c[_0x3e4ef8(0x524)][_0x3e4ef8(0xcef)][_0x3e4ef8(0x402)]){_0x50619b[_0x3e4ef8(0xcef)]=_0x3f521c[_0x3e4ef8(0x524)][_0x3e4ef8(0xcef)]||[{'message':_0x3f521c[_0x3e4ef8(0xd5f)](),'type':_0x3e4ef8(0x1e75)}];for(let _0x5078c0=0x0;_0x5078c0<_0x3f521c[_0x3e4ef8(0x524)][_0x3e4ef8(0xcef)]['length'];_0x5078c0++){_0x2d8e8e[_0x3e4ef8(0x1980)]({'title':_0x3f521c[_0x3e4ef8(0x524)][_0x3e4ef8(0xcef)][_0x5078c0]['type'],'msg':_0x3f521c[_0x3e4ef8(0x524)]['errors'][_0x5078c0][_0x3e4ef8(0x7fd)]});}}else _0x2d8e8e[_0x3e4ef8(0x1980)]({'title':_0x3f521c[_0x3e4ef8(0x107b)]?_0x3e4ef8(0x262a)+_0x3f521c['status']+_0x3e4ef8(0x1315)+_0x3f521c[_0x3e4ef8(0x167f)]:_0x3e4ef8(0x1e75),'msg':_0x3f521c[_0x3e4ef8(0x524)]?JSON['stringify'](_0x3f521c['data'][_0x3e4ef8(0x7fd)]):_0x3f521c[_0x3e4ef8(0x7fd)]||_0x3f521c['toString']()});});}function _0x138147(){const _0x98a280=_0x546762,_0x460d6b=angular[_0x98a280(0x235a)](_0x50619b[_0x98a280(0xf22)]);return _0x50619b[_0x98a280(0xf22)]=[],_0x460d6b;}function _0x27b28f(_0x59b72b){const _0x5d10ab=_0x546762,_0x4e6336=_0x42d907[_0x5d10ab(0x1e8a)]()[_0x5d10ab(0x1189)](_0x5d10ab(0xccf))[_0x5d10ab(0x1cbe)](_0x5d10ab(0x16d3)+_0x50619b[_0x5d10ab(0xf22)][_0x5d10ab(0x402)]+_0x5d10ab(0x2452)+_0x5d10ab(0xe01))[_0x5d10ab(0x4bd)](_0x5d10ab(0x2178))[_0x5d10ab(0x1f27)](_0x59b72b)['ok']('OK')[_0x5d10ab(0x6c3)](_0x5d10ab(0x39a));_0x42d907[_0x5d10ab(0x2615)](_0x4e6336)[_0x5d10ab(0x146b)](function(){const _0x4a467b=_0x5d10ab;_0x50619b['selectedMusicOnHolds'][_0x4a467b(0x1df5)](function(_0x47551e){_0x3db0f9(_0x47551e);}),_0x50619b[_0x4a467b(0xf22)]=[];});}function _0x5f022d(){const _0xf3cee0=_0x546762;_0x50619b[_0xf3cee0(0xf22)]=[];}function _0x2f261e(){const _0x6346ba=_0x546762;_0x50619b[_0x6346ba(0xf22)]=_0x50619b[_0x6346ba(0x19a8)]['rows'];}}const _0x554154=_0x297b08;;_0x4d6b3a[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),'$state',_0x313a4d(0xd08),_0x313a4d(0x10e8),'$q','$translate',_0x313a4d(0x1fe4),'outboundroutes',_0x313a4d(0xaa4),_0x313a4d(0x247f),'Auth',_0x313a4d(0x2690),'setting',_0x313a4d(0x2514)];function _0x4d6b3a(_0x493227,_0x21277,_0x2cb64a,_0x4427c6,_0x315890,_0x5b5913,_0x5c137b,_0x51dcd1,_0xae868c,_0x3bcabb,_0x5dca3c,_0x4e9f85,_0x460d95,_0x62a207){const _0x3ee3a3=_0x313a4d,_0x8c442e=this;_0x8c442e[_0x3ee3a3(0x2321)]=_0x5dca3c[_0x3ee3a3(0xb12)](),_0x8c442e[_0x3ee3a3(0xcef)]=[],_0x8c442e['setting']=_0x460d95,_0x8c442e[_0x3ee3a3(0x2690)]=_0x4e9f85,_0x8c442e[_0x3ee3a3(0x2514)]=_0x62a207,_0x8c442e[_0x3ee3a3(0x855)]={},_0x8c442e[_0x3ee3a3(0x2251)]=_0x8c442e[_0x3ee3a3(0x15b9)]&&_0x8c442e['setting'][_0x3ee3a3(0x976)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x8c442e[_0x3ee3a3(0x1189)]=_0x3ee3a3(0x2928),_0x8c442e[_0x3ee3a3(0xaa4)]=angular[_0x3ee3a3(0x235a)](_0xae868c),_0x8c442e[_0x3ee3a3(0x7fb)]=_0x51dcd1,_0x8c442e[_0x3ee3a3(0x1965)]=![],_0x8c442e[_0x3ee3a3(0x15fb)]={'count':0x0,'rows':[]},_0x8c442e[_0x3ee3a3(0x8b0)]=_0x3f65c0()[_0x3ee3a3(0xa6f)](_0x3f65c0()[_0x3ee3a3(0x939)]([{'app':_0x3ee3a3(0x1b4e),'appType':_0x3ee3a3(0x2765),'type':'Outbound','types':[_0x3ee3a3(0xd85),_0x3ee3a3(0x1802),'list'],'fields':[],'isApp':![]},{'app':_0x3ee3a3(0x20fb),'appType':'outboundDial','context':_0x3ee3a3(0x57e),'type':_0x3ee3a3(0x22ce),'icon':'icon-apps','interval':_0x3ee3a3(0x1559),'options':'xX','isApp':!![],'extraApi':[{'name':_0x3ee3a3(0x2433),'route':_0x3ee3a3(0x279f),'filters':{'fields':_0x3ee3a3(0x19eb),'sort':_0x3ee3a3(0x19eb)}},{'name':_0x3ee3a3(0x1b86),'route':_0x3ee3a3(0xa80),'filters':{'fields':_0x3ee3a3(0x19eb),'sort':_0x3ee3a3(0x19eb),'nolimit':!![]}}],'fields':[{'title':_0x3ee3a3(0x13c4),'name':_0x3ee3a3(0x279f),'type':_0x3ee3a3(0x28c6),'values':_0x3ee3a3(0x2433),'value':_0x3ee3a3(0x1845),'option':_0x3ee3a3(0x1845),'required':!![],'param':0x0},{'title':_0x3ee3a3(0x2137),'name':_0x3ee3a3(0x11be),'type':_0x3ee3a3(0xa8d),'ngPattern':_0x3ee3a3(0x2772),'help':!![]},{'title':_0x3ee3a3(0x447),'name':_0x3ee3a3(0x1e12),'type':_0x3ee3a3(0xa8d)},{'title':_0x3ee3a3(0x2331),'name':'tag','type':_0x3ee3a3(0x28c6),'values':_0x3ee3a3(0x1b86),'value':_0x3ee3a3(0x1a96),'option':_0x3ee3a3(0x1a96),'defaultValues':[{'value':_0x3ee3a3(0x7ed),'option':_0x3ee3a3(0x13dd)}]},{'title':_0x3ee3a3(0x5cc),'name':_0x3ee3a3(0xa9c),'type':_0x3ee3a3(0x181),'min':0x0,'param':0x1},{'title':'Options','name':_0x3ee3a3(0xa08),'type':_0x3ee3a3(0xa8d),'param':0x2},{'title':_0x3ee3a3(0xae8),'name':_0x3ee3a3(0x20cc),'type':'text','param':0x3}]},{'app':null,'type':_0x3ee3a3(0x22ce),'appType':'custom','icon':_0x3ee3a3(0x1205),'interval':_0x3ee3a3(0x1559),'isApp':!![],'fields':[{'title':_0x3ee3a3(0x1b64),'name':_0x3ee3a3(0x1873),'type':_0x3ee3a3(0xa8d),'required':!![],'param':0x0},{'title':_0x3ee3a3(0x2357),'name':'appdata','type':_0x3ee3a3(0xa8d),'param':0x1}]}],['app']),{'isApp':![]});!_0x8c442e[_0x3ee3a3(0xaa4)]&&(_0x8c442e[_0x3ee3a3(0xaa4)]={'appdata':_0x3ee3a3(0x98e),'type':_0x3ee3a3(0xc9c),'context':'from-sip','recordingFormat':_0x3ee3a3(0x1642)},_0x8c442e[_0x3ee3a3(0x1189)]=_0x3ee3a3(0x516),_0x8c442e[_0x3ee3a3(0x1965)]=!![]);_0x8c442e[_0x3ee3a3(0x1bde)]=_0x5d6d5d,_0x8c442e[_0x3ee3a3(0x1f17)]=_0x3f4e89,_0x8c442e[_0x3ee3a3(0x2519)]=_0x586bfa,_0x8c442e[_0x3ee3a3(0xe73)]=_0x116700,_0x8c442e[_0x3ee3a3(0x1450)]=_0x4f347a,_0x8c442e['closeDialog']=_0x276435,_0x5dca3c[_0x3ee3a3(0x23e0)](_0x3ee3a3(0x174b))?_0x3bcabb[_0x3ee3a3(0x1b82)][_0x3ee3a3(0x16b4)]({'fields':_0x3ee3a3(0x7a7),'sort':_0x3ee3a3(0x19eb),'nolimit':_0x3ee3a3(0x1185)})['$promise'][_0x3ee3a3(0x146b)](function(_0x174450){const _0x5d35e2=_0x3ee3a3;_0x8c442e['contexts']=_0x174450[_0x5d35e2(0x19c7)]||[];})[_0x3ee3a3(0x129e)](function(_0x43b352){const _0x1ba268=_0x3ee3a3;_0x5c137b[_0x1ba268(0x1980)]({'title':_0x43b352['status']?_0x1ba268(0x262a)+_0x43b352[_0x1ba268(0x107b)]+'\x20-\x20'+_0x43b352[_0x1ba268(0x167f)]:'SYSTEM:GET_CONTEXTS','msg':_0x43b352[_0x1ba268(0x524)]?JSON[_0x1ba268(0x10bb)](_0x43b352[_0x1ba268(0x524)]):_0x43b352['toString']()});}):_0x3bcabb[_0x3ee3a3(0x1b82)]['get']({'fields':_0x3ee3a3(0x7a7),'sort':_0x3ee3a3(0x19eb),'nolimit':'true'})[_0x3ee3a3(0x2945)][_0x3ee3a3(0x146b)](function(_0x311656){const _0x1ce33d=_0x3ee3a3;_0x8c442e[_0x1ce33d(0xfe9)]=_0x311656['rows']||[];})['then'](function(){const _0x351b67=_0x3ee3a3;return _0x3bcabb[_0x351b67(0x1366)]['get']({'userProfileId':_0x8c442e[_0x351b67(0x2321)][_0x351b67(0x209a)],'sectionId':0x195})[_0x351b67(0x2945)];})[_0x3ee3a3(0x146b)](function(_0x4d852f){const _0x9e33ef=_0x3ee3a3,_0x401063=_0x4d852f&&_0x4d852f[_0x9e33ef(0x19c7)]?_0x4d852f[_0x9e33ef(0x19c7)][0x0]:null;if(!_0x401063)return _0x3bcabb[_0x9e33ef(0x1b82)][_0x9e33ef(0x16b4)]({'fields':_0x9e33ef(0x7a7),'sort':'name','nolimit':'true','defaultEntry':0x1})['$promise']['then'](function(_0x9b9843){const _0x373ff1=_0x9e33ef;_0x8c442e[_0x373ff1(0xfe9)]=_0x9b9843['rows']||[];});else{if(!_0x401063['autoAssociation'])return _0x3bcabb[_0x9e33ef(0xdcc)][_0x9e33ef(0x16b4)]({'sectionId':_0x401063['id']})[_0x9e33ef(0x2945)][_0x9e33ef(0x146b)](function(_0x1b97c8){const _0x504d41=_0x9e33ef,_0x2ef4ba=_0x3f65c0()['map'](_0x1b97c8['rows'],function(_0x53bff5){const _0x55ba21=a0_0x3bb9;return _0x3f65c0()['find'](_0x8c442e['contexts'],{'id':_0x53bff5[_0x55ba21(0x18b8)]});});let _0x292ef0=null;_0x8c442e[_0x504d41(0xaa4)]&&(_0x292ef0=_0x3f65c0()[_0x504d41(0xc84)](_0x8c442e['contexts'],{'name':_0x8c442e[_0x504d41(0xaa4)][_0x504d41(0x1ac1)]}));if(_0x292ef0&&!_0x3f65c0()['some'](_0x2ef4ba,['id',_0x292ef0['id']])){const _0x16bdd7=_0x3f65c0()[_0x504d41(0xc84)](_0x8c442e[_0x504d41(0xfe9)],{'id':_0x292ef0['id']});_0x16bdd7[_0x504d41(0x8ff)]=![],_0x2ef4ba[_0x504d41(0x1f47)](_0x16bdd7);}_0x8c442e[_0x504d41(0xfe9)]=_0x2ef4ba;});}})[_0x3ee3a3(0x129e)](function(_0x19b8bf){const _0x163b56=_0x3ee3a3;_0x5c137b[_0x163b56(0x1980)]({'title':_0x19b8bf[_0x163b56(0x107b)]?_0x163b56(0x262a)+_0x19b8bf['status']+_0x163b56(0x1315)+_0x19b8bf[_0x163b56(0x167f)]:_0x163b56(0x155e),'msg':_0x19b8bf['data']?JSON[_0x163b56(0x10bb)](_0x19b8bf[_0x163b56(0x524)]):_0x19b8bf['toString']()});});function _0x5d6d5d(){const _0x176157=_0x3ee3a3;_0x8c442e[_0x176157(0xcef)]=[],_0x3bcabb['voiceExtension'][_0x176157(0x1e3)](_0x8c442e[_0x176157(0xaa4)])[_0x176157(0x2945)][_0x176157(0x146b)](function(_0xc55a91){const _0x3bdc0c=_0x176157;_0x8c442e[_0x3bdc0c(0x7fb)][_0x3bdc0c(0xb3d)](_0xc55a91[_0x3bdc0c(0x2488)]()),_0x5c137b[_0x3bdc0c(0x1c75)]({'title':_0x3bdc0c(0x3f7),'msg':_0x8c442e[_0x3bdc0c(0xaa4)][_0x3bdc0c(0x19eb)]?_0x8c442e[_0x3bdc0c(0xaa4)][_0x3bdc0c(0x19eb)]+_0x3bdc0c(0x1386):''}),_0x276435(_0xc55a91);})[_0x176157(0x129e)](function(_0x4ae20e){const _0x2cb27b=_0x176157;if(_0x4ae20e[_0x2cb27b(0x524)]&&_0x4ae20e[_0x2cb27b(0x524)][_0x2cb27b(0xcef)]&&_0x4ae20e[_0x2cb27b(0x524)][_0x2cb27b(0xcef)][_0x2cb27b(0x402)]){_0x8c442e['errors']=_0x4ae20e['data']['errors']||[{'message':_0x4ae20e[_0x2cb27b(0xd5f)](),'type':_0x2cb27b(0x52e)}];for(let _0x88fc45=0x0;_0x88fc45<_0x4ae20e[_0x2cb27b(0x524)][_0x2cb27b(0xcef)]['length'];_0x88fc45+=0x1){_0x5c137b[_0x2cb27b(0x1980)]({'title':_0x4ae20e['data'][_0x2cb27b(0xcef)][_0x88fc45][_0x2cb27b(0x1142)],'msg':_0x4ae20e[_0x2cb27b(0x524)][_0x2cb27b(0xcef)][_0x88fc45][_0x2cb27b(0x7fd)]});}}else _0x5c137b['error']({'title':_0x4ae20e['status']?_0x2cb27b(0x262a)+_0x4ae20e['status']+_0x2cb27b(0x1315)+_0x4ae20e['statusText']:_0x2cb27b(0x52e),'msg':_0x4ae20e[_0x2cb27b(0x524)]?JSON['stringify'](_0x4ae20e[_0x2cb27b(0x524)][_0x2cb27b(0x7fd)]):_0x4ae20e['toString']()});});}function _0x3f4e89(){const _0x49e208=_0x3ee3a3;_0x8c442e[_0x49e208(0xcef)]=[],_0x3bcabb[_0x49e208(0xd47)]['update']({'id':_0x8c442e[_0x49e208(0xaa4)]['id']},_0x8c442e['outboundroute'])['$promise']['then'](function(_0x9c7125){const _0x49f2be=_0x49e208,_0x2f7841=_0x3f65c0()['find'](_0x8c442e[_0x49f2be(0x7fb)],{'id':_0x9c7125['id']});_0x2f7841&&(_0x3f65c0()[_0x49f2be(0x168d)](_0x2f7841,_0x3f65c0()[_0x49f2be(0x40e)](_0x9c7125[_0x49f2be(0x2488)](),_0x3f65c0()[_0x49f2be(0x627)](_0x2f7841))),_0x3bcabb['voiceExtension']['get']({'sort':'priority','VoiceExtensionId':_0x2f7841['id'],'isApp':!![],'nolimit':!![]})[_0x49f2be(0x2945)][_0x49f2be(0x146b)](function(_0x30535b){_0x8c442e['outboundrouteApps']=_0x30535b,_0x4f347a();})),_0x5c137b[_0x49f2be(0x1c75)]({'title':_0x49f2be(0x1a77),'msg':_0x8c442e['outboundroute'][_0x49f2be(0x19eb)]?_0x8c442e[_0x49f2be(0xaa4)]['name']+'\x20has\x20been\x20saved!':''}),_0x276435(_0x9c7125);})['catch'](function(_0x5a8f1c){const _0x14297c=_0x49e208;if(_0x5a8f1c[_0x14297c(0x524)]&&_0x5a8f1c[_0x14297c(0x524)][_0x14297c(0xcef)]&&_0x5a8f1c[_0x14297c(0x524)][_0x14297c(0xcef)][_0x14297c(0x402)]){_0x8c442e[_0x14297c(0xcef)]=_0x5a8f1c['data'][_0x14297c(0xcef)]||[{'message':_0x5a8f1c[_0x14297c(0xd5f)](),'type':_0x14297c(0x872)}];for(let _0x215cd2=0x0;_0x215cd2<_0x5a8f1c[_0x14297c(0x524)][_0x14297c(0xcef)][_0x14297c(0x402)];_0x215cd2++){_0x5c137b[_0x14297c(0x1980)]({'title':_0x5a8f1c[_0x14297c(0x524)][_0x14297c(0xcef)][_0x215cd2][_0x14297c(0x1142)],'msg':_0x5a8f1c[_0x14297c(0x524)]['errors'][_0x215cd2][_0x14297c(0x7fd)]});}}else _0x5c137b[_0x14297c(0x1980)]({'title':_0x5a8f1c['status']?_0x14297c(0x262a)+_0x5a8f1c[_0x14297c(0x107b)]+_0x14297c(0x1315)+_0x5a8f1c['statusText']:_0x14297c(0x872),'msg':_0x5a8f1c[_0x14297c(0x524)]?JSON[_0x14297c(0x10bb)](_0x5a8f1c['data']['message']):_0x5a8f1c[_0x14297c(0xd5f)]()});});}function _0x586bfa(_0x32e5db){const _0x258e7e=_0x3ee3a3;_0x3bcabb[_0x258e7e(0xc0f)][_0x258e7e(0x16b4)]({'VoiceExtensionId':_0xae868c['id']})['$promise']['then'](function(_0x2c43fa){const _0x3f3fcd=_0x258e7e;if(_0x2c43fa&&_0x2c43fa[_0x3f3fcd(0x19c7)]&&_0x2c43fa[_0x3f3fcd(0x19c7)]['length']>0x0)return _0x5c137b['error']({'title':_0x3f3fcd(0xfa),'msg':_0x3f3fcd(0x2c1)});else{_0x8c442e[_0x3f3fcd(0xcef)]=[];const _0x4be22b=_0x4427c6['confirm']()[_0x3f3fcd(0x1189)](_0x3f3fcd(0x1d64))[_0x3f3fcd(0x80f)]('The\x20outboundroute\x20will\x20be\x20deleted.')[_0x3f3fcd(0x4bd)](_0x3f3fcd(0x1b9c))['ok'](_0x3f3fcd(0x25de))[_0x3f3fcd(0x6c3)](_0x3f3fcd(0xcf0))['targetEvent'](_0x32e5db);_0x4427c6[_0x3f3fcd(0x2615)](_0x4be22b)[_0x3f3fcd(0x146b)](function(){const _0x414caa=_0x3f3fcd;_0x3bcabb[_0x414caa(0xd47)][_0x414caa(0x1fac)]({'id':_0x8c442e[_0x414caa(0xaa4)]['id']})['$promise']['then'](function(){const _0x5eb3c6=_0x414caa;_0x3f65c0()['remove'](_0x8c442e[_0x5eb3c6(0x7fb)],{'id':_0x8c442e['outboundroute']['id']}),_0x5c137b[_0x5eb3c6(0x1c75)]({'title':_0x5eb3c6(0x1258),'msg':(_0x8c442e[_0x5eb3c6(0xaa4)][_0x5eb3c6(0x19eb)]||'outboundroute')+'\x20has\x20been\x20deleted!'}),_0x276435(_0x8c442e[_0x5eb3c6(0xaa4)]);})[_0x414caa(0x129e)](function(_0x1bcec6){const _0x33e2c8=_0x414caa;if(_0x1bcec6['data']&&_0x1bcec6[_0x33e2c8(0x524)]['errors']&&_0x1bcec6[_0x33e2c8(0x524)][_0x33e2c8(0xcef)][_0x33e2c8(0x402)]){_0x8c442e[_0x33e2c8(0xcef)]=_0x1bcec6[_0x33e2c8(0x524)][_0x33e2c8(0xcef)]||[{'message':_0x1bcec6['toString'](),'type':'api.voiceExtension.delete'}];for(let _0x1a7fd3=0x0;_0x1a7fd3<_0x1bcec6[_0x33e2c8(0x524)][_0x33e2c8(0xcef)][_0x33e2c8(0x402)];_0x1a7fd3++){_0x5c137b[_0x33e2c8(0x1980)]({'title':_0x1bcec6['data'][_0x33e2c8(0xcef)][_0x1a7fd3]['type'],'msg':_0x1bcec6[_0x33e2c8(0x524)]['errors'][_0x1a7fd3][_0x33e2c8(0x7fd)]});}}else _0x5c137b[_0x33e2c8(0x1980)]({'title':_0x1bcec6[_0x33e2c8(0x107b)]?'API:'+_0x1bcec6[_0x33e2c8(0x107b)]+_0x33e2c8(0x1315)+_0x1bcec6[_0x33e2c8(0x167f)]:_0x33e2c8(0x277c),'msg':_0x1bcec6[_0x33e2c8(0x524)]?JSON[_0x33e2c8(0x10bb)](_0x1bcec6[_0x33e2c8(0x524)][_0x33e2c8(0x7fd)]):_0x1bcec6['message']||_0x1bcec6[_0x33e2c8(0xd5f)]()});});},function(){});}});}function _0x4f347a(){const _0x579caa=_0x3ee3a3;let _0x2fadf4=0x2,_0x53f1b8=[];_0x53f1b8[_0x579caa(0x1f47)]({'type':'outbound','app':'Set','appdata':'CDR(type)=outbound','context':_0x8c442e[_0x579caa(0xaa4)][_0x579caa(0x1ac1)],'exten':_0x8c442e[_0x579caa(0xaa4)][_0x579caa(0x19b2)],'priority':_0x2fadf4++,'VoiceExtensionId':_0x8c442e[_0x579caa(0xaa4)]['id']}),_0x53f1b8['push']({'type':'outbound','app':'Set','appdata':_0x579caa(0x1e17)+(_0x8c442e[_0x579caa(0xaa4)]['cutdigits']?_0x579caa(0x2147)+_0x8c442e[_0x579caa(0xaa4)]['cutdigits']+'}':'${EXTEN}'),'context':_0x8c442e[_0x579caa(0xaa4)][_0x579caa(0x1ac1)],'exten':_0x8c442e[_0x579caa(0xaa4)][_0x579caa(0x19b2)],'priority':_0x2fadf4++,'VoiceExtensionId':_0x8c442e[_0x579caa(0xaa4)]['id']}),_0x53f1b8[_0x579caa(0x1f47)]({'type':'outbound','app':'Set','appdata':_0x579caa(0x209),'context':_0x8c442e[_0x579caa(0xaa4)][_0x579caa(0x1ac1)],'exten':_0x8c442e[_0x579caa(0xaa4)][_0x579caa(0x19b2)],'priority':_0x2fadf4++,'VoiceExtensionId':_0x8c442e['outboundroute']['id']}),_0x53f1b8['push']({'type':'outbound','app':_0x579caa(0x124f),'appdata':_0x579caa(0x25dc),'context':_0x8c442e['outboundroute']['context'],'exten':_0x8c442e[_0x579caa(0xaa4)][_0x579caa(0x19b2)],'priority':_0x2fadf4++,'VoiceExtensionId':_0x8c442e['outboundroute']['id']}),_0x53f1b8[_0x579caa(0x1f47)]({'type':_0x579caa(0xc9c),'app':'Set','appdata':_0x579caa(0x1486),'context':_0x8c442e['outboundroute'][_0x579caa(0x1ac1)],'exten':_0x8c442e[_0x579caa(0xaa4)][_0x579caa(0x19b2)],'priority':_0x2fadf4++,'VoiceExtensionId':_0x8c442e['outboundroute']['id']}),_0x53f1b8[_0x579caa(0x1f47)]({'type':_0x579caa(0xc9c),'app':'Set','appdata':_0x579caa(0x244c)+_0x8c442e['outboundroute']['id'],'context':_0x8c442e['outboundroute'][_0x579caa(0x1ac1)],'exten':_0x8c442e[_0x579caa(0xaa4)]['exten'],'priority':_0x2fadf4++,'VoiceExtensionId':_0x8c442e[_0x579caa(0xaa4)]['id']});typeof _0x8c442e['outboundroute'][_0x579caa(0x1425)]!==_0x579caa(0x2274)&&_0x8c442e[_0x579caa(0xaa4)]['recordingFormat']!==_0x579caa(0x1642)&&(_0x53f1b8['push']({'type':_0x579caa(0xc9c),'app':_0x579caa(0x124f),'appdata':_0x579caa(0x1ca1),'context':_0x8c442e[_0x579caa(0xaa4)][_0x579caa(0x1ac1)],'exten':_0x8c442e[_0x579caa(0xaa4)][_0x579caa(0x19b2)],'priority':_0x2fadf4++,'VoiceExtensionId':_0x8c442e[_0x579caa(0xaa4)]['id']}),_0x53f1b8[_0x579caa(0x1f47)]({'type':_0x579caa(0xc9c),'app':_0x579caa(0x124f),'appdata':'_XCALLY_MIXMONITOR_FORMAT='+_0x8c442e['outboundroute'][_0x579caa(0x1425)]||0x0,'context':_0x8c442e[_0x579caa(0xaa4)][_0x579caa(0x1ac1)],'exten':_0x8c442e['outboundroute'][_0x579caa(0x19b2)],'priority':_0x2fadf4++,'VoiceExtensionId':_0x8c442e[_0x579caa(0xaa4)]['id']}));for(let _0x38293f=0x0,_0xf9d785=0x0;_0x38293f<_0x8c442e[_0x579caa(0x15fb)][_0x579caa(0x19c7)][_0x579caa(0x402)];_0x38293f++,_0xf9d785=0x0){const _0x4630fe=_0x8c442e[_0x579caa(0x15fb)][_0x579caa(0x19c7)][_0x38293f],_0x1391dd=[],_0x49f7f3=[];_0x4630fe[_0x579caa(0x278f)]=_0x4630fe['interval']!==_0x579caa(0x1559)?[_0x4630fe[_0x579caa(0x2765)]]:_0x4630fe[_0x579caa(0x1ff2)]?_0x3f65c0()['map'](_0x3f65c0()[_0x579caa(0x1dd6)](_0x8c442e[_0x579caa(0x278f)][_0x579caa(0x19c7)],{'IntervalId':_0x4630fe[_0x579caa(0x1ff2)]}),'interval'):[],_0x4630fe[_0x579caa(0x1ac1)]=_0x8c442e['outboundroute'][_0x579caa(0x1ac1)],_0x4630fe[_0x579caa(0x19b2)]=_0x8c442e[_0x579caa(0xaa4)][_0x579caa(0x19b2)];_0x4630fe[_0x579caa(0x1142)]&&(_0x4630fe[_0x579caa(0x1142)]=_0x4630fe[_0x579caa(0x1142)][_0x579caa(0x256e)]());typeof _0x4630fe[_0x579caa(0xa80)]!==_0x579caa(0x2274)&&(_0x4630fe[_0x579caa(0xa80)]&&_0x4630fe['tag']!=='--'&&_0x1391dd[_0x579caa(0x1f47)]({'type':_0x4630fe[_0x579caa(0x1142)][_0x579caa(0x256e)](),'app':_0x579caa(0x124f),'appdata':_0x579caa(0x1b3e)+_0x4630fe[_0x579caa(0xa80)],'context':_0x8c442e['outboundroute'][_0x579caa(0x1ac1)],'exten':_0x8c442e[_0x579caa(0xaa4)][_0x579caa(0x19b2)],'priority':_0x4630fe[_0x579caa(0x278f)][_0x579caa(0x402)]+_0x2fadf4+_0xf9d785++,'VoiceExtensionId':_0x8c442e[_0x579caa(0xaa4)]['id']}));_0x4630fe['callerID']?_0x1391dd[_0x579caa(0x1f47)]({'type':_0x4630fe[_0x579caa(0x1142)]['toLowerCase'](),'app':_0x579caa(0xf74),'appdata':_0x579caa(0xc57)+_0x4630fe[_0x579caa(0x11be)]+')','context':_0x8c442e[_0x579caa(0xaa4)][_0x579caa(0x1ac1)],'exten':_0x8c442e[_0x579caa(0xaa4)]['exten'],'priority':_0x4630fe['intervals'][_0x579caa(0x402)]+_0x2fadf4+_0xf9d785++,'VoiceExtensionId':_0x8c442e['outboundroute']['id']}):_0x1391dd[_0x579caa(0x1f47)]({'type':_0x4630fe[_0x579caa(0x1142)]['toLowerCase'](),'app':'ExecIf','appdata':_0x579caa(0x2562),'context':_0x8c442e[_0x579caa(0xaa4)][_0x579caa(0x1ac1)],'exten':_0x8c442e['outboundroute'][_0x579caa(0x19b2)],'priority':_0x4630fe[_0x579caa(0x278f)][_0x579caa(0x402)]+_0x2fadf4+_0xf9d785++,'VoiceExtensionId':_0x8c442e[_0x579caa(0xaa4)]['id']});for(let _0x50344a=0x0;_0x50344a<_0x4630fe['intervals'][_0x579caa(0x402)];_0x50344a++){const _0x3cc1a6=_0x2fadf4+_0x4630fe[_0x579caa(0x278f)][_0x579caa(0x402)],_0x200ad9=_0x50344a===_0x4630fe[_0x579caa(0x278f)][_0x579caa(0x402)]-0x1?_0x2fadf4+_0x1391dd['length']+_0x49f7f3['length']+0x2:_0x2fadf4+_0x50344a+0x1;_0x1391dd[_0x579caa(0x1f7d)](_0x50344a,0x0,{'type':_0x579caa(0xc9c),'app':_0x579caa(0x2229),'appdata':_0x4630fe['intervals'][_0x50344a]+'?'+_0x8c442e[_0x579caa(0xaa4)][_0x579caa(0x1ac1)]+_0x579caa(0x2770)+_0x3cc1a6+':'+_0x8c442e[_0x579caa(0xaa4)][_0x579caa(0x1ac1)]+',${EXTEN},'+_0x200ad9,'exten':_0x8c442e['outboundroute'][_0x579caa(0x19b2)],'context':_0x8c442e['outboundroute'][_0x579caa(0x1ac1)],'priority':_0x2fadf4+_0x50344a,'VoiceExtensionId':_0x8c442e[_0x579caa(0xaa4)]['id']});}if(_0x4630fe['appType']==='outboundDial'){const _0x28a39b=_0x3f65c0()[_0x579caa(0xc84)](_0x8c442e[_0x579caa(0x8b0)],{'appType':'outboundDial'});if(_0x28a39b&&_0x28a39b[_0x579caa(0x2867)]){const _0x325060={},_0x218b6f=_0x4630fe[_0x579caa(0x168a)][_0x579caa(0x10c8)](','),_0x37eb92=[];for(let _0x3fd9e1=0x0,_0x12aef0=_0x28a39b[_0x579caa(0x2867)][_0x579caa(0x402)];_0x3fd9e1<_0x12aef0;_0x3fd9e1++){if(typeof _0x28a39b[_0x579caa(0x2867)][_0x3fd9e1][_0x579caa(0x26d4)]!==_0x579caa(0x2274))switch(_0x28a39b[_0x579caa(0x2867)][_0x3fd9e1]['name']){case _0x579caa(0x279f):_0x325060[_0x579caa(0x279f)]=_0x218b6f[_0x28a39b[_0x579caa(0x2867)][_0x3fd9e1]['param']][_0x579caa(0x10c8)]('/')[0x1],_0x325060[_0x579caa(0x1d55)]=_0x218b6f[_0x28a39b[_0x579caa(0x2867)][_0x3fd9e1]['param']][_0x579caa(0x10c8)]('/')[0x2],_0x325060['prefix']=_0x325060[_0x579caa(0x1d55)]?_0x325060[_0x579caa(0x1d55)][_0x579caa(0x10c8)]('$')[0x0]:undefined,_0x325060['phone']=_0x8c442e[_0x579caa(0xaa4)][_0x579caa(0x1274)]?(_0x325060[_0x579caa(0x1e12)]||'')+_0x579caa(0x2147)+_0x8c442e[_0x579caa(0xaa4)]['cutdigits']+'}':(_0x325060[_0x579caa(0x1e12)]||'')+'${EXTEN}',_0x37eb92[_0x28a39b[_0x579caa(0x2867)][_0x3fd9e1][_0x579caa(0x26d4)]]=['SIP',_0x325060['trunk'],_0x325060[_0x579caa(0x1d55)]][_0x579caa(0xb47)]('/');break;case _0x579caa(0xa08):_0x325060['options']=_0x218b6f[_0x28a39b[_0x579caa(0x2867)][_0x3fd9e1][_0x579caa(0x26d4)]];_0x8c442e[_0x579caa(0xaa4)]['recordingFormat']!==_0x579caa(0x1642)?_0x325060[_0x579caa(0xa08)][_0x579caa(0x172b)](_0x579caa(0x1ea4))<0x0&&(_0x325060[_0x579caa(0xa08)]+=_0x579caa(0x1ea4)):_0x325060[_0x579caa(0xa08)]=_0x325060[_0x579caa(0xa08)]['replace']('U(xcally-mixmonitor-context)','');_0x37eb92[_0x28a39b[_0x579caa(0x2867)][_0x3fd9e1][_0x579caa(0x26d4)]]=_0x325060[_0x579caa(0xa08)];break;default:_0x37eb92[_0x28a39b['fields'][_0x3fd9e1]['param']]=_0x218b6f[_0x28a39b[_0x579caa(0x2867)][_0x3fd9e1][_0x579caa(0x26d4)]];}}_0x4630fe[_0x579caa(0x168a)]=_0x37eb92[_0x579caa(0xb47)](',');}}_0x4630fe[_0x579caa(0xa6a)]=_0x1391dd[_0x579caa(0x402)]?_0x3f65c0()[_0x579caa(0x22f2)](_0x1391dd)['priority']+0x1:_0x2fadf4,_0x2fadf4=(_0x49f7f3[_0x579caa(0x402)]?_0x3f65c0()[_0x579caa(0x22f2)](_0x49f7f3)['priority']:_0x4630fe[_0x579caa(0xa6a)])+0x1,_0x53f1b8=_0x3f65c0()[_0x579caa(0x163c)](_0x53f1b8,_0x1391dd,[_0x4630fe],_0x49f7f3);}_0x53f1b8[_0x579caa(0x1f47)]({'type':_0x579caa(0xc9c),'app':'Hangup','exten':_0x8c442e[_0x579caa(0xaa4)][_0x579caa(0x19b2)],'context':_0x8c442e[_0x579caa(0xaa4)][_0x579caa(0x1ac1)],'priority':_0x2fadf4,'VoiceExtensionId':_0x8c442e[_0x579caa(0xaa4)]['id']}),_0x3bcabb['voiceExtension']['addApplications']({'id':_0x8c442e[_0x579caa(0xaa4)]['id']},_0x3f65c0()[_0x579caa(0x939)](_0x53f1b8,_0x579caa(0xa6a)))['$promise']['then'](function(_0x2a8c88){const _0x4a208c=_0x579caa;_0x8c442e[_0x4a208c(0x15fb)][_0x4a208c(0x19c7)]=_0x2a8c88[_0x4a208c(0x19c7)];})[_0x579caa(0x129e)](function(_0x3a1b32){console['error'](_0x3a1b32);});}function _0x116700(_0x1b3637){return _0x1b3637===null?undefined:new Date(_0x1b3637);}function _0x276435(_0x1f8767){const _0x329eb8=_0x3ee3a3;_0x4427c6[_0x329eb8(0x2458)](_0x1f8767);}}const _0x131b07=_0x4d6b3a;;const _0x58efd7=_0x4acfac['p']+_0x313a4d(0x134e);;const _0x3ea278=_0x4acfac['p']+_0x313a4d(0xc6a);;const _0x151dad=_0x4acfac['p']+_0x313a4d(0x341);;_0x2fa57f[_0x313a4d(0x11c2)]=[_0x313a4d(0x247f),'$mdDialog',_0x313a4d(0x4d8),_0x313a4d(0x1fe4),_0x313a4d(0x279d),'$scope',_0x313a4d(0xa87)];const _0x1873e5={'custom':_0x58efd7,'interval':_0x3ea278,'outbounddial':_0x151dad};function _0x2fa57f(_0x3aa2ec,_0x28e285,_0x35caad,_0x1ecead,_0x16da13,_0x5237f0,_0x28dc1b){const _0x4b3e99=_0x313a4d,_0x590b23=this;_0x590b23[_0x4b3e99(0x2321)]=_0x28dc1b[_0x4b3e99(0xb12)](),_0x590b23[_0x4b3e99(0xaa4)]={},_0x590b23[_0x4b3e99(0x15fb)]={'count':0x0,'rows':[]},_0x590b23[_0x4b3e99(0x19fa)]=[],_0x590b23['crudPermissions'],_0x590b23['query']={'sort':'priority'},_0x590b23[_0x4b3e99(0x8b0)]=_0x3f65c0()[_0x4b3e99(0xa6f)](_0x3f65c0()[_0x4b3e99(0x939)]([{'app':_0x4b3e99(0x1b4e),'appType':_0x4b3e99(0x2765),'type':_0x4b3e99(0x22ce),'types':[_0x4b3e99(0xd85),_0x4b3e99(0x1802),_0x4b3e99(0x25f4)],'fields':[],'isApp':![]},{'app':_0x4b3e99(0x20fb),'appType':_0x4b3e99(0x118b),'context':_0x4b3e99(0x57e),'type':_0x4b3e99(0x22ce),'icon':_0x4b3e99(0x1205),'interval':_0x4b3e99(0x1559),'options':'xX','isApp':!![],'extraApi':[{'name':_0x4b3e99(0x2433),'field':{'name':_0x4b3e99(0x279f),'key':'name'},'route':'trunk','filters':{'fields':_0x4b3e99(0x7a7),'sort':'name','nolimit':!![]},'permissions':{'section':0x3f3}},{'name':_0x4b3e99(0x1b86),'field':{'name':'tag','key':_0x4b3e99(0x19eb)},'route':_0x4b3e99(0xa80),'filters':{'fields':_0x4b3e99(0x7a7),'sort':_0x4b3e99(0x19eb),'nolimit':!![]},'permissions':{'section':0x3f0}}],'fields':[{'title':'Trunk','name':_0x4b3e99(0x279f),'type':'apiselect','values':_0x4b3e99(0x2433),'value':_0x4b3e99(0x1845),'option':_0x4b3e99(0x1845),'required':!![],'param':0x0},{'title':_0x4b3e99(0x2137),'name':'callerID','type':_0x4b3e99(0xa8d),'help':!![]},{'title':_0x4b3e99(0x447),'name':_0x4b3e99(0x1e12),'type':'text'},{'title':_0x4b3e99(0x2331),'name':_0x4b3e99(0xa80),'type':_0x4b3e99(0x28c6),'values':_0x4b3e99(0x1b86),'value':_0x4b3e99(0x1a96),'option':_0x4b3e99(0x1a96),'defaultValues':[{'value':_0x4b3e99(0x7ed),'option':_0x4b3e99(0x13dd)}]},{'title':'Timeout','name':_0x4b3e99(0xa9c),'type':_0x4b3e99(0x181),'min':0x0,'param':0x1},{'title':_0x4b3e99(0x23ec),'name':_0x4b3e99(0xa08),'type':_0x4b3e99(0xa8d),'param':0x2},{'title':'Url','name':_0x4b3e99(0x20cc),'type':_0x4b3e99(0xa8d),'param':0x3}]},{'app':null,'type':_0x4b3e99(0x22ce),'appType':'custom','icon':'icon-apps','interval':'*,*,*,*','isApp':!![],'fields':[{'title':_0x4b3e99(0x1b64),'name':_0x4b3e99(0x1873),'type':_0x4b3e99(0xa8d),'required':!![],'param':0x0},{'title':_0x4b3e99(0x2357),'name':'appdata','type':_0x4b3e99(0xa8d),'param':0x1}]}],[_0x4b3e99(0x1873)]),{'isApp':![]}),_0x590b23[_0x4b3e99(0x25f4)]={'group':{'name':_0x4b3e99(0x156c),'pull':'clone'},'animation':0x64,'sort':![]},_0x590b23[_0x4b3e99(0x25fc)]={'group':{'name':_0x4b3e99(0x916),'put':'opt1'},'animation':0x64,'onAdd':function(_0x18decf){const _0xe109d0=_0x4b3e99;_0x1eb145(_0x18decf,_0x18decf[_0xe109d0(0x154d)]);},'onSort':function(){_0x5215bc();}},_0x590b23[_0x4b3e99(0x5aa)]=_0x5c736c,_0x590b23['deleteConfirm']=_0x39cd3b,_0x590b23['getOutboundRouteApps']=_0x53c274,_0x590b23[_0x4b3e99(0xc11)]=_0x1eb145,_0x590b23[_0x4b3e99(0x285b)]=_0x5c95f0,_0x590b23['deleteOutboundRouteApp']=_0x40261f,_0x590b23[_0x4b3e99(0xb7a)]=_0x1cc722,_0x590b23[_0x4b3e99(0x1450)]=_0x5215bc,_0x590b23[_0x4b3e99(0x1c1c)]=_0x401564,_0x590b23[_0x4b3e99(0xa93)]=_0x39f947;function _0x5c736c(_0x562962,_0x6ac11){const _0x31d8c3=_0x4b3e99;_0x590b23[_0x31d8c3(0xaa4)]=_0x562962,_0x590b23['crudPermissions']=typeof _0x6ac11!==_0x31d8c3(0x2274)?_0x6ac11:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x590b23['applications']['disabled']=!_0x590b23[_0x31d8c3(0x2514)][_0x31d8c3(0x15f4)]?!![]:![],_0x16da13['on']('voiceExtension:update',_0x590b23[_0x31d8c3(0xa93)]),_0x590b23[_0x31d8c3(0x1a56)][_0x31d8c3(0x1f3f)]=_0x562962['id'],_0x590b23['query'][_0x31d8c3(0x16f6)]=!![],_0x590b23[_0x31d8c3(0x1a56)][_0x31d8c3(0x6c5)]=!![],_0x590b23[_0x31d8c3(0x107f)](),_0x590b23[_0x31d8c3(0x1c1c)]();}function _0x39f947(_0x3dc90a){const _0xfaa101=_0x4b3e99;_0x3dc90a[_0xfaa101(0x1f3f)]===_0x590b23['outboundroute']['id']&&_0x5215bc(!![]);}function _0x39cd3b(_0x3c80c3,_0x597dc8,_0x583183){const _0x4d7606=_0x4b3e99,_0x4dc6c0=_0x28e285[_0x4d7606(0x1e8a)]()['title'](_0x4d7606(0x1058))[_0x4d7606(0x1cbe)](_0x4d7606(0x16d3)+_0x3c80c3['app']+_0x4d7606(0x252f)+_0x4d7606(0xe01))[_0x4d7606(0x4bd)]('delete\x20application')[_0x4d7606(0x1f27)](_0x583183)['ok']('OK')[_0x4d7606(0x6c3)](_0x4d7606(0x39a));_0x28e285[_0x4d7606(0x2615)](_0x4dc6c0)[_0x4d7606(0x146b)](function(){const _0x48471a=_0x4d7606;_0x590b23[_0x48471a(0x15fb)][_0x48471a(0x19c7)]['splice'](_0x597dc8,0x1),_0x5215bc();},function(){const _0x200ee9=_0x4d7606;console['log'](_0x200ee9(0x39a));});}function _0x1eb145(_0x3377e3,_0x1d833f){const _0x1ee5e7=_0x4b3e99;if(_0x590b23[_0x1ee5e7(0x15fb)][_0x1ee5e7(0x19c7)][_0x1ee5e7(0x402)]){const _0x1d8ce0=_0x590b23['outboundrouteApps'][_0x1ee5e7(0x19c7)][_0x1d833f]?_0x590b23[_0x1ee5e7(0x15fb)][_0x1ee5e7(0x19c7)][_0x1d833f]:_0x590b23['outboundrouteApps'][_0x1ee5e7(0x19c7)][0x0],_0x6247df=(_0x1d8ce0[_0x1ee5e7(0x8f2)]||_0x1d8ce0[_0x1ee5e7(0x1873)])[_0x1ee5e7(0x256e)]();_0x28e285[_0x1ee5e7(0x2615)]({'controller':'EditoutboundApp'+_0x6247df+_0x1ee5e7(0x76a),'controllerAs':'vm','templateUrl':_0x1873e5[_0x6247df],'parent':angular['element'](_0x35caad[_0x1ee5e7(0x2586)]),'targetEvent':_0x3377e3,'clickOutsideToClose':!![],'locals':{'outboundrouteApp':_0x1d8ce0,'outboundroute':_0x590b23['outboundroute'],'crudPermissions':_0x590b23['crudPermissions']}})[_0x1ee5e7(0x146b)](function(_0x5d17ef){const _0x2d10f1=_0x1ee5e7;_0x5d17ef&&(_0x5d17ef['id']?_0x590b23[_0x2d10f1(0x15fb)][_0x2d10f1(0x19c7)][_0x1d833f]=_0x5d17ef:_0x590b23['outboundrouteApps'][_0x2d10f1(0x19c7)]['splice'](_0x1d833f,0x0,_0x5d17ef),_0x5215bc());})[_0x1ee5e7(0x129e)](function(_0x59438d){const _0x58d62e=_0x1ee5e7;_0x59438d&&_0x1ecead[_0x58d62e(0x1980)]({'title':_0x59438d[_0x58d62e(0x107b)]?_0x58d62e(0x262a)+_0x59438d[_0x58d62e(0x107b)]+_0x58d62e(0x1315)+_0x59438d[_0x58d62e(0x167f)]:_0x58d62e(0x10a0),'msg':_0x59438d['data']?JSON[_0x58d62e(0x10bb)](_0x59438d[_0x58d62e(0x524)]):_0x59438d[_0x58d62e(0xd5f)]()});});}}function _0x5c95f0(_0x34524a,_0x44cda6){const _0x129447=_0x4b3e99;if(_0x590b23[_0x129447(0x15fb)][_0x129447(0x19c7)]['length']){const _0x125189=_0x590b23[_0x129447(0x15fb)][_0x129447(0x19c7)][_0x44cda6]?_0x590b23[_0x129447(0x15fb)][_0x129447(0x19c7)][_0x44cda6]:_0x590b23[_0x129447(0x15fb)]['rows'][0x0];_0x28e285[_0x129447(0x2615)]({'controller':_0x129447(0xaee),'controllerAs':'vm','templateUrl':_0x3ea278,'parent':angular[_0x129447(0x1853)](_0x35caad[_0x129447(0x2586)]),'targetEvent':_0x34524a,'clickOutsideToClose':!![],'locals':{'interval':{'interval':_0x125189[_0x129447(0x2765)],'IntervalId':_0x125189['IntervalId'],'application':!![]},'intervals':[],'crudPermissions':_0x590b23[_0x129447(0x2514)]}})['then'](function(_0xc976a7){const _0x4a24eb=_0x129447;_0xc976a7&&(_0x125189[_0x4a24eb(0x2765)]=_0xc976a7[_0x4a24eb(0x2765)]||_0x4a24eb(0x1559),_0x125189[_0x4a24eb(0x1ff2)]=_0xc976a7[_0x4a24eb(0x1ff2)]||null,_0x5215bc());});}}function _0x5215bc(_0x16ed3a){const _0x37ccb2=_0x4b3e99;let _0x2fb440=0x2,_0x5c3d5c=[];_0x5c3d5c[_0x37ccb2(0x1f47)]({'type':'outbound','app':_0x37ccb2(0x124f),'appdata':_0x37ccb2(0xac4),'context':_0x590b23[_0x37ccb2(0xaa4)][_0x37ccb2(0x1ac1)],'exten':_0x590b23[_0x37ccb2(0xaa4)]['exten'],'priority':_0x2fb440++,'VoiceExtensionId':_0x590b23[_0x37ccb2(0xaa4)]['id']}),_0x5c3d5c[_0x37ccb2(0x1f47)]({'type':_0x37ccb2(0xc9c),'app':_0x37ccb2(0x124f),'appdata':'CDR(destination)='+(_0x590b23[_0x37ccb2(0xaa4)]['cutdigits']?'${EXTEN:'+_0x590b23[_0x37ccb2(0xaa4)][_0x37ccb2(0x1274)]+'}':_0x37ccb2(0x20df)),'context':_0x590b23[_0x37ccb2(0xaa4)]['context'],'exten':_0x590b23[_0x37ccb2(0xaa4)][_0x37ccb2(0x19b2)],'priority':_0x2fb440++,'VoiceExtensionId':_0x590b23[_0x37ccb2(0xaa4)]['id']}),_0x5c3d5c[_0x37ccb2(0x1f47)]({'type':_0x37ccb2(0xc9c),'app':_0x37ccb2(0x124f),'appdata':_0x37ccb2(0x9be)+_0x590b23[_0x37ccb2(0xaa4)]['id'],'context':_0x590b23['outboundroute'][_0x37ccb2(0x1ac1)],'exten':_0x590b23[_0x37ccb2(0xaa4)][_0x37ccb2(0x19b2)],'priority':_0x2fb440++,'VoiceExtensionId':_0x590b23[_0x37ccb2(0xaa4)]['id']});const _0x1fd131=_0x2fb440++;_0x5c3d5c['push']({'type':_0x37ccb2(0xc9c),'app':_0x37ccb2(0xf74),'appdata':_0x37ccb2(0x1ff0)+(_0x1fd131+0x2)+_0x37ccb2(0xf44)+(_0x1fd131+0x1)+')','context':_0x590b23[_0x37ccb2(0xaa4)][_0x37ccb2(0x1ac1)],'exten':_0x590b23[_0x37ccb2(0xaa4)][_0x37ccb2(0x19b2)],'priority':_0x1fd131,'VoiceExtensionId':_0x590b23[_0x37ccb2(0xaa4)]['id']}),_0x5c3d5c[_0x37ccb2(0x1f47)]({'type':_0x37ccb2(0xc9c),'app':_0x37ccb2(0x124f),'appdata':_0x590b23[_0x37ccb2(0xaa4)][_0x37ccb2(0x1274)]?_0x37ccb2(0x2754)+_0x590b23[_0x37ccb2(0xaa4)][_0x37ccb2(0x1274)]+'}':'CDR(prefix)=noprefix','context':_0x590b23[_0x37ccb2(0xaa4)][_0x37ccb2(0x1ac1)],'exten':_0x590b23[_0x37ccb2(0xaa4)][_0x37ccb2(0x19b2)],'priority':_0x2fb440++,'VoiceExtensionId':_0x590b23[_0x37ccb2(0xaa4)]['id']}),_0x5c3d5c[_0x37ccb2(0x1f47)]({'type':_0x37ccb2(0xc9c),'app':'Set','appdata':_0x37ccb2(0x209),'context':_0x590b23['outboundroute'][_0x37ccb2(0x1ac1)],'exten':_0x590b23[_0x37ccb2(0xaa4)][_0x37ccb2(0x19b2)],'priority':_0x2fb440++,'VoiceExtensionId':_0x590b23['outboundroute']['id']}),_0x5c3d5c[_0x37ccb2(0x1f47)]({'type':_0x37ccb2(0xc9c),'app':_0x37ccb2(0x124f),'appdata':_0x37ccb2(0x25dc),'context':_0x590b23[_0x37ccb2(0xaa4)][_0x37ccb2(0x1ac1)],'exten':_0x590b23['outboundroute'][_0x37ccb2(0x19b2)],'priority':_0x2fb440++,'VoiceExtensionId':_0x590b23[_0x37ccb2(0xaa4)]['id']}),_0x5c3d5c['push']({'type':'outbound','app':_0x37ccb2(0x124f),'appdata':'MONITOR_OPTIONS=ab','context':_0x590b23['outboundroute'][_0x37ccb2(0x1ac1)],'exten':_0x590b23['outboundroute'][_0x37ccb2(0x19b2)],'priority':_0x2fb440++,'VoiceExtensionId':_0x590b23[_0x37ccb2(0xaa4)]['id']}),_0x5c3d5c[_0x37ccb2(0x1f47)]({'type':'outbound','app':_0x37ccb2(0x124f),'appdata':_0x37ccb2(0x244c)+_0x590b23[_0x37ccb2(0xaa4)]['id'],'context':_0x590b23[_0x37ccb2(0xaa4)][_0x37ccb2(0x1ac1)],'exten':_0x590b23['outboundroute']['exten'],'priority':_0x2fb440++,'VoiceExtensionId':_0x590b23[_0x37ccb2(0xaa4)]['id']});typeof _0x590b23[_0x37ccb2(0xaa4)][_0x37ccb2(0x1425)]==='undefined'&&_0x590b23[_0x37ccb2(0xaa4)][_0x37ccb2(0x1425)]!=='none'&&(_0x5c3d5c[_0x37ccb2(0x1f47)]({'type':_0x37ccb2(0xc9c),'app':'Set','appdata':_0x37ccb2(0x1ca1),'context':_0x590b23[_0x37ccb2(0xaa4)][_0x37ccb2(0x1ac1)],'exten':_0x590b23[_0x37ccb2(0xaa4)]['exten'],'priority':_0x2fb440++,'VoiceExtensionId':_0x590b23[_0x37ccb2(0xaa4)]['id']}),_0x5c3d5c['push']({'type':'outbound','app':_0x37ccb2(0x124f),'appdata':_0x37ccb2(0x2597)+_0x590b23[_0x37ccb2(0xaa4)]['recordingFormat']||0x0,'context':_0x590b23[_0x37ccb2(0xaa4)][_0x37ccb2(0x1ac1)],'exten':_0x590b23['outboundroute'][_0x37ccb2(0x19b2)],'priority':_0x2fb440++,'VoiceExtensionId':_0x590b23[_0x37ccb2(0xaa4)]['id']}));for(let _0x48cdbb=0x0,_0x40e6e6=0x0;_0x48cdbb<_0x590b23['outboundrouteApps'][_0x37ccb2(0x19c7)][_0x37ccb2(0x402)];_0x48cdbb++,_0x40e6e6=0x0){const _0x5cb9c5=_0x590b23[_0x37ccb2(0x15fb)]['rows'][_0x48cdbb],_0xebde78=[],_0x5422cc=[];_0x5cb9c5[_0x37ccb2(0x278f)]=_0x5cb9c5['interval']!=='*,*,*,*'?[_0x5cb9c5[_0x37ccb2(0x2765)]]:_0x5cb9c5[_0x37ccb2(0x1ff2)]?_0x3f65c0()[_0x37ccb2(0x205)](_0x3f65c0()[_0x37ccb2(0x1dd6)](_0x590b23['intervals']['rows'],{'IntervalId':_0x5cb9c5[_0x37ccb2(0x1ff2)]}),_0x37ccb2(0x2765)):[],_0x5cb9c5['context']=_0x590b23['outboundroute'][_0x37ccb2(0x1ac1)],_0x5cb9c5[_0x37ccb2(0x19b2)]=_0x590b23[_0x37ccb2(0xaa4)]['exten'];_0x5cb9c5['type']&&(_0x5cb9c5[_0x37ccb2(0x1142)]=_0x5cb9c5[_0x37ccb2(0x1142)][_0x37ccb2(0x256e)]());typeof _0x5cb9c5[_0x37ccb2(0xa80)]!==_0x37ccb2(0x2274)&&(_0x5cb9c5[_0x37ccb2(0xa80)]&&_0x5cb9c5[_0x37ccb2(0xa80)]!=='--'&&_0xebde78['push']({'type':_0x5cb9c5['type'][_0x37ccb2(0x256e)](),'app':_0x37ccb2(0x124f),'appdata':_0x37ccb2(0x1b3e)+_0x5cb9c5['tag'],'context':_0x590b23[_0x37ccb2(0xaa4)]['context'],'exten':_0x590b23[_0x37ccb2(0xaa4)][_0x37ccb2(0x19b2)],'priority':_0x5cb9c5[_0x37ccb2(0x278f)][_0x37ccb2(0x402)]+_0x2fb440+_0x40e6e6++,'VoiceExtensionId':_0x590b23['outboundroute']['id']}));_0x5cb9c5[_0x37ccb2(0x11be)]?_0xebde78[_0x37ccb2(0x1f47)]({'type':_0x5cb9c5[_0x37ccb2(0x1142)][_0x37ccb2(0x256e)](),'app':_0x37ccb2(0xf74),'appdata':'$[${LEN(${PREFIX-CALLERIDALL})}\x20>\x200]?Set(CALLERID(all)=${PREFIX-CALLERIDALL}):Set(CALLERID(all)='+_0x5cb9c5['callerID']+')','context':_0x590b23[_0x37ccb2(0xaa4)][_0x37ccb2(0x1ac1)],'exten':_0x590b23[_0x37ccb2(0xaa4)][_0x37ccb2(0x19b2)],'priority':_0x5cb9c5['intervals'][_0x37ccb2(0x402)]+_0x2fb440+_0x40e6e6++,'VoiceExtensionId':_0x590b23[_0x37ccb2(0xaa4)]['id']}):_0xebde78['push']({'type':_0x5cb9c5[_0x37ccb2(0x1142)][_0x37ccb2(0x256e)](),'app':'ExecIf','appdata':_0x37ccb2(0x2562),'context':_0x590b23[_0x37ccb2(0xaa4)][_0x37ccb2(0x1ac1)],'exten':_0x590b23['outboundroute']['exten'],'priority':_0x5cb9c5[_0x37ccb2(0x278f)][_0x37ccb2(0x402)]+_0x2fb440+_0x40e6e6++,'VoiceExtensionId':_0x590b23[_0x37ccb2(0xaa4)]['id']});for(let _0x51127d=0x0;_0x51127d<_0x5cb9c5[_0x37ccb2(0x278f)][_0x37ccb2(0x402)];_0x51127d++){const _0x2cb174=_0x2fb440+_0x5cb9c5[_0x37ccb2(0x278f)]['length'],_0x9125fc=_0x51127d===_0x5cb9c5[_0x37ccb2(0x278f)][_0x37ccb2(0x402)]-0x1?_0x2fb440+_0xebde78[_0x37ccb2(0x402)]+_0x5422cc[_0x37ccb2(0x402)]+0x2:_0x2fb440+_0x51127d+0x1;_0xebde78['splice'](_0x51127d,0x0,{'type':_0x37ccb2(0xc9c),'app':_0x37ccb2(0x2229),'appdata':_0x5cb9c5[_0x37ccb2(0x278f)][_0x51127d]+'?'+_0x590b23[_0x37ccb2(0xaa4)][_0x37ccb2(0x1ac1)]+_0x37ccb2(0x2770)+_0x2cb174+':'+_0x590b23[_0x37ccb2(0xaa4)][_0x37ccb2(0x1ac1)]+_0x37ccb2(0x2770)+_0x9125fc,'exten':_0x590b23[_0x37ccb2(0xaa4)]['exten'],'context':_0x590b23[_0x37ccb2(0xaa4)]['context'],'priority':_0x2fb440+_0x51127d,'VoiceExtensionId':_0x590b23[_0x37ccb2(0xaa4)]['id']});}if(_0x16ed3a&&_0x5cb9c5[_0x37ccb2(0x8f2)]==='outboundDial'){const _0x4814fc=_0x3f65c0()[_0x37ccb2(0xc84)](_0x590b23[_0x37ccb2(0x8b0)],{'appType':_0x37ccb2(0x118b)});if(_0x4814fc&&_0x4814fc[_0x37ccb2(0x2867)]){const _0x190b01={},_0x2bd1c1=_0x5cb9c5[_0x37ccb2(0x168a)][_0x37ccb2(0x10c8)](','),_0x15b3c5=[];for(let _0x5cd21f=0x0,_0x4dca61=_0x4814fc[_0x37ccb2(0x2867)][_0x37ccb2(0x402)];_0x5cd21f<_0x4dca61;_0x5cd21f++){if(typeof _0x4814fc[_0x37ccb2(0x2867)][_0x5cd21f][_0x37ccb2(0x26d4)]!==_0x37ccb2(0x2274))switch(_0x4814fc[_0x37ccb2(0x2867)][_0x5cd21f][_0x37ccb2(0x19eb)]){case _0x37ccb2(0x279f):_0x190b01[_0x37ccb2(0x279f)]=_0x2bd1c1[_0x4814fc[_0x37ccb2(0x2867)][_0x5cd21f]['param']]['split']('/')[0x1],_0x190b01[_0x37ccb2(0x1d55)]=_0x2bd1c1[_0x4814fc[_0x37ccb2(0x2867)][_0x5cd21f][_0x37ccb2(0x26d4)]][_0x37ccb2(0x10c8)]('/')[0x2],_0x190b01[_0x37ccb2(0x1e12)]=_0x190b01[_0x37ccb2(0x1d55)]?_0x190b01[_0x37ccb2(0x1d55)][_0x37ccb2(0x10c8)]('$')[0x0]:undefined,_0x190b01[_0x37ccb2(0x1d55)]=_0x590b23['outboundroute']['cutdigits']?(_0x190b01[_0x37ccb2(0x1e12)]||'')+'${EXTEN:'+_0x590b23['outboundroute']['cutdigits']+'}':(_0x190b01[_0x37ccb2(0x1e12)]||'')+_0x37ccb2(0x20df),_0x15b3c5[_0x4814fc[_0x37ccb2(0x2867)][_0x5cd21f]['param']]=[_0x37ccb2(0x1783),_0x190b01['trunk'],_0x190b01['phone']]['join']('/');break;case _0x37ccb2(0xa08):_0x190b01['options']=_0x2bd1c1[_0x4814fc['fields'][_0x5cd21f]['param']];_0x590b23[_0x37ccb2(0xaa4)][_0x37ccb2(0x1425)]!=='none'?_0x190b01['options'][_0x37ccb2(0x172b)](_0x37ccb2(0x1ea4))<0x0&&(_0x190b01[_0x37ccb2(0xa08)]+='U(xcally-mixmonitor-context)'):_0x190b01[_0x37ccb2(0xa08)]=_0x190b01[_0x37ccb2(0xa08)]['replace']('U(xcally-mixmonitor-context)','');_0x15b3c5[_0x4814fc[_0x37ccb2(0x2867)][_0x5cd21f][_0x37ccb2(0x26d4)]]=_0x190b01[_0x37ccb2(0xa08)];break;default:_0x15b3c5[_0x4814fc[_0x37ccb2(0x2867)][_0x5cd21f][_0x37ccb2(0x26d4)]]=_0x2bd1c1[_0x4814fc[_0x37ccb2(0x2867)][_0x5cd21f][_0x37ccb2(0x26d4)]];}}_0x5cb9c5[_0x37ccb2(0x168a)]=_0x15b3c5[_0x37ccb2(0xb47)](',');}}_0x5cb9c5[_0x37ccb2(0xa6a)]=_0xebde78['length']?_0x3f65c0()[_0x37ccb2(0x22f2)](_0xebde78)[_0x37ccb2(0xa6a)]+0x1:_0x2fb440,_0x2fb440=(_0x5422cc[_0x37ccb2(0x402)]?_0x3f65c0()['last'](_0x5422cc)[_0x37ccb2(0xa6a)]:_0x5cb9c5[_0x37ccb2(0xa6a)])+0x1,_0x5c3d5c=_0x3f65c0()[_0x37ccb2(0x163c)](_0x5c3d5c,_0xebde78,[_0x5cb9c5],_0x5422cc);}_0x5c3d5c[_0x37ccb2(0x1f47)]({'type':_0x37ccb2(0xc9c),'app':'Hangup','exten':_0x590b23['outboundroute']['exten'],'context':_0x590b23[_0x37ccb2(0xaa4)][_0x37ccb2(0x1ac1)],'priority':_0x2fb440,'VoiceExtensionId':_0x590b23[_0x37ccb2(0xaa4)]['id']}),_0x3aa2ec[_0x37ccb2(0xd47)]['addApplications']({'id':_0x590b23[_0x37ccb2(0xaa4)]['id']},_0x3f65c0()['sortBy'](_0x5c3d5c,'priority'))[_0x37ccb2(0x2945)][_0x37ccb2(0x146b)](function(_0x3f2a62){const _0x43719b=_0x37ccb2;_0x590b23[_0x43719b(0x15fb)][_0x43719b(0x19c7)]=_0x3f2a62[_0x43719b(0x19c7)];})[_0x37ccb2(0x129e)](function(_0x3984ec){const _0x357ebe=_0x37ccb2;console[_0x357ebe(0x1980)](_0x3984ec);});}function _0xbf1a04(_0x156b48){const _0x415b09=_0x4b3e99;_0x590b23[_0x415b09(0x15fb)]=_0x156b48||{'count':0x0,'rows':[]};}function _0x401564(){const _0x41a432=_0x4b3e99;return _0x3aa2ec[_0x41a432(0x2765)]['get']({'fields':'id,interval,IntervalId'})[_0x41a432(0x2945)][_0x41a432(0x146b)](function(_0x362988){const _0x28ccfa=_0x41a432;_0x590b23[_0x28ccfa(0x278f)]=_0x362988;})[_0x41a432(0x129e)](function(_0x596c7c){const _0x26d33e=_0x41a432;console[_0x26d33e(0x1980)](_0x596c7c);});}function _0x53c274(){const _0x426006=_0x4b3e99;_0x590b23['promise']=_0x3aa2ec[_0x426006(0xd47)][_0x426006(0x16b4)](_0x590b23[_0x426006(0x1a56)],_0xbf1a04)['$promise'];}function _0x40261f(_0xef50e5){const _0x234c63=_0x4b3e99;_0x3f65c0()[_0x234c63(0x2640)](_0x590b23[_0x234c63(0x15fb)][_0x234c63(0x19c7)],{'id':_0xef50e5['id']}),_0x5215bc(),_0x1ecead[_0x234c63(0x1c75)]({'title':_0x234c63(0x1c3a),'msg':_0xef50e5['app']?_0xef50e5[_0x234c63(0x1873)]+'\x20has\x20been\x20deleted!':''});}function _0x1cc722(_0x2ce014){const _0x16eb62=_0x4b3e99,_0x76195f=_0x28e285['confirm']()['title'](_0x16eb62(0x1d9f))['htmlContent'](_0x16eb62(0x16d3)+_0x590b23[_0x16eb62(0x19fa)][_0x16eb62(0x402)]+_0x16eb62(0x2452)+'\x20will\x20be\x20deleted.')[_0x16eb62(0x4bd)](_0x16eb62(0x2674))[_0x16eb62(0x1f27)](_0x2ce014)['ok']('OK')['cancel'](_0x16eb62(0x39a));_0x28e285['show'](_0x76195f)[_0x16eb62(0x146b)](function(){const _0x34d44a=_0x16eb62;_0x590b23[_0x34d44a(0x19fa)][_0x34d44a(0x1df5)](function(_0xf8aaf8){const _0x3cff48=_0x34d44a;_0x3f65c0()['remove'](_0x590b23[_0x3cff48(0x15fb)][_0x3cff48(0x19c7)],{'id':_0xf8aaf8['id']});}),_0x590b23['selectedOutboundRouteApps']=[],_0x5215bc();});}_0x5237f0['$on']('$destroy',function(){const _0x1a046f=_0x4b3e99;_0x16da13[_0x1a046f(0x1c5f)](_0x1a046f(0x1bdc));});}const _0x31dce0=_0x2fa57f;;_0x4e71a5[_0x313a4d(0x11c2)]=['$mdDialog','$q','toasty','outboundrouteApp',_0x313a4d(0xaa4),_0x313a4d(0x247f),_0x313a4d(0xa87),_0x313a4d(0x2514)];function _0x4e71a5(_0x242560,_0x505285,_0x861896,_0x329bd2,_0x3baad8,_0x14fd50,_0x3f5b93,_0x88e5e7){const _0x2a5106=_0x313a4d,_0x54bfc0=this;_0x54bfc0[_0x2a5106(0x2321)]=_0x3f5b93[_0x2a5106(0xb12)](),_0x54bfc0[_0x2a5106(0xcef)]=[],_0x54bfc0[_0x2a5106(0x1189)]='VOICE.EDIT_'+(_0x329bd2['appType']||_0x329bd2[_0x2a5106(0x1873)])[_0x2a5106(0x1c37)](),_0x54bfc0[_0x2a5106(0x1802)]=angular[_0x2a5106(0x235a)](_0x329bd2),_0x54bfc0['crudPermissions']=_0x88e5e7,_0x54bfc0[_0x2a5106(0x855)]={};if(_0x54bfc0[_0x2a5106(0x1802)][_0x2a5106(0x168a)])switch(_0x54bfc0[_0x2a5106(0x1802)]['appType']?_0x54bfc0[_0x2a5106(0x1802)][_0x2a5106(0x8f2)][_0x2a5106(0x256e)]():_0x54bfc0[_0x2a5106(0x1802)][_0x2a5106(0x1873)][_0x2a5106(0x256e)]()){case _0x2a5106(0x1802):break;case _0x2a5106(0xeaa):{const _0x17b087=_0x54bfc0['custom'][_0x2a5106(0x168a)][_0x2a5106(0x10c8)](',');_0x54bfc0['custom'][_0x2a5106(0x2293)]=_0x17b087[0x0],_0x54bfc0[_0x2a5106(0x1802)][_0x2a5106(0x90b)]=_0x17b087[0x1],_0x54bfc0['custom'][_0x2a5106(0xaf3)]=_0x17b087[_0x2a5106(0x1298)](0x2,_0x17b087[_0x2a5106(0x402)])[_0x2a5106(0xb47)](',');}break;case _0x2a5106(0xa46):{const _0x494b7d=_0x54bfc0['custom'][_0x2a5106(0x168a)]['split'](',');_0x54bfc0[_0x2a5106(0x1802)][_0x2a5106(0x153a)]=_0x494b7d[0x0],_0x54bfc0[_0x2a5106(0x1802)][_0x2a5106(0x1392)]=_0x494b7d[0x1],_0x54bfc0[_0x2a5106(0x1802)][_0x2a5106(0x2217)]=_0x494b7d[0x2],_0x54bfc0['custom'][_0x2a5106(0x90b)]=_0x494b7d[0x3],_0x54bfc0[_0x2a5106(0x1802)][_0x2a5106(0xaf3)]=_0x494b7d[_0x2a5106(0x1298)](0x4,_0x494b7d[_0x2a5106(0x402)])[_0x2a5106(0xb47)](',');}break;case _0x2a5106(0x17d6):{const _0x175120=_0x54bfc0[_0x2a5106(0x1802)][_0x2a5106(0x168a)]['split'](',');_0x54bfc0[_0x2a5106(0x1802)]['accesskeyid']=_0x175120[0x0],_0x54bfc0[_0x2a5106(0x1802)][_0x2a5106(0x252)]=_0x175120[0x1],_0x54bfc0['custom'][_0x2a5106(0x1039)]=_0x175120[0x2],_0x54bfc0[_0x2a5106(0x1802)]['botname']=_0x175120[0x3],_0x54bfc0['custom'][_0x2a5106(0xaf3)]=_0x175120[_0x2a5106(0x1298)](0x4,_0x175120[_0x2a5106(0x402)])['join'](',');}break;case _0x2a5106(0x1713):{const _0x57d750=_0x54bfc0[_0x2a5106(0x1802)]['appdata'][_0x2a5106(0x10c8)](',');_0x54bfc0[_0x2a5106(0x1802)][_0x2a5106(0x583)]=isNaN(_0x57d750[0x0])?_0x57d750[0x0]:parseInt(_0x57d750[0x0],0xa),_0x54bfc0[_0x2a5106(0x1802)][_0x2a5106(0xa8d)]=_0x57d750[_0x2a5106(0x1298)](0x1,_0x57d750[_0x2a5106(0x402)])[_0x2a5106(0xb47)](',');}break;case'message':_0x54bfc0[_0x2a5106(0x1802)]['text']=_0x54bfc0['custom'][_0x2a5106(0x168a)];break;case'set':_0x54bfc0[_0x2a5106(0x1802)][_0x2a5106(0x19eb)]=_0x54bfc0[_0x2a5106(0x1802)]['appdata']['split']('=')[0x0],_0x54bfc0[_0x2a5106(0x1802)]['value']=_0x54bfc0[_0x2a5106(0x1802)][_0x2a5106(0x168a)][_0x2a5106(0x10c8)]('=')[0x1];break;case _0x2a5106(0x1ecb):_0x54bfc0['custom'][_0x2a5106(0x9e0)]=_0x54bfc0[_0x2a5106(0x1802)]['appdata'];break;default:{const _0x57c4c3=_0x54bfc0[_0x2a5106(0x1802)]['appdata']['split'](',');_0x54bfc0[_0x2a5106(0x1802)]['app']=_0x3f65c0()['isEmpty'](_0x57c4c3[0x0])?_0x57c4c3[0x0]:isNaN(_0x57c4c3[0x0])?_0x57c4c3[0x0]:parseInt(_0x57c4c3[0x0],0xa),_0x54bfc0[_0x2a5106(0x1802)][_0x2a5106(0x168a)]=_0x3f65c0()['isEmpty'](_0x57c4c3[0x1])?_0x57c4c3[0x1]:isNaN(_0x57c4c3[0x1])?_0x57c4c3[0x1]:parseInt(_0x57c4c3[0x1],0xa);}break;}else{}_0x54bfc0['custom'][_0x2a5106(0x1142)]&&_0x54bfc0[_0x2a5106(0x1802)][_0x2a5106(0x1142)][_0x2a5106(0x256e)]()===_0x2a5106(0xc9c)&&_0x54bfc0[_0x2a5106(0x1802)][_0x2a5106(0x8f2)][_0x2a5106(0x256e)]()===_0x2a5106(0x3bb)&&(_0x54bfc0[_0x2a5106(0x1802)]['prefix']=_0x54bfc0[_0x2a5106(0x1802)]['phone']?_0x54bfc0[_0x2a5106(0x1802)][_0x2a5106(0x1d55)][_0x2a5106(0x10c8)]('$')[0x0]:undefined,_0x54bfc0[_0x2a5106(0x1802)][_0x2a5106(0x1d43)]=_0x54bfc0['custom'][_0x2a5106(0x11be)]?_0x2a5106(0x1b60)+_0x54bfc0['custom'][_0x2a5106(0x11be)]:undefined);_0x54bfc0[_0x2a5106(0xb84)]=_0x3fadd0,_0x54bfc0['closeDialog']=_0x3f4593;function _0x3fadd0(){const _0x53cc36=_0x2a5106;_0x54bfc0[_0x53cc36(0xcef)]=[];const _0x27846e=[];_0x54bfc0[_0x53cc36(0x1802)][_0x53cc36(0x1142)]&&_0x54bfc0[_0x53cc36(0x1802)][_0x53cc36(0x1142)][_0x53cc36(0x256e)]()===_0x53cc36(0xc9c)&&_0x54bfc0[_0x53cc36(0x1802)][_0x53cc36(0x8f2)]===_0x53cc36(0x118b)&&(_0x54bfc0[_0x53cc36(0x1802)][_0x53cc36(0x1d55)]=_0x3baad8[_0x53cc36(0x1274)]?(_0x54bfc0['custom'][_0x53cc36(0x1e12)]||'')+_0x53cc36(0x2147)+_0x3baad8[_0x53cc36(0x1274)]+'}':(_0x54bfc0[_0x53cc36(0x1802)][_0x53cc36(0x1e12)]||'')+'${EXTEN}',_0x3baad8[_0x53cc36(0x1425)]!==_0x53cc36(0x1642)?_0x54bfc0[_0x53cc36(0x1802)][_0x53cc36(0xa08)][_0x53cc36(0x172b)]('U(xcally-mixmonitor-context)')<0x0&&(_0x54bfc0[_0x53cc36(0x1802)][_0x53cc36(0xa08)]+=_0x53cc36(0x1ea4)):_0x54bfc0[_0x53cc36(0x1802)]['options']=_0x54bfc0['custom'][_0x53cc36(0xa08)][_0x53cc36(0x5f4)](_0x53cc36(0x1ea4),''));if(_0x54bfc0[_0x53cc36(0x1802)]['appType']&&_0x54bfc0[_0x53cc36(0x1802)][_0x53cc36(0x8f2)]===_0x53cc36(0x1802)){}else switch((_0x54bfc0[_0x53cc36(0x1802)][_0x53cc36(0x1873)]||_0x54bfc0['custom'][_0x53cc36(0x8f2)])[_0x53cc36(0x256e)]()){case _0x53cc36(0x26ba):_0x54bfc0[_0x53cc36(0x1802)][_0x53cc36(0x168a)]=_0x54bfc0['custom'][_0x53cc36(0x19eb)]+'='+_0x54bfc0[_0x53cc36(0x1802)]['value'];break;case'custom':break;default:_0x27846e[0x0]=_0x54bfc0['custom'][_0x53cc36(0x1873)],_0x27846e[0x1]=_0x54bfc0[_0x53cc36(0x1802)][_0x53cc36(0x168a)],_0x54bfc0[_0x53cc36(0x1802)][_0x53cc36(0x168a)]=_0x27846e[_0x53cc36(0xb47)](',');}_0x3f4593(_0x54bfc0[_0x53cc36(0x1802)]);}function _0x3f4593(_0x5080f6){const _0x2f4331=_0x2a5106;_0x242560[_0x2f4331(0x2458)](_0x5080f6);}}const _0x188944=_0x4e71a5;;_0xac21d5[_0x313a4d(0x11c2)]=[_0x313a4d(0x1862),_0x313a4d(0x10e8),_0x313a4d(0x1c7e),'IndexFactory',_0x313a4d(0x2765),_0x313a4d(0x278f),_0x313a4d(0x1fe4),_0x313a4d(0x247f),_0x313a4d(0xa87),'crudPermissions'];function _0xac21d5(_0x2fc002,_0x421028,_0x555bcd,_0x18144c,_0x4f07ef,_0xadf4fd,_0x397ff0,_0x4a6a67,_0x4a2679,_0x3d24d4){const _0x56b7e2=_0x313a4d,_0x4b8ecd=this;_0x4b8ecd[_0x56b7e2(0x2321)]=_0x4a2679[_0x56b7e2(0xb12)](),_0x4b8ecd['errors']=[],_0x4b8ecd['title']=_0x56b7e2(0x56d),_0x4b8ecd['interval']=angular[_0x56b7e2(0x235a)](_0x4f07ef),_0x4b8ecd[_0x56b7e2(0x278f)]=_0xadf4fd,_0x4b8ecd[_0x56b7e2(0xa76)]=![],_0x4b8ecd[_0x56b7e2(0x1960)]=[_0x56b7e2(0xd85),_0x56b7e2(0x1802),_0x56b7e2(0x25f4)],_0x4b8ecd[_0x56b7e2(0x2514)]=_0x3d24d4,_0x4b8ecd[_0x56b7e2(0x1e35)]=_0x18144c['getDaysOfWeek'](),_0x4b8ecd['monthNumber']=_0x18144c[_0x56b7e2(0xead)](),_0x4b8ecd[_0x56b7e2(0x2156)]=_0x18144c[_0x56b7e2(0x18b6)](),_0x4b8ecd[_0x56b7e2(0x15f1)]=_0x18144c['getDaysOfMonth']();if(!_0x4b8ecd[_0x56b7e2(0x2765)])_0x4b8ecd[_0x56b7e2(0x2765)]={'interval':'*,*,*,*'},_0x4b8ecd[_0x56b7e2(0x1142)]=_0x56b7e2(0xd85),_0x4b8ecd[_0x56b7e2(0x1189)]=_0x56b7e2(0x79c),_0x4b8ecd[_0x56b7e2(0xa76)]=!![];else{if(_0x4b8ecd[_0x56b7e2(0x2765)][_0x56b7e2(0x2765)]!==_0x56b7e2(0x1559)){_0x4b8ecd['type']='custom';const _0x31d9f7=_0x4b8ecd[_0x56b7e2(0x2765)][_0x56b7e2(0x2765)][_0x56b7e2(0x10c8)](','),_0x1e0a71=_0x31d9f7[0x0],_0x4ed2dc=_0x31d9f7[0x1],_0x32e2f9=_0x31d9f7[0x2],_0x1ce099=_0x31d9f7[0x3];if(_0x1e0a71!=='*'){const _0x8d0243=_0x1e0a71[_0x56b7e2(0x10c8)]('-')[0x0],_0x2f5d1c=_0x1e0a71[_0x56b7e2(0x10c8)]('-')[0x1];let _0x372eab;_0x372eab=new Date(),_0x372eab[_0x56b7e2(0x25cd)](Number(_0x8d0243[_0x56b7e2(0x10c8)](':')[0x0])),_0x372eab[_0x56b7e2(0x2348)](Number(_0x8d0243[_0x56b7e2(0x10c8)](':')[0x1])),_0x4b8ecd[_0x56b7e2(0x2469)]=_0x372eab,_0x372eab=new Date(),_0x372eab[_0x56b7e2(0x25cd)](Number(_0x2f5d1c[_0x56b7e2(0x10c8)](':')[0x0])),_0x372eab[_0x56b7e2(0x2348)](Number(_0x2f5d1c[_0x56b7e2(0x10c8)](':')[0x1])),_0x4b8ecd[_0x56b7e2(0x637)]=_0x372eab;}_0x4ed2dc!=='*'&&(_0x4b8ecd['dayOfWeekFrom']=_0x4ed2dc[_0x56b7e2(0x10c8)]('-')[0x0],_0x4b8ecd[_0x56b7e2(0x27a1)]=_0x4ed2dc[_0x56b7e2(0x10c8)]('-')[0x1]),_0x32e2f9!=='*'&&(_0x4b8ecd[_0x56b7e2(0xf0b)]=_0x32e2f9['split']('-')[0x0],_0x4b8ecd['monthDayTo']=_0x32e2f9['split']('-')[0x1]),_0x1ce099!=='*'&&(_0x4b8ecd['monthFrom']=_0x1ce099[_0x56b7e2(0x10c8)]('-')[0x0],_0x4b8ecd[_0x56b7e2(0x9c3)]=_0x1ce099[_0x56b7e2(0x10c8)]('-')[0x1]);}else _0x4b8ecd[_0x56b7e2(0x1142)]=_0x56b7e2(0xd85);}_0x2fc002[_0x56b7e2(0x16a)]['id']&&!_0x4b8ecd[_0x56b7e2(0x2765)][_0x56b7e2(0xea)]&&(_0x4b8ecd[_0x56b7e2(0x2765)][_0x56b7e2(0x1ff2)]=_0x2fc002[_0x56b7e2(0x16a)]['id']);_0x4b8ecd[_0x56b7e2(0x2765)][_0x56b7e2(0x1ff2)]&&_0x4b8ecd['interval'][_0x56b7e2(0xea)]&&(_0x4b8ecd[_0x56b7e2(0x1142)]='list');_0x4b8ecd['addNewInterval']=_0x39c01e,_0x4b8ecd[_0x56b7e2(0x1242)]=_0x5c566c,_0x4b8ecd['closeDialog']=_0x108f20;_0x4b8ecd[_0x56b7e2(0x2765)]['application']&&(_0x4a2679['hasRole'](_0x56b7e2(0x174b))?_0x4a6a67[_0x56b7e2(0x2765)][_0x56b7e2(0x16b4)]({'fields':_0x56b7e2(0x648),'IntervalId':'null','nolimit':!![]})[_0x56b7e2(0x2945)]['then'](function(_0x116c5d){const _0x101ff9=_0x56b7e2;_0x4b8ecd[_0x101ff9(0x278f)]=_0x116c5d['rows']||[];})[_0x56b7e2(0x129e)](function(_0x11fbe5){const _0x3673cb=_0x56b7e2;_0x397ff0[_0x3673cb(0x1980)]({'title':_0x11fbe5['status']?'API:'+_0x11fbe5[_0x3673cb(0x107b)]+'\x20-\x20'+_0x11fbe5[_0x3673cb(0x167f)]:_0x3673cb(0x603),'msg':_0x11fbe5[_0x3673cb(0x524)]?JSON[_0x3673cb(0x10bb)](_0x11fbe5[_0x3673cb(0x524)]):_0x11fbe5['toString']()});}):_0x4a6a67[_0x56b7e2(0x2765)][_0x56b7e2(0x16b4)]({'fields':_0x56b7e2(0x648),'IntervalId':'null','nolimit':!![]})[_0x56b7e2(0x2945)][_0x56b7e2(0x146b)](function(_0x549215){const _0x31048d=_0x56b7e2;_0x4b8ecd[_0x31048d(0x278f)]=_0x549215['rows']||[];})['then'](function(){const _0x474eb9=_0x56b7e2;return _0x4a6a67[_0x474eb9(0x1366)][_0x474eb9(0x16b4)]({'userProfileId':_0x4b8ecd[_0x474eb9(0x2321)]['userProfileId'],'sectionId':0x3ec})[_0x474eb9(0x2945)];})[_0x56b7e2(0x146b)](function(_0x41eaf7){const _0x33bab0=_0x56b7e2,_0x255940=_0x41eaf7&&_0x41eaf7[_0x33bab0(0x19c7)]?_0x41eaf7[_0x33bab0(0x19c7)][0x0]:null;if(!_0x255940)_0x4b8ecd['intervals']=[];else{if(!_0x255940[_0x33bab0(0x11d2)])return _0x4a6a67[_0x33bab0(0xdcc)][_0x33bab0(0x16b4)]({'sectionId':_0x255940['id']})[_0x33bab0(0x2945)][_0x33bab0(0x146b)](function(_0xce4b4){const _0x27375d=_0x33bab0,_0x447e64=_0xce4b4&&_0xce4b4['rows']?_0xce4b4[_0x27375d(0x19c7)]:[],_0x44f523=[];let _0x527f4c=null;_0x4b8ecd[_0x27375d(0x2765)]&&(_0x527f4c=_0x3f65c0()['find'](_0x4b8ecd[_0x27375d(0x278f)],{'name':_0x4b8ecd[_0x27375d(0x2765)][_0x27375d(0x1ff2)]})),_0x527f4c&&!_0x3f65c0()[_0x27375d(0x1360)](_0x447e64,[_0x27375d(0x18b8),_0x527f4c['id']])&&_0x4b8ecd[_0x27375d(0x278f)][_0x27375d(0x1df5)](function(_0x35ee40){const _0x286f1c=_0x27375d;_0x35ee40['id']===_0x527f4c['id']&&(_0x35ee40[_0x286f1c(0x8ff)]=![],_0x44f523[_0x286f1c(0x1f47)](_0x35ee40));}),_0x4b8ecd[_0x27375d(0x278f)]=_0x44f523;});}})['catch'](function(_0xfd83ab){const _0xf5875b=_0x56b7e2;_0x397ff0[_0xf5875b(0x1980)]({'title':_0xfd83ab['status']?_0xf5875b(0x262a)+_0xfd83ab[_0xf5875b(0x107b)]+_0xf5875b(0x1315)+_0xfd83ab[_0xf5875b(0x167f)]:'SYSTEM:GET_INTERVALS','msg':_0xfd83ab[_0xf5875b(0x524)]?JSON['stringify'](_0xfd83ab[_0xf5875b(0x524)]):_0xfd83ab['toString']()});}));function _0x4df41d(){const _0x4a1760=_0x56b7e2;switch(_0x4b8ecd[_0x4a1760(0x1142)]){case _0x4a1760(0xd85):case'list':return _0x4a1760(0x1559);case _0x4a1760(0x1802):{const _0x16e9ef=[];if(_0x4b8ecd['timeRangeFrom']!=='*'&&_0x4b8ecd[_0x4a1760(0x2469)]&&_0x4b8ecd['timeRangeTo']){const _0x3058b8=(_0x4b8ecd[_0x4a1760(0x2469)][_0x4a1760(0x1d57)]()<0xa?'0':'')+_0x4b8ecd['timeRangeFrom'][_0x4a1760(0x1d57)]()+':'+((_0x4b8ecd[_0x4a1760(0x2469)][_0x4a1760(0x7fc)]()<0xa?'0':'')+_0x4b8ecd['timeRangeFrom'][_0x4a1760(0x7fc)]()),_0x37ebae=(_0x4b8ecd['timeRangeTo'][_0x4a1760(0x1d57)]()<0xa?'0':'')+_0x4b8ecd[_0x4a1760(0x637)][_0x4a1760(0x1d57)]()+':'+((_0x4b8ecd[_0x4a1760(0x637)][_0x4a1760(0x7fc)]()<0xa?'0':'')+_0x4b8ecd[_0x4a1760(0x637)][_0x4a1760(0x7fc)]());_0x16e9ef[_0x4a1760(0x1f47)](_0x3058b8+'-'+_0x37ebae);}else _0x16e9ef['push']('*');return _0x4b8ecd[_0x4a1760(0x1455)]?_0x4b8ecd['dayOfWeekTo']?_0x16e9ef[_0x4a1760(0x1f47)](_0x4b8ecd[_0x4a1760(0x1455)]+'-'+_0x4b8ecd['dayOfWeekTo']):_0x16e9ef[_0x4a1760(0x1f47)](_0x4b8ecd[_0x4a1760(0x1455)]):_0x16e9ef[_0x4a1760(0x1f47)]('*'),_0x4b8ecd[_0x4a1760(0xf0b)]?_0x4b8ecd['monthDayTo']?_0x16e9ef[_0x4a1760(0x1f47)](_0x4b8ecd[_0x4a1760(0xf0b)]+'-'+_0x4b8ecd[_0x4a1760(0x896)]):_0x16e9ef[_0x4a1760(0x1f47)](_0x4b8ecd[_0x4a1760(0xf0b)]):_0x16e9ef[_0x4a1760(0x1f47)]('*'),_0x4b8ecd[_0x4a1760(0x167)]?_0x4b8ecd[_0x4a1760(0x9c3)]?_0x16e9ef[_0x4a1760(0x1f47)](_0x4b8ecd[_0x4a1760(0x167)]+'-'+_0x4b8ecd[_0x4a1760(0x9c3)]):_0x16e9ef[_0x4a1760(0x1f47)](_0x4b8ecd[_0x4a1760(0x167)]):_0x16e9ef[_0x4a1760(0x1f47)]('*'),_0x16e9ef['join']();}}}function _0x39c01e(){const _0x4077ad=_0x56b7e2;_0x4b8ecd[_0x4077ad(0xcef)]=[],_0x4b8ecd[_0x4077ad(0x2765)][_0x4077ad(0x2765)]=_0x4df41d(),_0x4a6a67[_0x4077ad(0x2765)]['save'](_0x4b8ecd[_0x4077ad(0x2765)])[_0x4077ad(0x2945)][_0x4077ad(0x146b)](function(_0x1684f2){const _0x5b9a14=_0x4077ad;_0x4b8ecd[_0x5b9a14(0x278f)][_0x5b9a14(0x1f47)](_0x1684f2),_0x397ff0[_0x5b9a14(0x1c75)]({'title':_0x5b9a14(0x17f5),'msg':_0x4b8ecd[_0x5b9a14(0x2765)][_0x5b9a14(0x19eb)]?_0x4b8ecd[_0x5b9a14(0x2765)][_0x5b9a14(0x19eb)]+_0x5b9a14(0x1386):''}),_0x108f20();})[_0x4077ad(0x129e)](function(_0x3b0702){const _0x223710=_0x4077ad;console[_0x223710(0x1980)](_0x3b0702),_0x4b8ecd[_0x223710(0xcef)]=_0x3b0702[_0x223710(0x524)][_0x223710(0xcef)]||[{'message':_0x3b0702[_0x223710(0xd5f)](),'type':'api.interval.save'}];});}function _0x5c566c(){const _0x36e695=_0x56b7e2;_0x4b8ecd['errors']=[],_0x4b8ecd['interval'][_0x36e695(0x2765)]=_0x4df41d(),_0x4b8ecd[_0x36e695(0x2765)]['application']?(_0x4b8ecd[_0x36e695(0x1142)]!=='list'&&(_0x4b8ecd[_0x36e695(0x2765)]['IntervalId']=null),_0x108f20(_0x4b8ecd[_0x36e695(0x2765)])):_0x4a6a67[_0x36e695(0x2765)]['update']({'id':_0x4b8ecd[_0x36e695(0x2765)]['id']},_0x4b8ecd[_0x36e695(0x2765)])['$promise'][_0x36e695(0x146b)](function(_0x225235){const _0x46d20e=_0x36e695,_0x9228fd=_0x3f65c0()['find'](_0x4b8ecd[_0x46d20e(0x278f)],{'id':_0x225235['id']});_0x9228fd&&_0x3f65c0()[_0x46d20e(0x168d)](_0x9228fd,_0x225235),_0x397ff0[_0x46d20e(0x1c75)]({'title':_0x46d20e(0x1d51),'msg':'Interval\x20has\x20been\x20saved!'}),_0x108f20();})['catch'](function(_0x1e4443){const _0x2a6e90=_0x36e695;console[_0x2a6e90(0x1980)](_0x1e4443),_0x4b8ecd[_0x2a6e90(0xcef)]=_0x1e4443['data'][_0x2a6e90(0xcef)]||[{'message':_0x1e4443[_0x2a6e90(0xd5f)](),'type':'api.interval.update'}];});}function _0x108f20(_0x1a25d3){_0x421028['hide'](_0x1a25d3);}}const _0x327b31=_0xac21d5;;_0x2e1445['$inject']=['$mdDialog','$q',_0x313a4d(0x1fe4),_0x313a4d(0x157),'outboundroute',_0x313a4d(0x247f),_0x313a4d(0xa87),_0x313a4d(0x2514)];function _0x2e1445(_0x1e1431,_0x52fbae,_0x30efdb,_0xc06d7a,_0xf23abb,_0x49d57c,_0x46c4b8,_0x5eaea1){const _0x5b3969=_0x313a4d,_0x38ba95=this;_0x38ba95['currentUser']=_0x46c4b8[_0x5b3969(0xb12)](),_0x38ba95[_0x5b3969(0xcef)]=[],_0x38ba95[_0x5b3969(0x1189)]=_0x5b3969(0x1950)+(_0xc06d7a['appType']||_0xc06d7a[_0x5b3969(0x1873)])['toUpperCase'](),_0x38ba95['outbounddial']=angular[_0x5b3969(0x235a)](_0xc06d7a),_0x38ba95[_0x5b3969(0x2514)]=_0x5eaea1,_0x38ba95[_0x5b3969(0x855)]={};if(_0x38ba95['outbounddial'][_0x5b3969(0x168a)])switch(_0x38ba95['outbounddial']['appType']?_0x38ba95[_0x5b3969(0x3bb)]['appType'][_0x5b3969(0x256e)]():_0x38ba95[_0x5b3969(0x3bb)][_0x5b3969(0x1873)][_0x5b3969(0x256e)]()){case _0x5b3969(0x1802):break;case _0x5b3969(0xeaa):{const _0x1be986=_0x38ba95[_0x5b3969(0x3bb)][_0x5b3969(0x168a)][_0x5b3969(0x10c8)](',');_0x38ba95[_0x5b3969(0x3bb)][_0x5b3969(0x2293)]=_0x1be986[0x0],_0x38ba95['outbounddial']['language']=_0x1be986[0x1],_0x38ba95['outbounddial']['welcomemessage']=_0x1be986['slice'](0x2,_0x1be986[_0x5b3969(0x402)])[_0x5b3969(0xb47)](',');}break;case _0x5b3969(0xa46):{const _0x1c7c32=_0x38ba95[_0x5b3969(0x3bb)][_0x5b3969(0x168a)]['split'](',');_0x38ba95[_0x5b3969(0x3bb)][_0x5b3969(0x153a)]=_0x1c7c32[0x0],_0x38ba95['outbounddial'][_0x5b3969(0x1392)]=_0x1c7c32[0x1],_0x38ba95[_0x5b3969(0x3bb)][_0x5b3969(0x2217)]=_0x1c7c32[0x2],_0x38ba95[_0x5b3969(0x3bb)][_0x5b3969(0x90b)]=_0x1c7c32[0x3],_0x38ba95[_0x5b3969(0x3bb)]['welcomemessage']=_0x1c7c32[_0x5b3969(0x1298)](0x4,_0x1c7c32['length'])[_0x5b3969(0xb47)](',');}break;case _0x5b3969(0x17d6):{const _0x3cee54=_0x38ba95[_0x5b3969(0x3bb)][_0x5b3969(0x168a)]['split'](',');_0x38ba95['outbounddial']['accesskeyid']=_0x3cee54[0x0],_0x38ba95[_0x5b3969(0x3bb)]['secretaccesskey']=_0x3cee54[0x1],_0x38ba95['outbounddial']['lexregion']=_0x3cee54[0x2],_0x38ba95['outbounddial'][_0x5b3969(0x8dd)]=_0x3cee54[0x3],_0x38ba95['outbounddial'][_0x5b3969(0xaf3)]=_0x3cee54[_0x5b3969(0x1298)](0x4,_0x3cee54['length'])[_0x5b3969(0xb47)](',');}break;case _0x5b3969(0x1713):{const _0x1b5397=_0x38ba95[_0x5b3969(0x3bb)][_0x5b3969(0x168a)][_0x5b3969(0x10c8)](',');_0x38ba95['outbounddial'][_0x5b3969(0x583)]=isNaN(_0x1b5397[0x0])?_0x1b5397[0x0]:parseInt(_0x1b5397[0x0],0xa),_0x38ba95['outbounddial'][_0x5b3969(0xa8d)]=_0x1b5397[_0x5b3969(0x1298)](0x1,_0x1b5397['length'])[_0x5b3969(0xb47)](',');}break;case _0x5b3969(0x7fd):_0x38ba95[_0x5b3969(0x3bb)][_0x5b3969(0xa8d)]=_0x38ba95[_0x5b3969(0x3bb)][_0x5b3969(0x168a)];break;case _0x5b3969(0x26ba):_0x38ba95['outbounddial']['name']=_0x38ba95[_0x5b3969(0x3bb)][_0x5b3969(0x168a)][_0x5b3969(0x10c8)]('=')[0x0],_0x38ba95[_0x5b3969(0x3bb)][_0x5b3969(0x175d)]=_0x38ba95[_0x5b3969(0x3bb)]['appdata'][_0x5b3969(0x10c8)]('=')[0x1];break;case _0x5b3969(0x1ecb):_0x38ba95['outbounddial'][_0x5b3969(0x9e0)]=_0x38ba95['outbounddial'][_0x5b3969(0x168a)];break;default:{const _0x425f41=_0x38ba95[_0x5b3969(0x3bb)][_0x5b3969(0x168a)][_0x5b3969(0x10c8)](',');_0x38ba95[_0x5b3969(0x3bb)][_0x5b3969(0x279f)]=_0x425f41[0x0][_0x5b3969(0x10c8)]('/')[0x1],_0x38ba95[_0x5b3969(0x3bb)]['phone']=_0x425f41[0x0]['split']('/')[0x2],_0x38ba95[_0x5b3969(0x3bb)][_0x5b3969(0xa9c)]=_0x3f65c0()[_0x5b3969(0x2635)](_0x425f41[0x1])?_0x425f41[0x1]:isNaN(_0x425f41[0x1])?_0x425f41[0x1]:parseInt(_0x425f41[0x1],0xa),_0x38ba95[_0x5b3969(0x3bb)][_0x5b3969(0xa08)]=_0x3f65c0()[_0x5b3969(0x2635)](_0x425f41[0x2])?_0x425f41[0x2]:isNaN(_0x425f41[0x2])?_0x425f41[0x2]:parseInt(_0x425f41[0x2],0xa),_0x38ba95[_0x5b3969(0x3bb)][_0x5b3969(0x20cc)]=_0x3f65c0()[_0x5b3969(0x2635)](_0x425f41[0x3])?_0x425f41[0x3]:isNaN(_0x425f41[0x3])?_0x425f41[0x3]:parseInt(_0x425f41[0x3],0xa);}break;}else{}_0x38ba95[_0x5b3969(0x3bb)][_0x5b3969(0x1142)]&&_0x38ba95[_0x5b3969(0x3bb)][_0x5b3969(0x1142)][_0x5b3969(0x256e)]()===_0x5b3969(0xc9c)&&_0x38ba95[_0x5b3969(0x3bb)][_0x5b3969(0x8f2)]['toLowerCase']()===_0x5b3969(0x3bb)&&(_0x38ba95[_0x5b3969(0x3bb)][_0x5b3969(0x1e12)]=_0x38ba95['outbounddial'][_0x5b3969(0x1d55)]?_0x38ba95[_0x5b3969(0x3bb)][_0x5b3969(0x1d55)]['split']('$')[0x0]:undefined,_0x38ba95[_0x5b3969(0x3bb)][_0x5b3969(0x1d43)]=_0x38ba95['outbounddial'][_0x5b3969(0x11be)]?_0x5b3969(0x1b60)+_0x38ba95[_0x5b3969(0x3bb)][_0x5b3969(0x11be)]:undefined);_0x38ba95[_0x5b3969(0xb84)]=_0x8d080b,_0x38ba95[_0x5b3969(0x13f3)]=_0x25a2e8,_0x46c4b8[_0x5b3969(0x23e0)](_0x5b3969(0x174b))?_0x49d57c[_0x5b3969(0x279f)][_0x5b3969(0x16b4)]({'fields':_0x5b3969(0x7a7),'sort':_0x5b3969(0x19eb),'nolimit':_0x5b3969(0x1185)})[_0x5b3969(0x2945)][_0x5b3969(0x146b)](function(_0x2de9b2){const _0x196c41=_0x5b3969;_0x38ba95['trunks']=_0x2de9b2[_0x196c41(0x19c7)]||[];})[_0x5b3969(0x129e)](function(_0x2ae52b){const _0x9db5cf=_0x5b3969;_0x30efdb[_0x9db5cf(0x1980)]({'title':_0x2ae52b[_0x9db5cf(0x107b)]?_0x9db5cf(0x262a)+_0x2ae52b[_0x9db5cf(0x107b)]+_0x9db5cf(0x1315)+_0x2ae52b[_0x9db5cf(0x167f)]:'SYSTEM:GET_TRUNKS','msg':_0x2ae52b['data']?JSON[_0x9db5cf(0x10bb)](_0x2ae52b['data']):_0x2ae52b[_0x9db5cf(0xd5f)]()});}):_0x49d57c['trunk']['get']({'fields':_0x5b3969(0x7a7),'sort':'name','nolimit':_0x5b3969(0x1185)})[_0x5b3969(0x2945)]['then'](function(_0x4900e8){const _0x3934fa=_0x5b3969;_0x38ba95['trunks']=_0x4900e8[_0x3934fa(0x19c7)]||[];})[_0x5b3969(0x146b)](function(){const _0x1b9afb=_0x5b3969;return _0x49d57c['userProfileSection']['get']({'userProfileId':_0x38ba95[_0x1b9afb(0x2321)][_0x1b9afb(0x209a)],'sectionId':0x3f3})[_0x1b9afb(0x2945)];})['then'](function(_0x3ee466){const _0x3d59f5=_0x5b3969,_0x4a032f=_0x3ee466&&_0x3ee466[_0x3d59f5(0x19c7)]?_0x3ee466[_0x3d59f5(0x19c7)][0x0]:null;if(!_0x4a032f){const _0x57df3c=[];let _0x1b9728=null;_0x38ba95[_0x3d59f5(0x3bb)]&&(_0x1b9728=_0x3f65c0()[_0x3d59f5(0xc84)](_0x38ba95[_0x3d59f5(0x2433)],{'name':_0x38ba95[_0x3d59f5(0x3bb)][_0x3d59f5(0x279f)]}));for(let _0x38dfb3=0x0;_0x38dfb3<_0x38ba95[_0x3d59f5(0x2433)]['length'];_0x38dfb3++){_0x1b9728&&_0x38ba95[_0x3d59f5(0x2433)][_0x38dfb3]['id']===_0x1b9728['id']&&(_0x38ba95[_0x3d59f5(0x2433)][_0x38dfb3][_0x3d59f5(0x8ff)]=![],_0x57df3c[_0x3d59f5(0x1f47)](_0x38ba95['trunks'][_0x38dfb3]));}_0x38ba95[_0x3d59f5(0x2433)]=_0x57df3c;}else{if(!_0x4a032f[_0x3d59f5(0x11d2)])return _0x49d57c['userProfileResource'][_0x3d59f5(0x16b4)]({'sectionId':_0x4a032f['id']})['$promise'][_0x3d59f5(0x146b)](function(_0x17755c){const _0x371169=_0x3d59f5,_0x5d11e3=_0x3f65c0()[_0x371169(0x205)](_0x17755c['rows'],function(_0x49087e){const _0x219da8=_0x371169;return _0x3f65c0()[_0x219da8(0xc84)](_0x38ba95[_0x219da8(0x2433)],{'id':_0x49087e[_0x219da8(0x18b8)]});});let _0x2d5ecb=null;_0x38ba95[_0x371169(0x3bb)]&&(_0x2d5ecb=_0x3f65c0()[_0x371169(0xc84)](_0x38ba95[_0x371169(0x2433)],{'name':_0x38ba95['outbounddial'][_0x371169(0x279f)]}));if(_0x2d5ecb&&!_0x3f65c0()[_0x371169(0x1360)](_0x5d11e3,['id',_0x2d5ecb['id']])){const _0x591edd=_0x3f65c0()['find'](_0x38ba95[_0x371169(0x2433)],{'id':_0x2d5ecb['id']});_0x591edd[_0x371169(0x8ff)]=![],_0x5d11e3[_0x371169(0x1f47)](_0x591edd);}_0x38ba95['trunks']=_0x5d11e3;});}})['catch'](function(_0x2346ff){const _0x2b670c=_0x5b3969;_0x30efdb[_0x2b670c(0x1980)]({'title':_0x2346ff[_0x2b670c(0x107b)]?_0x2b670c(0x262a)+_0x2346ff['status']+_0x2b670c(0x1315)+_0x2346ff[_0x2b670c(0x167f)]:_0x2b670c(0x2436),'msg':_0x2346ff[_0x2b670c(0x524)]?JSON[_0x2b670c(0x10bb)](_0x2346ff['data']):_0x2346ff[_0x2b670c(0xd5f)]()});}),_0x46c4b8[_0x5b3969(0x23e0)](_0x5b3969(0x174b))?_0x49d57c[_0x5b3969(0xa80)]['get']({'fields':_0x5b3969(0x7a7),'sort':_0x5b3969(0x19eb),'nolimit':_0x5b3969(0x1185)})[_0x5b3969(0x2945)][_0x5b3969(0x146b)](function(_0x203427){const _0x5e1778=_0x5b3969;_0x38ba95[_0x5e1778(0x1b86)]=_0x203427[_0x5e1778(0x19c7)]||[];})[_0x5b3969(0x129e)](function(_0x31a292){const _0x2a1983=_0x5b3969;_0x30efdb[_0x2a1983(0x1980)]({'title':_0x31a292['status']?_0x2a1983(0x262a)+_0x31a292[_0x2a1983(0x107b)]+_0x2a1983(0x1315)+_0x31a292[_0x2a1983(0x167f)]:_0x2a1983(0x29c),'msg':_0x31a292['data']?JSON[_0x2a1983(0x10bb)](_0x31a292[_0x2a1983(0x524)]):_0x31a292[_0x2a1983(0xd5f)]()});}):_0x49d57c[_0x5b3969(0xa80)][_0x5b3969(0x16b4)]({'fields':'id,name','sort':_0x5b3969(0x19eb),'nolimit':_0x5b3969(0x1185)})['$promise'][_0x5b3969(0x146b)](function(_0x5590a0){const _0x53fa11=_0x5b3969;_0x38ba95[_0x53fa11(0x1b86)]=_0x5590a0[_0x53fa11(0x19c7)]||[];})[_0x5b3969(0x146b)](function(){const _0x2c5d38=_0x5b3969;return _0x49d57c[_0x2c5d38(0x1366)][_0x2c5d38(0x16b4)]({'userProfileId':_0x38ba95['currentUser']['userProfileId'],'sectionId':0x3f0})['$promise'];})[_0x5b3969(0x146b)](function(_0x119ea8){const _0x15ac39=_0x5b3969,_0x44f364=_0x119ea8&&_0x119ea8['rows']?_0x119ea8['rows'][0x0]:null;if(!_0x44f364){const _0x52a775=[];let _0x2a5925=null;_0x38ba95[_0x15ac39(0x3bb)]&&(_0x2a5925=_0x3f65c0()[_0x15ac39(0xc84)](_0x38ba95[_0x15ac39(0x1b86)],{'name':_0x38ba95[_0x15ac39(0x3bb)]['tag']}));for(let _0x42a1d9=0x0;_0x42a1d9<_0x38ba95[_0x15ac39(0x1b86)][_0x15ac39(0x402)];_0x42a1d9++){_0x2a5925&&_0x38ba95[_0x15ac39(0x1b86)][_0x42a1d9]['id']===_0x2a5925['id']&&(_0x38ba95[_0x15ac39(0x1b86)][_0x42a1d9][_0x15ac39(0x8ff)]=![],_0x52a775[_0x15ac39(0x1f47)](_0x38ba95[_0x15ac39(0x1b86)][_0x42a1d9]));}_0x38ba95[_0x15ac39(0x1b86)]=_0x52a775;}else{if(!_0x44f364['autoAssociation'])return _0x49d57c[_0x15ac39(0xdcc)][_0x15ac39(0x16b4)]({'sectionId':_0x44f364['id']})[_0x15ac39(0x2945)][_0x15ac39(0x146b)](function(_0x18d277){const _0x32e43d=_0x15ac39,_0x4f3e69=_0x3f65c0()[_0x32e43d(0x205)](_0x18d277[_0x32e43d(0x19c7)],function(_0x36710d){const _0x78049d=_0x32e43d;return _0x3f65c0()[_0x78049d(0xc84)](_0x38ba95[_0x78049d(0x1b86)],{'id':_0x36710d[_0x78049d(0x18b8)]});});let _0x56d988=null;_0x38ba95[_0x32e43d(0x3bb)]&&(_0x56d988=_0x3f65c0()[_0x32e43d(0xc84)](_0x38ba95[_0x32e43d(0x1b86)],{'name':_0x38ba95[_0x32e43d(0x3bb)][_0x32e43d(0xa80)]}));if(_0x56d988&&!_0x3f65c0()[_0x32e43d(0x1360)](_0x4f3e69,['id',_0x56d988['id']])){const _0x56352e=_0x3f65c0()[_0x32e43d(0xc84)](_0x38ba95[_0x32e43d(0x1b86)],{'id':_0x56d988['id']});_0x56352e[_0x32e43d(0x8ff)]=![],_0x4f3e69[_0x32e43d(0x1f47)](_0x56352e);}_0x38ba95[_0x32e43d(0x1b86)]=_0x4f3e69;});}})['catch'](function(_0x427ab9){const _0x3a320b=_0x5b3969;_0x30efdb['error']({'title':_0x427ab9[_0x3a320b(0x107b)]?_0x3a320b(0x262a)+_0x427ab9[_0x3a320b(0x107b)]+_0x3a320b(0x1315)+_0x427ab9[_0x3a320b(0x167f)]:'SYSTEM:GETtags','msg':_0x427ab9[_0x3a320b(0x524)]?JSON[_0x3a320b(0x10bb)](_0x427ab9[_0x3a320b(0x524)]):_0x427ab9[_0x3a320b(0xd5f)]()});});function _0x8d080b(){const _0x5dd9dd=_0x5b3969;_0x38ba95[_0x5dd9dd(0xcef)]=[];const _0x2df07b=[];_0x38ba95[_0x5dd9dd(0x3bb)][_0x5dd9dd(0x1142)]&&_0x38ba95[_0x5dd9dd(0x3bb)][_0x5dd9dd(0x1142)]['toLowerCase']()===_0x5dd9dd(0xc9c)&&_0x38ba95[_0x5dd9dd(0x3bb)][_0x5dd9dd(0x8f2)]===_0x5dd9dd(0x118b)&&(_0x38ba95[_0x5dd9dd(0x3bb)][_0x5dd9dd(0x1d55)]=_0xf23abb[_0x5dd9dd(0x1274)]?(_0x38ba95[_0x5dd9dd(0x3bb)][_0x5dd9dd(0x1e12)]||'')+_0x5dd9dd(0x2147)+_0xf23abb[_0x5dd9dd(0x1274)]+'}':(_0x38ba95['outbounddial'][_0x5dd9dd(0x1e12)]||'')+'${EXTEN}',_0xf23abb[_0x5dd9dd(0x1425)]!==_0x5dd9dd(0x1642)?_0x38ba95['outbounddial'][_0x5dd9dd(0xa08)][_0x5dd9dd(0x172b)](_0x5dd9dd(0x1ea4))<0x0&&(_0x38ba95[_0x5dd9dd(0x3bb)][_0x5dd9dd(0xa08)]+=_0x5dd9dd(0x1ea4)):_0x38ba95[_0x5dd9dd(0x3bb)][_0x5dd9dd(0xa08)]=_0x38ba95[_0x5dd9dd(0x3bb)][_0x5dd9dd(0xa08)]['replace']('U(xcally-mixmonitor-context)',''));if(_0x38ba95[_0x5dd9dd(0x3bb)][_0x5dd9dd(0x8f2)]&&_0x38ba95[_0x5dd9dd(0x3bb)][_0x5dd9dd(0x8f2)]==='custom'){}else switch((_0x38ba95[_0x5dd9dd(0x3bb)][_0x5dd9dd(0x1873)]||_0x38ba95[_0x5dd9dd(0x3bb)][_0x5dd9dd(0x8f2)])[_0x5dd9dd(0x256e)]()){case _0x5dd9dd(0x26ba):_0x38ba95['outbounddial'][_0x5dd9dd(0x168a)]=_0x38ba95[_0x5dd9dd(0x3bb)][_0x5dd9dd(0x19eb)]+'='+_0x38ba95['outbounddial'][_0x5dd9dd(0x175d)];break;case _0x5dd9dd(0x1802):break;default:_0x2df07b[0x0]=[_0x5dd9dd(0x1783),_0x38ba95[_0x5dd9dd(0x3bb)]['trunk'],_0x38ba95[_0x5dd9dd(0x3bb)]['phone']]['join']('/'),_0x2df07b[0x1]=_0x38ba95[_0x5dd9dd(0x3bb)][_0x5dd9dd(0xa9c)],_0x2df07b[0x2]=_0x38ba95[_0x5dd9dd(0x3bb)][_0x5dd9dd(0xa08)],_0x2df07b[0x3]=_0x38ba95['outbounddial'][_0x5dd9dd(0x20cc)],_0x38ba95[_0x5dd9dd(0x3bb)][_0x5dd9dd(0x168a)]=_0x2df07b[_0x5dd9dd(0xb47)](',');}_0x25a2e8(_0x38ba95['outbounddial']);}function _0x25a2e8(_0x2c0641){const _0x3da01f=_0x5b3969;_0x1e1431[_0x3da01f(0x2458)](_0x2c0641);}}const _0x489f46=_0x2e1445;;_0x2ae63b[_0x313a4d(0x11c2)]=['$state',_0x313a4d(0xd08),_0x313a4d(0x10e8),'$document',_0x313a4d(0x214b),_0x313a4d(0x2690),_0x313a4d(0x15b9),'api','toasty',_0x313a4d(0xa87),_0x313a4d(0xaa4),_0x313a4d(0x1366)];function _0x2ae63b(_0x53f33d,_0x3f661d,_0x3b726c,_0x34635a,_0x3cdfcd,_0x1bc90b,_0x5cb6fb,_0x5da6dd,_0x5efc07,_0x55d3c1,_0x38ef1f,_0x19d331){const _0xbc7295=_0x313a4d,_0x50dc44=this;_0x50dc44[_0xbc7295(0x2321)]=_0x55d3c1[_0xbc7295(0xb12)](),_0x50dc44[_0xbc7295(0x2690)]=_0x1bc90b,_0x50dc44['setting']=_0x5cb6fb,_0x50dc44[_0xbc7295(0x2251)]=_0x50dc44[_0xbc7295(0x15b9)][_0xbc7295(0x976)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x50dc44[_0xbc7295(0x1002)]=_0x3f661d[_0xbc7295(0x2414)]()+_0xbc7295(0xb0e)+_0x3f661d['host'](),_0x50dc44[_0xbc7295(0xaa4)]=_0x38ef1f||_0x53f33d[_0xbc7295(0x16a)]['outboundroute']||{},_0x50dc44[_0xbc7295(0x1366)]=_0x19d331&&_0x19d331['count']==0x1?_0x19d331[_0xbc7295(0x19c7)][0x0]:null,_0x50dc44[_0xbc7295(0x2514)]=_0x55d3c1[_0xbc7295(0xe60)](_0x50dc44[_0xbc7295(0x1366)]?_0x50dc44[_0xbc7295(0x1366)][_0xbc7295(0x2514)]:null),_0x50dc44[_0xbc7295(0x855)]={},_0x50dc44[_0xbc7295(0x1b09)]=_0x53f33d[_0xbc7295(0x16a)]['tab']||0x0,_0x50dc44[_0xbc7295(0x861)]=_0x5efc07[_0xbc7295(0x271e)],_0x50dc44[_0xbc7295(0x18f7)]=_0x412586,_0x50dc44['saveOutboundRoute']=_0x463449,_0x55d3c1['hasRole'](_0xbc7295(0x174b))?_0x5da6dd['voiceContext'][_0xbc7295(0x16b4)]({'fields':_0xbc7295(0x7a7),'sort':_0xbc7295(0x19eb),'nolimit':_0xbc7295(0x1185)})[_0xbc7295(0x2945)][_0xbc7295(0x146b)](function(_0x4b8a99){const _0x7d20a0=_0xbc7295;_0x50dc44[_0x7d20a0(0xfe9)]=_0x4b8a99[_0x7d20a0(0x19c7)]||[];})['catch'](function(_0x3a16ef){const _0x114c9f=_0xbc7295;_0x5efc07['error']({'title':_0x3a16ef[_0x114c9f(0x107b)]?_0x114c9f(0x262a)+_0x3a16ef[_0x114c9f(0x107b)]+_0x114c9f(0x1315)+_0x3a16ef['statusText']:_0x114c9f(0x2742),'msg':_0x3a16ef[_0x114c9f(0x524)]?JSON['stringify'](_0x3a16ef[_0x114c9f(0x524)]):_0x3a16ef[_0x114c9f(0xd5f)]()});}):_0x5da6dd[_0xbc7295(0x1b82)][_0xbc7295(0x16b4)]({'fields':_0xbc7295(0x7a7),'sort':_0xbc7295(0x19eb),'nolimit':_0xbc7295(0x1185)})['$promise'][_0xbc7295(0x146b)](function(_0x268cdd){const _0x5eef2f=_0xbc7295;_0x50dc44[_0x5eef2f(0xfe9)]=_0x268cdd[_0x5eef2f(0x19c7)]||[];})[_0xbc7295(0x146b)](function(){const _0xc0e53f=_0xbc7295;return _0x5da6dd[_0xc0e53f(0x1366)][_0xc0e53f(0x16b4)]({'userProfileId':_0x50dc44[_0xc0e53f(0x2321)][_0xc0e53f(0x209a)],'sectionId':0x195})[_0xc0e53f(0x2945)];})[_0xbc7295(0x146b)](function(_0x450a56){const _0x1a804a=_0xbc7295,_0x4d6d5f=_0x450a56&&_0x450a56[_0x1a804a(0x19c7)]?_0x450a56[_0x1a804a(0x19c7)][0x0]:null;if(!_0x4d6d5f)return _0x5da6dd[_0x1a804a(0x1b82)][_0x1a804a(0x16b4)]({'fields':_0x1a804a(0x7a7),'sort':_0x1a804a(0x19eb),'nolimit':_0x1a804a(0x1185),'defaultEntry':0x1})[_0x1a804a(0x2945)][_0x1a804a(0x146b)](function(_0x4838f7){const _0x31e6a5=_0x1a804a;_0x50dc44[_0x31e6a5(0xfe9)]=_0x4838f7['rows']||[];});else{if(!_0x4d6d5f[_0x1a804a(0x11d2)])return _0x5da6dd['userProfileResource'][_0x1a804a(0x16b4)]({'sectionId':_0x4d6d5f['id']})['$promise'][_0x1a804a(0x146b)](function(_0x208996){const _0x3278a3=_0x1a804a,_0x598a1d=_0x3f65c0()[_0x3278a3(0x205)](_0x208996[_0x3278a3(0x19c7)],function(_0x21b4f5){const _0x564b66=_0x3278a3;return _0x3f65c0()[_0x564b66(0xc84)](_0x50dc44[_0x564b66(0xfe9)],{'id':_0x21b4f5['resourceId']});});let _0x2b589b=null;_0x50dc44[_0x3278a3(0xaa4)]&&(_0x2b589b=_0x3f65c0()[_0x3278a3(0xc84)](_0x50dc44['contexts'],{'name':_0x50dc44['outboundroute'][_0x3278a3(0x1ac1)]}));if(_0x2b589b&&!_0x3f65c0()[_0x3278a3(0x1360)](_0x598a1d,['id',_0x2b589b['id']])){const _0x4eebcb=_0x3f65c0()[_0x3278a3(0xc84)](_0x50dc44[_0x3278a3(0xfe9)],{'id':_0x2b589b['id']});_0x4eebcb[_0x3278a3(0x8ff)]=![],_0x598a1d[_0x3278a3(0x1f47)](_0x4eebcb);}_0x50dc44[_0x3278a3(0xfe9)]=_0x598a1d;});}})[_0xbc7295(0x129e)](function(_0x3a63d5){const _0x279c27=_0xbc7295;_0x5efc07['error']({'title':_0x3a63d5['status']?'API:'+_0x3a63d5[_0x279c27(0x107b)]+_0x279c27(0x1315)+_0x3a63d5[_0x279c27(0x167f)]:_0x279c27(0x155e),'msg':_0x3a63d5[_0x279c27(0x524)]?JSON[_0x279c27(0x10bb)](_0x3a63d5[_0x279c27(0x524)]):_0x3a63d5[_0x279c27(0xd5f)]()});});function _0x412586(){const _0x5d1cf0=_0xbc7295;_0x53f33d['go'](_0x5d1cf0(0x2680),{},{'reload':_0x5d1cf0(0x2680)});}function _0x463449(){const _0x18354d=_0xbc7295;_0x5da6dd[_0x18354d(0xd47)][_0x18354d(0x18e1)]({'id':_0x50dc44[_0x18354d(0xaa4)]['id']},_0x50dc44[_0x18354d(0xaa4)])[_0x18354d(0x2945)]['then'](function(){const _0x2bd889=_0x18354d;_0x5efc07[_0x2bd889(0x1c75)]({'title':_0x2bd889(0x391),'msg':_0x50dc44[_0x2bd889(0xaa4)][_0x2bd889(0x19eb)]?_0x50dc44[_0x2bd889(0xaa4)][_0x2bd889(0x19eb)]+_0x2bd889(0x6b0):''});})[_0x18354d(0x129e)](function(_0x513bff){const _0x16c64a=_0x18354d;_0x5efc07[_0x16c64a(0x1980)]({'title':_0x513bff[_0x16c64a(0x107b)]?_0x16c64a(0x262a)+_0x513bff[_0x16c64a(0x107b)]+_0x16c64a(0x1315)+_0x513bff[_0x16c64a(0x167f)]:_0x16c64a(0x6df),'msg':_0x513bff[_0x16c64a(0x524)]?JSON[_0x16c64a(0x10bb)](_0x513bff['data']):_0x513bff['toString']()});});}}const _0x1457b4=_0x2ae63b;;const _0x58ef58=_0x4acfac['p']+_0x313a4d(0x371);;_0xca2d96[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1aa9),_0x313a4d(0x1862),_0x313a4d(0x15fe),'$mdDialog','$document',_0x313a4d(0x1abe),'$translate',_0x313a4d(0x7fb),_0x313a4d(0x26b6),'userProfileSection',_0x313a4d(0x247f),'msUtils',_0x313a4d(0x1fe4),'Auth',_0x313a4d(0x2690),_0x313a4d(0x15b9)];function _0xca2d96(_0x4d948a,_0x2b9068,_0x6ca887,_0x3b80a9,_0x5779ed,_0x1d8f68,_0x525f35,_0x6b3a24,_0x14d3bf,_0x1c62e6,_0x355099,_0x22db2f,_0x1a0064,_0x3c8f62,_0x253ea0,_0xad5c10,_0x2ae0df){const _0x13a8d3=_0x313a4d,_0x4153e5=this;_0x4153e5['license']=_0xad5c10,_0x4153e5['setting']=_0x2ae0df,_0x4153e5[_0x13a8d3(0x2321)]=_0x253ea0[_0x13a8d3(0xb12)](),_0x4153e5[_0x13a8d3(0x7fb)]=_0x14d3bf||{'count':0x0,'rows':[]},_0x4153e5[_0x13a8d3(0x26b6)]=_0x1c62e6,_0x4153e5[_0x13a8d3(0x1366)]=_0x355099&&_0x355099[_0x13a8d3(0x51c)]==0x1?_0x355099[_0x13a8d3(0x19c7)][0x0]:null,_0x4153e5[_0x13a8d3(0x2514)]=_0x253ea0[_0x13a8d3(0xe60)](_0x4153e5[_0x13a8d3(0x1366)]?_0x4153e5[_0x13a8d3(0x1366)][_0x13a8d3(0x2514)]:null),_0x4153e5[_0x13a8d3(0x768)]=_0x13a8d3(0x7fb),_0x4153e5[_0x13a8d3(0x216a)]='',_0x4153e5[_0x13a8d3(0x214f)]=null,_0x4153e5[_0x13a8d3(0x10d3)]=[],_0x4153e5['query']={'fields':'createdAt,updatedAt,id,appdata,type,exten,context,recordingFormat,cutdigits,description','type':_0x13a8d3(0xc9c),'sort':_0x13a8d3(0x12f2),'VoiceExtensionId':_0x13a8d3(0x203c),'limit':0xa,'page':0x1},_0x4153e5[_0x13a8d3(0x277d)]=_0x3f65c0()['keyBy']([{'option':_0x13a8d3(0x1642),'value':_0x13a8d3(0x1ac)},{'option':'wav','value':_0x13a8d3(0x13fd)},{'option':_0x13a8d3(0x306),'value':_0x13a8d3(0x834)},{'option':_0x13a8d3(0xdf0),'value':_0x13a8d3(0x5a3)}],function(_0x12c4a1){const _0x533224=_0x13a8d3;return _0x3f65c0()[_0x533224(0x5f4)](_0x12c4a1[_0x533224(0x175d)],new RegExp('\x27','g'),'');}),_0x4153e5[_0x13a8d3(0x23f9)]=_0x583b9a,_0x4153e5[_0x13a8d3(0xf0a)]=_0x64a432,_0x4153e5[_0x13a8d3(0x1c75)]=_0x1dc94f,_0x4153e5[_0x13a8d3(0xb96)]=_0xd53bdf,_0x4153e5[_0x13a8d3(0x1b2a)]=_0x5bfa57,_0x4153e5[_0x13a8d3(0x2519)]=_0x17b168,_0x4153e5[_0x13a8d3(0x860)]=_0x2f7caf,_0x4153e5['deleteSelectedOutboundRoutes']=_0x3b3d58,_0x4153e5[_0x13a8d3(0x1538)]=_0x43101c,_0x4153e5['selectAllOutboundRoutes']=_0x1d2daa,_0x253ea0[_0x13a8d3(0x23e0)](_0x13a8d3(0x174b))?_0x22db2f['voiceContext'][_0x13a8d3(0x16b4)]({'fields':'id,name','sort':_0x13a8d3(0x19eb),'nolimit':_0x13a8d3(0x1185)})[_0x13a8d3(0x2945)][_0x13a8d3(0x146b)](function(_0x944539){const _0x7afc74=_0x13a8d3;_0x4153e5[_0x7afc74(0xfe9)]=_0x944539[_0x7afc74(0x19c7)]||[];})[_0x13a8d3(0x129e)](function(_0x117dc2){const _0x8d9725=_0x13a8d3;_0x3c8f62[_0x8d9725(0x1980)]({'title':_0x117dc2[_0x8d9725(0x107b)]?_0x8d9725(0x262a)+_0x117dc2[_0x8d9725(0x107b)]+_0x8d9725(0x1315)+_0x117dc2[_0x8d9725(0x167f)]:'SYSTEM:GET_CONTEXTS','msg':_0x117dc2['data']?JSON[_0x8d9725(0x10bb)](_0x117dc2[_0x8d9725(0x524)]):_0x117dc2['toString']()});}):_0x22db2f[_0x13a8d3(0x1b82)][_0x13a8d3(0x16b4)]({'fields':'id,name','sort':'name','nolimit':'true'})[_0x13a8d3(0x2945)][_0x13a8d3(0x146b)](function(_0x8a9dc8){const _0x530bfa=_0x13a8d3;_0x4153e5[_0x530bfa(0xfe9)]=_0x8a9dc8['rows']||[];})[_0x13a8d3(0x146b)](function(){const _0x10ef1e=_0x13a8d3;return _0x22db2f[_0x10ef1e(0x1366)][_0x10ef1e(0x16b4)]({'userProfileId':_0x4153e5[_0x10ef1e(0x2321)]['userProfileId'],'sectionId':0x195})[_0x10ef1e(0x2945)];})[_0x13a8d3(0x146b)](function(_0x48a328){const _0x8e5db8=_0x13a8d3,_0x5dcd84=_0x48a328&&_0x48a328['rows']?_0x48a328[_0x8e5db8(0x19c7)][0x0]:null;if(!_0x5dcd84)return _0x22db2f['voiceContext'][_0x8e5db8(0x16b4)]({'fields':_0x8e5db8(0x7a7),'sort':_0x8e5db8(0x19eb),'nolimit':'true','defaultEntry':0x1})[_0x8e5db8(0x2945)][_0x8e5db8(0x146b)](function(_0x15bb25){const _0x1d225f=_0x8e5db8;_0x4153e5[_0x1d225f(0xfe9)]=_0x15bb25[_0x1d225f(0x19c7)]||[];});else{if(!_0x5dcd84[_0x8e5db8(0x11d2)])return _0x22db2f[_0x8e5db8(0xdcc)][_0x8e5db8(0x16b4)]({'sectionId':_0x5dcd84['id']})[_0x8e5db8(0x2945)][_0x8e5db8(0x146b)](function(_0x15e307){const _0xdf40c4=_0x8e5db8,_0xf9b76=_0x3f65c0()['map'](_0x15e307[_0xdf40c4(0x19c7)],function(_0x5f3139){const _0x170cd3=_0xdf40c4;return _0x3f65c0()[_0x170cd3(0xc84)](_0x4153e5[_0x170cd3(0xfe9)],{'id':_0x5f3139[_0x170cd3(0x18b8)]});});let _0x161147=null;_0x4153e5['outboundroute']&&(_0x161147=_0x3f65c0()[_0xdf40c4(0xc84)](_0x4153e5[_0xdf40c4(0xfe9)],{'name':_0x4153e5['outboundroute']['context']}));if(_0x161147&&!_0x3f65c0()[_0xdf40c4(0x1360)](_0xf9b76,['id',_0x161147['id']])){const _0x5d3464=_0x3f65c0()[_0xdf40c4(0xc84)](_0x4153e5[_0xdf40c4(0xfe9)],{'id':_0x161147['id']});_0x5d3464[_0xdf40c4(0x8ff)]=![],_0xf9b76[_0xdf40c4(0x1f47)](_0x5d3464);}_0x4153e5[_0xdf40c4(0xfe9)]=_0xf9b76;});}})[_0x13a8d3(0x129e)](function(_0xcfa890){const _0x3c2da8=_0x13a8d3;_0x3c8f62['error']({'title':_0xcfa890[_0x3c2da8(0x107b)]?_0x3c2da8(0x262a)+_0xcfa890[_0x3c2da8(0x107b)]+_0x3c2da8(0x1315)+_0xcfa890['statusText']:_0x3c2da8(0x155e),'msg':_0xcfa890[_0x3c2da8(0x524)]?JSON[_0x3c2da8(0x10bb)](_0xcfa890[_0x3c2da8(0x524)]):_0xcfa890[_0x3c2da8(0xd5f)]()});});function _0x583b9a(_0x1344a9){const _0x14a312=_0x13a8d3;_0x6ca887['go'](_0x14a312(0x41e),{'id':_0x1344a9['id'],'outboundroute':_0x1344a9,'crudPermissions':_0x4153e5['crudPermissions']});}function _0x64a432(_0x1a2bc8,_0x2f26de){const _0x4023b5=_0x13a8d3,_0xe8032a=_0x5779ed[_0x4023b5(0x1e8a)]()[_0x4023b5(0x1189)](_0x4023b5(0xdb2)+_0x3f65c0()[_0x4023b5(0x20d1)](_0x4023b5(0xaa4))+'?')[_0x4023b5(0x1cbe)](_0x4023b5(0x16d3)+(_0x1a2bc8['name']||'outboundroute')+_0x4023b5(0x252f)+'\x20will\x20be\x20deleted.')['ariaLabel']('delete\x20outboundroute')[_0x4023b5(0x1f27)](_0x2f26de)['ok']('OK')[_0x4023b5(0x6c3)](_0x4023b5(0x39a));_0x5779ed[_0x4023b5(0x2615)](_0xe8032a)[_0x4023b5(0x146b)](function(){_0x17b168(_0x1a2bc8);},function(){const _0x47187a=_0x4023b5;console[_0x47187a(0x1a74)](_0x47187a(0x39a));});}let _0x114230=!![],_0x3a3971=0x1;_0x4d948a[_0x13a8d3(0x21e8)](_0x13a8d3(0x2669),function(_0x4b6f2d,_0x1b5c51){const _0x166adf=_0x13a8d3;_0x114230?_0x525f35(function(){_0x114230=![];}):(!_0x1b5c51&&(_0x3a3971=_0x4153e5[_0x166adf(0x1a56)][_0x166adf(0x844)]),_0x4b6f2d!==_0x1b5c51&&(_0x4153e5[_0x166adf(0x1a56)][_0x166adf(0x844)]=0x1),!_0x4b6f2d&&(_0x4153e5[_0x166adf(0x1a56)]['page']=_0x3a3971),_0x4153e5['getOutboundRoutes']());});function _0x1dc94f(_0x36d1ed){const _0x528e06=_0x13a8d3;_0x4153e5[_0x528e06(0x7fb)]=_0x36d1ed||{'count':0x0,'rows':[]};}function _0xd53bdf(){const _0x5575d0=_0x13a8d3;_0x4153e5[_0x5575d0(0x1a56)][_0x5575d0(0x145d)]=(_0x4153e5[_0x5575d0(0x1a56)][_0x5575d0(0x844)]-0x1)*_0x4153e5[_0x5575d0(0x1a56)]['limit'],_0x253ea0[_0x5575d0(0x23e0)](_0x5575d0(0x174b))?_0x4153e5[_0x5575d0(0xb9c)]=_0x22db2f['voiceExtension'][_0x5575d0(0x16b4)](_0x4153e5[_0x5575d0(0x1a56)],_0x1dc94f)[_0x5575d0(0x2945)]:(_0x4153e5[_0x5575d0(0x1a56)]['id']=_0x4153e5['userProfile']['id'],_0x4153e5[_0x5575d0(0x1a56)]['section']=_0x5575d0(0x1c80),_0x4153e5[_0x5575d0(0xb9c)]=_0x22db2f[_0x5575d0(0x26b6)]['getResources'](_0x4153e5[_0x5575d0(0x1a56)],_0x1dc94f)['$promise']);}function _0x5bfa57(_0x1de22f,_0x3825a2){const _0x4b1352=_0x13a8d3;_0x5779ed['show']({'controller':'CreateOrEditOutboundRouteDialogController','controllerAs':'vm','templateUrl':_0x58ef58,'parent':angular['element'](_0x1d8f68[_0x4b1352(0x2586)]),'targetEvent':_0x1de22f,'clickOutsideToClose':!![],'locals':{'outboundroute':_0x3825a2,'outboundroutes':_0x4153e5[_0x4b1352(0x7fb)][_0x4b1352(0x19c7)],'license':_0x4153e5['license'],'setting':_0x4153e5['setting'],'crudPermissions':_0x4153e5[_0x4b1352(0x2514)]}});}function _0x17b168(_0x4739c6){const _0x438286=_0x13a8d3;_0x22db2f[_0x438286(0xc0f)]['get']({'VoiceExtensionId':_0x4739c6['id']})[_0x438286(0x2945)][_0x438286(0x146b)](function(_0x26b7d5){const _0x4780b=_0x438286;if(_0x26b7d5&&_0x26b7d5[_0x4780b(0x19c7)]&&_0x26b7d5['rows'][_0x4780b(0x402)]>0x0)return _0x3c8f62[_0x4780b(0x1980)]({'title':_0x4780b(0xfa),'msg':_0x4780b(0x2c1)});else _0x22db2f[_0x4780b(0xd47)][_0x4780b(0x1fac)]({'id':_0x4739c6['id']})[_0x4780b(0x2945)][_0x4780b(0x146b)](function(){const _0x4e396a=_0x4780b;_0x3f65c0()[_0x4e396a(0x2640)](_0x4153e5[_0x4e396a(0x7fb)][_0x4e396a(0x19c7)],{'id':_0x4739c6['id']}),_0x4153e5[_0x4e396a(0x7fb)]['count']-=0x1,!_0x4153e5[_0x4e396a(0x7fb)][_0x4e396a(0x19c7)]['length']&&_0x4153e5[_0x4e396a(0xb96)](),_0x3c8f62['success']({'title':_0x3f65c0()['startCase'](_0x4e396a(0x1a8f))+'\x20deleted!','msg':_0x4739c6['name']?_0x4739c6['name']+_0x4e396a(0x23e3):''});})['catch'](function(_0x19c678){const _0x5d0374=_0x4780b;if(_0x19c678['data']&&_0x19c678['data'][_0x5d0374(0xcef)]&&_0x19c678[_0x5d0374(0x524)][_0x5d0374(0xcef)][_0x5d0374(0x402)]){_0x4153e5[_0x5d0374(0xcef)]=_0x19c678[_0x5d0374(0x524)][_0x5d0374(0xcef)]||[{'message':_0x19c678[_0x5d0374(0xd5f)](),'type':'SYSTEM:DELETEvoiceExtension'}];for(let _0x94f242=0x0;_0x94f242<_0x19c678[_0x5d0374(0x524)]['errors'][_0x5d0374(0x402)];_0x94f242++){_0x3c8f62[_0x5d0374(0x1980)]({'title':_0x19c678['data'][_0x5d0374(0xcef)][_0x94f242][_0x5d0374(0x1142)],'msg':_0x19c678[_0x5d0374(0x524)]['errors'][_0x94f242][_0x5d0374(0x7fd)]});}}else _0x3c8f62[_0x5d0374(0x1980)]({'title':_0x19c678['status']?_0x5d0374(0x262a)+_0x19c678[_0x5d0374(0x107b)]+_0x5d0374(0x1315)+_0x19c678[_0x5d0374(0x167f)]:_0x5d0374(0x1c36),'msg':_0x19c678[_0x5d0374(0x524)]?JSON[_0x5d0374(0x10bb)](_0x19c678['data'][_0x5d0374(0x7fd)]):_0x19c678[_0x5d0374(0x7fd)]||_0x19c678['toString']()});});});}function _0x2f7caf(){const _0x412cd7=_0x13a8d3,_0x5e594c=angular['copy'](_0x4153e5[_0x412cd7(0x10d3)]);return _0x4153e5[_0x412cd7(0x10d3)]=[],_0x5e594c;}function _0x3b3d58(_0x5600cf){const _0x3d6484=_0x13a8d3,_0x2dd3b3=_0x5779ed['confirm']()[_0x3d6484(0x1189)](_0x3d6484(0x16b9))[_0x3d6484(0x1cbe)](_0x3d6484(0x16d3)+_0x4153e5[_0x3d6484(0x10d3)][_0x3d6484(0x402)]+_0x3d6484(0x2452)+'\x20will\x20be\x20deleted.')[_0x3d6484(0x4bd)](_0x3d6484(0x1da0))[_0x3d6484(0x1f27)](_0x5600cf)['ok']('OK')[_0x3d6484(0x6c3)](_0x3d6484(0x39a));_0x5779ed[_0x3d6484(0x2615)](_0x2dd3b3)[_0x3d6484(0x146b)](function(){const _0x14f0c0=_0x3d6484;_0x4153e5[_0x14f0c0(0x10d3)]['forEach'](function(_0x56ad10){_0x17b168(_0x56ad10);}),_0x4153e5['selectedOutboundRoutes']=[];});}function _0x43101c(){const _0x1e49ec=_0x13a8d3;_0x4153e5[_0x1e49ec(0x10d3)]=[];}function _0x1d2daa(){const _0x320688=_0x13a8d3;_0x4153e5['selectedOutboundRoutes']=_0x4153e5[_0x320688(0x7fb)][_0x320688(0x19c7)];}}const _0x47510f=_0xca2d96;;_0x455155['$inject']=[_0x313a4d(0x910),_0x313a4d(0x1862),_0x313a4d(0xd08),_0x313a4d(0x10e8),'$q',_0x313a4d(0x214b),'toasty','voicemails',_0x313a4d(0x356),_0x313a4d(0x247f),_0x313a4d(0xa87),_0x313a4d(0x2690),_0x313a4d(0x15b9),'crudPermissions'];function _0x455155(_0x394ab2,_0x1a4675,_0x36c2d2,_0x4bf709,_0x4f7a0b,_0x398470,_0x1fca0e,_0x3f7da1,_0x52fb07,_0x4fa6bd,_0x2160a8,_0x65777e,_0x5763e2,_0xf73869){const _0x18013a=_0x313a4d,_0x1c7f41=this;_0x1c7f41[_0x18013a(0x2321)]=_0x2160a8[_0x18013a(0xb12)](),_0x1c7f41['errors']=[],_0x1c7f41[_0x18013a(0x15b9)]=_0x5763e2,_0x1c7f41[_0x18013a(0x2690)]=_0x65777e,_0x1c7f41[_0x18013a(0x2514)]=_0xf73869,_0x1c7f41[_0x18013a(0x855)]={},_0x1c7f41[_0x18013a(0x2251)]=_0x1c7f41['setting']&&_0x1c7f41[_0x18013a(0x15b9)][_0x18013a(0x976)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1c7f41[_0x18013a(0x1189)]=_0x18013a(0xff7),_0x1c7f41['voicemail']=angular['copy'](_0x52fb07),_0x1c7f41[_0x18013a(0x28e7)]=_0x3f7da1,_0x1c7f41['newVoicemail']=![];!_0x1c7f41[_0x18013a(0x356)]&&(_0x1c7f41[_0x18013a(0x356)]={'attach':'no'},_0x1c7f41['title']=_0x18013a(0x69d),_0x1c7f41[_0x18013a(0x18f5)]=!![]);_0x1c7f41[_0x18013a(0x1fd0)]=_0x53179c,_0x1c7f41[_0x18013a(0x293c)]=_0x161691,_0x1c7f41['deleteVoicemail']=_0x3644d8,_0x1c7f41[_0x18013a(0xe73)]=_0x338018,_0x1c7f41[_0x18013a(0x13f3)]=_0x593dd1;function _0x53179c(){const _0x2d7207=_0x18013a;_0x1c7f41[_0x2d7207(0xcef)]=[],_0x4fa6bd[_0x2d7207(0xe8c)]['save'](_0x1c7f41[_0x2d7207(0x356)])[_0x2d7207(0x2945)][_0x2d7207(0x146b)](function(_0x684376){const _0x27efc7=_0x2d7207;_0x1c7f41[_0x27efc7(0x28e7)][_0x27efc7(0xb3d)](_0x684376['toJSON']()),_0x1fca0e[_0x27efc7(0x1c75)]({'title':_0x27efc7(0x630),'msg':_0x1c7f41[_0x27efc7(0x356)][_0x27efc7(0x19eb)]?_0x1c7f41[_0x27efc7(0x356)][_0x27efc7(0x19eb)]+_0x27efc7(0x1386):''}),_0x593dd1(_0x684376);})['catch'](function(_0xfc56cc){const _0x5f1f28=_0x2d7207;if(_0xfc56cc['data']&&_0xfc56cc[_0x5f1f28(0x524)][_0x5f1f28(0xcef)]&&_0xfc56cc[_0x5f1f28(0x524)][_0x5f1f28(0xcef)][_0x5f1f28(0x402)]){_0x1c7f41['errors']=_0xfc56cc[_0x5f1f28(0x524)][_0x5f1f28(0xcef)]||[{'message':_0xfc56cc[_0x5f1f28(0xd5f)](),'type':_0x5f1f28(0x1e5)}];for(let _0x471f1a=0x0;_0x471f1a<_0xfc56cc['data'][_0x5f1f28(0xcef)]['length'];_0x471f1a+=0x1){_0x1fca0e[_0x5f1f28(0x1980)]({'title':_0xfc56cc[_0x5f1f28(0x524)][_0x5f1f28(0xcef)][_0x471f1a][_0x5f1f28(0x1142)],'msg':_0xfc56cc[_0x5f1f28(0x524)][_0x5f1f28(0xcef)][_0x471f1a]['message']});}}else _0x1fca0e[_0x5f1f28(0x1980)]({'title':_0xfc56cc[_0x5f1f28(0x107b)]?'API:'+_0xfc56cc[_0x5f1f28(0x107b)]+_0x5f1f28(0x1315)+_0xfc56cc['statusText']:_0x5f1f28(0x1e5),'msg':_0xfc56cc[_0x5f1f28(0x524)]?JSON[_0x5f1f28(0x10bb)](_0xfc56cc['data']['message']):_0xfc56cc[_0x5f1f28(0xd5f)]()});});}function _0x161691(){const _0x508700=_0x18013a;_0x1c7f41['errors']=[],_0x4fa6bd[_0x508700(0xe8c)][_0x508700(0x18e1)]({'id':_0x1c7f41[_0x508700(0x356)]['id']},_0x1c7f41[_0x508700(0x356)])[_0x508700(0x2945)]['then'](function(_0x328591){const _0x2325fb=_0x508700,_0x5efdee=_0x3f65c0()['find'](_0x1c7f41['voicemails'],{'id':_0x328591['id']});_0x5efdee&&_0x3f65c0()[_0x2325fb(0x168d)](_0x5efdee,_0x3f65c0()[_0x2325fb(0x40e)](_0x328591[_0x2325fb(0x2488)](),_0x3f65c0()[_0x2325fb(0x627)](_0x5efdee))),_0x1fca0e[_0x2325fb(0x1c75)]({'title':_0x2325fb(0x150b),'msg':_0x1c7f41['voicemail']['name']?_0x1c7f41['voicemail'][_0x2325fb(0x19eb)]+_0x2325fb(0x24db):''}),_0x593dd1(_0x328591);})['catch'](function(_0x3b1c94){const _0x57f37a=_0x508700;if(_0x3b1c94[_0x57f37a(0x524)]&&_0x3b1c94['data'][_0x57f37a(0xcef)]&&_0x3b1c94[_0x57f37a(0x524)]['errors'][_0x57f37a(0x402)]){_0x1c7f41[_0x57f37a(0xcef)]=_0x3b1c94[_0x57f37a(0x524)][_0x57f37a(0xcef)]||[{'message':_0x3b1c94[_0x57f37a(0xd5f)](),'type':'api.voiceMail.update'}];for(let _0x4387b5=0x0;_0x4387b5<_0x3b1c94[_0x57f37a(0x524)][_0x57f37a(0xcef)][_0x57f37a(0x402)];_0x4387b5++){_0x1fca0e[_0x57f37a(0x1980)]({'title':_0x3b1c94[_0x57f37a(0x524)][_0x57f37a(0xcef)][_0x4387b5][_0x57f37a(0x1142)],'msg':_0x3b1c94[_0x57f37a(0x524)][_0x57f37a(0xcef)][_0x4387b5][_0x57f37a(0x7fd)]});}}else _0x1fca0e['error']({'title':_0x3b1c94[_0x57f37a(0x107b)]?'API:'+_0x3b1c94[_0x57f37a(0x107b)]+_0x57f37a(0x1315)+_0x3b1c94[_0x57f37a(0x167f)]:'api.voiceMail.update','msg':_0x3b1c94[_0x57f37a(0x524)]?JSON[_0x57f37a(0x10bb)](_0x3b1c94[_0x57f37a(0x524)][_0x57f37a(0x7fd)]):_0x3b1c94[_0x57f37a(0xd5f)]()});});}function _0x3644d8(_0x9f6ff1){const _0x14072f=_0x18013a;_0x1c7f41[_0x14072f(0xcef)]=[];const _0x323b26=_0x4bf709[_0x14072f(0x1e8a)]()[_0x14072f(0x1189)](_0x14072f(0x1d64))[_0x14072f(0x80f)]('The\x20voicemail\x20will\x20be\x20deleted.')[_0x14072f(0x4bd)](_0x14072f(0x24d7))['ok'](_0x14072f(0x25de))[_0x14072f(0x6c3)](_0x14072f(0xcf0))[_0x14072f(0x1f27)](_0x9f6ff1);_0x4bf709[_0x14072f(0x2615)](_0x323b26)[_0x14072f(0x146b)](function(){const _0x2c3d15=_0x14072f;_0x4fa6bd[_0x2c3d15(0xe8c)][_0x2c3d15(0x1fac)]({'id':_0x1c7f41[_0x2c3d15(0x356)]['id']})['$promise'][_0x2c3d15(0x146b)](function(){const _0x5cb2b3=_0x2c3d15;_0x3f65c0()['remove'](_0x1c7f41[_0x5cb2b3(0x28e7)],{'id':_0x1c7f41[_0x5cb2b3(0x356)]['id']}),_0x1fca0e['success']({'title':_0x5cb2b3(0x25bc),'msg':(_0x1c7f41[_0x5cb2b3(0x356)][_0x5cb2b3(0x19eb)]||_0x5cb2b3(0x356))+_0x5cb2b3(0x23e3)}),_0x593dd1(_0x1c7f41[_0x5cb2b3(0x356)]);})[_0x2c3d15(0x129e)](function(_0x119051){const _0x266078=_0x2c3d15;if(_0x119051[_0x266078(0x524)]&&_0x119051['data'][_0x266078(0xcef)]&&_0x119051[_0x266078(0x524)]['errors'][_0x266078(0x402)]){_0x1c7f41['errors']=_0x119051[_0x266078(0x524)][_0x266078(0xcef)]||[{'message':_0x119051[_0x266078(0xd5f)](),'type':_0x266078(0x28e0)}];for(let _0x358626=0x0;_0x358626<_0x119051[_0x266078(0x524)][_0x266078(0xcef)]['length'];_0x358626++){_0x1fca0e[_0x266078(0x1980)]({'title':_0x119051[_0x266078(0x524)][_0x266078(0xcef)][_0x358626][_0x266078(0x1142)],'msg':_0x119051['data'][_0x266078(0xcef)][_0x358626]['message']});}}else _0x1fca0e[_0x266078(0x1980)]({'title':_0x119051['status']?'API:'+_0x119051['status']+_0x266078(0x1315)+_0x119051['statusText']:_0x266078(0x28e0),'msg':_0x119051[_0x266078(0x524)]?JSON[_0x266078(0x10bb)](_0x119051[_0x266078(0x524)][_0x266078(0x7fd)]):_0x119051[_0x266078(0x7fd)]||_0x119051[_0x266078(0xd5f)]()});});},function(){});}function _0x338018(_0x538411){return _0x538411===null?undefined:new Date(_0x538411);}function _0x593dd1(_0x3fdc4f){_0x4bf709['hide'](_0x3fdc4f);}}const _0x19b629=_0x455155;;_0x4b844a[_0x313a4d(0x11c2)]=[_0x313a4d(0x23df),_0x313a4d(0x910),'$state','$q',_0x313a4d(0x214b),_0x313a4d(0x1abe),'$mdDialog','$document',_0x313a4d(0x1fe4),'api',_0x313a4d(0xa87)];function _0x4b844a(_0x3b3cad,_0x5e5503,_0x50ba6a,_0x307180,_0xe6e48b,_0x28a6c0,_0x2d22fd,_0x26b396,_0x5cb562,_0x2c7519,_0x2de9d8){const _0x4facfc=_0x313a4d,_0x12359e=this;_0x12359e[_0x4facfc(0x2321)]=_0x2de9d8['getCurrentUser'](),_0x12359e[_0x4facfc(0x356)]={},_0x12359e[_0x4facfc(0x149f)]={'count':0x0,'rows':[]},_0x12359e[_0x4facfc(0x20e8)]=[],_0x12359e[_0x4facfc(0x2514)],_0x12359e['query']={'fields':_0x4facfc(0x7bf),'sort':_0x4facfc(0x23c8),'limit':0xa,'page':0x1},_0x12359e[_0x4facfc(0x5aa)]=_0x20ad39,_0x12359e[_0x4facfc(0x19b4)]=_0x4c5f22,_0x12359e[_0x4facfc(0x45c)]=_0x12bfbf,_0x12359e[_0x4facfc(0x1c75)]=_0x1518cc,_0x12359e[_0x4facfc(0x45f)]=_0x38908c,_0x12359e[_0x4facfc(0x92a)]=_0x35717a,_0x12359e[_0x4facfc(0x952)]=_0x16acef,_0x12359e[_0x4facfc(0x1eea)]=_0x142956;function _0x20ad39(_0x26b883,_0x23d857){const _0x4a2f07=_0x4facfc;_0x12359e[_0x4a2f07(0x356)]=_0x26b883,_0x12359e[_0x4a2f07(0x2514)]=typeof _0x23d857!=='undefined'?_0x23d857:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x12359e['query']['id']=_0x12359e[_0x4a2f07(0x356)]['id'],_0x38908c();}function _0x12bfbf(_0x3c3bab,_0x3f73c5,_0x267c01){const _0x3f3f32=_0x4facfc;return _0x2c7519[_0x3f3f32(0x2f3)][_0x3f3f32(0x15b1)]({'id':_0x3c3bab['id'],'exists':!![],'attachments':_0x267c01})[_0x3f3f32(0x2945)][_0x3f3f32(0x146b)](function(_0x4fc91d){const _0x22ac8c=_0x3f3f32,_0x325246=[_0x4fc91d['buffer']];let _0x113d33=_0x22ac8c(0x7fd)+_0x3c3bab['id'];const _0x5c82d4=new Blob(_0x325246,{'type':_0x4fc91d[_0x22ac8c(0x1142)]});_0x113d33=_0x3c3bab[_0x22ac8c(0x1f1c)]+'.wav';const _0x45fbda=window['document'][_0x22ac8c(0x24ec)]('a');_0x45fbda[_0x22ac8c(0x1652)]('href',URL['createObjectURL'](_0x5c82d4)),_0x45fbda['setAttribute'](_0x22ac8c(0x15b1),_0x113d33),document[_0x22ac8c(0x2586)][_0x22ac8c(0x23e)](_0x45fbda),_0x45fbda[_0x22ac8c(0x1fa5)]();})['catch'](function(_0x5706a8){const _0x131399=_0x3f3f32;if(_0x5706a8['data']&&_0x5706a8[_0x131399(0x524)]['errors']&&_0x5706a8['data'][_0x131399(0xcef)]['length'])for(let _0x1c673b=0x0;_0x1c673b<_0x5706a8[_0x131399(0x524)]['errors']['length'];_0x1c673b+=0x1){_0x5cb562[_0x131399(0x1980)]({'title':_0x5706a8['data']['errors'][_0x1c673b]['type'],'msg':_0x5706a8[_0x131399(0x524)][_0x131399(0xcef)][_0x1c673b][_0x131399(0x7fd)]});}else _0x5cb562['error']({'title':_0x5706a8[_0x131399(0x107b)]?_0x131399(0x262a)+_0x5706a8['status']+_0x131399(0x1315)+_0x5706a8[_0x131399(0x167f)]:_0x131399(0x1e5),'msg':_0x5706a8['data']?JSON[_0x131399(0x10bb)](_0x5706a8[_0x131399(0x524)][_0x131399(0x7fd)]):_0x5706a8[_0x131399(0xd5f)]()});});}function _0x4c5f22(_0x1e862c,_0x29c3f4){const _0x3122cc=_0x4facfc,_0x9a15e0=_0x2d22fd[_0x3122cc(0x1e8a)]()[_0x3122cc(0x1189)](_0x3122cc(0x116b))[_0x3122cc(0x1cbe)](_0x3122cc(0x16d3)+(_0x1e862c['name']||_0x1e862c['id']&&_0x3f65c0()['upperFirst'](_0x3122cc(0xf3e))+_0x1e862c['id']||_0x3122cc(0x7fd))+_0x3122cc(0x252f)+_0x3122cc(0xe01))[_0x3122cc(0x4bd)]('delete\x20message')[_0x3122cc(0x1f27)](_0x29c3f4)['ok']('OK')[_0x3122cc(0x6c3)](_0x3122cc(0x39a));_0x2d22fd['show'](_0x9a15e0)[_0x3122cc(0x146b)](function(){_0x16acef(_0x1e862c);},function(){const _0x8c5f04=_0x3122cc;console['log'](_0x8c5f04(0x39a));});}function _0x1518cc(_0x2b13b2){const _0x2237d4=_0x4facfc;_0x12359e[_0x2237d4(0x149f)]=_0x2b13b2||{'count':0x0,'rows':[]};}function _0x38908c(){const _0x51e360=_0x4facfc;_0x12359e[_0x51e360(0x1a56)][_0x51e360(0x145d)]=(_0x12359e[_0x51e360(0x1a56)][_0x51e360(0x844)]-0x1)*_0x12359e[_0x51e360(0x1a56)]['limit'],_0x12359e['promise']=_0x2c7519[_0x51e360(0xe8c)][_0x51e360(0x1c0f)](_0x12359e['query'],_0x1518cc)[_0x51e360(0x2945)];}function _0x16acef(_0x85325){const _0x30d585=_0x4facfc;_0x2c7519[_0x30d585(0x2f3)][_0x30d585(0x1fac)]({'id':_0x85325['id']})[_0x30d585(0x2945)]['then'](function(){const _0x240212=_0x30d585;_0x3f65c0()['remove'](_0x12359e[_0x240212(0x149f)]['rows'],{'id':_0x85325['id']}),_0x12359e[_0x240212(0x149f)][_0x240212(0x51c)]-=0x1,!_0x12359e['voicemailMessages']['rows']['length']&&_0x38908c(),_0x5cb562[_0x240212(0x1c75)]({'title':_0x240212(0x3a1),'msg':_0x85325[_0x240212(0x19eb)]?_0x85325[_0x240212(0x19eb)]+_0x240212(0x23e3):''});})[_0x30d585(0x129e)](function(_0x5cdd89){const _0x5319e4=_0x30d585;if(_0x5cdd89[_0x5319e4(0x524)]&&_0x5cdd89['data']['errors']&&_0x5cdd89[_0x5319e4(0x524)]['errors'][_0x5319e4(0x402)]){_0x12359e[_0x5319e4(0xcef)]=_0x5cdd89['data']['errors']||[{'message':_0x5cdd89[_0x5319e4(0xd5f)](),'type':_0x5319e4(0x18db)}];for(let _0x39e448=0x0;_0x39e448<_0x5cdd89[_0x5319e4(0x524)][_0x5319e4(0xcef)][_0x5319e4(0x402)];_0x39e448++){_0x5cb562['error']({'title':_0x5cdd89['data'][_0x5319e4(0xcef)][_0x39e448][_0x5319e4(0x1142)],'msg':_0x5cdd89['data']['errors'][_0x39e448][_0x5319e4(0x7fd)]});}}else _0x5cb562[_0x5319e4(0x1980)]({'title':_0x5cdd89[_0x5319e4(0x107b)]?_0x5319e4(0x262a)+_0x5cdd89[_0x5319e4(0x107b)]+_0x5319e4(0x1315)+_0x5cdd89[_0x5319e4(0x167f)]:_0x5319e4(0x18db),'msg':_0x5cdd89[_0x5319e4(0x524)]?JSON['stringify'](_0x5cdd89[_0x5319e4(0x524)]['message']):_0x5cdd89[_0x5319e4(0x7fd)]||_0x5cdd89[_0x5319e4(0xd5f)]()});});}function _0x35717a(){const _0x45561f=_0x4facfc,_0x3d34cb=angular['copy'](_0x12359e[_0x45561f(0x20e8)]);return _0x12359e[_0x45561f(0x20e8)]=[],_0x3d34cb;}function _0x142956(_0x1f3548){const _0x4b46aa=_0x4facfc,_0xba2db2=_0x2d22fd['confirm']()[_0x4b46aa(0x1189)](_0x4b46aa(0x1fc4))[_0x4b46aa(0x1cbe)](_0x4b46aa(0x16d3)+_0x12359e[_0x4b46aa(0x20e8)][_0x4b46aa(0x402)]+_0x4b46aa(0x2452)+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x4b46aa(0x1bf9))['targetEvent'](_0x1f3548)['ok']('OK')[_0x4b46aa(0x6c3)](_0x4b46aa(0x39a));_0x2d22fd[_0x4b46aa(0x2615)](_0xba2db2)['then'](function(){const _0x59d38a=_0x4b46aa;_0x12359e['selectedVoicemailMessages'][_0x59d38a(0x1df5)](function(_0x5787e2){_0x16acef(_0x5787e2);}),_0x12359e['selectedVoicemailMessages']=[];});}let _0x13eb11=!![],_0x121ccc=0x1;_0x5e5503[_0x4facfc(0x21e8)](_0x4facfc(0x117f),function(_0x4914e5,_0x439d91){const _0x414a17=_0x4facfc;_0x13eb11?_0x28a6c0(function(){_0x13eb11=![];}):(!_0x439d91&&(_0x121ccc=_0x12359e[_0x414a17(0x1a56)][_0x414a17(0x844)]),_0x4914e5!==_0x439d91&&(_0x12359e[_0x414a17(0x1a56)][_0x414a17(0x844)]=0x1),!_0x4914e5&&(_0x12359e[_0x414a17(0x1a56)][_0x414a17(0x844)]=_0x121ccc),_0x38908c());});}const _0x15f9c3=_0x4b844a;;_0x53eda3[_0x313a4d(0x11c2)]=[_0x313a4d(0x1862),'$location','$mdDialog',_0x313a4d(0x4d8),'$translate',_0x313a4d(0x2690),_0x313a4d(0x15b9),_0x313a4d(0x247f),'toasty',_0x313a4d(0xa87),'voicemail',_0x313a4d(0x1366)];function _0x53eda3(_0x469724,_0x1fac53,_0x19e566,_0x8a53a7,_0x51895f,_0x200687,_0x548aad,_0x53cab0,_0x1ef0b1,_0x5dfe0b,_0x27e353,_0x2b66c5){const _0x3611a6=_0x313a4d,_0x58b82f=this;_0x58b82f[_0x3611a6(0x2321)]=_0x5dfe0b[_0x3611a6(0xb12)](),_0x58b82f[_0x3611a6(0x2690)]=_0x200687,_0x58b82f['setting']=_0x548aad,_0x58b82f['passwordPattern']=_0x58b82f[_0x3611a6(0x15b9)][_0x3611a6(0x976)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x58b82f['location']=_0x1fac53[_0x3611a6(0x2414)]()+_0x3611a6(0xb0e)+_0x1fac53[_0x3611a6(0x148e)](),_0x58b82f[_0x3611a6(0x356)]=_0x27e353||_0x469724[_0x3611a6(0x16a)][_0x3611a6(0x356)]||{},_0x58b82f['userProfileSection']=_0x2b66c5&&_0x2b66c5['count']==0x1?_0x2b66c5[_0x3611a6(0x19c7)][0x0]:null,_0x58b82f['crudPermissions']=_0x5dfe0b[_0x3611a6(0xe60)](_0x58b82f['userProfileSection']?_0x58b82f[_0x3611a6(0x1366)][_0x3611a6(0x2514)]:null),_0x58b82f[_0x3611a6(0x855)]={},_0x58b82f[_0x3611a6(0x1b09)]=_0x469724[_0x3611a6(0x16a)][_0x3611a6(0x13a3)]||0x0,_0x58b82f[_0x3611a6(0x861)]=_0x1ef0b1[_0x3611a6(0x271e)],_0x58b82f[_0x3611a6(0x190e)]=_0x58b2aa,_0x58b82f['saveVoicemail']=_0x35c4e7,_0x5dfe0b['hasRole'](_0x3611a6(0x174b))?_0x53cab0['voiceContext'][_0x3611a6(0x16b4)]({'fields':_0x3611a6(0x7a7),'sort':'name'})[_0x3611a6(0x2945)][_0x3611a6(0x146b)](function(_0x5b08bf){const _0x4f0e2f=_0x3611a6;_0x58b82f[_0x4f0e2f(0xfe9)]=_0x5b08bf[_0x4f0e2f(0x19c7)]||[];})[_0x3611a6(0x129e)](function(_0x1f1b5b){const _0x471525=_0x3611a6;_0x1ef0b1['error']({'title':_0x1f1b5b['status']?_0x471525(0x262a)+_0x1f1b5b[_0x471525(0x107b)]+_0x471525(0x1315)+_0x1f1b5b[_0x471525(0x167f)]:'SYSTEM:GET_CONTEXTS','msg':_0x1f1b5b[_0x471525(0x524)]?JSON[_0x471525(0x10bb)](_0x1f1b5b[_0x471525(0x524)]):_0x1f1b5b[_0x471525(0xd5f)]()});}):_0x53cab0[_0x3611a6(0x1b82)][_0x3611a6(0x16b4)]({'fields':_0x3611a6(0x7a7),'sort':_0x3611a6(0x19eb)})[_0x3611a6(0x2945)][_0x3611a6(0x146b)](function(_0x21eed3){const _0x1ea50d=_0x3611a6;_0x58b82f[_0x1ea50d(0xfe9)]=_0x21eed3[_0x1ea50d(0x19c7)]||[];})['then'](function(){const _0x430763=_0x3611a6;return _0x53cab0['userProfileSection'][_0x430763(0x16b4)]({'userProfileId':_0x58b82f['currentUser'][_0x430763(0x209a)],'sectionId':0x195})[_0x430763(0x2945)];})[_0x3611a6(0x146b)](function(_0x25606b){const _0x3cbbef=_0x3611a6,_0xe48f5e=_0x25606b&&_0x25606b[_0x3cbbef(0x19c7)]?_0x25606b[_0x3cbbef(0x19c7)][0x0]:null;if(!_0xe48f5e)return _0x53cab0[_0x3cbbef(0x1b82)]['get']({'fields':_0x3cbbef(0x7a7),'sort':'name','defaultEntry':0x1})['$promise'][_0x3cbbef(0x146b)](function(_0x5141b7){const _0x5a4e87=_0x3cbbef;_0x58b82f[_0x5a4e87(0xfe9)]=_0x5141b7['rows']||[];});else{if(!_0xe48f5e[_0x3cbbef(0x11d2)])return _0x53cab0[_0x3cbbef(0xdcc)][_0x3cbbef(0x16b4)]({'sectionId':_0xe48f5e['id']})[_0x3cbbef(0x2945)]['then'](function(_0x338b0b){const _0x4afbde=_0x3cbbef,_0x807e00=_0x3f65c0()[_0x4afbde(0x205)](_0x338b0b[_0x4afbde(0x19c7)],function(_0x5330e1){const _0x2ba6b8=_0x4afbde;return _0x3f65c0()[_0x2ba6b8(0xc84)](_0x58b82f[_0x2ba6b8(0xfe9)],{'id':_0x5330e1['resourceId']});});let _0x56dfdc=null;_0x58b82f['voicemail']&&(_0x56dfdc=_0x3f65c0()[_0x4afbde(0xc84)](_0x58b82f['contexts'],{'name':_0x58b82f[_0x4afbde(0x356)]['context']}));if(_0x56dfdc&&!_0x3f65c0()[_0x4afbde(0x1360)](_0x807e00,['id',_0x56dfdc['id']])){const _0x1c1c0a=_0x3f65c0()['find'](_0x58b82f[_0x4afbde(0xfe9)],{'id':_0x56dfdc['id']});_0x1c1c0a[_0x4afbde(0x8ff)]=![],_0x807e00['push'](_0x1c1c0a);}_0x58b82f[_0x4afbde(0xfe9)]=_0x807e00;});}})['catch'](function(_0x595ad5){const _0x5de3da=_0x3611a6;_0x1ef0b1[_0x5de3da(0x1980)]({'title':_0x595ad5[_0x5de3da(0x107b)]?'API:'+_0x595ad5[_0x5de3da(0x107b)]+_0x5de3da(0x1315)+_0x595ad5[_0x5de3da(0x167f)]:_0x5de3da(0x155e),'msg':_0x595ad5['data']?JSON[_0x5de3da(0x10bb)](_0x595ad5[_0x5de3da(0x524)]):_0x595ad5['toString']()});});function _0x58b2aa(){const _0x247483=_0x3611a6;_0x469724['go'](_0x247483(0x405),{},{'reload':_0x247483(0x405)});}function _0x35c4e7(){const _0x47a6aa=_0x3611a6;_0x53cab0[_0x47a6aa(0xe8c)][_0x47a6aa(0x18e1)]({'id':_0x58b82f[_0x47a6aa(0x356)]['id']},_0x58b82f['voicemail'])[_0x47a6aa(0x2945)][_0x47a6aa(0x146b)](function(){const _0x5c4c87=_0x47a6aa;_0x1ef0b1['success']({'title':_0x5c4c87(0x1c4a),'msg':_0x58b82f[_0x5c4c87(0x356)][_0x5c4c87(0x19eb)]?_0x58b82f[_0x5c4c87(0x356)][_0x5c4c87(0x19eb)]+_0x5c4c87(0x6b0):''});})[_0x47a6aa(0x129e)](function(_0x34cc14){const _0x2e6266=_0x47a6aa;_0x1ef0b1[_0x2e6266(0x1980)]({'title':_0x34cc14[_0x2e6266(0x107b)]?_0x2e6266(0x262a)+_0x34cc14['status']+_0x2e6266(0x1315)+_0x34cc14[_0x2e6266(0x167f)]:_0x2e6266(0x18db),'msg':_0x34cc14['data']?JSON[_0x2e6266(0x10bb)](_0x34cc14['data']):_0x34cc14[_0x2e6266(0xd5f)]()});});}}const _0x5b5f50=_0x53eda3;;const _0x5061bd=_0x4acfac['p']+_0x313a4d(0xec6);;_0x37e0ca[_0x313a4d(0x11c2)]=['$scope',_0x313a4d(0x1aa9),_0x313a4d(0x1862),'$mdSidenav','$mdDialog',_0x313a4d(0x4d8),_0x313a4d(0x1abe),_0x313a4d(0x214b),_0x313a4d(0x28e7),_0x313a4d(0x26b6),_0x313a4d(0x1366),_0x313a4d(0x247f),'msUtils',_0x313a4d(0x1fe4),_0x313a4d(0xa87),_0x313a4d(0x2690),_0x313a4d(0x15b9)];function _0x37e0ca(_0x3a558f,_0x3275dc,_0x13bb46,_0x4cba3c,_0x58d0bd,_0x53c253,_0x163968,_0x152dd2,_0x4b9615,_0xb4c862,_0x4f0574,_0x204d12,_0x2de93a,_0x180252,_0x622388,_0x2660b8,_0x3894e3){const _0x1dab2c=_0x313a4d,_0x17c7d0=this;_0x17c7d0[_0x1dab2c(0x2690)]=_0x2660b8,_0x17c7d0[_0x1dab2c(0x15b9)]=_0x3894e3,_0x17c7d0['currentUser']=_0x622388[_0x1dab2c(0xb12)](),_0x17c7d0[_0x1dab2c(0x28e7)]=_0x4b9615||{'count':0x0,'rows':[]},_0x17c7d0[_0x1dab2c(0x26b6)]=_0xb4c862,_0x17c7d0['userProfileSection']=_0x4f0574&&_0x4f0574[_0x1dab2c(0x51c)]==0x1?_0x4f0574[_0x1dab2c(0x19c7)][0x0]:null,_0x17c7d0[_0x1dab2c(0x2514)]=_0x622388[_0x1dab2c(0xe60)](_0x17c7d0['userProfileSection']?_0x17c7d0[_0x1dab2c(0x1366)][_0x1dab2c(0x2514)]:null),_0x17c7d0[_0x1dab2c(0x768)]=_0x1dab2c(0x28e7),_0x17c7d0[_0x1dab2c(0x216a)]='',_0x17c7d0['listOrderAsc']=null,_0x17c7d0[_0x1dab2c(0xcc2)]=[],_0x17c7d0['query']={'fields':_0x1dab2c(0x1e06),'sort':_0x1dab2c(0x12f2),'limit':0xa,'page':0x1},_0x17c7d0['arrayattach']=_0x3f65c0()[_0x1dab2c(0x194)]([{'option':_0x1dab2c(0x1b97),'value':_0x1dab2c(0x2339)},{'option':'No','value':_0x1dab2c(0x74f)}],function(_0x156f76){const _0x55c386=_0x1dab2c;return _0x3f65c0()[_0x55c386(0x5f4)](_0x156f76[_0x55c386(0x175d)],new RegExp('\x27','g'),'');}),_0x17c7d0[_0x1dab2c(0x1ed6)]=_0x3f65c0()[_0x1dab2c(0x194)]([{'option':_0x1dab2c(0x1b97),'value':'\x27yes\x27'},{'option':'No','value':'\x27no\x27'}],function(_0x3ec4df){const _0x24a9c0=_0x1dab2c;return _0x3f65c0()[_0x24a9c0(0x5f4)](_0x3ec4df[_0x24a9c0(0x175d)],new RegExp('\x27','g'),'');}),_0x17c7d0[_0x1dab2c(0x15aa)]=_0x3f65c0()[_0x1dab2c(0x194)]([{'option':'Yes','value':_0x1dab2c(0x2339)},{'option':'No','value':_0x1dab2c(0x74f)}],function(_0x1ab845){const _0x58559b=_0x1dab2c;return _0x3f65c0()[_0x58559b(0x5f4)](_0x1ab845[_0x58559b(0x175d)],new RegExp('\x27','g'),'');}),_0x17c7d0[_0x1dab2c(0x23f9)]=_0x290134,_0x17c7d0[_0x1dab2c(0xf0a)]=_0x31e83e,_0x17c7d0['success']=_0x2aaabf,_0x17c7d0[_0x1dab2c(0x12c7)]=_0xd83d16,_0x17c7d0['createOrEditVoicemail']=_0x5c0872,_0x17c7d0[_0x1dab2c(0x741)]=_0x3b7d36,_0x17c7d0['exportSelectedVoicemails']=_0x23ffb0,_0x17c7d0[_0x1dab2c(0xd3d)]=_0x3cdf4c,_0x17c7d0[_0x1dab2c(0x1e55)]=_0xa2ebbe,_0x17c7d0['selectAllVoicemails']=_0x461ee9;function _0x290134(_0x12764f){const _0x483451=_0x1dab2c;_0x13bb46['go'](_0x483451(0x1e71),{'id':_0x12764f['id'],'voicemail':_0x12764f,'crudPermissions':_0x17c7d0[_0x483451(0x2514)]});}function _0x31e83e(_0x29a6ff,_0xf9b532){const _0x44ad7b=_0x1dab2c,_0x1a699e=_0x58d0bd[_0x44ad7b(0x1e8a)]()[_0x44ad7b(0x1189)](_0x44ad7b(0xdb2)+_0x3f65c0()[_0x44ad7b(0x20d1)]('voicemail')+'?')['htmlContent'](_0x44ad7b(0x16d3)+(_0x29a6ff[_0x44ad7b(0x19eb)]||_0x44ad7b(0x356))+_0x44ad7b(0x252f)+_0x44ad7b(0xe01))[_0x44ad7b(0x4bd)]('delete\x20voicemail')[_0x44ad7b(0x1f27)](_0xf9b532)['ok']('OK')[_0x44ad7b(0x6c3)](_0x44ad7b(0x39a));_0x58d0bd[_0x44ad7b(0x2615)](_0x1a699e)[_0x44ad7b(0x146b)](function(){_0x3b7d36(_0x29a6ff);},function(){const _0x5d9878=_0x44ad7b;console[_0x5d9878(0x1a74)](_0x5d9878(0x39a));});}let _0x494724=!![],_0x52b8fa=0x1;_0x3a558f[_0x1dab2c(0x21e8)](_0x1dab2c(0x2669),function(_0x3ca623,_0x21b930){const _0x49b916=_0x1dab2c;_0x494724?_0x163968(function(){_0x494724=![];}):(!_0x21b930&&(_0x52b8fa=_0x17c7d0[_0x49b916(0x1a56)][_0x49b916(0x844)]),_0x3ca623!==_0x21b930&&(_0x17c7d0[_0x49b916(0x1a56)][_0x49b916(0x844)]=0x1),!_0x3ca623&&(_0x17c7d0[_0x49b916(0x1a56)]['page']=_0x52b8fa),_0x17c7d0[_0x49b916(0x12c7)]());});function _0x2aaabf(_0x23c3ac){const _0x4b1bc6=_0x1dab2c;_0x17c7d0[_0x4b1bc6(0x28e7)]=_0x23c3ac||{'count':0x0,'rows':[]};}function _0xd83d16(){const _0x5866d2=_0x1dab2c;_0x17c7d0['query'][_0x5866d2(0x145d)]=(_0x17c7d0[_0x5866d2(0x1a56)][_0x5866d2(0x844)]-0x1)*_0x17c7d0[_0x5866d2(0x1a56)][_0x5866d2(0x221e)],_0x622388['hasRole'](_0x5866d2(0x174b))?_0x17c7d0[_0x5866d2(0xb9c)]=_0x204d12[_0x5866d2(0xe8c)]['get'](_0x17c7d0[_0x5866d2(0x1a56)],_0x2aaabf)[_0x5866d2(0x2945)]:(_0x17c7d0['query']['id']=_0x17c7d0[_0x5866d2(0x26b6)]['id'],_0x17c7d0[_0x5866d2(0x1a56)]['section']='Voicemails',_0x17c7d0['promise']=_0x204d12[_0x5866d2(0x26b6)][_0x5866d2(0x158f)](_0x17c7d0['query'],_0x2aaabf)[_0x5866d2(0x2945)]);}function _0x5c0872(_0x1678f8,_0x1ed769){const _0x3b79cb=_0x1dab2c;_0x58d0bd['show']({'controller':'CreateOrEditVoicemailDialogController','controllerAs':'vm','templateUrl':_0x5061bd,'parent':angular[_0x3b79cb(0x1853)](_0x53c253[_0x3b79cb(0x2586)]),'targetEvent':_0x1678f8,'clickOutsideToClose':!![],'locals':{'voicemail':_0x1ed769,'voicemails':_0x17c7d0[_0x3b79cb(0x28e7)][_0x3b79cb(0x19c7)],'license':_0x17c7d0[_0x3b79cb(0x2690)],'setting':_0x17c7d0[_0x3b79cb(0x15b9)],'crudPermissions':_0x17c7d0[_0x3b79cb(0x2514)]}});}function _0x3b7d36(_0xa1d39f){const _0x1f8acc=_0x1dab2c;_0x204d12[_0x1f8acc(0xe8c)][_0x1f8acc(0x1fac)]({'id':_0xa1d39f['id']})[_0x1f8acc(0x2945)][_0x1f8acc(0x146b)](function(){const _0xa671a6=_0x1f8acc;_0x3f65c0()[_0xa671a6(0x2640)](_0x17c7d0[_0xa671a6(0x28e7)][_0xa671a6(0x19c7)],{'id':_0xa1d39f['id']}),_0x17c7d0['voicemails']['count']-=0x1,!_0x17c7d0['voicemails']['rows'][_0xa671a6(0x402)]&&_0x17c7d0[_0xa671a6(0x12c7)](),_0x180252[_0xa671a6(0x1c75)]({'title':_0x3f65c0()[_0xa671a6(0x20d1)]('Voicemail')+_0xa671a6(0x201c),'msg':_0xa1d39f['name']?_0xa1d39f[_0xa671a6(0x19eb)]+_0xa671a6(0x23e3):''});})[_0x1f8acc(0x129e)](function(_0x2d0a2f){const _0x250d36=_0x1f8acc;if(_0x2d0a2f[_0x250d36(0x524)]&&_0x2d0a2f[_0x250d36(0x524)]['errors']&&_0x2d0a2f['data'][_0x250d36(0xcef)]['length']){_0x17c7d0['errors']=_0x2d0a2f[_0x250d36(0x524)][_0x250d36(0xcef)]||[{'message':_0x2d0a2f[_0x250d36(0xd5f)](),'type':_0x250d36(0x440)}];for(let _0xd76759=0x0;_0xd76759<_0x2d0a2f[_0x250d36(0x524)]['errors'][_0x250d36(0x402)];_0xd76759++){_0x180252[_0x250d36(0x1980)]({'title':_0x2d0a2f[_0x250d36(0x524)][_0x250d36(0xcef)][_0xd76759][_0x250d36(0x1142)],'msg':_0x2d0a2f['data'][_0x250d36(0xcef)][_0xd76759][_0x250d36(0x7fd)]});}}else _0x180252[_0x250d36(0x1980)]({'title':_0x2d0a2f[_0x250d36(0x107b)]?_0x250d36(0x262a)+_0x2d0a2f[_0x250d36(0x107b)]+_0x250d36(0x1315)+_0x2d0a2f[_0x250d36(0x167f)]:'SYSTEM:DELETEvoiceMail','msg':_0x2d0a2f['data']?JSON['stringify'](_0x2d0a2f['data'][_0x250d36(0x7fd)]):_0x2d0a2f[_0x250d36(0x7fd)]||_0x2d0a2f[_0x250d36(0xd5f)]()});});}function _0x23ffb0(){const _0xffbddc=_0x1dab2c,_0x530f27=angular['copy'](_0x17c7d0['selectedVoicemails']);return _0x17c7d0[_0xffbddc(0xcc2)]=[],_0x530f27;}function _0x3cdf4c(_0x3e077d){const _0x41480b=_0x1dab2c,_0x266ce3=_0x58d0bd[_0x41480b(0x1e8a)]()[_0x41480b(0x1189)](_0x41480b(0x8be))[_0x41480b(0x1cbe)](_0x41480b(0x16d3)+_0x17c7d0['selectedVoicemails']['length']+'\x20selected'+_0x41480b(0xe01))[_0x41480b(0x4bd)]('delete\x20Voicemails')[_0x41480b(0x1f27)](_0x3e077d)['ok']('OK')[_0x41480b(0x6c3)]('CANCEL');_0x58d0bd[_0x41480b(0x2615)](_0x266ce3)[_0x41480b(0x146b)](function(){const _0x441cb3=_0x41480b;_0x17c7d0['selectedVoicemails'][_0x441cb3(0x1df5)](function(_0x33cce6){_0x3b7d36(_0x33cce6);}),_0x17c7d0[_0x441cb3(0xcc2)]=[];});}function _0xa2ebbe(){_0x17c7d0['selectedVoicemails']=[];}function _0x461ee9(){const _0x50513f=_0x1dab2c;_0x17c7d0['selectedVoicemails']=_0x17c7d0[_0x50513f(0x28e7)]['rows'];}}const _0x2db959=_0x37e0ca;;_0x2eecff[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1862),_0x313a4d(0xd08),_0x313a4d(0x10e8),'$q',_0x313a4d(0x214b),_0x313a4d(0x1fe4),_0x313a4d(0x1848),_0x313a4d(0xc0f),_0x313a4d(0x247f),_0x313a4d(0xa87),_0x313a4d(0x2690),_0x313a4d(0x15b9),_0x313a4d(0x2514)];function _0x2eecff(_0x2e35ef,_0x7d3c1f,_0x10dff8,_0x2cf29d,_0x5495cd,_0x3d8c39,_0x1fc1cd,_0x247a58,_0x3b4775,_0x137ad1,_0xd812a9,_0x567dfe,_0x40b2b3,_0x29de56){const _0x37415d=_0x313a4d,_0x29b6d0=this;_0x29b6d0[_0x37415d(0x2321)]=_0xd812a9[_0x37415d(0xb12)](),_0x29b6d0[_0x37415d(0xcef)]=[],_0x29b6d0['setting']=_0x40b2b3,_0x29b6d0['license']=_0x567dfe,_0x29b6d0[_0x37415d(0x2514)]=_0x29de56,_0x29b6d0[_0x37415d(0x855)]={},_0x29b6d0['passwordPattern']=_0x29b6d0[_0x37415d(0x15b9)]&&_0x29b6d0[_0x37415d(0x15b9)]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x29b6d0['title']=_0x37415d(0x256),_0x29b6d0['voicePrefix']=angular[_0x37415d(0x235a)](_0x3b4775),_0x29b6d0[_0x37415d(0x1848)]=_0x247a58,_0x29b6d0[_0x37415d(0x202f)]=![];!_0x29b6d0[_0x37415d(0xc0f)]&&(_0x29b6d0['voicePrefix']={},_0x29b6d0['title']=_0x37415d(0x1e84),_0x29b6d0['newvoicePrefix']=!![]);_0x29b6d0[_0x37415d(0x1bc3)]=_0x1e475a,_0x29b6d0['savevoicePrefix']=_0x437b02,_0x29b6d0[_0x37415d(0x665)]=_0x15c77a,_0x29b6d0[_0x37415d(0xe73)]=_0x424602,_0x29b6d0[_0x37415d(0x13f3)]=_0x184949,_0xd812a9[_0x37415d(0x23e0)](_0x37415d(0x174b))?_0x137ad1[_0x37415d(0xd47)][_0x37415d(0x16b4)]({'fields':_0x37415d(0xd36),'type':_0x37415d(0xc9c),'VoiceExtensionId':_0x37415d(0x203c),'nolimit':_0x37415d(0x1185)})['$promise'][_0x37415d(0x146b)](function(_0x2bb6ff){const _0x3cd408=_0x37415d;_0x29b6d0[_0x3cd408(0x966)]=_0x2bb6ff[_0x3cd408(0x19c7)]||[];})[_0x37415d(0x129e)](function(_0x32d4ca){const _0x1a8392=_0x37415d;_0x1fc1cd[_0x1a8392(0x1980)]({'title':_0x32d4ca[_0x1a8392(0x107b)]?_0x1a8392(0x262a)+_0x32d4ca['status']+_0x1a8392(0x1315)+_0x32d4ca[_0x1a8392(0x167f)]:'SYSTEM:GET_OUTBOUNDROUTES','msg':_0x32d4ca[_0x1a8392(0x524)]?JSON['stringify'](_0x32d4ca[_0x1a8392(0x524)]):_0x32d4ca[_0x1a8392(0xd5f)]()});}):_0x137ad1[_0x37415d(0xd47)]['get']({'fields':'id,exten','type':_0x37415d(0xc9c),'VoiceExtensionId':_0x37415d(0x203c),'nolimit':_0x37415d(0x1185)})[_0x37415d(0x2945)][_0x37415d(0x146b)](function(_0x23c812){const _0x4f5dce=_0x37415d;_0x29b6d0[_0x4f5dce(0x966)]=_0x23c812['rows']||[];})[_0x37415d(0x146b)](function(){const _0x50701e=_0x37415d;return _0x137ad1[_0x50701e(0x1366)][_0x50701e(0x16b4)]({'userProfileId':_0x29b6d0[_0x50701e(0x2321)][_0x50701e(0x209a)],'sectionId':0x193})[_0x50701e(0x2945)];})[_0x37415d(0x146b)](function(_0x51ebf8){const _0x246432=_0x37415d,_0x4612e3=_0x51ebf8&&_0x51ebf8[_0x246432(0x19c7)]?_0x51ebf8['rows'][0x0]:null;if(!_0x4612e3){const _0x841555=[];let _0x5d0e3e=null;_0x29b6d0[_0x246432(0xc0f)]&&(_0x5d0e3e=_0x3f65c0()['find'](_0x29b6d0['outboundRoutes'],{'id':Number(_0x29b6d0[_0x246432(0xc0f)][_0x246432(0x1f3f)])}));for(let _0x4c565d=0x0;_0x4c565d<_0x29b6d0['outboundRoutes'][_0x246432(0x402)];_0x4c565d++){_0x5d0e3e&&_0x29b6d0[_0x246432(0x966)][_0x4c565d]['id']===_0x5d0e3e['id']&&(_0x29b6d0['outboundRoutes'][_0x4c565d]['canSelect']=![],_0x841555[_0x246432(0x1f47)](_0x29b6d0['outboundRoutes'][_0x4c565d]));}_0x29b6d0[_0x246432(0x966)]=_0x841555;}else{if(!_0x4612e3[_0x246432(0x11d2)])return _0x137ad1[_0x246432(0xdcc)][_0x246432(0x16b4)]({'sectionId':_0x4612e3['id']})['$promise'][_0x246432(0x146b)](function(_0x120058){const _0x95562b=_0x246432,_0x2f2c35=_0x3f65c0()[_0x95562b(0x205)](_0x120058[_0x95562b(0x19c7)],function(_0x4a6a11){const _0x8158c3=_0x95562b;return _0x3f65c0()[_0x8158c3(0xc84)](_0x29b6d0[_0x8158c3(0x966)],{'id':_0x4a6a11[_0x8158c3(0x18b8)]});});let _0x390b6c=null;_0x29b6d0[_0x95562b(0xc0f)]&&(_0x390b6c=_0x3f65c0()[_0x95562b(0xc84)](_0x29b6d0[_0x95562b(0x966)],{'id':Number(_0x29b6d0['voicePrefix'][_0x95562b(0x1f3f)])}));if(_0x390b6c&&!_0x3f65c0()[_0x95562b(0x1360)](_0x2f2c35,['id',_0x390b6c['id']])){const _0x12b5b1=_0x3f65c0()[_0x95562b(0xc84)](_0x29b6d0[_0x95562b(0x966)],{'id':_0x390b6c['id']});_0x12b5b1['canSelect']=![],_0x2f2c35['push'](_0x12b5b1);}_0x29b6d0[_0x95562b(0x966)]=_0x2f2c35;});}})[_0x37415d(0x129e)](function(_0x450028){const _0x43e046=_0x37415d;_0x1fc1cd[_0x43e046(0x1980)]({'title':_0x450028[_0x43e046(0x107b)]?_0x43e046(0x262a)+_0x450028[_0x43e046(0x107b)]+_0x43e046(0x1315)+_0x450028[_0x43e046(0x167f)]:_0x43e046(0x1850),'msg':_0x450028['data']?JSON[_0x43e046(0x10bb)](_0x450028[_0x43e046(0x524)]):_0x450028['toString']()});});function _0x1e475a(){const _0x1c604d=_0x37415d;_0x29b6d0[_0x1c604d(0xcef)]=[],_0x137ad1[_0x1c604d(0xc0f)][_0x1c604d(0x1e3)](_0x29b6d0['voicePrefix'])[_0x1c604d(0x2945)]['then'](function(_0x46629c){const _0x554585=_0x1c604d;_0x29b6d0[_0x554585(0x1848)][_0x554585(0xb3d)](_0x46629c['toJSON']()),_0x1fc1cd['success']({'title':'voicePrefix\x20properly\x20created','msg':_0x29b6d0['voicePrefix'][_0x554585(0x19eb)]?_0x29b6d0[_0x554585(0xc0f)][_0x554585(0x19eb)]+'\x20has\x20been\x20created!':''}),_0x184949(_0x46629c);})['catch'](function(_0x24f42a){const _0x1cd029=_0x1c604d;if(_0x24f42a['data']&&_0x24f42a[_0x1cd029(0x524)][_0x1cd029(0xcef)]&&_0x24f42a['data'][_0x1cd029(0xcef)]['length']){_0x29b6d0[_0x1cd029(0xcef)]=_0x24f42a[_0x1cd029(0x524)][_0x1cd029(0xcef)]||[{'message':_0x24f42a['toString'](),'type':_0x1cd029(0xad7)}];for(let _0x40d9fe=0x0;_0x40d9fe<_0x24f42a[_0x1cd029(0x524)][_0x1cd029(0xcef)][_0x1cd029(0x402)];_0x40d9fe+=0x1){_0x1fc1cd[_0x1cd029(0x1980)]({'title':_0x24f42a['data'][_0x1cd029(0xcef)][_0x40d9fe][_0x1cd029(0x1142)],'msg':_0x24f42a[_0x1cd029(0x524)][_0x1cd029(0xcef)][_0x40d9fe][_0x1cd029(0x7fd)]});}}else _0x1fc1cd[_0x1cd029(0x1980)]({'title':_0x24f42a['status']?_0x1cd029(0x262a)+_0x24f42a['status']+_0x1cd029(0x1315)+_0x24f42a[_0x1cd029(0x167f)]:_0x1cd029(0xad7),'msg':_0x24f42a[_0x1cd029(0x524)]?JSON[_0x1cd029(0x10bb)](_0x24f42a[_0x1cd029(0x524)][_0x1cd029(0x7fd)]):_0x24f42a[_0x1cd029(0xd5f)]()});});}function _0x437b02(){const _0x3e5172=_0x37415d;_0x29b6d0[_0x3e5172(0xcef)]=[],_0x137ad1['voicePrefix'][_0x3e5172(0x18e1)]({'id':_0x29b6d0[_0x3e5172(0xc0f)]['id']},_0x29b6d0[_0x3e5172(0xc0f)])[_0x3e5172(0x2945)][_0x3e5172(0x146b)](function(_0x1d8fd3){const _0xa907ef=_0x3e5172,_0x2ce233=_0x3f65c0()['find'](_0x29b6d0[_0xa907ef(0x1848)],{'id':_0x1d8fd3['id']});_0x2ce233&&_0x3f65c0()[_0xa907ef(0x168d)](_0x2ce233,_0x3f65c0()['pick'](_0x1d8fd3[_0xa907ef(0x2488)](),_0x3f65c0()[_0xa907ef(0x627)](_0x2ce233))),_0x1fc1cd[_0xa907ef(0x1c75)]({'title':_0xa907ef(0x21d7),'msg':_0x29b6d0[_0xa907ef(0xc0f)][_0xa907ef(0x19eb)]?_0x29b6d0[_0xa907ef(0xc0f)]['name']+'\x20has\x20been\x20saved!':''}),_0x184949(_0x1d8fd3);})['catch'](function(_0x11a530){const _0x39ba6f=_0x3e5172;if(_0x11a530[_0x39ba6f(0x524)]&&_0x11a530[_0x39ba6f(0x524)][_0x39ba6f(0xcef)]&&_0x11a530[_0x39ba6f(0x524)][_0x39ba6f(0xcef)][_0x39ba6f(0x402)]){_0x29b6d0['errors']=_0x11a530[_0x39ba6f(0x524)][_0x39ba6f(0xcef)]||[{'message':_0x11a530['toString'](),'type':'api.voicePrefix.update'}];for(let _0x548e87=0x0;_0x548e87<_0x11a530[_0x39ba6f(0x524)][_0x39ba6f(0xcef)][_0x39ba6f(0x402)];_0x548e87++){_0x1fc1cd[_0x39ba6f(0x1980)]({'title':_0x11a530[_0x39ba6f(0x524)][_0x39ba6f(0xcef)][_0x548e87]['type'],'msg':_0x11a530['data'][_0x39ba6f(0xcef)][_0x548e87][_0x39ba6f(0x7fd)]});}}else _0x1fc1cd[_0x39ba6f(0x1980)]({'title':_0x11a530[_0x39ba6f(0x107b)]?'API:'+_0x11a530[_0x39ba6f(0x107b)]+_0x39ba6f(0x1315)+_0x11a530[_0x39ba6f(0x167f)]:'api.voicePrefix.update','msg':_0x11a530['data']?JSON['stringify'](_0x11a530['data'][_0x39ba6f(0x7fd)]):_0x11a530[_0x39ba6f(0xd5f)]()});});}function _0x15c77a(_0x6cfa1e){const _0x354820=_0x37415d;_0x29b6d0[_0x354820(0xcef)]=[];const _0x4c2040=_0x2cf29d[_0x354820(0x1e8a)]()[_0x354820(0x1189)](_0x354820(0x1d64))[_0x354820(0x80f)]('The\x20voicePrefix\x20will\x20be\x20deleted.')['ariaLabel']('Delete\x20voicePrefix')['ok'](_0x354820(0x25de))[_0x354820(0x6c3)](_0x354820(0xcf0))[_0x354820(0x1f27)](_0x6cfa1e);_0x2cf29d[_0x354820(0x2615)](_0x4c2040)[_0x354820(0x146b)](function(){const _0x172bde=_0x354820;_0x137ad1['voicePrefix'][_0x172bde(0x1fac)]({'id':_0x29b6d0[_0x172bde(0xc0f)]['id']})['$promise'][_0x172bde(0x146b)](function(){const _0x3863fc=_0x172bde;_0x3f65c0()[_0x3863fc(0x2640)](_0x29b6d0[_0x3863fc(0x1848)],{'id':_0x29b6d0[_0x3863fc(0xc0f)]['id']}),_0x1fc1cd[_0x3863fc(0x1c75)]({'title':_0x3863fc(0x84a),'msg':(_0x29b6d0[_0x3863fc(0xc0f)][_0x3863fc(0x19eb)]||_0x3863fc(0xc0f))+_0x3863fc(0x23e3)}),_0x184949(_0x29b6d0[_0x3863fc(0xc0f)]);})[_0x172bde(0x129e)](function(_0x46d9fb){const _0x3ca16f=_0x172bde;if(_0x46d9fb[_0x3ca16f(0x524)]&&_0x46d9fb[_0x3ca16f(0x524)][_0x3ca16f(0xcef)]&&_0x46d9fb[_0x3ca16f(0x524)][_0x3ca16f(0xcef)][_0x3ca16f(0x402)]){_0x29b6d0['errors']=_0x46d9fb[_0x3ca16f(0x524)][_0x3ca16f(0xcef)]||[{'message':_0x46d9fb[_0x3ca16f(0xd5f)](),'type':_0x3ca16f(0x239d)}];for(let _0x592c86=0x0;_0x592c86<_0x46d9fb[_0x3ca16f(0x524)][_0x3ca16f(0xcef)]['length'];_0x592c86++){_0x1fc1cd[_0x3ca16f(0x1980)]({'title':_0x46d9fb['data'][_0x3ca16f(0xcef)][_0x592c86][_0x3ca16f(0x1142)],'msg':_0x46d9fb[_0x3ca16f(0x524)]['errors'][_0x592c86][_0x3ca16f(0x7fd)]});}}else _0x1fc1cd[_0x3ca16f(0x1980)]({'title':_0x46d9fb[_0x3ca16f(0x107b)]?_0x3ca16f(0x262a)+_0x46d9fb[_0x3ca16f(0x107b)]+'\x20-\x20'+_0x46d9fb[_0x3ca16f(0x167f)]:_0x3ca16f(0x239d),'msg':_0x46d9fb[_0x3ca16f(0x524)]?JSON['stringify'](_0x46d9fb['data']['message']):_0x46d9fb[_0x3ca16f(0x7fd)]||_0x46d9fb[_0x3ca16f(0xd5f)]()});});},function(){});}function _0x424602(_0x2a19d5){return _0x2a19d5===null?undefined:new Date(_0x2a19d5);}function _0x184949(_0x51e00f){_0x2cf29d['hide'](_0x51e00f);}}const _0x48dc6f=_0x2eecff;;_0x443976[_0x313a4d(0x11c2)]=[_0x313a4d(0x10e8),'$q',_0x313a4d(0x1fe4),'api',_0x313a4d(0xc0f),'voicePrefixes',_0x313a4d(0xfc4),_0x313a4d(0x214b),'Auth',_0x313a4d(0x2514)];function _0x443976(_0x243f8c,_0x26767e,_0xbdfdd3,_0x4c19aa,_0x2594bc,_0x366e4b,_0x4b47ef,_0x5a1cc9,_0x271e88,_0x19368e){const _0x544286=_0x313a4d,_0x1f0e1d=this;_0x1f0e1d[_0x544286(0x2321)]=_0x271e88[_0x544286(0xb12)](),_0x1f0e1d['voicePrefix']=_0x2594bc,_0x1f0e1d[_0x544286(0x2514)]=_0x19368e,_0x1f0e1d[_0x544286(0xfc4)]=_0x4b47ef,_0x1f0e1d['items']=[],_0x1f0e1d[_0x544286(0xc4e)]=[],_0x1f0e1d[_0x544286(0x1ecf)]=[],_0x1f0e1d[_0x544286(0x2e8)]=[],_0x1f0e1d['startingSelectedItems']=[],_0x1f0e1d['pendingChanges']=![],_0x1f0e1d[_0x544286(0x3d4)]=_0x180060,_0x1f0e1d[_0x544286(0x14c2)]=_0x384b9a,_0x1f0e1d[_0x544286(0x13f3)]=_0x1b5462,_0x1f0e1d[_0x544286(0x1f8a)]={'readOnly':!_0x1f0e1d[_0x544286(0x2514)][_0x544286(0x15f4)],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x544286(0x19eb),'line1':'fullname','line2':[_0x544286(0x19eb),_0x544286(0x113f)],'line3':'','labelAll':_0x5a1cc9[_0x544286(0xde)](_0x544286(0x2050)),'labelSelected':_0x5a1cc9['instant'](_0x544286(0xf73)),'transferCallback':function(){const _0x591da7=_0x544286,_0x1b4fa5=_0x3f65c0()[_0x591da7(0x1883)](_0x1f0e1d['startingSelectedItems'],_0x1f0e1d['selectedItems'],'id');_0x1f0e1d[_0x591da7(0x132)]=_0x3f65c0()[_0x591da7(0x2635)](_0x1b4fa5)?![]:!![];}};function _0x180060(){const _0x30cb0e=_0x544286;return _0x271e88['hasRole']('admin')?_0x3e8545()[_0x30cb0e(0x129e)](function(_0x50b70b){const _0x56490c=_0x30cb0e;_0xbdfdd3[_0x56490c(0x1980)]({'title':_0x50b70b[_0x56490c(0x107b)]?_0x56490c(0x262a)+_0x50b70b['status']+_0x56490c(0x1315)+_0x50b70b[_0x56490c(0x167f)]:_0x56490c(0x557),'msg':_0x50b70b['status']?JSON['stringify'](_0x50b70b['data']):_0x50b70b['toString']()});}):_0x442a84()[_0x30cb0e(0x146b)](function(_0x12d75){const _0x457420=_0x30cb0e;return _0x1f0e1d[_0x457420(0x2146)]=_0x12d75,_0x3e8545();})[_0x30cb0e(0x129e)](function(_0x3977fc){const _0x329c75=_0x30cb0e;_0xbdfdd3['error']({'title':_0x3977fc[_0x329c75(0x107b)]?'API:'+_0x3977fc[_0x329c75(0x107b)]+_0x329c75(0x1315)+_0x3977fc[_0x329c75(0x167f)]:_0x329c75(0x557),'msg':_0x3977fc[_0x329c75(0x107b)]?JSON['stringify'](_0x3977fc[_0x329c75(0x524)]):_0x3977fc['toString']()});});}function _0x442a84(){return _0x26767e(function(_0x3e0ecd,_0x4e27d7){const _0x1d311d=a0_0x3bb9;_0x4c19aa[_0x1d311d(0x1366)][_0x1d311d(0x16b4)]({'userProfileId':_0x1f0e1d[_0x1d311d(0x2321)]['userProfileId'],'name':_0x1d311d(0xca8)})[_0x1d311d(0x2945)][_0x1d311d(0x146b)](function(_0x547691){const _0x2e35f4=_0x1d311d,_0x5f4b97=_0x547691&&_0x547691['rows']?_0x547691[_0x2e35f4(0x19c7)][0x0]:null;_0x3e0ecd(_0x5f4b97);})[_0x1d311d(0x129e)](function(_0xa8f40e){_0x4e27d7(_0xa8f40e);});});}function _0x3e8545(){return _0x26767e(function(_0x50ddb4,_0x516147){const _0x2bef93=a0_0x3bb9;return _0x5a2223()[_0x2bef93(0x146b)](function(_0x3dc893){const _0x2875be=_0x2bef93;return _0x1f0e1d[_0x2875be(0x1fd6)]=_0x3dc893[_0x2875be(0x19c7)]?_0x3dc893[_0x2875be(0x19c7)]:[],_0x271e88[_0x2875be(0x23e0)](_0x2875be(0x174b))?_0x3dc893:_0x1f0e1d['section']?_0x1f0e1d[_0x2875be(0x2146)][_0x2875be(0x11d2)]?_0x3dc893:_0x3ec13a():null;})[_0x2bef93(0x146b)](function(_0x40e0b2){const _0x4a0fc8=_0x2bef93,_0x52f2c3=_0x40e0b2&&_0x40e0b2['rows']?_0x40e0b2[_0x4a0fc8(0x19c7)]:[];return _0x1f0e1d[_0x4a0fc8(0xc4e)]=_0x3f65c0()[_0x4a0fc8(0x205)](_0x52f2c3,function(_0x34f405){const _0x2fb96d=_0x4a0fc8;return _0x3f65c0()[_0x2fb96d(0xc84)](_0x1f0e1d['items'],{'id':_0x271e88['hasRole']('admin')||_0x1f0e1d['section'][_0x2fb96d(0x11d2)]?_0x34f405['id']:_0x34f405[_0x2fb96d(0x18b8)]});}),_0x1f0e1d[_0x4a0fc8(0x2e8)]=angular['copy'](_0x1f0e1d[_0x4a0fc8(0xc4e)]),_0x1f0e1d[_0x4a0fc8(0x1fd6)][_0x4a0fc8(0x1df5)](function(_0x15e6ee){const _0x17e068=_0x4a0fc8,_0x2658a2=_0x3f65c0()['find'](_0x1f0e1d[_0x17e068(0xc4e)],{'id':_0x15e6ee['id']});_0x271e88[_0x17e068(0x23e0)]('admin')?_0x15e6ee['isValid']=!![]:_0x15e6ee[_0x17e068(0x146f)]=typeof _0x2658a2!==_0x17e068(0x2274)?!![]:![];}),_0x5a6b40();})[_0x2bef93(0x146b)](function(_0x355ce9){const _0x2a350=_0x2bef93,_0xbc8f72=_0x355ce9&&_0x355ce9[_0x2a350(0x19c7)]?_0x355ce9[_0x2a350(0x19c7)]:[];_0x1f0e1d[_0x2a350(0x1ecf)]=_0x3f65c0()['map'](_0xbc8f72,function(_0x53d5ad){const _0x15d0c7=_0x2a350,_0x5e5552=_0x3f65c0()[_0x15d0c7(0xc84)](_0x1f0e1d['items'],{'id':_0x53d5ad['id']});return _0x5e5552[_0x15d0c7(0x188d)]=_0x53d5ad[_0x15d0c7(0x1acc)]?_0x15d0c7(0x2505)+_0x53d5ad[_0x15d0c7(0x1acc)]['penalty']:'',_0x5e5552[_0x15d0c7(0x113f)]=typeof _0x53d5ad[_0x15d0c7(0x113f)]!==_0x15d0c7(0x2274)?'<'+_0x53d5ad['internal']+'>':'',_0x5e5552;}),_0x1f0e1d[_0x2a350(0xa65)]=angular[_0x2a350(0x235a)](_0x1f0e1d[_0x2a350(0x1ecf)]),_0x1f0e1d['dualMultiselectOptions']['selectedItems']=_0x1f0e1d[_0x2a350(0x1ecf)],_0x1f0e1d[_0x2a350(0x1f8a)][_0x2a350(0x1fd6)]=_0x3f65c0()[_0x2a350(0x2796)](_0x1f0e1d[_0x2a350(0xc4e)],_0x1f0e1d['dualMultiselectOptions'][_0x2a350(0x1ecf)],'id'),_0x50ddb4();})['catch'](function(_0x3a1962){_0x516147(_0x3a1962);});});}function _0x3ec13a(){return _0x26767e(function(_0x4b5b6,_0x32b370){const _0x31e4c4=a0_0x3bb9;return _0x4c19aa[_0x31e4c4(0xdcc)][_0x31e4c4(0x16b4)]({'sectionId':_0x1f0e1d[_0x31e4c4(0x2146)]['id'],'nolimit':!![]})['$promise'][_0x31e4c4(0x146b)](function(_0x5046ef){_0x4b5b6(_0x5046ef);})[_0x31e4c4(0x129e)](function(_0x37be66){_0x32b370(_0x37be66);});});}function _0x5a6b40(){return _0x26767e(function(_0x273867,_0x40da47){const _0x5baa0a=a0_0x3bb9;return _0x4c19aa[_0x5baa0a(0xc0f)]['getAgents']({'id':_0x1f0e1d[_0x5baa0a(0xc0f)]['id'],'fields':'id,name,internal,fullname','nolimit':!![],'role':_0x5baa0a(0x1755)})[_0x5baa0a(0x2945)][_0x5baa0a(0x146b)](function(_0x92f94){_0x273867(_0x92f94);})['catch'](function(_0x21e1d2){_0x40da47(_0x21e1d2);});});}function _0x5a2223(){return _0x26767e(function(_0x4b252a,_0x5efd6c){const _0x5d05ff=a0_0x3bb9;return _0x4c19aa['user'][_0x5d05ff(0x16b4)]({'fields':_0x5d05ff(0x1569),'nolimit':!![],'role':_0x5d05ff(0x1755)})['$promise'][_0x5d05ff(0x146b)](function(_0x27abb4){_0x4b252a(_0x27abb4);})[_0x5d05ff(0x129e)](function(_0x445278){_0x5efd6c(_0x445278);});});}function _0x17f249(_0x3c3c97){return _0x26767e(function(_0x327cd8,_0x20fbf2){const _0x29a5a5=a0_0x3bb9;_0x3f65c0()[_0x29a5a5(0x2635)](_0x3c3c97)?_0x327cd8():_0x4c19aa[_0x29a5a5(0xc0f)][_0x29a5a5(0x135e)]({'id':_0x1f0e1d[_0x29a5a5(0xc0f)]['id'],'ids':_0x3f65c0()[_0x29a5a5(0x205)](_0x3c3c97,'id')})[_0x29a5a5(0x2945)][_0x29a5a5(0x146b)](function(){_0x327cd8();})['catch'](function(_0x1563e0){_0x20fbf2(_0x1563e0);});});}function _0x4f2d91(_0x2f1777){return _0x26767e(function(_0x58cb9a,_0x13c020){const _0xaece03=a0_0x3bb9;_0x3f65c0()[_0xaece03(0x2635)](_0x2f1777)?_0x58cb9a():_0x4c19aa[_0xaece03(0xc0f)][_0xaece03(0x1f53)]({'id':_0x1f0e1d[_0xaece03(0xc0f)]['id'],'ids':_0x3f65c0()[_0xaece03(0x205)](_0x2f1777,'id')})['$promise'][_0xaece03(0x146b)](function(){_0x58cb9a();})[_0xaece03(0x129e)](function(_0x2fca4f){_0x13c020(_0x2fca4f);});});}function _0x384b9a(){const _0x2a2687=_0x544286,_0x2c56a5=_0x3f65c0()[_0x2a2687(0x2796)](_0x1f0e1d[_0x2a2687(0xa65)],_0x1f0e1d[_0x2a2687(0x1ecf)],'id'),_0x279d28=_0x3f65c0()[_0x2a2687(0x2796)](_0x1f0e1d[_0x2a2687(0x1ecf)],_0x1f0e1d[_0x2a2687(0xa65)],'id');return _0x4f2d91(_0x2c56a5)[_0x2a2687(0x146b)](function(){return _0x17f249(_0x279d28);})[_0x2a2687(0x146b)](function(){const _0x309620=_0x2a2687;_0x1f0e1d['pendingChanges']=![],_0x1f0e1d[_0x309620(0x2e8)]=angular[_0x309620(0x235a)](_0x1f0e1d['allowedItems']),_0x1f0e1d['startingSelectedItems']=angular[_0x309620(0x235a)](_0x1f0e1d['selectedItems']),_0xbdfdd3[_0x309620(0x1c75)]({'title':_0x309620(0x4c0),'msg':_0x309620(0x26be)});})['catch'](function(_0x2661c0){const _0x3ce5a8=_0x2a2687;_0xbdfdd3[_0x3ce5a8(0x1980)]({'title':_0x2661c0['status']?_0x3ce5a8(0x262a)+_0x2661c0[_0x3ce5a8(0x107b)]+_0x3ce5a8(0x1315)+_0x2661c0[_0x3ce5a8(0x167f)]:'SYSTEM:LISTS_ASSOCIATION','msg':_0x2661c0[_0x3ce5a8(0x107b)]?JSON[_0x3ce5a8(0x10bb)](_0x2661c0[_0x3ce5a8(0x524)]):_0x2661c0[_0x3ce5a8(0xd5f)]()});});}function _0x1b5462(){const _0x20db91=_0x544286;_0x243f8c[_0x20db91(0x2458)]();}}const _0x288994=_0x443976;;const _0x14600e=_0x4acfac['p']+_0x313a4d(0x1001);;const _0x44739f=_0x4acfac['p']+_0x313a4d(0x23d3);;_0xcddaaa[_0x313a4d(0x11c2)]=['$scope',_0x313a4d(0x1aa9),_0x313a4d(0x1862),_0x313a4d(0x15fe),_0x313a4d(0x10e8),_0x313a4d(0x4d8),_0x313a4d(0x1abe),_0x313a4d(0x214b),_0x313a4d(0x1848),'userProfile',_0x313a4d(0x1366),'api',_0x313a4d(0x216c),'toasty',_0x313a4d(0xa87),'license','setting'];function _0xcddaaa(_0x319c10,_0x542498,_0x28635d,_0x20247f,_0x513528,_0x1c904a,_0x52bb63,_0x201638,_0x283762,_0x1ffcec,_0x5b4b48,_0xe52a8,_0x17fe26,_0x535cdd,_0x13edc0,_0x17709a,_0x5436b8){const _0x5860cf=_0x313a4d,_0x15ac53=this;_0x15ac53[_0x5860cf(0x2690)]=_0x17709a,_0x15ac53[_0x5860cf(0x15b9)]=_0x5436b8,_0x15ac53[_0x5860cf(0x2321)]=_0x13edc0[_0x5860cf(0xb12)](),_0x15ac53[_0x5860cf(0x1848)]=_0x283762||{'count':0x0,'rows':[]},_0x15ac53[_0x5860cf(0x26b6)]=_0x1ffcec,_0x15ac53['userProfileSection']=_0x5b4b48&&_0x5b4b48[_0x5860cf(0x51c)]==0x1?_0x5b4b48[_0x5860cf(0x19c7)][0x0]:null,_0x15ac53[_0x5860cf(0x2514)]=_0x13edc0['parseCrudPermissions'](_0x15ac53[_0x5860cf(0x1366)]?_0x15ac53[_0x5860cf(0x1366)][_0x5860cf(0x2514)]:null),_0x15ac53[_0x5860cf(0x768)]='voicePrefixes',_0x15ac53[_0x5860cf(0x216a)]='',_0x15ac53[_0x5860cf(0x214f)]=null,_0x15ac53[_0x5860cf(0x13f6)]=[],_0x15ac53[_0x5860cf(0x1a56)]={'fields':_0x5860cf(0xd0d),'limit':0xa,'page':0x1},_0x15ac53[_0x5860cf(0x2ed)]=_0x8fb791,_0x15ac53['agentadddialog']=_0x561ebd,_0x15ac53[_0x5860cf(0xf0a)]=_0x30d7e3,_0x15ac53[_0x5860cf(0x1c75)]=_0x2731a9,_0x15ac53[_0x5860cf(0x18ba)]=_0x121b8c,_0x15ac53[_0x5860cf(0xd41)]=_0x54d3b3,_0x15ac53[_0x5860cf(0x665)]=_0x88395f,_0x15ac53[_0x5860cf(0x16f4)]=_0x3da4f7,_0x15ac53['deleteSelectedVoicePrefixes']=_0x220864,_0x15ac53[_0x5860cf(0x239e)]=_0x456861,_0x15ac53[_0x5860cf(0x1f14)]=_0x3c9098,_0x13edc0['hasRole'](_0x5860cf(0x174b))?_0xe52a8[_0x5860cf(0xd47)][_0x5860cf(0x16b4)]({'fields':'id,exten','type':_0x5860cf(0xc9c),'VoiceExtensionId':_0x5860cf(0x203c),'nolimit':_0x5860cf(0x1185)})[_0x5860cf(0x2945)][_0x5860cf(0x146b)](function(_0x4a218c){const _0x224337=_0x5860cf;_0x15ac53[_0x224337(0x966)]=_0x4a218c[_0x224337(0x19c7)]||[];})[_0x5860cf(0x129e)](function(_0x560169){const _0x34960e=_0x5860cf;_0x535cdd[_0x34960e(0x1980)]({'title':_0x560169[_0x34960e(0x107b)]?_0x34960e(0x262a)+_0x560169[_0x34960e(0x107b)]+_0x34960e(0x1315)+_0x560169[_0x34960e(0x167f)]:_0x34960e(0x104f),'msg':_0x560169[_0x34960e(0x524)]?JSON['stringify'](_0x560169['data']):_0x560169[_0x34960e(0xd5f)]()});}):_0xe52a8[_0x5860cf(0xd47)][_0x5860cf(0x16b4)]({'fields':'id,exten','type':_0x5860cf(0xc9c),'VoiceExtensionId':_0x5860cf(0x203c),'nolimit':_0x5860cf(0x1185)})[_0x5860cf(0x2945)]['then'](function(_0x9477f){const _0x5a40c7=_0x5860cf;_0x15ac53[_0x5a40c7(0x966)]=_0x9477f[_0x5a40c7(0x19c7)]||[];})[_0x5860cf(0x146b)](function(){const _0x557744=_0x5860cf;return _0xe52a8[_0x557744(0x1366)][_0x557744(0x16b4)]({'userProfileId':_0x15ac53['currentUser']['userProfileId'],'sectionId':0x193})[_0x557744(0x2945)];})[_0x5860cf(0x146b)](function(_0x53b913){const _0x418686=_0x5860cf,_0x401560=_0x53b913&&_0x53b913[_0x418686(0x19c7)]?_0x53b913[_0x418686(0x19c7)][0x0]:null;if(!_0x401560){const _0x22f1ec=[];let _0x2e03d0=null;_0x15ac53[_0x418686(0xc0f)]&&(_0x2e03d0=_0x3f65c0()[_0x418686(0xc84)](_0x15ac53['outboundRoutes'],{'id':Number(_0x15ac53[_0x418686(0xc0f)][_0x418686(0x1f3f)])}));for(let _0x1a5bf5=0x0;_0x1a5bf5<_0x15ac53['outboundRoutes'][_0x418686(0x402)];_0x1a5bf5++){_0x2e03d0&&_0x15ac53[_0x418686(0x966)][_0x1a5bf5]['id']===_0x2e03d0['id']&&(_0x15ac53[_0x418686(0x966)][_0x1a5bf5]['canSelect']=![],_0x22f1ec[_0x418686(0x1f47)](_0x15ac53[_0x418686(0x966)][_0x1a5bf5]));}_0x15ac53[_0x418686(0x966)]=_0x22f1ec;}else{if(!_0x401560['autoAssociation'])return _0xe52a8[_0x418686(0xdcc)][_0x418686(0x16b4)]({'sectionId':_0x401560['id']})[_0x418686(0x2945)][_0x418686(0x146b)](function(_0x1b9124){const _0x280a99=_0x418686,_0x11b02c=_0x3f65c0()[_0x280a99(0x205)](_0x1b9124[_0x280a99(0x19c7)],function(_0xa5cd8a){const _0x2ca4f6=_0x280a99;return _0x3f65c0()[_0x2ca4f6(0xc84)](_0x15ac53[_0x2ca4f6(0x966)],{'id':_0xa5cd8a[_0x2ca4f6(0x18b8)]});});let _0x43724a=null;_0x15ac53[_0x280a99(0xc0f)]&&(_0x43724a=_0x3f65c0()['find'](_0x15ac53[_0x280a99(0x966)],{'id':Number(_0x15ac53[_0x280a99(0xc0f)][_0x280a99(0x1f3f)])}));if(_0x43724a&&!_0x3f65c0()[_0x280a99(0x1360)](_0x11b02c,['id',_0x43724a['id']])){const _0x238489=_0x3f65c0()[_0x280a99(0xc84)](_0x15ac53[_0x280a99(0x966)],{'id':_0x43724a['id']});_0x238489[_0x280a99(0x8ff)]=![],_0x11b02c['push'](_0x238489);}_0x15ac53[_0x280a99(0x966)]=_0x11b02c;});}})[_0x5860cf(0x129e)](function(_0x58ea7f){const _0x10fc9e=_0x5860cf;_0x535cdd[_0x10fc9e(0x1980)]({'title':_0x58ea7f[_0x10fc9e(0x107b)]?_0x10fc9e(0x262a)+_0x58ea7f['status']+_0x10fc9e(0x1315)+_0x58ea7f[_0x10fc9e(0x167f)]:_0x10fc9e(0x1850),'msg':_0x58ea7f[_0x10fc9e(0x524)]?JSON[_0x10fc9e(0x10bb)](_0x58ea7f[_0x10fc9e(0x524)]):_0x58ea7f[_0x10fc9e(0xd5f)]()});});function _0x8fb791(_0x5836c7,_0x2fe246){const _0x49b092=_0x5860cf;_0x513528[_0x49b092(0x2615)]({'controller':_0x49b092(0x1fc7),'controllerAs':'vm','templateUrl':_0x14600e,'parent':angular[_0x49b092(0x1853)](_0x1c904a[_0x49b092(0x2586)]),'targetEvent':_0x2fe246,'clickOutsideToClose':!![],'locals':{'voicePrefix':_0x5836c7,'voicePrefixes':_0x15ac53[_0x49b092(0x1848)][_0x49b092(0x19c7)],'license':_0x15ac53[_0x49b092(0x2690)],'setting':null,'crudPermissions':_0x15ac53['crudPermissions']}});}function _0x561ebd(_0x4ca611,_0x2ade01){const _0x4a36bb=_0x5860cf;_0x513528[_0x4a36bb(0x2615)]({'controller':_0x4a36bb(0x10ca),'controllerAs':'vm','templateUrl':_0x44739f,'parent':angular[_0x4a36bb(0x1853)](_0x1c904a['body']),'targetEvent':_0x2ade01,'clickOutsideToClose':!![],'locals':{'voicePrefix':_0x4ca611,'voicePrefixes':_0x15ac53[_0x4a36bb(0x1848)]?_0x15ac53[_0x4a36bb(0x1848)][_0x4a36bb(0x19c7)]:[],'crudPermissions':_0x15ac53[_0x4a36bb(0x2514)],'realtime':![]}});}function _0x30d7e3(_0x4b4ca9,_0x92175b){const _0x8e8d8e=_0x5860cf,_0x479a9d=_0x513528[_0x8e8d8e(0x1e8a)]()[_0x8e8d8e(0x1189)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x3f65c0()['startCase'](_0x8e8d8e(0xc0f))+'?')[_0x8e8d8e(0x1cbe)](_0x8e8d8e(0x16d3)+(_0x4b4ca9[_0x8e8d8e(0x19eb)]||_0x8e8d8e(0xc0f))+_0x8e8d8e(0x252f)+'\x20will\x20be\x20deleted.')[_0x8e8d8e(0x4bd)]('delete\x20voicePrefix')[_0x8e8d8e(0x1f27)](_0x92175b)['ok']('OK')[_0x8e8d8e(0x6c3)](_0x8e8d8e(0x39a));_0x513528[_0x8e8d8e(0x2615)](_0x479a9d)[_0x8e8d8e(0x146b)](function(){_0x88395f(_0x4b4ca9);},function(){console['log']('CANCEL');});}let _0x3d0255=!![],_0x1f6a17=0x1;_0x319c10[_0x5860cf(0x21e8)](_0x5860cf(0x2669),function(_0x517b54,_0x1314ae){const _0x16fb0c=_0x5860cf;_0x3d0255?_0x52bb63(function(){_0x3d0255=![];}):(!_0x1314ae&&(_0x1f6a17=_0x15ac53[_0x16fb0c(0x1a56)]['page']),_0x517b54!==_0x1314ae&&(_0x15ac53[_0x16fb0c(0x1a56)][_0x16fb0c(0x844)]=0x1),!_0x517b54&&(_0x15ac53[_0x16fb0c(0x1a56)][_0x16fb0c(0x844)]=_0x1f6a17),_0x15ac53[_0x16fb0c(0x18ba)]());});function _0x2731a9(_0x4f5446){const _0x2c068f=_0x5860cf;_0x15ac53[_0x2c068f(0x1848)]=_0x4f5446||{'count':0x0,'rows':[]};}function _0x121b8c(){const _0x10cd4c=_0x5860cf;_0x15ac53[_0x10cd4c(0x1a56)][_0x10cd4c(0x145d)]=(_0x15ac53['query'][_0x10cd4c(0x844)]-0x1)*_0x15ac53[_0x10cd4c(0x1a56)][_0x10cd4c(0x221e)],_0x13edc0['hasRole'](_0x10cd4c(0x174b))?_0x15ac53[_0x10cd4c(0xb9c)]=_0xe52a8['voicePrefix'][_0x10cd4c(0x16b4)](_0x15ac53[_0x10cd4c(0x1a56)],_0x2731a9)[_0x10cd4c(0x2945)]:(_0x15ac53[_0x10cd4c(0x1a56)]['id']=_0x15ac53[_0x10cd4c(0x26b6)]['id'],_0x15ac53[_0x10cd4c(0x1a56)][_0x10cd4c(0x2146)]=_0x10cd4c(0x8cf),_0x15ac53['promise']=_0xe52a8['userProfile'][_0x10cd4c(0x158f)](_0x15ac53[_0x10cd4c(0x1a56)],_0x2731a9)[_0x10cd4c(0x2945)]);}function _0x54d3b3(_0x566d7f,_0x2f1405){const _0x620d89=_0x5860cf;_0x513528['show']({'controller':_0x620d89(0x1fc7),'controllerAs':'vm','templateUrl':_0x14600e,'parent':angular[_0x620d89(0x1853)](_0x1c904a['body']),'targetEvent':_0x566d7f,'clickOutsideToClose':!![],'locals':{'voicePrefix':_0x2f1405,'voicePrefixes':_0x15ac53[_0x620d89(0x1848)]['rows'],'license':_0x15ac53['license'],'setting':_0x15ac53[_0x620d89(0x15b9)],'crudPermissions':_0x15ac53['crudPermissions']}});}function _0x88395f(_0x1d9aa2){const _0xa0cbef=_0x5860cf;_0xe52a8[_0xa0cbef(0xc0f)][_0xa0cbef(0x1fac)]({'id':_0x1d9aa2['id']})[_0xa0cbef(0x2945)][_0xa0cbef(0x146b)](function(){const _0x124599=_0xa0cbef;_0x3f65c0()[_0x124599(0x2640)](_0x15ac53[_0x124599(0x1848)][_0x124599(0x19c7)],{'id':_0x1d9aa2['id']}),_0x15ac53[_0x124599(0x1848)][_0x124599(0x51c)]-=0x1,!_0x15ac53['voicePrefixes'][_0x124599(0x19c7)][_0x124599(0x402)]&&_0x15ac53['getVoicePrefixes'](),_0x535cdd[_0x124599(0x1c75)]({'title':_0x3f65c0()[_0x124599(0x20d1)](_0x124599(0xc0f))+_0x124599(0x201c),'msg':_0x1d9aa2['name']?_0x1d9aa2[_0x124599(0x19eb)]+_0x124599(0x23e3):''});})['catch'](function(_0xaac6d9){const _0x21a01c=_0xa0cbef;if(_0xaac6d9['data']&&_0xaac6d9[_0x21a01c(0x524)][_0x21a01c(0xcef)]&&_0xaac6d9[_0x21a01c(0x524)][_0x21a01c(0xcef)][_0x21a01c(0x402)]){_0x15ac53[_0x21a01c(0xcef)]=_0xaac6d9[_0x21a01c(0x524)][_0x21a01c(0xcef)]||[{'message':_0xaac6d9[_0x21a01c(0xd5f)](),'type':'SYSTEM:DELETEvoicePrefix'}];for(let _0x3fe200=0x0;_0x3fe200<_0xaac6d9['data'][_0x21a01c(0xcef)][_0x21a01c(0x402)];_0x3fe200++){_0x535cdd['error']({'title':_0xaac6d9[_0x21a01c(0x524)][_0x21a01c(0xcef)][_0x3fe200][_0x21a01c(0x1142)],'msg':_0xaac6d9[_0x21a01c(0x524)]['errors'][_0x3fe200][_0x21a01c(0x7fd)]});}}else _0x535cdd[_0x21a01c(0x1980)]({'title':_0xaac6d9['status']?_0x21a01c(0x262a)+_0xaac6d9['status']+'\x20-\x20'+_0xaac6d9[_0x21a01c(0x167f)]:_0x21a01c(0x3da),'msg':_0xaac6d9[_0x21a01c(0x524)]?JSON['stringify'](_0xaac6d9[_0x21a01c(0x524)]['message']):_0xaac6d9['message']||_0xaac6d9[_0x21a01c(0xd5f)]()});});}function _0x3da4f7(){const _0x2ac6b7=_0x5860cf,_0x24d588=angular[_0x2ac6b7(0x235a)](_0x15ac53['selectedVoicePrefixes']);return _0x15ac53[_0x2ac6b7(0x13f6)]=[],_0x24d588;}function _0x220864(_0x4b79d9){const _0x6a2eb9=_0x5860cf,_0x13fa8d=_0x513528[_0x6a2eb9(0x1e8a)]()[_0x6a2eb9(0x1189)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20voicePrefixes?')[_0x6a2eb9(0x1cbe)](_0x6a2eb9(0x16d3)+_0x15ac53[_0x6a2eb9(0x13f6)][_0x6a2eb9(0x402)]+_0x6a2eb9(0x2452)+_0x6a2eb9(0xe01))[_0x6a2eb9(0x4bd)](_0x6a2eb9(0x1757))[_0x6a2eb9(0x1f27)](_0x4b79d9)['ok']('OK')[_0x6a2eb9(0x6c3)](_0x6a2eb9(0x39a));_0x513528[_0x6a2eb9(0x2615)](_0x13fa8d)[_0x6a2eb9(0x146b)](function(){const _0x1a5a02=_0x6a2eb9;_0x15ac53['selectedVoicePrefixes']['forEach'](function(_0x3e1e37){_0x88395f(_0x3e1e37);}),_0x15ac53[_0x1a5a02(0x13f6)]=[];});}function _0x456861(){const _0x27e9bb=_0x5860cf;_0x15ac53[_0x27e9bb(0x13f6)]=[];}function _0x3c9098(){const _0x4a8356=_0x5860cf;_0x15ac53[_0x4a8356(0x13f6)]=_0x15ac53[_0x4a8356(0x1848)][_0x4a8356(0x19c7)];}}const _0x3cf24d=_0xcddaaa;;_0x42d634[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1862),'$location',_0x313a4d(0x10e8),'$q','$translate',_0x313a4d(0x1fe4),'voiceQueues',_0x313a4d(0x1446),'api',_0x313a4d(0xa87),_0x313a4d(0x2690),_0x313a4d(0x15b9),'crudPermissions'];function _0x42d634(_0x5f212b,_0xae4ef1,_0x4b1448,_0x1ea816,_0x4a8e64,_0x52868b,_0x244d68,_0x1a8a27,_0x1f25e3,_0x41e65c,_0x3e4676,_0x232a67,_0xeeab8f,_0x3adb89){const _0x2e185d=_0x313a4d,_0x5f119a=this;_0x5f119a['currentUser']=_0x3e4676['getCurrentUser'](),_0x5f119a[_0x2e185d(0xcef)]=[],_0x5f119a['setting']=_0xeeab8f,_0x5f119a[_0x2e185d(0x2690)]=_0x232a67,_0x5f119a[_0x2e185d(0x2514)]=_0x3adb89,_0x5f119a[_0x2e185d(0x855)]={},_0x5f119a['passwordPattern']=_0x5f119a[_0x2e185d(0x15b9)]&&_0x5f119a['setting']['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x5f119a[_0x2e185d(0x1189)]=_0x2e185d(0x23bd),_0x5f119a[_0x2e185d(0x1446)]=angular['copy'](_0x1f25e3),_0x5f119a[_0x2e185d(0xa27)]=_0x1a8a27,_0x5f119a[_0x2e185d(0x19da)]=![];!_0x5f119a['voiceQueue']&&(_0x5f119a[_0x2e185d(0x1446)]={'type':_0x2e185d(0x7b0),'strategy':'ringall','timeout':0xf,'retry':0x2,'random_periodic_announce':'no','announce_holdtime':'no','announce_position':'no','reportholdtime':'no','autopause':'no','ringinuse':'no','timeoutrestart':'no','setinterfacevar':'no','setqueuevar':'no','setqueueentryvar':'no'},_0x5f119a[_0x2e185d(0x1189)]=_0x2e185d(0x2740),_0x5f119a[_0x2e185d(0x19da)]=!![]);_0x5f119a['addNewVoiceQueue']=_0x1fcc8a,_0x5f119a[_0x2e185d(0x27d8)]=_0x2d78ba,_0x5f119a['deleteVoiceQueue']=_0x521d7c,_0x5f119a[_0x2e185d(0xe73)]=_0xbb5f53,_0x5f119a[_0x2e185d(0x13f3)]=_0x147411;function _0x1fcc8a(){const _0x1df8b6=_0x2e185d;_0x5f119a[_0x1df8b6(0xcef)]=[],_0x41e65c[_0x1df8b6(0x1446)]['save'](_0x5f119a[_0x1df8b6(0x1446)])[_0x1df8b6(0x2945)]['then'](function(_0x1081ba){const _0x274562=_0x1df8b6;_0x5f119a[_0x274562(0xa27)][_0x274562(0xb3d)](_0x1081ba[_0x274562(0x2488)]()),_0x244d68['success']({'title':_0x274562(0x1740),'msg':_0x5f119a['voiceQueue'][_0x274562(0x19eb)]?_0x5f119a[_0x274562(0x1446)][_0x274562(0x19eb)]+_0x274562(0x1386):''}),_0x147411(_0x1081ba);})['catch'](function(_0x279fa6){const _0x126dac=_0x1df8b6;if(_0x279fa6[_0x126dac(0x524)]&&_0x279fa6['data'][_0x126dac(0xcef)]&&_0x279fa6['data']['errors']['length']){_0x5f119a[_0x126dac(0xcef)]=_0x279fa6[_0x126dac(0x524)][_0x126dac(0xcef)]||[{'message':_0x279fa6[_0x126dac(0xd5f)](),'type':_0x126dac(0x263d)}];for(let _0x1317b2=0x0;_0x1317b2<_0x279fa6[_0x126dac(0x524)][_0x126dac(0xcef)][_0x126dac(0x402)];_0x1317b2+=0x1){_0x244d68[_0x126dac(0x1980)]({'title':_0x279fa6[_0x126dac(0x524)]['errors'][_0x1317b2][_0x126dac(0x1142)],'msg':_0x279fa6[_0x126dac(0x524)]['errors'][_0x1317b2][_0x126dac(0x7fd)]});}}else _0x244d68[_0x126dac(0x1980)]({'title':_0x279fa6[_0x126dac(0x107b)]?'API:'+_0x279fa6[_0x126dac(0x107b)]+_0x126dac(0x1315)+_0x279fa6[_0x126dac(0x167f)]:'api.voiceQueue.save','msg':_0x279fa6['data']?JSON[_0x126dac(0x10bb)](_0x279fa6[_0x126dac(0x524)][_0x126dac(0x7fd)]):_0x279fa6[_0x126dac(0xd5f)]()});});}function _0x2d78ba(){const _0xe7c44d=_0x2e185d;_0x5f119a[_0xe7c44d(0xcef)]=[],_0x41e65c[_0xe7c44d(0x1446)]['update']({'id':_0x5f119a[_0xe7c44d(0x1446)]['id']},_0x5f119a[_0xe7c44d(0x1446)])['$promise'][_0xe7c44d(0x146b)](function(_0x1b4889){const _0x508d78=_0xe7c44d,_0x766d67=_0x3f65c0()[_0x508d78(0xc84)](_0x5f119a[_0x508d78(0xa27)],{'id':_0x1b4889['id']});_0x766d67&&_0x3f65c0()[_0x508d78(0x168d)](_0x766d67,_0x3f65c0()['pick'](_0x1b4889['toJSON'](),_0x3f65c0()[_0x508d78(0x627)](_0x766d67))),_0x244d68[_0x508d78(0x1c75)]({'title':'VoiceQueue\x20properly\x20saved!','msg':_0x5f119a[_0x508d78(0x1446)][_0x508d78(0x19eb)]?_0x5f119a[_0x508d78(0x1446)][_0x508d78(0x19eb)]+'\x20has\x20been\x20saved!':''}),_0x147411(_0x1b4889);})['catch'](function(_0x46cdf9){const _0x42369c=_0xe7c44d;if(_0x46cdf9[_0x42369c(0x524)]&&_0x46cdf9[_0x42369c(0x524)]['errors']&&_0x46cdf9[_0x42369c(0x524)][_0x42369c(0xcef)][_0x42369c(0x402)]){_0x5f119a[_0x42369c(0xcef)]=_0x46cdf9[_0x42369c(0x524)][_0x42369c(0xcef)]||[{'message':_0x46cdf9[_0x42369c(0xd5f)](),'type':_0x42369c(0x221f)}];for(let _0x1708ac=0x0;_0x1708ac<_0x46cdf9[_0x42369c(0x524)]['errors'][_0x42369c(0x402)];_0x1708ac++){_0x244d68['error']({'title':_0x46cdf9[_0x42369c(0x524)][_0x42369c(0xcef)][_0x1708ac][_0x42369c(0x1142)],'msg':_0x46cdf9['data']['errors'][_0x1708ac]['message']});}}else _0x244d68[_0x42369c(0x1980)]({'title':_0x46cdf9[_0x42369c(0x107b)]?'API:'+_0x46cdf9[_0x42369c(0x107b)]+_0x42369c(0x1315)+_0x46cdf9[_0x42369c(0x167f)]:'api.voiceQueue.update','msg':_0x46cdf9[_0x42369c(0x524)]?JSON[_0x42369c(0x10bb)](_0x46cdf9['data']['message']):_0x46cdf9['toString']()});});}function _0x521d7c(_0x676e61){const _0x464f27=_0x2e185d;_0x5f119a[_0x464f27(0xcef)]=[];const _0x1681fc=_0x1ea816[_0x464f27(0x1e8a)]()['title']('Are\x20you\x20sure?')[_0x464f27(0x80f)]('The\x20voiceQueue\x20will\x20be\x20deleted.')['ariaLabel'](_0x464f27(0x1be5))['ok'](_0x464f27(0x25de))[_0x464f27(0x6c3)](_0x464f27(0xcf0))[_0x464f27(0x1f27)](_0x676e61);_0x1ea816[_0x464f27(0x2615)](_0x1681fc)[_0x464f27(0x146b)](function(){const _0x4333a4=_0x464f27;_0x41e65c[_0x4333a4(0x1446)][_0x4333a4(0x1fac)]({'id':_0x5f119a[_0x4333a4(0x1446)]['id']})[_0x4333a4(0x2945)]['then'](function(){const _0x16a145=_0x4333a4;_0x3f65c0()['remove'](_0x5f119a[_0x16a145(0xa27)],{'id':_0x5f119a[_0x16a145(0x1446)]['id']}),_0x244d68[_0x16a145(0x1c75)]({'title':_0x16a145(0x1ab2),'msg':(_0x5f119a[_0x16a145(0x1446)]['name']||_0x16a145(0x1446))+_0x16a145(0x23e3)}),_0x147411(_0x5f119a['voiceQueue']);})[_0x4333a4(0x129e)](function(_0x4bc4ad){const _0x1d4213=_0x4333a4;if(_0x4bc4ad[_0x1d4213(0x524)]&&_0x4bc4ad[_0x1d4213(0x524)][_0x1d4213(0xcef)]&&_0x4bc4ad[_0x1d4213(0x524)]['errors']['length']){_0x5f119a[_0x1d4213(0xcef)]=_0x4bc4ad[_0x1d4213(0x524)][_0x1d4213(0xcef)]||[{'message':_0x4bc4ad['toString'](),'type':'api.voiceQueue.delete'}];for(let _0x11f665=0x0;_0x11f665<_0x4bc4ad[_0x1d4213(0x524)][_0x1d4213(0xcef)]['length'];_0x11f665++){_0x244d68[_0x1d4213(0x1980)]({'title':_0x4bc4ad[_0x1d4213(0x524)]['errors'][_0x11f665]['type'],'msg':_0x4bc4ad['data']['errors'][_0x11f665][_0x1d4213(0x7fd)]});}}else _0x244d68[_0x1d4213(0x1980)]({'title':_0x4bc4ad[_0x1d4213(0x107b)]?'API:'+_0x4bc4ad[_0x1d4213(0x107b)]+_0x1d4213(0x1315)+_0x4bc4ad[_0x1d4213(0x167f)]:_0x1d4213(0xf2e),'msg':_0x4bc4ad['data']?JSON[_0x1d4213(0x10bb)](_0x4bc4ad[_0x1d4213(0x524)]['message']):_0x4bc4ad[_0x1d4213(0x7fd)]||_0x4bc4ad[_0x1d4213(0xd5f)]()});});},function(){});}function _0xbb5f53(_0x2a5d50){return _0x2a5d50===null?undefined:new Date(_0x2a5d50);}function _0x147411(_0x378597){_0x1ea816['hide'](_0x378597);}}const _0x30837c=_0x42d634;;_0xb4f69b[_0x313a4d(0x11c2)]=['$mdDialog','$q',_0x313a4d(0x1fe4),_0x313a4d(0x247f),_0x313a4d(0x1446),_0x313a4d(0xa27),_0x313a4d(0xfc4),_0x313a4d(0x214b),_0x313a4d(0xa87),'crudPermissions'];function _0xb4f69b(_0x2c1bf9,_0x14caa9,_0x2b5cbe,_0x10f661,_0x6c9c93,_0x380657,_0x3c789b,_0x2b99b8,_0x1a8bbc,_0x427dd8){const _0x49214b=_0x313a4d,_0x5986c6=this;_0x5986c6[_0x49214b(0x2321)]=_0x1a8bbc[_0x49214b(0xb12)](),_0x5986c6[_0x49214b(0x1446)]=_0x6c9c93,_0x5986c6[_0x49214b(0x2514)]=_0x427dd8,_0x5986c6[_0x49214b(0x188d)]=0x0,_0x5986c6['realtime']=_0x3c789b,_0x5986c6[_0x49214b(0x1fd6)]=[],_0x5986c6['allowedItems']=[],_0x5986c6[_0x49214b(0x1ecf)]=[],_0x5986c6[_0x49214b(0x2e8)]=[],_0x5986c6['startingSelectedItems']=[],_0x5986c6['pendingChanges']=![],_0x5986c6[_0x49214b(0x3d4)]=_0x5b4112,_0x5986c6[_0x49214b(0x14c2)]=_0x19815b,_0x5986c6[_0x49214b(0x13f3)]=_0x336f25,_0x5986c6['dualMultiselectOptions']={'readOnly':!_0x5986c6[_0x49214b(0x2514)]['canEdit'],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':'name','line1':'fullname','line2':[_0x49214b(0x19eb),_0x49214b(0x113f)],'line3':_0x49214b(0x188d),'labelAll':_0x2b99b8[_0x49214b(0xde)](_0x49214b(0x2050)),'labelSelected':_0x2b99b8[_0x49214b(0xde)](_0x49214b(0xf73)),'transferCallback':function(_0x11b8c1,_0x14cc23){const _0x5d4c3f=_0x49214b;_0x14cc23?_0x11b8c1['forEach'](function(_0x3af604){const _0xd90826=a0_0x3bb9;_0x3af604[_0xd90826(0x188d)]=undefined;}):_0x11b8c1[_0x5d4c3f(0x1df5)](function(_0x15b3af){const _0x1a20b9=_0x5d4c3f;_0x15b3af[_0x1a20b9(0x188d)]=_0x1a20b9(0x2505)+_0x5986c6[_0x1a20b9(0x188d)];});const _0x44cbde=_0x3f65c0()[_0x5d4c3f(0x85e)](_0x5986c6[_0x5d4c3f(0xa65)],_0x5986c6[_0x5d4c3f(0x1ecf)],function(_0x4e1973,_0x5aa806){const _0x2a5454=_0x5d4c3f;return _0x4e1973['id']===_0x5aa806['id']&&_0x4e1973[_0x2a5454(0x188d)]===_0x5aa806[_0x2a5454(0x188d)];});_0x5986c6[_0x5d4c3f(0x132)]=_0x3f65c0()[_0x5d4c3f(0x2635)](_0x44cbde)?![]:!![];}};function _0x5b4112(){const _0x4dbe6d=_0x49214b;return _0x1a8bbc[_0x4dbe6d(0x23e0)](_0x4dbe6d(0x174b))?_0xa2e772()[_0x4dbe6d(0x129e)](function(_0x212d49){const _0xcf693b=_0x4dbe6d;_0x2b5cbe[_0xcf693b(0x1980)]({'title':_0x212d49[_0xcf693b(0x107b)]?_0xcf693b(0x262a)+_0x212d49[_0xcf693b(0x107b)]+_0xcf693b(0x1315)+_0x212d49[_0xcf693b(0x167f)]:_0xcf693b(0x557),'msg':_0x212d49[_0xcf693b(0x107b)]?JSON[_0xcf693b(0x10bb)](_0x212d49[_0xcf693b(0x524)]):_0x212d49[_0xcf693b(0xd5f)]()});}):_0x29b992()[_0x4dbe6d(0x146b)](function(_0x21f411){const _0x47df26=_0x4dbe6d;return _0x5986c6[_0x47df26(0x2146)]=_0x21f411,_0xa2e772();})[_0x4dbe6d(0x129e)](function(_0x3a378e){const _0x5f4179=_0x4dbe6d;_0x2b5cbe[_0x5f4179(0x1980)]({'title':_0x3a378e['status']?_0x5f4179(0x262a)+_0x3a378e[_0x5f4179(0x107b)]+'\x20-\x20'+_0x3a378e[_0x5f4179(0x167f)]:_0x5f4179(0x557),'msg':_0x3a378e[_0x5f4179(0x107b)]?JSON[_0x5f4179(0x10bb)](_0x3a378e[_0x5f4179(0x524)]):_0x3a378e[_0x5f4179(0xd5f)]()});});}function _0x29b992(){return _0x14caa9(function(_0x54e7b1,_0x493f73){const _0x35bddb=a0_0x3bb9;_0x10f661[_0x35bddb(0x1366)]['get']({'userProfileId':_0x5986c6[_0x35bddb(0x2321)][_0x35bddb(0x209a)],'name':_0x35bddb(0xca8)})[_0x35bddb(0x2945)][_0x35bddb(0x146b)](function(_0x45b4b2){const _0x52d852=_0x35bddb,_0xf39496=_0x45b4b2&&_0x45b4b2[_0x52d852(0x19c7)]?_0x45b4b2['rows'][0x0]:null;_0x54e7b1(_0xf39496);})[_0x35bddb(0x129e)](function(_0x207442){_0x493f73(_0x207442);});});}function _0xa2e772(){return _0x14caa9(function(_0x37bc22,_0x2b364b){const _0x2ef2ec=a0_0x3bb9;return _0x5f16f6()[_0x2ef2ec(0x146b)](function(_0x2f1b02){const _0x3611a4=_0x2ef2ec;return _0x5986c6[_0x3611a4(0x1fd6)]=_0x2f1b02[_0x3611a4(0x19c7)]?_0x2f1b02[_0x3611a4(0x19c7)]:[],_0x1a8bbc[_0x3611a4(0x23e0)]('admin')?_0x2f1b02:_0x5986c6[_0x3611a4(0x2146)]?_0x5986c6[_0x3611a4(0x2146)][_0x3611a4(0x11d2)]?_0x2f1b02:_0x58ccac():null;})[_0x2ef2ec(0x146b)](function(_0x450b49){const _0x487375=_0x2ef2ec,_0x28ca5f=_0x450b49&&_0x450b49[_0x487375(0x19c7)]?_0x450b49['rows']:[];return _0x5986c6['allowedItems']=_0x3f65c0()['map'](_0x28ca5f,function(_0x4e015e){const _0x428d84=_0x487375;return _0x3f65c0()[_0x428d84(0xc84)](_0x5986c6[_0x428d84(0x1fd6)],{'id':_0x1a8bbc[_0x428d84(0x23e0)](_0x428d84(0x174b))||_0x5986c6[_0x428d84(0x2146)][_0x428d84(0x11d2)]?_0x4e015e['id']:_0x4e015e['resourceId']});}),_0x5986c6['startingAllowedItems']=angular[_0x487375(0x235a)](_0x5986c6[_0x487375(0xc4e)]),_0x5986c6[_0x487375(0x1fd6)][_0x487375(0x1df5)](function(_0x1133fc){const _0x61d2a8=_0x487375,_0xe97185=_0x3f65c0()[_0x61d2a8(0xc84)](_0x5986c6[_0x61d2a8(0xc4e)],{'id':_0x1133fc['id']});_0x1a8bbc[_0x61d2a8(0x23e0)](_0x61d2a8(0x174b))?_0x1133fc[_0x61d2a8(0x146f)]=!![]:_0x1133fc[_0x61d2a8(0x146f)]=typeof _0xe97185!==_0x61d2a8(0x2274)?!![]:![];}),_0x40b93b();})[_0x2ef2ec(0x146b)](function(_0x481295){const _0x309590=_0x2ef2ec,_0x5d9a1b=_0x481295&&_0x481295[_0x309590(0x19c7)]?_0x481295[_0x309590(0x19c7)]:[];_0x5986c6[_0x309590(0x1ecf)]=_0x3f65c0()[_0x309590(0x205)](_0x5d9a1b,function(_0x563f6e){const _0xa4e0eb=_0x309590,_0x45d827=_0x3f65c0()[_0xa4e0eb(0xc84)](_0x5986c6[_0xa4e0eb(0x1fd6)],{'id':_0x563f6e['id']});return _0x45d827[_0xa4e0eb(0x188d)]=_0x563f6e[_0xa4e0eb(0x1f91)]?_0xa4e0eb(0x2505)+_0x563f6e[_0xa4e0eb(0x1f91)]['penalty']:'',_0x45d827[_0xa4e0eb(0x113f)]=typeof _0x563f6e[_0xa4e0eb(0x113f)]!=='undefined'?'<'+_0x563f6e[_0xa4e0eb(0x113f)]+'>':'',_0x45d827;}),_0x5986c6[_0x309590(0xa65)]=angular[_0x309590(0x235a)](_0x5986c6[_0x309590(0x1ecf)]),_0x5986c6['dualMultiselectOptions'][_0x309590(0x1ecf)]=_0x5986c6[_0x309590(0x1ecf)],_0x5986c6[_0x309590(0x1f8a)][_0x309590(0x1fd6)]=_0x3f65c0()[_0x309590(0x2796)](_0x5986c6[_0x309590(0xc4e)],_0x5986c6['dualMultiselectOptions'][_0x309590(0x1ecf)],'id'),_0x37bc22();})[_0x2ef2ec(0x129e)](function(_0x2d839d){_0x2b364b(_0x2d839d);});});}function _0x58ccac(){return _0x14caa9(function(_0x609aa0,_0x5ca399){const _0x9d4761=a0_0x3bb9;return _0x10f661['userProfileResource']['get']({'sectionId':_0x5986c6['section']['id'],'nolimit':!![]})[_0x9d4761(0x2945)][_0x9d4761(0x146b)](function(_0xebec1c){_0x609aa0(_0xebec1c);})['catch'](function(_0x24cecc){_0x5ca399(_0x24cecc);});});}function _0x40b93b(){return _0x14caa9(function(_0x1af0a2,_0x55e162){const _0x1172fd=a0_0x3bb9;return _0x10f661[_0x1172fd(0x1446)][_0x1172fd(0x333)]({'id':_0x5986c6['voiceQueue']['id'],'fields':'id,name,internal,fullname','nolimit':!![],'role':_0x1172fd(0x1755)})[_0x1172fd(0x2945)][_0x1172fd(0x146b)](function(_0x1b2d28){_0x1af0a2(_0x1b2d28);})[_0x1172fd(0x129e)](function(_0x230ce7){_0x55e162(_0x230ce7);});});}function _0x5f16f6(){return _0x14caa9(function(_0x414ef8,_0x42cf48){const _0xf2490f=a0_0x3bb9;return _0x10f661[_0xf2490f(0xe7b)][_0xf2490f(0x16b4)]({'fields':'id,name,internal,fullname','nolimit':!![],'role':_0xf2490f(0x1755)})[_0xf2490f(0x2945)][_0xf2490f(0x146b)](function(_0xa1eeb7){_0x414ef8(_0xa1eeb7);})[_0xf2490f(0x129e)](function(_0xf2b85e){_0x42cf48(_0xf2b85e);});});}function _0x3ff527(_0x189c22){return _0x14caa9(function(_0x2bb87c,_0x4dc644){const _0x625ac7=a0_0x3bb9;if(_0x3f65c0()[_0x625ac7(0x2635)](_0x189c22))_0x2bb87c();else{const _0x360d5b=[],_0x5e77b2=_0x3f65c0()[_0x625ac7(0x253)](_0x189c22,_0x625ac7(0x188d));for(let _0x1b57c6=0x0;_0x1b57c6-0x1?_0x3ee160[_0x255639(0xe83)](_0x3ee160[_0x255639(0x1052)]('/')+0x1):_0x3ee160[_0x255639(0x1052)]('\x5c')>-0x1?_0x3ee160[_0x255639(0xe83)](_0x3ee160[_0x255639(0x1052)]('\x5c')+0x1):_0x3ee160;return _0x2c8bad=_0x2c8bad[_0x255639(0xe83)](0x0,_0x2c8bad[_0x255639(0x1052)]('.')),_0x2c8bad;}function _0x29ca18(_0x4c869d){const _0x444eac=_0x141e3a;let _0x1755f5=![];const _0x475f5e=!_0x3f65c0()[_0x444eac(0x1b36)](_0x4c869d[_0x444eac(0x22b0)])?_0x4c869d[_0x444eac(0x22b0)]:_0x4c869d[_0x444eac(0x175d)][_0x444eac(0xe83)](_0x4c869d['value'][_0x444eac(0x1052)]('.'));return _0x1755f5=_0x475f5e==='.mp4'?!![]:![],_0x330a04[_0x444eac(0x1688)]['download']({'id':_0x4c869d['id']})[_0x444eac(0x2945)][_0x444eac(0x146b)](function(_0x54c2a3){const _0x470aa3=_0x444eac,_0x76f9d0=[_0x54c2a3[_0x470aa3(0x2eb)]];let _0x447c98=_0x470aa3(0x15b1);const _0x388e61=new Blob(_0x76f9d0,{'type':_0x54c2a3[_0x470aa3(0x1142)]});_0x447c98=_0x296072(_0x4c869d[_0x470aa3(0x175d)])+_0x4c869d['format'];const _0x3afdc5=window[_0x470aa3(0xef3)][_0x470aa3(0x24ec)]('a');_0x3afdc5[_0x470aa3(0x1652)](_0x470aa3(0x1b3c),URL['createObjectURL'](_0x388e61)),_0x3afdc5[_0x470aa3(0x1652)]('download',_0x447c98),document['body'][_0x470aa3(0x23e)](_0x3afdc5),_0x3afdc5['click']();})[_0x444eac(0x129e)](function(_0x1941da){const _0x51e1f0=_0x444eac;if(_0x1941da[_0x51e1f0(0x524)]&&_0x1941da[_0x51e1f0(0x524)][_0x51e1f0(0xcef)]&&_0x1941da[_0x51e1f0(0x524)][_0x51e1f0(0xcef)][_0x51e1f0(0x402)])for(let _0x3bd38e=0x0;_0x3bd38e<_0x1941da['data'][_0x51e1f0(0xcef)][_0x51e1f0(0x402)];_0x3bd38e++){_0x5df861[_0x51e1f0(0x1980)]({'title':_0x1941da[_0x51e1f0(0x524)][_0x51e1f0(0xcef)][_0x3bd38e][_0x51e1f0(0x1142)],'msg':_0x1941da[_0x51e1f0(0x524)][_0x51e1f0(0xcef)][_0x3bd38e]['message']});}else{if(String(_0x1941da['status'])===_0x51e1f0(0x2670)&&_0x1755f5===![])_0x5df861['info']({'title':_0x4bea65['instant'](_0x51e1f0(0x517)),'msg':_0x4bea65['instant'](_0x51e1f0(0x25a))});else String(_0x1941da[_0x51e1f0(0x107b)])==='404'?_0x5df861[_0x51e1f0(0x271e)]({'title':_0x4bea65[_0x51e1f0(0xde)](_0x51e1f0(0x517)),'msg':_0x4bea65[_0x51e1f0(0xde)](_0x51e1f0(0x2616))}):_0x5df861[_0x51e1f0(0x1980)]({'title':_0x1941da['status']?_0x51e1f0(0x262a)+_0x1941da['status']+_0x51e1f0(0x1315)+_0x1941da[_0x51e1f0(0x167f)]:_0x51e1f0(0x2471),'msg':_0x1941da[_0x51e1f0(0x524)]?JSON[_0x51e1f0(0x10bb)](_0x1941da[_0x51e1f0(0x524)][_0x51e1f0(0x7fd)]):_0x1941da[_0x51e1f0(0xd5f)]()});}});}function _0x40c070(_0x22affc,_0x1320e9){const _0x4b6b24=_0x141e3a,_0x3f72ff=_0x20e4fd[_0x4b6b24(0x1e8a)]()[_0x4b6b24(0x1189)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x3f65c0()[_0x4b6b24(0x20d1)](_0x4b6b24(0x1688))+'?')[_0x4b6b24(0x1cbe)](_0x4b6b24(0x16d3)+(_0x22affc['name']||'voiceRecording')+_0x4b6b24(0x252f)+_0x4b6b24(0xe01))[_0x4b6b24(0x4bd)](_0x4b6b24(0x20da))[_0x4b6b24(0x1f27)](_0x1320e9)['ok']('OK')[_0x4b6b24(0x6c3)]('CANCEL');_0x20e4fd['show'](_0x3f72ff)[_0x4b6b24(0x146b)](function(){_0x8b62f1(_0x22affc);},function(){const _0x5ebf67=_0x4b6b24;console[_0x5ebf67(0x1a74)](_0x5ebf67(0x39a));});}let _0x42ce46=!![],_0x3701c8=0x1;_0x2e8b6b[_0x141e3a(0x21e8)](_0x141e3a(0x2669),function(_0x5f1e02,_0xc2fe13){const _0x333fe8=_0x141e3a;_0x42ce46?_0x3b8db5(function(){_0x42ce46=![];}):(!_0xc2fe13&&(_0x3701c8=_0xf6c3a4[_0x333fe8(0x1a56)]['page']),_0x5f1e02!==_0xc2fe13&&(_0xf6c3a4[_0x333fe8(0x1a56)][_0x333fe8(0x844)]=0x1),!_0x5f1e02&&(_0xf6c3a4[_0x333fe8(0x1a56)][_0x333fe8(0x844)]=_0x3701c8),_0xf6c3a4[_0x333fe8(0x1f4)]());});function _0x3856f2(_0x226dd1){const _0x6e0b0c=_0x141e3a;_0xf6c3a4[_0x6e0b0c(0x2546)]=_0x226dd1||{'count':0x0,'rows':[]};}function _0x1e37aa(){const _0x45c5d3=_0x141e3a;_0xf6c3a4['query']['offset']=(_0xf6c3a4[_0x45c5d3(0x1a56)][_0x45c5d3(0x844)]-0x1)*_0xf6c3a4[_0x45c5d3(0x1a56)][_0x45c5d3(0x221e)],_0x574a30[_0x45c5d3(0x23e0)]('admin')?_0xf6c3a4[_0x45c5d3(0xb9c)]=_0x330a04['voiceRecording'][_0x45c5d3(0x16b4)](_0xf6c3a4[_0x45c5d3(0x1a56)],_0x3856f2)['$promise']:(_0xf6c3a4[_0x45c5d3(0x1a56)]['id']=_0xf6c3a4[_0x45c5d3(0x26b6)]['id'],_0xf6c3a4[_0x45c5d3(0x1a56)][_0x45c5d3(0x2146)]=_0x45c5d3(0xb19),_0xf6c3a4[_0x45c5d3(0xb9c)]=_0x330a04[_0x45c5d3(0x26b6)][_0x45c5d3(0x158f)](_0xf6c3a4[_0x45c5d3(0x1a56)],_0x3856f2)['$promise']);}function _0x3dd9a6(_0x3e7050,_0x998030){const _0x3c799b=_0x141e3a;_0x20e4fd[_0x3c799b(0x2615)]({'controller':'CreateOrEditVoiceRecordingDialogController','controllerAs':'vm','templateUrl':_0x4a5e7f,'parent':angular[_0x3c799b(0x1853)](_0x173b8c[_0x3c799b(0x2586)]),'targetEvent':_0x3e7050,'clickOutsideToClose':!![],'locals':{'voiceRecording':_0x998030,'voiceRecordings':_0xf6c3a4[_0x3c799b(0x2546)][_0x3c799b(0x19c7)],'license':_0xf6c3a4[_0x3c799b(0x2690)],'setting':_0xf6c3a4[_0x3c799b(0x15b9)],'crudPermissions':_0xf6c3a4[_0x3c799b(0x2514)]}});}function _0x8b62f1(_0x293ab2){const _0x24f0a0=_0x141e3a;_0x330a04[_0x24f0a0(0x1688)][_0x24f0a0(0x1fac)]({'id':_0x293ab2['id']})[_0x24f0a0(0x2945)][_0x24f0a0(0x146b)](function(){const _0x47b17b=_0x24f0a0;_0x3f65c0()[_0x47b17b(0x2640)](_0xf6c3a4[_0x47b17b(0x2546)][_0x47b17b(0x19c7)],{'id':_0x293ab2['id']}),_0xf6c3a4[_0x47b17b(0x2546)][_0x47b17b(0x51c)]-=0x1,!_0xf6c3a4[_0x47b17b(0x2546)][_0x47b17b(0x19c7)]['length']&&_0xf6c3a4[_0x47b17b(0x1f4)](),_0x5df861[_0x47b17b(0x1c75)]({'title':_0x3f65c0()[_0x47b17b(0x20d1)](_0x47b17b(0x6b2))+_0x47b17b(0x201c),'msg':_0x293ab2[_0x47b17b(0x19eb)]?_0x293ab2[_0x47b17b(0x19eb)]+_0x47b17b(0x23e3):''});})['catch'](function(_0x1f928f){const _0x577b43=_0x24f0a0;if(_0x1f928f[_0x577b43(0x524)]&&_0x1f928f['data'][_0x577b43(0xcef)]&&_0x1f928f[_0x577b43(0x524)][_0x577b43(0xcef)][_0x577b43(0x402)]){_0xf6c3a4[_0x577b43(0xcef)]=_0x1f928f[_0x577b43(0x524)][_0x577b43(0xcef)]||[{'message':_0x1f928f[_0x577b43(0xd5f)](),'type':'SYSTEM:DELETEvoiceRecording'}];for(let _0x2b20c5=0x0;_0x2b20c5<_0x1f928f[_0x577b43(0x524)][_0x577b43(0xcef)][_0x577b43(0x402)];_0x2b20c5++){_0x5df861['error']({'title':_0x1f928f['data'][_0x577b43(0xcef)][_0x2b20c5][_0x577b43(0x1142)],'msg':_0x1f928f[_0x577b43(0x524)][_0x577b43(0xcef)][_0x2b20c5]['message']});}}else _0x5df861[_0x577b43(0x1980)]({'title':_0x1f928f[_0x577b43(0x107b)]?_0x577b43(0x262a)+_0x1f928f[_0x577b43(0x107b)]+_0x577b43(0x1315)+_0x1f928f[_0x577b43(0x167f)]:_0x577b43(0x19ee),'msg':_0x1f928f[_0x577b43(0x524)]?JSON[_0x577b43(0x10bb)](_0x1f928f[_0x577b43(0x524)][_0x577b43(0x7fd)]):_0x1f928f['message']||_0x1f928f[_0x577b43(0xd5f)]()});});}function _0x46c4ba(){const _0xaaa8f9=_0x141e3a,_0x3b3d68=angular['copy'](_0xf6c3a4[_0xaaa8f9(0x1d20)]);return _0xf6c3a4[_0xaaa8f9(0x1d20)]=[],_0x3b3d68;}function _0x4d8502(_0x4efe7c){const _0x5c2c4f=_0x141e3a,_0x2c31ce=_0x20e4fd[_0x5c2c4f(0x1e8a)]()[_0x5c2c4f(0x1189)](_0x5c2c4f(0x217f))[_0x5c2c4f(0x1cbe)](_0x5c2c4f(0x16d3)+_0xf6c3a4['selectedVoiceRecordings'][_0x5c2c4f(0x402)]+_0x5c2c4f(0x2452)+_0x5c2c4f(0xe01))[_0x5c2c4f(0x4bd)](_0x5c2c4f(0x236e))[_0x5c2c4f(0x1f27)](_0x4efe7c)['ok']('OK')[_0x5c2c4f(0x6c3)](_0x5c2c4f(0x39a));_0x20e4fd['show'](_0x2c31ce)['then'](function(){const _0x29a5f1=_0x5c2c4f;_0xf6c3a4['selectedVoiceRecordings'][_0x29a5f1(0x1df5)](function(_0x38ef66){_0x8b62f1(_0x38ef66);}),_0xf6c3a4[_0x29a5f1(0x1d20)]=[];});}function _0x4977d9(){const _0x46a942=_0x141e3a;_0xf6c3a4[_0x46a942(0x1d20)]=[];}function _0x25b273(){const _0x4efda6=_0x141e3a;_0xf6c3a4[_0x4efda6(0x1d20)]=_0xf6c3a4[_0x4efda6(0x2546)][_0x4efda6(0x19c7)];}}const _0xc85998=_0x27b1b0;;const _0x2eee07=_0x4acfac['p']+_0x313a4d(0x2143);;const _0x12634f=_0x4acfac['p']+_0x313a4d(0xf41);;const _0x16baab=_0x4acfac['p']+_0x313a4d(0x179f);;const _0x287b90=_0x4acfac['p']+_0x313a4d(0x17f4);;const _0x25799e=_0x4acfac['p']+_0x313a4d(0xee);;const _0x371dbb=_0x4acfac['p']+_0x313a4d(0x1401);;const _0x25989f=_0x4acfac['p']+_0x313a4d(0x4fa);;const _0x910bab=_0x4acfac['p']+_0x313a4d(0x159);;const _0x1f4f50=_0x4acfac['p']+_0x313a4d(0x87d);;const _0x5c8ab7=_0x4acfac['p']+'src/js/modules/main/apps/voice/views/voicemails/voicemails.html/voicemails.html';;const _0xe19c9=_0x4acfac['p']+_0x313a4d(0x8e5);;const _0x2625b8=_0x4acfac['p']+'src/js/modules/main/apps/voice/views/musiconholds/musiconholds.html/musiconholds.html';;const _0x1639a2=_0x4acfac['p']+_0x313a4d(0x1153);;const _0x5094f9=_0x4acfac['p']+_0x313a4d(0x418);;const _0x26f713=_0x4acfac['p']+'src/js/modules/main/apps/voice/views/voiceRecordings/edit/view.html/view.html';;const _0x276c31=_0x4acfac['p']+_0x313a4d(0x20a7);;const _0x599809=_0x4acfac['p']+_0x313a4d(0x874);;_0x170569[_0x313a4d(0x11c2)]=[_0x313a4d(0x921),_0x313a4d(0x695)];function _0x170569(_0x4eb476,_0x237ea2){const _0x127f2e=_0x313a4d;_0x4eb476[_0x127f2e(0x13d6)](_0x127f2e(0x2494),{'abstract':!![],'url':'/voice'})[_0x127f2e(0x13d6)](_0x127f2e(0xeca),{'url':_0x127f2e(0x1a9f),'views':{'content@app':{'templateUrl':_0x2eee07,'controller':'VoiceQueuesController\x20as\x20vm'}},'resolve':{'voiceQueues':[_0x127f2e(0x362),_0x127f2e(0xa87),function(_0x4ceec0,_0x175a95){const _0x239003=_0x127f2e;return _0x175a95[_0x239003(0x23e0)](_0x239003(0x174b))?_0x4ceec0[_0x239003(0x2922)]('voiceQueue@get',{'fields':_0x239003(0x2380),'type':_0x239003(0x7b0),'sort':'-updatedAt','channel':'voice','limit':0xa,'offset':0x0}):_0x4ceec0[_0x239003(0x2922)](_0x239003(0x938),{'id':_0x175a95[_0x239003(0xb12)]()[_0x239003(0x209a)],'section':_0x239003(0x507),'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':_0x239003(0x7b0),'sort':_0x239003(0x12f2),'channel':'voice','limit':0xa,'offset':0x0});}],'userProfile':[_0x127f2e(0x362),_0x127f2e(0xa87),function(_0x573b65,_0x305394){const _0x4b4313=_0x127f2e;return _0x305394[_0x4b4313(0x23e0)](_0x4b4313(0x174b))?null:_0x573b65[_0x4b4313(0x2922)](_0x4b4313(0x119a),{'fields':'id,name,crudPermissions','id':_0x305394[_0x4b4313(0xb12)]()['userProfileId']});}],'userProfileSection':[_0x127f2e(0x362),_0x127f2e(0xa87),function(_0x3801ba,_0x6bbf7d){const _0x2123e9=_0x127f2e;return _0x6bbf7d['hasRole'](_0x2123e9(0x174b))?null:_0x3801ba[_0x2123e9(0x2922)](_0x2123e9(0x27be),{'fields':_0x2123e9(0x1e64),'userProfileId':_0x6bbf7d['getCurrentUser']()[_0x2123e9(0x209a)],'sectionId':0x191});}]},'authenticate':!![],'permissionId':0x191,'bodyClass':_0x127f2e(0xe6)})[_0x127f2e(0x13d6)](_0x127f2e(0x15f8),{'url':_0x127f2e(0x2028),'params':{'voiceQueue':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x12634f,'controller':_0x127f2e(0xde6)}},'resolve':{'voiceQueue':[_0x127f2e(0x362),_0x127f2e(0x28c8),function(_0x30d71c,_0x3fddf9){const _0x493385=_0x127f2e;return _0x30d71c[_0x493385(0x2922)](_0x493385(0x5c0),{'fields':_0x493385(0x2380),'id':_0x3fddf9['id']});}],'userProfileSection':[_0x127f2e(0x362),_0x127f2e(0xa87),function(_0x2bf0d5,_0x44bb98){const _0x47ead3=_0x127f2e;return _0x2bf0d5[_0x47ead3(0x2922)](_0x47ead3(0x27be),{'fields':_0x47ead3(0x1e64),'userProfileId':_0x44bb98[_0x47ead3(0xb12)]()[_0x47ead3(0x209a)],'sectionId':0x191});}]},'authenticate':!![],'permissionId':0x191,'bodyClass':_0x127f2e(0xe6)})[_0x127f2e(0x13d6)](_0x127f2e(0x274f),{'url':_0x127f2e(0x21c2),'views':{'content@app':{'templateUrl':_0x16baab,'controller':_0x127f2e(0x1f92)}},'resolve':{'inboundroutes':[_0x127f2e(0x362),_0x127f2e(0xa87),function(_0x198d44,_0x427e54){const _0x59df37=_0x127f2e;return _0x427e54[_0x59df37(0x23e0)](_0x59df37(0x174b))?_0x198d44[_0x59df37(0x2922)]('voiceExtension@get',{'fields':_0x59df37(0x152e),'type':'inbound','sort':_0x59df37(0x12f2),'VoiceExtensionId':_0x59df37(0x203c),'limit':0xa,'offset':0x0}):_0x198d44[_0x59df37(0x2922)](_0x59df37(0x938),{'id':_0x427e54[_0x59df37(0xb12)]()[_0x59df37(0x209a)],'section':_0x59df37(0x109a),'fields':_0x59df37(0x152e),'type':_0x59df37(0x7b0),'sort':'-updatedAt','VoiceExtensionId':_0x59df37(0x203c),'limit':0xa,'offset':0x0});}],'userProfile':[_0x127f2e(0x362),_0x127f2e(0xa87),function(_0x4e70ab,_0x212585){const _0x2f025a=_0x127f2e;return _0x212585[_0x2f025a(0x23e0)](_0x2f025a(0x174b))?null:_0x4e70ab[_0x2f025a(0x2922)](_0x2f025a(0x119a),{'fields':_0x2f025a(0x227),'id':_0x212585['getCurrentUser']()[_0x2f025a(0x209a)]});}],'userProfileSection':[_0x127f2e(0x362),'Auth',function(_0x258d99,_0x45cabb){const _0x11dc16=_0x127f2e;return _0x45cabb[_0x11dc16(0x23e0)](_0x11dc16(0x174b))?null:_0x258d99[_0x11dc16(0x2922)](_0x11dc16(0x27be),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x45cabb[_0x11dc16(0xb12)]()[_0x11dc16(0x209a)],'sectionId':0x192});}]},'authenticate':!![],'permissionId':0x192,'bodyClass':'voice'})[_0x127f2e(0x13d6)]('app.voice.inboundroutes.edit',{'url':_0x127f2e(0x2028),'params':{'inboundroute':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x287b90,'controller':'InboundRouteController\x20as\x20vm'}},'resolve':{'inboundroute':['apiResolver',_0x127f2e(0x28c8),function(_0x17f201,_0x1ebbd8){const _0xe46d56=_0x127f2e;return _0x17f201[_0xe46d56(0x2922)](_0xe46d56(0xf68),{'fields':_0xe46d56(0x152e),'id':_0x1ebbd8['id']});}],'userProfileSection':['apiResolver',_0x127f2e(0xa87),function(_0x338b25,_0x1374e7){const _0xc29bb1=_0x127f2e;return _0x338b25[_0xc29bb1(0x2922)]('userProfileSection@get',{'fields':_0xc29bb1(0x1e64),'userProfileId':_0x1374e7[_0xc29bb1(0xb12)]()[_0xc29bb1(0x209a)],'sectionId':0x192});}]},'authenticate':!![],'permissionId':0x192,'bodyClass':_0x127f2e(0xe6)})[_0x127f2e(0x13d6)](_0x127f2e(0x2680),{'url':_0x127f2e(0xcbb),'views':{'content@app':{'templateUrl':_0x25799e,'controller':_0x127f2e(0x288b)}},'resolve':{'outboundroutes':[_0x127f2e(0x362),_0x127f2e(0xa87),function(_0x36864c,_0x42da6f){const _0x284188=_0x127f2e;return _0x42da6f[_0x284188(0x23e0)](_0x284188(0x174b))?_0x36864c[_0x284188(0x2922)](_0x284188(0xf68),{'fields':_0x284188(0x1c29),'type':'outbound','sort':_0x284188(0x12f2),'VoiceExtensionId':'null','limit':0xa,'offset':0x0}):_0x36864c[_0x284188(0x2922)](_0x284188(0x938),{'id':_0x42da6f[_0x284188(0xb12)]()[_0x284188(0x209a)],'section':'OutboundRoutes','fields':_0x284188(0x1c29),'type':_0x284188(0xc9c),'sort':_0x284188(0x12f2),'VoiceExtensionId':_0x284188(0x203c),'limit':0xa,'offset':0x0});}],'userProfile':[_0x127f2e(0x362),_0x127f2e(0xa87),function(_0x5ed831,_0x7787c0){const _0x3a0f4c=_0x127f2e;return _0x7787c0[_0x3a0f4c(0x23e0)](_0x3a0f4c(0x174b))?null:_0x5ed831[_0x3a0f4c(0x2922)](_0x3a0f4c(0x119a),{'fields':_0x3a0f4c(0x227),'id':_0x7787c0[_0x3a0f4c(0xb12)]()[_0x3a0f4c(0x209a)]});}],'userProfileSection':[_0x127f2e(0x362),'Auth',function(_0x4a8dc6,_0x65030e){const _0x33fc4b=_0x127f2e;return _0x65030e['hasRole'](_0x33fc4b(0x174b))?null:_0x4a8dc6[_0x33fc4b(0x2922)](_0x33fc4b(0x27be),{'fields':_0x33fc4b(0x1e64),'userProfileId':_0x65030e[_0x33fc4b(0xb12)]()['userProfileId'],'sectionId':0x193});}]},'authenticate':!![],'permissionId':0x193,'bodyClass':_0x127f2e(0xe6)})[_0x127f2e(0x13d6)](_0x127f2e(0x41e),{'url':'/:id?tab','params':{'outboundroute':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x371dbb,'controller':_0x127f2e(0x125f)}},'resolve':{'outboundroute':[_0x127f2e(0x362),_0x127f2e(0x28c8),function(_0x548ad8,_0x3f9dcf){const _0x558c6c=_0x127f2e;return _0x548ad8[_0x558c6c(0x2922)](_0x558c6c(0xf68),{'fields':_0x558c6c(0x1c29),'id':_0x3f9dcf['id']});}],'userProfileSection':['apiResolver',_0x127f2e(0xa87),function(_0x319bb5,_0x2f19cd){const _0x5634ac=_0x127f2e;return _0x319bb5[_0x5634ac(0x2922)](_0x5634ac(0x27be),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x2f19cd['getCurrentUser']()['userProfileId'],'sectionId':0x193});}]},'authenticate':!![],'permissionId':0x193,'bodyClass':_0x127f2e(0xe6)})[_0x127f2e(0x13d6)](_0x127f2e(0x239a),{'url':_0x127f2e(0x763),'views':{'content@app':{'templateUrl':_0x25989f,'controller':'InternalRoutesController\x20as\x20vm'}},'resolve':{'internalroutes':['apiResolver','Auth',function(_0x284c16,_0x496b47){const _0x5ee819=_0x127f2e;return _0x496b47['hasRole']('admin')?_0x284c16['resolve']('voiceExtension@get',{'fields':_0x5ee819(0x152e),'type':_0x5ee819(0x113f),'sort':_0x5ee819(0x12f2),'VoiceExtensionId':'null','limit':0xa,'offset':0x0}):_0x284c16['resolve'](_0x5ee819(0x938),{'id':_0x496b47[_0x5ee819(0xb12)]()['userProfileId'],'section':_0x5ee819(0xa2b),'fields':_0x5ee819(0x152e),'type':'internal','sort':'-updatedAt','VoiceExtensionId':_0x5ee819(0x203c),'limit':0xa,'offset':0x0});}],'userProfile':[_0x127f2e(0x362),_0x127f2e(0xa87),function(_0x54860a,_0x50db86){const _0xb38e99=_0x127f2e;return _0x50db86[_0xb38e99(0x23e0)](_0xb38e99(0x174b))?null:_0x54860a[_0xb38e99(0x2922)](_0xb38e99(0x119a),{'fields':_0xb38e99(0x227),'id':_0x50db86[_0xb38e99(0xb12)]()[_0xb38e99(0x209a)]});}],'userProfileSection':[_0x127f2e(0x362),'Auth',function(_0x263471,_0x322aa3){const _0x5a4b10=_0x127f2e;return _0x322aa3[_0x5a4b10(0x23e0)](_0x5a4b10(0x174b))?null:_0x263471[_0x5a4b10(0x2922)](_0x5a4b10(0x27be),{'fields':_0x5a4b10(0x1e64),'userProfileId':_0x322aa3['getCurrentUser']()['userProfileId'],'sectionId':0x194});}]},'authenticate':!![],'permissionId':0x194,'bodyClass':'voice'})[_0x127f2e(0x13d6)](_0x127f2e(0x1f2c),{'url':_0x127f2e(0x2028),'params':{'internalroute':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x910bab,'controller':_0x127f2e(0x1c20)}},'resolve':{'internalroute':[_0x127f2e(0x362),'$stateParams',function(_0x2aace8,_0x2e38de){const _0xe4ced1=_0x127f2e;return _0x2aace8['resolve'](_0xe4ced1(0xf68),{'fields':_0xe4ced1(0x152e),'id':_0x2e38de['id']});}],'userProfileSection':['apiResolver',_0x127f2e(0xa87),function(_0xd630a8,_0x3c8a31){const _0x15767=_0x127f2e;return _0xd630a8[_0x15767(0x2922)](_0x15767(0x27be),{'fields':_0x15767(0x1e64),'userProfileId':_0x3c8a31[_0x15767(0xb12)]()[_0x15767(0x209a)],'sectionId':0x194});}]},'authenticate':!![],'permissionId':0x194,'bodyClass':_0x127f2e(0xe6)})[_0x127f2e(0x13d6)](_0x127f2e(0x214d),{'url':_0x127f2e(0x198),'views':{'content@app':{'templateUrl':_0x1f4f50,'controller':_0x127f2e(0x829)}},'resolve':{'contexts':[_0x127f2e(0x362),_0x127f2e(0xa87),function(_0x142e7d,_0x53c0c2){const _0x26504=_0x127f2e;return _0x53c0c2['hasRole'](_0x26504(0x174b))?_0x142e7d['resolve'](_0x26504(0x87f),{'fields':_0x26504(0x608),'sort':_0x26504(0x12f2),'defaultEntry':_0x26504(0x1ed8),'limit':0xa,'offset':0x0}):_0x142e7d['resolve'](_0x26504(0x938),{'id':_0x53c0c2[_0x26504(0xb12)]()['userProfileId'],'section':_0x26504(0x275),'fields':_0x26504(0x608),'sort':_0x26504(0x12f2),'defaultEntry':'false','limit':0xa,'offset':0x0});}],'userProfile':[_0x127f2e(0x362),_0x127f2e(0xa87),function(_0x439f26,_0x58c5df){const _0x5e3443=_0x127f2e;return _0x58c5df[_0x5e3443(0x23e0)](_0x5e3443(0x174b))?null:_0x439f26[_0x5e3443(0x2922)](_0x5e3443(0x119a),{'fields':_0x5e3443(0x227),'id':_0x58c5df[_0x5e3443(0xb12)]()[_0x5e3443(0x209a)]});}],'userProfileSection':[_0x127f2e(0x362),_0x127f2e(0xa87),function(_0x1a7293,_0x20259f){const _0xa2ec0e=_0x127f2e;return _0x20259f[_0xa2ec0e(0x23e0)](_0xa2ec0e(0x174b))?null:_0x1a7293[_0xa2ec0e(0x2922)](_0xa2ec0e(0x27be),{'fields':_0xa2ec0e(0x1e64),'userProfileId':_0x20259f[_0xa2ec0e(0xb12)]()[_0xa2ec0e(0x209a)],'sectionId':0x195});}]},'authenticate':!![],'permissionId':0x195,'bodyClass':_0x127f2e(0xe6)})['state'](_0x127f2e(0x405),{'url':_0x127f2e(0x831),'views':{'content@app':{'templateUrl':_0x5c8ab7,'controller':'VoicemailsController\x20as\x20vm'}},'resolve':{'voicemails':['apiResolver',_0x127f2e(0xa87),function(_0x58b437,_0x5a80ca){const _0x45165c=_0x127f2e;return _0x5a80ca[_0x45165c(0x23e0)]('admin')?_0x58b437[_0x45165c(0x2922)](_0x45165c(0x7c1),{'fields':_0x45165c(0x1e06),'sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x58b437[_0x45165c(0x2922)](_0x45165c(0x938),{'id':_0x5a80ca[_0x45165c(0xb12)]()[_0x45165c(0x209a)],'section':_0x45165c(0x1efe),'fields':_0x45165c(0x1e06),'sort':_0x45165c(0x12f2),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver','Auth',function(_0x304a37,_0x1031d3){const _0x5f5116=_0x127f2e;return _0x1031d3[_0x5f5116(0x23e0)](_0x5f5116(0x174b))?null:_0x304a37[_0x5f5116(0x2922)](_0x5f5116(0x119a),{'fields':_0x5f5116(0x227),'id':_0x1031d3[_0x5f5116(0xb12)]()[_0x5f5116(0x209a)]});}],'userProfileSection':[_0x127f2e(0x362),_0x127f2e(0xa87),function(_0x493bfd,_0x1194d0){const _0x88c00=_0x127f2e;return _0x1194d0[_0x88c00(0x23e0)](_0x88c00(0x174b))?null:_0x493bfd[_0x88c00(0x2922)](_0x88c00(0x27be),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x1194d0[_0x88c00(0xb12)]()[_0x88c00(0x209a)],'sectionId':0x196});}]},'authenticate':!![],'permissionId':0x196,'bodyClass':_0x127f2e(0xe6)})[_0x127f2e(0x13d6)](_0x127f2e(0x1e71),{'url':_0x127f2e(0x2028),'params':{'voicemail':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0xe19c9,'controller':_0x127f2e(0x11dd)}},'resolve':{'voicemail':[_0x127f2e(0x362),_0x127f2e(0x28c8),function(_0x3f3533,_0x51b8bb){const _0x3851c6=_0x127f2e;return _0x3f3533[_0x3851c6(0x2922)](_0x3851c6(0x7c1),{'fields':_0x3851c6(0x1e06),'id':_0x51b8bb['id']});}],'userProfileSection':[_0x127f2e(0x362),_0x127f2e(0xa87),function(_0x19de09,_0x2b024f){const _0x399bfa=_0x127f2e;return _0x19de09[_0x399bfa(0x2922)](_0x399bfa(0x27be),{'fields':_0x399bfa(0x1e64),'userProfileId':_0x2b024f['getCurrentUser']()[_0x399bfa(0x209a)],'sectionId':0x196});}]},'authenticate':!![],'permissionId':0x196,'bodyClass':_0x127f2e(0xe6)})[_0x127f2e(0x13d6)]('app.voice.musiconholds',{'url':_0x127f2e(0x79d),'views':{'content@app':{'templateUrl':_0x2625b8,'controller':_0x127f2e(0x12a)}},'resolve':{'musiconholds':[_0x127f2e(0x362),_0x127f2e(0xa87),function(_0x3d8332,_0x3a4456){const _0x5f41f4=_0x127f2e;return _0x3a4456[_0x5f41f4(0x23e0)]('admin')?_0x3d8332[_0x5f41f4(0x2922)](_0x5f41f4(0x1f2d),{'fields':_0x5f41f4(0xcaa),'defaultEntry':_0x5f41f4(0x1ed8),'limit':0xa,'offset':0x0}):_0x3d8332[_0x5f41f4(0x2922)]('userProfile@getResources',{'id':_0x3a4456[_0x5f41f4(0xb12)]()['userProfileId'],'section':'MusicOnHolds','fields':_0x5f41f4(0xcaa),'defaultEntry':_0x5f41f4(0x1ed8),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x127f2e(0xa87),function(_0x27cc56,_0x2e56ff){const _0x256e1b=_0x127f2e;return _0x2e56ff[_0x256e1b(0x23e0)]('admin')?null:_0x27cc56[_0x256e1b(0x2922)](_0x256e1b(0x119a),{'fields':_0x256e1b(0x227),'id':_0x2e56ff[_0x256e1b(0xb12)]()[_0x256e1b(0x209a)]});}],'userProfileSection':[_0x127f2e(0x362),_0x127f2e(0xa87),function(_0xb3dd34,_0x33fce7){const _0x319e6e=_0x127f2e;return _0x33fce7[_0x319e6e(0x23e0)](_0x319e6e(0x174b))?null:_0xb3dd34[_0x319e6e(0x2922)](_0x319e6e(0x27be),{'fields':_0x319e6e(0x1e64),'userProfileId':_0x33fce7[_0x319e6e(0xb12)]()[_0x319e6e(0x209a)],'sectionId':0x197});}]},'authenticate':!![],'permissionId':0x197,'bodyClass':_0x127f2e(0xe6)})['state'](_0x127f2e(0x3b3),{'url':_0x127f2e(0x2028),'params':{'musiconhold':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x1639a2,'controller':_0x127f2e(0x1f85)}},'resolve':{'musiconhold':[_0x127f2e(0x362),'$stateParams',function(_0x436556,_0x2f5027){const _0x415c28=_0x127f2e;return _0x436556[_0x415c28(0x2922)]('voiceMusicOnHold@get',{'fields':_0x415c28(0xcaa),'id':_0x2f5027['id']});}],'userProfileSection':[_0x127f2e(0x362),'Auth',function(_0x2ce747,_0x26fc59){const _0xb389ec=_0x127f2e;return _0x2ce747[_0xb389ec(0x2922)]('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x26fc59[_0xb389ec(0xb12)]()[_0xb389ec(0x209a)],'sectionId':0x197});}]},'authenticate':!![],'permissionId':0x197,'bodyClass':'voice'})[_0x127f2e(0x13d6)](_0x127f2e(0x2733),{'url':_0x127f2e(0x1a3a),'views':{'content@app':{'templateUrl':_0x5094f9,'controller':'VoiceRecordingsController\x20as\x20vm'}},'resolve':{'voiceRecordings':[_0x127f2e(0x362),_0x127f2e(0xa87),_0x127f2e(0x216c),function(_0x42206c,_0xb1f838,_0x3742a3){const _0x1a1f26=_0x127f2e;return _0xb1f838[_0x1a1f26(0x23e0)]('admin')?_0x42206c['resolve'](_0x1a1f26(0x1e86),{'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':_0x1a1f26(0x12f2),'createdAt':_0x3742a3[_0x1a1f26(0xc8f)](),'limit':0xa,'offset':0x0}):_0x42206c['resolve'](_0x1a1f26(0x938),{'id':_0xb1f838[_0x1a1f26(0xb12)]()[_0x1a1f26(0x209a)],'section':_0x1a1f26(0xb19),'fields':_0x1a1f26(0x1359),'sort':_0x1a1f26(0x12f2),'createdAt':_0x3742a3[_0x1a1f26(0xc8f)](),'limit':0xa,'offset':0x0});}],'userProfile':[_0x127f2e(0x362),_0x127f2e(0xa87),function(_0xb80d41,_0x43e465){const _0x4fde94=_0x127f2e;return _0x43e465[_0x4fde94(0x23e0)](_0x4fde94(0x174b))?null:_0xb80d41[_0x4fde94(0x2922)](_0x4fde94(0x119a),{'fields':_0x4fde94(0x227),'id':_0x43e465['getCurrentUser']()[_0x4fde94(0x209a)]});}],'userProfileSection':[_0x127f2e(0x362),_0x127f2e(0xa87),function(_0x25a16d,_0x78354f){const _0x323351=_0x127f2e;return _0x78354f[_0x323351(0x23e0)](_0x323351(0x174b))?null:_0x25a16d[_0x323351(0x2922)]('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x78354f[_0x323351(0xb12)]()[_0x323351(0x209a)],'sectionId':0x198});}]},'authenticate':!![],'permissionId':0x198,'bodyClass':_0x127f2e(0xe6)})['state'](_0x127f2e(0x4cf),{'url':_0x127f2e(0x2028),'params':{'voiceRecording':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x26f713,'controller':'VoiceRecordingController\x20as\x20vm'}},'resolve':{'voiceRecording':['apiResolver',_0x127f2e(0x28c8),function(_0x538b54,_0x5549fa){const _0x3e62bc=_0x127f2e;return _0x538b54[_0x3e62bc(0x2922)]('voiceRecording@get',{'fields':'createdAt,updatedAt,id,format,value,type,uniqueid,calleridnum,exten,connectedlinenum,queue,membername,rating,audio,userDisposition,userSecondDisposition,userThirdDisposition,transcribeStatus,fileText,failureReason,sentiment,sPositive,sNegative,sNeutral,sMixed','id':_0x5549fa['id']});}],'userProfileSection':['apiResolver','Auth',function(_0x17a293,_0x57104a){const _0x6e12e6=_0x127f2e;return _0x17a293[_0x6e12e6(0x2922)]('userProfileSection@get',{'fields':_0x6e12e6(0x1e64),'userProfileId':_0x57104a[_0x6e12e6(0xb12)]()['userProfileId'],'sectionId':0x198});}]},'authenticate':!![],'permissionId':0x198,'bodyClass':'voice'})['state'](_0x127f2e(0x1b4b),{'url':_0x127f2e(0xa51),'views':{'content@app':{'templateUrl':_0x276c31,'controller':'ChanSpiesController\x20as\x20vm'}},'resolve':{'chanSpies':[_0x127f2e(0x362),_0x127f2e(0xa87),function(_0x2b86a8,_0x5732bf){const _0x35782e=_0x127f2e;return _0x5732bf[_0x35782e(0x23e0)]('admin')?_0x2b86a8[_0x35782e(0x2922)](_0x35782e(0x22b1),{'fields':_0x35782e(0x1be1),'sort':_0x35782e(0x12f2),'limit':0xa,'offset':0x0}):_0x2b86a8[_0x35782e(0x2922)](_0x35782e(0x938),{'id':_0x5732bf[_0x35782e(0xb12)]()[_0x35782e(0x209a)],'section':'ChanSpies','fields':_0x35782e(0x1be1),'sort':_0x35782e(0x12f2),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x127f2e(0xa87),function(_0x3515b5,_0x27df78){const _0x530279=_0x127f2e;return _0x27df78[_0x530279(0x23e0)](_0x530279(0x174b))?null:_0x3515b5[_0x530279(0x2922)](_0x530279(0x119a),{'fields':_0x530279(0x227),'id':_0x27df78['getCurrentUser']()[_0x530279(0x209a)]});}],'userProfileSection':[_0x127f2e(0x362),_0x127f2e(0xa87),function(_0x440b4f,_0x324260){const _0xa179a2=_0x127f2e;return _0x324260['hasRole'](_0xa179a2(0x174b))?null:_0x440b4f[_0xa179a2(0x2922)](_0xa179a2(0x27be),{'fields':_0xa179a2(0x1e64),'userProfileId':_0x324260[_0xa179a2(0xb12)]()['userProfileId'],'sectionId':0x199});}]},'authenticate':!![],'permissionId':0x199,'bodyClass':_0x127f2e(0xe6)})[_0x127f2e(0x13d6)](_0x127f2e(0x17c8),{'url':_0x127f2e(0x1f75),'views':{'content@app':{'templateUrl':_0x599809,'controller':_0x127f2e(0xc70)}},'resolve':{'voicePrefixes':['apiResolver',_0x127f2e(0xa87),function(_0xe89f66,_0x10e5d6){const _0x3e4a6e=_0x127f2e;return _0x10e5d6['hasRole'](_0x3e4a6e(0x174b))?_0xe89f66[_0x3e4a6e(0x2922)]('voicePrefix@get',{'fields':_0x3e4a6e(0xd0d),'limit':0xa,'offset':0x0}):_0xe89f66[_0x3e4a6e(0x2922)]('userProfile@getResources',{'id':_0x10e5d6[_0x3e4a6e(0xb12)]()['userProfileId'],'section':_0x3e4a6e(0x8cf),'fields':_0x3e4a6e(0xd0d),'limit':0xa,'offset':0x0});}],'userProfile':[_0x127f2e(0x362),'Auth',function(_0x23b3c1,_0x27820a){const _0x187ec8=_0x127f2e;return _0x27820a[_0x187ec8(0x23e0)](_0x187ec8(0x174b))?null:_0x23b3c1[_0x187ec8(0x2922)](_0x187ec8(0x119a),{'fields':'id,name,crudPermissions','id':_0x27820a['getCurrentUser']()[_0x187ec8(0x209a)]});}],'userProfileSection':[_0x127f2e(0x362),_0x127f2e(0xa87),function(_0x5240ef,_0x3ba188){const _0x2bdf36=_0x127f2e;return _0x3ba188[_0x2bdf36(0x23e0)](_0x2bdf36(0x174b))?null:_0x5240ef[_0x2bdf36(0x2922)](_0x2bdf36(0x27be),{'fields':_0x2bdf36(0x1e64),'userProfileId':_0x3ba188['getCurrentUser']()[_0x2bdf36(0x209a)],'sectionId':0x19a});}]},'authenticate':!![],'permissionId':0x19a,'bodyClass':_0x127f2e(0xe6)}),_0x237ea2[_0x127f2e(0x15bf)](_0x127f2e(0x18c8));}angular[_0x313a4d(0x2528)](_0x313a4d(0x2494),[_0x313a4d(0xdad),_0x313a4d(0x962),'md.data.table',_0x313a4d(0x963),_0x313a4d(0x19e2),_0x313a4d(0x27c1),_0x313a4d(0x195b),'ngAria','ngAnimate','mdPickers',_0x313a4d(0x28a8),'mwFormViewer',_0x313a4d(0x1e57),'ngclipboard',_0x313a4d(0x1bd2),_0x313a4d(0x1792),_0x313a4d(0x1b65),_0x313a4d(0x1626),_0x313a4d(0x2713),'angular.filter','app.voice.realtime'])[_0x313a4d(0x989)](_0x170569)[_0x313a4d(0x28f0)](_0x313a4d(0x1c1e),_0x2a36af)[_0x313a4d(0x28f0)](_0x313a4d(0x1e98),_0x50496d)[_0x313a4d(0x28f0)](_0x313a4d(0xbf9),_0x31a471)[_0x313a4d(0x28f0)]('CreateOrEditContextDialogController',_0xbe9e56)[_0x313a4d(0x28f0)](_0x313a4d(0xf20),_0x3a5ae9)['controller'](_0x313a4d(0x1217),_0x21d2e6)['controller']('EditInboundAppagiDialogController',_0x502b9a)['controller'](_0x313a4d(0x282f),_0x5848e5)[_0x313a4d(0x28f0)](_0x313a4d(0x2322),_0x2b1770)[_0x313a4d(0x28f0)](_0x313a4d(0x60a),_0x2fef2f)[_0x313a4d(0x28f0)]('EditInboundAppgotoDialogController',_0x2661c3)['controller'](_0x313a4d(0x1215),_0x5dfcb)[_0x313a4d(0x28f0)](_0x313a4d(0x251e),_0x4b7a9f)[_0x313a4d(0x28f0)](_0x313a4d(0x2be),_0x5cf705)[_0x313a4d(0x28f0)](_0x313a4d(0x14ff),_0x565e43)[_0x313a4d(0x28f0)](_0x313a4d(0x24e2),_0x48ad30)['controller']('EditInboundAppringgroupDialogController',_0x486093)[_0x313a4d(0x28f0)](_0x313a4d(0x5bd),_0x402dd6)[_0x313a4d(0x28f0)]('EditInboundAppvoicemailDialogController',_0x59f3e1)[_0x313a4d(0x28f0)]('InboundRouteController',_0x3ef292)['controller'](_0x313a4d(0x5b6),_0x5b4627)['controller'](_0x313a4d(0x927),_0x2bdba3)[_0x313a4d(0x28f0)]('InternalRouteActionsController',_0xae6248)[_0x313a4d(0x28f0)](_0x313a4d(0x14ce),_0x57a848)[_0x313a4d(0x28f0)]('EditInternalAppcustomDialogController',_0x112861)[_0x313a4d(0x28f0)](_0x313a4d(0x1793),_0xb05143)[_0x313a4d(0x28f0)](_0x313a4d(0xa67),_0x36955c)['controller'](_0x313a4d(0x1083),_0x5f29cd)['controller'](_0x313a4d(0x37d),_0x42a866)[_0x313a4d(0x28f0)](_0x313a4d(0x27c8),_0x2e7618)[_0x313a4d(0x28f0)]('EditInternalAppintervalDialogController',_0x4f87f7)[_0x313a4d(0x28f0)]('EditInternalAppplaybackDialogController',_0x122cea)[_0x313a4d(0x28f0)](_0x313a4d(0xa20),_0x47eb02)[_0x313a4d(0x28f0)]('EditInternalAppringgroupDialogController',_0x58020f)[_0x313a4d(0x28f0)](_0x313a4d(0x1bab),_0x3180f7)['controller'](_0x313a4d(0x2814),_0x54cab9)[_0x313a4d(0x28f0)](_0x313a4d(0x241f),_0x2e96c1)[_0x313a4d(0x28f0)](_0x313a4d(0x244f),_0x56bc14)[_0x313a4d(0x28f0)](_0x313a4d(0xbc9),_0x1abb76)[_0x313a4d(0x28f0)](_0x313a4d(0x75f),_0x33dfc9)[_0x313a4d(0x28f0)](_0x313a4d(0x1b55),_0x3b7890)[_0x313a4d(0x28f0)](_0x313a4d(0x1485),_0x3a3cdf)[_0x313a4d(0x28f0)](_0x313a4d(0x1f15),_0x554154),angular[_0x313a4d(0x2528)](_0x313a4d(0x2494))[_0x313a4d(0x28f0)](_0x313a4d(0x27d5),_0x131b07)['controller'](_0x313a4d(0x1b9b),_0x31dce0)[_0x313a4d(0x28f0)](_0x313a4d(0x19e7),_0x188944)[_0x313a4d(0x28f0)](_0x313a4d(0xaee),_0x327b31)['controller'](_0x313a4d(0x12a7),_0x489f46)['controller'](_0x313a4d(0x1f95),_0x1457b4)[_0x313a4d(0x28f0)](_0x313a4d(0x12b5),_0x47510f)[_0x313a4d(0x28f0)]('CreateOrEditVoicemailDialogController',_0x19b629)[_0x313a4d(0x28f0)](_0x313a4d(0x827),_0x15f9c3)[_0x313a4d(0x28f0)]('VoicemailController',_0x5b5f50)[_0x313a4d(0x28f0)](_0x313a4d(0x1107),_0x2db959)[_0x313a4d(0x28f0)](_0x313a4d(0x1fc7),_0x48dc6f)[_0x313a4d(0x28f0)](_0x313a4d(0x10ca),_0x288994)['controller'](_0x313a4d(0x26c0),_0x3cf24d)[_0x313a4d(0x28f0)](_0x313a4d(0xb8b),_0x30837c)[_0x313a4d(0x28f0)](_0x313a4d(0x244d),_0xc182fb)[_0x313a4d(0x28f0)]('VoiceQueueteamaddController',_0x34a2fc)[_0x313a4d(0x28f0)](_0x313a4d(0xaed),_0x279e51)['controller'](_0x313a4d(0x120c),_0x24a2d3)[_0x313a4d(0x28f0)](_0x313a4d(0xcc9),_0x5955c9)['controller'](_0x313a4d(0x6dc),_0x35836b)[_0x313a4d(0x28f0)](_0x313a4d(0x1dd2),_0x3b6c41)['controller'](_0x313a4d(0x2485),_0xc85998);;const _0x31d977=_0x4acfac['p']+_0x313a4d(0xdd9);;const _0x1185d3=_0x4acfac['p']+'src/js/modules/main/apps/chat/views/chatQueues/edit/view.html/view.html';;const _0x28faca=_0x4acfac['p']+_0x313a4d(0x2d4);;const _0x121d2f=_0x4acfac['p']+_0x313a4d(0xd33);;const _0x156e2c=_0x4acfac['p']+'src/js/modules/main/apps/chat/views/realtime/realtime.html/realtime.html';;const _0x1ed7f0=_0x4acfac['p']+_0x313a4d(0x1804);;const _0x1b4bf3=_0x4acfac['p']+_0x313a4d(0x2911);;_0x276f26[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),'$q','$timeout',_0x313a4d(0x10e8),_0x313a4d(0x4d8),'$filter',_0x313a4d(0x23bb),_0x313a4d(0x23c0),_0x313a4d(0x2445),'api','socket',_0x313a4d(0x1fe4),_0x313a4d(0x1ac0),_0x313a4d(0x26b6),_0x313a4d(0x1366),_0x313a4d(0xa87),_0x313a4d(0x2690),_0x313a4d(0xa0a)];function _0x276f26(_0x392388,_0x7cd81c,_0x3ab126,_0x552d55,_0x58de1c,_0x42b499,_0x35a595,_0x282240,_0x3336b6,_0x497f9a,_0xbeb017,_0x526c58,_0x4fa767,_0x2f0f7d,_0x5a0de,_0x16a4da,_0x57b208,_0x3e61a7){const _0x24ace6=_0x313a4d,_0x3288f8=this,_0x2d3664=[_0x24ace6(0x1fce),_0x24ace6(0x538),'lastLoginAt','lastPauseAt',_0x24ace6(0x1125),_0x24ace6(0x192a),_0x24ace6(0x113f),_0x24ace6(0x2bb),_0x24ace6(0x5f7),_0x24ace6(0xcc5),_0x24ace6(0x1e9e),'smsPause',_0x24ace6(0x1f9d),_0x24ace6(0x25c4),_0x24ace6(0x211c),_0x24ace6(0x6e4),'openchannelCapacity',_0x24ace6(0xf85),_0x24ace6(0x1820),_0x24ace6(0x237c),_0x24ace6(0x1cf6),_0x24ace6(0xaac),_0x24ace6(0x247),'mailCurrentCapacity',_0x24ace6(0x2e2),_0x24ace6(0xfc1),_0x24ace6(0x1815),_0x24ace6(0xfc3),_0x24ace6(0xfae),_0x24ace6(0x1fc6),_0x24ace6(0x22f6),'whatsappStatus',_0x24ace6(0x15ea),_0x24ace6(0x685),_0x24ace6(0x1a22),_0x24ace6(0x6cb),_0x24ace6(0x10cd),_0x24ace6(0x1f5c),_0x24ace6(0xadd),_0x24ace6(0x47a),_0x24ace6(0x1dda),_0x24ace6(0x1c72),'destconnectedlinenum',_0x24ace6(0x1ca2),_0x24ace6(0x4e3),_0x24ace6(0x22c3)],_0x365d6f=[_0x24ace6(0x5f7),'openchannelPause',_0x24ace6(0x1e9e),_0x24ace6(0x17c),_0x24ace6(0x1f9d),_0x24ace6(0x25c4),_0x24ace6(0x211c),_0x24ace6(0x538)];_0x3288f8[_0x24ace6(0x2321)]=_0x16a4da['getCurrentUser'](),_0x3288f8[_0x24ace6(0xe3e)]=[_0x24ace6(0xad4),'inuse',_0x24ace6(0x26a7),_0x24ace6(0x776),_0x24ace6(0x254d)],_0x3288f8[_0x24ace6(0x23bb)]=_0x35a595||{'count':0x0,'rows':[]},_0x3288f8[_0x24ace6(0x2690)]=_0x57b208,_0x3288f8['userProfile']=_0x2f0f7d,_0x3288f8[_0x24ace6(0x1366)]=_0x5a0de&&_0x5a0de[_0x24ace6(0x51c)]==0x1?_0x5a0de[_0x24ace6(0x19c7)][0x0]:null,_0x3288f8[_0x24ace6(0x2514)]=_0x16a4da[_0x24ace6(0xe60)](_0x3288f8[_0x24ace6(0x1366)]?_0x3288f8[_0x24ace6(0x1366)][_0x24ace6(0x2514)]:null),_0x3288f8[_0x24ace6(0x23c0)]=_0x282240?_0x3f65c0()[_0x24ace6(0x194)](_0x282240[_0x24ace6(0x19c7)]?_0x282240[_0x24ace6(0x19c7)]:[],'id'):{},_0x3288f8[_0x24ace6(0x2445)]=_0x3336b6?_0x3f65c0()[_0x24ace6(0x194)](_0x3336b6[_0x24ace6(0x19c7)]?_0x3336b6[_0x24ace6(0x19c7)]:[],'id'):{},_0x3288f8['paginatedAgents']={},_0x3288f8[_0x24ace6(0x2412)]=![],_0x3288f8[_0x24ace6(0x206e)]=[],_0x3288f8['agentInternal']={};for(const _0x44b0d8 in _0x3288f8['agents']){typeof _0x3288f8[_0x24ace6(0x23c0)][_0x44b0d8]!==_0x24ace6(0x2274)&&(_0x3288f8[_0x24ace6(0x23c0)][_0x44b0d8][_0x24ace6(0x5aa)]=!![]);}_0x3288f8[_0x24ace6(0x1a56)]={'limit':0xa,'page':0x1,'order':_0x24ace6(0x286a),'globalStatusFilter':'','pauseTypeFilter':''},_0x3288f8[_0x24ace6(0x2044)]=_0x15cd6e,_0x3288f8[_0x24ace6(0x2677)]=_0x159a93,_0x3288f8[_0x24ace6(0x1e3e)]=_0x4d0e0a,_0x3288f8[_0x24ace6(0x693)]=_0x5f40f1,_0x3288f8['showInfo']=_0x221dae,_0x3288f8[_0x24ace6(0x1eaa)]=_0x70a010,_0x3288f8[_0x24ace6(0x1775)]=_0x200b2a,_0x3288f8[_0x24ace6(0x2075)]=_0x589a6a,_0x3288f8['checkPause']=_0x115d2b,_0x3288f8[_0x24ace6(0x1d53)]=_0x92bad3,_0x3288f8[_0x24ace6(0x1db0)]=_0x2d2519,_0x3288f8['onUpdate']=_0x43f98f,_0x3288f8[_0x24ace6(0x3d4)]=_0xd65a38,_0x3288f8[_0x24ace6(0x201a)]=_0xa5a650,_0x3288f8[_0x24ace6(0x483)]=_0x27a750,_0x3288f8['screenRecording']=_0x5e8ff1,_0xbeb017['on'](_0x24ace6(0x17de),_0x3288f8['onSave']),_0xbeb017['on'](_0x24ace6(0x324),_0x3288f8['onUpdate']),_0xbeb017['on'](_0x24ace6(0x118c),_0x3288f8[_0x24ace6(0x201a)]),_0xbeb017['on'](_0x24ace6(0x198f),_0x3288f8[_0x24ace6(0x483)]),_0xd65a38();let _0x1893fa=_0x3e61a7(function(){const _0x466259=_0x24ace6;_0x3288f8[_0x466259(0x2412)]&&(_0x3288f8['load']=![],_0xd65a38());},0x3e7);function _0xd65a38(){const _0x576c20=_0x24ace6;_0x3288f8[_0x576c20(0x2412)]=![];const _0x13b01e=_0x7cd81c[_0x576c20(0xce3)]();_0x3288f8[_0x576c20(0xb9c)]=_0x13b01e[_0x576c20(0xb9c)],_0x3288f8['filteredAgents']=[],_0x3288f8[_0x576c20(0x206e)]=[],_0x3f65c0()[_0x576c20(0x1a04)](_0x3288f8[_0x576c20(0x23c0)],function(_0x3eb7e6,_0x364513){const _0x252e25=_0x576c20;_0x3288f8[_0x252e25(0x2445)][_0x364513]&&_0x3f65c0()[_0x252e25(0x168d)](_0x3eb7e6,_0x3f65c0()[_0x252e25(0x40e)](_0x3f65c0()['omit'](_0x3288f8[_0x252e25(0x2445)][_0x364513],_0x365d6f),_0x2d3664)),_0x200b2a(_0x3eb7e6),_0x3eb7e6[_0x252e25(0x538)]?(_0x3288f8[_0x252e25(0x202e)][_0x252e25(0x1f47)](_0x3eb7e6),_0x3288f8[_0x252e25(0x626)][_0x3eb7e6[_0x252e25(0x113f)]]=_0x364513):_0x3eb7e6[_0x252e25(0xed1)]=_0x3f65c0()['toNumber'](_0x2deec6()()[_0x252e25(0x22b0)]('x'));});_0x3288f8[_0x576c20(0x1a56)][_0x576c20(0x1500)]&&_0x3f65c0()[_0x576c20(0x2640)](_0x3288f8[_0x576c20(0x202e)],function(_0x187fdc){const _0x5cef98=_0x576c20;return _0x187fdc[_0x5cef98(0x72b)]!==_0x3288f8[_0x5cef98(0x1a56)][_0x5cef98(0x1500)];});_0x3288f8[_0x576c20(0x1a56)][_0x576c20(0x301)]&&_0x3f65c0()['remove'](_0x3288f8['filteredAgents'],function(_0x4eb24a){const _0x4d65b3=_0x576c20;return _0x4eb24a[_0x4d65b3(0x1125)]!==_0x3288f8[_0x4d65b3(0x1a56)]['pauseTypeFilter'];});_0x3288f8[_0x576c20(0x1a56)][_0x576c20(0x1dd6)]&&_0x3f65c0()[_0x576c20(0x2640)](_0x3288f8['filteredAgents'],function(_0x567046){const _0x129ca8=_0x576c20;return _0x567046[_0x129ca8(0x286a)][_0x129ca8(0x256e)]()[_0x129ca8(0x172b)](_0x3288f8['query'][_0x129ca8(0x1dd6)][_0x129ca8(0x256e)]())<0x0;});_0x3288f8[_0x576c20(0x202e)]=_0x52b31e(_0x3288f8[_0x576c20(0x202e)]);const _0x5093e8=(_0x3288f8[_0x576c20(0x1a56)]['page']-0x1)*_0x3288f8[_0x576c20(0x1a56)]['limit'];_0x3288f8[_0x576c20(0x285)]=_0x3f65c0()[_0x576c20(0x854)](_0x3288f8[_0x576c20(0x202e)],_0x5093e8)[_0x576c20(0x1298)](0x0,_0x3288f8[_0x576c20(0x1a56)]['limit']);for(let _0x76c055=0x0;_0x76c055<_0x3288f8[_0x576c20(0x285)]['length'];_0x76c055+=0x1){_0x3288f8[_0x576c20(0x206e)][_0x576c20(0x1f47)](_0x3288f8['paginatedAgents'][_0x76c055]['id']);}_0x13b01e['resolve'](),_0x3288f8[_0x576c20(0x2412)]=!![];}function _0x2d2519(_0x515097){const _0x45cdfd=_0x24ace6;_0x3288f8['agents'][_0x515097['id']]&&(_0x3f65c0()[_0x45cdfd(0x168d)](_0x3288f8[_0x45cdfd(0x23c0)][_0x515097['id']],_0x3f65c0()[_0x45cdfd(0x40e)](_0x3f65c0()[_0x45cdfd(0x2432)](_0x515097,_0x365d6f),_0x2d3664)),_0x3f65c0()[_0x45cdfd(0x168d)](_0x3288f8[_0x45cdfd(0x2445)][_0x515097['id']],_0x3f65c0()['pick'](_0x3f65c0()['omit'](_0x515097,_0x365d6f),_0x2d3664)),_0x200b2a(_0x3288f8[_0x45cdfd(0x23c0)][_0x515097['id']]));}function _0x43f98f(_0x79c2cf){const _0x2a29ab=_0x24ace6;_0x3288f8['agents'][_0x79c2cf['id']]&&(_0x3f65c0()[_0x2a29ab(0x168d)](_0x3288f8['agents'][_0x79c2cf['id']],_0x3f65c0()['pick'](_0x79c2cf,_0x2d3664)),_0x3f65c0()[_0x2a29ab(0x168d)](_0x3288f8[_0x2a29ab(0x2445)][_0x79c2cf['id']],_0x3f65c0()[_0x2a29ab(0x40e)](_0x79c2cf,_0x2d3664)),_0x79c2cf[_0x2a29ab(0x192a)]&&(_0x3288f8[_0x2a29ab(0x23c0)][_0x79c2cf['id']][_0x2a29ab(0xed1)]=_0x79c2cf['lastPauseAt'],_0x3288f8[_0x2a29ab(0x2445)][_0x79c2cf['id']][_0x2a29ab(0xed1)]=_0x79c2cf[_0x2a29ab(0x192a)]),_0x200b2a(_0x3288f8[_0x2a29ab(0x23c0)][_0x79c2cf['id']]));}function _0xa5a650(_0x3c3ead){const _0x4b4c5d=_0x24ace6;_0x3288f8[_0x4b4c5d(0x23c0)][_0x3288f8[_0x4b4c5d(0x626)][_0x3c3ead[_0x4b4c5d(0x1fb9)]]]&&(_0x3f65c0()[_0x4b4c5d(0x168d)](_0x3288f8[_0x4b4c5d(0x23c0)][_0x3288f8['agentInternal'][_0x3c3ead[_0x4b4c5d(0x1fb9)]]],_0x3f65c0()[_0x4b4c5d(0x40e)](_0x3c3ead,[_0x4b4c5d(0x1c72),'destconnectedlinenum'])),_0x3f65c0()[_0x4b4c5d(0x168d)](_0x3288f8['rpcAgents'][_0x3288f8[_0x4b4c5d(0x626)][_0x3c3ead[_0x4b4c5d(0x1fb9)]]],_0x3f65c0()[_0x4b4c5d(0x40e)](_0x3c3ead,['queue',_0x4b4c5d(0x1e8d)])));}function _0x27a750(_0x3449c2){const _0x4a592b=_0x24ace6;_0x3288f8[_0x4a592b(0x23c0)][_0x3288f8[_0x4a592b(0x626)][_0x3449c2['destaccountcode']]]&&(_0x3288f8[_0x4a592b(0x23c0)][_0x3288f8[_0x4a592b(0x626)][_0x3449c2[_0x4a592b(0x1fb9)]]]=_0x3f65c0()[_0x4a592b(0x2432)](_0x3288f8[_0x4a592b(0x23c0)][_0x3288f8[_0x4a592b(0x626)][_0x3449c2['destaccountcode']]],['queue',_0x4a592b(0x1e8d)]),_0x3288f8[_0x4a592b(0x2445)][_0x3288f8[_0x4a592b(0x626)][_0x3449c2[_0x4a592b(0x1fb9)]]]=_0x3f65c0()[_0x4a592b(0x2432)](_0x3288f8['rpcAgents'][_0x3288f8[_0x4a592b(0x626)][_0x3449c2['destaccountcode']]],[_0x4a592b(0x1c72),_0x4a592b(0x1e8d)]));}function _0x15cd6e(_0x41e8e7){const _0x3c8eba=_0x24ace6;return _0x497f9a['user'][_0x3c8eba(0x2044)]({'id':_0x41e8e7['id'],'device':_0x3c8eba(0xfc4),'agent_id':_0x41e8e7['id'],'agent_name':_0x41e8e7[_0x3c8eba(0x19eb)]})[_0x3c8eba(0x2945)]['then'](function(){const _0x183182=_0x3c8eba;_0x526c58[_0x183182(0x1c75)]({'title':_0x183182(0x1c70),'msg':_0x41e8e7[_0x183182(0x286a)]+_0x183182(0x166c)}),_0x3288f8[_0x183182(0x23c0)][_0x41e8e7['id']]&&(_0x3288f8[_0x183182(0x23c0)][_0x41e8e7['id']][_0x183182(0x538)]=![]),_0x3288f8[_0x183182(0x2445)][_0x41e8e7['id']]&&(_0x3288f8[_0x183182(0x2445)][_0x41e8e7['id']][_0x183182(0x538)]=![]),_0xd65a38();})[_0x3c8eba(0x129e)](function(_0x1ff5e4){const _0x47d5d7=_0x3c8eba;_0x526c58[_0x47d5d7(0x1980)]({'title':_0x1ff5e4[_0x47d5d7(0x107b)]?'API:'+_0x1ff5e4[_0x47d5d7(0x107b)]+'\x20-\x20'+_0x1ff5e4[_0x47d5d7(0x167f)]:_0x47d5d7(0x23c6),'msg':_0x1ff5e4[_0x47d5d7(0x524)]?JSON[_0x47d5d7(0x10bb)](_0x1ff5e4['data']['message']):_0x1ff5e4[_0x47d5d7(0xd5f)]()});});}function _0x4d0e0a(_0x10d1d8,_0x1c2db5){const _0x1535e4=_0x24ace6;return _0x497f9a[_0x1535e4(0xe7b)][_0x1535e4(0x1e3e)]({'id':_0x10d1d8['id'],'type':_0x1c2db5})[_0x1535e4(0x2945)][_0x1535e4(0x146b)](function(_0x2b3970){const _0x5b2b16=_0x1535e4;_0x3288f8[_0x5b2b16(0x23c0)][_0x10d1d8['id']]&&_0x3f65c0()[_0x5b2b16(0x168d)](_0x3288f8['agents'][_0x10d1d8['id']],_0x3f65c0()['pick'](_0x2b3970,_0x2d3664)),_0x3288f8['rpcAgents'][_0x10d1d8['id']]&&_0x3f65c0()[_0x5b2b16(0x168d)](_0x3288f8[_0x5b2b16(0x2445)][_0x10d1d8['id']],_0x3f65c0()[_0x5b2b16(0x40e)](_0x2b3970,_0x2d3664)),_0x200b2a(_0x3288f8['agents'][_0x10d1d8['id']]);})[_0x1535e4(0x129e)](function(_0x50e08b){const _0x1970bb=_0x1535e4;_0x526c58[_0x1970bb(0x1980)]({'title':_0x50e08b['status']?_0x1970bb(0x262a)+_0x50e08b[_0x1970bb(0x107b)]+_0x1970bb(0x1315)+_0x50e08b[_0x1970bb(0x167f)]:_0x1970bb(0x23c6),'msg':_0x50e08b['data']?JSON['stringify'](_0x50e08b[_0x1970bb(0x524)][_0x1970bb(0x7fd)]):_0x50e08b['toString']()});});}function _0x5f40f1(_0x268b16){const _0x38a67a=_0x24ace6;return _0x497f9a[_0x38a67a(0xe7b)][_0x38a67a(0x974)]({'id':_0x268b16['id']})[_0x38a67a(0x2945)][_0x38a67a(0x146b)](function(_0x2dfe50){const _0x1714c5=_0x38a67a;_0x3288f8[_0x1714c5(0x23c0)][_0x268b16['id']]&&_0x3f65c0()[_0x1714c5(0x168d)](_0x3288f8[_0x1714c5(0x23c0)][_0x268b16['id']],_0x3f65c0()['pick'](_0x2dfe50,_0x2d3664)),_0x3288f8[_0x1714c5(0x2445)][_0x268b16['id']]&&_0x3f65c0()[_0x1714c5(0x168d)](_0x3288f8[_0x1714c5(0x2445)][_0x268b16['id']],_0x3f65c0()[_0x1714c5(0x40e)](_0x2dfe50,_0x2d3664)),_0x200b2a(_0x3288f8[_0x1714c5(0x23c0)][_0x268b16['id']]);})[_0x38a67a(0x129e)](function(_0x25c20b){const _0x278e39=_0x38a67a;_0x526c58[_0x278e39(0x1980)]({'title':_0x25c20b['status']?_0x278e39(0x262a)+_0x25c20b[_0x278e39(0x107b)]+_0x278e39(0x1315)+_0x25c20b[_0x278e39(0x167f)]:_0x278e39(0x23c6),'msg':_0x25c20b[_0x278e39(0x524)]?JSON[_0x278e39(0x10bb)](_0x25c20b[_0x278e39(0x524)][_0x278e39(0x7fd)]):_0x25c20b['toString']()});});}function _0x221dae(_0x138f7f){const _0x2eb1d7=_0x24ace6;_0x552d55[_0x2eb1d7(0x2615)](_0x552d55[_0x2eb1d7(0x861)]()[_0x2eb1d7(0xa70)](!![])['title'](_0x2eb1d7(0x2783))['htmlContent'](_0x2eb1d7(0x1f77))['ok']('Ok')[_0x2eb1d7(0x1f27)](_0x138f7f));}function _0x159a93(_0x26f60c,_0x54f1d6){const _0x504eb=_0x24ace6;_0x552d55[_0x504eb(0x2615)]({'controller':'AgentqueueaddController','controllerAs':'vm','templateUrl':_0xbb22f1,'parent':angular['element'](_0x58de1c[_0x504eb(0x2586)]),'targetEvent':_0x54f1d6,'clickOutsideToClose':!![],'locals':{'agent':_0x26f60c,'agents':[],'channel':_0x504eb(0xa7f),'direction':_0x504eb(0x7b0),'crudPermissions':_0x3288f8[_0x504eb(0x2514)]}});}function _0x589a6a(_0x16ad21){const _0x5451b9=_0x24ace6;return _0x16ad21===_0x5451b9(0x1e3e)||_0x16ad21===_0x5451b9(0x1127);}function _0x115d2b(_0x16d3ae){const _0x2fdace=_0x24ace6;return _0x16d3ae===_0x2fdace(0x1e3e);}function _0x92bad3(_0x136167){const _0x211431=_0x24ace6;return _0x136167===_0x211431(0x1127);}function _0x3f1738(_0x2338d4){const _0x31cf3f=_0x24ace6;return _0x2338d4===_0x31cf3f(0xb09)||_0x2338d4===_0x31cf3f(0x207d)||_0x2338d4===_0x31cf3f(0x85d)||_0x2338d4===_0x31cf3f(0xad4)||_0x3f65c0()[_0x31cf3f(0x1b36)](_0x2338d4);}function _0x70a010(_0xf39e1,_0x3bf961){const _0x4ceef2=_0x24ace6;if(_0x3bf961===_0x4ceef2(0xe6)){if(_0xf39e1[_0x3bf961+_0x4ceef2(0x74e)]!==_0x4ceef2(0xb09))return _0xf39e1[_0x3bf961+_0x4ceef2(0x74e)];if(_0xf39e1[_0x3bf961+'Pause'])return _0xf39e1[_0x3bf961+_0x4ceef2(0x74e)]='pause','pause';return _0x4ceef2(0xb09);}else{if(_0xf39e1[_0x3bf961+_0x4ceef2(0xde0)])return _0xf39e1[_0x3bf961+_0x4ceef2(0x74e)]=_0x4ceef2(0x1e3e),'pause';return _0xf39e1[_0x3bf961+'Status'];}}function _0x200b2a(_0x1e0108){const _0x512141=_0x24ace6;let _0x47b475=_0x512141(0x207d);if(_0x3f65c0()[_0x512141(0xb14)]([_0x70a010(_0x1e0108,'voice'),_0x70a010(_0x1e0108,'chat'),_0x70a010(_0x1e0108,'mail'),_0x70a010(_0x1e0108,_0x512141(0x7d9)),_0x70a010(_0x1e0108,'sms'),_0x70a010(_0x1e0108,'whatsapp'),_0x70a010(_0x1e0108,_0x512141(0x22d9))],_0x589a6a))_0x47b475='pause';else{if(_0x3f65c0()['some']([_0x70a010(_0x1e0108,'voice'),_0x70a010(_0x1e0108,'chat'),_0x70a010(_0x1e0108,_0x512141(0x56b)),_0x70a010(_0x1e0108,_0x512141(0x7d9)),_0x70a010(_0x1e0108,'sms'),_0x70a010(_0x1e0108,_0x512141(0xff9)),_0x70a010(_0x1e0108,_0x512141(0x22d9))],_0x589a6a))_0x47b475=_0x512141(0x1127);else _0x3f65c0()[_0x512141(0xb14)]([_0x70a010(_0x1e0108,_0x512141(0xe6)),_0x70a010(_0x1e0108,_0x512141(0xa7f)),_0x70a010(_0x1e0108,'mail'),_0x70a010(_0x1e0108,'openchannel'),_0x70a010(_0x1e0108,_0x512141(0x929)),_0x70a010(_0x1e0108,_0x512141(0xff9)),_0x70a010(_0x1e0108,_0x512141(0x22d9))],_0x3f1738)?_0x47b475=_0x512141(0xb09):_0x47b475=_0x512141(0x26a7);}_0x1e0108[_0x512141(0x72b)]!==_0x47b475&&(_0x1e0108[_0x512141(0x72b)]=_0x47b475,_0x1e0108[_0x512141(0x5aa)]?(_0x1e0108[_0x512141(0x5aa)]=![],_0x1e0108['globalStatusTime']=_0x589a6a(_0x47b475)?_0x3f65c0()[_0x512141(0x123)](_0x2deec6()(_0x1e0108[_0x512141(0x192a)])[_0x512141(0x22b0)]('x')):_0x3f65c0()[_0x512141(0x727)]([_0x1e0108['voiceStatusTime'],_0x1e0108['chatStatusTime'],_0x1e0108[_0x512141(0x10cd)],_0x1e0108[_0x512141(0x1f5c)],_0x1e0108['whatsappStatusTime'],_0x1e0108['openchannelStatusTime'],_0x1e0108[_0x512141(0x47a)]])):_0x1e0108[_0x512141(0xed1)]=_0x3f65c0()[_0x512141(0x123)](_0x2deec6()()[_0x512141(0x22b0)]('x')));}function _0x52b31e(_0x3a3387){const _0x2aeed2=_0x24ace6,_0x170574=_0x3f65c0()[_0x2aeed2(0xd4d)](_0x3288f8[_0x2aeed2(0x1a56)]['order'],'-')?_0x2aeed2(0x2517):_0x2aeed2(0x195);return _0x3f65c0()['orderBy'](_0x3a3387,[_0x3288f8[_0x2aeed2(0x1a56)][_0x2aeed2(0x206e)]['replace']('-','')],[_0x170574]);}function _0x300ed1(){_0x1893fa&&(_0x3e61a7['cancel'](_0x1893fa),_0x1893fa=null);}function _0x5e8ff1(_0x233850,_0xa0a62){const _0x24fa63=_0x24ace6;return _0x497f9a[_0x24fa63(0xe7b)][_0x24fa63(0x18e1)]({'id':_0x233850['id']},{'screenrecording':_0xa0a62})['$promise'][_0x24fa63(0x129e)](function(_0x249557){const _0x38642e=_0x24fa63;_0x526c58['error']({'title':_0x249557[_0x38642e(0x107b)]?_0x38642e(0x262a)+_0x249557['status']+_0x38642e(0x1315)+_0x249557[_0x38642e(0x167f)]:_0x38642e(0x254f),'msg':_0x249557[_0x38642e(0x524)]?JSON[_0x38642e(0x10bb)](_0x249557[_0x38642e(0x524)][_0x38642e(0x7fd)]):_0x249557['toString']()});});}_0x392388[_0x24ace6(0x16ad)](_0x24ace6(0x116f),function(){const _0x10ae7d=_0x24ace6;_0xbeb017[_0x10ae7d(0x1c5f)](_0x10ae7d(0x17de)),_0xbeb017[_0x10ae7d(0x1c5f)](_0x10ae7d(0x324)),_0xbeb017[_0x10ae7d(0x1c5f)](_0x10ae7d(0x118c)),_0xbeb017['removeAllListeners'](_0x10ae7d(0x198f)),_0x300ed1();});}const _0x42b5a9=_0x276f26;;const _0x4e5c4a=_0x4acfac['p']+_0x313a4d(0x1a9d);;const _0x53d1a0=_0x4acfac['p']+'src/js/modules/main/apps/chat/views/chatQueues/edit/agentadd/agentadd.html/agentadd.html';;_0x2697dd[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1abe),_0x313a4d(0x10e8),'$q',_0x313a4d(0x4d8),_0x313a4d(0xa0a),_0x313a4d(0x1b32),_0x313a4d(0x21af),'api',_0x313a4d(0x279d),'toasty',_0x313a4d(0x26b6),_0x313a4d(0x1366),'Auth'];function _0x2697dd(_0x5694cc,_0x5c39bd,_0x51de6c,_0x21c82c,_0x545ecf,_0x25304a,_0x368ab4,_0x4fba2a,_0x3865cf,_0x303ded,_0x16c48e,_0x422776,_0x589510,_0xd388c3){const _0x1fdf2a=_0x313a4d,_0x1f176d=this,_0x251a2d=[_0x1fdf2a(0x2398),_0x1fdf2a(0xbdb),_0x1fdf2a(0x12a3),_0x1fdf2a(0x10ed),'pTalking',_0x1fdf2a(0x1e38),_0x1fdf2a(0x7fd),_0x1fdf2a(0x1095),_0x1fdf2a(0x1a69),_0x1fdf2a(0x13c4),'paused'];_0x1f176d[_0x1fdf2a(0x2321)]=_0xd388c3[_0x1fdf2a(0xb12)](),_0x1f176d[_0x1fdf2a(0x51c)]=_0x368ab4[_0x1fdf2a(0x51c)]?_0x368ab4[_0x1fdf2a(0x51c)]:0x0,_0x1f176d[_0x1fdf2a(0x1b32)]=_0x368ab4?_0x3f65c0()['keyBy'](_0x368ab4[_0x1fdf2a(0x19c7)]?_0x368ab4[_0x1fdf2a(0x19c7)]:[],'id'):{},_0x1f176d[_0x1fdf2a(0x21af)]=_0x4fba2a?_0x3f65c0()[_0x1fdf2a(0x194)](_0x4fba2a[_0x1fdf2a(0x19c7)]?_0x4fba2a[_0x1fdf2a(0x19c7)]:[],'id'):{},_0x1f176d[_0x1fdf2a(0x26b6)]=_0x422776,_0x1f176d[_0x1fdf2a(0x1366)]=_0x589510&&_0x589510[_0x1fdf2a(0x51c)]==0x1?_0x589510[_0x1fdf2a(0x19c7)][0x0]:null,_0x1f176d[_0x1fdf2a(0x2514)]=_0xd388c3[_0x1fdf2a(0xe60)](_0x1f176d[_0x1fdf2a(0x1366)]?_0x1f176d['userProfileSection'][_0x1fdf2a(0x2514)]:null);_0xd388c3[_0x1fdf2a(0x23e0)](_0x1fdf2a(0x174b))?_0x1f176d['query']={'type':_0x1fdf2a(0x7b0),'sort':_0x1fdf2a(0x12f2),'limit':0xa,'page':0x1}:_0x1f176d[_0x1fdf2a(0x1a56)]={'id':_0x1f176d[_0x1fdf2a(0x2321)]['id'],'channel':_0x1fdf2a(0xa7f),'type':_0x1fdf2a(0x7b0),'sort':'-updatedAt','limit':0xa,'page':0x1};_0x1f176d[_0x1fdf2a(0x1c75)]=_0x51e512,_0x1f176d[_0x1fdf2a(0xc53)]=_0x324289,_0x1f176d[_0x1fdf2a(0x7be)]=_0x220e10,_0x1f176d[_0x1fdf2a(0x13c)]=_0x2f4370,_0x1f176d['updateQueue']=_0x61d11b,_0x1f176d[_0x1fdf2a(0x1db0)]=_0x35cce9,_0x1f176d[_0x1fdf2a(0x285f)]=_0x2e10b3,_0x1f176d[_0x1fdf2a(0x2240)]=_0x5801de,_0x1f176d[_0x1fdf2a(0x1028)]=_0x15ab3e,_0x1f176d[_0x1fdf2a(0x1c6c)]=_0x263735,_0x1f176d['onLogout']=_0xfcc615,_0x1f176d['$onInit']=_0x4e4ea4,_0x1f176d[_0x1fdf2a(0x206e)]=[],_0x3f65c0()[_0x1fdf2a(0x1a04)](_0x1f176d[_0x1fdf2a(0x1b32)],function(_0x5dd671){const _0x1d1162=_0x1fdf2a;_0x1f176d[_0x1d1162(0x206e)][_0x1d1162(0x1f47)](_0x5dd671['id']);}),_0x303ded['on']('chat_queue:save',_0x1f176d['onSave']),_0x303ded['on'](_0x1fdf2a(0x1128),_0x1f176d[_0x1fdf2a(0x285f)]),_0x303ded['on'](_0x1fdf2a(0x24df),_0x1f176d[_0x1fdf2a(0x2240)]),_0x303ded['on'](_0x1fdf2a(0x324),_0x1f176d[_0x1fdf2a(0x1028)]),_0x303ded['on'](_0x1fdf2a(0x1d3e),_0x1f176d['onLogout']),_0x303ded['on']('userVoiceQueue:save',_0x1f176d['onLogin']);function _0x4e4ea4(){const _0x2cba00=_0x1fdf2a,_0xb02c89=[];return _0x3f65c0()[_0x2cba00(0x1a04)](_0x1f176d[_0x2cba00(0x1b32)],function(_0x56fd65,_0x1808d4){const _0x1be386=_0x2cba00;_0x56fd65[_0x1be386(0x1e3d)]=0x0,_0x56fd65[_0x1be386(0x1899)]=0x0,_0x1f176d[_0x1be386(0x1b32)][_0x1808d4]['agents']={},_0xb02c89['push'](_0x3865cf[_0x1be386(0x16f8)]['getMembers']({'id':_0x1808d4})['$promise']),_0x1f176d[_0x1be386(0x21af)][_0x1808d4]&&_0x3f65c0()[_0x1be386(0x168d)](_0x56fd65,_0x3f65c0()[_0x1be386(0x40e)](_0x1f176d[_0x1be386(0x21af)][_0x1808d4],_0x251a2d));}),_0x21c82c[_0x2cba00(0x1be2)](_0xb02c89)[_0x2cba00(0x146b)](function(_0x35765f){const _0x986b9a=_0x2cba00;for(let _0x5b6ab9=0x0;_0x5b6ab9<_0x35765f[_0x986b9a(0x402)];_0x5b6ab9+=0x1){for(let _0x2f0b17=0x0;_0x2f0b17<_0x35765f[_0x5b6ab9]['rows']['length'];_0x2f0b17++){_0x35765f[_0x5b6ab9]['rows'][_0x2f0b17][_0x986b9a(0x1e3d)]&&_0x1f176d['queues'][_0x35765f[_0x5b6ab9][_0x986b9a(0x19c7)][_0x2f0b17][_0x986b9a(0x1ece)]][_0x986b9a(0x1e3d)]++,_0x1f176d[_0x986b9a(0x1b32)][_0x35765f[_0x5b6ab9][_0x986b9a(0x19c7)][_0x2f0b17][_0x986b9a(0x1ece)]][_0x986b9a(0x1899)]++,_0x1f176d[_0x986b9a(0x1b32)][_0x35765f[_0x5b6ab9][_0x986b9a(0x19c7)][_0x2f0b17][_0x986b9a(0x1ece)]][_0x986b9a(0x23c0)][_0x35765f[_0x5b6ab9]['rows'][_0x2f0b17]['UserId']]=_0x35765f[_0x5b6ab9]['rows'][_0x2f0b17][_0x986b9a(0x1ece)];}}})[_0x2cba00(0x129e)](function(_0x431ac5){const _0x1075f5=_0x2cba00;console[_0x1075f5(0x1980)](_0x431ac5);});}function _0x35cce9(_0x53ebc9){const _0x2d33bc=_0x1fdf2a;_0x1f176d[_0x2d33bc(0x1b32)][_0x53ebc9['id']]&&_0x3f65c0()[_0x2d33bc(0x168d)](_0x1f176d['queues'][_0x53ebc9['id']],_0x3f65c0()['pick'](_0x53ebc9,_0x251a2d));}function _0x2e10b3(_0x2af664){const _0x2e1b43=_0x1fdf2a;_0x1f176d[_0x2e1b43(0x1b32)][_0x2af664[_0x2e1b43(0x1ece)]]&&_0x1f176d[_0x2e1b43(0x1b32)][_0x2af664['ChatQueueId']][_0x2e1b43(0x1899)]++;}function _0x5801de(_0x1d78f4){const _0x5ed310=_0x1fdf2a;_0x1f176d[_0x5ed310(0x1b32)][_0x1d78f4[_0x5ed310(0x1ece)]]&&_0x1f176d[_0x5ed310(0x1b32)][_0x1d78f4[_0x5ed310(0x1ece)]][_0x5ed310(0x1899)]--;}function _0x15ab3e(_0x3a26f6){const _0x5d6a9a=_0x1fdf2a;console[_0x5d6a9a(0x1a74)](_0x5d6a9a(0x1028),_0x3a26f6);if(_0x3a26f6[_0x5d6a9a(0x211c)])_0x3f65c0()[_0x5d6a9a(0x1a04)](_0x1f176d['queues'],function(_0x57fea2){const _0x4571b9=_0x5d6a9a;_0x57fea2['agents'][_0x3a26f6['id']]&&(_0x57fea2[_0x4571b9(0x1e3d)]+=0x1,console[_0x4571b9(0x1a74)](_0x4571b9(0x1e3e)));});else!_0x3a26f6[_0x5d6a9a(0x211c)]&&_0x3f65c0()[_0x5d6a9a(0x1a04)](_0x1f176d['queues'],function(_0x3138a5){const _0x514e1c=_0x5d6a9a;_0x3138a5[_0x514e1c(0x23c0)][_0x3a26f6['id']]&&(_0x3138a5[_0x514e1c(0x1e3d)]>0x0&&(_0x3138a5[_0x514e1c(0x1e3d)]-=0x1,console['log'](_0x514e1c(0x974))));});}function _0x263735(_0x4f2fd9){const _0x28adb5=_0x1fdf2a;console[_0x28adb5(0x1a74)]('onLogged',_0x4f2fd9),_0x1f176d['queues'][_0x4f2fd9['ChatQueueId']]&&(_0x1f176d[_0x28adb5(0x1b32)][_0x4f2fd9['ChatQueueId']][_0x28adb5(0x1899)]+=0x1,_0x1f176d['queues'][_0x4f2fd9[_0x28adb5(0x1ece)]]['agents'][_0x4f2fd9[_0x28adb5(0xea2)]]=_0x4f2fd9['ChatQueueId']);}function _0xfcc615(_0x270342){const _0x2ae540=_0x1fdf2a;console[_0x2ae540(0x1a74)]('onLogout',_0x270342),_0x1f176d[_0x2ae540(0x1b32)][_0x270342['ChatQueueId']]&&_0x1f176d[_0x2ae540(0x1b32)][_0x270342[_0x2ae540(0x1ece)]][_0x2ae540(0x1899)]>0x0&&(_0x1f176d[_0x2ae540(0x1b32)][_0x270342[_0x2ae540(0x1ece)]]['loggedInDb']-=0x1,delete _0x1f176d[_0x2ae540(0x1b32)][_0x270342['ChatQueueId']][_0x2ae540(0x23c0)][_0x270342[_0x2ae540(0xea2)]]);}let _0xb85c6d=!![],_0x2e49e9=0x1;_0x5694cc['$watch'](_0x1fdf2a(0x2669),function(_0x262f73,_0xb3ba62){const _0x4d06e6=_0x1fdf2a;_0xb85c6d?_0x5c39bd(function(){_0xb85c6d=![];}):(!_0xb3ba62&&(_0x2e49e9=_0x1f176d[_0x4d06e6(0x1a56)][_0x4d06e6(0x844)]),_0x262f73!==_0xb3ba62&&(_0x1f176d[_0x4d06e6(0x1a56)][_0x4d06e6(0x844)]=0x1),!_0x262f73&&(_0x1f176d['query'][_0x4d06e6(0x844)]=_0x2e49e9),_0x1f176d[_0x4d06e6(0xc53)]());});function _0x51e512(_0xa0766f){const _0x441d0b=_0x1fdf2a;_0x1f176d[_0x441d0b(0x51c)]=_0xa0766f[_0x441d0b(0x51c)],_0x1f176d[_0x441d0b(0x1b32)]=_0xa0766f?_0x3f65c0()[_0x441d0b(0x194)](_0xa0766f[_0x441d0b(0x19c7)]?_0xa0766f['rows']:[],'id'):{};if(_0xa0766f['rows']){_0x1f176d[_0x441d0b(0x206e)]=[];for(let _0x186eb9=0x0;_0x186eb9<_0xa0766f[_0x441d0b(0x19c7)][_0x441d0b(0x402)];_0x186eb9++){_0x1f176d[_0x441d0b(0x206e)][_0x441d0b(0x1f47)](_0xa0766f[_0x441d0b(0x19c7)][_0x186eb9]['id']);}}_0x4e4ea4();}function _0x324289(){const _0x585494=_0x1fdf2a;_0x1f176d[_0x585494(0x1a56)][_0x585494(0x145d)]=(_0x1f176d[_0x585494(0x1a56)][_0x585494(0x844)]-0x1)*_0x1f176d[_0x585494(0x1a56)][_0x585494(0x221e)],_0xd388c3[_0x585494(0x23e0)](_0x585494(0x174b))?_0x1f176d['promise']=_0x3865cf[_0x585494(0x16f8)][_0x585494(0x16b4)](_0x1f176d[_0x585494(0x1a56)],_0x51e512)[_0x585494(0x2945)]:(_0x1f176d['query']['id']=_0x1f176d[_0x585494(0x26b6)]['id'],_0x1f176d['query']['section']=_0x585494(0x1d54),_0x1f176d[_0x585494(0xb9c)]=_0x3865cf[_0x585494(0x26b6)][_0x585494(0x158f)](_0x1f176d[_0x585494(0x1a56)],_0x51e512)[_0x585494(0x2945)]);}function _0x220e10(_0x74d48e,_0x1c689a){const _0x74dd67=_0x1fdf2a;_0x51de6c[_0x74dd67(0x2615)]({'controller':_0x74dd67(0x9eb),'controllerAs':'vm','templateUrl':_0x4e5c4a,'parent':angular['element'](_0x545ecf[_0x74dd67(0x2586)]),'targetEvent':_0x74d48e,'clickOutsideToClose':!![],'locals':{'chatQueue':_0x1c689a,'chatQueues':_0x3f65c0()[_0x74dd67(0x81b)](_0x1f176d[_0x74dd67(0x1b32)]),'license':null,'setting':null,'crudPermissions':_0x1f176d[_0x74dd67(0x2514)]}});}function _0x2f4370(_0x2a4389,_0x4ca6f3){const _0x2145f7=_0x1fdf2a;_0x51de6c[_0x2145f7(0x2615)]({'controller':_0x2145f7(0xc47),'controllerAs':'vm','templateUrl':_0x53d1a0,'parent':angular['element'](_0x545ecf[_0x2145f7(0x2586)]),'targetEvent':_0x2a4389,'clickOutsideToClose':!![],'locals':{'chatQueue':_0x4ca6f3,'chatQueues':_0x1f176d['queues']?_0x1f176d[_0x2145f7(0x1b32)][_0x2145f7(0x19c7)]:[],'realtime':![],'crudPermissions':_0x1f176d[_0x2145f7(0x2514)]}});}function _0x61d11b(_0x30e608){const _0xb86e81=_0x1fdf2a;return _0x3865cf['chatQueue'][_0xb86e81(0x18e1)](_0x30e608)[_0xb86e81(0x2945)]['then'](function(){const _0x3bf753=_0xb86e81;_0x16c48e[_0x3bf753(0x1c75)]({'title':_0x3bf753(0x5f1),'msg':_0x30e608[_0x3bf753(0x19eb)]?_0x30e608[_0x3bf753(0x19eb)]+_0x3bf753(0x6b0):''});})[_0xb86e81(0x129e)](function(_0x5eec8a){const _0xde371f=_0xb86e81;_0x16c48e[_0xde371f(0x1980)]({'title':'Error\x20creating\x20queue!','msg':_0x5eec8a[_0xde371f(0x7fd)]});});}_0x5694cc['$on'](_0x1fdf2a(0x116f),function(){const _0x578bf4=_0x1fdf2a;_0x303ded[_0x578bf4(0x1c5f)](_0x578bf4(0x1e10)),_0x303ded[_0x578bf4(0x1c5f)](_0x578bf4(0x24df)),_0x303ded['removeAllListeners'](_0x578bf4(0x1128)),_0x303ded[_0x578bf4(0x1c5f)]('user:update'),_0x303ded['removeAllListeners'](_0x578bf4(0x1d3e)),_0x303ded[_0x578bf4(0x1c5f)](_0x578bf4(0x109d));});}const _0x1cb8a8=_0x2697dd;;function _0x23981f(){const _0x43dcb8=_0x313a4d;return{'status':{'registered':'green-300-fg\x20icon-checkbox-marked-circle','unregistered':_0x43dcb8(0x4c7),'lagged':_0x43dcb8(0x4c7),'reachable':_0x43dcb8(0xdf4),'unreachable':_0x43dcb8(0x4c7),'unknown':_0x43dcb8(0xc4b)},'state':{'unknown':_0x43dcb8(0x1fd7),'not_inuse':_0x43dcb8(0x1756),'inuse':'red-300-fg\x20icon-phone-in-talk','busy':_0x43dcb8(0xb3c),'invalid':'grey-fg\x20icon-phone-hangup','unavailable':_0x43dcb8(0x1fd7),'ringing':_0x43dcb8(0x1172),'ringinuse':_0x43dcb8(0x1172),'onhold':_0x43dcb8(0x119f)},'channelStatus':{'ring':_0x43dcb8(0x1172),'up':'green-300-fg\x20icon-phone-in-talk','hangup':_0x43dcb8(0x135d)},'channelStatusOut':{'ring':_0x43dcb8(0x1a13),'up':_0x43dcb8(0x1668),'hangup':_0x43dcb8(0x135d)}};}const _0xe206ee=_0x23981f;;_0x25e174[_0x313a4d(0x11c2)]=['$scope',_0x313a4d(0x1862),_0x313a4d(0x279d)];function _0x25e174(_0xfd8a19,_0x51cb88,_0xa04d19){const _0x445347=_0x313a4d,_0x249358=this;_0xa04d19[_0x445347(0x194a)](),_0xa04d19[_0x445347(0x2e3)](),_0x249358['selectedTab']=0x0;switch(_0x51cb88['current']['name']){case'app.chat.realtime.agents':_0x249358['selectedTab']=0x0;break;case _0x445347(0x16cb):_0x249358[_0x445347(0x1b09)]=0x1;break;default:_0x249358[_0x445347(0x1b09)]=0x0,_0x51cb88['go'](_0x445347(0x1c95));}_0xfd8a19['$watch'](_0x445347(0x241b),function(_0x515efd,_0x52ef37){const _0x495fb0=_0x445347;if(_0x515efd!==_0x52ef37)switch(_0x515efd){case 0x0:_0x51cb88['go'](_0x495fb0(0x1c95));break;case 0x1:_0x51cb88['go'](_0x495fb0(0x16cb));break;default:_0x51cb88['go']('app.chat.realtime.agents');}});}const _0x866c42=_0x25e174;;_0x427450[_0x313a4d(0x11c2)]=[_0x313a4d(0x921)];function _0x427450(_0x1fae6b){const _0x1a9662=_0x313a4d;_0x1fae6b[_0x1a9662(0x13d6)](_0x1a9662(0x284e),{'url':_0x1a9662(0x178b),'views':{'content@app':{'templateUrl':_0x156e2c,'controller':_0x1a9662(0x1c54)}},'resolve':{'userProfile':[_0x1a9662(0x362),_0x1a9662(0xa87),function(_0x3b5624,_0x46b577){const _0x5a4bd2=_0x1a9662;return _0x46b577['hasRole'](_0x5a4bd2(0x174b))?null:_0x3b5624[_0x5a4bd2(0x2922)]('userProfile@get',{'fields':_0x5a4bd2(0x227),'id':_0x46b577['getCurrentUser']()[_0x5a4bd2(0x209a)]});}],'userProfileSection':[_0x1a9662(0x362),_0x1a9662(0xa87),function(_0x3e215f,_0x46f23b){const _0x1f565a=_0x1a9662;return _0x46f23b[_0x1f565a(0x23e0)]('admin')?null:_0x3e215f[_0x1f565a(0x2922)](_0x1f565a(0x27be),{'fields':_0x1f565a(0x1e64),'userProfileId':_0x46f23b['getCurrentUser']()[_0x1f565a(0x209a)],'sectionId':0x1fe});}]},'authenticate':!![],'permissionId':0x1fe})[_0x1a9662(0x13d6)]('app.chat.realtime.agents',{'url':_0x1a9662(0x1507),'controller':_0x1a9662(0x1d2f),'templateUrl':_0x1ed7f0,'resolve':{'pauses':[_0x1a9662(0x362),function(_0x388c47){const _0x3668aa=_0x1a9662;return _0x388c47['resolve'](_0x3668aa(0x3f6),{'nolimit':!![]});}],'agents':[_0x1a9662(0x362),'Auth',function(_0x6d83ae,_0x846dd3){const _0x17fbaa=_0x1a9662;return _0x846dd3[_0x17fbaa(0x23e0)](_0x17fbaa(0x174b))?_0x6d83ae[_0x17fbaa(0x2922)](_0x17fbaa(0x2484),{'fields':_0x17fbaa(0x2869),'role':_0x17fbaa(0x1755),'sort':'fullname','nolimit':!![]}):_0x6d83ae['resolve'](_0x17fbaa(0x938),{'id':_0x846dd3[_0x17fbaa(0xb12)]()[_0x17fbaa(0x209a)],'section':'Agents','fields':_0x17fbaa(0x2869),'role':_0x17fbaa(0x1755),'sort':_0x17fbaa(0x286a),'nolimit':!![]});}],'userProfile':['apiResolver',_0x1a9662(0xa87),function(_0x51e64d,_0x4f7f12){const _0x3e53ed=_0x1a9662;return _0x4f7f12[_0x3e53ed(0x23e0)](_0x3e53ed(0x174b))?null:_0x51e64d[_0x3e53ed(0x2922)](_0x3e53ed(0x119a),{'fields':_0x3e53ed(0x227),'id':_0x4f7f12[_0x3e53ed(0xb12)]()[_0x3e53ed(0x209a)]});}],'userProfileSection':[_0x1a9662(0x362),'Auth',function(_0x1d5764,_0x20c098){const _0x51538f=_0x1a9662;return _0x20c098[_0x51538f(0x23e0)](_0x51538f(0x174b))?null:_0x1d5764[_0x51538f(0x2922)](_0x51538f(0x27be),{'fields':_0x51538f(0x1e64),'userProfileId':_0x20c098[_0x51538f(0xb12)]()[_0x51538f(0x209a)],'sectionId':0xca});}],'rpcAgents':[_0x1a9662(0x362),function(_0x54224c){const _0x3b2816=_0x1a9662;return _0x54224c[_0x3b2816(0x2922)]('rpc@getAgents');}]},'authenticate':!![],'permissionId':0x1fe})[_0x1a9662(0x13d6)](_0x1a9662(0x16cb),{'url':_0x1a9662(0xf15),'controller':_0x1a9662(0x2611),'templateUrl':_0x1b4bf3,'resolve':{'queues':[_0x1a9662(0x362),'Auth',function(_0x59c718,_0x3f7724){const _0x5c8a8a=_0x1a9662;return _0x3f7724['hasRole'](_0x5c8a8a(0x174b))?_0x59c718[_0x5c8a8a(0x2922)]('chatQueue@get',{'type':_0x5c8a8a(0x7b0),'sort':_0x5c8a8a(0x12f2),'limit':0xa,'offset':0x0}):_0x59c718[_0x5c8a8a(0x2922)](_0x5c8a8a(0x938),{'id':_0x3f7724[_0x5c8a8a(0xb12)]()[_0x5c8a8a(0x209a)],'section':_0x5c8a8a(0x1d54),'channel':_0x5c8a8a(0xa7f),'type':_0x5c8a8a(0x7b0),'sort':_0x5c8a8a(0x12f2),'limit':0xa,'page':0x1});}],'userProfile':[_0x1a9662(0x362),_0x1a9662(0xa87),function(_0x5264be,_0x59522e){const _0xeaf537=_0x1a9662;return _0x59522e[_0xeaf537(0x23e0)](_0xeaf537(0x174b))?null:_0x5264be[_0xeaf537(0x2922)](_0xeaf537(0x119a),{'fields':_0xeaf537(0x227),'id':_0x59522e[_0xeaf537(0xb12)]()[_0xeaf537(0x209a)]});}],'userProfileSection':['apiResolver',_0x1a9662(0xa87),function(_0x5e1c90,_0x3afb84){const _0x4ae1c7=_0x1a9662;return _0x3afb84[_0x4ae1c7(0x23e0)]('admin')?null:_0x5e1c90[_0x4ae1c7(0x2922)]('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x3afb84[_0x4ae1c7(0xb12)]()[_0x4ae1c7(0x209a)],'sectionId':0x1f5});}],'rpcQueues':[_0x1a9662(0x362),function(_0x3ca6b0){const _0x1e8962=_0x1a9662;return _0x3ca6b0['resolve'](_0x1e8962(0x22df));}]},'authenticate':!![],'permissionId':0x1fe});}angular['module'](_0x313a4d(0x284e),[])[_0x313a4d(0x989)](_0x427450)['controller'](_0x313a4d(0x104a),_0x42b5a9)[_0x313a4d(0x28f0)](_0x313a4d(0xe91),_0x1cb8a8)[_0x313a4d(0x1750)](_0x313a4d(0x1ac0),_0xe206ee)[_0x313a4d(0x28f0)](_0x313a4d(0x2613),_0x866c42);;const _0x58aef2=_0x4acfac['p']+_0x313a4d(0x1f12);;_0x8f4b2f[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1aa9),_0x313a4d(0x1862),_0x313a4d(0x15fe),_0x313a4d(0x10e8),_0x313a4d(0x4d8),_0x313a4d(0x1abe),_0x313a4d(0x214b),'chatQueues',_0x313a4d(0x26b6),_0x313a4d(0x1366),_0x313a4d(0x247f),_0x313a4d(0x216c),_0x313a4d(0x1fe4),'Auth','license',_0x313a4d(0x15b9)];function _0x8f4b2f(_0x5152d3,_0x420a31,_0x203782,_0x3e6291,_0x57c4ad,_0x2aeead,_0x4aea7e,_0x535b26,_0x5a141e,_0xeaffe1,_0x26434a,_0x3e5838,_0x27e52a,_0x28c1f1,_0x1fc488,_0x3dd606,_0x146225){const _0x2d06b6=_0x313a4d,_0x58d960=this;_0x58d960[_0x2d06b6(0x2690)]=_0x3dd606,_0x58d960[_0x2d06b6(0x15b9)]=_0x146225,_0x58d960[_0x2d06b6(0x2321)]=_0x1fc488[_0x2d06b6(0xb12)](),_0x58d960['chatQueues']=_0x5a141e||{'count':0x0,'rows':[]},_0x58d960[_0x2d06b6(0x26b6)]=_0xeaffe1,_0x58d960[_0x2d06b6(0x1366)]=_0x26434a&&_0x26434a[_0x2d06b6(0x51c)]==0x1?_0x26434a['rows'][0x0]:null,_0x58d960[_0x2d06b6(0x2514)]=_0x1fc488[_0x2d06b6(0xe60)](_0x58d960[_0x2d06b6(0x1366)]?_0x58d960[_0x2d06b6(0x1366)][_0x2d06b6(0x2514)]:null),_0x58d960[_0x2d06b6(0x768)]=_0x2d06b6(0x380),_0x58d960['listOrder']='',_0x58d960[_0x2d06b6(0x214f)]=null,_0x58d960[_0x2d06b6(0x281b)]=[],_0x58d960[_0x2d06b6(0x1a56)]={'fields':_0x2d06b6(0xa22),'sort':_0x2d06b6(0x12f2),'channel':'chat','limit':0xa,'page':0x1},_0x58d960[_0x2d06b6(0x280a)]=_0x3f65c0()['keyBy']([{'option':'Beepall','value':_0x2d06b6(0xb5a)},{'option':_0x2d06b6(0xa12),'value':'\x27rrmemory\x27'}],function(_0x5e42ac){const _0x1457f9=_0x2d06b6;return _0x3f65c0()[_0x1457f9(0x5f4)](_0x5e42ac[_0x1457f9(0x175d)],new RegExp('\x27','g'),'');}),_0x58d960[_0x2d06b6(0x23f9)]=_0x26be0a,_0x58d960[_0x2d06b6(0x244)]=_0x4612ca,_0x58d960[_0x2d06b6(0x1027)]=_0x4ce3cc,_0x58d960['deleteconfirm']=_0x4f5129,_0x58d960[_0x2d06b6(0x138d)]=_0x546da4,_0x58d960[_0x2d06b6(0x1c75)]=_0x832a93,_0x58d960['getChatQueues']=_0x32bfeb,_0x58d960[_0x2d06b6(0x7be)]=_0x1376c7,_0x58d960['deleteChatQueue']=_0x477887,_0x58d960[_0x2d06b6(0x163d)]=_0x3628a1,_0x58d960[_0x2d06b6(0xfd9)]=_0x1214ff,_0x58d960[_0x2d06b6(0x17ba)]=_0x20284f,_0x58d960[_0x2d06b6(0x5d8)]=_0x4a7a0b;function _0x26be0a(_0x1abd5c){const _0x4068a6=_0x2d06b6;_0x203782['go'](_0x4068a6(0x1a5f),{'id':_0x1abd5c['id'],'chatQueue':_0x1abd5c,'crudPermissions':_0x58d960[_0x4068a6(0x2514)]});}function _0x4612ca(_0x3da377,_0x37710f){const _0x4b5726=_0x2d06b6;_0x57c4ad[_0x4b5726(0x2615)]({'controller':_0x4b5726(0xaae),'controllerAs':'vm','templateUrl':_0x58aef2,'parent':angular['element'](_0x2aeead[_0x4b5726(0x2586)]),'targetEvent':_0x37710f,'clickOutsideToClose':!![],'locals':{'chatQueue':_0x3da377,'chatQueues':_0x58d960[_0x4b5726(0x380)]?_0x58d960[_0x4b5726(0x380)][_0x4b5726(0x19c7)]:[],'crudPermissions':_0x58d960[_0x4b5726(0x2514)]}});}function _0x4ce3cc(_0x39579f,_0x26531e){const _0xf97390=_0x2d06b6;_0x57c4ad[_0xf97390(0x2615)]({'controller':_0xf97390(0xc47),'controllerAs':'vm','templateUrl':_0x53d1a0,'parent':angular[_0xf97390(0x1853)](_0x2aeead[_0xf97390(0x2586)]),'targetEvent':_0x26531e,'clickOutsideToClose':!![],'locals':{'chatQueue':_0x39579f,'chatQueues':_0x58d960[_0xf97390(0x380)]?_0x58d960[_0xf97390(0x380)]['rows']:[],'crudPermissions':_0x58d960[_0xf97390(0x2514)],'realtime':![]}});}function _0x4f5129(_0x228b40,_0x4f3190){const _0x7059ab=_0x2d06b6,_0x3eb3e8=_0x57c4ad[_0x7059ab(0x1e8a)]()[_0x7059ab(0x1189)](_0x7059ab(0xdb2)+_0x3f65c0()[_0x7059ab(0x20d1)]('chatQueue')+'?')[_0x7059ab(0x1cbe)](_0x7059ab(0x16d3)+(_0x228b40[_0x7059ab(0x19eb)]||'chatQueue')+_0x7059ab(0x252f)+_0x7059ab(0xe01))[_0x7059ab(0x4bd)]('delete\x20chatQueue')[_0x7059ab(0x1f27)](_0x4f3190)['ok']('OK')[_0x7059ab(0x6c3)](_0x7059ab(0x39a));_0x57c4ad[_0x7059ab(0x2615)](_0x3eb3e8)[_0x7059ab(0x146b)](function(){_0x477887(_0x228b40);},function(){const _0x568771=_0x7059ab;console[_0x568771(0x1a74)](_0x568771(0x39a));});}function _0x546da4(){const _0x588929=_0x2d06b6;if(_0x1fc488[_0x588929(0x23e0)]('admin'))_0x203782['go'](_0x588929(0x16cb),{});else return _0x3e5838['userProfileSection'][_0x588929(0x16b4)]({'userProfileId':_0x1fc488[_0x588929(0xb12)]()[_0x588929(0x209a)],'sectionId':0x1fe})[_0x588929(0x2945)][_0x588929(0x146b)](function(_0xab7741){const _0x4ff4a2=_0x588929,_0x50c278=_0xab7741&&_0xab7741[_0x4ff4a2(0x19c7)]?_0xab7741[_0x4ff4a2(0x19c7)][0x0]:null;_0x50c278&&_0x50c278[_0x4ff4a2(0x193e)]?_0x203782['go']('app.chat.realtime.queues',{}):_0x28c1f1[_0x4ff4a2(0x271e)]({'title':_0x535b26[_0x4ff4a2(0xde)](_0x4ff4a2(0xb27)),'msg':_0x535b26[_0x4ff4a2(0xde)]('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_MESSAGE')});})[_0x588929(0x129e)](function(_0x307ee9){const _0x29315c=_0x588929;_0x28c1f1['error']({'title':_0x307ee9[_0x29315c(0x107b)]?'API:'+_0x307ee9[_0x29315c(0x107b)]+_0x29315c(0x1315)+_0x307ee9['statusText']:'USERPROFILE:GET_SECTION','msg':_0x307ee9['status']?JSON['stringify'](_0x307ee9[_0x29315c(0x524)]):_0x307ee9[_0x29315c(0xd5f)]()});});}let _0x51cf1c=!![],_0x4a4dc8=0x1;_0x5152d3[_0x2d06b6(0x21e8)](_0x2d06b6(0x2669),function(_0x241fb7,_0xe5fbc2){const _0x3f8549=_0x2d06b6;_0x51cf1c?_0x4aea7e(function(){_0x51cf1c=![];}):(!_0xe5fbc2&&(_0x4a4dc8=_0x58d960[_0x3f8549(0x1a56)]['page']),_0x241fb7!==_0xe5fbc2&&(_0x58d960['query'][_0x3f8549(0x844)]=0x1),!_0x241fb7&&(_0x58d960['query'][_0x3f8549(0x844)]=_0x4a4dc8),_0x58d960[_0x3f8549(0x12fe)]());});function _0x832a93(_0x5c006b){const _0x2c9a5a=_0x2d06b6;_0x58d960[_0x2c9a5a(0x380)]=_0x5c006b||{'count':0x0,'rows':[]};}function _0x32bfeb(){const _0x1a33aa=_0x2d06b6;_0x58d960[_0x1a33aa(0x1a56)][_0x1a33aa(0x145d)]=(_0x58d960['query'][_0x1a33aa(0x844)]-0x1)*_0x58d960[_0x1a33aa(0x1a56)][_0x1a33aa(0x221e)],_0x1fc488['hasRole'](_0x1a33aa(0x174b))?_0x58d960['promise']=_0x3e5838['chatQueue']['get'](_0x58d960[_0x1a33aa(0x1a56)],_0x832a93)[_0x1a33aa(0x2945)]:(_0x58d960[_0x1a33aa(0x1a56)]['id']=_0x58d960[_0x1a33aa(0x26b6)]['id'],_0x58d960[_0x1a33aa(0x1a56)][_0x1a33aa(0x2146)]=_0x1a33aa(0x1d54),_0x58d960[_0x1a33aa(0xb9c)]=_0x3e5838[_0x1a33aa(0x26b6)][_0x1a33aa(0x158f)](_0x58d960['query'],_0x832a93)['$promise']);}function _0x1376c7(_0xf2d1e7,_0x325e5e){const _0x6d9474=_0x2d06b6;_0x57c4ad[_0x6d9474(0x2615)]({'controller':_0x6d9474(0x9eb),'controllerAs':'vm','templateUrl':_0x4e5c4a,'parent':angular['element'](_0x2aeead[_0x6d9474(0x2586)]),'targetEvent':_0xf2d1e7,'clickOutsideToClose':!![],'locals':{'chatQueue':_0x325e5e,'chatQueues':_0x58d960['chatQueues'][_0x6d9474(0x19c7)],'license':_0x58d960[_0x6d9474(0x2690)],'setting':_0x58d960['setting'],'crudPermissions':_0x58d960[_0x6d9474(0x2514)]}});}function _0x477887(_0x4532cd){const _0xbb771a=_0x2d06b6;_0x3e5838[_0xbb771a(0x16f8)][_0xbb771a(0x1fac)]({'id':_0x4532cd['id']})[_0xbb771a(0x2945)][_0xbb771a(0x146b)](function(){const _0x2e82fa=_0xbb771a;_0x3f65c0()[_0x2e82fa(0x2640)](_0x58d960[_0x2e82fa(0x380)][_0x2e82fa(0x19c7)],{'id':_0x4532cd['id']}),_0x58d960[_0x2e82fa(0x380)]['count']-=0x1,!_0x58d960[_0x2e82fa(0x380)]['rows'][_0x2e82fa(0x402)]&&_0x58d960[_0x2e82fa(0x12fe)](),_0x28c1f1[_0x2e82fa(0x1c75)]({'title':_0x3f65c0()[_0x2e82fa(0x20d1)](_0x2e82fa(0x9ac))+_0x2e82fa(0x201c),'msg':_0x4532cd['name']?_0x4532cd[_0x2e82fa(0x19eb)]+_0x2e82fa(0x23e3):''});})['catch'](function(_0x3ce287){const _0x1989e3=_0xbb771a;if(_0x3ce287[_0x1989e3(0x524)]&&_0x3ce287['data'][_0x1989e3(0xcef)]&&_0x3ce287[_0x1989e3(0x524)][_0x1989e3(0xcef)][_0x1989e3(0x402)]){_0x58d960[_0x1989e3(0xcef)]=_0x3ce287[_0x1989e3(0x524)]['errors']||[{'message':_0x3ce287['toString'](),'type':'SYSTEM:DELETEchatQueue'}];for(let _0x4bfe8d=0x0;_0x4bfe8d<_0x3ce287[_0x1989e3(0x524)][_0x1989e3(0xcef)][_0x1989e3(0x402)];_0x4bfe8d++){_0x28c1f1['error']({'title':_0x3ce287[_0x1989e3(0x524)][_0x1989e3(0xcef)][_0x4bfe8d][_0x1989e3(0x1142)],'msg':_0x3ce287[_0x1989e3(0x524)][_0x1989e3(0xcef)][_0x4bfe8d][_0x1989e3(0x7fd)]});}}else _0x28c1f1['error']({'title':_0x3ce287[_0x1989e3(0x107b)]?_0x1989e3(0x262a)+_0x3ce287[_0x1989e3(0x107b)]+_0x1989e3(0x1315)+_0x3ce287[_0x1989e3(0x167f)]:'SYSTEM:DELETEchatQueue','msg':_0x3ce287[_0x1989e3(0x524)]?JSON[_0x1989e3(0x10bb)](_0x3ce287['data']['message']):_0x3ce287['message']||_0x3ce287[_0x1989e3(0xd5f)]()});});}function _0x3628a1(){const _0x3af88c=_0x2d06b6,_0x52c63a=angular[_0x3af88c(0x235a)](_0x58d960[_0x3af88c(0x281b)]);return _0x58d960[_0x3af88c(0x281b)]=[],_0x52c63a;}function _0x1214ff(_0x530537){const _0x5751b8=_0x2d06b6,_0x156ed3=_0x57c4ad['confirm']()[_0x5751b8(0x1189)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20chatQueues?')[_0x5751b8(0x1cbe)](_0x5751b8(0x16d3)+_0x58d960[_0x5751b8(0x281b)][_0x5751b8(0x402)]+'\x20selected'+_0x5751b8(0xe01))[_0x5751b8(0x4bd)](_0x5751b8(0x21d6))[_0x5751b8(0x1f27)](_0x530537)['ok']('OK')[_0x5751b8(0x6c3)](_0x5751b8(0x39a));_0x57c4ad[_0x5751b8(0x2615)](_0x156ed3)[_0x5751b8(0x146b)](function(){const _0x39e679=_0x5751b8;_0x58d960['selectedChatQueues'][_0x39e679(0x1df5)](function(_0x3bcbc9){_0x477887(_0x3bcbc9);}),_0x58d960[_0x39e679(0x281b)]=[];});}function _0x20284f(){const _0x742084=_0x2d06b6;_0x58d960[_0x742084(0x281b)]=[];}function _0x4a7a0b(){const _0x2c37a5=_0x2d06b6;_0x58d960[_0x2c37a5(0x281b)]=_0x58d960['chatQueues'][_0x2c37a5(0x19c7)];}}const _0x2f45e5=_0x8f4b2f;;_0x5841c4[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),'$state',_0x313a4d(0xd08),_0x313a4d(0x10e8),'$q','$translate',_0x313a4d(0x1fe4),_0x313a4d(0x380),_0x313a4d(0x16f8),_0x313a4d(0x247f),_0x313a4d(0xa87),_0x313a4d(0x2690),_0x313a4d(0x15b9),'crudPermissions'];function _0x5841c4(_0x1277f4,_0x58b442,_0x733014,_0x29a677,_0xccadb,_0x2b287b,_0x2d12f4,_0x12164b,_0x13bda8,_0xcd7a2b,_0xad9cb1,_0x3b4027,_0x1c59c4,_0x1a9964){const _0x357099=_0x313a4d,_0x330e7c=this;_0x330e7c[_0x357099(0x2321)]=_0xad9cb1[_0x357099(0xb12)](),_0x330e7c[_0x357099(0xcef)]=[],_0x330e7c['setting']=_0x1c59c4,_0x330e7c[_0x357099(0x2690)]=_0x3b4027,_0x330e7c[_0x357099(0x2514)]=_0x1a9964,_0x330e7c[_0x357099(0x855)]={},_0x330e7c[_0x357099(0x2251)]=_0x330e7c[_0x357099(0x15b9)]&&_0x330e7c[_0x357099(0x15b9)][_0x357099(0x976)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x330e7c[_0x357099(0x1189)]=_0x357099(0x14f3),_0x330e7c[_0x357099(0x16f8)]=angular[_0x357099(0x235a)](_0x13bda8),_0x330e7c[_0x357099(0x380)]=_0x12164b,_0x330e7c[_0x357099(0x336)]=![];!_0x330e7c['chatQueue']&&(_0x330e7c[_0x357099(0x16f8)]={'strategy':_0x357099(0x1984),'timeout':0xa},_0x330e7c[_0x357099(0x1189)]=_0x357099(0x13da),_0x330e7c[_0x357099(0x336)]=!![]);_0x330e7c[_0x357099(0x381)]=_0x5ac4a0,_0x330e7c[_0x357099(0x28f2)]=_0x2ca08d,_0x330e7c[_0x357099(0x194d)]=_0x43068,_0x330e7c['getDateFromString']=_0x4068db,_0x330e7c['closeDialog']=_0x1dbd61;function _0x5ac4a0(){const _0x4002f9=_0x357099;_0x330e7c[_0x4002f9(0xcef)]=[],_0xcd7a2b['chatQueue'][_0x4002f9(0x1e3)](_0x330e7c[_0x4002f9(0x16f8)])[_0x4002f9(0x2945)][_0x4002f9(0x146b)](function(_0x480c62){const _0x5a28d6=_0x4002f9;_0x330e7c[_0x5a28d6(0x380)][_0x5a28d6(0xb3d)](_0x480c62[_0x5a28d6(0x2488)]()),_0x2d12f4[_0x5a28d6(0x1c75)]({'title':_0x5a28d6(0x1737),'msg':_0x330e7c[_0x5a28d6(0x16f8)]['name']?_0x330e7c[_0x5a28d6(0x16f8)][_0x5a28d6(0x19eb)]+_0x5a28d6(0x1386):''}),_0x1dbd61(_0x480c62);})['catch'](function(_0x25696b){const _0x3c86bb=_0x4002f9;if(_0x25696b[_0x3c86bb(0x524)]&&_0x25696b[_0x3c86bb(0x524)][_0x3c86bb(0xcef)]&&_0x25696b[_0x3c86bb(0x524)][_0x3c86bb(0xcef)][_0x3c86bb(0x402)]){_0x330e7c[_0x3c86bb(0xcef)]=_0x25696b[_0x3c86bb(0x524)][_0x3c86bb(0xcef)]||[{'message':_0x25696b[_0x3c86bb(0xd5f)](),'type':_0x3c86bb(0x10e6)}];for(let _0x125a60=0x0;_0x125a60<_0x25696b['data'][_0x3c86bb(0xcef)]['length'];_0x125a60+=0x1){_0x2d12f4[_0x3c86bb(0x1980)]({'title':_0x25696b[_0x3c86bb(0x524)][_0x3c86bb(0xcef)][_0x125a60]['type'],'msg':_0x25696b[_0x3c86bb(0x524)][_0x3c86bb(0xcef)][_0x125a60]['message']});}}else _0x2d12f4[_0x3c86bb(0x1980)]({'title':_0x25696b['status']?_0x3c86bb(0x262a)+_0x25696b[_0x3c86bb(0x107b)]+_0x3c86bb(0x1315)+_0x25696b[_0x3c86bb(0x167f)]:'api.chatQueue.save','msg':_0x25696b[_0x3c86bb(0x524)]?JSON[_0x3c86bb(0x10bb)](_0x25696b[_0x3c86bb(0x524)][_0x3c86bb(0x7fd)]):_0x25696b[_0x3c86bb(0xd5f)]()});});}function _0x2ca08d(){const _0x176080=_0x357099;_0x330e7c[_0x176080(0xcef)]=[],_0xcd7a2b[_0x176080(0x16f8)][_0x176080(0x18e1)]({'id':_0x330e7c[_0x176080(0x16f8)]['id']},_0x330e7c['chatQueue'])[_0x176080(0x2945)][_0x176080(0x146b)](function(_0x3f62c8){const _0x5468cf=_0x176080,_0x12da1a=_0x3f65c0()[_0x5468cf(0xc84)](_0x330e7c[_0x5468cf(0x380)],{'id':_0x3f62c8['id']});_0x12da1a&&_0x3f65c0()[_0x5468cf(0x168d)](_0x12da1a,_0x3f65c0()[_0x5468cf(0x40e)](_0x3f62c8['toJSON'](),_0x3f65c0()[_0x5468cf(0x627)](_0x12da1a))),_0x2d12f4[_0x5468cf(0x1c75)]({'title':_0x5468cf(0x70b),'msg':_0x330e7c['chatQueue'][_0x5468cf(0x19eb)]?_0x330e7c[_0x5468cf(0x16f8)]['name']+_0x5468cf(0x24db):''}),_0x1dbd61(_0x3f62c8);})[_0x176080(0x129e)](function(_0x3a3cfb){const _0x29a402=_0x176080;if(_0x3a3cfb[_0x29a402(0x524)]&&_0x3a3cfb['data'][_0x29a402(0xcef)]&&_0x3a3cfb[_0x29a402(0x524)][_0x29a402(0xcef)][_0x29a402(0x402)]){_0x330e7c[_0x29a402(0xcef)]=_0x3a3cfb[_0x29a402(0x524)]['errors']||[{'message':_0x3a3cfb[_0x29a402(0xd5f)](),'type':_0x29a402(0x2058)}];for(let _0x1f56d4=0x0;_0x1f56d4<_0x3a3cfb['data'][_0x29a402(0xcef)][_0x29a402(0x402)];_0x1f56d4++){_0x2d12f4[_0x29a402(0x1980)]({'title':_0x3a3cfb[_0x29a402(0x524)][_0x29a402(0xcef)][_0x1f56d4][_0x29a402(0x1142)],'msg':_0x3a3cfb[_0x29a402(0x524)][_0x29a402(0xcef)][_0x1f56d4][_0x29a402(0x7fd)]});}}else _0x2d12f4[_0x29a402(0x1980)]({'title':_0x3a3cfb[_0x29a402(0x107b)]?_0x29a402(0x262a)+_0x3a3cfb[_0x29a402(0x107b)]+_0x29a402(0x1315)+_0x3a3cfb[_0x29a402(0x167f)]:_0x29a402(0x2058),'msg':_0x3a3cfb[_0x29a402(0x524)]?JSON[_0x29a402(0x10bb)](_0x3a3cfb[_0x29a402(0x524)][_0x29a402(0x7fd)]):_0x3a3cfb['toString']()});});}function _0x43068(_0x1c63fd){const _0x564283=_0x357099;_0x330e7c['errors']=[];const _0x244d44=_0x29a677[_0x564283(0x1e8a)]()[_0x564283(0x1189)](_0x564283(0x1d64))[_0x564283(0x80f)](_0x564283(0x162e))['ariaLabel']('Delete\x20ChatQueue')['ok'](_0x564283(0x25de))[_0x564283(0x6c3)](_0x564283(0xcf0))[_0x564283(0x1f27)](_0x1c63fd);_0x29a677['show'](_0x244d44)['then'](function(){const _0x2d039d=_0x564283;_0xcd7a2b['chatQueue'][_0x2d039d(0x1fac)]({'id':_0x330e7c[_0x2d039d(0x16f8)]['id']})[_0x2d039d(0x2945)][_0x2d039d(0x146b)](function(){const _0x35395e=_0x2d039d;_0x3f65c0()['remove'](_0x330e7c[_0x35395e(0x380)],{'id':_0x330e7c[_0x35395e(0x16f8)]['id']}),_0x2d12f4[_0x35395e(0x1c75)]({'title':'ChatQueue\x20properly\x20deleted!','msg':(_0x330e7c[_0x35395e(0x16f8)]['name']||'chatQueue')+_0x35395e(0x23e3)}),_0x1dbd61(_0x330e7c[_0x35395e(0x16f8)]);})[_0x2d039d(0x129e)](function(_0x4cb614){const _0x3985ba=_0x2d039d;if(_0x4cb614[_0x3985ba(0x524)]&&_0x4cb614[_0x3985ba(0x524)]['errors']&&_0x4cb614['data'][_0x3985ba(0xcef)]['length']){_0x330e7c[_0x3985ba(0xcef)]=_0x4cb614['data'][_0x3985ba(0xcef)]||[{'message':_0x4cb614[_0x3985ba(0xd5f)](),'type':'api.chatQueue.delete'}];for(let _0x50e365=0x0;_0x50e365<_0x4cb614[_0x3985ba(0x524)][_0x3985ba(0xcef)][_0x3985ba(0x402)];_0x50e365++){_0x2d12f4['error']({'title':_0x4cb614[_0x3985ba(0x524)][_0x3985ba(0xcef)][_0x50e365]['type'],'msg':_0x4cb614[_0x3985ba(0x524)][_0x3985ba(0xcef)][_0x50e365][_0x3985ba(0x7fd)]});}}else _0x2d12f4[_0x3985ba(0x1980)]({'title':_0x4cb614['status']?_0x3985ba(0x262a)+_0x4cb614[_0x3985ba(0x107b)]+_0x3985ba(0x1315)+_0x4cb614['statusText']:'api.chatQueue.delete','msg':_0x4cb614[_0x3985ba(0x524)]?JSON[_0x3985ba(0x10bb)](_0x4cb614[_0x3985ba(0x524)][_0x3985ba(0x7fd)]):_0x4cb614['message']||_0x4cb614['toString']()});});},function(){});}function _0x4068db(_0x224f2d){return _0x224f2d===null?undefined:new Date(_0x224f2d);}function _0x1dbd61(_0xfa7c29){const _0x2f34a5=_0x357099;_0x29a677[_0x2f34a5(0x2458)](_0xfa7c29);}}const _0x2c1b81=_0x5841c4;;_0x4c4ccc[_0x313a4d(0x11c2)]=[_0x313a4d(0x10e8),'$q','toasty',_0x313a4d(0x247f),'chatQueue',_0x313a4d(0x380),'realtime','$translate','Auth','crudPermissions'];function _0x4c4ccc(_0x45c446,_0x4afc6b,_0x2462c0,_0x164f7c,_0x253153,_0x502498,_0x268ba5,_0x185c2c,_0x598811,_0x1dec8d){const _0x5e841d=_0x313a4d,_0x153112=this;_0x153112[_0x5e841d(0x2321)]=_0x598811[_0x5e841d(0xb12)](),_0x153112['chatQueue']=_0x253153,_0x153112['crudPermissions']=_0x1dec8d,_0x153112['realtime']=_0x268ba5,_0x153112[_0x5e841d(0x1fd6)]=[],_0x153112[_0x5e841d(0xc4e)]=[],_0x153112[_0x5e841d(0x1ecf)]=[],_0x153112[_0x5e841d(0x2e8)]=[],_0x153112[_0x5e841d(0xa65)]=[],_0x153112[_0x5e841d(0x132)]=![],_0x153112[_0x5e841d(0x3d4)]=_0x409744,_0x153112[_0x5e841d(0x14c2)]=_0xacb306,_0x153112['closeDialog']=_0x11fad1,_0x153112['dualMultiselectOptions']={'readOnly':!_0x153112[_0x5e841d(0x2514)]['canEdit'],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':'name','line1':_0x5e841d(0x286a),'line2':[_0x5e841d(0x19eb),_0x5e841d(0x113f)],'line3':'','labelAll':_0x185c2c[_0x5e841d(0xde)](_0x5e841d(0x2050)),'labelSelected':_0x185c2c[_0x5e841d(0xde)](_0x5e841d(0xf73)),'transferCallback':function(){const _0x4125ac=_0x5e841d,_0x1ea80c=_0x3f65c0()[_0x4125ac(0x1883)](_0x153112['startingSelectedItems'],_0x153112[_0x4125ac(0x1ecf)],'id');_0x153112[_0x4125ac(0x132)]=_0x3f65c0()[_0x4125ac(0x2635)](_0x1ea80c)?![]:!![];}};function _0x409744(){const _0xbb3d1c=_0x5e841d;return _0x598811[_0xbb3d1c(0x23e0)](_0xbb3d1c(0x174b))?_0x377ffc()[_0xbb3d1c(0x129e)](function(_0x429000){const _0x22ef33=_0xbb3d1c;_0x2462c0[_0x22ef33(0x1980)]({'title':_0x429000[_0x22ef33(0x107b)]?_0x22ef33(0x262a)+_0x429000[_0x22ef33(0x107b)]+_0x22ef33(0x1315)+_0x429000[_0x22ef33(0x167f)]:_0x22ef33(0x557),'msg':_0x429000['status']?JSON[_0x22ef33(0x10bb)](_0x429000[_0x22ef33(0x524)]):_0x429000[_0x22ef33(0xd5f)]()});}):_0x5210a1()[_0xbb3d1c(0x146b)](function(_0x4ea7f4){const _0x18efaf=_0xbb3d1c;return _0x153112[_0x18efaf(0x2146)]=_0x4ea7f4,_0x377ffc();})['catch'](function(_0x109a18){const _0x172cfd=_0xbb3d1c;_0x2462c0[_0x172cfd(0x1980)]({'title':_0x109a18['status']?_0x172cfd(0x262a)+_0x109a18[_0x172cfd(0x107b)]+_0x172cfd(0x1315)+_0x109a18[_0x172cfd(0x167f)]:'SYSTEM:GET_AGENTS','msg':_0x109a18['status']?JSON[_0x172cfd(0x10bb)](_0x109a18[_0x172cfd(0x524)]):_0x109a18[_0x172cfd(0xd5f)]()});});}function _0x5210a1(){return _0x4afc6b(function(_0x43545c,_0x2cc8db){const _0x5ce7d1=a0_0x3bb9;_0x164f7c[_0x5ce7d1(0x1366)][_0x5ce7d1(0x16b4)]({'userProfileId':_0x153112[_0x5ce7d1(0x2321)][_0x5ce7d1(0x209a)],'name':_0x5ce7d1(0xca8)})['$promise'][_0x5ce7d1(0x146b)](function(_0x3fb39b){const _0x57a433=_0x5ce7d1,_0x2e574d=_0x3fb39b&&_0x3fb39b[_0x57a433(0x19c7)]?_0x3fb39b[_0x57a433(0x19c7)][0x0]:null;_0x43545c(_0x2e574d);})['catch'](function(_0x5ad44f){_0x2cc8db(_0x5ad44f);});});}function _0x377ffc(){return _0x4afc6b(function(_0x15e0a5,_0x52a79c){const _0x44724c=a0_0x3bb9;return _0x3b4681()['then'](function(_0x94c477){const _0x31fd05=a0_0x3bb9;return _0x153112[_0x31fd05(0x1fd6)]=_0x94c477[_0x31fd05(0x19c7)]?_0x94c477['rows']:[],_0x598811[_0x31fd05(0x23e0)](_0x31fd05(0x174b))?_0x94c477:_0x153112[_0x31fd05(0x2146)]?_0x153112[_0x31fd05(0x2146)][_0x31fd05(0x11d2)]?_0x94c477:_0x558d58():null;})[_0x44724c(0x146b)](function(_0x1cf648){const _0x3ae4b7=_0x44724c,_0x535926=_0x1cf648&&_0x1cf648[_0x3ae4b7(0x19c7)]?_0x1cf648[_0x3ae4b7(0x19c7)]:[];return _0x153112['allowedItems']=_0x3f65c0()[_0x3ae4b7(0x205)](_0x535926,function(_0x202e95){const _0x35b5b1=_0x3ae4b7;return _0x3f65c0()[_0x35b5b1(0xc84)](_0x153112[_0x35b5b1(0x1fd6)],{'id':_0x598811['hasRole'](_0x35b5b1(0x174b))||_0x153112[_0x35b5b1(0x2146)][_0x35b5b1(0x11d2)]?_0x202e95['id']:_0x202e95['resourceId']});}),_0x153112[_0x3ae4b7(0x2e8)]=angular[_0x3ae4b7(0x235a)](_0x153112[_0x3ae4b7(0xc4e)]),_0x153112[_0x3ae4b7(0x1fd6)][_0x3ae4b7(0x1df5)](function(_0x54e0bf){const _0x550db9=_0x3ae4b7,_0xfc7d2=_0x3f65c0()[_0x550db9(0xc84)](_0x153112[_0x550db9(0xc4e)],{'id':_0x54e0bf['id']});_0x598811['hasRole']('admin')?_0x54e0bf[_0x550db9(0x146f)]=!![]:_0x54e0bf['isValid']=typeof _0xfc7d2!==_0x550db9(0x2274)?!![]:![];}),_0x372654();})[_0x44724c(0x146b)](function(_0x1c10e7){const _0x513f65=_0x44724c,_0x16fa2e=_0x1c10e7&&_0x1c10e7['rows']?_0x1c10e7[_0x513f65(0x19c7)]:[];_0x153112[_0x513f65(0x1ecf)]=_0x3f65c0()[_0x513f65(0x205)](_0x16fa2e,function(_0x8e2265){const _0x48898f=_0x513f65,_0x2d9788=_0x3f65c0()[_0x48898f(0xc84)](_0x153112[_0x48898f(0x1fd6)],{'id':_0x8e2265['id']});return _0x2d9788['penalty']=_0x8e2265[_0x48898f(0x1070)]?_0x48898f(0x2505)+_0x8e2265[_0x48898f(0x1070)][_0x48898f(0x188d)]:'',_0x2d9788[_0x48898f(0x113f)]=typeof _0x8e2265[_0x48898f(0x113f)]!==_0x48898f(0x2274)?'<'+_0x8e2265[_0x48898f(0x113f)]+'>':'',_0x2d9788;}),_0x153112[_0x513f65(0xa65)]=angular[_0x513f65(0x235a)](_0x153112[_0x513f65(0x1ecf)]),_0x153112[_0x513f65(0x1f8a)][_0x513f65(0x1ecf)]=_0x153112[_0x513f65(0x1ecf)],_0x153112[_0x513f65(0x1f8a)][_0x513f65(0x1fd6)]=_0x3f65c0()['differenceBy'](_0x153112[_0x513f65(0xc4e)],_0x153112[_0x513f65(0x1f8a)]['selectedItems'],'id'),_0x15e0a5();})[_0x44724c(0x129e)](function(_0x1b9bef){_0x52a79c(_0x1b9bef);});});}function _0x558d58(){return _0x4afc6b(function(_0xe92f2c,_0x10d925){const _0x4b2148=a0_0x3bb9;return _0x164f7c[_0x4b2148(0xdcc)][_0x4b2148(0x16b4)]({'sectionId':_0x153112[_0x4b2148(0x2146)]['id'],'nolimit':!![]})[_0x4b2148(0x2945)][_0x4b2148(0x146b)](function(_0x3af0a7){_0xe92f2c(_0x3af0a7);})[_0x4b2148(0x129e)](function(_0x3d16ad){_0x10d925(_0x3d16ad);});});}function _0x372654(){return _0x4afc6b(function(_0x3955e2,_0x3abeaa){const _0x1ef345=a0_0x3bb9;return _0x164f7c[_0x1ef345(0x16f8)]['getAgents']({'id':_0x153112[_0x1ef345(0x16f8)]['id'],'fields':_0x1ef345(0x1569),'nolimit':!![],'role':'agent'})[_0x1ef345(0x2945)][_0x1ef345(0x146b)](function(_0x1abb57){_0x3955e2(_0x1abb57);})[_0x1ef345(0x129e)](function(_0x250a0f){_0x3abeaa(_0x250a0f);});});}function _0x3b4681(){return _0x4afc6b(function(_0x182b8c,_0x52687a){const _0x5a1317=a0_0x3bb9;return _0x164f7c[_0x5a1317(0xe7b)][_0x5a1317(0x16b4)]({'fields':_0x5a1317(0x1569),'nolimit':!![],'role':'agent'})[_0x5a1317(0x2945)][_0x5a1317(0x146b)](function(_0x40a77b){_0x182b8c(_0x40a77b);})[_0x5a1317(0x129e)](function(_0x560485){_0x52687a(_0x560485);});});}function _0x269236(_0xa1f89e){return _0x4afc6b(function(_0x1290ca,_0x47e8be){const _0x19c6db=a0_0x3bb9;_0x3f65c0()['isEmpty'](_0xa1f89e)?_0x1290ca():_0x164f7c['chatQueue'][_0x19c6db(0x135e)]({'id':_0x153112[_0x19c6db(0x16f8)]['id'],'ids':_0x3f65c0()['map'](_0xa1f89e,'id')})[_0x19c6db(0x2945)][_0x19c6db(0x146b)](function(){_0x1290ca();})['catch'](function(_0x3c6bac){_0x47e8be(_0x3c6bac);});});}function _0x1aaedb(_0x3c77fe){return _0x4afc6b(function(_0x243694,_0x14a721){const _0x17519a=a0_0x3bb9;_0x3f65c0()[_0x17519a(0x2635)](_0x3c77fe)?_0x243694():_0x164f7c[_0x17519a(0x16f8)][_0x17519a(0x1f53)]({'id':_0x153112[_0x17519a(0x16f8)]['id'],'ids':_0x3f65c0()['map'](_0x3c77fe,'id')})[_0x17519a(0x2945)][_0x17519a(0x146b)](function(){_0x243694();})[_0x17519a(0x129e)](function(_0x733e3a){_0x14a721(_0x733e3a);});});}function _0xacb306(){const _0x408335=_0x5e841d,_0x3f3021=_0x3f65c0()[_0x408335(0x2796)](_0x153112[_0x408335(0xa65)],_0x153112[_0x408335(0x1ecf)],'id'),_0x112fb4=_0x3f65c0()[_0x408335(0x2796)](_0x153112['selectedItems'],_0x153112[_0x408335(0xa65)],'id');return _0x1aaedb(_0x3f3021)[_0x408335(0x146b)](function(){return _0x269236(_0x112fb4);})['then'](function(){const _0x177d42=_0x408335;_0x153112[_0x177d42(0x132)]=![],_0x153112['startingAllowedItems']=angular[_0x177d42(0x235a)](_0x153112['allowedItems']),_0x153112[_0x177d42(0xa65)]=angular[_0x177d42(0x235a)](_0x153112['selectedItems']),_0x2462c0[_0x177d42(0x1c75)]({'title':'SUCCESS','msg':_0x177d42(0x26be)});})['catch'](function(_0x3cead9){const _0x308d6a=_0x408335;_0x2462c0[_0x308d6a(0x1980)]({'title':_0x3cead9['status']?_0x308d6a(0x262a)+_0x3cead9[_0x308d6a(0x107b)]+_0x308d6a(0x1315)+_0x3cead9[_0x308d6a(0x167f)]:'SYSTEM:LISTS_ASSOCIATION','msg':_0x3cead9[_0x308d6a(0x107b)]?JSON[_0x308d6a(0x10bb)](_0x3cead9['data']):_0x3cead9['toString']()});});}function _0x11fad1(){const _0x4f27db=_0x5e841d;_0x45c446[_0x4f27db(0x2458)]();}}const _0x1f34f3=_0x4c4ccc;;_0x5e8b2b['$inject']=[_0x313a4d(0x10e8),'$q','toasty','api',_0x313a4d(0x16f8),_0x313a4d(0x214b),_0x313a4d(0xa87),_0x313a4d(0x2514)];function _0x5e8b2b(_0x1aca8e,_0x2240fc,_0x371b49,_0x1c1a3d,_0x382daf,_0xdad31,_0x585d09,_0x4fb6fc){const _0x5535b4=_0x313a4d,_0x527676=this;_0x527676['currentUser']=_0x585d09[_0x5535b4(0xb12)](),_0x527676[_0x5535b4(0x16f8)]=_0x382daf,_0x527676[_0x5535b4(0x2514)]=_0x4fb6fc,_0x527676[_0x5535b4(0x1fd6)]=[],_0x527676[_0x5535b4(0xc4e)]=[],_0x527676[_0x5535b4(0x1ecf)]=[],_0x527676[_0x5535b4(0x2e8)]=[],_0x527676[_0x5535b4(0xa65)]=[],_0x527676[_0x5535b4(0x132)]=![],_0x527676[_0x5535b4(0x1f8a)]={'readOnly':!_0x527676[_0x5535b4(0x2514)][_0x5535b4(0x15f4)],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':'name','line1':'name','line2':'','line3':'','labelAll':_0xdad31[_0x5535b4(0xde)](_0x5535b4(0x218d)),'labelSelected':_0xdad31[_0x5535b4(0xde)](_0x5535b4(0x1ae7)),'transferCallback':function(){const _0x20edac=_0x5535b4,_0x43ac15=_0x3f65c0()[_0x20edac(0x1883)](_0x527676[_0x20edac(0xa65)],_0x527676[_0x20edac(0x1ecf)],'id');_0x527676['pendingChanges']=_0x3f65c0()['isEmpty'](_0x43ac15)?![]:!![];}},_0x527676['onInit']=_0x3e4894,_0x527676[_0x5535b4(0x215f)]=_0x31e36c,_0x527676[_0x5535b4(0x13f3)]=_0x16eb6f;function _0x3e4894(){const _0x21c786=_0x5535b4;return _0x585d09['hasRole'](_0x21c786(0x174b))?_0x4baf3e()[_0x21c786(0x129e)](function(_0x1ca90b){const _0x552dd6=_0x21c786;_0x371b49[_0x552dd6(0x1980)]({'title':_0x1ca90b[_0x552dd6(0x107b)]?_0x552dd6(0x262a)+_0x1ca90b[_0x552dd6(0x107b)]+_0x552dd6(0x1315)+_0x1ca90b[_0x552dd6(0x167f)]:'SYSTEM:GET_TEAMS','msg':_0x1ca90b[_0x552dd6(0x107b)]?JSON[_0x552dd6(0x10bb)](_0x1ca90b[_0x552dd6(0x524)]):_0x1ca90b[_0x552dd6(0xd5f)]()});}):_0x1112b9()['then'](function(_0x16076a){const _0x1466d5=_0x21c786;return _0x527676[_0x1466d5(0x2146)]=_0x16076a,_0x4baf3e();})[_0x21c786(0x129e)](function(_0x205842){const _0x1083ab=_0x21c786;_0x371b49[_0x1083ab(0x1980)]({'title':_0x205842[_0x1083ab(0x107b)]?'API:'+_0x205842[_0x1083ab(0x107b)]+'\x20-\x20'+_0x205842['statusText']:_0x1083ab(0x5a5),'msg':_0x205842[_0x1083ab(0x107b)]?JSON[_0x1083ab(0x10bb)](_0x205842[_0x1083ab(0x524)]):_0x205842[_0x1083ab(0xd5f)]()});});}function _0x1112b9(){return _0x2240fc(function(_0x5e092f,_0x5e3e37){const _0x169e1d=a0_0x3bb9;_0x1c1a3d[_0x169e1d(0x1366)][_0x169e1d(0x16b4)]({'userProfileId':_0x527676[_0x169e1d(0x2321)][_0x169e1d(0x209a)],'name':_0x169e1d(0x21ae)})['$promise'][_0x169e1d(0x146b)](function(_0x321d7d){const _0x1308e6=_0x169e1d,_0x68a1f3=_0x321d7d&&_0x321d7d[_0x1308e6(0x19c7)]?_0x321d7d['rows'][0x0]:null;_0x5e092f(_0x68a1f3);})[_0x169e1d(0x129e)](function(_0x14dc49){_0x5e3e37(_0x14dc49);});});}function _0x4baf3e(){return _0x2240fc(function(_0x5a55ff,_0x3e8be0){const _0x5269ab=a0_0x3bb9;return _0x3b5c61()[_0x5269ab(0x146b)](function(_0x1dde66){const _0x5100f8=_0x5269ab;return _0x527676[_0x5100f8(0x1fd6)]=_0x1dde66[_0x5100f8(0x19c7)]?_0x1dde66[_0x5100f8(0x19c7)]:[],_0x585d09[_0x5100f8(0x23e0)]('admin')?_0x1dde66:_0x527676[_0x5100f8(0x2146)]?_0x527676[_0x5100f8(0x2146)][_0x5100f8(0x11d2)]?_0x1dde66:_0x1083ee():null;})[_0x5269ab(0x146b)](function(_0x45e90c){const _0x54f453=_0x5269ab,_0x281908=_0x45e90c&&_0x45e90c['rows']?_0x45e90c[_0x54f453(0x19c7)]:[];return _0x527676['allowedItems']=_0x3f65c0()[_0x54f453(0x205)](_0x281908,function(_0x39f9f7){const _0x119c0e=_0x54f453;return _0x3f65c0()['find'](_0x527676[_0x119c0e(0x1fd6)],{'id':_0x585d09['hasRole'](_0x119c0e(0x174b))||_0x527676[_0x119c0e(0x2146)][_0x119c0e(0x11d2)]?_0x39f9f7['id']:_0x39f9f7['resourceId']});}),_0x527676[_0x54f453(0x1fd6)][_0x54f453(0x1df5)](function(_0x5ac955){const _0x2f98ba=_0x54f453,_0x2e4322=_0x3f65c0()[_0x2f98ba(0xc84)](_0x527676[_0x2f98ba(0xc4e)],{'id':_0x5ac955['id']});_0x585d09[_0x2f98ba(0x23e0)]('admin')?_0x5ac955[_0x2f98ba(0x146f)]=!![]:_0x5ac955[_0x2f98ba(0x146f)]=typeof _0x2e4322!==_0x2f98ba(0x2274)?!![]:![];}),_0x5a26b8();})[_0x5269ab(0x146b)](function(_0x3d7bdb){const _0x2edc70=_0x5269ab,_0x28250a=_0x3d7bdb&&_0x3d7bdb[_0x2edc70(0x19c7)]?_0x3d7bdb[_0x2edc70(0x19c7)]:[];_0x527676[_0x2edc70(0x1ecf)]=_0x3f65c0()[_0x2edc70(0x205)](_0x28250a,function(_0x41f364){const _0x32a873=_0x2edc70;return _0x3f65c0()[_0x32a873(0xc84)](_0x527676[_0x32a873(0x1fd6)],{'id':_0x41f364['id']});}),_0x527676[_0x2edc70(0xa65)]=angular[_0x2edc70(0x235a)](_0x527676['selectedItems']),_0x527676['dualMultiselectOptions'][_0x2edc70(0x1ecf)]=_0x527676[_0x2edc70(0x1ecf)],_0x527676[_0x2edc70(0x1f8a)][_0x2edc70(0x1fd6)]=_0x3f65c0()['differenceBy'](_0x527676[_0x2edc70(0xc4e)],_0x527676[_0x2edc70(0x1f8a)][_0x2edc70(0x1ecf)],'id'),_0x5a55ff();})[_0x5269ab(0x129e)](function(_0x2b37a1){_0x3e8be0(_0x2b37a1);});});}function _0x1083ee(){return _0x2240fc(function(_0x26e434,_0x2e6030){const _0x35b5ee=a0_0x3bb9;return _0x1c1a3d[_0x35b5ee(0xdcc)][_0x35b5ee(0x16b4)]({'sectionId':_0x527676[_0x35b5ee(0x2146)]['id'],'nolimit':!![]})[_0x35b5ee(0x2945)]['then'](function(_0x399cac){_0x26e434(_0x399cac);})[_0x35b5ee(0x129e)](function(_0x2f3e79){_0x2e6030(_0x2f3e79);});});}function _0x5a26b8(){return _0x2240fc(function(_0x3313b7,_0x259af2){const _0x297add=a0_0x3bb9;return _0x1c1a3d[_0x297add(0x16f8)][_0x297add(0x11d1)]({'id':_0x527676[_0x297add(0x16f8)]['id'],'fields':_0x297add(0x7a7),'nolimit':!![]})['$promise'][_0x297add(0x146b)](function(_0x378edc){_0x3313b7(_0x378edc);})[_0x297add(0x129e)](function(_0x576794){_0x259af2(_0x576794);});});}function _0x3b5c61(){return _0x2240fc(function(_0x4f45d3,_0x140c38){const _0xc55499=a0_0x3bb9;return _0x1c1a3d[_0xc55499(0x23f1)][_0xc55499(0x16b4)]({'fields':_0xc55499(0x7a7),'nolimit':!![]})['$promise'][_0xc55499(0x146b)](function(_0x3ce240){_0x4f45d3(_0x3ce240);})['catch'](function(_0x1017d5){_0x140c38(_0x1017d5);});});}function _0x2856e3(_0x3e07c4){return _0x2240fc(function(_0x469fba,_0x5768bd){const _0x34b6c4=a0_0x3bb9;_0x3f65c0()[_0x34b6c4(0x2635)](_0x3e07c4)?_0x469fba():_0x1c1a3d[_0x34b6c4(0x16f8)][_0x34b6c4(0x7a0)]({'id':_0x527676[_0x34b6c4(0x16f8)]['id'],'ids':_0x3f65c0()[_0x34b6c4(0x205)](_0x3e07c4,'id')})[_0x34b6c4(0x2945)][_0x34b6c4(0x146b)](function(){_0x469fba();})[_0x34b6c4(0x129e)](function(_0x492811){_0x5768bd(_0x492811);});});}function _0x42d5f7(_0x22bfa1){return _0x2240fc(function(_0x174104,_0x1b3b3d){const _0x1156cf=a0_0x3bb9;_0x3f65c0()[_0x1156cf(0x2635)](_0x22bfa1)?_0x174104():_0x1c1a3d['chatQueue'][_0x1156cf(0xfa4)]({'id':_0x527676[_0x1156cf(0x16f8)]['id'],'ids':_0x3f65c0()[_0x1156cf(0x205)](_0x22bfa1,'id')})[_0x1156cf(0x2945)][_0x1156cf(0x146b)](function(){_0x174104();})[_0x1156cf(0x129e)](function(_0x13b377){_0x1b3b3d(_0x13b377);});});}function _0x31e36c(){const _0x48683b=_0x5535b4,_0x1501c4=_0x3f65c0()['differenceBy'](_0x527676[_0x48683b(0xa65)],_0x527676[_0x48683b(0x1ecf)],'id'),_0x21cd31=_0x3f65c0()[_0x48683b(0x2796)](_0x527676[_0x48683b(0x1ecf)],_0x527676['startingSelectedItems'],'id');return _0x42d5f7(_0x1501c4)[_0x48683b(0x146b)](function(){return _0x2856e3(_0x21cd31);})[_0x48683b(0x146b)](function(){const _0x5427c5=_0x48683b;_0x527676[_0x5427c5(0x132)]=![],_0x527676[_0x5427c5(0x2e8)]=angular[_0x5427c5(0x235a)](_0x527676[_0x5427c5(0xc4e)]),_0x527676[_0x5427c5(0xa65)]=angular[_0x5427c5(0x235a)](_0x527676[_0x5427c5(0x1ecf)]),_0x371b49[_0x5427c5(0x1c75)]({'title':'SUCCESS','msg':_0x5427c5(0xf08)});})['catch'](function(_0x2cd6cc){const _0x3a23e4=_0x48683b;_0x371b49['error']({'title':_0x2cd6cc[_0x3a23e4(0x107b)]?_0x3a23e4(0x262a)+_0x2cd6cc['status']+_0x3a23e4(0x1315)+_0x2cd6cc[_0x3a23e4(0x167f)]:'SYSTEM:LISTS_ASSOCIATION','msg':_0x2cd6cc[_0x3a23e4(0x107b)]?JSON[_0x3a23e4(0x10bb)](_0x2cd6cc[_0x3a23e4(0x524)]):_0x2cd6cc[_0x3a23e4(0xd5f)]()});});}function _0x16eb6f(){_0x1aca8e['hide']();}}const _0x4730d1=_0x5e8b2b;;_0x5a73c9[_0x313a4d(0x11c2)]=[_0x313a4d(0x1862),_0x313a4d(0xd08),_0x313a4d(0x10e8),_0x313a4d(0x4d8),_0x313a4d(0x214b),_0x313a4d(0x2690),_0x313a4d(0x15b9),_0x313a4d(0x247f),_0x313a4d(0x1fe4),_0x313a4d(0xa87),'chatQueue',_0x313a4d(0x1366)];function _0x5a73c9(_0x3df7b6,_0xe9308a,_0x5a0a2f,_0x2daed2,_0x42dbb4,_0xa392f2,_0x3da334,_0x217597,_0x5ae7e4,_0x4b36ca,_0x3c94d9,_0x375ec3){const _0x1600b2=_0x313a4d,_0x522b07=this;_0x522b07[_0x1600b2(0x2321)]=_0x4b36ca[_0x1600b2(0xb12)](),_0x522b07[_0x1600b2(0x2690)]=_0xa392f2,_0x522b07[_0x1600b2(0x15b9)]=_0x3da334,_0x522b07[_0x1600b2(0x2251)]=_0x522b07[_0x1600b2(0x15b9)][_0x1600b2(0x976)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x522b07[_0x1600b2(0x1002)]=_0xe9308a[_0x1600b2(0x2414)]()+_0x1600b2(0xb0e)+_0xe9308a['host'](),_0x522b07[_0x1600b2(0x16f8)]=_0x3c94d9||_0x3df7b6[_0x1600b2(0x16a)][_0x1600b2(0x16f8)]||{},_0x522b07['userProfileSection']=_0x375ec3&&_0x375ec3[_0x1600b2(0x51c)]==0x1?_0x375ec3[_0x1600b2(0x19c7)][0x0]:null,_0x522b07[_0x1600b2(0x2514)]=_0x4b36ca['parseCrudPermissions'](_0x522b07[_0x1600b2(0x1366)]?_0x522b07[_0x1600b2(0x1366)]['crudPermissions']:null),_0x522b07[_0x1600b2(0x855)]={},_0x522b07['selectedTab']=_0x3df7b6[_0x1600b2(0x16a)][_0x1600b2(0x13a3)]||0x0,_0x522b07[_0x1600b2(0x244)]=_0x2a0271,_0x522b07['agentadddialog']=_0x2e18c2,_0x522b07[_0x1600b2(0x861)]=_0x5ae7e4['info'],_0x522b07[_0x1600b2(0x5fb)]=_0x5a531c,_0x522b07[_0x1600b2(0x28f2)]=_0x4fc370;function _0x2a0271(_0x4137ef,_0x4b1fd1){const _0x2bac7e=_0x1600b2;_0x5a0a2f[_0x2bac7e(0x2615)]({'controller':_0x2bac7e(0xaae),'controllerAs':'vm','templateUrl':_0x58aef2,'parent':angular[_0x2bac7e(0x1853)](_0x2daed2[_0x2bac7e(0x2586)]),'targetEvent':_0x4b1fd1,'clickOutsideToClose':!![],'locals':{'chatQueue':_0x4137ef,'chatQueues':_0x522b07[_0x2bac7e(0x380)]?_0x522b07['chatQueues'][_0x2bac7e(0x19c7)]:[],'crudPermissions':_0x522b07[_0x2bac7e(0x2514)]}});}function _0x2e18c2(_0x2109d3,_0xea7d88){const _0x361eba=_0x1600b2;_0x5a0a2f[_0x361eba(0x2615)]({'controller':_0x361eba(0xc47),'controllerAs':'vm','templateUrl':_0x53d1a0,'parent':angular[_0x361eba(0x1853)](_0x2daed2['body']),'targetEvent':_0xea7d88,'clickOutsideToClose':!![],'locals':{'chatQueue':_0x2109d3,'chatQueues':_0x522b07[_0x361eba(0x380)]?_0x522b07[_0x361eba(0x380)][_0x361eba(0x19c7)]:[],'crudPermissions':_0x522b07[_0x361eba(0x2514)],'realtime':![]}});}function _0x5a531c(){const _0x338da4=_0x1600b2;_0x3df7b6['go'](_0x338da4(0x1ce1),{},{'reload':_0x338da4(0x1ce1)});}function _0x4fc370(){const _0x51e399=_0x1600b2;_0x217597['chatQueue'][_0x51e399(0x18e1)]({'id':_0x522b07[_0x51e399(0x16f8)]['id']},_0x522b07['chatQueue'])[_0x51e399(0x2945)][_0x51e399(0x146b)](function(){const _0x3c9233=_0x51e399;_0x5ae7e4['success']({'title':_0x3c9233(0x2565),'msg':_0x522b07[_0x3c9233(0x16f8)]['name']?_0x522b07[_0x3c9233(0x16f8)][_0x3c9233(0x19eb)]+'\x20has\x20been\x20updated!':''});})['catch'](function(_0x28bee9){const _0x20ae4d=_0x51e399;_0x5ae7e4[_0x20ae4d(0x1980)]({'title':_0x28bee9[_0x20ae4d(0x107b)]?'API:'+_0x28bee9[_0x20ae4d(0x107b)]+'\x20-\x20'+_0x28bee9[_0x20ae4d(0x167f)]:_0x20ae4d(0x18ed),'msg':_0x28bee9[_0x20ae4d(0x524)]?JSON[_0x20ae4d(0x10bb)](_0x28bee9[_0x20ae4d(0x524)]):_0x28bee9['toString']()});});}}const _0x704b4f=_0x5a73c9;;const _0x15502c=_0x4acfac['p']+'src/js/modules/main/apps/chat/views/chatWebsites/edit/agentadd/agentadd.html/agentadd.html';;const _0x5519c5=_0x4acfac['p']+_0x313a4d(0x1064);;_0x38e4c6[_0x313a4d(0x11c2)]=['$scope',_0x313a4d(0x1aa9),_0x313a4d(0x1862),_0x313a4d(0x15fe),'$mdDialog','$document','$timeout',_0x313a4d(0x214b),_0x313a4d(0x2710),_0x313a4d(0x26b6),'userProfileSection',_0x313a4d(0x247f),'msUtils','toasty','Auth',_0x313a4d(0x2690),_0x313a4d(0x15b9)];function _0x38e4c6(_0xeb8362,_0x17992c,_0x3035c9,_0x545da2,_0x3020bc,_0x3f3557,_0x82be1c,_0x203d99,_0x541384,_0x5d461c,_0x2b4812,_0x25fc4d,_0x5d3067,_0x4c5fd8,_0x1a51dc,_0x54165b,_0x1bcfbb){const _0x2f9d72=_0x313a4d,_0x113779=this;_0x113779['license']=_0x54165b,_0x113779[_0x2f9d72(0x15b9)]=_0x1bcfbb,_0x113779[_0x2f9d72(0x2321)]=_0x1a51dc['getCurrentUser'](),_0x113779[_0x2f9d72(0x2710)]=_0x541384||{'count':0x0,'rows':[]},_0x113779['userProfile']=_0x5d461c,_0x113779[_0x2f9d72(0x1366)]=_0x2b4812&&_0x2b4812[_0x2f9d72(0x51c)]==0x1?_0x2b4812['rows'][0x0]:null,_0x113779[_0x2f9d72(0x2514)]=_0x1a51dc['parseCrudPermissions'](_0x113779['userProfileSection']?_0x113779[_0x2f9d72(0x1366)]['crudPermissions']:null),_0x113779[_0x2f9d72(0x768)]='chatWebsites',_0x113779[_0x2f9d72(0x216a)]='',_0x113779['listOrderAsc']=null,_0x113779[_0x2f9d72(0x1f19)]=[],_0x113779[_0x2f9d72(0x1a56)]={'fields':_0x2f9d72(0x1c12),'sort':_0x2f9d72(0x12f2),'limit':0xa,'page':0x1},_0x113779[_0x2f9d72(0x1892)]=_0x3f65c0()[_0x2f9d72(0x194)]([{'option':_0x2f9d72(0x568),'value':_0x2f9d72(0x6a5)},{'option':_0x2f9d72(0x48b),'value':_0x2f9d72(0x1c1b)},{'option':_0x2f9d72(0x2144),'value':'\x27agent_fullname\x27'}],function(_0x3682a7){const _0x570dfe=_0x2f9d72;return _0x3f65c0()[_0x570dfe(0x5f4)](_0x3682a7[_0x570dfe(0x175d)],new RegExp('\x27','g'),'');}),_0x113779[_0x2f9d72(0x1135)]=_0x3f65c0()[_0x2f9d72(0x194)]([{'option':_0x2f9d72(0x572),'value':_0x2f9d72(0x12be)},{'option':_0x2f9d72(0x191b),'value':_0x2f9d72(0x17df)}],function(_0x2ad21f){const _0x369ee4=_0x2f9d72;return _0x3f65c0()['replace'](_0x2ad21f[_0x369ee4(0x175d)],new RegExp('\x27','g'),'');}),_0x113779[_0x2f9d72(0x7c3)]=_0x3f65c0()[_0x2f9d72(0x194)]([{'option':_0x2f9d72(0x1f08),'value':_0x2f9d72(0xbb2)},{'option':'right','value':_0x2f9d72(0x1d45)},{'option':_0x2f9d72(0x25f5),'value':_0x2f9d72(0x294b)}],function(_0x16d206){const _0xef09ad=_0x2f9d72;return _0x3f65c0()[_0xef09ad(0x5f4)](_0x16d206[_0xef09ad(0x175d)],new RegExp('\x27','g'),'');}),_0x113779[_0x2f9d72(0x1fd1)]=_0x3f65c0()[_0x2f9d72(0x194)]([{'option':'alternate','value':'\x27alternate\x27'},{'option':_0x2f9d72(0x2474),'value':_0x2f9d72(0x1ed)}],function(_0x77ce6d){const _0x28cc1c=_0x2f9d72;return _0x3f65c0()[_0x28cc1c(0x5f4)](_0x77ce6d[_0x28cc1c(0x175d)],new RegExp('\x27','g'),'');}),_0x113779[_0x2f9d72(0x1a57)]=_0x3f65c0()[_0x2f9d72(0x194)]([{'option':_0x2f9d72(0x1f39),'value':_0x2f9d72(0xeb2)},{'option':'Thumb','value':_0x2f9d72(0x4c1)}],function(_0x53c1c2){const _0x13b69e=_0x2f9d72;return _0x3f65c0()['replace'](_0x53c1c2[_0x13b69e(0x175d)],new RegExp('\x27','g'),'');}),_0x113779[_0x2f9d72(0x23f9)]=_0x69e692,_0x113779[_0x2f9d72(0xbce)]=_0x4accb1,_0x113779[_0x2f9d72(0x165)]=_0x22728d,_0x113779[_0x2f9d72(0x1027)]=_0x34ed9d,_0x113779['deleteconfirm']=_0x168ac1,_0x113779[_0x2f9d72(0x1c75)]=_0x16ef14,_0x113779['getChatWebsites']=_0x3ad99f,_0x113779[_0x2f9d72(0xa8a)]=_0x9bcca,_0x113779[_0x2f9d72(0x1219)]=_0xa4c91a,_0x113779[_0x2f9d72(0xea6)]=_0x146933,_0x113779[_0x2f9d72(0x257e)]=_0x3ca89b,_0x113779[_0x2f9d72(0x1f8b)]=_0x143156,_0x113779[_0x2f9d72(0x18e9)]=_0x33b954,_0x1a51dc[_0x2f9d72(0x23e0)](_0x2f9d72(0x174b))?_0x25fc4d[_0x2f9d72(0xf03)]['get']({'fields':_0x2f9d72(0x7a7),'sort':_0x2f9d72(0x19eb)})[_0x2f9d72(0x2945)][_0x2f9d72(0x146b)](function(_0x43c38e){const _0x46e5ad=_0x2f9d72;_0x113779[_0x46e5ad(0x1324)]=_0x43c38e['rows']||[];})[_0x2f9d72(0x129e)](function(_0x331dde){const _0x1d8d3b=_0x2f9d72;_0x4c5fd8['error']({'title':_0x331dde['status']?'API:'+_0x331dde['status']+_0x1d8d3b(0x1315)+_0x331dde[_0x1d8d3b(0x167f)]:_0x1d8d3b(0x11b3),'msg':_0x331dde['data']?JSON[_0x1d8d3b(0x10bb)](_0x331dde[_0x1d8d3b(0x524)]):_0x331dde[_0x1d8d3b(0xd5f)]()});}):_0x25fc4d[_0x2f9d72(0xf03)][_0x2f9d72(0x16b4)]({'fields':'id,name','sort':_0x2f9d72(0x19eb)})[_0x2f9d72(0x2945)]['then'](function(_0x2da21e){const _0x3d9c1e=_0x2f9d72;_0x113779['lists']=_0x2da21e[_0x3d9c1e(0x19c7)]||[];})[_0x2f9d72(0x146b)](function(){const _0x180ce7=_0x2f9d72;return _0x25fc4d[_0x180ce7(0x1366)][_0x180ce7(0x16b4)]({'userProfileId':_0x113779[_0x180ce7(0x2321)][_0x180ce7(0x209a)],'sectionId':0x12d})[_0x180ce7(0x2945)];})[_0x2f9d72(0x146b)](function(_0x40c267){const _0x4bb00c=_0x2f9d72,_0x4eb572=_0x40c267&&_0x40c267['rows']?_0x40c267['rows'][0x0]:null;if(!_0x4eb572){const _0x27c681=[];let _0x22818c=null;_0x113779[_0x4bb00c(0x189e)]&&(_0x22818c=_0x3f65c0()[_0x4bb00c(0xc84)](_0x113779[_0x4bb00c(0x1324)],{'id':Number(_0x113779[_0x4bb00c(0x189e)][_0x4bb00c(0xb7c)])}));for(let _0x560b11=0x0;_0x560b11<_0x113779[_0x4bb00c(0x1324)][_0x4bb00c(0x402)];_0x560b11++){_0x22818c&&_0x113779['lists'][_0x560b11]['id']===_0x22818c['id']&&(_0x113779[_0x4bb00c(0x1324)][_0x560b11][_0x4bb00c(0x8ff)]=![],_0x27c681[_0x4bb00c(0x1f47)](_0x113779[_0x4bb00c(0x1324)][_0x560b11]));}_0x113779[_0x4bb00c(0x1324)]=_0x27c681;}else{if(!_0x4eb572[_0x4bb00c(0x11d2)])return _0x25fc4d[_0x4bb00c(0xdcc)][_0x4bb00c(0x16b4)]({'sectionId':_0x4eb572['id']})[_0x4bb00c(0x2945)]['then'](function(_0x288a4a){const _0x3613b9=_0x4bb00c,_0x4247ff=_0x3f65c0()[_0x3613b9(0x205)](_0x288a4a[_0x3613b9(0x19c7)],function(_0x13385d){const _0x20001f=_0x3613b9;return _0x3f65c0()[_0x20001f(0xc84)](_0x113779[_0x20001f(0x1324)],{'id':_0x13385d[_0x20001f(0x18b8)]});});let _0x2d2015=null;_0x113779['chatWebsite']&&(_0x2d2015=_0x3f65c0()[_0x3613b9(0xc84)](_0x113779[_0x3613b9(0x1324)],{'id':Number(_0x113779[_0x3613b9(0x189e)][_0x3613b9(0xb7c)])}));if(_0x2d2015&&!_0x3f65c0()['some'](_0x4247ff,['id',_0x2d2015['id']])){const _0x408e03=_0x3f65c0()[_0x3613b9(0xc84)](_0x113779[_0x3613b9(0x1324)],{'id':_0x2d2015['id']});_0x408e03[_0x3613b9(0x8ff)]=![],_0x4247ff[_0x3613b9(0x1f47)](_0x408e03);}_0x113779[_0x3613b9(0x1324)]=_0x4247ff;});}})[_0x2f9d72(0x129e)](function(_0x109d88){const _0x23b2b=_0x2f9d72;_0x4c5fd8[_0x23b2b(0x1980)]({'title':_0x109d88[_0x23b2b(0x107b)]?_0x23b2b(0x262a)+_0x109d88['status']+'\x20-\x20'+_0x109d88[_0x23b2b(0x167f)]:_0x23b2b(0x1a2f),'msg':_0x109d88[_0x23b2b(0x524)]?JSON[_0x23b2b(0x10bb)](_0x109d88[_0x23b2b(0x524)]):_0x109d88[_0x23b2b(0xd5f)]()});}),_0x1a51dc[_0x2f9d72(0x23e0)](_0x2f9d72(0x174b))?_0x25fc4d[_0x2f9d72(0x2765)][_0x2f9d72(0x16b4)]({'fields':_0x2f9d72(0x7a7),'sort':_0x2f9d72(0x19eb),'IntervalId':_0x2f9d72(0x203c)})[_0x2f9d72(0x2945)][_0x2f9d72(0x146b)](function(_0x2e0667){const _0x4bf3f5=_0x2f9d72;_0x113779[_0x4bf3f5(0x2765)]=_0x2e0667[_0x4bf3f5(0x19c7)]||[];})['catch'](function(_0x43c9ce){const _0x5237d2=_0x2f9d72;_0x4c5fd8[_0x5237d2(0x1980)]({'title':_0x43c9ce[_0x5237d2(0x107b)]?_0x5237d2(0x262a)+_0x43c9ce[_0x5237d2(0x107b)]+_0x5237d2(0x1315)+_0x43c9ce[_0x5237d2(0x167f)]:_0x5237d2(0x12c5),'msg':_0x43c9ce[_0x5237d2(0x524)]?JSON[_0x5237d2(0x10bb)](_0x43c9ce[_0x5237d2(0x524)]):_0x43c9ce[_0x5237d2(0xd5f)]()});}):_0x25fc4d['interval'][_0x2f9d72(0x16b4)]({'fields':'id,name','sort':_0x2f9d72(0x19eb),'IntervalId':_0x2f9d72(0x203c)})[_0x2f9d72(0x2945)][_0x2f9d72(0x146b)](function(_0x485c9b){const _0x310ab2=_0x2f9d72;_0x113779[_0x310ab2(0x2765)]=_0x485c9b[_0x310ab2(0x19c7)]||[];})['then'](function(){const _0x5a6814=_0x2f9d72;return _0x25fc4d[_0x5a6814(0x1366)][_0x5a6814(0x16b4)]({'userProfileId':_0x113779[_0x5a6814(0x2321)][_0x5a6814(0x209a)],'sectionId':0x3ec})[_0x5a6814(0x2945)];})[_0x2f9d72(0x146b)](function(_0x570c9a){const _0x1dea7d=_0x2f9d72,_0x26804=_0x570c9a&&_0x570c9a[_0x1dea7d(0x19c7)]?_0x570c9a['rows'][0x0]:null;if(!_0x26804){const _0x196252=[];let _0x5cc498=null;_0x113779[_0x1dea7d(0x189e)]&&(_0x5cc498=_0x3f65c0()['find'](_0x113779[_0x1dea7d(0x2765)],{'id':Number(_0x113779[_0x1dea7d(0x189e)][_0x1dea7d(0x1ff2)])}));for(let _0x58a456=0x0;_0x58a456<_0x113779[_0x1dea7d(0x2765)][_0x1dea7d(0x402)];_0x58a456++){_0x5cc498&&_0x113779['interval'][_0x58a456]['id']===_0x5cc498['id']&&(_0x113779[_0x1dea7d(0x2765)][_0x58a456][_0x1dea7d(0x8ff)]=![],_0x196252[_0x1dea7d(0x1f47)](_0x113779[_0x1dea7d(0x2765)][_0x58a456]));}_0x113779['interval']=_0x196252;}else{if(!_0x26804[_0x1dea7d(0x11d2)])return _0x25fc4d[_0x1dea7d(0xdcc)][_0x1dea7d(0x16b4)]({'sectionId':_0x26804['id']})[_0x1dea7d(0x2945)][_0x1dea7d(0x146b)](function(_0x51de08){const _0x5c8519=_0x1dea7d,_0x2b0681=_0x3f65c0()[_0x5c8519(0x205)](_0x51de08[_0x5c8519(0x19c7)],function(_0x46c380){const _0x28799a=_0x5c8519;return _0x3f65c0()[_0x28799a(0xc84)](_0x113779[_0x28799a(0x2765)],{'id':_0x46c380[_0x28799a(0x18b8)]});});let _0x283cc8=null;_0x113779[_0x5c8519(0x189e)]&&(_0x283cc8=_0x3f65c0()[_0x5c8519(0xc84)](_0x113779[_0x5c8519(0x2765)],{'id':Number(_0x113779[_0x5c8519(0x189e)]['IntervalId'])}));if(_0x283cc8&&!_0x3f65c0()[_0x5c8519(0x1360)](_0x2b0681,['id',_0x283cc8['id']])){const _0x308a7f=_0x3f65c0()['find'](_0x113779[_0x5c8519(0x2765)],{'id':_0x283cc8['id']});_0x308a7f[_0x5c8519(0x8ff)]=![],_0x2b0681['push'](_0x308a7f);}_0x113779[_0x5c8519(0x2765)]=_0x2b0681;});}})['catch'](function(_0x5d01b5){const _0x5d9ce2=_0x2f9d72;_0x4c5fd8[_0x5d9ce2(0x1980)]({'title':_0x5d01b5['status']?_0x5d9ce2(0x262a)+_0x5d01b5['status']+_0x5d9ce2(0x1315)+_0x5d01b5[_0x5d9ce2(0x167f)]:_0x5d9ce2(0x8b6),'msg':_0x5d01b5[_0x5d9ce2(0x524)]?JSON['stringify'](_0x5d01b5[_0x5d9ce2(0x524)]):_0x5d01b5[_0x5d9ce2(0xd5f)]()});});function _0x69e692(_0x1fc5d6){const _0x7329ce=_0x2f9d72;_0x3035c9['go'](_0x7329ce(0x6f1),{'id':_0x1fc5d6['id'],'chatWebsite':_0x1fc5d6,'crudPermissions':_0x113779['crudPermissions']});}function _0x4accb1(_0x548cbf){const _0x1c1d4d=_0x2f9d72;_0x3035c9['go'](_0x1c1d4d(0x6f1),{'id':_0x548cbf['id'],'tab':0xa});}function _0x22728d(_0x556dbd){_0x3035c9['go']('app.chat.chatWebsites.edit',{'id':_0x556dbd['id'],'tab':0xb});}function _0x34ed9d(_0x30581b,_0x4221da){const _0x285400=_0x2f9d72;_0x3020bc[_0x285400(0x2615)]({'controller':'ChatWebsiteagentaddController','controllerAs':'vm','templateUrl':_0x15502c,'parent':angular[_0x285400(0x1853)](_0x3f3557[_0x285400(0x2586)]),'targetEvent':_0x4221da,'clickOutsideToClose':!![],'locals':{'chatWebsite':_0x30581b,'chatWebsites':_0x113779[_0x285400(0x2710)]?_0x113779['chatWebsites']['rows']:[],'crudPermissions':_0x113779[_0x285400(0x2514)],'realtime':![]}});}function _0x168ac1(_0x4b7a15,_0x29168f){const _0x1b2904=_0x2f9d72,_0x3ff437=_0x3020bc[_0x1b2904(0x1e8a)]()[_0x1b2904(0x1189)](_0x1b2904(0xdb2)+_0x3f65c0()[_0x1b2904(0x20d1)](_0x1b2904(0x189e))+'?')[_0x1b2904(0x1cbe)](_0x1b2904(0x16d3)+(_0x4b7a15['name']||'chatWebsite')+_0x1b2904(0x252f)+'\x20will\x20be\x20deleted.')[_0x1b2904(0x4bd)](_0x1b2904(0x2019))[_0x1b2904(0x1f27)](_0x29168f)['ok']('OK')[_0x1b2904(0x6c3)]('CANCEL');_0x3020bc[_0x1b2904(0x2615)](_0x3ff437)[_0x1b2904(0x146b)](function(){_0xa4c91a(_0x4b7a15);},function(){const _0x1e815d=_0x1b2904;console[_0x1e815d(0x1a74)](_0x1e815d(0x39a));});}let _0x1a8514=!![],_0x3550ec=0x1;_0xeb8362['$watch'](_0x2f9d72(0x2669),function(_0x305237,_0x40fb2f){const _0x244a43=_0x2f9d72;_0x1a8514?_0x82be1c(function(){_0x1a8514=![];}):(!_0x40fb2f&&(_0x3550ec=_0x113779[_0x244a43(0x1a56)][_0x244a43(0x844)]),_0x305237!==_0x40fb2f&&(_0x113779[_0x244a43(0x1a56)][_0x244a43(0x844)]=0x1),!_0x305237&&(_0x113779[_0x244a43(0x1a56)]['page']=_0x3550ec),_0x113779[_0x244a43(0x3e5)]());});function _0x16ef14(_0x579f04){_0x113779['chatWebsites']=_0x579f04||{'count':0x0,'rows':[]};}function _0x3ad99f(){const _0x7c86be=_0x2f9d72;_0x113779['query']['offset']=(_0x113779[_0x7c86be(0x1a56)][_0x7c86be(0x844)]-0x1)*_0x113779[_0x7c86be(0x1a56)][_0x7c86be(0x221e)],_0x1a51dc[_0x7c86be(0x23e0)](_0x7c86be(0x174b))?_0x113779[_0x7c86be(0xb9c)]=_0x25fc4d[_0x7c86be(0x189e)][_0x7c86be(0x16b4)](_0x113779[_0x7c86be(0x1a56)],_0x16ef14)[_0x7c86be(0x2945)]:(_0x113779[_0x7c86be(0x1a56)]['id']=_0x113779[_0x7c86be(0x26b6)]['id'],_0x113779[_0x7c86be(0x1a56)]['section']=_0x7c86be(0x274c),_0x113779[_0x7c86be(0xb9c)]=_0x25fc4d[_0x7c86be(0x26b6)][_0x7c86be(0x158f)](_0x113779['query'],_0x16ef14)[_0x7c86be(0x2945)]);}function _0x9bcca(_0x1d1eb4,_0x54d332){const _0x1dd3b7=_0x2f9d72;_0x3020bc[_0x1dd3b7(0x2615)]({'controller':_0x1dd3b7(0x160e),'controllerAs':'vm','templateUrl':_0x5519c5,'parent':angular['element'](_0x3f3557['body']),'targetEvent':_0x1d1eb4,'clickOutsideToClose':!![],'locals':{'chatWebsite':_0x54d332,'chatWebsites':_0x113779[_0x1dd3b7(0x2710)][_0x1dd3b7(0x19c7)],'license':_0x113779['license'],'setting':_0x113779['setting'],'crudPermissions':_0x113779[_0x1dd3b7(0x2514)]}});}function _0xa4c91a(_0x4d8e09){const _0x267d4d=_0x2f9d72;_0x25fc4d[_0x267d4d(0x189e)][_0x267d4d(0x1fac)]({'id':_0x4d8e09['id']})['$promise'][_0x267d4d(0x146b)](function(){const _0x2fa58f=_0x267d4d;_0x3f65c0()[_0x2fa58f(0x2640)](_0x113779[_0x2fa58f(0x2710)][_0x2fa58f(0x19c7)],{'id':_0x4d8e09['id']}),_0x113779[_0x2fa58f(0x2710)][_0x2fa58f(0x51c)]-=0x1,!_0x113779[_0x2fa58f(0x2710)][_0x2fa58f(0x19c7)]['length']&&_0x113779[_0x2fa58f(0x3e5)](),_0x4c5fd8['success']({'title':_0x3f65c0()[_0x2fa58f(0x20d1)]('ChatWebsite')+_0x2fa58f(0x201c),'msg':_0x4d8e09[_0x2fa58f(0x19eb)]?_0x4d8e09['name']+_0x2fa58f(0x23e3):''});})[_0x267d4d(0x129e)](function(_0x533acc){const _0xabdb=_0x267d4d;if(_0x533acc[_0xabdb(0x524)]&&_0x533acc['data'][_0xabdb(0xcef)]&&_0x533acc[_0xabdb(0x524)]['errors'][_0xabdb(0x402)]){_0x113779[_0xabdb(0xcef)]=_0x533acc[_0xabdb(0x524)][_0xabdb(0xcef)]||[{'message':_0x533acc[_0xabdb(0xd5f)](),'type':_0xabdb(0x172)}];for(let _0x2a15bb=0x0;_0x2a15bb<_0x533acc[_0xabdb(0x524)][_0xabdb(0xcef)][_0xabdb(0x402)];_0x2a15bb++){_0x4c5fd8['error']({'title':_0x533acc[_0xabdb(0x524)]['errors'][_0x2a15bb]['type'],'msg':_0x533acc[_0xabdb(0x524)]['errors'][_0x2a15bb]['message']});}}else _0x4c5fd8[_0xabdb(0x1980)]({'title':_0x533acc[_0xabdb(0x107b)]?'API:'+_0x533acc[_0xabdb(0x107b)]+'\x20-\x20'+_0x533acc[_0xabdb(0x167f)]:'SYSTEM:DELETEchatWebsite','msg':_0x533acc[_0xabdb(0x524)]?JSON['stringify'](_0x533acc[_0xabdb(0x524)][_0xabdb(0x7fd)]):_0x533acc[_0xabdb(0x7fd)]||_0x533acc[_0xabdb(0xd5f)]()});});}function _0x146933(){const _0x2c30c8=_0x2f9d72,_0x56ddc0=angular[_0x2c30c8(0x235a)](_0x113779['selectedChatWebsites']);return _0x113779[_0x2c30c8(0x1f19)]=[],_0x56ddc0;}function _0x3ca89b(_0x455f4f){const _0x47c9b6=_0x2f9d72,_0x5be5f5=_0x3020bc[_0x47c9b6(0x1e8a)]()[_0x47c9b6(0x1189)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20chatWebsites?')[_0x47c9b6(0x1cbe)](_0x47c9b6(0x16d3)+_0x113779[_0x47c9b6(0x1f19)]['length']+_0x47c9b6(0x2452)+_0x47c9b6(0xe01))[_0x47c9b6(0x4bd)](_0x47c9b6(0xc6e))['targetEvent'](_0x455f4f)['ok']('OK')[_0x47c9b6(0x6c3)](_0x47c9b6(0x39a));_0x3020bc[_0x47c9b6(0x2615)](_0x5be5f5)[_0x47c9b6(0x146b)](function(){const _0x592a37=_0x47c9b6;_0x113779['selectedChatWebsites'][_0x592a37(0x1df5)](function(_0xa2595e){_0xa4c91a(_0xa2595e);}),_0x113779['selectedChatWebsites']=[];});}function _0x143156(){const _0x1e110a=_0x2f9d72;_0x113779[_0x1e110a(0x1f19)]=[];}function _0x33b954(){const _0x594c48=_0x2f9d72;_0x113779[_0x594c48(0x1f19)]=_0x113779[_0x594c48(0x2710)]['rows'];}}const _0x1ca336=_0x38e4c6;;_0x1e55b7[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1862),_0x313a4d(0xd08),'$mdDialog','$q',_0x313a4d(0x214b),_0x313a4d(0x1fe4),_0x313a4d(0x2710),_0x313a4d(0x189e),'api',_0x313a4d(0xa87),_0x313a4d(0x2690),'setting',_0x313a4d(0x2514)];function _0x1e55b7(_0x109b5e,_0x42096c,_0x59d9e8,_0x72702c,_0x410961,_0x146b57,_0x28315c,_0x313508,_0x52f3e0,_0x559d10,_0x4e6be4,_0x5e7c81,_0x474a55,_0xa650ba){const _0x58c544=_0x313a4d,_0x3f1879=this;_0x3f1879[_0x58c544(0x2321)]=_0x4e6be4['getCurrentUser'](),_0x3f1879[_0x58c544(0xcef)]=[],_0x3f1879[_0x58c544(0x15b9)]=_0x474a55,_0x3f1879['license']=_0x5e7c81,_0x3f1879['crudPermissions']=_0xa650ba,_0x3f1879[_0x58c544(0x855)]={},_0x3f1879[_0x58c544(0x2251)]=_0x3f1879[_0x58c544(0x15b9)]&&_0x3f1879[_0x58c544(0x15b9)][_0x58c544(0x976)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3f1879[_0x58c544(0x1189)]=_0x58c544(0x2652),_0x3f1879['chatWebsite']=angular[_0x58c544(0x235a)](_0x52f3e0),_0x3f1879[_0x58c544(0x2710)]=_0x313508,_0x3f1879[_0x58c544(0x917)]=![];!_0x3f1879[_0x58c544(0x189e)]&&(_0x3f1879[_0x58c544(0x189e)]={'remote':_0x59d9e8[_0x58c544(0x2414)]()+_0x58c544(0xb0e)+_0x59d9e8[_0x58c544(0x148e)]()+(_0x59d9e8['port']()?':'+_0x59d9e8[_0x58c544(0x1553)]():''),'header_shape':_0x58c544(0x4ec),'alignment':'bottom_right','verticalAlignment':0x1e,'messagesAlignment':_0x58c544(0x1557),'IntervalId':'null','timezone':_0x58c544(0x203c),'waitForTheAssignedAgent':0xa,'notificationSound':!![],'queueTransferTimeout':0x12c,'agentTransferTimeout':0x12c},_0x3f1879[_0x58c544(0x1189)]=_0x58c544(0x19a),_0x3f1879['newChatWebsite']=!![]);_0x42096c[_0x58c544(0x16a)]['id']&&(_0x3f1879[_0x58c544(0x189e)][_0x58c544(0x1d92)]=_0x42096c['params']['id']);_0x3f1879[_0x58c544(0x30d)]=_0x21df4f,_0x3f1879[_0x58c544(0x14af)]=_0x5ceb5f,_0x3f1879['deleteChatWebsite']=_0x477c1a,_0x3f1879[_0x58c544(0xe73)]=_0x285d4c,_0x3f1879[_0x58c544(0x13f3)]=_0x14379e,_0x4e6be4[_0x58c544(0x23e0)](_0x58c544(0x174b))?_0x559d10[_0x58c544(0xf03)]['get']({'fields':_0x58c544(0x7a7),'sort':_0x58c544(0x19eb)})['$promise']['then'](function(_0x1c743c){_0x3f1879['lists']=_0x1c743c['rows']||[];})[_0x58c544(0x129e)](function(_0x5b389b){const _0x5494df=_0x58c544;_0x28315c[_0x5494df(0x1980)]({'title':_0x5b389b[_0x5494df(0x107b)]?_0x5494df(0x262a)+_0x5b389b['status']+'\x20-\x20'+_0x5b389b[_0x5494df(0x167f)]:_0x5494df(0x11b3),'msg':_0x5b389b[_0x5494df(0x524)]?JSON['stringify'](_0x5b389b[_0x5494df(0x524)]):_0x5b389b[_0x5494df(0xd5f)]()});}):_0x559d10[_0x58c544(0xf03)][_0x58c544(0x16b4)]({'fields':_0x58c544(0x7a7),'sort':'name'})[_0x58c544(0x2945)][_0x58c544(0x146b)](function(_0x60559c){const _0x35aa50=_0x58c544;_0x3f1879[_0x35aa50(0x1324)]=_0x60559c['rows']||[];})[_0x58c544(0x146b)](function(){const _0x138cc2=_0x58c544;return _0x559d10[_0x138cc2(0x1366)][_0x138cc2(0x16b4)]({'userProfileId':_0x3f1879[_0x138cc2(0x2321)]['userProfileId'],'sectionId':0x12d})['$promise'];})[_0x58c544(0x146b)](function(_0x4fa79b){const _0x1745f1=_0x58c544,_0x1aff8e=_0x4fa79b&&_0x4fa79b[_0x1745f1(0x19c7)]?_0x4fa79b['rows'][0x0]:null;if(!_0x1aff8e){const _0x5614a7=[];let _0x51f9ba=null;_0x3f1879['chatWebsite']&&(_0x51f9ba=_0x3f65c0()[_0x1745f1(0xc84)](_0x3f1879[_0x1745f1(0x1324)],{'id':Number(_0x3f1879[_0x1745f1(0x189e)][_0x1745f1(0xb7c)])}));for(let _0x5ab9b7=0x0;_0x5ab9b7<_0x3f1879['lists']['length'];_0x5ab9b7++){_0x51f9ba&&_0x3f1879['lists'][_0x5ab9b7]['id']===_0x51f9ba['id']&&(_0x3f1879[_0x1745f1(0x1324)][_0x5ab9b7]['canSelect']=![],_0x5614a7[_0x1745f1(0x1f47)](_0x3f1879[_0x1745f1(0x1324)][_0x5ab9b7]));}_0x3f1879[_0x1745f1(0x1324)]=_0x5614a7;}else{if(!_0x1aff8e[_0x1745f1(0x11d2)])return _0x559d10['userProfileResource'][_0x1745f1(0x16b4)]({'sectionId':_0x1aff8e['id']})[_0x1745f1(0x2945)][_0x1745f1(0x146b)](function(_0x5f08fd){const _0x137931=_0x1745f1,_0x1178d7=_0x3f65c0()[_0x137931(0x205)](_0x5f08fd[_0x137931(0x19c7)],function(_0x284aff){const _0x3e994a=_0x137931;return _0x3f65c0()[_0x3e994a(0xc84)](_0x3f1879[_0x3e994a(0x1324)],{'id':_0x284aff[_0x3e994a(0x18b8)]});});let _0x55151f=null;_0x3f1879[_0x137931(0x189e)]&&(_0x55151f=_0x3f65c0()[_0x137931(0xc84)](_0x3f1879['lists'],{'id':Number(_0x3f1879[_0x137931(0x189e)]['ListId'])}));if(_0x55151f&&!_0x3f65c0()[_0x137931(0x1360)](_0x1178d7,['id',_0x55151f['id']])){const _0x1184e3=_0x3f65c0()[_0x137931(0xc84)](_0x3f1879[_0x137931(0x1324)],{'id':_0x55151f['id']});_0x1184e3[_0x137931(0x8ff)]=![],_0x1178d7[_0x137931(0x1f47)](_0x1184e3);}_0x3f1879[_0x137931(0x1324)]=_0x1178d7;});}})[_0x58c544(0x129e)](function(_0x5a6ab3){const _0x28df5f=_0x58c544;_0x28315c[_0x28df5f(0x1980)]({'title':_0x5a6ab3['status']?'API:'+_0x5a6ab3['status']+_0x28df5f(0x1315)+_0x5a6ab3[_0x28df5f(0x167f)]:_0x28df5f(0x1a2f),'msg':_0x5a6ab3['data']?JSON['stringify'](_0x5a6ab3['data']):_0x5a6ab3[_0x28df5f(0xd5f)]()});}),_0x4e6be4[_0x58c544(0x23e0)](_0x58c544(0x174b))?_0x559d10[_0x58c544(0x2765)]['get']({'fields':_0x58c544(0x7a7),'sort':_0x58c544(0x19eb),'IntervalId':_0x58c544(0x203c)})['$promise'][_0x58c544(0x146b)](function(_0x4d14ac){const _0x23737c=_0x58c544;_0x3f1879['interval']=_0x4d14ac[_0x23737c(0x19c7)]||[];})[_0x58c544(0x129e)](function(_0x20be7f){const _0x55b2d1=_0x58c544;_0x28315c['error']({'title':_0x20be7f[_0x55b2d1(0x107b)]?_0x55b2d1(0x262a)+_0x20be7f[_0x55b2d1(0x107b)]+_0x55b2d1(0x1315)+_0x20be7f[_0x55b2d1(0x167f)]:_0x55b2d1(0x12c5),'msg':_0x20be7f['data']?JSON[_0x55b2d1(0x10bb)](_0x20be7f[_0x55b2d1(0x524)]):_0x20be7f['toString']()});}):_0x559d10['interval'][_0x58c544(0x16b4)]({'fields':_0x58c544(0x7a7),'sort':_0x58c544(0x19eb),'IntervalId':_0x58c544(0x203c)})['$promise'][_0x58c544(0x146b)](function(_0x35efea){const _0x4eecfd=_0x58c544;_0x3f1879[_0x4eecfd(0x2765)]=_0x35efea['rows']||[];})[_0x58c544(0x146b)](function(){const _0x2f618e=_0x58c544;return _0x559d10[_0x2f618e(0x1366)]['get']({'userProfileId':_0x3f1879[_0x2f618e(0x2321)][_0x2f618e(0x209a)],'sectionId':0x3ec})[_0x2f618e(0x2945)];})['then'](function(_0x4fa545){const _0x271f4e=_0x58c544,_0x366631=_0x4fa545&&_0x4fa545['rows']?_0x4fa545[_0x271f4e(0x19c7)][0x0]:null;if(!_0x366631){const _0xd84987=[];let _0x29ddb1=null;_0x3f1879['chatWebsite']&&(_0x29ddb1=_0x3f65c0()[_0x271f4e(0xc84)](_0x3f1879['interval'],{'id':Number(_0x3f1879[_0x271f4e(0x189e)][_0x271f4e(0x1ff2)])}));for(let _0x3bbf46=0x0;_0x3bbf46<_0x3f1879[_0x271f4e(0x2765)][_0x271f4e(0x402)];_0x3bbf46++){_0x29ddb1&&_0x3f1879[_0x271f4e(0x2765)][_0x3bbf46]['id']===_0x29ddb1['id']&&(_0x3f1879[_0x271f4e(0x2765)][_0x3bbf46][_0x271f4e(0x8ff)]=![],_0xd84987[_0x271f4e(0x1f47)](_0x3f1879['interval'][_0x3bbf46]));}_0x3f1879[_0x271f4e(0x2765)]=_0xd84987;}else{if(!_0x366631['autoAssociation'])return _0x559d10[_0x271f4e(0xdcc)][_0x271f4e(0x16b4)]({'sectionId':_0x366631['id']})[_0x271f4e(0x2945)][_0x271f4e(0x146b)](function(_0x41166c){const _0x2435fd=_0x271f4e,_0x1327e7=_0x3f65c0()[_0x2435fd(0x205)](_0x41166c['rows'],function(_0x1ac59d){const _0x93fdee=_0x2435fd;return _0x3f65c0()[_0x93fdee(0xc84)](_0x3f1879[_0x93fdee(0x2765)],{'id':_0x1ac59d[_0x93fdee(0x18b8)]});});let _0x42a0f4=null;_0x3f1879[_0x2435fd(0x189e)]&&(_0x42a0f4=_0x3f65c0()[_0x2435fd(0xc84)](_0x3f1879[_0x2435fd(0x2765)],{'id':Number(_0x3f1879[_0x2435fd(0x189e)][_0x2435fd(0x1ff2)])}));if(_0x42a0f4&&!_0x3f65c0()[_0x2435fd(0x1360)](_0x1327e7,['id',_0x42a0f4['id']])){const _0x354136=_0x3f65c0()[_0x2435fd(0xc84)](_0x3f1879[_0x2435fd(0x2765)],{'id':_0x42a0f4['id']});_0x354136[_0x2435fd(0x8ff)]=![],_0x1327e7[_0x2435fd(0x1f47)](_0x354136);}_0x3f1879[_0x2435fd(0x2765)]=_0x1327e7;});}})[_0x58c544(0x129e)](function(_0x4e1a73){const _0x728a1f=_0x58c544;_0x28315c[_0x728a1f(0x1980)]({'title':_0x4e1a73[_0x728a1f(0x107b)]?_0x728a1f(0x262a)+_0x4e1a73['status']+_0x728a1f(0x1315)+_0x4e1a73[_0x728a1f(0x167f)]:'SYSTEM:GETinterval','msg':_0x4e1a73[_0x728a1f(0x524)]?JSON[_0x728a1f(0x10bb)](_0x4e1a73[_0x728a1f(0x524)]):_0x4e1a73[_0x728a1f(0xd5f)]()});});function _0x21df4f(){const _0x28e22b=_0x58c544;_0x3f1879[_0x28e22b(0xcef)]=[],_0x559d10['chatWebsite']['save'](_0x3f1879[_0x28e22b(0x189e)])[_0x28e22b(0x2945)][_0x28e22b(0x146b)](function(_0x27dab0){const _0x526de9=_0x28e22b;_0x3f1879[_0x526de9(0x2710)][_0x526de9(0xb3d)](_0x27dab0[_0x526de9(0x2488)]()),_0x28315c[_0x526de9(0x1c75)]({'title':_0x526de9(0x2392),'msg':_0x3f1879[_0x526de9(0x189e)]['name']?_0x3f1879[_0x526de9(0x189e)]['name']+'\x20has\x20been\x20created!':''}),_0x14379e(_0x27dab0);})['catch'](function(_0x5f4565){const _0x666b63=_0x28e22b;if(_0x5f4565[_0x666b63(0x524)]&&_0x5f4565[_0x666b63(0x524)]['errors']&&_0x5f4565[_0x666b63(0x524)][_0x666b63(0xcef)][_0x666b63(0x402)]){_0x3f1879[_0x666b63(0xcef)]=_0x5f4565['data']['errors']||[{'message':_0x5f4565['toString'](),'type':_0x666b63(0x27c6)}];for(let _0xa8a44f=0x0;_0xa8a44f<_0x5f4565[_0x666b63(0x524)]['errors'][_0x666b63(0x402)];_0xa8a44f+=0x1){_0x28315c[_0x666b63(0x1980)]({'title':_0x5f4565['data']['errors'][_0xa8a44f][_0x666b63(0x1142)],'msg':_0x5f4565[_0x666b63(0x524)][_0x666b63(0xcef)][_0xa8a44f][_0x666b63(0x7fd)]});}}else _0x28315c[_0x666b63(0x1980)]({'title':_0x5f4565['status']?_0x666b63(0x262a)+_0x5f4565[_0x666b63(0x107b)]+_0x666b63(0x1315)+_0x5f4565[_0x666b63(0x167f)]:_0x666b63(0x27c6),'msg':_0x5f4565[_0x666b63(0x524)]?JSON['stringify'](_0x5f4565[_0x666b63(0x524)][_0x666b63(0x7fd)]):_0x5f4565['toString']()});});}function _0x5ceb5f(){const _0x588469=_0x58c544;_0x3f1879['errors']=[],_0x559d10[_0x588469(0x189e)]['update']({'id':_0x3f1879[_0x588469(0x189e)]['id']},_0x3f1879[_0x588469(0x189e)])[_0x588469(0x2945)][_0x588469(0x146b)](function(_0xf54495){const _0x3c7ff8=_0x588469,_0x13cfb8=_0x3f65c0()[_0x3c7ff8(0xc84)](_0x3f1879[_0x3c7ff8(0x2710)],{'id':_0xf54495['id']});_0x13cfb8&&_0x3f65c0()[_0x3c7ff8(0x168d)](_0x13cfb8,_0x3f65c0()[_0x3c7ff8(0x40e)](_0xf54495['toJSON'](),_0x3f65c0()[_0x3c7ff8(0x627)](_0x13cfb8))),_0x28315c[_0x3c7ff8(0x1c75)]({'title':_0x3c7ff8(0x1a25),'msg':_0x3f1879['chatWebsite'][_0x3c7ff8(0x19eb)]?_0x3f1879['chatWebsite'][_0x3c7ff8(0x19eb)]+'\x20has\x20been\x20saved!':''}),_0x14379e(_0xf54495);})['catch'](function(_0x37f80c){const _0x11e369=_0x588469;if(_0x37f80c[_0x11e369(0x524)]&&_0x37f80c[_0x11e369(0x524)]['errors']&&_0x37f80c[_0x11e369(0x524)][_0x11e369(0xcef)]['length']){_0x3f1879[_0x11e369(0xcef)]=_0x37f80c[_0x11e369(0x524)][_0x11e369(0xcef)]||[{'message':_0x37f80c['toString'](),'type':_0x11e369(0xb5f)}];for(let _0x1ce98c=0x0;_0x1ce98c<_0x37f80c[_0x11e369(0x524)][_0x11e369(0xcef)]['length'];_0x1ce98c++){_0x28315c[_0x11e369(0x1980)]({'title':_0x37f80c[_0x11e369(0x524)][_0x11e369(0xcef)][_0x1ce98c][_0x11e369(0x1142)],'msg':_0x37f80c[_0x11e369(0x524)][_0x11e369(0xcef)][_0x1ce98c][_0x11e369(0x7fd)]});}}else _0x28315c[_0x11e369(0x1980)]({'title':_0x37f80c['status']?_0x11e369(0x262a)+_0x37f80c[_0x11e369(0x107b)]+_0x11e369(0x1315)+_0x37f80c[_0x11e369(0x167f)]:_0x11e369(0xb5f),'msg':_0x37f80c['data']?JSON[_0x11e369(0x10bb)](_0x37f80c['data']['message']):_0x37f80c[_0x11e369(0xd5f)]()});});}function _0x477c1a(_0x1df1ed){const _0x135b06=_0x58c544;_0x3f1879['errors']=[];const _0x9d7223=_0x72702c[_0x135b06(0x1e8a)]()['title']('Are\x20you\x20sure?')['content']('The\x20chatWebsite\x20will\x20be\x20deleted.')[_0x135b06(0x4bd)](_0x135b06(0x8af))['ok'](_0x135b06(0x25de))[_0x135b06(0x6c3)]('Cancel')[_0x135b06(0x1f27)](_0x1df1ed);_0x72702c[_0x135b06(0x2615)](_0x9d7223)[_0x135b06(0x146b)](function(){const _0x1411a2=_0x135b06;_0x559d10[_0x1411a2(0x189e)][_0x1411a2(0x1fac)]({'id':_0x3f1879[_0x1411a2(0x189e)]['id']})[_0x1411a2(0x2945)][_0x1411a2(0x146b)](function(){const _0x1bfbf3=_0x1411a2;_0x3f65c0()['remove'](_0x3f1879['chatWebsites'],{'id':_0x3f1879[_0x1bfbf3(0x189e)]['id']}),_0x28315c[_0x1bfbf3(0x1c75)]({'title':_0x1bfbf3(0x1ec2),'msg':(_0x3f1879[_0x1bfbf3(0x189e)][_0x1bfbf3(0x19eb)]||'chatWebsite')+'\x20has\x20been\x20deleted!'}),_0x14379e(_0x3f1879[_0x1bfbf3(0x189e)]);})['catch'](function(_0x517b91){const _0x113158=_0x1411a2;if(_0x517b91[_0x113158(0x524)]&&_0x517b91[_0x113158(0x524)][_0x113158(0xcef)]&&_0x517b91[_0x113158(0x524)][_0x113158(0xcef)]['length']){_0x3f1879[_0x113158(0xcef)]=_0x517b91['data'][_0x113158(0xcef)]||[{'message':_0x517b91[_0x113158(0xd5f)](),'type':_0x113158(0x1c9b)}];for(let _0x52d11b=0x0;_0x52d11b<_0x517b91[_0x113158(0x524)]['errors'][_0x113158(0x402)];_0x52d11b++){_0x28315c[_0x113158(0x1980)]({'title':_0x517b91[_0x113158(0x524)][_0x113158(0xcef)][_0x52d11b]['type'],'msg':_0x517b91[_0x113158(0x524)][_0x113158(0xcef)][_0x52d11b][_0x113158(0x7fd)]});}}else _0x28315c[_0x113158(0x1980)]({'title':_0x517b91[_0x113158(0x107b)]?'API:'+_0x517b91[_0x113158(0x107b)]+'\x20-\x20'+_0x517b91[_0x113158(0x167f)]:_0x113158(0x1c9b),'msg':_0x517b91[_0x113158(0x524)]?JSON[_0x113158(0x10bb)](_0x517b91[_0x113158(0x524)]['message']):_0x517b91[_0x113158(0x7fd)]||_0x517b91[_0x113158(0xd5f)]()});});},function(){});}function _0x285d4c(_0x292a36){return _0x292a36===null?undefined:new Date(_0x292a36);}function _0x14379e(_0x31dbae){_0x72702c['hide'](_0x31dbae);}}const _0x3e3ab4=_0x1e55b7;;const _0x41ec1b=_0x4acfac['p']+_0x313a4d(0x2054);;const _0x47c96a=_0x4acfac['p']+_0x313a4d(0x14cd);;const _0x1ba3f2=_0x4acfac['p']+'src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/autoreply/dialog.html/dialog.html';;const _0x3ef275=_0x4acfac['p']+_0x313a4d(0xc0a);;const _0x1d1e01=_0x4acfac['p']+'src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/dialogflow/dialog.html/dialog.html';;const _0x1d059d=_0x4acfac['p']+'src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/gotoif/dialog.html/dialog.html';;const _0x6ea438=_0x4acfac['p']+_0x313a4d(0x1a7);;const _0x460bff=_0x4acfac['p']+'src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/interval/dialog.html/dialog.html';;const _0x1be45f=_0x4acfac['p']+_0x313a4d(0x2124);;const _0x33ffc5=_0x4acfac['p']+_0x313a4d(0xfc6);;const _0x5a94bf=_0x4acfac['p']+'src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/system/dialog.html/dialog.html';;const _0x407b40=_0x4acfac['p']+'src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/tag/dialog.html/dialog.html';;_0x3f360d[_0x313a4d(0x11c2)]=[_0x313a4d(0x247f),_0x313a4d(0x10e8),'$document','toasty',_0x313a4d(0xa87)];const _0x358380={'agent':_0x41ec1b,'amazonlex':_0x47c96a,'autoreply':_0x1ba3f2,'close':_0x3ef275,'dialogflow':_0x1d1e01,'gotoif':_0x1d059d,'gotop':_0x6ea438,'interval':_0x460bff,'noop':_0x1be45f,'queue':_0x33ffc5,'system':_0x5a94bf,'tag':_0x407b40};function _0x3f360d(_0x21cb08,_0x2ae994,_0x3418bf,_0x50b1f1,_0x401b22){const _0x2aba5d=_0x313a4d,_0x26f182=this;_0x26f182[_0x2aba5d(0x2321)]=_0x401b22[_0x2aba5d(0xb12)](),_0x26f182[_0x2aba5d(0x189e)]={},_0x26f182[_0x2aba5d(0x735)]={'count':0x0,'rows':[]},_0x26f182['selectedChatWebsiteApps']=[],_0x26f182[_0x2aba5d(0x2514)],_0x26f182[_0x2aba5d(0x1a56)]={'sort':'priority'},_0x26f182[_0x2aba5d(0x8b0)]=_0x3f65c0()['reject'](_0x3f65c0()['sortBy']([{'app':_0x2aba5d(0x1b4e),'appType':_0x2aba5d(0x2765),'types':[_0x2aba5d(0xd85),'custom',_0x2aba5d(0x25f4)],'fields':[],'isApp':![]},{'app':_0x2aba5d(0x309),'appType':_0x2aba5d(0x309),'type':_0x2aba5d(0x309),'icon':_0x2aba5d(0x1205),'interval':'*,*,*,*','required':!![],'isApp':!![],'fields':[{'title':'Value','name':_0x2aba5d(0x175d),'type':_0x2aba5d(0xa8d),'param':0x0}]},{'app':_0x2aba5d(0x1d47),'appType':'system','type':'system','icon':_0x2aba5d(0x1205),'interval':_0x2aba5d(0x1559),'required':!![],'isApp':!![],'extraApi':[{'name':_0x2aba5d(0x85b),'field':{'name':_0x2aba5d(0x212),'key':_0x2aba5d(0x19eb)},'route':'variable','filters':{'fields':_0x2aba5d(0x7a7),'sort':'name','nolimit':!![]},'permissions':{'section':0x3f4}}],'fields':[{'title':_0x2aba5d(0x1d8b),'name':'command','type':'text','required':!![],'param':0x0},{'title':_0x2aba5d(0x182),'name':_0x2aba5d(0x212),'type':_0x2aba5d(0x28c6),'values':_0x2aba5d(0x85b),'value':_0x2aba5d(0x1566),'option':_0x2aba5d(0x1566),'defaultValues':[{'value':'\x27\x27','option':_0x2aba5d(0x13dd)}],'defaultValue':'\x27\x27','param':0x1}]},{'app':_0x2aba5d(0x28f4),'appType':'gotop','type':_0x2aba5d(0x151b),'icon':_0x2aba5d(0x1205),'interval':_0x2aba5d(0x1559),'isApp':!![],'fields':[{'title':_0x2aba5d(0x23d8),'name':_0x2aba5d(0xa6a),'type':_0x2aba5d(0x181),'required':!![],'min':0x0,'param':0x0}]},{'app':'gotoif','appType':_0x2aba5d(0x609),'type':_0x2aba5d(0x609),'icon':_0x2aba5d(0x1205),'interval':_0x2aba5d(0x1559),'isApp':!![],'fields':[{'title':'Condition','name':_0x2aba5d(0x115f),'type':'text','required':!![],'param':0x0},{'title':'truepriority','name':_0x2aba5d(0x1d78),'type':'number','min':0x1,'required':!![],'param':0x1},{'title':'falsepriority','name':'falsepriority','type':_0x2aba5d(0x181),'min':0x1,'required':!![],'param':0x2}]},{'app':'queue','appType':_0x2aba5d(0x1c72),'foreignKey':'ChatQueueId','type':_0x2aba5d(0x1c72),'icon':'icon-apps','interval':_0x2aba5d(0x1559),'isApp':!![],'extraApi':[{'name':_0x2aba5d(0x1b32),'field':{'name':_0x2aba5d(0x1c72),'key':_0x2aba5d(0x19eb)},'route':_0x2aba5d(0x16f8),'filters':{'fields':_0x2aba5d(0x45e),'sort':_0x2aba5d(0x19eb),'nolimit':!![]},'permissions':{'section':0x1f5}}],'fields':[{'title':_0x2aba5d(0xe26),'name':_0x2aba5d(0x1c72),'type':_0x2aba5d(0x28c6),'values':_0x2aba5d(0x1b32),'value':'queue.name','option':_0x2aba5d(0x15b0),'defaultValue':0x12c,'required':!![],'param':0x0},{'title':_0x2aba5d(0x5cc),'name':_0x2aba5d(0xa9c),'type':_0x2aba5d(0x181),'max':0x20c49b,'min':0x0,'required':!![],'defaultValue':0x12c,'param':0x1}]},{'app':'agent','appType':_0x2aba5d(0x1755),'type':_0x2aba5d(0x1755),'foreignKey':'UserId','icon':_0x2aba5d(0x1205),'interval':_0x2aba5d(0x1559),'isApp':!![],'extraApi':[{'name':_0x2aba5d(0x23c0),'field':{'name':_0x2aba5d(0x1755),'key':_0x2aba5d(0x19eb)},'route':_0x2aba5d(0xe7b),'filters':{'fields':_0x2aba5d(0x7a7),'role':'agent','sort':_0x2aba5d(0x19eb),'nolimit':!![]},'permissions':{'section':0xca}}],'fields':[{'title':_0x2aba5d(0x294a),'name':'agent','type':_0x2aba5d(0x28c6),'values':_0x2aba5d(0x23c0),'value':_0x2aba5d(0x264f),'option':_0x2aba5d(0x264f),'required':!![],'param':0x0},{'title':_0x2aba5d(0x5cc),'name':'timeout','type':_0x2aba5d(0x181),'max':0x20c49b,'min':0x0,'required':!![],'defaultValue':0x1e,'param':0x1}]},{'app':'close','appType':'close','type':'close','icon':_0x2aba5d(0x1205),'interval':_0x2aba5d(0x1559),'isApp':!![],'fields':[{'title':'Disposition','name':'disposition','type':_0x2aba5d(0xa8d),'required':!![],'param':0x0}]},{'app':'autoreply','appType':'autoreply','type':_0x2aba5d(0x1713),'icon':_0x2aba5d(0x1205),'interval':'*,*,*,*','isApp':!![],'fields':[{'title':_0x2aba5d(0x583),'name':_0x2aba5d(0x583),'type':_0x2aba5d(0xa5f),'defaultValue':'1','values':[{'option':'One\x20Time','value':'1'},{'option':_0x2aba5d(0x132f),'value':'0'}],'required':!![],'param':0x0},{'title':_0x2aba5d(0x23d7),'name':_0x2aba5d(0xa8d),'type':_0x2aba5d(0x2350),'required':!![],'param':0x1}]},{'app':'tag','appType':'tag','type':_0x2aba5d(0xa80),'foreignKey':'TagId','icon':_0x2aba5d(0x1205),'interval':_0x2aba5d(0x1559),'isApp':!![],'extraApi':[{'name':_0x2aba5d(0x1b86),'field':{'name':_0x2aba5d(0xa80),'key':_0x2aba5d(0x19eb)},'route':_0x2aba5d(0xa80),'filters':{'fields':'id,name','sort':_0x2aba5d(0x19eb),'nolimit':!![]},'permissions':{'section':0x3f0}}],'fields':[{'title':_0x2aba5d(0x23a8),'name':'tag','type':_0x2aba5d(0x28c6),'values':'tags','value':_0x2aba5d(0x1a96),'option':_0x2aba5d(0x1a96),'required':!![],'param':0x0}]},{'app':'dialogflow','appType':_0x2aba5d(0xeaa),'type':'dialogflow','icon':_0x2aba5d(0x1205),'interval':_0x2aba5d(0x1559),'isApp':!![],'fields':[{'title':'Key','name':'key','type':'text','required':!![],'param':0x0},{'title':_0x2aba5d(0x90b),'name':'language','type':'select','defaultValue':_0x2aba5d(0x2383),'values':[{'option':'Danish','value':_0x2aba5d(0x17c9)},{'option':'English','value':_0x2aba5d(0x2383)},{'option':_0x2aba5d(0x592),'value':'\x27de\x27'},{'option':_0x2aba5d(0x98f),'value':_0x2aba5d(0x9f9)},{'option':'Spanish','value':'\x27es\x27'},{'option':_0x2aba5d(0x12ea),'value':_0x2aba5d(0xbe9)},{'option':_0x2aba5d(0x12f),'value':_0x2aba5d(0x27ee)},{'option':_0x2aba5d(0xf90),'value':_0x2aba5d(0x27d7)},{'option':_0x2aba5d(0x11cd),'value':_0x2aba5d(0x1df9)},{'option':'Dutch','value':'\x27nl\x27'},{'option':_0x2aba5d(0xcb4),'value':_0x2aba5d(0x74f)},{'option':'Portuguese\x20(European)','value':_0x2aba5d(0x2550)},{'option':'Portuguese\x20(Nrazilian)','value':_0x2aba5d(0x1505)},{'option':_0x2aba5d(0x25d4),'value':_0x2aba5d(0x18d0)},{'option':_0x2aba5d(0x2081),'value':_0x2aba5d(0x1717)},{'option':_0x2aba5d(0x1449),'value':_0x2aba5d(0x136c)},{'option':_0x2aba5d(0x13bf),'value':_0x2aba5d(0x289e)},{'option':_0x2aba5d(0x8d3),'value':_0x2aba5d(0x16cc)},{'option':_0x2aba5d(0x1f35),'value':_0x2aba5d(0x1a86)},{'option':_0x2aba5d(0x1cde),'value':_0x2aba5d(0x1ca7)}],'required':!![],'param':0x1},{'title':'welcomemessage','name':_0x2aba5d(0xaf3),'type':'textarea','maxlength':0xff,'param':0x2,'help':!![]}]},{'app':'dialogflowV2','appType':_0x2aba5d(0xa46),'type':_0x2aba5d(0xa46),'icon':'icon-apps','interval':_0x2aba5d(0x1559),'isApp':!![],'fields':[{'title':_0x2aba5d(0x1bdb),'name':_0x2aba5d(0x153a),'type':_0x2aba5d(0xa8d),'required':!![],'param':0x0},{'title':_0x2aba5d(0x4ff),'name':_0x2aba5d(0x1392),'type':_0x2aba5d(0xa8d),'required':!![],'param':0x1},{'title':'PrivateKey','name':_0x2aba5d(0x2217),'type':_0x2aba5d(0x2350),'required':!![],'param':0x2},{'title':'language','name':_0x2aba5d(0x90b),'type':'select','defaultValue':_0x2aba5d(0x2383),'values':[{'value':_0x2aba5d(0x1a86),'option':_0x2aba5d(0x196f)},{'value':'\x27zh-CN\x27','option':'Chinese\x20(Simplified)'},{'value':'\x27zh-TW\x27','option':'Chinese\x20(Traditional)'},{'value':_0x2aba5d(0x17c9),'option':_0x2aba5d(0x3d5)},{'value':_0x2aba5d(0x7ae),'option':_0x2aba5d(0x1d32)},{'value':_0x2aba5d(0x2383),'option':_0x2aba5d(0x1ce8)},{'value':_0x2aba5d(0x17ee),'option':_0x2aba5d(0x24ea)},{'value':'\x27en-CA\x27','option':_0x2aba5d(0x425)},{'value':_0x2aba5d(0x21ce),'option':_0x2aba5d(0x3c9)},{'value':_0x2aba5d(0x2171),'option':_0x2aba5d(0x688)},{'value':_0x2aba5d(0x1d0f),'option':_0x2aba5d(0x4e8)},{'value':'\x27fr\x27','option':_0x2aba5d(0x12ea)},{'value':_0x2aba5d(0x135b),'option':_0x2aba5d(0x3e1)},{'value':_0x2aba5d(0x1906),'option':_0x2aba5d(0x1c51)},{'value':_0x2aba5d(0x1491),'option':'German'},{'value':'\x27hi\x27','option':_0x2aba5d(0x28c1)},{'value':_0x2aba5d(0x27ee),'option':_0x2aba5d(0x12f)},{'value':_0x2aba5d(0x9f9),'option':'Italian'},{'value':_0x2aba5d(0x27d7),'option':'Japanese'},{'value':'\x27ko\x27','option':'Korean'},{'value':_0x2aba5d(0x74f),'option':_0x2aba5d(0xcb4)},{'value':_0x2aba5d(0x3f1),'option':_0x2aba5d(0xe06)},{'value':'\x27pt-BR\x27','option':_0x2aba5d(0x1aaf)},{'value':_0x2aba5d(0xe6d),'option':_0x2aba5d(0x1d1)},{'value':_0x2aba5d(0x18d0),'option':_0x2aba5d(0x25d4)},{'value':_0x2aba5d(0x2374),'option':'Spanish'},{'value':_0x2aba5d(0x1bb6),'option':_0x2aba5d(0x12c9)},{'value':'\x27es-ES\x27','option':'Spanish\x20(Spain)'},{'value':'\x27sw\x27','option':_0x2aba5d(0x2081)},{'value':'\x27th\x27','option':_0x2aba5d(0x1449)},{'value':'\x27tr\x27','option':'Turkish'},{'value':_0x2aba5d(0x289e),'option':'Ukrainian'}],'required':!![],'param':0x3},{'title':_0x2aba5d(0xaf3),'name':'welcomemessage','type':_0x2aba5d(0x2350),'maxlength':0xff,'param':0x4,'help':!![]}]},{'app':_0x2aba5d(0x17d6),'appType':_0x2aba5d(0x17d6),'type':_0x2aba5d(0x17d6),'icon':_0x2aba5d(0x1205),'interval':_0x2aba5d(0x1559),'isApp':!![],'fields':[{'title':_0x2aba5d(0x1651),'name':'accesskeyid','type':'text','required':!![],'param':0x0},{'title':_0x2aba5d(0x252),'name':'secretaccesskey','type':_0x2aba5d(0xa8d),'required':!![],'param':0x1},{'title':_0x2aba5d(0x1039),'name':_0x2aba5d(0x1039),'type':_0x2aba5d(0xa5f),'defaultValue':_0x2aba5d(0x2947),'values':[{'option':_0x2aba5d(0x18e2),'value':'\x27us-east-1\x27'},{'option':'US\x20West\x20(Oregon)','value':_0x2aba5d(0x22fd)},{'option':_0x2aba5d(0x6a8),'value':'\x27eu-west-1\x27'},{'option':_0x2aba5d(0x13d9),'value':'\x27ap-southeast-2\x27'}],'required':!![],'param':0x2},{'title':'botname','name':_0x2aba5d(0x8dd),'type':_0x2aba5d(0xa8d),'required':!![],'param':0x3},{'title':_0x2aba5d(0xaf3),'name':'welcomemessage','type':'textarea','maxlength':0xff,'param':0x4,'help':!![]}]}],['app']),{'isApp':![]}),_0x26f182['list']={'group':{'name':_0x2aba5d(0x156c),'pull':'clone'},'animation':0x64,'sort':![]},_0x26f182[_0x2aba5d(0x25fc)]={'group':{'name':'opt2','put':'opt1'},'animation':0x64,'onAdd':function(_0x35ec94){const _0x24f76c=_0x2aba5d;_0x169c72(_0x35ec94,_0x35ec94[_0x24f76c(0x154d)]);},'onSort':function(){_0x4941a1();}},_0x26f182['init']=_0x4c7806,_0x26f182[_0x2aba5d(0x19b4)]=_0x3c1d63,_0x26f182[_0x2aba5d(0xf30)]=_0x48e269,_0x26f182['editChatWebsiteApp']=_0x169c72,_0x26f182['editInterval']=_0x165164,_0x26f182[_0x2aba5d(0x150d)]=_0x5eceb5,_0x26f182['deleteSelectedChatWebsiteApps']=_0x12ed0d,_0x26f182[_0x2aba5d(0x1450)]=_0x4941a1,_0x26f182[_0x2aba5d(0x1c1c)]=_0x288c61;function _0x4c7806(_0x987218,_0x1f6c8c){const _0x286dc5=_0x2aba5d;_0x26f182[_0x286dc5(0x189e)]=_0x987218,_0x26f182[_0x286dc5(0x2514)]=typeof _0x1f6c8c!==_0x286dc5(0x2274)?_0x1f6c8c:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x26f182['applications'][_0x286dc5(0x2862)]=!_0x26f182[_0x286dc5(0x2514)][_0x286dc5(0x15f4)]?!![]:![],_0x26f182['query']['id']=_0x987218['id'],_0x26f182[_0x286dc5(0x1a56)][_0x286dc5(0x16f6)]=!![],_0x26f182[_0x286dc5(0x1a56)][_0x286dc5(0x6c5)]=!![],_0x26f182['getChatWebsiteApps'](),_0x26f182[_0x286dc5(0x1c1c)]();}function _0x3c1d63(_0x45e461,_0x4a64c4,_0x16cf00){const _0x577a24=_0x2aba5d,_0x14b691=_0x2ae994[_0x577a24(0x1e8a)]()[_0x577a24(0x1189)](_0x577a24(0x1058))[_0x577a24(0x1cbe)](_0x577a24(0x16d3)+_0x45e461[_0x577a24(0x1873)]+_0x577a24(0x252f)+'\x20will\x20be\x20deleted.')[_0x577a24(0x4bd)](_0x577a24(0x847))[_0x577a24(0x1f27)](_0x16cf00)['ok']('OK')['cancel'](_0x577a24(0x39a));_0x2ae994['show'](_0x14b691)[_0x577a24(0x146b)](function(){const _0x15d40b=_0x577a24;_0x26f182['chatWebsiteApps'][_0x15d40b(0x19c7)][_0x15d40b(0x1f7d)](_0x4a64c4,0x1),_0x4941a1();},function(){const _0xafc7f6=_0x577a24;console[_0xafc7f6(0x1a74)]('CANCEL');});}function _0x169c72(_0x275e1d,_0x2894a){const _0x18d9a8=_0x2aba5d;if(_0x26f182[_0x18d9a8(0x735)]['rows']['length']){const _0x1327d2=_0x26f182[_0x18d9a8(0x735)]['rows'][_0x2894a]?_0x26f182[_0x18d9a8(0x735)][_0x18d9a8(0x19c7)][_0x2894a]:_0x26f182['chatWebsiteApps'][_0x18d9a8(0x19c7)][0x0],_0x5b25b4=(_0x1327d2['appType']||_0x1327d2[_0x18d9a8(0x1873)])['toLowerCase']();_0x2ae994[_0x18d9a8(0x2615)]({'controller':_0x18d9a8(0x2534)+_0x5b25b4+_0x18d9a8(0x76a),'controllerAs':'vm','templateUrl':_0x358380[_0x5b25b4],'parent':angular['element'](_0x3418bf['body']),'targetEvent':_0x275e1d,'clickOutsideToClose':!![],'locals':{'chatWebsiteApp':_0x1327d2,'chatWebsite':_0x26f182[_0x18d9a8(0x189e)],'crudPermissions':_0x26f182[_0x18d9a8(0x2514)]}})[_0x18d9a8(0x146b)](function(_0x5162d1){const _0x1d6aa9=_0x18d9a8;_0x5162d1&&(_0x5162d1['id']?_0x26f182[_0x1d6aa9(0x735)][_0x1d6aa9(0x19c7)][_0x2894a]=_0x5162d1:_0x26f182[_0x1d6aa9(0x735)][_0x1d6aa9(0x19c7)][_0x1d6aa9(0x1f7d)](_0x2894a,0x0,_0x5162d1),_0x4941a1());})[_0x18d9a8(0x129e)](function(_0x267151){const _0x3df1b4=_0x18d9a8;_0x267151&&_0x50b1f1[_0x3df1b4(0x1980)]({'title':_0x267151[_0x3df1b4(0x107b)]?_0x3df1b4(0x262a)+_0x267151['status']+_0x3df1b4(0x1315)+_0x267151[_0x3df1b4(0x167f)]:_0x3df1b4(0x10a0),'msg':_0x267151['data']?JSON[_0x3df1b4(0x10bb)](_0x267151[_0x3df1b4(0x524)]):_0x267151['toString']()});});}}function _0x165164(_0x1d6130,_0x5a72a6){const _0xaf4c98=_0x2aba5d;if(_0x26f182[_0xaf4c98(0x735)]['rows']['length']){const _0x16f826=_0x26f182[_0xaf4c98(0x735)][_0xaf4c98(0x19c7)][_0x5a72a6]?_0x26f182[_0xaf4c98(0x735)][_0xaf4c98(0x19c7)][_0x5a72a6]:_0x26f182['chatWebsiteApps']['rows'][0x0];_0x2ae994[_0xaf4c98(0x2615)]({'controller':_0xaf4c98(0x4d0),'controllerAs':'vm','templateUrl':_0x460bff,'parent':angular[_0xaf4c98(0x1853)](_0x3418bf[_0xaf4c98(0x2586)]),'targetEvent':_0x1d6130,'clickOutsideToClose':!![],'locals':{'interval':{'interval':_0x16f826['interval'],'IntervalId':_0x16f826['IntervalId'],'application':!![]},'intervals':[],'crudPermissions':_0x26f182[_0xaf4c98(0x2514)]}})[_0xaf4c98(0x146b)](function(_0xcfd3f2){const _0x20cede=_0xaf4c98;_0xcfd3f2&&(_0x16f826[_0x20cede(0x2765)]=_0xcfd3f2[_0x20cede(0x2765)]||_0x20cede(0x1559),_0x16f826[_0x20cede(0x1ff2)]=_0xcfd3f2['IntervalId']||null,_0x4941a1());});}}function _0x4941a1(){const _0x3e434c=_0x2aba5d;let _0x1c628e=0x1,_0x318be7=[];for(let _0x2e1af1=0x0;_0x2e1af1<_0x26f182['chatWebsiteApps'][_0x3e434c(0x19c7)][_0x3e434c(0x402)];_0x2e1af1++){const _0x19e83a=_0x26f182['chatWebsiteApps'][_0x3e434c(0x19c7)][_0x2e1af1],_0x19b8fa=[],_0x11f4e8=[];_0x19e83a[_0x3e434c(0x278f)]=_0x19e83a['interval']!==_0x3e434c(0x1559)?[_0x19e83a[_0x3e434c(0x2765)]]:_0x19e83a['IntervalId']?_0x3f65c0()[_0x3e434c(0x205)](_0x3f65c0()[_0x3e434c(0x1dd6)](_0x26f182[_0x3e434c(0x278f)][_0x3e434c(0x19c7)],{'IntervalId':_0x19e83a['IntervalId']}),_0x3e434c(0x2765)):[],_0x19e83a[_0x3e434c(0x1ac1)]=_0x26f182[_0x3e434c(0x189e)][_0x3e434c(0x1ac1)],_0x19e83a[_0x3e434c(0x19b2)]=_0x26f182[_0x3e434c(0x189e)][_0x3e434c(0x19b2)],_0x19e83a['type']&&(_0x19e83a['type']=_0x19e83a[_0x3e434c(0x1142)][_0x3e434c(0x256e)]()),_0x19e83a['priority']=_0x19b8fa[_0x3e434c(0x402)]?_0x3f65c0()[_0x3e434c(0x22f2)](_0x19b8fa)[_0x3e434c(0xa6a)]+0x1:_0x1c628e,_0x1c628e=(_0x11f4e8[_0x3e434c(0x402)]?_0x3f65c0()[_0x3e434c(0x22f2)](_0x11f4e8)['priority']:_0x19e83a[_0x3e434c(0xa6a)])+0x1,_0x318be7=_0x3f65c0()[_0x3e434c(0x163c)](_0x318be7,_0x19b8fa,[_0x19e83a],_0x11f4e8);}_0x21cb08[_0x3e434c(0x189e)][_0x3e434c(0x1711)]({'id':_0x26f182[_0x3e434c(0x189e)]['id']},_0x3f65c0()['sortBy'](_0x318be7,'priority'))[_0x3e434c(0x2945)][_0x3e434c(0x146b)](function(_0x30faa9){const _0x3ae2c6=_0x3e434c;_0x26f182[_0x3ae2c6(0x735)][_0x3ae2c6(0x19c7)]=_0x30faa9[_0x3ae2c6(0x19c7)];})[_0x3e434c(0x129e)](function(_0x42684e){const _0x466f4b=_0x3e434c;console[_0x466f4b(0x1980)](_0x42684e);});}function _0x40f737(_0xfa46da){const _0x516cb3=_0x2aba5d;_0x26f182[_0x516cb3(0x735)]=_0xfa46da||{'count':0x0,'rows':[]};}function _0x288c61(){const _0xc51b37=_0x2aba5d;return _0x21cb08['interval'][_0xc51b37(0x16b4)]({'fields':'id,interval,IntervalId'})['$promise']['then'](function(_0x1e18f5){_0x26f182['intervals']=_0x1e18f5;})[_0xc51b37(0x129e)](function(_0x1f1066){const _0x53eb38=_0xc51b37;console[_0x53eb38(0x1980)](_0x1f1066);});}function _0x48e269(){const _0x2b5976=_0x2aba5d;_0x26f182[_0x2b5976(0xb9c)]=_0x21cb08[_0x2b5976(0x189e)][_0x2b5976(0x261b)](_0x26f182[_0x2b5976(0x1a56)],_0x40f737)[_0x2b5976(0x2945)];}function _0x5eceb5(_0x182698){const _0x5758a6=_0x2aba5d;_0x3f65c0()[_0x5758a6(0x2640)](_0x26f182[_0x5758a6(0x735)][_0x5758a6(0x19c7)],{'id':_0x182698['id']}),_0x4941a1(),_0x50b1f1[_0x5758a6(0x1c75)]({'title':'App\x20deleted!','msg':_0x182698[_0x5758a6(0x1873)]?_0x182698[_0x5758a6(0x1873)]+_0x5758a6(0x23e3):''});}function _0x12ed0d(_0x173918){const _0x5af38f=_0x2aba5d,_0x320fb2=_0x2ae994[_0x5af38f(0x1e8a)]()[_0x5af38f(0x1189)](_0x5af38f(0x1d9f))[_0x5af38f(0x1cbe)](_0x5af38f(0x16d3)+_0x26f182[_0x5af38f(0x242a)][_0x5af38f(0x402)]+_0x5af38f(0x2452)+_0x5af38f(0xe01))['ariaLabel'](_0x5af38f(0x2674))[_0x5af38f(0x1f27)](_0x173918)['ok']('OK')['cancel'](_0x5af38f(0x39a));_0x2ae994[_0x5af38f(0x2615)](_0x320fb2)[_0x5af38f(0x146b)](function(){const _0x40308b=_0x5af38f;_0x26f182[_0x40308b(0x242a)][_0x40308b(0x1df5)](function(_0x24e861){const _0x15b606=_0x40308b;_0x3f65c0()[_0x15b606(0x2640)](_0x26f182[_0x15b606(0x735)][_0x15b606(0x19c7)],{'id':_0x24e861['id']});}),_0x26f182[_0x40308b(0x242a)]=[],_0x4941a1();});}}const _0x21f5a2=_0x3f360d;;_0x385ee8[_0x313a4d(0x11c2)]=[_0x313a4d(0x10e8),'$q',_0x313a4d(0x1fe4),_0x313a4d(0x247f),_0x313a4d(0x189e),'chatWebsites',_0x313a4d(0xfc4),_0x313a4d(0x214b),'Auth','crudPermissions'];function _0x385ee8(_0x143c4a,_0x5d93c0,_0x51461e,_0x229fb9,_0x55de46,_0x442d2d,_0x5f0159,_0x4ae1fd,_0x4a0ba7,_0x562268){const _0x137921=_0x313a4d,_0x3566c1=this;_0x3566c1[_0x137921(0x2321)]=_0x4a0ba7[_0x137921(0xb12)](),_0x3566c1['chatWebsite']=_0x55de46,_0x3566c1[_0x137921(0x2514)]=_0x562268,_0x3566c1[_0x137921(0xfc4)]=_0x5f0159,_0x3566c1[_0x137921(0x1fd6)]=[],_0x3566c1[_0x137921(0xc4e)]=[],_0x3566c1[_0x137921(0x1ecf)]=[],_0x3566c1[_0x137921(0x2e8)]=[],_0x3566c1[_0x137921(0xa65)]=[],_0x3566c1[_0x137921(0x132)]=![],_0x3566c1['onInit']=_0x4198d9,_0x3566c1[_0x137921(0x14c2)]=_0x27e000,_0x3566c1[_0x137921(0x13f3)]=_0x6e0d54,_0x3566c1[_0x137921(0x1f8a)]={'readOnly':!_0x3566c1[_0x137921(0x2514)][_0x137921(0x15f4)],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':'name','line1':_0x137921(0x286a),'line2':[_0x137921(0x19eb),_0x137921(0x113f)],'line3':'','labelAll':_0x4ae1fd['instant'](_0x137921(0x2050)),'labelSelected':_0x4ae1fd['instant']('APP.SELECTED_AGENTS'),'transferCallback':function(){const _0x24b957=_0x137921,_0x149106=_0x3f65c0()[_0x24b957(0x1883)](_0x3566c1['startingSelectedItems'],_0x3566c1[_0x24b957(0x1ecf)],'id');_0x3566c1[_0x24b957(0x132)]=_0x3f65c0()[_0x24b957(0x2635)](_0x149106)?![]:!![];}};function _0x4198d9(){const _0x5b681e=_0x137921;return _0x4a0ba7['hasRole'](_0x5b681e(0x174b))?_0x42aad7()[_0x5b681e(0x129e)](function(_0x3bcf58){const _0x502a18=_0x5b681e;_0x51461e[_0x502a18(0x1980)]({'title':_0x3bcf58[_0x502a18(0x107b)]?_0x502a18(0x262a)+_0x3bcf58['status']+_0x502a18(0x1315)+_0x3bcf58[_0x502a18(0x167f)]:_0x502a18(0x557),'msg':_0x3bcf58['status']?JSON['stringify'](_0x3bcf58[_0x502a18(0x524)]):_0x3bcf58[_0x502a18(0xd5f)]()});}):_0x5f3034()[_0x5b681e(0x146b)](function(_0x55525c){return _0x3566c1['section']=_0x55525c,_0x42aad7();})['catch'](function(_0x2eae8f){const _0x2a3dde=_0x5b681e;_0x51461e[_0x2a3dde(0x1980)]({'title':_0x2eae8f['status']?'API:'+_0x2eae8f['status']+'\x20-\x20'+_0x2eae8f[_0x2a3dde(0x167f)]:_0x2a3dde(0x557),'msg':_0x2eae8f['status']?JSON[_0x2a3dde(0x10bb)](_0x2eae8f['data']):_0x2eae8f['toString']()});});}function _0x5f3034(){return _0x5d93c0(function(_0x18cb19,_0x16af80){const _0x4cf107=a0_0x3bb9;_0x229fb9[_0x4cf107(0x1366)][_0x4cf107(0x16b4)]({'userProfileId':_0x3566c1[_0x4cf107(0x2321)][_0x4cf107(0x209a)],'name':_0x4cf107(0xca8)})['$promise'][_0x4cf107(0x146b)](function(_0x4f17c3){const _0x42ed50=_0x4cf107,_0x3959df=_0x4f17c3&&_0x4f17c3['rows']?_0x4f17c3[_0x42ed50(0x19c7)][0x0]:null;_0x18cb19(_0x3959df);})[_0x4cf107(0x129e)](function(_0x28adce){_0x16af80(_0x28adce);});});}function _0x42aad7(){return _0x5d93c0(function(_0x3c4af1,_0x3946ff){const _0x4e50f3=a0_0x3bb9;return _0x2bfaf8()[_0x4e50f3(0x146b)](function(_0x502889){const _0xfd9562=_0x4e50f3;return _0x3566c1[_0xfd9562(0x1fd6)]=_0x502889['rows']?_0x502889[_0xfd9562(0x19c7)]:[],_0x4a0ba7[_0xfd9562(0x23e0)](_0xfd9562(0x174b))?_0x502889:_0x3566c1[_0xfd9562(0x2146)]?_0x3566c1[_0xfd9562(0x2146)][_0xfd9562(0x11d2)]?_0x502889:_0xba534():null;})[_0x4e50f3(0x146b)](function(_0x224eda){const _0x308abf=_0x4e50f3,_0x310fe1=_0x224eda&&_0x224eda[_0x308abf(0x19c7)]?_0x224eda[_0x308abf(0x19c7)]:[];return _0x3566c1[_0x308abf(0xc4e)]=_0x3f65c0()[_0x308abf(0x205)](_0x310fe1,function(_0x482b93){const _0x29754f=_0x308abf;return _0x3f65c0()['find'](_0x3566c1[_0x29754f(0x1fd6)],{'id':_0x4a0ba7['hasRole'](_0x29754f(0x174b))||_0x3566c1[_0x29754f(0x2146)][_0x29754f(0x11d2)]?_0x482b93['id']:_0x482b93['resourceId']});}),_0x3566c1[_0x308abf(0x2e8)]=angular['copy'](_0x3566c1['allowedItems']),_0x3566c1[_0x308abf(0x1fd6)][_0x308abf(0x1df5)](function(_0x338b11){const _0x4677a3=_0x308abf,_0x1a837f=_0x3f65c0()[_0x4677a3(0xc84)](_0x3566c1[_0x4677a3(0xc4e)],{'id':_0x338b11['id']});_0x4a0ba7[_0x4677a3(0x23e0)](_0x4677a3(0x174b))?_0x338b11[_0x4677a3(0x146f)]=!![]:_0x338b11[_0x4677a3(0x146f)]=typeof _0x1a837f!==_0x4677a3(0x2274)?!![]:![];}),_0x5a0319();})[_0x4e50f3(0x146b)](function(_0x4bb81e){const _0x1c415f=_0x4e50f3,_0x51998d=_0x4bb81e&&_0x4bb81e[_0x1c415f(0x19c7)]?_0x4bb81e[_0x1c415f(0x19c7)]:[];_0x3566c1['selectedItems']=_0x3f65c0()[_0x1c415f(0x205)](_0x51998d,function(_0x19d1c0){const _0x1b849b=_0x1c415f,_0xe67298=_0x3f65c0()['find'](_0x3566c1[_0x1b849b(0x1fd6)],{'id':_0x19d1c0['id']});return _0xe67298['penalty']=_0x19d1c0[_0x1b849b(0x12db)]?_0x1b849b(0x2505)+_0x19d1c0[_0x1b849b(0x12db)][_0x1b849b(0x188d)]:'',_0xe67298[_0x1b849b(0x113f)]=typeof _0x19d1c0[_0x1b849b(0x113f)]!==_0x1b849b(0x2274)?'<'+_0x19d1c0['internal']+'>':'',_0xe67298;}),_0x3566c1[_0x1c415f(0xa65)]=angular[_0x1c415f(0x235a)](_0x3566c1[_0x1c415f(0x1ecf)]),_0x3566c1['dualMultiselectOptions']['selectedItems']=_0x3566c1[_0x1c415f(0x1ecf)],_0x3566c1[_0x1c415f(0x1f8a)]['items']=_0x3f65c0()[_0x1c415f(0x2796)](_0x3566c1[_0x1c415f(0xc4e)],_0x3566c1[_0x1c415f(0x1f8a)][_0x1c415f(0x1ecf)],'id'),_0x3c4af1();})[_0x4e50f3(0x129e)](function(_0x5e0c54){_0x3946ff(_0x5e0c54);});});}function _0xba534(){return _0x5d93c0(function(_0x621886,_0x23cc8c){const _0x84f11d=a0_0x3bb9;return _0x229fb9[_0x84f11d(0xdcc)]['get']({'sectionId':_0x3566c1[_0x84f11d(0x2146)]['id'],'nolimit':!![]})[_0x84f11d(0x2945)]['then'](function(_0x2aacdd){_0x621886(_0x2aacdd);})[_0x84f11d(0x129e)](function(_0x32dfe6){_0x23cc8c(_0x32dfe6);});});}function _0x5a0319(){return _0x5d93c0(function(_0x1fec47,_0x2c64a7){const _0x53a11c=a0_0x3bb9;return _0x229fb9[_0x53a11c(0x189e)]['getAgents']({'id':_0x3566c1['chatWebsite']['id'],'fields':_0x53a11c(0x1569),'nolimit':!![],'role':'agent'})[_0x53a11c(0x2945)][_0x53a11c(0x146b)](function(_0x73a4d8){_0x1fec47(_0x73a4d8);})[_0x53a11c(0x129e)](function(_0x4f4688){_0x2c64a7(_0x4f4688);});});}function _0x2bfaf8(){return _0x5d93c0(function(_0x296e2d,_0x28a134){const _0x27a76d=a0_0x3bb9;return _0x229fb9[_0x27a76d(0xe7b)][_0x27a76d(0x16b4)]({'fields':_0x27a76d(0x1569),'nolimit':!![],'role':_0x27a76d(0x1755)})[_0x27a76d(0x2945)][_0x27a76d(0x146b)](function(_0x2f628e){_0x296e2d(_0x2f628e);})[_0x27a76d(0x129e)](function(_0x160578){_0x28a134(_0x160578);});});}function _0x370aaf(_0x49457f){return _0x5d93c0(function(_0x220db7,_0x12cb9c){const _0x16b55a=a0_0x3bb9;_0x3f65c0()[_0x16b55a(0x2635)](_0x49457f)?_0x220db7():_0x229fb9['chatWebsite'][_0x16b55a(0x135e)]({'id':_0x3566c1[_0x16b55a(0x189e)]['id'],'ids':_0x3f65c0()[_0x16b55a(0x205)](_0x49457f,'id')})[_0x16b55a(0x2945)]['then'](function(){_0x220db7();})['catch'](function(_0xb39b8){_0x12cb9c(_0xb39b8);});});}function _0x9382b8(_0x4a0aa9){return _0x5d93c0(function(_0x1e99a7,_0x4e601a){const _0xe434b=a0_0x3bb9;_0x3f65c0()['isEmpty'](_0x4a0aa9)?_0x1e99a7():_0x229fb9[_0xe434b(0x189e)][_0xe434b(0x1f53)]({'id':_0x3566c1[_0xe434b(0x189e)]['id'],'ids':_0x3f65c0()['map'](_0x4a0aa9,'id')})[_0xe434b(0x2945)][_0xe434b(0x146b)](function(){_0x1e99a7();})[_0xe434b(0x129e)](function(_0x4c03e9){_0x4e601a(_0x4c03e9);});});}function _0x27e000(){const _0x1a7b07=_0x137921,_0x34a7e3=_0x3f65c0()['differenceBy'](_0x3566c1[_0x1a7b07(0xa65)],_0x3566c1[_0x1a7b07(0x1ecf)],'id'),_0x315d5f=_0x3f65c0()['differenceBy'](_0x3566c1[_0x1a7b07(0x1ecf)],_0x3566c1['startingSelectedItems'],'id');return _0x9382b8(_0x34a7e3)['then'](function(){return _0x370aaf(_0x315d5f);})[_0x1a7b07(0x146b)](function(){const _0xe4a54=_0x1a7b07;_0x3566c1[_0xe4a54(0x132)]=![],_0x3566c1[_0xe4a54(0x2e8)]=angular[_0xe4a54(0x235a)](_0x3566c1[_0xe4a54(0xc4e)]),_0x3566c1[_0xe4a54(0xa65)]=angular['copy'](_0x3566c1[_0xe4a54(0x1ecf)]),_0x51461e[_0xe4a54(0x1c75)]({'title':_0xe4a54(0x4c0),'msg':_0xe4a54(0x26be)});})[_0x1a7b07(0x129e)](function(_0x5139f1){const _0x35a20f=_0x1a7b07;_0x51461e[_0x35a20f(0x1980)]({'title':_0x5139f1[_0x35a20f(0x107b)]?'API:'+_0x5139f1[_0x35a20f(0x107b)]+_0x35a20f(0x1315)+_0x5139f1['statusText']:'SYSTEM:LISTS_ASSOCIATION','msg':_0x5139f1['status']?JSON['stringify'](_0x5139f1['data']):_0x5139f1[_0x35a20f(0xd5f)]()});});}function _0x6e0d54(){const _0xdf8756=_0x137921;_0x143c4a[_0xdf8756(0x2458)]();}}const _0x125bc9=_0x385ee8;;_0x838ff9['$inject']=[_0x313a4d(0x23df),_0x313a4d(0x1fe4)];function _0x838ff9(_0x6f00e1,_0x1cd5bd){const _0x315b4e=_0x313a4d,_0x4496af=this,_0xef9e8b=0x8,_0x261739=_0xef9e8b*0x400*0x400;_0x4496af[_0x315b4e(0x189e)]={},_0x4496af[_0x315b4e(0x2514)],_0x4496af['ngFlowOptions']={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x261739,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x4496af[_0x315b4e(0x1376)]={'flow':{}},_0x4496af[_0x315b4e(0x240d)]=![],_0x4496af['fileAdded']=_0x31a590,_0x4496af[_0x315b4e(0x1dc6)]=_0x514b54,_0x4496af[_0x315b4e(0xc4c)]=_0x4ccf65,_0x4496af[_0x315b4e(0x5aa)]=_0x19f738;function _0x19f738(_0xa8e021,_0x21b2df){const _0x2ba514=_0x315b4e;_0x4496af[_0x2ba514(0x189e)]=angular[_0x2ba514(0x235a)](_0xa8e021),_0x4496af[_0x2ba514(0x2514)]=typeof _0x21b2df!==_0x2ba514(0x2274)?_0x21b2df:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x4496af[_0x2ba514(0x4c3)]['target']=_0x2ba514(0x7b2)['replace'](_0x2ba514(0xa55),_0x4496af[_0x2ba514(0x189e)]['id']),_0x4496af[_0x2ba514(0x189e)]['images']=[];}function _0x31a590(_0x28b9d2){const _0x878d8f=_0x315b4e,_0x45a020=['png',_0x878d8f(0x621)];if(!_0x3f65c0()['includes'](_0x45a020,_0x28b9d2[_0x878d8f(0x193f)]()))return _0x1cd5bd['error']({'title':_0x878d8f(0x4c6)+_0x28b9d2[_0x878d8f(0x193f)](),'msg':_0x878d8f(0x208f)+_0x45a020[_0x878d8f(0xb47)]()}),![];if(_0x28b9d2[_0x878d8f(0x4cc)]>_0x261739)return _0x1cd5bd['error']({'title':_0x878d8f(0x625),'msg':'The\x20max\x20allowed\x20size\x20is\x20'+_0xef9e8b+'MB'}),![];const _0x22007b={'id':_0x28b9d2[_0x878d8f(0x1276)],'file':_0x28b9d2,'type':_0x878d8f(0x159c)};return _0x4496af[_0x878d8f(0x189e)]['images'][_0x878d8f(0xb3d)](_0x22007b),!![];}function _0x514b54(){const _0x37585a=_0x315b4e;_0x4496af['ngFlow'][_0x37585a(0x963)][_0x37585a(0x1da1)]['headers']={'X-Requested-With':_0x37585a(0x1f8f),'Authorization':_0x37585a(0x2745)+_0x6f00e1[_0x37585a(0x16b4)]('motion.token')},_0x4496af[_0x37585a(0x1376)][_0x37585a(0x963)][_0x37585a(0x1dc6)]();}function _0x4ccf65(_0x1eb8a5){const _0x468f03=_0x315b4e;angular[_0x468f03(0x1df5)](_0x4496af['chatWebsite'][_0x468f03(0x1f07)],function(_0x901e93){const _0x2a5050=_0x468f03;if(_0x901e93['id']===_0x1eb8a5[_0x2a5050(0x1276)]){const _0x336deb=new FileReader();_0x336deb[_0x2a5050(0xa0c)](_0x901e93[_0x2a5050(0x252e)]['file']),_0x336deb['onload']=function(_0x59b9de){const _0x39d272=_0x2a5050;_0x901e93[_0x39d272(0x20cc)]=_0x59b9de[_0x39d272(0xe1d)][_0x39d272(0x61a)];},_0x901e93[_0x2a5050(0x1142)]='image';}});}}const _0x4303c2=_0x838ff9;;_0x18ed78['$inject']=['$mdDialog','$q',_0x313a4d(0x1fe4),_0x313a4d(0x2265),'chatWebsite','api','Auth',_0x313a4d(0x2514)];function _0x18ed78(_0x9ce2fa,_0x2030e5,_0x5518d1,_0xc05d77,_0x558e1f,_0xf7e8db,_0x5e3f2e,_0x4dca15){const _0x18541f=_0x313a4d,_0xbcf89d=this;_0xbcf89d['currentUser']=_0x5e3f2e[_0x18541f(0xb12)](),_0xbcf89d['errors']=[],_0xbcf89d[_0x18541f(0x1189)]=_0x18541f(0xbe6)+(_0xc05d77[_0x18541f(0x8f2)]||_0xc05d77[_0x18541f(0x1873)])[_0x18541f(0x1c37)](),_0xbcf89d[_0x18541f(0x1755)]=angular[_0x18541f(0x235a)](_0xc05d77),_0xbcf89d[_0x18541f(0x2514)]=_0x4dca15,_0xbcf89d['hasModulePermissions']={};if(_0xbcf89d[_0x18541f(0x1755)][_0x18541f(0x168a)])switch(_0xbcf89d[_0x18541f(0x1755)][_0x18541f(0x8f2)]?_0xbcf89d[_0x18541f(0x1755)][_0x18541f(0x8f2)]['toLowerCase']():_0xbcf89d[_0x18541f(0x1755)][_0x18541f(0x1873)]['toLowerCase']()){case'custom':break;case _0x18541f(0xeaa):{const _0x486467=_0xbcf89d[_0x18541f(0x1755)]['appdata'][_0x18541f(0x10c8)](',');_0xbcf89d['agent'][_0x18541f(0x2293)]=_0x486467[0x0],_0xbcf89d[_0x18541f(0x1755)][_0x18541f(0x90b)]=_0x486467[0x1],_0xbcf89d[_0x18541f(0x1755)][_0x18541f(0xaf3)]=_0x486467['slice'](0x2,_0x486467['length'])[_0x18541f(0xb47)](',');}break;case _0x18541f(0xa46):{const _0x4762ec=_0xbcf89d[_0x18541f(0x1755)][_0x18541f(0x168a)][_0x18541f(0x10c8)](',');_0xbcf89d[_0x18541f(0x1755)][_0x18541f(0x153a)]=_0x4762ec[0x0],_0xbcf89d[_0x18541f(0x1755)][_0x18541f(0x1392)]=_0x4762ec[0x1],_0xbcf89d[_0x18541f(0x1755)][_0x18541f(0x2217)]=_0x4762ec[0x2],_0xbcf89d[_0x18541f(0x1755)][_0x18541f(0x90b)]=_0x4762ec[0x3],_0xbcf89d['agent'][_0x18541f(0xaf3)]=_0x4762ec[_0x18541f(0x1298)](0x4,_0x4762ec[_0x18541f(0x402)])[_0x18541f(0xb47)](',');}break;case _0x18541f(0x17d6):{const _0x5ebdb7=_0xbcf89d[_0x18541f(0x1755)][_0x18541f(0x168a)]['split'](',');_0xbcf89d[_0x18541f(0x1755)][_0x18541f(0x1651)]=_0x5ebdb7[0x0],_0xbcf89d[_0x18541f(0x1755)][_0x18541f(0x252)]=_0x5ebdb7[0x1],_0xbcf89d['agent'][_0x18541f(0x1039)]=_0x5ebdb7[0x2],_0xbcf89d[_0x18541f(0x1755)]['botname']=_0x5ebdb7[0x3],_0xbcf89d[_0x18541f(0x1755)][_0x18541f(0xaf3)]=_0x5ebdb7[_0x18541f(0x1298)](0x4,_0x5ebdb7['length'])[_0x18541f(0xb47)](',');}break;case _0x18541f(0x1713):{const _0x11c8b=_0xbcf89d[_0x18541f(0x1755)][_0x18541f(0x168a)][_0x18541f(0x10c8)](',');_0xbcf89d['agent']['times']=isNaN(_0x11c8b[0x0])?_0x11c8b[0x0]:parseInt(_0x11c8b[0x0],0xa),_0xbcf89d['agent'][_0x18541f(0xa8d)]=_0x11c8b['slice'](0x1,_0x11c8b[_0x18541f(0x402)])['join'](',');}break;case _0x18541f(0x7fd):_0xbcf89d[_0x18541f(0x1755)][_0x18541f(0xa8d)]=_0xbcf89d[_0x18541f(0x1755)][_0x18541f(0x168a)];break;case _0x18541f(0x26ba):_0xbcf89d['agent']['name']=_0xbcf89d['agent']['appdata'][_0x18541f(0x10c8)]('=')[0x0],_0xbcf89d[_0x18541f(0x1755)]['value']=_0xbcf89d['agent'][_0x18541f(0x168a)]['split']('=')[0x1];break;case _0x18541f(0x1ecb):_0xbcf89d['agent'][_0x18541f(0x9e0)]=_0xbcf89d[_0x18541f(0x1755)][_0x18541f(0x168a)];break;default:{const _0x3f5ca4=_0xbcf89d['agent'][_0x18541f(0x168a)][_0x18541f(0x10c8)](',');_0xbcf89d[_0x18541f(0x1755)][_0x18541f(0x1755)]=_0x3f65c0()[_0x18541f(0x2635)](_0x3f5ca4[0x0])?_0x3f5ca4[0x0]:isNaN(_0x3f5ca4[0x0])?_0x3f5ca4[0x0]:parseInt(_0x3f5ca4[0x0],0xa),_0xbcf89d['agent'][_0x18541f(0xa9c)]=_0x3f65c0()[_0x18541f(0x2635)](_0x3f5ca4[0x1])?_0x3f5ca4[0x1]:isNaN(_0x3f5ca4[0x1])?_0x3f5ca4[0x1]:parseInt(_0x3f5ca4[0x1],0xa);}break;}else _0xbcf89d[_0x18541f(0x1755)]['timeout']=0x1e;_0xbcf89d[_0x18541f(0x1755)][_0x18541f(0x1142)]&&_0xbcf89d[_0x18541f(0x1755)][_0x18541f(0x1142)]['toLowerCase']()===_0x18541f(0xc9c)&&_0xbcf89d['agent']['appType'][_0x18541f(0x256e)]()==='outbounddial'&&(_0xbcf89d['agent']['prefix']=_0xbcf89d[_0x18541f(0x1755)]['phone']?_0xbcf89d[_0x18541f(0x1755)][_0x18541f(0x1d55)][_0x18541f(0x10c8)]('$')[0x0]:undefined,_0xbcf89d[_0x18541f(0x1755)]['callerId']=_0xbcf89d[_0x18541f(0x1755)][_0x18541f(0x11be)]?_0x18541f(0x1b60)+_0xbcf89d[_0x18541f(0x1755)][_0x18541f(0x11be)]:undefined);_0xbcf89d['saveChatWebsiteApp']=_0x9741f2,_0xbcf89d[_0x18541f(0x13f3)]=_0x1989af,_0x5e3f2e[_0x18541f(0x23e0)](_0x18541f(0x174b))?_0xf7e8db[_0x18541f(0xe7b)][_0x18541f(0x16b4)]({'fields':'id,name','role':_0x18541f(0x1755),'sort':'name','nolimit':'true'})[_0x18541f(0x2945)][_0x18541f(0x146b)](function(_0x5698a7){const _0x10d154=_0x18541f;_0xbcf89d[_0x10d154(0x23c0)]=_0x5698a7['rows']||[];})[_0x18541f(0x129e)](function(_0x54c795){const _0x4afa36=_0x18541f;_0x5518d1['error']({'title':_0x54c795[_0x4afa36(0x107b)]?_0x4afa36(0x262a)+_0x54c795[_0x4afa36(0x107b)]+'\x20-\x20'+_0x54c795['statusText']:'SYSTEM:GET_AGENTS','msg':_0x54c795[_0x4afa36(0x524)]?JSON[_0x4afa36(0x10bb)](_0x54c795[_0x4afa36(0x524)]):_0x54c795['toString']()});}):_0xf7e8db['user']['get']({'fields':_0x18541f(0x7a7),'role':'agent','sort':_0x18541f(0x19eb),'nolimit':'true'})['$promise'][_0x18541f(0x146b)](function(_0x2e90d1){const _0x3ee78b=_0x18541f;_0xbcf89d[_0x3ee78b(0x23c0)]=_0x2e90d1[_0x3ee78b(0x19c7)]||[];})['then'](function(){const _0x38c3e9=_0x18541f;return _0xf7e8db[_0x38c3e9(0x1366)]['get']({'userProfileId':_0xbcf89d[_0x38c3e9(0x2321)]['userProfileId'],'sectionId':0xca})[_0x38c3e9(0x2945)];})['then'](function(_0x3e74cc){const _0x8f08a0=_0x18541f,_0x1c3751=_0x3e74cc&&_0x3e74cc[_0x8f08a0(0x19c7)]?_0x3e74cc[_0x8f08a0(0x19c7)][0x0]:null;if(!_0x1c3751){const _0x2e4cbc=[];let _0x14eaa4=null;_0xbcf89d[_0x8f08a0(0x1755)]&&(_0x14eaa4=_0x3f65c0()['find'](_0xbcf89d[_0x8f08a0(0x23c0)],{'name':_0xbcf89d['agent'][_0x8f08a0(0x1755)]}));for(let _0x1aab9c=0x0;_0x1aab9c<_0xbcf89d[_0x8f08a0(0x23c0)][_0x8f08a0(0x402)];_0x1aab9c++){_0x14eaa4&&_0xbcf89d[_0x8f08a0(0x23c0)][_0x1aab9c]['id']===_0x14eaa4['id']&&(_0xbcf89d['agents'][_0x1aab9c][_0x8f08a0(0x8ff)]=![],_0x2e4cbc[_0x8f08a0(0x1f47)](_0xbcf89d[_0x8f08a0(0x23c0)][_0x1aab9c]));}_0xbcf89d[_0x8f08a0(0x23c0)]=_0x2e4cbc;}else{if(!_0x1c3751[_0x8f08a0(0x11d2)])return _0xf7e8db[_0x8f08a0(0xdcc)][_0x8f08a0(0x16b4)]({'sectionId':_0x1c3751['id']})[_0x8f08a0(0x2945)][_0x8f08a0(0x146b)](function(_0x3f7c79){const _0x1cf32e=_0x8f08a0,_0x54c12e=_0x3f65c0()[_0x1cf32e(0x205)](_0x3f7c79[_0x1cf32e(0x19c7)],function(_0x2995e9){const _0x20f2d5=_0x1cf32e;return _0x3f65c0()[_0x20f2d5(0xc84)](_0xbcf89d['agents'],{'id':_0x2995e9['resourceId']});});let _0x10b4f6=null;_0xbcf89d[_0x1cf32e(0x1755)]&&(_0x10b4f6=_0x3f65c0()['find'](_0xbcf89d[_0x1cf32e(0x23c0)],{'name':_0xbcf89d['agent']['agent']}));if(_0x10b4f6&&!_0x3f65c0()[_0x1cf32e(0x1360)](_0x54c12e,['id',_0x10b4f6['id']])){const _0xf5d67f=_0x3f65c0()['find'](_0xbcf89d[_0x1cf32e(0x23c0)],{'id':_0x10b4f6['id']});_0xf5d67f[_0x1cf32e(0x8ff)]=![],_0x54c12e[_0x1cf32e(0x1f47)](_0xf5d67f);}_0xbcf89d[_0x1cf32e(0x23c0)]=_0x54c12e;});}})[_0x18541f(0x129e)](function(_0x5778a6){const _0x150191=_0x18541f;_0x5518d1['error']({'title':_0x5778a6['status']?_0x150191(0x262a)+_0x5778a6[_0x150191(0x107b)]+_0x150191(0x1315)+_0x5778a6[_0x150191(0x167f)]:_0x150191(0x788),'msg':_0x5778a6['data']?JSON[_0x150191(0x10bb)](_0x5778a6[_0x150191(0x524)]):_0x5778a6[_0x150191(0xd5f)]()});});function _0x9741f2(){const _0x50805f=_0x18541f;_0xbcf89d[_0x50805f(0xcef)]=[];const _0x140bbb=[];_0xbcf89d['agent'][_0x50805f(0x1142)]&&_0xbcf89d['agent'][_0x50805f(0x1142)][_0x50805f(0x256e)]()==='outbound'&&_0xbcf89d[_0x50805f(0x1755)]['appType']==='outboundDial'&&(_0xbcf89d[_0x50805f(0x1755)][_0x50805f(0x1d55)]=_0x558e1f[_0x50805f(0x1274)]?(_0xbcf89d[_0x50805f(0x1755)]['prefix']||'')+_0x50805f(0x2147)+_0x558e1f[_0x50805f(0x1274)]+'}':(_0xbcf89d[_0x50805f(0x1755)][_0x50805f(0x1e12)]||'')+'${EXTEN}',_0x558e1f['recordingFormat']!==_0x50805f(0x1642)?_0xbcf89d[_0x50805f(0x1755)]['options'][_0x50805f(0x172b)](_0x50805f(0x1ea4))<0x0&&(_0xbcf89d[_0x50805f(0x1755)]['options']+=_0x50805f(0x1ea4)):_0xbcf89d['agent'][_0x50805f(0xa08)]=_0xbcf89d[_0x50805f(0x1755)][_0x50805f(0xa08)][_0x50805f(0x5f4)]('U(xcally-mixmonitor-context)',''));const _0x2ebb2a=_0x3f65c0()[_0x50805f(0xc84)](_0xbcf89d[_0x50805f(0x23c0)],{'name':_0xbcf89d[_0x50805f(0x1755)][_0x50805f(0x1755)]});_0x2ebb2a&&(_0xbcf89d[_0x50805f(0x1755)][_0x50805f(0xea2)]=_0x2ebb2a['id']);if(_0xbcf89d[_0x50805f(0x1755)]['appType']&&_0xbcf89d[_0x50805f(0x1755)][_0x50805f(0x8f2)]===_0x50805f(0x1802)){}else switch((_0xbcf89d['agent'][_0x50805f(0x1873)]||_0xbcf89d[_0x50805f(0x1755)][_0x50805f(0x8f2)])[_0x50805f(0x256e)]()){case _0x50805f(0x26ba):_0xbcf89d['agent']['appdata']=_0xbcf89d[_0x50805f(0x1755)][_0x50805f(0x19eb)]+'='+_0xbcf89d['agent'][_0x50805f(0x175d)];break;case _0x50805f(0x1802):break;default:_0x140bbb[0x0]=_0xbcf89d[_0x50805f(0x1755)][_0x50805f(0x1755)],_0x140bbb[0x1]=_0xbcf89d[_0x50805f(0x1755)]['timeout'],_0xbcf89d[_0x50805f(0x1755)][_0x50805f(0x168a)]=_0x140bbb[_0x50805f(0xb47)](',');}_0x1989af(_0xbcf89d[_0x50805f(0x1755)]);}function _0x1989af(_0x343326){const _0x338b16=_0x18541f;_0x9ce2fa[_0x338b16(0x2458)](_0x343326);}}const _0x102235=_0x18ed78;;_0xdfb71[_0x313a4d(0x11c2)]=['$mdDialog','$q',_0x313a4d(0x1fe4),_0x313a4d(0x2265),_0x313a4d(0x189e),'api',_0x313a4d(0xa87),'crudPermissions'];function _0xdfb71(_0x4705eb,_0x521da8,_0x42a7ea,_0x548385,_0xdebe6a,_0x5f05a0,_0x42d73d,_0x45787d){const _0x41042f=_0x313a4d,_0x36ddb6=this;_0x36ddb6['currentUser']=_0x42d73d[_0x41042f(0xb12)](),_0x36ddb6[_0x41042f(0xcef)]=[],_0x36ddb6[_0x41042f(0x1189)]=_0x41042f(0xbe6)+(_0x548385['appType']||_0x548385[_0x41042f(0x1873)])[_0x41042f(0x1c37)](),_0x36ddb6[_0x41042f(0x17d6)]=angular[_0x41042f(0x235a)](_0x548385),_0x36ddb6[_0x41042f(0x2514)]=_0x45787d,_0x36ddb6[_0x41042f(0x855)]={};if(_0x36ddb6[_0x41042f(0x17d6)][_0x41042f(0x168a)])switch(_0x36ddb6[_0x41042f(0x17d6)][_0x41042f(0x8f2)]?_0x36ddb6[_0x41042f(0x17d6)]['appType'][_0x41042f(0x256e)]():_0x36ddb6['amazonlex'][_0x41042f(0x1873)][_0x41042f(0x256e)]()){case'custom':break;case _0x41042f(0xeaa):{const _0x4dae47=_0x36ddb6[_0x41042f(0x17d6)][_0x41042f(0x168a)]['split'](',');_0x36ddb6[_0x41042f(0x17d6)]['key']=_0x4dae47[0x0],_0x36ddb6[_0x41042f(0x17d6)][_0x41042f(0x90b)]=_0x4dae47[0x1],_0x36ddb6[_0x41042f(0x17d6)][_0x41042f(0xaf3)]=_0x4dae47['slice'](0x2,_0x4dae47[_0x41042f(0x402)])[_0x41042f(0xb47)](',');}break;case _0x41042f(0xa46):{const _0x2882f7=_0x36ddb6[_0x41042f(0x17d6)][_0x41042f(0x168a)][_0x41042f(0x10c8)](',');_0x36ddb6[_0x41042f(0x17d6)][_0x41042f(0x153a)]=_0x2882f7[0x0],_0x36ddb6[_0x41042f(0x17d6)][_0x41042f(0x1392)]=_0x2882f7[0x1],_0x36ddb6[_0x41042f(0x17d6)][_0x41042f(0x2217)]=_0x2882f7[0x2],_0x36ddb6['amazonlex'][_0x41042f(0x90b)]=_0x2882f7[0x3],_0x36ddb6[_0x41042f(0x17d6)][_0x41042f(0xaf3)]=_0x2882f7[_0x41042f(0x1298)](0x4,_0x2882f7[_0x41042f(0x402)])[_0x41042f(0xb47)](',');}break;case _0x41042f(0x17d6):{const _0x1ec7b2=_0x36ddb6[_0x41042f(0x17d6)][_0x41042f(0x168a)][_0x41042f(0x10c8)](',');_0x36ddb6['amazonlex'][_0x41042f(0x1651)]=_0x1ec7b2[0x0],_0x36ddb6[_0x41042f(0x17d6)][_0x41042f(0x252)]=_0x1ec7b2[0x1],_0x36ddb6[_0x41042f(0x17d6)][_0x41042f(0x1039)]=_0x1ec7b2[0x2],_0x36ddb6[_0x41042f(0x17d6)][_0x41042f(0x8dd)]=_0x1ec7b2[0x3],_0x36ddb6[_0x41042f(0x17d6)][_0x41042f(0xaf3)]=_0x1ec7b2[_0x41042f(0x1298)](0x4,_0x1ec7b2[_0x41042f(0x402)])[_0x41042f(0xb47)](',');}break;case _0x41042f(0x1713):{const _0x61e20a=_0x36ddb6[_0x41042f(0x17d6)][_0x41042f(0x168a)]['split'](',');_0x36ddb6[_0x41042f(0x17d6)][_0x41042f(0x583)]=isNaN(_0x61e20a[0x0])?_0x61e20a[0x0]:parseInt(_0x61e20a[0x0],0xa),_0x36ddb6[_0x41042f(0x17d6)]['text']=_0x61e20a[_0x41042f(0x1298)](0x1,_0x61e20a[_0x41042f(0x402)])[_0x41042f(0xb47)](',');}break;case _0x41042f(0x7fd):_0x36ddb6[_0x41042f(0x17d6)][_0x41042f(0xa8d)]=_0x36ddb6[_0x41042f(0x17d6)][_0x41042f(0x168a)];break;case _0x41042f(0x26ba):_0x36ddb6[_0x41042f(0x17d6)][_0x41042f(0x19eb)]=_0x36ddb6[_0x41042f(0x17d6)][_0x41042f(0x168a)]['split']('=')[0x0],_0x36ddb6[_0x41042f(0x17d6)][_0x41042f(0x175d)]=_0x36ddb6[_0x41042f(0x17d6)][_0x41042f(0x168a)][_0x41042f(0x10c8)]('=')[0x1];break;case _0x41042f(0x1ecb):_0x36ddb6[_0x41042f(0x17d6)][_0x41042f(0x9e0)]=_0x36ddb6[_0x41042f(0x17d6)][_0x41042f(0x168a)];break;default:{const _0x1946a1=_0x36ddb6['amazonlex'][_0x41042f(0x168a)][_0x41042f(0x10c8)](',');_0x36ddb6[_0x41042f(0x17d6)][_0x41042f(0x1651)]=_0x3f65c0()[_0x41042f(0x2635)](_0x1946a1[0x0])?_0x1946a1[0x0]:isNaN(_0x1946a1[0x0])?_0x1946a1[0x0]:parseInt(_0x1946a1[0x0],0xa),_0x36ddb6['amazonlex'][_0x41042f(0x252)]=_0x3f65c0()[_0x41042f(0x2635)](_0x1946a1[0x1])?_0x1946a1[0x1]:isNaN(_0x1946a1[0x1])?_0x1946a1[0x1]:parseInt(_0x1946a1[0x1],0xa),_0x36ddb6[_0x41042f(0x17d6)][_0x41042f(0x1039)]=_0x3f65c0()[_0x41042f(0x2635)](_0x1946a1[0x2])?_0x1946a1[0x2]:isNaN(_0x1946a1[0x2])?_0x1946a1[0x2]:parseInt(_0x1946a1[0x2],0xa),_0x36ddb6[_0x41042f(0x17d6)][_0x41042f(0x8dd)]=_0x3f65c0()['isEmpty'](_0x1946a1[0x3])?_0x1946a1[0x3]:isNaN(_0x1946a1[0x3])?_0x1946a1[0x3]:parseInt(_0x1946a1[0x3],0xa),_0x36ddb6['amazonlex'][_0x41042f(0xaf3)]=_0x3f65c0()['isEmpty'](_0x1946a1[0x4])?_0x1946a1[0x4]:isNaN(_0x1946a1[0x4])?_0x1946a1[0x4]:parseInt(_0x1946a1[0x4],0xa);}break;}else _0x36ddb6['amazonlex'][_0x41042f(0x1039)]='us-east-1';_0x36ddb6[_0x41042f(0x17d6)][_0x41042f(0x1142)]&&_0x36ddb6[_0x41042f(0x17d6)][_0x41042f(0x1142)]['toLowerCase']()==='outbound'&&_0x36ddb6[_0x41042f(0x17d6)][_0x41042f(0x8f2)][_0x41042f(0x256e)]()===_0x41042f(0x3bb)&&(_0x36ddb6[_0x41042f(0x17d6)]['prefix']=_0x36ddb6['amazonlex'][_0x41042f(0x1d55)]?_0x36ddb6[_0x41042f(0x17d6)]['phone'][_0x41042f(0x10c8)]('$')[0x0]:undefined,_0x36ddb6[_0x41042f(0x17d6)][_0x41042f(0x1d43)]=_0x36ddb6[_0x41042f(0x17d6)][_0x41042f(0x11be)]?_0x41042f(0x1b60)+_0x36ddb6[_0x41042f(0x17d6)][_0x41042f(0x11be)]:undefined);_0x36ddb6[_0x41042f(0x2213)]=_0x367d87,_0x36ddb6[_0x41042f(0x13f3)]=_0x45b7a6;function _0x367d87(){const _0xd084b8=_0x41042f;_0x36ddb6[_0xd084b8(0xcef)]=[];const _0x2eea77=[];_0x36ddb6[_0xd084b8(0x17d6)][_0xd084b8(0x1142)]&&_0x36ddb6['amazonlex'][_0xd084b8(0x1142)][_0xd084b8(0x256e)]()===_0xd084b8(0xc9c)&&_0x36ddb6[_0xd084b8(0x17d6)][_0xd084b8(0x8f2)]===_0xd084b8(0x118b)&&(_0x36ddb6['amazonlex'][_0xd084b8(0x1d55)]=_0xdebe6a['cutdigits']?(_0x36ddb6[_0xd084b8(0x17d6)]['prefix']||'')+_0xd084b8(0x2147)+_0xdebe6a[_0xd084b8(0x1274)]+'}':(_0x36ddb6[_0xd084b8(0x17d6)][_0xd084b8(0x1e12)]||'')+_0xd084b8(0x20df),_0xdebe6a['recordingFormat']!==_0xd084b8(0x1642)?_0x36ddb6[_0xd084b8(0x17d6)][_0xd084b8(0xa08)][_0xd084b8(0x172b)](_0xd084b8(0x1ea4))<0x0&&(_0x36ddb6[_0xd084b8(0x17d6)][_0xd084b8(0xa08)]+='U(xcally-mixmonitor-context)'):_0x36ddb6[_0xd084b8(0x17d6)]['options']=_0x36ddb6[_0xd084b8(0x17d6)][_0xd084b8(0xa08)][_0xd084b8(0x5f4)](_0xd084b8(0x1ea4),''));if(_0x36ddb6['amazonlex'][_0xd084b8(0x8f2)]&&_0x36ddb6['amazonlex'][_0xd084b8(0x8f2)]===_0xd084b8(0x1802)){}else switch((_0x36ddb6[_0xd084b8(0x17d6)]['app']||_0x36ddb6[_0xd084b8(0x17d6)][_0xd084b8(0x8f2)])[_0xd084b8(0x256e)]()){case _0xd084b8(0x26ba):_0x36ddb6[_0xd084b8(0x17d6)][_0xd084b8(0x168a)]=_0x36ddb6['amazonlex'][_0xd084b8(0x19eb)]+'='+_0x36ddb6[_0xd084b8(0x17d6)][_0xd084b8(0x175d)];break;case _0xd084b8(0x1802):break;default:_0x2eea77[0x0]=_0x36ddb6['amazonlex'][_0xd084b8(0x1651)],_0x2eea77[0x1]=_0x36ddb6['amazonlex'][_0xd084b8(0x252)],_0x2eea77[0x2]=_0x36ddb6[_0xd084b8(0x17d6)][_0xd084b8(0x1039)],_0x2eea77[0x3]=_0x36ddb6[_0xd084b8(0x17d6)]['botname'],_0x2eea77[0x4]=_0x36ddb6[_0xd084b8(0x17d6)]['welcomemessage'],_0x36ddb6[_0xd084b8(0x17d6)][_0xd084b8(0x168a)]=_0x2eea77[_0xd084b8(0xb47)](',');}_0x45b7a6(_0x36ddb6[_0xd084b8(0x17d6)]);}function _0x45b7a6(_0xa4b676){const _0x3da2a3=_0x41042f;_0x4705eb[_0x3da2a3(0x2458)](_0xa4b676);}}const _0xdf96c3=_0xdfb71;;_0x173400[_0x313a4d(0x11c2)]=[_0x313a4d(0x10e8),'$q','toasty',_0x313a4d(0x2265),'chatWebsite',_0x313a4d(0x247f),_0x313a4d(0xa87),_0x313a4d(0x2514)];function _0x173400(_0x1ed572,_0x3fc025,_0x10605f,_0x245d1c,_0x5d5a94,_0x457272,_0x339224,_0x50b6c9){const _0x4b4d57=_0x313a4d,_0x2724e4=this;_0x2724e4[_0x4b4d57(0x2321)]=_0x339224['getCurrentUser'](),_0x2724e4[_0x4b4d57(0xcef)]=[],_0x2724e4[_0x4b4d57(0x1189)]=_0x4b4d57(0xbe6)+(_0x245d1c[_0x4b4d57(0x8f2)]||_0x245d1c[_0x4b4d57(0x1873)])['toUpperCase'](),_0x2724e4[_0x4b4d57(0x1713)]=angular[_0x4b4d57(0x235a)](_0x245d1c),_0x2724e4['crudPermissions']=_0x50b6c9,_0x2724e4[_0x4b4d57(0x855)]={};if(_0x2724e4[_0x4b4d57(0x1713)][_0x4b4d57(0x168a)])switch(_0x2724e4[_0x4b4d57(0x1713)][_0x4b4d57(0x8f2)]?_0x2724e4[_0x4b4d57(0x1713)][_0x4b4d57(0x8f2)][_0x4b4d57(0x256e)]():_0x2724e4[_0x4b4d57(0x1713)]['app'][_0x4b4d57(0x256e)]()){case'custom':break;case'dialogflow':{const _0x5bc82d=_0x2724e4[_0x4b4d57(0x1713)][_0x4b4d57(0x168a)][_0x4b4d57(0x10c8)](',');_0x2724e4['autoreply']['key']=_0x5bc82d[0x0],_0x2724e4[_0x4b4d57(0x1713)]['language']=_0x5bc82d[0x1],_0x2724e4[_0x4b4d57(0x1713)][_0x4b4d57(0xaf3)]=_0x5bc82d[_0x4b4d57(0x1298)](0x2,_0x5bc82d[_0x4b4d57(0x402)])['join'](',');}break;case _0x4b4d57(0xa46):{const _0x1a0bb8=_0x2724e4['autoreply'][_0x4b4d57(0x168a)][_0x4b4d57(0x10c8)](',');_0x2724e4['autoreply'][_0x4b4d57(0x153a)]=_0x1a0bb8[0x0],_0x2724e4[_0x4b4d57(0x1713)][_0x4b4d57(0x1392)]=_0x1a0bb8[0x1],_0x2724e4[_0x4b4d57(0x1713)]['privateKey']=_0x1a0bb8[0x2],_0x2724e4[_0x4b4d57(0x1713)][_0x4b4d57(0x90b)]=_0x1a0bb8[0x3],_0x2724e4[_0x4b4d57(0x1713)][_0x4b4d57(0xaf3)]=_0x1a0bb8[_0x4b4d57(0x1298)](0x4,_0x1a0bb8[_0x4b4d57(0x402)])[_0x4b4d57(0xb47)](',');}break;case _0x4b4d57(0x17d6):{const _0x3eba72=_0x2724e4[_0x4b4d57(0x1713)][_0x4b4d57(0x168a)]['split'](',');_0x2724e4[_0x4b4d57(0x1713)]['accesskeyid']=_0x3eba72[0x0],_0x2724e4[_0x4b4d57(0x1713)][_0x4b4d57(0x252)]=_0x3eba72[0x1],_0x2724e4[_0x4b4d57(0x1713)]['lexregion']=_0x3eba72[0x2],_0x2724e4[_0x4b4d57(0x1713)][_0x4b4d57(0x8dd)]=_0x3eba72[0x3],_0x2724e4[_0x4b4d57(0x1713)][_0x4b4d57(0xaf3)]=_0x3eba72[_0x4b4d57(0x1298)](0x4,_0x3eba72[_0x4b4d57(0x402)])[_0x4b4d57(0xb47)](',');}break;case _0x4b4d57(0x1713):{const _0x58a0fe=_0x2724e4['autoreply']['appdata'][_0x4b4d57(0x10c8)](',');_0x2724e4[_0x4b4d57(0x1713)]['times']=isNaN(_0x58a0fe[0x0])?_0x58a0fe[0x0]:parseInt(_0x58a0fe[0x0],0xa),_0x2724e4[_0x4b4d57(0x1713)][_0x4b4d57(0xa8d)]=_0x58a0fe['slice'](0x1,_0x58a0fe[_0x4b4d57(0x402)])[_0x4b4d57(0xb47)](',');}break;case'message':_0x2724e4[_0x4b4d57(0x1713)]['text']=_0x2724e4['autoreply'][_0x4b4d57(0x168a)];break;case'set':_0x2724e4['autoreply'][_0x4b4d57(0x19eb)]=_0x2724e4['autoreply']['appdata'][_0x4b4d57(0x10c8)]('=')[0x0],_0x2724e4['autoreply'][_0x4b4d57(0x175d)]=_0x2724e4[_0x4b4d57(0x1713)][_0x4b4d57(0x168a)]['split']('=')[0x1];break;case _0x4b4d57(0x1ecb):_0x2724e4[_0x4b4d57(0x1713)][_0x4b4d57(0x9e0)]=_0x2724e4['autoreply']['appdata'];break;default:{const _0x181ae3=_0x2724e4[_0x4b4d57(0x1713)][_0x4b4d57(0x168a)][_0x4b4d57(0x10c8)](',');_0x2724e4['autoreply'][_0x4b4d57(0x583)]=_0x3f65c0()[_0x4b4d57(0x2635)](_0x181ae3[0x0])?_0x181ae3[0x0]:isNaN(_0x181ae3[0x0])?_0x181ae3[0x0]:parseInt(_0x181ae3[0x0],0xa),_0x2724e4[_0x4b4d57(0x1713)]['text']=_0x3f65c0()['isEmpty'](_0x181ae3[0x1])?_0x181ae3[0x1]:isNaN(_0x181ae3[0x1])?_0x181ae3[0x1]:parseInt(_0x181ae3[0x1],0xa);}break;}else _0x2724e4['autoreply'][_0x4b4d57(0x583)]=0x1;_0x2724e4[_0x4b4d57(0x1713)]['type']&&_0x2724e4['autoreply'][_0x4b4d57(0x1142)][_0x4b4d57(0x256e)]()===_0x4b4d57(0xc9c)&&_0x2724e4[_0x4b4d57(0x1713)][_0x4b4d57(0x8f2)][_0x4b4d57(0x256e)]()===_0x4b4d57(0x3bb)&&(_0x2724e4['autoreply'][_0x4b4d57(0x1e12)]=_0x2724e4[_0x4b4d57(0x1713)][_0x4b4d57(0x1d55)]?_0x2724e4[_0x4b4d57(0x1713)][_0x4b4d57(0x1d55)][_0x4b4d57(0x10c8)]('$')[0x0]:undefined,_0x2724e4['autoreply'][_0x4b4d57(0x1d43)]=_0x2724e4[_0x4b4d57(0x1713)][_0x4b4d57(0x11be)]?'CALLERID(all)='+_0x2724e4['autoreply'][_0x4b4d57(0x11be)]:undefined);_0x2724e4[_0x4b4d57(0x2213)]=_0x52842f,_0x2724e4[_0x4b4d57(0x13f3)]=_0x507bc2;function _0x52842f(){const _0x4e74a4=_0x4b4d57;_0x2724e4[_0x4e74a4(0xcef)]=[];const _0x4c8a07=[];_0x2724e4[_0x4e74a4(0x1713)][_0x4e74a4(0x1142)]&&_0x2724e4[_0x4e74a4(0x1713)][_0x4e74a4(0x1142)][_0x4e74a4(0x256e)]()===_0x4e74a4(0xc9c)&&_0x2724e4[_0x4e74a4(0x1713)][_0x4e74a4(0x8f2)]===_0x4e74a4(0x118b)&&(_0x2724e4['autoreply'][_0x4e74a4(0x1d55)]=_0x5d5a94[_0x4e74a4(0x1274)]?(_0x2724e4[_0x4e74a4(0x1713)][_0x4e74a4(0x1e12)]||'')+'${EXTEN:'+_0x5d5a94[_0x4e74a4(0x1274)]+'}':(_0x2724e4['autoreply'][_0x4e74a4(0x1e12)]||'')+_0x4e74a4(0x20df),_0x5d5a94['recordingFormat']!=='none'?_0x2724e4['autoreply']['options'][_0x4e74a4(0x172b)]('U(xcally-mixmonitor-context)')<0x0&&(_0x2724e4[_0x4e74a4(0x1713)][_0x4e74a4(0xa08)]+=_0x4e74a4(0x1ea4)):_0x2724e4[_0x4e74a4(0x1713)][_0x4e74a4(0xa08)]=_0x2724e4[_0x4e74a4(0x1713)][_0x4e74a4(0xa08)][_0x4e74a4(0x5f4)](_0x4e74a4(0x1ea4),''));if(_0x2724e4['autoreply'][_0x4e74a4(0x8f2)]&&_0x2724e4[_0x4e74a4(0x1713)]['appType']===_0x4e74a4(0x1802)){}else switch((_0x2724e4[_0x4e74a4(0x1713)][_0x4e74a4(0x1873)]||_0x2724e4[_0x4e74a4(0x1713)][_0x4e74a4(0x8f2)])[_0x4e74a4(0x256e)]()){case _0x4e74a4(0x26ba):_0x2724e4[_0x4e74a4(0x1713)][_0x4e74a4(0x168a)]=_0x2724e4[_0x4e74a4(0x1713)][_0x4e74a4(0x19eb)]+'='+_0x2724e4['autoreply']['value'];break;case _0x4e74a4(0x1802):break;default:_0x4c8a07[0x0]=_0x2724e4[_0x4e74a4(0x1713)]['times'],_0x4c8a07[0x1]=_0x2724e4[_0x4e74a4(0x1713)][_0x4e74a4(0xa8d)],_0x2724e4[_0x4e74a4(0x1713)][_0x4e74a4(0x168a)]=_0x4c8a07['join'](',');}_0x507bc2(_0x2724e4[_0x4e74a4(0x1713)]);}function _0x507bc2(_0x49775a){_0x1ed572['hide'](_0x49775a);}}const _0x108937=_0x173400;;_0x54fdd0['$inject']=['$mdDialog','$q',_0x313a4d(0x1fe4),_0x313a4d(0x2265),_0x313a4d(0x189e),_0x313a4d(0x247f),_0x313a4d(0xa87),'crudPermissions'];function _0x54fdd0(_0x200254,_0x3d31bd,_0x383008,_0x5b0333,_0xb1099,_0x2f0f4a,_0x1d73ec,_0x469f91){const _0x19292d=_0x313a4d,_0x53c3db=this;_0x53c3db['currentUser']=_0x1d73ec[_0x19292d(0xb12)](),_0x53c3db[_0x19292d(0xcef)]=[],_0x53c3db['title']=_0x19292d(0xbe6)+(_0x5b0333['appType']||_0x5b0333[_0x19292d(0x1873)])[_0x19292d(0x1c37)](),_0x53c3db['close']=angular[_0x19292d(0x235a)](_0x5b0333),_0x53c3db[_0x19292d(0x2514)]=_0x469f91,_0x53c3db['hasModulePermissions']={};if(_0x53c3db['close']['appdata'])switch(_0x53c3db[_0x19292d(0xa7c)][_0x19292d(0x8f2)]?_0x53c3db[_0x19292d(0xa7c)][_0x19292d(0x8f2)][_0x19292d(0x256e)]():_0x53c3db[_0x19292d(0xa7c)][_0x19292d(0x1873)]['toLowerCase']()){case'custom':break;case _0x19292d(0xeaa):{const _0x2a5b33=_0x53c3db[_0x19292d(0xa7c)]['appdata'][_0x19292d(0x10c8)](',');_0x53c3db[_0x19292d(0xa7c)][_0x19292d(0x2293)]=_0x2a5b33[0x0],_0x53c3db[_0x19292d(0xa7c)][_0x19292d(0x90b)]=_0x2a5b33[0x1],_0x53c3db[_0x19292d(0xa7c)][_0x19292d(0xaf3)]=_0x2a5b33[_0x19292d(0x1298)](0x2,_0x2a5b33['length'])[_0x19292d(0xb47)](',');}break;case _0x19292d(0xa46):{const _0x9c2ad3=_0x53c3db[_0x19292d(0xa7c)][_0x19292d(0x168a)]['split'](',');_0x53c3db[_0x19292d(0xa7c)][_0x19292d(0x153a)]=_0x9c2ad3[0x0],_0x53c3db[_0x19292d(0xa7c)][_0x19292d(0x1392)]=_0x9c2ad3[0x1],_0x53c3db[_0x19292d(0xa7c)][_0x19292d(0x2217)]=_0x9c2ad3[0x2],_0x53c3db[_0x19292d(0xa7c)][_0x19292d(0x90b)]=_0x9c2ad3[0x3],_0x53c3db['close']['welcomemessage']=_0x9c2ad3[_0x19292d(0x1298)](0x4,_0x9c2ad3[_0x19292d(0x402)])[_0x19292d(0xb47)](',');}break;case _0x19292d(0x17d6):{const _0x45ec96=_0x53c3db['close']['appdata'][_0x19292d(0x10c8)](',');_0x53c3db[_0x19292d(0xa7c)][_0x19292d(0x1651)]=_0x45ec96[0x0],_0x53c3db[_0x19292d(0xa7c)]['secretaccesskey']=_0x45ec96[0x1],_0x53c3db[_0x19292d(0xa7c)]['lexregion']=_0x45ec96[0x2],_0x53c3db[_0x19292d(0xa7c)][_0x19292d(0x8dd)]=_0x45ec96[0x3],_0x53c3db[_0x19292d(0xa7c)]['welcomemessage']=_0x45ec96[_0x19292d(0x1298)](0x4,_0x45ec96['length'])['join'](',');}break;case'autoreply':{const _0x407600=_0x53c3db[_0x19292d(0xa7c)][_0x19292d(0x168a)][_0x19292d(0x10c8)](',');_0x53c3db[_0x19292d(0xa7c)][_0x19292d(0x583)]=isNaN(_0x407600[0x0])?_0x407600[0x0]:parseInt(_0x407600[0x0],0xa),_0x53c3db[_0x19292d(0xa7c)][_0x19292d(0xa8d)]=_0x407600[_0x19292d(0x1298)](0x1,_0x407600[_0x19292d(0x402)])[_0x19292d(0xb47)](',');}break;case _0x19292d(0x7fd):_0x53c3db[_0x19292d(0xa7c)][_0x19292d(0xa8d)]=_0x53c3db[_0x19292d(0xa7c)][_0x19292d(0x168a)];break;case _0x19292d(0x26ba):_0x53c3db['close'][_0x19292d(0x19eb)]=_0x53c3db['close'][_0x19292d(0x168a)][_0x19292d(0x10c8)]('=')[0x0],_0x53c3db[_0x19292d(0xa7c)][_0x19292d(0x175d)]=_0x53c3db['close']['appdata'][_0x19292d(0x10c8)]('=')[0x1];break;case _0x19292d(0x1ecb):_0x53c3db['close'][_0x19292d(0x9e0)]=_0x53c3db['close'][_0x19292d(0x168a)];break;default:{const _0x2e8cf8=_0x53c3db[_0x19292d(0xa7c)][_0x19292d(0x168a)][_0x19292d(0x10c8)](',');_0x53c3db[_0x19292d(0xa7c)]['disposition']=_0x3f65c0()[_0x19292d(0x2635)](_0x2e8cf8[0x0])?_0x2e8cf8[0x0]:isNaN(_0x2e8cf8[0x0])?_0x2e8cf8[0x0]:parseInt(_0x2e8cf8[0x0],0xa);}break;}else{}_0x53c3db[_0x19292d(0xa7c)]['type']&&_0x53c3db[_0x19292d(0xa7c)][_0x19292d(0x1142)][_0x19292d(0x256e)]()===_0x19292d(0xc9c)&&_0x53c3db[_0x19292d(0xa7c)][_0x19292d(0x8f2)][_0x19292d(0x256e)]()==='outbounddial'&&(_0x53c3db[_0x19292d(0xa7c)][_0x19292d(0x1e12)]=_0x53c3db['close'][_0x19292d(0x1d55)]?_0x53c3db[_0x19292d(0xa7c)][_0x19292d(0x1d55)][_0x19292d(0x10c8)]('$')[0x0]:undefined,_0x53c3db['close'][_0x19292d(0x1d43)]=_0x53c3db[_0x19292d(0xa7c)][_0x19292d(0x11be)]?'CALLERID(all)='+_0x53c3db[_0x19292d(0xa7c)]['callerID']:undefined);_0x53c3db[_0x19292d(0x2213)]=_0x469a81,_0x53c3db['closeDialog']=_0x1bc25f;function _0x469a81(){const _0x5842b0=_0x19292d;_0x53c3db[_0x5842b0(0xcef)]=[];const _0x50a78e=[];_0x53c3db[_0x5842b0(0xa7c)][_0x5842b0(0x1142)]&&_0x53c3db[_0x5842b0(0xa7c)][_0x5842b0(0x1142)][_0x5842b0(0x256e)]()===_0x5842b0(0xc9c)&&_0x53c3db[_0x5842b0(0xa7c)][_0x5842b0(0x8f2)]==='outboundDial'&&(_0x53c3db[_0x5842b0(0xa7c)][_0x5842b0(0x1d55)]=_0xb1099['cutdigits']?(_0x53c3db[_0x5842b0(0xa7c)][_0x5842b0(0x1e12)]||'')+_0x5842b0(0x2147)+_0xb1099[_0x5842b0(0x1274)]+'}':(_0x53c3db[_0x5842b0(0xa7c)][_0x5842b0(0x1e12)]||'')+_0x5842b0(0x20df),_0xb1099[_0x5842b0(0x1425)]!==_0x5842b0(0x1642)?_0x53c3db[_0x5842b0(0xa7c)][_0x5842b0(0xa08)][_0x5842b0(0x172b)](_0x5842b0(0x1ea4))<0x0&&(_0x53c3db[_0x5842b0(0xa7c)][_0x5842b0(0xa08)]+=_0x5842b0(0x1ea4)):_0x53c3db[_0x5842b0(0xa7c)]['options']=_0x53c3db['close'][_0x5842b0(0xa08)][_0x5842b0(0x5f4)]('U(xcally-mixmonitor-context)',''));if(_0x53c3db[_0x5842b0(0xa7c)][_0x5842b0(0x8f2)]&&_0x53c3db[_0x5842b0(0xa7c)][_0x5842b0(0x8f2)]===_0x5842b0(0x1802)){}else switch((_0x53c3db[_0x5842b0(0xa7c)][_0x5842b0(0x1873)]||_0x53c3db['close'][_0x5842b0(0x8f2)])[_0x5842b0(0x256e)]()){case _0x5842b0(0x26ba):_0x53c3db[_0x5842b0(0xa7c)][_0x5842b0(0x168a)]=_0x53c3db[_0x5842b0(0xa7c)]['name']+'='+_0x53c3db['close'][_0x5842b0(0x175d)];break;case'custom':break;default:_0x50a78e[0x0]=_0x53c3db[_0x5842b0(0xa7c)]['disposition'],_0x53c3db['close']['appdata']=_0x50a78e[_0x5842b0(0xb47)](',');}_0x1bc25f(_0x53c3db[_0x5842b0(0xa7c)]);}function _0x1bc25f(_0x34fe5d){const _0xbe4095=_0x19292d;_0x200254[_0xbe4095(0x2458)](_0x34fe5d);}}const _0x414932=_0x54fdd0;;_0x2ad1d8['$inject']=[_0x313a4d(0x10e8),'$q',_0x313a4d(0x1fe4),_0x313a4d(0x2265),_0x313a4d(0x189e),_0x313a4d(0x247f),_0x313a4d(0xa87),_0x313a4d(0x2514)];function _0x2ad1d8(_0x15e962,_0x22f248,_0x4bf987,_0x3c5783,_0x43d791,_0x4e1dc4,_0x1285c4,_0x47d70f){const _0x4ff0ca=_0x313a4d,_0x488d95=this;_0x488d95[_0x4ff0ca(0x2321)]=_0x1285c4[_0x4ff0ca(0xb12)](),_0x488d95['errors']=[],_0x488d95[_0x4ff0ca(0x1189)]=_0x4ff0ca(0xbe6)+(_0x3c5783[_0x4ff0ca(0x8f2)]||_0x3c5783[_0x4ff0ca(0x1873)])[_0x4ff0ca(0x1c37)](),_0x488d95[_0x4ff0ca(0xeaa)]=angular[_0x4ff0ca(0x235a)](_0x3c5783),_0x488d95[_0x4ff0ca(0x2514)]=_0x47d70f,_0x488d95[_0x4ff0ca(0x855)]={};if(_0x488d95[_0x4ff0ca(0xeaa)][_0x4ff0ca(0x168a)])switch(_0x488d95['dialogflow']['appType']?_0x488d95[_0x4ff0ca(0xeaa)][_0x4ff0ca(0x8f2)][_0x4ff0ca(0x256e)]():_0x488d95[_0x4ff0ca(0xeaa)][_0x4ff0ca(0x1873)][_0x4ff0ca(0x256e)]()){case _0x4ff0ca(0x1802):break;case _0x4ff0ca(0xeaa):{const _0x549683=_0x488d95[_0x4ff0ca(0xeaa)]['appdata'][_0x4ff0ca(0x10c8)](',');_0x488d95[_0x4ff0ca(0xeaa)]['key']=_0x549683[0x0],_0x488d95[_0x4ff0ca(0xeaa)]['language']=_0x549683[0x1],_0x488d95['dialogflow'][_0x4ff0ca(0xaf3)]=_0x549683[_0x4ff0ca(0x1298)](0x2,_0x549683[_0x4ff0ca(0x402)])[_0x4ff0ca(0xb47)](',');}break;case'dialogflowv2':{const _0x5c044c=_0x488d95['dialogflow'][_0x4ff0ca(0x168a)][_0x4ff0ca(0x10c8)](',');_0x488d95[_0x4ff0ca(0xeaa)][_0x4ff0ca(0x153a)]=_0x5c044c[0x0],_0x488d95['dialogflow'][_0x4ff0ca(0x1392)]=_0x5c044c[0x1],_0x488d95[_0x4ff0ca(0xeaa)][_0x4ff0ca(0x2217)]=_0x5c044c[0x2],_0x488d95[_0x4ff0ca(0xeaa)][_0x4ff0ca(0x90b)]=_0x5c044c[0x3],_0x488d95[_0x4ff0ca(0xeaa)][_0x4ff0ca(0xaf3)]=_0x5c044c[_0x4ff0ca(0x1298)](0x4,_0x5c044c[_0x4ff0ca(0x402)])[_0x4ff0ca(0xb47)](',');}break;case'amazonlex':{const _0x240dd9=_0x488d95[_0x4ff0ca(0xeaa)][_0x4ff0ca(0x168a)][_0x4ff0ca(0x10c8)](',');_0x488d95[_0x4ff0ca(0xeaa)][_0x4ff0ca(0x1651)]=_0x240dd9[0x0],_0x488d95[_0x4ff0ca(0xeaa)]['secretaccesskey']=_0x240dd9[0x1],_0x488d95['dialogflow'][_0x4ff0ca(0x1039)]=_0x240dd9[0x2],_0x488d95[_0x4ff0ca(0xeaa)][_0x4ff0ca(0x8dd)]=_0x240dd9[0x3],_0x488d95[_0x4ff0ca(0xeaa)]['welcomemessage']=_0x240dd9['slice'](0x4,_0x240dd9[_0x4ff0ca(0x402)])[_0x4ff0ca(0xb47)](',');}break;case _0x4ff0ca(0x1713):{const _0x5dea8b=_0x488d95[_0x4ff0ca(0xeaa)][_0x4ff0ca(0x168a)][_0x4ff0ca(0x10c8)](',');_0x488d95[_0x4ff0ca(0xeaa)][_0x4ff0ca(0x583)]=isNaN(_0x5dea8b[0x0])?_0x5dea8b[0x0]:parseInt(_0x5dea8b[0x0],0xa),_0x488d95[_0x4ff0ca(0xeaa)][_0x4ff0ca(0xa8d)]=_0x5dea8b[_0x4ff0ca(0x1298)](0x1,_0x5dea8b[_0x4ff0ca(0x402)])[_0x4ff0ca(0xb47)](',');}break;case _0x4ff0ca(0x7fd):_0x488d95[_0x4ff0ca(0xeaa)][_0x4ff0ca(0xa8d)]=_0x488d95['dialogflow']['appdata'];break;case _0x4ff0ca(0x26ba):_0x488d95[_0x4ff0ca(0xeaa)]['name']=_0x488d95[_0x4ff0ca(0xeaa)][_0x4ff0ca(0x168a)][_0x4ff0ca(0x10c8)]('=')[0x0],_0x488d95[_0x4ff0ca(0xeaa)][_0x4ff0ca(0x175d)]=_0x488d95[_0x4ff0ca(0xeaa)][_0x4ff0ca(0x168a)][_0x4ff0ca(0x10c8)]('=')[0x1];break;case'agi':_0x488d95[_0x4ff0ca(0xeaa)]['project']=_0x488d95['dialogflow'][_0x4ff0ca(0x168a)];break;default:{const _0x3c78d3=_0x488d95[_0x4ff0ca(0xeaa)][_0x4ff0ca(0x168a)][_0x4ff0ca(0x10c8)](',');_0x488d95['dialogflow']['key']=_0x3f65c0()[_0x4ff0ca(0x2635)](_0x3c78d3[0x0])?_0x3c78d3[0x0]:isNaN(_0x3c78d3[0x0])?_0x3c78d3[0x0]:parseInt(_0x3c78d3[0x0],0xa),_0x488d95[_0x4ff0ca(0xeaa)][_0x4ff0ca(0x90b)]=_0x3f65c0()[_0x4ff0ca(0x2635)](_0x3c78d3[0x1])?_0x3c78d3[0x1]:isNaN(_0x3c78d3[0x1])?_0x3c78d3[0x1]:parseInt(_0x3c78d3[0x1],0xa),_0x488d95['dialogflow']['welcomemessage']=_0x3f65c0()['isEmpty'](_0x3c78d3[0x2])?_0x3c78d3[0x2]:isNaN(_0x3c78d3[0x2])?_0x3c78d3[0x2]:parseInt(_0x3c78d3[0x2],0xa);}break;}else _0x488d95[_0x4ff0ca(0xeaa)][_0x4ff0ca(0x90b)]='en';_0x488d95[_0x4ff0ca(0xeaa)][_0x4ff0ca(0x1142)]&&_0x488d95['dialogflow'][_0x4ff0ca(0x1142)][_0x4ff0ca(0x256e)]()===_0x4ff0ca(0xc9c)&&_0x488d95[_0x4ff0ca(0xeaa)][_0x4ff0ca(0x8f2)][_0x4ff0ca(0x256e)]()==='outbounddial'&&(_0x488d95['dialogflow'][_0x4ff0ca(0x1e12)]=_0x488d95[_0x4ff0ca(0xeaa)][_0x4ff0ca(0x1d55)]?_0x488d95[_0x4ff0ca(0xeaa)]['phone'][_0x4ff0ca(0x10c8)]('$')[0x0]:undefined,_0x488d95['dialogflow'][_0x4ff0ca(0x1d43)]=_0x488d95[_0x4ff0ca(0xeaa)][_0x4ff0ca(0x11be)]?_0x4ff0ca(0x1b60)+_0x488d95[_0x4ff0ca(0xeaa)]['callerID']:undefined);_0x488d95[_0x4ff0ca(0x2213)]=_0x56412b,_0x488d95[_0x4ff0ca(0x13f3)]=_0x339ba6;function _0x56412b(){const _0x4f96f5=_0x4ff0ca;_0x488d95[_0x4f96f5(0xcef)]=[];const _0x55bf86=[];_0x488d95[_0x4f96f5(0xeaa)][_0x4f96f5(0x1142)]&&_0x488d95[_0x4f96f5(0xeaa)][_0x4f96f5(0x1142)]['toLowerCase']()===_0x4f96f5(0xc9c)&&_0x488d95['dialogflow']['appType']==='outboundDial'&&(_0x488d95[_0x4f96f5(0xeaa)]['phone']=_0x43d791[_0x4f96f5(0x1274)]?(_0x488d95[_0x4f96f5(0xeaa)]['prefix']||'')+'${EXTEN:'+_0x43d791[_0x4f96f5(0x1274)]+'}':(_0x488d95[_0x4f96f5(0xeaa)][_0x4f96f5(0x1e12)]||'')+_0x4f96f5(0x20df),_0x43d791[_0x4f96f5(0x1425)]!==_0x4f96f5(0x1642)?_0x488d95[_0x4f96f5(0xeaa)][_0x4f96f5(0xa08)][_0x4f96f5(0x172b)]('U(xcally-mixmonitor-context)')<0x0&&(_0x488d95[_0x4f96f5(0xeaa)][_0x4f96f5(0xa08)]+='U(xcally-mixmonitor-context)'):_0x488d95['dialogflow'][_0x4f96f5(0xa08)]=_0x488d95[_0x4f96f5(0xeaa)][_0x4f96f5(0xa08)][_0x4f96f5(0x5f4)]('U(xcally-mixmonitor-context)',''));if(_0x488d95[_0x4f96f5(0xeaa)][_0x4f96f5(0x8f2)]&&_0x488d95['dialogflow'][_0x4f96f5(0x8f2)]===_0x4f96f5(0x1802)){}else switch((_0x488d95['dialogflow'][_0x4f96f5(0x1873)]||_0x488d95[_0x4f96f5(0xeaa)][_0x4f96f5(0x8f2)])[_0x4f96f5(0x256e)]()){case _0x4f96f5(0x26ba):_0x488d95[_0x4f96f5(0xeaa)][_0x4f96f5(0x168a)]=_0x488d95[_0x4f96f5(0xeaa)][_0x4f96f5(0x19eb)]+'='+_0x488d95['dialogflow'][_0x4f96f5(0x175d)];break;case _0x4f96f5(0x1802):break;default:_0x55bf86[0x0]=_0x488d95['dialogflow'][_0x4f96f5(0x2293)],_0x55bf86[0x1]=_0x488d95['dialogflow']['language'],_0x55bf86[0x2]=_0x488d95[_0x4f96f5(0xeaa)][_0x4f96f5(0xaf3)],_0x488d95[_0x4f96f5(0xeaa)][_0x4f96f5(0x168a)]=_0x55bf86[_0x4f96f5(0xb47)](',');}_0x339ba6(_0x488d95[_0x4f96f5(0xeaa)]);}function _0x339ba6(_0x17c839){_0x15e962['hide'](_0x17c839);}}const _0x1d362b=_0x2ad1d8;;_0x4d4517[_0x313a4d(0x11c2)]=['$mdDialog','$q',_0x313a4d(0x1fe4),'chatWebsiteApp','chatWebsite',_0x313a4d(0x247f),_0x313a4d(0xa87),_0x313a4d(0x2514)];function _0x4d4517(_0x21c764,_0x32ea9f,_0x1c2627,_0x16c9d5,_0x21ece2,_0x118e7e,_0x53e70a,_0x354485){const _0xaed9e9=_0x313a4d,_0xd6b8c6=this;_0xd6b8c6['currentUser']=_0x53e70a['getCurrentUser'](),_0xd6b8c6[_0xaed9e9(0xcef)]=[],_0xd6b8c6[_0xaed9e9(0x1189)]=_0xaed9e9(0xbe6)+(_0x16c9d5[_0xaed9e9(0x8f2)]||_0x16c9d5['app'])[_0xaed9e9(0x1c37)](),_0xd6b8c6[_0xaed9e9(0x609)]=angular['copy'](_0x16c9d5),_0xd6b8c6[_0xaed9e9(0x2514)]=_0x354485,_0xd6b8c6['hasModulePermissions']={};if(_0xd6b8c6[_0xaed9e9(0x609)][_0xaed9e9(0x168a)])switch(_0xd6b8c6[_0xaed9e9(0x609)][_0xaed9e9(0x8f2)]?_0xd6b8c6[_0xaed9e9(0x609)][_0xaed9e9(0x8f2)][_0xaed9e9(0x256e)]():_0xd6b8c6[_0xaed9e9(0x609)][_0xaed9e9(0x1873)][_0xaed9e9(0x256e)]()){case _0xaed9e9(0x1802):break;case _0xaed9e9(0xeaa):{const _0x452453=_0xd6b8c6[_0xaed9e9(0x609)][_0xaed9e9(0x168a)]['split'](',');_0xd6b8c6[_0xaed9e9(0x609)][_0xaed9e9(0x2293)]=_0x452453[0x0],_0xd6b8c6[_0xaed9e9(0x609)][_0xaed9e9(0x90b)]=_0x452453[0x1],_0xd6b8c6['gotoif'][_0xaed9e9(0xaf3)]=_0x452453[_0xaed9e9(0x1298)](0x2,_0x452453[_0xaed9e9(0x402)])['join'](',');}break;case _0xaed9e9(0xa46):{const _0xe79317=_0xd6b8c6['gotoif'][_0xaed9e9(0x168a)][_0xaed9e9(0x10c8)](',');_0xd6b8c6['gotoif'][_0xaed9e9(0x153a)]=_0xe79317[0x0],_0xd6b8c6[_0xaed9e9(0x609)]['clientEmail']=_0xe79317[0x1],_0xd6b8c6[_0xaed9e9(0x609)][_0xaed9e9(0x2217)]=_0xe79317[0x2],_0xd6b8c6[_0xaed9e9(0x609)]['language']=_0xe79317[0x3],_0xd6b8c6[_0xaed9e9(0x609)][_0xaed9e9(0xaf3)]=_0xe79317[_0xaed9e9(0x1298)](0x4,_0xe79317[_0xaed9e9(0x402)])[_0xaed9e9(0xb47)](',');}break;case _0xaed9e9(0x17d6):{const _0x3d796a=_0xd6b8c6[_0xaed9e9(0x609)][_0xaed9e9(0x168a)][_0xaed9e9(0x10c8)](',');_0xd6b8c6[_0xaed9e9(0x609)][_0xaed9e9(0x1651)]=_0x3d796a[0x0],_0xd6b8c6[_0xaed9e9(0x609)][_0xaed9e9(0x252)]=_0x3d796a[0x1],_0xd6b8c6['gotoif'][_0xaed9e9(0x1039)]=_0x3d796a[0x2],_0xd6b8c6[_0xaed9e9(0x609)][_0xaed9e9(0x8dd)]=_0x3d796a[0x3],_0xd6b8c6[_0xaed9e9(0x609)][_0xaed9e9(0xaf3)]=_0x3d796a['slice'](0x4,_0x3d796a[_0xaed9e9(0x402)])[_0xaed9e9(0xb47)](',');}break;case _0xaed9e9(0x1713):{const _0xcb2a9b=_0xd6b8c6['gotoif'][_0xaed9e9(0x168a)]['split'](',');_0xd6b8c6['gotoif'][_0xaed9e9(0x583)]=isNaN(_0xcb2a9b[0x0])?_0xcb2a9b[0x0]:parseInt(_0xcb2a9b[0x0],0xa),_0xd6b8c6['gotoif']['text']=_0xcb2a9b[_0xaed9e9(0x1298)](0x1,_0xcb2a9b[_0xaed9e9(0x402)])[_0xaed9e9(0xb47)](',');}break;case _0xaed9e9(0x7fd):_0xd6b8c6['gotoif'][_0xaed9e9(0xa8d)]=_0xd6b8c6[_0xaed9e9(0x609)][_0xaed9e9(0x168a)];break;case _0xaed9e9(0x26ba):_0xd6b8c6[_0xaed9e9(0x609)][_0xaed9e9(0x19eb)]=_0xd6b8c6[_0xaed9e9(0x609)][_0xaed9e9(0x168a)][_0xaed9e9(0x10c8)]('=')[0x0],_0xd6b8c6['gotoif'][_0xaed9e9(0x175d)]=_0xd6b8c6['gotoif'][_0xaed9e9(0x168a)][_0xaed9e9(0x10c8)]('=')[0x1];break;case _0xaed9e9(0x1ecb):_0xd6b8c6[_0xaed9e9(0x609)]['project']=_0xd6b8c6[_0xaed9e9(0x609)][_0xaed9e9(0x168a)];break;default:{const _0x23974b=_0xd6b8c6[_0xaed9e9(0x609)][_0xaed9e9(0x168a)][_0xaed9e9(0x10c8)](',');_0xd6b8c6[_0xaed9e9(0x609)][_0xaed9e9(0x115f)]=_0x3f65c0()[_0xaed9e9(0x2635)](_0x23974b[0x0])?_0x23974b[0x0]:isNaN(_0x23974b[0x0])?_0x23974b[0x0]:parseInt(_0x23974b[0x0],0xa),_0xd6b8c6[_0xaed9e9(0x609)][_0xaed9e9(0x1d78)]=_0x3f65c0()['isEmpty'](_0x23974b[0x1])?_0x23974b[0x1]:isNaN(_0x23974b[0x1])?_0x23974b[0x1]:parseInt(_0x23974b[0x1],0xa),_0xd6b8c6['gotoif'][_0xaed9e9(0x28e1)]=_0x3f65c0()[_0xaed9e9(0x2635)](_0x23974b[0x2])?_0x23974b[0x2]:isNaN(_0x23974b[0x2])?_0x23974b[0x2]:parseInt(_0x23974b[0x2],0xa);}break;}else{}_0xd6b8c6[_0xaed9e9(0x609)][_0xaed9e9(0x1142)]&&_0xd6b8c6[_0xaed9e9(0x609)][_0xaed9e9(0x1142)][_0xaed9e9(0x256e)]()===_0xaed9e9(0xc9c)&&_0xd6b8c6[_0xaed9e9(0x609)][_0xaed9e9(0x8f2)][_0xaed9e9(0x256e)]()===_0xaed9e9(0x3bb)&&(_0xd6b8c6[_0xaed9e9(0x609)][_0xaed9e9(0x1e12)]=_0xd6b8c6[_0xaed9e9(0x609)][_0xaed9e9(0x1d55)]?_0xd6b8c6[_0xaed9e9(0x609)]['phone']['split']('$')[0x0]:undefined,_0xd6b8c6[_0xaed9e9(0x609)][_0xaed9e9(0x1d43)]=_0xd6b8c6['gotoif'][_0xaed9e9(0x11be)]?_0xaed9e9(0x1b60)+_0xd6b8c6[_0xaed9e9(0x609)]['callerID']:undefined);_0xd6b8c6[_0xaed9e9(0x2213)]=_0x3ccf96,_0xd6b8c6[_0xaed9e9(0x13f3)]=_0xe08630;function _0x3ccf96(){const _0x675246=_0xaed9e9;_0xd6b8c6['errors']=[];const _0x1131a4=[];_0xd6b8c6['gotoif'][_0x675246(0x1142)]&&_0xd6b8c6[_0x675246(0x609)][_0x675246(0x1142)][_0x675246(0x256e)]()==='outbound'&&_0xd6b8c6['gotoif'][_0x675246(0x8f2)]===_0x675246(0x118b)&&(_0xd6b8c6[_0x675246(0x609)][_0x675246(0x1d55)]=_0x21ece2['cutdigits']?(_0xd6b8c6[_0x675246(0x609)][_0x675246(0x1e12)]||'')+'${EXTEN:'+_0x21ece2[_0x675246(0x1274)]+'}':(_0xd6b8c6[_0x675246(0x609)]['prefix']||'')+'${EXTEN}',_0x21ece2['recordingFormat']!==_0x675246(0x1642)?_0xd6b8c6[_0x675246(0x609)][_0x675246(0xa08)]['indexOf'](_0x675246(0x1ea4))<0x0&&(_0xd6b8c6[_0x675246(0x609)][_0x675246(0xa08)]+=_0x675246(0x1ea4)):_0xd6b8c6[_0x675246(0x609)][_0x675246(0xa08)]=_0xd6b8c6[_0x675246(0x609)][_0x675246(0xa08)][_0x675246(0x5f4)](_0x675246(0x1ea4),''));if(_0xd6b8c6[_0x675246(0x609)][_0x675246(0x8f2)]&&_0xd6b8c6[_0x675246(0x609)][_0x675246(0x8f2)]===_0x675246(0x1802)){}else switch((_0xd6b8c6[_0x675246(0x609)]['app']||_0xd6b8c6['gotoif'][_0x675246(0x8f2)])['toLowerCase']()){case'set':_0xd6b8c6[_0x675246(0x609)][_0x675246(0x168a)]=_0xd6b8c6[_0x675246(0x609)][_0x675246(0x19eb)]+'='+_0xd6b8c6['gotoif'][_0x675246(0x175d)];break;case _0x675246(0x1802):break;default:_0x1131a4[0x0]=_0xd6b8c6[_0x675246(0x609)][_0x675246(0x115f)],_0x1131a4[0x1]=_0xd6b8c6['gotoif'][_0x675246(0x1d78)],_0x1131a4[0x2]=_0xd6b8c6[_0x675246(0x609)]['falsepriority'],_0xd6b8c6['gotoif'][_0x675246(0x168a)]=_0x1131a4[_0x675246(0xb47)](',');}_0xe08630(_0xd6b8c6['gotoif']);}function _0xe08630(_0x2ebd9e){const _0x35a417=_0xaed9e9;_0x21c764[_0x35a417(0x2458)](_0x2ebd9e);}}const _0x31d454=_0x4d4517;;_0x4fb50d['$inject']=['$mdDialog','$q',_0x313a4d(0x1fe4),_0x313a4d(0x2265),_0x313a4d(0x189e),'api','Auth','crudPermissions'];function _0x4fb50d(_0x4ab41f,_0x4eeba2,_0x45ebda,_0x56385c,_0x1baf55,_0x3d72d3,_0x1de7f5,_0x1788b6){const _0x1a7f7f=_0x313a4d,_0xd7318=this;_0xd7318[_0x1a7f7f(0x2321)]=_0x1de7f5[_0x1a7f7f(0xb12)](),_0xd7318[_0x1a7f7f(0xcef)]=[],_0xd7318[_0x1a7f7f(0x1189)]='CHAT.EDIT_'+(_0x56385c[_0x1a7f7f(0x8f2)]||_0x56385c['app'])[_0x1a7f7f(0x1c37)](),_0xd7318[_0x1a7f7f(0x28f4)]=angular[_0x1a7f7f(0x235a)](_0x56385c),_0xd7318[_0x1a7f7f(0x2514)]=_0x1788b6,_0xd7318[_0x1a7f7f(0x855)]={};if(_0xd7318['gotop'][_0x1a7f7f(0x168a)])switch(_0xd7318[_0x1a7f7f(0x28f4)]['appType']?_0xd7318[_0x1a7f7f(0x28f4)][_0x1a7f7f(0x8f2)][_0x1a7f7f(0x256e)]():_0xd7318[_0x1a7f7f(0x28f4)][_0x1a7f7f(0x1873)][_0x1a7f7f(0x256e)]()){case _0x1a7f7f(0x1802):break;case _0x1a7f7f(0xeaa):{const _0x21b4a0=_0xd7318['gotop']['appdata']['split'](',');_0xd7318['gotop'][_0x1a7f7f(0x2293)]=_0x21b4a0[0x0],_0xd7318[_0x1a7f7f(0x28f4)]['language']=_0x21b4a0[0x1],_0xd7318['gotop'][_0x1a7f7f(0xaf3)]=_0x21b4a0[_0x1a7f7f(0x1298)](0x2,_0x21b4a0[_0x1a7f7f(0x402)])[_0x1a7f7f(0xb47)](',');}break;case _0x1a7f7f(0xa46):{const _0x44df33=_0xd7318[_0x1a7f7f(0x28f4)][_0x1a7f7f(0x168a)][_0x1a7f7f(0x10c8)](',');_0xd7318[_0x1a7f7f(0x28f4)]['projectId']=_0x44df33[0x0],_0xd7318[_0x1a7f7f(0x28f4)][_0x1a7f7f(0x1392)]=_0x44df33[0x1],_0xd7318[_0x1a7f7f(0x28f4)]['privateKey']=_0x44df33[0x2],_0xd7318[_0x1a7f7f(0x28f4)][_0x1a7f7f(0x90b)]=_0x44df33[0x3],_0xd7318[_0x1a7f7f(0x28f4)][_0x1a7f7f(0xaf3)]=_0x44df33[_0x1a7f7f(0x1298)](0x4,_0x44df33[_0x1a7f7f(0x402)])['join'](',');}break;case _0x1a7f7f(0x17d6):{const _0x468820=_0xd7318[_0x1a7f7f(0x28f4)][_0x1a7f7f(0x168a)][_0x1a7f7f(0x10c8)](',');_0xd7318['gotop'][_0x1a7f7f(0x1651)]=_0x468820[0x0],_0xd7318[_0x1a7f7f(0x28f4)][_0x1a7f7f(0x252)]=_0x468820[0x1],_0xd7318[_0x1a7f7f(0x28f4)][_0x1a7f7f(0x1039)]=_0x468820[0x2],_0xd7318['gotop']['botname']=_0x468820[0x3],_0xd7318[_0x1a7f7f(0x28f4)]['welcomemessage']=_0x468820[_0x1a7f7f(0x1298)](0x4,_0x468820['length'])[_0x1a7f7f(0xb47)](',');}break;case'autoreply':{const _0x1eb98c=_0xd7318[_0x1a7f7f(0x28f4)][_0x1a7f7f(0x168a)][_0x1a7f7f(0x10c8)](',');_0xd7318['gotop']['times']=isNaN(_0x1eb98c[0x0])?_0x1eb98c[0x0]:parseInt(_0x1eb98c[0x0],0xa),_0xd7318[_0x1a7f7f(0x28f4)][_0x1a7f7f(0xa8d)]=_0x1eb98c[_0x1a7f7f(0x1298)](0x1,_0x1eb98c[_0x1a7f7f(0x402)])['join'](',');}break;case'message':_0xd7318[_0x1a7f7f(0x28f4)][_0x1a7f7f(0xa8d)]=_0xd7318[_0x1a7f7f(0x28f4)]['appdata'];break;case'set':_0xd7318['gotop']['name']=_0xd7318[_0x1a7f7f(0x28f4)]['appdata'][_0x1a7f7f(0x10c8)]('=')[0x0],_0xd7318['gotop']['value']=_0xd7318['gotop'][_0x1a7f7f(0x168a)][_0x1a7f7f(0x10c8)]('=')[0x1];break;case'agi':_0xd7318[_0x1a7f7f(0x28f4)][_0x1a7f7f(0x9e0)]=_0xd7318[_0x1a7f7f(0x28f4)]['appdata'];break;default:{const _0x2562a0=_0xd7318[_0x1a7f7f(0x28f4)][_0x1a7f7f(0x168a)][_0x1a7f7f(0x10c8)](',');_0xd7318[_0x1a7f7f(0x28f4)][_0x1a7f7f(0xa6a)]=_0x3f65c0()[_0x1a7f7f(0x2635)](_0x2562a0[0x0])?_0x2562a0[0x0]:isNaN(_0x2562a0[0x0])?_0x2562a0[0x0]:parseInt(_0x2562a0[0x0],0xa);}break;}else{}_0xd7318[_0x1a7f7f(0x28f4)]['type']&&_0xd7318[_0x1a7f7f(0x28f4)][_0x1a7f7f(0x1142)][_0x1a7f7f(0x256e)]()===_0x1a7f7f(0xc9c)&&_0xd7318[_0x1a7f7f(0x28f4)]['appType'][_0x1a7f7f(0x256e)]()===_0x1a7f7f(0x3bb)&&(_0xd7318[_0x1a7f7f(0x28f4)]['prefix']=_0xd7318[_0x1a7f7f(0x28f4)][_0x1a7f7f(0x1d55)]?_0xd7318[_0x1a7f7f(0x28f4)]['phone'][_0x1a7f7f(0x10c8)]('$')[0x0]:undefined,_0xd7318[_0x1a7f7f(0x28f4)][_0x1a7f7f(0x1d43)]=_0xd7318[_0x1a7f7f(0x28f4)][_0x1a7f7f(0x11be)]?_0x1a7f7f(0x1b60)+_0xd7318[_0x1a7f7f(0x28f4)][_0x1a7f7f(0x11be)]:undefined);_0xd7318[_0x1a7f7f(0x2213)]=_0x5f314b,_0xd7318[_0x1a7f7f(0x13f3)]=_0x115826;function _0x5f314b(){const _0x3b05d3=_0x1a7f7f;_0xd7318['errors']=[];const _0x22911f=[];_0xd7318[_0x3b05d3(0x28f4)]['type']&&_0xd7318[_0x3b05d3(0x28f4)]['type'][_0x3b05d3(0x256e)]()===_0x3b05d3(0xc9c)&&_0xd7318[_0x3b05d3(0x28f4)][_0x3b05d3(0x8f2)]===_0x3b05d3(0x118b)&&(_0xd7318[_0x3b05d3(0x28f4)][_0x3b05d3(0x1d55)]=_0x1baf55['cutdigits']?(_0xd7318[_0x3b05d3(0x28f4)][_0x3b05d3(0x1e12)]||'')+_0x3b05d3(0x2147)+_0x1baf55[_0x3b05d3(0x1274)]+'}':(_0xd7318[_0x3b05d3(0x28f4)][_0x3b05d3(0x1e12)]||'')+_0x3b05d3(0x20df),_0x1baf55[_0x3b05d3(0x1425)]!==_0x3b05d3(0x1642)?_0xd7318[_0x3b05d3(0x28f4)]['options']['indexOf'](_0x3b05d3(0x1ea4))<0x0&&(_0xd7318[_0x3b05d3(0x28f4)][_0x3b05d3(0xa08)]+=_0x3b05d3(0x1ea4)):_0xd7318[_0x3b05d3(0x28f4)][_0x3b05d3(0xa08)]=_0xd7318['gotop']['options'][_0x3b05d3(0x5f4)](_0x3b05d3(0x1ea4),''));if(_0xd7318[_0x3b05d3(0x28f4)]['appType']&&_0xd7318[_0x3b05d3(0x28f4)][_0x3b05d3(0x8f2)]===_0x3b05d3(0x1802)){}else switch((_0xd7318[_0x3b05d3(0x28f4)][_0x3b05d3(0x1873)]||_0xd7318[_0x3b05d3(0x28f4)][_0x3b05d3(0x8f2)])[_0x3b05d3(0x256e)]()){case _0x3b05d3(0x26ba):_0xd7318[_0x3b05d3(0x28f4)][_0x3b05d3(0x168a)]=_0xd7318[_0x3b05d3(0x28f4)]['name']+'='+_0xd7318[_0x3b05d3(0x28f4)][_0x3b05d3(0x175d)];break;case'custom':break;default:_0x22911f[0x0]=_0xd7318[_0x3b05d3(0x28f4)][_0x3b05d3(0xa6a)],_0xd7318[_0x3b05d3(0x28f4)][_0x3b05d3(0x168a)]=_0x22911f[_0x3b05d3(0xb47)](',');}_0x115826(_0xd7318[_0x3b05d3(0x28f4)]);}function _0x115826(_0x485616){const _0x165701=_0x1a7f7f;_0x4ab41f[_0x165701(0x2458)](_0x485616);}}const _0x33c1a5=_0x4fb50d;;_0x181271[_0x313a4d(0x11c2)]=[_0x313a4d(0x1862),_0x313a4d(0x10e8),'$mdToast',_0x313a4d(0x15f6),_0x313a4d(0x2765),_0x313a4d(0x278f),_0x313a4d(0x1fe4),_0x313a4d(0x247f),_0x313a4d(0xa87),_0x313a4d(0x2514)];function _0x181271(_0x4e977b,_0x41227f,_0x325ff6,_0xe800f2,_0x5d23e5,_0x37d512,_0x50c3c8,_0x10e933,_0x5bbfe6,_0x34732a){const _0xe7b5ba=_0x313a4d,_0x5186a8=this;_0x5186a8[_0xe7b5ba(0x2321)]=_0x5bbfe6['getCurrentUser'](),_0x5186a8[_0xe7b5ba(0xcef)]=[],_0x5186a8['title']='TOOLS.EDIT_INTERVAL',_0x5186a8[_0xe7b5ba(0x2765)]=angular[_0xe7b5ba(0x235a)](_0x5d23e5),_0x5186a8[_0xe7b5ba(0x278f)]=_0x37d512,_0x5186a8[_0xe7b5ba(0xa76)]=![],_0x5186a8[_0xe7b5ba(0x1960)]=[_0xe7b5ba(0xd85),_0xe7b5ba(0x1802),_0xe7b5ba(0x25f4)],_0x5186a8[_0xe7b5ba(0x2514)]=_0x34732a,_0x5186a8[_0xe7b5ba(0x1e35)]=_0xe800f2[_0xe7b5ba(0x2045)](),_0x5186a8[_0xe7b5ba(0x593)]=_0xe800f2['getMonthNumber'](),_0x5186a8[_0xe7b5ba(0x2156)]=_0xe800f2[_0xe7b5ba(0x18b6)](),_0x5186a8[_0xe7b5ba(0x15f1)]=_0xe800f2[_0xe7b5ba(0x1421)]();if(!_0x5186a8[_0xe7b5ba(0x2765)])_0x5186a8[_0xe7b5ba(0x2765)]={'interval':_0xe7b5ba(0x1559)},_0x5186a8[_0xe7b5ba(0x1142)]='always',_0x5186a8['title']=_0xe7b5ba(0x79c),_0x5186a8['newInterval']=!![];else{if(_0x5186a8[_0xe7b5ba(0x2765)][_0xe7b5ba(0x2765)]!=='*,*,*,*'){_0x5186a8['type']=_0xe7b5ba(0x1802);const _0x10b6ec=_0x5186a8[_0xe7b5ba(0x2765)][_0xe7b5ba(0x2765)][_0xe7b5ba(0x10c8)](','),_0x5c3c26=_0x10b6ec[0x0],_0x57be7f=_0x10b6ec[0x1],_0x31cb59=_0x10b6ec[0x2],_0x3642b3=_0x10b6ec[0x3];if(_0x5c3c26!=='*'){const _0x58307e=_0x5c3c26[_0xe7b5ba(0x10c8)]('-')[0x0],_0x94a6ff=_0x5c3c26[_0xe7b5ba(0x10c8)]('-')[0x1];let _0x94fb2a;_0x94fb2a=new Date(),_0x94fb2a[_0xe7b5ba(0x25cd)](Number(_0x58307e[_0xe7b5ba(0x10c8)](':')[0x0])),_0x94fb2a['setMinutes'](Number(_0x58307e[_0xe7b5ba(0x10c8)](':')[0x1])),_0x5186a8['timeRangeFrom']=_0x94fb2a,_0x94fb2a=new Date(),_0x94fb2a[_0xe7b5ba(0x25cd)](Number(_0x94a6ff[_0xe7b5ba(0x10c8)](':')[0x0])),_0x94fb2a[_0xe7b5ba(0x2348)](Number(_0x94a6ff[_0xe7b5ba(0x10c8)](':')[0x1])),_0x5186a8[_0xe7b5ba(0x637)]=_0x94fb2a;}_0x57be7f!=='*'&&(_0x5186a8[_0xe7b5ba(0x1455)]=_0x57be7f[_0xe7b5ba(0x10c8)]('-')[0x0],_0x5186a8['dayOfWeekTo']=_0x57be7f[_0xe7b5ba(0x10c8)]('-')[0x1]),_0x31cb59!=='*'&&(_0x5186a8['monthDayFrom']=_0x31cb59['split']('-')[0x0],_0x5186a8[_0xe7b5ba(0x896)]=_0x31cb59[_0xe7b5ba(0x10c8)]('-')[0x1]),_0x3642b3!=='*'&&(_0x5186a8['monthFrom']=_0x3642b3['split']('-')[0x0],_0x5186a8['monthTo']=_0x3642b3[_0xe7b5ba(0x10c8)]('-')[0x1]);}else _0x5186a8[_0xe7b5ba(0x1142)]=_0xe7b5ba(0xd85);}_0x4e977b[_0xe7b5ba(0x16a)]['id']&&!_0x5186a8[_0xe7b5ba(0x2765)][_0xe7b5ba(0xea)]&&(_0x5186a8[_0xe7b5ba(0x2765)][_0xe7b5ba(0x1ff2)]=_0x4e977b[_0xe7b5ba(0x16a)]['id']);_0x5186a8[_0xe7b5ba(0x2765)]['IntervalId']&&_0x5186a8['interval'][_0xe7b5ba(0xea)]&&(_0x5186a8[_0xe7b5ba(0x1142)]=_0xe7b5ba(0x25f4));_0x5186a8[_0xe7b5ba(0x2f0)]=_0x44d052,_0x5186a8[_0xe7b5ba(0x1242)]=_0x140220,_0x5186a8[_0xe7b5ba(0x13f3)]=_0x11f31e;_0x5186a8[_0xe7b5ba(0x2765)][_0xe7b5ba(0xea)]&&(_0x5bbfe6['hasRole'](_0xe7b5ba(0x174b))?_0x10e933[_0xe7b5ba(0x2765)][_0xe7b5ba(0x16b4)]({'fields':'id,name,interval,IntervalId','IntervalId':_0xe7b5ba(0x203c),'nolimit':!![]})['$promise'][_0xe7b5ba(0x146b)](function(_0x220db9){const _0x4471b0=_0xe7b5ba;_0x5186a8[_0x4471b0(0x278f)]=_0x220db9['rows']||[];})[_0xe7b5ba(0x129e)](function(_0x6be60b){const _0x3b0238=_0xe7b5ba;_0x50c3c8[_0x3b0238(0x1980)]({'title':_0x6be60b['status']?'API:'+_0x6be60b[_0x3b0238(0x107b)]+'\x20-\x20'+_0x6be60b[_0x3b0238(0x167f)]:_0x3b0238(0x603),'msg':_0x6be60b[_0x3b0238(0x524)]?JSON[_0x3b0238(0x10bb)](_0x6be60b[_0x3b0238(0x524)]):_0x6be60b['toString']()});}):_0x10e933[_0xe7b5ba(0x2765)][_0xe7b5ba(0x16b4)]({'fields':_0xe7b5ba(0x648),'IntervalId':_0xe7b5ba(0x203c),'nolimit':!![]})[_0xe7b5ba(0x2945)][_0xe7b5ba(0x146b)](function(_0x1e9217){const _0x4d1d68=_0xe7b5ba;_0x5186a8['intervals']=_0x1e9217[_0x4d1d68(0x19c7)]||[];})['then'](function(){const _0x5c3e54=_0xe7b5ba;return _0x10e933[_0x5c3e54(0x1366)][_0x5c3e54(0x16b4)]({'userProfileId':_0x5186a8[_0x5c3e54(0x2321)]['userProfileId'],'sectionId':0x3ec})[_0x5c3e54(0x2945)];})[_0xe7b5ba(0x146b)](function(_0x402196){const _0x542339=_0xe7b5ba,_0x26e166=_0x402196&&_0x402196[_0x542339(0x19c7)]?_0x402196[_0x542339(0x19c7)][0x0]:null;if(!_0x26e166)_0x5186a8[_0x542339(0x278f)]=[];else{if(!_0x26e166[_0x542339(0x11d2)])return _0x10e933['userProfileResource'][_0x542339(0x16b4)]({'sectionId':_0x26e166['id']})[_0x542339(0x2945)]['then'](function(_0x424a9f){const _0x2aedd5=_0x542339,_0x327a61=_0x424a9f&&_0x424a9f['rows']?_0x424a9f[_0x2aedd5(0x19c7)]:[],_0x5f0383=[];let _0x3c877c=null;_0x5186a8[_0x2aedd5(0x2765)]&&(_0x3c877c=_0x3f65c0()[_0x2aedd5(0xc84)](_0x5186a8[_0x2aedd5(0x278f)],{'name':_0x5186a8['interval'][_0x2aedd5(0x1ff2)]})),_0x3c877c&&!_0x3f65c0()[_0x2aedd5(0x1360)](_0x327a61,[_0x2aedd5(0x18b8),_0x3c877c['id']])&&_0x5186a8[_0x2aedd5(0x278f)][_0x2aedd5(0x1df5)](function(_0x28e4cd){const _0x21c5af=_0x2aedd5;_0x28e4cd['id']===_0x3c877c['id']&&(_0x28e4cd[_0x21c5af(0x8ff)]=![],_0x5f0383['push'](_0x28e4cd));}),_0x5186a8[_0x2aedd5(0x278f)]=_0x5f0383;});}})[_0xe7b5ba(0x129e)](function(_0x31ab5a){const _0x33e3f9=_0xe7b5ba;_0x50c3c8[_0x33e3f9(0x1980)]({'title':_0x31ab5a['status']?_0x33e3f9(0x262a)+_0x31ab5a[_0x33e3f9(0x107b)]+'\x20-\x20'+_0x31ab5a[_0x33e3f9(0x167f)]:'SYSTEM:GET_INTERVALS','msg':_0x31ab5a['data']?JSON[_0x33e3f9(0x10bb)](_0x31ab5a[_0x33e3f9(0x524)]):_0x31ab5a['toString']()});}));function _0x2babc3(){const _0x33ccd0=_0xe7b5ba;switch(_0x5186a8[_0x33ccd0(0x1142)]){case _0x33ccd0(0xd85):case'list':return _0x33ccd0(0x1559);case _0x33ccd0(0x1802):{const _0x8b9e5b=[];if(_0x5186a8[_0x33ccd0(0x2469)]!=='*'&&_0x5186a8[_0x33ccd0(0x2469)]&&_0x5186a8[_0x33ccd0(0x637)]){const _0x1c7072=(_0x5186a8[_0x33ccd0(0x2469)][_0x33ccd0(0x1d57)]()<0xa?'0':'')+_0x5186a8[_0x33ccd0(0x2469)][_0x33ccd0(0x1d57)]()+':'+((_0x5186a8['timeRangeFrom'][_0x33ccd0(0x7fc)]()<0xa?'0':'')+_0x5186a8['timeRangeFrom'][_0x33ccd0(0x7fc)]()),_0x171f17=(_0x5186a8[_0x33ccd0(0x637)][_0x33ccd0(0x1d57)]()<0xa?'0':'')+_0x5186a8['timeRangeTo'][_0x33ccd0(0x1d57)]()+':'+((_0x5186a8[_0x33ccd0(0x637)][_0x33ccd0(0x7fc)]()<0xa?'0':'')+_0x5186a8[_0x33ccd0(0x637)][_0x33ccd0(0x7fc)]());_0x8b9e5b[_0x33ccd0(0x1f47)](_0x1c7072+'-'+_0x171f17);}else _0x8b9e5b['push']('*');return _0x5186a8[_0x33ccd0(0x1455)]?_0x5186a8[_0x33ccd0(0x27a1)]?_0x8b9e5b[_0x33ccd0(0x1f47)](_0x5186a8[_0x33ccd0(0x1455)]+'-'+_0x5186a8[_0x33ccd0(0x27a1)]):_0x8b9e5b['push'](_0x5186a8[_0x33ccd0(0x1455)]):_0x8b9e5b[_0x33ccd0(0x1f47)]('*'),_0x5186a8[_0x33ccd0(0xf0b)]?_0x5186a8['monthDayTo']?_0x8b9e5b['push'](_0x5186a8['monthDayFrom']+'-'+_0x5186a8[_0x33ccd0(0x896)]):_0x8b9e5b[_0x33ccd0(0x1f47)](_0x5186a8['monthDayFrom']):_0x8b9e5b['push']('*'),_0x5186a8['monthFrom']?_0x5186a8[_0x33ccd0(0x9c3)]?_0x8b9e5b[_0x33ccd0(0x1f47)](_0x5186a8[_0x33ccd0(0x167)]+'-'+_0x5186a8['monthTo']):_0x8b9e5b[_0x33ccd0(0x1f47)](_0x5186a8['monthFrom']):_0x8b9e5b['push']('*'),_0x8b9e5b['join']();}}}function _0x44d052(){const _0x4bd3cd=_0xe7b5ba;_0x5186a8['errors']=[],_0x5186a8[_0x4bd3cd(0x2765)]['interval']=_0x2babc3(),_0x10e933['interval'][_0x4bd3cd(0x1e3)](_0x5186a8[_0x4bd3cd(0x2765)])['$promise'][_0x4bd3cd(0x146b)](function(_0x5c6800){const _0x448f94=_0x4bd3cd;_0x5186a8['intervals']['push'](_0x5c6800),_0x50c3c8[_0x448f94(0x1c75)]({'title':_0x448f94(0x17f5),'msg':_0x5186a8[_0x448f94(0x2765)][_0x448f94(0x19eb)]?_0x5186a8['interval'][_0x448f94(0x19eb)]+'\x20has\x20been\x20created!':''}),_0x11f31e();})[_0x4bd3cd(0x129e)](function(_0x3d5573){const _0x539f23=_0x4bd3cd;console[_0x539f23(0x1980)](_0x3d5573),_0x5186a8[_0x539f23(0xcef)]=_0x3d5573['data'][_0x539f23(0xcef)]||[{'message':_0x3d5573[_0x539f23(0xd5f)](),'type':'api.interval.save'}];});}function _0x140220(){const _0x1145ad=_0xe7b5ba;_0x5186a8[_0x1145ad(0xcef)]=[],_0x5186a8['interval'][_0x1145ad(0x2765)]=_0x2babc3(),_0x5186a8[_0x1145ad(0x2765)][_0x1145ad(0xea)]?(_0x5186a8[_0x1145ad(0x1142)]!=='list'&&(_0x5186a8[_0x1145ad(0x2765)]['IntervalId']=null),_0x11f31e(_0x5186a8[_0x1145ad(0x2765)])):_0x10e933['interval'][_0x1145ad(0x18e1)]({'id':_0x5186a8[_0x1145ad(0x2765)]['id']},_0x5186a8['interval'])[_0x1145ad(0x2945)][_0x1145ad(0x146b)](function(_0x293e45){const _0x116fba=_0x1145ad,_0x3c0f08=_0x3f65c0()[_0x116fba(0xc84)](_0x5186a8[_0x116fba(0x278f)],{'id':_0x293e45['id']});_0x3c0f08&&_0x3f65c0()['merge'](_0x3c0f08,_0x293e45),_0x50c3c8['success']({'title':'Interval\x20properly\x20saved!','msg':'Interval\x20has\x20been\x20saved!'}),_0x11f31e();})[_0x1145ad(0x129e)](function(_0x3a6cc6){const _0x3ac766=_0x1145ad;console['error'](_0x3a6cc6),_0x5186a8['errors']=_0x3a6cc6[_0x3ac766(0x524)][_0x3ac766(0xcef)]||[{'message':_0x3a6cc6[_0x3ac766(0xd5f)](),'type':_0x3ac766(0x1fbe)}];});}function _0x11f31e(_0xe6eb2c){_0x41227f['hide'](_0xe6eb2c);}}const _0x5a7e15=_0x181271;;_0x28a10e['$inject']=['$mdDialog','$q',_0x313a4d(0x1fe4),_0x313a4d(0x2265),_0x313a4d(0x189e),_0x313a4d(0x247f),_0x313a4d(0xa87),_0x313a4d(0x2514)];function _0x28a10e(_0x1d51e1,_0x1000cf,_0x3f1aa6,_0x5d6af4,_0x485778,_0x3830a8,_0x9d1377,_0x32bba5){const _0x2272ac=_0x313a4d,_0x3ae333=this;_0x3ae333[_0x2272ac(0x2321)]=_0x9d1377['getCurrentUser'](),_0x3ae333[_0x2272ac(0xcef)]=[],_0x3ae333[_0x2272ac(0x1189)]='CHAT.EDIT_'+(_0x5d6af4['appType']||_0x5d6af4[_0x2272ac(0x1873)])[_0x2272ac(0x1c37)](),_0x3ae333[_0x2272ac(0x309)]=angular[_0x2272ac(0x235a)](_0x5d6af4),_0x3ae333[_0x2272ac(0x2514)]=_0x32bba5,_0x3ae333[_0x2272ac(0x855)]={};if(_0x3ae333[_0x2272ac(0x309)]['appdata'])switch(_0x3ae333[_0x2272ac(0x309)][_0x2272ac(0x8f2)]?_0x3ae333[_0x2272ac(0x309)][_0x2272ac(0x8f2)]['toLowerCase']():_0x3ae333['noop']['app'][_0x2272ac(0x256e)]()){case'custom':break;case'dialogflow':{const _0x1be74a=_0x3ae333[_0x2272ac(0x309)][_0x2272ac(0x168a)][_0x2272ac(0x10c8)](',');_0x3ae333[_0x2272ac(0x309)][_0x2272ac(0x2293)]=_0x1be74a[0x0],_0x3ae333[_0x2272ac(0x309)][_0x2272ac(0x90b)]=_0x1be74a[0x1],_0x3ae333[_0x2272ac(0x309)][_0x2272ac(0xaf3)]=_0x1be74a['slice'](0x2,_0x1be74a[_0x2272ac(0x402)])[_0x2272ac(0xb47)](',');}break;case'dialogflowv2':{const _0x2379ee=_0x3ae333[_0x2272ac(0x309)][_0x2272ac(0x168a)][_0x2272ac(0x10c8)](',');_0x3ae333[_0x2272ac(0x309)]['projectId']=_0x2379ee[0x0],_0x3ae333[_0x2272ac(0x309)][_0x2272ac(0x1392)]=_0x2379ee[0x1],_0x3ae333[_0x2272ac(0x309)][_0x2272ac(0x2217)]=_0x2379ee[0x2],_0x3ae333[_0x2272ac(0x309)][_0x2272ac(0x90b)]=_0x2379ee[0x3],_0x3ae333[_0x2272ac(0x309)][_0x2272ac(0xaf3)]=_0x2379ee[_0x2272ac(0x1298)](0x4,_0x2379ee['length'])['join'](',');}break;case'amazonlex':{const _0x5ab21e=_0x3ae333[_0x2272ac(0x309)][_0x2272ac(0x168a)][_0x2272ac(0x10c8)](',');_0x3ae333[_0x2272ac(0x309)][_0x2272ac(0x1651)]=_0x5ab21e[0x0],_0x3ae333[_0x2272ac(0x309)]['secretaccesskey']=_0x5ab21e[0x1],_0x3ae333['noop'][_0x2272ac(0x1039)]=_0x5ab21e[0x2],_0x3ae333['noop'][_0x2272ac(0x8dd)]=_0x5ab21e[0x3],_0x3ae333['noop'][_0x2272ac(0xaf3)]=_0x5ab21e['slice'](0x4,_0x5ab21e[_0x2272ac(0x402)])[_0x2272ac(0xb47)](',');}break;case _0x2272ac(0x1713):{const _0x302aec=_0x3ae333[_0x2272ac(0x309)][_0x2272ac(0x168a)][_0x2272ac(0x10c8)](',');_0x3ae333[_0x2272ac(0x309)][_0x2272ac(0x583)]=isNaN(_0x302aec[0x0])?_0x302aec[0x0]:parseInt(_0x302aec[0x0],0xa),_0x3ae333[_0x2272ac(0x309)][_0x2272ac(0xa8d)]=_0x302aec[_0x2272ac(0x1298)](0x1,_0x302aec['length'])[_0x2272ac(0xb47)](',');}break;case'message':_0x3ae333['noop'][_0x2272ac(0xa8d)]=_0x3ae333[_0x2272ac(0x309)]['appdata'];break;case _0x2272ac(0x26ba):_0x3ae333['noop'][_0x2272ac(0x19eb)]=_0x3ae333[_0x2272ac(0x309)][_0x2272ac(0x168a)][_0x2272ac(0x10c8)]('=')[0x0],_0x3ae333[_0x2272ac(0x309)][_0x2272ac(0x175d)]=_0x3ae333[_0x2272ac(0x309)][_0x2272ac(0x168a)]['split']('=')[0x1];break;case _0x2272ac(0x1ecb):_0x3ae333[_0x2272ac(0x309)][_0x2272ac(0x9e0)]=_0x3ae333['noop'][_0x2272ac(0x168a)];break;default:{const _0x2900ea=_0x3ae333[_0x2272ac(0x309)][_0x2272ac(0x168a)]['split'](',');_0x3ae333[_0x2272ac(0x309)][_0x2272ac(0x175d)]=_0x3f65c0()['isEmpty'](_0x2900ea[0x0])?_0x2900ea[0x0]:isNaN(_0x2900ea[0x0])?_0x2900ea[0x0]:parseInt(_0x2900ea[0x0],0xa);}break;}else{}_0x3ae333[_0x2272ac(0x309)][_0x2272ac(0x1142)]&&_0x3ae333[_0x2272ac(0x309)][_0x2272ac(0x1142)][_0x2272ac(0x256e)]()==='outbound'&&_0x3ae333[_0x2272ac(0x309)][_0x2272ac(0x8f2)][_0x2272ac(0x256e)]()==='outbounddial'&&(_0x3ae333[_0x2272ac(0x309)]['prefix']=_0x3ae333[_0x2272ac(0x309)][_0x2272ac(0x1d55)]?_0x3ae333[_0x2272ac(0x309)][_0x2272ac(0x1d55)]['split']('$')[0x0]:undefined,_0x3ae333['noop'][_0x2272ac(0x1d43)]=_0x3ae333[_0x2272ac(0x309)][_0x2272ac(0x11be)]?_0x2272ac(0x1b60)+_0x3ae333[_0x2272ac(0x309)]['callerID']:undefined);_0x3ae333[_0x2272ac(0x2213)]=_0xc50305,_0x3ae333[_0x2272ac(0x13f3)]=_0x1ba0f4;function _0xc50305(){const _0x128bb9=_0x2272ac;_0x3ae333[_0x128bb9(0xcef)]=[];const _0x51f4df=[];_0x3ae333[_0x128bb9(0x309)][_0x128bb9(0x1142)]&&_0x3ae333[_0x128bb9(0x309)][_0x128bb9(0x1142)][_0x128bb9(0x256e)]()===_0x128bb9(0xc9c)&&_0x3ae333[_0x128bb9(0x309)][_0x128bb9(0x8f2)]===_0x128bb9(0x118b)&&(_0x3ae333[_0x128bb9(0x309)]['phone']=_0x485778[_0x128bb9(0x1274)]?(_0x3ae333['noop'][_0x128bb9(0x1e12)]||'')+_0x128bb9(0x2147)+_0x485778[_0x128bb9(0x1274)]+'}':(_0x3ae333['noop'][_0x128bb9(0x1e12)]||'')+_0x128bb9(0x20df),_0x485778[_0x128bb9(0x1425)]!=='none'?_0x3ae333[_0x128bb9(0x309)][_0x128bb9(0xa08)][_0x128bb9(0x172b)](_0x128bb9(0x1ea4))<0x0&&(_0x3ae333[_0x128bb9(0x309)]['options']+=_0x128bb9(0x1ea4)):_0x3ae333[_0x128bb9(0x309)][_0x128bb9(0xa08)]=_0x3ae333[_0x128bb9(0x309)][_0x128bb9(0xa08)][_0x128bb9(0x5f4)](_0x128bb9(0x1ea4),''));if(_0x3ae333[_0x128bb9(0x309)][_0x128bb9(0x8f2)]&&_0x3ae333['noop'][_0x128bb9(0x8f2)]==='custom'){}else switch((_0x3ae333[_0x128bb9(0x309)][_0x128bb9(0x1873)]||_0x3ae333[_0x128bb9(0x309)][_0x128bb9(0x8f2)])[_0x128bb9(0x256e)]()){case _0x128bb9(0x26ba):_0x3ae333[_0x128bb9(0x309)][_0x128bb9(0x168a)]=_0x3ae333[_0x128bb9(0x309)][_0x128bb9(0x19eb)]+'='+_0x3ae333[_0x128bb9(0x309)][_0x128bb9(0x175d)];break;case _0x128bb9(0x1802):break;default:_0x51f4df[0x0]=_0x3ae333[_0x128bb9(0x309)]['value'],_0x3ae333[_0x128bb9(0x309)][_0x128bb9(0x168a)]=_0x51f4df[_0x128bb9(0xb47)](',');}_0x1ba0f4(_0x3ae333['noop']);}function _0x1ba0f4(_0x58621a){const _0x322fdd=_0x2272ac;_0x1d51e1[_0x322fdd(0x2458)](_0x58621a);}}const _0x26e4ca=_0x28a10e;;_0x467cc0[_0x313a4d(0x11c2)]=['$mdDialog','$q',_0x313a4d(0x1fe4),_0x313a4d(0x2265),_0x313a4d(0x189e),_0x313a4d(0x247f),_0x313a4d(0xa87),_0x313a4d(0x2514)];function _0x467cc0(_0x5b0eed,_0x21d678,_0x49efe5,_0xddd41,_0x49a885,_0x312c53,_0x548ff9,_0x4edbbd){const _0x24d5e1=_0x313a4d,_0x2d652c=this;_0x2d652c['currentUser']=_0x548ff9[_0x24d5e1(0xb12)](),_0x2d652c['errors']=[],_0x2d652c['title']='CHAT.EDIT_'+(_0xddd41[_0x24d5e1(0x8f2)]||_0xddd41[_0x24d5e1(0x1873)])[_0x24d5e1(0x1c37)](),_0x2d652c[_0x24d5e1(0x1c72)]=angular[_0x24d5e1(0x235a)](_0xddd41),_0x2d652c['crudPermissions']=_0x4edbbd,_0x2d652c[_0x24d5e1(0x855)]={};if(_0x2d652c[_0x24d5e1(0x1c72)][_0x24d5e1(0x168a)])switch(_0x2d652c[_0x24d5e1(0x1c72)][_0x24d5e1(0x8f2)]?_0x2d652c[_0x24d5e1(0x1c72)][_0x24d5e1(0x8f2)][_0x24d5e1(0x256e)]():_0x2d652c[_0x24d5e1(0x1c72)]['app'][_0x24d5e1(0x256e)]()){case _0x24d5e1(0x1802):break;case _0x24d5e1(0xeaa):{const _0x4d6aee=_0x2d652c['queue'][_0x24d5e1(0x168a)][_0x24d5e1(0x10c8)](',');_0x2d652c[_0x24d5e1(0x1c72)][_0x24d5e1(0x2293)]=_0x4d6aee[0x0],_0x2d652c[_0x24d5e1(0x1c72)]['language']=_0x4d6aee[0x1],_0x2d652c[_0x24d5e1(0x1c72)]['welcomemessage']=_0x4d6aee[_0x24d5e1(0x1298)](0x2,_0x4d6aee[_0x24d5e1(0x402)])[_0x24d5e1(0xb47)](',');}break;case _0x24d5e1(0xa46):{const _0x4ce43d=_0x2d652c[_0x24d5e1(0x1c72)][_0x24d5e1(0x168a)]['split'](',');_0x2d652c[_0x24d5e1(0x1c72)]['projectId']=_0x4ce43d[0x0],_0x2d652c[_0x24d5e1(0x1c72)][_0x24d5e1(0x1392)]=_0x4ce43d[0x1],_0x2d652c[_0x24d5e1(0x1c72)]['privateKey']=_0x4ce43d[0x2],_0x2d652c[_0x24d5e1(0x1c72)]['language']=_0x4ce43d[0x3],_0x2d652c[_0x24d5e1(0x1c72)][_0x24d5e1(0xaf3)]=_0x4ce43d[_0x24d5e1(0x1298)](0x4,_0x4ce43d[_0x24d5e1(0x402)])[_0x24d5e1(0xb47)](',');}break;case'amazonlex':{const _0x302c43=_0x2d652c[_0x24d5e1(0x1c72)][_0x24d5e1(0x168a)]['split'](',');_0x2d652c['queue'][_0x24d5e1(0x1651)]=_0x302c43[0x0],_0x2d652c[_0x24d5e1(0x1c72)]['secretaccesskey']=_0x302c43[0x1],_0x2d652c['queue'][_0x24d5e1(0x1039)]=_0x302c43[0x2],_0x2d652c[_0x24d5e1(0x1c72)]['botname']=_0x302c43[0x3],_0x2d652c['queue'][_0x24d5e1(0xaf3)]=_0x302c43[_0x24d5e1(0x1298)](0x4,_0x302c43[_0x24d5e1(0x402)])[_0x24d5e1(0xb47)](',');}break;case _0x24d5e1(0x1713):{const _0xad2843=_0x2d652c[_0x24d5e1(0x1c72)][_0x24d5e1(0x168a)][_0x24d5e1(0x10c8)](',');_0x2d652c[_0x24d5e1(0x1c72)]['times']=isNaN(_0xad2843[0x0])?_0xad2843[0x0]:parseInt(_0xad2843[0x0],0xa),_0x2d652c[_0x24d5e1(0x1c72)][_0x24d5e1(0xa8d)]=_0xad2843[_0x24d5e1(0x1298)](0x1,_0xad2843[_0x24d5e1(0x402)])['join'](',');}break;case'message':_0x2d652c[_0x24d5e1(0x1c72)][_0x24d5e1(0xa8d)]=_0x2d652c['queue'][_0x24d5e1(0x168a)];break;case _0x24d5e1(0x26ba):_0x2d652c[_0x24d5e1(0x1c72)][_0x24d5e1(0x19eb)]=_0x2d652c[_0x24d5e1(0x1c72)][_0x24d5e1(0x168a)][_0x24d5e1(0x10c8)]('=')[0x0],_0x2d652c[_0x24d5e1(0x1c72)]['value']=_0x2d652c[_0x24d5e1(0x1c72)][_0x24d5e1(0x168a)][_0x24d5e1(0x10c8)]('=')[0x1];break;case _0x24d5e1(0x1ecb):_0x2d652c[_0x24d5e1(0x1c72)][_0x24d5e1(0x9e0)]=_0x2d652c[_0x24d5e1(0x1c72)][_0x24d5e1(0x168a)];break;default:{const _0x3ddbe6=_0x2d652c[_0x24d5e1(0x1c72)][_0x24d5e1(0x168a)]['split'](',');_0x2d652c[_0x24d5e1(0x1c72)][_0x24d5e1(0x1c72)]=_0x3f65c0()[_0x24d5e1(0x2635)](_0x3ddbe6[0x0])?_0x3ddbe6[0x0]:isNaN(_0x3ddbe6[0x0])?_0x3ddbe6[0x0]:parseInt(_0x3ddbe6[0x0],0xa),_0x2d652c[_0x24d5e1(0x1c72)][_0x24d5e1(0xa9c)]=_0x3f65c0()[_0x24d5e1(0x2635)](_0x3ddbe6[0x1])?_0x3ddbe6[0x1]:isNaN(_0x3ddbe6[0x1])?_0x3ddbe6[0x1]:parseInt(_0x3ddbe6[0x1],0xa);}break;}else _0x2d652c[_0x24d5e1(0x1c72)]['queue']=0x12c,_0x2d652c[_0x24d5e1(0x1c72)][_0x24d5e1(0xa9c)]=0x12c;_0x2d652c['queue'][_0x24d5e1(0x1142)]&&_0x2d652c['queue'][_0x24d5e1(0x1142)]['toLowerCase']()==='outbound'&&_0x2d652c[_0x24d5e1(0x1c72)][_0x24d5e1(0x8f2)][_0x24d5e1(0x256e)]()===_0x24d5e1(0x3bb)&&(_0x2d652c['queue'][_0x24d5e1(0x1e12)]=_0x2d652c[_0x24d5e1(0x1c72)][_0x24d5e1(0x1d55)]?_0x2d652c['queue'][_0x24d5e1(0x1d55)]['split']('$')[0x0]:undefined,_0x2d652c[_0x24d5e1(0x1c72)][_0x24d5e1(0x1d43)]=_0x2d652c['queue']['callerID']?_0x24d5e1(0x1b60)+_0x2d652c['queue'][_0x24d5e1(0x11be)]:undefined);_0x2d652c[_0x24d5e1(0x2213)]=_0x565f57,_0x2d652c[_0x24d5e1(0x13f3)]=_0x4997c7,_0x548ff9[_0x24d5e1(0x23e0)]('admin')?_0x312c53[_0x24d5e1(0x16f8)][_0x24d5e1(0x16b4)]({'fields':_0x24d5e1(0x45e),'sort':_0x24d5e1(0x19eb),'nolimit':_0x24d5e1(0x1185)})[_0x24d5e1(0x2945)][_0x24d5e1(0x146b)](function(_0x38a79b){const _0xaa3ade=_0x24d5e1;_0x2d652c[_0xaa3ade(0x1b32)]=_0x38a79b[_0xaa3ade(0x19c7)]||[];})['catch'](function(_0x51f43a){const _0x53150c=_0x24d5e1;_0x49efe5[_0x53150c(0x1980)]({'title':_0x51f43a['status']?_0x53150c(0x262a)+_0x51f43a[_0x53150c(0x107b)]+_0x53150c(0x1315)+_0x51f43a['statusText']:_0x53150c(0x22d8),'msg':_0x51f43a[_0x53150c(0x524)]?JSON[_0x53150c(0x10bb)](_0x51f43a['data']):_0x51f43a[_0x53150c(0xd5f)]()});}):_0x312c53[_0x24d5e1(0x16f8)][_0x24d5e1(0x16b4)]({'fields':_0x24d5e1(0x45e),'sort':_0x24d5e1(0x19eb),'nolimit':_0x24d5e1(0x1185)})[_0x24d5e1(0x2945)]['then'](function(_0x34473d){const _0x23f9d6=_0x24d5e1;_0x2d652c['queues']=_0x34473d[_0x23f9d6(0x19c7)]||[];})[_0x24d5e1(0x146b)](function(){const _0x3e0fb8=_0x24d5e1;return _0x312c53['userProfileSection'][_0x3e0fb8(0x16b4)]({'userProfileId':_0x2d652c[_0x3e0fb8(0x2321)][_0x3e0fb8(0x209a)],'sectionId':0x1f5})['$promise'];})[_0x24d5e1(0x146b)](function(_0x443240){const _0x43d794=_0x24d5e1,_0xce9ab5=_0x443240&&_0x443240['rows']?_0x443240[_0x43d794(0x19c7)][0x0]:null;if(!_0xce9ab5){const _0xcb0377=[];let _0x3d18e3=null;_0x2d652c[_0x43d794(0x1c72)]&&(_0x3d18e3=_0x3f65c0()[_0x43d794(0xc84)](_0x2d652c[_0x43d794(0x1b32)],{'name':_0x2d652c['queue'][_0x43d794(0x1c72)]}));for(let _0x504ec1=0x0;_0x504ec1<_0x2d652c[_0x43d794(0x1b32)]['length'];_0x504ec1++){_0x3d18e3&&_0x2d652c[_0x43d794(0x1b32)][_0x504ec1]['id']===_0x3d18e3['id']&&(_0x2d652c['queues'][_0x504ec1]['canSelect']=![],_0xcb0377[_0x43d794(0x1f47)](_0x2d652c['queues'][_0x504ec1]));}_0x2d652c['queues']=_0xcb0377;}else{if(!_0xce9ab5[_0x43d794(0x11d2)])return _0x312c53['userProfileResource'][_0x43d794(0x16b4)]({'sectionId':_0xce9ab5['id']})['$promise'][_0x43d794(0x146b)](function(_0x13c23a){const _0x413892=_0x43d794,_0x106ae5=_0x3f65c0()[_0x413892(0x205)](_0x13c23a[_0x413892(0x19c7)],function(_0x575f31){const _0x547c30=_0x413892;return _0x3f65c0()[_0x547c30(0xc84)](_0x2d652c[_0x547c30(0x1b32)],{'id':_0x575f31[_0x547c30(0x18b8)]});});let _0x54fcfb=null;_0x2d652c[_0x413892(0x1c72)]&&(_0x54fcfb=_0x3f65c0()[_0x413892(0xc84)](_0x2d652c[_0x413892(0x1b32)],{'name':_0x2d652c[_0x413892(0x1c72)][_0x413892(0x1c72)]}));if(_0x54fcfb&&!_0x3f65c0()[_0x413892(0x1360)](_0x106ae5,['id',_0x54fcfb['id']])){const _0x20bd93=_0x3f65c0()[_0x413892(0xc84)](_0x2d652c[_0x413892(0x1b32)],{'id':_0x54fcfb['id']});_0x20bd93[_0x413892(0x8ff)]=![],_0x106ae5['push'](_0x20bd93);}_0x2d652c['queues']=_0x106ae5;});}})['catch'](function(_0x45180d){const _0x483d37=_0x24d5e1;_0x49efe5[_0x483d37(0x1980)]({'title':_0x45180d[_0x483d37(0x107b)]?_0x483d37(0x262a)+_0x45180d[_0x483d37(0x107b)]+'\x20-\x20'+_0x45180d[_0x483d37(0x167f)]:'SYSTEM:GETqueues','msg':_0x45180d[_0x483d37(0x524)]?JSON[_0x483d37(0x10bb)](_0x45180d['data']):_0x45180d[_0x483d37(0xd5f)]()});});function _0x565f57(){const _0x429f5b=_0x24d5e1;_0x2d652c['errors']=[];const _0x138f2b=[];_0x2d652c[_0x429f5b(0x1c72)][_0x429f5b(0x1142)]&&_0x2d652c['queue'][_0x429f5b(0x1142)][_0x429f5b(0x256e)]()===_0x429f5b(0xc9c)&&_0x2d652c[_0x429f5b(0x1c72)][_0x429f5b(0x8f2)]===_0x429f5b(0x118b)&&(_0x2d652c[_0x429f5b(0x1c72)][_0x429f5b(0x1d55)]=_0x49a885['cutdigits']?(_0x2d652c[_0x429f5b(0x1c72)]['prefix']||'')+_0x429f5b(0x2147)+_0x49a885[_0x429f5b(0x1274)]+'}':(_0x2d652c[_0x429f5b(0x1c72)][_0x429f5b(0x1e12)]||'')+_0x429f5b(0x20df),_0x49a885['recordingFormat']!==_0x429f5b(0x1642)?_0x2d652c['queue'][_0x429f5b(0xa08)][_0x429f5b(0x172b)](_0x429f5b(0x1ea4))<0x0&&(_0x2d652c[_0x429f5b(0x1c72)]['options']+=_0x429f5b(0x1ea4)):_0x2d652c[_0x429f5b(0x1c72)][_0x429f5b(0xa08)]=_0x2d652c['queue'][_0x429f5b(0xa08)][_0x429f5b(0x5f4)](_0x429f5b(0x1ea4),''));const _0xa2a326=_0x3f65c0()[_0x429f5b(0xc84)](_0x2d652c[_0x429f5b(0x1b32)],{'name':_0x2d652c[_0x429f5b(0x1c72)][_0x429f5b(0x1c72)]});_0xa2a326&&(_0x2d652c[_0x429f5b(0x1c72)][_0x3f65c0()[_0x429f5b(0x83f)](_0x429f5b(0xa7f))+_0x429f5b(0x23f8)]=_0xa2a326['id']);if(_0x2d652c[_0x429f5b(0x1c72)][_0x429f5b(0x8f2)]&&_0x2d652c[_0x429f5b(0x1c72)][_0x429f5b(0x8f2)]===_0x429f5b(0x1802)){}else switch((_0x2d652c[_0x429f5b(0x1c72)][_0x429f5b(0x1873)]||_0x2d652c[_0x429f5b(0x1c72)][_0x429f5b(0x8f2)])['toLowerCase']()){case _0x429f5b(0x26ba):_0x2d652c[_0x429f5b(0x1c72)][_0x429f5b(0x168a)]=_0x2d652c[_0x429f5b(0x1c72)][_0x429f5b(0x19eb)]+'='+_0x2d652c['queue'][_0x429f5b(0x175d)];break;case _0x429f5b(0x1802):break;default:_0x138f2b[0x0]=_0x2d652c[_0x429f5b(0x1c72)]['queue'],_0x138f2b[0x1]=_0x2d652c[_0x429f5b(0x1c72)]['timeout'],_0x2d652c[_0x429f5b(0x1c72)]['appdata']=_0x138f2b[_0x429f5b(0xb47)](',');}_0x4997c7(_0x2d652c[_0x429f5b(0x1c72)]);}function _0x4997c7(_0x45d580){const _0x365653=_0x24d5e1;_0x5b0eed[_0x365653(0x2458)](_0x45d580);}}const _0x35648b=_0x467cc0;;_0x5c5ff9[_0x313a4d(0x11c2)]=[_0x313a4d(0x10e8),'$q','toasty',_0x313a4d(0x2265),_0x313a4d(0x189e),'api',_0x313a4d(0xa87),_0x313a4d(0x2514)];function _0x5c5ff9(_0xccade1,_0x41c45e,_0x5d345a,_0x5601d9,_0x52ee4e,_0x313829,_0x4abdfb,_0x145db9){const _0xbfee1d=_0x313a4d,_0x3bbd93=this;_0x3bbd93[_0xbfee1d(0x2321)]=_0x4abdfb[_0xbfee1d(0xb12)](),_0x3bbd93['errors']=[],_0x3bbd93[_0xbfee1d(0x1189)]='CHAT.EDIT_'+(_0x5601d9[_0xbfee1d(0x8f2)]||_0x5601d9[_0xbfee1d(0x1873)])[_0xbfee1d(0x1c37)](),_0x3bbd93[_0xbfee1d(0x1d47)]=angular[_0xbfee1d(0x235a)](_0x5601d9),_0x3bbd93[_0xbfee1d(0x2514)]=_0x145db9,_0x3bbd93[_0xbfee1d(0x855)]={};if(_0x3bbd93[_0xbfee1d(0x1d47)][_0xbfee1d(0x168a)])switch(_0x3bbd93[_0xbfee1d(0x1d47)]['appType']?_0x3bbd93[_0xbfee1d(0x1d47)][_0xbfee1d(0x8f2)]['toLowerCase']():_0x3bbd93[_0xbfee1d(0x1d47)][_0xbfee1d(0x1873)]['toLowerCase']()){case _0xbfee1d(0x1802):break;case _0xbfee1d(0xeaa):{const _0x5e74b9=_0x3bbd93['system'][_0xbfee1d(0x168a)][_0xbfee1d(0x10c8)](',');_0x3bbd93[_0xbfee1d(0x1d47)][_0xbfee1d(0x2293)]=_0x5e74b9[0x0],_0x3bbd93[_0xbfee1d(0x1d47)][_0xbfee1d(0x90b)]=_0x5e74b9[0x1],_0x3bbd93[_0xbfee1d(0x1d47)][_0xbfee1d(0xaf3)]=_0x5e74b9['slice'](0x2,_0x5e74b9[_0xbfee1d(0x402)])[_0xbfee1d(0xb47)](',');}break;case _0xbfee1d(0xa46):{const _0x2a48c4=_0x3bbd93['system']['appdata'][_0xbfee1d(0x10c8)](',');_0x3bbd93[_0xbfee1d(0x1d47)]['projectId']=_0x2a48c4[0x0],_0x3bbd93[_0xbfee1d(0x1d47)][_0xbfee1d(0x1392)]=_0x2a48c4[0x1],_0x3bbd93[_0xbfee1d(0x1d47)]['privateKey']=_0x2a48c4[0x2],_0x3bbd93[_0xbfee1d(0x1d47)][_0xbfee1d(0x90b)]=_0x2a48c4[0x3],_0x3bbd93[_0xbfee1d(0x1d47)][_0xbfee1d(0xaf3)]=_0x2a48c4['slice'](0x4,_0x2a48c4[_0xbfee1d(0x402)])[_0xbfee1d(0xb47)](',');}break;case'amazonlex':{const _0x63b13f=_0x3bbd93[_0xbfee1d(0x1d47)][_0xbfee1d(0x168a)][_0xbfee1d(0x10c8)](',');_0x3bbd93[_0xbfee1d(0x1d47)][_0xbfee1d(0x1651)]=_0x63b13f[0x0],_0x3bbd93['system']['secretaccesskey']=_0x63b13f[0x1],_0x3bbd93[_0xbfee1d(0x1d47)][_0xbfee1d(0x1039)]=_0x63b13f[0x2],_0x3bbd93[_0xbfee1d(0x1d47)][_0xbfee1d(0x8dd)]=_0x63b13f[0x3],_0x3bbd93[_0xbfee1d(0x1d47)]['welcomemessage']=_0x63b13f['slice'](0x4,_0x63b13f[_0xbfee1d(0x402)])[_0xbfee1d(0xb47)](',');}break;case'autoreply':{const _0x129142=_0x3bbd93[_0xbfee1d(0x1d47)][_0xbfee1d(0x168a)]['split'](',');_0x3bbd93[_0xbfee1d(0x1d47)]['times']=isNaN(_0x129142[0x0])?_0x129142[0x0]:parseInt(_0x129142[0x0],0xa),_0x3bbd93[_0xbfee1d(0x1d47)][_0xbfee1d(0xa8d)]=_0x129142[_0xbfee1d(0x1298)](0x1,_0x129142['length'])[_0xbfee1d(0xb47)](',');}break;case _0xbfee1d(0x7fd):_0x3bbd93[_0xbfee1d(0x1d47)]['text']=_0x3bbd93[_0xbfee1d(0x1d47)]['appdata'];break;case _0xbfee1d(0x26ba):_0x3bbd93[_0xbfee1d(0x1d47)]['name']=_0x3bbd93[_0xbfee1d(0x1d47)][_0xbfee1d(0x168a)][_0xbfee1d(0x10c8)]('=')[0x0],_0x3bbd93[_0xbfee1d(0x1d47)][_0xbfee1d(0x175d)]=_0x3bbd93[_0xbfee1d(0x1d47)][_0xbfee1d(0x168a)][_0xbfee1d(0x10c8)]('=')[0x1];break;case _0xbfee1d(0x1ecb):_0x3bbd93[_0xbfee1d(0x1d47)][_0xbfee1d(0x9e0)]=_0x3bbd93[_0xbfee1d(0x1d47)][_0xbfee1d(0x168a)];break;default:{const _0x382d36=_0x3bbd93[_0xbfee1d(0x1d47)][_0xbfee1d(0x168a)][_0xbfee1d(0x10c8)](',');_0x3bbd93[_0xbfee1d(0x1d47)][_0xbfee1d(0x23e9)]=_0x3f65c0()[_0xbfee1d(0x2635)](_0x382d36[0x0])?_0x382d36[0x0]:isNaN(_0x382d36[0x0])?_0x382d36[0x0]:parseInt(_0x382d36[0x0],0xa),_0x3bbd93[_0xbfee1d(0x1d47)][_0xbfee1d(0x212)]=_0x3f65c0()[_0xbfee1d(0x2635)](_0x382d36[0x1])?_0x382d36[0x1]:isNaN(_0x382d36[0x1])?_0x382d36[0x1]:parseInt(_0x382d36[0x1],0xa);}break;}else _0x3bbd93[_0xbfee1d(0x1d47)][_0xbfee1d(0x212)]='';_0x3bbd93[_0xbfee1d(0x1d47)][_0xbfee1d(0x1142)]&&_0x3bbd93[_0xbfee1d(0x1d47)]['type'][_0xbfee1d(0x256e)]()===_0xbfee1d(0xc9c)&&_0x3bbd93['system'][_0xbfee1d(0x8f2)][_0xbfee1d(0x256e)]()==='outbounddial'&&(_0x3bbd93[_0xbfee1d(0x1d47)][_0xbfee1d(0x1e12)]=_0x3bbd93['system'][_0xbfee1d(0x1d55)]?_0x3bbd93['system'][_0xbfee1d(0x1d55)][_0xbfee1d(0x10c8)]('$')[0x0]:undefined,_0x3bbd93['system'][_0xbfee1d(0x1d43)]=_0x3bbd93[_0xbfee1d(0x1d47)][_0xbfee1d(0x11be)]?_0xbfee1d(0x1b60)+_0x3bbd93[_0xbfee1d(0x1d47)][_0xbfee1d(0x11be)]:undefined);_0x3bbd93['saveChatWebsiteApp']=_0x40fd80,_0x3bbd93[_0xbfee1d(0x13f3)]=_0x1661d5,_0x4abdfb['hasRole'](_0xbfee1d(0x174b))?_0x313829[_0xbfee1d(0x212)]['get']({'fields':'id,name','sort':'name','nolimit':'true'})[_0xbfee1d(0x2945)]['then'](function(_0x3a316f){const _0x48f12e=_0xbfee1d;_0x3bbd93[_0x48f12e(0x85b)]=_0x3a316f[_0x48f12e(0x19c7)]||[];})[_0xbfee1d(0x129e)](function(_0x3b779b){const _0x3f14c2=_0xbfee1d;_0x5d345a[_0x3f14c2(0x1980)]({'title':_0x3b779b['status']?_0x3f14c2(0x262a)+_0x3b779b[_0x3f14c2(0x107b)]+_0x3f14c2(0x1315)+_0x3b779b[_0x3f14c2(0x167f)]:_0x3f14c2(0x84b),'msg':_0x3b779b[_0x3f14c2(0x524)]?JSON[_0x3f14c2(0x10bb)](_0x3b779b[_0x3f14c2(0x524)]):_0x3b779b['toString']()});}):_0x313829['variable'][_0xbfee1d(0x16b4)]({'fields':'id,name','sort':'name','nolimit':'true'})[_0xbfee1d(0x2945)][_0xbfee1d(0x146b)](function(_0x46d415){const _0x444749=_0xbfee1d;_0x3bbd93['variables']=_0x46d415[_0x444749(0x19c7)]||[];})[_0xbfee1d(0x146b)](function(){const _0x302deb=_0xbfee1d;return _0x313829[_0x302deb(0x1366)][_0x302deb(0x16b4)]({'userProfileId':_0x3bbd93['currentUser'][_0x302deb(0x209a)],'sectionId':0x3f4})['$promise'];})[_0xbfee1d(0x146b)](function(_0x27f764){const _0x4d5bcf=_0xbfee1d,_0x4b278b=_0x27f764&&_0x27f764[_0x4d5bcf(0x19c7)]?_0x27f764[_0x4d5bcf(0x19c7)][0x0]:null;if(!_0x4b278b){const _0x46ff45=[];let _0x3c744b=null;_0x3bbd93[_0x4d5bcf(0x1d47)]&&(_0x3c744b=_0x3f65c0()[_0x4d5bcf(0xc84)](_0x3bbd93[_0x4d5bcf(0x85b)],{'name':_0x3bbd93['system'][_0x4d5bcf(0x212)]}));for(let _0x3c1361=0x0;_0x3c1361<_0x3bbd93['variables']['length'];_0x3c1361++){_0x3c744b&&_0x3bbd93['variables'][_0x3c1361]['id']===_0x3c744b['id']&&(_0x3bbd93['variables'][_0x3c1361][_0x4d5bcf(0x8ff)]=![],_0x46ff45['push'](_0x3bbd93[_0x4d5bcf(0x85b)][_0x3c1361]));}_0x3bbd93[_0x4d5bcf(0x85b)]=_0x46ff45;}else{if(!_0x4b278b[_0x4d5bcf(0x11d2)])return _0x313829[_0x4d5bcf(0xdcc)][_0x4d5bcf(0x16b4)]({'sectionId':_0x4b278b['id']})[_0x4d5bcf(0x2945)]['then'](function(_0x980bc8){const _0x1e9d80=_0x4d5bcf,_0x452c2b=_0x3f65c0()[_0x1e9d80(0x205)](_0x980bc8[_0x1e9d80(0x19c7)],function(_0x240bbe){const _0x1a47e9=_0x1e9d80;return _0x3f65c0()['find'](_0x3bbd93[_0x1a47e9(0x85b)],{'id':_0x240bbe['resourceId']});});let _0x1dd706=null;_0x3bbd93[_0x1e9d80(0x1d47)]&&(_0x1dd706=_0x3f65c0()['find'](_0x3bbd93['variables'],{'name':_0x3bbd93[_0x1e9d80(0x1d47)]['variable']}));if(_0x1dd706&&!_0x3f65c0()['some'](_0x452c2b,['id',_0x1dd706['id']])){const _0x4af177=_0x3f65c0()[_0x1e9d80(0xc84)](_0x3bbd93[_0x1e9d80(0x85b)],{'id':_0x1dd706['id']});_0x4af177[_0x1e9d80(0x8ff)]=![],_0x452c2b[_0x1e9d80(0x1f47)](_0x4af177);}_0x3bbd93['variables']=_0x452c2b;});}})[_0xbfee1d(0x129e)](function(_0x7fc82a){const _0x53066f=_0xbfee1d;_0x5d345a['error']({'title':_0x7fc82a[_0x53066f(0x107b)]?_0x53066f(0x262a)+_0x7fc82a['status']+_0x53066f(0x1315)+_0x7fc82a[_0x53066f(0x167f)]:_0x53066f(0x493),'msg':_0x7fc82a[_0x53066f(0x524)]?JSON[_0x53066f(0x10bb)](_0x7fc82a[_0x53066f(0x524)]):_0x7fc82a[_0x53066f(0xd5f)]()});});function _0x40fd80(){const _0xd60431=_0xbfee1d;_0x3bbd93[_0xd60431(0xcef)]=[];const _0x3c4888=[];_0x3bbd93[_0xd60431(0x1d47)]['type']&&_0x3bbd93['system'][_0xd60431(0x1142)][_0xd60431(0x256e)]()===_0xd60431(0xc9c)&&_0x3bbd93[_0xd60431(0x1d47)][_0xd60431(0x8f2)]==='outboundDial'&&(_0x3bbd93[_0xd60431(0x1d47)]['phone']=_0x52ee4e[_0xd60431(0x1274)]?(_0x3bbd93[_0xd60431(0x1d47)][_0xd60431(0x1e12)]||'')+'${EXTEN:'+_0x52ee4e[_0xd60431(0x1274)]+'}':(_0x3bbd93[_0xd60431(0x1d47)][_0xd60431(0x1e12)]||'')+_0xd60431(0x20df),_0x52ee4e[_0xd60431(0x1425)]!==_0xd60431(0x1642)?_0x3bbd93['system']['options'][_0xd60431(0x172b)](_0xd60431(0x1ea4))<0x0&&(_0x3bbd93[_0xd60431(0x1d47)][_0xd60431(0xa08)]+=_0xd60431(0x1ea4)):_0x3bbd93[_0xd60431(0x1d47)]['options']=_0x3bbd93['system'][_0xd60431(0xa08)]['replace'](_0xd60431(0x1ea4),''));if(_0x3bbd93[_0xd60431(0x1d47)]['appType']&&_0x3bbd93[_0xd60431(0x1d47)]['appType']===_0xd60431(0x1802)){}else switch((_0x3bbd93[_0xd60431(0x1d47)][_0xd60431(0x1873)]||_0x3bbd93['system'][_0xd60431(0x8f2)])[_0xd60431(0x256e)]()){case _0xd60431(0x26ba):_0x3bbd93[_0xd60431(0x1d47)][_0xd60431(0x168a)]=_0x3bbd93['system'][_0xd60431(0x19eb)]+'='+_0x3bbd93[_0xd60431(0x1d47)][_0xd60431(0x175d)];break;case'custom':break;default:_0x3c4888[0x0]=_0x3bbd93[_0xd60431(0x1d47)][_0xd60431(0x23e9)],_0x3c4888[0x1]=_0x3bbd93[_0xd60431(0x1d47)][_0xd60431(0x212)],_0x3bbd93[_0xd60431(0x1d47)][_0xd60431(0x168a)]=_0x3c4888[_0xd60431(0xb47)](',');}_0x1661d5(_0x3bbd93['system']);}function _0x1661d5(_0x48eb7e){_0xccade1['hide'](_0x48eb7e);}}const _0x1331e6=_0x5c5ff9;;_0xed959d[_0x313a4d(0x11c2)]=[_0x313a4d(0x10e8),'$q','toasty',_0x313a4d(0x2265),'chatWebsite',_0x313a4d(0x247f),'Auth','crudPermissions'];function _0xed959d(_0x346dac,_0x3cbcd2,_0x3f6578,_0x1a5592,_0x3b91a4,_0xe7359,_0x47ac0f,_0x496713){const _0x14a953=_0x313a4d,_0x7b6f3e=this;_0x7b6f3e[_0x14a953(0x2321)]=_0x47ac0f[_0x14a953(0xb12)](),_0x7b6f3e[_0x14a953(0xcef)]=[],_0x7b6f3e[_0x14a953(0x1189)]='CHAT.EDIT_'+(_0x1a5592[_0x14a953(0x8f2)]||_0x1a5592[_0x14a953(0x1873)])[_0x14a953(0x1c37)](),_0x7b6f3e[_0x14a953(0xa80)]=angular['copy'](_0x1a5592),_0x7b6f3e['crudPermissions']=_0x496713,_0x7b6f3e[_0x14a953(0x855)]={};if(_0x7b6f3e['tag'][_0x14a953(0x168a)])switch(_0x7b6f3e['tag'][_0x14a953(0x8f2)]?_0x7b6f3e['tag']['appType']['toLowerCase']():_0x7b6f3e[_0x14a953(0xa80)][_0x14a953(0x1873)][_0x14a953(0x256e)]()){case'custom':break;case _0x14a953(0xeaa):{const _0x29be57=_0x7b6f3e[_0x14a953(0xa80)]['appdata'][_0x14a953(0x10c8)](',');_0x7b6f3e[_0x14a953(0xa80)][_0x14a953(0x2293)]=_0x29be57[0x0],_0x7b6f3e[_0x14a953(0xa80)][_0x14a953(0x90b)]=_0x29be57[0x1],_0x7b6f3e['tag'][_0x14a953(0xaf3)]=_0x29be57[_0x14a953(0x1298)](0x2,_0x29be57[_0x14a953(0x402)])[_0x14a953(0xb47)](',');}break;case _0x14a953(0xa46):{const _0x3f7252=_0x7b6f3e[_0x14a953(0xa80)][_0x14a953(0x168a)][_0x14a953(0x10c8)](',');_0x7b6f3e[_0x14a953(0xa80)][_0x14a953(0x153a)]=_0x3f7252[0x0],_0x7b6f3e[_0x14a953(0xa80)]['clientEmail']=_0x3f7252[0x1],_0x7b6f3e[_0x14a953(0xa80)][_0x14a953(0x2217)]=_0x3f7252[0x2],_0x7b6f3e[_0x14a953(0xa80)]['language']=_0x3f7252[0x3],_0x7b6f3e['tag'][_0x14a953(0xaf3)]=_0x3f7252[_0x14a953(0x1298)](0x4,_0x3f7252[_0x14a953(0x402)])[_0x14a953(0xb47)](',');}break;case _0x14a953(0x17d6):{const _0x4258d1=_0x7b6f3e['tag']['appdata'][_0x14a953(0x10c8)](',');_0x7b6f3e['tag']['accesskeyid']=_0x4258d1[0x0],_0x7b6f3e[_0x14a953(0xa80)][_0x14a953(0x252)]=_0x4258d1[0x1],_0x7b6f3e['tag'][_0x14a953(0x1039)]=_0x4258d1[0x2],_0x7b6f3e['tag'][_0x14a953(0x8dd)]=_0x4258d1[0x3],_0x7b6f3e[_0x14a953(0xa80)][_0x14a953(0xaf3)]=_0x4258d1[_0x14a953(0x1298)](0x4,_0x4258d1['length'])['join'](',');}break;case _0x14a953(0x1713):{const _0x43f4d6=_0x7b6f3e[_0x14a953(0xa80)][_0x14a953(0x168a)][_0x14a953(0x10c8)](',');_0x7b6f3e[_0x14a953(0xa80)][_0x14a953(0x583)]=isNaN(_0x43f4d6[0x0])?_0x43f4d6[0x0]:parseInt(_0x43f4d6[0x0],0xa),_0x7b6f3e['tag'][_0x14a953(0xa8d)]=_0x43f4d6['slice'](0x1,_0x43f4d6['length'])[_0x14a953(0xb47)](',');}break;case _0x14a953(0x7fd):_0x7b6f3e['tag'][_0x14a953(0xa8d)]=_0x7b6f3e[_0x14a953(0xa80)][_0x14a953(0x168a)];break;case _0x14a953(0x26ba):_0x7b6f3e[_0x14a953(0xa80)]['name']=_0x7b6f3e['tag'][_0x14a953(0x168a)][_0x14a953(0x10c8)]('=')[0x0],_0x7b6f3e[_0x14a953(0xa80)]['value']=_0x7b6f3e[_0x14a953(0xa80)]['appdata'][_0x14a953(0x10c8)]('=')[0x1];break;case'agi':_0x7b6f3e['tag']['project']=_0x7b6f3e['tag'][_0x14a953(0x168a)];break;default:{const _0x3e1a41=_0x7b6f3e[_0x14a953(0xa80)][_0x14a953(0x168a)][_0x14a953(0x10c8)](',');_0x7b6f3e[_0x14a953(0xa80)]['tag']=_0x3f65c0()[_0x14a953(0x2635)](_0x3e1a41[0x0])?_0x3e1a41[0x0]:isNaN(_0x3e1a41[0x0])?_0x3e1a41[0x0]:parseInt(_0x3e1a41[0x0],0xa);}break;}else{}_0x7b6f3e[_0x14a953(0xa80)][_0x14a953(0x1142)]&&_0x7b6f3e[_0x14a953(0xa80)][_0x14a953(0x1142)][_0x14a953(0x256e)]()===_0x14a953(0xc9c)&&_0x7b6f3e[_0x14a953(0xa80)][_0x14a953(0x8f2)][_0x14a953(0x256e)]()==='outbounddial'&&(_0x7b6f3e[_0x14a953(0xa80)][_0x14a953(0x1e12)]=_0x7b6f3e['tag']['phone']?_0x7b6f3e['tag'][_0x14a953(0x1d55)][_0x14a953(0x10c8)]('$')[0x0]:undefined,_0x7b6f3e[_0x14a953(0xa80)][_0x14a953(0x1d43)]=_0x7b6f3e[_0x14a953(0xa80)][_0x14a953(0x11be)]?_0x14a953(0x1b60)+_0x7b6f3e[_0x14a953(0xa80)][_0x14a953(0x11be)]:undefined);_0x7b6f3e[_0x14a953(0x2213)]=_0x36b66f,_0x7b6f3e[_0x14a953(0x13f3)]=_0x1a06de,_0x47ac0f['hasRole'](_0x14a953(0x174b))?_0xe7359[_0x14a953(0xa80)][_0x14a953(0x16b4)]({'fields':_0x14a953(0x7a7),'sort':_0x14a953(0x19eb),'nolimit':_0x14a953(0x1185)})[_0x14a953(0x2945)][_0x14a953(0x146b)](function(_0x218dda){const _0x56fd3e=_0x14a953;_0x7b6f3e['tags']=_0x218dda[_0x56fd3e(0x19c7)]||[];})[_0x14a953(0x129e)](function(_0x172f7b){const _0x43a340=_0x14a953;_0x3f6578['error']({'title':_0x172f7b[_0x43a340(0x107b)]?_0x43a340(0x262a)+_0x172f7b[_0x43a340(0x107b)]+_0x43a340(0x1315)+_0x172f7b['statusText']:'SYSTEM:GET_TAGS','msg':_0x172f7b['data']?JSON['stringify'](_0x172f7b['data']):_0x172f7b[_0x43a340(0xd5f)]()});}):_0xe7359[_0x14a953(0xa80)][_0x14a953(0x16b4)]({'fields':_0x14a953(0x7a7),'sort':'name','nolimit':_0x14a953(0x1185)})[_0x14a953(0x2945)]['then'](function(_0x2ac3e7){const _0x411689=_0x14a953;_0x7b6f3e[_0x411689(0x1b86)]=_0x2ac3e7[_0x411689(0x19c7)]||[];})[_0x14a953(0x146b)](function(){const _0x4e90a6=_0x14a953;return _0xe7359[_0x4e90a6(0x1366)][_0x4e90a6(0x16b4)]({'userProfileId':_0x7b6f3e[_0x4e90a6(0x2321)][_0x4e90a6(0x209a)],'sectionId':0x3f0})[_0x4e90a6(0x2945)];})[_0x14a953(0x146b)](function(_0x1cb8a0){const _0x5cdb4d=_0x14a953,_0x1cfc7=_0x1cb8a0&&_0x1cb8a0[_0x5cdb4d(0x19c7)]?_0x1cb8a0[_0x5cdb4d(0x19c7)][0x0]:null;if(!_0x1cfc7){const _0x4dc32a=[];let _0x3a6778=null;_0x7b6f3e[_0x5cdb4d(0xa80)]&&(_0x3a6778=_0x3f65c0()['find'](_0x7b6f3e[_0x5cdb4d(0x1b86)],{'name':_0x7b6f3e['tag'][_0x5cdb4d(0xa80)]}));for(let _0x3ea5c0=0x0;_0x3ea5c0<_0x7b6f3e[_0x5cdb4d(0x1b86)][_0x5cdb4d(0x402)];_0x3ea5c0++){_0x3a6778&&_0x7b6f3e[_0x5cdb4d(0x1b86)][_0x3ea5c0]['id']===_0x3a6778['id']&&(_0x7b6f3e[_0x5cdb4d(0x1b86)][_0x3ea5c0][_0x5cdb4d(0x8ff)]=![],_0x4dc32a['push'](_0x7b6f3e[_0x5cdb4d(0x1b86)][_0x3ea5c0]));}_0x7b6f3e[_0x5cdb4d(0x1b86)]=_0x4dc32a;}else{if(!_0x1cfc7['autoAssociation'])return _0xe7359['userProfileResource'][_0x5cdb4d(0x16b4)]({'sectionId':_0x1cfc7['id']})['$promise']['then'](function(_0x1b338d){const _0x2ffc3f=_0x5cdb4d,_0x2fd207=_0x3f65c0()['map'](_0x1b338d[_0x2ffc3f(0x19c7)],function(_0x167863){const _0x18f6d3=_0x2ffc3f;return _0x3f65c0()[_0x18f6d3(0xc84)](_0x7b6f3e[_0x18f6d3(0x1b86)],{'id':_0x167863['resourceId']});});let _0x25386b=null;_0x7b6f3e[_0x2ffc3f(0xa80)]&&(_0x25386b=_0x3f65c0()[_0x2ffc3f(0xc84)](_0x7b6f3e[_0x2ffc3f(0x1b86)],{'name':_0x7b6f3e[_0x2ffc3f(0xa80)][_0x2ffc3f(0xa80)]}));if(_0x25386b&&!_0x3f65c0()[_0x2ffc3f(0x1360)](_0x2fd207,['id',_0x25386b['id']])){const _0x3ac3ca=_0x3f65c0()[_0x2ffc3f(0xc84)](_0x7b6f3e[_0x2ffc3f(0x1b86)],{'id':_0x25386b['id']});_0x3ac3ca[_0x2ffc3f(0x8ff)]=![],_0x2fd207[_0x2ffc3f(0x1f47)](_0x3ac3ca);}_0x7b6f3e[_0x2ffc3f(0x1b86)]=_0x2fd207;});}})[_0x14a953(0x129e)](function(_0x5a75b7){const _0x262eaa=_0x14a953;_0x3f6578[_0x262eaa(0x1980)]({'title':_0x5a75b7['status']?'API:'+_0x5a75b7['status']+_0x262eaa(0x1315)+_0x5a75b7[_0x262eaa(0x167f)]:'SYSTEM:GETtags','msg':_0x5a75b7['data']?JSON[_0x262eaa(0x10bb)](_0x5a75b7['data']):_0x5a75b7[_0x262eaa(0xd5f)]()});});function _0x36b66f(){const _0x4ff40e=_0x14a953;_0x7b6f3e['errors']=[];const _0x1c8223=[];_0x7b6f3e['tag'][_0x4ff40e(0x1142)]&&_0x7b6f3e['tag']['type']['toLowerCase']()===_0x4ff40e(0xc9c)&&_0x7b6f3e[_0x4ff40e(0xa80)][_0x4ff40e(0x8f2)]===_0x4ff40e(0x118b)&&(_0x7b6f3e[_0x4ff40e(0xa80)][_0x4ff40e(0x1d55)]=_0x3b91a4['cutdigits']?(_0x7b6f3e[_0x4ff40e(0xa80)][_0x4ff40e(0x1e12)]||'')+_0x4ff40e(0x2147)+_0x3b91a4[_0x4ff40e(0x1274)]+'}':(_0x7b6f3e[_0x4ff40e(0xa80)][_0x4ff40e(0x1e12)]||'')+'${EXTEN}',_0x3b91a4[_0x4ff40e(0x1425)]!=='none'?_0x7b6f3e['tag'][_0x4ff40e(0xa08)][_0x4ff40e(0x172b)]('U(xcally-mixmonitor-context)')<0x0&&(_0x7b6f3e[_0x4ff40e(0xa80)][_0x4ff40e(0xa08)]+='U(xcally-mixmonitor-context)'):_0x7b6f3e[_0x4ff40e(0xa80)][_0x4ff40e(0xa08)]=_0x7b6f3e[_0x4ff40e(0xa80)][_0x4ff40e(0xa08)][_0x4ff40e(0x5f4)]('U(xcally-mixmonitor-context)',''));const _0x21d8a8=_0x3f65c0()[_0x4ff40e(0xc84)](_0x7b6f3e['tags'],{'name':_0x7b6f3e[_0x4ff40e(0xa80)][_0x4ff40e(0xa80)]});_0x21d8a8&&(_0x7b6f3e['tag'][_0x4ff40e(0xb0a)]=_0x21d8a8['id']);if(_0x7b6f3e[_0x4ff40e(0xa80)][_0x4ff40e(0x8f2)]&&_0x7b6f3e[_0x4ff40e(0xa80)][_0x4ff40e(0x8f2)]===_0x4ff40e(0x1802)){}else switch((_0x7b6f3e['tag']['app']||_0x7b6f3e[_0x4ff40e(0xa80)][_0x4ff40e(0x8f2)])[_0x4ff40e(0x256e)]()){case _0x4ff40e(0x26ba):_0x7b6f3e[_0x4ff40e(0xa80)][_0x4ff40e(0x168a)]=_0x7b6f3e[_0x4ff40e(0xa80)][_0x4ff40e(0x19eb)]+'='+_0x7b6f3e[_0x4ff40e(0xa80)][_0x4ff40e(0x175d)];break;case _0x4ff40e(0x1802):break;default:_0x1c8223[0x0]=_0x7b6f3e[_0x4ff40e(0xa80)]['tag'],_0x7b6f3e[_0x4ff40e(0xa80)][_0x4ff40e(0x168a)]=_0x1c8223[_0x4ff40e(0xb47)](',');}_0x1a06de(_0x7b6f3e[_0x4ff40e(0xa80)]);}function _0x1a06de(_0x57e85c){_0x346dac['hide'](_0x57e85c);}}const _0x34c4be=_0xed959d;;const _0x39f3f1=_0x4acfac['p']+'src/js/modules/main/apps/chat/views/chatWebsites/edit/chatCannedAnswers/dialog.html/dialog.html';;_0x1f3ea0[_0x313a4d(0x11c2)]=[_0x313a4d(0x23df),_0x313a4d(0x910),_0x313a4d(0x1862),'$q',_0x313a4d(0x214b),_0x313a4d(0x1abe),'$mdDialog','$document',_0x313a4d(0x1fe4),_0x313a4d(0x247f),_0x313a4d(0xa87)];function _0x1f3ea0(_0x506d2b,_0x401e2b,_0xc5fcc5,_0x24172c,_0x49b332,_0x58718c,_0x581ce7,_0x5a62e4,_0x51505c,_0x1dceaf,_0x7eace7){const _0x580502=_0x313a4d,_0x134251=this;_0x134251['currentUser']=_0x7eace7[_0x580502(0xb12)](),_0x134251[_0x580502(0x189e)]={},_0x134251[_0x580502(0x280f)]={'count':0x0,'rows':[]},_0x134251[_0x580502(0x1510)]=[],_0x134251[_0x580502(0x2514)],_0x134251[_0x580502(0x1a56)]={'fields':_0x580502(0x241e),'limit':0xa,'page':0x1},_0x134251[_0x580502(0x5aa)]=_0x548146,_0x134251['deleteConfirm']=_0x3e03e0,_0x134251['success']=_0x204371,_0x134251[_0x580502(0xa7e)]=_0x3122ac,_0x134251[_0x580502(0x5b3)]=_0x413534,_0x134251['exportSelectedChatWebsiteChatCannedAnswers']=_0x36998b,_0x134251[_0x580502(0x1111)]=_0x45e6ec,_0x134251[_0x580502(0x226c)]=_0x3021de;function _0x548146(_0x11bcc2,_0x3dfd53){const _0x3d8c17=_0x580502;_0x134251[_0x3d8c17(0x189e)]=_0x11bcc2,_0x134251[_0x3d8c17(0x2514)]=typeof _0x3dfd53!==_0x3d8c17(0x2274)?_0x3dfd53:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x134251[_0x3d8c17(0x1a56)][_0x3d8c17(0x1d92)]=_0x134251['chatWebsite']['id'],_0x134251[_0x3d8c17(0x1a56)]['id']=_0x134251[_0x3d8c17(0x189e)]['id'],_0x3122ac();}function _0x3e03e0(_0xd44c3a,_0xaa5625){const _0x6beb6c=_0x580502,_0x1de65c=_0x581ce7[_0x6beb6c(0x1e8a)]()[_0x6beb6c(0x1189)](_0x6beb6c(0xb44))['htmlContent'](''+(_0xd44c3a[_0x6beb6c(0x19eb)]||_0xd44c3a['id']&&_0x3f65c0()[_0x6beb6c(0x21cf)]('chatCannedAnswer\x20#')+_0xd44c3a['id']||_0x6beb6c(0x714))+_0x6beb6c(0x252f)+_0x6beb6c(0xe01))[_0x6beb6c(0x4bd)](_0x6beb6c(0x1540))['targetEvent'](_0xaa5625)['ok']('OK')[_0x6beb6c(0x6c3)]('CANCEL');_0x581ce7['show'](_0x1de65c)[_0x6beb6c(0x146b)](function(){_0x45e6ec(_0xd44c3a);},function(){const _0x31e7e6=_0x6beb6c;console[_0x31e7e6(0x1a74)](_0x31e7e6(0x39a));});}function _0x204371(_0x27ca84){const _0x5ae6d0=_0x580502;_0x134251[_0x5ae6d0(0x280f)]=_0x27ca84||{'count':0x0,'rows':[]};}function _0x3122ac(){const _0x91d800=_0x580502;_0x134251['query']['offset']=(_0x134251[_0x91d800(0x1a56)][_0x91d800(0x844)]-0x1)*_0x134251[_0x91d800(0x1a56)][_0x91d800(0x221e)],_0x134251[_0x91d800(0xb9c)]=_0x1dceaf['chatWebsite'][_0x91d800(0x13e1)](_0x134251['query'],_0x204371)[_0x91d800(0x2945)];}function _0x413534(_0x547794,_0x99c810){const _0x27ee34=_0x580502;_0x581ce7[_0x27ee34(0x2615)]({'controller':_0x27ee34(0x1963),'controllerAs':'vm','templateUrl':_0x39f3f1,'parent':angular[_0x27ee34(0x1853)](_0x5a62e4[_0x27ee34(0x2586)]),'targetEvent':_0x547794,'clickOutsideToClose':!![],'locals':{'chatWebsite':_0x134251['chatWebsite'],'chatCannedAnswer':_0x99c810,'chatCannedAnswers':_0x134251[_0x27ee34(0x280f)][_0x27ee34(0x19c7)],'license':null,'setting':null,'crudPermissions':_0x134251[_0x27ee34(0x2514)]}});}function _0x45e6ec(_0x4df4d7){const _0x5b94e7=_0x580502;_0x1dceaf['cannedAnswer']['delete']({'id':_0x4df4d7['id']})['$promise'][_0x5b94e7(0x146b)](function(){const _0x40c34d=_0x5b94e7;_0x3f65c0()[_0x40c34d(0x2640)](_0x134251[_0x40c34d(0x280f)][_0x40c34d(0x19c7)],{'id':_0x4df4d7['id']}),_0x134251['chatWebsiteChatCannedAnswers'][_0x40c34d(0x51c)]-=0x1,!_0x134251[_0x40c34d(0x280f)][_0x40c34d(0x19c7)][_0x40c34d(0x402)]&&_0x3122ac(),_0x51505c['success']({'title':_0x40c34d(0xa39),'msg':_0x4df4d7['name']?_0x4df4d7[_0x40c34d(0x19eb)]+_0x40c34d(0x23e3):''});})[_0x5b94e7(0x129e)](function(_0x31753b){const _0x56acca=_0x5b94e7;if(_0x31753b[_0x56acca(0x524)]&&_0x31753b[_0x56acca(0x524)][_0x56acca(0xcef)]&&_0x31753b['data'][_0x56acca(0xcef)]['length']){_0x134251[_0x56acca(0xcef)]=_0x31753b[_0x56acca(0x524)][_0x56acca(0xcef)]||[{'message':_0x31753b[_0x56acca(0xd5f)](),'type':_0x56acca(0xfb3)}];for(let _0x1d60fd=0x0;_0x1d60fd<_0x31753b[_0x56acca(0x524)][_0x56acca(0xcef)][_0x56acca(0x402)];_0x1d60fd++){_0x51505c[_0x56acca(0x1980)]({'title':_0x31753b['data']['errors'][_0x1d60fd]['type'],'msg':_0x31753b[_0x56acca(0x524)]['errors'][_0x1d60fd][_0x56acca(0x7fd)]});}}else _0x51505c[_0x56acca(0x1980)]({'title':_0x31753b[_0x56acca(0x107b)]?_0x56acca(0x262a)+_0x31753b[_0x56acca(0x107b)]+'\x20-\x20'+_0x31753b[_0x56acca(0x167f)]:_0x56acca(0xfb3),'msg':_0x31753b[_0x56acca(0x524)]?JSON[_0x56acca(0x10bb)](_0x31753b[_0x56acca(0x524)][_0x56acca(0x7fd)]):_0x31753b[_0x56acca(0x7fd)]||_0x31753b[_0x56acca(0xd5f)]()});});}function _0x36998b(){const _0x38f486=_0x580502,_0x9a82c2=angular[_0x38f486(0x235a)](_0x134251[_0x38f486(0x1510)]);return _0x134251[_0x38f486(0x1510)]=[],_0x9a82c2;}function _0x3021de(_0x5486f3){const _0x3219e1=_0x580502,_0x1aab1a=_0x581ce7[_0x3219e1(0x1e8a)]()[_0x3219e1(0x1189)](_0x3219e1(0x1437))[_0x3219e1(0x1cbe)](_0x3219e1(0x16d3)+_0x134251[_0x3219e1(0x1510)][_0x3219e1(0x402)]+_0x3219e1(0x2452)+'\x20will\x20be\x20deleted.')[_0x3219e1(0x4bd)](_0x3219e1(0x28e))[_0x3219e1(0x1f27)](_0x5486f3)['ok']('OK')[_0x3219e1(0x6c3)](_0x3219e1(0x39a));_0x581ce7['show'](_0x1aab1a)[_0x3219e1(0x146b)](function(){const _0x3684c1=_0x3219e1;_0x134251[_0x3684c1(0x1510)][_0x3684c1(0x1df5)](function(_0x399799){_0x45e6ec(_0x399799);}),_0x134251['selectedChatWebsiteChatCannedAnswers']=[];});}let _0x468b18=!![],_0x5a7c6a=0x1;_0x401e2b[_0x580502(0x21e8)]('vm_dc.query.filter',function(_0x3667b5,_0xed9092){const _0x4727cf=_0x580502;_0x468b18?_0x58718c(function(){_0x468b18=![];}):(!_0xed9092&&(_0x5a7c6a=_0x134251['query'][_0x4727cf(0x844)]),_0x3667b5!==_0xed9092&&(_0x134251['query']['page']=0x1),!_0x3667b5&&(_0x134251[_0x4727cf(0x1a56)][_0x4727cf(0x844)]=_0x5a7c6a),_0x3122ac());});}const _0x43057f=_0x1f3ea0;;_0x5cf7be['$inject']=['$scope',_0x313a4d(0x1862),_0x313a4d(0xd08),_0x313a4d(0x10e8),'$q',_0x313a4d(0x214b),'toasty',_0x313a4d(0x1069),_0x313a4d(0x714),'api','Auth','license',_0x313a4d(0x15b9),_0x313a4d(0x2514)];function _0x5cf7be(_0x4fb1e7,_0xbf94d7,_0x21eefa,_0x43af18,_0xd769c,_0x4a9587,_0x2a1f3f,_0x54f71d,_0x39019e,_0x383ff8,_0x3ea028,_0x3bb0a7,_0x546ade,_0x5f2723){const _0x27fa1b=_0x313a4d,_0x5dcb46=this;_0x5dcb46[_0x27fa1b(0x2321)]=_0x3ea028[_0x27fa1b(0xb12)](),_0x5dcb46[_0x27fa1b(0xcef)]=[],_0x5dcb46['setting']=_0x546ade,_0x5dcb46[_0x27fa1b(0x2690)]=_0x3bb0a7,_0x5dcb46[_0x27fa1b(0x2514)]=_0x5f2723,_0x5dcb46[_0x27fa1b(0x855)]={},_0x5dcb46[_0x27fa1b(0x2251)]=_0x5dcb46[_0x27fa1b(0x15b9)]&&_0x5dcb46['setting']['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x5dcb46[_0x27fa1b(0x1189)]=_0x27fa1b(0x16d2),_0x5dcb46[_0x27fa1b(0x714)]=angular[_0x27fa1b(0x235a)](_0x39019e),_0x5dcb46[_0x27fa1b(0x1069)]=_0x54f71d,_0x5dcb46[_0x27fa1b(0x28a0)]=![];!_0x5dcb46[_0x27fa1b(0x714)]&&(_0x5dcb46[_0x27fa1b(0x714)]={},_0x5dcb46[_0x27fa1b(0x1189)]=_0x27fa1b(0x1530),_0x5dcb46[_0x27fa1b(0x28a0)]=!![]);_0xbf94d7['params']['id']&&(_0x5dcb46['chatCannedAnswer'][_0x27fa1b(0x1d92)]=_0xbf94d7[_0x27fa1b(0x16a)]['id']);_0x5dcb46[_0x27fa1b(0xf58)]=_0x282296,_0x5dcb46[_0x27fa1b(0x56e)]=_0x354056,_0x5dcb46[_0x27fa1b(0xc9b)]=_0x39b43d,_0x5dcb46['getDateFromString']=_0x4370a3,_0x5dcb46['closeDialog']=_0x21e1ae;function _0x282296(){const _0x4a10fe=_0x27fa1b;_0x5dcb46[_0x4a10fe(0xcef)]=[],_0x383ff8[_0x4a10fe(0x1ada)]['save'](_0x5dcb46[_0x4a10fe(0x714)])['$promise']['then'](function(_0x20cd04){const _0x95d4f9=_0x4a10fe;_0x5dcb46[_0x95d4f9(0x1069)][_0x95d4f9(0xb3d)](_0x20cd04[_0x95d4f9(0x2488)]()),_0x2a1f3f[_0x95d4f9(0x1c75)]({'title':'ChatCannedAnswer\x20properly\x20created','msg':_0x5dcb46[_0x95d4f9(0x714)]['name']?_0x5dcb46['chatCannedAnswer'][_0x95d4f9(0x19eb)]+'\x20has\x20been\x20created!':''}),_0x21e1ae(_0x20cd04);})[_0x4a10fe(0x129e)](function(_0xe68c59){const _0x3c7e5c=_0x4a10fe;if(_0xe68c59['data']&&_0xe68c59[_0x3c7e5c(0x524)][_0x3c7e5c(0xcef)]&&_0xe68c59[_0x3c7e5c(0x524)][_0x3c7e5c(0xcef)][_0x3c7e5c(0x402)]){_0x5dcb46[_0x3c7e5c(0xcef)]=_0xe68c59[_0x3c7e5c(0x524)][_0x3c7e5c(0xcef)]||[{'message':_0xe68c59[_0x3c7e5c(0xd5f)](),'type':'api.cannedAnswer.save'}];for(let _0x3bcc11=0x0;_0x3bcc11<_0xe68c59[_0x3c7e5c(0x524)][_0x3c7e5c(0xcef)][_0x3c7e5c(0x402)];_0x3bcc11+=0x1){_0x2a1f3f[_0x3c7e5c(0x1980)]({'title':_0xe68c59[_0x3c7e5c(0x524)][_0x3c7e5c(0xcef)][_0x3bcc11][_0x3c7e5c(0x1142)],'msg':_0xe68c59['data'][_0x3c7e5c(0xcef)][_0x3bcc11][_0x3c7e5c(0x7fd)]});}}else _0x2a1f3f['error']({'title':_0xe68c59[_0x3c7e5c(0x107b)]?_0x3c7e5c(0x262a)+_0xe68c59[_0x3c7e5c(0x107b)]+'\x20-\x20'+_0xe68c59[_0x3c7e5c(0x167f)]:_0x3c7e5c(0x13f),'msg':_0xe68c59[_0x3c7e5c(0x524)]?JSON[_0x3c7e5c(0x10bb)](_0xe68c59['data']['message']):_0xe68c59[_0x3c7e5c(0xd5f)]()});});}function _0x354056(){const _0x147d05=_0x27fa1b;_0x5dcb46[_0x147d05(0xcef)]=[],_0x383ff8[_0x147d05(0x1ada)][_0x147d05(0x18e1)]({'id':_0x5dcb46[_0x147d05(0x714)]['id']},_0x5dcb46[_0x147d05(0x714)])[_0x147d05(0x2945)][_0x147d05(0x146b)](function(_0x1aae7d){const _0x1f0029=_0x147d05,_0x51ad52=_0x3f65c0()[_0x1f0029(0xc84)](_0x5dcb46[_0x1f0029(0x1069)],{'id':_0x1aae7d['id']});_0x51ad52&&_0x3f65c0()['merge'](_0x51ad52,_0x3f65c0()['pick'](_0x1aae7d[_0x1f0029(0x2488)](),_0x3f65c0()[_0x1f0029(0x627)](_0x51ad52))),_0x2a1f3f[_0x1f0029(0x1c75)]({'title':_0x1f0029(0x1941),'msg':_0x5dcb46[_0x1f0029(0x714)][_0x1f0029(0x19eb)]?_0x5dcb46['chatCannedAnswer'][_0x1f0029(0x19eb)]+_0x1f0029(0x24db):''}),_0x21e1ae(_0x1aae7d);})['catch'](function(_0x28f054){const _0x3640b4=_0x147d05;if(_0x28f054['data']&&_0x28f054['data']['errors']&&_0x28f054[_0x3640b4(0x524)][_0x3640b4(0xcef)][_0x3640b4(0x402)]){_0x5dcb46['errors']=_0x28f054[_0x3640b4(0x524)][_0x3640b4(0xcef)]||[{'message':_0x28f054[_0x3640b4(0xd5f)](),'type':'api.cannedAnswer.update'}];for(let _0xcb7154=0x0;_0xcb7154<_0x28f054['data'][_0x3640b4(0xcef)][_0x3640b4(0x402)];_0xcb7154++){_0x2a1f3f['error']({'title':_0x28f054['data'][_0x3640b4(0xcef)][_0xcb7154][_0x3640b4(0x1142)],'msg':_0x28f054['data']['errors'][_0xcb7154]['message']});}}else _0x2a1f3f['error']({'title':_0x28f054[_0x3640b4(0x107b)]?_0x3640b4(0x262a)+_0x28f054[_0x3640b4(0x107b)]+_0x3640b4(0x1315)+_0x28f054[_0x3640b4(0x167f)]:_0x3640b4(0x11ab),'msg':_0x28f054[_0x3640b4(0x524)]?JSON[_0x3640b4(0x10bb)](_0x28f054['data'][_0x3640b4(0x7fd)]):_0x28f054[_0x3640b4(0xd5f)]()});});}function _0x39b43d(_0x4e399f){const _0x36e06c=_0x27fa1b;_0x5dcb46[_0x36e06c(0xcef)]=[];const _0x51ce03=_0x43af18[_0x36e06c(0x1e8a)]()[_0x36e06c(0x1189)](_0x36e06c(0x1d64))['content'](_0x36e06c(0xd07))[_0x36e06c(0x4bd)](_0x36e06c(0x12bb))['ok']('Delete')[_0x36e06c(0x6c3)](_0x36e06c(0xcf0))['targetEvent'](_0x4e399f);_0x43af18[_0x36e06c(0x2615)](_0x51ce03)['then'](function(){const _0x262f44=_0x36e06c;_0x383ff8[_0x262f44(0x1ada)]['delete']({'id':_0x5dcb46['chatCannedAnswer']['id']})['$promise']['then'](function(){const _0x7336a4=_0x262f44;_0x3f65c0()[_0x7336a4(0x2640)](_0x5dcb46[_0x7336a4(0x1069)],{'id':_0x5dcb46[_0x7336a4(0x714)]['id']}),_0x2a1f3f[_0x7336a4(0x1c75)]({'title':_0x7336a4(0x2553),'msg':(_0x5dcb46[_0x7336a4(0x714)][_0x7336a4(0x19eb)]||'chatCannedAnswer')+'\x20has\x20been\x20deleted!'}),_0x21e1ae(_0x5dcb46[_0x7336a4(0x714)]);})[_0x262f44(0x129e)](function(_0x26c589){const _0x1c7cc9=_0x262f44;if(_0x26c589['data']&&_0x26c589['data'][_0x1c7cc9(0xcef)]&&_0x26c589[_0x1c7cc9(0x524)]['errors'][_0x1c7cc9(0x402)]){_0x5dcb46[_0x1c7cc9(0xcef)]=_0x26c589[_0x1c7cc9(0x524)]['errors']||[{'message':_0x26c589['toString'](),'type':_0x1c7cc9(0xe6a)}];for(let _0x4e7742=0x0;_0x4e7742<_0x26c589[_0x1c7cc9(0x524)][_0x1c7cc9(0xcef)][_0x1c7cc9(0x402)];_0x4e7742++){_0x2a1f3f[_0x1c7cc9(0x1980)]({'title':_0x26c589['data'][_0x1c7cc9(0xcef)][_0x4e7742][_0x1c7cc9(0x1142)],'msg':_0x26c589[_0x1c7cc9(0x524)][_0x1c7cc9(0xcef)][_0x4e7742]['message']});}}else _0x2a1f3f['error']({'title':_0x26c589[_0x1c7cc9(0x107b)]?_0x1c7cc9(0x262a)+_0x26c589[_0x1c7cc9(0x107b)]+_0x1c7cc9(0x1315)+_0x26c589[_0x1c7cc9(0x167f)]:_0x1c7cc9(0xe6a),'msg':_0x26c589[_0x1c7cc9(0x524)]?JSON[_0x1c7cc9(0x10bb)](_0x26c589['data']['message']):_0x26c589['message']||_0x26c589[_0x1c7cc9(0xd5f)]()});});},function(){});}function _0x4370a3(_0x363cf6){return _0x363cf6===null?undefined:new Date(_0x363cf6);}function _0x21e1ae(_0x4cf2ce){const _0x277fbd=_0x27fa1b;_0x43af18[_0x277fbd(0x2458)](_0x4cf2ce);}}const _0x2ace20=_0x5cf7be;;_0xaa518b[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1aa9),_0x313a4d(0x1862),_0x313a4d(0x15fe),'$mdDialog',_0x313a4d(0x4d8),'$timeout','$translate',_0x313a4d(0x247f),_0x313a4d(0x1fe4),_0x313a4d(0xa87)];function _0xaa518b(_0x98458f,_0x4dc356,_0x5d4fb6,_0x10f75d,_0x5a3ce9,_0x139577,_0x1e592d,_0x336111,_0x2511f7,_0x3b395f,_0x124157){const _0x346786=_0x313a4d,_0x4ae539=this;_0x4ae539['currentUser']=_0x124157[_0x346786(0xb12)](),_0x4ae539[_0x346786(0x2647)]={'count':0x0,'rows':[]},_0x4ae539[_0x346786(0x2ad)]=[],_0x4ae539[_0x346786(0x2514)],_0x4ae539['levels']={'first':_0x346786(0x20c1),'second':_0x346786(0x227b),'third':_0x346786(0x1195)},_0x4ae539['query']={'fields':_0x346786(0x2430),'sort':_0x346786(0x12f2),'limit':0xa,'page':0x1},_0x4ae539[_0x346786(0x5aa)]=_0xccd5b,_0x4ae539[_0x346786(0x19b4)]=_0x142c94,_0x4ae539[_0x346786(0x1c75)]=_0x425202,_0x4ae539['getDispositions']=_0x340e4e,_0x4ae539['createOrEditDisposition']=_0x674e4d,_0x4ae539['deleteDisposition']=_0x167d11,_0x4ae539[_0x346786(0x25f0)]=_0x2a2c8b,_0x4ae539[_0x346786(0x11e4)]=_0x41a6f0,_0x4ae539['deselectDispositions']=_0x53547b,_0x4ae539[_0x346786(0x481)]=_0x2c141b;function _0xccd5b(_0x2eae0b,_0x54c8a1){const _0x2cc8a0=_0x346786;_0x4ae539[_0x2cc8a0(0x189e)]=_0x2eae0b||{},_0x4ae539[_0x2cc8a0(0x2514)]=typeof _0x54c8a1!==_0x2cc8a0(0x2274)?_0x54c8a1:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x4ae539['query'][_0x2cc8a0(0x1d92)]=_0x4ae539[_0x2cc8a0(0x189e)]['id'],_0x4ae539[_0x2cc8a0(0x1a56)]['id']=_0x4ae539['chatWebsite']['id'],_0x340e4e();}function _0x674e4d(_0x174231,_0x4149bb){const _0x4fb8db=_0x346786;_0x5a3ce9[_0x4fb8db(0x2615)]({'controller':_0x4fb8db(0x1a84),'controllerAs':'vm','templateUrl':_0x4f093a,'parent':angular[_0x4fb8db(0x1853)](_0x139577['body']),'targetEvent':_0x174231,'clickOutsideToClose':!![],'locals':{'disposition':_0x4149bb,'model':{'id':_0x4ae539[_0x4fb8db(0x189e)]['id'],'field':_0x4fb8db(0x1d92),'route':'chatWebsite'},'license':null,'setting':null,'crudPermissions':_0x4ae539[_0x4fb8db(0x2514)]}})[_0x4fb8db(0x146b)](function(_0x41dc2f){if(_0x41dc2f)_0x340e4e();});}function _0x142c94(_0x17131d,_0x246165){const _0x35a5bc=_0x346786,_0x2142ed=_0x3f65c0()['some'](_0x4ae539[_0x35a5bc(0x2647)][_0x35a5bc(0x19c7)],[_0x35a5bc(0x11b5),_0x17131d['id']]),_0x3f3215=_0x5a3ce9[_0x35a5bc(0x1e8a)]()[_0x35a5bc(0x1189)](_0x336111['instant'](_0x35a5bc(0x19e6)))[_0x35a5bc(0x80f)](_0x336111[_0x35a5bc(0xde)](_0x35a5bc(0xe8d)+(_0x2142ed?'DISPOSITION_DELETE_MESSAGE_CHILDREN':'DISPOSITION_DELETE_MESSAGE'),{'name':_0x17131d[_0x35a5bc(0x19eb)]}))[_0x35a5bc(0x4bd)](_0x35a5bc(0x27d1))['targetEvent'](_0x246165)['ok']('OK')['cancel'](_0x336111[_0x35a5bc(0xde)]('APP.CANCEL'));_0x5a3ce9[_0x35a5bc(0x2615)](_0x3f3215)[_0x35a5bc(0x146b)](function(){_0x167d11(_0x17131d);});}function _0x425202(_0x30075f){const _0xb78eaf=_0x346786;_0x4ae539[_0xb78eaf(0x2647)]=_0x30075f||{'count':0x0,'rows':[]};}function _0x340e4e(){const _0x596500=_0x346786;_0x4ae539['query']['offset']=(_0x4ae539[_0x596500(0x1a56)]['page']-0x1)*_0x4ae539['query'][_0x596500(0x221e)],_0x4ae539[_0x596500(0xb9c)]=_0x2511f7[_0x596500(0x189e)][_0x596500(0x2451)](_0x4ae539[_0x596500(0x1a56)],_0x425202)[_0x596500(0x2945)];}function _0x167d11(_0x79d36d){const _0x591fb3=_0x346786;_0x2511f7[_0x591fb3(0x9e1)]['delete']({'id':_0x79d36d['id']})[_0x591fb3(0x2945)][_0x591fb3(0x146b)](function(){const _0x3e55a3=_0x591fb3;_0x340e4e(),_0x3b395f[_0x3e55a3(0x1c75)]({'title':_0x336111[_0x3e55a3(0xde)](_0x3e55a3(0xa2f))});})[_0x591fb3(0x129e)](function(_0x1b7636){const _0x333d92=_0x591fb3;if(_0x1b7636[_0x333d92(0x524)]&&_0x1b7636[_0x333d92(0x524)][_0x333d92(0xcef)]&&_0x1b7636[_0x333d92(0x524)][_0x333d92(0xcef)][_0x333d92(0x402)]){_0x4ae539['errors']=_0x1b7636[_0x333d92(0x524)][_0x333d92(0xcef)]||[{'message':_0x1b7636[_0x333d92(0xd5f)](),'type':_0x333d92(0x24a7)}];for(let _0x15f9d7=0x0;_0x15f9d7<_0x1b7636[_0x333d92(0x524)][_0x333d92(0xcef)][_0x333d92(0x402)];_0x15f9d7++){_0x3b395f['error']({'title':_0x1b7636[_0x333d92(0x524)][_0x333d92(0xcef)][_0x15f9d7][_0x333d92(0x1142)],'msg':_0x1b7636[_0x333d92(0x524)][_0x333d92(0xcef)][_0x15f9d7][_0x333d92(0x7fd)]});}}else _0x3b395f['error']({'title':_0x1b7636[_0x333d92(0x107b)]?_0x333d92(0x262a)+_0x1b7636['status']+_0x333d92(0x1315)+_0x1b7636[_0x333d92(0x167f)]:'SYSTEM:DELETEdisposition','msg':_0x1b7636['data']?JSON[_0x333d92(0x10bb)](_0x1b7636[_0x333d92(0x524)][_0x333d92(0x7fd)]):_0x1b7636['message']||_0x1b7636[_0x333d92(0xd5f)]()});});}function _0x2a2c8b(){const _0x4fffa6=_0x346786,_0x2ec3ae=angular[_0x4fffa6(0x235a)](_0x4ae539[_0x4fffa6(0x2ad)]);return _0x4ae539[_0x4fffa6(0x2ad)]=[],_0x2ec3ae;}function _0x41a6f0(_0x558c5d){const _0x527e48=_0x346786,_0xe3c679=_0x5a3ce9[_0x527e48(0x1e8a)]()[_0x527e48(0x1189)](_0x336111[_0x527e48(0xde)]('TOOLS.NOTIFICATIONS.DISPOSITIONS_DELETE_TITLE'))['content'](_0x336111[_0x527e48(0xde)](_0x527e48(0x23ce),{'total':_0x4ae539['selectedDispositions']['length']}))[_0x527e48(0x4bd)](_0x527e48(0x1eb0))[_0x527e48(0x1f27)](_0x558c5d)['ok']('OK')[_0x527e48(0x6c3)](_0x336111['instant'](_0x527e48(0x1161)));_0x5a3ce9[_0x527e48(0x2615)](_0xe3c679)[_0x527e48(0x146b)](function(){const _0x36abf8=_0x527e48;_0x4ae539[_0x36abf8(0x2ad)][_0x36abf8(0x1df5)](function(_0x32baa7){_0x167d11(_0x32baa7);}),_0x4ae539[_0x36abf8(0x2ad)]=[];});}function _0x53547b(){const _0x4bc19f=_0x346786;_0x4ae539[_0x4bc19f(0x2ad)]=[];}function _0x2c141b(){const _0xbe3ac1=_0x346786;_0x4ae539[_0xbe3ac1(0x2ad)]=_0x4ae539[_0xbe3ac1(0x2647)][_0xbe3ac1(0x19c7)];}let _0x287824=!![],_0x3aab95=0x1;_0x98458f[_0x346786(0x21e8)](_0x346786(0x117f),function(_0x5d3f29,_0x39d203){const _0x2e90ea=_0x346786;_0x287824?_0x1e592d(function(){_0x287824=![];}):(!_0x39d203&&(_0x3aab95=_0x4ae539[_0x2e90ea(0x1a56)]['page']),_0x5d3f29!==_0x39d203&&(_0x4ae539[_0x2e90ea(0x1a56)][_0x2e90ea(0x844)]=0x1),!_0x5d3f29&&(_0x4ae539[_0x2e90ea(0x1a56)][_0x2e90ea(0x844)]=_0x3aab95),_0x340e4e());});}const _0x2af6ba=_0xaa518b;;_0x16dfea['$inject']=['$mdDialog',_0x313a4d(0x4d8),_0x313a4d(0x247f)];function _0x16dfea(_0x1702c6,_0xaa1810,_0x194402){const _0x7d6665=_0x313a4d,_0x140372=this;_0x140372[_0x7d6665(0x189e)]={},_0x140372[_0x7d6665(0x189)]={},_0x140372[_0x7d6665(0xa1e)]=[{'type':_0x7d6665(0x11f8),'name':_0x7d6665(0x14df),'icon':_0x7d6665(0x1e48)},{'type':_0x7d6665(0x2292),'name':'Select','icon':_0x7d6665(0x526)},{'type':'input','name':_0x7d6665(0x229c),'icon':_0x7d6665(0x1bd8)},{'type':_0x7d6665(0x2350),'name':_0x7d6665(0xd9e),'icon':_0x7d6665(0x110e)},{'type':_0x7d6665(0x1844),'name':_0x7d6665(0x146e),'icon':_0x7d6665(0x22fb)},{'type':_0x7d6665(0x13cb),'name':_0x7d6665(0x2480),'icon':'icon-checkbox-multiple-marked-outline'},{'type':_0x7d6665(0x5ae),'name':'Agreement','icon':_0x7d6665(0x2883)}],_0x140372['init']=_0x59edb2,_0x140372['up']=_0x49134,_0x140372[_0x7d6665(0x1982)]=_0x5b8139,_0x140372[_0x7d6665(0x387)]=_0xf0ede3,_0x140372['remove']=_0x364f65;function _0x59edb2(_0x381dfb){const _0xe8c049=_0x7d6665;_0x140372[_0xe8c049(0x2867)]=[],_0x140372[_0xe8c049(0x10ba)]=[],_0x140372[_0xe8c049(0x1b5b)]=['id','createdAt',_0xe8c049(0x144f),_0xe8c049(0xb7c),'CompanyId',_0xe8c049(0x2945),_0xe8c049(0x26f2)],_0x140372['chatWebsite']=_0x381dfb,_0x3f65c0()[_0xe8c049(0x2635)](_0x140372[_0xe8c049(0x189e)]['offlineForm'])&&(_0x140372['chatWebsite'][_0xe8c049(0x189)]={'items':[],'fromKey':null}),_0x194402[_0xe8c049(0xf03)]['getCustomFields']({'id':_0x140372['chatWebsite'][_0xe8c049(0xb7c)]})[_0xe8c049(0x2945)][_0xe8c049(0x146b)](function(_0x4104f8){const _0x506ba2=_0xe8c049;for(let _0x3fda4b=0x0;_0x3fda4b<_0x4104f8[_0x506ba2(0x19c7)]['length'];_0x3fda4b++){_0x140372[_0x506ba2(0x10ba)][_0x506ba2(0x1f47)]({'key':_0x506ba2(0x21ef)+_0x4104f8['rows'][_0x3fda4b]['id'],'value':_0x4104f8[_0x506ba2(0x19c7)][_0x3fda4b][_0x506ba2(0x280c)]});}return _0x194402[_0x506ba2(0x18c3)][_0x506ba2(0x1ea2)]()[_0x506ba2(0x2945)];})[_0xe8c049(0x146b)](function(_0x396209){const _0x5c4f56=_0xe8c049,_0x22122d=_0x3f65c0()['keys'](_0x396209);for(let _0x59fbc2=0x0;_0x59fbc2<_0x22122d[_0x5c4f56(0x402)];_0x59fbc2++){!_0x3f65c0()[_0x5c4f56(0xa4e)](_0x140372[_0x5c4f56(0x1b5b)],_0x22122d[_0x59fbc2])&&!_0x3f65c0()['startsWith'](_0x22122d[_0x59fbc2],_0x5c4f56(0x21ef))&&_0x140372[_0x5c4f56(0x2867)][_0x5c4f56(0xb3d)]({'key':_0x22122d[_0x59fbc2],'value':_0x22122d[_0x59fbc2]});}return _0x194402['variable']['get']()['$promise'];})[_0xe8c049(0x146b)](function(_0x39c681){const _0x313069=_0xe8c049;_0x140372[_0x313069(0x85b)]=_0x39c681[_0x313069(0x19c7)];})[_0xe8c049(0x129e)](function(_0x3b59c8){const _0x55d8f8=_0xe8c049;console[_0x55d8f8(0x1980)](_0x3b59c8);});}function _0x49134(_0x12abda,_0x58cd06){const _0x14ee84=_0x7d6665;if(_0x58cd06!==0x0){const _0x6c3ef1=_0x140372[_0x14ee84(0x189e)][_0x14ee84(0x189)]['items'][_0x58cd06-0x1];_0x140372['chatWebsite'][_0x14ee84(0x189)][_0x14ee84(0x1fd6)][_0x58cd06]=_0x6c3ef1,_0x140372[_0x14ee84(0x189e)]['offlineForm'][_0x14ee84(0x1fd6)][_0x58cd06-0x1]=angular['copy'](_0x12abda);if(_0x140372[_0x14ee84(0x189e)][_0x14ee84(0x189)][_0x14ee84(0x1f7)]===_0x58cd06)_0x140372[_0x14ee84(0x189e)][_0x14ee84(0x189)][_0x14ee84(0x1f7)]--;else _0x140372[_0x14ee84(0x189e)][_0x14ee84(0x189)][_0x14ee84(0x1f7)]===_0x58cd06-0x1&&_0x140372[_0x14ee84(0x189e)][_0x14ee84(0x189)][_0x14ee84(0x1f7)]++;}}function _0x5b8139(_0x24f359,_0x14c8b1){const _0xeca256=_0x7d6665;if(_0x14c8b1!==_0x140372[_0xeca256(0x189e)][_0xeca256(0x189)][_0xeca256(0x1fd6)][_0xeca256(0x402)]-0x1){const _0x4e988c=_0x140372['chatWebsite'][_0xeca256(0x189)][_0xeca256(0x1fd6)][_0x14c8b1+0x1];_0x140372[_0xeca256(0x189e)][_0xeca256(0x189)][_0xeca256(0x1fd6)][_0x14c8b1]=_0x4e988c,_0x140372[_0xeca256(0x189e)]['offlineForm'][_0xeca256(0x1fd6)][_0x14c8b1+0x1]=angular['copy'](_0x24f359);if(_0x140372[_0xeca256(0x189e)][_0xeca256(0x189)][_0xeca256(0x1f7)]===_0x14c8b1)_0x140372[_0xeca256(0x189e)][_0xeca256(0x189)]['fromKey']++;else _0x140372[_0xeca256(0x189e)][_0xeca256(0x189)][_0xeca256(0x1f7)]===_0x14c8b1+0x1&&_0x140372[_0xeca256(0x189e)][_0xeca256(0x189)][_0xeca256(0x1f7)]--;}}function _0xf0ede3(_0x1d9149){const _0x5db6ea=_0x7d6665;_0x140372[_0x5db6ea(0x189e)][_0x5db6ea(0x189)][_0x5db6ea(0x1fd6)][_0x5db6ea(0x1f47)]({'type':_0x1d9149,'cmField':null,'variable':null});}function _0x364f65(_0x585de4){const _0x284070=_0x7d6665,_0x4a752b=_0x1702c6[_0x284070(0x1e8a)]()[_0x284070(0x1189)](_0x284070(0x2181))[_0x284070(0x199c)](_0x284070(0x1d64))['ariaLabel'](_0x284070(0x14ed))['ok']('Ok')['cancel'](_0x284070(0xcf0));_0x1702c6[_0x284070(0x2615)](_0x4a752b)[_0x284070(0x146b)](function(){const _0x491fd6=_0x284070;_0x140372[_0x491fd6(0x189e)][_0x491fd6(0x189)][_0x491fd6(0x1fd6)][_0x491fd6(0x1f7d)](_0x585de4,0x1);});}}const _0x222367=_0x16dfea;;_0x53c54c[_0x313a4d(0x11c2)]=[_0x313a4d(0x10e8),_0x313a4d(0x4d8),'api'];function _0x53c54c(_0x32b044,_0xb3d3e6,_0x4375dd){const _0x53da2b=_0x313a4d,_0x296820=this;_0x296820[_0x53da2b(0x189e)]={},_0x296820[_0x53da2b(0x8ae)]={},_0x296820[_0x53da2b(0xa1e)]=[{'type':'label','name':'Label','icon':_0x53da2b(0x1e48)},{'type':_0x53da2b(0x2292),'name':'Select','icon':_0x53da2b(0x526)},{'type':'input','name':_0x53da2b(0x229c),'icon':_0x53da2b(0x1bd8)},{'type':'textarea','name':'Textarea','icon':_0x53da2b(0x110e)},{'type':_0x53da2b(0x1844),'name':_0x53da2b(0x146e),'icon':'icon-radiobox-marked'},{'type':_0x53da2b(0x13cb),'name':_0x53da2b(0x2480),'icon':_0x53da2b(0x19c0)},{'type':'agreement','name':_0x53da2b(0x1297),'icon':'icon-checkbox-marked-outline'}],_0x296820[_0x53da2b(0x5aa)]=_0x4c7b1e,_0x296820['up']=_0x32263d,_0x296820[_0x53da2b(0x1982)]=_0x471e95,_0x296820[_0x53da2b(0x387)]=_0x48298f,_0x296820[_0x53da2b(0x2640)]=_0x2de9f8;function _0x4c7b1e(_0x418161){const _0x970500=_0x53da2b;_0x296820[_0x970500(0x2867)]=[],_0x296820['customFields']=[],_0x296820[_0x970500(0x1b5b)]=['id','createdAt','updatedAt',_0x970500(0xb7c),'CompanyId',_0x970500(0x2945),'$resolved'],_0x296820[_0x970500(0x189e)]=_0x418161,_0x3f65c0()[_0x970500(0x2635)](_0x296820['chatWebsite'][_0x970500(0x8ae)])&&(_0x296820['chatWebsite']['onlineForm']={'items':[],'fromKey':null}),_0x4375dd[_0x970500(0xf03)]['getCustomFields']({'id':_0x296820[_0x970500(0x189e)][_0x970500(0xb7c)]})['$promise'][_0x970500(0x146b)](function(_0x5f542a){const _0x5b93de=_0x970500;for(let _0x424161=0x0;_0x424161<_0x5f542a[_0x5b93de(0x19c7)][_0x5b93de(0x402)];_0x424161++){_0x296820[_0x5b93de(0x10ba)][_0x5b93de(0x1f47)]({'key':_0x5b93de(0x21ef)+_0x5f542a[_0x5b93de(0x19c7)][_0x424161]['id'],'value':_0x5f542a['rows'][_0x424161]['alias']});}return _0x4375dd[_0x5b93de(0x18c3)][_0x5b93de(0x1ea2)]()[_0x5b93de(0x2945)];})[_0x970500(0x146b)](function(_0x36b187){const _0x4cbb66=_0x970500,_0x2382d0=_0x3f65c0()['keys'](_0x36b187);for(let _0x4fd0ff=0x0;_0x4fd0ff<_0x2382d0['length'];_0x4fd0ff++){!_0x3f65c0()[_0x4cbb66(0xa4e)](_0x296820[_0x4cbb66(0x1b5b)],_0x2382d0[_0x4fd0ff])&&!_0x3f65c0()['startsWith'](_0x2382d0[_0x4fd0ff],_0x4cbb66(0x21ef))&&_0x296820[_0x4cbb66(0x2867)][_0x4cbb66(0xb3d)]({'key':_0x2382d0[_0x4fd0ff],'value':_0x2382d0[_0x4fd0ff]});}return _0x4375dd[_0x4cbb66(0x212)][_0x4cbb66(0x16b4)]()['$promise'];})[_0x970500(0x146b)](function(_0x4e257b){const _0x28a743=_0x970500;_0x296820[_0x28a743(0x85b)]=_0x4e257b['rows'];})['catch'](function(_0x37f74a){console['error'](_0x37f74a);});}function _0x32263d(_0x367719,_0x36cd9a){const _0x5402bd=_0x53da2b;if(_0x36cd9a!==0x0){const _0x149fd2=_0x296820[_0x5402bd(0x189e)]['onlineForm'][_0x5402bd(0x1fd6)][_0x36cd9a-0x1];_0x296820[_0x5402bd(0x189e)][_0x5402bd(0x8ae)][_0x5402bd(0x1fd6)][_0x36cd9a]=_0x149fd2,_0x296820[_0x5402bd(0x189e)][_0x5402bd(0x8ae)][_0x5402bd(0x1fd6)][_0x36cd9a-0x1]=angular['copy'](_0x367719);if(_0x296820[_0x5402bd(0x189e)][_0x5402bd(0x8ae)][_0x5402bd(0x1f7)]===_0x36cd9a)_0x296820[_0x5402bd(0x189e)][_0x5402bd(0x8ae)][_0x5402bd(0x1f7)]--;else _0x296820[_0x5402bd(0x189e)][_0x5402bd(0x8ae)][_0x5402bd(0x1f7)]===_0x36cd9a-0x1&&_0x296820[_0x5402bd(0x189e)][_0x5402bd(0x8ae)]['fromKey']++;}}function _0x471e95(_0x311e89,_0x30ae0f){const _0x1e320b=_0x53da2b;if(_0x30ae0f!==_0x296820[_0x1e320b(0x189e)][_0x1e320b(0x8ae)][_0x1e320b(0x1fd6)]['length']-0x1){const _0x29b8fb=_0x296820[_0x1e320b(0x189e)][_0x1e320b(0x8ae)]['items'][_0x30ae0f+0x1];_0x296820[_0x1e320b(0x189e)]['onlineForm'][_0x1e320b(0x1fd6)][_0x30ae0f]=_0x29b8fb,_0x296820[_0x1e320b(0x189e)][_0x1e320b(0x8ae)][_0x1e320b(0x1fd6)][_0x30ae0f+0x1]=angular['copy'](_0x311e89);if(_0x296820[_0x1e320b(0x189e)]['onlineForm'][_0x1e320b(0x1f7)]===_0x30ae0f)_0x296820['chatWebsite']['onlineForm'][_0x1e320b(0x1f7)]++;else _0x296820['chatWebsite'][_0x1e320b(0x8ae)][_0x1e320b(0x1f7)]===_0x30ae0f+0x1&&_0x296820[_0x1e320b(0x189e)][_0x1e320b(0x8ae)]['fromKey']--;}}function _0x48298f(_0x558a2e){const _0x3cf0b0=_0x53da2b;_0x296820[_0x3cf0b0(0x189e)][_0x3cf0b0(0x8ae)][_0x3cf0b0(0x1fd6)][_0x3cf0b0(0x1f47)]({'type':_0x558a2e,'cmField':null,'variable':null});}function _0x2de9f8(_0x4c4aa3){const _0x16257e=_0x53da2b,_0x3dae72=_0x32b044[_0x16257e(0x1e8a)]()[_0x16257e(0x1189)](_0x16257e(0x2181))[_0x16257e(0x199c)]('Are\x20you\x20sure?')['ariaLabel'](_0x16257e(0x14ed))['ok']('Ok')['cancel'](_0x16257e(0xcf0));_0x32b044['show'](_0x3dae72)[_0x16257e(0x146b)](function(){const _0x2d8ef7=_0x16257e;_0x296820[_0x2d8ef7(0x189e)][_0x2d8ef7(0x8ae)][_0x2d8ef7(0x1f7)]===_0x4c4aa3&&(_0x296820[_0x2d8ef7(0x189e)][_0x2d8ef7(0x8ae)]['fromKey']=null),_0x296820[_0x2d8ef7(0x189e)][_0x2d8ef7(0x8ae)]['items'][_0x2d8ef7(0x1f7d)](_0x4c4aa3,0x1),!_0x296820[_0x2d8ef7(0x189e)][_0x2d8ef7(0x8ae)][_0x2d8ef7(0x1fd6)][_0x2d8ef7(0x402)]&&(_0x296820[_0x2d8ef7(0x189e)][_0x2d8ef7(0x8ae)][_0x2d8ef7(0x1f7)]=null);});}}const _0x3e63b4=_0x53c54c;;_0x4ab385[_0x313a4d(0x11c2)]=[_0x313a4d(0x23df),_0x313a4d(0x1fe4)];function _0x4ab385(_0x3a6c53,_0xee49a3){const _0x3de55e=_0x313a4d,_0x2c1ad9=this,_0x136ed5=0x8,_0x125489=_0x136ed5*0x400*0x400;_0x2c1ad9[_0x3de55e(0x189e)]={},_0x2c1ad9['crudPermissions'],_0x2c1ad9[_0x3de55e(0x4c3)]={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x125489,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x2c1ad9[_0x3de55e(0x1376)]={'flow':{}},_0x2c1ad9['dropping']=![],_0x2c1ad9[_0x3de55e(0x143d)]=_0x397f3e,_0x2c1ad9['upload']=_0x34b2c4,_0x2c1ad9[_0x3de55e(0xc4c)]=_0x54d566,_0x2c1ad9['init']=_0x4a2788;function _0x4a2788(_0x132b28,_0xc47485){const _0x25489c=_0x3de55e;_0x2c1ad9['chatWebsite']=angular['copy'](_0x132b28),_0x2c1ad9[_0x25489c(0x2514)]=typeof _0xc47485!==_0x25489c(0x2274)?_0xc47485:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x2c1ad9[_0x25489c(0x4c3)][_0x25489c(0xe1d)]=_0x25489c(0x22aa)[_0x25489c(0x5f4)](_0x25489c(0xa55),_0x2c1ad9[_0x25489c(0x189e)]['id']),_0x2c1ad9[_0x25489c(0x189e)][_0x25489c(0x1f07)]=[];}function _0x397f3e(_0x399349){const _0x245c13=_0x3de55e,_0x319d77=[_0x245c13(0xadf),_0x245c13(0x621)];if(!_0x3f65c0()['includes'](_0x319d77,_0x399349[_0x245c13(0x193f)]()))return _0xee49a3[_0x245c13(0x1980)]({'title':_0x245c13(0x4c6)+_0x399349[_0x245c13(0x193f)](),'msg':_0x245c13(0x208f)+_0x319d77[_0x245c13(0xb47)]()}),![];if(_0x399349[_0x245c13(0x4cc)]>_0x125489)return _0xee49a3['error']({'title':_0x245c13(0x625),'msg':_0x245c13(0x923)+_0x136ed5+'MB'}),![];const _0x5b5149={'id':_0x399349[_0x245c13(0x1276)],'file':_0x399349,'type':_0x245c13(0x159c)};return _0x2c1ad9['chatWebsite'][_0x245c13(0x1f07)][_0x245c13(0xb3d)](_0x5b5149),!![];}function _0x34b2c4(){const _0x5c99bc=_0x3de55e;_0x2c1ad9[_0x5c99bc(0x1376)][_0x5c99bc(0x963)][_0x5c99bc(0x1da1)][_0x5c99bc(0xa01)]={'X-Requested-With':'XMLHttpRequest','Authorization':'Bearer\x20'+_0x3a6c53[_0x5c99bc(0x16b4)](_0x5c99bc(0xe2d))},_0x2c1ad9[_0x5c99bc(0x1376)][_0x5c99bc(0x963)][_0x5c99bc(0x1dc6)]();}function _0x54d566(_0x4aa3ce){const _0x3efa49=_0x3de55e;angular[_0x3efa49(0x1df5)](_0x2c1ad9[_0x3efa49(0x189e)]['images'],function(_0x28e4a0){const _0x4d67a0=_0x3efa49;if(_0x28e4a0['id']===_0x4aa3ce[_0x4d67a0(0x1276)]){const _0x188f7e=new FileReader();_0x188f7e[_0x4d67a0(0xa0c)](_0x28e4a0[_0x4d67a0(0x252e)][_0x4d67a0(0x252e)]),_0x188f7e[_0x4d67a0(0x20f6)]=function(_0x129cd8){const _0x2de525=_0x4d67a0;_0x28e4a0['url']=_0x129cd8[_0x2de525(0xe1d)]['result'];},_0x28e4a0['type']='image';}});}}const _0x3db1c1=_0x4ab385;;const _0x270cc0=_0x4acfac['p']+'src/js/modules/main/apps/dashboards/views/general/agent/interaction/agent.general.interaction.dialog.html/agent.general.interaction.dialog.html';;_0x6f95fe[_0x313a4d(0x11c2)]=[_0x313a4d(0x23df),_0x313a4d(0x910),'$state','$q',_0x313a4d(0x214b),_0x313a4d(0x1abe),_0x313a4d(0x10e8),'$document',_0x313a4d(0x1fe4),_0x313a4d(0x247f),'Auth'];function _0x6f95fe(_0x29248b,_0x27a440,_0x261657,_0x2e100f,_0x31726d,_0x3fbacf,_0x278ad9,_0x326673,_0xe8a860,_0x3dfb8d,_0x37ca9f){const _0x100563=_0x313a4d,_0x11a023=this;_0x11a023['currentUser']=_0x37ca9f[_0x100563(0xb12)](),_0x11a023[_0x100563(0x189e)]={},_0x11a023[_0x100563(0x6b7)]={'count':0x0,'rows':[]},_0x11a023[_0x100563(0x68a)]=[],_0x11a023['crudPermissions'],_0x11a023['query']={'read':_0x100563(0x203c),'closed':_0x100563(0x203c),'sort':_0x100563(0xd6f),'includeAll':_0x100563(0x1185),'limit':0xa,'page':0x1},_0x11a023[_0x100563(0x5aa)]=_0x58e469,_0x11a023[_0x100563(0x19b4)]=_0x1ac449,_0x11a023[_0x100563(0x2317)]=_0x27a128,_0x11a023[_0x100563(0x1c75)]=_0x319533,_0x11a023[_0x100563(0x1b96)]=_0x124179,_0x11a023['spychatInteraction']=_0x5a4d48,_0x11a023[_0x100563(0x21a6)]=_0x37a113,_0x11a023['exportSelectedChatWebsiteInteractions']=_0x32e9a9,_0x11a023[_0x100563(0x722)]=_0x80f9bf,_0x11a023[_0x100563(0x177f)]=_0x223e6c;function _0x58e469(_0x24766c,_0x24a8ad){const _0xac7ebe=_0x100563;_0x11a023['chatWebsite']=_0x24766c,_0x11a023['crudPermissions']=typeof _0x24a8ad!=='undefined'?_0x24a8ad:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x11a023[_0xac7ebe(0x1a56)]['ChatWebsiteId']=_0x11a023[_0xac7ebe(0x189e)]['id'],_0x11a023[_0xac7ebe(0xe93)]={'fields':_0x23423c()},_0x50ba4c();}function _0x50ba4c(){const _0x567a7f=_0x100563;return _0x3dfb8d['tag'][_0x567a7f(0x16b4)]()[_0x567a7f(0x2945)][_0x567a7f(0x146b)](function(_0x22139b){const _0x207db7=_0x567a7f;_0x11a023[_0x207db7(0x1b86)]=_0x22139b||{'count':0x0,'rows':[]};})[_0x567a7f(0x146b)](function(){const _0x2a5111=_0x567a7f;_0x11a023[_0x2a5111(0x28af)]=_0x4e1c73();});}function _0x4e1c73(){const _0x94bd2c=_0x100563;return[{'name':'Start\x20Date','key':'createdAt','type':_0x94bd2c(0x1a10),'label':_0x94bd2c(0x2902)},{'name':_0x94bd2c(0x1c7c),'key':'read','type':_0x94bd2c(0xa5f),'label':_0x94bd2c(0x8f5),'customOptions':[{'value':0x0,'translate':_0x94bd2c(0x33f)},{'value':0x1,'translate':_0x94bd2c(0x1ce6)},{'value':null,'translate':'DASHBOARDS.ALL'}]},{'name':_0x94bd2c(0x74e),'key':_0x94bd2c(0x1943),'type':_0x94bd2c(0xa5f),'label':_0x94bd2c(0x1682),'customOptions':[{'value':0x0,'translate':_0x94bd2c(0x143b)},{'value':0x1,'translate':_0x94bd2c(0x1805)},{'value':null,'translate':_0x94bd2c(0x175e)}]},{'name':'Agent','key':_0x94bd2c(0xea2),'type':_0x94bd2c(0xa5f),'label':_0x94bd2c(0x127),'customOptions':[{'value':'null','translate':'DASHBOARDS.NOT_ASSIGNED'},{'value':undefined,'translate':'DASHBOARDS.ALL'}]},{'name':_0x94bd2c(0x23a8),'key':'tag','type':'multiselect','label':_0x94bd2c(0x1c0e),'options':_0x11a023[_0x94bd2c(0x1b86)][_0x94bd2c(0x19c7)],'placeholder':_0x94bd2c(0x66f)}];}function _0x23423c(){const _0x531957=_0x100563;return[{'name':'Id','column':'id','type':_0x531957(0x181)},{'name':_0x531957(0x364),'column':_0x531957(0x364),'type':_0x531957(0x14ee),'options':{'searchFields':[_0x531957(0x1ed4),_0x531957(0xee4),_0x531957(0x1a2b)],'route':{'model':_0x531957(0x18c3),'action':_0x531957(0x16b4),'params':{'fields':_0x531957(0x992),'Contact':_0x531957(0x3fb),'nolimit':!![]}},'extraOperators':[_0x531957(0xacb)],'excludedOperators':[_0x531957(0x1671)]}},{'name':_0x531957(0x11e1),'column':_0x531957(0xe32),'type':'text','options':{'excludedOperators':[_0x531957(0x6be),_0x531957(0x1671)]}},{'name':_0x531957(0x710),'column':_0x531957(0xb80),'type':_0x531957(0xa8d),'options':{'excludedOperators':['$eq',_0x531957(0x1671)]}},{'name':_0x531957(0x74e),'column':'closed','type':_0x531957(0xa5f),'values':[{'id':0x0,'translate':_0x531957(0x143b)},{'id':0x1,'translate':_0x531957(0x1805)}],'options':{'excludedOperators':[_0x531957(0x1671)]}},{'name':'Agent','column':_0x531957(0x2393),'type':_0x531957(0x14ee),'options':{'table':'i','route':{'model':_0x531957(0xe7b),'action':_0x531957(0x16b4),'params':{'role':_0x531957(0x1755),'fields':_0x531957(0x12bf),'nolimit':!![]}},'searchFields':[_0x531957(0x286a),_0x531957(0x19eb)],'extraOperators':[_0x531957(0xacb)],'excludedOperators':[_0x531957(0x1671)]}},{'name':_0x531957(0x2331),'column':_0x531957(0x23a8),'type':_0x531957(0x175c),'options':{'route':{'model':_0x531957(0xa80),'action':_0x531957(0x16b4),'params':{'nolimit':!![]}},'excludedOperators':['$notIn']}},{'name':'Start\x20Date','column':'createdAt','type':'date','options':{'excludedOperators':[_0x531957(0x1671)]}},{'name':_0x531957(0x270b),'column':'unreadMessages','type':_0x531957(0xa5f),'values':[{'id':0x1,'translate':_0x531957(0x1ce6)},{'id':0x0,'translate':_0x531957(0x33f)}],'options':{'excludedOperators':['$ne']}}];}function _0x37a113(){const _0x2ed56d=_0x100563;_0x278ad9['show']({'controller':_0x2ed56d(0x26bc),'controllerAs':'vm','templateUrl':_0x3fb128,'parent':angular[_0x2ed56d(0x1853)](_0x326673[_0x2ed56d(0x2586)]),'clickOutsideToClose':![],'locals':{'fields':_0x11a023[_0x2ed56d(0xe93)][_0x2ed56d(0x2867)],'color':undefined,'storagePath':'chat.chatWebsites'},'fullscreen':!![]})[_0x2ed56d(0x146b)](function(_0x299af6){const _0x3bf758=_0x2ed56d;_0x11a023[_0x3bf758(0x1a56)][_0x3bf758(0x21da)]=_0x299af6===![]?undefined:_0x299af6;if(_0x11a023[_0x3bf758(0x1a56)][_0x3bf758(0x21da)])_0x124179();else _0x299af6===![]&&_0x124179();})[_0x2ed56d(0x129e)](function(_0x32beef){const _0x2f8d4=_0x2ed56d;_0xe8a860[_0x2f8d4(0x1980)]({'title':'ERROR','msg':_0x32beef[_0x2f8d4(0x524)]?JSON[_0x2f8d4(0x10bb)](_0x32beef[_0x2f8d4(0x524)][_0x2f8d4(0x7fd)]):_0x32beef['toString']()});});}function _0x27a128(_0x10afb1,_0x114546,_0x4de73e){const _0x2a154e=_0x100563;return _0x3dfb8d[_0x2a154e(0xc9f)][_0x2a154e(0x15b1)]({'id':_0x10afb1['id'],'exists':!![],'attachments':_0x4de73e})[_0x2a154e(0x2945)][_0x2a154e(0x146b)](function(_0x50b9ac){const _0x3f3d91=_0x2a154e,_0x3a944c=[_0x50b9ac['buffer']];let _0x2044eb=_0x3f3d91(0xe80)+_0x10afb1['id'];const _0x2cde82=new Blob(_0x3a944c,{'type':_0x50b9ac[_0x3f3d91(0x1142)]});_0x2044eb=_0x3f3d91(0xa33)+_0x10afb1['id']+_0x3f3d91(0xf04);const _0x177e25=window[_0x3f3d91(0xef3)][_0x3f3d91(0x24ec)]('a');_0x177e25[_0x3f3d91(0x1652)]('href',URL[_0x3f3d91(0x1c58)](_0x2cde82)),_0x177e25['setAttribute'](_0x3f3d91(0x15b1),_0x2044eb),document['body'][_0x3f3d91(0x23e)](_0x177e25),_0x177e25[_0x3f3d91(0x1fa5)]();})['catch'](function(_0x478ab0){const _0xf6b5f6=_0x2a154e;if(_0x478ab0['data']&&_0x478ab0[_0xf6b5f6(0x524)][_0xf6b5f6(0xcef)]&&_0x478ab0[_0xf6b5f6(0x524)]['errors']['length'])for(let _0x37f5c3=0x0;_0x37f5c3<_0x478ab0[_0xf6b5f6(0x524)]['errors'][_0xf6b5f6(0x402)];_0x37f5c3+=0x1){_0xe8a860['error']({'title':_0x478ab0[_0xf6b5f6(0x524)][_0xf6b5f6(0xcef)][_0x37f5c3][_0xf6b5f6(0x1142)],'msg':_0x478ab0['data'][_0xf6b5f6(0xcef)][_0x37f5c3]['message']});}else _0xe8a860[_0xf6b5f6(0x1980)]({'title':_0x478ab0[_0xf6b5f6(0x107b)]?_0xf6b5f6(0x262a)+_0x478ab0[_0xf6b5f6(0x107b)]+_0xf6b5f6(0x1315)+_0x478ab0[_0xf6b5f6(0x167f)]:'api.chatWebsite.save','msg':_0x478ab0[_0xf6b5f6(0x524)]?JSON[_0xf6b5f6(0x10bb)](_0x478ab0[_0xf6b5f6(0x524)]['message']):_0x478ab0['toString']()});});}function _0x1ac449(_0x2034f3,_0x558902){const _0x1cb382=_0x100563,_0x514d9f=_0x278ad9['confirm']()[_0x1cb382(0x1189)](_0x1cb382(0x1f40))[_0x1cb382(0x1cbe)](''+(_0x2034f3[_0x1cb382(0x19eb)]||_0x2034f3['id']&&_0x3f65c0()[_0x1cb382(0x21cf)](_0x1cb382(0xb37))+_0x2034f3['id']||_0x1cb382(0xe80))+_0x1cb382(0x252f)+_0x1cb382(0xe01))[_0x1cb382(0x4bd)](_0x1cb382(0xcab))['targetEvent'](_0x558902)['ok']('OK')[_0x1cb382(0x6c3)](_0x1cb382(0x39a));_0x278ad9[_0x1cb382(0x2615)](_0x514d9f)[_0x1cb382(0x146b)](function(){_0x80f9bf(_0x2034f3);},function(){const _0x1b3555=_0x1cb382;console[_0x1b3555(0x1a74)]('CANCEL');});}function _0x319533(_0x44bd25){const _0x1ad593=_0x100563;_0x11a023[_0x1ad593(0x6b7)]=_0x44bd25||{'count':0x0,'rows':[]};for(let _0x8b243e=0x0;_0x8b243e<_0x11a023[_0x1ad593(0x6b7)]['rows'][_0x1ad593(0x402)];_0x8b243e+=0x1){const _0x556daa=_0x11a023['chatWebsiteInteractions'][_0x1ad593(0x19c7)][_0x8b243e];_0x11ce52(_0x556daa),_0x556daa['Owner'][_0x1ad593(0x19eb)]=_0x325961(_0x556daa);}}function _0x124179(){const _0x4e2cef=_0x100563;_0x11a023[_0x4e2cef(0x1a56)]['offset']=(_0x11a023[_0x4e2cef(0x1a56)][_0x4e2cef(0x844)]-0x1)*_0x11a023[_0x4e2cef(0x1a56)]['limit'],_0x11a023['promise']=_0x3dfb8d[_0x4e2cef(0xc9f)][_0x4e2cef(0x16b4)](_0x11a023['query'],_0x319533)['$promise'];}function _0x5a4d48(_0x23be3d,_0x3a9d8d){const _0x5194f8=_0x100563;_0x278ad9[_0x5194f8(0x2615)]({'controller':_0x5194f8(0xd2c),'controllerAs':'vm','templateUrl':_0x270cc0,'parent':angular[_0x5194f8(0x1853)](_0x326673['body']),'targetEvent':_0x23be3d,'clickOutsideToClose':!![],'onShowing':function(_0x2d1264){const _0x3ff1b3=_0x5194f8;_0x2d1264['vm'][_0x3ff1b3(0x5aa)]({'id':0x1,'channel':_0x3ff1b3(0xa7f),'interaction':_0x3a9d8d,'spy':!![]},_0x27a440[_0x3ff1b3(0x2870)]['vm'][_0x3ff1b3(0x15b9)]);}});}function _0x80f9bf(_0x484590){const _0x411794=_0x100563;_0x3dfb8d[_0x411794(0xc9f)][_0x411794(0x1fac)]({'id':_0x484590['id']})['$promise'][_0x411794(0x146b)](function(){const _0x52c15f=_0x411794;_0x3f65c0()[_0x52c15f(0x2640)](_0x11a023[_0x52c15f(0x6b7)][_0x52c15f(0x19c7)],{'id':_0x484590['id']}),_0x11a023['chatWebsiteInteractions'][_0x52c15f(0x51c)]-=0x1,!_0x11a023[_0x52c15f(0x6b7)]['rows']['length']&&_0x124179(),_0xe8a860['success']({'title':_0x52c15f(0x739),'msg':_0x484590['name']?_0x484590[_0x52c15f(0x19eb)]+_0x52c15f(0x23e3):''});})[_0x411794(0x129e)](function(_0x46ad3c){const _0x2b3128=_0x411794;if(_0x46ad3c[_0x2b3128(0x524)]&&_0x46ad3c[_0x2b3128(0x524)][_0x2b3128(0xcef)]&&_0x46ad3c[_0x2b3128(0x524)][_0x2b3128(0xcef)][_0x2b3128(0x402)]){_0x11a023['errors']=_0x46ad3c[_0x2b3128(0x524)]['errors']||[{'message':_0x46ad3c[_0x2b3128(0xd5f)](),'type':_0x2b3128(0xfb3)}];for(let _0xa452f7=0x0;_0xa452f7<_0x46ad3c[_0x2b3128(0x524)][_0x2b3128(0xcef)][_0x2b3128(0x402)];_0xa452f7++){_0xe8a860[_0x2b3128(0x1980)]({'title':_0x46ad3c[_0x2b3128(0x524)]['errors'][_0xa452f7]['type'],'msg':_0x46ad3c['data'][_0x2b3128(0xcef)][_0xa452f7]['message']});}}else _0xe8a860[_0x2b3128(0x1980)]({'title':_0x46ad3c[_0x2b3128(0x107b)]?_0x2b3128(0x262a)+_0x46ad3c['status']+_0x2b3128(0x1315)+_0x46ad3c[_0x2b3128(0x167f)]:'SYSTEM:GETchatWebsite','msg':_0x46ad3c[_0x2b3128(0x524)]?JSON[_0x2b3128(0x10bb)](_0x46ad3c[_0x2b3128(0x524)][_0x2b3128(0x7fd)]):_0x46ad3c[_0x2b3128(0x7fd)]||_0x46ad3c[_0x2b3128(0xd5f)]()});});}function _0x32e9a9(){const _0x11351f=_0x100563,_0x184a74=angular[_0x11351f(0x235a)](_0x11a023[_0x11351f(0x68a)]);return _0x11a023[_0x11351f(0x68a)]=[],_0x184a74;}function _0x223e6c(_0x5dcc6d){const _0x1c2cb5=_0x100563,_0x2e77aa=_0x278ad9[_0x1c2cb5(0x1e8a)]()[_0x1c2cb5(0x1189)](_0x1c2cb5(0x2283))['htmlContent'](''+_0x11a023[_0x1c2cb5(0x68a)][_0x1c2cb5(0x402)]+_0x1c2cb5(0x2452)+_0x1c2cb5(0xe01))[_0x1c2cb5(0x4bd)]('delete\x20interactions')[_0x1c2cb5(0x1f27)](_0x5dcc6d)['ok']('OK')[_0x1c2cb5(0x6c3)](_0x1c2cb5(0x39a));_0x278ad9[_0x1c2cb5(0x2615)](_0x2e77aa)['then'](function(){const _0x24461c=_0x1c2cb5;_0x11a023['selectedChatWebsiteInteractions'][_0x24461c(0x1df5)](function(_0x1374bc){_0x80f9bf(_0x1374bc);}),_0x11a023[_0x24461c(0x68a)]=[];});}function _0x11ce52(_0x30934f){const _0x474be0=_0x100563;_0x30934f[_0x474be0(0x364)]?_0x30934f[_0x474be0(0x792)]=(_0x30934f['Contact'][_0x474be0(0x1ed4)]||'')+'\x20'+(_0x30934f['Contact'][_0x474be0(0xee4)]||''):_0x30934f[_0x474be0(0x792)]=_0x31726d['instant']('APP.UNKNOWN');}function _0x325961(_0x1a05bf){const _0x32acf2=_0x100563;if(_0x1a05bf[_0x32acf2(0xea2)])return _0x1a05bf[_0x32acf2(0xea2)]===_0x11a023[_0x32acf2(0x2321)]['id']?_0x31726d[_0x32acf2(0xde)](_0x32acf2(0x6d9)):_0x1a05bf['Owner'][_0x32acf2(0x286a)]+'\x20<'+_0x1a05bf[_0x32acf2(0xac5)][_0x32acf2(0x113f)]+'>';return _0x31726d[_0x32acf2(0xde)](_0x32acf2(0x38d));}let _0x3b188e=!![],_0x51886d=0x1;_0x27a440[_0x100563(0x21e8)](_0x100563(0x117f),function(_0x12f4bc,_0x59a943){const _0x2cb750=_0x100563;_0x3b188e?_0x3fbacf(function(){_0x3b188e=![];}):(!_0x59a943&&(_0x51886d=_0x11a023[_0x2cb750(0x1a56)][_0x2cb750(0x844)]),_0x12f4bc!==_0x59a943&&(_0x11a023[_0x2cb750(0x1a56)]['page']=0x1),!_0x12f4bc&&(_0x11a023[_0x2cb750(0x1a56)][_0x2cb750(0x844)]=_0x51886d),_0x124179());});}const _0x9b4402=_0x6f95fe;;_0x48824f[_0x313a4d(0x11c2)]=[_0x313a4d(0x23df),_0x313a4d(0x1fe4)];function _0x48824f(_0x6ed406,_0x192e93){const _0x1c0488=_0x313a4d,_0x93a08f=this,_0x2ca80a=0x8,_0x1067ed=_0x2ca80a*0x400*0x400;_0x93a08f[_0x1c0488(0x189e)]={},_0x93a08f[_0x1c0488(0x2514)],_0x93a08f[_0x1c0488(0x4c3)]={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x1067ed,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x93a08f[_0x1c0488(0x1376)]={'flow':{}},_0x93a08f['dropping']=![],_0x93a08f[_0x1c0488(0x143d)]=_0x98df6,_0x93a08f[_0x1c0488(0x1dc6)]=_0x1e57ca,_0x93a08f[_0x1c0488(0xc4c)]=_0x17dd06,_0x93a08f['init']=_0x45b0b4;function _0x45b0b4(_0x78d6ea,_0x1430cf){const _0x396277=_0x1c0488;_0x93a08f[_0x396277(0x189e)]=angular['copy'](_0x78d6ea),_0x93a08f[_0x396277(0x2514)]=typeof _0x1430cf!==_0x396277(0x2274)?_0x1430cf:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x93a08f[_0x396277(0x4c3)][_0x396277(0xe1d)]=_0x396277(0x2342)[_0x396277(0x5f4)](':id',_0x93a08f[_0x396277(0x189e)]['id']),_0x93a08f[_0x396277(0x189e)][_0x396277(0x1f07)]=[];}function _0x98df6(_0x1fcae9){const _0x457537=_0x1c0488,_0x5e00e4=[_0x457537(0xadf),_0x457537(0x621)];if(!_0x3f65c0()[_0x457537(0xa4e)](_0x5e00e4,_0x1fcae9[_0x457537(0x193f)]()))return _0x192e93[_0x457537(0x1980)]({'title':_0x457537(0x4c6)+_0x1fcae9[_0x457537(0x193f)](),'msg':_0x457537(0x208f)+_0x5e00e4[_0x457537(0xb47)]()}),![];if(_0x1fcae9[_0x457537(0x4cc)]>_0x1067ed)return _0x192e93[_0x457537(0x1980)]({'title':_0x457537(0x625),'msg':'The\x20max\x20allowed\x20size\x20is\x20'+_0x2ca80a+'MB'}),![];const _0x127aa4={'id':_0x1fcae9[_0x457537(0x1276)],'file':_0x1fcae9,'type':_0x457537(0x159c)};return _0x93a08f[_0x457537(0x189e)][_0x457537(0x1f07)]['unshift'](_0x127aa4),!![];}function _0x1e57ca(){const _0x469499=_0x1c0488;_0x93a08f['ngFlow'][_0x469499(0x963)][_0x469499(0x1da1)][_0x469499(0xa01)]={'X-Requested-With':_0x469499(0x1f8f),'Authorization':_0x469499(0x2745)+_0x6ed406['get'](_0x469499(0xe2d))},_0x93a08f[_0x469499(0x1376)][_0x469499(0x963)][_0x469499(0x1dc6)]();}function _0x17dd06(_0x1b160c){const _0x1c6329=_0x1c0488;angular['forEach'](_0x93a08f[_0x1c6329(0x189e)][_0x1c6329(0x1f07)],function(_0x488fc7){const _0x31b94c=_0x1c6329;if(_0x488fc7['id']===_0x1b160c[_0x31b94c(0x1276)]){const _0x198559=new FileReader();_0x198559['readAsDataURL'](_0x488fc7[_0x31b94c(0x252e)][_0x31b94c(0x252e)]),_0x198559[_0x31b94c(0x20f6)]=function(_0x3d1c3d){_0x488fc7['url']=_0x3d1c3d['target']['result'];},_0x488fc7[_0x31b94c(0x1142)]=_0x31b94c(0x106c);}});}}const _0x4c5187=_0x48824f;;const _0xcb8bd2=_0x4acfac['p']+_0x313a4d(0x1cee);;_0x3258a3[_0x313a4d(0x11c2)]=['$cookies',_0x313a4d(0x910),_0x313a4d(0x1862),'$q',_0x313a4d(0x214b),'$timeout','$mdDialog',_0x313a4d(0x4d8),_0x313a4d(0x1fe4),_0x313a4d(0x247f),_0x313a4d(0xa87)];function _0x3258a3(_0x2e1b57,_0x85b3da,_0x616427,_0x2a1a40,_0x3b9e4a,_0x595b1f,_0x2857bc,_0x2b1234,_0x180f7a,_0x1b4b15,_0x35f9e9){const _0x79fc67=_0x313a4d,_0x3d8def=this;_0x3d8def[_0x79fc67(0x2321)]=_0x35f9e9[_0x79fc67(0xb12)](),_0x3d8def[_0x79fc67(0x189e)]={},_0x3d8def[_0x79fc67(0x19e4)]={'count':0x0,'rows':[]},_0x3d8def['selectedChatWebsiteOfflineMessages']=[],_0x3d8def[_0x79fc67(0x2514)],_0x3d8def[_0x79fc67(0x1a56)]={'fields':_0x79fc67(0x2102),'sort':'-createdAt','limit':0xa,'page':0x1},_0x3d8def[_0x79fc67(0x5aa)]=_0x338c5f,_0x3d8def['deleteConfirm']=_0x3c7e3e,_0x3d8def[_0x79fc67(0x1c75)]=_0x1671ad,_0x3d8def[_0x79fc67(0x264)]=_0x2a766f,_0x3d8def['createOrEditChatWebsiteOfflineMessage']=_0x4ff1d2,_0x3d8def[_0x79fc67(0x14a2)]=_0x47e56c,_0x3d8def[_0x79fc67(0x10d7)]=_0x28802f,_0x3d8def[_0x79fc67(0x1cbf)]=_0x5e0880,_0x3d8def['deleteSelectedChatWebsiteOfflineMessages']=_0x211abe;function _0x338c5f(_0x235a03,_0x560e28){const _0x27382b=_0x79fc67;_0x3d8def[_0x27382b(0x189e)]=_0x235a03,_0x3d8def[_0x27382b(0x2514)]=typeof _0x560e28!==_0x27382b(0x2274)?_0x560e28:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x3d8def[_0x27382b(0x1a56)]['id']=_0x3d8def[_0x27382b(0x189e)]['id'],_0x2a766f();}function _0x3c7e3e(_0x498318,_0x121361){const _0x1dbce6=_0x79fc67,_0x33747f=_0x2857bc[_0x1dbce6(0x1e8a)]()[_0x1dbce6(0x1189)](_0x1dbce6(0x63c))[_0x1dbce6(0x1cbe)](_0x1dbce6(0x16d3)+(_0x498318[_0x1dbce6(0x19eb)]||_0x498318['id']&&_0x3f65c0()['upperFirst']('offlineMessage\x20#')+_0x498318['id']||_0x1dbce6(0x1526))+_0x1dbce6(0x252f)+'\x20will\x20be\x20deleted.')[_0x1dbce6(0x4bd)]('delete\x20offlineMessage')[_0x1dbce6(0x1f27)](_0x121361)['ok']('OK')[_0x1dbce6(0x6c3)](_0x1dbce6(0x39a));_0x2857bc[_0x1dbce6(0x2615)](_0x33747f)[_0x1dbce6(0x146b)](function(){_0x5e0880(_0x498318);},function(){const _0x311af1=_0x1dbce6;console[_0x311af1(0x1a74)](_0x311af1(0x39a));});}function _0x1671ad(_0x34faea){const _0xeed6d9=_0x79fc67;_0x3d8def[_0xeed6d9(0x19e4)]=_0x34faea||{'count':0x0,'rows':[]};}function _0x2a766f(){const _0x44becf=_0x79fc67;_0x3d8def[_0x44becf(0x1a56)][_0x44becf(0x145d)]=(_0x3d8def['query'][_0x44becf(0x844)]-0x1)*_0x3d8def[_0x44becf(0x1a56)][_0x44becf(0x221e)],_0x3d8def['promise']=_0x1b4b15[_0x44becf(0x189e)][_0x44becf(0x1c2e)](_0x3d8def[_0x44becf(0x1a56)],_0x1671ad)[_0x44becf(0x2945)];}function _0x4ff1d2(_0x89bf77,_0x4b55ad){const _0x439dd3=_0x79fc67;_0x2857bc[_0x439dd3(0x2615)]({'controller':_0x439dd3(0xff3),'controllerAs':'vm','templateUrl':_0xcb8bd2,'parent':angular[_0x439dd3(0x1853)](_0x2b1234[_0x439dd3(0x2586)]),'targetEvent':_0x89bf77,'clickOutsideToClose':!![],'locals':{'chatWebsite':_0x3d8def[_0x439dd3(0x189e)],'offlineMessage':_0x4b55ad,'offlineMessages':_0x3d8def[_0x439dd3(0x19e4)][_0x439dd3(0x19c7)],'license':null,'setting':null,'crudPermissions':_0x3d8def[_0x439dd3(0x2514)]}});}function _0x47e56c(_0x2387b1,_0x54d8ad){const _0x5d26d7=_0x79fc67;_0x2857bc[_0x5d26d7(0x2615)]({'controller':_0x5d26d7(0x7c2),'controllerAs':'vm','templateUrl':_0xcb8bd2,'parent':angular[_0x5d26d7(0x1853)](_0x2b1234['body']),'targetEvent':_0x2387b1,'clickOutsideToClose':!![],'resolve':{'message':['apiResolver',function(_0x4804a){const _0x356a37=_0x5d26d7;return _0x4804a[_0x356a37(0x2922)]('chatOfflineMessage@get',{'fields':_0x356a37(0x49c),'id':_0x54d8ad['id']});}]}});}function _0x5e0880(_0x6605ae){const _0x5b3ac3=_0x79fc67;_0x1b4b15[_0x5b3ac3(0x147e)][_0x5b3ac3(0x1fac)]({'id':_0x6605ae['id']})[_0x5b3ac3(0x2945)][_0x5b3ac3(0x146b)](function(){const _0x56105d=_0x5b3ac3;_0x3f65c0()[_0x56105d(0x2640)](_0x3d8def['chatWebsiteOfflineMessages'][_0x56105d(0x19c7)],{'id':_0x6605ae['id']}),_0x3d8def[_0x56105d(0x19e4)]['count']-=0x1,!_0x3d8def[_0x56105d(0x19e4)]['rows'][_0x56105d(0x402)]&&_0x2a766f(),_0x180f7a[_0x56105d(0x1c75)]({'title':_0x56105d(0x18ae),'msg':_0x6605ae[_0x56105d(0x19eb)]?_0x6605ae[_0x56105d(0x19eb)]+_0x56105d(0x23e3):''});})[_0x5b3ac3(0x129e)](function(_0x5f129a){const _0x2b5dd1=_0x5b3ac3;if(_0x5f129a[_0x2b5dd1(0x524)]&&_0x5f129a['data'][_0x2b5dd1(0xcef)]&&_0x5f129a[_0x2b5dd1(0x524)][_0x2b5dd1(0xcef)][_0x2b5dd1(0x402)]){_0x3d8def[_0x2b5dd1(0xcef)]=_0x5f129a[_0x2b5dd1(0x524)]['errors']||[{'message':_0x5f129a[_0x2b5dd1(0xd5f)](),'type':_0x2b5dd1(0xfb3)}];for(let _0x28bcb4=0x0;_0x28bcb4<_0x5f129a[_0x2b5dd1(0x524)][_0x2b5dd1(0xcef)][_0x2b5dd1(0x402)];_0x28bcb4++){_0x180f7a[_0x2b5dd1(0x1980)]({'title':_0x5f129a[_0x2b5dd1(0x524)][_0x2b5dd1(0xcef)][_0x28bcb4][_0x2b5dd1(0x1142)],'msg':_0x5f129a[_0x2b5dd1(0x524)][_0x2b5dd1(0xcef)][_0x28bcb4]['message']});}}else _0x180f7a[_0x2b5dd1(0x1980)]({'title':_0x5f129a[_0x2b5dd1(0x107b)]?'API:'+_0x5f129a[_0x2b5dd1(0x107b)]+_0x2b5dd1(0x1315)+_0x5f129a[_0x2b5dd1(0x167f)]:_0x2b5dd1(0xfb3),'msg':_0x5f129a[_0x2b5dd1(0x524)]?JSON[_0x2b5dd1(0x10bb)](_0x5f129a[_0x2b5dd1(0x524)]['message']):_0x5f129a[_0x2b5dd1(0x7fd)]||_0x5f129a[_0x2b5dd1(0xd5f)]()});});}function _0x28802f(){const _0x380d0e=_0x79fc67,_0x5d7b76=angular[_0x380d0e(0x235a)](_0x3d8def['selectedChatWebsiteOfflineMessages']);return _0x3d8def[_0x380d0e(0xbbb)]=[],_0x5d7b76;}function _0x211abe(_0x4ef745){const _0x5f8e09=_0x79fc67,_0x109342=_0x2857bc[_0x5f8e09(0x1e8a)]()[_0x5f8e09(0x1189)](_0x5f8e09(0x22ca))['htmlContent'](''+_0x3d8def[_0x5f8e09(0xbbb)]['length']+_0x5f8e09(0x2452)+_0x5f8e09(0xe01))[_0x5f8e09(0x4bd)](_0x5f8e09(0x1add))[_0x5f8e09(0x1f27)](_0x4ef745)['ok']('OK')[_0x5f8e09(0x6c3)](_0x5f8e09(0x39a));_0x2857bc[_0x5f8e09(0x2615)](_0x109342)[_0x5f8e09(0x146b)](function(){const _0x1e3d66=_0x5f8e09;_0x3d8def[_0x1e3d66(0xbbb)][_0x1e3d66(0x1df5)](function(_0x3a785b){_0x5e0880(_0x3a785b);}),_0x3d8def[_0x1e3d66(0xbbb)]=[];});}let _0x30d261=!![],_0x5cd977=0x1;_0x85b3da['$watch'](_0x79fc67(0x117f),function(_0x12bcf4,_0x27b914){const _0x33d950=_0x79fc67;_0x30d261?_0x595b1f(function(){_0x30d261=![];}):(!_0x27b914&&(_0x5cd977=_0x3d8def[_0x33d950(0x1a56)][_0x33d950(0x844)]),_0x12bcf4!==_0x27b914&&(_0x3d8def[_0x33d950(0x1a56)][_0x33d950(0x844)]=0x1),!_0x12bcf4&&(_0x3d8def['query'][_0x33d950(0x844)]=_0x5cd977),_0x2a766f());});}const _0x3ef50c=_0x3258a3;;_0x3a443f[_0x313a4d(0x11c2)]=['$mdDialog',_0x313a4d(0x7fd)];function _0x3a443f(_0xc360d6,_0x71c499){const _0xc4ad85=_0x313a4d,_0xb4e4fb=this;_0xb4e4fb[_0xc4ad85(0x1189)]='CHAT.OFFLINE_MESSAGE',_0xb4e4fb['message']=_0x71c499,_0xb4e4fb[_0xc4ad85(0x13f3)]=_0xdcc0b6;function _0xdcc0b6(_0x73190b){const _0x5ea0b5=_0xc4ad85;_0xc360d6[_0x5ea0b5(0x2458)](_0x73190b);}}const _0x222102=_0x3a443f;;const _0x587978=_0x4acfac['p']+_0x313a4d(0xa71);;_0x5999bb[_0x313a4d(0x11c2)]=[_0x313a4d(0x23df),'$scope',_0x313a4d(0x1862),'$q','$translate',_0x313a4d(0x1abe),_0x313a4d(0x10e8),'$document',_0x313a4d(0x1fe4),_0x313a4d(0x247f),_0x313a4d(0xa87)];function _0x5999bb(_0x470b31,_0x23310d,_0x1a91ea,_0x3d34f2,_0x49838b,_0x5b16c8,_0x53d159,_0x408c22,_0x5a798b,_0x576283,_0x16aa42){const _0x4b641b=_0x313a4d,_0x357e48=this;_0x357e48[_0x4b641b(0x2321)]=_0x16aa42[_0x4b641b(0xb12)](),_0x357e48[_0x4b641b(0x189e)]={},_0x357e48['chatWebsiteProactiveActions']={'count':0x0,'rows':[]},_0x357e48[_0x4b641b(0xb65)]=[],_0x357e48[_0x4b641b(0x2514)],_0x357e48[_0x4b641b(0x1a56)]={'fields':_0x4b641b(0x1be8),'limit':0xa,'page':0x1},_0x357e48[_0x4b641b(0x11da)]=_0x3f65c0()[_0x4b641b(0x194)]([{'option':'MouseOver','value':_0x4b641b(0x1aee)},{'option':'Timeout','value':_0x4b641b(0x1d4a)}],function(_0xca77d){const _0x45828a=_0x4b641b;return _0x3f65c0()[_0x45828a(0x5f4)](_0xca77d['value'],new RegExp('\x27','g'),'');}),_0x357e48[_0x4b641b(0x5aa)]=_0x32b513,_0x357e48[_0x4b641b(0x19b4)]=_0x38da0f,_0x357e48['success']=_0x22c0d8,_0x357e48['getChatWebsiteProactiveActions']=_0x569185,_0x357e48[_0x4b641b(0x58f)]=_0x3a24ad,_0x357e48[_0x4b641b(0x2835)]=_0x576630,_0x357e48[_0x4b641b(0x699)]=_0x2fd8e6,_0x357e48[_0x4b641b(0xe67)]=_0x1bd55e;function _0x32b513(_0x4f03c3,_0x1b268a){const _0x1add3d=_0x4b641b;_0x357e48[_0x1add3d(0x189e)]=_0x4f03c3,_0x357e48[_0x1add3d(0x2514)]=typeof _0x1b268a!==_0x1add3d(0x2274)?_0x1b268a:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x357e48[_0x1add3d(0x1a56)][_0x1add3d(0x1d92)]=_0x357e48[_0x1add3d(0x189e)]['id'],_0x357e48[_0x1add3d(0x1a56)]['id']=_0x357e48[_0x1add3d(0x189e)]['id'],_0x569185();}function _0x38da0f(_0xf197c7,_0x17668d){const _0x2256ae=_0x4b641b,_0x178ba9=_0x53d159[_0x2256ae(0x1e8a)]()[_0x2256ae(0x1189)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20chatProactiveAction?')[_0x2256ae(0x1cbe)](_0x2256ae(0x16d3)+(_0xf197c7[_0x2256ae(0x19eb)]||_0xf197c7['id']&&_0x3f65c0()['upperFirst'](_0x2256ae(0x2d8))+_0xf197c7['id']||_0x2256ae(0xebc))+_0x2256ae(0x252f)+_0x2256ae(0xe01))[_0x2256ae(0x4bd)](_0x2256ae(0x1b42))[_0x2256ae(0x1f27)](_0x17668d)['ok']('OK')[_0x2256ae(0x6c3)](_0x2256ae(0x39a));_0x53d159['show'](_0x178ba9)[_0x2256ae(0x146b)](function(){_0x2fd8e6(_0xf197c7);},function(){const _0x445f50=_0x2256ae;console[_0x445f50(0x1a74)]('CANCEL');});}function _0x22c0d8(_0x4dec0b){const _0x4454ad=_0x4b641b;_0x357e48[_0x4454ad(0x1fc8)]=_0x4dec0b||{'count':0x0,'rows':[]};}function _0x569185(){const _0x3e8f3f=_0x4b641b;_0x357e48['query'][_0x3e8f3f(0x145d)]=(_0x357e48[_0x3e8f3f(0x1a56)]['page']-0x1)*_0x357e48['query']['limit'],_0x357e48['promise']=_0x576283[_0x3e8f3f(0x189e)][_0x3e8f3f(0xe0a)](_0x357e48[_0x3e8f3f(0x1a56)],_0x22c0d8)[_0x3e8f3f(0x2945)];}function _0x3a24ad(_0x39b36d,_0x39094d){const _0x1526b7=_0x4b641b;_0x53d159[_0x1526b7(0x2615)]({'controller':_0x1526b7(0x1791),'controllerAs':'vm','templateUrl':_0x587978,'parent':angular[_0x1526b7(0x1853)](_0x408c22['body']),'targetEvent':_0x39b36d,'clickOutsideToClose':!![],'locals':{'chatWebsite':_0x357e48[_0x1526b7(0x189e)],'chatProactiveAction':_0x39094d,'proactive':_0x357e48[_0x1526b7(0x1fc8)][_0x1526b7(0x19c7)],'license':null,'setting':null,'crudPermissions':_0x357e48['crudPermissions']}});}function _0x2fd8e6(_0x85d908){const _0x57b6bb=_0x4b641b;_0x576283[_0x57b6bb(0xebc)][_0x57b6bb(0x1fac)]({'id':_0x85d908['id']})[_0x57b6bb(0x2945)][_0x57b6bb(0x146b)](function(){const _0x315a22=_0x57b6bb;_0x3f65c0()[_0x315a22(0x2640)](_0x357e48[_0x315a22(0x1fc8)][_0x315a22(0x19c7)],{'id':_0x85d908['id']}),_0x357e48[_0x315a22(0x1fc8)]['count']-=0x1,!_0x357e48[_0x315a22(0x1fc8)][_0x315a22(0x19c7)][_0x315a22(0x402)]&&_0x569185(),_0x5a798b[_0x315a22(0x1c75)]({'title':_0x315a22(0x1d10),'msg':_0x85d908[_0x315a22(0x19eb)]?_0x85d908[_0x315a22(0x19eb)]+_0x315a22(0x23e3):''});})[_0x57b6bb(0x129e)](function(_0x1dbce1){const _0x2f7be3=_0x57b6bb;if(_0x1dbce1[_0x2f7be3(0x524)]&&_0x1dbce1['data'][_0x2f7be3(0xcef)]&&_0x1dbce1[_0x2f7be3(0x524)]['errors'][_0x2f7be3(0x402)]){_0x357e48['errors']=_0x1dbce1[_0x2f7be3(0x524)][_0x2f7be3(0xcef)]||[{'message':_0x1dbce1[_0x2f7be3(0xd5f)](),'type':'SYSTEM:GETchatWebsite'}];for(let _0x2d6652=0x0;_0x2d6652<_0x1dbce1[_0x2f7be3(0x524)]['errors'][_0x2f7be3(0x402)];_0x2d6652++){_0x5a798b['error']({'title':_0x1dbce1[_0x2f7be3(0x524)]['errors'][_0x2d6652][_0x2f7be3(0x1142)],'msg':_0x1dbce1[_0x2f7be3(0x524)][_0x2f7be3(0xcef)][_0x2d6652][_0x2f7be3(0x7fd)]});}}else _0x5a798b[_0x2f7be3(0x1980)]({'title':_0x1dbce1[_0x2f7be3(0x107b)]?_0x2f7be3(0x262a)+_0x1dbce1[_0x2f7be3(0x107b)]+_0x2f7be3(0x1315)+_0x1dbce1['statusText']:'SYSTEM:GETchatWebsite','msg':_0x1dbce1[_0x2f7be3(0x524)]?JSON[_0x2f7be3(0x10bb)](_0x1dbce1[_0x2f7be3(0x524)][_0x2f7be3(0x7fd)]):_0x1dbce1[_0x2f7be3(0x7fd)]||_0x1dbce1[_0x2f7be3(0xd5f)]()});});}function _0x576630(){const _0x337f30=_0x4b641b,_0x28a112=angular[_0x337f30(0x235a)](_0x357e48[_0x337f30(0xb65)]);return _0x357e48['selectedChatWebsiteProactiveActions']=[],_0x28a112;}function _0x1bd55e(_0x2149d5){const _0x866d41=_0x4b641b,_0x4f7bfd=_0x53d159[_0x866d41(0x1e8a)]()[_0x866d41(0x1189)](_0x866d41(0x2630))[_0x866d41(0x1cbe)](''+_0x357e48['selectedChatWebsiteProactiveActions'][_0x866d41(0x402)]+_0x866d41(0x2452)+'\x20will\x20be\x20deleted.')[_0x866d41(0x4bd)]('delete\x20proactive')[_0x866d41(0x1f27)](_0x2149d5)['ok']('OK')[_0x866d41(0x6c3)](_0x866d41(0x39a));_0x53d159[_0x866d41(0x2615)](_0x4f7bfd)[_0x866d41(0x146b)](function(){const _0x21bac4=_0x866d41;_0x357e48[_0x21bac4(0xb65)][_0x21bac4(0x1df5)](function(_0x351dc1){_0x2fd8e6(_0x351dc1);}),_0x357e48['selectedChatWebsiteProactiveActions']=[];});}let _0x329ff9=!![],_0x52020b=0x1;_0x23310d[_0x4b641b(0x21e8)](_0x4b641b(0x117f),function(_0x2ca238,_0x3f1153){const _0x59f01b=_0x4b641b;_0x329ff9?_0x5b16c8(function(){_0x329ff9=![];}):(!_0x3f1153&&(_0x52020b=_0x357e48[_0x59f01b(0x1a56)][_0x59f01b(0x844)]),_0x2ca238!==_0x3f1153&&(_0x357e48['query']['page']=0x1),!_0x2ca238&&(_0x357e48[_0x59f01b(0x1a56)]['page']=_0x52020b),_0x569185());});}const _0x47a9ea=_0x5999bb;;_0x7d9a6a[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1862),_0x313a4d(0xd08),_0x313a4d(0x10e8),'$q',_0x313a4d(0x214b),_0x313a4d(0x1fe4),_0x313a4d(0x15f2),_0x313a4d(0xebc),_0x313a4d(0x247f),_0x313a4d(0xa87),_0x313a4d(0x2690),_0x313a4d(0x15b9),_0x313a4d(0x2514)];function _0x7d9a6a(_0x1b6f04,_0x120571,_0x12b31a,_0x3cb1d2,_0x307dc9,_0x406870,_0x2ea8b5,_0x18bc36,_0x3ce8a3,_0x2e1177,_0x3950c3,_0x4d97c7,_0x1a6aa3,_0x356ab2){const _0x182c35=_0x313a4d,_0x3eb5da=this;_0x3eb5da[_0x182c35(0x2321)]=_0x3950c3[_0x182c35(0xb12)](),_0x3eb5da['errors']=[],_0x3eb5da[_0x182c35(0x15b9)]=_0x1a6aa3,_0x3eb5da[_0x182c35(0x2690)]=_0x4d97c7,_0x3eb5da[_0x182c35(0x2514)]=_0x356ab2,_0x3eb5da[_0x182c35(0x855)]={},_0x3eb5da['passwordPattern']=_0x3eb5da[_0x182c35(0x15b9)]&&_0x3eb5da[_0x182c35(0x15b9)][_0x182c35(0x976)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3eb5da['title']=_0x182c35(0x277a),_0x3eb5da[_0x182c35(0xebc)]=angular[_0x182c35(0x235a)](_0x3ce8a3),_0x3eb5da[_0x182c35(0x15f2)]=_0x18bc36,_0x3eb5da['newChatProactiveAction']=![];!_0x3eb5da[_0x182c35(0xebc)]&&(_0x3eb5da[_0x182c35(0xebc)]={'type':_0x182c35(0x25dd)},_0x3eb5da[_0x182c35(0x1189)]='CHAT.NEW_CHATPROACTIVEACTION',_0x3eb5da[_0x182c35(0x1de)]=!![]);_0x120571[_0x182c35(0x16a)]['id']&&(_0x3eb5da['chatProactiveAction'][_0x182c35(0x1d92)]=_0x120571['params']['id']);_0x3eb5da[_0x182c35(0x1702)]=_0x3106ca,_0x3eb5da[_0x182c35(0x2397)]=_0x184fd4,_0x3eb5da[_0x182c35(0xacd)]=_0x5c7764,_0x3eb5da['getDateFromString']=_0x5aec33,_0x3eb5da[_0x182c35(0x13f3)]=_0x4dca18;function _0x3106ca(){const _0x4449e2=_0x182c35;_0x3eb5da['errors']=[],_0x2e1177[_0x4449e2(0xebc)][_0x4449e2(0x1e3)](_0x3eb5da['chatProactiveAction'])[_0x4449e2(0x2945)][_0x4449e2(0x146b)](function(_0x5621fa){const _0x204e24=_0x4449e2;_0x3eb5da[_0x204e24(0x15f2)][_0x204e24(0xb3d)](_0x5621fa[_0x204e24(0x2488)]()),_0x2ea8b5[_0x204e24(0x1c75)]({'title':_0x204e24(0x967),'msg':_0x3eb5da['chatProactiveAction'][_0x204e24(0x19eb)]?_0x3eb5da['chatProactiveAction'][_0x204e24(0x19eb)]+_0x204e24(0x1386):''}),_0x4dca18(_0x5621fa);})['catch'](function(_0x461475){const _0x4d6e20=_0x4449e2;if(_0x461475[_0x4d6e20(0x524)]&&_0x461475[_0x4d6e20(0x524)][_0x4d6e20(0xcef)]&&_0x461475[_0x4d6e20(0x524)][_0x4d6e20(0xcef)][_0x4d6e20(0x402)]){_0x3eb5da[_0x4d6e20(0xcef)]=_0x461475[_0x4d6e20(0x524)][_0x4d6e20(0xcef)]||[{'message':_0x461475[_0x4d6e20(0xd5f)](),'type':'api.chatProactiveAction.save'}];for(let _0x5310ae=0x0;_0x5310ae<_0x461475[_0x4d6e20(0x524)][_0x4d6e20(0xcef)][_0x4d6e20(0x402)];_0x5310ae+=0x1){_0x2ea8b5[_0x4d6e20(0x1980)]({'title':_0x461475['data']['errors'][_0x5310ae]['type'],'msg':_0x461475[_0x4d6e20(0x524)][_0x4d6e20(0xcef)][_0x5310ae][_0x4d6e20(0x7fd)]});}}else _0x2ea8b5[_0x4d6e20(0x1980)]({'title':_0x461475[_0x4d6e20(0x107b)]?_0x4d6e20(0x262a)+_0x461475['status']+_0x4d6e20(0x1315)+_0x461475['statusText']:_0x4d6e20(0x865),'msg':_0x461475['data']?JSON[_0x4d6e20(0x10bb)](_0x461475[_0x4d6e20(0x524)][_0x4d6e20(0x7fd)]):_0x461475[_0x4d6e20(0xd5f)]()});});}function _0x184fd4(){const _0x34104e=_0x182c35;_0x3eb5da[_0x34104e(0xcef)]=[],_0x2e1177[_0x34104e(0xebc)][_0x34104e(0x18e1)]({'id':_0x3eb5da[_0x34104e(0xebc)]['id']},_0x3eb5da[_0x34104e(0xebc)])[_0x34104e(0x2945)][_0x34104e(0x146b)](function(_0x3eb9e9){const _0x1df6fe=_0x34104e,_0x12fe8c=_0x3f65c0()[_0x1df6fe(0xc84)](_0x3eb5da[_0x1df6fe(0x15f2)],{'id':_0x3eb9e9['id']});_0x12fe8c&&_0x3f65c0()[_0x1df6fe(0x168d)](_0x12fe8c,_0x3f65c0()[_0x1df6fe(0x40e)](_0x3eb9e9['toJSON'](),_0x3f65c0()[_0x1df6fe(0x627)](_0x12fe8c))),_0x2ea8b5[_0x1df6fe(0x1c75)]({'title':_0x1df6fe(0x12fc),'msg':_0x3eb5da[_0x1df6fe(0xebc)][_0x1df6fe(0x19eb)]?_0x3eb5da['chatProactiveAction'][_0x1df6fe(0x19eb)]+_0x1df6fe(0x24db):''}),_0x4dca18(_0x3eb9e9);})[_0x34104e(0x129e)](function(_0x5c1ad7){const _0x2caf30=_0x34104e;if(_0x5c1ad7[_0x2caf30(0x524)]&&_0x5c1ad7[_0x2caf30(0x524)][_0x2caf30(0xcef)]&&_0x5c1ad7[_0x2caf30(0x524)]['errors']['length']){_0x3eb5da[_0x2caf30(0xcef)]=_0x5c1ad7[_0x2caf30(0x524)][_0x2caf30(0xcef)]||[{'message':_0x5c1ad7[_0x2caf30(0xd5f)](),'type':_0x2caf30(0x1a6d)}];for(let _0xe4f8d=0x0;_0xe4f8d<_0x5c1ad7['data'][_0x2caf30(0xcef)][_0x2caf30(0x402)];_0xe4f8d++){_0x2ea8b5[_0x2caf30(0x1980)]({'title':_0x5c1ad7[_0x2caf30(0x524)][_0x2caf30(0xcef)][_0xe4f8d][_0x2caf30(0x1142)],'msg':_0x5c1ad7[_0x2caf30(0x524)][_0x2caf30(0xcef)][_0xe4f8d][_0x2caf30(0x7fd)]});}}else _0x2ea8b5[_0x2caf30(0x1980)]({'title':_0x5c1ad7['status']?_0x2caf30(0x262a)+_0x5c1ad7[_0x2caf30(0x107b)]+_0x2caf30(0x1315)+_0x5c1ad7[_0x2caf30(0x167f)]:'api.chatProactiveAction.update','msg':_0x5c1ad7[_0x2caf30(0x524)]?JSON[_0x2caf30(0x10bb)](_0x5c1ad7['data'][_0x2caf30(0x7fd)]):_0x5c1ad7['toString']()});});}function _0x5c7764(_0x590da3){const _0x5b7c91=_0x182c35;_0x3eb5da[_0x5b7c91(0xcef)]=[];const _0x2ea28b=_0x3cb1d2[_0x5b7c91(0x1e8a)]()[_0x5b7c91(0x1189)](_0x5b7c91(0x1d64))[_0x5b7c91(0x80f)](_0x5b7c91(0xc03))[_0x5b7c91(0x4bd)](_0x5b7c91(0x1d34))['ok'](_0x5b7c91(0x25de))[_0x5b7c91(0x6c3)](_0x5b7c91(0xcf0))[_0x5b7c91(0x1f27)](_0x590da3);_0x3cb1d2[_0x5b7c91(0x2615)](_0x2ea28b)[_0x5b7c91(0x146b)](function(){const _0x3a2724=_0x5b7c91;_0x2e1177[_0x3a2724(0xebc)][_0x3a2724(0x1fac)]({'id':_0x3eb5da[_0x3a2724(0xebc)]['id']})['$promise'][_0x3a2724(0x146b)](function(){const _0x3c9144=_0x3a2724;_0x3f65c0()[_0x3c9144(0x2640)](_0x3eb5da[_0x3c9144(0x15f2)],{'id':_0x3eb5da['chatProactiveAction']['id']}),_0x2ea8b5['success']({'title':'ChatProactiveAction\x20properly\x20deleted!','msg':(_0x3eb5da[_0x3c9144(0xebc)][_0x3c9144(0x19eb)]||_0x3c9144(0xebc))+'\x20has\x20been\x20deleted!'}),_0x4dca18(_0x3eb5da[_0x3c9144(0xebc)]);})[_0x3a2724(0x129e)](function(_0x1097f6){const _0x371881=_0x3a2724;if(_0x1097f6[_0x371881(0x524)]&&_0x1097f6[_0x371881(0x524)][_0x371881(0xcef)]&&_0x1097f6[_0x371881(0x524)]['errors'][_0x371881(0x402)]){_0x3eb5da[_0x371881(0xcef)]=_0x1097f6[_0x371881(0x524)][_0x371881(0xcef)]||[{'message':_0x1097f6[_0x371881(0xd5f)](),'type':_0x371881(0xec1)}];for(let _0x3fcf4a=0x0;_0x3fcf4a<_0x1097f6[_0x371881(0x524)][_0x371881(0xcef)][_0x371881(0x402)];_0x3fcf4a++){_0x2ea8b5['error']({'title':_0x1097f6[_0x371881(0x524)]['errors'][_0x3fcf4a][_0x371881(0x1142)],'msg':_0x1097f6[_0x371881(0x524)][_0x371881(0xcef)][_0x3fcf4a][_0x371881(0x7fd)]});}}else _0x2ea8b5[_0x371881(0x1980)]({'title':_0x1097f6[_0x371881(0x107b)]?_0x371881(0x262a)+_0x1097f6[_0x371881(0x107b)]+'\x20-\x20'+_0x1097f6[_0x371881(0x167f)]:_0x371881(0xec1),'msg':_0x1097f6[_0x371881(0x524)]?JSON['stringify'](_0x1097f6[_0x371881(0x524)][_0x371881(0x7fd)]):_0x1097f6['message']||_0x1097f6[_0x371881(0xd5f)]()});});},function(){});}function _0x5aec33(_0x52fcfc){return _0x52fcfc===null?undefined:new Date(_0x52fcfc);}function _0x4dca18(_0x308404){_0x3cb1d2['hide'](_0x308404);}}const _0xfb11b8=_0x7d9a6a;;_0x21c2c1[_0x313a4d(0x11c2)]=[_0x313a4d(0x910)];function _0x21c2c1(_0x25da16){const _0x307bce=_0x313a4d,_0x553922=this;_0x553922[_0x307bce(0x189e)]={},_0x553922[_0x307bce(0x5aa)]=_0x2289cb,_0x553922['info']={};function _0x2289cb(_0x4ce128){const _0x3d03e4=_0x307bce;_0x553922[_0x3d03e4(0x189e)]=_0x4ce128,_0x553922[_0x3d03e4(0x48e)]=_0x3d03e4(0x16a8),_0x553922[_0x3d03e4(0x1a8)]=_0x3d03e4(0x1a4e)+_0x553922['chatWebsite']['remote']+'/api/chat/websites/'+_0x553922[_0x3d03e4(0x189e)]['id']+_0x3d03e4(0x1f90)+_0x553922[_0x3d03e4(0x189e)][_0x3d03e4(0x1957)]+'\x22>',_0x553922['end']=_0x3d03e4(0x16a8);}_0x25da16[_0x307bce(0x21e8)](_0x307bce(0x1cf0),function(){const _0x2cc95b=_0x307bce;_0x553922['script']=_0x2cc95b(0x1a4e)+_0x553922[_0x2cc95b(0x189e)][_0x2cc95b(0xc75)]+_0x2cc95b(0x2459)+_0x553922[_0x2cc95b(0x189e)]['id']+_0x2cc95b(0x1f90)+_0x553922[_0x2cc95b(0x189e)][_0x2cc95b(0x1957)]+_0x2cc95b(0x2667);});}const _0x4b269f=_0x21c2c1;;_0x3eb3ca[_0x313a4d(0x11c2)]=[_0x313a4d(0x23df),_0x313a4d(0x1fe4)];function _0x3eb3ca(_0x399759,_0xdeec37){const _0x159a17=_0x313a4d,_0x1b4cc4=this,_0x3e352e=0x8,_0x445632=_0x3e352e*0x400*0x400;_0x1b4cc4[_0x159a17(0x189e)]={},_0x1b4cc4['crudPermissions'],_0x1b4cc4['ngFlowOptions']={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x445632,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x1b4cc4[_0x159a17(0x1376)]={'flow':{}},_0x1b4cc4[_0x159a17(0x240d)]=![],_0x1b4cc4[_0x159a17(0x143d)]=_0x4c873c,_0x1b4cc4['upload']=_0x2a890c,_0x1b4cc4[_0x159a17(0xc4c)]=_0x21458f,_0x1b4cc4[_0x159a17(0x5aa)]=_0x133974;function _0x133974(_0x302ee3,_0x195951){const _0x28c32f=_0x159a17;_0x1b4cc4[_0x28c32f(0x189e)]=angular[_0x28c32f(0x235a)](_0x302ee3),_0x1b4cc4[_0x28c32f(0x2514)]=typeof _0x195951!==_0x28c32f(0x2274)?_0x195951:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x1b4cc4[_0x28c32f(0x4c3)][_0x28c32f(0xe1d)]=_0x28c32f(0x13a8)['replace'](':id',_0x1b4cc4[_0x28c32f(0x189e)]['id']),_0x1b4cc4[_0x28c32f(0x189e)]['images']=[];}function _0x4c873c(_0x39ab56){const _0x1c1efd=_0x159a17,_0x43eaea=[_0x1c1efd(0xadf),'jpg'];if(!_0x3f65c0()[_0x1c1efd(0xa4e)](_0x43eaea,_0x39ab56[_0x1c1efd(0x193f)]()))return _0xdeec37[_0x1c1efd(0x1980)]({'title':_0x1c1efd(0x4c6)+_0x39ab56[_0x1c1efd(0x193f)](),'msg':_0x1c1efd(0x208f)+_0x43eaea[_0x1c1efd(0xb47)]()}),![];if(_0x39ab56[_0x1c1efd(0x4cc)]>_0x445632)return _0xdeec37[_0x1c1efd(0x1980)]({'title':_0x1c1efd(0x625),'msg':_0x1c1efd(0x923)+_0x3e352e+'MB'}),![];const _0x23548c={'id':_0x39ab56[_0x1c1efd(0x1276)],'file':_0x39ab56,'type':_0x1c1efd(0x159c)};return _0x1b4cc4['chatWebsite']['images'][_0x1c1efd(0xb3d)](_0x23548c),!![];}function _0x2a890c(){const _0x1b0255=_0x159a17;_0x1b4cc4[_0x1b0255(0x1376)]['flow'][_0x1b0255(0x1da1)][_0x1b0255(0xa01)]={'X-Requested-With':'XMLHttpRequest','Authorization':_0x1b0255(0x2745)+_0x399759[_0x1b0255(0x16b4)](_0x1b0255(0xe2d))},_0x1b4cc4[_0x1b0255(0x1376)][_0x1b0255(0x963)][_0x1b0255(0x1dc6)]();}function _0x21458f(_0x261d36){const _0xca00c5=_0x159a17;angular[_0xca00c5(0x1df5)](_0x1b4cc4[_0xca00c5(0x189e)]['images'],function(_0x47a4fd){const _0x477756=_0xca00c5;if(_0x47a4fd['id']===_0x261d36[_0x477756(0x1276)]){const _0x3b1fcb=new FileReader();_0x3b1fcb[_0x477756(0xa0c)](_0x47a4fd[_0x477756(0x252e)][_0x477756(0x252e)]),_0x3b1fcb['onload']=function(_0x1af64d){const _0x3e45d1=_0x477756;_0x47a4fd[_0x3e45d1(0x20cc)]=_0x1af64d['target'][_0x3e45d1(0x61a)];},_0x47a4fd[_0x477756(0x1142)]=_0x477756(0x106c);}});}}const _0x4943d7=_0x3eb3ca;;_0x3922a7[_0x313a4d(0x11c2)]=[_0x313a4d(0x1862),_0x313a4d(0xd08),_0x313a4d(0x10e8),_0x313a4d(0x4d8),_0x313a4d(0x214b),_0x313a4d(0x2690),_0x313a4d(0x15b9),'api',_0x313a4d(0x1fe4),_0x313a4d(0xa87),_0x313a4d(0x189e),_0x313a4d(0x1366)];function _0x3922a7(_0x29c92a,_0x428e7c,_0x1c4c8f,_0x4cb30f,_0x2ccc9b,_0x383c65,_0x1e7dc7,_0x18b4ea,_0x1f25a3,_0x258441,_0x136bdf,_0x5d339a){const _0x1fb36c=_0x313a4d,_0x46fc25=this;_0x46fc25['currentUser']=_0x258441[_0x1fb36c(0xb12)](),_0x46fc25[_0x1fb36c(0x2690)]=_0x383c65,_0x46fc25['setting']=_0x1e7dc7,_0x46fc25['passwordPattern']=_0x46fc25[_0x1fb36c(0x15b9)][_0x1fb36c(0x976)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x46fc25[_0x1fb36c(0x1002)]=_0x428e7c[_0x1fb36c(0x2414)]()+_0x1fb36c(0xb0e)+_0x428e7c[_0x1fb36c(0x148e)](),_0x46fc25[_0x1fb36c(0x189e)]=_0x136bdf||_0x29c92a[_0x1fb36c(0x16a)][_0x1fb36c(0x189e)]||{},_0x46fc25['userProfileSection']=_0x5d339a&&_0x5d339a[_0x1fb36c(0x51c)]==0x1?_0x5d339a['rows'][0x0]:null,_0x46fc25['crudPermissions']=_0x258441[_0x1fb36c(0xe60)](_0x46fc25[_0x1fb36c(0x1366)]?_0x46fc25['userProfileSection'][_0x1fb36c(0x2514)]:null),_0x46fc25[_0x1fb36c(0x855)]={},_0x46fc25['selectedTab']=_0x29c92a[_0x1fb36c(0x16a)]['tab']||0x0,_0x46fc25[_0x1fb36c(0x1027)]=_0x2c7711,_0x46fc25['alert']=_0x1f25a3[_0x1fb36c(0x271e)],_0x46fc25[_0x1fb36c(0xe1b)]=_0x132eb8,_0x46fc25[_0x1fb36c(0x14af)]=_0x3811d5,_0x258441[_0x1fb36c(0x23e0)](_0x1fb36c(0x174b))?_0x18b4ea[_0x1fb36c(0xf03)]['get']({'fields':_0x1fb36c(0x7a7),'sort':_0x1fb36c(0x19eb)})[_0x1fb36c(0x2945)]['then'](function(_0x59ab36){const _0x144b67=_0x1fb36c;_0x46fc25[_0x144b67(0x1324)]=_0x59ab36[_0x144b67(0x19c7)]||[];})['catch'](function(_0x3cbd62){const _0x43013d=_0x1fb36c;_0x1f25a3['error']({'title':_0x3cbd62[_0x43013d(0x107b)]?'API:'+_0x3cbd62[_0x43013d(0x107b)]+_0x43013d(0x1315)+_0x3cbd62[_0x43013d(0x167f)]:'SYSTEM:GET_LISTS','msg':_0x3cbd62[_0x43013d(0x524)]?JSON['stringify'](_0x3cbd62[_0x43013d(0x524)]):_0x3cbd62[_0x43013d(0xd5f)]()});}):_0x18b4ea[_0x1fb36c(0xf03)]['get']({'fields':_0x1fb36c(0x7a7),'sort':'name'})[_0x1fb36c(0x2945)]['then'](function(_0x516adb){const _0x48b38f=_0x1fb36c;_0x46fc25[_0x48b38f(0x1324)]=_0x516adb['rows']||[];})[_0x1fb36c(0x146b)](function(){const _0x1ef344=_0x1fb36c;return _0x18b4ea[_0x1ef344(0x1366)][_0x1ef344(0x16b4)]({'userProfileId':_0x46fc25['currentUser']['userProfileId'],'sectionId':0x12d})['$promise'];})[_0x1fb36c(0x146b)](function(_0x95e8c5){const _0x28d74b=_0x1fb36c,_0x12c875=_0x95e8c5&&_0x95e8c5['rows']?_0x95e8c5[_0x28d74b(0x19c7)][0x0]:null;if(!_0x12c875){const _0x1bde29=[];let _0x4bc158=null;_0x46fc25[_0x28d74b(0x189e)]&&(_0x4bc158=_0x3f65c0()[_0x28d74b(0xc84)](_0x46fc25[_0x28d74b(0x1324)],{'id':Number(_0x46fc25[_0x28d74b(0x189e)][_0x28d74b(0xb7c)])}));for(let _0x42d357=0x0;_0x42d357<_0x46fc25['lists'][_0x28d74b(0x402)];_0x42d357++){_0x4bc158&&_0x46fc25[_0x28d74b(0x1324)][_0x42d357]['id']===_0x4bc158['id']&&(_0x46fc25[_0x28d74b(0x1324)][_0x42d357][_0x28d74b(0x8ff)]=![],_0x1bde29[_0x28d74b(0x1f47)](_0x46fc25[_0x28d74b(0x1324)][_0x42d357]));}_0x46fc25[_0x28d74b(0x1324)]=_0x1bde29;}else{if(!_0x12c875[_0x28d74b(0x11d2)])return _0x18b4ea[_0x28d74b(0xdcc)]['get']({'sectionId':_0x12c875['id']})[_0x28d74b(0x2945)][_0x28d74b(0x146b)](function(_0xa7c1d3){const _0x33cb79=_0x28d74b,_0x4cfe09=_0x3f65c0()['map'](_0xa7c1d3[_0x33cb79(0x19c7)],function(_0x109cc8){const _0x58d2fc=_0x33cb79;return _0x3f65c0()[_0x58d2fc(0xc84)](_0x46fc25[_0x58d2fc(0x1324)],{'id':_0x109cc8[_0x58d2fc(0x18b8)]});});let _0x5b6194=null;_0x46fc25[_0x33cb79(0x189e)]&&(_0x5b6194=_0x3f65c0()['find'](_0x46fc25[_0x33cb79(0x1324)],{'id':Number(_0x46fc25[_0x33cb79(0x189e)][_0x33cb79(0xb7c)])}));if(_0x5b6194&&!_0x3f65c0()[_0x33cb79(0x1360)](_0x4cfe09,['id',_0x5b6194['id']])){const _0x1fda1=_0x3f65c0()[_0x33cb79(0xc84)](_0x46fc25[_0x33cb79(0x1324)],{'id':_0x5b6194['id']});_0x1fda1[_0x33cb79(0x8ff)]=![],_0x4cfe09[_0x33cb79(0x1f47)](_0x1fda1);}_0x46fc25[_0x33cb79(0x1324)]=_0x4cfe09;});}})[_0x1fb36c(0x129e)](function(_0x784d7c){const _0xb179ce=_0x1fb36c;_0x1f25a3['error']({'title':_0x784d7c[_0xb179ce(0x107b)]?_0xb179ce(0x262a)+_0x784d7c['status']+_0xb179ce(0x1315)+_0x784d7c['statusText']:_0xb179ce(0x1a2f),'msg':_0x784d7c['data']?JSON[_0xb179ce(0x10bb)](_0x784d7c[_0xb179ce(0x524)]):_0x784d7c['toString']()});}),_0x258441[_0x1fb36c(0x23e0)](_0x1fb36c(0x174b))?_0x18b4ea[_0x1fb36c(0x2765)][_0x1fb36c(0x16b4)]({'fields':_0x1fb36c(0x7a7),'sort':_0x1fb36c(0x19eb),'IntervalId':_0x1fb36c(0x203c)})[_0x1fb36c(0x2945)][_0x1fb36c(0x146b)](function(_0x14cf5e){const _0x2244e1=_0x1fb36c;_0x46fc25[_0x2244e1(0x2765)]=_0x14cf5e['rows']||[];})[_0x1fb36c(0x129e)](function(_0x408507){const _0x4de3bb=_0x1fb36c;_0x1f25a3[_0x4de3bb(0x1980)]({'title':_0x408507['status']?'API:'+_0x408507[_0x4de3bb(0x107b)]+_0x4de3bb(0x1315)+_0x408507[_0x4de3bb(0x167f)]:_0x4de3bb(0x12c5),'msg':_0x408507[_0x4de3bb(0x524)]?JSON[_0x4de3bb(0x10bb)](_0x408507[_0x4de3bb(0x524)]):_0x408507['toString']()});}):_0x18b4ea[_0x1fb36c(0x2765)]['get']({'fields':'id,name','sort':_0x1fb36c(0x19eb),'IntervalId':'null'})[_0x1fb36c(0x2945)]['then'](function(_0x5a2abc){const _0x4742c1=_0x1fb36c;_0x46fc25[_0x4742c1(0x2765)]=_0x5a2abc[_0x4742c1(0x19c7)]||[];})[_0x1fb36c(0x146b)](function(){const _0x3eaccf=_0x1fb36c;return _0x18b4ea[_0x3eaccf(0x1366)][_0x3eaccf(0x16b4)]({'userProfileId':_0x46fc25['currentUser'][_0x3eaccf(0x209a)],'sectionId':0x3ec})['$promise'];})[_0x1fb36c(0x146b)](function(_0x25a5d2){const _0x275032=_0x1fb36c,_0x433317=_0x25a5d2&&_0x25a5d2[_0x275032(0x19c7)]?_0x25a5d2[_0x275032(0x19c7)][0x0]:null;if(!_0x433317){const _0x51cf99=[];let _0x51f5fa=null;_0x46fc25[_0x275032(0x189e)]&&(_0x51f5fa=_0x3f65c0()[_0x275032(0xc84)](_0x46fc25[_0x275032(0x2765)],{'id':Number(_0x46fc25[_0x275032(0x189e)][_0x275032(0x1ff2)])}));for(let _0x451df0=0x0;_0x451df0<_0x46fc25[_0x275032(0x2765)][_0x275032(0x402)];_0x451df0++){_0x51f5fa&&_0x46fc25[_0x275032(0x2765)][_0x451df0]['id']===_0x51f5fa['id']&&(_0x46fc25[_0x275032(0x2765)][_0x451df0][_0x275032(0x8ff)]=![],_0x51cf99[_0x275032(0x1f47)](_0x46fc25[_0x275032(0x2765)][_0x451df0]));}_0x46fc25[_0x275032(0x2765)]=_0x51cf99;}else{if(!_0x433317[_0x275032(0x11d2)])return _0x18b4ea['userProfileResource'][_0x275032(0x16b4)]({'sectionId':_0x433317['id']})['$promise']['then'](function(_0x36924a){const _0x58f2a4=_0x275032,_0x2c1d83=_0x3f65c0()[_0x58f2a4(0x205)](_0x36924a[_0x58f2a4(0x19c7)],function(_0x39d732){const _0x59ffd5=_0x58f2a4;return _0x3f65c0()['find'](_0x46fc25[_0x59ffd5(0x2765)],{'id':_0x39d732[_0x59ffd5(0x18b8)]});});let _0x267528=null;_0x46fc25[_0x58f2a4(0x189e)]&&(_0x267528=_0x3f65c0()['find'](_0x46fc25['interval'],{'id':Number(_0x46fc25[_0x58f2a4(0x189e)][_0x58f2a4(0x1ff2)])}));if(_0x267528&&!_0x3f65c0()[_0x58f2a4(0x1360)](_0x2c1d83,['id',_0x267528['id']])){const _0x5e5ca7=_0x3f65c0()[_0x58f2a4(0xc84)](_0x46fc25[_0x58f2a4(0x2765)],{'id':_0x267528['id']});_0x5e5ca7[_0x58f2a4(0x8ff)]=![],_0x2c1d83[_0x58f2a4(0x1f47)](_0x5e5ca7);}_0x46fc25[_0x58f2a4(0x2765)]=_0x2c1d83;});}})[_0x1fb36c(0x129e)](function(_0x661122){const _0x15c646=_0x1fb36c;_0x1f25a3[_0x15c646(0x1980)]({'title':_0x661122['status']?_0x15c646(0x262a)+_0x661122[_0x15c646(0x107b)]+_0x15c646(0x1315)+_0x661122[_0x15c646(0x167f)]:_0x15c646(0x8b6),'msg':_0x661122[_0x15c646(0x524)]?JSON['stringify'](_0x661122[_0x15c646(0x524)]):_0x661122[_0x15c646(0xd5f)]()});}),_0x258441[_0x1fb36c(0x23e0)](_0x1fb36c(0x174b))?_0x18b4ea[_0x1fb36c(0x1e3e)][_0x1fb36c(0x16b4)]({'fields':_0x1fb36c(0x69a),'sort':_0x1fb36c(0x19eb),'nolimit':_0x1fb36c(0x1185)})['$promise']['then'](function(_0x13da20){const _0x8cb230=_0x1fb36c;_0x46fc25[_0x8cb230(0x23bb)]=_0x13da20[_0x8cb230(0x19c7)]||[];})['catch'](function(_0x34d190){const _0x5c36ea=_0x1fb36c;_0x1f25a3[_0x5c36ea(0x1980)]({'title':_0x34d190[_0x5c36ea(0x107b)]?_0x5c36ea(0x262a)+_0x34d190[_0x5c36ea(0x107b)]+_0x5c36ea(0x1315)+_0x34d190[_0x5c36ea(0x167f)]:'SYSTEM:GET_PAUSES','msg':_0x34d190[_0x5c36ea(0x524)]?JSON['stringify'](_0x34d190[_0x5c36ea(0x524)]):_0x34d190[_0x5c36ea(0xd5f)]()});}):_0x18b4ea[_0x1fb36c(0x1e3e)][_0x1fb36c(0x16b4)]({'fields':_0x1fb36c(0x69a),'sort':'name','nolimit':'true'})[_0x1fb36c(0x2945)]['then'](function(_0x22593c){const _0xa1ee4e=_0x1fb36c;_0x46fc25[_0xa1ee4e(0x23bb)]=_0x22593c[_0xa1ee4e(0x19c7)]||[];})[_0x1fb36c(0x146b)](function(){const _0x43dccd=_0x1fb36c;return _0x18b4ea[_0x43dccd(0x1366)][_0x43dccd(0x16b4)]({'userProfileId':_0x46fc25[_0x43dccd(0x2321)][_0x43dccd(0x209a)],'sectionId':0x3ed})[_0x43dccd(0x2945)];})['then'](function(_0x5689c1){const _0x57930c=_0x1fb36c,_0x519df6=_0x5689c1&&_0x5689c1[_0x57930c(0x19c7)]?_0x5689c1['rows'][0x0]:null;if(!_0x519df6)_0x46fc25[_0x57930c(0x23bb)]=[];else{if(!_0x519df6[_0x57930c(0x11d2)])return _0x18b4ea[_0x57930c(0xdcc)]['get']({'sectionId':_0x519df6['id']})[_0x57930c(0x2945)][_0x57930c(0x146b)](function(_0x2524b2){const _0x3d9214=_0x57930c,_0x53269b=_0x3f65c0()['map'](_0x2524b2[_0x3d9214(0x19c7)],function(_0x29a1f1){const _0x24a39c=_0x3d9214;return _0x3f65c0()[_0x24a39c(0xc84)](_0x46fc25[_0x24a39c(0x23bb)],{'id':_0x29a1f1[_0x24a39c(0x18b8)]});});_0x46fc25[_0x3d9214(0x23bb)][_0x3d9214(0x1df5)](function(_0x8038c2){const _0x3ec3d1=_0x3d9214;!_0x3f65c0()[_0x3ec3d1(0x1360)](_0x53269b,['id',_0x8038c2['id']])&&(_0x8038c2['canSelect']=![]),_0x53269b[_0x3ec3d1(0x1f47)](_0x8038c2);}),_0x46fc25[_0x3d9214(0x23bb)]=_0x53269b;});}})['catch'](function(_0x1fceb7){const _0x11b84f=_0x1fb36c;_0x1f25a3[_0x11b84f(0x1980)]({'title':_0x1fceb7[_0x11b84f(0x107b)]?'API:'+_0x1fceb7[_0x11b84f(0x107b)]+'\x20-\x20'+_0x1fceb7['statusText']:_0x11b84f(0x176),'msg':_0x1fceb7['data']?JSON[_0x11b84f(0x10bb)](_0x1fceb7[_0x11b84f(0x524)]):_0x1fceb7['toString']()});});function _0x2c7711(_0x3434c0,_0x4d02ed){const _0x3aa27b=_0x1fb36c;_0x1c4c8f[_0x3aa27b(0x2615)]({'controller':_0x3aa27b(0x6ec),'controllerAs':'vm','templateUrl':_0x15502c,'parent':angular[_0x3aa27b(0x1853)](_0x4cb30f['body']),'targetEvent':_0x4d02ed,'clickOutsideToClose':!![],'locals':{'chatWebsite':_0x3434c0,'chatWebsites':_0x46fc25[_0x3aa27b(0x2710)]?_0x46fc25['chatWebsites']['rows']:[],'crudPermissions':_0x46fc25[_0x3aa27b(0x2514)],'realtime':![]}});}function _0x132eb8(){const _0x5a3b86=_0x1fb36c;_0x29c92a['go'](_0x5a3b86(0x21f),{},{'reload':_0x5a3b86(0x21f)});}function _0x3811d5(){const _0x2ff948=_0x1fb36c;_0x18b4ea[_0x2ff948(0x189e)]['update']({'id':_0x46fc25[_0x2ff948(0x189e)]['id']},_0x46fc25[_0x2ff948(0x189e)])[_0x2ff948(0x2945)][_0x2ff948(0x146b)](function(){const _0x4897d7=_0x2ff948;_0x1f25a3[_0x4897d7(0x1c75)]({'title':_0x4897d7(0x1462),'msg':_0x46fc25[_0x4897d7(0x189e)][_0x4897d7(0x19eb)]?_0x46fc25[_0x4897d7(0x189e)]['name']+_0x4897d7(0x6b0):''});})[_0x2ff948(0x129e)](function(_0x454916){const _0x462f98=_0x2ff948;_0x1f25a3[_0x462f98(0x1980)]({'title':_0x454916[_0x462f98(0x107b)]?_0x462f98(0x262a)+_0x454916[_0x462f98(0x107b)]+_0x462f98(0x1315)+_0x454916[_0x462f98(0x167f)]:_0x462f98(0xfb3),'msg':_0x454916[_0x462f98(0x524)]?JSON[_0x462f98(0x10bb)](_0x454916[_0x462f98(0x524)]):_0x454916[_0x462f98(0xd5f)]()});});}}const _0x29c58d=_0x3922a7;;_0xcac9cf['$inject']=[_0x313a4d(0x921),'$translatePartialLoaderProvider'];function _0xcac9cf(_0x4e1428,_0x21dcc2){const _0xbf442f=_0x313a4d;_0x4e1428['state']('app.chat',{'abstract':!![],'url':_0xbf442f(0xfbe)})['state']('app.chat.chatQueues',{'url':_0xbf442f(0xdda),'views':{'content@app':{'templateUrl':_0x31d977,'controller':_0xbf442f(0x6ff)}},'resolve':{'chatQueues':[_0xbf442f(0x362),_0xbf442f(0xa87),function(_0x261136,_0x5634f0){const _0x38eb06=_0xbf442f;return _0x5634f0['hasRole'](_0x38eb06(0x174b))?_0x261136[_0x38eb06(0x2922)](_0x38eb06(0x1b30),{'fields':_0x38eb06(0xa22),'sort':_0x38eb06(0x12f2),'channel':_0x38eb06(0xa7f),'limit':0xa,'offset':0x0}):_0x261136[_0x38eb06(0x2922)](_0x38eb06(0x938),{'id':_0x5634f0[_0x38eb06(0xb12)]()[_0x38eb06(0x209a)],'section':'ChatQueues','fields':'createdAt,updatedAt,id,name,strategy,timeout,description','sort':'-updatedAt','channel':_0x38eb06(0xa7f),'limit':0xa,'offset':0x0});}],'userProfile':[_0xbf442f(0x362),'Auth',function(_0x302bab,_0xc24a01){const _0x264e80=_0xbf442f;return _0xc24a01[_0x264e80(0x23e0)](_0x264e80(0x174b))?null:_0x302bab[_0x264e80(0x2922)]('userProfile@get',{'fields':_0x264e80(0x227),'id':_0xc24a01[_0x264e80(0xb12)]()[_0x264e80(0x209a)]});}],'userProfileSection':[_0xbf442f(0x362),'Auth',function(_0x2212da,_0x503e47){const _0x983456=_0xbf442f;return _0x503e47[_0x983456(0x23e0)](_0x983456(0x174b))?null:_0x2212da[_0x983456(0x2922)](_0x983456(0x27be),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x503e47['getCurrentUser']()[_0x983456(0x209a)],'sectionId':0x1f5});}]},'authenticate':!![],'permissionId':0x1f5,'bodyClass':_0xbf442f(0xa7f)})[_0xbf442f(0x13d6)](_0xbf442f(0x1a5f),{'url':'/:id?tab','params':{'chatQueue':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x1185d3,'controller':_0xbf442f(0x1f44)}},'resolve':{'chatQueue':[_0xbf442f(0x362),_0xbf442f(0x28c8),function(_0x59db69,_0x182c1c){const _0x2ac0a6=_0xbf442f;return _0x59db69[_0x2ac0a6(0x2922)]('chatQueue@get',{'fields':'createdAt,updatedAt,id,name,strategy,timeout,description','id':_0x182c1c['id']});}],'userProfileSection':['apiResolver',_0xbf442f(0xa87),function(_0x3acf74,_0x237e05){const _0x3d89f1=_0xbf442f;return _0x3acf74[_0x3d89f1(0x2922)](_0x3d89f1(0x27be),{'fields':_0x3d89f1(0x1e64),'userProfileId':_0x237e05[_0x3d89f1(0xb12)]()[_0x3d89f1(0x209a)],'sectionId':0x1f5});}]},'authenticate':!![],'permissionId':0x1f5,'bodyClass':_0xbf442f(0xa7f)})[_0xbf442f(0x13d6)](_0xbf442f(0x21f),{'url':_0xbf442f(0x16fd),'views':{'content@app':{'templateUrl':_0x28faca,'controller':_0xbf442f(0x1f96)}},'resolve':{'chatWebsites':[_0xbf442f(0x362),_0xbf442f(0xa87),function(_0x4d07b6,_0x4430e0){const _0x3a7958=_0xbf442f;return _0x4430e0[_0x3a7958(0x23e0)](_0x3a7958(0x174b))?_0x4d07b6['resolve'](_0x3a7958(0x176b),{'fields':_0x3a7958(0x1c12),'sort':_0x3a7958(0x12f2),'limit':0xa,'offset':0x0}):_0x4d07b6[_0x3a7958(0x2922)](_0x3a7958(0x938),{'id':_0x4430e0[_0x3a7958(0xb12)]()['userProfileId'],'section':'ChatWebsites','fields':_0x3a7958(0x1c12),'sort':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0xbf442f(0xa87),function(_0x348564,_0x5c1482){const _0x17ee9a=_0xbf442f;return _0x5c1482[_0x17ee9a(0x23e0)](_0x17ee9a(0x174b))?null:_0x348564['resolve']('userProfile@get',{'fields':_0x17ee9a(0x227),'id':_0x5c1482[_0x17ee9a(0xb12)]()[_0x17ee9a(0x209a)]});}],'userProfileSection':['apiResolver',_0xbf442f(0xa87),function(_0x291a09,_0x208161){const _0x4d14d5=_0xbf442f;return _0x208161[_0x4d14d5(0x23e0)]('admin')?null:_0x291a09[_0x4d14d5(0x2922)](_0x4d14d5(0x27be),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x208161[_0x4d14d5(0xb12)]()[_0x4d14d5(0x209a)],'sectionId':0x1f6});}]},'authenticate':!![],'permissionId':0x1f6,'bodyClass':_0xbf442f(0xa7f)})[_0xbf442f(0x13d6)](_0xbf442f(0x6f1),{'url':_0xbf442f(0x2028),'params':{'chatWebsite':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x121d2f,'controller':_0xbf442f(0x266f)}},'resolve':{'chatWebsite':[_0xbf442f(0x362),_0xbf442f(0x28c8),function(_0x57ab18,_0x4e847a){const _0x2db932=_0xbf442f;return _0x57ab18[_0x2db932(0x2922)](_0x2db932(0x176b),{'fields':_0x2db932(0x1c12),'id':_0x4e847a['id']});}],'userProfileSection':[_0xbf442f(0x362),_0xbf442f(0xa87),function(_0x57544a,_0x37b2d3){const _0x11db3c=_0xbf442f;return _0x57544a[_0x11db3c(0x2922)](_0x11db3c(0x27be),{'fields':_0x11db3c(0x1e64),'userProfileId':_0x37b2d3['getCurrentUser']()[_0x11db3c(0x209a)],'sectionId':0x1f6});}]},'authenticate':!![],'permissionId':0x1f6,'bodyClass':_0xbf442f(0xa7f)}),_0x21dcc2[_0xbf442f(0x15bf)](_0xbf442f(0x3fa));}angular[_0x313a4d(0x2528)](_0x313a4d(0x1f22),['ngCsv',_0x313a4d(0x962),_0x313a4d(0x23c7),_0x313a4d(0x963),_0x313a4d(0x19e2),'ckeditor','ng-sortable',_0x313a4d(0x15ef),'ngAnimate',_0x313a4d(0x1f5f),_0x313a4d(0x28a8),_0x313a4d(0xfb2),_0x313a4d(0x1e57),'ngclipboard',_0x313a4d(0x1bd2),_0x313a4d(0x1792),_0x313a4d(0x1b65),'material.components.expansionPanels',_0x313a4d(0x2713),_0x313a4d(0x11df),'app.chat.realtime'])['config'](_0xcac9cf)[_0x313a4d(0x28f0)](_0x313a4d(0x2410),_0x2f45e5)[_0x313a4d(0x28f0)]('CreateOrEditChatQueueDialogController',_0x2c1b81)[_0x313a4d(0x28f0)](_0x313a4d(0xc47),_0x1f34f3)['controller'](_0x313a4d(0xaae),_0x4730d1)[_0x313a4d(0x28f0)](_0x313a4d(0x1269),_0x704b4f)['controller'](_0x313a4d(0x11fc),_0x1ca336)[_0x313a4d(0x28f0)](_0x313a4d(0x160e),_0x3e3ab4)[_0x313a4d(0x28f0)](_0x313a4d(0xbb9),_0x21f5a2)[_0x313a4d(0x28f0)](_0x313a4d(0x6ec),_0x125bc9)['controller'](_0x313a4d(0x1677),_0x4303c2)[_0x313a4d(0x28f0)](_0x313a4d(0x164f),_0x102235)[_0x313a4d(0x28f0)]('EditChatWebsiteAppamazonlexDialogController',_0xdf96c3)['controller'](_0x313a4d(0x74c),_0xdf96c3)['controller']('EditChatWebsiteAppautoreplyDialogController',_0x108937)[_0x313a4d(0x28f0)]('EditChatWebsiteAppcloseDialogController',_0x414932)[_0x313a4d(0x28f0)](_0x313a4d(0x1c91),_0x1d362b)[_0x313a4d(0x28f0)](_0x313a4d(0x19bb),_0x31d454)[_0x313a4d(0x28f0)]('EditChatWebsiteAppgotopDialogController',_0x33c1a5)[_0x313a4d(0x28f0)](_0x313a4d(0x4d0),_0x5a7e15)[_0x313a4d(0x28f0)]('EditChatWebsiteAppnoopDialogController',_0x26e4ca)[_0x313a4d(0x28f0)]('EditChatWebsiteAppqueueDialogController',_0x35648b)[_0x313a4d(0x28f0)]('EditChatWebsiteAppsystemDialogController',_0x1331e6)[_0x313a4d(0x28f0)](_0x313a4d(0x1598),_0x34c4be)[_0x313a4d(0x28f0)](_0x313a4d(0x137c),_0x43057f)['controller']('CreateOrEditChatCannedAnswerDialogController',_0x2ace20)['controller'](_0x313a4d(0x1d63),_0x2af6ba)[_0x313a4d(0x28f0)](_0x313a4d(0x1ce4),_0x222367)['controller'](_0x313a4d(0x23f4),_0x3e63b4)[_0x313a4d(0x28f0)](_0x313a4d(0x2942),_0x3db1c1)[_0x313a4d(0x28f0)]('ChatWebsiteInteractionsController',_0x9b4402)[_0x313a4d(0x28f0)](_0x313a4d(0x1056),_0x4c5187)[_0x313a4d(0x28f0)](_0x313a4d(0x1785),_0x3ef50c)[_0x313a4d(0x28f0)](_0x313a4d(0x7c2),_0x222102)[_0x313a4d(0x28f0)](_0x313a4d(0x17f9),_0x47a9ea)[_0x313a4d(0x28f0)](_0x313a4d(0x1791),_0xfb11b8)['controller'](_0x313a4d(0x1049),_0x4b269f)['controller'](_0x313a4d(0x1da2),_0x4943d7)[_0x313a4d(0x28f0)](_0x313a4d(0xc12),_0x29c58d);;const _0x3f82bd=_0x4acfac['p']+_0x313a4d(0x21c7);;const _0x1e0eb0=_0x4acfac['p']+'src/js/modules/main/apps/mail/views/realtime/agents/view.html/view.html';;const _0x26c266=_0x4acfac['p']+'src/js/modules/main/apps/mail/views/realtime/queues/view.html/view.html';;const _0x1be58e=_0x4acfac['p']+_0x313a4d(0xbcd);;_0x148cd7[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),'$q',_0x313a4d(0x1abe),_0x313a4d(0x10e8),'$document',_0x313a4d(0x1ee0),_0x313a4d(0x23bb),_0x313a4d(0x23c0),_0x313a4d(0x2445),_0x313a4d(0x247f),'socket',_0x313a4d(0x1fe4),'helperClasses','userProfile',_0x313a4d(0x1366),_0x313a4d(0xa87),_0x313a4d(0x2690),'$interval'];function _0x148cd7(_0x3738aa,_0x40ea9f,_0x3dc822,_0x2e185a,_0x41a93f,_0x179aff,_0x1fd4be,_0x3a83cf,_0x184ea0,_0x95590,_0x100520,_0x6d4cb2,_0x5a61d6,_0x1a10c7,_0x337532,_0x5c6b2b,_0x275dc0,_0x2d8362){const _0x268c5b=_0x313a4d,_0xe710b3=this,_0x52b5b5=[_0x268c5b(0x1fce),'online',_0x268c5b(0x1d01),_0x268c5b(0x192a),_0x268c5b(0x1125),_0x268c5b(0x192a),_0x268c5b(0x113f),_0x268c5b(0x2bb),_0x268c5b(0x5f7),'openchannelPause',_0x268c5b(0x1e9e),_0x268c5b(0x17c),'whatsappPause','faxPause',_0x268c5b(0x211c),_0x268c5b(0x6e4),_0x268c5b(0x15fd),'mailCapacity','smsCapacity',_0x268c5b(0x237c),_0x268c5b(0x1cf6),_0x268c5b(0xaac),_0x268c5b(0x247),'mailCurrentCapacity','smsCurrentCapacity',_0x268c5b(0xfc1),_0x268c5b(0x1815),'chatStatus','openchannelStatus','mailStatus','smsStatus','whatsappStatus',_0x268c5b(0x15ea),_0x268c5b(0x685),_0x268c5b(0x1a22),'openchannelStatusTime',_0x268c5b(0x10cd),_0x268c5b(0x1f5c),'whatsappStatusTime','faxStatusTime',_0x268c5b(0x1dda),'queue','destconnectedlinenum',_0x268c5b(0x1ca2),_0x268c5b(0x4e3),'phoneBarEnableAutomaticScreenRecording'],_0x5e4a59=['chatPause',_0x268c5b(0xcc5),'mailPause','smsPause','whatsappPause',_0x268c5b(0x25c4),_0x268c5b(0x211c),'online'];_0xe710b3[_0x268c5b(0x2321)]=_0x5c6b2b[_0x268c5b(0xb12)](),_0xe710b3[_0x268c5b(0xe3e)]=[_0x268c5b(0xad4),_0x268c5b(0xfe4),'busy',_0x268c5b(0x776),_0x268c5b(0x254d)],_0xe710b3['pauses']=_0x1fd4be||{'count':0x0,'rows':[]},_0xe710b3[_0x268c5b(0x2690)]=_0x275dc0,_0xe710b3[_0x268c5b(0x26b6)]=_0x1a10c7,_0xe710b3[_0x268c5b(0x1366)]=_0x337532&&_0x337532[_0x268c5b(0x51c)]==0x1?_0x337532['rows'][0x0]:null,_0xe710b3[_0x268c5b(0x2514)]=_0x5c6b2b[_0x268c5b(0xe60)](_0xe710b3[_0x268c5b(0x1366)]?_0xe710b3['userProfileSection'][_0x268c5b(0x2514)]:null),_0xe710b3['agents']=_0x3a83cf?_0x3f65c0()['keyBy'](_0x3a83cf[_0x268c5b(0x19c7)]?_0x3a83cf['rows']:[],'id'):{},_0xe710b3[_0x268c5b(0x2445)]=_0x184ea0?_0x3f65c0()[_0x268c5b(0x194)](_0x184ea0['rows']?_0x184ea0[_0x268c5b(0x19c7)]:[],'id'):{},_0xe710b3['paginatedAgents']={},_0xe710b3[_0x268c5b(0x2412)]=![],_0xe710b3[_0x268c5b(0x206e)]=[],_0xe710b3[_0x268c5b(0x626)]={};for(const _0x95ac4f in _0xe710b3['agents']){typeof _0xe710b3[_0x268c5b(0x23c0)][_0x95ac4f]!==_0x268c5b(0x2274)&&(_0xe710b3[_0x268c5b(0x23c0)][_0x95ac4f]['init']=!![]);}_0xe710b3['query']={'limit':0xa,'page':0x1,'order':_0x268c5b(0x286a),'globalStatusFilter':'','pauseTypeFilter':''},_0xe710b3[_0x268c5b(0x2044)]=_0xb17af8,_0xe710b3[_0x268c5b(0x2677)]=_0x17a4c9,_0xe710b3[_0x268c5b(0x1e3e)]=_0x30507a,_0xe710b3['unPause']=_0x5b09e9,_0xe710b3[_0x268c5b(0x232c)]=_0x56bd18,_0xe710b3['getAgentStatus']=_0x4b19b1,_0xe710b3[_0x268c5b(0x1775)]=_0x1e5b4d,_0xe710b3[_0x268c5b(0x2075)]=_0x28c21b,_0xe710b3[_0x268c5b(0x169)]=_0x43eaff,_0xe710b3[_0x268c5b(0x1d53)]=_0x23f09e,_0xe710b3[_0x268c5b(0x1db0)]=_0x46a636,_0xe710b3[_0x268c5b(0x1a76)]=_0x50f8d,_0xe710b3[_0x268c5b(0x3d4)]=_0x4c874b,_0xe710b3[_0x268c5b(0x201a)]=_0x5b41eb,_0xe710b3[_0x268c5b(0x483)]=_0x12a886,_0xe710b3[_0x268c5b(0x1b80)]=_0x4405ac,_0x100520['on'](_0x268c5b(0x17de),_0xe710b3[_0x268c5b(0x1db0)]),_0x100520['on'](_0x268c5b(0x324),_0xe710b3[_0x268c5b(0x1a76)]),_0x100520['on'](_0x268c5b(0x118c),_0xe710b3[_0x268c5b(0x201a)]),_0x100520['on'](_0x268c5b(0x198f),_0xe710b3[_0x268c5b(0x483)]),_0x4c874b();let _0x40e53d=_0x2d8362(function(){const _0x198418=_0x268c5b;_0xe710b3['load']&&(_0xe710b3[_0x198418(0x2412)]=![],_0x4c874b());},0x3e7);function _0x4c874b(){const _0x51e9d3=_0x268c5b;_0xe710b3['load']=![];const _0x400a30=_0x40ea9f[_0x51e9d3(0xce3)]();_0xe710b3[_0x51e9d3(0xb9c)]=_0x400a30[_0x51e9d3(0xb9c)],_0xe710b3[_0x51e9d3(0x202e)]=[],_0xe710b3[_0x51e9d3(0x206e)]=[],_0x3f65c0()[_0x51e9d3(0x1a04)](_0xe710b3['agents'],function(_0x3739ce,_0x20241a){const _0x10eb7a=_0x51e9d3;_0xe710b3[_0x10eb7a(0x2445)][_0x20241a]&&_0x3f65c0()['merge'](_0x3739ce,_0x3f65c0()[_0x10eb7a(0x40e)](_0x3f65c0()['omit'](_0xe710b3[_0x10eb7a(0x2445)][_0x20241a],_0x5e4a59),_0x52b5b5)),_0x1e5b4d(_0x3739ce),_0x3739ce[_0x10eb7a(0x538)]?(_0xe710b3['filteredAgents']['push'](_0x3739ce),_0xe710b3[_0x10eb7a(0x626)][_0x3739ce[_0x10eb7a(0x113f)]]=_0x20241a):_0x3739ce[_0x10eb7a(0xed1)]=_0x3f65c0()[_0x10eb7a(0x123)](_0x2deec6()()[_0x10eb7a(0x22b0)]('x'));});_0xe710b3['query']['globalStatusFilter']&&_0x3f65c0()[_0x51e9d3(0x2640)](_0xe710b3[_0x51e9d3(0x202e)],function(_0xf71a7d){const _0x27bed1=_0x51e9d3;return _0xf71a7d[_0x27bed1(0x72b)]!==_0xe710b3[_0x27bed1(0x1a56)][_0x27bed1(0x1500)];});_0xe710b3[_0x51e9d3(0x1a56)][_0x51e9d3(0x301)]&&_0x3f65c0()[_0x51e9d3(0x2640)](_0xe710b3[_0x51e9d3(0x202e)],function(_0x5b158d){const _0x5503de=_0x51e9d3;return _0x5b158d[_0x5503de(0x1125)]!==_0xe710b3[_0x5503de(0x1a56)][_0x5503de(0x301)];});_0xe710b3[_0x51e9d3(0x1a56)]['filter']&&_0x3f65c0()['remove'](_0xe710b3[_0x51e9d3(0x202e)],function(_0x237278){const _0x309085=_0x51e9d3;return _0x237278[_0x309085(0x286a)]['toLowerCase']()[_0x309085(0x172b)](_0xe710b3[_0x309085(0x1a56)][_0x309085(0x1dd6)]['toLowerCase']())<0x0;});_0xe710b3[_0x51e9d3(0x202e)]=_0x1eab24(_0xe710b3['filteredAgents']);const _0x4108b7=(_0xe710b3[_0x51e9d3(0x1a56)]['page']-0x1)*_0xe710b3['query'][_0x51e9d3(0x221e)];_0xe710b3[_0x51e9d3(0x285)]=_0x3f65c0()[_0x51e9d3(0x854)](_0xe710b3['filteredAgents'],_0x4108b7)[_0x51e9d3(0x1298)](0x0,_0xe710b3[_0x51e9d3(0x1a56)][_0x51e9d3(0x221e)]);for(let _0x109afd=0x0;_0x109afd<_0xe710b3[_0x51e9d3(0x285)]['length'];_0x109afd+=0x1){_0xe710b3['order'][_0x51e9d3(0x1f47)](_0xe710b3[_0x51e9d3(0x285)][_0x109afd]['id']);}_0x400a30['resolve'](),_0xe710b3[_0x51e9d3(0x2412)]=!![];}function _0x46a636(_0x328e4e){const _0x13f32a=_0x268c5b;_0xe710b3[_0x13f32a(0x23c0)][_0x328e4e['id']]&&(_0x3f65c0()[_0x13f32a(0x168d)](_0xe710b3[_0x13f32a(0x23c0)][_0x328e4e['id']],_0x3f65c0()[_0x13f32a(0x40e)](_0x3f65c0()[_0x13f32a(0x2432)](_0x328e4e,_0x5e4a59),_0x52b5b5)),_0x3f65c0()[_0x13f32a(0x168d)](_0xe710b3[_0x13f32a(0x2445)][_0x328e4e['id']],_0x3f65c0()[_0x13f32a(0x40e)](_0x3f65c0()[_0x13f32a(0x2432)](_0x328e4e,_0x5e4a59),_0x52b5b5)),_0x1e5b4d(_0xe710b3[_0x13f32a(0x23c0)][_0x328e4e['id']]));}function _0x50f8d(_0x1a11f3){const _0x4f54ba=_0x268c5b;_0xe710b3[_0x4f54ba(0x23c0)][_0x1a11f3['id']]&&(_0x3f65c0()[_0x4f54ba(0x168d)](_0xe710b3['agents'][_0x1a11f3['id']],_0x3f65c0()[_0x4f54ba(0x40e)](_0x1a11f3,_0x52b5b5)),_0x3f65c0()[_0x4f54ba(0x168d)](_0xe710b3[_0x4f54ba(0x2445)][_0x1a11f3['id']],_0x3f65c0()['pick'](_0x1a11f3,_0x52b5b5)),_0x1a11f3[_0x4f54ba(0x192a)]&&(_0xe710b3[_0x4f54ba(0x23c0)][_0x1a11f3['id']][_0x4f54ba(0xed1)]=_0x1a11f3['lastPauseAt'],_0xe710b3[_0x4f54ba(0x2445)][_0x1a11f3['id']]['globalStatusTime']=_0x1a11f3[_0x4f54ba(0x192a)]),_0x1e5b4d(_0xe710b3[_0x4f54ba(0x23c0)][_0x1a11f3['id']]));}function _0x5b41eb(_0x529147){const _0x4223cc=_0x268c5b;_0xe710b3[_0x4223cc(0x23c0)][_0xe710b3[_0x4223cc(0x626)][_0x529147[_0x4223cc(0x1fb9)]]]&&(_0x3f65c0()[_0x4223cc(0x168d)](_0xe710b3['agents'][_0xe710b3[_0x4223cc(0x626)][_0x529147[_0x4223cc(0x1fb9)]]],_0x3f65c0()['pick'](_0x529147,[_0x4223cc(0x1c72),_0x4223cc(0x1e8d)])),_0x3f65c0()[_0x4223cc(0x168d)](_0xe710b3[_0x4223cc(0x2445)][_0xe710b3[_0x4223cc(0x626)][_0x529147[_0x4223cc(0x1fb9)]]],_0x3f65c0()[_0x4223cc(0x40e)](_0x529147,[_0x4223cc(0x1c72),_0x4223cc(0x1e8d)])));}function _0x12a886(_0x155470){const _0x316357=_0x268c5b;_0xe710b3['agents'][_0xe710b3[_0x316357(0x626)][_0x155470[_0x316357(0x1fb9)]]]&&(_0xe710b3[_0x316357(0x23c0)][_0xe710b3['agentInternal'][_0x155470[_0x316357(0x1fb9)]]]=_0x3f65c0()[_0x316357(0x2432)](_0xe710b3[_0x316357(0x23c0)][_0xe710b3[_0x316357(0x626)][_0x155470[_0x316357(0x1fb9)]]],['queue',_0x316357(0x1e8d)]),_0xe710b3[_0x316357(0x2445)][_0xe710b3[_0x316357(0x626)][_0x155470[_0x316357(0x1fb9)]]]=_0x3f65c0()[_0x316357(0x2432)](_0xe710b3[_0x316357(0x2445)][_0xe710b3[_0x316357(0x626)][_0x155470[_0x316357(0x1fb9)]]],['queue',_0x316357(0x1e8d)]));}function _0xb17af8(_0x5626e1){const _0x33f356=_0x268c5b;return _0x95590['user']['logout']({'id':_0x5626e1['id'],'device':_0x33f356(0xfc4),'agent_id':_0x5626e1['id'],'agent_name':_0x5626e1[_0x33f356(0x19eb)]})[_0x33f356(0x2945)][_0x33f356(0x146b)](function(){const _0x535cbb=_0x33f356;_0x6d4cb2['success']({'title':_0x535cbb(0x1c70),'msg':_0x5626e1[_0x535cbb(0x286a)]+_0x535cbb(0x166c)}),_0xe710b3[_0x535cbb(0x23c0)][_0x5626e1['id']]&&(_0xe710b3['agents'][_0x5626e1['id']][_0x535cbb(0x538)]=![]),_0xe710b3[_0x535cbb(0x2445)][_0x5626e1['id']]&&(_0xe710b3['rpcAgents'][_0x5626e1['id']][_0x535cbb(0x538)]=![]),_0x4c874b();})[_0x33f356(0x129e)](function(_0x312f6d){const _0x1a28f7=_0x33f356;_0x6d4cb2[_0x1a28f7(0x1980)]({'title':_0x312f6d[_0x1a28f7(0x107b)]?_0x1a28f7(0x262a)+_0x312f6d[_0x1a28f7(0x107b)]+'\x20-\x20'+_0x312f6d[_0x1a28f7(0x167f)]:_0x1a28f7(0x23c6),'msg':_0x312f6d['data']?JSON[_0x1a28f7(0x10bb)](_0x312f6d[_0x1a28f7(0x524)]['message']):_0x312f6d[_0x1a28f7(0xd5f)]()});});}function _0x30507a(_0x740621,_0x38680e){const _0x36bf5a=_0x268c5b;return _0x95590[_0x36bf5a(0xe7b)][_0x36bf5a(0x1e3e)]({'id':_0x740621['id'],'type':_0x38680e})['$promise'][_0x36bf5a(0x146b)](function(_0x5c8dda){const _0xddad0a=_0x36bf5a;_0xe710b3[_0xddad0a(0x23c0)][_0x740621['id']]&&_0x3f65c0()[_0xddad0a(0x168d)](_0xe710b3[_0xddad0a(0x23c0)][_0x740621['id']],_0x3f65c0()[_0xddad0a(0x40e)](_0x5c8dda,_0x52b5b5)),_0xe710b3[_0xddad0a(0x2445)][_0x740621['id']]&&_0x3f65c0()['merge'](_0xe710b3[_0xddad0a(0x2445)][_0x740621['id']],_0x3f65c0()['pick'](_0x5c8dda,_0x52b5b5)),_0x1e5b4d(_0xe710b3[_0xddad0a(0x23c0)][_0x740621['id']]);})['catch'](function(_0x254559){const _0x4bb71a=_0x36bf5a;_0x6d4cb2[_0x4bb71a(0x1980)]({'title':_0x254559[_0x4bb71a(0x107b)]?_0x4bb71a(0x262a)+_0x254559[_0x4bb71a(0x107b)]+'\x20-\x20'+_0x254559[_0x4bb71a(0x167f)]:_0x4bb71a(0x23c6),'msg':_0x254559[_0x4bb71a(0x524)]?JSON[_0x4bb71a(0x10bb)](_0x254559[_0x4bb71a(0x524)]['message']):_0x254559[_0x4bb71a(0xd5f)]()});});}function _0x5b09e9(_0x5e8960){const _0x173066=_0x268c5b;return _0x95590[_0x173066(0xe7b)]['unpause']({'id':_0x5e8960['id']})['$promise'][_0x173066(0x146b)](function(_0x4997ec){const _0x4d9425=_0x173066;_0xe710b3[_0x4d9425(0x23c0)][_0x5e8960['id']]&&_0x3f65c0()[_0x4d9425(0x168d)](_0xe710b3[_0x4d9425(0x23c0)][_0x5e8960['id']],_0x3f65c0()[_0x4d9425(0x40e)](_0x4997ec,_0x52b5b5)),_0xe710b3[_0x4d9425(0x2445)][_0x5e8960['id']]&&_0x3f65c0()[_0x4d9425(0x168d)](_0xe710b3[_0x4d9425(0x2445)][_0x5e8960['id']],_0x3f65c0()[_0x4d9425(0x40e)](_0x4997ec,_0x52b5b5)),_0x1e5b4d(_0xe710b3['agents'][_0x5e8960['id']]);})[_0x173066(0x129e)](function(_0x9f2a4a){const _0x3ccf95=_0x173066;_0x6d4cb2[_0x3ccf95(0x1980)]({'title':_0x9f2a4a[_0x3ccf95(0x107b)]?_0x3ccf95(0x262a)+_0x9f2a4a[_0x3ccf95(0x107b)]+_0x3ccf95(0x1315)+_0x9f2a4a[_0x3ccf95(0x167f)]:_0x3ccf95(0x23c6),'msg':_0x9f2a4a[_0x3ccf95(0x524)]?JSON['stringify'](_0x9f2a4a['data'][_0x3ccf95(0x7fd)]):_0x9f2a4a['toString']()});});}function _0x56bd18(_0x3e9171){const _0x11a6d6=_0x268c5b;_0x2e185a[_0x11a6d6(0x2615)](_0x2e185a[_0x11a6d6(0x861)]()[_0x11a6d6(0xa70)](!![])['title'](_0x11a6d6(0x2783))[_0x11a6d6(0x1cbe)](_0x11a6d6(0x1f77))['ok']('Ok')[_0x11a6d6(0x1f27)](_0x3e9171));}function _0x17a4c9(_0x5723ea,_0x1d2b5b){const _0x47ab4f=_0x268c5b;_0x2e185a[_0x47ab4f(0x2615)]({'controller':_0x47ab4f(0x2610),'controllerAs':'vm','templateUrl':_0xbb22f1,'parent':angular['element'](_0x41a93f[_0x47ab4f(0x2586)]),'targetEvent':_0x1d2b5b,'clickOutsideToClose':!![],'locals':{'agent':_0x5723ea,'agents':[],'channel':'mail','direction':_0x47ab4f(0x7b0),'crudPermissions':_0xe710b3[_0x47ab4f(0x2514)]}});}function _0x28c21b(_0x363ebd){const _0x46f079=_0x268c5b;return _0x363ebd===_0x46f079(0x1e3e)||_0x363ebd==='*pause';}function _0x43eaff(_0x5b9576){const _0x4b56f4=_0x268c5b;return _0x5b9576===_0x4b56f4(0x1e3e);}function _0x23f09e(_0xcede6a){const _0xb9c5b0=_0x268c5b;return _0xcede6a===_0xb9c5b0(0x1127);}function _0x59eee4(_0x5f0096){const _0x331ffb=_0x268c5b;return _0x5f0096===_0x331ffb(0xb09)||_0x5f0096===_0x331ffb(0x207d)||_0x5f0096==='unavailable'||_0x5f0096==='ringing'||_0x3f65c0()[_0x331ffb(0x1b36)](_0x5f0096);}function _0x4b19b1(_0x1eb228,_0x191997){const _0x546aca=_0x268c5b;if(_0x191997===_0x546aca(0xe6)){if(_0x1eb228[_0x191997+'Status']!==_0x546aca(0xb09))return _0x1eb228[_0x191997+_0x546aca(0x74e)];if(_0x1eb228[_0x191997+_0x546aca(0xde0)])return _0x1eb228[_0x191997+_0x546aca(0x74e)]='pause',_0x546aca(0x1e3e);return _0x546aca(0xb09);}else{if(_0x1eb228[_0x191997+_0x546aca(0xde0)])return _0x1eb228[_0x191997+_0x546aca(0x74e)]=_0x546aca(0x1e3e),_0x546aca(0x1e3e);return _0x1eb228[_0x191997+_0x546aca(0x74e)];}}function _0x1e5b4d(_0x2f7d8d){const _0x7e602b=_0x268c5b;let _0x375a3e=_0x7e602b(0x207d);if(_0x3f65c0()['every']([_0x4b19b1(_0x2f7d8d,'voice'),_0x4b19b1(_0x2f7d8d,_0x7e602b(0xa7f)),_0x4b19b1(_0x2f7d8d,'mail'),_0x4b19b1(_0x2f7d8d,'openchannel'),_0x4b19b1(_0x2f7d8d,_0x7e602b(0x929)),_0x4b19b1(_0x2f7d8d,_0x7e602b(0xff9)),_0x4b19b1(_0x2f7d8d,_0x7e602b(0x22d9))],_0x28c21b))_0x375a3e=_0x7e602b(0x1e3e);else{if(_0x3f65c0()['some']([_0x4b19b1(_0x2f7d8d,_0x7e602b(0xe6)),_0x4b19b1(_0x2f7d8d,'chat'),_0x4b19b1(_0x2f7d8d,_0x7e602b(0x56b)),_0x4b19b1(_0x2f7d8d,_0x7e602b(0x7d9)),_0x4b19b1(_0x2f7d8d,'sms'),_0x4b19b1(_0x2f7d8d,_0x7e602b(0xff9)),_0x4b19b1(_0x2f7d8d,_0x7e602b(0x22d9))],_0x28c21b))_0x375a3e=_0x7e602b(0x1127);else _0x3f65c0()[_0x7e602b(0xb14)]([_0x4b19b1(_0x2f7d8d,'voice'),_0x4b19b1(_0x2f7d8d,_0x7e602b(0xa7f)),_0x4b19b1(_0x2f7d8d,_0x7e602b(0x56b)),_0x4b19b1(_0x2f7d8d,_0x7e602b(0x7d9)),_0x4b19b1(_0x2f7d8d,_0x7e602b(0x929)),_0x4b19b1(_0x2f7d8d,_0x7e602b(0xff9)),_0x4b19b1(_0x2f7d8d,_0x7e602b(0x22d9))],_0x59eee4)?_0x375a3e='idle':_0x375a3e=_0x7e602b(0x26a7);}_0x2f7d8d['globalStatus']!==_0x375a3e&&(_0x2f7d8d['globalStatus']=_0x375a3e,_0x2f7d8d[_0x7e602b(0x5aa)]?(_0x2f7d8d[_0x7e602b(0x5aa)]=![],_0x2f7d8d[_0x7e602b(0xed1)]=_0x28c21b(_0x375a3e)?_0x3f65c0()['toNumber'](_0x2deec6()(_0x2f7d8d['lastPauseAt'])[_0x7e602b(0x22b0)]('x')):_0x3f65c0()[_0x7e602b(0x727)]([_0x2f7d8d[_0x7e602b(0x1dda)],_0x2f7d8d[_0x7e602b(0x1a22)],_0x2f7d8d['mailStatusTime'],_0x2f7d8d[_0x7e602b(0x1f5c)],_0x2f7d8d[_0x7e602b(0xadd)],_0x2f7d8d[_0x7e602b(0x6cb)],_0x2f7d8d[_0x7e602b(0x47a)]])):_0x2f7d8d[_0x7e602b(0xed1)]=_0x3f65c0()[_0x7e602b(0x123)](_0x2deec6()()[_0x7e602b(0x22b0)]('x')));}function _0x1eab24(_0x2c85b8){const _0x324856=_0x268c5b,_0x2cdd78=_0x3f65c0()[_0x324856(0xd4d)](_0xe710b3[_0x324856(0x1a56)]['order'],'-')?_0x324856(0x2517):'asc';return _0x3f65c0()[_0x324856(0x979)](_0x2c85b8,[_0xe710b3['query'][_0x324856(0x206e)]['replace']('-','')],[_0x2cdd78]);}function _0x512223(){const _0x6c4998=_0x268c5b;_0x40e53d&&(_0x2d8362[_0x6c4998(0x6c3)](_0x40e53d),_0x40e53d=null);}function _0x4405ac(_0x2007db,_0x1fcab7){const _0x33ed46=_0x268c5b;return _0x95590[_0x33ed46(0xe7b)][_0x33ed46(0x18e1)]({'id':_0x2007db['id']},{'screenrecording':_0x1fcab7})[_0x33ed46(0x2945)][_0x33ed46(0x129e)](function(_0x5008ba){const _0x26eea3=_0x33ed46;_0x6d4cb2[_0x26eea3(0x1980)]({'title':_0x5008ba[_0x26eea3(0x107b)]?_0x26eea3(0x262a)+_0x5008ba[_0x26eea3(0x107b)]+_0x26eea3(0x1315)+_0x5008ba[_0x26eea3(0x167f)]:_0x26eea3(0x254f),'msg':_0x5008ba['data']?JSON[_0x26eea3(0x10bb)](_0x5008ba[_0x26eea3(0x524)][_0x26eea3(0x7fd)]):_0x5008ba[_0x26eea3(0xd5f)]()});});}_0x3738aa[_0x268c5b(0x16ad)]('$destroy',function(){const _0x6a57d2=_0x268c5b;_0x100520[_0x6a57d2(0x1c5f)](_0x6a57d2(0x17de)),_0x100520[_0x6a57d2(0x1c5f)](_0x6a57d2(0x324)),_0x100520['removeAllListeners'](_0x6a57d2(0x118c)),_0x100520[_0x6a57d2(0x1c5f)](_0x6a57d2(0x198f)),_0x512223();});}const _0x43446a=_0x148cd7;;const _0x2e6ac7=_0x4acfac['p']+_0x313a4d(0x148b);;const _0xa9f5e7=_0x4acfac['p']+_0x313a4d(0x882);;_0x2d3e47[_0x313a4d(0x11c2)]=['$scope',_0x313a4d(0x1abe),_0x313a4d(0x10e8),'$q',_0x313a4d(0x4d8),_0x313a4d(0xa0a),'queues',_0x313a4d(0x21af),_0x313a4d(0x247f),_0x313a4d(0x279d),_0x313a4d(0x1fe4),_0x313a4d(0x26b6),_0x313a4d(0x1366),_0x313a4d(0xa87)];function _0x2d3e47(_0x24970b,_0x1aceef,_0x487ddd,_0x3fb725,_0x36c15e,_0x751ec6,_0x2fb8f5,_0x2b99a6,_0x49eac2,_0xb6f5a3,_0x557fdb,_0x2da04a,_0x20cc73,_0x228c48){const _0x3c3447=_0x313a4d,_0xa0bf52=this,_0x596d85=[_0x3c3447(0x2398),'available',_0x3c3447(0x12a3),_0x3c3447(0x10ed),_0x3c3447(0x166f),'originated',_0x3c3447(0x7fd),_0x3c3447(0x1095),_0x3c3447(0x1a69),_0x3c3447(0x13c4),'paused'];_0xa0bf52[_0x3c3447(0x2321)]=_0x228c48['getCurrentUser'](),_0xa0bf52[_0x3c3447(0x51c)]=_0x2fb8f5['count']?_0x2fb8f5[_0x3c3447(0x51c)]:0x0,_0xa0bf52[_0x3c3447(0x1b32)]=_0x2fb8f5?_0x3f65c0()['keyBy'](_0x2fb8f5[_0x3c3447(0x19c7)]?_0x2fb8f5[_0x3c3447(0x19c7)]:[],'id'):{},_0xa0bf52['rpcQueues']=_0x2b99a6?_0x3f65c0()[_0x3c3447(0x194)](_0x2b99a6[_0x3c3447(0x19c7)]?_0x2b99a6['rows']:[],'id'):{},_0xa0bf52[_0x3c3447(0x26b6)]=_0x2da04a,_0xa0bf52['userProfileSection']=_0x20cc73&&_0x20cc73[_0x3c3447(0x51c)]==0x1?_0x20cc73[_0x3c3447(0x19c7)][0x0]:null,_0xa0bf52[_0x3c3447(0x2514)]=_0x228c48['parseCrudPermissions'](_0xa0bf52[_0x3c3447(0x1366)]?_0xa0bf52[_0x3c3447(0x1366)][_0x3c3447(0x2514)]:null);_0x228c48['hasRole'](_0x3c3447(0x174b))?_0xa0bf52[_0x3c3447(0x1a56)]={'type':_0x3c3447(0x7b0),'sort':'-updatedAt','limit':0xa,'page':0x1}:_0xa0bf52[_0x3c3447(0x1a56)]={'id':_0xa0bf52[_0x3c3447(0x2321)]['id'],'channel':'mail','type':_0x3c3447(0x7b0),'sort':_0x3c3447(0x12f2),'limit':0xa,'page':0x1};_0xa0bf52['success']=_0x157d8a,_0xa0bf52['getQueues']=_0x2f2405,_0xa0bf52[_0x3c3447(0x1c4b)]=_0x36edb0,_0xa0bf52[_0x3c3447(0x13c)]=_0x35e331,_0xa0bf52[_0x3c3447(0x2801)]=_0x4dc19c,_0xa0bf52[_0x3c3447(0x1db0)]=_0x14b074,_0xa0bf52[_0x3c3447(0x285f)]=_0x31aeaf,_0xa0bf52[_0x3c3447(0x2240)]=_0x3f47e3,_0xa0bf52['onPause']=_0x167d0b,_0xa0bf52['onLogin']=_0x4476ee,_0xa0bf52[_0x3c3447(0x600)]=_0x989808,_0xa0bf52[_0x3c3447(0x20de)]=_0x55c697,_0xa0bf52[_0x3c3447(0x206e)]=[],_0x3f65c0()[_0x3c3447(0x1a04)](_0xa0bf52[_0x3c3447(0x1b32)],function(_0x5d9624){const _0xa30b8e=_0x3c3447;_0xa0bf52[_0xa30b8e(0x206e)]['push'](_0x5d9624['id']);}),_0xb6f5a3['on'](_0x3c3447(0x1a8b),_0xa0bf52[_0x3c3447(0x1db0)]),_0xb6f5a3['on'](_0x3c3447(0x1150),_0xa0bf52[_0x3c3447(0x285f)]),_0xb6f5a3['on'](_0x3c3447(0x4d1),_0xa0bf52[_0x3c3447(0x2240)]),_0xb6f5a3['on'](_0x3c3447(0x324),_0xa0bf52['onPause']),_0xb6f5a3['on'](_0x3c3447(0x1d3e),_0xa0bf52[_0x3c3447(0x600)]),_0xb6f5a3['on']('userVoiceQueue:save',_0xa0bf52['onLogin']);function _0x55c697(){const _0x32d212=_0x3c3447,_0x21e63c=[];return _0x3f65c0()[_0x32d212(0x1a04)](_0xa0bf52[_0x32d212(0x1b32)],function(_0x510be1,_0x307426){const _0x5e4f65=_0x32d212;_0x510be1[_0x5e4f65(0x1e3d)]=0x0,_0x510be1[_0x5e4f65(0x1899)]=0x0,_0xa0bf52[_0x5e4f65(0x1b32)][_0x307426]['agents']={},_0x21e63c[_0x5e4f65(0x1f47)](_0x49eac2[_0x5e4f65(0x101c)][_0x5e4f65(0x24c3)]({'id':_0x307426})['$promise']),_0xa0bf52[_0x5e4f65(0x21af)][_0x307426]&&_0x3f65c0()[_0x5e4f65(0x168d)](_0x510be1,_0x3f65c0()[_0x5e4f65(0x40e)](_0xa0bf52[_0x5e4f65(0x21af)][_0x307426],_0x596d85));}),_0x3fb725[_0x32d212(0x1be2)](_0x21e63c)[_0x32d212(0x146b)](function(_0x21b4d2){const _0x40630e=_0x32d212;for(let _0x5565e0=0x0;_0x5565e0<_0x21b4d2[_0x40630e(0x402)];_0x5565e0+=0x1){for(let _0x1d8bd4=0x0;_0x1d8bd4<_0x21b4d2[_0x5565e0][_0x40630e(0x19c7)]['length'];_0x1d8bd4++){_0x21b4d2[_0x5565e0][_0x40630e(0x19c7)][_0x1d8bd4][_0x40630e(0x1e3d)]&&_0xa0bf52['queues'][_0x21b4d2[_0x5565e0][_0x40630e(0x19c7)][_0x1d8bd4][_0x40630e(0x286d)]][_0x40630e(0x1e3d)]++,_0xa0bf52[_0x40630e(0x1b32)][_0x21b4d2[_0x5565e0][_0x40630e(0x19c7)][_0x1d8bd4][_0x40630e(0x286d)]][_0x40630e(0x1899)]++,_0xa0bf52[_0x40630e(0x1b32)][_0x21b4d2[_0x5565e0]['rows'][_0x1d8bd4][_0x40630e(0x286d)]][_0x40630e(0x23c0)][_0x21b4d2[_0x5565e0][_0x40630e(0x19c7)][_0x1d8bd4][_0x40630e(0xea2)]]=_0x21b4d2[_0x5565e0][_0x40630e(0x19c7)][_0x1d8bd4][_0x40630e(0x286d)];}}})[_0x32d212(0x129e)](function(_0x4e3687){console['error'](_0x4e3687);});}function _0x14b074(_0x3087e6){const _0x380664=_0x3c3447;_0xa0bf52[_0x380664(0x1b32)][_0x3087e6['id']]&&_0x3f65c0()[_0x380664(0x168d)](_0xa0bf52[_0x380664(0x1b32)][_0x3087e6['id']],_0x3f65c0()[_0x380664(0x40e)](_0x3087e6,_0x596d85));}function _0x31aeaf(_0x5e61f5){const _0xedc03a=_0x3c3447;_0xa0bf52[_0xedc03a(0x1b32)][_0x5e61f5[_0xedc03a(0x286d)]]&&_0xa0bf52[_0xedc03a(0x1b32)][_0x5e61f5[_0xedc03a(0x286d)]][_0xedc03a(0x1899)]++;}function _0x3f47e3(_0x469c0e){const _0x452bb7=_0x3c3447;_0xa0bf52[_0x452bb7(0x1b32)][_0x469c0e[_0x452bb7(0x286d)]]&&_0xa0bf52[_0x452bb7(0x1b32)][_0x469c0e['MailQueueId']][_0x452bb7(0x1899)]--;}function _0x167d0b(_0x233634){const _0x2cf34b=_0x3c3447;console['log'](_0x2cf34b(0x1028),_0x233634);if(_0x233634[_0x2cf34b(0x211c)])_0x3f65c0()[_0x2cf34b(0x1a04)](_0xa0bf52[_0x2cf34b(0x1b32)],function(_0x116120){const _0x2855a2=_0x2cf34b;_0x116120[_0x2855a2(0x23c0)][_0x233634['id']]&&(_0x116120[_0x2855a2(0x1e3d)]+=0x1,console['log'](_0x2855a2(0x1e3e)));});else!_0x233634[_0x2cf34b(0x211c)]&&_0x3f65c0()['forIn'](_0xa0bf52[_0x2cf34b(0x1b32)],function(_0x279e09){const _0x526ee8=_0x2cf34b;_0x279e09[_0x526ee8(0x23c0)][_0x233634['id']]&&(_0x279e09[_0x526ee8(0x1e3d)]>0x0&&(_0x279e09[_0x526ee8(0x1e3d)]-=0x1,console['log']('unpause')));});}function _0x4476ee(_0x29954c){const _0x228eb6=_0x3c3447;console['log'](_0x228eb6(0x414),_0x29954c),_0xa0bf52[_0x228eb6(0x1b32)][_0x29954c['MailQueueId']]&&(_0xa0bf52[_0x228eb6(0x1b32)][_0x29954c['MailQueueId']]['loggedInDb']+=0x1,_0xa0bf52[_0x228eb6(0x1b32)][_0x29954c[_0x228eb6(0x286d)]][_0x228eb6(0x23c0)][_0x29954c[_0x228eb6(0xea2)]]=_0x29954c['MailQueueId']);}function _0x989808(_0x45f799){const _0x4a25d8=_0x3c3447;console[_0x4a25d8(0x1a74)](_0x4a25d8(0x600),_0x45f799),_0xa0bf52[_0x4a25d8(0x1b32)][_0x45f799[_0x4a25d8(0x286d)]]&&_0xa0bf52['queues'][_0x45f799[_0x4a25d8(0x286d)]]['loggedInDb']>0x0&&(_0xa0bf52[_0x4a25d8(0x1b32)][_0x45f799[_0x4a25d8(0x286d)]]['loggedInDb']-=0x1,delete _0xa0bf52['queues'][_0x45f799[_0x4a25d8(0x286d)]][_0x4a25d8(0x23c0)][_0x45f799[_0x4a25d8(0xea2)]]);}let _0x488f68=!![],_0x378016=0x1;_0x24970b['$watch']('vm.query.filter',function(_0x1b69fd,_0x112a61){const _0x4b1c3f=_0x3c3447;_0x488f68?_0x1aceef(function(){_0x488f68=![];}):(!_0x112a61&&(_0x378016=_0xa0bf52[_0x4b1c3f(0x1a56)][_0x4b1c3f(0x844)]),_0x1b69fd!==_0x112a61&&(_0xa0bf52[_0x4b1c3f(0x1a56)]['page']=0x1),!_0x1b69fd&&(_0xa0bf52[_0x4b1c3f(0x1a56)][_0x4b1c3f(0x844)]=_0x378016),_0xa0bf52[_0x4b1c3f(0xc53)]());});function _0x157d8a(_0x1190c7){const _0x7a1263=_0x3c3447;_0xa0bf52['count']=_0x1190c7[_0x7a1263(0x51c)],_0xa0bf52[_0x7a1263(0x1b32)]=_0x1190c7?_0x3f65c0()[_0x7a1263(0x194)](_0x1190c7[_0x7a1263(0x19c7)]?_0x1190c7['rows']:[],'id'):{};if(_0x1190c7[_0x7a1263(0x19c7)]){_0xa0bf52['order']=[];for(let _0x5a4e92=0x0;_0x5a4e92<_0x1190c7[_0x7a1263(0x19c7)][_0x7a1263(0x402)];_0x5a4e92++){_0xa0bf52[_0x7a1263(0x206e)]['push'](_0x1190c7[_0x7a1263(0x19c7)][_0x5a4e92]['id']);}}_0x55c697();}function _0x2f2405(){const _0x3ec935=_0x3c3447;_0xa0bf52[_0x3ec935(0x1a56)][_0x3ec935(0x145d)]=(_0xa0bf52['query'][_0x3ec935(0x844)]-0x1)*_0xa0bf52[_0x3ec935(0x1a56)][_0x3ec935(0x221e)],_0x228c48['hasRole'](_0x3ec935(0x174b))?_0xa0bf52[_0x3ec935(0xb9c)]=_0x49eac2[_0x3ec935(0x101c)][_0x3ec935(0x16b4)](_0xa0bf52[_0x3ec935(0x1a56)],_0x157d8a)[_0x3ec935(0x2945)]:(_0xa0bf52[_0x3ec935(0x1a56)]['id']=_0xa0bf52['userProfile']['id'],_0xa0bf52[_0x3ec935(0x1a56)][_0x3ec935(0x2146)]=_0x3ec935(0xf4d),_0xa0bf52[_0x3ec935(0xb9c)]=_0x49eac2[_0x3ec935(0x26b6)][_0x3ec935(0x158f)](_0xa0bf52[_0x3ec935(0x1a56)],_0x157d8a)[_0x3ec935(0x2945)]);}function _0x36edb0(_0x495a6c,_0x550d7a){const _0x315991=_0x3c3447;_0x487ddd['show']({'controller':_0x315991(0x1788),'controllerAs':'vm','templateUrl':_0x2e6ac7,'parent':angular['element'](_0x36c15e[_0x315991(0x2586)]),'targetEvent':_0x495a6c,'clickOutsideToClose':!![],'locals':{'mailQueue':_0x550d7a,'mailQueues':_0x3f65c0()[_0x315991(0x81b)](_0xa0bf52[_0x315991(0x1b32)]),'license':null,'setting':null,'crudPermissions':_0xa0bf52['crudPermissions']}});}function _0x35e331(_0x3ccd49,_0x4d1943){const _0x4f0328=_0x3c3447;_0x487ddd[_0x4f0328(0x2615)]({'controller':_0x4f0328(0x964),'controllerAs':'vm','templateUrl':_0xa9f5e7,'parent':angular[_0x4f0328(0x1853)](_0x36c15e[_0x4f0328(0x2586)]),'targetEvent':_0x3ccd49,'clickOutsideToClose':!![],'locals':{'mailQueue':_0x4d1943,'mailQueues':_0xa0bf52[_0x4f0328(0x1b32)]?_0xa0bf52['queues'][_0x4f0328(0x19c7)]:[],'realtime':![],'crudPermissions':_0xa0bf52[_0x4f0328(0x2514)]}});}function _0x4dc19c(_0x570510){const _0x13067a=_0x3c3447;return _0x49eac2[_0x13067a(0x101c)][_0x13067a(0x18e1)](_0x570510)[_0x13067a(0x2945)][_0x13067a(0x146b)](function(){const _0x329315=_0x13067a;_0x557fdb[_0x329315(0x1c75)]({'title':_0x329315(0x5f1),'msg':_0x570510[_0x329315(0x19eb)]?_0x570510[_0x329315(0x19eb)]+_0x329315(0x6b0):''});})['catch'](function(_0x2ececb){const _0x2e6eb4=_0x13067a;_0x557fdb['error']({'title':_0x2e6eb4(0x2174),'msg':_0x2ececb[_0x2e6eb4(0x7fd)]});});}_0x24970b[_0x3c3447(0x16ad)]('$destroy',function(){const _0x5575e3=_0x3c3447;_0xb6f5a3[_0x5575e3(0x1c5f)](_0x5575e3(0x1a8b)),_0xb6f5a3['removeAllListeners']('userMailQueue:remove'),_0xb6f5a3[_0x5575e3(0x1c5f)](_0x5575e3(0x1150)),_0xb6f5a3[_0x5575e3(0x1c5f)](_0x5575e3(0x324)),_0xb6f5a3[_0x5575e3(0x1c5f)](_0x5575e3(0x1d3e)),_0xb6f5a3[_0x5575e3(0x1c5f)](_0x5575e3(0x109d));});}const _0x3d19ad=_0x2d3e47;;function _0x4e21b0(){const _0x5bea7c=_0x313a4d;return{'status':{'registered':'green-300-fg\x20icon-checkbox-marked-circle','unregistered':_0x5bea7c(0x4c7),'lagged':'red-300-fg\x20icon-close-circle','reachable':_0x5bea7c(0xdf4),'unreachable':'red-300-fg\x20icon-close-circle','unknown':_0x5bea7c(0xc4b)},'state':{'unknown':'grey-fg\x20icon-phone-hangup','not_inuse':_0x5bea7c(0x1756),'inuse':_0x5bea7c(0x255c),'busy':_0x5bea7c(0xb3c),'invalid':'grey-fg\x20icon-phone-hangup','unavailable':_0x5bea7c(0x1fd7),'ringing':_0x5bea7c(0x1172),'ringinuse':_0x5bea7c(0x1172),'onhold':_0x5bea7c(0x119f)},'channelStatus':{'ring':'blue-300-fg\x20icon-phone-incoming','up':_0x5bea7c(0x1668),'hangup':_0x5bea7c(0x135d)},'channelStatusOut':{'ring':_0x5bea7c(0x1a13),'up':'green-300-fg\x20icon-phone-in-talk','hangup':'red-300-fg\x20icon-phone-hangup'}};}const _0x28a6b3=_0x4e21b0;;_0x4fe08c[_0x313a4d(0x11c2)]=['$scope',_0x313a4d(0x1862),'socket'];function _0x4fe08c(_0x47ceda,_0x3be34b,_0x47c60e){const _0x45f6a1=_0x313a4d,_0x269af2=this;_0x47c60e[_0x45f6a1(0x194a)](),_0x47c60e[_0x45f6a1(0x2e3)](),_0x269af2[_0x45f6a1(0x1b09)]=0x0;switch(_0x3be34b[_0x45f6a1(0x2d7)][_0x45f6a1(0x19eb)]){case'app.mail.realtime.agents':_0x269af2[_0x45f6a1(0x1b09)]=0x0;break;case'app.mail.realtime.queues':_0x269af2[_0x45f6a1(0x1b09)]=0x1;break;case _0x45f6a1(0xfb7):_0x269af2[_0x45f6a1(0x1b09)]=0x2;break;default:_0x269af2['selectedTab']=0x0,_0x3be34b['go'](_0x45f6a1(0x22cf));}_0x47ceda[_0x45f6a1(0x21e8)](_0x45f6a1(0x241b),function(_0x273b1e,_0xf3f986){const _0x55b7b8=_0x45f6a1;if(_0x273b1e!==_0xf3f986)switch(_0x273b1e){case 0x0:_0x3be34b['go']('app.mail.realtime.agents');break;case 0x1:_0x3be34b['go']('app.mail.realtime.queues');break;case 0x2:_0x3be34b['go'](_0x55b7b8(0xfb7));break;default:_0x3be34b['go']('app.mail.realtime.agents');}});}const _0x4ee48c=_0x4fe08c;;_0x26bd35[_0x313a4d(0x11c2)]=[_0x313a4d(0x921)];function _0x26bd35(_0x2c697f){const _0x53d816=_0x313a4d;_0x2c697f[_0x53d816(0x13d6)](_0x53d816(0x2795),{'url':'/realtime','views':{'content@app':{'templateUrl':_0x3f82bd,'controller':'MailRealtimeController\x20as\x20vm'}},'resolve':{'userProfile':[_0x53d816(0x362),_0x53d816(0xa87),function(_0x4fedc4,_0x321558){const _0x492f41=_0x53d816;return _0x321558['hasRole'](_0x492f41(0x174b))?null:_0x4fedc4[_0x492f41(0x2922)](_0x492f41(0x119a),{'fields':_0x492f41(0x227),'id':_0x321558[_0x492f41(0xb12)]()[_0x492f41(0x209a)]});}],'userProfileSection':['apiResolver',_0x53d816(0xa87),function(_0x360d32,_0x682833){const _0x418e1b=_0x53d816;return _0x682833[_0x418e1b(0x23e0)](_0x418e1b(0x174b))?null:_0x360d32['resolve'](_0x418e1b(0x27be),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x682833[_0x418e1b(0xb12)]()[_0x418e1b(0x209a)],'sectionId':0x262});}]},'authenticate':!![],'permissionId':0x262})['state'](_0x53d816(0x22cf),{'url':_0x53d816(0x1507),'controller':_0x53d816(0x2664),'templateUrl':_0x1e0eb0,'resolve':{'pauses':['apiResolver',function(_0x5f1b09){return _0x5f1b09['resolve']('pause@get',{'nolimit':!![]});}],'agents':[_0x53d816(0x362),_0x53d816(0xa87),function(_0x3f6844,_0x4a2d53){const _0x47d4ec=_0x53d816;return _0x4a2d53[_0x47d4ec(0x23e0)]('admin')?_0x3f6844[_0x47d4ec(0x2922)](_0x47d4ec(0x2484),{'fields':_0x47d4ec(0x2869),'role':_0x47d4ec(0x1755),'sort':'fullname','nolimit':!![]}):_0x3f6844[_0x47d4ec(0x2922)]('userProfile@getResources',{'id':_0x4a2d53[_0x47d4ec(0xb12)]()['userProfileId'],'section':_0x47d4ec(0xca8),'fields':_0x47d4ec(0x2869),'role':_0x47d4ec(0x1755),'sort':'fullname','nolimit':!![]});}],'userProfile':[_0x53d816(0x362),_0x53d816(0xa87),function(_0x2b7bff,_0x40fd48){const _0x2bad4c=_0x53d816;return _0x40fd48['hasRole'](_0x2bad4c(0x174b))?null:_0x2b7bff['resolve'](_0x2bad4c(0x119a),{'fields':_0x2bad4c(0x227),'id':_0x40fd48[_0x2bad4c(0xb12)]()['userProfileId']});}],'userProfileSection':[_0x53d816(0x362),_0x53d816(0xa87),function(_0x289af7,_0x2f624a){const _0x1dd992=_0x53d816;return _0x2f624a[_0x1dd992(0x23e0)](_0x1dd992(0x174b))?null:_0x289af7['resolve'](_0x1dd992(0x27be),{'fields':_0x1dd992(0x1e64),'userProfileId':_0x2f624a[_0x1dd992(0xb12)]()[_0x1dd992(0x209a)],'sectionId':0xca});}],'rpcAgents':[_0x53d816(0x362),function(_0x2762ba){const _0x2d88c8=_0x53d816;return _0x2762ba[_0x2d88c8(0x2922)](_0x2d88c8(0x19ab));}]},'authenticate':!![],'permissionId':0x262})[_0x53d816(0x13d6)](_0x53d816(0x104),{'url':'/queues','controller':'QueuesMailRealtimeController\x20as\x20vm','templateUrl':_0x26c266,'resolve':{'queues':[_0x53d816(0x362),_0x53d816(0xa87),function(_0x2f0ee7,_0x450000){const _0x290b7f=_0x53d816;return _0x450000[_0x290b7f(0x23e0)](_0x290b7f(0x174b))?_0x2f0ee7[_0x290b7f(0x2922)](_0x290b7f(0x1e9c),{'type':_0x290b7f(0x7b0),'sort':_0x290b7f(0x12f2),'limit':0xa,'offset':0x0}):_0x2f0ee7[_0x290b7f(0x2922)]('userProfile@getResources',{'id':_0x450000[_0x290b7f(0xb12)]()[_0x290b7f(0x209a)],'section':_0x290b7f(0xf4d),'channel':_0x290b7f(0x56b),'type':_0x290b7f(0x7b0),'sort':_0x290b7f(0x12f2),'limit':0xa,'page':0x1});}],'userProfile':[_0x53d816(0x362),_0x53d816(0xa87),function(_0x262097,_0x28b76d){const _0x35c95f=_0x53d816;return _0x28b76d[_0x35c95f(0x23e0)](_0x35c95f(0x174b))?null:_0x262097[_0x35c95f(0x2922)](_0x35c95f(0x119a),{'fields':'id,name,crudPermissions','id':_0x28b76d[_0x35c95f(0xb12)]()[_0x35c95f(0x209a)]});}],'userProfileSection':[_0x53d816(0x362),_0x53d816(0xa87),function(_0x59bbf1,_0x1b5377){const _0x14024e=_0x53d816;return _0x1b5377[_0x14024e(0x23e0)](_0x14024e(0x174b))?null:_0x59bbf1['resolve']('userProfileSection@get',{'fields':_0x14024e(0x1e64),'userProfileId':_0x1b5377[_0x14024e(0xb12)]()[_0x14024e(0x209a)],'sectionId':0x259});}],'rpcQueues':['apiResolver',function(_0x3a26b1){const _0x3f1932=_0x53d816;return _0x3a26b1[_0x3f1932(0x2922)](_0x3f1932(0x259c));}]},'authenticate':!![],'permissionId':0x262})[_0x53d816(0x13d6)](_0x53d816(0xfb7),{'url':_0x53d816(0x2425),'controller':'MailAccountsRealtimeController\x20as\x20vm','templateUrl':_0x1be58e,'resolve':{'mailAccounts':[_0x53d816(0x362),_0x53d816(0xa87),function(_0x441839,_0x4e59f6){const _0x8bbef4=_0x53d816;return _0x4e59f6['hasRole'](_0x8bbef4(0x174b))?_0x441839['resolve']('mailAccount@get',{'sort':_0x8bbef4(0x12f2),'limit':0xa,'offset':0x0}):_0x441839['resolve']('userProfile@getResources',{'id':_0x4e59f6[_0x8bbef4(0xb12)]()[_0x8bbef4(0x209a)],'section':_0x8bbef4(0xbf0),'sort':_0x8bbef4(0x12f2),'limit':0xa,'offset':0x0});}],'userProfile':[_0x53d816(0x362),_0x53d816(0xa87),function(_0x26f603,_0x110b3f){const _0x51c12c=_0x53d816;return _0x110b3f[_0x51c12c(0x23e0)]('admin')?null:_0x26f603['resolve'](_0x51c12c(0x119a),{'fields':_0x51c12c(0x227),'id':_0x110b3f[_0x51c12c(0xb12)]()['userProfileId']});}],'userProfileSection':[_0x53d816(0x362),'Auth',function(_0x3b550f,_0xe72746){const _0xb1cc73=_0x53d816;return _0xe72746[_0xb1cc73(0x23e0)]('admin')?null:_0x3b550f[_0xb1cc73(0x2922)](_0xb1cc73(0x27be),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0xe72746[_0xb1cc73(0xb12)]()[_0xb1cc73(0x209a)],'sectionId':0x25a});}],'rpcMailAccounts':[_0x53d816(0x362),function(_0x547a7c){const _0xbe077c=_0x53d816;return _0x547a7c[_0xbe077c(0x2922)](_0xbe077c(0x1709));}]},'authenticate':!![],'permissionId':0x262});}angular['module'](_0x313a4d(0x2795),[])['config'](_0x26bd35)[_0x313a4d(0x28f0)]('AgentsMailRealtimeController',_0x43446a)['controller'](_0x313a4d(0xb1b),_0x3d19ad)[_0x313a4d(0x1750)]('helperClasses',_0x28a6b3)['controller']('MailRealtimeController',_0x4ee48c);;const _0x22d496=_0x4acfac['p']+_0x313a4d(0x1c03);;const _0x2fdd7e=_0x4acfac['p']+_0x313a4d(0x145);;const _0x51d93e=_0x4acfac['p']+_0x313a4d(0x22e4);;const _0xd9b0b=_0x4acfac['p']+_0x313a4d(0x1d6b);;const _0x562770=_0x4acfac['p']+'src/js/modules/main/apps/mail/views/mailSubtatuses/mailSubtatuses.html/mailSubtatuses.html';;_0x1683ab[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1862),'$location',_0x313a4d(0x10e8),'$q','$translate',_0x313a4d(0x1fe4),_0x313a4d(0x1593),_0x313a4d(0x67d),'api',_0x313a4d(0xa87),_0x313a4d(0x2690),_0x313a4d(0x15b9),_0x313a4d(0x2514)];function _0x1683ab(_0x129abb,_0x537748,_0x2aab6e,_0x39a1bc,_0x391ac8,_0x4985ce,_0x5a4397,_0x269717,_0x1b9623,_0x48de07,_0x513c39,_0x182be9,_0x41db35,_0x35e42e){const _0x26cd7c=_0x313a4d,_0x5f10a8=this;_0x5f10a8[_0x26cd7c(0x2321)]=_0x513c39[_0x26cd7c(0xb12)](),_0x5f10a8[_0x26cd7c(0xcef)]=[],_0x5f10a8['setting']=_0x41db35,_0x5f10a8[_0x26cd7c(0x2690)]=_0x182be9,_0x5f10a8[_0x26cd7c(0x2514)]=_0x35e42e,_0x5f10a8[_0x26cd7c(0x855)]={},_0x5f10a8[_0x26cd7c(0x2251)]=_0x5f10a8[_0x26cd7c(0x15b9)]&&_0x5f10a8[_0x26cd7c(0x15b9)][_0x26cd7c(0x976)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x5f10a8[_0x26cd7c(0x1189)]=_0x26cd7c(0x211f),_0x5f10a8[_0x26cd7c(0x67d)]=angular[_0x26cd7c(0x235a)](_0x1b9623),_0x5f10a8['mailAccounts']=_0x269717,_0x5f10a8[_0x26cd7c(0x1780)]=![];!_0x5f10a8[_0x26cd7c(0x67d)]&&(_0x5f10a8[_0x26cd7c(0x67d)]={'active':!![],'cservice':_0x26cd7c(0x203c),'cauthentication':!![],'fontSize':0xd,'waitForTheAssignedAgent':0xa,'notificationSound':!![],'queueTransferTimeout':0x12c,'agentTransferTimeout':0x12c},_0x5f10a8[_0x26cd7c(0x1189)]=_0x26cd7c(0x22c7),_0x5f10a8[_0x26cd7c(0x1780)]=!![]);_0x537748[_0x26cd7c(0x16a)]['id']&&(_0x5f10a8[_0x26cd7c(0x67d)][_0x26cd7c(0x658)]=_0x537748[_0x26cd7c(0x16a)]['id']);_0x5f10a8[_0x26cd7c(0x175b)]=_0x25655d,_0x5f10a8[_0x26cd7c(0x1e05)]=_0x540aa9,_0x5f10a8[_0x26cd7c(0x1d7e)]=_0x417ff0,_0x5f10a8['getDateFromString']=_0x32a5c6,_0x5f10a8['closeDialog']=_0x150ff8,_0x513c39[_0x26cd7c(0x23e0)](_0x26cd7c(0x174b))?_0x48de07['cmList'][_0x26cd7c(0x16b4)]({'fields':_0x26cd7c(0x7a7),'sort':_0x26cd7c(0x19eb)})[_0x26cd7c(0x2945)][_0x26cd7c(0x146b)](function(_0x556a5d){const _0x205a5a=_0x26cd7c;_0x5f10a8[_0x205a5a(0x1324)]=_0x556a5d['rows']||[];})[_0x26cd7c(0x129e)](function(_0x22e367){const _0x58fb2c=_0x26cd7c;_0x5a4397[_0x58fb2c(0x1980)]({'title':_0x22e367[_0x58fb2c(0x107b)]?_0x58fb2c(0x262a)+_0x22e367[_0x58fb2c(0x107b)]+_0x58fb2c(0x1315)+_0x22e367[_0x58fb2c(0x167f)]:_0x58fb2c(0x11b3),'msg':_0x22e367[_0x58fb2c(0x524)]?JSON[_0x58fb2c(0x10bb)](_0x22e367[_0x58fb2c(0x524)]):_0x22e367['toString']()});}):_0x48de07[_0x26cd7c(0xf03)][_0x26cd7c(0x16b4)]({'fields':_0x26cd7c(0x7a7),'sort':_0x26cd7c(0x19eb)})[_0x26cd7c(0x2945)]['then'](function(_0x583587){const _0x52a843=_0x26cd7c;_0x5f10a8['lists']=_0x583587[_0x52a843(0x19c7)]||[];})[_0x26cd7c(0x146b)](function(){const _0x232d19=_0x26cd7c;return _0x48de07['userProfileSection'][_0x232d19(0x16b4)]({'userProfileId':_0x5f10a8[_0x232d19(0x2321)][_0x232d19(0x209a)],'sectionId':0x12d})[_0x232d19(0x2945)];})[_0x26cd7c(0x146b)](function(_0x1d08d0){const _0x567d27=_0x26cd7c,_0x13eae8=_0x1d08d0&&_0x1d08d0[_0x567d27(0x19c7)]?_0x1d08d0['rows'][0x0]:null;if(!_0x13eae8){const _0x1e62bb=[];let _0xa119dc=null;_0x5f10a8[_0x567d27(0x67d)]&&(_0xa119dc=_0x3f65c0()[_0x567d27(0xc84)](_0x5f10a8[_0x567d27(0x1324)],{'id':Number(_0x5f10a8[_0x567d27(0x67d)][_0x567d27(0xb7c)])}));for(let _0x18991b=0x0;_0x18991b<_0x5f10a8['lists'][_0x567d27(0x402)];_0x18991b++){_0xa119dc&&_0x5f10a8[_0x567d27(0x1324)][_0x18991b]['id']===_0xa119dc['id']&&(_0x5f10a8[_0x567d27(0x1324)][_0x18991b]['canSelect']=![],_0x1e62bb['push'](_0x5f10a8['lists'][_0x18991b]));}_0x5f10a8[_0x567d27(0x1324)]=_0x1e62bb;}else{if(!_0x13eae8[_0x567d27(0x11d2)])return _0x48de07[_0x567d27(0xdcc)]['get']({'sectionId':_0x13eae8['id']})[_0x567d27(0x2945)][_0x567d27(0x146b)](function(_0x3ed77b){const _0x4f36f5=_0x567d27,_0x2ca93f=_0x3f65c0()[_0x4f36f5(0x205)](_0x3ed77b['rows'],function(_0x35ea62){const _0x1c75ef=_0x4f36f5;return _0x3f65c0()['find'](_0x5f10a8['lists'],{'id':_0x35ea62[_0x1c75ef(0x18b8)]});});let _0x29875d=null;_0x5f10a8[_0x4f36f5(0x67d)]&&(_0x29875d=_0x3f65c0()[_0x4f36f5(0xc84)](_0x5f10a8[_0x4f36f5(0x1324)],{'id':Number(_0x5f10a8[_0x4f36f5(0x67d)]['ListId'])}));if(_0x29875d&&!_0x3f65c0()[_0x4f36f5(0x1360)](_0x2ca93f,['id',_0x29875d['id']])){const _0x5e3ae4=_0x3f65c0()[_0x4f36f5(0xc84)](_0x5f10a8[_0x4f36f5(0x1324)],{'id':_0x29875d['id']});_0x5e3ae4['canSelect']=![],_0x2ca93f['push'](_0x5e3ae4);}_0x5f10a8[_0x4f36f5(0x1324)]=_0x2ca93f;});}})[_0x26cd7c(0x129e)](function(_0x1bdaa1){const _0x2d7c0d=_0x26cd7c;_0x5a4397[_0x2d7c0d(0x1980)]({'title':_0x1bdaa1[_0x2d7c0d(0x107b)]?_0x2d7c0d(0x262a)+_0x1bdaa1[_0x2d7c0d(0x107b)]+_0x2d7c0d(0x1315)+_0x1bdaa1[_0x2d7c0d(0x167f)]:_0x2d7c0d(0x1a2f),'msg':_0x1bdaa1[_0x2d7c0d(0x524)]?JSON['stringify'](_0x1bdaa1['data']):_0x1bdaa1[_0x2d7c0d(0xd5f)]()});});function _0x25655d(){const _0x51a99d=_0x26cd7c;_0x5f10a8[_0x51a99d(0xcef)]=[],_0x48de07[_0x51a99d(0x67d)][_0x51a99d(0x1e3)](_0x5f10a8['mailAccount'])[_0x51a99d(0x2945)][_0x51a99d(0x146b)](function(_0x66ceba){const _0x3c5e71=_0x51a99d;_0x5f10a8[_0x3c5e71(0x1593)][_0x3c5e71(0xb3d)](_0x66ceba[_0x3c5e71(0x2488)]()),_0x5a4397[_0x3c5e71(0x1c75)]({'title':_0x3c5e71(0x1228),'msg':_0x5f10a8[_0x3c5e71(0x67d)][_0x3c5e71(0x19eb)]?_0x5f10a8['mailAccount'][_0x3c5e71(0x19eb)]+_0x3c5e71(0x1386):''}),_0x150ff8(_0x66ceba);})[_0x51a99d(0x129e)](function(_0x375ffb){const _0x431132=_0x51a99d;if(_0x375ffb[_0x431132(0x524)]&&_0x375ffb['data'][_0x431132(0xcef)]&&_0x375ffb['data'][_0x431132(0xcef)][_0x431132(0x402)]){_0x5f10a8[_0x431132(0xcef)]=_0x375ffb['data'][_0x431132(0xcef)]||[{'message':_0x375ffb[_0x431132(0xd5f)](),'type':'api.mailAccount.save'}];for(let _0x113323=0x0;_0x113323<_0x375ffb[_0x431132(0x524)][_0x431132(0xcef)][_0x431132(0x402)];_0x113323+=0x1){_0x5a4397[_0x431132(0x1980)]({'title':_0x375ffb[_0x431132(0x524)]['errors'][_0x113323][_0x431132(0x1142)],'msg':_0x375ffb[_0x431132(0x524)][_0x431132(0xcef)][_0x113323]['message']});}}else _0x5a4397['error']({'title':_0x375ffb[_0x431132(0x107b)]?_0x431132(0x262a)+_0x375ffb[_0x431132(0x107b)]+_0x431132(0x1315)+_0x375ffb['statusText']:_0x431132(0x489),'msg':_0x375ffb['data']?JSON[_0x431132(0x10bb)](_0x375ffb['data']['message']):_0x375ffb[_0x431132(0xd5f)]()});});}function _0x540aa9(){const _0x3c4c35=_0x26cd7c;_0x5f10a8[_0x3c4c35(0xcef)]=[],_0x48de07[_0x3c4c35(0x67d)][_0x3c4c35(0x18e1)]({'id':_0x5f10a8[_0x3c4c35(0x67d)]['id']},_0x5f10a8['mailAccount'])['$promise'][_0x3c4c35(0x146b)](function(_0x1a66ac){const _0x4c901d=_0x3c4c35,_0x45379e=_0x3f65c0()['find'](_0x5f10a8[_0x4c901d(0x1593)],{'id':_0x1a66ac['id']});_0x45379e&&_0x3f65c0()[_0x4c901d(0x168d)](_0x45379e,_0x3f65c0()['pick'](_0x1a66ac[_0x4c901d(0x2488)](),_0x3f65c0()[_0x4c901d(0x627)](_0x45379e))),_0x5a4397[_0x4c901d(0x1c75)]({'title':_0x4c901d(0x1900),'msg':_0x5f10a8['mailAccount'][_0x4c901d(0x19eb)]?_0x5f10a8['mailAccount'][_0x4c901d(0x19eb)]+'\x20has\x20been\x20saved!':''}),_0x150ff8(_0x1a66ac);})[_0x3c4c35(0x129e)](function(_0x28aa77){const _0x5d00fe=_0x3c4c35;if(_0x28aa77[_0x5d00fe(0x524)]&&_0x28aa77['data'][_0x5d00fe(0xcef)]&&_0x28aa77[_0x5d00fe(0x524)][_0x5d00fe(0xcef)]['length']){_0x5f10a8[_0x5d00fe(0xcef)]=_0x28aa77['data'][_0x5d00fe(0xcef)]||[{'message':_0x28aa77[_0x5d00fe(0xd5f)](),'type':_0x5d00fe(0xa6c)}];for(let _0x278d06=0x0;_0x278d06<_0x28aa77[_0x5d00fe(0x524)]['errors'][_0x5d00fe(0x402)];_0x278d06++){_0x5a4397[_0x5d00fe(0x1980)]({'title':_0x28aa77[_0x5d00fe(0x524)][_0x5d00fe(0xcef)][_0x278d06][_0x5d00fe(0x1142)],'msg':_0x28aa77[_0x5d00fe(0x524)]['errors'][_0x278d06]['message']});}}else _0x5a4397[_0x5d00fe(0x1980)]({'title':_0x28aa77[_0x5d00fe(0x107b)]?_0x5d00fe(0x262a)+_0x28aa77['status']+_0x5d00fe(0x1315)+_0x28aa77[_0x5d00fe(0x167f)]:_0x5d00fe(0xa6c),'msg':_0x28aa77[_0x5d00fe(0x524)]?JSON[_0x5d00fe(0x10bb)](_0x28aa77[_0x5d00fe(0x524)]['message']):_0x28aa77['toString']()});});}function _0x417ff0(_0x2c0885){const _0x54feb8=_0x26cd7c;if(_0x5f10a8[_0x54feb8(0x67d)][_0x54feb8(0x243a)])return _0x5a4397[_0x54feb8(0x1980)]({'title':'Mail\x20Account\x20not\x20deleted!','msg':'You\x20can\x27t\x20remove\x20service\x20account'});_0x5f10a8[_0x54feb8(0xcef)]=[];const _0x247b26=_0x39a1bc[_0x54feb8(0x1e8a)]()[_0x54feb8(0x1189)](_0x54feb8(0x1d64))[_0x54feb8(0x80f)](_0x54feb8(0x1954))['ariaLabel'](_0x54feb8(0x1a59))['ok'](_0x54feb8(0x25de))[_0x54feb8(0x6c3)](_0x54feb8(0xcf0))[_0x54feb8(0x1f27)](_0x2c0885);_0x39a1bc[_0x54feb8(0x2615)](_0x247b26)[_0x54feb8(0x146b)](function(){const _0x121f0e=_0x54feb8;_0x48de07[_0x121f0e(0x67d)]['delete']({'id':_0x5f10a8[_0x121f0e(0x67d)]['id']})['$promise'][_0x121f0e(0x146b)](function(){const _0x15c071=_0x121f0e;_0x3f65c0()[_0x15c071(0x2640)](_0x5f10a8[_0x15c071(0x1593)],{'id':_0x5f10a8[_0x15c071(0x67d)]['id']}),_0x5a4397[_0x15c071(0x1c75)]({'title':'MailAccount\x20properly\x20deleted!','msg':(_0x5f10a8['mailAccount'][_0x15c071(0x19eb)]||_0x15c071(0x67d))+'\x20has\x20been\x20deleted!'}),_0x150ff8(_0x5f10a8['mailAccount']);})[_0x121f0e(0x129e)](function(_0x1d0e93){const _0x1bcfff=_0x121f0e;if(_0x1d0e93[_0x1bcfff(0x524)]&&_0x1d0e93[_0x1bcfff(0x524)][_0x1bcfff(0xcef)]&&_0x1d0e93[_0x1bcfff(0x524)][_0x1bcfff(0xcef)]['length']){_0x5f10a8[_0x1bcfff(0xcef)]=_0x1d0e93[_0x1bcfff(0x524)][_0x1bcfff(0xcef)]||[{'message':_0x1d0e93[_0x1bcfff(0xd5f)](),'type':'api.mailAccount.delete'}];for(let _0x52ca4b=0x0;_0x52ca4b<_0x1d0e93[_0x1bcfff(0x524)]['errors'][_0x1bcfff(0x402)];_0x52ca4b++){_0x5a4397[_0x1bcfff(0x1980)]({'title':_0x1d0e93['data'][_0x1bcfff(0xcef)][_0x52ca4b][_0x1bcfff(0x1142)],'msg':_0x1d0e93[_0x1bcfff(0x524)]['errors'][_0x52ca4b][_0x1bcfff(0x7fd)]});}}else _0x5a4397[_0x1bcfff(0x1980)]({'title':_0x1d0e93[_0x1bcfff(0x107b)]?_0x1bcfff(0x262a)+_0x1d0e93[_0x1bcfff(0x107b)]+'\x20-\x20'+_0x1d0e93[_0x1bcfff(0x167f)]:'api.mailAccount.delete','msg':_0x1d0e93['data']?JSON[_0x1bcfff(0x10bb)](_0x1d0e93[_0x1bcfff(0x524)][_0x1bcfff(0x7fd)]):_0x1d0e93['message']||_0x1d0e93[_0x1bcfff(0xd5f)]()});});},function(){});}function _0x32a5c6(_0x1a46d8){return _0x1a46d8===null?undefined:new Date(_0x1a46d8);}function _0x150ff8(_0x3b0845){const _0x5508ef=_0x26cd7c;_0x39a1bc[_0x5508ef(0x2458)](_0x3b0845);}}const _0xdc63a=_0x1683ab;;const _0x1f8cc0=_0x4acfac['p']+_0x313a4d(0x1b89);;const _0x35d639=_0x4acfac['p']+_0x313a4d(0xe0d);;const _0x234fcf=_0x4acfac['p']+'src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/close/dialog.html/dialog.html';;const _0x378995=_0x4acfac['p']+_0x313a4d(0x1a2d);;const _0x4d677c=_0x4acfac['p']+_0x313a4d(0x1278);;const _0x2df60d=_0x4acfac['p']+_0x313a4d(0x6e0);;const _0x330f01=_0x4acfac['p']+_0x313a4d(0x188e);;const _0x5f2d9a=_0x4acfac['p']+_0x313a4d(0x202);;const _0x5d3587=_0x4acfac['p']+_0x313a4d(0x137b);;const _0x4d74c=_0x4acfac['p']+_0x313a4d(0x1079);;_0x345f98[_0x313a4d(0x11c2)]=['api',_0x313a4d(0x10e8),_0x313a4d(0x4d8),_0x313a4d(0x1fe4),_0x313a4d(0xa87)];const _0x3edb22={'agent':_0x1f8cc0,'autoreply':_0x35d639,'close':_0x234fcf,'gotoif':_0x378995,'gotop':_0x4d677c,'interval':_0x2df60d,'noop':_0x330f01,'queue':_0x5f2d9a,'system':_0x5d3587,'tag':_0x4d74c};function _0x345f98(_0x3e3049,_0x5e32b3,_0xe13ab2,_0x492a11,_0x3f1a75){const _0x432418=_0x313a4d,_0x1ce991=this;_0x1ce991[_0x432418(0x2321)]=_0x3f1a75[_0x432418(0xb12)](),_0x1ce991[_0x432418(0x67d)]={},_0x1ce991['mailAccountApps']={'count':0x0,'rows':[]},_0x1ce991['selectedMailAccountApps']=[],_0x1ce991[_0x432418(0x2514)],_0x1ce991[_0x432418(0x1a56)]={'sort':_0x432418(0xa6a)},_0x1ce991[_0x432418(0x8b0)]=_0x3f65c0()['reject'](_0x3f65c0()[_0x432418(0x939)]([{'app':_0x432418(0x1b4e),'appType':_0x432418(0x2765),'types':[_0x432418(0xd85),_0x432418(0x1802),_0x432418(0x25f4)],'fields':[],'isApp':![]},{'app':_0x432418(0x309),'appType':_0x432418(0x309),'type':_0x432418(0x309),'icon':_0x432418(0x1205),'interval':'*,*,*,*','required':!![],'isApp':!![],'fields':[{'title':_0x432418(0x2193),'name':'value','type':_0x432418(0xa8d),'param':0x0}]},{'app':'system','appType':_0x432418(0x1d47),'type':_0x432418(0x1d47),'icon':_0x432418(0x1205),'interval':_0x432418(0x1559),'required':!![],'isApp':!![],'extraApi':[{'name':_0x432418(0x85b),'field':{'name':_0x432418(0x212),'key':_0x432418(0x19eb)},'route':_0x432418(0x212),'filters':{'fields':'id,name','sort':_0x432418(0x19eb),'nolimit':!![]},'permissions':{'section':0x3f4}}],'fields':[{'title':'Command','name':_0x432418(0x23e9),'type':_0x432418(0xa8d),'required':!![],'param':0x0},{'title':_0x432418(0x182),'name':_0x432418(0x212),'type':'apiselect','values':'variables','value':'variable.name','option':'variable.name','defaultValues':[{'value':'\x27\x27','option':_0x432418(0x13dd)}],'defaultValue':'\x27\x27','param':0x1}]},{'app':'gotop','appType':'gotop','type':_0x432418(0x151b),'icon':_0x432418(0x1205),'interval':'*,*,*,*','isApp':!![],'fields':[{'title':_0x432418(0x23d8),'name':_0x432418(0xa6a),'type':_0x432418(0x181),'required':!![],'min':0x0,'param':0x0}]},{'app':_0x432418(0x609),'appType':_0x432418(0x609),'type':_0x432418(0x609),'icon':_0x432418(0x1205),'interval':_0x432418(0x1559),'isApp':!![],'fields':[{'title':_0x432418(0x15db),'name':_0x432418(0x115f),'type':'text','required':!![],'param':0x0},{'title':_0x432418(0x1d78),'name':_0x432418(0x1d78),'type':'number','min':0x1,'required':!![],'param':0x1},{'title':'falsepriority','name':_0x432418(0x28e1),'type':'number','min':0x1,'required':!![],'param':0x2}]},{'app':'queue','appType':_0x432418(0x1c72),'foreignKey':_0x432418(0x286d),'type':_0x432418(0x1c72),'icon':_0x432418(0x1205),'interval':'*,*,*,*','isApp':!![],'extraApi':[{'name':_0x432418(0x1b32),'field':{'name':_0x432418(0x1c72),'key':'name'},'route':_0x432418(0x101c),'filters':{'fields':_0x432418(0x45e),'sort':'name','nolimit':!![]},'permissions':{'section':0x259}}],'fields':[{'title':'Queue','name':_0x432418(0x1c72),'type':_0x432418(0x28c6),'values':'queues','value':_0x432418(0x15b0),'option':_0x432418(0x15b0),'defaultValue':0x12c,'required':!![],'param':0x0},{'title':_0x432418(0x5cc),'name':_0x432418(0xa9c),'type':_0x432418(0x181),'max':0x20c49b,'min':0x0,'required':!![],'defaultValue':0x12c,'param':0x1}]},{'app':'agent','appType':_0x432418(0x1755),'type':_0x432418(0x1755),'foreignKey':'UserId','icon':'icon-apps','interval':'*,*,*,*','isApp':!![],'extraApi':[{'name':_0x432418(0x23c0),'field':{'name':_0x432418(0x1755),'key':'name'},'route':_0x432418(0xe7b),'filters':{'fields':_0x432418(0x7a7),'sort':_0x432418(0x19eb),'nolimit':!![],'role':'agent'},'permissions':{'section':0xca}}],'fields':[{'title':_0x432418(0x294a),'name':_0x432418(0x1755),'type':_0x432418(0x28c6),'values':'agents','value':_0x432418(0x264f),'option':_0x432418(0x264f),'required':!![],'param':0x0},{'title':_0x432418(0x5cc),'name':'timeout','type':_0x432418(0x181),'max':0x20c49b,'min':0x0,'required':!![],'defaultValue':0x1e,'param':0x1}]},{'app':_0x432418(0x1713),'appType':_0x432418(0x1713),'type':_0x432418(0x1713),'icon':_0x432418(0x1205),'interval':_0x432418(0x1559),'isApp':!![],'fields':[{'title':_0x432418(0x583),'name':_0x432418(0x583),'type':_0x432418(0xa5f),'defaultValue':'1','values':[{'option':_0x432418(0x1d98),'value':'1'},{'option':_0x432418(0x132f),'value':'0'}],'required':!![],'param':0x0},{'title':_0x432418(0x23d7),'name':_0x432418(0xa8d),'type':_0x432418(0x1931),'required':!![],'param':0x1}]},{'app':_0x432418(0xa7c),'appType':_0x432418(0xa7c),'type':_0x432418(0xa7c),'icon':_0x432418(0x1205),'interval':_0x432418(0x1559),'isApp':!![],'fields':[{'title':_0x432418(0x673),'name':_0x432418(0x9e1),'type':_0x432418(0xa8d),'required':!![],'param':0x0}]},{'app':_0x432418(0xa80),'appType':_0x432418(0xa80),'type':_0x432418(0xa80),'foreignKey':_0x432418(0xb0a),'icon':_0x432418(0x1205),'interval':_0x432418(0x1559),'isApp':!![],'extraApi':[{'name':_0x432418(0x1b86),'field':{'name':_0x432418(0xa80),'key':'name'},'route':_0x432418(0xa80),'filters':{'fields':_0x432418(0x7a7),'sort':_0x432418(0x19eb),'nolimit':!![]},'permissions':{'section':0x3f0}}],'fields':[{'title':_0x432418(0x23a8),'name':_0x432418(0xa80),'type':_0x432418(0x28c6),'values':_0x432418(0x1b86),'value':'tag.name','option':_0x432418(0x1a96),'required':!![],'param':0x0}]}],[_0x432418(0x1873)]),{'isApp':![]}),_0x1ce991[_0x432418(0x25f4)]={'group':{'name':_0x432418(0x156c),'pull':_0x432418(0x12cc)},'animation':0x64,'sort':![]},_0x1ce991[_0x432418(0x25fc)]={'group':{'name':_0x432418(0x916),'put':_0x432418(0x156c)},'animation':0x64,'onAdd':function(_0x5a932c){const _0x2a9f3f=_0x432418;_0x356c82(_0x5a932c,_0x5a932c[_0x2a9f3f(0x154d)]);},'onSort':function(){_0xe52109();}},_0x1ce991[_0x432418(0x5aa)]=_0x48c60d,_0x1ce991[_0x432418(0x19b4)]=_0x26ebfb,_0x1ce991[_0x432418(0xcfc)]=_0x274721,_0x1ce991[_0x432418(0xbfd)]=_0x356c82,_0x1ce991[_0x432418(0x285b)]=_0x2021f1,_0x1ce991['deleteMailAccountApp']=_0x37ab09,_0x1ce991[_0x432418(0x10ae)]=_0x7fb808,_0x1ce991['rewriteRouting']=_0xe52109,_0x1ce991[_0x432418(0x1c1c)]=_0x4161e9;function _0x48c60d(_0x4d3147,_0xb54060){const _0xd0e12=_0x432418;_0x1ce991[_0xd0e12(0x67d)]=_0x4d3147,_0x1ce991['crudPermissions']=typeof _0xb54060!==_0xd0e12(0x2274)?_0xb54060:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x1ce991['applications']['disabled']=!_0x1ce991[_0xd0e12(0x2514)][_0xd0e12(0x15f4)]?!![]:![],_0x1ce991[_0xd0e12(0x1a56)]['id']=_0x4d3147['id'],_0x1ce991[_0xd0e12(0x1a56)]['isApp']=!![],_0x1ce991[_0xd0e12(0x1a56)][_0xd0e12(0x6c5)]=!![],_0x1ce991[_0xd0e12(0xcfc)](),_0x1ce991['getIntervals']();}function _0x26ebfb(_0x17ebb8,_0x1c0d87,_0x4ecbb9){const _0x70b67d=_0x432418,_0x39c6b4=_0x5e32b3[_0x70b67d(0x1e8a)]()['title'](_0x70b67d(0x1058))[_0x70b67d(0x1cbe)](''+_0x17ebb8[_0x70b67d(0x1873)]+_0x70b67d(0x252f)+_0x70b67d(0xe01))[_0x70b67d(0x4bd)](_0x70b67d(0x847))[_0x70b67d(0x1f27)](_0x4ecbb9)['ok']('OK')['cancel'](_0x70b67d(0x39a));_0x5e32b3[_0x70b67d(0x2615)](_0x39c6b4)[_0x70b67d(0x146b)](function(){const _0x5316d1=_0x70b67d;_0x1ce991[_0x5316d1(0x4b8)]['rows'][_0x5316d1(0x1f7d)](_0x1c0d87,0x1),_0xe52109();},function(){console['log']('CANCEL');});}function _0x356c82(_0x251672,_0xbc49ce){const _0x21e660=_0x432418;if(_0x1ce991[_0x21e660(0x4b8)][_0x21e660(0x19c7)][_0x21e660(0x402)]){const _0xda7505=_0x1ce991[_0x21e660(0x4b8)][_0x21e660(0x19c7)][_0xbc49ce]?_0x1ce991[_0x21e660(0x4b8)]['rows'][_0xbc49ce]:_0x1ce991[_0x21e660(0x4b8)][_0x21e660(0x19c7)][0x0],_0x106d9e=(_0xda7505['appType']||_0xda7505[_0x21e660(0x1873)])[_0x21e660(0x256e)]();_0x5e32b3['show']({'controller':_0x21e660(0x93a)+_0x106d9e+'DialogController','controllerAs':'vm','templateUrl':_0x3edb22[_0x106d9e],'parent':angular[_0x21e660(0x1853)](_0xe13ab2[_0x21e660(0x2586)]),'targetEvent':_0x251672,'clickOutsideToClose':!![],'locals':{'mailAccountApp':_0xda7505,'mailAccount':_0x1ce991[_0x21e660(0x67d)],'crudPermissions':_0x1ce991[_0x21e660(0x2514)]}})['then'](function(_0x61b708){const _0x281ef9=_0x21e660;_0x61b708&&(_0x61b708['id']?_0x1ce991[_0x281ef9(0x4b8)][_0x281ef9(0x19c7)][_0xbc49ce]=_0x61b708:_0x1ce991[_0x281ef9(0x4b8)][_0x281ef9(0x19c7)]['splice'](_0xbc49ce,0x0,_0x61b708),_0xe52109());})[_0x21e660(0x129e)](function(_0x29cd46){const _0x3bd655=_0x21e660;_0x29cd46&&_0x492a11['error']({'title':_0x29cd46[_0x3bd655(0x107b)]?_0x3bd655(0x262a)+_0x29cd46['status']+_0x3bd655(0x1315)+_0x29cd46[_0x3bd655(0x167f)]:_0x3bd655(0x10a0),'msg':_0x29cd46[_0x3bd655(0x524)]?JSON[_0x3bd655(0x10bb)](_0x29cd46[_0x3bd655(0x524)]):_0x29cd46[_0x3bd655(0xd5f)]()});});}}function _0x2021f1(_0x44be4b,_0x10fe52){const _0x7a269f=_0x432418;if(_0x1ce991['mailAccountApps'][_0x7a269f(0x19c7)][_0x7a269f(0x402)]){const _0x2cc51f=_0x1ce991[_0x7a269f(0x4b8)][_0x7a269f(0x19c7)][_0x10fe52]?_0x1ce991[_0x7a269f(0x4b8)][_0x7a269f(0x19c7)][_0x10fe52]:_0x1ce991[_0x7a269f(0x4b8)][_0x7a269f(0x19c7)][0x0];_0x5e32b3[_0x7a269f(0x2615)]({'controller':_0x7a269f(0x177d),'controllerAs':'vm','templateUrl':_0x2df60d,'parent':angular[_0x7a269f(0x1853)](_0xe13ab2[_0x7a269f(0x2586)]),'targetEvent':_0x44be4b,'clickOutsideToClose':!![],'locals':{'interval':{'interval':_0x2cc51f[_0x7a269f(0x2765)],'IntervalId':_0x2cc51f[_0x7a269f(0x1ff2)],'application':!![]},'intervals':[],'crudPermissions':_0x1ce991['crudPermissions']}})['then'](function(_0x886e44){const _0x5744c6=_0x7a269f;_0x886e44&&(_0x2cc51f[_0x5744c6(0x2765)]=_0x886e44[_0x5744c6(0x2765)]||_0x5744c6(0x1559),_0x2cc51f[_0x5744c6(0x1ff2)]=_0x886e44[_0x5744c6(0x1ff2)]||null,_0xe52109());});}}function _0xe52109(){const _0xdba781=_0x432418;let _0x3e5117=0x1,_0xbae21e=[];for(let _0x425353=0x0;_0x425353<_0x1ce991[_0xdba781(0x4b8)][_0xdba781(0x19c7)][_0xdba781(0x402)];_0x425353++){const _0x4205fb=_0x1ce991[_0xdba781(0x4b8)]['rows'][_0x425353],_0x16a733=[],_0x1819a6=[];_0x4205fb['intervals']=_0x4205fb[_0xdba781(0x2765)]!=='*,*,*,*'?[_0x4205fb[_0xdba781(0x2765)]]:_0x4205fb[_0xdba781(0x1ff2)]?_0x3f65c0()[_0xdba781(0x205)](_0x3f65c0()['filter'](_0x1ce991[_0xdba781(0x278f)]['rows'],{'IntervalId':_0x4205fb['IntervalId']}),'interval'):[],_0x4205fb['context']=_0x1ce991['mailAccount'][_0xdba781(0x1ac1)],_0x4205fb[_0xdba781(0x19b2)]=_0x1ce991[_0xdba781(0x67d)][_0xdba781(0x19b2)],_0x4205fb[_0xdba781(0x1142)]&&(_0x4205fb[_0xdba781(0x1142)]=_0x4205fb[_0xdba781(0x1142)][_0xdba781(0x256e)]()),_0x4205fb[_0xdba781(0xa6a)]=_0x16a733['length']?_0x3f65c0()[_0xdba781(0x22f2)](_0x16a733)['priority']+0x1:_0x3e5117,_0x3e5117=(_0x1819a6[_0xdba781(0x402)]?_0x3f65c0()[_0xdba781(0x22f2)](_0x1819a6)[_0xdba781(0xa6a)]:_0x4205fb[_0xdba781(0xa6a)])+0x1,_0xbae21e=_0x3f65c0()[_0xdba781(0x163c)](_0xbae21e,_0x16a733,[_0x4205fb],_0x1819a6);}_0x3e3049['mailAccount'][_0xdba781(0x1711)]({'id':_0x1ce991[_0xdba781(0x67d)]['id']},_0x3f65c0()[_0xdba781(0x939)](_0xbae21e,_0xdba781(0xa6a)))[_0xdba781(0x2945)][_0xdba781(0x146b)](function(_0x2d1e95){const _0x498011=_0xdba781;_0x1ce991[_0x498011(0x4b8)]['rows']=_0x2d1e95[_0x498011(0x19c7)];})[_0xdba781(0x129e)](function(_0x36c64e){const _0x4635f4=_0xdba781;console[_0x4635f4(0x1980)](_0x36c64e);});}function _0x2b243b(_0x162616){const _0x46ebec=_0x432418;_0x1ce991[_0x46ebec(0x4b8)]=_0x162616||{'count':0x0,'rows':[]};}function _0x4161e9(){const _0x2923b3=_0x432418;return _0x3e3049[_0x2923b3(0x2765)][_0x2923b3(0x16b4)]({'fields':_0x2923b3(0x2749)})[_0x2923b3(0x2945)][_0x2923b3(0x146b)](function(_0x36efa0){const _0x5d1c52=_0x2923b3;_0x1ce991[_0x5d1c52(0x278f)]=_0x36efa0;})[_0x2923b3(0x129e)](function(_0x1bd1cf){const _0xd02c68=_0x2923b3;console[_0xd02c68(0x1980)](_0x1bd1cf);});}function _0x274721(){const _0x291e3e=_0x432418;_0x1ce991[_0x291e3e(0xb9c)]=_0x3e3049['mailAccount'][_0x291e3e(0x261b)](_0x1ce991['query'],_0x2b243b)[_0x291e3e(0x2945)];}function _0x37ab09(_0x5505a5){const _0x4ad800=_0x432418;_0x3f65c0()[_0x4ad800(0x2640)](_0x1ce991['mailAccountApps'][_0x4ad800(0x19c7)],{'id':_0x5505a5['id']}),_0xe52109(),_0x492a11[_0x4ad800(0x1c75)]({'title':'App\x20deleted!','msg':_0x5505a5[_0x4ad800(0x1873)]?_0x5505a5[_0x4ad800(0x1873)]+_0x4ad800(0x23e3):''});}function _0x7fb808(_0x5575cc){const _0x22c5bf=_0x432418,_0x3c35e3=_0x5e32b3['confirm']()[_0x22c5bf(0x1189)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20applications?')[_0x22c5bf(0x1cbe)](_0x22c5bf(0x16d3)+_0x1ce991[_0x22c5bf(0xdf1)][_0x22c5bf(0x402)]+_0x22c5bf(0x2452)+'\x20will\x20be\x20deleted.')[_0x22c5bf(0x4bd)](_0x22c5bf(0x2674))['targetEvent'](_0x5575cc)['ok']('OK')[_0x22c5bf(0x6c3)](_0x22c5bf(0x39a));_0x5e32b3[_0x22c5bf(0x2615)](_0x3c35e3)[_0x22c5bf(0x146b)](function(){const _0x397604=_0x22c5bf;_0x1ce991[_0x397604(0xdf1)][_0x397604(0x1df5)](function(_0x4b5299){const _0x368b7a=_0x397604;_0x3f65c0()['remove'](_0x1ce991[_0x368b7a(0x4b8)][_0x368b7a(0x19c7)],{'id':_0x4b5299['id']});}),_0x1ce991[_0x397604(0xdf1)]=[],_0xe52109();});}}const _0x47c3a8=_0x345f98;;_0x217e13[_0x313a4d(0x11c2)]=[_0x313a4d(0x10e8),'$q','toasty','api',_0x313a4d(0x67d),'mailAccounts',_0x313a4d(0xfc4),'$translate','Auth','crudPermissions'];function _0x217e13(_0x52b5c8,_0x13ad81,_0x4d4ee6,_0x3958e3,_0x2abdaf,_0x210a10,_0x2fdc74,_0x5f20d7,_0x4dd3f8,_0x3d1c90){const _0x32172d=_0x313a4d,_0x362799=this;_0x362799[_0x32172d(0x2321)]=_0x4dd3f8[_0x32172d(0xb12)](),_0x362799[_0x32172d(0x67d)]=_0x2abdaf,_0x362799[_0x32172d(0x2514)]=_0x3d1c90,_0x362799['realtime']=_0x2fdc74,_0x362799[_0x32172d(0x1fd6)]=[],_0x362799[_0x32172d(0xc4e)]=[],_0x362799['selectedItems']=[],_0x362799[_0x32172d(0x2e8)]=[],_0x362799['startingSelectedItems']=[],_0x362799['pendingChanges']=![],_0x362799[_0x32172d(0x3d4)]=_0x706e7b,_0x362799['saveAgents']=_0x370410,_0x362799[_0x32172d(0x13f3)]=_0x52ef38,_0x362799[_0x32172d(0x1f8a)]={'readOnly':!_0x362799[_0x32172d(0x2514)]['canEdit'],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':'name','line1':_0x32172d(0x286a),'line2':[_0x32172d(0x19eb),_0x32172d(0x113f)],'line3':'','labelAll':_0x5f20d7[_0x32172d(0xde)](_0x32172d(0x2050)),'labelSelected':_0x5f20d7[_0x32172d(0xde)](_0x32172d(0xf73)),'transferCallback':function(){const _0x5297f0=_0x32172d,_0x1d45d1=_0x3f65c0()['xorBy'](_0x362799['startingSelectedItems'],_0x362799['selectedItems'],'id');_0x362799[_0x5297f0(0x132)]=_0x3f65c0()[_0x5297f0(0x2635)](_0x1d45d1)?![]:!![];}};function _0x706e7b(){const _0x54c9eb=_0x32172d;return _0x4dd3f8[_0x54c9eb(0x23e0)](_0x54c9eb(0x174b))?_0x2a48b7()[_0x54c9eb(0x129e)](function(_0x4f9ca5){const _0x199ac9=_0x54c9eb;_0x4d4ee6[_0x199ac9(0x1980)]({'title':_0x4f9ca5[_0x199ac9(0x107b)]?_0x199ac9(0x262a)+_0x4f9ca5[_0x199ac9(0x107b)]+_0x199ac9(0x1315)+_0x4f9ca5['statusText']:_0x199ac9(0x557),'msg':_0x4f9ca5[_0x199ac9(0x107b)]?JSON[_0x199ac9(0x10bb)](_0x4f9ca5[_0x199ac9(0x524)]):_0x4f9ca5[_0x199ac9(0xd5f)]()});}):_0x3932b4()[_0x54c9eb(0x146b)](function(_0x408e78){const _0x12bd01=_0x54c9eb;return _0x362799[_0x12bd01(0x2146)]=_0x408e78,_0x2a48b7();})[_0x54c9eb(0x129e)](function(_0x237a4c){const _0x26e08d=_0x54c9eb;_0x4d4ee6[_0x26e08d(0x1980)]({'title':_0x237a4c[_0x26e08d(0x107b)]?_0x26e08d(0x262a)+_0x237a4c[_0x26e08d(0x107b)]+_0x26e08d(0x1315)+_0x237a4c['statusText']:_0x26e08d(0x557),'msg':_0x237a4c[_0x26e08d(0x107b)]?JSON[_0x26e08d(0x10bb)](_0x237a4c[_0x26e08d(0x524)]):_0x237a4c[_0x26e08d(0xd5f)]()});});}function _0x3932b4(){return _0x13ad81(function(_0xc8eae8,_0x5be3c6){const _0xd167cf=a0_0x3bb9;_0x3958e3[_0xd167cf(0x1366)][_0xd167cf(0x16b4)]({'userProfileId':_0x362799[_0xd167cf(0x2321)][_0xd167cf(0x209a)],'name':_0xd167cf(0xca8)})['$promise'][_0xd167cf(0x146b)](function(_0xe79edd){const _0x38fa5a=_0xd167cf,_0x4de6a6=_0xe79edd&&_0xe79edd['rows']?_0xe79edd[_0x38fa5a(0x19c7)][0x0]:null;_0xc8eae8(_0x4de6a6);})[_0xd167cf(0x129e)](function(_0x51a28c){_0x5be3c6(_0x51a28c);});});}function _0x2a48b7(){return _0x13ad81(function(_0x145ea4,_0x9362dd){const _0x1c779e=a0_0x3bb9;return _0x85313f()[_0x1c779e(0x146b)](function(_0x26f368){const _0xdfe617=_0x1c779e;return _0x362799[_0xdfe617(0x1fd6)]=_0x26f368[_0xdfe617(0x19c7)]?_0x26f368[_0xdfe617(0x19c7)]:[],_0x4dd3f8[_0xdfe617(0x23e0)]('admin')?_0x26f368:_0x362799[_0xdfe617(0x2146)]?_0x362799[_0xdfe617(0x2146)]['autoAssociation']?_0x26f368:_0xa77f07():null;})['then'](function(_0x17319c){const _0x2a1c52=_0x1c779e,_0x3b74a5=_0x17319c&&_0x17319c[_0x2a1c52(0x19c7)]?_0x17319c[_0x2a1c52(0x19c7)]:[];return _0x362799['allowedItems']=_0x3f65c0()[_0x2a1c52(0x205)](_0x3b74a5,function(_0x558f07){const _0x55a0b4=_0x2a1c52;return _0x3f65c0()['find'](_0x362799[_0x55a0b4(0x1fd6)],{'id':_0x4dd3f8[_0x55a0b4(0x23e0)]('admin')||_0x362799[_0x55a0b4(0x2146)][_0x55a0b4(0x11d2)]?_0x558f07['id']:_0x558f07[_0x55a0b4(0x18b8)]});}),_0x362799[_0x2a1c52(0x2e8)]=angular['copy'](_0x362799[_0x2a1c52(0xc4e)]),_0x362799[_0x2a1c52(0x1fd6)]['forEach'](function(_0x4baa4e){const _0x546067=_0x2a1c52,_0x5e3ec0=_0x3f65c0()[_0x546067(0xc84)](_0x362799[_0x546067(0xc4e)],{'id':_0x4baa4e['id']});_0x4dd3f8[_0x546067(0x23e0)](_0x546067(0x174b))?_0x4baa4e[_0x546067(0x146f)]=!![]:_0x4baa4e[_0x546067(0x146f)]=typeof _0x5e3ec0!=='undefined'?!![]:![];}),_0x298d69();})[_0x1c779e(0x146b)](function(_0x305e14){const _0x80ada8=_0x1c779e,_0x1a5ea7=_0x305e14&&_0x305e14[_0x80ada8(0x19c7)]?_0x305e14[_0x80ada8(0x19c7)]:[];_0x362799[_0x80ada8(0x1ecf)]=_0x3f65c0()[_0x80ada8(0x205)](_0x1a5ea7,function(_0x31bce8){const _0x103e9d=_0x80ada8,_0x580c77=_0x3f65c0()[_0x103e9d(0xc84)](_0x362799[_0x103e9d(0x1fd6)],{'id':_0x31bce8['id']});return _0x580c77[_0x103e9d(0x188d)]=_0x31bce8[_0x103e9d(0x1548)]?_0x103e9d(0x2505)+_0x31bce8['UserMailAccount'][_0x103e9d(0x188d)]:'',_0x580c77[_0x103e9d(0x113f)]=typeof _0x31bce8[_0x103e9d(0x113f)]!==_0x103e9d(0x2274)?'<'+_0x31bce8['internal']+'>':'',_0x580c77;}),_0x362799['startingSelectedItems']=angular[_0x80ada8(0x235a)](_0x362799[_0x80ada8(0x1ecf)]),_0x362799[_0x80ada8(0x1f8a)][_0x80ada8(0x1ecf)]=_0x362799['selectedItems'],_0x362799[_0x80ada8(0x1f8a)]['items']=_0x3f65c0()['differenceBy'](_0x362799[_0x80ada8(0xc4e)],_0x362799[_0x80ada8(0x1f8a)][_0x80ada8(0x1ecf)],'id'),_0x145ea4();})['catch'](function(_0x34d717){_0x9362dd(_0x34d717);});});}function _0xa77f07(){return _0x13ad81(function(_0x3c694a,_0x471774){const _0x29e0cf=a0_0x3bb9;return _0x3958e3[_0x29e0cf(0xdcc)][_0x29e0cf(0x16b4)]({'sectionId':_0x362799[_0x29e0cf(0x2146)]['id'],'nolimit':!![]})['$promise'][_0x29e0cf(0x146b)](function(_0x1840f0){_0x3c694a(_0x1840f0);})['catch'](function(_0xb3ddaf){_0x471774(_0xb3ddaf);});});}function _0x298d69(){return _0x13ad81(function(_0x51edf8,_0x3aaadf){const _0x432bae=a0_0x3bb9;return _0x3958e3[_0x432bae(0x67d)][_0x432bae(0x333)]({'id':_0x362799['mailAccount']['id'],'fields':'id,name,internal,fullname','nolimit':!![],'role':_0x432bae(0x1755)})[_0x432bae(0x2945)]['then'](function(_0x3de7c5){_0x51edf8(_0x3de7c5);})['catch'](function(_0x1a196d){_0x3aaadf(_0x1a196d);});});}function _0x85313f(){return _0x13ad81(function(_0x35ad39,_0x249adb){const _0x328724=a0_0x3bb9;return _0x3958e3[_0x328724(0xe7b)]['get']({'fields':_0x328724(0x1569),'nolimit':!![],'role':_0x328724(0x1755)})[_0x328724(0x2945)]['then'](function(_0x25a499){_0x35ad39(_0x25a499);})[_0x328724(0x129e)](function(_0x11d52a){_0x249adb(_0x11d52a);});});}function _0x1f8e2e(_0x18e9ea){return _0x13ad81(function(_0x58f9a0,_0x14dc79){const _0x56fb23=a0_0x3bb9;_0x3f65c0()[_0x56fb23(0x2635)](_0x18e9ea)?_0x58f9a0():_0x3958e3[_0x56fb23(0x67d)][_0x56fb23(0x135e)]({'id':_0x362799[_0x56fb23(0x67d)]['id'],'ids':_0x3f65c0()[_0x56fb23(0x205)](_0x18e9ea,'id')})[_0x56fb23(0x2945)]['then'](function(){_0x58f9a0();})['catch'](function(_0x141c92){_0x14dc79(_0x141c92);});});}function _0x223943(_0x17516d){return _0x13ad81(function(_0x3d34e4,_0x46b70b){const _0x264e44=a0_0x3bb9;_0x3f65c0()[_0x264e44(0x2635)](_0x17516d)?_0x3d34e4():_0x3958e3[_0x264e44(0x67d)][_0x264e44(0x1f53)]({'id':_0x362799[_0x264e44(0x67d)]['id'],'ids':_0x3f65c0()[_0x264e44(0x205)](_0x17516d,'id')})['$promise']['then'](function(){_0x3d34e4();})[_0x264e44(0x129e)](function(_0xa25395){_0x46b70b(_0xa25395);});});}function _0x370410(){const _0x499804=_0x32172d,_0x313358=_0x3f65c0()['differenceBy'](_0x362799[_0x499804(0xa65)],_0x362799['selectedItems'],'id'),_0x2c86d0=_0x3f65c0()[_0x499804(0x2796)](_0x362799['selectedItems'],_0x362799[_0x499804(0xa65)],'id');return _0x223943(_0x313358)[_0x499804(0x146b)](function(){return _0x1f8e2e(_0x2c86d0);})[_0x499804(0x146b)](function(){const _0xbb06fb=_0x499804;_0x362799[_0xbb06fb(0x132)]=![],_0x362799[_0xbb06fb(0x2e8)]=angular['copy'](_0x362799[_0xbb06fb(0xc4e)]),_0x362799['startingSelectedItems']=angular['copy'](_0x362799[_0xbb06fb(0x1ecf)]),_0x4d4ee6[_0xbb06fb(0x1c75)]({'title':_0xbb06fb(0x4c0),'msg':_0xbb06fb(0x26be)});})[_0x499804(0x129e)](function(_0x3b1e99){const _0x5b1952=_0x499804;_0x4d4ee6[_0x5b1952(0x1980)]({'title':_0x3b1e99[_0x5b1952(0x107b)]?_0x5b1952(0x262a)+_0x3b1e99[_0x5b1952(0x107b)]+_0x5b1952(0x1315)+_0x3b1e99[_0x5b1952(0x167f)]:'SYSTEM:LISTS_ASSOCIATION','msg':_0x3b1e99[_0x5b1952(0x107b)]?JSON[_0x5b1952(0x10bb)](_0x3b1e99['data']):_0x3b1e99[_0x5b1952(0xd5f)]()});});}function _0x52ef38(){_0x52b5c8['hide']();}}const _0x422d1b=_0x217e13;;_0x34c11d[_0x313a4d(0x11c2)]=[_0x313a4d(0x10e8),'$q',_0x313a4d(0x1fe4),_0x313a4d(0x267d),_0x313a4d(0x67d),_0x313a4d(0x247f),_0x313a4d(0xa87),_0x313a4d(0x2514)];function _0x34c11d(_0x4eb06f,_0x1d0de4,_0x6d05e1,_0x329ff1,_0x9e5059,_0x256d4b,_0x470dbc,_0x18df1c){const _0x1d5a18=_0x313a4d,_0x5db691=this;_0x5db691[_0x1d5a18(0x2321)]=_0x470dbc[_0x1d5a18(0xb12)](),_0x5db691[_0x1d5a18(0xcef)]=[],_0x5db691[_0x1d5a18(0x1189)]=_0x1d5a18(0x1c59)+(_0x329ff1['appType']||_0x329ff1[_0x1d5a18(0x1873)])[_0x1d5a18(0x1c37)](),_0x5db691[_0x1d5a18(0x1755)]=angular[_0x1d5a18(0x235a)](_0x329ff1),_0x5db691[_0x1d5a18(0x2514)]=_0x18df1c,_0x5db691[_0x1d5a18(0x855)]={};if(_0x5db691[_0x1d5a18(0x1755)]['appdata'])switch(_0x5db691[_0x1d5a18(0x1755)][_0x1d5a18(0x8f2)]?_0x5db691['agent'][_0x1d5a18(0x8f2)][_0x1d5a18(0x256e)]():_0x5db691[_0x1d5a18(0x1755)][_0x1d5a18(0x1873)]['toLowerCase']()){case'custom':break;case'dialogflow':{const _0x148d90=_0x5db691[_0x1d5a18(0x1755)][_0x1d5a18(0x168a)]['split'](',');_0x5db691[_0x1d5a18(0x1755)][_0x1d5a18(0x2293)]=_0x148d90[0x0],_0x5db691[_0x1d5a18(0x1755)]['language']=_0x148d90[0x1],_0x5db691['agent'][_0x1d5a18(0xaf3)]=_0x148d90[_0x1d5a18(0x1298)](0x2,_0x148d90[_0x1d5a18(0x402)])['join'](',');}break;case'dialogflowv2':{const _0x181190=_0x5db691[_0x1d5a18(0x1755)]['appdata'][_0x1d5a18(0x10c8)](',');_0x5db691['agent'][_0x1d5a18(0x153a)]=_0x181190[0x0],_0x5db691['agent'][_0x1d5a18(0x1392)]=_0x181190[0x1],_0x5db691['agent'][_0x1d5a18(0x2217)]=_0x181190[0x2],_0x5db691[_0x1d5a18(0x1755)][_0x1d5a18(0x90b)]=_0x181190[0x3],_0x5db691[_0x1d5a18(0x1755)][_0x1d5a18(0xaf3)]=_0x181190[_0x1d5a18(0x1298)](0x4,_0x181190[_0x1d5a18(0x402)])[_0x1d5a18(0xb47)](',');}break;case'amazonlex':{const _0x12b3ac=_0x5db691[_0x1d5a18(0x1755)][_0x1d5a18(0x168a)]['split'](',');_0x5db691[_0x1d5a18(0x1755)][_0x1d5a18(0x1651)]=_0x12b3ac[0x0],_0x5db691[_0x1d5a18(0x1755)][_0x1d5a18(0x252)]=_0x12b3ac[0x1],_0x5db691['agent'][_0x1d5a18(0x1039)]=_0x12b3ac[0x2],_0x5db691[_0x1d5a18(0x1755)][_0x1d5a18(0x8dd)]=_0x12b3ac[0x3],_0x5db691[_0x1d5a18(0x1755)]['welcomemessage']=_0x12b3ac[_0x1d5a18(0x1298)](0x4,_0x12b3ac[_0x1d5a18(0x402)])[_0x1d5a18(0xb47)](',');}break;case _0x1d5a18(0x1713):{const _0x7630fd=_0x5db691[_0x1d5a18(0x1755)][_0x1d5a18(0x168a)][_0x1d5a18(0x10c8)](',');_0x5db691[_0x1d5a18(0x1755)][_0x1d5a18(0x583)]=isNaN(_0x7630fd[0x0])?_0x7630fd[0x0]:parseInt(_0x7630fd[0x0],0xa),_0x5db691[_0x1d5a18(0x1755)][_0x1d5a18(0xa8d)]=_0x7630fd[_0x1d5a18(0x1298)](0x1,_0x7630fd[_0x1d5a18(0x402)])[_0x1d5a18(0xb47)](',');}break;case _0x1d5a18(0x7fd):_0x5db691[_0x1d5a18(0x1755)][_0x1d5a18(0xa8d)]=_0x5db691['agent'][_0x1d5a18(0x168a)];break;case'set':_0x5db691['agent'][_0x1d5a18(0x19eb)]=_0x5db691['agent'][_0x1d5a18(0x168a)][_0x1d5a18(0x10c8)]('=')[0x0],_0x5db691['agent'][_0x1d5a18(0x175d)]=_0x5db691[_0x1d5a18(0x1755)][_0x1d5a18(0x168a)]['split']('=')[0x1];break;case _0x1d5a18(0x1ecb):_0x5db691[_0x1d5a18(0x1755)]['project']=_0x5db691[_0x1d5a18(0x1755)][_0x1d5a18(0x168a)];break;default:{const _0x2038bd=_0x5db691['agent'][_0x1d5a18(0x168a)][_0x1d5a18(0x10c8)](',');_0x5db691[_0x1d5a18(0x1755)]['agent']=_0x3f65c0()['isEmpty'](_0x2038bd[0x0])?_0x2038bd[0x0]:isNaN(_0x2038bd[0x0])?_0x2038bd[0x0]:parseInt(_0x2038bd[0x0],0xa),_0x5db691['agent'][_0x1d5a18(0xa9c)]=_0x3f65c0()[_0x1d5a18(0x2635)](_0x2038bd[0x1])?_0x2038bd[0x1]:isNaN(_0x2038bd[0x1])?_0x2038bd[0x1]:parseInt(_0x2038bd[0x1],0xa);}break;}else _0x5db691[_0x1d5a18(0x1755)][_0x1d5a18(0xa9c)]=0x1e;_0x5db691[_0x1d5a18(0x1755)][_0x1d5a18(0x1142)]&&_0x5db691[_0x1d5a18(0x1755)]['type'][_0x1d5a18(0x256e)]()==='outbound'&&_0x5db691['agent'][_0x1d5a18(0x8f2)]['toLowerCase']()===_0x1d5a18(0x3bb)&&(_0x5db691[_0x1d5a18(0x1755)]['prefix']=_0x5db691[_0x1d5a18(0x1755)][_0x1d5a18(0x1d55)]?_0x5db691[_0x1d5a18(0x1755)]['phone'][_0x1d5a18(0x10c8)]('$')[0x0]:undefined,_0x5db691[_0x1d5a18(0x1755)][_0x1d5a18(0x1d43)]=_0x5db691['agent']['callerID']?_0x1d5a18(0x1b60)+_0x5db691[_0x1d5a18(0x1755)][_0x1d5a18(0x11be)]:undefined);_0x5db691[_0x1d5a18(0x1c19)]=_0x4b41fe,_0x5db691[_0x1d5a18(0x13f3)]=_0x40b49b,_0x470dbc[_0x1d5a18(0x23e0)](_0x1d5a18(0x174b))?_0x256d4b[_0x1d5a18(0xe7b)][_0x1d5a18(0x16b4)]({'fields':_0x1d5a18(0x7a7),'sort':'name','nolimit':_0x1d5a18(0x1185),'role':_0x1d5a18(0x1755)})['$promise'][_0x1d5a18(0x146b)](function(_0x441e03){_0x5db691['agents']=_0x441e03['rows']||[];})[_0x1d5a18(0x129e)](function(_0x2a9e1e){const _0xefa53a=_0x1d5a18;_0x6d05e1['error']({'title':_0x2a9e1e[_0xefa53a(0x107b)]?_0xefa53a(0x262a)+_0x2a9e1e['status']+_0xefa53a(0x1315)+_0x2a9e1e[_0xefa53a(0x167f)]:_0xefa53a(0x557),'msg':_0x2a9e1e[_0xefa53a(0x524)]?JSON[_0xefa53a(0x10bb)](_0x2a9e1e[_0xefa53a(0x524)]):_0x2a9e1e['toString']()});}):_0x256d4b[_0x1d5a18(0xe7b)][_0x1d5a18(0x16b4)]({'fields':_0x1d5a18(0x7a7),'sort':'name','nolimit':_0x1d5a18(0x1185),'role':_0x1d5a18(0x1755)})[_0x1d5a18(0x2945)][_0x1d5a18(0x146b)](function(_0x367164){const _0x2ce9f5=_0x1d5a18;_0x5db691[_0x2ce9f5(0x23c0)]=_0x367164[_0x2ce9f5(0x19c7)]||[];})['then'](function(){const _0x2aff57=_0x1d5a18;return _0x256d4b[_0x2aff57(0x1366)][_0x2aff57(0x16b4)]({'userProfileId':_0x5db691['currentUser'][_0x2aff57(0x209a)],'sectionId':0xca})[_0x2aff57(0x2945)];})[_0x1d5a18(0x146b)](function(_0x215147){const _0x31f702=_0x1d5a18,_0x7e194=_0x215147&&_0x215147[_0x31f702(0x19c7)]?_0x215147[_0x31f702(0x19c7)][0x0]:null;if(!_0x7e194){const _0x5a8804=[];let _0xcf05c6=null;_0x5db691[_0x31f702(0x1755)]&&(_0xcf05c6=_0x3f65c0()[_0x31f702(0xc84)](_0x5db691['agents'],{'name':_0x5db691[_0x31f702(0x1755)][_0x31f702(0x1755)]}));for(let _0x2fc0ba=0x0;_0x2fc0ba<_0x5db691['agents'][_0x31f702(0x402)];_0x2fc0ba++){_0xcf05c6&&_0x5db691['agents'][_0x2fc0ba]['id']===_0xcf05c6['id']&&(_0x5db691[_0x31f702(0x23c0)][_0x2fc0ba]['canSelect']=![],_0x5a8804[_0x31f702(0x1f47)](_0x5db691[_0x31f702(0x23c0)][_0x2fc0ba]));}_0x5db691[_0x31f702(0x23c0)]=_0x5a8804;}else{if(!_0x7e194[_0x31f702(0x11d2)])return _0x256d4b[_0x31f702(0xdcc)][_0x31f702(0x16b4)]({'sectionId':_0x7e194['id']})[_0x31f702(0x2945)][_0x31f702(0x146b)](function(_0x346cfc){const _0x580b71=_0x31f702,_0xd5dff1=_0x3f65c0()[_0x580b71(0x205)](_0x346cfc[_0x580b71(0x19c7)],function(_0x2faaa3){const _0x5ec878=_0x580b71;return _0x3f65c0()[_0x5ec878(0xc84)](_0x5db691['agents'],{'id':_0x2faaa3[_0x5ec878(0x18b8)]});});let _0x35dfb5=null;_0x5db691[_0x580b71(0x1755)]&&(_0x35dfb5=_0x3f65c0()[_0x580b71(0xc84)](_0x5db691[_0x580b71(0x23c0)],{'name':_0x5db691['agent'][_0x580b71(0x1755)]}));if(_0x35dfb5&&!_0x3f65c0()[_0x580b71(0x1360)](_0xd5dff1,['id',_0x35dfb5['id']])){const _0x9ae86a=_0x3f65c0()[_0x580b71(0xc84)](_0x5db691['agents'],{'id':_0x35dfb5['id']});_0x9ae86a[_0x580b71(0x8ff)]=![],_0xd5dff1[_0x580b71(0x1f47)](_0x9ae86a);}_0x5db691[_0x580b71(0x23c0)]=_0xd5dff1;});}})[_0x1d5a18(0x129e)](function(_0x827635){const _0x4b3237=_0x1d5a18;_0x6d05e1['error']({'title':_0x827635['status']?_0x4b3237(0x262a)+_0x827635['status']+_0x4b3237(0x1315)+_0x827635[_0x4b3237(0x167f)]:_0x4b3237(0x788),'msg':_0x827635[_0x4b3237(0x524)]?JSON[_0x4b3237(0x10bb)](_0x827635[_0x4b3237(0x524)]):_0x827635[_0x4b3237(0xd5f)]()});});function _0x4b41fe(){const _0x512aa3=_0x1d5a18;_0x5db691[_0x512aa3(0xcef)]=[];const _0x5d8cd0=[];_0x5db691[_0x512aa3(0x1755)][_0x512aa3(0x1142)]&&_0x5db691[_0x512aa3(0x1755)][_0x512aa3(0x1142)]['toLowerCase']()===_0x512aa3(0xc9c)&&_0x5db691[_0x512aa3(0x1755)][_0x512aa3(0x8f2)]===_0x512aa3(0x118b)&&(_0x5db691[_0x512aa3(0x1755)][_0x512aa3(0x1d55)]=_0x9e5059[_0x512aa3(0x1274)]?(_0x5db691[_0x512aa3(0x1755)][_0x512aa3(0x1e12)]||'')+_0x512aa3(0x2147)+_0x9e5059[_0x512aa3(0x1274)]+'}':(_0x5db691[_0x512aa3(0x1755)][_0x512aa3(0x1e12)]||'')+_0x512aa3(0x20df),_0x9e5059[_0x512aa3(0x1425)]!==_0x512aa3(0x1642)?_0x5db691[_0x512aa3(0x1755)][_0x512aa3(0xa08)]['indexOf'](_0x512aa3(0x1ea4))<0x0&&(_0x5db691[_0x512aa3(0x1755)][_0x512aa3(0xa08)]+=_0x512aa3(0x1ea4)):_0x5db691[_0x512aa3(0x1755)]['options']=_0x5db691['agent'][_0x512aa3(0xa08)][_0x512aa3(0x5f4)](_0x512aa3(0x1ea4),''));const _0x5eb231=_0x3f65c0()[_0x512aa3(0xc84)](_0x5db691[_0x512aa3(0x23c0)],{'name':_0x5db691[_0x512aa3(0x1755)]['agent']});_0x5eb231&&(_0x5db691[_0x512aa3(0x1755)][_0x512aa3(0xea2)]=_0x5eb231['id']);if(_0x5db691[_0x512aa3(0x1755)]['appType']&&_0x5db691[_0x512aa3(0x1755)]['appType']===_0x512aa3(0x1802)){}else switch((_0x5db691[_0x512aa3(0x1755)]['app']||_0x5db691['agent']['appType'])[_0x512aa3(0x256e)]()){case _0x512aa3(0x26ba):_0x5db691[_0x512aa3(0x1755)][_0x512aa3(0x168a)]=_0x5db691[_0x512aa3(0x1755)][_0x512aa3(0x19eb)]+'='+_0x5db691[_0x512aa3(0x1755)][_0x512aa3(0x175d)];break;case _0x512aa3(0x1802):break;default:_0x5d8cd0[0x0]=_0x5db691[_0x512aa3(0x1755)][_0x512aa3(0x1755)],_0x5d8cd0[0x1]=_0x5db691[_0x512aa3(0x1755)][_0x512aa3(0xa9c)],_0x5db691[_0x512aa3(0x1755)][_0x512aa3(0x168a)]=_0x5d8cd0[_0x512aa3(0xb47)](',');}_0x40b49b(_0x5db691[_0x512aa3(0x1755)]);}function _0x40b49b(_0x17418d){const _0x505164=_0x1d5a18;_0x4eb06f[_0x505164(0x2458)](_0x17418d);}}const _0x50b83d=_0x34c11d;;_0x58ad97[_0x313a4d(0x11c2)]=[_0x313a4d(0x10e8),'$q',_0x313a4d(0x1fe4),_0x313a4d(0x267d),_0x313a4d(0x67d),_0x313a4d(0x247f),_0x313a4d(0xa87),_0x313a4d(0x2514)];function _0x58ad97(_0x1725c7,_0x4de1c1,_0x2a367d,_0x3ceb0e,_0x51ab7e,_0x2a55c0,_0x36d859,_0x6f3884){const _0x3372fd=_0x313a4d,_0x186998=this;_0x186998[_0x3372fd(0x2321)]=_0x36d859[_0x3372fd(0xb12)](),_0x186998[_0x3372fd(0xcef)]=[],_0x186998[_0x3372fd(0x1189)]=_0x3372fd(0x1c59)+(_0x3ceb0e[_0x3372fd(0x8f2)]||_0x3ceb0e[_0x3372fd(0x1873)])[_0x3372fd(0x1c37)](),_0x186998['autoreply']=angular[_0x3372fd(0x235a)](_0x3ceb0e),_0x186998[_0x3372fd(0x2514)]=_0x6f3884,_0x186998['hasModulePermissions']={};if(_0x186998['autoreply'][_0x3372fd(0x168a)])switch(_0x186998[_0x3372fd(0x1713)]['appType']?_0x186998[_0x3372fd(0x1713)][_0x3372fd(0x8f2)][_0x3372fd(0x256e)]():_0x186998[_0x3372fd(0x1713)]['app'][_0x3372fd(0x256e)]()){case _0x3372fd(0x1802):break;case _0x3372fd(0xeaa):{const _0x164db1=_0x186998[_0x3372fd(0x1713)][_0x3372fd(0x168a)][_0x3372fd(0x10c8)](',');_0x186998['autoreply']['key']=_0x164db1[0x0],_0x186998[_0x3372fd(0x1713)][_0x3372fd(0x90b)]=_0x164db1[0x1],_0x186998['autoreply'][_0x3372fd(0xaf3)]=_0x164db1['slice'](0x2,_0x164db1[_0x3372fd(0x402)])[_0x3372fd(0xb47)](',');}break;case _0x3372fd(0xa46):{const _0x324395=_0x186998[_0x3372fd(0x1713)][_0x3372fd(0x168a)][_0x3372fd(0x10c8)](',');_0x186998[_0x3372fd(0x1713)]['projectId']=_0x324395[0x0],_0x186998[_0x3372fd(0x1713)][_0x3372fd(0x1392)]=_0x324395[0x1],_0x186998[_0x3372fd(0x1713)][_0x3372fd(0x2217)]=_0x324395[0x2],_0x186998[_0x3372fd(0x1713)]['language']=_0x324395[0x3],_0x186998['autoreply'][_0x3372fd(0xaf3)]=_0x324395[_0x3372fd(0x1298)](0x4,_0x324395[_0x3372fd(0x402)])['join'](',');}break;case _0x3372fd(0x17d6):{const _0x105f63=_0x186998[_0x3372fd(0x1713)][_0x3372fd(0x168a)][_0x3372fd(0x10c8)](',');_0x186998[_0x3372fd(0x1713)][_0x3372fd(0x1651)]=_0x105f63[0x0],_0x186998[_0x3372fd(0x1713)][_0x3372fd(0x252)]=_0x105f63[0x1],_0x186998[_0x3372fd(0x1713)]['lexregion']=_0x105f63[0x2],_0x186998[_0x3372fd(0x1713)][_0x3372fd(0x8dd)]=_0x105f63[0x3],_0x186998[_0x3372fd(0x1713)]['welcomemessage']=_0x105f63['slice'](0x4,_0x105f63['length'])['join'](',');}break;case _0x3372fd(0x1713):{const _0x26086c=_0x186998[_0x3372fd(0x1713)][_0x3372fd(0x168a)][_0x3372fd(0x10c8)](',');_0x186998['autoreply'][_0x3372fd(0x583)]=isNaN(_0x26086c[0x0])?_0x26086c[0x0]:parseInt(_0x26086c[0x0],0xa),_0x186998[_0x3372fd(0x1713)][_0x3372fd(0xa8d)]=_0x26086c['slice'](0x1,_0x26086c[_0x3372fd(0x402)])['join'](',');}break;case _0x3372fd(0x7fd):_0x186998['autoreply'][_0x3372fd(0xa8d)]=_0x186998['autoreply'][_0x3372fd(0x168a)];break;case'set':_0x186998[_0x3372fd(0x1713)]['name']=_0x186998[_0x3372fd(0x1713)][_0x3372fd(0x168a)][_0x3372fd(0x10c8)]('=')[0x0],_0x186998[_0x3372fd(0x1713)]['value']=_0x186998[_0x3372fd(0x1713)][_0x3372fd(0x168a)][_0x3372fd(0x10c8)]('=')[0x1];break;case _0x3372fd(0x1ecb):_0x186998[_0x3372fd(0x1713)][_0x3372fd(0x9e0)]=_0x186998['autoreply'][_0x3372fd(0x168a)];break;default:{const _0x437e84=_0x186998[_0x3372fd(0x1713)][_0x3372fd(0x168a)][_0x3372fd(0x10c8)](',');_0x186998['autoreply']['times']=_0x3f65c0()[_0x3372fd(0x2635)](_0x437e84[0x0])?_0x437e84[0x0]:isNaN(_0x437e84[0x0])?_0x437e84[0x0]:parseInt(_0x437e84[0x0],0xa),_0x186998[_0x3372fd(0x1713)][_0x3372fd(0xa8d)]=_0x3f65c0()[_0x3372fd(0x2635)](_0x437e84[0x1])?_0x437e84[0x1]:isNaN(_0x437e84[0x1])?_0x437e84[0x1]:parseInt(_0x437e84[0x1],0xa);}break;}else _0x186998[_0x3372fd(0x1713)][_0x3372fd(0x583)]=0x1;_0x186998[_0x3372fd(0x1713)][_0x3372fd(0x1142)]&&_0x186998[_0x3372fd(0x1713)]['type'][_0x3372fd(0x256e)]()===_0x3372fd(0xc9c)&&_0x186998[_0x3372fd(0x1713)][_0x3372fd(0x8f2)][_0x3372fd(0x256e)]()==='outbounddial'&&(_0x186998[_0x3372fd(0x1713)]['prefix']=_0x186998[_0x3372fd(0x1713)]['phone']?_0x186998[_0x3372fd(0x1713)][_0x3372fd(0x1d55)]['split']('$')[0x0]:undefined,_0x186998[_0x3372fd(0x1713)][_0x3372fd(0x1d43)]=_0x186998[_0x3372fd(0x1713)][_0x3372fd(0x11be)]?_0x3372fd(0x1b60)+_0x186998[_0x3372fd(0x1713)][_0x3372fd(0x11be)]:undefined);_0x186998['saveMailAccountApp']=_0x5e1c94,_0x186998[_0x3372fd(0x13f3)]=_0x3c559b;function _0x5e1c94(){const _0x402245=_0x3372fd;_0x186998[_0x402245(0xcef)]=[];const _0x4738d1=[];_0x186998['autoreply'][_0x402245(0x1142)]&&_0x186998[_0x402245(0x1713)]['type'][_0x402245(0x256e)]()===_0x402245(0xc9c)&&_0x186998['autoreply'][_0x402245(0x8f2)]===_0x402245(0x118b)&&(_0x186998[_0x402245(0x1713)][_0x402245(0x1d55)]=_0x51ab7e[_0x402245(0x1274)]?(_0x186998['autoreply'][_0x402245(0x1e12)]||'')+'${EXTEN:'+_0x51ab7e['cutdigits']+'}':(_0x186998['autoreply']['prefix']||'')+_0x402245(0x20df),_0x51ab7e[_0x402245(0x1425)]!==_0x402245(0x1642)?_0x186998[_0x402245(0x1713)]['options'][_0x402245(0x172b)](_0x402245(0x1ea4))<0x0&&(_0x186998[_0x402245(0x1713)][_0x402245(0xa08)]+='U(xcally-mixmonitor-context)'):_0x186998['autoreply']['options']=_0x186998[_0x402245(0x1713)][_0x402245(0xa08)][_0x402245(0x5f4)](_0x402245(0x1ea4),''));if(_0x186998['autoreply'][_0x402245(0x8f2)]&&_0x186998[_0x402245(0x1713)][_0x402245(0x8f2)]==='custom'){}else switch((_0x186998['autoreply'][_0x402245(0x1873)]||_0x186998['autoreply'][_0x402245(0x8f2)])[_0x402245(0x256e)]()){case _0x402245(0x26ba):_0x186998['autoreply'][_0x402245(0x168a)]=_0x186998['autoreply'][_0x402245(0x19eb)]+'='+_0x186998[_0x402245(0x1713)][_0x402245(0x175d)];break;case _0x402245(0x1802):break;default:_0x4738d1[0x0]=_0x186998['autoreply'][_0x402245(0x583)],_0x4738d1[0x1]=_0x186998['autoreply'][_0x402245(0xa8d)],_0x186998[_0x402245(0x1713)][_0x402245(0x168a)]=_0x4738d1['join'](',');}_0x3c559b(_0x186998['autoreply']);}function _0x3c559b(_0x48346b){const _0x507c91=_0x3372fd;_0x1725c7[_0x507c91(0x2458)](_0x48346b);}}const _0x38d40c=_0x58ad97;;_0x3ba13b[_0x313a4d(0x11c2)]=['$mdDialog','$q','toasty',_0x313a4d(0x267d),'mailAccount','api',_0x313a4d(0xa87),'crudPermissions'];function _0x3ba13b(_0xf9bd3c,_0x976f81,_0x4b52c3,_0x5ad2d6,_0x271c9e,_0x55a8e2,_0x3ce076,_0x4f2b18){const _0x45e645=_0x313a4d,_0x40f682=this;_0x40f682[_0x45e645(0x2321)]=_0x3ce076[_0x45e645(0xb12)](),_0x40f682[_0x45e645(0xcef)]=[],_0x40f682[_0x45e645(0x1189)]=_0x45e645(0x1c59)+(_0x5ad2d6[_0x45e645(0x8f2)]||_0x5ad2d6[_0x45e645(0x1873)])[_0x45e645(0x1c37)](),_0x40f682['close']=angular[_0x45e645(0x235a)](_0x5ad2d6),_0x40f682[_0x45e645(0x2514)]=_0x4f2b18,_0x40f682[_0x45e645(0x855)]={};if(_0x40f682[_0x45e645(0xa7c)][_0x45e645(0x168a)])switch(_0x40f682[_0x45e645(0xa7c)][_0x45e645(0x8f2)]?_0x40f682[_0x45e645(0xa7c)][_0x45e645(0x8f2)][_0x45e645(0x256e)]():_0x40f682[_0x45e645(0xa7c)][_0x45e645(0x1873)][_0x45e645(0x256e)]()){case _0x45e645(0x1802):break;case _0x45e645(0xeaa):{const _0x8c1bee=_0x40f682[_0x45e645(0xa7c)][_0x45e645(0x168a)]['split'](',');_0x40f682[_0x45e645(0xa7c)][_0x45e645(0x2293)]=_0x8c1bee[0x0],_0x40f682['close'][_0x45e645(0x90b)]=_0x8c1bee[0x1],_0x40f682[_0x45e645(0xa7c)][_0x45e645(0xaf3)]=_0x8c1bee[_0x45e645(0x1298)](0x2,_0x8c1bee[_0x45e645(0x402)])[_0x45e645(0xb47)](',');}break;case'dialogflowv2':{const _0xa24407=_0x40f682[_0x45e645(0xa7c)][_0x45e645(0x168a)][_0x45e645(0x10c8)](',');_0x40f682[_0x45e645(0xa7c)][_0x45e645(0x153a)]=_0xa24407[0x0],_0x40f682[_0x45e645(0xa7c)][_0x45e645(0x1392)]=_0xa24407[0x1],_0x40f682[_0x45e645(0xa7c)][_0x45e645(0x2217)]=_0xa24407[0x2],_0x40f682[_0x45e645(0xa7c)][_0x45e645(0x90b)]=_0xa24407[0x3],_0x40f682[_0x45e645(0xa7c)][_0x45e645(0xaf3)]=_0xa24407['slice'](0x4,_0xa24407[_0x45e645(0x402)])[_0x45e645(0xb47)](',');}break;case'amazonlex':{const _0x1e7d8f=_0x40f682[_0x45e645(0xa7c)][_0x45e645(0x168a)][_0x45e645(0x10c8)](',');_0x40f682[_0x45e645(0xa7c)][_0x45e645(0x1651)]=_0x1e7d8f[0x0],_0x40f682[_0x45e645(0xa7c)]['secretaccesskey']=_0x1e7d8f[0x1],_0x40f682['close']['lexregion']=_0x1e7d8f[0x2],_0x40f682[_0x45e645(0xa7c)][_0x45e645(0x8dd)]=_0x1e7d8f[0x3],_0x40f682['close'][_0x45e645(0xaf3)]=_0x1e7d8f[_0x45e645(0x1298)](0x4,_0x1e7d8f[_0x45e645(0x402)])[_0x45e645(0xb47)](',');}break;case _0x45e645(0x1713):{const _0x785597=_0x40f682[_0x45e645(0xa7c)][_0x45e645(0x168a)]['split'](',');_0x40f682[_0x45e645(0xa7c)]['times']=isNaN(_0x785597[0x0])?_0x785597[0x0]:parseInt(_0x785597[0x0],0xa),_0x40f682[_0x45e645(0xa7c)][_0x45e645(0xa8d)]=_0x785597[_0x45e645(0x1298)](0x1,_0x785597[_0x45e645(0x402)])[_0x45e645(0xb47)](',');}break;case _0x45e645(0x7fd):_0x40f682['close'][_0x45e645(0xa8d)]=_0x40f682[_0x45e645(0xa7c)][_0x45e645(0x168a)];break;case _0x45e645(0x26ba):_0x40f682['close'][_0x45e645(0x19eb)]=_0x40f682[_0x45e645(0xa7c)][_0x45e645(0x168a)][_0x45e645(0x10c8)]('=')[0x0],_0x40f682[_0x45e645(0xa7c)][_0x45e645(0x175d)]=_0x40f682[_0x45e645(0xa7c)][_0x45e645(0x168a)][_0x45e645(0x10c8)]('=')[0x1];break;case'agi':_0x40f682[_0x45e645(0xa7c)][_0x45e645(0x9e0)]=_0x40f682[_0x45e645(0xa7c)]['appdata'];break;default:{const _0x210a2c=_0x40f682[_0x45e645(0xa7c)][_0x45e645(0x168a)]['split'](',');_0x40f682[_0x45e645(0xa7c)]['disposition']=_0x3f65c0()[_0x45e645(0x2635)](_0x210a2c[0x0])?_0x210a2c[0x0]:isNaN(_0x210a2c[0x0])?_0x210a2c[0x0]:parseInt(_0x210a2c[0x0],0xa);}break;}else{}_0x40f682[_0x45e645(0xa7c)]['type']&&_0x40f682[_0x45e645(0xa7c)][_0x45e645(0x1142)][_0x45e645(0x256e)]()===_0x45e645(0xc9c)&&_0x40f682['close'][_0x45e645(0x8f2)][_0x45e645(0x256e)]()===_0x45e645(0x3bb)&&(_0x40f682[_0x45e645(0xa7c)]['prefix']=_0x40f682[_0x45e645(0xa7c)][_0x45e645(0x1d55)]?_0x40f682[_0x45e645(0xa7c)][_0x45e645(0x1d55)][_0x45e645(0x10c8)]('$')[0x0]:undefined,_0x40f682[_0x45e645(0xa7c)][_0x45e645(0x1d43)]=_0x40f682['close'][_0x45e645(0x11be)]?'CALLERID(all)='+_0x40f682[_0x45e645(0xa7c)][_0x45e645(0x11be)]:undefined);_0x40f682[_0x45e645(0x1c19)]=_0x48d40e,_0x40f682[_0x45e645(0x13f3)]=_0x113652;function _0x48d40e(){const _0x3b52d9=_0x45e645;_0x40f682[_0x3b52d9(0xcef)]=[];const _0xf6a54d=[];_0x40f682[_0x3b52d9(0xa7c)]['type']&&_0x40f682[_0x3b52d9(0xa7c)]['type'][_0x3b52d9(0x256e)]()==='outbound'&&_0x40f682[_0x3b52d9(0xa7c)]['appType']==='outboundDial'&&(_0x40f682['close'][_0x3b52d9(0x1d55)]=_0x271c9e[_0x3b52d9(0x1274)]?(_0x40f682['close'][_0x3b52d9(0x1e12)]||'')+_0x3b52d9(0x2147)+_0x271c9e[_0x3b52d9(0x1274)]+'}':(_0x40f682[_0x3b52d9(0xa7c)][_0x3b52d9(0x1e12)]||'')+_0x3b52d9(0x20df),_0x271c9e[_0x3b52d9(0x1425)]!=='none'?_0x40f682[_0x3b52d9(0xa7c)]['options'][_0x3b52d9(0x172b)](_0x3b52d9(0x1ea4))<0x0&&(_0x40f682[_0x3b52d9(0xa7c)][_0x3b52d9(0xa08)]+='U(xcally-mixmonitor-context)'):_0x40f682[_0x3b52d9(0xa7c)]['options']=_0x40f682['close'][_0x3b52d9(0xa08)][_0x3b52d9(0x5f4)](_0x3b52d9(0x1ea4),''));if(_0x40f682[_0x3b52d9(0xa7c)]['appType']&&_0x40f682[_0x3b52d9(0xa7c)]['appType']===_0x3b52d9(0x1802)){}else switch((_0x40f682[_0x3b52d9(0xa7c)]['app']||_0x40f682[_0x3b52d9(0xa7c)][_0x3b52d9(0x8f2)])[_0x3b52d9(0x256e)]()){case _0x3b52d9(0x26ba):_0x40f682[_0x3b52d9(0xa7c)]['appdata']=_0x40f682[_0x3b52d9(0xa7c)][_0x3b52d9(0x19eb)]+'='+_0x40f682[_0x3b52d9(0xa7c)]['value'];break;case _0x3b52d9(0x1802):break;default:_0xf6a54d[0x0]=_0x40f682[_0x3b52d9(0xa7c)][_0x3b52d9(0x9e1)],_0x40f682[_0x3b52d9(0xa7c)][_0x3b52d9(0x168a)]=_0xf6a54d['join'](',');}_0x113652(_0x40f682['close']);}function _0x113652(_0x4378eb){_0xf9bd3c['hide'](_0x4378eb);}}const _0x38cdeb=_0x3ba13b;;_0x40c2a0[_0x313a4d(0x11c2)]=['$mdDialog','$q','toasty',_0x313a4d(0x267d),_0x313a4d(0x67d),_0x313a4d(0x247f),'Auth',_0x313a4d(0x2514)];function _0x40c2a0(_0x1ce219,_0x27a86f,_0x58e913,_0x333c09,_0x3917aa,_0x1e75da,_0x928064,_0x4d3eb9){const _0x845abe=_0x313a4d,_0x5ef1bb=this;_0x5ef1bb['currentUser']=_0x928064[_0x845abe(0xb12)](),_0x5ef1bb[_0x845abe(0xcef)]=[],_0x5ef1bb[_0x845abe(0x1189)]=_0x845abe(0x1c59)+(_0x333c09['appType']||_0x333c09[_0x845abe(0x1873)])['toUpperCase'](),_0x5ef1bb[_0x845abe(0x609)]=angular[_0x845abe(0x235a)](_0x333c09),_0x5ef1bb[_0x845abe(0x2514)]=_0x4d3eb9,_0x5ef1bb['hasModulePermissions']={};if(_0x5ef1bb['gotoif'][_0x845abe(0x168a)])switch(_0x5ef1bb[_0x845abe(0x609)][_0x845abe(0x8f2)]?_0x5ef1bb[_0x845abe(0x609)][_0x845abe(0x8f2)][_0x845abe(0x256e)]():_0x5ef1bb[_0x845abe(0x609)]['app'][_0x845abe(0x256e)]()){case'custom':break;case _0x845abe(0xeaa):{const _0x581c31=_0x5ef1bb[_0x845abe(0x609)][_0x845abe(0x168a)][_0x845abe(0x10c8)](',');_0x5ef1bb['gotoif'][_0x845abe(0x2293)]=_0x581c31[0x0],_0x5ef1bb[_0x845abe(0x609)][_0x845abe(0x90b)]=_0x581c31[0x1],_0x5ef1bb['gotoif'][_0x845abe(0xaf3)]=_0x581c31['slice'](0x2,_0x581c31[_0x845abe(0x402)])[_0x845abe(0xb47)](',');}break;case _0x845abe(0xa46):{const _0x24c713=_0x5ef1bb['gotoif'][_0x845abe(0x168a)]['split'](',');_0x5ef1bb[_0x845abe(0x609)][_0x845abe(0x153a)]=_0x24c713[0x0],_0x5ef1bb[_0x845abe(0x609)][_0x845abe(0x1392)]=_0x24c713[0x1],_0x5ef1bb[_0x845abe(0x609)][_0x845abe(0x2217)]=_0x24c713[0x2],_0x5ef1bb[_0x845abe(0x609)][_0x845abe(0x90b)]=_0x24c713[0x3],_0x5ef1bb[_0x845abe(0x609)][_0x845abe(0xaf3)]=_0x24c713[_0x845abe(0x1298)](0x4,_0x24c713['length'])[_0x845abe(0xb47)](',');}break;case _0x845abe(0x17d6):{const _0x789edc=_0x5ef1bb['gotoif'][_0x845abe(0x168a)][_0x845abe(0x10c8)](',');_0x5ef1bb[_0x845abe(0x609)][_0x845abe(0x1651)]=_0x789edc[0x0],_0x5ef1bb[_0x845abe(0x609)]['secretaccesskey']=_0x789edc[0x1],_0x5ef1bb[_0x845abe(0x609)][_0x845abe(0x1039)]=_0x789edc[0x2],_0x5ef1bb[_0x845abe(0x609)][_0x845abe(0x8dd)]=_0x789edc[0x3],_0x5ef1bb[_0x845abe(0x609)][_0x845abe(0xaf3)]=_0x789edc[_0x845abe(0x1298)](0x4,_0x789edc['length'])[_0x845abe(0xb47)](',');}break;case _0x845abe(0x1713):{const _0x5bc511=_0x5ef1bb[_0x845abe(0x609)][_0x845abe(0x168a)][_0x845abe(0x10c8)](',');_0x5ef1bb[_0x845abe(0x609)][_0x845abe(0x583)]=isNaN(_0x5bc511[0x0])?_0x5bc511[0x0]:parseInt(_0x5bc511[0x0],0xa),_0x5ef1bb[_0x845abe(0x609)]['text']=_0x5bc511[_0x845abe(0x1298)](0x1,_0x5bc511[_0x845abe(0x402)])[_0x845abe(0xb47)](',');}break;case _0x845abe(0x7fd):_0x5ef1bb['gotoif']['text']=_0x5ef1bb['gotoif'][_0x845abe(0x168a)];break;case'set':_0x5ef1bb[_0x845abe(0x609)][_0x845abe(0x19eb)]=_0x5ef1bb[_0x845abe(0x609)]['appdata'][_0x845abe(0x10c8)]('=')[0x0],_0x5ef1bb[_0x845abe(0x609)][_0x845abe(0x175d)]=_0x5ef1bb[_0x845abe(0x609)][_0x845abe(0x168a)]['split']('=')[0x1];break;case _0x845abe(0x1ecb):_0x5ef1bb[_0x845abe(0x609)][_0x845abe(0x9e0)]=_0x5ef1bb[_0x845abe(0x609)][_0x845abe(0x168a)];break;default:{const _0x379b31=_0x5ef1bb[_0x845abe(0x609)][_0x845abe(0x168a)]['split'](',');_0x5ef1bb[_0x845abe(0x609)][_0x845abe(0x115f)]=_0x3f65c0()[_0x845abe(0x2635)](_0x379b31[0x0])?_0x379b31[0x0]:isNaN(_0x379b31[0x0])?_0x379b31[0x0]:parseInt(_0x379b31[0x0],0xa),_0x5ef1bb[_0x845abe(0x609)][_0x845abe(0x1d78)]=_0x3f65c0()[_0x845abe(0x2635)](_0x379b31[0x1])?_0x379b31[0x1]:isNaN(_0x379b31[0x1])?_0x379b31[0x1]:parseInt(_0x379b31[0x1],0xa),_0x5ef1bb[_0x845abe(0x609)][_0x845abe(0x28e1)]=_0x3f65c0()['isEmpty'](_0x379b31[0x2])?_0x379b31[0x2]:isNaN(_0x379b31[0x2])?_0x379b31[0x2]:parseInt(_0x379b31[0x2],0xa);}break;}else{}_0x5ef1bb['gotoif'][_0x845abe(0x1142)]&&_0x5ef1bb['gotoif'][_0x845abe(0x1142)][_0x845abe(0x256e)]()===_0x845abe(0xc9c)&&_0x5ef1bb[_0x845abe(0x609)][_0x845abe(0x8f2)][_0x845abe(0x256e)]()===_0x845abe(0x3bb)&&(_0x5ef1bb[_0x845abe(0x609)]['prefix']=_0x5ef1bb[_0x845abe(0x609)][_0x845abe(0x1d55)]?_0x5ef1bb['gotoif'][_0x845abe(0x1d55)]['split']('$')[0x0]:undefined,_0x5ef1bb['gotoif'][_0x845abe(0x1d43)]=_0x5ef1bb[_0x845abe(0x609)]['callerID']?'CALLERID(all)='+_0x5ef1bb[_0x845abe(0x609)][_0x845abe(0x11be)]:undefined);_0x5ef1bb[_0x845abe(0x1c19)]=_0x5129d7,_0x5ef1bb[_0x845abe(0x13f3)]=_0x194b4a;function _0x5129d7(){const _0x4e1699=_0x845abe;_0x5ef1bb[_0x4e1699(0xcef)]=[];const _0x19ed63=[];_0x5ef1bb[_0x4e1699(0x609)][_0x4e1699(0x1142)]&&_0x5ef1bb[_0x4e1699(0x609)]['type'][_0x4e1699(0x256e)]()==='outbound'&&_0x5ef1bb[_0x4e1699(0x609)]['appType']===_0x4e1699(0x118b)&&(_0x5ef1bb[_0x4e1699(0x609)][_0x4e1699(0x1d55)]=_0x3917aa[_0x4e1699(0x1274)]?(_0x5ef1bb[_0x4e1699(0x609)][_0x4e1699(0x1e12)]||'')+_0x4e1699(0x2147)+_0x3917aa[_0x4e1699(0x1274)]+'}':(_0x5ef1bb['gotoif']['prefix']||'')+'${EXTEN}',_0x3917aa[_0x4e1699(0x1425)]!==_0x4e1699(0x1642)?_0x5ef1bb[_0x4e1699(0x609)][_0x4e1699(0xa08)][_0x4e1699(0x172b)](_0x4e1699(0x1ea4))<0x0&&(_0x5ef1bb[_0x4e1699(0x609)]['options']+=_0x4e1699(0x1ea4)):_0x5ef1bb[_0x4e1699(0x609)][_0x4e1699(0xa08)]=_0x5ef1bb[_0x4e1699(0x609)]['options'][_0x4e1699(0x5f4)](_0x4e1699(0x1ea4),''));if(_0x5ef1bb[_0x4e1699(0x609)][_0x4e1699(0x8f2)]&&_0x5ef1bb['gotoif'][_0x4e1699(0x8f2)]==='custom'){}else switch((_0x5ef1bb[_0x4e1699(0x609)][_0x4e1699(0x1873)]||_0x5ef1bb[_0x4e1699(0x609)]['appType'])[_0x4e1699(0x256e)]()){case _0x4e1699(0x26ba):_0x5ef1bb['gotoif'][_0x4e1699(0x168a)]=_0x5ef1bb[_0x4e1699(0x609)][_0x4e1699(0x19eb)]+'='+_0x5ef1bb['gotoif'][_0x4e1699(0x175d)];break;case _0x4e1699(0x1802):break;default:_0x19ed63[0x0]=_0x5ef1bb[_0x4e1699(0x609)][_0x4e1699(0x115f)],_0x19ed63[0x1]=_0x5ef1bb['gotoif'][_0x4e1699(0x1d78)],_0x19ed63[0x2]=_0x5ef1bb[_0x4e1699(0x609)][_0x4e1699(0x28e1)],_0x5ef1bb[_0x4e1699(0x609)][_0x4e1699(0x168a)]=_0x19ed63[_0x4e1699(0xb47)](',');}_0x194b4a(_0x5ef1bb['gotoif']);}function _0x194b4a(_0x54cdc7){const _0xfc18a0=_0x845abe;_0x1ce219[_0xfc18a0(0x2458)](_0x54cdc7);}}const _0x4bbee9=_0x40c2a0;;_0x1f87e4['$inject']=[_0x313a4d(0x10e8),'$q',_0x313a4d(0x1fe4),'mailAccountApp','mailAccount',_0x313a4d(0x247f),_0x313a4d(0xa87),'crudPermissions'];function _0x1f87e4(_0x42a795,_0x54277c,_0x2cf3f6,_0x14c892,_0x3d4357,_0x5516c3,_0x17d4c7,_0x242fc5){const _0x5ab82b=_0x313a4d,_0x43457e=this;_0x43457e[_0x5ab82b(0x2321)]=_0x17d4c7[_0x5ab82b(0xb12)](),_0x43457e[_0x5ab82b(0xcef)]=[],_0x43457e[_0x5ab82b(0x1189)]=_0x5ab82b(0x1c59)+(_0x14c892[_0x5ab82b(0x8f2)]||_0x14c892[_0x5ab82b(0x1873)])[_0x5ab82b(0x1c37)](),_0x43457e[_0x5ab82b(0x28f4)]=angular[_0x5ab82b(0x235a)](_0x14c892),_0x43457e[_0x5ab82b(0x2514)]=_0x242fc5,_0x43457e[_0x5ab82b(0x855)]={};if(_0x43457e['gotop'][_0x5ab82b(0x168a)])switch(_0x43457e[_0x5ab82b(0x28f4)]['appType']?_0x43457e['gotop'][_0x5ab82b(0x8f2)][_0x5ab82b(0x256e)]():_0x43457e[_0x5ab82b(0x28f4)][_0x5ab82b(0x1873)][_0x5ab82b(0x256e)]()){case'custom':break;case _0x5ab82b(0xeaa):{const _0x8f81d7=_0x43457e[_0x5ab82b(0x28f4)][_0x5ab82b(0x168a)][_0x5ab82b(0x10c8)](',');_0x43457e['gotop'][_0x5ab82b(0x2293)]=_0x8f81d7[0x0],_0x43457e['gotop'][_0x5ab82b(0x90b)]=_0x8f81d7[0x1],_0x43457e['gotop'][_0x5ab82b(0xaf3)]=_0x8f81d7[_0x5ab82b(0x1298)](0x2,_0x8f81d7['length'])[_0x5ab82b(0xb47)](',');}break;case _0x5ab82b(0xa46):{const _0x1ae459=_0x43457e[_0x5ab82b(0x28f4)]['appdata'][_0x5ab82b(0x10c8)](',');_0x43457e['gotop'][_0x5ab82b(0x153a)]=_0x1ae459[0x0],_0x43457e[_0x5ab82b(0x28f4)][_0x5ab82b(0x1392)]=_0x1ae459[0x1],_0x43457e[_0x5ab82b(0x28f4)][_0x5ab82b(0x2217)]=_0x1ae459[0x2],_0x43457e['gotop'][_0x5ab82b(0x90b)]=_0x1ae459[0x3],_0x43457e[_0x5ab82b(0x28f4)]['welcomemessage']=_0x1ae459[_0x5ab82b(0x1298)](0x4,_0x1ae459['length'])[_0x5ab82b(0xb47)](',');}break;case'amazonlex':{const _0x57b855=_0x43457e[_0x5ab82b(0x28f4)]['appdata'][_0x5ab82b(0x10c8)](',');_0x43457e['gotop'][_0x5ab82b(0x1651)]=_0x57b855[0x0],_0x43457e[_0x5ab82b(0x28f4)]['secretaccesskey']=_0x57b855[0x1],_0x43457e[_0x5ab82b(0x28f4)]['lexregion']=_0x57b855[0x2],_0x43457e[_0x5ab82b(0x28f4)][_0x5ab82b(0x8dd)]=_0x57b855[0x3],_0x43457e[_0x5ab82b(0x28f4)]['welcomemessage']=_0x57b855[_0x5ab82b(0x1298)](0x4,_0x57b855[_0x5ab82b(0x402)])['join'](',');}break;case _0x5ab82b(0x1713):{const _0x399ccb=_0x43457e[_0x5ab82b(0x28f4)][_0x5ab82b(0x168a)]['split'](',');_0x43457e[_0x5ab82b(0x28f4)][_0x5ab82b(0x583)]=isNaN(_0x399ccb[0x0])?_0x399ccb[0x0]:parseInt(_0x399ccb[0x0],0xa),_0x43457e[_0x5ab82b(0x28f4)][_0x5ab82b(0xa8d)]=_0x399ccb[_0x5ab82b(0x1298)](0x1,_0x399ccb[_0x5ab82b(0x402)])[_0x5ab82b(0xb47)](',');}break;case _0x5ab82b(0x7fd):_0x43457e[_0x5ab82b(0x28f4)][_0x5ab82b(0xa8d)]=_0x43457e['gotop'][_0x5ab82b(0x168a)];break;case _0x5ab82b(0x26ba):_0x43457e[_0x5ab82b(0x28f4)][_0x5ab82b(0x19eb)]=_0x43457e[_0x5ab82b(0x28f4)][_0x5ab82b(0x168a)][_0x5ab82b(0x10c8)]('=')[0x0],_0x43457e[_0x5ab82b(0x28f4)][_0x5ab82b(0x175d)]=_0x43457e[_0x5ab82b(0x28f4)][_0x5ab82b(0x168a)][_0x5ab82b(0x10c8)]('=')[0x1];break;case _0x5ab82b(0x1ecb):_0x43457e[_0x5ab82b(0x28f4)]['project']=_0x43457e[_0x5ab82b(0x28f4)][_0x5ab82b(0x168a)];break;default:{const _0x5d5366=_0x43457e[_0x5ab82b(0x28f4)][_0x5ab82b(0x168a)]['split'](',');_0x43457e[_0x5ab82b(0x28f4)][_0x5ab82b(0xa6a)]=_0x3f65c0()[_0x5ab82b(0x2635)](_0x5d5366[0x0])?_0x5d5366[0x0]:isNaN(_0x5d5366[0x0])?_0x5d5366[0x0]:parseInt(_0x5d5366[0x0],0xa);}break;}else{}_0x43457e[_0x5ab82b(0x28f4)]['type']&&_0x43457e[_0x5ab82b(0x28f4)][_0x5ab82b(0x1142)]['toLowerCase']()===_0x5ab82b(0xc9c)&&_0x43457e[_0x5ab82b(0x28f4)][_0x5ab82b(0x8f2)]['toLowerCase']()===_0x5ab82b(0x3bb)&&(_0x43457e['gotop'][_0x5ab82b(0x1e12)]=_0x43457e[_0x5ab82b(0x28f4)]['phone']?_0x43457e['gotop'][_0x5ab82b(0x1d55)]['split']('$')[0x0]:undefined,_0x43457e[_0x5ab82b(0x28f4)][_0x5ab82b(0x1d43)]=_0x43457e[_0x5ab82b(0x28f4)]['callerID']?_0x5ab82b(0x1b60)+_0x43457e['gotop'][_0x5ab82b(0x11be)]:undefined);_0x43457e['saveMailAccountApp']=_0x16d0a5,_0x43457e[_0x5ab82b(0x13f3)]=_0x18578b;function _0x16d0a5(){const _0x3fc1a8=_0x5ab82b;_0x43457e[_0x3fc1a8(0xcef)]=[];const _0x4ee6b0=[];_0x43457e[_0x3fc1a8(0x28f4)][_0x3fc1a8(0x1142)]&&_0x43457e[_0x3fc1a8(0x28f4)][_0x3fc1a8(0x1142)]['toLowerCase']()===_0x3fc1a8(0xc9c)&&_0x43457e[_0x3fc1a8(0x28f4)][_0x3fc1a8(0x8f2)]===_0x3fc1a8(0x118b)&&(_0x43457e['gotop'][_0x3fc1a8(0x1d55)]=_0x3d4357[_0x3fc1a8(0x1274)]?(_0x43457e[_0x3fc1a8(0x28f4)]['prefix']||'')+_0x3fc1a8(0x2147)+_0x3d4357[_0x3fc1a8(0x1274)]+'}':(_0x43457e[_0x3fc1a8(0x28f4)][_0x3fc1a8(0x1e12)]||'')+_0x3fc1a8(0x20df),_0x3d4357[_0x3fc1a8(0x1425)]!==_0x3fc1a8(0x1642)?_0x43457e['gotop'][_0x3fc1a8(0xa08)][_0x3fc1a8(0x172b)](_0x3fc1a8(0x1ea4))<0x0&&(_0x43457e[_0x3fc1a8(0x28f4)][_0x3fc1a8(0xa08)]+='U(xcally-mixmonitor-context)'):_0x43457e[_0x3fc1a8(0x28f4)][_0x3fc1a8(0xa08)]=_0x43457e[_0x3fc1a8(0x28f4)][_0x3fc1a8(0xa08)][_0x3fc1a8(0x5f4)](_0x3fc1a8(0x1ea4),''));if(_0x43457e[_0x3fc1a8(0x28f4)][_0x3fc1a8(0x8f2)]&&_0x43457e[_0x3fc1a8(0x28f4)][_0x3fc1a8(0x8f2)]===_0x3fc1a8(0x1802)){}else switch((_0x43457e[_0x3fc1a8(0x28f4)][_0x3fc1a8(0x1873)]||_0x43457e[_0x3fc1a8(0x28f4)][_0x3fc1a8(0x8f2)])[_0x3fc1a8(0x256e)]()){case _0x3fc1a8(0x26ba):_0x43457e[_0x3fc1a8(0x28f4)]['appdata']=_0x43457e[_0x3fc1a8(0x28f4)]['name']+'='+_0x43457e[_0x3fc1a8(0x28f4)][_0x3fc1a8(0x175d)];break;case _0x3fc1a8(0x1802):break;default:_0x4ee6b0[0x0]=_0x43457e['gotop'][_0x3fc1a8(0xa6a)],_0x43457e[_0x3fc1a8(0x28f4)][_0x3fc1a8(0x168a)]=_0x4ee6b0[_0x3fc1a8(0xb47)](',');}_0x18578b(_0x43457e[_0x3fc1a8(0x28f4)]);}function _0x18578b(_0x4dacca){_0x42a795['hide'](_0x4dacca);}}const _0x53bf9f=_0x1f87e4;;_0xcd2d78[_0x313a4d(0x11c2)]=[_0x313a4d(0x1862),'$mdDialog',_0x313a4d(0x1c7e),_0x313a4d(0x15f6),'interval',_0x313a4d(0x278f),_0x313a4d(0x1fe4),_0x313a4d(0x247f),_0x313a4d(0xa87),_0x313a4d(0x2514)];function _0xcd2d78(_0x4d8b98,_0x3a2b83,_0x2a3f42,_0x378fdf,_0xa71781,_0x2d7f69,_0x4d2aa7,_0xfca9e2,_0x4a1f98,_0x2274a8){const _0x294baf=_0x313a4d,_0x4c8e6d=this;_0x4c8e6d[_0x294baf(0x2321)]=_0x4a1f98[_0x294baf(0xb12)](),_0x4c8e6d[_0x294baf(0xcef)]=[],_0x4c8e6d[_0x294baf(0x1189)]=_0x294baf(0x56d),_0x4c8e6d[_0x294baf(0x2765)]=angular['copy'](_0xa71781),_0x4c8e6d[_0x294baf(0x278f)]=_0x2d7f69,_0x4c8e6d[_0x294baf(0xa76)]=![],_0x4c8e6d[_0x294baf(0x1960)]=[_0x294baf(0xd85),_0x294baf(0x1802),'list'],_0x4c8e6d[_0x294baf(0x2514)]=_0x2274a8,_0x4c8e6d[_0x294baf(0x1e35)]=_0x378fdf['getDaysOfWeek'](),_0x4c8e6d['monthNumber']=_0x378fdf['getMonthNumber'](),_0x4c8e6d[_0x294baf(0x2156)]=_0x378fdf['getMonthName'](),_0x4c8e6d[_0x294baf(0x15f1)]=_0x378fdf[_0x294baf(0x1421)]();if(!_0x4c8e6d[_0x294baf(0x2765)])_0x4c8e6d['interval']={'interval':_0x294baf(0x1559)},_0x4c8e6d[_0x294baf(0x1142)]=_0x294baf(0xd85),_0x4c8e6d[_0x294baf(0x1189)]=_0x294baf(0x79c),_0x4c8e6d[_0x294baf(0xa76)]=!![];else{if(_0x4c8e6d[_0x294baf(0x2765)]['interval']!=='*,*,*,*'){_0x4c8e6d[_0x294baf(0x1142)]=_0x294baf(0x1802);const _0x4d9f17=_0x4c8e6d[_0x294baf(0x2765)]['interval'][_0x294baf(0x10c8)](','),_0x35bef1=_0x4d9f17[0x0],_0x46d8ce=_0x4d9f17[0x1],_0x291ead=_0x4d9f17[0x2],_0x110216=_0x4d9f17[0x3];if(_0x35bef1!=='*'){const _0xdda487=_0x35bef1[_0x294baf(0x10c8)]('-')[0x0],_0x14b88b=_0x35bef1[_0x294baf(0x10c8)]('-')[0x1];let _0xc74a3a;_0xc74a3a=new Date(),_0xc74a3a[_0x294baf(0x25cd)](Number(_0xdda487[_0x294baf(0x10c8)](':')[0x0])),_0xc74a3a[_0x294baf(0x2348)](Number(_0xdda487[_0x294baf(0x10c8)](':')[0x1])),_0x4c8e6d[_0x294baf(0x2469)]=_0xc74a3a,_0xc74a3a=new Date(),_0xc74a3a[_0x294baf(0x25cd)](Number(_0x14b88b[_0x294baf(0x10c8)](':')[0x0])),_0xc74a3a['setMinutes'](Number(_0x14b88b[_0x294baf(0x10c8)](':')[0x1])),_0x4c8e6d['timeRangeTo']=_0xc74a3a;}_0x46d8ce!=='*'&&(_0x4c8e6d[_0x294baf(0x1455)]=_0x46d8ce['split']('-')[0x0],_0x4c8e6d['dayOfWeekTo']=_0x46d8ce['split']('-')[0x1]),_0x291ead!=='*'&&(_0x4c8e6d['monthDayFrom']=_0x291ead[_0x294baf(0x10c8)]('-')[0x0],_0x4c8e6d[_0x294baf(0x896)]=_0x291ead[_0x294baf(0x10c8)]('-')[0x1]),_0x110216!=='*'&&(_0x4c8e6d[_0x294baf(0x167)]=_0x110216[_0x294baf(0x10c8)]('-')[0x0],_0x4c8e6d['monthTo']=_0x110216[_0x294baf(0x10c8)]('-')[0x1]);}else _0x4c8e6d['type']='always';}_0x4d8b98[_0x294baf(0x16a)]['id']&&!_0x4c8e6d[_0x294baf(0x2765)][_0x294baf(0xea)]&&(_0x4c8e6d[_0x294baf(0x2765)][_0x294baf(0x1ff2)]=_0x4d8b98[_0x294baf(0x16a)]['id']);_0x4c8e6d[_0x294baf(0x2765)][_0x294baf(0x1ff2)]&&_0x4c8e6d[_0x294baf(0x2765)][_0x294baf(0xea)]&&(_0x4c8e6d[_0x294baf(0x1142)]=_0x294baf(0x25f4));_0x4c8e6d['addNewInterval']=_0x434cee,_0x4c8e6d[_0x294baf(0x1242)]=_0x46f41f,_0x4c8e6d[_0x294baf(0x13f3)]=_0x2eeef3;_0x4c8e6d[_0x294baf(0x2765)][_0x294baf(0xea)]&&(_0x4a1f98[_0x294baf(0x23e0)](_0x294baf(0x174b))?_0xfca9e2[_0x294baf(0x2765)][_0x294baf(0x16b4)]({'fields':_0x294baf(0x648),'IntervalId':_0x294baf(0x203c),'nolimit':!![]})[_0x294baf(0x2945)][_0x294baf(0x146b)](function(_0x52f760){const _0x44a9cb=_0x294baf;_0x4c8e6d[_0x44a9cb(0x278f)]=_0x52f760[_0x44a9cb(0x19c7)]||[];})[_0x294baf(0x129e)](function(_0xdf5405){const _0x3596ab=_0x294baf;_0x4d2aa7[_0x3596ab(0x1980)]({'title':_0xdf5405['status']?_0x3596ab(0x262a)+_0xdf5405[_0x3596ab(0x107b)]+_0x3596ab(0x1315)+_0xdf5405[_0x3596ab(0x167f)]:'SYSTEM:GET_INTERVALS','msg':_0xdf5405[_0x3596ab(0x524)]?JSON['stringify'](_0xdf5405[_0x3596ab(0x524)]):_0xdf5405['toString']()});}):_0xfca9e2[_0x294baf(0x2765)][_0x294baf(0x16b4)]({'fields':_0x294baf(0x648),'IntervalId':'null','nolimit':!![]})['$promise'][_0x294baf(0x146b)](function(_0x414d2c){_0x4c8e6d['intervals']=_0x414d2c['rows']||[];})['then'](function(){const _0x599248=_0x294baf;return _0xfca9e2['userProfileSection'][_0x599248(0x16b4)]({'userProfileId':_0x4c8e6d[_0x599248(0x2321)]['userProfileId'],'sectionId':0x3ec})[_0x599248(0x2945)];})[_0x294baf(0x146b)](function(_0x39189f){const _0x5d958b=_0x294baf,_0x571077=_0x39189f&&_0x39189f[_0x5d958b(0x19c7)]?_0x39189f[_0x5d958b(0x19c7)][0x0]:null;if(!_0x571077)_0x4c8e6d['intervals']=[];else{if(!_0x571077[_0x5d958b(0x11d2)])return _0xfca9e2[_0x5d958b(0xdcc)][_0x5d958b(0x16b4)]({'sectionId':_0x571077['id']})[_0x5d958b(0x2945)]['then'](function(_0x31002c){const _0x156bfb=_0x5d958b,_0x26d605=_0x31002c&&_0x31002c[_0x156bfb(0x19c7)]?_0x31002c['rows']:[],_0x31673e=[];let _0x108cd8=null;_0x4c8e6d[_0x156bfb(0x2765)]&&(_0x108cd8=_0x3f65c0()[_0x156bfb(0xc84)](_0x4c8e6d['intervals'],{'name':_0x4c8e6d[_0x156bfb(0x2765)][_0x156bfb(0x1ff2)]})),_0x108cd8&&!_0x3f65c0()[_0x156bfb(0x1360)](_0x26d605,[_0x156bfb(0x18b8),_0x108cd8['id']])&&_0x4c8e6d['intervals']['forEach'](function(_0x39e78a){const _0x444bf7=_0x156bfb;_0x39e78a['id']===_0x108cd8['id']&&(_0x39e78a[_0x444bf7(0x8ff)]=![],_0x31673e[_0x444bf7(0x1f47)](_0x39e78a));}),_0x4c8e6d['intervals']=_0x31673e;});}})[_0x294baf(0x129e)](function(_0x58e8c0){const _0x5ce051=_0x294baf;_0x4d2aa7[_0x5ce051(0x1980)]({'title':_0x58e8c0[_0x5ce051(0x107b)]?_0x5ce051(0x262a)+_0x58e8c0['status']+_0x5ce051(0x1315)+_0x58e8c0['statusText']:_0x5ce051(0x603),'msg':_0x58e8c0['data']?JSON[_0x5ce051(0x10bb)](_0x58e8c0[_0x5ce051(0x524)]):_0x58e8c0[_0x5ce051(0xd5f)]()});}));function _0x345f54(){const _0x522c61=_0x294baf;switch(_0x4c8e6d[_0x522c61(0x1142)]){case'always':case _0x522c61(0x25f4):return _0x522c61(0x1559);case'custom':{const _0x358445=[];if(_0x4c8e6d[_0x522c61(0x2469)]!=='*'&&_0x4c8e6d[_0x522c61(0x2469)]&&_0x4c8e6d[_0x522c61(0x637)]){const _0xdc7358=(_0x4c8e6d[_0x522c61(0x2469)]['getHours']()<0xa?'0':'')+_0x4c8e6d[_0x522c61(0x2469)][_0x522c61(0x1d57)]()+':'+((_0x4c8e6d[_0x522c61(0x2469)][_0x522c61(0x7fc)]()<0xa?'0':'')+_0x4c8e6d[_0x522c61(0x2469)][_0x522c61(0x7fc)]()),_0xce46e=(_0x4c8e6d[_0x522c61(0x637)][_0x522c61(0x1d57)]()<0xa?'0':'')+_0x4c8e6d[_0x522c61(0x637)][_0x522c61(0x1d57)]()+':'+((_0x4c8e6d[_0x522c61(0x637)]['getMinutes']()<0xa?'0':'')+_0x4c8e6d[_0x522c61(0x637)]['getMinutes']());_0x358445[_0x522c61(0x1f47)](_0xdc7358+'-'+_0xce46e);}else _0x358445[_0x522c61(0x1f47)]('*');return _0x4c8e6d[_0x522c61(0x1455)]?_0x4c8e6d[_0x522c61(0x27a1)]?_0x358445[_0x522c61(0x1f47)](_0x4c8e6d[_0x522c61(0x1455)]+'-'+_0x4c8e6d[_0x522c61(0x27a1)]):_0x358445[_0x522c61(0x1f47)](_0x4c8e6d[_0x522c61(0x1455)]):_0x358445[_0x522c61(0x1f47)]('*'),_0x4c8e6d['monthDayFrom']?_0x4c8e6d[_0x522c61(0x896)]?_0x358445[_0x522c61(0x1f47)](_0x4c8e6d['monthDayFrom']+'-'+_0x4c8e6d[_0x522c61(0x896)]):_0x358445['push'](_0x4c8e6d['monthDayFrom']):_0x358445[_0x522c61(0x1f47)]('*'),_0x4c8e6d[_0x522c61(0x167)]?_0x4c8e6d['monthTo']?_0x358445[_0x522c61(0x1f47)](_0x4c8e6d['monthFrom']+'-'+_0x4c8e6d[_0x522c61(0x9c3)]):_0x358445['push'](_0x4c8e6d['monthFrom']):_0x358445['push']('*'),_0x358445[_0x522c61(0xb47)]();}}}function _0x434cee(){const _0x53ff11=_0x294baf;_0x4c8e6d[_0x53ff11(0xcef)]=[],_0x4c8e6d[_0x53ff11(0x2765)]['interval']=_0x345f54(),_0xfca9e2[_0x53ff11(0x2765)][_0x53ff11(0x1e3)](_0x4c8e6d['interval'])[_0x53ff11(0x2945)][_0x53ff11(0x146b)](function(_0xdda0c2){const _0xd6b45c=_0x53ff11;_0x4c8e6d[_0xd6b45c(0x278f)]['push'](_0xdda0c2),_0x4d2aa7['success']({'title':_0xd6b45c(0x17f5),'msg':_0x4c8e6d[_0xd6b45c(0x2765)][_0xd6b45c(0x19eb)]?_0x4c8e6d[_0xd6b45c(0x2765)]['name']+_0xd6b45c(0x1386):''}),_0x2eeef3();})[_0x53ff11(0x129e)](function(_0x2bbd99){const _0x489f5a=_0x53ff11;console[_0x489f5a(0x1980)](_0x2bbd99),_0x4c8e6d[_0x489f5a(0xcef)]=_0x2bbd99[_0x489f5a(0x524)][_0x489f5a(0xcef)]||[{'message':_0x2bbd99['toString'](),'type':_0x489f5a(0x7e7)}];});}function _0x46f41f(){const _0x485aaf=_0x294baf;_0x4c8e6d[_0x485aaf(0xcef)]=[],_0x4c8e6d['interval'][_0x485aaf(0x2765)]=_0x345f54(),_0x4c8e6d[_0x485aaf(0x2765)][_0x485aaf(0xea)]?(_0x4c8e6d['type']!==_0x485aaf(0x25f4)&&(_0x4c8e6d['interval'][_0x485aaf(0x1ff2)]=null),_0x2eeef3(_0x4c8e6d[_0x485aaf(0x2765)])):_0xfca9e2[_0x485aaf(0x2765)][_0x485aaf(0x18e1)]({'id':_0x4c8e6d['interval']['id']},_0x4c8e6d[_0x485aaf(0x2765)])[_0x485aaf(0x2945)][_0x485aaf(0x146b)](function(_0x1104c0){const _0x5061b=_0x485aaf,_0x209603=_0x3f65c0()[_0x5061b(0xc84)](_0x4c8e6d[_0x5061b(0x278f)],{'id':_0x1104c0['id']});_0x209603&&_0x3f65c0()[_0x5061b(0x168d)](_0x209603,_0x1104c0),_0x4d2aa7[_0x5061b(0x1c75)]({'title':'Interval\x20properly\x20saved!','msg':_0x5061b(0x97a)}),_0x2eeef3();})[_0x485aaf(0x129e)](function(_0x4b5b73){const _0xb06e90=_0x485aaf;console[_0xb06e90(0x1980)](_0x4b5b73),_0x4c8e6d[_0xb06e90(0xcef)]=_0x4b5b73['data'][_0xb06e90(0xcef)]||[{'message':_0x4b5b73[_0xb06e90(0xd5f)](),'type':'api.interval.update'}];});}function _0x2eeef3(_0x5e834e){_0x3a2b83['hide'](_0x5e834e);}}const _0x3a18d8=_0xcd2d78;;_0x394260[_0x313a4d(0x11c2)]=[_0x313a4d(0x10e8),'$q','toasty','mailAccountApp',_0x313a4d(0x67d),_0x313a4d(0x247f),_0x313a4d(0xa87),_0x313a4d(0x2514)];function _0x394260(_0x50da19,_0x2c6a9c,_0x361554,_0x4e2413,_0x31725d,_0x1f6fcf,_0x5b3f1a,_0x4d7292){const _0x11c1c6=_0x313a4d,_0x1f36a7=this;_0x1f36a7[_0x11c1c6(0x2321)]=_0x5b3f1a[_0x11c1c6(0xb12)](),_0x1f36a7['errors']=[],_0x1f36a7[_0x11c1c6(0x1189)]=_0x11c1c6(0x1c59)+(_0x4e2413['appType']||_0x4e2413['app'])[_0x11c1c6(0x1c37)](),_0x1f36a7[_0x11c1c6(0x309)]=angular[_0x11c1c6(0x235a)](_0x4e2413),_0x1f36a7[_0x11c1c6(0x2514)]=_0x4d7292,_0x1f36a7[_0x11c1c6(0x855)]={};if(_0x1f36a7[_0x11c1c6(0x309)][_0x11c1c6(0x168a)])switch(_0x1f36a7[_0x11c1c6(0x309)][_0x11c1c6(0x8f2)]?_0x1f36a7[_0x11c1c6(0x309)][_0x11c1c6(0x8f2)][_0x11c1c6(0x256e)]():_0x1f36a7['noop'][_0x11c1c6(0x1873)][_0x11c1c6(0x256e)]()){case _0x11c1c6(0x1802):break;case'dialogflow':{const _0x2f32a6=_0x1f36a7[_0x11c1c6(0x309)][_0x11c1c6(0x168a)][_0x11c1c6(0x10c8)](',');_0x1f36a7[_0x11c1c6(0x309)]['key']=_0x2f32a6[0x0],_0x1f36a7['noop'][_0x11c1c6(0x90b)]=_0x2f32a6[0x1],_0x1f36a7[_0x11c1c6(0x309)][_0x11c1c6(0xaf3)]=_0x2f32a6['slice'](0x2,_0x2f32a6[_0x11c1c6(0x402)])['join'](',');}break;case _0x11c1c6(0xa46):{const _0x43b870=_0x1f36a7[_0x11c1c6(0x309)][_0x11c1c6(0x168a)]['split'](',');_0x1f36a7[_0x11c1c6(0x309)][_0x11c1c6(0x153a)]=_0x43b870[0x0],_0x1f36a7[_0x11c1c6(0x309)][_0x11c1c6(0x1392)]=_0x43b870[0x1],_0x1f36a7['noop'][_0x11c1c6(0x2217)]=_0x43b870[0x2],_0x1f36a7['noop'][_0x11c1c6(0x90b)]=_0x43b870[0x3],_0x1f36a7['noop'][_0x11c1c6(0xaf3)]=_0x43b870[_0x11c1c6(0x1298)](0x4,_0x43b870[_0x11c1c6(0x402)])['join'](',');}break;case _0x11c1c6(0x17d6):{const _0xf7e0a9=_0x1f36a7[_0x11c1c6(0x309)][_0x11c1c6(0x168a)]['split'](',');_0x1f36a7[_0x11c1c6(0x309)][_0x11c1c6(0x1651)]=_0xf7e0a9[0x0],_0x1f36a7['noop'][_0x11c1c6(0x252)]=_0xf7e0a9[0x1],_0x1f36a7['noop']['lexregion']=_0xf7e0a9[0x2],_0x1f36a7[_0x11c1c6(0x309)][_0x11c1c6(0x8dd)]=_0xf7e0a9[0x3],_0x1f36a7['noop']['welcomemessage']=_0xf7e0a9[_0x11c1c6(0x1298)](0x4,_0xf7e0a9[_0x11c1c6(0x402)])['join'](',');}break;case'autoreply':{const _0x862a9f=_0x1f36a7['noop'][_0x11c1c6(0x168a)][_0x11c1c6(0x10c8)](',');_0x1f36a7['noop'][_0x11c1c6(0x583)]=isNaN(_0x862a9f[0x0])?_0x862a9f[0x0]:parseInt(_0x862a9f[0x0],0xa),_0x1f36a7[_0x11c1c6(0x309)][_0x11c1c6(0xa8d)]=_0x862a9f[_0x11c1c6(0x1298)](0x1,_0x862a9f[_0x11c1c6(0x402)])[_0x11c1c6(0xb47)](',');}break;case _0x11c1c6(0x7fd):_0x1f36a7[_0x11c1c6(0x309)][_0x11c1c6(0xa8d)]=_0x1f36a7[_0x11c1c6(0x309)]['appdata'];break;case _0x11c1c6(0x26ba):_0x1f36a7[_0x11c1c6(0x309)]['name']=_0x1f36a7[_0x11c1c6(0x309)]['appdata'][_0x11c1c6(0x10c8)]('=')[0x0],_0x1f36a7[_0x11c1c6(0x309)][_0x11c1c6(0x175d)]=_0x1f36a7[_0x11c1c6(0x309)][_0x11c1c6(0x168a)][_0x11c1c6(0x10c8)]('=')[0x1];break;case _0x11c1c6(0x1ecb):_0x1f36a7['noop']['project']=_0x1f36a7[_0x11c1c6(0x309)]['appdata'];break;default:{const _0x13735b=_0x1f36a7[_0x11c1c6(0x309)][_0x11c1c6(0x168a)][_0x11c1c6(0x10c8)](',');_0x1f36a7[_0x11c1c6(0x309)][_0x11c1c6(0x175d)]=_0x3f65c0()[_0x11c1c6(0x2635)](_0x13735b[0x0])?_0x13735b[0x0]:isNaN(_0x13735b[0x0])?_0x13735b[0x0]:parseInt(_0x13735b[0x0],0xa);}break;}else{}_0x1f36a7[_0x11c1c6(0x309)]['type']&&_0x1f36a7[_0x11c1c6(0x309)][_0x11c1c6(0x1142)][_0x11c1c6(0x256e)]()===_0x11c1c6(0xc9c)&&_0x1f36a7[_0x11c1c6(0x309)][_0x11c1c6(0x8f2)]['toLowerCase']()===_0x11c1c6(0x3bb)&&(_0x1f36a7[_0x11c1c6(0x309)][_0x11c1c6(0x1e12)]=_0x1f36a7['noop'][_0x11c1c6(0x1d55)]?_0x1f36a7['noop'][_0x11c1c6(0x1d55)][_0x11c1c6(0x10c8)]('$')[0x0]:undefined,_0x1f36a7[_0x11c1c6(0x309)][_0x11c1c6(0x1d43)]=_0x1f36a7[_0x11c1c6(0x309)]['callerID']?_0x11c1c6(0x1b60)+_0x1f36a7['noop'][_0x11c1c6(0x11be)]:undefined);_0x1f36a7[_0x11c1c6(0x1c19)]=_0x34a3ea,_0x1f36a7[_0x11c1c6(0x13f3)]=_0x512abc;function _0x34a3ea(){const _0x5347e0=_0x11c1c6;_0x1f36a7[_0x5347e0(0xcef)]=[];const _0x32b1b2=[];_0x1f36a7[_0x5347e0(0x309)][_0x5347e0(0x1142)]&&_0x1f36a7['noop'][_0x5347e0(0x1142)]['toLowerCase']()===_0x5347e0(0xc9c)&&_0x1f36a7['noop'][_0x5347e0(0x8f2)]===_0x5347e0(0x118b)&&(_0x1f36a7['noop'][_0x5347e0(0x1d55)]=_0x31725d[_0x5347e0(0x1274)]?(_0x1f36a7[_0x5347e0(0x309)][_0x5347e0(0x1e12)]||'')+_0x5347e0(0x2147)+_0x31725d[_0x5347e0(0x1274)]+'}':(_0x1f36a7[_0x5347e0(0x309)][_0x5347e0(0x1e12)]||'')+_0x5347e0(0x20df),_0x31725d[_0x5347e0(0x1425)]!==_0x5347e0(0x1642)?_0x1f36a7[_0x5347e0(0x309)]['options'][_0x5347e0(0x172b)]('U(xcally-mixmonitor-context)')<0x0&&(_0x1f36a7[_0x5347e0(0x309)][_0x5347e0(0xa08)]+=_0x5347e0(0x1ea4)):_0x1f36a7[_0x5347e0(0x309)][_0x5347e0(0xa08)]=_0x1f36a7['noop']['options'][_0x5347e0(0x5f4)](_0x5347e0(0x1ea4),''));if(_0x1f36a7[_0x5347e0(0x309)][_0x5347e0(0x8f2)]&&_0x1f36a7[_0x5347e0(0x309)][_0x5347e0(0x8f2)]===_0x5347e0(0x1802)){}else switch((_0x1f36a7[_0x5347e0(0x309)]['app']||_0x1f36a7['noop'][_0x5347e0(0x8f2)])[_0x5347e0(0x256e)]()){case _0x5347e0(0x26ba):_0x1f36a7[_0x5347e0(0x309)]['appdata']=_0x1f36a7['noop'][_0x5347e0(0x19eb)]+'='+_0x1f36a7[_0x5347e0(0x309)][_0x5347e0(0x175d)];break;case _0x5347e0(0x1802):break;default:_0x32b1b2[0x0]=_0x1f36a7[_0x5347e0(0x309)][_0x5347e0(0x175d)],_0x1f36a7[_0x5347e0(0x309)][_0x5347e0(0x168a)]=_0x32b1b2['join'](',');}_0x512abc(_0x1f36a7[_0x5347e0(0x309)]);}function _0x512abc(_0x3ccf10){const _0x46ac8a=_0x11c1c6;_0x50da19[_0x46ac8a(0x2458)](_0x3ccf10);}}const _0xb548ed=_0x394260;;_0x187682[_0x313a4d(0x11c2)]=[_0x313a4d(0x10e8),'$q',_0x313a4d(0x1fe4),_0x313a4d(0x267d),_0x313a4d(0x67d),_0x313a4d(0x247f),_0x313a4d(0xa87),_0x313a4d(0x2514)];function _0x187682(_0x464370,_0xd39ccc,_0x4263bf,_0xe945a3,_0x4443e2,_0x2b37b0,_0x23771b,_0x35c785){const _0x38542b=_0x313a4d,_0x4c4a3f=this;_0x4c4a3f['currentUser']=_0x23771b[_0x38542b(0xb12)](),_0x4c4a3f[_0x38542b(0xcef)]=[],_0x4c4a3f[_0x38542b(0x1189)]=_0x38542b(0x1c59)+(_0xe945a3[_0x38542b(0x8f2)]||_0xe945a3[_0x38542b(0x1873)])['toUpperCase'](),_0x4c4a3f[_0x38542b(0x1c72)]=angular[_0x38542b(0x235a)](_0xe945a3),_0x4c4a3f[_0x38542b(0x2514)]=_0x35c785,_0x4c4a3f[_0x38542b(0x855)]={};if(_0x4c4a3f[_0x38542b(0x1c72)]['appdata'])switch(_0x4c4a3f['queue'][_0x38542b(0x8f2)]?_0x4c4a3f['queue'][_0x38542b(0x8f2)][_0x38542b(0x256e)]():_0x4c4a3f[_0x38542b(0x1c72)]['app'][_0x38542b(0x256e)]()){case _0x38542b(0x1802):break;case _0x38542b(0xeaa):{const _0x5a7ce1=_0x4c4a3f[_0x38542b(0x1c72)][_0x38542b(0x168a)][_0x38542b(0x10c8)](',');_0x4c4a3f[_0x38542b(0x1c72)][_0x38542b(0x2293)]=_0x5a7ce1[0x0],_0x4c4a3f[_0x38542b(0x1c72)][_0x38542b(0x90b)]=_0x5a7ce1[0x1],_0x4c4a3f['queue'][_0x38542b(0xaf3)]=_0x5a7ce1[_0x38542b(0x1298)](0x2,_0x5a7ce1[_0x38542b(0x402)])[_0x38542b(0xb47)](',');}break;case'dialogflowv2':{const _0x1cc2da=_0x4c4a3f[_0x38542b(0x1c72)][_0x38542b(0x168a)][_0x38542b(0x10c8)](',');_0x4c4a3f[_0x38542b(0x1c72)]['projectId']=_0x1cc2da[0x0],_0x4c4a3f[_0x38542b(0x1c72)]['clientEmail']=_0x1cc2da[0x1],_0x4c4a3f[_0x38542b(0x1c72)][_0x38542b(0x2217)]=_0x1cc2da[0x2],_0x4c4a3f[_0x38542b(0x1c72)]['language']=_0x1cc2da[0x3],_0x4c4a3f['queue']['welcomemessage']=_0x1cc2da[_0x38542b(0x1298)](0x4,_0x1cc2da['length'])[_0x38542b(0xb47)](',');}break;case _0x38542b(0x17d6):{const _0x3984e5=_0x4c4a3f['queue'][_0x38542b(0x168a)]['split'](',');_0x4c4a3f[_0x38542b(0x1c72)][_0x38542b(0x1651)]=_0x3984e5[0x0],_0x4c4a3f[_0x38542b(0x1c72)]['secretaccesskey']=_0x3984e5[0x1],_0x4c4a3f['queue']['lexregion']=_0x3984e5[0x2],_0x4c4a3f['queue']['botname']=_0x3984e5[0x3],_0x4c4a3f[_0x38542b(0x1c72)][_0x38542b(0xaf3)]=_0x3984e5[_0x38542b(0x1298)](0x4,_0x3984e5['length'])['join'](',');}break;case _0x38542b(0x1713):{const _0x267bfb=_0x4c4a3f[_0x38542b(0x1c72)]['appdata'][_0x38542b(0x10c8)](',');_0x4c4a3f['queue'][_0x38542b(0x583)]=isNaN(_0x267bfb[0x0])?_0x267bfb[0x0]:parseInt(_0x267bfb[0x0],0xa),_0x4c4a3f[_0x38542b(0x1c72)][_0x38542b(0xa8d)]=_0x267bfb[_0x38542b(0x1298)](0x1,_0x267bfb['length'])[_0x38542b(0xb47)](',');}break;case _0x38542b(0x7fd):_0x4c4a3f[_0x38542b(0x1c72)]['text']=_0x4c4a3f[_0x38542b(0x1c72)][_0x38542b(0x168a)];break;case _0x38542b(0x26ba):_0x4c4a3f[_0x38542b(0x1c72)]['name']=_0x4c4a3f['queue'][_0x38542b(0x168a)][_0x38542b(0x10c8)]('=')[0x0],_0x4c4a3f[_0x38542b(0x1c72)][_0x38542b(0x175d)]=_0x4c4a3f[_0x38542b(0x1c72)]['appdata'][_0x38542b(0x10c8)]('=')[0x1];break;case _0x38542b(0x1ecb):_0x4c4a3f[_0x38542b(0x1c72)][_0x38542b(0x9e0)]=_0x4c4a3f[_0x38542b(0x1c72)][_0x38542b(0x168a)];break;default:{const _0x160c47=_0x4c4a3f['queue'][_0x38542b(0x168a)][_0x38542b(0x10c8)](',');_0x4c4a3f[_0x38542b(0x1c72)][_0x38542b(0x1c72)]=_0x3f65c0()[_0x38542b(0x2635)](_0x160c47[0x0])?_0x160c47[0x0]:isNaN(_0x160c47[0x0])?_0x160c47[0x0]:parseInt(_0x160c47[0x0],0xa),_0x4c4a3f[_0x38542b(0x1c72)]['timeout']=_0x3f65c0()[_0x38542b(0x2635)](_0x160c47[0x1])?_0x160c47[0x1]:isNaN(_0x160c47[0x1])?_0x160c47[0x1]:parseInt(_0x160c47[0x1],0xa);}break;}else _0x4c4a3f[_0x38542b(0x1c72)][_0x38542b(0x1c72)]=0x12c,_0x4c4a3f[_0x38542b(0x1c72)][_0x38542b(0xa9c)]=0x12c;_0x4c4a3f['queue'][_0x38542b(0x1142)]&&_0x4c4a3f[_0x38542b(0x1c72)][_0x38542b(0x1142)][_0x38542b(0x256e)]()===_0x38542b(0xc9c)&&_0x4c4a3f[_0x38542b(0x1c72)]['appType'][_0x38542b(0x256e)]()===_0x38542b(0x3bb)&&(_0x4c4a3f[_0x38542b(0x1c72)][_0x38542b(0x1e12)]=_0x4c4a3f['queue']['phone']?_0x4c4a3f[_0x38542b(0x1c72)][_0x38542b(0x1d55)][_0x38542b(0x10c8)]('$')[0x0]:undefined,_0x4c4a3f[_0x38542b(0x1c72)]['callerId']=_0x4c4a3f[_0x38542b(0x1c72)][_0x38542b(0x11be)]?_0x38542b(0x1b60)+_0x4c4a3f[_0x38542b(0x1c72)][_0x38542b(0x11be)]:undefined);_0x4c4a3f['saveMailAccountApp']=_0x8cf714,_0x4c4a3f[_0x38542b(0x13f3)]=_0xd980be,_0x23771b[_0x38542b(0x23e0)](_0x38542b(0x174b))?_0x2b37b0[_0x38542b(0x101c)][_0x38542b(0x16b4)]({'fields':_0x38542b(0x45e),'sort':_0x38542b(0x19eb),'nolimit':'true'})[_0x38542b(0x2945)]['then'](function(_0x5438f2){const _0x31e5f2=_0x38542b;_0x4c4a3f['queues']=_0x5438f2[_0x31e5f2(0x19c7)]||[];})['catch'](function(_0x357278){const _0x2db27c=_0x38542b;_0x4263bf['error']({'title':_0x357278[_0x2db27c(0x107b)]?'API:'+_0x357278['status']+'\x20-\x20'+_0x357278[_0x2db27c(0x167f)]:'SYSTEM:GET_QUEUES','msg':_0x357278[_0x2db27c(0x524)]?JSON[_0x2db27c(0x10bb)](_0x357278[_0x2db27c(0x524)]):_0x357278[_0x2db27c(0xd5f)]()});}):_0x2b37b0['mailQueue']['get']({'fields':_0x38542b(0x45e),'sort':'name','nolimit':'true'})['$promise']['then'](function(_0x3e921f){const _0x3369fd=_0x38542b;_0x4c4a3f[_0x3369fd(0x1b32)]=_0x3e921f[_0x3369fd(0x19c7)]||[];})[_0x38542b(0x146b)](function(){const _0x334789=_0x38542b;return _0x2b37b0['userProfileSection']['get']({'userProfileId':_0x4c4a3f[_0x334789(0x2321)][_0x334789(0x209a)],'sectionId':0x259})['$promise'];})[_0x38542b(0x146b)](function(_0x563d4f){const _0x145639=_0x38542b,_0x363bc4=_0x563d4f&&_0x563d4f[_0x145639(0x19c7)]?_0x563d4f[_0x145639(0x19c7)][0x0]:null;if(!_0x363bc4){const _0x343b50=[];let _0x55832c=null;_0x4c4a3f[_0x145639(0x1c72)]&&(_0x55832c=_0x3f65c0()['find'](_0x4c4a3f[_0x145639(0x1b32)],{'name':_0x4c4a3f[_0x145639(0x1c72)][_0x145639(0x1c72)]}));for(let _0x433cd2=0x0;_0x433cd2<_0x4c4a3f['queues'][_0x145639(0x402)];_0x433cd2++){_0x55832c&&_0x4c4a3f[_0x145639(0x1b32)][_0x433cd2]['id']===_0x55832c['id']&&(_0x4c4a3f[_0x145639(0x1b32)][_0x433cd2]['canSelect']=![],_0x343b50[_0x145639(0x1f47)](_0x4c4a3f['queues'][_0x433cd2]));}_0x4c4a3f['queues']=_0x343b50;}else{if(!_0x363bc4[_0x145639(0x11d2)])return _0x2b37b0[_0x145639(0xdcc)][_0x145639(0x16b4)]({'sectionId':_0x363bc4['id']})['$promise'][_0x145639(0x146b)](function(_0x38ca95){const _0x28de06=_0x145639,_0x10dad8=_0x3f65c0()['map'](_0x38ca95['rows'],function(_0x3ba28a){const _0x443b10=a0_0x3bb9;return _0x3f65c0()[_0x443b10(0xc84)](_0x4c4a3f[_0x443b10(0x1b32)],{'id':_0x3ba28a['resourceId']});});let _0x5e0ff3=null;_0x4c4a3f[_0x28de06(0x1c72)]&&(_0x5e0ff3=_0x3f65c0()['find'](_0x4c4a3f[_0x28de06(0x1b32)],{'name':_0x4c4a3f[_0x28de06(0x1c72)][_0x28de06(0x1c72)]}));if(_0x5e0ff3&&!_0x3f65c0()[_0x28de06(0x1360)](_0x10dad8,['id',_0x5e0ff3['id']])){const _0x2f658b=_0x3f65c0()[_0x28de06(0xc84)](_0x4c4a3f[_0x28de06(0x1b32)],{'id':_0x5e0ff3['id']});_0x2f658b['canSelect']=![],_0x10dad8[_0x28de06(0x1f47)](_0x2f658b);}_0x4c4a3f['queues']=_0x10dad8;});}})[_0x38542b(0x129e)](function(_0x80b683){const _0x5dfc76=_0x38542b;_0x4263bf[_0x5dfc76(0x1980)]({'title':_0x80b683[_0x5dfc76(0x107b)]?_0x5dfc76(0x262a)+_0x80b683[_0x5dfc76(0x107b)]+'\x20-\x20'+_0x80b683[_0x5dfc76(0x167f)]:'SYSTEM:GETqueues','msg':_0x80b683[_0x5dfc76(0x524)]?JSON[_0x5dfc76(0x10bb)](_0x80b683[_0x5dfc76(0x524)]):_0x80b683[_0x5dfc76(0xd5f)]()});});function _0x8cf714(){const _0x40919f=_0x38542b;_0x4c4a3f[_0x40919f(0xcef)]=[];const _0xb568da=[];_0x4c4a3f['queue']['type']&&_0x4c4a3f['queue'][_0x40919f(0x1142)][_0x40919f(0x256e)]()===_0x40919f(0xc9c)&&_0x4c4a3f[_0x40919f(0x1c72)]['appType']===_0x40919f(0x118b)&&(_0x4c4a3f[_0x40919f(0x1c72)][_0x40919f(0x1d55)]=_0x4443e2[_0x40919f(0x1274)]?(_0x4c4a3f[_0x40919f(0x1c72)][_0x40919f(0x1e12)]||'')+_0x40919f(0x2147)+_0x4443e2[_0x40919f(0x1274)]+'}':(_0x4c4a3f[_0x40919f(0x1c72)][_0x40919f(0x1e12)]||'')+_0x40919f(0x20df),_0x4443e2[_0x40919f(0x1425)]!==_0x40919f(0x1642)?_0x4c4a3f[_0x40919f(0x1c72)][_0x40919f(0xa08)][_0x40919f(0x172b)](_0x40919f(0x1ea4))<0x0&&(_0x4c4a3f[_0x40919f(0x1c72)]['options']+='U(xcally-mixmonitor-context)'):_0x4c4a3f[_0x40919f(0x1c72)][_0x40919f(0xa08)]=_0x4c4a3f['queue'][_0x40919f(0xa08)][_0x40919f(0x5f4)](_0x40919f(0x1ea4),''));const _0x584b9f=_0x3f65c0()[_0x40919f(0xc84)](_0x4c4a3f[_0x40919f(0x1b32)],{'name':_0x4c4a3f[_0x40919f(0x1c72)][_0x40919f(0x1c72)]});_0x584b9f&&(_0x4c4a3f['queue'][_0x3f65c0()[_0x40919f(0x83f)](_0x40919f(0x56b))+_0x40919f(0x23f8)]=_0x584b9f['id']);if(_0x4c4a3f['queue']['appType']&&_0x4c4a3f[_0x40919f(0x1c72)]['appType']==='custom'){}else switch((_0x4c4a3f[_0x40919f(0x1c72)][_0x40919f(0x1873)]||_0x4c4a3f[_0x40919f(0x1c72)][_0x40919f(0x8f2)])['toLowerCase']()){case _0x40919f(0x26ba):_0x4c4a3f[_0x40919f(0x1c72)][_0x40919f(0x168a)]=_0x4c4a3f[_0x40919f(0x1c72)][_0x40919f(0x19eb)]+'='+_0x4c4a3f['queue'][_0x40919f(0x175d)];break;case _0x40919f(0x1802):break;default:_0xb568da[0x0]=_0x4c4a3f[_0x40919f(0x1c72)]['queue'],_0xb568da[0x1]=_0x4c4a3f[_0x40919f(0x1c72)]['timeout'],_0x4c4a3f[_0x40919f(0x1c72)][_0x40919f(0x168a)]=_0xb568da['join'](',');}_0xd980be(_0x4c4a3f['queue']);}function _0xd980be(_0x1f579a){const _0x5055e8=_0x38542b;_0x464370[_0x5055e8(0x2458)](_0x1f579a);}}const _0x5c0603=_0x187682;;_0x18a9d1[_0x313a4d(0x11c2)]=[_0x313a4d(0x10e8),'$q','toasty',_0x313a4d(0x267d),_0x313a4d(0x67d),_0x313a4d(0x247f),_0x313a4d(0xa87),_0x313a4d(0x2514)];function _0x18a9d1(_0x3ac56f,_0x2befb8,_0x32a5b2,_0x4aa08f,_0x12e02b,_0x248707,_0x9eeebb,_0x185586){const _0x489fa3=_0x313a4d,_0x1ef84b=this;_0x1ef84b[_0x489fa3(0x2321)]=_0x9eeebb[_0x489fa3(0xb12)](),_0x1ef84b[_0x489fa3(0xcef)]=[],_0x1ef84b[_0x489fa3(0x1189)]='MAIL.EDIT_'+(_0x4aa08f[_0x489fa3(0x8f2)]||_0x4aa08f[_0x489fa3(0x1873)])[_0x489fa3(0x1c37)](),_0x1ef84b['system']=angular[_0x489fa3(0x235a)](_0x4aa08f),_0x1ef84b[_0x489fa3(0x2514)]=_0x185586,_0x1ef84b['hasModulePermissions']={};if(_0x1ef84b[_0x489fa3(0x1d47)][_0x489fa3(0x168a)])switch(_0x1ef84b[_0x489fa3(0x1d47)][_0x489fa3(0x8f2)]?_0x1ef84b['system'][_0x489fa3(0x8f2)][_0x489fa3(0x256e)]():_0x1ef84b[_0x489fa3(0x1d47)][_0x489fa3(0x1873)][_0x489fa3(0x256e)]()){case'custom':break;case _0x489fa3(0xeaa):{const _0x53b8ba=_0x1ef84b[_0x489fa3(0x1d47)][_0x489fa3(0x168a)][_0x489fa3(0x10c8)](',');_0x1ef84b[_0x489fa3(0x1d47)][_0x489fa3(0x2293)]=_0x53b8ba[0x0],_0x1ef84b[_0x489fa3(0x1d47)][_0x489fa3(0x90b)]=_0x53b8ba[0x1],_0x1ef84b[_0x489fa3(0x1d47)][_0x489fa3(0xaf3)]=_0x53b8ba['slice'](0x2,_0x53b8ba[_0x489fa3(0x402)])[_0x489fa3(0xb47)](',');}break;case'dialogflowv2':{const _0x381fef=_0x1ef84b['system']['appdata'][_0x489fa3(0x10c8)](',');_0x1ef84b['system'][_0x489fa3(0x153a)]=_0x381fef[0x0],_0x1ef84b[_0x489fa3(0x1d47)][_0x489fa3(0x1392)]=_0x381fef[0x1],_0x1ef84b[_0x489fa3(0x1d47)]['privateKey']=_0x381fef[0x2],_0x1ef84b[_0x489fa3(0x1d47)][_0x489fa3(0x90b)]=_0x381fef[0x3],_0x1ef84b[_0x489fa3(0x1d47)][_0x489fa3(0xaf3)]=_0x381fef[_0x489fa3(0x1298)](0x4,_0x381fef[_0x489fa3(0x402)])[_0x489fa3(0xb47)](',');}break;case _0x489fa3(0x17d6):{const _0x58de9b=_0x1ef84b[_0x489fa3(0x1d47)][_0x489fa3(0x168a)]['split'](',');_0x1ef84b['system'][_0x489fa3(0x1651)]=_0x58de9b[0x0],_0x1ef84b[_0x489fa3(0x1d47)][_0x489fa3(0x252)]=_0x58de9b[0x1],_0x1ef84b[_0x489fa3(0x1d47)]['lexregion']=_0x58de9b[0x2],_0x1ef84b[_0x489fa3(0x1d47)][_0x489fa3(0x8dd)]=_0x58de9b[0x3],_0x1ef84b[_0x489fa3(0x1d47)]['welcomemessage']=_0x58de9b['slice'](0x4,_0x58de9b[_0x489fa3(0x402)])[_0x489fa3(0xb47)](',');}break;case _0x489fa3(0x1713):{const _0x2eaba5=_0x1ef84b['system'][_0x489fa3(0x168a)][_0x489fa3(0x10c8)](',');_0x1ef84b[_0x489fa3(0x1d47)][_0x489fa3(0x583)]=isNaN(_0x2eaba5[0x0])?_0x2eaba5[0x0]:parseInt(_0x2eaba5[0x0],0xa),_0x1ef84b['system'][_0x489fa3(0xa8d)]=_0x2eaba5['slice'](0x1,_0x2eaba5[_0x489fa3(0x402)])[_0x489fa3(0xb47)](',');}break;case _0x489fa3(0x7fd):_0x1ef84b[_0x489fa3(0x1d47)][_0x489fa3(0xa8d)]=_0x1ef84b['system'][_0x489fa3(0x168a)];break;case _0x489fa3(0x26ba):_0x1ef84b[_0x489fa3(0x1d47)][_0x489fa3(0x19eb)]=_0x1ef84b['system'][_0x489fa3(0x168a)][_0x489fa3(0x10c8)]('=')[0x0],_0x1ef84b[_0x489fa3(0x1d47)]['value']=_0x1ef84b['system']['appdata'][_0x489fa3(0x10c8)]('=')[0x1];break;case _0x489fa3(0x1ecb):_0x1ef84b[_0x489fa3(0x1d47)][_0x489fa3(0x9e0)]=_0x1ef84b['system'][_0x489fa3(0x168a)];break;default:{const _0x1db5e9=_0x1ef84b['system'][_0x489fa3(0x168a)][_0x489fa3(0x10c8)](',');_0x1ef84b[_0x489fa3(0x1d47)]['command']=_0x3f65c0()[_0x489fa3(0x2635)](_0x1db5e9[0x0])?_0x1db5e9[0x0]:isNaN(_0x1db5e9[0x0])?_0x1db5e9[0x0]:parseInt(_0x1db5e9[0x0],0xa),_0x1ef84b['system'][_0x489fa3(0x212)]=_0x3f65c0()[_0x489fa3(0x2635)](_0x1db5e9[0x1])?_0x1db5e9[0x1]:isNaN(_0x1db5e9[0x1])?_0x1db5e9[0x1]:parseInt(_0x1db5e9[0x1],0xa);}break;}else _0x1ef84b[_0x489fa3(0x1d47)][_0x489fa3(0x212)]='';_0x1ef84b[_0x489fa3(0x1d47)]['type']&&_0x1ef84b[_0x489fa3(0x1d47)][_0x489fa3(0x1142)][_0x489fa3(0x256e)]()==='outbound'&&_0x1ef84b[_0x489fa3(0x1d47)]['appType'][_0x489fa3(0x256e)]()===_0x489fa3(0x3bb)&&(_0x1ef84b[_0x489fa3(0x1d47)][_0x489fa3(0x1e12)]=_0x1ef84b['system'][_0x489fa3(0x1d55)]?_0x1ef84b[_0x489fa3(0x1d47)][_0x489fa3(0x1d55)][_0x489fa3(0x10c8)]('$')[0x0]:undefined,_0x1ef84b[_0x489fa3(0x1d47)][_0x489fa3(0x1d43)]=_0x1ef84b['system'][_0x489fa3(0x11be)]?_0x489fa3(0x1b60)+_0x1ef84b[_0x489fa3(0x1d47)][_0x489fa3(0x11be)]:undefined);_0x1ef84b['saveMailAccountApp']=_0x977900,_0x1ef84b['closeDialog']=_0x5823f1,_0x9eeebb[_0x489fa3(0x23e0)](_0x489fa3(0x174b))?_0x248707[_0x489fa3(0x212)][_0x489fa3(0x16b4)]({'fields':_0x489fa3(0x7a7),'sort':'name','nolimit':'true'})[_0x489fa3(0x2945)][_0x489fa3(0x146b)](function(_0x48ea82){const _0x21360d=_0x489fa3;_0x1ef84b['variables']=_0x48ea82[_0x21360d(0x19c7)]||[];})[_0x489fa3(0x129e)](function(_0x5f23a6){const _0x192971=_0x489fa3;_0x32a5b2[_0x192971(0x1980)]({'title':_0x5f23a6[_0x192971(0x107b)]?_0x192971(0x262a)+_0x5f23a6[_0x192971(0x107b)]+_0x192971(0x1315)+_0x5f23a6[_0x192971(0x167f)]:_0x192971(0x84b),'msg':_0x5f23a6[_0x192971(0x524)]?JSON[_0x192971(0x10bb)](_0x5f23a6['data']):_0x5f23a6['toString']()});}):_0x248707[_0x489fa3(0x212)][_0x489fa3(0x16b4)]({'fields':_0x489fa3(0x7a7),'sort':_0x489fa3(0x19eb),'nolimit':_0x489fa3(0x1185)})['$promise']['then'](function(_0x376620){_0x1ef84b['variables']=_0x376620['rows']||[];})[_0x489fa3(0x146b)](function(){const _0x3326ae=_0x489fa3;return _0x248707['userProfileSection'][_0x3326ae(0x16b4)]({'userProfileId':_0x1ef84b[_0x3326ae(0x2321)][_0x3326ae(0x209a)],'sectionId':0x3f4})['$promise'];})['then'](function(_0x5c2161){const _0x429df3=_0x489fa3,_0x422ecc=_0x5c2161&&_0x5c2161['rows']?_0x5c2161[_0x429df3(0x19c7)][0x0]:null;if(!_0x422ecc){const _0x581d29=[];let _0x15f273=null;_0x1ef84b[_0x429df3(0x1d47)]&&(_0x15f273=_0x3f65c0()[_0x429df3(0xc84)](_0x1ef84b[_0x429df3(0x85b)],{'name':_0x1ef84b[_0x429df3(0x1d47)][_0x429df3(0x212)]}));for(let _0x4ab1d3=0x0;_0x4ab1d3<_0x1ef84b[_0x429df3(0x85b)][_0x429df3(0x402)];_0x4ab1d3++){_0x15f273&&_0x1ef84b[_0x429df3(0x85b)][_0x4ab1d3]['id']===_0x15f273['id']&&(_0x1ef84b[_0x429df3(0x85b)][_0x4ab1d3][_0x429df3(0x8ff)]=![],_0x581d29[_0x429df3(0x1f47)](_0x1ef84b['variables'][_0x4ab1d3]));}_0x1ef84b['variables']=_0x581d29;}else{if(!_0x422ecc[_0x429df3(0x11d2)])return _0x248707[_0x429df3(0xdcc)]['get']({'sectionId':_0x422ecc['id']})[_0x429df3(0x2945)][_0x429df3(0x146b)](function(_0x4dd5b0){const _0x3d705e=_0x429df3,_0x56a977=_0x3f65c0()['map'](_0x4dd5b0[_0x3d705e(0x19c7)],function(_0x241650){const _0x31037e=_0x3d705e;return _0x3f65c0()[_0x31037e(0xc84)](_0x1ef84b[_0x31037e(0x85b)],{'id':_0x241650[_0x31037e(0x18b8)]});});let _0x4b64fb=null;_0x1ef84b[_0x3d705e(0x1d47)]&&(_0x4b64fb=_0x3f65c0()[_0x3d705e(0xc84)](_0x1ef84b['variables'],{'name':_0x1ef84b['system'][_0x3d705e(0x212)]}));if(_0x4b64fb&&!_0x3f65c0()[_0x3d705e(0x1360)](_0x56a977,['id',_0x4b64fb['id']])){const _0x1cbb15=_0x3f65c0()['find'](_0x1ef84b[_0x3d705e(0x85b)],{'id':_0x4b64fb['id']});_0x1cbb15[_0x3d705e(0x8ff)]=![],_0x56a977[_0x3d705e(0x1f47)](_0x1cbb15);}_0x1ef84b[_0x3d705e(0x85b)]=_0x56a977;});}})[_0x489fa3(0x129e)](function(_0xc68971){const _0x2db1b1=_0x489fa3;_0x32a5b2[_0x2db1b1(0x1980)]({'title':_0xc68971['status']?_0x2db1b1(0x262a)+_0xc68971[_0x2db1b1(0x107b)]+_0x2db1b1(0x1315)+_0xc68971[_0x2db1b1(0x167f)]:'SYSTEM:GETvariables','msg':_0xc68971[_0x2db1b1(0x524)]?JSON[_0x2db1b1(0x10bb)](_0xc68971[_0x2db1b1(0x524)]):_0xc68971[_0x2db1b1(0xd5f)]()});});function _0x977900(){const _0x3ffc09=_0x489fa3;_0x1ef84b[_0x3ffc09(0xcef)]=[];const _0x2faa6e=[];_0x1ef84b['system']['type']&&_0x1ef84b['system'][_0x3ffc09(0x1142)][_0x3ffc09(0x256e)]()===_0x3ffc09(0xc9c)&&_0x1ef84b[_0x3ffc09(0x1d47)][_0x3ffc09(0x8f2)]===_0x3ffc09(0x118b)&&(_0x1ef84b['system'][_0x3ffc09(0x1d55)]=_0x12e02b['cutdigits']?(_0x1ef84b[_0x3ffc09(0x1d47)][_0x3ffc09(0x1e12)]||'')+_0x3ffc09(0x2147)+_0x12e02b['cutdigits']+'}':(_0x1ef84b[_0x3ffc09(0x1d47)][_0x3ffc09(0x1e12)]||'')+'${EXTEN}',_0x12e02b[_0x3ffc09(0x1425)]!==_0x3ffc09(0x1642)?_0x1ef84b[_0x3ffc09(0x1d47)][_0x3ffc09(0xa08)][_0x3ffc09(0x172b)](_0x3ffc09(0x1ea4))<0x0&&(_0x1ef84b[_0x3ffc09(0x1d47)][_0x3ffc09(0xa08)]+=_0x3ffc09(0x1ea4)):_0x1ef84b['system'][_0x3ffc09(0xa08)]=_0x1ef84b[_0x3ffc09(0x1d47)][_0x3ffc09(0xa08)][_0x3ffc09(0x5f4)](_0x3ffc09(0x1ea4),''));if(_0x1ef84b[_0x3ffc09(0x1d47)][_0x3ffc09(0x8f2)]&&_0x1ef84b[_0x3ffc09(0x1d47)][_0x3ffc09(0x8f2)]===_0x3ffc09(0x1802)){}else switch((_0x1ef84b[_0x3ffc09(0x1d47)]['app']||_0x1ef84b[_0x3ffc09(0x1d47)]['appType'])[_0x3ffc09(0x256e)]()){case _0x3ffc09(0x26ba):_0x1ef84b[_0x3ffc09(0x1d47)][_0x3ffc09(0x168a)]=_0x1ef84b[_0x3ffc09(0x1d47)][_0x3ffc09(0x19eb)]+'='+_0x1ef84b[_0x3ffc09(0x1d47)][_0x3ffc09(0x175d)];break;case _0x3ffc09(0x1802):break;default:_0x2faa6e[0x0]=_0x1ef84b[_0x3ffc09(0x1d47)][_0x3ffc09(0x23e9)],_0x2faa6e[0x1]=_0x1ef84b['system'][_0x3ffc09(0x212)],_0x1ef84b[_0x3ffc09(0x1d47)][_0x3ffc09(0x168a)]=_0x2faa6e['join'](',');}_0x5823f1(_0x1ef84b['system']);}function _0x5823f1(_0x2121c9){const _0x3fa661=_0x489fa3;_0x3ac56f[_0x3fa661(0x2458)](_0x2121c9);}}const _0x8c6022=_0x18a9d1;;_0x320618['$inject']=[_0x313a4d(0x10e8),'$q','toasty',_0x313a4d(0x267d),_0x313a4d(0x67d),_0x313a4d(0x247f),'Auth','crudPermissions'];function _0x320618(_0x85b085,_0x58d133,_0x54fe1f,_0xbf987f,_0x226ca6,_0x5c0fa2,_0x133a7a,_0x174d49){const _0x51a1bf=_0x313a4d,_0x343c56=this;_0x343c56[_0x51a1bf(0x2321)]=_0x133a7a[_0x51a1bf(0xb12)](),_0x343c56[_0x51a1bf(0xcef)]=[],_0x343c56[_0x51a1bf(0x1189)]='MAIL.EDIT_'+(_0xbf987f[_0x51a1bf(0x8f2)]||_0xbf987f[_0x51a1bf(0x1873)])[_0x51a1bf(0x1c37)](),_0x343c56[_0x51a1bf(0xa80)]=angular['copy'](_0xbf987f),_0x343c56[_0x51a1bf(0x2514)]=_0x174d49,_0x343c56[_0x51a1bf(0x855)]={};if(_0x343c56[_0x51a1bf(0xa80)]['appdata'])switch(_0x343c56[_0x51a1bf(0xa80)][_0x51a1bf(0x8f2)]?_0x343c56[_0x51a1bf(0xa80)]['appType'][_0x51a1bf(0x256e)]():_0x343c56[_0x51a1bf(0xa80)][_0x51a1bf(0x1873)][_0x51a1bf(0x256e)]()){case _0x51a1bf(0x1802):break;case _0x51a1bf(0xeaa):{const _0x4cb2fd=_0x343c56[_0x51a1bf(0xa80)][_0x51a1bf(0x168a)]['split'](',');_0x343c56[_0x51a1bf(0xa80)][_0x51a1bf(0x2293)]=_0x4cb2fd[0x0],_0x343c56[_0x51a1bf(0xa80)][_0x51a1bf(0x90b)]=_0x4cb2fd[0x1],_0x343c56[_0x51a1bf(0xa80)][_0x51a1bf(0xaf3)]=_0x4cb2fd[_0x51a1bf(0x1298)](0x2,_0x4cb2fd['length'])[_0x51a1bf(0xb47)](',');}break;case _0x51a1bf(0xa46):{const _0x4e8878=_0x343c56[_0x51a1bf(0xa80)][_0x51a1bf(0x168a)]['split'](',');_0x343c56[_0x51a1bf(0xa80)][_0x51a1bf(0x153a)]=_0x4e8878[0x0],_0x343c56[_0x51a1bf(0xa80)]['clientEmail']=_0x4e8878[0x1],_0x343c56['tag']['privateKey']=_0x4e8878[0x2],_0x343c56[_0x51a1bf(0xa80)][_0x51a1bf(0x90b)]=_0x4e8878[0x3],_0x343c56[_0x51a1bf(0xa80)][_0x51a1bf(0xaf3)]=_0x4e8878[_0x51a1bf(0x1298)](0x4,_0x4e8878[_0x51a1bf(0x402)])[_0x51a1bf(0xb47)](',');}break;case _0x51a1bf(0x17d6):{const _0x41390f=_0x343c56['tag'][_0x51a1bf(0x168a)][_0x51a1bf(0x10c8)](',');_0x343c56[_0x51a1bf(0xa80)][_0x51a1bf(0x1651)]=_0x41390f[0x0],_0x343c56[_0x51a1bf(0xa80)][_0x51a1bf(0x252)]=_0x41390f[0x1],_0x343c56['tag'][_0x51a1bf(0x1039)]=_0x41390f[0x2],_0x343c56['tag'][_0x51a1bf(0x8dd)]=_0x41390f[0x3],_0x343c56[_0x51a1bf(0xa80)][_0x51a1bf(0xaf3)]=_0x41390f[_0x51a1bf(0x1298)](0x4,_0x41390f[_0x51a1bf(0x402)])[_0x51a1bf(0xb47)](',');}break;case _0x51a1bf(0x1713):{const _0x3821eb=_0x343c56[_0x51a1bf(0xa80)][_0x51a1bf(0x168a)][_0x51a1bf(0x10c8)](',');_0x343c56[_0x51a1bf(0xa80)][_0x51a1bf(0x583)]=isNaN(_0x3821eb[0x0])?_0x3821eb[0x0]:parseInt(_0x3821eb[0x0],0xa),_0x343c56[_0x51a1bf(0xa80)][_0x51a1bf(0xa8d)]=_0x3821eb[_0x51a1bf(0x1298)](0x1,_0x3821eb[_0x51a1bf(0x402)])[_0x51a1bf(0xb47)](',');}break;case _0x51a1bf(0x7fd):_0x343c56[_0x51a1bf(0xa80)][_0x51a1bf(0xa8d)]=_0x343c56[_0x51a1bf(0xa80)][_0x51a1bf(0x168a)];break;case _0x51a1bf(0x26ba):_0x343c56[_0x51a1bf(0xa80)][_0x51a1bf(0x19eb)]=_0x343c56[_0x51a1bf(0xa80)][_0x51a1bf(0x168a)][_0x51a1bf(0x10c8)]('=')[0x0],_0x343c56['tag'][_0x51a1bf(0x175d)]=_0x343c56[_0x51a1bf(0xa80)][_0x51a1bf(0x168a)][_0x51a1bf(0x10c8)]('=')[0x1];break;case _0x51a1bf(0x1ecb):_0x343c56[_0x51a1bf(0xa80)]['project']=_0x343c56[_0x51a1bf(0xa80)][_0x51a1bf(0x168a)];break;default:{const _0x205a6e=_0x343c56[_0x51a1bf(0xa80)][_0x51a1bf(0x168a)]['split'](',');_0x343c56[_0x51a1bf(0xa80)]['tag']=_0x3f65c0()[_0x51a1bf(0x2635)](_0x205a6e[0x0])?_0x205a6e[0x0]:isNaN(_0x205a6e[0x0])?_0x205a6e[0x0]:parseInt(_0x205a6e[0x0],0xa);}break;}else{}_0x343c56[_0x51a1bf(0xa80)][_0x51a1bf(0x1142)]&&_0x343c56[_0x51a1bf(0xa80)]['type']['toLowerCase']()==='outbound'&&_0x343c56['tag']['appType'][_0x51a1bf(0x256e)]()===_0x51a1bf(0x3bb)&&(_0x343c56['tag'][_0x51a1bf(0x1e12)]=_0x343c56['tag'][_0x51a1bf(0x1d55)]?_0x343c56['tag']['phone'][_0x51a1bf(0x10c8)]('$')[0x0]:undefined,_0x343c56[_0x51a1bf(0xa80)][_0x51a1bf(0x1d43)]=_0x343c56[_0x51a1bf(0xa80)][_0x51a1bf(0x11be)]?_0x51a1bf(0x1b60)+_0x343c56[_0x51a1bf(0xa80)][_0x51a1bf(0x11be)]:undefined);_0x343c56[_0x51a1bf(0x1c19)]=_0x529905,_0x343c56[_0x51a1bf(0x13f3)]=_0x1871de,_0x133a7a[_0x51a1bf(0x23e0)](_0x51a1bf(0x174b))?_0x5c0fa2[_0x51a1bf(0xa80)][_0x51a1bf(0x16b4)]({'fields':'id,name','sort':_0x51a1bf(0x19eb),'nolimit':'true'})['$promise'][_0x51a1bf(0x146b)](function(_0x46c9e2){const _0x4cd856=_0x51a1bf;_0x343c56['tags']=_0x46c9e2[_0x4cd856(0x19c7)]||[];})[_0x51a1bf(0x129e)](function(_0x2dbe96){const _0xfbff28=_0x51a1bf;_0x54fe1f[_0xfbff28(0x1980)]({'title':_0x2dbe96[_0xfbff28(0x107b)]?'API:'+_0x2dbe96[_0xfbff28(0x107b)]+_0xfbff28(0x1315)+_0x2dbe96['statusText']:_0xfbff28(0x29c),'msg':_0x2dbe96[_0xfbff28(0x524)]?JSON[_0xfbff28(0x10bb)](_0x2dbe96[_0xfbff28(0x524)]):_0x2dbe96[_0xfbff28(0xd5f)]()});}):_0x5c0fa2['tag'][_0x51a1bf(0x16b4)]({'fields':_0x51a1bf(0x7a7),'sort':_0x51a1bf(0x19eb),'nolimit':_0x51a1bf(0x1185)})[_0x51a1bf(0x2945)][_0x51a1bf(0x146b)](function(_0x43f248){const _0x3d7470=_0x51a1bf;_0x343c56[_0x3d7470(0x1b86)]=_0x43f248[_0x3d7470(0x19c7)]||[];})['then'](function(){const _0xbae8fa=_0x51a1bf;return _0x5c0fa2['userProfileSection'][_0xbae8fa(0x16b4)]({'userProfileId':_0x343c56[_0xbae8fa(0x2321)]['userProfileId'],'sectionId':0x3f0})[_0xbae8fa(0x2945)];})[_0x51a1bf(0x146b)](function(_0x51b369){const _0xe1d0f=_0x51a1bf,_0xa577f8=_0x51b369&&_0x51b369[_0xe1d0f(0x19c7)]?_0x51b369[_0xe1d0f(0x19c7)][0x0]:null;if(!_0xa577f8){const _0x8cb091=[];let _0x4b253d=null;_0x343c56['tag']&&(_0x4b253d=_0x3f65c0()[_0xe1d0f(0xc84)](_0x343c56[_0xe1d0f(0x1b86)],{'name':_0x343c56[_0xe1d0f(0xa80)][_0xe1d0f(0xa80)]}));for(let _0x42c385=0x0;_0x42c385<_0x343c56[_0xe1d0f(0x1b86)][_0xe1d0f(0x402)];_0x42c385++){_0x4b253d&&_0x343c56[_0xe1d0f(0x1b86)][_0x42c385]['id']===_0x4b253d['id']&&(_0x343c56['tags'][_0x42c385][_0xe1d0f(0x8ff)]=![],_0x8cb091[_0xe1d0f(0x1f47)](_0x343c56[_0xe1d0f(0x1b86)][_0x42c385]));}_0x343c56[_0xe1d0f(0x1b86)]=_0x8cb091;}else{if(!_0xa577f8['autoAssociation'])return _0x5c0fa2[_0xe1d0f(0xdcc)]['get']({'sectionId':_0xa577f8['id']})[_0xe1d0f(0x2945)][_0xe1d0f(0x146b)](function(_0x16ef3e){const _0x2ac429=_0xe1d0f,_0x2b1aee=_0x3f65c0()[_0x2ac429(0x205)](_0x16ef3e['rows'],function(_0x248923){const _0x51b55c=_0x2ac429;return _0x3f65c0()[_0x51b55c(0xc84)](_0x343c56[_0x51b55c(0x1b86)],{'id':_0x248923[_0x51b55c(0x18b8)]});});let _0x68a4cc=null;_0x343c56[_0x2ac429(0xa80)]&&(_0x68a4cc=_0x3f65c0()[_0x2ac429(0xc84)](_0x343c56[_0x2ac429(0x1b86)],{'name':_0x343c56[_0x2ac429(0xa80)][_0x2ac429(0xa80)]}));if(_0x68a4cc&&!_0x3f65c0()['some'](_0x2b1aee,['id',_0x68a4cc['id']])){const _0x266b77=_0x3f65c0()[_0x2ac429(0xc84)](_0x343c56[_0x2ac429(0x1b86)],{'id':_0x68a4cc['id']});_0x266b77[_0x2ac429(0x8ff)]=![],_0x2b1aee[_0x2ac429(0x1f47)](_0x266b77);}_0x343c56[_0x2ac429(0x1b86)]=_0x2b1aee;});}})['catch'](function(_0x2552d0){const _0x12bc57=_0x51a1bf;_0x54fe1f[_0x12bc57(0x1980)]({'title':_0x2552d0[_0x12bc57(0x107b)]?'API:'+_0x2552d0[_0x12bc57(0x107b)]+_0x12bc57(0x1315)+_0x2552d0['statusText']:_0x12bc57(0x156),'msg':_0x2552d0[_0x12bc57(0x524)]?JSON[_0x12bc57(0x10bb)](_0x2552d0['data']):_0x2552d0[_0x12bc57(0xd5f)]()});});function _0x529905(){const _0x4ccdc8=_0x51a1bf;_0x343c56[_0x4ccdc8(0xcef)]=[];const _0x453652=[];_0x343c56[_0x4ccdc8(0xa80)][_0x4ccdc8(0x1142)]&&_0x343c56[_0x4ccdc8(0xa80)][_0x4ccdc8(0x1142)]['toLowerCase']()===_0x4ccdc8(0xc9c)&&_0x343c56[_0x4ccdc8(0xa80)][_0x4ccdc8(0x8f2)]===_0x4ccdc8(0x118b)&&(_0x343c56[_0x4ccdc8(0xa80)][_0x4ccdc8(0x1d55)]=_0x226ca6[_0x4ccdc8(0x1274)]?(_0x343c56[_0x4ccdc8(0xa80)][_0x4ccdc8(0x1e12)]||'')+_0x4ccdc8(0x2147)+_0x226ca6['cutdigits']+'}':(_0x343c56[_0x4ccdc8(0xa80)][_0x4ccdc8(0x1e12)]||'')+'${EXTEN}',_0x226ca6[_0x4ccdc8(0x1425)]!=='none'?_0x343c56['tag'][_0x4ccdc8(0xa08)]['indexOf'](_0x4ccdc8(0x1ea4))<0x0&&(_0x343c56[_0x4ccdc8(0xa80)][_0x4ccdc8(0xa08)]+=_0x4ccdc8(0x1ea4)):_0x343c56['tag']['options']=_0x343c56['tag']['options'][_0x4ccdc8(0x5f4)](_0x4ccdc8(0x1ea4),''));const _0x4881b1=_0x3f65c0()['find'](_0x343c56[_0x4ccdc8(0x1b86)],{'name':_0x343c56['tag']['tag']});_0x4881b1&&(_0x343c56['tag']['TagId']=_0x4881b1['id']);if(_0x343c56[_0x4ccdc8(0xa80)][_0x4ccdc8(0x8f2)]&&_0x343c56[_0x4ccdc8(0xa80)][_0x4ccdc8(0x8f2)]===_0x4ccdc8(0x1802)){}else switch((_0x343c56[_0x4ccdc8(0xa80)][_0x4ccdc8(0x1873)]||_0x343c56['tag'][_0x4ccdc8(0x8f2)])[_0x4ccdc8(0x256e)]()){case'set':_0x343c56[_0x4ccdc8(0xa80)][_0x4ccdc8(0x168a)]=_0x343c56['tag']['name']+'='+_0x343c56[_0x4ccdc8(0xa80)][_0x4ccdc8(0x175d)];break;case'custom':break;default:_0x453652[0x0]=_0x343c56[_0x4ccdc8(0xa80)][_0x4ccdc8(0xa80)],_0x343c56['tag'][_0x4ccdc8(0x168a)]=_0x453652[_0x4ccdc8(0xb47)](',');}_0x1871de(_0x343c56[_0x4ccdc8(0xa80)]);}function _0x1871de(_0xd1301f){const _0x4d1d55=_0x51a1bf;_0x85b085[_0x4d1d55(0x2458)](_0xd1301f);}}const _0x2ed701=_0x320618;;_0x752257['$inject']=[_0x313a4d(0x23df),'$scope','$state','$q',_0x313a4d(0x214b),_0x313a4d(0x1abe),'$mdDialog','$document',_0x313a4d(0x1fe4),_0x313a4d(0x247f),_0x313a4d(0xa87)];function _0x752257(_0x32e61e,_0x2f17ed,_0xdcb713,_0x24b7a0,_0x5cedfe,_0x39b37d,_0x318d9c,_0x4f70a4,_0x3da51f,_0x40b033,_0x2cb4c9){const _0x2b1042=_0x313a4d,_0x3be2c9=this;_0x3be2c9['currentUser']=_0x2cb4c9[_0x2b1042(0xb12)](),_0x3be2c9[_0x2b1042(0x67d)]={},_0x3be2c9['mailAccountInteractions']={'count':0x0,'rows':[]},_0x3be2c9['selectedMailAccountInteractions']=[],_0x3be2c9[_0x2b1042(0x2514)],_0x3be2c9[_0x2b1042(0x1a56)]={'read':_0x2b1042(0x203c),'closed':_0x2b1042(0x203c),'sort':_0x2b1042(0xd6f),'includeAll':'true','limit':0xa,'page':0x1},_0x3be2c9[_0x2b1042(0x5aa)]=_0x4b40c2,_0x3be2c9[_0x2b1042(0x19b4)]=_0x4fdbe7,_0x3be2c9['mailInteractionDownload']=_0x1642fb,_0x3be2c9[_0x2b1042(0x1c75)]=_0x468610,_0x3be2c9[_0x2b1042(0x16de)]=_0x4374ca,_0x3be2c9[_0x2b1042(0x1a1d)]=_0x1da98c,_0x3be2c9[_0x2b1042(0x21a6)]=_0x56c8da,_0x3be2c9['exportSelectedMailAccountInteractions']=_0x5bb790,_0x3be2c9[_0x2b1042(0x217c)]=_0x53957d,_0x3be2c9[_0x2b1042(0xc65)]=_0x343289;function _0x4b40c2(_0x3061da,_0x1b08bd){const _0x58dc37=_0x2b1042;_0x3be2c9[_0x58dc37(0x67d)]=_0x3061da,_0x3be2c9[_0x58dc37(0x2514)]=typeof _0x1b08bd!==_0x58dc37(0x2274)?_0x1b08bd:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x3be2c9[_0x58dc37(0x1a56)][_0x58dc37(0x658)]=_0x3be2c9[_0x58dc37(0x67d)]['id'],_0x3be2c9['advancedSearch']={'fields':_0x202b9d()},_0x319e09();}function _0x319e09(){const _0x2623d3=_0x2b1042;return _0x40b033['tag'][_0x2623d3(0x16b4)]()[_0x2623d3(0x2945)]['then'](function(_0x54830a){const _0x5ec142=_0x2623d3;_0x3be2c9[_0x5ec142(0x1b86)]=_0x54830a||{'count':0x0,'rows':[]};})[_0x2623d3(0x146b)](function(){const _0x104bd3=_0x2623d3;return _0x40b033[_0x104bd3(0x2036)][_0x104bd3(0x16b4)]({'nolimit':!![]})[_0x104bd3(0x2945)][_0x104bd3(0x146b)](function(_0x1348eb){const _0x4c0567=_0x104bd3;_0x3be2c9[_0x4c0567(0xcb3)]=_0x1348eb||{'count':0x0,'rows':[]};});})[_0x2623d3(0x146b)](function(){const _0x56998a=_0x2623d3;_0x3be2c9[_0x56998a(0x28af)]=_0x5266ba();});}function _0x5266ba(){const _0x1f9f74=_0x2b1042;return[{'name':_0x1f9f74(0x294),'key':_0x1f9f74(0xc68),'type':_0x1f9f74(0x1a10),'label':'DASHBOARDS.SELECT_DATE'},{'name':_0x1f9f74(0x1c7c),'key':_0x1f9f74(0x229e),'type':_0x1f9f74(0xa5f),'label':_0x1f9f74(0x8f5),'customOptions':[{'value':0x0,'translate':'DASHBOARDS.UNREAD'},{'value':0x1,'translate':_0x1f9f74(0x1ce6)},{'value':null,'translate':_0x1f9f74(0x175e)}]},{'name':_0x1f9f74(0x74e),'key':_0x1f9f74(0x1943),'type':_0x1f9f74(0xa5f),'label':_0x1f9f74(0x1682),'customOptions':[{'value':0x0,'translate':'DASHBOARDS.OPENED'},{'value':0x1,'translate':_0x1f9f74(0x1805)},{'value':null,'translate':_0x1f9f74(0x175e)}]},{'name':'Substatus','key':_0x1f9f74(0x100d),'type':_0x1f9f74(0xa5f),'label':'DASHBOARDS.SELECT_SUBSTATUS','options':_0x3be2c9['subStatuses'][_0x1f9f74(0x19c7)],'customOptions':[{'value':_0x1f9f74(0x203c),'translate':_0x1f9f74(0x69c)},{'value':undefined,'translate':'DASHBOARDS.ALL'}],'ngValue':_0x1f9f74(0x19eb),'ngIf':'closed\x20===\x200'},{'name':_0x1f9f74(0x294a),'key':_0x1f9f74(0xea2),'type':_0x1f9f74(0xa5f),'label':_0x1f9f74(0x127),'customOptions':[{'value':_0x1f9f74(0x203c),'translate':_0x1f9f74(0x38d)},{'value':undefined,'translate':_0x1f9f74(0x175e)}]},{'name':_0x1f9f74(0x23a8),'key':_0x1f9f74(0xa80),'type':'multiselect','label':_0x1f9f74(0x1c0e),'options':_0x3be2c9[_0x1f9f74(0x1b86)][_0x1f9f74(0x19c7)],'placeholder':_0x1f9f74(0x66f)}];}function _0x202b9d(){const _0x493b0c=_0x2b1042;return[{'name':'Id','column':'id','type':_0x493b0c(0x181)},{'name':'Contact','column':_0x493b0c(0x364),'type':_0x493b0c(0x14ee),'options':{'searchFields':[_0x493b0c(0x1ed4),_0x493b0c(0xee4),_0x493b0c(0x1a2b)],'route':{'model':'cmContact','action':'get','params':{'fields':_0x493b0c(0x992),'Contact':_0x493b0c(0x3fb),'nolimit':!![]}},'extraOperators':[_0x493b0c(0xacb)],'excludedOperators':[_0x493b0c(0x1671)]}},{'name':_0x493b0c(0x11e1),'column':_0x493b0c(0xe32),'type':_0x493b0c(0xa8d),'options':{'excludedOperators':[_0x493b0c(0x6be),_0x493b0c(0x1671)]}},{'name':_0x493b0c(0x710),'column':_0x493b0c(0xb80),'type':_0x493b0c(0xa8d),'options':{'excludedOperators':[_0x493b0c(0x6be),'$ne']}},{'name':_0x493b0c(0x74e),'column':'closed','type':_0x493b0c(0xa5f),'values':[{'id':0x0,'translate':_0x493b0c(0x143b)},{'id':0x1,'translate':_0x493b0c(0x1805)}],'options':{'excludedOperators':['$ne']}},{'name':_0x493b0c(0x2715),'column':_0x493b0c(0x100d),'type':_0x493b0c(0x175c),'options':{'field':_0x493b0c(0x19eb),'route':{'model':_0x493b0c(0x2036),'action':_0x493b0c(0x16b4),'params':{'nolimit':!![]}},'excludedOperators':[_0x493b0c(0xbe5)]}},{'name':_0x493b0c(0x294a),'column':_0x493b0c(0x2393),'type':_0x493b0c(0x14ee),'options':{'table':'i','route':{'model':_0x493b0c(0xe7b),'action':_0x493b0c(0x16b4),'params':{'role':_0x493b0c(0x1755),'fields':_0x493b0c(0x12bf),'nolimit':!![]}},'searchFields':[_0x493b0c(0x286a),_0x493b0c(0x19eb)],'extraOperators':['$substring'],'excludedOperators':[_0x493b0c(0x1671)]}},{'name':'Tags','column':_0x493b0c(0x23a8),'type':_0x493b0c(0x175c),'options':{'route':{'model':'tag','action':_0x493b0c(0x16b4),'params':{'nolimit':!![]}},'excludedOperators':['$notIn']}},{'name':_0x493b0c(0x294),'column':_0x493b0c(0xc68),'type':_0x493b0c(0x1a10),'options':{'excludedOperators':['$ne']}},{'name':_0x493b0c(0x270b),'column':'unreadMessages','type':_0x493b0c(0xa5f),'values':[{'id':0x1,'translate':_0x493b0c(0x1ce6)},{'id':0x0,'translate':_0x493b0c(0x33f)}],'options':{'excludedOperators':['$ne']}}];}function _0x56c8da(){const _0x36983f=_0x2b1042;_0x318d9c[_0x36983f(0x2615)]({'controller':_0x36983f(0x26bc),'controllerAs':'vm','templateUrl':_0x3fb128,'parent':angular[_0x36983f(0x1853)](_0x4f70a4[_0x36983f(0x2586)]),'clickOutsideToClose':![],'locals':{'fields':_0x3be2c9['advancedSearch'][_0x36983f(0x2867)],'color':undefined,'storagePath':'mail.mailAccounts'},'fullscreen':!![]})[_0x36983f(0x146b)](function(_0x495b92){const _0x60cb93=_0x36983f;_0x3be2c9[_0x60cb93(0x1a56)][_0x60cb93(0x21da)]=_0x495b92===![]?undefined:_0x495b92;if(_0x3be2c9['query'][_0x60cb93(0x21da)])_0x3be2c9['query'][_0x60cb93(0x21da)]+=_0x60cb93(0x10a6)+_0x3be2c9[_0x60cb93(0x67d)]['id']+']',_0x4374ca();else _0x495b92===![]&&_0x4374ca();})[_0x36983f(0x129e)](function(_0x327839){const _0xd1df84=_0x36983f;_0x3da51f['error']({'title':_0xd1df84(0x10f5),'msg':_0x327839[_0xd1df84(0x524)]?JSON['stringify'](_0x327839[_0xd1df84(0x524)][_0xd1df84(0x7fd)]):_0x327839[_0xd1df84(0xd5f)]()});});}function _0x1642fb(_0x4d5455,_0x1ccd45,_0x22ff41){const _0x371c13=_0x2b1042;return _0x40b033[_0x371c13(0x3c7)]['download']({'id':_0x4d5455['id'],'exists':!![],'attachments':_0x22ff41})['$promise']['then'](function(_0x263a5f){const _0x1d7375=_0x371c13,_0x480cf3=[_0x263a5f[_0x1d7375(0x2eb)]];let _0x2141cf=_0x1d7375(0xe80)+_0x4d5455['id'];const _0x493cb0=new Blob(_0x480cf3,{'type':_0x263a5f['type']});_0x2141cf=_0x1d7375(0x16ff)+_0x4d5455['id']+_0x1d7375(0xf04);const _0x54a6b9=window[_0x1d7375(0xef3)]['createElement']('a');_0x54a6b9[_0x1d7375(0x1652)](_0x1d7375(0x1b3c),URL['createObjectURL'](_0x493cb0)),_0x54a6b9[_0x1d7375(0x1652)]('download',_0x2141cf),document[_0x1d7375(0x2586)]['appendChild'](_0x54a6b9),_0x54a6b9['click']();})[_0x371c13(0x129e)](function(_0x557449){const _0x5e8d61=_0x371c13;if(_0x557449[_0x5e8d61(0x524)]&&_0x557449[_0x5e8d61(0x524)][_0x5e8d61(0xcef)]&&_0x557449['data']['errors']['length'])for(let _0x5b5abf=0x0;_0x5b5abf<_0x557449[_0x5e8d61(0x524)]['errors']['length'];_0x5b5abf+=0x1){_0x3da51f[_0x5e8d61(0x1980)]({'title':_0x557449['data']['errors'][_0x5b5abf][_0x5e8d61(0x1142)],'msg':_0x557449[_0x5e8d61(0x524)][_0x5e8d61(0xcef)][_0x5b5abf][_0x5e8d61(0x7fd)]});}else _0x3da51f[_0x5e8d61(0x1980)]({'title':_0x557449[_0x5e8d61(0x107b)]?_0x5e8d61(0x262a)+_0x557449['status']+_0x5e8d61(0x1315)+_0x557449[_0x5e8d61(0x167f)]:_0x5e8d61(0x489),'msg':_0x557449[_0x5e8d61(0x524)]?JSON[_0x5e8d61(0x10bb)](_0x557449['data'][_0x5e8d61(0x7fd)]):_0x557449[_0x5e8d61(0xd5f)]()});});}function _0x4fdbe7(_0x3e2826,_0x48ab7c){const _0x286624=_0x2b1042,_0x52eaf6=_0x318d9c[_0x286624(0x1e8a)]()[_0x286624(0x1189)](_0x286624(0x1f40))[_0x286624(0x1cbe)](_0x286624(0x16d3)+(_0x3e2826[_0x286624(0x19eb)]||_0x3e2826['id']&&_0x3f65c0()[_0x286624(0x21cf)](_0x286624(0xb37))+_0x3e2826['id']||'interaction')+_0x286624(0x252f)+_0x286624(0xe01))['ariaLabel'](_0x286624(0xcab))[_0x286624(0x1f27)](_0x48ab7c)['ok']('OK')['cancel'](_0x286624(0x39a));_0x318d9c[_0x286624(0x2615)](_0x52eaf6)[_0x286624(0x146b)](function(){_0x53957d(_0x3e2826);},function(){const _0x10b152=_0x286624;console[_0x10b152(0x1a74)]('CANCEL');});}function _0x468610(_0x21c52d){const _0x53a539=_0x2b1042;_0x3be2c9[_0x53a539(0x2580)]=_0x21c52d||{'count':0x0,'rows':[]};for(let _0x25b202=0x0;_0x25b202<_0x3be2c9['mailAccountInteractions']['rows']['length'];_0x25b202+=0x1){const _0x55dbbd=_0x3be2c9[_0x53a539(0x2580)]['rows'][_0x25b202];_0x23d6c5(_0x55dbbd),_0x55dbbd['Owner'][_0x53a539(0x19eb)]=_0xd6fdcc(_0x55dbbd);}}function _0x4374ca(){const _0xee34eb=_0x2b1042;_0x3be2c9[_0xee34eb(0x1a56)]['offset']=(_0x3be2c9[_0xee34eb(0x1a56)]['page']-0x1)*_0x3be2c9[_0xee34eb(0x1a56)][_0xee34eb(0x221e)],_0x3be2c9[_0xee34eb(0xb9c)]=_0x40b033[_0xee34eb(0x3c7)]['get'](_0x3be2c9['query'],_0x468610)[_0xee34eb(0x2945)];}function _0x1da98c(_0x5cd2cf,_0x5a267b){const _0x18dcaf=_0x2b1042;_0x318d9c[_0x18dcaf(0x2615)]({'controller':'AgentGeneralInteractionController','controllerAs':'vm','templateUrl':_0x270cc0,'parent':angular[_0x18dcaf(0x1853)](_0x4f70a4[_0x18dcaf(0x2586)]),'targetEvent':_0x5cd2cf,'clickOutsideToClose':!![],'onShowing':function(_0x4e3ba3){const _0x3426c1=_0x18dcaf;_0x4e3ba3['vm']['init']({'id':0x1,'channel':_0x3426c1(0x56b),'interaction':_0x5a267b,'spy':!![]},_0x2f17ed[_0x3426c1(0x2870)]['vm'][_0x3426c1(0x15b9)]);}});}function _0x53957d(_0x3631c7){const _0x141b98=_0x2b1042;_0x40b033[_0x141b98(0x3c7)][_0x141b98(0x1fac)]({'id':_0x3631c7['id']})[_0x141b98(0x2945)][_0x141b98(0x146b)](function(){const _0x121159=_0x141b98;_0x3f65c0()['remove'](_0x3be2c9[_0x121159(0x2580)][_0x121159(0x19c7)],{'id':_0x3631c7['id']}),_0x3be2c9[_0x121159(0x2580)]['count']-=0x1,!_0x3be2c9[_0x121159(0x2580)][_0x121159(0x19c7)][_0x121159(0x402)]&&_0x4374ca(),_0x3da51f[_0x121159(0x1c75)]({'title':_0x121159(0x739),'msg':_0x3631c7['name']?_0x3631c7[_0x121159(0x19eb)]+_0x121159(0x23e3):''});})['catch'](function(_0x22289e){const _0x3e8a9e=_0x141b98;if(_0x22289e[_0x3e8a9e(0x524)]&&_0x22289e[_0x3e8a9e(0x524)]['errors']&&_0x22289e[_0x3e8a9e(0x524)][_0x3e8a9e(0xcef)][_0x3e8a9e(0x402)]){_0x3be2c9[_0x3e8a9e(0xcef)]=_0x22289e[_0x3e8a9e(0x524)][_0x3e8a9e(0xcef)]||[{'message':_0x22289e[_0x3e8a9e(0xd5f)](),'type':_0x3e8a9e(0x12eb)}];for(let _0x52d968=0x0;_0x52d968<_0x22289e['data'][_0x3e8a9e(0xcef)]['length'];_0x52d968++){_0x3da51f['error']({'title':_0x22289e['data'][_0x3e8a9e(0xcef)][_0x52d968]['type'],'msg':_0x22289e[_0x3e8a9e(0x524)][_0x3e8a9e(0xcef)][_0x52d968][_0x3e8a9e(0x7fd)]});}}else _0x3da51f[_0x3e8a9e(0x1980)]({'title':_0x22289e[_0x3e8a9e(0x107b)]?_0x3e8a9e(0x262a)+_0x22289e['status']+_0x3e8a9e(0x1315)+_0x22289e[_0x3e8a9e(0x167f)]:_0x3e8a9e(0x12eb),'msg':_0x22289e[_0x3e8a9e(0x524)]?JSON[_0x3e8a9e(0x10bb)](_0x22289e[_0x3e8a9e(0x524)]['message']):_0x22289e['message']||_0x22289e[_0x3e8a9e(0xd5f)]()});});}function _0x5bb790(){const _0x3ea399=_0x2b1042,_0x20eddf=angular['copy'](_0x3be2c9[_0x3ea399(0x1718)]);return _0x3be2c9[_0x3ea399(0x1718)]=[],_0x20eddf;}function _0x343289(_0x404dd6){const _0x387a40=_0x2b1042,_0x21f2d8=_0x318d9c[_0x387a40(0x1e8a)]()[_0x387a40(0x1189)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20interactions?')[_0x387a40(0x1cbe)](_0x387a40(0x16d3)+_0x3be2c9[_0x387a40(0x1718)]['length']+_0x387a40(0x2452)+_0x387a40(0xe01))[_0x387a40(0x4bd)](_0x387a40(0xa37))[_0x387a40(0x1f27)](_0x404dd6)['ok']('OK')[_0x387a40(0x6c3)](_0x387a40(0x39a));_0x318d9c['show'](_0x21f2d8)[_0x387a40(0x146b)](function(){const _0x3417d4=_0x387a40;_0x3be2c9['selectedMailAccountInteractions'][_0x3417d4(0x1df5)](function(_0x1ba868){_0x53957d(_0x1ba868);}),_0x3be2c9[_0x3417d4(0x1718)]=[];});}function _0x23d6c5(_0x8759fc){const _0x30180a=_0x2b1042;if(!_0x3f65c0()['isEmpty'](_0x8759fc['to'])&&!_0x3f65c0()[_0x30180a(0xa4e)](_0x8759fc['to'],_0x3be2c9['mailAccount']['email']))_0x8759fc['contactName']=_0x8759fc['to'][_0x30180a(0x10c8)]('\x20<')[0x0],_0x8759fc[_0x30180a(0x14e3)]=_0x8759fc['to'][_0x30180a(0x10c8)]('<')[_0x30180a(0x18c1)]()[_0x30180a(0x10c8)]('>')[0x0];else _0x8759fc[_0x30180a(0x364)]?(_0x8759fc['contactName']=(_0x8759fc[_0x30180a(0x364)][_0x30180a(0x1ed4)]||'')+'\x20'+(_0x8759fc[_0x30180a(0x364)]['lastName']||''),_0x8759fc[_0x30180a(0x14e3)]=_0x8759fc['Contact'][_0x30180a(0x1a2b)]||''):_0x8759fc[_0x30180a(0x792)]=_0x5cedfe['instant'](_0x30180a(0xe0b));}function _0xd6fdcc(_0x4b66ed){const _0x35e1d7=_0x2b1042;if(_0x4b66ed['UserId'])return _0x4b66ed[_0x35e1d7(0xea2)]===_0x3be2c9[_0x35e1d7(0x2321)]['id']?_0x5cedfe['instant']('DASHBOARDS.ME'):_0x4b66ed[_0x35e1d7(0xac5)][_0x35e1d7(0x286a)]+'\x20<'+_0x4b66ed[_0x35e1d7(0xac5)]['internal']+'>';return _0x5cedfe[_0x35e1d7(0xde)](_0x35e1d7(0x38d));}let _0x40abf9=!![],_0x2af4f9=0x1;_0x2f17ed['$watch'](_0x2b1042(0x117f),function(_0x5174cd,_0x1eca8c){const _0x47ff09=_0x2b1042;_0x40abf9?_0x39b37d(function(){_0x40abf9=![];}):(!_0x1eca8c&&(_0x2af4f9=_0x3be2c9[_0x47ff09(0x1a56)]['page']),_0x5174cd!==_0x1eca8c&&(_0x3be2c9[_0x47ff09(0x1a56)][_0x47ff09(0x844)]=0x1),!_0x5174cd&&(_0x3be2c9[_0x47ff09(0x1a56)]['page']=_0x2af4f9),_0x4374ca());});}const _0x17f6e4=_0x752257;;const _0x3bc54c=_0x4acfac['p']+'src/js/modules/main/apps/mail/views/mailAccounts/edit/mailCannedAnswers/dialog.html/dialog.html';;_0x3a26a0['$inject']=[_0x313a4d(0x23df),_0x313a4d(0x910),_0x313a4d(0x1862),'$q',_0x313a4d(0x214b),_0x313a4d(0x1abe),_0x313a4d(0x10e8),'$document',_0x313a4d(0x1fe4),_0x313a4d(0x247f),_0x313a4d(0xa87)];function _0x3a26a0(_0x55a93d,_0x4cc9c2,_0x41ec11,_0x3d549c,_0x541b90,_0x96bbb1,_0x17e800,_0x1068e0,_0x333b20,_0x5e195a,_0x5b157b){const _0x1d9ab7=_0x313a4d,_0x7e5c61=this;_0x7e5c61[_0x1d9ab7(0x2321)]=_0x5b157b[_0x1d9ab7(0xb12)](),_0x7e5c61['mailAccount']={},_0x7e5c61[_0x1d9ab7(0xbf3)]={'count':0x0,'rows':[]},_0x7e5c61[_0x1d9ab7(0x17ab)]=[],_0x7e5c61['crudPermissions'],_0x7e5c61[_0x1d9ab7(0x1a56)]={'fields':_0x1d9ab7(0x241e),'limit':0xa,'page':0x1},_0x7e5c61[_0x1d9ab7(0x5aa)]=_0x5376b1,_0x7e5c61[_0x1d9ab7(0x19b4)]=_0x2e4a14,_0x7e5c61[_0x1d9ab7(0x1c75)]=_0x5f3762,_0x7e5c61['getMailAccountMailCannedAnswers']=_0x2fc887,_0x7e5c61[_0x1d9ab7(0x6f3)]=_0x32ab6b,_0x7e5c61[_0x1d9ab7(0x3fe)]=_0x4b53ff,_0x7e5c61[_0x1d9ab7(0x28db)]=_0x3697f3,_0x7e5c61[_0x1d9ab7(0x291a)]=_0x4e14ef;function _0x5376b1(_0x1723bd,_0x343b27){const _0x34febb=_0x1d9ab7;_0x7e5c61[_0x34febb(0x67d)]=_0x1723bd,_0x7e5c61[_0x34febb(0x2514)]=typeof _0x343b27!==_0x34febb(0x2274)?_0x343b27:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x7e5c61[_0x34febb(0x1a56)][_0x34febb(0x658)]=_0x7e5c61[_0x34febb(0x67d)]['id'],_0x7e5c61[_0x34febb(0x1a56)]['id']=_0x7e5c61['mailAccount']['id'],_0x2fc887();}function _0x2e4a14(_0x4a7c7d,_0x5dd370){const _0x57f67b=_0x1d9ab7,_0x8cbc5f=_0x17e800[_0x57f67b(0x1e8a)]()[_0x57f67b(0x1189)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20mailCannedAnswer?')[_0x57f67b(0x1cbe)](_0x57f67b(0x16d3)+(_0x4a7c7d['name']||_0x4a7c7d['id']&&_0x3f65c0()[_0x57f67b(0x21cf)](_0x57f67b(0xc3e))+_0x4a7c7d['id']||_0x57f67b(0x105f))+_0x57f67b(0x252f)+_0x57f67b(0xe01))[_0x57f67b(0x4bd)]('delete\x20mailCannedAnswer')[_0x57f67b(0x1f27)](_0x5dd370)['ok']('OK')[_0x57f67b(0x6c3)]('CANCEL');_0x17e800[_0x57f67b(0x2615)](_0x8cbc5f)[_0x57f67b(0x146b)](function(){_0x3697f3(_0x4a7c7d);},function(){const _0x5d1ba9=_0x57f67b;console[_0x5d1ba9(0x1a74)](_0x5d1ba9(0x39a));});}function _0x5f3762(_0x935a70){const _0xd3eeba=_0x1d9ab7;_0x7e5c61[_0xd3eeba(0xbf3)]=_0x935a70||{'count':0x0,'rows':[]};}function _0x2fc887(){const _0x2cfc25=_0x1d9ab7;_0x7e5c61[_0x2cfc25(0x1a56)][_0x2cfc25(0x145d)]=(_0x7e5c61['query'][_0x2cfc25(0x844)]-0x1)*_0x7e5c61[_0x2cfc25(0x1a56)][_0x2cfc25(0x221e)],_0x7e5c61[_0x2cfc25(0xb9c)]=_0x5e195a[_0x2cfc25(0x67d)][_0x2cfc25(0x13e1)](_0x7e5c61[_0x2cfc25(0x1a56)],_0x5f3762)[_0x2cfc25(0x2945)];}function _0x32ab6b(_0xf2ad88,_0x591349){const _0x2e755f=_0x1d9ab7;_0x17e800[_0x2e755f(0x2615)]({'controller':_0x2e755f(0xb9d),'controllerAs':'vm','templateUrl':_0x3bc54c,'parent':angular[_0x2e755f(0x1853)](_0x1068e0[_0x2e755f(0x2586)]),'targetEvent':_0xf2ad88,'clickOutsideToClose':!![],'locals':{'mailAccount':_0x7e5c61[_0x2e755f(0x67d)],'mailCannedAnswer':_0x591349,'mailCannedAnswers':_0x7e5c61[_0x2e755f(0xbf3)]['rows'],'license':null,'setting':null,'crudPermissions':_0x7e5c61[_0x2e755f(0x2514)]}});}function _0x3697f3(_0x2e43a2){const _0x4b75a1=_0x1d9ab7;_0x5e195a[_0x4b75a1(0x1ada)][_0x4b75a1(0x1fac)]({'id':_0x2e43a2['id']})[_0x4b75a1(0x2945)][_0x4b75a1(0x146b)](function(){const _0x4e75f2=_0x4b75a1;_0x3f65c0()[_0x4e75f2(0x2640)](_0x7e5c61[_0x4e75f2(0xbf3)][_0x4e75f2(0x19c7)],{'id':_0x2e43a2['id']}),_0x7e5c61[_0x4e75f2(0xbf3)]['count']-=0x1,!_0x7e5c61['mailAccountMailCannedAnswers']['rows'][_0x4e75f2(0x402)]&&_0x2fc887(),_0x333b20[_0x4e75f2(0x1c75)]({'title':_0x4e75f2(0x12c2),'msg':_0x2e43a2[_0x4e75f2(0x19eb)]?_0x2e43a2[_0x4e75f2(0x19eb)]+_0x4e75f2(0x23e3):''});})[_0x4b75a1(0x129e)](function(_0x14ab4){const _0x7d18d5=_0x4b75a1;if(_0x14ab4[_0x7d18d5(0x524)]&&_0x14ab4[_0x7d18d5(0x524)][_0x7d18d5(0xcef)]&&_0x14ab4[_0x7d18d5(0x524)][_0x7d18d5(0xcef)][_0x7d18d5(0x402)]){_0x7e5c61[_0x7d18d5(0xcef)]=_0x14ab4['data'][_0x7d18d5(0xcef)]||[{'message':_0x14ab4[_0x7d18d5(0xd5f)](),'type':'SYSTEM:GETmailAccount'}];for(let _0x248030=0x0;_0x248030<_0x14ab4[_0x7d18d5(0x524)][_0x7d18d5(0xcef)]['length'];_0x248030++){_0x333b20['error']({'title':_0x14ab4[_0x7d18d5(0x524)][_0x7d18d5(0xcef)][_0x248030][_0x7d18d5(0x1142)],'msg':_0x14ab4['data'][_0x7d18d5(0xcef)][_0x248030][_0x7d18d5(0x7fd)]});}}else _0x333b20['error']({'title':_0x14ab4[_0x7d18d5(0x107b)]?_0x7d18d5(0x262a)+_0x14ab4[_0x7d18d5(0x107b)]+'\x20-\x20'+_0x14ab4[_0x7d18d5(0x167f)]:_0x7d18d5(0x12eb),'msg':_0x14ab4[_0x7d18d5(0x524)]?JSON['stringify'](_0x14ab4[_0x7d18d5(0x524)][_0x7d18d5(0x7fd)]):_0x14ab4[_0x7d18d5(0x7fd)]||_0x14ab4['toString']()});});}function _0x4b53ff(){const _0x3d0fa2=_0x1d9ab7,_0x198d76=angular[_0x3d0fa2(0x235a)](_0x7e5c61['selectedMailAccountMailCannedAnswers']);return _0x7e5c61[_0x3d0fa2(0x17ab)]=[],_0x198d76;}function _0x4e14ef(_0x5b8d62){const _0x4f5885=_0x1d9ab7,_0x405d2d=_0x17e800[_0x4f5885(0x1e8a)]()['title'](_0x4f5885(0x1bf8))[_0x4f5885(0x1cbe)](_0x4f5885(0x16d3)+_0x7e5c61['selectedMailAccountMailCannedAnswers'][_0x4f5885(0x402)]+_0x4f5885(0x2452)+_0x4f5885(0xe01))[_0x4f5885(0x4bd)](_0x4f5885(0x1714))[_0x4f5885(0x1f27)](_0x5b8d62)['ok']('OK')[_0x4f5885(0x6c3)](_0x4f5885(0x39a));_0x17e800[_0x4f5885(0x2615)](_0x405d2d)[_0x4f5885(0x146b)](function(){const _0x253df5=_0x4f5885;_0x7e5c61['selectedMailAccountMailCannedAnswers'][_0x253df5(0x1df5)](function(_0x2828ef){_0x3697f3(_0x2828ef);}),_0x7e5c61[_0x253df5(0x17ab)]=[];});}let _0xb2f64c=!![],_0x5d9b1f=0x1;_0x4cc9c2['$watch']('vm_dc.query.filter',function(_0x47284d,_0x5d56f2){const _0x38b5d9=_0x1d9ab7;_0xb2f64c?_0x96bbb1(function(){_0xb2f64c=![];}):(!_0x5d56f2&&(_0x5d9b1f=_0x7e5c61['query'][_0x38b5d9(0x844)]),_0x47284d!==_0x5d56f2&&(_0x7e5c61[_0x38b5d9(0x1a56)][_0x38b5d9(0x844)]=0x1),!_0x47284d&&(_0x7e5c61[_0x38b5d9(0x1a56)][_0x38b5d9(0x844)]=_0x5d9b1f),_0x2fc887());});}const _0x58d222=_0x3a26a0;;_0x55c05e[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1862),_0x313a4d(0xd08),_0x313a4d(0x10e8),'$q',_0x313a4d(0x214b),_0x313a4d(0x1fe4),'mailCannedAnswers',_0x313a4d(0x105f),_0x313a4d(0x247f),_0x313a4d(0xa87),'license',_0x313a4d(0x15b9),_0x313a4d(0x2514)];function _0x55c05e(_0x445e0f,_0x3ca9a0,_0x4a2885,_0x47b0f9,_0x5b71ae,_0x4e59f7,_0x482ff3,_0x29f655,_0x244389,_0x3e228a,_0x406dc9,_0x66dc55,_0x4109b7,_0x13748f){const _0x1abc8b=_0x313a4d,_0x3960a1=this;_0x3960a1[_0x1abc8b(0x2321)]=_0x406dc9['getCurrentUser'](),_0x3960a1['errors']=[],_0x3960a1['setting']=_0x4109b7,_0x3960a1[_0x1abc8b(0x2690)]=_0x66dc55,_0x3960a1[_0x1abc8b(0x2514)]=_0x13748f,_0x3960a1[_0x1abc8b(0x855)]={},_0x3960a1[_0x1abc8b(0x2251)]=_0x3960a1[_0x1abc8b(0x15b9)]&&_0x3960a1[_0x1abc8b(0x15b9)][_0x1abc8b(0x976)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3960a1[_0x1abc8b(0x1189)]=_0x1abc8b(0x682),_0x3960a1['mailCannedAnswer']=angular[_0x1abc8b(0x235a)](_0x244389),_0x3960a1[_0x1abc8b(0x1b27)]=_0x29f655,_0x3960a1['newMailCannedAnswer']=![];!_0x3960a1[_0x1abc8b(0x105f)]&&(_0x3960a1[_0x1abc8b(0x105f)]={},_0x3960a1['title']=_0x1abc8b(0x8a1),_0x3960a1[_0x1abc8b(0x16d)]=!![]);_0x3ca9a0['params']['id']&&(_0x3960a1[_0x1abc8b(0x105f)][_0x1abc8b(0x658)]=_0x3ca9a0[_0x1abc8b(0x16a)]['id']);_0x3960a1[_0x1abc8b(0xc7f)]=_0x419296,_0x3960a1['saveMailCannedAnswer']=_0x36c11d,_0x3960a1[_0x1abc8b(0xf02)]=_0x34af1c,_0x3960a1[_0x1abc8b(0xe73)]=_0xf698fa,_0x3960a1[_0x1abc8b(0x13f3)]=_0x596f85;function _0x419296(){const _0x198bc6=_0x1abc8b;_0x3960a1[_0x198bc6(0xcef)]=[],_0x3e228a[_0x198bc6(0x1ada)][_0x198bc6(0x1e3)](_0x3960a1['mailCannedAnswer'])[_0x198bc6(0x2945)]['then'](function(_0x136969){const _0x1549de=_0x198bc6;_0x3960a1[_0x1549de(0x1b27)][_0x1549de(0xb3d)](_0x136969[_0x1549de(0x2488)]()),_0x482ff3[_0x1549de(0x1c75)]({'title':_0x1549de(0x20b6),'msg':_0x3960a1[_0x1549de(0x105f)]['name']?_0x3960a1[_0x1549de(0x105f)][_0x1549de(0x19eb)]+_0x1549de(0x1386):''}),_0x596f85(_0x136969);})[_0x198bc6(0x129e)](function(_0x4ed622){const _0x355d7b=_0x198bc6;if(_0x4ed622[_0x355d7b(0x524)]&&_0x4ed622[_0x355d7b(0x524)][_0x355d7b(0xcef)]&&_0x4ed622[_0x355d7b(0x524)][_0x355d7b(0xcef)]['length']){_0x3960a1[_0x355d7b(0xcef)]=_0x4ed622['data'][_0x355d7b(0xcef)]||[{'message':_0x4ed622[_0x355d7b(0xd5f)](),'type':_0x355d7b(0x13f)}];for(let _0x360ce5=0x0;_0x360ce5<_0x4ed622[_0x355d7b(0x524)]['errors'][_0x355d7b(0x402)];_0x360ce5+=0x1){_0x482ff3[_0x355d7b(0x1980)]({'title':_0x4ed622[_0x355d7b(0x524)][_0x355d7b(0xcef)][_0x360ce5][_0x355d7b(0x1142)],'msg':_0x4ed622[_0x355d7b(0x524)][_0x355d7b(0xcef)][_0x360ce5][_0x355d7b(0x7fd)]});}}else _0x482ff3[_0x355d7b(0x1980)]({'title':_0x4ed622['status']?'API:'+_0x4ed622[_0x355d7b(0x107b)]+'\x20-\x20'+_0x4ed622[_0x355d7b(0x167f)]:'api.cannedAnswer.save','msg':_0x4ed622[_0x355d7b(0x524)]?JSON[_0x355d7b(0x10bb)](_0x4ed622[_0x355d7b(0x524)][_0x355d7b(0x7fd)]):_0x4ed622[_0x355d7b(0xd5f)]()});});}function _0x36c11d(){const _0x32d81f=_0x1abc8b;_0x3960a1['errors']=[],_0x3e228a[_0x32d81f(0x1ada)]['update']({'id':_0x3960a1[_0x32d81f(0x105f)]['id']},_0x3960a1[_0x32d81f(0x105f)])[_0x32d81f(0x2945)][_0x32d81f(0x146b)](function(_0x508897){const _0x4d8948=_0x32d81f,_0x555761=_0x3f65c0()[_0x4d8948(0xc84)](_0x3960a1[_0x4d8948(0x1b27)],{'id':_0x508897['id']});_0x555761&&_0x3f65c0()['merge'](_0x555761,_0x3f65c0()[_0x4d8948(0x40e)](_0x508897[_0x4d8948(0x2488)](),_0x3f65c0()[_0x4d8948(0x627)](_0x555761))),_0x482ff3[_0x4d8948(0x1c75)]({'title':_0x4d8948(0x1279),'msg':_0x3960a1[_0x4d8948(0x105f)][_0x4d8948(0x19eb)]?_0x3960a1[_0x4d8948(0x105f)][_0x4d8948(0x19eb)]+'\x20has\x20been\x20saved!':''}),_0x596f85(_0x508897);})[_0x32d81f(0x129e)](function(_0x55ccf8){const _0x18c37a=_0x32d81f;if(_0x55ccf8[_0x18c37a(0x524)]&&_0x55ccf8[_0x18c37a(0x524)][_0x18c37a(0xcef)]&&_0x55ccf8['data'][_0x18c37a(0xcef)][_0x18c37a(0x402)]){_0x3960a1[_0x18c37a(0xcef)]=_0x55ccf8[_0x18c37a(0x524)][_0x18c37a(0xcef)]||[{'message':_0x55ccf8[_0x18c37a(0xd5f)](),'type':_0x18c37a(0x11ab)}];for(let _0x2825c1=0x0;_0x2825c1<_0x55ccf8[_0x18c37a(0x524)][_0x18c37a(0xcef)][_0x18c37a(0x402)];_0x2825c1++){_0x482ff3[_0x18c37a(0x1980)]({'title':_0x55ccf8[_0x18c37a(0x524)]['errors'][_0x2825c1][_0x18c37a(0x1142)],'msg':_0x55ccf8['data'][_0x18c37a(0xcef)][_0x2825c1]['message']});}}else _0x482ff3['error']({'title':_0x55ccf8['status']?_0x18c37a(0x262a)+_0x55ccf8[_0x18c37a(0x107b)]+_0x18c37a(0x1315)+_0x55ccf8['statusText']:_0x18c37a(0x11ab),'msg':_0x55ccf8[_0x18c37a(0x524)]?JSON['stringify'](_0x55ccf8['data'][_0x18c37a(0x7fd)]):_0x55ccf8[_0x18c37a(0xd5f)]()});});}function _0x34af1c(_0x26c9c1){const _0x4e085f=_0x1abc8b;_0x3960a1[_0x4e085f(0xcef)]=[];const _0x1a0753=_0x47b0f9['confirm']()[_0x4e085f(0x1189)](_0x4e085f(0x1d64))[_0x4e085f(0x80f)]('The\x20mailCannedAnswer\x20will\x20be\x20deleted.')[_0x4e085f(0x4bd)](_0x4e085f(0xd58))['ok'](_0x4e085f(0x25de))['cancel'](_0x4e085f(0xcf0))[_0x4e085f(0x1f27)](_0x26c9c1);_0x47b0f9[_0x4e085f(0x2615)](_0x1a0753)[_0x4e085f(0x146b)](function(){const _0x315473=_0x4e085f;_0x3e228a[_0x315473(0x1ada)][_0x315473(0x1fac)]({'id':_0x3960a1[_0x315473(0x105f)]['id']})[_0x315473(0x2945)][_0x315473(0x146b)](function(){const _0x4500cc=_0x315473;_0x3f65c0()[_0x4500cc(0x2640)](_0x3960a1[_0x4500cc(0x1b27)],{'id':_0x3960a1[_0x4500cc(0x105f)]['id']}),_0x482ff3[_0x4500cc(0x1c75)]({'title':'MailCannedAnswer\x20properly\x20deleted!','msg':(_0x3960a1[_0x4500cc(0x105f)][_0x4500cc(0x19eb)]||_0x4500cc(0x105f))+'\x20has\x20been\x20deleted!'}),_0x596f85(_0x3960a1[_0x4500cc(0x105f)]);})['catch'](function(_0x2bab5e){const _0x39f5a9=_0x315473;if(_0x2bab5e['data']&&_0x2bab5e[_0x39f5a9(0x524)][_0x39f5a9(0xcef)]&&_0x2bab5e[_0x39f5a9(0x524)][_0x39f5a9(0xcef)][_0x39f5a9(0x402)]){_0x3960a1['errors']=_0x2bab5e[_0x39f5a9(0x524)][_0x39f5a9(0xcef)]||[{'message':_0x2bab5e[_0x39f5a9(0xd5f)](),'type':_0x39f5a9(0xe6a)}];for(let _0x442625=0x0;_0x442625<_0x2bab5e[_0x39f5a9(0x524)][_0x39f5a9(0xcef)][_0x39f5a9(0x402)];_0x442625++){_0x482ff3[_0x39f5a9(0x1980)]({'title':_0x2bab5e[_0x39f5a9(0x524)][_0x39f5a9(0xcef)][_0x442625][_0x39f5a9(0x1142)],'msg':_0x2bab5e['data'][_0x39f5a9(0xcef)][_0x442625]['message']});}}else _0x482ff3[_0x39f5a9(0x1980)]({'title':_0x2bab5e[_0x39f5a9(0x107b)]?'API:'+_0x2bab5e[_0x39f5a9(0x107b)]+'\x20-\x20'+_0x2bab5e[_0x39f5a9(0x167f)]:'api.cannedAnswer.delete','msg':_0x2bab5e[_0x39f5a9(0x524)]?JSON[_0x39f5a9(0x10bb)](_0x2bab5e['data'][_0x39f5a9(0x7fd)]):_0x2bab5e['message']||_0x2bab5e[_0x39f5a9(0xd5f)]()});});},function(){});}function _0xf698fa(_0x3713fd){return _0x3713fd===null?undefined:new Date(_0x3713fd);}function _0x596f85(_0x4ae8a2){_0x47b0f9['hide'](_0x4ae8a2);}}const _0x31c0e6=_0x55c05e;;_0x5312fd[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1aa9),_0x313a4d(0x1862),_0x313a4d(0x15fe),'$mdDialog',_0x313a4d(0x4d8),'$timeout',_0x313a4d(0x214b),_0x313a4d(0x247f),_0x313a4d(0x1fe4),_0x313a4d(0xa87)];function _0x5312fd(_0x2750e8,_0x15ac9c,_0x4c9481,_0x5775eb,_0x1db09d,_0x3356f3,_0x343f29,_0x5d9c8d,_0xf9f8a3,_0xdbcdfb,_0x31d8e0){const _0x101d3d=_0x313a4d,_0x58ef2d=this;_0x58ef2d[_0x101d3d(0x2321)]=_0x31d8e0[_0x101d3d(0xb12)](),_0x58ef2d[_0x101d3d(0x2647)]={'count':0x0,'rows':[]},_0x58ef2d[_0x101d3d(0x2ad)]=[],_0x58ef2d[_0x101d3d(0x2514)],_0x58ef2d['levels']={'first':_0x101d3d(0x20c1),'second':'2nd','third':_0x101d3d(0x1195)},_0x58ef2d[_0x101d3d(0x1a56)]={'fields':_0x101d3d(0x2430),'sort':_0x101d3d(0x12f2),'limit':0xa,'page':0x1},_0x58ef2d[_0x101d3d(0x5aa)]=_0x52d197,_0x58ef2d['deleteConfirm']=_0x4cc705,_0x58ef2d['success']=_0x5c1371,_0x58ef2d['getDispositions']=_0x24cbbb,_0x58ef2d[_0x101d3d(0x24dc)]=_0x18b199,_0x58ef2d[_0x101d3d(0x1220)]=_0x5bfbd0,_0x58ef2d[_0x101d3d(0x25f0)]=_0xff4722,_0x58ef2d[_0x101d3d(0x11e4)]=_0x2e6b16,_0x58ef2d['deselectDispositions']=_0x41df1c,_0x58ef2d[_0x101d3d(0x481)]=_0x3b8abf;function _0x52d197(_0x2a1aa6,_0x562463){const _0x408730=_0x101d3d;_0x58ef2d['mailAccount']=_0x2a1aa6||{},_0x58ef2d[_0x408730(0x2514)]=typeof _0x562463!=='undefined'?_0x562463:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x58ef2d[_0x408730(0x1a56)][_0x408730(0x658)]=_0x58ef2d['mailAccount']['id'],_0x58ef2d[_0x408730(0x1a56)]['id']=_0x58ef2d[_0x408730(0x67d)]['id'],_0x24cbbb();}function _0x18b199(_0x28ad2a,_0x1fa788){const _0x4637ff=_0x101d3d;_0x1db09d[_0x4637ff(0x2615)]({'controller':_0x4637ff(0x1a84),'controllerAs':'vm','templateUrl':_0x4f093a,'parent':angular[_0x4637ff(0x1853)](_0x3356f3[_0x4637ff(0x2586)]),'targetEvent':_0x28ad2a,'clickOutsideToClose':!![],'locals':{'disposition':_0x1fa788,'model':{'id':_0x58ef2d[_0x4637ff(0x67d)]['id'],'field':_0x4637ff(0x658),'route':_0x4637ff(0x67d)},'license':null,'setting':null,'crudPermissions':_0x58ef2d[_0x4637ff(0x2514)]}})['then'](function(_0x535921){if(_0x535921)_0x24cbbb();});}function _0x4cc705(_0x31a37d,_0x19dc9f){const _0x54fce8=_0x101d3d,_0x8fa6b3=_0x3f65c0()[_0x54fce8(0x1360)](_0x58ef2d['dispositions'][_0x54fce8(0x19c7)],[_0x54fce8(0x11b5),_0x31a37d['id']]),_0x572507=_0x1db09d[_0x54fce8(0x1e8a)]()['title'](_0x5d9c8d['instant'](_0x54fce8(0x19e6)))['content'](_0x5d9c8d[_0x54fce8(0xde)](_0x54fce8(0xe8d)+(_0x8fa6b3?_0x54fce8(0xda9):_0x54fce8(0xd49)),{'name':_0x31a37d[_0x54fce8(0x19eb)]}))[_0x54fce8(0x4bd)]('Delete\x20disposition')[_0x54fce8(0x1f27)](_0x19dc9f)['ok']('OK')[_0x54fce8(0x6c3)](_0x5d9c8d[_0x54fce8(0xde)]('APP.CANCEL'));_0x1db09d[_0x54fce8(0x2615)](_0x572507)[_0x54fce8(0x146b)](function(){_0x5bfbd0(_0x31a37d);});}function _0x5c1371(_0x2a1077){const _0x29b5ef=_0x101d3d;_0x58ef2d[_0x29b5ef(0x2647)]=_0x2a1077||{'count':0x0,'rows':[]};}function _0x24cbbb(){const _0x271b97=_0x101d3d;_0x58ef2d[_0x271b97(0x1a56)][_0x271b97(0x145d)]=(_0x58ef2d['query'][_0x271b97(0x844)]-0x1)*_0x58ef2d['query'][_0x271b97(0x221e)],_0x58ef2d[_0x271b97(0xb9c)]=_0xf9f8a3[_0x271b97(0x67d)][_0x271b97(0x2451)](_0x58ef2d[_0x271b97(0x1a56)],_0x5c1371)[_0x271b97(0x2945)];}function _0x5bfbd0(_0x51b644){const _0x5ba36a=_0x101d3d;_0xf9f8a3['disposition']['delete']({'id':_0x51b644['id']})[_0x5ba36a(0x2945)][_0x5ba36a(0x146b)](function(){const _0x472b18=_0x5ba36a;_0x24cbbb(),_0xdbcdfb[_0x472b18(0x1c75)]({'title':_0x5d9c8d[_0x472b18(0xde)]('TOOLS.NOTIFICATIONS.DISPOSITION_DELETED_SUCCESS_TITLE')});})[_0x5ba36a(0x129e)](function(_0x351835){const _0x448e84=_0x5ba36a;if(_0x351835[_0x448e84(0x524)]&&_0x351835[_0x448e84(0x524)]['errors']&&_0x351835['data'][_0x448e84(0xcef)][_0x448e84(0x402)]){_0x58ef2d[_0x448e84(0xcef)]=_0x351835[_0x448e84(0x524)][_0x448e84(0xcef)]||[{'message':_0x351835[_0x448e84(0xd5f)](),'type':_0x448e84(0x24a7)}];for(let _0x308ced=0x0;_0x308ced<_0x351835[_0x448e84(0x524)][_0x448e84(0xcef)]['length'];_0x308ced++){_0xdbcdfb[_0x448e84(0x1980)]({'title':_0x351835[_0x448e84(0x524)]['errors'][_0x308ced][_0x448e84(0x1142)],'msg':_0x351835['data'][_0x448e84(0xcef)][_0x308ced][_0x448e84(0x7fd)]});}}else _0xdbcdfb[_0x448e84(0x1980)]({'title':_0x351835[_0x448e84(0x107b)]?_0x448e84(0x262a)+_0x351835[_0x448e84(0x107b)]+'\x20-\x20'+_0x351835['statusText']:_0x448e84(0x24a7),'msg':_0x351835['data']?JSON['stringify'](_0x351835[_0x448e84(0x524)]['message']):_0x351835['message']||_0x351835['toString']()});});}function _0xff4722(){const _0x1046e8=_0x101d3d,_0x2f1bff=angular[_0x1046e8(0x235a)](_0x58ef2d[_0x1046e8(0x2ad)]);return _0x58ef2d[_0x1046e8(0x2ad)]=[],_0x2f1bff;}function _0x2e6b16(_0xbb124e){const _0x4d19b4=_0x101d3d,_0x1cd48c=_0x1db09d['confirm']()[_0x4d19b4(0x1189)](_0x5d9c8d[_0x4d19b4(0xde)](_0x4d19b4(0x1a5b)))[_0x4d19b4(0x80f)](_0x5d9c8d[_0x4d19b4(0xde)](_0x4d19b4(0x23ce),{'total':_0x58ef2d[_0x4d19b4(0x2ad)][_0x4d19b4(0x402)]}))[_0x4d19b4(0x4bd)](_0x4d19b4(0x1eb0))['targetEvent'](_0xbb124e)['ok']('OK')[_0x4d19b4(0x6c3)](_0x5d9c8d[_0x4d19b4(0xde)]('APP.CANCEL'));_0x1db09d[_0x4d19b4(0x2615)](_0x1cd48c)[_0x4d19b4(0x146b)](function(){const _0x1b90f0=_0x4d19b4;_0x58ef2d[_0x1b90f0(0x2ad)][_0x1b90f0(0x1df5)](function(_0x2b14a3){_0x5bfbd0(_0x2b14a3);}),_0x58ef2d['selectedDispositions']=[];});}function _0x41df1c(){const _0x3b8380=_0x101d3d;_0x58ef2d[_0x3b8380(0x2ad)]=[];}function _0x3b8abf(){const _0x280037=_0x101d3d;_0x58ef2d['selectedDispositions']=_0x58ef2d['dispositions'][_0x280037(0x19c7)];}let _0x310029=!![],_0x3f6eda=0x1;_0x2750e8['$watch'](_0x101d3d(0x117f),function(_0x3b5726,_0x159155){const _0x30cf85=_0x101d3d;_0x310029?_0x343f29(function(){_0x310029=![];}):(!_0x159155&&(_0x3f6eda=_0x58ef2d['query']['page']),_0x3b5726!==_0x159155&&(_0x58ef2d[_0x30cf85(0x1a56)]['page']=0x1),!_0x3b5726&&(_0x58ef2d[_0x30cf85(0x1a56)][_0x30cf85(0x844)]=_0x3f6eda),_0x24cbbb());});}const _0x1fbdee=_0x5312fd;;const _0x118033=_0x4acfac['p']+'src/js/modules/main/apps/mail/views/mailAccounts/edit/agentadd/agentadd.html/agentadd.html';;_0x5b5f48['$inject']=[_0x313a4d(0x1862),_0x313a4d(0xd08),'$mdDialog','$document',_0x313a4d(0x214b),'license',_0x313a4d(0x15b9),_0x313a4d(0x247f),'toasty','Auth','mailAccount',_0x313a4d(0x1366)];function _0x5b5f48(_0x44c891,_0x29d95a,_0x1b0694,_0x350d67,_0x7428e2,_0x1b3456,_0x551924,_0x567ce6,_0x3cee04,_0x347edb,_0x3d113c,_0x59f808){const _0x2eb2c3=_0x313a4d,_0x8aa5fa=this;_0x8aa5fa[_0x2eb2c3(0x2321)]=_0x347edb[_0x2eb2c3(0xb12)](),_0x8aa5fa[_0x2eb2c3(0x2690)]=_0x1b3456,_0x8aa5fa[_0x2eb2c3(0x15b9)]=_0x551924,_0x8aa5fa[_0x2eb2c3(0x2251)]=_0x8aa5fa[_0x2eb2c3(0x15b9)]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x8aa5fa['location']=_0x29d95a[_0x2eb2c3(0x2414)]()+_0x2eb2c3(0xb0e)+_0x29d95a[_0x2eb2c3(0x148e)](),_0x8aa5fa[_0x2eb2c3(0x67d)]=_0x3d113c||_0x44c891[_0x2eb2c3(0x16a)][_0x2eb2c3(0x67d)]||{},_0x8aa5fa[_0x2eb2c3(0x1366)]=_0x59f808&&_0x59f808[_0x2eb2c3(0x51c)]==0x1?_0x59f808['rows'][0x0]:null,_0x8aa5fa[_0x2eb2c3(0x2514)]=_0x347edb[_0x2eb2c3(0xe60)](_0x8aa5fa[_0x2eb2c3(0x1366)]?_0x8aa5fa[_0x2eb2c3(0x1366)][_0x2eb2c3(0x2514)]:null),_0x8aa5fa[_0x2eb2c3(0x855)]={},_0x8aa5fa[_0x2eb2c3(0x1b09)]=_0x44c891[_0x2eb2c3(0x16a)]['tab']||0x0,_0x8aa5fa[_0x2eb2c3(0x3a9)]=_0x31bb8f,_0x8aa5fa[_0x2eb2c3(0x1027)]=_0x9dfd1c,_0x8aa5fa[_0x2eb2c3(0x861)]=_0x3cee04['info'],_0x8aa5fa[_0x2eb2c3(0x17eb)]=_0x180df9,_0x8aa5fa['saveMailAccount']=_0x38e932,_0x347edb[_0x2eb2c3(0x23e0)](_0x2eb2c3(0x174b))?_0x567ce6[_0x2eb2c3(0xf03)][_0x2eb2c3(0x16b4)]({'fields':_0x2eb2c3(0x7a7),'sort':_0x2eb2c3(0x19eb)})[_0x2eb2c3(0x2945)][_0x2eb2c3(0x146b)](function(_0x2e1fd1){const _0xa7a47a=_0x2eb2c3;_0x8aa5fa[_0xa7a47a(0x1324)]=_0x2e1fd1[_0xa7a47a(0x19c7)]||[];})['catch'](function(_0x5005bd){const _0x198088=_0x2eb2c3;_0x3cee04[_0x198088(0x1980)]({'title':_0x5005bd[_0x198088(0x107b)]?_0x198088(0x262a)+_0x5005bd[_0x198088(0x107b)]+_0x198088(0x1315)+_0x5005bd[_0x198088(0x167f)]:_0x198088(0x11b3),'msg':_0x5005bd[_0x198088(0x524)]?JSON[_0x198088(0x10bb)](_0x5005bd[_0x198088(0x524)]):_0x5005bd[_0x198088(0xd5f)]()});}):_0x567ce6['cmList'][_0x2eb2c3(0x16b4)]({'fields':_0x2eb2c3(0x7a7),'sort':_0x2eb2c3(0x19eb)})[_0x2eb2c3(0x2945)][_0x2eb2c3(0x146b)](function(_0xeb625a){const _0x16a3a8=_0x2eb2c3;_0x8aa5fa[_0x16a3a8(0x1324)]=_0xeb625a[_0x16a3a8(0x19c7)]||[];})[_0x2eb2c3(0x146b)](function(){const _0x26eba9=_0x2eb2c3;return _0x567ce6[_0x26eba9(0x1366)][_0x26eba9(0x16b4)]({'userProfileId':_0x8aa5fa[_0x26eba9(0x2321)][_0x26eba9(0x209a)],'sectionId':0x12d})[_0x26eba9(0x2945)];})[_0x2eb2c3(0x146b)](function(_0x2df677){const _0x226775=_0x2eb2c3,_0x1b9dea=_0x2df677&&_0x2df677[_0x226775(0x19c7)]?_0x2df677['rows'][0x0]:null;if(!_0x1b9dea){const _0x2bfc58=[];let _0x126bba=null;_0x8aa5fa[_0x226775(0x67d)]&&(_0x126bba=_0x3f65c0()[_0x226775(0xc84)](_0x8aa5fa[_0x226775(0x1324)],{'id':Number(_0x8aa5fa[_0x226775(0x67d)][_0x226775(0xb7c)])}));for(let _0x3fd928=0x0;_0x3fd928<_0x8aa5fa[_0x226775(0x1324)]['length'];_0x3fd928++){_0x126bba&&_0x8aa5fa[_0x226775(0x1324)][_0x3fd928]['id']===_0x126bba['id']&&(_0x8aa5fa['lists'][_0x3fd928][_0x226775(0x8ff)]=![],_0x2bfc58[_0x226775(0x1f47)](_0x8aa5fa[_0x226775(0x1324)][_0x3fd928]));}_0x8aa5fa[_0x226775(0x1324)]=_0x2bfc58;}else{if(!_0x1b9dea[_0x226775(0x11d2)])return _0x567ce6[_0x226775(0xdcc)]['get']({'sectionId':_0x1b9dea['id']})[_0x226775(0x2945)][_0x226775(0x146b)](function(_0x4a6123){const _0xbed5af=_0x226775,_0x22cd10=_0x3f65c0()['map'](_0x4a6123[_0xbed5af(0x19c7)],function(_0x27dbf8){const _0x513d6c=_0xbed5af;return _0x3f65c0()[_0x513d6c(0xc84)](_0x8aa5fa[_0x513d6c(0x1324)],{'id':_0x27dbf8[_0x513d6c(0x18b8)]});});let _0x2e02d1=null;_0x8aa5fa['mailAccount']&&(_0x2e02d1=_0x3f65c0()['find'](_0x8aa5fa[_0xbed5af(0x1324)],{'id':Number(_0x8aa5fa['mailAccount']['ListId'])}));if(_0x2e02d1&&!_0x3f65c0()['some'](_0x22cd10,['id',_0x2e02d1['id']])){const _0x4ade5e=_0x3f65c0()[_0xbed5af(0xc84)](_0x8aa5fa['lists'],{'id':_0x2e02d1['id']});_0x4ade5e[_0xbed5af(0x8ff)]=![],_0x22cd10[_0xbed5af(0x1f47)](_0x4ade5e);}_0x8aa5fa[_0xbed5af(0x1324)]=_0x22cd10;});}})['catch'](function(_0x3dcd63){const _0xbea533=_0x2eb2c3;_0x3cee04[_0xbea533(0x1980)]({'title':_0x3dcd63[_0xbea533(0x107b)]?_0xbea533(0x262a)+_0x3dcd63[_0xbea533(0x107b)]+_0xbea533(0x1315)+_0x3dcd63[_0xbea533(0x167f)]:_0xbea533(0x1a2f),'msg':_0x3dcd63[_0xbea533(0x524)]?JSON[_0xbea533(0x10bb)](_0x3dcd63['data']):_0x3dcd63[_0xbea533(0xd5f)]()});}),_0x347edb[_0x2eb2c3(0x23e0)](_0x2eb2c3(0x174b))?_0x567ce6['pause'][_0x2eb2c3(0x16b4)]({'fields':_0x2eb2c3(0x69a),'sort':_0x2eb2c3(0x19eb),'nolimit':'true'})[_0x2eb2c3(0x2945)]['then'](function(_0x3dde5){const _0x438ced=_0x2eb2c3;_0x8aa5fa[_0x438ced(0x23bb)]=_0x3dde5[_0x438ced(0x19c7)]||[];})['catch'](function(_0x320127){const _0x1da9fb=_0x2eb2c3;_0x3cee04[_0x1da9fb(0x1980)]({'title':_0x320127[_0x1da9fb(0x107b)]?_0x1da9fb(0x262a)+_0x320127[_0x1da9fb(0x107b)]+'\x20-\x20'+_0x320127['statusText']:'SYSTEM:GET_PAUSES','msg':_0x320127[_0x1da9fb(0x524)]?JSON[_0x1da9fb(0x10bb)](_0x320127[_0x1da9fb(0x524)]):_0x320127[_0x1da9fb(0xd5f)]()});}):_0x567ce6[_0x2eb2c3(0x1e3e)][_0x2eb2c3(0x16b4)]({'fields':'name,id','sort':'name','nolimit':_0x2eb2c3(0x1185)})[_0x2eb2c3(0x2945)][_0x2eb2c3(0x146b)](function(_0x1f09f2){const _0x3312c8=_0x2eb2c3;_0x8aa5fa[_0x3312c8(0x23bb)]=_0x1f09f2[_0x3312c8(0x19c7)]||[];})['then'](function(){const _0xd991cc=_0x2eb2c3;return _0x567ce6[_0xd991cc(0x1366)][_0xd991cc(0x16b4)]({'userProfileId':_0x8aa5fa[_0xd991cc(0x2321)][_0xd991cc(0x209a)],'sectionId':0x3ed})[_0xd991cc(0x2945)];})[_0x2eb2c3(0x146b)](function(_0x201b66){const _0x3d3f02=_0x2eb2c3,_0x5b21c2=_0x201b66&&_0x201b66[_0x3d3f02(0x19c7)]?_0x201b66[_0x3d3f02(0x19c7)][0x0]:null;if(!_0x5b21c2)_0x8aa5fa[_0x3d3f02(0x23bb)]=[];else{if(!_0x5b21c2[_0x3d3f02(0x11d2)])return _0x567ce6[_0x3d3f02(0xdcc)][_0x3d3f02(0x16b4)]({'sectionId':_0x5b21c2['id']})['$promise'][_0x3d3f02(0x146b)](function(_0x4dddc9){const _0x37145e=_0x3d3f02,_0x10ed9c=_0x3f65c0()['map'](_0x4dddc9[_0x37145e(0x19c7)],function(_0x26cff5){const _0x8baaca=_0x37145e;return _0x3f65c0()[_0x8baaca(0xc84)](_0x8aa5fa[_0x8baaca(0x23bb)],{'id':_0x26cff5['resourceId']});});_0x8aa5fa[_0x37145e(0x23bb)][_0x37145e(0x1df5)](function(_0x4b52b9){const _0x2558dd=_0x37145e;!_0x3f65c0()['some'](_0x10ed9c,['id',_0x4b52b9['id']])&&(_0x4b52b9[_0x2558dd(0x8ff)]=![]),_0x10ed9c['push'](_0x4b52b9);}),_0x8aa5fa[_0x37145e(0x23bb)]=_0x10ed9c;});}})['catch'](function(_0x54abd0){const _0x82f918=_0x2eb2c3;_0x3cee04['error']({'title':_0x54abd0[_0x82f918(0x107b)]?_0x82f918(0x262a)+_0x54abd0[_0x82f918(0x107b)]+_0x82f918(0x1315)+_0x54abd0[_0x82f918(0x167f)]:_0x82f918(0x176),'msg':_0x54abd0['data']?JSON['stringify'](_0x54abd0[_0x82f918(0x524)]):_0x54abd0[_0x82f918(0xd5f)]()});});function _0x31bb8f(){const _0x28b390=_0x2eb2c3;if(_0x347edb[_0x28b390(0x23e0)](_0x28b390(0x174b)))_0x44c891['go'](_0x28b390(0xfb7),{});else return _0x567ce6[_0x28b390(0x1366)][_0x28b390(0x16b4)]({'userProfileId':_0x347edb[_0x28b390(0xb12)]()[_0x28b390(0x209a)],'sectionId':0x262})['$promise'][_0x28b390(0x146b)](function(_0x53d10e){const _0x14a615=_0x28b390,_0x53513b=_0x53d10e&&_0x53d10e[_0x14a615(0x19c7)]?_0x53d10e[_0x14a615(0x19c7)][0x0]:null;_0x53513b&&_0x53513b[_0x14a615(0x193e)]?_0x44c891['go'](_0x14a615(0xfb7),{}):_0x3cee04[_0x14a615(0x271e)]({'title':_0x7428e2[_0x14a615(0xde)](_0x14a615(0xb27)),'msg':_0x7428e2[_0x14a615(0xde)](_0x14a615(0x174a))});})['catch'](function(_0x18247e){const _0x4b65c6=_0x28b390;_0x3cee04[_0x4b65c6(0x1980)]({'title':_0x18247e[_0x4b65c6(0x107b)]?'API:'+_0x18247e[_0x4b65c6(0x107b)]+'\x20-\x20'+_0x18247e[_0x4b65c6(0x167f)]:_0x4b65c6(0x698),'msg':_0x18247e[_0x4b65c6(0x107b)]?JSON['stringify'](_0x18247e[_0x4b65c6(0x524)]):_0x18247e[_0x4b65c6(0xd5f)]()});});}function _0x9dfd1c(_0x527760,_0x312ab2){const _0xc15879=_0x2eb2c3;_0x1b0694[_0xc15879(0x2615)]({'controller':'MailAccountagentaddController','controllerAs':'vm','templateUrl':_0x118033,'parent':angular[_0xc15879(0x1853)](_0x350d67[_0xc15879(0x2586)]),'targetEvent':_0x312ab2,'clickOutsideToClose':!![],'locals':{'mailAccount':_0x527760,'mailAccounts':_0x8aa5fa[_0xc15879(0x1593)]?_0x8aa5fa[_0xc15879(0x1593)]['rows']:[],'crudPermissions':_0x8aa5fa[_0xc15879(0x2514)],'realtime':![]}});}function _0x180df9(){const _0x32f3dc=_0x2eb2c3;_0x44c891['go']('app.mail.mailAccounts',{},{'reload':_0x32f3dc(0x1de6)});}function _0x38e932(){const _0x175945=_0x2eb2c3;_0x567ce6['mailAccount']['update']({'id':_0x8aa5fa['mailAccount']['id']},_0x8aa5fa[_0x175945(0x67d)])[_0x175945(0x2945)][_0x175945(0x146b)](function(){const _0xfd9b3b=_0x175945;_0x3cee04[_0xfd9b3b(0x1c75)]({'title':_0xfd9b3b(0x11e7),'msg':_0x8aa5fa[_0xfd9b3b(0x67d)]['name']?_0x8aa5fa['mailAccount'][_0xfd9b3b(0x19eb)]+_0xfd9b3b(0x6b0):''});})[_0x175945(0x129e)](function(_0x486cea){const _0x499549=_0x175945;_0x3cee04[_0x499549(0x1980)]({'title':_0x486cea[_0x499549(0x107b)]?_0x499549(0x262a)+_0x486cea['status']+_0x499549(0x1315)+_0x486cea[_0x499549(0x167f)]:_0x499549(0x12eb),'msg':_0x486cea[_0x499549(0x524)]?JSON[_0x499549(0x10bb)](_0x486cea[_0x499549(0x524)]):_0x486cea[_0x499549(0xd5f)]()});});}}const _0xa6c3ae=_0x5b5f48;;const _0x1a344f=_0x4acfac['p']+_0x313a4d(0x1970);;_0x16dc5b['$inject']=[_0x313a4d(0x910),_0x313a4d(0x1aa9),_0x313a4d(0x1862),_0x313a4d(0x15fe),_0x313a4d(0x10e8),_0x313a4d(0x4d8),_0x313a4d(0x1abe),'$translate',_0x313a4d(0x1593),_0x313a4d(0x26b6),_0x313a4d(0x1366),_0x313a4d(0x247f),_0x313a4d(0x216c),_0x313a4d(0x1fe4),_0x313a4d(0xa87),_0x313a4d(0x2690),_0x313a4d(0x15b9)];function _0x16dc5b(_0x33c4fe,_0x56a041,_0x72ddf9,_0x3d938e,_0x3384e5,_0x2dfb16,_0x4822bb,_0x27ab57,_0x1040b0,_0x5a50b5,_0x1e81c3,_0x1848cb,_0x5b2967,_0x52c241,_0x481b69,_0x2ee4fb,_0x383927){const _0x23f336=_0x313a4d,_0x53fa6e=this;_0x53fa6e[_0x23f336(0x2690)]=_0x2ee4fb,_0x53fa6e[_0x23f336(0x15b9)]=_0x383927,_0x53fa6e[_0x23f336(0x2321)]=_0x481b69[_0x23f336(0xb12)](),_0x53fa6e[_0x23f336(0x1593)]=_0x1040b0||{'count':0x0,'rows':[]},_0x53fa6e['userProfile']=_0x5a50b5,_0x53fa6e[_0x23f336(0x1366)]=_0x1e81c3&&_0x1e81c3[_0x23f336(0x51c)]==0x1?_0x1e81c3[_0x23f336(0x19c7)][0x0]:null,_0x53fa6e['crudPermissions']=_0x481b69[_0x23f336(0xe60)](_0x53fa6e[_0x23f336(0x1366)]?_0x53fa6e[_0x23f336(0x1366)]['crudPermissions']:null),_0x53fa6e[_0x23f336(0x768)]=_0x23f336(0x1593),_0x53fa6e['listOrder']='',_0x53fa6e[_0x23f336(0x214f)]=null,_0x53fa6e[_0x23f336(0x290d)]=[],_0x53fa6e[_0x23f336(0x1a56)]={'fields':_0x23f336(0x11b8),'sort':'-updatedAt','limit':0xa,'page':0x1},_0x53fa6e[_0x23f336(0x1043)]=_0x3f65c0()[_0x23f336(0x194)]([{'option':_0x23f336(0xf21),'value':_0x23f336(0x203c)},{'option':_0x23f336(0x2704),'value':_0x23f336(0x7f1)},{'option':_0x23f336(0x19dc),'value':_0x23f336(0x1939)},{'option':_0x23f336(0x126b),'value':'\x27yahoo\x27'},{'option':'Outlook365','value':_0x23f336(0x2543)}],function(_0x1d0cf2){const _0x1c5eb4=_0x23f336;return _0x3f65c0()[_0x1c5eb4(0x5f4)](_0x1d0cf2['value'],new RegExp('\x27','g'),'');}),_0x53fa6e[_0x23f336(0xe70)]=_0x3f65c0()['keyBy']([{'option':_0x23f336(0xf21),'value':_0x23f336(0x203c)},{'option':_0x23f336(0x2704),'value':_0x23f336(0x7f1)},{'option':_0x23f336(0x19dc),'value':_0x23f336(0x1939)},{'option':_0x23f336(0x126b),'value':_0x23f336(0x145f)},{'option':'Outlook365','value':'\x27outlook365\x27'}],function(_0xe5499d){const _0x205c0f=_0x23f336;return _0x3f65c0()['replace'](_0xe5499d[_0x205c0f(0x175d)],new RegExp('\x27','g'),'');}),_0x53fa6e['arraySmtp.service']=_0x3f65c0()[_0x23f336(0x194)]([{'option':'Custom','value':'null'},{'option':_0x23f336(0x2704),'value':_0x23f336(0x7f1)},{'option':_0x23f336(0x19dc),'value':_0x23f336(0x1939)},{'option':'Yahoo','value':_0x23f336(0x145f)},{'option':_0x23f336(0x1fa8),'value':_0x23f336(0x2543)}],function(_0x11ca2e){const _0x268422=_0x23f336;return _0x3f65c0()[_0x268422(0x5f4)](_0x11ca2e[_0x268422(0x175d)],new RegExp('\x27','g'),'');}),_0x53fa6e['editstate']=_0x352260,_0x53fa6e['verifysmtpverifysmtp']=_0x324d94,_0x53fa6e[_0x23f336(0xbce)]=_0x111bff,_0x53fa6e['gotorealtimegoto']=_0x4d00c7,_0x53fa6e[_0x23f336(0x1027)]=_0x3746fd,_0x53fa6e['deleteconfirm']=_0x1444a7,_0x53fa6e['success']=_0x4ec4b7,_0x53fa6e[_0x23f336(0x44b)]=_0x260c11,_0x53fa6e['createOrEditMailAccount']=_0x255c27,_0x53fa6e[_0x23f336(0x1d7e)]=_0x2448c9,_0x53fa6e[_0x23f336(0xfd6)]=_0x43a12b,_0x53fa6e[_0x23f336(0x732)]=_0x4c053c,_0x53fa6e[_0x23f336(0x21a8)]=_0x1acf5c,_0x53fa6e[_0x23f336(0x889)]=_0x564ee8,_0x481b69[_0x23f336(0x23e0)](_0x23f336(0x174b))?_0x1848cb[_0x23f336(0xf03)][_0x23f336(0x16b4)]({'fields':_0x23f336(0x7a7),'sort':'name'})['$promise'][_0x23f336(0x146b)](function(_0x1ee93b){const _0x59f5c2=_0x23f336;_0x53fa6e[_0x59f5c2(0x1324)]=_0x1ee93b[_0x59f5c2(0x19c7)]||[];})['catch'](function(_0x3fae65){const _0x4547e0=_0x23f336;_0x52c241[_0x4547e0(0x1980)]({'title':_0x3fae65[_0x4547e0(0x107b)]?_0x4547e0(0x262a)+_0x3fae65[_0x4547e0(0x107b)]+_0x4547e0(0x1315)+_0x3fae65[_0x4547e0(0x167f)]:'SYSTEM:GET_LISTS','msg':_0x3fae65[_0x4547e0(0x524)]?JSON[_0x4547e0(0x10bb)](_0x3fae65[_0x4547e0(0x524)]):_0x3fae65[_0x4547e0(0xd5f)]()});}):_0x1848cb['cmList'][_0x23f336(0x16b4)]({'fields':'id,name','sort':_0x23f336(0x19eb)})[_0x23f336(0x2945)][_0x23f336(0x146b)](function(_0x2ca9fc){const _0x230c38=_0x23f336;_0x53fa6e[_0x230c38(0x1324)]=_0x2ca9fc[_0x230c38(0x19c7)]||[];})[_0x23f336(0x146b)](function(){const _0x3744cb=_0x23f336;return _0x1848cb['userProfileSection'][_0x3744cb(0x16b4)]({'userProfileId':_0x53fa6e[_0x3744cb(0x2321)]['userProfileId'],'sectionId':0x12d})['$promise'];})[_0x23f336(0x146b)](function(_0x560696){const _0x1bca26=_0x23f336,_0x5550c4=_0x560696&&_0x560696[_0x1bca26(0x19c7)]?_0x560696['rows'][0x0]:null;if(!_0x5550c4){const _0x4cc382=[];let _0x62c75=null;_0x53fa6e['mailAccount']&&(_0x62c75=_0x3f65c0()[_0x1bca26(0xc84)](_0x53fa6e[_0x1bca26(0x1324)],{'id':Number(_0x53fa6e['mailAccount']['ListId'])}));for(let _0x1850d1=0x0;_0x1850d1<_0x53fa6e[_0x1bca26(0x1324)]['length'];_0x1850d1++){_0x62c75&&_0x53fa6e[_0x1bca26(0x1324)][_0x1850d1]['id']===_0x62c75['id']&&(_0x53fa6e[_0x1bca26(0x1324)][_0x1850d1][_0x1bca26(0x8ff)]=![],_0x4cc382[_0x1bca26(0x1f47)](_0x53fa6e[_0x1bca26(0x1324)][_0x1850d1]));}_0x53fa6e['lists']=_0x4cc382;}else{if(!_0x5550c4[_0x1bca26(0x11d2)])return _0x1848cb[_0x1bca26(0xdcc)]['get']({'sectionId':_0x5550c4['id']})['$promise'][_0x1bca26(0x146b)](function(_0xb41321){const _0x3cc261=_0x1bca26,_0x250910=_0x3f65c0()['map'](_0xb41321['rows'],function(_0x294b9d){const _0x2d4b1=a0_0x3bb9;return _0x3f65c0()[_0x2d4b1(0xc84)](_0x53fa6e['lists'],{'id':_0x294b9d[_0x2d4b1(0x18b8)]});});let _0x236db1=null;_0x53fa6e[_0x3cc261(0x67d)]&&(_0x236db1=_0x3f65c0()[_0x3cc261(0xc84)](_0x53fa6e[_0x3cc261(0x1324)],{'id':Number(_0x53fa6e['mailAccount']['ListId'])}));if(_0x236db1&&!_0x3f65c0()['some'](_0x250910,['id',_0x236db1['id']])){const _0xa72ac=_0x3f65c0()[_0x3cc261(0xc84)](_0x53fa6e[_0x3cc261(0x1324)],{'id':_0x236db1['id']});_0xa72ac[_0x3cc261(0x8ff)]=![],_0x250910[_0x3cc261(0x1f47)](_0xa72ac);}_0x53fa6e[_0x3cc261(0x1324)]=_0x250910;});}})['catch'](function(_0x1ee16c){const _0x1ef878=_0x23f336;_0x52c241[_0x1ef878(0x1980)]({'title':_0x1ee16c[_0x1ef878(0x107b)]?_0x1ef878(0x262a)+_0x1ee16c[_0x1ef878(0x107b)]+_0x1ef878(0x1315)+_0x1ee16c[_0x1ef878(0x167f)]:_0x1ef878(0x1a2f),'msg':_0x1ee16c[_0x1ef878(0x524)]?JSON[_0x1ef878(0x10bb)](_0x1ee16c[_0x1ef878(0x524)]):_0x1ee16c[_0x1ef878(0xd5f)]()});});function _0x352260(_0x4898b6){const _0x2aed82=_0x23f336;_0x72ddf9['go'](_0x2aed82(0x2375),{'id':_0x4898b6['id'],'mailAccount':_0x4898b6,'crudPermissions':_0x53fa6e[_0x2aed82(0x2514)]});}function _0x324d94(_0x5447ec){const _0x5aaa24=_0x23f336;if(_0x5447ec&&_0x5447ec['id'])return _0x1848cb[_0x5aaa24(0x67d)][_0x5aaa24(0x218e)]({'id':_0x5447ec['id']})[_0x5aaa24(0x2945)][_0x5aaa24(0x146b)](function(){const _0x3ebc03=_0x5aaa24;_0x52c241[_0x3ebc03(0x1c75)]({'title':_0x3ebc03(0x13a1),'msg':_0x3ebc03(0x1893)});})['catch'](function(_0x30299a){const _0x3e499c=_0x5aaa24;_0x52c241[_0x3e499c(0x1980)]({'title':_0x3e499c(0x13a1),'msg':_0x30299a[_0x3e499c(0x524)]?JSON[_0x3e499c(0x10bb)](_0x30299a[_0x3e499c(0x524)]):_0x30299a['toString']()});});else _0x52c241[_0x5aaa24(0x1980)]({'title':_0x5aaa24(0x13a1),'msg':_0x5aaa24(0x1077)});}function _0x111bff(_0x16af09){const _0x39e061=_0x23f336;_0x72ddf9['go'](_0x39e061(0x2375),{'id':_0x16af09['id'],'tab':0x7});}function _0x4d00c7(){const _0xc46a74=_0x23f336;if(_0x481b69[_0xc46a74(0x23e0)](_0xc46a74(0x174b)))_0x72ddf9['go'](_0xc46a74(0xfb7),{});else return _0x1848cb[_0xc46a74(0x1366)]['get']({'userProfileId':_0x481b69[_0xc46a74(0xb12)]()['userProfileId'],'sectionId':0x262})[_0xc46a74(0x2945)][_0xc46a74(0x146b)](function(_0x5a3985){const _0x206c56=_0xc46a74,_0x3ab5cf=_0x5a3985&&_0x5a3985[_0x206c56(0x19c7)]?_0x5a3985['rows'][0x0]:null;_0x3ab5cf&&_0x3ab5cf[_0x206c56(0x193e)]?_0x72ddf9['go'](_0x206c56(0xfb7),{}):_0x52c241[_0x206c56(0x271e)]({'title':_0x27ab57[_0x206c56(0xde)](_0x206c56(0xb27)),'msg':_0x27ab57[_0x206c56(0xde)](_0x206c56(0x174a))});})[_0xc46a74(0x129e)](function(_0xb23e89){const _0x86e8f5=_0xc46a74;_0x52c241[_0x86e8f5(0x1980)]({'title':_0xb23e89[_0x86e8f5(0x107b)]?_0x86e8f5(0x262a)+_0xb23e89['status']+_0x86e8f5(0x1315)+_0xb23e89[_0x86e8f5(0x167f)]:_0x86e8f5(0x698),'msg':_0xb23e89[_0x86e8f5(0x107b)]?JSON[_0x86e8f5(0x10bb)](_0xb23e89[_0x86e8f5(0x524)]):_0xb23e89[_0x86e8f5(0xd5f)]()});});}function _0x3746fd(_0x4aa0e4,_0x4ad51a){const _0x6f364f=_0x23f336;_0x3384e5[_0x6f364f(0x2615)]({'controller':_0x6f364f(0xcd4),'controllerAs':'vm','templateUrl':_0x118033,'parent':angular[_0x6f364f(0x1853)](_0x2dfb16['body']),'targetEvent':_0x4ad51a,'clickOutsideToClose':!![],'locals':{'mailAccount':_0x4aa0e4,'mailAccounts':_0x53fa6e[_0x6f364f(0x1593)]?_0x53fa6e['mailAccounts'][_0x6f364f(0x19c7)]:[],'crudPermissions':_0x53fa6e[_0x6f364f(0x2514)],'realtime':![]}});}function _0x1444a7(_0x4a2e96,_0x374fd7){const _0x388455=_0x23f336,_0x2cc084=_0x3384e5[_0x388455(0x1e8a)]()[_0x388455(0x1189)](_0x388455(0xdb2)+_0x3f65c0()['startCase'](_0x388455(0x67d))+'?')[_0x388455(0x1cbe)](_0x388455(0x16d3)+(_0x4a2e96['name']||_0x388455(0x67d))+_0x388455(0x252f)+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x388455(0x24d0))[_0x388455(0x1f27)](_0x374fd7)['ok']('OK')['cancel']('CANCEL');_0x3384e5['show'](_0x2cc084)['then'](function(){_0x2448c9(_0x4a2e96);},function(){const _0x1c8213=_0x388455;console[_0x1c8213(0x1a74)](_0x1c8213(0x39a));});}let _0x244919=!![],_0x5b980d=0x1;_0x33c4fe[_0x23f336(0x21e8)](_0x23f336(0x2669),function(_0x41b9f3,_0x3bbb79){const _0x267bd8=_0x23f336;_0x244919?_0x4822bb(function(){_0x244919=![];}):(!_0x3bbb79&&(_0x5b980d=_0x53fa6e[_0x267bd8(0x1a56)][_0x267bd8(0x844)]),_0x41b9f3!==_0x3bbb79&&(_0x53fa6e[_0x267bd8(0x1a56)][_0x267bd8(0x844)]=0x1),!_0x41b9f3&&(_0x53fa6e[_0x267bd8(0x1a56)][_0x267bd8(0x844)]=_0x5b980d),_0x53fa6e[_0x267bd8(0x44b)]());});function _0x4ec4b7(_0x55fbfe){_0x53fa6e['mailAccounts']=_0x55fbfe||{'count':0x0,'rows':[]};}function _0x260c11(){const _0x3ebeb7=_0x23f336;_0x53fa6e[_0x3ebeb7(0x1a56)]['offset']=(_0x53fa6e['query'][_0x3ebeb7(0x844)]-0x1)*_0x53fa6e[_0x3ebeb7(0x1a56)][_0x3ebeb7(0x221e)],_0x481b69[_0x3ebeb7(0x23e0)](_0x3ebeb7(0x174b))?_0x53fa6e['promise']=_0x1848cb[_0x3ebeb7(0x67d)][_0x3ebeb7(0x16b4)](_0x53fa6e[_0x3ebeb7(0x1a56)],_0x4ec4b7)[_0x3ebeb7(0x2945)]:(_0x53fa6e[_0x3ebeb7(0x1a56)]['id']=_0x53fa6e[_0x3ebeb7(0x26b6)]['id'],_0x53fa6e[_0x3ebeb7(0x1a56)][_0x3ebeb7(0x2146)]='MailAccounts',_0x53fa6e[_0x3ebeb7(0xb9c)]=_0x1848cb[_0x3ebeb7(0x26b6)][_0x3ebeb7(0x158f)](_0x53fa6e[_0x3ebeb7(0x1a56)],_0x4ec4b7)[_0x3ebeb7(0x2945)]);}function _0x255c27(_0x28ac3b,_0x52f514){const _0xc749b3=_0x23f336;_0x3384e5[_0xc749b3(0x2615)]({'controller':_0xc749b3(0x39e),'controllerAs':'vm','templateUrl':_0x1a344f,'parent':angular['element'](_0x2dfb16[_0xc749b3(0x2586)]),'targetEvent':_0x28ac3b,'clickOutsideToClose':!![],'locals':{'mailAccount':_0x52f514,'mailAccounts':_0x53fa6e[_0xc749b3(0x1593)][_0xc749b3(0x19c7)],'license':_0x53fa6e['license'],'setting':_0x53fa6e[_0xc749b3(0x15b9)],'crudPermissions':_0x53fa6e[_0xc749b3(0x2514)]}});}function _0x2448c9(_0xd8a557){const _0x4950ab=_0x23f336;if(_0xd8a557[_0x4950ab(0x243a)])return _0x52c241[_0x4950ab(0x1980)]({'title':_0x4950ab(0x1084),'msg':_0x4950ab(0x37b)});_0x1848cb[_0x4950ab(0x67d)][_0x4950ab(0x1fac)]({'id':_0xd8a557['id']})[_0x4950ab(0x2945)][_0x4950ab(0x146b)](function(){const _0x8e507b=_0x4950ab;_0x3f65c0()[_0x8e507b(0x2640)](_0x53fa6e['mailAccounts']['rows'],{'id':_0xd8a557['id']}),_0x53fa6e[_0x8e507b(0x1593)][_0x8e507b(0x51c)]-=0x1,!_0x53fa6e[_0x8e507b(0x1593)][_0x8e507b(0x19c7)][_0x8e507b(0x402)]&&_0x53fa6e[_0x8e507b(0x44b)](),_0x52c241[_0x8e507b(0x1c75)]({'title':_0x3f65c0()['startCase']('MailAccount')+'\x20deleted!','msg':_0xd8a557[_0x8e507b(0x19eb)]?_0xd8a557[_0x8e507b(0x19eb)]+'\x20has\x20been\x20deleted!':''});})[_0x4950ab(0x129e)](function(_0x292e4e){const _0x1a373f=_0x4950ab;if(_0x292e4e['data']&&_0x292e4e[_0x1a373f(0x524)][_0x1a373f(0xcef)]&&_0x292e4e[_0x1a373f(0x524)][_0x1a373f(0xcef)][_0x1a373f(0x402)]){_0x53fa6e['errors']=_0x292e4e[_0x1a373f(0x524)][_0x1a373f(0xcef)]||[{'message':_0x292e4e[_0x1a373f(0xd5f)](),'type':_0x1a373f(0x1342)}];for(let _0xa03d3d=0x0;_0xa03d3d<_0x292e4e[_0x1a373f(0x524)]['errors'][_0x1a373f(0x402)];_0xa03d3d++){_0x52c241[_0x1a373f(0x1980)]({'title':_0x292e4e['data'][_0x1a373f(0xcef)][_0xa03d3d][_0x1a373f(0x1142)],'msg':_0x292e4e['data']['errors'][_0xa03d3d]['message']});}}else _0x52c241[_0x1a373f(0x1980)]({'title':_0x292e4e[_0x1a373f(0x107b)]?_0x1a373f(0x262a)+_0x292e4e[_0x1a373f(0x107b)]+_0x1a373f(0x1315)+_0x292e4e[_0x1a373f(0x167f)]:_0x1a373f(0x1342),'msg':_0x292e4e[_0x1a373f(0x524)]?JSON['stringify'](_0x292e4e[_0x1a373f(0x524)][_0x1a373f(0x7fd)]):_0x292e4e[_0x1a373f(0x7fd)]||_0x292e4e[_0x1a373f(0xd5f)]()});});}function _0x43a12b(){const _0x44f2b5=_0x23f336,_0x3a07b3=angular['copy'](_0x53fa6e['selectedMailAccounts']);return _0x53fa6e[_0x44f2b5(0x290d)]=[],_0x3a07b3;}function _0x4c053c(_0x4c8b64){const _0x3fac64=_0x23f336,_0x538203=_0x3384e5[_0x3fac64(0x1e8a)]()[_0x3fac64(0x1189)](_0x3fac64(0x1498))[_0x3fac64(0x1cbe)](_0x3fac64(0x16d3)+_0x53fa6e['selectedMailAccounts'][_0x3fac64(0x402)]+'\x20selected'+_0x3fac64(0xe01))[_0x3fac64(0x4bd)](_0x3fac64(0x205c))['targetEvent'](_0x4c8b64)['ok']('OK')['cancel'](_0x3fac64(0x39a));_0x3384e5['show'](_0x538203)[_0x3fac64(0x146b)](function(){const _0x5c0dbc=_0x3fac64;_0x53fa6e[_0x5c0dbc(0x290d)][_0x5c0dbc(0x1df5)](function(_0x272529){_0x2448c9(_0x272529);}),_0x53fa6e[_0x5c0dbc(0x290d)]=[];});}function _0x1acf5c(){const _0x236c42=_0x23f336;_0x53fa6e[_0x236c42(0x290d)]=[];}function _0x564ee8(){const _0x1743f6=_0x23f336;_0x53fa6e[_0x1743f6(0x290d)]=_0x53fa6e[_0x1743f6(0x1593)][_0x1743f6(0x19c7)];}}const _0x1d303d=_0x16dc5b;;_0x10928a[_0x313a4d(0x11c2)]=['$scope',_0x313a4d(0x1862),_0x313a4d(0xd08),_0x313a4d(0x10e8),'$q',_0x313a4d(0x214b),_0x313a4d(0x1fe4),_0x313a4d(0x2318),_0x313a4d(0x101c),_0x313a4d(0x247f),_0x313a4d(0xa87),_0x313a4d(0x2690),'setting',_0x313a4d(0x2514)];function _0x10928a(_0x4a225b,_0x5520a9,_0x36a67f,_0x29bd9b,_0x3bc414,_0x219e55,_0x33525c,_0x5d246a,_0x5781fa,_0x4ad358,_0x5a641f,_0x260f7d,_0x5d2d8e,_0xa5ab29){const _0x1f0622=_0x313a4d,_0x2ebcfe=this;_0x2ebcfe['currentUser']=_0x5a641f[_0x1f0622(0xb12)](),_0x2ebcfe[_0x1f0622(0xcef)]=[],_0x2ebcfe['setting']=_0x5d2d8e,_0x2ebcfe[_0x1f0622(0x2690)]=_0x260f7d,_0x2ebcfe[_0x1f0622(0x2514)]=_0xa5ab29,_0x2ebcfe[_0x1f0622(0x855)]={},_0x2ebcfe[_0x1f0622(0x2251)]=_0x2ebcfe[_0x1f0622(0x15b9)]&&_0x2ebcfe[_0x1f0622(0x15b9)][_0x1f0622(0x976)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2ebcfe['title']='MAIL.EDIT_MAILQUEUE',_0x2ebcfe[_0x1f0622(0x101c)]=angular[_0x1f0622(0x235a)](_0x5781fa),_0x2ebcfe[_0x1f0622(0x2318)]=_0x5d246a,_0x2ebcfe['newMailQueue']=![];!_0x2ebcfe[_0x1f0622(0x101c)]&&(_0x2ebcfe[_0x1f0622(0x101c)]={'strategy':_0x1f0622(0x1984),'timeout':0xa},_0x2ebcfe[_0x1f0622(0x1189)]=_0x1f0622(0x4eb),_0x2ebcfe[_0x1f0622(0x128e)]=!![]);_0x2ebcfe[_0x1f0622(0x1981)]=_0x4b19a3,_0x2ebcfe[_0x1f0622(0x160c)]=_0x344350,_0x2ebcfe[_0x1f0622(0x6fb)]=_0x1d4da4,_0x2ebcfe['getDateFromString']=_0x240792,_0x2ebcfe[_0x1f0622(0x13f3)]=_0xd2eceb;function _0x4b19a3(){const _0x1e3321=_0x1f0622;_0x2ebcfe[_0x1e3321(0xcef)]=[],_0x4ad358[_0x1e3321(0x101c)][_0x1e3321(0x1e3)](_0x2ebcfe[_0x1e3321(0x101c)])[_0x1e3321(0x2945)][_0x1e3321(0x146b)](function(_0x3f3ad8){const _0x53b582=_0x1e3321;_0x2ebcfe[_0x53b582(0x2318)][_0x53b582(0xb3d)](_0x3f3ad8['toJSON']()),_0x33525c[_0x53b582(0x1c75)]({'title':_0x53b582(0x1b3d),'msg':_0x2ebcfe[_0x53b582(0x101c)][_0x53b582(0x19eb)]?_0x2ebcfe[_0x53b582(0x101c)][_0x53b582(0x19eb)]+'\x20has\x20been\x20created!':''}),_0xd2eceb(_0x3f3ad8);})[_0x1e3321(0x129e)](function(_0x61ed38){const _0x2df383=_0x1e3321;if(_0x61ed38[_0x2df383(0x524)]&&_0x61ed38[_0x2df383(0x524)]['errors']&&_0x61ed38[_0x2df383(0x524)][_0x2df383(0xcef)][_0x2df383(0x402)]){_0x2ebcfe['errors']=_0x61ed38[_0x2df383(0x524)]['errors']||[{'message':_0x61ed38[_0x2df383(0xd5f)](),'type':_0x2df383(0x1409)}];for(let _0x4a4acd=0x0;_0x4a4acd<_0x61ed38[_0x2df383(0x524)]['errors'][_0x2df383(0x402)];_0x4a4acd+=0x1){_0x33525c[_0x2df383(0x1980)]({'title':_0x61ed38[_0x2df383(0x524)][_0x2df383(0xcef)][_0x4a4acd][_0x2df383(0x1142)],'msg':_0x61ed38[_0x2df383(0x524)][_0x2df383(0xcef)][_0x4a4acd][_0x2df383(0x7fd)]});}}else _0x33525c['error']({'title':_0x61ed38[_0x2df383(0x107b)]?'API:'+_0x61ed38[_0x2df383(0x107b)]+_0x2df383(0x1315)+_0x61ed38[_0x2df383(0x167f)]:_0x2df383(0x1409),'msg':_0x61ed38[_0x2df383(0x524)]?JSON[_0x2df383(0x10bb)](_0x61ed38['data'][_0x2df383(0x7fd)]):_0x61ed38[_0x2df383(0xd5f)]()});});}function _0x344350(){const _0x2b2eff=_0x1f0622;_0x2ebcfe['errors']=[],_0x4ad358['mailQueue']['update']({'id':_0x2ebcfe[_0x2b2eff(0x101c)]['id']},_0x2ebcfe[_0x2b2eff(0x101c)])[_0x2b2eff(0x2945)][_0x2b2eff(0x146b)](function(_0x3cba17){const _0x1835b9=_0x2b2eff,_0xd51bb4=_0x3f65c0()[_0x1835b9(0xc84)](_0x2ebcfe[_0x1835b9(0x2318)],{'id':_0x3cba17['id']});_0xd51bb4&&_0x3f65c0()[_0x1835b9(0x168d)](_0xd51bb4,_0x3f65c0()[_0x1835b9(0x40e)](_0x3cba17['toJSON'](),_0x3f65c0()[_0x1835b9(0x627)](_0xd51bb4))),_0x33525c[_0x1835b9(0x1c75)]({'title':_0x1835b9(0x1417),'msg':_0x2ebcfe['mailQueue'][_0x1835b9(0x19eb)]?_0x2ebcfe['mailQueue'][_0x1835b9(0x19eb)]+_0x1835b9(0x24db):''}),_0xd2eceb(_0x3cba17);})[_0x2b2eff(0x129e)](function(_0x1d4333){const _0x49046f=_0x2b2eff;if(_0x1d4333['data']&&_0x1d4333[_0x49046f(0x524)][_0x49046f(0xcef)]&&_0x1d4333[_0x49046f(0x524)][_0x49046f(0xcef)][_0x49046f(0x402)]){_0x2ebcfe[_0x49046f(0xcef)]=_0x1d4333[_0x49046f(0x524)][_0x49046f(0xcef)]||[{'message':_0x1d4333[_0x49046f(0xd5f)](),'type':_0x49046f(0x14a5)}];for(let _0x39daeb=0x0;_0x39daeb<_0x1d4333['data']['errors'][_0x49046f(0x402)];_0x39daeb++){_0x33525c[_0x49046f(0x1980)]({'title':_0x1d4333['data'][_0x49046f(0xcef)][_0x39daeb][_0x49046f(0x1142)],'msg':_0x1d4333[_0x49046f(0x524)][_0x49046f(0xcef)][_0x39daeb][_0x49046f(0x7fd)]});}}else _0x33525c[_0x49046f(0x1980)]({'title':_0x1d4333['status']?_0x49046f(0x262a)+_0x1d4333[_0x49046f(0x107b)]+_0x49046f(0x1315)+_0x1d4333[_0x49046f(0x167f)]:_0x49046f(0x14a5),'msg':_0x1d4333['data']?JSON[_0x49046f(0x10bb)](_0x1d4333['data'][_0x49046f(0x7fd)]):_0x1d4333[_0x49046f(0xd5f)]()});});}function _0x1d4da4(_0x2c4f71){const _0x55ee74=_0x1f0622;_0x2ebcfe['errors']=[];const _0x2f0e2d=_0x29bd9b[_0x55ee74(0x1e8a)]()[_0x55ee74(0x1189)](_0x55ee74(0x1d64))[_0x55ee74(0x80f)](_0x55ee74(0xc42))[_0x55ee74(0x4bd)](_0x55ee74(0x1e33))['ok'](_0x55ee74(0x25de))[_0x55ee74(0x6c3)](_0x55ee74(0xcf0))[_0x55ee74(0x1f27)](_0x2c4f71);_0x29bd9b['show'](_0x2f0e2d)[_0x55ee74(0x146b)](function(){const _0x1f82c0=_0x55ee74;_0x4ad358['mailQueue']['delete']({'id':_0x2ebcfe[_0x1f82c0(0x101c)]['id']})[_0x1f82c0(0x2945)][_0x1f82c0(0x146b)](function(){const _0x216f16=_0x1f82c0;_0x3f65c0()[_0x216f16(0x2640)](_0x2ebcfe[_0x216f16(0x2318)],{'id':_0x2ebcfe[_0x216f16(0x101c)]['id']}),_0x33525c[_0x216f16(0x1c75)]({'title':_0x216f16(0x2727),'msg':(_0x2ebcfe[_0x216f16(0x101c)][_0x216f16(0x19eb)]||_0x216f16(0x101c))+_0x216f16(0x23e3)}),_0xd2eceb(_0x2ebcfe[_0x216f16(0x101c)]);})[_0x1f82c0(0x129e)](function(_0x2a3927){const _0x54cbc7=_0x1f82c0;if(_0x2a3927[_0x54cbc7(0x524)]&&_0x2a3927[_0x54cbc7(0x524)][_0x54cbc7(0xcef)]&&_0x2a3927[_0x54cbc7(0x524)][_0x54cbc7(0xcef)][_0x54cbc7(0x402)]){_0x2ebcfe[_0x54cbc7(0xcef)]=_0x2a3927[_0x54cbc7(0x524)][_0x54cbc7(0xcef)]||[{'message':_0x2a3927[_0x54cbc7(0xd5f)](),'type':'api.mailQueue.delete'}];for(let _0x201eb6=0x0;_0x201eb6<_0x2a3927['data'][_0x54cbc7(0xcef)]['length'];_0x201eb6++){_0x33525c[_0x54cbc7(0x1980)]({'title':_0x2a3927[_0x54cbc7(0x524)]['errors'][_0x201eb6][_0x54cbc7(0x1142)],'msg':_0x2a3927[_0x54cbc7(0x524)][_0x54cbc7(0xcef)][_0x201eb6]['message']});}}else _0x33525c[_0x54cbc7(0x1980)]({'title':_0x2a3927[_0x54cbc7(0x107b)]?'API:'+_0x2a3927['status']+_0x54cbc7(0x1315)+_0x2a3927['statusText']:_0x54cbc7(0x82c),'msg':_0x2a3927[_0x54cbc7(0x524)]?JSON['stringify'](_0x2a3927[_0x54cbc7(0x524)]['message']):_0x2a3927[_0x54cbc7(0x7fd)]||_0x2a3927['toString']()});});},function(){});}function _0x240792(_0xed0e2f){return _0xed0e2f===null?undefined:new Date(_0xed0e2f);}function _0xd2eceb(_0x5abf93){const _0x3579ca=_0x1f0622;_0x29bd9b[_0x3579ca(0x2458)](_0x5abf93);}}const _0x1b272c=_0x10928a;;_0x3069fe[_0x313a4d(0x11c2)]=[_0x313a4d(0x10e8),'$q',_0x313a4d(0x1fe4),_0x313a4d(0x247f),_0x313a4d(0x101c),_0x313a4d(0x2318),'realtime',_0x313a4d(0x214b),_0x313a4d(0xa87),'crudPermissions'];function _0x3069fe(_0x1af1d7,_0x49f115,_0x2a7a68,_0x3a92c9,_0x15bb6e,_0x17e850,_0x33c787,_0x297fbb,_0x5e7c80,_0xab1f1b){const _0xa7e53e=_0x313a4d,_0x21a4b5=this;_0x21a4b5['currentUser']=_0x5e7c80[_0xa7e53e(0xb12)](),_0x21a4b5[_0xa7e53e(0x101c)]=_0x15bb6e,_0x21a4b5[_0xa7e53e(0x2514)]=_0xab1f1b,_0x21a4b5[_0xa7e53e(0xfc4)]=_0x33c787,_0x21a4b5[_0xa7e53e(0x1fd6)]=[],_0x21a4b5[_0xa7e53e(0xc4e)]=[],_0x21a4b5[_0xa7e53e(0x1ecf)]=[],_0x21a4b5[_0xa7e53e(0x2e8)]=[],_0x21a4b5[_0xa7e53e(0xa65)]=[],_0x21a4b5['pendingChanges']=![],_0x21a4b5['onInit']=_0x32e24f,_0x21a4b5[_0xa7e53e(0x14c2)]=_0x17bc93,_0x21a4b5[_0xa7e53e(0x13f3)]=_0x19cc41,_0x21a4b5['dualMultiselectOptions']={'readOnly':!_0x21a4b5[_0xa7e53e(0x2514)][_0xa7e53e(0x15f4)],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0xa7e53e(0x19eb),'line1':_0xa7e53e(0x286a),'line2':[_0xa7e53e(0x19eb),'internal'],'line3':'','labelAll':_0x297fbb[_0xa7e53e(0xde)](_0xa7e53e(0x2050)),'labelSelected':_0x297fbb['instant'](_0xa7e53e(0xf73)),'transferCallback':function(){const _0x5a40f1=_0xa7e53e,_0x426f5a=_0x3f65c0()[_0x5a40f1(0x1883)](_0x21a4b5['startingSelectedItems'],_0x21a4b5[_0x5a40f1(0x1ecf)],'id');_0x21a4b5[_0x5a40f1(0x132)]=_0x3f65c0()['isEmpty'](_0x426f5a)?![]:!![];}};function _0x32e24f(){const _0x5e9013=_0xa7e53e;return _0x5e7c80[_0x5e9013(0x23e0)]('admin')?_0x1752e8()[_0x5e9013(0x129e)](function(_0xd32ccf){const _0x22c165=_0x5e9013;_0x2a7a68['error']({'title':_0xd32ccf[_0x22c165(0x107b)]?'API:'+_0xd32ccf[_0x22c165(0x107b)]+_0x22c165(0x1315)+_0xd32ccf['statusText']:_0x22c165(0x557),'msg':_0xd32ccf[_0x22c165(0x107b)]?JSON[_0x22c165(0x10bb)](_0xd32ccf[_0x22c165(0x524)]):_0xd32ccf['toString']()});}):_0x404b5d()[_0x5e9013(0x146b)](function(_0x2f2b8a){return _0x21a4b5['section']=_0x2f2b8a,_0x1752e8();})[_0x5e9013(0x129e)](function(_0xab8a45){const _0x4a7ea9=_0x5e9013;_0x2a7a68[_0x4a7ea9(0x1980)]({'title':_0xab8a45[_0x4a7ea9(0x107b)]?_0x4a7ea9(0x262a)+_0xab8a45[_0x4a7ea9(0x107b)]+'\x20-\x20'+_0xab8a45['statusText']:_0x4a7ea9(0x557),'msg':_0xab8a45[_0x4a7ea9(0x107b)]?JSON[_0x4a7ea9(0x10bb)](_0xab8a45[_0x4a7ea9(0x524)]):_0xab8a45[_0x4a7ea9(0xd5f)]()});});}function _0x404b5d(){return _0x49f115(function(_0x326e99,_0x1141a4){const _0x43e195=a0_0x3bb9;_0x3a92c9[_0x43e195(0x1366)][_0x43e195(0x16b4)]({'userProfileId':_0x21a4b5[_0x43e195(0x2321)][_0x43e195(0x209a)],'name':_0x43e195(0xca8)})['$promise'][_0x43e195(0x146b)](function(_0x323b95){const _0x1914e7=_0x43e195,_0x3425b2=_0x323b95&&_0x323b95[_0x1914e7(0x19c7)]?_0x323b95[_0x1914e7(0x19c7)][0x0]:null;_0x326e99(_0x3425b2);})[_0x43e195(0x129e)](function(_0x37d871){_0x1141a4(_0x37d871);});});}function _0x1752e8(){return _0x49f115(function(_0x382783,_0x13bc5d){const _0x619119=a0_0x3bb9;return _0x58e085()[_0x619119(0x146b)](function(_0x155de8){const _0x355c43=_0x619119;return _0x21a4b5[_0x355c43(0x1fd6)]=_0x155de8['rows']?_0x155de8[_0x355c43(0x19c7)]:[],_0x5e7c80[_0x355c43(0x23e0)](_0x355c43(0x174b))?_0x155de8:_0x21a4b5[_0x355c43(0x2146)]?_0x21a4b5[_0x355c43(0x2146)]['autoAssociation']?_0x155de8:_0x11b946():null;})['then'](function(_0x4fbfbb){const _0xfff2a7=_0x619119,_0x17e956=_0x4fbfbb&&_0x4fbfbb[_0xfff2a7(0x19c7)]?_0x4fbfbb[_0xfff2a7(0x19c7)]:[];return _0x21a4b5[_0xfff2a7(0xc4e)]=_0x3f65c0()[_0xfff2a7(0x205)](_0x17e956,function(_0x4bbd5a){const _0x2aab4c=_0xfff2a7;return _0x3f65c0()[_0x2aab4c(0xc84)](_0x21a4b5[_0x2aab4c(0x1fd6)],{'id':_0x5e7c80[_0x2aab4c(0x23e0)](_0x2aab4c(0x174b))||_0x21a4b5[_0x2aab4c(0x2146)][_0x2aab4c(0x11d2)]?_0x4bbd5a['id']:_0x4bbd5a['resourceId']});}),_0x21a4b5['startingAllowedItems']=angular[_0xfff2a7(0x235a)](_0x21a4b5[_0xfff2a7(0xc4e)]),_0x21a4b5[_0xfff2a7(0x1fd6)][_0xfff2a7(0x1df5)](function(_0x1475ac){const _0x212074=_0xfff2a7,_0x2b782c=_0x3f65c0()[_0x212074(0xc84)](_0x21a4b5['allowedItems'],{'id':_0x1475ac['id']});_0x5e7c80['hasRole'](_0x212074(0x174b))?_0x1475ac[_0x212074(0x146f)]=!![]:_0x1475ac[_0x212074(0x146f)]=typeof _0x2b782c!==_0x212074(0x2274)?!![]:![];}),_0x2db89a();})[_0x619119(0x146b)](function(_0x655fae){const _0x26a735=_0x619119,_0x1e1629=_0x655fae&&_0x655fae[_0x26a735(0x19c7)]?_0x655fae[_0x26a735(0x19c7)]:[];_0x21a4b5[_0x26a735(0x1ecf)]=_0x3f65c0()[_0x26a735(0x205)](_0x1e1629,function(_0x53a72b){const _0x23ac0e=_0x26a735,_0x342d24=_0x3f65c0()['find'](_0x21a4b5[_0x23ac0e(0x1fd6)],{'id':_0x53a72b['id']});return _0x342d24[_0x23ac0e(0x188d)]=_0x53a72b[_0x23ac0e(0xb8f)]?'penalty\x20'+_0x53a72b[_0x23ac0e(0xb8f)]['penalty']:'',_0x342d24['internal']=typeof _0x53a72b[_0x23ac0e(0x113f)]!==_0x23ac0e(0x2274)?'<'+_0x53a72b[_0x23ac0e(0x113f)]+'>':'',_0x342d24;}),_0x21a4b5[_0x26a735(0xa65)]=angular[_0x26a735(0x235a)](_0x21a4b5[_0x26a735(0x1ecf)]),_0x21a4b5['dualMultiselectOptions'][_0x26a735(0x1ecf)]=_0x21a4b5[_0x26a735(0x1ecf)],_0x21a4b5[_0x26a735(0x1f8a)][_0x26a735(0x1fd6)]=_0x3f65c0()[_0x26a735(0x2796)](_0x21a4b5[_0x26a735(0xc4e)],_0x21a4b5[_0x26a735(0x1f8a)][_0x26a735(0x1ecf)],'id'),_0x382783();})[_0x619119(0x129e)](function(_0x23de5a){_0x13bc5d(_0x23de5a);});});}function _0x11b946(){return _0x49f115(function(_0x3ae4de,_0x33b9d4){const _0x40a1c4=a0_0x3bb9;return _0x3a92c9['userProfileResource'][_0x40a1c4(0x16b4)]({'sectionId':_0x21a4b5[_0x40a1c4(0x2146)]['id'],'nolimit':!![]})['$promise'][_0x40a1c4(0x146b)](function(_0x5a8e35){_0x3ae4de(_0x5a8e35);})[_0x40a1c4(0x129e)](function(_0x33fae7){_0x33b9d4(_0x33fae7);});});}function _0x2db89a(){return _0x49f115(function(_0x40441a,_0x5d8a64){const _0x3dd7e5=a0_0x3bb9;return _0x3a92c9[_0x3dd7e5(0x101c)][_0x3dd7e5(0x333)]({'id':_0x21a4b5[_0x3dd7e5(0x101c)]['id'],'fields':_0x3dd7e5(0x1569),'nolimit':!![],'role':_0x3dd7e5(0x1755)})['$promise'][_0x3dd7e5(0x146b)](function(_0x1b2887){_0x40441a(_0x1b2887);})['catch'](function(_0x143d98){_0x5d8a64(_0x143d98);});});}function _0x58e085(){return _0x49f115(function(_0xb51ec8,_0x3ee77a){const _0x21f191=a0_0x3bb9;return _0x3a92c9['user'][_0x21f191(0x16b4)]({'fields':'id,name,internal,fullname','nolimit':!![],'role':_0x21f191(0x1755)})['$promise'][_0x21f191(0x146b)](function(_0xbdb142){_0xb51ec8(_0xbdb142);})[_0x21f191(0x129e)](function(_0x23ed04){_0x3ee77a(_0x23ed04);});});}function _0x176a34(_0x222f1f){return _0x49f115(function(_0x1e749f,_0x4b54ad){const _0x21725f=a0_0x3bb9;_0x3f65c0()[_0x21725f(0x2635)](_0x222f1f)?_0x1e749f():_0x3a92c9[_0x21725f(0x101c)][_0x21725f(0x135e)]({'id':_0x21a4b5['mailQueue']['id'],'ids':_0x3f65c0()[_0x21725f(0x205)](_0x222f1f,'id')})[_0x21725f(0x2945)]['then'](function(){_0x1e749f();})[_0x21725f(0x129e)](function(_0x497653){_0x4b54ad(_0x497653);});});}function _0x52a70d(_0x219f9d){return _0x49f115(function(_0x2dd6d4,_0x4331cf){const _0x781f92=a0_0x3bb9;_0x3f65c0()['isEmpty'](_0x219f9d)?_0x2dd6d4():_0x3a92c9[_0x781f92(0x101c)][_0x781f92(0x1f53)]({'id':_0x21a4b5[_0x781f92(0x101c)]['id'],'ids':_0x3f65c0()[_0x781f92(0x205)](_0x219f9d,'id')})['$promise'][_0x781f92(0x146b)](function(){_0x2dd6d4();})[_0x781f92(0x129e)](function(_0x2c487e){_0x4331cf(_0x2c487e);});});}function _0x17bc93(){const _0x29795b=_0xa7e53e,_0x548bee=_0x3f65c0()[_0x29795b(0x2796)](_0x21a4b5['startingSelectedItems'],_0x21a4b5[_0x29795b(0x1ecf)],'id'),_0x3dfaa8=_0x3f65c0()[_0x29795b(0x2796)](_0x21a4b5[_0x29795b(0x1ecf)],_0x21a4b5[_0x29795b(0xa65)],'id');return _0x52a70d(_0x548bee)[_0x29795b(0x146b)](function(){return _0x176a34(_0x3dfaa8);})[_0x29795b(0x146b)](function(){const _0x40a7ff=_0x29795b;_0x21a4b5['pendingChanges']=![],_0x21a4b5[_0x40a7ff(0x2e8)]=angular[_0x40a7ff(0x235a)](_0x21a4b5['allowedItems']),_0x21a4b5[_0x40a7ff(0xa65)]=angular[_0x40a7ff(0x235a)](_0x21a4b5['selectedItems']),_0x2a7a68['success']({'title':_0x40a7ff(0x4c0),'msg':_0x40a7ff(0x26be)});})[_0x29795b(0x129e)](function(_0x56d8f3){const _0x5862b7=_0x29795b;_0x2a7a68['error']({'title':_0x56d8f3[_0x5862b7(0x107b)]?_0x5862b7(0x262a)+_0x56d8f3[_0x5862b7(0x107b)]+_0x5862b7(0x1315)+_0x56d8f3['statusText']:_0x5862b7(0xa56),'msg':_0x56d8f3[_0x5862b7(0x107b)]?JSON['stringify'](_0x56d8f3[_0x5862b7(0x524)]):_0x56d8f3[_0x5862b7(0xd5f)]()});});}function _0x19cc41(){const _0x3dc0e5=_0xa7e53e;_0x1af1d7[_0x3dc0e5(0x2458)]();}}const _0x52d7d5=_0x3069fe;;_0x2b895c[_0x313a4d(0x11c2)]=[_0x313a4d(0x10e8),'$q','toasty',_0x313a4d(0x247f),_0x313a4d(0x101c),'$translate','Auth','crudPermissions'];function _0x2b895c(_0xfb44c6,_0x14fb28,_0x237eb7,_0x32a0b9,_0x475590,_0x54e1d4,_0x4c5933,_0x35ff13){const _0x2621ef=_0x313a4d,_0xc504e=this;_0xc504e[_0x2621ef(0x2321)]=_0x4c5933[_0x2621ef(0xb12)](),_0xc504e[_0x2621ef(0x101c)]=_0x475590,_0xc504e['crudPermissions']=_0x35ff13,_0xc504e[_0x2621ef(0x1fd6)]=[],_0xc504e[_0x2621ef(0xc4e)]=[],_0xc504e[_0x2621ef(0x1ecf)]=[],_0xc504e[_0x2621ef(0x2e8)]=[],_0xc504e['startingSelectedItems']=[],_0xc504e[_0x2621ef(0x132)]=![],_0xc504e[_0x2621ef(0x1f8a)]={'readOnly':!_0xc504e['crudPermissions'][_0x2621ef(0x15f4)],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x2621ef(0x19eb),'line1':_0x2621ef(0x19eb),'line2':'','line3':'','labelAll':_0x54e1d4[_0x2621ef(0xde)]('APP.ALL_TEAMS'),'labelSelected':_0x54e1d4['instant']('APP.SELECTED_TEAMS'),'transferCallback':function(){const _0x3f2fe7=_0x2621ef,_0x7af8d5=_0x3f65c0()['xorBy'](_0xc504e[_0x3f2fe7(0xa65)],_0xc504e[_0x3f2fe7(0x1ecf)],'id');_0xc504e[_0x3f2fe7(0x132)]=_0x3f65c0()['isEmpty'](_0x7af8d5)?![]:!![];}},_0xc504e[_0x2621ef(0x3d4)]=_0x532bf2,_0xc504e[_0x2621ef(0x215f)]=_0x4238fc,_0xc504e[_0x2621ef(0x13f3)]=_0x98725e;function _0x532bf2(){const _0x53d098=_0x2621ef;return _0x4c5933['hasRole'](_0x53d098(0x174b))?_0x50b0a6()['catch'](function(_0xb401d){const _0x3f8e02=_0x53d098;_0x237eb7[_0x3f8e02(0x1980)]({'title':_0xb401d[_0x3f8e02(0x107b)]?_0x3f8e02(0x262a)+_0xb401d[_0x3f8e02(0x107b)]+_0x3f8e02(0x1315)+_0xb401d[_0x3f8e02(0x167f)]:_0x3f8e02(0x5a5),'msg':_0xb401d[_0x3f8e02(0x107b)]?JSON[_0x3f8e02(0x10bb)](_0xb401d[_0x3f8e02(0x524)]):_0xb401d['toString']()});}):_0x1f4816()[_0x53d098(0x146b)](function(_0xbe65ef){return _0xc504e['section']=_0xbe65ef,_0x50b0a6();})['catch'](function(_0x1bd87a){const _0x55ecc4=_0x53d098;_0x237eb7['error']({'title':_0x1bd87a['status']?_0x55ecc4(0x262a)+_0x1bd87a[_0x55ecc4(0x107b)]+_0x55ecc4(0x1315)+_0x1bd87a[_0x55ecc4(0x167f)]:_0x55ecc4(0x5a5),'msg':_0x1bd87a[_0x55ecc4(0x107b)]?JSON[_0x55ecc4(0x10bb)](_0x1bd87a[_0x55ecc4(0x524)]):_0x1bd87a['toString']()});});}function _0x1f4816(){return _0x14fb28(function(_0x20e6c6,_0x458723){const _0x432a6e=a0_0x3bb9;_0x32a0b9['userProfileSection'][_0x432a6e(0x16b4)]({'userProfileId':_0xc504e['currentUser'][_0x432a6e(0x209a)],'name':_0x432a6e(0x21ae)})[_0x432a6e(0x2945)][_0x432a6e(0x146b)](function(_0x2992f7){const _0x390bc1=_0x2992f7&&_0x2992f7['rows']?_0x2992f7['rows'][0x0]:null;_0x20e6c6(_0x390bc1);})[_0x432a6e(0x129e)](function(_0xac737f){_0x458723(_0xac737f);});});}function _0x50b0a6(){return _0x14fb28(function(_0xe697b1,_0x1f8fc6){const _0x127aab=a0_0x3bb9;return _0xa002d8()[_0x127aab(0x146b)](function(_0x2d93a2){const _0x16d115=_0x127aab;return _0xc504e['items']=_0x2d93a2[_0x16d115(0x19c7)]?_0x2d93a2[_0x16d115(0x19c7)]:[],_0x4c5933['hasRole'](_0x16d115(0x174b))?_0x2d93a2:_0xc504e[_0x16d115(0x2146)]?_0xc504e[_0x16d115(0x2146)]['autoAssociation']?_0x2d93a2:_0x3fc504():null;})[_0x127aab(0x146b)](function(_0x5313e1){const _0x3cee49=_0x127aab,_0x1e6756=_0x5313e1&&_0x5313e1[_0x3cee49(0x19c7)]?_0x5313e1[_0x3cee49(0x19c7)]:[];return _0xc504e[_0x3cee49(0xc4e)]=_0x3f65c0()['map'](_0x1e6756,function(_0x3d2ee5){const _0x48d72b=_0x3cee49;return _0x3f65c0()['find'](_0xc504e[_0x48d72b(0x1fd6)],{'id':_0x4c5933[_0x48d72b(0x23e0)](_0x48d72b(0x174b))||_0xc504e['section'][_0x48d72b(0x11d2)]?_0x3d2ee5['id']:_0x3d2ee5[_0x48d72b(0x18b8)]});}),_0xc504e['items']['forEach'](function(_0x13d964){const _0x32fe80=_0x3cee49,_0xdaf6ec=_0x3f65c0()[_0x32fe80(0xc84)](_0xc504e[_0x32fe80(0xc4e)],{'id':_0x13d964['id']});_0x4c5933[_0x32fe80(0x23e0)](_0x32fe80(0x174b))?_0x13d964[_0x32fe80(0x146f)]=!![]:_0x13d964['isValid']=typeof _0xdaf6ec!=='undefined'?!![]:![];}),_0x1bca71();})[_0x127aab(0x146b)](function(_0x46143c){const _0x5b66ba=_0x127aab,_0x403f40=_0x46143c&&_0x46143c['rows']?_0x46143c['rows']:[];_0xc504e[_0x5b66ba(0x1ecf)]=_0x3f65c0()[_0x5b66ba(0x205)](_0x403f40,function(_0x567cac){const _0x3261c7=_0x5b66ba;return _0x3f65c0()[_0x3261c7(0xc84)](_0xc504e['items'],{'id':_0x567cac['id']});}),_0xc504e[_0x5b66ba(0xa65)]=angular[_0x5b66ba(0x235a)](_0xc504e[_0x5b66ba(0x1ecf)]),_0xc504e['dualMultiselectOptions'][_0x5b66ba(0x1ecf)]=_0xc504e[_0x5b66ba(0x1ecf)],_0xc504e[_0x5b66ba(0x1f8a)][_0x5b66ba(0x1fd6)]=_0x3f65c0()[_0x5b66ba(0x2796)](_0xc504e['allowedItems'],_0xc504e[_0x5b66ba(0x1f8a)][_0x5b66ba(0x1ecf)],'id'),_0xe697b1();})[_0x127aab(0x129e)](function(_0x359543){_0x1f8fc6(_0x359543);});});}function _0x3fc504(){return _0x14fb28(function(_0x2ab58a,_0x2b57ef){const _0xe8aa7e=a0_0x3bb9;return _0x32a0b9[_0xe8aa7e(0xdcc)][_0xe8aa7e(0x16b4)]({'sectionId':_0xc504e[_0xe8aa7e(0x2146)]['id'],'nolimit':!![]})[_0xe8aa7e(0x2945)]['then'](function(_0x450e89){_0x2ab58a(_0x450e89);})[_0xe8aa7e(0x129e)](function(_0x1cc1ce){_0x2b57ef(_0x1cc1ce);});});}function _0x1bca71(){return _0x14fb28(function(_0x1c563a,_0x4d0ade){const _0x353755=a0_0x3bb9;return _0x32a0b9['mailQueue'][_0x353755(0x11d1)]({'id':_0xc504e[_0x353755(0x101c)]['id'],'fields':_0x353755(0x7a7),'nolimit':!![]})['$promise'][_0x353755(0x146b)](function(_0x21af1d){_0x1c563a(_0x21af1d);})['catch'](function(_0x45cd0a){_0x4d0ade(_0x45cd0a);});});}function _0xa002d8(){return _0x14fb28(function(_0xd31541,_0x589e18){const _0x158187=a0_0x3bb9;return _0x32a0b9[_0x158187(0x23f1)][_0x158187(0x16b4)]({'fields':_0x158187(0x7a7),'nolimit':!![]})['$promise'][_0x158187(0x146b)](function(_0x564879){_0xd31541(_0x564879);})['catch'](function(_0x4dc975){_0x589e18(_0x4dc975);});});}function _0x58750a(_0x3ce1cc){return _0x14fb28(function(_0x34fdd1,_0x27d00e){const _0x167086=a0_0x3bb9;_0x3f65c0()['isEmpty'](_0x3ce1cc)?_0x34fdd1():_0x32a0b9['mailQueue'][_0x167086(0x7a0)]({'id':_0xc504e[_0x167086(0x101c)]['id'],'ids':_0x3f65c0()['map'](_0x3ce1cc,'id')})['$promise'][_0x167086(0x146b)](function(){_0x34fdd1();})[_0x167086(0x129e)](function(_0x2582db){_0x27d00e(_0x2582db);});});}function _0x2e5ec2(_0x3ed6d4){return _0x14fb28(function(_0x3e5e1f,_0x4c11c4){const _0x3ed1ea=a0_0x3bb9;_0x3f65c0()[_0x3ed1ea(0x2635)](_0x3ed6d4)?_0x3e5e1f():_0x32a0b9[_0x3ed1ea(0x101c)][_0x3ed1ea(0xfa4)]({'id':_0xc504e[_0x3ed1ea(0x101c)]['id'],'ids':_0x3f65c0()[_0x3ed1ea(0x205)](_0x3ed6d4,'id')})[_0x3ed1ea(0x2945)][_0x3ed1ea(0x146b)](function(){_0x3e5e1f();})[_0x3ed1ea(0x129e)](function(_0x39c136){_0x4c11c4(_0x39c136);});});}function _0x4238fc(){const _0x2b96dd=_0x2621ef,_0x15ad81=_0x3f65c0()[_0x2b96dd(0x2796)](_0xc504e[_0x2b96dd(0xa65)],_0xc504e[_0x2b96dd(0x1ecf)],'id'),_0x58b4b0=_0x3f65c0()['differenceBy'](_0xc504e[_0x2b96dd(0x1ecf)],_0xc504e[_0x2b96dd(0xa65)],'id');return _0x2e5ec2(_0x15ad81)['then'](function(){return _0x58750a(_0x58b4b0);})[_0x2b96dd(0x146b)](function(){const _0x2cd793=_0x2b96dd;_0xc504e[_0x2cd793(0x132)]=![],_0xc504e['startingAllowedItems']=angular['copy'](_0xc504e[_0x2cd793(0xc4e)]),_0xc504e['startingSelectedItems']=angular[_0x2cd793(0x235a)](_0xc504e[_0x2cd793(0x1ecf)]),_0x237eb7['success']({'title':_0x2cd793(0x4c0),'msg':_0x2cd793(0xf08)});})[_0x2b96dd(0x129e)](function(_0x3989cf){const _0x3fea5d=_0x2b96dd;_0x237eb7[_0x3fea5d(0x1980)]({'title':_0x3989cf[_0x3fea5d(0x107b)]?_0x3fea5d(0x262a)+_0x3989cf[_0x3fea5d(0x107b)]+_0x3fea5d(0x1315)+_0x3989cf['statusText']:_0x3fea5d(0xa56),'msg':_0x3989cf['status']?JSON[_0x3fea5d(0x10bb)](_0x3989cf[_0x3fea5d(0x524)]):_0x3989cf[_0x3fea5d(0xd5f)]()});});}function _0x98725e(){const _0x15c9b5=_0x2621ef;_0xfb44c6[_0x15c9b5(0x2458)]();}}const _0x2443fb=_0x2b895c;;const _0x9b9e22=_0x4acfac['p']+'src/js/modules/main/apps/mail/views/mailQueues/edit/teamadd/teamadd.html/teamadd.html';;_0x3523ef[_0x313a4d(0x11c2)]=['$state',_0x313a4d(0xd08),'$mdDialog',_0x313a4d(0x4d8),_0x313a4d(0x214b),_0x313a4d(0x2690),'setting',_0x313a4d(0x247f),_0x313a4d(0x1fe4),_0x313a4d(0xa87),_0x313a4d(0x101c),'userProfileSection'];function _0x3523ef(_0x3e53bd,_0x51b749,_0x316f2f,_0x536a64,_0x2bd1ae,_0x5cab7b,_0x4d0104,_0x51168b,_0x3e31d4,_0x32de67,_0x444db0,_0x38c14f){const _0x50d76f=_0x313a4d,_0x1ed9a4=this;_0x1ed9a4[_0x50d76f(0x2321)]=_0x32de67[_0x50d76f(0xb12)](),_0x1ed9a4['license']=_0x5cab7b,_0x1ed9a4[_0x50d76f(0x15b9)]=_0x4d0104,_0x1ed9a4['passwordPattern']=_0x1ed9a4['setting'][_0x50d76f(0x976)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1ed9a4[_0x50d76f(0x1002)]=_0x51b749[_0x50d76f(0x2414)]()+_0x50d76f(0xb0e)+_0x51b749['host'](),_0x1ed9a4['mailQueue']=_0x444db0||_0x3e53bd[_0x50d76f(0x16a)][_0x50d76f(0x101c)]||{},_0x1ed9a4[_0x50d76f(0x1366)]=_0x38c14f&&_0x38c14f[_0x50d76f(0x51c)]==0x1?_0x38c14f[_0x50d76f(0x19c7)][0x0]:null,_0x1ed9a4[_0x50d76f(0x2514)]=_0x32de67[_0x50d76f(0xe60)](_0x1ed9a4[_0x50d76f(0x1366)]?_0x1ed9a4['userProfileSection']['crudPermissions']:null),_0x1ed9a4[_0x50d76f(0x855)]={},_0x1ed9a4[_0x50d76f(0x1b09)]=_0x3e53bd['params']['tab']||0x0,_0x1ed9a4[_0x50d76f(0x244)]=_0x4afade,_0x1ed9a4['agentadddialog']=_0x1cfda9,_0x1ed9a4[_0x50d76f(0x861)]=_0x3e31d4[_0x50d76f(0x271e)],_0x1ed9a4['gotoMailQueues']=_0x38d040,_0x1ed9a4[_0x50d76f(0x160c)]=_0xdcbf3b;function _0x4afade(_0x486208,_0x39ddf6){const _0x16c472=_0x50d76f;_0x316f2f[_0x16c472(0x2615)]({'controller':_0x16c472(0xbc4),'controllerAs':'vm','templateUrl':_0x9b9e22,'parent':angular[_0x16c472(0x1853)](_0x536a64[_0x16c472(0x2586)]),'targetEvent':_0x39ddf6,'clickOutsideToClose':!![],'locals':{'mailQueue':_0x486208,'mailQueues':_0x1ed9a4['mailQueues']?_0x1ed9a4[_0x16c472(0x2318)][_0x16c472(0x19c7)]:[],'crudPermissions':_0x1ed9a4['crudPermissions']}});}function _0x1cfda9(_0x40ee82,_0xab29aa){const _0x345f97=_0x50d76f;_0x316f2f[_0x345f97(0x2615)]({'controller':_0x345f97(0x964),'controllerAs':'vm','templateUrl':_0xa9f5e7,'parent':angular[_0x345f97(0x1853)](_0x536a64['body']),'targetEvent':_0xab29aa,'clickOutsideToClose':!![],'locals':{'mailQueue':_0x40ee82,'mailQueues':_0x1ed9a4[_0x345f97(0x2318)]?_0x1ed9a4[_0x345f97(0x2318)]['rows']:[],'crudPermissions':_0x1ed9a4[_0x345f97(0x2514)],'realtime':![]}});}function _0x38d040(){const _0x1bb6d8=_0x50d76f;_0x3e53bd['go'](_0x1bb6d8(0x1263),{},{'reload':_0x1bb6d8(0x1263)});}function _0xdcbf3b(){const _0x490158=_0x50d76f;_0x51168b[_0x490158(0x101c)]['update']({'id':_0x1ed9a4[_0x490158(0x101c)]['id']},_0x1ed9a4[_0x490158(0x101c)])['$promise']['then'](function(){const _0x51cc67=_0x490158;_0x3e31d4[_0x51cc67(0x1c75)]({'title':_0x51cc67(0x2585),'msg':_0x1ed9a4[_0x51cc67(0x101c)][_0x51cc67(0x19eb)]?_0x1ed9a4[_0x51cc67(0x101c)][_0x51cc67(0x19eb)]+_0x51cc67(0x6b0):''});})[_0x490158(0x129e)](function(_0x5bba01){const _0x309c43=_0x490158;_0x3e31d4[_0x309c43(0x1980)]({'title':_0x5bba01['status']?_0x309c43(0x262a)+_0x5bba01['status']+'\x20-\x20'+_0x5bba01['statusText']:_0x309c43(0x1c14),'msg':_0x5bba01[_0x309c43(0x524)]?JSON[_0x309c43(0x10bb)](_0x5bba01[_0x309c43(0x524)]):_0x5bba01[_0x309c43(0xd5f)]()});});}}const _0x869119=_0x3523ef;;_0x2cd16f[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1aa9),'$state',_0x313a4d(0x15fe),'$mdDialog',_0x313a4d(0x4d8),'$timeout',_0x313a4d(0x214b),_0x313a4d(0x2318),_0x313a4d(0x26b6),'userProfileSection',_0x313a4d(0x247f),'msUtils',_0x313a4d(0x1fe4),'Auth',_0x313a4d(0x2690),_0x313a4d(0x15b9)];function _0x2cd16f(_0x3323e4,_0x4904cb,_0x50d746,_0x3705e7,_0x2bbf1b,_0xe57f4,_0x1c9d34,_0xc2694,_0x8f596c,_0x53b14a,_0x5abc17,_0xf331a8,_0x36c21b,_0x507815,_0x4e547b,_0x29c179,_0x1df701){const _0x2a2832=_0x313a4d,_0x5467ac=this;_0x5467ac[_0x2a2832(0x2690)]=_0x29c179,_0x5467ac[_0x2a2832(0x15b9)]=_0x1df701,_0x5467ac['currentUser']=_0x4e547b[_0x2a2832(0xb12)](),_0x5467ac[_0x2a2832(0x2318)]=_0x8f596c||{'count':0x0,'rows':[]},_0x5467ac[_0x2a2832(0x26b6)]=_0x53b14a,_0x5467ac['userProfileSection']=_0x5abc17&&_0x5abc17[_0x2a2832(0x51c)]==0x1?_0x5abc17['rows'][0x0]:null,_0x5467ac[_0x2a2832(0x2514)]=_0x4e547b['parseCrudPermissions'](_0x5467ac[_0x2a2832(0x1366)]?_0x5467ac[_0x2a2832(0x1366)][_0x2a2832(0x2514)]:null),_0x5467ac[_0x2a2832(0x768)]=_0x2a2832(0x2318),_0x5467ac['listOrder']='',_0x5467ac['listOrderAsc']=null,_0x5467ac[_0x2a2832(0x50d)]=[],_0x5467ac['query']={'fields':_0x2a2832(0xa22),'sort':_0x2a2832(0x12f2),'channel':_0x2a2832(0x56b),'limit':0xa,'page':0x1},_0x5467ac[_0x2a2832(0x280a)]=_0x3f65c0()['keyBy']([{'option':_0x2a2832(0x6a7),'value':'\x27beepall\x27'},{'option':_0x2a2832(0xa12),'value':'\x27rrmemory\x27'}],function(_0x3b24c3){const _0x521693=_0x2a2832;return _0x3f65c0()[_0x521693(0x5f4)](_0x3b24c3[_0x521693(0x175d)],new RegExp('\x27','g'),'');}),_0x5467ac[_0x2a2832(0x23f9)]=_0x5ec38a,_0x5467ac[_0x2a2832(0x244)]=_0x4a7be5,_0x5467ac[_0x2a2832(0x1027)]=_0x53b898,_0x5467ac[_0x2a2832(0xf0a)]=_0x3091ce,_0x5467ac[_0x2a2832(0x138d)]=_0x3ec63d,_0x5467ac[_0x2a2832(0x1c75)]=_0x3492aa,_0x5467ac[_0x2a2832(0xaea)]=_0x5fbae5,_0x5467ac['createOrEditMailQueue']=_0x3577ba,_0x5467ac[_0x2a2832(0x6fb)]=_0x4f07b6,_0x5467ac[_0x2a2832(0x19e9)]=_0x361090,_0x5467ac[_0x2a2832(0x2163)]=_0x11a0b8,_0x5467ac[_0x2a2832(0x272)]=_0x85ba8c,_0x5467ac[_0x2a2832(0x1f6b)]=_0x5d7ad0;function _0x5ec38a(_0x205465){const _0xae5124=_0x2a2832;_0x50d746['go'](_0xae5124(0x15e9),{'id':_0x205465['id'],'mailQueue':_0x205465,'crudPermissions':_0x5467ac['crudPermissions']});}function _0x4a7be5(_0x4107b8,_0x2109ea){const _0x42fa49=_0x2a2832;_0x2bbf1b[_0x42fa49(0x2615)]({'controller':_0x42fa49(0xbc4),'controllerAs':'vm','templateUrl':_0x9b9e22,'parent':angular[_0x42fa49(0x1853)](_0xe57f4[_0x42fa49(0x2586)]),'targetEvent':_0x2109ea,'clickOutsideToClose':!![],'locals':{'mailQueue':_0x4107b8,'mailQueues':_0x5467ac['mailQueues']?_0x5467ac[_0x42fa49(0x2318)][_0x42fa49(0x19c7)]:[],'crudPermissions':_0x5467ac[_0x42fa49(0x2514)]}});}function _0x53b898(_0x3a8b6f,_0x513012){const _0x274b88=_0x2a2832;_0x2bbf1b[_0x274b88(0x2615)]({'controller':'MailQueueagentaddController','controllerAs':'vm','templateUrl':_0xa9f5e7,'parent':angular['element'](_0xe57f4[_0x274b88(0x2586)]),'targetEvent':_0x513012,'clickOutsideToClose':!![],'locals':{'mailQueue':_0x3a8b6f,'mailQueues':_0x5467ac[_0x274b88(0x2318)]?_0x5467ac['mailQueues'][_0x274b88(0x19c7)]:[],'crudPermissions':_0x5467ac[_0x274b88(0x2514)],'realtime':![]}});}function _0x3091ce(_0x467265,_0x24c0f5){const _0x14c222=_0x2a2832,_0x255309=_0x2bbf1b[_0x14c222(0x1e8a)]()['title'](_0x14c222(0xdb2)+_0x3f65c0()[_0x14c222(0x20d1)](_0x14c222(0x101c))+'?')[_0x14c222(0x1cbe)](_0x14c222(0x16d3)+(_0x467265[_0x14c222(0x19eb)]||_0x14c222(0x101c))+''+_0x14c222(0xe01))[_0x14c222(0x4bd)](_0x14c222(0x1ec1))[_0x14c222(0x1f27)](_0x24c0f5)['ok']('OK')[_0x14c222(0x6c3)]('CANCEL');_0x2bbf1b[_0x14c222(0x2615)](_0x255309)[_0x14c222(0x146b)](function(){_0x4f07b6(_0x467265);},function(){const _0x1636ee=_0x14c222;console[_0x1636ee(0x1a74)]('CANCEL');});}function _0x3ec63d(){const _0x19aac4=_0x2a2832;if(_0x4e547b['hasRole']('admin'))_0x50d746['go'](_0x19aac4(0x104),{});else return _0xf331a8['userProfileSection']['get']({'userProfileId':_0x4e547b[_0x19aac4(0xb12)]()[_0x19aac4(0x209a)],'sectionId':0x262})[_0x19aac4(0x2945)]['then'](function(_0x18c8b4){const _0x3a7d12=_0x19aac4,_0x488897=_0x18c8b4&&_0x18c8b4[_0x3a7d12(0x19c7)]?_0x18c8b4[_0x3a7d12(0x19c7)][0x0]:null;_0x488897&&_0x488897[_0x3a7d12(0x193e)]?_0x50d746['go']('app.mail.realtime.queues',{}):_0x507815[_0x3a7d12(0x271e)]({'title':_0xc2694[_0x3a7d12(0xde)](_0x3a7d12(0xb27)),'msg':_0xc2694[_0x3a7d12(0xde)](_0x3a7d12(0x174a))});})['catch'](function(_0x33d49a){const _0x90f3c4=_0x19aac4;_0x507815['error']({'title':_0x33d49a[_0x90f3c4(0x107b)]?'API:'+_0x33d49a[_0x90f3c4(0x107b)]+'\x20-\x20'+_0x33d49a['statusText']:_0x90f3c4(0x698),'msg':_0x33d49a['status']?JSON[_0x90f3c4(0x10bb)](_0x33d49a[_0x90f3c4(0x524)]):_0x33d49a[_0x90f3c4(0xd5f)]()});});}let _0x2f58c9=!![],_0x411877=0x1;_0x3323e4[_0x2a2832(0x21e8)](_0x2a2832(0x2669),function(_0x36ea6a,_0x3b558c){const _0x37eebb=_0x2a2832;_0x2f58c9?_0x1c9d34(function(){_0x2f58c9=![];}):(!_0x3b558c&&(_0x411877=_0x5467ac[_0x37eebb(0x1a56)][_0x37eebb(0x844)]),_0x36ea6a!==_0x3b558c&&(_0x5467ac[_0x37eebb(0x1a56)][_0x37eebb(0x844)]=0x1),!_0x36ea6a&&(_0x5467ac[_0x37eebb(0x1a56)][_0x37eebb(0x844)]=_0x411877),_0x5467ac[_0x37eebb(0xaea)]());});function _0x3492aa(_0x535803){const _0x40b6db=_0x2a2832;_0x5467ac[_0x40b6db(0x2318)]=_0x535803||{'count':0x0,'rows':[]};}function _0x5fbae5(){const _0x1213b8=_0x2a2832;_0x5467ac[_0x1213b8(0x1a56)][_0x1213b8(0x145d)]=(_0x5467ac[_0x1213b8(0x1a56)][_0x1213b8(0x844)]-0x1)*_0x5467ac[_0x1213b8(0x1a56)][_0x1213b8(0x221e)],_0x4e547b[_0x1213b8(0x23e0)](_0x1213b8(0x174b))?_0x5467ac[_0x1213b8(0xb9c)]=_0xf331a8['mailQueue']['get'](_0x5467ac[_0x1213b8(0x1a56)],_0x3492aa)['$promise']:(_0x5467ac[_0x1213b8(0x1a56)]['id']=_0x5467ac[_0x1213b8(0x26b6)]['id'],_0x5467ac[_0x1213b8(0x1a56)][_0x1213b8(0x2146)]=_0x1213b8(0xf4d),_0x5467ac['promise']=_0xf331a8[_0x1213b8(0x26b6)]['getResources'](_0x5467ac[_0x1213b8(0x1a56)],_0x3492aa)[_0x1213b8(0x2945)]);}function _0x3577ba(_0x522e35,_0x5973f0){const _0x34065e=_0x2a2832;_0x2bbf1b[_0x34065e(0x2615)]({'controller':'CreateOrEditMailQueueDialogController','controllerAs':'vm','templateUrl':_0x2e6ac7,'parent':angular[_0x34065e(0x1853)](_0xe57f4['body']),'targetEvent':_0x522e35,'clickOutsideToClose':!![],'locals':{'mailQueue':_0x5973f0,'mailQueues':_0x5467ac['mailQueues'][_0x34065e(0x19c7)],'license':_0x5467ac[_0x34065e(0x2690)],'setting':_0x5467ac[_0x34065e(0x15b9)],'crudPermissions':_0x5467ac[_0x34065e(0x2514)]}});}function _0x4f07b6(_0x12f231){const _0x4ed983=_0x2a2832;_0xf331a8[_0x4ed983(0x101c)][_0x4ed983(0x1fac)]({'id':_0x12f231['id']})[_0x4ed983(0x2945)][_0x4ed983(0x146b)](function(){const _0x5d3a7c=_0x4ed983;_0x3f65c0()['remove'](_0x5467ac[_0x5d3a7c(0x2318)]['rows'],{'id':_0x12f231['id']}),_0x5467ac[_0x5d3a7c(0x2318)][_0x5d3a7c(0x51c)]-=0x1,!_0x5467ac[_0x5d3a7c(0x2318)][_0x5d3a7c(0x19c7)][_0x5d3a7c(0x402)]&&_0x5467ac[_0x5d3a7c(0xaea)](),_0x507815[_0x5d3a7c(0x1c75)]({'title':_0x3f65c0()[_0x5d3a7c(0x20d1)](_0x5d3a7c(0xda0))+'\x20deleted!','msg':_0x12f231[_0x5d3a7c(0x19eb)]?_0x12f231[_0x5d3a7c(0x19eb)]+_0x5d3a7c(0x23e3):''});})[_0x4ed983(0x129e)](function(_0x4f7932){const _0xdc4af4=_0x4ed983;if(_0x4f7932['data']&&_0x4f7932[_0xdc4af4(0x524)][_0xdc4af4(0xcef)]&&_0x4f7932[_0xdc4af4(0x524)]['errors'][_0xdc4af4(0x402)]){_0x5467ac[_0xdc4af4(0xcef)]=_0x4f7932['data'][_0xdc4af4(0xcef)]||[{'message':_0x4f7932[_0xdc4af4(0xd5f)](),'type':_0xdc4af4(0x435)}];for(let _0x2f814e=0x0;_0x2f814e<_0x4f7932[_0xdc4af4(0x524)][_0xdc4af4(0xcef)][_0xdc4af4(0x402)];_0x2f814e++){_0x507815['error']({'title':_0x4f7932[_0xdc4af4(0x524)]['errors'][_0x2f814e]['type'],'msg':_0x4f7932['data'][_0xdc4af4(0xcef)][_0x2f814e][_0xdc4af4(0x7fd)]});}}else _0x507815[_0xdc4af4(0x1980)]({'title':_0x4f7932['status']?_0xdc4af4(0x262a)+_0x4f7932[_0xdc4af4(0x107b)]+'\x20-\x20'+_0x4f7932[_0xdc4af4(0x167f)]:_0xdc4af4(0x435),'msg':_0x4f7932[_0xdc4af4(0x524)]?JSON[_0xdc4af4(0x10bb)](_0x4f7932[_0xdc4af4(0x524)][_0xdc4af4(0x7fd)]):_0x4f7932[_0xdc4af4(0x7fd)]||_0x4f7932[_0xdc4af4(0xd5f)]()});});}function _0x361090(){const _0x27d888=_0x2a2832,_0x3c68c1=angular[_0x27d888(0x235a)](_0x5467ac[_0x27d888(0x50d)]);return _0x5467ac[_0x27d888(0x50d)]=[],_0x3c68c1;}function _0x11a0b8(_0x40a876){const _0x479025=_0x2a2832,_0x5614d1=_0x2bbf1b[_0x479025(0x1e8a)]()[_0x479025(0x1189)](_0x479025(0x269a))['htmlContent'](_0x479025(0x16d3)+_0x5467ac[_0x479025(0x50d)][_0x479025(0x402)]+_0x479025(0x2452)+_0x479025(0xe01))[_0x479025(0x4bd)](_0x479025(0x6c0))['targetEvent'](_0x40a876)['ok']('OK')[_0x479025(0x6c3)](_0x479025(0x39a));_0x2bbf1b[_0x479025(0x2615)](_0x5614d1)['then'](function(){const _0xc8bcb1=_0x479025;_0x5467ac[_0xc8bcb1(0x50d)][_0xc8bcb1(0x1df5)](function(_0x4b3544){_0x4f07b6(_0x4b3544);}),_0x5467ac[_0xc8bcb1(0x50d)]=[];});}function _0x85ba8c(){_0x5467ac['selectedMailQueues']=[];}function _0x5d7ad0(){const _0x13897d=_0x2a2832;_0x5467ac[_0x13897d(0x50d)]=_0x5467ac['mailQueues']['rows'];}}const _0x539bc8=_0x2cd16f;;_0x570548['$inject']=['$scope','$state',_0x313a4d(0xd08),_0x313a4d(0x10e8),'$q',_0x313a4d(0x214b),_0x313a4d(0x1fe4),_0x313a4d(0xd48),_0x313a4d(0x2036),_0x313a4d(0x247f),_0x313a4d(0xa87),_0x313a4d(0x2690),_0x313a4d(0x15b9),_0x313a4d(0x2514)];function _0x570548(_0x22ec73,_0x283ea5,_0x491bc1,_0x1b0d94,_0x488a2f,_0x55eb26,_0xcc584c,_0x580405,_0x53400e,_0x900418,_0x18c90e,_0x487f4b,_0x5be48b,_0x5d69a6){const _0x2be60b=_0x313a4d,_0x5e5512=this;_0x5e5512[_0x2be60b(0x2321)]=_0x18c90e[_0x2be60b(0xb12)](),_0x5e5512['errors']=[],_0x5e5512['setting']=_0x5be48b,_0x5e5512[_0x2be60b(0x2690)]=_0x487f4b,_0x5e5512[_0x2be60b(0x2514)]=_0x5d69a6,_0x5e5512[_0x2be60b(0x855)]={},_0x5e5512[_0x2be60b(0x2251)]=_0x5e5512['setting']&&_0x5e5512[_0x2be60b(0x15b9)][_0x2be60b(0x976)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x5e5512[_0x2be60b(0x1189)]=_0x2be60b(0x2254),_0x5e5512[_0x2be60b(0x2036)]=angular[_0x2be60b(0x235a)](_0x53400e),_0x5e5512[_0x2be60b(0xd48)]=_0x580405,_0x5e5512[_0x2be60b(0xee7)]=![];!_0x5e5512[_0x2be60b(0x2036)]&&(_0x5e5512[_0x2be60b(0x2036)]={},_0x5e5512[_0x2be60b(0x1189)]=_0x2be60b(0x1f3e),_0x5e5512[_0x2be60b(0xee7)]=!![]);_0x5e5512[_0x2be60b(0x442)]=_0x642e5,_0x5e5512[_0x2be60b(0x1a39)]=_0x19ad38,_0x5e5512['deleteMailSubstatus']=_0xc01ac8,_0x5e5512[_0x2be60b(0xe73)]=_0x2eba68,_0x5e5512[_0x2be60b(0x13f3)]=_0x1bc112;function _0x642e5(){const _0x5b7097=_0x2be60b;_0x5e5512[_0x5b7097(0xcef)]=[],_0x900418[_0x5b7097(0x2036)][_0x5b7097(0x1e3)](_0x5e5512[_0x5b7097(0x2036)])[_0x5b7097(0x2945)][_0x5b7097(0x146b)](function(_0x5357ae){const _0x22a3be=_0x5b7097;_0x5e5512[_0x22a3be(0xd48)]['unshift'](_0x5357ae[_0x22a3be(0x2488)]()),_0xcc584c[_0x22a3be(0x1c75)]({'title':'MailSubstatus\x20properly\x20created','msg':_0x5e5512[_0x22a3be(0x2036)][_0x22a3be(0x19eb)]?_0x5e5512['mailSubstatus'][_0x22a3be(0x19eb)]+'\x20has\x20been\x20created!':''}),_0x1bc112(_0x5357ae);})[_0x5b7097(0x129e)](function(_0x525eef){const _0x58bb15=_0x5b7097;if(_0x525eef[_0x58bb15(0x524)]&&_0x525eef[_0x58bb15(0x524)][_0x58bb15(0xcef)]&&_0x525eef[_0x58bb15(0x524)][_0x58bb15(0xcef)][_0x58bb15(0x402)]){_0x5e5512[_0x58bb15(0xcef)]=_0x525eef[_0x58bb15(0x524)][_0x58bb15(0xcef)]||[{'message':_0x525eef[_0x58bb15(0xd5f)](),'type':'api.mailSubstatus.save'}];for(let _0x474b29=0x0;_0x474b29<_0x525eef[_0x58bb15(0x524)][_0x58bb15(0xcef)][_0x58bb15(0x402)];_0x474b29+=0x1){_0xcc584c['error']({'title':_0x525eef[_0x58bb15(0x524)][_0x58bb15(0xcef)][_0x474b29][_0x58bb15(0x1142)],'msg':_0x525eef[_0x58bb15(0x524)]['errors'][_0x474b29]['message']});}}else _0xcc584c['error']({'title':_0x525eef[_0x58bb15(0x107b)]?_0x58bb15(0x262a)+_0x525eef['status']+_0x58bb15(0x1315)+_0x525eef[_0x58bb15(0x167f)]:'api.mailSubstatus.save','msg':_0x525eef[_0x58bb15(0x524)]?JSON[_0x58bb15(0x10bb)](_0x525eef['data']['message']):_0x525eef['toString']()});});}function _0x19ad38(){const _0x29c86c=_0x2be60b;_0x5e5512[_0x29c86c(0xcef)]=[],_0x900418[_0x29c86c(0x2036)]['update']({'id':_0x5e5512[_0x29c86c(0x2036)]['id']},_0x5e5512[_0x29c86c(0x2036)])['$promise'][_0x29c86c(0x146b)](function(_0x1bd2c0){const _0x3b1392=_0x29c86c,_0x470735=_0x3f65c0()[_0x3b1392(0xc84)](_0x5e5512[_0x3b1392(0xd48)],{'id':_0x1bd2c0['id']});_0x470735&&_0x3f65c0()[_0x3b1392(0x168d)](_0x470735,_0x3f65c0()[_0x3b1392(0x40e)](_0x1bd2c0[_0x3b1392(0x2488)](),_0x3f65c0()[_0x3b1392(0x627)](_0x470735))),_0xcc584c[_0x3b1392(0x1c75)]({'title':'MailSubstatus\x20properly\x20saved!','msg':_0x5e5512['mailSubstatus'][_0x3b1392(0x19eb)]?_0x5e5512[_0x3b1392(0x2036)][_0x3b1392(0x19eb)]+'\x20has\x20been\x20saved!':''}),_0x1bc112(_0x1bd2c0);})['catch'](function(_0x4b2407){const _0x51bc7d=_0x29c86c;if(_0x4b2407[_0x51bc7d(0x524)]&&_0x4b2407[_0x51bc7d(0x524)][_0x51bc7d(0xcef)]&&_0x4b2407[_0x51bc7d(0x524)][_0x51bc7d(0xcef)][_0x51bc7d(0x402)]){_0x5e5512['errors']=_0x4b2407[_0x51bc7d(0x524)][_0x51bc7d(0xcef)]||[{'message':_0x4b2407[_0x51bc7d(0xd5f)](),'type':_0x51bc7d(0x158c)}];for(let _0x222693=0x0;_0x222693<_0x4b2407[_0x51bc7d(0x524)][_0x51bc7d(0xcef)][_0x51bc7d(0x402)];_0x222693++){_0xcc584c[_0x51bc7d(0x1980)]({'title':_0x4b2407[_0x51bc7d(0x524)][_0x51bc7d(0xcef)][_0x222693][_0x51bc7d(0x1142)],'msg':_0x4b2407[_0x51bc7d(0x524)][_0x51bc7d(0xcef)][_0x222693][_0x51bc7d(0x7fd)]});}}else _0xcc584c['error']({'title':_0x4b2407[_0x51bc7d(0x107b)]?_0x51bc7d(0x262a)+_0x4b2407[_0x51bc7d(0x107b)]+'\x20-\x20'+_0x4b2407['statusText']:_0x51bc7d(0x158c),'msg':_0x4b2407['data']?JSON[_0x51bc7d(0x10bb)](_0x4b2407[_0x51bc7d(0x524)][_0x51bc7d(0x7fd)]):_0x4b2407['toString']()});});}function _0xc01ac8(_0x572c88){const _0x380f20=_0x2be60b;_0x5e5512['errors']=[];const _0x5dd655=_0x1b0d94[_0x380f20(0x1e8a)]()[_0x380f20(0x1189)](_0x380f20(0x1d64))[_0x380f20(0x80f)](_0x380f20(0x128d))['ariaLabel']('Delete\x20MailSubstatus')['ok'](_0x380f20(0x25de))[_0x380f20(0x6c3)](_0x380f20(0xcf0))['targetEvent'](_0x572c88);_0x1b0d94[_0x380f20(0x2615)](_0x5dd655)[_0x380f20(0x146b)](function(){const _0xd98671=_0x380f20;_0x900418[_0xd98671(0x2036)][_0xd98671(0x1fac)]({'id':_0x5e5512[_0xd98671(0x2036)]['id']})['$promise'][_0xd98671(0x146b)](function(){const _0x19f3a7=_0xd98671;_0x3f65c0()[_0x19f3a7(0x2640)](_0x5e5512['mailSubtatuses'],{'id':_0x5e5512['mailSubstatus']['id']}),_0xcc584c['success']({'title':_0x19f3a7(0x2195),'msg':(_0x5e5512[_0x19f3a7(0x2036)]['name']||_0x19f3a7(0x2036))+_0x19f3a7(0x23e3)}),_0x1bc112(_0x5e5512[_0x19f3a7(0x2036)]);})['catch'](function(_0x293a8d){const _0x286c01=_0xd98671;if(_0x293a8d['data']&&_0x293a8d[_0x286c01(0x524)][_0x286c01(0xcef)]&&_0x293a8d[_0x286c01(0x524)][_0x286c01(0xcef)][_0x286c01(0x402)]){_0x5e5512[_0x286c01(0xcef)]=_0x293a8d[_0x286c01(0x524)]['errors']||[{'message':_0x293a8d['toString'](),'type':_0x286c01(0x27b8)}];for(let _0x57f3d0=0x0;_0x57f3d0<_0x293a8d[_0x286c01(0x524)]['errors'][_0x286c01(0x402)];_0x57f3d0++){_0xcc584c[_0x286c01(0x1980)]({'title':_0x293a8d[_0x286c01(0x524)][_0x286c01(0xcef)][_0x57f3d0]['type'],'msg':_0x293a8d[_0x286c01(0x524)][_0x286c01(0xcef)][_0x57f3d0]['message']});}}else _0xcc584c[_0x286c01(0x1980)]({'title':_0x293a8d[_0x286c01(0x107b)]?_0x286c01(0x262a)+_0x293a8d[_0x286c01(0x107b)]+'\x20-\x20'+_0x293a8d[_0x286c01(0x167f)]:_0x286c01(0x27b8),'msg':_0x293a8d[_0x286c01(0x524)]?JSON[_0x286c01(0x10bb)](_0x293a8d['data'][_0x286c01(0x7fd)]):_0x293a8d[_0x286c01(0x7fd)]||_0x293a8d[_0x286c01(0xd5f)]()});});},function(){});}function _0x2eba68(_0x1be08c){return _0x1be08c===null?undefined:new Date(_0x1be08c);}function _0x1bc112(_0x4bafde){const _0x4733d3=_0x2be60b;_0x1b0d94[_0x4733d3(0x2458)](_0x4bafde);}}const _0x17a9ab=_0x570548;;const _0xec43b1=_0x4acfac['p']+'src/js/modules/main/apps/mail/views/mailSubtatuses/create/dialog.html/dialog.html';;_0x3592dd[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),'$window','$state',_0x313a4d(0x15fe),_0x313a4d(0x10e8),'$document',_0x313a4d(0x1abe),_0x313a4d(0x214b),'mailSubtatuses',_0x313a4d(0x26b6),_0x313a4d(0x1366),_0x313a4d(0x247f),_0x313a4d(0x216c),_0x313a4d(0x1fe4),_0x313a4d(0xa87),_0x313a4d(0x2690),_0x313a4d(0x15b9)];function _0x3592dd(_0x31a18f,_0x2e92b1,_0x567e64,_0x52ba5f,_0x92f8c7,_0x588c21,_0x1cf81d,_0x3e65bf,_0x10df7d,_0x2413f6,_0x42eb50,_0x1a47bb,_0x2775ff,_0x1117dd,_0x13e80d,_0x21a32d,_0x1fb145){const _0x17e96e=_0x313a4d,_0x13dac6=this;_0x13dac6[_0x17e96e(0x2690)]=_0x21a32d,_0x13dac6['setting']=_0x1fb145,_0x13dac6[_0x17e96e(0x2321)]=_0x13e80d[_0x17e96e(0xb12)](),_0x13dac6[_0x17e96e(0xd48)]=_0x10df7d||{'count':0x0,'rows':[]},_0x13dac6[_0x17e96e(0x26b6)]=_0x2413f6,_0x13dac6[_0x17e96e(0x1366)]=_0x42eb50&&_0x42eb50[_0x17e96e(0x51c)]==0x1?_0x42eb50[_0x17e96e(0x19c7)][0x0]:null,_0x13dac6[_0x17e96e(0x2514)]=_0x13e80d[_0x17e96e(0xe60)](_0x13dac6[_0x17e96e(0x1366)]?_0x13dac6['userProfileSection'][_0x17e96e(0x2514)]:null),_0x13dac6[_0x17e96e(0x768)]='mailSubtatuses',_0x13dac6[_0x17e96e(0x216a)]='',_0x13dac6[_0x17e96e(0x214f)]=null,_0x13dac6[_0x17e96e(0x83e)]=[],_0x13dac6[_0x17e96e(0x1a56)]={'fields':_0x17e96e(0x608),'sort':_0x17e96e(0x12f2),'limit':0xa,'page':0x1},_0x13dac6['editdialog']=_0x248c81,_0x13dac6[_0x17e96e(0xf0a)]=_0x2b58b8,_0x13dac6[_0x17e96e(0x1c75)]=_0x44c853,_0x13dac6['getMailSubstatuses']=_0x31e96b,_0x13dac6[_0x17e96e(0x16f7)]=_0x333225,_0x13dac6[_0x17e96e(0x1032)]=_0x91a5bb,_0x13dac6['exportSelectedMailSubstatuses']=_0x1fb566,_0x13dac6[_0x17e96e(0x75e)]=_0x44f40a,_0x13dac6[_0x17e96e(0x5c9)]=_0x18c374,_0x13dac6[_0x17e96e(0x11c4)]=_0x37f190;function _0x248c81(_0x491e3b,_0x1067d6){const _0x1bedc7=_0x17e96e;_0x92f8c7[_0x1bedc7(0x2615)]({'controller':_0x1bedc7(0xdaa),'controllerAs':'vm','templateUrl':_0xec43b1,'parent':angular[_0x1bedc7(0x1853)](_0x588c21[_0x1bedc7(0x2586)]),'targetEvent':_0x1067d6,'clickOutsideToClose':!![],'locals':{'mailSubstatus':_0x491e3b,'mailSubtatuses':_0x13dac6[_0x1bedc7(0xd48)][_0x1bedc7(0x19c7)],'license':_0x13dac6[_0x1bedc7(0x2690)],'setting':null,'crudPermissions':_0x13dac6[_0x1bedc7(0x2514)]}});}function _0x2b58b8(_0x189795,_0x817bb4){const _0x2d31e8=_0x17e96e,_0x1430d5=_0x92f8c7['confirm']()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x3f65c0()[_0x2d31e8(0x20d1)](_0x2d31e8(0x2036))+'?')['htmlContent'](''+(_0x189795[_0x2d31e8(0x19eb)]||'mailSubstatus')+''+_0x2d31e8(0xe01))['ariaLabel'](_0x2d31e8(0x13e6))[_0x2d31e8(0x1f27)](_0x817bb4)['ok']('OK')[_0x2d31e8(0x6c3)](_0x2d31e8(0x39a));_0x92f8c7[_0x2d31e8(0x2615)](_0x1430d5)[_0x2d31e8(0x146b)](function(){_0x91a5bb(_0x189795);},function(){const _0x1d53e8=_0x2d31e8;console['log'](_0x1d53e8(0x39a));});}let _0x53b90f=!![],_0x44d078=0x1;_0x31a18f['$watch']('vm.query.filter',function(_0x5c349f,_0x27c662){const _0x167628=_0x17e96e;_0x53b90f?_0x1cf81d(function(){_0x53b90f=![];}):(!_0x27c662&&(_0x44d078=_0x13dac6[_0x167628(0x1a56)]['page']),_0x5c349f!==_0x27c662&&(_0x13dac6[_0x167628(0x1a56)]['page']=0x1),!_0x5c349f&&(_0x13dac6[_0x167628(0x1a56)][_0x167628(0x844)]=_0x44d078),_0x13dac6['getMailSubstatuses']());});function _0x44c853(_0x106e2d){const _0xd67be1=_0x17e96e;_0x13dac6[_0xd67be1(0xd48)]=_0x106e2d||{'count':0x0,'rows':[]};}function _0x31e96b(){const _0x616b25=_0x17e96e;_0x13dac6[_0x616b25(0x1a56)][_0x616b25(0x145d)]=(_0x13dac6[_0x616b25(0x1a56)][_0x616b25(0x844)]-0x1)*_0x13dac6[_0x616b25(0x1a56)][_0x616b25(0x221e)],_0x13e80d[_0x616b25(0x23e0)](_0x616b25(0x174b))?_0x13dac6['promise']=_0x1a47bb['mailSubstatus']['get'](_0x13dac6[_0x616b25(0x1a56)],_0x44c853)['$promise']:(_0x13dac6['query']['id']=_0x13dac6['userProfile']['id'],_0x13dac6[_0x616b25(0x1a56)][_0x616b25(0x2146)]=_0x616b25(0x2857),_0x13dac6[_0x616b25(0xb9c)]=_0x1a47bb['userProfile'][_0x616b25(0x158f)](_0x13dac6[_0x616b25(0x1a56)],_0x44c853)[_0x616b25(0x2945)]);}function _0x333225(_0x39a767,_0x4bb075){const _0x3f52d9=_0x17e96e;_0x92f8c7[_0x3f52d9(0x2615)]({'controller':_0x3f52d9(0xdaa),'controllerAs':'vm','templateUrl':_0xec43b1,'parent':angular['element'](_0x588c21['body']),'targetEvent':_0x39a767,'clickOutsideToClose':!![],'locals':{'mailSubstatus':_0x4bb075,'mailSubtatuses':_0x13dac6[_0x3f52d9(0xd48)]['rows'],'license':_0x13dac6[_0x3f52d9(0x2690)],'setting':_0x13dac6['setting'],'crudPermissions':_0x13dac6['crudPermissions']}});}function _0x91a5bb(_0x3cff45){const _0x20a4ab=_0x17e96e;_0x1a47bb[_0x20a4ab(0x2036)][_0x20a4ab(0x1fac)]({'id':_0x3cff45['id']})[_0x20a4ab(0x2945)][_0x20a4ab(0x146b)](function(){const _0x995785=_0x20a4ab;_0x3f65c0()[_0x995785(0x2640)](_0x13dac6[_0x995785(0xd48)][_0x995785(0x19c7)],{'id':_0x3cff45['id']}),_0x13dac6[_0x995785(0xd48)]['count']-=0x1,!_0x13dac6[_0x995785(0xd48)][_0x995785(0x19c7)][_0x995785(0x402)]&&_0x13dac6['getMailSubstatuses'](),_0x1117dd['success']({'title':_0x3f65c0()['startCase'](_0x995785(0xe4))+_0x995785(0x201c),'msg':_0x3cff45[_0x995785(0x19eb)]?_0x3cff45[_0x995785(0x19eb)]+_0x995785(0x23e3):''});})[_0x20a4ab(0x129e)](function(_0x3419d3){const _0x5da1b3=_0x20a4ab;if(_0x3419d3[_0x5da1b3(0x524)]&&_0x3419d3[_0x5da1b3(0x524)]['errors']&&_0x3419d3['data'][_0x5da1b3(0xcef)][_0x5da1b3(0x402)]){_0x13dac6[_0x5da1b3(0xcef)]=_0x3419d3[_0x5da1b3(0x524)][_0x5da1b3(0xcef)]||[{'message':_0x3419d3[_0x5da1b3(0xd5f)](),'type':'SYSTEM:DELETEmailSubstatus'}];for(let _0x1170c0=0x0;_0x1170c0<_0x3419d3[_0x5da1b3(0x524)][_0x5da1b3(0xcef)]['length'];_0x1170c0++){_0x1117dd[_0x5da1b3(0x1980)]({'title':_0x3419d3['data'][_0x5da1b3(0xcef)][_0x1170c0]['type'],'msg':_0x3419d3[_0x5da1b3(0x524)][_0x5da1b3(0xcef)][_0x1170c0]['message']});}}else _0x1117dd[_0x5da1b3(0x1980)]({'title':_0x3419d3[_0x5da1b3(0x107b)]?_0x5da1b3(0x262a)+_0x3419d3[_0x5da1b3(0x107b)]+_0x5da1b3(0x1315)+_0x3419d3[_0x5da1b3(0x167f)]:'SYSTEM:DELETEmailSubstatus','msg':_0x3419d3[_0x5da1b3(0x524)]?JSON[_0x5da1b3(0x10bb)](_0x3419d3[_0x5da1b3(0x524)][_0x5da1b3(0x7fd)]):_0x3419d3[_0x5da1b3(0x7fd)]||_0x3419d3[_0x5da1b3(0xd5f)]()});});}function _0x1fb566(){const _0xe268b7=_0x17e96e,_0x4f14bd=angular[_0xe268b7(0x235a)](_0x13dac6[_0xe268b7(0x83e)]);return _0x13dac6[_0xe268b7(0x83e)]=[],_0x4f14bd;}function _0x44f40a(_0x21bfc2){const _0x332ece=_0x17e96e,_0x253bb6=_0x92f8c7[_0x332ece(0x1e8a)]()[_0x332ece(0x1189)](_0x332ece(0x2125))[_0x332ece(0x1cbe)](_0x332ece(0x16d3)+_0x13dac6['selectedMailSubstatuses'][_0x332ece(0x402)]+_0x332ece(0x2452)+'\x20will\x20be\x20deleted.')[_0x332ece(0x4bd)](_0x332ece(0x410))[_0x332ece(0x1f27)](_0x21bfc2)['ok']('OK')['cancel'](_0x332ece(0x39a));_0x92f8c7[_0x332ece(0x2615)](_0x253bb6)[_0x332ece(0x146b)](function(){const _0x1b1952=_0x332ece;_0x13dac6[_0x1b1952(0x83e)][_0x1b1952(0x1df5)](function(_0x411c1f){_0x91a5bb(_0x411c1f);}),_0x13dac6[_0x1b1952(0x83e)]=[];});}function _0x18c374(){const _0xb39174=_0x17e96e;_0x13dac6[_0xb39174(0x83e)]=[];}function _0x37f190(){const _0x355325=_0x17e96e;_0x13dac6['selectedMailSubstatuses']=_0x13dac6[_0x355325(0xd48)][_0x355325(0x19c7)];}}const _0x46b741=_0x3592dd;;_0x3ad96a[_0x313a4d(0x11c2)]=['$stateProvider',_0x313a4d(0x695)];function _0x3ad96a(_0x3907ca,_0x5c7731){const _0x176588=_0x313a4d;_0x3907ca[_0x176588(0x13d6)](_0x176588(0x19d5),{'abstract':!![],'url':_0x176588(0x112f)})[_0x176588(0x13d6)](_0x176588(0x1263),{'url':_0x176588(0x1e29),'views':{'content@app':{'templateUrl':_0x22d496,'controller':'MailQueuesController\x20as\x20vm'}},'resolve':{'mailQueues':['apiResolver','Auth',function(_0x8339fa,_0x16619f){const _0x109d51=_0x176588;return _0x16619f[_0x109d51(0x23e0)](_0x109d51(0x174b))?_0x8339fa['resolve'](_0x109d51(0x1e9c),{'fields':'createdAt,updatedAt,id,name,strategy,timeout,description','sort':_0x109d51(0x12f2),'channel':_0x109d51(0x56b),'limit':0xa,'offset':0x0}):_0x8339fa['resolve'](_0x109d51(0x938),{'id':_0x16619f[_0x109d51(0xb12)]()['userProfileId'],'section':'MailQueues','fields':_0x109d51(0xa22),'sort':_0x109d51(0x12f2),'channel':_0x109d51(0x56b),'limit':0xa,'offset':0x0});}],'userProfile':[_0x176588(0x362),'Auth',function(_0x455398,_0xcf91bd){const _0x88638b=_0x176588;return _0xcf91bd[_0x88638b(0x23e0)](_0x88638b(0x174b))?null:_0x455398['resolve'](_0x88638b(0x119a),{'fields':'id,name,crudPermissions','id':_0xcf91bd[_0x88638b(0xb12)]()[_0x88638b(0x209a)]});}],'userProfileSection':['apiResolver',_0x176588(0xa87),function(_0x6cd470,_0x13b418){const _0x18dc37=_0x176588;return _0x13b418[_0x18dc37(0x23e0)](_0x18dc37(0x174b))?null:_0x6cd470['resolve'](_0x18dc37(0x27be),{'fields':_0x18dc37(0x1e64),'userProfileId':_0x13b418['getCurrentUser']()[_0x18dc37(0x209a)],'sectionId':0x259});}]},'authenticate':!![],'permissionId':0x259,'bodyClass':_0x176588(0x56b)})['state'](_0x176588(0x15e9),{'url':_0x176588(0x2028),'params':{'mailQueue':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x2fdd7e,'controller':_0x176588(0x25e8)}},'resolve':{'mailQueue':[_0x176588(0x362),_0x176588(0x28c8),function(_0x50f421,_0x3bcc31){const _0x41cd3e=_0x176588;return _0x50f421[_0x41cd3e(0x2922)](_0x41cd3e(0x1e9c),{'fields':_0x41cd3e(0xa22),'id':_0x3bcc31['id']});}],'userProfileSection':[_0x176588(0x362),_0x176588(0xa87),function(_0x39f285,_0x490f98){const _0xd55f53=_0x176588;return _0x39f285[_0xd55f53(0x2922)]('userProfileSection@get',{'fields':_0xd55f53(0x1e64),'userProfileId':_0x490f98['getCurrentUser']()[_0xd55f53(0x209a)],'sectionId':0x259});}]},'authenticate':!![],'permissionId':0x259,'bodyClass':_0x176588(0x56b)})['state'](_0x176588(0x1de6),{'url':_0x176588(0x1243),'views':{'content@app':{'templateUrl':_0x51d93e,'controller':'MailAccountsController\x20as\x20vm'}},'resolve':{'mailAccounts':[_0x176588(0x362),_0x176588(0xa87),function(_0x61347f,_0x52d920){const _0x4f34b6=_0x176588;return _0x52d920['hasRole']('admin')?_0x61347f[_0x4f34b6(0x2922)]('mailAccount@get',{'fields':_0x4f34b6(0x11b8),'sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x61347f['resolve'](_0x4f34b6(0x938),{'id':_0x52d920[_0x4f34b6(0xb12)]()[_0x4f34b6(0x209a)],'section':_0x4f34b6(0xbf0),'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});}],'userProfile':[_0x176588(0x362),_0x176588(0xa87),function(_0x25945f,_0x2a0c59){const _0x17c73a=_0x176588;return _0x2a0c59[_0x17c73a(0x23e0)](_0x17c73a(0x174b))?null:_0x25945f[_0x17c73a(0x2922)](_0x17c73a(0x119a),{'fields':'id,name,crudPermissions','id':_0x2a0c59[_0x17c73a(0xb12)]()['userProfileId']});}],'userProfileSection':[_0x176588(0x362),_0x176588(0xa87),function(_0x2597de,_0x2e7651){const _0x1aad7a=_0x176588;return _0x2e7651[_0x1aad7a(0x23e0)](_0x1aad7a(0x174b))?null:_0x2597de[_0x1aad7a(0x2922)]('userProfileSection@get',{'fields':_0x1aad7a(0x1e64),'userProfileId':_0x2e7651[_0x1aad7a(0xb12)]()['userProfileId'],'sectionId':0x25a});}]},'authenticate':!![],'permissionId':0x25a,'bodyClass':_0x176588(0x56b)})[_0x176588(0x13d6)](_0x176588(0x2375),{'url':_0x176588(0x2028),'params':{'mailAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0xd9b0b,'controller':_0x176588(0x278d)}},'resolve':{'mailAccount':[_0x176588(0x362),_0x176588(0x28c8),function(_0x15b9f5,_0x20d9b6){const _0x47305d=_0x176588;return _0x15b9f5[_0x47305d(0x2922)](_0x47305d(0x541),{'fields':_0x47305d(0x11b8),'id':_0x20d9b6['id']});}],'userProfileSection':[_0x176588(0x362),_0x176588(0xa87),function(_0x56142c,_0x2c6c78){const _0xec8728=_0x176588;return _0x56142c[_0xec8728(0x2922)]('userProfileSection@get',{'fields':_0xec8728(0x1e64),'userProfileId':_0x2c6c78[_0xec8728(0xb12)]()['userProfileId'],'sectionId':0x25a});}]},'authenticate':!![],'permissionId':0x25a,'bodyClass':'mail'})[_0x176588(0x13d6)](_0x176588(0x1379),{'url':_0x176588(0x836),'views':{'content@app':{'templateUrl':_0x562770,'controller':_0x176588(0x1b0e)}},'resolve':{'mailSubtatuses':[_0x176588(0x362),function(_0x18e84a){const _0x48a8e1=_0x176588;return _0x18e84a['resolve'](_0x48a8e1(0x2722),{'fields':'createdAt,updatedAt,id,name,description','sort':_0x48a8e1(0x12f2),'limit':0xa,'offset':0x0});}],'userProfile':[_0x176588(0x362),_0x176588(0xa87),function(_0x67e131,_0x45bc65){const _0x2e0114=_0x176588;return _0x45bc65[_0x2e0114(0x23e0)](_0x2e0114(0x174b))?null:_0x67e131[_0x2e0114(0x2922)](_0x2e0114(0x119a),{'fields':'id,name,crudPermissions','id':_0x45bc65['getCurrentUser']()[_0x2e0114(0x209a)]});}],'userProfileSection':[_0x176588(0x362),_0x176588(0xa87),function(_0x2e28ea,_0x2312ab){const _0x5ac811=_0x176588;return _0x2312ab['hasRole'](_0x5ac811(0x174b))?null:_0x2e28ea['resolve'](_0x5ac811(0x27be),{'fields':_0x5ac811(0x1e64),'userProfileId':_0x2312ab[_0x5ac811(0xb12)]()[_0x5ac811(0x209a)],'sectionId':0x25b});}]},'authenticate':!![],'permissionId':0x25b,'bodyClass':'mail'}),_0x5c7731['addPart'](_0x176588(0xa11));}angular['module'](_0x313a4d(0x19d5),['ngCsv',_0x313a4d(0x962),_0x313a4d(0x23c7),_0x313a4d(0x963),_0x313a4d(0x19e2),_0x313a4d(0x27c1),_0x313a4d(0x195b),'ngAria','ngAnimate',_0x313a4d(0x1f5f),'mwFormBuilder',_0x313a4d(0xfb2),_0x313a4d(0x1e57),'ngclipboard',_0x313a4d(0x1bd2),_0x313a4d(0x1792),_0x313a4d(0x1b65),'material.components.expansionPanels','chart.js',_0x313a4d(0x11df),_0x313a4d(0x2795)])['config'](_0x3ad96a)['controller'](_0x313a4d(0x39e),_0xdc63a)['controller']('MailAccountActionsController',_0x47c3a8)['controller'](_0x313a4d(0xcd4),_0x422d1b)[_0x313a4d(0x28f0)]('EditMailAccountAppagentDialogController',_0x50b83d)[_0x313a4d(0x28f0)](_0x313a4d(0x1a31),_0x38d40c)[_0x313a4d(0x28f0)]('EditMailAccountAppcloseDialogController',_0x38cdeb)['controller'](_0x313a4d(0x2905),_0x4bbee9)['controller'](_0x313a4d(0x113e),_0x53bf9f)[_0x313a4d(0x28f0)]('EditMailAccountAppintervalDialogController',_0x3a18d8)[_0x313a4d(0x28f0)](_0x313a4d(0x433),_0xb548ed)[_0x313a4d(0x28f0)](_0x313a4d(0x2467),_0x5c0603)[_0x313a4d(0x28f0)](_0x313a4d(0x692),_0x8c6022)[_0x313a4d(0x28f0)](_0x313a4d(0x60d),_0x2ed701)[_0x313a4d(0x28f0)](_0x313a4d(0x11b),_0x17f6e4)['controller'](_0x313a4d(0x20c6),_0x58d222)['controller'](_0x313a4d(0xb9d),_0x31c0e6)[_0x313a4d(0x28f0)]('MailAccountDispositionsController',_0x1fbdee)[_0x313a4d(0x28f0)](_0x313a4d(0x1d6f),_0xa6c3ae)[_0x313a4d(0x28f0)]('MailAccountsController',_0x1d303d)[_0x313a4d(0x28f0)](_0x313a4d(0x1788),_0x1b272c)['controller'](_0x313a4d(0x964),_0x52d7d5)[_0x313a4d(0x28f0)](_0x313a4d(0xbc4),_0x2443fb)[_0x313a4d(0x28f0)](_0x313a4d(0x21c3),_0x869119)[_0x313a4d(0x28f0)](_0x313a4d(0x3c0),_0x539bc8)['controller'](_0x313a4d(0xdaa),_0x17a9ab)['controller']('MailSubstatusesController',_0x46b741);;const _0x591e25=_0x4acfac['p']+'src/js/modules/main/apps/sms/views/realtime/realtime.html/realtime.html';;const _0x49ed9a=_0x4acfac['p']+'src/js/modules/main/apps/sms/views/realtime/agents/view.html/view.html';;const _0x3b1ca9=_0x4acfac['p']+_0x313a4d(0x97e);;_0x38fadf['$inject']=[_0x313a4d(0x910),'$q',_0x313a4d(0x1abe),_0x313a4d(0x10e8),'$document','$filter','pauses',_0x313a4d(0x23c0),_0x313a4d(0x2445),_0x313a4d(0x247f),'socket','toasty',_0x313a4d(0x1ac0),_0x313a4d(0x26b6),_0x313a4d(0x1366),_0x313a4d(0xa87),_0x313a4d(0x2690),_0x313a4d(0xa0a)];function _0x38fadf(_0x80482c,_0x5e3990,_0x3d9e63,_0x2aebe9,_0x32a259,_0x20ae38,_0x44cdee,_0x364af4,_0x44ad02,_0x2e0b3f,_0x5f5285,_0x50615f,_0x3562bf,_0x142ef3,_0x646d1f,_0x31e17a,_0x1dfeae,_0x32c442){const _0x12f115=_0x313a4d,_0x301382=this,_0x561ba8=[_0x12f115(0x1fce),_0x12f115(0x538),_0x12f115(0x1d01),_0x12f115(0x192a),_0x12f115(0x1125),_0x12f115(0x192a),'internal',_0x12f115(0x2bb),_0x12f115(0x5f7),_0x12f115(0xcc5),_0x12f115(0x1e9e),'smsPause',_0x12f115(0x1f9d),'faxPause','voicePause',_0x12f115(0x6e4),'openchannelCapacity',_0x12f115(0xf85),_0x12f115(0x1820),_0x12f115(0x237c),_0x12f115(0x1cf6),_0x12f115(0xaac),'openchannelCurrentCapacity','mailCurrentCapacity','smsCurrentCapacity',_0x12f115(0xfc1),_0x12f115(0x1815),_0x12f115(0xfc3),_0x12f115(0xfae),_0x12f115(0x1fc6),'smsStatus',_0x12f115(0xfdf),_0x12f115(0x15ea),_0x12f115(0x685),'chatStatusTime','openchannelStatusTime',_0x12f115(0x10cd),_0x12f115(0x1f5c),_0x12f115(0xadd),_0x12f115(0x47a),_0x12f115(0x1dda),'queue',_0x12f115(0x1e8d),_0x12f115(0x1ca2),_0x12f115(0x4e3),_0x12f115(0x22c3)],_0x4eda03=[_0x12f115(0x5f7),_0x12f115(0xcc5),_0x12f115(0x1e9e),_0x12f115(0x17c),_0x12f115(0x1f9d),_0x12f115(0x25c4),_0x12f115(0x211c),_0x12f115(0x538)];_0x301382[_0x12f115(0x2321)]=_0x31e17a['getCurrentUser'](),_0x301382[_0x12f115(0xe3e)]=[_0x12f115(0xad4),_0x12f115(0xfe4),_0x12f115(0x26a7),_0x12f115(0x776),'not_inuse'],_0x301382['pauses']=_0x44cdee||{'count':0x0,'rows':[]},_0x301382[_0x12f115(0x2690)]=_0x1dfeae,_0x301382[_0x12f115(0x26b6)]=_0x142ef3,_0x301382['userProfileSection']=_0x646d1f&&_0x646d1f[_0x12f115(0x51c)]==0x1?_0x646d1f['rows'][0x0]:null,_0x301382[_0x12f115(0x2514)]=_0x31e17a[_0x12f115(0xe60)](_0x301382[_0x12f115(0x1366)]?_0x301382[_0x12f115(0x1366)]['crudPermissions']:null),_0x301382['agents']=_0x364af4?_0x3f65c0()[_0x12f115(0x194)](_0x364af4['rows']?_0x364af4['rows']:[],'id'):{},_0x301382['rpcAgents']=_0x44ad02?_0x3f65c0()['keyBy'](_0x44ad02[_0x12f115(0x19c7)]?_0x44ad02[_0x12f115(0x19c7)]:[],'id'):{},_0x301382['paginatedAgents']={},_0x301382[_0x12f115(0x2412)]=![],_0x301382[_0x12f115(0x206e)]=[],_0x301382[_0x12f115(0x626)]={};for(const _0xed422c in _0x301382[_0x12f115(0x23c0)]){typeof _0x301382[_0x12f115(0x23c0)][_0xed422c]!==_0x12f115(0x2274)&&(_0x301382['agents'][_0xed422c][_0x12f115(0x5aa)]=!![]);}_0x301382['query']={'limit':0xa,'page':0x1,'order':_0x12f115(0x286a),'globalStatusFilter':'','pauseTypeFilter':''},_0x301382[_0x12f115(0x2044)]=_0x46b735,_0x301382[_0x12f115(0x2677)]=_0x1010fe,_0x301382[_0x12f115(0x1e3e)]=_0x439b88,_0x301382['unPause']=_0x3fc2ec,_0x301382['showInfo']=_0x376cc3,_0x301382[_0x12f115(0x1eaa)]=_0x520081,_0x301382[_0x12f115(0x1775)]=_0x21da98,_0x301382[_0x12f115(0x2075)]=_0x1d3a56,_0x301382[_0x12f115(0x169)]=_0x17e3d9,_0x301382[_0x12f115(0x1d53)]=_0x45021e,_0x301382[_0x12f115(0x1db0)]=_0x19e611,_0x301382[_0x12f115(0x1a76)]=_0xa4b23,_0x301382[_0x12f115(0x3d4)]=_0x43b80c,_0x301382['onConnect']=_0x54109a,_0x301382['onComplete']=_0x580f1f,_0x301382[_0x12f115(0x1b80)]=_0x3594d1,_0x5f5285['on'](_0x12f115(0x17de),_0x301382[_0x12f115(0x1db0)]),_0x5f5285['on'](_0x12f115(0x324),_0x301382[_0x12f115(0x1a76)]),_0x5f5285['on'](_0x12f115(0x118c),_0x301382[_0x12f115(0x201a)]),_0x5f5285['on'](_0x12f115(0x198f),_0x301382[_0x12f115(0x483)]),_0x43b80c();let _0x4ea046=_0x32c442(function(){const _0x1edc5d=_0x12f115;_0x301382[_0x1edc5d(0x2412)]&&(_0x301382['load']=![],_0x43b80c());},0x3e7);function _0x43b80c(){const _0x311cd7=_0x12f115;_0x301382[_0x311cd7(0x2412)]=![];const _0x9b1605=_0x5e3990[_0x311cd7(0xce3)]();_0x301382['promise']=_0x9b1605[_0x311cd7(0xb9c)],_0x301382['filteredAgents']=[],_0x301382[_0x311cd7(0x206e)]=[],_0x3f65c0()[_0x311cd7(0x1a04)](_0x301382['agents'],function(_0x594b99,_0x2e6b0f){const _0x5c6a0d=_0x311cd7;_0x301382[_0x5c6a0d(0x2445)][_0x2e6b0f]&&_0x3f65c0()[_0x5c6a0d(0x168d)](_0x594b99,_0x3f65c0()[_0x5c6a0d(0x40e)](_0x3f65c0()[_0x5c6a0d(0x2432)](_0x301382[_0x5c6a0d(0x2445)][_0x2e6b0f],_0x4eda03),_0x561ba8)),_0x21da98(_0x594b99),_0x594b99[_0x5c6a0d(0x538)]?(_0x301382[_0x5c6a0d(0x202e)][_0x5c6a0d(0x1f47)](_0x594b99),_0x301382['agentInternal'][_0x594b99[_0x5c6a0d(0x113f)]]=_0x2e6b0f):_0x594b99['globalStatusTime']=_0x3f65c0()[_0x5c6a0d(0x123)](_0x2deec6()()[_0x5c6a0d(0x22b0)]('x'));});_0x301382[_0x311cd7(0x1a56)][_0x311cd7(0x1500)]&&_0x3f65c0()['remove'](_0x301382['filteredAgents'],function(_0x1fac10){const _0x4decc7=_0x311cd7;return _0x1fac10['globalStatus']!==_0x301382[_0x4decc7(0x1a56)]['globalStatusFilter'];});_0x301382['query']['pauseTypeFilter']&&_0x3f65c0()['remove'](_0x301382[_0x311cd7(0x202e)],function(_0x4a04f1){const _0x4f6a89=_0x311cd7;return _0x4a04f1[_0x4f6a89(0x1125)]!==_0x301382[_0x4f6a89(0x1a56)][_0x4f6a89(0x301)];});_0x301382[_0x311cd7(0x1a56)][_0x311cd7(0x1dd6)]&&_0x3f65c0()[_0x311cd7(0x2640)](_0x301382[_0x311cd7(0x202e)],function(_0x11a996){const _0x1e75b8=_0x311cd7;return _0x11a996[_0x1e75b8(0x286a)][_0x1e75b8(0x256e)]()[_0x1e75b8(0x172b)](_0x301382[_0x1e75b8(0x1a56)][_0x1e75b8(0x1dd6)][_0x1e75b8(0x256e)]())<0x0;});_0x301382[_0x311cd7(0x202e)]=_0x3be651(_0x301382['filteredAgents']);const _0x4f844c=(_0x301382[_0x311cd7(0x1a56)][_0x311cd7(0x844)]-0x1)*_0x301382[_0x311cd7(0x1a56)][_0x311cd7(0x221e)];_0x301382[_0x311cd7(0x285)]=_0x3f65c0()['drop'](_0x301382[_0x311cd7(0x202e)],_0x4f844c)[_0x311cd7(0x1298)](0x0,_0x301382[_0x311cd7(0x1a56)][_0x311cd7(0x221e)]);for(let _0x3fda2f=0x0;_0x3fda2f<_0x301382['paginatedAgents']['length'];_0x3fda2f+=0x1){_0x301382[_0x311cd7(0x206e)]['push'](_0x301382[_0x311cd7(0x285)][_0x3fda2f]['id']);}_0x9b1605[_0x311cd7(0x2922)](),_0x301382['load']=!![];}function _0x19e611(_0x3ebb89){const _0x366d9f=_0x12f115;_0x301382[_0x366d9f(0x23c0)][_0x3ebb89['id']]&&(_0x3f65c0()['merge'](_0x301382[_0x366d9f(0x23c0)][_0x3ebb89['id']],_0x3f65c0()[_0x366d9f(0x40e)](_0x3f65c0()[_0x366d9f(0x2432)](_0x3ebb89,_0x4eda03),_0x561ba8)),_0x3f65c0()[_0x366d9f(0x168d)](_0x301382[_0x366d9f(0x2445)][_0x3ebb89['id']],_0x3f65c0()['pick'](_0x3f65c0()['omit'](_0x3ebb89,_0x4eda03),_0x561ba8)),_0x21da98(_0x301382['agents'][_0x3ebb89['id']]));}function _0xa4b23(_0x58e4c6){const _0x2bd6aa=_0x12f115;_0x301382[_0x2bd6aa(0x23c0)][_0x58e4c6['id']]&&(_0x3f65c0()[_0x2bd6aa(0x168d)](_0x301382['agents'][_0x58e4c6['id']],_0x3f65c0()[_0x2bd6aa(0x40e)](_0x58e4c6,_0x561ba8)),_0x3f65c0()[_0x2bd6aa(0x168d)](_0x301382[_0x2bd6aa(0x2445)][_0x58e4c6['id']],_0x3f65c0()[_0x2bd6aa(0x40e)](_0x58e4c6,_0x561ba8)),_0x58e4c6['lastPauseAt']&&(_0x301382[_0x2bd6aa(0x23c0)][_0x58e4c6['id']]['globalStatusTime']=_0x58e4c6[_0x2bd6aa(0x192a)],_0x301382['rpcAgents'][_0x58e4c6['id']][_0x2bd6aa(0xed1)]=_0x58e4c6['lastPauseAt']),_0x21da98(_0x301382[_0x2bd6aa(0x23c0)][_0x58e4c6['id']]));}function _0x54109a(_0x397b9a){const _0x5de89c=_0x12f115;_0x301382[_0x5de89c(0x23c0)][_0x301382[_0x5de89c(0x626)][_0x397b9a['destaccountcode']]]&&(_0x3f65c0()[_0x5de89c(0x168d)](_0x301382[_0x5de89c(0x23c0)][_0x301382[_0x5de89c(0x626)][_0x397b9a[_0x5de89c(0x1fb9)]]],_0x3f65c0()['pick'](_0x397b9a,[_0x5de89c(0x1c72),_0x5de89c(0x1e8d)])),_0x3f65c0()[_0x5de89c(0x168d)](_0x301382[_0x5de89c(0x2445)][_0x301382[_0x5de89c(0x626)][_0x397b9a['destaccountcode']]],_0x3f65c0()[_0x5de89c(0x40e)](_0x397b9a,['queue','destconnectedlinenum'])));}function _0x580f1f(_0x59d197){const _0x3d0cfe=_0x12f115;_0x301382[_0x3d0cfe(0x23c0)][_0x301382['agentInternal'][_0x59d197['destaccountcode']]]&&(_0x301382[_0x3d0cfe(0x23c0)][_0x301382[_0x3d0cfe(0x626)][_0x59d197[_0x3d0cfe(0x1fb9)]]]=_0x3f65c0()[_0x3d0cfe(0x2432)](_0x301382[_0x3d0cfe(0x23c0)][_0x301382[_0x3d0cfe(0x626)][_0x59d197[_0x3d0cfe(0x1fb9)]]],[_0x3d0cfe(0x1c72),'destconnectedlinenum']),_0x301382[_0x3d0cfe(0x2445)][_0x301382[_0x3d0cfe(0x626)][_0x59d197[_0x3d0cfe(0x1fb9)]]]=_0x3f65c0()[_0x3d0cfe(0x2432)](_0x301382['rpcAgents'][_0x301382[_0x3d0cfe(0x626)][_0x59d197[_0x3d0cfe(0x1fb9)]]],['queue',_0x3d0cfe(0x1e8d)]));}function _0x46b735(_0x3ab0ca){const _0x5a8777=_0x12f115;return _0x2e0b3f[_0x5a8777(0xe7b)][_0x5a8777(0x2044)]({'id':_0x3ab0ca['id'],'device':_0x5a8777(0xfc4),'agent_id':_0x3ab0ca['id'],'agent_name':_0x3ab0ca[_0x5a8777(0x19eb)]})[_0x5a8777(0x2945)][_0x5a8777(0x146b)](function(){const _0x2bddfc=_0x5a8777;_0x50615f[_0x2bddfc(0x1c75)]({'title':_0x2bddfc(0x1c70),'msg':_0x3ab0ca['fullname']+_0x2bddfc(0x166c)}),_0x301382[_0x2bddfc(0x23c0)][_0x3ab0ca['id']]&&(_0x301382['agents'][_0x3ab0ca['id']][_0x2bddfc(0x538)]=![]),_0x301382[_0x2bddfc(0x2445)][_0x3ab0ca['id']]&&(_0x301382[_0x2bddfc(0x2445)][_0x3ab0ca['id']]['online']=![]),_0x43b80c();})['catch'](function(_0x32c3a6){const _0x13381e=_0x5a8777;_0x50615f[_0x13381e(0x1980)]({'title':_0x32c3a6[_0x13381e(0x107b)]?'API:'+_0x32c3a6[_0x13381e(0x107b)]+_0x13381e(0x1315)+_0x32c3a6['statusText']:'api.staff.save','msg':_0x32c3a6['data']?JSON['stringify'](_0x32c3a6[_0x13381e(0x524)][_0x13381e(0x7fd)]):_0x32c3a6[_0x13381e(0xd5f)]()});});}function _0x439b88(_0x268e4a,_0x25ce56){const _0x3de74=_0x12f115;return _0x2e0b3f[_0x3de74(0xe7b)][_0x3de74(0x1e3e)]({'id':_0x268e4a['id'],'type':_0x25ce56})[_0x3de74(0x2945)][_0x3de74(0x146b)](function(_0x3a2205){const _0xb571bd=_0x3de74;_0x301382[_0xb571bd(0x23c0)][_0x268e4a['id']]&&_0x3f65c0()[_0xb571bd(0x168d)](_0x301382[_0xb571bd(0x23c0)][_0x268e4a['id']],_0x3f65c0()[_0xb571bd(0x40e)](_0x3a2205,_0x561ba8)),_0x301382[_0xb571bd(0x2445)][_0x268e4a['id']]&&_0x3f65c0()[_0xb571bd(0x168d)](_0x301382[_0xb571bd(0x2445)][_0x268e4a['id']],_0x3f65c0()[_0xb571bd(0x40e)](_0x3a2205,_0x561ba8)),_0x21da98(_0x301382['agents'][_0x268e4a['id']]);})['catch'](function(_0x54bff8){const _0x2eacaa=_0x3de74;_0x50615f[_0x2eacaa(0x1980)]({'title':_0x54bff8[_0x2eacaa(0x107b)]?'API:'+_0x54bff8[_0x2eacaa(0x107b)]+_0x2eacaa(0x1315)+_0x54bff8[_0x2eacaa(0x167f)]:'api.staff.save','msg':_0x54bff8[_0x2eacaa(0x524)]?JSON['stringify'](_0x54bff8[_0x2eacaa(0x524)][_0x2eacaa(0x7fd)]):_0x54bff8[_0x2eacaa(0xd5f)]()});});}function _0x3fc2ec(_0x55ba50){const _0x2c50d4=_0x12f115;return _0x2e0b3f['user'][_0x2c50d4(0x974)]({'id':_0x55ba50['id']})['$promise']['then'](function(_0x3ab463){const _0x370535=_0x2c50d4;_0x301382[_0x370535(0x23c0)][_0x55ba50['id']]&&_0x3f65c0()[_0x370535(0x168d)](_0x301382[_0x370535(0x23c0)][_0x55ba50['id']],_0x3f65c0()[_0x370535(0x40e)](_0x3ab463,_0x561ba8)),_0x301382[_0x370535(0x2445)][_0x55ba50['id']]&&_0x3f65c0()[_0x370535(0x168d)](_0x301382['rpcAgents'][_0x55ba50['id']],_0x3f65c0()[_0x370535(0x40e)](_0x3ab463,_0x561ba8)),_0x21da98(_0x301382[_0x370535(0x23c0)][_0x55ba50['id']]);})['catch'](function(_0x4ab46b){const _0x4c6016=_0x2c50d4;_0x50615f[_0x4c6016(0x1980)]({'title':_0x4ab46b[_0x4c6016(0x107b)]?_0x4c6016(0x262a)+_0x4ab46b[_0x4c6016(0x107b)]+_0x4c6016(0x1315)+_0x4ab46b[_0x4c6016(0x167f)]:_0x4c6016(0x23c6),'msg':_0x4ab46b['data']?JSON['stringify'](_0x4ab46b['data'][_0x4c6016(0x7fd)]):_0x4ab46b['toString']()});});}function _0x376cc3(_0x1723cd){const _0x1e06a3=_0x12f115;_0x2aebe9[_0x1e06a3(0x2615)](_0x2aebe9['alert']()[_0x1e06a3(0xa70)](!![])[_0x1e06a3(0x1189)]('Legend')[_0x1e06a3(0x1cbe)]('
    TODO\x20legend\x20status\x20+\x20state
    ')['ok']('Ok')[_0x1e06a3(0x1f27)](_0x1723cd));}function _0x1010fe(_0x152895,_0x4ce249){const _0x2c2253=_0x12f115;_0x2aebe9[_0x2c2253(0x2615)]({'controller':_0x2c2253(0x2610),'controllerAs':'vm','templateUrl':_0xbb22f1,'parent':angular[_0x2c2253(0x1853)](_0x32a259['body']),'targetEvent':_0x4ce249,'clickOutsideToClose':!![],'locals':{'agent':_0x152895,'agents':[],'channel':'sms','direction':'inbound','crudPermissions':_0x301382[_0x2c2253(0x2514)]}});}function _0x1d3a56(_0x10886b){const _0x4574ea=_0x12f115;return _0x10886b===_0x4574ea(0x1e3e)||_0x10886b===_0x4574ea(0x1127);}function _0x17e3d9(_0x1af723){const _0x445018=_0x12f115;return _0x1af723===_0x445018(0x1e3e);}function _0x45021e(_0x537681){const _0x3861c3=_0x12f115;return _0x537681===_0x3861c3(0x1127);}function _0x54e9f1(_0xf29fde){const _0x4ad742=_0x12f115;return _0xf29fde===_0x4ad742(0xb09)||_0xf29fde==='unknown'||_0xf29fde===_0x4ad742(0x85d)||_0xf29fde===_0x4ad742(0xad4)||_0x3f65c0()[_0x4ad742(0x1b36)](_0xf29fde);}function _0x520081(_0x3125d2,_0xf007f7){const _0x1839f7=_0x12f115;if(_0xf007f7===_0x1839f7(0xe6)){if(_0x3125d2[_0xf007f7+_0x1839f7(0x74e)]!=='idle')return _0x3125d2[_0xf007f7+_0x1839f7(0x74e)];if(_0x3125d2[_0xf007f7+_0x1839f7(0xde0)])return _0x3125d2[_0xf007f7+_0x1839f7(0x74e)]=_0x1839f7(0x1e3e),_0x1839f7(0x1e3e);return'idle';}else{if(_0x3125d2[_0xf007f7+_0x1839f7(0xde0)])return _0x3125d2[_0xf007f7+_0x1839f7(0x74e)]=_0x1839f7(0x1e3e),_0x1839f7(0x1e3e);return _0x3125d2[_0xf007f7+_0x1839f7(0x74e)];}}function _0x21da98(_0x586c84){const _0x541558=_0x12f115;let _0x1e6b4b=_0x541558(0x207d);if(_0x3f65c0()['every']([_0x520081(_0x586c84,_0x541558(0xe6)),_0x520081(_0x586c84,'chat'),_0x520081(_0x586c84,_0x541558(0x56b)),_0x520081(_0x586c84,_0x541558(0x7d9)),_0x520081(_0x586c84,_0x541558(0x929)),_0x520081(_0x586c84,'whatsapp'),_0x520081(_0x586c84,_0x541558(0x22d9))],_0x1d3a56))_0x1e6b4b=_0x541558(0x1e3e);else{if(_0x3f65c0()[_0x541558(0x1360)]([_0x520081(_0x586c84,_0x541558(0xe6)),_0x520081(_0x586c84,_0x541558(0xa7f)),_0x520081(_0x586c84,_0x541558(0x56b)),_0x520081(_0x586c84,_0x541558(0x7d9)),_0x520081(_0x586c84,'sms'),_0x520081(_0x586c84,'whatsapp'),_0x520081(_0x586c84,_0x541558(0x22d9))],_0x1d3a56))_0x1e6b4b='*pause';else _0x3f65c0()['every']([_0x520081(_0x586c84,_0x541558(0xe6)),_0x520081(_0x586c84,_0x541558(0xa7f)),_0x520081(_0x586c84,_0x541558(0x56b)),_0x520081(_0x586c84,_0x541558(0x7d9)),_0x520081(_0x586c84,'sms'),_0x520081(_0x586c84,_0x541558(0xff9)),_0x520081(_0x586c84,'fax')],_0x54e9f1)?_0x1e6b4b='idle':_0x1e6b4b=_0x541558(0x26a7);}_0x586c84[_0x541558(0x72b)]!==_0x1e6b4b&&(_0x586c84[_0x541558(0x72b)]=_0x1e6b4b,_0x586c84[_0x541558(0x5aa)]?(_0x586c84['init']=![],_0x586c84[_0x541558(0xed1)]=_0x1d3a56(_0x1e6b4b)?_0x3f65c0()[_0x541558(0x123)](_0x2deec6()(_0x586c84['lastPauseAt'])[_0x541558(0x22b0)]('x')):_0x3f65c0()[_0x541558(0x727)]([_0x586c84[_0x541558(0x1dda)],_0x586c84[_0x541558(0x1a22)],_0x586c84[_0x541558(0x10cd)],_0x586c84[_0x541558(0x1f5c)],_0x586c84[_0x541558(0xadd)],_0x586c84[_0x541558(0x6cb)],_0x586c84[_0x541558(0x47a)]])):_0x586c84['globalStatusTime']=_0x3f65c0()[_0x541558(0x123)](_0x2deec6()()['format']('x')));}function _0x3be651(_0x195cfa){const _0x25c23f=_0x12f115,_0x2bcd79=_0x3f65c0()['startsWith'](_0x301382['query'][_0x25c23f(0x206e)],'-')?_0x25c23f(0x2517):_0x25c23f(0x195);return _0x3f65c0()[_0x25c23f(0x979)](_0x195cfa,[_0x301382['query'][_0x25c23f(0x206e)][_0x25c23f(0x5f4)]('-','')],[_0x2bcd79]);}function _0x42d836(){const _0x5c712=_0x12f115;_0x4ea046&&(_0x32c442[_0x5c712(0x6c3)](_0x4ea046),_0x4ea046=null);}function _0x3594d1(_0x59365f,_0xce1449){const _0x3b7352=_0x12f115;return _0x2e0b3f[_0x3b7352(0xe7b)][_0x3b7352(0x18e1)]({'id':_0x59365f['id']},{'screenrecording':_0xce1449})[_0x3b7352(0x2945)][_0x3b7352(0x129e)](function(_0xbd137e){const _0x4fb30e=_0x3b7352;_0x50615f[_0x4fb30e(0x1980)]({'title':_0xbd137e[_0x4fb30e(0x107b)]?_0x4fb30e(0x262a)+_0xbd137e[_0x4fb30e(0x107b)]+'\x20-\x20'+_0xbd137e[_0x4fb30e(0x167f)]:_0x4fb30e(0x254f),'msg':_0xbd137e[_0x4fb30e(0x524)]?JSON[_0x4fb30e(0x10bb)](_0xbd137e[_0x4fb30e(0x524)][_0x4fb30e(0x7fd)]):_0xbd137e['toString']()});});}_0x80482c[_0x12f115(0x16ad)](_0x12f115(0x116f),function(){const _0x161032=_0x12f115;_0x5f5285[_0x161032(0x1c5f)](_0x161032(0x17de)),_0x5f5285['removeAllListeners'](_0x161032(0x324)),_0x5f5285['removeAllListeners'](_0x161032(0x118c)),_0x5f5285[_0x161032(0x1c5f)]('user:agentcomplete'),_0x42d836();});}const _0x3d0320=_0x38fadf;;const _0x4f6864=_0x4acfac['p']+_0x313a4d(0x28d7);;const _0x1183e8=_0x4acfac['p']+'src/js/modules/main/apps/sms/views/smsQueues/edit/agentadd/agentadd.html/agentadd.html';;_0x334ee0[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1abe),'$mdDialog','$q',_0x313a4d(0x4d8),_0x313a4d(0xa0a),_0x313a4d(0x1b32),'rpcQueues','api',_0x313a4d(0x279d),'toasty',_0x313a4d(0x26b6),'userProfileSection',_0x313a4d(0xa87)];function _0x334ee0(_0x55a829,_0x145473,_0xe3c666,_0x485e79,_0x3e1447,_0x4b47b9,_0x36d88c,_0x181c74,_0x3a118,_0x576dcb,_0x49f93f,_0x169c8f,_0x543902,_0x1994d4){const _0x25e0ec=_0x313a4d,_0x445d36=this,_0x2d92d8=[_0x25e0ec(0x2398),_0x25e0ec(0xbdb),_0x25e0ec(0x12a3),_0x25e0ec(0x10ed),_0x25e0ec(0x166f),_0x25e0ec(0x1e38),_0x25e0ec(0x7fd),_0x25e0ec(0x1095),'dialMethod',_0x25e0ec(0x13c4),_0x25e0ec(0x1e3d)];_0x445d36[_0x25e0ec(0x2321)]=_0x1994d4['getCurrentUser'](),_0x445d36[_0x25e0ec(0x51c)]=_0x36d88c[_0x25e0ec(0x51c)]?_0x36d88c[_0x25e0ec(0x51c)]:0x0,_0x445d36[_0x25e0ec(0x1b32)]=_0x36d88c?_0x3f65c0()['keyBy'](_0x36d88c[_0x25e0ec(0x19c7)]?_0x36d88c['rows']:[],'id'):{},_0x445d36[_0x25e0ec(0x21af)]=_0x181c74?_0x3f65c0()[_0x25e0ec(0x194)](_0x181c74['rows']?_0x181c74['rows']:[],'id'):{},_0x445d36[_0x25e0ec(0x26b6)]=_0x169c8f,_0x445d36[_0x25e0ec(0x1366)]=_0x543902&&_0x543902['count']==0x1?_0x543902['rows'][0x0]:null,_0x445d36[_0x25e0ec(0x2514)]=_0x1994d4[_0x25e0ec(0xe60)](_0x445d36['userProfileSection']?_0x445d36[_0x25e0ec(0x1366)]['crudPermissions']:null);_0x1994d4[_0x25e0ec(0x23e0)]('admin')?_0x445d36[_0x25e0ec(0x1a56)]={'type':_0x25e0ec(0x7b0),'sort':'-updatedAt','limit':0xa,'page':0x1}:_0x445d36['query']={'id':_0x445d36[_0x25e0ec(0x2321)]['id'],'channel':'sms','type':_0x25e0ec(0x7b0),'sort':_0x25e0ec(0x12f2),'limit':0xa,'page':0x1};_0x445d36[_0x25e0ec(0x1c75)]=_0x5f2690,_0x445d36['getQueues']=_0x1dbd76,_0x445d36[_0x25e0ec(0x157e)]=_0x407d80,_0x445d36[_0x25e0ec(0x13c)]=_0x5c0ad0,_0x445d36['updateQueue']=_0x393fbb,_0x445d36[_0x25e0ec(0x1db0)]=_0x52f35c,_0x445d36['onSaveMember']=_0x39f12a,_0x445d36[_0x25e0ec(0x2240)]=_0x2f3535,_0x445d36[_0x25e0ec(0x1028)]=_0x28a588,_0x445d36['onLogin']=_0x424fd1,_0x445d36[_0x25e0ec(0x600)]=_0x295f14,_0x445d36[_0x25e0ec(0x20de)]=_0x2976f6,_0x445d36[_0x25e0ec(0x206e)]=[],_0x3f65c0()[_0x25e0ec(0x1a04)](_0x445d36[_0x25e0ec(0x1b32)],function(_0x3d46ee){const _0x4d130c=_0x25e0ec;_0x445d36[_0x4d130c(0x206e)][_0x4d130c(0x1f47)](_0x3d46ee['id']);}),_0x576dcb['on'](_0x25e0ec(0x2066),_0x445d36[_0x25e0ec(0x1db0)]),_0x576dcb['on']('userSmsQueue:save',_0x445d36[_0x25e0ec(0x285f)]),_0x576dcb['on'](_0x25e0ec(0xa5b),_0x445d36[_0x25e0ec(0x2240)]),_0x576dcb['on'](_0x25e0ec(0x324),_0x445d36[_0x25e0ec(0x1028)]),_0x576dcb['on'](_0x25e0ec(0x1d3e),_0x445d36[_0x25e0ec(0x600)]),_0x576dcb['on'](_0x25e0ec(0x109d),_0x445d36[_0x25e0ec(0x1c6c)]);function _0x2976f6(){const _0x4b57cb=_0x25e0ec,_0xad78e=[];return _0x3f65c0()['forIn'](_0x445d36[_0x4b57cb(0x1b32)],function(_0x13c9cf,_0x1e67f0){const _0x55eaba=_0x4b57cb;_0x13c9cf[_0x55eaba(0x1e3d)]=0x0,_0x13c9cf[_0x55eaba(0x1899)]=0x0,_0x445d36[_0x55eaba(0x1b32)][_0x1e67f0][_0x55eaba(0x23c0)]={},_0xad78e[_0x55eaba(0x1f47)](_0x3a118[_0x55eaba(0xf80)][_0x55eaba(0x24c3)]({'id':_0x1e67f0})[_0x55eaba(0x2945)]),_0x445d36[_0x55eaba(0x21af)][_0x1e67f0]&&_0x3f65c0()[_0x55eaba(0x168d)](_0x13c9cf,_0x3f65c0()[_0x55eaba(0x40e)](_0x445d36['rpcQueues'][_0x1e67f0],_0x2d92d8));}),_0x485e79[_0x4b57cb(0x1be2)](_0xad78e)[_0x4b57cb(0x146b)](function(_0x36b314){const _0x52299e=_0x4b57cb;for(let _0x5714d7=0x0;_0x5714d7<_0x36b314['length'];_0x5714d7+=0x1){for(let _0x161a5e=0x0;_0x161a5e<_0x36b314[_0x5714d7][_0x52299e(0x19c7)][_0x52299e(0x402)];_0x161a5e++){_0x36b314[_0x5714d7]['rows'][_0x161a5e][_0x52299e(0x1e3d)]&&_0x445d36[_0x52299e(0x1b32)][_0x36b314[_0x5714d7][_0x52299e(0x19c7)][_0x161a5e]['SmsQueueId']][_0x52299e(0x1e3d)]++,_0x445d36[_0x52299e(0x1b32)][_0x36b314[_0x5714d7][_0x52299e(0x19c7)][_0x161a5e][_0x52299e(0x251d)]][_0x52299e(0x1899)]++,_0x445d36[_0x52299e(0x1b32)][_0x36b314[_0x5714d7][_0x52299e(0x19c7)][_0x161a5e][_0x52299e(0x251d)]]['agents'][_0x36b314[_0x5714d7][_0x52299e(0x19c7)][_0x161a5e][_0x52299e(0xea2)]]=_0x36b314[_0x5714d7][_0x52299e(0x19c7)][_0x161a5e][_0x52299e(0x251d)];}}})['catch'](function(_0x591fc3){const _0x50cc94=_0x4b57cb;console[_0x50cc94(0x1980)](_0x591fc3);});}function _0x52f35c(_0x28cbda){const _0x20b529=_0x25e0ec;_0x445d36['queues'][_0x28cbda['id']]&&_0x3f65c0()[_0x20b529(0x168d)](_0x445d36[_0x20b529(0x1b32)][_0x28cbda['id']],_0x3f65c0()[_0x20b529(0x40e)](_0x28cbda,_0x2d92d8));}function _0x39f12a(_0x46ffd7){const _0x1aeeba=_0x25e0ec;_0x445d36[_0x1aeeba(0x1b32)][_0x46ffd7[_0x1aeeba(0x251d)]]&&_0x445d36[_0x1aeeba(0x1b32)][_0x46ffd7[_0x1aeeba(0x251d)]][_0x1aeeba(0x1899)]++;}function _0x2f3535(_0x321707){const _0x162407=_0x25e0ec;_0x445d36[_0x162407(0x1b32)][_0x321707[_0x162407(0x251d)]]&&_0x445d36[_0x162407(0x1b32)][_0x321707[_0x162407(0x251d)]][_0x162407(0x1899)]--;}function _0x28a588(_0x18993a){const _0x154fb3=_0x25e0ec;console[_0x154fb3(0x1a74)](_0x154fb3(0x1028),_0x18993a);if(_0x18993a[_0x154fb3(0x211c)])_0x3f65c0()['forIn'](_0x445d36['queues'],function(_0x189d60){const _0x203303=_0x154fb3;_0x189d60[_0x203303(0x23c0)][_0x18993a['id']]&&(_0x189d60['paused']+=0x1,console[_0x203303(0x1a74)](_0x203303(0x1e3e)));});else!_0x18993a[_0x154fb3(0x211c)]&&_0x3f65c0()['forIn'](_0x445d36[_0x154fb3(0x1b32)],function(_0x8c9b4c){const _0x49aac5=_0x154fb3;_0x8c9b4c[_0x49aac5(0x23c0)][_0x18993a['id']]&&(_0x8c9b4c['paused']>0x0&&(_0x8c9b4c[_0x49aac5(0x1e3d)]-=0x1,console[_0x49aac5(0x1a74)]('unpause')));});}function _0x424fd1(_0x4e2670){const _0x487ebf=_0x25e0ec;console['log']('onLogged',_0x4e2670),_0x445d36[_0x487ebf(0x1b32)][_0x4e2670[_0x487ebf(0x251d)]]&&(_0x445d36[_0x487ebf(0x1b32)][_0x4e2670[_0x487ebf(0x251d)]][_0x487ebf(0x1899)]+=0x1,_0x445d36['queues'][_0x4e2670['SmsQueueId']][_0x487ebf(0x23c0)][_0x4e2670[_0x487ebf(0xea2)]]=_0x4e2670['SmsQueueId']);}function _0x295f14(_0x2a9eb5){const _0xd001b3=_0x25e0ec;console[_0xd001b3(0x1a74)](_0xd001b3(0x600),_0x2a9eb5),_0x445d36[_0xd001b3(0x1b32)][_0x2a9eb5[_0xd001b3(0x251d)]]&&_0x445d36['queues'][_0x2a9eb5['SmsQueueId']][_0xd001b3(0x1899)]>0x0&&(_0x445d36[_0xd001b3(0x1b32)][_0x2a9eb5[_0xd001b3(0x251d)]][_0xd001b3(0x1899)]-=0x1,delete _0x445d36[_0xd001b3(0x1b32)][_0x2a9eb5[_0xd001b3(0x251d)]][_0xd001b3(0x23c0)][_0x2a9eb5[_0xd001b3(0xea2)]]);}let _0x440270=!![],_0x59fbba=0x1;_0x55a829[_0x25e0ec(0x21e8)]('vm.query.filter',function(_0x23c3ab,_0x2ed160){const _0x5472df=_0x25e0ec;_0x440270?_0x145473(function(){_0x440270=![];}):(!_0x2ed160&&(_0x59fbba=_0x445d36['query'][_0x5472df(0x844)]),_0x23c3ab!==_0x2ed160&&(_0x445d36[_0x5472df(0x1a56)][_0x5472df(0x844)]=0x1),!_0x23c3ab&&(_0x445d36[_0x5472df(0x1a56)][_0x5472df(0x844)]=_0x59fbba),_0x445d36[_0x5472df(0xc53)]());});function _0x5f2690(_0x3ae224){const _0x7d05f3=_0x25e0ec;_0x445d36[_0x7d05f3(0x51c)]=_0x3ae224['count'],_0x445d36[_0x7d05f3(0x1b32)]=_0x3ae224?_0x3f65c0()['keyBy'](_0x3ae224[_0x7d05f3(0x19c7)]?_0x3ae224['rows']:[],'id'):{};if(_0x3ae224[_0x7d05f3(0x19c7)]){_0x445d36[_0x7d05f3(0x206e)]=[];for(let _0x30b5f7=0x0;_0x30b5f7<_0x3ae224[_0x7d05f3(0x19c7)][_0x7d05f3(0x402)];_0x30b5f7++){_0x445d36[_0x7d05f3(0x206e)][_0x7d05f3(0x1f47)](_0x3ae224[_0x7d05f3(0x19c7)][_0x30b5f7]['id']);}}_0x2976f6();}function _0x1dbd76(){const _0x105750=_0x25e0ec;_0x445d36['query'][_0x105750(0x145d)]=(_0x445d36[_0x105750(0x1a56)][_0x105750(0x844)]-0x1)*_0x445d36['query'][_0x105750(0x221e)],_0x1994d4[_0x105750(0x23e0)]('admin')?_0x445d36['promise']=_0x3a118[_0x105750(0xf80)][_0x105750(0x16b4)](_0x445d36[_0x105750(0x1a56)],_0x5f2690)[_0x105750(0x2945)]:(_0x445d36[_0x105750(0x1a56)]['id']=_0x445d36[_0x105750(0x26b6)]['id'],_0x445d36[_0x105750(0x1a56)][_0x105750(0x2146)]='SmsQueues',_0x445d36['promise']=_0x3a118[_0x105750(0x26b6)][_0x105750(0x158f)](_0x445d36['query'],_0x5f2690)[_0x105750(0x2945)]);}function _0x407d80(_0x428634,_0x1c6866){const _0x5b6ba9=_0x25e0ec;_0xe3c666[_0x5b6ba9(0x2615)]({'controller':_0x5b6ba9(0x1c6b),'controllerAs':'vm','templateUrl':_0x4f6864,'parent':angular[_0x5b6ba9(0x1853)](_0x3e1447[_0x5b6ba9(0x2586)]),'targetEvent':_0x428634,'clickOutsideToClose':!![],'locals':{'smsQueue':_0x1c6866,'smsQueues':_0x3f65c0()[_0x5b6ba9(0x81b)](_0x445d36[_0x5b6ba9(0x1b32)]),'license':null,'setting':null,'crudPermissions':_0x445d36[_0x5b6ba9(0x2514)]}});}function _0x5c0ad0(_0x5d3530,_0x1fac0b){const _0x1fb004=_0x25e0ec;_0xe3c666['show']({'controller':_0x1fb004(0x20d4),'controllerAs':'vm','templateUrl':_0x1183e8,'parent':angular[_0x1fb004(0x1853)](_0x3e1447[_0x1fb004(0x2586)]),'targetEvent':_0x5d3530,'clickOutsideToClose':!![],'locals':{'smsQueue':_0x1fac0b,'smsQueues':_0x445d36[_0x1fb004(0x1b32)]?_0x445d36['queues'][_0x1fb004(0x19c7)]:[],'realtime':![],'crudPermissions':_0x445d36[_0x1fb004(0x2514)]}});}function _0x393fbb(_0x2fbff3){const _0x3aebe2=_0x25e0ec;return _0x3a118[_0x3aebe2(0xf80)][_0x3aebe2(0x18e1)](_0x2fbff3)[_0x3aebe2(0x2945)]['then'](function(){const _0x1a8e59=_0x3aebe2;_0x49f93f['success']({'title':'Queue\x20properly\x20updated!','msg':_0x2fbff3[_0x1a8e59(0x19eb)]?_0x2fbff3[_0x1a8e59(0x19eb)]+'\x20has\x20been\x20updated!':''});})[_0x3aebe2(0x129e)](function(_0x2d1b1c){const _0x24d101=_0x3aebe2;_0x49f93f[_0x24d101(0x1980)]({'title':_0x24d101(0x2174),'msg':_0x2d1b1c[_0x24d101(0x7fd)]});});}_0x55a829[_0x25e0ec(0x16ad)](_0x25e0ec(0x116f),function(){const _0x392af1=_0x25e0ec;_0x576dcb[_0x392af1(0x1c5f)](_0x392af1(0x2066)),_0x576dcb[_0x392af1(0x1c5f)](_0x392af1(0xa5b)),_0x576dcb[_0x392af1(0x1c5f)](_0x392af1(0x1ba4)),_0x576dcb[_0x392af1(0x1c5f)](_0x392af1(0x324)),_0x576dcb[_0x392af1(0x1c5f)](_0x392af1(0x1d3e)),_0x576dcb[_0x392af1(0x1c5f)](_0x392af1(0x109d));});}const _0x5e38e8=_0x334ee0;;function _0x4770c5(){const _0x51e85a=_0x313a4d;return{'status':{'registered':_0x51e85a(0xdf4),'unregistered':_0x51e85a(0x4c7),'lagged':_0x51e85a(0x4c7),'reachable':_0x51e85a(0xdf4),'unreachable':'red-300-fg\x20icon-close-circle','unknown':_0x51e85a(0xc4b)},'state':{'unknown':_0x51e85a(0x1fd7),'not_inuse':_0x51e85a(0x1756),'inuse':_0x51e85a(0x255c),'busy':'red-300-fg\x20icon-phone-locked','invalid':_0x51e85a(0x1fd7),'unavailable':'grey-fg\x20icon-phone-hangup','ringing':_0x51e85a(0x1172),'ringinuse':'blue-300-fg\x20icon-phone-incoming','onhold':'blue-300-fg\x20icon-phone-paused'},'channelStatus':{'ring':_0x51e85a(0x1172),'up':'green-300-fg\x20icon-phone-in-talk','hangup':_0x51e85a(0x135d)},'channelStatusOut':{'ring':_0x51e85a(0x1a13),'up':_0x51e85a(0x1668),'hangup':'red-300-fg\x20icon-phone-hangup'}};}const _0x419e8e=_0x4770c5;;_0x4b86df[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1862),_0x313a4d(0x279d)];function _0x4b86df(_0x46b526,_0x2e5141,_0x2baf0c){const _0x1bf3dd=_0x313a4d,_0x480213=this;_0x2baf0c[_0x1bf3dd(0x194a)](),_0x2baf0c[_0x1bf3dd(0x2e3)](),_0x480213['selectedTab']=0x0;switch(_0x2e5141[_0x1bf3dd(0x2d7)]['name']){case'app.sms.realtime.agents':_0x480213['selectedTab']=0x0;break;case _0x1bf3dd(0x1ec8):_0x480213[_0x1bf3dd(0x1b09)]=0x1;break;default:_0x480213[_0x1bf3dd(0x1b09)]=0x0,_0x2e5141['go'](_0x1bf3dd(0x16a6));}_0x46b526[_0x1bf3dd(0x21e8)](_0x1bf3dd(0x241b),function(_0x176c20,_0xee9972){const _0x52a741=_0x1bf3dd;if(_0x176c20!==_0xee9972)switch(_0x176c20){case 0x0:_0x2e5141['go'](_0x52a741(0x16a6));break;case 0x1:_0x2e5141['go'](_0x52a741(0x1ec8));break;default:_0x2e5141['go'](_0x52a741(0x16a6));}});}const _0x58ff66=_0x4b86df;;_0x1080c8['$inject']=[_0x313a4d(0x921)];function _0x1080c8(_0x43515b){const _0x55aaad=_0x313a4d;_0x43515b[_0x55aaad(0x13d6)](_0x55aaad(0xe81),{'url':_0x55aaad(0x178b),'views':{'content@app':{'templateUrl':_0x591e25,'controller':_0x55aaad(0x249d)}},'resolve':{'userProfile':[_0x55aaad(0x362),_0x55aaad(0xa87),function(_0x5ab72d,_0x252400){const _0x363e73=_0x55aaad;return _0x252400[_0x363e73(0x23e0)](_0x363e73(0x174b))?null:_0x5ab72d['resolve'](_0x363e73(0x119a),{'fields':_0x363e73(0x227),'id':_0x252400[_0x363e73(0xb12)]()[_0x363e73(0x209a)]});}],'userProfileSection':['apiResolver','Auth',function(_0x224463,_0x414c2a){const _0x16beaf=_0x55aaad;return _0x414c2a[_0x16beaf(0x23e0)](_0x16beaf(0x174b))?null:_0x224463[_0x16beaf(0x2922)](_0x16beaf(0x27be),{'fields':_0x16beaf(0x1e64),'userProfileId':_0x414c2a[_0x16beaf(0xb12)]()[_0x16beaf(0x209a)],'sectionId':0x2c6});}]},'authenticate':!![],'permissionId':0x2c6})[_0x55aaad(0x13d6)](_0x55aaad(0x16a6),{'url':_0x55aaad(0x1507),'controller':_0x55aaad(0x27cd),'templateUrl':_0x49ed9a,'resolve':{'pauses':[_0x55aaad(0x362),function(_0x434720){const _0x131faf=_0x55aaad;return _0x434720[_0x131faf(0x2922)](_0x131faf(0x3f6),{'nolimit':!![]});}],'agents':['apiResolver',_0x55aaad(0xa87),function(_0x1b0d8d,_0x5840cd){const _0x6a9ece=_0x55aaad;return _0x5840cd['hasRole'](_0x6a9ece(0x174b))?_0x1b0d8d[_0x6a9ece(0x2922)](_0x6a9ece(0x2484),{'fields':_0x6a9ece(0x2869),'role':'agent','sort':_0x6a9ece(0x286a),'nolimit':!![]}):_0x1b0d8d['resolve'](_0x6a9ece(0x938),{'id':_0x5840cd[_0x6a9ece(0xb12)]()['userProfileId'],'section':_0x6a9ece(0xca8),'fields':_0x6a9ece(0x2869),'role':_0x6a9ece(0x1755),'sort':_0x6a9ece(0x286a),'nolimit':!![]});}],'userProfile':[_0x55aaad(0x362),_0x55aaad(0xa87),function(_0x5b5bb0,_0x6c9442){const _0x394055=_0x55aaad;return _0x6c9442[_0x394055(0x23e0)](_0x394055(0x174b))?null:_0x5b5bb0[_0x394055(0x2922)](_0x394055(0x119a),{'fields':'id,name,crudPermissions','id':_0x6c9442[_0x394055(0xb12)]()[_0x394055(0x209a)]});}],'userProfileSection':[_0x55aaad(0x362),_0x55aaad(0xa87),function(_0x19df40,_0xb5c256){const _0x234496=_0x55aaad;return _0xb5c256[_0x234496(0x23e0)](_0x234496(0x174b))?null:_0x19df40['resolve'](_0x234496(0x27be),{'fields':_0x234496(0x1e64),'userProfileId':_0xb5c256[_0x234496(0xb12)]()['userProfileId'],'sectionId':0xca});}],'rpcAgents':[_0x55aaad(0x362),function(_0x1b7b7a){const _0x406743=_0x55aaad;return _0x1b7b7a['resolve'](_0x406743(0x19ab));}]},'authenticate':!![],'permissionId':0x2c6})[_0x55aaad(0x13d6)](_0x55aaad(0x1ec8),{'url':_0x55aaad(0xf15),'controller':_0x55aaad(0x14b4),'templateUrl':_0x3b1ca9,'resolve':{'queues':['apiResolver',_0x55aaad(0xa87),function(_0x55cd56,_0x35e8b5){const _0x238501=_0x55aaad;return _0x35e8b5[_0x238501(0x23e0)]('admin')?_0x55cd56[_0x238501(0x2922)](_0x238501(0x20fc),{'type':_0x238501(0x7b0),'sort':_0x238501(0x12f2),'limit':0xa,'offset':0x0}):_0x55cd56[_0x238501(0x2922)](_0x238501(0x938),{'id':_0x35e8b5[_0x238501(0xb12)]()[_0x238501(0x209a)],'section':_0x238501(0xe3),'channel':_0x238501(0x929),'type':_0x238501(0x7b0),'sort':_0x238501(0x12f2),'limit':0xa,'page':0x1});}],'userProfile':[_0x55aaad(0x362),_0x55aaad(0xa87),function(_0x274585,_0x52109c){const _0x26317c=_0x55aaad;return _0x52109c['hasRole'](_0x26317c(0x174b))?null:_0x274585[_0x26317c(0x2922)](_0x26317c(0x119a),{'fields':_0x26317c(0x227),'id':_0x52109c[_0x26317c(0xb12)]()['userProfileId']});}],'userProfileSection':[_0x55aaad(0x362),_0x55aaad(0xa87),function(_0x58f83f,_0x45c77e){const _0x141a16=_0x55aaad;return _0x45c77e[_0x141a16(0x23e0)](_0x141a16(0x174b))?null:_0x58f83f[_0x141a16(0x2922)](_0x141a16(0x27be),{'fields':_0x141a16(0x1e64),'userProfileId':_0x45c77e[_0x141a16(0xb12)]()[_0x141a16(0x209a)],'sectionId':0x2bd});}],'rpcQueues':[_0x55aaad(0x362),function(_0x5932cd){const _0x1ca3ef=_0x55aaad;return _0x5932cd[_0x1ca3ef(0x2922)](_0x1ca3ef(0x1c1a));}]},'authenticate':!![],'permissionId':0x2c6});}angular['module'](_0x313a4d(0xe81),[])[_0x313a4d(0x989)](_0x1080c8)[_0x313a4d(0x28f0)]('AgentsSmsRealtimeController',_0x3d0320)[_0x313a4d(0x28f0)]('QueuesSmsRealtimeController',_0x5e38e8)[_0x313a4d(0x1750)](_0x313a4d(0x1ac0),_0x419e8e)[_0x313a4d(0x28f0)](_0x313a4d(0xa04),_0x58ff66);;const _0x331b28=_0x4acfac['p']+_0x313a4d(0xdc2);;const _0x2bf063=_0x4acfac['p']+_0x313a4d(0x7ab);;const _0x2c8a8a=_0x4acfac['p']+'src/js/modules/main/apps/sms/views/smsAccounts/smsAccounts.html/smsAccounts.html';;const _0x14173b=_0x4acfac['p']+'src/js/modules/main/apps/sms/views/smsAccounts/edit/view.html/view.html';;_0x31c293[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),'$state',_0x313a4d(0xd08),_0x313a4d(0x10e8),'$q',_0x313a4d(0x214b),_0x313a4d(0x1fe4),_0x313a4d(0x1c34),_0x313a4d(0x2209),_0x313a4d(0x247f),_0x313a4d(0xa87),_0x313a4d(0x2690),_0x313a4d(0x15b9),'crudPermissions'];function _0x31c293(_0x44d80f,_0x455b20,_0x43ad0c,_0x4a3c8d,_0x3c4d1c,_0x205257,_0x483957,_0x4307bd,_0x5b0767,_0x463ea2,_0x1b23a3,_0x823450,_0x141da2,_0x5e04f5){const _0x1e4148=_0x313a4d,_0x4f9dc3=this;_0x4f9dc3['currentUser']=_0x1b23a3[_0x1e4148(0xb12)](),_0x4f9dc3[_0x1e4148(0xcef)]=[],_0x4f9dc3[_0x1e4148(0x15b9)]=_0x141da2,_0x4f9dc3[_0x1e4148(0x2690)]=_0x823450,_0x4f9dc3[_0x1e4148(0x2514)]=_0x5e04f5,_0x4f9dc3[_0x1e4148(0x855)]={},_0x4f9dc3[_0x1e4148(0x2251)]=_0x4f9dc3[_0x1e4148(0x15b9)]&&_0x4f9dc3['setting'][_0x1e4148(0x976)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x4f9dc3[_0x1e4148(0x1189)]=_0x1e4148(0xf7e),_0x4f9dc3[_0x1e4148(0x2209)]=angular['copy'](_0x5b0767),_0x4f9dc3[_0x1e4148(0x1c34)]=_0x4307bd,_0x4f9dc3[_0x1e4148(0x17f1)]=![];!_0x4f9dc3['smsAccount']&&(_0x4f9dc3[_0x1e4148(0x2209)]={'remote':_0x43ad0c[_0x1e4148(0x2414)]()+_0x1e4148(0xb0e)+_0x43ad0c['host']()+(_0x43ad0c['port']()?':'+_0x43ad0c[_0x1e4148(0x1553)]():''),'type':_0x1e4148(0xc08),'waitForTheAssignedAgent':0xa,'notificationSound':!![],'queueTransferTimeout':0x12c,'agentTransferTimeout':0x12c},_0x4f9dc3[_0x1e4148(0x1189)]=_0x1e4148(0x2313),_0x4f9dc3[_0x1e4148(0x17f1)]=!![]);_0x455b20[_0x1e4148(0x16a)]['id']&&(_0x4f9dc3[_0x1e4148(0x2209)][_0x1e4148(0x1481)]=_0x455b20[_0x1e4148(0x16a)]['id']);_0x4f9dc3['addNewSmsAccount']=_0x53205d,_0x4f9dc3[_0x1e4148(0x1ff3)]=_0x4f066f,_0x4f9dc3[_0x1e4148(0x1577)]=_0x49fa81,_0x4f9dc3[_0x1e4148(0xe73)]=_0x5b7e45,_0x4f9dc3[_0x1e4148(0x13f3)]=_0x1d76f1,_0x1b23a3[_0x1e4148(0x23e0)](_0x1e4148(0x174b))?_0x463ea2['cmList'][_0x1e4148(0x16b4)]({'fields':'id,name','sort':'name'})['$promise'][_0x1e4148(0x146b)](function(_0x26524c){const _0x347181=_0x1e4148;_0x4f9dc3['lists']=_0x26524c[_0x347181(0x19c7)]||[];})[_0x1e4148(0x129e)](function(_0x1509ad){const _0x2f5e80=_0x1e4148;_0x483957[_0x2f5e80(0x1980)]({'title':_0x1509ad[_0x2f5e80(0x107b)]?'API:'+_0x1509ad[_0x2f5e80(0x107b)]+_0x2f5e80(0x1315)+_0x1509ad['statusText']:_0x2f5e80(0x11b3),'msg':_0x1509ad[_0x2f5e80(0x524)]?JSON['stringify'](_0x1509ad[_0x2f5e80(0x524)]):_0x1509ad[_0x2f5e80(0xd5f)]()});}):_0x463ea2[_0x1e4148(0xf03)][_0x1e4148(0x16b4)]({'fields':_0x1e4148(0x7a7),'sort':_0x1e4148(0x19eb)})['$promise'][_0x1e4148(0x146b)](function(_0x32c96d){const _0x534eb6=_0x1e4148;_0x4f9dc3['lists']=_0x32c96d[_0x534eb6(0x19c7)]||[];})[_0x1e4148(0x146b)](function(){const _0x55e67a=_0x1e4148;return _0x463ea2[_0x55e67a(0x1366)][_0x55e67a(0x16b4)]({'userProfileId':_0x4f9dc3[_0x55e67a(0x2321)][_0x55e67a(0x209a)],'sectionId':0x12d})[_0x55e67a(0x2945)];})[_0x1e4148(0x146b)](function(_0x16f655){const _0x2d237d=_0x1e4148,_0x44f424=_0x16f655&&_0x16f655[_0x2d237d(0x19c7)]?_0x16f655[_0x2d237d(0x19c7)][0x0]:null;if(!_0x44f424){const _0xbd1953=[];let _0x2c1092=null;_0x4f9dc3[_0x2d237d(0x2209)]&&(_0x2c1092=_0x3f65c0()[_0x2d237d(0xc84)](_0x4f9dc3['lists'],{'id':Number(_0x4f9dc3[_0x2d237d(0x2209)][_0x2d237d(0xb7c)])}));for(let _0x47f3b7=0x0;_0x47f3b7<_0x4f9dc3['lists'][_0x2d237d(0x402)];_0x47f3b7++){_0x2c1092&&_0x4f9dc3[_0x2d237d(0x1324)][_0x47f3b7]['id']===_0x2c1092['id']&&(_0x4f9dc3[_0x2d237d(0x1324)][_0x47f3b7]['canSelect']=![],_0xbd1953[_0x2d237d(0x1f47)](_0x4f9dc3['lists'][_0x47f3b7]));}_0x4f9dc3['lists']=_0xbd1953;}else{if(!_0x44f424[_0x2d237d(0x11d2)])return _0x463ea2['userProfileResource'][_0x2d237d(0x16b4)]({'sectionId':_0x44f424['id']})[_0x2d237d(0x2945)][_0x2d237d(0x146b)](function(_0x44bfd8){const _0x536753=_0x2d237d,_0x1348c6=_0x3f65c0()['map'](_0x44bfd8[_0x536753(0x19c7)],function(_0x548b2e){const _0x48edfb=_0x536753;return _0x3f65c0()[_0x48edfb(0xc84)](_0x4f9dc3[_0x48edfb(0x1324)],{'id':_0x548b2e[_0x48edfb(0x18b8)]});});let _0x1f0e76=null;_0x4f9dc3[_0x536753(0x2209)]&&(_0x1f0e76=_0x3f65c0()[_0x536753(0xc84)](_0x4f9dc3['lists'],{'id':Number(_0x4f9dc3[_0x536753(0x2209)]['ListId'])}));if(_0x1f0e76&&!_0x3f65c0()[_0x536753(0x1360)](_0x1348c6,['id',_0x1f0e76['id']])){const _0x1ad206=_0x3f65c0()[_0x536753(0xc84)](_0x4f9dc3['lists'],{'id':_0x1f0e76['id']});_0x1ad206[_0x536753(0x8ff)]=![],_0x1348c6[_0x536753(0x1f47)](_0x1ad206);}_0x4f9dc3[_0x536753(0x1324)]=_0x1348c6;});}})['catch'](function(_0x42a3c2){const _0x2349a7=_0x1e4148;_0x483957[_0x2349a7(0x1980)]({'title':_0x42a3c2['status']?'API:'+_0x42a3c2[_0x2349a7(0x107b)]+_0x2349a7(0x1315)+_0x42a3c2[_0x2349a7(0x167f)]:_0x2349a7(0x1a2f),'msg':_0x42a3c2[_0x2349a7(0x524)]?JSON[_0x2349a7(0x10bb)](_0x42a3c2[_0x2349a7(0x524)]):_0x42a3c2['toString']()});});function _0x53205d(){const _0x469c9d=_0x1e4148;_0x4f9dc3[_0x469c9d(0xcef)]=[],_0x463ea2[_0x469c9d(0x2209)][_0x469c9d(0x1e3)](_0x4f9dc3[_0x469c9d(0x2209)])[_0x469c9d(0x2945)][_0x469c9d(0x146b)](function(_0x23d56d){const _0x4da362=_0x469c9d;_0x4f9dc3[_0x4da362(0x1c34)]['unshift'](_0x23d56d['toJSON']()),_0x483957[_0x4da362(0x1c75)]({'title':_0x4da362(0x901),'msg':_0x4f9dc3[_0x4da362(0x2209)][_0x4da362(0x19eb)]?_0x4f9dc3[_0x4da362(0x2209)][_0x4da362(0x19eb)]+'\x20has\x20been\x20created!':''}),_0x1d76f1(_0x23d56d);})['catch'](function(_0x3ea14c){const _0x18b7cf=_0x469c9d;if(_0x3ea14c[_0x18b7cf(0x524)]&&_0x3ea14c[_0x18b7cf(0x524)][_0x18b7cf(0xcef)]&&_0x3ea14c[_0x18b7cf(0x524)][_0x18b7cf(0xcef)][_0x18b7cf(0x402)]){_0x4f9dc3['errors']=_0x3ea14c['data'][_0x18b7cf(0xcef)]||[{'message':_0x3ea14c[_0x18b7cf(0xd5f)](),'type':'api.smsAccount.save'}];for(let _0x1ce044=0x0;_0x1ce044<_0x3ea14c[_0x18b7cf(0x524)][_0x18b7cf(0xcef)][_0x18b7cf(0x402)];_0x1ce044+=0x1){_0x483957[_0x18b7cf(0x1980)]({'title':_0x3ea14c['data']['errors'][_0x1ce044][_0x18b7cf(0x1142)],'msg':_0x3ea14c[_0x18b7cf(0x524)][_0x18b7cf(0xcef)][_0x1ce044][_0x18b7cf(0x7fd)]});}}else _0x483957['error']({'title':_0x3ea14c[_0x18b7cf(0x107b)]?_0x18b7cf(0x262a)+_0x3ea14c['status']+'\x20-\x20'+_0x3ea14c[_0x18b7cf(0x167f)]:'api.smsAccount.save','msg':_0x3ea14c['data']?JSON[_0x18b7cf(0x10bb)](_0x3ea14c[_0x18b7cf(0x524)][_0x18b7cf(0x7fd)]):_0x3ea14c[_0x18b7cf(0xd5f)]()});});}function _0x4f066f(){const _0x8e892f=_0x1e4148;_0x4f9dc3[_0x8e892f(0xcef)]=[],_0x463ea2['smsAccount'][_0x8e892f(0x18e1)]({'id':_0x4f9dc3[_0x8e892f(0x2209)]['id']},_0x4f9dc3[_0x8e892f(0x2209)])[_0x8e892f(0x2945)][_0x8e892f(0x146b)](function(_0x29d071){const _0x4413a4=_0x8e892f,_0x1dbd73=_0x3f65c0()[_0x4413a4(0xc84)](_0x4f9dc3[_0x4413a4(0x1c34)],{'id':_0x29d071['id']});_0x1dbd73&&_0x3f65c0()[_0x4413a4(0x168d)](_0x1dbd73,_0x3f65c0()[_0x4413a4(0x40e)](_0x29d071[_0x4413a4(0x2488)](),_0x3f65c0()[_0x4413a4(0x627)](_0x1dbd73))),_0x483957[_0x4413a4(0x1c75)]({'title':_0x4413a4(0x13ab),'msg':_0x4f9dc3[_0x4413a4(0x2209)][_0x4413a4(0x19eb)]?_0x4f9dc3[_0x4413a4(0x2209)][_0x4413a4(0x19eb)]+_0x4413a4(0x24db):''}),_0x1d76f1(_0x29d071);})['catch'](function(_0x3d07e5){const _0xa6fa49=_0x8e892f;if(_0x3d07e5[_0xa6fa49(0x524)]&&_0x3d07e5[_0xa6fa49(0x524)][_0xa6fa49(0xcef)]&&_0x3d07e5[_0xa6fa49(0x524)][_0xa6fa49(0xcef)]['length']){_0x4f9dc3[_0xa6fa49(0xcef)]=_0x3d07e5[_0xa6fa49(0x524)][_0xa6fa49(0xcef)]||[{'message':_0x3d07e5[_0xa6fa49(0xd5f)](),'type':_0xa6fa49(0x152d)}];for(let _0x2848b6=0x0;_0x2848b6<_0x3d07e5[_0xa6fa49(0x524)][_0xa6fa49(0xcef)]['length'];_0x2848b6++){_0x483957[_0xa6fa49(0x1980)]({'title':_0x3d07e5['data'][_0xa6fa49(0xcef)][_0x2848b6]['type'],'msg':_0x3d07e5[_0xa6fa49(0x524)][_0xa6fa49(0xcef)][_0x2848b6][_0xa6fa49(0x7fd)]});}}else _0x483957[_0xa6fa49(0x1980)]({'title':_0x3d07e5[_0xa6fa49(0x107b)]?_0xa6fa49(0x262a)+_0x3d07e5[_0xa6fa49(0x107b)]+'\x20-\x20'+_0x3d07e5[_0xa6fa49(0x167f)]:'api.smsAccount.update','msg':_0x3d07e5[_0xa6fa49(0x524)]?JSON[_0xa6fa49(0x10bb)](_0x3d07e5[_0xa6fa49(0x524)][_0xa6fa49(0x7fd)]):_0x3d07e5[_0xa6fa49(0xd5f)]()});});}function _0x49fa81(_0x586405){const _0x2cb766=_0x1e4148;_0x4f9dc3[_0x2cb766(0xcef)]=[];const _0x1d026f=_0x4a3c8d[_0x2cb766(0x1e8a)]()[_0x2cb766(0x1189)](_0x2cb766(0x1d64))['content'](_0x2cb766(0x13d))['ariaLabel'](_0x2cb766(0x124c))['ok'](_0x2cb766(0x25de))[_0x2cb766(0x6c3)]('Cancel')[_0x2cb766(0x1f27)](_0x586405);_0x4a3c8d[_0x2cb766(0x2615)](_0x1d026f)[_0x2cb766(0x146b)](function(){const _0x264bc7=_0x2cb766;_0x463ea2['smsAccount'][_0x264bc7(0x1fac)]({'id':_0x4f9dc3[_0x264bc7(0x2209)]['id']})['$promise'][_0x264bc7(0x146b)](function(){const _0x1bde22=_0x264bc7;_0x3f65c0()[_0x1bde22(0x2640)](_0x4f9dc3[_0x1bde22(0x1c34)],{'id':_0x4f9dc3[_0x1bde22(0x2209)]['id']}),_0x483957[_0x1bde22(0x1c75)]({'title':_0x1bde22(0x1cd0),'msg':(_0x4f9dc3[_0x1bde22(0x2209)][_0x1bde22(0x19eb)]||_0x1bde22(0x2209))+_0x1bde22(0x23e3)}),_0x1d76f1(_0x4f9dc3['smsAccount']);})[_0x264bc7(0x129e)](function(_0x170f30){const _0x5a4494=_0x264bc7;if(_0x170f30[_0x5a4494(0x524)]&&_0x170f30[_0x5a4494(0x524)][_0x5a4494(0xcef)]&&_0x170f30[_0x5a4494(0x524)][_0x5a4494(0xcef)][_0x5a4494(0x402)]){_0x4f9dc3['errors']=_0x170f30[_0x5a4494(0x524)][_0x5a4494(0xcef)]||[{'message':_0x170f30['toString'](),'type':_0x5a4494(0x14c)}];for(let _0x12ad22=0x0;_0x12ad22<_0x170f30['data'][_0x5a4494(0xcef)][_0x5a4494(0x402)];_0x12ad22++){_0x483957[_0x5a4494(0x1980)]({'title':_0x170f30[_0x5a4494(0x524)][_0x5a4494(0xcef)][_0x12ad22][_0x5a4494(0x1142)],'msg':_0x170f30[_0x5a4494(0x524)][_0x5a4494(0xcef)][_0x12ad22][_0x5a4494(0x7fd)]});}}else _0x483957['error']({'title':_0x170f30[_0x5a4494(0x107b)]?_0x5a4494(0x262a)+_0x170f30[_0x5a4494(0x107b)]+_0x5a4494(0x1315)+_0x170f30[_0x5a4494(0x167f)]:'api.smsAccount.delete','msg':_0x170f30[_0x5a4494(0x524)]?JSON[_0x5a4494(0x10bb)](_0x170f30[_0x5a4494(0x524)][_0x5a4494(0x7fd)]):_0x170f30[_0x5a4494(0x7fd)]||_0x170f30[_0x5a4494(0xd5f)]()});});},function(){});}function _0x5b7e45(_0x143433){return _0x143433===null?undefined:new Date(_0x143433);}function _0x1d76f1(_0x411d38){const _0x1beba1=_0x1e4148;_0x4a3c8d[_0x1beba1(0x2458)](_0x411d38);}}const _0x2c9d0b=_0x31c293;;const _0x2474c7=_0x4acfac['p']+'src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/agent/dialog.html/dialog.html';;const _0x5c0026=_0x4acfac['p']+_0x313a4d(0x2678);;const _0x18f2f8=_0x4acfac['p']+'src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/autoreply/dialog.html/dialog.html';;const _0x58f5a4=_0x4acfac['p']+_0x313a4d(0xcfb);;const _0x2bcf59=_0x4acfac['p']+_0x313a4d(0x1a16);;const _0x1c9a30=_0x4acfac['p']+_0x313a4d(0x202b);;const _0x580ba4=_0x4acfac['p']+'src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/gotop/dialog.html/dialog.html';;const _0x15fe03=_0x4acfac['p']+'src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/interval/dialog.html/dialog.html';;const _0x580a08=_0x4acfac['p']+'src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/noop/dialog.html/dialog.html';;const _0x20c2d2=_0x4acfac['p']+'src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/queue/dialog.html/dialog.html';;const _0x571dd9=_0x4acfac['p']+_0x313a4d(0x895);;const _0x42c7a6=_0x4acfac['p']+_0x313a4d(0x1715);;_0x4f5a5e[_0x313a4d(0x11c2)]=[_0x313a4d(0x247f),'$mdDialog',_0x313a4d(0x4d8),'toasty',_0x313a4d(0xa87)];const _0x563bcd={'agent':_0x2474c7,'amazonlex':_0x5c0026,'autoreply':_0x18f2f8,'close':_0x58f5a4,'dialogflow':_0x2bcf59,'gotoif':_0x1c9a30,'gotop':_0x580ba4,'interval':_0x15fe03,'noop':_0x580a08,'queue':_0x20c2d2,'system':_0x571dd9,'tag':_0x42c7a6};function _0x4f5a5e(_0x5f1463,_0x4e2c0f,_0x326e75,_0x48b507,_0x822b27){const _0x2e18bd=_0x313a4d,_0x479de7=this;_0x479de7[_0x2e18bd(0x2321)]=_0x822b27['getCurrentUser'](),_0x479de7['smsAccount']={},_0x479de7[_0x2e18bd(0x102f)]={'count':0x0,'rows':[]},_0x479de7[_0x2e18bd(0xb3a)]=[],_0x479de7[_0x2e18bd(0x2514)],_0x479de7[_0x2e18bd(0x1a56)]={'sort':_0x2e18bd(0xa6a)},_0x479de7[_0x2e18bd(0x8b0)]=_0x3f65c0()[_0x2e18bd(0xa6f)](_0x3f65c0()[_0x2e18bd(0x939)]([{'app':_0x2e18bd(0x1b4e),'appType':_0x2e18bd(0x2765),'types':[_0x2e18bd(0xd85),_0x2e18bd(0x1802),'list'],'fields':[],'isApp':![]},{'app':_0x2e18bd(0x309),'appType':_0x2e18bd(0x309),'type':'noop','icon':_0x2e18bd(0x1205),'interval':'*,*,*,*','required':!![],'isApp':!![],'fields':[{'title':_0x2e18bd(0x2193),'name':_0x2e18bd(0x175d),'type':'text','param':0x0}]},{'app':_0x2e18bd(0x1d47),'appType':_0x2e18bd(0x1d47),'type':_0x2e18bd(0x1d47),'icon':_0x2e18bd(0x1205),'interval':_0x2e18bd(0x1559),'required':!![],'isApp':!![],'extraApi':[{'name':'variables','field':{'name':_0x2e18bd(0x212),'key':_0x2e18bd(0x19eb)},'route':_0x2e18bd(0x212),'filters':{'fields':'id,name','sort':_0x2e18bd(0x19eb),'nolimit':!![]},'permissions':{'section':0x3f4}}],'fields':[{'title':_0x2e18bd(0x1d8b),'name':_0x2e18bd(0x23e9),'type':_0x2e18bd(0xa8d),'required':!![],'param':0x0},{'title':'Variable','name':_0x2e18bd(0x212),'type':_0x2e18bd(0x28c6),'values':'variables','value':_0x2e18bd(0x1566),'option':_0x2e18bd(0x1566),'defaultValues':[{'value':'\x27\x27','option':_0x2e18bd(0x13dd)}],'defaultValue':'\x27\x27','param':0x1}]},{'app':_0x2e18bd(0x28f4),'appType':_0x2e18bd(0x28f4),'type':'goto','icon':_0x2e18bd(0x1205),'interval':_0x2e18bd(0x1559),'isApp':!![],'fields':[{'title':_0x2e18bd(0x23d8),'name':_0x2e18bd(0xa6a),'type':_0x2e18bd(0x181),'required':!![],'min':0x0,'param':0x0}]},{'app':_0x2e18bd(0x609),'appType':_0x2e18bd(0x609),'type':_0x2e18bd(0x609),'icon':'icon-apps','interval':_0x2e18bd(0x1559),'isApp':!![],'fields':[{'title':_0x2e18bd(0x15db),'name':'condition','type':_0x2e18bd(0xa8d),'required':!![],'param':0x0},{'title':_0x2e18bd(0x1d78),'name':_0x2e18bd(0x1d78),'type':_0x2e18bd(0x181),'min':0x1,'required':!![],'param':0x1},{'title':_0x2e18bd(0x28e1),'name':_0x2e18bd(0x28e1),'type':_0x2e18bd(0x181),'min':0x1,'required':!![],'param':0x2}]},{'app':_0x2e18bd(0x1c72),'appType':'queue','foreignKey':_0x2e18bd(0x251d),'type':_0x2e18bd(0x1c72),'icon':_0x2e18bd(0x1205),'interval':_0x2e18bd(0x1559),'isApp':!![],'extraApi':[{'name':'queues','field':{'name':_0x2e18bd(0x1c72),'key':_0x2e18bd(0x19eb)},'route':_0x2e18bd(0xf80),'filters':{'fields':_0x2e18bd(0x45e),'sort':'name','nolimit':!![]},'permissions':{'section':0x2bd}}],'fields':[{'title':'Queue','name':'queue','type':_0x2e18bd(0x28c6),'values':'queues','value':_0x2e18bd(0x15b0),'option':_0x2e18bd(0x15b0),'defaultValue':0x12c,'required':!![],'param':0x0},{'title':_0x2e18bd(0x5cc),'name':_0x2e18bd(0xa9c),'type':'number','max':0x20c49b,'min':0x0,'required':!![],'defaultValue':0x12c,'param':0x1}]},{'app':'agent','appType':_0x2e18bd(0x1755),'type':_0x2e18bd(0x1755),'foreignKey':_0x2e18bd(0xea2),'icon':_0x2e18bd(0x1205),'interval':_0x2e18bd(0x1559),'isApp':!![],'extraApi':[{'name':'agents','field':{'name':_0x2e18bd(0x1755),'key':_0x2e18bd(0x19eb)},'route':_0x2e18bd(0xe7b),'filters':{'fields':'id,name','sort':_0x2e18bd(0x19eb),'nolimit':!![],'role':_0x2e18bd(0x1755)},'permissions':{'section':0xca}}],'fields':[{'title':_0x2e18bd(0x294a),'name':_0x2e18bd(0x1755),'type':_0x2e18bd(0x28c6),'values':_0x2e18bd(0x23c0),'value':_0x2e18bd(0x264f),'option':'agent.name','required':!![],'param':0x0},{'title':_0x2e18bd(0x5cc),'name':'timeout','type':_0x2e18bd(0x181),'max':0x20c49b,'min':0x0,'required':!![],'defaultValue':0x1e,'param':0x1}]},{'app':'autoreply','appType':_0x2e18bd(0x1713),'type':_0x2e18bd(0x1713),'icon':_0x2e18bd(0x1205),'interval':_0x2e18bd(0x1559),'isApp':!![],'fields':[{'title':_0x2e18bd(0x583),'name':_0x2e18bd(0x583),'type':_0x2e18bd(0xa5f),'defaultValue':'1','values':[{'option':'One\x20Time','value':'1'},{'option':_0x2e18bd(0x132f),'value':'0'}],'required':!![],'param':0x0},{'title':_0x2e18bd(0x23d7),'name':_0x2e18bd(0xa8d),'type':_0x2e18bd(0x2350),'required':!![],'param':0x1}]},{'app':_0x2e18bd(0xa7c),'appType':_0x2e18bd(0xa7c),'type':_0x2e18bd(0xa7c),'icon':'icon-apps','interval':'*,*,*,*','isApp':!![],'fields':[{'title':_0x2e18bd(0x673),'name':_0x2e18bd(0x9e1),'type':_0x2e18bd(0xa8d),'required':!![],'param':0x0}]},{'app':_0x2e18bd(0xa80),'appType':_0x2e18bd(0xa80),'type':_0x2e18bd(0xa80),'foreignKey':_0x2e18bd(0xb0a),'icon':_0x2e18bd(0x1205),'interval':_0x2e18bd(0x1559),'isApp':!![],'extraApi':[{'name':_0x2e18bd(0x1b86),'field':{'name':_0x2e18bd(0xa80),'key':'name'},'route':'tag','filters':{'fields':_0x2e18bd(0x7a7),'sort':_0x2e18bd(0x19eb),'nolimit':!![]},'permissions':{'section':0x3f0}}],'fields':[{'title':'Tag','name':'tag','type':_0x2e18bd(0x28c6),'values':_0x2e18bd(0x1b86),'value':_0x2e18bd(0x1a96),'option':_0x2e18bd(0x1a96),'required':!![],'param':0x0}]},{'app':_0x2e18bd(0xeaa),'appType':_0x2e18bd(0xeaa),'type':_0x2e18bd(0xeaa),'icon':_0x2e18bd(0x1205),'interval':_0x2e18bd(0x1559),'isApp':!![],'fields':[{'title':'Key','name':'key','type':_0x2e18bd(0xa8d),'required':!![],'param':0x0},{'title':_0x2e18bd(0x90b),'name':_0x2e18bd(0x90b),'type':'select','defaultValue':'\x27en\x27','values':[{'option':_0x2e18bd(0x3d5),'value':_0x2e18bd(0x17c9)},{'option':_0x2e18bd(0x1ce8),'value':_0x2e18bd(0x2383)},{'option':_0x2e18bd(0x592),'value':_0x2e18bd(0x1491)},{'option':_0x2e18bd(0x98f),'value':_0x2e18bd(0x9f9)},{'option':_0x2e18bd(0xae7),'value':_0x2e18bd(0x2374)},{'option':_0x2e18bd(0x12ea),'value':_0x2e18bd(0xbe9)},{'option':_0x2e18bd(0x12f),'value':_0x2e18bd(0x27ee)},{'option':_0x2e18bd(0xf90),'value':'\x27ja\x27'},{'option':_0x2e18bd(0x11cd),'value':_0x2e18bd(0x1df9)},{'option':_0x2e18bd(0x1d32),'value':_0x2e18bd(0x7ae)},{'option':_0x2e18bd(0xcb4),'value':_0x2e18bd(0x74f)},{'option':_0x2e18bd(0x119b),'value':_0x2e18bd(0x2550)},{'option':_0x2e18bd(0x1e34),'value':_0x2e18bd(0x1505)},{'option':'Russian','value':'\x27ru\x27'},{'option':'Swedish','value':_0x2e18bd(0x1717)},{'option':_0x2e18bd(0x1449),'value':_0x2e18bd(0x136c)},{'option':_0x2e18bd(0x13bf),'value':_0x2e18bd(0x289e)},{'option':'Chinese\x20(Simplified)','value':_0x2e18bd(0x16cc)},{'option':_0x2e18bd(0x1f35),'value':_0x2e18bd(0x1a86)},{'option':'Chinese\x20(Traditional)','value':_0x2e18bd(0x1ca7)}],'required':!![],'param':0x1},{'title':'welcomemessage','name':_0x2e18bd(0xaf3),'type':'textarea','maxlength':0xff,'required':![],'param':0x2,'help':!![]}]},{'app':_0x2e18bd(0x9bb),'appType':_0x2e18bd(0xa46),'type':_0x2e18bd(0xa46),'icon':_0x2e18bd(0x1205),'interval':'*,*,*,*','isApp':!![],'fields':[{'title':_0x2e18bd(0x1bdb),'name':_0x2e18bd(0x153a),'type':_0x2e18bd(0xa8d),'required':!![],'param':0x0},{'title':_0x2e18bd(0x4ff),'name':_0x2e18bd(0x1392),'type':'text','required':!![],'param':0x1},{'title':_0x2e18bd(0x1590),'name':_0x2e18bd(0x2217),'type':'textarea','required':!![],'param':0x2},{'title':'language','name':_0x2e18bd(0x90b),'type':_0x2e18bd(0xa5f),'defaultValue':'\x27en\x27','values':[{'value':_0x2e18bd(0x1a86),'option':'Chinese\x20(Cantonese)'},{'value':_0x2e18bd(0x16cc),'option':_0x2e18bd(0x8d3)},{'value':_0x2e18bd(0x1ca7),'option':_0x2e18bd(0x1cde)},{'value':_0x2e18bd(0x17c9),'option':_0x2e18bd(0x3d5)},{'value':_0x2e18bd(0x7ae),'option':_0x2e18bd(0x1d32)},{'value':'\x27en\x27','option':_0x2e18bd(0x1ce8)},{'value':_0x2e18bd(0x17ee),'option':_0x2e18bd(0x24ea)},{'value':'\x27en-CA\x27','option':'English\x20(Canada)'},{'value':_0x2e18bd(0x21ce),'option':_0x2e18bd(0x3c9)},{'value':'\x27en-IN\x27','option':_0x2e18bd(0x688)},{'value':_0x2e18bd(0x1d0f),'option':_0x2e18bd(0x4e8)},{'value':_0x2e18bd(0xbe9),'option':_0x2e18bd(0x12ea)},{'value':_0x2e18bd(0x135b),'option':_0x2e18bd(0x3e1)},{'value':_0x2e18bd(0x1906),'option':_0x2e18bd(0x1c51)},{'value':'\x27de\x27','option':_0x2e18bd(0x592)},{'value':'\x27hi\x27','option':_0x2e18bd(0x28c1)},{'value':_0x2e18bd(0x27ee),'option':_0x2e18bd(0x12f)},{'value':'\x27it\x27','option':'Italian'},{'value':_0x2e18bd(0x27d7),'option':'Japanese'},{'value':_0x2e18bd(0x1df9),'option':_0x2e18bd(0x1dc)},{'value':_0x2e18bd(0x74f),'option':_0x2e18bd(0xcb4)},{'value':_0x2e18bd(0x3f1),'option':_0x2e18bd(0xe06)},{'value':_0x2e18bd(0x211e),'option':_0x2e18bd(0x1aaf)},{'value':_0x2e18bd(0xe6d),'option':_0x2e18bd(0x1d1)},{'value':_0x2e18bd(0x18d0),'option':_0x2e18bd(0x25d4)},{'value':_0x2e18bd(0x2374),'option':'Spanish'},{'value':'\x27es-419\x27','option':_0x2e18bd(0x12c9)},{'value':_0x2e18bd(0x1370),'option':_0x2e18bd(0x13ad)},{'value':_0x2e18bd(0x752),'option':'Swedish'},{'value':_0x2e18bd(0x136c),'option':_0x2e18bd(0x1449)},{'value':'\x27tr\x27','option':_0x2e18bd(0x15a8)},{'value':_0x2e18bd(0x289e),'option':_0x2e18bd(0x13bf)}],'required':!![],'param':0x3},{'title':_0x2e18bd(0xaf3),'name':_0x2e18bd(0xaf3),'type':_0x2e18bd(0x2350),'maxlength':0xff,'param':0x4,'help':!![]}]},{'app':_0x2e18bd(0x17d6),'appType':_0x2e18bd(0x17d6),'type':'amazonlex','icon':_0x2e18bd(0x1205),'interval':'*,*,*,*','isApp':!![],'fields':[{'title':_0x2e18bd(0x1651),'name':_0x2e18bd(0x1651),'type':_0x2e18bd(0xa8d),'required':!![],'param':0x0},{'title':_0x2e18bd(0x252),'name':'secretaccesskey','type':'text','required':!![],'param':0x1},{'title':_0x2e18bd(0x1039),'name':'lexregion','type':'select','defaultValue':_0x2e18bd(0x2947),'values':[{'option':'US\x20East\x20(N.\x20Virginia)','value':_0x2e18bd(0x2947)},{'option':'US\x20West\x20(Oregon)','value':_0x2e18bd(0x22fd)},{'option':_0x2e18bd(0x6a8),'value':_0x2e18bd(0x2940)},{'option':'Asia\x20Pacific\x20(Sydney)','value':_0x2e18bd(0x304)}],'required':!![],'param':0x2},{'title':'botname','name':_0x2e18bd(0x8dd),'type':_0x2e18bd(0xa8d),'required':!![],'param':0x3},{'title':_0x2e18bd(0xaf3),'name':'welcomemessage','type':_0x2e18bd(0x2350),'maxlength':0xff,'required':![],'param':0x4,'help':!![]}]}],[_0x2e18bd(0x1873)]),{'isApp':![]}),_0x479de7['list']={'group':{'name':_0x2e18bd(0x156c),'pull':_0x2e18bd(0x12cc)},'animation':0x64,'sort':![]},_0x479de7[_0x2e18bd(0x25fc)]={'group':{'name':_0x2e18bd(0x916),'put':_0x2e18bd(0x156c)},'animation':0x64,'onAdd':function(_0x29fb32){_0x15040f(_0x29fb32,_0x29fb32['newIndex']);},'onSort':function(){_0x19d9dc();}},_0x479de7['init']=_0x533874,_0x479de7[_0x2e18bd(0x19b4)]=_0x3594e6,_0x479de7[_0x2e18bd(0x477)]=_0xaea1c,_0x479de7[_0x2e18bd(0x12e6)]=_0x15040f,_0x479de7['editInterval']=_0x2843c6,_0x479de7[_0x2e18bd(0x560)]=_0xa4fbe3,_0x479de7[_0x2e18bd(0xf5b)]=_0x127146,_0x479de7[_0x2e18bd(0x1450)]=_0x19d9dc,_0x479de7[_0x2e18bd(0x1c1c)]=_0xdcdd43;function _0x533874(_0x384cc3,_0x134f20){const _0x183cac=_0x2e18bd;_0x479de7[_0x183cac(0x2209)]=_0x384cc3,_0x479de7[_0x183cac(0x2514)]=typeof _0x134f20!==_0x183cac(0x2274)?_0x134f20:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x479de7[_0x183cac(0x25fc)]['disabled']=!_0x479de7[_0x183cac(0x2514)]['canEdit']?!![]:![],_0x479de7[_0x183cac(0x1a56)]['id']=_0x384cc3['id'],_0x479de7[_0x183cac(0x1a56)][_0x183cac(0x16f6)]=!![],_0x479de7[_0x183cac(0x1a56)][_0x183cac(0x6c5)]=!![],_0x479de7[_0x183cac(0x477)](),_0x479de7['getIntervals']();}function _0x3594e6(_0x5524dd,_0x1c7574,_0x40ae6e){const _0x5a0b79=_0x2e18bd,_0x2b81c6=_0x4e2c0f[_0x5a0b79(0x1e8a)]()[_0x5a0b79(0x1189)](_0x5a0b79(0x1058))['htmlContent'](_0x5a0b79(0x16d3)+_0x5524dd[_0x5a0b79(0x1873)]+_0x5a0b79(0x252f)+_0x5a0b79(0xe01))[_0x5a0b79(0x4bd)](_0x5a0b79(0x847))[_0x5a0b79(0x1f27)](_0x40ae6e)['ok']('OK')[_0x5a0b79(0x6c3)]('CANCEL');_0x4e2c0f[_0x5a0b79(0x2615)](_0x2b81c6)[_0x5a0b79(0x146b)](function(){const _0x17ef09=_0x5a0b79;_0x479de7[_0x17ef09(0x102f)]['rows'][_0x17ef09(0x1f7d)](_0x1c7574,0x1),_0x19d9dc();},function(){const _0x2cd7af=_0x5a0b79;console[_0x2cd7af(0x1a74)]('CANCEL');});}function _0x15040f(_0x36ddd2,_0x383e9c){const _0x396ce2=_0x2e18bd;if(_0x479de7['smsAccountApps'][_0x396ce2(0x19c7)][_0x396ce2(0x402)]){const _0x5d1133=_0x479de7[_0x396ce2(0x102f)]['rows'][_0x383e9c]?_0x479de7[_0x396ce2(0x102f)][_0x396ce2(0x19c7)][_0x383e9c]:_0x479de7[_0x396ce2(0x102f)][_0x396ce2(0x19c7)][0x0],_0x54bd79=(_0x5d1133[_0x396ce2(0x8f2)]||_0x5d1133['app'])[_0x396ce2(0x256e)]();_0x4e2c0f[_0x396ce2(0x2615)]({'controller':_0x396ce2(0xe18)+_0x54bd79+'DialogController','controllerAs':'vm','templateUrl':_0x563bcd[_0x54bd79],'parent':angular[_0x396ce2(0x1853)](_0x326e75['body']),'targetEvent':_0x36ddd2,'clickOutsideToClose':!![],'locals':{'smsAccountApp':_0x5d1133,'smsAccount':_0x479de7[_0x396ce2(0x2209)],'crudPermissions':_0x479de7[_0x396ce2(0x2514)]}})[_0x396ce2(0x146b)](function(_0x479b06){const _0x11cbee=_0x396ce2;_0x479b06&&(_0x479b06['id']?_0x479de7[_0x11cbee(0x102f)]['rows'][_0x383e9c]=_0x479b06:_0x479de7[_0x11cbee(0x102f)]['rows']['splice'](_0x383e9c,0x0,_0x479b06),_0x19d9dc());})['catch'](function(_0x3ee11a){const _0x170990=_0x396ce2;_0x3ee11a&&_0x48b507[_0x170990(0x1980)]({'title':_0x3ee11a[_0x170990(0x107b)]?'API:'+_0x3ee11a[_0x170990(0x107b)]+'\x20-\x20'+_0x3ee11a[_0x170990(0x167f)]:_0x170990(0x10a0),'msg':_0x3ee11a[_0x170990(0x524)]?JSON[_0x170990(0x10bb)](_0x3ee11a[_0x170990(0x524)]):_0x3ee11a[_0x170990(0xd5f)]()});});}}function _0x2843c6(_0x2f2e30,_0x1a1f01){const _0x43c675=_0x2e18bd;if(_0x479de7[_0x43c675(0x102f)][_0x43c675(0x19c7)][_0x43c675(0x402)]){const _0x1b3690=_0x479de7['smsAccountApps'][_0x43c675(0x19c7)][_0x1a1f01]?_0x479de7['smsAccountApps'][_0x43c675(0x19c7)][_0x1a1f01]:_0x479de7[_0x43c675(0x102f)][_0x43c675(0x19c7)][0x0];_0x4e2c0f['show']({'controller':_0x43c675(0x1b2b),'controllerAs':'vm','templateUrl':_0x15fe03,'parent':angular['element'](_0x326e75['body']),'targetEvent':_0x2f2e30,'clickOutsideToClose':!![],'locals':{'interval':{'interval':_0x1b3690[_0x43c675(0x2765)],'IntervalId':_0x1b3690['IntervalId'],'application':!![]},'intervals':[],'crudPermissions':_0x479de7[_0x43c675(0x2514)]}})[_0x43c675(0x146b)](function(_0x2040da){const _0xec84f0=_0x43c675;_0x2040da&&(_0x1b3690[_0xec84f0(0x2765)]=_0x2040da['interval']||_0xec84f0(0x1559),_0x1b3690['IntervalId']=_0x2040da['IntervalId']||null,_0x19d9dc());});}}function _0x19d9dc(){const _0xcd4f93=_0x2e18bd;let _0x3e7fb9=0x1,_0x375968=[];for(let _0x2b4026=0x0;_0x2b4026<_0x479de7[_0xcd4f93(0x102f)][_0xcd4f93(0x19c7)]['length'];_0x2b4026++){const _0x4fa677=_0x479de7[_0xcd4f93(0x102f)]['rows'][_0x2b4026],_0x165034=[],_0xeaa716=[];_0x4fa677[_0xcd4f93(0x278f)]=_0x4fa677[_0xcd4f93(0x2765)]!=='*,*,*,*'?[_0x4fa677[_0xcd4f93(0x2765)]]:_0x4fa677[_0xcd4f93(0x1ff2)]?_0x3f65c0()[_0xcd4f93(0x205)](_0x3f65c0()[_0xcd4f93(0x1dd6)](_0x479de7[_0xcd4f93(0x278f)][_0xcd4f93(0x19c7)],{'IntervalId':_0x4fa677['IntervalId']}),_0xcd4f93(0x2765)):[],_0x4fa677[_0xcd4f93(0x1ac1)]=_0x479de7['smsAccount'][_0xcd4f93(0x1ac1)],_0x4fa677['exten']=_0x479de7[_0xcd4f93(0x2209)][_0xcd4f93(0x19b2)],_0x4fa677[_0xcd4f93(0x1142)]&&(_0x4fa677[_0xcd4f93(0x1142)]=_0x4fa677[_0xcd4f93(0x1142)][_0xcd4f93(0x256e)]()),_0x4fa677['priority']=_0x165034[_0xcd4f93(0x402)]?_0x3f65c0()['last'](_0x165034)[_0xcd4f93(0xa6a)]+0x1:_0x3e7fb9,_0x3e7fb9=(_0xeaa716[_0xcd4f93(0x402)]?_0x3f65c0()['last'](_0xeaa716)[_0xcd4f93(0xa6a)]:_0x4fa677[_0xcd4f93(0xa6a)])+0x1,_0x375968=_0x3f65c0()['concat'](_0x375968,_0x165034,[_0x4fa677],_0xeaa716);}_0x5f1463[_0xcd4f93(0x2209)][_0xcd4f93(0x1711)]({'id':_0x479de7[_0xcd4f93(0x2209)]['id']},_0x3f65c0()[_0xcd4f93(0x939)](_0x375968,_0xcd4f93(0xa6a)))[_0xcd4f93(0x2945)][_0xcd4f93(0x146b)](function(_0x361d57){const _0xea162e=_0xcd4f93;_0x479de7[_0xea162e(0x102f)][_0xea162e(0x19c7)]=_0x361d57[_0xea162e(0x19c7)];})['catch'](function(_0x2c5d60){console['error'](_0x2c5d60);});}function _0x16b6eb(_0x4a4acc){_0x479de7['smsAccountApps']=_0x4a4acc||{'count':0x0,'rows':[]};}function _0xdcdd43(){const _0x22f701=_0x2e18bd;return _0x5f1463[_0x22f701(0x2765)][_0x22f701(0x16b4)]({'fields':'id,interval,IntervalId'})[_0x22f701(0x2945)]['then'](function(_0x195c0f){const _0x108c57=_0x22f701;_0x479de7[_0x108c57(0x278f)]=_0x195c0f;})[_0x22f701(0x129e)](function(_0xeb3dae){const _0x12c93f=_0x22f701;console[_0x12c93f(0x1980)](_0xeb3dae);});}function _0xaea1c(){const _0x9adbe8=_0x2e18bd;_0x479de7[_0x9adbe8(0xb9c)]=_0x5f1463['smsAccount'][_0x9adbe8(0x261b)](_0x479de7[_0x9adbe8(0x1a56)],_0x16b6eb)[_0x9adbe8(0x2945)];}function _0xa4fbe3(_0x4e562f){const _0x3a2142=_0x2e18bd;_0x3f65c0()[_0x3a2142(0x2640)](_0x479de7[_0x3a2142(0x102f)][_0x3a2142(0x19c7)],{'id':_0x4e562f['id']}),_0x19d9dc(),_0x48b507[_0x3a2142(0x1c75)]({'title':_0x3a2142(0x1c3a),'msg':_0x4e562f[_0x3a2142(0x1873)]?_0x4e562f[_0x3a2142(0x1873)]+_0x3a2142(0x23e3):''});}function _0x127146(_0x205b74){const _0x6639ce=_0x2e18bd,_0x384fda=_0x4e2c0f[_0x6639ce(0x1e8a)]()['title'](_0x6639ce(0x1d9f))[_0x6639ce(0x1cbe)](_0x6639ce(0x16d3)+_0x479de7['selectedSmsAccountApps'][_0x6639ce(0x402)]+'\x20selected
    '+_0x6639ce(0xe01))[_0x6639ce(0x4bd)](_0x6639ce(0x2674))['targetEvent'](_0x205b74)['ok']('OK')[_0x6639ce(0x6c3)]('CANCEL');_0x4e2c0f[_0x6639ce(0x2615)](_0x384fda)[_0x6639ce(0x146b)](function(){const _0x4d3f45=_0x6639ce;_0x479de7['selectedSmsAccountApps'][_0x4d3f45(0x1df5)](function(_0x2d8cc6){const _0x4fa0ba=_0x4d3f45;_0x3f65c0()['remove'](_0x479de7['smsAccountApps'][_0x4fa0ba(0x19c7)],{'id':_0x2d8cc6['id']});}),_0x479de7[_0x4d3f45(0xb3a)]=[],_0x19d9dc();});}}const _0x47a2bf=_0x4f5a5e;;_0x1a1536[_0x313a4d(0x11c2)]=[_0x313a4d(0x10e8),'$q',_0x313a4d(0x1fe4),_0x313a4d(0x247f),_0x313a4d(0x2209),_0x313a4d(0x1c34),_0x313a4d(0xfc4),_0x313a4d(0x214b),'Auth',_0x313a4d(0x2514)];function _0x1a1536(_0x70d13b,_0x211103,_0x47395e,_0x502b07,_0x107680,_0x1301de,_0xefcb79,_0x997df4,_0x1d7cb5,_0xdcd657){const _0x4a1bed=_0x313a4d,_0x155a96=this;_0x155a96[_0x4a1bed(0x2321)]=_0x1d7cb5['getCurrentUser'](),_0x155a96['smsAccount']=_0x107680,_0x155a96[_0x4a1bed(0x2514)]=_0xdcd657,_0x155a96[_0x4a1bed(0xfc4)]=_0xefcb79,_0x155a96[_0x4a1bed(0x1fd6)]=[],_0x155a96[_0x4a1bed(0xc4e)]=[],_0x155a96[_0x4a1bed(0x1ecf)]=[],_0x155a96[_0x4a1bed(0x2e8)]=[],_0x155a96[_0x4a1bed(0xa65)]=[],_0x155a96[_0x4a1bed(0x132)]=![],_0x155a96['onInit']=_0x1f5ad2,_0x155a96[_0x4a1bed(0x14c2)]=_0x23c7a0,_0x155a96[_0x4a1bed(0x13f3)]=_0x1c00b4,_0x155a96[_0x4a1bed(0x1f8a)]={'readOnly':!_0x155a96[_0x4a1bed(0x2514)][_0x4a1bed(0x15f4)],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':'name','line1':'fullname','line2':['name',_0x4a1bed(0x113f)],'line3':'','labelAll':_0x997df4[_0x4a1bed(0xde)](_0x4a1bed(0x2050)),'labelSelected':_0x997df4[_0x4a1bed(0xde)](_0x4a1bed(0xf73)),'transferCallback':function(){const _0x45f334=_0x4a1bed,_0x274a60=_0x3f65c0()[_0x45f334(0x1883)](_0x155a96[_0x45f334(0xa65)],_0x155a96[_0x45f334(0x1ecf)],'id');_0x155a96['pendingChanges']=_0x3f65c0()[_0x45f334(0x2635)](_0x274a60)?![]:!![];}};function _0x1f5ad2(){const _0x26024a=_0x4a1bed;return _0x1d7cb5[_0x26024a(0x23e0)]('admin')?_0x1fcc33()[_0x26024a(0x129e)](function(_0x17ca41){const _0x1ea178=_0x26024a;_0x47395e[_0x1ea178(0x1980)]({'title':_0x17ca41['status']?'API:'+_0x17ca41[_0x1ea178(0x107b)]+_0x1ea178(0x1315)+_0x17ca41[_0x1ea178(0x167f)]:_0x1ea178(0x557),'msg':_0x17ca41[_0x1ea178(0x107b)]?JSON[_0x1ea178(0x10bb)](_0x17ca41[_0x1ea178(0x524)]):_0x17ca41[_0x1ea178(0xd5f)]()});}):_0x558bdc()[_0x26024a(0x146b)](function(_0x183e00){const _0x34c9aa=_0x26024a;return _0x155a96[_0x34c9aa(0x2146)]=_0x183e00,_0x1fcc33();})[_0x26024a(0x129e)](function(_0x1a4130){const _0x2993d2=_0x26024a;_0x47395e[_0x2993d2(0x1980)]({'title':_0x1a4130[_0x2993d2(0x107b)]?'API:'+_0x1a4130[_0x2993d2(0x107b)]+_0x2993d2(0x1315)+_0x1a4130[_0x2993d2(0x167f)]:_0x2993d2(0x557),'msg':_0x1a4130[_0x2993d2(0x107b)]?JSON['stringify'](_0x1a4130[_0x2993d2(0x524)]):_0x1a4130[_0x2993d2(0xd5f)]()});});}function _0x558bdc(){return _0x211103(function(_0x4b08df,_0x288cdc){const _0x7a27a4=a0_0x3bb9;_0x502b07[_0x7a27a4(0x1366)][_0x7a27a4(0x16b4)]({'userProfileId':_0x155a96[_0x7a27a4(0x2321)]['userProfileId'],'name':'Agents'})[_0x7a27a4(0x2945)][_0x7a27a4(0x146b)](function(_0x24c7b0){const _0xdcf765=_0x7a27a4,_0x1722db=_0x24c7b0&&_0x24c7b0['rows']?_0x24c7b0[_0xdcf765(0x19c7)][0x0]:null;_0x4b08df(_0x1722db);})[_0x7a27a4(0x129e)](function(_0x47cc99){_0x288cdc(_0x47cc99);});});}function _0x1fcc33(){return _0x211103(function(_0xbf1c31,_0x2fdf61){const _0x397b38=a0_0x3bb9;return _0x42c6ac()[_0x397b38(0x146b)](function(_0x3ee882){const _0x569d82=_0x397b38;return _0x155a96[_0x569d82(0x1fd6)]=_0x3ee882[_0x569d82(0x19c7)]?_0x3ee882[_0x569d82(0x19c7)]:[],_0x1d7cb5['hasRole'](_0x569d82(0x174b))?_0x3ee882:_0x155a96[_0x569d82(0x2146)]?_0x155a96[_0x569d82(0x2146)][_0x569d82(0x11d2)]?_0x3ee882:_0xfcb84c():null;})[_0x397b38(0x146b)](function(_0x304cc6){const _0xbb941d=_0x397b38,_0x3cea9e=_0x304cc6&&_0x304cc6['rows']?_0x304cc6[_0xbb941d(0x19c7)]:[];return _0x155a96[_0xbb941d(0xc4e)]=_0x3f65c0()[_0xbb941d(0x205)](_0x3cea9e,function(_0x1ad3db){const _0x28e211=_0xbb941d;return _0x3f65c0()[_0x28e211(0xc84)](_0x155a96[_0x28e211(0x1fd6)],{'id':_0x1d7cb5[_0x28e211(0x23e0)](_0x28e211(0x174b))||_0x155a96[_0x28e211(0x2146)]['autoAssociation']?_0x1ad3db['id']:_0x1ad3db[_0x28e211(0x18b8)]});}),_0x155a96[_0xbb941d(0x2e8)]=angular[_0xbb941d(0x235a)](_0x155a96['allowedItems']),_0x155a96[_0xbb941d(0x1fd6)][_0xbb941d(0x1df5)](function(_0x4bc6c9){const _0x5b4ae9=_0xbb941d,_0x39d480=_0x3f65c0()[_0x5b4ae9(0xc84)](_0x155a96['allowedItems'],{'id':_0x4bc6c9['id']});_0x1d7cb5[_0x5b4ae9(0x23e0)](_0x5b4ae9(0x174b))?_0x4bc6c9['isValid']=!![]:_0x4bc6c9[_0x5b4ae9(0x146f)]=typeof _0x39d480!==_0x5b4ae9(0x2274)?!![]:![];}),_0x2e006f();})[_0x397b38(0x146b)](function(_0x2d0cd0){const _0xc3af53=_0x397b38,_0x29747=_0x2d0cd0&&_0x2d0cd0['rows']?_0x2d0cd0[_0xc3af53(0x19c7)]:[];_0x155a96[_0xc3af53(0x1ecf)]=_0x3f65c0()[_0xc3af53(0x205)](_0x29747,function(_0x2ecc67){const _0x1160bd=_0xc3af53,_0x1da5af=_0x3f65c0()[_0x1160bd(0xc84)](_0x155a96[_0x1160bd(0x1fd6)],{'id':_0x2ecc67['id']});return _0x1da5af['penalty']=_0x2ecc67[_0x1160bd(0x96d)]?'penalty\x20'+_0x2ecc67[_0x1160bd(0x96d)]['penalty']:'',_0x1da5af[_0x1160bd(0x113f)]=typeof _0x2ecc67['internal']!==_0x1160bd(0x2274)?'<'+_0x2ecc67[_0x1160bd(0x113f)]+'>':'',_0x1da5af;}),_0x155a96[_0xc3af53(0xa65)]=angular[_0xc3af53(0x235a)](_0x155a96['selectedItems']),_0x155a96[_0xc3af53(0x1f8a)]['selectedItems']=_0x155a96[_0xc3af53(0x1ecf)],_0x155a96[_0xc3af53(0x1f8a)]['items']=_0x3f65c0()[_0xc3af53(0x2796)](_0x155a96[_0xc3af53(0xc4e)],_0x155a96[_0xc3af53(0x1f8a)][_0xc3af53(0x1ecf)],'id'),_0xbf1c31();})[_0x397b38(0x129e)](function(_0x561191){_0x2fdf61(_0x561191);});});}function _0xfcb84c(){return _0x211103(function(_0x1a861d,_0x1d3496){const _0x38cb9a=a0_0x3bb9;return _0x502b07[_0x38cb9a(0xdcc)]['get']({'sectionId':_0x155a96['section']['id'],'nolimit':!![]})[_0x38cb9a(0x2945)][_0x38cb9a(0x146b)](function(_0x1c6185){_0x1a861d(_0x1c6185);})[_0x38cb9a(0x129e)](function(_0x17dd7b){_0x1d3496(_0x17dd7b);});});}function _0x2e006f(){return _0x211103(function(_0x468e99,_0x4792dc){const _0x100a28=a0_0x3bb9;return _0x502b07[_0x100a28(0x2209)][_0x100a28(0x333)]({'id':_0x155a96[_0x100a28(0x2209)]['id'],'fields':'id,name,internal,fullname','nolimit':!![],'role':_0x100a28(0x1755)})[_0x100a28(0x2945)][_0x100a28(0x146b)](function(_0x8b2e04){_0x468e99(_0x8b2e04);})[_0x100a28(0x129e)](function(_0x316a73){_0x4792dc(_0x316a73);});});}function _0x42c6ac(){return _0x211103(function(_0x51dd65,_0x4a8d4e){const _0x2798e0=a0_0x3bb9;return _0x502b07['user'][_0x2798e0(0x16b4)]({'fields':'id,name,internal,fullname','nolimit':!![],'role':_0x2798e0(0x1755)})['$promise'][_0x2798e0(0x146b)](function(_0x4a139b){_0x51dd65(_0x4a139b);})['catch'](function(_0x5e38c4){_0x4a8d4e(_0x5e38c4);});});}function _0x378683(_0x145844){return _0x211103(function(_0x1ab269,_0x47195f){const _0x3b34b3=a0_0x3bb9;_0x3f65c0()[_0x3b34b3(0x2635)](_0x145844)?_0x1ab269():_0x502b07[_0x3b34b3(0x2209)]['addAgents']({'id':_0x155a96[_0x3b34b3(0x2209)]['id'],'ids':_0x3f65c0()['map'](_0x145844,'id')})['$promise'][_0x3b34b3(0x146b)](function(){_0x1ab269();})[_0x3b34b3(0x129e)](function(_0x45b810){_0x47195f(_0x45b810);});});}function _0xee3ec1(_0xb9efa5){return _0x211103(function(_0x20c260,_0x31f191){const _0x4915fa=a0_0x3bb9;_0x3f65c0()[_0x4915fa(0x2635)](_0xb9efa5)?_0x20c260():_0x502b07[_0x4915fa(0x2209)]['removeAgents']({'id':_0x155a96['smsAccount']['id'],'ids':_0x3f65c0()[_0x4915fa(0x205)](_0xb9efa5,'id')})[_0x4915fa(0x2945)][_0x4915fa(0x146b)](function(){_0x20c260();})[_0x4915fa(0x129e)](function(_0x417676){_0x31f191(_0x417676);});});}function _0x23c7a0(){const _0x27f87b=_0x4a1bed,_0x2e4812=_0x3f65c0()[_0x27f87b(0x2796)](_0x155a96[_0x27f87b(0xa65)],_0x155a96[_0x27f87b(0x1ecf)],'id'),_0x49f29b=_0x3f65c0()['differenceBy'](_0x155a96['selectedItems'],_0x155a96[_0x27f87b(0xa65)],'id');return _0xee3ec1(_0x2e4812)[_0x27f87b(0x146b)](function(){return _0x378683(_0x49f29b);})[_0x27f87b(0x146b)](function(){const _0x99966e=_0x27f87b;_0x155a96['pendingChanges']=![],_0x155a96[_0x99966e(0x2e8)]=angular[_0x99966e(0x235a)](_0x155a96[_0x99966e(0xc4e)]),_0x155a96[_0x99966e(0xa65)]=angular[_0x99966e(0x235a)](_0x155a96[_0x99966e(0x1ecf)]),_0x47395e['success']({'title':_0x99966e(0x4c0),'msg':'Agents\x20association\x20has\x20been\x20updated!'});})['catch'](function(_0x57ce48){const _0x5d19e2=_0x27f87b;_0x47395e[_0x5d19e2(0x1980)]({'title':_0x57ce48['status']?'API:'+_0x57ce48[_0x5d19e2(0x107b)]+_0x5d19e2(0x1315)+_0x57ce48['statusText']:_0x5d19e2(0xa56),'msg':_0x57ce48[_0x5d19e2(0x107b)]?JSON[_0x5d19e2(0x10bb)](_0x57ce48[_0x5d19e2(0x524)]):_0x57ce48[_0x5d19e2(0xd5f)]()});});}function _0x1c00b4(){const _0x3211cd=_0x4a1bed;_0x70d13b[_0x3211cd(0x2458)]();}}const _0x4b63a8=_0x1a1536;;_0x57739e[_0x313a4d(0x11c2)]=[_0x313a4d(0x10e8),'$q',_0x313a4d(0x1fe4),_0x313a4d(0x80b),_0x313a4d(0x2209),_0x313a4d(0x247f),_0x313a4d(0xa87),'crudPermissions'];function _0x57739e(_0x43aa6b,_0x2210db,_0x5832a2,_0x105009,_0x2dc422,_0x3c7a76,_0x1d5b3e,_0x64f616){const _0x5581e3=_0x313a4d,_0x552f23=this;_0x552f23[_0x5581e3(0x2321)]=_0x1d5b3e['getCurrentUser'](),_0x552f23[_0x5581e3(0xcef)]=[],_0x552f23[_0x5581e3(0x1189)]=_0x5581e3(0x2525)+(_0x105009[_0x5581e3(0x8f2)]||_0x105009[_0x5581e3(0x1873)])['toUpperCase'](),_0x552f23['agent']=angular['copy'](_0x105009),_0x552f23[_0x5581e3(0x2514)]=_0x64f616,_0x552f23[_0x5581e3(0x855)]={};if(_0x552f23[_0x5581e3(0x1755)][_0x5581e3(0x168a)])switch(_0x552f23[_0x5581e3(0x1755)][_0x5581e3(0x8f2)]?_0x552f23[_0x5581e3(0x1755)]['appType'][_0x5581e3(0x256e)]():_0x552f23[_0x5581e3(0x1755)][_0x5581e3(0x1873)][_0x5581e3(0x256e)]()){case _0x5581e3(0x1802):break;case'dialogflow':{const _0x32ab56=_0x552f23['agent'][_0x5581e3(0x168a)]['split'](',');_0x552f23[_0x5581e3(0x1755)][_0x5581e3(0x2293)]=_0x32ab56[0x0],_0x552f23[_0x5581e3(0x1755)][_0x5581e3(0x90b)]=_0x32ab56[0x1],_0x552f23[_0x5581e3(0x1755)][_0x5581e3(0xaf3)]=_0x32ab56['slice'](0x2,_0x32ab56[_0x5581e3(0x402)])[_0x5581e3(0xb47)](',');}break;case _0x5581e3(0xa46):{const _0x212aff=_0x552f23['agent'][_0x5581e3(0x168a)][_0x5581e3(0x10c8)](',');_0x552f23['agent'][_0x5581e3(0x153a)]=_0x212aff[0x0],_0x552f23[_0x5581e3(0x1755)][_0x5581e3(0x1392)]=_0x212aff[0x1],_0x552f23[_0x5581e3(0x1755)]['privateKey']=_0x212aff[0x2],_0x552f23['agent']['language']=_0x212aff[0x3],_0x552f23[_0x5581e3(0x1755)]['welcomemessage']=_0x212aff[_0x5581e3(0x1298)](0x4,_0x212aff['length'])['join'](',');}break;case'amazonlex':{const _0x2552d8=_0x552f23['agent'][_0x5581e3(0x168a)][_0x5581e3(0x10c8)](',');_0x552f23[_0x5581e3(0x1755)][_0x5581e3(0x1651)]=_0x2552d8[0x0],_0x552f23[_0x5581e3(0x1755)][_0x5581e3(0x252)]=_0x2552d8[0x1],_0x552f23['agent'][_0x5581e3(0x1039)]=_0x2552d8[0x2],_0x552f23[_0x5581e3(0x1755)]['botname']=_0x2552d8[0x3],_0x552f23[_0x5581e3(0x1755)]['welcomemessage']=_0x2552d8['slice'](0x4,_0x2552d8[_0x5581e3(0x402)])[_0x5581e3(0xb47)](',');}break;case _0x5581e3(0x1713):{const _0x47990e=_0x552f23[_0x5581e3(0x1755)]['appdata'][_0x5581e3(0x10c8)](',');_0x552f23['agent'][_0x5581e3(0x583)]=isNaN(_0x47990e[0x0])?_0x47990e[0x0]:parseInt(_0x47990e[0x0],0xa),_0x552f23['agent'][_0x5581e3(0xa8d)]=_0x47990e['slice'](0x1,_0x47990e[_0x5581e3(0x402)])[_0x5581e3(0xb47)](',');}break;case _0x5581e3(0x7fd):_0x552f23[_0x5581e3(0x1755)][_0x5581e3(0xa8d)]=_0x552f23[_0x5581e3(0x1755)][_0x5581e3(0x168a)];break;case'set':_0x552f23[_0x5581e3(0x1755)][_0x5581e3(0x19eb)]=_0x552f23['agent'][_0x5581e3(0x168a)][_0x5581e3(0x10c8)]('=')[0x0],_0x552f23[_0x5581e3(0x1755)][_0x5581e3(0x175d)]=_0x552f23[_0x5581e3(0x1755)][_0x5581e3(0x168a)][_0x5581e3(0x10c8)]('=')[0x1];break;case'agi':_0x552f23['agent'][_0x5581e3(0x9e0)]=_0x552f23[_0x5581e3(0x1755)][_0x5581e3(0x168a)];break;default:{const _0x2c7b89=_0x552f23[_0x5581e3(0x1755)][_0x5581e3(0x168a)][_0x5581e3(0x10c8)](',');_0x552f23[_0x5581e3(0x1755)][_0x5581e3(0x1755)]=_0x3f65c0()[_0x5581e3(0x2635)](_0x2c7b89[0x0])?_0x2c7b89[0x0]:isNaN(_0x2c7b89[0x0])?_0x2c7b89[0x0]:parseInt(_0x2c7b89[0x0],0xa),_0x552f23[_0x5581e3(0x1755)][_0x5581e3(0xa9c)]=_0x3f65c0()[_0x5581e3(0x2635)](_0x2c7b89[0x1])?_0x2c7b89[0x1]:isNaN(_0x2c7b89[0x1])?_0x2c7b89[0x1]:parseInt(_0x2c7b89[0x1],0xa);}break;}else _0x552f23[_0x5581e3(0x1755)][_0x5581e3(0xa9c)]=0x1e;_0x552f23[_0x5581e3(0x1755)][_0x5581e3(0x1142)]&&_0x552f23[_0x5581e3(0x1755)]['type'][_0x5581e3(0x256e)]()===_0x5581e3(0xc9c)&&_0x552f23[_0x5581e3(0x1755)][_0x5581e3(0x8f2)][_0x5581e3(0x256e)]()===_0x5581e3(0x3bb)&&(_0x552f23[_0x5581e3(0x1755)][_0x5581e3(0x1e12)]=_0x552f23[_0x5581e3(0x1755)][_0x5581e3(0x1d55)]?_0x552f23[_0x5581e3(0x1755)]['phone'][_0x5581e3(0x10c8)]('$')[0x0]:undefined,_0x552f23['agent'][_0x5581e3(0x1d43)]=_0x552f23[_0x5581e3(0x1755)][_0x5581e3(0x11be)]?_0x5581e3(0x1b60)+_0x552f23[_0x5581e3(0x1755)][_0x5581e3(0x11be)]:undefined);_0x552f23['saveSmsAccountApp']=_0x29ae73,_0x552f23[_0x5581e3(0x13f3)]=_0x41b216,_0x1d5b3e[_0x5581e3(0x23e0)]('admin')?_0x3c7a76[_0x5581e3(0xe7b)]['get']({'fields':_0x5581e3(0x7a7),'sort':_0x5581e3(0x19eb),'nolimit':'true','role':'agent'})[_0x5581e3(0x2945)]['then'](function(_0x42ac2b){_0x552f23['agents']=_0x42ac2b['rows']||[];})[_0x5581e3(0x129e)](function(_0x39adbc){const _0x3dc5b7=_0x5581e3;_0x5832a2[_0x3dc5b7(0x1980)]({'title':_0x39adbc['status']?'API:'+_0x39adbc[_0x3dc5b7(0x107b)]+_0x3dc5b7(0x1315)+_0x39adbc[_0x3dc5b7(0x167f)]:_0x3dc5b7(0x557),'msg':_0x39adbc[_0x3dc5b7(0x524)]?JSON[_0x3dc5b7(0x10bb)](_0x39adbc[_0x3dc5b7(0x524)]):_0x39adbc[_0x3dc5b7(0xd5f)]()});}):_0x3c7a76[_0x5581e3(0xe7b)][_0x5581e3(0x16b4)]({'fields':_0x5581e3(0x7a7),'sort':'name','nolimit':_0x5581e3(0x1185),'role':_0x5581e3(0x1755)})[_0x5581e3(0x2945)]['then'](function(_0x32908d){const _0x1b16c6=_0x5581e3;_0x552f23[_0x1b16c6(0x23c0)]=_0x32908d[_0x1b16c6(0x19c7)]||[];})[_0x5581e3(0x146b)](function(){const _0x4b4694=_0x5581e3;return _0x3c7a76['userProfileSection'][_0x4b4694(0x16b4)]({'userProfileId':_0x552f23[_0x4b4694(0x2321)][_0x4b4694(0x209a)],'sectionId':0xca})[_0x4b4694(0x2945)];})[_0x5581e3(0x146b)](function(_0x1b9c16){const _0x3a7772=_0x5581e3,_0x7a6cc1=_0x1b9c16&&_0x1b9c16[_0x3a7772(0x19c7)]?_0x1b9c16[_0x3a7772(0x19c7)][0x0]:null;if(!_0x7a6cc1){const _0x21c976=[];let _0x4c2ecd=null;_0x552f23[_0x3a7772(0x1755)]&&(_0x4c2ecd=_0x3f65c0()[_0x3a7772(0xc84)](_0x552f23[_0x3a7772(0x23c0)],{'name':_0x552f23[_0x3a7772(0x1755)][_0x3a7772(0x1755)]}));for(let _0x322ac3=0x0;_0x322ac3<_0x552f23['agents'][_0x3a7772(0x402)];_0x322ac3++){_0x4c2ecd&&_0x552f23[_0x3a7772(0x23c0)][_0x322ac3]['id']===_0x4c2ecd['id']&&(_0x552f23[_0x3a7772(0x23c0)][_0x322ac3][_0x3a7772(0x8ff)]=![],_0x21c976[_0x3a7772(0x1f47)](_0x552f23[_0x3a7772(0x23c0)][_0x322ac3]));}_0x552f23[_0x3a7772(0x23c0)]=_0x21c976;}else{if(!_0x7a6cc1['autoAssociation'])return _0x3c7a76[_0x3a7772(0xdcc)][_0x3a7772(0x16b4)]({'sectionId':_0x7a6cc1['id']})[_0x3a7772(0x2945)]['then'](function(_0x23eda5){const _0x1d290a=_0x3a7772,_0x65f856=_0x3f65c0()[_0x1d290a(0x205)](_0x23eda5[_0x1d290a(0x19c7)],function(_0x591ed3){const _0x1a61a0=_0x1d290a;return _0x3f65c0()['find'](_0x552f23['agents'],{'id':_0x591ed3[_0x1a61a0(0x18b8)]});});let _0x4b3a0c=null;_0x552f23['agent']&&(_0x4b3a0c=_0x3f65c0()[_0x1d290a(0xc84)](_0x552f23[_0x1d290a(0x23c0)],{'name':_0x552f23['agent'][_0x1d290a(0x1755)]}));if(_0x4b3a0c&&!_0x3f65c0()[_0x1d290a(0x1360)](_0x65f856,['id',_0x4b3a0c['id']])){const _0x3859b3=_0x3f65c0()['find'](_0x552f23[_0x1d290a(0x23c0)],{'id':_0x4b3a0c['id']});_0x3859b3['canSelect']=![],_0x65f856['push'](_0x3859b3);}_0x552f23[_0x1d290a(0x23c0)]=_0x65f856;});}})[_0x5581e3(0x129e)](function(_0x3feb18){const _0x252650=_0x5581e3;_0x5832a2[_0x252650(0x1980)]({'title':_0x3feb18['status']?_0x252650(0x262a)+_0x3feb18[_0x252650(0x107b)]+_0x252650(0x1315)+_0x3feb18[_0x252650(0x167f)]:_0x252650(0x788),'msg':_0x3feb18[_0x252650(0x524)]?JSON[_0x252650(0x10bb)](_0x3feb18['data']):_0x3feb18[_0x252650(0xd5f)]()});});function _0x29ae73(){const _0x556379=_0x5581e3;_0x552f23[_0x556379(0xcef)]=[];const _0xe36034=[];_0x552f23[_0x556379(0x1755)][_0x556379(0x1142)]&&_0x552f23[_0x556379(0x1755)][_0x556379(0x1142)]['toLowerCase']()===_0x556379(0xc9c)&&_0x552f23[_0x556379(0x1755)][_0x556379(0x8f2)]==='outboundDial'&&(_0x552f23[_0x556379(0x1755)]['phone']=_0x2dc422[_0x556379(0x1274)]?(_0x552f23[_0x556379(0x1755)][_0x556379(0x1e12)]||'')+_0x556379(0x2147)+_0x2dc422[_0x556379(0x1274)]+'}':(_0x552f23['agent'][_0x556379(0x1e12)]||'')+'${EXTEN}',_0x2dc422[_0x556379(0x1425)]!==_0x556379(0x1642)?_0x552f23[_0x556379(0x1755)]['options']['indexOf'](_0x556379(0x1ea4))<0x0&&(_0x552f23[_0x556379(0x1755)][_0x556379(0xa08)]+='U(xcally-mixmonitor-context)'):_0x552f23[_0x556379(0x1755)][_0x556379(0xa08)]=_0x552f23[_0x556379(0x1755)][_0x556379(0xa08)][_0x556379(0x5f4)](_0x556379(0x1ea4),''));const _0x92214f=_0x3f65c0()[_0x556379(0xc84)](_0x552f23[_0x556379(0x23c0)],{'name':_0x552f23['agent'][_0x556379(0x1755)]});_0x92214f&&(_0x552f23[_0x556379(0x1755)][_0x556379(0xea2)]=_0x92214f['id']);if(_0x552f23[_0x556379(0x1755)][_0x556379(0x8f2)]&&_0x552f23[_0x556379(0x1755)][_0x556379(0x8f2)]===_0x556379(0x1802)){}else switch((_0x552f23[_0x556379(0x1755)][_0x556379(0x1873)]||_0x552f23[_0x556379(0x1755)][_0x556379(0x8f2)])[_0x556379(0x256e)]()){case'set':_0x552f23['agent'][_0x556379(0x168a)]=_0x552f23[_0x556379(0x1755)][_0x556379(0x19eb)]+'='+_0x552f23[_0x556379(0x1755)][_0x556379(0x175d)];break;case'custom':break;default:_0xe36034[0x0]=_0x552f23[_0x556379(0x1755)]['agent'],_0xe36034[0x1]=_0x552f23[_0x556379(0x1755)][_0x556379(0xa9c)],_0x552f23[_0x556379(0x1755)]['appdata']=_0xe36034[_0x556379(0xb47)](',');}_0x41b216(_0x552f23[_0x556379(0x1755)]);}function _0x41b216(_0x1fad4d){const _0x46cfa3=_0x5581e3;_0x43aa6b[_0x46cfa3(0x2458)](_0x1fad4d);}}const _0x53a3e7=_0x57739e;;_0xbaa747[_0x313a4d(0x11c2)]=[_0x313a4d(0x10e8),'$q','toasty','smsAccountApp',_0x313a4d(0x2209),_0x313a4d(0x247f),_0x313a4d(0xa87),_0x313a4d(0x2514)];function _0xbaa747(_0x1c7b68,_0x1201cf,_0x57eed1,_0x52ba4c,_0xf5535a,_0x59e759,_0x44f21b,_0x4326b6){const _0x24f1be=_0x313a4d,_0xe8d687=this;_0xe8d687['currentUser']=_0x44f21b[_0x24f1be(0xb12)](),_0xe8d687[_0x24f1be(0xcef)]=[],_0xe8d687[_0x24f1be(0x1189)]=_0x24f1be(0x2525)+(_0x52ba4c[_0x24f1be(0x8f2)]||_0x52ba4c['app'])[_0x24f1be(0x1c37)](),_0xe8d687[_0x24f1be(0x17d6)]=angular['copy'](_0x52ba4c),_0xe8d687[_0x24f1be(0x2514)]=_0x4326b6,_0xe8d687[_0x24f1be(0x855)]={};if(_0xe8d687[_0x24f1be(0x17d6)][_0x24f1be(0x168a)])switch(_0xe8d687[_0x24f1be(0x17d6)][_0x24f1be(0x8f2)]?_0xe8d687[_0x24f1be(0x17d6)]['appType'][_0x24f1be(0x256e)]():_0xe8d687['amazonlex'][_0x24f1be(0x1873)][_0x24f1be(0x256e)]()){case'custom':break;case _0x24f1be(0xeaa):{const _0x578dba=_0xe8d687[_0x24f1be(0x17d6)][_0x24f1be(0x168a)][_0x24f1be(0x10c8)](',');_0xe8d687[_0x24f1be(0x17d6)][_0x24f1be(0x2293)]=_0x578dba[0x0],_0xe8d687['amazonlex'][_0x24f1be(0x90b)]=_0x578dba[0x1],_0xe8d687[_0x24f1be(0x17d6)]['welcomemessage']=_0x578dba['slice'](0x2,_0x578dba['length'])['join'](',');}break;case'dialogflowv2':{const _0x4d96ad=_0xe8d687[_0x24f1be(0x17d6)][_0x24f1be(0x168a)][_0x24f1be(0x10c8)](',');_0xe8d687['amazonlex'][_0x24f1be(0x153a)]=_0x4d96ad[0x0],_0xe8d687[_0x24f1be(0x17d6)][_0x24f1be(0x1392)]=_0x4d96ad[0x1],_0xe8d687[_0x24f1be(0x17d6)][_0x24f1be(0x2217)]=_0x4d96ad[0x2],_0xe8d687[_0x24f1be(0x17d6)]['language']=_0x4d96ad[0x3],_0xe8d687[_0x24f1be(0x17d6)]['welcomemessage']=_0x4d96ad[_0x24f1be(0x1298)](0x4,_0x4d96ad[_0x24f1be(0x402)])[_0x24f1be(0xb47)](',');}break;case'amazonlex':{const _0x5f0bbe=_0xe8d687['amazonlex'][_0x24f1be(0x168a)]['split'](',');_0xe8d687['amazonlex'][_0x24f1be(0x1651)]=_0x5f0bbe[0x0],_0xe8d687[_0x24f1be(0x17d6)][_0x24f1be(0x252)]=_0x5f0bbe[0x1],_0xe8d687['amazonlex'][_0x24f1be(0x1039)]=_0x5f0bbe[0x2],_0xe8d687['amazonlex'][_0x24f1be(0x8dd)]=_0x5f0bbe[0x3],_0xe8d687[_0x24f1be(0x17d6)][_0x24f1be(0xaf3)]=_0x5f0bbe[_0x24f1be(0x1298)](0x4,_0x5f0bbe[_0x24f1be(0x402)])['join'](',');}break;case _0x24f1be(0x1713):{const _0x356f81=_0xe8d687[_0x24f1be(0x17d6)][_0x24f1be(0x168a)][_0x24f1be(0x10c8)](',');_0xe8d687[_0x24f1be(0x17d6)][_0x24f1be(0x583)]=isNaN(_0x356f81[0x0])?_0x356f81[0x0]:parseInt(_0x356f81[0x0],0xa),_0xe8d687[_0x24f1be(0x17d6)][_0x24f1be(0xa8d)]=_0x356f81[_0x24f1be(0x1298)](0x1,_0x356f81[_0x24f1be(0x402)])[_0x24f1be(0xb47)](',');}break;case'message':_0xe8d687['amazonlex']['text']=_0xe8d687[_0x24f1be(0x17d6)][_0x24f1be(0x168a)];break;case _0x24f1be(0x26ba):_0xe8d687[_0x24f1be(0x17d6)]['name']=_0xe8d687[_0x24f1be(0x17d6)][_0x24f1be(0x168a)][_0x24f1be(0x10c8)]('=')[0x0],_0xe8d687[_0x24f1be(0x17d6)][_0x24f1be(0x175d)]=_0xe8d687[_0x24f1be(0x17d6)]['appdata'][_0x24f1be(0x10c8)]('=')[0x1];break;case'agi':_0xe8d687[_0x24f1be(0x17d6)][_0x24f1be(0x9e0)]=_0xe8d687[_0x24f1be(0x17d6)]['appdata'];break;default:{const _0x4ffb72=_0xe8d687['amazonlex']['appdata']['split'](',');_0xe8d687[_0x24f1be(0x17d6)][_0x24f1be(0x1651)]=_0x3f65c0()[_0x24f1be(0x2635)](_0x4ffb72[0x0])?_0x4ffb72[0x0]:isNaN(_0x4ffb72[0x0])?_0x4ffb72[0x0]:parseInt(_0x4ffb72[0x0],0xa),_0xe8d687[_0x24f1be(0x17d6)][_0x24f1be(0x252)]=_0x3f65c0()['isEmpty'](_0x4ffb72[0x1])?_0x4ffb72[0x1]:isNaN(_0x4ffb72[0x1])?_0x4ffb72[0x1]:parseInt(_0x4ffb72[0x1],0xa),_0xe8d687[_0x24f1be(0x17d6)][_0x24f1be(0x1039)]=_0x3f65c0()[_0x24f1be(0x2635)](_0x4ffb72[0x2])?_0x4ffb72[0x2]:isNaN(_0x4ffb72[0x2])?_0x4ffb72[0x2]:parseInt(_0x4ffb72[0x2],0xa),_0xe8d687[_0x24f1be(0x17d6)][_0x24f1be(0x8dd)]=_0x3f65c0()[_0x24f1be(0x2635)](_0x4ffb72[0x3])?_0x4ffb72[0x3]:isNaN(_0x4ffb72[0x3])?_0x4ffb72[0x3]:parseInt(_0x4ffb72[0x3],0xa),_0xe8d687[_0x24f1be(0x17d6)][_0x24f1be(0xaf3)]=_0x3f65c0()['isEmpty'](_0x4ffb72[0x4])?_0x4ffb72[0x4]:isNaN(_0x4ffb72[0x4])?_0x4ffb72[0x4]:parseInt(_0x4ffb72[0x4],0xa);}break;}else _0xe8d687[_0x24f1be(0x17d6)][_0x24f1be(0x1039)]='us-east-1';_0xe8d687[_0x24f1be(0x17d6)][_0x24f1be(0x1142)]&&_0xe8d687['amazonlex'][_0x24f1be(0x1142)]['toLowerCase']()===_0x24f1be(0xc9c)&&_0xe8d687[_0x24f1be(0x17d6)][_0x24f1be(0x8f2)][_0x24f1be(0x256e)]()===_0x24f1be(0x3bb)&&(_0xe8d687[_0x24f1be(0x17d6)][_0x24f1be(0x1e12)]=_0xe8d687[_0x24f1be(0x17d6)][_0x24f1be(0x1d55)]?_0xe8d687[_0x24f1be(0x17d6)][_0x24f1be(0x1d55)][_0x24f1be(0x10c8)]('$')[0x0]:undefined,_0xe8d687[_0x24f1be(0x17d6)][_0x24f1be(0x1d43)]=_0xe8d687[_0x24f1be(0x17d6)][_0x24f1be(0x11be)]?_0x24f1be(0x1b60)+_0xe8d687['amazonlex'][_0x24f1be(0x11be)]:undefined);_0xe8d687[_0x24f1be(0x15de)]=_0x42e4f7,_0xe8d687[_0x24f1be(0x13f3)]=_0x27f5b2;function _0x42e4f7(){const _0x239475=_0x24f1be;_0xe8d687[_0x239475(0xcef)]=[];const _0x222e62=[];_0xe8d687[_0x239475(0x17d6)][_0x239475(0x1142)]&&_0xe8d687[_0x239475(0x17d6)][_0x239475(0x1142)][_0x239475(0x256e)]()===_0x239475(0xc9c)&&_0xe8d687['amazonlex'][_0x239475(0x8f2)]===_0x239475(0x118b)&&(_0xe8d687[_0x239475(0x17d6)][_0x239475(0x1d55)]=_0xf5535a[_0x239475(0x1274)]?(_0xe8d687['amazonlex']['prefix']||'')+_0x239475(0x2147)+_0xf5535a[_0x239475(0x1274)]+'}':(_0xe8d687['amazonlex'][_0x239475(0x1e12)]||'')+_0x239475(0x20df),_0xf5535a[_0x239475(0x1425)]!==_0x239475(0x1642)?_0xe8d687[_0x239475(0x17d6)]['options'][_0x239475(0x172b)](_0x239475(0x1ea4))<0x0&&(_0xe8d687[_0x239475(0x17d6)][_0x239475(0xa08)]+='U(xcally-mixmonitor-context)'):_0xe8d687['amazonlex'][_0x239475(0xa08)]=_0xe8d687['amazonlex']['options']['replace']('U(xcally-mixmonitor-context)',''));if(_0xe8d687['amazonlex'][_0x239475(0x8f2)]&&_0xe8d687[_0x239475(0x17d6)]['appType']===_0x239475(0x1802)){}else switch((_0xe8d687[_0x239475(0x17d6)]['app']||_0xe8d687[_0x239475(0x17d6)]['appType'])[_0x239475(0x256e)]()){case'set':_0xe8d687[_0x239475(0x17d6)][_0x239475(0x168a)]=_0xe8d687['amazonlex'][_0x239475(0x19eb)]+'='+_0xe8d687[_0x239475(0x17d6)][_0x239475(0x175d)];break;case _0x239475(0x1802):break;default:_0x222e62[0x0]=_0xe8d687['amazonlex'][_0x239475(0x1651)],_0x222e62[0x1]=_0xe8d687['amazonlex'][_0x239475(0x252)],_0x222e62[0x2]=_0xe8d687[_0x239475(0x17d6)][_0x239475(0x1039)],_0x222e62[0x3]=_0xe8d687[_0x239475(0x17d6)][_0x239475(0x8dd)],_0x222e62[0x4]=_0xe8d687[_0x239475(0x17d6)][_0x239475(0xaf3)],_0xe8d687[_0x239475(0x17d6)][_0x239475(0x168a)]=_0x222e62[_0x239475(0xb47)](',');}_0x27f5b2(_0xe8d687[_0x239475(0x17d6)]);}function _0x27f5b2(_0x5963c8){const _0x47ddd1=_0x24f1be;_0x1c7b68[_0x47ddd1(0x2458)](_0x5963c8);}}const _0x156ed4=_0xbaa747;;_0x14b63f[_0x313a4d(0x11c2)]=['$mdDialog','$q','toasty',_0x313a4d(0x80b),_0x313a4d(0x2209),'api',_0x313a4d(0xa87),_0x313a4d(0x2514)];function _0x14b63f(_0x19760c,_0x366a71,_0x2d8f09,_0x891001,_0x54cd95,_0x111c3a,_0x23195e,_0x16e056){const _0x227adc=_0x313a4d,_0x11f375=this;_0x11f375['currentUser']=_0x23195e['getCurrentUser'](),_0x11f375[_0x227adc(0xcef)]=[],_0x11f375[_0x227adc(0x1189)]=_0x227adc(0x2525)+(_0x891001['appType']||_0x891001['app'])['toUpperCase'](),_0x11f375[_0x227adc(0x1713)]=angular['copy'](_0x891001),_0x11f375[_0x227adc(0x2514)]=_0x16e056,_0x11f375[_0x227adc(0x855)]={};if(_0x11f375[_0x227adc(0x1713)][_0x227adc(0x168a)])switch(_0x11f375[_0x227adc(0x1713)]['appType']?_0x11f375[_0x227adc(0x1713)][_0x227adc(0x8f2)][_0x227adc(0x256e)]():_0x11f375['autoreply']['app'][_0x227adc(0x256e)]()){case _0x227adc(0x1802):break;case _0x227adc(0xeaa):{const _0x5385ea=_0x11f375[_0x227adc(0x1713)][_0x227adc(0x168a)]['split'](',');_0x11f375[_0x227adc(0x1713)]['key']=_0x5385ea[0x0],_0x11f375[_0x227adc(0x1713)]['language']=_0x5385ea[0x1],_0x11f375[_0x227adc(0x1713)][_0x227adc(0xaf3)]=_0x5385ea[_0x227adc(0x1298)](0x2,_0x5385ea['length'])[_0x227adc(0xb47)](',');}break;case'dialogflowv2':{const _0x5e24d3=_0x11f375['autoreply'][_0x227adc(0x168a)]['split'](',');_0x11f375['autoreply'][_0x227adc(0x153a)]=_0x5e24d3[0x0],_0x11f375['autoreply'][_0x227adc(0x1392)]=_0x5e24d3[0x1],_0x11f375[_0x227adc(0x1713)][_0x227adc(0x2217)]=_0x5e24d3[0x2],_0x11f375[_0x227adc(0x1713)]['language']=_0x5e24d3[0x3],_0x11f375[_0x227adc(0x1713)][_0x227adc(0xaf3)]=_0x5e24d3[_0x227adc(0x1298)](0x4,_0x5e24d3[_0x227adc(0x402)])['join'](',');}break;case _0x227adc(0x17d6):{const _0x2a5dc5=_0x11f375[_0x227adc(0x1713)]['appdata']['split'](',');_0x11f375[_0x227adc(0x1713)][_0x227adc(0x1651)]=_0x2a5dc5[0x0],_0x11f375[_0x227adc(0x1713)]['secretaccesskey']=_0x2a5dc5[0x1],_0x11f375['autoreply'][_0x227adc(0x1039)]=_0x2a5dc5[0x2],_0x11f375[_0x227adc(0x1713)][_0x227adc(0x8dd)]=_0x2a5dc5[0x3],_0x11f375[_0x227adc(0x1713)][_0x227adc(0xaf3)]=_0x2a5dc5[_0x227adc(0x1298)](0x4,_0x2a5dc5[_0x227adc(0x402)])[_0x227adc(0xb47)](',');}break;case _0x227adc(0x1713):{const _0x23d641=_0x11f375[_0x227adc(0x1713)][_0x227adc(0x168a)]['split'](',');_0x11f375['autoreply'][_0x227adc(0x583)]=isNaN(_0x23d641[0x0])?_0x23d641[0x0]:parseInt(_0x23d641[0x0],0xa),_0x11f375['autoreply'][_0x227adc(0xa8d)]=_0x23d641[_0x227adc(0x1298)](0x1,_0x23d641['length'])[_0x227adc(0xb47)](',');}break;case'message':_0x11f375[_0x227adc(0x1713)]['text']=_0x11f375[_0x227adc(0x1713)][_0x227adc(0x168a)];break;case'set':_0x11f375[_0x227adc(0x1713)][_0x227adc(0x19eb)]=_0x11f375['autoreply'][_0x227adc(0x168a)][_0x227adc(0x10c8)]('=')[0x0],_0x11f375[_0x227adc(0x1713)]['value']=_0x11f375[_0x227adc(0x1713)][_0x227adc(0x168a)]['split']('=')[0x1];break;case'agi':_0x11f375['autoreply']['project']=_0x11f375[_0x227adc(0x1713)][_0x227adc(0x168a)];break;default:{const _0x94f989=_0x11f375['autoreply'][_0x227adc(0x168a)][_0x227adc(0x10c8)](',');_0x11f375[_0x227adc(0x1713)][_0x227adc(0x583)]=_0x3f65c0()[_0x227adc(0x2635)](_0x94f989[0x0])?_0x94f989[0x0]:isNaN(_0x94f989[0x0])?_0x94f989[0x0]:parseInt(_0x94f989[0x0],0xa),_0x11f375['autoreply'][_0x227adc(0xa8d)]=_0x3f65c0()[_0x227adc(0x2635)](_0x94f989[0x1])?_0x94f989[0x1]:isNaN(_0x94f989[0x1])?_0x94f989[0x1]:parseInt(_0x94f989[0x1],0xa);}}else _0x11f375[_0x227adc(0x1713)][_0x227adc(0x583)]=0x1;_0x11f375[_0x227adc(0x1713)]['type']&&_0x11f375[_0x227adc(0x1713)][_0x227adc(0x1142)][_0x227adc(0x256e)]()==='outbound'&&_0x11f375[_0x227adc(0x1713)][_0x227adc(0x8f2)][_0x227adc(0x256e)]()===_0x227adc(0x3bb)&&(_0x11f375[_0x227adc(0x1713)][_0x227adc(0x1e12)]=_0x11f375[_0x227adc(0x1713)][_0x227adc(0x1d55)]?_0x11f375['autoreply']['phone'][_0x227adc(0x10c8)]('$')[0x0]:undefined,_0x11f375['autoreply'][_0x227adc(0x1d43)]=_0x11f375[_0x227adc(0x1713)][_0x227adc(0x11be)]?'CALLERID(all)='+_0x11f375[_0x227adc(0x1713)][_0x227adc(0x11be)]:undefined);_0x11f375[_0x227adc(0x15de)]=_0xbb16ad,_0x11f375[_0x227adc(0x13f3)]=_0x34a564;function _0xbb16ad(){const _0x4cef78=_0x227adc;_0x11f375['errors']=[];const _0x2cff8f=[];_0x11f375['autoreply'][_0x4cef78(0x1142)]&&_0x11f375['autoreply'][_0x4cef78(0x1142)][_0x4cef78(0x256e)]()===_0x4cef78(0xc9c)&&_0x11f375[_0x4cef78(0x1713)][_0x4cef78(0x8f2)]===_0x4cef78(0x118b)&&(_0x11f375[_0x4cef78(0x1713)][_0x4cef78(0x1d55)]=_0x54cd95['cutdigits']?(_0x11f375[_0x4cef78(0x1713)]['prefix']||'')+_0x4cef78(0x2147)+_0x54cd95[_0x4cef78(0x1274)]+'}':(_0x11f375[_0x4cef78(0x1713)][_0x4cef78(0x1e12)]||'')+_0x4cef78(0x20df),_0x54cd95[_0x4cef78(0x1425)]!==_0x4cef78(0x1642)?_0x11f375[_0x4cef78(0x1713)][_0x4cef78(0xa08)][_0x4cef78(0x172b)](_0x4cef78(0x1ea4))<0x0&&(_0x11f375['autoreply'][_0x4cef78(0xa08)]+=_0x4cef78(0x1ea4)):_0x11f375[_0x4cef78(0x1713)][_0x4cef78(0xa08)]=_0x11f375['autoreply'][_0x4cef78(0xa08)][_0x4cef78(0x5f4)](_0x4cef78(0x1ea4),''));if(_0x11f375[_0x4cef78(0x1713)]['appType']&&_0x11f375[_0x4cef78(0x1713)][_0x4cef78(0x8f2)]===_0x4cef78(0x1802)){}else switch((_0x11f375[_0x4cef78(0x1713)][_0x4cef78(0x1873)]||_0x11f375[_0x4cef78(0x1713)]['appType'])[_0x4cef78(0x256e)]()){case'set':_0x11f375[_0x4cef78(0x1713)][_0x4cef78(0x168a)]=_0x11f375[_0x4cef78(0x1713)][_0x4cef78(0x19eb)]+'='+_0x11f375['autoreply'][_0x4cef78(0x175d)];break;case'custom':break;default:_0x2cff8f[0x0]=_0x11f375['autoreply'][_0x4cef78(0x583)],_0x2cff8f[0x1]=_0x11f375[_0x4cef78(0x1713)][_0x4cef78(0xa8d)],_0x11f375[_0x4cef78(0x1713)][_0x4cef78(0x168a)]=_0x2cff8f[_0x4cef78(0xb47)](',');}_0x34a564(_0x11f375[_0x4cef78(0x1713)]);}function _0x34a564(_0x1f6b06){const _0x5a8f1e=_0x227adc;_0x19760c[_0x5a8f1e(0x2458)](_0x1f6b06);}}const _0x55aebb=_0x14b63f;;_0x13feed[_0x313a4d(0x11c2)]=[_0x313a4d(0x10e8),'$q','toasty',_0x313a4d(0x80b),_0x313a4d(0x2209),'api',_0x313a4d(0xa87),'crudPermissions'];function _0x13feed(_0x41ea96,_0x5f0765,_0x5615d0,_0x3a4de8,_0x32863f,_0xd7d0d9,_0x360cda,_0x31abde){const _0x3afb0d=_0x313a4d,_0x421eb5=this;_0x421eb5['currentUser']=_0x360cda['getCurrentUser'](),_0x421eb5[_0x3afb0d(0xcef)]=[],_0x421eb5['title']=_0x3afb0d(0x2525)+(_0x3a4de8[_0x3afb0d(0x8f2)]||_0x3a4de8[_0x3afb0d(0x1873)])[_0x3afb0d(0x1c37)](),_0x421eb5[_0x3afb0d(0xa7c)]=angular[_0x3afb0d(0x235a)](_0x3a4de8),_0x421eb5[_0x3afb0d(0x2514)]=_0x31abde,_0x421eb5[_0x3afb0d(0x855)]={};if(_0x421eb5[_0x3afb0d(0xa7c)][_0x3afb0d(0x168a)])switch(_0x421eb5[_0x3afb0d(0xa7c)][_0x3afb0d(0x8f2)]?_0x421eb5[_0x3afb0d(0xa7c)][_0x3afb0d(0x8f2)][_0x3afb0d(0x256e)]():_0x421eb5[_0x3afb0d(0xa7c)][_0x3afb0d(0x1873)][_0x3afb0d(0x256e)]()){case _0x3afb0d(0x1802):break;case _0x3afb0d(0xeaa):{const _0x39f177=_0x421eb5[_0x3afb0d(0xa7c)]['appdata'][_0x3afb0d(0x10c8)](',');_0x421eb5[_0x3afb0d(0xa7c)][_0x3afb0d(0x2293)]=_0x39f177[0x0],_0x421eb5['close'][_0x3afb0d(0x90b)]=_0x39f177[0x1],_0x421eb5['close']['welcomemessage']=_0x39f177['slice'](0x2,_0x39f177[_0x3afb0d(0x402)])['join'](',');}break;case _0x3afb0d(0xa46):{const _0x18e620=_0x421eb5[_0x3afb0d(0xa7c)]['appdata'][_0x3afb0d(0x10c8)](',');_0x421eb5[_0x3afb0d(0xa7c)][_0x3afb0d(0x153a)]=_0x18e620[0x0],_0x421eb5['close']['clientEmail']=_0x18e620[0x1],_0x421eb5[_0x3afb0d(0xa7c)][_0x3afb0d(0x2217)]=_0x18e620[0x2],_0x421eb5['close'][_0x3afb0d(0x90b)]=_0x18e620[0x3],_0x421eb5[_0x3afb0d(0xa7c)][_0x3afb0d(0xaf3)]=_0x18e620['slice'](0x4,_0x18e620[_0x3afb0d(0x402)])[_0x3afb0d(0xb47)](',');}break;case _0x3afb0d(0x17d6):{const _0x11463b=_0x421eb5['close'][_0x3afb0d(0x168a)][_0x3afb0d(0x10c8)](',');_0x421eb5[_0x3afb0d(0xa7c)][_0x3afb0d(0x1651)]=_0x11463b[0x0],_0x421eb5[_0x3afb0d(0xa7c)][_0x3afb0d(0x252)]=_0x11463b[0x1],_0x421eb5['close'][_0x3afb0d(0x1039)]=_0x11463b[0x2],_0x421eb5['close'][_0x3afb0d(0x8dd)]=_0x11463b[0x3],_0x421eb5[_0x3afb0d(0xa7c)][_0x3afb0d(0xaf3)]=_0x11463b[_0x3afb0d(0x1298)](0x4,_0x11463b[_0x3afb0d(0x402)])[_0x3afb0d(0xb47)](',');}break;case _0x3afb0d(0x1713):{const _0x3e4c2c=_0x421eb5[_0x3afb0d(0xa7c)][_0x3afb0d(0x168a)][_0x3afb0d(0x10c8)](',');_0x421eb5['close'][_0x3afb0d(0x583)]=isNaN(_0x3e4c2c[0x0])?_0x3e4c2c[0x0]:parseInt(_0x3e4c2c[0x0],0xa),_0x421eb5['close'][_0x3afb0d(0xa8d)]=_0x3e4c2c['slice'](0x1,_0x3e4c2c['length'])['join'](',');}break;case _0x3afb0d(0x7fd):_0x421eb5[_0x3afb0d(0xa7c)][_0x3afb0d(0xa8d)]=_0x421eb5[_0x3afb0d(0xa7c)][_0x3afb0d(0x168a)];break;case _0x3afb0d(0x26ba):_0x421eb5[_0x3afb0d(0xa7c)][_0x3afb0d(0x19eb)]=_0x421eb5['close'][_0x3afb0d(0x168a)][_0x3afb0d(0x10c8)]('=')[0x0],_0x421eb5['close'][_0x3afb0d(0x175d)]=_0x421eb5['close'][_0x3afb0d(0x168a)][_0x3afb0d(0x10c8)]('=')[0x1];break;case _0x3afb0d(0x1ecb):_0x421eb5[_0x3afb0d(0xa7c)]['project']=_0x421eb5[_0x3afb0d(0xa7c)][_0x3afb0d(0x168a)];break;default:{const _0x394bd8=_0x421eb5['close'][_0x3afb0d(0x168a)][_0x3afb0d(0x10c8)](',');_0x421eb5[_0x3afb0d(0xa7c)][_0x3afb0d(0x9e1)]=_0x3f65c0()[_0x3afb0d(0x2635)](_0x394bd8[0x0])?_0x394bd8[0x0]:isNaN(_0x394bd8[0x0])?_0x394bd8[0x0]:parseInt(_0x394bd8[0x0],0xa);}break;}else{}_0x421eb5[_0x3afb0d(0xa7c)][_0x3afb0d(0x1142)]&&_0x421eb5[_0x3afb0d(0xa7c)][_0x3afb0d(0x1142)]['toLowerCase']()===_0x3afb0d(0xc9c)&&_0x421eb5[_0x3afb0d(0xa7c)][_0x3afb0d(0x8f2)]['toLowerCase']()===_0x3afb0d(0x3bb)&&(_0x421eb5[_0x3afb0d(0xa7c)][_0x3afb0d(0x1e12)]=_0x421eb5[_0x3afb0d(0xa7c)][_0x3afb0d(0x1d55)]?_0x421eb5['close']['phone'][_0x3afb0d(0x10c8)]('$')[0x0]:undefined,_0x421eb5[_0x3afb0d(0xa7c)][_0x3afb0d(0x1d43)]=_0x421eb5['close'][_0x3afb0d(0x11be)]?_0x3afb0d(0x1b60)+_0x421eb5['close'][_0x3afb0d(0x11be)]:undefined);_0x421eb5[_0x3afb0d(0x15de)]=_0x5ea119,_0x421eb5['closeDialog']=_0x4ea5ee;function _0x5ea119(){const _0xb4b2d4=_0x3afb0d;_0x421eb5[_0xb4b2d4(0xcef)]=[];const _0x805655=[];_0x421eb5[_0xb4b2d4(0xa7c)][_0xb4b2d4(0x1142)]&&_0x421eb5[_0xb4b2d4(0xa7c)][_0xb4b2d4(0x1142)][_0xb4b2d4(0x256e)]()==='outbound'&&_0x421eb5[_0xb4b2d4(0xa7c)][_0xb4b2d4(0x8f2)]===_0xb4b2d4(0x118b)&&(_0x421eb5['close']['phone']=_0x32863f[_0xb4b2d4(0x1274)]?(_0x421eb5[_0xb4b2d4(0xa7c)]['prefix']||'')+_0xb4b2d4(0x2147)+_0x32863f[_0xb4b2d4(0x1274)]+'}':(_0x421eb5['close'][_0xb4b2d4(0x1e12)]||'')+_0xb4b2d4(0x20df),_0x32863f[_0xb4b2d4(0x1425)]!==_0xb4b2d4(0x1642)?_0x421eb5[_0xb4b2d4(0xa7c)][_0xb4b2d4(0xa08)][_0xb4b2d4(0x172b)](_0xb4b2d4(0x1ea4))<0x0&&(_0x421eb5[_0xb4b2d4(0xa7c)][_0xb4b2d4(0xa08)]+=_0xb4b2d4(0x1ea4)):_0x421eb5[_0xb4b2d4(0xa7c)][_0xb4b2d4(0xa08)]=_0x421eb5[_0xb4b2d4(0xa7c)]['options'][_0xb4b2d4(0x5f4)](_0xb4b2d4(0x1ea4),''));if(_0x421eb5[_0xb4b2d4(0xa7c)][_0xb4b2d4(0x8f2)]&&_0x421eb5[_0xb4b2d4(0xa7c)][_0xb4b2d4(0x8f2)]==='custom'){}else switch((_0x421eb5[_0xb4b2d4(0xa7c)]['app']||_0x421eb5[_0xb4b2d4(0xa7c)][_0xb4b2d4(0x8f2)])[_0xb4b2d4(0x256e)]()){case _0xb4b2d4(0x26ba):_0x421eb5[_0xb4b2d4(0xa7c)][_0xb4b2d4(0x168a)]=_0x421eb5[_0xb4b2d4(0xa7c)][_0xb4b2d4(0x19eb)]+'='+_0x421eb5[_0xb4b2d4(0xa7c)][_0xb4b2d4(0x175d)];break;case _0xb4b2d4(0x1802):break;default:_0x805655[0x0]=_0x421eb5[_0xb4b2d4(0xa7c)][_0xb4b2d4(0x9e1)],_0x421eb5[_0xb4b2d4(0xa7c)][_0xb4b2d4(0x168a)]=_0x805655['join'](',');}_0x4ea5ee(_0x421eb5[_0xb4b2d4(0xa7c)]);}function _0x4ea5ee(_0x42f3c6){const _0x3dace1=_0x3afb0d;_0x41ea96[_0x3dace1(0x2458)](_0x42f3c6);}}const _0x569418=_0x13feed;;_0x3c5496[_0x313a4d(0x11c2)]=[_0x313a4d(0x10e8),'$q','toasty','smsAccountApp',_0x313a4d(0x2209),_0x313a4d(0x247f),'Auth',_0x313a4d(0x2514)];function _0x3c5496(_0x42a42e,_0x5f243b,_0x2b6a91,_0x2d076b,_0x1bbd84,_0x7228a5,_0x3ea22e,_0x1fa270){const _0x346cf2=_0x313a4d,_0x49afaf=this;_0x49afaf[_0x346cf2(0x2321)]=_0x3ea22e[_0x346cf2(0xb12)](),_0x49afaf[_0x346cf2(0xcef)]=[],_0x49afaf[_0x346cf2(0x1189)]=_0x346cf2(0x2525)+(_0x2d076b[_0x346cf2(0x8f2)]||_0x2d076b[_0x346cf2(0x1873)])['toUpperCase'](),_0x49afaf['dialogflow']=angular[_0x346cf2(0x235a)](_0x2d076b),_0x49afaf[_0x346cf2(0x2514)]=_0x1fa270,_0x49afaf[_0x346cf2(0x855)]={};if(_0x49afaf[_0x346cf2(0xeaa)][_0x346cf2(0x168a)])switch(_0x49afaf['dialogflow'][_0x346cf2(0x8f2)]?_0x49afaf[_0x346cf2(0xeaa)]['appType'][_0x346cf2(0x256e)]():_0x49afaf[_0x346cf2(0xeaa)][_0x346cf2(0x1873)][_0x346cf2(0x256e)]()){case _0x346cf2(0x1802):break;case _0x346cf2(0xeaa):{const _0x4db2b7=_0x49afaf[_0x346cf2(0xeaa)][_0x346cf2(0x168a)][_0x346cf2(0x10c8)](',');_0x49afaf[_0x346cf2(0xeaa)]['key']=_0x4db2b7[0x0],_0x49afaf['dialogflow'][_0x346cf2(0x90b)]=_0x4db2b7[0x1],_0x49afaf[_0x346cf2(0xeaa)][_0x346cf2(0xaf3)]=_0x4db2b7[_0x346cf2(0x1298)](0x2,_0x4db2b7[_0x346cf2(0x402)])[_0x346cf2(0xb47)](',');}break;case _0x346cf2(0xa46):{const _0x555b3d=_0x49afaf[_0x346cf2(0xeaa)]['appdata'][_0x346cf2(0x10c8)](',');_0x49afaf[_0x346cf2(0xeaa)][_0x346cf2(0x153a)]=_0x555b3d[0x0],_0x49afaf[_0x346cf2(0xeaa)][_0x346cf2(0x1392)]=_0x555b3d[0x1],_0x49afaf[_0x346cf2(0xeaa)][_0x346cf2(0x2217)]=_0x555b3d[0x2],_0x49afaf[_0x346cf2(0xeaa)][_0x346cf2(0x90b)]=_0x555b3d[0x3],_0x49afaf[_0x346cf2(0xeaa)]['welcomemessage']=_0x555b3d[_0x346cf2(0x1298)](0x4,_0x555b3d[_0x346cf2(0x402)])[_0x346cf2(0xb47)](',');}break;case'amazonlex':{const _0x24b11=_0x49afaf[_0x346cf2(0xeaa)]['appdata'][_0x346cf2(0x10c8)](',');_0x49afaf[_0x346cf2(0xeaa)]['accesskeyid']=_0x24b11[0x0],_0x49afaf[_0x346cf2(0xeaa)][_0x346cf2(0x252)]=_0x24b11[0x1],_0x49afaf['dialogflow']['lexregion']=_0x24b11[0x2],_0x49afaf[_0x346cf2(0xeaa)][_0x346cf2(0x8dd)]=_0x24b11[0x3],_0x49afaf[_0x346cf2(0xeaa)][_0x346cf2(0xaf3)]=_0x24b11[_0x346cf2(0x1298)](0x4,_0x24b11[_0x346cf2(0x402)])[_0x346cf2(0xb47)](',');}break;case'autoreply':{const _0x4e8484=_0x49afaf[_0x346cf2(0xeaa)]['appdata']['split'](',');_0x49afaf[_0x346cf2(0xeaa)]['times']=isNaN(_0x4e8484[0x0])?_0x4e8484[0x0]:parseInt(_0x4e8484[0x0],0xa),_0x49afaf[_0x346cf2(0xeaa)]['text']=_0x4e8484['slice'](0x1,_0x4e8484['length'])['join'](',');}break;case'message':_0x49afaf[_0x346cf2(0xeaa)][_0x346cf2(0xa8d)]=_0x49afaf[_0x346cf2(0xeaa)][_0x346cf2(0x168a)];break;case'set':_0x49afaf[_0x346cf2(0xeaa)]['name']=_0x49afaf['dialogflow'][_0x346cf2(0x168a)]['split']('=')[0x0],_0x49afaf[_0x346cf2(0xeaa)][_0x346cf2(0x175d)]=_0x49afaf[_0x346cf2(0xeaa)][_0x346cf2(0x168a)]['split']('=')[0x1];break;case'agi':_0x49afaf[_0x346cf2(0xeaa)][_0x346cf2(0x9e0)]=_0x49afaf[_0x346cf2(0xeaa)][_0x346cf2(0x168a)];break;default:{const _0x37f61f=_0x49afaf[_0x346cf2(0xeaa)][_0x346cf2(0x168a)][_0x346cf2(0x10c8)](',');_0x49afaf['dialogflow'][_0x346cf2(0x2293)]=_0x3f65c0()[_0x346cf2(0x2635)](_0x37f61f[0x0])?_0x37f61f[0x0]:isNaN(_0x37f61f[0x0])?_0x37f61f[0x0]:parseInt(_0x37f61f[0x0],0xa),_0x49afaf[_0x346cf2(0xeaa)][_0x346cf2(0x90b)]=_0x3f65c0()[_0x346cf2(0x2635)](_0x37f61f[0x1])?_0x37f61f[0x1]:isNaN(_0x37f61f[0x1])?_0x37f61f[0x1]:parseInt(_0x37f61f[0x1],0xa),_0x49afaf[_0x346cf2(0xeaa)][_0x346cf2(0xaf3)]=_0x3f65c0()[_0x346cf2(0x2635)](_0x37f61f[0x2])?_0x37f61f[0x2]:isNaN(_0x37f61f[0x2])?_0x37f61f[0x2]:parseInt(_0x37f61f[0x2],0xa);}break;}else _0x49afaf['dialogflow'][_0x346cf2(0x90b)]='en';_0x49afaf[_0x346cf2(0xeaa)][_0x346cf2(0x1142)]&&_0x49afaf['dialogflow'][_0x346cf2(0x1142)][_0x346cf2(0x256e)]()===_0x346cf2(0xc9c)&&_0x49afaf[_0x346cf2(0xeaa)][_0x346cf2(0x8f2)][_0x346cf2(0x256e)]()===_0x346cf2(0x3bb)&&(_0x49afaf['dialogflow'][_0x346cf2(0x1e12)]=_0x49afaf[_0x346cf2(0xeaa)][_0x346cf2(0x1d55)]?_0x49afaf['dialogflow'][_0x346cf2(0x1d55)][_0x346cf2(0x10c8)]('$')[0x0]:undefined,_0x49afaf[_0x346cf2(0xeaa)][_0x346cf2(0x1d43)]=_0x49afaf['dialogflow']['callerID']?_0x346cf2(0x1b60)+_0x49afaf[_0x346cf2(0xeaa)]['callerID']:undefined);_0x49afaf['saveSmsAccountApp']=_0x2b829a,_0x49afaf[_0x346cf2(0x13f3)]=_0x42876b;function _0x2b829a(){const _0x3640dc=_0x346cf2;_0x49afaf['errors']=[];const _0x3f7433=[];_0x49afaf[_0x3640dc(0xeaa)][_0x3640dc(0x1142)]&&_0x49afaf['dialogflow'][_0x3640dc(0x1142)][_0x3640dc(0x256e)]()===_0x3640dc(0xc9c)&&_0x49afaf[_0x3640dc(0xeaa)][_0x3640dc(0x8f2)]===_0x3640dc(0x118b)&&(_0x49afaf['dialogflow'][_0x3640dc(0x1d55)]=_0x1bbd84[_0x3640dc(0x1274)]?(_0x49afaf[_0x3640dc(0xeaa)][_0x3640dc(0x1e12)]||'')+'${EXTEN:'+_0x1bbd84[_0x3640dc(0x1274)]+'}':(_0x49afaf['dialogflow'][_0x3640dc(0x1e12)]||'')+_0x3640dc(0x20df),_0x1bbd84[_0x3640dc(0x1425)]!=='none'?_0x49afaf['dialogflow'][_0x3640dc(0xa08)][_0x3640dc(0x172b)]('U(xcally-mixmonitor-context)')<0x0&&(_0x49afaf['dialogflow'][_0x3640dc(0xa08)]+=_0x3640dc(0x1ea4)):_0x49afaf['dialogflow'][_0x3640dc(0xa08)]=_0x49afaf['dialogflow'][_0x3640dc(0xa08)]['replace'](_0x3640dc(0x1ea4),''));if(_0x49afaf['dialogflow'][_0x3640dc(0x8f2)]&&_0x49afaf[_0x3640dc(0xeaa)][_0x3640dc(0x8f2)]===_0x3640dc(0x1802)){}else switch((_0x49afaf['dialogflow']['app']||_0x49afaf[_0x3640dc(0xeaa)][_0x3640dc(0x8f2)])[_0x3640dc(0x256e)]()){case _0x3640dc(0x26ba):_0x49afaf[_0x3640dc(0xeaa)][_0x3640dc(0x168a)]=_0x49afaf[_0x3640dc(0xeaa)][_0x3640dc(0x19eb)]+'='+_0x49afaf['dialogflow'][_0x3640dc(0x175d)];break;case _0x3640dc(0x1802):break;default:_0x3f7433[0x0]=_0x49afaf[_0x3640dc(0xeaa)][_0x3640dc(0x2293)],_0x3f7433[0x1]=_0x49afaf['dialogflow'][_0x3640dc(0x90b)],_0x3f7433[0x2]=_0x49afaf['dialogflow'][_0x3640dc(0xaf3)],_0x49afaf[_0x3640dc(0xeaa)]['appdata']=_0x3f7433[_0x3640dc(0xb47)](',');}_0x42876b(_0x49afaf[_0x3640dc(0xeaa)]);}function _0x42876b(_0x29cbd0){_0x42a42e['hide'](_0x29cbd0);}}const _0x180367=_0x3c5496;;_0x439ec9[_0x313a4d(0x11c2)]=[_0x313a4d(0x10e8),'$q',_0x313a4d(0x1fe4),_0x313a4d(0x80b),_0x313a4d(0x2209),_0x313a4d(0x247f),_0x313a4d(0xa87),'crudPermissions'];function _0x439ec9(_0x19fc3d,_0x5a700b,_0x4c1969,_0x1d5c52,_0x3adda2,_0xb77347,_0x3061e8,_0x3110a7){const _0x4cbb43=_0x313a4d,_0x349c9=this;_0x349c9[_0x4cbb43(0x2321)]=_0x3061e8[_0x4cbb43(0xb12)](),_0x349c9[_0x4cbb43(0xcef)]=[],_0x349c9[_0x4cbb43(0x1189)]=_0x4cbb43(0x2525)+(_0x1d5c52[_0x4cbb43(0x8f2)]||_0x1d5c52[_0x4cbb43(0x1873)])[_0x4cbb43(0x1c37)](),_0x349c9[_0x4cbb43(0x609)]=angular['copy'](_0x1d5c52),_0x349c9['crudPermissions']=_0x3110a7,_0x349c9[_0x4cbb43(0x855)]={};if(_0x349c9[_0x4cbb43(0x609)][_0x4cbb43(0x168a)])switch(_0x349c9['gotoif'][_0x4cbb43(0x8f2)]?_0x349c9[_0x4cbb43(0x609)][_0x4cbb43(0x8f2)][_0x4cbb43(0x256e)]():_0x349c9[_0x4cbb43(0x609)][_0x4cbb43(0x1873)]['toLowerCase']()){case _0x4cbb43(0x1802):break;case _0x4cbb43(0xeaa):{const _0x19e844=_0x349c9[_0x4cbb43(0x609)][_0x4cbb43(0x168a)]['split'](',');_0x349c9[_0x4cbb43(0x609)]['key']=_0x19e844[0x0],_0x349c9[_0x4cbb43(0x609)]['language']=_0x19e844[0x1],_0x349c9[_0x4cbb43(0x609)][_0x4cbb43(0xaf3)]=_0x19e844[_0x4cbb43(0x1298)](0x2,_0x19e844[_0x4cbb43(0x402)])[_0x4cbb43(0xb47)](',');}break;case _0x4cbb43(0xa46):{const _0x451cf7=_0x349c9['gotoif'][_0x4cbb43(0x168a)][_0x4cbb43(0x10c8)](',');_0x349c9[_0x4cbb43(0x609)][_0x4cbb43(0x153a)]=_0x451cf7[0x0],_0x349c9[_0x4cbb43(0x609)]['clientEmail']=_0x451cf7[0x1],_0x349c9[_0x4cbb43(0x609)][_0x4cbb43(0x2217)]=_0x451cf7[0x2],_0x349c9[_0x4cbb43(0x609)][_0x4cbb43(0x90b)]=_0x451cf7[0x3],_0x349c9['gotoif'][_0x4cbb43(0xaf3)]=_0x451cf7[_0x4cbb43(0x1298)](0x4,_0x451cf7['length'])[_0x4cbb43(0xb47)](',');}break;case _0x4cbb43(0x17d6):{const _0x17a85b=_0x349c9['gotoif'][_0x4cbb43(0x168a)][_0x4cbb43(0x10c8)](',');_0x349c9['gotoif'][_0x4cbb43(0x1651)]=_0x17a85b[0x0],_0x349c9['gotoif']['secretaccesskey']=_0x17a85b[0x1],_0x349c9[_0x4cbb43(0x609)][_0x4cbb43(0x1039)]=_0x17a85b[0x2],_0x349c9[_0x4cbb43(0x609)][_0x4cbb43(0x8dd)]=_0x17a85b[0x3],_0x349c9[_0x4cbb43(0x609)]['welcomemessage']=_0x17a85b[_0x4cbb43(0x1298)](0x4,_0x17a85b['length'])['join'](',');}break;case _0x4cbb43(0x1713):{const _0x9f6c35=_0x349c9[_0x4cbb43(0x609)][_0x4cbb43(0x168a)][_0x4cbb43(0x10c8)](',');_0x349c9[_0x4cbb43(0x609)][_0x4cbb43(0x583)]=isNaN(_0x9f6c35[0x0])?_0x9f6c35[0x0]:parseInt(_0x9f6c35[0x0],0xa),_0x349c9[_0x4cbb43(0x609)][_0x4cbb43(0xa8d)]=_0x9f6c35['slice'](0x1,_0x9f6c35[_0x4cbb43(0x402)])['join'](',');}break;case _0x4cbb43(0x7fd):_0x349c9['gotoif'][_0x4cbb43(0xa8d)]=_0x349c9[_0x4cbb43(0x609)][_0x4cbb43(0x168a)];break;case _0x4cbb43(0x26ba):_0x349c9[_0x4cbb43(0x609)][_0x4cbb43(0x19eb)]=_0x349c9[_0x4cbb43(0x609)]['appdata'][_0x4cbb43(0x10c8)]('=')[0x0],_0x349c9[_0x4cbb43(0x609)]['value']=_0x349c9[_0x4cbb43(0x609)]['appdata'][_0x4cbb43(0x10c8)]('=')[0x1];break;case _0x4cbb43(0x1ecb):_0x349c9[_0x4cbb43(0x609)][_0x4cbb43(0x9e0)]=_0x349c9[_0x4cbb43(0x609)][_0x4cbb43(0x168a)];break;default:{const _0x5310cd=_0x349c9[_0x4cbb43(0x609)][_0x4cbb43(0x168a)][_0x4cbb43(0x10c8)](',');_0x349c9[_0x4cbb43(0x609)][_0x4cbb43(0x115f)]=_0x3f65c0()[_0x4cbb43(0x2635)](_0x5310cd[0x0])?_0x5310cd[0x0]:isNaN(_0x5310cd[0x0])?_0x5310cd[0x0]:parseInt(_0x5310cd[0x0],0xa),_0x349c9['gotoif'][_0x4cbb43(0x1d78)]=_0x3f65c0()['isEmpty'](_0x5310cd[0x1])?_0x5310cd[0x1]:isNaN(_0x5310cd[0x1])?_0x5310cd[0x1]:parseInt(_0x5310cd[0x1],0xa),_0x349c9[_0x4cbb43(0x609)][_0x4cbb43(0x28e1)]=_0x3f65c0()[_0x4cbb43(0x2635)](_0x5310cd[0x2])?_0x5310cd[0x2]:isNaN(_0x5310cd[0x2])?_0x5310cd[0x2]:parseInt(_0x5310cd[0x2],0xa);}break;}else{}_0x349c9[_0x4cbb43(0x609)][_0x4cbb43(0x1142)]&&_0x349c9[_0x4cbb43(0x609)]['type'][_0x4cbb43(0x256e)]()===_0x4cbb43(0xc9c)&&_0x349c9[_0x4cbb43(0x609)][_0x4cbb43(0x8f2)][_0x4cbb43(0x256e)]()===_0x4cbb43(0x3bb)&&(_0x349c9[_0x4cbb43(0x609)][_0x4cbb43(0x1e12)]=_0x349c9['gotoif']['phone']?_0x349c9[_0x4cbb43(0x609)]['phone'][_0x4cbb43(0x10c8)]('$')[0x0]:undefined,_0x349c9[_0x4cbb43(0x609)][_0x4cbb43(0x1d43)]=_0x349c9[_0x4cbb43(0x609)][_0x4cbb43(0x11be)]?_0x4cbb43(0x1b60)+_0x349c9[_0x4cbb43(0x609)][_0x4cbb43(0x11be)]:undefined);_0x349c9['saveSmsAccountApp']=_0x5a48af,_0x349c9[_0x4cbb43(0x13f3)]=_0x413823;function _0x5a48af(){const _0x3cf0cd=_0x4cbb43;_0x349c9[_0x3cf0cd(0xcef)]=[];const _0x421a8e=[];_0x349c9['gotoif'][_0x3cf0cd(0x1142)]&&_0x349c9[_0x3cf0cd(0x609)]['type'][_0x3cf0cd(0x256e)]()===_0x3cf0cd(0xc9c)&&_0x349c9[_0x3cf0cd(0x609)][_0x3cf0cd(0x8f2)]==='outboundDial'&&(_0x349c9['gotoif'][_0x3cf0cd(0x1d55)]=_0x3adda2[_0x3cf0cd(0x1274)]?(_0x349c9[_0x3cf0cd(0x609)]['prefix']||'')+'${EXTEN:'+_0x3adda2[_0x3cf0cd(0x1274)]+'}':(_0x349c9[_0x3cf0cd(0x609)][_0x3cf0cd(0x1e12)]||'')+_0x3cf0cd(0x20df),_0x3adda2[_0x3cf0cd(0x1425)]!==_0x3cf0cd(0x1642)?_0x349c9[_0x3cf0cd(0x609)][_0x3cf0cd(0xa08)][_0x3cf0cd(0x172b)](_0x3cf0cd(0x1ea4))<0x0&&(_0x349c9[_0x3cf0cd(0x609)][_0x3cf0cd(0xa08)]+='U(xcally-mixmonitor-context)'):_0x349c9[_0x3cf0cd(0x609)][_0x3cf0cd(0xa08)]=_0x349c9['gotoif'][_0x3cf0cd(0xa08)][_0x3cf0cd(0x5f4)](_0x3cf0cd(0x1ea4),''));if(_0x349c9[_0x3cf0cd(0x609)][_0x3cf0cd(0x8f2)]&&_0x349c9[_0x3cf0cd(0x609)][_0x3cf0cd(0x8f2)]==='custom'){}else switch((_0x349c9['gotoif']['app']||_0x349c9[_0x3cf0cd(0x609)][_0x3cf0cd(0x8f2)])['toLowerCase']()){case _0x3cf0cd(0x26ba):_0x349c9[_0x3cf0cd(0x609)][_0x3cf0cd(0x168a)]=_0x349c9['gotoif'][_0x3cf0cd(0x19eb)]+'='+_0x349c9[_0x3cf0cd(0x609)][_0x3cf0cd(0x175d)];break;case _0x3cf0cd(0x1802):break;default:_0x421a8e[0x0]=_0x349c9[_0x3cf0cd(0x609)][_0x3cf0cd(0x115f)],_0x421a8e[0x1]=_0x349c9[_0x3cf0cd(0x609)][_0x3cf0cd(0x1d78)],_0x421a8e[0x2]=_0x349c9[_0x3cf0cd(0x609)][_0x3cf0cd(0x28e1)],_0x349c9['gotoif'][_0x3cf0cd(0x168a)]=_0x421a8e['join'](',');}_0x413823(_0x349c9['gotoif']);}function _0x413823(_0x534469){_0x19fc3d['hide'](_0x534469);}}const _0x4ec7ff=_0x439ec9;;_0x256d1d[_0x313a4d(0x11c2)]=[_0x313a4d(0x10e8),'$q','toasty',_0x313a4d(0x80b),_0x313a4d(0x2209),_0x313a4d(0x247f),_0x313a4d(0xa87),'crudPermissions'];function _0x256d1d(_0x2f9fad,_0x2fe023,_0x8fe89d,_0x16c319,_0x53fb1c,_0x5159a7,_0x33debd,_0x3e75bf){const _0x5c7044=_0x313a4d,_0x23300a=this;_0x23300a['currentUser']=_0x33debd[_0x5c7044(0xb12)](),_0x23300a[_0x5c7044(0xcef)]=[],_0x23300a[_0x5c7044(0x1189)]=_0x5c7044(0x2525)+(_0x16c319[_0x5c7044(0x8f2)]||_0x16c319[_0x5c7044(0x1873)])[_0x5c7044(0x1c37)](),_0x23300a[_0x5c7044(0x28f4)]=angular['copy'](_0x16c319),_0x23300a[_0x5c7044(0x2514)]=_0x3e75bf,_0x23300a[_0x5c7044(0x855)]={};if(_0x23300a[_0x5c7044(0x28f4)]['appdata'])switch(_0x23300a['gotop'][_0x5c7044(0x8f2)]?_0x23300a[_0x5c7044(0x28f4)][_0x5c7044(0x8f2)][_0x5c7044(0x256e)]():_0x23300a[_0x5c7044(0x28f4)]['app'][_0x5c7044(0x256e)]()){case _0x5c7044(0x1802):break;case _0x5c7044(0xeaa):{const _0x440f03=_0x23300a[_0x5c7044(0x28f4)]['appdata'][_0x5c7044(0x10c8)](',');_0x23300a[_0x5c7044(0x28f4)]['key']=_0x440f03[0x0],_0x23300a['gotop'][_0x5c7044(0x90b)]=_0x440f03[0x1],_0x23300a[_0x5c7044(0x28f4)][_0x5c7044(0xaf3)]=_0x440f03['slice'](0x2,_0x440f03[_0x5c7044(0x402)])[_0x5c7044(0xb47)](',');}break;case _0x5c7044(0xa46):{const _0x4daca6=_0x23300a[_0x5c7044(0x28f4)][_0x5c7044(0x168a)][_0x5c7044(0x10c8)](',');_0x23300a[_0x5c7044(0x28f4)]['projectId']=_0x4daca6[0x0],_0x23300a[_0x5c7044(0x28f4)][_0x5c7044(0x1392)]=_0x4daca6[0x1],_0x23300a[_0x5c7044(0x28f4)][_0x5c7044(0x2217)]=_0x4daca6[0x2],_0x23300a[_0x5c7044(0x28f4)][_0x5c7044(0x90b)]=_0x4daca6[0x3],_0x23300a[_0x5c7044(0x28f4)]['welcomemessage']=_0x4daca6[_0x5c7044(0x1298)](0x4,_0x4daca6[_0x5c7044(0x402)])[_0x5c7044(0xb47)](',');}break;case'amazonlex':{const _0x4691e8=_0x23300a[_0x5c7044(0x28f4)][_0x5c7044(0x168a)][_0x5c7044(0x10c8)](',');_0x23300a['gotop'][_0x5c7044(0x1651)]=_0x4691e8[0x0],_0x23300a['gotop'][_0x5c7044(0x252)]=_0x4691e8[0x1],_0x23300a[_0x5c7044(0x28f4)][_0x5c7044(0x1039)]=_0x4691e8[0x2],_0x23300a[_0x5c7044(0x28f4)]['botname']=_0x4691e8[0x3],_0x23300a[_0x5c7044(0x28f4)][_0x5c7044(0xaf3)]=_0x4691e8['slice'](0x4,_0x4691e8['length'])[_0x5c7044(0xb47)](',');}break;case _0x5c7044(0x1713):{const _0x527de9=_0x23300a[_0x5c7044(0x28f4)]['appdata'][_0x5c7044(0x10c8)](',');_0x23300a['gotop'][_0x5c7044(0x583)]=isNaN(_0x527de9[0x0])?_0x527de9[0x0]:parseInt(_0x527de9[0x0],0xa),_0x23300a['gotop']['text']=_0x527de9[_0x5c7044(0x1298)](0x1,_0x527de9[_0x5c7044(0x402)])[_0x5c7044(0xb47)](',');}break;case _0x5c7044(0x7fd):_0x23300a[_0x5c7044(0x28f4)][_0x5c7044(0xa8d)]=_0x23300a['gotop'][_0x5c7044(0x168a)];break;case _0x5c7044(0x26ba):_0x23300a['gotop'][_0x5c7044(0x19eb)]=_0x23300a['gotop'][_0x5c7044(0x168a)][_0x5c7044(0x10c8)]('=')[0x0],_0x23300a['gotop'][_0x5c7044(0x175d)]=_0x23300a['gotop'][_0x5c7044(0x168a)][_0x5c7044(0x10c8)]('=')[0x1];break;case'agi':_0x23300a['gotop'][_0x5c7044(0x9e0)]=_0x23300a[_0x5c7044(0x28f4)][_0x5c7044(0x168a)];break;default:{const _0x38e92c=_0x23300a[_0x5c7044(0x28f4)]['appdata'][_0x5c7044(0x10c8)](',');_0x23300a[_0x5c7044(0x28f4)]['priority']=_0x3f65c0()[_0x5c7044(0x2635)](_0x38e92c[0x0])?_0x38e92c[0x0]:isNaN(_0x38e92c[0x0])?_0x38e92c[0x0]:parseInt(_0x38e92c[0x0],0xa);}break;}else{}_0x23300a['gotop'][_0x5c7044(0x1142)]&&_0x23300a['gotop'][_0x5c7044(0x1142)][_0x5c7044(0x256e)]()===_0x5c7044(0xc9c)&&_0x23300a['gotop'][_0x5c7044(0x8f2)]['toLowerCase']()==='outbounddial'&&(_0x23300a[_0x5c7044(0x28f4)]['prefix']=_0x23300a['gotop']['phone']?_0x23300a[_0x5c7044(0x28f4)][_0x5c7044(0x1d55)][_0x5c7044(0x10c8)]('$')[0x0]:undefined,_0x23300a[_0x5c7044(0x28f4)][_0x5c7044(0x1d43)]=_0x23300a[_0x5c7044(0x28f4)]['callerID']?_0x5c7044(0x1b60)+_0x23300a[_0x5c7044(0x28f4)]['callerID']:undefined);_0x23300a[_0x5c7044(0x15de)]=_0x7bc7a3,_0x23300a['closeDialog']=_0x867ccb;function _0x7bc7a3(){const _0x3ceb3e=_0x5c7044;_0x23300a[_0x3ceb3e(0xcef)]=[];const _0x537dd6=[];_0x23300a[_0x3ceb3e(0x28f4)][_0x3ceb3e(0x1142)]&&_0x23300a['gotop'][_0x3ceb3e(0x1142)][_0x3ceb3e(0x256e)]()===_0x3ceb3e(0xc9c)&&_0x23300a['gotop'][_0x3ceb3e(0x8f2)]===_0x3ceb3e(0x118b)&&(_0x23300a[_0x3ceb3e(0x28f4)][_0x3ceb3e(0x1d55)]=_0x53fb1c[_0x3ceb3e(0x1274)]?(_0x23300a[_0x3ceb3e(0x28f4)][_0x3ceb3e(0x1e12)]||'')+_0x3ceb3e(0x2147)+_0x53fb1c[_0x3ceb3e(0x1274)]+'}':(_0x23300a[_0x3ceb3e(0x28f4)][_0x3ceb3e(0x1e12)]||'')+_0x3ceb3e(0x20df),_0x53fb1c[_0x3ceb3e(0x1425)]!==_0x3ceb3e(0x1642)?_0x23300a[_0x3ceb3e(0x28f4)][_0x3ceb3e(0xa08)]['indexOf']('U(xcally-mixmonitor-context)')<0x0&&(_0x23300a['gotop'][_0x3ceb3e(0xa08)]+=_0x3ceb3e(0x1ea4)):_0x23300a[_0x3ceb3e(0x28f4)][_0x3ceb3e(0xa08)]=_0x23300a[_0x3ceb3e(0x28f4)][_0x3ceb3e(0xa08)]['replace'](_0x3ceb3e(0x1ea4),''));if(_0x23300a[_0x3ceb3e(0x28f4)][_0x3ceb3e(0x8f2)]&&_0x23300a[_0x3ceb3e(0x28f4)][_0x3ceb3e(0x8f2)]===_0x3ceb3e(0x1802)){}else switch((_0x23300a[_0x3ceb3e(0x28f4)][_0x3ceb3e(0x1873)]||_0x23300a[_0x3ceb3e(0x28f4)][_0x3ceb3e(0x8f2)])[_0x3ceb3e(0x256e)]()){case'set':_0x23300a[_0x3ceb3e(0x28f4)][_0x3ceb3e(0x168a)]=_0x23300a[_0x3ceb3e(0x28f4)][_0x3ceb3e(0x19eb)]+'='+_0x23300a['gotop'][_0x3ceb3e(0x175d)];break;case _0x3ceb3e(0x1802):break;default:_0x537dd6[0x0]=_0x23300a[_0x3ceb3e(0x28f4)][_0x3ceb3e(0xa6a)],_0x23300a[_0x3ceb3e(0x28f4)][_0x3ceb3e(0x168a)]=_0x537dd6[_0x3ceb3e(0xb47)](',');}_0x867ccb(_0x23300a[_0x3ceb3e(0x28f4)]);}function _0x867ccb(_0x3ba6b9){const _0x37d135=_0x5c7044;_0x2f9fad[_0x37d135(0x2458)](_0x3ba6b9);}}const _0x5b07fa=_0x256d1d;;_0x3f7767['$inject']=[_0x313a4d(0x1862),_0x313a4d(0x10e8),_0x313a4d(0x1c7e),_0x313a4d(0x15f6),_0x313a4d(0x2765),'intervals',_0x313a4d(0x1fe4),'api',_0x313a4d(0xa87),_0x313a4d(0x2514)];function _0x3f7767(_0x4248d3,_0x471b4b,_0x4f3670,_0x9a0228,_0x33af6,_0x50baa3,_0x1ebc82,_0x25d3e4,_0x270886,_0x5a2dd4){const _0x274113=_0x313a4d,_0x5a35c1=this;_0x5a35c1[_0x274113(0x2321)]=_0x270886[_0x274113(0xb12)](),_0x5a35c1[_0x274113(0xcef)]=[],_0x5a35c1[_0x274113(0x1189)]=_0x274113(0x56d),_0x5a35c1[_0x274113(0x2765)]=angular['copy'](_0x33af6),_0x5a35c1[_0x274113(0x278f)]=_0x50baa3,_0x5a35c1[_0x274113(0xa76)]=![],_0x5a35c1[_0x274113(0x1960)]=[_0x274113(0xd85),_0x274113(0x1802),'list'],_0x5a35c1[_0x274113(0x2514)]=_0x5a2dd4,_0x5a35c1[_0x274113(0x1e35)]=_0x9a0228[_0x274113(0x2045)](),_0x5a35c1['monthNumber']=_0x9a0228['getMonthNumber'](),_0x5a35c1['monthName']=_0x9a0228[_0x274113(0x18b6)](),_0x5a35c1[_0x274113(0x15f1)]=_0x9a0228[_0x274113(0x1421)]();if(!_0x5a35c1[_0x274113(0x2765)])_0x5a35c1['interval']={'interval':_0x274113(0x1559)},_0x5a35c1[_0x274113(0x1142)]='always',_0x5a35c1['title']=_0x274113(0x79c),_0x5a35c1['newInterval']=!![];else{if(_0x5a35c1[_0x274113(0x2765)][_0x274113(0x2765)]!==_0x274113(0x1559)){_0x5a35c1[_0x274113(0x1142)]='custom';const _0x80b682=_0x5a35c1['interval'][_0x274113(0x2765)]['split'](','),_0x5b5453=_0x80b682[0x0],_0x52665e=_0x80b682[0x1],_0x417141=_0x80b682[0x2],_0x18931e=_0x80b682[0x3];if(_0x5b5453!=='*'){const _0x2179dd=_0x5b5453[_0x274113(0x10c8)]('-')[0x0],_0x1c71f1=_0x5b5453[_0x274113(0x10c8)]('-')[0x1];let _0x3ad620;_0x3ad620=new Date(),_0x3ad620[_0x274113(0x25cd)](Number(_0x2179dd[_0x274113(0x10c8)](':')[0x0])),_0x3ad620[_0x274113(0x2348)](Number(_0x2179dd[_0x274113(0x10c8)](':')[0x1])),_0x5a35c1[_0x274113(0x2469)]=_0x3ad620,_0x3ad620=new Date(),_0x3ad620[_0x274113(0x25cd)](Number(_0x1c71f1[_0x274113(0x10c8)](':')[0x0])),_0x3ad620[_0x274113(0x2348)](Number(_0x1c71f1['split'](':')[0x1])),_0x5a35c1[_0x274113(0x637)]=_0x3ad620;}_0x52665e!=='*'&&(_0x5a35c1['dayOfWeekFrom']=_0x52665e[_0x274113(0x10c8)]('-')[0x0],_0x5a35c1[_0x274113(0x27a1)]=_0x52665e[_0x274113(0x10c8)]('-')[0x1]),_0x417141!=='*'&&(_0x5a35c1['monthDayFrom']=_0x417141[_0x274113(0x10c8)]('-')[0x0],_0x5a35c1['monthDayTo']=_0x417141['split']('-')[0x1]),_0x18931e!=='*'&&(_0x5a35c1[_0x274113(0x167)]=_0x18931e[_0x274113(0x10c8)]('-')[0x0],_0x5a35c1[_0x274113(0x9c3)]=_0x18931e['split']('-')[0x1]);}else _0x5a35c1[_0x274113(0x1142)]=_0x274113(0xd85);}_0x4248d3[_0x274113(0x16a)]['id']&&!_0x5a35c1['interval'][_0x274113(0xea)]&&(_0x5a35c1[_0x274113(0x2765)][_0x274113(0x1ff2)]=_0x4248d3[_0x274113(0x16a)]['id']);_0x5a35c1[_0x274113(0x2765)][_0x274113(0x1ff2)]&&_0x5a35c1['interval']['application']&&(_0x5a35c1[_0x274113(0x1142)]=_0x274113(0x25f4));_0x5a35c1[_0x274113(0x2f0)]=_0x5262c0,_0x5a35c1[_0x274113(0x1242)]=_0x4873ba,_0x5a35c1[_0x274113(0x13f3)]=_0x3919c3;_0x5a35c1['interval'][_0x274113(0xea)]&&(_0x270886['hasRole'](_0x274113(0x174b))?_0x25d3e4[_0x274113(0x2765)][_0x274113(0x16b4)]({'fields':'id,name,interval,IntervalId','IntervalId':_0x274113(0x203c),'nolimit':!![]})[_0x274113(0x2945)][_0x274113(0x146b)](function(_0x4e9b3c){const _0x46a8e7=_0x274113;_0x5a35c1[_0x46a8e7(0x278f)]=_0x4e9b3c[_0x46a8e7(0x19c7)]||[];})['catch'](function(_0x566c80){const _0x5c6c3b=_0x274113;_0x1ebc82[_0x5c6c3b(0x1980)]({'title':_0x566c80[_0x5c6c3b(0x107b)]?_0x5c6c3b(0x262a)+_0x566c80['status']+_0x5c6c3b(0x1315)+_0x566c80[_0x5c6c3b(0x167f)]:'SYSTEM:GET_INTERVALS','msg':_0x566c80[_0x5c6c3b(0x524)]?JSON[_0x5c6c3b(0x10bb)](_0x566c80[_0x5c6c3b(0x524)]):_0x566c80[_0x5c6c3b(0xd5f)]()});}):_0x25d3e4[_0x274113(0x2765)][_0x274113(0x16b4)]({'fields':_0x274113(0x648),'IntervalId':_0x274113(0x203c),'nolimit':!![]})[_0x274113(0x2945)][_0x274113(0x146b)](function(_0x150495){const _0x3f0ce2=_0x274113;_0x5a35c1[_0x3f0ce2(0x278f)]=_0x150495[_0x3f0ce2(0x19c7)]||[];})[_0x274113(0x146b)](function(){const _0x1dd0ca=_0x274113;return _0x25d3e4['userProfileSection']['get']({'userProfileId':_0x5a35c1['currentUser'][_0x1dd0ca(0x209a)],'sectionId':0x3ec})[_0x1dd0ca(0x2945)];})['then'](function(_0x11e485){const _0x1893d4=_0x274113,_0x4d1c70=_0x11e485&&_0x11e485[_0x1893d4(0x19c7)]?_0x11e485[_0x1893d4(0x19c7)][0x0]:null;if(!_0x4d1c70)_0x5a35c1[_0x1893d4(0x278f)]=[];else{if(!_0x4d1c70[_0x1893d4(0x11d2)])return _0x25d3e4[_0x1893d4(0xdcc)]['get']({'sectionId':_0x4d1c70['id']})[_0x1893d4(0x2945)][_0x1893d4(0x146b)](function(_0x581b8e){const _0x456573=_0x1893d4,_0x9059e2=_0x581b8e&&_0x581b8e[_0x456573(0x19c7)]?_0x581b8e[_0x456573(0x19c7)]:[],_0x3b3fcc=[];let _0x298ce3=null;_0x5a35c1[_0x456573(0x2765)]&&(_0x298ce3=_0x3f65c0()[_0x456573(0xc84)](_0x5a35c1[_0x456573(0x278f)],{'name':_0x5a35c1[_0x456573(0x2765)]['IntervalId']})),_0x298ce3&&!_0x3f65c0()[_0x456573(0x1360)](_0x9059e2,[_0x456573(0x18b8),_0x298ce3['id']])&&_0x5a35c1['intervals'][_0x456573(0x1df5)](function(_0x385e89){const _0x585db1=_0x456573;_0x385e89['id']===_0x298ce3['id']&&(_0x385e89[_0x585db1(0x8ff)]=![],_0x3b3fcc['push'](_0x385e89));}),_0x5a35c1[_0x456573(0x278f)]=_0x3b3fcc;});}})[_0x274113(0x129e)](function(_0x5534ed){const _0x2911b9=_0x274113;_0x1ebc82['error']({'title':_0x5534ed[_0x2911b9(0x107b)]?_0x2911b9(0x262a)+_0x5534ed[_0x2911b9(0x107b)]+'\x20-\x20'+_0x5534ed[_0x2911b9(0x167f)]:_0x2911b9(0x603),'msg':_0x5534ed[_0x2911b9(0x524)]?JSON['stringify'](_0x5534ed[_0x2911b9(0x524)]):_0x5534ed[_0x2911b9(0xd5f)]()});}));function _0x964cf3(){const _0x3944fa=_0x274113;switch(_0x5a35c1[_0x3944fa(0x1142)]){case _0x3944fa(0xd85):case'list':return'*,*,*,*';case _0x3944fa(0x1802):{const _0x36be6f=[];if(_0x5a35c1['timeRangeFrom']!=='*'&&_0x5a35c1['timeRangeFrom']&&_0x5a35c1[_0x3944fa(0x637)]){const _0x47083c=(_0x5a35c1[_0x3944fa(0x2469)][_0x3944fa(0x1d57)]()<0xa?'0':'')+_0x5a35c1['timeRangeFrom'][_0x3944fa(0x1d57)]()+':'+((_0x5a35c1[_0x3944fa(0x2469)][_0x3944fa(0x7fc)]()<0xa?'0':'')+_0x5a35c1[_0x3944fa(0x2469)][_0x3944fa(0x7fc)]()),_0x2a33e6=(_0x5a35c1[_0x3944fa(0x637)][_0x3944fa(0x1d57)]()<0xa?'0':'')+_0x5a35c1[_0x3944fa(0x637)][_0x3944fa(0x1d57)]()+':'+((_0x5a35c1[_0x3944fa(0x637)][_0x3944fa(0x7fc)]()<0xa?'0':'')+_0x5a35c1[_0x3944fa(0x637)][_0x3944fa(0x7fc)]());_0x36be6f[_0x3944fa(0x1f47)](_0x47083c+'-'+_0x2a33e6);}else _0x36be6f[_0x3944fa(0x1f47)]('*');return _0x5a35c1[_0x3944fa(0x1455)]?_0x5a35c1['dayOfWeekTo']?_0x36be6f[_0x3944fa(0x1f47)](_0x5a35c1['dayOfWeekFrom']+'-'+_0x5a35c1[_0x3944fa(0x27a1)]):_0x36be6f[_0x3944fa(0x1f47)](_0x5a35c1[_0x3944fa(0x1455)]):_0x36be6f[_0x3944fa(0x1f47)]('*'),_0x5a35c1[_0x3944fa(0xf0b)]?_0x5a35c1[_0x3944fa(0x896)]?_0x36be6f[_0x3944fa(0x1f47)](_0x5a35c1[_0x3944fa(0xf0b)]+'-'+_0x5a35c1[_0x3944fa(0x896)]):_0x36be6f[_0x3944fa(0x1f47)](_0x5a35c1['monthDayFrom']):_0x36be6f[_0x3944fa(0x1f47)]('*'),_0x5a35c1[_0x3944fa(0x167)]?_0x5a35c1['monthTo']?_0x36be6f[_0x3944fa(0x1f47)](_0x5a35c1[_0x3944fa(0x167)]+'-'+_0x5a35c1[_0x3944fa(0x9c3)]):_0x36be6f[_0x3944fa(0x1f47)](_0x5a35c1[_0x3944fa(0x167)]):_0x36be6f['push']('*'),_0x36be6f['join']();}}}function _0x5262c0(){const _0x36b175=_0x274113;_0x5a35c1[_0x36b175(0xcef)]=[],_0x5a35c1[_0x36b175(0x2765)][_0x36b175(0x2765)]=_0x964cf3(),_0x25d3e4[_0x36b175(0x2765)]['save'](_0x5a35c1[_0x36b175(0x2765)])[_0x36b175(0x2945)][_0x36b175(0x146b)](function(_0x675f07){const _0x3ac424=_0x36b175;_0x5a35c1[_0x3ac424(0x278f)][_0x3ac424(0x1f47)](_0x675f07),_0x1ebc82[_0x3ac424(0x1c75)]({'title':_0x3ac424(0x17f5),'msg':_0x5a35c1['interval'][_0x3ac424(0x19eb)]?_0x5a35c1[_0x3ac424(0x2765)][_0x3ac424(0x19eb)]+_0x3ac424(0x1386):''}),_0x3919c3();})['catch'](function(_0x2fa538){const _0x441c84=_0x36b175;console[_0x441c84(0x1980)](_0x2fa538),_0x5a35c1[_0x441c84(0xcef)]=_0x2fa538[_0x441c84(0x524)]['errors']||[{'message':_0x2fa538[_0x441c84(0xd5f)](),'type':_0x441c84(0x7e7)}];});}function _0x4873ba(){const _0x45491a=_0x274113;_0x5a35c1[_0x45491a(0xcef)]=[],_0x5a35c1[_0x45491a(0x2765)][_0x45491a(0x2765)]=_0x964cf3(),_0x5a35c1[_0x45491a(0x2765)][_0x45491a(0xea)]?(_0x5a35c1[_0x45491a(0x1142)]!==_0x45491a(0x25f4)&&(_0x5a35c1[_0x45491a(0x2765)]['IntervalId']=null),_0x3919c3(_0x5a35c1[_0x45491a(0x2765)])):_0x25d3e4[_0x45491a(0x2765)][_0x45491a(0x18e1)]({'id':_0x5a35c1['interval']['id']},_0x5a35c1[_0x45491a(0x2765)])['$promise'][_0x45491a(0x146b)](function(_0x56f310){const _0x2bfd1d=_0x45491a,_0x1ec1b7=_0x3f65c0()['find'](_0x5a35c1[_0x2bfd1d(0x278f)],{'id':_0x56f310['id']});_0x1ec1b7&&_0x3f65c0()['merge'](_0x1ec1b7,_0x56f310),_0x1ebc82['success']({'title':_0x2bfd1d(0x1d51),'msg':_0x2bfd1d(0x97a)}),_0x3919c3();})['catch'](function(_0x39b0f3){const _0x15fb2e=_0x45491a;console[_0x15fb2e(0x1980)](_0x39b0f3),_0x5a35c1[_0x15fb2e(0xcef)]=_0x39b0f3[_0x15fb2e(0x524)][_0x15fb2e(0xcef)]||[{'message':_0x39b0f3['toString'](),'type':_0x15fb2e(0x1fbe)}];});}function _0x3919c3(_0x217b0a){const _0x1bdb2e=_0x274113;_0x471b4b[_0x1bdb2e(0x2458)](_0x217b0a);}}const _0x1fa463=_0x3f7767;;_0x1ffb07[_0x313a4d(0x11c2)]=[_0x313a4d(0x10e8),'$q',_0x313a4d(0x1fe4),'smsAccountApp',_0x313a4d(0x2209),_0x313a4d(0x247f),'Auth','crudPermissions'];function _0x1ffb07(_0x5cc7ed,_0x3dfa6c,_0xc236f3,_0xd1b89,_0xf46b5e,_0x39a7d6,_0x26dd9e,_0x127c59){const _0x4ea6f5=_0x313a4d,_0x4c85de=this;_0x4c85de[_0x4ea6f5(0x2321)]=_0x26dd9e['getCurrentUser'](),_0x4c85de['errors']=[],_0x4c85de[_0x4ea6f5(0x1189)]=_0x4ea6f5(0x2525)+(_0xd1b89[_0x4ea6f5(0x8f2)]||_0xd1b89[_0x4ea6f5(0x1873)])['toUpperCase'](),_0x4c85de[_0x4ea6f5(0x309)]=angular[_0x4ea6f5(0x235a)](_0xd1b89),_0x4c85de[_0x4ea6f5(0x2514)]=_0x127c59,_0x4c85de[_0x4ea6f5(0x855)]={};if(_0x4c85de[_0x4ea6f5(0x309)]['appdata'])switch(_0x4c85de[_0x4ea6f5(0x309)][_0x4ea6f5(0x8f2)]?_0x4c85de[_0x4ea6f5(0x309)][_0x4ea6f5(0x8f2)][_0x4ea6f5(0x256e)]():_0x4c85de[_0x4ea6f5(0x309)][_0x4ea6f5(0x1873)][_0x4ea6f5(0x256e)]()){case _0x4ea6f5(0x1802):break;case'dialogflow':{const _0x1c64c6=_0x4c85de[_0x4ea6f5(0x309)][_0x4ea6f5(0x168a)][_0x4ea6f5(0x10c8)](',');_0x4c85de[_0x4ea6f5(0x309)][_0x4ea6f5(0x2293)]=_0x1c64c6[0x0],_0x4c85de['noop'][_0x4ea6f5(0x90b)]=_0x1c64c6[0x1],_0x4c85de[_0x4ea6f5(0x309)][_0x4ea6f5(0xaf3)]=_0x1c64c6[_0x4ea6f5(0x1298)](0x2,_0x1c64c6[_0x4ea6f5(0x402)])['join'](',');}break;case'dialogflowv2':{const _0x23ecfb=_0x4c85de[_0x4ea6f5(0x309)][_0x4ea6f5(0x168a)][_0x4ea6f5(0x10c8)](',');_0x4c85de[_0x4ea6f5(0x309)]['projectId']=_0x23ecfb[0x0],_0x4c85de[_0x4ea6f5(0x309)][_0x4ea6f5(0x1392)]=_0x23ecfb[0x1],_0x4c85de[_0x4ea6f5(0x309)]['privateKey']=_0x23ecfb[0x2],_0x4c85de['noop'][_0x4ea6f5(0x90b)]=_0x23ecfb[0x3],_0x4c85de[_0x4ea6f5(0x309)][_0x4ea6f5(0xaf3)]=_0x23ecfb[_0x4ea6f5(0x1298)](0x4,_0x23ecfb['length'])['join'](',');}break;case _0x4ea6f5(0x17d6):{const _0x1dfc2b=_0x4c85de[_0x4ea6f5(0x309)][_0x4ea6f5(0x168a)][_0x4ea6f5(0x10c8)](',');_0x4c85de['noop'][_0x4ea6f5(0x1651)]=_0x1dfc2b[0x0],_0x4c85de[_0x4ea6f5(0x309)]['secretaccesskey']=_0x1dfc2b[0x1],_0x4c85de[_0x4ea6f5(0x309)][_0x4ea6f5(0x1039)]=_0x1dfc2b[0x2],_0x4c85de[_0x4ea6f5(0x309)][_0x4ea6f5(0x8dd)]=_0x1dfc2b[0x3],_0x4c85de[_0x4ea6f5(0x309)]['welcomemessage']=_0x1dfc2b[_0x4ea6f5(0x1298)](0x4,_0x1dfc2b[_0x4ea6f5(0x402)])[_0x4ea6f5(0xb47)](',');}break;case'autoreply':{const _0xa69079=_0x4c85de[_0x4ea6f5(0x309)][_0x4ea6f5(0x168a)]['split'](',');_0x4c85de[_0x4ea6f5(0x309)]['times']=isNaN(_0xa69079[0x0])?_0xa69079[0x0]:parseInt(_0xa69079[0x0],0xa),_0x4c85de['noop'][_0x4ea6f5(0xa8d)]=_0xa69079[_0x4ea6f5(0x1298)](0x1,_0xa69079['length'])[_0x4ea6f5(0xb47)](',');}break;case _0x4ea6f5(0x7fd):_0x4c85de[_0x4ea6f5(0x309)][_0x4ea6f5(0xa8d)]=_0x4c85de[_0x4ea6f5(0x309)]['appdata'];break;case'set':_0x4c85de[_0x4ea6f5(0x309)]['name']=_0x4c85de[_0x4ea6f5(0x309)][_0x4ea6f5(0x168a)][_0x4ea6f5(0x10c8)]('=')[0x0],_0x4c85de[_0x4ea6f5(0x309)][_0x4ea6f5(0x175d)]=_0x4c85de[_0x4ea6f5(0x309)][_0x4ea6f5(0x168a)][_0x4ea6f5(0x10c8)]('=')[0x1];break;case _0x4ea6f5(0x1ecb):_0x4c85de[_0x4ea6f5(0x309)][_0x4ea6f5(0x9e0)]=_0x4c85de[_0x4ea6f5(0x309)][_0x4ea6f5(0x168a)];break;default:{const _0x1f960c=_0x4c85de[_0x4ea6f5(0x309)][_0x4ea6f5(0x168a)][_0x4ea6f5(0x10c8)](',');_0x4c85de[_0x4ea6f5(0x309)][_0x4ea6f5(0x175d)]=_0x3f65c0()[_0x4ea6f5(0x2635)](_0x1f960c[0x0])?_0x1f960c[0x0]:isNaN(_0x1f960c[0x0])?_0x1f960c[0x0]:parseInt(_0x1f960c[0x0],0xa);}break;}else{}_0x4c85de['noop'][_0x4ea6f5(0x1142)]&&_0x4c85de[_0x4ea6f5(0x309)]['type']['toLowerCase']()===_0x4ea6f5(0xc9c)&&_0x4c85de[_0x4ea6f5(0x309)][_0x4ea6f5(0x8f2)][_0x4ea6f5(0x256e)]()===_0x4ea6f5(0x3bb)&&(_0x4c85de[_0x4ea6f5(0x309)][_0x4ea6f5(0x1e12)]=_0x4c85de['noop'][_0x4ea6f5(0x1d55)]?_0x4c85de[_0x4ea6f5(0x309)][_0x4ea6f5(0x1d55)][_0x4ea6f5(0x10c8)]('$')[0x0]:undefined,_0x4c85de[_0x4ea6f5(0x309)][_0x4ea6f5(0x1d43)]=_0x4c85de[_0x4ea6f5(0x309)][_0x4ea6f5(0x11be)]?_0x4ea6f5(0x1b60)+_0x4c85de[_0x4ea6f5(0x309)][_0x4ea6f5(0x11be)]:undefined);_0x4c85de[_0x4ea6f5(0x15de)]=_0xc71483,_0x4c85de['closeDialog']=_0x6eb29e;function _0xc71483(){const _0xd0c0b4=_0x4ea6f5;_0x4c85de[_0xd0c0b4(0xcef)]=[];const _0x5bddb6=[];_0x4c85de['noop'][_0xd0c0b4(0x1142)]&&_0x4c85de[_0xd0c0b4(0x309)][_0xd0c0b4(0x1142)]['toLowerCase']()===_0xd0c0b4(0xc9c)&&_0x4c85de['noop'][_0xd0c0b4(0x8f2)]==='outboundDial'&&(_0x4c85de['noop'][_0xd0c0b4(0x1d55)]=_0xf46b5e[_0xd0c0b4(0x1274)]?(_0x4c85de[_0xd0c0b4(0x309)][_0xd0c0b4(0x1e12)]||'')+'${EXTEN:'+_0xf46b5e[_0xd0c0b4(0x1274)]+'}':(_0x4c85de['noop'][_0xd0c0b4(0x1e12)]||'')+'${EXTEN}',_0xf46b5e[_0xd0c0b4(0x1425)]!=='none'?_0x4c85de[_0xd0c0b4(0x309)]['options'][_0xd0c0b4(0x172b)](_0xd0c0b4(0x1ea4))<0x0&&(_0x4c85de[_0xd0c0b4(0x309)]['options']+=_0xd0c0b4(0x1ea4)):_0x4c85de[_0xd0c0b4(0x309)][_0xd0c0b4(0xa08)]=_0x4c85de[_0xd0c0b4(0x309)]['options'][_0xd0c0b4(0x5f4)]('U(xcally-mixmonitor-context)',''));if(_0x4c85de[_0xd0c0b4(0x309)][_0xd0c0b4(0x8f2)]&&_0x4c85de[_0xd0c0b4(0x309)][_0xd0c0b4(0x8f2)]===_0xd0c0b4(0x1802)){}else switch((_0x4c85de['noop'][_0xd0c0b4(0x1873)]||_0x4c85de[_0xd0c0b4(0x309)]['appType'])[_0xd0c0b4(0x256e)]()){case _0xd0c0b4(0x26ba):_0x4c85de[_0xd0c0b4(0x309)][_0xd0c0b4(0x168a)]=_0x4c85de[_0xd0c0b4(0x309)]['name']+'='+_0x4c85de[_0xd0c0b4(0x309)]['value'];break;case'custom':break;default:_0x5bddb6[0x0]=_0x4c85de['noop'][_0xd0c0b4(0x175d)],_0x4c85de['noop'][_0xd0c0b4(0x168a)]=_0x5bddb6[_0xd0c0b4(0xb47)](',');}_0x6eb29e(_0x4c85de[_0xd0c0b4(0x309)]);}function _0x6eb29e(_0x5577bc){_0x5cc7ed['hide'](_0x5577bc);}}const _0x56c747=_0x1ffb07;;_0x803c72[_0x313a4d(0x11c2)]=['$mdDialog','$q',_0x313a4d(0x1fe4),_0x313a4d(0x80b),_0x313a4d(0x2209),_0x313a4d(0x247f),_0x313a4d(0xa87),_0x313a4d(0x2514)];function _0x803c72(_0x3db7c3,_0x1c8f7e,_0x5f1bd8,_0x5f54ef,_0x4f798b,_0x1d0191,_0x580e6d,_0x2e5875){const _0x2cbe24=_0x313a4d,_0x2f992a=this;_0x2f992a[_0x2cbe24(0x2321)]=_0x580e6d[_0x2cbe24(0xb12)](),_0x2f992a[_0x2cbe24(0xcef)]=[],_0x2f992a['title']=_0x2cbe24(0x2525)+(_0x5f54ef[_0x2cbe24(0x8f2)]||_0x5f54ef['app'])[_0x2cbe24(0x1c37)](),_0x2f992a[_0x2cbe24(0x1c72)]=angular[_0x2cbe24(0x235a)](_0x5f54ef),_0x2f992a[_0x2cbe24(0x2514)]=_0x2e5875,_0x2f992a['hasModulePermissions']={};if(_0x2f992a[_0x2cbe24(0x1c72)]['appdata'])switch(_0x2f992a[_0x2cbe24(0x1c72)][_0x2cbe24(0x8f2)]?_0x2f992a[_0x2cbe24(0x1c72)][_0x2cbe24(0x8f2)]['toLowerCase']():_0x2f992a[_0x2cbe24(0x1c72)][_0x2cbe24(0x1873)][_0x2cbe24(0x256e)]()){case _0x2cbe24(0x1802):break;case'dialogflow':{const _0x163ea6=_0x2f992a[_0x2cbe24(0x1c72)][_0x2cbe24(0x168a)][_0x2cbe24(0x10c8)](',');_0x2f992a[_0x2cbe24(0x1c72)][_0x2cbe24(0x2293)]=_0x163ea6[0x0],_0x2f992a[_0x2cbe24(0x1c72)][_0x2cbe24(0x90b)]=_0x163ea6[0x1],_0x2f992a[_0x2cbe24(0x1c72)][_0x2cbe24(0xaf3)]=_0x163ea6[_0x2cbe24(0x1298)](0x2,_0x163ea6[_0x2cbe24(0x402)])['join'](',');}break;case _0x2cbe24(0xa46):{const _0x3589ee=_0x2f992a['queue'][_0x2cbe24(0x168a)][_0x2cbe24(0x10c8)](',');_0x2f992a['queue']['projectId']=_0x3589ee[0x0],_0x2f992a['queue']['clientEmail']=_0x3589ee[0x1],_0x2f992a['queue']['privateKey']=_0x3589ee[0x2],_0x2f992a[_0x2cbe24(0x1c72)][_0x2cbe24(0x90b)]=_0x3589ee[0x3],_0x2f992a[_0x2cbe24(0x1c72)][_0x2cbe24(0xaf3)]=_0x3589ee[_0x2cbe24(0x1298)](0x4,_0x3589ee[_0x2cbe24(0x402)])[_0x2cbe24(0xb47)](',');}break;case _0x2cbe24(0x17d6):{const _0x3027d5=_0x2f992a[_0x2cbe24(0x1c72)]['appdata'][_0x2cbe24(0x10c8)](',');_0x2f992a[_0x2cbe24(0x1c72)][_0x2cbe24(0x1651)]=_0x3027d5[0x0],_0x2f992a[_0x2cbe24(0x1c72)][_0x2cbe24(0x252)]=_0x3027d5[0x1],_0x2f992a[_0x2cbe24(0x1c72)][_0x2cbe24(0x1039)]=_0x3027d5[0x2],_0x2f992a['queue'][_0x2cbe24(0x8dd)]=_0x3027d5[0x3],_0x2f992a[_0x2cbe24(0x1c72)][_0x2cbe24(0xaf3)]=_0x3027d5['slice'](0x4,_0x3027d5['length'])['join'](',');}break;case'autoreply':{const _0x128bc1=_0x2f992a[_0x2cbe24(0x1c72)][_0x2cbe24(0x168a)][_0x2cbe24(0x10c8)](',');_0x2f992a[_0x2cbe24(0x1c72)]['times']=isNaN(_0x128bc1[0x0])?_0x128bc1[0x0]:parseInt(_0x128bc1[0x0],0xa),_0x2f992a[_0x2cbe24(0x1c72)]['text']=_0x128bc1[_0x2cbe24(0x1298)](0x1,_0x128bc1[_0x2cbe24(0x402)])[_0x2cbe24(0xb47)](',');}break;case _0x2cbe24(0x7fd):_0x2f992a[_0x2cbe24(0x1c72)][_0x2cbe24(0xa8d)]=_0x2f992a[_0x2cbe24(0x1c72)][_0x2cbe24(0x168a)];break;case _0x2cbe24(0x26ba):_0x2f992a[_0x2cbe24(0x1c72)][_0x2cbe24(0x19eb)]=_0x2f992a[_0x2cbe24(0x1c72)]['appdata']['split']('=')[0x0],_0x2f992a[_0x2cbe24(0x1c72)][_0x2cbe24(0x175d)]=_0x2f992a['queue'][_0x2cbe24(0x168a)][_0x2cbe24(0x10c8)]('=')[0x1];break;case _0x2cbe24(0x1ecb):_0x2f992a['queue']['project']=_0x2f992a[_0x2cbe24(0x1c72)][_0x2cbe24(0x168a)];break;default:{const _0x3988ec=_0x2f992a[_0x2cbe24(0x1c72)]['appdata'][_0x2cbe24(0x10c8)](',');_0x2f992a[_0x2cbe24(0x1c72)][_0x2cbe24(0x1c72)]=_0x3f65c0()[_0x2cbe24(0x2635)](_0x3988ec[0x0])?_0x3988ec[0x0]:isNaN(_0x3988ec[0x0])?_0x3988ec[0x0]:parseInt(_0x3988ec[0x0],0xa),_0x2f992a[_0x2cbe24(0x1c72)][_0x2cbe24(0xa9c)]=_0x3f65c0()[_0x2cbe24(0x2635)](_0x3988ec[0x1])?_0x3988ec[0x1]:isNaN(_0x3988ec[0x1])?_0x3988ec[0x1]:parseInt(_0x3988ec[0x1],0xa);}break;}else _0x2f992a['queue']['queue']=0x12c,_0x2f992a[_0x2cbe24(0x1c72)][_0x2cbe24(0xa9c)]=0x12c;_0x2f992a[_0x2cbe24(0x1c72)][_0x2cbe24(0x1142)]&&_0x2f992a['queue']['type'][_0x2cbe24(0x256e)]()===_0x2cbe24(0xc9c)&&_0x2f992a[_0x2cbe24(0x1c72)][_0x2cbe24(0x8f2)]['toLowerCase']()===_0x2cbe24(0x3bb)&&(_0x2f992a[_0x2cbe24(0x1c72)]['prefix']=_0x2f992a[_0x2cbe24(0x1c72)]['phone']?_0x2f992a[_0x2cbe24(0x1c72)][_0x2cbe24(0x1d55)][_0x2cbe24(0x10c8)]('$')[0x0]:undefined,_0x2f992a[_0x2cbe24(0x1c72)][_0x2cbe24(0x1d43)]=_0x2f992a[_0x2cbe24(0x1c72)][_0x2cbe24(0x11be)]?'CALLERID(all)='+_0x2f992a['queue'][_0x2cbe24(0x11be)]:undefined);_0x2f992a[_0x2cbe24(0x15de)]=_0x1f6f00,_0x2f992a[_0x2cbe24(0x13f3)]=_0x18c28f,_0x580e6d['hasRole']('admin')?_0x1d0191[_0x2cbe24(0xf80)][_0x2cbe24(0x16b4)]({'fields':_0x2cbe24(0x45e),'sort':_0x2cbe24(0x19eb),'nolimit':'true'})[_0x2cbe24(0x2945)][_0x2cbe24(0x146b)](function(_0x33e533){const _0x4be603=_0x2cbe24;_0x2f992a[_0x4be603(0x1b32)]=_0x33e533[_0x4be603(0x19c7)]||[];})['catch'](function(_0xfe30c0){const _0x408033=_0x2cbe24;_0x5f1bd8[_0x408033(0x1980)]({'title':_0xfe30c0[_0x408033(0x107b)]?_0x408033(0x262a)+_0xfe30c0[_0x408033(0x107b)]+_0x408033(0x1315)+_0xfe30c0[_0x408033(0x167f)]:_0x408033(0x22d8),'msg':_0xfe30c0[_0x408033(0x524)]?JSON['stringify'](_0xfe30c0[_0x408033(0x524)]):_0xfe30c0[_0x408033(0xd5f)]()});}):_0x1d0191['smsQueue'][_0x2cbe24(0x16b4)]({'fields':_0x2cbe24(0x45e),'sort':_0x2cbe24(0x19eb),'nolimit':_0x2cbe24(0x1185)})[_0x2cbe24(0x2945)]['then'](function(_0x2a50a6){const _0x351d21=_0x2cbe24;_0x2f992a[_0x351d21(0x1b32)]=_0x2a50a6[_0x351d21(0x19c7)]||[];})[_0x2cbe24(0x146b)](function(){const _0x147113=_0x2cbe24;return _0x1d0191[_0x147113(0x1366)]['get']({'userProfileId':_0x2f992a[_0x147113(0x2321)][_0x147113(0x209a)],'sectionId':0x2bd})['$promise'];})[_0x2cbe24(0x146b)](function(_0x53946d){const _0x147bb3=_0x2cbe24,_0x2f5e4f=_0x53946d&&_0x53946d['rows']?_0x53946d[_0x147bb3(0x19c7)][0x0]:null;if(!_0x2f5e4f){const _0x58e3a2=[];let _0x178aaf=null;_0x2f992a[_0x147bb3(0x1c72)]&&(_0x178aaf=_0x3f65c0()[_0x147bb3(0xc84)](_0x2f992a['queues'],{'name':_0x2f992a[_0x147bb3(0x1c72)][_0x147bb3(0x1c72)]}));for(let _0x38747c=0x0;_0x38747c<_0x2f992a[_0x147bb3(0x1b32)][_0x147bb3(0x402)];_0x38747c++){_0x178aaf&&_0x2f992a['queues'][_0x38747c]['id']===_0x178aaf['id']&&(_0x2f992a[_0x147bb3(0x1b32)][_0x38747c][_0x147bb3(0x8ff)]=![],_0x58e3a2[_0x147bb3(0x1f47)](_0x2f992a[_0x147bb3(0x1b32)][_0x38747c]));}_0x2f992a['queues']=_0x58e3a2;}else{if(!_0x2f5e4f['autoAssociation'])return _0x1d0191[_0x147bb3(0xdcc)][_0x147bb3(0x16b4)]({'sectionId':_0x2f5e4f['id']})['$promise']['then'](function(_0x4337f3){const _0x4b19a9=_0x147bb3,_0xe09803=_0x3f65c0()[_0x4b19a9(0x205)](_0x4337f3[_0x4b19a9(0x19c7)],function(_0x4856f1){const _0x3e1799=_0x4b19a9;return _0x3f65c0()[_0x3e1799(0xc84)](_0x2f992a['queues'],{'id':_0x4856f1[_0x3e1799(0x18b8)]});});let _0x3a93d2=null;_0x2f992a[_0x4b19a9(0x1c72)]&&(_0x3a93d2=_0x3f65c0()[_0x4b19a9(0xc84)](_0x2f992a[_0x4b19a9(0x1b32)],{'name':_0x2f992a[_0x4b19a9(0x1c72)][_0x4b19a9(0x1c72)]}));if(_0x3a93d2&&!_0x3f65c0()[_0x4b19a9(0x1360)](_0xe09803,['id',_0x3a93d2['id']])){const _0x336b91=_0x3f65c0()[_0x4b19a9(0xc84)](_0x2f992a[_0x4b19a9(0x1b32)],{'id':_0x3a93d2['id']});_0x336b91[_0x4b19a9(0x8ff)]=![],_0xe09803[_0x4b19a9(0x1f47)](_0x336b91);}_0x2f992a[_0x4b19a9(0x1b32)]=_0xe09803;});}})['catch'](function(_0x5ec55b){const _0x313c0d=_0x2cbe24;_0x5f1bd8[_0x313c0d(0x1980)]({'title':_0x5ec55b['status']?_0x313c0d(0x262a)+_0x5ec55b[_0x313c0d(0x107b)]+_0x313c0d(0x1315)+_0x5ec55b['statusText']:_0x313c0d(0x561),'msg':_0x5ec55b[_0x313c0d(0x524)]?JSON['stringify'](_0x5ec55b[_0x313c0d(0x524)]):_0x5ec55b[_0x313c0d(0xd5f)]()});});function _0x1f6f00(){const _0x1a4913=_0x2cbe24;_0x2f992a[_0x1a4913(0xcef)]=[];const _0x53a877=[];_0x2f992a[_0x1a4913(0x1c72)][_0x1a4913(0x1142)]&&_0x2f992a['queue'][_0x1a4913(0x1142)]['toLowerCase']()===_0x1a4913(0xc9c)&&_0x2f992a[_0x1a4913(0x1c72)][_0x1a4913(0x8f2)]===_0x1a4913(0x118b)&&(_0x2f992a[_0x1a4913(0x1c72)][_0x1a4913(0x1d55)]=_0x4f798b[_0x1a4913(0x1274)]?(_0x2f992a[_0x1a4913(0x1c72)][_0x1a4913(0x1e12)]||'')+_0x1a4913(0x2147)+_0x4f798b[_0x1a4913(0x1274)]+'}':(_0x2f992a['queue']['prefix']||'')+_0x1a4913(0x20df),_0x4f798b[_0x1a4913(0x1425)]!==_0x1a4913(0x1642)?_0x2f992a['queue'][_0x1a4913(0xa08)][_0x1a4913(0x172b)](_0x1a4913(0x1ea4))<0x0&&(_0x2f992a[_0x1a4913(0x1c72)][_0x1a4913(0xa08)]+=_0x1a4913(0x1ea4)):_0x2f992a[_0x1a4913(0x1c72)][_0x1a4913(0xa08)]=_0x2f992a[_0x1a4913(0x1c72)][_0x1a4913(0xa08)][_0x1a4913(0x5f4)](_0x1a4913(0x1ea4),''));const _0x24d75c=_0x3f65c0()['find'](_0x2f992a[_0x1a4913(0x1b32)],{'name':_0x2f992a[_0x1a4913(0x1c72)][_0x1a4913(0x1c72)]});_0x24d75c&&(_0x2f992a[_0x1a4913(0x1c72)][_0x3f65c0()[_0x1a4913(0x83f)](_0x1a4913(0x929))+'QueueId']=_0x24d75c['id']);if(_0x2f992a[_0x1a4913(0x1c72)][_0x1a4913(0x8f2)]&&_0x2f992a['queue'][_0x1a4913(0x8f2)]==='custom'){}else switch((_0x2f992a[_0x1a4913(0x1c72)]['app']||_0x2f992a[_0x1a4913(0x1c72)][_0x1a4913(0x8f2)])[_0x1a4913(0x256e)]()){case _0x1a4913(0x26ba):_0x2f992a[_0x1a4913(0x1c72)]['appdata']=_0x2f992a['queue'][_0x1a4913(0x19eb)]+'='+_0x2f992a[_0x1a4913(0x1c72)]['value'];break;case _0x1a4913(0x1802):break;default:_0x53a877[0x0]=_0x2f992a[_0x1a4913(0x1c72)]['queue'],_0x53a877[0x1]=_0x2f992a[_0x1a4913(0x1c72)][_0x1a4913(0xa9c)],_0x2f992a[_0x1a4913(0x1c72)][_0x1a4913(0x168a)]=_0x53a877[_0x1a4913(0xb47)](',');}_0x18c28f(_0x2f992a[_0x1a4913(0x1c72)]);}function _0x18c28f(_0x5c2a1e){const _0x4aefc=_0x2cbe24;_0x3db7c3[_0x4aefc(0x2458)](_0x5c2a1e);}}const _0x4f8b24=_0x803c72;;_0x5321ec['$inject']=['$mdDialog','$q',_0x313a4d(0x1fe4),'smsAccountApp','smsAccount',_0x313a4d(0x247f),'Auth','crudPermissions'];function _0x5321ec(_0x362f41,_0x498b56,_0x2f113f,_0x190d02,_0x4f15b4,_0x5ab21b,_0x3af938,_0x59f6f7){const _0xd60eba=_0x313a4d,_0x1498f3=this;_0x1498f3[_0xd60eba(0x2321)]=_0x3af938[_0xd60eba(0xb12)](),_0x1498f3[_0xd60eba(0xcef)]=[],_0x1498f3[_0xd60eba(0x1189)]=_0xd60eba(0x2525)+(_0x190d02[_0xd60eba(0x8f2)]||_0x190d02[_0xd60eba(0x1873)])[_0xd60eba(0x1c37)](),_0x1498f3['system']=angular['copy'](_0x190d02),_0x1498f3['crudPermissions']=_0x59f6f7,_0x1498f3['hasModulePermissions']={};if(_0x1498f3[_0xd60eba(0x1d47)]['appdata'])switch(_0x1498f3[_0xd60eba(0x1d47)][_0xd60eba(0x8f2)]?_0x1498f3[_0xd60eba(0x1d47)][_0xd60eba(0x8f2)][_0xd60eba(0x256e)]():_0x1498f3[_0xd60eba(0x1d47)][_0xd60eba(0x1873)][_0xd60eba(0x256e)]()){case'custom':break;case _0xd60eba(0xeaa):{const _0x31ee77=_0x1498f3[_0xd60eba(0x1d47)][_0xd60eba(0x168a)][_0xd60eba(0x10c8)](',');_0x1498f3[_0xd60eba(0x1d47)][_0xd60eba(0x2293)]=_0x31ee77[0x0],_0x1498f3[_0xd60eba(0x1d47)][_0xd60eba(0x90b)]=_0x31ee77[0x1],_0x1498f3[_0xd60eba(0x1d47)][_0xd60eba(0xaf3)]=_0x31ee77[_0xd60eba(0x1298)](0x2,_0x31ee77[_0xd60eba(0x402)])['join'](',');}break;case'dialogflowv2':{const _0x102a0f=_0x1498f3[_0xd60eba(0x1d47)]['appdata'][_0xd60eba(0x10c8)](',');_0x1498f3['system'][_0xd60eba(0x153a)]=_0x102a0f[0x0],_0x1498f3[_0xd60eba(0x1d47)][_0xd60eba(0x1392)]=_0x102a0f[0x1],_0x1498f3[_0xd60eba(0x1d47)]['privateKey']=_0x102a0f[0x2],_0x1498f3['system']['language']=_0x102a0f[0x3],_0x1498f3[_0xd60eba(0x1d47)][_0xd60eba(0xaf3)]=_0x102a0f['slice'](0x4,_0x102a0f[_0xd60eba(0x402)])['join'](',');}break;case _0xd60eba(0x17d6):{const _0x1775f3=_0x1498f3['system']['appdata'][_0xd60eba(0x10c8)](',');_0x1498f3['system'][_0xd60eba(0x1651)]=_0x1775f3[0x0],_0x1498f3['system'][_0xd60eba(0x252)]=_0x1775f3[0x1],_0x1498f3[_0xd60eba(0x1d47)][_0xd60eba(0x1039)]=_0x1775f3[0x2],_0x1498f3[_0xd60eba(0x1d47)][_0xd60eba(0x8dd)]=_0x1775f3[0x3],_0x1498f3[_0xd60eba(0x1d47)][_0xd60eba(0xaf3)]=_0x1775f3[_0xd60eba(0x1298)](0x4,_0x1775f3[_0xd60eba(0x402)])[_0xd60eba(0xb47)](',');}break;case _0xd60eba(0x1713):{const _0x344fef=_0x1498f3[_0xd60eba(0x1d47)]['appdata']['split'](',');_0x1498f3[_0xd60eba(0x1d47)][_0xd60eba(0x583)]=isNaN(_0x344fef[0x0])?_0x344fef[0x0]:parseInt(_0x344fef[0x0],0xa),_0x1498f3[_0xd60eba(0x1d47)][_0xd60eba(0xa8d)]=_0x344fef[_0xd60eba(0x1298)](0x1,_0x344fef[_0xd60eba(0x402)])[_0xd60eba(0xb47)](',');}break;case _0xd60eba(0x7fd):_0x1498f3[_0xd60eba(0x1d47)][_0xd60eba(0xa8d)]=_0x1498f3[_0xd60eba(0x1d47)][_0xd60eba(0x168a)];break;case _0xd60eba(0x26ba):_0x1498f3[_0xd60eba(0x1d47)][_0xd60eba(0x19eb)]=_0x1498f3[_0xd60eba(0x1d47)][_0xd60eba(0x168a)][_0xd60eba(0x10c8)]('=')[0x0],_0x1498f3['system']['value']=_0x1498f3[_0xd60eba(0x1d47)]['appdata']['split']('=')[0x1];break;case _0xd60eba(0x1ecb):_0x1498f3['system'][_0xd60eba(0x9e0)]=_0x1498f3['system'][_0xd60eba(0x168a)];break;default:{const _0x2f15c8=_0x1498f3['system'][_0xd60eba(0x168a)]['split'](',');_0x1498f3[_0xd60eba(0x1d47)]['command']=_0x3f65c0()[_0xd60eba(0x2635)](_0x2f15c8[0x0])?_0x2f15c8[0x0]:isNaN(_0x2f15c8[0x0])?_0x2f15c8[0x0]:parseInt(_0x2f15c8[0x0],0xa),_0x1498f3[_0xd60eba(0x1d47)]['variable']=_0x3f65c0()['isEmpty'](_0x2f15c8[0x1])?_0x2f15c8[0x1]:isNaN(_0x2f15c8[0x1])?_0x2f15c8[0x1]:parseInt(_0x2f15c8[0x1],0xa);}break;}else _0x1498f3[_0xd60eba(0x1d47)][_0xd60eba(0x212)]='';_0x1498f3['system']['type']&&_0x1498f3[_0xd60eba(0x1d47)]['type'][_0xd60eba(0x256e)]()===_0xd60eba(0xc9c)&&_0x1498f3['system'][_0xd60eba(0x8f2)][_0xd60eba(0x256e)]()===_0xd60eba(0x3bb)&&(_0x1498f3[_0xd60eba(0x1d47)][_0xd60eba(0x1e12)]=_0x1498f3[_0xd60eba(0x1d47)][_0xd60eba(0x1d55)]?_0x1498f3[_0xd60eba(0x1d47)][_0xd60eba(0x1d55)]['split']('$')[0x0]:undefined,_0x1498f3[_0xd60eba(0x1d47)][_0xd60eba(0x1d43)]=_0x1498f3[_0xd60eba(0x1d47)][_0xd60eba(0x11be)]?_0xd60eba(0x1b60)+_0x1498f3[_0xd60eba(0x1d47)][_0xd60eba(0x11be)]:undefined);_0x1498f3[_0xd60eba(0x15de)]=_0x1ab4c6,_0x1498f3[_0xd60eba(0x13f3)]=_0x115cfb,_0x3af938[_0xd60eba(0x23e0)](_0xd60eba(0x174b))?_0x5ab21b[_0xd60eba(0x212)][_0xd60eba(0x16b4)]({'fields':_0xd60eba(0x7a7),'sort':_0xd60eba(0x19eb),'nolimit':_0xd60eba(0x1185)})['$promise'][_0xd60eba(0x146b)](function(_0x9a3b1e){const _0x578b4e=_0xd60eba;_0x1498f3[_0x578b4e(0x85b)]=_0x9a3b1e[_0x578b4e(0x19c7)]||[];})['catch'](function(_0x3de282){const _0xfbdccf=_0xd60eba;_0x2f113f['error']({'title':_0x3de282['status']?'API:'+_0x3de282[_0xfbdccf(0x107b)]+_0xfbdccf(0x1315)+_0x3de282[_0xfbdccf(0x167f)]:_0xfbdccf(0x84b),'msg':_0x3de282[_0xfbdccf(0x524)]?JSON['stringify'](_0x3de282[_0xfbdccf(0x524)]):_0x3de282['toString']()});}):_0x5ab21b[_0xd60eba(0x212)][_0xd60eba(0x16b4)]({'fields':_0xd60eba(0x7a7),'sort':'name','nolimit':_0xd60eba(0x1185)})[_0xd60eba(0x2945)][_0xd60eba(0x146b)](function(_0xb6b7d8){const _0x2509a3=_0xd60eba;_0x1498f3[_0x2509a3(0x85b)]=_0xb6b7d8['rows']||[];})[_0xd60eba(0x146b)](function(){const _0x3470f4=_0xd60eba;return _0x5ab21b[_0x3470f4(0x1366)][_0x3470f4(0x16b4)]({'userProfileId':_0x1498f3['currentUser'][_0x3470f4(0x209a)],'sectionId':0x3f4})[_0x3470f4(0x2945)];})['then'](function(_0x3bb447){const _0x10b48a=_0xd60eba,_0x4ee182=_0x3bb447&&_0x3bb447[_0x10b48a(0x19c7)]?_0x3bb447[_0x10b48a(0x19c7)][0x0]:null;if(!_0x4ee182){const _0xc2423f=[];let _0x257dad=null;_0x1498f3[_0x10b48a(0x1d47)]&&(_0x257dad=_0x3f65c0()[_0x10b48a(0xc84)](_0x1498f3['variables'],{'name':_0x1498f3[_0x10b48a(0x1d47)][_0x10b48a(0x212)]}));for(let _0x281b0d=0x0;_0x281b0d<_0x1498f3[_0x10b48a(0x85b)][_0x10b48a(0x402)];_0x281b0d++){_0x257dad&&_0x1498f3[_0x10b48a(0x85b)][_0x281b0d]['id']===_0x257dad['id']&&(_0x1498f3[_0x10b48a(0x85b)][_0x281b0d][_0x10b48a(0x8ff)]=![],_0xc2423f['push'](_0x1498f3[_0x10b48a(0x85b)][_0x281b0d]));}_0x1498f3['variables']=_0xc2423f;}else{if(!_0x4ee182['autoAssociation'])return _0x5ab21b[_0x10b48a(0xdcc)][_0x10b48a(0x16b4)]({'sectionId':_0x4ee182['id']})[_0x10b48a(0x2945)][_0x10b48a(0x146b)](function(_0x16fbbb){const _0x4bf57d=_0x10b48a,_0x32ce38=_0x3f65c0()[_0x4bf57d(0x205)](_0x16fbbb[_0x4bf57d(0x19c7)],function(_0x4488f3){const _0x1d6694=_0x4bf57d;return _0x3f65c0()[_0x1d6694(0xc84)](_0x1498f3[_0x1d6694(0x85b)],{'id':_0x4488f3['resourceId']});});let _0xd5ab62=null;_0x1498f3[_0x4bf57d(0x1d47)]&&(_0xd5ab62=_0x3f65c0()['find'](_0x1498f3[_0x4bf57d(0x85b)],{'name':_0x1498f3[_0x4bf57d(0x1d47)][_0x4bf57d(0x212)]}));if(_0xd5ab62&&!_0x3f65c0()['some'](_0x32ce38,['id',_0xd5ab62['id']])){const _0x4555e3=_0x3f65c0()['find'](_0x1498f3[_0x4bf57d(0x85b)],{'id':_0xd5ab62['id']});_0x4555e3[_0x4bf57d(0x8ff)]=![],_0x32ce38[_0x4bf57d(0x1f47)](_0x4555e3);}_0x1498f3[_0x4bf57d(0x85b)]=_0x32ce38;});}})[_0xd60eba(0x129e)](function(_0x376a5b){const _0x2268bb=_0xd60eba;_0x2f113f[_0x2268bb(0x1980)]({'title':_0x376a5b[_0x2268bb(0x107b)]?'API:'+_0x376a5b[_0x2268bb(0x107b)]+_0x2268bb(0x1315)+_0x376a5b['statusText']:_0x2268bb(0x493),'msg':_0x376a5b[_0x2268bb(0x524)]?JSON[_0x2268bb(0x10bb)](_0x376a5b[_0x2268bb(0x524)]):_0x376a5b[_0x2268bb(0xd5f)]()});});function _0x1ab4c6(){const _0x43101f=_0xd60eba;_0x1498f3[_0x43101f(0xcef)]=[];const _0x1e23ce=[];_0x1498f3['system']['type']&&_0x1498f3[_0x43101f(0x1d47)][_0x43101f(0x1142)]['toLowerCase']()==='outbound'&&_0x1498f3['system'][_0x43101f(0x8f2)]===_0x43101f(0x118b)&&(_0x1498f3[_0x43101f(0x1d47)][_0x43101f(0x1d55)]=_0x4f15b4[_0x43101f(0x1274)]?(_0x1498f3[_0x43101f(0x1d47)][_0x43101f(0x1e12)]||'')+'${EXTEN:'+_0x4f15b4['cutdigits']+'}':(_0x1498f3['system'][_0x43101f(0x1e12)]||'')+_0x43101f(0x20df),_0x4f15b4[_0x43101f(0x1425)]!=='none'?_0x1498f3[_0x43101f(0x1d47)][_0x43101f(0xa08)]['indexOf'](_0x43101f(0x1ea4))<0x0&&(_0x1498f3[_0x43101f(0x1d47)]['options']+=_0x43101f(0x1ea4)):_0x1498f3[_0x43101f(0x1d47)][_0x43101f(0xa08)]=_0x1498f3['system'][_0x43101f(0xa08)][_0x43101f(0x5f4)](_0x43101f(0x1ea4),''));if(_0x1498f3['system'][_0x43101f(0x8f2)]&&_0x1498f3[_0x43101f(0x1d47)]['appType']===_0x43101f(0x1802)){}else switch((_0x1498f3[_0x43101f(0x1d47)][_0x43101f(0x1873)]||_0x1498f3[_0x43101f(0x1d47)][_0x43101f(0x8f2)])[_0x43101f(0x256e)]()){case _0x43101f(0x26ba):_0x1498f3[_0x43101f(0x1d47)][_0x43101f(0x168a)]=_0x1498f3[_0x43101f(0x1d47)]['name']+'='+_0x1498f3[_0x43101f(0x1d47)][_0x43101f(0x175d)];break;case'custom':break;default:_0x1e23ce[0x0]=_0x1498f3[_0x43101f(0x1d47)][_0x43101f(0x23e9)],_0x1e23ce[0x1]=_0x1498f3[_0x43101f(0x1d47)][_0x43101f(0x212)],_0x1498f3['system'][_0x43101f(0x168a)]=_0x1e23ce[_0x43101f(0xb47)](',');}_0x115cfb(_0x1498f3[_0x43101f(0x1d47)]);}function _0x115cfb(_0x5368fe){_0x362f41['hide'](_0x5368fe);}}const _0x529f6b=_0x5321ec;;_0x4dc966[_0x313a4d(0x11c2)]=[_0x313a4d(0x10e8),'$q',_0x313a4d(0x1fe4),_0x313a4d(0x80b),'smsAccount',_0x313a4d(0x247f),_0x313a4d(0xa87),_0x313a4d(0x2514)];function _0x4dc966(_0x4eff04,_0x72f469,_0x435101,_0x119e04,_0x301b90,_0x25b59c,_0x3cc054,_0x5873dd){const _0x336de3=_0x313a4d,_0x8865ec=this;_0x8865ec[_0x336de3(0x2321)]=_0x3cc054[_0x336de3(0xb12)](),_0x8865ec[_0x336de3(0xcef)]=[],_0x8865ec[_0x336de3(0x1189)]=_0x336de3(0x2525)+(_0x119e04[_0x336de3(0x8f2)]||_0x119e04[_0x336de3(0x1873)])[_0x336de3(0x1c37)](),_0x8865ec['tag']=angular[_0x336de3(0x235a)](_0x119e04),_0x8865ec[_0x336de3(0x2514)]=_0x5873dd,_0x8865ec[_0x336de3(0x855)]={};if(_0x8865ec[_0x336de3(0xa80)][_0x336de3(0x168a)])switch(_0x8865ec[_0x336de3(0xa80)]['appType']?_0x8865ec[_0x336de3(0xa80)][_0x336de3(0x8f2)][_0x336de3(0x256e)]():_0x8865ec['tag'][_0x336de3(0x1873)]['toLowerCase']()){case _0x336de3(0x1802):break;case _0x336de3(0xeaa):{const _0x1c74f9=_0x8865ec[_0x336de3(0xa80)]['appdata'][_0x336de3(0x10c8)](',');_0x8865ec[_0x336de3(0xa80)]['key']=_0x1c74f9[0x0],_0x8865ec['tag'][_0x336de3(0x90b)]=_0x1c74f9[0x1],_0x8865ec['tag']['welcomemessage']=_0x1c74f9[_0x336de3(0x1298)](0x2,_0x1c74f9[_0x336de3(0x402)])['join'](',');}break;case'dialogflowv2':{const _0x406256=_0x8865ec[_0x336de3(0xa80)][_0x336de3(0x168a)]['split'](',');_0x8865ec[_0x336de3(0xa80)][_0x336de3(0x153a)]=_0x406256[0x0],_0x8865ec[_0x336de3(0xa80)][_0x336de3(0x1392)]=_0x406256[0x1],_0x8865ec['tag'][_0x336de3(0x2217)]=_0x406256[0x2],_0x8865ec['tag'][_0x336de3(0x90b)]=_0x406256[0x3],_0x8865ec['tag'][_0x336de3(0xaf3)]=_0x406256[_0x336de3(0x1298)](0x4,_0x406256['length'])[_0x336de3(0xb47)](',');}break;case'amazonlex':{const _0x482d1b=_0x8865ec[_0x336de3(0xa80)][_0x336de3(0x168a)]['split'](',');_0x8865ec[_0x336de3(0xa80)]['accesskeyid']=_0x482d1b[0x0],_0x8865ec['tag'][_0x336de3(0x252)]=_0x482d1b[0x1],_0x8865ec[_0x336de3(0xa80)][_0x336de3(0x1039)]=_0x482d1b[0x2],_0x8865ec[_0x336de3(0xa80)][_0x336de3(0x8dd)]=_0x482d1b[0x3],_0x8865ec[_0x336de3(0xa80)]['welcomemessage']=_0x482d1b['slice'](0x4,_0x482d1b[_0x336de3(0x402)])[_0x336de3(0xb47)](',');}break;case _0x336de3(0x1713):{const _0x5badab=_0x8865ec[_0x336de3(0xa80)]['appdata']['split'](',');_0x8865ec[_0x336de3(0xa80)][_0x336de3(0x583)]=isNaN(_0x5badab[0x0])?_0x5badab[0x0]:parseInt(_0x5badab[0x0],0xa),_0x8865ec[_0x336de3(0xa80)][_0x336de3(0xa8d)]=_0x5badab['slice'](0x1,_0x5badab[_0x336de3(0x402)])[_0x336de3(0xb47)](',');}break;case _0x336de3(0x7fd):_0x8865ec[_0x336de3(0xa80)]['text']=_0x8865ec['tag'][_0x336de3(0x168a)];break;case _0x336de3(0x26ba):_0x8865ec[_0x336de3(0xa80)]['name']=_0x8865ec['tag'][_0x336de3(0x168a)][_0x336de3(0x10c8)]('=')[0x0],_0x8865ec[_0x336de3(0xa80)][_0x336de3(0x175d)]=_0x8865ec[_0x336de3(0xa80)]['appdata']['split']('=')[0x1];break;case _0x336de3(0x1ecb):_0x8865ec[_0x336de3(0xa80)][_0x336de3(0x9e0)]=_0x8865ec[_0x336de3(0xa80)][_0x336de3(0x168a)];break;default:{const _0x33b7c8=_0x8865ec['tag'][_0x336de3(0x168a)][_0x336de3(0x10c8)](',');_0x8865ec[_0x336de3(0xa80)][_0x336de3(0xa80)]=_0x3f65c0()[_0x336de3(0x2635)](_0x33b7c8[0x0])?_0x33b7c8[0x0]:isNaN(_0x33b7c8[0x0])?_0x33b7c8[0x0]:parseInt(_0x33b7c8[0x0],0xa);}break;}else{}_0x8865ec[_0x336de3(0xa80)][_0x336de3(0x1142)]&&_0x8865ec[_0x336de3(0xa80)][_0x336de3(0x1142)]['toLowerCase']()===_0x336de3(0xc9c)&&_0x8865ec[_0x336de3(0xa80)][_0x336de3(0x8f2)]['toLowerCase']()===_0x336de3(0x3bb)&&(_0x8865ec[_0x336de3(0xa80)][_0x336de3(0x1e12)]=_0x8865ec[_0x336de3(0xa80)][_0x336de3(0x1d55)]?_0x8865ec[_0x336de3(0xa80)][_0x336de3(0x1d55)][_0x336de3(0x10c8)]('$')[0x0]:undefined,_0x8865ec[_0x336de3(0xa80)]['callerId']=_0x8865ec[_0x336de3(0xa80)][_0x336de3(0x11be)]?_0x336de3(0x1b60)+_0x8865ec[_0x336de3(0xa80)]['callerID']:undefined);_0x8865ec[_0x336de3(0x15de)]=_0x1e1268,_0x8865ec[_0x336de3(0x13f3)]=_0x484a1b,_0x3cc054['hasRole'](_0x336de3(0x174b))?_0x25b59c[_0x336de3(0xa80)][_0x336de3(0x16b4)]({'fields':'id,name','sort':_0x336de3(0x19eb),'nolimit':_0x336de3(0x1185)})[_0x336de3(0x2945)]['then'](function(_0x3096f){const _0x33761f=_0x336de3;_0x8865ec[_0x33761f(0x1b86)]=_0x3096f['rows']||[];})[_0x336de3(0x129e)](function(_0x3ff183){const _0x267b57=_0x336de3;_0x435101['error']({'title':_0x3ff183[_0x267b57(0x107b)]?_0x267b57(0x262a)+_0x3ff183['status']+_0x267b57(0x1315)+_0x3ff183[_0x267b57(0x167f)]:_0x267b57(0x29c),'msg':_0x3ff183[_0x267b57(0x524)]?JSON[_0x267b57(0x10bb)](_0x3ff183['data']):_0x3ff183[_0x267b57(0xd5f)]()});}):_0x25b59c['tag'][_0x336de3(0x16b4)]({'fields':_0x336de3(0x7a7),'sort':_0x336de3(0x19eb),'nolimit':_0x336de3(0x1185)})['$promise'][_0x336de3(0x146b)](function(_0x14a1a5){const _0x46679=_0x336de3;_0x8865ec['tags']=_0x14a1a5[_0x46679(0x19c7)]||[];})[_0x336de3(0x146b)](function(){const _0xf1e31d=_0x336de3;return _0x25b59c[_0xf1e31d(0x1366)][_0xf1e31d(0x16b4)]({'userProfileId':_0x8865ec[_0xf1e31d(0x2321)][_0xf1e31d(0x209a)],'sectionId':0x3f0})[_0xf1e31d(0x2945)];})[_0x336de3(0x146b)](function(_0x208fc6){const _0x37db6e=_0x336de3,_0x3064f9=_0x208fc6&&_0x208fc6[_0x37db6e(0x19c7)]?_0x208fc6['rows'][0x0]:null;if(!_0x3064f9){const _0x53362b=[];let _0x45e032=null;_0x8865ec[_0x37db6e(0xa80)]&&(_0x45e032=_0x3f65c0()[_0x37db6e(0xc84)](_0x8865ec[_0x37db6e(0x1b86)],{'name':_0x8865ec[_0x37db6e(0xa80)][_0x37db6e(0xa80)]}));for(let _0x7436ce=0x0;_0x7436ce<_0x8865ec[_0x37db6e(0x1b86)]['length'];_0x7436ce++){_0x45e032&&_0x8865ec[_0x37db6e(0x1b86)][_0x7436ce]['id']===_0x45e032['id']&&(_0x8865ec[_0x37db6e(0x1b86)][_0x7436ce][_0x37db6e(0x8ff)]=![],_0x53362b[_0x37db6e(0x1f47)](_0x8865ec[_0x37db6e(0x1b86)][_0x7436ce]));}_0x8865ec[_0x37db6e(0x1b86)]=_0x53362b;}else{if(!_0x3064f9['autoAssociation'])return _0x25b59c['userProfileResource'][_0x37db6e(0x16b4)]({'sectionId':_0x3064f9['id']})[_0x37db6e(0x2945)][_0x37db6e(0x146b)](function(_0x14e359){const _0x252045=_0x37db6e,_0x241ceb=_0x3f65c0()[_0x252045(0x205)](_0x14e359[_0x252045(0x19c7)],function(_0x81d3b2){const _0x1317c8=_0x252045;return _0x3f65c0()[_0x1317c8(0xc84)](_0x8865ec['tags'],{'id':_0x81d3b2['resourceId']});});let _0x34ae41=null;_0x8865ec[_0x252045(0xa80)]&&(_0x34ae41=_0x3f65c0()[_0x252045(0xc84)](_0x8865ec['tags'],{'name':_0x8865ec[_0x252045(0xa80)][_0x252045(0xa80)]}));if(_0x34ae41&&!_0x3f65c0()[_0x252045(0x1360)](_0x241ceb,['id',_0x34ae41['id']])){const _0x35ca3a=_0x3f65c0()[_0x252045(0xc84)](_0x8865ec[_0x252045(0x1b86)],{'id':_0x34ae41['id']});_0x35ca3a['canSelect']=![],_0x241ceb[_0x252045(0x1f47)](_0x35ca3a);}_0x8865ec[_0x252045(0x1b86)]=_0x241ceb;});}})[_0x336de3(0x129e)](function(_0x56d2e4){const _0x3c4734=_0x336de3;_0x435101[_0x3c4734(0x1980)]({'title':_0x56d2e4[_0x3c4734(0x107b)]?_0x3c4734(0x262a)+_0x56d2e4[_0x3c4734(0x107b)]+_0x3c4734(0x1315)+_0x56d2e4[_0x3c4734(0x167f)]:_0x3c4734(0x156),'msg':_0x56d2e4['data']?JSON[_0x3c4734(0x10bb)](_0x56d2e4[_0x3c4734(0x524)]):_0x56d2e4['toString']()});});function _0x1e1268(){const _0x42b6f3=_0x336de3;_0x8865ec[_0x42b6f3(0xcef)]=[];const _0x491e2b=[];_0x8865ec[_0x42b6f3(0xa80)]['type']&&_0x8865ec[_0x42b6f3(0xa80)][_0x42b6f3(0x1142)][_0x42b6f3(0x256e)]()===_0x42b6f3(0xc9c)&&_0x8865ec['tag'][_0x42b6f3(0x8f2)]===_0x42b6f3(0x118b)&&(_0x8865ec['tag'][_0x42b6f3(0x1d55)]=_0x301b90['cutdigits']?(_0x8865ec[_0x42b6f3(0xa80)][_0x42b6f3(0x1e12)]||'')+_0x42b6f3(0x2147)+_0x301b90[_0x42b6f3(0x1274)]+'}':(_0x8865ec[_0x42b6f3(0xa80)]['prefix']||'')+_0x42b6f3(0x20df),_0x301b90[_0x42b6f3(0x1425)]!=='none'?_0x8865ec[_0x42b6f3(0xa80)][_0x42b6f3(0xa08)][_0x42b6f3(0x172b)](_0x42b6f3(0x1ea4))<0x0&&(_0x8865ec[_0x42b6f3(0xa80)]['options']+=_0x42b6f3(0x1ea4)):_0x8865ec[_0x42b6f3(0xa80)][_0x42b6f3(0xa08)]=_0x8865ec[_0x42b6f3(0xa80)][_0x42b6f3(0xa08)][_0x42b6f3(0x5f4)](_0x42b6f3(0x1ea4),''));const _0x53248a=_0x3f65c0()[_0x42b6f3(0xc84)](_0x8865ec['tags'],{'name':_0x8865ec[_0x42b6f3(0xa80)][_0x42b6f3(0xa80)]});_0x53248a&&(_0x8865ec[_0x42b6f3(0xa80)][_0x42b6f3(0xb0a)]=_0x53248a['id']);if(_0x8865ec['tag'][_0x42b6f3(0x8f2)]&&_0x8865ec['tag'][_0x42b6f3(0x8f2)]===_0x42b6f3(0x1802)){}else switch((_0x8865ec[_0x42b6f3(0xa80)][_0x42b6f3(0x1873)]||_0x8865ec[_0x42b6f3(0xa80)][_0x42b6f3(0x8f2)])[_0x42b6f3(0x256e)]()){case _0x42b6f3(0x26ba):_0x8865ec['tag']['appdata']=_0x8865ec['tag']['name']+'='+_0x8865ec[_0x42b6f3(0xa80)][_0x42b6f3(0x175d)];break;case _0x42b6f3(0x1802):break;default:_0x491e2b[0x0]=_0x8865ec[_0x42b6f3(0xa80)][_0x42b6f3(0xa80)],_0x8865ec[_0x42b6f3(0xa80)][_0x42b6f3(0x168a)]=_0x491e2b[_0x42b6f3(0xb47)](',');}_0x484a1b(_0x8865ec[_0x42b6f3(0xa80)]);}function _0x484a1b(_0x3d4d92){const _0x4bca76=_0x336de3;_0x4eff04[_0x4bca76(0x2458)](_0x3d4d92);}}const _0x54d50e=_0x4dc966;;_0x574940[_0x313a4d(0x11c2)]=['$cookies',_0x313a4d(0x910),_0x313a4d(0x1862),'$q',_0x313a4d(0x214b),_0x313a4d(0x1abe),'$mdDialog',_0x313a4d(0x4d8),_0x313a4d(0x1fe4),_0x313a4d(0x247f),'Auth'];function _0x574940(_0x18d9dc,_0x3814d1,_0x78b169,_0x26bce8,_0x1562d1,_0x5deefe,_0x18e67d,_0x35d0f1,_0xf12769,_0x10680e,_0x53fbfb){const _0x40f1c1=_0x313a4d,_0x159832=this;_0x159832[_0x40f1c1(0x2321)]=_0x53fbfb[_0x40f1c1(0xb12)](),_0x159832[_0x40f1c1(0x2209)]={},_0x159832[_0x40f1c1(0x951)]={'count':0x0,'rows':[]},_0x159832[_0x40f1c1(0x2840)]=[],_0x159832[_0x40f1c1(0x2514)],_0x159832[_0x40f1c1(0x1a56)]={'read':'null','closed':_0x40f1c1(0x203c),'sort':_0x40f1c1(0xd6f),'includeAll':_0x40f1c1(0x1185),'limit':0xa,'page':0x1},_0x159832['init']=_0x39668d,_0x159832[_0x40f1c1(0x19b4)]=_0x3e07c7,_0x159832[_0x40f1c1(0x1d28)]=_0x3b702e,_0x159832[_0x40f1c1(0x1c75)]=_0x402e82,_0x159832['getSmsAccountInteractions']=_0x5974f4,_0x159832[_0x40f1c1(0xc5e)]=_0x42e21b,_0x159832['openAdvancedSearch']=_0x17c98c,_0x159832['exportSelectedSmsAccountInteractions']=_0x5aa505,_0x159832[_0x40f1c1(0xfa9)]=_0x571fba,_0x159832['deleteSelectedSmsAccountInteractions']=_0x260413;function _0x39668d(_0x342d2b,_0x2ba904){const _0x5786bc=_0x40f1c1;_0x159832[_0x5786bc(0x2209)]=_0x342d2b,_0x159832[_0x5786bc(0x2514)]=typeof _0x2ba904!==_0x5786bc(0x2274)?_0x2ba904:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x159832[_0x5786bc(0x1a56)][_0x5786bc(0x1481)]=_0x159832[_0x5786bc(0x2209)]['id'],_0x159832[_0x5786bc(0xe93)]={'fields':_0xf79bab()},_0x2e7ef9();}function _0x2e7ef9(){const _0x5cd28c=_0x40f1c1;return _0x10680e[_0x5cd28c(0xa80)][_0x5cd28c(0x16b4)]()[_0x5cd28c(0x2945)]['then'](function(_0x591a4b){const _0x532c32=_0x5cd28c;_0x159832[_0x532c32(0x1b86)]=_0x591a4b||{'count':0x0,'rows':[]};})[_0x5cd28c(0x146b)](function(){const _0x41bb62=_0x5cd28c;_0x159832[_0x41bb62(0x28af)]=_0x207e53();});}function _0x207e53(){const _0xa4b60a=_0x40f1c1;return[{'name':'Start\x20Date','key':'createdAt','type':_0xa4b60a(0x1a10),'label':'DASHBOARDS.SELECT_DATE'},{'name':_0xa4b60a(0x1c7c),'key':_0xa4b60a(0x229e),'type':_0xa4b60a(0xa5f),'label':_0xa4b60a(0x8f5),'customOptions':[{'value':0x0,'translate':_0xa4b60a(0x33f)},{'value':0x1,'translate':_0xa4b60a(0x1ce6)},{'value':null,'translate':_0xa4b60a(0x175e)}]},{'name':'Status','key':_0xa4b60a(0x1943),'type':_0xa4b60a(0xa5f),'label':_0xa4b60a(0x1682),'customOptions':[{'value':0x0,'translate':_0xa4b60a(0x143b)},{'value':0x1,'translate':_0xa4b60a(0x1805)},{'value':null,'translate':_0xa4b60a(0x175e)}]},{'name':_0xa4b60a(0x294a),'key':_0xa4b60a(0xea2),'type':_0xa4b60a(0xa5f),'label':_0xa4b60a(0x127),'customOptions':[{'value':'null','translate':'DASHBOARDS.NOT_ASSIGNED'},{'value':undefined,'translate':'DASHBOARDS.ALL'}]},{'name':_0xa4b60a(0x23a8),'key':_0xa4b60a(0xa80),'type':_0xa4b60a(0x175c),'label':_0xa4b60a(0x1c0e),'options':_0x159832['tags'][_0xa4b60a(0x19c7)],'placeholder':_0xa4b60a(0x66f)}];}function _0xf79bab(){const _0x453091=_0x40f1c1;return[{'name':'Id','column':'id','type':_0x453091(0x181)},{'name':_0x453091(0x364),'column':_0x453091(0x364),'type':_0x453091(0x14ee),'options':{'searchFields':[_0x453091(0x1ed4),'lastName',_0x453091(0x1a2b)],'route':{'model':_0x453091(0x18c3),'action':_0x453091(0x16b4),'params':{'fields':'id,firstName,lastName,email','Contact':_0x453091(0x3fb),'nolimit':!![]}},'extraOperators':['$substring'],'excludedOperators':[_0x453091(0x1671)]}},{'name':'Subject','column':_0x453091(0xe32),'type':_0x453091(0xa8d),'options':{'excludedOperators':[_0x453091(0x6be),_0x453091(0x1671)]}},{'name':_0x453091(0x710),'column':_0x453091(0xb80),'type':_0x453091(0xa8d),'options':{'excludedOperators':[_0x453091(0x6be),_0x453091(0x1671)]}},{'name':'Status','column':_0x453091(0x1943),'type':_0x453091(0xa5f),'values':[{'id':0x0,'translate':'DASHBOARDS.OPENED'},{'id':0x1,'translate':_0x453091(0x1805)}],'options':{'excludedOperators':[_0x453091(0x1671)]}},{'name':'Agent','column':_0x453091(0x2393),'type':'autocomplete','options':{'table':'i','route':{'model':_0x453091(0xe7b),'action':_0x453091(0x16b4),'params':{'role':_0x453091(0x1755),'fields':_0x453091(0x12bf),'nolimit':!![]}},'searchFields':[_0x453091(0x286a),'name'],'extraOperators':[_0x453091(0xacb)],'excludedOperators':[_0x453091(0x1671)]}},{'name':'Tags','column':_0x453091(0x23a8),'type':_0x453091(0x175c),'options':{'route':{'model':'tag','action':_0x453091(0x16b4),'params':{'nolimit':!![]}},'excludedOperators':[_0x453091(0xbe5)]}},{'name':_0x453091(0x294),'column':_0x453091(0xc68),'type':_0x453091(0x1a10),'options':{'excludedOperators':[_0x453091(0x1671)]}},{'name':_0x453091(0x270b),'column':_0x453091(0x26a6),'type':'select','values':[{'id':0x1,'translate':_0x453091(0x1ce6)},{'id':0x0,'translate':'DASHBOARDS.UNREAD'}],'options':{'excludedOperators':[_0x453091(0x1671)]}}];}function _0x17c98c(){const _0x42ab2f=_0x40f1c1;_0x18e67d[_0x42ab2f(0x2615)]({'controller':_0x42ab2f(0x26bc),'controllerAs':'vm','templateUrl':_0x3fb128,'parent':angular['element'](_0x35d0f1['body']),'clickOutsideToClose':![],'locals':{'fields':_0x159832['advancedSearch'][_0x42ab2f(0x2867)],'color':undefined,'storagePath':_0x42ab2f(0x25cc)},'fullscreen':!![]})[_0x42ab2f(0x146b)](function(_0x242083){const _0x164695=_0x42ab2f;_0x159832[_0x164695(0x1a56)][_0x164695(0x21da)]=_0x242083===![]?undefined:_0x242083;if(_0x159832['query'][_0x164695(0x21da)])_0x5974f4();else _0x242083===![]&&_0x5974f4();})[_0x42ab2f(0x129e)](function(_0x3c28de){const _0xc9a1cf=_0x42ab2f;_0xf12769[_0xc9a1cf(0x1980)]({'title':_0xc9a1cf(0x10f5),'msg':_0x3c28de[_0xc9a1cf(0x524)]?JSON['stringify'](_0x3c28de[_0xc9a1cf(0x524)][_0xc9a1cf(0x7fd)]):_0x3c28de[_0xc9a1cf(0xd5f)]()});});}function _0x3b702e(_0x44a0ea,_0x305c09,_0x371251){const _0x358747=_0x40f1c1;return _0x10680e[_0x358747(0xb18)][_0x358747(0x15b1)]({'id':_0x44a0ea['id'],'exists':!![],'attachments':_0x371251})['$promise'][_0x358747(0x146b)](function(_0x259a2a){const _0x28ed92=_0x358747,_0xa5605f=[_0x259a2a[_0x28ed92(0x2eb)]];let _0x2738b2=_0x28ed92(0xe80)+_0x44a0ea['id'];const _0x2ff821=new Blob(_0xa5605f,{'type':_0x259a2a['type']});_0x2738b2='sms-interaction'+_0x44a0ea['id']+'.zip';const _0x1ded18=window['document'][_0x28ed92(0x24ec)]('a');_0x1ded18[_0x28ed92(0x1652)]('href',URL[_0x28ed92(0x1c58)](_0x2ff821)),_0x1ded18[_0x28ed92(0x1652)](_0x28ed92(0x15b1),_0x2738b2),document[_0x28ed92(0x2586)][_0x28ed92(0x23e)](_0x1ded18),_0x1ded18[_0x28ed92(0x1fa5)]();})[_0x358747(0x129e)](function(_0x4ebe25){const _0x2af46f=_0x358747;if(_0x4ebe25['data']&&_0x4ebe25[_0x2af46f(0x524)][_0x2af46f(0xcef)]&&_0x4ebe25[_0x2af46f(0x524)]['errors'][_0x2af46f(0x402)])for(let _0x57a387=0x0;_0x57a387<_0x4ebe25[_0x2af46f(0x524)][_0x2af46f(0xcef)]['length'];_0x57a387+=0x1){_0xf12769[_0x2af46f(0x1980)]({'title':_0x4ebe25[_0x2af46f(0x524)][_0x2af46f(0xcef)][_0x57a387]['type'],'msg':_0x4ebe25[_0x2af46f(0x524)]['errors'][_0x57a387][_0x2af46f(0x7fd)]});}else _0xf12769[_0x2af46f(0x1980)]({'title':_0x4ebe25[_0x2af46f(0x107b)]?_0x2af46f(0x262a)+_0x4ebe25[_0x2af46f(0x107b)]+_0x2af46f(0x1315)+_0x4ebe25['statusText']:'api.smsAccount.save','msg':_0x4ebe25[_0x2af46f(0x524)]?JSON[_0x2af46f(0x10bb)](_0x4ebe25[_0x2af46f(0x524)][_0x2af46f(0x7fd)]):_0x4ebe25[_0x2af46f(0xd5f)]()});});}function _0x3e07c7(_0x20df9a,_0x49dd34){const _0x5b9498=_0x40f1c1,_0x3e82ed=_0x18e67d['confirm']()[_0x5b9498(0x1189)](_0x5b9498(0x1f40))['htmlContent'](_0x5b9498(0x16d3)+(_0x20df9a['name']||_0x20df9a['id']&&_0x3f65c0()[_0x5b9498(0x21cf)]('interaction\x20#')+_0x20df9a['id']||'interaction')+_0x5b9498(0x252f)+'\x20will\x20be\x20deleted.')[_0x5b9498(0x4bd)](_0x5b9498(0xcab))[_0x5b9498(0x1f27)](_0x49dd34)['ok']('OK')['cancel'](_0x5b9498(0x39a));_0x18e67d[_0x5b9498(0x2615)](_0x3e82ed)[_0x5b9498(0x146b)](function(){_0x571fba(_0x20df9a);},function(){const _0x5cd1c4=_0x5b9498;console[_0x5cd1c4(0x1a74)](_0x5cd1c4(0x39a));});}function _0x402e82(_0x55d473){const _0x3a4c56=_0x40f1c1;_0x159832[_0x3a4c56(0x951)]=_0x55d473||{'count':0x0,'rows':[]};for(let _0x5daa29=0x0;_0x5daa29<_0x159832[_0x3a4c56(0x951)][_0x3a4c56(0x19c7)][_0x3a4c56(0x402)];_0x5daa29+=0x1){const _0xc758f6=_0x159832['smsAccountInteractions'][_0x3a4c56(0x19c7)][_0x5daa29];_0x1be207(_0xc758f6),_0xc758f6['Owner'][_0x3a4c56(0x19eb)]=_0x5b2708(_0xc758f6);}}function _0x5974f4(){const _0x3c9ebe=_0x40f1c1;_0x159832['query']['offset']=(_0x159832[_0x3c9ebe(0x1a56)][_0x3c9ebe(0x844)]-0x1)*_0x159832['query'][_0x3c9ebe(0x221e)],_0x159832[_0x3c9ebe(0xb9c)]=_0x10680e[_0x3c9ebe(0xb18)][_0x3c9ebe(0x16b4)](_0x159832[_0x3c9ebe(0x1a56)],_0x402e82)[_0x3c9ebe(0x2945)];}function _0x42e21b(_0x6e9475,_0x230cd0){const _0x2946dc=_0x40f1c1;_0x18e67d[_0x2946dc(0x2615)]({'controller':_0x2946dc(0xd2c),'controllerAs':'vm','templateUrl':_0x270cc0,'parent':angular[_0x2946dc(0x1853)](_0x35d0f1['body']),'targetEvent':_0x6e9475,'clickOutsideToClose':!![],'onShowing':function(_0x440cea){const _0x44274c=_0x2946dc;_0x440cea['vm']['init']({'id':0x1,'channel':'sms','interaction':_0x230cd0,'spy':!![]},_0x3814d1[_0x44274c(0x2870)]['vm'][_0x44274c(0x15b9)]);}});}function _0x571fba(_0x23f019){const _0x555ac2=_0x40f1c1;_0x10680e[_0x555ac2(0xb18)][_0x555ac2(0x1fac)]({'id':_0x23f019['id']})[_0x555ac2(0x2945)][_0x555ac2(0x146b)](function(){const _0xe39884=_0x555ac2;_0x3f65c0()['remove'](_0x159832['smsAccountInteractions'][_0xe39884(0x19c7)],{'id':_0x23f019['id']}),_0x159832[_0xe39884(0x951)][_0xe39884(0x51c)]-=0x1,!_0x159832[_0xe39884(0x951)][_0xe39884(0x19c7)][_0xe39884(0x402)]&&_0x5974f4(),_0xf12769['success']({'title':_0xe39884(0x739),'msg':_0x23f019['name']?_0x23f019[_0xe39884(0x19eb)]+_0xe39884(0x23e3):''});})[_0x555ac2(0x129e)](function(_0x25d97d){const _0x34af4c=_0x555ac2;if(_0x25d97d[_0x34af4c(0x524)]&&_0x25d97d[_0x34af4c(0x524)][_0x34af4c(0xcef)]&&_0x25d97d[_0x34af4c(0x524)][_0x34af4c(0xcef)][_0x34af4c(0x402)]){_0x159832['errors']=_0x25d97d[_0x34af4c(0x524)][_0x34af4c(0xcef)]||[{'message':_0x25d97d[_0x34af4c(0xd5f)](),'type':_0x34af4c(0x2117)}];for(let _0x15a55c=0x0;_0x15a55c<_0x25d97d[_0x34af4c(0x524)][_0x34af4c(0xcef)][_0x34af4c(0x402)];_0x15a55c++){_0xf12769[_0x34af4c(0x1980)]({'title':_0x25d97d[_0x34af4c(0x524)][_0x34af4c(0xcef)][_0x15a55c]['type'],'msg':_0x25d97d['data'][_0x34af4c(0xcef)][_0x15a55c]['message']});}}else _0xf12769[_0x34af4c(0x1980)]({'title':_0x25d97d['status']?_0x34af4c(0x262a)+_0x25d97d[_0x34af4c(0x107b)]+_0x34af4c(0x1315)+_0x25d97d[_0x34af4c(0x167f)]:_0x34af4c(0x2117),'msg':_0x25d97d[_0x34af4c(0x524)]?JSON[_0x34af4c(0x10bb)](_0x25d97d['data']['message']):_0x25d97d['message']||_0x25d97d['toString']()});});}function _0x5aa505(){const _0xdffd0=_0x40f1c1,_0x24596a=angular[_0xdffd0(0x235a)](_0x159832[_0xdffd0(0x2840)]);return _0x159832[_0xdffd0(0x2840)]=[],_0x24596a;}function _0x260413(_0x3be35c){const _0x5cb062=_0x40f1c1,_0x5d400e=_0x18e67d['confirm']()[_0x5cb062(0x1189)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20interactions?')[_0x5cb062(0x1cbe)](''+_0x159832[_0x5cb062(0x2840)][_0x5cb062(0x402)]+'\x20selected'+_0x5cb062(0xe01))[_0x5cb062(0x4bd)](_0x5cb062(0xa37))[_0x5cb062(0x1f27)](_0x3be35c)['ok']('OK')[_0x5cb062(0x6c3)]('CANCEL');_0x18e67d[_0x5cb062(0x2615)](_0x5d400e)['then'](function(){const _0x545c4e=_0x5cb062;_0x159832['selectedSmsAccountInteractions'][_0x545c4e(0x1df5)](function(_0x415a3e){_0x571fba(_0x415a3e);}),_0x159832[_0x545c4e(0x2840)]=[];});}function _0x1be207(_0x4b5b9e){const _0x4e74b0=_0x40f1c1;_0x4b5b9e[_0x4e74b0(0x364)]?(_0x4b5b9e[_0x4e74b0(0x792)]=(_0x4b5b9e[_0x4e74b0(0x364)][_0x4e74b0(0x1ed4)]||'')+'\x20'+(_0x4b5b9e[_0x4e74b0(0x364)]['lastName']||''),_0x4b5b9e[_0x4e74b0(0x14e3)]=_0x4b5b9e[_0x4e74b0(0x364)][_0x4e74b0(0xa4b)]):_0x4b5b9e[_0x4e74b0(0x792)]=_0x1562d1['instant'](_0x4e74b0(0xe0b));}function _0x5b2708(_0x43d171){const _0x3a3881=_0x40f1c1;if(_0x43d171[_0x3a3881(0xea2)])return _0x43d171[_0x3a3881(0xea2)]===_0x159832[_0x3a3881(0x2321)]['id']?_0x1562d1[_0x3a3881(0xde)]('DASHBOARDS.ME'):_0x43d171[_0x3a3881(0xac5)][_0x3a3881(0x286a)]+'\x20<'+_0x43d171[_0x3a3881(0xac5)][_0x3a3881(0x113f)]+'>';return _0x1562d1[_0x3a3881(0xde)](_0x3a3881(0x38d));}let _0x49344e=!![],_0xf4c44d=0x1;_0x3814d1[_0x40f1c1(0x21e8)](_0x40f1c1(0x117f),function(_0x2dc445,_0x128e94){const _0x14a42d=_0x40f1c1;_0x49344e?_0x5deefe(function(){_0x49344e=![];}):(!_0x128e94&&(_0xf4c44d=_0x159832[_0x14a42d(0x1a56)][_0x14a42d(0x844)]),_0x2dc445!==_0x128e94&&(_0x159832[_0x14a42d(0x1a56)]['page']=0x1),!_0x2dc445&&(_0x159832[_0x14a42d(0x1a56)][_0x14a42d(0x844)]=_0xf4c44d),_0x5974f4());});}const _0x4a6d16=_0x574940;;const _0x4b60c7=_0x4acfac['p']+_0x313a4d(0x1696);;_0x3ab594[_0x313a4d(0x11c2)]=[_0x313a4d(0x23df),_0x313a4d(0x910),_0x313a4d(0x1862),'$q',_0x313a4d(0x214b),'$timeout','$mdDialog',_0x313a4d(0x4d8),'toasty',_0x313a4d(0x247f),_0x313a4d(0xa87)];function _0x3ab594(_0x3d8428,_0x534ba9,_0x191585,_0x5a3215,_0x18b6d7,_0x665aca,_0x338d18,_0x9921cd,_0x45932b,_0x15cbdc,_0xf5a802){const _0x21b380=_0x313a4d,_0x1ac5d8=this;_0x1ac5d8[_0x21b380(0x2321)]=_0xf5a802[_0x21b380(0xb12)](),_0x1ac5d8[_0x21b380(0x2209)]={},_0x1ac5d8['smsAccountSmsCannedAnswers']={'count':0x0,'rows':[]},_0x1ac5d8[_0x21b380(0x1ee5)]=[],_0x1ac5d8[_0x21b380(0x2514)],_0x1ac5d8['query']={'fields':_0x21b380(0x241e),'limit':0xa,'page':0x1},_0x1ac5d8[_0x21b380(0x5aa)]=_0x19456c,_0x1ac5d8[_0x21b380(0x19b4)]=_0x4ccb8f,_0x1ac5d8['success']=_0xee3cb9,_0x1ac5d8[_0x21b380(0x1202)]=_0xeee2e5,_0x1ac5d8['createOrEditSmsAccountSmsCannedAnswer']=_0x1a7a57,_0x1ac5d8[_0x21b380(0x298)]=_0x16dcf4,_0x1ac5d8[_0x21b380(0x5c3)]=_0x2edf22,_0x1ac5d8[_0x21b380(0x224b)]=_0x4eba26;function _0x19456c(_0x1c0656,_0x1dee2b){const _0xf0410=_0x21b380;_0x1ac5d8[_0xf0410(0x2209)]=_0x1c0656,_0x1ac5d8[_0xf0410(0x2514)]=typeof _0x1dee2b!==_0xf0410(0x2274)?_0x1dee2b:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x1ac5d8['query'][_0xf0410(0x1481)]=_0x1ac5d8[_0xf0410(0x2209)]['id'],_0x1ac5d8[_0xf0410(0x1a56)]['id']=_0x1ac5d8['smsAccount']['id'],_0xeee2e5();}function _0x4ccb8f(_0x3cbac2,_0x1bc808){const _0x3fc3a5=_0x21b380,_0x327639=_0x338d18[_0x3fc3a5(0x1e8a)]()[_0x3fc3a5(0x1189)](_0x3fc3a5(0xafd))[_0x3fc3a5(0x1cbe)](_0x3fc3a5(0x16d3)+(_0x3cbac2[_0x3fc3a5(0x19eb)]||_0x3cbac2['id']&&_0x3f65c0()[_0x3fc3a5(0x21cf)]('smsCannedAnswer\x20#')+_0x3cbac2['id']||_0x3fc3a5(0x110d))+_0x3fc3a5(0x252f)+_0x3fc3a5(0xe01))[_0x3fc3a5(0x4bd)](_0x3fc3a5(0x1744))[_0x3fc3a5(0x1f27)](_0x1bc808)['ok']('OK')[_0x3fc3a5(0x6c3)](_0x3fc3a5(0x39a));_0x338d18['show'](_0x327639)[_0x3fc3a5(0x146b)](function(){_0x2edf22(_0x3cbac2);},function(){const _0x1fa401=_0x3fc3a5;console[_0x1fa401(0x1a74)](_0x1fa401(0x39a));});}function _0xee3cb9(_0x2febb7){const _0x49b461=_0x21b380;_0x1ac5d8[_0x49b461(0x263)]=_0x2febb7||{'count':0x0,'rows':[]};}function _0xeee2e5(){const _0x51f407=_0x21b380;_0x1ac5d8[_0x51f407(0x1a56)]['offset']=(_0x1ac5d8[_0x51f407(0x1a56)][_0x51f407(0x844)]-0x1)*_0x1ac5d8['query'][_0x51f407(0x221e)],_0x1ac5d8[_0x51f407(0xb9c)]=_0x15cbdc[_0x51f407(0x2209)][_0x51f407(0x13e1)](_0x1ac5d8[_0x51f407(0x1a56)],_0xee3cb9)['$promise'];}function _0x1a7a57(_0x2b319e,_0x4b89cd){const _0x495a64=_0x21b380;_0x338d18[_0x495a64(0x2615)]({'controller':_0x495a64(0x10d8),'controllerAs':'vm','templateUrl':_0x4b60c7,'parent':angular[_0x495a64(0x1853)](_0x9921cd[_0x495a64(0x2586)]),'targetEvent':_0x2b319e,'clickOutsideToClose':!![],'locals':{'smsAccount':_0x1ac5d8[_0x495a64(0x2209)],'smsCannedAnswer':_0x4b89cd,'smsCannedAnswers':_0x1ac5d8[_0x495a64(0x263)][_0x495a64(0x19c7)],'license':null,'setting':null,'crudPermissions':_0x1ac5d8[_0x495a64(0x2514)]}});}function _0x2edf22(_0x5f0cd4){const _0x49fc90=_0x21b380;_0x15cbdc[_0x49fc90(0x1ada)]['delete']({'id':_0x5f0cd4['id']})[_0x49fc90(0x2945)][_0x49fc90(0x146b)](function(){const _0x370f17=_0x49fc90;_0x3f65c0()[_0x370f17(0x2640)](_0x1ac5d8[_0x370f17(0x263)]['rows'],{'id':_0x5f0cd4['id']}),_0x1ac5d8[_0x370f17(0x263)]['count']-=0x1,!_0x1ac5d8[_0x370f17(0x263)][_0x370f17(0x19c7)][_0x370f17(0x402)]&&_0xeee2e5(),_0x45932b['success']({'title':_0x370f17(0xec4),'msg':_0x5f0cd4[_0x370f17(0x19eb)]?_0x5f0cd4[_0x370f17(0x19eb)]+_0x370f17(0x23e3):''});})[_0x49fc90(0x129e)](function(_0x36f08e){const _0x175d4f=_0x49fc90;if(_0x36f08e[_0x175d4f(0x524)]&&_0x36f08e[_0x175d4f(0x524)]['errors']&&_0x36f08e[_0x175d4f(0x524)][_0x175d4f(0xcef)][_0x175d4f(0x402)]){_0x1ac5d8['errors']=_0x36f08e['data'][_0x175d4f(0xcef)]||[{'message':_0x36f08e[_0x175d4f(0xd5f)](),'type':_0x175d4f(0x2117)}];for(let _0x1b813d=0x0;_0x1b813d<_0x36f08e['data'][_0x175d4f(0xcef)][_0x175d4f(0x402)];_0x1b813d++){_0x45932b[_0x175d4f(0x1980)]({'title':_0x36f08e[_0x175d4f(0x524)]['errors'][_0x1b813d][_0x175d4f(0x1142)],'msg':_0x36f08e[_0x175d4f(0x524)][_0x175d4f(0xcef)][_0x1b813d][_0x175d4f(0x7fd)]});}}else _0x45932b[_0x175d4f(0x1980)]({'title':_0x36f08e['status']?'API:'+_0x36f08e[_0x175d4f(0x107b)]+_0x175d4f(0x1315)+_0x36f08e['statusText']:'SYSTEM:GETsmsAccount','msg':_0x36f08e[_0x175d4f(0x524)]?JSON[_0x175d4f(0x10bb)](_0x36f08e[_0x175d4f(0x524)][_0x175d4f(0x7fd)]):_0x36f08e[_0x175d4f(0x7fd)]||_0x36f08e[_0x175d4f(0xd5f)]()});});}function _0x16dcf4(){const _0x5f03e8=_0x21b380,_0x1c5701=angular[_0x5f03e8(0x235a)](_0x1ac5d8[_0x5f03e8(0x1ee5)]);return _0x1ac5d8[_0x5f03e8(0x1ee5)]=[],_0x1c5701;}function _0x4eba26(_0x2159ca){const _0x5511c7=_0x21b380,_0x572c49=_0x338d18['confirm']()[_0x5511c7(0x1189)](_0x5511c7(0x1602))['htmlContent'](_0x5511c7(0x16d3)+_0x1ac5d8['selectedSmsAccountSmsCannedAnswers'][_0x5511c7(0x402)]+_0x5511c7(0x2452)+'\x20will\x20be\x20deleted.')[_0x5511c7(0x4bd)](_0x5511c7(0x1c79))[_0x5511c7(0x1f27)](_0x2159ca)['ok']('OK')[_0x5511c7(0x6c3)](_0x5511c7(0x39a));_0x338d18[_0x5511c7(0x2615)](_0x572c49)[_0x5511c7(0x146b)](function(){const _0x2f888c=_0x5511c7;_0x1ac5d8[_0x2f888c(0x1ee5)][_0x2f888c(0x1df5)](function(_0x1c8b08){_0x2edf22(_0x1c8b08);}),_0x1ac5d8[_0x2f888c(0x1ee5)]=[];});}let _0x221584=!![],_0x1996df=0x1;_0x534ba9['$watch'](_0x21b380(0x117f),function(_0x198c37,_0x2bdc7d){const _0x33153e=_0x21b380;_0x221584?_0x665aca(function(){_0x221584=![];}):(!_0x2bdc7d&&(_0x1996df=_0x1ac5d8[_0x33153e(0x1a56)]['page']),_0x198c37!==_0x2bdc7d&&(_0x1ac5d8[_0x33153e(0x1a56)][_0x33153e(0x844)]=0x1),!_0x198c37&&(_0x1ac5d8['query']['page']=_0x1996df),_0xeee2e5());});}const _0x252d55=_0x3ab594;;_0x3953b1[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1862),'$location','$mdDialog','$q',_0x313a4d(0x214b),'toasty',_0x313a4d(0xcb0),'smsCannedAnswer','api',_0x313a4d(0xa87),'license',_0x313a4d(0x15b9),_0x313a4d(0x2514)];function _0x3953b1(_0x441d1d,_0x3ee28d,_0x195eac,_0x5da023,_0x2d9897,_0x16e3f7,_0x8ff33e,_0xb5cf93,_0x51a8f0,_0x3f58c4,_0x33c42b,_0x1d3fa0,_0x5db593,_0x319028){const _0x5acf90=_0x313a4d,_0x312872=this;_0x312872['currentUser']=_0x33c42b[_0x5acf90(0xb12)](),_0x312872['errors']=[],_0x312872[_0x5acf90(0x15b9)]=_0x5db593,_0x312872[_0x5acf90(0x2690)]=_0x1d3fa0,_0x312872['crudPermissions']=_0x319028,_0x312872[_0x5acf90(0x855)]={},_0x312872[_0x5acf90(0x2251)]=_0x312872[_0x5acf90(0x15b9)]&&_0x312872[_0x5acf90(0x15b9)][_0x5acf90(0x976)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x312872[_0x5acf90(0x1189)]=_0x5acf90(0x8c8),_0x312872[_0x5acf90(0x110d)]=angular[_0x5acf90(0x235a)](_0x51a8f0),_0x312872[_0x5acf90(0xcb0)]=_0xb5cf93,_0x312872[_0x5acf90(0xdd0)]=![];!_0x312872[_0x5acf90(0x110d)]&&(_0x312872[_0x5acf90(0x110d)]={},_0x312872[_0x5acf90(0x1189)]=_0x5acf90(0x1fb5),_0x312872['newSmsCannedAnswer']=!![]);_0x3ee28d['params']['id']&&(_0x312872[_0x5acf90(0x110d)][_0x5acf90(0x1481)]=_0x3ee28d[_0x5acf90(0x16a)]['id']);_0x312872[_0x5acf90(0x28a4)]=_0x521ccf,_0x312872['saveSmsCannedAnswer']=_0x9fc4d1,_0x312872[_0x5acf90(0x1f3b)]=_0x178017,_0x312872['getDateFromString']=_0x5f5ca3,_0x312872[_0x5acf90(0x13f3)]=_0x101792;function _0x521ccf(){const _0x511b18=_0x5acf90;_0x312872['errors']=[],_0x3f58c4[_0x511b18(0x1ada)][_0x511b18(0x1e3)](_0x312872[_0x511b18(0x110d)])[_0x511b18(0x2945)][_0x511b18(0x146b)](function(_0x1c4144){const _0x43835c=_0x511b18;_0x312872[_0x43835c(0xcb0)][_0x43835c(0xb3d)](_0x1c4144[_0x43835c(0x2488)]()),_0x8ff33e[_0x43835c(0x1c75)]({'title':_0x43835c(0x4c2),'msg':_0x312872[_0x43835c(0x110d)][_0x43835c(0x19eb)]?_0x312872[_0x43835c(0x110d)][_0x43835c(0x19eb)]+_0x43835c(0x1386):''}),_0x101792(_0x1c4144);})[_0x511b18(0x129e)](function(_0x34f83a){const _0x1dfb2e=_0x511b18;if(_0x34f83a[_0x1dfb2e(0x524)]&&_0x34f83a[_0x1dfb2e(0x524)][_0x1dfb2e(0xcef)]&&_0x34f83a[_0x1dfb2e(0x524)][_0x1dfb2e(0xcef)]['length']){_0x312872[_0x1dfb2e(0xcef)]=_0x34f83a[_0x1dfb2e(0x524)]['errors']||[{'message':_0x34f83a[_0x1dfb2e(0xd5f)](),'type':_0x1dfb2e(0x13f)}];for(let _0x346c60=0x0;_0x346c60<_0x34f83a[_0x1dfb2e(0x524)][_0x1dfb2e(0xcef)][_0x1dfb2e(0x402)];_0x346c60+=0x1){_0x8ff33e[_0x1dfb2e(0x1980)]({'title':_0x34f83a[_0x1dfb2e(0x524)]['errors'][_0x346c60][_0x1dfb2e(0x1142)],'msg':_0x34f83a[_0x1dfb2e(0x524)]['errors'][_0x346c60]['message']});}}else _0x8ff33e['error']({'title':_0x34f83a[_0x1dfb2e(0x107b)]?_0x1dfb2e(0x262a)+_0x34f83a[_0x1dfb2e(0x107b)]+_0x1dfb2e(0x1315)+_0x34f83a[_0x1dfb2e(0x167f)]:_0x1dfb2e(0x13f),'msg':_0x34f83a[_0x1dfb2e(0x524)]?JSON['stringify'](_0x34f83a[_0x1dfb2e(0x524)][_0x1dfb2e(0x7fd)]):_0x34f83a[_0x1dfb2e(0xd5f)]()});});}function _0x9fc4d1(){const _0x370b36=_0x5acf90;_0x312872[_0x370b36(0xcef)]=[],_0x3f58c4[_0x370b36(0x1ada)][_0x370b36(0x18e1)]({'id':_0x312872[_0x370b36(0x110d)]['id']},_0x312872['smsCannedAnswer'])[_0x370b36(0x2945)][_0x370b36(0x146b)](function(_0xe88f1c){const _0x3ec766=_0x370b36,_0xe0d7f8=_0x3f65c0()[_0x3ec766(0xc84)](_0x312872[_0x3ec766(0xcb0)],{'id':_0xe88f1c['id']});_0xe0d7f8&&_0x3f65c0()[_0x3ec766(0x168d)](_0xe0d7f8,_0x3f65c0()[_0x3ec766(0x40e)](_0xe88f1c[_0x3ec766(0x2488)](),_0x3f65c0()[_0x3ec766(0x627)](_0xe0d7f8))),_0x8ff33e[_0x3ec766(0x1c75)]({'title':'SmsCannedAnswer\x20properly\x20saved!','msg':_0x312872[_0x3ec766(0x110d)][_0x3ec766(0x19eb)]?_0x312872[_0x3ec766(0x110d)][_0x3ec766(0x19eb)]+_0x3ec766(0x24db):''}),_0x101792(_0xe88f1c);})[_0x370b36(0x129e)](function(_0x25aa7b){const _0x1b8fe3=_0x370b36;if(_0x25aa7b[_0x1b8fe3(0x524)]&&_0x25aa7b[_0x1b8fe3(0x524)][_0x1b8fe3(0xcef)]&&_0x25aa7b[_0x1b8fe3(0x524)][_0x1b8fe3(0xcef)][_0x1b8fe3(0x402)]){_0x312872[_0x1b8fe3(0xcef)]=_0x25aa7b[_0x1b8fe3(0x524)][_0x1b8fe3(0xcef)]||[{'message':_0x25aa7b[_0x1b8fe3(0xd5f)](),'type':_0x1b8fe3(0x11ab)}];for(let _0x244947=0x0;_0x244947<_0x25aa7b[_0x1b8fe3(0x524)][_0x1b8fe3(0xcef)]['length'];_0x244947++){_0x8ff33e[_0x1b8fe3(0x1980)]({'title':_0x25aa7b[_0x1b8fe3(0x524)][_0x1b8fe3(0xcef)][_0x244947]['type'],'msg':_0x25aa7b[_0x1b8fe3(0x524)]['errors'][_0x244947][_0x1b8fe3(0x7fd)]});}}else _0x8ff33e['error']({'title':_0x25aa7b[_0x1b8fe3(0x107b)]?_0x1b8fe3(0x262a)+_0x25aa7b['status']+_0x1b8fe3(0x1315)+_0x25aa7b[_0x1b8fe3(0x167f)]:'api.cannedAnswer.update','msg':_0x25aa7b[_0x1b8fe3(0x524)]?JSON[_0x1b8fe3(0x10bb)](_0x25aa7b[_0x1b8fe3(0x524)]['message']):_0x25aa7b['toString']()});});}function _0x178017(_0x58847e){const _0x7af456=_0x5acf90;_0x312872[_0x7af456(0xcef)]=[];const _0x37245c=_0x5da023['confirm']()['title'](_0x7af456(0x1d64))[_0x7af456(0x80f)](_0x7af456(0x441))['ariaLabel'](_0x7af456(0x897))['ok'](_0x7af456(0x25de))[_0x7af456(0x6c3)](_0x7af456(0xcf0))[_0x7af456(0x1f27)](_0x58847e);_0x5da023[_0x7af456(0x2615)](_0x37245c)[_0x7af456(0x146b)](function(){const _0x566993=_0x7af456;_0x3f58c4[_0x566993(0x1ada)][_0x566993(0x1fac)]({'id':_0x312872[_0x566993(0x110d)]['id']})[_0x566993(0x2945)][_0x566993(0x146b)](function(){const _0x56230e=_0x566993;_0x3f65c0()[_0x56230e(0x2640)](_0x312872[_0x56230e(0xcb0)],{'id':_0x312872['smsCannedAnswer']['id']}),_0x8ff33e['success']({'title':_0x56230e(0x17b4),'msg':(_0x312872[_0x56230e(0x110d)][_0x56230e(0x19eb)]||_0x56230e(0x110d))+_0x56230e(0x23e3)}),_0x101792(_0x312872[_0x56230e(0x110d)]);})[_0x566993(0x129e)](function(_0x10c1c8){const _0x3f076e=_0x566993;if(_0x10c1c8['data']&&_0x10c1c8[_0x3f076e(0x524)]['errors']&&_0x10c1c8[_0x3f076e(0x524)][_0x3f076e(0xcef)][_0x3f076e(0x402)]){_0x312872[_0x3f076e(0xcef)]=_0x10c1c8[_0x3f076e(0x524)]['errors']||[{'message':_0x10c1c8['toString'](),'type':_0x3f076e(0xe6a)}];for(let _0x218d73=0x0;_0x218d73<_0x10c1c8[_0x3f076e(0x524)][_0x3f076e(0xcef)][_0x3f076e(0x402)];_0x218d73++){_0x8ff33e[_0x3f076e(0x1980)]({'title':_0x10c1c8['data']['errors'][_0x218d73][_0x3f076e(0x1142)],'msg':_0x10c1c8[_0x3f076e(0x524)]['errors'][_0x218d73][_0x3f076e(0x7fd)]});}}else _0x8ff33e[_0x3f076e(0x1980)]({'title':_0x10c1c8[_0x3f076e(0x107b)]?_0x3f076e(0x262a)+_0x10c1c8[_0x3f076e(0x107b)]+'\x20-\x20'+_0x10c1c8[_0x3f076e(0x167f)]:_0x3f076e(0xe6a),'msg':_0x10c1c8[_0x3f076e(0x524)]?JSON[_0x3f076e(0x10bb)](_0x10c1c8[_0x3f076e(0x524)][_0x3f076e(0x7fd)]):_0x10c1c8[_0x3f076e(0x7fd)]||_0x10c1c8[_0x3f076e(0xd5f)]()});});},function(){});}function _0x5f5ca3(_0x17c102){return _0x17c102===null?undefined:new Date(_0x17c102);}function _0x101792(_0x49c009){const _0x42dff4=_0x5acf90;_0x5da023[_0x42dff4(0x2458)](_0x49c009);}}const _0x4d2442=_0x3953b1;;_0x1d2d7f[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1aa9),_0x313a4d(0x1862),_0x313a4d(0x15fe),_0x313a4d(0x10e8),'$document',_0x313a4d(0x1abe),_0x313a4d(0x214b),_0x313a4d(0x247f),'toasty',_0x313a4d(0xa87)];function _0x1d2d7f(_0x21f4ac,_0x4373e5,_0x4e129c,_0x444717,_0x981759,_0xd30f69,_0x45290b,_0x1408fb,_0x56df44,_0x12d6ce,_0x3f2af7){const _0x3bc7e5=_0x313a4d,_0x10dc52=this;_0x10dc52[_0x3bc7e5(0x2321)]=_0x3f2af7[_0x3bc7e5(0xb12)](),_0x10dc52[_0x3bc7e5(0x2647)]={'count':0x0,'rows':[]},_0x10dc52['selectedDispositions']=[],_0x10dc52[_0x3bc7e5(0x2514)],_0x10dc52[_0x3bc7e5(0xd92)]={'first':_0x3bc7e5(0x20c1),'second':_0x3bc7e5(0x227b),'third':_0x3bc7e5(0x1195)},_0x10dc52[_0x3bc7e5(0x1a56)]={'fields':'id,level,name,description,ParentId,createdAt,updatedAt','sort':'-updatedAt','limit':0xa,'page':0x1},_0x10dc52['init']=_0x244f8c,_0x10dc52[_0x3bc7e5(0x19b4)]=_0x1d89e5,_0x10dc52[_0x3bc7e5(0x1c75)]=_0x15f825,_0x10dc52[_0x3bc7e5(0x2451)]=_0x3ed722,_0x10dc52[_0x3bc7e5(0x24dc)]=_0x388e7b,_0x10dc52[_0x3bc7e5(0x1220)]=_0x4f83fb,_0x10dc52[_0x3bc7e5(0x25f0)]=_0x4ebdb6,_0x10dc52[_0x3bc7e5(0x11e4)]=_0x594a0c,_0x10dc52[_0x3bc7e5(0x4f0)]=_0x4e067e,_0x10dc52[_0x3bc7e5(0x481)]=_0x4b7ebd;function _0x244f8c(_0x2f4e54,_0x518fde){const _0x24c5f8=_0x3bc7e5;_0x10dc52[_0x24c5f8(0x2209)]=_0x2f4e54||{},_0x10dc52[_0x24c5f8(0x2514)]=typeof _0x518fde!==_0x24c5f8(0x2274)?_0x518fde:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x10dc52[_0x24c5f8(0x1a56)]['SmsAccountId']=_0x10dc52[_0x24c5f8(0x2209)]['id'],_0x10dc52[_0x24c5f8(0x1a56)]['id']=_0x10dc52[_0x24c5f8(0x2209)]['id'],_0x3ed722();}function _0x388e7b(_0x45e629,_0x553554){const _0x1fdbeb=_0x3bc7e5;_0x981759[_0x1fdbeb(0x2615)]({'controller':_0x1fdbeb(0x1a84),'controllerAs':'vm','templateUrl':_0x4f093a,'parent':angular[_0x1fdbeb(0x1853)](_0xd30f69[_0x1fdbeb(0x2586)]),'targetEvent':_0x45e629,'clickOutsideToClose':!![],'locals':{'disposition':_0x553554,'model':{'id':_0x10dc52[_0x1fdbeb(0x2209)]['id'],'field':'SmsAccountId','route':'smsAccount'},'license':null,'setting':null,'crudPermissions':_0x10dc52[_0x1fdbeb(0x2514)]}})[_0x1fdbeb(0x146b)](function(_0x27e1f1){if(_0x27e1f1)_0x3ed722();});}function _0x1d89e5(_0x1ec398,_0xdadb4f){const _0x2c3750=_0x3bc7e5,_0x587f60=_0x3f65c0()[_0x2c3750(0x1360)](_0x10dc52[_0x2c3750(0x2647)]['rows'],[_0x2c3750(0x11b5),_0x1ec398['id']]),_0x581c0b=_0x981759[_0x2c3750(0x1e8a)]()[_0x2c3750(0x1189)](_0x1408fb[_0x2c3750(0xde)](_0x2c3750(0x19e6)))[_0x2c3750(0x80f)](_0x1408fb[_0x2c3750(0xde)](_0x2c3750(0xe8d)+(_0x587f60?_0x2c3750(0xda9):'DISPOSITION_DELETE_MESSAGE'),{'name':_0x1ec398['name']}))[_0x2c3750(0x4bd)](_0x2c3750(0x27d1))['targetEvent'](_0xdadb4f)['ok']('OK')[_0x2c3750(0x6c3)](_0x1408fb[_0x2c3750(0xde)]('APP.CANCEL'));_0x981759[_0x2c3750(0x2615)](_0x581c0b)[_0x2c3750(0x146b)](function(){_0x4f83fb(_0x1ec398);});}function _0x15f825(_0x483518){const _0x4c13c1=_0x3bc7e5;_0x10dc52[_0x4c13c1(0x2647)]=_0x483518||{'count':0x0,'rows':[]};}function _0x3ed722(){const _0x2884d2=_0x3bc7e5;_0x10dc52[_0x2884d2(0x1a56)][_0x2884d2(0x145d)]=(_0x10dc52['query'][_0x2884d2(0x844)]-0x1)*_0x10dc52[_0x2884d2(0x1a56)][_0x2884d2(0x221e)],_0x10dc52['promise']=_0x56df44['smsAccount'][_0x2884d2(0x2451)](_0x10dc52[_0x2884d2(0x1a56)],_0x15f825)[_0x2884d2(0x2945)];}function _0x4f83fb(_0x4bd3ee){const _0x189545=_0x3bc7e5;_0x56df44[_0x189545(0x9e1)][_0x189545(0x1fac)]({'id':_0x4bd3ee['id']})['$promise'][_0x189545(0x146b)](function(){const _0x1fb409=_0x189545;_0x3ed722(),_0x12d6ce[_0x1fb409(0x1c75)]({'title':_0x1408fb[_0x1fb409(0xde)](_0x1fb409(0xa2f))});})[_0x189545(0x129e)](function(_0x3df33c){const _0x4daf70=_0x189545;if(_0x3df33c[_0x4daf70(0x524)]&&_0x3df33c[_0x4daf70(0x524)]['errors']&&_0x3df33c[_0x4daf70(0x524)][_0x4daf70(0xcef)][_0x4daf70(0x402)]){_0x10dc52[_0x4daf70(0xcef)]=_0x3df33c[_0x4daf70(0x524)]['errors']||[{'message':_0x3df33c[_0x4daf70(0xd5f)](),'type':'SYSTEM:DELETEdisposition'}];for(let _0x507b84=0x0;_0x507b84<_0x3df33c[_0x4daf70(0x524)]['errors'][_0x4daf70(0x402)];_0x507b84++){_0x12d6ce[_0x4daf70(0x1980)]({'title':_0x3df33c[_0x4daf70(0x524)][_0x4daf70(0xcef)][_0x507b84][_0x4daf70(0x1142)],'msg':_0x3df33c['data'][_0x4daf70(0xcef)][_0x507b84][_0x4daf70(0x7fd)]});}}else _0x12d6ce[_0x4daf70(0x1980)]({'title':_0x3df33c[_0x4daf70(0x107b)]?_0x4daf70(0x262a)+_0x3df33c[_0x4daf70(0x107b)]+_0x4daf70(0x1315)+_0x3df33c[_0x4daf70(0x167f)]:_0x4daf70(0x24a7),'msg':_0x3df33c['data']?JSON[_0x4daf70(0x10bb)](_0x3df33c['data']['message']):_0x3df33c[_0x4daf70(0x7fd)]||_0x3df33c[_0x4daf70(0xd5f)]()});});}function _0x4ebdb6(){const _0xb6f638=_0x3bc7e5,_0x3f1235=angular[_0xb6f638(0x235a)](_0x10dc52['selectedDispositions']);return _0x10dc52[_0xb6f638(0x2ad)]=[],_0x3f1235;}function _0x594a0c(_0x56ee65){const _0x3df61c=_0x3bc7e5,_0x5e3475=_0x981759[_0x3df61c(0x1e8a)]()[_0x3df61c(0x1189)](_0x1408fb[_0x3df61c(0xde)](_0x3df61c(0x1a5b)))[_0x3df61c(0x80f)](_0x1408fb['instant']('TOOLS.NOTIFICATIONS.DISPOSITIONS_DELETE_MESSAGE',{'total':_0x10dc52[_0x3df61c(0x2ad)][_0x3df61c(0x402)]}))[_0x3df61c(0x4bd)]('Delete\x20dispositions')[_0x3df61c(0x1f27)](_0x56ee65)['ok']('OK')[_0x3df61c(0x6c3)](_0x1408fb[_0x3df61c(0xde)](_0x3df61c(0x1161)));_0x981759[_0x3df61c(0x2615)](_0x5e3475)[_0x3df61c(0x146b)](function(){const _0x3a599c=_0x3df61c;_0x10dc52['selectedDispositions'][_0x3a599c(0x1df5)](function(_0x1da972){_0x4f83fb(_0x1da972);}),_0x10dc52[_0x3a599c(0x2ad)]=[];});}function _0x4e067e(){const _0x448cfa=_0x3bc7e5;_0x10dc52[_0x448cfa(0x2ad)]=[];}function _0x4b7ebd(){const _0x24ff3e=_0x3bc7e5;_0x10dc52['selectedDispositions']=_0x10dc52['dispositions'][_0x24ff3e(0x19c7)];}let _0x5750b7=!![],_0x52080b=0x1;_0x21f4ac[_0x3bc7e5(0x21e8)](_0x3bc7e5(0x117f),function(_0x19ff58,_0x56d854){const _0xeec319=_0x3bc7e5;_0x5750b7?_0x45290b(function(){_0x5750b7=![];}):(!_0x56d854&&(_0x52080b=_0x10dc52[_0xeec319(0x1a56)][_0xeec319(0x844)]),_0x19ff58!==_0x56d854&&(_0x10dc52[_0xeec319(0x1a56)][_0xeec319(0x844)]=0x1),!_0x19ff58&&(_0x10dc52[_0xeec319(0x1a56)][_0xeec319(0x844)]=_0x52080b),_0x3ed722());});}const _0x33b959=_0x1d2d7f;;const _0x90fe93=_0x4acfac['p']+_0x313a4d(0x103d);;_0x4919f5[_0x313a4d(0x11c2)]=[_0x313a4d(0x1862),_0x313a4d(0xd08),_0x313a4d(0x10e8),_0x313a4d(0x4d8),_0x313a4d(0x214b),_0x313a4d(0x2690),_0x313a4d(0x15b9),_0x313a4d(0x247f),'toasty',_0x313a4d(0xa87),_0x313a4d(0x2209),_0x313a4d(0x1366)];function _0x4919f5(_0x5b4988,_0x30168c,_0x492ed5,_0x40a2f9,_0x38cd26,_0x5cf062,_0x4aabca,_0x2c7580,_0x42fc68,_0xfb0dd9,_0x11245b,_0x324db4){const _0x176c62=_0x313a4d,_0x14c5ab=this;_0x14c5ab[_0x176c62(0x2321)]=_0xfb0dd9[_0x176c62(0xb12)](),_0x14c5ab['license']=_0x5cf062,_0x14c5ab[_0x176c62(0x15b9)]=_0x4aabca,_0x14c5ab[_0x176c62(0x2251)]=_0x14c5ab[_0x176c62(0x15b9)][_0x176c62(0x976)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x14c5ab[_0x176c62(0x1002)]=_0x30168c['protocol']()+'://'+_0x30168c[_0x176c62(0x148e)](),_0x14c5ab[_0x176c62(0x2209)]=_0x11245b||_0x5b4988[_0x176c62(0x16a)][_0x176c62(0x2209)]||{},_0x14c5ab[_0x176c62(0x1366)]=_0x324db4&&_0x324db4[_0x176c62(0x51c)]==0x1?_0x324db4[_0x176c62(0x19c7)][0x0]:null,_0x14c5ab[_0x176c62(0x2514)]=_0xfb0dd9[_0x176c62(0xe60)](_0x14c5ab['userProfileSection']?_0x14c5ab[_0x176c62(0x1366)][_0x176c62(0x2514)]:null),_0x14c5ab[_0x176c62(0x855)]={},_0x14c5ab[_0x176c62(0x1b09)]=_0x5b4988['params'][_0x176c62(0x13a3)]||0x0,_0x14c5ab['agentadddialog']=_0x5a34f5,_0x14c5ab[_0x176c62(0x861)]=_0x42fc68[_0x176c62(0x271e)],_0x14c5ab[_0x176c62(0xe5c)]=_0x289fc1,_0x14c5ab['saveSmsAccount']=_0x5bbdc7,_0xfb0dd9[_0x176c62(0x23e0)](_0x176c62(0x174b))?_0x2c7580[_0x176c62(0xf03)][_0x176c62(0x16b4)]({'fields':_0x176c62(0x7a7),'sort':_0x176c62(0x19eb)})['$promise']['then'](function(_0x3899fd){const _0x436ef0=_0x176c62;_0x14c5ab[_0x436ef0(0x1324)]=_0x3899fd['rows']||[];})[_0x176c62(0x129e)](function(_0x5470fc){const _0x3fc770=_0x176c62;_0x42fc68[_0x3fc770(0x1980)]({'title':_0x5470fc[_0x3fc770(0x107b)]?_0x3fc770(0x262a)+_0x5470fc[_0x3fc770(0x107b)]+_0x3fc770(0x1315)+_0x5470fc[_0x3fc770(0x167f)]:_0x3fc770(0x11b3),'msg':_0x5470fc[_0x3fc770(0x524)]?JSON[_0x3fc770(0x10bb)](_0x5470fc[_0x3fc770(0x524)]):_0x5470fc[_0x3fc770(0xd5f)]()});}):_0x2c7580[_0x176c62(0xf03)][_0x176c62(0x16b4)]({'fields':'id,name','sort':'name'})[_0x176c62(0x2945)]['then'](function(_0x132dbb){const _0x509c76=_0x176c62;_0x14c5ab[_0x509c76(0x1324)]=_0x132dbb[_0x509c76(0x19c7)]||[];})['then'](function(){const _0x40155b=_0x176c62;return _0x2c7580[_0x40155b(0x1366)][_0x40155b(0x16b4)]({'userProfileId':_0x14c5ab[_0x40155b(0x2321)]['userProfileId'],'sectionId':0x12d})[_0x40155b(0x2945)];})['then'](function(_0x551d17){const _0x553a95=_0x176c62,_0x9ced25=_0x551d17&&_0x551d17[_0x553a95(0x19c7)]?_0x551d17[_0x553a95(0x19c7)][0x0]:null;if(!_0x9ced25){const _0x237eab=[];let _0x33c3ae=null;_0x14c5ab[_0x553a95(0x2209)]&&(_0x33c3ae=_0x3f65c0()[_0x553a95(0xc84)](_0x14c5ab[_0x553a95(0x1324)],{'id':Number(_0x14c5ab[_0x553a95(0x2209)][_0x553a95(0xb7c)])}));for(let _0x2c6b91=0x0;_0x2c6b91<_0x14c5ab[_0x553a95(0x1324)][_0x553a95(0x402)];_0x2c6b91++){_0x33c3ae&&_0x14c5ab[_0x553a95(0x1324)][_0x2c6b91]['id']===_0x33c3ae['id']&&(_0x14c5ab[_0x553a95(0x1324)][_0x2c6b91][_0x553a95(0x8ff)]=![],_0x237eab[_0x553a95(0x1f47)](_0x14c5ab[_0x553a95(0x1324)][_0x2c6b91]));}_0x14c5ab[_0x553a95(0x1324)]=_0x237eab;}else{if(!_0x9ced25[_0x553a95(0x11d2)])return _0x2c7580[_0x553a95(0xdcc)][_0x553a95(0x16b4)]({'sectionId':_0x9ced25['id']})[_0x553a95(0x2945)][_0x553a95(0x146b)](function(_0x299707){const _0x49cbcd=_0x553a95,_0x55221d=_0x3f65c0()[_0x49cbcd(0x205)](_0x299707[_0x49cbcd(0x19c7)],function(_0x7377da){const _0x26f8f9=_0x49cbcd;return _0x3f65c0()[_0x26f8f9(0xc84)](_0x14c5ab[_0x26f8f9(0x1324)],{'id':_0x7377da['resourceId']});});let _0x4098e8=null;_0x14c5ab[_0x49cbcd(0x2209)]&&(_0x4098e8=_0x3f65c0()[_0x49cbcd(0xc84)](_0x14c5ab[_0x49cbcd(0x1324)],{'id':Number(_0x14c5ab['smsAccount'][_0x49cbcd(0xb7c)])}));if(_0x4098e8&&!_0x3f65c0()[_0x49cbcd(0x1360)](_0x55221d,['id',_0x4098e8['id']])){const _0x234ba4=_0x3f65c0()[_0x49cbcd(0xc84)](_0x14c5ab[_0x49cbcd(0x1324)],{'id':_0x4098e8['id']});_0x234ba4[_0x49cbcd(0x8ff)]=![],_0x55221d['push'](_0x234ba4);}_0x14c5ab[_0x49cbcd(0x1324)]=_0x55221d;});}})['catch'](function(_0xdd4b6d){const _0x1213b7=_0x176c62;_0x42fc68[_0x1213b7(0x1980)]({'title':_0xdd4b6d[_0x1213b7(0x107b)]?_0x1213b7(0x262a)+_0xdd4b6d[_0x1213b7(0x107b)]+_0x1213b7(0x1315)+_0xdd4b6d[_0x1213b7(0x167f)]:_0x1213b7(0x1a2f),'msg':_0xdd4b6d[_0x1213b7(0x524)]?JSON[_0x1213b7(0x10bb)](_0xdd4b6d[_0x1213b7(0x524)]):_0xdd4b6d[_0x1213b7(0xd5f)]()});}),_0xfb0dd9['hasRole']('admin')?_0x2c7580['pause'][_0x176c62(0x16b4)]({'fields':'name,id','sort':_0x176c62(0x19eb),'nolimit':'true'})[_0x176c62(0x2945)][_0x176c62(0x146b)](function(_0xd615f3){_0x14c5ab['pauses']=_0xd615f3['rows']||[];})['catch'](function(_0x3505cb){const _0xc3c2a4=_0x176c62;_0x42fc68[_0xc3c2a4(0x1980)]({'title':_0x3505cb[_0xc3c2a4(0x107b)]?_0xc3c2a4(0x262a)+_0x3505cb['status']+_0xc3c2a4(0x1315)+_0x3505cb['statusText']:_0xc3c2a4(0x1e82),'msg':_0x3505cb[_0xc3c2a4(0x524)]?JSON[_0xc3c2a4(0x10bb)](_0x3505cb['data']):_0x3505cb['toString']()});}):_0x2c7580[_0x176c62(0x1e3e)][_0x176c62(0x16b4)]({'fields':_0x176c62(0x69a),'sort':_0x176c62(0x19eb),'nolimit':_0x176c62(0x1185)})[_0x176c62(0x2945)][_0x176c62(0x146b)](function(_0x5e4b63){const _0x18917a=_0x176c62;_0x14c5ab[_0x18917a(0x23bb)]=_0x5e4b63['rows']||[];})[_0x176c62(0x146b)](function(){const _0x38718a=_0x176c62;return _0x2c7580[_0x38718a(0x1366)][_0x38718a(0x16b4)]({'userProfileId':_0x14c5ab[_0x38718a(0x2321)][_0x38718a(0x209a)],'sectionId':0x3ed})['$promise'];})[_0x176c62(0x146b)](function(_0x3439ae){const _0x447b4f=_0x176c62,_0x19601e=_0x3439ae&&_0x3439ae[_0x447b4f(0x19c7)]?_0x3439ae['rows'][0x0]:null;if(!_0x19601e)_0x14c5ab[_0x447b4f(0x23bb)]=[];else{if(!_0x19601e[_0x447b4f(0x11d2)])return _0x2c7580['userProfileResource'][_0x447b4f(0x16b4)]({'sectionId':_0x19601e['id']})['$promise'][_0x447b4f(0x146b)](function(_0x552fa6){const _0x2931cd=_0x447b4f,_0x4f7212=_0x3f65c0()['map'](_0x552fa6[_0x2931cd(0x19c7)],function(_0x123ecb){const _0x48e259=_0x2931cd;return _0x3f65c0()['find'](_0x14c5ab[_0x48e259(0x23bb)],{'id':_0x123ecb['resourceId']});});_0x14c5ab[_0x2931cd(0x23bb)][_0x2931cd(0x1df5)](function(_0x4f5087){const _0x1f8853=_0x2931cd;!_0x3f65c0()['some'](_0x4f7212,['id',_0x4f5087['id']])&&(_0x4f5087[_0x1f8853(0x8ff)]=![]),_0x4f7212[_0x1f8853(0x1f47)](_0x4f5087);}),_0x14c5ab[_0x2931cd(0x23bb)]=_0x4f7212;});}})[_0x176c62(0x129e)](function(_0xf210b7){const _0x14c93f=_0x176c62;_0x42fc68['error']({'title':_0xf210b7[_0x14c93f(0x107b)]?_0x14c93f(0x262a)+_0xf210b7['status']+_0x14c93f(0x1315)+_0xf210b7['statusText']:'SYSTEM:GETpauses','msg':_0xf210b7[_0x14c93f(0x524)]?JSON[_0x14c93f(0x10bb)](_0xf210b7['data']):_0xf210b7['toString']()});});function _0x5a34f5(_0x52cac0,_0x556b00){const _0x3b1155=_0x176c62;_0x492ed5[_0x3b1155(0x2615)]({'controller':_0x3b1155(0x1d1e),'controllerAs':'vm','templateUrl':_0x90fe93,'parent':angular[_0x3b1155(0x1853)](_0x40a2f9[_0x3b1155(0x2586)]),'targetEvent':_0x556b00,'clickOutsideToClose':!![],'locals':{'smsAccount':_0x52cac0,'smsAccounts':_0x14c5ab['smsAccounts']?_0x14c5ab[_0x3b1155(0x1c34)][_0x3b1155(0x19c7)]:[],'crudPermissions':_0x14c5ab[_0x3b1155(0x2514)],'realtime':![]}});}function _0x289fc1(){const _0x115082=_0x176c62;_0x5b4988['go'](_0x115082(0x51a),{},{'reload':_0x115082(0x51a)});}function _0x5bbdc7(){const _0x3df328=_0x176c62;_0x2c7580[_0x3df328(0x2209)][_0x3df328(0x18e1)]({'id':_0x14c5ab[_0x3df328(0x2209)]['id']},_0x14c5ab[_0x3df328(0x2209)])[_0x3df328(0x2945)]['then'](function(){const _0x4d3e0e=_0x3df328;_0x42fc68['success']({'title':_0x4d3e0e(0x28ae),'msg':_0x14c5ab[_0x4d3e0e(0x2209)][_0x4d3e0e(0x19eb)]?_0x14c5ab[_0x4d3e0e(0x2209)][_0x4d3e0e(0x19eb)]+'\x20has\x20been\x20updated!':''});})['catch'](function(_0x53def4){const _0xbf5b9d=_0x3df328;_0x42fc68[_0xbf5b9d(0x1980)]({'title':_0x53def4[_0xbf5b9d(0x107b)]?_0xbf5b9d(0x262a)+_0x53def4[_0xbf5b9d(0x107b)]+_0xbf5b9d(0x1315)+_0x53def4[_0xbf5b9d(0x167f)]:_0xbf5b9d(0x2117),'msg':_0x53def4[_0xbf5b9d(0x524)]?JSON['stringify'](_0x53def4[_0xbf5b9d(0x524)]):_0x53def4[_0xbf5b9d(0xd5f)]()});});}}const _0x269ea6=_0x4919f5;;const _0x7e5b5a=_0x4acfac['p']+_0x313a4d(0x7e9);;_0x38a01c[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1aa9),_0x313a4d(0x1862),_0x313a4d(0x15fe),'$mdDialog',_0x313a4d(0x4d8),'$timeout',_0x313a4d(0x214b),_0x313a4d(0x1c34),'userProfile',_0x313a4d(0x1366),'api',_0x313a4d(0x216c),_0x313a4d(0x1fe4),_0x313a4d(0xa87),'license',_0x313a4d(0x15b9)];function _0x38a01c(_0x4cad2b,_0x10d341,_0x464424,_0x28b4ee,_0x31b060,_0x1318b0,_0x160c72,_0x4b96e9,_0x4c9f56,_0x4a53b7,_0x9ab92c,_0x4d17ba,_0x1c595c,_0x47507c,_0x2c5f65,_0x429023,_0x8bd4e1){const _0x10b537=_0x313a4d,_0x2cdee7=this;_0x2cdee7[_0x10b537(0x2690)]=_0x429023,_0x2cdee7[_0x10b537(0x15b9)]=_0x8bd4e1,_0x2cdee7[_0x10b537(0x2321)]=_0x2c5f65[_0x10b537(0xb12)](),_0x2cdee7[_0x10b537(0x1c34)]=_0x4c9f56||{'count':0x0,'rows':[]},_0x2cdee7[_0x10b537(0x26b6)]=_0x4a53b7,_0x2cdee7[_0x10b537(0x1366)]=_0x9ab92c&&_0x9ab92c['count']==0x1?_0x9ab92c[_0x10b537(0x19c7)][0x0]:null,_0x2cdee7[_0x10b537(0x2514)]=_0x2c5f65['parseCrudPermissions'](_0x2cdee7['userProfileSection']?_0x2cdee7[_0x10b537(0x1366)]['crudPermissions']:null),_0x2cdee7[_0x10b537(0x768)]='smsAccounts',_0x2cdee7[_0x10b537(0x216a)]='',_0x2cdee7[_0x10b537(0x214f)]=null,_0x2cdee7[_0x10b537(0x237f)]=[],_0x2cdee7[_0x10b537(0x1a56)]={'fields':_0x10b537(0x276e),'sort':_0x10b537(0x12f2),'limit':0xa,'page':0x1},_0x2cdee7[_0x10b537(0x11da)]=_0x3f65c0()['keyBy']([{'option':_0x10b537(0x1eba),'value':_0x10b537(0x169c)},{'option':_0x10b537(0xa47),'value':'\x27skebby\x27'},{'option':_0x10b537(0x162b),'value':_0x10b537(0x1b18)},{'option':_0x10b537(0x21d9),'value':'\x27clicksend\x27'},{'option':_0x10b537(0x283f),'value':'\x27plivo\x27'},{'option':_0x10b537(0x18b2),'value':_0x10b537(0x1778)},{'option':_0x10b537(0x1818),'value':_0x10b537(0x13d0)},{'option':'CSCTelecom','value':_0x10b537(0x1de7)},{'option':'Intelepeer','value':_0x10b537(0x258d)}],function(_0x3df8e3){const _0x417198=_0x10b537;return _0x3f65c0()[_0x417198(0x5f4)](_0x3df8e3[_0x417198(0x175d)],new RegExp('\x27','g'),'');}),_0x2cdee7[_0x10b537(0xa7d)]=_0x3f65c0()[_0x10b537(0x194)]([{'option':_0x10b537(0x267f),'value':_0x10b537(0x60e)},{'option':'Classic','value':_0x10b537(0x26a5)},{'option':_0x10b537(0x241a),'value':_0x10b537(0x624)}],function(_0xc75f98){const _0x814242=_0x10b537;return _0x3f65c0()['replace'](_0xc75f98[_0x814242(0x175d)],new RegExp('\x27','g'),'');}),_0x2cdee7[_0x10b537(0x23f9)]=_0x5136a8,_0x2cdee7[_0x10b537(0xbce)]=_0x1ec358,_0x2cdee7['agentadddialog']=_0x2b5733,_0x2cdee7['deleteconfirm']=_0x479664,_0x2cdee7[_0x10b537(0x1c75)]=_0x553990,_0x2cdee7['getSmsAccounts']=_0x484829,_0x2cdee7['createOrEditSmsAccount']=_0x334f1a,_0x2cdee7['deleteSmsAccount']=_0x3d49f4,_0x2cdee7[_0x10b537(0x20ef)]=_0x3aeb01,_0x2cdee7[_0x10b537(0x1825)]=_0x3f966c,_0x2cdee7[_0x10b537(0xc05)]=_0x24324e,_0x2cdee7['selectAllSmsAccounts']=_0xd224f,_0x2c5f65[_0x10b537(0x23e0)](_0x10b537(0x174b))?_0x4d17ba[_0x10b537(0xf03)]['get']({'fields':_0x10b537(0x7a7),'sort':_0x10b537(0x19eb)})[_0x10b537(0x2945)][_0x10b537(0x146b)](function(_0x2765fb){const _0x3da58f=_0x10b537;_0x2cdee7['lists']=_0x2765fb[_0x3da58f(0x19c7)]||[];})[_0x10b537(0x129e)](function(_0xce102e){const _0x1a4931=_0x10b537;_0x47507c[_0x1a4931(0x1980)]({'title':_0xce102e[_0x1a4931(0x107b)]?_0x1a4931(0x262a)+_0xce102e[_0x1a4931(0x107b)]+_0x1a4931(0x1315)+_0xce102e[_0x1a4931(0x167f)]:_0x1a4931(0x11b3),'msg':_0xce102e['data']?JSON[_0x1a4931(0x10bb)](_0xce102e[_0x1a4931(0x524)]):_0xce102e[_0x1a4931(0xd5f)]()});}):_0x4d17ba[_0x10b537(0xf03)][_0x10b537(0x16b4)]({'fields':_0x10b537(0x7a7),'sort':_0x10b537(0x19eb)})[_0x10b537(0x2945)][_0x10b537(0x146b)](function(_0x4b830c){const _0x4195f3=_0x10b537;_0x2cdee7[_0x4195f3(0x1324)]=_0x4b830c[_0x4195f3(0x19c7)]||[];})[_0x10b537(0x146b)](function(){const _0x498ec6=_0x10b537;return _0x4d17ba[_0x498ec6(0x1366)]['get']({'userProfileId':_0x2cdee7['currentUser'][_0x498ec6(0x209a)],'sectionId':0x12d})[_0x498ec6(0x2945)];})['then'](function(_0x19c06d){const _0x4b28e2=_0x10b537,_0x18d311=_0x19c06d&&_0x19c06d[_0x4b28e2(0x19c7)]?_0x19c06d['rows'][0x0]:null;if(!_0x18d311){const _0x256edb=[];let _0x3c8a4b=null;_0x2cdee7['smsAccount']&&(_0x3c8a4b=_0x3f65c0()[_0x4b28e2(0xc84)](_0x2cdee7[_0x4b28e2(0x1324)],{'id':Number(_0x2cdee7[_0x4b28e2(0x2209)][_0x4b28e2(0xb7c)])}));for(let _0x2dcd83=0x0;_0x2dcd83<_0x2cdee7[_0x4b28e2(0x1324)][_0x4b28e2(0x402)];_0x2dcd83++){_0x3c8a4b&&_0x2cdee7['lists'][_0x2dcd83]['id']===_0x3c8a4b['id']&&(_0x2cdee7[_0x4b28e2(0x1324)][_0x2dcd83][_0x4b28e2(0x8ff)]=![],_0x256edb[_0x4b28e2(0x1f47)](_0x2cdee7['lists'][_0x2dcd83]));}_0x2cdee7[_0x4b28e2(0x1324)]=_0x256edb;}else{if(!_0x18d311[_0x4b28e2(0x11d2)])return _0x4d17ba[_0x4b28e2(0xdcc)][_0x4b28e2(0x16b4)]({'sectionId':_0x18d311['id']})[_0x4b28e2(0x2945)][_0x4b28e2(0x146b)](function(_0x31ed79){const _0x99393e=_0x4b28e2,_0x2e745b=_0x3f65c0()[_0x99393e(0x205)](_0x31ed79['rows'],function(_0x9e2619){const _0x198837=_0x99393e;return _0x3f65c0()[_0x198837(0xc84)](_0x2cdee7[_0x198837(0x1324)],{'id':_0x9e2619[_0x198837(0x18b8)]});});let _0x1ea2e2=null;_0x2cdee7[_0x99393e(0x2209)]&&(_0x1ea2e2=_0x3f65c0()['find'](_0x2cdee7[_0x99393e(0x1324)],{'id':Number(_0x2cdee7[_0x99393e(0x2209)]['ListId'])}));if(_0x1ea2e2&&!_0x3f65c0()[_0x99393e(0x1360)](_0x2e745b,['id',_0x1ea2e2['id']])){const _0x1b0702=_0x3f65c0()[_0x99393e(0xc84)](_0x2cdee7[_0x99393e(0x1324)],{'id':_0x1ea2e2['id']});_0x1b0702['canSelect']=![],_0x2e745b[_0x99393e(0x1f47)](_0x1b0702);}_0x2cdee7[_0x99393e(0x1324)]=_0x2e745b;});}})[_0x10b537(0x129e)](function(_0x294a4f){const _0x4117ee=_0x10b537;_0x47507c[_0x4117ee(0x1980)]({'title':_0x294a4f[_0x4117ee(0x107b)]?'API:'+_0x294a4f['status']+_0x4117ee(0x1315)+_0x294a4f[_0x4117ee(0x167f)]:_0x4117ee(0x1a2f),'msg':_0x294a4f[_0x4117ee(0x524)]?JSON['stringify'](_0x294a4f['data']):_0x294a4f['toString']()});});function _0x5136a8(_0x12be52){const _0x4310e7=_0x10b537;_0x464424['go'](_0x4310e7(0x2d1),{'id':_0x12be52['id'],'smsAccount':_0x12be52,'crudPermissions':_0x2cdee7[_0x4310e7(0x2514)]});}function _0x1ec358(_0x1b69fc){const _0x1ba228=_0x10b537;_0x464424['go'](_0x1ba228(0x2d1),{'id':_0x1b69fc['id'],'tab':0x5});}function _0x2b5733(_0x5edc2b,_0x36c79b){const _0x17ac4d=_0x10b537;_0x31b060['show']({'controller':'SmsAccountagentaddController','controllerAs':'vm','templateUrl':_0x90fe93,'parent':angular[_0x17ac4d(0x1853)](_0x1318b0[_0x17ac4d(0x2586)]),'targetEvent':_0x36c79b,'clickOutsideToClose':!![],'locals':{'smsAccount':_0x5edc2b,'smsAccounts':_0x2cdee7[_0x17ac4d(0x1c34)]?_0x2cdee7[_0x17ac4d(0x1c34)][_0x17ac4d(0x19c7)]:[],'crudPermissions':_0x2cdee7[_0x17ac4d(0x2514)],'realtime':![]}});}function _0x479664(_0x199b7b,_0x5c0f52){const _0x2890e4=_0x10b537,_0x5a799e=_0x31b060[_0x2890e4(0x1e8a)]()['title'](_0x2890e4(0xdb2)+_0x3f65c0()['startCase'](_0x2890e4(0x2209))+'?')['htmlContent'](''+(_0x199b7b[_0x2890e4(0x19eb)]||_0x2890e4(0x2209))+_0x2890e4(0x252f)+_0x2890e4(0xe01))['ariaLabel']('delete\x20smsAccount')[_0x2890e4(0x1f27)](_0x5c0f52)['ok']('OK')[_0x2890e4(0x6c3)](_0x2890e4(0x39a));_0x31b060[_0x2890e4(0x2615)](_0x5a799e)['then'](function(){_0x3d49f4(_0x199b7b);},function(){const _0x10b0f5=_0x2890e4;console['log'](_0x10b0f5(0x39a));});}let _0x328e68=!![],_0x4dca0a=0x1;_0x4cad2b[_0x10b537(0x21e8)](_0x10b537(0x2669),function(_0x3f9d8b,_0xfdfe54){const _0x357b70=_0x10b537;_0x328e68?_0x160c72(function(){_0x328e68=![];}):(!_0xfdfe54&&(_0x4dca0a=_0x2cdee7[_0x357b70(0x1a56)]['page']),_0x3f9d8b!==_0xfdfe54&&(_0x2cdee7[_0x357b70(0x1a56)][_0x357b70(0x844)]=0x1),!_0x3f9d8b&&(_0x2cdee7[_0x357b70(0x1a56)][_0x357b70(0x844)]=_0x4dca0a),_0x2cdee7['getSmsAccounts']());});function _0x553990(_0x36e1ba){const _0x1b1480=_0x10b537;_0x2cdee7[_0x1b1480(0x1c34)]=_0x36e1ba||{'count':0x0,'rows':[]};}function _0x484829(){const _0x335c79=_0x10b537;_0x2cdee7[_0x335c79(0x1a56)][_0x335c79(0x145d)]=(_0x2cdee7[_0x335c79(0x1a56)][_0x335c79(0x844)]-0x1)*_0x2cdee7[_0x335c79(0x1a56)][_0x335c79(0x221e)],_0x2c5f65['hasRole']('admin')?_0x2cdee7[_0x335c79(0xb9c)]=_0x4d17ba['smsAccount'][_0x335c79(0x16b4)](_0x2cdee7[_0x335c79(0x1a56)],_0x553990)['$promise']:(_0x2cdee7[_0x335c79(0x1a56)]['id']=_0x2cdee7['userProfile']['id'],_0x2cdee7[_0x335c79(0x1a56)][_0x335c79(0x2146)]=_0x335c79(0xda3),_0x2cdee7[_0x335c79(0xb9c)]=_0x4d17ba[_0x335c79(0x26b6)][_0x335c79(0x158f)](_0x2cdee7[_0x335c79(0x1a56)],_0x553990)[_0x335c79(0x2945)]);}function _0x334f1a(_0x4a0900,_0x216666){const _0x409736=_0x10b537;_0x31b060[_0x409736(0x2615)]({'controller':_0x409736(0x16e9),'controllerAs':'vm','templateUrl':_0x7e5b5a,'parent':angular[_0x409736(0x1853)](_0x1318b0[_0x409736(0x2586)]),'targetEvent':_0x4a0900,'clickOutsideToClose':!![],'locals':{'smsAccount':_0x216666,'smsAccounts':_0x2cdee7['smsAccounts'][_0x409736(0x19c7)],'license':_0x2cdee7['license'],'setting':_0x2cdee7[_0x409736(0x15b9)],'crudPermissions':_0x2cdee7[_0x409736(0x2514)]}});}function _0x3d49f4(_0xa78c2c){const _0x100643=_0x10b537;_0x4d17ba['smsAccount'][_0x100643(0x1fac)]({'id':_0xa78c2c['id']})[_0x100643(0x2945)][_0x100643(0x146b)](function(){const _0x511a61=_0x100643;_0x3f65c0()[_0x511a61(0x2640)](_0x2cdee7[_0x511a61(0x1c34)][_0x511a61(0x19c7)],{'id':_0xa78c2c['id']}),_0x2cdee7[_0x511a61(0x1c34)][_0x511a61(0x51c)]-=0x1,!_0x2cdee7[_0x511a61(0x1c34)][_0x511a61(0x19c7)][_0x511a61(0x402)]&&_0x2cdee7['getSmsAccounts'](),_0x47507c[_0x511a61(0x1c75)]({'title':_0x3f65c0()[_0x511a61(0x20d1)](_0x511a61(0x2197))+_0x511a61(0x201c),'msg':_0xa78c2c[_0x511a61(0x19eb)]?_0xa78c2c[_0x511a61(0x19eb)]+_0x511a61(0x23e3):''});})[_0x100643(0x129e)](function(_0x622745){const _0x2b764e=_0x100643;if(_0x622745[_0x2b764e(0x524)]&&_0x622745['data']['errors']&&_0x622745[_0x2b764e(0x524)][_0x2b764e(0xcef)]['length']){_0x2cdee7[_0x2b764e(0xcef)]=_0x622745['data'][_0x2b764e(0xcef)]||[{'message':_0x622745[_0x2b764e(0xd5f)](),'type':_0x2b764e(0x24ab)}];for(let _0x7dc693=0x0;_0x7dc693<_0x622745['data'][_0x2b764e(0xcef)][_0x2b764e(0x402)];_0x7dc693++){_0x47507c[_0x2b764e(0x1980)]({'title':_0x622745[_0x2b764e(0x524)][_0x2b764e(0xcef)][_0x7dc693]['type'],'msg':_0x622745['data']['errors'][_0x7dc693][_0x2b764e(0x7fd)]});}}else _0x47507c['error']({'title':_0x622745[_0x2b764e(0x107b)]?_0x2b764e(0x262a)+_0x622745[_0x2b764e(0x107b)]+'\x20-\x20'+_0x622745[_0x2b764e(0x167f)]:_0x2b764e(0x24ab),'msg':_0x622745[_0x2b764e(0x524)]?JSON[_0x2b764e(0x10bb)](_0x622745[_0x2b764e(0x524)]['message']):_0x622745[_0x2b764e(0x7fd)]||_0x622745[_0x2b764e(0xd5f)]()});});}function _0x3aeb01(){const _0x1f38a1=_0x10b537,_0x5dfbd3=angular['copy'](_0x2cdee7['selectedSmsAccounts']);return _0x2cdee7[_0x1f38a1(0x237f)]=[],_0x5dfbd3;}function _0x3f966c(_0x281ca7){const _0x2188b0=_0x10b537,_0x15add1=_0x31b060[_0x2188b0(0x1e8a)]()[_0x2188b0(0x1189)](_0x2188b0(0x2752))[_0x2188b0(0x1cbe)](''+_0x2cdee7[_0x2188b0(0x237f)]['length']+'\x20selected'+_0x2188b0(0xe01))['ariaLabel']('delete\x20SmsAccounts')[_0x2188b0(0x1f27)](_0x281ca7)['ok']('OK')[_0x2188b0(0x6c3)]('CANCEL');_0x31b060[_0x2188b0(0x2615)](_0x15add1)[_0x2188b0(0x146b)](function(){const _0xd6fb20=_0x2188b0;_0x2cdee7[_0xd6fb20(0x237f)][_0xd6fb20(0x1df5)](function(_0x5c58a9){_0x3d49f4(_0x5c58a9);}),_0x2cdee7[_0xd6fb20(0x237f)]=[];});}function _0x24324e(){_0x2cdee7['selectedSmsAccounts']=[];}function _0xd224f(){const _0xc7f30d=_0x10b537;_0x2cdee7['selectedSmsAccounts']=_0x2cdee7['smsAccounts'][_0xc7f30d(0x19c7)];}}const _0x3b38b4=_0x38a01c;;_0x5208ee[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1862),'$location','$mdDialog','$q',_0x313a4d(0x214b),_0x313a4d(0x1fe4),'smsQueues','smsQueue','api',_0x313a4d(0xa87),_0x313a4d(0x2690),_0x313a4d(0x15b9),_0x313a4d(0x2514)];function _0x5208ee(_0x4fbafd,_0x4741d6,_0x24877e,_0x227e1b,_0x23282f,_0x2ba5ff,_0x2b2ea5,_0x4a3493,_0x165c67,_0x3e2d87,_0x6f675a,_0x5cb946,_0x12dfe6,_0x400b28){const _0x363c6d=_0x313a4d,_0x149651=this;_0x149651[_0x363c6d(0x2321)]=_0x6f675a[_0x363c6d(0xb12)](),_0x149651[_0x363c6d(0xcef)]=[],_0x149651[_0x363c6d(0x15b9)]=_0x12dfe6,_0x149651['license']=_0x5cb946,_0x149651[_0x363c6d(0x2514)]=_0x400b28,_0x149651[_0x363c6d(0x855)]={},_0x149651['passwordPattern']=_0x149651['setting']&&_0x149651[_0x363c6d(0x15b9)][_0x363c6d(0x976)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x149651[_0x363c6d(0x1189)]=_0x363c6d(0x1df6),_0x149651[_0x363c6d(0xf80)]=angular[_0x363c6d(0x235a)](_0x165c67),_0x149651[_0x363c6d(0x1bf4)]=_0x4a3493,_0x149651[_0x363c6d(0x1173)]=![];!_0x149651['smsQueue']&&(_0x149651['smsQueue']={'strategy':_0x363c6d(0x1984),'timeout':0xa},_0x149651[_0x363c6d(0x1189)]='SMS.NEW_SMSQUEUE',_0x149651[_0x363c6d(0x1173)]=!![]);_0x149651[_0x363c6d(0x2557)]=_0x2c6fb1,_0x149651[_0x363c6d(0x1d91)]=_0x597d89,_0x149651[_0x363c6d(0xa69)]=_0x33ffb9,_0x149651[_0x363c6d(0xe73)]=_0x2e28a7,_0x149651[_0x363c6d(0x13f3)]=_0x437b9d;function _0x2c6fb1(){const _0xac81a2=_0x363c6d;_0x149651[_0xac81a2(0xcef)]=[],_0x3e2d87[_0xac81a2(0xf80)][_0xac81a2(0x1e3)](_0x149651[_0xac81a2(0xf80)])['$promise'][_0xac81a2(0x146b)](function(_0x344eec){const _0x3033b9=_0xac81a2;_0x149651[_0x3033b9(0x1bf4)][_0x3033b9(0xb3d)](_0x344eec[_0x3033b9(0x2488)]()),_0x2b2ea5[_0x3033b9(0x1c75)]({'title':'SmsQueue\x20properly\x20created','msg':_0x149651[_0x3033b9(0xf80)][_0x3033b9(0x19eb)]?_0x149651[_0x3033b9(0xf80)][_0x3033b9(0x19eb)]+_0x3033b9(0x1386):''}),_0x437b9d(_0x344eec);})[_0xac81a2(0x129e)](function(_0x29bf24){const _0x545a8e=_0xac81a2;if(_0x29bf24[_0x545a8e(0x524)]&&_0x29bf24['data']['errors']&&_0x29bf24[_0x545a8e(0x524)][_0x545a8e(0xcef)][_0x545a8e(0x402)]){_0x149651[_0x545a8e(0xcef)]=_0x29bf24[_0x545a8e(0x524)][_0x545a8e(0xcef)]||[{'message':_0x29bf24['toString'](),'type':_0x545a8e(0x1255)}];for(let _0x3a6495=0x0;_0x3a6495<_0x29bf24['data'][_0x545a8e(0xcef)][_0x545a8e(0x402)];_0x3a6495+=0x1){_0x2b2ea5[_0x545a8e(0x1980)]({'title':_0x29bf24[_0x545a8e(0x524)]['errors'][_0x3a6495][_0x545a8e(0x1142)],'msg':_0x29bf24['data'][_0x545a8e(0xcef)][_0x3a6495][_0x545a8e(0x7fd)]});}}else _0x2b2ea5[_0x545a8e(0x1980)]({'title':_0x29bf24[_0x545a8e(0x107b)]?_0x545a8e(0x262a)+_0x29bf24[_0x545a8e(0x107b)]+_0x545a8e(0x1315)+_0x29bf24[_0x545a8e(0x167f)]:_0x545a8e(0x1255),'msg':_0x29bf24[_0x545a8e(0x524)]?JSON[_0x545a8e(0x10bb)](_0x29bf24['data']['message']):_0x29bf24[_0x545a8e(0xd5f)]()});});}function _0x597d89(){const _0x295935=_0x363c6d;_0x149651[_0x295935(0xcef)]=[],_0x3e2d87[_0x295935(0xf80)][_0x295935(0x18e1)]({'id':_0x149651[_0x295935(0xf80)]['id']},_0x149651['smsQueue'])[_0x295935(0x2945)][_0x295935(0x146b)](function(_0x15c6d2){const _0xc2a998=_0x295935,_0x2bef72=_0x3f65c0()['find'](_0x149651[_0xc2a998(0x1bf4)],{'id':_0x15c6d2['id']});_0x2bef72&&_0x3f65c0()[_0xc2a998(0x168d)](_0x2bef72,_0x3f65c0()['pick'](_0x15c6d2[_0xc2a998(0x2488)](),_0x3f65c0()[_0xc2a998(0x627)](_0x2bef72))),_0x2b2ea5[_0xc2a998(0x1c75)]({'title':_0xc2a998(0x292d),'msg':_0x149651[_0xc2a998(0xf80)][_0xc2a998(0x19eb)]?_0x149651[_0xc2a998(0xf80)][_0xc2a998(0x19eb)]+'\x20has\x20been\x20saved!':''}),_0x437b9d(_0x15c6d2);})[_0x295935(0x129e)](function(_0x36468c){const _0x54ca24=_0x295935;if(_0x36468c[_0x54ca24(0x524)]&&_0x36468c['data'][_0x54ca24(0xcef)]&&_0x36468c['data'][_0x54ca24(0xcef)][_0x54ca24(0x402)]){_0x149651[_0x54ca24(0xcef)]=_0x36468c[_0x54ca24(0x524)][_0x54ca24(0xcef)]||[{'message':_0x36468c[_0x54ca24(0xd5f)](),'type':_0x54ca24(0xc74)}];for(let _0x9d54b2=0x0;_0x9d54b2<_0x36468c[_0x54ca24(0x524)][_0x54ca24(0xcef)]['length'];_0x9d54b2++){_0x2b2ea5['error']({'title':_0x36468c['data'][_0x54ca24(0xcef)][_0x9d54b2][_0x54ca24(0x1142)],'msg':_0x36468c[_0x54ca24(0x524)][_0x54ca24(0xcef)][_0x9d54b2][_0x54ca24(0x7fd)]});}}else _0x2b2ea5['error']({'title':_0x36468c[_0x54ca24(0x107b)]?_0x54ca24(0x262a)+_0x36468c[_0x54ca24(0x107b)]+'\x20-\x20'+_0x36468c[_0x54ca24(0x167f)]:_0x54ca24(0xc74),'msg':_0x36468c['data']?JSON[_0x54ca24(0x10bb)](_0x36468c[_0x54ca24(0x524)][_0x54ca24(0x7fd)]):_0x36468c[_0x54ca24(0xd5f)]()});});}function _0x33ffb9(_0x3777ba){const _0xacad29=_0x363c6d;_0x149651[_0xacad29(0xcef)]=[];const _0x4a3716=_0x227e1b[_0xacad29(0x1e8a)]()['title'](_0xacad29(0x1d64))[_0xacad29(0x80f)](_0xacad29(0x1e01))[_0xacad29(0x4bd)]('Delete\x20SmsQueue')['ok']('Delete')[_0xacad29(0x6c3)](_0xacad29(0xcf0))[_0xacad29(0x1f27)](_0x3777ba);_0x227e1b[_0xacad29(0x2615)](_0x4a3716)[_0xacad29(0x146b)](function(){const _0x583ef0=_0xacad29;_0x3e2d87[_0x583ef0(0xf80)]['delete']({'id':_0x149651['smsQueue']['id']})[_0x583ef0(0x2945)]['then'](function(){const _0x586acc=_0x583ef0;_0x3f65c0()[_0x586acc(0x2640)](_0x149651[_0x586acc(0x1bf4)],{'id':_0x149651[_0x586acc(0xf80)]['id']}),_0x2b2ea5[_0x586acc(0x1c75)]({'title':_0x586acc(0x7d8),'msg':(_0x149651[_0x586acc(0xf80)][_0x586acc(0x19eb)]||_0x586acc(0xf80))+_0x586acc(0x23e3)}),_0x437b9d(_0x149651[_0x586acc(0xf80)]);})[_0x583ef0(0x129e)](function(_0x5dfae5){const _0x372448=_0x583ef0;if(_0x5dfae5['data']&&_0x5dfae5[_0x372448(0x524)][_0x372448(0xcef)]&&_0x5dfae5[_0x372448(0x524)][_0x372448(0xcef)][_0x372448(0x402)]){_0x149651['errors']=_0x5dfae5[_0x372448(0x524)][_0x372448(0xcef)]||[{'message':_0x5dfae5['toString'](),'type':'api.smsQueue.delete'}];for(let _0x4e6445=0x0;_0x4e6445<_0x5dfae5[_0x372448(0x524)]['errors']['length'];_0x4e6445++){_0x2b2ea5[_0x372448(0x1980)]({'title':_0x5dfae5['data'][_0x372448(0xcef)][_0x4e6445][_0x372448(0x1142)],'msg':_0x5dfae5['data'][_0x372448(0xcef)][_0x4e6445][_0x372448(0x7fd)]});}}else _0x2b2ea5[_0x372448(0x1980)]({'title':_0x5dfae5['status']?_0x372448(0x262a)+_0x5dfae5[_0x372448(0x107b)]+_0x372448(0x1315)+_0x5dfae5[_0x372448(0x167f)]:'api.smsQueue.delete','msg':_0x5dfae5['data']?JSON['stringify'](_0x5dfae5[_0x372448(0x524)]['message']):_0x5dfae5[_0x372448(0x7fd)]||_0x5dfae5['toString']()});});},function(){});}function _0x2e28a7(_0x558c1c){return _0x558c1c===null?undefined:new Date(_0x558c1c);}function _0x437b9d(_0x1bca07){const _0x1e9cfb=_0x363c6d;_0x227e1b[_0x1e9cfb(0x2458)](_0x1bca07);}}const _0x4ec5e9=_0x5208ee;;_0x62d2b3[_0x313a4d(0x11c2)]=[_0x313a4d(0x10e8),'$q',_0x313a4d(0x1fe4),_0x313a4d(0x247f),_0x313a4d(0xf80),_0x313a4d(0x1bf4),'realtime',_0x313a4d(0x214b),'Auth','crudPermissions'];function _0x62d2b3(_0x1ae4aa,_0x1e4940,_0x5abbf3,_0x1d9cec,_0x162d80,_0x13bf47,_0x5bc097,_0x543c5d,_0x5323e2,_0x137db5){const _0x5d1945=_0x313a4d,_0xd92246=this;_0xd92246[_0x5d1945(0x2321)]=_0x5323e2[_0x5d1945(0xb12)](),_0xd92246['smsQueue']=_0x162d80,_0xd92246['crudPermissions']=_0x137db5,_0xd92246[_0x5d1945(0xfc4)]=_0x5bc097,_0xd92246[_0x5d1945(0x1fd6)]=[],_0xd92246[_0x5d1945(0xc4e)]=[],_0xd92246['selectedItems']=[],_0xd92246[_0x5d1945(0x2e8)]=[],_0xd92246['startingSelectedItems']=[],_0xd92246[_0x5d1945(0x132)]=![],_0xd92246[_0x5d1945(0x3d4)]=_0x173ef6,_0xd92246[_0x5d1945(0x14c2)]=_0x12b1cc,_0xd92246['closeDialog']=_0x57cce6,_0xd92246[_0x5d1945(0x1f8a)]={'readOnly':!_0xd92246['crudPermissions'][_0x5d1945(0x15f4)],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x5d1945(0x19eb),'line1':_0x5d1945(0x286a),'line2':['name',_0x5d1945(0x113f)],'line3':'','labelAll':_0x543c5d[_0x5d1945(0xde)]('APP.ALL_AGENTS'),'labelSelected':_0x543c5d[_0x5d1945(0xde)](_0x5d1945(0xf73)),'transferCallback':function(){const _0x5a01f0=_0x5d1945,_0x52228b=_0x3f65c0()['xorBy'](_0xd92246[_0x5a01f0(0xa65)],_0xd92246[_0x5a01f0(0x1ecf)],'id');_0xd92246[_0x5a01f0(0x132)]=_0x3f65c0()['isEmpty'](_0x52228b)?![]:!![];}};function _0x173ef6(){const _0x2a5644=_0x5d1945;return _0x5323e2[_0x2a5644(0x23e0)]('admin')?_0x4061ac()[_0x2a5644(0x129e)](function(_0xdd71b2){const _0x13019e=_0x2a5644;_0x5abbf3[_0x13019e(0x1980)]({'title':_0xdd71b2[_0x13019e(0x107b)]?_0x13019e(0x262a)+_0xdd71b2[_0x13019e(0x107b)]+'\x20-\x20'+_0xdd71b2[_0x13019e(0x167f)]:_0x13019e(0x557),'msg':_0xdd71b2[_0x13019e(0x107b)]?JSON['stringify'](_0xdd71b2[_0x13019e(0x524)]):_0xdd71b2[_0x13019e(0xd5f)]()});}):_0x100b6d()[_0x2a5644(0x146b)](function(_0x80210){return _0xd92246['section']=_0x80210,_0x4061ac();})[_0x2a5644(0x129e)](function(_0x38689e){const _0x41c7ed=_0x2a5644;_0x5abbf3[_0x41c7ed(0x1980)]({'title':_0x38689e[_0x41c7ed(0x107b)]?_0x41c7ed(0x262a)+_0x38689e['status']+_0x41c7ed(0x1315)+_0x38689e[_0x41c7ed(0x167f)]:_0x41c7ed(0x557),'msg':_0x38689e[_0x41c7ed(0x107b)]?JSON[_0x41c7ed(0x10bb)](_0x38689e[_0x41c7ed(0x524)]):_0x38689e[_0x41c7ed(0xd5f)]()});});}function _0x100b6d(){return _0x1e4940(function(_0x4a2efe,_0x28058e){const _0x5f04d7=a0_0x3bb9;_0x1d9cec[_0x5f04d7(0x1366)][_0x5f04d7(0x16b4)]({'userProfileId':_0xd92246[_0x5f04d7(0x2321)][_0x5f04d7(0x209a)],'name':_0x5f04d7(0xca8)})['$promise'][_0x5f04d7(0x146b)](function(_0x53d4a7){const _0x136cd0=_0x5f04d7,_0xe0b9de=_0x53d4a7&&_0x53d4a7[_0x136cd0(0x19c7)]?_0x53d4a7[_0x136cd0(0x19c7)][0x0]:null;_0x4a2efe(_0xe0b9de);})[_0x5f04d7(0x129e)](function(_0x45c366){_0x28058e(_0x45c366);});});}function _0x4061ac(){return _0x1e4940(function(_0x389fc9,_0x510791){const _0x103fcf=a0_0x3bb9;return _0x405aab()[_0x103fcf(0x146b)](function(_0x4c443c){const _0x336353=_0x103fcf;return _0xd92246[_0x336353(0x1fd6)]=_0x4c443c[_0x336353(0x19c7)]?_0x4c443c[_0x336353(0x19c7)]:[],_0x5323e2[_0x336353(0x23e0)](_0x336353(0x174b))?_0x4c443c:_0xd92246[_0x336353(0x2146)]?_0xd92246[_0x336353(0x2146)][_0x336353(0x11d2)]?_0x4c443c:_0x53ae37():null;})[_0x103fcf(0x146b)](function(_0xe2c269){const _0x4cf8d8=_0x103fcf,_0x20db23=_0xe2c269&&_0xe2c269[_0x4cf8d8(0x19c7)]?_0xe2c269['rows']:[];return _0xd92246[_0x4cf8d8(0xc4e)]=_0x3f65c0()[_0x4cf8d8(0x205)](_0x20db23,function(_0x21bb82){const _0x3182ca=_0x4cf8d8;return _0x3f65c0()[_0x3182ca(0xc84)](_0xd92246[_0x3182ca(0x1fd6)],{'id':_0x5323e2[_0x3182ca(0x23e0)]('admin')||_0xd92246[_0x3182ca(0x2146)]['autoAssociation']?_0x21bb82['id']:_0x21bb82[_0x3182ca(0x18b8)]});}),_0xd92246['startingAllowedItems']=angular[_0x4cf8d8(0x235a)](_0xd92246[_0x4cf8d8(0xc4e)]),_0xd92246[_0x4cf8d8(0x1fd6)][_0x4cf8d8(0x1df5)](function(_0x3ef34e){const _0x5b725a=_0x4cf8d8,_0x801905=_0x3f65c0()[_0x5b725a(0xc84)](_0xd92246[_0x5b725a(0xc4e)],{'id':_0x3ef34e['id']});_0x5323e2['hasRole'](_0x5b725a(0x174b))?_0x3ef34e[_0x5b725a(0x146f)]=!![]:_0x3ef34e[_0x5b725a(0x146f)]=typeof _0x801905!==_0x5b725a(0x2274)?!![]:![];}),_0x3fe5a1();})[_0x103fcf(0x146b)](function(_0x249c80){const _0x16e187=_0x103fcf,_0x225282=_0x249c80&&_0x249c80[_0x16e187(0x19c7)]?_0x249c80[_0x16e187(0x19c7)]:[];_0xd92246[_0x16e187(0x1ecf)]=_0x3f65c0()[_0x16e187(0x205)](_0x225282,function(_0x1da80a){const _0x8af151=_0x16e187,_0x75a308=_0x3f65c0()[_0x8af151(0xc84)](_0xd92246[_0x8af151(0x1fd6)],{'id':_0x1da80a['id']});return _0x75a308[_0x8af151(0x188d)]=_0x1da80a[_0x8af151(0x14b6)]?_0x8af151(0x2505)+_0x1da80a[_0x8af151(0x14b6)][_0x8af151(0x188d)]:'',_0x75a308['internal']=typeof _0x1da80a['internal']!=='undefined'?'<'+_0x1da80a[_0x8af151(0x113f)]+'>':'',_0x75a308;}),_0xd92246['startingSelectedItems']=angular[_0x16e187(0x235a)](_0xd92246[_0x16e187(0x1ecf)]),_0xd92246[_0x16e187(0x1f8a)][_0x16e187(0x1ecf)]=_0xd92246[_0x16e187(0x1ecf)],_0xd92246[_0x16e187(0x1f8a)][_0x16e187(0x1fd6)]=_0x3f65c0()[_0x16e187(0x2796)](_0xd92246[_0x16e187(0xc4e)],_0xd92246[_0x16e187(0x1f8a)][_0x16e187(0x1ecf)],'id'),_0x389fc9();})['catch'](function(_0x271f87){_0x510791(_0x271f87);});});}function _0x53ae37(){return _0x1e4940(function(_0x40542b,_0xbfbf7){const _0x3df40c=a0_0x3bb9;return _0x1d9cec[_0x3df40c(0xdcc)][_0x3df40c(0x16b4)]({'sectionId':_0xd92246[_0x3df40c(0x2146)]['id'],'nolimit':!![]})['$promise'][_0x3df40c(0x146b)](function(_0x57494d){_0x40542b(_0x57494d);})[_0x3df40c(0x129e)](function(_0x44e43c){_0xbfbf7(_0x44e43c);});});}function _0x3fe5a1(){return _0x1e4940(function(_0x5145ab,_0x5b9f77){const _0x2a3e2a=a0_0x3bb9;return _0x1d9cec['smsQueue']['getAgents']({'id':_0xd92246[_0x2a3e2a(0xf80)]['id'],'fields':_0x2a3e2a(0x1569),'nolimit':!![],'role':_0x2a3e2a(0x1755)})['$promise'][_0x2a3e2a(0x146b)](function(_0x5a0896){_0x5145ab(_0x5a0896);})[_0x2a3e2a(0x129e)](function(_0x585c7c){_0x5b9f77(_0x585c7c);});});}function _0x405aab(){return _0x1e4940(function(_0xa1fa53,_0xecb9a7){const _0x1840f5=a0_0x3bb9;return _0x1d9cec[_0x1840f5(0xe7b)][_0x1840f5(0x16b4)]({'fields':'id,name,internal,fullname','nolimit':!![],'role':'agent'})['$promise'][_0x1840f5(0x146b)](function(_0x3e87fb){_0xa1fa53(_0x3e87fb);})[_0x1840f5(0x129e)](function(_0x34bf0f){_0xecb9a7(_0x34bf0f);});});}function _0x5cf668(_0x863465){return _0x1e4940(function(_0x202b4d,_0x5eb22c){const _0x545fbe=a0_0x3bb9;_0x3f65c0()[_0x545fbe(0x2635)](_0x863465)?_0x202b4d():_0x1d9cec['smsQueue'][_0x545fbe(0x135e)]({'id':_0xd92246[_0x545fbe(0xf80)]['id'],'ids':_0x3f65c0()['map'](_0x863465,'id')})[_0x545fbe(0x2945)][_0x545fbe(0x146b)](function(){_0x202b4d();})['catch'](function(_0x390732){_0x5eb22c(_0x390732);});});}function _0x1ff37b(_0x24a8be){return _0x1e4940(function(_0x2551d7,_0x1ddce6){const _0x515514=a0_0x3bb9;_0x3f65c0()['isEmpty'](_0x24a8be)?_0x2551d7():_0x1d9cec[_0x515514(0xf80)][_0x515514(0x1f53)]({'id':_0xd92246[_0x515514(0xf80)]['id'],'ids':_0x3f65c0()[_0x515514(0x205)](_0x24a8be,'id')})['$promise'][_0x515514(0x146b)](function(){_0x2551d7();})['catch'](function(_0x55c997){_0x1ddce6(_0x55c997);});});}function _0x12b1cc(){const _0x1068c5=_0x5d1945,_0x251d3a=_0x3f65c0()[_0x1068c5(0x2796)](_0xd92246['startingSelectedItems'],_0xd92246[_0x1068c5(0x1ecf)],'id'),_0x4ec6e3=_0x3f65c0()[_0x1068c5(0x2796)](_0xd92246[_0x1068c5(0x1ecf)],_0xd92246['startingSelectedItems'],'id');return _0x1ff37b(_0x251d3a)[_0x1068c5(0x146b)](function(){return _0x5cf668(_0x4ec6e3);})['then'](function(){const _0x37feac=_0x1068c5;_0xd92246[_0x37feac(0x132)]=![],_0xd92246['startingAllowedItems']=angular[_0x37feac(0x235a)](_0xd92246['allowedItems']),_0xd92246[_0x37feac(0xa65)]=angular['copy'](_0xd92246[_0x37feac(0x1ecf)]),_0x5abbf3['success']({'title':_0x37feac(0x4c0),'msg':_0x37feac(0x26be)});})[_0x1068c5(0x129e)](function(_0x17380a){const _0x54183d=_0x1068c5;_0x5abbf3[_0x54183d(0x1980)]({'title':_0x17380a['status']?_0x54183d(0x262a)+_0x17380a[_0x54183d(0x107b)]+_0x54183d(0x1315)+_0x17380a[_0x54183d(0x167f)]:_0x54183d(0xa56),'msg':_0x17380a[_0x54183d(0x107b)]?JSON[_0x54183d(0x10bb)](_0x17380a[_0x54183d(0x524)]):_0x17380a[_0x54183d(0xd5f)]()});});}function _0x57cce6(){_0x1ae4aa['hide']();}}const _0x485463=_0x62d2b3;;_0x19deee['$inject']=[_0x313a4d(0x10e8),'$q','toasty',_0x313a4d(0x247f),_0x313a4d(0xf80),'$translate',_0x313a4d(0xa87),_0x313a4d(0x2514)];function _0x19deee(_0xe9f1e1,_0x12746f,_0x4eac86,_0x284499,_0x8140ad,_0x2f2034,_0x1644d7,_0x4a66c0){const _0x365d02=_0x313a4d,_0x1b9dd7=this;_0x1b9dd7[_0x365d02(0x2321)]=_0x1644d7['getCurrentUser'](),_0x1b9dd7['smsQueue']=_0x8140ad,_0x1b9dd7[_0x365d02(0x2514)]=_0x4a66c0,_0x1b9dd7[_0x365d02(0x1fd6)]=[],_0x1b9dd7[_0x365d02(0xc4e)]=[],_0x1b9dd7['selectedItems']=[],_0x1b9dd7[_0x365d02(0x2e8)]=[],_0x1b9dd7['startingSelectedItems']=[],_0x1b9dd7[_0x365d02(0x132)]=![],_0x1b9dd7[_0x365d02(0x1f8a)]={'readOnly':!_0x1b9dd7['crudPermissions'][_0x365d02(0x15f4)],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x365d02(0x19eb),'line1':_0x365d02(0x19eb),'line2':'','line3':'','labelAll':_0x2f2034[_0x365d02(0xde)](_0x365d02(0x218d)),'labelSelected':_0x2f2034[_0x365d02(0xde)]('APP.SELECTED_TEAMS'),'transferCallback':function(){const _0x39d809=_0x365d02,_0x324e0f=_0x3f65c0()[_0x39d809(0x1883)](_0x1b9dd7[_0x39d809(0xa65)],_0x1b9dd7[_0x39d809(0x1ecf)],'id');_0x1b9dd7[_0x39d809(0x132)]=_0x3f65c0()[_0x39d809(0x2635)](_0x324e0f)?![]:!![];}},_0x1b9dd7[_0x365d02(0x3d4)]=_0x2aa956,_0x1b9dd7[_0x365d02(0x215f)]=_0x18db4c,_0x1b9dd7['closeDialog']=_0x2ae809;function _0x2aa956(){const _0x9e7ab1=_0x365d02;return _0x1644d7[_0x9e7ab1(0x23e0)]('admin')?_0x113931()[_0x9e7ab1(0x129e)](function(_0x3a7210){const _0x244c4d=_0x9e7ab1;_0x4eac86['error']({'title':_0x3a7210[_0x244c4d(0x107b)]?_0x244c4d(0x262a)+_0x3a7210[_0x244c4d(0x107b)]+'\x20-\x20'+_0x3a7210['statusText']:_0x244c4d(0x5a5),'msg':_0x3a7210[_0x244c4d(0x107b)]?JSON[_0x244c4d(0x10bb)](_0x3a7210[_0x244c4d(0x524)]):_0x3a7210[_0x244c4d(0xd5f)]()});}):_0x1b0ea2()[_0x9e7ab1(0x146b)](function(_0x591ce8){const _0xbebb70=_0x9e7ab1;return _0x1b9dd7[_0xbebb70(0x2146)]=_0x591ce8,_0x113931();})['catch'](function(_0x37f647){const _0x46eea5=_0x9e7ab1;_0x4eac86[_0x46eea5(0x1980)]({'title':_0x37f647['status']?_0x46eea5(0x262a)+_0x37f647[_0x46eea5(0x107b)]+_0x46eea5(0x1315)+_0x37f647[_0x46eea5(0x167f)]:'SYSTEM:GET_TEAMS','msg':_0x37f647['status']?JSON[_0x46eea5(0x10bb)](_0x37f647[_0x46eea5(0x524)]):_0x37f647['toString']()});});}function _0x1b0ea2(){return _0x12746f(function(_0x2ca51d,_0x3c4522){const _0x16b491=a0_0x3bb9;_0x284499[_0x16b491(0x1366)][_0x16b491(0x16b4)]({'userProfileId':_0x1b9dd7[_0x16b491(0x2321)]['userProfileId'],'name':'Teams'})[_0x16b491(0x2945)][_0x16b491(0x146b)](function(_0x44762b){const _0x20d4a9=_0x16b491,_0x3d23b1=_0x44762b&&_0x44762b[_0x20d4a9(0x19c7)]?_0x44762b['rows'][0x0]:null;_0x2ca51d(_0x3d23b1);})['catch'](function(_0x593db9){_0x3c4522(_0x593db9);});});}function _0x113931(){return _0x12746f(function(_0x4a37e6,_0x3ddd08){const _0x26bd29=a0_0x3bb9;return _0x20127f()[_0x26bd29(0x146b)](function(_0x375b36){const _0x3538f4=_0x26bd29;return _0x1b9dd7[_0x3538f4(0x1fd6)]=_0x375b36[_0x3538f4(0x19c7)]?_0x375b36[_0x3538f4(0x19c7)]:[],_0x1644d7[_0x3538f4(0x23e0)](_0x3538f4(0x174b))?_0x375b36:_0x1b9dd7[_0x3538f4(0x2146)]?_0x1b9dd7[_0x3538f4(0x2146)][_0x3538f4(0x11d2)]?_0x375b36:_0x19b250():null;})[_0x26bd29(0x146b)](function(_0x4b8476){const _0x4e81d4=_0x26bd29,_0x19c6d2=_0x4b8476&&_0x4b8476[_0x4e81d4(0x19c7)]?_0x4b8476['rows']:[];return _0x1b9dd7['allowedItems']=_0x3f65c0()[_0x4e81d4(0x205)](_0x19c6d2,function(_0x4d1674){const _0x2d52e3=_0x4e81d4;return _0x3f65c0()[_0x2d52e3(0xc84)](_0x1b9dd7[_0x2d52e3(0x1fd6)],{'id':_0x1644d7['hasRole']('admin')||_0x1b9dd7[_0x2d52e3(0x2146)][_0x2d52e3(0x11d2)]?_0x4d1674['id']:_0x4d1674['resourceId']});}),_0x1b9dd7['items'][_0x4e81d4(0x1df5)](function(_0x522efc){const _0x15d52c=_0x4e81d4,_0x49fba2=_0x3f65c0()['find'](_0x1b9dd7[_0x15d52c(0xc4e)],{'id':_0x522efc['id']});_0x1644d7[_0x15d52c(0x23e0)](_0x15d52c(0x174b))?_0x522efc['isValid']=!![]:_0x522efc[_0x15d52c(0x146f)]=typeof _0x49fba2!==_0x15d52c(0x2274)?!![]:![];}),_0x133378();})[_0x26bd29(0x146b)](function(_0x25b7f7){const _0x21bb53=_0x26bd29,_0x4bde50=_0x25b7f7&&_0x25b7f7[_0x21bb53(0x19c7)]?_0x25b7f7[_0x21bb53(0x19c7)]:[];_0x1b9dd7[_0x21bb53(0x1ecf)]=_0x3f65c0()[_0x21bb53(0x205)](_0x4bde50,function(_0x391bc8){const _0x16dd7a=_0x21bb53;return _0x3f65c0()[_0x16dd7a(0xc84)](_0x1b9dd7[_0x16dd7a(0x1fd6)],{'id':_0x391bc8['id']});}),_0x1b9dd7[_0x21bb53(0xa65)]=angular['copy'](_0x1b9dd7[_0x21bb53(0x1ecf)]),_0x1b9dd7['dualMultiselectOptions']['selectedItems']=_0x1b9dd7[_0x21bb53(0x1ecf)],_0x1b9dd7[_0x21bb53(0x1f8a)][_0x21bb53(0x1fd6)]=_0x3f65c0()['differenceBy'](_0x1b9dd7['allowedItems'],_0x1b9dd7[_0x21bb53(0x1f8a)][_0x21bb53(0x1ecf)],'id'),_0x4a37e6();})[_0x26bd29(0x129e)](function(_0x386973){_0x3ddd08(_0x386973);});});}function _0x19b250(){return _0x12746f(function(_0x35a6e0,_0x58350){const _0x4ed207=a0_0x3bb9;return _0x284499[_0x4ed207(0xdcc)][_0x4ed207(0x16b4)]({'sectionId':_0x1b9dd7[_0x4ed207(0x2146)]['id'],'nolimit':!![]})[_0x4ed207(0x2945)][_0x4ed207(0x146b)](function(_0x5ddc3d){_0x35a6e0(_0x5ddc3d);})[_0x4ed207(0x129e)](function(_0x59d80d){_0x58350(_0x59d80d);});});}function _0x133378(){return _0x12746f(function(_0x39ee60,_0x168e97){const _0x558c45=a0_0x3bb9;return _0x284499[_0x558c45(0xf80)][_0x558c45(0x11d1)]({'id':_0x1b9dd7[_0x558c45(0xf80)]['id'],'fields':_0x558c45(0x7a7),'nolimit':!![]})[_0x558c45(0x2945)][_0x558c45(0x146b)](function(_0x175581){_0x39ee60(_0x175581);})[_0x558c45(0x129e)](function(_0x469939){_0x168e97(_0x469939);});});}function _0x20127f(){return _0x12746f(function(_0x40d38a,_0x24d1a8){const _0xdbf57f=a0_0x3bb9;return _0x284499['team'][_0xdbf57f(0x16b4)]({'fields':_0xdbf57f(0x7a7),'nolimit':!![]})['$promise'][_0xdbf57f(0x146b)](function(_0x27df51){_0x40d38a(_0x27df51);})['catch'](function(_0x287e37){_0x24d1a8(_0x287e37);});});}function _0xc3175a(_0x14a2e0){return _0x12746f(function(_0xda3ad0,_0x405947){const _0x10cc58=a0_0x3bb9;_0x3f65c0()[_0x10cc58(0x2635)](_0x14a2e0)?_0xda3ad0():_0x284499[_0x10cc58(0xf80)]['addTeams']({'id':_0x1b9dd7[_0x10cc58(0xf80)]['id'],'ids':_0x3f65c0()['map'](_0x14a2e0,'id')})[_0x10cc58(0x2945)][_0x10cc58(0x146b)](function(){_0xda3ad0();})[_0x10cc58(0x129e)](function(_0x51cee2){_0x405947(_0x51cee2);});});}function _0x4a7d8e(_0x1525e2){return _0x12746f(function(_0x5a0c7a,_0x47aadd){const _0x327738=a0_0x3bb9;_0x3f65c0()[_0x327738(0x2635)](_0x1525e2)?_0x5a0c7a():_0x284499[_0x327738(0xf80)][_0x327738(0xfa4)]({'id':_0x1b9dd7[_0x327738(0xf80)]['id'],'ids':_0x3f65c0()[_0x327738(0x205)](_0x1525e2,'id')})[_0x327738(0x2945)][_0x327738(0x146b)](function(){_0x5a0c7a();})[_0x327738(0x129e)](function(_0x268ba4){_0x47aadd(_0x268ba4);});});}function _0x18db4c(){const _0x463808=_0x365d02,_0x3a4a55=_0x3f65c0()['differenceBy'](_0x1b9dd7[_0x463808(0xa65)],_0x1b9dd7[_0x463808(0x1ecf)],'id'),_0x5adebb=_0x3f65c0()[_0x463808(0x2796)](_0x1b9dd7[_0x463808(0x1ecf)],_0x1b9dd7[_0x463808(0xa65)],'id');return _0x4a7d8e(_0x3a4a55)['then'](function(){return _0xc3175a(_0x5adebb);})[_0x463808(0x146b)](function(){const _0x5d0f22=_0x463808;_0x1b9dd7[_0x5d0f22(0x132)]=![],_0x1b9dd7[_0x5d0f22(0x2e8)]=angular['copy'](_0x1b9dd7['allowedItems']),_0x1b9dd7['startingSelectedItems']=angular['copy'](_0x1b9dd7[_0x5d0f22(0x1ecf)]),_0x4eac86[_0x5d0f22(0x1c75)]({'title':'SUCCESS','msg':_0x5d0f22(0xf08)});})['catch'](function(_0x1f41ce){const _0x30775f=_0x463808;_0x4eac86['error']({'title':_0x1f41ce[_0x30775f(0x107b)]?_0x30775f(0x262a)+_0x1f41ce[_0x30775f(0x107b)]+_0x30775f(0x1315)+_0x1f41ce['statusText']:_0x30775f(0xa56),'msg':_0x1f41ce[_0x30775f(0x107b)]?JSON[_0x30775f(0x10bb)](_0x1f41ce[_0x30775f(0x524)]):_0x1f41ce[_0x30775f(0xd5f)]()});});}function _0x2ae809(){const _0x295fc1=_0x365d02;_0xe9f1e1[_0x295fc1(0x2458)]();}}const _0x38fbf9=_0x19deee;;const _0x338d2d=_0x4acfac['p']+_0x313a4d(0xc9a);;_0x521b6a[_0x313a4d(0x11c2)]=[_0x313a4d(0x1862),'$location',_0x313a4d(0x10e8),_0x313a4d(0x4d8),_0x313a4d(0x214b),_0x313a4d(0x2690),'setting','api','toasty',_0x313a4d(0xa87),_0x313a4d(0xf80),_0x313a4d(0x1366)];function _0x521b6a(_0xe8b7bf,_0x45e4d1,_0x3c2e13,_0x4d5cda,_0x2d8660,_0x3ec684,_0x46ab0a,_0x3158b4,_0x52d845,_0x1a7fac,_0x3c6fcb,_0x4575d5){const _0x4dd36c=_0x313a4d,_0x7082c5=this;_0x7082c5['currentUser']=_0x1a7fac[_0x4dd36c(0xb12)](),_0x7082c5['license']=_0x3ec684,_0x7082c5[_0x4dd36c(0x15b9)]=_0x46ab0a,_0x7082c5[_0x4dd36c(0x2251)]=_0x7082c5['setting'][_0x4dd36c(0x976)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x7082c5['location']=_0x45e4d1[_0x4dd36c(0x2414)]()+'://'+_0x45e4d1[_0x4dd36c(0x148e)](),_0x7082c5[_0x4dd36c(0xf80)]=_0x3c6fcb||_0xe8b7bf[_0x4dd36c(0x16a)][_0x4dd36c(0xf80)]||{},_0x7082c5[_0x4dd36c(0x1366)]=_0x4575d5&&_0x4575d5[_0x4dd36c(0x51c)]==0x1?_0x4575d5['rows'][0x0]:null,_0x7082c5[_0x4dd36c(0x2514)]=_0x1a7fac[_0x4dd36c(0xe60)](_0x7082c5[_0x4dd36c(0x1366)]?_0x7082c5[_0x4dd36c(0x1366)][_0x4dd36c(0x2514)]:null),_0x7082c5['hasModulePermissions']={},_0x7082c5[_0x4dd36c(0x1b09)]=_0xe8b7bf['params'][_0x4dd36c(0x13a3)]||0x0,_0x7082c5[_0x4dd36c(0x244)]=_0x34d115,_0x7082c5[_0x4dd36c(0x1027)]=_0x145d11,_0x7082c5['alert']=_0x52d845[_0x4dd36c(0x271e)],_0x7082c5[_0x4dd36c(0x104c)]=_0x4c4e34,_0x7082c5[_0x4dd36c(0x1d91)]=_0x2fe2d8;function _0x34d115(_0x12ea74,_0x8aeae8){const _0x22be02=_0x4dd36c;_0x3c2e13['show']({'controller':_0x22be02(0x1d4d),'controllerAs':'vm','templateUrl':_0x338d2d,'parent':angular[_0x22be02(0x1853)](_0x4d5cda[_0x22be02(0x2586)]),'targetEvent':_0x8aeae8,'clickOutsideToClose':!![],'locals':{'smsQueue':_0x12ea74,'smsQueues':_0x7082c5[_0x22be02(0x1bf4)]?_0x7082c5[_0x22be02(0x1bf4)][_0x22be02(0x19c7)]:[],'crudPermissions':_0x7082c5[_0x22be02(0x2514)]}});}function _0x145d11(_0xe42080,_0x298772){const _0x5a987b=_0x4dd36c;_0x3c2e13[_0x5a987b(0x2615)]({'controller':_0x5a987b(0x20d4),'controllerAs':'vm','templateUrl':_0x1183e8,'parent':angular['element'](_0x4d5cda['body']),'targetEvent':_0x298772,'clickOutsideToClose':!![],'locals':{'smsQueue':_0xe42080,'smsQueues':_0x7082c5[_0x5a987b(0x1bf4)]?_0x7082c5[_0x5a987b(0x1bf4)]['rows']:[],'crudPermissions':_0x7082c5['crudPermissions'],'realtime':![]}});}function _0x4c4e34(){const _0x372d4a=_0x4dd36c;_0xe8b7bf['go'](_0x372d4a(0x68f),{},{'reload':_0x372d4a(0x68f)});}function _0x2fe2d8(){const _0xc4e5d=_0x4dd36c;_0x3158b4[_0xc4e5d(0xf80)]['update']({'id':_0x7082c5['smsQueue']['id']},_0x7082c5[_0xc4e5d(0xf80)])[_0xc4e5d(0x2945)][_0xc4e5d(0x146b)](function(){const _0x5a1251=_0xc4e5d;_0x52d845[_0x5a1251(0x1c75)]({'title':'SmsQueue\x20updated!','msg':_0x7082c5[_0x5a1251(0xf80)][_0x5a1251(0x19eb)]?_0x7082c5['smsQueue']['name']+_0x5a1251(0x6b0):''});})[_0xc4e5d(0x129e)](function(_0x3f5044){const _0x480308=_0xc4e5d;_0x52d845[_0x480308(0x1980)]({'title':_0x3f5044[_0x480308(0x107b)]?_0x480308(0x262a)+_0x3f5044[_0x480308(0x107b)]+_0x480308(0x1315)+_0x3f5044[_0x480308(0x167f)]:_0x480308(0x28cd),'msg':_0x3f5044[_0x480308(0x524)]?JSON[_0x480308(0x10bb)](_0x3f5044[_0x480308(0x524)]):_0x3f5044[_0x480308(0xd5f)]()});});}}const _0x17994a=_0x521b6a;;_0x4b4862[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1aa9),_0x313a4d(0x1862),_0x313a4d(0x15fe),_0x313a4d(0x10e8),_0x313a4d(0x4d8),_0x313a4d(0x1abe),_0x313a4d(0x214b),_0x313a4d(0x1bf4),_0x313a4d(0x26b6),_0x313a4d(0x1366),'api',_0x313a4d(0x216c),'toasty',_0x313a4d(0xa87),_0x313a4d(0x2690),'setting'];function _0x4b4862(_0x40ff16,_0x30b843,_0x36fddd,_0x50d8ce,_0x5694fd,_0x57f2fd,_0x3b218b,_0x5cbb63,_0x549947,_0x27fc44,_0x5315f4,_0x9594a2,_0x928332,_0x24c878,_0x232161,_0xc917f0,_0x22bb35){const _0x268cfd=_0x313a4d,_0x5d74dd=this;_0x5d74dd[_0x268cfd(0x2690)]=_0xc917f0,_0x5d74dd[_0x268cfd(0x15b9)]=_0x22bb35,_0x5d74dd[_0x268cfd(0x2321)]=_0x232161[_0x268cfd(0xb12)](),_0x5d74dd[_0x268cfd(0x1bf4)]=_0x549947||{'count':0x0,'rows':[]},_0x5d74dd['userProfile']=_0x27fc44,_0x5d74dd[_0x268cfd(0x1366)]=_0x5315f4&&_0x5315f4[_0x268cfd(0x51c)]==0x1?_0x5315f4[_0x268cfd(0x19c7)][0x0]:null,_0x5d74dd[_0x268cfd(0x2514)]=_0x232161[_0x268cfd(0xe60)](_0x5d74dd[_0x268cfd(0x1366)]?_0x5d74dd[_0x268cfd(0x1366)][_0x268cfd(0x2514)]:null),_0x5d74dd[_0x268cfd(0x768)]=_0x268cfd(0x1bf4),_0x5d74dd['listOrder']='',_0x5d74dd[_0x268cfd(0x214f)]=null,_0x5d74dd[_0x268cfd(0x864)]=[],_0x5d74dd[_0x268cfd(0x1a56)]={'fields':_0x268cfd(0xa22),'sort':'-updatedAt','channel':_0x268cfd(0x929),'limit':0xa,'page':0x1},_0x5d74dd[_0x268cfd(0x280a)]=_0x3f65c0()[_0x268cfd(0x194)]([{'option':_0x268cfd(0x6a7),'value':_0x268cfd(0xb5a)},{'option':_0x268cfd(0xa12),'value':_0x268cfd(0x2472)}],function(_0x370c40){const _0x5113cb=_0x268cfd;return _0x3f65c0()['replace'](_0x370c40[_0x5113cb(0x175d)],new RegExp('\x27','g'),'');}),_0x5d74dd[_0x268cfd(0x23f9)]=_0x2fb041,_0x5d74dd['teamadddialog']=_0x483bde,_0x5d74dd[_0x268cfd(0x1027)]=_0x459cce,_0x5d74dd[_0x268cfd(0xf0a)]=_0x259bec,_0x5d74dd['gotorealtimegoto']=_0x35d0b2,_0x5d74dd[_0x268cfd(0x1c75)]=_0x3e9b7a,_0x5d74dd[_0x268cfd(0x20c3)]=_0x242d71,_0x5d74dd[_0x268cfd(0x157e)]=_0x3280ae,_0x5d74dd['deleteSmsQueue']=_0x4e6175,_0x5d74dd[_0x268cfd(0xc3d)]=_0x19e37f,_0x5d74dd[_0x268cfd(0xfaf)]=_0x14b1ff,_0x5d74dd[_0x268cfd(0x10b3)]=_0x15a399,_0x5d74dd['selectAllSmsQueues']=_0x2b164e;function _0x2fb041(_0x549499){const _0x5be807=_0x268cfd;_0x36fddd['go'](_0x5be807(0x172c),{'id':_0x549499['id'],'smsQueue':_0x549499,'crudPermissions':_0x5d74dd['crudPermissions']});}function _0x483bde(_0x57f4d4,_0x1db658){const _0xa97a7b=_0x268cfd;_0x5694fd[_0xa97a7b(0x2615)]({'controller':_0xa97a7b(0x1d4d),'controllerAs':'vm','templateUrl':_0x338d2d,'parent':angular[_0xa97a7b(0x1853)](_0x57f2fd[_0xa97a7b(0x2586)]),'targetEvent':_0x1db658,'clickOutsideToClose':!![],'locals':{'smsQueue':_0x57f4d4,'smsQueues':_0x5d74dd[_0xa97a7b(0x1bf4)]?_0x5d74dd['smsQueues'][_0xa97a7b(0x19c7)]:[],'crudPermissions':_0x5d74dd[_0xa97a7b(0x2514)]}});}function _0x459cce(_0x4ffc28,_0x492506){const _0x566608=_0x268cfd;_0x5694fd['show']({'controller':_0x566608(0x20d4),'controllerAs':'vm','templateUrl':_0x1183e8,'parent':angular['element'](_0x57f2fd[_0x566608(0x2586)]),'targetEvent':_0x492506,'clickOutsideToClose':!![],'locals':{'smsQueue':_0x4ffc28,'smsQueues':_0x5d74dd[_0x566608(0x1bf4)]?_0x5d74dd[_0x566608(0x1bf4)]['rows']:[],'crudPermissions':_0x5d74dd['crudPermissions'],'realtime':![]}});}function _0x259bec(_0x3f9380,_0x1e9f0e){const _0x3bd15b=_0x268cfd,_0x31c7b3=_0x5694fd['confirm']()[_0x3bd15b(0x1189)](_0x3bd15b(0xdb2)+_0x3f65c0()['startCase'](_0x3bd15b(0xf80))+'?')[_0x3bd15b(0x1cbe)](''+(_0x3f9380['name']||_0x3bd15b(0xf80))+_0x3bd15b(0x252f)+_0x3bd15b(0xe01))[_0x3bd15b(0x4bd)](_0x3bd15b(0x5df))['targetEvent'](_0x1e9f0e)['ok']('OK')[_0x3bd15b(0x6c3)](_0x3bd15b(0x39a));_0x5694fd[_0x3bd15b(0x2615)](_0x31c7b3)[_0x3bd15b(0x146b)](function(){_0x4e6175(_0x3f9380);},function(){const _0x5f2120=_0x3bd15b;console['log'](_0x5f2120(0x39a));});}function _0x35d0b2(){const _0x5eff60=_0x268cfd;if(_0x232161['hasRole']('admin'))_0x36fddd['go']('app.sms.realtime.queues',{});else return _0x9594a2['userProfileSection'][_0x5eff60(0x16b4)]({'userProfileId':_0x232161[_0x5eff60(0xb12)]()['userProfileId'],'sectionId':0x2c6})['$promise']['then'](function(_0x35d6ef){const _0x4ba186=_0x5eff60,_0x58c75e=_0x35d6ef&&_0x35d6ef[_0x4ba186(0x19c7)]?_0x35d6ef[_0x4ba186(0x19c7)][0x0]:null;_0x58c75e&&_0x58c75e[_0x4ba186(0x193e)]?_0x36fddd['go']('app.sms.realtime.queues',{}):_0x24c878[_0x4ba186(0x271e)]({'title':_0x5cbb63[_0x4ba186(0xde)]('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_TITLE'),'msg':_0x5cbb63[_0x4ba186(0xde)](_0x4ba186(0x174a))});})[_0x5eff60(0x129e)](function(_0x3007ce){const _0xff4cd8=_0x5eff60;_0x24c878[_0xff4cd8(0x1980)]({'title':_0x3007ce['status']?_0xff4cd8(0x262a)+_0x3007ce[_0xff4cd8(0x107b)]+_0xff4cd8(0x1315)+_0x3007ce[_0xff4cd8(0x167f)]:'USERPROFILE:GET_SECTION','msg':_0x3007ce[_0xff4cd8(0x107b)]?JSON['stringify'](_0x3007ce[_0xff4cd8(0x524)]):_0x3007ce[_0xff4cd8(0xd5f)]()});});}let _0x5e2ce8=!![],_0x283dd8=0x1;_0x40ff16['$watch'](_0x268cfd(0x2669),function(_0x37bce9,_0x1c5c33){const _0x2446ae=_0x268cfd;_0x5e2ce8?_0x3b218b(function(){_0x5e2ce8=![];}):(!_0x1c5c33&&(_0x283dd8=_0x5d74dd[_0x2446ae(0x1a56)][_0x2446ae(0x844)]),_0x37bce9!==_0x1c5c33&&(_0x5d74dd[_0x2446ae(0x1a56)][_0x2446ae(0x844)]=0x1),!_0x37bce9&&(_0x5d74dd[_0x2446ae(0x1a56)][_0x2446ae(0x844)]=_0x283dd8),_0x5d74dd[_0x2446ae(0x20c3)]());});function _0x3e9b7a(_0x3536ee){const _0x2bb574=_0x268cfd;_0x5d74dd[_0x2bb574(0x1bf4)]=_0x3536ee||{'count':0x0,'rows':[]};}function _0x242d71(){const _0x417001=_0x268cfd;_0x5d74dd[_0x417001(0x1a56)][_0x417001(0x145d)]=(_0x5d74dd[_0x417001(0x1a56)][_0x417001(0x844)]-0x1)*_0x5d74dd[_0x417001(0x1a56)][_0x417001(0x221e)],_0x232161[_0x417001(0x23e0)](_0x417001(0x174b))?_0x5d74dd[_0x417001(0xb9c)]=_0x9594a2['smsQueue'][_0x417001(0x16b4)](_0x5d74dd[_0x417001(0x1a56)],_0x3e9b7a)[_0x417001(0x2945)]:(_0x5d74dd[_0x417001(0x1a56)]['id']=_0x5d74dd[_0x417001(0x26b6)]['id'],_0x5d74dd[_0x417001(0x1a56)][_0x417001(0x2146)]=_0x417001(0xe3),_0x5d74dd[_0x417001(0xb9c)]=_0x9594a2[_0x417001(0x26b6)][_0x417001(0x158f)](_0x5d74dd['query'],_0x3e9b7a)['$promise']);}function _0x3280ae(_0x5d0608,_0x9ed3ce){const _0x429081=_0x268cfd;_0x5694fd[_0x429081(0x2615)]({'controller':_0x429081(0x1c6b),'controllerAs':'vm','templateUrl':_0x4f6864,'parent':angular[_0x429081(0x1853)](_0x57f2fd[_0x429081(0x2586)]),'targetEvent':_0x5d0608,'clickOutsideToClose':!![],'locals':{'smsQueue':_0x9ed3ce,'smsQueues':_0x5d74dd[_0x429081(0x1bf4)][_0x429081(0x19c7)],'license':_0x5d74dd[_0x429081(0x2690)],'setting':_0x5d74dd[_0x429081(0x15b9)],'crudPermissions':_0x5d74dd[_0x429081(0x2514)]}});}function _0x4e6175(_0x47bb51){const _0x3f317e=_0x268cfd;_0x9594a2[_0x3f317e(0xf80)][_0x3f317e(0x1fac)]({'id':_0x47bb51['id']})['$promise'][_0x3f317e(0x146b)](function(){const _0x108a32=_0x3f317e;_0x3f65c0()['remove'](_0x5d74dd['smsQueues'][_0x108a32(0x19c7)],{'id':_0x47bb51['id']}),_0x5d74dd[_0x108a32(0x1bf4)][_0x108a32(0x51c)]-=0x1,!_0x5d74dd[_0x108a32(0x1bf4)][_0x108a32(0x19c7)][_0x108a32(0x402)]&&_0x5d74dd[_0x108a32(0x20c3)](),_0x24c878[_0x108a32(0x1c75)]({'title':_0x3f65c0()[_0x108a32(0x20d1)](_0x108a32(0x743))+'\x20deleted!','msg':_0x47bb51[_0x108a32(0x19eb)]?_0x47bb51['name']+_0x108a32(0x23e3):''});})[_0x3f317e(0x129e)](function(_0x4b027b){const _0x5a9a1e=_0x3f317e;if(_0x4b027b[_0x5a9a1e(0x524)]&&_0x4b027b['data'][_0x5a9a1e(0xcef)]&&_0x4b027b[_0x5a9a1e(0x524)][_0x5a9a1e(0xcef)][_0x5a9a1e(0x402)]){_0x5d74dd[_0x5a9a1e(0xcef)]=_0x4b027b['data'][_0x5a9a1e(0xcef)]||[{'message':_0x4b027b[_0x5a9a1e(0xd5f)](),'type':_0x5a9a1e(0x152b)}];for(let _0x1570af=0x0;_0x1570af<_0x4b027b[_0x5a9a1e(0x524)][_0x5a9a1e(0xcef)]['length'];_0x1570af++){_0x24c878[_0x5a9a1e(0x1980)]({'title':_0x4b027b[_0x5a9a1e(0x524)][_0x5a9a1e(0xcef)][_0x1570af][_0x5a9a1e(0x1142)],'msg':_0x4b027b[_0x5a9a1e(0x524)]['errors'][_0x1570af][_0x5a9a1e(0x7fd)]});}}else _0x24c878['error']({'title':_0x4b027b[_0x5a9a1e(0x107b)]?_0x5a9a1e(0x262a)+_0x4b027b[_0x5a9a1e(0x107b)]+_0x5a9a1e(0x1315)+_0x4b027b['statusText']:_0x5a9a1e(0x152b),'msg':_0x4b027b[_0x5a9a1e(0x524)]?JSON['stringify'](_0x4b027b[_0x5a9a1e(0x524)]['message']):_0x4b027b[_0x5a9a1e(0x7fd)]||_0x4b027b[_0x5a9a1e(0xd5f)]()});});}function _0x19e37f(){const _0x572fec=_0x268cfd,_0x3f10a5=angular[_0x572fec(0x235a)](_0x5d74dd[_0x572fec(0x864)]);return _0x5d74dd[_0x572fec(0x864)]=[],_0x3f10a5;}function _0x14b1ff(_0x502b3b){const _0xe9182e=_0x268cfd,_0x59897f=_0x5694fd[_0xe9182e(0x1e8a)]()[_0xe9182e(0x1189)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20smsQueues?')[_0xe9182e(0x1cbe)](_0xe9182e(0x16d3)+_0x5d74dd[_0xe9182e(0x864)]['length']+_0xe9182e(0x2452)+_0xe9182e(0xe01))[_0xe9182e(0x4bd)]('delete\x20SmsQueues')['targetEvent'](_0x502b3b)['ok']('OK')[_0xe9182e(0x6c3)](_0xe9182e(0x39a));_0x5694fd['show'](_0x59897f)[_0xe9182e(0x146b)](function(){const _0x522b4d=_0xe9182e;_0x5d74dd['selectedSmsQueues']['forEach'](function(_0xcede60){_0x4e6175(_0xcede60);}),_0x5d74dd[_0x522b4d(0x864)]=[];});}function _0x15a399(){_0x5d74dd['selectedSmsQueues']=[];}function _0x2b164e(){const _0xb3fc83=_0x268cfd;_0x5d74dd[_0xb3fc83(0x864)]=_0x5d74dd[_0xb3fc83(0x1bf4)][_0xb3fc83(0x19c7)];}}const _0x529fa6=_0x4b4862;;_0x6819ee['$inject']=[_0x313a4d(0x921),'$translatePartialLoaderProvider'];function _0x6819ee(_0x3fac62,_0x3be2bc){const _0x50e80c=_0x313a4d;_0x3fac62[_0x50e80c(0x13d6)](_0x50e80c(0x6c1),{'abstract':!![],'url':_0x50e80c(0x1087)})['state'](_0x50e80c(0x68f),{'url':'/smsQueues','views':{'content@app':{'templateUrl':_0x331b28,'controller':'SmsQueuesController\x20as\x20vm'}},'resolve':{'smsQueues':[_0x50e80c(0x362),_0x50e80c(0xa87),function(_0x27abe3,_0x5726c5){const _0x173e38=_0x50e80c;return _0x5726c5[_0x173e38(0x23e0)](_0x173e38(0x174b))?_0x27abe3[_0x173e38(0x2922)](_0x173e38(0x20fc),{'fields':_0x173e38(0xa22),'sort':_0x173e38(0x12f2),'channel':'sms','limit':0xa,'offset':0x0}):_0x27abe3[_0x173e38(0x2922)](_0x173e38(0x938),{'id':_0x5726c5['getCurrentUser']()[_0x173e38(0x209a)],'section':_0x173e38(0xe3),'fields':_0x173e38(0xa22),'sort':_0x173e38(0x12f2),'channel':'sms','limit':0xa,'offset':0x0});}],'userProfile':[_0x50e80c(0x362),_0x50e80c(0xa87),function(_0x24284b,_0x3e7b09){const _0x28309d=_0x50e80c;return _0x3e7b09[_0x28309d(0x23e0)]('admin')?null:_0x24284b[_0x28309d(0x2922)](_0x28309d(0x119a),{'fields':'id,name,crudPermissions','id':_0x3e7b09['getCurrentUser']()[_0x28309d(0x209a)]});}],'userProfileSection':[_0x50e80c(0x362),'Auth',function(_0x4a02e2,_0x3f4901){const _0x36f22c=_0x50e80c;return _0x3f4901[_0x36f22c(0x23e0)](_0x36f22c(0x174b))?null:_0x4a02e2[_0x36f22c(0x2922)](_0x36f22c(0x27be),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x3f4901[_0x36f22c(0xb12)]()[_0x36f22c(0x209a)],'sectionId':0x2bd});}]},'authenticate':!![],'permissionId':0x2bd,'bodyClass':_0x50e80c(0x929)})[_0x50e80c(0x13d6)](_0x50e80c(0x172c),{'url':_0x50e80c(0x2028),'params':{'smsQueue':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x2bf063,'controller':'SmsQueueController\x20as\x20vm'}},'resolve':{'smsQueue':[_0x50e80c(0x362),'$stateParams',function(_0x32a21f,_0xc914f5){const _0x5c8737=_0x50e80c;return _0x32a21f[_0x5c8737(0x2922)](_0x5c8737(0x20fc),{'fields':_0x5c8737(0xa22),'id':_0xc914f5['id']});}],'userProfileSection':[_0x50e80c(0x362),'Auth',function(_0x4e088d,_0x1ac344){const _0x321425=_0x50e80c;return _0x4e088d[_0x321425(0x2922)](_0x321425(0x27be),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x1ac344[_0x321425(0xb12)]()[_0x321425(0x209a)],'sectionId':0x2bd});}]},'authenticate':!![],'permissionId':0x2bd,'bodyClass':_0x50e80c(0x929)})[_0x50e80c(0x13d6)](_0x50e80c(0x51a),{'url':_0x50e80c(0x161f),'views':{'content@app':{'templateUrl':_0x2c8a8a,'controller':_0x50e80c(0x25a1)}},'resolve':{'smsAccounts':[_0x50e80c(0x362),_0x50e80c(0xa87),function(_0x2143d0,_0x4e8955){const _0xcc67e7=_0x50e80c;return _0x4e8955[_0xcc67e7(0x23e0)](_0xcc67e7(0x174b))?_0x2143d0[_0xcc67e7(0x2922)](_0xcc67e7(0xe51),{'fields':_0xcc67e7(0x276e),'sort':_0xcc67e7(0x12f2),'limit':0xa,'offset':0x0}):_0x2143d0[_0xcc67e7(0x2922)](_0xcc67e7(0x938),{'id':_0x4e8955['getCurrentUser']()[_0xcc67e7(0x209a)],'section':_0xcc67e7(0xda3),'fields':'createdAt,updatedAt,id,name,key,token,remote,ListId,type,phone,accountSid,authId,authToken,smsMethod,username,password,baseUrl,apiKey,senderString,deliveryReport,waitForTheAssignedAgent,mandatoryDisposition,mandatoryDispositionPauseId,description,receiveUrl,deliveryReportUrl,notificationSound,notificationShake,notificationTemplate,queueTransfer,queueTransferTimeout,agentTransfer,agentTransferTimeout','sort':_0xcc67e7(0x12f2),'limit':0xa,'offset':0x0});}],'userProfile':[_0x50e80c(0x362),_0x50e80c(0xa87),function(_0x109eb2,_0x59e47d){const _0xb895b1=_0x50e80c;return _0x59e47d['hasRole'](_0xb895b1(0x174b))?null:_0x109eb2[_0xb895b1(0x2922)]('userProfile@get',{'fields':'id,name,crudPermissions','id':_0x59e47d[_0xb895b1(0xb12)]()[_0xb895b1(0x209a)]});}],'userProfileSection':[_0x50e80c(0x362),_0x50e80c(0xa87),function(_0x3408c3,_0x266797){const _0x42e045=_0x50e80c;return _0x266797[_0x42e045(0x23e0)](_0x42e045(0x174b))?null:_0x3408c3[_0x42e045(0x2922)]('userProfileSection@get',{'fields':_0x42e045(0x1e64),'userProfileId':_0x266797[_0x42e045(0xb12)]()[_0x42e045(0x209a)],'sectionId':0x2be});}]},'authenticate':!![],'permissionId':0x2be,'bodyClass':_0x50e80c(0x929)})[_0x50e80c(0x13d6)](_0x50e80c(0x2d1),{'url':_0x50e80c(0x2028),'params':{'smsAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x14173b,'controller':_0x50e80c(0x1c99)}},'resolve':{'smsAccount':[_0x50e80c(0x362),_0x50e80c(0x28c8),function(_0x3be188,_0x2d4047){const _0x44e5de=_0x50e80c;return _0x3be188['resolve'](_0x44e5de(0xe51),{'fields':_0x44e5de(0x276e),'id':_0x2d4047['id']});}],'userProfileSection':['apiResolver','Auth',function(_0x5263cc,_0x5579c5){const _0x46bc2e=_0x50e80c;return _0x5263cc[_0x46bc2e(0x2922)](_0x46bc2e(0x27be),{'fields':_0x46bc2e(0x1e64),'userProfileId':_0x5579c5['getCurrentUser']()[_0x46bc2e(0x209a)],'sectionId':0x2be});}]},'authenticate':!![],'permissionId':0x2be,'bodyClass':_0x50e80c(0x929)}),_0x3be2bc[_0x50e80c(0x15bf)](_0x50e80c(0x1ee1));}angular[_0x313a4d(0x2528)](_0x313a4d(0x6c1),['ngCsv','ngPassword','md.data.table',_0x313a4d(0x963),_0x313a4d(0x19e2),_0x313a4d(0x27c1),_0x313a4d(0x195b),'ngAria',_0x313a4d(0xc86),_0x313a4d(0x1f5f),_0x313a4d(0x28a8),_0x313a4d(0xfb2),_0x313a4d(0x1e57),_0x313a4d(0x581),_0x313a4d(0x1bd2),_0x313a4d(0x1792),_0x313a4d(0x1b65),_0x313a4d(0x1626),_0x313a4d(0x2713),_0x313a4d(0x11df),_0x313a4d(0xe81)])[_0x313a4d(0x989)](_0x6819ee)[_0x313a4d(0x28f0)](_0x313a4d(0x16e9),_0x2c9d0b)[_0x313a4d(0x28f0)](_0x313a4d(0x268f),_0x47a2bf)[_0x313a4d(0x28f0)](_0x313a4d(0x1d1e),_0x4b63a8)['controller']('EditSmsAccountAppagentDialogController',_0x53a3e7)[_0x313a4d(0x28f0)]('EditSmsAccountAppamazonlexDialogController',_0x156ed4)[_0x313a4d(0x28f0)](_0x313a4d(0x23b2),_0x55aebb)['controller'](_0x313a4d(0x877),_0x569418)['controller'](_0x313a4d(0x214c),_0x180367)['controller'](_0x313a4d(0x1f68),_0x4ec7ff)[_0x313a4d(0x28f0)](_0x313a4d(0x1a67),_0x5b07fa)[_0x313a4d(0x28f0)](_0x313a4d(0x1b2b),_0x1fa463)['controller']('EditSmsAccountAppnoopDialogController',_0x56c747)['controller'](_0x313a4d(0x12ba),_0x4f8b24)[_0x313a4d(0x28f0)](_0x313a4d(0x1b50),_0x529f6b)[_0x313a4d(0x28f0)](_0x313a4d(0x2456),_0x54d50e)[_0x313a4d(0x28f0)](_0x313a4d(0x22cd),_0x4a6d16)['controller'](_0x313a4d(0x23b9),_0x252d55)[_0x313a4d(0x28f0)](_0x313a4d(0x10d8),_0x4d2442)['controller'](_0x313a4d(0xe3f),_0x33b959)[_0x313a4d(0x28f0)](_0x313a4d(0x2140),_0x269ea6)[_0x313a4d(0x28f0)](_0x313a4d(0x14d3),_0x3b38b4)[_0x313a4d(0x28f0)](_0x313a4d(0x1c6b),_0x4ec5e9)['controller'](_0x313a4d(0x20d4),_0x485463)[_0x313a4d(0x28f0)](_0x313a4d(0x1d4d),_0x38fbf9)[_0x313a4d(0x28f0)](_0x313a4d(0x373),_0x17994a)['controller'](_0x313a4d(0x3e4),_0x529fa6);;const _0x42fe12=_0x4acfac['p']+_0x313a4d(0xf89);;const _0x4c4b41=_0x4acfac['p']+_0x313a4d(0x9dd);;const _0x19d720=_0x4acfac['p']+'src/js/modules/main/apps/openchannel/views/realtime/queues/view.html/view.html';;_0x575ccf[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),'$q',_0x313a4d(0x1abe),_0x313a4d(0x10e8),_0x313a4d(0x4d8),_0x313a4d(0x1ee0),'pauses',_0x313a4d(0x23c0),'rpcAgents','api','socket',_0x313a4d(0x1fe4),_0x313a4d(0x1ac0),'userProfile','userProfileSection','Auth',_0x313a4d(0x2690),'$interval'];function _0x575ccf(_0x5c22f4,_0x2faf8c,_0x1b21d9,_0x877312,_0x152170,_0xc82a85,_0x1c45b8,_0x10bc6b,_0x2eb659,_0x20e7ef,_0x38ce43,_0x1f21bb,_0x5dae80,_0x175906,_0xb3819e,_0x40842f,_0x4ce66a,_0x97524a){const _0x243a59=_0x313a4d,_0x5ab071=this,_0x369cf5=[_0x243a59(0x1fce),_0x243a59(0x538),_0x243a59(0x1d01),_0x243a59(0x192a),_0x243a59(0x1125),_0x243a59(0x192a),_0x243a59(0x113f),_0x243a59(0x2bb),'chatPause',_0x243a59(0xcc5),_0x243a59(0x1e9e),_0x243a59(0x17c),'whatsappPause','faxPause','voicePause','chatCapacity','openchannelCapacity',_0x243a59(0xf85),_0x243a59(0x1820),_0x243a59(0x237c),_0x243a59(0x1cf6),_0x243a59(0xaac),_0x243a59(0x247),_0x243a59(0x1025),_0x243a59(0x2e2),_0x243a59(0xfc1),_0x243a59(0x1815),_0x243a59(0xfc3),'openchannelStatus',_0x243a59(0x1fc6),_0x243a59(0x22f6),_0x243a59(0xfdf),_0x243a59(0x15ea),_0x243a59(0x685),'chatStatusTime','openchannelStatusTime',_0x243a59(0x10cd),_0x243a59(0x1f5c),'whatsappStatusTime',_0x243a59(0x47a),_0x243a59(0x1dda),_0x243a59(0x1c72),_0x243a59(0x1e8d),_0x243a59(0x1ca2),_0x243a59(0x4e3),_0x243a59(0x22c3)],_0x1ae418=[_0x243a59(0x5f7),_0x243a59(0xcc5),_0x243a59(0x1e9e),_0x243a59(0x17c),_0x243a59(0x1f9d),_0x243a59(0x25c4),_0x243a59(0x211c),'online'];_0x5ab071[_0x243a59(0x2321)]=_0x40842f['getCurrentUser'](),_0x5ab071[_0x243a59(0xe3e)]=['ringing','inuse',_0x243a59(0x26a7),_0x243a59(0x776),_0x243a59(0x254d)],_0x5ab071['pauses']=_0x1c45b8||{'count':0x0,'rows':[]},_0x5ab071['license']=_0x4ce66a,_0x5ab071['userProfile']=_0x175906,_0x5ab071[_0x243a59(0x1366)]=_0xb3819e&&_0xb3819e[_0x243a59(0x51c)]==0x1?_0xb3819e[_0x243a59(0x19c7)][0x0]:null,_0x5ab071[_0x243a59(0x2514)]=_0x40842f[_0x243a59(0xe60)](_0x5ab071['userProfileSection']?_0x5ab071[_0x243a59(0x1366)][_0x243a59(0x2514)]:null),_0x5ab071[_0x243a59(0x23c0)]=_0x10bc6b?_0x3f65c0()[_0x243a59(0x194)](_0x10bc6b[_0x243a59(0x19c7)]?_0x10bc6b[_0x243a59(0x19c7)]:[],'id'):{},_0x5ab071[_0x243a59(0x2445)]=_0x2eb659?_0x3f65c0()['keyBy'](_0x2eb659[_0x243a59(0x19c7)]?_0x2eb659[_0x243a59(0x19c7)]:[],'id'):{},_0x5ab071[_0x243a59(0x285)]={},_0x5ab071['load']=![],_0x5ab071['order']=[],_0x5ab071[_0x243a59(0x626)]={};for(const _0x3055f4 in _0x5ab071[_0x243a59(0x23c0)]){typeof _0x5ab071[_0x243a59(0x23c0)][_0x3055f4]!==_0x243a59(0x2274)&&(_0x5ab071[_0x243a59(0x23c0)][_0x3055f4][_0x243a59(0x5aa)]=!![]);}_0x5ab071[_0x243a59(0x1a56)]={'limit':0xa,'page':0x1,'order':_0x243a59(0x286a),'globalStatusFilter':'','pauseTypeFilter':''},_0x5ab071[_0x243a59(0x2044)]=_0x5dd782,_0x5ab071['queueAdd']=_0x208093,_0x5ab071['pause']=_0x51b0df,_0x5ab071[_0x243a59(0x693)]=_0x3b3eda,_0x5ab071[_0x243a59(0x232c)]=_0x5e8e9d,_0x5ab071[_0x243a59(0x1eaa)]=_0x37c87f,_0x5ab071['getAgentGlobalStatus']=_0x2745f4,_0x5ab071[_0x243a59(0x2075)]=_0x565565,_0x5ab071[_0x243a59(0x169)]=_0x598315,_0x5ab071[_0x243a59(0x1d53)]=_0x1356d5,_0x5ab071[_0x243a59(0x1db0)]=_0x2e944a,_0x5ab071[_0x243a59(0x1a76)]=_0x14594f,_0x5ab071['onInit']=_0x783172,_0x5ab071[_0x243a59(0x201a)]=_0x305d14,_0x5ab071[_0x243a59(0x483)]=_0x27d5ef,_0x5ab071[_0x243a59(0x1b80)]=_0x5d3133,_0x38ce43['on'](_0x243a59(0x17de),_0x5ab071[_0x243a59(0x1db0)]),_0x38ce43['on'](_0x243a59(0x324),_0x5ab071[_0x243a59(0x1a76)]),_0x38ce43['on'](_0x243a59(0x118c),_0x5ab071[_0x243a59(0x201a)]),_0x38ce43['on']('user:agentcomplete',_0x5ab071['onComplete']),_0x783172();let _0x53cfd2=_0x97524a(function(){const _0x40ab6e=_0x243a59;_0x5ab071['load']&&(_0x5ab071[_0x40ab6e(0x2412)]=![],_0x783172());},0x3e7);function _0x783172(){const _0x319bc0=_0x243a59;_0x5ab071[_0x319bc0(0x2412)]=![];const _0x236b4f=_0x2faf8c['defer']();_0x5ab071[_0x319bc0(0xb9c)]=_0x236b4f[_0x319bc0(0xb9c)],_0x5ab071['filteredAgents']=[],_0x5ab071['order']=[],_0x3f65c0()[_0x319bc0(0x1a04)](_0x5ab071[_0x319bc0(0x23c0)],function(_0xbd2b6b,_0x4b1c07){const _0x4b927f=_0x319bc0;_0x5ab071[_0x4b927f(0x2445)][_0x4b1c07]&&_0x3f65c0()[_0x4b927f(0x168d)](_0xbd2b6b,_0x3f65c0()[_0x4b927f(0x40e)](_0x3f65c0()[_0x4b927f(0x2432)](_0x5ab071['rpcAgents'][_0x4b1c07],_0x1ae418),_0x369cf5)),_0x2745f4(_0xbd2b6b),_0xbd2b6b[_0x4b927f(0x538)]?(_0x5ab071[_0x4b927f(0x202e)][_0x4b927f(0x1f47)](_0xbd2b6b),_0x5ab071[_0x4b927f(0x626)][_0xbd2b6b['internal']]=_0x4b1c07):_0xbd2b6b[_0x4b927f(0xed1)]=_0x3f65c0()[_0x4b927f(0x123)](_0x2deec6()()['format']('x'));});_0x5ab071['query']['globalStatusFilter']&&_0x3f65c0()[_0x319bc0(0x2640)](_0x5ab071[_0x319bc0(0x202e)],function(_0xa96e){const _0x14ace5=_0x319bc0;return _0xa96e[_0x14ace5(0x72b)]!==_0x5ab071[_0x14ace5(0x1a56)]['globalStatusFilter'];});_0x5ab071[_0x319bc0(0x1a56)][_0x319bc0(0x301)]&&_0x3f65c0()[_0x319bc0(0x2640)](_0x5ab071[_0x319bc0(0x202e)],function(_0x41d32b){const _0x392094=_0x319bc0;return _0x41d32b[_0x392094(0x1125)]!==_0x5ab071[_0x392094(0x1a56)]['pauseTypeFilter'];});_0x5ab071[_0x319bc0(0x1a56)][_0x319bc0(0x1dd6)]&&_0x3f65c0()[_0x319bc0(0x2640)](_0x5ab071[_0x319bc0(0x202e)],function(_0x54870f){const _0x24ebd2=_0x319bc0;return _0x54870f['fullname']['toLowerCase']()['indexOf'](_0x5ab071[_0x24ebd2(0x1a56)][_0x24ebd2(0x1dd6)][_0x24ebd2(0x256e)]())<0x0;});_0x5ab071['filteredAgents']=_0x10a586(_0x5ab071[_0x319bc0(0x202e)]);const _0x5cfb02=(_0x5ab071[_0x319bc0(0x1a56)][_0x319bc0(0x844)]-0x1)*_0x5ab071['query'][_0x319bc0(0x221e)];_0x5ab071['paginatedAgents']=_0x3f65c0()['drop'](_0x5ab071['filteredAgents'],_0x5cfb02)[_0x319bc0(0x1298)](0x0,_0x5ab071[_0x319bc0(0x1a56)]['limit']);for(let _0x4e355f=0x0;_0x4e355f<_0x5ab071[_0x319bc0(0x285)][_0x319bc0(0x402)];_0x4e355f+=0x1){_0x5ab071[_0x319bc0(0x206e)][_0x319bc0(0x1f47)](_0x5ab071[_0x319bc0(0x285)][_0x4e355f]['id']);}_0x236b4f['resolve'](),_0x5ab071[_0x319bc0(0x2412)]=!![];}function _0x2e944a(_0x4c43b4){const _0x46f213=_0x243a59;_0x5ab071[_0x46f213(0x23c0)][_0x4c43b4['id']]&&(_0x3f65c0()[_0x46f213(0x168d)](_0x5ab071[_0x46f213(0x23c0)][_0x4c43b4['id']],_0x3f65c0()['pick'](_0x3f65c0()[_0x46f213(0x2432)](_0x4c43b4,_0x1ae418),_0x369cf5)),_0x3f65c0()[_0x46f213(0x168d)](_0x5ab071[_0x46f213(0x2445)][_0x4c43b4['id']],_0x3f65c0()['pick'](_0x3f65c0()[_0x46f213(0x2432)](_0x4c43b4,_0x1ae418),_0x369cf5)),_0x2745f4(_0x5ab071['agents'][_0x4c43b4['id']]));}function _0x14594f(_0x125d64){const _0x3c8f2b=_0x243a59;_0x5ab071[_0x3c8f2b(0x23c0)][_0x125d64['id']]&&(_0x3f65c0()['merge'](_0x5ab071[_0x3c8f2b(0x23c0)][_0x125d64['id']],_0x3f65c0()['pick'](_0x125d64,_0x369cf5)),_0x3f65c0()[_0x3c8f2b(0x168d)](_0x5ab071[_0x3c8f2b(0x2445)][_0x125d64['id']],_0x3f65c0()['pick'](_0x125d64,_0x369cf5)),_0x125d64[_0x3c8f2b(0x192a)]&&(_0x5ab071[_0x3c8f2b(0x23c0)][_0x125d64['id']][_0x3c8f2b(0xed1)]=_0x125d64[_0x3c8f2b(0x192a)],_0x5ab071[_0x3c8f2b(0x2445)][_0x125d64['id']]['globalStatusTime']=_0x125d64[_0x3c8f2b(0x192a)]),_0x2745f4(_0x5ab071[_0x3c8f2b(0x23c0)][_0x125d64['id']]));}function _0x305d14(_0x1d8fc3){const _0x33b890=_0x243a59;_0x5ab071['agents'][_0x5ab071[_0x33b890(0x626)][_0x1d8fc3[_0x33b890(0x1fb9)]]]&&(_0x3f65c0()['merge'](_0x5ab071[_0x33b890(0x23c0)][_0x5ab071[_0x33b890(0x626)][_0x1d8fc3['destaccountcode']]],_0x3f65c0()[_0x33b890(0x40e)](_0x1d8fc3,[_0x33b890(0x1c72),_0x33b890(0x1e8d)])),_0x3f65c0()['merge'](_0x5ab071[_0x33b890(0x2445)][_0x5ab071[_0x33b890(0x626)][_0x1d8fc3[_0x33b890(0x1fb9)]]],_0x3f65c0()['pick'](_0x1d8fc3,[_0x33b890(0x1c72),'destconnectedlinenum'])));}function _0x27d5ef(_0xf8b43b){const _0x476db5=_0x243a59;_0x5ab071[_0x476db5(0x23c0)][_0x5ab071[_0x476db5(0x626)][_0xf8b43b[_0x476db5(0x1fb9)]]]&&(_0x5ab071[_0x476db5(0x23c0)][_0x5ab071[_0x476db5(0x626)][_0xf8b43b[_0x476db5(0x1fb9)]]]=_0x3f65c0()['omit'](_0x5ab071[_0x476db5(0x23c0)][_0x5ab071['agentInternal'][_0xf8b43b[_0x476db5(0x1fb9)]]],[_0x476db5(0x1c72),_0x476db5(0x1e8d)]),_0x5ab071[_0x476db5(0x2445)][_0x5ab071[_0x476db5(0x626)][_0xf8b43b[_0x476db5(0x1fb9)]]]=_0x3f65c0()['omit'](_0x5ab071['rpcAgents'][_0x5ab071['agentInternal'][_0xf8b43b[_0x476db5(0x1fb9)]]],[_0x476db5(0x1c72),'destconnectedlinenum']));}function _0x5dd782(_0x338e38){const _0x478feb=_0x243a59;return _0x20e7ef[_0x478feb(0xe7b)][_0x478feb(0x2044)]({'id':_0x338e38['id'],'device':'realtime','agent_id':_0x338e38['id'],'agent_name':_0x338e38[_0x478feb(0x19eb)]})[_0x478feb(0x2945)][_0x478feb(0x146b)](function(){const _0x4503c7=_0x478feb;_0x1f21bb[_0x4503c7(0x1c75)]({'title':'Agent\x20logout','msg':_0x338e38[_0x4503c7(0x286a)]+_0x4503c7(0x166c)}),_0x5ab071['agents'][_0x338e38['id']]&&(_0x5ab071[_0x4503c7(0x23c0)][_0x338e38['id']]['online']=![]),_0x5ab071[_0x4503c7(0x2445)][_0x338e38['id']]&&(_0x5ab071[_0x4503c7(0x2445)][_0x338e38['id']][_0x4503c7(0x538)]=![]),_0x783172();})[_0x478feb(0x129e)](function(_0x3f84a3){const _0x56d610=_0x478feb;_0x1f21bb[_0x56d610(0x1980)]({'title':_0x3f84a3['status']?_0x56d610(0x262a)+_0x3f84a3[_0x56d610(0x107b)]+_0x56d610(0x1315)+_0x3f84a3[_0x56d610(0x167f)]:_0x56d610(0x23c6),'msg':_0x3f84a3[_0x56d610(0x524)]?JSON[_0x56d610(0x10bb)](_0x3f84a3[_0x56d610(0x524)][_0x56d610(0x7fd)]):_0x3f84a3[_0x56d610(0xd5f)]()});});}function _0x51b0df(_0x5a026e,_0x2e5b42){const _0x5ba061=_0x243a59;return _0x20e7ef['user']['pause']({'id':_0x5a026e['id'],'type':_0x2e5b42})[_0x5ba061(0x2945)][_0x5ba061(0x146b)](function(_0x5156df){const _0x70d52d=_0x5ba061;_0x5ab071[_0x70d52d(0x23c0)][_0x5a026e['id']]&&_0x3f65c0()['merge'](_0x5ab071[_0x70d52d(0x23c0)][_0x5a026e['id']],_0x3f65c0()['pick'](_0x5156df,_0x369cf5)),_0x5ab071[_0x70d52d(0x2445)][_0x5a026e['id']]&&_0x3f65c0()[_0x70d52d(0x168d)](_0x5ab071[_0x70d52d(0x2445)][_0x5a026e['id']],_0x3f65c0()[_0x70d52d(0x40e)](_0x5156df,_0x369cf5)),_0x2745f4(_0x5ab071[_0x70d52d(0x23c0)][_0x5a026e['id']]);})[_0x5ba061(0x129e)](function(_0x363a27){const _0x397126=_0x5ba061;_0x1f21bb[_0x397126(0x1980)]({'title':_0x363a27[_0x397126(0x107b)]?'API:'+_0x363a27[_0x397126(0x107b)]+_0x397126(0x1315)+_0x363a27[_0x397126(0x167f)]:_0x397126(0x23c6),'msg':_0x363a27[_0x397126(0x524)]?JSON['stringify'](_0x363a27['data'][_0x397126(0x7fd)]):_0x363a27[_0x397126(0xd5f)]()});});}function _0x3b3eda(_0x1fe077){const _0x44b3ab=_0x243a59;return _0x20e7ef[_0x44b3ab(0xe7b)][_0x44b3ab(0x974)]({'id':_0x1fe077['id']})[_0x44b3ab(0x2945)][_0x44b3ab(0x146b)](function(_0x6cc668){const _0x4f0097=_0x44b3ab;_0x5ab071['agents'][_0x1fe077['id']]&&_0x3f65c0()[_0x4f0097(0x168d)](_0x5ab071[_0x4f0097(0x23c0)][_0x1fe077['id']],_0x3f65c0()[_0x4f0097(0x40e)](_0x6cc668,_0x369cf5)),_0x5ab071[_0x4f0097(0x2445)][_0x1fe077['id']]&&_0x3f65c0()[_0x4f0097(0x168d)](_0x5ab071['rpcAgents'][_0x1fe077['id']],_0x3f65c0()['pick'](_0x6cc668,_0x369cf5)),_0x2745f4(_0x5ab071[_0x4f0097(0x23c0)][_0x1fe077['id']]);})[_0x44b3ab(0x129e)](function(_0x425723){const _0x2551fe=_0x44b3ab;_0x1f21bb[_0x2551fe(0x1980)]({'title':_0x425723[_0x2551fe(0x107b)]?_0x2551fe(0x262a)+_0x425723[_0x2551fe(0x107b)]+_0x2551fe(0x1315)+_0x425723['statusText']:_0x2551fe(0x23c6),'msg':_0x425723[_0x2551fe(0x524)]?JSON[_0x2551fe(0x10bb)](_0x425723[_0x2551fe(0x524)][_0x2551fe(0x7fd)]):_0x425723['toString']()});});}function _0x5e8e9d(_0x103859){const _0x4db8d9=_0x243a59;_0x877312['show'](_0x877312[_0x4db8d9(0x861)]()[_0x4db8d9(0xa70)](!![])[_0x4db8d9(0x1189)](_0x4db8d9(0x2783))[_0x4db8d9(0x1cbe)](_0x4db8d9(0x1f77))['ok']('Ok')[_0x4db8d9(0x1f27)](_0x103859));}function _0x208093(_0x1d31a8,_0x3252d9){const _0x277cad=_0x243a59;_0x877312[_0x277cad(0x2615)]({'controller':_0x277cad(0x2610),'controllerAs':'vm','templateUrl':_0xbb22f1,'parent':angular[_0x277cad(0x1853)](_0x152170['body']),'targetEvent':_0x3252d9,'clickOutsideToClose':!![],'locals':{'agent':_0x1d31a8,'agents':[],'channel':_0x277cad(0x7d9),'direction':_0x277cad(0x7b0),'crudPermissions':_0x5ab071[_0x277cad(0x2514)]}});}function _0x565565(_0x1afba0){const _0xf74f43=_0x243a59;return _0x1afba0===_0xf74f43(0x1e3e)||_0x1afba0===_0xf74f43(0x1127);}function _0x598315(_0x1f1d10){const _0x23036e=_0x243a59;return _0x1f1d10===_0x23036e(0x1e3e);}function _0x1356d5(_0x4e82f9){const _0xca6762=_0x243a59;return _0x4e82f9===_0xca6762(0x1127);}function _0x5eadc3(_0x2a016b){const _0x5fbb7e=_0x243a59;return _0x2a016b==='idle'||_0x2a016b===_0x5fbb7e(0x207d)||_0x2a016b===_0x5fbb7e(0x85d)||_0x2a016b===_0x5fbb7e(0xad4)||_0x3f65c0()[_0x5fbb7e(0x1b36)](_0x2a016b);}function _0x37c87f(_0x47c115,_0x1b101f){const _0xb567f7=_0x243a59;if(_0x1b101f===_0xb567f7(0xe6)){if(_0x47c115[_0x1b101f+_0xb567f7(0x74e)]!==_0xb567f7(0xb09))return _0x47c115[_0x1b101f+_0xb567f7(0x74e)];if(_0x47c115[_0x1b101f+_0xb567f7(0xde0)])return _0x47c115[_0x1b101f+_0xb567f7(0x74e)]='pause',_0xb567f7(0x1e3e);return _0xb567f7(0xb09);}else{if(_0x47c115[_0x1b101f+'Pause'])return _0x47c115[_0x1b101f+_0xb567f7(0x74e)]=_0xb567f7(0x1e3e),_0xb567f7(0x1e3e);return _0x47c115[_0x1b101f+_0xb567f7(0x74e)];}}function _0x2745f4(_0x2d5cbd){const _0x47e196=_0x243a59;let _0x51a963=_0x47e196(0x207d);if(_0x3f65c0()['every']([_0x37c87f(_0x2d5cbd,_0x47e196(0xe6)),_0x37c87f(_0x2d5cbd,_0x47e196(0xa7f)),_0x37c87f(_0x2d5cbd,_0x47e196(0x56b)),_0x37c87f(_0x2d5cbd,_0x47e196(0x7d9)),_0x37c87f(_0x2d5cbd,'sms'),_0x37c87f(_0x2d5cbd,_0x47e196(0xff9)),_0x37c87f(_0x2d5cbd,'fax')],_0x565565))_0x51a963=_0x47e196(0x1e3e);else{if(_0x3f65c0()['some']([_0x37c87f(_0x2d5cbd,_0x47e196(0xe6)),_0x37c87f(_0x2d5cbd,_0x47e196(0xa7f)),_0x37c87f(_0x2d5cbd,_0x47e196(0x56b)),_0x37c87f(_0x2d5cbd,_0x47e196(0x7d9)),_0x37c87f(_0x2d5cbd,'sms'),_0x37c87f(_0x2d5cbd,_0x47e196(0xff9)),_0x37c87f(_0x2d5cbd,_0x47e196(0x22d9))],_0x565565))_0x51a963=_0x47e196(0x1127);else _0x3f65c0()[_0x47e196(0xb14)]([_0x37c87f(_0x2d5cbd,_0x47e196(0xe6)),_0x37c87f(_0x2d5cbd,_0x47e196(0xa7f)),_0x37c87f(_0x2d5cbd,_0x47e196(0x56b)),_0x37c87f(_0x2d5cbd,'openchannel'),_0x37c87f(_0x2d5cbd,_0x47e196(0x929)),_0x37c87f(_0x2d5cbd,'whatsapp'),_0x37c87f(_0x2d5cbd,_0x47e196(0x22d9))],_0x5eadc3)?_0x51a963=_0x47e196(0xb09):_0x51a963='busy';}_0x2d5cbd[_0x47e196(0x72b)]!==_0x51a963&&(_0x2d5cbd[_0x47e196(0x72b)]=_0x51a963,_0x2d5cbd[_0x47e196(0x5aa)]?(_0x2d5cbd[_0x47e196(0x5aa)]=![],_0x2d5cbd['globalStatusTime']=_0x565565(_0x51a963)?_0x3f65c0()[_0x47e196(0x123)](_0x2deec6()(_0x2d5cbd[_0x47e196(0x192a)])['format']('x')):_0x3f65c0()['max']([_0x2d5cbd['voiceStatusTime'],_0x2d5cbd[_0x47e196(0x1a22)],_0x2d5cbd[_0x47e196(0x10cd)],_0x2d5cbd[_0x47e196(0x1f5c)],_0x2d5cbd['whatsappStatusTime'],_0x2d5cbd[_0x47e196(0x6cb)],_0x2d5cbd['faxStatusTime']])):_0x2d5cbd[_0x47e196(0xed1)]=_0x3f65c0()['toNumber'](_0x2deec6()()[_0x47e196(0x22b0)]('x')));}function _0x10a586(_0x37f49a){const _0x4221cc=_0x243a59,_0x1aa47d=_0x3f65c0()[_0x4221cc(0xd4d)](_0x5ab071[_0x4221cc(0x1a56)][_0x4221cc(0x206e)],'-')?'desc':_0x4221cc(0x195);return _0x3f65c0()[_0x4221cc(0x979)](_0x37f49a,[_0x5ab071[_0x4221cc(0x1a56)][_0x4221cc(0x206e)][_0x4221cc(0x5f4)]('-','')],[_0x1aa47d]);}function _0x49a4bd(){const _0x5435f2=_0x243a59;_0x53cfd2&&(_0x97524a[_0x5435f2(0x6c3)](_0x53cfd2),_0x53cfd2=null);}function _0x5d3133(_0x30c012,_0x58276e){const _0x52cea4=_0x243a59;return _0x20e7ef[_0x52cea4(0xe7b)][_0x52cea4(0x18e1)]({'id':_0x30c012['id']},{'screenrecording':_0x58276e})['$promise'][_0x52cea4(0x129e)](function(_0x2de889){const _0x481c2d=_0x52cea4;_0x1f21bb['error']({'title':_0x2de889[_0x481c2d(0x107b)]?_0x481c2d(0x262a)+_0x2de889[_0x481c2d(0x107b)]+_0x481c2d(0x1315)+_0x2de889[_0x481c2d(0x167f)]:'api.user.update','msg':_0x2de889[_0x481c2d(0x524)]?JSON[_0x481c2d(0x10bb)](_0x2de889['data']['message']):_0x2de889[_0x481c2d(0xd5f)]()});});}_0x5c22f4[_0x243a59(0x16ad)](_0x243a59(0x116f),function(){const _0x518af0=_0x243a59;_0x38ce43[_0x518af0(0x1c5f)](_0x518af0(0x17de)),_0x38ce43['removeAllListeners'](_0x518af0(0x324)),_0x38ce43[_0x518af0(0x1c5f)](_0x518af0(0x118c)),_0x38ce43[_0x518af0(0x1c5f)](_0x518af0(0x198f)),_0x49a4bd();});}const _0x345284=_0x575ccf;;const _0x25f87f=_0x4acfac['p']+_0x313a4d(0x8aa);;const _0x5531ae=_0x4acfac['p']+'src/js/modules/main/apps/openchannel/views/openchannelQueues/edit/agentadd/agentadd.html/agentadd.html';;_0x133999[_0x313a4d(0x11c2)]=['$scope','$timeout','$mdDialog','$q',_0x313a4d(0x4d8),_0x313a4d(0xa0a),'queues',_0x313a4d(0x21af),_0x313a4d(0x247f),_0x313a4d(0x279d),_0x313a4d(0x1fe4),_0x313a4d(0x26b6),_0x313a4d(0x1366),'Auth'];function _0x133999(_0x512f69,_0x46360a,_0x561483,_0x47dd94,_0xd19ce7,_0x5b2311,_0x249d32,_0x261b1a,_0xc7b8f3,_0x709e4e,_0x3ee798,_0x508a3f,_0x24b959,_0x5db4eb){const _0x4dc908=_0x313a4d,_0x4e90ca=this,_0x573d5a=[_0x4dc908(0x2398),_0x4dc908(0xbdb),'waiting','talking',_0x4dc908(0x166f),_0x4dc908(0x1e38),_0x4dc908(0x7fd),_0x4dc908(0x1095),_0x4dc908(0x1a69),_0x4dc908(0x13c4),'paused'];_0x4e90ca['currentUser']=_0x5db4eb[_0x4dc908(0xb12)](),_0x4e90ca[_0x4dc908(0x51c)]=_0x249d32[_0x4dc908(0x51c)]?_0x249d32[_0x4dc908(0x51c)]:0x0,_0x4e90ca[_0x4dc908(0x1b32)]=_0x249d32?_0x3f65c0()[_0x4dc908(0x194)](_0x249d32[_0x4dc908(0x19c7)]?_0x249d32['rows']:[],'id'):{},_0x4e90ca[_0x4dc908(0x21af)]=_0x261b1a?_0x3f65c0()[_0x4dc908(0x194)](_0x261b1a[_0x4dc908(0x19c7)]?_0x261b1a[_0x4dc908(0x19c7)]:[],'id'):{},_0x4e90ca['userProfile']=_0x508a3f,_0x4e90ca[_0x4dc908(0x1366)]=_0x24b959&&_0x24b959['count']==0x1?_0x24b959[_0x4dc908(0x19c7)][0x0]:null,_0x4e90ca[_0x4dc908(0x2514)]=_0x5db4eb[_0x4dc908(0xe60)](_0x4e90ca['userProfileSection']?_0x4e90ca['userProfileSection']['crudPermissions']:null);_0x5db4eb[_0x4dc908(0x23e0)](_0x4dc908(0x174b))?_0x4e90ca[_0x4dc908(0x1a56)]={'type':_0x4dc908(0x7b0),'sort':_0x4dc908(0x12f2),'limit':0xa,'page':0x1}:_0x4e90ca[_0x4dc908(0x1a56)]={'id':_0x4e90ca[_0x4dc908(0x2321)]['id'],'channel':'openchannel','type':'inbound','sort':'-updatedAt','limit':0xa,'page':0x1};_0x4e90ca[_0x4dc908(0x1c75)]=_0x33b009,_0x4e90ca[_0x4dc908(0xc53)]=_0x37c3ac,_0x4e90ca['createOrEditOpenchannelQueue']=_0x2fbad3,_0x4e90ca[_0x4dc908(0x13c)]=_0x3954b6,_0x4e90ca[_0x4dc908(0x2801)]=_0x19c4fd,_0x4e90ca[_0x4dc908(0x1db0)]=_0x4949ae,_0x4e90ca[_0x4dc908(0x285f)]=_0x4314f5,_0x4e90ca[_0x4dc908(0x2240)]=_0x549620,_0x4e90ca['onPause']=_0x4c911b,_0x4e90ca[_0x4dc908(0x1c6c)]=_0x25540c,_0x4e90ca[_0x4dc908(0x600)]=_0x168447,_0x4e90ca[_0x4dc908(0x20de)]=_0xcfd130,_0x4e90ca[_0x4dc908(0x206e)]=[],_0x3f65c0()[_0x4dc908(0x1a04)](_0x4e90ca[_0x4dc908(0x1b32)],function(_0x46ed05){const _0x412a02=_0x4dc908;_0x4e90ca['order'][_0x412a02(0x1f47)](_0x46ed05['id']);}),_0x709e4e['on'](_0x4dc908(0x1d9d),_0x4e90ca[_0x4dc908(0x1db0)]),_0x709e4e['on'](_0x4dc908(0x27e),_0x4e90ca['onSaveMember']),_0x709e4e['on'](_0x4dc908(0x594),_0x4e90ca[_0x4dc908(0x2240)]),_0x709e4e['on'](_0x4dc908(0x324),_0x4e90ca[_0x4dc908(0x1028)]),_0x709e4e['on'](_0x4dc908(0x1d3e),_0x4e90ca[_0x4dc908(0x600)]),_0x709e4e['on'](_0x4dc908(0x109d),_0x4e90ca['onLogin']);function _0xcfd130(){const _0x19c555=_0x4dc908,_0x22f324=[];return _0x3f65c0()['forIn'](_0x4e90ca[_0x19c555(0x1b32)],function(_0x340f1b,_0x13d985){const _0x3bfccf=_0x19c555;_0x340f1b['paused']=0x0,_0x340f1b['loggedInDb']=0x0,_0x4e90ca['queues'][_0x13d985][_0x3bfccf(0x23c0)]={},_0x22f324[_0x3bfccf(0x1f47)](_0xc7b8f3[_0x3bfccf(0x2755)]['getMembers']({'id':_0x13d985})['$promise']),_0x4e90ca['rpcQueues'][_0x13d985]&&_0x3f65c0()[_0x3bfccf(0x168d)](_0x340f1b,_0x3f65c0()['pick'](_0x4e90ca[_0x3bfccf(0x21af)][_0x13d985],_0x573d5a));}),_0x47dd94['all'](_0x22f324)[_0x19c555(0x146b)](function(_0x3ee4da){const _0x526ab9=_0x19c555;for(let _0x907522=0x0;_0x907522<_0x3ee4da[_0x526ab9(0x402)];_0x907522+=0x1){for(let _0x4d636c=0x0;_0x4d636c<_0x3ee4da[_0x907522][_0x526ab9(0x19c7)][_0x526ab9(0x402)];_0x4d636c++){_0x3ee4da[_0x907522][_0x526ab9(0x19c7)][_0x4d636c][_0x526ab9(0x1e3d)]&&_0x4e90ca['queues'][_0x3ee4da[_0x907522]['rows'][_0x4d636c][_0x526ab9(0x22be)]]['paused']++,_0x4e90ca['queues'][_0x3ee4da[_0x907522][_0x526ab9(0x19c7)][_0x4d636c][_0x526ab9(0x22be)]][_0x526ab9(0x1899)]++,_0x4e90ca[_0x526ab9(0x1b32)][_0x3ee4da[_0x907522][_0x526ab9(0x19c7)][_0x4d636c]['OpenchannelQueueId']]['agents'][_0x3ee4da[_0x907522][_0x526ab9(0x19c7)][_0x4d636c]['UserId']]=_0x3ee4da[_0x907522][_0x526ab9(0x19c7)][_0x4d636c][_0x526ab9(0x22be)];}}})[_0x19c555(0x129e)](function(_0x318f3f){const _0x23a90c=_0x19c555;console[_0x23a90c(0x1980)](_0x318f3f);});}function _0x4949ae(_0x136130){const _0xeb74d6=_0x4dc908;_0x4e90ca['queues'][_0x136130['id']]&&_0x3f65c0()[_0xeb74d6(0x168d)](_0x4e90ca[_0xeb74d6(0x1b32)][_0x136130['id']],_0x3f65c0()[_0xeb74d6(0x40e)](_0x136130,_0x573d5a));}function _0x4314f5(_0x372115){const _0x4cc235=_0x4dc908;_0x4e90ca[_0x4cc235(0x1b32)][_0x372115[_0x4cc235(0x22be)]]&&_0x4e90ca['queues'][_0x372115[_0x4cc235(0x22be)]][_0x4cc235(0x1899)]++;}function _0x549620(_0x45c2d0){const _0x2a3a0f=_0x4dc908;_0x4e90ca[_0x2a3a0f(0x1b32)][_0x45c2d0[_0x2a3a0f(0x22be)]]&&_0x4e90ca[_0x2a3a0f(0x1b32)][_0x45c2d0[_0x2a3a0f(0x22be)]]['loggedInDb']--;}function _0x4c911b(_0x3d838e){const _0x43280f=_0x4dc908;console[_0x43280f(0x1a74)](_0x43280f(0x1028),_0x3d838e);if(_0x3d838e[_0x43280f(0x211c)])_0x3f65c0()['forIn'](_0x4e90ca[_0x43280f(0x1b32)],function(_0x2e5d8a){const _0x4494c0=_0x43280f;_0x2e5d8a[_0x4494c0(0x23c0)][_0x3d838e['id']]&&(_0x2e5d8a[_0x4494c0(0x1e3d)]+=0x1,console[_0x4494c0(0x1a74)](_0x4494c0(0x1e3e)));});else!_0x3d838e['voicePause']&&_0x3f65c0()['forIn'](_0x4e90ca[_0x43280f(0x1b32)],function(_0x220c6c){const _0x2daf5f=_0x43280f;_0x220c6c['agents'][_0x3d838e['id']]&&(_0x220c6c['paused']>0x0&&(_0x220c6c[_0x2daf5f(0x1e3d)]-=0x1,console[_0x2daf5f(0x1a74)](_0x2daf5f(0x974))));});}function _0x25540c(_0x54abce){const _0x5d6198=_0x4dc908;console[_0x5d6198(0x1a74)](_0x5d6198(0x414),_0x54abce),_0x4e90ca[_0x5d6198(0x1b32)][_0x54abce[_0x5d6198(0x22be)]]&&(_0x4e90ca['queues'][_0x54abce[_0x5d6198(0x22be)]][_0x5d6198(0x1899)]+=0x1,_0x4e90ca[_0x5d6198(0x1b32)][_0x54abce[_0x5d6198(0x22be)]][_0x5d6198(0x23c0)][_0x54abce[_0x5d6198(0xea2)]]=_0x54abce['OpenchannelQueueId']);}function _0x168447(_0x422a48){const _0x26935=_0x4dc908;console[_0x26935(0x1a74)]('onLogout',_0x422a48),_0x4e90ca[_0x26935(0x1b32)][_0x422a48['OpenchannelQueueId']]&&_0x4e90ca[_0x26935(0x1b32)][_0x422a48[_0x26935(0x22be)]][_0x26935(0x1899)]>0x0&&(_0x4e90ca[_0x26935(0x1b32)][_0x422a48[_0x26935(0x22be)]]['loggedInDb']-=0x1,delete _0x4e90ca[_0x26935(0x1b32)][_0x422a48['OpenchannelQueueId']][_0x26935(0x23c0)][_0x422a48[_0x26935(0xea2)]]);}let _0x191c83=!![],_0x567fff=0x1;_0x512f69[_0x4dc908(0x21e8)](_0x4dc908(0x2669),function(_0x2561b5,_0x358f17){const _0x16f469=_0x4dc908;_0x191c83?_0x46360a(function(){_0x191c83=![];}):(!_0x358f17&&(_0x567fff=_0x4e90ca[_0x16f469(0x1a56)][_0x16f469(0x844)]),_0x2561b5!==_0x358f17&&(_0x4e90ca[_0x16f469(0x1a56)][_0x16f469(0x844)]=0x1),!_0x2561b5&&(_0x4e90ca['query']['page']=_0x567fff),_0x4e90ca['getQueues']());});function _0x33b009(_0x2ef6eb){const _0x6716da=_0x4dc908;_0x4e90ca[_0x6716da(0x51c)]=_0x2ef6eb[_0x6716da(0x51c)],_0x4e90ca[_0x6716da(0x1b32)]=_0x2ef6eb?_0x3f65c0()['keyBy'](_0x2ef6eb[_0x6716da(0x19c7)]?_0x2ef6eb['rows']:[],'id'):{};if(_0x2ef6eb[_0x6716da(0x19c7)]){_0x4e90ca[_0x6716da(0x206e)]=[];for(let _0x4c27f1=0x0;_0x4c27f1<_0x2ef6eb[_0x6716da(0x19c7)][_0x6716da(0x402)];_0x4c27f1++){_0x4e90ca[_0x6716da(0x206e)][_0x6716da(0x1f47)](_0x2ef6eb['rows'][_0x4c27f1]['id']);}}_0xcfd130();}function _0x37c3ac(){const _0x216d7c=_0x4dc908;_0x4e90ca[_0x216d7c(0x1a56)][_0x216d7c(0x145d)]=(_0x4e90ca['query'][_0x216d7c(0x844)]-0x1)*_0x4e90ca[_0x216d7c(0x1a56)]['limit'],_0x5db4eb[_0x216d7c(0x23e0)]('admin')?_0x4e90ca[_0x216d7c(0xb9c)]=_0xc7b8f3[_0x216d7c(0x2755)][_0x216d7c(0x16b4)](_0x4e90ca[_0x216d7c(0x1a56)],_0x33b009)[_0x216d7c(0x2945)]:(_0x4e90ca[_0x216d7c(0x1a56)]['id']=_0x4e90ca['userProfile']['id'],_0x4e90ca[_0x216d7c(0x1a56)][_0x216d7c(0x2146)]=_0x216d7c(0x8d8),_0x4e90ca[_0x216d7c(0xb9c)]=_0xc7b8f3[_0x216d7c(0x26b6)][_0x216d7c(0x158f)](_0x4e90ca[_0x216d7c(0x1a56)],_0x33b009)[_0x216d7c(0x2945)]);}function _0x2fbad3(_0x258da8,_0x27e9cc){const _0x23feba=_0x4dc908;_0x561483['show']({'controller':'CreateOrEditOpenchannelQueueDialogController','controllerAs':'vm','templateUrl':_0x25f87f,'parent':angular[_0x23feba(0x1853)](_0xd19ce7['body']),'targetEvent':_0x258da8,'clickOutsideToClose':!![],'locals':{'openchannelQueue':_0x27e9cc,'openchannelQueues':_0x3f65c0()[_0x23feba(0x81b)](_0x4e90ca[_0x23feba(0x1b32)]),'license':null,'setting':null,'crudPermissions':_0x4e90ca[_0x23feba(0x2514)]}});}function _0x3954b6(_0x5bf414,_0x5cb74a){const _0x40037a=_0x4dc908;_0x561483[_0x40037a(0x2615)]({'controller':_0x40037a(0x19af),'controllerAs':'vm','templateUrl':_0x5531ae,'parent':angular[_0x40037a(0x1853)](_0xd19ce7[_0x40037a(0x2586)]),'targetEvent':_0x5bf414,'clickOutsideToClose':!![],'locals':{'openchannelQueue':_0x5cb74a,'openchannelQueues':_0x4e90ca[_0x40037a(0x1b32)]?_0x4e90ca['queues'][_0x40037a(0x19c7)]:[],'realtime':![],'crudPermissions':_0x4e90ca['crudPermissions']}});}function _0x19c4fd(_0x10a051){const _0x41b84c=_0x4dc908;return _0xc7b8f3['openchannelQueue'][_0x41b84c(0x18e1)](_0x10a051)[_0x41b84c(0x2945)][_0x41b84c(0x146b)](function(){const _0x1fd273=_0x41b84c;_0x3ee798[_0x1fd273(0x1c75)]({'title':_0x1fd273(0x5f1),'msg':_0x10a051[_0x1fd273(0x19eb)]?_0x10a051[_0x1fd273(0x19eb)]+_0x1fd273(0x6b0):''});})[_0x41b84c(0x129e)](function(_0x28fb9c){const _0x2252da=_0x41b84c;_0x3ee798[_0x2252da(0x1980)]({'title':_0x2252da(0x2174),'msg':_0x28fb9c[_0x2252da(0x7fd)]});});}_0x512f69[_0x4dc908(0x16ad)](_0x4dc908(0x116f),function(){const _0x84b482=_0x4dc908;_0x709e4e['removeAllListeners'](_0x84b482(0x1d9d)),_0x709e4e[_0x84b482(0x1c5f)](_0x84b482(0x594)),_0x709e4e[_0x84b482(0x1c5f)](_0x84b482(0x27e)),_0x709e4e[_0x84b482(0x1c5f)](_0x84b482(0x324)),_0x709e4e[_0x84b482(0x1c5f)](_0x84b482(0x1d3e)),_0x709e4e[_0x84b482(0x1c5f)](_0x84b482(0x109d));});}const _0x40a119=_0x133999;;function _0x3c92f1(){const _0x13c0ac=_0x313a4d;return{'status':{'registered':_0x13c0ac(0xdf4),'unregistered':_0x13c0ac(0x4c7),'lagged':_0x13c0ac(0x4c7),'reachable':_0x13c0ac(0xdf4),'unreachable':_0x13c0ac(0x4c7),'unknown':_0x13c0ac(0xc4b)},'state':{'unknown':'grey-fg\x20icon-phone-hangup','not_inuse':'green-300-fg\x20icon-phone-hangup','inuse':_0x13c0ac(0x255c),'busy':_0x13c0ac(0xb3c),'invalid':_0x13c0ac(0x1fd7),'unavailable':_0x13c0ac(0x1fd7),'ringing':_0x13c0ac(0x1172),'ringinuse':_0x13c0ac(0x1172),'onhold':_0x13c0ac(0x119f)},'channelStatus':{'ring':_0x13c0ac(0x1172),'up':_0x13c0ac(0x1668),'hangup':'red-300-fg\x20icon-phone-hangup'},'channelStatusOut':{'ring':'blue-300-fg\x20icon-phone-outgoing','up':'green-300-fg\x20icon-phone-in-talk','hangup':_0x13c0ac(0x135d)}};}const _0x495a24=_0x3c92f1;;_0x286eff[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1862),'socket'];function _0x286eff(_0xf9b8dd,_0x5223fc,_0x98d237){const _0x313fa0=_0x313a4d,_0x24f4d6=this;_0x98d237[_0x313fa0(0x194a)](),_0x98d237[_0x313fa0(0x2e3)](),_0x24f4d6[_0x313fa0(0x1b09)]=0x0;switch(_0x5223fc['current'][_0x313fa0(0x19eb)]){case _0x313fa0(0x2da):_0x24f4d6[_0x313fa0(0x1b09)]=0x0;break;case _0x313fa0(0x2f8):_0x24f4d6['selectedTab']=0x1;break;default:_0x24f4d6[_0x313fa0(0x1b09)]=0x0,_0x5223fc['go'](_0x313fa0(0x2da));}_0xf9b8dd[_0x313fa0(0x21e8)]('vm.selectedTab',function(_0x289aeb,_0xb38e49){const _0x482f7a=_0x313fa0;if(_0x289aeb!==_0xb38e49)switch(_0x289aeb){case 0x0:_0x5223fc['go'](_0x482f7a(0x2da));break;case 0x1:_0x5223fc['go'](_0x482f7a(0x2f8));break;default:_0x5223fc['go']('app.openchannel.realtime.agents');}});}const _0x3d4ecd=_0x286eff;;_0x5243b8[_0x313a4d(0x11c2)]=['$stateProvider'];function _0x5243b8(_0x224f78){const _0xbd3013=_0x313a4d;_0x224f78['state']('app.openchannel.realtime',{'url':_0xbd3013(0x178b),'views':{'content@app':{'templateUrl':_0x42fe12,'controller':_0xbd3013(0x24f)}},'resolve':{'userProfile':[_0xbd3013(0x362),_0xbd3013(0xa87),function(_0x4c673e,_0x4b8ac2){const _0x5aea22=_0xbd3013;return _0x4b8ac2[_0x5aea22(0x23e0)](_0x5aea22(0x174b))?null:_0x4c673e[_0x5aea22(0x2922)](_0x5aea22(0x119a),{'fields':'id,name,crudPermissions','id':_0x4b8ac2['getCurrentUser']()[_0x5aea22(0x209a)]});}],'userProfileSection':['apiResolver',_0xbd3013(0xa87),function(_0xb84531,_0x2c0f84){const _0x48eb52=_0xbd3013;return _0x2c0f84[_0x48eb52(0x23e0)](_0x48eb52(0x174b))?null:_0xb84531[_0x48eb52(0x2922)](_0x48eb52(0x27be),{'fields':_0x48eb52(0x1e64),'userProfileId':_0x2c0f84[_0x48eb52(0xb12)]()[_0x48eb52(0x209a)],'sectionId':0x32a});}]},'authenticate':!![],'permissionId':0x32a})[_0xbd3013(0x13d6)](_0xbd3013(0x2da),{'url':_0xbd3013(0x1507),'controller':_0xbd3013(0x1e4b),'templateUrl':_0x4c4b41,'resolve':{'pauses':[_0xbd3013(0x362),function(_0x3ad314){const _0x16e123=_0xbd3013;return _0x3ad314[_0x16e123(0x2922)](_0x16e123(0x3f6),{'nolimit':!![]});}],'agents':[_0xbd3013(0x362),_0xbd3013(0xa87),function(_0x3ba19a,_0x357989){const _0x382001=_0xbd3013;return _0x357989[_0x382001(0x23e0)]('admin')?_0x3ba19a[_0x382001(0x2922)](_0x382001(0x2484),{'fields':_0x382001(0x2869),'role':_0x382001(0x1755),'sort':_0x382001(0x286a),'nolimit':!![]}):_0x3ba19a['resolve']('userProfile@getResources',{'id':_0x357989[_0x382001(0xb12)]()[_0x382001(0x209a)],'section':'Agents','fields':_0x382001(0x2869),'role':_0x382001(0x1755),'sort':'fullname','nolimit':!![]});}],'userProfile':[_0xbd3013(0x362),_0xbd3013(0xa87),function(_0x2a976e,_0x3e7e1e){const _0x3d3951=_0xbd3013;return _0x3e7e1e[_0x3d3951(0x23e0)](_0x3d3951(0x174b))?null:_0x2a976e['resolve'](_0x3d3951(0x119a),{'fields':_0x3d3951(0x227),'id':_0x3e7e1e[_0x3d3951(0xb12)]()[_0x3d3951(0x209a)]});}],'userProfileSection':['apiResolver',_0xbd3013(0xa87),function(_0x48cf80,_0x582d96){const _0x5ad9b1=_0xbd3013;return _0x582d96[_0x5ad9b1(0x23e0)]('admin')?null:_0x48cf80[_0x5ad9b1(0x2922)](_0x5ad9b1(0x27be),{'fields':_0x5ad9b1(0x1e64),'userProfileId':_0x582d96['getCurrentUser']()[_0x5ad9b1(0x209a)],'sectionId':0xca});}],'rpcAgents':[_0xbd3013(0x362),function(_0x1de9e7){const _0x2576df=_0xbd3013;return _0x1de9e7[_0x2576df(0x2922)](_0x2576df(0x19ab));}]},'authenticate':!![],'permissionId':0x32a})['state']('app.openchannel.realtime.queues',{'url':_0xbd3013(0xf15),'controller':_0xbd3013(0x1091),'templateUrl':_0x19d720,'resolve':{'queues':[_0xbd3013(0x362),'Auth',function(_0x4ce9eb,_0x3b0e0f){const _0x3a8893=_0xbd3013;return _0x3b0e0f['hasRole'](_0x3a8893(0x174b))?_0x4ce9eb['resolve'](_0x3a8893(0x385),{'type':_0x3a8893(0x7b0),'sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x4ce9eb['resolve'](_0x3a8893(0x938),{'id':_0x3b0e0f[_0x3a8893(0xb12)]()[_0x3a8893(0x209a)],'section':_0x3a8893(0x8d8),'channel':'openchannel','type':_0x3a8893(0x7b0),'sort':_0x3a8893(0x12f2),'limit':0xa,'page':0x1});}],'userProfile':[_0xbd3013(0x362),_0xbd3013(0xa87),function(_0x2c0e86,_0x37222e){const _0x31fb36=_0xbd3013;return _0x37222e[_0x31fb36(0x23e0)]('admin')?null:_0x2c0e86[_0x31fb36(0x2922)](_0x31fb36(0x119a),{'fields':_0x31fb36(0x227),'id':_0x37222e[_0x31fb36(0xb12)]()[_0x31fb36(0x209a)]});}],'userProfileSection':[_0xbd3013(0x362),_0xbd3013(0xa87),function(_0x8d2009,_0x59175f){const _0x12ac80=_0xbd3013;return _0x59175f[_0x12ac80(0x23e0)](_0x12ac80(0x174b))?null:_0x8d2009[_0x12ac80(0x2922)](_0x12ac80(0x27be),{'fields':_0x12ac80(0x1e64),'userProfileId':_0x59175f[_0x12ac80(0xb12)]()[_0x12ac80(0x209a)],'sectionId':0x321});}],'rpcQueues':[_0xbd3013(0x362),function(_0xa9cbe0){const _0x18f33f=_0xbd3013;return _0xa9cbe0[_0x18f33f(0x2922)](_0x18f33f(0x1bd4));}]},'authenticate':!![],'permissionId':0x32a});}angular[_0x313a4d(0x2528)]('app.openchannel.realtime',[])['config'](_0x5243b8)[_0x313a4d(0x28f0)](_0x313a4d(0x19f4),_0x345284)['controller']('QueuesOpenchannelRealtimeController',_0x40a119)[_0x313a4d(0x1750)](_0x313a4d(0x1ac0),_0x495a24)[_0x313a4d(0x28f0)](_0x313a4d(0xf91),_0x3d4ecd);;const _0x154e0c=_0x4acfac['p']+_0x313a4d(0xed);;const _0x408671=_0x4acfac['p']+_0x313a4d(0xbeb);;const _0x5bf622=_0x4acfac['p']+_0x313a4d(0x68c);;const _0x200e72=_0x4acfac['p']+'src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/view.html/view.html';;_0x341a09['$inject']=[_0x313a4d(0x910),'$state',_0x313a4d(0xd08),_0x313a4d(0x10e8),'$q',_0x313a4d(0x214b),'toasty',_0x313a4d(0x1690),'openchannelAccount',_0x313a4d(0x247f),'Auth',_0x313a4d(0x2690),_0x313a4d(0x15b9),_0x313a4d(0x2514)];function _0x341a09(_0x4d0b84,_0x78d870,_0x4db412,_0x2c7fcf,_0x4482be,_0x18f741,_0x491e31,_0xf2c64c,_0x522d86,_0x3fdb9b,_0x2babed,_0x404504,_0x392a0e,_0x246eac){const _0x504fa=_0x313a4d,_0x134c78=this;_0x134c78[_0x504fa(0x2321)]=_0x2babed[_0x504fa(0xb12)](),_0x134c78['errors']=[],_0x134c78['setting']=_0x392a0e,_0x134c78[_0x504fa(0x2690)]=_0x404504,_0x134c78[_0x504fa(0x2514)]=_0x246eac,_0x134c78['hasModulePermissions']={},_0x134c78[_0x504fa(0x2251)]=_0x134c78[_0x504fa(0x15b9)]&&_0x134c78[_0x504fa(0x15b9)][_0x504fa(0x976)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x134c78[_0x504fa(0x1189)]=_0x504fa(0x1d65),_0x134c78[_0x504fa(0xbd7)]=angular[_0x504fa(0x235a)](_0x522d86),_0x134c78['openchannelAccounts']=_0xf2c64c,_0x134c78[_0x504fa(0x44e)]=![];!_0x134c78[_0x504fa(0xbd7)]&&(_0x134c78[_0x504fa(0xbd7)]={'waitForTheAssignedAgent':0xa,'notificationSound':!![],'queueTransferTimeout':0x12c,'agentTransferTimeout':0x12c},_0x134c78['title']=_0x504fa(0x6d6),_0x134c78[_0x504fa(0x44e)]=!![]);_0x78d870['params']['id']&&(_0x134c78['openchannelAccount'][_0x504fa(0x534)]=_0x78d870[_0x504fa(0x16a)]['id']);_0x134c78['addNewOpenchannelAccount']=_0x2ce249,_0x134c78['saveOpenchannelAccount']=_0x2e8b85,_0x134c78[_0x504fa(0xa68)]=_0x5f2e06,_0x134c78['getDateFromString']=_0x3e50a5,_0x134c78[_0x504fa(0x13f3)]=_0x141aaa,_0x2babed['hasRole'](_0x504fa(0x174b))?_0x3fdb9b[_0x504fa(0xf03)][_0x504fa(0x16b4)]({'fields':_0x504fa(0x7a7),'sort':_0x504fa(0x19eb)})[_0x504fa(0x2945)][_0x504fa(0x146b)](function(_0x109995){const _0x35e939=_0x504fa;_0x134c78['lists']=_0x109995[_0x35e939(0x19c7)]||[];})[_0x504fa(0x129e)](function(_0x176260){const _0x5249e0=_0x504fa;_0x491e31[_0x5249e0(0x1980)]({'title':_0x176260[_0x5249e0(0x107b)]?'API:'+_0x176260['status']+_0x5249e0(0x1315)+_0x176260['statusText']:_0x5249e0(0x11b3),'msg':_0x176260[_0x5249e0(0x524)]?JSON[_0x5249e0(0x10bb)](_0x176260[_0x5249e0(0x524)]):_0x176260[_0x5249e0(0xd5f)]()});}):_0x3fdb9b['cmList'][_0x504fa(0x16b4)]({'fields':_0x504fa(0x7a7),'sort':_0x504fa(0x19eb)})['$promise']['then'](function(_0x5a029b){const _0x39f08f=_0x504fa;_0x134c78[_0x39f08f(0x1324)]=_0x5a029b[_0x39f08f(0x19c7)]||[];})[_0x504fa(0x146b)](function(){const _0x3afbba=_0x504fa;return _0x3fdb9b['userProfileSection']['get']({'userProfileId':_0x134c78[_0x3afbba(0x2321)]['userProfileId'],'sectionId':0x12d})[_0x3afbba(0x2945)];})[_0x504fa(0x146b)](function(_0x43dedb){const _0x54e6ac=_0x504fa,_0x5419e7=_0x43dedb&&_0x43dedb[_0x54e6ac(0x19c7)]?_0x43dedb[_0x54e6ac(0x19c7)][0x0]:null;if(!_0x5419e7){const _0xbf1554=[];let _0x3a78b0=null;_0x134c78[_0x54e6ac(0xbd7)]&&(_0x3a78b0=_0x3f65c0()[_0x54e6ac(0xc84)](_0x134c78[_0x54e6ac(0x1324)],{'id':Number(_0x134c78[_0x54e6ac(0xbd7)][_0x54e6ac(0xb7c)])}));for(let _0x45ade6=0x0;_0x45ade6<_0x134c78['lists']['length'];_0x45ade6++){_0x3a78b0&&_0x134c78[_0x54e6ac(0x1324)][_0x45ade6]['id']===_0x3a78b0['id']&&(_0x134c78['lists'][_0x45ade6][_0x54e6ac(0x8ff)]=![],_0xbf1554[_0x54e6ac(0x1f47)](_0x134c78[_0x54e6ac(0x1324)][_0x45ade6]));}_0x134c78['lists']=_0xbf1554;}else{if(!_0x5419e7[_0x54e6ac(0x11d2)])return _0x3fdb9b[_0x54e6ac(0xdcc)][_0x54e6ac(0x16b4)]({'sectionId':_0x5419e7['id']})[_0x54e6ac(0x2945)]['then'](function(_0x2dfdc6){const _0x4d14a9=_0x54e6ac,_0x6935f5=_0x3f65c0()[_0x4d14a9(0x205)](_0x2dfdc6[_0x4d14a9(0x19c7)],function(_0x549290){const _0x58dc0f=_0x4d14a9;return _0x3f65c0()[_0x58dc0f(0xc84)](_0x134c78[_0x58dc0f(0x1324)],{'id':_0x549290['resourceId']});});let _0x9c29a8=null;_0x134c78['openchannelAccount']&&(_0x9c29a8=_0x3f65c0()[_0x4d14a9(0xc84)](_0x134c78[_0x4d14a9(0x1324)],{'id':Number(_0x134c78[_0x4d14a9(0xbd7)][_0x4d14a9(0xb7c)])}));if(_0x9c29a8&&!_0x3f65c0()[_0x4d14a9(0x1360)](_0x6935f5,['id',_0x9c29a8['id']])){const _0xc9fb1e=_0x3f65c0()['find'](_0x134c78[_0x4d14a9(0x1324)],{'id':_0x9c29a8['id']});_0xc9fb1e[_0x4d14a9(0x8ff)]=![],_0x6935f5[_0x4d14a9(0x1f47)](_0xc9fb1e);}_0x134c78[_0x4d14a9(0x1324)]=_0x6935f5;});}})[_0x504fa(0x129e)](function(_0x22df6d){const _0x2caafc=_0x504fa;_0x491e31['error']({'title':_0x22df6d[_0x2caafc(0x107b)]?'API:'+_0x22df6d[_0x2caafc(0x107b)]+_0x2caafc(0x1315)+_0x22df6d[_0x2caafc(0x167f)]:_0x2caafc(0x1a2f),'msg':_0x22df6d['data']?JSON[_0x2caafc(0x10bb)](_0x22df6d[_0x2caafc(0x524)]):_0x22df6d['toString']()});});function _0x2ce249(){const _0x362142=_0x504fa;_0x134c78[_0x362142(0xcef)]=[],_0x3fdb9b[_0x362142(0xbd7)][_0x362142(0x1e3)](_0x134c78[_0x362142(0xbd7)])[_0x362142(0x2945)][_0x362142(0x146b)](function(_0x2a3051){const _0x1cd070=_0x362142;_0x134c78[_0x1cd070(0x1690)][_0x1cd070(0xb3d)](_0x2a3051[_0x1cd070(0x2488)]()),_0x491e31[_0x1cd070(0x1c75)]({'title':_0x1cd070(0x165c),'msg':_0x134c78[_0x1cd070(0xbd7)][_0x1cd070(0x19eb)]?_0x134c78[_0x1cd070(0xbd7)][_0x1cd070(0x19eb)]+'\x20has\x20been\x20created!':''}),_0x141aaa(_0x2a3051);})[_0x362142(0x129e)](function(_0x104bd4){const _0x58e6ff=_0x362142;if(_0x104bd4[_0x58e6ff(0x524)]&&_0x104bd4[_0x58e6ff(0x524)][_0x58e6ff(0xcef)]&&_0x104bd4['data'][_0x58e6ff(0xcef)]['length']){_0x134c78[_0x58e6ff(0xcef)]=_0x104bd4[_0x58e6ff(0x524)][_0x58e6ff(0xcef)]||[{'message':_0x104bd4['toString'](),'type':'api.openchannelAccount.save'}];for(let _0x56c4de=0x0;_0x56c4de<_0x104bd4[_0x58e6ff(0x524)]['errors'][_0x58e6ff(0x402)];_0x56c4de+=0x1){_0x491e31[_0x58e6ff(0x1980)]({'title':_0x104bd4[_0x58e6ff(0x524)][_0x58e6ff(0xcef)][_0x56c4de][_0x58e6ff(0x1142)],'msg':_0x104bd4[_0x58e6ff(0x524)][_0x58e6ff(0xcef)][_0x56c4de][_0x58e6ff(0x7fd)]});}}else _0x491e31['error']({'title':_0x104bd4[_0x58e6ff(0x107b)]?_0x58e6ff(0x262a)+_0x104bd4[_0x58e6ff(0x107b)]+_0x58e6ff(0x1315)+_0x104bd4[_0x58e6ff(0x167f)]:_0x58e6ff(0x2157),'msg':_0x104bd4[_0x58e6ff(0x524)]?JSON[_0x58e6ff(0x10bb)](_0x104bd4['data'][_0x58e6ff(0x7fd)]):_0x104bd4[_0x58e6ff(0xd5f)]()});});}function _0x2e8b85(){const _0x23c7f9=_0x504fa;_0x134c78[_0x23c7f9(0xcef)]=[],_0x3fdb9b[_0x23c7f9(0xbd7)][_0x23c7f9(0x18e1)]({'id':_0x134c78[_0x23c7f9(0xbd7)]['id']},_0x134c78['openchannelAccount'])[_0x23c7f9(0x2945)]['then'](function(_0x598455){const _0x35329a=_0x23c7f9,_0x921a25=_0x3f65c0()[_0x35329a(0xc84)](_0x134c78[_0x35329a(0x1690)],{'id':_0x598455['id']});_0x921a25&&_0x3f65c0()[_0x35329a(0x168d)](_0x921a25,_0x3f65c0()[_0x35329a(0x40e)](_0x598455[_0x35329a(0x2488)](),_0x3f65c0()[_0x35329a(0x627)](_0x921a25))),_0x491e31[_0x35329a(0x1c75)]({'title':_0x35329a(0x33a),'msg':_0x134c78['openchannelAccount'][_0x35329a(0x19eb)]?_0x134c78['openchannelAccount']['name']+_0x35329a(0x24db):''}),_0x141aaa(_0x598455);})[_0x23c7f9(0x129e)](function(_0x4b763d){const _0x4bd655=_0x23c7f9;if(_0x4b763d[_0x4bd655(0x524)]&&_0x4b763d[_0x4bd655(0x524)]['errors']&&_0x4b763d[_0x4bd655(0x524)][_0x4bd655(0xcef)][_0x4bd655(0x402)]){_0x134c78['errors']=_0x4b763d[_0x4bd655(0x524)][_0x4bd655(0xcef)]||[{'message':_0x4b763d[_0x4bd655(0xd5f)](),'type':_0x4bd655(0x15b8)}];for(let _0xa82207=0x0;_0xa82207<_0x4b763d[_0x4bd655(0x524)][_0x4bd655(0xcef)][_0x4bd655(0x402)];_0xa82207++){_0x491e31[_0x4bd655(0x1980)]({'title':_0x4b763d['data']['errors'][_0xa82207][_0x4bd655(0x1142)],'msg':_0x4b763d['data'][_0x4bd655(0xcef)][_0xa82207]['message']});}}else _0x491e31[_0x4bd655(0x1980)]({'title':_0x4b763d[_0x4bd655(0x107b)]?_0x4bd655(0x262a)+_0x4b763d[_0x4bd655(0x107b)]+_0x4bd655(0x1315)+_0x4b763d[_0x4bd655(0x167f)]:_0x4bd655(0x15b8),'msg':_0x4b763d[_0x4bd655(0x524)]?JSON['stringify'](_0x4b763d['data'][_0x4bd655(0x7fd)]):_0x4b763d[_0x4bd655(0xd5f)]()});});}function _0x5f2e06(_0x3913cd){const _0x129744=_0x504fa;_0x134c78[_0x129744(0xcef)]=[];const _0x28f7e4=_0x2c7fcf[_0x129744(0x1e8a)]()[_0x129744(0x1189)](_0x129744(0x1d64))[_0x129744(0x80f)](_0x129744(0x22ec))[_0x129744(0x4bd)]('Delete\x20OpenchannelAccount')['ok'](_0x129744(0x25de))[_0x129744(0x6c3)](_0x129744(0xcf0))[_0x129744(0x1f27)](_0x3913cd);_0x2c7fcf['show'](_0x28f7e4)[_0x129744(0x146b)](function(){const _0x526e88=_0x129744;_0x3fdb9b[_0x526e88(0xbd7)]['delete']({'id':_0x134c78['openchannelAccount']['id']})['$promise'][_0x526e88(0x146b)](function(){const _0x464713=_0x526e88;_0x3f65c0()[_0x464713(0x2640)](_0x134c78[_0x464713(0x1690)],{'id':_0x134c78[_0x464713(0xbd7)]['id']}),_0x491e31[_0x464713(0x1c75)]({'title':'OpenchannelAccount\x20properly\x20deleted!','msg':(_0x134c78['openchannelAccount'][_0x464713(0x19eb)]||_0x464713(0xbd7))+'\x20has\x20been\x20deleted!'}),_0x141aaa(_0x134c78[_0x464713(0xbd7)]);})[_0x526e88(0x129e)](function(_0x9dba85){const _0x313043=_0x526e88;if(_0x9dba85[_0x313043(0x524)]&&_0x9dba85[_0x313043(0x524)][_0x313043(0xcef)]&&_0x9dba85[_0x313043(0x524)][_0x313043(0xcef)]['length']){_0x134c78[_0x313043(0xcef)]=_0x9dba85[_0x313043(0x524)]['errors']||[{'message':_0x9dba85[_0x313043(0xd5f)](),'type':_0x313043(0x26a3)}];for(let _0x2b651f=0x0;_0x2b651f<_0x9dba85['data'][_0x313043(0xcef)]['length'];_0x2b651f++){_0x491e31['error']({'title':_0x9dba85[_0x313043(0x524)][_0x313043(0xcef)][_0x2b651f][_0x313043(0x1142)],'msg':_0x9dba85[_0x313043(0x524)]['errors'][_0x2b651f]['message']});}}else _0x491e31['error']({'title':_0x9dba85[_0x313043(0x107b)]?'API:'+_0x9dba85[_0x313043(0x107b)]+'\x20-\x20'+_0x9dba85[_0x313043(0x167f)]:_0x313043(0x26a3),'msg':_0x9dba85[_0x313043(0x524)]?JSON[_0x313043(0x10bb)](_0x9dba85[_0x313043(0x524)][_0x313043(0x7fd)]):_0x9dba85[_0x313043(0x7fd)]||_0x9dba85['toString']()});});},function(){});}function _0x3e50a5(_0x14cbbf){return _0x14cbbf===null?undefined:new Date(_0x14cbbf);}function _0x141aaa(_0xfd15b1){const _0x5aa200=_0x504fa;_0x2c7fcf[_0x5aa200(0x2458)](_0xfd15b1);}}const _0x23bde7=_0x341a09;;const _0x45b077=_0x4acfac['p']+'src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/agent/dialog.html/dialog.html';;const _0x18ab5a=_0x4acfac['p']+_0x313a4d(0x1bea);;const _0x9962b5=_0x4acfac['p']+'src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/close/dialog.html/dialog.html';;const _0x64e06=_0x4acfac['p']+_0x313a4d(0xf72);;const _0x3174c0=_0x4acfac['p']+_0x313a4d(0x22dd);;const _0x8035fa=_0x4acfac['p']+_0x313a4d(0xc0b);;const _0x480a44=_0x4acfac['p']+_0x313a4d(0x11ec);;const _0x2f8c25=_0x4acfac['p']+'src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/queue/dialog.html/dialog.html';;const _0x31dbc0=_0x4acfac['p']+'src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/system/dialog.html/dialog.html';;const _0x466ac1=_0x4acfac['p']+_0x313a4d(0x2716);;_0x4849e3[_0x313a4d(0x11c2)]=[_0x313a4d(0x247f),_0x313a4d(0x10e8),_0x313a4d(0x4d8),_0x313a4d(0x1fe4),_0x313a4d(0xa87)];const _0x413dba={'agent':_0x45b077,'autoreply':_0x18ab5a,'close':_0x9962b5,'gotoif':_0x64e06,'gotop':_0x3174c0,'interval':_0x8035fa,'noop':_0x480a44,'queue':_0x2f8c25,'system':_0x31dbc0,'tag':_0x466ac1};function _0x4849e3(_0xefd62,_0x5baf8b,_0x491091,_0x37c925,_0x35dea9){const _0x45ad38=_0x313a4d,_0x4acd25=this;_0x4acd25[_0x45ad38(0x2321)]=_0x35dea9['getCurrentUser'](),_0x4acd25[_0x45ad38(0xbd7)]={},_0x4acd25['openchannelAccountApps']={'count':0x0,'rows':[]},_0x4acd25['selectedOpenchannelAccountApps']=[],_0x4acd25['crudPermissions'],_0x4acd25[_0x45ad38(0x1a56)]={'sort':'priority'},_0x4acd25[_0x45ad38(0x8b0)]=_0x3f65c0()['reject'](_0x3f65c0()[_0x45ad38(0x939)]([{'app':_0x45ad38(0xeaa),'appType':_0x45ad38(0xeaa),'type':_0x45ad38(0xeaa),'icon':_0x45ad38(0x1205),'interval':_0x45ad38(0x1559),'isApp':!![],'fields':[{'title':_0x45ad38(0x16b7),'name':_0x45ad38(0x2293),'type':_0x45ad38(0xa8d),'required':!![],'param':0x0},{'title':_0x45ad38(0x90b),'name':_0x45ad38(0x90b),'type':'select','defaultValue':_0x45ad38(0x2383),'values':[{'option':_0x45ad38(0x3d5),'value':_0x45ad38(0x17c9)},{'option':'English','value':'\x27en\x27'},{'option':'German','value':_0x45ad38(0x1491)},{'option':_0x45ad38(0x98f),'value':_0x45ad38(0x9f9)},{'option':_0x45ad38(0xae7),'value':_0x45ad38(0x2374)},{'option':_0x45ad38(0x12ea),'value':_0x45ad38(0xbe9)},{'option':_0x45ad38(0x12f),'value':'\x27id\x27'},{'option':_0x45ad38(0xf90),'value':_0x45ad38(0x27d7)},{'option':_0x45ad38(0x11cd),'value':'\x27ko\x27'},{'option':_0x45ad38(0x1d32),'value':'\x27nl\x27'},{'option':'Norwegian','value':_0x45ad38(0x74f)},{'option':'Portuguese\x20(European)','value':'\x27pt\x27'},{'option':_0x45ad38(0x1e34),'value':_0x45ad38(0x1505)},{'option':_0x45ad38(0x25d4),'value':_0x45ad38(0x18d0)},{'option':_0x45ad38(0x2081),'value':_0x45ad38(0x1717)},{'option':_0x45ad38(0x1449),'value':_0x45ad38(0x136c)},{'option':_0x45ad38(0x13bf),'value':_0x45ad38(0x289e)},{'option':_0x45ad38(0x8d3),'value':_0x45ad38(0x16cc)},{'option':_0x45ad38(0x1f35),'value':'\x27zh-HK\x27'},{'option':_0x45ad38(0x1cde),'value':_0x45ad38(0x1ca7)}],'required':!![],'param':0x1},{'title':_0x45ad38(0xaf3),'name':_0x45ad38(0xaf3),'type':'textarea','maxlength':0xff,'required':![],'param':0x2,'help':!![]}]},{'app':_0x45ad38(0x9bb),'appType':_0x45ad38(0xa46),'type':'dialogflowv2','icon':_0x45ad38(0x1205),'interval':_0x45ad38(0x1559),'isApp':!![],'fields':[{'title':_0x45ad38(0x1bdb),'name':_0x45ad38(0x153a),'type':'text','required':!![],'param':0x0},{'title':_0x45ad38(0x4ff),'name':_0x45ad38(0x1392),'type':_0x45ad38(0xa8d),'required':!![],'param':0x1},{'title':_0x45ad38(0x1590),'name':'privateKey','type':_0x45ad38(0x2350),'required':!![],'param':0x2},{'title':_0x45ad38(0x90b),'name':_0x45ad38(0x90b),'type':_0x45ad38(0xa5f),'defaultValue':_0x45ad38(0x2383),'values':[{'value':_0x45ad38(0x1a86),'option':_0x45ad38(0x196f)},{'value':_0x45ad38(0x16cc),'option':'Chinese\x20(Simplified)'},{'value':_0x45ad38(0x1ca7),'option':_0x45ad38(0x1cde)},{'value':_0x45ad38(0x17c9),'option':'Danish'},{'value':_0x45ad38(0x7ae),'option':_0x45ad38(0x1d32)},{'value':_0x45ad38(0x2383),'option':_0x45ad38(0x1ce8)},{'value':_0x45ad38(0x17ee),'option':_0x45ad38(0x24ea)},{'value':_0x45ad38(0x3a0),'option':_0x45ad38(0x425)},{'value':'\x27en-GB\x27','option':_0x45ad38(0x3c9)},{'value':_0x45ad38(0x2171),'option':_0x45ad38(0x688)},{'value':'\x27en-US\x27','option':_0x45ad38(0x4e8)},{'value':_0x45ad38(0xbe9),'option':'French'},{'value':'\x27fr-CA\x27','option':_0x45ad38(0x3e1)},{'value':_0x45ad38(0x1906),'option':_0x45ad38(0x1c51)},{'value':_0x45ad38(0x1491),'option':_0x45ad38(0x592)},{'value':_0x45ad38(0x16b3),'option':_0x45ad38(0x28c1)},{'value':_0x45ad38(0x27ee),'option':'Indonesian'},{'value':_0x45ad38(0x9f9),'option':'Italian'},{'value':_0x45ad38(0x27d7),'option':_0x45ad38(0xf90)},{'value':'\x27ko\x27','option':_0x45ad38(0x1dc)},{'value':_0x45ad38(0x74f),'option':_0x45ad38(0xcb4)},{'value':'\x27pl\x27','option':_0x45ad38(0xe06)},{'value':'\x27pt-BR\x27','option':_0x45ad38(0x1aaf)},{'value':_0x45ad38(0xe6d),'option':_0x45ad38(0x1d1)},{'value':_0x45ad38(0x18d0),'option':'Russian'},{'value':_0x45ad38(0x2374),'option':'Spanish'},{'value':'\x27es-419\x27','option':_0x45ad38(0x12c9)},{'value':'\x27es-ES\x27','option':_0x45ad38(0x13ad)},{'value':_0x45ad38(0x752),'option':_0x45ad38(0x2081)},{'value':'\x27th\x27','option':'Thai'},{'value':_0x45ad38(0x5a6),'option':_0x45ad38(0x15a8)},{'value':'\x27uk\x27','option':_0x45ad38(0x13bf)}],'required':!![],'param':0x3},{'title':_0x45ad38(0xaf3),'name':_0x45ad38(0xaf3),'type':'textarea','maxlength':0xff,'param':0x4,'help':!![]}]},{'app':_0x45ad38(0x17d6),'appType':'amazonlex','type':_0x45ad38(0x17d6),'icon':_0x45ad38(0x1205),'interval':'*,*,*,*','isApp':!![],'fields':[{'title':_0x45ad38(0x1651),'name':_0x45ad38(0x1651),'type':_0x45ad38(0xa8d),'required':!![],'param':0x0},{'title':_0x45ad38(0x252),'name':_0x45ad38(0x252),'type':'text','required':!![],'param':0x1},{'title':'lexregion','name':'lexregion','type':'select','defaultValue':_0x45ad38(0x2947),'values':[{'option':_0x45ad38(0x18e2),'value':_0x45ad38(0x2947)},{'option':_0x45ad38(0x1ff5),'value':_0x45ad38(0x22fd)},{'option':'EU\x20(Ireland)','value':_0x45ad38(0x2940)},{'option':_0x45ad38(0x13d9),'value':_0x45ad38(0x304)}],'required':!![],'param':0x2},{'title':_0x45ad38(0x8dd),'name':_0x45ad38(0x8dd),'type':_0x45ad38(0xa8d),'required':!![],'param':0x3},{'title':_0x45ad38(0xaf3),'name':_0x45ad38(0xaf3),'type':_0x45ad38(0x2350),'maxlength':0xff,'required':![],'param':0x4,'help':!![]}]},{'app':_0x45ad38(0x1b4e),'appType':'interval','types':[_0x45ad38(0xd85),_0x45ad38(0x1802),_0x45ad38(0x25f4)],'fields':[],'isApp':![]},{'app':_0x45ad38(0x309),'appType':_0x45ad38(0x309),'type':_0x45ad38(0x309),'icon':_0x45ad38(0x1205),'interval':'*,*,*,*','required':!![],'isApp':!![],'fields':[{'title':_0x45ad38(0x2193),'name':_0x45ad38(0x175d),'type':'text','param':0x0}]},{'app':'system','appType':_0x45ad38(0x1d47),'type':_0x45ad38(0x1d47),'icon':'icon-apps','interval':_0x45ad38(0x1559),'required':!![],'isApp':!![],'extraApi':[{'name':_0x45ad38(0x85b),'field':{'name':_0x45ad38(0x212),'key':_0x45ad38(0x19eb)},'route':'variable','filters':{'fields':_0x45ad38(0x7a7),'sort':_0x45ad38(0x19eb),'nolimit':!![]},'permissions':{'section':0x3f4}}],'fields':[{'title':_0x45ad38(0x1d8b),'name':'command','type':_0x45ad38(0xa8d),'required':!![],'param':0x0},{'title':_0x45ad38(0x182),'name':_0x45ad38(0x212),'type':_0x45ad38(0x28c6),'values':_0x45ad38(0x85b),'value':_0x45ad38(0x1566),'option':_0x45ad38(0x1566),'defaultValues':[{'value':'\x27\x27','option':_0x45ad38(0x13dd)}],'defaultValue':'\x27\x27','param':0x1}]},{'app':_0x45ad38(0x28f4),'appType':_0x45ad38(0x28f4),'type':_0x45ad38(0x151b),'icon':_0x45ad38(0x1205),'interval':'*,*,*,*','isApp':!![],'fields':[{'title':_0x45ad38(0x23d8),'name':_0x45ad38(0xa6a),'type':'number','required':!![],'min':0x0,'param':0x0}]},{'app':_0x45ad38(0x609),'appType':_0x45ad38(0x609),'type':_0x45ad38(0x609),'icon':_0x45ad38(0x1205),'interval':_0x45ad38(0x1559),'isApp':!![],'fields':[{'title':_0x45ad38(0x15db),'name':_0x45ad38(0x115f),'type':_0x45ad38(0xa8d),'required':!![],'param':0x0},{'title':_0x45ad38(0x1d78),'name':'truepriority','type':_0x45ad38(0x181),'min':0x1,'required':!![],'param':0x1},{'title':_0x45ad38(0x28e1),'name':_0x45ad38(0x28e1),'type':_0x45ad38(0x181),'min':0x1,'required':!![],'param':0x2}]},{'app':_0x45ad38(0x1c72),'appType':_0x45ad38(0x1c72),'foreignKey':_0x45ad38(0x22be),'type':_0x45ad38(0x1c72),'icon':_0x45ad38(0x1205),'interval':'*,*,*,*','isApp':!![],'extraApi':[{'name':_0x45ad38(0x1b32),'field':{'name':_0x45ad38(0x1c72),'key':'name'},'route':_0x45ad38(0x2755),'filters':{'fields':_0x45ad38(0x45e),'sort':_0x45ad38(0x19eb),'nolimit':!![]},'permissions':{'section':0x321}}],'fields':[{'title':'Queue','name':'queue','type':_0x45ad38(0x28c6),'values':_0x45ad38(0x1b32),'value':_0x45ad38(0x15b0),'option':_0x45ad38(0x15b0),'defaultValue':0x12c,'required':!![],'param':0x0},{'title':_0x45ad38(0x5cc),'name':'timeout','type':_0x45ad38(0x181),'max':0x20c49b,'min':0x0,'defaultValue':0x12c,'required':!![],'param':0x1}]},{'app':_0x45ad38(0x1755),'appType':_0x45ad38(0x1755),'type':_0x45ad38(0x1755),'foreignKey':_0x45ad38(0xea2),'icon':_0x45ad38(0x1205),'interval':_0x45ad38(0x1559),'isApp':!![],'extraApi':[{'name':'agents','field':{'name':_0x45ad38(0x1755),'key':'name'},'route':_0x45ad38(0xe7b),'filters':{'fields':_0x45ad38(0x7a7),'sort':_0x45ad38(0x19eb),'role':_0x45ad38(0x1755),'nolimit':!![]},'permissions':{'section':0xca}}],'fields':[{'title':_0x45ad38(0x294a),'name':_0x45ad38(0x1755),'type':_0x45ad38(0x28c6),'values':_0x45ad38(0x23c0),'value':_0x45ad38(0x264f),'option':'agent.name','required':!![],'param':0x0},{'title':_0x45ad38(0x5cc),'name':_0x45ad38(0xa9c),'type':_0x45ad38(0x181),'max':0x20c49b,'min':0x0,'required':!![],'defaultValue':0x1e,'param':0x1}]},{'app':_0x45ad38(0x1713),'appType':_0x45ad38(0x1713),'type':_0x45ad38(0x1713),'icon':_0x45ad38(0x1205),'interval':'*,*,*,*','isApp':!![],'fields':[{'title':_0x45ad38(0x583),'name':'times','type':'select','defaultValue':'1','values':[{'option':_0x45ad38(0x1d98),'value':'1'},{'option':_0x45ad38(0x132f),'value':'0'}],'required':!![],'param':0x0},{'title':_0x45ad38(0x23d7),'name':_0x45ad38(0xa8d),'type':_0x45ad38(0x2350),'required':!![],'param':0x1}]},{'app':'close','appType':_0x45ad38(0xa7c),'type':_0x45ad38(0xa7c),'icon':_0x45ad38(0x1205),'interval':_0x45ad38(0x1559),'isApp':!![],'fields':[{'title':_0x45ad38(0x673),'name':_0x45ad38(0x9e1),'type':_0x45ad38(0xa8d),'required':!![],'param':0x0}]},{'app':_0x45ad38(0xa80),'appType':'tag','type':_0x45ad38(0xa80),'foreignKey':_0x45ad38(0xb0a),'icon':_0x45ad38(0x1205),'interval':_0x45ad38(0x1559),'isApp':!![],'extraApi':[{'name':_0x45ad38(0x1b86),'field':{'name':_0x45ad38(0xa80),'key':_0x45ad38(0x19eb)},'route':_0x45ad38(0xa80),'filters':{'fields':_0x45ad38(0x7a7),'sort':_0x45ad38(0x19eb),'nolimit':!![]},'permissions':{'section':0x3f0}}],'fields':[{'title':_0x45ad38(0x23a8),'name':'tag','type':'apiselect','values':'tags','value':_0x45ad38(0x1a96),'option':_0x45ad38(0x1a96),'required':!![],'param':0x0}]}],[_0x45ad38(0x1873)]),{'isApp':![]}),_0x4acd25[_0x45ad38(0x25f4)]={'group':{'name':_0x45ad38(0x156c),'pull':_0x45ad38(0x12cc)},'animation':0x64,'sort':![]},_0x4acd25['applications']={'group':{'name':_0x45ad38(0x916),'put':'opt1'},'animation':0x64,'onAdd':function(_0x2d8a00){const _0x37e171=_0x45ad38;_0x505735(_0x2d8a00,_0x2d8a00[_0x37e171(0x154d)]);},'onSort':function(){_0x36b1db();}},_0x4acd25[_0x45ad38(0x5aa)]=_0x437873,_0x4acd25[_0x45ad38(0x19b4)]=_0x51e21a,_0x4acd25[_0x45ad38(0x264d)]=_0x370c24,_0x4acd25[_0x45ad38(0x119e)]=_0x505735,_0x4acd25[_0x45ad38(0x285b)]=_0x554de8,_0x4acd25[_0x45ad38(0x1b87)]=_0x509ba8,_0x4acd25[_0x45ad38(0x2305)]=_0xfba871,_0x4acd25[_0x45ad38(0x1450)]=_0x36b1db,_0x4acd25[_0x45ad38(0x1c1c)]=_0x2748c3;function _0x437873(_0x151bab,_0x575750){const _0x52c50f=_0x45ad38;_0x4acd25[_0x52c50f(0xbd7)]=_0x151bab,_0x4acd25['crudPermissions']=typeof _0x575750!=='undefined'?_0x575750:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x4acd25['applications']['disabled']=!_0x4acd25[_0x52c50f(0x2514)]['canEdit']?!![]:![],_0x4acd25[_0x52c50f(0x1a56)]['id']=_0x151bab['id'],_0x4acd25['query'][_0x52c50f(0x16f6)]=!![],_0x4acd25['query'][_0x52c50f(0x6c5)]=!![],_0x4acd25[_0x52c50f(0x264d)](),_0x4acd25[_0x52c50f(0x1c1c)]();}function _0x51e21a(_0x11386e,_0x54ffcd,_0xad29f3){const _0x5196d8=_0x45ad38,_0x1cba38=_0x5baf8b[_0x5196d8(0x1e8a)]()[_0x5196d8(0x1189)](_0x5196d8(0x1058))[_0x5196d8(0x1cbe)](_0x5196d8(0x16d3)+_0x11386e[_0x5196d8(0x1873)]+''+_0x5196d8(0xe01))[_0x5196d8(0x4bd)](_0x5196d8(0x847))[_0x5196d8(0x1f27)](_0xad29f3)['ok']('OK')[_0x5196d8(0x6c3)](_0x5196d8(0x39a));_0x5baf8b[_0x5196d8(0x2615)](_0x1cba38)['then'](function(){const _0x239542=_0x5196d8;_0x4acd25['openchannelAccountApps'][_0x239542(0x19c7)]['splice'](_0x54ffcd,0x1),_0x36b1db();},function(){const _0x3ef75c=_0x5196d8;console[_0x3ef75c(0x1a74)](_0x3ef75c(0x39a));});}function _0x505735(_0xc5c574,_0xbf5a32){const _0x4aac76=_0x45ad38;if(_0x4acd25[_0x4aac76(0x1e09)][_0x4aac76(0x19c7)][_0x4aac76(0x402)]){const _0x1b0139=_0x4acd25[_0x4aac76(0x1e09)]['rows'][_0xbf5a32]?_0x4acd25['openchannelAccountApps'][_0x4aac76(0x19c7)][_0xbf5a32]:_0x4acd25[_0x4aac76(0x1e09)]['rows'][0x0],_0x401518=(_0x1b0139[_0x4aac76(0x8f2)]||_0x1b0139[_0x4aac76(0x1873)])[_0x4aac76(0x256e)]();_0x5baf8b['show']({'controller':'EditOpenchannelAccountApp'+_0x401518+_0x4aac76(0x76a),'controllerAs':'vm','templateUrl':_0x413dba[_0x401518],'parent':angular[_0x4aac76(0x1853)](_0x491091[_0x4aac76(0x2586)]),'targetEvent':_0xc5c574,'clickOutsideToClose':!![],'locals':{'openchannelAccountApp':_0x1b0139,'openchannelAccount':_0x4acd25['openchannelAccount'],'crudPermissions':_0x4acd25[_0x4aac76(0x2514)]}})['then'](function(_0x5685e7){const _0x3ad2be=_0x4aac76;_0x5685e7&&(_0x5685e7['id']?_0x4acd25[_0x3ad2be(0x1e09)][_0x3ad2be(0x19c7)][_0xbf5a32]=_0x5685e7:_0x4acd25[_0x3ad2be(0x1e09)][_0x3ad2be(0x19c7)][_0x3ad2be(0x1f7d)](_0xbf5a32,0x0,_0x5685e7),_0x36b1db());})[_0x4aac76(0x129e)](function(_0x34e25d){const _0xb9cd3f=_0x4aac76;_0x34e25d&&_0x37c925[_0xb9cd3f(0x1980)]({'title':_0x34e25d[_0xb9cd3f(0x107b)]?_0xb9cd3f(0x262a)+_0x34e25d[_0xb9cd3f(0x107b)]+_0xb9cd3f(0x1315)+_0x34e25d[_0xb9cd3f(0x167f)]:_0xb9cd3f(0x10a0),'msg':_0x34e25d[_0xb9cd3f(0x524)]?JSON[_0xb9cd3f(0x10bb)](_0x34e25d[_0xb9cd3f(0x524)]):_0x34e25d[_0xb9cd3f(0xd5f)]()});});}}function _0x554de8(_0x311a51,_0xd85dfa){const _0x1f9557=_0x45ad38;if(_0x4acd25[_0x1f9557(0x1e09)][_0x1f9557(0x19c7)][_0x1f9557(0x402)]){const _0x3b7ddf=_0x4acd25['openchannelAccountApps'][_0x1f9557(0x19c7)][_0xd85dfa]?_0x4acd25['openchannelAccountApps'][_0x1f9557(0x19c7)][_0xd85dfa]:_0x4acd25['openchannelAccountApps'][_0x1f9557(0x19c7)][0x0];_0x5baf8b[_0x1f9557(0x2615)]({'controller':_0x1f9557(0x4ac),'controllerAs':'vm','templateUrl':_0x8035fa,'parent':angular['element'](_0x491091['body']),'targetEvent':_0x311a51,'clickOutsideToClose':!![],'locals':{'interval':{'interval':_0x3b7ddf[_0x1f9557(0x2765)],'IntervalId':_0x3b7ddf[_0x1f9557(0x1ff2)],'application':!![]},'intervals':[],'crudPermissions':_0x4acd25[_0x1f9557(0x2514)]}})['then'](function(_0x5a2c14){const _0x3eda3b=_0x1f9557;_0x5a2c14&&(_0x3b7ddf[_0x3eda3b(0x2765)]=_0x5a2c14[_0x3eda3b(0x2765)]||_0x3eda3b(0x1559),_0x3b7ddf['IntervalId']=_0x5a2c14[_0x3eda3b(0x1ff2)]||null,_0x36b1db());});}}function _0x36b1db(){const _0x34699c=_0x45ad38;let _0x1499e3=0x1,_0x12c6f1=[];for(let _0x52e13e=0x0;_0x52e13e<_0x4acd25[_0x34699c(0x1e09)][_0x34699c(0x19c7)][_0x34699c(0x402)];_0x52e13e++){const _0x4ce2a0=_0x4acd25[_0x34699c(0x1e09)][_0x34699c(0x19c7)][_0x52e13e],_0x3573ce=[],_0x2f0cb2=[];_0x4ce2a0[_0x34699c(0x278f)]=_0x4ce2a0[_0x34699c(0x2765)]!==_0x34699c(0x1559)?[_0x4ce2a0[_0x34699c(0x2765)]]:_0x4ce2a0[_0x34699c(0x1ff2)]?_0x3f65c0()[_0x34699c(0x205)](_0x3f65c0()[_0x34699c(0x1dd6)](_0x4acd25[_0x34699c(0x278f)]['rows'],{'IntervalId':_0x4ce2a0['IntervalId']}),'interval'):[],_0x4ce2a0[_0x34699c(0x1ac1)]=_0x4acd25[_0x34699c(0xbd7)][_0x34699c(0x1ac1)],_0x4ce2a0[_0x34699c(0x19b2)]=_0x4acd25[_0x34699c(0xbd7)][_0x34699c(0x19b2)],_0x4ce2a0['type']&&(_0x4ce2a0[_0x34699c(0x1142)]=_0x4ce2a0[_0x34699c(0x1142)][_0x34699c(0x256e)]()),_0x4ce2a0[_0x34699c(0xa6a)]=_0x3573ce[_0x34699c(0x402)]?_0x3f65c0()[_0x34699c(0x22f2)](_0x3573ce)[_0x34699c(0xa6a)]+0x1:_0x1499e3,_0x1499e3=(_0x2f0cb2['length']?_0x3f65c0()[_0x34699c(0x22f2)](_0x2f0cb2)[_0x34699c(0xa6a)]:_0x4ce2a0[_0x34699c(0xa6a)])+0x1,_0x12c6f1=_0x3f65c0()[_0x34699c(0x163c)](_0x12c6f1,_0x3573ce,[_0x4ce2a0],_0x2f0cb2);}_0xefd62[_0x34699c(0xbd7)][_0x34699c(0x1711)]({'id':_0x4acd25[_0x34699c(0xbd7)]['id']},_0x3f65c0()[_0x34699c(0x939)](_0x12c6f1,_0x34699c(0xa6a)))[_0x34699c(0x2945)][_0x34699c(0x146b)](function(_0x5e5725){const _0x42d38f=_0x34699c;_0x4acd25['openchannelAccountApps']['rows']=_0x5e5725[_0x42d38f(0x19c7)];})[_0x34699c(0x129e)](function(_0x594367){const _0x49724f=_0x34699c;console[_0x49724f(0x1980)](_0x594367);});}function _0x5986e2(_0x479fd6){const _0x49cf13=_0x45ad38;_0x4acd25[_0x49cf13(0x1e09)]=_0x479fd6||{'count':0x0,'rows':[]};}function _0x2748c3(){const _0x35cd4d=_0x45ad38;return _0xefd62['interval'][_0x35cd4d(0x16b4)]({'fields':'id,interval,IntervalId'})[_0x35cd4d(0x2945)][_0x35cd4d(0x146b)](function(_0x2733e7){const _0x331f89=_0x35cd4d;_0x4acd25[_0x331f89(0x278f)]=_0x2733e7;})[_0x35cd4d(0x129e)](function(_0x3ef75e){const _0x4c5b45=_0x35cd4d;console[_0x4c5b45(0x1980)](_0x3ef75e);});}function _0x370c24(){const _0x308a8a=_0x45ad38;_0x4acd25[_0x308a8a(0xb9c)]=_0xefd62[_0x308a8a(0xbd7)][_0x308a8a(0x261b)](_0x4acd25['query'],_0x5986e2)[_0x308a8a(0x2945)];}function _0x509ba8(_0x364538){const _0x9b98de=_0x45ad38;_0x3f65c0()[_0x9b98de(0x2640)](_0x4acd25['openchannelAccountApps'][_0x9b98de(0x19c7)],{'id':_0x364538['id']}),_0x36b1db(),_0x37c925[_0x9b98de(0x1c75)]({'title':_0x9b98de(0x1c3a),'msg':_0x364538[_0x9b98de(0x1873)]?_0x364538[_0x9b98de(0x1873)]+'\x20has\x20been\x20deleted!':''});}function _0xfba871(_0xc352ba){const _0x328310=_0x45ad38,_0x32fcd9=_0x5baf8b['confirm']()[_0x328310(0x1189)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20applications?')[_0x328310(0x1cbe)](_0x328310(0x16d3)+_0x4acd25[_0x328310(0x1e67)][_0x328310(0x402)]+_0x328310(0x2452)+'\x20will\x20be\x20deleted.')[_0x328310(0x4bd)](_0x328310(0x2674))[_0x328310(0x1f27)](_0xc352ba)['ok']('OK')[_0x328310(0x6c3)](_0x328310(0x39a));_0x5baf8b['show'](_0x32fcd9)[_0x328310(0x146b)](function(){const _0x4f1166=_0x328310;_0x4acd25[_0x4f1166(0x1e67)]['forEach'](function(_0x5e5bbf){const _0x349c01=_0x4f1166;_0x3f65c0()[_0x349c01(0x2640)](_0x4acd25[_0x349c01(0x1e09)][_0x349c01(0x19c7)],{'id':_0x5e5bbf['id']});}),_0x4acd25[_0x4f1166(0x1e67)]=[],_0x36b1db();});}}const _0x4e1374=_0x4849e3;;_0xb1f28c[_0x313a4d(0x11c2)]=[_0x313a4d(0x10e8),'$q',_0x313a4d(0x1fe4),_0x313a4d(0x247f),_0x313a4d(0xbd7),_0x313a4d(0x1690),_0x313a4d(0xfc4),_0x313a4d(0x214b),_0x313a4d(0xa87),'crudPermissions'];function _0xb1f28c(_0x5880fc,_0x1f949c,_0x585a84,_0x2e93e0,_0x449e30,_0x2fab6a,_0x5e42fd,_0x4b8f42,_0x2334fd,_0x25e1b8){const _0x506fe4=_0x313a4d,_0x194b59=this;_0x194b59[_0x506fe4(0x2321)]=_0x2334fd[_0x506fe4(0xb12)](),_0x194b59[_0x506fe4(0xbd7)]=_0x449e30,_0x194b59[_0x506fe4(0x2514)]=_0x25e1b8,_0x194b59[_0x506fe4(0xfc4)]=_0x5e42fd,_0x194b59[_0x506fe4(0x1fd6)]=[],_0x194b59['allowedItems']=[],_0x194b59[_0x506fe4(0x1ecf)]=[],_0x194b59[_0x506fe4(0x2e8)]=[],_0x194b59[_0x506fe4(0xa65)]=[],_0x194b59[_0x506fe4(0x132)]=![],_0x194b59['onInit']=_0x4f79fb,_0x194b59[_0x506fe4(0x14c2)]=_0x2a7b93,_0x194b59[_0x506fe4(0x13f3)]=_0x46dd4c,_0x194b59[_0x506fe4(0x1f8a)]={'readOnly':!_0x194b59[_0x506fe4(0x2514)][_0x506fe4(0x15f4)],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x506fe4(0x19eb),'line1':_0x506fe4(0x286a),'line2':[_0x506fe4(0x19eb),_0x506fe4(0x113f)],'line3':'','labelAll':_0x4b8f42[_0x506fe4(0xde)](_0x506fe4(0x2050)),'labelSelected':_0x4b8f42[_0x506fe4(0xde)]('APP.SELECTED_AGENTS'),'transferCallback':function(){const _0x2513eb=_0x506fe4,_0x108cb3=_0x3f65c0()['xorBy'](_0x194b59[_0x2513eb(0xa65)],_0x194b59[_0x2513eb(0x1ecf)],'id');_0x194b59[_0x2513eb(0x132)]=_0x3f65c0()[_0x2513eb(0x2635)](_0x108cb3)?![]:!![];}};function _0x4f79fb(){const _0x40c797=_0x506fe4;return _0x2334fd[_0x40c797(0x23e0)](_0x40c797(0x174b))?_0x1a94ff()['catch'](function(_0x257281){const _0xc3e88a=_0x40c797;_0x585a84['error']({'title':_0x257281[_0xc3e88a(0x107b)]?_0xc3e88a(0x262a)+_0x257281[_0xc3e88a(0x107b)]+'\x20-\x20'+_0x257281[_0xc3e88a(0x167f)]:'SYSTEM:GET_AGENTS','msg':_0x257281[_0xc3e88a(0x107b)]?JSON[_0xc3e88a(0x10bb)](_0x257281[_0xc3e88a(0x524)]):_0x257281[_0xc3e88a(0xd5f)]()});}):_0xd25e98()['then'](function(_0x132ab5){return _0x194b59['section']=_0x132ab5,_0x1a94ff();})['catch'](function(_0x258c3f){const _0x1bae8a=_0x40c797;_0x585a84[_0x1bae8a(0x1980)]({'title':_0x258c3f[_0x1bae8a(0x107b)]?_0x1bae8a(0x262a)+_0x258c3f[_0x1bae8a(0x107b)]+'\x20-\x20'+_0x258c3f[_0x1bae8a(0x167f)]:_0x1bae8a(0x557),'msg':_0x258c3f['status']?JSON[_0x1bae8a(0x10bb)](_0x258c3f[_0x1bae8a(0x524)]):_0x258c3f[_0x1bae8a(0xd5f)]()});});}function _0xd25e98(){return _0x1f949c(function(_0x2e17e0,_0x319eeb){const _0x325363=a0_0x3bb9;_0x2e93e0[_0x325363(0x1366)]['get']({'userProfileId':_0x194b59[_0x325363(0x2321)]['userProfileId'],'name':_0x325363(0xca8)})[_0x325363(0x2945)]['then'](function(_0x1e6f0c){const _0x39c571=_0x325363,_0x4938c5=_0x1e6f0c&&_0x1e6f0c[_0x39c571(0x19c7)]?_0x1e6f0c[_0x39c571(0x19c7)][0x0]:null;_0x2e17e0(_0x4938c5);})[_0x325363(0x129e)](function(_0x3edd8c){_0x319eeb(_0x3edd8c);});});}function _0x1a94ff(){return _0x1f949c(function(_0x3e079b,_0x5c2840){const _0xe9949f=a0_0x3bb9;return _0x528992()['then'](function(_0x4f3092){const _0x1a2329=a0_0x3bb9;return _0x194b59[_0x1a2329(0x1fd6)]=_0x4f3092[_0x1a2329(0x19c7)]?_0x4f3092['rows']:[],_0x2334fd['hasRole'](_0x1a2329(0x174b))?_0x4f3092:_0x194b59[_0x1a2329(0x2146)]?_0x194b59[_0x1a2329(0x2146)][_0x1a2329(0x11d2)]?_0x4f3092:_0x46590d():null;})[_0xe9949f(0x146b)](function(_0xb5d49b){const _0x1a54ae=_0xe9949f,_0x40f99f=_0xb5d49b&&_0xb5d49b[_0x1a54ae(0x19c7)]?_0xb5d49b[_0x1a54ae(0x19c7)]:[];return _0x194b59[_0x1a54ae(0xc4e)]=_0x3f65c0()[_0x1a54ae(0x205)](_0x40f99f,function(_0x35134c){const _0x211245=_0x1a54ae;return _0x3f65c0()[_0x211245(0xc84)](_0x194b59[_0x211245(0x1fd6)],{'id':_0x2334fd[_0x211245(0x23e0)]('admin')||_0x194b59[_0x211245(0x2146)]['autoAssociation']?_0x35134c['id']:_0x35134c[_0x211245(0x18b8)]});}),_0x194b59[_0x1a54ae(0x2e8)]=angular['copy'](_0x194b59[_0x1a54ae(0xc4e)]),_0x194b59['items'][_0x1a54ae(0x1df5)](function(_0x4ff394){const _0xfdb4e7=_0x1a54ae,_0x1565e6=_0x3f65c0()[_0xfdb4e7(0xc84)](_0x194b59[_0xfdb4e7(0xc4e)],{'id':_0x4ff394['id']});_0x2334fd[_0xfdb4e7(0x23e0)]('admin')?_0x4ff394[_0xfdb4e7(0x146f)]=!![]:_0x4ff394[_0xfdb4e7(0x146f)]=typeof _0x1565e6!=='undefined'?!![]:![];}),_0x33b26d();})[_0xe9949f(0x146b)](function(_0x543124){const _0x20e063=_0xe9949f,_0x31dfb0=_0x543124&&_0x543124[_0x20e063(0x19c7)]?_0x543124[_0x20e063(0x19c7)]:[];_0x194b59[_0x20e063(0x1ecf)]=_0x3f65c0()['map'](_0x31dfb0,function(_0xcf9ee6){const _0xfa5d03=_0x20e063,_0x31b6c8=_0x3f65c0()['find'](_0x194b59[_0xfa5d03(0x1fd6)],{'id':_0xcf9ee6['id']});return _0x31b6c8['penalty']=_0xcf9ee6[_0xfa5d03(0xef4)]?_0xfa5d03(0x2505)+_0xcf9ee6['UserOpenchannelAccount'][_0xfa5d03(0x188d)]:'',_0x31b6c8[_0xfa5d03(0x113f)]=typeof _0xcf9ee6[_0xfa5d03(0x113f)]!=='undefined'?'<'+_0xcf9ee6[_0xfa5d03(0x113f)]+'>':'',_0x31b6c8;}),_0x194b59[_0x20e063(0xa65)]=angular[_0x20e063(0x235a)](_0x194b59[_0x20e063(0x1ecf)]),_0x194b59[_0x20e063(0x1f8a)][_0x20e063(0x1ecf)]=_0x194b59[_0x20e063(0x1ecf)],_0x194b59[_0x20e063(0x1f8a)][_0x20e063(0x1fd6)]=_0x3f65c0()[_0x20e063(0x2796)](_0x194b59[_0x20e063(0xc4e)],_0x194b59[_0x20e063(0x1f8a)][_0x20e063(0x1ecf)],'id'),_0x3e079b();})['catch'](function(_0x560ff8){_0x5c2840(_0x560ff8);});});}function _0x46590d(){return _0x1f949c(function(_0x3924a6,_0x4273bb){const _0x5a923e=a0_0x3bb9;return _0x2e93e0[_0x5a923e(0xdcc)][_0x5a923e(0x16b4)]({'sectionId':_0x194b59[_0x5a923e(0x2146)]['id'],'nolimit':!![]})[_0x5a923e(0x2945)][_0x5a923e(0x146b)](function(_0x249a61){_0x3924a6(_0x249a61);})[_0x5a923e(0x129e)](function(_0xbdfbce){_0x4273bb(_0xbdfbce);});});}function _0x33b26d(){return _0x1f949c(function(_0x2ce21d,_0x404ef7){const _0x4e5fd0=a0_0x3bb9;return _0x2e93e0[_0x4e5fd0(0xbd7)][_0x4e5fd0(0x333)]({'id':_0x194b59[_0x4e5fd0(0xbd7)]['id'],'fields':_0x4e5fd0(0x1569),'nolimit':!![],'role':_0x4e5fd0(0x1755)})[_0x4e5fd0(0x2945)][_0x4e5fd0(0x146b)](function(_0x3dd303){_0x2ce21d(_0x3dd303);})[_0x4e5fd0(0x129e)](function(_0x2e3b93){_0x404ef7(_0x2e3b93);});});}function _0x528992(){return _0x1f949c(function(_0x138cd8,_0xd02119){const _0x5519ec=a0_0x3bb9;return _0x2e93e0['user'][_0x5519ec(0x16b4)]({'fields':_0x5519ec(0x1569),'nolimit':!![],'role':_0x5519ec(0x1755)})[_0x5519ec(0x2945)]['then'](function(_0x58135f){_0x138cd8(_0x58135f);})[_0x5519ec(0x129e)](function(_0x6c773f){_0xd02119(_0x6c773f);});});}function _0x5598d1(_0x5a1036){return _0x1f949c(function(_0x1f1bf2,_0x3b4da5){const _0x41e809=a0_0x3bb9;_0x3f65c0()[_0x41e809(0x2635)](_0x5a1036)?_0x1f1bf2():_0x2e93e0[_0x41e809(0xbd7)][_0x41e809(0x135e)]({'id':_0x194b59[_0x41e809(0xbd7)]['id'],'ids':_0x3f65c0()[_0x41e809(0x205)](_0x5a1036,'id')})[_0x41e809(0x2945)][_0x41e809(0x146b)](function(){_0x1f1bf2();})[_0x41e809(0x129e)](function(_0x1aa7d7){_0x3b4da5(_0x1aa7d7);});});}function _0x2830bc(_0x54c179){return _0x1f949c(function(_0x54d8b7,_0x5aef1b){const _0x285734=a0_0x3bb9;_0x3f65c0()[_0x285734(0x2635)](_0x54c179)?_0x54d8b7():_0x2e93e0[_0x285734(0xbd7)][_0x285734(0x1f53)]({'id':_0x194b59[_0x285734(0xbd7)]['id'],'ids':_0x3f65c0()[_0x285734(0x205)](_0x54c179,'id')})[_0x285734(0x2945)][_0x285734(0x146b)](function(){_0x54d8b7();})[_0x285734(0x129e)](function(_0x2c09e7){_0x5aef1b(_0x2c09e7);});});}function _0x2a7b93(){const _0x2a6519=_0x506fe4,_0x56d27c=_0x3f65c0()[_0x2a6519(0x2796)](_0x194b59[_0x2a6519(0xa65)],_0x194b59['selectedItems'],'id'),_0x11ac77=_0x3f65c0()[_0x2a6519(0x2796)](_0x194b59[_0x2a6519(0x1ecf)],_0x194b59[_0x2a6519(0xa65)],'id');return _0x2830bc(_0x56d27c)[_0x2a6519(0x146b)](function(){return _0x5598d1(_0x11ac77);})[_0x2a6519(0x146b)](function(){const _0x26f1c3=_0x2a6519;_0x194b59[_0x26f1c3(0x132)]=![],_0x194b59['startingAllowedItems']=angular[_0x26f1c3(0x235a)](_0x194b59[_0x26f1c3(0xc4e)]),_0x194b59[_0x26f1c3(0xa65)]=angular[_0x26f1c3(0x235a)](_0x194b59[_0x26f1c3(0x1ecf)]),_0x585a84[_0x26f1c3(0x1c75)]({'title':_0x26f1c3(0x4c0),'msg':_0x26f1c3(0x26be)});})[_0x2a6519(0x129e)](function(_0x43d7d2){const _0x2dc9cc=_0x2a6519;_0x585a84[_0x2dc9cc(0x1980)]({'title':_0x43d7d2['status']?_0x2dc9cc(0x262a)+_0x43d7d2[_0x2dc9cc(0x107b)]+'\x20-\x20'+_0x43d7d2['statusText']:_0x2dc9cc(0xa56),'msg':_0x43d7d2[_0x2dc9cc(0x107b)]?JSON[_0x2dc9cc(0x10bb)](_0x43d7d2[_0x2dc9cc(0x524)]):_0x43d7d2[_0x2dc9cc(0xd5f)]()});});}function _0x46dd4c(){const _0x1a7c44=_0x506fe4;_0x5880fc[_0x1a7c44(0x2458)]();}}const _0x50a451=_0xb1f28c;;_0x408caf[_0x313a4d(0x11c2)]=[_0x313a4d(0x10e8),'$q',_0x313a4d(0x1fe4),_0x313a4d(0x2116),_0x313a4d(0xbd7),_0x313a4d(0x247f),'Auth','crudPermissions'];function _0x408caf(_0x5f0a06,_0x43784f,_0x26e586,_0x2d1515,_0x224987,_0x55c1fb,_0x537504,_0x366080){const _0x3fb1fa=_0x313a4d,_0x3a8c87=this;_0x3a8c87[_0x3fb1fa(0x2321)]=_0x537504[_0x3fb1fa(0xb12)](),_0x3a8c87[_0x3fb1fa(0xcef)]=[],_0x3a8c87[_0x3fb1fa(0x1189)]=_0x3fb1fa(0x29b)+(_0x2d1515['appType']||_0x2d1515[_0x3fb1fa(0x1873)])[_0x3fb1fa(0x1c37)](),_0x3a8c87[_0x3fb1fa(0x1755)]=angular[_0x3fb1fa(0x235a)](_0x2d1515),_0x3a8c87[_0x3fb1fa(0x2514)]=_0x366080,_0x3a8c87[_0x3fb1fa(0x855)]={};if(_0x3a8c87[_0x3fb1fa(0x1755)][_0x3fb1fa(0x168a)])switch(_0x3a8c87[_0x3fb1fa(0x1755)][_0x3fb1fa(0x8f2)]?_0x3a8c87[_0x3fb1fa(0x1755)][_0x3fb1fa(0x8f2)][_0x3fb1fa(0x256e)]():_0x3a8c87[_0x3fb1fa(0x1755)][_0x3fb1fa(0x1873)]['toLowerCase']()){case _0x3fb1fa(0x1802):break;case _0x3fb1fa(0xeaa):{const _0xfc0ded=_0x3a8c87[_0x3fb1fa(0x1755)]['appdata']['split'](',');_0x3a8c87['agent'][_0x3fb1fa(0x2293)]=_0xfc0ded[0x0],_0x3a8c87[_0x3fb1fa(0x1755)]['language']=_0xfc0ded[0x1],_0x3a8c87['agent']['welcomemessage']=_0xfc0ded[_0x3fb1fa(0x1298)](0x2,_0xfc0ded[_0x3fb1fa(0x402)])[_0x3fb1fa(0xb47)](',');}break;case _0x3fb1fa(0xa46):{const _0x547ffa=_0x3a8c87[_0x3fb1fa(0x1755)][_0x3fb1fa(0x168a)][_0x3fb1fa(0x10c8)](',');_0x3a8c87[_0x3fb1fa(0x1755)][_0x3fb1fa(0x153a)]=_0x547ffa[0x0],_0x3a8c87[_0x3fb1fa(0x1755)]['clientEmail']=_0x547ffa[0x1],_0x3a8c87[_0x3fb1fa(0x1755)][_0x3fb1fa(0x2217)]=_0x547ffa[0x2],_0x3a8c87[_0x3fb1fa(0x1755)][_0x3fb1fa(0x90b)]=_0x547ffa[0x3],_0x3a8c87[_0x3fb1fa(0x1755)][_0x3fb1fa(0xaf3)]=_0x547ffa['slice'](0x4,_0x547ffa[_0x3fb1fa(0x402)])[_0x3fb1fa(0xb47)](',');}break;case'amazonlex':{const _0xbaf0bb=_0x3a8c87[_0x3fb1fa(0x1755)][_0x3fb1fa(0x168a)][_0x3fb1fa(0x10c8)](',');_0x3a8c87[_0x3fb1fa(0x1755)]['accesskeyid']=_0xbaf0bb[0x0],_0x3a8c87[_0x3fb1fa(0x1755)][_0x3fb1fa(0x252)]=_0xbaf0bb[0x1],_0x3a8c87[_0x3fb1fa(0x1755)][_0x3fb1fa(0x1039)]=_0xbaf0bb[0x2],_0x3a8c87[_0x3fb1fa(0x1755)][_0x3fb1fa(0x8dd)]=_0xbaf0bb[0x3],_0x3a8c87[_0x3fb1fa(0x1755)][_0x3fb1fa(0xaf3)]=_0xbaf0bb[_0x3fb1fa(0x1298)](0x4,_0xbaf0bb[_0x3fb1fa(0x402)])[_0x3fb1fa(0xb47)](',');}break;case _0x3fb1fa(0x1713):{const _0x3fab31=_0x3a8c87[_0x3fb1fa(0x1755)]['appdata']['split'](',');_0x3a8c87[_0x3fb1fa(0x1755)][_0x3fb1fa(0x583)]=isNaN(_0x3fab31[0x0])?_0x3fab31[0x0]:parseInt(_0x3fab31[0x0],0xa),_0x3a8c87[_0x3fb1fa(0x1755)][_0x3fb1fa(0xa8d)]=_0x3fab31[_0x3fb1fa(0x1298)](0x1,_0x3fab31['length'])[_0x3fb1fa(0xb47)](',');}break;case'message':_0x3a8c87[_0x3fb1fa(0x1755)][_0x3fb1fa(0xa8d)]=_0x3a8c87[_0x3fb1fa(0x1755)]['appdata'];break;case'set':_0x3a8c87[_0x3fb1fa(0x1755)]['name']=_0x3a8c87['agent'][_0x3fb1fa(0x168a)]['split']('=')[0x0],_0x3a8c87[_0x3fb1fa(0x1755)][_0x3fb1fa(0x175d)]=_0x3a8c87[_0x3fb1fa(0x1755)][_0x3fb1fa(0x168a)][_0x3fb1fa(0x10c8)]('=')[0x1];break;case _0x3fb1fa(0x1ecb):_0x3a8c87[_0x3fb1fa(0x1755)]['project']=_0x3a8c87[_0x3fb1fa(0x1755)]['appdata'];break;default:{const _0x41f5b1=_0x3a8c87[_0x3fb1fa(0x1755)]['appdata'][_0x3fb1fa(0x10c8)](',');_0x3a8c87['agent'][_0x3fb1fa(0x1755)]=_0x3f65c0()[_0x3fb1fa(0x2635)](_0x41f5b1[0x0])?_0x41f5b1[0x0]:isNaN(_0x41f5b1[0x0])?_0x41f5b1[0x0]:parseInt(_0x41f5b1[0x0],0xa),_0x3a8c87[_0x3fb1fa(0x1755)]['timeout']=_0x3f65c0()[_0x3fb1fa(0x2635)](_0x41f5b1[0x1])?_0x41f5b1[0x1]:isNaN(_0x41f5b1[0x1])?_0x41f5b1[0x1]:parseInt(_0x41f5b1[0x1],0xa);}break;}else _0x3a8c87[_0x3fb1fa(0x1755)]['timeout']=0x1e;_0x3a8c87[_0x3fb1fa(0x1755)][_0x3fb1fa(0x1142)]&&_0x3a8c87['agent'][_0x3fb1fa(0x1142)][_0x3fb1fa(0x256e)]()==='outbound'&&_0x3a8c87['agent'][_0x3fb1fa(0x8f2)][_0x3fb1fa(0x256e)]()===_0x3fb1fa(0x3bb)&&(_0x3a8c87[_0x3fb1fa(0x1755)][_0x3fb1fa(0x1e12)]=_0x3a8c87[_0x3fb1fa(0x1755)][_0x3fb1fa(0x1d55)]?_0x3a8c87[_0x3fb1fa(0x1755)]['phone']['split']('$')[0x0]:undefined,_0x3a8c87['agent']['callerId']=_0x3a8c87[_0x3fb1fa(0x1755)]['callerID']?_0x3fb1fa(0x1b60)+_0x3a8c87[_0x3fb1fa(0x1755)]['callerID']:undefined);_0x3a8c87[_0x3fb1fa(0x1e69)]=_0x5b4229,_0x3a8c87[_0x3fb1fa(0x13f3)]=_0x4db910,_0x537504[_0x3fb1fa(0x23e0)](_0x3fb1fa(0x174b))?_0x55c1fb[_0x3fb1fa(0xe7b)][_0x3fb1fa(0x16b4)]({'fields':_0x3fb1fa(0x7a7),'sort':'name','role':'agent','nolimit':_0x3fb1fa(0x1185)})[_0x3fb1fa(0x2945)][_0x3fb1fa(0x146b)](function(_0x424222){_0x3a8c87['agents']=_0x424222['rows']||[];})[_0x3fb1fa(0x129e)](function(_0x5193b2){const _0x2c8e2a=_0x3fb1fa;_0x26e586['error']({'title':_0x5193b2['status']?_0x2c8e2a(0x262a)+_0x5193b2[_0x2c8e2a(0x107b)]+_0x2c8e2a(0x1315)+_0x5193b2[_0x2c8e2a(0x167f)]:'SYSTEM:GET_AGENTS','msg':_0x5193b2[_0x2c8e2a(0x524)]?JSON[_0x2c8e2a(0x10bb)](_0x5193b2[_0x2c8e2a(0x524)]):_0x5193b2['toString']()});}):_0x55c1fb[_0x3fb1fa(0xe7b)][_0x3fb1fa(0x16b4)]({'fields':_0x3fb1fa(0x7a7),'sort':'name','role':_0x3fb1fa(0x1755),'nolimit':_0x3fb1fa(0x1185)})[_0x3fb1fa(0x2945)][_0x3fb1fa(0x146b)](function(_0x1ddc87){const _0x49ee20=_0x3fb1fa;_0x3a8c87[_0x49ee20(0x23c0)]=_0x1ddc87['rows']||[];})[_0x3fb1fa(0x146b)](function(){const _0x140982=_0x3fb1fa;return _0x55c1fb[_0x140982(0x1366)][_0x140982(0x16b4)]({'userProfileId':_0x3a8c87[_0x140982(0x2321)][_0x140982(0x209a)],'sectionId':0xca})[_0x140982(0x2945)];})[_0x3fb1fa(0x146b)](function(_0x22a40d){const _0x2556e8=_0x3fb1fa,_0x2f6375=_0x22a40d&&_0x22a40d[_0x2556e8(0x19c7)]?_0x22a40d['rows'][0x0]:null;if(!_0x2f6375){const _0xf4ca60=[];let _0x7a1b0d=null;_0x3a8c87[_0x2556e8(0x1755)]&&(_0x7a1b0d=_0x3f65c0()[_0x2556e8(0xc84)](_0x3a8c87['agents'],{'name':_0x3a8c87['agent'][_0x2556e8(0x1755)]}));for(let _0x4ea69f=0x0;_0x4ea69f<_0x3a8c87['agents'][_0x2556e8(0x402)];_0x4ea69f++){_0x7a1b0d&&_0x3a8c87[_0x2556e8(0x23c0)][_0x4ea69f]['id']===_0x7a1b0d['id']&&(_0x3a8c87[_0x2556e8(0x23c0)][_0x4ea69f][_0x2556e8(0x8ff)]=![],_0xf4ca60['push'](_0x3a8c87[_0x2556e8(0x23c0)][_0x4ea69f]));}_0x3a8c87[_0x2556e8(0x23c0)]=_0xf4ca60;}else{if(!_0x2f6375['autoAssociation'])return _0x55c1fb['userProfileResource'][_0x2556e8(0x16b4)]({'sectionId':_0x2f6375['id']})['$promise'][_0x2556e8(0x146b)](function(_0xf834ca){const _0x11190c=_0x2556e8,_0x22bb6b=_0x3f65c0()[_0x11190c(0x205)](_0xf834ca['rows'],function(_0x2b9aee){const _0x3c1313=_0x11190c;return _0x3f65c0()[_0x3c1313(0xc84)](_0x3a8c87['agents'],{'id':_0x2b9aee[_0x3c1313(0x18b8)]});});let _0x436654=null;_0x3a8c87[_0x11190c(0x1755)]&&(_0x436654=_0x3f65c0()[_0x11190c(0xc84)](_0x3a8c87[_0x11190c(0x23c0)],{'name':_0x3a8c87[_0x11190c(0x1755)]['agent']}));if(_0x436654&&!_0x3f65c0()[_0x11190c(0x1360)](_0x22bb6b,['id',_0x436654['id']])){const _0x311ed3=_0x3f65c0()[_0x11190c(0xc84)](_0x3a8c87[_0x11190c(0x23c0)],{'id':_0x436654['id']});_0x311ed3[_0x11190c(0x8ff)]=![],_0x22bb6b[_0x11190c(0x1f47)](_0x311ed3);}_0x3a8c87[_0x11190c(0x23c0)]=_0x22bb6b;});}})[_0x3fb1fa(0x129e)](function(_0x5189f8){const _0x38ec74=_0x3fb1fa;_0x26e586['error']({'title':_0x5189f8[_0x38ec74(0x107b)]?_0x38ec74(0x262a)+_0x5189f8[_0x38ec74(0x107b)]+_0x38ec74(0x1315)+_0x5189f8[_0x38ec74(0x167f)]:_0x38ec74(0x788),'msg':_0x5189f8[_0x38ec74(0x524)]?JSON[_0x38ec74(0x10bb)](_0x5189f8[_0x38ec74(0x524)]):_0x5189f8[_0x38ec74(0xd5f)]()});});function _0x5b4229(){const _0x2de9be=_0x3fb1fa;_0x3a8c87[_0x2de9be(0xcef)]=[];const _0x8df64f=[];_0x3a8c87['agent'][_0x2de9be(0x1142)]&&_0x3a8c87['agent'][_0x2de9be(0x1142)]['toLowerCase']()===_0x2de9be(0xc9c)&&_0x3a8c87[_0x2de9be(0x1755)][_0x2de9be(0x8f2)]==='outboundDial'&&(_0x3a8c87[_0x2de9be(0x1755)][_0x2de9be(0x1d55)]=_0x224987[_0x2de9be(0x1274)]?(_0x3a8c87[_0x2de9be(0x1755)]['prefix']||'')+_0x2de9be(0x2147)+_0x224987['cutdigits']+'}':(_0x3a8c87[_0x2de9be(0x1755)][_0x2de9be(0x1e12)]||'')+_0x2de9be(0x20df),_0x224987['recordingFormat']!==_0x2de9be(0x1642)?_0x3a8c87[_0x2de9be(0x1755)]['options']['indexOf']('U(xcally-mixmonitor-context)')<0x0&&(_0x3a8c87[_0x2de9be(0x1755)][_0x2de9be(0xa08)]+='U(xcally-mixmonitor-context)'):_0x3a8c87[_0x2de9be(0x1755)][_0x2de9be(0xa08)]=_0x3a8c87[_0x2de9be(0x1755)]['options']['replace'](_0x2de9be(0x1ea4),''));const _0x5cd10c=_0x3f65c0()['find'](_0x3a8c87[_0x2de9be(0x23c0)],{'name':_0x3a8c87[_0x2de9be(0x1755)][_0x2de9be(0x1755)]});_0x5cd10c&&(_0x3a8c87[_0x2de9be(0x1755)][_0x2de9be(0xea2)]=_0x5cd10c['id']);if(_0x3a8c87[_0x2de9be(0x1755)][_0x2de9be(0x8f2)]&&_0x3a8c87[_0x2de9be(0x1755)][_0x2de9be(0x8f2)]===_0x2de9be(0x1802)){}else switch((_0x3a8c87['agent']['app']||_0x3a8c87['agent']['appType'])['toLowerCase']()){case'set':_0x3a8c87[_0x2de9be(0x1755)][_0x2de9be(0x168a)]=_0x3a8c87[_0x2de9be(0x1755)]['name']+'='+_0x3a8c87[_0x2de9be(0x1755)][_0x2de9be(0x175d)];break;case _0x2de9be(0x1802):break;default:_0x8df64f[0x0]=_0x3a8c87[_0x2de9be(0x1755)][_0x2de9be(0x1755)],_0x8df64f[0x1]=_0x3a8c87[_0x2de9be(0x1755)]['timeout'],_0x3a8c87[_0x2de9be(0x1755)][_0x2de9be(0x168a)]=_0x8df64f[_0x2de9be(0xb47)](',');}_0x4db910(_0x3a8c87[_0x2de9be(0x1755)]);}function _0x4db910(_0x347e2b){const _0x59074b=_0x3fb1fa;_0x5f0a06[_0x59074b(0x2458)](_0x347e2b);}}const _0x96f830=_0x408caf;;_0x532227[_0x313a4d(0x11c2)]=[_0x313a4d(0x10e8),'$q',_0x313a4d(0x1fe4),_0x313a4d(0x2116),_0x313a4d(0xbd7),'api',_0x313a4d(0xa87),_0x313a4d(0x2514)];function _0x532227(_0x34b0f7,_0x479cdd,_0x1d697e,_0x317501,_0x4768cb,_0x13a4c9,_0x30e1cb,_0x5c1fe3){const _0x256d9f=_0x313a4d,_0x57d216=this;_0x57d216['currentUser']=_0x30e1cb[_0x256d9f(0xb12)](),_0x57d216[_0x256d9f(0xcef)]=[],_0x57d216[_0x256d9f(0x1189)]=_0x256d9f(0x29b)+(_0x317501[_0x256d9f(0x8f2)]||_0x317501[_0x256d9f(0x1873)])['toUpperCase'](),_0x57d216[_0x256d9f(0x17d6)]=angular[_0x256d9f(0x235a)](_0x317501),_0x57d216[_0x256d9f(0x2514)]=_0x5c1fe3,_0x57d216[_0x256d9f(0x855)]={};if(_0x57d216[_0x256d9f(0x17d6)][_0x256d9f(0x168a)])switch(_0x57d216['amazonlex'][_0x256d9f(0x8f2)]?_0x57d216[_0x256d9f(0x17d6)][_0x256d9f(0x8f2)][_0x256d9f(0x256e)]():_0x57d216[_0x256d9f(0x17d6)][_0x256d9f(0x1873)][_0x256d9f(0x256e)]()){case _0x256d9f(0x1802):break;case'dialogflow':{const _0x492e24=_0x57d216[_0x256d9f(0x17d6)]['appdata'][_0x256d9f(0x10c8)](',');_0x57d216[_0x256d9f(0x17d6)]['key']=_0x492e24[0x0],_0x57d216[_0x256d9f(0x17d6)][_0x256d9f(0x90b)]=_0x492e24[0x1],_0x57d216[_0x256d9f(0x17d6)][_0x256d9f(0xaf3)]=_0x492e24[_0x256d9f(0x1298)](0x2,_0x492e24[_0x256d9f(0x402)])[_0x256d9f(0xb47)](',');}break;case _0x256d9f(0xa46):{const _0x36c7ab=_0x57d216['amazonlex']['appdata'][_0x256d9f(0x10c8)](',');_0x57d216[_0x256d9f(0x17d6)][_0x256d9f(0x153a)]=_0x36c7ab[0x0],_0x57d216[_0x256d9f(0x17d6)][_0x256d9f(0x1392)]=_0x36c7ab[0x1],_0x57d216['amazonlex'][_0x256d9f(0x2217)]=_0x36c7ab[0x2],_0x57d216[_0x256d9f(0x17d6)][_0x256d9f(0x90b)]=_0x36c7ab[0x3],_0x57d216[_0x256d9f(0x17d6)]['welcomemessage']=_0x36c7ab[_0x256d9f(0x1298)](0x4,_0x36c7ab[_0x256d9f(0x402)])[_0x256d9f(0xb47)](',');}break;case'amazonlex':{const _0x558178=_0x57d216[_0x256d9f(0x17d6)][_0x256d9f(0x168a)][_0x256d9f(0x10c8)](',');_0x57d216['amazonlex'][_0x256d9f(0x1651)]=_0x558178[0x0],_0x57d216['amazonlex'][_0x256d9f(0x252)]=_0x558178[0x1],_0x57d216[_0x256d9f(0x17d6)][_0x256d9f(0x1039)]=_0x558178[0x2],_0x57d216['amazonlex'][_0x256d9f(0x8dd)]=_0x558178[0x3],_0x57d216[_0x256d9f(0x17d6)][_0x256d9f(0xaf3)]=_0x558178[_0x256d9f(0x1298)](0x4,_0x558178[_0x256d9f(0x402)])[_0x256d9f(0xb47)](',');}break;case _0x256d9f(0x1713):{const _0x21a92a=_0x57d216[_0x256d9f(0x17d6)][_0x256d9f(0x168a)][_0x256d9f(0x10c8)](',');_0x57d216['amazonlex']['times']=isNaN(_0x21a92a[0x0])?_0x21a92a[0x0]:parseInt(_0x21a92a[0x0],0xa),_0x57d216[_0x256d9f(0x17d6)][_0x256d9f(0xa8d)]=_0x21a92a[_0x256d9f(0x1298)](0x1,_0x21a92a[_0x256d9f(0x402)])['join'](',');}break;case _0x256d9f(0x7fd):_0x57d216['amazonlex'][_0x256d9f(0xa8d)]=_0x57d216[_0x256d9f(0x17d6)][_0x256d9f(0x168a)];break;case _0x256d9f(0x26ba):_0x57d216[_0x256d9f(0x17d6)]['name']=_0x57d216[_0x256d9f(0x17d6)][_0x256d9f(0x168a)][_0x256d9f(0x10c8)]('=')[0x0],_0x57d216[_0x256d9f(0x17d6)][_0x256d9f(0x175d)]=_0x57d216[_0x256d9f(0x17d6)][_0x256d9f(0x168a)][_0x256d9f(0x10c8)]('=')[0x1];break;case _0x256d9f(0x1ecb):_0x57d216[_0x256d9f(0x17d6)][_0x256d9f(0x9e0)]=_0x57d216[_0x256d9f(0x17d6)][_0x256d9f(0x168a)];break;default:{const _0x2eec15=_0x57d216[_0x256d9f(0x17d6)][_0x256d9f(0x168a)][_0x256d9f(0x10c8)](',');_0x57d216[_0x256d9f(0x17d6)][_0x256d9f(0x1651)]=_0x3f65c0()[_0x256d9f(0x2635)](_0x2eec15[0x0])?_0x2eec15[0x0]:isNaN(_0x2eec15[0x0])?_0x2eec15[0x0]:parseInt(_0x2eec15[0x0],0xa),_0x57d216[_0x256d9f(0x17d6)]['secretaccesskey']=_0x3f65c0()[_0x256d9f(0x2635)](_0x2eec15[0x1])?_0x2eec15[0x1]:isNaN(_0x2eec15[0x1])?_0x2eec15[0x1]:parseInt(_0x2eec15[0x1],0xa),_0x57d216['amazonlex']['lexregion']=_0x3f65c0()['isEmpty'](_0x2eec15[0x2])?_0x2eec15[0x2]:isNaN(_0x2eec15[0x2])?_0x2eec15[0x2]:parseInt(_0x2eec15[0x2],0xa),_0x57d216['amazonlex']['botname']=_0x3f65c0()[_0x256d9f(0x2635)](_0x2eec15[0x3])?_0x2eec15[0x3]:isNaN(_0x2eec15[0x3])?_0x2eec15[0x3]:parseInt(_0x2eec15[0x3],0xa),_0x57d216[_0x256d9f(0x17d6)]['welcomemessage']=_0x3f65c0()[_0x256d9f(0x2635)](_0x2eec15[0x4])?_0x2eec15[0x4]:isNaN(_0x2eec15[0x4])?_0x2eec15[0x4]:parseInt(_0x2eec15[0x4],0xa);}break;}else _0x57d216[_0x256d9f(0x17d6)][_0x256d9f(0x1039)]=_0x256d9f(0x20a9);_0x57d216['amazonlex'][_0x256d9f(0x1142)]&&_0x57d216[_0x256d9f(0x17d6)][_0x256d9f(0x1142)][_0x256d9f(0x256e)]()==='outbound'&&_0x57d216[_0x256d9f(0x17d6)][_0x256d9f(0x8f2)][_0x256d9f(0x256e)]()==='outbounddial'&&(_0x57d216[_0x256d9f(0x17d6)][_0x256d9f(0x1e12)]=_0x57d216[_0x256d9f(0x17d6)][_0x256d9f(0x1d55)]?_0x57d216[_0x256d9f(0x17d6)][_0x256d9f(0x1d55)][_0x256d9f(0x10c8)]('$')[0x0]:undefined,_0x57d216[_0x256d9f(0x17d6)]['callerId']=_0x57d216['amazonlex']['callerID']?_0x256d9f(0x1b60)+_0x57d216['amazonlex'][_0x256d9f(0x11be)]:undefined);_0x57d216[_0x256d9f(0x1e69)]=_0x16c908,_0x57d216[_0x256d9f(0x13f3)]=_0x17ba79;function _0x16c908(){const _0x34c6f2=_0x256d9f;_0x57d216[_0x34c6f2(0xcef)]=[];const _0x31ef1b=[];_0x57d216[_0x34c6f2(0x17d6)][_0x34c6f2(0x1142)]&&_0x57d216['amazonlex']['type']['toLowerCase']()===_0x34c6f2(0xc9c)&&_0x57d216['amazonlex']['appType']==='outboundDial'&&(_0x57d216[_0x34c6f2(0x17d6)][_0x34c6f2(0x1d55)]=_0x4768cb[_0x34c6f2(0x1274)]?(_0x57d216[_0x34c6f2(0x17d6)][_0x34c6f2(0x1e12)]||'')+'${EXTEN:'+_0x4768cb[_0x34c6f2(0x1274)]+'}':(_0x57d216[_0x34c6f2(0x17d6)][_0x34c6f2(0x1e12)]||'')+_0x34c6f2(0x20df),_0x4768cb[_0x34c6f2(0x1425)]!=='none'?_0x57d216[_0x34c6f2(0x17d6)][_0x34c6f2(0xa08)][_0x34c6f2(0x172b)](_0x34c6f2(0x1ea4))<0x0&&(_0x57d216[_0x34c6f2(0x17d6)][_0x34c6f2(0xa08)]+='U(xcally-mixmonitor-context)'):_0x57d216['amazonlex']['options']=_0x57d216[_0x34c6f2(0x17d6)][_0x34c6f2(0xa08)][_0x34c6f2(0x5f4)](_0x34c6f2(0x1ea4),''));if(_0x57d216[_0x34c6f2(0x17d6)][_0x34c6f2(0x8f2)]&&_0x57d216['amazonlex'][_0x34c6f2(0x8f2)]===_0x34c6f2(0x1802)){}else switch((_0x57d216[_0x34c6f2(0x17d6)][_0x34c6f2(0x1873)]||_0x57d216[_0x34c6f2(0x17d6)][_0x34c6f2(0x8f2)])[_0x34c6f2(0x256e)]()){case _0x34c6f2(0x26ba):_0x57d216[_0x34c6f2(0x17d6)][_0x34c6f2(0x168a)]=_0x57d216['amazonlex']['name']+'='+_0x57d216[_0x34c6f2(0x17d6)]['value'];break;case _0x34c6f2(0x1802):break;default:_0x31ef1b[0x0]=_0x57d216['amazonlex'][_0x34c6f2(0x1651)],_0x31ef1b[0x1]=_0x57d216[_0x34c6f2(0x17d6)]['secretaccesskey'],_0x31ef1b[0x2]=_0x57d216[_0x34c6f2(0x17d6)][_0x34c6f2(0x1039)],_0x31ef1b[0x3]=_0x57d216[_0x34c6f2(0x17d6)][_0x34c6f2(0x8dd)],_0x31ef1b[0x4]=_0x57d216[_0x34c6f2(0x17d6)][_0x34c6f2(0xaf3)],_0x57d216[_0x34c6f2(0x17d6)]['appdata']=_0x31ef1b[_0x34c6f2(0xb47)](',');}_0x17ba79(_0x57d216[_0x34c6f2(0x17d6)]);}function _0x17ba79(_0x3bb1e3){_0x34b0f7['hide'](_0x3bb1e3);}}const _0x538807=_0x532227;;_0x2737ca[_0x313a4d(0x11c2)]=[_0x313a4d(0x10e8),'$q','toasty',_0x313a4d(0x2116),_0x313a4d(0xbd7),_0x313a4d(0x247f),'Auth',_0x313a4d(0x2514)];function _0x2737ca(_0x1959ba,_0x149062,_0x2c6ba5,_0x3813e0,_0x5d5513,_0x33b831,_0x2f0c5f,_0x519314){const _0x3bc1b9=_0x313a4d,_0x2e37bd=this;_0x2e37bd[_0x3bc1b9(0x2321)]=_0x2f0c5f[_0x3bc1b9(0xb12)](),_0x2e37bd[_0x3bc1b9(0xcef)]=[],_0x2e37bd[_0x3bc1b9(0x1189)]=_0x3bc1b9(0x29b)+(_0x3813e0['appType']||_0x3813e0[_0x3bc1b9(0x1873)])[_0x3bc1b9(0x1c37)](),_0x2e37bd['autoreply']=angular[_0x3bc1b9(0x235a)](_0x3813e0),_0x2e37bd['crudPermissions']=_0x519314,_0x2e37bd[_0x3bc1b9(0x855)]={};if(_0x2e37bd[_0x3bc1b9(0x1713)][_0x3bc1b9(0x168a)])switch(_0x2e37bd[_0x3bc1b9(0x1713)][_0x3bc1b9(0x8f2)]?_0x2e37bd[_0x3bc1b9(0x1713)][_0x3bc1b9(0x8f2)]['toLowerCase']():_0x2e37bd[_0x3bc1b9(0x1713)][_0x3bc1b9(0x1873)][_0x3bc1b9(0x256e)]()){case'custom':break;case _0x3bc1b9(0xeaa):{const _0x5d6862=_0x2e37bd[_0x3bc1b9(0x1713)]['appdata'][_0x3bc1b9(0x10c8)](',');_0x2e37bd['autoreply']['key']=_0x5d6862[0x0],_0x2e37bd[_0x3bc1b9(0x1713)][_0x3bc1b9(0x90b)]=_0x5d6862[0x1],_0x2e37bd[_0x3bc1b9(0x1713)][_0x3bc1b9(0xaf3)]=_0x5d6862[_0x3bc1b9(0x1298)](0x2,_0x5d6862[_0x3bc1b9(0x402)])[_0x3bc1b9(0xb47)](',');}break;case _0x3bc1b9(0xa46):{const _0x3392f4=_0x2e37bd[_0x3bc1b9(0x1713)]['appdata'][_0x3bc1b9(0x10c8)](',');_0x2e37bd['autoreply']['projectId']=_0x3392f4[0x0],_0x2e37bd['autoreply'][_0x3bc1b9(0x1392)]=_0x3392f4[0x1],_0x2e37bd[_0x3bc1b9(0x1713)][_0x3bc1b9(0x2217)]=_0x3392f4[0x2],_0x2e37bd[_0x3bc1b9(0x1713)][_0x3bc1b9(0x90b)]=_0x3392f4[0x3],_0x2e37bd[_0x3bc1b9(0x1713)][_0x3bc1b9(0xaf3)]=_0x3392f4['slice'](0x4,_0x3392f4[_0x3bc1b9(0x402)])[_0x3bc1b9(0xb47)](',');}break;case _0x3bc1b9(0x17d6):{const _0x301939=_0x2e37bd[_0x3bc1b9(0x1713)][_0x3bc1b9(0x168a)][_0x3bc1b9(0x10c8)](',');_0x2e37bd[_0x3bc1b9(0x1713)][_0x3bc1b9(0x1651)]=_0x301939[0x0],_0x2e37bd[_0x3bc1b9(0x1713)][_0x3bc1b9(0x252)]=_0x301939[0x1],_0x2e37bd[_0x3bc1b9(0x1713)][_0x3bc1b9(0x1039)]=_0x301939[0x2],_0x2e37bd[_0x3bc1b9(0x1713)][_0x3bc1b9(0x8dd)]=_0x301939[0x3],_0x2e37bd[_0x3bc1b9(0x1713)][_0x3bc1b9(0xaf3)]=_0x301939['slice'](0x4,_0x301939[_0x3bc1b9(0x402)])[_0x3bc1b9(0xb47)](',');}break;case'autoreply':{const _0x55a2f1=_0x2e37bd[_0x3bc1b9(0x1713)][_0x3bc1b9(0x168a)]['split'](',');_0x2e37bd[_0x3bc1b9(0x1713)][_0x3bc1b9(0x583)]=isNaN(_0x55a2f1[0x0])?_0x55a2f1[0x0]:parseInt(_0x55a2f1[0x0],0xa),_0x2e37bd[_0x3bc1b9(0x1713)][_0x3bc1b9(0xa8d)]=_0x55a2f1[_0x3bc1b9(0x1298)](0x1,_0x55a2f1[_0x3bc1b9(0x402)])['join'](',');}break;case'message':_0x2e37bd[_0x3bc1b9(0x1713)][_0x3bc1b9(0xa8d)]=_0x2e37bd[_0x3bc1b9(0x1713)][_0x3bc1b9(0x168a)];break;case _0x3bc1b9(0x26ba):_0x2e37bd[_0x3bc1b9(0x1713)]['name']=_0x2e37bd[_0x3bc1b9(0x1713)][_0x3bc1b9(0x168a)][_0x3bc1b9(0x10c8)]('=')[0x0],_0x2e37bd[_0x3bc1b9(0x1713)][_0x3bc1b9(0x175d)]=_0x2e37bd[_0x3bc1b9(0x1713)][_0x3bc1b9(0x168a)][_0x3bc1b9(0x10c8)]('=')[0x1];break;case _0x3bc1b9(0x1ecb):_0x2e37bd[_0x3bc1b9(0x1713)][_0x3bc1b9(0x9e0)]=_0x2e37bd[_0x3bc1b9(0x1713)]['appdata'];break;default:{const _0x32d526=_0x2e37bd['autoreply'][_0x3bc1b9(0x168a)][_0x3bc1b9(0x10c8)](',');_0x2e37bd['autoreply'][_0x3bc1b9(0x583)]=_0x3f65c0()[_0x3bc1b9(0x2635)](_0x32d526[0x0])?_0x32d526[0x0]:isNaN(_0x32d526[0x0])?_0x32d526[0x0]:parseInt(_0x32d526[0x0],0xa),_0x2e37bd['autoreply'][_0x3bc1b9(0xa8d)]=_0x3f65c0()[_0x3bc1b9(0x2635)](_0x32d526[0x1])?_0x32d526[0x1]:isNaN(_0x32d526[0x1])?_0x32d526[0x1]:parseInt(_0x32d526[0x1],0xa);}break;}else _0x2e37bd[_0x3bc1b9(0x1713)][_0x3bc1b9(0x583)]=0x1;_0x2e37bd[_0x3bc1b9(0x1713)][_0x3bc1b9(0x1142)]&&_0x2e37bd[_0x3bc1b9(0x1713)][_0x3bc1b9(0x1142)][_0x3bc1b9(0x256e)]()===_0x3bc1b9(0xc9c)&&_0x2e37bd[_0x3bc1b9(0x1713)][_0x3bc1b9(0x8f2)][_0x3bc1b9(0x256e)]()===_0x3bc1b9(0x3bb)&&(_0x2e37bd[_0x3bc1b9(0x1713)][_0x3bc1b9(0x1e12)]=_0x2e37bd[_0x3bc1b9(0x1713)]['phone']?_0x2e37bd[_0x3bc1b9(0x1713)][_0x3bc1b9(0x1d55)][_0x3bc1b9(0x10c8)]('$')[0x0]:undefined,_0x2e37bd['autoreply']['callerId']=_0x2e37bd['autoreply'][_0x3bc1b9(0x11be)]?_0x3bc1b9(0x1b60)+_0x2e37bd[_0x3bc1b9(0x1713)]['callerID']:undefined);_0x2e37bd['saveOpenchannelAccountApp']=_0x52ff3f,_0x2e37bd[_0x3bc1b9(0x13f3)]=_0x2ffa71;function _0x52ff3f(){const _0xaeb041=_0x3bc1b9;_0x2e37bd[_0xaeb041(0xcef)]=[];const _0x58bff5=[];_0x2e37bd['autoreply'][_0xaeb041(0x1142)]&&_0x2e37bd[_0xaeb041(0x1713)]['type'][_0xaeb041(0x256e)]()==='outbound'&&_0x2e37bd[_0xaeb041(0x1713)]['appType']===_0xaeb041(0x118b)&&(_0x2e37bd[_0xaeb041(0x1713)][_0xaeb041(0x1d55)]=_0x5d5513[_0xaeb041(0x1274)]?(_0x2e37bd[_0xaeb041(0x1713)][_0xaeb041(0x1e12)]||'')+'${EXTEN:'+_0x5d5513['cutdigits']+'}':(_0x2e37bd[_0xaeb041(0x1713)][_0xaeb041(0x1e12)]||'')+_0xaeb041(0x20df),_0x5d5513['recordingFormat']!==_0xaeb041(0x1642)?_0x2e37bd[_0xaeb041(0x1713)][_0xaeb041(0xa08)][_0xaeb041(0x172b)](_0xaeb041(0x1ea4))<0x0&&(_0x2e37bd['autoreply'][_0xaeb041(0xa08)]+=_0xaeb041(0x1ea4)):_0x2e37bd['autoreply'][_0xaeb041(0xa08)]=_0x2e37bd[_0xaeb041(0x1713)][_0xaeb041(0xa08)]['replace'](_0xaeb041(0x1ea4),''));if(_0x2e37bd[_0xaeb041(0x1713)][_0xaeb041(0x8f2)]&&_0x2e37bd['autoreply'][_0xaeb041(0x8f2)]===_0xaeb041(0x1802)){}else switch((_0x2e37bd[_0xaeb041(0x1713)]['app']||_0x2e37bd['autoreply']['appType'])['toLowerCase']()){case _0xaeb041(0x26ba):_0x2e37bd[_0xaeb041(0x1713)][_0xaeb041(0x168a)]=_0x2e37bd[_0xaeb041(0x1713)][_0xaeb041(0x19eb)]+'='+_0x2e37bd[_0xaeb041(0x1713)][_0xaeb041(0x175d)];break;case _0xaeb041(0x1802):break;default:_0x58bff5[0x0]=_0x2e37bd['autoreply']['times'],_0x58bff5[0x1]=_0x2e37bd['autoreply'][_0xaeb041(0xa8d)],_0x2e37bd['autoreply']['appdata']=_0x58bff5[_0xaeb041(0xb47)](',');}_0x2ffa71(_0x2e37bd['autoreply']);}function _0x2ffa71(_0x1e377c){const _0x1b088f=_0x3bc1b9;_0x1959ba[_0x1b088f(0x2458)](_0x1e377c);}}const _0x4d28a8=_0x2737ca;;_0x589f10[_0x313a4d(0x11c2)]=['$mdDialog','$q','toasty',_0x313a4d(0x2116),_0x313a4d(0xbd7),_0x313a4d(0x247f),_0x313a4d(0xa87),_0x313a4d(0x2514)];function _0x589f10(_0x57bdea,_0x479484,_0x5e502f,_0x27a06e,_0xfeb221,_0x23857f,_0x16004b,_0x5b2c9d){const _0x3f97db=_0x313a4d,_0x128ccf=this;_0x128ccf['currentUser']=_0x16004b[_0x3f97db(0xb12)](),_0x128ccf[_0x3f97db(0xcef)]=[],_0x128ccf[_0x3f97db(0x1189)]=_0x3f97db(0x29b)+(_0x27a06e[_0x3f97db(0x8f2)]||_0x27a06e['app'])['toUpperCase'](),_0x128ccf[_0x3f97db(0xa7c)]=angular[_0x3f97db(0x235a)](_0x27a06e),_0x128ccf[_0x3f97db(0x2514)]=_0x5b2c9d,_0x128ccf[_0x3f97db(0x855)]={};if(_0x128ccf['close'][_0x3f97db(0x168a)])switch(_0x128ccf[_0x3f97db(0xa7c)][_0x3f97db(0x8f2)]?_0x128ccf[_0x3f97db(0xa7c)]['appType']['toLowerCase']():_0x128ccf['close'][_0x3f97db(0x1873)]['toLowerCase']()){case _0x3f97db(0x1802):break;case _0x3f97db(0xeaa):{const _0x207e03=_0x128ccf['close']['appdata']['split'](',');_0x128ccf['close'][_0x3f97db(0x2293)]=_0x207e03[0x0],_0x128ccf[_0x3f97db(0xa7c)][_0x3f97db(0x90b)]=_0x207e03[0x1],_0x128ccf[_0x3f97db(0xa7c)]['welcomemessage']=_0x207e03[_0x3f97db(0x1298)](0x2,_0x207e03[_0x3f97db(0x402)])[_0x3f97db(0xb47)](',');}break;case _0x3f97db(0xa46):{const _0x580f2e=_0x128ccf[_0x3f97db(0xa7c)][_0x3f97db(0x168a)][_0x3f97db(0x10c8)](',');_0x128ccf[_0x3f97db(0xa7c)][_0x3f97db(0x153a)]=_0x580f2e[0x0],_0x128ccf[_0x3f97db(0xa7c)][_0x3f97db(0x1392)]=_0x580f2e[0x1],_0x128ccf[_0x3f97db(0xa7c)][_0x3f97db(0x2217)]=_0x580f2e[0x2],_0x128ccf[_0x3f97db(0xa7c)]['language']=_0x580f2e[0x3],_0x128ccf[_0x3f97db(0xa7c)][_0x3f97db(0xaf3)]=_0x580f2e[_0x3f97db(0x1298)](0x4,_0x580f2e[_0x3f97db(0x402)])[_0x3f97db(0xb47)](',');}break;case _0x3f97db(0x17d6):{const _0x39502d=_0x128ccf['close'][_0x3f97db(0x168a)][_0x3f97db(0x10c8)](',');_0x128ccf[_0x3f97db(0xa7c)][_0x3f97db(0x1651)]=_0x39502d[0x0],_0x128ccf['close'][_0x3f97db(0x252)]=_0x39502d[0x1],_0x128ccf[_0x3f97db(0xa7c)][_0x3f97db(0x1039)]=_0x39502d[0x2],_0x128ccf[_0x3f97db(0xa7c)]['botname']=_0x39502d[0x3],_0x128ccf[_0x3f97db(0xa7c)]['welcomemessage']=_0x39502d[_0x3f97db(0x1298)](0x4,_0x39502d['length'])[_0x3f97db(0xb47)](',');}break;case _0x3f97db(0x1713):{const _0x693757=_0x128ccf['close'][_0x3f97db(0x168a)][_0x3f97db(0x10c8)](',');_0x128ccf[_0x3f97db(0xa7c)][_0x3f97db(0x583)]=isNaN(_0x693757[0x0])?_0x693757[0x0]:parseInt(_0x693757[0x0],0xa),_0x128ccf[_0x3f97db(0xa7c)][_0x3f97db(0xa8d)]=_0x693757[_0x3f97db(0x1298)](0x1,_0x693757[_0x3f97db(0x402)])[_0x3f97db(0xb47)](',');}break;case'message':_0x128ccf[_0x3f97db(0xa7c)]['text']=_0x128ccf[_0x3f97db(0xa7c)][_0x3f97db(0x168a)];break;case _0x3f97db(0x26ba):_0x128ccf[_0x3f97db(0xa7c)][_0x3f97db(0x19eb)]=_0x128ccf[_0x3f97db(0xa7c)][_0x3f97db(0x168a)][_0x3f97db(0x10c8)]('=')[0x0],_0x128ccf[_0x3f97db(0xa7c)]['value']=_0x128ccf[_0x3f97db(0xa7c)]['appdata'][_0x3f97db(0x10c8)]('=')[0x1];break;case _0x3f97db(0x1ecb):_0x128ccf['close'][_0x3f97db(0x9e0)]=_0x128ccf[_0x3f97db(0xa7c)][_0x3f97db(0x168a)];break;default:{const _0x17339d=_0x128ccf[_0x3f97db(0xa7c)][_0x3f97db(0x168a)]['split'](',');_0x128ccf[_0x3f97db(0xa7c)][_0x3f97db(0x9e1)]=_0x3f65c0()['isEmpty'](_0x17339d[0x0])?_0x17339d[0x0]:isNaN(_0x17339d[0x0])?_0x17339d[0x0]:parseInt(_0x17339d[0x0],0xa);}break;}else{}_0x128ccf[_0x3f97db(0xa7c)][_0x3f97db(0x1142)]&&_0x128ccf[_0x3f97db(0xa7c)][_0x3f97db(0x1142)][_0x3f97db(0x256e)]()===_0x3f97db(0xc9c)&&_0x128ccf['close'][_0x3f97db(0x8f2)]['toLowerCase']()===_0x3f97db(0x3bb)&&(_0x128ccf[_0x3f97db(0xa7c)][_0x3f97db(0x1e12)]=_0x128ccf[_0x3f97db(0xa7c)][_0x3f97db(0x1d55)]?_0x128ccf[_0x3f97db(0xa7c)]['phone'][_0x3f97db(0x10c8)]('$')[0x0]:undefined,_0x128ccf['close'][_0x3f97db(0x1d43)]=_0x128ccf[_0x3f97db(0xa7c)][_0x3f97db(0x11be)]?_0x3f97db(0x1b60)+_0x128ccf['close'][_0x3f97db(0x11be)]:undefined);_0x128ccf[_0x3f97db(0x1e69)]=_0x4c3c3b,_0x128ccf[_0x3f97db(0x13f3)]=_0x14c50b;function _0x4c3c3b(){const _0xe4c3d5=_0x3f97db;_0x128ccf['errors']=[];const _0x146281=[];_0x128ccf[_0xe4c3d5(0xa7c)][_0xe4c3d5(0x1142)]&&_0x128ccf[_0xe4c3d5(0xa7c)][_0xe4c3d5(0x1142)][_0xe4c3d5(0x256e)]()===_0xe4c3d5(0xc9c)&&_0x128ccf[_0xe4c3d5(0xa7c)][_0xe4c3d5(0x8f2)]==='outboundDial'&&(_0x128ccf[_0xe4c3d5(0xa7c)][_0xe4c3d5(0x1d55)]=_0xfeb221[_0xe4c3d5(0x1274)]?(_0x128ccf[_0xe4c3d5(0xa7c)][_0xe4c3d5(0x1e12)]||'')+_0xe4c3d5(0x2147)+_0xfeb221[_0xe4c3d5(0x1274)]+'}':(_0x128ccf[_0xe4c3d5(0xa7c)][_0xe4c3d5(0x1e12)]||'')+_0xe4c3d5(0x20df),_0xfeb221[_0xe4c3d5(0x1425)]!=='none'?_0x128ccf['close']['options'][_0xe4c3d5(0x172b)]('U(xcally-mixmonitor-context)')<0x0&&(_0x128ccf[_0xe4c3d5(0xa7c)][_0xe4c3d5(0xa08)]+=_0xe4c3d5(0x1ea4)):_0x128ccf[_0xe4c3d5(0xa7c)]['options']=_0x128ccf['close']['options'][_0xe4c3d5(0x5f4)]('U(xcally-mixmonitor-context)',''));if(_0x128ccf[_0xe4c3d5(0xa7c)]['appType']&&_0x128ccf[_0xe4c3d5(0xa7c)][_0xe4c3d5(0x8f2)]===_0xe4c3d5(0x1802)){}else switch((_0x128ccf['close'][_0xe4c3d5(0x1873)]||_0x128ccf[_0xe4c3d5(0xa7c)][_0xe4c3d5(0x8f2)])['toLowerCase']()){case _0xe4c3d5(0x26ba):_0x128ccf['close'][_0xe4c3d5(0x168a)]=_0x128ccf[_0xe4c3d5(0xa7c)][_0xe4c3d5(0x19eb)]+'='+_0x128ccf[_0xe4c3d5(0xa7c)][_0xe4c3d5(0x175d)];break;case'custom':break;default:_0x146281[0x0]=_0x128ccf[_0xe4c3d5(0xa7c)][_0xe4c3d5(0x9e1)],_0x128ccf['close'][_0xe4c3d5(0x168a)]=_0x146281['join'](',');}_0x14c50b(_0x128ccf[_0xe4c3d5(0xa7c)]);}function _0x14c50b(_0x572dd3){const _0x542912=_0x3f97db;_0x57bdea[_0x542912(0x2458)](_0x572dd3);}}const _0x8e2c3b=_0x589f10;;_0x2683ef[_0x313a4d(0x11c2)]=['$mdDialog','$q','toasty','openchannelAccountApp',_0x313a4d(0xbd7),_0x313a4d(0x247f),_0x313a4d(0xa87),'crudPermissions'];function _0x2683ef(_0x453c6f,_0x5d4941,_0x267315,_0x4aff24,_0x1514d0,_0x6d50e3,_0x4a7045,_0x47120b){const _0x923ff3=_0x313a4d,_0x48559f=this;_0x48559f[_0x923ff3(0x2321)]=_0x4a7045[_0x923ff3(0xb12)](),_0x48559f[_0x923ff3(0xcef)]=[],_0x48559f[_0x923ff3(0x1189)]=_0x923ff3(0x29b)+(_0x4aff24['appType']||_0x4aff24['app'])[_0x923ff3(0x1c37)](),_0x48559f[_0x923ff3(0xeaa)]=angular[_0x923ff3(0x235a)](_0x4aff24),_0x48559f['crudPermissions']=_0x47120b,_0x48559f[_0x923ff3(0x855)]={};if(_0x48559f[_0x923ff3(0xeaa)]['appdata'])switch(_0x48559f[_0x923ff3(0xeaa)]['appType']?_0x48559f[_0x923ff3(0xeaa)][_0x923ff3(0x8f2)][_0x923ff3(0x256e)]():_0x48559f['dialogflow'][_0x923ff3(0x1873)][_0x923ff3(0x256e)]()){case'custom':break;case _0x923ff3(0xeaa):{const _0x11f0f7=_0x48559f[_0x923ff3(0xeaa)][_0x923ff3(0x168a)][_0x923ff3(0x10c8)](',');_0x48559f[_0x923ff3(0xeaa)][_0x923ff3(0x2293)]=_0x11f0f7[0x0],_0x48559f['dialogflow'][_0x923ff3(0x90b)]=_0x11f0f7[0x1],_0x48559f[_0x923ff3(0xeaa)][_0x923ff3(0xaf3)]=_0x11f0f7['slice'](0x2,_0x11f0f7['length'])[_0x923ff3(0xb47)](',');}break;case _0x923ff3(0xa46):{const _0x55f8c7=_0x48559f['dialogflow'][_0x923ff3(0x168a)][_0x923ff3(0x10c8)](',');_0x48559f[_0x923ff3(0xeaa)][_0x923ff3(0x153a)]=_0x55f8c7[0x0],_0x48559f['dialogflow']['clientEmail']=_0x55f8c7[0x1],_0x48559f[_0x923ff3(0xeaa)][_0x923ff3(0x2217)]=_0x55f8c7[0x2],_0x48559f[_0x923ff3(0xeaa)]['language']=_0x55f8c7[0x3],_0x48559f[_0x923ff3(0xeaa)]['welcomemessage']=_0x55f8c7['slice'](0x4,_0x55f8c7[_0x923ff3(0x402)])[_0x923ff3(0xb47)](',');}break;case _0x923ff3(0x17d6):{const _0x43dba9=_0x48559f[_0x923ff3(0xeaa)][_0x923ff3(0x168a)][_0x923ff3(0x10c8)](',');_0x48559f[_0x923ff3(0xeaa)][_0x923ff3(0x1651)]=_0x43dba9[0x0],_0x48559f['dialogflow'][_0x923ff3(0x252)]=_0x43dba9[0x1],_0x48559f[_0x923ff3(0xeaa)][_0x923ff3(0x1039)]=_0x43dba9[0x2],_0x48559f[_0x923ff3(0xeaa)][_0x923ff3(0x8dd)]=_0x43dba9[0x3],_0x48559f[_0x923ff3(0xeaa)][_0x923ff3(0xaf3)]=_0x43dba9[_0x923ff3(0x1298)](0x4,_0x43dba9[_0x923ff3(0x402)])[_0x923ff3(0xb47)](',');}break;case'autoreply':{const _0x89fa1e=_0x48559f[_0x923ff3(0xeaa)][_0x923ff3(0x168a)][_0x923ff3(0x10c8)](',');_0x48559f[_0x923ff3(0xeaa)]['times']=isNaN(_0x89fa1e[0x0])?_0x89fa1e[0x0]:parseInt(_0x89fa1e[0x0],0xa),_0x48559f[_0x923ff3(0xeaa)]['text']=_0x89fa1e['slice'](0x1,_0x89fa1e[_0x923ff3(0x402)])[_0x923ff3(0xb47)](',');}break;case _0x923ff3(0x7fd):_0x48559f[_0x923ff3(0xeaa)][_0x923ff3(0xa8d)]=_0x48559f[_0x923ff3(0xeaa)][_0x923ff3(0x168a)];break;case _0x923ff3(0x26ba):_0x48559f[_0x923ff3(0xeaa)][_0x923ff3(0x19eb)]=_0x48559f[_0x923ff3(0xeaa)]['appdata'][_0x923ff3(0x10c8)]('=')[0x0],_0x48559f[_0x923ff3(0xeaa)]['value']=_0x48559f[_0x923ff3(0xeaa)][_0x923ff3(0x168a)][_0x923ff3(0x10c8)]('=')[0x1];break;case _0x923ff3(0x1ecb):_0x48559f[_0x923ff3(0xeaa)][_0x923ff3(0x9e0)]=_0x48559f['dialogflow'][_0x923ff3(0x168a)];break;default:{const _0x75602d=_0x48559f[_0x923ff3(0xeaa)][_0x923ff3(0x168a)][_0x923ff3(0x10c8)](',');_0x48559f[_0x923ff3(0xeaa)][_0x923ff3(0x2293)]=_0x3f65c0()[_0x923ff3(0x2635)](_0x75602d[0x0])?_0x75602d[0x0]:isNaN(_0x75602d[0x0])?_0x75602d[0x0]:parseInt(_0x75602d[0x0],0xa),_0x48559f[_0x923ff3(0xeaa)][_0x923ff3(0x90b)]=_0x3f65c0()['isEmpty'](_0x75602d[0x1])?_0x75602d[0x1]:isNaN(_0x75602d[0x1])?_0x75602d[0x1]:parseInt(_0x75602d[0x1],0xa),_0x48559f[_0x923ff3(0xeaa)][_0x923ff3(0xaf3)]=_0x3f65c0()['isEmpty'](_0x75602d[0x2])?_0x75602d[0x2]:isNaN(_0x75602d[0x2])?_0x75602d[0x2]:parseInt(_0x75602d[0x2],0xa);}break;}else _0x48559f['dialogflow'][_0x923ff3(0x90b)]='en';_0x48559f[_0x923ff3(0xeaa)]['type']&&_0x48559f['dialogflow'][_0x923ff3(0x1142)]['toLowerCase']()===_0x923ff3(0xc9c)&&_0x48559f['dialogflow']['appType'][_0x923ff3(0x256e)]()==='outbounddial'&&(_0x48559f[_0x923ff3(0xeaa)][_0x923ff3(0x1e12)]=_0x48559f[_0x923ff3(0xeaa)]['phone']?_0x48559f[_0x923ff3(0xeaa)]['phone'][_0x923ff3(0x10c8)]('$')[0x0]:undefined,_0x48559f[_0x923ff3(0xeaa)][_0x923ff3(0x1d43)]=_0x48559f[_0x923ff3(0xeaa)][_0x923ff3(0x11be)]?_0x923ff3(0x1b60)+_0x48559f[_0x923ff3(0xeaa)][_0x923ff3(0x11be)]:undefined);_0x48559f['saveOpenchannelAccountApp']=_0x132327,_0x48559f[_0x923ff3(0x13f3)]=_0x49ae80;function _0x132327(){const _0xa4dd06=_0x923ff3;_0x48559f['errors']=[];const _0x273958=[];_0x48559f[_0xa4dd06(0xeaa)][_0xa4dd06(0x1142)]&&_0x48559f[_0xa4dd06(0xeaa)][_0xa4dd06(0x1142)][_0xa4dd06(0x256e)]()===_0xa4dd06(0xc9c)&&_0x48559f[_0xa4dd06(0xeaa)][_0xa4dd06(0x8f2)]==='outboundDial'&&(_0x48559f[_0xa4dd06(0xeaa)][_0xa4dd06(0x1d55)]=_0x1514d0[_0xa4dd06(0x1274)]?(_0x48559f[_0xa4dd06(0xeaa)][_0xa4dd06(0x1e12)]||'')+'${EXTEN:'+_0x1514d0['cutdigits']+'}':(_0x48559f['dialogflow'][_0xa4dd06(0x1e12)]||'')+'${EXTEN}',_0x1514d0[_0xa4dd06(0x1425)]!=='none'?_0x48559f['dialogflow']['options'][_0xa4dd06(0x172b)](_0xa4dd06(0x1ea4))<0x0&&(_0x48559f['dialogflow'][_0xa4dd06(0xa08)]+=_0xa4dd06(0x1ea4)):_0x48559f['dialogflow'][_0xa4dd06(0xa08)]=_0x48559f['dialogflow'][_0xa4dd06(0xa08)][_0xa4dd06(0x5f4)]('U(xcally-mixmonitor-context)',''));if(_0x48559f[_0xa4dd06(0xeaa)][_0xa4dd06(0x8f2)]&&_0x48559f['dialogflow'][_0xa4dd06(0x8f2)]===_0xa4dd06(0x1802)){}else switch((_0x48559f[_0xa4dd06(0xeaa)]['app']||_0x48559f['dialogflow']['appType'])[_0xa4dd06(0x256e)]()){case _0xa4dd06(0x26ba):_0x48559f[_0xa4dd06(0xeaa)][_0xa4dd06(0x168a)]=_0x48559f[_0xa4dd06(0xeaa)][_0xa4dd06(0x19eb)]+'='+_0x48559f['dialogflow']['value'];break;case _0xa4dd06(0x1802):break;default:_0x273958[0x0]=_0x48559f[_0xa4dd06(0xeaa)]['key'],_0x273958[0x1]=_0x48559f[_0xa4dd06(0xeaa)][_0xa4dd06(0x90b)],_0x273958[0x2]=_0x48559f[_0xa4dd06(0xeaa)][_0xa4dd06(0xaf3)],_0x48559f[_0xa4dd06(0xeaa)]['appdata']=_0x273958['join'](',');}_0x49ae80(_0x48559f[_0xa4dd06(0xeaa)]);}function _0x49ae80(_0x568c92){_0x453c6f['hide'](_0x568c92);}}const _0x535c61=_0x2683ef;;_0x9b1cfa[_0x313a4d(0x11c2)]=[_0x313a4d(0x10e8),'$q',_0x313a4d(0x1fe4),_0x313a4d(0x2116),_0x313a4d(0xbd7),_0x313a4d(0x247f),_0x313a4d(0xa87),_0x313a4d(0x2514)];function _0x9b1cfa(_0x511a6c,_0x34204b,_0x4a6758,_0x39747f,_0x398bd8,_0x2c38df,_0x3a2f8a,_0x394030){const _0x5d4334=_0x313a4d,_0x4bfa85=this;_0x4bfa85[_0x5d4334(0x2321)]=_0x3a2f8a[_0x5d4334(0xb12)](),_0x4bfa85[_0x5d4334(0xcef)]=[],_0x4bfa85[_0x5d4334(0x1189)]=_0x5d4334(0x29b)+(_0x39747f[_0x5d4334(0x8f2)]||_0x39747f['app'])[_0x5d4334(0x1c37)](),_0x4bfa85[_0x5d4334(0x609)]=angular[_0x5d4334(0x235a)](_0x39747f),_0x4bfa85[_0x5d4334(0x2514)]=_0x394030,_0x4bfa85[_0x5d4334(0x855)]={};if(_0x4bfa85[_0x5d4334(0x609)][_0x5d4334(0x168a)])switch(_0x4bfa85[_0x5d4334(0x609)][_0x5d4334(0x8f2)]?_0x4bfa85[_0x5d4334(0x609)]['appType'][_0x5d4334(0x256e)]():_0x4bfa85[_0x5d4334(0x609)]['app']['toLowerCase']()){case _0x5d4334(0x1802):break;case _0x5d4334(0xeaa):{const _0x8cb41e=_0x4bfa85['gotoif']['appdata'][_0x5d4334(0x10c8)](',');_0x4bfa85[_0x5d4334(0x609)][_0x5d4334(0x2293)]=_0x8cb41e[0x0],_0x4bfa85['gotoif'][_0x5d4334(0x90b)]=_0x8cb41e[0x1],_0x4bfa85[_0x5d4334(0x609)]['welcomemessage']=_0x8cb41e[_0x5d4334(0x1298)](0x2,_0x8cb41e[_0x5d4334(0x402)])['join'](',');}break;case _0x5d4334(0xa46):{const _0x16d5d2=_0x4bfa85[_0x5d4334(0x609)][_0x5d4334(0x168a)][_0x5d4334(0x10c8)](',');_0x4bfa85[_0x5d4334(0x609)]['projectId']=_0x16d5d2[0x0],_0x4bfa85[_0x5d4334(0x609)][_0x5d4334(0x1392)]=_0x16d5d2[0x1],_0x4bfa85['gotoif'][_0x5d4334(0x2217)]=_0x16d5d2[0x2],_0x4bfa85[_0x5d4334(0x609)][_0x5d4334(0x90b)]=_0x16d5d2[0x3],_0x4bfa85[_0x5d4334(0x609)][_0x5d4334(0xaf3)]=_0x16d5d2['slice'](0x4,_0x16d5d2[_0x5d4334(0x402)])[_0x5d4334(0xb47)](',');}break;case _0x5d4334(0x17d6):{const _0x19cff5=_0x4bfa85['gotoif']['appdata'][_0x5d4334(0x10c8)](',');_0x4bfa85[_0x5d4334(0x609)][_0x5d4334(0x1651)]=_0x19cff5[0x0],_0x4bfa85[_0x5d4334(0x609)][_0x5d4334(0x252)]=_0x19cff5[0x1],_0x4bfa85[_0x5d4334(0x609)][_0x5d4334(0x1039)]=_0x19cff5[0x2],_0x4bfa85[_0x5d4334(0x609)][_0x5d4334(0x8dd)]=_0x19cff5[0x3],_0x4bfa85[_0x5d4334(0x609)]['welcomemessage']=_0x19cff5['slice'](0x4,_0x19cff5[_0x5d4334(0x402)])[_0x5d4334(0xb47)](',');}break;case'autoreply':{const _0x4520f1=_0x4bfa85[_0x5d4334(0x609)]['appdata'][_0x5d4334(0x10c8)](',');_0x4bfa85[_0x5d4334(0x609)]['times']=isNaN(_0x4520f1[0x0])?_0x4520f1[0x0]:parseInt(_0x4520f1[0x0],0xa),_0x4bfa85['gotoif'][_0x5d4334(0xa8d)]=_0x4520f1[_0x5d4334(0x1298)](0x1,_0x4520f1['length'])[_0x5d4334(0xb47)](',');}break;case _0x5d4334(0x7fd):_0x4bfa85[_0x5d4334(0x609)]['text']=_0x4bfa85['gotoif'][_0x5d4334(0x168a)];break;case _0x5d4334(0x26ba):_0x4bfa85[_0x5d4334(0x609)]['name']=_0x4bfa85[_0x5d4334(0x609)][_0x5d4334(0x168a)][_0x5d4334(0x10c8)]('=')[0x0],_0x4bfa85[_0x5d4334(0x609)][_0x5d4334(0x175d)]=_0x4bfa85[_0x5d4334(0x609)][_0x5d4334(0x168a)][_0x5d4334(0x10c8)]('=')[0x1];break;case'agi':_0x4bfa85[_0x5d4334(0x609)][_0x5d4334(0x9e0)]=_0x4bfa85[_0x5d4334(0x609)]['appdata'];break;default:{const _0x793383=_0x4bfa85[_0x5d4334(0x609)][_0x5d4334(0x168a)][_0x5d4334(0x10c8)](',');_0x4bfa85['gotoif'][_0x5d4334(0x115f)]=_0x3f65c0()[_0x5d4334(0x2635)](_0x793383[0x0])?_0x793383[0x0]:isNaN(_0x793383[0x0])?_0x793383[0x0]:parseInt(_0x793383[0x0],0xa),_0x4bfa85[_0x5d4334(0x609)][_0x5d4334(0x1d78)]=_0x3f65c0()[_0x5d4334(0x2635)](_0x793383[0x1])?_0x793383[0x1]:isNaN(_0x793383[0x1])?_0x793383[0x1]:parseInt(_0x793383[0x1],0xa),_0x4bfa85[_0x5d4334(0x609)][_0x5d4334(0x28e1)]=_0x3f65c0()[_0x5d4334(0x2635)](_0x793383[0x2])?_0x793383[0x2]:isNaN(_0x793383[0x2])?_0x793383[0x2]:parseInt(_0x793383[0x2],0xa);}break;}else{}_0x4bfa85[_0x5d4334(0x609)]['type']&&_0x4bfa85['gotoif'][_0x5d4334(0x1142)][_0x5d4334(0x256e)]()===_0x5d4334(0xc9c)&&_0x4bfa85[_0x5d4334(0x609)][_0x5d4334(0x8f2)]['toLowerCase']()===_0x5d4334(0x3bb)&&(_0x4bfa85[_0x5d4334(0x609)][_0x5d4334(0x1e12)]=_0x4bfa85[_0x5d4334(0x609)][_0x5d4334(0x1d55)]?_0x4bfa85[_0x5d4334(0x609)][_0x5d4334(0x1d55)][_0x5d4334(0x10c8)]('$')[0x0]:undefined,_0x4bfa85[_0x5d4334(0x609)]['callerId']=_0x4bfa85[_0x5d4334(0x609)][_0x5d4334(0x11be)]?_0x5d4334(0x1b60)+_0x4bfa85[_0x5d4334(0x609)][_0x5d4334(0x11be)]:undefined);_0x4bfa85[_0x5d4334(0x1e69)]=_0x28ff60,_0x4bfa85[_0x5d4334(0x13f3)]=_0x49c5ad;function _0x28ff60(){const _0x1eb3a2=_0x5d4334;_0x4bfa85[_0x1eb3a2(0xcef)]=[];const _0x32f5ef=[];_0x4bfa85[_0x1eb3a2(0x609)]['type']&&_0x4bfa85[_0x1eb3a2(0x609)][_0x1eb3a2(0x1142)][_0x1eb3a2(0x256e)]()===_0x1eb3a2(0xc9c)&&_0x4bfa85[_0x1eb3a2(0x609)][_0x1eb3a2(0x8f2)]===_0x1eb3a2(0x118b)&&(_0x4bfa85[_0x1eb3a2(0x609)][_0x1eb3a2(0x1d55)]=_0x398bd8['cutdigits']?(_0x4bfa85[_0x1eb3a2(0x609)]['prefix']||'')+'${EXTEN:'+_0x398bd8['cutdigits']+'}':(_0x4bfa85[_0x1eb3a2(0x609)][_0x1eb3a2(0x1e12)]||'')+_0x1eb3a2(0x20df),_0x398bd8['recordingFormat']!=='none'?_0x4bfa85[_0x1eb3a2(0x609)]['options'][_0x1eb3a2(0x172b)](_0x1eb3a2(0x1ea4))<0x0&&(_0x4bfa85[_0x1eb3a2(0x609)]['options']+=_0x1eb3a2(0x1ea4)):_0x4bfa85[_0x1eb3a2(0x609)][_0x1eb3a2(0xa08)]=_0x4bfa85[_0x1eb3a2(0x609)][_0x1eb3a2(0xa08)][_0x1eb3a2(0x5f4)](_0x1eb3a2(0x1ea4),''));if(_0x4bfa85[_0x1eb3a2(0x609)][_0x1eb3a2(0x8f2)]&&_0x4bfa85[_0x1eb3a2(0x609)]['appType']===_0x1eb3a2(0x1802)){}else switch((_0x4bfa85[_0x1eb3a2(0x609)]['app']||_0x4bfa85[_0x1eb3a2(0x609)][_0x1eb3a2(0x8f2)])[_0x1eb3a2(0x256e)]()){case _0x1eb3a2(0x26ba):_0x4bfa85[_0x1eb3a2(0x609)][_0x1eb3a2(0x168a)]=_0x4bfa85[_0x1eb3a2(0x609)]['name']+'='+_0x4bfa85['gotoif']['value'];break;case _0x1eb3a2(0x1802):break;default:_0x32f5ef[0x0]=_0x4bfa85[_0x1eb3a2(0x609)][_0x1eb3a2(0x115f)],_0x32f5ef[0x1]=_0x4bfa85[_0x1eb3a2(0x609)][_0x1eb3a2(0x1d78)],_0x32f5ef[0x2]=_0x4bfa85[_0x1eb3a2(0x609)][_0x1eb3a2(0x28e1)],_0x4bfa85['gotoif'][_0x1eb3a2(0x168a)]=_0x32f5ef[_0x1eb3a2(0xb47)](',');}_0x49c5ad(_0x4bfa85[_0x1eb3a2(0x609)]);}function _0x49c5ad(_0x2fec25){const _0x1cb431=_0x5d4334;_0x511a6c[_0x1cb431(0x2458)](_0x2fec25);}}const _0x3886b3=_0x9b1cfa;;_0x2e3aad[_0x313a4d(0x11c2)]=['$mdDialog','$q',_0x313a4d(0x1fe4),_0x313a4d(0x2116),'openchannelAccount','api',_0x313a4d(0xa87),_0x313a4d(0x2514)];function _0x2e3aad(_0x265dc1,_0x4466ac,_0x20b665,_0x31e47d,_0x3396f0,_0x4b3dc5,_0x667371,_0x3bb044){const _0x382057=_0x313a4d,_0x11eff1=this;_0x11eff1[_0x382057(0x2321)]=_0x667371[_0x382057(0xb12)](),_0x11eff1['errors']=[],_0x11eff1[_0x382057(0x1189)]=_0x382057(0x29b)+(_0x31e47d[_0x382057(0x8f2)]||_0x31e47d[_0x382057(0x1873)])[_0x382057(0x1c37)](),_0x11eff1[_0x382057(0x28f4)]=angular[_0x382057(0x235a)](_0x31e47d),_0x11eff1[_0x382057(0x2514)]=_0x3bb044,_0x11eff1[_0x382057(0x855)]={};if(_0x11eff1[_0x382057(0x28f4)][_0x382057(0x168a)])switch(_0x11eff1['gotop'][_0x382057(0x8f2)]?_0x11eff1[_0x382057(0x28f4)][_0x382057(0x8f2)]['toLowerCase']():_0x11eff1[_0x382057(0x28f4)]['app'][_0x382057(0x256e)]()){case _0x382057(0x1802):break;case _0x382057(0xeaa):{const _0x39cba2=_0x11eff1['gotop']['appdata']['split'](',');_0x11eff1[_0x382057(0x28f4)]['key']=_0x39cba2[0x0],_0x11eff1[_0x382057(0x28f4)][_0x382057(0x90b)]=_0x39cba2[0x1],_0x11eff1['gotop'][_0x382057(0xaf3)]=_0x39cba2[_0x382057(0x1298)](0x2,_0x39cba2[_0x382057(0x402)])['join'](',');}break;case _0x382057(0xa46):{const _0x3964b6=_0x11eff1[_0x382057(0x28f4)][_0x382057(0x168a)][_0x382057(0x10c8)](',');_0x11eff1[_0x382057(0x28f4)][_0x382057(0x153a)]=_0x3964b6[0x0],_0x11eff1[_0x382057(0x28f4)]['clientEmail']=_0x3964b6[0x1],_0x11eff1[_0x382057(0x28f4)]['privateKey']=_0x3964b6[0x2],_0x11eff1['gotop'][_0x382057(0x90b)]=_0x3964b6[0x3],_0x11eff1[_0x382057(0x28f4)][_0x382057(0xaf3)]=_0x3964b6[_0x382057(0x1298)](0x4,_0x3964b6['length'])[_0x382057(0xb47)](',');}break;case _0x382057(0x17d6):{const _0x596480=_0x11eff1['gotop']['appdata'][_0x382057(0x10c8)](',');_0x11eff1[_0x382057(0x28f4)][_0x382057(0x1651)]=_0x596480[0x0],_0x11eff1[_0x382057(0x28f4)][_0x382057(0x252)]=_0x596480[0x1],_0x11eff1[_0x382057(0x28f4)]['lexregion']=_0x596480[0x2],_0x11eff1[_0x382057(0x28f4)]['botname']=_0x596480[0x3],_0x11eff1[_0x382057(0x28f4)][_0x382057(0xaf3)]=_0x596480[_0x382057(0x1298)](0x4,_0x596480['length'])['join'](',');}break;case _0x382057(0x1713):{const _0x3537a0=_0x11eff1[_0x382057(0x28f4)][_0x382057(0x168a)][_0x382057(0x10c8)](',');_0x11eff1[_0x382057(0x28f4)][_0x382057(0x583)]=isNaN(_0x3537a0[0x0])?_0x3537a0[0x0]:parseInt(_0x3537a0[0x0],0xa),_0x11eff1[_0x382057(0x28f4)][_0x382057(0xa8d)]=_0x3537a0['slice'](0x1,_0x3537a0['length'])[_0x382057(0xb47)](',');}break;case _0x382057(0x7fd):_0x11eff1[_0x382057(0x28f4)][_0x382057(0xa8d)]=_0x11eff1[_0x382057(0x28f4)][_0x382057(0x168a)];break;case _0x382057(0x26ba):_0x11eff1[_0x382057(0x28f4)][_0x382057(0x19eb)]=_0x11eff1['gotop'][_0x382057(0x168a)][_0x382057(0x10c8)]('=')[0x0],_0x11eff1['gotop'][_0x382057(0x175d)]=_0x11eff1[_0x382057(0x28f4)][_0x382057(0x168a)]['split']('=')[0x1];break;case _0x382057(0x1ecb):_0x11eff1[_0x382057(0x28f4)][_0x382057(0x9e0)]=_0x11eff1['gotop'][_0x382057(0x168a)];break;default:{const _0x1f6f02=_0x11eff1[_0x382057(0x28f4)][_0x382057(0x168a)][_0x382057(0x10c8)](',');_0x11eff1['gotop'][_0x382057(0xa6a)]=_0x3f65c0()[_0x382057(0x2635)](_0x1f6f02[0x0])?_0x1f6f02[0x0]:isNaN(_0x1f6f02[0x0])?_0x1f6f02[0x0]:parseInt(_0x1f6f02[0x0],0xa);}break;}else{}_0x11eff1[_0x382057(0x28f4)][_0x382057(0x1142)]&&_0x11eff1[_0x382057(0x28f4)][_0x382057(0x1142)][_0x382057(0x256e)]()===_0x382057(0xc9c)&&_0x11eff1[_0x382057(0x28f4)][_0x382057(0x8f2)][_0x382057(0x256e)]()==='outbounddial'&&(_0x11eff1[_0x382057(0x28f4)][_0x382057(0x1e12)]=_0x11eff1['gotop'][_0x382057(0x1d55)]?_0x11eff1[_0x382057(0x28f4)][_0x382057(0x1d55)][_0x382057(0x10c8)]('$')[0x0]:undefined,_0x11eff1[_0x382057(0x28f4)][_0x382057(0x1d43)]=_0x11eff1['gotop'][_0x382057(0x11be)]?_0x382057(0x1b60)+_0x11eff1[_0x382057(0x28f4)]['callerID']:undefined);_0x11eff1[_0x382057(0x1e69)]=_0x1ccb43,_0x11eff1[_0x382057(0x13f3)]=_0xc08fee;function _0x1ccb43(){const _0x3667b4=_0x382057;_0x11eff1['errors']=[];const _0x3cc05a=[];_0x11eff1[_0x3667b4(0x28f4)][_0x3667b4(0x1142)]&&_0x11eff1[_0x3667b4(0x28f4)][_0x3667b4(0x1142)][_0x3667b4(0x256e)]()===_0x3667b4(0xc9c)&&_0x11eff1[_0x3667b4(0x28f4)][_0x3667b4(0x8f2)]===_0x3667b4(0x118b)&&(_0x11eff1[_0x3667b4(0x28f4)][_0x3667b4(0x1d55)]=_0x3396f0[_0x3667b4(0x1274)]?(_0x11eff1[_0x3667b4(0x28f4)][_0x3667b4(0x1e12)]||'')+_0x3667b4(0x2147)+_0x3396f0[_0x3667b4(0x1274)]+'}':(_0x11eff1[_0x3667b4(0x28f4)][_0x3667b4(0x1e12)]||'')+'${EXTEN}',_0x3396f0['recordingFormat']!==_0x3667b4(0x1642)?_0x11eff1[_0x3667b4(0x28f4)]['options']['indexOf'](_0x3667b4(0x1ea4))<0x0&&(_0x11eff1['gotop'][_0x3667b4(0xa08)]+='U(xcally-mixmonitor-context)'):_0x11eff1[_0x3667b4(0x28f4)][_0x3667b4(0xa08)]=_0x11eff1[_0x3667b4(0x28f4)][_0x3667b4(0xa08)]['replace'](_0x3667b4(0x1ea4),''));if(_0x11eff1[_0x3667b4(0x28f4)][_0x3667b4(0x8f2)]&&_0x11eff1[_0x3667b4(0x28f4)][_0x3667b4(0x8f2)]===_0x3667b4(0x1802)){}else switch((_0x11eff1['gotop']['app']||_0x11eff1[_0x3667b4(0x28f4)][_0x3667b4(0x8f2)])['toLowerCase']()){case _0x3667b4(0x26ba):_0x11eff1[_0x3667b4(0x28f4)][_0x3667b4(0x168a)]=_0x11eff1[_0x3667b4(0x28f4)][_0x3667b4(0x19eb)]+'='+_0x11eff1['gotop'][_0x3667b4(0x175d)];break;case _0x3667b4(0x1802):break;default:_0x3cc05a[0x0]=_0x11eff1[_0x3667b4(0x28f4)][_0x3667b4(0xa6a)],_0x11eff1[_0x3667b4(0x28f4)][_0x3667b4(0x168a)]=_0x3cc05a['join'](',');}_0xc08fee(_0x11eff1['gotop']);}function _0xc08fee(_0x5d4847){const _0x3f3b2f=_0x382057;_0x265dc1[_0x3f3b2f(0x2458)](_0x5d4847);}}const _0x1739ef=_0x2e3aad;;_0x4082e4['$inject']=['$state','$mdDialog',_0x313a4d(0x1c7e),_0x313a4d(0x15f6),'interval','intervals',_0x313a4d(0x1fe4),'api','Auth',_0x313a4d(0x2514)];function _0x4082e4(_0x46ba11,_0x1bd992,_0x34c925,_0x53d19e,_0xb31f94,_0x46cc89,_0xa12fc6,_0x35526a,_0x2745ce,_0x540d90){const _0x3416db=_0x313a4d,_0x489839=this;_0x489839[_0x3416db(0x2321)]=_0x2745ce[_0x3416db(0xb12)](),_0x489839['errors']=[],_0x489839['title']=_0x3416db(0x56d),_0x489839[_0x3416db(0x2765)]=angular[_0x3416db(0x235a)](_0xb31f94),_0x489839[_0x3416db(0x278f)]=_0x46cc89,_0x489839[_0x3416db(0xa76)]=![],_0x489839[_0x3416db(0x1960)]=[_0x3416db(0xd85),'custom','list'],_0x489839[_0x3416db(0x2514)]=_0x540d90,_0x489839[_0x3416db(0x1e35)]=_0x53d19e[_0x3416db(0x2045)](),_0x489839[_0x3416db(0x593)]=_0x53d19e[_0x3416db(0xead)](),_0x489839[_0x3416db(0x2156)]=_0x53d19e['getMonthName'](),_0x489839[_0x3416db(0x15f1)]=_0x53d19e[_0x3416db(0x1421)]();if(!_0x489839[_0x3416db(0x2765)])_0x489839[_0x3416db(0x2765)]={'interval':_0x3416db(0x1559)},_0x489839['type']=_0x3416db(0xd85),_0x489839[_0x3416db(0x1189)]='TOOLS.NEW_INTERVAL',_0x489839[_0x3416db(0xa76)]=!![];else{if(_0x489839[_0x3416db(0x2765)][_0x3416db(0x2765)]!==_0x3416db(0x1559)){_0x489839[_0x3416db(0x1142)]=_0x3416db(0x1802);const _0x136ff3=_0x489839['interval'][_0x3416db(0x2765)][_0x3416db(0x10c8)](','),_0x5ddf7a=_0x136ff3[0x0],_0x5ad027=_0x136ff3[0x1],_0x561344=_0x136ff3[0x2],_0x3d6122=_0x136ff3[0x3];if(_0x5ddf7a!=='*'){const _0x287d76=_0x5ddf7a[_0x3416db(0x10c8)]('-')[0x0],_0x5caf7c=_0x5ddf7a[_0x3416db(0x10c8)]('-')[0x1];let _0x1518b5;_0x1518b5=new Date(),_0x1518b5['setHours'](Number(_0x287d76['split'](':')[0x0])),_0x1518b5[_0x3416db(0x2348)](Number(_0x287d76[_0x3416db(0x10c8)](':')[0x1])),_0x489839[_0x3416db(0x2469)]=_0x1518b5,_0x1518b5=new Date(),_0x1518b5['setHours'](Number(_0x5caf7c[_0x3416db(0x10c8)](':')[0x0])),_0x1518b5[_0x3416db(0x2348)](Number(_0x5caf7c[_0x3416db(0x10c8)](':')[0x1])),_0x489839[_0x3416db(0x637)]=_0x1518b5;}_0x5ad027!=='*'&&(_0x489839[_0x3416db(0x1455)]=_0x5ad027[_0x3416db(0x10c8)]('-')[0x0],_0x489839[_0x3416db(0x27a1)]=_0x5ad027[_0x3416db(0x10c8)]('-')[0x1]),_0x561344!=='*'&&(_0x489839[_0x3416db(0xf0b)]=_0x561344[_0x3416db(0x10c8)]('-')[0x0],_0x489839['monthDayTo']=_0x561344[_0x3416db(0x10c8)]('-')[0x1]),_0x3d6122!=='*'&&(_0x489839[_0x3416db(0x167)]=_0x3d6122['split']('-')[0x0],_0x489839['monthTo']=_0x3d6122[_0x3416db(0x10c8)]('-')[0x1]);}else _0x489839[_0x3416db(0x1142)]=_0x3416db(0xd85);}_0x46ba11[_0x3416db(0x16a)]['id']&&!_0x489839[_0x3416db(0x2765)]['application']&&(_0x489839['interval'][_0x3416db(0x1ff2)]=_0x46ba11[_0x3416db(0x16a)]['id']);_0x489839[_0x3416db(0x2765)][_0x3416db(0x1ff2)]&&_0x489839[_0x3416db(0x2765)][_0x3416db(0xea)]&&(_0x489839[_0x3416db(0x1142)]=_0x3416db(0x25f4));_0x489839[_0x3416db(0x2f0)]=_0x11d3f8,_0x489839[_0x3416db(0x1242)]=_0x53c195,_0x489839[_0x3416db(0x13f3)]=_0x15ccbb;_0x489839[_0x3416db(0x2765)][_0x3416db(0xea)]&&(_0x2745ce[_0x3416db(0x23e0)](_0x3416db(0x174b))?_0x35526a['interval'][_0x3416db(0x16b4)]({'fields':_0x3416db(0x648),'IntervalId':'null','nolimit':!![]})[_0x3416db(0x2945)]['then'](function(_0x553b01){const _0x57bf7c=_0x3416db;_0x489839[_0x57bf7c(0x278f)]=_0x553b01[_0x57bf7c(0x19c7)]||[];})[_0x3416db(0x129e)](function(_0x892068){const _0x4ca7b4=_0x3416db;_0xa12fc6[_0x4ca7b4(0x1980)]({'title':_0x892068[_0x4ca7b4(0x107b)]?'API:'+_0x892068[_0x4ca7b4(0x107b)]+_0x4ca7b4(0x1315)+_0x892068[_0x4ca7b4(0x167f)]:_0x4ca7b4(0x603),'msg':_0x892068['data']?JSON[_0x4ca7b4(0x10bb)](_0x892068[_0x4ca7b4(0x524)]):_0x892068['toString']()});}):_0x35526a['interval'][_0x3416db(0x16b4)]({'fields':'id,name,interval,IntervalId','IntervalId':_0x3416db(0x203c),'nolimit':!![]})[_0x3416db(0x2945)][_0x3416db(0x146b)](function(_0x4ea0e4){const _0x452f1f=_0x3416db;_0x489839['intervals']=_0x4ea0e4[_0x452f1f(0x19c7)]||[];})[_0x3416db(0x146b)](function(){const _0x1bfb27=_0x3416db;return _0x35526a[_0x1bfb27(0x1366)][_0x1bfb27(0x16b4)]({'userProfileId':_0x489839[_0x1bfb27(0x2321)][_0x1bfb27(0x209a)],'sectionId':0x3ec})[_0x1bfb27(0x2945)];})[_0x3416db(0x146b)](function(_0x4f437e){const _0x591fb2=_0x3416db,_0x37b899=_0x4f437e&&_0x4f437e[_0x591fb2(0x19c7)]?_0x4f437e[_0x591fb2(0x19c7)][0x0]:null;if(!_0x37b899)_0x489839[_0x591fb2(0x278f)]=[];else{if(!_0x37b899[_0x591fb2(0x11d2)])return _0x35526a[_0x591fb2(0xdcc)][_0x591fb2(0x16b4)]({'sectionId':_0x37b899['id']})[_0x591fb2(0x2945)][_0x591fb2(0x146b)](function(_0x333df3){const _0x1b67e7=_0x591fb2,_0x1c48d0=_0x333df3&&_0x333df3[_0x1b67e7(0x19c7)]?_0x333df3[_0x1b67e7(0x19c7)]:[],_0x290f2e=[];let _0x1d7137=null;_0x489839[_0x1b67e7(0x2765)]&&(_0x1d7137=_0x3f65c0()[_0x1b67e7(0xc84)](_0x489839[_0x1b67e7(0x278f)],{'name':_0x489839['interval']['IntervalId']})),_0x1d7137&&!_0x3f65c0()[_0x1b67e7(0x1360)](_0x1c48d0,['resourceId',_0x1d7137['id']])&&_0x489839[_0x1b67e7(0x278f)][_0x1b67e7(0x1df5)](function(_0x6c8dd4){const _0xf001c1=_0x1b67e7;_0x6c8dd4['id']===_0x1d7137['id']&&(_0x6c8dd4['canSelect']=![],_0x290f2e[_0xf001c1(0x1f47)](_0x6c8dd4));}),_0x489839[_0x1b67e7(0x278f)]=_0x290f2e;});}})[_0x3416db(0x129e)](function(_0x372a03){const _0x34cb89=_0x3416db;_0xa12fc6['error']({'title':_0x372a03[_0x34cb89(0x107b)]?_0x34cb89(0x262a)+_0x372a03[_0x34cb89(0x107b)]+'\x20-\x20'+_0x372a03['statusText']:_0x34cb89(0x603),'msg':_0x372a03[_0x34cb89(0x524)]?JSON['stringify'](_0x372a03['data']):_0x372a03[_0x34cb89(0xd5f)]()});}));function _0x1d4cfa(){const _0x358060=_0x3416db;switch(_0x489839[_0x358060(0x1142)]){case _0x358060(0xd85):case'list':return _0x358060(0x1559);case _0x358060(0x1802):{const _0x5a8b82=[];if(_0x489839[_0x358060(0x2469)]!=='*'&&_0x489839[_0x358060(0x2469)]&&_0x489839[_0x358060(0x637)]){const _0x46ab59=(_0x489839[_0x358060(0x2469)][_0x358060(0x1d57)]()<0xa?'0':'')+_0x489839[_0x358060(0x2469)]['getHours']()+':'+((_0x489839[_0x358060(0x2469)][_0x358060(0x7fc)]()<0xa?'0':'')+_0x489839[_0x358060(0x2469)]['getMinutes']()),_0x578ec6=(_0x489839['timeRangeTo'][_0x358060(0x1d57)]()<0xa?'0':'')+_0x489839['timeRangeTo']['getHours']()+':'+((_0x489839['timeRangeTo']['getMinutes']()<0xa?'0':'')+_0x489839[_0x358060(0x637)][_0x358060(0x7fc)]());_0x5a8b82['push'](_0x46ab59+'-'+_0x578ec6);}else _0x5a8b82[_0x358060(0x1f47)]('*');return _0x489839[_0x358060(0x1455)]?_0x489839['dayOfWeekTo']?_0x5a8b82[_0x358060(0x1f47)](_0x489839[_0x358060(0x1455)]+'-'+_0x489839[_0x358060(0x27a1)]):_0x5a8b82[_0x358060(0x1f47)](_0x489839[_0x358060(0x1455)]):_0x5a8b82[_0x358060(0x1f47)]('*'),_0x489839[_0x358060(0xf0b)]?_0x489839[_0x358060(0x896)]?_0x5a8b82[_0x358060(0x1f47)](_0x489839['monthDayFrom']+'-'+_0x489839['monthDayTo']):_0x5a8b82[_0x358060(0x1f47)](_0x489839[_0x358060(0xf0b)]):_0x5a8b82['push']('*'),_0x489839[_0x358060(0x167)]?_0x489839[_0x358060(0x9c3)]?_0x5a8b82[_0x358060(0x1f47)](_0x489839['monthFrom']+'-'+_0x489839[_0x358060(0x9c3)]):_0x5a8b82['push'](_0x489839[_0x358060(0x167)]):_0x5a8b82[_0x358060(0x1f47)]('*'),_0x5a8b82[_0x358060(0xb47)]();}}}function _0x11d3f8(){const _0x1360b4=_0x3416db;_0x489839[_0x1360b4(0xcef)]=[],_0x489839[_0x1360b4(0x2765)][_0x1360b4(0x2765)]=_0x1d4cfa(),_0x35526a['interval'][_0x1360b4(0x1e3)](_0x489839[_0x1360b4(0x2765)])['$promise']['then'](function(_0x17b561){const _0xa60541=_0x1360b4;_0x489839['intervals']['push'](_0x17b561),_0xa12fc6[_0xa60541(0x1c75)]({'title':_0xa60541(0x17f5),'msg':_0x489839[_0xa60541(0x2765)][_0xa60541(0x19eb)]?_0x489839['interval']['name']+_0xa60541(0x1386):''}),_0x15ccbb();})[_0x1360b4(0x129e)](function(_0x53b1bc){const _0xe4784a=_0x1360b4;console[_0xe4784a(0x1980)](_0x53b1bc),_0x489839[_0xe4784a(0xcef)]=_0x53b1bc[_0xe4784a(0x524)]['errors']||[{'message':_0x53b1bc['toString'](),'type':_0xe4784a(0x7e7)}];});}function _0x53c195(){const _0x23ec3f=_0x3416db;_0x489839[_0x23ec3f(0xcef)]=[],_0x489839[_0x23ec3f(0x2765)][_0x23ec3f(0x2765)]=_0x1d4cfa(),_0x489839[_0x23ec3f(0x2765)]['application']?(_0x489839[_0x23ec3f(0x1142)]!==_0x23ec3f(0x25f4)&&(_0x489839['interval'][_0x23ec3f(0x1ff2)]=null),_0x15ccbb(_0x489839[_0x23ec3f(0x2765)])):_0x35526a[_0x23ec3f(0x2765)][_0x23ec3f(0x18e1)]({'id':_0x489839[_0x23ec3f(0x2765)]['id']},_0x489839['interval'])[_0x23ec3f(0x2945)][_0x23ec3f(0x146b)](function(_0xa2fd82){const _0x22d885=_0x23ec3f,_0x501e40=_0x3f65c0()[_0x22d885(0xc84)](_0x489839[_0x22d885(0x278f)],{'id':_0xa2fd82['id']});_0x501e40&&_0x3f65c0()[_0x22d885(0x168d)](_0x501e40,_0xa2fd82),_0xa12fc6[_0x22d885(0x1c75)]({'title':_0x22d885(0x1d51),'msg':_0x22d885(0x97a)}),_0x15ccbb();})[_0x23ec3f(0x129e)](function(_0x2692d5){const _0x36c7b9=_0x23ec3f;console[_0x36c7b9(0x1980)](_0x2692d5),_0x489839['errors']=_0x2692d5['data'][_0x36c7b9(0xcef)]||[{'message':_0x2692d5[_0x36c7b9(0xd5f)](),'type':_0x36c7b9(0x1fbe)}];});}function _0x15ccbb(_0xf3b6b8){const _0x23dc35=_0x3416db;_0x1bd992[_0x23dc35(0x2458)](_0xf3b6b8);}}const _0x914af5=_0x4082e4;;_0x36512a[_0x313a4d(0x11c2)]=[_0x313a4d(0x10e8),'$q','toasty',_0x313a4d(0x2116),_0x313a4d(0xbd7),_0x313a4d(0x247f),'Auth',_0x313a4d(0x2514)];function _0x36512a(_0x362aec,_0x8d95a2,_0x487192,_0x5228cf,_0x4d376b,_0x1ae955,_0xfc9cc2,_0xa9011a){const _0x4e606e=_0x313a4d,_0x5c4052=this;_0x5c4052['currentUser']=_0xfc9cc2[_0x4e606e(0xb12)](),_0x5c4052[_0x4e606e(0xcef)]=[],_0x5c4052[_0x4e606e(0x1189)]=_0x4e606e(0x29b)+(_0x5228cf['appType']||_0x5228cf[_0x4e606e(0x1873)])['toUpperCase'](),_0x5c4052['noop']=angular[_0x4e606e(0x235a)](_0x5228cf),_0x5c4052[_0x4e606e(0x2514)]=_0xa9011a,_0x5c4052[_0x4e606e(0x855)]={};if(_0x5c4052[_0x4e606e(0x309)][_0x4e606e(0x168a)])switch(_0x5c4052[_0x4e606e(0x309)]['appType']?_0x5c4052[_0x4e606e(0x309)]['appType']['toLowerCase']():_0x5c4052[_0x4e606e(0x309)][_0x4e606e(0x1873)][_0x4e606e(0x256e)]()){case'custom':break;case _0x4e606e(0xeaa):{const _0x184aca=_0x5c4052[_0x4e606e(0x309)][_0x4e606e(0x168a)][_0x4e606e(0x10c8)](',');_0x5c4052[_0x4e606e(0x309)][_0x4e606e(0x2293)]=_0x184aca[0x0],_0x5c4052[_0x4e606e(0x309)]['language']=_0x184aca[0x1],_0x5c4052[_0x4e606e(0x309)][_0x4e606e(0xaf3)]=_0x184aca[_0x4e606e(0x1298)](0x2,_0x184aca[_0x4e606e(0x402)])[_0x4e606e(0xb47)](',');}break;case _0x4e606e(0xa46):{const _0x271910=_0x5c4052[_0x4e606e(0x309)][_0x4e606e(0x168a)][_0x4e606e(0x10c8)](',');_0x5c4052[_0x4e606e(0x309)][_0x4e606e(0x153a)]=_0x271910[0x0],_0x5c4052['noop'][_0x4e606e(0x1392)]=_0x271910[0x1],_0x5c4052[_0x4e606e(0x309)]['privateKey']=_0x271910[0x2],_0x5c4052[_0x4e606e(0x309)][_0x4e606e(0x90b)]=_0x271910[0x3],_0x5c4052['noop'][_0x4e606e(0xaf3)]=_0x271910[_0x4e606e(0x1298)](0x4,_0x271910[_0x4e606e(0x402)])['join'](',');}break;case'amazonlex':{const _0x992cb=_0x5c4052[_0x4e606e(0x309)][_0x4e606e(0x168a)][_0x4e606e(0x10c8)](',');_0x5c4052['noop'][_0x4e606e(0x1651)]=_0x992cb[0x0],_0x5c4052[_0x4e606e(0x309)][_0x4e606e(0x252)]=_0x992cb[0x1],_0x5c4052[_0x4e606e(0x309)]['lexregion']=_0x992cb[0x2],_0x5c4052['noop'][_0x4e606e(0x8dd)]=_0x992cb[0x3],_0x5c4052[_0x4e606e(0x309)][_0x4e606e(0xaf3)]=_0x992cb[_0x4e606e(0x1298)](0x4,_0x992cb[_0x4e606e(0x402)])[_0x4e606e(0xb47)](',');}break;case _0x4e606e(0x1713):{const _0x1f0ce0=_0x5c4052[_0x4e606e(0x309)][_0x4e606e(0x168a)]['split'](',');_0x5c4052['noop'][_0x4e606e(0x583)]=isNaN(_0x1f0ce0[0x0])?_0x1f0ce0[0x0]:parseInt(_0x1f0ce0[0x0],0xa),_0x5c4052[_0x4e606e(0x309)][_0x4e606e(0xa8d)]=_0x1f0ce0[_0x4e606e(0x1298)](0x1,_0x1f0ce0['length'])[_0x4e606e(0xb47)](',');}break;case _0x4e606e(0x7fd):_0x5c4052[_0x4e606e(0x309)]['text']=_0x5c4052['noop'][_0x4e606e(0x168a)];break;case _0x4e606e(0x26ba):_0x5c4052['noop'][_0x4e606e(0x19eb)]=_0x5c4052[_0x4e606e(0x309)][_0x4e606e(0x168a)][_0x4e606e(0x10c8)]('=')[0x0],_0x5c4052['noop'][_0x4e606e(0x175d)]=_0x5c4052[_0x4e606e(0x309)][_0x4e606e(0x168a)][_0x4e606e(0x10c8)]('=')[0x1];break;case _0x4e606e(0x1ecb):_0x5c4052['noop'][_0x4e606e(0x9e0)]=_0x5c4052[_0x4e606e(0x309)][_0x4e606e(0x168a)];break;default:{const _0x4080ad=_0x5c4052['noop'][_0x4e606e(0x168a)][_0x4e606e(0x10c8)](',');_0x5c4052[_0x4e606e(0x309)][_0x4e606e(0x175d)]=_0x3f65c0()[_0x4e606e(0x2635)](_0x4080ad[0x0])?_0x4080ad[0x0]:isNaN(_0x4080ad[0x0])?_0x4080ad[0x0]:parseInt(_0x4080ad[0x0],0xa);}break;}else{}_0x5c4052[_0x4e606e(0x309)][_0x4e606e(0x1142)]&&_0x5c4052[_0x4e606e(0x309)][_0x4e606e(0x1142)][_0x4e606e(0x256e)]()===_0x4e606e(0xc9c)&&_0x5c4052[_0x4e606e(0x309)][_0x4e606e(0x8f2)][_0x4e606e(0x256e)]()===_0x4e606e(0x3bb)&&(_0x5c4052['noop']['prefix']=_0x5c4052[_0x4e606e(0x309)][_0x4e606e(0x1d55)]?_0x5c4052[_0x4e606e(0x309)][_0x4e606e(0x1d55)]['split']('$')[0x0]:undefined,_0x5c4052[_0x4e606e(0x309)][_0x4e606e(0x1d43)]=_0x5c4052[_0x4e606e(0x309)][_0x4e606e(0x11be)]?_0x4e606e(0x1b60)+_0x5c4052[_0x4e606e(0x309)][_0x4e606e(0x11be)]:undefined);_0x5c4052[_0x4e606e(0x1e69)]=_0x3210e6,_0x5c4052[_0x4e606e(0x13f3)]=_0x57ea97;function _0x3210e6(){const _0x900c64=_0x4e606e;_0x5c4052['errors']=[];const _0x3d409a=[];_0x5c4052['noop'][_0x900c64(0x1142)]&&_0x5c4052['noop']['type']['toLowerCase']()===_0x900c64(0xc9c)&&_0x5c4052[_0x900c64(0x309)]['appType']===_0x900c64(0x118b)&&(_0x5c4052[_0x900c64(0x309)][_0x900c64(0x1d55)]=_0x4d376b[_0x900c64(0x1274)]?(_0x5c4052['noop'][_0x900c64(0x1e12)]||'')+_0x900c64(0x2147)+_0x4d376b[_0x900c64(0x1274)]+'}':(_0x5c4052[_0x900c64(0x309)][_0x900c64(0x1e12)]||'')+_0x900c64(0x20df),_0x4d376b[_0x900c64(0x1425)]!==_0x900c64(0x1642)?_0x5c4052[_0x900c64(0x309)]['options'][_0x900c64(0x172b)](_0x900c64(0x1ea4))<0x0&&(_0x5c4052[_0x900c64(0x309)][_0x900c64(0xa08)]+=_0x900c64(0x1ea4)):_0x5c4052['noop'][_0x900c64(0xa08)]=_0x5c4052['noop'][_0x900c64(0xa08)][_0x900c64(0x5f4)]('U(xcally-mixmonitor-context)',''));if(_0x5c4052['noop']['appType']&&_0x5c4052[_0x900c64(0x309)][_0x900c64(0x8f2)]===_0x900c64(0x1802)){}else switch((_0x5c4052[_0x900c64(0x309)][_0x900c64(0x1873)]||_0x5c4052[_0x900c64(0x309)][_0x900c64(0x8f2)])['toLowerCase']()){case _0x900c64(0x26ba):_0x5c4052[_0x900c64(0x309)][_0x900c64(0x168a)]=_0x5c4052['noop'][_0x900c64(0x19eb)]+'='+_0x5c4052[_0x900c64(0x309)][_0x900c64(0x175d)];break;case _0x900c64(0x1802):break;default:_0x3d409a[0x0]=_0x5c4052[_0x900c64(0x309)]['value'],_0x5c4052[_0x900c64(0x309)][_0x900c64(0x168a)]=_0x3d409a[_0x900c64(0xb47)](',');}_0x57ea97(_0x5c4052['noop']);}function _0x57ea97(_0x2c4b13){const _0xfe70c5=_0x4e606e;_0x362aec[_0xfe70c5(0x2458)](_0x2c4b13);}}const _0x430714=_0x36512a;;_0x5d3367[_0x313a4d(0x11c2)]=[_0x313a4d(0x10e8),'$q',_0x313a4d(0x1fe4),'openchannelAccountApp',_0x313a4d(0xbd7),'api',_0x313a4d(0xa87),_0x313a4d(0x2514)];function _0x5d3367(_0xa700cc,_0x9e6afb,_0x198e60,_0x175f7,_0x58e42e,_0x5cdd2c,_0xf6fb15,_0x556ed7){const _0x403716=_0x313a4d,_0x1e2031=this;_0x1e2031[_0x403716(0x2321)]=_0xf6fb15[_0x403716(0xb12)](),_0x1e2031['errors']=[],_0x1e2031['title']=_0x403716(0x29b)+(_0x175f7[_0x403716(0x8f2)]||_0x175f7[_0x403716(0x1873)])[_0x403716(0x1c37)](),_0x1e2031['queue']=angular[_0x403716(0x235a)](_0x175f7),_0x1e2031[_0x403716(0x2514)]=_0x556ed7,_0x1e2031[_0x403716(0x855)]={};if(_0x1e2031['queue'][_0x403716(0x168a)])switch(_0x1e2031[_0x403716(0x1c72)]['appType']?_0x1e2031[_0x403716(0x1c72)][_0x403716(0x8f2)][_0x403716(0x256e)]():_0x1e2031[_0x403716(0x1c72)][_0x403716(0x1873)][_0x403716(0x256e)]()){case _0x403716(0x1802):break;case _0x403716(0xeaa):{const _0x22a1f1=_0x1e2031[_0x403716(0x1c72)][_0x403716(0x168a)]['split'](',');_0x1e2031[_0x403716(0x1c72)][_0x403716(0x2293)]=_0x22a1f1[0x0],_0x1e2031[_0x403716(0x1c72)][_0x403716(0x90b)]=_0x22a1f1[0x1],_0x1e2031[_0x403716(0x1c72)][_0x403716(0xaf3)]=_0x22a1f1[_0x403716(0x1298)](0x2,_0x22a1f1[_0x403716(0x402)])['join'](',');}break;case _0x403716(0xa46):{const _0x35213b=_0x1e2031[_0x403716(0x1c72)][_0x403716(0x168a)][_0x403716(0x10c8)](',');_0x1e2031[_0x403716(0x1c72)][_0x403716(0x153a)]=_0x35213b[0x0],_0x1e2031[_0x403716(0x1c72)][_0x403716(0x1392)]=_0x35213b[0x1],_0x1e2031[_0x403716(0x1c72)][_0x403716(0x2217)]=_0x35213b[0x2],_0x1e2031[_0x403716(0x1c72)][_0x403716(0x90b)]=_0x35213b[0x3],_0x1e2031[_0x403716(0x1c72)][_0x403716(0xaf3)]=_0x35213b['slice'](0x4,_0x35213b[_0x403716(0x402)])[_0x403716(0xb47)](',');}break;case _0x403716(0x17d6):{const _0x358ad1=_0x1e2031[_0x403716(0x1c72)][_0x403716(0x168a)][_0x403716(0x10c8)](',');_0x1e2031['queue'][_0x403716(0x1651)]=_0x358ad1[0x0],_0x1e2031['queue']['secretaccesskey']=_0x358ad1[0x1],_0x1e2031[_0x403716(0x1c72)][_0x403716(0x1039)]=_0x358ad1[0x2],_0x1e2031[_0x403716(0x1c72)][_0x403716(0x8dd)]=_0x358ad1[0x3],_0x1e2031['queue'][_0x403716(0xaf3)]=_0x358ad1['slice'](0x4,_0x358ad1['length'])[_0x403716(0xb47)](',');}break;case _0x403716(0x1713):{const _0x2b6b33=_0x1e2031[_0x403716(0x1c72)][_0x403716(0x168a)][_0x403716(0x10c8)](',');_0x1e2031[_0x403716(0x1c72)][_0x403716(0x583)]=isNaN(_0x2b6b33[0x0])?_0x2b6b33[0x0]:parseInt(_0x2b6b33[0x0],0xa),_0x1e2031[_0x403716(0x1c72)][_0x403716(0xa8d)]=_0x2b6b33[_0x403716(0x1298)](0x1,_0x2b6b33[_0x403716(0x402)])['join'](',');}break;case'message':_0x1e2031[_0x403716(0x1c72)]['text']=_0x1e2031[_0x403716(0x1c72)]['appdata'];break;case'set':_0x1e2031[_0x403716(0x1c72)][_0x403716(0x19eb)]=_0x1e2031['queue'][_0x403716(0x168a)][_0x403716(0x10c8)]('=')[0x0],_0x1e2031[_0x403716(0x1c72)][_0x403716(0x175d)]=_0x1e2031[_0x403716(0x1c72)][_0x403716(0x168a)][_0x403716(0x10c8)]('=')[0x1];break;case'agi':_0x1e2031['queue'][_0x403716(0x9e0)]=_0x1e2031[_0x403716(0x1c72)]['appdata'];break;default:{const _0x97ca8b=_0x1e2031['queue'][_0x403716(0x168a)]['split'](',');_0x1e2031[_0x403716(0x1c72)][_0x403716(0x1c72)]=_0x3f65c0()['isEmpty'](_0x97ca8b[0x0])?_0x97ca8b[0x0]:isNaN(_0x97ca8b[0x0])?_0x97ca8b[0x0]:parseInt(_0x97ca8b[0x0],0xa),_0x1e2031[_0x403716(0x1c72)][_0x403716(0xa9c)]=_0x3f65c0()['isEmpty'](_0x97ca8b[0x1])?_0x97ca8b[0x1]:isNaN(_0x97ca8b[0x1])?_0x97ca8b[0x1]:parseInt(_0x97ca8b[0x1],0xa);}break;}else _0x1e2031[_0x403716(0x1c72)][_0x403716(0x1c72)]=0x12c,_0x1e2031['queue'][_0x403716(0xa9c)]=0x12c;_0x1e2031[_0x403716(0x1c72)][_0x403716(0x1142)]&&_0x1e2031['queue']['type'][_0x403716(0x256e)]()==='outbound'&&_0x1e2031[_0x403716(0x1c72)][_0x403716(0x8f2)][_0x403716(0x256e)]()===_0x403716(0x3bb)&&(_0x1e2031[_0x403716(0x1c72)][_0x403716(0x1e12)]=_0x1e2031[_0x403716(0x1c72)][_0x403716(0x1d55)]?_0x1e2031[_0x403716(0x1c72)][_0x403716(0x1d55)][_0x403716(0x10c8)]('$')[0x0]:undefined,_0x1e2031[_0x403716(0x1c72)][_0x403716(0x1d43)]=_0x1e2031['queue']['callerID']?'CALLERID(all)='+_0x1e2031[_0x403716(0x1c72)]['callerID']:undefined);_0x1e2031[_0x403716(0x1e69)]=_0x403528,_0x1e2031['closeDialog']=_0x36517f,_0xf6fb15[_0x403716(0x23e0)](_0x403716(0x174b))?_0x5cdd2c[_0x403716(0x2755)][_0x403716(0x16b4)]({'fields':_0x403716(0x45e),'sort':_0x403716(0x19eb),'nolimit':_0x403716(0x1185)})['$promise'][_0x403716(0x146b)](function(_0x4a630f){const _0xaa00a3=_0x403716;_0x1e2031[_0xaa00a3(0x1b32)]=_0x4a630f[_0xaa00a3(0x19c7)]||[];})[_0x403716(0x129e)](function(_0x557557){const _0x23fb14=_0x403716;_0x198e60[_0x23fb14(0x1980)]({'title':_0x557557[_0x23fb14(0x107b)]?'API:'+_0x557557['status']+_0x23fb14(0x1315)+_0x557557[_0x23fb14(0x167f)]:_0x23fb14(0x22d8),'msg':_0x557557['data']?JSON[_0x23fb14(0x10bb)](_0x557557[_0x23fb14(0x524)]):_0x557557[_0x23fb14(0xd5f)]()});}):_0x5cdd2c['openchannelQueue'][_0x403716(0x16b4)]({'fields':_0x403716(0x45e),'sort':_0x403716(0x19eb),'nolimit':_0x403716(0x1185)})[_0x403716(0x2945)][_0x403716(0x146b)](function(_0x1bb932){const _0x316ab6=_0x403716;_0x1e2031[_0x316ab6(0x1b32)]=_0x1bb932[_0x316ab6(0x19c7)]||[];})[_0x403716(0x146b)](function(){const _0x1e5d26=_0x403716;return _0x5cdd2c['userProfileSection'][_0x1e5d26(0x16b4)]({'userProfileId':_0x1e2031['currentUser']['userProfileId'],'sectionId':0x321})[_0x1e5d26(0x2945)];})['then'](function(_0x1f9143){const _0x4a7601=_0x403716,_0x553656=_0x1f9143&&_0x1f9143[_0x4a7601(0x19c7)]?_0x1f9143[_0x4a7601(0x19c7)][0x0]:null;if(!_0x553656){const _0x510b6b=[];let _0x30abe6=null;_0x1e2031['queue']&&(_0x30abe6=_0x3f65c0()[_0x4a7601(0xc84)](_0x1e2031[_0x4a7601(0x1b32)],{'name':_0x1e2031[_0x4a7601(0x1c72)][_0x4a7601(0x1c72)]}));for(let _0x544772=0x0;_0x544772<_0x1e2031['queues']['length'];_0x544772++){_0x30abe6&&_0x1e2031[_0x4a7601(0x1b32)][_0x544772]['id']===_0x30abe6['id']&&(_0x1e2031[_0x4a7601(0x1b32)][_0x544772][_0x4a7601(0x8ff)]=![],_0x510b6b['push'](_0x1e2031['queues'][_0x544772]));}_0x1e2031[_0x4a7601(0x1b32)]=_0x510b6b;}else{if(!_0x553656[_0x4a7601(0x11d2)])return _0x5cdd2c[_0x4a7601(0xdcc)][_0x4a7601(0x16b4)]({'sectionId':_0x553656['id']})[_0x4a7601(0x2945)][_0x4a7601(0x146b)](function(_0x4d9e00){const _0x5b7a03=_0x4a7601,_0xb44d59=_0x3f65c0()[_0x5b7a03(0x205)](_0x4d9e00['rows'],function(_0x125733){const _0x4a812f=_0x5b7a03;return _0x3f65c0()[_0x4a812f(0xc84)](_0x1e2031[_0x4a812f(0x1b32)],{'id':_0x125733[_0x4a812f(0x18b8)]});});let _0x27e228=null;_0x1e2031['queue']&&(_0x27e228=_0x3f65c0()[_0x5b7a03(0xc84)](_0x1e2031['queues'],{'name':_0x1e2031[_0x5b7a03(0x1c72)][_0x5b7a03(0x1c72)]}));if(_0x27e228&&!_0x3f65c0()[_0x5b7a03(0x1360)](_0xb44d59,['id',_0x27e228['id']])){const _0x4f6fcd=_0x3f65c0()['find'](_0x1e2031[_0x5b7a03(0x1b32)],{'id':_0x27e228['id']});_0x4f6fcd['canSelect']=![],_0xb44d59[_0x5b7a03(0x1f47)](_0x4f6fcd);}_0x1e2031[_0x5b7a03(0x1b32)]=_0xb44d59;});}})['catch'](function(_0x314748){const _0x2299d5=_0x403716;_0x198e60[_0x2299d5(0x1980)]({'title':_0x314748[_0x2299d5(0x107b)]?_0x2299d5(0x262a)+_0x314748[_0x2299d5(0x107b)]+_0x2299d5(0x1315)+_0x314748[_0x2299d5(0x167f)]:'SYSTEM:GETqueues','msg':_0x314748[_0x2299d5(0x524)]?JSON['stringify'](_0x314748['data']):_0x314748[_0x2299d5(0xd5f)]()});});function _0x403528(){const _0x51bceb=_0x403716;_0x1e2031[_0x51bceb(0xcef)]=[];const _0x44a917=[];_0x1e2031[_0x51bceb(0x1c72)][_0x51bceb(0x1142)]&&_0x1e2031[_0x51bceb(0x1c72)][_0x51bceb(0x1142)][_0x51bceb(0x256e)]()===_0x51bceb(0xc9c)&&_0x1e2031[_0x51bceb(0x1c72)][_0x51bceb(0x8f2)]==='outboundDial'&&(_0x1e2031['queue']['phone']=_0x58e42e[_0x51bceb(0x1274)]?(_0x1e2031[_0x51bceb(0x1c72)][_0x51bceb(0x1e12)]||'')+_0x51bceb(0x2147)+_0x58e42e['cutdigits']+'}':(_0x1e2031[_0x51bceb(0x1c72)][_0x51bceb(0x1e12)]||'')+'${EXTEN}',_0x58e42e[_0x51bceb(0x1425)]!==_0x51bceb(0x1642)?_0x1e2031[_0x51bceb(0x1c72)][_0x51bceb(0xa08)][_0x51bceb(0x172b)]('U(xcally-mixmonitor-context)')<0x0&&(_0x1e2031['queue'][_0x51bceb(0xa08)]+=_0x51bceb(0x1ea4)):_0x1e2031[_0x51bceb(0x1c72)][_0x51bceb(0xa08)]=_0x1e2031['queue'][_0x51bceb(0xa08)][_0x51bceb(0x5f4)](_0x51bceb(0x1ea4),''));const _0x1c2873=_0x3f65c0()[_0x51bceb(0xc84)](_0x1e2031['queues'],{'name':_0x1e2031['queue'][_0x51bceb(0x1c72)]});_0x1c2873&&(_0x1e2031['queue'][_0x3f65c0()[_0x51bceb(0x83f)](_0x51bceb(0x8de))+_0x51bceb(0x23f8)]=_0x1c2873['id']);if(_0x1e2031['queue'][_0x51bceb(0x8f2)]&&_0x1e2031[_0x51bceb(0x1c72)]['appType']==='custom'){}else switch((_0x1e2031[_0x51bceb(0x1c72)][_0x51bceb(0x1873)]||_0x1e2031['queue'][_0x51bceb(0x8f2)])[_0x51bceb(0x256e)]()){case _0x51bceb(0x26ba):_0x1e2031['queue'][_0x51bceb(0x168a)]=_0x1e2031['queue']['name']+'='+_0x1e2031[_0x51bceb(0x1c72)][_0x51bceb(0x175d)];break;case _0x51bceb(0x1802):break;default:_0x44a917[0x0]=_0x1e2031[_0x51bceb(0x1c72)][_0x51bceb(0x1c72)],_0x44a917[0x1]=_0x1e2031[_0x51bceb(0x1c72)][_0x51bceb(0xa9c)],_0x1e2031[_0x51bceb(0x1c72)][_0x51bceb(0x168a)]=_0x44a917[_0x51bceb(0xb47)](',');}_0x36517f(_0x1e2031[_0x51bceb(0x1c72)]);}function _0x36517f(_0x4ba773){const _0x5116ab=_0x403716;_0xa700cc[_0x5116ab(0x2458)](_0x4ba773);}}const _0x5c823b=_0x5d3367;;_0x564df1[_0x313a4d(0x11c2)]=['$mdDialog','$q',_0x313a4d(0x1fe4),'openchannelAccountApp',_0x313a4d(0xbd7),_0x313a4d(0x247f),_0x313a4d(0xa87),'crudPermissions'];function _0x564df1(_0x1d588a,_0x51f644,_0x1f5fba,_0x2df119,_0x18a023,_0xfe48a3,_0x13099a,_0x323c92){const _0x418ed3=_0x313a4d,_0x55bb03=this;_0x55bb03[_0x418ed3(0x2321)]=_0x13099a[_0x418ed3(0xb12)](),_0x55bb03[_0x418ed3(0xcef)]=[],_0x55bb03[_0x418ed3(0x1189)]=_0x418ed3(0x29b)+(_0x2df119[_0x418ed3(0x8f2)]||_0x2df119[_0x418ed3(0x1873)])['toUpperCase'](),_0x55bb03['system']=angular[_0x418ed3(0x235a)](_0x2df119),_0x55bb03[_0x418ed3(0x2514)]=_0x323c92,_0x55bb03['hasModulePermissions']={};if(_0x55bb03[_0x418ed3(0x1d47)][_0x418ed3(0x168a)])switch(_0x55bb03[_0x418ed3(0x1d47)]['appType']?_0x55bb03[_0x418ed3(0x1d47)]['appType'][_0x418ed3(0x256e)]():_0x55bb03[_0x418ed3(0x1d47)][_0x418ed3(0x1873)]['toLowerCase']()){case'custom':break;case _0x418ed3(0xeaa):{const _0xb25f8e=_0x55bb03['system'][_0x418ed3(0x168a)]['split'](',');_0x55bb03[_0x418ed3(0x1d47)]['key']=_0xb25f8e[0x0],_0x55bb03[_0x418ed3(0x1d47)][_0x418ed3(0x90b)]=_0xb25f8e[0x1],_0x55bb03[_0x418ed3(0x1d47)][_0x418ed3(0xaf3)]=_0xb25f8e[_0x418ed3(0x1298)](0x2,_0xb25f8e[_0x418ed3(0x402)])['join'](',');}break;case'dialogflowv2':{const _0x29f0ae=_0x55bb03[_0x418ed3(0x1d47)]['appdata'][_0x418ed3(0x10c8)](',');_0x55bb03[_0x418ed3(0x1d47)][_0x418ed3(0x153a)]=_0x29f0ae[0x0],_0x55bb03[_0x418ed3(0x1d47)]['clientEmail']=_0x29f0ae[0x1],_0x55bb03['system']['privateKey']=_0x29f0ae[0x2],_0x55bb03['system']['language']=_0x29f0ae[0x3],_0x55bb03[_0x418ed3(0x1d47)][_0x418ed3(0xaf3)]=_0x29f0ae[_0x418ed3(0x1298)](0x4,_0x29f0ae[_0x418ed3(0x402)])[_0x418ed3(0xb47)](',');}break;case _0x418ed3(0x17d6):{const _0x36416a=_0x55bb03['system'][_0x418ed3(0x168a)][_0x418ed3(0x10c8)](',');_0x55bb03['system'][_0x418ed3(0x1651)]=_0x36416a[0x0],_0x55bb03[_0x418ed3(0x1d47)][_0x418ed3(0x252)]=_0x36416a[0x1],_0x55bb03[_0x418ed3(0x1d47)][_0x418ed3(0x1039)]=_0x36416a[0x2],_0x55bb03[_0x418ed3(0x1d47)]['botname']=_0x36416a[0x3],_0x55bb03['system'][_0x418ed3(0xaf3)]=_0x36416a[_0x418ed3(0x1298)](0x4,_0x36416a[_0x418ed3(0x402)])[_0x418ed3(0xb47)](',');}break;case'autoreply':{const _0x59df8a=_0x55bb03[_0x418ed3(0x1d47)][_0x418ed3(0x168a)][_0x418ed3(0x10c8)](',');_0x55bb03[_0x418ed3(0x1d47)][_0x418ed3(0x583)]=isNaN(_0x59df8a[0x0])?_0x59df8a[0x0]:parseInt(_0x59df8a[0x0],0xa),_0x55bb03['system'][_0x418ed3(0xa8d)]=_0x59df8a['slice'](0x1,_0x59df8a['length'])[_0x418ed3(0xb47)](',');}break;case'message':_0x55bb03[_0x418ed3(0x1d47)][_0x418ed3(0xa8d)]=_0x55bb03['system'][_0x418ed3(0x168a)];break;case'set':_0x55bb03[_0x418ed3(0x1d47)][_0x418ed3(0x19eb)]=_0x55bb03[_0x418ed3(0x1d47)][_0x418ed3(0x168a)][_0x418ed3(0x10c8)]('=')[0x0],_0x55bb03[_0x418ed3(0x1d47)]['value']=_0x55bb03[_0x418ed3(0x1d47)][_0x418ed3(0x168a)]['split']('=')[0x1];break;case _0x418ed3(0x1ecb):_0x55bb03['system'][_0x418ed3(0x9e0)]=_0x55bb03['system'][_0x418ed3(0x168a)];break;default:{const _0x43f73b=_0x55bb03[_0x418ed3(0x1d47)][_0x418ed3(0x168a)]['split'](',');_0x55bb03[_0x418ed3(0x1d47)][_0x418ed3(0x23e9)]=_0x3f65c0()[_0x418ed3(0x2635)](_0x43f73b[0x0])?_0x43f73b[0x0]:isNaN(_0x43f73b[0x0])?_0x43f73b[0x0]:parseInt(_0x43f73b[0x0],0xa),_0x55bb03[_0x418ed3(0x1d47)][_0x418ed3(0x212)]=_0x3f65c0()['isEmpty'](_0x43f73b[0x1])?_0x43f73b[0x1]:isNaN(_0x43f73b[0x1])?_0x43f73b[0x1]:parseInt(_0x43f73b[0x1],0xa);}break;}else _0x55bb03[_0x418ed3(0x1d47)][_0x418ed3(0x212)]='';_0x55bb03[_0x418ed3(0x1d47)][_0x418ed3(0x1142)]&&_0x55bb03[_0x418ed3(0x1d47)][_0x418ed3(0x1142)]['toLowerCase']()==='outbound'&&_0x55bb03[_0x418ed3(0x1d47)]['appType'][_0x418ed3(0x256e)]()===_0x418ed3(0x3bb)&&(_0x55bb03[_0x418ed3(0x1d47)][_0x418ed3(0x1e12)]=_0x55bb03[_0x418ed3(0x1d47)]['phone']?_0x55bb03[_0x418ed3(0x1d47)][_0x418ed3(0x1d55)][_0x418ed3(0x10c8)]('$')[0x0]:undefined,_0x55bb03[_0x418ed3(0x1d47)][_0x418ed3(0x1d43)]=_0x55bb03[_0x418ed3(0x1d47)][_0x418ed3(0x11be)]?_0x418ed3(0x1b60)+_0x55bb03[_0x418ed3(0x1d47)][_0x418ed3(0x11be)]:undefined);_0x55bb03[_0x418ed3(0x1e69)]=_0x3517e6,_0x55bb03[_0x418ed3(0x13f3)]=_0x2bfc93,_0x13099a['hasRole'](_0x418ed3(0x174b))?_0xfe48a3[_0x418ed3(0x212)][_0x418ed3(0x16b4)]({'fields':_0x418ed3(0x7a7),'sort':_0x418ed3(0x19eb),'nolimit':_0x418ed3(0x1185)})[_0x418ed3(0x2945)][_0x418ed3(0x146b)](function(_0x43240f){const _0x3b8fc9=_0x418ed3;_0x55bb03[_0x3b8fc9(0x85b)]=_0x43240f[_0x3b8fc9(0x19c7)]||[];})['catch'](function(_0x28bb90){const _0x85f034=_0x418ed3;_0x1f5fba[_0x85f034(0x1980)]({'title':_0x28bb90['status']?_0x85f034(0x262a)+_0x28bb90[_0x85f034(0x107b)]+'\x20-\x20'+_0x28bb90[_0x85f034(0x167f)]:'SYSTEM:GET_VARIABLES','msg':_0x28bb90[_0x85f034(0x524)]?JSON[_0x85f034(0x10bb)](_0x28bb90[_0x85f034(0x524)]):_0x28bb90[_0x85f034(0xd5f)]()});}):_0xfe48a3['variable']['get']({'fields':'id,name','sort':'name','nolimit':'true'})[_0x418ed3(0x2945)]['then'](function(_0x475aba){const _0x4628f3=_0x418ed3;_0x55bb03[_0x4628f3(0x85b)]=_0x475aba[_0x4628f3(0x19c7)]||[];})[_0x418ed3(0x146b)](function(){const _0x13cd74=_0x418ed3;return _0xfe48a3[_0x13cd74(0x1366)][_0x13cd74(0x16b4)]({'userProfileId':_0x55bb03[_0x13cd74(0x2321)][_0x13cd74(0x209a)],'sectionId':0x3f4})[_0x13cd74(0x2945)];})['then'](function(_0x18287c){const _0x40eab6=_0x418ed3,_0x78408b=_0x18287c&&_0x18287c[_0x40eab6(0x19c7)]?_0x18287c[_0x40eab6(0x19c7)][0x0]:null;if(!_0x78408b){const _0x1e847e=[];let _0x319753=null;_0x55bb03[_0x40eab6(0x1d47)]&&(_0x319753=_0x3f65c0()[_0x40eab6(0xc84)](_0x55bb03[_0x40eab6(0x85b)],{'name':_0x55bb03[_0x40eab6(0x1d47)][_0x40eab6(0x212)]}));for(let _0x395e31=0x0;_0x395e31<_0x55bb03['variables'][_0x40eab6(0x402)];_0x395e31++){_0x319753&&_0x55bb03['variables'][_0x395e31]['id']===_0x319753['id']&&(_0x55bb03[_0x40eab6(0x85b)][_0x395e31][_0x40eab6(0x8ff)]=![],_0x1e847e[_0x40eab6(0x1f47)](_0x55bb03[_0x40eab6(0x85b)][_0x395e31]));}_0x55bb03[_0x40eab6(0x85b)]=_0x1e847e;}else{if(!_0x78408b[_0x40eab6(0x11d2)])return _0xfe48a3[_0x40eab6(0xdcc)][_0x40eab6(0x16b4)]({'sectionId':_0x78408b['id']})[_0x40eab6(0x2945)][_0x40eab6(0x146b)](function(_0xf64735){const _0x49a2e3=_0x40eab6,_0x8b6aa9=_0x3f65c0()[_0x49a2e3(0x205)](_0xf64735['rows'],function(_0x5d5260){const _0x1d0a49=_0x49a2e3;return _0x3f65c0()[_0x1d0a49(0xc84)](_0x55bb03['variables'],{'id':_0x5d5260[_0x1d0a49(0x18b8)]});});let _0x50bed4=null;_0x55bb03[_0x49a2e3(0x1d47)]&&(_0x50bed4=_0x3f65c0()['find'](_0x55bb03[_0x49a2e3(0x85b)],{'name':_0x55bb03[_0x49a2e3(0x1d47)][_0x49a2e3(0x212)]}));if(_0x50bed4&&!_0x3f65c0()[_0x49a2e3(0x1360)](_0x8b6aa9,['id',_0x50bed4['id']])){const _0x3038e5=_0x3f65c0()[_0x49a2e3(0xc84)](_0x55bb03[_0x49a2e3(0x85b)],{'id':_0x50bed4['id']});_0x3038e5[_0x49a2e3(0x8ff)]=![],_0x8b6aa9['push'](_0x3038e5);}_0x55bb03[_0x49a2e3(0x85b)]=_0x8b6aa9;});}})[_0x418ed3(0x129e)](function(_0xfadbe8){const _0x4046c5=_0x418ed3;_0x1f5fba['error']({'title':_0xfadbe8['status']?_0x4046c5(0x262a)+_0xfadbe8['status']+_0x4046c5(0x1315)+_0xfadbe8[_0x4046c5(0x167f)]:_0x4046c5(0x493),'msg':_0xfadbe8['data']?JSON['stringify'](_0xfadbe8['data']):_0xfadbe8['toString']()});});function _0x3517e6(){const _0x4e5c6b=_0x418ed3;_0x55bb03[_0x4e5c6b(0xcef)]=[];const _0x4a3f91=[];_0x55bb03['system'][_0x4e5c6b(0x1142)]&&_0x55bb03[_0x4e5c6b(0x1d47)]['type'][_0x4e5c6b(0x256e)]()==='outbound'&&_0x55bb03[_0x4e5c6b(0x1d47)][_0x4e5c6b(0x8f2)]===_0x4e5c6b(0x118b)&&(_0x55bb03[_0x4e5c6b(0x1d47)][_0x4e5c6b(0x1d55)]=_0x18a023[_0x4e5c6b(0x1274)]?(_0x55bb03[_0x4e5c6b(0x1d47)][_0x4e5c6b(0x1e12)]||'')+_0x4e5c6b(0x2147)+_0x18a023['cutdigits']+'}':(_0x55bb03[_0x4e5c6b(0x1d47)][_0x4e5c6b(0x1e12)]||'')+'${EXTEN}',_0x18a023[_0x4e5c6b(0x1425)]!==_0x4e5c6b(0x1642)?_0x55bb03['system'][_0x4e5c6b(0xa08)]['indexOf'](_0x4e5c6b(0x1ea4))<0x0&&(_0x55bb03['system']['options']+=_0x4e5c6b(0x1ea4)):_0x55bb03[_0x4e5c6b(0x1d47)]['options']=_0x55bb03[_0x4e5c6b(0x1d47)][_0x4e5c6b(0xa08)][_0x4e5c6b(0x5f4)](_0x4e5c6b(0x1ea4),''));if(_0x55bb03[_0x4e5c6b(0x1d47)][_0x4e5c6b(0x8f2)]&&_0x55bb03[_0x4e5c6b(0x1d47)][_0x4e5c6b(0x8f2)]===_0x4e5c6b(0x1802)){}else switch((_0x55bb03[_0x4e5c6b(0x1d47)]['app']||_0x55bb03[_0x4e5c6b(0x1d47)]['appType'])['toLowerCase']()){case _0x4e5c6b(0x26ba):_0x55bb03[_0x4e5c6b(0x1d47)][_0x4e5c6b(0x168a)]=_0x55bb03[_0x4e5c6b(0x1d47)][_0x4e5c6b(0x19eb)]+'='+_0x55bb03[_0x4e5c6b(0x1d47)]['value'];break;case'custom':break;default:_0x4a3f91[0x0]=_0x55bb03[_0x4e5c6b(0x1d47)][_0x4e5c6b(0x23e9)],_0x4a3f91[0x1]=_0x55bb03[_0x4e5c6b(0x1d47)][_0x4e5c6b(0x212)],_0x55bb03[_0x4e5c6b(0x1d47)][_0x4e5c6b(0x168a)]=_0x4a3f91[_0x4e5c6b(0xb47)](',');}_0x2bfc93(_0x55bb03['system']);}function _0x2bfc93(_0x3aabd8){const _0x4517db=_0x418ed3;_0x1d588a[_0x4517db(0x2458)](_0x3aabd8);}}const _0x4fa93a=_0x564df1;;_0x5c5a70[_0x313a4d(0x11c2)]=[_0x313a4d(0x10e8),'$q',_0x313a4d(0x1fe4),_0x313a4d(0x2116),_0x313a4d(0xbd7),_0x313a4d(0x247f),_0x313a4d(0xa87),'crudPermissions'];function _0x5c5a70(_0x39da07,_0x57f46d,_0x27bca4,_0x4ebe3c,_0x381c7d,_0x31ab84,_0x48f9d6,_0x3d9189){const _0x13f265=_0x313a4d,_0x3c5b97=this;_0x3c5b97['currentUser']=_0x48f9d6[_0x13f265(0xb12)](),_0x3c5b97[_0x13f265(0xcef)]=[],_0x3c5b97['title']=_0x13f265(0x29b)+(_0x4ebe3c['appType']||_0x4ebe3c[_0x13f265(0x1873)])[_0x13f265(0x1c37)](),_0x3c5b97['tag']=angular[_0x13f265(0x235a)](_0x4ebe3c),_0x3c5b97['crudPermissions']=_0x3d9189,_0x3c5b97[_0x13f265(0x855)]={};if(_0x3c5b97[_0x13f265(0xa80)]['appdata'])switch(_0x3c5b97[_0x13f265(0xa80)][_0x13f265(0x8f2)]?_0x3c5b97['tag'][_0x13f265(0x8f2)]['toLowerCase']():_0x3c5b97[_0x13f265(0xa80)][_0x13f265(0x1873)][_0x13f265(0x256e)]()){case _0x13f265(0x1802):break;case'dialogflow':{const _0x496e6f=_0x3c5b97['tag'][_0x13f265(0x168a)][_0x13f265(0x10c8)](',');_0x3c5b97[_0x13f265(0xa80)]['key']=_0x496e6f[0x0],_0x3c5b97[_0x13f265(0xa80)][_0x13f265(0x90b)]=_0x496e6f[0x1],_0x3c5b97['tag'][_0x13f265(0xaf3)]=_0x496e6f[_0x13f265(0x1298)](0x2,_0x496e6f[_0x13f265(0x402)])['join'](',');}break;case _0x13f265(0xa46):{const _0x195b88=_0x3c5b97[_0x13f265(0xa80)]['appdata']['split'](',');_0x3c5b97['tag'][_0x13f265(0x153a)]=_0x195b88[0x0],_0x3c5b97[_0x13f265(0xa80)][_0x13f265(0x1392)]=_0x195b88[0x1],_0x3c5b97[_0x13f265(0xa80)][_0x13f265(0x2217)]=_0x195b88[0x2],_0x3c5b97[_0x13f265(0xa80)][_0x13f265(0x90b)]=_0x195b88[0x3],_0x3c5b97['tag'][_0x13f265(0xaf3)]=_0x195b88[_0x13f265(0x1298)](0x4,_0x195b88['length'])['join'](',');}break;case _0x13f265(0x17d6):{const _0x83374e=_0x3c5b97[_0x13f265(0xa80)][_0x13f265(0x168a)][_0x13f265(0x10c8)](',');_0x3c5b97[_0x13f265(0xa80)][_0x13f265(0x1651)]=_0x83374e[0x0],_0x3c5b97[_0x13f265(0xa80)]['secretaccesskey']=_0x83374e[0x1],_0x3c5b97[_0x13f265(0xa80)][_0x13f265(0x1039)]=_0x83374e[0x2],_0x3c5b97[_0x13f265(0xa80)][_0x13f265(0x8dd)]=_0x83374e[0x3],_0x3c5b97[_0x13f265(0xa80)][_0x13f265(0xaf3)]=_0x83374e['slice'](0x4,_0x83374e[_0x13f265(0x402)])[_0x13f265(0xb47)](',');}break;case _0x13f265(0x1713):{const _0x517e24=_0x3c5b97['tag'][_0x13f265(0x168a)][_0x13f265(0x10c8)](',');_0x3c5b97[_0x13f265(0xa80)]['times']=isNaN(_0x517e24[0x0])?_0x517e24[0x0]:parseInt(_0x517e24[0x0],0xa),_0x3c5b97[_0x13f265(0xa80)][_0x13f265(0xa8d)]=_0x517e24[_0x13f265(0x1298)](0x1,_0x517e24[_0x13f265(0x402)])[_0x13f265(0xb47)](',');}break;case _0x13f265(0x7fd):_0x3c5b97[_0x13f265(0xa80)][_0x13f265(0xa8d)]=_0x3c5b97[_0x13f265(0xa80)][_0x13f265(0x168a)];break;case _0x13f265(0x26ba):_0x3c5b97['tag']['name']=_0x3c5b97['tag'][_0x13f265(0x168a)][_0x13f265(0x10c8)]('=')[0x0],_0x3c5b97[_0x13f265(0xa80)]['value']=_0x3c5b97[_0x13f265(0xa80)][_0x13f265(0x168a)][_0x13f265(0x10c8)]('=')[0x1];break;case _0x13f265(0x1ecb):_0x3c5b97['tag']['project']=_0x3c5b97[_0x13f265(0xa80)]['appdata'];break;default:{const _0x819374=_0x3c5b97[_0x13f265(0xa80)][_0x13f265(0x168a)][_0x13f265(0x10c8)](',');_0x3c5b97['tag'][_0x13f265(0xa80)]=_0x3f65c0()[_0x13f265(0x2635)](_0x819374[0x0])?_0x819374[0x0]:isNaN(_0x819374[0x0])?_0x819374[0x0]:parseInt(_0x819374[0x0],0xa);}break;}else{}_0x3c5b97[_0x13f265(0xa80)][_0x13f265(0x1142)]&&_0x3c5b97[_0x13f265(0xa80)][_0x13f265(0x1142)]['toLowerCase']()===_0x13f265(0xc9c)&&_0x3c5b97[_0x13f265(0xa80)]['appType'][_0x13f265(0x256e)]()===_0x13f265(0x3bb)&&(_0x3c5b97[_0x13f265(0xa80)][_0x13f265(0x1e12)]=_0x3c5b97[_0x13f265(0xa80)][_0x13f265(0x1d55)]?_0x3c5b97[_0x13f265(0xa80)]['phone'][_0x13f265(0x10c8)]('$')[0x0]:undefined,_0x3c5b97['tag'][_0x13f265(0x1d43)]=_0x3c5b97['tag'][_0x13f265(0x11be)]?_0x13f265(0x1b60)+_0x3c5b97['tag'][_0x13f265(0x11be)]:undefined);_0x3c5b97['saveOpenchannelAccountApp']=_0x2cd7ab,_0x3c5b97[_0x13f265(0x13f3)]=_0x50ab4b,_0x48f9d6[_0x13f265(0x23e0)](_0x13f265(0x174b))?_0x31ab84[_0x13f265(0xa80)][_0x13f265(0x16b4)]({'fields':_0x13f265(0x7a7),'sort':_0x13f265(0x19eb),'nolimit':_0x13f265(0x1185)})[_0x13f265(0x2945)][_0x13f265(0x146b)](function(_0x3553c7){const _0xe044b1=_0x13f265;_0x3c5b97[_0xe044b1(0x1b86)]=_0x3553c7['rows']||[];})[_0x13f265(0x129e)](function(_0x156892){const _0x54febe=_0x13f265;_0x27bca4['error']({'title':_0x156892[_0x54febe(0x107b)]?_0x54febe(0x262a)+_0x156892[_0x54febe(0x107b)]+_0x54febe(0x1315)+_0x156892[_0x54febe(0x167f)]:_0x54febe(0x29c),'msg':_0x156892[_0x54febe(0x524)]?JSON[_0x54febe(0x10bb)](_0x156892[_0x54febe(0x524)]):_0x156892[_0x54febe(0xd5f)]()});}):_0x31ab84[_0x13f265(0xa80)][_0x13f265(0x16b4)]({'fields':_0x13f265(0x7a7),'sort':_0x13f265(0x19eb),'nolimit':_0x13f265(0x1185)})[_0x13f265(0x2945)][_0x13f265(0x146b)](function(_0x9d2755){const _0xf3707=_0x13f265;_0x3c5b97[_0xf3707(0x1b86)]=_0x9d2755[_0xf3707(0x19c7)]||[];})[_0x13f265(0x146b)](function(){const _0x2a53a2=_0x13f265;return _0x31ab84['userProfileSection'][_0x2a53a2(0x16b4)]({'userProfileId':_0x3c5b97['currentUser'][_0x2a53a2(0x209a)],'sectionId':0x3f0})['$promise'];})['then'](function(_0x366822){const _0xbb8775=_0x13f265,_0x381433=_0x366822&&_0x366822[_0xbb8775(0x19c7)]?_0x366822[_0xbb8775(0x19c7)][0x0]:null;if(!_0x381433){const _0xeaa78e=[];let _0x2e6fe6=null;_0x3c5b97[_0xbb8775(0xa80)]&&(_0x2e6fe6=_0x3f65c0()[_0xbb8775(0xc84)](_0x3c5b97[_0xbb8775(0x1b86)],{'name':_0x3c5b97[_0xbb8775(0xa80)][_0xbb8775(0xa80)]}));for(let _0x3acff0=0x0;_0x3acff0<_0x3c5b97[_0xbb8775(0x1b86)][_0xbb8775(0x402)];_0x3acff0++){_0x2e6fe6&&_0x3c5b97[_0xbb8775(0x1b86)][_0x3acff0]['id']===_0x2e6fe6['id']&&(_0x3c5b97[_0xbb8775(0x1b86)][_0x3acff0]['canSelect']=![],_0xeaa78e[_0xbb8775(0x1f47)](_0x3c5b97['tags'][_0x3acff0]));}_0x3c5b97[_0xbb8775(0x1b86)]=_0xeaa78e;}else{if(!_0x381433[_0xbb8775(0x11d2)])return _0x31ab84[_0xbb8775(0xdcc)][_0xbb8775(0x16b4)]({'sectionId':_0x381433['id']})['$promise'][_0xbb8775(0x146b)](function(_0x10d292){const _0x3f0192=_0xbb8775,_0x3658ea=_0x3f65c0()['map'](_0x10d292[_0x3f0192(0x19c7)],function(_0x410bfd){const _0x48eeae=_0x3f0192;return _0x3f65c0()[_0x48eeae(0xc84)](_0x3c5b97['tags'],{'id':_0x410bfd['resourceId']});});let _0x379a19=null;_0x3c5b97[_0x3f0192(0xa80)]&&(_0x379a19=_0x3f65c0()['find'](_0x3c5b97['tags'],{'name':_0x3c5b97[_0x3f0192(0xa80)]['tag']}));if(_0x379a19&&!_0x3f65c0()[_0x3f0192(0x1360)](_0x3658ea,['id',_0x379a19['id']])){const _0x110273=_0x3f65c0()['find'](_0x3c5b97[_0x3f0192(0x1b86)],{'id':_0x379a19['id']});_0x110273[_0x3f0192(0x8ff)]=![],_0x3658ea['push'](_0x110273);}_0x3c5b97[_0x3f0192(0x1b86)]=_0x3658ea;});}})[_0x13f265(0x129e)](function(_0x31dbec){const _0x1e7def=_0x13f265;_0x27bca4['error']({'title':_0x31dbec[_0x1e7def(0x107b)]?_0x1e7def(0x262a)+_0x31dbec[_0x1e7def(0x107b)]+_0x1e7def(0x1315)+_0x31dbec[_0x1e7def(0x167f)]:_0x1e7def(0x156),'msg':_0x31dbec['data']?JSON[_0x1e7def(0x10bb)](_0x31dbec['data']):_0x31dbec[_0x1e7def(0xd5f)]()});});function _0x2cd7ab(){const _0x59ff3b=_0x13f265;_0x3c5b97['errors']=[];const _0x399878=[];_0x3c5b97[_0x59ff3b(0xa80)][_0x59ff3b(0x1142)]&&_0x3c5b97[_0x59ff3b(0xa80)]['type'][_0x59ff3b(0x256e)]()==='outbound'&&_0x3c5b97[_0x59ff3b(0xa80)][_0x59ff3b(0x8f2)]===_0x59ff3b(0x118b)&&(_0x3c5b97[_0x59ff3b(0xa80)]['phone']=_0x381c7d['cutdigits']?(_0x3c5b97[_0x59ff3b(0xa80)]['prefix']||'')+'${EXTEN:'+_0x381c7d[_0x59ff3b(0x1274)]+'}':(_0x3c5b97[_0x59ff3b(0xa80)][_0x59ff3b(0x1e12)]||'')+_0x59ff3b(0x20df),_0x381c7d[_0x59ff3b(0x1425)]!=='none'?_0x3c5b97['tag'][_0x59ff3b(0xa08)][_0x59ff3b(0x172b)]('U(xcally-mixmonitor-context)')<0x0&&(_0x3c5b97[_0x59ff3b(0xa80)]['options']+='U(xcally-mixmonitor-context)'):_0x3c5b97[_0x59ff3b(0xa80)][_0x59ff3b(0xa08)]=_0x3c5b97[_0x59ff3b(0xa80)][_0x59ff3b(0xa08)]['replace'](_0x59ff3b(0x1ea4),''));const _0x304bce=_0x3f65c0()['find'](_0x3c5b97[_0x59ff3b(0x1b86)],{'name':_0x3c5b97[_0x59ff3b(0xa80)][_0x59ff3b(0xa80)]});_0x304bce&&(_0x3c5b97[_0x59ff3b(0xa80)][_0x59ff3b(0xb0a)]=_0x304bce['id']);if(_0x3c5b97[_0x59ff3b(0xa80)][_0x59ff3b(0x8f2)]&&_0x3c5b97[_0x59ff3b(0xa80)][_0x59ff3b(0x8f2)]===_0x59ff3b(0x1802)){}else switch((_0x3c5b97[_0x59ff3b(0xa80)][_0x59ff3b(0x1873)]||_0x3c5b97[_0x59ff3b(0xa80)]['appType'])[_0x59ff3b(0x256e)]()){case'set':_0x3c5b97[_0x59ff3b(0xa80)][_0x59ff3b(0x168a)]=_0x3c5b97[_0x59ff3b(0xa80)][_0x59ff3b(0x19eb)]+'='+_0x3c5b97[_0x59ff3b(0xa80)]['value'];break;case'custom':break;default:_0x399878[0x0]=_0x3c5b97[_0x59ff3b(0xa80)][_0x59ff3b(0xa80)],_0x3c5b97['tag'][_0x59ff3b(0x168a)]=_0x399878[_0x59ff3b(0xb47)](',');}_0x50ab4b(_0x3c5b97[_0x59ff3b(0xa80)]);}function _0x50ab4b(_0x1b39cb){_0x39da07['hide'](_0x1b39cb);}}const _0x448adf=_0x5c5a70;;_0x43d6d3[_0x313a4d(0x11c2)]=[_0x313a4d(0x23df),_0x313a4d(0x910),_0x313a4d(0x1862),'$q',_0x313a4d(0x214b),_0x313a4d(0x1abe),_0x313a4d(0x10e8),_0x313a4d(0x4d8),_0x313a4d(0x1fe4),'api',_0x313a4d(0xa87)];function _0x43d6d3(_0x5e8bba,_0xf72d45,_0x481b43,_0x14bba2,_0x3188f0,_0x59683f,_0x1a7900,_0x3f971b,_0x8eee98,_0x59fd05,_0x5cce93){const _0x5c5d91=_0x313a4d,_0x3e557f=this;_0x3e557f['currentUser']=_0x5cce93[_0x5c5d91(0xb12)](),_0x3e557f[_0x5c5d91(0xbd7)]={},_0x3e557f[_0x5c5d91(0x660)]={'count':0x0,'rows':[]},_0x3e557f[_0x5c5d91(0x1531)]=[],_0x3e557f['crudPermissions'],_0x3e557f[_0x5c5d91(0x1a56)]={'read':'null','closed':'null','sort':_0x5c5d91(0xd6f),'includeAll':_0x5c5d91(0x1185),'limit':0xa,'page':0x1},_0x3e557f['init']=_0xa3d9e7,_0x3e557f[_0x5c5d91(0x19b4)]=_0x3475e5,_0x3e557f[_0x5c5d91(0x283d)]=_0x3dbcf0,_0x3e557f[_0x5c5d91(0x1c75)]=_0x10eee3,_0x3e557f[_0x5c5d91(0x18ec)]=_0x136b95,_0x3e557f['spyopenchannelInteraction']=_0xc516e2,_0x3e557f[_0x5c5d91(0x21a6)]=_0x41acb9,_0x3e557f[_0x5c5d91(0x12dd)]=_0x1a90d0,_0x3e557f[_0x5c5d91(0x1126)]=_0x1a0ceb,_0x3e557f[_0x5c5d91(0x12b)]=_0x51072a;function _0xa3d9e7(_0x4d1fe7,_0x8451bf){const _0x5de621=_0x5c5d91;_0x3e557f[_0x5de621(0xbd7)]=_0x4d1fe7,_0x3e557f[_0x5de621(0x2514)]=typeof _0x8451bf!==_0x5de621(0x2274)?_0x8451bf:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x3e557f[_0x5de621(0x1a56)]['OpenchannelAccountId']=_0x3e557f[_0x5de621(0xbd7)]['id'],_0x3e557f[_0x5de621(0xe93)]={'fields':_0x12cde8()},_0x3c5c2a();}function _0x3c5c2a(){const _0x5c8817=_0x5c5d91;return _0x59fd05['tag'][_0x5c8817(0x16b4)]()['$promise'][_0x5c8817(0x146b)](function(_0x4b243c){_0x3e557f['tags']=_0x4b243c||{'count':0x0,'rows':[]};})[_0x5c8817(0x146b)](function(){const _0x42ad73=_0x5c8817;_0x3e557f[_0x42ad73(0x28af)]=_0x58ac52();});}function _0x58ac52(){const _0x1b5f93=_0x5c5d91;return[{'name':_0x1b5f93(0x294),'key':'createdAt','type':_0x1b5f93(0x1a10),'label':'DASHBOARDS.SELECT_DATE'},{'name':_0x1b5f93(0x1c7c),'key':_0x1b5f93(0x229e),'type':'select','label':_0x1b5f93(0x8f5),'customOptions':[{'value':0x0,'translate':_0x1b5f93(0x33f)},{'value':0x1,'translate':_0x1b5f93(0x1ce6)},{'value':null,'translate':_0x1b5f93(0x175e)}]},{'name':_0x1b5f93(0x74e),'key':_0x1b5f93(0x1943),'type':_0x1b5f93(0xa5f),'label':_0x1b5f93(0x1682),'customOptions':[{'value':0x0,'translate':_0x1b5f93(0x143b)},{'value':0x1,'translate':_0x1b5f93(0x1805)},{'value':null,'translate':_0x1b5f93(0x175e)}]},{'name':_0x1b5f93(0x294a),'key':'UserId','type':_0x1b5f93(0xa5f),'label':_0x1b5f93(0x127),'customOptions':[{'value':_0x1b5f93(0x203c),'translate':_0x1b5f93(0x38d)},{'value':undefined,'translate':_0x1b5f93(0x175e)}]},{'name':_0x1b5f93(0x23a8),'key':_0x1b5f93(0xa80),'type':_0x1b5f93(0x175c),'label':_0x1b5f93(0x1c0e),'options':_0x3e557f['tags'][_0x1b5f93(0x19c7)],'placeholder':_0x1b5f93(0x66f)}];}function _0x12cde8(){const _0x15ad73=_0x5c5d91;return[{'name':'Id','column':'id','type':_0x15ad73(0x181)},{'name':_0x15ad73(0x364),'column':_0x15ad73(0x364),'type':'autocomplete','options':{'searchFields':['firstName',_0x15ad73(0xee4),'email'],'route':{'model':'cmContact','action':_0x15ad73(0x16b4),'params':{'fields':_0x15ad73(0x992),'Contact':_0x15ad73(0x3fb),'nolimit':!![]}},'extraOperators':[_0x15ad73(0xacb)],'excludedOperators':[_0x15ad73(0x1671)]}},{'name':'Subject','column':'subject','type':'text','options':{'excludedOperators':[_0x15ad73(0x6be),_0x15ad73(0x1671)]}},{'name':_0x15ad73(0x710),'column':_0x15ad73(0xb80),'type':_0x15ad73(0xa8d),'options':{'excludedOperators':[_0x15ad73(0x6be),'$ne']}},{'name':_0x15ad73(0x74e),'column':_0x15ad73(0x1943),'type':_0x15ad73(0xa5f),'values':[{'id':0x0,'translate':_0x15ad73(0x143b)},{'id':0x1,'translate':'DASHBOARDS.CLOSED'}],'options':{'excludedOperators':[_0x15ad73(0x1671)]}},{'name':_0x15ad73(0x294a),'column':'User','type':_0x15ad73(0x14ee),'options':{'table':'i','route':{'model':_0x15ad73(0xe7b),'action':_0x15ad73(0x16b4),'params':{'role':'agent','fields':_0x15ad73(0x12bf),'nolimit':!![]}},'searchFields':[_0x15ad73(0x286a),_0x15ad73(0x19eb)],'extraOperators':[_0x15ad73(0xacb)],'excludedOperators':[_0x15ad73(0x1671)]}},{'name':'Tags','column':_0x15ad73(0x23a8),'type':'multiselect','options':{'route':{'model':_0x15ad73(0xa80),'action':_0x15ad73(0x16b4),'params':{'nolimit':!![]}},'excludedOperators':[_0x15ad73(0xbe5)]}},{'name':'Start\x20Date','column':_0x15ad73(0xc68),'type':_0x15ad73(0x1a10),'options':{'excludedOperators':[_0x15ad73(0x1671)]}},{'name':_0x15ad73(0x270b),'column':_0x15ad73(0x26a6),'type':_0x15ad73(0xa5f),'values':[{'id':0x1,'translate':_0x15ad73(0x1ce6)},{'id':0x0,'translate':'DASHBOARDS.UNREAD'}],'options':{'excludedOperators':[_0x15ad73(0x1671)]}}];}function _0x41acb9(){const _0x3969ff=_0x5c5d91;_0x1a7900['show']({'controller':'AdvancedSearchController','controllerAs':'vm','templateUrl':_0x3fb128,'parent':angular['element'](_0x3f971b[_0x3969ff(0x2586)]),'clickOutsideToClose':![],'locals':{'fields':_0x3e557f[_0x3969ff(0xe93)][_0x3969ff(0x2867)],'color':undefined,'storagePath':'openchannel.openchannelAccounts'},'fullscreen':!![]})[_0x3969ff(0x146b)](function(_0x234844){const _0x46d69a=_0x3969ff;_0x3e557f[_0x46d69a(0x1a56)][_0x46d69a(0x21da)]=_0x234844===![]?undefined:_0x234844;if(_0x3e557f[_0x46d69a(0x1a56)][_0x46d69a(0x21da)])_0x136b95();else _0x234844===![]&&_0x136b95();})[_0x3969ff(0x129e)](function(_0x656d3b){const _0x4599b6=_0x3969ff;_0x8eee98[_0x4599b6(0x1980)]({'title':'ERROR','msg':_0x656d3b['data']?JSON[_0x4599b6(0x10bb)](_0x656d3b[_0x4599b6(0x524)][_0x4599b6(0x7fd)]):_0x656d3b[_0x4599b6(0xd5f)]()});});}function _0x3dbcf0(_0x14e662,_0x4a3c9e,_0x3f9ee9){const _0x24e24b=_0x5c5d91;return _0x59fd05[_0x24e24b(0x119)][_0x24e24b(0x15b1)]({'id':_0x14e662['id'],'exists':!![],'attachments':_0x3f9ee9})['$promise'][_0x24e24b(0x146b)](function(_0xdb3f99){const _0x6bff05=_0x24e24b,_0xdf133b=[_0xdb3f99[_0x6bff05(0x2eb)]];let _0x3529f7=_0x6bff05(0xe80)+_0x14e662['id'];const _0x1fea18=new Blob(_0xdf133b,{'type':_0xdb3f99[_0x6bff05(0x1142)]});_0x3529f7=_0x6bff05(0x23c4)+_0x14e662['id']+_0x6bff05(0xf04);const _0xc223d6=window[_0x6bff05(0xef3)]['createElement']('a');_0xc223d6[_0x6bff05(0x1652)](_0x6bff05(0x1b3c),URL[_0x6bff05(0x1c58)](_0x1fea18)),_0xc223d6[_0x6bff05(0x1652)](_0x6bff05(0x15b1),_0x3529f7),document[_0x6bff05(0x2586)]['appendChild'](_0xc223d6),_0xc223d6[_0x6bff05(0x1fa5)]();})[_0x24e24b(0x129e)](function(_0x103f86){const _0x40de8b=_0x24e24b;if(_0x103f86[_0x40de8b(0x524)]&&_0x103f86[_0x40de8b(0x524)]['errors']&&_0x103f86[_0x40de8b(0x524)][_0x40de8b(0xcef)][_0x40de8b(0x402)])for(let _0x22b9c5=0x0;_0x22b9c5<_0x103f86[_0x40de8b(0x524)][_0x40de8b(0xcef)][_0x40de8b(0x402)];_0x22b9c5+=0x1){_0x8eee98['error']({'title':_0x103f86['data'][_0x40de8b(0xcef)][_0x22b9c5][_0x40de8b(0x1142)],'msg':_0x103f86[_0x40de8b(0x524)][_0x40de8b(0xcef)][_0x22b9c5][_0x40de8b(0x7fd)]});}else _0x8eee98[_0x40de8b(0x1980)]({'title':_0x103f86[_0x40de8b(0x107b)]?_0x40de8b(0x262a)+_0x103f86[_0x40de8b(0x107b)]+'\x20-\x20'+_0x103f86[_0x40de8b(0x167f)]:_0x40de8b(0x2157),'msg':_0x103f86[_0x40de8b(0x524)]?JSON[_0x40de8b(0x10bb)](_0x103f86['data'][_0x40de8b(0x7fd)]):_0x103f86[_0x40de8b(0xd5f)]()});});}function _0x3475e5(_0x2eed53,_0x27f8d8){const _0x445c96=_0x5c5d91,_0x23b2aa=_0x1a7900[_0x445c96(0x1e8a)]()['title'](_0x445c96(0x1f40))['htmlContent'](_0x445c96(0x16d3)+(_0x2eed53[_0x445c96(0x19eb)]||_0x2eed53['id']&&_0x3f65c0()[_0x445c96(0x21cf)]('interaction\x20#')+_0x2eed53['id']||_0x445c96(0xe80))+''+_0x445c96(0xe01))['ariaLabel'](_0x445c96(0xcab))['targetEvent'](_0x27f8d8)['ok']('OK')[_0x445c96(0x6c3)](_0x445c96(0x39a));_0x1a7900[_0x445c96(0x2615)](_0x23b2aa)[_0x445c96(0x146b)](function(){_0x1a0ceb(_0x2eed53);},function(){const _0x7b67cc=_0x445c96;console['log'](_0x7b67cc(0x39a));});}function _0x10eee3(_0xe13eff){const _0x17884a=_0x5c5d91;_0x3e557f[_0x17884a(0x660)]=_0xe13eff||{'count':0x0,'rows':[]};for(let _0x22ce7b=0x0;_0x22ce7b<_0x3e557f[_0x17884a(0x660)]['rows'][_0x17884a(0x402)];_0x22ce7b+=0x1){const _0x22475f=_0x3e557f[_0x17884a(0x660)][_0x17884a(0x19c7)][_0x22ce7b];_0x3fbb2c(_0x22475f),_0x22475f[_0x17884a(0xac5)][_0x17884a(0x19eb)]=_0x2e9af1(_0x22475f);}}function _0x136b95(){const _0x4594b0=_0x5c5d91;_0x3e557f[_0x4594b0(0x1a56)][_0x4594b0(0x145d)]=(_0x3e557f[_0x4594b0(0x1a56)][_0x4594b0(0x844)]-0x1)*_0x3e557f[_0x4594b0(0x1a56)][_0x4594b0(0x221e)],_0x3e557f[_0x4594b0(0xb9c)]=_0x59fd05['openchannelInteraction'][_0x4594b0(0x16b4)](_0x3e557f[_0x4594b0(0x1a56)],_0x10eee3)[_0x4594b0(0x2945)];}function _0xc516e2(_0x4f6043,_0x506823){const _0x9b5510=_0x5c5d91;_0x1a7900[_0x9b5510(0x2615)]({'controller':_0x9b5510(0xd2c),'controllerAs':'vm','templateUrl':_0x270cc0,'parent':angular[_0x9b5510(0x1853)](_0x3f971b[_0x9b5510(0x2586)]),'targetEvent':_0x4f6043,'clickOutsideToClose':!![],'onShowing':function(_0x4bd7a1){const _0x3114b3=_0x9b5510;_0x4bd7a1['vm'][_0x3114b3(0x5aa)]({'id':0x1,'channel':_0x3114b3(0x7d9),'interaction':_0x506823,'spy':!![]},_0xf72d45['$parent']['vm'][_0x3114b3(0x15b9)]);}});}function _0x1a0ceb(_0x1460b1){const _0x56361d=_0x5c5d91;_0x59fd05[_0x56361d(0x119)][_0x56361d(0x1fac)]({'id':_0x1460b1['id']})[_0x56361d(0x2945)][_0x56361d(0x146b)](function(){const _0x1e49ac=_0x56361d;_0x3f65c0()['remove'](_0x3e557f[_0x1e49ac(0x660)][_0x1e49ac(0x19c7)],{'id':_0x1460b1['id']}),_0x3e557f[_0x1e49ac(0x660)][_0x1e49ac(0x51c)]-=0x1,!_0x3e557f[_0x1e49ac(0x660)]['rows'][_0x1e49ac(0x402)]&&_0x136b95(),_0x8eee98['success']({'title':_0x1e49ac(0x739),'msg':_0x1460b1['name']?_0x1460b1[_0x1e49ac(0x19eb)]+_0x1e49ac(0x23e3):''});})['catch'](function(_0x10f771){const _0x53fd55=_0x56361d;if(_0x10f771[_0x53fd55(0x524)]&&_0x10f771[_0x53fd55(0x524)][_0x53fd55(0xcef)]&&_0x10f771[_0x53fd55(0x524)][_0x53fd55(0xcef)][_0x53fd55(0x402)]){_0x3e557f['errors']=_0x10f771[_0x53fd55(0x524)][_0x53fd55(0xcef)]||[{'message':_0x10f771['toString'](),'type':'SYSTEM:GETopenchannelAccount'}];for(let _0x53ffb3=0x0;_0x53ffb3<_0x10f771[_0x53fd55(0x524)][_0x53fd55(0xcef)][_0x53fd55(0x402)];_0x53ffb3++){_0x8eee98[_0x53fd55(0x1980)]({'title':_0x10f771[_0x53fd55(0x524)][_0x53fd55(0xcef)][_0x53ffb3][_0x53fd55(0x1142)],'msg':_0x10f771[_0x53fd55(0x524)][_0x53fd55(0xcef)][_0x53ffb3][_0x53fd55(0x7fd)]});}}else _0x8eee98[_0x53fd55(0x1980)]({'title':_0x10f771[_0x53fd55(0x107b)]?_0x53fd55(0x262a)+_0x10f771[_0x53fd55(0x107b)]+_0x53fd55(0x1315)+_0x10f771['statusText']:_0x53fd55(0x2624),'msg':_0x10f771[_0x53fd55(0x524)]?JSON['stringify'](_0x10f771[_0x53fd55(0x524)]['message']):_0x10f771['message']||_0x10f771[_0x53fd55(0xd5f)]()});});}function _0x1a90d0(){const _0x328859=_0x5c5d91,_0x133ca1=angular[_0x328859(0x235a)](_0x3e557f[_0x328859(0x1531)]);return _0x3e557f[_0x328859(0x1531)]=[],_0x133ca1;}function _0x51072a(_0xe677a6){const _0x5c1c69=_0x5c5d91,_0x2d0cc0=_0x1a7900['confirm']()[_0x5c1c69(0x1189)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20interactions?')[_0x5c1c69(0x1cbe)](''+_0x3e557f[_0x5c1c69(0x1531)][_0x5c1c69(0x402)]+'\x20selected'+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x5c1c69(0xa37))[_0x5c1c69(0x1f27)](_0xe677a6)['ok']('OK')['cancel']('CANCEL');_0x1a7900['show'](_0x2d0cc0)[_0x5c1c69(0x146b)](function(){const _0x48aa44=_0x5c1c69;_0x3e557f[_0x48aa44(0x1531)][_0x48aa44(0x1df5)](function(_0x3d2fbe){_0x1a0ceb(_0x3d2fbe);}),_0x3e557f['selectedOpenchannelAccountInteractions']=[];});}function _0x3fbb2c(_0x29b10d){const _0x5ab723=_0x5c5d91;if(_0x29b10d['from'])_0x29b10d['contactName']=_0x29b10d[_0x5ab723(0xfa5)];else _0x29b10d[_0x5ab723(0x364)]?_0x29b10d['contactName']=(_0x29b10d[_0x5ab723(0x364)]['firstName']||'')+'\x20'+(_0x29b10d['Contact'][_0x5ab723(0xee4)]||''):_0x29b10d[_0x5ab723(0x792)]=_0x3188f0[_0x5ab723(0xde)](_0x5ab723(0xe0b));}function _0x2e9af1(_0x3f1057){const _0x5ed861=_0x5c5d91;if(_0x3f1057[_0x5ed861(0xea2)])return _0x3f1057[_0x5ed861(0xea2)]===_0x3e557f['currentUser']['id']?_0x3188f0[_0x5ed861(0xde)](_0x5ed861(0x6d9)):_0x3f1057[_0x5ed861(0xac5)][_0x5ed861(0x286a)]+'\x20<'+_0x3f1057[_0x5ed861(0xac5)]['internal']+'>';return _0x3188f0['instant']('DASHBOARDS.NOT_ASSIGNED');}let _0x36189e=!![],_0x5d9f77=0x1;_0xf72d45[_0x5c5d91(0x21e8)](_0x5c5d91(0x117f),function(_0x98ea01,_0x479bd8){const _0x3d8684=_0x5c5d91;_0x36189e?_0x59683f(function(){_0x36189e=![];}):(!_0x479bd8&&(_0x5d9f77=_0x3e557f['query'][_0x3d8684(0x844)]),_0x98ea01!==_0x479bd8&&(_0x3e557f[_0x3d8684(0x1a56)][_0x3d8684(0x844)]=0x1),!_0x98ea01&&(_0x3e557f[_0x3d8684(0x1a56)][_0x3d8684(0x844)]=_0x5d9f77),_0x136b95());});}const _0x4cbea8=_0x43d6d3;;const _0x49c23b=_0x4acfac['p']+_0x313a4d(0x11d7);;_0x37adbe[_0x313a4d(0x11c2)]=[_0x313a4d(0x23df),_0x313a4d(0x910),_0x313a4d(0x1862),'$q',_0x313a4d(0x214b),'$timeout',_0x313a4d(0x10e8),_0x313a4d(0x4d8),_0x313a4d(0x1fe4),_0x313a4d(0x247f),'Auth'];function _0x37adbe(_0x4193ff,_0xe9580e,_0xa9c932,_0x598fd0,_0x146134,_0x149189,_0x23429a,_0x31ed50,_0x38d81b,_0x4cf1ca,_0x2e07ff){const _0x4c6fdb=_0x313a4d,_0x3065e3=this;_0x3065e3[_0x4c6fdb(0x2321)]=_0x2e07ff['getCurrentUser'](),_0x3065e3['openchannelAccount']={},_0x3065e3[_0x4c6fdb(0x12b8)]={'count':0x0,'rows':[]},_0x3065e3[_0x4c6fdb(0x14e1)]=[],_0x3065e3[_0x4c6fdb(0x2514)],_0x3065e3[_0x4c6fdb(0x1a56)]={'fields':_0x4c6fdb(0x241e),'limit':0xa,'page':0x1},_0x3065e3[_0x4c6fdb(0x5aa)]=_0x3dcf0e,_0x3065e3[_0x4c6fdb(0x19b4)]=_0x4eaf60,_0x3065e3[_0x4c6fdb(0x1c75)]=_0x5418a8,_0x3065e3['getOpenchannelAccountOpenchannelCannedAnswers']=_0x5d7ac5,_0x3065e3[_0x4c6fdb(0x2371)]=_0x3e6430,_0x3065e3[_0x4c6fdb(0x1e59)]=_0x6a9c7,_0x3065e3[_0x4c6fdb(0x434)]=_0x148a48,_0x3065e3['deleteSelectedOpenchannelAccountOpenchannelCannedAnswers']=_0x5946a2;function _0x3dcf0e(_0x5c9e49,_0x30f76f){const _0x3abc5f=_0x4c6fdb;_0x3065e3[_0x3abc5f(0xbd7)]=_0x5c9e49,_0x3065e3[_0x3abc5f(0x2514)]=typeof _0x30f76f!==_0x3abc5f(0x2274)?_0x30f76f:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x3065e3[_0x3abc5f(0x1a56)][_0x3abc5f(0x534)]=_0x3065e3[_0x3abc5f(0xbd7)]['id'],_0x3065e3[_0x3abc5f(0x1a56)]['id']=_0x3065e3['openchannelAccount']['id'],_0x5d7ac5();}function _0x4eaf60(_0x421228,_0x1df325){const _0x4a5f11=_0x4c6fdb,_0x3952be=_0x23429a[_0x4a5f11(0x1e8a)]()[_0x4a5f11(0x1189)](_0x4a5f11(0x104d))[_0x4a5f11(0x1cbe)](_0x4a5f11(0x16d3)+(_0x421228[_0x4a5f11(0x19eb)]||_0x421228['id']&&_0x3f65c0()[_0x4a5f11(0x21cf)]('openchannelCannedAnswer\x20#')+_0x421228['id']||_0x4a5f11(0x1a54))+'
    '+_0x4a5f11(0xe01))[_0x4a5f11(0x4bd)](_0x4a5f11(0x11ca))['targetEvent'](_0x1df325)['ok']('OK')[_0x4a5f11(0x6c3)](_0x4a5f11(0x39a));_0x23429a[_0x4a5f11(0x2615)](_0x3952be)[_0x4a5f11(0x146b)](function(){_0x148a48(_0x421228);},function(){const _0x2ebc19=_0x4a5f11;console[_0x2ebc19(0x1a74)](_0x2ebc19(0x39a));});}function _0x5418a8(_0x446fca){_0x3065e3['openchannelAccountOpenchannelCannedAnswers']=_0x446fca||{'count':0x0,'rows':[]};}function _0x5d7ac5(){const _0x11119b=_0x4c6fdb;_0x3065e3[_0x11119b(0x1a56)]['offset']=(_0x3065e3[_0x11119b(0x1a56)]['page']-0x1)*_0x3065e3[_0x11119b(0x1a56)][_0x11119b(0x221e)],_0x3065e3[_0x11119b(0xb9c)]=_0x4cf1ca['openchannelAccount']['getAnswers'](_0x3065e3[_0x11119b(0x1a56)],_0x5418a8)[_0x11119b(0x2945)];}function _0x3e6430(_0x29a602,_0x1312b9){const _0x3741cb=_0x4c6fdb;_0x23429a[_0x3741cb(0x2615)]({'controller':'CreateOrEditOpenchannelCannedAnswerDialogController','controllerAs':'vm','templateUrl':_0x49c23b,'parent':angular[_0x3741cb(0x1853)](_0x31ed50[_0x3741cb(0x2586)]),'targetEvent':_0x29a602,'clickOutsideToClose':!![],'locals':{'openchannelAccount':_0x3065e3[_0x3741cb(0xbd7)],'openchannelCannedAnswer':_0x1312b9,'openchannelCannedAnswers':_0x3065e3[_0x3741cb(0x12b8)]['rows'],'license':null,'setting':null,'crudPermissions':_0x3065e3[_0x3741cb(0x2514)]}});}function _0x148a48(_0x3689f6){const _0x2a313d=_0x4c6fdb;_0x4cf1ca[_0x2a313d(0x1ada)][_0x2a313d(0x1fac)]({'id':_0x3689f6['id']})[_0x2a313d(0x2945)][_0x2a313d(0x146b)](function(){const _0x401306=_0x2a313d;_0x3f65c0()['remove'](_0x3065e3[_0x401306(0x12b8)]['rows'],{'id':_0x3689f6['id']}),_0x3065e3[_0x401306(0x12b8)][_0x401306(0x51c)]-=0x1,!_0x3065e3[_0x401306(0x12b8)]['rows']['length']&&_0x5d7ac5(),_0x38d81b['success']({'title':_0x401306(0x291e),'msg':_0x3689f6[_0x401306(0x19eb)]?_0x3689f6['name']+_0x401306(0x23e3):''});})[_0x2a313d(0x129e)](function(_0x53d912){const _0x30fed8=_0x2a313d;if(_0x53d912[_0x30fed8(0x524)]&&_0x53d912[_0x30fed8(0x524)]['errors']&&_0x53d912[_0x30fed8(0x524)]['errors']['length']){_0x3065e3[_0x30fed8(0xcef)]=_0x53d912[_0x30fed8(0x524)]['errors']||[{'message':_0x53d912[_0x30fed8(0xd5f)](),'type':_0x30fed8(0x2624)}];for(let _0x4b4ca6=0x0;_0x4b4ca6<_0x53d912[_0x30fed8(0x524)]['errors'][_0x30fed8(0x402)];_0x4b4ca6++){_0x38d81b['error']({'title':_0x53d912[_0x30fed8(0x524)]['errors'][_0x4b4ca6][_0x30fed8(0x1142)],'msg':_0x53d912[_0x30fed8(0x524)][_0x30fed8(0xcef)][_0x4b4ca6]['message']});}}else _0x38d81b['error']({'title':_0x53d912[_0x30fed8(0x107b)]?_0x30fed8(0x262a)+_0x53d912[_0x30fed8(0x107b)]+_0x30fed8(0x1315)+_0x53d912['statusText']:_0x30fed8(0x2624),'msg':_0x53d912[_0x30fed8(0x524)]?JSON['stringify'](_0x53d912[_0x30fed8(0x524)]['message']):_0x53d912['message']||_0x53d912[_0x30fed8(0xd5f)]()});});}function _0x6a9c7(){const _0x25dda2=_0x4c6fdb,_0x343d34=angular[_0x25dda2(0x235a)](_0x3065e3[_0x25dda2(0x14e1)]);return _0x3065e3[_0x25dda2(0x14e1)]=[],_0x343d34;}function _0x5946a2(_0x332a74){const _0x67b0ff=_0x4c6fdb,_0x5b0ec5=_0x23429a[_0x67b0ff(0x1e8a)]()['title'](_0x67b0ff(0x173e))[_0x67b0ff(0x1cbe)](_0x67b0ff(0x16d3)+_0x3065e3[_0x67b0ff(0x14e1)]['length']+_0x67b0ff(0x2452)+_0x67b0ff(0xe01))['ariaLabel'](_0x67b0ff(0x1aa6))[_0x67b0ff(0x1f27)](_0x332a74)['ok']('OK')['cancel'](_0x67b0ff(0x39a));_0x23429a['show'](_0x5b0ec5)[_0x67b0ff(0x146b)](function(){const _0x56d061=_0x67b0ff;_0x3065e3[_0x56d061(0x14e1)]['forEach'](function(_0x45096f){_0x148a48(_0x45096f);}),_0x3065e3[_0x56d061(0x14e1)]=[];});}let _0x149dcc=!![],_0x37ed5b=0x1;_0xe9580e[_0x4c6fdb(0x21e8)](_0x4c6fdb(0x117f),function(_0x3698ce,_0x43accd){const _0x595fc6=_0x4c6fdb;_0x149dcc?_0x149189(function(){_0x149dcc=![];}):(!_0x43accd&&(_0x37ed5b=_0x3065e3['query'][_0x595fc6(0x844)]),_0x3698ce!==_0x43accd&&(_0x3065e3[_0x595fc6(0x1a56)][_0x595fc6(0x844)]=0x1),!_0x3698ce&&(_0x3065e3[_0x595fc6(0x1a56)]['page']=_0x37ed5b),_0x5d7ac5());});}const _0x56bfcc=_0x37adbe;;_0x24c5a3['$inject']=[_0x313a4d(0x910),_0x313a4d(0x1862),_0x313a4d(0xd08),_0x313a4d(0x10e8),'$q','$translate',_0x313a4d(0x1fe4),'openchannelCannedAnswers',_0x313a4d(0x1a54),'api','Auth','license',_0x313a4d(0x15b9),_0x313a4d(0x2514)];function _0x24c5a3(_0x24d34d,_0x596349,_0x310e45,_0x4a87af,_0x188b4d,_0x4918a5,_0x521b53,_0x509a14,_0x16c2e0,_0x1b2052,_0x522332,_0x517adf,_0x331301,_0x15649f){const _0x478288=_0x313a4d,_0x5f2eeb=this;_0x5f2eeb['currentUser']=_0x522332[_0x478288(0xb12)](),_0x5f2eeb['errors']=[],_0x5f2eeb['setting']=_0x331301,_0x5f2eeb[_0x478288(0x2690)]=_0x517adf,_0x5f2eeb['crudPermissions']=_0x15649f,_0x5f2eeb[_0x478288(0x855)]={},_0x5f2eeb[_0x478288(0x2251)]=_0x5f2eeb[_0x478288(0x15b9)]&&_0x5f2eeb[_0x478288(0x15b9)][_0x478288(0x976)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x5f2eeb[_0x478288(0x1189)]=_0x478288(0x2718),_0x5f2eeb['openchannelCannedAnswer']=angular[_0x478288(0x235a)](_0x16c2e0),_0x5f2eeb[_0x478288(0x894)]=_0x509a14,_0x5f2eeb[_0x478288(0x1e93)]=![];!_0x5f2eeb['openchannelCannedAnswer']&&(_0x5f2eeb[_0x478288(0x1a54)]={},_0x5f2eeb[_0x478288(0x1189)]=_0x478288(0x2257),_0x5f2eeb[_0x478288(0x1e93)]=!![]);_0x596349[_0x478288(0x16a)]['id']&&(_0x5f2eeb[_0x478288(0x1a54)][_0x478288(0x534)]=_0x596349[_0x478288(0x16a)]['id']);_0x5f2eeb[_0x478288(0x623)]=_0x2bc99f,_0x5f2eeb[_0x478288(0x1226)]=_0xfc94cb,_0x5f2eeb[_0x478288(0x2079)]=_0x2f0b47,_0x5f2eeb['getDateFromString']=_0x22d7e7,_0x5f2eeb[_0x478288(0x13f3)]=_0x49baba;function _0x2bc99f(){const _0x4f9022=_0x478288;_0x5f2eeb['errors']=[],_0x1b2052[_0x4f9022(0x1ada)]['save'](_0x5f2eeb[_0x4f9022(0x1a54)])[_0x4f9022(0x2945)][_0x4f9022(0x146b)](function(_0x47ceea){const _0x4a452c=_0x4f9022;_0x5f2eeb[_0x4a452c(0x894)][_0x4a452c(0xb3d)](_0x47ceea[_0x4a452c(0x2488)]()),_0x521b53[_0x4a452c(0x1c75)]({'title':_0x4a452c(0x154),'msg':_0x5f2eeb[_0x4a452c(0x1a54)]['name']?_0x5f2eeb[_0x4a452c(0x1a54)][_0x4a452c(0x19eb)]+_0x4a452c(0x1386):''}),_0x49baba(_0x47ceea);})[_0x4f9022(0x129e)](function(_0x14a77c){const _0x1bb2ca=_0x4f9022;if(_0x14a77c[_0x1bb2ca(0x524)]&&_0x14a77c[_0x1bb2ca(0x524)][_0x1bb2ca(0xcef)]&&_0x14a77c[_0x1bb2ca(0x524)][_0x1bb2ca(0xcef)]['length']){_0x5f2eeb[_0x1bb2ca(0xcef)]=_0x14a77c[_0x1bb2ca(0x524)]['errors']||[{'message':_0x14a77c[_0x1bb2ca(0xd5f)](),'type':'api.cannedAnswer.save'}];for(let _0x36166b=0x0;_0x36166b<_0x14a77c[_0x1bb2ca(0x524)][_0x1bb2ca(0xcef)]['length'];_0x36166b+=0x1){_0x521b53[_0x1bb2ca(0x1980)]({'title':_0x14a77c[_0x1bb2ca(0x524)][_0x1bb2ca(0xcef)][_0x36166b][_0x1bb2ca(0x1142)],'msg':_0x14a77c['data'][_0x1bb2ca(0xcef)][_0x36166b][_0x1bb2ca(0x7fd)]});}}else _0x521b53[_0x1bb2ca(0x1980)]({'title':_0x14a77c['status']?_0x1bb2ca(0x262a)+_0x14a77c['status']+_0x1bb2ca(0x1315)+_0x14a77c[_0x1bb2ca(0x167f)]:_0x1bb2ca(0x13f),'msg':_0x14a77c[_0x1bb2ca(0x524)]?JSON[_0x1bb2ca(0x10bb)](_0x14a77c['data'][_0x1bb2ca(0x7fd)]):_0x14a77c[_0x1bb2ca(0xd5f)]()});});}function _0xfc94cb(){const _0x4f96d0=_0x478288;_0x5f2eeb[_0x4f96d0(0xcef)]=[],_0x1b2052['cannedAnswer'][_0x4f96d0(0x18e1)]({'id':_0x5f2eeb[_0x4f96d0(0x1a54)]['id']},_0x5f2eeb['openchannelCannedAnswer'])[_0x4f96d0(0x2945)]['then'](function(_0x11db43){const _0x351ac2=_0x4f96d0,_0x197453=_0x3f65c0()[_0x351ac2(0xc84)](_0x5f2eeb['openchannelCannedAnswers'],{'id':_0x11db43['id']});_0x197453&&_0x3f65c0()[_0x351ac2(0x168d)](_0x197453,_0x3f65c0()['pick'](_0x11db43[_0x351ac2(0x2488)](),_0x3f65c0()['keys'](_0x197453))),_0x521b53['success']({'title':_0x351ac2(0x2671),'msg':_0x5f2eeb[_0x351ac2(0x1a54)]['name']?_0x5f2eeb[_0x351ac2(0x1a54)]['name']+_0x351ac2(0x24db):''}),_0x49baba(_0x11db43);})[_0x4f96d0(0x129e)](function(_0x13150f){const _0x55c7e6=_0x4f96d0;if(_0x13150f[_0x55c7e6(0x524)]&&_0x13150f[_0x55c7e6(0x524)][_0x55c7e6(0xcef)]&&_0x13150f[_0x55c7e6(0x524)][_0x55c7e6(0xcef)][_0x55c7e6(0x402)]){_0x5f2eeb[_0x55c7e6(0xcef)]=_0x13150f['data']['errors']||[{'message':_0x13150f[_0x55c7e6(0xd5f)](),'type':_0x55c7e6(0x11ab)}];for(let _0x56002e=0x0;_0x56002e<_0x13150f[_0x55c7e6(0x524)][_0x55c7e6(0xcef)][_0x55c7e6(0x402)];_0x56002e++){_0x521b53[_0x55c7e6(0x1980)]({'title':_0x13150f[_0x55c7e6(0x524)][_0x55c7e6(0xcef)][_0x56002e][_0x55c7e6(0x1142)],'msg':_0x13150f['data']['errors'][_0x56002e][_0x55c7e6(0x7fd)]});}}else _0x521b53[_0x55c7e6(0x1980)]({'title':_0x13150f[_0x55c7e6(0x107b)]?_0x55c7e6(0x262a)+_0x13150f[_0x55c7e6(0x107b)]+_0x55c7e6(0x1315)+_0x13150f[_0x55c7e6(0x167f)]:_0x55c7e6(0x11ab),'msg':_0x13150f[_0x55c7e6(0x524)]?JSON[_0x55c7e6(0x10bb)](_0x13150f[_0x55c7e6(0x524)]['message']):_0x13150f[_0x55c7e6(0xd5f)]()});});}function _0x2f0b47(_0x252b66){const _0x413805=_0x478288;_0x5f2eeb[_0x413805(0xcef)]=[];const _0x352a56=_0x4a87af[_0x413805(0x1e8a)]()[_0x413805(0x1189)](_0x413805(0x1d64))[_0x413805(0x80f)]('The\x20openchannelCannedAnswer\x20will\x20be\x20deleted.')['ariaLabel'](_0x413805(0x1d16))['ok']('Delete')[_0x413805(0x6c3)](_0x413805(0xcf0))[_0x413805(0x1f27)](_0x252b66);_0x4a87af[_0x413805(0x2615)](_0x352a56)[_0x413805(0x146b)](function(){_0x1b2052['cannedAnswer']['delete']({'id':_0x5f2eeb['openchannelCannedAnswer']['id']})['$promise']['then'](function(){const _0x3aa620=a0_0x3bb9;_0x3f65c0()['remove'](_0x5f2eeb[_0x3aa620(0x894)],{'id':_0x5f2eeb['openchannelCannedAnswer']['id']}),_0x521b53['success']({'title':_0x3aa620(0x2767),'msg':(_0x5f2eeb['openchannelCannedAnswer'][_0x3aa620(0x19eb)]||_0x3aa620(0x1a54))+'\x20has\x20been\x20deleted!'}),_0x49baba(_0x5f2eeb[_0x3aa620(0x1a54)]);})['catch'](function(_0x5069bf){const _0x356cc6=a0_0x3bb9;if(_0x5069bf[_0x356cc6(0x524)]&&_0x5069bf[_0x356cc6(0x524)][_0x356cc6(0xcef)]&&_0x5069bf[_0x356cc6(0x524)][_0x356cc6(0xcef)][_0x356cc6(0x402)]){_0x5f2eeb[_0x356cc6(0xcef)]=_0x5069bf[_0x356cc6(0x524)]['errors']||[{'message':_0x5069bf[_0x356cc6(0xd5f)](),'type':'api.cannedAnswer.delete'}];for(let _0x9ef526=0x0;_0x9ef526<_0x5069bf['data'][_0x356cc6(0xcef)]['length'];_0x9ef526++){_0x521b53[_0x356cc6(0x1980)]({'title':_0x5069bf[_0x356cc6(0x524)]['errors'][_0x9ef526]['type'],'msg':_0x5069bf[_0x356cc6(0x524)][_0x356cc6(0xcef)][_0x9ef526][_0x356cc6(0x7fd)]});}}else _0x521b53[_0x356cc6(0x1980)]({'title':_0x5069bf[_0x356cc6(0x107b)]?_0x356cc6(0x262a)+_0x5069bf[_0x356cc6(0x107b)]+_0x356cc6(0x1315)+_0x5069bf['statusText']:_0x356cc6(0xe6a),'msg':_0x5069bf['data']?JSON['stringify'](_0x5069bf[_0x356cc6(0x524)][_0x356cc6(0x7fd)]):_0x5069bf[_0x356cc6(0x7fd)]||_0x5069bf[_0x356cc6(0xd5f)]()});});},function(){});}function _0x22d7e7(_0x349b1b){return _0x349b1b===null?undefined:new Date(_0x349b1b);}function _0x49baba(_0x22cfd6){_0x4a87af['hide'](_0x22cfd6);}}const _0x580e87=_0x24c5a3;;_0x1cfcf7['$inject']=['$scope','$window',_0x313a4d(0x1862),_0x313a4d(0x15fe),_0x313a4d(0x10e8),_0x313a4d(0x4d8),_0x313a4d(0x1abe),_0x313a4d(0x214b),_0x313a4d(0x247f),_0x313a4d(0x1fe4),_0x313a4d(0xa87)];function _0x1cfcf7(_0x3500ff,_0x28f1ef,_0x43b92c,_0x59dc47,_0x828d2a,_0x1ed445,_0x5b90c5,_0x1bc1e3,_0x3838a4,_0x3ec3fb,_0x133f9a){const _0x12b7fb=_0x313a4d,_0x403dfd=this;_0x403dfd['currentUser']=_0x133f9a[_0x12b7fb(0xb12)](),_0x403dfd[_0x12b7fb(0x2647)]={'count':0x0,'rows':[]},_0x403dfd['selectedDispositions']=[],_0x403dfd[_0x12b7fb(0x2514)],_0x403dfd[_0x12b7fb(0xd92)]={'first':'1st','second':_0x12b7fb(0x227b),'third':'3rd'},_0x403dfd[_0x12b7fb(0x1a56)]={'fields':_0x12b7fb(0x2430),'sort':_0x12b7fb(0x12f2),'limit':0xa,'page':0x1},_0x403dfd[_0x12b7fb(0x5aa)]=_0x2b99d5,_0x403dfd[_0x12b7fb(0x19b4)]=_0x1c0d98,_0x403dfd[_0x12b7fb(0x1c75)]=_0x470d2e,_0x403dfd[_0x12b7fb(0x2451)]=_0x383ee1,_0x403dfd[_0x12b7fb(0x24dc)]=_0x2edde0,_0x403dfd[_0x12b7fb(0x1220)]=_0x3d4e7a,_0x403dfd[_0x12b7fb(0x25f0)]=_0x53b78e,_0x403dfd[_0x12b7fb(0x11e4)]=_0x50b904,_0x403dfd[_0x12b7fb(0x4f0)]=_0x42fe90,_0x403dfd['selectAllDispositions']=_0x4370f1;function _0x2b99d5(_0xc0f24,_0x230b1b){const _0x40527d=_0x12b7fb;_0x403dfd['openchannelAccount']=_0xc0f24||{},_0x403dfd[_0x40527d(0x2514)]=typeof _0x230b1b!==_0x40527d(0x2274)?_0x230b1b:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x403dfd[_0x40527d(0x1a56)][_0x40527d(0x534)]=_0x403dfd[_0x40527d(0xbd7)]['id'],_0x403dfd['query']['id']=_0x403dfd[_0x40527d(0xbd7)]['id'],_0x383ee1();}function _0x2edde0(_0xc1bb0a,_0x4f25ae){const _0x527810=_0x12b7fb;_0x828d2a[_0x527810(0x2615)]({'controller':_0x527810(0x1a84),'controllerAs':'vm','templateUrl':_0x4f093a,'parent':angular[_0x527810(0x1853)](_0x1ed445[_0x527810(0x2586)]),'targetEvent':_0xc1bb0a,'clickOutsideToClose':!![],'locals':{'disposition':_0x4f25ae,'model':{'id':_0x403dfd['openchannelAccount']['id'],'field':_0x527810(0x534),'route':_0x527810(0xbd7)},'license':null,'setting':null,'crudPermissions':_0x403dfd[_0x527810(0x2514)]}})['then'](function(_0xdd4c9a){if(_0xdd4c9a)_0x383ee1();});}function _0x1c0d98(_0xb63c33,_0x1e924c){const _0x40647c=_0x12b7fb,_0x3e6329=_0x3f65c0()['some'](_0x403dfd[_0x40647c(0x2647)][_0x40647c(0x19c7)],[_0x40647c(0x11b5),_0xb63c33['id']]),_0x94a4fb=_0x828d2a[_0x40647c(0x1e8a)]()[_0x40647c(0x1189)](_0x1bc1e3['instant'](_0x40647c(0x19e6)))[_0x40647c(0x80f)](_0x1bc1e3[_0x40647c(0xde)](_0x40647c(0xe8d)+(_0x3e6329?_0x40647c(0xda9):_0x40647c(0xd49)),{'name':_0xb63c33[_0x40647c(0x19eb)]}))[_0x40647c(0x4bd)](_0x40647c(0x27d1))[_0x40647c(0x1f27)](_0x1e924c)['ok']('OK')[_0x40647c(0x6c3)](_0x1bc1e3[_0x40647c(0xde)](_0x40647c(0x1161)));_0x828d2a[_0x40647c(0x2615)](_0x94a4fb)['then'](function(){_0x3d4e7a(_0xb63c33);});}function _0x470d2e(_0x58056d){_0x403dfd['dispositions']=_0x58056d||{'count':0x0,'rows':[]};}function _0x383ee1(){const _0x5aca36=_0x12b7fb;_0x403dfd['query']['offset']=(_0x403dfd[_0x5aca36(0x1a56)][_0x5aca36(0x844)]-0x1)*_0x403dfd[_0x5aca36(0x1a56)]['limit'],_0x403dfd['promise']=_0x3838a4[_0x5aca36(0xbd7)]['getDispositions'](_0x403dfd['query'],_0x470d2e)[_0x5aca36(0x2945)];}function _0x3d4e7a(_0x275a52){const _0x195c8e=_0x12b7fb;_0x3838a4[_0x195c8e(0x9e1)][_0x195c8e(0x1fac)]({'id':_0x275a52['id']})[_0x195c8e(0x2945)][_0x195c8e(0x146b)](function(){const _0x227290=_0x195c8e;_0x383ee1(),_0x3ec3fb[_0x227290(0x1c75)]({'title':_0x1bc1e3[_0x227290(0xde)](_0x227290(0xa2f))});})[_0x195c8e(0x129e)](function(_0x2738fa){const _0xd41f5=_0x195c8e;if(_0x2738fa[_0xd41f5(0x524)]&&_0x2738fa['data'][_0xd41f5(0xcef)]&&_0x2738fa[_0xd41f5(0x524)][_0xd41f5(0xcef)]['length']){_0x403dfd['errors']=_0x2738fa['data'][_0xd41f5(0xcef)]||[{'message':_0x2738fa[_0xd41f5(0xd5f)](),'type':'SYSTEM:DELETEdisposition'}];for(let _0x4507fe=0x0;_0x4507fe<_0x2738fa['data'][_0xd41f5(0xcef)]['length'];_0x4507fe++){_0x3ec3fb[_0xd41f5(0x1980)]({'title':_0x2738fa['data'][_0xd41f5(0xcef)][_0x4507fe][_0xd41f5(0x1142)],'msg':_0x2738fa[_0xd41f5(0x524)][_0xd41f5(0xcef)][_0x4507fe][_0xd41f5(0x7fd)]});}}else _0x3ec3fb['error']({'title':_0x2738fa['status']?_0xd41f5(0x262a)+_0x2738fa[_0xd41f5(0x107b)]+'\x20-\x20'+_0x2738fa[_0xd41f5(0x167f)]:_0xd41f5(0x24a7),'msg':_0x2738fa[_0xd41f5(0x524)]?JSON[_0xd41f5(0x10bb)](_0x2738fa[_0xd41f5(0x524)]['message']):_0x2738fa[_0xd41f5(0x7fd)]||_0x2738fa[_0xd41f5(0xd5f)]()});});}function _0x53b78e(){const _0x4cdbf0=_0x12b7fb,_0x2ec45d=angular[_0x4cdbf0(0x235a)](_0x403dfd['selectedDispositions']);return _0x403dfd[_0x4cdbf0(0x2ad)]=[],_0x2ec45d;}function _0x50b904(_0x3128ae){const _0x51080e=_0x12b7fb,_0x123c87=_0x828d2a[_0x51080e(0x1e8a)]()[_0x51080e(0x1189)](_0x1bc1e3[_0x51080e(0xde)](_0x51080e(0x1a5b)))[_0x51080e(0x80f)](_0x1bc1e3['instant'](_0x51080e(0x23ce),{'total':_0x403dfd['selectedDispositions'][_0x51080e(0x402)]}))[_0x51080e(0x4bd)]('Delete\x20dispositions')['targetEvent'](_0x3128ae)['ok']('OK')['cancel'](_0x1bc1e3[_0x51080e(0xde)](_0x51080e(0x1161)));_0x828d2a[_0x51080e(0x2615)](_0x123c87)[_0x51080e(0x146b)](function(){const _0x3c5a6b=_0x51080e;_0x403dfd[_0x3c5a6b(0x2ad)][_0x3c5a6b(0x1df5)](function(_0x26c77e){_0x3d4e7a(_0x26c77e);}),_0x403dfd[_0x3c5a6b(0x2ad)]=[];});}function _0x42fe90(){const _0x752ffa=_0x12b7fb;_0x403dfd[_0x752ffa(0x2ad)]=[];}function _0x4370f1(){const _0x388a7a=_0x12b7fb;_0x403dfd[_0x388a7a(0x2ad)]=_0x403dfd['dispositions'][_0x388a7a(0x19c7)];}let _0x1cbd52=!![],_0x20df36=0x1;_0x3500ff[_0x12b7fb(0x21e8)](_0x12b7fb(0x117f),function(_0x1805d2,_0x525eb1){const _0x571c84=_0x12b7fb;_0x1cbd52?_0x5b90c5(function(){_0x1cbd52=![];}):(!_0x525eb1&&(_0x20df36=_0x403dfd[_0x571c84(0x1a56)][_0x571c84(0x844)]),_0x1805d2!==_0x525eb1&&(_0x403dfd[_0x571c84(0x1a56)]['page']=0x1),!_0x1805d2&&(_0x403dfd['query'][_0x571c84(0x844)]=_0x20df36),_0x383ee1());});}const _0x55b9a9=_0x1cfcf7;;const _0x4be638=_0x4acfac['p']+_0x313a4d(0x1761);;_0x13cde1[_0x313a4d(0x11c2)]=[_0x313a4d(0x1862),_0x313a4d(0xd08),_0x313a4d(0x10e8),_0x313a4d(0x4d8),_0x313a4d(0x214b),_0x313a4d(0x2690),_0x313a4d(0x15b9),'api',_0x313a4d(0x1fe4),_0x313a4d(0xa87),_0x313a4d(0xbd7),'userProfileSection'];function _0x13cde1(_0x2f2abc,_0x183e01,_0x2b11b1,_0x219722,_0x3c46fa,_0x3aa8dc,_0x2f8ec9,_0x5c9fd3,_0x3f339d,_0x4450b6,_0x58afbd,_0x2e8c8b){const _0x2232e5=_0x313a4d,_0x1f20b7=this;_0x1f20b7[_0x2232e5(0x2321)]=_0x4450b6[_0x2232e5(0xb12)](),_0x1f20b7[_0x2232e5(0x2690)]=_0x3aa8dc,_0x1f20b7[_0x2232e5(0x15b9)]=_0x2f8ec9,_0x1f20b7[_0x2232e5(0x2251)]=_0x1f20b7['setting'][_0x2232e5(0x976)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1f20b7[_0x2232e5(0x1002)]=_0x183e01['protocol']()+_0x2232e5(0xb0e)+_0x183e01[_0x2232e5(0x148e)](),_0x1f20b7[_0x2232e5(0xbd7)]=_0x58afbd||_0x2f2abc[_0x2232e5(0x16a)][_0x2232e5(0xbd7)]||{},_0x1f20b7[_0x2232e5(0x1366)]=_0x2e8c8b&&_0x2e8c8b[_0x2232e5(0x51c)]==0x1?_0x2e8c8b['rows'][0x0]:null,_0x1f20b7[_0x2232e5(0x2514)]=_0x4450b6['parseCrudPermissions'](_0x1f20b7['userProfileSection']?_0x1f20b7[_0x2232e5(0x1366)][_0x2232e5(0x2514)]:null),_0x1f20b7[_0x2232e5(0x855)]={},_0x1f20b7[_0x2232e5(0x1b09)]=_0x2f2abc['params'][_0x2232e5(0x13a3)]||0x0,_0x1f20b7[_0x2232e5(0x1027)]=_0x466bd2,_0x1f20b7[_0x2232e5(0x861)]=_0x3f339d[_0x2232e5(0x271e)],_0x1f20b7['gotoOpenchannelAccounts']=_0x32ee11,_0x1f20b7[_0x2232e5(0x1ea8)]=_0x538c1d,_0x4450b6['hasRole'](_0x2232e5(0x174b))?_0x5c9fd3[_0x2232e5(0xf03)][_0x2232e5(0x16b4)]({'fields':'id,name','sort':'name'})[_0x2232e5(0x2945)][_0x2232e5(0x146b)](function(_0x4ac6b7){const _0x50a0ca=_0x2232e5;_0x1f20b7['lists']=_0x4ac6b7[_0x50a0ca(0x19c7)]||[];})[_0x2232e5(0x129e)](function(_0x475584){const _0x577038=_0x2232e5;_0x3f339d[_0x577038(0x1980)]({'title':_0x475584['status']?_0x577038(0x262a)+_0x475584[_0x577038(0x107b)]+'\x20-\x20'+_0x475584['statusText']:'SYSTEM:GET_LISTS','msg':_0x475584[_0x577038(0x524)]?JSON[_0x577038(0x10bb)](_0x475584['data']):_0x475584['toString']()});}):_0x5c9fd3[_0x2232e5(0xf03)][_0x2232e5(0x16b4)]({'fields':_0x2232e5(0x7a7),'sort':_0x2232e5(0x19eb)})[_0x2232e5(0x2945)][_0x2232e5(0x146b)](function(_0x51248d){const _0x2ebc96=_0x2232e5;_0x1f20b7[_0x2ebc96(0x1324)]=_0x51248d[_0x2ebc96(0x19c7)]||[];})[_0x2232e5(0x146b)](function(){const _0x3ec902=_0x2232e5;return _0x5c9fd3['userProfileSection'][_0x3ec902(0x16b4)]({'userProfileId':_0x1f20b7[_0x3ec902(0x2321)][_0x3ec902(0x209a)],'sectionId':0x12d})[_0x3ec902(0x2945)];})[_0x2232e5(0x146b)](function(_0x2b689b){const _0x319103=_0x2232e5,_0x38affc=_0x2b689b&&_0x2b689b['rows']?_0x2b689b[_0x319103(0x19c7)][0x0]:null;if(!_0x38affc){const _0x28431a=[];let _0x496c57=null;_0x1f20b7[_0x319103(0xbd7)]&&(_0x496c57=_0x3f65c0()['find'](_0x1f20b7[_0x319103(0x1324)],{'id':Number(_0x1f20b7[_0x319103(0xbd7)][_0x319103(0xb7c)])}));for(let _0x252102=0x0;_0x252102<_0x1f20b7[_0x319103(0x1324)]['length'];_0x252102++){_0x496c57&&_0x1f20b7[_0x319103(0x1324)][_0x252102]['id']===_0x496c57['id']&&(_0x1f20b7[_0x319103(0x1324)][_0x252102][_0x319103(0x8ff)]=![],_0x28431a[_0x319103(0x1f47)](_0x1f20b7[_0x319103(0x1324)][_0x252102]));}_0x1f20b7['lists']=_0x28431a;}else{if(!_0x38affc[_0x319103(0x11d2)])return _0x5c9fd3[_0x319103(0xdcc)][_0x319103(0x16b4)]({'sectionId':_0x38affc['id']})['$promise'][_0x319103(0x146b)](function(_0x610971){const _0x2449ad=_0x319103,_0x3f75e6=_0x3f65c0()[_0x2449ad(0x205)](_0x610971[_0x2449ad(0x19c7)],function(_0x4566e7){const _0x440e2d=_0x2449ad;return _0x3f65c0()[_0x440e2d(0xc84)](_0x1f20b7[_0x440e2d(0x1324)],{'id':_0x4566e7[_0x440e2d(0x18b8)]});});let _0x254f42=null;_0x1f20b7['openchannelAccount']&&(_0x254f42=_0x3f65c0()['find'](_0x1f20b7[_0x2449ad(0x1324)],{'id':Number(_0x1f20b7[_0x2449ad(0xbd7)][_0x2449ad(0xb7c)])}));if(_0x254f42&&!_0x3f65c0()['some'](_0x3f75e6,['id',_0x254f42['id']])){const _0x376ae6=_0x3f65c0()[_0x2449ad(0xc84)](_0x1f20b7[_0x2449ad(0x1324)],{'id':_0x254f42['id']});_0x376ae6[_0x2449ad(0x8ff)]=![],_0x3f75e6['push'](_0x376ae6);}_0x1f20b7[_0x2449ad(0x1324)]=_0x3f75e6;});}})[_0x2232e5(0x129e)](function(_0x7d563e){const _0x260b89=_0x2232e5;_0x3f339d[_0x260b89(0x1980)]({'title':_0x7d563e[_0x260b89(0x107b)]?_0x260b89(0x262a)+_0x7d563e[_0x260b89(0x107b)]+_0x260b89(0x1315)+_0x7d563e[_0x260b89(0x167f)]:_0x260b89(0x1a2f),'msg':_0x7d563e[_0x260b89(0x524)]?JSON[_0x260b89(0x10bb)](_0x7d563e[_0x260b89(0x524)]):_0x7d563e[_0x260b89(0xd5f)]()});}),_0x5c9fd3['cmContact'][_0x2232e5(0x1ea2)]({'id':_0x1f20b7[_0x2232e5(0xbd7)][_0x2232e5(0xb7c)]})[_0x2232e5(0x2945)][_0x2232e5(0x146b)](function(_0xdfb741){const _0x53508f=_0x2232e5;_0x1f20b7['fields']=[],_0xdfb741=_0x3f65c0()['values'](_0xdfb741[_0x53508f(0x2488)]());const _0x27d103=['id',_0x53508f(0xc68),_0x53508f(0x144f),_0x53508f(0x13fc),_0x53508f(0x432),_0x53508f(0xb7c),'CompanyId'];for(let _0x5f18a2=0x0;_0x5f18a2<_0xdfb741[_0x53508f(0x402)];_0x5f18a2++){!_0x3f65c0()[_0x53508f(0xa4e)](_0x27d103,_0xdfb741[_0x5f18a2][_0x53508f(0x1e1d)])&&_0x1f20b7[_0x53508f(0x2867)][_0x53508f(0x1f47)](_0xdfb741[_0x5f18a2]);}})[_0x2232e5(0x129e)](function(_0x490714){const _0x47b57f=_0x2232e5;_0x3f339d['error']({'title':_0x490714[_0x47b57f(0x107b)]?_0x47b57f(0x262a)+_0x490714[_0x47b57f(0x107b)]+_0x47b57f(0x1315)+_0x490714[_0x47b57f(0x167f)]:_0x47b57f(0x24ba),'msg':_0x490714[_0x47b57f(0x524)]?JSON[_0x47b57f(0x10bb)](_0x490714[_0x47b57f(0x524)]):_0x490714['toString']()});}),_0x4450b6['hasRole'](_0x2232e5(0x174b))?_0x5c9fd3[_0x2232e5(0x1e3e)][_0x2232e5(0x16b4)]({'fields':_0x2232e5(0x69a),'sort':_0x2232e5(0x19eb),'nolimit':'true'})[_0x2232e5(0x2945)]['then'](function(_0x2019e5){_0x1f20b7['pauses']=_0x2019e5['rows']||[];})[_0x2232e5(0x129e)](function(_0x3b3577){const _0x429e98=_0x2232e5;_0x3f339d['error']({'title':_0x3b3577['status']?_0x429e98(0x262a)+_0x3b3577[_0x429e98(0x107b)]+'\x20-\x20'+_0x3b3577[_0x429e98(0x167f)]:_0x429e98(0x1e82),'msg':_0x3b3577['data']?JSON['stringify'](_0x3b3577['data']):_0x3b3577[_0x429e98(0xd5f)]()});}):_0x5c9fd3['pause'][_0x2232e5(0x16b4)]({'fields':_0x2232e5(0x69a),'sort':_0x2232e5(0x19eb),'nolimit':_0x2232e5(0x1185)})[_0x2232e5(0x2945)]['then'](function(_0x49fde0){_0x1f20b7['pauses']=_0x49fde0['rows']||[];})['then'](function(){const _0x591624=_0x2232e5;return _0x5c9fd3[_0x591624(0x1366)]['get']({'userProfileId':_0x1f20b7['currentUser'][_0x591624(0x209a)],'sectionId':0x3ed})[_0x591624(0x2945)];})[_0x2232e5(0x146b)](function(_0x2b603a){const _0x5b7ef6=_0x2232e5,_0x4bc1d8=_0x2b603a&&_0x2b603a[_0x5b7ef6(0x19c7)]?_0x2b603a[_0x5b7ef6(0x19c7)][0x0]:null;if(!_0x4bc1d8)_0x1f20b7['pauses']=[];else{if(!_0x4bc1d8[_0x5b7ef6(0x11d2)])return _0x5c9fd3[_0x5b7ef6(0xdcc)][_0x5b7ef6(0x16b4)]({'sectionId':_0x4bc1d8['id']})['$promise'][_0x5b7ef6(0x146b)](function(_0x2649db){const _0x4f34a2=_0x5b7ef6,_0x1fba90=_0x3f65c0()[_0x4f34a2(0x205)](_0x2649db['rows'],function(_0x4f714b){const _0x7bf0a9=_0x4f34a2;return _0x3f65c0()[_0x7bf0a9(0xc84)](_0x1f20b7[_0x7bf0a9(0x23bb)],{'id':_0x4f714b[_0x7bf0a9(0x18b8)]});});_0x1f20b7[_0x4f34a2(0x23bb)][_0x4f34a2(0x1df5)](function(_0x2fbba5){const _0x29b3f9=_0x4f34a2;!_0x3f65c0()['some'](_0x1fba90,['id',_0x2fbba5['id']])&&(_0x2fbba5['canSelect']=![]),_0x1fba90[_0x29b3f9(0x1f47)](_0x2fbba5);}),_0x1f20b7[_0x4f34a2(0x23bb)]=_0x1fba90;});}})[_0x2232e5(0x129e)](function(_0x48e0c4){const _0x332fb3=_0x2232e5;_0x3f339d[_0x332fb3(0x1980)]({'title':_0x48e0c4['status']?_0x332fb3(0x262a)+_0x48e0c4[_0x332fb3(0x107b)]+_0x332fb3(0x1315)+_0x48e0c4[_0x332fb3(0x167f)]:_0x332fb3(0x176),'msg':_0x48e0c4['data']?JSON[_0x332fb3(0x10bb)](_0x48e0c4[_0x332fb3(0x524)]):_0x48e0c4[_0x332fb3(0xd5f)]()});});function _0x466bd2(_0x2d67dc,_0x1bd934){const _0x383ece=_0x2232e5;_0x2b11b1[_0x383ece(0x2615)]({'controller':_0x383ece(0x602),'controllerAs':'vm','templateUrl':_0x4be638,'parent':angular['element'](_0x219722[_0x383ece(0x2586)]),'targetEvent':_0x1bd934,'clickOutsideToClose':!![],'locals':{'openchannelAccount':_0x2d67dc,'openchannelAccounts':_0x1f20b7[_0x383ece(0x1690)]?_0x1f20b7[_0x383ece(0x1690)][_0x383ece(0x19c7)]:[],'crudPermissions':_0x1f20b7[_0x383ece(0x2514)],'realtime':![]}});}function _0x32ee11(){const _0x1e659d=_0x2232e5;_0x2f2abc['go']('app.openchannel.openchannelAccounts',{},{'reload':_0x1e659d(0xc7d)});}function _0x538c1d(){const _0x197e71=_0x2232e5;_0x5c9fd3[_0x197e71(0xbd7)][_0x197e71(0x18e1)]({'id':_0x1f20b7[_0x197e71(0xbd7)]['id']},_0x1f20b7['openchannelAccount'])[_0x197e71(0x2945)]['then'](function(){const _0x3682a2=_0x197e71;_0x3f339d[_0x3682a2(0x1c75)]({'title':'OpenchannelAccount\x20updated!','msg':_0x1f20b7[_0x3682a2(0xbd7)][_0x3682a2(0x19eb)]?_0x1f20b7[_0x3682a2(0xbd7)][_0x3682a2(0x19eb)]+_0x3682a2(0x6b0):''});})[_0x197e71(0x129e)](function(_0x290519){const _0x4af1d6=_0x197e71;_0x3f339d[_0x4af1d6(0x1980)]({'title':_0x290519[_0x4af1d6(0x107b)]?_0x4af1d6(0x262a)+_0x290519[_0x4af1d6(0x107b)]+'\x20-\x20'+_0x290519[_0x4af1d6(0x167f)]:_0x4af1d6(0x2624),'msg':_0x290519[_0x4af1d6(0x524)]?JSON[_0x4af1d6(0x10bb)](_0x290519[_0x4af1d6(0x524)]):_0x290519[_0x4af1d6(0xd5f)]()});});}}const _0x5b31dc=_0x13cde1;;const _0xbf5209=_0x4acfac['p']+_0x313a4d(0x187d);;_0x5bcf23[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1aa9),_0x313a4d(0x1862),_0x313a4d(0x15fe),_0x313a4d(0x10e8),_0x313a4d(0x4d8),_0x313a4d(0x1abe),'$translate',_0x313a4d(0x1690),'userProfile','userProfileSection',_0x313a4d(0x247f),_0x313a4d(0x216c),'toasty',_0x313a4d(0xa87),_0x313a4d(0x2690),_0x313a4d(0x15b9)];function _0x5bcf23(_0x22898b,_0x589fe1,_0x35836f,_0x233094,_0x3a26ab,_0xd798cc,_0x359f79,_0x5c6d74,_0x32faee,_0x14efe7,_0x1e2abb,_0x1802be,_0x4a9f39,_0x34a9cf,_0x2e2aa7,_0x41f856,_0x22f49b){const _0x1bdde5=_0x313a4d,_0x435bab=this;_0x435bab[_0x1bdde5(0x2690)]=_0x41f856,_0x435bab[_0x1bdde5(0x15b9)]=_0x22f49b,_0x435bab[_0x1bdde5(0x2321)]=_0x2e2aa7[_0x1bdde5(0xb12)](),_0x435bab['openchannelAccounts']=_0x32faee||{'count':0x0,'rows':[]},_0x435bab[_0x1bdde5(0x26b6)]=_0x14efe7,_0x435bab[_0x1bdde5(0x1366)]=_0x1e2abb&&_0x1e2abb[_0x1bdde5(0x51c)]==0x1?_0x1e2abb['rows'][0x0]:null,_0x435bab[_0x1bdde5(0x2514)]=_0x2e2aa7['parseCrudPermissions'](_0x435bab[_0x1bdde5(0x1366)]?_0x435bab['userProfileSection'][_0x1bdde5(0x2514)]:null),_0x435bab['table']='openchannelAccounts',_0x435bab[_0x1bdde5(0x216a)]='',_0x435bab[_0x1bdde5(0x214f)]=null,_0x435bab[_0x1bdde5(0x1033)]=[],_0x435bab['query']={'fields':_0x1bdde5(0x5cb),'sort':_0x1bdde5(0x12f2),'limit':0xa,'page':0x1},_0x435bab[_0x1bdde5(0x23f9)]=_0x399f7d,_0x435bab['interactionsgoto']=_0x461b85,_0x435bab[_0x1bdde5(0x1027)]=_0x295dcf,_0x435bab['deleteconfirm']=_0x22dc7c,_0x435bab['success']=_0x392ba6,_0x435bab['getOpenchannelAccounts']=_0x2492f7,_0x435bab[_0x1bdde5(0x1f9b)]=_0x30cb73,_0x435bab[_0x1bdde5(0xa68)]=_0x45c140,_0x435bab[_0x1bdde5(0x1f93)]=_0x50be83,_0x435bab['deleteSelectedOpenchannelAccounts']=_0x37ebe9,_0x435bab[_0x1bdde5(0x190b)]=_0xefe592,_0x435bab[_0x1bdde5(0x1ce3)]=_0x5cc87f,_0x2e2aa7['hasRole'](_0x1bdde5(0x174b))?_0x1802be[_0x1bdde5(0xf03)][_0x1bdde5(0x16b4)]({'fields':_0x1bdde5(0x7a7),'sort':_0x1bdde5(0x19eb)})[_0x1bdde5(0x2945)][_0x1bdde5(0x146b)](function(_0x451f86){const _0x1374d1=_0x1bdde5;_0x435bab[_0x1374d1(0x1324)]=_0x451f86['rows']||[];})['catch'](function(_0x41f01e){const _0x50bd3e=_0x1bdde5;_0x34a9cf['error']({'title':_0x41f01e[_0x50bd3e(0x107b)]?'API:'+_0x41f01e[_0x50bd3e(0x107b)]+'\x20-\x20'+_0x41f01e[_0x50bd3e(0x167f)]:_0x50bd3e(0x11b3),'msg':_0x41f01e[_0x50bd3e(0x524)]?JSON[_0x50bd3e(0x10bb)](_0x41f01e[_0x50bd3e(0x524)]):_0x41f01e['toString']()});}):_0x1802be['cmList']['get']({'fields':_0x1bdde5(0x7a7),'sort':_0x1bdde5(0x19eb)})[_0x1bdde5(0x2945)][_0x1bdde5(0x146b)](function(_0x488366){const _0x13952f=_0x1bdde5;_0x435bab['lists']=_0x488366[_0x13952f(0x19c7)]||[];})['then'](function(){const _0x54c39f=_0x1bdde5;return _0x1802be[_0x54c39f(0x1366)][_0x54c39f(0x16b4)]({'userProfileId':_0x435bab[_0x54c39f(0x2321)][_0x54c39f(0x209a)],'sectionId':0x12d})[_0x54c39f(0x2945)];})['then'](function(_0x21d077){const _0x346fc6=_0x1bdde5,_0x3486f2=_0x21d077&&_0x21d077[_0x346fc6(0x19c7)]?_0x21d077[_0x346fc6(0x19c7)][0x0]:null;if(!_0x3486f2){const _0x12ba37=[];let _0x2a99de=null;_0x435bab[_0x346fc6(0xbd7)]&&(_0x2a99de=_0x3f65c0()[_0x346fc6(0xc84)](_0x435bab[_0x346fc6(0x1324)],{'id':Number(_0x435bab[_0x346fc6(0xbd7)][_0x346fc6(0xb7c)])}));for(let _0x4fea60=0x0;_0x4fea60<_0x435bab[_0x346fc6(0x1324)][_0x346fc6(0x402)];_0x4fea60++){_0x2a99de&&_0x435bab[_0x346fc6(0x1324)][_0x4fea60]['id']===_0x2a99de['id']&&(_0x435bab[_0x346fc6(0x1324)][_0x4fea60][_0x346fc6(0x8ff)]=![],_0x12ba37[_0x346fc6(0x1f47)](_0x435bab[_0x346fc6(0x1324)][_0x4fea60]));}_0x435bab[_0x346fc6(0x1324)]=_0x12ba37;}else{if(!_0x3486f2[_0x346fc6(0x11d2)])return _0x1802be[_0x346fc6(0xdcc)][_0x346fc6(0x16b4)]({'sectionId':_0x3486f2['id']})['$promise'][_0x346fc6(0x146b)](function(_0x2f785b){const _0x4ce59e=_0x346fc6,_0xd83475=_0x3f65c0()['map'](_0x2f785b[_0x4ce59e(0x19c7)],function(_0x3376a3){const _0x1bd08a=_0x4ce59e;return _0x3f65c0()[_0x1bd08a(0xc84)](_0x435bab[_0x1bd08a(0x1324)],{'id':_0x3376a3[_0x1bd08a(0x18b8)]});});let _0x3bb4f3=null;_0x435bab[_0x4ce59e(0xbd7)]&&(_0x3bb4f3=_0x3f65c0()[_0x4ce59e(0xc84)](_0x435bab[_0x4ce59e(0x1324)],{'id':Number(_0x435bab['openchannelAccount'][_0x4ce59e(0xb7c)])}));if(_0x3bb4f3&&!_0x3f65c0()[_0x4ce59e(0x1360)](_0xd83475,['id',_0x3bb4f3['id']])){const _0x12dbd3=_0x3f65c0()[_0x4ce59e(0xc84)](_0x435bab[_0x4ce59e(0x1324)],{'id':_0x3bb4f3['id']});_0x12dbd3[_0x4ce59e(0x8ff)]=![],_0xd83475['push'](_0x12dbd3);}_0x435bab[_0x4ce59e(0x1324)]=_0xd83475;});}})[_0x1bdde5(0x129e)](function(_0x13255a){const _0x3e33d4=_0x1bdde5;_0x34a9cf[_0x3e33d4(0x1980)]({'title':_0x13255a[_0x3e33d4(0x107b)]?'API:'+_0x13255a[_0x3e33d4(0x107b)]+'\x20-\x20'+_0x13255a[_0x3e33d4(0x167f)]:'SYSTEM:GETlists','msg':_0x13255a[_0x3e33d4(0x524)]?JSON[_0x3e33d4(0x10bb)](_0x13255a[_0x3e33d4(0x524)]):_0x13255a['toString']()});});function _0x399f7d(_0x3e5bce){const _0x4c818b=_0x1bdde5;_0x35836f['go']('app.openchannel.openchannelAccounts.edit',{'id':_0x3e5bce['id'],'openchannelAccount':_0x3e5bce,'crudPermissions':_0x435bab[_0x4c818b(0x2514)]});}function _0x461b85(_0x14116d){const _0xf61317=_0x1bdde5;_0x35836f['go'](_0xf61317(0x1201),{'id':_0x14116d['id'],'tab':0x5});}function _0x295dcf(_0x147b8c,_0x8ea162){const _0x317c60=_0x1bdde5;_0x3a26ab[_0x317c60(0x2615)]({'controller':'OpenchannelAccountagentaddController','controllerAs':'vm','templateUrl':_0x4be638,'parent':angular[_0x317c60(0x1853)](_0xd798cc[_0x317c60(0x2586)]),'targetEvent':_0x8ea162,'clickOutsideToClose':!![],'locals':{'openchannelAccount':_0x147b8c,'openchannelAccounts':_0x435bab[_0x317c60(0x1690)]?_0x435bab['openchannelAccounts'][_0x317c60(0x19c7)]:[],'crudPermissions':_0x435bab[_0x317c60(0x2514)],'realtime':![]}});}function _0x22dc7c(_0x37f67d,_0x514869){const _0x3d8472=_0x1bdde5,_0x491c36=_0x3a26ab[_0x3d8472(0x1e8a)]()[_0x3d8472(0x1189)](_0x3d8472(0xdb2)+_0x3f65c0()[_0x3d8472(0x20d1)](_0x3d8472(0xbd7))+'?')[_0x3d8472(0x1cbe)](_0x3d8472(0x16d3)+(_0x37f67d[_0x3d8472(0x19eb)]||_0x3d8472(0xbd7))+_0x3d8472(0x252f)+_0x3d8472(0xe01))[_0x3d8472(0x4bd)](_0x3d8472(0xd15))[_0x3d8472(0x1f27)](_0x514869)['ok']('OK')['cancel'](_0x3d8472(0x39a));_0x3a26ab[_0x3d8472(0x2615)](_0x491c36)[_0x3d8472(0x146b)](function(){_0x45c140(_0x37f67d);},function(){const _0x519125=_0x3d8472;console[_0x519125(0x1a74)](_0x519125(0x39a));});}let _0x156fe2=!![],_0x229e36=0x1;_0x22898b[_0x1bdde5(0x21e8)](_0x1bdde5(0x2669),function(_0x4f6969,_0x41993b){const _0x10b768=_0x1bdde5;_0x156fe2?_0x359f79(function(){_0x156fe2=![];}):(!_0x41993b&&(_0x229e36=_0x435bab['query'][_0x10b768(0x844)]),_0x4f6969!==_0x41993b&&(_0x435bab['query']['page']=0x1),!_0x4f6969&&(_0x435bab[_0x10b768(0x1a56)][_0x10b768(0x844)]=_0x229e36),_0x435bab[_0x10b768(0x12ef)]());});function _0x392ba6(_0x131ed5){const _0xc6d300=_0x1bdde5;_0x435bab[_0xc6d300(0x1690)]=_0x131ed5||{'count':0x0,'rows':[]};}function _0x2492f7(){const _0x1e902a=_0x1bdde5;_0x435bab[_0x1e902a(0x1a56)][_0x1e902a(0x145d)]=(_0x435bab[_0x1e902a(0x1a56)][_0x1e902a(0x844)]-0x1)*_0x435bab[_0x1e902a(0x1a56)][_0x1e902a(0x221e)],_0x2e2aa7[_0x1e902a(0x23e0)](_0x1e902a(0x174b))?_0x435bab['promise']=_0x1802be[_0x1e902a(0xbd7)]['get'](_0x435bab[_0x1e902a(0x1a56)],_0x392ba6)[_0x1e902a(0x2945)]:(_0x435bab[_0x1e902a(0x1a56)]['id']=_0x435bab['userProfile']['id'],_0x435bab[_0x1e902a(0x1a56)]['section']='OpenchannelAccounts',_0x435bab[_0x1e902a(0xb9c)]=_0x1802be[_0x1e902a(0x26b6)]['getResources'](_0x435bab[_0x1e902a(0x1a56)],_0x392ba6)[_0x1e902a(0x2945)]);}function _0x30cb73(_0xdc3b5d,_0x259b86){const _0x1fb20b=_0x1bdde5;_0x3a26ab[_0x1fb20b(0x2615)]({'controller':_0x1fb20b(0x264e),'controllerAs':'vm','templateUrl':_0xbf5209,'parent':angular[_0x1fb20b(0x1853)](_0xd798cc[_0x1fb20b(0x2586)]),'targetEvent':_0xdc3b5d,'clickOutsideToClose':!![],'locals':{'openchannelAccount':_0x259b86,'openchannelAccounts':_0x435bab[_0x1fb20b(0x1690)][_0x1fb20b(0x19c7)],'license':_0x435bab['license'],'setting':_0x435bab[_0x1fb20b(0x15b9)],'crudPermissions':_0x435bab[_0x1fb20b(0x2514)]}});}function _0x45c140(_0x475ef5){const _0x15e023=_0x1bdde5;_0x1802be[_0x15e023(0xbd7)][_0x15e023(0x1fac)]({'id':_0x475ef5['id']})[_0x15e023(0x2945)]['then'](function(){const _0x1d269d=_0x15e023;_0x3f65c0()[_0x1d269d(0x2640)](_0x435bab[_0x1d269d(0x1690)][_0x1d269d(0x19c7)],{'id':_0x475ef5['id']}),_0x435bab[_0x1d269d(0x1690)][_0x1d269d(0x51c)]-=0x1,!_0x435bab[_0x1d269d(0x1690)][_0x1d269d(0x19c7)][_0x1d269d(0x402)]&&_0x435bab[_0x1d269d(0x12ef)](),_0x34a9cf[_0x1d269d(0x1c75)]({'title':_0x3f65c0()[_0x1d269d(0x20d1)](_0x1d269d(0xff4))+_0x1d269d(0x201c),'msg':_0x475ef5[_0x1d269d(0x19eb)]?_0x475ef5['name']+_0x1d269d(0x23e3):''});})['catch'](function(_0x3b9e2b){const _0x31df68=_0x15e023;if(_0x3b9e2b['data']&&_0x3b9e2b[_0x31df68(0x524)][_0x31df68(0xcef)]&&_0x3b9e2b[_0x31df68(0x524)][_0x31df68(0xcef)]['length']){_0x435bab[_0x31df68(0xcef)]=_0x3b9e2b[_0x31df68(0x524)][_0x31df68(0xcef)]||[{'message':_0x3b9e2b['toString'](),'type':_0x31df68(0x34a)}];for(let _0x81d825=0x0;_0x81d825<_0x3b9e2b['data'][_0x31df68(0xcef)]['length'];_0x81d825++){_0x34a9cf[_0x31df68(0x1980)]({'title':_0x3b9e2b['data'][_0x31df68(0xcef)][_0x81d825][_0x31df68(0x1142)],'msg':_0x3b9e2b[_0x31df68(0x524)][_0x31df68(0xcef)][_0x81d825][_0x31df68(0x7fd)]});}}else _0x34a9cf[_0x31df68(0x1980)]({'title':_0x3b9e2b[_0x31df68(0x107b)]?_0x31df68(0x262a)+_0x3b9e2b[_0x31df68(0x107b)]+_0x31df68(0x1315)+_0x3b9e2b[_0x31df68(0x167f)]:_0x31df68(0x34a),'msg':_0x3b9e2b[_0x31df68(0x524)]?JSON[_0x31df68(0x10bb)](_0x3b9e2b[_0x31df68(0x524)]['message']):_0x3b9e2b[_0x31df68(0x7fd)]||_0x3b9e2b[_0x31df68(0xd5f)]()});});}function _0x50be83(){const _0x17a4ff=_0x1bdde5,_0x997e38=angular[_0x17a4ff(0x235a)](_0x435bab['selectedOpenchannelAccounts']);return _0x435bab[_0x17a4ff(0x1033)]=[],_0x997e38;}function _0x37ebe9(_0x111b19){const _0x400bc1=_0x1bdde5,_0x303e0e=_0x3a26ab['confirm']()[_0x400bc1(0x1189)](_0x400bc1(0x264a))[_0x400bc1(0x1cbe)](_0x400bc1(0x16d3)+_0x435bab[_0x400bc1(0x1033)]['length']+_0x400bc1(0x2452)+_0x400bc1(0xe01))[_0x400bc1(0x4bd)](_0x400bc1(0x2349))['targetEvent'](_0x111b19)['ok']('OK')[_0x400bc1(0x6c3)](_0x400bc1(0x39a));_0x3a26ab[_0x400bc1(0x2615)](_0x303e0e)[_0x400bc1(0x146b)](function(){const _0x5f41c6=_0x400bc1;_0x435bab[_0x5f41c6(0x1033)][_0x5f41c6(0x1df5)](function(_0x111e30){_0x45c140(_0x111e30);}),_0x435bab['selectedOpenchannelAccounts']=[];});}function _0xefe592(){const _0xbb2099=_0x1bdde5;_0x435bab[_0xbb2099(0x1033)]=[];}function _0x5cc87f(){const _0x1e587a=_0x1bdde5;_0x435bab[_0x1e587a(0x1033)]=_0x435bab[_0x1e587a(0x1690)][_0x1e587a(0x19c7)];}}const _0x4eca30=_0x5bcf23;;_0x26063f[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1862),_0x313a4d(0xd08),_0x313a4d(0x10e8),'$q','$translate',_0x313a4d(0x1fe4),_0x313a4d(0x1ebb),'openchannelQueue',_0x313a4d(0x247f),_0x313a4d(0xa87),_0x313a4d(0x2690),'setting',_0x313a4d(0x2514)];function _0x26063f(_0x32275a,_0x10a9c8,_0x4b9b74,_0x443d6b,_0x39e09d,_0x3ddf56,_0x1c935f,_0x11ef19,_0x490ab9,_0x1a9675,_0x2207c7,_0x2b42a1,_0x29695f,_0x4e9028){const _0x283599=_0x313a4d,_0x2296b0=this;_0x2296b0['currentUser']=_0x2207c7['getCurrentUser'](),_0x2296b0[_0x283599(0xcef)]=[],_0x2296b0[_0x283599(0x15b9)]=_0x29695f,_0x2296b0[_0x283599(0x2690)]=_0x2b42a1,_0x2296b0[_0x283599(0x2514)]=_0x4e9028,_0x2296b0[_0x283599(0x855)]={},_0x2296b0[_0x283599(0x2251)]=_0x2296b0[_0x283599(0x15b9)]&&_0x2296b0[_0x283599(0x15b9)][_0x283599(0x976)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2296b0[_0x283599(0x1189)]='OPENCHANNEL.EDIT_OPENCHANNELQUEUE',_0x2296b0['openchannelQueue']=angular['copy'](_0x490ab9),_0x2296b0['openchannelQueues']=_0x11ef19,_0x2296b0[_0x283599(0x2fb)]=![];!_0x2296b0[_0x283599(0x2755)]&&(_0x2296b0[_0x283599(0x2755)]={'strategy':_0x283599(0x1984),'timeout':0xa},_0x2296b0[_0x283599(0x1189)]='OPENCHANNEL.NEW_OPENCHANNELQUEUE',_0x2296b0[_0x283599(0x2fb)]=!![]);_0x2296b0[_0x283599(0x18fa)]=_0x52b8c9,_0x2296b0[_0x283599(0x1a2a)]=_0x534f1c,_0x2296b0[_0x283599(0x25b7)]=_0x9fdc6b,_0x2296b0[_0x283599(0xe73)]=_0x2362d2,_0x2296b0[_0x283599(0x13f3)]=_0x125eae;function _0x52b8c9(){const _0x3d9196=_0x283599;_0x2296b0['errors']=[],_0x1a9675[_0x3d9196(0x2755)]['save'](_0x2296b0[_0x3d9196(0x2755)])[_0x3d9196(0x2945)][_0x3d9196(0x146b)](function(_0x36aaee){const _0xd9eb14=_0x3d9196;_0x2296b0[_0xd9eb14(0x1ebb)]['unshift'](_0x36aaee[_0xd9eb14(0x2488)]()),_0x1c935f[_0xd9eb14(0x1c75)]({'title':_0xd9eb14(0xd22),'msg':_0x2296b0[_0xd9eb14(0x2755)][_0xd9eb14(0x19eb)]?_0x2296b0[_0xd9eb14(0x2755)][_0xd9eb14(0x19eb)]+_0xd9eb14(0x1386):''}),_0x125eae(_0x36aaee);})[_0x3d9196(0x129e)](function(_0x22518e){const _0x5bd410=_0x3d9196;if(_0x22518e[_0x5bd410(0x524)]&&_0x22518e[_0x5bd410(0x524)]['errors']&&_0x22518e[_0x5bd410(0x524)][_0x5bd410(0xcef)][_0x5bd410(0x402)]){_0x2296b0[_0x5bd410(0xcef)]=_0x22518e[_0x5bd410(0x524)][_0x5bd410(0xcef)]||[{'message':_0x22518e[_0x5bd410(0xd5f)](),'type':_0x5bd410(0x292c)}];for(let _0x2c318b=0x0;_0x2c318b<_0x22518e[_0x5bd410(0x524)][_0x5bd410(0xcef)]['length'];_0x2c318b+=0x1){_0x1c935f[_0x5bd410(0x1980)]({'title':_0x22518e['data']['errors'][_0x2c318b][_0x5bd410(0x1142)],'msg':_0x22518e[_0x5bd410(0x524)][_0x5bd410(0xcef)][_0x2c318b]['message']});}}else _0x1c935f[_0x5bd410(0x1980)]({'title':_0x22518e[_0x5bd410(0x107b)]?'API:'+_0x22518e['status']+_0x5bd410(0x1315)+_0x22518e[_0x5bd410(0x167f)]:_0x5bd410(0x292c),'msg':_0x22518e['data']?JSON[_0x5bd410(0x10bb)](_0x22518e['data']['message']):_0x22518e['toString']()});});}function _0x534f1c(){const _0x4d7205=_0x283599;_0x2296b0[_0x4d7205(0xcef)]=[],_0x1a9675[_0x4d7205(0x2755)][_0x4d7205(0x18e1)]({'id':_0x2296b0[_0x4d7205(0x2755)]['id']},_0x2296b0[_0x4d7205(0x2755)])[_0x4d7205(0x2945)][_0x4d7205(0x146b)](function(_0xa7cade){const _0x3e58e0=_0x4d7205,_0x51eff9=_0x3f65c0()[_0x3e58e0(0xc84)](_0x2296b0[_0x3e58e0(0x1ebb)],{'id':_0xa7cade['id']});_0x51eff9&&_0x3f65c0()[_0x3e58e0(0x168d)](_0x51eff9,_0x3f65c0()[_0x3e58e0(0x40e)](_0xa7cade[_0x3e58e0(0x2488)](),_0x3f65c0()[_0x3e58e0(0x627)](_0x51eff9))),_0x1c935f['success']({'title':_0x3e58e0(0x488),'msg':_0x2296b0[_0x3e58e0(0x2755)][_0x3e58e0(0x19eb)]?_0x2296b0[_0x3e58e0(0x2755)][_0x3e58e0(0x19eb)]+_0x3e58e0(0x24db):''}),_0x125eae(_0xa7cade);})[_0x4d7205(0x129e)](function(_0x62c71d){const _0x4e4973=_0x4d7205;if(_0x62c71d[_0x4e4973(0x524)]&&_0x62c71d[_0x4e4973(0x524)][_0x4e4973(0xcef)]&&_0x62c71d[_0x4e4973(0x524)]['errors'][_0x4e4973(0x402)]){_0x2296b0['errors']=_0x62c71d['data'][_0x4e4973(0xcef)]||[{'message':_0x62c71d[_0x4e4973(0xd5f)](),'type':_0x4e4973(0x1183)}];for(let _0x5105de=0x0;_0x5105de<_0x62c71d['data'][_0x4e4973(0xcef)]['length'];_0x5105de++){_0x1c935f[_0x4e4973(0x1980)]({'title':_0x62c71d['data'][_0x4e4973(0xcef)][_0x5105de][_0x4e4973(0x1142)],'msg':_0x62c71d[_0x4e4973(0x524)]['errors'][_0x5105de][_0x4e4973(0x7fd)]});}}else _0x1c935f[_0x4e4973(0x1980)]({'title':_0x62c71d[_0x4e4973(0x107b)]?_0x4e4973(0x262a)+_0x62c71d[_0x4e4973(0x107b)]+_0x4e4973(0x1315)+_0x62c71d[_0x4e4973(0x167f)]:'api.openchannelQueue.update','msg':_0x62c71d[_0x4e4973(0x524)]?JSON[_0x4e4973(0x10bb)](_0x62c71d['data'][_0x4e4973(0x7fd)]):_0x62c71d[_0x4e4973(0xd5f)]()});});}function _0x9fdc6b(_0x3732a7){const _0x1ebb1d=_0x283599;_0x2296b0[_0x1ebb1d(0xcef)]=[];const _0x6b76a5=_0x443d6b[_0x1ebb1d(0x1e8a)]()[_0x1ebb1d(0x1189)](_0x1ebb1d(0x1d64))[_0x1ebb1d(0x80f)]('The\x20openchannelQueue\x20will\x20be\x20deleted.')[_0x1ebb1d(0x4bd)](_0x1ebb1d(0x653))['ok']('Delete')[_0x1ebb1d(0x6c3)](_0x1ebb1d(0xcf0))['targetEvent'](_0x3732a7);_0x443d6b[_0x1ebb1d(0x2615)](_0x6b76a5)[_0x1ebb1d(0x146b)](function(){const _0x1b2086=_0x1ebb1d;_0x1a9675[_0x1b2086(0x2755)][_0x1b2086(0x1fac)]({'id':_0x2296b0['openchannelQueue']['id']})[_0x1b2086(0x2945)][_0x1b2086(0x146b)](function(){const _0x128fb8=_0x1b2086;_0x3f65c0()['remove'](_0x2296b0[_0x128fb8(0x1ebb)],{'id':_0x2296b0[_0x128fb8(0x2755)]['id']}),_0x1c935f[_0x128fb8(0x1c75)]({'title':_0x128fb8(0x4cb),'msg':(_0x2296b0['openchannelQueue'][_0x128fb8(0x19eb)]||_0x128fb8(0x2755))+_0x128fb8(0x23e3)}),_0x125eae(_0x2296b0[_0x128fb8(0x2755)]);})[_0x1b2086(0x129e)](function(_0x2614f7){const _0x247133=_0x1b2086;if(_0x2614f7['data']&&_0x2614f7['data']['errors']&&_0x2614f7[_0x247133(0x524)]['errors'][_0x247133(0x402)]){_0x2296b0[_0x247133(0xcef)]=_0x2614f7[_0x247133(0x524)][_0x247133(0xcef)]||[{'message':_0x2614f7[_0x247133(0xd5f)](),'type':_0x247133(0x1727)}];for(let _0x318d37=0x0;_0x318d37<_0x2614f7[_0x247133(0x524)][_0x247133(0xcef)][_0x247133(0x402)];_0x318d37++){_0x1c935f[_0x247133(0x1980)]({'title':_0x2614f7[_0x247133(0x524)][_0x247133(0xcef)][_0x318d37][_0x247133(0x1142)],'msg':_0x2614f7[_0x247133(0x524)][_0x247133(0xcef)][_0x318d37][_0x247133(0x7fd)]});}}else _0x1c935f[_0x247133(0x1980)]({'title':_0x2614f7[_0x247133(0x107b)]?'API:'+_0x2614f7[_0x247133(0x107b)]+'\x20-\x20'+_0x2614f7[_0x247133(0x167f)]:'api.openchannelQueue.delete','msg':_0x2614f7[_0x247133(0x524)]?JSON[_0x247133(0x10bb)](_0x2614f7[_0x247133(0x524)]['message']):_0x2614f7[_0x247133(0x7fd)]||_0x2614f7['toString']()});});},function(){});}function _0x2362d2(_0x3e55df){return _0x3e55df===null?undefined:new Date(_0x3e55df);}function _0x125eae(_0x30daba){const _0x19d741=_0x283599;_0x443d6b[_0x19d741(0x2458)](_0x30daba);}}const _0x4f6068=_0x26063f;;_0x5ba24b[_0x313a4d(0x11c2)]=[_0x313a4d(0x10e8),'$q','toasty','api',_0x313a4d(0x2755),'openchannelQueues',_0x313a4d(0xfc4),_0x313a4d(0x214b),_0x313a4d(0xa87),_0x313a4d(0x2514)];function _0x5ba24b(_0x472bcb,_0x378f8e,_0x437e13,_0x5a1971,_0x59a58f,_0x585dc5,_0x264b0c,_0x4f051a,_0x3dd41e,_0x33390a){const _0x2ed1e8=_0x313a4d,_0x1c8265=this;_0x1c8265[_0x2ed1e8(0x2321)]=_0x3dd41e['getCurrentUser'](),_0x1c8265[_0x2ed1e8(0x2755)]=_0x59a58f,_0x1c8265[_0x2ed1e8(0x2514)]=_0x33390a,_0x1c8265[_0x2ed1e8(0xfc4)]=_0x264b0c,_0x1c8265[_0x2ed1e8(0x1fd6)]=[],_0x1c8265[_0x2ed1e8(0xc4e)]=[],_0x1c8265[_0x2ed1e8(0x1ecf)]=[],_0x1c8265['startingAllowedItems']=[],_0x1c8265[_0x2ed1e8(0xa65)]=[],_0x1c8265['pendingChanges']=![],_0x1c8265[_0x2ed1e8(0x3d4)]=_0x51e6a1,_0x1c8265[_0x2ed1e8(0x14c2)]=_0xea5f4d,_0x1c8265[_0x2ed1e8(0x13f3)]=_0x5338e3,_0x1c8265['dualMultiselectOptions']={'readOnly':!_0x1c8265[_0x2ed1e8(0x2514)][_0x2ed1e8(0x15f4)],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x2ed1e8(0x19eb),'line1':_0x2ed1e8(0x286a),'line2':[_0x2ed1e8(0x19eb),_0x2ed1e8(0x113f)],'line3':'','labelAll':_0x4f051a[_0x2ed1e8(0xde)]('APP.ALL_AGENTS'),'labelSelected':_0x4f051a[_0x2ed1e8(0xde)]('APP.SELECTED_AGENTS'),'transferCallback':function(){const _0x5c6d2b=_0x2ed1e8,_0x1f6b44=_0x3f65c0()[_0x5c6d2b(0x1883)](_0x1c8265[_0x5c6d2b(0xa65)],_0x1c8265[_0x5c6d2b(0x1ecf)],'id');_0x1c8265[_0x5c6d2b(0x132)]=_0x3f65c0()['isEmpty'](_0x1f6b44)?![]:!![];}};function _0x51e6a1(){const _0x38b0de=_0x2ed1e8;return _0x3dd41e[_0x38b0de(0x23e0)](_0x38b0de(0x174b))?_0x57dd79()[_0x38b0de(0x129e)](function(_0x5b2935){const _0x5ca90c=_0x38b0de;_0x437e13['error']({'title':_0x5b2935[_0x5ca90c(0x107b)]?'API:'+_0x5b2935[_0x5ca90c(0x107b)]+'\x20-\x20'+_0x5b2935['statusText']:_0x5ca90c(0x557),'msg':_0x5b2935[_0x5ca90c(0x107b)]?JSON['stringify'](_0x5b2935[_0x5ca90c(0x524)]):_0x5b2935[_0x5ca90c(0xd5f)]()});}):_0x293547()[_0x38b0de(0x146b)](function(_0x27af65){const _0x3a7357=_0x38b0de;return _0x1c8265[_0x3a7357(0x2146)]=_0x27af65,_0x57dd79();})[_0x38b0de(0x129e)](function(_0xa7da40){const _0x1349a4=_0x38b0de;_0x437e13[_0x1349a4(0x1980)]({'title':_0xa7da40[_0x1349a4(0x107b)]?_0x1349a4(0x262a)+_0xa7da40[_0x1349a4(0x107b)]+_0x1349a4(0x1315)+_0xa7da40[_0x1349a4(0x167f)]:_0x1349a4(0x557),'msg':_0xa7da40[_0x1349a4(0x107b)]?JSON[_0x1349a4(0x10bb)](_0xa7da40[_0x1349a4(0x524)]):_0xa7da40[_0x1349a4(0xd5f)]()});});}function _0x293547(){return _0x378f8e(function(_0x576216,_0x2b7c15){const _0x5fc45d=a0_0x3bb9;_0x5a1971[_0x5fc45d(0x1366)][_0x5fc45d(0x16b4)]({'userProfileId':_0x1c8265['currentUser'][_0x5fc45d(0x209a)],'name':_0x5fc45d(0xca8)})[_0x5fc45d(0x2945)]['then'](function(_0x1b3538){const _0x5cbd8d=_0x5fc45d,_0x5aa9e0=_0x1b3538&&_0x1b3538['rows']?_0x1b3538[_0x5cbd8d(0x19c7)][0x0]:null;_0x576216(_0x5aa9e0);})[_0x5fc45d(0x129e)](function(_0xa57cb0){_0x2b7c15(_0xa57cb0);});});}function _0x57dd79(){return _0x378f8e(function(_0x4ac286,_0x475afa){const _0x33addf=a0_0x3bb9;return _0x50087c()['then'](function(_0x16fcff){const _0x6793c5=a0_0x3bb9;return _0x1c8265[_0x6793c5(0x1fd6)]=_0x16fcff[_0x6793c5(0x19c7)]?_0x16fcff[_0x6793c5(0x19c7)]:[],_0x3dd41e[_0x6793c5(0x23e0)](_0x6793c5(0x174b))?_0x16fcff:_0x1c8265[_0x6793c5(0x2146)]?_0x1c8265[_0x6793c5(0x2146)]['autoAssociation']?_0x16fcff:_0x3835c2():null;})[_0x33addf(0x146b)](function(_0x3e8260){const _0x1f140f=_0x33addf,_0x4cc2d6=_0x3e8260&&_0x3e8260['rows']?_0x3e8260[_0x1f140f(0x19c7)]:[];return _0x1c8265[_0x1f140f(0xc4e)]=_0x3f65c0()[_0x1f140f(0x205)](_0x4cc2d6,function(_0x24821d){const _0x235eae=_0x1f140f;return _0x3f65c0()[_0x235eae(0xc84)](_0x1c8265['items'],{'id':_0x3dd41e[_0x235eae(0x23e0)](_0x235eae(0x174b))||_0x1c8265[_0x235eae(0x2146)][_0x235eae(0x11d2)]?_0x24821d['id']:_0x24821d[_0x235eae(0x18b8)]});}),_0x1c8265[_0x1f140f(0x2e8)]=angular['copy'](_0x1c8265[_0x1f140f(0xc4e)]),_0x1c8265[_0x1f140f(0x1fd6)]['forEach'](function(_0x38cfd0){const _0x473df1=_0x1f140f,_0x1fcbf3=_0x3f65c0()['find'](_0x1c8265[_0x473df1(0xc4e)],{'id':_0x38cfd0['id']});_0x3dd41e[_0x473df1(0x23e0)](_0x473df1(0x174b))?_0x38cfd0['isValid']=!![]:_0x38cfd0['isValid']=typeof _0x1fcbf3!==_0x473df1(0x2274)?!![]:![];}),_0x250969();})[_0x33addf(0x146b)](function(_0x4b36af){const _0x3b7363=_0x33addf,_0x320228=_0x4b36af&&_0x4b36af[_0x3b7363(0x19c7)]?_0x4b36af[_0x3b7363(0x19c7)]:[];_0x1c8265[_0x3b7363(0x1ecf)]=_0x3f65c0()[_0x3b7363(0x205)](_0x320228,function(_0x45ab1d){const _0x55f639=_0x3b7363,_0x5cd6eb=_0x3f65c0()[_0x55f639(0xc84)](_0x1c8265[_0x55f639(0x1fd6)],{'id':_0x45ab1d['id']});return _0x5cd6eb[_0x55f639(0x188d)]=_0x45ab1d[_0x55f639(0x2c6)]?_0x55f639(0x2505)+_0x45ab1d[_0x55f639(0x2c6)][_0x55f639(0x188d)]:'',_0x5cd6eb[_0x55f639(0x113f)]=typeof _0x45ab1d[_0x55f639(0x113f)]!==_0x55f639(0x2274)?'<'+_0x45ab1d[_0x55f639(0x113f)]+'>':'',_0x5cd6eb;}),_0x1c8265[_0x3b7363(0xa65)]=angular[_0x3b7363(0x235a)](_0x1c8265['selectedItems']),_0x1c8265[_0x3b7363(0x1f8a)]['selectedItems']=_0x1c8265[_0x3b7363(0x1ecf)],_0x1c8265[_0x3b7363(0x1f8a)][_0x3b7363(0x1fd6)]=_0x3f65c0()[_0x3b7363(0x2796)](_0x1c8265[_0x3b7363(0xc4e)],_0x1c8265[_0x3b7363(0x1f8a)][_0x3b7363(0x1ecf)],'id'),_0x4ac286();})[_0x33addf(0x129e)](function(_0x233b9f){_0x475afa(_0x233b9f);});});}function _0x3835c2(){return _0x378f8e(function(_0x1be7da,_0x40aa7a){const _0x1d4483=a0_0x3bb9;return _0x5a1971[_0x1d4483(0xdcc)][_0x1d4483(0x16b4)]({'sectionId':_0x1c8265['section']['id'],'nolimit':!![]})[_0x1d4483(0x2945)][_0x1d4483(0x146b)](function(_0x13904f){_0x1be7da(_0x13904f);})[_0x1d4483(0x129e)](function(_0xfac047){_0x40aa7a(_0xfac047);});});}function _0x250969(){return _0x378f8e(function(_0x4a3781,_0x40d3a7){const _0x377143=a0_0x3bb9;return _0x5a1971[_0x377143(0x2755)][_0x377143(0x333)]({'id':_0x1c8265[_0x377143(0x2755)]['id'],'fields':'id,name,internal,fullname','nolimit':!![],'role':'agent'})[_0x377143(0x2945)]['then'](function(_0x2c42ae){_0x4a3781(_0x2c42ae);})['catch'](function(_0x139ef7){_0x40d3a7(_0x139ef7);});});}function _0x50087c(){return _0x378f8e(function(_0x3de0a7,_0x79b378){const _0x3eb4d4=a0_0x3bb9;return _0x5a1971[_0x3eb4d4(0xe7b)]['get']({'fields':_0x3eb4d4(0x1569),'nolimit':!![],'role':'agent'})[_0x3eb4d4(0x2945)]['then'](function(_0x542f43){_0x3de0a7(_0x542f43);})['catch'](function(_0x4b0939){_0x79b378(_0x4b0939);});});}function _0x3d282b(_0x4ee47a){return _0x378f8e(function(_0x4a3cb8,_0x5a8c17){const _0x5c09d4=a0_0x3bb9;_0x3f65c0()[_0x5c09d4(0x2635)](_0x4ee47a)?_0x4a3cb8():_0x5a1971[_0x5c09d4(0x2755)][_0x5c09d4(0x135e)]({'id':_0x1c8265[_0x5c09d4(0x2755)]['id'],'ids':_0x3f65c0()[_0x5c09d4(0x205)](_0x4ee47a,'id')})['$promise'][_0x5c09d4(0x146b)](function(){_0x4a3cb8();})['catch'](function(_0x220a26){_0x5a8c17(_0x220a26);});});}function _0x489b56(_0x4e7e59){return _0x378f8e(function(_0x5dd10e,_0x36e68a){const _0x5e2e75=a0_0x3bb9;_0x3f65c0()[_0x5e2e75(0x2635)](_0x4e7e59)?_0x5dd10e():_0x5a1971[_0x5e2e75(0x2755)]['removeAgents']({'id':_0x1c8265['openchannelQueue']['id'],'ids':_0x3f65c0()[_0x5e2e75(0x205)](_0x4e7e59,'id')})['$promise']['then'](function(){_0x5dd10e();})[_0x5e2e75(0x129e)](function(_0x511b9f){_0x36e68a(_0x511b9f);});});}function _0xea5f4d(){const _0x44f69c=_0x2ed1e8,_0x5950d6=_0x3f65c0()[_0x44f69c(0x2796)](_0x1c8265['startingSelectedItems'],_0x1c8265[_0x44f69c(0x1ecf)],'id'),_0x21424b=_0x3f65c0()[_0x44f69c(0x2796)](_0x1c8265['selectedItems'],_0x1c8265[_0x44f69c(0xa65)],'id');return _0x489b56(_0x5950d6)[_0x44f69c(0x146b)](function(){return _0x3d282b(_0x21424b);})[_0x44f69c(0x146b)](function(){const _0x3c0c56=_0x44f69c;_0x1c8265[_0x3c0c56(0x132)]=![],_0x1c8265[_0x3c0c56(0x2e8)]=angular[_0x3c0c56(0x235a)](_0x1c8265[_0x3c0c56(0xc4e)]),_0x1c8265[_0x3c0c56(0xa65)]=angular[_0x3c0c56(0x235a)](_0x1c8265['selectedItems']),_0x437e13[_0x3c0c56(0x1c75)]({'title':_0x3c0c56(0x4c0),'msg':_0x3c0c56(0x26be)});})[_0x44f69c(0x129e)](function(_0x5742da){const _0x5a7ae1=_0x44f69c;_0x437e13['error']({'title':_0x5742da[_0x5a7ae1(0x107b)]?'API:'+_0x5742da[_0x5a7ae1(0x107b)]+_0x5a7ae1(0x1315)+_0x5742da[_0x5a7ae1(0x167f)]:'SYSTEM:LISTS_ASSOCIATION','msg':_0x5742da[_0x5a7ae1(0x107b)]?JSON[_0x5a7ae1(0x10bb)](_0x5742da[_0x5a7ae1(0x524)]):_0x5742da[_0x5a7ae1(0xd5f)]()});});}function _0x5338e3(){_0x472bcb['hide']();}}const _0x15dbbc=_0x5ba24b;;_0x5e7213[_0x313a4d(0x11c2)]=[_0x313a4d(0x10e8),'$q','toasty',_0x313a4d(0x247f),'openchannelQueue',_0x313a4d(0x214b),_0x313a4d(0xa87),_0x313a4d(0x2514)];function _0x5e7213(_0x78c92a,_0x10b783,_0x49efd5,_0x2c3366,_0x256462,_0xd7759d,_0xe27817,_0x477907){const _0x5c38f6=_0x313a4d,_0x1aecdd=this;_0x1aecdd[_0x5c38f6(0x2321)]=_0xe27817[_0x5c38f6(0xb12)](),_0x1aecdd[_0x5c38f6(0x2755)]=_0x256462,_0x1aecdd[_0x5c38f6(0x2514)]=_0x477907,_0x1aecdd['items']=[],_0x1aecdd['allowedItems']=[],_0x1aecdd[_0x5c38f6(0x1ecf)]=[],_0x1aecdd[_0x5c38f6(0x2e8)]=[],_0x1aecdd[_0x5c38f6(0xa65)]=[],_0x1aecdd[_0x5c38f6(0x132)]=![],_0x1aecdd[_0x5c38f6(0x1f8a)]={'readOnly':!_0x1aecdd[_0x5c38f6(0x2514)]['canEdit'],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x5c38f6(0x19eb),'line1':_0x5c38f6(0x19eb),'line2':'','line3':'','labelAll':_0xd7759d[_0x5c38f6(0xde)](_0x5c38f6(0x218d)),'labelSelected':_0xd7759d[_0x5c38f6(0xde)](_0x5c38f6(0x1ae7)),'transferCallback':function(){const _0xaddcc0=_0x5c38f6,_0x2ba358=_0x3f65c0()[_0xaddcc0(0x1883)](_0x1aecdd['startingSelectedItems'],_0x1aecdd['selectedItems'],'id');_0x1aecdd[_0xaddcc0(0x132)]=_0x3f65c0()[_0xaddcc0(0x2635)](_0x2ba358)?![]:!![];}},_0x1aecdd['onInit']=_0x396e91,_0x1aecdd[_0x5c38f6(0x215f)]=_0x108596,_0x1aecdd[_0x5c38f6(0x13f3)]=_0x557b21;function _0x396e91(){const _0x1e3e7d=_0x5c38f6;return _0xe27817['hasRole']('admin')?_0x5b732c()[_0x1e3e7d(0x129e)](function(_0x37db81){const _0x14ddf3=_0x1e3e7d;_0x49efd5[_0x14ddf3(0x1980)]({'title':_0x37db81['status']?_0x14ddf3(0x262a)+_0x37db81['status']+_0x14ddf3(0x1315)+_0x37db81[_0x14ddf3(0x167f)]:_0x14ddf3(0x5a5),'msg':_0x37db81[_0x14ddf3(0x107b)]?JSON['stringify'](_0x37db81[_0x14ddf3(0x524)]):_0x37db81[_0x14ddf3(0xd5f)]()});}):_0x49e8f9()[_0x1e3e7d(0x146b)](function(_0x317d22){const _0x2cc0ac=_0x1e3e7d;return _0x1aecdd[_0x2cc0ac(0x2146)]=_0x317d22,_0x5b732c();})[_0x1e3e7d(0x129e)](function(_0x45a326){const _0x282f5f=_0x1e3e7d;_0x49efd5['error']({'title':_0x45a326[_0x282f5f(0x107b)]?_0x282f5f(0x262a)+_0x45a326['status']+_0x282f5f(0x1315)+_0x45a326[_0x282f5f(0x167f)]:'SYSTEM:GET_TEAMS','msg':_0x45a326['status']?JSON[_0x282f5f(0x10bb)](_0x45a326['data']):_0x45a326[_0x282f5f(0xd5f)]()});});}function _0x49e8f9(){return _0x10b783(function(_0x31bd35,_0x9dc8bc){const _0x2476f4=a0_0x3bb9;_0x2c3366['userProfileSection']['get']({'userProfileId':_0x1aecdd[_0x2476f4(0x2321)][_0x2476f4(0x209a)],'name':_0x2476f4(0x21ae)})[_0x2476f4(0x2945)]['then'](function(_0x49f989){const _0x3054b7=_0x2476f4,_0x2582ad=_0x49f989&&_0x49f989['rows']?_0x49f989[_0x3054b7(0x19c7)][0x0]:null;_0x31bd35(_0x2582ad);})[_0x2476f4(0x129e)](function(_0x92f268){_0x9dc8bc(_0x92f268);});});}function _0x5b732c(){return _0x10b783(function(_0x121d26,_0x3faaa0){const _0x253b6e=a0_0x3bb9;return _0x48f9a0()[_0x253b6e(0x146b)](function(_0x2f5ed3){const _0x3a2e08=_0x253b6e;return _0x1aecdd[_0x3a2e08(0x1fd6)]=_0x2f5ed3[_0x3a2e08(0x19c7)]?_0x2f5ed3[_0x3a2e08(0x19c7)]:[],_0xe27817[_0x3a2e08(0x23e0)](_0x3a2e08(0x174b))?_0x2f5ed3:_0x1aecdd[_0x3a2e08(0x2146)]?_0x1aecdd[_0x3a2e08(0x2146)][_0x3a2e08(0x11d2)]?_0x2f5ed3:_0xf65d3e():null;})[_0x253b6e(0x146b)](function(_0x5d4d6b){const _0x537757=_0x253b6e,_0x503823=_0x5d4d6b&&_0x5d4d6b[_0x537757(0x19c7)]?_0x5d4d6b[_0x537757(0x19c7)]:[];return _0x1aecdd[_0x537757(0xc4e)]=_0x3f65c0()[_0x537757(0x205)](_0x503823,function(_0x3e87e2){const _0x40d7db=_0x537757;return _0x3f65c0()['find'](_0x1aecdd[_0x40d7db(0x1fd6)],{'id':_0xe27817[_0x40d7db(0x23e0)](_0x40d7db(0x174b))||_0x1aecdd[_0x40d7db(0x2146)]['autoAssociation']?_0x3e87e2['id']:_0x3e87e2[_0x40d7db(0x18b8)]});}),_0x1aecdd[_0x537757(0x1fd6)]['forEach'](function(_0x591108){const _0x786181=_0x537757,_0x386df3=_0x3f65c0()[_0x786181(0xc84)](_0x1aecdd['allowedItems'],{'id':_0x591108['id']});_0xe27817[_0x786181(0x23e0)](_0x786181(0x174b))?_0x591108[_0x786181(0x146f)]=!![]:_0x591108[_0x786181(0x146f)]=typeof _0x386df3!==_0x786181(0x2274)?!![]:![];}),_0xd5d83d();})[_0x253b6e(0x146b)](function(_0x2087fa){const _0x59c376=_0x253b6e,_0x60b86b=_0x2087fa&&_0x2087fa['rows']?_0x2087fa['rows']:[];_0x1aecdd['selectedItems']=_0x3f65c0()[_0x59c376(0x205)](_0x60b86b,function(_0xefba24){const _0x37ef9a=_0x59c376;return _0x3f65c0()[_0x37ef9a(0xc84)](_0x1aecdd['items'],{'id':_0xefba24['id']});}),_0x1aecdd['startingSelectedItems']=angular[_0x59c376(0x235a)](_0x1aecdd[_0x59c376(0x1ecf)]),_0x1aecdd[_0x59c376(0x1f8a)]['selectedItems']=_0x1aecdd[_0x59c376(0x1ecf)],_0x1aecdd['dualMultiselectOptions'][_0x59c376(0x1fd6)]=_0x3f65c0()[_0x59c376(0x2796)](_0x1aecdd['allowedItems'],_0x1aecdd[_0x59c376(0x1f8a)][_0x59c376(0x1ecf)],'id'),_0x121d26();})[_0x253b6e(0x129e)](function(_0x458f75){_0x3faaa0(_0x458f75);});});}function _0xf65d3e(){return _0x10b783(function(_0x218a04,_0x53170c){const _0x541da2=a0_0x3bb9;return _0x2c3366[_0x541da2(0xdcc)]['get']({'sectionId':_0x1aecdd['section']['id'],'nolimit':!![]})[_0x541da2(0x2945)][_0x541da2(0x146b)](function(_0x2fac17){_0x218a04(_0x2fac17);})[_0x541da2(0x129e)](function(_0x23f97c){_0x53170c(_0x23f97c);});});}function _0xd5d83d(){return _0x10b783(function(_0x365a5b,_0x243813){const _0x51adaa=a0_0x3bb9;return _0x2c3366[_0x51adaa(0x2755)][_0x51adaa(0x11d1)]({'id':_0x1aecdd[_0x51adaa(0x2755)]['id'],'fields':_0x51adaa(0x7a7),'nolimit':!![]})['$promise'][_0x51adaa(0x146b)](function(_0x4e3cef){_0x365a5b(_0x4e3cef);})[_0x51adaa(0x129e)](function(_0x2593da){_0x243813(_0x2593da);});});}function _0x48f9a0(){return _0x10b783(function(_0x219d1c,_0x623111){const _0x592b18=a0_0x3bb9;return _0x2c3366[_0x592b18(0x23f1)]['get']({'fields':_0x592b18(0x7a7),'nolimit':!![]})[_0x592b18(0x2945)][_0x592b18(0x146b)](function(_0x52d9f9){_0x219d1c(_0x52d9f9);})[_0x592b18(0x129e)](function(_0x3eb56b){_0x623111(_0x3eb56b);});});}function _0x48a074(_0x39031a){return _0x10b783(function(_0x43fc9d,_0x38172f){const _0x14f8d5=a0_0x3bb9;_0x3f65c0()[_0x14f8d5(0x2635)](_0x39031a)?_0x43fc9d():_0x2c3366[_0x14f8d5(0x2755)]['addTeams']({'id':_0x1aecdd[_0x14f8d5(0x2755)]['id'],'ids':_0x3f65c0()[_0x14f8d5(0x205)](_0x39031a,'id')})[_0x14f8d5(0x2945)]['then'](function(){_0x43fc9d();})[_0x14f8d5(0x129e)](function(_0xf09ba0){_0x38172f(_0xf09ba0);});});}function _0x51cbbf(_0x31b71e){return _0x10b783(function(_0x517c37,_0x30ea91){const _0x2564fa=a0_0x3bb9;_0x3f65c0()[_0x2564fa(0x2635)](_0x31b71e)?_0x517c37():_0x2c3366[_0x2564fa(0x2755)][_0x2564fa(0xfa4)]({'id':_0x1aecdd[_0x2564fa(0x2755)]['id'],'ids':_0x3f65c0()['map'](_0x31b71e,'id')})[_0x2564fa(0x2945)][_0x2564fa(0x146b)](function(){_0x517c37();})[_0x2564fa(0x129e)](function(_0x4e8f20){_0x30ea91(_0x4e8f20);});});}function _0x108596(){const _0x567b80=_0x5c38f6,_0x3b1b15=_0x3f65c0()[_0x567b80(0x2796)](_0x1aecdd['startingSelectedItems'],_0x1aecdd[_0x567b80(0x1ecf)],'id'),_0x375d6a=_0x3f65c0()[_0x567b80(0x2796)](_0x1aecdd['selectedItems'],_0x1aecdd[_0x567b80(0xa65)],'id');return _0x51cbbf(_0x3b1b15)[_0x567b80(0x146b)](function(){return _0x48a074(_0x375d6a);})[_0x567b80(0x146b)](function(){const _0x14a29d=_0x567b80;_0x1aecdd[_0x14a29d(0x132)]=![],_0x1aecdd[_0x14a29d(0x2e8)]=angular['copy'](_0x1aecdd['allowedItems']),_0x1aecdd[_0x14a29d(0xa65)]=angular[_0x14a29d(0x235a)](_0x1aecdd[_0x14a29d(0x1ecf)]),_0x49efd5[_0x14a29d(0x1c75)]({'title':_0x14a29d(0x4c0),'msg':_0x14a29d(0xf08)});})[_0x567b80(0x129e)](function(_0x32b203){const _0x1408c3=_0x567b80;_0x49efd5[_0x1408c3(0x1980)]({'title':_0x32b203[_0x1408c3(0x107b)]?_0x1408c3(0x262a)+_0x32b203[_0x1408c3(0x107b)]+_0x1408c3(0x1315)+_0x32b203[_0x1408c3(0x167f)]:_0x1408c3(0xa56),'msg':_0x32b203[_0x1408c3(0x107b)]?JSON[_0x1408c3(0x10bb)](_0x32b203['data']):_0x32b203[_0x1408c3(0xd5f)]()});});}function _0x557b21(){const _0x691064=_0x5c38f6;_0x78c92a[_0x691064(0x2458)]();}}const _0x40ff9b=_0x5e7213;;const _0x57bc82=_0x4acfac['p']+_0x313a4d(0x2224);;_0x1a48ca['$inject']=[_0x313a4d(0x1862),_0x313a4d(0xd08),_0x313a4d(0x10e8),_0x313a4d(0x4d8),'$translate',_0x313a4d(0x2690),_0x313a4d(0x15b9),_0x313a4d(0x247f),_0x313a4d(0x1fe4),_0x313a4d(0xa87),'openchannelQueue',_0x313a4d(0x1366)];function _0x1a48ca(_0x18dc40,_0x3e6fd1,_0x21cd39,_0x50e6d0,_0x131989,_0x14167f,_0x5551a4,_0x2ba3cd,_0x1cf246,_0x26462b,_0x346e96,_0x231772){const _0x2c1ed2=_0x313a4d,_0x2f1fed=this;_0x2f1fed[_0x2c1ed2(0x2321)]=_0x26462b['getCurrentUser'](),_0x2f1fed[_0x2c1ed2(0x2690)]=_0x14167f,_0x2f1fed['setting']=_0x5551a4,_0x2f1fed[_0x2c1ed2(0x2251)]=_0x2f1fed['setting'][_0x2c1ed2(0x976)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2f1fed['location']=_0x3e6fd1[_0x2c1ed2(0x2414)]()+_0x2c1ed2(0xb0e)+_0x3e6fd1[_0x2c1ed2(0x148e)](),_0x2f1fed['openchannelQueue']=_0x346e96||_0x18dc40[_0x2c1ed2(0x16a)][_0x2c1ed2(0x2755)]||{},_0x2f1fed['userProfileSection']=_0x231772&&_0x231772[_0x2c1ed2(0x51c)]==0x1?_0x231772[_0x2c1ed2(0x19c7)][0x0]:null,_0x2f1fed['crudPermissions']=_0x26462b[_0x2c1ed2(0xe60)](_0x2f1fed[_0x2c1ed2(0x1366)]?_0x2f1fed[_0x2c1ed2(0x1366)][_0x2c1ed2(0x2514)]:null),_0x2f1fed[_0x2c1ed2(0x855)]={},_0x2f1fed['selectedTab']=_0x18dc40['params']['tab']||0x0,_0x2f1fed[_0x2c1ed2(0x244)]=_0x1e6667,_0x2f1fed[_0x2c1ed2(0x1027)]=_0x3f0292,_0x2f1fed[_0x2c1ed2(0x861)]=_0x1cf246['info'],_0x2f1fed['gotoOpenchannelQueues']=_0xeb1276,_0x2f1fed[_0x2c1ed2(0x1a2a)]=_0x1ee679;function _0x1e6667(_0xacc548,_0x388447){const _0x442a7b=_0x2c1ed2;_0x21cd39[_0x442a7b(0x2615)]({'controller':_0x442a7b(0x59e),'controllerAs':'vm','templateUrl':_0x57bc82,'parent':angular[_0x442a7b(0x1853)](_0x50e6d0[_0x442a7b(0x2586)]),'targetEvent':_0x388447,'clickOutsideToClose':!![],'locals':{'openchannelQueue':_0xacc548,'openchannelQueues':_0x2f1fed[_0x442a7b(0x1ebb)]?_0x2f1fed[_0x442a7b(0x1ebb)][_0x442a7b(0x19c7)]:[],'crudPermissions':_0x2f1fed[_0x442a7b(0x2514)]}});}function _0x3f0292(_0x210fdb,_0x187fda){const _0x1c4a31=_0x2c1ed2;_0x21cd39[_0x1c4a31(0x2615)]({'controller':'OpenchannelQueueagentaddController','controllerAs':'vm','templateUrl':_0x5531ae,'parent':angular[_0x1c4a31(0x1853)](_0x50e6d0[_0x1c4a31(0x2586)]),'targetEvent':_0x187fda,'clickOutsideToClose':!![],'locals':{'openchannelQueue':_0x210fdb,'openchannelQueues':_0x2f1fed['openchannelQueues']?_0x2f1fed[_0x1c4a31(0x1ebb)][_0x1c4a31(0x19c7)]:[],'crudPermissions':_0x2f1fed[_0x1c4a31(0x2514)],'realtime':![]}});}function _0xeb1276(){const _0x458da7=_0x2c1ed2;_0x18dc40['go']('app.openchannel.openchannelQueues',{},{'reload':_0x458da7(0x18ff)});}function _0x1ee679(){const _0x447fa0=_0x2c1ed2;_0x2ba3cd[_0x447fa0(0x2755)][_0x447fa0(0x18e1)]({'id':_0x2f1fed[_0x447fa0(0x2755)]['id']},_0x2f1fed[_0x447fa0(0x2755)])['$promise'][_0x447fa0(0x146b)](function(){const _0x28c745=_0x447fa0;_0x1cf246[_0x28c745(0x1c75)]({'title':_0x28c745(0x269c),'msg':_0x2f1fed['openchannelQueue'][_0x28c745(0x19eb)]?_0x2f1fed['openchannelQueue'][_0x28c745(0x19eb)]+_0x28c745(0x6b0):''});})[_0x447fa0(0x129e)](function(_0x1c9386){const _0x20ce5a=_0x447fa0;_0x1cf246[_0x20ce5a(0x1980)]({'title':_0x1c9386['status']?_0x20ce5a(0x262a)+_0x1c9386[_0x20ce5a(0x107b)]+'\x20-\x20'+_0x1c9386['statusText']:_0x20ce5a(0x554),'msg':_0x1c9386['data']?JSON[_0x20ce5a(0x10bb)](_0x1c9386[_0x20ce5a(0x524)]):_0x1c9386[_0x20ce5a(0xd5f)]()});});}}const _0x5edcc8=_0x1a48ca;;_0x5bf6aa[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),'$window',_0x313a4d(0x1862),_0x313a4d(0x15fe),_0x313a4d(0x10e8),'$document',_0x313a4d(0x1abe),'$translate','openchannelQueues',_0x313a4d(0x26b6),'userProfileSection',_0x313a4d(0x247f),_0x313a4d(0x216c),'toasty',_0x313a4d(0xa87),_0x313a4d(0x2690),_0x313a4d(0x15b9)];function _0x5bf6aa(_0xb18419,_0x380b6f,_0x33dfe8,_0x10a51c,_0x1e1bbb,_0x34e2ab,_0x1acb43,_0x1868d7,_0x480a2e,_0x595da0,_0x46365e,_0x50b225,_0x26a128,_0x15d81c,_0x1371ec,_0x5a03d9,_0x525329){const _0x3deaec=_0x313a4d,_0x267aec=this;_0x267aec[_0x3deaec(0x2690)]=_0x5a03d9,_0x267aec[_0x3deaec(0x15b9)]=_0x525329,_0x267aec[_0x3deaec(0x2321)]=_0x1371ec[_0x3deaec(0xb12)](),_0x267aec[_0x3deaec(0x1ebb)]=_0x480a2e||{'count':0x0,'rows':[]},_0x267aec['userProfile']=_0x595da0,_0x267aec['userProfileSection']=_0x46365e&&_0x46365e[_0x3deaec(0x51c)]==0x1?_0x46365e[_0x3deaec(0x19c7)][0x0]:null,_0x267aec[_0x3deaec(0x2514)]=_0x1371ec['parseCrudPermissions'](_0x267aec[_0x3deaec(0x1366)]?_0x267aec[_0x3deaec(0x1366)][_0x3deaec(0x2514)]:null),_0x267aec[_0x3deaec(0x768)]=_0x3deaec(0x1ebb),_0x267aec[_0x3deaec(0x216a)]='',_0x267aec[_0x3deaec(0x214f)]=null,_0x267aec[_0x3deaec(0x1a4d)]=[],_0x267aec[_0x3deaec(0x1a56)]={'fields':_0x3deaec(0xa22),'sort':_0x3deaec(0x12f2),'channel':_0x3deaec(0x7d9),'limit':0xa,'page':0x1},_0x267aec[_0x3deaec(0x280a)]=_0x3f65c0()[_0x3deaec(0x194)]([{'option':_0x3deaec(0x6a7),'value':_0x3deaec(0xb5a)},{'option':_0x3deaec(0xa12),'value':'\x27rrmemory\x27'}],function(_0x14a86a){return _0x3f65c0()['replace'](_0x14a86a['value'],new RegExp('\x27','g'),'');}),_0x267aec['editstate']=_0x28c06b,_0x267aec[_0x3deaec(0x244)]=_0x5200ae,_0x267aec[_0x3deaec(0x1027)]=_0xc99cae,_0x267aec[_0x3deaec(0xf0a)]=_0x3a33b8,_0x267aec[_0x3deaec(0x138d)]=_0x12a664,_0x267aec[_0x3deaec(0x1c75)]=_0x37710e,_0x267aec[_0x3deaec(0x28d2)]=_0xc9c61e,_0x267aec['createOrEditOpenchannelQueue']=_0x536510,_0x267aec[_0x3deaec(0x25b7)]=_0x24559d,_0x267aec[_0x3deaec(0xd2a)]=_0x24e698,_0x267aec[_0x3deaec(0x1dfc)]=_0x17f353,_0x267aec[_0x3deaec(0x610)]=_0x3a5e13,_0x267aec[_0x3deaec(0x2291)]=_0x15002e;function _0x28c06b(_0x10a808){const _0xe7d551=_0x3deaec;_0x33dfe8['go'](_0xe7d551(0x1a3),{'id':_0x10a808['id'],'openchannelQueue':_0x10a808,'crudPermissions':_0x267aec[_0xe7d551(0x2514)]});}function _0x5200ae(_0xd67d8f,_0x2cf10a){const _0x744ecb=_0x3deaec;_0x1e1bbb[_0x744ecb(0x2615)]({'controller':_0x744ecb(0x59e),'controllerAs':'vm','templateUrl':_0x57bc82,'parent':angular[_0x744ecb(0x1853)](_0x34e2ab[_0x744ecb(0x2586)]),'targetEvent':_0x2cf10a,'clickOutsideToClose':!![],'locals':{'openchannelQueue':_0xd67d8f,'openchannelQueues':_0x267aec[_0x744ecb(0x1ebb)]?_0x267aec['openchannelQueues'][_0x744ecb(0x19c7)]:[],'crudPermissions':_0x267aec[_0x744ecb(0x2514)]}});}function _0xc99cae(_0x45a2f7,_0x16f25c){const _0x5cbb83=_0x3deaec;_0x1e1bbb[_0x5cbb83(0x2615)]({'controller':_0x5cbb83(0x19af),'controllerAs':'vm','templateUrl':_0x5531ae,'parent':angular[_0x5cbb83(0x1853)](_0x34e2ab[_0x5cbb83(0x2586)]),'targetEvent':_0x16f25c,'clickOutsideToClose':!![],'locals':{'openchannelQueue':_0x45a2f7,'openchannelQueues':_0x267aec[_0x5cbb83(0x1ebb)]?_0x267aec['openchannelQueues'][_0x5cbb83(0x19c7)]:[],'crudPermissions':_0x267aec['crudPermissions'],'realtime':![]}});}function _0x3a33b8(_0x2e8d99,_0x4ba718){const _0x29a7fa=_0x3deaec,_0x41c211=_0x1e1bbb[_0x29a7fa(0x1e8a)]()[_0x29a7fa(0x1189)](_0x29a7fa(0xdb2)+_0x3f65c0()['startCase'](_0x29a7fa(0x2755))+'?')[_0x29a7fa(0x1cbe)](_0x29a7fa(0x16d3)+(_0x2e8d99[_0x29a7fa(0x19eb)]||_0x29a7fa(0x2755))+_0x29a7fa(0x252f)+_0x29a7fa(0xe01))[_0x29a7fa(0x4bd)](_0x29a7fa(0x1d14))[_0x29a7fa(0x1f27)](_0x4ba718)['ok']('OK')['cancel']('CANCEL');_0x1e1bbb['show'](_0x41c211)[_0x29a7fa(0x146b)](function(){_0x24559d(_0x2e8d99);},function(){const _0x2b26bd=_0x29a7fa;console[_0x2b26bd(0x1a74)](_0x2b26bd(0x39a));});}function _0x12a664(){const _0x359da0=_0x3deaec;if(_0x1371ec[_0x359da0(0x23e0)](_0x359da0(0x174b)))_0x33dfe8['go'](_0x359da0(0x2f8),{});else return _0x50b225[_0x359da0(0x1366)][_0x359da0(0x16b4)]({'userProfileId':_0x1371ec[_0x359da0(0xb12)]()[_0x359da0(0x209a)],'sectionId':0x32a})[_0x359da0(0x2945)][_0x359da0(0x146b)](function(_0xbf1e62){const _0x53b30b=_0x359da0,_0x1ced04=_0xbf1e62&&_0xbf1e62[_0x53b30b(0x19c7)]?_0xbf1e62['rows'][0x0]:null;_0x1ced04&&_0x1ced04[_0x53b30b(0x193e)]?_0x33dfe8['go'](_0x53b30b(0x2f8),{}):_0x15d81c[_0x53b30b(0x271e)]({'title':_0x1868d7[_0x53b30b(0xde)]('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_TITLE'),'msg':_0x1868d7[_0x53b30b(0xde)]('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_MESSAGE')});})[_0x359da0(0x129e)](function(_0x3dcce2){const _0xfb81a8=_0x359da0;_0x15d81c[_0xfb81a8(0x1980)]({'title':_0x3dcce2[_0xfb81a8(0x107b)]?'API:'+_0x3dcce2[_0xfb81a8(0x107b)]+_0xfb81a8(0x1315)+_0x3dcce2['statusText']:_0xfb81a8(0x698),'msg':_0x3dcce2[_0xfb81a8(0x107b)]?JSON['stringify'](_0x3dcce2[_0xfb81a8(0x524)]):_0x3dcce2[_0xfb81a8(0xd5f)]()});});}let _0x4d73d6=!![],_0x322d65=0x1;_0xb18419[_0x3deaec(0x21e8)]('vm.query.filter',function(_0x190c0e,_0x1fa95f){const _0x46e62c=_0x3deaec;_0x4d73d6?_0x1acb43(function(){_0x4d73d6=![];}):(!_0x1fa95f&&(_0x322d65=_0x267aec[_0x46e62c(0x1a56)][_0x46e62c(0x844)]),_0x190c0e!==_0x1fa95f&&(_0x267aec[_0x46e62c(0x1a56)][_0x46e62c(0x844)]=0x1),!_0x190c0e&&(_0x267aec[_0x46e62c(0x1a56)][_0x46e62c(0x844)]=_0x322d65),_0x267aec[_0x46e62c(0x28d2)]());});function _0x37710e(_0x17ca34){const _0x14eab2=_0x3deaec;_0x267aec[_0x14eab2(0x1ebb)]=_0x17ca34||{'count':0x0,'rows':[]};}function _0xc9c61e(){const _0x5cb01d=_0x3deaec;_0x267aec[_0x5cb01d(0x1a56)][_0x5cb01d(0x145d)]=(_0x267aec[_0x5cb01d(0x1a56)][_0x5cb01d(0x844)]-0x1)*_0x267aec['query'][_0x5cb01d(0x221e)],_0x1371ec[_0x5cb01d(0x23e0)](_0x5cb01d(0x174b))?_0x267aec[_0x5cb01d(0xb9c)]=_0x50b225['openchannelQueue'][_0x5cb01d(0x16b4)](_0x267aec['query'],_0x37710e)['$promise']:(_0x267aec[_0x5cb01d(0x1a56)]['id']=_0x267aec[_0x5cb01d(0x26b6)]['id'],_0x267aec['query']['section']=_0x5cb01d(0x8d8),_0x267aec[_0x5cb01d(0xb9c)]=_0x50b225[_0x5cb01d(0x26b6)][_0x5cb01d(0x158f)](_0x267aec[_0x5cb01d(0x1a56)],_0x37710e)[_0x5cb01d(0x2945)]);}function _0x536510(_0x4acf3b,_0x14ec92){const _0x2f5f1b=_0x3deaec;_0x1e1bbb[_0x2f5f1b(0x2615)]({'controller':_0x2f5f1b(0x785),'controllerAs':'vm','templateUrl':_0x25f87f,'parent':angular[_0x2f5f1b(0x1853)](_0x34e2ab[_0x2f5f1b(0x2586)]),'targetEvent':_0x4acf3b,'clickOutsideToClose':!![],'locals':{'openchannelQueue':_0x14ec92,'openchannelQueues':_0x267aec[_0x2f5f1b(0x1ebb)]['rows'],'license':_0x267aec['license'],'setting':_0x267aec[_0x2f5f1b(0x15b9)],'crudPermissions':_0x267aec[_0x2f5f1b(0x2514)]}});}function _0x24559d(_0x2d3bf9){const _0x311746=_0x3deaec;_0x50b225['openchannelQueue'][_0x311746(0x1fac)]({'id':_0x2d3bf9['id']})[_0x311746(0x2945)]['then'](function(){const _0x3baf0c=_0x311746;_0x3f65c0()[_0x3baf0c(0x2640)](_0x267aec[_0x3baf0c(0x1ebb)][_0x3baf0c(0x19c7)],{'id':_0x2d3bf9['id']}),_0x267aec[_0x3baf0c(0x1ebb)][_0x3baf0c(0x51c)]-=0x1,!_0x267aec[_0x3baf0c(0x1ebb)][_0x3baf0c(0x19c7)][_0x3baf0c(0x402)]&&_0x267aec[_0x3baf0c(0x28d2)](),_0x15d81c[_0x3baf0c(0x1c75)]({'title':_0x3f65c0()[_0x3baf0c(0x20d1)]('OpenchannelQueue')+_0x3baf0c(0x201c),'msg':_0x2d3bf9['name']?_0x2d3bf9[_0x3baf0c(0x19eb)]+_0x3baf0c(0x23e3):''});})[_0x311746(0x129e)](function(_0x3ce18b){const _0x145f7c=_0x311746;if(_0x3ce18b[_0x145f7c(0x524)]&&_0x3ce18b[_0x145f7c(0x524)][_0x145f7c(0xcef)]&&_0x3ce18b[_0x145f7c(0x524)][_0x145f7c(0xcef)][_0x145f7c(0x402)]){_0x267aec['errors']=_0x3ce18b['data']['errors']||[{'message':_0x3ce18b[_0x145f7c(0xd5f)](),'type':_0x145f7c(0x21c6)}];for(let _0x99ba08=0x0;_0x99ba08<_0x3ce18b['data']['errors'][_0x145f7c(0x402)];_0x99ba08++){_0x15d81c[_0x145f7c(0x1980)]({'title':_0x3ce18b[_0x145f7c(0x524)]['errors'][_0x99ba08][_0x145f7c(0x1142)],'msg':_0x3ce18b[_0x145f7c(0x524)][_0x145f7c(0xcef)][_0x99ba08][_0x145f7c(0x7fd)]});}}else _0x15d81c['error']({'title':_0x3ce18b[_0x145f7c(0x107b)]?_0x145f7c(0x262a)+_0x3ce18b[_0x145f7c(0x107b)]+_0x145f7c(0x1315)+_0x3ce18b['statusText']:_0x145f7c(0x21c6),'msg':_0x3ce18b[_0x145f7c(0x524)]?JSON[_0x145f7c(0x10bb)](_0x3ce18b['data'][_0x145f7c(0x7fd)]):_0x3ce18b[_0x145f7c(0x7fd)]||_0x3ce18b[_0x145f7c(0xd5f)]()});});}function _0x24e698(){const _0xfe4167=_0x3deaec,_0x37cc94=angular[_0xfe4167(0x235a)](_0x267aec['selectedOpenchannelQueues']);return _0x267aec[_0xfe4167(0x1a4d)]=[],_0x37cc94;}function _0x17f353(_0xc163ad){const _0x504d64=_0x3deaec,_0x31be22=_0x1e1bbb['confirm']()[_0x504d64(0x1189)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20openchannelQueues?')[_0x504d64(0x1cbe)](_0x504d64(0x16d3)+_0x267aec[_0x504d64(0x1a4d)][_0x504d64(0x402)]+_0x504d64(0x2452)+'\x20will\x20be\x20deleted.')[_0x504d64(0x4bd)](_0x504d64(0x2139))[_0x504d64(0x1f27)](_0xc163ad)['ok']('OK')[_0x504d64(0x6c3)](_0x504d64(0x39a));_0x1e1bbb[_0x504d64(0x2615)](_0x31be22)['then'](function(){_0x267aec['selectedOpenchannelQueues']['forEach'](function(_0x3e2fa7){_0x24559d(_0x3e2fa7);}),_0x267aec['selectedOpenchannelQueues']=[];});}function _0x3a5e13(){_0x267aec['selectedOpenchannelQueues']=[];}function _0x15002e(){const _0x12d2b2=_0x3deaec;_0x267aec[_0x12d2b2(0x1a4d)]=_0x267aec[_0x12d2b2(0x1ebb)][_0x12d2b2(0x19c7)];}}const _0x222dd1=_0x5bf6aa;;_0x5db190['$inject']=[_0x313a4d(0x921),_0x313a4d(0x695)];function _0x5db190(_0x29c9e9,_0x348c46){const _0xca8dc2=_0x313a4d;_0x29c9e9['state'](_0xca8dc2(0xf79),{'abstract':!![],'url':_0xca8dc2(0x1b8a)})['state'](_0xca8dc2(0x18ff),{'url':_0xca8dc2(0x1e4),'views':{'content@app':{'templateUrl':_0x154e0c,'controller':_0xca8dc2(0x1b88)}},'resolve':{'openchannelQueues':[_0xca8dc2(0x362),'Auth',function(_0x598442,_0x188834){const _0x2e0e29=_0xca8dc2;return _0x188834['hasRole'](_0x2e0e29(0x174b))?_0x598442[_0x2e0e29(0x2922)](_0x2e0e29(0x385),{'fields':'createdAt,updatedAt,id,name,strategy,timeout,description','sort':_0x2e0e29(0x12f2),'channel':_0x2e0e29(0x7d9),'limit':0xa,'offset':0x0}):_0x598442[_0x2e0e29(0x2922)]('userProfile@getResources',{'id':_0x188834['getCurrentUser']()[_0x2e0e29(0x209a)],'section':_0x2e0e29(0x8d8),'fields':_0x2e0e29(0xa22),'sort':_0x2e0e29(0x12f2),'channel':'openchannel','limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0xca8dc2(0xa87),function(_0x5b403f,_0x574039){const _0x24d35b=_0xca8dc2;return _0x574039[_0x24d35b(0x23e0)]('admin')?null:_0x5b403f[_0x24d35b(0x2922)](_0x24d35b(0x119a),{'fields':'id,name,crudPermissions','id':_0x574039[_0x24d35b(0xb12)]()['userProfileId']});}],'userProfileSection':['apiResolver',_0xca8dc2(0xa87),function(_0x4c879a,_0x433250){const _0x5f08cb=_0xca8dc2;return _0x433250['hasRole']('admin')?null:_0x4c879a[_0x5f08cb(0x2922)](_0x5f08cb(0x27be),{'fields':_0x5f08cb(0x1e64),'userProfileId':_0x433250['getCurrentUser']()[_0x5f08cb(0x209a)],'sectionId':0x321});}]},'authenticate':!![],'permissionId':0x321,'bodyClass':_0xca8dc2(0x7d9)})[_0xca8dc2(0x13d6)](_0xca8dc2(0x1a3),{'url':_0xca8dc2(0x2028),'params':{'openchannelQueue':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x408671,'controller':_0xca8dc2(0x107e)}},'resolve':{'openchannelQueue':['apiResolver',_0xca8dc2(0x28c8),function(_0x540a17,_0x3e41de){const _0x52ac08=_0xca8dc2;return _0x540a17[_0x52ac08(0x2922)]('openchannelQueue@get',{'fields':_0x52ac08(0xa22),'id':_0x3e41de['id']});}],'userProfileSection':[_0xca8dc2(0x362),_0xca8dc2(0xa87),function(_0x1756ea,_0x42c798){const _0x43056e=_0xca8dc2;return _0x1756ea[_0x43056e(0x2922)](_0x43056e(0x27be),{'fields':_0x43056e(0x1e64),'userProfileId':_0x42c798[_0x43056e(0xb12)]()['userProfileId'],'sectionId':0x321});}]},'authenticate':!![],'permissionId':0x321,'bodyClass':_0xca8dc2(0x7d9)})['state']('app.openchannel.openchannelAccounts',{'url':_0xca8dc2(0xd78),'views':{'content@app':{'templateUrl':_0x5bf622,'controller':_0xca8dc2(0x18e5)}},'resolve':{'openchannelAccounts':[_0xca8dc2(0x362),_0xca8dc2(0xa87),function(_0x7ea655,_0x185686){const _0x301800=_0xca8dc2;return _0x185686[_0x301800(0x23e0)](_0x301800(0x174b))?_0x7ea655[_0x301800(0x2922)](_0x301800(0x14c3),{'fields':_0x301800(0x5cb),'sort':_0x301800(0x12f2),'limit':0xa,'offset':0x0}):_0x7ea655[_0x301800(0x2922)](_0x301800(0x938),{'id':_0x185686[_0x301800(0xb12)]()[_0x301800(0x209a)],'section':_0x301800(0x5f9),'fields':_0x301800(0x5cb),'sort':_0x301800(0x12f2),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0xca8dc2(0xa87),function(_0x135bcc,_0x2eb7b5){const _0x151eef=_0xca8dc2;return _0x2eb7b5[_0x151eef(0x23e0)](_0x151eef(0x174b))?null:_0x135bcc['resolve']('userProfile@get',{'fields':_0x151eef(0x227),'id':_0x2eb7b5[_0x151eef(0xb12)]()[_0x151eef(0x209a)]});}],'userProfileSection':['apiResolver','Auth',function(_0x28bf87,_0x1f02e0){const _0x45570c=_0xca8dc2;return _0x1f02e0[_0x45570c(0x23e0)](_0x45570c(0x174b))?null:_0x28bf87['resolve'](_0x45570c(0x27be),{'fields':_0x45570c(0x1e64),'userProfileId':_0x1f02e0['getCurrentUser']()[_0x45570c(0x209a)],'sectionId':0x322});}]},'authenticate':!![],'permissionId':0x322,'bodyClass':_0xca8dc2(0x7d9)})['state']('app.openchannel.openchannelAccounts.edit',{'url':_0xca8dc2(0x2028),'params':{'openchannelAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x200e72,'controller':_0xca8dc2(0xcba)}},'resolve':{'openchannelAccount':['apiResolver',_0xca8dc2(0x28c8),function(_0x25633c,_0x1debb6){const _0x34991f=_0xca8dc2;return _0x25633c[_0x34991f(0x2922)](_0x34991f(0x14c3),{'fields':_0x34991f(0x5cb),'id':_0x1debb6['id']});}],'userProfileSection':[_0xca8dc2(0x362),_0xca8dc2(0xa87),function(_0x4ab0c6,_0x2c4d90){const _0x52ff86=_0xca8dc2;return _0x4ab0c6[_0x52ff86(0x2922)](_0x52ff86(0x27be),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x2c4d90['getCurrentUser']()['userProfileId'],'sectionId':0x322});}]},'authenticate':!![],'permissionId':0x322,'bodyClass':_0xca8dc2(0x7d9)}),_0x348c46['addPart'](_0xca8dc2(0x1604));}angular[_0x313a4d(0x2528)]('app.openchannel',[_0x313a4d(0xdad),_0x313a4d(0x962),'md.data.table',_0x313a4d(0x963),_0x313a4d(0x19e2),_0x313a4d(0x27c1),_0x313a4d(0x195b),_0x313a4d(0x15ef),_0x313a4d(0xc86),'mdPickers',_0x313a4d(0x28a8),_0x313a4d(0xfb2),'mwFormUtils',_0x313a4d(0x581),'angular-cron-jobs',_0x313a4d(0x1792),_0x313a4d(0x1b65),_0x313a4d(0x1626),'chart.js',_0x313a4d(0x11df),_0x313a4d(0x13c8)])[_0x313a4d(0x989)](_0x5db190)[_0x313a4d(0x28f0)](_0x313a4d(0x264e),_0x23bde7)[_0x313a4d(0x28f0)](_0x313a4d(0x1635),_0x4e1374)['controller'](_0x313a4d(0x602),_0x50a451)[_0x313a4d(0x28f0)](_0x313a4d(0x10bd),_0x96f830)['controller'](_0x313a4d(0x1fbd),_0x538807)[_0x313a4d(0x28f0)]('EditOpenchannelAccountAppautoreplyDialogController',_0x4d28a8)[_0x313a4d(0x28f0)](_0x313a4d(0x19d3),_0x8e2c3b)['controller'](_0x313a4d(0x14ba),_0x535c61)[_0x313a4d(0x28f0)](_0x313a4d(0xc13),_0x3886b3)['controller'](_0x313a4d(0x1385),_0x1739ef)[_0x313a4d(0x28f0)](_0x313a4d(0x4ac),_0x914af5)['controller'](_0x313a4d(0x1097),_0x430714)[_0x313a4d(0x28f0)](_0x313a4d(0x22d4),_0x5c823b)['controller'](_0x313a4d(0xb8c),_0x4fa93a)[_0x313a4d(0x28f0)]('EditOpenchannelAccountApptagDialogController',_0x448adf)[_0x313a4d(0x28f0)](_0x313a4d(0x1762),_0x4cbea8)['controller'](_0x313a4d(0x12bc),_0x56bfcc)[_0x313a4d(0x28f0)]('CreateOrEditOpenchannelCannedAnswerDialogController',_0x580e87)[_0x313a4d(0x28f0)](_0x313a4d(0x1636),_0x55b9a9)[_0x313a4d(0x28f0)](_0x313a4d(0x1a35),_0x5b31dc)[_0x313a4d(0x28f0)](_0x313a4d(0x132b),_0x4eca30)['controller']('CreateOrEditOpenchannelQueueDialogController',_0x4f6068)[_0x313a4d(0x28f0)](_0x313a4d(0x19af),_0x15dbbc)[_0x313a4d(0x28f0)](_0x313a4d(0x59e),_0x40ff9b)[_0x313a4d(0x28f0)]('OpenchannelQueueController',_0x5edcc8)[_0x313a4d(0x28f0)]('OpenchannelQueuesController',_0x222dd1);;const _0x448a9f=_0x4acfac['p']+'src/js/modules/main/apps/fax/views/faxQueues/faxQueues.html/faxQueues.html';;const _0x21532f=_0x4acfac['p']+'src/js/modules/main/apps/fax/views/faxQueues/edit/view.html/view.html';;const _0x563ef6=_0x4acfac['p']+_0x313a4d(0x1f00);;const _0x480cfa=_0x4acfac['p']+_0x313a4d(0x726);;const _0x145bff=_0x4acfac['p']+'src/js/modules/main/apps/fax/views/realtime/realtime.html/realtime.html';;const _0x470d63=_0x4acfac['p']+'src/js/modules/main/apps/fax/views/realtime/agents/view.html/view.html';;const _0x76489b=_0x4acfac['p']+_0x313a4d(0x2598);;const _0x2764ed=_0x4acfac['p']+_0x313a4d(0x242b);;const _0x126a37=_0x4acfac['p']+_0x313a4d(0xcff);;_0x31d082['$inject']=[_0x313a4d(0x910),_0x313a4d(0x1abe),'$mdDialog','$document',_0x313a4d(0x1862),_0x313a4d(0x247f),_0x313a4d(0x279d),_0x313a4d(0x1fe4),'faxAccounts',_0x313a4d(0x4b4),_0x313a4d(0x26b6),'userProfileSection','Auth'];function _0x31d082(_0x5b730a,_0x405e91,_0x4dd2ee,_0x236e48,_0x3971ec,_0x385894,_0x550615,_0x3138c7,_0xcad7bd,_0x216f06,_0x584798,_0x325341,_0x53f77b){const _0x202267=_0x313a4d,_0x4bdc2c=this;_0x4bdc2c[_0x202267(0x2321)]=_0x53f77b['getCurrentUser'](),_0x4bdc2c['count']=_0xcad7bd&&_0xcad7bd[_0x202267(0x51c)]?_0xcad7bd[_0x202267(0x51c)]:0x0,_0x4bdc2c[_0x202267(0x8a9)]=_0xcad7bd?_0x3f65c0()[_0x202267(0x194)](_0xcad7bd[_0x202267(0x19c7)]?_0xcad7bd[_0x202267(0x19c7)]:[],'id'):{},_0x4bdc2c[_0x202267(0x4b4)]=_0x216f06?_0x3f65c0()[_0x202267(0x194)](_0x216f06[_0x202267(0x19c7)]?_0x216f06[_0x202267(0x19c7)]:[],'id'):{},_0x4bdc2c['userProfile']=_0x584798,_0x4bdc2c[_0x202267(0x1366)]=_0x325341&&_0x325341[_0x202267(0x51c)]==0x1?_0x325341[_0x202267(0x19c7)][0x0]:null,_0x4bdc2c[_0x202267(0x2514)]=_0x53f77b[_0x202267(0xe60)](_0x4bdc2c[_0x202267(0x1366)]?_0x4bdc2c[_0x202267(0x1366)][_0x202267(0x2514)]:null),_0x4bdc2c['query']={'sort':'-name','limit':0xa,'page':0x1},_0x4bdc2c[_0x202267(0x1c75)]=_0x5b47ed,_0x4bdc2c[_0x202267(0x20de)]=_0x3a4f1c,_0x4bdc2c[_0x202267(0x12d0)]=_0x28e6bd,_0x4bdc2c[_0x202267(0x1db0)]=_0x18906e,_0x4bdc2c[_0x202267(0x7fa)]=_0x20451d,_0x4bdc2c['goToFaxAccount']=_0x3eeca0,_0x4bdc2c[_0x202267(0x206e)]=[],_0x3f65c0()['forIn'](_0x4bdc2c[_0x202267(0x8a9)],function(_0x5b70ce){const _0x5ca4e7=_0x202267;_0x4bdc2c[_0x5ca4e7(0x206e)]['push'](_0x5b70ce['id']);}),_0x550615['on'](_0x202267(0x3e2),_0x4bdc2c[_0x202267(0x1db0)]),_0x550615['on'](_0x202267(0x549),_0x4bdc2c[_0x202267(0x1db0)]),_0x550615['on'](_0x202267(0x1ed5),_0x4bdc2c[_0x202267(0x7fa)]);function _0x3a4f1c(){const _0x14399c=_0x202267;_0x3f65c0()[_0x14399c(0x1a04)](_0x4bdc2c[_0x14399c(0x8a9)],function(_0x2587f7,_0x3f76b9){const _0x33cb13=_0x14399c;_0x4bdc2c[_0x33cb13(0x4b4)][_0x3f76b9]&&_0x3f65c0()[_0x33cb13(0x168d)](_0x2587f7,_0x4bdc2c[_0x33cb13(0x4b4)][_0x3f76b9]);}),_0x3f65c0()['forIn'](_0x4bdc2c[_0x14399c(0x8a9)],function(_0x1e9ed0,_0x22609c){const _0x4d60b1=_0x14399c,_0x2e4053={'id':_0x22609c,'sort':'-id','direction':'in','limit':0x1,'offset':0x0,'$gte':_0x4d60b1(0xcfd)+_0x2deec6()()['startOf'](_0x4d60b1(0x1066))['format'](_0x4d60b1(0x1ce2))};_0x385894[_0x4d60b1(0x178)][_0x4d60b1(0x1c0f)](_0x2e4053)[_0x4d60b1(0x2945)][_0x4d60b1(0x146b)](function(_0x4d0aa3){const _0x1ff7d1=_0x4d60b1;return _0x4d0aa3&&(_0x1e9ed0['in']=_0x4d0aa3[_0x1ff7d1(0x51c)]||0x0,_0x1e9ed0[_0x1ff7d1(0x13c0)]=_0x4d0aa3[_0x1ff7d1(0x19c7)]&&_0x4d0aa3['rows'][_0x1ff7d1(0x402)]?_0x4d0aa3[_0x1ff7d1(0x19c7)][0x0][_0x1ff7d1(0xc68)]:undefined),_0x2e4053[_0x1ff7d1(0x26cc)]=_0x1ff7d1(0x147f),_0x385894['faxAccount']['getMessages'](_0x2e4053)['$promise'];})[_0x4d60b1(0x146b)](function(_0x68ee9f){const _0x2d5459=_0x4d60b1;_0x68ee9f&&(_0x1e9ed0[_0x2d5459(0x147f)]=_0x68ee9f[_0x2d5459(0x51c)]||0x0,_0x1e9ed0[_0x2d5459(0x20c9)]=_0x68ee9f[_0x2d5459(0x19c7)]&&_0x68ee9f[_0x2d5459(0x19c7)][_0x2d5459(0x402)]?_0x68ee9f['rows'][0x0][_0x2d5459(0xc68)]:undefined);})[_0x4d60b1(0x129e)](function(_0x23d275){const _0x575442=_0x4d60b1;console[_0x575442(0x1a74)](_0x23d275);});});}function _0x18906e(_0x57e381){const _0x44b778=_0x202267;_0x4bdc2c['faxAccounts'][_0x57e381['id']]&&_0x3f65c0()[_0x44b778(0x168d)](_0x4bdc2c['faxAccounts'][_0x57e381['id']],_0x57e381);}function _0x20451d(_0x13dfff){const _0x27ba91=_0x202267;_0x4bdc2c[_0x27ba91(0x8a9)][_0x13dfff[_0x27ba91(0x74d)]]&&(_0x13dfff['direction']=='in'?(_0x4bdc2c[_0x27ba91(0x8a9)][_0x13dfff[_0x27ba91(0x74d)]]['in']+=0x1,_0x4bdc2c[_0x27ba91(0x8a9)][_0x13dfff[_0x27ba91(0x74d)]][_0x27ba91(0x13c0)]=_0x13dfff['createdAt']):(_0x4bdc2c[_0x27ba91(0x8a9)][_0x13dfff['FaxAccountId']][_0x27ba91(0x147f)]+=0x1,_0x4bdc2c[_0x27ba91(0x8a9)][_0x13dfff[_0x27ba91(0x74d)]][_0x27ba91(0x20c9)]=_0x13dfff[_0x27ba91(0xc68)]));}function _0x3eeca0(_0x120eef,_0x4e2efb){_0x3971ec['go']('app.fax.faxAccounts.edit',{'id':_0x4e2efb['id'],'faxAccount':_0x4e2efb});}let _0x2534af=!![],_0x30690e=0x1;_0x5b730a['$watch'](_0x202267(0x2669),function(_0x3166fd,_0x19c741){const _0x30a175=_0x202267;_0x2534af?_0x405e91(function(){_0x2534af=![];}):(!_0x19c741&&(_0x30690e=_0x4bdc2c[_0x30a175(0x1a56)][_0x30a175(0x844)]),_0x3166fd!==_0x19c741&&(_0x4bdc2c[_0x30a175(0x1a56)]['page']=0x1),!_0x3166fd&&(_0x4bdc2c[_0x30a175(0x1a56)][_0x30a175(0x844)]=_0x30690e),_0x4bdc2c[_0x30a175(0x12d0)]());});function _0x5b47ed(_0x5d2dfa){const _0x4aaac6=_0x202267;_0x4bdc2c[_0x4aaac6(0x8a9)]=_0x5d2dfa?_0x3f65c0()['keyBy'](_0x5d2dfa[_0x4aaac6(0x19c7)]?_0x5d2dfa[_0x4aaac6(0x19c7)]:[],'id'):{};if(_0x5d2dfa[_0x4aaac6(0x19c7)]){_0x4bdc2c['order']=[];for(let _0x3821fc=0x0;_0x3821fc<_0x5d2dfa['rows']['length'];_0x3821fc++){_0x4bdc2c['order'][_0x4aaac6(0x1f47)](_0x5d2dfa[_0x4aaac6(0x19c7)][_0x3821fc]['id']);}}_0x3a4f1c();}function _0x28e6bd(){const _0x224267=_0x202267;_0x4bdc2c[_0x224267(0x1a56)][_0x224267(0x145d)]=(_0x4bdc2c['query'][_0x224267(0x844)]-0x1)*_0x4bdc2c[_0x224267(0x1a56)][_0x224267(0x221e)],_0x53f77b[_0x224267(0x23e0)]('admin')?_0x4bdc2c[_0x224267(0xb9c)]=_0x385894['faxAccount'][_0x224267(0x16b4)](_0x4bdc2c[_0x224267(0x1a56)],_0x5b47ed)[_0x224267(0x2945)]:(_0x4bdc2c[_0x224267(0x1a56)]['id']=_0x4bdc2c[_0x224267(0x26b6)]['id'],_0x4bdc2c['query'][_0x224267(0x2146)]=_0x224267(0x17d1),_0x4bdc2c[_0x224267(0xb9c)]=_0x385894[_0x224267(0x26b6)][_0x224267(0x158f)](_0x4bdc2c[_0x224267(0x1a56)],_0x5b47ed)[_0x224267(0x2945)]);}_0x5b730a[_0x202267(0x16ad)]('$destroy',function(){const _0x5ec7ef=_0x202267;_0x550615[_0x5ec7ef(0x1c5f)](_0x5ec7ef(0x3e2)),_0x550615[_0x5ec7ef(0x1c5f)](_0x5ec7ef(0x549)),_0x550615[_0x5ec7ef(0x1c5f)](_0x5ec7ef(0x1ed5));});}const _0x370e10=_0x31d082;;_0x517849['$inject']=[_0x313a4d(0x910),'$q',_0x313a4d(0x1abe),_0x313a4d(0x10e8),_0x313a4d(0x4d8),'$filter',_0x313a4d(0x23bb),'agents',_0x313a4d(0x2445),_0x313a4d(0x247f),_0x313a4d(0x279d),_0x313a4d(0x1fe4),_0x313a4d(0x1ac0),_0x313a4d(0x26b6),'userProfileSection',_0x313a4d(0xa87),'license','$interval'];function _0x517849(_0x3ae25f,_0x32f55c,_0x2e395c,_0x25d48c,_0x32a994,_0x5b7fb3,_0x28e208,_0x52b806,_0x5c61c6,_0xe316d5,_0x2877b9,_0x3677be,_0x30046a,_0x5e5700,_0x4d7ef2,_0x4c8bc2,_0x1922a1,_0x48d456){const _0x37eff9=_0x313a4d,_0x49e1f3=this,_0x21f653=[_0x37eff9(0x1fce),'online',_0x37eff9(0x1d01),'lastPauseAt','pauseType','lastPauseAt','internal',_0x37eff9(0x2bb),_0x37eff9(0x5f7),_0x37eff9(0xcc5),_0x37eff9(0x1e9e),_0x37eff9(0x17c),_0x37eff9(0x1f9d),_0x37eff9(0x25c4),_0x37eff9(0x211c),'chatCapacity',_0x37eff9(0x15fd),_0x37eff9(0xf85),'smsCapacity','whatsappCapacity','faxCapacity',_0x37eff9(0xaac),_0x37eff9(0x247),'mailCurrentCapacity',_0x37eff9(0x2e2),'whatsappCurrentCapacity',_0x37eff9(0x1815),_0x37eff9(0xfc3),_0x37eff9(0xfae),'mailStatus','smsStatus',_0x37eff9(0xfdf),_0x37eff9(0x15ea),_0x37eff9(0x685),'chatStatusTime','openchannelStatusTime','mailStatusTime',_0x37eff9(0x1f5c),_0x37eff9(0xadd),_0x37eff9(0x47a),_0x37eff9(0x1dda),_0x37eff9(0x1c72),_0x37eff9(0x1e8d),_0x37eff9(0x1ca2),'phoneBarEnableScreenRecordingByAgent',_0x37eff9(0x22c3)],_0x1e7e64=[_0x37eff9(0x5f7),'openchannelPause',_0x37eff9(0x1e9e),_0x37eff9(0x17c),_0x37eff9(0x1f9d),'faxPause',_0x37eff9(0x211c),_0x37eff9(0x538)];_0x49e1f3[_0x37eff9(0x2321)]=_0x4c8bc2[_0x37eff9(0xb12)](),_0x49e1f3['availableStates']=[_0x37eff9(0xad4),_0x37eff9(0xfe4),_0x37eff9(0x26a7),_0x37eff9(0x776),'not_inuse'],_0x49e1f3[_0x37eff9(0x23bb)]=_0x28e208||{'count':0x0,'rows':[]},_0x49e1f3[_0x37eff9(0x2690)]=_0x1922a1,_0x49e1f3[_0x37eff9(0x26b6)]=_0x5e5700,_0x49e1f3[_0x37eff9(0x1366)]=_0x4d7ef2&&_0x4d7ef2[_0x37eff9(0x51c)]==0x1?_0x4d7ef2[_0x37eff9(0x19c7)][0x0]:null,_0x49e1f3['crudPermissions']=_0x4c8bc2[_0x37eff9(0xe60)](_0x49e1f3['userProfileSection']?_0x49e1f3[_0x37eff9(0x1366)][_0x37eff9(0x2514)]:null),_0x49e1f3[_0x37eff9(0x23c0)]=_0x52b806?_0x3f65c0()[_0x37eff9(0x194)](_0x52b806[_0x37eff9(0x19c7)]?_0x52b806[_0x37eff9(0x19c7)]:[],'id'):{},_0x49e1f3[_0x37eff9(0x2445)]=_0x5c61c6?_0x3f65c0()[_0x37eff9(0x194)](_0x5c61c6['rows']?_0x5c61c6[_0x37eff9(0x19c7)]:[],'id'):{},_0x49e1f3[_0x37eff9(0x285)]={},_0x49e1f3[_0x37eff9(0x2412)]=![],_0x49e1f3['order']=[],_0x49e1f3[_0x37eff9(0x626)]={};for(const _0x1347bb in _0x49e1f3['agents']){typeof _0x49e1f3['agents'][_0x1347bb]!=='undefined'&&(_0x49e1f3[_0x37eff9(0x23c0)][_0x1347bb][_0x37eff9(0x5aa)]=!![]);}_0x49e1f3[_0x37eff9(0x1a56)]={'limit':0xa,'page':0x1,'order':_0x37eff9(0x286a),'globalStatusFilter':'','pauseTypeFilter':''},_0x49e1f3[_0x37eff9(0x2044)]=_0x4413bd,_0x49e1f3[_0x37eff9(0x2677)]=_0x2b004c,_0x49e1f3[_0x37eff9(0x1e3e)]=_0xa00500,_0x49e1f3[_0x37eff9(0x693)]=_0x5e2fd8,_0x49e1f3[_0x37eff9(0x232c)]=_0x5651af,_0x49e1f3[_0x37eff9(0x1eaa)]=_0x53ba4c,_0x49e1f3[_0x37eff9(0x1775)]=_0x138691,_0x49e1f3[_0x37eff9(0x2075)]=_0x524700,_0x49e1f3['checkPause']=_0xff42d,_0x49e1f3[_0x37eff9(0x1d53)]=_0x477212,_0x49e1f3[_0x37eff9(0x1db0)]=_0x46033e,_0x49e1f3['onUpdate']=_0x10cca7,_0x49e1f3[_0x37eff9(0x3d4)]=_0x35d4b2,_0x49e1f3['onConnect']=_0x1d60ba,_0x49e1f3[_0x37eff9(0x483)]=_0x1ed4b2,_0x49e1f3[_0x37eff9(0x1b80)]=_0x5cde8e,_0x2877b9['on'](_0x37eff9(0x17de),_0x49e1f3[_0x37eff9(0x1db0)]),_0x2877b9['on'](_0x37eff9(0x324),_0x49e1f3[_0x37eff9(0x1a76)]),_0x2877b9['on'](_0x37eff9(0x118c),_0x49e1f3[_0x37eff9(0x201a)]),_0x2877b9['on'](_0x37eff9(0x198f),_0x49e1f3[_0x37eff9(0x483)]),_0x35d4b2();let _0x2873a5=_0x48d456(function(){const _0x29f25a=_0x37eff9;_0x49e1f3['load']&&(_0x49e1f3[_0x29f25a(0x2412)]=![],_0x35d4b2());},0x3e7);function _0x35d4b2(){const _0x1484fc=_0x37eff9;_0x49e1f3[_0x1484fc(0x2412)]=![];const _0x31c7d4=_0x32f55c[_0x1484fc(0xce3)]();_0x49e1f3[_0x1484fc(0xb9c)]=_0x31c7d4[_0x1484fc(0xb9c)],_0x49e1f3[_0x1484fc(0x202e)]=[],_0x49e1f3['order']=[],_0x3f65c0()[_0x1484fc(0x1a04)](_0x49e1f3[_0x1484fc(0x23c0)],function(_0x14f33b,_0x5b3a93){const _0x3a5cd5=_0x1484fc;_0x49e1f3['rpcAgents'][_0x5b3a93]&&_0x3f65c0()['merge'](_0x14f33b,_0x3f65c0()[_0x3a5cd5(0x40e)](_0x3f65c0()[_0x3a5cd5(0x2432)](_0x49e1f3[_0x3a5cd5(0x2445)][_0x5b3a93],_0x1e7e64),_0x21f653)),_0x138691(_0x14f33b),_0x14f33b[_0x3a5cd5(0x538)]?(_0x49e1f3['filteredAgents'][_0x3a5cd5(0x1f47)](_0x14f33b),_0x49e1f3['agentInternal'][_0x14f33b[_0x3a5cd5(0x113f)]]=_0x5b3a93):_0x14f33b[_0x3a5cd5(0xed1)]=_0x3f65c0()['toNumber'](_0x2deec6()()['format']('x'));});_0x49e1f3[_0x1484fc(0x1a56)][_0x1484fc(0x1500)]&&_0x3f65c0()[_0x1484fc(0x2640)](_0x49e1f3[_0x1484fc(0x202e)],function(_0x2986a8){const _0x16db56=_0x1484fc;return _0x2986a8[_0x16db56(0x72b)]!==_0x49e1f3[_0x16db56(0x1a56)][_0x16db56(0x1500)];});_0x49e1f3['query'][_0x1484fc(0x301)]&&_0x3f65c0()[_0x1484fc(0x2640)](_0x49e1f3[_0x1484fc(0x202e)],function(_0x13f814){const _0x2e154f=_0x1484fc;return _0x13f814['pauseType']!==_0x49e1f3[_0x2e154f(0x1a56)][_0x2e154f(0x301)];});_0x49e1f3[_0x1484fc(0x1a56)]['filter']&&_0x3f65c0()['remove'](_0x49e1f3['filteredAgents'],function(_0xa67289){const _0x407c2e=_0x1484fc;return _0xa67289[_0x407c2e(0x286a)][_0x407c2e(0x256e)]()[_0x407c2e(0x172b)](_0x49e1f3[_0x407c2e(0x1a56)][_0x407c2e(0x1dd6)][_0x407c2e(0x256e)]())<0x0;});_0x49e1f3[_0x1484fc(0x202e)]=_0x40851c(_0x49e1f3[_0x1484fc(0x202e)]);const _0x1248a6=(_0x49e1f3['query'][_0x1484fc(0x844)]-0x1)*_0x49e1f3['query'][_0x1484fc(0x221e)];_0x49e1f3[_0x1484fc(0x285)]=_0x3f65c0()[_0x1484fc(0x854)](_0x49e1f3[_0x1484fc(0x202e)],_0x1248a6)['slice'](0x0,_0x49e1f3[_0x1484fc(0x1a56)]['limit']);for(let _0x45cde5=0x0;_0x45cde5<_0x49e1f3[_0x1484fc(0x285)][_0x1484fc(0x402)];_0x45cde5+=0x1){_0x49e1f3[_0x1484fc(0x206e)][_0x1484fc(0x1f47)](_0x49e1f3[_0x1484fc(0x285)][_0x45cde5]['id']);}_0x31c7d4[_0x1484fc(0x2922)](),_0x49e1f3['load']=!![];}function _0x46033e(_0x2efc02){const _0x222c32=_0x37eff9;_0x49e1f3[_0x222c32(0x23c0)][_0x2efc02['id']]&&(_0x3f65c0()[_0x222c32(0x168d)](_0x49e1f3[_0x222c32(0x23c0)][_0x2efc02['id']],_0x3f65c0()['pick'](_0x3f65c0()[_0x222c32(0x2432)](_0x2efc02,_0x1e7e64),_0x21f653)),_0x3f65c0()[_0x222c32(0x168d)](_0x49e1f3['rpcAgents'][_0x2efc02['id']],_0x3f65c0()[_0x222c32(0x40e)](_0x3f65c0()[_0x222c32(0x2432)](_0x2efc02,_0x1e7e64),_0x21f653)),_0x138691(_0x49e1f3[_0x222c32(0x23c0)][_0x2efc02['id']]));}function _0x10cca7(_0x104784){const _0x3c5807=_0x37eff9;_0x49e1f3['agents'][_0x104784['id']]&&(_0x3f65c0()[_0x3c5807(0x168d)](_0x49e1f3[_0x3c5807(0x23c0)][_0x104784['id']],_0x3f65c0()[_0x3c5807(0x40e)](_0x104784,_0x21f653)),_0x3f65c0()[_0x3c5807(0x168d)](_0x49e1f3[_0x3c5807(0x2445)][_0x104784['id']],_0x3f65c0()[_0x3c5807(0x40e)](_0x104784,_0x21f653)),_0x104784[_0x3c5807(0x192a)]&&(_0x49e1f3['agents'][_0x104784['id']][_0x3c5807(0xed1)]=_0x104784['lastPauseAt'],_0x49e1f3[_0x3c5807(0x2445)][_0x104784['id']][_0x3c5807(0xed1)]=_0x104784[_0x3c5807(0x192a)]),_0x138691(_0x49e1f3['agents'][_0x104784['id']]));}function _0x1d60ba(_0x56cfd9){const _0x2b3f2b=_0x37eff9;_0x49e1f3['agents'][_0x49e1f3[_0x2b3f2b(0x626)][_0x56cfd9[_0x2b3f2b(0x1fb9)]]]&&(_0x3f65c0()[_0x2b3f2b(0x168d)](_0x49e1f3[_0x2b3f2b(0x23c0)][_0x49e1f3[_0x2b3f2b(0x626)][_0x56cfd9[_0x2b3f2b(0x1fb9)]]],_0x3f65c0()['pick'](_0x56cfd9,[_0x2b3f2b(0x1c72),_0x2b3f2b(0x1e8d)])),_0x3f65c0()[_0x2b3f2b(0x168d)](_0x49e1f3['rpcAgents'][_0x49e1f3[_0x2b3f2b(0x626)][_0x56cfd9[_0x2b3f2b(0x1fb9)]]],_0x3f65c0()[_0x2b3f2b(0x40e)](_0x56cfd9,[_0x2b3f2b(0x1c72),_0x2b3f2b(0x1e8d)])));}function _0x1ed4b2(_0x1d4305){const _0x2ffb11=_0x37eff9;_0x49e1f3[_0x2ffb11(0x23c0)][_0x49e1f3['agentInternal'][_0x1d4305['destaccountcode']]]&&(_0x49e1f3['agents'][_0x49e1f3[_0x2ffb11(0x626)][_0x1d4305[_0x2ffb11(0x1fb9)]]]=_0x3f65c0()[_0x2ffb11(0x2432)](_0x49e1f3['agents'][_0x49e1f3['agentInternal'][_0x1d4305[_0x2ffb11(0x1fb9)]]],[_0x2ffb11(0x1c72),_0x2ffb11(0x1e8d)]),_0x49e1f3[_0x2ffb11(0x2445)][_0x49e1f3[_0x2ffb11(0x626)][_0x1d4305[_0x2ffb11(0x1fb9)]]]=_0x3f65c0()[_0x2ffb11(0x2432)](_0x49e1f3[_0x2ffb11(0x2445)][_0x49e1f3['agentInternal'][_0x1d4305[_0x2ffb11(0x1fb9)]]],[_0x2ffb11(0x1c72),_0x2ffb11(0x1e8d)]));}function _0x4413bd(_0x4b6a3c){const _0x5eb560=_0x37eff9;return _0xe316d5[_0x5eb560(0xe7b)][_0x5eb560(0x2044)]({'id':_0x4b6a3c['id'],'device':_0x5eb560(0xfc4),'agent_id':_0x4b6a3c['id'],'agent_name':_0x4b6a3c[_0x5eb560(0x19eb)]})[_0x5eb560(0x2945)]['then'](function(){const _0x382861=_0x5eb560;_0x3677be['success']({'title':_0x382861(0x1c70),'msg':_0x4b6a3c['fullname']+'\x20\x20properly\x20logout'}),_0x49e1f3['agents'][_0x4b6a3c['id']]&&(_0x49e1f3['agents'][_0x4b6a3c['id']][_0x382861(0x538)]=![]),_0x49e1f3['rpcAgents'][_0x4b6a3c['id']]&&(_0x49e1f3[_0x382861(0x2445)][_0x4b6a3c['id']][_0x382861(0x538)]=![]),_0x35d4b2();})[_0x5eb560(0x129e)](function(_0x459806){const _0x30550f=_0x5eb560;_0x3677be[_0x30550f(0x1980)]({'title':_0x459806[_0x30550f(0x107b)]?_0x30550f(0x262a)+_0x459806[_0x30550f(0x107b)]+_0x30550f(0x1315)+_0x459806[_0x30550f(0x167f)]:'api.staff.save','msg':_0x459806['data']?JSON[_0x30550f(0x10bb)](_0x459806[_0x30550f(0x524)][_0x30550f(0x7fd)]):_0x459806[_0x30550f(0xd5f)]()});});}function _0xa00500(_0xe22f21,_0x24cda1){const _0x16a2ae=_0x37eff9;return _0xe316d5[_0x16a2ae(0xe7b)][_0x16a2ae(0x1e3e)]({'id':_0xe22f21['id'],'type':_0x24cda1})[_0x16a2ae(0x2945)][_0x16a2ae(0x146b)](function(_0x5637cc){const _0x347243=_0x16a2ae;_0x49e1f3[_0x347243(0x23c0)][_0xe22f21['id']]&&_0x3f65c0()[_0x347243(0x168d)](_0x49e1f3[_0x347243(0x23c0)][_0xe22f21['id']],_0x3f65c0()['pick'](_0x5637cc,_0x21f653)),_0x49e1f3[_0x347243(0x2445)][_0xe22f21['id']]&&_0x3f65c0()[_0x347243(0x168d)](_0x49e1f3[_0x347243(0x2445)][_0xe22f21['id']],_0x3f65c0()[_0x347243(0x40e)](_0x5637cc,_0x21f653)),_0x138691(_0x49e1f3[_0x347243(0x23c0)][_0xe22f21['id']]);})[_0x16a2ae(0x129e)](function(_0x60642c){const _0x139032=_0x16a2ae;_0x3677be[_0x139032(0x1980)]({'title':_0x60642c[_0x139032(0x107b)]?_0x139032(0x262a)+_0x60642c['status']+_0x139032(0x1315)+_0x60642c[_0x139032(0x167f)]:'api.staff.save','msg':_0x60642c[_0x139032(0x524)]?JSON[_0x139032(0x10bb)](_0x60642c[_0x139032(0x524)][_0x139032(0x7fd)]):_0x60642c[_0x139032(0xd5f)]()});});}function _0x5e2fd8(_0x412f0e){const _0x9db8d=_0x37eff9;return _0xe316d5[_0x9db8d(0xe7b)][_0x9db8d(0x974)]({'id':_0x412f0e['id']})['$promise'][_0x9db8d(0x146b)](function(_0x444e24){const _0x139f68=_0x9db8d;_0x49e1f3[_0x139f68(0x23c0)][_0x412f0e['id']]&&_0x3f65c0()[_0x139f68(0x168d)](_0x49e1f3[_0x139f68(0x23c0)][_0x412f0e['id']],_0x3f65c0()[_0x139f68(0x40e)](_0x444e24,_0x21f653)),_0x49e1f3[_0x139f68(0x2445)][_0x412f0e['id']]&&_0x3f65c0()['merge'](_0x49e1f3[_0x139f68(0x2445)][_0x412f0e['id']],_0x3f65c0()[_0x139f68(0x40e)](_0x444e24,_0x21f653)),_0x138691(_0x49e1f3[_0x139f68(0x23c0)][_0x412f0e['id']]);})['catch'](function(_0x5af225){const _0x51b053=_0x9db8d;_0x3677be['error']({'title':_0x5af225[_0x51b053(0x107b)]?_0x51b053(0x262a)+_0x5af225[_0x51b053(0x107b)]+_0x51b053(0x1315)+_0x5af225[_0x51b053(0x167f)]:_0x51b053(0x23c6),'msg':_0x5af225['data']?JSON[_0x51b053(0x10bb)](_0x5af225[_0x51b053(0x524)][_0x51b053(0x7fd)]):_0x5af225[_0x51b053(0xd5f)]()});});}function _0x5651af(_0x14d927){const _0x3ca4c5=_0x37eff9;_0x25d48c['show'](_0x25d48c[_0x3ca4c5(0x861)]()[_0x3ca4c5(0xa70)](!![])[_0x3ca4c5(0x1189)](_0x3ca4c5(0x2783))[_0x3ca4c5(0x1cbe)](_0x3ca4c5(0x1f77))['ok']('Ok')['targetEvent'](_0x14d927));}function _0x2b004c(_0x674656,_0x483840){const _0x4eaf9f=_0x37eff9;_0x25d48c[_0x4eaf9f(0x2615)]({'controller':_0x4eaf9f(0x2610),'controllerAs':'vm','templateUrl':_0xbb22f1,'parent':angular[_0x4eaf9f(0x1853)](_0x32a994[_0x4eaf9f(0x2586)]),'targetEvent':_0x483840,'clickOutsideToClose':!![],'locals':{'agent':_0x674656,'agents':[],'channel':_0x4eaf9f(0x22d9),'direction':_0x4eaf9f(0x7b0),'crudPermissions':_0x49e1f3[_0x4eaf9f(0x2514)]}});}function _0x524700(_0x14e319){const _0x23f102=_0x37eff9;return _0x14e319===_0x23f102(0x1e3e)||_0x14e319===_0x23f102(0x1127);}function _0xff42d(_0x525101){const _0x122d8d=_0x37eff9;return _0x525101===_0x122d8d(0x1e3e);}function _0x477212(_0x473a63){const _0x45e47b=_0x37eff9;return _0x473a63===_0x45e47b(0x1127);}function _0x1530c1(_0x1474bc){const _0x1d0ffd=_0x37eff9;return _0x1474bc===_0x1d0ffd(0xb09)||_0x1474bc===_0x1d0ffd(0x207d)||_0x1474bc===_0x1d0ffd(0x85d)||_0x1474bc===_0x1d0ffd(0xad4)||_0x3f65c0()[_0x1d0ffd(0x1b36)](_0x1474bc);}function _0x53ba4c(_0xfd2892,_0x313d21){const _0xb7968c=_0x37eff9;if(_0x313d21==='voice'){if(_0xfd2892[_0x313d21+_0xb7968c(0x74e)]!=='idle')return _0xfd2892[_0x313d21+_0xb7968c(0x74e)];if(_0xfd2892[_0x313d21+_0xb7968c(0xde0)])return _0xfd2892[_0x313d21+_0xb7968c(0x74e)]=_0xb7968c(0x1e3e),_0xb7968c(0x1e3e);return _0xb7968c(0xb09);}else{if(_0xfd2892[_0x313d21+'Pause'])return _0xfd2892[_0x313d21+_0xb7968c(0x74e)]='pause',_0xb7968c(0x1e3e);return _0xfd2892[_0x313d21+_0xb7968c(0x74e)];}}function _0x138691(_0x56cf2f){const _0x55d9cf=_0x37eff9;let _0x325b4c='unknown';if(_0x3f65c0()[_0x55d9cf(0xb14)]([_0x53ba4c(_0x56cf2f,_0x55d9cf(0xe6)),_0x53ba4c(_0x56cf2f,_0x55d9cf(0xa7f)),_0x53ba4c(_0x56cf2f,_0x55d9cf(0x56b)),_0x53ba4c(_0x56cf2f,'openchannel'),_0x53ba4c(_0x56cf2f,_0x55d9cf(0x929)),_0x53ba4c(_0x56cf2f,_0x55d9cf(0xff9)),_0x53ba4c(_0x56cf2f,_0x55d9cf(0x22d9))],_0x524700))_0x325b4c=_0x55d9cf(0x1e3e);else{if(_0x3f65c0()[_0x55d9cf(0x1360)]([_0x53ba4c(_0x56cf2f,_0x55d9cf(0xe6)),_0x53ba4c(_0x56cf2f,_0x55d9cf(0xa7f)),_0x53ba4c(_0x56cf2f,_0x55d9cf(0x56b)),_0x53ba4c(_0x56cf2f,_0x55d9cf(0x7d9)),_0x53ba4c(_0x56cf2f,_0x55d9cf(0x929)),_0x53ba4c(_0x56cf2f,_0x55d9cf(0xff9)),_0x53ba4c(_0x56cf2f,'fax')],_0x524700))_0x325b4c=_0x55d9cf(0x1127);else _0x3f65c0()[_0x55d9cf(0xb14)]([_0x53ba4c(_0x56cf2f,_0x55d9cf(0xe6)),_0x53ba4c(_0x56cf2f,_0x55d9cf(0xa7f)),_0x53ba4c(_0x56cf2f,_0x55d9cf(0x56b)),_0x53ba4c(_0x56cf2f,_0x55d9cf(0x7d9)),_0x53ba4c(_0x56cf2f,_0x55d9cf(0x929)),_0x53ba4c(_0x56cf2f,_0x55d9cf(0xff9)),_0x53ba4c(_0x56cf2f,_0x55d9cf(0x22d9))],_0x1530c1)?_0x325b4c=_0x55d9cf(0xb09):_0x325b4c=_0x55d9cf(0x26a7);}_0x56cf2f[_0x55d9cf(0x72b)]!==_0x325b4c&&(_0x56cf2f[_0x55d9cf(0x72b)]=_0x325b4c,_0x56cf2f['init']?(_0x56cf2f[_0x55d9cf(0x5aa)]=![],_0x56cf2f[_0x55d9cf(0xed1)]=_0x524700(_0x325b4c)?_0x3f65c0()[_0x55d9cf(0x123)](_0x2deec6()(_0x56cf2f[_0x55d9cf(0x192a)])[_0x55d9cf(0x22b0)]('x')):_0x3f65c0()[_0x55d9cf(0x727)]([_0x56cf2f[_0x55d9cf(0x1dda)],_0x56cf2f[_0x55d9cf(0x1a22)],_0x56cf2f[_0x55d9cf(0x10cd)],_0x56cf2f[_0x55d9cf(0x1f5c)],_0x56cf2f[_0x55d9cf(0xadd)],_0x56cf2f[_0x55d9cf(0x6cb)],_0x56cf2f[_0x55d9cf(0x47a)]])):_0x56cf2f[_0x55d9cf(0xed1)]=_0x3f65c0()[_0x55d9cf(0x123)](_0x2deec6()()['format']('x')));}function _0x40851c(_0x25372a){const _0x9d1548=_0x37eff9,_0x58d35e=_0x3f65c0()[_0x9d1548(0xd4d)](_0x49e1f3[_0x9d1548(0x1a56)][_0x9d1548(0x206e)],'-')?'desc':_0x9d1548(0x195);return _0x3f65c0()['orderBy'](_0x25372a,[_0x49e1f3[_0x9d1548(0x1a56)][_0x9d1548(0x206e)][_0x9d1548(0x5f4)]('-','')],[_0x58d35e]);}function _0x486b4b(){const _0x14f736=_0x37eff9;_0x2873a5&&(_0x48d456[_0x14f736(0x6c3)](_0x2873a5),_0x2873a5=null);}function _0x5cde8e(_0x412e4d,_0x3100de){const _0x238e9a=_0x37eff9;return _0xe316d5[_0x238e9a(0xe7b)][_0x238e9a(0x18e1)]({'id':_0x412e4d['id']},{'screenrecording':_0x3100de})[_0x238e9a(0x2945)][_0x238e9a(0x129e)](function(_0x144852){const _0x1bca74=_0x238e9a;_0x3677be[_0x1bca74(0x1980)]({'title':_0x144852[_0x1bca74(0x107b)]?_0x1bca74(0x262a)+_0x144852[_0x1bca74(0x107b)]+'\x20-\x20'+_0x144852['statusText']:_0x1bca74(0x254f),'msg':_0x144852[_0x1bca74(0x524)]?JSON['stringify'](_0x144852[_0x1bca74(0x524)][_0x1bca74(0x7fd)]):_0x144852[_0x1bca74(0xd5f)]()});});}_0x3ae25f[_0x37eff9(0x16ad)](_0x37eff9(0x116f),function(){const _0x39e91b=_0x37eff9;_0x2877b9['removeAllListeners']('user:save'),_0x2877b9['removeAllListeners'](_0x39e91b(0x324)),_0x2877b9[_0x39e91b(0x1c5f)](_0x39e91b(0x118c)),_0x2877b9[_0x39e91b(0x1c5f)]('user:agentcomplete'),_0x486b4b();});}const _0x5cec4a=_0x517849;;const _0x3a5738=_0x4acfac['p']+_0x313a4d(0x255e);;const _0x3d63f7=_0x4acfac['p']+_0x313a4d(0x14be);;_0x4da9d2[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1abe),_0x313a4d(0x10e8),'$q',_0x313a4d(0x4d8),_0x313a4d(0xa0a),_0x313a4d(0x1b32),_0x313a4d(0x21af),_0x313a4d(0x247f),_0x313a4d(0x279d),_0x313a4d(0x1fe4),_0x313a4d(0x26b6),_0x313a4d(0x1366),_0x313a4d(0xa87)];function _0x4da9d2(_0x23cc26,_0x17bfd3,_0x2e82a4,_0x593be0,_0x4e9b8a,_0x4cc253,_0x5310e2,_0x11768c,_0x4e0e67,_0x4f9e21,_0x4c9010,_0xcbbe4d,_0x135ce7,_0x233d8b){const _0x56b09c=_0x313a4d,_0x4069ca=this,_0x23d4d5=[_0x56b09c(0x2398),_0x56b09c(0xbdb),'waiting',_0x56b09c(0x10ed),_0x56b09c(0x166f),_0x56b09c(0x1e38),_0x56b09c(0x7fd),_0x56b09c(0x1095),_0x56b09c(0x1a69),_0x56b09c(0x13c4),'paused'];_0x4069ca[_0x56b09c(0x2321)]=_0x233d8b[_0x56b09c(0xb12)](),_0x4069ca[_0x56b09c(0x51c)]=_0x5310e2[_0x56b09c(0x51c)]?_0x5310e2['count']:0x0,_0x4069ca['queues']=_0x5310e2?_0x3f65c0()[_0x56b09c(0x194)](_0x5310e2[_0x56b09c(0x19c7)]?_0x5310e2['rows']:[],'id'):{},_0x4069ca[_0x56b09c(0x21af)]=_0x11768c?_0x3f65c0()[_0x56b09c(0x194)](_0x11768c[_0x56b09c(0x19c7)]?_0x11768c[_0x56b09c(0x19c7)]:[],'id'):{},_0x4069ca[_0x56b09c(0x26b6)]=_0xcbbe4d,_0x4069ca['userProfileSection']=_0x135ce7&&_0x135ce7[_0x56b09c(0x51c)]==0x1?_0x135ce7[_0x56b09c(0x19c7)][0x0]:null,_0x4069ca[_0x56b09c(0x2514)]=_0x233d8b['parseCrudPermissions'](_0x4069ca['userProfileSection']?_0x4069ca[_0x56b09c(0x1366)]['crudPermissions']:null);_0x233d8b[_0x56b09c(0x23e0)](_0x56b09c(0x174b))?_0x4069ca[_0x56b09c(0x1a56)]={'type':_0x56b09c(0x7b0),'sort':_0x56b09c(0x12f2),'limit':0xa,'page':0x1}:_0x4069ca['query']={'id':_0x4069ca[_0x56b09c(0x2321)]['id'],'channel':_0x56b09c(0x22d9),'type':_0x56b09c(0x7b0),'sort':_0x56b09c(0x12f2),'limit':0xa,'page':0x1};_0x4069ca['success']=_0x4fee09,_0x4069ca[_0x56b09c(0xc53)]=_0x49a867,_0x4069ca['createOrEditFaxQueue']=_0xa3317d,_0x4069ca['agentAdd']=_0x2ac3e4,_0x4069ca[_0x56b09c(0x2801)]=_0x341734,_0x4069ca[_0x56b09c(0x1db0)]=_0x5c80ef,_0x4069ca[_0x56b09c(0x285f)]=_0x70beb5,_0x4069ca['onRemoveMember']=_0x197ca0,_0x4069ca[_0x56b09c(0x1028)]=_0x4b441d,_0x4069ca[_0x56b09c(0x1c6c)]=_0x1409a3,_0x4069ca['onLogout']=_0x1fa46f,_0x4069ca['$onInit']=_0x445314,_0x4069ca[_0x56b09c(0x206e)]=[],_0x3f65c0()[_0x56b09c(0x1a04)](_0x4069ca['queues'],function(_0xc9699d){const _0x524703=_0x56b09c;_0x4069ca[_0x524703(0x206e)]['push'](_0xc9699d['id']);}),_0x4f9e21['on'](_0x56b09c(0x1d46),_0x4069ca[_0x56b09c(0x1db0)]),_0x4f9e21['on']('userFaxQueue:save',_0x4069ca[_0x56b09c(0x285f)]),_0x4f9e21['on'](_0x56b09c(0x193),_0x4069ca[_0x56b09c(0x2240)]),_0x4f9e21['on'](_0x56b09c(0x324),_0x4069ca[_0x56b09c(0x1028)]),_0x4f9e21['on']('userVoiceQueue:remove',_0x4069ca[_0x56b09c(0x600)]),_0x4f9e21['on'](_0x56b09c(0x109d),_0x4069ca[_0x56b09c(0x1c6c)]);function _0x445314(){const _0x28d16c=_0x56b09c,_0x3868ce=[];return _0x3f65c0()[_0x28d16c(0x1a04)](_0x4069ca[_0x28d16c(0x1b32)],function(_0x13acf3,_0x35791d){const _0x397d3d=_0x28d16c;_0x13acf3[_0x397d3d(0x1e3d)]=0x0,_0x13acf3['loggedInDb']=0x0,_0x4069ca[_0x397d3d(0x1b32)][_0x35791d][_0x397d3d(0x23c0)]={},_0x3868ce['push'](_0x4e0e67[_0x397d3d(0x999)]['getMembers']({'id':_0x35791d})[_0x397d3d(0x2945)]),_0x4069ca[_0x397d3d(0x21af)][_0x35791d]&&_0x3f65c0()[_0x397d3d(0x168d)](_0x13acf3,_0x3f65c0()[_0x397d3d(0x40e)](_0x4069ca[_0x397d3d(0x21af)][_0x35791d],_0x23d4d5));}),_0x593be0[_0x28d16c(0x1be2)](_0x3868ce)[_0x28d16c(0x146b)](function(_0x495865){const _0x383f4e=_0x28d16c;for(let _0x2007f4=0x0;_0x2007f4<_0x495865['length'];_0x2007f4+=0x1){for(let _0x414aed=0x0;_0x414aed<_0x495865[_0x2007f4][_0x383f4e(0x19c7)][_0x383f4e(0x402)];_0x414aed++){_0x495865[_0x2007f4][_0x383f4e(0x19c7)][_0x414aed][_0x383f4e(0x1e3d)]&&_0x4069ca[_0x383f4e(0x1b32)][_0x495865[_0x2007f4][_0x383f4e(0x19c7)][_0x414aed]['FaxQueueId']][_0x383f4e(0x1e3d)]++,_0x4069ca[_0x383f4e(0x1b32)][_0x495865[_0x2007f4][_0x383f4e(0x19c7)][_0x414aed][_0x383f4e(0xddd)]][_0x383f4e(0x1899)]++,_0x4069ca[_0x383f4e(0x1b32)][_0x495865[_0x2007f4][_0x383f4e(0x19c7)][_0x414aed][_0x383f4e(0xddd)]]['agents'][_0x495865[_0x2007f4][_0x383f4e(0x19c7)][_0x414aed]['UserId']]=_0x495865[_0x2007f4][_0x383f4e(0x19c7)][_0x414aed]['FaxQueueId'];}}})['catch'](function(_0x555075){const _0x189aa6=_0x28d16c;console[_0x189aa6(0x1980)](_0x555075);});}function _0x5c80ef(_0x3fa32e){const _0x144d81=_0x56b09c;_0x4069ca[_0x144d81(0x1b32)][_0x3fa32e['id']]&&_0x3f65c0()[_0x144d81(0x168d)](_0x4069ca[_0x144d81(0x1b32)][_0x3fa32e['id']],_0x3f65c0()['pick'](_0x3fa32e,_0x23d4d5));}function _0x70beb5(_0x5b568c){const _0x69a978=_0x56b09c;_0x4069ca[_0x69a978(0x1b32)][_0x5b568c[_0x69a978(0xddd)]]&&_0x4069ca[_0x69a978(0x1b32)][_0x5b568c['FaxQueueId']]['loggedInDb']++;}function _0x197ca0(_0x3662ce){const _0x2a2add=_0x56b09c;_0x4069ca[_0x2a2add(0x1b32)][_0x3662ce[_0x2a2add(0xddd)]]&&_0x4069ca[_0x2a2add(0x1b32)][_0x3662ce[_0x2a2add(0xddd)]][_0x2a2add(0x1899)]--;}function _0x4b441d(_0x5f3764){const _0x257e01=_0x56b09c;console[_0x257e01(0x1a74)]('onPause',_0x5f3764);if(_0x5f3764[_0x257e01(0x211c)])_0x3f65c0()[_0x257e01(0x1a04)](_0x4069ca['queues'],function(_0x46995a){const _0x3ce078=_0x257e01;_0x46995a[_0x3ce078(0x23c0)][_0x5f3764['id']]&&(_0x46995a[_0x3ce078(0x1e3d)]+=0x1,console[_0x3ce078(0x1a74)](_0x3ce078(0x1e3e)));});else!_0x5f3764[_0x257e01(0x211c)]&&_0x3f65c0()[_0x257e01(0x1a04)](_0x4069ca[_0x257e01(0x1b32)],function(_0x58d105){const _0x5f5c30=_0x257e01;_0x58d105[_0x5f5c30(0x23c0)][_0x5f3764['id']]&&(_0x58d105[_0x5f5c30(0x1e3d)]>0x0&&(_0x58d105[_0x5f5c30(0x1e3d)]-=0x1,console[_0x5f5c30(0x1a74)](_0x5f5c30(0x974))));});}function _0x1409a3(_0x3ffd0f){const _0x4031cf=_0x56b09c;console[_0x4031cf(0x1a74)](_0x4031cf(0x414),_0x3ffd0f),_0x4069ca['queues'][_0x3ffd0f[_0x4031cf(0xddd)]]&&(_0x4069ca[_0x4031cf(0x1b32)][_0x3ffd0f['FaxQueueId']][_0x4031cf(0x1899)]+=0x1,_0x4069ca[_0x4031cf(0x1b32)][_0x3ffd0f[_0x4031cf(0xddd)]]['agents'][_0x3ffd0f['UserId']]=_0x3ffd0f[_0x4031cf(0xddd)]);}function _0x1fa46f(_0x43e044){const _0x110bae=_0x56b09c;console[_0x110bae(0x1a74)]('onLogout',_0x43e044),_0x4069ca[_0x110bae(0x1b32)][_0x43e044['FaxQueueId']]&&_0x4069ca['queues'][_0x43e044[_0x110bae(0xddd)]][_0x110bae(0x1899)]>0x0&&(_0x4069ca[_0x110bae(0x1b32)][_0x43e044[_0x110bae(0xddd)]]['loggedInDb']-=0x1,delete _0x4069ca[_0x110bae(0x1b32)][_0x43e044[_0x110bae(0xddd)]][_0x110bae(0x23c0)][_0x43e044[_0x110bae(0xea2)]]);}let _0x4506e7=!![],_0x4a1082=0x1;_0x23cc26[_0x56b09c(0x21e8)](_0x56b09c(0x2669),function(_0x2f2599,_0x3af9c0){const _0x344db4=_0x56b09c;_0x4506e7?_0x17bfd3(function(){_0x4506e7=![];}):(!_0x3af9c0&&(_0x4a1082=_0x4069ca['query'][_0x344db4(0x844)]),_0x2f2599!==_0x3af9c0&&(_0x4069ca[_0x344db4(0x1a56)][_0x344db4(0x844)]=0x1),!_0x2f2599&&(_0x4069ca['query'][_0x344db4(0x844)]=_0x4a1082),_0x4069ca[_0x344db4(0xc53)]());});function _0x4fee09(_0x26e0e){const _0x1fcc3e=_0x56b09c;_0x4069ca[_0x1fcc3e(0x51c)]=_0x26e0e[_0x1fcc3e(0x51c)],_0x4069ca[_0x1fcc3e(0x1b32)]=_0x26e0e?_0x3f65c0()[_0x1fcc3e(0x194)](_0x26e0e[_0x1fcc3e(0x19c7)]?_0x26e0e[_0x1fcc3e(0x19c7)]:[],'id'):{};if(_0x26e0e['rows']){_0x4069ca['order']=[];for(let _0x2afe29=0x0;_0x2afe29<_0x26e0e[_0x1fcc3e(0x19c7)]['length'];_0x2afe29++){_0x4069ca[_0x1fcc3e(0x206e)][_0x1fcc3e(0x1f47)](_0x26e0e[_0x1fcc3e(0x19c7)][_0x2afe29]['id']);}}_0x445314();}function _0x49a867(){const _0x11b4e9=_0x56b09c;_0x4069ca[_0x11b4e9(0x1a56)]['offset']=(_0x4069ca[_0x11b4e9(0x1a56)][_0x11b4e9(0x844)]-0x1)*_0x4069ca[_0x11b4e9(0x1a56)]['limit'],_0x233d8b[_0x11b4e9(0x23e0)](_0x11b4e9(0x174b))?_0x4069ca[_0x11b4e9(0xb9c)]=_0x4e0e67[_0x11b4e9(0x999)]['get'](_0x4069ca[_0x11b4e9(0x1a56)],_0x4fee09)[_0x11b4e9(0x2945)]:(_0x4069ca[_0x11b4e9(0x1a56)]['id']=_0x4069ca[_0x11b4e9(0x26b6)]['id'],_0x4069ca['query'][_0x11b4e9(0x2146)]=_0x11b4e9(0x2915),_0x4069ca['promise']=_0x4e0e67[_0x11b4e9(0x26b6)][_0x11b4e9(0x158f)](_0x4069ca[_0x11b4e9(0x1a56)],_0x4fee09)[_0x11b4e9(0x2945)]);}function _0xa3317d(_0x12a04c,_0x2a1a45){const _0xd3dc1f=_0x56b09c;_0x2e82a4[_0xd3dc1f(0x2615)]({'controller':_0xd3dc1f(0x1ab3),'controllerAs':'vm','templateUrl':_0x3d63f7,'parent':angular[_0xd3dc1f(0x1853)](_0x4e9b8a[_0xd3dc1f(0x2586)]),'targetEvent':_0x12a04c,'clickOutsideToClose':!![],'locals':{'faxQueue':_0x2a1a45,'faxQueues':_0x3f65c0()[_0xd3dc1f(0x81b)](_0x4069ca[_0xd3dc1f(0x1b32)]),'license':null,'setting':null,'crudPermissions':_0x4069ca[_0xd3dc1f(0x2514)]}});}function _0x2ac3e4(_0x4f83ac,_0x3bf484){const _0x5ae8f6=_0x56b09c;_0x2e82a4['show']({'controller':'FaxQueueagentaddController','controllerAs':'vm','templateUrl':_0x3a5738,'parent':angular['element'](_0x4e9b8a[_0x5ae8f6(0x2586)]),'targetEvent':_0x4f83ac,'clickOutsideToClose':!![],'locals':{'faxQueue':_0x3bf484,'faxQueues':_0x4069ca[_0x5ae8f6(0x1b32)]?_0x4069ca[_0x5ae8f6(0x1b32)][_0x5ae8f6(0x19c7)]:[],'realtime':![],'crudPermissions':_0x4069ca[_0x5ae8f6(0x2514)]}});}function _0x341734(_0x326944){const _0x50d8b5=_0x56b09c;return _0x4e0e67[_0x50d8b5(0x999)][_0x50d8b5(0x18e1)](_0x326944)[_0x50d8b5(0x2945)]['then'](function(){const _0x198a14=_0x50d8b5;_0x4c9010[_0x198a14(0x1c75)]({'title':_0x198a14(0x5f1),'msg':_0x326944[_0x198a14(0x19eb)]?_0x326944[_0x198a14(0x19eb)]+_0x198a14(0x6b0):''});})[_0x50d8b5(0x129e)](function(_0x1ebc2d){const _0x567c46=_0x50d8b5;_0x4c9010[_0x567c46(0x1980)]({'title':_0x567c46(0x2174),'msg':_0x1ebc2d[_0x567c46(0x7fd)]});});}_0x23cc26[_0x56b09c(0x16ad)](_0x56b09c(0x116f),function(){const _0x124be1=_0x56b09c;_0x4f9e21[_0x124be1(0x1c5f)](_0x124be1(0x1d46)),_0x4f9e21['removeAllListeners'](_0x124be1(0x193)),_0x4f9e21[_0x124be1(0x1c5f)](_0x124be1(0x48a)),_0x4f9e21[_0x124be1(0x1c5f)](_0x124be1(0x324)),_0x4f9e21[_0x124be1(0x1c5f)](_0x124be1(0x1d3e)),_0x4f9e21[_0x124be1(0x1c5f)](_0x124be1(0x109d));});}const _0x303796=_0x4da9d2;;function _0xe987a5(){const _0x347825=_0x313a4d;return{'status':{'registered':_0x347825(0xdf4),'unregistered':'red-300-fg\x20icon-close-circle','lagged':_0x347825(0x4c7),'reachable':_0x347825(0xdf4),'unreachable':_0x347825(0x4c7),'unknown':_0x347825(0xc4b)},'state':{'unknown':'grey-fg\x20icon-phone-hangup','not_inuse':'green-300-fg\x20icon-phone-hangup','inuse':'red-300-fg\x20icon-phone-in-talk','busy':_0x347825(0xb3c),'invalid':_0x347825(0x1fd7),'unavailable':_0x347825(0x1fd7),'ringing':'blue-300-fg\x20icon-phone-incoming','ringinuse':'blue-300-fg\x20icon-phone-incoming','onhold':_0x347825(0x119f)},'channelStatus':{'ring':_0x347825(0x1172),'up':'green-300-fg\x20icon-phone-in-talk','hangup':_0x347825(0x135d)},'channelStatusOut':{'ring':_0x347825(0x1a13),'up':_0x347825(0x1668),'hangup':_0x347825(0x135d)}};}const _0x523a15=_0xe987a5;;_0x2cdcd1[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1862),_0x313a4d(0x279d)];function _0x2cdcd1(_0x53d534,_0x4cb1ca,_0x223e50){const _0x787232=_0x313a4d,_0x2c8d19=this;_0x223e50['disconnect'](),_0x223e50['connect'](),_0x2c8d19['selectedTab']=0x0;switch(_0x4cb1ca[_0x787232(0x2d7)][_0x787232(0x19eb)]){case _0x787232(0x20ba):_0x2c8d19[_0x787232(0x1b09)]=0x0;break;case'app.fax.realtime.trunks':_0x2c8d19['selectedTab']=0x1;break;case _0x787232(0x9e8):_0x2c8d19[_0x787232(0x1b09)]=0x2;break;case _0x787232(0x1946):_0x2c8d19[_0x787232(0x1b09)]=0x3;break;default:_0x2c8d19['selectedTab']=0x0,_0x4cb1ca['go'](_0x787232(0x20ba));}_0x53d534[_0x787232(0x21e8)](_0x787232(0x241b),function(_0x4d9426,_0x2b8c4d){const _0x19a061=_0x787232;if(_0x4d9426!==_0x2b8c4d)switch(_0x4d9426){case 0x0:_0x4cb1ca['go'](_0x19a061(0x20ba));break;case 0x1:_0x4cb1ca['go']('app.fax.realtime.trunks');break;case 0x2:_0x4cb1ca['go'](_0x19a061(0x9e8));break;case 0x3:_0x4cb1ca['go'](_0x19a061(0x1946));break;default:_0x4cb1ca['go'](_0x19a061(0x20ba));}});}const _0x32afd6=_0x2cdcd1;;_0x1368a3[_0x313a4d(0x11c2)]=['$scope',_0x313a4d(0x1abe),'$mdDialog',_0x313a4d(0x2433),_0x313a4d(0x12fd),_0x313a4d(0x247f),'socket',_0x313a4d(0x1ac0),_0x313a4d(0x1862),_0x313a4d(0x26b6),_0x313a4d(0x1366),'Auth'];function _0x1368a3(_0x29ec29,_0x21662d,_0x12b098,_0x33710f,_0x51f300,_0x3ae015,_0x4d4a54,_0x4ff1b1,_0x42d711,_0x5218c5,_0x9ef1e5,_0x732304){const _0x43a188=_0x313a4d,_0x4e5dfe=this,_0x1befbc=['status',_0x43a188(0x124d),'registry',_0x43a188(0x148e),'port',_0x43a188(0x113f),_0x43a188(0x13d6),_0x43a188(0x107b)];_0x4e5dfe[_0x43a188(0x2321)]=_0x732304[_0x43a188(0xb12)](),_0x4e5dfe[_0x43a188(0x51c)]=_0x33710f[_0x43a188(0x51c)],_0x4e5dfe['trunks']=_0x33710f?_0x33710f[_0x43a188(0x19c7)]:[],_0x4e5dfe[_0x43a188(0x12fd)]=_0x51f300?_0x51f300[_0x43a188(0x19c7)]?_0x51f300['rows']:[]:[],_0x4e5dfe[_0x43a188(0x1a56)]={'fields':_0x43a188(0x7a7),'active':!![],'sort':_0x43a188(0x12f2),'limit':0xa,'page':0x1},_0x4e5dfe[_0x43a188(0x1bce)]=_0x4ff1b1['status'],_0x4e5dfe['stateClass']=_0x4ff1b1[_0x43a188(0x13d6)],_0x4e5dfe['userProfile']=_0x5218c5,_0x4e5dfe[_0x43a188(0x1366)]=_0x9ef1e5&&_0x9ef1e5[_0x43a188(0x51c)]==0x1?_0x9ef1e5[_0x43a188(0x19c7)][0x0]:null,_0x4e5dfe['crudPermissions']=_0x732304[_0x43a188(0xe60)](_0x4e5dfe['userProfileSection']?_0x4e5dfe[_0x43a188(0x1366)][_0x43a188(0x2514)]:null),_0x4e5dfe['success']=_0x33c5bc,_0x4e5dfe[_0x43a188(0x20de)]=_0x42d51f,_0x4e5dfe['showInfo']=_0x5931d2,_0x4e5dfe[_0x43a188(0x1cd4)]=_0x5bafe5,_0x4e5dfe[_0x43a188(0x2428)]=_0xb7dd4b,_0x4e5dfe['onSave']=_0x39da39,_0x4d4a54['on'](_0x43a188(0x1d61),_0x4e5dfe['onSave']);function _0x42d51f(){const _0x3b7aad=_0x43a188;let _0x2a274b;for(let _0x124790=0x0;_0x124790<_0x4e5dfe[_0x3b7aad(0x2433)][_0x3b7aad(0x402)];_0x124790+=0x1){_0x2a274b=_0x3f65c0()[_0x3b7aad(0x99c)](_0x4e5dfe['rpcTrunks'],['id',_0x4e5dfe[_0x3b7aad(0x2433)][_0x124790]['id']]),_0x2a274b>=0x0&&_0x3f65c0()['merge'](_0x4e5dfe['trunks'][_0x124790],_0x3f65c0()['pick'](_0x4e5dfe[_0x3b7aad(0x12fd)][_0x2a274b],_0x1befbc));}}function _0x5931d2(_0x62d5a7){const _0x559933=_0x43a188;_0x12b098[_0x559933(0x2615)](_0x12b098['alert']()[_0x559933(0xa70)](!![])[_0x559933(0x1189)]('Legend')[_0x559933(0x1cbe)](_0x559933(0x1f77))['ok']('Ok')[_0x559933(0x1f27)](_0x62d5a7));}function _0x466a5c(_0x2184a8,_0x45aa1c,_0x1c16ce){const _0x260dc0=_0x43a188;_0x45aa1c>=0x0&&_0x3f65c0()[_0x260dc0(0x168d)](_0x2184a8[_0x45aa1c],_0x3f65c0()['pick'](_0x1c16ce,_0x1befbc));}function _0x39da39(_0x1c4f3a){const _0x4be591=_0x43a188,_0x32c1fe=_0x3f65c0()[_0x4be591(0x99c)](_0x4e5dfe[_0x4be591(0x2433)],['id',_0x1c4f3a['id']]),_0x32ebe6=_0x3f65c0()[_0x4be591(0x99c)](_0x4e5dfe[_0x4be591(0x12fd)],['id',_0x1c4f3a['id']]);_0x466a5c(_0x4e5dfe[_0x4be591(0x2433)],_0x32c1fe,_0x1c4f3a),_0x466a5c(_0x4e5dfe[_0x4be591(0x12fd)],_0x32ebe6,_0x1c4f3a);}let _0x179a55=!![],_0x4fd413=0x1;_0x29ec29[_0x43a188(0x21e8)](_0x43a188(0x2669),function(_0x330788,_0x5bb549){const _0x11f56f=_0x43a188;_0x179a55?_0x21662d(function(){_0x179a55=![];}):(!_0x5bb549&&(_0x4fd413=_0x4e5dfe[_0x11f56f(0x1a56)]['page']),_0x330788!==_0x5bb549&&(_0x4e5dfe[_0x11f56f(0x1a56)][_0x11f56f(0x844)]=0x1),!_0x330788&&(_0x4e5dfe[_0x11f56f(0x1a56)][_0x11f56f(0x844)]=_0x4fd413),_0x4e5dfe['getTrunks']());});function _0x33c5bc(_0x5ef563){const _0x4a0456=_0x43a188;_0x4e5dfe[_0x4a0456(0x51c)]=_0x5ef563[_0x4a0456(0x51c)],_0x4e5dfe[_0x4a0456(0x2433)]=_0x5ef563?_0x5ef563[_0x4a0456(0x19c7)]?_0x5ef563[_0x4a0456(0x19c7)]:[]:[],_0x42d51f();}function _0x5bafe5(){const _0x432b51=_0x43a188;_0x4e5dfe[_0x432b51(0x1a56)][_0x432b51(0x145d)]=(_0x4e5dfe[_0x432b51(0x1a56)]['page']-0x1)*_0x4e5dfe[_0x432b51(0x1a56)][_0x432b51(0x221e)],_0x732304[_0x432b51(0x23e0)]('admin')?_0x4e5dfe['promise']=_0x3ae015[_0x432b51(0x279f)][_0x432b51(0x16b4)](_0x4e5dfe[_0x432b51(0x1a56)],_0x33c5bc)[_0x432b51(0x2945)]:(_0x4e5dfe[_0x432b51(0x1a56)]['id']=_0x4e5dfe[_0x432b51(0x26b6)]['id'],_0x4e5dfe[_0x432b51(0x1a56)][_0x432b51(0x2146)]=_0x432b51(0x110f),_0x4e5dfe['promise']=_0x3ae015[_0x432b51(0x26b6)][_0x432b51(0x158f)](_0x4e5dfe[_0x432b51(0x1a56)],_0x33c5bc)[_0x432b51(0x2945)]);}_0x29ec29[_0x43a188(0x16ad)]('$destroy',function(){const _0x49a29c=_0x43a188;_0x4d4a54[_0x49a29c(0x1c5f)](_0x49a29c(0x1d61));});function _0xb7dd4b(_0x43dbe5,_0x35bf82){const _0x3a6b3a=_0x43a188;_0x42d711['go'](_0x3a6b3a(0x5f0),{'id':_0x35bf82['id']});}}const _0x50bd72=_0x1368a3;;_0x1184ef[_0x313a4d(0x11c2)]=[_0x313a4d(0x921)];function _0x1184ef(_0x424e6a){const _0x42c79e=_0x313a4d;_0x424e6a[_0x42c79e(0x13d6)](_0x42c79e(0xbec),{'url':_0x42c79e(0x178b),'views':{'content@app':{'templateUrl':_0x145bff,'controller':_0x42c79e(0x1d71)}},'resolve':{'userProfile':[_0x42c79e(0x362),'Auth',function(_0x17bb36,_0x38c39e){const _0x17942a=_0x42c79e;return _0x38c39e[_0x17942a(0x23e0)]('admin')?null:_0x17bb36[_0x17942a(0x2922)](_0x17942a(0x119a),{'fields':_0x17942a(0x227),'id':_0x38c39e[_0x17942a(0xb12)]()[_0x17942a(0x209a)]});}],'userProfileSection':['apiResolver','Auth',function(_0x45fd70,_0x50a2ef){const _0x329ae2=_0x42c79e;return _0x50a2ef[_0x329ae2(0x23e0)](_0x329ae2(0x174b))?null:_0x45fd70[_0x329ae2(0x2922)](_0x329ae2(0x27be),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x50a2ef['getCurrentUser']()['userProfileId'],'sectionId':0x38e});}]},'authenticate':!![],'permissionId':0x38e})[_0x42c79e(0x13d6)]('app.fax.realtime.agents',{'url':_0x42c79e(0x1507),'controller':_0x42c79e(0x10a),'templateUrl':_0x470d63,'resolve':{'pauses':[_0x42c79e(0x362),function(_0x1feddd){const _0x3f6577=_0x42c79e;return _0x1feddd['resolve'](_0x3f6577(0x3f6),{'nolimit':!![]});}],'agents':[_0x42c79e(0x362),'Auth',function(_0x479801,_0x195c63){const _0x50a79d=_0x42c79e;return _0x195c63[_0x50a79d(0x23e0)](_0x50a79d(0x174b))?_0x479801[_0x50a79d(0x2922)](_0x50a79d(0x2484),{'fields':_0x50a79d(0x2869),'role':_0x50a79d(0x1755),'sort':_0x50a79d(0x286a),'nolimit':!![]}):_0x479801['resolve'](_0x50a79d(0x938),{'id':_0x195c63[_0x50a79d(0xb12)]()[_0x50a79d(0x209a)],'section':_0x50a79d(0xca8),'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':_0x50a79d(0x1755),'sort':'fullname','nolimit':!![]});}],'userProfile':[_0x42c79e(0x362),_0x42c79e(0xa87),function(_0x3287fe,_0x571f8f){const _0x1688e6=_0x42c79e;return _0x571f8f[_0x1688e6(0x23e0)]('admin')?null:_0x3287fe[_0x1688e6(0x2922)](_0x1688e6(0x119a),{'fields':_0x1688e6(0x227),'id':_0x571f8f[_0x1688e6(0xb12)]()['userProfileId']});}],'userProfileSection':['apiResolver',_0x42c79e(0xa87),function(_0x211824,_0x19c6e8){const _0x1f7396=_0x42c79e;return _0x19c6e8[_0x1f7396(0x23e0)](_0x1f7396(0x174b))?null:_0x211824['resolve']('userProfileSection@get',{'fields':_0x1f7396(0x1e64),'userProfileId':_0x19c6e8[_0x1f7396(0xb12)]()['userProfileId'],'sectionId':0xca});}],'rpcAgents':[_0x42c79e(0x362),function(_0x41c3b5){const _0x44ce75=_0x42c79e;return _0x41c3b5[_0x44ce75(0x2922)](_0x44ce75(0x19ab));}]},'authenticate':!![],'permissionId':0x38e})[_0x42c79e(0x13d6)](_0x42c79e(0x1cff),{'url':_0x42c79e(0xe55),'controller':'TrunksFaxRealtimeController\x20as\x20vm','templateUrl':_0x76489b,'resolve':{'trunks':[_0x42c79e(0x362),_0x42c79e(0xa87),function(_0x31c04d,_0x47c9e1){const _0x21aa7c=_0x42c79e;return _0x47c9e1['hasRole'](_0x21aa7c(0x174b))?_0x31c04d[_0x21aa7c(0x2922)](_0x21aa7c(0x244b),{'fields':_0x21aa7c(0x7a7),'active':!![],'sort':_0x21aa7c(0x12f2),'limit':0xa,'offset':0x0}):_0x31c04d[_0x21aa7c(0x2922)](_0x21aa7c(0x938),{'id':_0x47c9e1[_0x21aa7c(0xb12)]()[_0x21aa7c(0x209a)],'section':_0x21aa7c(0x110f),'fields':_0x21aa7c(0x7a7),'active':!![],'sort':_0x21aa7c(0x12f2),'limit':0xa,'offset':0x0});}],'userProfile':[_0x42c79e(0x362),_0x42c79e(0xa87),function(_0x238775,_0x3aa685){const _0x5897de=_0x42c79e;return _0x3aa685[_0x5897de(0x23e0)](_0x5897de(0x174b))?null:_0x238775[_0x5897de(0x2922)]('userProfile@get',{'fields':_0x5897de(0x227),'id':_0x3aa685[_0x5897de(0xb12)]()[_0x5897de(0x209a)]});}],'userProfileSection':['apiResolver',_0x42c79e(0xa87),function(_0x22b443,_0x4271c6){const _0x1d4585=_0x42c79e;return _0x4271c6[_0x1d4585(0x23e0)]('admin')?null:_0x22b443[_0x1d4585(0x2922)](_0x1d4585(0x27be),{'fields':_0x1d4585(0x1e64),'userProfileId':_0x4271c6[_0x1d4585(0xb12)]()[_0x1d4585(0x209a)],'sectionId':0x3f3});}],'rpcTrunks':['apiResolver',function(_0x2e366e){const _0x579a01=_0x42c79e;return _0x2e366e[_0x579a01(0x2922)](_0x579a01(0x1cd9));}]},'authenticate':!![],'permissionId':0x38e})[_0x42c79e(0x13d6)]('app.fax.realtime.queues',{'url':_0x42c79e(0xf15),'controller':_0x42c79e(0x133f),'templateUrl':_0x2764ed,'resolve':{'queues':[_0x42c79e(0x362),'Auth',function(_0x16159f,_0x489ffe){const _0x1c53cc=_0x42c79e;return _0x489ffe['hasRole'](_0x1c53cc(0x174b))?_0x16159f['resolve'](_0x1c53cc(0xf8a),{'type':'inbound','sort':_0x1c53cc(0x12f2),'limit':0xa,'offset':0x0}):_0x16159f[_0x1c53cc(0x2922)]('userProfile@getResources',{'id':_0x489ffe['getCurrentUser']()[_0x1c53cc(0x209a)],'section':_0x1c53cc(0x2915),'channel':_0x1c53cc(0x22d9),'type':_0x1c53cc(0x7b0),'sort':_0x1c53cc(0x12f2),'limit':0xa,'page':0x1});}],'userProfile':[_0x42c79e(0x362),_0x42c79e(0xa87),function(_0x3269f1,_0x47469b){const _0x125d85=_0x42c79e;return _0x47469b[_0x125d85(0x23e0)](_0x125d85(0x174b))?null:_0x3269f1['resolve'](_0x125d85(0x119a),{'fields':'id,name,crudPermissions','id':_0x47469b[_0x125d85(0xb12)]()[_0x125d85(0x209a)]});}],'userProfileSection':['apiResolver',_0x42c79e(0xa87),function(_0x55b472,_0x3faaf1){const _0x275003=_0x42c79e;return _0x3faaf1[_0x275003(0x23e0)](_0x275003(0x174b))?null:_0x55b472[_0x275003(0x2922)]('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x3faaf1['getCurrentUser']()[_0x275003(0x209a)],'sectionId':0x385});}],'rpcQueues':[_0x42c79e(0x362),function(_0x12fe19){const _0x66538f=_0x42c79e;return _0x12fe19[_0x66538f(0x2922)](_0x66538f(0x1e18));}]},'authenticate':!![],'permissionId':0x38e})['state'](_0x42c79e(0x1946),{'url':_0x42c79e(0x2425),'controller':_0x42c79e(0x5a7),'templateUrl':_0x126a37,'resolve':{'faxAccounts':[_0x42c79e(0x362),'Auth',function(_0x3859c0,_0x2523ca){const _0x36ad34=_0x42c79e;return _0x2523ca[_0x36ad34(0x23e0)](_0x36ad34(0x174b))?_0x3859c0[_0x36ad34(0x2922)](_0x36ad34(0x6a2),{'sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x3859c0['resolve'](_0x36ad34(0x938),{'id':_0x2523ca[_0x36ad34(0xb12)]()[_0x36ad34(0x209a)],'section':_0x36ad34(0x17d1),'sort':_0x36ad34(0x12f2),'limit':0xa,'offset':0x0});}],'userProfile':[_0x42c79e(0x362),_0x42c79e(0xa87),function(_0x3871a5,_0x392c39){const _0x1bcd52=_0x42c79e;return _0x392c39['hasRole'](_0x1bcd52(0x174b))?null:_0x3871a5[_0x1bcd52(0x2922)](_0x1bcd52(0x119a),{'fields':_0x1bcd52(0x227),'id':_0x392c39['getCurrentUser']()[_0x1bcd52(0x209a)]});}],'userProfileSection':['apiResolver','Auth',function(_0x213072,_0x2e64fd){const _0xa99ab5=_0x42c79e;return _0x2e64fd[_0xa99ab5(0x23e0)](_0xa99ab5(0x174b))?null:_0x213072[_0xa99ab5(0x2922)](_0xa99ab5(0x27be),{'fields':_0xa99ab5(0x1e64),'userProfileId':_0x2e64fd['getCurrentUser']()['userProfileId'],'sectionId':0x386});}],'rpcFaxAccounts':[_0x42c79e(0x362),function(_0x531175){return _0x531175['resolve']('rpc@getFaxAccounts');}]},'authenticate':!![],'permissionId':0x38e});}angular[_0x313a4d(0x2528)]('app.fax.realtime',[])[_0x313a4d(0x989)](_0x1184ef)['controller']('FaxAccountsRealtimeController',_0x370e10)[_0x313a4d(0x28f0)]('AgentsFaxRealtimeController',_0x5cec4a)[_0x313a4d(0x28f0)](_0x313a4d(0x20ce),_0x303796)[_0x313a4d(0x1750)](_0x313a4d(0x1ac0),_0x523a15)[_0x313a4d(0x28f0)](_0x313a4d(0x6a1),_0x32afd6)[_0x313a4d(0x28f0)](_0x313a4d(0xb43),_0x50bd72);;_0x5631c1[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1862),'$location',_0x313a4d(0x10e8),'$q',_0x313a4d(0x214b),_0x313a4d(0x1fe4),_0x313a4d(0x8a9),_0x313a4d(0x178),'api',_0x313a4d(0xa87),_0x313a4d(0x2690),'setting',_0x313a4d(0x2514)];function _0x5631c1(_0x46132a,_0x4fb310,_0x5d549e,_0x959350,_0x1e507c,_0x40222c,_0x560923,_0x1a34a2,_0x15e896,_0x1d93a5,_0x3e2e35,_0x4fb641,_0x3c8bbc,_0x28d6cc){const _0x1ca259=_0x313a4d,_0x4dbc3c=this;_0x4dbc3c[_0x1ca259(0x2321)]=_0x3e2e35[_0x1ca259(0xb12)](),_0x4dbc3c[_0x1ca259(0xcef)]=[],_0x4dbc3c[_0x1ca259(0x15b9)]=_0x3c8bbc,_0x4dbc3c[_0x1ca259(0x2690)]=_0x4fb641,_0x4dbc3c['crudPermissions']=_0x28d6cc,_0x4dbc3c[_0x1ca259(0x855)]={},_0x4dbc3c[_0x1ca259(0x2251)]=_0x4dbc3c[_0x1ca259(0x15b9)]&&_0x4dbc3c['setting']['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x4dbc3c[_0x1ca259(0x1189)]='FAX.EDIT_FAXACCOUNT',_0x4dbc3c[_0x1ca259(0x178)]=angular[_0x1ca259(0x235a)](_0x15e896),_0x4dbc3c['faxAccounts']=_0x1a34a2,_0x4dbc3c[_0x1ca259(0x681)]=![];!_0x4dbc3c[_0x1ca259(0x178)]&&(_0x4dbc3c[_0x1ca259(0x178)]={'waitForTheAssignedAgent':0xa,'notificationSound':!![],'queueTransferTimeout':0x12c,'agentTransferTimeout':0x12c},_0x4dbc3c['title']=_0x1ca259(0x1dfa),_0x4dbc3c['newFaxAccount']=!![]);_0x4fb310['params']['id']&&(_0x4dbc3c[_0x1ca259(0x178)][_0x1ca259(0x74d)]=_0x4fb310['params']['id']);_0x4dbc3c['addNewFaxAccount']=_0x5e61bc,_0x4dbc3c[_0x1ca259(0x1dc1)]=_0x28198d,_0x4dbc3c[_0x1ca259(0x20ed)]=_0x2e60a2,_0x4dbc3c['getDateFromString']=_0x2606ec,_0x4dbc3c[_0x1ca259(0x13f3)]=_0x585999,_0x3e2e35[_0x1ca259(0x23e0)](_0x1ca259(0x174b))?_0x1d93a5['trunk'][_0x1ca259(0x16b4)]({'fields':_0x1ca259(0x7a7),'sort':'name'})['$promise'][_0x1ca259(0x146b)](function(_0x37fafa){const _0x5e1b0a=_0x1ca259;_0x4dbc3c[_0x5e1b0a(0x2433)]=_0x37fafa[_0x5e1b0a(0x19c7)]||[];})[_0x1ca259(0x129e)](function(_0xa8bf0b){const _0x443edf=_0x1ca259;_0x560923[_0x443edf(0x1980)]({'title':_0xa8bf0b[_0x443edf(0x107b)]?_0x443edf(0x262a)+_0xa8bf0b[_0x443edf(0x107b)]+'\x20-\x20'+_0xa8bf0b[_0x443edf(0x167f)]:_0x443edf(0xfc0),'msg':_0xa8bf0b[_0x443edf(0x524)]?JSON['stringify'](_0xa8bf0b['data']):_0xa8bf0b[_0x443edf(0xd5f)]()});}):_0x1d93a5[_0x1ca259(0x279f)]['get']({'fields':'id,name','sort':_0x1ca259(0x19eb)})[_0x1ca259(0x2945)][_0x1ca259(0x146b)](function(_0x367a78){const _0x489997=_0x1ca259;_0x4dbc3c[_0x489997(0x2433)]=_0x367a78['rows']||[];})[_0x1ca259(0x146b)](function(){const _0x18b90c=_0x1ca259;return _0x1d93a5['userProfileSection']['get']({'userProfileId':_0x4dbc3c[_0x18b90c(0x2321)][_0x18b90c(0x209a)],'sectionId':0x3f3})[_0x18b90c(0x2945)];})[_0x1ca259(0x146b)](function(_0x2531ad){const _0x36d2e8=_0x1ca259,_0xe7317f=_0x2531ad&&_0x2531ad[_0x36d2e8(0x19c7)]?_0x2531ad[_0x36d2e8(0x19c7)][0x0]:null;if(!_0xe7317f){const _0x3b9ee5=[];let _0x35ff32=null;_0x4dbc3c[_0x36d2e8(0x178)]&&(_0x35ff32=_0x3f65c0()[_0x36d2e8(0xc84)](_0x4dbc3c[_0x36d2e8(0x2433)],{'id':Number(_0x4dbc3c['faxAccount'][_0x36d2e8(0x1b77)])}));for(let _0x2559cf=0x0;_0x2559cf<_0x4dbc3c[_0x36d2e8(0x2433)][_0x36d2e8(0x402)];_0x2559cf++){_0x35ff32&&_0x4dbc3c[_0x36d2e8(0x2433)][_0x2559cf]['id']===_0x35ff32['id']&&(_0x4dbc3c[_0x36d2e8(0x2433)][_0x2559cf]['canSelect']=![],_0x3b9ee5[_0x36d2e8(0x1f47)](_0x4dbc3c[_0x36d2e8(0x2433)][_0x2559cf]));}_0x4dbc3c[_0x36d2e8(0x2433)]=_0x3b9ee5;}else{if(!_0xe7317f[_0x36d2e8(0x11d2)])return _0x1d93a5[_0x36d2e8(0xdcc)]['get']({'sectionId':_0xe7317f['id']})[_0x36d2e8(0x2945)]['then'](function(_0x11516a){const _0x3ad473=_0x36d2e8,_0x471739=_0x3f65c0()['map'](_0x11516a[_0x3ad473(0x19c7)],function(_0x2b37d9){return _0x3f65c0()['find'](_0x4dbc3c['trunks'],{'id':_0x2b37d9['resourceId']});});let _0x1a9c61=null;_0x4dbc3c[_0x3ad473(0x178)]&&(_0x1a9c61=_0x3f65c0()['find'](_0x4dbc3c[_0x3ad473(0x2433)],{'id':Number(_0x4dbc3c[_0x3ad473(0x178)][_0x3ad473(0x1b77)])}));if(_0x1a9c61&&!_0x3f65c0()[_0x3ad473(0x1360)](_0x471739,['id',_0x1a9c61['id']])){const _0x3993b8=_0x3f65c0()[_0x3ad473(0xc84)](_0x4dbc3c['trunks'],{'id':_0x1a9c61['id']});_0x3993b8[_0x3ad473(0x8ff)]=![],_0x471739['push'](_0x3993b8);}_0x4dbc3c[_0x3ad473(0x2433)]=_0x471739;});}})['catch'](function(_0x3bdc72){const _0x49ab2f=_0x1ca259;_0x560923[_0x49ab2f(0x1980)]({'title':_0x3bdc72[_0x49ab2f(0x107b)]?_0x49ab2f(0x262a)+_0x3bdc72['status']+'\x20-\x20'+_0x3bdc72[_0x49ab2f(0x167f)]:_0x49ab2f(0x2436),'msg':_0x3bdc72[_0x49ab2f(0x524)]?JSON['stringify'](_0x3bdc72[_0x49ab2f(0x524)]):_0x3bdc72[_0x49ab2f(0xd5f)]()});}),_0x3e2e35['hasRole']('admin')?_0x1d93a5['cmList'][_0x1ca259(0x16b4)]({'fields':_0x1ca259(0x7a7),'sort':_0x1ca259(0x19eb)})[_0x1ca259(0x2945)]['then'](function(_0x73293a){const _0x429d58=_0x1ca259;_0x4dbc3c[_0x429d58(0x1324)]=_0x73293a['rows']||[];})['catch'](function(_0x9b8787){const _0x517ed6=_0x1ca259;_0x560923[_0x517ed6(0x1980)]({'title':_0x9b8787[_0x517ed6(0x107b)]?_0x517ed6(0x262a)+_0x9b8787[_0x517ed6(0x107b)]+_0x517ed6(0x1315)+_0x9b8787['statusText']:_0x517ed6(0x11b3),'msg':_0x9b8787[_0x517ed6(0x524)]?JSON[_0x517ed6(0x10bb)](_0x9b8787[_0x517ed6(0x524)]):_0x9b8787[_0x517ed6(0xd5f)]()});}):_0x1d93a5[_0x1ca259(0xf03)][_0x1ca259(0x16b4)]({'fields':_0x1ca259(0x7a7),'sort':_0x1ca259(0x19eb)})[_0x1ca259(0x2945)][_0x1ca259(0x146b)](function(_0x2332d3){const _0x5c92f9=_0x1ca259;_0x4dbc3c[_0x5c92f9(0x1324)]=_0x2332d3[_0x5c92f9(0x19c7)]||[];})[_0x1ca259(0x146b)](function(){const _0x2cb5bd=_0x1ca259;return _0x1d93a5[_0x2cb5bd(0x1366)][_0x2cb5bd(0x16b4)]({'userProfileId':_0x4dbc3c[_0x2cb5bd(0x2321)][_0x2cb5bd(0x209a)],'sectionId':0x12d})[_0x2cb5bd(0x2945)];})['then'](function(_0x537013){const _0x4e1ef9=_0x1ca259,_0x5b9d34=_0x537013&&_0x537013[_0x4e1ef9(0x19c7)]?_0x537013['rows'][0x0]:null;if(!_0x5b9d34){const _0x3b4a07=[];let _0x4438ee=null;_0x4dbc3c['faxAccount']&&(_0x4438ee=_0x3f65c0()[_0x4e1ef9(0xc84)](_0x4dbc3c[_0x4e1ef9(0x1324)],{'id':Number(_0x4dbc3c[_0x4e1ef9(0x178)]['ListId'])}));for(let _0xf2d378=0x0;_0xf2d378<_0x4dbc3c[_0x4e1ef9(0x1324)][_0x4e1ef9(0x402)];_0xf2d378++){_0x4438ee&&_0x4dbc3c[_0x4e1ef9(0x1324)][_0xf2d378]['id']===_0x4438ee['id']&&(_0x4dbc3c['lists'][_0xf2d378][_0x4e1ef9(0x8ff)]=![],_0x3b4a07[_0x4e1ef9(0x1f47)](_0x4dbc3c[_0x4e1ef9(0x1324)][_0xf2d378]));}_0x4dbc3c[_0x4e1ef9(0x1324)]=_0x3b4a07;}else{if(!_0x5b9d34[_0x4e1ef9(0x11d2)])return _0x1d93a5[_0x4e1ef9(0xdcc)][_0x4e1ef9(0x16b4)]({'sectionId':_0x5b9d34['id']})[_0x4e1ef9(0x2945)][_0x4e1ef9(0x146b)](function(_0x1cca8c){const _0x24b939=_0x4e1ef9,_0x114fc3=_0x3f65c0()[_0x24b939(0x205)](_0x1cca8c['rows'],function(_0x14511d){const _0x5564c2=_0x24b939;return _0x3f65c0()['find'](_0x4dbc3c[_0x5564c2(0x1324)],{'id':_0x14511d[_0x5564c2(0x18b8)]});});let _0xd96bfd=null;_0x4dbc3c[_0x24b939(0x178)]&&(_0xd96bfd=_0x3f65c0()['find'](_0x4dbc3c[_0x24b939(0x1324)],{'id':Number(_0x4dbc3c[_0x24b939(0x178)][_0x24b939(0xb7c)])}));if(_0xd96bfd&&!_0x3f65c0()['some'](_0x114fc3,['id',_0xd96bfd['id']])){const _0x2c96b0=_0x3f65c0()[_0x24b939(0xc84)](_0x4dbc3c[_0x24b939(0x1324)],{'id':_0xd96bfd['id']});_0x2c96b0['canSelect']=![],_0x114fc3[_0x24b939(0x1f47)](_0x2c96b0);}_0x4dbc3c[_0x24b939(0x1324)]=_0x114fc3;});}})[_0x1ca259(0x129e)](function(_0x180f75){const _0x2cbb1c=_0x1ca259;_0x560923[_0x2cbb1c(0x1980)]({'title':_0x180f75[_0x2cbb1c(0x107b)]?_0x2cbb1c(0x262a)+_0x180f75[_0x2cbb1c(0x107b)]+_0x2cbb1c(0x1315)+_0x180f75['statusText']:_0x2cbb1c(0x1a2f),'msg':_0x180f75[_0x2cbb1c(0x524)]?JSON[_0x2cbb1c(0x10bb)](_0x180f75[_0x2cbb1c(0x524)]):_0x180f75[_0x2cbb1c(0xd5f)]()});});function _0x5e61bc(){const _0x546b86=_0x1ca259;_0x4dbc3c[_0x546b86(0xcef)]=[],_0x1d93a5[_0x546b86(0x178)]['addAccountApplications'](_0x4dbc3c[_0x546b86(0x178)])[_0x546b86(0x2945)][_0x546b86(0x146b)](function(_0x22d358){const _0x167016=_0x546b86;_0x4dbc3c[_0x167016(0x8a9)][_0x167016(0xb3d)](_0x22d358[_0x167016(0x2488)]()),_0x560923[_0x167016(0x1c75)]({'title':_0x167016(0x16d7),'msg':_0x4dbc3c[_0x167016(0x178)][_0x167016(0x19eb)]?_0x4dbc3c['faxAccount'][_0x167016(0x19eb)]+'\x20has\x20been\x20created!':''}),_0x585999(_0x22d358);})['catch'](function(_0x1c44ef){const _0x550b9a=_0x546b86;if(_0x1c44ef[_0x550b9a(0x524)]&&_0x1c44ef[_0x550b9a(0x524)][_0x550b9a(0xcef)]&&_0x1c44ef[_0x550b9a(0x524)][_0x550b9a(0xcef)][_0x550b9a(0x402)]){_0x4dbc3c[_0x550b9a(0xcef)]=_0x1c44ef[_0x550b9a(0x524)]['errors']||[{'message':_0x1c44ef[_0x550b9a(0xd5f)](),'type':_0x550b9a(0x20ca)}];for(let _0x11b783=0x0;_0x11b783<_0x1c44ef[_0x550b9a(0x524)][_0x550b9a(0xcef)][_0x550b9a(0x402)];_0x11b783+=0x1){_0x560923[_0x550b9a(0x1980)]({'title':_0x1c44ef[_0x550b9a(0x524)][_0x550b9a(0xcef)][_0x11b783][_0x550b9a(0x1142)],'msg':_0x1c44ef[_0x550b9a(0x524)][_0x550b9a(0xcef)][_0x11b783][_0x550b9a(0x7fd)]});}}else _0x560923[_0x550b9a(0x1980)]({'title':_0x1c44ef[_0x550b9a(0x107b)]?_0x550b9a(0x262a)+_0x1c44ef[_0x550b9a(0x107b)]+'\x20-\x20'+_0x1c44ef['statusText']:_0x550b9a(0x20ca),'msg':_0x1c44ef['data']?JSON[_0x550b9a(0x10bb)](_0x1c44ef[_0x550b9a(0x524)][_0x550b9a(0x7fd)]):_0x1c44ef['toString']()});});}function _0x28198d(){const _0xb76fa=_0x1ca259;_0x4dbc3c['errors']=[],_0x1d93a5['faxAccount'][_0xb76fa(0x1361)](_0x4dbc3c[_0xb76fa(0x178)])[_0xb76fa(0x2945)]['then'](function(_0x573c70){const _0x2df317=_0xb76fa,_0x46bba3=_0x3f65c0()[_0x2df317(0xc84)](_0x4dbc3c[_0x2df317(0x8a9)],{'id':_0x573c70['id']});_0x46bba3&&_0x3f65c0()['merge'](_0x46bba3,_0x3f65c0()[_0x2df317(0x40e)](_0x573c70[_0x2df317(0x2488)](),_0x3f65c0()['keys'](_0x46bba3))),_0x560923[_0x2df317(0x1c75)]({'title':_0x2df317(0x1ef),'msg':_0x4dbc3c['faxAccount'][_0x2df317(0x19eb)]?_0x4dbc3c[_0x2df317(0x178)][_0x2df317(0x19eb)]+_0x2df317(0x24db):''}),_0x585999(_0x573c70);})[_0xb76fa(0x129e)](function(_0x4ad552){const _0x2c17b0=_0xb76fa;if(_0x4ad552[_0x2c17b0(0x524)]&&_0x4ad552[_0x2c17b0(0x524)][_0x2c17b0(0xcef)]&&_0x4ad552['data']['errors']['length']){_0x4dbc3c[_0x2c17b0(0xcef)]=_0x4ad552['data']['errors']||[{'message':_0x4ad552['toString'](),'type':'api.faxAccount.update'}];for(let _0x22567c=0x0;_0x22567c<_0x4ad552['data'][_0x2c17b0(0xcef)][_0x2c17b0(0x402)];_0x22567c++){_0x560923[_0x2c17b0(0x1980)]({'title':_0x4ad552[_0x2c17b0(0x524)][_0x2c17b0(0xcef)][_0x22567c][_0x2c17b0(0x1142)],'msg':_0x4ad552[_0x2c17b0(0x524)][_0x2c17b0(0xcef)][_0x22567c][_0x2c17b0(0x7fd)]});}}else _0x560923[_0x2c17b0(0x1980)]({'title':_0x4ad552[_0x2c17b0(0x107b)]?_0x2c17b0(0x262a)+_0x4ad552[_0x2c17b0(0x107b)]+_0x2c17b0(0x1315)+_0x4ad552['statusText']:_0x2c17b0(0x111),'msg':_0x4ad552['data']?JSON[_0x2c17b0(0x10bb)](_0x4ad552['data'][_0x2c17b0(0x7fd)]):_0x4ad552['toString']()});});}function _0x2e60a2(_0x2217f1){const _0x20f9b1=_0x1ca259;_0x4dbc3c[_0x20f9b1(0xcef)]=[];const _0x412083=_0x959350[_0x20f9b1(0x1e8a)]()[_0x20f9b1(0x1189)]('Are\x20you\x20sure?')[_0x20f9b1(0x80f)](_0x20f9b1(0x15b7))['ariaLabel']('Delete\x20FaxAccount')['ok'](_0x20f9b1(0x25de))['cancel'](_0x20f9b1(0xcf0))[_0x20f9b1(0x1f27)](_0x2217f1);_0x959350[_0x20f9b1(0x2615)](_0x412083)[_0x20f9b1(0x146b)](function(){const _0x3eac1c=_0x20f9b1;_0x1d93a5[_0x3eac1c(0x178)][_0x3eac1c(0x1fac)]({'id':_0x4dbc3c[_0x3eac1c(0x178)]['id']})['$promise'][_0x3eac1c(0x146b)](function(){const _0x5272b5=_0x3eac1c;_0x3f65c0()[_0x5272b5(0x2640)](_0x4dbc3c[_0x5272b5(0x8a9)],{'id':_0x4dbc3c['faxAccount']['id']}),_0x560923[_0x5272b5(0x1c75)]({'title':_0x5272b5(0x8b2),'msg':(_0x4dbc3c[_0x5272b5(0x178)][_0x5272b5(0x19eb)]||_0x5272b5(0x178))+_0x5272b5(0x23e3)}),_0x585999(_0x4dbc3c[_0x5272b5(0x178)]);})[_0x3eac1c(0x129e)](function(_0x4a53fa){const _0x280a80=_0x3eac1c;if(_0x4a53fa['data']&&_0x4a53fa[_0x280a80(0x524)][_0x280a80(0xcef)]&&_0x4a53fa['data'][_0x280a80(0xcef)][_0x280a80(0x402)]){_0x4dbc3c[_0x280a80(0xcef)]=_0x4a53fa[_0x280a80(0x524)][_0x280a80(0xcef)]||[{'message':_0x4a53fa[_0x280a80(0xd5f)](),'type':_0x280a80(0x1261)}];for(let _0x5615b0=0x0;_0x5615b0<_0x4a53fa['data']['errors'][_0x280a80(0x402)];_0x5615b0++){_0x560923[_0x280a80(0x1980)]({'title':_0x4a53fa[_0x280a80(0x524)][_0x280a80(0xcef)][_0x5615b0][_0x280a80(0x1142)],'msg':_0x4a53fa['data'][_0x280a80(0xcef)][_0x5615b0][_0x280a80(0x7fd)]});}}else _0x560923[_0x280a80(0x1980)]({'title':_0x4a53fa[_0x280a80(0x107b)]?'API:'+_0x4a53fa[_0x280a80(0x107b)]+_0x280a80(0x1315)+_0x4a53fa[_0x280a80(0x167f)]:_0x280a80(0x1261),'msg':_0x4a53fa[_0x280a80(0x524)]?JSON[_0x280a80(0x10bb)](_0x4a53fa[_0x280a80(0x524)][_0x280a80(0x7fd)]):_0x4a53fa[_0x280a80(0x7fd)]||_0x4a53fa['toString']()});});},function(){});}function _0x2606ec(_0x25ceae){return _0x25ceae===null?undefined:new Date(_0x25ceae);}function _0x585999(_0x30c8f9){_0x959350['hide'](_0x30c8f9);}}const _0x1baf09=_0x5631c1;;const _0x21701c=_0x4acfac['p']+_0x313a4d(0x1ac4);;const _0x55b638=_0x4acfac['p']+'src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/close/dialog.html/dialog.html';;const _0x29b3cf=_0x4acfac['p']+'src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/gotoif/dialog.html/dialog.html';;const _0x50b376=_0x4acfac['p']+'src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/gotop/dialog.html/dialog.html';;const _0x367de4=_0x4acfac['p']+'src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/interval/dialog.html/dialog.html';;const _0x4ef11a=_0x4acfac['p']+'src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/noop/dialog.html/dialog.html';;const _0x7a141=_0x4acfac['p']+_0x313a4d(0x18e7);;const _0x591ca4=_0x4acfac['p']+'src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/system/dialog.html/dialog.html';;const _0x42f957=_0x4acfac['p']+'src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/tag/dialog.html/dialog.html';;_0x25e7fb['$inject']=['api',_0x313a4d(0x10e8),_0x313a4d(0x4d8),_0x313a4d(0x1fe4),_0x313a4d(0xa87)];const _0x5135c7={'agent':_0x21701c,'close':_0x55b638,'gotoif':_0x29b3cf,'gotop':_0x50b376,'interval':_0x367de4,'noop':_0x4ef11a,'queue':_0x7a141,'system':_0x591ca4,'tag':_0x42f957};function _0x25e7fb(_0x1f33bd,_0x7e60fb,_0x1e99a8,_0x4f0c1f,_0x58dcc4){const _0x1bc600=_0x313a4d,_0x7e878d=this;_0x7e878d[_0x1bc600(0x2321)]=_0x58dcc4[_0x1bc600(0xb12)](),_0x7e878d[_0x1bc600(0x178)]={},_0x7e878d[_0x1bc600(0x1b9e)]={'count':0x0,'rows':[]},_0x7e878d[_0x1bc600(0x147b)]=[],_0x7e878d[_0x1bc600(0x2514)],_0x7e878d[_0x1bc600(0x1a56)]={'sort':_0x1bc600(0xa6a)},_0x7e878d[_0x1bc600(0x8b0)]=_0x3f65c0()['reject'](_0x3f65c0()['sortBy']([{'app':_0x1bc600(0x1b4e),'appType':_0x1bc600(0x2765),'types':['always',_0x1bc600(0x1802),'list'],'fields':[],'isApp':![]},{'app':_0x1bc600(0x309),'appType':'noop','type':_0x1bc600(0x309),'icon':_0x1bc600(0x1205),'interval':_0x1bc600(0x1559),'required':!![],'isApp':!![],'fields':[{'title':_0x1bc600(0x2193),'name':'value','type':_0x1bc600(0xa8d),'param':0x0}]},{'app':_0x1bc600(0x1d47),'appType':_0x1bc600(0x1d47),'type':_0x1bc600(0x1d47),'icon':_0x1bc600(0x1205),'interval':_0x1bc600(0x1559),'required':!![],'isApp':!![],'extraApi':[{'name':_0x1bc600(0x85b),'field':{'name':_0x1bc600(0x212),'key':_0x1bc600(0x19eb)},'route':_0x1bc600(0x212),'filters':{'fields':_0x1bc600(0x7a7),'sort':_0x1bc600(0x19eb),'nolimit':!![]},'permissions':{'section':0x3f4}}],'fields':[{'title':_0x1bc600(0x1d8b),'name':_0x1bc600(0x23e9),'type':_0x1bc600(0xa8d),'required':!![],'param':0x0},{'title':_0x1bc600(0x182),'name':_0x1bc600(0x212),'type':_0x1bc600(0x28c6),'values':_0x1bc600(0x85b),'value':_0x1bc600(0x1566),'option':_0x1bc600(0x1566),'defaultValues':[{'value':'\x27\x27','option':_0x1bc600(0x13dd)}],'defaultValue':'\x27\x27','param':0x1}]},{'app':_0x1bc600(0x28f4),'appType':_0x1bc600(0x28f4),'type':_0x1bc600(0x151b),'icon':_0x1bc600(0x1205),'interval':'*,*,*,*','isApp':!![],'fields':[{'title':_0x1bc600(0x23d8),'name':_0x1bc600(0xa6a),'type':'number','required':!![],'min':0x0,'param':0x0}]},{'app':_0x1bc600(0x609),'appType':'gotoif','type':_0x1bc600(0x609),'icon':_0x1bc600(0x1205),'interval':_0x1bc600(0x1559),'isApp':!![],'fields':[{'title':'Condition','name':_0x1bc600(0x115f),'type':'text','required':!![],'param':0x0},{'title':_0x1bc600(0x1d78),'name':_0x1bc600(0x1d78),'type':_0x1bc600(0x181),'min':0x1,'required':!![],'param':0x1},{'title':_0x1bc600(0x28e1),'name':_0x1bc600(0x28e1),'type':_0x1bc600(0x181),'min':0x1,'required':!![],'param':0x2}]},{'app':_0x1bc600(0x1c72),'appType':_0x1bc600(0x1c72),'foreignKey':'FaxQueueId','type':_0x1bc600(0x1c72),'icon':'icon-apps','interval':_0x1bc600(0x1559),'isApp':!![],'extraApi':[{'name':_0x1bc600(0x1b32),'field':{'name':'queue','key':_0x1bc600(0x19eb)},'route':_0x1bc600(0x999),'filters':{'fields':'id,name,type','sort':'name','nolimit':!![]},'permissions':{'section':0x385}}],'fields':[{'title':'Queue','name':_0x1bc600(0x1c72),'type':_0x1bc600(0x28c6),'values':'queues','value':_0x1bc600(0x15b0),'option':_0x1bc600(0x15b0),'defaultValue':0x12c,'required':!![],'param':0x0},{'title':'Timeout','name':_0x1bc600(0xa9c),'type':_0x1bc600(0x181),'max':0x20c49b,'min':0x0,'defaultValue':0x12c,'required':!![],'param':0x1}]},{'app':_0x1bc600(0x1755),'appType':'agent','type':_0x1bc600(0x1755),'foreignKey':_0x1bc600(0xea2),'icon':'icon-apps','interval':_0x1bc600(0x1559),'isApp':!![],'extraApi':[{'name':'agents','field':{'name':_0x1bc600(0x1755),'key':'name'},'route':_0x1bc600(0xe7b),'filters':{'fields':_0x1bc600(0x7a7),'sort':_0x1bc600(0x19eb),'role':_0x1bc600(0x1755),'nolimit':!![]},'permissions':{'section':0xca}}],'fields':[{'title':_0x1bc600(0x294a),'name':_0x1bc600(0x1755),'type':_0x1bc600(0x28c6),'values':_0x1bc600(0x23c0),'value':_0x1bc600(0x264f),'option':_0x1bc600(0x264f),'required':!![],'param':0x0},{'title':_0x1bc600(0x5cc),'name':_0x1bc600(0xa9c),'type':_0x1bc600(0x181),'max':0x20c49b,'min':0x0,'required':!![],'defaultValue':0x1e,'param':0x1}]},{'app':'close','appType':_0x1bc600(0xa7c),'type':_0x1bc600(0xa7c),'icon':_0x1bc600(0x1205),'interval':'*,*,*,*','isApp':!![],'fields':[{'title':_0x1bc600(0x673),'name':_0x1bc600(0x9e1),'type':_0x1bc600(0xa8d),'required':!![],'param':0x0}]},{'app':_0x1bc600(0xa80),'appType':'tag','type':'tag','foreignKey':_0x1bc600(0xb0a),'icon':_0x1bc600(0x1205),'interval':_0x1bc600(0x1559),'isApp':!![],'extraApi':[{'name':_0x1bc600(0x1b86),'field':{'name':_0x1bc600(0xa80),'key':'name'},'route':_0x1bc600(0xa80),'filters':{'fields':_0x1bc600(0x7a7),'sort':'name','nolimit':!![]},'permissions':{'section':0x3f0}}],'fields':[{'title':_0x1bc600(0x23a8),'name':'tag','type':'apiselect','values':_0x1bc600(0x1b86),'value':_0x1bc600(0x1a96),'option':_0x1bc600(0x1a96),'required':!![],'param':0x0}]}],[_0x1bc600(0x1873)]),{'isApp':![]}),_0x7e878d['list']={'group':{'name':_0x1bc600(0x156c),'pull':_0x1bc600(0x12cc)},'animation':0x64,'sort':![]},_0x7e878d[_0x1bc600(0x25fc)]={'group':{'name':_0x1bc600(0x916),'put':_0x1bc600(0x156c)},'animation':0x64,'onAdd':function(_0x54ed00){const _0x4fe80d=_0x1bc600;_0xa05377(_0x54ed00,_0x54ed00[_0x4fe80d(0x154d)]);},'onSort':function(){_0x1381fb();}},_0x7e878d[_0x1bc600(0x5aa)]=_0x2e6544,_0x7e878d[_0x1bc600(0x19b4)]=_0x22a0d8,_0x7e878d['getFaxAccountApps']=_0x2bf28d,_0x7e878d['editFaxAccountApp']=_0xa05377,_0x7e878d[_0x1bc600(0x285b)]=_0x38a66e,_0x7e878d[_0x1bc600(0x15e2)]=_0x33bb7a,_0x7e878d[_0x1bc600(0x128a)]=_0x1c21e6,_0x7e878d[_0x1bc600(0x1450)]=_0x1381fb,_0x7e878d['getIntervals']=_0x2bb899;function _0x2e6544(_0x2dcdff,_0x43198a){const _0x5ad3e6=_0x1bc600;_0x7e878d[_0x5ad3e6(0x178)]=_0x2dcdff,_0x7e878d['crudPermissions']=typeof _0x43198a!==_0x5ad3e6(0x2274)?_0x43198a:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x7e878d[_0x5ad3e6(0x25fc)][_0x5ad3e6(0x2862)]=!_0x7e878d[_0x5ad3e6(0x2514)][_0x5ad3e6(0x15f4)]?!![]:![],_0x7e878d['query']['id']=_0x2dcdff['id'],_0x7e878d['query']['isApp']=!![],_0x7e878d['query'][_0x5ad3e6(0x6c5)]=!![],_0x7e878d[_0x5ad3e6(0x24c7)](),_0x7e878d[_0x5ad3e6(0x1c1c)]();}function _0x22a0d8(_0x2253e4,_0x51e89d,_0x5300db){const _0x24cd71=_0x1bc600,_0x1679f2=_0x7e60fb[_0x24cd71(0x1e8a)]()['title'](_0x24cd71(0x1058))[_0x24cd71(0x1cbe)](_0x24cd71(0x16d3)+_0x2253e4[_0x24cd71(0x1873)]+_0x24cd71(0x252f)+'\x20will\x20be\x20deleted.')[_0x24cd71(0x4bd)](_0x24cd71(0x847))[_0x24cd71(0x1f27)](_0x5300db)['ok']('OK')[_0x24cd71(0x6c3)](_0x24cd71(0x39a));_0x7e60fb['show'](_0x1679f2)[_0x24cd71(0x146b)](function(){const _0x1af9f7=_0x24cd71;_0x7e878d[_0x1af9f7(0x1b9e)][_0x1af9f7(0x19c7)][_0x1af9f7(0x1f7d)](_0x51e89d,0x1),_0x1381fb();},function(){const _0x4b472d=_0x24cd71;console[_0x4b472d(0x1a74)](_0x4b472d(0x39a));});}function _0xa05377(_0xa6925a,_0xd399a1){const _0x42c58c=_0x1bc600;if(_0x7e878d['faxAccountApps'][_0x42c58c(0x19c7)]['length']){const _0x448a60=_0x7e878d[_0x42c58c(0x1b9e)]['rows'][_0xd399a1]?_0x7e878d[_0x42c58c(0x1b9e)]['rows'][_0xd399a1]:_0x7e878d[_0x42c58c(0x1b9e)]['rows'][0x0],_0x51e185=(_0x448a60[_0x42c58c(0x8f2)]||_0x448a60[_0x42c58c(0x1873)])['toLowerCase']();_0x7e60fb[_0x42c58c(0x2615)]({'controller':'EditFaxAccountApp'+_0x51e185+'DialogController','controllerAs':'vm','templateUrl':_0x5135c7[_0x51e185],'parent':angular[_0x42c58c(0x1853)](_0x1e99a8[_0x42c58c(0x2586)]),'targetEvent':_0xa6925a,'clickOutsideToClose':!![],'locals':{'faxAccountApp':_0x448a60,'faxAccount':_0x7e878d[_0x42c58c(0x178)],'crudPermissions':_0x7e878d[_0x42c58c(0x2514)]}})['then'](function(_0x22ef8e){const _0x514f11=_0x42c58c;_0x22ef8e&&(_0x22ef8e['id']?_0x7e878d[_0x514f11(0x1b9e)][_0x514f11(0x19c7)][_0xd399a1]=_0x22ef8e:_0x7e878d['faxAccountApps'][_0x514f11(0x19c7)][_0x514f11(0x1f7d)](_0xd399a1,0x0,_0x22ef8e),_0x1381fb());})[_0x42c58c(0x129e)](function(_0x745a95){const _0x1aad12=_0x42c58c;_0x745a95&&_0x4f0c1f[_0x1aad12(0x1980)]({'title':_0x745a95[_0x1aad12(0x107b)]?'API:'+_0x745a95[_0x1aad12(0x107b)]+'\x20-\x20'+_0x745a95[_0x1aad12(0x167f)]:_0x1aad12(0x10a0),'msg':_0x745a95[_0x1aad12(0x524)]?JSON[_0x1aad12(0x10bb)](_0x745a95[_0x1aad12(0x524)]):_0x745a95['toString']()});});}}function _0x38a66e(_0x33ac6c,_0x50df76){const _0x53674c=_0x1bc600;if(_0x7e878d[_0x53674c(0x1b9e)][_0x53674c(0x19c7)][_0x53674c(0x402)]){const _0x4b7b10=_0x7e878d[_0x53674c(0x1b9e)][_0x53674c(0x19c7)][_0x50df76]?_0x7e878d[_0x53674c(0x1b9e)][_0x53674c(0x19c7)][_0x50df76]:_0x7e878d[_0x53674c(0x1b9e)][_0x53674c(0x19c7)][0x0];_0x7e60fb[_0x53674c(0x2615)]({'controller':_0x53674c(0x7ba),'controllerAs':'vm','templateUrl':_0x367de4,'parent':angular[_0x53674c(0x1853)](_0x1e99a8[_0x53674c(0x2586)]),'targetEvent':_0x33ac6c,'clickOutsideToClose':!![],'locals':{'interval':{'interval':_0x4b7b10[_0x53674c(0x2765)],'IntervalId':_0x4b7b10[_0x53674c(0x1ff2)],'application':!![]},'intervals':[],'crudPermissions':_0x7e878d['crudPermissions']}})[_0x53674c(0x146b)](function(_0x412b92){const _0x1af16f=_0x53674c;_0x412b92&&(_0x4b7b10[_0x1af16f(0x2765)]=_0x412b92[_0x1af16f(0x2765)]||_0x1af16f(0x1559),_0x4b7b10[_0x1af16f(0x1ff2)]=_0x412b92[_0x1af16f(0x1ff2)]||null,_0x1381fb());});}}function _0x1381fb(){const _0x3d464b=_0x1bc600;let _0x4558d=0x1,_0x214b2e=[];for(let _0x2c1e5f=0x0;_0x2c1e5f<_0x7e878d[_0x3d464b(0x1b9e)][_0x3d464b(0x19c7)][_0x3d464b(0x402)];_0x2c1e5f++){const _0x274641=_0x7e878d[_0x3d464b(0x1b9e)][_0x3d464b(0x19c7)][_0x2c1e5f],_0xd1112b=[],_0x7f3345=[];_0x274641[_0x3d464b(0x278f)]=_0x274641['interval']!==_0x3d464b(0x1559)?[_0x274641['interval']]:_0x274641['IntervalId']?_0x3f65c0()[_0x3d464b(0x205)](_0x3f65c0()[_0x3d464b(0x1dd6)](_0x7e878d[_0x3d464b(0x278f)][_0x3d464b(0x19c7)],{'IntervalId':_0x274641[_0x3d464b(0x1ff2)]}),_0x3d464b(0x2765)):[],_0x274641[_0x3d464b(0x1ac1)]=_0x7e878d[_0x3d464b(0x178)]['context'],_0x274641['exten']=_0x7e878d[_0x3d464b(0x178)][_0x3d464b(0x19b2)],_0x274641[_0x3d464b(0x1142)]&&(_0x274641[_0x3d464b(0x1142)]=_0x274641[_0x3d464b(0x1142)]['toLowerCase']()),_0x274641['priority']=_0xd1112b[_0x3d464b(0x402)]?_0x3f65c0()[_0x3d464b(0x22f2)](_0xd1112b)['priority']+0x1:_0x4558d,_0x4558d=(_0x7f3345['length']?_0x3f65c0()[_0x3d464b(0x22f2)](_0x7f3345)[_0x3d464b(0xa6a)]:_0x274641[_0x3d464b(0xa6a)])+0x1,_0x214b2e=_0x3f65c0()['concat'](_0x214b2e,_0xd1112b,[_0x274641],_0x7f3345);}_0x1f33bd['faxAccount'][_0x3d464b(0x1711)]({'id':_0x7e878d['faxAccount']['id']},_0x3f65c0()['sortBy'](_0x214b2e,_0x3d464b(0xa6a)))[_0x3d464b(0x2945)][_0x3d464b(0x146b)](function(_0x3cccbb){const _0x375bf1=_0x3d464b;_0x7e878d[_0x375bf1(0x1b9e)][_0x375bf1(0x19c7)]=_0x3cccbb[_0x375bf1(0x19c7)];})[_0x3d464b(0x129e)](function(_0x44defc){console['error'](_0x44defc);});}function _0x507f78(_0x55ef9a){const _0x2fb660=_0x1bc600;_0x7e878d[_0x2fb660(0x1b9e)]=_0x55ef9a||{'count':0x0,'rows':[]};}function _0x2bb899(){const _0x4b6207=_0x1bc600;return _0x1f33bd[_0x4b6207(0x2765)][_0x4b6207(0x16b4)]({'fields':_0x4b6207(0x2749)})['$promise'][_0x4b6207(0x146b)](function(_0x4c1e2b){const _0x3ee814=_0x4b6207;_0x7e878d[_0x3ee814(0x278f)]=_0x4c1e2b;})[_0x4b6207(0x129e)](function(_0xa8b44c){const _0x2d4116=_0x4b6207;console[_0x2d4116(0x1980)](_0xa8b44c);});}function _0x2bf28d(){const _0x597188=_0x1bc600;_0x7e878d['promise']=_0x1f33bd[_0x597188(0x178)]['getApplications'](_0x7e878d['query'],_0x507f78)[_0x597188(0x2945)];}function _0x33bb7a(_0x49a7ed){const _0x47a78b=_0x1bc600;_0x3f65c0()[_0x47a78b(0x2640)](_0x7e878d['faxAccountApps']['rows'],{'id':_0x49a7ed['id']}),_0x1381fb(),_0x4f0c1f['success']({'title':_0x47a78b(0x1c3a),'msg':_0x49a7ed[_0x47a78b(0x1873)]?_0x49a7ed[_0x47a78b(0x1873)]+_0x47a78b(0x23e3):''});}function _0x1c21e6(_0x574ac7){const _0x3ca916=_0x1bc600,_0x4e57e3=_0x7e60fb['confirm']()['title'](_0x3ca916(0x1d9f))[_0x3ca916(0x1cbe)](_0x3ca916(0x16d3)+_0x7e878d[_0x3ca916(0x147b)][_0x3ca916(0x402)]+'\x20selected
    '+_0x3ca916(0xe01))[_0x3ca916(0x4bd)]('delete\x20applications')[_0x3ca916(0x1f27)](_0x574ac7)['ok']('OK')[_0x3ca916(0x6c3)](_0x3ca916(0x39a));_0x7e60fb[_0x3ca916(0x2615)](_0x4e57e3)['then'](function(){const _0x569b62=_0x3ca916;_0x7e878d[_0x569b62(0x147b)]['forEach'](function(_0x4034fd){const _0x1518f4=_0x569b62;_0x3f65c0()['remove'](_0x7e878d[_0x1518f4(0x1b9e)][_0x1518f4(0x19c7)],{'id':_0x4034fd['id']});}),_0x7e878d[_0x569b62(0x147b)]=[],_0x1381fb();});}}const _0x4e06dc=_0x25e7fb;;_0x2826a1['$inject']=[_0x313a4d(0x10e8),'$q',_0x313a4d(0x1fe4),_0x313a4d(0x247f),_0x313a4d(0x178),_0x313a4d(0x8a9),'realtime',_0x313a4d(0x214b),_0x313a4d(0xa87),_0x313a4d(0x2514)];function _0x2826a1(_0x1ba5db,_0x231d5d,_0x51f29b,_0x225ade,_0x8e07b1,_0x513fdb,_0x442154,_0x527d9b,_0x279b8e,_0x3a20be){const _0x1191b9=_0x313a4d,_0x2ccba6=this;_0x2ccba6[_0x1191b9(0x2321)]=_0x279b8e[_0x1191b9(0xb12)](),_0x2ccba6[_0x1191b9(0x178)]=_0x8e07b1,_0x2ccba6[_0x1191b9(0x2514)]=_0x3a20be,_0x2ccba6[_0x1191b9(0xfc4)]=_0x442154,_0x2ccba6['items']=[],_0x2ccba6[_0x1191b9(0xc4e)]=[],_0x2ccba6['selectedItems']=[],_0x2ccba6['startingAllowedItems']=[],_0x2ccba6[_0x1191b9(0xa65)]=[],_0x2ccba6[_0x1191b9(0x132)]=![],_0x2ccba6[_0x1191b9(0x3d4)]=_0x528d74,_0x2ccba6[_0x1191b9(0x14c2)]=_0x4f3459,_0x2ccba6['closeDialog']=_0x181871,_0x2ccba6[_0x1191b9(0x1f8a)]={'readOnly':!_0x2ccba6['crudPermissions'][_0x1191b9(0x15f4)],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':'name','line1':_0x1191b9(0x286a),'line2':['name',_0x1191b9(0x113f)],'line3':'','labelAll':_0x527d9b[_0x1191b9(0xde)](_0x1191b9(0x2050)),'labelSelected':_0x527d9b['instant'](_0x1191b9(0xf73)),'transferCallback':function(){const _0x2965b4=_0x1191b9,_0x3ac593=_0x3f65c0()[_0x2965b4(0x1883)](_0x2ccba6[_0x2965b4(0xa65)],_0x2ccba6[_0x2965b4(0x1ecf)],'id');_0x2ccba6[_0x2965b4(0x132)]=_0x3f65c0()[_0x2965b4(0x2635)](_0x3ac593)?![]:!![];}};function _0x528d74(){const _0x56cf28=_0x1191b9;return _0x279b8e[_0x56cf28(0x23e0)](_0x56cf28(0x174b))?_0x5b6093()[_0x56cf28(0x129e)](function(_0x362d5d){const _0x415bb6=_0x56cf28;_0x51f29b[_0x415bb6(0x1980)]({'title':_0x362d5d[_0x415bb6(0x107b)]?'API:'+_0x362d5d[_0x415bb6(0x107b)]+_0x415bb6(0x1315)+_0x362d5d[_0x415bb6(0x167f)]:_0x415bb6(0x557),'msg':_0x362d5d[_0x415bb6(0x107b)]?JSON[_0x415bb6(0x10bb)](_0x362d5d[_0x415bb6(0x524)]):_0x362d5d['toString']()});}):_0x45d15()['then'](function(_0x2688e2){const _0xd7076a=_0x56cf28;return _0x2ccba6[_0xd7076a(0x2146)]=_0x2688e2,_0x5b6093();})[_0x56cf28(0x129e)](function(_0x5c33eb){const _0x36472c=_0x56cf28;_0x51f29b[_0x36472c(0x1980)]({'title':_0x5c33eb[_0x36472c(0x107b)]?_0x36472c(0x262a)+_0x5c33eb[_0x36472c(0x107b)]+_0x36472c(0x1315)+_0x5c33eb[_0x36472c(0x167f)]:_0x36472c(0x557),'msg':_0x5c33eb[_0x36472c(0x107b)]?JSON[_0x36472c(0x10bb)](_0x5c33eb[_0x36472c(0x524)]):_0x5c33eb[_0x36472c(0xd5f)]()});});}function _0x45d15(){return _0x231d5d(function(_0x2c0a17,_0x514318){const _0x3cf38e=a0_0x3bb9;_0x225ade[_0x3cf38e(0x1366)]['get']({'userProfileId':_0x2ccba6['currentUser'][_0x3cf38e(0x209a)],'name':_0x3cf38e(0xca8)})[_0x3cf38e(0x2945)][_0x3cf38e(0x146b)](function(_0x197910){const _0x6cddd4=_0x3cf38e,_0x158903=_0x197910&&_0x197910[_0x6cddd4(0x19c7)]?_0x197910[_0x6cddd4(0x19c7)][0x0]:null;_0x2c0a17(_0x158903);})[_0x3cf38e(0x129e)](function(_0x53598c){_0x514318(_0x53598c);});});}function _0x5b6093(){return _0x231d5d(function(_0x3c7927,_0x35f702){const _0x4437de=a0_0x3bb9;return _0x18ffa3()[_0x4437de(0x146b)](function(_0x2555c7){const _0x36b6d6=_0x4437de;return _0x2ccba6['items']=_0x2555c7[_0x36b6d6(0x19c7)]?_0x2555c7[_0x36b6d6(0x19c7)]:[],_0x279b8e[_0x36b6d6(0x23e0)](_0x36b6d6(0x174b))?_0x2555c7:_0x2ccba6['section']?_0x2ccba6[_0x36b6d6(0x2146)]['autoAssociation']?_0x2555c7:_0x59ce3b():null;})['then'](function(_0xce08c7){const _0x45b8d6=_0x4437de,_0x272e4a=_0xce08c7&&_0xce08c7[_0x45b8d6(0x19c7)]?_0xce08c7[_0x45b8d6(0x19c7)]:[];return _0x2ccba6[_0x45b8d6(0xc4e)]=_0x3f65c0()[_0x45b8d6(0x205)](_0x272e4a,function(_0x5d9ffe){const _0x25c7b5=_0x45b8d6;return _0x3f65c0()[_0x25c7b5(0xc84)](_0x2ccba6[_0x25c7b5(0x1fd6)],{'id':_0x279b8e[_0x25c7b5(0x23e0)](_0x25c7b5(0x174b))||_0x2ccba6[_0x25c7b5(0x2146)][_0x25c7b5(0x11d2)]?_0x5d9ffe['id']:_0x5d9ffe[_0x25c7b5(0x18b8)]});}),_0x2ccba6[_0x45b8d6(0x2e8)]=angular[_0x45b8d6(0x235a)](_0x2ccba6[_0x45b8d6(0xc4e)]),_0x2ccba6[_0x45b8d6(0x1fd6)][_0x45b8d6(0x1df5)](function(_0x2b7b80){const _0xcfd705=_0x45b8d6,_0x1f3f8b=_0x3f65c0()[_0xcfd705(0xc84)](_0x2ccba6[_0xcfd705(0xc4e)],{'id':_0x2b7b80['id']});_0x279b8e[_0xcfd705(0x23e0)](_0xcfd705(0x174b))?_0x2b7b80[_0xcfd705(0x146f)]=!![]:_0x2b7b80[_0xcfd705(0x146f)]=typeof _0x1f3f8b!==_0xcfd705(0x2274)?!![]:![];}),_0x442f11();})[_0x4437de(0x146b)](function(_0x2d75a7){const _0x366368=_0x4437de,_0x4a3bd4=_0x2d75a7&&_0x2d75a7[_0x366368(0x19c7)]?_0x2d75a7[_0x366368(0x19c7)]:[];_0x2ccba6['selectedItems']=_0x3f65c0()['map'](_0x4a3bd4,function(_0x2f5dbd){const _0x5b3eeb=_0x366368,_0x1f256a=_0x3f65c0()[_0x5b3eeb(0xc84)](_0x2ccba6[_0x5b3eeb(0x1fd6)],{'id':_0x2f5dbd['id']});return _0x1f256a['penalty']=_0x2f5dbd[_0x5b3eeb(0x10d)]?_0x5b3eeb(0x2505)+_0x2f5dbd[_0x5b3eeb(0x10d)]['penalty']:'',_0x1f256a[_0x5b3eeb(0x113f)]=typeof _0x2f5dbd[_0x5b3eeb(0x113f)]!=='undefined'?'<'+_0x2f5dbd[_0x5b3eeb(0x113f)]+'>':'',_0x1f256a;}),_0x2ccba6[_0x366368(0xa65)]=angular[_0x366368(0x235a)](_0x2ccba6[_0x366368(0x1ecf)]),_0x2ccba6[_0x366368(0x1f8a)]['selectedItems']=_0x2ccba6[_0x366368(0x1ecf)],_0x2ccba6['dualMultiselectOptions'][_0x366368(0x1fd6)]=_0x3f65c0()[_0x366368(0x2796)](_0x2ccba6['allowedItems'],_0x2ccba6[_0x366368(0x1f8a)]['selectedItems'],'id'),_0x3c7927();})[_0x4437de(0x129e)](function(_0x1916d7){_0x35f702(_0x1916d7);});});}function _0x59ce3b(){return _0x231d5d(function(_0x4f2680,_0x5dc2f3){const _0x421685=a0_0x3bb9;return _0x225ade[_0x421685(0xdcc)][_0x421685(0x16b4)]({'sectionId':_0x2ccba6[_0x421685(0x2146)]['id'],'nolimit':!![]})['$promise'][_0x421685(0x146b)](function(_0x2e8fad){_0x4f2680(_0x2e8fad);})[_0x421685(0x129e)](function(_0x173245){_0x5dc2f3(_0x173245);});});}function _0x442f11(){return _0x231d5d(function(_0x1157a5,_0x2577c9){const _0x188f07=a0_0x3bb9;return _0x225ade[_0x188f07(0x178)]['getAgents']({'id':_0x2ccba6['faxAccount']['id'],'fields':_0x188f07(0x1569),'nolimit':!![],'role':_0x188f07(0x1755)})[_0x188f07(0x2945)]['then'](function(_0x5941b0){_0x1157a5(_0x5941b0);})[_0x188f07(0x129e)](function(_0x4f304a){_0x2577c9(_0x4f304a);});});}function _0x18ffa3(){return _0x231d5d(function(_0x245ff7,_0x405b50){const _0x570479=a0_0x3bb9;return _0x225ade[_0x570479(0xe7b)]['get']({'fields':_0x570479(0x1569),'nolimit':!![],'role':_0x570479(0x1755)})['$promise'][_0x570479(0x146b)](function(_0x269e17){_0x245ff7(_0x269e17);})[_0x570479(0x129e)](function(_0x5c3670){_0x405b50(_0x5c3670);});});}function _0x4f6739(_0x1bc9bb){return _0x231d5d(function(_0x164e4d,_0x1b5956){const _0x7054bb=a0_0x3bb9;_0x3f65c0()[_0x7054bb(0x2635)](_0x1bc9bb)?_0x164e4d():_0x225ade[_0x7054bb(0x178)][_0x7054bb(0x135e)]({'id':_0x2ccba6['faxAccount']['id'],'ids':_0x3f65c0()['map'](_0x1bc9bb,'id')})[_0x7054bb(0x2945)][_0x7054bb(0x146b)](function(){_0x164e4d();})[_0x7054bb(0x129e)](function(_0x469d17){_0x1b5956(_0x469d17);});});}function _0x1a6758(_0x38372f){return _0x231d5d(function(_0x35e3ad,_0x20cd03){const _0x1434e9=a0_0x3bb9;_0x3f65c0()['isEmpty'](_0x38372f)?_0x35e3ad():_0x225ade[_0x1434e9(0x178)][_0x1434e9(0x1f53)]({'id':_0x2ccba6['faxAccount']['id'],'ids':_0x3f65c0()[_0x1434e9(0x205)](_0x38372f,'id')})['$promise'][_0x1434e9(0x146b)](function(){_0x35e3ad();})[_0x1434e9(0x129e)](function(_0x9285aa){_0x20cd03(_0x9285aa);});});}function _0x4f3459(){const _0x5a0f0c=_0x1191b9,_0x532cbc=_0x3f65c0()['differenceBy'](_0x2ccba6[_0x5a0f0c(0xa65)],_0x2ccba6[_0x5a0f0c(0x1ecf)],'id'),_0x918c5b=_0x3f65c0()[_0x5a0f0c(0x2796)](_0x2ccba6['selectedItems'],_0x2ccba6['startingSelectedItems'],'id');return _0x1a6758(_0x532cbc)[_0x5a0f0c(0x146b)](function(){return _0x4f6739(_0x918c5b);})[_0x5a0f0c(0x146b)](function(){const _0x440f0c=_0x5a0f0c;_0x2ccba6[_0x440f0c(0x132)]=![],_0x2ccba6[_0x440f0c(0x2e8)]=angular[_0x440f0c(0x235a)](_0x2ccba6[_0x440f0c(0xc4e)]),_0x2ccba6[_0x440f0c(0xa65)]=angular[_0x440f0c(0x235a)](_0x2ccba6[_0x440f0c(0x1ecf)]),_0x51f29b['success']({'title':'SUCCESS','msg':_0x440f0c(0x26be)});})[_0x5a0f0c(0x129e)](function(_0x5e2b7f){const _0x24491f=_0x5a0f0c;_0x51f29b['error']({'title':_0x5e2b7f[_0x24491f(0x107b)]?_0x24491f(0x262a)+_0x5e2b7f[_0x24491f(0x107b)]+_0x24491f(0x1315)+_0x5e2b7f[_0x24491f(0x167f)]:_0x24491f(0xa56),'msg':_0x5e2b7f[_0x24491f(0x107b)]?JSON[_0x24491f(0x10bb)](_0x5e2b7f[_0x24491f(0x524)]):_0x5e2b7f[_0x24491f(0xd5f)]()});});}function _0x181871(){const _0x1e3177=_0x1191b9;_0x1ba5db[_0x1e3177(0x2458)]();}}const _0x363d2c=_0x2826a1;;_0xa09dd0[_0x313a4d(0x11c2)]=[_0x313a4d(0x10e8),'$q',_0x313a4d(0x1fe4),_0x313a4d(0x218a),_0x313a4d(0x178),_0x313a4d(0x247f),_0x313a4d(0xa87),_0x313a4d(0x2514)];function _0xa09dd0(_0x3daca9,_0x450587,_0x425bdd,_0x36968c,_0xb67942,_0x9d7818,_0x2e85f2,_0x31e558){const _0x4d84ee=_0x313a4d,_0x3a9af6=this;_0x3a9af6[_0x4d84ee(0x2321)]=_0x2e85f2[_0x4d84ee(0xb12)](),_0x3a9af6['errors']=[],_0x3a9af6[_0x4d84ee(0x1189)]=_0x4d84ee(0x196b)+(_0x36968c[_0x4d84ee(0x8f2)]||_0x36968c['app'])['toUpperCase'](),_0x3a9af6[_0x4d84ee(0x1755)]=angular['copy'](_0x36968c),_0x3a9af6[_0x4d84ee(0x2514)]=_0x31e558,_0x3a9af6[_0x4d84ee(0x855)]={};if(_0x3a9af6[_0x4d84ee(0x1755)][_0x4d84ee(0x168a)])switch(_0x3a9af6[_0x4d84ee(0x1755)][_0x4d84ee(0x8f2)]?_0x3a9af6[_0x4d84ee(0x1755)][_0x4d84ee(0x8f2)][_0x4d84ee(0x256e)]():_0x3a9af6[_0x4d84ee(0x1755)][_0x4d84ee(0x1873)][_0x4d84ee(0x256e)]()){case _0x4d84ee(0x1802):break;case _0x4d84ee(0xeaa):{const _0x1899cc=_0x3a9af6[_0x4d84ee(0x1755)][_0x4d84ee(0x168a)][_0x4d84ee(0x10c8)](',');_0x3a9af6[_0x4d84ee(0x1755)][_0x4d84ee(0x2293)]=_0x1899cc[0x0],_0x3a9af6[_0x4d84ee(0x1755)]['language']=_0x1899cc[0x1],_0x3a9af6['agent'][_0x4d84ee(0xaf3)]=_0x1899cc[_0x4d84ee(0x1298)](0x2,_0x1899cc['length'])['join'](',');}break;case _0x4d84ee(0xa46):{const _0x494809=_0x3a9af6['agent'][_0x4d84ee(0x168a)][_0x4d84ee(0x10c8)](',');_0x3a9af6[_0x4d84ee(0x1755)]['projectId']=_0x494809[0x0],_0x3a9af6[_0x4d84ee(0x1755)]['clientEmail']=_0x494809[0x1],_0x3a9af6['agent'][_0x4d84ee(0x2217)]=_0x494809[0x2],_0x3a9af6['agent']['language']=_0x494809[0x3],_0x3a9af6['agent'][_0x4d84ee(0xaf3)]=_0x494809[_0x4d84ee(0x1298)](0x4,_0x494809['length'])[_0x4d84ee(0xb47)](',');}break;case _0x4d84ee(0x17d6):{const _0xc7d089=_0x3a9af6['agent'][_0x4d84ee(0x168a)]['split'](',');_0x3a9af6[_0x4d84ee(0x1755)][_0x4d84ee(0x1651)]=_0xc7d089[0x0],_0x3a9af6[_0x4d84ee(0x1755)][_0x4d84ee(0x252)]=_0xc7d089[0x1],_0x3a9af6[_0x4d84ee(0x1755)]['lexregion']=_0xc7d089[0x2],_0x3a9af6[_0x4d84ee(0x1755)][_0x4d84ee(0x8dd)]=_0xc7d089[0x3],_0x3a9af6[_0x4d84ee(0x1755)][_0x4d84ee(0xaf3)]=_0xc7d089['slice'](0x4,_0xc7d089['length'])[_0x4d84ee(0xb47)](',');}break;case'autoreply':{const _0x3b660f=_0x3a9af6[_0x4d84ee(0x1755)]['appdata'][_0x4d84ee(0x10c8)](',');_0x3a9af6[_0x4d84ee(0x1755)][_0x4d84ee(0x583)]=isNaN(_0x3b660f[0x0])?_0x3b660f[0x0]:parseInt(_0x3b660f[0x0],0xa),_0x3a9af6[_0x4d84ee(0x1755)][_0x4d84ee(0xa8d)]=_0x3b660f[_0x4d84ee(0x1298)](0x1,_0x3b660f[_0x4d84ee(0x402)])[_0x4d84ee(0xb47)](',');}break;case _0x4d84ee(0x7fd):_0x3a9af6[_0x4d84ee(0x1755)]['text']=_0x3a9af6[_0x4d84ee(0x1755)][_0x4d84ee(0x168a)];break;case'set':_0x3a9af6[_0x4d84ee(0x1755)]['name']=_0x3a9af6['agent'][_0x4d84ee(0x168a)][_0x4d84ee(0x10c8)]('=')[0x0],_0x3a9af6[_0x4d84ee(0x1755)]['value']=_0x3a9af6['agent'][_0x4d84ee(0x168a)]['split']('=')[0x1];break;case _0x4d84ee(0x1ecb):_0x3a9af6[_0x4d84ee(0x1755)][_0x4d84ee(0x9e0)]=_0x3a9af6[_0x4d84ee(0x1755)][_0x4d84ee(0x168a)];break;default:{const _0x1b3056=_0x3a9af6['agent'][_0x4d84ee(0x168a)][_0x4d84ee(0x10c8)](',');_0x3a9af6['agent'][_0x4d84ee(0x1755)]=_0x3f65c0()['isEmpty'](_0x1b3056[0x0])?_0x1b3056[0x0]:isNaN(_0x1b3056[0x0])?_0x1b3056[0x0]:parseInt(_0x1b3056[0x0],0xa),_0x3a9af6[_0x4d84ee(0x1755)][_0x4d84ee(0xa9c)]=_0x3f65c0()[_0x4d84ee(0x2635)](_0x1b3056[0x1])?_0x1b3056[0x1]:isNaN(_0x1b3056[0x1])?_0x1b3056[0x1]:parseInt(_0x1b3056[0x1],0xa);}break;}else _0x3a9af6[_0x4d84ee(0x1755)][_0x4d84ee(0xa9c)]=0x1e;_0x3a9af6[_0x4d84ee(0x1755)][_0x4d84ee(0x1142)]&&_0x3a9af6[_0x4d84ee(0x1755)][_0x4d84ee(0x1142)][_0x4d84ee(0x256e)]()===_0x4d84ee(0xc9c)&&_0x3a9af6[_0x4d84ee(0x1755)][_0x4d84ee(0x8f2)]['toLowerCase']()===_0x4d84ee(0x3bb)&&(_0x3a9af6[_0x4d84ee(0x1755)][_0x4d84ee(0x1e12)]=_0x3a9af6[_0x4d84ee(0x1755)][_0x4d84ee(0x1d55)]?_0x3a9af6[_0x4d84ee(0x1755)]['phone'][_0x4d84ee(0x10c8)]('$')[0x0]:undefined,_0x3a9af6[_0x4d84ee(0x1755)]['callerId']=_0x3a9af6['agent'][_0x4d84ee(0x11be)]?_0x4d84ee(0x1b60)+_0x3a9af6[_0x4d84ee(0x1755)][_0x4d84ee(0x11be)]:undefined);_0x3a9af6[_0x4d84ee(0x212c)]=_0x19e453,_0x3a9af6[_0x4d84ee(0x13f3)]=_0x36936a,_0x2e85f2[_0x4d84ee(0x23e0)](_0x4d84ee(0x174b))?_0x9d7818[_0x4d84ee(0xe7b)][_0x4d84ee(0x16b4)]({'fields':_0x4d84ee(0x7a7),'sort':'name','role':_0x4d84ee(0x1755),'nolimit':'true'})[_0x4d84ee(0x2945)]['then'](function(_0xc622d5){const _0x5b76a8=_0x4d84ee;_0x3a9af6[_0x5b76a8(0x23c0)]=_0xc622d5['rows']||[];})[_0x4d84ee(0x129e)](function(_0x3729d4){const _0x3cc5bb=_0x4d84ee;_0x425bdd[_0x3cc5bb(0x1980)]({'title':_0x3729d4[_0x3cc5bb(0x107b)]?_0x3cc5bb(0x262a)+_0x3729d4['status']+_0x3cc5bb(0x1315)+_0x3729d4[_0x3cc5bb(0x167f)]:_0x3cc5bb(0x557),'msg':_0x3729d4[_0x3cc5bb(0x524)]?JSON[_0x3cc5bb(0x10bb)](_0x3729d4[_0x3cc5bb(0x524)]):_0x3729d4[_0x3cc5bb(0xd5f)]()});}):_0x9d7818['user'][_0x4d84ee(0x16b4)]({'fields':_0x4d84ee(0x7a7),'sort':_0x4d84ee(0x19eb),'role':_0x4d84ee(0x1755),'nolimit':'true'})['$promise'][_0x4d84ee(0x146b)](function(_0x47ea94){const _0x4dd5b5=_0x4d84ee;_0x3a9af6[_0x4dd5b5(0x23c0)]=_0x47ea94[_0x4dd5b5(0x19c7)]||[];})[_0x4d84ee(0x146b)](function(){const _0x1455f8=_0x4d84ee;return _0x9d7818[_0x1455f8(0x1366)]['get']({'userProfileId':_0x3a9af6[_0x1455f8(0x2321)][_0x1455f8(0x209a)],'sectionId':0xca})[_0x1455f8(0x2945)];})[_0x4d84ee(0x146b)](function(_0x350fbd){const _0xd56a0=_0x4d84ee,_0x517b34=_0x350fbd&&_0x350fbd[_0xd56a0(0x19c7)]?_0x350fbd[_0xd56a0(0x19c7)][0x0]:null;if(!_0x517b34){const _0x490221=[];let _0x433cf9=null;_0x3a9af6[_0xd56a0(0x1755)]&&(_0x433cf9=_0x3f65c0()[_0xd56a0(0xc84)](_0x3a9af6[_0xd56a0(0x23c0)],{'name':_0x3a9af6[_0xd56a0(0x1755)][_0xd56a0(0x1755)]}));for(let _0x3e9d95=0x0;_0x3e9d95<_0x3a9af6[_0xd56a0(0x23c0)][_0xd56a0(0x402)];_0x3e9d95++){_0x433cf9&&_0x3a9af6[_0xd56a0(0x23c0)][_0x3e9d95]['id']===_0x433cf9['id']&&(_0x3a9af6[_0xd56a0(0x23c0)][_0x3e9d95]['canSelect']=![],_0x490221[_0xd56a0(0x1f47)](_0x3a9af6['agents'][_0x3e9d95]));}_0x3a9af6[_0xd56a0(0x23c0)]=_0x490221;}else{if(!_0x517b34[_0xd56a0(0x11d2)])return _0x9d7818['userProfileResource']['get']({'sectionId':_0x517b34['id']})[_0xd56a0(0x2945)][_0xd56a0(0x146b)](function(_0x72fe1c){const _0x2dcd81=_0xd56a0,_0x154664=_0x3f65c0()[_0x2dcd81(0x205)](_0x72fe1c['rows'],function(_0x301a34){const _0x1d22af=_0x2dcd81;return _0x3f65c0()[_0x1d22af(0xc84)](_0x3a9af6['agents'],{'id':_0x301a34['resourceId']});});let _0x299641=null;_0x3a9af6[_0x2dcd81(0x1755)]&&(_0x299641=_0x3f65c0()[_0x2dcd81(0xc84)](_0x3a9af6[_0x2dcd81(0x23c0)],{'name':_0x3a9af6[_0x2dcd81(0x1755)][_0x2dcd81(0x1755)]}));if(_0x299641&&!_0x3f65c0()[_0x2dcd81(0x1360)](_0x154664,['id',_0x299641['id']])){const _0x43b39e=_0x3f65c0()[_0x2dcd81(0xc84)](_0x3a9af6[_0x2dcd81(0x23c0)],{'id':_0x299641['id']});_0x43b39e['canSelect']=![],_0x154664[_0x2dcd81(0x1f47)](_0x43b39e);}_0x3a9af6[_0x2dcd81(0x23c0)]=_0x154664;});}})[_0x4d84ee(0x129e)](function(_0xef7488){const _0x1f1a43=_0x4d84ee;_0x425bdd['error']({'title':_0xef7488['status']?_0x1f1a43(0x262a)+_0xef7488['status']+_0x1f1a43(0x1315)+_0xef7488[_0x1f1a43(0x167f)]:_0x1f1a43(0x788),'msg':_0xef7488[_0x1f1a43(0x524)]?JSON[_0x1f1a43(0x10bb)](_0xef7488[_0x1f1a43(0x524)]):_0xef7488[_0x1f1a43(0xd5f)]()});});function _0x19e453(){const _0x2f5f1d=_0x4d84ee;_0x3a9af6[_0x2f5f1d(0xcef)]=[];const _0x5d6e68=[];_0x3a9af6[_0x2f5f1d(0x1755)][_0x2f5f1d(0x1142)]&&_0x3a9af6['agent'][_0x2f5f1d(0x1142)]['toLowerCase']()===_0x2f5f1d(0xc9c)&&_0x3a9af6['agent'][_0x2f5f1d(0x8f2)]===_0x2f5f1d(0x118b)&&(_0x3a9af6[_0x2f5f1d(0x1755)][_0x2f5f1d(0x1d55)]=_0xb67942[_0x2f5f1d(0x1274)]?(_0x3a9af6[_0x2f5f1d(0x1755)][_0x2f5f1d(0x1e12)]||'')+_0x2f5f1d(0x2147)+_0xb67942[_0x2f5f1d(0x1274)]+'}':(_0x3a9af6[_0x2f5f1d(0x1755)][_0x2f5f1d(0x1e12)]||'')+'${EXTEN}',_0xb67942[_0x2f5f1d(0x1425)]!==_0x2f5f1d(0x1642)?_0x3a9af6[_0x2f5f1d(0x1755)][_0x2f5f1d(0xa08)][_0x2f5f1d(0x172b)](_0x2f5f1d(0x1ea4))<0x0&&(_0x3a9af6[_0x2f5f1d(0x1755)][_0x2f5f1d(0xa08)]+=_0x2f5f1d(0x1ea4)):_0x3a9af6[_0x2f5f1d(0x1755)][_0x2f5f1d(0xa08)]=_0x3a9af6[_0x2f5f1d(0x1755)][_0x2f5f1d(0xa08)]['replace'](_0x2f5f1d(0x1ea4),''));const _0x5c9a23=_0x3f65c0()['find'](_0x3a9af6['agents'],{'name':_0x3a9af6[_0x2f5f1d(0x1755)][_0x2f5f1d(0x1755)]});_0x5c9a23&&(_0x3a9af6[_0x2f5f1d(0x1755)][_0x2f5f1d(0xea2)]=_0x5c9a23['id']);if(_0x3a9af6[_0x2f5f1d(0x1755)][_0x2f5f1d(0x8f2)]&&_0x3a9af6[_0x2f5f1d(0x1755)][_0x2f5f1d(0x8f2)]===_0x2f5f1d(0x1802)){}else switch((_0x3a9af6['agent'][_0x2f5f1d(0x1873)]||_0x3a9af6[_0x2f5f1d(0x1755)][_0x2f5f1d(0x8f2)])[_0x2f5f1d(0x256e)]()){case'set':_0x3a9af6['agent'][_0x2f5f1d(0x168a)]=_0x3a9af6[_0x2f5f1d(0x1755)][_0x2f5f1d(0x19eb)]+'='+_0x3a9af6[_0x2f5f1d(0x1755)][_0x2f5f1d(0x175d)];break;case _0x2f5f1d(0x1802):break;default:_0x5d6e68[0x0]=_0x3a9af6[_0x2f5f1d(0x1755)][_0x2f5f1d(0x1755)],_0x5d6e68[0x1]=_0x3a9af6[_0x2f5f1d(0x1755)]['timeout'],_0x3a9af6['agent'][_0x2f5f1d(0x168a)]=_0x5d6e68[_0x2f5f1d(0xb47)](',');}_0x36936a(_0x3a9af6[_0x2f5f1d(0x1755)]);}function _0x36936a(_0x4979ca){const _0x1d789f=_0x4d84ee;_0x3daca9[_0x1d789f(0x2458)](_0x4979ca);}}const _0x4aa807=_0xa09dd0;;_0x4b4499[_0x313a4d(0x11c2)]=[_0x313a4d(0x10e8),'$q',_0x313a4d(0x1fe4),_0x313a4d(0x218a),'faxAccount',_0x313a4d(0x247f),'Auth',_0x313a4d(0x2514)];function _0x4b4499(_0xd74383,_0x1bc9a2,_0x1f85c8,_0x559620,_0x5c1887,_0x49745d,_0x1d2a88,_0x831907){const _0x5a1ec6=_0x313a4d,_0x13ad03=this;_0x13ad03[_0x5a1ec6(0x2321)]=_0x1d2a88[_0x5a1ec6(0xb12)](),_0x13ad03[_0x5a1ec6(0xcef)]=[],_0x13ad03[_0x5a1ec6(0x1189)]=_0x5a1ec6(0x196b)+(_0x559620['appType']||_0x559620['app'])[_0x5a1ec6(0x1c37)](),_0x13ad03[_0x5a1ec6(0xa7c)]=angular[_0x5a1ec6(0x235a)](_0x559620),_0x13ad03[_0x5a1ec6(0x2514)]=_0x831907,_0x13ad03[_0x5a1ec6(0x855)]={};if(_0x13ad03[_0x5a1ec6(0xa7c)][_0x5a1ec6(0x168a)])switch(_0x13ad03[_0x5a1ec6(0xa7c)][_0x5a1ec6(0x8f2)]?_0x13ad03[_0x5a1ec6(0xa7c)][_0x5a1ec6(0x8f2)]['toLowerCase']():_0x13ad03[_0x5a1ec6(0xa7c)][_0x5a1ec6(0x1873)][_0x5a1ec6(0x256e)]()){case _0x5a1ec6(0x1802):break;case _0x5a1ec6(0xeaa):{const _0x1ba64f=_0x13ad03[_0x5a1ec6(0xa7c)][_0x5a1ec6(0x168a)][_0x5a1ec6(0x10c8)](',');_0x13ad03[_0x5a1ec6(0xa7c)][_0x5a1ec6(0x2293)]=_0x1ba64f[0x0],_0x13ad03[_0x5a1ec6(0xa7c)][_0x5a1ec6(0x90b)]=_0x1ba64f[0x1],_0x13ad03[_0x5a1ec6(0xa7c)][_0x5a1ec6(0xaf3)]=_0x1ba64f['slice'](0x2,_0x1ba64f['length'])[_0x5a1ec6(0xb47)](',');}break;case _0x5a1ec6(0xa46):{const _0x2bdf42=_0x13ad03['close'][_0x5a1ec6(0x168a)][_0x5a1ec6(0x10c8)](',');_0x13ad03[_0x5a1ec6(0xa7c)][_0x5a1ec6(0x153a)]=_0x2bdf42[0x0],_0x13ad03[_0x5a1ec6(0xa7c)]['clientEmail']=_0x2bdf42[0x1],_0x13ad03['close'][_0x5a1ec6(0x2217)]=_0x2bdf42[0x2],_0x13ad03[_0x5a1ec6(0xa7c)][_0x5a1ec6(0x90b)]=_0x2bdf42[0x3],_0x13ad03[_0x5a1ec6(0xa7c)]['welcomemessage']=_0x2bdf42['slice'](0x4,_0x2bdf42[_0x5a1ec6(0x402)])[_0x5a1ec6(0xb47)](',');}break;case _0x5a1ec6(0x17d6):{const _0x410511=_0x13ad03[_0x5a1ec6(0xa7c)][_0x5a1ec6(0x168a)][_0x5a1ec6(0x10c8)](',');_0x13ad03[_0x5a1ec6(0xa7c)][_0x5a1ec6(0x1651)]=_0x410511[0x0],_0x13ad03['close'][_0x5a1ec6(0x252)]=_0x410511[0x1],_0x13ad03['close'][_0x5a1ec6(0x1039)]=_0x410511[0x2],_0x13ad03[_0x5a1ec6(0xa7c)]['botname']=_0x410511[0x3],_0x13ad03[_0x5a1ec6(0xa7c)][_0x5a1ec6(0xaf3)]=_0x410511[_0x5a1ec6(0x1298)](0x4,_0x410511['length'])[_0x5a1ec6(0xb47)](',');}break;case _0x5a1ec6(0x1713):{const _0x520f8c=_0x13ad03[_0x5a1ec6(0xa7c)][_0x5a1ec6(0x168a)][_0x5a1ec6(0x10c8)](',');_0x13ad03[_0x5a1ec6(0xa7c)][_0x5a1ec6(0x583)]=isNaN(_0x520f8c[0x0])?_0x520f8c[0x0]:parseInt(_0x520f8c[0x0],0xa),_0x13ad03[_0x5a1ec6(0xa7c)][_0x5a1ec6(0xa8d)]=_0x520f8c[_0x5a1ec6(0x1298)](0x1,_0x520f8c[_0x5a1ec6(0x402)])['join'](',');}break;case _0x5a1ec6(0x7fd):_0x13ad03[_0x5a1ec6(0xa7c)][_0x5a1ec6(0xa8d)]=_0x13ad03[_0x5a1ec6(0xa7c)][_0x5a1ec6(0x168a)];break;case _0x5a1ec6(0x26ba):_0x13ad03[_0x5a1ec6(0xa7c)][_0x5a1ec6(0x19eb)]=_0x13ad03['close'][_0x5a1ec6(0x168a)]['split']('=')[0x0],_0x13ad03['close'][_0x5a1ec6(0x175d)]=_0x13ad03[_0x5a1ec6(0xa7c)]['appdata'][_0x5a1ec6(0x10c8)]('=')[0x1];break;case _0x5a1ec6(0x1ecb):_0x13ad03[_0x5a1ec6(0xa7c)][_0x5a1ec6(0x9e0)]=_0x13ad03[_0x5a1ec6(0xa7c)][_0x5a1ec6(0x168a)];break;default:{const _0x365a98=_0x13ad03[_0x5a1ec6(0xa7c)][_0x5a1ec6(0x168a)][_0x5a1ec6(0x10c8)](',');_0x13ad03['close'][_0x5a1ec6(0x9e1)]=_0x3f65c0()[_0x5a1ec6(0x2635)](_0x365a98[0x0])?_0x365a98[0x0]:isNaN(_0x365a98[0x0])?_0x365a98[0x0]:parseInt(_0x365a98[0x0],0xa);}break;}else{}_0x13ad03[_0x5a1ec6(0xa7c)][_0x5a1ec6(0x1142)]&&_0x13ad03['close'][_0x5a1ec6(0x1142)][_0x5a1ec6(0x256e)]()===_0x5a1ec6(0xc9c)&&_0x13ad03[_0x5a1ec6(0xa7c)][_0x5a1ec6(0x8f2)][_0x5a1ec6(0x256e)]()===_0x5a1ec6(0x3bb)&&(_0x13ad03[_0x5a1ec6(0xa7c)]['prefix']=_0x13ad03[_0x5a1ec6(0xa7c)][_0x5a1ec6(0x1d55)]?_0x13ad03[_0x5a1ec6(0xa7c)][_0x5a1ec6(0x1d55)][_0x5a1ec6(0x10c8)]('$')[0x0]:undefined,_0x13ad03[_0x5a1ec6(0xa7c)][_0x5a1ec6(0x1d43)]=_0x13ad03['close']['callerID']?_0x5a1ec6(0x1b60)+_0x13ad03[_0x5a1ec6(0xa7c)][_0x5a1ec6(0x11be)]:undefined);_0x13ad03['saveFaxAccountApp']=_0x5ce4ef,_0x13ad03[_0x5a1ec6(0x13f3)]=_0x2b447a;function _0x5ce4ef(){const _0x128054=_0x5a1ec6;_0x13ad03[_0x128054(0xcef)]=[];const _0xcacf10=[];_0x13ad03[_0x128054(0xa7c)]['type']&&_0x13ad03[_0x128054(0xa7c)][_0x128054(0x1142)]['toLowerCase']()===_0x128054(0xc9c)&&_0x13ad03['close'][_0x128054(0x8f2)]===_0x128054(0x118b)&&(_0x13ad03[_0x128054(0xa7c)][_0x128054(0x1d55)]=_0x5c1887['cutdigits']?(_0x13ad03[_0x128054(0xa7c)][_0x128054(0x1e12)]||'')+_0x128054(0x2147)+_0x5c1887[_0x128054(0x1274)]+'}':(_0x13ad03['close'][_0x128054(0x1e12)]||'')+_0x128054(0x20df),_0x5c1887['recordingFormat']!==_0x128054(0x1642)?_0x13ad03[_0x128054(0xa7c)][_0x128054(0xa08)]['indexOf'](_0x128054(0x1ea4))<0x0&&(_0x13ad03[_0x128054(0xa7c)][_0x128054(0xa08)]+=_0x128054(0x1ea4)):_0x13ad03['close'][_0x128054(0xa08)]=_0x13ad03[_0x128054(0xa7c)]['options'][_0x128054(0x5f4)](_0x128054(0x1ea4),''));if(_0x13ad03[_0x128054(0xa7c)][_0x128054(0x8f2)]&&_0x13ad03['close'][_0x128054(0x8f2)]===_0x128054(0x1802)){}else switch((_0x13ad03['close'][_0x128054(0x1873)]||_0x13ad03[_0x128054(0xa7c)][_0x128054(0x8f2)])[_0x128054(0x256e)]()){case _0x128054(0x26ba):_0x13ad03[_0x128054(0xa7c)][_0x128054(0x168a)]=_0x13ad03['close'][_0x128054(0x19eb)]+'='+_0x13ad03['close'][_0x128054(0x175d)];break;case _0x128054(0x1802):break;default:_0xcacf10[0x0]=_0x13ad03[_0x128054(0xa7c)][_0x128054(0x9e1)],_0x13ad03[_0x128054(0xa7c)][_0x128054(0x168a)]=_0xcacf10[_0x128054(0xb47)](',');}_0x2b447a(_0x13ad03[_0x128054(0xa7c)]);}function _0x2b447a(_0x4f4281){const _0x91eee8=_0x5a1ec6;_0xd74383[_0x91eee8(0x2458)](_0x4f4281);}}const _0x5492bb=_0x4b4499;;_0x52f4e6[_0x313a4d(0x11c2)]=['$mdDialog','$q',_0x313a4d(0x1fe4),'faxAccountApp',_0x313a4d(0x178),_0x313a4d(0x247f),_0x313a4d(0xa87),_0x313a4d(0x2514)];function _0x52f4e6(_0x16ebc1,_0x4f3315,_0xcffe48,_0x107bd2,_0x268c0c,_0xcbbd4f,_0x42a34e,_0x9df715){const _0x472bb8=_0x313a4d,_0x2972b1=this;_0x2972b1[_0x472bb8(0x2321)]=_0x42a34e[_0x472bb8(0xb12)](),_0x2972b1[_0x472bb8(0xcef)]=[],_0x2972b1[_0x472bb8(0x1189)]='FAX.EDIT_'+(_0x107bd2[_0x472bb8(0x8f2)]||_0x107bd2[_0x472bb8(0x1873)])[_0x472bb8(0x1c37)](),_0x2972b1[_0x472bb8(0x609)]=angular[_0x472bb8(0x235a)](_0x107bd2),_0x2972b1['crudPermissions']=_0x9df715,_0x2972b1[_0x472bb8(0x855)]={};if(_0x2972b1[_0x472bb8(0x609)][_0x472bb8(0x168a)])switch(_0x2972b1['gotoif'][_0x472bb8(0x8f2)]?_0x2972b1['gotoif']['appType'][_0x472bb8(0x256e)]():_0x2972b1[_0x472bb8(0x609)][_0x472bb8(0x1873)][_0x472bb8(0x256e)]()){case'custom':break;case _0x472bb8(0xeaa):{const _0x1e4a3f=_0x2972b1[_0x472bb8(0x609)]['appdata'][_0x472bb8(0x10c8)](',');_0x2972b1['gotoif'][_0x472bb8(0x2293)]=_0x1e4a3f[0x0],_0x2972b1[_0x472bb8(0x609)][_0x472bb8(0x90b)]=_0x1e4a3f[0x1],_0x2972b1[_0x472bb8(0x609)][_0x472bb8(0xaf3)]=_0x1e4a3f[_0x472bb8(0x1298)](0x2,_0x1e4a3f[_0x472bb8(0x402)])['join'](',');}break;case _0x472bb8(0xa46):{const _0x4a827d=_0x2972b1[_0x472bb8(0x609)][_0x472bb8(0x168a)][_0x472bb8(0x10c8)](',');_0x2972b1[_0x472bb8(0x609)][_0x472bb8(0x153a)]=_0x4a827d[0x0],_0x2972b1['gotoif'][_0x472bb8(0x1392)]=_0x4a827d[0x1],_0x2972b1['gotoif'][_0x472bb8(0x2217)]=_0x4a827d[0x2],_0x2972b1['gotoif']['language']=_0x4a827d[0x3],_0x2972b1[_0x472bb8(0x609)]['welcomemessage']=_0x4a827d[_0x472bb8(0x1298)](0x4,_0x4a827d[_0x472bb8(0x402)])[_0x472bb8(0xb47)](',');}break;case'amazonlex':{const _0x456204=_0x2972b1[_0x472bb8(0x609)][_0x472bb8(0x168a)][_0x472bb8(0x10c8)](',');_0x2972b1[_0x472bb8(0x609)][_0x472bb8(0x1651)]=_0x456204[0x0],_0x2972b1[_0x472bb8(0x609)][_0x472bb8(0x252)]=_0x456204[0x1],_0x2972b1[_0x472bb8(0x609)]['lexregion']=_0x456204[0x2],_0x2972b1[_0x472bb8(0x609)][_0x472bb8(0x8dd)]=_0x456204[0x3],_0x2972b1['gotoif'][_0x472bb8(0xaf3)]=_0x456204[_0x472bb8(0x1298)](0x4,_0x456204[_0x472bb8(0x402)])[_0x472bb8(0xb47)](',');}break;case _0x472bb8(0x1713):{const _0x2ff7e2=_0x2972b1[_0x472bb8(0x609)][_0x472bb8(0x168a)]['split'](',');_0x2972b1[_0x472bb8(0x609)]['times']=isNaN(_0x2ff7e2[0x0])?_0x2ff7e2[0x0]:parseInt(_0x2ff7e2[0x0],0xa),_0x2972b1[_0x472bb8(0x609)]['text']=_0x2ff7e2[_0x472bb8(0x1298)](0x1,_0x2ff7e2[_0x472bb8(0x402)])['join'](',');}break;case _0x472bb8(0x7fd):_0x2972b1[_0x472bb8(0x609)]['text']=_0x2972b1[_0x472bb8(0x609)]['appdata'];break;case'set':_0x2972b1['gotoif']['name']=_0x2972b1[_0x472bb8(0x609)][_0x472bb8(0x168a)][_0x472bb8(0x10c8)]('=')[0x0],_0x2972b1[_0x472bb8(0x609)]['value']=_0x2972b1[_0x472bb8(0x609)][_0x472bb8(0x168a)]['split']('=')[0x1];break;case _0x472bb8(0x1ecb):_0x2972b1[_0x472bb8(0x609)][_0x472bb8(0x9e0)]=_0x2972b1[_0x472bb8(0x609)][_0x472bb8(0x168a)];break;default:{const _0xbb1d6=_0x2972b1[_0x472bb8(0x609)]['appdata']['split'](',');_0x2972b1['gotoif']['condition']=_0x3f65c0()['isEmpty'](_0xbb1d6[0x0])?_0xbb1d6[0x0]:isNaN(_0xbb1d6[0x0])?_0xbb1d6[0x0]:parseInt(_0xbb1d6[0x0],0xa),_0x2972b1[_0x472bb8(0x609)][_0x472bb8(0x1d78)]=_0x3f65c0()['isEmpty'](_0xbb1d6[0x1])?_0xbb1d6[0x1]:isNaN(_0xbb1d6[0x1])?_0xbb1d6[0x1]:parseInt(_0xbb1d6[0x1],0xa),_0x2972b1['gotoif']['falsepriority']=_0x3f65c0()[_0x472bb8(0x2635)](_0xbb1d6[0x2])?_0xbb1d6[0x2]:isNaN(_0xbb1d6[0x2])?_0xbb1d6[0x2]:parseInt(_0xbb1d6[0x2],0xa);}break;}else{}_0x2972b1[_0x472bb8(0x609)][_0x472bb8(0x1142)]&&_0x2972b1[_0x472bb8(0x609)][_0x472bb8(0x1142)][_0x472bb8(0x256e)]()===_0x472bb8(0xc9c)&&_0x2972b1[_0x472bb8(0x609)][_0x472bb8(0x8f2)][_0x472bb8(0x256e)]()==='outbounddial'&&(_0x2972b1[_0x472bb8(0x609)][_0x472bb8(0x1e12)]=_0x2972b1['gotoif'][_0x472bb8(0x1d55)]?_0x2972b1[_0x472bb8(0x609)]['phone'][_0x472bb8(0x10c8)]('$')[0x0]:undefined,_0x2972b1[_0x472bb8(0x609)][_0x472bb8(0x1d43)]=_0x2972b1[_0x472bb8(0x609)]['callerID']?'CALLERID(all)='+_0x2972b1[_0x472bb8(0x609)]['callerID']:undefined);_0x2972b1[_0x472bb8(0x212c)]=_0x575ed0,_0x2972b1[_0x472bb8(0x13f3)]=_0x252421;function _0x575ed0(){const _0x10dde0=_0x472bb8;_0x2972b1['errors']=[];const _0x2a466a=[];_0x2972b1[_0x10dde0(0x609)][_0x10dde0(0x1142)]&&_0x2972b1['gotoif']['type'][_0x10dde0(0x256e)]()===_0x10dde0(0xc9c)&&_0x2972b1[_0x10dde0(0x609)][_0x10dde0(0x8f2)]===_0x10dde0(0x118b)&&(_0x2972b1[_0x10dde0(0x609)][_0x10dde0(0x1d55)]=_0x268c0c[_0x10dde0(0x1274)]?(_0x2972b1[_0x10dde0(0x609)][_0x10dde0(0x1e12)]||'')+_0x10dde0(0x2147)+_0x268c0c[_0x10dde0(0x1274)]+'}':(_0x2972b1[_0x10dde0(0x609)][_0x10dde0(0x1e12)]||'')+_0x10dde0(0x20df),_0x268c0c[_0x10dde0(0x1425)]!==_0x10dde0(0x1642)?_0x2972b1['gotoif'][_0x10dde0(0xa08)][_0x10dde0(0x172b)](_0x10dde0(0x1ea4))<0x0&&(_0x2972b1['gotoif']['options']+=_0x10dde0(0x1ea4)):_0x2972b1[_0x10dde0(0x609)][_0x10dde0(0xa08)]=_0x2972b1[_0x10dde0(0x609)]['options'][_0x10dde0(0x5f4)](_0x10dde0(0x1ea4),''));if(_0x2972b1[_0x10dde0(0x609)]['appType']&&_0x2972b1['gotoif']['appType']===_0x10dde0(0x1802)){}else switch((_0x2972b1[_0x10dde0(0x609)]['app']||_0x2972b1[_0x10dde0(0x609)][_0x10dde0(0x8f2)])[_0x10dde0(0x256e)]()){case _0x10dde0(0x26ba):_0x2972b1[_0x10dde0(0x609)][_0x10dde0(0x168a)]=_0x2972b1['gotoif']['name']+'='+_0x2972b1['gotoif'][_0x10dde0(0x175d)];break;case'custom':break;default:_0x2a466a[0x0]=_0x2972b1['gotoif'][_0x10dde0(0x115f)],_0x2a466a[0x1]=_0x2972b1['gotoif']['truepriority'],_0x2a466a[0x2]=_0x2972b1[_0x10dde0(0x609)][_0x10dde0(0x28e1)],_0x2972b1[_0x10dde0(0x609)][_0x10dde0(0x168a)]=_0x2a466a[_0x10dde0(0xb47)](',');}_0x252421(_0x2972b1[_0x10dde0(0x609)]);}function _0x252421(_0x1d03ca){_0x16ebc1['hide'](_0x1d03ca);}}const _0xd06b71=_0x52f4e6;;_0x39b9a2[_0x313a4d(0x11c2)]=['$mdDialog','$q',_0x313a4d(0x1fe4),'faxAccountApp',_0x313a4d(0x178),_0x313a4d(0x247f),'Auth',_0x313a4d(0x2514)];function _0x39b9a2(_0x360fb6,_0x19c57f,_0x555967,_0x107ba6,_0x411614,_0x53368c,_0x2f4548,_0x16c6dd){const _0x3de50f=_0x313a4d,_0x489abc=this;_0x489abc[_0x3de50f(0x2321)]=_0x2f4548[_0x3de50f(0xb12)](),_0x489abc[_0x3de50f(0xcef)]=[],_0x489abc[_0x3de50f(0x1189)]='FAX.EDIT_'+(_0x107ba6[_0x3de50f(0x8f2)]||_0x107ba6[_0x3de50f(0x1873)])[_0x3de50f(0x1c37)](),_0x489abc[_0x3de50f(0x28f4)]=angular[_0x3de50f(0x235a)](_0x107ba6),_0x489abc[_0x3de50f(0x2514)]=_0x16c6dd,_0x489abc[_0x3de50f(0x855)]={};if(_0x489abc[_0x3de50f(0x28f4)][_0x3de50f(0x168a)])switch(_0x489abc[_0x3de50f(0x28f4)][_0x3de50f(0x8f2)]?_0x489abc['gotop'][_0x3de50f(0x8f2)][_0x3de50f(0x256e)]():_0x489abc[_0x3de50f(0x28f4)][_0x3de50f(0x1873)][_0x3de50f(0x256e)]()){case _0x3de50f(0x1802):break;case'dialogflow':{const _0x696bec=_0x489abc['gotop'][_0x3de50f(0x168a)][_0x3de50f(0x10c8)](',');_0x489abc[_0x3de50f(0x28f4)][_0x3de50f(0x2293)]=_0x696bec[0x0],_0x489abc[_0x3de50f(0x28f4)][_0x3de50f(0x90b)]=_0x696bec[0x1],_0x489abc[_0x3de50f(0x28f4)][_0x3de50f(0xaf3)]=_0x696bec[_0x3de50f(0x1298)](0x2,_0x696bec[_0x3de50f(0x402)])[_0x3de50f(0xb47)](',');}break;case _0x3de50f(0xa46):{const _0x12929f=_0x489abc['gotop'][_0x3de50f(0x168a)]['split'](',');_0x489abc['gotop'][_0x3de50f(0x153a)]=_0x12929f[0x0],_0x489abc[_0x3de50f(0x28f4)][_0x3de50f(0x1392)]=_0x12929f[0x1],_0x489abc[_0x3de50f(0x28f4)][_0x3de50f(0x2217)]=_0x12929f[0x2],_0x489abc[_0x3de50f(0x28f4)]['language']=_0x12929f[0x3],_0x489abc['gotop'][_0x3de50f(0xaf3)]=_0x12929f[_0x3de50f(0x1298)](0x4,_0x12929f[_0x3de50f(0x402)])[_0x3de50f(0xb47)](',');}break;case'amazonlex':{const _0x1ca69d=_0x489abc[_0x3de50f(0x28f4)]['appdata'][_0x3de50f(0x10c8)](',');_0x489abc[_0x3de50f(0x28f4)][_0x3de50f(0x1651)]=_0x1ca69d[0x0],_0x489abc[_0x3de50f(0x28f4)][_0x3de50f(0x252)]=_0x1ca69d[0x1],_0x489abc[_0x3de50f(0x28f4)]['lexregion']=_0x1ca69d[0x2],_0x489abc[_0x3de50f(0x28f4)][_0x3de50f(0x8dd)]=_0x1ca69d[0x3],_0x489abc[_0x3de50f(0x28f4)][_0x3de50f(0xaf3)]=_0x1ca69d[_0x3de50f(0x1298)](0x4,_0x1ca69d[_0x3de50f(0x402)])[_0x3de50f(0xb47)](',');}break;case _0x3de50f(0x1713):{const _0x33e7e1=_0x489abc[_0x3de50f(0x28f4)][_0x3de50f(0x168a)][_0x3de50f(0x10c8)](',');_0x489abc[_0x3de50f(0x28f4)][_0x3de50f(0x583)]=isNaN(_0x33e7e1[0x0])?_0x33e7e1[0x0]:parseInt(_0x33e7e1[0x0],0xa),_0x489abc[_0x3de50f(0x28f4)][_0x3de50f(0xa8d)]=_0x33e7e1[_0x3de50f(0x1298)](0x1,_0x33e7e1[_0x3de50f(0x402)])['join'](',');}break;case _0x3de50f(0x7fd):_0x489abc[_0x3de50f(0x28f4)]['text']=_0x489abc[_0x3de50f(0x28f4)][_0x3de50f(0x168a)];break;case _0x3de50f(0x26ba):_0x489abc['gotop'][_0x3de50f(0x19eb)]=_0x489abc[_0x3de50f(0x28f4)][_0x3de50f(0x168a)][_0x3de50f(0x10c8)]('=')[0x0],_0x489abc[_0x3de50f(0x28f4)][_0x3de50f(0x175d)]=_0x489abc[_0x3de50f(0x28f4)][_0x3de50f(0x168a)][_0x3de50f(0x10c8)]('=')[0x1];break;case _0x3de50f(0x1ecb):_0x489abc['gotop']['project']=_0x489abc[_0x3de50f(0x28f4)]['appdata'];break;default:{const _0x4f1f88=_0x489abc['gotop'][_0x3de50f(0x168a)][_0x3de50f(0x10c8)](',');_0x489abc[_0x3de50f(0x28f4)][_0x3de50f(0xa6a)]=_0x3f65c0()[_0x3de50f(0x2635)](_0x4f1f88[0x0])?_0x4f1f88[0x0]:isNaN(_0x4f1f88[0x0])?_0x4f1f88[0x0]:parseInt(_0x4f1f88[0x0],0xa);}break;}else{}_0x489abc[_0x3de50f(0x28f4)][_0x3de50f(0x1142)]&&_0x489abc[_0x3de50f(0x28f4)][_0x3de50f(0x1142)][_0x3de50f(0x256e)]()===_0x3de50f(0xc9c)&&_0x489abc[_0x3de50f(0x28f4)][_0x3de50f(0x8f2)][_0x3de50f(0x256e)]()===_0x3de50f(0x3bb)&&(_0x489abc[_0x3de50f(0x28f4)][_0x3de50f(0x1e12)]=_0x489abc[_0x3de50f(0x28f4)][_0x3de50f(0x1d55)]?_0x489abc['gotop'][_0x3de50f(0x1d55)][_0x3de50f(0x10c8)]('$')[0x0]:undefined,_0x489abc[_0x3de50f(0x28f4)]['callerId']=_0x489abc[_0x3de50f(0x28f4)][_0x3de50f(0x11be)]?_0x3de50f(0x1b60)+_0x489abc['gotop'][_0x3de50f(0x11be)]:undefined);_0x489abc[_0x3de50f(0x212c)]=_0x935909,_0x489abc[_0x3de50f(0x13f3)]=_0x1b6ce6;function _0x935909(){const _0x44a9c8=_0x3de50f;_0x489abc[_0x44a9c8(0xcef)]=[];const _0xfa8e86=[];_0x489abc[_0x44a9c8(0x28f4)][_0x44a9c8(0x1142)]&&_0x489abc['gotop']['type'][_0x44a9c8(0x256e)]()==='outbound'&&_0x489abc[_0x44a9c8(0x28f4)][_0x44a9c8(0x8f2)]===_0x44a9c8(0x118b)&&(_0x489abc[_0x44a9c8(0x28f4)][_0x44a9c8(0x1d55)]=_0x411614[_0x44a9c8(0x1274)]?(_0x489abc['gotop']['prefix']||'')+'${EXTEN:'+_0x411614[_0x44a9c8(0x1274)]+'}':(_0x489abc['gotop'][_0x44a9c8(0x1e12)]||'')+_0x44a9c8(0x20df),_0x411614[_0x44a9c8(0x1425)]!==_0x44a9c8(0x1642)?_0x489abc['gotop'][_0x44a9c8(0xa08)][_0x44a9c8(0x172b)](_0x44a9c8(0x1ea4))<0x0&&(_0x489abc[_0x44a9c8(0x28f4)]['options']+='U(xcally-mixmonitor-context)'):_0x489abc[_0x44a9c8(0x28f4)][_0x44a9c8(0xa08)]=_0x489abc[_0x44a9c8(0x28f4)][_0x44a9c8(0xa08)][_0x44a9c8(0x5f4)]('U(xcally-mixmonitor-context)',''));if(_0x489abc[_0x44a9c8(0x28f4)]['appType']&&_0x489abc[_0x44a9c8(0x28f4)][_0x44a9c8(0x8f2)]===_0x44a9c8(0x1802)){}else switch((_0x489abc[_0x44a9c8(0x28f4)]['app']||_0x489abc['gotop']['appType'])[_0x44a9c8(0x256e)]()){case _0x44a9c8(0x26ba):_0x489abc[_0x44a9c8(0x28f4)][_0x44a9c8(0x168a)]=_0x489abc[_0x44a9c8(0x28f4)][_0x44a9c8(0x19eb)]+'='+_0x489abc['gotop']['value'];break;case _0x44a9c8(0x1802):break;default:_0xfa8e86[0x0]=_0x489abc[_0x44a9c8(0x28f4)]['priority'],_0x489abc[_0x44a9c8(0x28f4)][_0x44a9c8(0x168a)]=_0xfa8e86[_0x44a9c8(0xb47)](',');}_0x1b6ce6(_0x489abc['gotop']);}function _0x1b6ce6(_0x1c7955){const _0x56ddae=_0x3de50f;_0x360fb6[_0x56ddae(0x2458)](_0x1c7955);}}const _0x2094d9=_0x39b9a2;;_0x37f50c['$inject']=['$state',_0x313a4d(0x10e8),_0x313a4d(0x1c7e),_0x313a4d(0x15f6),_0x313a4d(0x2765),_0x313a4d(0x278f),'toasty',_0x313a4d(0x247f),'Auth',_0x313a4d(0x2514)];function _0x37f50c(_0x2a4fc6,_0x7fc306,_0x37fda3,_0xda967e,_0x10f49d,_0x578ec5,_0x17b2d8,_0x35c8d6,_0x13eb32,_0x2b562f){const _0x31a66f=_0x313a4d,_0x30867a=this;_0x30867a[_0x31a66f(0x2321)]=_0x13eb32['getCurrentUser'](),_0x30867a['errors']=[],_0x30867a[_0x31a66f(0x1189)]=_0x31a66f(0x56d),_0x30867a[_0x31a66f(0x2765)]=angular['copy'](_0x10f49d),_0x30867a[_0x31a66f(0x278f)]=_0x578ec5,_0x30867a[_0x31a66f(0xa76)]=![],_0x30867a[_0x31a66f(0x1960)]=['always',_0x31a66f(0x1802),_0x31a66f(0x25f4)],_0x30867a['crudPermissions']=_0x2b562f,_0x30867a[_0x31a66f(0x1e35)]=_0xda967e[_0x31a66f(0x2045)](),_0x30867a[_0x31a66f(0x593)]=_0xda967e[_0x31a66f(0xead)](),_0x30867a['monthName']=_0xda967e[_0x31a66f(0x18b6)](),_0x30867a[_0x31a66f(0x15f1)]=_0xda967e['getDaysOfMonth']();if(!_0x30867a[_0x31a66f(0x2765)])_0x30867a[_0x31a66f(0x2765)]={'interval':'*,*,*,*'},_0x30867a[_0x31a66f(0x1142)]=_0x31a66f(0xd85),_0x30867a['title']=_0x31a66f(0x79c),_0x30867a[_0x31a66f(0xa76)]=!![];else{if(_0x30867a[_0x31a66f(0x2765)][_0x31a66f(0x2765)]!==_0x31a66f(0x1559)){_0x30867a[_0x31a66f(0x1142)]=_0x31a66f(0x1802);const _0x1668c4=_0x30867a[_0x31a66f(0x2765)]['interval'][_0x31a66f(0x10c8)](','),_0x2fd08c=_0x1668c4[0x0],_0x47a350=_0x1668c4[0x1],_0x4cfc77=_0x1668c4[0x2],_0x57ab51=_0x1668c4[0x3];if(_0x2fd08c!=='*'){const _0x565d0b=_0x2fd08c[_0x31a66f(0x10c8)]('-')[0x0],_0x35d469=_0x2fd08c[_0x31a66f(0x10c8)]('-')[0x1];let _0x4f201b;_0x4f201b=new Date(),_0x4f201b[_0x31a66f(0x25cd)](Number(_0x565d0b[_0x31a66f(0x10c8)](':')[0x0])),_0x4f201b[_0x31a66f(0x2348)](Number(_0x565d0b[_0x31a66f(0x10c8)](':')[0x1])),_0x30867a[_0x31a66f(0x2469)]=_0x4f201b,_0x4f201b=new Date(),_0x4f201b[_0x31a66f(0x25cd)](Number(_0x35d469[_0x31a66f(0x10c8)](':')[0x0])),_0x4f201b[_0x31a66f(0x2348)](Number(_0x35d469[_0x31a66f(0x10c8)](':')[0x1])),_0x30867a['timeRangeTo']=_0x4f201b;}_0x47a350!=='*'&&(_0x30867a[_0x31a66f(0x1455)]=_0x47a350['split']('-')[0x0],_0x30867a['dayOfWeekTo']=_0x47a350[_0x31a66f(0x10c8)]('-')[0x1]),_0x4cfc77!=='*'&&(_0x30867a['monthDayFrom']=_0x4cfc77[_0x31a66f(0x10c8)]('-')[0x0],_0x30867a['monthDayTo']=_0x4cfc77['split']('-')[0x1]),_0x57ab51!=='*'&&(_0x30867a[_0x31a66f(0x167)]=_0x57ab51[_0x31a66f(0x10c8)]('-')[0x0],_0x30867a[_0x31a66f(0x9c3)]=_0x57ab51[_0x31a66f(0x10c8)]('-')[0x1]);}else _0x30867a[_0x31a66f(0x1142)]=_0x31a66f(0xd85);}_0x2a4fc6[_0x31a66f(0x16a)]['id']&&!_0x30867a['interval']['application']&&(_0x30867a[_0x31a66f(0x2765)][_0x31a66f(0x1ff2)]=_0x2a4fc6['params']['id']);_0x30867a[_0x31a66f(0x2765)][_0x31a66f(0x1ff2)]&&_0x30867a['interval']['application']&&(_0x30867a[_0x31a66f(0x1142)]=_0x31a66f(0x25f4));_0x30867a[_0x31a66f(0x2f0)]=_0x32ed02,_0x30867a[_0x31a66f(0x1242)]=_0x4461f7,_0x30867a[_0x31a66f(0x13f3)]=_0x58a5d1;_0x30867a[_0x31a66f(0x2765)]['application']&&(_0x13eb32[_0x31a66f(0x23e0)](_0x31a66f(0x174b))?_0x35c8d6['interval'][_0x31a66f(0x16b4)]({'fields':_0x31a66f(0x648),'IntervalId':_0x31a66f(0x203c),'nolimit':!![]})['$promise']['then'](function(_0x38846c){const _0x24802d=_0x31a66f;_0x30867a[_0x24802d(0x278f)]=_0x38846c[_0x24802d(0x19c7)]||[];})['catch'](function(_0x595b00){const _0x168ee0=_0x31a66f;_0x17b2d8[_0x168ee0(0x1980)]({'title':_0x595b00[_0x168ee0(0x107b)]?_0x168ee0(0x262a)+_0x595b00[_0x168ee0(0x107b)]+_0x168ee0(0x1315)+_0x595b00['statusText']:_0x168ee0(0x603),'msg':_0x595b00[_0x168ee0(0x524)]?JSON[_0x168ee0(0x10bb)](_0x595b00[_0x168ee0(0x524)]):_0x595b00['toString']()});}):_0x35c8d6['interval']['get']({'fields':_0x31a66f(0x648),'IntervalId':_0x31a66f(0x203c),'nolimit':!![]})[_0x31a66f(0x2945)][_0x31a66f(0x146b)](function(_0x33e0f8){const _0x330c83=_0x31a66f;_0x30867a[_0x330c83(0x278f)]=_0x33e0f8['rows']||[];})[_0x31a66f(0x146b)](function(){const _0x5a064e=_0x31a66f;return _0x35c8d6[_0x5a064e(0x1366)][_0x5a064e(0x16b4)]({'userProfileId':_0x30867a['currentUser']['userProfileId'],'sectionId':0x3ec})[_0x5a064e(0x2945)];})[_0x31a66f(0x146b)](function(_0x5b3d1f){const _0x212845=_0x31a66f,_0xd1cfea=_0x5b3d1f&&_0x5b3d1f[_0x212845(0x19c7)]?_0x5b3d1f[_0x212845(0x19c7)][0x0]:null;if(!_0xd1cfea)_0x30867a[_0x212845(0x278f)]=[];else{if(!_0xd1cfea[_0x212845(0x11d2)])return _0x35c8d6[_0x212845(0xdcc)]['get']({'sectionId':_0xd1cfea['id']})[_0x212845(0x2945)]['then'](function(_0xb7d9b6){const _0x20de8f=_0x212845,_0x10ff75=_0xb7d9b6&&_0xb7d9b6[_0x20de8f(0x19c7)]?_0xb7d9b6['rows']:[],_0x4bef0d=[];let _0x1679c8=null;_0x30867a[_0x20de8f(0x2765)]&&(_0x1679c8=_0x3f65c0()[_0x20de8f(0xc84)](_0x30867a['intervals'],{'name':_0x30867a['interval'][_0x20de8f(0x1ff2)]})),_0x1679c8&&!_0x3f65c0()['some'](_0x10ff75,[_0x20de8f(0x18b8),_0x1679c8['id']])&&_0x30867a[_0x20de8f(0x278f)]['forEach'](function(_0x11cb2e){const _0x3f41a9=_0x20de8f;_0x11cb2e['id']===_0x1679c8['id']&&(_0x11cb2e[_0x3f41a9(0x8ff)]=![],_0x4bef0d[_0x3f41a9(0x1f47)](_0x11cb2e));}),_0x30867a[_0x20de8f(0x278f)]=_0x4bef0d;});}})[_0x31a66f(0x129e)](function(_0x4e4d16){const _0x2ef6f4=_0x31a66f;_0x17b2d8[_0x2ef6f4(0x1980)]({'title':_0x4e4d16[_0x2ef6f4(0x107b)]?_0x2ef6f4(0x262a)+_0x4e4d16[_0x2ef6f4(0x107b)]+_0x2ef6f4(0x1315)+_0x4e4d16['statusText']:_0x2ef6f4(0x603),'msg':_0x4e4d16[_0x2ef6f4(0x524)]?JSON[_0x2ef6f4(0x10bb)](_0x4e4d16[_0x2ef6f4(0x524)]):_0x4e4d16[_0x2ef6f4(0xd5f)]()});}));function _0x218f30(){const _0x563601=_0x31a66f;switch(_0x30867a[_0x563601(0x1142)]){case _0x563601(0xd85):case _0x563601(0x25f4):return _0x563601(0x1559);case'custom':{const _0x5e045b=[];if(_0x30867a['timeRangeFrom']!=='*'&&_0x30867a[_0x563601(0x2469)]&&_0x30867a['timeRangeTo']){const _0xfe4981=(_0x30867a['timeRangeFrom'][_0x563601(0x1d57)]()<0xa?'0':'')+_0x30867a[_0x563601(0x2469)]['getHours']()+':'+((_0x30867a['timeRangeFrom'][_0x563601(0x7fc)]()<0xa?'0':'')+_0x30867a['timeRangeFrom'][_0x563601(0x7fc)]()),_0x8e30ec=(_0x30867a[_0x563601(0x637)]['getHours']()<0xa?'0':'')+_0x30867a[_0x563601(0x637)][_0x563601(0x1d57)]()+':'+((_0x30867a['timeRangeTo'][_0x563601(0x7fc)]()<0xa?'0':'')+_0x30867a['timeRangeTo'][_0x563601(0x7fc)]());_0x5e045b[_0x563601(0x1f47)](_0xfe4981+'-'+_0x8e30ec);}else _0x5e045b[_0x563601(0x1f47)]('*');return _0x30867a[_0x563601(0x1455)]?_0x30867a['dayOfWeekTo']?_0x5e045b['push'](_0x30867a[_0x563601(0x1455)]+'-'+_0x30867a[_0x563601(0x27a1)]):_0x5e045b[_0x563601(0x1f47)](_0x30867a[_0x563601(0x1455)]):_0x5e045b[_0x563601(0x1f47)]('*'),_0x30867a[_0x563601(0xf0b)]?_0x30867a['monthDayTo']?_0x5e045b[_0x563601(0x1f47)](_0x30867a[_0x563601(0xf0b)]+'-'+_0x30867a['monthDayTo']):_0x5e045b['push'](_0x30867a['monthDayFrom']):_0x5e045b['push']('*'),_0x30867a[_0x563601(0x167)]?_0x30867a['monthTo']?_0x5e045b[_0x563601(0x1f47)](_0x30867a['monthFrom']+'-'+_0x30867a[_0x563601(0x9c3)]):_0x5e045b[_0x563601(0x1f47)](_0x30867a[_0x563601(0x167)]):_0x5e045b['push']('*'),_0x5e045b[_0x563601(0xb47)]();}}}function _0x32ed02(){const _0x3602f9=_0x31a66f;_0x30867a['errors']=[],_0x30867a['interval'][_0x3602f9(0x2765)]=_0x218f30(),_0x35c8d6[_0x3602f9(0x2765)][_0x3602f9(0x1e3)](_0x30867a['interval'])[_0x3602f9(0x2945)][_0x3602f9(0x146b)](function(_0x504c7c){const _0x27bf92=_0x3602f9;_0x30867a[_0x27bf92(0x278f)]['push'](_0x504c7c),_0x17b2d8[_0x27bf92(0x1c75)]({'title':_0x27bf92(0x17f5),'msg':_0x30867a[_0x27bf92(0x2765)]['name']?_0x30867a[_0x27bf92(0x2765)][_0x27bf92(0x19eb)]+_0x27bf92(0x1386):''}),_0x58a5d1();})[_0x3602f9(0x129e)](function(_0x127aa9){const _0x5e560f=_0x3602f9;console[_0x5e560f(0x1980)](_0x127aa9),_0x30867a[_0x5e560f(0xcef)]=_0x127aa9['data']['errors']||[{'message':_0x127aa9[_0x5e560f(0xd5f)](),'type':'api.interval.save'}];});}function _0x4461f7(){const _0x4ea09f=_0x31a66f;_0x30867a[_0x4ea09f(0xcef)]=[],_0x30867a[_0x4ea09f(0x2765)][_0x4ea09f(0x2765)]=_0x218f30(),_0x30867a['interval']['application']?(_0x30867a['type']!==_0x4ea09f(0x25f4)&&(_0x30867a[_0x4ea09f(0x2765)][_0x4ea09f(0x1ff2)]=null),_0x58a5d1(_0x30867a[_0x4ea09f(0x2765)])):_0x35c8d6[_0x4ea09f(0x2765)][_0x4ea09f(0x18e1)]({'id':_0x30867a[_0x4ea09f(0x2765)]['id']},_0x30867a['interval'])[_0x4ea09f(0x2945)][_0x4ea09f(0x146b)](function(_0x377e98){const _0x15acd4=_0x4ea09f,_0x5c57d5=_0x3f65c0()[_0x15acd4(0xc84)](_0x30867a['intervals'],{'id':_0x377e98['id']});_0x5c57d5&&_0x3f65c0()[_0x15acd4(0x168d)](_0x5c57d5,_0x377e98),_0x17b2d8[_0x15acd4(0x1c75)]({'title':_0x15acd4(0x1d51),'msg':_0x15acd4(0x97a)}),_0x58a5d1();})[_0x4ea09f(0x129e)](function(_0x5e8b3b){const _0x1adfd2=_0x4ea09f;console[_0x1adfd2(0x1980)](_0x5e8b3b),_0x30867a['errors']=_0x5e8b3b[_0x1adfd2(0x524)]['errors']||[{'message':_0x5e8b3b[_0x1adfd2(0xd5f)](),'type':_0x1adfd2(0x1fbe)}];});}function _0x58a5d1(_0xb01d5e){const _0x5dfe23=_0x31a66f;_0x7fc306[_0x5dfe23(0x2458)](_0xb01d5e);}}const _0x521b47=_0x37f50c;;_0x1a59e0[_0x313a4d(0x11c2)]=[_0x313a4d(0x10e8),'$q',_0x313a4d(0x1fe4),_0x313a4d(0x218a),_0x313a4d(0x178),_0x313a4d(0x247f),_0x313a4d(0xa87),_0x313a4d(0x2514)];function _0x1a59e0(_0x511a57,_0xd75b54,_0x47f948,_0x2c23d6,_0x2631b2,_0x6b953,_0x4fc758,_0xf8f8f3){const _0x1b93f4=_0x313a4d,_0x4e9a94=this;_0x4e9a94[_0x1b93f4(0x2321)]=_0x4fc758['getCurrentUser'](),_0x4e9a94['errors']=[],_0x4e9a94[_0x1b93f4(0x1189)]=_0x1b93f4(0x196b)+(_0x2c23d6['appType']||_0x2c23d6[_0x1b93f4(0x1873)])['toUpperCase'](),_0x4e9a94['noop']=angular[_0x1b93f4(0x235a)](_0x2c23d6),_0x4e9a94['crudPermissions']=_0xf8f8f3,_0x4e9a94[_0x1b93f4(0x855)]={};if(_0x4e9a94['noop']['appdata'])switch(_0x4e9a94[_0x1b93f4(0x309)][_0x1b93f4(0x8f2)]?_0x4e9a94[_0x1b93f4(0x309)]['appType'][_0x1b93f4(0x256e)]():_0x4e9a94[_0x1b93f4(0x309)]['app']['toLowerCase']()){case _0x1b93f4(0x1802):break;case _0x1b93f4(0xeaa):{const _0x4c3cb7=_0x4e9a94['noop'][_0x1b93f4(0x168a)]['split'](',');_0x4e9a94[_0x1b93f4(0x309)][_0x1b93f4(0x2293)]=_0x4c3cb7[0x0],_0x4e9a94[_0x1b93f4(0x309)]['language']=_0x4c3cb7[0x1],_0x4e9a94['noop'][_0x1b93f4(0xaf3)]=_0x4c3cb7[_0x1b93f4(0x1298)](0x2,_0x4c3cb7[_0x1b93f4(0x402)])[_0x1b93f4(0xb47)](',');}break;case _0x1b93f4(0xa46):{const _0x49e25e=_0x4e9a94[_0x1b93f4(0x309)][_0x1b93f4(0x168a)][_0x1b93f4(0x10c8)](',');_0x4e9a94['noop']['projectId']=_0x49e25e[0x0],_0x4e9a94[_0x1b93f4(0x309)][_0x1b93f4(0x1392)]=_0x49e25e[0x1],_0x4e9a94[_0x1b93f4(0x309)][_0x1b93f4(0x2217)]=_0x49e25e[0x2],_0x4e9a94[_0x1b93f4(0x309)][_0x1b93f4(0x90b)]=_0x49e25e[0x3],_0x4e9a94[_0x1b93f4(0x309)][_0x1b93f4(0xaf3)]=_0x49e25e[_0x1b93f4(0x1298)](0x4,_0x49e25e[_0x1b93f4(0x402)])[_0x1b93f4(0xb47)](',');}break;case _0x1b93f4(0x17d6):{const _0x1f3da0=_0x4e9a94[_0x1b93f4(0x309)][_0x1b93f4(0x168a)]['split'](',');_0x4e9a94[_0x1b93f4(0x309)][_0x1b93f4(0x1651)]=_0x1f3da0[0x0],_0x4e9a94[_0x1b93f4(0x309)][_0x1b93f4(0x252)]=_0x1f3da0[0x1],_0x4e9a94[_0x1b93f4(0x309)][_0x1b93f4(0x1039)]=_0x1f3da0[0x2],_0x4e9a94[_0x1b93f4(0x309)][_0x1b93f4(0x8dd)]=_0x1f3da0[0x3],_0x4e9a94[_0x1b93f4(0x309)]['welcomemessage']=_0x1f3da0[_0x1b93f4(0x1298)](0x4,_0x1f3da0[_0x1b93f4(0x402)])['join'](',');}break;case'autoreply':{const _0x3942af=_0x4e9a94[_0x1b93f4(0x309)][_0x1b93f4(0x168a)][_0x1b93f4(0x10c8)](',');_0x4e9a94[_0x1b93f4(0x309)][_0x1b93f4(0x583)]=isNaN(_0x3942af[0x0])?_0x3942af[0x0]:parseInt(_0x3942af[0x0],0xa),_0x4e9a94[_0x1b93f4(0x309)][_0x1b93f4(0xa8d)]=_0x3942af[_0x1b93f4(0x1298)](0x1,_0x3942af[_0x1b93f4(0x402)])[_0x1b93f4(0xb47)](',');}break;case _0x1b93f4(0x7fd):_0x4e9a94[_0x1b93f4(0x309)][_0x1b93f4(0xa8d)]=_0x4e9a94[_0x1b93f4(0x309)]['appdata'];break;case _0x1b93f4(0x26ba):_0x4e9a94['noop'][_0x1b93f4(0x19eb)]=_0x4e9a94[_0x1b93f4(0x309)][_0x1b93f4(0x168a)][_0x1b93f4(0x10c8)]('=')[0x0],_0x4e9a94['noop'][_0x1b93f4(0x175d)]=_0x4e9a94[_0x1b93f4(0x309)][_0x1b93f4(0x168a)]['split']('=')[0x1];break;case _0x1b93f4(0x1ecb):_0x4e9a94[_0x1b93f4(0x309)][_0x1b93f4(0x9e0)]=_0x4e9a94[_0x1b93f4(0x309)][_0x1b93f4(0x168a)];break;default:{const _0x1f772c=_0x4e9a94[_0x1b93f4(0x309)][_0x1b93f4(0x168a)][_0x1b93f4(0x10c8)](',');_0x4e9a94[_0x1b93f4(0x309)]['value']=_0x3f65c0()['isEmpty'](_0x1f772c[0x0])?_0x1f772c[0x0]:isNaN(_0x1f772c[0x0])?_0x1f772c[0x0]:parseInt(_0x1f772c[0x0],0xa);}break;}else{}_0x4e9a94[_0x1b93f4(0x309)]['type']&&_0x4e9a94[_0x1b93f4(0x309)][_0x1b93f4(0x1142)][_0x1b93f4(0x256e)]()===_0x1b93f4(0xc9c)&&_0x4e9a94[_0x1b93f4(0x309)][_0x1b93f4(0x8f2)]['toLowerCase']()===_0x1b93f4(0x3bb)&&(_0x4e9a94[_0x1b93f4(0x309)][_0x1b93f4(0x1e12)]=_0x4e9a94[_0x1b93f4(0x309)]['phone']?_0x4e9a94[_0x1b93f4(0x309)]['phone'][_0x1b93f4(0x10c8)]('$')[0x0]:undefined,_0x4e9a94[_0x1b93f4(0x309)]['callerId']=_0x4e9a94['noop'][_0x1b93f4(0x11be)]?_0x1b93f4(0x1b60)+_0x4e9a94['noop'][_0x1b93f4(0x11be)]:undefined);_0x4e9a94[_0x1b93f4(0x212c)]=_0x5843f6,_0x4e9a94['closeDialog']=_0x331e29;function _0x5843f6(){const _0x53f7bf=_0x1b93f4;_0x4e9a94[_0x53f7bf(0xcef)]=[];const _0x21066a=[];_0x4e9a94[_0x53f7bf(0x309)][_0x53f7bf(0x1142)]&&_0x4e9a94[_0x53f7bf(0x309)][_0x53f7bf(0x1142)][_0x53f7bf(0x256e)]()===_0x53f7bf(0xc9c)&&_0x4e9a94[_0x53f7bf(0x309)]['appType']===_0x53f7bf(0x118b)&&(_0x4e9a94['noop'][_0x53f7bf(0x1d55)]=_0x2631b2[_0x53f7bf(0x1274)]?(_0x4e9a94[_0x53f7bf(0x309)][_0x53f7bf(0x1e12)]||'')+_0x53f7bf(0x2147)+_0x2631b2[_0x53f7bf(0x1274)]+'}':(_0x4e9a94[_0x53f7bf(0x309)][_0x53f7bf(0x1e12)]||'')+_0x53f7bf(0x20df),_0x2631b2[_0x53f7bf(0x1425)]!=='none'?_0x4e9a94[_0x53f7bf(0x309)][_0x53f7bf(0xa08)][_0x53f7bf(0x172b)](_0x53f7bf(0x1ea4))<0x0&&(_0x4e9a94[_0x53f7bf(0x309)]['options']+=_0x53f7bf(0x1ea4)):_0x4e9a94[_0x53f7bf(0x309)][_0x53f7bf(0xa08)]=_0x4e9a94[_0x53f7bf(0x309)][_0x53f7bf(0xa08)][_0x53f7bf(0x5f4)](_0x53f7bf(0x1ea4),''));if(_0x4e9a94[_0x53f7bf(0x309)][_0x53f7bf(0x8f2)]&&_0x4e9a94['noop'][_0x53f7bf(0x8f2)]===_0x53f7bf(0x1802)){}else switch((_0x4e9a94[_0x53f7bf(0x309)]['app']||_0x4e9a94[_0x53f7bf(0x309)]['appType'])[_0x53f7bf(0x256e)]()){case'set':_0x4e9a94[_0x53f7bf(0x309)]['appdata']=_0x4e9a94['noop']['name']+'='+_0x4e9a94[_0x53f7bf(0x309)][_0x53f7bf(0x175d)];break;case _0x53f7bf(0x1802):break;default:_0x21066a[0x0]=_0x4e9a94[_0x53f7bf(0x309)][_0x53f7bf(0x175d)],_0x4e9a94[_0x53f7bf(0x309)][_0x53f7bf(0x168a)]=_0x21066a['join'](',');}_0x331e29(_0x4e9a94[_0x53f7bf(0x309)]);}function _0x331e29(_0xf48642){_0x511a57['hide'](_0xf48642);}}const _0x49c0b8=_0x1a59e0;;_0xc33701['$inject']=['$mdDialog','$q',_0x313a4d(0x1fe4),_0x313a4d(0x218a),_0x313a4d(0x178),'api',_0x313a4d(0xa87),_0x313a4d(0x2514)];function _0xc33701(_0x5c0d45,_0x15be71,_0xb5f8b0,_0x31cdf2,_0x51e53b,_0x3cc83d,_0x23d2f2,_0x3986af){const _0x2c1227=_0x313a4d,_0x1c2347=this;_0x1c2347[_0x2c1227(0x2321)]=_0x23d2f2[_0x2c1227(0xb12)](),_0x1c2347['errors']=[],_0x1c2347[_0x2c1227(0x1189)]=_0x2c1227(0x196b)+(_0x31cdf2[_0x2c1227(0x8f2)]||_0x31cdf2[_0x2c1227(0x1873)])[_0x2c1227(0x1c37)](),_0x1c2347[_0x2c1227(0x1c72)]=angular[_0x2c1227(0x235a)](_0x31cdf2),_0x1c2347[_0x2c1227(0x2514)]=_0x3986af,_0x1c2347['hasModulePermissions']={};if(_0x1c2347[_0x2c1227(0x1c72)][_0x2c1227(0x168a)])switch(_0x1c2347['queue']['appType']?_0x1c2347['queue']['appType'][_0x2c1227(0x256e)]():_0x1c2347[_0x2c1227(0x1c72)][_0x2c1227(0x1873)][_0x2c1227(0x256e)]()){case _0x2c1227(0x1802):break;case'dialogflow':{const _0x4981d5=_0x1c2347[_0x2c1227(0x1c72)][_0x2c1227(0x168a)][_0x2c1227(0x10c8)](',');_0x1c2347['queue']['key']=_0x4981d5[0x0],_0x1c2347[_0x2c1227(0x1c72)]['language']=_0x4981d5[0x1],_0x1c2347['queue'][_0x2c1227(0xaf3)]=_0x4981d5[_0x2c1227(0x1298)](0x2,_0x4981d5[_0x2c1227(0x402)])[_0x2c1227(0xb47)](',');}break;case _0x2c1227(0xa46):{const _0x4d73a4=_0x1c2347[_0x2c1227(0x1c72)][_0x2c1227(0x168a)][_0x2c1227(0x10c8)](',');_0x1c2347[_0x2c1227(0x1c72)][_0x2c1227(0x153a)]=_0x4d73a4[0x0],_0x1c2347[_0x2c1227(0x1c72)]['clientEmail']=_0x4d73a4[0x1],_0x1c2347[_0x2c1227(0x1c72)][_0x2c1227(0x2217)]=_0x4d73a4[0x2],_0x1c2347[_0x2c1227(0x1c72)][_0x2c1227(0x90b)]=_0x4d73a4[0x3],_0x1c2347[_0x2c1227(0x1c72)][_0x2c1227(0xaf3)]=_0x4d73a4[_0x2c1227(0x1298)](0x4,_0x4d73a4[_0x2c1227(0x402)])[_0x2c1227(0xb47)](',');}break;case _0x2c1227(0x17d6):{const _0x4aa0dc=_0x1c2347[_0x2c1227(0x1c72)][_0x2c1227(0x168a)][_0x2c1227(0x10c8)](',');_0x1c2347['queue'][_0x2c1227(0x1651)]=_0x4aa0dc[0x0],_0x1c2347[_0x2c1227(0x1c72)]['secretaccesskey']=_0x4aa0dc[0x1],_0x1c2347[_0x2c1227(0x1c72)][_0x2c1227(0x1039)]=_0x4aa0dc[0x2],_0x1c2347['queue'][_0x2c1227(0x8dd)]=_0x4aa0dc[0x3],_0x1c2347[_0x2c1227(0x1c72)][_0x2c1227(0xaf3)]=_0x4aa0dc['slice'](0x4,_0x4aa0dc[_0x2c1227(0x402)])['join'](',');}break;case _0x2c1227(0x1713):{const _0x242a2e=_0x1c2347[_0x2c1227(0x1c72)][_0x2c1227(0x168a)][_0x2c1227(0x10c8)](',');_0x1c2347[_0x2c1227(0x1c72)]['times']=isNaN(_0x242a2e[0x0])?_0x242a2e[0x0]:parseInt(_0x242a2e[0x0],0xa),_0x1c2347['queue'][_0x2c1227(0xa8d)]=_0x242a2e[_0x2c1227(0x1298)](0x1,_0x242a2e['length'])[_0x2c1227(0xb47)](',');}break;case'message':_0x1c2347[_0x2c1227(0x1c72)][_0x2c1227(0xa8d)]=_0x1c2347[_0x2c1227(0x1c72)][_0x2c1227(0x168a)];break;case _0x2c1227(0x26ba):_0x1c2347['queue'][_0x2c1227(0x19eb)]=_0x1c2347[_0x2c1227(0x1c72)][_0x2c1227(0x168a)][_0x2c1227(0x10c8)]('=')[0x0],_0x1c2347['queue'][_0x2c1227(0x175d)]=_0x1c2347[_0x2c1227(0x1c72)][_0x2c1227(0x168a)][_0x2c1227(0x10c8)]('=')[0x1];break;case'agi':_0x1c2347[_0x2c1227(0x1c72)]['project']=_0x1c2347[_0x2c1227(0x1c72)][_0x2c1227(0x168a)];break;default:{const _0x15f665=_0x1c2347[_0x2c1227(0x1c72)][_0x2c1227(0x168a)][_0x2c1227(0x10c8)](',');_0x1c2347['queue'][_0x2c1227(0x1c72)]=_0x3f65c0()[_0x2c1227(0x2635)](_0x15f665[0x0])?_0x15f665[0x0]:isNaN(_0x15f665[0x0])?_0x15f665[0x0]:parseInt(_0x15f665[0x0],0xa),_0x1c2347['queue'][_0x2c1227(0xa9c)]=_0x3f65c0()[_0x2c1227(0x2635)](_0x15f665[0x1])?_0x15f665[0x1]:isNaN(_0x15f665[0x1])?_0x15f665[0x1]:parseInt(_0x15f665[0x1],0xa);}break;}else _0x1c2347[_0x2c1227(0x1c72)][_0x2c1227(0x1c72)]=0x12c,_0x1c2347[_0x2c1227(0x1c72)][_0x2c1227(0xa9c)]=0x12c;_0x1c2347[_0x2c1227(0x1c72)][_0x2c1227(0x1142)]&&_0x1c2347[_0x2c1227(0x1c72)][_0x2c1227(0x1142)][_0x2c1227(0x256e)]()==='outbound'&&_0x1c2347[_0x2c1227(0x1c72)]['appType'][_0x2c1227(0x256e)]()===_0x2c1227(0x3bb)&&(_0x1c2347[_0x2c1227(0x1c72)][_0x2c1227(0x1e12)]=_0x1c2347[_0x2c1227(0x1c72)][_0x2c1227(0x1d55)]?_0x1c2347[_0x2c1227(0x1c72)]['phone'][_0x2c1227(0x10c8)]('$')[0x0]:undefined,_0x1c2347[_0x2c1227(0x1c72)][_0x2c1227(0x1d43)]=_0x1c2347[_0x2c1227(0x1c72)][_0x2c1227(0x11be)]?_0x2c1227(0x1b60)+_0x1c2347['queue'][_0x2c1227(0x11be)]:undefined);_0x1c2347[_0x2c1227(0x212c)]=_0x165574,_0x1c2347[_0x2c1227(0x13f3)]=_0x2946ef,_0x23d2f2[_0x2c1227(0x23e0)](_0x2c1227(0x174b))?_0x3cc83d[_0x2c1227(0x999)]['get']({'fields':_0x2c1227(0x45e),'sort':_0x2c1227(0x19eb),'nolimit':_0x2c1227(0x1185)})[_0x2c1227(0x2945)][_0x2c1227(0x146b)](function(_0x416e5d){const _0x248a7e=_0x2c1227;_0x1c2347['queues']=_0x416e5d[_0x248a7e(0x19c7)]||[];})['catch'](function(_0x3da071){const _0x3b3446=_0x2c1227;_0xb5f8b0[_0x3b3446(0x1980)]({'title':_0x3da071[_0x3b3446(0x107b)]?_0x3b3446(0x262a)+_0x3da071[_0x3b3446(0x107b)]+_0x3b3446(0x1315)+_0x3da071['statusText']:_0x3b3446(0x22d8),'msg':_0x3da071['data']?JSON[_0x3b3446(0x10bb)](_0x3da071[_0x3b3446(0x524)]):_0x3da071['toString']()});}):_0x3cc83d[_0x2c1227(0x999)][_0x2c1227(0x16b4)]({'fields':_0x2c1227(0x45e),'sort':_0x2c1227(0x19eb),'nolimit':_0x2c1227(0x1185)})[_0x2c1227(0x2945)][_0x2c1227(0x146b)](function(_0x2ee2b0){const _0x20d62c=_0x2c1227;_0x1c2347[_0x20d62c(0x1b32)]=_0x2ee2b0[_0x20d62c(0x19c7)]||[];})['then'](function(){const _0xa73d73=_0x2c1227;return _0x3cc83d[_0xa73d73(0x1366)]['get']({'userProfileId':_0x1c2347[_0xa73d73(0x2321)][_0xa73d73(0x209a)],'sectionId':0x385})[_0xa73d73(0x2945)];})['then'](function(_0x1196a1){const _0x3d43a4=_0x2c1227,_0x347b75=_0x1196a1&&_0x1196a1['rows']?_0x1196a1[_0x3d43a4(0x19c7)][0x0]:null;if(!_0x347b75){const _0x5981b4=[];let _0x3d730a=null;_0x1c2347[_0x3d43a4(0x1c72)]&&(_0x3d730a=_0x3f65c0()[_0x3d43a4(0xc84)](_0x1c2347[_0x3d43a4(0x1b32)],{'name':_0x1c2347['queue'][_0x3d43a4(0x1c72)]}));for(let _0xee2a94=0x0;_0xee2a94<_0x1c2347[_0x3d43a4(0x1b32)][_0x3d43a4(0x402)];_0xee2a94++){_0x3d730a&&_0x1c2347['queues'][_0xee2a94]['id']===_0x3d730a['id']&&(_0x1c2347[_0x3d43a4(0x1b32)][_0xee2a94][_0x3d43a4(0x8ff)]=![],_0x5981b4[_0x3d43a4(0x1f47)](_0x1c2347[_0x3d43a4(0x1b32)][_0xee2a94]));}_0x1c2347[_0x3d43a4(0x1b32)]=_0x5981b4;}else{if(!_0x347b75['autoAssociation'])return _0x3cc83d[_0x3d43a4(0xdcc)][_0x3d43a4(0x16b4)]({'sectionId':_0x347b75['id']})[_0x3d43a4(0x2945)]['then'](function(_0xee5909){const _0x4fb65f=_0x3d43a4,_0x18fda7=_0x3f65c0()[_0x4fb65f(0x205)](_0xee5909[_0x4fb65f(0x19c7)],function(_0x2aa556){const _0x599799=_0x4fb65f;return _0x3f65c0()['find'](_0x1c2347[_0x599799(0x1b32)],{'id':_0x2aa556[_0x599799(0x18b8)]});});let _0x4ae121=null;_0x1c2347['queue']&&(_0x4ae121=_0x3f65c0()[_0x4fb65f(0xc84)](_0x1c2347['queues'],{'name':_0x1c2347[_0x4fb65f(0x1c72)]['queue']}));if(_0x4ae121&&!_0x3f65c0()['some'](_0x18fda7,['id',_0x4ae121['id']])){const _0x49438c=_0x3f65c0()['find'](_0x1c2347[_0x4fb65f(0x1b32)],{'id':_0x4ae121['id']});_0x49438c['canSelect']=![],_0x18fda7[_0x4fb65f(0x1f47)](_0x49438c);}_0x1c2347[_0x4fb65f(0x1b32)]=_0x18fda7;});}})['catch'](function(_0x340c95){const _0x7182bd=_0x2c1227;_0xb5f8b0[_0x7182bd(0x1980)]({'title':_0x340c95['status']?_0x7182bd(0x262a)+_0x340c95[_0x7182bd(0x107b)]+_0x7182bd(0x1315)+_0x340c95[_0x7182bd(0x167f)]:_0x7182bd(0x561),'msg':_0x340c95['data']?JSON[_0x7182bd(0x10bb)](_0x340c95[_0x7182bd(0x524)]):_0x340c95[_0x7182bd(0xd5f)]()});});function _0x165574(){const _0xffccad=_0x2c1227;_0x1c2347[_0xffccad(0xcef)]=[];const _0x16fb74=[];_0x1c2347['queue']['type']&&_0x1c2347[_0xffccad(0x1c72)][_0xffccad(0x1142)][_0xffccad(0x256e)]()==='outbound'&&_0x1c2347[_0xffccad(0x1c72)]['appType']===_0xffccad(0x118b)&&(_0x1c2347['queue'][_0xffccad(0x1d55)]=_0x51e53b[_0xffccad(0x1274)]?(_0x1c2347[_0xffccad(0x1c72)][_0xffccad(0x1e12)]||'')+_0xffccad(0x2147)+_0x51e53b[_0xffccad(0x1274)]+'}':(_0x1c2347[_0xffccad(0x1c72)][_0xffccad(0x1e12)]||'')+'${EXTEN}',_0x51e53b[_0xffccad(0x1425)]!==_0xffccad(0x1642)?_0x1c2347[_0xffccad(0x1c72)][_0xffccad(0xa08)][_0xffccad(0x172b)](_0xffccad(0x1ea4))<0x0&&(_0x1c2347[_0xffccad(0x1c72)][_0xffccad(0xa08)]+=_0xffccad(0x1ea4)):_0x1c2347['queue'][_0xffccad(0xa08)]=_0x1c2347['queue'][_0xffccad(0xa08)][_0xffccad(0x5f4)](_0xffccad(0x1ea4),''));const _0x52503c=_0x3f65c0()[_0xffccad(0xc84)](_0x1c2347[_0xffccad(0x1b32)],{'name':_0x1c2347[_0xffccad(0x1c72)][_0xffccad(0x1c72)]});_0x52503c&&(_0x1c2347[_0xffccad(0x1c72)][_0x3f65c0()[_0xffccad(0x83f)](_0xffccad(0x22d9))+_0xffccad(0x23f8)]=_0x52503c['id']);if(_0x1c2347[_0xffccad(0x1c72)][_0xffccad(0x8f2)]&&_0x1c2347[_0xffccad(0x1c72)][_0xffccad(0x8f2)]===_0xffccad(0x1802)){}else switch((_0x1c2347[_0xffccad(0x1c72)][_0xffccad(0x1873)]||_0x1c2347['queue'][_0xffccad(0x8f2)])[_0xffccad(0x256e)]()){case _0xffccad(0x26ba):_0x1c2347['queue'][_0xffccad(0x168a)]=_0x1c2347['queue'][_0xffccad(0x19eb)]+'='+_0x1c2347[_0xffccad(0x1c72)][_0xffccad(0x175d)];break;case'custom':break;default:_0x16fb74[0x0]=_0x1c2347[_0xffccad(0x1c72)]['queue'],_0x16fb74[0x1]=_0x1c2347[_0xffccad(0x1c72)][_0xffccad(0xa9c)],_0x1c2347[_0xffccad(0x1c72)][_0xffccad(0x168a)]=_0x16fb74[_0xffccad(0xb47)](',');}_0x2946ef(_0x1c2347[_0xffccad(0x1c72)]);}function _0x2946ef(_0x301291){_0x5c0d45['hide'](_0x301291);}}const _0x1219b2=_0xc33701;;_0x1199a3['$inject']=[_0x313a4d(0x10e8),'$q',_0x313a4d(0x1fe4),_0x313a4d(0x218a),'faxAccount',_0x313a4d(0x247f),'Auth',_0x313a4d(0x2514)];function _0x1199a3(_0x434626,_0x562782,_0x4b8f0d,_0x6ae2b2,_0x515239,_0x151207,_0x6d6e7a,_0x3b29b5){const _0x292ac2=_0x313a4d,_0x115fe1=this;_0x115fe1[_0x292ac2(0x2321)]=_0x6d6e7a[_0x292ac2(0xb12)](),_0x115fe1[_0x292ac2(0xcef)]=[],_0x115fe1[_0x292ac2(0x1189)]=_0x292ac2(0x196b)+(_0x6ae2b2[_0x292ac2(0x8f2)]||_0x6ae2b2[_0x292ac2(0x1873)])['toUpperCase'](),_0x115fe1[_0x292ac2(0x1d47)]=angular[_0x292ac2(0x235a)](_0x6ae2b2),_0x115fe1[_0x292ac2(0x2514)]=_0x3b29b5,_0x115fe1[_0x292ac2(0x855)]={};if(_0x115fe1[_0x292ac2(0x1d47)]['appdata'])switch(_0x115fe1[_0x292ac2(0x1d47)][_0x292ac2(0x8f2)]?_0x115fe1[_0x292ac2(0x1d47)][_0x292ac2(0x8f2)]['toLowerCase']():_0x115fe1[_0x292ac2(0x1d47)][_0x292ac2(0x1873)][_0x292ac2(0x256e)]()){case _0x292ac2(0x1802):break;case _0x292ac2(0xeaa):{const _0x42471d=_0x115fe1[_0x292ac2(0x1d47)][_0x292ac2(0x168a)]['split'](',');_0x115fe1['system'][_0x292ac2(0x2293)]=_0x42471d[0x0],_0x115fe1[_0x292ac2(0x1d47)][_0x292ac2(0x90b)]=_0x42471d[0x1],_0x115fe1['system']['welcomemessage']=_0x42471d[_0x292ac2(0x1298)](0x2,_0x42471d[_0x292ac2(0x402)])[_0x292ac2(0xb47)](',');}break;case _0x292ac2(0xa46):{const _0x472bde=_0x115fe1['system']['appdata'][_0x292ac2(0x10c8)](',');_0x115fe1[_0x292ac2(0x1d47)][_0x292ac2(0x153a)]=_0x472bde[0x0],_0x115fe1['system'][_0x292ac2(0x1392)]=_0x472bde[0x1],_0x115fe1[_0x292ac2(0x1d47)][_0x292ac2(0x2217)]=_0x472bde[0x2],_0x115fe1[_0x292ac2(0x1d47)][_0x292ac2(0x90b)]=_0x472bde[0x3],_0x115fe1[_0x292ac2(0x1d47)][_0x292ac2(0xaf3)]=_0x472bde[_0x292ac2(0x1298)](0x4,_0x472bde[_0x292ac2(0x402)])[_0x292ac2(0xb47)](',');}break;case _0x292ac2(0x17d6):{const _0x79efb3=_0x115fe1[_0x292ac2(0x1d47)][_0x292ac2(0x168a)][_0x292ac2(0x10c8)](',');_0x115fe1['system']['accesskeyid']=_0x79efb3[0x0],_0x115fe1['system'][_0x292ac2(0x252)]=_0x79efb3[0x1],_0x115fe1[_0x292ac2(0x1d47)]['lexregion']=_0x79efb3[0x2],_0x115fe1[_0x292ac2(0x1d47)][_0x292ac2(0x8dd)]=_0x79efb3[0x3],_0x115fe1['system'][_0x292ac2(0xaf3)]=_0x79efb3[_0x292ac2(0x1298)](0x4,_0x79efb3['length'])[_0x292ac2(0xb47)](',');}break;case'autoreply':{const _0x3ded47=_0x115fe1[_0x292ac2(0x1d47)][_0x292ac2(0x168a)][_0x292ac2(0x10c8)](',');_0x115fe1[_0x292ac2(0x1d47)][_0x292ac2(0x583)]=isNaN(_0x3ded47[0x0])?_0x3ded47[0x0]:parseInt(_0x3ded47[0x0],0xa),_0x115fe1[_0x292ac2(0x1d47)]['text']=_0x3ded47[_0x292ac2(0x1298)](0x1,_0x3ded47[_0x292ac2(0x402)])['join'](',');}break;case _0x292ac2(0x7fd):_0x115fe1[_0x292ac2(0x1d47)]['text']=_0x115fe1[_0x292ac2(0x1d47)][_0x292ac2(0x168a)];break;case _0x292ac2(0x26ba):_0x115fe1['system'][_0x292ac2(0x19eb)]=_0x115fe1[_0x292ac2(0x1d47)][_0x292ac2(0x168a)][_0x292ac2(0x10c8)]('=')[0x0],_0x115fe1[_0x292ac2(0x1d47)][_0x292ac2(0x175d)]=_0x115fe1[_0x292ac2(0x1d47)][_0x292ac2(0x168a)][_0x292ac2(0x10c8)]('=')[0x1];break;case'agi':_0x115fe1[_0x292ac2(0x1d47)]['project']=_0x115fe1[_0x292ac2(0x1d47)][_0x292ac2(0x168a)];break;default:{const _0xe3ef1b=_0x115fe1[_0x292ac2(0x1d47)][_0x292ac2(0x168a)][_0x292ac2(0x10c8)](',');_0x115fe1[_0x292ac2(0x1d47)][_0x292ac2(0x23e9)]=_0x3f65c0()[_0x292ac2(0x2635)](_0xe3ef1b[0x0])?_0xe3ef1b[0x0]:isNaN(_0xe3ef1b[0x0])?_0xe3ef1b[0x0]:parseInt(_0xe3ef1b[0x0],0xa),_0x115fe1[_0x292ac2(0x1d47)][_0x292ac2(0x212)]=_0x3f65c0()['isEmpty'](_0xe3ef1b[0x1])?_0xe3ef1b[0x1]:isNaN(_0xe3ef1b[0x1])?_0xe3ef1b[0x1]:parseInt(_0xe3ef1b[0x1],0xa);}}else _0x115fe1[_0x292ac2(0x1d47)]['variable']='';_0x115fe1[_0x292ac2(0x1d47)][_0x292ac2(0x1142)]&&_0x115fe1[_0x292ac2(0x1d47)][_0x292ac2(0x1142)][_0x292ac2(0x256e)]()===_0x292ac2(0xc9c)&&_0x115fe1[_0x292ac2(0x1d47)]['appType'][_0x292ac2(0x256e)]()==='outbounddial'&&(_0x115fe1[_0x292ac2(0x1d47)][_0x292ac2(0x1e12)]=_0x115fe1[_0x292ac2(0x1d47)][_0x292ac2(0x1d55)]?_0x115fe1[_0x292ac2(0x1d47)][_0x292ac2(0x1d55)]['split']('$')[0x0]:undefined,_0x115fe1[_0x292ac2(0x1d47)][_0x292ac2(0x1d43)]=_0x115fe1['system'][_0x292ac2(0x11be)]?'CALLERID(all)='+_0x115fe1[_0x292ac2(0x1d47)][_0x292ac2(0x11be)]:undefined);_0x115fe1[_0x292ac2(0x212c)]=_0x22883d,_0x115fe1[_0x292ac2(0x13f3)]=_0x1b88cb,_0x6d6e7a['hasRole'](_0x292ac2(0x174b))?_0x151207[_0x292ac2(0x212)]['get']({'fields':_0x292ac2(0x7a7),'sort':_0x292ac2(0x19eb),'nolimit':_0x292ac2(0x1185)})['$promise'][_0x292ac2(0x146b)](function(_0x24bd6e){const _0x6babc3=_0x292ac2;_0x115fe1[_0x6babc3(0x85b)]=_0x24bd6e['rows']||[];})[_0x292ac2(0x129e)](function(_0x55c833){const _0x51ae95=_0x292ac2;_0x4b8f0d[_0x51ae95(0x1980)]({'title':_0x55c833[_0x51ae95(0x107b)]?_0x51ae95(0x262a)+_0x55c833[_0x51ae95(0x107b)]+_0x51ae95(0x1315)+_0x55c833[_0x51ae95(0x167f)]:_0x51ae95(0x84b),'msg':_0x55c833[_0x51ae95(0x524)]?JSON[_0x51ae95(0x10bb)](_0x55c833[_0x51ae95(0x524)]):_0x55c833[_0x51ae95(0xd5f)]()});}):_0x151207[_0x292ac2(0x212)]['get']({'fields':_0x292ac2(0x7a7),'sort':_0x292ac2(0x19eb),'nolimit':_0x292ac2(0x1185)})[_0x292ac2(0x2945)][_0x292ac2(0x146b)](function(_0x32e276){const _0x4bffcd=_0x292ac2;_0x115fe1[_0x4bffcd(0x85b)]=_0x32e276[_0x4bffcd(0x19c7)]||[];})[_0x292ac2(0x146b)](function(){const _0x66bc01=_0x292ac2;return _0x151207[_0x66bc01(0x1366)][_0x66bc01(0x16b4)]({'userProfileId':_0x115fe1[_0x66bc01(0x2321)][_0x66bc01(0x209a)],'sectionId':0x3f4})[_0x66bc01(0x2945)];})[_0x292ac2(0x146b)](function(_0x29c104){const _0x1f4a4c=_0x292ac2,_0x138942=_0x29c104&&_0x29c104[_0x1f4a4c(0x19c7)]?_0x29c104[_0x1f4a4c(0x19c7)][0x0]:null;if(!_0x138942){const _0x4f2a42=[];let _0x137417=null;_0x115fe1[_0x1f4a4c(0x1d47)]&&(_0x137417=_0x3f65c0()[_0x1f4a4c(0xc84)](_0x115fe1[_0x1f4a4c(0x85b)],{'name':_0x115fe1['system'][_0x1f4a4c(0x212)]}));for(let _0x31c9f9=0x0;_0x31c9f9<_0x115fe1[_0x1f4a4c(0x85b)][_0x1f4a4c(0x402)];_0x31c9f9++){_0x137417&&_0x115fe1['variables'][_0x31c9f9]['id']===_0x137417['id']&&(_0x115fe1['variables'][_0x31c9f9]['canSelect']=![],_0x4f2a42[_0x1f4a4c(0x1f47)](_0x115fe1[_0x1f4a4c(0x85b)][_0x31c9f9]));}_0x115fe1['variables']=_0x4f2a42;}else{if(!_0x138942['autoAssociation'])return _0x151207['userProfileResource'][_0x1f4a4c(0x16b4)]({'sectionId':_0x138942['id']})[_0x1f4a4c(0x2945)][_0x1f4a4c(0x146b)](function(_0x4290db){const _0x1a56d3=_0x1f4a4c,_0x51dd29=_0x3f65c0()[_0x1a56d3(0x205)](_0x4290db[_0x1a56d3(0x19c7)],function(_0x54550d){const _0x2b6af2=_0x1a56d3;return _0x3f65c0()[_0x2b6af2(0xc84)](_0x115fe1[_0x2b6af2(0x85b)],{'id':_0x54550d['resourceId']});});let _0x3a2b0f=null;_0x115fe1[_0x1a56d3(0x1d47)]&&(_0x3a2b0f=_0x3f65c0()[_0x1a56d3(0xc84)](_0x115fe1['variables'],{'name':_0x115fe1[_0x1a56d3(0x1d47)]['variable']}));if(_0x3a2b0f&&!_0x3f65c0()[_0x1a56d3(0x1360)](_0x51dd29,['id',_0x3a2b0f['id']])){const _0x51d64c=_0x3f65c0()[_0x1a56d3(0xc84)](_0x115fe1[_0x1a56d3(0x85b)],{'id':_0x3a2b0f['id']});_0x51d64c[_0x1a56d3(0x8ff)]=![],_0x51dd29['push'](_0x51d64c);}_0x115fe1['variables']=_0x51dd29;});}})[_0x292ac2(0x129e)](function(_0x422ca3){const _0x5f326d=_0x292ac2;_0x4b8f0d[_0x5f326d(0x1980)]({'title':_0x422ca3[_0x5f326d(0x107b)]?_0x5f326d(0x262a)+_0x422ca3[_0x5f326d(0x107b)]+_0x5f326d(0x1315)+_0x422ca3[_0x5f326d(0x167f)]:_0x5f326d(0x493),'msg':_0x422ca3[_0x5f326d(0x524)]?JSON['stringify'](_0x422ca3[_0x5f326d(0x524)]):_0x422ca3[_0x5f326d(0xd5f)]()});});function _0x22883d(){const _0x436d13=_0x292ac2;_0x115fe1[_0x436d13(0xcef)]=[];const _0x21a307=[];_0x115fe1[_0x436d13(0x1d47)][_0x436d13(0x1142)]&&_0x115fe1[_0x436d13(0x1d47)][_0x436d13(0x1142)][_0x436d13(0x256e)]()==='outbound'&&_0x115fe1[_0x436d13(0x1d47)][_0x436d13(0x8f2)]==='outboundDial'&&(_0x115fe1[_0x436d13(0x1d47)]['phone']=_0x515239['cutdigits']?(_0x115fe1[_0x436d13(0x1d47)]['prefix']||'')+'${EXTEN:'+_0x515239[_0x436d13(0x1274)]+'}':(_0x115fe1['system'][_0x436d13(0x1e12)]||'')+'${EXTEN}',_0x515239[_0x436d13(0x1425)]!=='none'?_0x115fe1[_0x436d13(0x1d47)]['options'][_0x436d13(0x172b)](_0x436d13(0x1ea4))<0x0&&(_0x115fe1[_0x436d13(0x1d47)][_0x436d13(0xa08)]+=_0x436d13(0x1ea4)):_0x115fe1[_0x436d13(0x1d47)][_0x436d13(0xa08)]=_0x115fe1['system']['options']['replace'](_0x436d13(0x1ea4),''));if(_0x115fe1[_0x436d13(0x1d47)][_0x436d13(0x8f2)]&&_0x115fe1[_0x436d13(0x1d47)][_0x436d13(0x8f2)]===_0x436d13(0x1802)){}else switch((_0x115fe1[_0x436d13(0x1d47)][_0x436d13(0x1873)]||_0x115fe1[_0x436d13(0x1d47)][_0x436d13(0x8f2)])[_0x436d13(0x256e)]()){case _0x436d13(0x26ba):_0x115fe1[_0x436d13(0x1d47)][_0x436d13(0x168a)]=_0x115fe1[_0x436d13(0x1d47)][_0x436d13(0x19eb)]+'='+_0x115fe1[_0x436d13(0x1d47)]['value'];break;case'custom':break;default:_0x21a307[0x0]=_0x115fe1[_0x436d13(0x1d47)]['command'],_0x21a307[0x1]=_0x115fe1[_0x436d13(0x1d47)][_0x436d13(0x212)],_0x115fe1[_0x436d13(0x1d47)][_0x436d13(0x168a)]=_0x21a307['join'](',');}_0x1b88cb(_0x115fe1[_0x436d13(0x1d47)]);}function _0x1b88cb(_0x30520b){const _0x599ae4=_0x292ac2;_0x434626[_0x599ae4(0x2458)](_0x30520b);}}const _0x41197b=_0x1199a3;;_0x1c7459[_0x313a4d(0x11c2)]=['$mdDialog','$q',_0x313a4d(0x1fe4),_0x313a4d(0x218a),_0x313a4d(0x178),_0x313a4d(0x247f),'Auth',_0x313a4d(0x2514)];function _0x1c7459(_0x334abb,_0x301214,_0x2b6e54,_0x2e6867,_0x186072,_0x2280ac,_0x513ad5,_0x51dc54){const _0x492c4d=_0x313a4d,_0x57cd21=this;_0x57cd21['currentUser']=_0x513ad5[_0x492c4d(0xb12)](),_0x57cd21['errors']=[],_0x57cd21[_0x492c4d(0x1189)]=_0x492c4d(0x196b)+(_0x2e6867['appType']||_0x2e6867[_0x492c4d(0x1873)])[_0x492c4d(0x1c37)](),_0x57cd21['tag']=angular[_0x492c4d(0x235a)](_0x2e6867),_0x57cd21[_0x492c4d(0x2514)]=_0x51dc54,_0x57cd21[_0x492c4d(0x855)]={};if(_0x57cd21[_0x492c4d(0xa80)][_0x492c4d(0x168a)])switch(_0x57cd21[_0x492c4d(0xa80)][_0x492c4d(0x8f2)]?_0x57cd21[_0x492c4d(0xa80)][_0x492c4d(0x8f2)][_0x492c4d(0x256e)]():_0x57cd21[_0x492c4d(0xa80)][_0x492c4d(0x1873)]['toLowerCase']()){case'custom':break;case _0x492c4d(0xeaa):{const _0xc28d96=_0x57cd21[_0x492c4d(0xa80)][_0x492c4d(0x168a)][_0x492c4d(0x10c8)](',');_0x57cd21[_0x492c4d(0xa80)][_0x492c4d(0x2293)]=_0xc28d96[0x0],_0x57cd21[_0x492c4d(0xa80)][_0x492c4d(0x90b)]=_0xc28d96[0x1],_0x57cd21[_0x492c4d(0xa80)][_0x492c4d(0xaf3)]=_0xc28d96[_0x492c4d(0x1298)](0x2,_0xc28d96[_0x492c4d(0x402)])[_0x492c4d(0xb47)](',');}break;case _0x492c4d(0xa46):{const _0x234511=_0x57cd21['tag'][_0x492c4d(0x168a)][_0x492c4d(0x10c8)](',');_0x57cd21[_0x492c4d(0xa80)][_0x492c4d(0x153a)]=_0x234511[0x0],_0x57cd21[_0x492c4d(0xa80)]['clientEmail']=_0x234511[0x1],_0x57cd21[_0x492c4d(0xa80)][_0x492c4d(0x2217)]=_0x234511[0x2],_0x57cd21['tag'][_0x492c4d(0x90b)]=_0x234511[0x3],_0x57cd21[_0x492c4d(0xa80)]['welcomemessage']=_0x234511[_0x492c4d(0x1298)](0x4,_0x234511[_0x492c4d(0x402)])[_0x492c4d(0xb47)](',');}break;case _0x492c4d(0x17d6):{const _0x481e83=_0x57cd21[_0x492c4d(0xa80)][_0x492c4d(0x168a)][_0x492c4d(0x10c8)](',');_0x57cd21[_0x492c4d(0xa80)][_0x492c4d(0x1651)]=_0x481e83[0x0],_0x57cd21[_0x492c4d(0xa80)][_0x492c4d(0x252)]=_0x481e83[0x1],_0x57cd21['tag']['lexregion']=_0x481e83[0x2],_0x57cd21[_0x492c4d(0xa80)][_0x492c4d(0x8dd)]=_0x481e83[0x3],_0x57cd21[_0x492c4d(0xa80)]['welcomemessage']=_0x481e83['slice'](0x4,_0x481e83[_0x492c4d(0x402)])[_0x492c4d(0xb47)](',');}break;case'autoreply':{const _0x15bd82=_0x57cd21[_0x492c4d(0xa80)][_0x492c4d(0x168a)]['split'](',');_0x57cd21[_0x492c4d(0xa80)]['times']=isNaN(_0x15bd82[0x0])?_0x15bd82[0x0]:parseInt(_0x15bd82[0x0],0xa),_0x57cd21[_0x492c4d(0xa80)]['text']=_0x15bd82['slice'](0x1,_0x15bd82[_0x492c4d(0x402)])[_0x492c4d(0xb47)](',');}break;case _0x492c4d(0x7fd):_0x57cd21[_0x492c4d(0xa80)][_0x492c4d(0xa8d)]=_0x57cd21[_0x492c4d(0xa80)][_0x492c4d(0x168a)];break;case'set':_0x57cd21[_0x492c4d(0xa80)][_0x492c4d(0x19eb)]=_0x57cd21['tag'][_0x492c4d(0x168a)][_0x492c4d(0x10c8)]('=')[0x0],_0x57cd21[_0x492c4d(0xa80)][_0x492c4d(0x175d)]=_0x57cd21[_0x492c4d(0xa80)][_0x492c4d(0x168a)][_0x492c4d(0x10c8)]('=')[0x1];break;case _0x492c4d(0x1ecb):_0x57cd21[_0x492c4d(0xa80)][_0x492c4d(0x9e0)]=_0x57cd21['tag'][_0x492c4d(0x168a)];break;default:{const _0x15a5ab=_0x57cd21['tag'][_0x492c4d(0x168a)][_0x492c4d(0x10c8)](',');_0x57cd21[_0x492c4d(0xa80)][_0x492c4d(0xa80)]=_0x3f65c0()[_0x492c4d(0x2635)](_0x15a5ab[0x0])?_0x15a5ab[0x0]:isNaN(_0x15a5ab[0x0])?_0x15a5ab[0x0]:parseInt(_0x15a5ab[0x0],0xa);}break;}else{}_0x57cd21['tag'][_0x492c4d(0x1142)]&&_0x57cd21[_0x492c4d(0xa80)][_0x492c4d(0x1142)][_0x492c4d(0x256e)]()===_0x492c4d(0xc9c)&&_0x57cd21[_0x492c4d(0xa80)][_0x492c4d(0x8f2)]['toLowerCase']()==='outbounddial'&&(_0x57cd21[_0x492c4d(0xa80)][_0x492c4d(0x1e12)]=_0x57cd21['tag']['phone']?_0x57cd21['tag']['phone'][_0x492c4d(0x10c8)]('$')[0x0]:undefined,_0x57cd21['tag']['callerId']=_0x57cd21['tag'][_0x492c4d(0x11be)]?_0x492c4d(0x1b60)+_0x57cd21[_0x492c4d(0xa80)]['callerID']:undefined);_0x57cd21[_0x492c4d(0x212c)]=_0xf784e4,_0x57cd21['closeDialog']=_0x41016d,_0x513ad5['hasRole'](_0x492c4d(0x174b))?_0x2280ac[_0x492c4d(0xa80)][_0x492c4d(0x16b4)]({'fields':_0x492c4d(0x7a7),'sort':_0x492c4d(0x19eb),'nolimit':_0x492c4d(0x1185)})[_0x492c4d(0x2945)][_0x492c4d(0x146b)](function(_0x44d368){const _0x50c098=_0x492c4d;_0x57cd21[_0x50c098(0x1b86)]=_0x44d368[_0x50c098(0x19c7)]||[];})[_0x492c4d(0x129e)](function(_0x25adaa){const _0x106471=_0x492c4d;_0x2b6e54[_0x106471(0x1980)]({'title':_0x25adaa[_0x106471(0x107b)]?_0x106471(0x262a)+_0x25adaa[_0x106471(0x107b)]+_0x106471(0x1315)+_0x25adaa[_0x106471(0x167f)]:_0x106471(0x29c),'msg':_0x25adaa[_0x106471(0x524)]?JSON[_0x106471(0x10bb)](_0x25adaa[_0x106471(0x524)]):_0x25adaa[_0x106471(0xd5f)]()});}):_0x2280ac[_0x492c4d(0xa80)][_0x492c4d(0x16b4)]({'fields':_0x492c4d(0x7a7),'sort':_0x492c4d(0x19eb),'nolimit':_0x492c4d(0x1185)})[_0x492c4d(0x2945)]['then'](function(_0x2c9f97){const _0x25e6fd=_0x492c4d;_0x57cd21[_0x25e6fd(0x1b86)]=_0x2c9f97[_0x25e6fd(0x19c7)]||[];})[_0x492c4d(0x146b)](function(){const _0x27069b=_0x492c4d;return _0x2280ac[_0x27069b(0x1366)][_0x27069b(0x16b4)]({'userProfileId':_0x57cd21[_0x27069b(0x2321)][_0x27069b(0x209a)],'sectionId':0x3f0})[_0x27069b(0x2945)];})[_0x492c4d(0x146b)](function(_0x3c49ad){const _0x51c433=_0x492c4d,_0x4443ee=_0x3c49ad&&_0x3c49ad[_0x51c433(0x19c7)]?_0x3c49ad['rows'][0x0]:null;if(!_0x4443ee){const _0x492b92=[];let _0x11b9b6=null;_0x57cd21[_0x51c433(0xa80)]&&(_0x11b9b6=_0x3f65c0()['find'](_0x57cd21['tags'],{'name':_0x57cd21[_0x51c433(0xa80)][_0x51c433(0xa80)]}));for(let _0x1af3a4=0x0;_0x1af3a4<_0x57cd21[_0x51c433(0x1b86)]['length'];_0x1af3a4++){_0x11b9b6&&_0x57cd21[_0x51c433(0x1b86)][_0x1af3a4]['id']===_0x11b9b6['id']&&(_0x57cd21[_0x51c433(0x1b86)][_0x1af3a4]['canSelect']=![],_0x492b92[_0x51c433(0x1f47)](_0x57cd21['tags'][_0x1af3a4]));}_0x57cd21[_0x51c433(0x1b86)]=_0x492b92;}else{if(!_0x4443ee['autoAssociation'])return _0x2280ac[_0x51c433(0xdcc)][_0x51c433(0x16b4)]({'sectionId':_0x4443ee['id']})[_0x51c433(0x2945)][_0x51c433(0x146b)](function(_0x36b209){const _0x266f47=_0x51c433,_0x308859=_0x3f65c0()[_0x266f47(0x205)](_0x36b209[_0x266f47(0x19c7)],function(_0x4eb1b2){const _0x4f25f5=_0x266f47;return _0x3f65c0()[_0x4f25f5(0xc84)](_0x57cd21[_0x4f25f5(0x1b86)],{'id':_0x4eb1b2['resourceId']});});let _0x24f5f1=null;_0x57cd21[_0x266f47(0xa80)]&&(_0x24f5f1=_0x3f65c0()['find'](_0x57cd21['tags'],{'name':_0x57cd21[_0x266f47(0xa80)][_0x266f47(0xa80)]}));if(_0x24f5f1&&!_0x3f65c0()[_0x266f47(0x1360)](_0x308859,['id',_0x24f5f1['id']])){const _0x20c9d4=_0x3f65c0()[_0x266f47(0xc84)](_0x57cd21[_0x266f47(0x1b86)],{'id':_0x24f5f1['id']});_0x20c9d4['canSelect']=![],_0x308859[_0x266f47(0x1f47)](_0x20c9d4);}_0x57cd21[_0x266f47(0x1b86)]=_0x308859;});}})[_0x492c4d(0x129e)](function(_0x2837cd){const _0x1d3966=_0x492c4d;_0x2b6e54[_0x1d3966(0x1980)]({'title':_0x2837cd[_0x1d3966(0x107b)]?_0x1d3966(0x262a)+_0x2837cd[_0x1d3966(0x107b)]+_0x1d3966(0x1315)+_0x2837cd[_0x1d3966(0x167f)]:'SYSTEM:GETtags','msg':_0x2837cd[_0x1d3966(0x524)]?JSON['stringify'](_0x2837cd['data']):_0x2837cd['toString']()});});function _0xf784e4(){const _0xd3c471=_0x492c4d;_0x57cd21['errors']=[];const _0x286bd8=[];_0x57cd21[_0xd3c471(0xa80)]['type']&&_0x57cd21[_0xd3c471(0xa80)]['type'][_0xd3c471(0x256e)]()===_0xd3c471(0xc9c)&&_0x57cd21[_0xd3c471(0xa80)][_0xd3c471(0x8f2)]===_0xd3c471(0x118b)&&(_0x57cd21['tag'][_0xd3c471(0x1d55)]=_0x186072['cutdigits']?(_0x57cd21[_0xd3c471(0xa80)][_0xd3c471(0x1e12)]||'')+'${EXTEN:'+_0x186072[_0xd3c471(0x1274)]+'}':(_0x57cd21[_0xd3c471(0xa80)][_0xd3c471(0x1e12)]||'')+_0xd3c471(0x20df),_0x186072[_0xd3c471(0x1425)]!=='none'?_0x57cd21[_0xd3c471(0xa80)]['options'][_0xd3c471(0x172b)](_0xd3c471(0x1ea4))<0x0&&(_0x57cd21[_0xd3c471(0xa80)][_0xd3c471(0xa08)]+=_0xd3c471(0x1ea4)):_0x57cd21['tag'][_0xd3c471(0xa08)]=_0x57cd21['tag']['options']['replace']('U(xcally-mixmonitor-context)',''));const _0x3f91d3=_0x3f65c0()['find'](_0x57cd21['tags'],{'name':_0x57cd21[_0xd3c471(0xa80)][_0xd3c471(0xa80)]});_0x3f91d3&&(_0x57cd21[_0xd3c471(0xa80)]['TagId']=_0x3f91d3['id']);if(_0x57cd21[_0xd3c471(0xa80)][_0xd3c471(0x8f2)]&&_0x57cd21[_0xd3c471(0xa80)]['appType']===_0xd3c471(0x1802)){}else switch((_0x57cd21[_0xd3c471(0xa80)][_0xd3c471(0x1873)]||_0x57cd21[_0xd3c471(0xa80)][_0xd3c471(0x8f2)])['toLowerCase']()){case _0xd3c471(0x26ba):_0x57cd21[_0xd3c471(0xa80)][_0xd3c471(0x168a)]=_0x57cd21[_0xd3c471(0xa80)]['name']+'='+_0x57cd21[_0xd3c471(0xa80)][_0xd3c471(0x175d)];break;case _0xd3c471(0x1802):break;default:_0x286bd8[0x0]=_0x57cd21['tag'][_0xd3c471(0xa80)],_0x57cd21[_0xd3c471(0xa80)][_0xd3c471(0x168a)]=_0x286bd8['join'](',');}_0x41016d(_0x57cd21[_0xd3c471(0xa80)]);}function _0x41016d(_0x21fffa){const _0x3aa264=_0x492c4d;_0x334abb[_0x3aa264(0x2458)](_0x21fffa);}}const _0x18f868=_0x1c7459;;_0x64004d['$inject']=[_0x313a4d(0x910),_0x313a4d(0x1aa9),_0x313a4d(0x1862),_0x313a4d(0x15fe),_0x313a4d(0x10e8),_0x313a4d(0x4d8),_0x313a4d(0x1abe),'$translate',_0x313a4d(0x247f),_0x313a4d(0x1fe4),_0x313a4d(0xa87)];function _0x64004d(_0x296020,_0x5bcdee,_0x516748,_0xad3910,_0x2d0fbe,_0xf45bc6,_0x1d4f2c,_0x16bf4a,_0x3629d1,_0x2f0366,_0x13b7ae){const _0x4c9367=_0x313a4d,_0x5d893f=this;_0x5d893f[_0x4c9367(0x2321)]=_0x13b7ae[_0x4c9367(0xb12)](),_0x5d893f[_0x4c9367(0x2647)]={'count':0x0,'rows':[]},_0x5d893f['selectedDispositions']=[],_0x5d893f[_0x4c9367(0x2514)],_0x5d893f[_0x4c9367(0xd92)]={'first':'1st','second':_0x4c9367(0x227b),'third':_0x4c9367(0x1195)},_0x5d893f[_0x4c9367(0x1a56)]={'fields':'id,level,name,description,ParentId,createdAt,updatedAt','sort':_0x4c9367(0x12f2),'limit':0xa,'page':0x1},_0x5d893f[_0x4c9367(0x5aa)]=_0xa49ad7,_0x5d893f[_0x4c9367(0x19b4)]=_0x48c807,_0x5d893f['success']=_0x5d6c26,_0x5d893f['getDispositions']=_0x4d7c6d,_0x5d893f['createOrEditDisposition']=_0x23a561,_0x5d893f[_0x4c9367(0x1220)]=_0x1d44b1,_0x5d893f['exportSelectedDispositions']=_0x1cd4a7,_0x5d893f[_0x4c9367(0x11e4)]=_0x1cc2f2,_0x5d893f[_0x4c9367(0x4f0)]=_0x228563,_0x5d893f[_0x4c9367(0x481)]=_0x3302e6;function _0xa49ad7(_0x2bc643,_0xb179a9){const _0x52e43d=_0x4c9367;_0x5d893f[_0x52e43d(0x178)]=_0x2bc643||{},_0x5d893f[_0x52e43d(0x2514)]=typeof _0xb179a9!=='undefined'?_0xb179a9:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x5d893f[_0x52e43d(0x1a56)][_0x52e43d(0x74d)]=_0x5d893f[_0x52e43d(0x178)]['id'],_0x5d893f['query']['id']=_0x5d893f[_0x52e43d(0x178)]['id'],_0x4d7c6d();}function _0x23a561(_0x3b5c3c,_0x13c864){const _0x4f57a4=_0x4c9367;_0x2d0fbe[_0x4f57a4(0x2615)]({'controller':_0x4f57a4(0x1a84),'controllerAs':'vm','templateUrl':_0x4f093a,'parent':angular['element'](_0xf45bc6['body']),'targetEvent':_0x3b5c3c,'clickOutsideToClose':!![],'locals':{'disposition':_0x13c864,'model':{'id':_0x5d893f['faxAccount']['id'],'field':_0x4f57a4(0x74d),'route':_0x4f57a4(0x178)},'license':null,'setting':null,'crudPermissions':_0x5d893f[_0x4f57a4(0x2514)]}})[_0x4f57a4(0x146b)](function(_0x441da0){if(_0x441da0)_0x4d7c6d();});}function _0x48c807(_0x3e0e74,_0x2cde30){const _0x444ff7=_0x4c9367,_0x30bf19=_0x3f65c0()[_0x444ff7(0x1360)](_0x5d893f[_0x444ff7(0x2647)]['rows'],[_0x444ff7(0x11b5),_0x3e0e74['id']]),_0x1dee87=_0x2d0fbe[_0x444ff7(0x1e8a)]()[_0x444ff7(0x1189)](_0x16bf4a[_0x444ff7(0xde)](_0x444ff7(0x19e6)))[_0x444ff7(0x80f)](_0x16bf4a[_0x444ff7(0xde)](_0x444ff7(0xe8d)+(_0x30bf19?'DISPOSITION_DELETE_MESSAGE_CHILDREN':_0x444ff7(0xd49)),{'name':_0x3e0e74[_0x444ff7(0x19eb)]}))['ariaLabel'](_0x444ff7(0x27d1))[_0x444ff7(0x1f27)](_0x2cde30)['ok']('OK')[_0x444ff7(0x6c3)](_0x16bf4a[_0x444ff7(0xde)](_0x444ff7(0x1161)));_0x2d0fbe[_0x444ff7(0x2615)](_0x1dee87)['then'](function(){_0x1d44b1(_0x3e0e74);});}function _0x5d6c26(_0x24ee37){_0x5d893f['dispositions']=_0x24ee37||{'count':0x0,'rows':[]};}function _0x4d7c6d(){const _0x540be4=_0x4c9367;_0x5d893f[_0x540be4(0x1a56)][_0x540be4(0x145d)]=(_0x5d893f[_0x540be4(0x1a56)][_0x540be4(0x844)]-0x1)*_0x5d893f['query'][_0x540be4(0x221e)],_0x5d893f[_0x540be4(0xb9c)]=_0x3629d1[_0x540be4(0x178)]['getDispositions'](_0x5d893f['query'],_0x5d6c26)[_0x540be4(0x2945)];}function _0x1d44b1(_0x112c60){const _0x393bbe=_0x4c9367;_0x3629d1[_0x393bbe(0x9e1)][_0x393bbe(0x1fac)]({'id':_0x112c60['id']})[_0x393bbe(0x2945)][_0x393bbe(0x146b)](function(){const _0x4b3409=_0x393bbe;_0x4d7c6d(),_0x2f0366['success']({'title':_0x16bf4a['instant'](_0x4b3409(0xa2f))});})[_0x393bbe(0x129e)](function(_0x4f1c6d){const _0x10354c=_0x393bbe;if(_0x4f1c6d[_0x10354c(0x524)]&&_0x4f1c6d[_0x10354c(0x524)]['errors']&&_0x4f1c6d[_0x10354c(0x524)][_0x10354c(0xcef)][_0x10354c(0x402)]){_0x5d893f['errors']=_0x4f1c6d[_0x10354c(0x524)][_0x10354c(0xcef)]||[{'message':_0x4f1c6d['toString'](),'type':_0x10354c(0x24a7)}];for(let _0x58ceda=0x0;_0x58ceda<_0x4f1c6d[_0x10354c(0x524)][_0x10354c(0xcef)][_0x10354c(0x402)];_0x58ceda++){_0x2f0366[_0x10354c(0x1980)]({'title':_0x4f1c6d[_0x10354c(0x524)][_0x10354c(0xcef)][_0x58ceda][_0x10354c(0x1142)],'msg':_0x4f1c6d['data'][_0x10354c(0xcef)][_0x58ceda][_0x10354c(0x7fd)]});}}else _0x2f0366[_0x10354c(0x1980)]({'title':_0x4f1c6d[_0x10354c(0x107b)]?_0x10354c(0x262a)+_0x4f1c6d[_0x10354c(0x107b)]+'\x20-\x20'+_0x4f1c6d['statusText']:'SYSTEM:DELETEdisposition','msg':_0x4f1c6d[_0x10354c(0x524)]?JSON[_0x10354c(0x10bb)](_0x4f1c6d[_0x10354c(0x524)]['message']):_0x4f1c6d['message']||_0x4f1c6d[_0x10354c(0xd5f)]()});});}function _0x1cd4a7(){const _0xd44807=_0x4c9367,_0x4be4e4=angular[_0xd44807(0x235a)](_0x5d893f[_0xd44807(0x2ad)]);return _0x5d893f[_0xd44807(0x2ad)]=[],_0x4be4e4;}function _0x1cc2f2(_0x497e7b){const _0x4bd234=_0x4c9367,_0x3369b4=_0x2d0fbe[_0x4bd234(0x1e8a)]()[_0x4bd234(0x1189)](_0x16bf4a[_0x4bd234(0xde)](_0x4bd234(0x1a5b)))['content'](_0x16bf4a[_0x4bd234(0xde)](_0x4bd234(0x23ce),{'total':_0x5d893f[_0x4bd234(0x2ad)][_0x4bd234(0x402)]}))[_0x4bd234(0x4bd)](_0x4bd234(0x1eb0))['targetEvent'](_0x497e7b)['ok']('OK')['cancel'](_0x16bf4a['instant'](_0x4bd234(0x1161)));_0x2d0fbe[_0x4bd234(0x2615)](_0x3369b4)[_0x4bd234(0x146b)](function(){const _0x3dc172=_0x4bd234;_0x5d893f[_0x3dc172(0x2ad)][_0x3dc172(0x1df5)](function(_0x40b40e){_0x1d44b1(_0x40b40e);}),_0x5d893f[_0x3dc172(0x2ad)]=[];});}function _0x228563(){_0x5d893f['selectedDispositions']=[];}function _0x3302e6(){const _0x4f8664=_0x4c9367;_0x5d893f[_0x4f8664(0x2ad)]=_0x5d893f['dispositions'][_0x4f8664(0x19c7)];}let _0x9392e9=!![],_0x461bfb=0x1;_0x296020[_0x4c9367(0x21e8)]('vm_dc.query.filter',function(_0xa22b23,_0xe7491d){const _0x56609c=_0x4c9367;_0x9392e9?_0x1d4f2c(function(){_0x9392e9=![];}):(!_0xe7491d&&(_0x461bfb=_0x5d893f[_0x56609c(0x1a56)][_0x56609c(0x844)]),_0xa22b23!==_0xe7491d&&(_0x5d893f[_0x56609c(0x1a56)][_0x56609c(0x844)]=0x1),!_0xa22b23&&(_0x5d893f['query'][_0x56609c(0x844)]=_0x461bfb),_0x4d7c6d());});}const _0x4a2050=_0x64004d;;_0x1d6d1a[_0x313a4d(0x11c2)]=[_0x313a4d(0x23df),_0x313a4d(0x910),_0x313a4d(0x1862),'$q',_0x313a4d(0x214b),_0x313a4d(0x1abe),'$mdDialog',_0x313a4d(0x4d8),_0x313a4d(0x1fe4),_0x313a4d(0x247f),_0x313a4d(0xa87)];function _0x1d6d1a(_0xe086f6,_0x57a77f,_0xd9df12,_0x5725df,_0x4c1232,_0x360f7a,_0x318376,_0x587cdb,_0xff0ab4,_0x1412be,_0x4b748c){const _0x18d321=_0x313a4d,_0xd90cf9=this;_0xd90cf9['currentUser']=_0x4b748c[_0x18d321(0xb12)](),_0xd90cf9[_0x18d321(0x178)]={},_0xd90cf9[_0x18d321(0xe4b)]={'count':0x0,'rows':[]},_0xd90cf9[_0x18d321(0x3e6)]=[],_0xd90cf9['crudPermissions'],_0xd90cf9[_0x18d321(0x1a56)]={'read':_0x18d321(0x203c),'closed':'null','sort':_0x18d321(0xd6f),'includeAll':'true','limit':0xa,'page':0x1},_0xd90cf9[_0x18d321(0x5aa)]=_0x4ad303,_0xd90cf9[_0x18d321(0x19b4)]=_0x3e486b,_0xd90cf9[_0x18d321(0x1f5)]=_0x3405aa,_0xd90cf9['success']=_0x201f7d,_0xd90cf9[_0x18d321(0xe0)]=_0x57cd2d,_0xd90cf9[_0x18d321(0x1e20)]=_0x5d7963,_0xd90cf9[_0x18d321(0x21a6)]=_0x15526a,_0xd90cf9[_0x18d321(0x82a)]=_0x1882d0,_0xd90cf9[_0x18d321(0x20b8)]=_0x46c151,_0xd90cf9['deleteSelectedFaxAccountInteractions']=_0x4e0f6a;function _0x4ad303(_0x57a264,_0xce3270){const _0x2cb2ee=_0x18d321;_0xd90cf9[_0x2cb2ee(0x178)]=_0x57a264,_0xd90cf9[_0x2cb2ee(0x2514)]=typeof _0xce3270!==_0x2cb2ee(0x2274)?_0xce3270:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0xd90cf9[_0x2cb2ee(0x1a56)][_0x2cb2ee(0x74d)]=_0xd90cf9[_0x2cb2ee(0x178)]['id'],_0xd90cf9[_0x2cb2ee(0xe93)]={'fields':_0x1fc678()},_0x34d2db();}function _0x34d2db(){const _0x3b6249=_0x18d321;return _0x1412be['tag']['get']()['$promise']['then'](function(_0x39a708){const _0x142bfb=a0_0x3bb9;_0xd90cf9[_0x142bfb(0x1b86)]=_0x39a708||{'count':0x0,'rows':[]};})[_0x3b6249(0x146b)](function(){const _0x4d76a1=_0x3b6249;_0xd90cf9[_0x4d76a1(0x28af)]=_0x39bb62();});}function _0x39bb62(){const _0x54a08a=_0x18d321;return[{'name':'Start\x20Date','key':_0x54a08a(0xc68),'type':_0x54a08a(0x1a10),'label':_0x54a08a(0x2902)},{'name':_0x54a08a(0x1c7c),'key':'read','type':'select','label':'DASHBOARDS.SELECT_READ_UNREAD','customOptions':[{'value':0x0,'translate':_0x54a08a(0x33f)},{'value':0x1,'translate':'DASHBOARDS.READ'},{'value':null,'translate':_0x54a08a(0x175e)}]},{'name':_0x54a08a(0x74e),'key':_0x54a08a(0x1943),'type':_0x54a08a(0xa5f),'label':'DASHBOARDS.SELECT_STATUS','customOptions':[{'value':0x0,'translate':_0x54a08a(0x143b)},{'value':0x1,'translate':_0x54a08a(0x1805)},{'value':null,'translate':_0x54a08a(0x175e)}]},{'name':_0x54a08a(0x294a),'key':'UserId','type':_0x54a08a(0xa5f),'label':_0x54a08a(0x127),'customOptions':[{'value':'null','translate':'DASHBOARDS.NOT_ASSIGNED'},{'value':undefined,'translate':'DASHBOARDS.ALL'}]},{'name':_0x54a08a(0x23a8),'key':_0x54a08a(0xa80),'type':_0x54a08a(0x175c),'label':_0x54a08a(0x1c0e),'options':_0xd90cf9['tags'][_0x54a08a(0x19c7)],'placeholder':_0x54a08a(0x66f)}];}function _0x1fc678(){const _0x232b17=_0x18d321;return[{'name':'Id','column':'id','type':_0x232b17(0x181)},{'name':_0x232b17(0x364),'column':_0x232b17(0x364),'type':_0x232b17(0x14ee),'options':{'searchFields':[_0x232b17(0x1ed4),_0x232b17(0xee4),'email'],'route':{'model':_0x232b17(0x18c3),'action':_0x232b17(0x16b4),'params':{'fields':_0x232b17(0x992),'Contact':_0x232b17(0x3fb),'nolimit':!![]}},'extraOperators':[_0x232b17(0xacb)],'excludedOperators':[_0x232b17(0x1671)]}},{'name':_0x232b17(0x11e1),'column':_0x232b17(0xe32),'type':_0x232b17(0xa8d),'options':{'excludedOperators':[_0x232b17(0x6be),_0x232b17(0x1671)]}},{'name':_0x232b17(0x710),'column':_0x232b17(0xb80),'type':_0x232b17(0xa8d),'options':{'excludedOperators':[_0x232b17(0x6be),_0x232b17(0x1671)]}},{'name':_0x232b17(0x74e),'column':_0x232b17(0x1943),'type':_0x232b17(0xa5f),'values':[{'id':0x0,'translate':_0x232b17(0x143b)},{'id':0x1,'translate':'DASHBOARDS.CLOSED'}],'options':{'excludedOperators':[_0x232b17(0x1671)]}},{'name':_0x232b17(0x294a),'column':_0x232b17(0x2393),'type':_0x232b17(0x14ee),'options':{'table':'i','route':{'model':'user','action':_0x232b17(0x16b4),'params':{'role':_0x232b17(0x1755),'fields':'id,name,fullname','nolimit':!![]}},'searchFields':[_0x232b17(0x286a),_0x232b17(0x19eb)],'extraOperators':[_0x232b17(0xacb)],'excludedOperators':[_0x232b17(0x1671)]}},{'name':_0x232b17(0x2331),'column':_0x232b17(0x23a8),'type':'multiselect','options':{'route':{'model':_0x232b17(0xa80),'action':_0x232b17(0x16b4),'params':{'nolimit':!![]}},'excludedOperators':[_0x232b17(0xbe5)]}},{'name':'Start\x20Date','column':_0x232b17(0xc68),'type':_0x232b17(0x1a10),'options':{'excludedOperators':[_0x232b17(0x1671)]}},{'name':_0x232b17(0x270b),'column':_0x232b17(0x26a6),'type':'select','values':[{'id':0x1,'translate':_0x232b17(0x1ce6)},{'id':0x0,'translate':_0x232b17(0x33f)}],'options':{'excludedOperators':[_0x232b17(0x1671)]}}];}function _0x15526a(){const _0x1a3a8b=_0x18d321;_0x318376[_0x1a3a8b(0x2615)]({'controller':_0x1a3a8b(0x26bc),'controllerAs':'vm','templateUrl':_0x3fb128,'parent':angular[_0x1a3a8b(0x1853)](_0x587cdb['body']),'clickOutsideToClose':![],'locals':{'fields':_0xd90cf9[_0x1a3a8b(0xe93)][_0x1a3a8b(0x2867)],'color':undefined,'storagePath':_0x1a3a8b(0xd1c)},'fullscreen':!![]})[_0x1a3a8b(0x146b)](function(_0x579d60){const _0x3992be=_0x1a3a8b;_0xd90cf9['query'][_0x3992be(0x21da)]=_0x579d60===![]?undefined:_0x579d60;if(_0xd90cf9['query']['search'])_0x57cd2d();else _0x579d60===![]&&_0x57cd2d();})[_0x1a3a8b(0x129e)](function(_0x2f6eab){const _0x1042f6=_0x1a3a8b;_0xff0ab4[_0x1042f6(0x1980)]({'title':_0x1042f6(0x10f5),'msg':_0x2f6eab[_0x1042f6(0x524)]?JSON['stringify'](_0x2f6eab[_0x1042f6(0x524)][_0x1042f6(0x7fd)]):_0x2f6eab[_0x1042f6(0xd5f)]()});});}function _0x3405aa(_0x18afd7,_0x527a7a,_0xceac9c){const _0x2b92ac=_0x18d321;return _0x1412be[_0x2b92ac(0xe5b)][_0x2b92ac(0x15b1)]({'id':_0x18afd7['id'],'exists':!![],'attachments':_0xceac9c})['$promise']['then'](function(_0xc2ca1f){const _0x31d92b=_0x2b92ac,_0x19fc90=[_0xc2ca1f[_0x31d92b(0x2eb)]];let _0x4c9a0c=_0x31d92b(0xe80)+_0x18afd7['id'];const _0x3f5095=new Blob(_0x19fc90,{'type':_0xc2ca1f[_0x31d92b(0x1142)]});_0x4c9a0c=_0x31d92b(0x200d)+_0x18afd7['id']+_0x31d92b(0xf04);const _0x3edba9=window[_0x31d92b(0xef3)]['createElement']('a');_0x3edba9[_0x31d92b(0x1652)](_0x31d92b(0x1b3c),URL[_0x31d92b(0x1c58)](_0x3f5095)),_0x3edba9[_0x31d92b(0x1652)](_0x31d92b(0x15b1),_0x4c9a0c),document['body'][_0x31d92b(0x23e)](_0x3edba9),_0x3edba9[_0x31d92b(0x1fa5)]();})[_0x2b92ac(0x129e)](function(_0x550f9c){const _0x331d4f=_0x2b92ac;if(_0x550f9c[_0x331d4f(0x524)]&&_0x550f9c[_0x331d4f(0x524)][_0x331d4f(0xcef)]&&_0x550f9c[_0x331d4f(0x524)][_0x331d4f(0xcef)][_0x331d4f(0x402)])for(let _0x4ff8c1=0x0;_0x4ff8c1<_0x550f9c['data'][_0x331d4f(0xcef)][_0x331d4f(0x402)];_0x4ff8c1+=0x1){_0xff0ab4[_0x331d4f(0x1980)]({'title':_0x550f9c[_0x331d4f(0x524)][_0x331d4f(0xcef)][_0x4ff8c1][_0x331d4f(0x1142)],'msg':_0x550f9c['data'][_0x331d4f(0xcef)][_0x4ff8c1][_0x331d4f(0x7fd)]});}else _0xff0ab4[_0x331d4f(0x1980)]({'title':_0x550f9c[_0x331d4f(0x107b)]?'API:'+_0x550f9c[_0x331d4f(0x107b)]+_0x331d4f(0x1315)+_0x550f9c[_0x331d4f(0x167f)]:_0x331d4f(0x20ca),'msg':_0x550f9c[_0x331d4f(0x524)]?JSON[_0x331d4f(0x10bb)](_0x550f9c[_0x331d4f(0x524)][_0x331d4f(0x7fd)]):_0x550f9c['toString']()});});}function _0x3e486b(_0x15e034,_0x1d2475){const _0x5c2d57=_0x18d321,_0x2e77f2=_0x318376[_0x5c2d57(0x1e8a)]()[_0x5c2d57(0x1189)](_0x5c2d57(0x1f40))['htmlContent'](_0x5c2d57(0x16d3)+(_0x15e034[_0x5c2d57(0x19eb)]||_0x15e034['id']&&_0x3f65c0()[_0x5c2d57(0x21cf)]('interaction\x20#')+_0x15e034['id']||_0x5c2d57(0xe80))+_0x5c2d57(0x252f)+_0x5c2d57(0xe01))[_0x5c2d57(0x4bd)](_0x5c2d57(0xcab))[_0x5c2d57(0x1f27)](_0x1d2475)['ok']('OK')[_0x5c2d57(0x6c3)](_0x5c2d57(0x39a));_0x318376[_0x5c2d57(0x2615)](_0x2e77f2)['then'](function(){_0x46c151(_0x15e034);},function(){const _0x57bcc9=_0x5c2d57;console[_0x57bcc9(0x1a74)](_0x57bcc9(0x39a));});}function _0x201f7d(_0x27fa62){const _0x336ad5=_0x18d321;_0xd90cf9[_0x336ad5(0xe4b)]=_0x27fa62||{'count':0x0,'rows':[]};for(let _0x585b80=0x0;_0x585b80<_0xd90cf9[_0x336ad5(0xe4b)][_0x336ad5(0x19c7)]['length'];_0x585b80+=0x1){const _0x53350c=_0xd90cf9[_0x336ad5(0xe4b)][_0x336ad5(0x19c7)][_0x585b80];_0x10321a(_0x53350c),_0x53350c[_0x336ad5(0xac5)]['name']=_0x14680d(_0x53350c);}}function _0x57cd2d(){const _0x9c65c4=_0x18d321;_0xd90cf9[_0x9c65c4(0x1a56)][_0x9c65c4(0x145d)]=(_0xd90cf9['query'][_0x9c65c4(0x844)]-0x1)*_0xd90cf9[_0x9c65c4(0x1a56)]['limit'],_0xd90cf9['promise']=_0x1412be[_0x9c65c4(0xe5b)]['get'](_0xd90cf9[_0x9c65c4(0x1a56)],_0x201f7d)['$promise'];}function _0x5d7963(_0x135f8b,_0x24d3a8){const _0x168c33=_0x18d321;_0x318376[_0x168c33(0x2615)]({'controller':_0x168c33(0xd2c),'controllerAs':'vm','templateUrl':_0x270cc0,'parent':angular[_0x168c33(0x1853)](_0x587cdb[_0x168c33(0x2586)]),'targetEvent':_0x135f8b,'clickOutsideToClose':!![],'onShowing':function(_0x4b6a31){const _0x5ccdeb=_0x168c33;_0x4b6a31['vm'][_0x5ccdeb(0x5aa)]({'id':0x1,'channel':'fax','interaction':_0x24d3a8,'spy':!![]},_0x57a77f[_0x5ccdeb(0x2870)]['vm']['setting']);}});}function _0x46c151(_0xc34dac){const _0x22eaac=_0x18d321;_0x1412be['faxInteraction'][_0x22eaac(0x1fac)]({'id':_0xc34dac['id']})[_0x22eaac(0x2945)][_0x22eaac(0x146b)](function(){const _0x34e6d4=_0x22eaac;_0x3f65c0()[_0x34e6d4(0x2640)](_0xd90cf9[_0x34e6d4(0xe4b)][_0x34e6d4(0x19c7)],{'id':_0xc34dac['id']}),_0xd90cf9[_0x34e6d4(0xe4b)][_0x34e6d4(0x51c)]-=0x1,!_0xd90cf9[_0x34e6d4(0xe4b)][_0x34e6d4(0x19c7)]['length']&&_0x57cd2d(),_0xff0ab4[_0x34e6d4(0x1c75)]({'title':_0x34e6d4(0x739),'msg':_0xc34dac[_0x34e6d4(0x19eb)]?_0xc34dac['name']+_0x34e6d4(0x23e3):''});})[_0x22eaac(0x129e)](function(_0x418493){const _0x359e07=_0x22eaac;if(_0x418493[_0x359e07(0x524)]&&_0x418493['data']['errors']&&_0x418493[_0x359e07(0x524)]['errors'][_0x359e07(0x402)]){_0xd90cf9[_0x359e07(0xcef)]=_0x418493[_0x359e07(0x524)][_0x359e07(0xcef)]||[{'message':_0x418493[_0x359e07(0xd5f)](),'type':'SYSTEM:GETfaxAccount'}];for(let _0x3a3e2e=0x0;_0x3a3e2e<_0x418493[_0x359e07(0x524)][_0x359e07(0xcef)][_0x359e07(0x402)];_0x3a3e2e++){_0xff0ab4[_0x359e07(0x1980)]({'title':_0x418493[_0x359e07(0x524)][_0x359e07(0xcef)][_0x3a3e2e][_0x359e07(0x1142)],'msg':_0x418493[_0x359e07(0x524)][_0x359e07(0xcef)][_0x3a3e2e]['message']});}}else _0xff0ab4[_0x359e07(0x1980)]({'title':_0x418493[_0x359e07(0x107b)]?'API:'+_0x418493['status']+_0x359e07(0x1315)+_0x418493[_0x359e07(0x167f)]:_0x359e07(0x11b4),'msg':_0x418493[_0x359e07(0x524)]?JSON[_0x359e07(0x10bb)](_0x418493[_0x359e07(0x524)][_0x359e07(0x7fd)]):_0x418493[_0x359e07(0x7fd)]||_0x418493[_0x359e07(0xd5f)]()});});}function _0x1882d0(){const _0x5265e7=_0x18d321,_0x222cbc=angular[_0x5265e7(0x235a)](_0xd90cf9['selectedFaxAccountInteractions']);return _0xd90cf9[_0x5265e7(0x3e6)]=[],_0x222cbc;}function _0x4e0f6a(_0x382a7f){const _0x4bb2cf=_0x18d321,_0x58d430=_0x318376[_0x4bb2cf(0x1e8a)]()[_0x4bb2cf(0x1189)](_0x4bb2cf(0x2283))[_0x4bb2cf(0x1cbe)](''+_0xd90cf9[_0x4bb2cf(0x3e6)][_0x4bb2cf(0x402)]+_0x4bb2cf(0x2452)+_0x4bb2cf(0xe01))['ariaLabel'](_0x4bb2cf(0xa37))['targetEvent'](_0x382a7f)['ok']('OK')[_0x4bb2cf(0x6c3)](_0x4bb2cf(0x39a));_0x318376[_0x4bb2cf(0x2615)](_0x58d430)[_0x4bb2cf(0x146b)](function(){const _0x10a7a5=_0x4bb2cf;_0xd90cf9[_0x10a7a5(0x3e6)]['forEach'](function(_0x396739){_0x46c151(_0x396739);}),_0xd90cf9['selectedFaxAccountInteractions']=[];});}function _0x10321a(_0x142210){const _0x54ba50=_0x18d321;_0x142210[_0x54ba50(0x364)]?(_0x142210[_0x54ba50(0x792)]=(_0x142210['Contact'][_0x54ba50(0x1ed4)]||'')+'\x20'+(_0x142210[_0x54ba50(0x364)][_0x54ba50(0xee4)]||''),_0x142210[_0x54ba50(0x14e3)]=_0x142210[_0x54ba50(0x364)][_0x54ba50(0x22d9)]):_0x142210[_0x54ba50(0x792)]=_0x4c1232[_0x54ba50(0xde)](_0x54ba50(0xe0b));}function _0x14680d(_0x594974){const _0xda8199=_0x18d321;if(_0x594974[_0xda8199(0xea2)])return _0x594974[_0xda8199(0xea2)]===_0xd90cf9[_0xda8199(0x2321)]['id']?_0x4c1232[_0xda8199(0xde)](_0xda8199(0x6d9)):_0x594974['Owner'][_0xda8199(0x286a)]+'\x20<'+_0x594974[_0xda8199(0xac5)][_0xda8199(0x113f)]+'>';return _0x4c1232['instant'](_0xda8199(0x38d));}let _0x12c80e=!![],_0x1b5f11=0x1;_0x57a77f[_0x18d321(0x21e8)](_0x18d321(0x117f),function(_0x33917c,_0x28b16e){const _0x539c28=_0x18d321;_0x12c80e?_0x360f7a(function(){_0x12c80e=![];}):(!_0x28b16e&&(_0x1b5f11=_0xd90cf9[_0x539c28(0x1a56)][_0x539c28(0x844)]),_0x33917c!==_0x28b16e&&(_0xd90cf9[_0x539c28(0x1a56)][_0x539c28(0x844)]=0x1),!_0x33917c&&(_0xd90cf9[_0x539c28(0x1a56)][_0x539c28(0x844)]=_0x1b5f11),_0x57cd2d());});}const _0x1012d9=_0x1d6d1a;;const _0x159145=_0x4acfac['p']+_0x313a4d(0x552);;_0x37f3aa[_0x313a4d(0x11c2)]=[_0x313a4d(0x1862),'$location','$mdDialog',_0x313a4d(0x4d8),_0x313a4d(0x214b),_0x313a4d(0x2690),'setting',_0x313a4d(0x247f),_0x313a4d(0x1fe4),_0x313a4d(0xa87),_0x313a4d(0x178),'userProfileSection'];function _0x37f3aa(_0x564b64,_0x5479f9,_0x3efeb8,_0x31b8d4,_0x387aea,_0x4e72bc,_0x7b5690,_0x3718ea,_0x3d9e6b,_0x172c14,_0x40b019,_0x2e6ded){const _0x5019e1=_0x313a4d,_0x58e16f=this;_0x58e16f[_0x5019e1(0x2321)]=_0x172c14[_0x5019e1(0xb12)](),_0x58e16f[_0x5019e1(0x2690)]=_0x4e72bc,_0x58e16f['setting']=_0x7b5690,_0x58e16f[_0x5019e1(0x2251)]=_0x58e16f['setting'][_0x5019e1(0x976)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x58e16f[_0x5019e1(0x1002)]=_0x5479f9[_0x5019e1(0x2414)]()+_0x5019e1(0xb0e)+_0x5479f9[_0x5019e1(0x148e)](),_0x58e16f[_0x5019e1(0x178)]=_0x40b019||_0x564b64[_0x5019e1(0x16a)]['faxAccount']||{},_0x58e16f[_0x5019e1(0x1366)]=_0x2e6ded&&_0x2e6ded[_0x5019e1(0x51c)]==0x1?_0x2e6ded[_0x5019e1(0x19c7)][0x0]:null,_0x58e16f['crudPermissions']=_0x172c14[_0x5019e1(0xe60)](_0x58e16f[_0x5019e1(0x1366)]?_0x58e16f['userProfileSection'][_0x5019e1(0x2514)]:null),_0x58e16f[_0x5019e1(0x855)]={},_0x58e16f[_0x5019e1(0x1b09)]=_0x564b64[_0x5019e1(0x16a)][_0x5019e1(0x13a3)]||0x0,_0x58e16f[_0x5019e1(0x3a9)]=_0x26b140,_0x58e16f[_0x5019e1(0x1027)]=_0x2a4223,_0x58e16f[_0x5019e1(0x861)]=_0x3d9e6b[_0x5019e1(0x271e)],_0x58e16f[_0x5019e1(0x21b)]=_0x150604,_0x58e16f[_0x5019e1(0x1dc1)]=_0x2d31d2,_0x172c14[_0x5019e1(0x23e0)]('admin')?_0x3718ea[_0x5019e1(0x279f)]['get']({'fields':_0x5019e1(0x7a7),'sort':_0x5019e1(0x19eb)})[_0x5019e1(0x2945)][_0x5019e1(0x146b)](function(_0x327f0f){const _0x169e69=_0x5019e1;_0x58e16f[_0x169e69(0x2433)]=_0x327f0f[_0x169e69(0x19c7)]||[];})['catch'](function(_0x1a287c){const _0x3a2b50=_0x5019e1;_0x3d9e6b[_0x3a2b50(0x1980)]({'title':_0x1a287c[_0x3a2b50(0x107b)]?_0x3a2b50(0x262a)+_0x1a287c[_0x3a2b50(0x107b)]+_0x3a2b50(0x1315)+_0x1a287c[_0x3a2b50(0x167f)]:_0x3a2b50(0xfc0),'msg':_0x1a287c[_0x3a2b50(0x524)]?JSON['stringify'](_0x1a287c[_0x3a2b50(0x524)]):_0x1a287c[_0x3a2b50(0xd5f)]()});}):_0x3718ea['trunk'][_0x5019e1(0x16b4)]({'fields':_0x5019e1(0x7a7),'sort':'name'})[_0x5019e1(0x2945)][_0x5019e1(0x146b)](function(_0xd2276b){const _0x12d095=_0x5019e1;_0x58e16f[_0x12d095(0x2433)]=_0xd2276b[_0x12d095(0x19c7)]||[];})[_0x5019e1(0x146b)](function(){const _0x2248f7=_0x5019e1;return _0x3718ea[_0x2248f7(0x1366)][_0x2248f7(0x16b4)]({'userProfileId':_0x58e16f[_0x2248f7(0x2321)]['userProfileId'],'sectionId':0x3f3})[_0x2248f7(0x2945)];})['then'](function(_0x7020c5){const _0x1eb6ba=_0x5019e1,_0x43bbad=_0x7020c5&&_0x7020c5['rows']?_0x7020c5[_0x1eb6ba(0x19c7)][0x0]:null;if(!_0x43bbad){const _0x547827=[];let _0x7dfa6d=null;_0x58e16f[_0x1eb6ba(0x178)]&&(_0x7dfa6d=_0x3f65c0()['find'](_0x58e16f[_0x1eb6ba(0x2433)],{'id':Number(_0x58e16f[_0x1eb6ba(0x178)][_0x1eb6ba(0x1b77)])}));for(let _0x393c30=0x0;_0x393c30<_0x58e16f['trunks'][_0x1eb6ba(0x402)];_0x393c30++){_0x7dfa6d&&_0x58e16f[_0x1eb6ba(0x2433)][_0x393c30]['id']===_0x7dfa6d['id']&&(_0x58e16f[_0x1eb6ba(0x2433)][_0x393c30][_0x1eb6ba(0x8ff)]=![],_0x547827[_0x1eb6ba(0x1f47)](_0x58e16f['trunks'][_0x393c30]));}_0x58e16f['trunks']=_0x547827;}else{if(!_0x43bbad[_0x1eb6ba(0x11d2)])return _0x3718ea[_0x1eb6ba(0xdcc)]['get']({'sectionId':_0x43bbad['id']})[_0x1eb6ba(0x2945)]['then'](function(_0x5edbe9){const _0xa2a9d=_0x1eb6ba,_0x4c6745=_0x3f65c0()[_0xa2a9d(0x205)](_0x5edbe9[_0xa2a9d(0x19c7)],function(_0x49229f){const _0x4fa48f=_0xa2a9d;return _0x3f65c0()['find'](_0x58e16f[_0x4fa48f(0x2433)],{'id':_0x49229f[_0x4fa48f(0x18b8)]});});let _0x11ff61=null;_0x58e16f[_0xa2a9d(0x178)]&&(_0x11ff61=_0x3f65c0()[_0xa2a9d(0xc84)](_0x58e16f[_0xa2a9d(0x2433)],{'id':Number(_0x58e16f['faxAccount'][_0xa2a9d(0x1b77)])}));if(_0x11ff61&&!_0x3f65c0()[_0xa2a9d(0x1360)](_0x4c6745,['id',_0x11ff61['id']])){const _0x1f94a9=_0x3f65c0()[_0xa2a9d(0xc84)](_0x58e16f['trunks'],{'id':_0x11ff61['id']});_0x1f94a9[_0xa2a9d(0x8ff)]=![],_0x4c6745[_0xa2a9d(0x1f47)](_0x1f94a9);}_0x58e16f[_0xa2a9d(0x2433)]=_0x4c6745;});}})[_0x5019e1(0x129e)](function(_0x52f623){const _0x21614b=_0x5019e1;_0x3d9e6b[_0x21614b(0x1980)]({'title':_0x52f623[_0x21614b(0x107b)]?_0x21614b(0x262a)+_0x52f623['status']+_0x21614b(0x1315)+_0x52f623['statusText']:_0x21614b(0x2436),'msg':_0x52f623[_0x21614b(0x524)]?JSON['stringify'](_0x52f623['data']):_0x52f623[_0x21614b(0xd5f)]()});}),_0x172c14[_0x5019e1(0x23e0)](_0x5019e1(0x174b))?_0x3718ea[_0x5019e1(0xf03)][_0x5019e1(0x16b4)]({'fields':_0x5019e1(0x7a7),'sort':_0x5019e1(0x19eb)})[_0x5019e1(0x2945)]['then'](function(_0x1fbefc){const _0x10d252=_0x5019e1;_0x58e16f[_0x10d252(0x1324)]=_0x1fbefc[_0x10d252(0x19c7)]||[];})[_0x5019e1(0x129e)](function(_0xb29268){const _0x542f5e=_0x5019e1;_0x3d9e6b['error']({'title':_0xb29268[_0x542f5e(0x107b)]?_0x542f5e(0x262a)+_0xb29268[_0x542f5e(0x107b)]+_0x542f5e(0x1315)+_0xb29268[_0x542f5e(0x167f)]:'SYSTEM:GET_LISTS','msg':_0xb29268[_0x542f5e(0x524)]?JSON[_0x542f5e(0x10bb)](_0xb29268[_0x542f5e(0x524)]):_0xb29268[_0x542f5e(0xd5f)]()});}):_0x3718ea[_0x5019e1(0xf03)][_0x5019e1(0x16b4)]({'fields':'id,name','sort':'name'})[_0x5019e1(0x2945)][_0x5019e1(0x146b)](function(_0x90630b){const _0x4d09a7=_0x5019e1;_0x58e16f[_0x4d09a7(0x1324)]=_0x90630b[_0x4d09a7(0x19c7)]||[];})['then'](function(){const _0x201678=_0x5019e1;return _0x3718ea[_0x201678(0x1366)][_0x201678(0x16b4)]({'userProfileId':_0x58e16f[_0x201678(0x2321)][_0x201678(0x209a)],'sectionId':0x12d})[_0x201678(0x2945)];})[_0x5019e1(0x146b)](function(_0x578b19){const _0x41005c=_0x5019e1,_0x237025=_0x578b19&&_0x578b19[_0x41005c(0x19c7)]?_0x578b19[_0x41005c(0x19c7)][0x0]:null;if(!_0x237025){const _0x57fac4=[];let _0x279353=null;_0x58e16f[_0x41005c(0x178)]&&(_0x279353=_0x3f65c0()[_0x41005c(0xc84)](_0x58e16f['lists'],{'id':Number(_0x58e16f[_0x41005c(0x178)][_0x41005c(0xb7c)])}));for(let _0x251b12=0x0;_0x251b12<_0x58e16f['lists'][_0x41005c(0x402)];_0x251b12++){_0x279353&&_0x58e16f[_0x41005c(0x1324)][_0x251b12]['id']===_0x279353['id']&&(_0x58e16f[_0x41005c(0x1324)][_0x251b12][_0x41005c(0x8ff)]=![],_0x57fac4[_0x41005c(0x1f47)](_0x58e16f[_0x41005c(0x1324)][_0x251b12]));}_0x58e16f[_0x41005c(0x1324)]=_0x57fac4;}else{if(!_0x237025[_0x41005c(0x11d2)])return _0x3718ea[_0x41005c(0xdcc)]['get']({'sectionId':_0x237025['id']})['$promise'][_0x41005c(0x146b)](function(_0x10595b){const _0x16f09f=_0x41005c,_0x50e423=_0x3f65c0()[_0x16f09f(0x205)](_0x10595b['rows'],function(_0x3672f1){const _0x49b3e8=_0x16f09f;return _0x3f65c0()[_0x49b3e8(0xc84)](_0x58e16f['lists'],{'id':_0x3672f1['resourceId']});});let _0xceda08=null;_0x58e16f[_0x16f09f(0x178)]&&(_0xceda08=_0x3f65c0()[_0x16f09f(0xc84)](_0x58e16f[_0x16f09f(0x1324)],{'id':Number(_0x58e16f['faxAccount']['ListId'])}));if(_0xceda08&&!_0x3f65c0()['some'](_0x50e423,['id',_0xceda08['id']])){const _0xc63235=_0x3f65c0()[_0x16f09f(0xc84)](_0x58e16f[_0x16f09f(0x1324)],{'id':_0xceda08['id']});_0xc63235[_0x16f09f(0x8ff)]=![],_0x50e423[_0x16f09f(0x1f47)](_0xc63235);}_0x58e16f[_0x16f09f(0x1324)]=_0x50e423;});}})[_0x5019e1(0x129e)](function(_0x41ae46){const _0x48c636=_0x5019e1;_0x3d9e6b[_0x48c636(0x1980)]({'title':_0x41ae46[_0x48c636(0x107b)]?_0x48c636(0x262a)+_0x41ae46[_0x48c636(0x107b)]+_0x48c636(0x1315)+_0x41ae46['statusText']:_0x48c636(0x1a2f),'msg':_0x41ae46[_0x48c636(0x524)]?JSON[_0x48c636(0x10bb)](_0x41ae46[_0x48c636(0x524)]):_0x41ae46[_0x48c636(0xd5f)]()});}),_0x172c14[_0x5019e1(0x23e0)](_0x5019e1(0x174b))?_0x3718ea[_0x5019e1(0x1e3e)][_0x5019e1(0x16b4)]({'fields':_0x5019e1(0x69a),'sort':'name','nolimit':_0x5019e1(0x1185)})['$promise'][_0x5019e1(0x146b)](function(_0x38fddf){const _0xa372e5=_0x5019e1;_0x58e16f['pauses']=_0x38fddf[_0xa372e5(0x19c7)]||[];})[_0x5019e1(0x129e)](function(_0x2a74b3){const _0x9fb993=_0x5019e1;_0x3d9e6b[_0x9fb993(0x1980)]({'title':_0x2a74b3['status']?_0x9fb993(0x262a)+_0x2a74b3[_0x9fb993(0x107b)]+'\x20-\x20'+_0x2a74b3[_0x9fb993(0x167f)]:_0x9fb993(0x1e82),'msg':_0x2a74b3[_0x9fb993(0x524)]?JSON[_0x9fb993(0x10bb)](_0x2a74b3['data']):_0x2a74b3[_0x9fb993(0xd5f)]()});}):_0x3718ea[_0x5019e1(0x1e3e)][_0x5019e1(0x16b4)]({'fields':_0x5019e1(0x69a),'sort':_0x5019e1(0x19eb),'nolimit':_0x5019e1(0x1185)})[_0x5019e1(0x2945)][_0x5019e1(0x146b)](function(_0x64f8c6){const _0x4d8b9b=_0x5019e1;_0x58e16f[_0x4d8b9b(0x23bb)]=_0x64f8c6[_0x4d8b9b(0x19c7)]||[];})[_0x5019e1(0x146b)](function(){const _0x3e9608=_0x5019e1;return _0x3718ea['userProfileSection'][_0x3e9608(0x16b4)]({'userProfileId':_0x58e16f[_0x3e9608(0x2321)][_0x3e9608(0x209a)],'sectionId':0x3ed})[_0x3e9608(0x2945)];})[_0x5019e1(0x146b)](function(_0x196cd7){const _0x56ae7d=_0x5019e1,_0xbf98d=_0x196cd7&&_0x196cd7[_0x56ae7d(0x19c7)]?_0x196cd7[_0x56ae7d(0x19c7)][0x0]:null;if(!_0xbf98d)_0x58e16f[_0x56ae7d(0x23bb)]=[];else{if(!_0xbf98d['autoAssociation'])return _0x3718ea['userProfileResource'][_0x56ae7d(0x16b4)]({'sectionId':_0xbf98d['id']})[_0x56ae7d(0x2945)]['then'](function(_0x26f5c8){const _0x4966da=_0x56ae7d,_0x2fc99b=_0x3f65c0()[_0x4966da(0x205)](_0x26f5c8['rows'],function(_0x50114d){const _0x456696=_0x4966da;return _0x3f65c0()[_0x456696(0xc84)](_0x58e16f[_0x456696(0x23bb)],{'id':_0x50114d[_0x456696(0x18b8)]});});_0x58e16f[_0x4966da(0x23bb)]['forEach'](function(_0x1cb6c0){const _0x8a2015=_0x4966da;!_0x3f65c0()['some'](_0x2fc99b,['id',_0x1cb6c0['id']])&&(_0x1cb6c0['canSelect']=![]),_0x2fc99b[_0x8a2015(0x1f47)](_0x1cb6c0);}),_0x58e16f[_0x4966da(0x23bb)]=_0x2fc99b;});}})[_0x5019e1(0x129e)](function(_0x441e5a){const _0x49e50f=_0x5019e1;_0x3d9e6b[_0x49e50f(0x1980)]({'title':_0x441e5a[_0x49e50f(0x107b)]?'API:'+_0x441e5a[_0x49e50f(0x107b)]+_0x49e50f(0x1315)+_0x441e5a[_0x49e50f(0x167f)]:_0x49e50f(0x176),'msg':_0x441e5a[_0x49e50f(0x524)]?JSON['stringify'](_0x441e5a[_0x49e50f(0x524)]):_0x441e5a[_0x49e50f(0xd5f)]()});});function _0x26b140(){const _0x115fb3=_0x5019e1;if(_0x172c14[_0x115fb3(0x23e0)]('admin'))_0x564b64['go']('app.fax.realtime.accounts',{});else return _0x3718ea[_0x115fb3(0x1366)][_0x115fb3(0x16b4)]({'userProfileId':_0x172c14[_0x115fb3(0xb12)]()[_0x115fb3(0x209a)],'sectionId':0x38e})[_0x115fb3(0x2945)][_0x115fb3(0x146b)](function(_0x5f2fa7){const _0x57ceb6=_0x115fb3,_0x2d1d3d=_0x5f2fa7&&_0x5f2fa7[_0x57ceb6(0x19c7)]?_0x5f2fa7[_0x57ceb6(0x19c7)][0x0]:null;_0x2d1d3d&&_0x2d1d3d['enabled']?_0x564b64['go']('app.fax.realtime.accounts',{}):_0x3d9e6b[_0x57ceb6(0x271e)]({'title':_0x387aea['instant'](_0x57ceb6(0xb27)),'msg':_0x387aea['instant'](_0x57ceb6(0x174a))});})[_0x115fb3(0x129e)](function(_0x2b8b08){const _0x1b7640=_0x115fb3;_0x3d9e6b[_0x1b7640(0x1980)]({'title':_0x2b8b08[_0x1b7640(0x107b)]?_0x1b7640(0x262a)+_0x2b8b08[_0x1b7640(0x107b)]+_0x1b7640(0x1315)+_0x2b8b08[_0x1b7640(0x167f)]:_0x1b7640(0x698),'msg':_0x2b8b08[_0x1b7640(0x107b)]?JSON[_0x1b7640(0x10bb)](_0x2b8b08['data']):_0x2b8b08[_0x1b7640(0xd5f)]()});});}function _0x2a4223(_0xdaf43b,_0x4281c4){const _0x31f952=_0x5019e1;_0x3efeb8[_0x31f952(0x2615)]({'controller':_0x31f952(0x12e5),'controllerAs':'vm','templateUrl':_0x159145,'parent':angular[_0x31f952(0x1853)](_0x31b8d4[_0x31f952(0x2586)]),'targetEvent':_0x4281c4,'clickOutsideToClose':!![],'locals':{'faxAccount':_0xdaf43b,'faxAccounts':_0x58e16f['faxAccounts']?_0x58e16f[_0x31f952(0x8a9)][_0x31f952(0x19c7)]:[],'crudPermissions':_0x58e16f[_0x31f952(0x2514)],'realtime':![]}});}function _0x150604(){const _0x3542ae=_0x5019e1;_0x564b64['go'](_0x3542ae(0x2078),{},{'reload':'app.fax.faxAccounts'});}function _0x2d31d2(){const _0x1dc1b3=_0x5019e1;_0x3718ea[_0x1dc1b3(0x178)][_0x1dc1b3(0x1361)](_0x58e16f[_0x1dc1b3(0x178)])[_0x1dc1b3(0x2945)][_0x1dc1b3(0x146b)](function(){const _0x3950be=_0x1dc1b3;_0x3d9e6b['success']({'title':_0x3950be(0xdca),'msg':_0x58e16f['faxAccount'][_0x3950be(0x19eb)]?_0x58e16f[_0x3950be(0x178)][_0x3950be(0x19eb)]+'\x20has\x20been\x20updated!':''});})[_0x1dc1b3(0x129e)](function(_0x4d77db){const _0x816c24=_0x1dc1b3;_0x3d9e6b[_0x816c24(0x1980)]({'title':_0x4d77db['status']?_0x816c24(0x262a)+_0x4d77db[_0x816c24(0x107b)]+_0x816c24(0x1315)+_0x4d77db[_0x816c24(0x167f)]:'SYSTEM:GETfaxAccount','msg':_0x4d77db[_0x816c24(0x524)]?JSON['stringify'](_0x4d77db[_0x816c24(0x524)]):_0x4d77db['toString']()});});}}const _0x3ad628=_0x37f3aa;;const _0x4152da=_0x4acfac['p']+'src/js/modules/main/apps/fax/views/faxAccounts/create/dialog.html/dialog.html';;_0x4b334d['$inject']=[_0x313a4d(0x910),_0x313a4d(0x1aa9),'$state',_0x313a4d(0x15fe),_0x313a4d(0x10e8),_0x313a4d(0x4d8),_0x313a4d(0x1abe),'$translate','faxAccounts',_0x313a4d(0x26b6),_0x313a4d(0x1366),_0x313a4d(0x247f),_0x313a4d(0x216c),_0x313a4d(0x1fe4),'Auth',_0x313a4d(0x2690),'setting'];function _0x4b334d(_0x1f36d7,_0x5622d8,_0x326995,_0x1f0061,_0xf9a04b,_0xe83c0,_0x213ff6,_0x26dde8,_0x1c2379,_0x1dd983,_0x47344e,_0x2a2d82,_0x218eda,_0x1d6487,_0xb26ecb,_0x22500e,_0x29cdd4){const _0x2727bd=_0x313a4d,_0x5a1dd8=this;_0x5a1dd8[_0x2727bd(0x2690)]=_0x22500e,_0x5a1dd8['setting']=_0x29cdd4,_0x5a1dd8[_0x2727bd(0x2321)]=_0xb26ecb[_0x2727bd(0xb12)](),_0x5a1dd8[_0x2727bd(0x8a9)]=_0x1c2379||{'count':0x0,'rows':[]},_0x5a1dd8['userProfile']=_0x1dd983,_0x5a1dd8[_0x2727bd(0x1366)]=_0x47344e&&_0x47344e[_0x2727bd(0x51c)]==0x1?_0x47344e[_0x2727bd(0x19c7)][0x0]:null,_0x5a1dd8[_0x2727bd(0x2514)]=_0xb26ecb['parseCrudPermissions'](_0x5a1dd8['userProfileSection']?_0x5a1dd8[_0x2727bd(0x1366)][_0x2727bd(0x2514)]:null),_0x5a1dd8[_0x2727bd(0x768)]=_0x2727bd(0x8a9),_0x5a1dd8[_0x2727bd(0x216a)]='',_0x5a1dd8[_0x2727bd(0x214f)]=null,_0x5a1dd8[_0x2727bd(0x353)]=[],_0x5a1dd8[_0x2727bd(0x1a56)]={'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':_0x2727bd(0x12f2),'limit':0xa,'page':0x1},_0x5a1dd8[_0x2727bd(0x271c)]=_0x3f65c0()['keyBy']([{'option':'yes','value':_0x2727bd(0x2339)},{'option':'no','value':_0x2727bd(0x74f)}],function(_0x157a03){const _0xd73907=_0x2727bd;return _0x3f65c0()[_0xd73907(0x5f4)](_0x157a03[_0xd73907(0x175d)],new RegExp('\x27','g'),'');}),_0x5a1dd8[_0x2727bd(0x283c)]=_0x3f65c0()[_0x2727bd(0x194)]([{'option':_0x2727bd(0x6e1),'value':_0x2727bd(0x4a3)},{'option':_0x2727bd(0x1bb1),'value':_0x2727bd(0x92c)},{'option':_0x2727bd(0x189a),'value':_0x2727bd(0x1c9e)},{'option':_0x2727bd(0x7d2),'value':_0x2727bd(0x390)},{'option':_0x2727bd(0x32d),'value':_0x2727bd(0x2118)},{'option':'14400','value':'\x2714400\x27'}],function(_0x37cddd){const _0x33c75a=_0x2727bd;return _0x3f65c0()[_0x33c75a(0x5f4)](_0x37cddd['value'],new RegExp('\x27','g'),'');}),_0x5a1dd8['arraymaxrate']=_0x3f65c0()[_0x2727bd(0x194)]([{'option':_0x2727bd(0x6e1),'value':'\x272400\x27'},{'option':_0x2727bd(0x1bb1),'value':_0x2727bd(0x92c)},{'option':_0x2727bd(0x189a),'value':_0x2727bd(0x1c9e)},{'option':_0x2727bd(0x7d2),'value':_0x2727bd(0x390)},{'option':_0x2727bd(0x32d),'value':'\x2712000\x27'},{'option':'14400','value':_0x2727bd(0x109)}],function(_0x4889c3){const _0x392e99=_0x2727bd;return _0x3f65c0()[_0x392e99(0x5f4)](_0x4889c3['value'],new RegExp('\x27','g'),'');}),_0x5a1dd8['arraytech']=_0x3f65c0()['keyBy']([{'option':'SIP','value':'\x27SIP\x27'},{'option':'IAX','value':_0x2727bd(0x2507)},{'option':_0x2727bd(0x19de),'value':'\x27DADHI\x27'},{'option':'KHOMP','value':'\x27KHOMP\x27'}],function(_0x2ea7e5){return _0x3f65c0()['replace'](_0x2ea7e5['value'],new RegExp('\x27','g'),'');}),_0x5a1dd8['editstate']=_0x20ad6d,_0x5a1dd8['interactionsgoto']=_0x32bd66,_0x5a1dd8[_0x2727bd(0x138d)]=_0x3eb5b4,_0x5a1dd8[_0x2727bd(0x1027)]=_0xc28826,_0x5a1dd8[_0x2727bd(0xf0a)]=_0x23a54b,_0x5a1dd8[_0x2727bd(0x1c75)]=_0x1ed28d,_0x5a1dd8[_0x2727bd(0x12d0)]=_0x3024e5,_0x5a1dd8[_0x2727bd(0x1993)]=_0x26d7bd,_0x5a1dd8[_0x2727bd(0x20ed)]=_0x4b6425,_0x5a1dd8[_0x2727bd(0x7b1)]=_0x329fc2,_0x5a1dd8[_0x2727bd(0x612)]=_0x70aa4c,_0x5a1dd8[_0x2727bd(0x5f2)]=_0x12f984,_0x5a1dd8[_0x2727bd(0x215)]=_0x1cf1f5,_0xb26ecb[_0x2727bd(0x23e0)](_0x2727bd(0x174b))?_0x2a2d82[_0x2727bd(0x279f)][_0x2727bd(0x16b4)]({'fields':'id,name','sort':'name'})['$promise']['then'](function(_0x49bc86){const _0x2e6281=_0x2727bd;_0x5a1dd8[_0x2e6281(0x2433)]=_0x49bc86[_0x2e6281(0x19c7)]||[];})[_0x2727bd(0x129e)](function(_0x461c61){const _0x23406d=_0x2727bd;_0x1d6487['error']({'title':_0x461c61[_0x23406d(0x107b)]?_0x23406d(0x262a)+_0x461c61[_0x23406d(0x107b)]+_0x23406d(0x1315)+_0x461c61[_0x23406d(0x167f)]:_0x23406d(0xfc0),'msg':_0x461c61['data']?JSON[_0x23406d(0x10bb)](_0x461c61[_0x23406d(0x524)]):_0x461c61['toString']()});}):_0x2a2d82[_0x2727bd(0x279f)][_0x2727bd(0x16b4)]({'fields':'id,name','sort':_0x2727bd(0x19eb)})['$promise'][_0x2727bd(0x146b)](function(_0x1da83d){const _0x352621=_0x2727bd;_0x5a1dd8[_0x352621(0x2433)]=_0x1da83d[_0x352621(0x19c7)]||[];})[_0x2727bd(0x146b)](function(){const _0x348893=_0x2727bd;return _0x2a2d82['userProfileSection'][_0x348893(0x16b4)]({'userProfileId':_0x5a1dd8[_0x348893(0x2321)][_0x348893(0x209a)],'sectionId':0x3f3})['$promise'];})[_0x2727bd(0x146b)](function(_0x50dfa0){const _0xa2321e=_0x2727bd,_0x5436ed=_0x50dfa0&&_0x50dfa0[_0xa2321e(0x19c7)]?_0x50dfa0[_0xa2321e(0x19c7)][0x0]:null;if(!_0x5436ed){const _0x5894cc=[],_0x3a96b2=[];_0x5a1dd8['faxAccounts'][_0xa2321e(0x19c7)][_0xa2321e(0x1df5)](function(_0x1de33e){const _0x1a59c5=_0xa2321e,_0x2751fc=_0x3f65c0()[_0x1a59c5(0xc84)](_0x5a1dd8['trunks'],{'id':Number(_0x1de33e[_0x1a59c5(0x1b77)])});_0x3a96b2[_0x1a59c5(0x1f47)](_0x2751fc);});for(let _0x8ea713=0x0;_0x8ea713<_0x5a1dd8['trunks'][_0xa2321e(0x402)];_0x8ea713++){const _0x4fc2cb=_0x3f65c0()['some'](_0x3a96b2,{'id':_0x5a1dd8[_0xa2321e(0x2433)][_0x8ea713]['id']});_0x4fc2cb&&(_0x5a1dd8[_0xa2321e(0x2433)][_0x8ea713][_0xa2321e(0x8ff)]=![],_0x5894cc['push'](_0x5a1dd8['trunks'][_0x8ea713]));}_0x5a1dd8['trunks']=_0x5894cc;}else{if(!_0x5436ed['autoAssociation'])return _0x2a2d82[_0xa2321e(0xdcc)][_0xa2321e(0x16b4)]({'sectionId':_0x5436ed['id']})[_0xa2321e(0x2945)][_0xa2321e(0x146b)](function(_0x1f5d70){const _0x52f647=_0xa2321e,_0x5ea8dd=_0x3f65c0()[_0x52f647(0x205)](_0x1f5d70[_0x52f647(0x19c7)],function(_0x2ceb2a){const _0x7d7078=_0x52f647;return _0x3f65c0()[_0x7d7078(0xc84)](_0x5a1dd8[_0x7d7078(0x2433)],{'id':_0x2ceb2a[_0x7d7078(0x18b8)]});});let _0x4152d0=null;_0x4152d0=[],_0x5a1dd8[_0x52f647(0x8a9)][_0x52f647(0x19c7)][_0x52f647(0x1df5)](function(_0xdb6e6d){const _0x230699=_0x52f647,_0x19a43e=_0x3f65c0()[_0x230699(0xc84)](_0x5a1dd8[_0x230699(0x2433)],{'id':Number(_0xdb6e6d[_0x230699(0x1b77)])});_0x4152d0[_0x230699(0x1f47)](_0x19a43e);}),!_0x3f65c0()[_0x52f647(0x2635)](_0x4152d0)&&_0x4152d0[_0x52f647(0x1df5)](function(_0x210fd7){const _0x7edb7f=_0x52f647;if(!_0x3f65c0()['some'](_0x5ea8dd,['id',_0x210fd7['id']])){const _0x2d4b41=_0x3f65c0()[_0x7edb7f(0xc84)](_0x5a1dd8[_0x7edb7f(0x2433)],{'id':_0x210fd7['id']});_0x2d4b41[_0x7edb7f(0x8ff)]=![],_0x5ea8dd['push'](_0x2d4b41);}}),_0x5a1dd8[_0x52f647(0x2433)]=_0x5ea8dd;});}})[_0x2727bd(0x129e)](function(_0x265dc4){const _0x9ba4dd=_0x2727bd;_0x1d6487[_0x9ba4dd(0x1980)]({'title':_0x265dc4[_0x9ba4dd(0x107b)]?_0x9ba4dd(0x262a)+_0x265dc4['status']+_0x9ba4dd(0x1315)+_0x265dc4[_0x9ba4dd(0x167f)]:_0x9ba4dd(0x2436),'msg':_0x265dc4['data']?JSON[_0x9ba4dd(0x10bb)](_0x265dc4[_0x9ba4dd(0x524)]):_0x265dc4[_0x9ba4dd(0xd5f)]()});}),_0xb26ecb[_0x2727bd(0x23e0)](_0x2727bd(0x174b))?_0x2a2d82['cmList'][_0x2727bd(0x16b4)]({'fields':_0x2727bd(0x7a7),'sort':'name'})[_0x2727bd(0x2945)]['then'](function(_0x2ed627){const _0xb685b2=_0x2727bd;_0x5a1dd8[_0xb685b2(0x1324)]=_0x2ed627[_0xb685b2(0x19c7)]||[];})[_0x2727bd(0x129e)](function(_0xde1f24){const _0x777f04=_0x2727bd;_0x1d6487[_0x777f04(0x1980)]({'title':_0xde1f24[_0x777f04(0x107b)]?_0x777f04(0x262a)+_0xde1f24['status']+_0x777f04(0x1315)+_0xde1f24[_0x777f04(0x167f)]:_0x777f04(0x11b3),'msg':_0xde1f24['data']?JSON[_0x777f04(0x10bb)](_0xde1f24[_0x777f04(0x524)]):_0xde1f24[_0x777f04(0xd5f)]()});}):_0x2a2d82[_0x2727bd(0xf03)]['get']({'fields':_0x2727bd(0x7a7),'sort':'name'})[_0x2727bd(0x2945)][_0x2727bd(0x146b)](function(_0x4ee858){_0x5a1dd8['lists']=_0x4ee858['rows']||[];})[_0x2727bd(0x146b)](function(){const _0x122b83=_0x2727bd;return _0x2a2d82[_0x122b83(0x1366)][_0x122b83(0x16b4)]({'userProfileId':_0x5a1dd8[_0x122b83(0x2321)][_0x122b83(0x209a)],'sectionId':0x12d})['$promise'];})[_0x2727bd(0x146b)](function(_0x4a33e5){const _0x4c289e=_0x2727bd,_0x5e886b=_0x4a33e5&&_0x4a33e5['rows']?_0x4a33e5['rows'][0x0]:null;if(!_0x5e886b){const _0x412493=[];let _0x25685e=null;_0x5a1dd8['faxAccount']&&(_0x25685e=_0x3f65c0()[_0x4c289e(0xc84)](_0x5a1dd8[_0x4c289e(0x1324)],{'id':Number(_0x5a1dd8['faxAccount'][_0x4c289e(0xb7c)])}));for(let _0x2a9f7d=0x0;_0x2a9f7d<_0x5a1dd8['lists'][_0x4c289e(0x402)];_0x2a9f7d++){_0x25685e&&_0x5a1dd8[_0x4c289e(0x1324)][_0x2a9f7d]['id']===_0x25685e['id']&&(_0x5a1dd8[_0x4c289e(0x1324)][_0x2a9f7d][_0x4c289e(0x8ff)]=![],_0x412493['push'](_0x5a1dd8['lists'][_0x2a9f7d]));}_0x5a1dd8[_0x4c289e(0x1324)]=_0x412493;}else{if(!_0x5e886b[_0x4c289e(0x11d2)])return _0x2a2d82[_0x4c289e(0xdcc)][_0x4c289e(0x16b4)]({'sectionId':_0x5e886b['id']})[_0x4c289e(0x2945)][_0x4c289e(0x146b)](function(_0x5e765b){const _0x4446eb=_0x4c289e,_0x3b84f5=_0x3f65c0()[_0x4446eb(0x205)](_0x5e765b[_0x4446eb(0x19c7)],function(_0x317d44){const _0x5591c5=_0x4446eb;return _0x3f65c0()[_0x5591c5(0xc84)](_0x5a1dd8['lists'],{'id':_0x317d44[_0x5591c5(0x18b8)]});});let _0x3ff019=null;_0x5a1dd8[_0x4446eb(0x178)]&&(_0x3ff019=_0x3f65c0()['find'](_0x5a1dd8[_0x4446eb(0x1324)],{'id':Number(_0x5a1dd8[_0x4446eb(0x178)]['ListId'])}));if(_0x3ff019&&!_0x3f65c0()[_0x4446eb(0x1360)](_0x3b84f5,['id',_0x3ff019['id']])){const _0x3e6582=_0x3f65c0()[_0x4446eb(0xc84)](_0x5a1dd8[_0x4446eb(0x1324)],{'id':_0x3ff019['id']});_0x3e6582[_0x4446eb(0x8ff)]=![],_0x3b84f5[_0x4446eb(0x1f47)](_0x3e6582);}_0x5a1dd8[_0x4446eb(0x1324)]=_0x3b84f5;});}})[_0x2727bd(0x129e)](function(_0x4aa593){const _0x338821=_0x2727bd;_0x1d6487[_0x338821(0x1980)]({'title':_0x4aa593[_0x338821(0x107b)]?_0x338821(0x262a)+_0x4aa593['status']+_0x338821(0x1315)+_0x4aa593['statusText']:_0x338821(0x1a2f),'msg':_0x4aa593[_0x338821(0x524)]?JSON[_0x338821(0x10bb)](_0x4aa593['data']):_0x4aa593[_0x338821(0xd5f)]()});});function _0x20ad6d(_0x3803e4){const _0x47150b=_0x2727bd;_0x326995['go'](_0x47150b(0x2205),{'id':_0x3803e4['id'],'faxAccount':_0x3803e4,'crudPermissions':_0x5a1dd8[_0x47150b(0x2514)]});}function _0x32bd66(_0x4a1654){const _0x100e80=_0x2727bd;_0x326995['go'](_0x100e80(0x2205),{'id':_0x4a1654['id'],'tab':0x5});}function _0x3eb5b4(){const _0x5e20bf=_0x2727bd;if(_0xb26ecb['hasRole'](_0x5e20bf(0x174b)))_0x326995['go']('app.fax.realtime.accounts',{});else return _0x2a2d82[_0x5e20bf(0x1366)]['get']({'userProfileId':_0xb26ecb[_0x5e20bf(0xb12)]()[_0x5e20bf(0x209a)],'sectionId':0x38e})[_0x5e20bf(0x2945)][_0x5e20bf(0x146b)](function(_0x38cedc){const _0x3507fb=_0x5e20bf,_0x29e3ce=_0x38cedc&&_0x38cedc['rows']?_0x38cedc[_0x3507fb(0x19c7)][0x0]:null;_0x29e3ce&&_0x29e3ce[_0x3507fb(0x193e)]?_0x326995['go'](_0x3507fb(0x1946),{}):_0x1d6487['info']({'title':_0x26dde8[_0x3507fb(0xde)](_0x3507fb(0xb27)),'msg':_0x26dde8[_0x3507fb(0xde)](_0x3507fb(0x174a))});})[_0x5e20bf(0x129e)](function(_0x3bf761){const _0x1e17b=_0x5e20bf;_0x1d6487[_0x1e17b(0x1980)]({'title':_0x3bf761[_0x1e17b(0x107b)]?'API:'+_0x3bf761[_0x1e17b(0x107b)]+_0x1e17b(0x1315)+_0x3bf761['statusText']:_0x1e17b(0x698),'msg':_0x3bf761['status']?JSON[_0x1e17b(0x10bb)](_0x3bf761[_0x1e17b(0x524)]):_0x3bf761[_0x1e17b(0xd5f)]()});});}function _0xc28826(_0x2001c0,_0x215303){const _0x3aa5b1=_0x2727bd;_0xf9a04b['show']({'controller':_0x3aa5b1(0x12e5),'controllerAs':'vm','templateUrl':_0x159145,'parent':angular[_0x3aa5b1(0x1853)](_0xe83c0[_0x3aa5b1(0x2586)]),'targetEvent':_0x215303,'clickOutsideToClose':!![],'locals':{'faxAccount':_0x2001c0,'faxAccounts':_0x5a1dd8['faxAccounts']?_0x5a1dd8['faxAccounts'][_0x3aa5b1(0x19c7)]:[],'crudPermissions':_0x5a1dd8[_0x3aa5b1(0x2514)],'realtime':![]}});}function _0x23a54b(_0x2beb18,_0x27779c){const _0x1a9dcd=_0x2727bd,_0x4608fb=_0xf9a04b[_0x1a9dcd(0x1e8a)]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x3f65c0()[_0x1a9dcd(0x20d1)](_0x1a9dcd(0x178))+'?')[_0x1a9dcd(0x1cbe)](_0x1a9dcd(0x16d3)+(_0x2beb18['name']||_0x1a9dcd(0x178))+_0x1a9dcd(0x252f)+_0x1a9dcd(0xe01))[_0x1a9dcd(0x4bd)](_0x1a9dcd(0x122c))[_0x1a9dcd(0x1f27)](_0x27779c)['ok']('OK')['cancel'](_0x1a9dcd(0x39a));_0xf9a04b[_0x1a9dcd(0x2615)](_0x4608fb)[_0x1a9dcd(0x146b)](function(){_0x4b6425(_0x2beb18);},function(){const _0x38ffdf=_0x1a9dcd;console[_0x38ffdf(0x1a74)]('CANCEL');});}let _0x120959=!![],_0x4f43e8=0x1;_0x1f36d7['$watch'](_0x2727bd(0x2669),function(_0x39666c,_0x5a0108){const _0x52bef8=_0x2727bd;_0x120959?_0x213ff6(function(){_0x120959=![];}):(!_0x5a0108&&(_0x4f43e8=_0x5a1dd8[_0x52bef8(0x1a56)][_0x52bef8(0x844)]),_0x39666c!==_0x5a0108&&(_0x5a1dd8['query'][_0x52bef8(0x844)]=0x1),!_0x39666c&&(_0x5a1dd8[_0x52bef8(0x1a56)][_0x52bef8(0x844)]=_0x4f43e8),_0x5a1dd8['getFaxAccounts']());});function _0x1ed28d(_0x18689e){const _0x2b451d=_0x2727bd;_0x5a1dd8[_0x2b451d(0x8a9)]=_0x18689e||{'count':0x0,'rows':[]};}function _0x3024e5(){const _0x34872b=_0x2727bd;_0x5a1dd8[_0x34872b(0x1a56)][_0x34872b(0x145d)]=(_0x5a1dd8[_0x34872b(0x1a56)]['page']-0x1)*_0x5a1dd8['query'][_0x34872b(0x221e)],_0xb26ecb['hasRole'](_0x34872b(0x174b))?_0x5a1dd8[_0x34872b(0xb9c)]=_0x2a2d82[_0x34872b(0x178)]['get'](_0x5a1dd8[_0x34872b(0x1a56)],_0x1ed28d)[_0x34872b(0x2945)]:(_0x5a1dd8[_0x34872b(0x1a56)]['id']=_0x5a1dd8[_0x34872b(0x26b6)]['id'],_0x5a1dd8[_0x34872b(0x1a56)][_0x34872b(0x2146)]=_0x34872b(0x17d1),_0x5a1dd8['promise']=_0x2a2d82['userProfile'][_0x34872b(0x158f)](_0x5a1dd8[_0x34872b(0x1a56)],_0x1ed28d)[_0x34872b(0x2945)]);}function _0x26d7bd(_0x185f1c,_0x380fee){const _0x3a8e7e=_0x2727bd;_0xf9a04b[_0x3a8e7e(0x2615)]({'controller':_0x3a8e7e(0x18bd),'controllerAs':'vm','templateUrl':_0x4152da,'parent':angular[_0x3a8e7e(0x1853)](_0xe83c0['body']),'targetEvent':_0x185f1c,'clickOutsideToClose':!![],'locals':{'faxAccount':_0x380fee,'faxAccounts':_0x5a1dd8[_0x3a8e7e(0x8a9)][_0x3a8e7e(0x19c7)],'license':_0x5a1dd8[_0x3a8e7e(0x2690)],'setting':_0x5a1dd8[_0x3a8e7e(0x15b9)],'crudPermissions':_0x5a1dd8['crudPermissions']}});}function _0x4b6425(_0x2b31ed){const _0x390685=_0x2727bd;_0x2a2d82[_0x390685(0x178)][_0x390685(0x1fac)]({'id':_0x2b31ed['id']})[_0x390685(0x2945)]['then'](function(){const _0xa478ef=_0x390685;_0x3f65c0()[_0xa478ef(0x2640)](_0x5a1dd8[_0xa478ef(0x8a9)][_0xa478ef(0x19c7)],{'id':_0x2b31ed['id']}),_0x5a1dd8[_0xa478ef(0x8a9)][_0xa478ef(0x51c)]-=0x1,!_0x5a1dd8[_0xa478ef(0x8a9)][_0xa478ef(0x19c7)][_0xa478ef(0x402)]&&_0x5a1dd8[_0xa478ef(0x12d0)](),_0x1d6487['success']({'title':_0x3f65c0()[_0xa478ef(0x20d1)](_0xa478ef(0x1f02))+_0xa478ef(0x201c),'msg':_0x2b31ed[_0xa478ef(0x19eb)]?_0x2b31ed[_0xa478ef(0x19eb)]+_0xa478ef(0x23e3):''});})['catch'](function(_0x14779d){const _0x596cb6=_0x390685;if(_0x14779d[_0x596cb6(0x524)]&&_0x14779d[_0x596cb6(0x524)][_0x596cb6(0xcef)]&&_0x14779d[_0x596cb6(0x524)][_0x596cb6(0xcef)]['length']){_0x5a1dd8[_0x596cb6(0xcef)]=_0x14779d[_0x596cb6(0x524)][_0x596cb6(0xcef)]||[{'message':_0x14779d[_0x596cb6(0xd5f)](),'type':'SYSTEM:DELETEfaxAccount'}];for(let _0x76c0df=0x0;_0x76c0df<_0x14779d['data'][_0x596cb6(0xcef)]['length'];_0x76c0df++){_0x1d6487[_0x596cb6(0x1980)]({'title':_0x14779d['data'][_0x596cb6(0xcef)][_0x76c0df][_0x596cb6(0x1142)],'msg':_0x14779d[_0x596cb6(0x524)][_0x596cb6(0xcef)][_0x76c0df][_0x596cb6(0x7fd)]});}}else _0x1d6487[_0x596cb6(0x1980)]({'title':_0x14779d[_0x596cb6(0x107b)]?_0x596cb6(0x262a)+_0x14779d[_0x596cb6(0x107b)]+'\x20-\x20'+_0x14779d[_0x596cb6(0x167f)]:'SYSTEM:DELETEfaxAccount','msg':_0x14779d['data']?JSON['stringify'](_0x14779d[_0x596cb6(0x524)][_0x596cb6(0x7fd)]):_0x14779d[_0x596cb6(0x7fd)]||_0x14779d[_0x596cb6(0xd5f)]()});});}function _0x329fc2(){const _0x9d65ca=_0x2727bd,_0x64c685=angular['copy'](_0x5a1dd8['selectedFaxAccounts']);return _0x5a1dd8[_0x9d65ca(0x353)]=[],_0x64c685;}function _0x70aa4c(_0x16fc52){const _0x3ba1d0=_0x2727bd,_0x3fbc13=_0xf9a04b[_0x3ba1d0(0x1e8a)]()[_0x3ba1d0(0x1189)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20faxAccounts?')[_0x3ba1d0(0x1cbe)](_0x3ba1d0(0x16d3)+_0x5a1dd8['selectedFaxAccounts'][_0x3ba1d0(0x402)]+_0x3ba1d0(0x2452)+_0x3ba1d0(0xe01))[_0x3ba1d0(0x4bd)](_0x3ba1d0(0x16f))['targetEvent'](_0x16fc52)['ok']('OK')['cancel'](_0x3ba1d0(0x39a));_0xf9a04b[_0x3ba1d0(0x2615)](_0x3fbc13)[_0x3ba1d0(0x146b)](function(){const _0x8e3c92=_0x3ba1d0;_0x5a1dd8[_0x8e3c92(0x353)][_0x8e3c92(0x1df5)](function(_0x98deeb){_0x4b6425(_0x98deeb);}),_0x5a1dd8['selectedFaxAccounts']=[];});}function _0x12f984(){const _0x2a3d73=_0x2727bd;_0x5a1dd8[_0x2a3d73(0x353)]=[];}function _0x1cf1f5(){const _0x8811e1=_0x2727bd;_0x5a1dd8[_0x8811e1(0x353)]=_0x5a1dd8[_0x8811e1(0x8a9)][_0x8811e1(0x19c7)];}}const _0x275854=_0x4b334d;;_0x1c990e[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1862),'$location',_0x313a4d(0x10e8),'$q',_0x313a4d(0x214b),_0x313a4d(0x1fe4),_0x313a4d(0x27fa),'faxQueue',_0x313a4d(0x247f),'Auth','license',_0x313a4d(0x15b9),_0x313a4d(0x2514)];function _0x1c990e(_0x2eecd5,_0x4230fb,_0x57c1f7,_0xf141aa,_0x5c0ebc,_0x19f59d,_0x375344,_0x398132,_0x45261a,_0x4dc4f8,_0x5c5bf1,_0x3b1b65,_0x4a4cd1,_0x1dfd49){const _0x26e3b7=_0x313a4d,_0x224b54=this;_0x224b54[_0x26e3b7(0x2321)]=_0x5c5bf1[_0x26e3b7(0xb12)](),_0x224b54[_0x26e3b7(0xcef)]=[],_0x224b54['setting']=_0x4a4cd1,_0x224b54[_0x26e3b7(0x2690)]=_0x3b1b65,_0x224b54[_0x26e3b7(0x2514)]=_0x1dfd49,_0x224b54[_0x26e3b7(0x855)]={},_0x224b54[_0x26e3b7(0x2251)]=_0x224b54[_0x26e3b7(0x15b9)]&&_0x224b54[_0x26e3b7(0x15b9)]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x224b54[_0x26e3b7(0x1189)]='FAX.EDIT_FAXQUEUE',_0x224b54[_0x26e3b7(0x999)]=angular[_0x26e3b7(0x235a)](_0x45261a),_0x224b54[_0x26e3b7(0x27fa)]=_0x398132,_0x224b54[_0x26e3b7(0xd0e)]=![];!_0x224b54[_0x26e3b7(0x999)]&&(_0x224b54[_0x26e3b7(0x999)]={'strategy':_0x26e3b7(0x1984),'timeout':0xa},_0x224b54[_0x26e3b7(0x1189)]=_0x26e3b7(0x1f74),_0x224b54[_0x26e3b7(0xd0e)]=!![]);_0x224b54[_0x26e3b7(0x1e0e)]=_0x17163c,_0x224b54[_0x26e3b7(0x219b)]=_0x4a74fe,_0x224b54['deleteFaxQueue']=_0x23cdcf,_0x224b54[_0x26e3b7(0xe73)]=_0x5abd75,_0x224b54[_0x26e3b7(0x13f3)]=_0x104dda;function _0x17163c(){const _0x170275=_0x26e3b7;_0x224b54['errors']=[],_0x4dc4f8[_0x170275(0x999)][_0x170275(0x1e3)](_0x224b54[_0x170275(0x999)])[_0x170275(0x2945)][_0x170275(0x146b)](function(_0x440d33){const _0xababf4=_0x170275;_0x224b54['faxQueues']['unshift'](_0x440d33[_0xababf4(0x2488)]()),_0x375344[_0xababf4(0x1c75)]({'title':_0xababf4(0x1d42),'msg':_0x224b54[_0xababf4(0x999)]['name']?_0x224b54['faxQueue'][_0xababf4(0x19eb)]+_0xababf4(0x1386):''}),_0x104dda(_0x440d33);})[_0x170275(0x129e)](function(_0x49a8b0){const _0x359347=_0x170275;if(_0x49a8b0[_0x359347(0x524)]&&_0x49a8b0['data'][_0x359347(0xcef)]&&_0x49a8b0[_0x359347(0x524)]['errors'][_0x359347(0x402)]){_0x224b54[_0x359347(0xcef)]=_0x49a8b0[_0x359347(0x524)]['errors']||[{'message':_0x49a8b0['toString'](),'type':_0x359347(0xb60)}];for(let _0x377aca=0x0;_0x377aca<_0x49a8b0[_0x359347(0x524)]['errors'][_0x359347(0x402)];_0x377aca+=0x1){_0x375344[_0x359347(0x1980)]({'title':_0x49a8b0[_0x359347(0x524)][_0x359347(0xcef)][_0x377aca]['type'],'msg':_0x49a8b0[_0x359347(0x524)][_0x359347(0xcef)][_0x377aca][_0x359347(0x7fd)]});}}else _0x375344['error']({'title':_0x49a8b0[_0x359347(0x107b)]?_0x359347(0x262a)+_0x49a8b0[_0x359347(0x107b)]+_0x359347(0x1315)+_0x49a8b0['statusText']:'api.faxQueue.save','msg':_0x49a8b0[_0x359347(0x524)]?JSON['stringify'](_0x49a8b0[_0x359347(0x524)]['message']):_0x49a8b0[_0x359347(0xd5f)]()});});}function _0x4a74fe(){const _0x1d6abc=_0x26e3b7;_0x224b54['errors']=[],_0x4dc4f8[_0x1d6abc(0x999)]['update']({'id':_0x224b54[_0x1d6abc(0x999)]['id']},_0x224b54[_0x1d6abc(0x999)])[_0x1d6abc(0x2945)]['then'](function(_0x1ca487){const _0x4b7ad7=_0x1d6abc,_0x351cb1=_0x3f65c0()[_0x4b7ad7(0xc84)](_0x224b54['faxQueues'],{'id':_0x1ca487['id']});_0x351cb1&&_0x3f65c0()[_0x4b7ad7(0x168d)](_0x351cb1,_0x3f65c0()[_0x4b7ad7(0x40e)](_0x1ca487[_0x4b7ad7(0x2488)](),_0x3f65c0()[_0x4b7ad7(0x627)](_0x351cb1))),_0x375344['success']({'title':_0x4b7ad7(0x1117),'msg':_0x224b54['faxQueue'][_0x4b7ad7(0x19eb)]?_0x224b54[_0x4b7ad7(0x999)][_0x4b7ad7(0x19eb)]+_0x4b7ad7(0x24db):''}),_0x104dda(_0x1ca487);})[_0x1d6abc(0x129e)](function(_0x1c4b25){const _0x571439=_0x1d6abc;if(_0x1c4b25['data']&&_0x1c4b25['data']['errors']&&_0x1c4b25[_0x571439(0x524)][_0x571439(0xcef)][_0x571439(0x402)]){_0x224b54['errors']=_0x1c4b25['data'][_0x571439(0xcef)]||[{'message':_0x1c4b25['toString'](),'type':_0x571439(0x11a8)}];for(let _0x1f0e7d=0x0;_0x1f0e7d<_0x1c4b25['data'][_0x571439(0xcef)][_0x571439(0x402)];_0x1f0e7d++){_0x375344['error']({'title':_0x1c4b25[_0x571439(0x524)][_0x571439(0xcef)][_0x1f0e7d][_0x571439(0x1142)],'msg':_0x1c4b25[_0x571439(0x524)]['errors'][_0x1f0e7d][_0x571439(0x7fd)]});}}else _0x375344[_0x571439(0x1980)]({'title':_0x1c4b25[_0x571439(0x107b)]?_0x571439(0x262a)+_0x1c4b25[_0x571439(0x107b)]+_0x571439(0x1315)+_0x1c4b25['statusText']:_0x571439(0x11a8),'msg':_0x1c4b25[_0x571439(0x524)]?JSON[_0x571439(0x10bb)](_0x1c4b25[_0x571439(0x524)][_0x571439(0x7fd)]):_0x1c4b25[_0x571439(0xd5f)]()});});}function _0x23cdcf(_0x547b34){const _0x14a704=_0x26e3b7;_0x224b54[_0x14a704(0xcef)]=[];const _0x263625=_0xf141aa['confirm']()['title'](_0x14a704(0x1d64))[_0x14a704(0x80f)](_0x14a704(0xf1f))[_0x14a704(0x4bd)](_0x14a704(0x97b))['ok'](_0x14a704(0x25de))[_0x14a704(0x6c3)]('Cancel')['targetEvent'](_0x547b34);_0xf141aa[_0x14a704(0x2615)](_0x263625)['then'](function(){const _0x2a152f=_0x14a704;_0x4dc4f8[_0x2a152f(0x999)][_0x2a152f(0x1fac)]({'id':_0x224b54[_0x2a152f(0x999)]['id']})[_0x2a152f(0x2945)][_0x2a152f(0x146b)](function(){const _0x40dbdf=_0x2a152f;_0x3f65c0()[_0x40dbdf(0x2640)](_0x224b54[_0x40dbdf(0x27fa)],{'id':_0x224b54[_0x40dbdf(0x999)]['id']}),_0x375344[_0x40dbdf(0x1c75)]({'title':_0x40dbdf(0x23c9),'msg':(_0x224b54[_0x40dbdf(0x999)][_0x40dbdf(0x19eb)]||_0x40dbdf(0x999))+_0x40dbdf(0x23e3)}),_0x104dda(_0x224b54[_0x40dbdf(0x999)]);})[_0x2a152f(0x129e)](function(_0x17744b){const _0x4e4eb4=_0x2a152f;if(_0x17744b[_0x4e4eb4(0x524)]&&_0x17744b['data'][_0x4e4eb4(0xcef)]&&_0x17744b[_0x4e4eb4(0x524)]['errors'][_0x4e4eb4(0x402)]){_0x224b54[_0x4e4eb4(0xcef)]=_0x17744b[_0x4e4eb4(0x524)]['errors']||[{'message':_0x17744b[_0x4e4eb4(0xd5f)](),'type':'api.faxQueue.delete'}];for(let _0x901da8=0x0;_0x901da8<_0x17744b[_0x4e4eb4(0x524)]['errors'][_0x4e4eb4(0x402)];_0x901da8++){_0x375344[_0x4e4eb4(0x1980)]({'title':_0x17744b[_0x4e4eb4(0x524)]['errors'][_0x901da8]['type'],'msg':_0x17744b[_0x4e4eb4(0x524)]['errors'][_0x901da8]['message']});}}else _0x375344[_0x4e4eb4(0x1980)]({'title':_0x17744b[_0x4e4eb4(0x107b)]?_0x4e4eb4(0x262a)+_0x17744b[_0x4e4eb4(0x107b)]+_0x4e4eb4(0x1315)+_0x17744b[_0x4e4eb4(0x167f)]:_0x4e4eb4(0x1823),'msg':_0x17744b[_0x4e4eb4(0x524)]?JSON[_0x4e4eb4(0x10bb)](_0x17744b[_0x4e4eb4(0x524)][_0x4e4eb4(0x7fd)]):_0x17744b[_0x4e4eb4(0x7fd)]||_0x17744b[_0x4e4eb4(0xd5f)]()});});},function(){});}function _0x5abd75(_0x4cd9d7){return _0x4cd9d7===null?undefined:new Date(_0x4cd9d7);}function _0x104dda(_0x2de49a){const _0x433e3b=_0x26e3b7;_0xf141aa[_0x433e3b(0x2458)](_0x2de49a);}}const _0x41336e=_0x1c990e;;_0xa7aeb3['$inject']=['$mdDialog','$q','toasty',_0x313a4d(0x247f),_0x313a4d(0x999),_0x313a4d(0x27fa),'realtime',_0x313a4d(0x214b),'Auth',_0x313a4d(0x2514)];function _0xa7aeb3(_0x1d814f,_0x6fb43f,_0x213c9d,_0x50f9f7,_0x21053b,_0x1d291b,_0x544eb8,_0x31924b,_0x301e8f,_0x4e1d64){const _0x83af7a=_0x313a4d,_0x39bf8b=this;_0x39bf8b[_0x83af7a(0x2321)]=_0x301e8f[_0x83af7a(0xb12)](),_0x39bf8b[_0x83af7a(0x999)]=_0x21053b,_0x39bf8b[_0x83af7a(0x2514)]=_0x4e1d64,_0x39bf8b[_0x83af7a(0xfc4)]=_0x544eb8,_0x39bf8b[_0x83af7a(0x1fd6)]=[],_0x39bf8b[_0x83af7a(0xc4e)]=[],_0x39bf8b['selectedItems']=[],_0x39bf8b['startingAllowedItems']=[],_0x39bf8b[_0x83af7a(0xa65)]=[],_0x39bf8b['pendingChanges']=![],_0x39bf8b[_0x83af7a(0x3d4)]=_0x109db0,_0x39bf8b['saveAgents']=_0x4ebad8,_0x39bf8b[_0x83af7a(0x13f3)]=_0x2a96cd,_0x39bf8b[_0x83af7a(0x1f8a)]={'readOnly':!_0x39bf8b[_0x83af7a(0x2514)]['canEdit'],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x83af7a(0x19eb),'line1':_0x83af7a(0x286a),'line2':[_0x83af7a(0x19eb),'internal'],'line3':'','labelAll':_0x31924b[_0x83af7a(0xde)](_0x83af7a(0x2050)),'labelSelected':_0x31924b[_0x83af7a(0xde)](_0x83af7a(0xf73)),'transferCallback':function(){const _0x345fc2=_0x83af7a,_0x4cec3c=_0x3f65c0()[_0x345fc2(0x1883)](_0x39bf8b[_0x345fc2(0xa65)],_0x39bf8b[_0x345fc2(0x1ecf)],'id');_0x39bf8b[_0x345fc2(0x132)]=_0x3f65c0()[_0x345fc2(0x2635)](_0x4cec3c)?![]:!![];}};function _0x109db0(){const _0x19258f=_0x83af7a;return _0x301e8f[_0x19258f(0x23e0)](_0x19258f(0x174b))?_0x4e5607()[_0x19258f(0x129e)](function(_0xd966b3){const _0x2e0467=_0x19258f;_0x213c9d[_0x2e0467(0x1980)]({'title':_0xd966b3[_0x2e0467(0x107b)]?'API:'+_0xd966b3[_0x2e0467(0x107b)]+_0x2e0467(0x1315)+_0xd966b3[_0x2e0467(0x167f)]:'SYSTEM:GET_AGENTS','msg':_0xd966b3[_0x2e0467(0x107b)]?JSON[_0x2e0467(0x10bb)](_0xd966b3[_0x2e0467(0x524)]):_0xd966b3[_0x2e0467(0xd5f)]()});}):_0x48a0b6()[_0x19258f(0x146b)](function(_0x36582d){const _0x4c8664=_0x19258f;return _0x39bf8b[_0x4c8664(0x2146)]=_0x36582d,_0x4e5607();})[_0x19258f(0x129e)](function(_0x9af170){const _0x4a539b=_0x19258f;_0x213c9d['error']({'title':_0x9af170[_0x4a539b(0x107b)]?'API:'+_0x9af170[_0x4a539b(0x107b)]+_0x4a539b(0x1315)+_0x9af170['statusText']:_0x4a539b(0x557),'msg':_0x9af170[_0x4a539b(0x107b)]?JSON[_0x4a539b(0x10bb)](_0x9af170['data']):_0x9af170[_0x4a539b(0xd5f)]()});});}function _0x48a0b6(){return _0x6fb43f(function(_0x3664b5,_0x2a5556){const _0x3db561=a0_0x3bb9;_0x50f9f7['userProfileSection'][_0x3db561(0x16b4)]({'userProfileId':_0x39bf8b[_0x3db561(0x2321)][_0x3db561(0x209a)],'name':_0x3db561(0xca8)})[_0x3db561(0x2945)]['then'](function(_0x33fbb4){const _0x4542af=_0x3db561,_0x3f673a=_0x33fbb4&&_0x33fbb4[_0x4542af(0x19c7)]?_0x33fbb4['rows'][0x0]:null;_0x3664b5(_0x3f673a);})[_0x3db561(0x129e)](function(_0x514d71){_0x2a5556(_0x514d71);});});}function _0x4e5607(){return _0x6fb43f(function(_0x5cfdd8,_0x353756){const _0x366902=a0_0x3bb9;return _0x8b9b4f()[_0x366902(0x146b)](function(_0x17178c){const _0x8cd9e=_0x366902;return _0x39bf8b[_0x8cd9e(0x1fd6)]=_0x17178c[_0x8cd9e(0x19c7)]?_0x17178c[_0x8cd9e(0x19c7)]:[],_0x301e8f[_0x8cd9e(0x23e0)](_0x8cd9e(0x174b))?_0x17178c:_0x39bf8b['section']?_0x39bf8b[_0x8cd9e(0x2146)][_0x8cd9e(0x11d2)]?_0x17178c:_0x485db4():null;})[_0x366902(0x146b)](function(_0x476ca6){const _0x4697e1=_0x366902,_0x1919e4=_0x476ca6&&_0x476ca6[_0x4697e1(0x19c7)]?_0x476ca6[_0x4697e1(0x19c7)]:[];return _0x39bf8b[_0x4697e1(0xc4e)]=_0x3f65c0()[_0x4697e1(0x205)](_0x1919e4,function(_0xc26987){const _0xb87db5=_0x4697e1;return _0x3f65c0()[_0xb87db5(0xc84)](_0x39bf8b[_0xb87db5(0x1fd6)],{'id':_0x301e8f['hasRole'](_0xb87db5(0x174b))||_0x39bf8b[_0xb87db5(0x2146)][_0xb87db5(0x11d2)]?_0xc26987['id']:_0xc26987[_0xb87db5(0x18b8)]});}),_0x39bf8b[_0x4697e1(0x2e8)]=angular[_0x4697e1(0x235a)](_0x39bf8b['allowedItems']),_0x39bf8b[_0x4697e1(0x1fd6)][_0x4697e1(0x1df5)](function(_0x48b956){const _0x1ffbef=_0x4697e1,_0xcab954=_0x3f65c0()[_0x1ffbef(0xc84)](_0x39bf8b[_0x1ffbef(0xc4e)],{'id':_0x48b956['id']});_0x301e8f[_0x1ffbef(0x23e0)]('admin')?_0x48b956[_0x1ffbef(0x146f)]=!![]:_0x48b956[_0x1ffbef(0x146f)]=typeof _0xcab954!==_0x1ffbef(0x2274)?!![]:![];}),_0x4368fd();})[_0x366902(0x146b)](function(_0x735635){const _0x5ba0ad=_0x366902,_0x26ba6d=_0x735635&&_0x735635[_0x5ba0ad(0x19c7)]?_0x735635['rows']:[];_0x39bf8b[_0x5ba0ad(0x1ecf)]=_0x3f65c0()[_0x5ba0ad(0x205)](_0x26ba6d,function(_0x32a35c){const _0x2a4a8c=_0x5ba0ad,_0x20f0da=_0x3f65c0()['find'](_0x39bf8b[_0x2a4a8c(0x1fd6)],{'id':_0x32a35c['id']});return _0x20f0da[_0x2a4a8c(0x188d)]=_0x32a35c[_0x2a4a8c(0x25b6)]?'penalty\x20'+_0x32a35c[_0x2a4a8c(0x25b6)]['penalty']:'',_0x20f0da[_0x2a4a8c(0x113f)]=typeof _0x32a35c[_0x2a4a8c(0x113f)]!=='undefined'?'<'+_0x32a35c[_0x2a4a8c(0x113f)]+'>':'',_0x20f0da;}),_0x39bf8b[_0x5ba0ad(0xa65)]=angular['copy'](_0x39bf8b[_0x5ba0ad(0x1ecf)]),_0x39bf8b['dualMultiselectOptions']['selectedItems']=_0x39bf8b['selectedItems'],_0x39bf8b['dualMultiselectOptions']['items']=_0x3f65c0()[_0x5ba0ad(0x2796)](_0x39bf8b[_0x5ba0ad(0xc4e)],_0x39bf8b[_0x5ba0ad(0x1f8a)][_0x5ba0ad(0x1ecf)],'id'),_0x5cfdd8();})[_0x366902(0x129e)](function(_0x47b42b){_0x353756(_0x47b42b);});});}function _0x485db4(){return _0x6fb43f(function(_0x51d00d,_0x41a18c){const _0x2db280=a0_0x3bb9;return _0x50f9f7[_0x2db280(0xdcc)][_0x2db280(0x16b4)]({'sectionId':_0x39bf8b['section']['id'],'nolimit':!![]})[_0x2db280(0x2945)][_0x2db280(0x146b)](function(_0x509bf0){_0x51d00d(_0x509bf0);})[_0x2db280(0x129e)](function(_0x5e14e4){_0x41a18c(_0x5e14e4);});});}function _0x4368fd(){return _0x6fb43f(function(_0x4f003c,_0x224237){const _0x176e02=a0_0x3bb9;return _0x50f9f7[_0x176e02(0x999)][_0x176e02(0x333)]({'id':_0x39bf8b[_0x176e02(0x999)]['id'],'fields':_0x176e02(0x1569),'nolimit':!![],'role':'agent'})[_0x176e02(0x2945)][_0x176e02(0x146b)](function(_0x4274b7){_0x4f003c(_0x4274b7);})[_0x176e02(0x129e)](function(_0xbdb16){_0x224237(_0xbdb16);});});}function _0x8b9b4f(){return _0x6fb43f(function(_0x5f931b,_0x443e92){const _0x310447=a0_0x3bb9;return _0x50f9f7[_0x310447(0xe7b)][_0x310447(0x16b4)]({'fields':'id,name,internal,fullname','nolimit':!![],'role':_0x310447(0x1755)})[_0x310447(0x2945)][_0x310447(0x146b)](function(_0x27078b){_0x5f931b(_0x27078b);})[_0x310447(0x129e)](function(_0x31f901){_0x443e92(_0x31f901);});});}function _0x1fc5e3(_0x4d3336){return _0x6fb43f(function(_0x19debb,_0x18e562){const _0x200ca9=a0_0x3bb9;_0x3f65c0()[_0x200ca9(0x2635)](_0x4d3336)?_0x19debb():_0x50f9f7['faxQueue'][_0x200ca9(0x135e)]({'id':_0x39bf8b[_0x200ca9(0x999)]['id'],'ids':_0x3f65c0()[_0x200ca9(0x205)](_0x4d3336,'id')})['$promise'][_0x200ca9(0x146b)](function(){_0x19debb();})[_0x200ca9(0x129e)](function(_0x556192){_0x18e562(_0x556192);});});}function _0x920642(_0x1f309e){return _0x6fb43f(function(_0x516372,_0x325d9a){const _0x44cf1c=a0_0x3bb9;_0x3f65c0()[_0x44cf1c(0x2635)](_0x1f309e)?_0x516372():_0x50f9f7[_0x44cf1c(0x999)][_0x44cf1c(0x1f53)]({'id':_0x39bf8b[_0x44cf1c(0x999)]['id'],'ids':_0x3f65c0()[_0x44cf1c(0x205)](_0x1f309e,'id')})[_0x44cf1c(0x2945)][_0x44cf1c(0x146b)](function(){_0x516372();})[_0x44cf1c(0x129e)](function(_0x2706ee){_0x325d9a(_0x2706ee);});});}function _0x4ebad8(){const _0x9dcd3f=_0x83af7a,_0x5b9deb=_0x3f65c0()[_0x9dcd3f(0x2796)](_0x39bf8b[_0x9dcd3f(0xa65)],_0x39bf8b[_0x9dcd3f(0x1ecf)],'id'),_0x59cbb7=_0x3f65c0()['differenceBy'](_0x39bf8b['selectedItems'],_0x39bf8b[_0x9dcd3f(0xa65)],'id');return _0x920642(_0x5b9deb)[_0x9dcd3f(0x146b)](function(){return _0x1fc5e3(_0x59cbb7);})[_0x9dcd3f(0x146b)](function(){const _0x24d9f7=_0x9dcd3f;_0x39bf8b[_0x24d9f7(0x132)]=![],_0x39bf8b[_0x24d9f7(0x2e8)]=angular[_0x24d9f7(0x235a)](_0x39bf8b['allowedItems']),_0x39bf8b[_0x24d9f7(0xa65)]=angular[_0x24d9f7(0x235a)](_0x39bf8b[_0x24d9f7(0x1ecf)]),_0x213c9d[_0x24d9f7(0x1c75)]({'title':_0x24d9f7(0x4c0),'msg':_0x24d9f7(0x26be)});})[_0x9dcd3f(0x129e)](function(_0x18fd97){const _0x3dc94c=_0x9dcd3f;_0x213c9d[_0x3dc94c(0x1980)]({'title':_0x18fd97[_0x3dc94c(0x107b)]?_0x3dc94c(0x262a)+_0x18fd97['status']+'\x20-\x20'+_0x18fd97['statusText']:_0x3dc94c(0xa56),'msg':_0x18fd97['status']?JSON[_0x3dc94c(0x10bb)](_0x18fd97[_0x3dc94c(0x524)]):_0x18fd97[_0x3dc94c(0xd5f)]()});});}function _0x2a96cd(){const _0x307655=_0x83af7a;_0x1d814f[_0x307655(0x2458)]();}}const _0xa35616=_0xa7aeb3;;_0x5c5813[_0x313a4d(0x11c2)]=[_0x313a4d(0x10e8),'$q','toasty','api',_0x313a4d(0x999),_0x313a4d(0x214b),'Auth',_0x313a4d(0x2514)];function _0x5c5813(_0x564bca,_0x10f552,_0x441cf6,_0x260b38,_0x26d1b1,_0x9719b7,_0x2cc6a7,_0x47f40f){const _0x4caf63=_0x313a4d,_0x2bd6e6=this;_0x2bd6e6[_0x4caf63(0x2321)]=_0x2cc6a7[_0x4caf63(0xb12)](),_0x2bd6e6[_0x4caf63(0x999)]=_0x26d1b1,_0x2bd6e6[_0x4caf63(0x2514)]=_0x47f40f,_0x2bd6e6[_0x4caf63(0x1fd6)]=[],_0x2bd6e6[_0x4caf63(0xc4e)]=[],_0x2bd6e6['selectedItems']=[],_0x2bd6e6['startingAllowedItems']=[],_0x2bd6e6['startingSelectedItems']=[],_0x2bd6e6[_0x4caf63(0x132)]=![],_0x2bd6e6[_0x4caf63(0x1f8a)]={'readOnly':!_0x2bd6e6['crudPermissions'][_0x4caf63(0x15f4)],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x4caf63(0x19eb),'line1':_0x4caf63(0x19eb),'line2':'','line3':'','labelAll':_0x9719b7[_0x4caf63(0xde)]('APP.ALL_TEAMS'),'labelSelected':_0x9719b7[_0x4caf63(0xde)]('APP.SELECTED_TEAMS'),'transferCallback':function(){const _0x47dbab=_0x4caf63,_0x4edcba=_0x3f65c0()[_0x47dbab(0x1883)](_0x2bd6e6[_0x47dbab(0xa65)],_0x2bd6e6[_0x47dbab(0x1ecf)],'id');_0x2bd6e6[_0x47dbab(0x132)]=_0x3f65c0()[_0x47dbab(0x2635)](_0x4edcba)?![]:!![];}},_0x2bd6e6[_0x4caf63(0x3d4)]=_0x352504,_0x2bd6e6[_0x4caf63(0x215f)]=_0x2a4069,_0x2bd6e6[_0x4caf63(0x13f3)]=_0xfbde35;function _0x352504(){const _0x594ace=_0x4caf63;return _0x2cc6a7[_0x594ace(0x23e0)](_0x594ace(0x174b))?_0x197791()[_0x594ace(0x129e)](function(_0x51090a){const _0xc18266=_0x594ace;_0x441cf6[_0xc18266(0x1980)]({'title':_0x51090a[_0xc18266(0x107b)]?'API:'+_0x51090a[_0xc18266(0x107b)]+_0xc18266(0x1315)+_0x51090a[_0xc18266(0x167f)]:_0xc18266(0x5a5),'msg':_0x51090a[_0xc18266(0x107b)]?JSON['stringify'](_0x51090a[_0xc18266(0x524)]):_0x51090a[_0xc18266(0xd5f)]()});}):_0x5a5c3f()[_0x594ace(0x146b)](function(_0x5fd906){return _0x2bd6e6['section']=_0x5fd906,_0x197791();})[_0x594ace(0x129e)](function(_0x36af37){const _0x26572b=_0x594ace;_0x441cf6[_0x26572b(0x1980)]({'title':_0x36af37[_0x26572b(0x107b)]?_0x26572b(0x262a)+_0x36af37[_0x26572b(0x107b)]+_0x26572b(0x1315)+_0x36af37['statusText']:_0x26572b(0x5a5),'msg':_0x36af37[_0x26572b(0x107b)]?JSON[_0x26572b(0x10bb)](_0x36af37[_0x26572b(0x524)]):_0x36af37[_0x26572b(0xd5f)]()});});}function _0x5a5c3f(){return _0x10f552(function(_0x3ca086,_0x5aea6d){const _0x1b49e1=a0_0x3bb9;_0x260b38['userProfileSection'][_0x1b49e1(0x16b4)]({'userProfileId':_0x2bd6e6[_0x1b49e1(0x2321)]['userProfileId'],'name':_0x1b49e1(0x21ae)})['$promise']['then'](function(_0x2d84f6){const _0xd7fa8=_0x1b49e1,_0x2a7800=_0x2d84f6&&_0x2d84f6[_0xd7fa8(0x19c7)]?_0x2d84f6['rows'][0x0]:null;_0x3ca086(_0x2a7800);})['catch'](function(_0x215ebd){_0x5aea6d(_0x215ebd);});});}function _0x197791(){return _0x10f552(function(_0x561ead,_0x58008e){const _0x288373=a0_0x3bb9;return _0x34d0e3()[_0x288373(0x146b)](function(_0x31a586){const _0x25bc40=_0x288373;return _0x2bd6e6[_0x25bc40(0x1fd6)]=_0x31a586[_0x25bc40(0x19c7)]?_0x31a586[_0x25bc40(0x19c7)]:[],_0x2cc6a7['hasRole']('admin')?_0x31a586:_0x2bd6e6[_0x25bc40(0x2146)]?_0x2bd6e6[_0x25bc40(0x2146)][_0x25bc40(0x11d2)]?_0x31a586:_0x3e811a():null;})[_0x288373(0x146b)](function(_0x56c2ba){const _0x3b9946=_0x288373,_0x287fa4=_0x56c2ba&&_0x56c2ba[_0x3b9946(0x19c7)]?_0x56c2ba[_0x3b9946(0x19c7)]:[];return _0x2bd6e6[_0x3b9946(0xc4e)]=_0x3f65c0()['map'](_0x287fa4,function(_0x56eb84){const _0x2da79d=_0x3b9946;return _0x3f65c0()[_0x2da79d(0xc84)](_0x2bd6e6['items'],{'id':_0x2cc6a7[_0x2da79d(0x23e0)](_0x2da79d(0x174b))||_0x2bd6e6[_0x2da79d(0x2146)]['autoAssociation']?_0x56eb84['id']:_0x56eb84[_0x2da79d(0x18b8)]});}),_0x2bd6e6[_0x3b9946(0x1fd6)][_0x3b9946(0x1df5)](function(_0x819b03){const _0x486980=_0x3b9946,_0x945dbe=_0x3f65c0()['find'](_0x2bd6e6['allowedItems'],{'id':_0x819b03['id']});_0x2cc6a7[_0x486980(0x23e0)](_0x486980(0x174b))?_0x819b03[_0x486980(0x146f)]=!![]:_0x819b03['isValid']=typeof _0x945dbe!==_0x486980(0x2274)?!![]:![];}),_0x23fcf2();})[_0x288373(0x146b)](function(_0x146c64){const _0x5d21ca=_0x288373,_0x27185f=_0x146c64&&_0x146c64[_0x5d21ca(0x19c7)]?_0x146c64['rows']:[];_0x2bd6e6[_0x5d21ca(0x1ecf)]=_0x3f65c0()[_0x5d21ca(0x205)](_0x27185f,function(_0x427301){const _0x1eae1f=_0x5d21ca;return _0x3f65c0()['find'](_0x2bd6e6[_0x1eae1f(0x1fd6)],{'id':_0x427301['id']});}),_0x2bd6e6[_0x5d21ca(0xa65)]=angular[_0x5d21ca(0x235a)](_0x2bd6e6[_0x5d21ca(0x1ecf)]),_0x2bd6e6['dualMultiselectOptions']['selectedItems']=_0x2bd6e6[_0x5d21ca(0x1ecf)],_0x2bd6e6['dualMultiselectOptions'][_0x5d21ca(0x1fd6)]=_0x3f65c0()[_0x5d21ca(0x2796)](_0x2bd6e6[_0x5d21ca(0xc4e)],_0x2bd6e6['dualMultiselectOptions'][_0x5d21ca(0x1ecf)],'id'),_0x561ead();})['catch'](function(_0x4128b0){_0x58008e(_0x4128b0);});});}function _0x3e811a(){return _0x10f552(function(_0x205096,_0x13cc60){const _0x34e19d=a0_0x3bb9;return _0x260b38[_0x34e19d(0xdcc)][_0x34e19d(0x16b4)]({'sectionId':_0x2bd6e6[_0x34e19d(0x2146)]['id'],'nolimit':!![]})['$promise'][_0x34e19d(0x146b)](function(_0x54c27d){_0x205096(_0x54c27d);})['catch'](function(_0x1dee70){_0x13cc60(_0x1dee70);});});}function _0x23fcf2(){return _0x10f552(function(_0x516b98,_0x824286){const _0x30e87f=a0_0x3bb9;return _0x260b38[_0x30e87f(0x999)][_0x30e87f(0x11d1)]({'id':_0x2bd6e6[_0x30e87f(0x999)]['id'],'fields':_0x30e87f(0x7a7),'nolimit':!![]})['$promise'][_0x30e87f(0x146b)](function(_0x2b47d7){_0x516b98(_0x2b47d7);})[_0x30e87f(0x129e)](function(_0x35719b){_0x824286(_0x35719b);});});}function _0x34d0e3(){return _0x10f552(function(_0xdf363f,_0xe25fc9){const _0x1ab61e=a0_0x3bb9;return _0x260b38['team'][_0x1ab61e(0x16b4)]({'fields':_0x1ab61e(0x7a7),'nolimit':!![]})[_0x1ab61e(0x2945)][_0x1ab61e(0x146b)](function(_0x4632cd){_0xdf363f(_0x4632cd);})[_0x1ab61e(0x129e)](function(_0xc055a4){_0xe25fc9(_0xc055a4);});});}function _0x1934af(_0x16fa7a){return _0x10f552(function(_0x597d39,_0x11c7ab){const _0x3f4088=a0_0x3bb9;_0x3f65c0()[_0x3f4088(0x2635)](_0x16fa7a)?_0x597d39():_0x260b38['faxQueue']['addTeams']({'id':_0x2bd6e6[_0x3f4088(0x999)]['id'],'ids':_0x3f65c0()[_0x3f4088(0x205)](_0x16fa7a,'id')})['$promise'][_0x3f4088(0x146b)](function(){_0x597d39();})[_0x3f4088(0x129e)](function(_0xcd5f98){_0x11c7ab(_0xcd5f98);});});}function _0x3dd898(_0x5cdcf3){return _0x10f552(function(_0x2ad1e6,_0x377452){const _0x265dc0=a0_0x3bb9;_0x3f65c0()[_0x265dc0(0x2635)](_0x5cdcf3)?_0x2ad1e6():_0x260b38[_0x265dc0(0x999)][_0x265dc0(0xfa4)]({'id':_0x2bd6e6[_0x265dc0(0x999)]['id'],'ids':_0x3f65c0()[_0x265dc0(0x205)](_0x5cdcf3,'id')})[_0x265dc0(0x2945)][_0x265dc0(0x146b)](function(){_0x2ad1e6();})[_0x265dc0(0x129e)](function(_0x5c1db6){_0x377452(_0x5c1db6);});});}function _0x2a4069(){const _0x82ff25=_0x4caf63,_0x3c1594=_0x3f65c0()[_0x82ff25(0x2796)](_0x2bd6e6[_0x82ff25(0xa65)],_0x2bd6e6['selectedItems'],'id'),_0x293833=_0x3f65c0()[_0x82ff25(0x2796)](_0x2bd6e6[_0x82ff25(0x1ecf)],_0x2bd6e6[_0x82ff25(0xa65)],'id');return _0x3dd898(_0x3c1594)[_0x82ff25(0x146b)](function(){return _0x1934af(_0x293833);})['then'](function(){const _0x328ea1=_0x82ff25;_0x2bd6e6[_0x328ea1(0x132)]=![],_0x2bd6e6['startingAllowedItems']=angular[_0x328ea1(0x235a)](_0x2bd6e6['allowedItems']),_0x2bd6e6['startingSelectedItems']=angular[_0x328ea1(0x235a)](_0x2bd6e6[_0x328ea1(0x1ecf)]),_0x441cf6[_0x328ea1(0x1c75)]({'title':'SUCCESS','msg':_0x328ea1(0xf08)});})[_0x82ff25(0x129e)](function(_0x3f297f){const _0x2bac40=_0x82ff25;_0x441cf6['error']({'title':_0x3f297f[_0x2bac40(0x107b)]?_0x2bac40(0x262a)+_0x3f297f[_0x2bac40(0x107b)]+_0x2bac40(0x1315)+_0x3f297f[_0x2bac40(0x167f)]:'SYSTEM:LISTS_ASSOCIATION','msg':_0x3f297f[_0x2bac40(0x107b)]?JSON['stringify'](_0x3f297f[_0x2bac40(0x524)]):_0x3f297f[_0x2bac40(0xd5f)]()});});}function _0xfbde35(){const _0x585f6e=_0x4caf63;_0x564bca[_0x585f6e(0x2458)]();}}const _0x725036=_0x5c5813;;const _0x231bb5=_0x4acfac['p']+_0x313a4d(0x1108);;_0xa58bbc[_0x313a4d(0x11c2)]=['$state',_0x313a4d(0xd08),_0x313a4d(0x10e8),_0x313a4d(0x4d8),_0x313a4d(0x214b),_0x313a4d(0x2690),'setting',_0x313a4d(0x247f),_0x313a4d(0x1fe4),'Auth',_0x313a4d(0x999),_0x313a4d(0x1366)];function _0xa58bbc(_0x5b2c3b,_0x5c50eb,_0x539d82,_0x561bc6,_0xa7f72b,_0x159b53,_0x31f288,_0x41d6e7,_0x9cedb0,_0x1fed54,_0x40f72d,_0x55710d){const _0x2d844c=_0x313a4d,_0x56efde=this;_0x56efde[_0x2d844c(0x2321)]=_0x1fed54[_0x2d844c(0xb12)](),_0x56efde[_0x2d844c(0x2690)]=_0x159b53,_0x56efde[_0x2d844c(0x15b9)]=_0x31f288,_0x56efde[_0x2d844c(0x2251)]=_0x56efde[_0x2d844c(0x15b9)][_0x2d844c(0x976)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x56efde['location']=_0x5c50eb['protocol']()+_0x2d844c(0xb0e)+_0x5c50eb[_0x2d844c(0x148e)](),_0x56efde[_0x2d844c(0x999)]=_0x40f72d||_0x5b2c3b[_0x2d844c(0x16a)][_0x2d844c(0x999)]||{},_0x56efde[_0x2d844c(0x1366)]=_0x55710d&&_0x55710d[_0x2d844c(0x51c)]==0x1?_0x55710d['rows'][0x0]:null,_0x56efde[_0x2d844c(0x2514)]=_0x1fed54['parseCrudPermissions'](_0x56efde[_0x2d844c(0x1366)]?_0x56efde['userProfileSection'][_0x2d844c(0x2514)]:null),_0x56efde[_0x2d844c(0x855)]={},_0x56efde['selectedTab']=_0x5b2c3b[_0x2d844c(0x16a)][_0x2d844c(0x13a3)]||0x0,_0x56efde['teamadddialog']=_0x348114,_0x56efde[_0x2d844c(0x1027)]=_0x285978,_0x56efde[_0x2d844c(0x861)]=_0x9cedb0[_0x2d844c(0x271e)],_0x56efde['gotoFaxQueues']=_0x116df5,_0x56efde[_0x2d844c(0x219b)]=_0x8a4170;function _0x348114(_0x554d66,_0x2d1d0d){const _0x15d4d8=_0x2d844c;_0x539d82[_0x15d4d8(0x2615)]({'controller':_0x15d4d8(0x1f4d),'controllerAs':'vm','templateUrl':_0x231bb5,'parent':angular['element'](_0x561bc6[_0x15d4d8(0x2586)]),'targetEvent':_0x2d1d0d,'clickOutsideToClose':!![],'locals':{'faxQueue':_0x554d66,'faxQueues':_0x56efde[_0x15d4d8(0x27fa)]?_0x56efde['faxQueues'][_0x15d4d8(0x19c7)]:[],'crudPermissions':_0x56efde['crudPermissions']}});}function _0x285978(_0x1c5896,_0x5a43bc){const _0x1e568e=_0x2d844c;_0x539d82['show']({'controller':'FaxQueueagentaddController','controllerAs':'vm','templateUrl':_0x3a5738,'parent':angular['element'](_0x561bc6[_0x1e568e(0x2586)]),'targetEvent':_0x5a43bc,'clickOutsideToClose':!![],'locals':{'faxQueue':_0x1c5896,'faxQueues':_0x56efde['faxQueues']?_0x56efde[_0x1e568e(0x27fa)]['rows']:[],'crudPermissions':_0x56efde[_0x1e568e(0x2514)],'realtime':![]}});}function _0x116df5(){const _0x50a59b=_0x2d844c;_0x5b2c3b['go'](_0x50a59b(0xb01),{},{'reload':_0x50a59b(0xb01)});}function _0x8a4170(){const _0x294490=_0x2d844c;_0x41d6e7[_0x294490(0x999)][_0x294490(0x18e1)]({'id':_0x56efde[_0x294490(0x999)]['id']},_0x56efde['faxQueue'])[_0x294490(0x2945)][_0x294490(0x146b)](function(){const _0x5abb90=_0x294490;_0x9cedb0[_0x5abb90(0x1c75)]({'title':'FaxQueue\x20updated!','msg':_0x56efde['faxQueue'][_0x5abb90(0x19eb)]?_0x56efde['faxQueue']['name']+'\x20has\x20been\x20updated!':''});})[_0x294490(0x129e)](function(_0x4db082){const _0x3d5d26=_0x294490;_0x9cedb0[_0x3d5d26(0x1980)]({'title':_0x4db082[_0x3d5d26(0x107b)]?_0x3d5d26(0x262a)+_0x4db082[_0x3d5d26(0x107b)]+'\x20-\x20'+_0x4db082[_0x3d5d26(0x167f)]:_0x3d5d26(0x1f4e),'msg':_0x4db082[_0x3d5d26(0x524)]?JSON[_0x3d5d26(0x10bb)](_0x4db082['data']):_0x4db082[_0x3d5d26(0xd5f)]()});});}}const _0x41ee0f=_0xa58bbc;;_0x17f331[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),'$window','$state',_0x313a4d(0x15fe),_0x313a4d(0x10e8),_0x313a4d(0x4d8),'$timeout',_0x313a4d(0x214b),_0x313a4d(0x27fa),'userProfile',_0x313a4d(0x1366),_0x313a4d(0x247f),_0x313a4d(0x216c),_0x313a4d(0x1fe4),'Auth',_0x313a4d(0x2690),_0x313a4d(0x15b9)];function _0x17f331(_0x4bfa7b,_0x170751,_0x276a55,_0xf006ad,_0x5210e1,_0x46fe40,_0x53d1c7,_0xd21a49,_0x20f4a1,_0x22deb0,_0x3489e0,_0x995609,_0x4d60aa,_0x476b8c,_0x2cd1c3,_0x46cadb,_0x569d42){const _0x397488=_0x313a4d,_0x8e3184=this;_0x8e3184[_0x397488(0x2690)]=_0x46cadb,_0x8e3184[_0x397488(0x15b9)]=_0x569d42,_0x8e3184[_0x397488(0x2321)]=_0x2cd1c3['getCurrentUser'](),_0x8e3184['faxQueues']=_0x20f4a1||{'count':0x0,'rows':[]},_0x8e3184[_0x397488(0x26b6)]=_0x22deb0,_0x8e3184['userProfileSection']=_0x3489e0&&_0x3489e0[_0x397488(0x51c)]==0x1?_0x3489e0[_0x397488(0x19c7)][0x0]:null,_0x8e3184[_0x397488(0x2514)]=_0x2cd1c3[_0x397488(0xe60)](_0x8e3184[_0x397488(0x1366)]?_0x8e3184[_0x397488(0x1366)][_0x397488(0x2514)]:null),_0x8e3184[_0x397488(0x768)]='faxQueues',_0x8e3184[_0x397488(0x216a)]='',_0x8e3184[_0x397488(0x214f)]=null,_0x8e3184[_0x397488(0x164a)]=[],_0x8e3184[_0x397488(0x1a56)]={'fields':_0x397488(0xa22),'sort':_0x397488(0x12f2),'channel':_0x397488(0x22d9),'limit':0xa,'page':0x1},_0x8e3184[_0x397488(0x280a)]=_0x3f65c0()[_0x397488(0x194)]([{'option':_0x397488(0x6a7),'value':_0x397488(0xb5a)},{'option':_0x397488(0xa12),'value':'\x27rrmemory\x27'}],function(_0x2b2072){const _0x2bf3cb=_0x397488;return _0x3f65c0()['replace'](_0x2b2072[_0x2bf3cb(0x175d)],new RegExp('\x27','g'),'');}),_0x8e3184[_0x397488(0x23f9)]=_0x1983ac,_0x8e3184[_0x397488(0x244)]=_0x4eb643,_0x8e3184[_0x397488(0x1027)]=_0x48a27e,_0x8e3184['deleteconfirm']=_0x1ccdf4,_0x8e3184[_0x397488(0x138d)]=_0x2499e9,_0x8e3184[_0x397488(0x1c75)]=_0x3398fd,_0x8e3184[_0x397488(0xbbc)]=_0x21f732,_0x8e3184[_0x397488(0x43c)]=_0x10f81f,_0x8e3184[_0x397488(0x1012)]=_0x5db42e,_0x8e3184[_0x397488(0x21cd)]=_0x1284dc,_0x8e3184[_0x397488(0xc40)]=_0x504906,_0x8e3184[_0x397488(0x20a0)]=_0x28158c,_0x8e3184['selectAllFaxQueues']=_0xe474ee;function _0x1983ac(_0x169dc7){const _0x22d3bb=_0x397488;_0x276a55['go']('app.fax.faxQueues.edit',{'id':_0x169dc7['id'],'faxQueue':_0x169dc7,'crudPermissions':_0x8e3184[_0x22d3bb(0x2514)]});}function _0x4eb643(_0x4b1d58,_0x220ccd){const _0x5b2aa8=_0x397488;_0x5210e1[_0x5b2aa8(0x2615)]({'controller':_0x5b2aa8(0x1f4d),'controllerAs':'vm','templateUrl':_0x231bb5,'parent':angular['element'](_0x46fe40[_0x5b2aa8(0x2586)]),'targetEvent':_0x220ccd,'clickOutsideToClose':!![],'locals':{'faxQueue':_0x4b1d58,'faxQueues':_0x8e3184[_0x5b2aa8(0x27fa)]?_0x8e3184[_0x5b2aa8(0x27fa)]['rows']:[],'crudPermissions':_0x8e3184[_0x5b2aa8(0x2514)]}});}function _0x48a27e(_0x4a8d92,_0x5a5f3e){const _0x5cc001=_0x397488;_0x5210e1[_0x5cc001(0x2615)]({'controller':_0x5cc001(0x22d6),'controllerAs':'vm','templateUrl':_0x3a5738,'parent':angular[_0x5cc001(0x1853)](_0x46fe40[_0x5cc001(0x2586)]),'targetEvent':_0x5a5f3e,'clickOutsideToClose':!![],'locals':{'faxQueue':_0x4a8d92,'faxQueues':_0x8e3184['faxQueues']?_0x8e3184[_0x5cc001(0x27fa)][_0x5cc001(0x19c7)]:[],'crudPermissions':_0x8e3184[_0x5cc001(0x2514)],'realtime':![]}});}function _0x1ccdf4(_0x41a9b6,_0x135a76){const _0x2ff7c7=_0x397488,_0x1afece=_0x5210e1['confirm']()[_0x2ff7c7(0x1189)](_0x2ff7c7(0xdb2)+_0x3f65c0()[_0x2ff7c7(0x20d1)](_0x2ff7c7(0x999))+'?')[_0x2ff7c7(0x1cbe)](_0x2ff7c7(0x16d3)+(_0x41a9b6[_0x2ff7c7(0x19eb)]||_0x2ff7c7(0x999))+''+_0x2ff7c7(0xe01))[_0x2ff7c7(0x4bd)](_0x2ff7c7(0x5d3))[_0x2ff7c7(0x1f27)](_0x135a76)['ok']('OK')[_0x2ff7c7(0x6c3)](_0x2ff7c7(0x39a));_0x5210e1['show'](_0x1afece)[_0x2ff7c7(0x146b)](function(){_0x5db42e(_0x41a9b6);},function(){const _0x40b0cf=_0x2ff7c7;console['log'](_0x40b0cf(0x39a));});}function _0x2499e9(){const _0x36e50f=_0x397488;if(_0x2cd1c3[_0x36e50f(0x23e0)](_0x36e50f(0x174b)))_0x276a55['go']('app.fax.realtime.queues',{});else return _0x995609[_0x36e50f(0x1366)][_0x36e50f(0x16b4)]({'userProfileId':_0x2cd1c3[_0x36e50f(0xb12)]()[_0x36e50f(0x209a)],'sectionId':0x38e})[_0x36e50f(0x2945)][_0x36e50f(0x146b)](function(_0x1aa268){const _0x56af69=_0x36e50f,_0x2e801d=_0x1aa268&&_0x1aa268['rows']?_0x1aa268['rows'][0x0]:null;_0x2e801d&&_0x2e801d[_0x56af69(0x193e)]?_0x276a55['go'](_0x56af69(0x9e8),{}):_0x476b8c[_0x56af69(0x271e)]({'title':_0xd21a49[_0x56af69(0xde)](_0x56af69(0xb27)),'msg':_0xd21a49[_0x56af69(0xde)](_0x56af69(0x174a))});})['catch'](function(_0x1169b6){const _0x211e9f=_0x36e50f;_0x476b8c[_0x211e9f(0x1980)]({'title':_0x1169b6[_0x211e9f(0x107b)]?_0x211e9f(0x262a)+_0x1169b6[_0x211e9f(0x107b)]+_0x211e9f(0x1315)+_0x1169b6[_0x211e9f(0x167f)]:_0x211e9f(0x698),'msg':_0x1169b6['status']?JSON[_0x211e9f(0x10bb)](_0x1169b6[_0x211e9f(0x524)]):_0x1169b6[_0x211e9f(0xd5f)]()});});}let _0x37c3e3=!![],_0x2256e0=0x1;_0x4bfa7b['$watch'](_0x397488(0x2669),function(_0x4bcba1,_0x398cbb){const _0x3f2925=_0x397488;_0x37c3e3?_0x53d1c7(function(){_0x37c3e3=![];}):(!_0x398cbb&&(_0x2256e0=_0x8e3184[_0x3f2925(0x1a56)]['page']),_0x4bcba1!==_0x398cbb&&(_0x8e3184[_0x3f2925(0x1a56)]['page']=0x1),!_0x4bcba1&&(_0x8e3184[_0x3f2925(0x1a56)][_0x3f2925(0x844)]=_0x2256e0),_0x8e3184[_0x3f2925(0xbbc)]());});function _0x3398fd(_0x1a7f65){const _0x4bc1ef=_0x397488;_0x8e3184[_0x4bc1ef(0x27fa)]=_0x1a7f65||{'count':0x0,'rows':[]};}function _0x21f732(){const _0x2cdd9f=_0x397488;_0x8e3184[_0x2cdd9f(0x1a56)][_0x2cdd9f(0x145d)]=(_0x8e3184[_0x2cdd9f(0x1a56)][_0x2cdd9f(0x844)]-0x1)*_0x8e3184[_0x2cdd9f(0x1a56)][_0x2cdd9f(0x221e)],_0x2cd1c3[_0x2cdd9f(0x23e0)](_0x2cdd9f(0x174b))?_0x8e3184[_0x2cdd9f(0xb9c)]=_0x995609['faxQueue'][_0x2cdd9f(0x16b4)](_0x8e3184['query'],_0x3398fd)[_0x2cdd9f(0x2945)]:(_0x8e3184[_0x2cdd9f(0x1a56)]['id']=_0x8e3184[_0x2cdd9f(0x26b6)]['id'],_0x8e3184[_0x2cdd9f(0x1a56)][_0x2cdd9f(0x2146)]=_0x2cdd9f(0x2915),_0x8e3184['promise']=_0x995609[_0x2cdd9f(0x26b6)]['getResources'](_0x8e3184[_0x2cdd9f(0x1a56)],_0x3398fd)['$promise']);}function _0x10f81f(_0x2e5aaf,_0x8428cb){const _0x117143=_0x397488;_0x5210e1[_0x117143(0x2615)]({'controller':'CreateOrEditFaxQueueDialogController','controllerAs':'vm','templateUrl':_0x3d63f7,'parent':angular[_0x117143(0x1853)](_0x46fe40['body']),'targetEvent':_0x2e5aaf,'clickOutsideToClose':!![],'locals':{'faxQueue':_0x8428cb,'faxQueues':_0x8e3184[_0x117143(0x27fa)][_0x117143(0x19c7)],'license':_0x8e3184[_0x117143(0x2690)],'setting':_0x8e3184[_0x117143(0x15b9)],'crudPermissions':_0x8e3184[_0x117143(0x2514)]}});}function _0x5db42e(_0x32eeda){const _0x1ebd87=_0x397488;_0x995609[_0x1ebd87(0x999)][_0x1ebd87(0x1fac)]({'id':_0x32eeda['id']})[_0x1ebd87(0x2945)][_0x1ebd87(0x146b)](function(){const _0x3decdc=_0x1ebd87;_0x3f65c0()[_0x3decdc(0x2640)](_0x8e3184[_0x3decdc(0x27fa)]['rows'],{'id':_0x32eeda['id']}),_0x8e3184[_0x3decdc(0x27fa)][_0x3decdc(0x51c)]-=0x1,!_0x8e3184[_0x3decdc(0x27fa)][_0x3decdc(0x19c7)]['length']&&_0x8e3184[_0x3decdc(0xbbc)](),_0x476b8c[_0x3decdc(0x1c75)]({'title':_0x3f65c0()[_0x3decdc(0x20d1)](_0x3decdc(0x1f9f))+_0x3decdc(0x201c),'msg':_0x32eeda[_0x3decdc(0x19eb)]?_0x32eeda['name']+_0x3decdc(0x23e3):''});})[_0x1ebd87(0x129e)](function(_0x1c9970){const _0x336e3f=_0x1ebd87;if(_0x1c9970[_0x336e3f(0x524)]&&_0x1c9970['data']['errors']&&_0x1c9970['data'][_0x336e3f(0xcef)][_0x336e3f(0x402)]){_0x8e3184[_0x336e3f(0xcef)]=_0x1c9970[_0x336e3f(0x524)]['errors']||[{'message':_0x1c9970[_0x336e3f(0xd5f)](),'type':_0x336e3f(0x330)}];for(let _0x7c28d8=0x0;_0x7c28d8<_0x1c9970[_0x336e3f(0x524)]['errors'][_0x336e3f(0x402)];_0x7c28d8++){_0x476b8c['error']({'title':_0x1c9970[_0x336e3f(0x524)]['errors'][_0x7c28d8][_0x336e3f(0x1142)],'msg':_0x1c9970[_0x336e3f(0x524)][_0x336e3f(0xcef)][_0x7c28d8][_0x336e3f(0x7fd)]});}}else _0x476b8c['error']({'title':_0x1c9970[_0x336e3f(0x107b)]?_0x336e3f(0x262a)+_0x1c9970['status']+'\x20-\x20'+_0x1c9970[_0x336e3f(0x167f)]:_0x336e3f(0x330),'msg':_0x1c9970['data']?JSON[_0x336e3f(0x10bb)](_0x1c9970[_0x336e3f(0x524)]['message']):_0x1c9970['message']||_0x1c9970['toString']()});});}function _0x1284dc(){const _0x3c411a=angular['copy'](_0x8e3184['selectedFaxQueues']);return _0x8e3184['selectedFaxQueues']=[],_0x3c411a;}function _0x504906(_0x34866f){const _0x2801fd=_0x397488,_0x485022=_0x5210e1[_0x2801fd(0x1e8a)]()['title'](_0x2801fd(0x690))[_0x2801fd(0x1cbe)](_0x2801fd(0x16d3)+_0x8e3184['selectedFaxQueues'][_0x2801fd(0x402)]+_0x2801fd(0x2452)+_0x2801fd(0xe01))[_0x2801fd(0x4bd)]('delete\x20FaxQueues')[_0x2801fd(0x1f27)](_0x34866f)['ok']('OK')[_0x2801fd(0x6c3)](_0x2801fd(0x39a));_0x5210e1[_0x2801fd(0x2615)](_0x485022)['then'](function(){const _0x1386d2=_0x2801fd;_0x8e3184[_0x1386d2(0x164a)][_0x1386d2(0x1df5)](function(_0x5a493d){_0x5db42e(_0x5a493d);}),_0x8e3184[_0x1386d2(0x164a)]=[];});}function _0x28158c(){const _0x4a4269=_0x397488;_0x8e3184[_0x4a4269(0x164a)]=[];}function _0xe474ee(){const _0x3932ef=_0x397488;_0x8e3184['selectedFaxQueues']=_0x8e3184[_0x3932ef(0x27fa)][_0x3932ef(0x19c7)];}}const _0x13f72a=_0x17f331;;_0x2133e3[_0x313a4d(0x11c2)]=[_0x313a4d(0x921),_0x313a4d(0x695)];function _0x2133e3(_0x42e2fa,_0x1f9a87){const _0x4e581e=_0x313a4d;_0x42e2fa[_0x4e581e(0x13d6)]('app.fax',{'abstract':!![],'url':'/fax'})[_0x4e581e(0x13d6)](_0x4e581e(0xb01),{'url':_0x4e581e(0x2072),'views':{'content@app':{'templateUrl':_0x448a9f,'controller':_0x4e581e(0x394)}},'resolve':{'faxQueues':[_0x4e581e(0x362),'Auth',function(_0x5b39f0,_0x368d36){const _0x2a4897=_0x4e581e;return _0x368d36[_0x2a4897(0x23e0)](_0x2a4897(0x174b))?_0x5b39f0[_0x2a4897(0x2922)]('faxQueue@get',{'fields':'createdAt,updatedAt,id,name,strategy,timeout,description','sort':_0x2a4897(0x12f2),'channel':'fax','limit':0xa,'offset':0x0}):_0x5b39f0[_0x2a4897(0x2922)]('userProfile@getResources',{'id':_0x368d36['getCurrentUser']()[_0x2a4897(0x209a)],'section':_0x2a4897(0x2915),'fields':'createdAt,updatedAt,id,name,strategy,timeout,description','sort':_0x2a4897(0x12f2),'channel':_0x2a4897(0x22d9),'limit':0xa,'offset':0x0});}],'userProfile':[_0x4e581e(0x362),_0x4e581e(0xa87),function(_0x5e4a1b,_0x830871){const _0x5cafb2=_0x4e581e;return _0x830871[_0x5cafb2(0x23e0)]('admin')?null:_0x5e4a1b[_0x5cafb2(0x2922)](_0x5cafb2(0x119a),{'fields':'id,name,crudPermissions','id':_0x830871[_0x5cafb2(0xb12)]()[_0x5cafb2(0x209a)]});}],'userProfileSection':[_0x4e581e(0x362),_0x4e581e(0xa87),function(_0x454ca6,_0x54a800){const _0x21defa=_0x4e581e;return _0x54a800[_0x21defa(0x23e0)](_0x21defa(0x174b))?null:_0x454ca6[_0x21defa(0x2922)](_0x21defa(0x27be),{'fields':_0x21defa(0x1e64),'userProfileId':_0x54a800[_0x21defa(0xb12)]()[_0x21defa(0x209a)],'sectionId':0x385});}]},'authenticate':!![],'permissionId':0x385,'bodyClass':_0x4e581e(0x22d9)})['state'](_0x4e581e(0x635),{'url':_0x4e581e(0x2028),'params':{'faxQueue':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x21532f,'controller':_0x4e581e(0x1a6)}},'resolve':{'faxQueue':['apiResolver',_0x4e581e(0x28c8),function(_0x1fbf8c,_0x514973){const _0x4cd02b=_0x4e581e;return _0x1fbf8c[_0x4cd02b(0x2922)](_0x4cd02b(0xf8a),{'fields':_0x4cd02b(0xa22),'id':_0x514973['id']});}],'userProfileSection':['apiResolver',_0x4e581e(0xa87),function(_0x2ea7dc,_0x702045){const _0xd3a375=_0x4e581e;return _0x2ea7dc[_0xd3a375(0x2922)]('userProfileSection@get',{'fields':_0xd3a375(0x1e64),'userProfileId':_0x702045[_0xd3a375(0xb12)]()['userProfileId'],'sectionId':0x385});}]},'authenticate':!![],'permissionId':0x385,'bodyClass':_0x4e581e(0x22d9)})[_0x4e581e(0x13d6)]('app.fax.faxAccounts',{'url':'/faxAccounts','views':{'content@app':{'templateUrl':_0x563ef6,'controller':_0x4e581e(0x1b10)}},'resolve':{'faxAccounts':[_0x4e581e(0x362),_0x4e581e(0xa87),function(_0x293427,_0x54f235){const _0x2a194c=_0x4e581e;return _0x54f235['hasRole'](_0x2a194c(0x174b))?_0x293427['resolve'](_0x2a194c(0x6a2),{'fields':_0x2a194c(0x933),'sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x293427[_0x2a194c(0x2922)](_0x2a194c(0x938),{'id':_0x54f235[_0x2a194c(0xb12)]()[_0x2a194c(0x209a)],'section':_0x2a194c(0x17d1),'fields':_0x2a194c(0x933),'sort':_0x2a194c(0x12f2),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver','Auth',function(_0x22ea49,_0x11863f){const _0x3d12ca=_0x4e581e;return _0x11863f[_0x3d12ca(0x23e0)](_0x3d12ca(0x174b))?null:_0x22ea49['resolve'](_0x3d12ca(0x119a),{'fields':'id,name,crudPermissions','id':_0x11863f[_0x3d12ca(0xb12)]()['userProfileId']});}],'userProfileSection':[_0x4e581e(0x362),'Auth',function(_0x58b69a,_0xf08985){const _0x458c3f=_0x4e581e;return _0xf08985[_0x458c3f(0x23e0)](_0x458c3f(0x174b))?null:_0x58b69a[_0x458c3f(0x2922)](_0x458c3f(0x27be),{'fields':_0x458c3f(0x1e64),'userProfileId':_0xf08985[_0x458c3f(0xb12)]()[_0x458c3f(0x209a)],'sectionId':0x386});}]},'authenticate':!![],'permissionId':0x386,'bodyClass':'fax'})[_0x4e581e(0x13d6)](_0x4e581e(0x2205),{'url':_0x4e581e(0x2028),'params':{'faxAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x480cfa,'controller':'FaxAccountController\x20as\x20vm'}},'resolve':{'faxAccount':[_0x4e581e(0x362),_0x4e581e(0x28c8),function(_0x4bc417,_0x33cb76){const _0x55b3d3=_0x4e581e;return _0x4bc417[_0x55b3d3(0x2922)](_0x55b3d3(0x6a2),{'fields':_0x55b3d3(0x933),'id':_0x33cb76['id']});}],'userProfileSection':['apiResolver',_0x4e581e(0xa87),function(_0x4e43f8,_0x3adae8){const _0x15f58f=_0x4e581e;return _0x4e43f8[_0x15f58f(0x2922)](_0x15f58f(0x27be),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x3adae8[_0x15f58f(0xb12)]()[_0x15f58f(0x209a)],'sectionId':0x386});}]},'authenticate':!![],'permissionId':0x386,'bodyClass':'fax'}),_0x1f9a87[_0x4e581e(0x15bf)](_0x4e581e(0x11ef));}angular[_0x313a4d(0x2528)]('app.fax',[_0x313a4d(0xdad),_0x313a4d(0x962),'md.data.table',_0x313a4d(0x963),_0x313a4d(0x19e2),_0x313a4d(0x27c1),_0x313a4d(0x195b),_0x313a4d(0x15ef),_0x313a4d(0xc86),_0x313a4d(0x1f5f),_0x313a4d(0x28a8),'mwFormViewer',_0x313a4d(0x1e57),'ngclipboard',_0x313a4d(0x1bd2),_0x313a4d(0x1792),'angularMaterialFormBuilder',_0x313a4d(0x1626),'chart.js',_0x313a4d(0x11df),'app.fax.realtime'])['config'](_0x2133e3)[_0x313a4d(0x28f0)]('CreateOrEditFaxAccountDialogController',_0x1baf09)[_0x313a4d(0x28f0)](_0x313a4d(0x1f4f),_0x4e06dc)[_0x313a4d(0x28f0)](_0x313a4d(0x12e5),_0x363d2c)['controller'](_0x313a4d(0xe24),_0x4aa807)[_0x313a4d(0x28f0)](_0x313a4d(0x1c56),_0x5492bb)['controller'](_0x313a4d(0x94d),_0xd06b71)['controller'](_0x313a4d(0x2449),_0x2094d9)[_0x313a4d(0x28f0)]('EditFaxAccountAppintervalDialogController',_0x521b47)[_0x313a4d(0x28f0)]('EditFaxAccountAppnoopDialogController',_0x49c0b8)[_0x313a4d(0x28f0)](_0x313a4d(0x2636),_0x1219b2)[_0x313a4d(0x28f0)]('EditFaxAccountAppsystemDialogController',_0x41197b)[_0x313a4d(0x28f0)](_0x313a4d(0x2559),_0x18f868)['controller'](_0x313a4d(0xec),_0x4a2050)[_0x313a4d(0x28f0)]('FaxAccountInteractionsController',_0x1012d9)[_0x313a4d(0x28f0)](_0x313a4d(0xa2c),_0x3ad628)[_0x313a4d(0x28f0)](_0x313a4d(0x1ad0),_0x275854)['controller'](_0x313a4d(0x1ab3),_0x41336e)[_0x313a4d(0x28f0)](_0x313a4d(0x22d6),_0xa35616)[_0x313a4d(0x28f0)](_0x313a4d(0x1f4d),_0x725036)[_0x313a4d(0x28f0)](_0x313a4d(0x900),_0x41ee0f)[_0x313a4d(0x28f0)](_0x313a4d(0xbee),_0x13f72a);;const _0x49d1d1=_0x4acfac['p']+'src/js/modules/main/apps/tools/views/dispositions/dispositions.html/dispositions.html';;_0x2ca460[_0x313a4d(0x11c2)]=['$mdDialog',_0x313a4d(0x214b),'$q',_0x313a4d(0x1fe4),_0x313a4d(0x9e1),_0x313a4d(0x1320),'api',_0x313a4d(0xa87),_0x313a4d(0x2514),_0x313a4d(0x2690),_0x313a4d(0x15b9)];function _0x2ca460(_0x8d741c,_0xabe420,_0x52f4ee,_0x214026,_0x4393ed,_0x561e94,_0x4d3335,_0x21d445,_0x5f164d,_0x13b873,_0xcf2f03){const _0x5890c4=_0x313a4d,_0x45c9e7=this;_0x45c9e7[_0x5890c4(0x2321)]=_0x21d445[_0x5890c4(0xb12)](),_0x45c9e7[_0x5890c4(0x9e1)]=angular[_0x5890c4(0x235a)](_0x4393ed),_0x45c9e7[_0x5890c4(0x15b9)]=_0xcf2f03,_0x45c9e7['license']=_0x13b873,_0x45c9e7[_0x5890c4(0x2514)]=_0x5f164d,_0x45c9e7[_0x5890c4(0x2854)]=![],_0x45c9e7[_0x5890c4(0xcef)]=[];!_0x45c9e7[_0x5890c4(0x9e1)]&&(_0x45c9e7['disposition']={'level':'first'},_0x45c9e7['newDisposition']=!![]);if(_0x561e94){const _0x8b6e02=_0x561e94[_0x5890c4(0x65c)];_0x45c9e7[_0x5890c4(0x9e1)][_0x8b6e02]=_0x561e94['id'];}_0x45c9e7[_0x5890c4(0x3d4)]=_0x317b94,_0x45c9e7[_0x5890c4(0x1b0a)]=_0x51bfdc,_0x45c9e7[_0x5890c4(0x337)]=_0x2251fd,_0x45c9e7[_0x5890c4(0x2799)]=_0x43a0d2,_0x45c9e7[_0x5890c4(0x1220)]=_0x2a7f90,_0x45c9e7[_0x5890c4(0x2248)]=_0x2ce87d,_0x45c9e7[_0x5890c4(0x13f3)]=_0x5bb296;function _0x317b94(){const _0x3d4d06=_0x5890c4;let _0x47d103=_0x3d4d06(0x9e1);if(_0x561e94)_0x47d103=_0x561e94[_0x3d4d06(0xdb0)];else{if(_0x45c9e7[_0x3d4d06(0x2321)][_0x3d4d06(0xfb0)]===_0x3d4d06(0xe7b))_0x47d103='userProfile';}let _0x4f45b3='get';if(_0x561e94)_0x4f45b3=_0x3d4d06(0x2451);else{if(_0x45c9e7[_0x3d4d06(0x2321)][_0x3d4d06(0xfb0)]===_0x3d4d06(0xe7b))_0x4f45b3=_0x3d4d06(0x158f);}const _0xfd68c5={'fields':'id,name,level,ParentId','id':_0x561e94?_0x561e94['id']:undefined,'section':_0x45c9e7['currentUser'][_0x3d4d06(0xfb0)]===_0x3d4d06(0xe7b)?_0x3d4d06(0x1754):undefined,'MailAccountId':_0x561e94?undefined:_0x3d4d06(0x203c),'FaxAccountId':_0x561e94?undefined:_0x3d4d06(0x203c),'SmsAccountId':_0x561e94?undefined:_0x3d4d06(0x203c),'OpenchannelAccountId':_0x561e94?undefined:_0x3d4d06(0x203c),'ChatWebsiteId':_0x561e94?undefined:_0x3d4d06(0x203c),'WhatsappAccountId':_0x561e94?undefined:_0x3d4d06(0x203c),'ListId':_0x561e94?undefined:_0x3d4d06(0x203c),'sort':'id','nolimit':_0x3d4d06(0x1185)};_0x45a7cb(_0x47d103,_0x4f45b3,_0xfd68c5)[_0x3d4d06(0x146b)](function(_0x21445b){const _0x33f92f=_0x3d4d06;_0x45c9e7[_0x33f92f(0x2647)]=angular['copy'](_0x21445b);if(!_0x45c9e7['newDisposition'])_0x3e398c();})['catch'](function(_0x2c0412){const _0x40ef29=_0x3d4d06;_0x214026[_0x40ef29(0x1980)]({'title':_0x2c0412[_0x40ef29(0x107b)]?'API:'+_0x2c0412[_0x40ef29(0x107b)]+_0x40ef29(0x1315)+_0x2c0412[_0x40ef29(0x167f)]:['api',_0x47d103,_0x4f45b3][_0x40ef29(0xb47)](':'),'msg':_0x2c0412[_0x40ef29(0x524)]?JSON['stringify'](_0x2c0412['data'][_0x40ef29(0x7fd)]):_0x2c0412[_0x40ef29(0x7fd)]||_0x2c0412['toString']()});});}function _0x3e398c(){const _0x49ec9e=_0x5890c4;if(_0x45c9e7['disposition'][_0x49ec9e(0xe9d)]===_0x49ec9e(0xb68))return;_0x45c9e7[_0x49ec9e(0x24e4)]=_0x3f65c0()[_0x49ec9e(0xc84)](_0x45c9e7[_0x49ec9e(0x2647)],['id',_0x45c9e7[_0x49ec9e(0x9e1)][_0x49ec9e(0x11b5)]]);if(!_0x45c9e7[_0x49ec9e(0x24e4)]){_0x15a041()[_0x49ec9e(0x146b)](function(_0x2fba36){const _0x577d06=_0x49ec9e;_0x45c9e7[_0x577d06(0x1622)]=_0x2fba36;for(let _0x2eac71=0x0;_0x2eac71<_0x45c9e7[_0x577d06(0x1622)][_0x577d06(0x402)];_0x2eac71++){const _0x27b09d=_0x45c9e7[_0x577d06(0x1622)][_0x2eac71];if(_0x27b09d['id']===_0x45c9e7['disposition'][_0x577d06(0x11b5)]){_0x59d68b(_0x27b09d),_0x27b09d[_0x577d06(0x8ff)]=![],_0x45c9e7[_0x577d06(0x2647)][_0x577d06(0x1f47)](_0x27b09d);break;}}});return;}_0x59d68b(_0x45c9e7[_0x49ec9e(0x24e4)]);}function _0x45a7cb(_0x2fd9eb,_0x43b60f,_0x1c0d46){return _0x52f4ee(function(_0x38ed5b,_0x3c3e78){const _0x5596d9=a0_0x3bb9;_0x4d3335[_0x2fd9eb][_0x43b60f](_0x1c0d46)[_0x5596d9(0x2945)]['then'](function(_0x5b46e4){const _0x2c74bb=_0x5b46e4['rows']||[];return _0x38ed5b(_0x2c74bb);})['catch'](function(_0x598574){_0x3c3e78(_0x598574);});});}function _0x15a041(){return _0x52f4ee(function(_0x5030e1,_0x2bf2f3){const _0xf27658=a0_0x3bb9;_0x4d3335[_0xf27658(0x9e1)]['get']({'fields':_0xf27658(0xe9b),'sort':'id','nolimit':_0xf27658(0x1185)})[_0xf27658(0x2945)][_0xf27658(0x146b)](function(_0x37fbe3){const _0x169103=_0xf27658,_0x5e747a=_0x37fbe3[_0x169103(0x19c7)]||[];return _0x5030e1(_0x5e747a);})['catch'](function(_0x28b66e){_0x2bf2f3(_0x28b66e);});});}function _0x59d68b(_0x22dc3d){const _0xd69d08=_0x5890c4;_0x22dc3d[_0xd69d08(0xe9d)]===_0xd69d08(0xb68)?_0x45c9e7[_0xd69d08(0xef2)]=_0x22dc3d:(_0x45c9e7[_0xd69d08(0xf38)]=!![],_0x45c9e7['secondLevelDisposition']=_0x22dc3d,_0x45c9e7[_0xd69d08(0xef2)]=_0x3f65c0()[_0xd69d08(0xc84)](_0x45c9e7[_0xd69d08(0x2647)],['id',_0x45c9e7[_0xd69d08(0x187a)][_0xd69d08(0x11b5)]]),!_0x45c9e7[_0xd69d08(0xef2)]&&_0x15a041()[_0xd69d08(0x146b)](function(){const _0x1bac4c=_0xd69d08;_0x45c9e7[_0x1bac4c(0xef2)]=_0x3f65c0()[_0x1bac4c(0xc84)](_0x45c9e7[_0x1bac4c(0x1622)],['id',_0x45c9e7[_0x1bac4c(0x187a)]['ParentId']]),_0x45c9e7['firstLevelDisposition'][_0x1bac4c(0x8ff)]=![],_0x45c9e7[_0x1bac4c(0x2647)]['push'](_0x45c9e7[_0x1bac4c(0xef2)]);}));}function _0x2ce87d(_0x5bd103){const _0x5f4213=_0x5890c4;_0x5bd103===_0x5f4213(0xb68)?(_0x45c9e7[_0x5f4213(0xef2)]=undefined,_0x45c9e7['secondLevelDisposition']=undefined,_0x45c9e7['anySecondLevelDisposition']=![]):_0x45c9e7[_0x5f4213(0x187a)]=undefined;}function _0x51bfdc(){const _0x15bc03=_0x5890c4;_0x45c9e7['secondLevelDisposition']=undefined,_0x45c9e7[_0x15bc03(0xf38)]=_0x3f65c0()['some'](_0x45c9e7[_0x15bc03(0x2647)],function(_0x13f915){const _0x19ad3a=_0x15bc03;return _0x13f915[_0x19ad3a(0x11b5)]===_0x45c9e7['firstLevelDisposition']['id']&&_0x13f915['id']!=_0x45c9e7[_0x19ad3a(0x9e1)]['id'];});}function _0x2251fd(){const _0x28ef58=_0x5890c4;_0x45c9e7[_0x28ef58(0xcef)]=[];if(_0x45c9e7[_0x28ef58(0x187a)])_0x45c9e7[_0x28ef58(0x9e1)][_0x28ef58(0x11b5)]=_0x45c9e7[_0x28ef58(0x187a)]['id'],_0x45c9e7[_0x28ef58(0x9e1)]['level']='third';else _0x45c9e7[_0x28ef58(0xef2)]&&(_0x45c9e7[_0x28ef58(0x9e1)][_0x28ef58(0x11b5)]=_0x45c9e7['firstLevelDisposition']['id'],_0x45c9e7[_0x28ef58(0x9e1)][_0x28ef58(0xe9d)]='second');_0x4d3335[_0x28ef58(0x9e1)]['save'](_0x45c9e7[_0x28ef58(0x9e1)])[_0x28ef58(0x2945)][_0x28ef58(0x146b)](function(_0x274bcb){const _0x2d1309=_0x28ef58;_0x45c9e7['dispositions']['unshift'](_0x274bcb[_0x2d1309(0x2488)]()),_0x214026['success']({'title':_0xabe420['instant']('TOOLS.NOTIFICATIONS.DISPOSITION_CREATED_SUCCESS_TITLE')}),_0x5bb296(!![]);})['catch'](function(_0x4df49d){const _0x2550a1=_0x28ef58;if(_0x4df49d['data']&&_0x4df49d[_0x2550a1(0x524)][_0x2550a1(0xcef)]&&_0x4df49d[_0x2550a1(0x524)]['errors']['length']){_0x45c9e7[_0x2550a1(0xcef)]=_0x4df49d[_0x2550a1(0x524)][_0x2550a1(0xcef)]||[{'message':_0x4df49d[_0x2550a1(0xd5f)](),'type':_0x2550a1(0x350)}];for(let _0x4b9441=0x0;_0x4b9441<_0x4df49d['data'][_0x2550a1(0xcef)]['length'];_0x4b9441+=0x1){_0x214026['error']({'title':_0x4df49d['data'][_0x2550a1(0xcef)][_0x4b9441]['type'],'msg':_0x4df49d[_0x2550a1(0x524)]['errors'][_0x4b9441][_0x2550a1(0x7fd)]});}}else _0x214026[_0x2550a1(0x1980)]({'title':_0x4df49d[_0x2550a1(0x107b)]?_0x2550a1(0x262a)+_0x4df49d[_0x2550a1(0x107b)]+_0x2550a1(0x1315)+_0x4df49d[_0x2550a1(0x167f)]:_0x2550a1(0x350),'msg':_0x4df49d[_0x2550a1(0x524)]?JSON[_0x2550a1(0x10bb)](_0x4df49d[_0x2550a1(0x524)][_0x2550a1(0x7fd)]):_0x4df49d['toString']()});});}function _0x43a0d2(){const _0xd7e02d=_0x5890c4;_0x45c9e7[_0xd7e02d(0xcef)]=[];if(_0x45c9e7['secondLevelDisposition'])_0x45c9e7[_0xd7e02d(0x9e1)]['ParentId']=_0x45c9e7[_0xd7e02d(0x187a)]['id'],_0x45c9e7[_0xd7e02d(0x9e1)]['level']=_0xd7e02d(0xb15);else _0x45c9e7[_0xd7e02d(0xef2)]&&(_0x45c9e7[_0xd7e02d(0x9e1)][_0xd7e02d(0x11b5)]=_0x45c9e7[_0xd7e02d(0xef2)]['id'],_0x45c9e7['disposition'][_0xd7e02d(0xe9d)]='second');_0x4d3335[_0xd7e02d(0x9e1)][_0xd7e02d(0x18e1)]({'id':_0x45c9e7[_0xd7e02d(0x9e1)]['id']},_0x45c9e7[_0xd7e02d(0x9e1)])[_0xd7e02d(0x2945)][_0xd7e02d(0x146b)](function(_0x2b713f){const _0xf81026=_0xd7e02d,_0x1478ea=_0x3f65c0()[_0xf81026(0xc84)](_0x45c9e7[_0xf81026(0x2647)],{'id':_0x2b713f['id']});_0x1478ea&&_0x3f65c0()[_0xf81026(0x168d)](_0x1478ea,_0x3f65c0()[_0xf81026(0x40e)](_0x2b713f[_0xf81026(0x2488)](),_0x3f65c0()[_0xf81026(0x627)](_0x1478ea))),_0x214026['success']({'title':_0xabe420[_0xf81026(0xde)](_0xf81026(0x24c6))}),_0x5bb296(!![]);})['catch'](function(_0x5025d0){const _0x40ee23=_0xd7e02d;if(_0x5025d0[_0x40ee23(0x524)]&&_0x5025d0[_0x40ee23(0x524)]['errors']&&_0x5025d0['data'][_0x40ee23(0xcef)]['length']){_0x45c9e7[_0x40ee23(0xcef)]=_0x5025d0[_0x40ee23(0x524)][_0x40ee23(0xcef)]||[{'message':_0x5025d0[_0x40ee23(0xd5f)](),'type':_0x40ee23(0xcfa)}];for(let _0x4c28aa=0x0;_0x4c28aa<_0x5025d0[_0x40ee23(0x524)]['errors'][_0x40ee23(0x402)];_0x4c28aa++){_0x214026['error']({'title':_0x5025d0[_0x40ee23(0x524)][_0x40ee23(0xcef)][_0x4c28aa]['type'],'msg':_0x5025d0[_0x40ee23(0x524)][_0x40ee23(0xcef)][_0x4c28aa][_0x40ee23(0x7fd)]});}}else _0x214026[_0x40ee23(0x1980)]({'title':_0x5025d0[_0x40ee23(0x107b)]?_0x40ee23(0x262a)+_0x5025d0[_0x40ee23(0x107b)]+'\x20-\x20'+_0x5025d0[_0x40ee23(0x167f)]:'api.disposition.update','msg':_0x5025d0[_0x40ee23(0x524)]?JSON[_0x40ee23(0x10bb)](_0x5025d0['data'][_0x40ee23(0x7fd)]):_0x5025d0[_0x40ee23(0xd5f)]()});});}function _0x2a7f90(_0x5d3205){const _0x4de508=_0x5890c4;_0x45c9e7[_0x4de508(0xcef)]=[];const _0x2464e6=_0x3f65c0()['some'](_0x45c9e7[_0x4de508(0x2647)],[_0x4de508(0x11b5),_0x45c9e7['disposition']['id']]),_0x1516f7=_0x8d741c['confirm']({'skipHide':!![]})[_0x4de508(0x1189)](_0xabe420[_0x4de508(0xde)]('TOOLS.NOTIFICATIONS.DISPOSITION_DELETE_TITLE'))['content'](_0xabe420[_0x4de508(0xde)](_0x4de508(0xe8d)+(_0x2464e6?_0x4de508(0xda9):_0x4de508(0xd49)),{'name':_0x45c9e7[_0x4de508(0x9e1)][_0x4de508(0x19eb)]}))['ariaLabel']('Delete\x20disposition')['ok'](_0xabe420[_0x4de508(0xde)](_0x4de508(0x747)))['cancel'](_0xabe420['instant'](_0x4de508(0x1161)))[_0x4de508(0x1f27)](_0x5d3205);_0x8d741c['show'](_0x1516f7)[_0x4de508(0x146b)](function(){const _0xd2cd07=_0x4de508;_0x4d3335[_0xd2cd07(0x9e1)][_0xd2cd07(0x1fac)]({'id':_0x45c9e7[_0xd2cd07(0x9e1)]['id']})[_0xd2cd07(0x2945)][_0xd2cd07(0x146b)](function(){const _0x19384a=_0xd2cd07;_0x214026['success']({'title':_0xabe420[_0x19384a(0xde)](_0x19384a(0xa2f))}),_0x5bb296(!![]);})['catch'](function(_0x433aed){const _0x14c3be=_0xd2cd07;if(_0x433aed[_0x14c3be(0x524)]&&_0x433aed[_0x14c3be(0x524)][_0x14c3be(0xcef)]&&_0x433aed[_0x14c3be(0x524)][_0x14c3be(0xcef)][_0x14c3be(0x402)]){_0x45c9e7[_0x14c3be(0xcef)]=_0x433aed['data'][_0x14c3be(0xcef)]||[{'message':_0x433aed[_0x14c3be(0xd5f)](),'type':_0x14c3be(0x876)}];for(let _0x2c7121=0x0;_0x2c7121<_0x433aed['data']['errors']['length'];_0x2c7121++){_0x214026['error']({'title':_0x433aed[_0x14c3be(0x524)][_0x14c3be(0xcef)][_0x2c7121][_0x14c3be(0x1142)],'msg':_0x433aed[_0x14c3be(0x524)][_0x14c3be(0xcef)][_0x2c7121][_0x14c3be(0x7fd)]});}}else _0x214026[_0x14c3be(0x1980)]({'title':_0x433aed[_0x14c3be(0x107b)]?_0x14c3be(0x262a)+_0x433aed[_0x14c3be(0x107b)]+'\x20-\x20'+_0x433aed[_0x14c3be(0x167f)]:_0x14c3be(0x876),'msg':_0x433aed[_0x14c3be(0x524)]?JSON[_0x14c3be(0x10bb)](_0x433aed[_0x14c3be(0x524)][_0x14c3be(0x7fd)]):_0x433aed[_0x14c3be(0x7fd)]||_0x433aed[_0x14c3be(0xd5f)]()});});});}function _0x5bb296(_0x2f61e6){const _0x12b750=_0x5890c4;_0x8d741c[_0x12b750(0x2458)](_0x2f61e6);}}const _0x2ce069=_0x2ca460;;_0x24f231[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1aa9),_0x313a4d(0x1862),_0x313a4d(0x15fe),_0x313a4d(0x10e8),_0x313a4d(0x4d8),_0x313a4d(0x1abe),_0x313a4d(0x214b),_0x313a4d(0x2647),_0x313a4d(0x26b6),_0x313a4d(0x1366),_0x313a4d(0x247f),_0x313a4d(0x1fe4),_0x313a4d(0xa87),'license',_0x313a4d(0x15b9)];function _0x24f231(_0x12e29d,_0x3f5e59,_0x4ed4be,_0xb9cbd5,_0x3cd077,_0xd66fa0,_0x4468e9,_0x14e0e0,_0x366118,_0x4c56a3,_0x536691,_0x183d7a,_0x452c02,_0x55e99a,_0x3e9227,_0x55741a){const _0x13809f=_0x313a4d,_0x4e7f7b=this;_0x4e7f7b['license']=_0x3e9227,_0x4e7f7b[_0x13809f(0x15b9)]=_0x55741a,_0x4e7f7b[_0x13809f(0x2321)]=_0x55e99a['getCurrentUser'](),_0x4e7f7b[_0x13809f(0x2647)]=_0x366118||{'count':0x0,'rows':[]},_0x4e7f7b['userProfile']=_0x4c56a3,_0x4e7f7b[_0x13809f(0x1366)]=_0x536691&&_0x536691[_0x13809f(0x51c)]==0x1?_0x536691['rows'][0x0]:null,_0x4e7f7b['crudPermissions']=_0x55e99a[_0x13809f(0xe60)](_0x4e7f7b[_0x13809f(0x1366)]?_0x4e7f7b['userProfileSection'][_0x13809f(0x2514)]:null),_0x4e7f7b[_0x13809f(0x2ad)]=[],_0x4e7f7b[_0x13809f(0xd92)]={'first':_0x13809f(0x20c1),'second':_0x13809f(0x227b),'third':_0x13809f(0x1195)},_0x4e7f7b['query']={'fields':_0x13809f(0x2430),'sort':'-updatedAt','MailAccountId':_0x13809f(0x203c),'FaxAccountId':'null','SmsAccountId':_0x13809f(0x203c),'OpenchannelAccountId':_0x13809f(0x203c),'ChatWebsiteId':_0x13809f(0x203c),'WhatsappAccountId':_0x13809f(0x203c),'ListId':_0x13809f(0x203c),'limit':0xa,'page':0x1},_0x4e7f7b[_0x13809f(0xf0a)]=_0x589229,_0x4e7f7b[_0x13809f(0x1c75)]=_0x1f0e91,_0x4e7f7b[_0x13809f(0x2451)]=_0x542f82,_0x4e7f7b['createOrEditDisposition']=_0x2790a6,_0x4e7f7b[_0x13809f(0x1220)]=_0x2a9153,_0x4e7f7b[_0x13809f(0x25f0)]=_0x4ec8bd,_0x4e7f7b['deleteSelectedDispositions']=_0x283acd,_0x4e7f7b['deselectDispositions']=_0x3c2d0d,_0x4e7f7b[_0x13809f(0x481)]=_0x9f6fc9;function _0x2790a6(_0x39aead,_0x4077ac){const _0x61df38=_0x13809f;_0x3cd077[_0x61df38(0x2615)]({'controller':_0x61df38(0x1a84),'controllerAs':'vm','templateUrl':_0x4f093a,'parent':angular[_0x61df38(0x1853)](_0xd66fa0['body']),'targetEvent':_0x39aead,'clickOutsideToClose':!![],'locals':{'disposition':_0x4077ac,'model':null,'license':_0x4e7f7b[_0x61df38(0x2690)],'setting':_0x4e7f7b['setting'],'crudPermissions':_0x4e7f7b[_0x61df38(0x2514)]}})[_0x61df38(0x146b)](function(_0x14dcef){if(_0x14dcef===!![])_0x542f82();});}function _0x589229(_0x531d41,_0x49cdce){const _0xf9d1e9=_0x13809f,_0xbb29b1=_0x3f65c0()['some'](_0x4e7f7b['dispositions']['rows'],[_0xf9d1e9(0x11b5),_0x531d41['id']]),_0x4d38c3=_0x3cd077[_0xf9d1e9(0x1e8a)]()['title'](_0x14e0e0[_0xf9d1e9(0xde)](_0xf9d1e9(0x19e6)))['content'](_0x14e0e0[_0xf9d1e9(0xde)](_0xf9d1e9(0xe8d)+(_0xbb29b1?_0xf9d1e9(0xda9):_0xf9d1e9(0xd49)),{'name':_0x531d41[_0xf9d1e9(0x19eb)]}))[_0xf9d1e9(0x4bd)](_0xf9d1e9(0x27d1))[_0xf9d1e9(0x1f27)](_0x49cdce)['ok']('OK')['cancel'](_0x14e0e0[_0xf9d1e9(0xde)](_0xf9d1e9(0x1161)));_0x3cd077[_0xf9d1e9(0x2615)](_0x4d38c3)[_0xf9d1e9(0x146b)](function(){_0x2a9153(_0x531d41);});}function _0x1f0e91(_0x38f4cb){_0x4e7f7b['dispositions']=_0x38f4cb||{'count':0x0,'rows':[]};}function _0x542f82(){const _0x1b54af=_0x13809f;_0x4e7f7b[_0x1b54af(0x1a56)][_0x1b54af(0x145d)]=(_0x4e7f7b[_0x1b54af(0x1a56)]['page']-0x1)*_0x4e7f7b['query'][_0x1b54af(0x221e)],_0x55e99a[_0x1b54af(0x13ff)]()?_0x4e7f7b[_0x1b54af(0xb9c)]=_0x183d7a['disposition']['get'](_0x4e7f7b[_0x1b54af(0x1a56)],_0x1f0e91)[_0x1b54af(0x2945)]:(_0x4e7f7b[_0x1b54af(0x1a56)]['id']=_0x4e7f7b[_0x1b54af(0x26b6)]['id'],_0x4e7f7b[_0x1b54af(0x1a56)][_0x1b54af(0x2146)]=_0x1b54af(0x1754),_0x4e7f7b[_0x1b54af(0xb9c)]=_0x183d7a[_0x1b54af(0x26b6)][_0x1b54af(0x158f)](_0x4e7f7b[_0x1b54af(0x1a56)],_0x1f0e91)['$promise']);}function _0x2a9153(_0x32c36b){const _0x2e2513=_0x13809f;_0x183d7a[_0x2e2513(0x9e1)][_0x2e2513(0x1fac)]({'id':_0x32c36b['id']})[_0x2e2513(0x2945)][_0x2e2513(0x146b)](function(){const _0x56e036=_0x2e2513;_0x542f82(),_0x452c02[_0x56e036(0x1c75)]({'title':_0x14e0e0[_0x56e036(0xde)](_0x56e036(0xa2f))});})[_0x2e2513(0x129e)](function(_0x27a23d){const _0x4c6f4a=_0x2e2513;if(_0x27a23d[_0x4c6f4a(0x524)]&&_0x27a23d[_0x4c6f4a(0x524)][_0x4c6f4a(0xcef)]&&_0x27a23d[_0x4c6f4a(0x524)][_0x4c6f4a(0xcef)]['length']){_0x4e7f7b[_0x4c6f4a(0xcef)]=_0x27a23d[_0x4c6f4a(0x524)][_0x4c6f4a(0xcef)]||[{'message':_0x27a23d[_0x4c6f4a(0xd5f)](),'type':_0x4c6f4a(0x24a7)}];for(let _0x1881bc=0x0;_0x1881bc<_0x27a23d[_0x4c6f4a(0x524)][_0x4c6f4a(0xcef)][_0x4c6f4a(0x402)];_0x1881bc++){_0x452c02[_0x4c6f4a(0x1980)]({'title':_0x27a23d[_0x4c6f4a(0x524)][_0x4c6f4a(0xcef)][_0x1881bc][_0x4c6f4a(0x1142)],'msg':_0x27a23d[_0x4c6f4a(0x524)][_0x4c6f4a(0xcef)][_0x1881bc][_0x4c6f4a(0x7fd)]});}}else _0x452c02[_0x4c6f4a(0x1980)]({'title':_0x27a23d['status']?_0x4c6f4a(0x262a)+_0x27a23d[_0x4c6f4a(0x107b)]+_0x4c6f4a(0x1315)+_0x27a23d[_0x4c6f4a(0x167f)]:_0x4c6f4a(0x24a7),'msg':_0x27a23d[_0x4c6f4a(0x524)]?JSON[_0x4c6f4a(0x10bb)](_0x27a23d['data'][_0x4c6f4a(0x7fd)]):_0x27a23d['message']||_0x27a23d[_0x4c6f4a(0xd5f)]()});});}function _0x4ec8bd(){const _0x4c3dc5=_0x13809f,_0x89922=angular[_0x4c3dc5(0x235a)](_0x4e7f7b[_0x4c3dc5(0x2ad)]);return _0x4e7f7b[_0x4c3dc5(0x2ad)]=[],_0x89922;}function _0x283acd(_0x22ea89){const _0x841817=_0x13809f,_0x1c8a2f=_0x3cd077[_0x841817(0x1e8a)]()[_0x841817(0x1189)](_0x14e0e0[_0x841817(0xde)](_0x841817(0x1a5b)))[_0x841817(0x80f)](_0x14e0e0[_0x841817(0xde)](_0x841817(0x23ce),{'total':_0x4e7f7b[_0x841817(0x2ad)][_0x841817(0x402)]}))[_0x841817(0x4bd)](_0x841817(0x1eb0))[_0x841817(0x1f27)](_0x22ea89)['ok']('OK')['cancel'](_0x14e0e0[_0x841817(0xde)](_0x841817(0x1161)));_0x3cd077[_0x841817(0x2615)](_0x1c8a2f)['then'](function(){const _0x45a9a3=_0x841817;_0x4e7f7b[_0x45a9a3(0x2ad)][_0x45a9a3(0x1df5)](function(_0x346235){_0x2a9153(_0x346235);}),_0x4e7f7b['selectedDispositions']=[];});}function _0x3c2d0d(){_0x4e7f7b['selectedDispositions']=[];}function _0x9f6fc9(){const _0x128d9b=_0x13809f;_0x4e7f7b[_0x128d9b(0x2ad)]=_0x4e7f7b[_0x128d9b(0x2647)][_0x128d9b(0x19c7)];}let _0x46a7e1=!![],_0x12bce2=0x1;_0x12e29d[_0x13809f(0x21e8)](_0x13809f(0x2669),function(_0x32e880,_0xeecdc9){const _0x388f7d=_0x13809f;_0x46a7e1?_0x4468e9(function(){_0x46a7e1=![];}):(!_0xeecdc9&&(_0x12bce2=_0x4e7f7b['query'][_0x388f7d(0x844)]),_0x32e880!==_0xeecdc9&&(_0x4e7f7b[_0x388f7d(0x1a56)][_0x388f7d(0x844)]=0x1),!_0x32e880&&(_0x4e7f7b['query']['page']=_0x12bce2),_0x542f82());});}const _0x2047b4=_0x24f231;;_0x231fd6[_0x313a4d(0x11c2)]=[_0x313a4d(0x921)];function _0x231fd6(_0x361cdf){const _0x40716c=_0x313a4d;_0x361cdf[_0x40716c(0x13d6)](_0x40716c(0x2f5),{'url':_0x40716c(0x18c4),'views':{'content@app':{'templateUrl':_0x49d1d1,'controller':_0x40716c(0x1381)}},'resolve':{'dispositions':[_0x40716c(0x362),_0x40716c(0xa87),function(_0x7f93e3,_0x310326){const _0x5139e9=_0x40716c;return _0x310326[_0x5139e9(0x23e0)](_0x5139e9(0x174b))?_0x7f93e3['resolve'](_0x5139e9(0x1041),{'fields':'id,level,name,description,ParentId,createdAt,updatedAt','sort':_0x5139e9(0x12f2),'MailAccountId':_0x5139e9(0x203c),'FaxAccountId':_0x5139e9(0x203c),'SmsAccountId':'null','OpenchannelAccountId':_0x5139e9(0x203c),'ChatWebsiteId':_0x5139e9(0x203c),'WhatsappAccountId':_0x5139e9(0x203c),'ListId':_0x5139e9(0x203c),'limit':0xa,'offset':0x0}):_0x7f93e3[_0x5139e9(0x2922)](_0x5139e9(0x938),{'id':_0x310326[_0x5139e9(0xb12)]()[_0x5139e9(0x209a)],'section':_0x5139e9(0x1754),'fields':'id,level,name,description,ParentId,createdAt,updatedAt','sort':'-updatedAt','MailAccountId':_0x5139e9(0x203c),'FaxAccountId':_0x5139e9(0x203c),'SmsAccountId':_0x5139e9(0x203c),'OpenchannelAccountId':'null','ChatWebsiteId':'null','WhatsappAccountId':_0x5139e9(0x203c),'ListId':_0x5139e9(0x203c),'limit':0xa,'offset':0x0});}],'userProfile':[_0x40716c(0x362),_0x40716c(0xa87),function(_0x27c83a,_0x3a949a){const _0x10d0e5=_0x40716c;return _0x3a949a[_0x10d0e5(0x23e0)]('admin')?null:_0x27c83a[_0x10d0e5(0x2922)](_0x10d0e5(0x119a),{'fields':'id,name,crudPermissions','id':_0x3a949a['getCurrentUser']()['userProfileId']});}],'userProfileSection':[_0x40716c(0x362),_0x40716c(0xa87),function(_0x59913b,_0x449019){const _0xcdecc9=_0x40716c;return _0x449019[_0xcdecc9(0x23e0)](_0xcdecc9(0x174b))?null:_0x59913b[_0xcdecc9(0x2922)](_0xcdecc9(0x27be),{'fields':_0xcdecc9(0x1e64),'userProfileId':_0x449019[_0xcdecc9(0xb12)]()[_0xcdecc9(0x209a)],'sectionId':0x3ea});}]},'authenticate':!![],'permissionId':0x3ea,'bodyClass':_0x40716c(0x11fe)});}angular[_0x313a4d(0x2528)](_0x313a4d(0x2f5),[])[_0x313a4d(0x989)](_0x231fd6)[_0x313a4d(0x28f0)]('CreateOrEditDispositionDialogController',_0x2ce069)[_0x313a4d(0x28f0)](_0x313a4d(0x6f2),_0x2047b4);;const _0x319dea=_0x4acfac['p']+_0x313a4d(0x24a2);;const _0x1aa402=_0x4acfac['p']+_0x313a4d(0x258e);;_0x4c1d8a[_0x313a4d(0x11c2)]=[_0x313a4d(0x10e8),_0x313a4d(0x214b),_0x313a4d(0x1fe4),_0x313a4d(0x231a),_0x313a4d(0xd57),_0x313a4d(0x247f),_0x313a4d(0xa87),_0x313a4d(0x2690),'setting',_0x313a4d(0x2514)];function _0x4c1d8a(_0x1f8a41,_0x16e204,_0x1cd5c9,_0x2b7e70,_0x115297,_0x1f701b,_0x53c671,_0x4c3784,_0x293980,_0x6a8cf0){const _0x1d2e04=_0x313a4d,_0x253845=this;_0x253845[_0x1d2e04(0x2321)]=_0x53c671[_0x1d2e04(0xb12)](),_0x253845[_0x1d2e04(0xd57)]=angular['copy'](_0x115297),_0x253845[_0x1d2e04(0x231a)]=angular[_0x1d2e04(0x235a)](_0x2b7e70),_0x253845[_0x1d2e04(0x15b9)]=_0x293980,_0x253845['license']=_0x4c3784,_0x253845['crudPermissions']=_0x6a8cf0,_0x253845[_0x1d2e04(0x20a1)]=![],_0x253845[_0x1d2e04(0xcef)]=[];!_0x253845[_0x1d2e04(0xd57)]&&(_0x253845[_0x1d2e04(0xd57)]={'channel':_0x1d2e04(0xe6)},_0x253845[_0x1d2e04(0x20a1)]=!![]);_0x253845[_0x1d2e04(0x1b51)]=_0x709f9b,_0x253845[_0x1d2e04(0x1239)]=_0x480d4a,_0x253845[_0x1d2e04(0x64f)]=_0x4edd69,_0x253845['closeDialog']=_0x1e14d8;function _0x709f9b(){const _0xd9f984=_0x1d2e04;_0x253845[_0xd9f984(0xcef)]=[],_0x1f701b[_0xd9f984(0xd57)][_0xd9f984(0x1e3)](_0x253845['trigger'])[_0xd9f984(0x2945)]['then'](function(_0x2e65e5){const _0x54481d=_0xd9f984;_0x253845[_0x54481d(0x231a)][_0x54481d(0xb3d)](_0x2e65e5['toJSON']()),_0x1cd5c9[_0x54481d(0x1c75)]({'title':_0x16e204[_0x54481d(0xde)](_0x54481d(0x24bc))}),_0x1e14d8(_0x253845[_0x54481d(0x231a)]);})['catch'](function(_0x559ba2){const _0x274c34=_0xd9f984;if(_0x559ba2[_0x274c34(0x524)]&&_0x559ba2['data']['errors']&&_0x559ba2[_0x274c34(0x524)][_0x274c34(0xcef)]['length']){_0x253845[_0x274c34(0xcef)]=_0x559ba2[_0x274c34(0x524)][_0x274c34(0xcef)]||[{'message':_0x559ba2[_0x274c34(0xd5f)](),'type':'api.trigger.save'}];for(let _0x48b8c8=0x0;_0x48b8c8<_0x559ba2['data'][_0x274c34(0xcef)][_0x274c34(0x402)];_0x48b8c8+=0x1){_0x1cd5c9[_0x274c34(0x1980)]({'title':_0x559ba2['data'][_0x274c34(0xcef)][_0x48b8c8][_0x274c34(0x1142)],'msg':_0x559ba2[_0x274c34(0x524)][_0x274c34(0xcef)][_0x48b8c8][_0x274c34(0x7fd)]});}}else _0x1cd5c9[_0x274c34(0x1980)]({'title':_0x559ba2['status']?'API:'+_0x559ba2[_0x274c34(0x107b)]+_0x274c34(0x1315)+_0x559ba2['statusText']:_0x274c34(0x1765),'msg':_0x559ba2['data']?JSON[_0x274c34(0x10bb)](_0x559ba2[_0x274c34(0x524)][_0x274c34(0x7fd)]):_0x559ba2['toString']()});});}function _0x480d4a(){const _0x17dcf4=_0x1d2e04;_0x253845['errors']=[],_0x1f701b['trigger'][_0x17dcf4(0x18e1)]({'id':_0x253845[_0x17dcf4(0xd57)]['id']},_0x253845['trigger'])['$promise'][_0x17dcf4(0x146b)](function(){const _0x10306a=_0x17dcf4;_0x253845[_0x10306a(0x231a)]=_0x3f65c0()['map'](_0x253845['triggers'],function(_0x2efb9e){const _0x431959=_0x10306a;if(_0x2efb9e['id']===_0x253845[_0x431959(0xd57)]['id'])return _0x253845[_0x431959(0xd57)];else return _0x2efb9e;}),_0x1cd5c9['success']({'title':_0x16e204[_0x10306a(0xde)](_0x10306a(0x2243))}),_0x1e14d8(_0x253845[_0x10306a(0x231a)]);})[_0x17dcf4(0x129e)](function(_0x5f5556){const _0x5060ef=_0x17dcf4;if(_0x5f5556[_0x5060ef(0x524)]&&_0x5f5556[_0x5060ef(0x524)][_0x5060ef(0xcef)]&&_0x5f5556['data']['errors'][_0x5060ef(0x402)]){_0x253845['errors']=_0x5f5556[_0x5060ef(0x524)][_0x5060ef(0xcef)]||[{'message':_0x5f5556[_0x5060ef(0xd5f)](),'type':_0x5060ef(0x148c)}];for(let _0x5aed53=0x0;_0x5aed53<_0x5f5556[_0x5060ef(0x524)][_0x5060ef(0xcef)][_0x5060ef(0x402)];_0x5aed53++){_0x1cd5c9[_0x5060ef(0x1980)]({'title':_0x5f5556['data'][_0x5060ef(0xcef)][_0x5aed53][_0x5060ef(0x1142)],'msg':_0x5f5556[_0x5060ef(0x524)][_0x5060ef(0xcef)][_0x5aed53][_0x5060ef(0x7fd)]});}}else _0x1cd5c9['error']({'title':_0x5f5556[_0x5060ef(0x107b)]?_0x5060ef(0x262a)+_0x5f5556[_0x5060ef(0x107b)]+_0x5060ef(0x1315)+_0x5f5556[_0x5060ef(0x167f)]:'api.trigger.update','msg':_0x5f5556[_0x5060ef(0x524)]?JSON[_0x5060ef(0x10bb)](_0x5f5556[_0x5060ef(0x524)][_0x5060ef(0x7fd)]):_0x5f5556[_0x5060ef(0xd5f)]()});});}function _0x4edd69(_0x34c103){const _0x1a4919=_0x1d2e04;_0x253845[_0x1a4919(0xcef)]=[];const _0x101323=_0x1f8a41['confirm']({'skipHide':!![]})[_0x1a4919(0x1189)](_0x16e204[_0x1a4919(0xde)](_0x1a4919(0x13a2)))['content'](_0x16e204['instant']('TOOLS.NOTIFICATIONS.TRIGGER_DELETE_MESSAGE',{'name':_0x253845[_0x1a4919(0xd57)][_0x1a4919(0x19eb)]}))['ariaLabel']('Delete\x20trigger')['ok'](_0x16e204[_0x1a4919(0xde)](_0x1a4919(0x747)))[_0x1a4919(0x6c3)](_0x16e204['instant']('APP.CANCEL'))[_0x1a4919(0x1f27)](_0x34c103);_0x1f8a41[_0x1a4919(0x2615)](_0x101323)[_0x1a4919(0x146b)](function(){const _0x555778=_0x1a4919;_0x1f701b['trigger']['delete']({'id':_0x253845[_0x555778(0xd57)]['id']})[_0x555778(0x2945)][_0x555778(0x146b)](function(){const _0x430f69=_0x555778;_0x253845[_0x430f69(0x231a)]=_0x3f65c0()['filter'](_0x253845['triggers'],function(_0x44b902){const _0x344bdc=_0x430f69;return _0x44b902['id']!==_0x253845[_0x344bdc(0xd57)]['id'];}),_0x1cd5c9[_0x430f69(0x1c75)]({'title':_0x16e204[_0x430f69(0xde)](_0x430f69(0x2005))}),_0x1e14d8(_0x253845[_0x430f69(0x231a)]);})[_0x555778(0x129e)](function(_0x26b22e){const _0xad3365=_0x555778;if(_0x26b22e[_0xad3365(0x524)]&&_0x26b22e['data']['errors']&&_0x26b22e['data'][_0xad3365(0xcef)][_0xad3365(0x402)]){_0x253845['errors']=_0x26b22e['data'][_0xad3365(0xcef)]||[{'message':_0x26b22e[_0xad3365(0xd5f)](),'type':'api.trigger.delete'}];for(let _0x8640ee=0x0;_0x8640ee<_0x26b22e[_0xad3365(0x524)][_0xad3365(0xcef)]['length'];_0x8640ee++){_0x1cd5c9[_0xad3365(0x1980)]({'title':_0x26b22e[_0xad3365(0x524)][_0xad3365(0xcef)][_0x8640ee]['type'],'msg':_0x26b22e[_0xad3365(0x524)][_0xad3365(0xcef)][_0x8640ee]['message']});}}else _0x1cd5c9['error']({'title':_0x26b22e[_0xad3365(0x107b)]?_0xad3365(0x262a)+_0x26b22e[_0xad3365(0x107b)]+_0xad3365(0x1315)+_0x26b22e[_0xad3365(0x167f)]:_0xad3365(0x1bff),'msg':_0x26b22e[_0xad3365(0x524)]?JSON[_0xad3365(0x10bb)](_0x26b22e[_0xad3365(0x524)][_0xad3365(0x7fd)]):_0x26b22e['message']||_0x26b22e[_0xad3365(0xd5f)]()});});},function(){});}function _0x1e14d8(_0x5befa7){_0x1f8a41['hide'](_0x5befa7);}}const _0x2f2a57=_0x4c1d8a;;const _0x44a76e=_0x4acfac['p']+_0x313a4d(0x1a7d);;_0x210d7f[_0x313a4d(0x11c2)]=['$scope',_0x313a4d(0x214b),_0x313a4d(0x1abe),'$mdDialog',_0x313a4d(0x4d8),_0x313a4d(0x1fe4),_0x313a4d(0x247f),_0x313a4d(0xa87)];function _0x210d7f(_0x29c134,_0x16a016,_0x863a7d,_0x1cd5fd,_0x23112c,_0x42d36d,_0x22a955,_0x58f1ff){const _0x4b881b=_0x313a4d,_0x49e316=this;_0x49e316[_0x4b881b(0x2321)]=_0x58f1ff['getCurrentUser'](),_0x49e316[_0x4b881b(0xd57)]={},_0x49e316[_0x4b881b(0x73d)]={'count':0x0,'rows':[]},_0x49e316[_0x4b881b(0x1405)]=[],_0x49e316[_0x4b881b(0x1a56)]={'fields':_0x4b881b(0x3ae),'limit':0xa,'page':0x1},_0x49e316[_0x4b881b(0x270e)]={'zendesk':_0x4b881b(0x2214),'salesforce':_0x4b881b(0x94e),'sugarcrm':_0x4b881b(0x7a9),'freshdesk':_0x4b881b(0x1df4),'desk':_0x4b881b(0x55d),'zoho':'Zoho','vtiger':'vTiger','dynamics365':_0x4b881b(0x10c4),'servicenow':'ServiceNow','freshsales':'Freshsales'},_0x49e316[_0x4b881b(0x1101)]={0x0:'Popup',0x1:'CTI\x20URL',0x2:_0x4b881b(0xdec)},_0x49e316[_0x4b881b(0x3d4)]=_0x315108,_0x49e316[_0x4b881b(0x1c75)]=_0x3f49dc,_0x49e316[_0x4b881b(0x15c6)]=_0x18f6dd,_0x49e316[_0x4b881b(0x2533)]=_0x4a3409,_0x49e316['exportSelectedTriggerActions']=_0x3198b4,_0x49e316[_0x4b881b(0x19b4)]=_0x19db7c,_0x49e316[_0x4b881b(0x2904)]=_0x27916b;function _0x315108(_0xf1f34b,_0x522139){const _0x553c61=_0x4b881b;_0x49e316[_0x553c61(0xd57)]=_0xf1f34b,_0x49e316[_0x553c61(0x2514)]=typeof _0x522139!==_0x553c61(0x2274)?_0x522139:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x49e316[_0x553c61(0x1a56)]['ActionId']=_0x49e316[_0x553c61(0xd57)]['id'],_0x49e316['query']['id']=_0x49e316[_0x553c61(0xd57)]['id'],_0x18f6dd();}function _0x1569bc(){const _0x4d7494=_0x4b881b;_0x58f1ff[_0x4d7494(0x13ff)]()?_0x22a955[_0x4d7494(0xf03)][_0x4d7494(0x16b4)]({'fields':_0x4d7494(0x7a7),'sort':_0x4d7494(0x19eb),'nolimit':_0x4d7494(0x1185)})[_0x4d7494(0x2945)][_0x4d7494(0x146b)](function(_0x4a1d38){const _0x5a62c1=_0x4d7494;_0x49e316[_0x5a62c1(0x1324)]=_0x4a1d38['rows']||[];})['catch'](function(_0x55d326){const _0x2532fe=_0x4d7494;_0x42d36d[_0x2532fe(0x1980)]({'title':_0x55d326[_0x2532fe(0x107b)]?_0x2532fe(0x262a)+_0x55d326[_0x2532fe(0x107b)]+_0x2532fe(0x1315)+_0x55d326[_0x2532fe(0x167f)]:_0x2532fe(0x11b3),'msg':_0x55d326['data']?JSON[_0x2532fe(0x10bb)](_0x55d326['data']):_0x55d326['toString']()});}):_0x22a955[_0x4d7494(0xf03)][_0x4d7494(0x16b4)]({'fields':'id,name','sort':_0x4d7494(0x19eb),'nolimit':_0x4d7494(0x1185)})[_0x4d7494(0x2945)]['then'](function(_0x2193b8){const _0xc12c41=_0x4d7494;_0x49e316['lists']=_0x2193b8[_0xc12c41(0x19c7)]||[];})[_0x4d7494(0x146b)](function(){const _0x2bab7e=_0x4d7494;return _0x22a955[_0x2bab7e(0x1366)][_0x2bab7e(0x16b4)]({'userProfileId':_0x49e316['currentUser']['userProfileId'],'sectionId':0x12d})[_0x2bab7e(0x2945)];})[_0x4d7494(0x146b)](function(_0x35150c){const _0x5f0e82=_0x4d7494,_0x242996=_0x35150c&&_0x35150c[_0x5f0e82(0x19c7)]?_0x35150c[_0x5f0e82(0x19c7)][0x0]:null;if(!_0x242996){const _0x34a449=[],_0x40085d=[];_0x49e316[_0x5f0e82(0x73d)][_0x5f0e82(0x19c7)]['forEach'](function(_0x2670e7){const _0x55f00a=_0x5f0e82;if(_0x2670e7['action']===_0x55f00a(0x1b3a)){const _0x1bd212=_0x3f65c0()['find'](_0x49e316[_0x55f00a(0x1324)],{'id':Number(_0x2670e7[_0x55f00a(0x1160)])});_0x40085d[_0x55f00a(0x1f47)](_0x1bd212);}});for(let _0x4737c2=0x0;_0x4737c2<_0x49e316['lists'][_0x5f0e82(0x402)];_0x4737c2++){const _0x28e2fd=_0x3f65c0()[_0x5f0e82(0x1360)](_0x40085d,{'id':_0x49e316[_0x5f0e82(0x1324)][_0x4737c2]['id']});_0x28e2fd&&(_0x49e316[_0x5f0e82(0x1324)][_0x4737c2][_0x5f0e82(0x8ff)]=![],_0x34a449[_0x5f0e82(0x1f47)](_0x49e316[_0x5f0e82(0x1324)][_0x4737c2]));}_0x49e316[_0x5f0e82(0x1324)]=_0x34a449;}else{if(!_0x242996[_0x5f0e82(0x11d2)])return _0x22a955['userProfileResource'][_0x5f0e82(0x16b4)]({'sectionId':_0x242996['id']})[_0x5f0e82(0x2945)]['then'](function(_0x551b48){const _0x4fa169=_0x5f0e82,_0x3ec93e=_0x3f65c0()['map'](_0x551b48['rows'],function(_0x4e84a7){const _0x7dbe8d=a0_0x3bb9;return _0x3f65c0()['find'](_0x49e316[_0x7dbe8d(0x1324)],{'id':_0x4e84a7[_0x7dbe8d(0x18b8)]});});let _0x2879a5=null;_0x2879a5=[],_0x49e316['triggerActions'][_0x4fa169(0x19c7)][_0x4fa169(0x1df5)](function(_0x39ef32){const _0x9ef991=_0x4fa169;if(_0x39ef32[_0x9ef991(0x233c)]===_0x9ef991(0x1b3a)){const _0x15609a=_0x3f65c0()[_0x9ef991(0xc84)](_0x49e316['lists'],{'id':Number(_0x39ef32[_0x9ef991(0x1160)])});_0x2879a5['push'](_0x15609a);}}),!_0x3f65c0()[_0x4fa169(0x2635)](_0x2879a5)&&_0x2879a5[_0x4fa169(0x1df5)](function(_0x164d1f){const _0x168126=_0x4fa169;if(!_0x3f65c0()[_0x168126(0x1360)](_0x3ec93e,['id',_0x164d1f['id']])){const _0x3b2d1b=_0x3f65c0()[_0x168126(0xc84)](_0x49e316['lists'],{'id':_0x164d1f['id']});_0x3b2d1b[_0x168126(0x8ff)]=![],_0x3ec93e[_0x168126(0x1f47)](_0x3b2d1b);}}),_0x49e316[_0x4fa169(0x1324)]=_0x3ec93e;});}})[_0x4d7494(0x129e)](function(_0x51baac){const _0x2b550e=_0x4d7494;_0x42d36d['error']({'title':_0x51baac['status']?_0x2b550e(0x262a)+_0x51baac['status']+_0x2b550e(0x1315)+_0x51baac[_0x2b550e(0x167f)]:_0x2b550e(0x1a2f),'msg':_0x51baac[_0x2b550e(0x524)]?JSON[_0x2b550e(0x10bb)](_0x51baac[_0x2b550e(0x524)]):_0x51baac['toString']()});});}function _0x3153f0(){const _0x2f5f09=_0x4b881b,_0x319ac2=_0x3f65c0()(_0x49e316[_0x2f5f09(0x73d)][_0x2f5f09(0x19c7)])['map'](function(_0x22a949){const _0x23c79c=_0x2f5f09;return _0x22a949['action']===_0x23c79c(0x429)?_0x22a949[_0x23c79c(0x1160)]:undefined;})[_0x2f5f09(0x10d6)]()['uniq']()[_0x2f5f09(0x175d)]();_0x319ac2[_0x2f5f09(0x1df5)](function(_0x50a31c){const _0x346721=_0x2f5f09,_0x290694=_0x50a31c+_0x346721(0x1164);if(!_0x49e316[_0x290694]){const _0x110ca1=_0x346721(0x81c)+_0x3f65c0()['startCase'](_0x50a31c)+_0x346721(0xb48);_0x22a955[_0x110ca1][_0x346721(0x16b4)]({'fields':_0x346721(0x7a7),'sort':'id','nolimit':'true'})[_0x346721(0x2945)]['then'](function(_0x154fd9){const _0x47b401=_0x346721;_0x49e316[_0x290694]=_0x154fd9[_0x47b401(0x19c7)]||[];})[_0x346721(0x129e)](function(_0x3a1d6e){const _0x5a419a=_0x346721;_0x42d36d[_0x5a419a(0x1980)]({'title':_0x3a1d6e['status']?_0x5a419a(0x262a)+_0x3a1d6e[_0x5a419a(0x107b)]+'\x20-\x20'+_0x3a1d6e[_0x5a419a(0x167f)]:_0x5a419a(0x290e)+_0x290694[_0x5a419a(0x1c37)]()+_0x5a419a(0x78e),'msg':_0x3a1d6e[_0x5a419a(0x524)]?JSON[_0x5a419a(0x10bb)](_0x3a1d6e[_0x5a419a(0x524)]):_0x3a1d6e[_0x5a419a(0xd5f)]()});});}});}function _0x14ebd9(){const _0x335a7f=_0x4b881b;_0x58f1ff['isAdmin']()?_0x22a955['jscriptyProject'][_0x335a7f(0x16b4)]({'fields':'id,name','sort':_0x335a7f(0x19eb),'nolimit':_0x335a7f(0x1185)})['$promise'][_0x335a7f(0x146b)](function(_0x39bd57){const _0xe63029=_0x335a7f;_0x49e316[_0xe63029(0x1991)]=_0x39bd57[_0xe63029(0x19c7)]||[];})[_0x335a7f(0x129e)](function(_0x20096e){const _0x308e21=_0x335a7f;_0x42d36d['error']({'title':_0x20096e['status']?_0x308e21(0x262a)+_0x20096e[_0x308e21(0x107b)]+'\x20-\x20'+_0x20096e[_0x308e21(0x167f)]:_0x308e21(0x1764),'msg':_0x20096e['data']?JSON[_0x308e21(0x10bb)](_0x20096e['data']):_0x20096e[_0x308e21(0xd5f)]()});}):_0x22a955[_0x335a7f(0x20c8)]['get']({'fields':_0x335a7f(0x7a7),'sort':_0x335a7f(0x19eb),'nolimit':'true'})[_0x335a7f(0x2945)][_0x335a7f(0x146b)](function(_0x399615){const _0x2ebff7=_0x335a7f;_0x49e316[_0x2ebff7(0x1991)]=_0x399615[_0x2ebff7(0x19c7)]||[];})['then'](function(){const _0x11e059=_0x335a7f;return _0x22a955[_0x11e059(0x1366)][_0x11e059(0x16b4)]({'userProfileId':_0x49e316['currentUser'][_0x11e059(0x209a)],'sectionId':0x6a5})[_0x11e059(0x2945)];})[_0x335a7f(0x146b)](function(_0x1376fd){const _0x6705ac=_0x335a7f,_0xfee756=_0x1376fd&&_0x1376fd[_0x6705ac(0x19c7)]?_0x1376fd[_0x6705ac(0x19c7)][0x0]:null;if(!_0xfee756){const _0x1e0190=[],_0x21b1b7=[];_0x49e316['triggerActions']['rows'][_0x6705ac(0x1df5)](function(_0x16ee0d){const _0x3139be=_0x6705ac;if(_0x16ee0d['action']===_0x3139be(0x1640)){const _0x24ffb5=_0x3f65c0()['find'](_0x49e316[_0x3139be(0x1991)],{'id':Number(_0x16ee0d['data1'])});_0x21b1b7[_0x3139be(0x1f47)](_0x24ffb5);}});for(let _0x329574=0x0;_0x329574<_0x49e316['projects']['length'];_0x329574++){const _0x328fd0=_0x3f65c0()[_0x6705ac(0x1360)](_0x21b1b7,{'id':_0x49e316[_0x6705ac(0x1991)][_0x329574]['id']});_0x328fd0&&(_0x49e316[_0x6705ac(0x1991)][_0x329574][_0x6705ac(0x8ff)]=![],_0x1e0190[_0x6705ac(0x1f47)](_0x49e316[_0x6705ac(0x1991)][_0x329574]));}_0x49e316[_0x6705ac(0x1991)]=_0x1e0190;}else{if(!_0xfee756['autoAssociation'])return _0x22a955[_0x6705ac(0xdcc)][_0x6705ac(0x16b4)]({'sectionId':_0xfee756['id']})[_0x6705ac(0x2945)]['then'](function(_0x181c6d){const _0x15b701=_0x6705ac,_0x9096b4=_0x3f65c0()['map'](_0x181c6d[_0x15b701(0x19c7)],function(_0x3736c5){const _0x723b5c=_0x15b701;return _0x3f65c0()['find'](_0x49e316[_0x723b5c(0x1991)],{'id':_0x3736c5[_0x723b5c(0x18b8)]});});let _0x8f97fb=null;_0x8f97fb=[],_0x49e316[_0x15b701(0x73d)][_0x15b701(0x19c7)][_0x15b701(0x1df5)](function(_0x75c2b8){const _0x1f87ef=_0x15b701;if(_0x75c2b8[_0x1f87ef(0x233c)]==='jscripty'){const _0x123c23=_0x3f65c0()[_0x1f87ef(0xc84)](_0x49e316[_0x1f87ef(0x1991)],{'id':Number(_0x75c2b8[_0x1f87ef(0x1160)])});_0x8f97fb[_0x1f87ef(0x1f47)](_0x123c23);}}),!_0x3f65c0()[_0x15b701(0x2635)](_0x8f97fb)&&_0x8f97fb[_0x15b701(0x1df5)](function(_0x12c3b0){const _0x359e43=_0x15b701;if(!_0x3f65c0()[_0x359e43(0x1360)](_0x9096b4,['id',_0x12c3b0['id']])){const _0x5dc536=_0x3f65c0()[_0x359e43(0xc84)](_0x49e316['projects'],{'id':_0x12c3b0['id']});_0x5dc536[_0x359e43(0x8ff)]=![],_0x9096b4[_0x359e43(0x1f47)](_0x5dc536);}}),_0x49e316[_0x15b701(0x1991)]=_0x9096b4;});}})['catch'](function(_0x43a9c5){const _0x2c4420=_0x335a7f;_0x42d36d['error']({'title':_0x43a9c5[_0x2c4420(0x107b)]?_0x2c4420(0x262a)+_0x43a9c5['status']+_0x2c4420(0x1315)+_0x43a9c5[_0x2c4420(0x167f)]:_0x2c4420(0x193b),'msg':_0x43a9c5[_0x2c4420(0x524)]?JSON[_0x2c4420(0x10bb)](_0x43a9c5[_0x2c4420(0x524)]):_0x43a9c5[_0x2c4420(0xd5f)]()});});}function _0x509803(){const _0x53e80=_0x4b881b;_0x58f1ff[_0x53e80(0x13ff)]()?_0x22a955[_0x53e80(0x1928)][_0x53e80(0x16b4)]({'fields':_0x53e80(0x7a7),'sort':'id','nolimit':'true'})[_0x53e80(0x2945)][_0x53e80(0x146b)](function(_0x40fdee){const _0x30ebed=_0x53e80;_0x49e316[_0x30ebed(0x2841)]=_0x40fdee['rows']||[];})[_0x53e80(0x129e)](function(_0x16b566){const _0x4fa28b=_0x53e80;_0x42d36d[_0x4fa28b(0x1980)]({'title':_0x16b566[_0x4fa28b(0x107b)]?_0x4fa28b(0x262a)+_0x16b566['status']+_0x4fa28b(0x1315)+_0x16b566[_0x4fa28b(0x167f)]:_0x4fa28b(0x47b),'msg':_0x16b566[_0x4fa28b(0x524)]?JSON['stringify'](_0x16b566[_0x4fa28b(0x524)]):_0x16b566[_0x4fa28b(0xd5f)]()});}):_0x22a955['template']['get']({'fields':'id,name','sort':'id','nolimit':'true'})['$promise'][_0x53e80(0x146b)](function(_0x50cb35){_0x49e316['templates']=_0x50cb35['rows']||[];})[_0x53e80(0x146b)](function(){const _0x530c13=_0x53e80;return _0x22a955[_0x530c13(0x1366)][_0x530c13(0x16b4)]({'userProfileId':_0x49e316[_0x530c13(0x2321)][_0x530c13(0x209a)],'sectionId':0x3f1})[_0x530c13(0x2945)];})[_0x53e80(0x146b)](function(_0x56dfc1){const _0x14c77d=_0x53e80,_0x2fc8a5=_0x56dfc1&&_0x56dfc1[_0x14c77d(0x19c7)]?_0x56dfc1[_0x14c77d(0x19c7)][0x0]:null;if(!_0x2fc8a5){const _0x52ad0e=[],_0x493d8c=[];_0x49e316['triggerActions'][_0x14c77d(0x19c7)]['forEach'](function(_0x4556c3){const _0x3c0e06=_0x14c77d;if(_0x3f65c0()['includes']([_0x3c0e06(0x13b6),_0x3c0e06(0x1506)],_0x4556c3[_0x3c0e06(0x233c)])){const _0x4b06e2=_0x3f65c0()[_0x3c0e06(0xc84)](_0x49e316[_0x3c0e06(0x2841)],{'id':Number(_0x4556c3['data2'])});_0x493d8c[_0x3c0e06(0x1f47)](_0x4b06e2);}});for(let _0x42db8e=0x0;_0x42db8e<_0x49e316[_0x14c77d(0x2841)][_0x14c77d(0x402)];_0x42db8e++){const _0x381a22=_0x3f65c0()[_0x14c77d(0x1360)](_0x493d8c,{'id':_0x49e316[_0x14c77d(0x2841)][_0x42db8e]['id']});_0x381a22&&(_0x49e316[_0x14c77d(0x2841)][_0x42db8e][_0x14c77d(0x8ff)]=![],_0x52ad0e[_0x14c77d(0x1f47)](_0x49e316[_0x14c77d(0x2841)][_0x42db8e]));}_0x49e316['templates']=_0x52ad0e;}else{if(!_0x2fc8a5['autoAssociation'])return _0x22a955[_0x14c77d(0xdcc)]['get']({'sectionId':_0x2fc8a5['id']})[_0x14c77d(0x2945)][_0x14c77d(0x146b)](function(_0x24312c){const _0x48410a=_0x14c77d,_0x2c15bd=_0x3f65c0()[_0x48410a(0x205)](_0x24312c[_0x48410a(0x19c7)],function(_0x50ba0b){const _0x3df7e6=_0x48410a;return _0x3f65c0()[_0x3df7e6(0xc84)](_0x49e316['templates'],{'id':_0x50ba0b[_0x3df7e6(0x18b8)]});});let _0x5e46d4=null;_0x5e46d4=[],_0x49e316[_0x48410a(0x73d)]['rows']['forEach'](function(_0x5bb8ea){const _0x5532f5=_0x48410a;if(_0x3f65c0()[_0x5532f5(0xa4e)]([_0x5532f5(0x13b6),_0x5532f5(0x1506)],_0x5bb8ea[_0x5532f5(0x233c)])){const _0xe1507d=_0x3f65c0()[_0x5532f5(0xc84)](_0x49e316[_0x5532f5(0x2841)],{'id':Number(_0x5bb8ea[_0x5532f5(0x1ff9)])});_0x5e46d4[_0x5532f5(0x1f47)](_0xe1507d);}}),!_0x3f65c0()['isEmpty'](_0x5e46d4)&&_0x5e46d4[_0x48410a(0x1df5)](function(_0x28c7da){const _0x43db66=_0x48410a;if(!_0x3f65c0()[_0x43db66(0x1360)](_0x2c15bd,['id',_0x28c7da['id']])){const _0x3ff8b3=_0x3f65c0()['find'](_0x49e316[_0x43db66(0x2841)],{'id':_0x28c7da['id']});_0x3ff8b3['canSelect']=![],_0x2c15bd[_0x43db66(0x1f47)](_0x3ff8b3);}}),_0x49e316[_0x48410a(0x2841)]=_0x2c15bd;});}})['catch'](function(_0xe88219){const _0x4a59fd=_0x53e80;_0x42d36d['error']({'title':_0xe88219['status']?_0x4a59fd(0x262a)+_0xe88219[_0x4a59fd(0x107b)]+'\x20-\x20'+_0xe88219[_0x4a59fd(0x167f)]:_0x4a59fd(0x47b),'msg':_0xe88219[_0x4a59fd(0x524)]?JSON[_0x4a59fd(0x10bb)](_0xe88219['data']):_0xe88219['toString']()});});}function _0x405984(){const _0xfdde6=_0x4b881b;if(_0x3f65c0()[_0xfdde6(0x1360)](_0x49e316['triggerActions'][_0xfdde6(0x19c7)],[_0xfdde6(0x233c),'contactManager'])){if(!_0x49e316['lists'])_0x1569bc();}_0x3f65c0()[_0xfdde6(0x1360)](_0x49e316['triggerActions']['rows'],[_0xfdde6(0x233c),'integration'])&&_0x3153f0();if(_0x3f65c0()[_0xfdde6(0x1360)](_0x49e316[_0xfdde6(0x73d)][_0xfdde6(0x19c7)],function(_0x1ec16f){return _0x3f65c0()['includes'](['motionbar','browser'],_0x1ec16f['action']);})){if(!_0x49e316[_0xfdde6(0x2841)])_0x509803();}if(_0x3f65c0()['some'](_0x49e316[_0xfdde6(0x73d)][_0xfdde6(0x19c7)],[_0xfdde6(0x233c),'jscripty'])){if(!_0x49e316[_0xfdde6(0x1991)])_0x14ebd9();}}function _0x3f49dc(_0x353836){const _0x392afc=_0x4b881b;_0x49e316[_0x392afc(0x73d)]=_0x353836||{'count':0x0,'rows':[]},_0x405984();}function _0x18f6dd(){const _0x3b3829=_0x4b881b;_0x49e316[_0x3b3829(0x1a56)][_0x3b3829(0x145d)]=(_0x49e316['query']['page']-0x1)*_0x49e316[_0x3b3829(0x1a56)][_0x3b3829(0x221e)],_0x49e316['promise']=_0x22a955[_0x3b3829(0xd57)][_0x3b3829(0xc01)](_0x49e316[_0x3b3829(0x1a56)],_0x3f49dc)[_0x3b3829(0x2945)];}function _0x4a3409(_0x2d71ad,_0x176574){const _0x131593=_0x4b881b;_0x1cd5fd[_0x131593(0x2615)]({'controller':'CreateOrEditActionDialogController','controllerAs':'vm','templateUrl':_0x44a76e,'parent':angular[_0x131593(0x1853)](_0x23112c['body']),'targetEvent':_0x2d71ad,'clickOutsideToClose':!![],'locals':{'trigger':_0x49e316['trigger'],'action':_0x176574,'actions':_0x49e316[_0x131593(0x73d)]['rows'],'license':null,'setting':null,'crudPermissions':_0x49e316['crudPermissions']}})[_0x131593(0x146b)](function(_0x477c37){const _0x188e8b=_0x131593;_0x477c37&&(_0x49e316[_0x188e8b(0x73d)]={'count':_0x477c37[_0x188e8b(0x402)],'rows':_0x477c37},_0x405984());});}function _0x19db7c(_0x379aa8,_0x14ca1b){const _0x26ad77=_0x4b881b,_0x1d047d=_0x1cd5fd[_0x26ad77(0x1e8a)]()[_0x26ad77(0x1189)](_0x16a016[_0x26ad77(0xde)](_0x26ad77(0x1b9)))[_0x26ad77(0x4bd)]('Delete\x20action')['targetEvent'](_0x14ca1b)['ok']('OK')['cancel'](_0x16a016['instant'](_0x26ad77(0x1161)));_0x1cd5fd['show'](_0x1d047d)[_0x26ad77(0x146b)](function(){_0x539772(_0x379aa8,!![]);});}function _0x539772(_0x14f29f,_0x464bbb){const _0x1e9edb=_0x4b881b;_0x22a955[_0x1e9edb(0x233c)][_0x1e9edb(0x1fac)]({'id':_0x14f29f['id']})[_0x1e9edb(0x2945)][_0x1e9edb(0x146b)](function(){const _0x537b1b=_0x1e9edb;_0x18f6dd(),_0x464bbb&&_0x42d36d[_0x537b1b(0x1c75)]({'title':_0x16a016[_0x537b1b(0xde)]('TOOLS.NOTIFICATIONS.ACTION_DELETED_SUCCESS_TITLE')});})[_0x1e9edb(0x129e)](function(_0x4eb1ab){const _0xebe148=_0x1e9edb;if(_0x4eb1ab['data']&&_0x4eb1ab[_0xebe148(0x524)][_0xebe148(0xcef)]&&_0x4eb1ab[_0xebe148(0x524)][_0xebe148(0xcef)]['length']){_0x49e316[_0xebe148(0xcef)]=_0x4eb1ab['data']['errors']||[{'message':_0x4eb1ab['toString'](),'type':'SYSTEM:GETtrigger'}];for(let _0x539687=0x0;_0x539687<_0x4eb1ab[_0xebe148(0x524)][_0xebe148(0xcef)][_0xebe148(0x402)];_0x539687++){_0x42d36d[_0xebe148(0x1980)]({'title':_0x4eb1ab[_0xebe148(0x524)][_0xebe148(0xcef)][_0x539687][_0xebe148(0x1142)],'msg':_0x4eb1ab[_0xebe148(0x524)][_0xebe148(0xcef)][_0x539687]['message']});}}else _0x42d36d[_0xebe148(0x1980)]({'title':_0x4eb1ab[_0xebe148(0x107b)]?_0xebe148(0x262a)+_0x4eb1ab[_0xebe148(0x107b)]+'\x20-\x20'+_0x4eb1ab[_0xebe148(0x167f)]:'SYSTEM:GETtrigger','msg':_0x4eb1ab['data']?JSON['stringify'](_0x4eb1ab[_0xebe148(0x524)][_0xebe148(0x7fd)]):_0x4eb1ab['message']||_0x4eb1ab[_0xebe148(0xd5f)]()});});}function _0x3198b4(){const _0x3e338b=_0x4b881b,_0x81903c=angular[_0x3e338b(0x235a)](_0x49e316[_0x3e338b(0x1405)]);return _0x49e316['selectedTriggerActions']=[],_0x81903c;}function _0x27916b(_0x4c5216){const _0x5e9505=_0x4b881b,_0x14c575=_0x1cd5fd[_0x5e9505(0x1e8a)]()[_0x5e9505(0x1189)](_0x16a016[_0x5e9505(0xde)](_0x5e9505(0xe52)))[_0x5e9505(0x80f)](_0x16a016[_0x5e9505(0xde)](_0x5e9505(0x25f6),{'total':_0x49e316['selectedTriggerActions']['length']}))[_0x5e9505(0x4bd)](_0x5e9505(0x1db2))['targetEvent'](_0x4c5216)['ok']('OK')['cancel'](_0x16a016[_0x5e9505(0xde)]('APP.CANCEL'));_0x1cd5fd['show'](_0x14c575)[_0x5e9505(0x146b)](function(){const _0x185c2b=_0x5e9505;_0x49e316['selectedTriggerActions'][_0x185c2b(0x1df5)](function(_0x482c21){_0x539772(_0x482c21);}),_0x49e316[_0x185c2b(0x1405)]=[],_0x42d36d[_0x185c2b(0x1c75)]({'title':_0x16a016['instant'](_0x185c2b(0x1cd2))});});}let _0x4970ce=!![],_0x24a860=0x1;_0x29c134['$watch'](_0x4b881b(0x117f),function(_0x1b0cd,_0x11a946){const _0x3bd72a=_0x4b881b;_0x4970ce?_0x863a7d(function(){_0x4970ce=![];}):(!_0x11a946&&(_0x24a860=_0x49e316['query']['page']),_0x1b0cd!==_0x11a946&&(_0x49e316[_0x3bd72a(0x1a56)][_0x3bd72a(0x844)]=0x1),!_0x1b0cd&&(_0x49e316[_0x3bd72a(0x1a56)][_0x3bd72a(0x844)]=_0x24a860),_0x18f6dd());});}const _0xaf10e0=_0x210d7f;;_0x15a550[_0x313a4d(0x11c2)]=[_0x313a4d(0x1862),'$mdDialog',_0x313a4d(0x214b),_0x313a4d(0x1fe4),'actions',_0x313a4d(0x233c),'trigger',_0x313a4d(0x247f),_0x313a4d(0xa87),'license','setting',_0x313a4d(0x2514)];function _0x15a550(_0x2bfa5d,_0x3a260e,_0x481542,_0xb06a99,_0x2539db,_0x494905,_0x117dc4,_0x2af745,_0x3f2142,_0x2e4836,_0x359521,_0x49362b){const _0x512c30=_0x313a4d,_0x24276a=this;_0x24276a[_0x512c30(0x2321)]=_0x3f2142['getCurrentUser'](),_0x24276a['action']=angular[_0x512c30(0x235a)](_0x494905),_0x24276a[_0x512c30(0x713)]=angular[_0x512c30(0x235a)](_0x2539db),_0x24276a[_0x512c30(0x15b9)]=_0x359521,_0x24276a['license']=_0x2e4836,_0x24276a[_0x512c30(0x2514)]=_0x49362b,_0x24276a[_0x512c30(0x523)]=![],_0x24276a[_0x512c30(0xcef)]=[],_0x24276a['trigger']=angular[_0x512c30(0x235a)](_0x117dc4);!_0x24276a[_0x512c30(0x233c)]&&(_0x24276a['action']={},_0x24276a[_0x512c30(0x523)]=!![]);_0x24276a[_0x512c30(0x233c)][_0x512c30(0xeae)]=_0x2bfa5d[_0x512c30(0x16a)]['id']||undefined,_0x24276a[_0x512c30(0xb9b)]=['phone','mobile',_0x512c30(0x22d9)],_0x24276a[_0x512c30(0x133a)]=_0x50f4de,_0x24276a[_0x512c30(0x1c0c)]=_0xea1749,_0x24276a[_0x512c30(0x8ba)]=_0x29b57,_0x24276a[_0x512c30(0x14a)]=_0x11f131,_0x24276a['onIntegrationInit']=_0x38134c,_0x24276a['onSearchFieldsInit']=_0x706795,_0x24276a[_0x512c30(0x145a)]=_0x5b0a87,_0x24276a[_0x512c30(0x2608)]=_0x561ff2,_0x24276a[_0x512c30(0x2913)]=_0x3e33f9,_0x24276a[_0x512c30(0x123a)]=_0x3b7694,_0x24276a[_0x512c30(0x444)]=_0x2ec0ca,_0x24276a[_0x512c30(0x1b69)]=_0x1eb16d,_0x24276a[_0x512c30(0x13f3)]=_0x346166;function _0x11f131(){const _0x357c5f=_0x512c30;_0x3f2142['hasModulePermissions'](_0x357c5f(0x1e43))[_0x357c5f(0x146b)](function(_0x25f435){const _0x416b06=_0x357c5f;_0x24276a[_0x416b06(0x1244)]=_0x25f435;})[_0x357c5f(0x129e)](function(_0x412281){const _0x5e5fc4=_0x357c5f;_0xb06a99[_0x5e5fc4(0x1980)]({'title':_0x412281['status']?_0x5e5fc4(0x262a)+_0x412281['status']+_0x5e5fc4(0x1315)+_0x412281[_0x5e5fc4(0x167f)]:_0x5e5fc4(0x22e6),'msg':_0x412281[_0x5e5fc4(0x524)]?JSON[_0x5e5fc4(0x10bb)](_0x412281[_0x5e5fc4(0x524)]):_0x412281[_0x5e5fc4(0xd5f)]()});});if(_0x24276a[_0x357c5f(0x233c)][_0x357c5f(0x233c)])_0x4751a3();}function _0x38134c(){const _0x355a95=_0x512c30,_0x163b25=[0x515,0x516,0x517,0x519,0x51a,0x51b,0x51c,0x51d,0x51e,0x51f];_0x3f2142[_0x355a95(0x899)](_0x163b25)['then'](function(_0x348739){const _0x25a26d=_0x355a95;_0x24276a[_0x25a26d(0x1476)]=_0x3f65c0()[_0x25a26d(0x168d)](_0x24276a[_0x25a26d(0x1476)],_0x348739);})['catch'](function(_0x5a82fb){const _0x3b7bb7=_0x355a95;_0xb06a99[_0x3b7bb7(0x1980)]({'title':_0x5a82fb[_0x3b7bb7(0x107b)]?_0x3b7bb7(0x262a)+_0x5a82fb[_0x3b7bb7(0x107b)]+_0x3b7bb7(0x1315)+_0x5a82fb[_0x3b7bb7(0x167f)]:_0x3b7bb7(0x19f3),'msg':_0x5a82fb[_0x3b7bb7(0x524)]?JSON[_0x3b7bb7(0x10bb)](_0x5a82fb[_0x3b7bb7(0x524)]):_0x5a82fb[_0x3b7bb7(0xd5f)]()});});}function _0x706795(){const _0x133708=_0x512c30;if(!_0x24276a[_0x133708(0x523)])_0x4da42e();}function _0x47341f(){const _0x1ea581=_0x512c30;_0x3f2142[_0x1ea581(0x13ff)]()?_0x2af745[_0x1ea581(0xf03)][_0x1ea581(0x16b4)]({'fields':_0x1ea581(0x7a7),'sort':_0x1ea581(0x19eb),'nolimit':_0x1ea581(0x1185)})[_0x1ea581(0x2945)][_0x1ea581(0x146b)](function(_0x2926ed){const _0xcbf502=_0x1ea581;_0x24276a[_0xcbf502(0x1324)]=_0x2926ed[_0xcbf502(0x19c7)]||[];})['catch'](function(_0x37fc84){const _0x45896e=_0x1ea581;_0xb06a99[_0x45896e(0x1980)]({'title':_0x37fc84[_0x45896e(0x107b)]?_0x45896e(0x262a)+_0x37fc84['status']+_0x45896e(0x1315)+_0x37fc84[_0x45896e(0x167f)]:_0x45896e(0x11b3),'msg':_0x37fc84[_0x45896e(0x524)]?JSON[_0x45896e(0x10bb)](_0x37fc84['data']):_0x37fc84[_0x45896e(0xd5f)]()});}):_0x2af745[_0x1ea581(0xf03)][_0x1ea581(0x16b4)]({'fields':'id,name','sort':'name','nolimit':_0x1ea581(0x1185)})[_0x1ea581(0x2945)]['then'](function(_0x3d285f){const _0x13f8cf=_0x1ea581;_0x24276a[_0x13f8cf(0x1324)]=_0x3d285f['rows']||[];})[_0x1ea581(0x146b)](function(){const _0x52a19b=_0x1ea581;return _0x2af745[_0x52a19b(0x1366)][_0x52a19b(0x16b4)]({'userProfileId':_0x24276a[_0x52a19b(0x2321)]['userProfileId'],'sectionId':0x12d})[_0x52a19b(0x2945)];})['then'](function(_0x4aaa65){const _0x176487=_0x1ea581,_0x41b303=_0x4aaa65&&_0x4aaa65['rows']?_0x4aaa65['rows'][0x0]:null;if(!_0x41b303){const _0x470419=[],_0x8cffe8=[];_0x24276a['triggerActions']['rows'][_0x176487(0x1df5)](function(_0x2083d7){const _0x19fd8a=_0x176487;if(_0x2083d7[_0x19fd8a(0x233c)]==='contactManager'){const _0x260f4d=_0x3f65c0()[_0x19fd8a(0xc84)](_0x24276a[_0x19fd8a(0x1324)],{'id':Number(_0x2083d7[_0x19fd8a(0x1160)])});_0x8cffe8[_0x19fd8a(0x1f47)](_0x260f4d);}});for(let _0x167a76=0x0;_0x167a76<_0x24276a[_0x176487(0x1324)]['length'];_0x167a76++){const _0x19c9df=_0x3f65c0()['some'](_0x8cffe8,{'id':_0x24276a['lists'][_0x167a76]['id']});_0x19c9df&&(_0x24276a[_0x176487(0x1324)][_0x167a76][_0x176487(0x8ff)]=![],_0x470419[_0x176487(0x1f47)](_0x24276a[_0x176487(0x1324)][_0x167a76]));}_0x24276a[_0x176487(0x1324)]=_0x470419;}else{if(!_0x41b303[_0x176487(0x11d2)])return _0x2af745[_0x176487(0xdcc)]['get']({'sectionId':_0x41b303['id']})[_0x176487(0x2945)][_0x176487(0x146b)](function(_0x43062c){const _0x7a1ae4=_0x176487,_0x305c2b=_0x3f65c0()['map'](_0x43062c[_0x7a1ae4(0x19c7)],function(_0x230a6b){const _0x1c952c=_0x7a1ae4;return _0x3f65c0()[_0x1c952c(0xc84)](_0x24276a[_0x1c952c(0x1324)],{'id':_0x230a6b[_0x1c952c(0x18b8)]});});let _0x48b3dd=null;_0x48b3dd=[],_0x24276a[_0x7a1ae4(0x73d)][_0x7a1ae4(0x19c7)]['forEach'](function(_0x29d809){const _0x2eeaa6=_0x7a1ae4;if(_0x29d809[_0x2eeaa6(0x233c)]===_0x2eeaa6(0x1b3a)){const _0x31776c=_0x3f65c0()['find'](_0x24276a[_0x2eeaa6(0x1324)],{'id':Number(_0x29d809[_0x2eeaa6(0x1160)])});_0x48b3dd[_0x2eeaa6(0x1f47)](_0x31776c);}}),!_0x3f65c0()[_0x7a1ae4(0x2635)](_0x48b3dd)&&_0x48b3dd[_0x7a1ae4(0x1df5)](function(_0x125675){const _0x50cacc=_0x7a1ae4;if(!_0x3f65c0()['some'](_0x305c2b,['id',_0x125675['id']])){const _0x320fec=_0x3f65c0()[_0x50cacc(0xc84)](_0x24276a[_0x50cacc(0x1324)],{'id':_0x125675['id']});_0x320fec['canSelect']=![],_0x305c2b[_0x50cacc(0x1f47)](_0x320fec);}}),_0x24276a[_0x7a1ae4(0x1324)]=_0x305c2b;});}})['catch'](function(_0xf3963){const _0x38c8a8=_0x1ea581;_0xb06a99[_0x38c8a8(0x1980)]({'title':_0xf3963[_0x38c8a8(0x107b)]?_0x38c8a8(0x262a)+_0xf3963[_0x38c8a8(0x107b)]+_0x38c8a8(0x1315)+_0xf3963[_0x38c8a8(0x167f)]:_0x38c8a8(0x1a2f),'msg':_0xf3963[_0x38c8a8(0x524)]?JSON['stringify'](_0xf3963['data']):_0xf3963['toString']()});});}function _0x3ddf22(){const _0x4fd24a=_0x512c30;_0x2af745[_0x4fd24a(0x18c3)][_0x4fd24a(0x1ea2)]({})[_0x4fd24a(0x2945)][_0x4fd24a(0x146b)](function(_0x439923){const _0x4ba3f0=_0x4fd24a;_0x24276a[_0x4ba3f0(0x1cad)]=[],_0x24276a[_0x4ba3f0(0x10ba)]=[];const _0x1b05cb=_0x3f65c0()[_0x4ba3f0(0x81b)](_0x439923[_0x4ba3f0(0x2488)]());for(let _0x154d3d=0x0;_0x154d3d<_0x1b05cb[_0x4ba3f0(0x402)];_0x154d3d++){if(_0x3f65c0()[_0x4ba3f0(0xa4e)](_0x24276a[_0x4ba3f0(0xb9b)],_0x1b05cb[_0x154d3d][_0x4ba3f0(0x1e1d)]))_0x24276a[_0x4ba3f0(0x1cad)][_0x4ba3f0(0x1f47)](_0x1b05cb[_0x154d3d]);else{if(_0x3f65c0()[_0x4ba3f0(0xd4d)](_0x1b05cb[_0x154d3d][_0x4ba3f0(0x1e1d)],_0x4ba3f0(0x21ef))){if(_0x1b05cb[_0x154d3d][_0x4ba3f0(0x1802)][_0x4ba3f0(0x1142)]===_0x4ba3f0(0xa8d))_0x24276a[_0x4ba3f0(0x10ba)][_0x4ba3f0(0x1f47)](_0x1b05cb[_0x154d3d]);}}}})[_0x4fd24a(0x129e)](function(_0x4bfca0){const _0x1f0977=_0x4fd24a;_0xb06a99[_0x1f0977(0x1980)]({'title':_0x4bfca0[_0x1f0977(0x107b)]?_0x1f0977(0x262a)+_0x4bfca0['status']+_0x1f0977(0x1315)+_0x4bfca0[_0x1f0977(0x167f)]:_0x1f0977(0x1d5),'msg':_0x4bfca0[_0x1f0977(0x524)]?JSON['stringify'](_0x4bfca0[_0x1f0977(0x524)]):_0x4bfca0[_0x1f0977(0xd5f)]()});});}function _0x4da42e(){const _0x525ec2=_0x512c30;_0x2af745[_0x525ec2(0xf03)][_0x525ec2(0x2328)]({'id':_0x24276a[_0x525ec2(0x233c)]['data1'],'ListId':_0x24276a[_0x525ec2(0x233c)]['data1']})[_0x525ec2(0x2945)][_0x525ec2(0x146b)](function(_0x25219b){const _0x28007c=_0x525ec2;_0x24276a[_0x28007c(0x7dd)]=_0x3f65c0()['filter'](_0x25219b['rows'],['type','text']),_0x24276a[_0x28007c(0x7dd)][_0x28007c(0x1df5)](function(_0x187f54){const _0x38b8f8=_0x28007c;_0x187f54['columnName']=_0x38b8f8(0x21ef)+_0x187f54['id'];});})[_0x525ec2(0x129e)](function(_0x2d29bd){const _0x3f0322=_0x525ec2;_0xb06a99[_0x3f0322(0x1980)]({'title':_0x2d29bd['status']?_0x3f0322(0x262a)+_0x2d29bd[_0x3f0322(0x107b)]+'\x20-\x20'+_0x2d29bd['statusText']:_0x3f0322(0x208e),'msg':_0x2d29bd[_0x3f0322(0x524)]?JSON[_0x3f0322(0x10bb)](_0x2d29bd['data']):_0x2d29bd[_0x3f0322(0xd5f)]()});});}function _0x1b267e(){const _0x36d49f=_0x512c30;_0x3f2142[_0x36d49f(0x13ff)]()?_0x2af745[_0x36d49f(0x20c8)][_0x36d49f(0x16b4)]({'fields':_0x36d49f(0x7a7),'sort':_0x36d49f(0x19eb),'nolimit':'true'})['$promise'][_0x36d49f(0x146b)](function(_0x4480e9){const _0x46b308=_0x36d49f;_0x24276a[_0x46b308(0x1991)]=_0x4480e9[_0x46b308(0x19c7)]||[];})[_0x36d49f(0x129e)](function(_0x4eaf36){const _0x41433d=_0x36d49f;_0xb06a99[_0x41433d(0x1980)]({'title':_0x4eaf36[_0x41433d(0x107b)]?_0x41433d(0x262a)+_0x4eaf36[_0x41433d(0x107b)]+_0x41433d(0x1315)+_0x4eaf36[_0x41433d(0x167f)]:_0x41433d(0x1764),'msg':_0x4eaf36[_0x41433d(0x524)]?JSON[_0x41433d(0x10bb)](_0x4eaf36[_0x41433d(0x524)]):_0x4eaf36[_0x41433d(0xd5f)]()});}):_0x2af745[_0x36d49f(0x20c8)][_0x36d49f(0x16b4)]({'fields':_0x36d49f(0x7a7),'sort':_0x36d49f(0x19eb),'nolimit':_0x36d49f(0x1185)})['$promise']['then'](function(_0x3a178c){const _0x2474fa=_0x36d49f;_0x24276a[_0x2474fa(0x1991)]=_0x3a178c[_0x2474fa(0x19c7)]||[];})[_0x36d49f(0x146b)](function(){const _0xa9f2ef=_0x36d49f;return _0x2af745[_0xa9f2ef(0x1366)][_0xa9f2ef(0x16b4)]({'userProfileId':_0x24276a[_0xa9f2ef(0x2321)][_0xa9f2ef(0x209a)],'sectionId':0x6a5})[_0xa9f2ef(0x2945)];})[_0x36d49f(0x146b)](function(_0x3b2539){const _0x70ee78=_0x36d49f,_0x1547c2=_0x3b2539&&_0x3b2539['rows']?_0x3b2539[_0x70ee78(0x19c7)][0x0]:null;if(!_0x1547c2){const _0x3813b4=[],_0x449dd6=[];_0x24276a[_0x70ee78(0x73d)][_0x70ee78(0x19c7)][_0x70ee78(0x1df5)](function(_0x410dab){const _0x2d1ad3=_0x70ee78;if(_0x410dab['action']===_0x2d1ad3(0x1640)){const _0x3c8a93=_0x3f65c0()[_0x2d1ad3(0xc84)](_0x24276a[_0x2d1ad3(0x1991)],{'id':Number(_0x410dab[_0x2d1ad3(0x1160)])});_0x449dd6[_0x2d1ad3(0x1f47)](_0x3c8a93);}});for(let _0x47f0b4=0x0;_0x47f0b4<_0x24276a['projects']['length'];_0x47f0b4++){const _0x3b16e2=_0x3f65c0()[_0x70ee78(0x1360)](_0x449dd6,{'id':_0x24276a[_0x70ee78(0x1991)][_0x47f0b4]['id']});_0x3b16e2&&(_0x24276a[_0x70ee78(0x1991)][_0x47f0b4][_0x70ee78(0x8ff)]=![],_0x3813b4[_0x70ee78(0x1f47)](_0x24276a[_0x70ee78(0x1991)][_0x47f0b4]));}_0x24276a[_0x70ee78(0x1991)]=_0x3813b4;}else{if(!_0x1547c2[_0x70ee78(0x11d2)])return _0x2af745[_0x70ee78(0xdcc)]['get']({'sectionId':_0x1547c2['id']})['$promise'][_0x70ee78(0x146b)](function(_0x39bd0c){const _0x3c53a2=_0x70ee78,_0x1fe6ef=_0x3f65c0()[_0x3c53a2(0x205)](_0x39bd0c[_0x3c53a2(0x19c7)],function(_0x38e04f){const _0x230220=_0x3c53a2;return _0x3f65c0()[_0x230220(0xc84)](_0x24276a[_0x230220(0x1991)],{'id':_0x38e04f[_0x230220(0x18b8)]});});let _0x33e8c4=null;_0x33e8c4=[],_0x24276a['triggerActions'][_0x3c53a2(0x19c7)][_0x3c53a2(0x1df5)](function(_0x3bc905){const _0x11b35c=_0x3c53a2;if(_0x3bc905[_0x11b35c(0x233c)]===_0x11b35c(0x1640)){const _0x21e52c=_0x3f65c0()['find'](_0x24276a[_0x11b35c(0x1991)],{'id':Number(_0x3bc905[_0x11b35c(0x1160)])});_0x33e8c4[_0x11b35c(0x1f47)](_0x21e52c);}}),!_0x3f65c0()[_0x3c53a2(0x2635)](_0x33e8c4)&&_0x33e8c4[_0x3c53a2(0x1df5)](function(_0x4428bc){const _0x5a6a8a=_0x3c53a2;if(!_0x3f65c0()[_0x5a6a8a(0x1360)](_0x1fe6ef,['id',_0x4428bc['id']])){const _0x3a00f1=_0x3f65c0()[_0x5a6a8a(0xc84)](_0x24276a[_0x5a6a8a(0x1991)],{'id':_0x4428bc['id']});_0x3a00f1[_0x5a6a8a(0x8ff)]=![],_0x1fe6ef[_0x5a6a8a(0x1f47)](_0x3a00f1);}}),_0x24276a[_0x3c53a2(0x1991)]=_0x1fe6ef;});}})[_0x36d49f(0x129e)](function(_0x14b8ee){const _0x49b4db=_0x36d49f;_0xb06a99[_0x49b4db(0x1980)]({'title':_0x14b8ee['status']?'API:'+_0x14b8ee[_0x49b4db(0x107b)]+_0x49b4db(0x1315)+_0x14b8ee[_0x49b4db(0x167f)]:_0x49b4db(0x193b),'msg':_0x14b8ee[_0x49b4db(0x524)]?JSON[_0x49b4db(0x10bb)](_0x14b8ee['data']):_0x14b8ee['toString']()});});}function _0x3e9f6c(){const _0x5e828c=_0x512c30;_0x3f2142[_0x5e828c(0x13ff)]()?_0x2af745[_0x5e828c(0x1928)][_0x5e828c(0x16b4)]({'fields':_0x5e828c(0x7a7),'sort':'id','nolimit':_0x5e828c(0x1185)})[_0x5e828c(0x2945)][_0x5e828c(0x146b)](function(_0x7476cf){const _0x531b5a=_0x5e828c;_0x24276a[_0x531b5a(0x2841)]=_0x7476cf[_0x531b5a(0x19c7)]||[];})['catch'](function(_0x5d60f1){const _0x4e744c=_0x5e828c;_0xb06a99[_0x4e744c(0x1980)]({'title':_0x5d60f1[_0x4e744c(0x107b)]?'API:'+_0x5d60f1[_0x4e744c(0x107b)]+_0x4e744c(0x1315)+_0x5d60f1[_0x4e744c(0x167f)]:_0x4e744c(0x47b),'msg':_0x5d60f1['data']?JSON['stringify'](_0x5d60f1[_0x4e744c(0x524)]):_0x5d60f1[_0x4e744c(0xd5f)]()});}):_0x2af745[_0x5e828c(0x1928)][_0x5e828c(0x16b4)]({'fields':_0x5e828c(0x7a7),'sort':'id','nolimit':'true'})[_0x5e828c(0x2945)][_0x5e828c(0x146b)](function(_0x43d1ad){const _0x10ca8a=_0x5e828c;_0x24276a[_0x10ca8a(0x2841)]=_0x43d1ad[_0x10ca8a(0x19c7)]||[];})['then'](function(){const _0x7ea5c=_0x5e828c;return _0x2af745[_0x7ea5c(0x1366)]['get']({'userProfileId':_0x24276a['currentUser'][_0x7ea5c(0x209a)],'sectionId':0x3f1})[_0x7ea5c(0x2945)];})['then'](function(_0x5a085e){const _0x52e1c9=_0x5e828c,_0x5679cc=_0x5a085e&&_0x5a085e[_0x52e1c9(0x19c7)]?_0x5a085e[_0x52e1c9(0x19c7)][0x0]:null;if(!_0x5679cc){const _0x3c88d3=[],_0x233942=[];_0x24276a[_0x52e1c9(0x73d)][_0x52e1c9(0x19c7)][_0x52e1c9(0x1df5)](function(_0x2c03c4){const _0x6f3380=_0x52e1c9;if(_0x3f65c0()['includes'](['motionbar',_0x6f3380(0x1506)],_0x2c03c4['action'])){const _0xf9350c=_0x3f65c0()[_0x6f3380(0xc84)](_0x24276a['templates'],{'id':Number(_0x2c03c4[_0x6f3380(0x1ff9)])});_0x233942[_0x6f3380(0x1f47)](_0xf9350c);}});for(let _0x5828c4=0x0;_0x5828c4<_0x24276a[_0x52e1c9(0x2841)][_0x52e1c9(0x402)];_0x5828c4++){const _0x5db666=_0x3f65c0()[_0x52e1c9(0x1360)](_0x233942,{'id':_0x24276a['templates'][_0x5828c4]['id']});_0x5db666&&(_0x24276a[_0x52e1c9(0x2841)][_0x5828c4]['canSelect']=![],_0x3c88d3['push'](_0x24276a[_0x52e1c9(0x2841)][_0x5828c4]));}_0x24276a[_0x52e1c9(0x2841)]=_0x3c88d3;}else{if(!_0x5679cc[_0x52e1c9(0x11d2)])return _0x2af745['userProfileResource'][_0x52e1c9(0x16b4)]({'sectionId':_0x5679cc['id']})[_0x52e1c9(0x2945)]['then'](function(_0x42ecd8){const _0x2021c5=_0x52e1c9,_0x6f9d02=_0x3f65c0()[_0x2021c5(0x205)](_0x42ecd8[_0x2021c5(0x19c7)],function(_0x2b49bb){const _0x26700c=_0x2021c5;return _0x3f65c0()[_0x26700c(0xc84)](_0x24276a[_0x26700c(0x2841)],{'id':_0x2b49bb[_0x26700c(0x18b8)]});});let _0x2eab98=null;_0x2eab98=[],_0x24276a[_0x2021c5(0x73d)]['rows']['forEach'](function(_0x3af42f){const _0x248956=_0x2021c5;if(_0x3f65c0()[_0x248956(0xa4e)]([_0x248956(0x13b6),_0x248956(0x1506)],_0x3af42f[_0x248956(0x233c)])){const _0xd6f554=_0x3f65c0()[_0x248956(0xc84)](_0x24276a[_0x248956(0x2841)],{'id':Number(_0x3af42f[_0x248956(0x1ff9)])});_0x2eab98[_0x248956(0x1f47)](_0xd6f554);}}),!_0x3f65c0()[_0x2021c5(0x2635)](_0x2eab98)&&_0x2eab98[_0x2021c5(0x1df5)](function(_0x8425d7){const _0x110a7e=_0x2021c5;if(!_0x3f65c0()[_0x110a7e(0x1360)](_0x6f9d02,['id',_0x8425d7['id']])){const _0xedc441=_0x3f65c0()[_0x110a7e(0xc84)](_0x24276a[_0x110a7e(0x2841)],{'id':_0x8425d7['id']});_0xedc441[_0x110a7e(0x8ff)]=![],_0x6f9d02[_0x110a7e(0x1f47)](_0xedc441);}}),_0x24276a[_0x2021c5(0x2841)]=_0x6f9d02;});}})[_0x5e828c(0x129e)](function(_0x4000c0){const _0x40bc5c=_0x5e828c;_0xb06a99[_0x40bc5c(0x1980)]({'title':_0x4000c0['status']?_0x40bc5c(0x262a)+_0x4000c0[_0x40bc5c(0x107b)]+'\x20-\x20'+_0x4000c0[_0x40bc5c(0x167f)]:_0x40bc5c(0x47b),'msg':_0x4000c0[_0x40bc5c(0x524)]?JSON[_0x40bc5c(0x10bb)](_0x4000c0['data']):_0x4000c0[_0x40bc5c(0xd5f)]()});});}function _0x593d1a(){const _0x1203be=_0x512c30;switch(_0x24276a[_0x1203be(0x233c)][_0x1203be(0x1160)]){case _0x1203be(0xe02):return _0x24276a['hasSectionPermissions'][0x515];case _0x1203be(0x1b53):return _0x24276a[_0x1203be(0x1476)][0x516];case _0x1203be(0x49f):return _0x24276a[_0x1203be(0x1476)][0x519];case _0x1203be(0x122f):return _0x24276a['hasSectionPermissions'][0x517];case'desk':return _0x24276a[_0x1203be(0x1476)][0x51a];case'zoho':return _0x24276a[_0x1203be(0x1476)][0x51b];case _0x1203be(0x171c):return _0x24276a[_0x1203be(0x1476)][0x51c];case _0x1203be(0x255f):return _0x24276a[_0x1203be(0x1476)][0x51d];case _0x1203be(0x7ef):return _0x24276a[_0x1203be(0x1476)][0x51e];case'freshsales':return _0x24276a['hasSectionPermissions'][0x51f];}}function _0x3d3206(){const _0xeb6e59=_0x512c30;_0x24276a[_0xeb6e59(0x233c)][_0xeb6e59(0x1160)]=undefined,_0x24276a['action'][_0xeb6e59(0x1ff9)]=undefined,_0x24276a[_0xeb6e59(0x233c)][_0xeb6e59(0x909)]=undefined,_0x24276a[_0xeb6e59(0x233c)]['data4']=undefined,_0x24276a['action']['data5']=_0x24276a[_0xeb6e59(0x233c)][_0xeb6e59(0x233c)]===_0xeb6e59(0x1a5c)?0x5:undefined;}function _0x4751a3(){const _0x8a6442=_0x512c30;switch(_0x24276a[_0x8a6442(0x233c)][_0x8a6442(0x233c)]){case _0x8a6442(0x1b3a):if(!_0x24276a[_0x8a6442(0x1324)])_0x47341f();if(!_0x24276a[_0x8a6442(0x1cad)])_0x3ddf22();_0x24276a[_0x8a6442(0x233c)][_0x8a6442(0x909)]=_0x24276a[_0x8a6442(0x233c)][_0x8a6442(0x909)]?_0x24276a[_0x8a6442(0x233c)]['data3']['split'](','):['phone'];if(_0x24276a[_0x8a6442(0x233c)][_0x8a6442(0x1ff9)]==='1'&&!_0x24276a[_0x8a6442(0x233c)]['data4'])_0x24276a[_0x8a6442(0x233c)]['data4']=_0x8a6442(0x1d55);break;case'jscripty':if(!_0x24276a['projects'])_0x1b267e();break;case _0x8a6442(0x1a5c):if(!_0x24276a[_0x8a6442(0x233c)][_0x8a6442(0x27c5)])_0x24276a[_0x8a6442(0x233c)]['data5']=0x5;break;}}function _0x5b0a87(){_0x3d3206(),_0x4751a3();}function _0x561ff2(){const _0x52c706=_0x512c30;_0x24276a[_0x52c706(0x233c)][_0x52c706(0x1ff9)]=undefined,_0x24276a[_0x52c706(0x233c)][_0x52c706(0x909)]=undefined,_0x24276a[_0x52c706(0x233c)]['isIntegrationDisabled']=_0x24276a['newAction']?![]:!_0x593d1a();const _0x3c9fc1=_0x52c706(0x81c)+_0x3f65c0()['capitalize'](_0x24276a[_0x52c706(0x233c)]['data1'])+_0x52c706(0xb48);_0x2af745[_0x3c9fc1][_0x52c706(0x16b4)]({'fields':_0x52c706(0x7a7),'sort':'id','nolimit':_0x52c706(0x1185)})[_0x52c706(0x2945)][_0x52c706(0x146b)](function(_0x5b1e43){const _0x4912c5=_0x52c706;_0x24276a['accounts']=_0x5b1e43[_0x4912c5(0x19c7)]||[];})[_0x52c706(0x129e)](function(_0x481886){const _0x4781b6=_0x52c706;_0xb06a99[_0x4781b6(0x1980)]({'title':_0x481886['status']?_0x4781b6(0x262a)+_0x481886[_0x4781b6(0x107b)]+_0x4781b6(0x1315)+_0x481886['statusText']:'SYSTEM:GET_'+_0x24276a[_0x4781b6(0x233c)][_0x4781b6(0x1160)][_0x4781b6(0x1c37)]()+'ACCOUNTS','msg':_0x481886['data']?JSON['stringify'](_0x481886['data']):_0x481886['toString']()});});}function _0x3e33f9(){_0x4da42e();}function _0x3b7694(){const _0x2aca93=_0x512c30;if(_0x24276a[_0x2aca93(0x233c)][_0x2aca93(0x1160)]==='0'&&!_0x24276a[_0x2aca93(0x2841)])_0x3e9f6c();}function _0x2ec0ca(){const _0x5e4aac=_0x512c30;if(_0x24276a[_0x5e4aac(0x233c)][_0x5e4aac(0x1ff9)]==='0')_0x24276a[_0x5e4aac(0x233c)][_0x5e4aac(0xfe0)]=undefined;if(!_0x24276a[_0x5e4aac(0x233c)][_0x5e4aac(0xfe0)]&&_0x24276a['action'][_0x5e4aac(0x1ff9)]==='1')_0x24276a[_0x5e4aac(0x233c)][_0x5e4aac(0xfe0)]=_0x5e4aac(0x1d55);}function _0x1eb16d(){const _0x5a2d48=_0x512c30;_0x24276a[_0x5a2d48(0x233c)][_0x5a2d48(0x909)]=undefined;const _0x1af1b3=_0x5a2d48(0x81c)+_0x3f65c0()[_0x5a2d48(0x83f)](_0x24276a[_0x5a2d48(0x233c)]['data1'])+_0x5a2d48(0x226e);_0x2af745[_0x1af1b3][_0x5a2d48(0x16b4)]({'fields':_0x5a2d48(0x971),'sort':'id','nolimit':_0x5a2d48(0x1185)})[_0x5a2d48(0x2945)][_0x5a2d48(0x146b)](function(_0x2f059b){const _0x5cff3e=_0x5a2d48;_0x24276a[_0x5cff3e(0x1723)]=_0x2f059b[_0x5cff3e(0x19c7)]||[];})[_0x5a2d48(0x129e)](function(_0x5280e0){const _0xb25b87=_0x5a2d48;_0xb06a99[_0xb25b87(0x1980)]({'title':_0x5280e0['status']?_0xb25b87(0x262a)+_0x5280e0[_0xb25b87(0x107b)]+_0xb25b87(0x1315)+_0x5280e0[_0xb25b87(0x167f)]:_0xb25b87(0x290e)+_0x24276a['action'][_0xb25b87(0x1160)]['toUpperCase']()+_0xb25b87(0x1fdd),'msg':_0x5280e0[_0xb25b87(0x524)]?JSON[_0xb25b87(0x10bb)](_0x5280e0[_0xb25b87(0x524)]):_0x5280e0['toString']()});});}function _0x5e6821(){const _0x2580bc=_0x512c30,_0x3c31d2=angular[_0x2580bc(0x235a)](_0x24276a[_0x2580bc(0x233c)]);if(_0x3f65c0()[_0x2580bc(0x1bbb)](_0x3c31d2['data3']))_0x3c31d2['data3']=_0x24276a[_0x2580bc(0x233c)]['data3'][_0x2580bc(0xb47)](',');return _0x3c31d2;}function _0x50f4de(){const _0x4895cb=_0x512c30;_0x24276a[_0x4895cb(0xcef)]=[];const _0x69a9df=_0x5e6821();_0x2af745['trigger'][_0x4895cb(0x99d)]({'id':_0x2bfa5d['params']['id']},_0x69a9df)[_0x4895cb(0x2945)]['then'](function(_0xa5a048){const _0x108b95=_0x4895cb;_0x24276a[_0x108b95(0x713)]['unshift'](_0xa5a048[_0x108b95(0x2488)]()),_0xb06a99[_0x108b95(0x1c75)]({'title':_0x481542[_0x108b95(0xde)](_0x108b95(0x2478))}),_0x346166(_0x24276a[_0x108b95(0x713)]);})[_0x4895cb(0x129e)](function(_0x30ebe8){const _0x19fbcd=_0x4895cb;if(_0x30ebe8[_0x19fbcd(0x524)]&&_0x30ebe8['data'][_0x19fbcd(0xcef)]&&_0x30ebe8[_0x19fbcd(0x524)][_0x19fbcd(0xcef)][_0x19fbcd(0x402)]){_0x24276a[_0x19fbcd(0xcef)]=_0x30ebe8['data'][_0x19fbcd(0xcef)]||[{'message':_0x30ebe8[_0x19fbcd(0xd5f)](),'type':_0x19fbcd(0x1116)}];for(let _0x32012e=0x0;_0x32012e<_0x30ebe8['data'][_0x19fbcd(0xcef)][_0x19fbcd(0x402)];_0x32012e+=0x1){_0xb06a99[_0x19fbcd(0x1980)]({'title':_0x30ebe8['data'][_0x19fbcd(0xcef)][_0x32012e][_0x19fbcd(0x1142)],'msg':_0x30ebe8[_0x19fbcd(0x524)][_0x19fbcd(0xcef)][_0x32012e][_0x19fbcd(0x7fd)]});}}else _0xb06a99[_0x19fbcd(0x1980)]({'title':_0x30ebe8[_0x19fbcd(0x107b)]?'API:'+_0x30ebe8['status']+'\x20-\x20'+_0x30ebe8[_0x19fbcd(0x167f)]:'api.action.save','msg':_0x30ebe8[_0x19fbcd(0x524)]?JSON[_0x19fbcd(0x10bb)](_0x30ebe8[_0x19fbcd(0x524)][_0x19fbcd(0x7fd)]):_0x30ebe8[_0x19fbcd(0xd5f)]()});});}function _0xea1749(){const _0x8d4bd5=_0x512c30;_0x24276a['errors']=[];const _0x58df3b=_0x5e6821();_0x2af745[_0x8d4bd5(0x233c)][_0x8d4bd5(0x18e1)]({'id':_0x58df3b['id']},_0x58df3b)[_0x8d4bd5(0x2945)][_0x8d4bd5(0x146b)](function(){const _0xf87485=_0x8d4bd5;_0x24276a['actions']=_0x3f65c0()[_0xf87485(0x205)](_0x24276a[_0xf87485(0x713)],function(_0x30bfe2){if(_0x30bfe2['id']===_0x58df3b['id'])return _0x58df3b;else return _0x30bfe2;}),_0xb06a99['success']({'title':_0x481542[_0xf87485(0xde)](_0xf87485(0x1fb0))}),_0x346166(_0x24276a['actions']);})[_0x8d4bd5(0x129e)](function(_0x2e0340){const _0x3dd5e4=_0x8d4bd5;if(_0x2e0340[_0x3dd5e4(0x524)]&&_0x2e0340[_0x3dd5e4(0x524)][_0x3dd5e4(0xcef)]&&_0x2e0340[_0x3dd5e4(0x524)][_0x3dd5e4(0xcef)][_0x3dd5e4(0x402)]){_0x24276a[_0x3dd5e4(0xcef)]=_0x2e0340['data'][_0x3dd5e4(0xcef)]||[{'message':_0x2e0340[_0x3dd5e4(0xd5f)](),'type':_0x3dd5e4(0x2aa)}];for(let _0x2d70ff=0x0;_0x2d70ff<_0x2e0340[_0x3dd5e4(0x524)][_0x3dd5e4(0xcef)]['length'];_0x2d70ff++){_0xb06a99[_0x3dd5e4(0x1980)]({'title':_0x2e0340[_0x3dd5e4(0x524)][_0x3dd5e4(0xcef)][_0x2d70ff][_0x3dd5e4(0x1142)],'msg':_0x2e0340[_0x3dd5e4(0x524)]['errors'][_0x2d70ff]['message']});}}else _0xb06a99[_0x3dd5e4(0x1980)]({'title':_0x2e0340[_0x3dd5e4(0x107b)]?'API:'+_0x2e0340[_0x3dd5e4(0x107b)]+_0x3dd5e4(0x1315)+_0x2e0340[_0x3dd5e4(0x167f)]:_0x3dd5e4(0x2aa),'msg':_0x2e0340[_0x3dd5e4(0x524)]?JSON[_0x3dd5e4(0x10bb)](_0x2e0340[_0x3dd5e4(0x524)][_0x3dd5e4(0x7fd)]):_0x2e0340[_0x3dd5e4(0xd5f)]()});});}function _0x29b57(_0xafd34a){const _0x4657e4=_0x512c30;_0x24276a[_0x4657e4(0xcef)]=[];const _0x378160=_0x3a260e['confirm']({'skipHide':!![]})[_0x4657e4(0x1189)](_0x481542[_0x4657e4(0xde)](_0x4657e4(0x1b9)))['ariaLabel']('Delete\x20action')['ok'](_0x481542['instant']('APP.DELETE'))[_0x4657e4(0x6c3)](_0x481542[_0x4657e4(0xde)]('APP.CANCEL'))['targetEvent'](_0xafd34a);_0x3a260e[_0x4657e4(0x2615)](_0x378160)[_0x4657e4(0x146b)](function(){const _0x3a5179=_0x4657e4;_0x2af745[_0x3a5179(0x233c)][_0x3a5179(0x1fac)]({'id':_0x24276a[_0x3a5179(0x233c)]['id']})[_0x3a5179(0x2945)][_0x3a5179(0x146b)](function(){const _0x277a9e=_0x3a5179;_0x24276a[_0x277a9e(0x713)]=_0x3f65c0()[_0x277a9e(0x1dd6)](_0x24276a['actions'],function(_0xc12d7a){const _0x4e8df9=_0x277a9e;return _0xc12d7a['id']!==_0x24276a[_0x4e8df9(0x233c)]['id'];}),_0xb06a99[_0x277a9e(0x1c75)]({'title':_0x481542[_0x277a9e(0xde)](_0x277a9e(0x1cea))}),_0x346166(_0x24276a[_0x277a9e(0x713)]);})['catch'](function(_0x10dfd7){const _0x4c1bee=_0x3a5179;if(_0x10dfd7['data']&&_0x10dfd7[_0x4c1bee(0x524)]['errors']&&_0x10dfd7[_0x4c1bee(0x524)][_0x4c1bee(0xcef)][_0x4c1bee(0x402)]){_0x24276a['errors']=_0x10dfd7[_0x4c1bee(0x524)][_0x4c1bee(0xcef)]||[{'message':_0x10dfd7[_0x4c1bee(0xd5f)](),'type':_0x4c1bee(0x26d)}];for(let _0x8e8340=0x0;_0x8e8340<_0x10dfd7[_0x4c1bee(0x524)][_0x4c1bee(0xcef)][_0x4c1bee(0x402)];_0x8e8340++){_0xb06a99[_0x4c1bee(0x1980)]({'title':_0x10dfd7[_0x4c1bee(0x524)][_0x4c1bee(0xcef)][_0x8e8340][_0x4c1bee(0x1142)],'msg':_0x10dfd7['data'][_0x4c1bee(0xcef)][_0x8e8340]['message']});}}else _0xb06a99['error']({'title':_0x10dfd7[_0x4c1bee(0x107b)]?_0x4c1bee(0x262a)+_0x10dfd7[_0x4c1bee(0x107b)]+'\x20-\x20'+_0x10dfd7[_0x4c1bee(0x167f)]:'api.action.delete','msg':_0x10dfd7[_0x4c1bee(0x524)]?JSON[_0x4c1bee(0x10bb)](_0x10dfd7[_0x4c1bee(0x524)][_0x4c1bee(0x7fd)]):_0x10dfd7[_0x4c1bee(0x7fd)]||_0x10dfd7[_0x4c1bee(0xd5f)]()});});},function(){});}function _0x346166(_0x529fa9){const _0x41c597=_0x512c30;_0x3a260e[_0x41c597(0x2458)](_0x529fa9);}}const _0x424422=_0x15a550;;const _0x3014b1=_0x4acfac['p']+_0x313a4d(0x15cf);;_0x3f02f5['$inject']=[_0x313a4d(0x910),'$q',_0x313a4d(0x214b),_0x313a4d(0x1abe),_0x313a4d(0x10e8),_0x313a4d(0x4d8),_0x313a4d(0x1fe4),'api','Auth'];function _0x3f02f5(_0x1ca216,_0x216c3b,_0x435ded,_0xef94a5,_0x48b763,_0x1a71ed,_0x4ee799,_0x88022b,_0x18ef60){const _0x1f4398=_0x313a4d,_0x5b4ed0=this;_0x5b4ed0[_0x1f4398(0x2321)]=_0x18ef60[_0x1f4398(0xb12)](),_0x5b4ed0[_0x1f4398(0xd57)]={},_0x5b4ed0[_0x1f4398(0x162c)]={'count':0x0,'rows':[]},_0x5b4ed0['selectedTriggerAllConditions']=[],_0x5b4ed0[_0x1f4398(0x1a56)]={'fields':_0x1f4398(0x261),'limit':0xa,'page':0x1},_0x5b4ed0[_0x1f4398(0x2867)]={'queue':_0x1f4398(0xe26),'lastevent':'Call_Status','routeId':_0x1f4398(0x1a8f),'agent':_0x1f4398(0x294a),'account':_0x1f4398(0xb48),'interaction':_0x1f4398(0x2297),'message':_0x1f4398(0xe2)},_0x5b4ed0[_0x1f4398(0x147)]={'abandoned':'Abandon','timeout':_0x1f4398(0x5cc),'complete':'Hangup','rejected':_0x1f4398(0x257d),'called':_0x1f4398(0x218f),'connect':_0x1f4398(0x21c0),'nosuchnumber':_0x1f4398(0x1961),'busy':_0x1f4398(0x22ae),'noanswer':_0x1f4398(0xcf6),'congestion':_0x1f4398(0x18a3),'agentreject':_0x1f4398(0x1eb)},_0x5b4ed0[_0x1f4398(0x12d6)]={'in':_0x1f4398(0x2496),'out':_0x1f4398(0x13c9),'accept':_0x1f4398(0xbf6),'reject':_0x1f4398(0x27f6)},_0x5b4ed0[_0x1f4398(0x3d4)]=_0x5f0f21,_0x5b4ed0[_0x1f4398(0x1c75)]=_0x4d70de,_0x5b4ed0[_0x1f4398(0x273b)]=_0x21d0d6,_0x5b4ed0[_0x1f4398(0x26e9)]=_0x3c3f2f,_0x5b4ed0[_0x1f4398(0x2734)]=_0x47d59f,_0x5b4ed0[_0x1f4398(0x19b4)]=_0x26b3ce,_0x5b4ed0['deleteSelectedTriggerAllConditions']=_0x417017;function _0x5f0f21(_0x407e67,_0x30d7f3){const _0x35dbfa=_0x1f4398;_0x5b4ed0[_0x35dbfa(0xd57)]=_0x407e67,_0x5b4ed0[_0x35dbfa(0x2514)]=typeof _0x30d7f3!==_0x35dbfa(0x2274)?_0x30d7f3:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x5b4ed0[_0x35dbfa(0x1a56)][_0x35dbfa(0x34b)]=_0x5b4ed0['trigger']['id'],_0x5b4ed0[_0x35dbfa(0x1a56)]['id']=_0x5b4ed0['trigger']['id'],_0x21d0d6();}function _0x2ed4c9(){const _0x20bd25=_0x1f4398,_0x7cc115=_0x5b4ed0[_0x20bd25(0xd57)]['channel'],_0x516da8=_0x5b4ed0[_0x20bd25(0xd57)]['channel']+_0x5b4ed0[_0x20bd25(0xd57)]['channel']===_0x20bd25(0xa7f)?_0x20bd25(0x1444):_0x20bd25(0x1164),_0x585faa=_0x5b4ed0[_0x20bd25(0xd57)][_0x20bd25(0x2894)]+(_0x5b4ed0['trigger']['channel']===_0x20bd25(0xa7f)?_0x20bd25(0x27f4):_0x20bd25(0xb48));let _0x14df0e;switch(_0x5b4ed0[_0x20bd25(0xd57)]['channel']){case _0x20bd25(0xa7f):_0x14df0e=0x1f6;break;case _0x20bd25(0x22d9):_0x14df0e=0x386;break;case _0x20bd25(0x56b):_0x14df0e=0x25a;break;case _0x20bd25(0x7d9):_0x14df0e=0x322;break;case _0x20bd25(0x929):_0x14df0e=0x2be;break;case _0x20bd25(0xff9):_0x14df0e=0x836;break;}_0x18ef60[_0x20bd25(0x13ff)]()?_0x88022b[_0x585faa]['get']({'fields':_0x20bd25(0x7a7),'sort':'id','nolimit':_0x20bd25(0x1185)})[_0x20bd25(0x2945)]['then'](function(_0x57ad4c){_0x5b4ed0[_0x516da8]=_0x57ad4c['rows']||[];})['catch'](function(_0x4d3194){const _0x44b533=_0x20bd25;_0x4ee799[_0x44b533(0x1980)]({'title':_0x4d3194[_0x44b533(0x107b)]?_0x44b533(0x262a)+_0x4d3194[_0x44b533(0x107b)]+'\x20-\x20'+_0x4d3194[_0x44b533(0x167f)]:_0x44b533(0x290e)+_0x7cc115[_0x44b533(0x1c37)]()+_0x7cc115===_0x44b533(0xa7f)?_0x44b533(0x1256):_0x44b533(0x78e),'msg':_0x4d3194[_0x44b533(0x524)]?JSON[_0x44b533(0x10bb)](_0x4d3194['data']):_0x4d3194[_0x44b533(0xd5f)]()});}):_0x88022b[_0x585faa][_0x20bd25(0x16b4)]({'fields':_0x20bd25(0x7a7),'sort':'id','nolimit':_0x20bd25(0x1185)})[_0x20bd25(0x2945)]['then'](function(_0x46744e){const _0x494b72=_0x20bd25;_0x5b4ed0[_0x516da8]=_0x46744e[_0x494b72(0x19c7)]||[];})[_0x20bd25(0x146b)](function(){const _0x11fca4=_0x20bd25;return _0x88022b[_0x11fca4(0x1366)][_0x11fca4(0x16b4)]({'userProfileId':_0x5b4ed0['currentUser'][_0x11fca4(0x209a)],'sectionId':_0x14df0e})[_0x11fca4(0x2945)];})['then'](function(_0x51c446){const _0x4c115f=_0x20bd25,_0x2f1878=_0x51c446&&_0x51c446[_0x4c115f(0x19c7)]?_0x51c446[_0x4c115f(0x19c7)][0x0]:null;if(!_0x2f1878){const _0x536d70=[],_0x1f7dbb=[];_0x5b4ed0[_0x4c115f(0x162c)][_0x4c115f(0x19c7)]['forEach'](function(_0x491056){const _0x4e6861=_0x4c115f;if(_0x491056[_0x4e6861(0x65c)]===_0x4e6861(0x1f8e)){const _0x3c8e43=_0x3f65c0()[_0x4e6861(0xc84)](_0x5b4ed0[_0x516da8],{'id':Number(_0x491056['value'])});_0x1f7dbb[_0x4e6861(0x1f47)](_0x3c8e43);}});for(let _0x458b66=0x0;_0x458b66<_0x5b4ed0[_0x516da8][_0x4c115f(0x402)];_0x458b66++){const _0x58adf8=_0x3f65c0()[_0x4c115f(0x1360)](_0x1f7dbb,{'id':_0x5b4ed0[_0x516da8][_0x458b66]['id']});_0x58adf8&&(_0x5b4ed0[_0x516da8][_0x458b66]['canSelect']=![],_0x536d70[_0x4c115f(0x1f47)](_0x5b4ed0[_0x516da8][_0x458b66]));}_0x5b4ed0[_0x516da8]=_0x536d70;}else{if(!_0x2f1878[_0x4c115f(0x11d2)])return _0x88022b[_0x4c115f(0xdcc)][_0x4c115f(0x16b4)]({'sectionId':_0x2f1878['id']})[_0x4c115f(0x2945)][_0x4c115f(0x146b)](function(_0x3a70e3){const _0x120844=_0x4c115f,_0x391046=_0x3f65c0()[_0x120844(0x205)](_0x3a70e3[_0x120844(0x19c7)],function(_0x4618f6){const _0x58b9cd=_0x120844;return _0x3f65c0()['find'](_0x5b4ed0[_0x516da8],{'id':_0x4618f6[_0x58b9cd(0x18b8)]});});let _0x510dcc=null;_0x510dcc=[],_0x5b4ed0[_0x120844(0x162c)]['rows'][_0x120844(0x1df5)](function(_0x32feed){const _0xd672d8=_0x120844;if(_0x32feed[_0xd672d8(0x65c)]===_0xd672d8(0x1f8e)){const _0x25eddf=_0x3f65c0()[_0xd672d8(0xc84)](_0x5b4ed0[_0x516da8],{'id':Number(_0x32feed[_0xd672d8(0x175d)])});_0x510dcc['push'](_0x25eddf);}}),!_0x3f65c0()[_0x120844(0x2635)](_0x510dcc)&&_0x510dcc[_0x120844(0x1df5)](function(_0x4895a1){const _0x44a723=_0x120844;if(!_0x3f65c0()[_0x44a723(0x1360)](_0x391046,['id',_0x4895a1['id']])){const _0x3807c5=_0x3f65c0()[_0x44a723(0xc84)](_0x5b4ed0[_0x516da8],{'id':_0x4895a1['id']});_0x3807c5['canSelect']=![],_0x391046[_0x44a723(0x1f47)](_0x3807c5);}}),_0x5b4ed0[_0x516da8]=_0x391046;});}})['catch'](function(_0x3130e8){const _0x4c7c24=_0x20bd25;_0x4ee799[_0x4c7c24(0x1980)]({'title':_0x3130e8['status']?_0x4c7c24(0x262a)+_0x3130e8['status']+_0x4c7c24(0x1315)+_0x3130e8[_0x4c7c24(0x167f)]:_0x4c7c24(0x290e)+_0x7cc115[_0x4c7c24(0x1c37)]()+_0x7cc115===_0x4c7c24(0xa7f)?_0x4c7c24(0x1256):_0x4c7c24(0x78e),'msg':_0x3130e8[_0x4c7c24(0x524)]?JSON[_0x4c7c24(0x10bb)](_0x3130e8[_0x4c7c24(0x524)]):_0x3130e8[_0x4c7c24(0xd5f)]()});});}function _0x1cefdd(){const _0x3a8d25=_0x1f4398,_0x52de03=[{'id':0x191,'type':_0x3a8d25(0x7b0)},{'id':0x5dd,'type':'outbound'}];let _0x457f25=null;_0x18ef60[_0x3a8d25(0x13ff)]()?_0x88022b[_0x3a8d25(0x1446)][_0x3a8d25(0x16b4)]({'fields':'id,name,type','sort':_0x3a8d25(0x19eb),'nolimit':_0x3a8d25(0x1185)})[_0x3a8d25(0x2945)]['then'](function(_0x75cf33){const _0x1498cf=_0x3a8d25;_0x5b4ed0[_0x1498cf(0x1b32)]=_0x75cf33[_0x1498cf(0x19c7)]||[];})[_0x3a8d25(0x129e)](function(_0x1b6b5b){const _0x549d97=_0x3a8d25;_0x4ee799[_0x549d97(0x1980)]({'title':_0x1b6b5b[_0x549d97(0x107b)]?_0x549d97(0x262a)+_0x1b6b5b['status']+_0x549d97(0x1315)+_0x1b6b5b[_0x549d97(0x167f)]:_0x549d97(0x12cf),'msg':_0x1b6b5b[_0x549d97(0x524)]?JSON[_0x549d97(0x10bb)](_0x1b6b5b[_0x549d97(0x524)]):_0x1b6b5b[_0x549d97(0xd5f)]()});}):_0x88022b[_0x3a8d25(0x1446)][_0x3a8d25(0x16b4)]({'fields':_0x3a8d25(0x45e),'sort':_0x3a8d25(0x19eb),'nolimit':_0x3a8d25(0x1185)})['$promise'][_0x3a8d25(0x146b)](function(_0x5147a8){const _0x52390e=_0x3a8d25;_0x457f25=_0x5147a8[_0x52390e(0x19c7)]||[];})['then'](function(){const _0x33fabf=_0x3a8d25,_0x6c7b38=[];for(let _0x52b093=0x0;_0x52b093<_0x52de03[_0x33fabf(0x402)];_0x52b093++){_0x6c7b38[_0x33fabf(0x1f47)](_0x88022b[_0x33fabf(0x1366)]['get']({'userProfileId':_0x5b4ed0[_0x33fabf(0x2321)][_0x33fabf(0x209a)],'sectionId':_0x52de03[_0x52b093]['id']})[_0x33fabf(0x2945)]);}return _0x216c3b[_0x33fabf(0x1be2)](_0x6c7b38);})[_0x3a8d25(0x146b)](function(_0x26e4e6){const _0x2d1fcd=_0x3a8d25,_0x1f5a89=_0x3f65c0()['map'](_0x26e4e6,function(_0x5a9053){const _0xb945c4=a0_0x3bb9;return _0x5a9053&&_0x5a9053[_0xb945c4(0x19c7)]?_0x5a9053['rows'][0x0]:null;}),_0x324d04=[];for(let _0x445a49=0x0;_0x445a49<_0x52de03[_0x2d1fcd(0x402)];_0x445a49++){const _0x369bbe=_0x3f65c0()[_0x2d1fcd(0xc84)](_0x1f5a89,[_0x2d1fcd(0x631),_0x52de03[_0x445a49]['id']]);if(_0x369bbe){if(!_0x369bbe['autoAssociation'])_0x324d04[_0x2d1fcd(0x1f47)](_0x88022b[_0x2d1fcd(0xdcc)][_0x2d1fcd(0x16b4)]({'sectionId':_0x369bbe['id']})[_0x2d1fcd(0x2945)]);else{const _0x4a6f44=[];_0x457f25[_0x2d1fcd(0x1df5)](function(_0x42f441){const _0x2113ca=_0x2d1fcd;_0x42f441[_0x2113ca(0x1142)]===_0x52de03[_0x445a49][_0x2113ca(0x1142)]&&_0x4a6f44['push'](_0x42f441);}),_0x324d04[_0x2d1fcd(0x1f47)]({'rows':_0x4a6f44,'count':_0x4a6f44['length']});}}}return _0x216c3b[_0x2d1fcd(0x1be2)](_0x324d04);})[_0x3a8d25(0x146b)](function(_0x1eeb6b){const _0x159b2c=_0x3a8d25,_0x4a2d0f=[],_0x3015b4=[];_0x5b4ed0[_0x159b2c(0x162c)][_0x159b2c(0x19c7)]['forEach'](function(_0x2d7265){const _0x360609=_0x159b2c;if(_0x2d7265['field']===_0x360609(0x1c72)){const _0x19d90e=_0x3f65c0()[_0x360609(0xc84)](_0x457f25,{'name':_0x2d7265['value']});_0x3015b4['push'](_0x19d90e);}});for(let _0x35be04=0x0;_0x35be04<_0x1eeb6b[_0x159b2c(0x402)];_0x35be04++){const _0x18ea05=_0x1eeb6b[_0x35be04][_0x159b2c(0x19c7)]||[];_0x18ea05[_0x159b2c(0x1df5)](function(_0x3c1031){const _0x1567de=_0x159b2c;_0x4a2d0f[_0x1567de(0x1f47)](_0x3c1031);});}!_0x3f65c0()['isEmpty'](_0x3015b4)&&_0x3015b4[_0x159b2c(0x1df5)](function(_0x247a11){const _0x38e234=_0x159b2c;if(!_0x3f65c0()[_0x38e234(0x1360)](_0x4a2d0f,[_0x38e234(0x18b8),_0x247a11['id']])){const _0x56488b=_0x3f65c0()[_0x38e234(0xc84)](_0x457f25,{'id':_0x247a11['id']});_0x56488b[_0x38e234(0x8ff)]=![],_0x4a2d0f[_0x38e234(0x1f47)](_0x56488b);}}),_0x5b4ed0[_0x159b2c(0x1b32)]=_0x4a2d0f;})[_0x3a8d25(0x129e)](function(_0x2b8d68){const _0xc784e5=_0x3a8d25;_0x4ee799[_0xc784e5(0x1980)]({'title':_0x2b8d68[_0xc784e5(0x107b)]?'API:'+_0x2b8d68[_0xc784e5(0x107b)]+'\x20-\x20'+_0x2b8d68['statusText']:'SYSTEM:GET_QUEUES','msg':_0x2b8d68[_0xc784e5(0x524)]?JSON[_0xc784e5(0x10bb)](_0x2b8d68['data']):_0x2b8d68[_0xc784e5(0xd5f)]()});});}function _0x4fa428(){const _0x12cc4b=_0x1f4398;_0x18ef60[_0x12cc4b(0x13ff)]()?_0x88022b[_0x12cc4b(0xd47)][_0x12cc4b(0x16b4)]({'fields':_0x12cc4b(0xd36),'type':_0x12cc4b(0xc9c),'VoiceExtensionId':_0x12cc4b(0x203c),'nolimit':_0x12cc4b(0x1185)})[_0x12cc4b(0x2945)]['then'](function(_0x5058f1){const _0x5d0b84=_0x12cc4b;_0x5b4ed0[_0x5d0b84(0x966)]=_0x5058f1[_0x5d0b84(0x19c7)]||[];})['catch'](function(_0x18bbc5){const _0x3f9b96=_0x12cc4b;_0x4ee799[_0x3f9b96(0x1980)]({'title':_0x18bbc5['status']?'API:'+_0x18bbc5['status']+'\x20-\x20'+_0x18bbc5['statusText']:_0x3f9b96(0x104f),'msg':_0x18bbc5[_0x3f9b96(0x524)]?JSON['stringify'](_0x18bbc5[_0x3f9b96(0x524)]):_0x18bbc5[_0x3f9b96(0xd5f)]()});}):_0x88022b['voiceExtension']['get']({'fields':_0x12cc4b(0xd36),'type':_0x12cc4b(0xc9c),'VoiceExtensionId':_0x12cc4b(0x203c),'nolimit':_0x12cc4b(0x1185)})['$promise'][_0x12cc4b(0x146b)](function(_0x41f6fd){const _0x7bd2db=_0x12cc4b;_0x5b4ed0[_0x7bd2db(0x966)]=_0x41f6fd[_0x7bd2db(0x19c7)]||[];})[_0x12cc4b(0x146b)](function(){const _0x4a9421=_0x12cc4b;return _0x88022b[_0x4a9421(0x1366)]['get']({'userProfileId':_0x5b4ed0[_0x4a9421(0x2321)]['userProfileId'],'sectionId':0x193})[_0x4a9421(0x2945)];})[_0x12cc4b(0x146b)](function(_0x518c3f){const _0x2671a1=_0x12cc4b,_0x5152e6=_0x518c3f&&_0x518c3f[_0x2671a1(0x19c7)]?_0x518c3f[_0x2671a1(0x19c7)][0x0]:null;if(!_0x5152e6){const _0x1d9a6a=[],_0x113145=[];_0x5b4ed0[_0x2671a1(0x162c)][_0x2671a1(0x19c7)][_0x2671a1(0x1df5)](function(_0x5f042a){const _0xe56315=_0x2671a1;if(_0x5f042a[_0xe56315(0x65c)]==='routeId'){const _0x396d6c=_0x3f65c0()[_0xe56315(0xc84)](_0x5b4ed0['outboundRoutes'],{'id':Number(_0x5f042a['value'])});_0x113145['push'](_0x396d6c);}});for(let _0x5a235e=0x0;_0x5a235e<_0x5b4ed0[_0x2671a1(0x966)][_0x2671a1(0x402)];_0x5a235e++){const _0x30f1d0=_0x3f65c0()[_0x2671a1(0x1360)](_0x113145,{'id':_0x5b4ed0[_0x2671a1(0x966)][_0x5a235e]['id']});_0x30f1d0&&(_0x5b4ed0[_0x2671a1(0x966)][_0x5a235e][_0x2671a1(0x8ff)]=![],_0x1d9a6a[_0x2671a1(0x1f47)](_0x5b4ed0['outboundRoutes'][_0x5a235e]));}_0x5b4ed0[_0x2671a1(0x966)]=_0x1d9a6a;}else{if(!_0x5152e6[_0x2671a1(0x11d2)])return _0x88022b[_0x2671a1(0xdcc)][_0x2671a1(0x16b4)]({'sectionId':_0x5152e6['id']})[_0x2671a1(0x2945)][_0x2671a1(0x146b)](function(_0xd86538){const _0xd3a20c=_0x2671a1,_0x2255f2=_0x3f65c0()[_0xd3a20c(0x205)](_0xd86538[_0xd3a20c(0x19c7)],function(_0x42b8d5){const _0x2bfbfe=_0xd3a20c;return _0x3f65c0()[_0x2bfbfe(0xc84)](_0x5b4ed0[_0x2bfbfe(0x966)],{'id':_0x42b8d5['resourceId']});});let _0x26ecd3=null;_0x26ecd3=[],_0x5b4ed0[_0xd3a20c(0x162c)][_0xd3a20c(0x19c7)][_0xd3a20c(0x1df5)](function(_0x47c04e){const _0x1d2405=_0xd3a20c;if(_0x47c04e[_0x1d2405(0x65c)]===_0x1d2405(0x27c7)){const _0x3b350d=_0x3f65c0()['find'](_0x5b4ed0[_0x1d2405(0x966)],{'id':Number(_0x47c04e[_0x1d2405(0x175d)])});_0x26ecd3[_0x1d2405(0x1f47)](_0x3b350d);}}),!_0x3f65c0()[_0xd3a20c(0x2635)](_0x26ecd3)&&_0x26ecd3['forEach'](function(_0x16c9c0){const _0x520276=_0xd3a20c;if(!_0x3f65c0()[_0x520276(0x1360)](_0x2255f2,['id',_0x16c9c0['id']])){const _0x3c0a85=_0x3f65c0()[_0x520276(0xc84)](_0x5b4ed0[_0x520276(0x966)],{'id':_0x16c9c0['id']});_0x3c0a85[_0x520276(0x8ff)]=![],_0x2255f2[_0x520276(0x1f47)](_0x3c0a85);}}),_0x5b4ed0['outboundRoutes']=_0x2255f2;});}})['catch'](function(_0x4f5a83){const _0x3f746a=_0x12cc4b;_0x4ee799[_0x3f746a(0x1980)]({'title':_0x4f5a83['status']?'API:'+_0x4f5a83['status']+_0x3f746a(0x1315)+_0x4f5a83[_0x3f746a(0x167f)]:_0x3f746a(0x104f),'msg':_0x4f5a83[_0x3f746a(0x524)]?JSON[_0x3f746a(0x10bb)](_0x4f5a83[_0x3f746a(0x524)]):_0x4f5a83[_0x3f746a(0xd5f)]()});});}function _0x341551(){const _0x5ee82d=_0x1f4398;_0x18ef60[_0x5ee82d(0x13ff)]()?_0x88022b[_0x5ee82d(0xe7b)]['get']({'fields':_0x5ee82d(0x12bf),'sort':'name','role':_0x5ee82d(0x1755),'nolimit':'true'})['$promise'][_0x5ee82d(0x146b)](function(_0xcf0847){const _0x4bec5b=_0x5ee82d;_0x5b4ed0[_0x4bec5b(0x23c0)]=_0xcf0847[_0x4bec5b(0x19c7)]||[];})[_0x5ee82d(0x129e)](function(_0x3fdf1f){const _0x5cada7=_0x5ee82d;_0x4ee799[_0x5cada7(0x1980)]({'title':_0x3fdf1f[_0x5cada7(0x107b)]?_0x5cada7(0x262a)+_0x3fdf1f[_0x5cada7(0x107b)]+_0x5cada7(0x1315)+_0x3fdf1f[_0x5cada7(0x167f)]:_0x5cada7(0x557),'msg':_0x3fdf1f['data']?JSON['stringify'](_0x3fdf1f[_0x5cada7(0x524)]):_0x3fdf1f[_0x5cada7(0xd5f)]()});}):_0x88022b[_0x5ee82d(0xe7b)][_0x5ee82d(0x16b4)]({'fields':'id,name,fullname','sort':'name','role':_0x5ee82d(0x1755),'nolimit':'true'})[_0x5ee82d(0x2945)][_0x5ee82d(0x146b)](function(_0x4bafcb){_0x5b4ed0['agents']=_0x4bafcb['rows']||[];})[_0x5ee82d(0x146b)](function(){const _0x4e0bb5=_0x5ee82d;return _0x88022b[_0x4e0bb5(0x1366)][_0x4e0bb5(0x16b4)]({'userProfileId':_0x5b4ed0[_0x4e0bb5(0x2321)][_0x4e0bb5(0x209a)],'sectionId':0xca})[_0x4e0bb5(0x2945)];})[_0x5ee82d(0x146b)](function(_0x1a0f4e){const _0x5ba93d=_0x5ee82d,_0x59ba30=_0x1a0f4e&&_0x1a0f4e[_0x5ba93d(0x19c7)]?_0x1a0f4e[_0x5ba93d(0x19c7)][0x0]:null;if(!_0x59ba30){const _0x1f74fc=[],_0x36b537=[];_0x5b4ed0['triggerAllConditions'][_0x5ba93d(0x19c7)]['forEach'](function(_0x2c5e2f){const _0x1a20da=_0x5ba93d;if(_0x2c5e2f[_0x1a20da(0x65c)]==='agent'){const _0x4acabe=_0x3f65c0()[_0x1a20da(0xc84)](_0x5b4ed0[_0x1a20da(0x23c0)],{'name':_0x2c5e2f[_0x1a20da(0x175d)]});_0x36b537[_0x1a20da(0x1f47)](_0x4acabe);}});for(let _0x119f58=0x0;_0x119f58<_0x5b4ed0[_0x5ba93d(0x23c0)][_0x5ba93d(0x402)];_0x119f58++){const _0xcbc768=_0x3f65c0()['some'](_0x36b537,{'id':_0x5b4ed0[_0x5ba93d(0x23c0)][_0x119f58]['id']});_0xcbc768&&(_0x5b4ed0['agents'][_0x119f58]['canSelect']=![],_0x1f74fc[_0x5ba93d(0x1f47)](_0x5b4ed0[_0x5ba93d(0x23c0)][_0x119f58]));}_0x5b4ed0[_0x5ba93d(0x23c0)]=_0x1f74fc;}else{if(!_0x59ba30[_0x5ba93d(0x11d2)])return _0x88022b[_0x5ba93d(0xdcc)][_0x5ba93d(0x16b4)]({'sectionId':_0x59ba30['id']})[_0x5ba93d(0x2945)]['then'](function(_0x377368){const _0x532d17=_0x5ba93d,_0x21605e=_0x3f65c0()[_0x532d17(0x205)](_0x377368[_0x532d17(0x19c7)],function(_0x15ead9){const _0x3a6ad5=_0x532d17;return _0x3f65c0()[_0x3a6ad5(0xc84)](_0x5b4ed0[_0x3a6ad5(0x23c0)],{'id':_0x15ead9[_0x3a6ad5(0x18b8)]});});let _0x4fab84=null;_0x4fab84=[],_0x5b4ed0['triggerAllConditions']['rows']['forEach'](function(_0x5379ef){const _0x44460c=_0x532d17;if(_0x5379ef[_0x44460c(0x65c)]===_0x44460c(0x1755)){const _0x1d7615=_0x3f65c0()[_0x44460c(0xc84)](_0x5b4ed0[_0x44460c(0x23c0)],{'name':_0x5379ef[_0x44460c(0x175d)]});_0x4fab84['push'](_0x1d7615);}}),!_0x3f65c0()[_0x532d17(0x2635)](_0x4fab84)&&_0x4fab84[_0x532d17(0x1df5)](function(_0x11a2fe){const _0x4ba706=_0x532d17;if(!_0x3f65c0()[_0x4ba706(0x1360)](_0x21605e,['id',_0x11a2fe['id']])){const _0x56b21e=_0x3f65c0()[_0x4ba706(0xc84)](_0x5b4ed0[_0x4ba706(0x23c0)],{'id':_0x11a2fe['id']});_0x56b21e[_0x4ba706(0x8ff)]=![],_0x21605e[_0x4ba706(0x1f47)](_0x56b21e);}}),_0x5b4ed0[_0x532d17(0x23c0)]=_0x21605e;});}})[_0x5ee82d(0x129e)](function(_0x30ece6){const _0x223e97=_0x5ee82d;_0x4ee799[_0x223e97(0x1980)]({'title':_0x30ece6[_0x223e97(0x107b)]?'API:'+_0x30ece6[_0x223e97(0x107b)]+_0x223e97(0x1315)+_0x30ece6['statusText']:_0x223e97(0x557),'msg':_0x30ece6[_0x223e97(0x524)]?JSON['stringify'](_0x30ece6[_0x223e97(0x524)]):_0x30ece6[_0x223e97(0xd5f)]()});});}function _0x1a0e8a(){const _0xa9a3c9=_0x1f4398;if(_0x5b4ed0['trigger'][_0xa9a3c9(0x2894)]===_0xa9a3c9(0xe6)){if(_0x3f65c0()['some'](_0x5b4ed0['triggerAllConditions'][_0xa9a3c9(0x19c7)],[_0xa9a3c9(0x65c),_0xa9a3c9(0x1c72)])){if(!_0x5b4ed0['queues'])_0x1cefdd();}if(_0x3f65c0()[_0xa9a3c9(0x1360)](_0x5b4ed0[_0xa9a3c9(0x162c)][_0xa9a3c9(0x19c7)],[_0xa9a3c9(0x65c),'routeId'])){if(!_0x5b4ed0[_0xa9a3c9(0x966)])_0x4fa428();}if(_0x3f65c0()[_0xa9a3c9(0x1360)](_0x5b4ed0['triggerAllConditions'][_0xa9a3c9(0x19c7)],[_0xa9a3c9(0x65c),_0xa9a3c9(0x1755)])){if(!_0x5b4ed0[_0xa9a3c9(0x23c0)])_0x341551();}}else _0x2ed4c9();}function _0x4d70de(_0x5995ba){const _0x2e20a0=_0x1f4398;_0x5b4ed0[_0x2e20a0(0x162c)]=_0x5995ba||{'count':0x0,'rows':[]},_0x1a0e8a();}function _0x21d0d6(){const _0x35ac3=_0x1f4398;_0x5b4ed0[_0x35ac3(0x1a56)]['offset']=(_0x5b4ed0['query'][_0x35ac3(0x844)]-0x1)*_0x5b4ed0['query'][_0x35ac3(0x221e)],_0x5b4ed0[_0x35ac3(0xb9c)]=_0x88022b[_0x35ac3(0xd57)][_0x35ac3(0xf26)](_0x5b4ed0[_0x35ac3(0x1a56)],_0x4d70de)[_0x35ac3(0x2945)];}function _0x3c3f2f(_0x57f258,_0x5ad3d2){const _0x129b55=_0x1f4398;_0x48b763[_0x129b55(0x2615)]({'controller':_0x129b55(0x1081),'controllerAs':'vm','templateUrl':_0x3014b1,'parent':angular[_0x129b55(0x1853)](_0x1a71ed[_0x129b55(0x2586)]),'targetEvent':_0x57f258,'clickOutsideToClose':!![],'locals':{'trigger':_0x5b4ed0[_0x129b55(0xd57)],'allCondition':_0x5ad3d2,'allConditions':_0x5b4ed0[_0x129b55(0x162c)][_0x129b55(0x19c7)],'license':null,'setting':null,'crudPermissions':_0x5b4ed0[_0x129b55(0x2514)]}})[_0x129b55(0x146b)](function(_0x3c9c7b){const _0x58775e=_0x129b55;_0x3c9c7b&&(_0x5b4ed0[_0x58775e(0x162c)]={'count':_0x3c9c7b[_0x58775e(0x402)],'rows':_0x3c9c7b},_0x1a0e8a());});}function _0x26b3ce(_0x418c41,_0x246a14){const _0x4ef3a4=_0x1f4398,_0x4653cf=_0x48b763[_0x4ef3a4(0x1e8a)]()[_0x4ef3a4(0x1189)](_0x435ded[_0x4ef3a4(0xde)](_0x4ef3a4(0x1473)))['ariaLabel'](_0x4ef3a4(0x2555))['targetEvent'](_0x246a14)['ok']('OK')['cancel'](_0x435ded['instant'](_0x4ef3a4(0x1161)));_0x48b763[_0x4ef3a4(0x2615)](_0x4653cf)[_0x4ef3a4(0x146b)](function(){_0x1f8561(_0x418c41,!![]);});}function _0x1f8561(_0x259a70,_0x45a2d3){const _0x8d2666=_0x1f4398;_0x88022b[_0x8d2666(0x115f)]['delete']({'id':_0x259a70['id']})[_0x8d2666(0x2945)][_0x8d2666(0x146b)](function(){const _0x47c852=_0x8d2666;_0x21d0d6(),_0x45a2d3&&_0x4ee799['success']({'title':_0x435ded['instant'](_0x47c852(0xa50))});})[_0x8d2666(0x129e)](function(_0x3f7a02){const _0x30f2cc=_0x8d2666;if(_0x3f7a02['data']&&_0x3f7a02[_0x30f2cc(0x524)][_0x30f2cc(0xcef)]&&_0x3f7a02[_0x30f2cc(0x524)][_0x30f2cc(0xcef)][_0x30f2cc(0x402)]){_0x5b4ed0['errors']=_0x3f7a02[_0x30f2cc(0x524)][_0x30f2cc(0xcef)]||[{'message':_0x3f7a02[_0x30f2cc(0xd5f)](),'type':'SYSTEM:GETtrigger'}];for(let _0x4522ab=0x0;_0x4522ab<_0x3f7a02[_0x30f2cc(0x524)][_0x30f2cc(0xcef)][_0x30f2cc(0x402)];_0x4522ab++){_0x4ee799[_0x30f2cc(0x1980)]({'title':_0x3f7a02[_0x30f2cc(0x524)][_0x30f2cc(0xcef)][_0x4522ab]['type'],'msg':_0x3f7a02[_0x30f2cc(0x524)][_0x30f2cc(0xcef)][_0x4522ab][_0x30f2cc(0x7fd)]});}}else _0x4ee799[_0x30f2cc(0x1980)]({'title':_0x3f7a02[_0x30f2cc(0x107b)]?_0x30f2cc(0x262a)+_0x3f7a02['status']+_0x30f2cc(0x1315)+_0x3f7a02['statusText']:_0x30f2cc(0x2593),'msg':_0x3f7a02[_0x30f2cc(0x524)]?JSON[_0x30f2cc(0x10bb)](_0x3f7a02[_0x30f2cc(0x524)][_0x30f2cc(0x7fd)]):_0x3f7a02[_0x30f2cc(0x7fd)]||_0x3f7a02['toString']()});});}function _0x47d59f(){const _0x2b3906=_0x1f4398,_0x30d8c2=angular['copy'](_0x5b4ed0[_0x2b3906(0x1316)]);return _0x5b4ed0[_0x2b3906(0x1316)]=[],_0x30d8c2;}function _0x417017(_0x49c48a){const _0x2f9d95=_0x1f4398,_0x24a322=_0x48b763[_0x2f9d95(0x1e8a)]()[_0x2f9d95(0x1189)](_0x435ded[_0x2f9d95(0xde)](_0x2f9d95(0x2bc)))['content'](_0x435ded[_0x2f9d95(0xde)]('TOOLS.NOTIFICATIONS.CONDITIONS_DELETE_MESSAGE',{'total':_0x5b4ed0[_0x2f9d95(0x1316)]['length']}))[_0x2f9d95(0x4bd)](_0x2f9d95(0x1bef))[_0x2f9d95(0x1f27)](_0x49c48a)['ok']('OK')['cancel'](_0x435ded[_0x2f9d95(0xde)](_0x2f9d95(0x1161)));_0x48b763[_0x2f9d95(0x2615)](_0x24a322)[_0x2f9d95(0x146b)](function(){const _0x5e5ff8=_0x2f9d95;_0x5b4ed0['selectedTriggerAllConditions'][_0x5e5ff8(0x1df5)](function(_0x1ee1a3){_0x1f8561(_0x1ee1a3);}),_0x5b4ed0[_0x5e5ff8(0x1316)]=[],_0x4ee799['success']({'title':_0x435ded[_0x5e5ff8(0xde)]('TOOLS.NOTIFICATIONS.CONDITIONS_DELETED_SUCCESS_TITLE')});});}let _0x56005c=!![],_0x527f13=0x1;_0x1ca216[_0x1f4398(0x21e8)](_0x1f4398(0x117f),function(_0xc2410a,_0x5abdfc){const _0x3cebe0=_0x1f4398;_0x56005c?_0xef94a5(function(){_0x56005c=![];}):(!_0x5abdfc&&(_0x527f13=_0x5b4ed0[_0x3cebe0(0x1a56)][_0x3cebe0(0x844)]),_0xc2410a!==_0x5abdfc&&(_0x5b4ed0[_0x3cebe0(0x1a56)][_0x3cebe0(0x844)]=0x1),!_0xc2410a&&(_0x5b4ed0[_0x3cebe0(0x1a56)][_0x3cebe0(0x844)]=_0x527f13),_0x21d0d6());});}const _0x3e8c20=_0x3f02f5;;_0x14d507[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1862),_0x313a4d(0xd08),_0x313a4d(0x10e8),'$q',_0x313a4d(0x214b),_0x313a4d(0x1fe4),'allconditions',_0x313a4d(0x20e6),_0x313a4d(0xd57),_0x313a4d(0x247f),'Auth',_0x313a4d(0x2690),_0x313a4d(0x15b9),_0x313a4d(0x2514)];function _0x14d507(_0x2d06e0,_0x21ebc4,_0x616d14,_0x11b6f6,_0x3b01b9,_0x3cec57,_0x1b41b5,_0x398f01,_0x2a2b07,_0x37e824,_0x28de48,_0x7545d5,_0x17869e,_0x14f157,_0x1b52b0){const _0x19bac0=_0x313a4d,_0x35b4fe=this;_0x35b4fe[_0x19bac0(0x2321)]=_0x7545d5['getCurrentUser'](),_0x35b4fe[_0x19bac0(0xcef)]=[],_0x35b4fe[_0x19bac0(0x15b9)]=_0x14f157,_0x35b4fe['license']=_0x17869e,_0x35b4fe[_0x19bac0(0x2514)]=_0x1b52b0,_0x35b4fe['hasModulePermissions']={},_0x35b4fe[_0x19bac0(0x2251)]=_0x35b4fe[_0x19bac0(0x15b9)]&&_0x35b4fe[_0x19bac0(0x15b9)]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x35b4fe[_0x19bac0(0x1189)]=_0x19bac0(0x1720),_0x35b4fe[_0x19bac0(0x20e6)]=angular[_0x19bac0(0x235a)](_0x2a2b07),_0x35b4fe['allconditions']=_0x398f01,_0x35b4fe['newAllCondition']=![],_0x35b4fe[_0x19bac0(0xd57)]=angular['copy'](_0x37e824);!_0x35b4fe[_0x19bac0(0x20e6)]&&(_0x35b4fe[_0x19bac0(0x20e6)]={'field':'queue','operator':_0x19bac0(0x26b4),'value':'in'},_0x35b4fe['title']=_0x19bac0(0x657),_0x35b4fe[_0x19bac0(0x689)]=!![]);_0x21ebc4[_0x19bac0(0x16a)]['id']&&(_0x35b4fe[_0x19bac0(0x20e6)][_0x19bac0(0x34b)]=_0x21ebc4[_0x19bac0(0x16a)]['id']);_0x35b4fe[_0x19bac0(0x28b9)]=_0x3f429e,_0x35b4fe['saveAllCondition']=_0x18764a,_0x35b4fe[_0x19bac0(0x2226)]=_0x4fbe06,_0x35b4fe[_0x19bac0(0xe73)]=_0x2097a9,_0x35b4fe[_0x19bac0(0x13f3)]=_0x2e8dae,_0x7545d5[_0x19bac0(0x23e0)](_0x19bac0(0x174b))?_0x28de48[_0x19bac0(0x189e)]['get']({'fields':_0x19bac0(0x7a7),'sort':'id','nolimit':_0x19bac0(0x1185)})[_0x19bac0(0x2945)][_0x19bac0(0x146b)](function(_0x247037){const _0x483386=_0x19bac0;_0x35b4fe[_0x483386(0x282c)]=_0x247037[_0x483386(0x19c7)]||[];})['catch'](function(_0x401088){const _0x3a9320=_0x19bac0;_0x1b41b5[_0x3a9320(0x1980)]({'title':_0x401088[_0x3a9320(0x107b)]?_0x3a9320(0x262a)+_0x401088[_0x3a9320(0x107b)]+'\x20-\x20'+_0x401088[_0x3a9320(0x167f)]:_0x3a9320(0x22da),'msg':_0x401088['data']?JSON[_0x3a9320(0x10bb)](_0x401088[_0x3a9320(0x524)]):_0x401088[_0x3a9320(0xd5f)]()});}):_0x28de48[_0x19bac0(0x189e)]['get']({'fields':_0x19bac0(0x7a7),'sort':'id','nolimit':_0x19bac0(0x1185)})[_0x19bac0(0x2945)]['then'](function(_0x322b7b){const _0x208dab=_0x19bac0;_0x35b4fe[_0x208dab(0x282c)]=_0x322b7b['rows']||[];})['then'](function(){const _0x6472b6=_0x19bac0;return _0x28de48[_0x6472b6(0x1366)][_0x6472b6(0x16b4)]({'userProfileId':_0x35b4fe[_0x6472b6(0x2321)][_0x6472b6(0x209a)],'sectionId':0x1f6})[_0x6472b6(0x2945)];})[_0x19bac0(0x146b)](function(_0x7940ea){const _0x178c3c=_0x19bac0,_0x5e42fe=_0x7940ea&&_0x7940ea['rows']?_0x7940ea[_0x178c3c(0x19c7)][0x0]:null;if(!_0x5e42fe){const _0x331e9b=[];let _0x4db268=null;_0x35b4fe[_0x178c3c(0x20e6)]&&(_0x4db268=_0x3f65c0()[_0x178c3c(0xc84)](_0x35b4fe[_0x178c3c(0x282c)],{'id':Number(_0x35b4fe[_0x178c3c(0x20e6)][_0x178c3c(0x175d)])}));for(let _0x26aa61=0x0;_0x26aa61<_0x35b4fe[_0x178c3c(0x282c)][_0x178c3c(0x402)];_0x26aa61++){_0x4db268&&_0x35b4fe[_0x178c3c(0x282c)][_0x26aa61]['id']===_0x4db268['id']&&(_0x35b4fe[_0x178c3c(0x282c)][_0x26aa61][_0x178c3c(0x8ff)]=![],_0x331e9b[_0x178c3c(0x1f47)](_0x35b4fe[_0x178c3c(0x282c)][_0x26aa61]));}_0x35b4fe['chatAccounts']=_0x331e9b;}else{if(!_0x5e42fe[_0x178c3c(0x11d2)])return _0x28de48[_0x178c3c(0xdcc)][_0x178c3c(0x16b4)]({'sectionId':_0x5e42fe['id']})['$promise'][_0x178c3c(0x146b)](function(_0x4cba1f){const _0x35320c=_0x178c3c,_0x4f760d=_0x3f65c0()[_0x35320c(0x205)](_0x4cba1f[_0x35320c(0x19c7)],function(_0x1fcda3){const _0x5870ea=_0x35320c;return _0x3f65c0()[_0x5870ea(0xc84)](_0x35b4fe[_0x5870ea(0x282c)],{'id':_0x1fcda3[_0x5870ea(0x18b8)]});});let _0x39bbc0=null;_0x35b4fe['allCondition']&&(_0x39bbc0=_0x3f65c0()[_0x35320c(0xc84)](_0x35b4fe['chatAccounts'],{'id':Number(_0x35b4fe[_0x35320c(0x20e6)]['value'])}));if(_0x39bbc0&&!_0x3f65c0()[_0x35320c(0x1360)](_0x4f760d,['id',_0x39bbc0['id']])){const _0x185292=_0x3f65c0()[_0x35320c(0xc84)](_0x35b4fe[_0x35320c(0x282c)],{'id':_0x39bbc0['id']});_0x185292[_0x35320c(0x8ff)]=![],_0x4f760d[_0x35320c(0x1f47)](_0x185292);}_0x35b4fe[_0x35320c(0x282c)]=_0x4f760d;});}})[_0x19bac0(0x129e)](function(_0x255b77){const _0x499479=_0x19bac0;_0x1b41b5[_0x499479(0x1980)]({'title':_0x255b77[_0x499479(0x107b)]?_0x499479(0x262a)+_0x255b77[_0x499479(0x107b)]+_0x499479(0x1315)+_0x255b77['statusText']:_0x499479(0x23b5),'msg':_0x255b77['data']?JSON[_0x499479(0x10bb)](_0x255b77[_0x499479(0x524)]):_0x255b77[_0x499479(0xd5f)]()});}),_0x7545d5[_0x19bac0(0x23e0)](_0x19bac0(0x174b))?_0x28de48['mailAccount'][_0x19bac0(0x16b4)]({'fields':'id,name','sort':'id','nolimit':_0x19bac0(0x1185)})[_0x19bac0(0x2945)][_0x19bac0(0x146b)](function(_0x44ed6f){const _0x5200fa=_0x19bac0;_0x35b4fe[_0x5200fa(0x1593)]=_0x44ed6f['rows']||[];})[_0x19bac0(0x129e)](function(_0x357a57){const _0x482aa0=_0x19bac0;_0x1b41b5[_0x482aa0(0x1980)]({'title':_0x357a57[_0x482aa0(0x107b)]?_0x482aa0(0x262a)+_0x357a57[_0x482aa0(0x107b)]+_0x482aa0(0x1315)+_0x357a57[_0x482aa0(0x167f)]:_0x482aa0(0x2898),'msg':_0x357a57['data']?JSON['stringify'](_0x357a57['data']):_0x357a57[_0x482aa0(0xd5f)]()});}):_0x28de48[_0x19bac0(0x67d)][_0x19bac0(0x16b4)]({'fields':_0x19bac0(0x7a7),'sort':'id','nolimit':_0x19bac0(0x1185)})[_0x19bac0(0x2945)][_0x19bac0(0x146b)](function(_0x307b30){const _0x2bf91e=_0x19bac0;_0x35b4fe[_0x2bf91e(0x1593)]=_0x307b30[_0x2bf91e(0x19c7)]||[];})[_0x19bac0(0x146b)](function(){const _0x5bb39e=_0x19bac0;return _0x28de48[_0x5bb39e(0x1366)][_0x5bb39e(0x16b4)]({'userProfileId':_0x35b4fe[_0x5bb39e(0x2321)][_0x5bb39e(0x209a)],'sectionId':0x25a})['$promise'];})['then'](function(_0x196652){const _0x3b50ec=_0x19bac0,_0x2b6dbf=_0x196652&&_0x196652['rows']?_0x196652['rows'][0x0]:null;if(!_0x2b6dbf){const _0x53586c=[];let _0x1880d8=null;_0x35b4fe['allCondition']&&(_0x1880d8=_0x3f65c0()['find'](_0x35b4fe[_0x3b50ec(0x1593)],{'id':Number(_0x35b4fe['allCondition']['value'])}));for(let _0x218dff=0x0;_0x218dff<_0x35b4fe['mailAccounts'][_0x3b50ec(0x402)];_0x218dff++){_0x1880d8&&_0x35b4fe[_0x3b50ec(0x1593)][_0x218dff]['id']===_0x1880d8['id']&&(_0x35b4fe[_0x3b50ec(0x1593)][_0x218dff][_0x3b50ec(0x8ff)]=![],_0x53586c[_0x3b50ec(0x1f47)](_0x35b4fe[_0x3b50ec(0x1593)][_0x218dff]));}_0x35b4fe[_0x3b50ec(0x1593)]=_0x53586c;}else{if(!_0x2b6dbf[_0x3b50ec(0x11d2)])return _0x28de48[_0x3b50ec(0xdcc)][_0x3b50ec(0x16b4)]({'sectionId':_0x2b6dbf['id']})[_0x3b50ec(0x2945)][_0x3b50ec(0x146b)](function(_0x2dd1ee){const _0x4dece1=_0x3b50ec,_0x7d1b08=_0x3f65c0()['map'](_0x2dd1ee[_0x4dece1(0x19c7)],function(_0x3acec3){const _0x2fcd85=_0x4dece1;return _0x3f65c0()[_0x2fcd85(0xc84)](_0x35b4fe[_0x2fcd85(0x1593)],{'id':_0x3acec3[_0x2fcd85(0x18b8)]});});let _0x436da9=null;_0x35b4fe[_0x4dece1(0x20e6)]&&(_0x436da9=_0x3f65c0()[_0x4dece1(0xc84)](_0x35b4fe[_0x4dece1(0x1593)],{'id':Number(_0x35b4fe[_0x4dece1(0x20e6)]['value'])}));if(_0x436da9&&!_0x3f65c0()['some'](_0x7d1b08,['id',_0x436da9['id']])){const _0x32bb28=_0x3f65c0()['find'](_0x35b4fe[_0x4dece1(0x1593)],{'id':_0x436da9['id']});_0x32bb28[_0x4dece1(0x8ff)]=![],_0x7d1b08[_0x4dece1(0x1f47)](_0x32bb28);}_0x35b4fe[_0x4dece1(0x1593)]=_0x7d1b08;});}})[_0x19bac0(0x129e)](function(_0x2bcd87){const _0x397988=_0x19bac0;_0x1b41b5[_0x397988(0x1980)]({'title':_0x2bcd87[_0x397988(0x107b)]?'API:'+_0x2bcd87[_0x397988(0x107b)]+_0x397988(0x1315)+_0x2bcd87[_0x397988(0x167f)]:_0x397988(0x386),'msg':_0x2bcd87[_0x397988(0x524)]?JSON[_0x397988(0x10bb)](_0x2bcd87['data']):_0x2bcd87[_0x397988(0xd5f)]()});}),_0x7545d5[_0x19bac0(0x23e0)]('admin')?_0x28de48[_0x19bac0(0x2209)][_0x19bac0(0x16b4)]({'fields':'id,name','sort':'id','nolimit':_0x19bac0(0x1185)})[_0x19bac0(0x2945)][_0x19bac0(0x146b)](function(_0x1e4169){const _0x1abf95=_0x19bac0;_0x35b4fe['smsAccounts']=_0x1e4169[_0x1abf95(0x19c7)]||[];})[_0x19bac0(0x129e)](function(_0x2e53d6){const _0x17fe4e=_0x19bac0;_0x1b41b5['error']({'title':_0x2e53d6[_0x17fe4e(0x107b)]?_0x17fe4e(0x262a)+_0x2e53d6[_0x17fe4e(0x107b)]+_0x17fe4e(0x1315)+_0x2e53d6[_0x17fe4e(0x167f)]:_0x17fe4e(0x14c6),'msg':_0x2e53d6[_0x17fe4e(0x524)]?JSON[_0x17fe4e(0x10bb)](_0x2e53d6[_0x17fe4e(0x524)]):_0x2e53d6[_0x17fe4e(0xd5f)]()});}):_0x28de48[_0x19bac0(0x2209)][_0x19bac0(0x16b4)]({'fields':_0x19bac0(0x7a7),'sort':'id','nolimit':'true'})[_0x19bac0(0x2945)][_0x19bac0(0x146b)](function(_0x143845){const _0x50fa94=_0x19bac0;_0x35b4fe[_0x50fa94(0x1c34)]=_0x143845[_0x50fa94(0x19c7)]||[];})[_0x19bac0(0x146b)](function(){const _0x478740=_0x19bac0;return _0x28de48[_0x478740(0x1366)][_0x478740(0x16b4)]({'userProfileId':_0x35b4fe['currentUser'][_0x478740(0x209a)],'sectionId':0x2be})['$promise'];})[_0x19bac0(0x146b)](function(_0x20e7b0){const _0x3d2858=_0x19bac0,_0x15fc57=_0x20e7b0&&_0x20e7b0[_0x3d2858(0x19c7)]?_0x20e7b0[_0x3d2858(0x19c7)][0x0]:null;if(!_0x15fc57){const _0xc51951=[];let _0x3fd763=null;_0x35b4fe[_0x3d2858(0x20e6)]&&(_0x3fd763=_0x3f65c0()[_0x3d2858(0xc84)](_0x35b4fe[_0x3d2858(0x1c34)],{'id':Number(_0x35b4fe[_0x3d2858(0x20e6)]['value'])}));for(let _0x3c876a=0x0;_0x3c876a<_0x35b4fe[_0x3d2858(0x1c34)][_0x3d2858(0x402)];_0x3c876a++){_0x3fd763&&_0x35b4fe[_0x3d2858(0x1c34)][_0x3c876a]['id']===_0x3fd763['id']&&(_0x35b4fe[_0x3d2858(0x1c34)][_0x3c876a][_0x3d2858(0x8ff)]=![],_0xc51951[_0x3d2858(0x1f47)](_0x35b4fe[_0x3d2858(0x1c34)][_0x3c876a]));}_0x35b4fe[_0x3d2858(0x1c34)]=_0xc51951;}else{if(!_0x15fc57['autoAssociation'])return _0x28de48[_0x3d2858(0xdcc)]['get']({'sectionId':_0x15fc57['id']})[_0x3d2858(0x2945)][_0x3d2858(0x146b)](function(_0x241df4){const _0x54e19e=_0x3d2858,_0x3b0fe0=_0x3f65c0()[_0x54e19e(0x205)](_0x241df4['rows'],function(_0x5b24dc){const _0x46f668=_0x54e19e;return _0x3f65c0()[_0x46f668(0xc84)](_0x35b4fe['smsAccounts'],{'id':_0x5b24dc[_0x46f668(0x18b8)]});});let _0x1f5cd9=null;_0x35b4fe[_0x54e19e(0x20e6)]&&(_0x1f5cd9=_0x3f65c0()[_0x54e19e(0xc84)](_0x35b4fe[_0x54e19e(0x1c34)],{'id':Number(_0x35b4fe[_0x54e19e(0x20e6)]['value'])}));if(_0x1f5cd9&&!_0x3f65c0()[_0x54e19e(0x1360)](_0x3b0fe0,['id',_0x1f5cd9['id']])){const _0x220a46=_0x3f65c0()[_0x54e19e(0xc84)](_0x35b4fe['smsAccounts'],{'id':_0x1f5cd9['id']});_0x220a46[_0x54e19e(0x8ff)]=![],_0x3b0fe0[_0x54e19e(0x1f47)](_0x220a46);}_0x35b4fe[_0x54e19e(0x1c34)]=_0x3b0fe0;});}})['catch'](function(_0x52e73b){const _0x1b6211=_0x19bac0;_0x1b41b5[_0x1b6211(0x1980)]({'title':_0x52e73b[_0x1b6211(0x107b)]?_0x1b6211(0x262a)+_0x52e73b[_0x1b6211(0x107b)]+_0x1b6211(0x1315)+_0x52e73b[_0x1b6211(0x167f)]:_0x1b6211(0x2bf),'msg':_0x52e73b['data']?JSON[_0x1b6211(0x10bb)](_0x52e73b[_0x1b6211(0x524)]):_0x52e73b['toString']()});}),_0x7545d5[_0x19bac0(0x23e0)]('admin')?_0x28de48[_0x19bac0(0x815)][_0x19bac0(0x16b4)]({'fields':'id,name','sort':'id','nolimit':'true'})[_0x19bac0(0x2945)][_0x19bac0(0x146b)](function(_0x32f082){const _0x3ce29b=_0x19bac0;_0x35b4fe[_0x3ce29b(0x23c)]=_0x32f082['rows']||[];})[_0x19bac0(0x129e)](function(_0x2ff25c){const _0x4fc240=_0x19bac0;_0x1b41b5[_0x4fc240(0x1980)]({'title':_0x2ff25c[_0x4fc240(0x107b)]?'API:'+_0x2ff25c[_0x4fc240(0x107b)]+_0x4fc240(0x1315)+_0x2ff25c[_0x4fc240(0x167f)]:'SYSTEM:GET_WHATSAPPACCOUNTS','msg':_0x2ff25c['data']?JSON[_0x4fc240(0x10bb)](_0x2ff25c[_0x4fc240(0x524)]):_0x2ff25c[_0x4fc240(0xd5f)]()});}):_0x28de48[_0x19bac0(0x815)][_0x19bac0(0x16b4)]({'fields':_0x19bac0(0x7a7),'sort':'id','nolimit':_0x19bac0(0x1185)})[_0x19bac0(0x2945)][_0x19bac0(0x146b)](function(_0xfe0cbb){const _0x1a03ef=_0x19bac0;_0x35b4fe[_0x1a03ef(0x23c)]=_0xfe0cbb[_0x1a03ef(0x19c7)]||[];})[_0x19bac0(0x146b)](function(){const _0x404e3b=_0x19bac0;return _0x28de48[_0x404e3b(0x1366)][_0x404e3b(0x16b4)]({'userProfileId':_0x35b4fe[_0x404e3b(0x2321)][_0x404e3b(0x209a)],'sectionId':0x836})[_0x404e3b(0x2945)];})[_0x19bac0(0x146b)](function(_0x5a0277){const _0x3f1ab8=_0x19bac0,_0x47d0cc=_0x5a0277&&_0x5a0277['rows']?_0x5a0277[_0x3f1ab8(0x19c7)][0x0]:null;if(!_0x47d0cc){const _0x372ced=[];let _0x567d2b=null;_0x35b4fe[_0x3f1ab8(0x20e6)]&&(_0x567d2b=_0x3f65c0()[_0x3f1ab8(0xc84)](_0x35b4fe[_0x3f1ab8(0x23c)],{'id':Number(_0x35b4fe[_0x3f1ab8(0x20e6)][_0x3f1ab8(0x175d)])}));for(let _0x48b99e=0x0;_0x48b99e<_0x35b4fe[_0x3f1ab8(0x23c)][_0x3f1ab8(0x402)];_0x48b99e++){_0x567d2b&&_0x35b4fe['whatsappAccounts'][_0x48b99e]['id']===_0x567d2b['id']&&(_0x35b4fe['whatsappAccounts'][_0x48b99e][_0x3f1ab8(0x8ff)]=![],_0x372ced[_0x3f1ab8(0x1f47)](_0x35b4fe['whatsappAccounts'][_0x48b99e]));}_0x35b4fe[_0x3f1ab8(0x23c)]=_0x372ced;}else{if(!_0x47d0cc['autoAssociation'])return _0x28de48[_0x3f1ab8(0xdcc)][_0x3f1ab8(0x16b4)]({'sectionId':_0x47d0cc['id']})[_0x3f1ab8(0x2945)]['then'](function(_0xbaf105){const _0x18f778=_0x3f1ab8,_0x30fd27=_0x3f65c0()[_0x18f778(0x205)](_0xbaf105['rows'],function(_0x5e49d7){const _0xa149d8=_0x18f778;return _0x3f65c0()[_0xa149d8(0xc84)](_0x35b4fe[_0xa149d8(0x23c)],{'id':_0x5e49d7['resourceId']});});let _0x123ea7=null;_0x35b4fe[_0x18f778(0x20e6)]&&(_0x123ea7=_0x3f65c0()[_0x18f778(0xc84)](_0x35b4fe[_0x18f778(0x23c)],{'id':Number(_0x35b4fe[_0x18f778(0x20e6)][_0x18f778(0x175d)])}));if(_0x123ea7&&!_0x3f65c0()[_0x18f778(0x1360)](_0x30fd27,['id',_0x123ea7['id']])){const _0x5532be=_0x3f65c0()[_0x18f778(0xc84)](_0x35b4fe[_0x18f778(0x23c)],{'id':_0x123ea7['id']});_0x5532be[_0x18f778(0x8ff)]=![],_0x30fd27['push'](_0x5532be);}_0x35b4fe[_0x18f778(0x23c)]=_0x30fd27;});}})['catch'](function(_0x2ebb96){const _0x16bbb1=_0x19bac0;_0x1b41b5[_0x16bbb1(0x1980)]({'title':_0x2ebb96['status']?_0x16bbb1(0x262a)+_0x2ebb96[_0x16bbb1(0x107b)]+_0x16bbb1(0x1315)+_0x2ebb96['statusText']:_0x16bbb1(0x1106),'msg':_0x2ebb96[_0x16bbb1(0x524)]?JSON[_0x16bbb1(0x10bb)](_0x2ebb96['data']):_0x2ebb96['toString']()});}),_0x7545d5[_0x19bac0(0x23e0)](_0x19bac0(0x174b))?_0x28de48[_0x19bac0(0x178)][_0x19bac0(0x16b4)]({'fields':_0x19bac0(0x7a7),'sort':'id','nolimit':_0x19bac0(0x1185)})['$promise'][_0x19bac0(0x146b)](function(_0x49a439){const _0x4c93d8=_0x19bac0;_0x35b4fe[_0x4c93d8(0x8a9)]=_0x49a439[_0x4c93d8(0x19c7)]||[];})[_0x19bac0(0x129e)](function(_0x4a05b2){const _0x33b1f8=_0x19bac0;_0x1b41b5[_0x33b1f8(0x1980)]({'title':_0x4a05b2['status']?_0x33b1f8(0x262a)+_0x4a05b2[_0x33b1f8(0x107b)]+_0x33b1f8(0x1315)+_0x4a05b2[_0x33b1f8(0x167f)]:_0x33b1f8(0x1901),'msg':_0x4a05b2[_0x33b1f8(0x524)]?JSON[_0x33b1f8(0x10bb)](_0x4a05b2[_0x33b1f8(0x524)]):_0x4a05b2[_0x33b1f8(0xd5f)]()});}):_0x28de48[_0x19bac0(0x178)][_0x19bac0(0x16b4)]({'fields':_0x19bac0(0x7a7),'sort':'id','nolimit':_0x19bac0(0x1185)})[_0x19bac0(0x2945)][_0x19bac0(0x146b)](function(_0xa459bc){const _0x5a4e66=_0x19bac0;_0x35b4fe[_0x5a4e66(0x8a9)]=_0xa459bc[_0x5a4e66(0x19c7)]||[];})[_0x19bac0(0x146b)](function(){const _0x382f92=_0x19bac0;return _0x28de48['userProfileSection'][_0x382f92(0x16b4)]({'userProfileId':_0x35b4fe[_0x382f92(0x2321)][_0x382f92(0x209a)],'sectionId':0x386})[_0x382f92(0x2945)];})[_0x19bac0(0x146b)](function(_0x3b9f0d){const _0x37c8be=_0x19bac0,_0x280de2=_0x3b9f0d&&_0x3b9f0d[_0x37c8be(0x19c7)]?_0x3b9f0d[_0x37c8be(0x19c7)][0x0]:null;if(!_0x280de2){const _0x1a3d95=[];let _0x2540dd=null;_0x35b4fe['allCondition']&&(_0x2540dd=_0x3f65c0()[_0x37c8be(0xc84)](_0x35b4fe[_0x37c8be(0x8a9)],{'id':Number(_0x35b4fe[_0x37c8be(0x20e6)][_0x37c8be(0x175d)])}));for(let _0x141a64=0x0;_0x141a64<_0x35b4fe[_0x37c8be(0x8a9)]['length'];_0x141a64++){_0x2540dd&&_0x35b4fe[_0x37c8be(0x8a9)][_0x141a64]['id']===_0x2540dd['id']&&(_0x35b4fe[_0x37c8be(0x8a9)][_0x141a64][_0x37c8be(0x8ff)]=![],_0x1a3d95['push'](_0x35b4fe[_0x37c8be(0x8a9)][_0x141a64]));}_0x35b4fe[_0x37c8be(0x8a9)]=_0x1a3d95;}else{if(!_0x280de2[_0x37c8be(0x11d2)])return _0x28de48[_0x37c8be(0xdcc)][_0x37c8be(0x16b4)]({'sectionId':_0x280de2['id']})['$promise'][_0x37c8be(0x146b)](function(_0x32fb4f){const _0xe6a5b0=_0x37c8be,_0x16737c=_0x3f65c0()[_0xe6a5b0(0x205)](_0x32fb4f[_0xe6a5b0(0x19c7)],function(_0x23a0bf){const _0x477b68=_0xe6a5b0;return _0x3f65c0()[_0x477b68(0xc84)](_0x35b4fe['faxAccounts'],{'id':_0x23a0bf[_0x477b68(0x18b8)]});});let _0xc8ed35=null;_0x35b4fe[_0xe6a5b0(0x20e6)]&&(_0xc8ed35=_0x3f65c0()[_0xe6a5b0(0xc84)](_0x35b4fe[_0xe6a5b0(0x8a9)],{'id':Number(_0x35b4fe['allCondition'][_0xe6a5b0(0x175d)])}));if(_0xc8ed35&&!_0x3f65c0()[_0xe6a5b0(0x1360)](_0x16737c,['id',_0xc8ed35['id']])){const _0x2336f4=_0x3f65c0()[_0xe6a5b0(0xc84)](_0x35b4fe[_0xe6a5b0(0x8a9)],{'id':_0xc8ed35['id']});_0x2336f4[_0xe6a5b0(0x8ff)]=![],_0x16737c[_0xe6a5b0(0x1f47)](_0x2336f4);}_0x35b4fe[_0xe6a5b0(0x8a9)]=_0x16737c;});}})[_0x19bac0(0x129e)](function(_0xe038bb){const _0xe2544a=_0x19bac0;_0x1b41b5[_0xe2544a(0x1980)]({'title':_0xe038bb[_0xe2544a(0x107b)]?_0xe2544a(0x262a)+_0xe038bb[_0xe2544a(0x107b)]+_0xe2544a(0x1315)+_0xe038bb[_0xe2544a(0x167f)]:_0xe2544a(0x1262),'msg':_0xe038bb[_0xe2544a(0x524)]?JSON[_0xe2544a(0x10bb)](_0xe038bb[_0xe2544a(0x524)]):_0xe038bb['toString']()});}),_0x7545d5[_0x19bac0(0x23e0)](_0x19bac0(0x174b))?_0x28de48[_0x19bac0(0xbd7)][_0x19bac0(0x16b4)]({'fields':'id,name','sort':'id','nolimit':_0x19bac0(0x1185)})[_0x19bac0(0x2945)][_0x19bac0(0x146b)](function(_0x9bad24){const _0x10bd0a=_0x19bac0;_0x35b4fe[_0x10bd0a(0x1690)]=_0x9bad24[_0x10bd0a(0x19c7)]||[];})['catch'](function(_0x341443){const _0x14f6bd=_0x19bac0;_0x1b41b5[_0x14f6bd(0x1980)]({'title':_0x341443['status']?_0x14f6bd(0x262a)+_0x341443[_0x14f6bd(0x107b)]+_0x14f6bd(0x1315)+_0x341443['statusText']:_0x14f6bd(0x10e0),'msg':_0x341443[_0x14f6bd(0x524)]?JSON[_0x14f6bd(0x10bb)](_0x341443[_0x14f6bd(0x524)]):_0x341443[_0x14f6bd(0xd5f)]()});}):_0x28de48[_0x19bac0(0xbd7)][_0x19bac0(0x16b4)]({'fields':_0x19bac0(0x7a7),'sort':'id','nolimit':'true'})['$promise'][_0x19bac0(0x146b)](function(_0x4a008b){const _0x3870a5=_0x19bac0;_0x35b4fe[_0x3870a5(0x1690)]=_0x4a008b[_0x3870a5(0x19c7)]||[];})[_0x19bac0(0x146b)](function(){const _0x420b20=_0x19bac0;return _0x28de48[_0x420b20(0x1366)][_0x420b20(0x16b4)]({'userProfileId':_0x35b4fe[_0x420b20(0x2321)][_0x420b20(0x209a)],'sectionId':0x322})[_0x420b20(0x2945)];})['then'](function(_0xccf2e7){const _0x1a94e5=_0x19bac0,_0x17e23e=_0xccf2e7&&_0xccf2e7['rows']?_0xccf2e7[_0x1a94e5(0x19c7)][0x0]:null;if(!_0x17e23e){const _0x2b9b7e=[];let _0x46a7a3=null;_0x35b4fe[_0x1a94e5(0x20e6)]&&(_0x46a7a3=_0x3f65c0()[_0x1a94e5(0xc84)](_0x35b4fe[_0x1a94e5(0x1690)],{'id':Number(_0x35b4fe[_0x1a94e5(0x20e6)][_0x1a94e5(0x175d)])}));for(let _0x4104cb=0x0;_0x4104cb<_0x35b4fe[_0x1a94e5(0x1690)]['length'];_0x4104cb++){_0x46a7a3&&_0x35b4fe[_0x1a94e5(0x1690)][_0x4104cb]['id']===_0x46a7a3['id']&&(_0x35b4fe[_0x1a94e5(0x1690)][_0x4104cb][_0x1a94e5(0x8ff)]=![],_0x2b9b7e[_0x1a94e5(0x1f47)](_0x35b4fe[_0x1a94e5(0x1690)][_0x4104cb]));}_0x35b4fe['openchannelAccounts']=_0x2b9b7e;}else{if(!_0x17e23e['autoAssociation'])return _0x28de48[_0x1a94e5(0xdcc)]['get']({'sectionId':_0x17e23e['id']})['$promise'][_0x1a94e5(0x146b)](function(_0x1ef4e3){const _0x54c3d5=_0x1a94e5,_0x170e33=_0x3f65c0()['map'](_0x1ef4e3['rows'],function(_0x173984){const _0x18f084=a0_0x3bb9;return _0x3f65c0()[_0x18f084(0xc84)](_0x35b4fe['openchannelAccounts'],{'id':_0x173984['resourceId']});});let _0x259a88=null;_0x35b4fe['allCondition']&&(_0x259a88=_0x3f65c0()[_0x54c3d5(0xc84)](_0x35b4fe[_0x54c3d5(0x1690)],{'id':Number(_0x35b4fe['allCondition'][_0x54c3d5(0x175d)])}));if(_0x259a88&&!_0x3f65c0()[_0x54c3d5(0x1360)](_0x170e33,['id',_0x259a88['id']])){const _0xc4da6=_0x3f65c0()[_0x54c3d5(0xc84)](_0x35b4fe[_0x54c3d5(0x1690)],{'id':_0x259a88['id']});_0xc4da6[_0x54c3d5(0x8ff)]=![],_0x170e33[_0x54c3d5(0x1f47)](_0xc4da6);}_0x35b4fe[_0x54c3d5(0x1690)]=_0x170e33;});}})[_0x19bac0(0x129e)](function(_0x20816f){const _0x4d4bdc=_0x19bac0;_0x1b41b5['error']({'title':_0x20816f['status']?_0x4d4bdc(0x262a)+_0x20816f[_0x4d4bdc(0x107b)]+_0x4d4bdc(0x1315)+_0x20816f[_0x4d4bdc(0x167f)]:_0x4d4bdc(0x1b35),'msg':_0x20816f[_0x4d4bdc(0x524)]?JSON['stringify'](_0x20816f[_0x4d4bdc(0x524)]):_0x20816f[_0x4d4bdc(0xd5f)]()});});const _0x1c25dd=[{'id':0x191,'type':_0x19bac0(0x7b0)},{'id':0x5dd,'type':_0x19bac0(0xc9c)}];let _0x342db2=null;_0x7545d5[_0x19bac0(0x23e0)](_0x19bac0(0x174b))?_0x28de48[_0x19bac0(0x1446)][_0x19bac0(0x16b4)]({'fields':_0x19bac0(0x45e),'sort':'name','nolimit':_0x19bac0(0x1185)})[_0x19bac0(0x2945)]['then'](function(_0x3dbd3f){const _0x307da9=_0x19bac0;_0x35b4fe[_0x307da9(0x1b32)]=_0x3dbd3f[_0x307da9(0x19c7)]||[];})[_0x19bac0(0x129e)](function(_0x1ce319){const _0x526acc=_0x19bac0;_0x1b41b5[_0x526acc(0x1980)]({'title':_0x1ce319[_0x526acc(0x107b)]?_0x526acc(0x262a)+_0x1ce319[_0x526acc(0x107b)]+_0x526acc(0x1315)+_0x1ce319[_0x526acc(0x167f)]:_0x526acc(0x22d8),'msg':_0x1ce319[_0x526acc(0x524)]?JSON[_0x526acc(0x10bb)](_0x1ce319[_0x526acc(0x524)]):_0x1ce319[_0x526acc(0xd5f)]()});}):_0x28de48[_0x19bac0(0x1446)]['get']({'fields':'id,name,type','sort':_0x19bac0(0x19eb),'nolimit':_0x19bac0(0x1185)})[_0x19bac0(0x2945)][_0x19bac0(0x146b)](function(_0x9b2e78){_0x342db2=_0x9b2e78['rows']||[];})[_0x19bac0(0x146b)](function(){const _0x1e157b=_0x19bac0,_0x45dea9=[];for(let _0x49aa07=0x0;_0x49aa07<_0x1c25dd['length'];_0x49aa07++){_0x45dea9[_0x1e157b(0x1f47)](_0x28de48[_0x1e157b(0x1366)][_0x1e157b(0x16b4)]({'userProfileId':_0x35b4fe[_0x1e157b(0x2321)][_0x1e157b(0x209a)],'sectionId':_0x1c25dd[_0x49aa07]['id']})[_0x1e157b(0x2945)]);}return _0x3b01b9['all'](_0x45dea9);})[_0x19bac0(0x146b)](function(_0x1836e1){const _0x10d5a5=_0x19bac0,_0x464d4f=_0x3f65c0()[_0x10d5a5(0x205)](_0x1836e1,function(_0x5571d0){const _0x16927b=_0x10d5a5;return _0x5571d0&&_0x5571d0[_0x16927b(0x19c7)]?_0x5571d0[_0x16927b(0x19c7)][0x0]:null;}),_0x29530b=[];for(let _0x15aea0=0x0;_0x15aea0<_0x1c25dd[_0x10d5a5(0x402)];_0x15aea0++){const _0x2daddb=_0x3f65c0()[_0x10d5a5(0xc84)](_0x464d4f,['sectionId',_0x1c25dd[_0x15aea0]['id']]);if(_0x2daddb){if(!_0x2daddb['autoAssociation'])_0x29530b[_0x10d5a5(0x1f47)](_0x28de48[_0x10d5a5(0xdcc)][_0x10d5a5(0x16b4)]({'sectionId':_0x2daddb['id']})[_0x10d5a5(0x2945)]);else{const _0x1e8632=[];_0x342db2[_0x10d5a5(0x1df5)](function(_0x540818){const _0x308677=_0x10d5a5;_0x540818[_0x308677(0x1142)]===_0x1c25dd[_0x15aea0][_0x308677(0x1142)]&&_0x1e8632['push'](_0x540818);}),_0x29530b[_0x10d5a5(0x1f47)]({'rows':_0x1e8632,'count':_0x1e8632[_0x10d5a5(0x402)]});}}}return _0x3b01b9[_0x10d5a5(0x1be2)](_0x29530b);})[_0x19bac0(0x146b)](function(_0x31f81c){const _0x245a11=_0x19bac0,_0x16d1ca=[];let _0x12b019=null;_0x35b4fe[_0x245a11(0x20e6)]&&(_0x12b019=_0x3f65c0()[_0x245a11(0xc84)](_0x342db2,{'name':_0x35b4fe[_0x245a11(0x20e6)][_0x245a11(0x175d)]}));for(let _0x2c25a7=0x0;_0x2c25a7<_0x31f81c['length'];_0x2c25a7++){const _0x4fb3aa=_0x31f81c[_0x2c25a7][_0x245a11(0x19c7)]||[];_0x4fb3aa[_0x245a11(0x1df5)](function(_0x3d5b44){_0x16d1ca['push'](_0x3d5b44);});}_0x12b019&&!_0x3f65c0()[_0x245a11(0x1360)](_0x16d1ca,[_0x245a11(0x18b8),_0x12b019['id']])&&_0x342db2['forEach'](function(_0x3ac7d7){const _0x3c90fd=_0x245a11;_0x3ac7d7['id']===_0x12b019['id']&&(_0x3ac7d7[_0x3c90fd(0x8ff)]=![],_0x16d1ca[_0x3c90fd(0x1f47)](_0x3ac7d7));}),_0x35b4fe[_0x245a11(0x1b32)]=_0x16d1ca;})[_0x19bac0(0x129e)](function(_0x2c3955){const _0x4c3e56=_0x19bac0;_0x1b41b5[_0x4c3e56(0x1980)]({'title':_0x2c3955['status']?_0x4c3e56(0x262a)+_0x2c3955[_0x4c3e56(0x107b)]+'\x20-\x20'+_0x2c3955[_0x4c3e56(0x167f)]:'SYSTEM:GETqueues','msg':_0x2c3955['data']?JSON[_0x4c3e56(0x10bb)](_0x2c3955[_0x4c3e56(0x524)]):_0x2c3955['toString']()});}),_0x7545d5[_0x19bac0(0x23e0)](_0x19bac0(0x174b))?_0x28de48['voiceExtension'][_0x19bac0(0x16b4)]({'fields':_0x19bac0(0xd36),'type':_0x19bac0(0xc9c),'VoiceExtensionId':_0x19bac0(0x203c),'nolimit':_0x19bac0(0x1185)})[_0x19bac0(0x2945)][_0x19bac0(0x146b)](function(_0x1ce3d7){const _0x3ddd21=_0x19bac0;_0x35b4fe[_0x3ddd21(0x966)]=_0x1ce3d7[_0x3ddd21(0x19c7)]||[];})[_0x19bac0(0x129e)](function(_0xf856e9){const _0xffb9ad=_0x19bac0;_0x1b41b5[_0xffb9ad(0x1980)]({'title':_0xf856e9[_0xffb9ad(0x107b)]?'API:'+_0xf856e9[_0xffb9ad(0x107b)]+_0xffb9ad(0x1315)+_0xf856e9[_0xffb9ad(0x167f)]:_0xffb9ad(0x104f),'msg':_0xf856e9['data']?JSON[_0xffb9ad(0x10bb)](_0xf856e9[_0xffb9ad(0x524)]):_0xf856e9[_0xffb9ad(0xd5f)]()});}):_0x28de48[_0x19bac0(0xd47)][_0x19bac0(0x16b4)]({'fields':'id,exten','type':_0x19bac0(0xc9c),'VoiceExtensionId':_0x19bac0(0x203c),'nolimit':_0x19bac0(0x1185)})['$promise'][_0x19bac0(0x146b)](function(_0x184d18){const _0xd56896=_0x19bac0;_0x35b4fe[_0xd56896(0x966)]=_0x184d18[_0xd56896(0x19c7)]||[];})['then'](function(){const _0x4addc6=_0x19bac0;return _0x28de48[_0x4addc6(0x1366)][_0x4addc6(0x16b4)]({'userProfileId':_0x35b4fe[_0x4addc6(0x2321)][_0x4addc6(0x209a)],'sectionId':0x193})[_0x4addc6(0x2945)];})[_0x19bac0(0x146b)](function(_0x129dd2){const _0x2e5c70=_0x19bac0,_0x6c9bc4=_0x129dd2&&_0x129dd2[_0x2e5c70(0x19c7)]?_0x129dd2[_0x2e5c70(0x19c7)][0x0]:null;if(!_0x6c9bc4){const _0x3778de=[];let _0x1a15ec=null;_0x35b4fe[_0x2e5c70(0x20e6)]&&(_0x1a15ec=_0x3f65c0()[_0x2e5c70(0xc84)](_0x35b4fe[_0x2e5c70(0x966)],{'id':Number(_0x35b4fe[_0x2e5c70(0x20e6)][_0x2e5c70(0x175d)])}));for(let _0x4b1963=0x0;_0x4b1963<_0x35b4fe['outboundRoutes'][_0x2e5c70(0x402)];_0x4b1963++){_0x1a15ec&&_0x35b4fe[_0x2e5c70(0x966)][_0x4b1963]['id']===_0x1a15ec['id']&&(_0x35b4fe['outboundRoutes'][_0x4b1963]['canSelect']=![],_0x3778de['push'](_0x35b4fe[_0x2e5c70(0x966)][_0x4b1963]));}_0x35b4fe['outboundRoutes']=_0x3778de;}else{if(!_0x6c9bc4[_0x2e5c70(0x11d2)])return _0x28de48[_0x2e5c70(0xdcc)][_0x2e5c70(0x16b4)]({'sectionId':_0x6c9bc4['id']})[_0x2e5c70(0x2945)][_0x2e5c70(0x146b)](function(_0x17c0e5){const _0x512708=_0x2e5c70,_0xeaccac=_0x3f65c0()[_0x512708(0x205)](_0x17c0e5[_0x512708(0x19c7)],function(_0x5b557f){const _0x18acdc=_0x512708;return _0x3f65c0()[_0x18acdc(0xc84)](_0x35b4fe['outboundRoutes'],{'id':_0x5b557f[_0x18acdc(0x18b8)]});});let _0x2aa2f6=null;_0x35b4fe['allCondition']&&(_0x2aa2f6=_0x3f65c0()[_0x512708(0xc84)](_0x35b4fe[_0x512708(0x966)],{'id':Number(_0x35b4fe[_0x512708(0x20e6)][_0x512708(0x175d)])}));if(_0x2aa2f6&&!_0x3f65c0()['some'](_0xeaccac,['id',_0x2aa2f6['id']])){const _0x19318c=_0x3f65c0()[_0x512708(0xc84)](_0x35b4fe[_0x512708(0x966)],{'id':_0x2aa2f6['id']});_0x19318c[_0x512708(0x8ff)]=![],_0xeaccac[_0x512708(0x1f47)](_0x19318c);}_0x35b4fe['outboundRoutes']=_0xeaccac;});}})[_0x19bac0(0x129e)](function(_0x5df679){const _0x181229=_0x19bac0;_0x1b41b5['error']({'title':_0x5df679[_0x181229(0x107b)]?_0x181229(0x262a)+_0x5df679[_0x181229(0x107b)]+_0x181229(0x1315)+_0x5df679[_0x181229(0x167f)]:_0x181229(0x1850),'msg':_0x5df679['data']?JSON[_0x181229(0x10bb)](_0x5df679['data']):_0x5df679[_0x181229(0xd5f)]()});}),_0x7545d5['hasRole'](_0x19bac0(0x174b))?_0x28de48[_0x19bac0(0xe7b)][_0x19bac0(0x16b4)]({'fields':_0x19bac0(0x12bf),'sort':_0x19bac0(0x19eb),'role':_0x19bac0(0x1755),'nolimit':_0x19bac0(0x1185)})[_0x19bac0(0x2945)][_0x19bac0(0x146b)](function(_0x28f2eb){const _0x3c9aa1=_0x19bac0;_0x35b4fe['agents']=_0x28f2eb[_0x3c9aa1(0x19c7)]||[];})[_0x19bac0(0x129e)](function(_0x18d5d7){const _0x4cb9ee=_0x19bac0;_0x1b41b5[_0x4cb9ee(0x1980)]({'title':_0x18d5d7[_0x4cb9ee(0x107b)]?_0x4cb9ee(0x262a)+_0x18d5d7['status']+_0x4cb9ee(0x1315)+_0x18d5d7[_0x4cb9ee(0x167f)]:'SYSTEM:GET_AGENTS','msg':_0x18d5d7[_0x4cb9ee(0x524)]?JSON[_0x4cb9ee(0x10bb)](_0x18d5d7[_0x4cb9ee(0x524)]):_0x18d5d7['toString']()});}):_0x28de48[_0x19bac0(0xe7b)]['get']({'fields':_0x19bac0(0x12bf),'sort':_0x19bac0(0x19eb),'role':_0x19bac0(0x1755),'nolimit':'true'})['$promise'][_0x19bac0(0x146b)](function(_0x15928f){const _0x5445ec=_0x19bac0;_0x35b4fe['agents']=_0x15928f[_0x5445ec(0x19c7)]||[];})[_0x19bac0(0x146b)](function(){const _0xa9a18=_0x19bac0;return _0x28de48['userProfileSection']['get']({'userProfileId':_0x35b4fe[_0xa9a18(0x2321)][_0xa9a18(0x209a)],'sectionId':0xca})[_0xa9a18(0x2945)];})[_0x19bac0(0x146b)](function(_0xc4ab62){const _0x524d0d=_0x19bac0,_0x60b76f=_0xc4ab62&&_0xc4ab62[_0x524d0d(0x19c7)]?_0xc4ab62[_0x524d0d(0x19c7)][0x0]:null;if(!_0x60b76f){const _0x5eab06=[];let _0x12b4d3=null;_0x35b4fe[_0x524d0d(0x20e6)]&&(_0x12b4d3=_0x3f65c0()['find'](_0x35b4fe[_0x524d0d(0x23c0)],{'name':_0x35b4fe['allCondition'][_0x524d0d(0x175d)]}));for(let _0xd4ba7b=0x0;_0xd4ba7b<_0x35b4fe[_0x524d0d(0x23c0)][_0x524d0d(0x402)];_0xd4ba7b++){_0x12b4d3&&_0x35b4fe[_0x524d0d(0x23c0)][_0xd4ba7b]['id']===_0x12b4d3['id']&&(_0x35b4fe[_0x524d0d(0x23c0)][_0xd4ba7b]['canSelect']=![],_0x5eab06[_0x524d0d(0x1f47)](_0x35b4fe[_0x524d0d(0x23c0)][_0xd4ba7b]));}_0x35b4fe['agents']=_0x5eab06;}else{if(!_0x60b76f[_0x524d0d(0x11d2)])return _0x28de48[_0x524d0d(0xdcc)][_0x524d0d(0x16b4)]({'sectionId':_0x60b76f['id']})[_0x524d0d(0x2945)][_0x524d0d(0x146b)](function(_0x44605a){const _0x8e77db=_0x524d0d,_0x26e62f=_0x3f65c0()[_0x8e77db(0x205)](_0x44605a['rows'],function(_0x54c943){const _0x54bbac=_0x8e77db;return _0x3f65c0()[_0x54bbac(0xc84)](_0x35b4fe[_0x54bbac(0x23c0)],{'id':_0x54c943[_0x54bbac(0x18b8)]});});let _0x496d4c=null;_0x35b4fe[_0x8e77db(0x20e6)]&&(_0x496d4c=_0x3f65c0()[_0x8e77db(0xc84)](_0x35b4fe[_0x8e77db(0x23c0)],{'name':_0x35b4fe['allCondition'][_0x8e77db(0x175d)]}));if(_0x496d4c&&!_0x3f65c0()[_0x8e77db(0x1360)](_0x26e62f,['id',_0x496d4c['id']])){const _0xf1511e=_0x3f65c0()[_0x8e77db(0xc84)](_0x35b4fe[_0x8e77db(0x23c0)],{'id':_0x496d4c['id']});_0xf1511e[_0x8e77db(0x8ff)]=![],_0x26e62f['push'](_0xf1511e);}_0x35b4fe[_0x8e77db(0x23c0)]=_0x26e62f;});}})[_0x19bac0(0x129e)](function(_0x4355d1){const _0x3d2d0f=_0x19bac0;_0x1b41b5[_0x3d2d0f(0x1980)]({'title':_0x4355d1[_0x3d2d0f(0x107b)]?_0x3d2d0f(0x262a)+_0x4355d1[_0x3d2d0f(0x107b)]+'\x20-\x20'+_0x4355d1['statusText']:'SYSTEM:GETagents','msg':_0x4355d1[_0x3d2d0f(0x524)]?JSON['stringify'](_0x4355d1[_0x3d2d0f(0x524)]):_0x4355d1[_0x3d2d0f(0xd5f)]()});});function _0x3f429e(){const _0x1db648=_0x19bac0;_0x35b4fe[_0x1db648(0xcef)]=[],_0x28de48[_0x1db648(0xd57)][_0x1db648(0x5ed)]({'id':_0x21ebc4[_0x1db648(0x16a)]['id']},_0x35b4fe['allCondition'])[_0x1db648(0x2945)][_0x1db648(0x146b)](function(_0x382c63){const _0x2b68e3=_0x1db648;_0x35b4fe['allconditions'][_0x2b68e3(0xb3d)](_0x382c63['toJSON']()),_0x1b41b5['success']({'title':'AllCondition\x20properly\x20created','msg':_0x35b4fe[_0x2b68e3(0x20e6)][_0x2b68e3(0x19eb)]?_0x35b4fe[_0x2b68e3(0x20e6)][_0x2b68e3(0x19eb)]+_0x2b68e3(0x1386):''}),_0x2e8dae(_0x382c63);})['catch'](function(_0x194806){const _0xcad2c4=_0x1db648;if(_0x194806[_0xcad2c4(0x524)]&&_0x194806[_0xcad2c4(0x524)][_0xcad2c4(0xcef)]&&_0x194806[_0xcad2c4(0x524)][_0xcad2c4(0xcef)][_0xcad2c4(0x402)]){_0x35b4fe[_0xcad2c4(0xcef)]=_0x194806[_0xcad2c4(0x524)][_0xcad2c4(0xcef)]||[{'message':_0x194806[_0xcad2c4(0xd5f)](),'type':'api.condition.save'}];for(let _0x29f6dd=0x0;_0x29f6dd<_0x194806['data']['errors']['length'];_0x29f6dd+=0x1){_0x1b41b5[_0xcad2c4(0x1980)]({'title':_0x194806['data'][_0xcad2c4(0xcef)][_0x29f6dd]['type'],'msg':_0x194806[_0xcad2c4(0x524)][_0xcad2c4(0xcef)][_0x29f6dd][_0xcad2c4(0x7fd)]});}}else _0x1b41b5[_0xcad2c4(0x1980)]({'title':_0x194806[_0xcad2c4(0x107b)]?_0xcad2c4(0x262a)+_0x194806[_0xcad2c4(0x107b)]+_0xcad2c4(0x1315)+_0x194806[_0xcad2c4(0x167f)]:_0xcad2c4(0x117c),'msg':_0x194806['data']?JSON[_0xcad2c4(0x10bb)](_0x194806[_0xcad2c4(0x524)][_0xcad2c4(0x7fd)]):_0x194806[_0xcad2c4(0xd5f)]()});});}function _0x18764a(){const _0x574b5d=_0x19bac0;_0x35b4fe[_0x574b5d(0xcef)]=[],_0x28de48[_0x574b5d(0x115f)][_0x574b5d(0x18e1)]({'id':_0x35b4fe['allCondition']['id']},_0x35b4fe['allCondition'])['$promise'][_0x574b5d(0x146b)](function(_0x39c1bd){const _0x481f4e=_0x574b5d,_0x7521fa=_0x3f65c0()['find'](_0x35b4fe[_0x481f4e(0x19e5)],{'id':_0x39c1bd['id']});_0x7521fa&&_0x3f65c0()[_0x481f4e(0x168d)](_0x7521fa,_0x3f65c0()['pick'](_0x39c1bd[_0x481f4e(0x2488)](),_0x3f65c0()['keys'](_0x7521fa))),_0x1b41b5['success']({'title':_0x481f4e(0x1441),'msg':_0x35b4fe[_0x481f4e(0x20e6)][_0x481f4e(0x19eb)]?_0x35b4fe[_0x481f4e(0x20e6)][_0x481f4e(0x19eb)]+'\x20has\x20been\x20saved!':''}),_0x2e8dae(_0x39c1bd);})[_0x574b5d(0x129e)](function(_0x1cf820){const _0x7c1022=_0x574b5d;if(_0x1cf820[_0x7c1022(0x524)]&&_0x1cf820[_0x7c1022(0x524)][_0x7c1022(0xcef)]&&_0x1cf820[_0x7c1022(0x524)][_0x7c1022(0xcef)]['length']){_0x35b4fe[_0x7c1022(0xcef)]=_0x1cf820[_0x7c1022(0x524)][_0x7c1022(0xcef)]||[{'message':_0x1cf820['toString'](),'type':_0x7c1022(0x232f)}];for(let _0x24c5b1=0x0;_0x24c5b1<_0x1cf820[_0x7c1022(0x524)]['errors'][_0x7c1022(0x402)];_0x24c5b1++){_0x1b41b5['error']({'title':_0x1cf820[_0x7c1022(0x524)][_0x7c1022(0xcef)][_0x24c5b1][_0x7c1022(0x1142)],'msg':_0x1cf820['data'][_0x7c1022(0xcef)][_0x24c5b1]['message']});}}else _0x1b41b5[_0x7c1022(0x1980)]({'title':_0x1cf820[_0x7c1022(0x107b)]?_0x7c1022(0x262a)+_0x1cf820['status']+'\x20-\x20'+_0x1cf820['statusText']:_0x7c1022(0x232f),'msg':_0x1cf820['data']?JSON[_0x7c1022(0x10bb)](_0x1cf820[_0x7c1022(0x524)][_0x7c1022(0x7fd)]):_0x1cf820[_0x7c1022(0xd5f)]()});});}function _0x4fbe06(_0x21548f){const _0x5bc9fe=_0x19bac0;_0x35b4fe[_0x5bc9fe(0xcef)]=[];const _0x2fdb73=_0x11b6f6[_0x5bc9fe(0x1e8a)]()[_0x5bc9fe(0x1189)](_0x5bc9fe(0x1d64))['content'](_0x5bc9fe(0x25ac))[_0x5bc9fe(0x4bd)](_0x5bc9fe(0x16e1))['ok'](_0x5bc9fe(0x25de))['cancel']('Cancel')['targetEvent'](_0x21548f);_0x11b6f6[_0x5bc9fe(0x2615)](_0x2fdb73)['then'](function(){const _0x1ea629=_0x5bc9fe;_0x28de48[_0x1ea629(0x115f)][_0x1ea629(0x1fac)]({'id':_0x35b4fe['allCondition']['id']})[_0x1ea629(0x2945)]['then'](function(){const _0x2059e8=_0x1ea629;_0x3f65c0()['remove'](_0x35b4fe[_0x2059e8(0x19e5)],{'id':_0x35b4fe[_0x2059e8(0x20e6)]['id']}),_0x1b41b5[_0x2059e8(0x1c75)]({'title':'AllCondition\x20properly\x20deleted!','msg':(_0x35b4fe[_0x2059e8(0x20e6)][_0x2059e8(0x19eb)]||_0x2059e8(0x20e6))+'\x20has\x20been\x20deleted!'}),_0x2e8dae(_0x35b4fe['allCondition']);})['catch'](function(_0x18880d){const _0x159234=_0x1ea629;if(_0x18880d['data']&&_0x18880d[_0x159234(0x524)]['errors']&&_0x18880d[_0x159234(0x524)][_0x159234(0xcef)][_0x159234(0x402)]){_0x35b4fe['errors']=_0x18880d[_0x159234(0x524)]['errors']||[{'message':_0x18880d[_0x159234(0xd5f)](),'type':'api.condition.delete'}];for(let _0x1cb24f=0x0;_0x1cb24f<_0x18880d[_0x159234(0x524)][_0x159234(0xcef)][_0x159234(0x402)];_0x1cb24f++){_0x1b41b5['error']({'title':_0x18880d[_0x159234(0x524)]['errors'][_0x1cb24f][_0x159234(0x1142)],'msg':_0x18880d[_0x159234(0x524)][_0x159234(0xcef)][_0x1cb24f][_0x159234(0x7fd)]});}}else _0x1b41b5[_0x159234(0x1980)]({'title':_0x18880d['status']?'API:'+_0x18880d['status']+_0x159234(0x1315)+_0x18880d[_0x159234(0x167f)]:_0x159234(0x1cc9),'msg':_0x18880d[_0x159234(0x524)]?JSON['stringify'](_0x18880d['data'][_0x159234(0x7fd)]):_0x18880d[_0x159234(0x7fd)]||_0x18880d[_0x159234(0xd5f)]()});});},function(){});}function _0x2097a9(_0x5d4164){return _0x5d4164===null?undefined:new Date(_0x5d4164);}function _0x2e8dae(_0xaac7f7){const _0xcd8eed=_0x19bac0;_0x11b6f6[_0xcd8eed(0x2458)](_0xaac7f7);}}const _0x149230=_0x14d507;;const _0x2b8b10=_0x4acfac['p']+_0x313a4d(0x2202);;_0x5b68fe[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),'$q','$translate',_0x313a4d(0x1abe),'$mdDialog','$document',_0x313a4d(0x1fe4),_0x313a4d(0x247f),_0x313a4d(0xa87)];function _0x5b68fe(_0x248def,_0x2249d7,_0x1d5afb,_0x3f07f4,_0x1e89da,_0x525dd7,_0x548ed0,_0x5e95ee,_0x1fbef6){const _0x48bb92=_0x313a4d,_0x2eda9a=this;_0x2eda9a['currentUser']=_0x1fbef6[_0x48bb92(0xb12)](),_0x2eda9a[_0x48bb92(0xd57)]={},_0x2eda9a['triggerAnyConditions']={'count':0x0,'rows':[]},_0x2eda9a[_0x48bb92(0x8ed)]=[],_0x2eda9a[_0x48bb92(0x1a56)]={'fields':_0x48bb92(0x261),'limit':0xa,'page':0x1},_0x2eda9a['fields']={'queue':_0x48bb92(0xe26),'lastevent':_0x48bb92(0x13a7),'routeId':_0x48bb92(0x1a8f),'agent':_0x48bb92(0x294a),'account':_0x48bb92(0xb48),'interaction':_0x48bb92(0x2297),'message':_0x48bb92(0xe2)},_0x2eda9a[_0x48bb92(0x147)]={'abandoned':'Abandon','timeout':_0x48bb92(0x5cc),'complete':_0x48bb92(0x2626),'rejected':'Reject','called':_0x48bb92(0x218f),'connect':_0x48bb92(0x21c0),'nosuchnumber':'NoSuchNumber','busy':_0x48bb92(0x22ae),'noanswer':_0x48bb92(0xcf6),'congestion':'Congestion','agentreject':_0x48bb92(0x1eb)},_0x2eda9a['messageStatuses']={'in':_0x48bb92(0x2496),'out':'Outgoing','accept':_0x48bb92(0xbf6),'reject':_0x48bb92(0x27f6)},_0x2eda9a['onInit']=_0x9a37c6,_0x2eda9a[_0x48bb92(0x1c75)]=_0x274b30,_0x2eda9a[_0x48bb92(0x3ad)]=_0x22ca8c,_0x2eda9a[_0x48bb92(0xa3c)]=_0x55411e,_0x2eda9a[_0x48bb92(0x23d0)]=_0x5037d9,_0x2eda9a[_0x48bb92(0x19b4)]=_0x434b51,_0x2eda9a[_0x48bb92(0xd09)]=_0x1f4152,_0x2eda9a['deleteSelectedTriggerAnyConditions']=_0x24f469;function _0x9a37c6(_0x11cd29,_0x576918){const _0x5ed90b=_0x48bb92;_0x2eda9a[_0x5ed90b(0xd57)]=_0x11cd29,_0x2eda9a['crudPermissions']=typeof _0x576918!==_0x5ed90b(0x2274)?_0x576918:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x2eda9a[_0x5ed90b(0x1a56)][_0x5ed90b(0x9e6)]=_0x2eda9a[_0x5ed90b(0xd57)]['id'],_0x2eda9a[_0x5ed90b(0x1a56)]['id']=_0x2eda9a[_0x5ed90b(0xd57)]['id'],_0x22ca8c();}function _0x3b1eb1(){const _0x30ce3f=_0x48bb92,_0x345e87=_0x2eda9a[_0x30ce3f(0xd57)]['channel']+_0x2eda9a[_0x30ce3f(0xd57)][_0x30ce3f(0x2894)]==='chat'?_0x30ce3f(0x1444):_0x30ce3f(0x1164),_0xa38dac=_0x2eda9a['trigger'][_0x30ce3f(0x2894)]+(_0x2eda9a[_0x30ce3f(0xd57)][_0x30ce3f(0x2894)]===_0x30ce3f(0xa7f)?'Website':_0x30ce3f(0xb48));let _0x58e9d4;switch(_0x2eda9a[_0x30ce3f(0xd57)][_0x30ce3f(0x2894)]){case _0x30ce3f(0xa7f):_0x58e9d4=0x1f6;break;case'fax':_0x58e9d4=0x386;break;case _0x30ce3f(0x56b):_0x58e9d4=0x25a;break;case _0x30ce3f(0x7d9):_0x58e9d4=0x322;break;case _0x30ce3f(0x929):_0x58e9d4=0x2be;break;case _0x30ce3f(0xff9):_0x58e9d4=0x836;break;}if(_0x1fbef6[_0x30ce3f(0x13ff)]()){const _0x4b63d0=_0x2eda9a[_0x30ce3f(0xd57)][_0x30ce3f(0x2894)];_0x5e95ee[_0xa38dac][_0x30ce3f(0x16b4)]({'fields':_0x30ce3f(0x7a7),'sort':'id','nolimit':_0x30ce3f(0x1185)})[_0x30ce3f(0x2945)]['then'](function(_0x37e30a){const _0x59563b=_0x30ce3f;_0x2eda9a[_0x345e87]=_0x37e30a[_0x59563b(0x19c7)]||[];})[_0x30ce3f(0x129e)](function(_0x26c841){const _0x765c5f=_0x30ce3f;_0x548ed0[_0x765c5f(0x1980)]({'title':_0x26c841[_0x765c5f(0x107b)]?_0x765c5f(0x262a)+_0x26c841[_0x765c5f(0x107b)]+'\x20-\x20'+_0x26c841[_0x765c5f(0x167f)]:'SYSTEM:GET_'+_0x4b63d0[_0x765c5f(0x1c37)]()+_0x4b63d0===_0x765c5f(0xa7f)?'WEBSITES':'ACCOUNTS','msg':_0x26c841[_0x765c5f(0x524)]?JSON[_0x765c5f(0x10bb)](_0x26c841['data']):_0x26c841[_0x765c5f(0xd5f)]()});});}else{const _0x5abe42=_0x2eda9a[_0x30ce3f(0xd57)][_0x30ce3f(0x2894)];_0x5e95ee[_0xa38dac][_0x30ce3f(0x16b4)]({'fields':'id,name','sort':'id','nolimit':_0x30ce3f(0x1185)})['$promise'][_0x30ce3f(0x146b)](function(_0x337b4b){_0x2eda9a[_0x345e87]=_0x337b4b['rows']||[];})[_0x30ce3f(0x146b)](function(){const _0x32ab23=_0x30ce3f;return _0x5e95ee[_0x32ab23(0x1366)][_0x32ab23(0x16b4)]({'userProfileId':_0x2eda9a[_0x32ab23(0x2321)][_0x32ab23(0x209a)],'sectionId':_0x58e9d4})['$promise'];})[_0x30ce3f(0x146b)](function(_0x1ac0a3){const _0x3821aa=_0x30ce3f,_0x263141=_0x1ac0a3&&_0x1ac0a3['rows']?_0x1ac0a3['rows'][0x0]:null;if(!_0x263141){const _0x4752f7=[],_0x407cf8=[];_0x2eda9a[_0x3821aa(0x393)][_0x3821aa(0x19c7)][_0x3821aa(0x1df5)](function(_0xdde1a2){const _0x3747fa=_0x3821aa;if(_0xdde1a2[_0x3747fa(0x65c)]==='account'){const _0x16cc79=_0x3f65c0()[_0x3747fa(0xc84)](_0x2eda9a[_0x345e87],{'id':Number(_0xdde1a2[_0x3747fa(0x175d)])});_0x407cf8[_0x3747fa(0x1f47)](_0x16cc79);}});for(let _0x4f4a80=0x0;_0x4f4a80<_0x2eda9a[_0x345e87]['length'];_0x4f4a80++){const _0x493f7e=_0x3f65c0()[_0x3821aa(0x1360)](_0x407cf8,{'id':_0x2eda9a[_0x345e87][_0x4f4a80]['id']});_0x493f7e&&(_0x2eda9a[_0x345e87][_0x4f4a80][_0x3821aa(0x8ff)]=![],_0x4752f7[_0x3821aa(0x1f47)](_0x2eda9a[_0x345e87][_0x4f4a80]));}_0x2eda9a[_0x345e87]=_0x4752f7;}else{if(!_0x263141[_0x3821aa(0x11d2)])return _0x5e95ee[_0x3821aa(0xdcc)]['get']({'sectionId':_0x263141['id']})[_0x3821aa(0x2945)][_0x3821aa(0x146b)](function(_0x1e1064){const _0x21c92b=_0x3821aa,_0x1ed5d2=_0x3f65c0()[_0x21c92b(0x205)](_0x1e1064['rows'],function(_0x5321d6){const _0x3c4fc7=_0x21c92b;return _0x3f65c0()[_0x3c4fc7(0xc84)](_0x2eda9a[_0x345e87],{'id':_0x5321d6[_0x3c4fc7(0x18b8)]});});let _0x24faf0=null;_0x24faf0=[],_0x2eda9a[_0x21c92b(0x393)][_0x21c92b(0x19c7)][_0x21c92b(0x1df5)](function(_0x3efae5){const _0x2a5715=_0x21c92b;if(_0x3efae5[_0x2a5715(0x65c)]===_0x2a5715(0x1f8e)){const _0x414cb5=_0x3f65c0()[_0x2a5715(0xc84)](_0x2eda9a[_0x345e87],{'id':Number(_0x3efae5['value'])});_0x24faf0[_0x2a5715(0x1f47)](_0x414cb5);}}),!_0x3f65c0()[_0x21c92b(0x2635)](_0x24faf0)&&_0x24faf0[_0x21c92b(0x1df5)](function(_0x3cdb90){const _0x3c4ecc=_0x21c92b;if(!_0x3f65c0()[_0x3c4ecc(0x1360)](_0x1ed5d2,['id',_0x3cdb90['id']])){const _0x541f38=_0x3f65c0()[_0x3c4ecc(0xc84)](_0x2eda9a[_0x345e87],{'id':_0x3cdb90['id']});_0x541f38[_0x3c4ecc(0x8ff)]=![],_0x1ed5d2[_0x3c4ecc(0x1f47)](_0x541f38);}}),_0x2eda9a[_0x345e87]=_0x1ed5d2;});}})['catch'](function(_0x2fc037){const _0x17fae5=_0x30ce3f;_0x548ed0['error']({'title':_0x2fc037[_0x17fae5(0x107b)]?_0x17fae5(0x262a)+_0x2fc037[_0x17fae5(0x107b)]+_0x17fae5(0x1315)+_0x2fc037[_0x17fae5(0x167f)]:_0x17fae5(0x290e)+_0x5abe42[_0x17fae5(0x1c37)]()+_0x5abe42===_0x17fae5(0xa7f)?_0x17fae5(0x1256):_0x17fae5(0x78e),'msg':_0x2fc037[_0x17fae5(0x524)]?JSON[_0x17fae5(0x10bb)](_0x2fc037['data']):_0x2fc037[_0x17fae5(0xd5f)]()});});}}function _0x5d87eb(){const _0x4321a8=_0x48bb92,_0x5f5405=[{'id':0x191,'type':_0x4321a8(0x7b0)},{'id':0x5dd,'type':_0x4321a8(0xc9c)}];let _0x5a0060=null;_0x1fbef6[_0x4321a8(0x13ff)]()?_0x5e95ee[_0x4321a8(0x1446)]['get']({'fields':'id,name,type','sort':'name','nolimit':_0x4321a8(0x1185)})['$promise']['then'](function(_0x451c65){const _0x2fbfae=_0x4321a8;_0x2eda9a[_0x2fbfae(0x1b32)]=_0x451c65[_0x2fbfae(0x19c7)]||[];})[_0x4321a8(0x129e)](function(_0x1d85ee){const _0x501d7d=_0x4321a8;_0x548ed0['error']({'title':_0x1d85ee[_0x501d7d(0x107b)]?_0x501d7d(0x262a)+_0x1d85ee[_0x501d7d(0x107b)]+_0x501d7d(0x1315)+_0x1d85ee[_0x501d7d(0x167f)]:_0x501d7d(0x12cf),'msg':_0x1d85ee[_0x501d7d(0x524)]?JSON['stringify'](_0x1d85ee[_0x501d7d(0x524)]):_0x1d85ee[_0x501d7d(0xd5f)]()});}):_0x5e95ee[_0x4321a8(0x1446)][_0x4321a8(0x16b4)]({'fields':_0x4321a8(0x45e),'sort':'name','nolimit':_0x4321a8(0x1185)})['$promise']['then'](function(_0x3fd4ae){const _0x4047f2=_0x4321a8;_0x5a0060=_0x3fd4ae[_0x4047f2(0x19c7)]||[];})['then'](function(){const _0x110f68=_0x4321a8,_0x1af55a=[];for(let _0x488a8c=0x0;_0x488a8c<_0x5f5405['length'];_0x488a8c++){_0x1af55a['push'](_0x5e95ee[_0x110f68(0x1366)]['get']({'userProfileId':_0x2eda9a[_0x110f68(0x2321)]['userProfileId'],'sectionId':_0x5f5405[_0x488a8c]['id']})[_0x110f68(0x2945)]);}return _0x2249d7[_0x110f68(0x1be2)](_0x1af55a);})[_0x4321a8(0x146b)](function(_0x172e31){const _0x1560e7=_0x4321a8,_0x34d5ed=_0x3f65c0()[_0x1560e7(0x205)](_0x172e31,function(_0x427e4c){const _0xc81229=_0x1560e7;return _0x427e4c&&_0x427e4c[_0xc81229(0x19c7)]?_0x427e4c['rows'][0x0]:null;}),_0x493bb2=[];for(let _0x2118c9=0x0;_0x2118c9<_0x5f5405['length'];_0x2118c9++){const _0x1a387f=_0x3f65c0()[_0x1560e7(0xc84)](_0x34d5ed,['sectionId',_0x5f5405[_0x2118c9]['id']]);if(_0x1a387f){if(!_0x1a387f[_0x1560e7(0x11d2)])_0x493bb2['push'](_0x5e95ee[_0x1560e7(0xdcc)][_0x1560e7(0x16b4)]({'sectionId':_0x1a387f['id']})[_0x1560e7(0x2945)]);else{const _0x383c4f=[];_0x5a0060[_0x1560e7(0x1df5)](function(_0x55d7dc){const _0xb5ca2f=_0x1560e7;_0x55d7dc['type']===_0x5f5405[_0x2118c9][_0xb5ca2f(0x1142)]&&_0x383c4f['push'](_0x55d7dc);}),_0x493bb2[_0x1560e7(0x1f47)]({'rows':_0x383c4f,'count':_0x383c4f['length']});}}}return _0x2249d7[_0x1560e7(0x1be2)](_0x493bb2);})[_0x4321a8(0x146b)](function(_0x171965){const _0x4975fa=_0x4321a8,_0x20ce07=[],_0x3a3251=[];_0x2eda9a[_0x4975fa(0x393)]['rows']['forEach'](function(_0x48af0e){const _0x51a8d4=_0x4975fa;if(_0x48af0e[_0x51a8d4(0x65c)]===_0x51a8d4(0x1c72)){const _0x5dcdcb=_0x3f65c0()['find'](_0x5a0060,{'name':_0x48af0e[_0x51a8d4(0x175d)]});_0x3a3251[_0x51a8d4(0x1f47)](_0x5dcdcb);}});for(let _0x143884=0x0;_0x143884<_0x171965[_0x4975fa(0x402)];_0x143884++){const _0x3c9e1f=_0x171965[_0x143884][_0x4975fa(0x19c7)]||[];_0x3c9e1f[_0x4975fa(0x1df5)](function(_0x30dc0f){const _0x55953d=_0x4975fa;_0x20ce07[_0x55953d(0x1f47)](_0x30dc0f);});}!_0x3f65c0()[_0x4975fa(0x2635)](_0x3a3251)&&_0x3a3251['forEach'](function(_0x9e96cb){const _0xd59853=_0x4975fa;if(!_0x3f65c0()[_0xd59853(0x1360)](_0x20ce07,['resourceId',_0x9e96cb['id']])){const _0x1f509a=_0x3f65c0()[_0xd59853(0xc84)](_0x5a0060,{'id':_0x9e96cb['id']});_0x1f509a['canSelect']=![],_0x20ce07[_0xd59853(0x1f47)](_0x1f509a);}}),_0x2eda9a[_0x4975fa(0x1b32)]=_0x20ce07;})[_0x4321a8(0x129e)](function(_0x3e6b9a){const _0x2f2753=_0x4321a8;_0x548ed0[_0x2f2753(0x1980)]({'title':_0x3e6b9a['status']?_0x2f2753(0x262a)+_0x3e6b9a[_0x2f2753(0x107b)]+_0x2f2753(0x1315)+_0x3e6b9a[_0x2f2753(0x167f)]:_0x2f2753(0x22d8),'msg':_0x3e6b9a[_0x2f2753(0x524)]?JSON['stringify'](_0x3e6b9a[_0x2f2753(0x524)]):_0x3e6b9a[_0x2f2753(0xd5f)]()});});}function _0x556d70(){const _0x48b2a0=_0x48bb92;_0x1fbef6['isAdmin']()?_0x5e95ee[_0x48b2a0(0xd47)][_0x48b2a0(0x16b4)]({'fields':_0x48b2a0(0xd36),'type':_0x48b2a0(0xc9c),'VoiceExtensionId':'null','nolimit':_0x48b2a0(0x1185)})['$promise'][_0x48b2a0(0x146b)](function(_0x19ab66){const _0x238af1=_0x48b2a0;_0x2eda9a[_0x238af1(0x966)]=_0x19ab66[_0x238af1(0x19c7)]||[];})[_0x48b2a0(0x129e)](function(_0x514f1d){const _0x489a7d=_0x48b2a0;_0x548ed0[_0x489a7d(0x1980)]({'title':_0x514f1d[_0x489a7d(0x107b)]?_0x489a7d(0x262a)+_0x514f1d[_0x489a7d(0x107b)]+'\x20-\x20'+_0x514f1d['statusText']:_0x489a7d(0x104f),'msg':_0x514f1d[_0x489a7d(0x524)]?JSON['stringify'](_0x514f1d[_0x489a7d(0x524)]):_0x514f1d['toString']()});}):_0x5e95ee[_0x48b2a0(0xd47)][_0x48b2a0(0x16b4)]({'fields':_0x48b2a0(0xd36),'type':'outbound','VoiceExtensionId':_0x48b2a0(0x203c),'nolimit':_0x48b2a0(0x1185)})[_0x48b2a0(0x2945)][_0x48b2a0(0x146b)](function(_0x4deb55){const _0x7268a7=_0x48b2a0;_0x2eda9a[_0x7268a7(0x966)]=_0x4deb55[_0x7268a7(0x19c7)]||[];})['then'](function(){const _0x7bdadb=_0x48b2a0;return _0x5e95ee[_0x7bdadb(0x1366)][_0x7bdadb(0x16b4)]({'userProfileId':_0x2eda9a[_0x7bdadb(0x2321)][_0x7bdadb(0x209a)],'sectionId':0x193})[_0x7bdadb(0x2945)];})['then'](function(_0x389aa3){const _0x56ad44=_0x48b2a0,_0x36c28f=_0x389aa3&&_0x389aa3[_0x56ad44(0x19c7)]?_0x389aa3[_0x56ad44(0x19c7)][0x0]:null;if(!_0x36c28f){const _0x1ee582=[],_0x40be78=[];_0x2eda9a[_0x56ad44(0x393)][_0x56ad44(0x19c7)][_0x56ad44(0x1df5)](function(_0x3defe4){const _0x4fb8da=_0x56ad44;if(_0x3defe4['field']==='routeId'){const _0x3b204f=_0x3f65c0()[_0x4fb8da(0xc84)](_0x2eda9a[_0x4fb8da(0x966)],{'id':Number(_0x3defe4['value'])});_0x40be78['push'](_0x3b204f);}});for(let _0x58ceba=0x0;_0x58ceba<_0x2eda9a[_0x56ad44(0x966)]['length'];_0x58ceba++){const _0x255fef=_0x3f65c0()['some'](_0x40be78,{'id':_0x2eda9a[_0x56ad44(0x966)][_0x58ceba]['id']});_0x255fef&&(_0x2eda9a[_0x56ad44(0x966)][_0x58ceba][_0x56ad44(0x8ff)]=![],_0x1ee582['push'](_0x2eda9a[_0x56ad44(0x966)][_0x58ceba]));}_0x2eda9a[_0x56ad44(0x966)]=_0x1ee582;}else{if(!_0x36c28f[_0x56ad44(0x11d2)])return _0x5e95ee[_0x56ad44(0xdcc)][_0x56ad44(0x16b4)]({'sectionId':_0x36c28f['id']})[_0x56ad44(0x2945)]['then'](function(_0x13221e){const _0x135aa6=_0x56ad44,_0x1fddf0=_0x3f65c0()[_0x135aa6(0x205)](_0x13221e[_0x135aa6(0x19c7)],function(_0x343a08){const _0x14218a=_0x135aa6;return _0x3f65c0()[_0x14218a(0xc84)](_0x2eda9a[_0x14218a(0x966)],{'id':_0x343a08[_0x14218a(0x18b8)]});});let _0x56bf13=null;_0x56bf13=[],_0x2eda9a[_0x135aa6(0x393)][_0x135aa6(0x19c7)][_0x135aa6(0x1df5)](function(_0x2526ab){const _0x2d2c75=_0x135aa6;if(_0x2526ab[_0x2d2c75(0x65c)]===_0x2d2c75(0x27c7)){const _0x5398a8=_0x3f65c0()[_0x2d2c75(0xc84)](_0x2eda9a['outboundRoutes'],{'id':Number(_0x2526ab[_0x2d2c75(0x175d)])});_0x56bf13['push'](_0x5398a8);}}),!_0x3f65c0()[_0x135aa6(0x2635)](_0x56bf13)&&_0x56bf13['forEach'](function(_0x125413){const _0x2bfee7=_0x135aa6;if(!_0x3f65c0()[_0x2bfee7(0x1360)](_0x1fddf0,['id',_0x125413['id']])){const _0x54c47d=_0x3f65c0()[_0x2bfee7(0xc84)](_0x2eda9a[_0x2bfee7(0x966)],{'id':_0x125413['id']});_0x54c47d[_0x2bfee7(0x8ff)]=![],_0x1fddf0[_0x2bfee7(0x1f47)](_0x54c47d);}}),_0x2eda9a[_0x135aa6(0x966)]=_0x1fddf0;});}})[_0x48b2a0(0x129e)](function(_0x2f1e19){const _0x10ca60=_0x48b2a0;_0x548ed0[_0x10ca60(0x1980)]({'title':_0x2f1e19[_0x10ca60(0x107b)]?_0x10ca60(0x262a)+_0x2f1e19['status']+'\x20-\x20'+_0x2f1e19['statusText']:_0x10ca60(0x104f),'msg':_0x2f1e19[_0x10ca60(0x524)]?JSON[_0x10ca60(0x10bb)](_0x2f1e19[_0x10ca60(0x524)]):_0x2f1e19[_0x10ca60(0xd5f)]()});});}function _0x1f9e66(){const _0x191cb2=_0x48bb92;_0x1fbef6[_0x191cb2(0x13ff)]()?_0x5e95ee[_0x191cb2(0xe7b)]['get']({'fields':_0x191cb2(0x12bf),'sort':_0x191cb2(0x19eb),'role':_0x191cb2(0x1755),'nolimit':'true'})[_0x191cb2(0x2945)][_0x191cb2(0x146b)](function(_0x275505){const _0x4df3f6=_0x191cb2;_0x2eda9a[_0x4df3f6(0x23c0)]=_0x275505['rows']||[];})[_0x191cb2(0x129e)](function(_0x12f08c){const _0x2505f1=_0x191cb2;_0x548ed0[_0x2505f1(0x1980)]({'title':_0x12f08c[_0x2505f1(0x107b)]?_0x2505f1(0x262a)+_0x12f08c[_0x2505f1(0x107b)]+_0x2505f1(0x1315)+_0x12f08c[_0x2505f1(0x167f)]:_0x2505f1(0x557),'msg':_0x12f08c[_0x2505f1(0x524)]?JSON[_0x2505f1(0x10bb)](_0x12f08c[_0x2505f1(0x524)]):_0x12f08c[_0x2505f1(0xd5f)]()});}):_0x5e95ee['user'][_0x191cb2(0x16b4)]({'fields':'id,name,fullname','sort':_0x191cb2(0x19eb),'role':_0x191cb2(0x1755),'nolimit':_0x191cb2(0x1185)})[_0x191cb2(0x2945)]['then'](function(_0x1d1095){const _0x137f09=_0x191cb2;_0x2eda9a['agents']=_0x1d1095[_0x137f09(0x19c7)]||[];})[_0x191cb2(0x146b)](function(){const _0x369b1a=_0x191cb2;return _0x5e95ee[_0x369b1a(0x1366)][_0x369b1a(0x16b4)]({'userProfileId':_0x2eda9a['currentUser'][_0x369b1a(0x209a)],'sectionId':0xca})[_0x369b1a(0x2945)];})[_0x191cb2(0x146b)](function(_0x678357){const _0x474abd=_0x191cb2,_0x471918=_0x678357&&_0x678357[_0x474abd(0x19c7)]?_0x678357[_0x474abd(0x19c7)][0x0]:null;if(!_0x471918){const _0x2ed1e4=[],_0x25339c=[];_0x2eda9a[_0x474abd(0x393)][_0x474abd(0x19c7)][_0x474abd(0x1df5)](function(_0x5efc0e){const _0x405581=_0x474abd;if(_0x5efc0e[_0x405581(0x65c)]===_0x405581(0x1755)){const _0x29a632=_0x3f65c0()[_0x405581(0xc84)](_0x2eda9a[_0x405581(0x23c0)],{'name':_0x5efc0e[_0x405581(0x175d)]});_0x25339c[_0x405581(0x1f47)](_0x29a632);}});for(let _0x5e3fc6=0x0;_0x5e3fc6<_0x2eda9a[_0x474abd(0x23c0)][_0x474abd(0x402)];_0x5e3fc6++){const _0x136647=_0x3f65c0()[_0x474abd(0x1360)](_0x25339c,{'id':_0x2eda9a[_0x474abd(0x23c0)][_0x5e3fc6]['id']});_0x136647&&(_0x2eda9a[_0x474abd(0x23c0)][_0x5e3fc6][_0x474abd(0x8ff)]=![],_0x2ed1e4[_0x474abd(0x1f47)](_0x2eda9a[_0x474abd(0x23c0)][_0x5e3fc6]));}_0x2eda9a[_0x474abd(0x23c0)]=_0x2ed1e4;}else{if(!_0x471918[_0x474abd(0x11d2)])return _0x5e95ee[_0x474abd(0xdcc)]['get']({'sectionId':_0x471918['id']})[_0x474abd(0x2945)][_0x474abd(0x146b)](function(_0xad8768){const _0x32729d=_0x474abd,_0x35575f=_0x3f65c0()[_0x32729d(0x205)](_0xad8768['rows'],function(_0xe9bab3){const _0x46a8b6=_0x32729d;return _0x3f65c0()['find'](_0x2eda9a['agents'],{'id':_0xe9bab3[_0x46a8b6(0x18b8)]});});let _0x25e917=null;_0x25e917=[],_0x2eda9a[_0x32729d(0x393)][_0x32729d(0x19c7)][_0x32729d(0x1df5)](function(_0x5482b9){const _0xf739e0=_0x32729d;if(_0x5482b9[_0xf739e0(0x65c)]==='agent'){const _0x1b04ea=_0x3f65c0()[_0xf739e0(0xc84)](_0x2eda9a['agents'],{'name':_0x5482b9[_0xf739e0(0x175d)]});_0x25e917[_0xf739e0(0x1f47)](_0x1b04ea);}}),!_0x3f65c0()['isEmpty'](_0x25e917)&&_0x25e917[_0x32729d(0x1df5)](function(_0x339dab){const _0x2cad50=_0x32729d;if(!_0x3f65c0()['some'](_0x35575f,['id',_0x339dab['id']])){const _0x37f118=_0x3f65c0()[_0x2cad50(0xc84)](_0x2eda9a[_0x2cad50(0x23c0)],{'id':_0x339dab['id']});_0x37f118['canSelect']=![],_0x35575f['push'](_0x37f118);}}),_0x2eda9a['agents']=_0x35575f;});}})['catch'](function(_0x71399e){const _0x4a77ef=_0x191cb2;_0x548ed0[_0x4a77ef(0x1980)]({'title':_0x71399e[_0x4a77ef(0x107b)]?_0x4a77ef(0x262a)+_0x71399e['status']+_0x4a77ef(0x1315)+_0x71399e[_0x4a77ef(0x167f)]:_0x4a77ef(0x557),'msg':_0x71399e[_0x4a77ef(0x524)]?JSON[_0x4a77ef(0x10bb)](_0x71399e['data']):_0x71399e['toString']()});});}function _0x1dd31a(){const _0x452c9d=_0x48bb92;if(_0x2eda9a[_0x452c9d(0xd57)][_0x452c9d(0x2894)]===_0x452c9d(0xe6)){if(_0x3f65c0()[_0x452c9d(0x1360)](_0x2eda9a['triggerAnyConditions'][_0x452c9d(0x19c7)],[_0x452c9d(0x65c),_0x452c9d(0x1c72)])){if(!_0x2eda9a[_0x452c9d(0x1b32)])_0x5d87eb();}if(_0x3f65c0()['some'](_0x2eda9a[_0x452c9d(0x393)][_0x452c9d(0x19c7)],['field',_0x452c9d(0x27c7)])){if(!_0x2eda9a[_0x452c9d(0x966)])_0x556d70();}if(_0x3f65c0()['some'](_0x2eda9a[_0x452c9d(0x393)][_0x452c9d(0x19c7)],[_0x452c9d(0x65c),'agent'])){if(!_0x2eda9a[_0x452c9d(0x23c0)])_0x1f9e66();}}else _0x3b1eb1();}function _0x274b30(_0xce3f8e){const _0x411c73=_0x48bb92;_0x2eda9a[_0x411c73(0x393)]=_0xce3f8e||{'count':0x0,'rows':[]},_0x1dd31a();}function _0x22ca8c(){const _0x50c1ef=_0x48bb92;_0x2eda9a[_0x50c1ef(0x1a56)][_0x50c1ef(0x145d)]=(_0x2eda9a['query'][_0x50c1ef(0x844)]-0x1)*_0x2eda9a[_0x50c1ef(0x1a56)][_0x50c1ef(0x221e)],_0x2eda9a[_0x50c1ef(0xb9c)]=_0x5e95ee[_0x50c1ef(0xd57)][_0x50c1ef(0x2b6)](_0x2eda9a[_0x50c1ef(0x1a56)],_0x274b30)['$promise'];}function _0x55411e(_0x153f37,_0xd8591c){const _0x213aec=_0x48bb92;_0x1e89da[_0x213aec(0x2615)]({'controller':_0x213aec(0x210d),'controllerAs':'vm','templateUrl':_0x2b8b10,'parent':angular[_0x213aec(0x1853)](_0x525dd7[_0x213aec(0x2586)]),'targetEvent':_0x153f37,'clickOutsideToClose':!![],'locals':{'trigger':_0x2eda9a[_0x213aec(0xd57)],'anyCondition':_0xd8591c,'anyConditions':_0x2eda9a['triggerAnyConditions'][_0x213aec(0x19c7)],'license':null,'setting':null,'crudPermissions':_0x2eda9a[_0x213aec(0x2514)]}})['then'](function(_0x2f530d){const _0x275fa7=_0x213aec;_0x2f530d&&(_0x2eda9a[_0x275fa7(0x393)]={'count':_0x2f530d['length'],'rows':_0x2f530d},_0x1dd31a());});}function _0x434b51(_0x5e6c19,_0x1bc73b){const _0x16d5ea=_0x48bb92,_0x366cad=_0x1e89da[_0x16d5ea(0x1e8a)]()[_0x16d5ea(0x1189)](_0x1d5afb[_0x16d5ea(0xde)](_0x16d5ea(0x1473)))[_0x16d5ea(0x4bd)](_0x16d5ea(0x2555))[_0x16d5ea(0x1f27)](_0x1bc73b)['ok']('OK')['cancel'](_0x1d5afb[_0x16d5ea(0xde)](_0x16d5ea(0x1161)));_0x1e89da[_0x16d5ea(0x2615)](_0x366cad)['then'](function(){_0x1f4152(_0x5e6c19,!![]);});}function _0x1f4152(_0x130e78,_0xd44c1f){const _0x24ad5e=_0x48bb92;_0x5e95ee[_0x24ad5e(0x115f)][_0x24ad5e(0x1fac)]({'id':_0x130e78['id']})[_0x24ad5e(0x2945)][_0x24ad5e(0x146b)](function(){const _0xd73a52=_0x24ad5e;_0x22ca8c(),_0xd44c1f&&_0x548ed0[_0xd73a52(0x1c75)]({'title':_0x1d5afb[_0xd73a52(0xde)]('TOOLS.NOTIFICATIONS.CONDITION_DELETED_SUCCESS_TITLE')});})[_0x24ad5e(0x129e)](function(_0x4abf43){const _0x1e0307=_0x24ad5e;if(_0x4abf43[_0x1e0307(0x524)]&&_0x4abf43[_0x1e0307(0x524)][_0x1e0307(0xcef)]&&_0x4abf43[_0x1e0307(0x524)][_0x1e0307(0xcef)][_0x1e0307(0x402)]){_0x2eda9a[_0x1e0307(0xcef)]=_0x4abf43[_0x1e0307(0x524)]['errors']||[{'message':_0x4abf43[_0x1e0307(0xd5f)](),'type':_0x1e0307(0x2593)}];for(let _0x1605d3=0x0;_0x1605d3<_0x4abf43[_0x1e0307(0x524)]['errors']['length'];_0x1605d3++){_0x548ed0[_0x1e0307(0x1980)]({'title':_0x4abf43[_0x1e0307(0x524)][_0x1e0307(0xcef)][_0x1605d3]['type'],'msg':_0x4abf43[_0x1e0307(0x524)]['errors'][_0x1605d3][_0x1e0307(0x7fd)]});}}else _0x548ed0[_0x1e0307(0x1980)]({'title':_0x4abf43[_0x1e0307(0x107b)]?'API:'+_0x4abf43['status']+_0x1e0307(0x1315)+_0x4abf43[_0x1e0307(0x167f)]:'SYSTEM:GETtrigger','msg':_0x4abf43[_0x1e0307(0x524)]?JSON[_0x1e0307(0x10bb)](_0x4abf43[_0x1e0307(0x524)][_0x1e0307(0x7fd)]):_0x4abf43[_0x1e0307(0x7fd)]||_0x4abf43[_0x1e0307(0xd5f)]()});});}function _0x5037d9(){const _0x1c164e=_0x48bb92,_0x4b68a4=angular[_0x1c164e(0x235a)](_0x2eda9a[_0x1c164e(0x8ed)]);return _0x2eda9a[_0x1c164e(0x8ed)]=[],_0x4b68a4;}function _0x24f469(_0x49dd38){const _0x57e13f=_0x48bb92,_0x6db662=_0x1e89da['confirm']()[_0x57e13f(0x1189)](_0x1d5afb['instant']('TOOLS.NOTIFICATIONS.CONDITIONS_DELETE_TITLE'))[_0x57e13f(0x80f)](_0x1d5afb['instant'](_0x57e13f(0x885),{'total':_0x2eda9a[_0x57e13f(0x8ed)][_0x57e13f(0x402)]}))['ariaLabel'](_0x57e13f(0x1bef))[_0x57e13f(0x1f27)](_0x49dd38)['ok']('OK')[_0x57e13f(0x6c3)](_0x1d5afb[_0x57e13f(0xde)]('APP.CANCEL'));_0x1e89da['show'](_0x6db662)[_0x57e13f(0x146b)](function(){const _0x536d95=_0x57e13f;_0x2eda9a['selectedTriggerAnyConditions'][_0x536d95(0x1df5)](function(_0xc139a){_0x1f4152(_0xc139a);}),_0x2eda9a['selectedTriggerAnyConditions']=[],_0x548ed0[_0x536d95(0x1c75)]({'title':_0x1d5afb['instant'](_0x536d95(0x249c))});});}let _0x1796d0=!![],_0xdd620b=0x1;_0x248def[_0x48bb92(0x21e8)](_0x48bb92(0x117f),function(_0x4f3854,_0x44b073){const _0x211e1d=_0x48bb92;_0x1796d0?_0x3f07f4(function(){_0x1796d0=![];}):(!_0x44b073&&(_0xdd620b=_0x2eda9a['query'][_0x211e1d(0x844)]),_0x4f3854!==_0x44b073&&(_0x2eda9a['query'][_0x211e1d(0x844)]=0x1),!_0x4f3854&&(_0x2eda9a['query'][_0x211e1d(0x844)]=_0xdd620b),_0x22ca8c());});}const _0x5b2b53=_0x5b68fe;;_0x128f44[_0x313a4d(0x11c2)]=[_0x313a4d(0x1862),_0x313a4d(0x10e8),'$q',_0x313a4d(0x214b),'toasty',_0x313a4d(0x6bc),_0x313a4d(0x20e6),'trigger',_0x313a4d(0x247f),_0x313a4d(0xa87),_0x313a4d(0x2690),_0x313a4d(0x15b9),_0x313a4d(0x2514)];function _0x128f44(_0x3936d2,_0x45bded,_0x3052d5,_0x45521d,_0x470084,_0x2757d8,_0x2b0033,_0x3a8dfd,_0x1ee6ef,_0x51e155,_0x32d2d6,_0x3acbbd,_0xb12678){const _0x3cc884=_0x313a4d,_0x518ca9=this;_0x518ca9[_0x3cc884(0x2321)]=_0x51e155[_0x3cc884(0xb12)](),_0x518ca9['allCondition']=angular[_0x3cc884(0x235a)](_0x2b0033),_0x518ca9['allConditions']=angular[_0x3cc884(0x235a)](_0x2757d8),_0x518ca9[_0x3cc884(0x15b9)]=_0x3acbbd,_0x518ca9[_0x3cc884(0x2690)]=_0x32d2d6,_0x518ca9['crudPermissions']=_0xb12678,_0x518ca9[_0x3cc884(0x855)]={},_0x518ca9['newAllCondition']=![],_0x518ca9[_0x3cc884(0xcef)]=[],_0x518ca9[_0x3cc884(0xd57)]=angular[_0x3cc884(0x235a)](_0x3a8dfd);!_0x518ca9['allCondition']?(_0x518ca9[_0x3cc884(0x20e6)]={'operator':'equals'},_0x518ca9[_0x3cc884(0x689)]=!![]):_0x5d3822();_0x518ca9[_0x3cc884(0x20e6)][_0x3cc884(0x34b)]=_0x3936d2[_0x3cc884(0x16a)]['id']||undefined,_0x518ca9[_0x3cc884(0x147)]=[{'name':'Abandon','value':_0x3cc884(0x521)},{'name':_0x3cc884(0x5cc),'value':'timeout'},{'name':_0x3cc884(0x2626),'value':'complete'},{'name':_0x3cc884(0x257d),'value':'rejected'},{'name':_0x3cc884(0x218f),'value':'called'},{'name':_0x3cc884(0x21c0),'value':_0x3cc884(0x2e3)},{'name':_0x3cc884(0x1961),'value':_0x3cc884(0x290f)},{'name':_0x3cc884(0x22ae),'value':'busy'},{'name':_0x3cc884(0xcf6),'value':_0x3cc884(0x221)},{'name':_0x3cc884(0x18a3),'value':'congestion'},{'name':'AgentReject','value':_0x3cc884(0x18c0)}],_0x518ca9[_0x3cc884(0x9cb)]=_0xe72766,_0x518ca9[_0x3cc884(0x28b9)]=_0x16fceb,_0x518ca9['saveAllCondition']=_0x2b9b24,_0x518ca9[_0x3cc884(0x2226)]=_0x48e344,_0x518ca9[_0x3cc884(0x13f3)]=_0x126c49;function _0x1f07c6(){const _0x2818b2=_0x3cc884,_0x5a23bd=[{'id':0x191,'type':_0x2818b2(0x7b0)},{'id':0x5dd,'type':_0x2818b2(0xc9c)}];let _0x239b6f=null;_0x51e155['isAdmin']()?_0x1ee6ef['voiceQueue'][_0x2818b2(0x16b4)]({'fields':_0x2818b2(0x45e),'sort':_0x2818b2(0x19eb),'nolimit':_0x2818b2(0x1185)})[_0x2818b2(0x2945)][_0x2818b2(0x146b)](function(_0x1ba148){const _0x457a99=_0x2818b2;_0x518ca9[_0x457a99(0x1b32)]=_0x1ba148['rows']||[];})[_0x2818b2(0x129e)](function(_0x41e5ed){const _0x17187c=_0x2818b2;_0x470084[_0x17187c(0x1980)]({'title':_0x41e5ed[_0x17187c(0x107b)]?_0x17187c(0x262a)+_0x41e5ed[_0x17187c(0x107b)]+_0x17187c(0x1315)+_0x41e5ed[_0x17187c(0x167f)]:_0x17187c(0x12cf),'msg':_0x41e5ed[_0x17187c(0x524)]?JSON[_0x17187c(0x10bb)](_0x41e5ed[_0x17187c(0x524)]):_0x41e5ed[_0x17187c(0xd5f)]()});}):_0x1ee6ef[_0x2818b2(0x1446)]['get']({'fields':_0x2818b2(0x45e),'sort':_0x2818b2(0x19eb),'nolimit':_0x2818b2(0x1185)})[_0x2818b2(0x2945)][_0x2818b2(0x146b)](function(_0x3e53cb){const _0x456e7a=_0x2818b2;_0x239b6f=_0x3e53cb[_0x456e7a(0x19c7)]||[];})['then'](function(){const _0x3a640c=_0x2818b2,_0x49e16c=[];for(let _0x37188a=0x0;_0x37188a<_0x5a23bd[_0x3a640c(0x402)];_0x37188a++){_0x49e16c[_0x3a640c(0x1f47)](_0x1ee6ef[_0x3a640c(0x1366)][_0x3a640c(0x16b4)]({'userProfileId':_0x518ca9[_0x3a640c(0x2321)][_0x3a640c(0x209a)],'sectionId':_0x5a23bd[_0x37188a]['id']})[_0x3a640c(0x2945)]);}return _0x3052d5['all'](_0x49e16c);})[_0x2818b2(0x146b)](function(_0x2ce6aa){const _0x4c7086=_0x2818b2,_0x10958e=_0x3f65c0()[_0x4c7086(0x205)](_0x2ce6aa,function(_0x32b1da){const _0x3a1343=_0x4c7086;return _0x32b1da&&_0x32b1da[_0x3a1343(0x19c7)]?_0x32b1da[_0x3a1343(0x19c7)][0x0]:null;}),_0x4cdbd6=[];for(let _0x201864=0x0;_0x201864<_0x5a23bd[_0x4c7086(0x402)];_0x201864++){const _0x1e9b3e=_0x3f65c0()[_0x4c7086(0xc84)](_0x10958e,[_0x4c7086(0x631),_0x5a23bd[_0x201864]['id']]);if(_0x1e9b3e){if(!_0x1e9b3e['autoAssociation'])_0x4cdbd6[_0x4c7086(0x1f47)](_0x1ee6ef[_0x4c7086(0xdcc)][_0x4c7086(0x16b4)]({'sectionId':_0x1e9b3e['id']})[_0x4c7086(0x2945)]);else{const _0x54d551=[];_0x239b6f[_0x4c7086(0x1df5)](function(_0x566b1e){const _0x5c8699=_0x4c7086;_0x566b1e['type']===_0x5a23bd[_0x201864][_0x5c8699(0x1142)]&&_0x54d551['push'](_0x566b1e);}),_0x4cdbd6['push']({'rows':_0x54d551,'count':_0x54d551['length']});}}}return _0x3052d5[_0x4c7086(0x1be2)](_0x4cdbd6);})[_0x2818b2(0x146b)](function(_0x59dadf){const _0x3aaae6=_0x2818b2,_0x34c380=[],_0x2162a5=[];_0x518ca9[_0x3aaae6(0x49a)][_0x3aaae6(0x19c7)][_0x3aaae6(0x1df5)](function(_0x15aae0){const _0x238b5e=_0x3aaae6;if(_0x15aae0['field']===_0x238b5e(0x1c72)){const _0x521c5b=_0x3f65c0()[_0x238b5e(0xc84)](_0x239b6f,{'name':_0x15aae0[_0x238b5e(0x175d)]});_0x2162a5[_0x238b5e(0x1f47)](_0x521c5b);}});for(let _0x3c6767=0x0;_0x3c6767<_0x59dadf[_0x3aaae6(0x402)];_0x3c6767++){const _0x5e93e9=_0x59dadf[_0x3c6767][_0x3aaae6(0x19c7)]||[];_0x5e93e9[_0x3aaae6(0x1df5)](function(_0x45ccff){const _0x15b243=_0x3aaae6;_0x34c380[_0x15b243(0x1f47)](_0x45ccff);});}!_0x3f65c0()[_0x3aaae6(0x2635)](_0x2162a5)&&_0x2162a5[_0x3aaae6(0x1df5)](function(_0x2e32a1){const _0x51c5a0=_0x3aaae6;if(!_0x3f65c0()['some'](_0x34c380,[_0x51c5a0(0x18b8),_0x2e32a1['id']])){const _0x129ea7=_0x3f65c0()[_0x51c5a0(0xc84)](_0x239b6f,{'id':_0x2e32a1['id']});_0x129ea7['canSelect']=![],_0x34c380[_0x51c5a0(0x1f47)](_0x129ea7);}}),_0x518ca9[_0x3aaae6(0x1b32)]=_0x34c380;})[_0x2818b2(0x129e)](function(_0x1bca50){const _0x4b1a50=_0x2818b2;_0x470084[_0x4b1a50(0x1980)]({'title':_0x1bca50[_0x4b1a50(0x107b)]?_0x4b1a50(0x262a)+_0x1bca50['status']+_0x4b1a50(0x1315)+_0x1bca50[_0x4b1a50(0x167f)]:_0x4b1a50(0x22d8),'msg':_0x1bca50[_0x4b1a50(0x524)]?JSON[_0x4b1a50(0x10bb)](_0x1bca50[_0x4b1a50(0x524)]):_0x1bca50[_0x4b1a50(0xd5f)]()});});}function _0x34b003(){const _0x235eea=_0x3cc884;_0x51e155[_0x235eea(0x13ff)]()?_0x1ee6ef['voiceExtension'][_0x235eea(0x16b4)]({'fields':_0x235eea(0xd36),'type':_0x235eea(0xc9c),'VoiceExtensionId':'null','nolimit':'true'})[_0x235eea(0x2945)][_0x235eea(0x146b)](function(_0x17726e){const _0x4b8550=_0x235eea;_0x518ca9[_0x4b8550(0x966)]=_0x17726e[_0x4b8550(0x19c7)]||[];})[_0x235eea(0x129e)](function(_0x12d0d3){const _0x514d54=_0x235eea;_0x470084[_0x514d54(0x1980)]({'title':_0x12d0d3[_0x514d54(0x107b)]?'API:'+_0x12d0d3[_0x514d54(0x107b)]+_0x514d54(0x1315)+_0x12d0d3[_0x514d54(0x167f)]:_0x514d54(0x104f),'msg':_0x12d0d3['data']?JSON['stringify'](_0x12d0d3[_0x514d54(0x524)]):_0x12d0d3[_0x514d54(0xd5f)]()});}):_0x1ee6ef[_0x235eea(0xd47)][_0x235eea(0x16b4)]({'fields':_0x235eea(0xd36),'type':_0x235eea(0xc9c),'VoiceExtensionId':'null','nolimit':'true'})[_0x235eea(0x2945)][_0x235eea(0x146b)](function(_0x227cbf){const _0x42edcf=_0x235eea;_0x518ca9['outboundRoutes']=_0x227cbf[_0x42edcf(0x19c7)]||[];})[_0x235eea(0x146b)](function(){const _0x318f2d=_0x235eea;return _0x1ee6ef[_0x318f2d(0x1366)][_0x318f2d(0x16b4)]({'userProfileId':_0x518ca9['currentUser'][_0x318f2d(0x209a)],'sectionId':0x193})['$promise'];})[_0x235eea(0x146b)](function(_0x47055d){const _0x58df9f=_0x235eea,_0x442c85=_0x47055d&&_0x47055d[_0x58df9f(0x19c7)]?_0x47055d[_0x58df9f(0x19c7)][0x0]:null;if(!_0x442c85){const _0x3b9590=[],_0x123eb7=[];_0x518ca9[_0x58df9f(0x49a)][_0x58df9f(0x19c7)]['forEach'](function(_0x55da52){const _0x4f56ba=_0x58df9f;if(_0x55da52[_0x4f56ba(0x65c)]===_0x4f56ba(0x27c7)){const _0x5a0376=_0x3f65c0()[_0x4f56ba(0xc84)](_0x518ca9[_0x4f56ba(0x966)],{'id':Number(_0x55da52[_0x4f56ba(0x175d)])});_0x123eb7['push'](_0x5a0376);}});for(let _0x5cc11f=0x0;_0x5cc11f<_0x518ca9[_0x58df9f(0x966)][_0x58df9f(0x402)];_0x5cc11f++){const _0x1fb81c=_0x3f65c0()['some'](_0x123eb7,{'id':_0x518ca9[_0x58df9f(0x966)][_0x5cc11f]['id']});_0x1fb81c&&(_0x518ca9[_0x58df9f(0x966)][_0x5cc11f]['canSelect']=![],_0x3b9590[_0x58df9f(0x1f47)](_0x518ca9['outboundRoutes'][_0x5cc11f]));}_0x518ca9[_0x58df9f(0x966)]=_0x3b9590;}else{if(!_0x442c85[_0x58df9f(0x11d2)])return _0x1ee6ef['userProfileResource']['get']({'sectionId':_0x442c85['id']})['$promise'][_0x58df9f(0x146b)](function(_0x46cbcb){const _0x3607b2=_0x58df9f,_0x2621b7=_0x3f65c0()[_0x3607b2(0x205)](_0x46cbcb['rows'],function(_0x2dc39d){const _0xf675be=_0x3607b2;return _0x3f65c0()[_0xf675be(0xc84)](_0x518ca9[_0xf675be(0x966)],{'id':_0x2dc39d[_0xf675be(0x18b8)]});});let _0x105b9e=null;_0x105b9e=[],_0x518ca9[_0x3607b2(0x49a)][_0x3607b2(0x19c7)][_0x3607b2(0x1df5)](function(_0x45abee){const _0x2fc0b4=_0x3607b2;if(_0x45abee[_0x2fc0b4(0x65c)]===_0x2fc0b4(0x27c7)){const _0x26d8ef=_0x3f65c0()['find'](_0x518ca9['outboundRoutes'],{'id':Number(_0x45abee[_0x2fc0b4(0x175d)])});_0x105b9e[_0x2fc0b4(0x1f47)](_0x26d8ef);}}),!_0x3f65c0()['isEmpty'](_0x105b9e)&&_0x105b9e['forEach'](function(_0x3f873c){const _0x34ab56=_0x3607b2;if(!_0x3f65c0()['some'](_0x2621b7,['id',_0x3f873c['id']])){const _0x5543d5=_0x3f65c0()['find'](_0x518ca9['outboundRoutes'],{'id':_0x3f873c['id']});_0x5543d5[_0x34ab56(0x8ff)]=![],_0x2621b7[_0x34ab56(0x1f47)](_0x5543d5);}}),_0x518ca9['outboundRoutes']=_0x2621b7;});}})['catch'](function(_0x53fc17){const _0x33b680=_0x235eea;_0x470084['error']({'title':_0x53fc17[_0x33b680(0x107b)]?_0x33b680(0x262a)+_0x53fc17[_0x33b680(0x107b)]+_0x33b680(0x1315)+_0x53fc17[_0x33b680(0x167f)]:_0x33b680(0x104f),'msg':_0x53fc17[_0x33b680(0x524)]?JSON[_0x33b680(0x10bb)](_0x53fc17[_0x33b680(0x524)]):_0x53fc17[_0x33b680(0xd5f)]()});});}function _0x246c88(){const _0x39b96b=_0x3cc884;_0x51e155[_0x39b96b(0x13ff)]()?_0x1ee6ef[_0x39b96b(0xe7b)][_0x39b96b(0x16b4)]({'fields':_0x39b96b(0x12bf),'sort':_0x39b96b(0x19eb),'role':'agent','nolimit':_0x39b96b(0x1185)})[_0x39b96b(0x2945)][_0x39b96b(0x146b)](function(_0x2e8ec8){const _0x1da4ea=_0x39b96b;_0x518ca9[_0x1da4ea(0x23c0)]=_0x2e8ec8['rows']||[];})['catch'](function(_0x51c511){const _0x370b75=_0x39b96b;_0x470084[_0x370b75(0x1980)]({'title':_0x51c511[_0x370b75(0x107b)]?_0x370b75(0x262a)+_0x51c511[_0x370b75(0x107b)]+_0x370b75(0x1315)+_0x51c511[_0x370b75(0x167f)]:_0x370b75(0x557),'msg':_0x51c511[_0x370b75(0x524)]?JSON['stringify'](_0x51c511['data']):_0x51c511[_0x370b75(0xd5f)]()});}):_0x1ee6ef[_0x39b96b(0xe7b)]['get']({'fields':_0x39b96b(0x12bf),'sort':_0x39b96b(0x19eb),'role':'agent','nolimit':'true'})['$promise']['then'](function(_0x377b0d){const _0x505494=_0x39b96b;_0x518ca9['agents']=_0x377b0d[_0x505494(0x19c7)]||[];})[_0x39b96b(0x146b)](function(){const _0x3ef1b4=_0x39b96b;return _0x1ee6ef[_0x3ef1b4(0x1366)][_0x3ef1b4(0x16b4)]({'userProfileId':_0x518ca9[_0x3ef1b4(0x2321)][_0x3ef1b4(0x209a)],'sectionId':0xca})[_0x3ef1b4(0x2945)];})[_0x39b96b(0x146b)](function(_0x38099a){const _0x2774b6=_0x39b96b,_0x1a189c=_0x38099a&&_0x38099a[_0x2774b6(0x19c7)]?_0x38099a['rows'][0x0]:null;if(!_0x1a189c){const _0x52d7a4=[],_0x115d0c=[];_0x518ca9[_0x2774b6(0x49a)][_0x2774b6(0x19c7)]['forEach'](function(_0x472718){const _0x207155=_0x2774b6;if(_0x472718[_0x207155(0x65c)]===_0x207155(0x1755)){const _0x84705c=_0x3f65c0()[_0x207155(0xc84)](_0x518ca9[_0x207155(0x23c0)],{'name':_0x472718[_0x207155(0x175d)]});_0x115d0c[_0x207155(0x1f47)](_0x84705c);}});for(let _0x31cfed=0x0;_0x31cfed<_0x518ca9[_0x2774b6(0x23c0)][_0x2774b6(0x402)];_0x31cfed++){const _0x2ff6f4=_0x3f65c0()[_0x2774b6(0x1360)](_0x115d0c,{'id':_0x518ca9[_0x2774b6(0x23c0)][_0x31cfed]['id']});_0x2ff6f4&&(_0x518ca9[_0x2774b6(0x23c0)][_0x31cfed][_0x2774b6(0x8ff)]=![],_0x52d7a4[_0x2774b6(0x1f47)](_0x518ca9[_0x2774b6(0x23c0)][_0x31cfed]));}_0x518ca9[_0x2774b6(0x23c0)]=_0x52d7a4;}else{if(!_0x1a189c[_0x2774b6(0x11d2)])return _0x1ee6ef['userProfileResource']['get']({'sectionId':_0x1a189c['id']})[_0x2774b6(0x2945)][_0x2774b6(0x146b)](function(_0x51ea7b){const _0x17f099=_0x2774b6,_0x299956=_0x3f65c0()[_0x17f099(0x205)](_0x51ea7b[_0x17f099(0x19c7)],function(_0x3940c7){const _0x40c629=_0x17f099;return _0x3f65c0()[_0x40c629(0xc84)](_0x518ca9['agents'],{'id':_0x3940c7[_0x40c629(0x18b8)]});});let _0x2de448=null;_0x2de448=[],_0x518ca9[_0x17f099(0x49a)]['rows'][_0x17f099(0x1df5)](function(_0x3dd852){const _0x1654c5=_0x17f099;if(_0x3dd852['field']===_0x1654c5(0x1755)){const _0x4d274a=_0x3f65c0()[_0x1654c5(0xc84)](_0x518ca9['agents'],{'name':_0x3dd852[_0x1654c5(0x175d)]});_0x2de448[_0x1654c5(0x1f47)](_0x4d274a);}}),!_0x3f65c0()['isEmpty'](_0x2de448)&&_0x2de448[_0x17f099(0x1df5)](function(_0x426387){const _0x3875cc=_0x17f099;if(!_0x3f65c0()[_0x3875cc(0x1360)](_0x299956,['id',_0x426387['id']])){const _0x212a0f=_0x3f65c0()[_0x3875cc(0xc84)](_0x518ca9[_0x3875cc(0x23c0)],{'id':_0x426387['id']});_0x212a0f['canSelect']=![],_0x299956['push'](_0x212a0f);}}),_0x518ca9[_0x17f099(0x23c0)]=_0x299956;});}})[_0x39b96b(0x129e)](function(_0x2946e1){const _0x536ead=_0x39b96b;_0x470084[_0x536ead(0x1980)]({'title':_0x2946e1[_0x536ead(0x107b)]?_0x536ead(0x262a)+_0x2946e1[_0x536ead(0x107b)]+'\x20-\x20'+_0x2946e1[_0x536ead(0x167f)]:_0x536ead(0x557),'msg':_0x2946e1[_0x536ead(0x524)]?JSON[_0x536ead(0x10bb)](_0x2946e1[_0x536ead(0x524)]):_0x2946e1['toString']()});});}function _0x12c3de(){const _0x2576e1=_0x3cc884,_0x1de52f=_0x518ca9[_0x2576e1(0xd57)][_0x2576e1(0x2894)]+(_0x518ca9[_0x2576e1(0xd57)][_0x2576e1(0x2894)]===_0x2576e1(0xa7f)?'Website':'Account');let _0x263cf9;switch(_0x518ca9['trigger'][_0x2576e1(0x2894)]){case'chat':_0x263cf9=0x1f6;break;case _0x2576e1(0x22d9):_0x263cf9=0x386;break;case _0x2576e1(0x56b):_0x263cf9=0x25a;break;case _0x2576e1(0x7d9):_0x263cf9=0x322;break;case'sms':_0x263cf9=0x2be;break;case'whatsapp':_0x263cf9=0x836;break;}if(_0x51e155[_0x2576e1(0x13ff)]()){const _0x39959a=_0x518ca9[_0x2576e1(0xd57)]['channel'];_0x1ee6ef[_0x1de52f][_0x2576e1(0x16b4)]({'fields':'id,name','sort':'id','nolimit':_0x2576e1(0x1185)})['$promise'][_0x2576e1(0x146b)](function(_0x1b68b7){_0x518ca9['accounts']=_0x1b68b7['rows']||[];})[_0x2576e1(0x129e)](function(_0x469161){const _0x5c72a9=_0x2576e1;_0x470084[_0x5c72a9(0x1980)]({'title':_0x469161[_0x5c72a9(0x107b)]?_0x5c72a9(0x262a)+_0x469161['status']+'\x20-\x20'+_0x469161[_0x5c72a9(0x167f)]:_0x5c72a9(0x290e)+_0x39959a['toUpperCase']()+_0x39959a===_0x5c72a9(0xa7f)?_0x5c72a9(0x1256):'ACCOUNTS','msg':_0x469161[_0x5c72a9(0x524)]?JSON[_0x5c72a9(0x10bb)](_0x469161[_0x5c72a9(0x524)]):_0x469161['toString']()});});}else _0x1ee6ef[_0x1de52f]['get']({'fields':_0x2576e1(0x7a7),'sort':'id','nolimit':_0x2576e1(0x1185)})[_0x2576e1(0x2945)]['then'](function(_0x588a7f){const _0x1a861f=_0x2576e1;_0x518ca9[_0x1a861f(0x2de)]=_0x588a7f[_0x1a861f(0x19c7)]||[];})[_0x2576e1(0x146b)](function(){const _0x21ba69=_0x2576e1;return _0x1ee6ef['userProfileSection'][_0x21ba69(0x16b4)]({'userProfileId':_0x518ca9[_0x21ba69(0x2321)]['userProfileId'],'sectionId':_0x263cf9})[_0x21ba69(0x2945)];})['then'](function(_0x4081e8){const _0x23114d=_0x2576e1,_0xd99bad=_0x4081e8&&_0x4081e8[_0x23114d(0x19c7)]?_0x4081e8[_0x23114d(0x19c7)][0x0]:null;if(!_0xd99bad){const _0x4e547c=[],_0x54d76e=[];_0x518ca9[_0x23114d(0x49a)][_0x23114d(0x19c7)]['forEach'](function(_0x4bd297){const _0x3eaae5=_0x23114d;if(_0x4bd297[_0x3eaae5(0x65c)]===_0x3eaae5(0x1f8e)){const _0x4dba6b=_0x3f65c0()[_0x3eaae5(0xc84)](_0x518ca9[_0x3eaae5(0x2de)],{'id':Number(_0x4bd297[_0x3eaae5(0x175d)])});_0x54d76e['push'](_0x4dba6b);}});for(let _0x38ff03=0x0;_0x38ff03<_0x518ca9[_0x23114d(0x2de)][_0x23114d(0x402)];_0x38ff03++){const _0x3a563b=_0x3f65c0()[_0x23114d(0x1360)](_0x54d76e,{'id':_0x518ca9['accounts'][_0x38ff03]['id']});_0x3a563b&&(_0x518ca9[_0x23114d(0x2de)][_0x38ff03]['canSelect']=![],_0x4e547c[_0x23114d(0x1f47)](_0x518ca9[_0x23114d(0x2de)][_0x38ff03]));}_0x518ca9[_0x23114d(0x2de)]=_0x4e547c;}else{if(!_0xd99bad[_0x23114d(0x11d2)])return _0x1ee6ef[_0x23114d(0xdcc)][_0x23114d(0x16b4)]({'sectionId':_0xd99bad['id']})[_0x23114d(0x2945)][_0x23114d(0x146b)](function(_0x5da107){const _0x3fa089=_0x23114d,_0x573b7d=_0x3f65c0()[_0x3fa089(0x205)](_0x5da107[_0x3fa089(0x19c7)],function(_0x43bfaa){const _0x1ce594=_0x3fa089;return _0x3f65c0()['find'](_0x518ca9[_0x1ce594(0x2de)],{'id':_0x43bfaa[_0x1ce594(0x18b8)]});});let _0x3dbe32=null;_0x3dbe32=[],_0x518ca9['triggerallConditions'][_0x3fa089(0x19c7)][_0x3fa089(0x1df5)](function(_0x56d352){const _0x48b02c=_0x3fa089;if(_0x56d352[_0x48b02c(0x65c)]===_0x48b02c(0x1f8e)){const _0x23b1c7=_0x3f65c0()['find'](_0x518ca9['accounts'],{'id':Number(_0x56d352[_0x48b02c(0x175d)])});_0x3dbe32[_0x48b02c(0x1f47)](_0x23b1c7);}}),!_0x3f65c0()['isEmpty'](_0x3dbe32)&&_0x3dbe32['forEach'](function(_0x4d11b2){const _0x12bec2=_0x3fa089;if(!_0x3f65c0()[_0x12bec2(0x1360)](_0x573b7d,['id',_0x4d11b2['id']])){const _0x460f9a=_0x3f65c0()[_0x12bec2(0xc84)](_0x518ca9[_0x12bec2(0x2de)],{'id':_0x4d11b2['id']});_0x460f9a[_0x12bec2(0x8ff)]=![],_0x573b7d['push'](_0x460f9a);}}),_0x518ca9[_0x3fa089(0x2de)]=_0x573b7d;});}})['catch'](function(_0x377d65){const _0x5949c9=_0x2576e1,_0xcdbd42=_0x518ca9['trigger']['channel'];_0x470084[_0x5949c9(0x1980)]({'title':_0x377d65[_0x5949c9(0x107b)]?_0x5949c9(0x262a)+_0x377d65['status']+_0x5949c9(0x1315)+_0x377d65[_0x5949c9(0x167f)]:'SYSTEM:GET_'+_0xcdbd42['toUpperCase']()+_0xcdbd42==='chat'?_0x5949c9(0x1256):'ACCOUNTS','msg':_0x377d65[_0x5949c9(0x524)]?JSON['stringify'](_0x377d65[_0x5949c9(0x524)]):_0x377d65[_0x5949c9(0xd5f)]()});});}function _0x5d3822(){const _0xd0fa7d=_0x3cc884;switch(_0x518ca9['allCondition']['field']){case _0xd0fa7d(0x1c72):if(!_0x518ca9[_0xd0fa7d(0x1b32)])_0x1f07c6();break;case'routeId':if(!_0x518ca9[_0xd0fa7d(0x966)])_0x34b003();break;case _0xd0fa7d(0x1755):if(!_0x518ca9['agents'])_0x246c88();break;case'account':_0x12c3de();break;}}function _0xe72766(){_0x5d3822();}function _0x16fceb(){const _0x4fd192=_0x3cc884;_0x518ca9['errors']=[],_0x1ee6ef['trigger'][_0x4fd192(0x5ed)]({'id':_0x3936d2[_0x4fd192(0x16a)]['id']},_0x518ca9[_0x4fd192(0x20e6)])[_0x4fd192(0x2945)]['then'](function(_0x35f216){const _0x35e959=_0x4fd192;_0x518ca9[_0x35e959(0x6bc)]['unshift'](_0x35f216[_0x35e959(0x2488)]()),_0x470084[_0x35e959(0x1c75)]({'title':_0x45521d['instant']('TOOLS.NOTIFICATIONS.CONDITION_CREATED_SUCCESS_TITLE')}),_0x126c49(_0x518ca9[_0x35e959(0x6bc)]);})['catch'](function(_0x24724e){const _0x5c6788=_0x4fd192;if(_0x24724e[_0x5c6788(0x524)]&&_0x24724e['data'][_0x5c6788(0xcef)]&&_0x24724e[_0x5c6788(0x524)][_0x5c6788(0xcef)][_0x5c6788(0x402)]){_0x518ca9[_0x5c6788(0xcef)]=_0x24724e[_0x5c6788(0x524)][_0x5c6788(0xcef)]||[{'message':_0x24724e[_0x5c6788(0xd5f)](),'type':_0x5c6788(0x117c)}];for(let _0x3bdbda=0x0;_0x3bdbda<_0x24724e[_0x5c6788(0x524)]['errors'][_0x5c6788(0x402)];_0x3bdbda+=0x1){_0x470084['error']({'title':_0x24724e['data']['errors'][_0x3bdbda]['type'],'msg':_0x24724e['data'][_0x5c6788(0xcef)][_0x3bdbda]['message']});}}else _0x470084['error']({'title':_0x24724e[_0x5c6788(0x107b)]?_0x5c6788(0x262a)+_0x24724e[_0x5c6788(0x107b)]+_0x5c6788(0x1315)+_0x24724e['statusText']:'api.condition.save','msg':_0x24724e[_0x5c6788(0x524)]?JSON['stringify'](_0x24724e['data'][_0x5c6788(0x7fd)]):_0x24724e['toString']()});});}function _0x2b9b24(){const _0x5b4f89=_0x3cc884;_0x518ca9[_0x5b4f89(0xcef)]=[],_0x1ee6ef[_0x5b4f89(0x115f)][_0x5b4f89(0x18e1)]({'id':_0x518ca9['allCondition']['id']},_0x518ca9[_0x5b4f89(0x20e6)])[_0x5b4f89(0x2945)][_0x5b4f89(0x146b)](function(){const _0x201ce4=_0x5b4f89;_0x518ca9[_0x201ce4(0x6bc)]=_0x3f65c0()[_0x201ce4(0x205)](_0x518ca9['allConditions'],function(_0x8bed17){const _0x251d08=_0x201ce4;if(_0x8bed17['id']===_0x518ca9[_0x251d08(0x20e6)]['id'])return _0x518ca9[_0x251d08(0x20e6)];else return _0x8bed17;}),_0x470084['success']({'title':_0x45521d['instant'](_0x201ce4(0x23a2))}),_0x126c49(_0x518ca9['allConditions']);})[_0x5b4f89(0x129e)](function(_0x5713be){const _0x52e0e8=_0x5b4f89;if(_0x5713be[_0x52e0e8(0x524)]&&_0x5713be['data']['errors']&&_0x5713be[_0x52e0e8(0x524)][_0x52e0e8(0xcef)][_0x52e0e8(0x402)]){_0x518ca9[_0x52e0e8(0xcef)]=_0x5713be[_0x52e0e8(0x524)][_0x52e0e8(0xcef)]||[{'message':_0x5713be[_0x52e0e8(0xd5f)](),'type':_0x52e0e8(0x232f)}];for(let _0x88274=0x0;_0x88274<_0x5713be[_0x52e0e8(0x524)][_0x52e0e8(0xcef)][_0x52e0e8(0x402)];_0x88274++){_0x470084['error']({'title':_0x5713be[_0x52e0e8(0x524)][_0x52e0e8(0xcef)][_0x88274][_0x52e0e8(0x1142)],'msg':_0x5713be[_0x52e0e8(0x524)][_0x52e0e8(0xcef)][_0x88274][_0x52e0e8(0x7fd)]});}}else _0x470084[_0x52e0e8(0x1980)]({'title':_0x5713be[_0x52e0e8(0x107b)]?'API:'+_0x5713be[_0x52e0e8(0x107b)]+_0x52e0e8(0x1315)+_0x5713be[_0x52e0e8(0x167f)]:'api.condition.update','msg':_0x5713be[_0x52e0e8(0x524)]?JSON['stringify'](_0x5713be['data'][_0x52e0e8(0x7fd)]):_0x5713be[_0x52e0e8(0xd5f)]()});});}function _0x48e344(_0x2a4ba5){const _0x3f9104=_0x3cc884;_0x518ca9[_0x3f9104(0xcef)]=[];const _0x8f80a7=_0x45bded[_0x3f9104(0x1e8a)]({'skipHide':!![]})[_0x3f9104(0x1189)](_0x45521d[_0x3f9104(0xde)](_0x3f9104(0x1473)))[_0x3f9104(0x4bd)](_0x3f9104(0x2555))['ok'](_0x45521d[_0x3f9104(0xde)](_0x3f9104(0x747)))['cancel'](_0x45521d['instant'](_0x3f9104(0x1161)))[_0x3f9104(0x1f27)](_0x2a4ba5);_0x45bded['show'](_0x8f80a7)['then'](function(){const _0x3cac84=_0x3f9104;_0x1ee6ef[_0x3cac84(0x115f)][_0x3cac84(0x1fac)]({'id':_0x518ca9[_0x3cac84(0x20e6)]['id']})[_0x3cac84(0x2945)][_0x3cac84(0x146b)](function(){const _0x2f4990=_0x3cac84;_0x518ca9[_0x2f4990(0x6bc)]=_0x3f65c0()[_0x2f4990(0x1dd6)](_0x518ca9[_0x2f4990(0x6bc)],function(_0x1c7449){return _0x1c7449['id']!==_0x518ca9['allCondition']['id'];}),_0x470084[_0x2f4990(0x1c75)]({'title':_0x45521d['instant'](_0x2f4990(0xa50))}),_0x126c49(_0x518ca9[_0x2f4990(0x6bc)]);})[_0x3cac84(0x129e)](function(_0x294d11){const _0x49813d=_0x3cac84;if(_0x294d11[_0x49813d(0x524)]&&_0x294d11[_0x49813d(0x524)][_0x49813d(0xcef)]&&_0x294d11['data'][_0x49813d(0xcef)][_0x49813d(0x402)]){_0x518ca9[_0x49813d(0xcef)]=_0x294d11[_0x49813d(0x524)][_0x49813d(0xcef)]||[{'message':_0x294d11[_0x49813d(0xd5f)](),'type':_0x49813d(0x1cc9)}];for(let _0x15ade3=0x0;_0x15ade3<_0x294d11[_0x49813d(0x524)]['errors'][_0x49813d(0x402)];_0x15ade3++){_0x470084['error']({'title':_0x294d11[_0x49813d(0x524)][_0x49813d(0xcef)][_0x15ade3][_0x49813d(0x1142)],'msg':_0x294d11[_0x49813d(0x524)][_0x49813d(0xcef)][_0x15ade3][_0x49813d(0x7fd)]});}}else _0x470084[_0x49813d(0x1980)]({'title':_0x294d11['status']?_0x49813d(0x262a)+_0x294d11[_0x49813d(0x107b)]+'\x20-\x20'+_0x294d11[_0x49813d(0x167f)]:_0x49813d(0x1cc9),'msg':_0x294d11[_0x49813d(0x524)]?JSON[_0x49813d(0x10bb)](_0x294d11[_0x49813d(0x524)][_0x49813d(0x7fd)]):_0x294d11[_0x49813d(0x7fd)]||_0x294d11[_0x49813d(0xd5f)]()});});},function(){});}function _0x126c49(_0x5c2510){const _0x8001fa=_0x3cc884;_0x45bded[_0x8001fa(0x2458)](_0x5c2510);}}const _0x233055=_0x128f44;;_0x1c47c7[_0x313a4d(0x11c2)]=[_0x313a4d(0x1862),'$translate',_0x313a4d(0x2690),_0x313a4d(0x15b9),'api',_0x313a4d(0x1fe4),_0x313a4d(0xa87),'trigger',_0x313a4d(0x1366)];function _0x1c47c7(_0x45e16,_0x207159,_0x169e84,_0x36ed6a,_0x598c77,_0x277cf2,_0x4171d4,_0x27b5dc,_0x1348a0){const _0x139340=_0x313a4d,_0x3fa0c0=this;_0x3fa0c0[_0x139340(0x2321)]=_0x4171d4[_0x139340(0xb12)](),_0x3fa0c0[_0x139340(0x2690)]=_0x169e84,_0x3fa0c0[_0x139340(0x15b9)]=_0x36ed6a,_0x3fa0c0[_0x139340(0xd57)]=_0x27b5dc||_0x45e16[_0x139340(0x16a)]['trigger']||{},_0x3fa0c0[_0x139340(0x1b09)]=_0x45e16[_0x139340(0x16a)][_0x139340(0x13a3)]||0x0;_0x45e16[_0x139340(0x16a)]['crudPermissions']?_0x3fa0c0[_0x139340(0x2514)]=_0x45e16[_0x139340(0x16a)][_0x139340(0x2514)]:(_0x3fa0c0[_0x139340(0x1366)]=_0x1348a0&&_0x1348a0[_0x139340(0x51c)]==0x1?_0x1348a0[_0x139340(0x19c7)][0x0]:null,_0x3fa0c0[_0x139340(0x2514)]=_0x4171d4[_0x139340(0xe60)](_0x3fa0c0['userProfileSection']?_0x3fa0c0[_0x139340(0x1366)][_0x139340(0x2514)]:null));_0x3fa0c0[_0x139340(0x1c71)]=_0x3b5902,_0x3fa0c0[_0x139340(0x1239)]=_0x3104db;function _0x3b5902(){const _0x59d9d8=_0x139340;_0x45e16['go'](_0x59d9d8(0x719),{},{'reload':'app.tools.triggers'});}function _0x3104db(){const _0x370a41=_0x139340;_0x598c77[_0x370a41(0xd57)]['update']({'id':_0x3fa0c0[_0x370a41(0xd57)]['id']},_0x3fa0c0['trigger'])[_0x370a41(0x2945)][_0x370a41(0x146b)](function(){const _0x1d34a5=_0x370a41;_0x277cf2['success']({'title':_0x207159[_0x1d34a5(0xde)](_0x1d34a5(0x2243))});})['catch'](function(_0x38edf6){const _0x5affd9=_0x370a41;_0x277cf2['error']({'title':_0x38edf6[_0x5affd9(0x107b)]?_0x5affd9(0x262a)+_0x38edf6[_0x5affd9(0x107b)]+'\x20-\x20'+_0x38edf6[_0x5affd9(0x167f)]:'SYSTEM:GETtrigger','msg':_0x38edf6[_0x5affd9(0x524)]?JSON[_0x5affd9(0x10bb)](_0x38edf6[_0x5affd9(0x524)]):_0x38edf6[_0x5affd9(0xd5f)]()});});}}const _0x8a70ae=_0x1c47c7;;const _0x19f99a=_0x4acfac['p']+_0x313a4d(0x1e3c);;_0xb5ff00[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1862),'$mdDialog',_0x313a4d(0x4d8),_0x313a4d(0x1abe),_0x313a4d(0x214b),_0x313a4d(0x231a),'userProfile','userProfileSection',_0x313a4d(0x247f),'toasty',_0x313a4d(0xa87),_0x313a4d(0x2690),_0x313a4d(0x15b9)];function _0xb5ff00(_0x4fc72d,_0x536d14,_0x548e9f,_0x33b349,_0x502a03,_0x443a1f,_0x32872c,_0x2502a2,_0x31e56c,_0x15bcc5,_0x17081d,_0x3a5d7a,_0x45dc18,_0x20258e){const _0x359abf=_0x313a4d,_0x14868a=this;_0x14868a['license']=_0x45dc18,_0x14868a[_0x359abf(0x15b9)]=_0x20258e,_0x14868a[_0x359abf(0x2321)]=_0x3a5d7a['getCurrentUser'](),_0x14868a[_0x359abf(0x231a)]=_0x32872c||{'count':0x0,'rows':[]},_0x14868a[_0x359abf(0x26b6)]=_0x2502a2,_0x14868a[_0x359abf(0x1366)]=_0x31e56c&&_0x31e56c['count']==0x1?_0x31e56c[_0x359abf(0x19c7)][0x0]:null,_0x14868a[_0x359abf(0x2514)]=_0x3a5d7a['parseCrudPermissions'](_0x14868a[_0x359abf(0x1366)]?_0x14868a[_0x359abf(0x1366)][_0x359abf(0x2514)]:null),_0x14868a[_0x359abf(0x27d)]=[],_0x14868a[_0x359abf(0x1a56)]={'fields':_0x359abf(0xd94),'sort':_0x359abf(0x12f2),'limit':0xa,'page':0x1},_0x14868a['goToEditState']=_0xcb4bff,_0x14868a[_0x359abf(0x94a)]=_0x256934,_0x14868a[_0x359abf(0x1c75)]=_0x5361ed,_0x14868a['getTriggers']=_0x571549,_0x14868a['deleteconfirm']=_0x9c8db2,_0x14868a['exportSelectedTriggers']=_0x245d00,_0x14868a[_0x359abf(0x632)]=_0x1e7575,_0x14868a[_0x359abf(0x1d4b)]=_0x5eea1b,_0x14868a['selectAllTriggers']=_0x35abf0;function _0xcb4bff(_0x152f76){const _0x1fbc0c=_0x359abf;_0x536d14['go']('app.tools.triggers.edit',{'id':_0x152f76['id'],'trigger':_0x152f76,'crudPermissions':_0x14868a[_0x1fbc0c(0x2514)]});}function _0x256934(_0x11b153,_0x1de547){const _0x495ea4=_0x359abf;if(_0x14868a[_0x495ea4(0x2514)]['readOnly']||_0x14868a[_0x495ea4(0x2514)][_0x495ea4(0x1e66)]&&!_0x14868a[_0x495ea4(0x2514)]['canEdit']){_0xcb4bff(_0x1de547);return;}_0x548e9f[_0x495ea4(0x2615)]({'controller':'CreateOrEditTriggerDialogController','controllerAs':'vm','templateUrl':_0x19f99a,'parent':angular['element'](_0x33b349[_0x495ea4(0x2586)]),'targetEvent':_0x11b153,'clickOutsideToClose':!![],'locals':{'trigger':_0x1de547,'triggers':_0x14868a['triggers']['rows'],'license':_0x14868a[_0x495ea4(0x2690)],'setting':_0x14868a[_0x495ea4(0x15b9)],'crudPermissions':_0x14868a[_0x495ea4(0x2514)]}})[_0x495ea4(0x146b)](function(_0x996f28){const _0xddbb13=_0x495ea4;_0x996f28&&(_0x14868a['triggers']={'count':_0x996f28[_0xddbb13(0x402)],'rows':_0x996f28});});}function _0x5361ed(_0x32e1e2){const _0xb3bc06=_0x359abf;_0x14868a[_0xb3bc06(0x231a)]=_0x32e1e2||{'count':0x0,'rows':[]};}function _0x571549(){const _0xd23818=_0x359abf;_0x14868a['query']['offset']=(_0x14868a['query'][_0xd23818(0x844)]-0x1)*_0x14868a['query']['limit'],_0x3a5d7a['isAdmin']()?_0x14868a['promise']=_0x15bcc5['trigger'][_0xd23818(0x16b4)](_0x14868a['query'],_0x5361ed)[_0xd23818(0x2945)]:(_0x14868a[_0xd23818(0x1a56)]['id']=_0x14868a['userProfile']['id'],_0x14868a[_0xd23818(0x1a56)][_0xd23818(0x2146)]='Triggers',_0x14868a[_0xd23818(0xb9c)]=_0x15bcc5[_0xd23818(0x26b6)][_0xd23818(0x158f)](_0x14868a[_0xd23818(0x1a56)],_0x5361ed)[_0xd23818(0x2945)]);}function _0x9c8db2(_0x2aaead,_0x5b39d9){const _0x9679b3=_0x359abf,_0x193d5b=_0x548e9f[_0x9679b3(0x1e8a)]()[_0x9679b3(0x1189)](_0x443a1f[_0x9679b3(0xde)](_0x9679b3(0x13a2)))[_0x9679b3(0x80f)](_0x443a1f[_0x9679b3(0xde)](_0x9679b3(0x1653),{'name':_0x2aaead['name']}))[_0x9679b3(0x4bd)](_0x9679b3(0x1362))['targetEvent'](_0x5b39d9)['ok']('OK')['cancel'](_0x443a1f[_0x9679b3(0xde)]('APP.CANCEL'));_0x548e9f[_0x9679b3(0x2615)](_0x193d5b)[_0x9679b3(0x146b)](function(){_0x30f921(_0x2aaead,!![]);});}function _0x30f921(_0x32e638,_0x947b1c){const _0x11caba=_0x359abf;_0x15bcc5[_0x11caba(0xd57)][_0x11caba(0x1fac)]({'id':_0x32e638['id']})[_0x11caba(0x2945)][_0x11caba(0x146b)](function(){const _0x1861a5=_0x11caba;_0x571549(),_0x947b1c&&_0x17081d[_0x1861a5(0x1c75)]({'title':_0x443a1f['instant']('TOOLS.NOTIFICATIONS.TRIGGER_DELETED_SUCCESS_TITLE')});})['catch'](function(_0x4f9d54){const _0x25a786=_0x11caba;if(_0x4f9d54['data']&&_0x4f9d54[_0x25a786(0x524)][_0x25a786(0xcef)]&&_0x4f9d54[_0x25a786(0x524)][_0x25a786(0xcef)][_0x25a786(0x402)]){_0x14868a[_0x25a786(0xcef)]=_0x4f9d54[_0x25a786(0x524)][_0x25a786(0xcef)]||[{'message':_0x4f9d54[_0x25a786(0xd5f)](),'type':_0x25a786(0x14b9)}];for(let _0x3827ce=0x0;_0x3827ce<_0x4f9d54[_0x25a786(0x524)][_0x25a786(0xcef)]['length'];_0x3827ce++){_0x17081d['error']({'title':_0x4f9d54[_0x25a786(0x524)][_0x25a786(0xcef)][_0x3827ce][_0x25a786(0x1142)],'msg':_0x4f9d54[_0x25a786(0x524)][_0x25a786(0xcef)][_0x3827ce][_0x25a786(0x7fd)]});}}else _0x17081d[_0x25a786(0x1980)]({'title':_0x4f9d54[_0x25a786(0x107b)]?_0x25a786(0x262a)+_0x4f9d54['status']+_0x25a786(0x1315)+_0x4f9d54['statusText']:_0x25a786(0x14b9),'msg':_0x4f9d54[_0x25a786(0x524)]?JSON[_0x25a786(0x10bb)](_0x4f9d54[_0x25a786(0x524)][_0x25a786(0x7fd)]):_0x4f9d54['message']||_0x4f9d54[_0x25a786(0xd5f)]()});});}function _0x245d00(){const _0x3ee057=_0x359abf,_0x4703d0=angular[_0x3ee057(0x235a)](_0x14868a[_0x3ee057(0x27d)]);return _0x14868a[_0x3ee057(0x27d)]=[],_0x4703d0;}function _0x1e7575(_0x11189c){const _0x58765c=_0x359abf,_0x108f9d=_0x548e9f[_0x58765c(0x1e8a)]()[_0x58765c(0x1189)](_0x443a1f[_0x58765c(0xde)](_0x58765c(0x4d4)))[_0x58765c(0x80f)](_0x443a1f['instant'](_0x58765c(0x828),{'total':_0x14868a[_0x58765c(0x27d)]['length']}))[_0x58765c(0x4bd)](_0x58765c(0x1bc4))[_0x58765c(0x1f27)](_0x11189c)['ok']('OK')[_0x58765c(0x6c3)](_0x443a1f[_0x58765c(0xde)](_0x58765c(0x1161)));_0x548e9f['show'](_0x108f9d)[_0x58765c(0x146b)](function(){const _0x7cad6d=_0x58765c;_0x14868a[_0x7cad6d(0x27d)][_0x7cad6d(0x1df5)](function(_0x182f72){_0x30f921(_0x182f72);}),_0x14868a[_0x7cad6d(0x27d)]=[],_0x17081d[_0x7cad6d(0x1c75)]({'title':_0x443a1f[_0x7cad6d(0xde)](_0x7cad6d(0x103f))});});}function _0x5eea1b(){const _0x514262=_0x359abf;_0x14868a[_0x514262(0x27d)]=[];}function _0x35abf0(){const _0x1a7893=_0x359abf;_0x14868a['selectedTriggers']=_0x14868a[_0x1a7893(0x231a)][_0x1a7893(0x19c7)];}let _0x517225=!![],_0x1a2a07=0x1;_0x4fc72d[_0x359abf(0x21e8)](_0x359abf(0x2669),function(_0x49b5fb,_0x54a4ad){const _0x520b95=_0x359abf;_0x517225?_0x502a03(function(){_0x517225=![];}):(!_0x54a4ad&&(_0x1a2a07=_0x14868a[_0x520b95(0x1a56)][_0x520b95(0x844)]),_0x49b5fb!==_0x54a4ad&&(_0x14868a[_0x520b95(0x1a56)][_0x520b95(0x844)]=0x1),!_0x49b5fb&&(_0x14868a[_0x520b95(0x1a56)][_0x520b95(0x844)]=_0x1a2a07),_0x571549());});}const _0x3deb55=_0xb5ff00;;_0x139bbb[_0x313a4d(0x11c2)]=[_0x313a4d(0x921)];function _0x139bbb(_0x20a944){const _0x552668=_0x313a4d;_0x20a944[_0x552668(0x13d6)](_0x552668(0x719),{'url':_0x552668(0x1b1e),'views':{'content@app':{'templateUrl':_0x319dea,'controller':_0x552668(0x12ca)}},'resolve':{'triggers':[_0x552668(0x362),_0x552668(0xa87),function(_0x11078f,_0x14717e){const _0x2e63a5=_0x552668;return _0x14717e['hasRole']('admin')?_0x11078f[_0x2e63a5(0x2922)](_0x2e63a5(0x203),{'fields':_0x2e63a5(0xba4),'sort':_0x2e63a5(0x12f2),'limit':0xa,'offset':0x0}):_0x11078f[_0x2e63a5(0x2922)](_0x2e63a5(0x938),{'id':_0x14717e[_0x2e63a5(0xb12)]()[_0x2e63a5(0x209a)],'section':'Triggers','fields':_0x2e63a5(0xba4),'sort':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':[_0x552668(0x362),_0x552668(0xa87),function(_0x18065a,_0x56cb96){const _0x2e88a2=_0x552668;return _0x56cb96['hasRole']('admin')?null:_0x18065a[_0x2e88a2(0x2922)](_0x2e88a2(0x119a),{'fields':_0x2e88a2(0x227),'id':_0x56cb96[_0x2e88a2(0xb12)]()[_0x2e88a2(0x209a)]});}],'userProfileSection':[_0x552668(0x362),_0x552668(0xa87),function(_0x24f4ef,_0x436b93){const _0x29b86c=_0x552668;return _0x436b93[_0x29b86c(0x23e0)]('admin')?null:_0x24f4ef['resolve']('userProfileSection@get',{'fields':_0x29b86c(0x1e64),'userProfileId':_0x436b93['getCurrentUser']()[_0x29b86c(0x209a)],'sectionId':0x3f2});}]},'authenticate':!![],'permissionId':0x3f2,'bodyClass':'tools'})[_0x552668(0x13d6)](_0x552668(0x1797),{'url':_0x552668(0x2028),'params':{'trigger':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x1aa402,'controller':'TriggerController\x20as\x20vm'}},'resolve':{'trigger':[_0x552668(0x362),_0x552668(0x28c8),function(_0x4d1dce,_0x543ecd){const _0x2d330c=_0x552668;return _0x4d1dce[_0x2d330c(0x2922)](_0x2d330c(0x203),{'fields':_0x2d330c(0xba4),'id':_0x543ecd['id']});}],'userProfileSection':[_0x552668(0x362),_0x552668(0xa87),function(_0x58dc3d,_0x2f3031){const _0x4d0ee1=_0x552668;return _0x58dc3d[_0x4d0ee1(0x2922)]('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x2f3031['getCurrentUser']()['userProfileId'],'sectionId':0x3f2});}]},'authenticate':!![],'permissionId':0x3f2,'bodyClass':_0x552668(0x11fe)});}angular['module']('app.tools.triggers',[])['config'](_0x139bbb)[_0x313a4d(0x28f0)](_0x313a4d(0x2e1),_0x2f2a57)[_0x313a4d(0x28f0)]('TriggerActionsController',_0xaf10e0)[_0x313a4d(0x28f0)]('CreateOrEditActionDialogController',_0x424422)[_0x313a4d(0x28f0)]('TriggerAllConditionsController',_0x3e8c20)['controller'](_0x313a4d(0x1081),_0x149230)[_0x313a4d(0x28f0)](_0x313a4d(0x1645),_0x5b2b53)[_0x313a4d(0x28f0)](_0x313a4d(0x210d),_0x233055)[_0x313a4d(0x28f0)](_0x313a4d(0x2131),_0x8a70ae)['controller'](_0x313a4d(0x21e7),_0x3deb55);;const _0x4e3d52=_0x4acfac['p']+_0x313a4d(0x347);;const _0x2a832b=_0x4acfac['p']+_0x313a4d(0xa94);;const _0x3c03ee=_0x4acfac['p']+_0x313a4d(0x231);;const _0x3cfbe2=_0x4acfac['p']+_0x313a4d(0x142b);;const _0x5109aa=_0x4acfac['p']+_0x313a4d(0x14b2);;const _0x4de650=_0x4acfac['p']+'src/js/modules/main/apps/tools/views/pauses/pauses.html/pauses.html';;const _0x5ab98f=_0x4acfac['p']+_0x313a4d(0x139c);;const _0x6b1dde=_0x4acfac['p']+_0x313a4d(0xc2b);;const _0x4af6e3=_0x4acfac['p']+'src/js/modules/main/apps/tools/views/tags/tags.html/tags.html';;const _0xc44bdf=_0x4acfac['p']+_0x313a4d(0x1902);;const _0x59596e=_0x4acfac['p']+'src/js/modules/main/apps/tools/views/trunks/trunks.html/trunks.html';;const _0x3afaf5=_0x4acfac['p']+_0x313a4d(0x513);;const _0x2e16b4=_0x4acfac['p']+_0x313a4d(0x1dd1);;const _0x2e4818=_0x4acfac['p']+_0x313a4d(0x187e);;_0xe8448f[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1aa9),'$state',_0x313a4d(0x15fe),'$mdDialog','$document',_0x313a4d(0x1abe),_0x313a4d(0x214b),_0x313a4d(0x803),_0x313a4d(0x26b6),_0x313a4d(0x1366),_0x313a4d(0x247f),_0x313a4d(0x216c),_0x313a4d(0x1fe4),_0x313a4d(0xa87),_0x313a4d(0x2690),_0x313a4d(0x15b9)];function _0xe8448f(_0x15aca5,_0x3d3919,_0x200d18,_0x83f219,_0x47b326,_0x2444ec,_0x24be30,_0x254e90,_0x19a8d1,_0x27e6b1,_0x1649eb,_0x4f1579,_0x762248,_0xad9911,_0x2d9cd1,_0x1fb01a,_0x469911){const _0x1065a7=_0x313a4d,_0x230c68=this;_0x230c68['license']=_0x1fb01a,_0x230c68[_0x1065a7(0x15b9)]=_0x469911,_0x230c68['currentUser']=_0x2d9cd1['getCurrentUser'](),_0x230c68[_0x1065a7(0x803)]=_0x19a8d1||{'count':0x0,'rows':[]},_0x230c68[_0x1065a7(0x26b6)]=_0x27e6b1,_0x230c68[_0x1065a7(0x1366)]=_0x1649eb&&_0x1649eb[_0x1065a7(0x51c)]==0x1?_0x1649eb[_0x1065a7(0x19c7)][0x0]:null,_0x230c68[_0x1065a7(0x2514)]=_0x2d9cd1[_0x1065a7(0xe60)](_0x230c68[_0x1065a7(0x1366)]?_0x230c68[_0x1065a7(0x1366)][_0x1065a7(0x2514)]:null),_0x230c68[_0x1065a7(0x768)]=_0x1065a7(0x803),_0x230c68[_0x1065a7(0x216a)]='',_0x230c68[_0x1065a7(0x214f)]=null,_0x230c68[_0x1065a7(0x1da9)]=[],_0x230c68['query']={'fields':'createdAt,updatedAt,id,key,value,description','sort':_0x1065a7(0x12f2),'MailAccountId':_0x1065a7(0x203c),'FaxAccountId':_0x1065a7(0x203c),'SmsAccountId':'null','OpenchannelAccountId':_0x1065a7(0x203c),'ChatWebsiteId':_0x1065a7(0x203c),'limit':0xa,'page':0x1},_0x230c68[_0x1065a7(0x2ed)]=_0x51ee6d,_0x230c68[_0x1065a7(0xf0a)]=_0x776c27,_0x230c68[_0x1065a7(0x1c75)]=_0x1101a4,_0x230c68[_0x1065a7(0x282a)]=_0x5e64e8,_0x230c68[_0x1065a7(0x1942)]=_0x5eb9b6,_0x230c68['deleteCannedAnswer']=_0x2561f9,_0x230c68['exportSelectedCannedAnswers']=_0x549860,_0x230c68['deleteSelectedCannedAnswers']=_0x436236,_0x230c68['deselectCannedAnswers']=_0x4d7305,_0x230c68[_0x1065a7(0xe16)]=_0x4ecb07;function _0x51ee6d(_0x381fde,_0x13ac58){const _0x3a6988=_0x1065a7;_0x47b326[_0x3a6988(0x2615)]({'controller':_0x3a6988(0x2359),'controllerAs':'vm','templateUrl':_0x2e4818,'parent':angular['element'](_0x2444ec[_0x3a6988(0x2586)]),'targetEvent':_0x13ac58,'clickOutsideToClose':!![],'locals':{'cannedAnswer':_0x381fde,'cannedAnswers':_0x230c68[_0x3a6988(0x803)][_0x3a6988(0x19c7)],'license':_0x230c68['license'],'setting':null,'crudPermissions':_0x230c68['crudPermissions']}});}function _0x776c27(_0x3a0b86,_0x3eb268){const _0x22e2bc=_0x1065a7,_0x5e8f45=_0x47b326[_0x22e2bc(0x1e8a)]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x3f65c0()[_0x22e2bc(0x20d1)]('cannedAnswer')+'?')[_0x22e2bc(0x1cbe)](_0x22e2bc(0x16d3)+(_0x3a0b86[_0x22e2bc(0x19eb)]||_0x22e2bc(0x1ada))+_0x22e2bc(0x252f)+_0x22e2bc(0xe01))[_0x22e2bc(0x4bd)]('delete\x20cannedAnswer')[_0x22e2bc(0x1f27)](_0x3eb268)['ok']('OK')[_0x22e2bc(0x6c3)]('CANCEL');_0x47b326[_0x22e2bc(0x2615)](_0x5e8f45)[_0x22e2bc(0x146b)](function(){_0x2561f9(_0x3a0b86);},function(){const _0x2b087f=_0x22e2bc;console['log'](_0x2b087f(0x39a));});}let _0x2f9200=!![],_0x3579df=0x1;_0x15aca5[_0x1065a7(0x21e8)](_0x1065a7(0x2669),function(_0x26bdcd,_0x5a8d64){const _0x3733dc=_0x1065a7;_0x2f9200?_0x24be30(function(){_0x2f9200=![];}):(!_0x5a8d64&&(_0x3579df=_0x230c68[_0x3733dc(0x1a56)][_0x3733dc(0x844)]),_0x26bdcd!==_0x5a8d64&&(_0x230c68[_0x3733dc(0x1a56)][_0x3733dc(0x844)]=0x1),!_0x26bdcd&&(_0x230c68[_0x3733dc(0x1a56)][_0x3733dc(0x844)]=_0x3579df),_0x230c68[_0x3733dc(0x282a)]());});function _0x1101a4(_0x4b652e){const _0x3c0a31=_0x1065a7;_0x230c68[_0x3c0a31(0x803)]=_0x4b652e||{'count':0x0,'rows':[]};}function _0x5e64e8(){const _0x20df81=_0x1065a7;_0x230c68[_0x20df81(0x1a56)][_0x20df81(0x145d)]=(_0x230c68[_0x20df81(0x1a56)][_0x20df81(0x844)]-0x1)*_0x230c68[_0x20df81(0x1a56)][_0x20df81(0x221e)],_0x2d9cd1[_0x20df81(0x23e0)]('admin')?_0x230c68[_0x20df81(0xb9c)]=_0x4f1579[_0x20df81(0x1ada)][_0x20df81(0x16b4)](_0x230c68['query'],_0x1101a4)[_0x20df81(0x2945)]:(_0x230c68[_0x20df81(0x1a56)]['id']=_0x230c68['userProfile']['id'],_0x230c68[_0x20df81(0x1a56)]['section']=_0x20df81(0x16c4),_0x230c68['promise']=_0x4f1579[_0x20df81(0x26b6)][_0x20df81(0x158f)](_0x230c68['query'],_0x1101a4)[_0x20df81(0x2945)]);}function _0x5eb9b6(_0x27e244,_0x382f9a){const _0x59826f=_0x1065a7;_0x47b326[_0x59826f(0x2615)]({'controller':_0x59826f(0x2359),'controllerAs':'vm','templateUrl':_0x2e4818,'parent':angular[_0x59826f(0x1853)](_0x2444ec[_0x59826f(0x2586)]),'targetEvent':_0x27e244,'clickOutsideToClose':!![],'locals':{'cannedAnswer':_0x382f9a,'cannedAnswers':_0x230c68[_0x59826f(0x803)][_0x59826f(0x19c7)],'license':_0x230c68[_0x59826f(0x2690)],'setting':_0x230c68['setting'],'crudPermissions':_0x230c68[_0x59826f(0x2514)]}});}function _0x2561f9(_0x8dc72e){const _0x52fe31=_0x1065a7;_0x4f1579[_0x52fe31(0x1ada)][_0x52fe31(0x1fac)]({'id':_0x8dc72e['id']})[_0x52fe31(0x2945)]['then'](function(){const _0x65afc5=_0x52fe31;_0x3f65c0()[_0x65afc5(0x2640)](_0x230c68[_0x65afc5(0x803)][_0x65afc5(0x19c7)],{'id':_0x8dc72e['id']}),_0x230c68[_0x65afc5(0x803)][_0x65afc5(0x51c)]-=0x1,!_0x230c68['cannedAnswers']['rows']['length']&&_0x230c68[_0x65afc5(0x282a)](),_0xad9911[_0x65afc5(0x1c75)]({'title':_0x3f65c0()[_0x65afc5(0x20d1)]('CannedAnswer')+'\x20deleted!','msg':_0x8dc72e['name']?_0x8dc72e['name']+_0x65afc5(0x23e3):''});})[_0x52fe31(0x129e)](function(_0x18620b){const _0x357375=_0x52fe31;if(_0x18620b[_0x357375(0x524)]&&_0x18620b['data']['errors']&&_0x18620b[_0x357375(0x524)][_0x357375(0xcef)][_0x357375(0x402)]){_0x230c68[_0x357375(0xcef)]=_0x18620b[_0x357375(0x524)][_0x357375(0xcef)]||[{'message':_0x18620b[_0x357375(0xd5f)](),'type':_0x357375(0x170f)}];for(let _0x4d6bbd=0x0;_0x4d6bbd<_0x18620b[_0x357375(0x524)][_0x357375(0xcef)]['length'];_0x4d6bbd++){_0xad9911['error']({'title':_0x18620b['data'][_0x357375(0xcef)][_0x4d6bbd]['type'],'msg':_0x18620b[_0x357375(0x524)][_0x357375(0xcef)][_0x4d6bbd][_0x357375(0x7fd)]});}}else _0xad9911[_0x357375(0x1980)]({'title':_0x18620b['status']?_0x357375(0x262a)+_0x18620b['status']+_0x357375(0x1315)+_0x18620b['statusText']:_0x357375(0x170f),'msg':_0x18620b['data']?JSON['stringify'](_0x18620b[_0x357375(0x524)][_0x357375(0x7fd)]):_0x18620b['message']||_0x18620b['toString']()});});}function _0x549860(){const _0x22b682=_0x1065a7,_0x4ba1b4=angular[_0x22b682(0x235a)](_0x230c68[_0x22b682(0x1da9)]);return _0x230c68['selectedCannedAnswers']=[],_0x4ba1b4;}function _0x436236(_0x1e18ab){const _0x5db474=_0x1065a7,_0x4c1204=_0x47b326['confirm']()[_0x5db474(0x1189)](_0x5db474(0x1157))[_0x5db474(0x1cbe)](_0x5db474(0x16d3)+_0x230c68['selectedCannedAnswers'][_0x5db474(0x402)]+'\x20selected
    '+_0x5db474(0xe01))['ariaLabel'](_0x5db474(0x207f))[_0x5db474(0x1f27)](_0x1e18ab)['ok']('OK')['cancel'](_0x5db474(0x39a));_0x47b326[_0x5db474(0x2615)](_0x4c1204)[_0x5db474(0x146b)](function(){const _0x294e6b=_0x5db474;_0x230c68['selectedCannedAnswers']['forEach'](function(_0x1343dd){_0x2561f9(_0x1343dd);}),_0x230c68[_0x294e6b(0x1da9)]=[];});}function _0x4d7305(){const _0x28f364=_0x1065a7;_0x230c68[_0x28f364(0x1da9)]=[];}function _0x4ecb07(){const _0x1131c6=_0x1065a7;_0x230c68[_0x1131c6(0x1da9)]=_0x230c68['cannedAnswers']['rows'];}}const _0x7726c8=_0xe8448f;;_0x43b56e[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1862),_0x313a4d(0xd08),_0x313a4d(0x10e8),'$q','$translate','toasty','cannedAnswers',_0x313a4d(0x1ada),_0x313a4d(0x247f),_0x313a4d(0xa87),_0x313a4d(0x2690),_0x313a4d(0x15b9),_0x313a4d(0x2514)];function _0x43b56e(_0x4fc4d1,_0x1abafc,_0x466e55,_0x1f0a07,_0x194339,_0x1ff52e,_0x263e54,_0xb2d2f2,_0x1288ce,_0x51cc57,_0x3ce15f,_0x225216,_0x2ec1e4,_0x3bed0f){const _0x3922cf=_0x313a4d,_0x1bffba=this;_0x1bffba['currentUser']=_0x3ce15f[_0x3922cf(0xb12)](),_0x1bffba['errors']=[],_0x1bffba[_0x3922cf(0x15b9)]=_0x2ec1e4,_0x1bffba[_0x3922cf(0x2690)]=_0x225216,_0x1bffba[_0x3922cf(0x2514)]=_0x3bed0f,_0x1bffba[_0x3922cf(0x855)]={},_0x1bffba['passwordPattern']=_0x1bffba[_0x3922cf(0x15b9)]&&_0x1bffba[_0x3922cf(0x15b9)][_0x3922cf(0x976)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1bffba['title']=_0x3922cf(0x87a),_0x1bffba[_0x3922cf(0x1ada)]=angular[_0x3922cf(0x235a)](_0x1288ce),_0x1bffba[_0x3922cf(0x803)]=_0xb2d2f2,_0x1bffba[_0x3922cf(0x122a)]=![];!_0x1bffba[_0x3922cf(0x1ada)]&&(_0x1bffba[_0x3922cf(0x1ada)]={},_0x1bffba[_0x3922cf(0x1189)]='TOOLS.NEW_CANNEDANSWER',_0x1bffba[_0x3922cf(0x122a)]=!![]);_0x1bffba['addNewCannedAnswer']=_0x3e4b00,_0x1bffba[_0x3922cf(0x8ab)]=_0x2b76bb,_0x1bffba[_0x3922cf(0x3f2)]=_0x121c95,_0x1bffba['getDateFromString']=_0x43dff7,_0x1bffba[_0x3922cf(0x13f3)]=_0x14024b;function _0x3e4b00(){const _0x348420=_0x3922cf;_0x1bffba[_0x348420(0xcef)]=[],_0x51cc57[_0x348420(0x1ada)][_0x348420(0x1e3)](_0x1bffba[_0x348420(0x1ada)])[_0x348420(0x2945)][_0x348420(0x146b)](function(_0x263144){const _0x463f3a=_0x348420;_0x1bffba[_0x463f3a(0x803)][_0x463f3a(0xb3d)](_0x263144[_0x463f3a(0x2488)]()),_0x263e54[_0x463f3a(0x1c75)]({'title':'CannedAnswer\x20properly\x20created','msg':_0x1bffba[_0x463f3a(0x1ada)][_0x463f3a(0x19eb)]?_0x1bffba[_0x463f3a(0x1ada)][_0x463f3a(0x19eb)]+'\x20has\x20been\x20created!':''}),_0x14024b(_0x263144);})[_0x348420(0x129e)](function(_0x295969){const _0x55f51f=_0x348420;if(_0x295969[_0x55f51f(0x524)]&&_0x295969[_0x55f51f(0x524)]['errors']&&_0x295969[_0x55f51f(0x524)]['errors'][_0x55f51f(0x402)]){_0x1bffba[_0x55f51f(0xcef)]=_0x295969[_0x55f51f(0x524)][_0x55f51f(0xcef)]||[{'message':_0x295969['toString'](),'type':_0x55f51f(0x13f)}];for(let _0x453185=0x0;_0x453185<_0x295969[_0x55f51f(0x524)][_0x55f51f(0xcef)][_0x55f51f(0x402)];_0x453185+=0x1){_0x263e54[_0x55f51f(0x1980)]({'title':_0x295969[_0x55f51f(0x524)][_0x55f51f(0xcef)][_0x453185][_0x55f51f(0x1142)],'msg':_0x295969[_0x55f51f(0x524)][_0x55f51f(0xcef)][_0x453185][_0x55f51f(0x7fd)]});}}else _0x263e54[_0x55f51f(0x1980)]({'title':_0x295969[_0x55f51f(0x107b)]?_0x55f51f(0x262a)+_0x295969[_0x55f51f(0x107b)]+_0x55f51f(0x1315)+_0x295969[_0x55f51f(0x167f)]:'api.cannedAnswer.save','msg':_0x295969[_0x55f51f(0x524)]?JSON[_0x55f51f(0x10bb)](_0x295969[_0x55f51f(0x524)][_0x55f51f(0x7fd)]):_0x295969[_0x55f51f(0xd5f)]()});});}function _0x2b76bb(){const _0xb40db=_0x3922cf;_0x1bffba[_0xb40db(0xcef)]=[],_0x51cc57[_0xb40db(0x1ada)][_0xb40db(0x18e1)]({'id':_0x1bffba['cannedAnswer']['id']},_0x1bffba[_0xb40db(0x1ada)])['$promise'][_0xb40db(0x146b)](function(_0x433d1c){const _0x2204f8=_0xb40db,_0x9590eb=_0x3f65c0()['find'](_0x1bffba[_0x2204f8(0x803)],{'id':_0x433d1c['id']});_0x9590eb&&_0x3f65c0()[_0x2204f8(0x168d)](_0x9590eb,_0x3f65c0()[_0x2204f8(0x40e)](_0x433d1c[_0x2204f8(0x2488)](),_0x3f65c0()[_0x2204f8(0x627)](_0x9590eb))),_0x263e54[_0x2204f8(0x1c75)]({'title':'CannedAnswer\x20properly\x20saved!','msg':_0x1bffba['cannedAnswer'][_0x2204f8(0x19eb)]?_0x1bffba[_0x2204f8(0x1ada)]['name']+'\x20has\x20been\x20saved!':''}),_0x14024b(_0x433d1c);})['catch'](function(_0x5b525e){const _0x45da3f=_0xb40db;if(_0x5b525e[_0x45da3f(0x524)]&&_0x5b525e[_0x45da3f(0x524)]['errors']&&_0x5b525e['data'][_0x45da3f(0xcef)]['length']){_0x1bffba['errors']=_0x5b525e[_0x45da3f(0x524)][_0x45da3f(0xcef)]||[{'message':_0x5b525e[_0x45da3f(0xd5f)](),'type':_0x45da3f(0x11ab)}];for(let _0x2bb809=0x0;_0x2bb809<_0x5b525e[_0x45da3f(0x524)][_0x45da3f(0xcef)]['length'];_0x2bb809++){_0x263e54[_0x45da3f(0x1980)]({'title':_0x5b525e[_0x45da3f(0x524)][_0x45da3f(0xcef)][_0x2bb809][_0x45da3f(0x1142)],'msg':_0x5b525e[_0x45da3f(0x524)]['errors'][_0x2bb809][_0x45da3f(0x7fd)]});}}else _0x263e54[_0x45da3f(0x1980)]({'title':_0x5b525e[_0x45da3f(0x107b)]?_0x45da3f(0x262a)+_0x5b525e['status']+_0x45da3f(0x1315)+_0x5b525e[_0x45da3f(0x167f)]:_0x45da3f(0x11ab),'msg':_0x5b525e[_0x45da3f(0x524)]?JSON[_0x45da3f(0x10bb)](_0x5b525e['data'][_0x45da3f(0x7fd)]):_0x5b525e['toString']()});});}function _0x121c95(_0x31a538){const _0x43618c=_0x3922cf;_0x1bffba[_0x43618c(0xcef)]=[];const _0x484950=_0x1f0a07[_0x43618c(0x1e8a)]()[_0x43618c(0x1189)](_0x43618c(0x1d64))['content'](_0x43618c(0x5ea))[_0x43618c(0x4bd)](_0x43618c(0x114b))['ok'](_0x43618c(0x25de))[_0x43618c(0x6c3)](_0x43618c(0xcf0))[_0x43618c(0x1f27)](_0x31a538);_0x1f0a07['show'](_0x484950)[_0x43618c(0x146b)](function(){const _0x5dd9f0=_0x43618c;_0x51cc57[_0x5dd9f0(0x1ada)]['delete']({'id':_0x1bffba['cannedAnswer']['id']})[_0x5dd9f0(0x2945)][_0x5dd9f0(0x146b)](function(){const _0x3c32b4=_0x5dd9f0;_0x3f65c0()[_0x3c32b4(0x2640)](_0x1bffba[_0x3c32b4(0x803)],{'id':_0x1bffba[_0x3c32b4(0x1ada)]['id']}),_0x263e54[_0x3c32b4(0x1c75)]({'title':_0x3c32b4(0x7eb),'msg':(_0x1bffba[_0x3c32b4(0x1ada)][_0x3c32b4(0x19eb)]||_0x3c32b4(0x1ada))+_0x3c32b4(0x23e3)}),_0x14024b(_0x1bffba['cannedAnswer']);})[_0x5dd9f0(0x129e)](function(_0x105538){const _0x50e484=_0x5dd9f0;if(_0x105538['data']&&_0x105538[_0x50e484(0x524)]['errors']&&_0x105538['data'][_0x50e484(0xcef)][_0x50e484(0x402)]){_0x1bffba[_0x50e484(0xcef)]=_0x105538['data'][_0x50e484(0xcef)]||[{'message':_0x105538[_0x50e484(0xd5f)](),'type':_0x50e484(0xe6a)}];for(let _0x50e4cd=0x0;_0x50e4cd<_0x105538['data'][_0x50e484(0xcef)][_0x50e484(0x402)];_0x50e4cd++){_0x263e54['error']({'title':_0x105538[_0x50e484(0x524)][_0x50e484(0xcef)][_0x50e4cd][_0x50e484(0x1142)],'msg':_0x105538['data'][_0x50e484(0xcef)][_0x50e4cd][_0x50e484(0x7fd)]});}}else _0x263e54['error']({'title':_0x105538[_0x50e484(0x107b)]?_0x50e484(0x262a)+_0x105538['status']+_0x50e484(0x1315)+_0x105538[_0x50e484(0x167f)]:_0x50e484(0xe6a),'msg':_0x105538['data']?JSON[_0x50e484(0x10bb)](_0x105538[_0x50e484(0x524)][_0x50e484(0x7fd)]):_0x105538[_0x50e484(0x7fd)]||_0x105538['toString']()});});},function(){});}function _0x43dff7(_0x5dada2){return _0x5dada2===null?undefined:new Date(_0x5dada2);}function _0x14024b(_0x48e8f8){_0x1f0a07['hide'](_0x48e8f8);}}const _0x509dff=_0x43b56e;;_0x1d8d1f[_0x313a4d(0x11c2)]=['$scope',_0x313a4d(0x1862),'$location',_0x313a4d(0x10e8),'$q',_0x313a4d(0x214b),'toasty',_0x313a4d(0x28a6),'customDashboard','api',_0x313a4d(0xa87),'license',_0x313a4d(0x15b9),'crudPermissions'];function _0x1d8d1f(_0x354c19,_0x1f0fab,_0x1bc163,_0xff43f,_0x47dd80,_0x164676,_0x44b856,_0x5a1be8,_0x3310ed,_0x27603d,_0x337de3,_0x245589,_0x41e1a5,_0x39042e){const _0x40969d=_0x313a4d,_0x495265=this;_0x495265[_0x40969d(0x2321)]=_0x337de3[_0x40969d(0xb12)](),_0x495265[_0x40969d(0xcef)]=[],_0x495265['setting']=_0x41e1a5,_0x495265[_0x40969d(0x2690)]=_0x245589,_0x495265['crudPermissions']=_0x39042e,_0x495265['hasModulePermissions']={},_0x495265[_0x40969d(0x2251)]=_0x495265['setting']&&_0x495265[_0x40969d(0x15b9)]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x495265[_0x40969d(0x1189)]=_0x40969d(0x2089),_0x495265[_0x40969d(0x1d3b)]=angular[_0x40969d(0x235a)](_0x3310ed),_0x495265['customDashboards']=_0x5a1be8,_0x495265[_0x40969d(0x2340)]=![];!_0x495265['customDashboard']&&(_0x495265[_0x40969d(0x1d3b)]={},_0x495265[_0x40969d(0x1189)]=_0x40969d(0x1ef7),_0x495265[_0x40969d(0x2340)]=!![]);_0x495265[_0x40969d(0x9bd)]=_0x27a21a,_0x495265[_0x40969d(0xd6b)]=_0x261288,_0x495265[_0x40969d(0x226f)]=_0x3d89b4,_0x495265[_0x40969d(0xe73)]=_0x436399,_0x495265[_0x40969d(0x13f3)]=_0x36806d;function _0x27a21a(){const _0x3c0a5a=_0x40969d;_0x495265['errors']=[],_0x27603d['dashboard'][_0x3c0a5a(0x1e3)](_0x495265[_0x3c0a5a(0x1d3b)])[_0x3c0a5a(0x2945)][_0x3c0a5a(0x146b)](function(_0x28e2c4){const _0x5d52a8=_0x3c0a5a;_0x495265[_0x5d52a8(0x28a6)][_0x5d52a8(0xb3d)](_0x28e2c4[_0x5d52a8(0x2488)]()),_0x44b856['success']({'title':_0x5d52a8(0xcd8),'msg':_0x495265['customDashboard'][_0x5d52a8(0x19eb)]?_0x495265[_0x5d52a8(0x1d3b)][_0x5d52a8(0x19eb)]+_0x5d52a8(0x1386):''}),_0x36806d(_0x28e2c4);})['catch'](function(_0x5212d5){const _0x4e4d8a=_0x3c0a5a;if(_0x5212d5[_0x4e4d8a(0x524)]&&_0x5212d5[_0x4e4d8a(0x524)][_0x4e4d8a(0xcef)]&&_0x5212d5[_0x4e4d8a(0x524)][_0x4e4d8a(0xcef)][_0x4e4d8a(0x402)]){_0x495265[_0x4e4d8a(0xcef)]=_0x5212d5[_0x4e4d8a(0x524)][_0x4e4d8a(0xcef)]||[{'message':_0x5212d5[_0x4e4d8a(0xd5f)](),'type':_0x4e4d8a(0x270a)}];for(let _0x4625a9=0x0;_0x4625a9<_0x5212d5[_0x4e4d8a(0x524)][_0x4e4d8a(0xcef)][_0x4e4d8a(0x402)];_0x4625a9+=0x1){_0x44b856[_0x4e4d8a(0x1980)]({'title':_0x5212d5[_0x4e4d8a(0x524)]['errors'][_0x4625a9][_0x4e4d8a(0x1142)],'msg':_0x5212d5[_0x4e4d8a(0x524)][_0x4e4d8a(0xcef)][_0x4625a9][_0x4e4d8a(0x7fd)]});}}else _0x44b856[_0x4e4d8a(0x1980)]({'title':_0x5212d5[_0x4e4d8a(0x107b)]?_0x4e4d8a(0x262a)+_0x5212d5['status']+_0x4e4d8a(0x1315)+_0x5212d5[_0x4e4d8a(0x167f)]:_0x4e4d8a(0x270a),'msg':_0x5212d5[_0x4e4d8a(0x524)]?JSON[_0x4e4d8a(0x10bb)](_0x5212d5['data'][_0x4e4d8a(0x7fd)]):_0x5212d5[_0x4e4d8a(0xd5f)]()});});}function _0x261288(){const _0x42787d=_0x40969d;_0x495265[_0x42787d(0xcef)]=[],_0x27603d['dashboard'][_0x42787d(0x18e1)]({'id':_0x495265['customDashboard']['id']},_0x495265['customDashboard'])[_0x42787d(0x2945)][_0x42787d(0x146b)](function(_0x34456e){const _0x3b2fcd=_0x42787d,_0x45e614=_0x3f65c0()['find'](_0x495265[_0x3b2fcd(0x28a6)],{'id':_0x34456e['id']});_0x45e614&&_0x3f65c0()[_0x3b2fcd(0x168d)](_0x45e614,_0x3f65c0()[_0x3b2fcd(0x40e)](_0x34456e[_0x3b2fcd(0x2488)](),_0x3f65c0()[_0x3b2fcd(0x627)](_0x45e614))),_0x44b856[_0x3b2fcd(0x1c75)]({'title':_0x3b2fcd(0x30c),'msg':_0x495265[_0x3b2fcd(0x1d3b)]['name']?_0x495265['customDashboard'][_0x3b2fcd(0x19eb)]+_0x3b2fcd(0x24db):''}),_0x36806d(_0x34456e);})[_0x42787d(0x129e)](function(_0x543402){const _0x2ce1eb=_0x42787d;if(_0x543402[_0x2ce1eb(0x524)]&&_0x543402[_0x2ce1eb(0x524)][_0x2ce1eb(0xcef)]&&_0x543402[_0x2ce1eb(0x524)][_0x2ce1eb(0xcef)][_0x2ce1eb(0x402)]){_0x495265[_0x2ce1eb(0xcef)]=_0x543402[_0x2ce1eb(0x524)][_0x2ce1eb(0xcef)]||[{'message':_0x543402[_0x2ce1eb(0xd5f)](),'type':'api.dashboard.update'}];for(let _0x5c1ce1=0x0;_0x5c1ce1<_0x543402[_0x2ce1eb(0x524)]['errors'][_0x2ce1eb(0x402)];_0x5c1ce1++){_0x44b856['error']({'title':_0x543402['data'][_0x2ce1eb(0xcef)][_0x5c1ce1]['type'],'msg':_0x543402[_0x2ce1eb(0x524)]['errors'][_0x5c1ce1][_0x2ce1eb(0x7fd)]});}}else _0x44b856[_0x2ce1eb(0x1980)]({'title':_0x543402[_0x2ce1eb(0x107b)]?_0x2ce1eb(0x262a)+_0x543402[_0x2ce1eb(0x107b)]+_0x2ce1eb(0x1315)+_0x543402['statusText']:_0x2ce1eb(0x1018),'msg':_0x543402['data']?JSON[_0x2ce1eb(0x10bb)](_0x543402[_0x2ce1eb(0x524)][_0x2ce1eb(0x7fd)]):_0x543402[_0x2ce1eb(0xd5f)]()});});}function _0x3d89b4(_0x51a4da){const _0x301d57=_0x40969d;_0x495265['errors']=[];const _0x502cbd=_0xff43f[_0x301d57(0x1e8a)]()['title'](_0x301d57(0x1d64))[_0x301d57(0x80f)]('The\x20customDashboard\x20will\x20be\x20deleted.')[_0x301d57(0x4bd)](_0x301d57(0x2455))['ok'](_0x301d57(0x25de))[_0x301d57(0x6c3)](_0x301d57(0xcf0))['targetEvent'](_0x51a4da);_0xff43f[_0x301d57(0x2615)](_0x502cbd)['then'](function(){const _0x9dadfa=_0x301d57;_0x27603d[_0x9dadfa(0x130)][_0x9dadfa(0x1fac)]({'id':_0x495265[_0x9dadfa(0x1d3b)]['id']})[_0x9dadfa(0x2945)][_0x9dadfa(0x146b)](function(){const _0x5598cb=_0x9dadfa;_0x3f65c0()[_0x5598cb(0x2640)](_0x495265[_0x5598cb(0x28a6)],{'id':_0x495265[_0x5598cb(0x1d3b)]['id']}),_0x44b856['success']({'title':_0x5598cb(0x1b9a),'msg':(_0x495265[_0x5598cb(0x1d3b)]['name']||_0x5598cb(0x1d3b))+_0x5598cb(0x23e3)}),_0x36806d(_0x495265[_0x5598cb(0x1d3b)]);})['catch'](function(_0x1b015d){const _0x322af4=_0x9dadfa;if(_0x1b015d[_0x322af4(0x524)]&&_0x1b015d['data'][_0x322af4(0xcef)]&&_0x1b015d[_0x322af4(0x524)][_0x322af4(0xcef)]['length']){_0x495265[_0x322af4(0xcef)]=_0x1b015d[_0x322af4(0x524)]['errors']||[{'message':_0x1b015d['toString'](),'type':'api.dashboard.delete'}];for(let _0x47f909=0x0;_0x47f909<_0x1b015d[_0x322af4(0x524)]['errors'][_0x322af4(0x402)];_0x47f909++){_0x44b856[_0x322af4(0x1980)]({'title':_0x1b015d[_0x322af4(0x524)][_0x322af4(0xcef)][_0x47f909][_0x322af4(0x1142)],'msg':_0x1b015d['data'][_0x322af4(0xcef)][_0x47f909][_0x322af4(0x7fd)]});}}else _0x44b856[_0x322af4(0x1980)]({'title':_0x1b015d[_0x322af4(0x107b)]?_0x322af4(0x262a)+_0x1b015d[_0x322af4(0x107b)]+'\x20-\x20'+_0x1b015d['statusText']:_0x322af4(0xf70),'msg':_0x1b015d[_0x322af4(0x524)]?JSON['stringify'](_0x1b015d[_0x322af4(0x524)][_0x322af4(0x7fd)]):_0x1b015d[_0x322af4(0x7fd)]||_0x1b015d[_0x322af4(0xd5f)]()});});},function(){});}function _0x436399(_0x12efa4){return _0x12efa4===null?undefined:new Date(_0x12efa4);}function _0x36806d(_0x4bcd9a){_0xff43f['hide'](_0x4bcd9a);}}const _0xca20dd=_0x1d8d1f;;const _0x1b38fc=_0x4acfac['p']+_0x313a4d(0x10ad);;_0x30024f['$inject']=['$scope','$window',_0x313a4d(0x1862),_0x313a4d(0x15fe),_0x313a4d(0x10e8),_0x313a4d(0x4d8),_0x313a4d(0x1abe),'$translate',_0x313a4d(0x28a6),_0x313a4d(0x26b6),'userProfileSection',_0x313a4d(0x247f),_0x313a4d(0x216c),_0x313a4d(0x1fe4),_0x313a4d(0xa87),'license',_0x313a4d(0x15b9)];function _0x30024f(_0x134f1d,_0x37b672,_0x1182d5,_0xd21ef5,_0xde3694,_0x392c2f,_0x27cd1b,_0x22d7fd,_0x3cd61e,_0x12543d,_0x4dbc7c,_0x15ecfb,_0x56e9b2,_0x1e9d6c,_0xebc1c,_0x4fa1b6,_0x12b395){const _0x141230=_0x313a4d,_0x53ea39=this;_0x53ea39['license']=_0x4fa1b6,_0x53ea39[_0x141230(0x15b9)]=_0x12b395,_0x53ea39[_0x141230(0x2321)]=_0xebc1c[_0x141230(0xb12)](),_0x53ea39[_0x141230(0x28a6)]=_0x3cd61e||{'count':0x0,'rows':[]},_0x53ea39[_0x141230(0x26b6)]=_0x12543d,_0x53ea39['userProfileSection']=_0x4dbc7c&&_0x4dbc7c[_0x141230(0x51c)]==0x1?_0x4dbc7c[_0x141230(0x19c7)][0x0]:null,_0x53ea39['crudPermissions']=_0xebc1c[_0x141230(0xe60)](_0x53ea39[_0x141230(0x1366)]?_0x53ea39['userProfileSection'][_0x141230(0x2514)]:null),_0x53ea39[_0x141230(0x768)]=_0x141230(0x28a6),_0x53ea39['listOrder']='',_0x53ea39[_0x141230(0x214f)]=null,_0x53ea39[_0x141230(0x1dde)]=[],_0x53ea39['query']={'fields':_0x141230(0x608),'sort':_0x141230(0x12f2),'limit':0xa,'page':0x1},_0x53ea39[_0x141230(0x23f9)]=_0x2c7ecb,_0x53ea39['gotodashboardgoto']=_0x3ca03e,_0x53ea39[_0x141230(0xf0a)]=_0x1569fc,_0x53ea39[_0x141230(0x1c75)]=_0x57042e,_0x53ea39[_0x141230(0x122)]=_0x20d182,_0x53ea39[_0x141230(0x1b83)]=_0x452eeb,_0x53ea39[_0x141230(0x226f)]=_0x2f44b5,_0x53ea39[_0x141230(0x1539)]=_0x50aeaa,_0x53ea39[_0x141230(0x26b)]=_0x9ce04c,_0x53ea39[_0x141230(0x23b4)]=_0x36969a,_0x53ea39[_0x141230(0xd34)]=_0x182ce2;function _0x2c7ecb(_0x14cdba){_0x1182d5['go']('app.tools.customDashboards.edit',{'id':_0x14cdba['id'],'customDashboard':_0x14cdba,'crudPermissions':_0x53ea39['crudPermissions']});}function _0x3ca03e(_0x5a2650){const _0x51cb0b=_0x141230;_0x1182d5['go'](_0x51cb0b(0x993),{'id':_0x5a2650['id']});}function _0x1569fc(_0x1dcaa6,_0x42b46e){const _0x5ddc37=_0x141230,_0xf67d5c=_0xde3694[_0x5ddc37(0x1e8a)]()['title'](_0x5ddc37(0xdb2)+_0x3f65c0()[_0x5ddc37(0x20d1)](_0x5ddc37(0x1d3b))+'?')['htmlContent'](_0x5ddc37(0x16d3)+(_0x1dcaa6[_0x5ddc37(0x19eb)]||_0x5ddc37(0x1d3b))+_0x5ddc37(0x252f)+_0x5ddc37(0xe01))['ariaLabel']('delete\x20customDashboard')[_0x5ddc37(0x1f27)](_0x42b46e)['ok']('OK')[_0x5ddc37(0x6c3)](_0x5ddc37(0x39a));_0xde3694[_0x5ddc37(0x2615)](_0xf67d5c)[_0x5ddc37(0x146b)](function(){_0x2f44b5(_0x1dcaa6);},function(){const _0x12b362=_0x5ddc37;console['log'](_0x12b362(0x39a));});}let _0x5483e6=!![],_0x394a09=0x1;_0x134f1d[_0x141230(0x21e8)]('vm.query.filter',function(_0x9bd5e5,_0xd62a3a){const _0x4ae89f=_0x141230;_0x5483e6?_0x27cd1b(function(){_0x5483e6=![];}):(!_0xd62a3a&&(_0x394a09=_0x53ea39[_0x4ae89f(0x1a56)][_0x4ae89f(0x844)]),_0x9bd5e5!==_0xd62a3a&&(_0x53ea39[_0x4ae89f(0x1a56)][_0x4ae89f(0x844)]=0x1),!_0x9bd5e5&&(_0x53ea39['query'][_0x4ae89f(0x844)]=_0x394a09),_0x53ea39[_0x4ae89f(0x122)]());});function _0x57042e(_0x1bdd0a){const _0x2241e5=_0x141230;_0x53ea39[_0x2241e5(0x28a6)]=_0x1bdd0a||{'count':0x0,'rows':[]};}function _0x20d182(){const _0x526b5d=_0x141230;_0x53ea39[_0x526b5d(0x1a56)][_0x526b5d(0x145d)]=(_0x53ea39['query'][_0x526b5d(0x844)]-0x1)*_0x53ea39[_0x526b5d(0x1a56)][_0x526b5d(0x221e)],_0xebc1c[_0x526b5d(0x23e0)](_0x526b5d(0x174b))?_0x53ea39['promise']=_0x15ecfb[_0x526b5d(0x130)][_0x526b5d(0x16b4)](_0x53ea39[_0x526b5d(0x1a56)],_0x57042e)[_0x526b5d(0x2945)]:(_0x53ea39['query']['id']=_0x53ea39[_0x526b5d(0x26b6)]['id'],_0x53ea39['query'][_0x526b5d(0x2146)]=_0x526b5d(0x907),_0x53ea39['promise']=_0x15ecfb[_0x526b5d(0x26b6)][_0x526b5d(0x158f)](_0x53ea39[_0x526b5d(0x1a56)],_0x57042e)[_0x526b5d(0x2945)]);}function _0x452eeb(_0x2f4e9d,_0x5453f2){const _0x36d4e8=_0x141230;_0xde3694[_0x36d4e8(0x2615)]({'controller':_0x36d4e8(0x5c6),'controllerAs':'vm','templateUrl':_0x1b38fc,'parent':angular['element'](_0x392c2f[_0x36d4e8(0x2586)]),'targetEvent':_0x2f4e9d,'clickOutsideToClose':!![],'locals':{'customDashboard':_0x5453f2,'customDashboards':_0x53ea39[_0x36d4e8(0x28a6)][_0x36d4e8(0x19c7)],'license':_0x53ea39['license'],'setting':_0x53ea39[_0x36d4e8(0x15b9)],'crudPermissions':_0x53ea39['crudPermissions']}});}function _0x2f44b5(_0x177a90){const _0x241de9=_0x141230;_0x15ecfb[_0x241de9(0x130)][_0x241de9(0x1fac)]({'id':_0x177a90['id']})[_0x241de9(0x2945)][_0x241de9(0x146b)](function(){const _0x51f786=_0x241de9;_0x3f65c0()[_0x51f786(0x2640)](_0x53ea39['customDashboards']['rows'],{'id':_0x177a90['id']}),_0x53ea39[_0x51f786(0x28a6)][_0x51f786(0x51c)]-=0x1,!_0x53ea39['customDashboards']['rows'][_0x51f786(0x402)]&&_0x53ea39[_0x51f786(0x122)](),_0x1e9d6c[_0x51f786(0x1c75)]({'title':_0x3f65c0()[_0x51f786(0x20d1)](_0x51f786(0x1f6d))+_0x51f786(0x201c),'msg':_0x177a90[_0x51f786(0x19eb)]?_0x177a90[_0x51f786(0x19eb)]+'\x20has\x20been\x20deleted!':''});})[_0x241de9(0x129e)](function(_0x5252e2){const _0xc83a99=_0x241de9;if(_0x5252e2['data']&&_0x5252e2['data'][_0xc83a99(0xcef)]&&_0x5252e2[_0xc83a99(0x524)][_0xc83a99(0xcef)][_0xc83a99(0x402)]){_0x53ea39[_0xc83a99(0xcef)]=_0x5252e2['data'][_0xc83a99(0xcef)]||[{'message':_0x5252e2['toString'](),'type':_0xc83a99(0x1ec7)}];for(let _0x54234f=0x0;_0x54234f<_0x5252e2[_0xc83a99(0x524)][_0xc83a99(0xcef)][_0xc83a99(0x402)];_0x54234f++){_0x1e9d6c['error']({'title':_0x5252e2[_0xc83a99(0x524)]['errors'][_0x54234f][_0xc83a99(0x1142)],'msg':_0x5252e2[_0xc83a99(0x524)][_0xc83a99(0xcef)][_0x54234f]['message']});}}else _0x1e9d6c['error']({'title':_0x5252e2['status']?_0xc83a99(0x262a)+_0x5252e2['status']+_0xc83a99(0x1315)+_0x5252e2[_0xc83a99(0x167f)]:_0xc83a99(0x1ec7),'msg':_0x5252e2[_0xc83a99(0x524)]?JSON['stringify'](_0x5252e2[_0xc83a99(0x524)]['message']):_0x5252e2['message']||_0x5252e2[_0xc83a99(0xd5f)]()});});}function _0x50aeaa(){const _0x470ec3=_0x141230,_0x43ccac=angular['copy'](_0x53ea39[_0x470ec3(0x1dde)]);return _0x53ea39[_0x470ec3(0x1dde)]=[],_0x43ccac;}function _0x9ce04c(_0x56f294){const _0x2cdf17=_0x141230,_0x435c6a=_0xde3694['confirm']()[_0x2cdf17(0x1189)](_0x2cdf17(0x76f))['htmlContent'](''+_0x53ea39['selectedCustomDashboards'][_0x2cdf17(0x402)]+_0x2cdf17(0x2452)+_0x2cdf17(0xe01))[_0x2cdf17(0x4bd)](_0x2cdf17(0x29d))[_0x2cdf17(0x1f27)](_0x56f294)['ok']('OK')[_0x2cdf17(0x6c3)](_0x2cdf17(0x39a));_0xde3694['show'](_0x435c6a)['then'](function(){const _0x3b4c03=_0x2cdf17;_0x53ea39['selectedCustomDashboards'][_0x3b4c03(0x1df5)](function(_0x9f09e){_0x2f44b5(_0x9f09e);}),_0x53ea39[_0x3b4c03(0x1dde)]=[];});}function _0x36969a(){const _0x2fcd96=_0x141230;_0x53ea39[_0x2fcd96(0x1dde)]=[];}function _0x182ce2(){const _0x4319b9=_0x141230;_0x53ea39[_0x4319b9(0x1dde)]=_0x53ea39[_0x4319b9(0x28a6)][_0x4319b9(0x19c7)];}}const _0x31c16c=_0x30024f;;_0x31534b[_0x313a4d(0x11c2)]=[_0x313a4d(0x10e8),'$state',_0x313a4d(0x1fe4),'api',_0x313a4d(0x1d3b),'customDashboards',_0x313a4d(0x214b)];function _0x31534b(_0x3ac64f,_0x38f66f,_0x262dab,_0x3f40f1,_0x4b20eb,_0x10ed8e,_0x507788){const _0x397ee4=_0x313a4d,_0x39bd83=this;_0x39bd83[_0x397ee4(0x2340)]=!![],_0x39bd83[_0x397ee4(0x1d3b)]=angular[_0x397ee4(0x235a)](_0x4b20eb),_0x39bd83[_0x397ee4(0x28a6)]=_0x10ed8e,_0x39bd83[_0x397ee4(0x1189)]=_0x507788[_0x397ee4(0xde)](_0x397ee4(0x1d2c));_0x4b20eb&&_0x4b20eb[_0x397ee4(0x19eb)]&&(_0x39bd83[_0x397ee4(0x1189)]+=':\x20'+_0x4b20eb[_0x397ee4(0x19eb)]);_0x39bd83['cloneCustomDashboard']=_0x2866c7,_0x39bd83['closeDialog']=_0x32334a;function _0x2866c7(){const _0x2d02b2=_0x397ee4;return _0x3f40f1[_0x2d02b2(0x130)][_0x2d02b2(0x12cc)]({'id':_0x4b20eb['id'],'includeAll':!![]},_0x39bd83[_0x2d02b2(0x1d3b)])[_0x2d02b2(0x2945)]['then'](function(_0x34b123){const _0x56c761=_0x2d02b2;_0x39bd83[_0x56c761(0x28a6)][_0x56c761(0xb3d)](_0x34b123[_0x56c761(0x2488)]()),_0x262dab['success']({'title':_0x56c761(0x22fc),'msg':_0x39bd83[_0x56c761(0x1d3b)][_0x56c761(0x19eb)]?_0x39bd83[_0x56c761(0x1d3b)][_0x56c761(0x19eb)]+_0x56c761(0x1b63):''}),_0x38f66f['go'](_0x56c761(0x9d8),{'id':_0x34b123['id']}),_0x32334a(_0x34b123);})[_0x2d02b2(0x129e)](function(_0x12a3b5){const _0x4fdb25=_0x2d02b2;if(_0x12a3b5[_0x4fdb25(0x524)]&&_0x12a3b5[_0x4fdb25(0x524)]['errors']&&_0x12a3b5[_0x4fdb25(0x524)]['errors'][_0x4fdb25(0x402)]){_0x39bd83[_0x4fdb25(0xcef)]=_0x12a3b5[_0x4fdb25(0x524)][_0x4fdb25(0xcef)]||[{'message':_0x12a3b5[_0x4fdb25(0xd5f)](),'type':_0x4fdb25(0x555)}];for(let _0xcaee34=0x0;_0xcaee34<_0x12a3b5['data'][_0x4fdb25(0xcef)]['length'];_0xcaee34+=0x1){_0x262dab[_0x4fdb25(0x1980)]({'title':_0x12a3b5[_0x4fdb25(0x524)][_0x4fdb25(0xcef)][_0xcaee34][_0x4fdb25(0x1142)],'msg':_0x12a3b5[_0x4fdb25(0x524)]['errors'][_0xcaee34][_0x4fdb25(0x7fd)]});}}else _0x262dab[_0x4fdb25(0x1980)]({'title':_0x12a3b5[_0x4fdb25(0x107b)]?_0x4fdb25(0x262a)+_0x12a3b5[_0x4fdb25(0x107b)]+_0x4fdb25(0x1315)+_0x12a3b5[_0x4fdb25(0x167f)]:'api.dashboard.clone','msg':_0x12a3b5[_0x4fdb25(0x524)]?JSON[_0x4fdb25(0x10bb)](_0x12a3b5['data']['message']):_0x12a3b5[_0x4fdb25(0xd5f)]()});});}function _0x32334a(_0x5dd507){const _0x3a6f70=_0x397ee4;_0x3ac64f[_0x3a6f70(0x2458)](_0x5dd507);}}const _0xc6f0e9=_0x31534b;;const _0xad439e=_0x4acfac['p']+'src/js/modules/main/apps/tools/views/customDashboards/edit/dashboard/dialog.html/dialog.html';;_0x53fcc0[_0x313a4d(0x11c2)]=[_0x313a4d(0x10e8),_0x313a4d(0x4d8),_0x313a4d(0x279d),_0x313a4d(0x1fe4),_0x313a4d(0x247f)];function _0x53fcc0(_0x31ec24,_0x13807e,_0x24dade,_0x8703a0,_0x4503d1){const _0x81f53a=_0x313a4d,_0x73f70a=this;_0x73f70a[_0x81f53a(0x1d3b)]={},_0x73f70a[_0x81f53a(0xa27)]=_0x4503d1[_0x81f53a(0x1af7)]['getVoiceQueues']({'fields':'id,name'}),_0x73f70a[_0x81f53a(0x5aa)]=_0x565ef8,_0x73f70a[_0x81f53a(0x6f5)]=_0x3fb0eb,_0x73f70a[_0x81f53a(0x1d52)]=_0x4ba822;function _0x565ef8(_0x557e6b,_0x13e5c3){const _0x2b21bd=_0x81f53a;return _0x73f70a[_0x2b21bd(0x2514)]=typeof _0x13e5c3!=='undefined'?_0x13e5c3:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x73f70a[_0x2b21bd(0x1d3b)]=_0x557e6b,_0x73f70a[_0x2b21bd(0x1d3b)][_0x2b21bd(0x2fe)]={'enabled':!![],'handle':_0x2b21bd(0x186d),'stop':_0x3db922},_0x73f70a['customDashboard'][_0x2b21bd(0x1d94)]={'enabled':!![],'handle':_0x2b21bd(0x20e1),'stop':_0x3db922},_0x73f70a[_0x2b21bd(0x1d3b)]['widgets']=[],_0x4503d1[_0x2b21bd(0x130)][_0x2b21bd(0xe92)]({'id':_0x557e6b['id']})[_0x2b21bd(0x2945)]['then'](function(_0xe046dc){const _0x4e5be4=_0x2b21bd;if(_0xe046dc&&_0xe046dc[_0x4e5be4(0x51c)]&&_0xe046dc[_0x4e5be4(0x19c7)])for(let _0x3e4557=0x0;_0x3e4557<_0xe046dc[_0x4e5be4(0x19c7)]['length'];_0x3e4557+=0x1){_0xe046dc['rows'][_0x3e4557][_0x4e5be4(0xa27)]=_0x73f70a[_0x4e5be4(0xa27)],_0xe046dc[_0x4e5be4(0x19c7)][_0x3e4557][_0x4e5be4(0x131b)]=_0x3f65c0()[_0x4e5be4(0x205)](_0x73f70a[_0x4e5be4(0xa27)]['rows'],'id'),_0xe046dc[_0x4e5be4(0x19c7)][_0x3e4557]['templateUrl']='app/core/directives/ms-widget-engine/ms-widget-engine-'+_0xe046dc[_0x4e5be4(0x19c7)][_0x3e4557][_0x4e5be4(0x1142)]+'/ms-widget-engine.'+_0xe046dc['rows'][_0x3e4557][_0x4e5be4(0x1142)]+_0x4e5be4(0x23d6),_0x73f70a['customDashboard'][_0x4e5be4(0x25f1)]['push'](_0xe046dc['rows'][_0x3e4557]);}})[_0x2b21bd(0x129e)](function(_0x51ccc8){const _0x5dc099=_0x2b21bd;console[_0x5dc099(0x1980)](_0x51ccc8);});}function _0x3fb0eb(_0x49d488){const _0x502b1c=_0x81f53a;if(_0x49d488&&_0x49d488[_0x502b1c(0x63a)])for(let _0xeeb528=0x0;_0xeeb528<_0x49d488['attrs'][_0x502b1c(0x402)];_0xeeb528+=0x1){_0x49d488['attrs'][_0xeeb528][_0x502b1c(0x19eb)]==='attrReport'&&(_0x49d488[_0x502b1c(0x22a)]=_0x49d488[_0x502b1c(0x63a)][_0xeeb528][_0x502b1c(0x1142)]),_0x49d488[_0x49d488[_0x502b1c(0x63a)][_0xeeb528][_0x502b1c(0x19eb)]]=_0x49d488[_0x502b1c(0x63a)][_0xeeb528][_0x502b1c(0x175d)];}_0x31ec24[_0x502b1c(0x2615)]({'controller':'CreateOrEditDashboardItemDialogController','controllerAs':'vm','templateUrl':_0xad439e,'parent':angular[_0x502b1c(0x1853)](_0x13807e[_0x502b1c(0x2586)]),'clickOutsideToClose':!![],'locals':{'dashboarditem':_0x49d488,'dashboard':_0x73f70a[_0x502b1c(0x1d3b)][_0x502b1c(0x25f1)],'license':null,'setting':null,'crudPermissions':_0x73f70a[_0x502b1c(0x2514)]}})[_0x502b1c(0x146b)](function(_0x21f302){const _0x355e83=_0x502b1c;if(_0x21f302)for(let _0x442c41=0x0;_0x442c41<_0x73f70a['customDashboard']['widgets'][_0x355e83(0x402)];_0x442c41+=0x1){_0x73f70a['customDashboard'][_0x355e83(0x25f1)][_0x442c41]['id']===_0x21f302['id']&&(_0x73f70a[_0x355e83(0x1d3b)]['widgets'][_0x442c41]['attrs']=_0x21f302['attrs'],_0x73f70a[_0x355e83(0x1d3b)][_0x355e83(0x25f1)][_0x442c41][_0x355e83(0xa27)]=_0x73f70a[_0x355e83(0xa27)],_0x73f70a[_0x355e83(0x1d3b)][_0x355e83(0x25f1)][_0x442c41][_0x355e83(0x131b)]=_0x3f65c0()['map'](_0x73f70a[_0x355e83(0xa27)]['rows'],'id'),_0x73f70a[_0x355e83(0x1d3b)][_0x355e83(0x25f1)][_0x442c41]['templateUrl']=_0x355e83(0xbb5)+_0x73f70a[_0x355e83(0x1d3b)][_0x355e83(0x25f1)][_0x442c41][_0x355e83(0x1142)]+_0x355e83(0x1cfb)+_0x73f70a[_0x355e83(0x1d3b)][_0x355e83(0x25f1)][_0x442c41][_0x355e83(0x1142)]+_0x355e83(0x23d6));}});}function _0x4ba822(_0x13f39f){const _0x412917=_0x81f53a,_0x116c2b=_0x31ec24[_0x412917(0x1e8a)]()[_0x412917(0x1189)]('Would\x20you\x20like\x20to\x20delete\x20'+_0x13f39f['title']+'?')['textContent']('')[_0x412917(0x4bd)]('Delete\x20Widget')['ok'](_0x412917(0x14c7))[_0x412917(0x6c3)]('NO');_0x31ec24['show'](_0x116c2b)[_0x412917(0x146b)](function(){const _0x2c0d19=_0x412917;return _0x4503d1[_0x2c0d19(0x1afa)][_0x2c0d19(0x1fac)]({'id':_0x13f39f['id']})[_0x2c0d19(0x2945)][_0x2c0d19(0x146b)](function(){const _0x314a76=_0x2c0d19;_0x3f65c0()[_0x314a76(0x2640)](_0x73f70a[_0x314a76(0x1d3b)][_0x314a76(0x25f1)],{'id':_0x13f39f['id']}),_0x8703a0['success']({'title':_0x314a76(0x1ba1),'msg':_0x13f39f['name']?_0x13f39f[_0x314a76(0x19eb)]+_0x314a76(0x23e3):_0x314a76(0x11d4)});})[_0x2c0d19(0x129e)](function(_0x84044){const _0x547d2a=_0x2c0d19;if(_0x84044[_0x547d2a(0x524)]&&_0x84044['data'][_0x547d2a(0xcef)]&&_0x84044[_0x547d2a(0x524)][_0x547d2a(0xcef)]['length']){_0x73f70a[_0x547d2a(0xcef)]=_0x84044['data'][_0x547d2a(0xcef)]||[{'message':_0x84044[_0x547d2a(0xd5f)](),'type':_0x547d2a(0x1c4)}];for(let _0x3ae4b0=0x0;_0x3ae4b0<_0x84044[_0x547d2a(0x524)][_0x547d2a(0xcef)][_0x547d2a(0x402)];_0x3ae4b0++){_0x8703a0[_0x547d2a(0x1980)]({'title':_0x84044[_0x547d2a(0x524)]['errors'][_0x3ae4b0][_0x547d2a(0x1142)],'msg':_0x84044[_0x547d2a(0x524)]['errors'][_0x3ae4b0][_0x547d2a(0x7fd)]});}}else _0x8703a0['error']({'title':_0x84044[_0x547d2a(0x107b)]?'API:'+_0x84044[_0x547d2a(0x107b)]+'\x20-\x20'+_0x84044['statusText']:_0x547d2a(0x1ec7),'msg':_0x84044[_0x547d2a(0x524)]?JSON[_0x547d2a(0x10bb)](_0x84044[_0x547d2a(0x524)][_0x547d2a(0x7fd)]):_0x84044['message']||_0x84044[_0x547d2a(0xd5f)]()});console[_0x547d2a(0x1980)](_0x84044);});});}function _0x3db922(_0xa9c56b,_0x4b9338,_0x191af8){const _0x3eaebb=_0x81f53a;return _0x4503d1[_0x3eaebb(0x1afa)][_0x3eaebb(0x18e1)](_0x191af8)[_0x3eaebb(0x2945)][_0x3eaebb(0x129e)](function(_0x1e7d3d){const _0x51a7d9=_0x3eaebb;console[_0x51a7d9(0x1980)](_0x1e7d3d);});}}const _0x19bcb7=_0x53fcc0;;const _0xc6b68d=_0x4acfac['p']+'src/js/modules/main/apps/tools/views/customDashboards/partialViews/reports/treeReports.html/treeReports.html';;_0x347343[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1862),_0x313a4d(0xd08),_0x313a4d(0x10e8),'$q',_0x313a4d(0x214b),_0x313a4d(0x1fe4),_0x313a4d(0x130),_0x313a4d(0x5e4),_0x313a4d(0x247f),_0x313a4d(0xa87),_0x313a4d(0x2690),_0x313a4d(0x15b9),_0x313a4d(0x2514)];function _0x347343(_0x7f9b7a,_0x428ffe,_0x1639cc,_0x1a2005,_0x460137,_0x459ca6,_0x50886d,_0x4db174,_0x5ab620,_0x5e246d,_0x380727,_0x884957,_0x4699ca,_0x297b6f){const _0x12e568=_0x313a4d,_0x496add=this;_0x496add[_0x12e568(0x2321)]=_0x380727[_0x12e568(0xb12)](),_0x496add[_0x12e568(0xcef)]=[],_0x496add['setting']=_0x4699ca,_0x496add['license']=_0x884957,_0x496add[_0x12e568(0x2514)]=_0x297b6f,_0x496add[_0x12e568(0x855)]={},_0x496add[_0x12e568(0x2251)]=_0x496add[_0x12e568(0x15b9)]&&_0x496add[_0x12e568(0x15b9)]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x496add[_0x12e568(0x1189)]=_0x12e568(0x1fe),_0x496add[_0x12e568(0x5e4)]=angular[_0x12e568(0x235a)](_0x5ab620),_0x496add[_0x12e568(0x130)]=_0x4db174,_0x496add['newDashboardItem']=![],_0x496add[_0x12e568(0x1f30)]=[],_0x496add[_0x12e568(0x1a56)]={'fields':_0x12e568(0x25ce),'limit':0xa,'page':0x1,'sort':_0x12e568(0x12f2)};!_0x496add[_0x12e568(0x5e4)]?(_0x496add[_0x12e568(0x5e4)]={'type':_0x12e568(0x7f3),'attrUrl':_0x12e568(0xf69),'attrHourFormat':_0x12e568(0x14e),'attrTimezone':_0x12e568(0xb23),'attrMetric':'total','attrSerie1':'total','attrSerie2':_0x12e568(0x203c),'attrSerie3':_0x12e568(0x203c),'attrRefresh':0xa,'attrFontSize':0x14,'foreground':_0x12e568(0x171e),'background':'#ffffff'},_0x496add[_0x12e568(0x1189)]=_0x12e568(0x2049),_0x496add[_0x12e568(0x19a9)]=!![]):_0x496add[_0x12e568(0x5e4)][_0x12e568(0x1142)]==_0x12e568(0xb82)&&(_0x496add['apiName']=_0x496add[_0x12e568(0x5e4)][_0x12e568(0x22a)]===_0x12e568(0x1802)?_0x12e568(0x12a5):'analyticDefaultReport',_0x5e246d[_0x496add[_0x12e568(0x320)]][_0x12e568(0x16b4)]({'fields':_0x12e568(0x2134)})['$promise'][_0x12e568(0x146b)](function(_0x57dfc2){const _0xc7c3c2=_0x12e568;_0x496add[_0xc7c3c2(0x1cec)]=_0x3f65c0()['find'](_0x57dfc2[_0xc7c3c2(0x19c7)],{'id':_0x496add['dashboarditem']['attrReport']}),_0x496add[_0xc7c3c2(0x5e4)][_0xc7c3c2(0x1c9a)]=_0x496add[_0xc7c3c2(0x1cec)][_0xc7c3c2(0x19eb)],_0x496add[_0xc7c3c2(0x1a56)]['parent']=_0x496add[_0xc7c3c2(0x1cec)][_0xc7c3c2(0x3fd)];}));_0x496add[_0x12e568(0x23f3)]=_0x5d99df,_0x496add[_0x12e568(0x633)]=_0x978af1,_0x496add[_0x12e568(0x2687)]=_0x453e58,_0x496add[_0x12e568(0xe73)]=_0x363bc9,_0x496add[_0x12e568(0x12f7)]=_0x1e3a25,_0x496add[_0x12e568(0xfd7)]=_0x59e509,_0x496add['closeReportDialog']=_0x5749be,_0x496add['searchReport']=_0x1b178c,_0x496add[_0x12e568(0x13f3)]=_0x2ce68f,_0x5e246d[_0x12e568(0x888)][_0x12e568(0x16b4)]({})['$promise'][_0x12e568(0x146b)](function(_0x5e76e7){const _0x343b24=_0x12e568;_0x496add[_0x343b24(0x728)]=_0x5e76e7[_0x343b24(0x19c7)]||[];})['catch'](function(_0x427ca8){const _0x3a48fc=_0x12e568;_0x50886d[_0x3a48fc(0x1980)]({'title':_0x427ca8['status']?_0x3a48fc(0x262a)+_0x427ca8[_0x3a48fc(0x107b)]+_0x3a48fc(0x1315)+_0x427ca8[_0x3a48fc(0x167f)]:_0x3a48fc(0x1f8c),'msg':_0x427ca8['data']?JSON['stringify'](_0x427ca8[_0x3a48fc(0x524)]):_0x427ca8[_0x3a48fc(0xd5f)]()});});const _0x2dc38a=[{'id':0x191,'type':'inbound'},{'id':0x5dd,'type':_0x12e568(0xc9c)}];let _0x1550c9=null;_0x380727[_0x12e568(0x23e0)]('admin')?_0x5e246d[_0x12e568(0x1446)][_0x12e568(0x16b4)]({'fields':_0x12e568(0x45e),'sort':_0x12e568(0x19eb),'nolimit':_0x12e568(0x1185)})[_0x12e568(0x2945)][_0x12e568(0x146b)](function(_0x4e856c){const _0x655c87=_0x12e568;_0x496add[_0x655c87(0xa27)]=_0x4e856c[_0x655c87(0x19c7)]||[];})['catch'](function(_0x10b4ab){const _0x4e735e=_0x12e568;_0x50886d[_0x4e735e(0x1980)]({'title':_0x10b4ab[_0x4e735e(0x107b)]?_0x4e735e(0x262a)+_0x10b4ab[_0x4e735e(0x107b)]+_0x4e735e(0x1315)+_0x10b4ab[_0x4e735e(0x167f)]:_0x4e735e(0x12cf),'msg':_0x10b4ab[_0x4e735e(0x524)]?JSON[_0x4e735e(0x10bb)](_0x10b4ab[_0x4e735e(0x524)]):_0x10b4ab[_0x4e735e(0xd5f)]()});}):_0x5e246d[_0x12e568(0x1446)][_0x12e568(0x16b4)]({'fields':'id,name,type','sort':_0x12e568(0x19eb),'nolimit':'true'})['$promise']['then'](function(_0x5f0744){const _0x4553b2=_0x12e568;_0x1550c9=_0x5f0744[_0x4553b2(0x19c7)]||[];})[_0x12e568(0x146b)](function(){const _0x1096ce=_0x12e568,_0x15a6b4=[];for(let _0x250484=0x0;_0x250484<_0x2dc38a[_0x1096ce(0x402)];_0x250484++){_0x15a6b4['push'](_0x5e246d[_0x1096ce(0x1366)][_0x1096ce(0x16b4)]({'userProfileId':_0x496add[_0x1096ce(0x2321)][_0x1096ce(0x209a)],'sectionId':_0x2dc38a[_0x250484]['id']})[_0x1096ce(0x2945)]);}return _0x460137[_0x1096ce(0x1be2)](_0x15a6b4);})[_0x12e568(0x146b)](function(_0x3ae9d1){const _0x6071df=_0x12e568,_0x1db358=_0x3f65c0()[_0x6071df(0x205)](_0x3ae9d1,function(_0x2630ea){const _0x551d47=_0x6071df;return _0x2630ea&&_0x2630ea[_0x551d47(0x19c7)]?_0x2630ea[_0x551d47(0x19c7)][0x0]:null;}),_0xc38757=[];for(let _0xcfd214=0x0;_0xcfd214<_0x2dc38a[_0x6071df(0x402)];_0xcfd214++){const _0x18b0b4=_0x3f65c0()[_0x6071df(0xc84)](_0x1db358,[_0x6071df(0x631),_0x2dc38a[_0xcfd214]['id']]);if(_0x18b0b4){if(!_0x18b0b4['autoAssociation'])_0xc38757[_0x6071df(0x1f47)](_0x5e246d['userProfileResource'][_0x6071df(0x16b4)]({'sectionId':_0x18b0b4['id']})['$promise']);else{const _0x3dd364=[];_0x1550c9[_0x6071df(0x1df5)](function(_0x59cbe0){const _0x19568b=_0x6071df;_0x59cbe0[_0x19568b(0x1142)]===_0x2dc38a[_0xcfd214][_0x19568b(0x1142)]&&_0x3dd364[_0x19568b(0x1f47)](_0x59cbe0);}),_0xc38757[_0x6071df(0x1f47)]({'rows':_0x3dd364,'count':_0x3dd364[_0x6071df(0x402)]});}}}return _0x460137['all'](_0xc38757);})[_0x12e568(0x146b)](function(_0x3e2511){const _0x1ebc99=_0x12e568,_0x42aabe=[];let _0x35c4d3=null;_0x496add[_0x1ebc99(0x5e4)]&&(_0x35c4d3=_0x3f65c0()[_0x1ebc99(0xc84)](_0x1550c9,{'id':Number(_0x496add[_0x1ebc99(0x5e4)]['attrVoiceQueues'])}));for(let _0x35b5f9=0x0;_0x35b5f9<_0x3e2511[_0x1ebc99(0x402)];_0x35b5f9++){const _0x494fbb=_0x3e2511[_0x35b5f9][_0x1ebc99(0x19c7)]||[];_0x494fbb[_0x1ebc99(0x1df5)](function(_0x144142){const _0x25d72f=_0x1ebc99;_0x42aabe[_0x25d72f(0x1f47)](_0x144142);});}_0x35c4d3&&!_0x3f65c0()[_0x1ebc99(0x1360)](_0x42aabe,[_0x1ebc99(0x18b8),_0x35c4d3['id']])&&_0x1550c9['forEach'](function(_0x5eb788){const _0x37347b=_0x1ebc99;_0x5eb788['id']===_0x35c4d3['id']&&(_0x5eb788[_0x37347b(0x8ff)]=![],_0x42aabe['push'](_0x5eb788));}),_0x496add['voiceQueues']=_0x42aabe;})[_0x12e568(0x129e)](function(_0x368b7d){const _0x1495d3=_0x12e568;_0x50886d[_0x1495d3(0x1980)]({'title':_0x368b7d[_0x1495d3(0x107b)]?_0x1495d3(0x262a)+_0x368b7d[_0x1495d3(0x107b)]+_0x1495d3(0x1315)+_0x368b7d['statusText']:'SYSTEM:GETvoiceQueues','msg':_0x368b7d[_0x1495d3(0x524)]?JSON[_0x1495d3(0x10bb)](_0x368b7d[_0x1495d3(0x524)]):_0x368b7d[_0x1495d3(0xd5f)]()});});function _0x5d99df(){const _0x1ac67b=_0x12e568;_0x496add[_0x1ac67b(0xcef)]=[],_0x5e246d[_0x1ac67b(0x130)][_0x1ac67b(0x1e31)]({'id':_0x428ffe['params']['id']},_0x496add[_0x1ac67b(0x5e4)])[_0x1ac67b(0x2945)][_0x1ac67b(0x146b)](function(_0xe14503){const _0x13a5ff=_0x1ac67b;_0x496add[_0x13a5ff(0x130)][_0x13a5ff(0xb3d)](_0xe14503[_0x13a5ff(0x2488)]()),_0x50886d[_0x13a5ff(0x1c75)]({'title':_0x13a5ff(0x2351),'msg':_0x496add[_0x13a5ff(0x5e4)][_0x13a5ff(0x19eb)]?_0x496add[_0x13a5ff(0x5e4)][_0x13a5ff(0x19eb)]+_0x13a5ff(0x1386):''}),_0x2ce68f(_0xe14503);})['catch'](function(_0x41f258){const _0x4207e2=_0x1ac67b;if(_0x41f258[_0x4207e2(0x524)]&&_0x41f258[_0x4207e2(0x524)]['errors']&&_0x41f258[_0x4207e2(0x524)]['errors'][_0x4207e2(0x402)]){_0x496add[_0x4207e2(0xcef)]=_0x41f258['data']['errors']||[{'message':_0x41f258[_0x4207e2(0xd5f)](),'type':_0x4207e2(0x60c)}];for(let _0x1cfbca=0x0;_0x1cfbca<_0x41f258['data'][_0x4207e2(0xcef)][_0x4207e2(0x402)];_0x1cfbca+=0x1){_0x50886d[_0x4207e2(0x1980)]({'title':_0x41f258['data'][_0x4207e2(0xcef)][_0x1cfbca][_0x4207e2(0x1142)],'msg':_0x41f258[_0x4207e2(0x524)][_0x4207e2(0xcef)][_0x1cfbca][_0x4207e2(0x7fd)]});}}else _0x50886d[_0x4207e2(0x1980)]({'title':_0x41f258['status']?'API:'+_0x41f258['status']+_0x4207e2(0x1315)+_0x41f258[_0x4207e2(0x167f)]:'api.dashboardItem.save','msg':_0x41f258[_0x4207e2(0x524)]?JSON[_0x4207e2(0x10bb)](_0x41f258['data']['message']):_0x41f258[_0x4207e2(0xd5f)]()});});}function _0x978af1(){const _0x9867dc=_0x12e568;_0x496add['errors']=[],_0x5e246d['dashboardItem'][_0x9867dc(0x18e1)]({'id':_0x496add[_0x9867dc(0x5e4)]['id']},_0x496add[_0x9867dc(0x5e4)])[_0x9867dc(0x2945)][_0x9867dc(0x146b)](function(_0x3584af){const _0x378020=_0x9867dc,_0x13287b=_0x3f65c0()['find'](_0x496add[_0x378020(0x130)],{'id':_0x3584af['id']});_0x13287b&&_0x3f65c0()[_0x378020(0x168d)](_0x13287b,_0x3f65c0()[_0x378020(0x40e)](_0x3584af['toJSON'](),_0x3f65c0()[_0x378020(0x627)](_0x13287b))),_0x50886d[_0x378020(0x1c75)]({'title':_0x378020(0xd2b),'msg':_0x496add['dashboarditem'][_0x378020(0x19eb)]?_0x496add[_0x378020(0x5e4)][_0x378020(0x19eb)]+'\x20has\x20been\x20saved!':''}),_0x2ce68f(_0x3584af);})[_0x9867dc(0x129e)](function(_0x1cf7d2){const _0x330d03=_0x9867dc;if(_0x1cf7d2['data']&&_0x1cf7d2[_0x330d03(0x524)][_0x330d03(0xcef)]&&_0x1cf7d2['data'][_0x330d03(0xcef)][_0x330d03(0x402)]){_0x496add[_0x330d03(0xcef)]=_0x1cf7d2[_0x330d03(0x524)][_0x330d03(0xcef)]||[{'message':_0x1cf7d2[_0x330d03(0xd5f)](),'type':_0x330d03(0x1afd)}];for(let _0x486363=0x0;_0x486363<_0x1cf7d2[_0x330d03(0x524)][_0x330d03(0xcef)][_0x330d03(0x402)];_0x486363++){_0x50886d['error']({'title':_0x1cf7d2[_0x330d03(0x524)][_0x330d03(0xcef)][_0x486363][_0x330d03(0x1142)],'msg':_0x1cf7d2['data'][_0x330d03(0xcef)][_0x486363][_0x330d03(0x7fd)]});}}else _0x50886d[_0x330d03(0x1980)]({'title':_0x1cf7d2[_0x330d03(0x107b)]?_0x330d03(0x262a)+_0x1cf7d2[_0x330d03(0x107b)]+_0x330d03(0x1315)+_0x1cf7d2[_0x330d03(0x167f)]:'api.dashboardItem.update','msg':_0x1cf7d2[_0x330d03(0x524)]?JSON['stringify'](_0x1cf7d2[_0x330d03(0x524)]['message']):_0x1cf7d2['toString']()});});}function _0x453e58(_0x28953b){const _0x3152d4=_0x12e568;_0x496add['errors']=[];const _0x2c29f7=_0x1a2005[_0x3152d4(0x1e8a)]()['title'](_0x3152d4(0x1d64))[_0x3152d4(0x80f)]('The\x20dashboarditem\x20will\x20be\x20deleted.')[_0x3152d4(0x4bd)](_0x3152d4(0x1a99))['ok'](_0x3152d4(0x25de))['cancel'](_0x3152d4(0xcf0))[_0x3152d4(0x1f27)](_0x28953b);_0x1a2005[_0x3152d4(0x2615)](_0x2c29f7)['then'](function(){const _0x1a1de3=_0x3152d4;_0x5e246d[_0x1a1de3(0x1afa)][_0x1a1de3(0x1fac)]({'id':_0x496add[_0x1a1de3(0x5e4)]['id']})[_0x1a1de3(0x2945)]['then'](function(){const _0x26dfb3=_0x1a1de3;_0x3f65c0()[_0x26dfb3(0x2640)](_0x496add['dashboard'],{'id':_0x496add[_0x26dfb3(0x5e4)]['id']}),_0x50886d[_0x26dfb3(0x1c75)]({'title':'DashboardItem\x20properly\x20deleted!','msg':(_0x496add[_0x26dfb3(0x5e4)][_0x26dfb3(0x19eb)]||'dashboarditem')+_0x26dfb3(0x23e3)}),_0x2ce68f(_0x496add[_0x26dfb3(0x5e4)]);})[_0x1a1de3(0x129e)](function(_0x28db60){const _0x403c3a=_0x1a1de3;if(_0x28db60[_0x403c3a(0x524)]&&_0x28db60['data'][_0x403c3a(0xcef)]&&_0x28db60[_0x403c3a(0x524)][_0x403c3a(0xcef)][_0x403c3a(0x402)]){_0x496add[_0x403c3a(0xcef)]=_0x28db60[_0x403c3a(0x524)][_0x403c3a(0xcef)]||[{'message':_0x28db60[_0x403c3a(0xd5f)](),'type':_0x403c3a(0x22ea)}];for(let _0x147a95=0x0;_0x147a95<_0x28db60[_0x403c3a(0x524)][_0x403c3a(0xcef)][_0x403c3a(0x402)];_0x147a95++){_0x50886d[_0x403c3a(0x1980)]({'title':_0x28db60[_0x403c3a(0x524)][_0x403c3a(0xcef)][_0x147a95][_0x403c3a(0x1142)],'msg':_0x28db60['data'][_0x403c3a(0xcef)][_0x147a95]['message']});}}else _0x50886d[_0x403c3a(0x1980)]({'title':_0x28db60[_0x403c3a(0x107b)]?'API:'+_0x28db60[_0x403c3a(0x107b)]+_0x403c3a(0x1315)+_0x28db60[_0x403c3a(0x167f)]:_0x403c3a(0x22ea),'msg':_0x28db60[_0x403c3a(0x524)]?JSON[_0x403c3a(0x10bb)](_0x28db60[_0x403c3a(0x524)]['message']):_0x28db60[_0x403c3a(0x7fd)]||_0x28db60[_0x403c3a(0xd5f)]()});});},function(){});}function _0x35fd0c(){const _0x206ebd=_0x12e568,_0x40afbb={'core':{'multiple':![],'animation':!![],'error':function(_0x2216cd){const _0x773ec4=a0_0x3bb9;console[_0x773ec4(0x1980)](_0x773ec4(0x535)+angular[_0x773ec4(0x217d)](_0x2216cd));},'check_callback':!![],'worker':!![]},'version':0x1,'plugins':[_0x206ebd(0x5e6)]};return _0x496add[_0x206ebd(0x2321)][_0x206ebd(0xfb0)]!==_0x206ebd(0x174b)?_0x5e246d[_0x206ebd(0x1366)]['get']({'fields':_0x206ebd(0x1e64),'userProfileId':_0x496add[_0x206ebd(0x2321)][_0x206ebd(0x209a)],'sectionId':0x4b3})[_0x206ebd(0x2945)][_0x206ebd(0x146b)](function(_0x1c12d1){const _0x15c1e2=_0x206ebd;return _0x496add[_0x15c1e2(0x1366)]=_0x1c12d1&&_0x1c12d1[_0x15c1e2(0x51c)]==0x1?_0x1c12d1[_0x15c1e2(0x19c7)][0x0]:null,_0x40afbb;})[_0x206ebd(0x129e)](function(_0x49b7e7){const _0x293f05=_0x206ebd;_0x50886d[_0x293f05(0x1980)]({'title':_0x293f05(0x10f5),'msg':_0x49b7e7[_0x293f05(0x7fd)]});}):_0x40afbb;}function _0x59fe7e(_0x5a8c4b){return _0x5a8c4b?{'loaded':_0x5c2b8f,'select_node':_0x573b1d}:{'loaded':_0x26e13c,'select_node':_0x5978d7};}function _0x573b1d(_0x424c3e,_0x53842e){const _0xde7697=_0x12e568;_0x496add[_0xde7697(0x1d1a)][_0xde7697(0x7e1)](!![])['deselect_all'](),_0x496add[_0xde7697(0x1d1a)][_0xde7697(0x7e1)](!![])[_0xde7697(0x25fd)](),_0x496add['currentNode']=_0x53842e[_0xde7697(0x8f7)],_0x496add[_0xde7697(0x13cf)][_0xde7697(0x1802)]=!![],_0x496add[_0xde7697(0x25e4)]=_0x496add['treeCustomInstance']['jstree'](!![])[_0xde7697(0x11ba)](_0x496add[_0xde7697(0x13cf)])['join']('/\x20'),_0x496add[_0xde7697(0x320)]=_0xde7697(0x12a5),_0x496add[_0xde7697(0x1a56)]['parent']=_0x53842e[_0xde7697(0x8f7)]['id'],_0x1e3a25();}function _0x5978d7(_0x3634b4,_0x3bfa95){const _0x4ff482=_0x12e568;_0x496add['treeCustomInstance'][_0x4ff482(0x7e1)](!![])[_0x4ff482(0xe99)](),_0x496add[_0x4ff482(0x25f7)][_0x4ff482(0x7e1)](!![])['close_all'](),_0x496add[_0x4ff482(0x13cf)]=_0x3bfa95['node'],_0x496add[_0x4ff482(0x13cf)]['custom']=![],_0x496add[_0x4ff482(0x25e4)]=_0x496add[_0x4ff482(0x1d1a)]['jstree'](!![])[_0x4ff482(0x11ba)](_0x496add[_0x4ff482(0x13cf)])[_0x4ff482(0xb47)]('/\x20'),_0x496add[_0x4ff482(0x320)]=_0x4ff482(0x20fa),_0x496add[_0x4ff482(0x1a56)][_0x4ff482(0x3fd)]=_0x3bfa95[_0x4ff482(0x8f7)]['id'],_0x1e3a25();}function _0x5c2b8f(){const _0x86f114=_0x12e568;if(!_0x496add[_0x86f114(0x19a9)]&&_0x496add[_0x86f114(0x320)]==='analyticCustomReport'){const _0x5db21a=_0x496add[_0x86f114(0x25f7)][_0x86f114(0x7e1)](!![])[_0x86f114(0x1ba0)](_0x496add[_0x86f114(0x1a56)][_0x86f114(0x3fd)]);_0x573b1d(null,{'node':_0x5db21a,'selected':_0x5db21a['id']});}}function _0x26e13c(){const _0x59ce05=_0x12e568;if(!_0x496add['newDashboardItem']&&_0x496add[_0x59ce05(0x320)]==='analyticDefaultReport'){const _0x133ca8=_0x496add[_0x59ce05(0x1d1a)][_0x59ce05(0x7e1)](!![])[_0x59ce05(0x1ba0)](_0x496add['query'][_0x59ce05(0x3fd)]);_0x5978d7(null,{'node':_0x133ca8,'selected':_0x133ca8['id']});}}function _0x1e3a25(){const _0x3fe2d8=_0x12e568;_0x496add[_0x3fe2d8(0x1a56)][_0x3fe2d8(0x145d)]=(_0x496add[_0x3fe2d8(0x1a56)][_0x3fe2d8(0x844)]-0x1)*_0x496add['query'][_0x3fe2d8(0x221e)];if(_0x496add['apiName']){if(_0x496add[_0x3fe2d8(0x2321)][_0x3fe2d8(0xfb0)]===_0x3fe2d8(0x174b))_0x496add[_0x3fe2d8(0xb9c)]=_0x5e246d[_0x496add[_0x3fe2d8(0x320)]]['get'](_0x496add[_0x3fe2d8(0x1a56)],_0x5f1253)['$promise'];else{if(!_0x496add[_0x3fe2d8(0x1366)])return _0x5f1253(null);else{if(_0x496add[_0x3fe2d8(0x1366)]['autoAssociation'])_0x496add[_0x3fe2d8(0xb9c)]=_0x5e246d[_0x496add[_0x3fe2d8(0x320)]][_0x3fe2d8(0x16b4)](_0x496add['query'],_0x5f1253)[_0x3fe2d8(0x2945)];else{let _0x47e13f=[];_0x496add[_0x3fe2d8(0xb9c)]=_0x5e246d[_0x496add[_0x3fe2d8(0x320)]][_0x3fe2d8(0x16b4)](_0x496add[_0x3fe2d8(0x1a56)])['$promise']['then'](function(_0x19e57b){const _0x1214c1=_0x3fe2d8;return _0x47e13f=_0x19e57b&&_0x19e57b[_0x1214c1(0x19c7)]?_0x19e57b[_0x1214c1(0x19c7)]:[],_0x47e13f[_0x1214c1(0x402)]>0x0?_0x5e246d[_0x1214c1(0xdcc)][_0x1214c1(0x16b4)]({'sectionId':_0x496add['userProfileSection']['id'],'type':_0x496add[_0x1214c1(0x320)]===_0x1214c1(0x20fa)?'DefaultReports':_0x1214c1(0x193a)})[_0x1214c1(0x2945)][_0x1214c1(0x146b)](function(_0x506bc2){const _0x4d664f=_0x1214c1,_0xc81445=_0x506bc2&&_0x506bc2['rows']?_0x506bc2[_0x4d664f(0x19c7)]:[];if(_0xc81445['length']>0x0){const _0x301fa4=[];return _0x47e13f[_0x4d664f(0x1df5)](function(_0x242dbe){const _0x1a9540=_0x4d664f,_0x320bdd=_0x3f65c0()['find'](_0xc81445,[_0x1a9540(0x18b8),_0x242dbe['id']]);if(_0x320bdd)_0x301fa4['push'](_0x242dbe);}),_0x5f1253({'count':_0x301fa4[_0x4d664f(0x402)],'rows':_0x301fa4});}else return _0x5f1253(null);}):_0x5f1253(null);})[_0x3fe2d8(0x129e)](function(_0x33c890){const _0x1b2076=_0x3fe2d8;_0x50886d[_0x1b2076(0x1980)]({'title':_0x33c890[_0x1b2076(0x107b)]?_0x1b2076(0x262a)+_0x33c890[_0x1b2076(0x107b)]+_0x1b2076(0x1315)+_0x33c890[_0x1b2076(0x167f)]:'SYSTEM:GET_REPORTS','msg':_0x33c890[_0x1b2076(0x524)]?JSON[_0x1b2076(0x10bb)](_0x33c890[_0x1b2076(0x524)]):_0x33c890[_0x1b2076(0xd5f)]()});});}}}}}function _0x5f1253(_0x2806c2){const _0x5b48a0=_0x12e568;_0x496add[_0x5b48a0(0x2284)]=_0x2806c2||{'count':0x0,'rows':[]},!_0x496add[_0x5b48a0(0x19a9)]&&_0x496add[_0x5b48a0(0x1f30)][_0x5b48a0(0x1f47)](_0x3f65c0()['find'](_0x496add[_0x5b48a0(0x2284)]['rows'],{'id':_0x496add[_0x5b48a0(0x1cec)]['id']}));}function _0x1b178c(){const _0x21da55=_0x12e568;_0x496add[_0x21da55(0xc26)]=_0x496add[_0x21da55(0x728)][0x0]?angular['fromJson'](_0x496add[_0x21da55(0x728)][0x0][_0x21da55(0xf47)]):[],_0x496add[_0x21da55(0x282d)]=_0x496add[_0x21da55(0x728)][0x1]?angular[_0x21da55(0xb08)](_0x496add[_0x21da55(0x728)][0x1][_0x21da55(0xf47)]):[],_0x496add[_0x21da55(0xfb4)]=_0x35fd0c(),_0x496add[_0x21da55(0x2861)]=_0x59fe7e(![]),_0x496add[_0x21da55(0xf43)]=_0x59fe7e(!![]),_0x1a2005[_0x21da55(0x2615)]({'controller':function(){return _0x496add;},'controllerAs':'vm','templateUrl':_0xc6b68d,'autoWrap':!![],'skipHide':!![]});}function _0x59e509(){const _0x47dc1a=_0x12e568;_0x496add[_0x47dc1a(0x5e4)][_0x47dc1a(0x1c9a)]=_0x496add[_0x47dc1a(0x1f30)][0x0][_0x47dc1a(0x19eb)],_0x496add[_0x47dc1a(0x5e4)]['attrReport']=_0x496add[_0x47dc1a(0x1f30)][0x0]['id'],_0x496add[_0x47dc1a(0x5e4)][_0x47dc1a(0x22a)]=_0x496add['currentNode'][_0x47dc1a(0x1802)]?'custom':_0x47dc1a(0x13b1);if(!_0x496add[_0x47dc1a(0x19a9)]){const _0x586d39={'name':_0x47dc1a(0x23b1),'type':_0x496add[_0x47dc1a(0x5e4)][_0x47dc1a(0x22a)],'value':_0x496add[_0x47dc1a(0x1f30)][0x0]['id']};_0x496add[_0x47dc1a(0x5e4)][_0x47dc1a(0x63a)][_0x47dc1a(0x1f7d)](_0x3f65c0()[_0x47dc1a(0x99c)](_0x496add[_0x47dc1a(0x5e4)]['attrs'],0x1,_0x586d39));}_0x7f9b7a[_0x47dc1a(0x20c2)]['report'][_0x47dc1a(0x342)](),_0x1a2005['hide']();}function _0x5749be(){const _0x552c59=_0x12e568;_0x1a2005[_0x552c59(0x2458)]();}function _0x363bc9(_0x374cd8){return _0x374cd8===null?undefined:new Date(_0x374cd8);}function _0x2ce68f(_0x4fab47){const _0x2fba6b=_0x12e568;_0x1a2005[_0x2fba6b(0x2458)](_0x4fab47);}}const _0x1fafbd=_0x347343;;const _0x4f7d18=_0x4acfac['p']+_0x313a4d(0x3f4);;_0x28f309[_0x313a4d(0x11c2)]=[_0x313a4d(0x1862),'$location',_0x313a4d(0x10e8),_0x313a4d(0x4d8),_0x313a4d(0x214b),'license',_0x313a4d(0x15b9),_0x313a4d(0x247f),_0x313a4d(0x1fe4),'Auth','customDashboard',_0x313a4d(0x1366)];function _0x28f309(_0x1416ef,_0xe3057,_0x1d9c79,_0x46965b,_0x511ec6,_0x3c3295,_0xed2be4,_0x55653f,_0x2ee4ae,_0x4c4af9,_0x1afe90,_0x102f1a){const _0x16b196=_0x313a4d,_0x503473=this;_0x503473[_0x16b196(0x2321)]=_0x4c4af9['getCurrentUser'](),_0x503473[_0x16b196(0x2690)]=_0x3c3295,_0x503473[_0x16b196(0x15b9)]=_0xed2be4,_0x503473['passwordPattern']=_0x503473['setting']['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x503473[_0x16b196(0x1002)]=_0xe3057[_0x16b196(0x2414)]()+'://'+_0xe3057[_0x16b196(0x148e)](),_0x503473[_0x16b196(0x1d3b)]=_0x1afe90||_0x1416ef[_0x16b196(0x16a)]['customDashboard']||{},_0x503473[_0x16b196(0x1366)]=_0x102f1a&&_0x102f1a[_0x16b196(0x51c)]==0x1?_0x102f1a['rows'][0x0]:null,_0x503473[_0x16b196(0x2514)]=_0x4c4af9['parseCrudPermissions'](_0x503473[_0x16b196(0x1366)]?_0x503473[_0x16b196(0x1366)]['crudPermissions']:null),_0x503473[_0x16b196(0x855)]={},_0x503473[_0x16b196(0x1b09)]=_0x1416ef[_0x16b196(0x16a)][_0x16b196(0x13a3)]||0x0,_0x503473[_0x16b196(0xa26)]=_0x1d73b6,_0x503473['gotogoto']=_0x2ce49c,_0x503473[_0x16b196(0x861)]=_0x2ee4ae[_0x16b196(0x271e)],_0x503473[_0x16b196(0x18dc)]=_0xbb7426,_0x503473[_0x16b196(0xd6b)]=_0x5aa046;function _0x1d73b6(_0x3dacbf,_0x16557c){const _0x2e7f9f=_0x16b196;_0x1d9c79[_0x2e7f9f(0x2615)]({'controller':_0x2e7f9f(0x88b),'controllerAs':'vm','templateUrl':_0x4f7d18,'parent':angular[_0x2e7f9f(0x1853)](_0x46965b['body']),'targetEvent':_0x16557c,'clickOutsideToClose':!![],'locals':{'customDashboard':_0x3dacbf,'customDashboards':_0x503473[_0x2e7f9f(0x28a6)]?_0x503473[_0x2e7f9f(0x28a6)][_0x2e7f9f(0x19c7)]:[],'crudPermissions':_0x503473[_0x2e7f9f(0x2514)]}});}function _0x2ce49c(_0x4fc513){const _0x36e7f4=_0x16b196;_0x1416ef['go'](_0x36e7f4(0x993),{'id':_0x4fc513['id']});}function _0xbb7426(){const _0x447233=_0x16b196;_0x1416ef['go'](_0x447233(0x1cc8),{},{'reload':_0x447233(0x1cc8)});}function _0x5aa046(){const _0xbb5c36=_0x16b196;_0x55653f[_0xbb5c36(0x130)][_0xbb5c36(0x18e1)]({'id':_0x503473[_0xbb5c36(0x1d3b)]['id']},_0x503473[_0xbb5c36(0x1d3b)])['$promise'][_0xbb5c36(0x146b)](function(){const _0x34760a=_0xbb5c36;_0x2ee4ae['success']({'title':_0x34760a(0x1065),'msg':_0x503473[_0x34760a(0x1d3b)][_0x34760a(0x19eb)]?_0x503473[_0x34760a(0x1d3b)][_0x34760a(0x19eb)]+_0x34760a(0x6b0):''});})[_0xbb5c36(0x129e)](function(_0x51a134){const _0x32e287=_0xbb5c36;_0x2ee4ae[_0x32e287(0x1980)]({'title':_0x51a134[_0x32e287(0x107b)]?_0x32e287(0x262a)+_0x51a134[_0x32e287(0x107b)]+_0x32e287(0x1315)+_0x51a134[_0x32e287(0x167f)]:'SYSTEM:GETdashboard','msg':_0x51a134['data']?JSON[_0x32e287(0x10bb)](_0x51a134[_0x32e287(0x524)]):_0x51a134[_0x32e287(0xd5f)]()});});}}const _0x5474ae=_0x28f309;;_0x4d554f[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1862),_0x313a4d(0xd08),'$mdDialog','$q',_0x313a4d(0x214b),_0x313a4d(0x1fe4),_0x313a4d(0x278f),_0x313a4d(0x2765),_0x313a4d(0x247f),_0x313a4d(0xa87),_0x313a4d(0x2690),_0x313a4d(0x15b9),'crudPermissions'];function _0x4d554f(_0x3bf9f9,_0x202266,_0x3b1163,_0x46bbdc,_0x88d8ad,_0x390974,_0x308572,_0x30d66a,_0x31e37a,_0x617e30,_0x15af54,_0x368b8f,_0x2eda3e,_0x53c86a){const _0x347c6c=_0x313a4d,_0xe1f1a1=this;_0xe1f1a1[_0x347c6c(0x2321)]=_0x15af54[_0x347c6c(0xb12)](),_0xe1f1a1[_0x347c6c(0xcef)]=[],_0xe1f1a1[_0x347c6c(0x15b9)]=_0x2eda3e,_0xe1f1a1[_0x347c6c(0x2690)]=_0x368b8f,_0xe1f1a1[_0x347c6c(0x2514)]=_0x53c86a,_0xe1f1a1['hasModulePermissions']={},_0xe1f1a1[_0x347c6c(0x2251)]=_0xe1f1a1[_0x347c6c(0x15b9)]&&_0xe1f1a1['setting'][_0x347c6c(0x976)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0xe1f1a1[_0x347c6c(0x1189)]=_0x347c6c(0x56d),_0xe1f1a1[_0x347c6c(0x2765)]=angular[_0x347c6c(0x235a)](_0x31e37a),_0xe1f1a1[_0x347c6c(0x278f)]=_0x30d66a,_0xe1f1a1[_0x347c6c(0xa76)]=![];!_0xe1f1a1[_0x347c6c(0x2765)]&&(_0xe1f1a1[_0x347c6c(0x2765)]={},_0xe1f1a1['title']='TOOLS.NEW_INTERVAL',_0xe1f1a1[_0x347c6c(0xa76)]=!![]);_0xe1f1a1[_0x347c6c(0x2f0)]=_0x2fe71f,_0xe1f1a1['saveInterval']=_0x2de3e5,_0xe1f1a1[_0x347c6c(0x1db1)]=_0x55d4c1,_0xe1f1a1[_0x347c6c(0xe73)]=_0x18d557,_0xe1f1a1['closeDialog']=_0x702dfc;function _0x2fe71f(){const _0x3f8720=_0x347c6c;_0xe1f1a1['errors']=[],_0x617e30['interval'][_0x3f8720(0x1e3)](_0xe1f1a1['interval'])[_0x3f8720(0x2945)][_0x3f8720(0x146b)](function(_0x15cc44){const _0x3640d6=_0x3f8720;_0xe1f1a1['intervals'][_0x3640d6(0xb3d)](_0x15cc44['toJSON']()),_0x308572['success']({'title':_0x3640d6(0x17f5),'msg':_0xe1f1a1[_0x3640d6(0x2765)]['name']?_0xe1f1a1['interval']['name']+_0x3640d6(0x1386):''}),_0x702dfc(_0x15cc44);})['catch'](function(_0x491763){const _0xc5c4ec=_0x3f8720;if(_0x491763[_0xc5c4ec(0x524)]&&_0x491763[_0xc5c4ec(0x524)][_0xc5c4ec(0xcef)]&&_0x491763[_0xc5c4ec(0x524)][_0xc5c4ec(0xcef)][_0xc5c4ec(0x402)]){_0xe1f1a1[_0xc5c4ec(0xcef)]=_0x491763[_0xc5c4ec(0x524)][_0xc5c4ec(0xcef)]||[{'message':_0x491763[_0xc5c4ec(0xd5f)](),'type':_0xc5c4ec(0x7e7)}];for(let _0x3dd948=0x0;_0x3dd948<_0x491763[_0xc5c4ec(0x524)][_0xc5c4ec(0xcef)][_0xc5c4ec(0x402)];_0x3dd948+=0x1){_0x308572[_0xc5c4ec(0x1980)]({'title':_0x491763[_0xc5c4ec(0x524)][_0xc5c4ec(0xcef)][_0x3dd948][_0xc5c4ec(0x1142)],'msg':_0x491763[_0xc5c4ec(0x524)][_0xc5c4ec(0xcef)][_0x3dd948]['message']});}}else _0x308572[_0xc5c4ec(0x1980)]({'title':_0x491763['status']?'API:'+_0x491763[_0xc5c4ec(0x107b)]+_0xc5c4ec(0x1315)+_0x491763[_0xc5c4ec(0x167f)]:'api.interval.save','msg':_0x491763[_0xc5c4ec(0x524)]?JSON[_0xc5c4ec(0x10bb)](_0x491763[_0xc5c4ec(0x524)]['message']):_0x491763[_0xc5c4ec(0xd5f)]()});});}function _0x2de3e5(){const _0x5a4791=_0x347c6c;_0xe1f1a1[_0x5a4791(0xcef)]=[],_0x617e30[_0x5a4791(0x2765)][_0x5a4791(0x18e1)]({'id':_0xe1f1a1['interval']['id']},_0xe1f1a1[_0x5a4791(0x2765)])[_0x5a4791(0x2945)][_0x5a4791(0x146b)](function(_0x358e6f){const _0x2ac39e=_0x5a4791,_0x28740e=_0x3f65c0()[_0x2ac39e(0xc84)](_0xe1f1a1[_0x2ac39e(0x278f)],{'id':_0x358e6f['id']});_0x28740e&&_0x3f65c0()[_0x2ac39e(0x168d)](_0x28740e,_0x3f65c0()[_0x2ac39e(0x40e)](_0x358e6f[_0x2ac39e(0x2488)](),_0x3f65c0()[_0x2ac39e(0x627)](_0x28740e))),_0x308572[_0x2ac39e(0x1c75)]({'title':_0x2ac39e(0x1d51),'msg':_0xe1f1a1[_0x2ac39e(0x2765)][_0x2ac39e(0x19eb)]?_0xe1f1a1['interval']['name']+_0x2ac39e(0x24db):''}),_0x702dfc(_0x358e6f);})[_0x5a4791(0x129e)](function(_0x19e561){const _0x323dcf=_0x5a4791;if(_0x19e561[_0x323dcf(0x524)]&&_0x19e561[_0x323dcf(0x524)]['errors']&&_0x19e561[_0x323dcf(0x524)][_0x323dcf(0xcef)][_0x323dcf(0x402)]){_0xe1f1a1[_0x323dcf(0xcef)]=_0x19e561['data'][_0x323dcf(0xcef)]||[{'message':_0x19e561['toString'](),'type':_0x323dcf(0x1fbe)}];for(let _0x2c7f10=0x0;_0x2c7f10<_0x19e561[_0x323dcf(0x524)]['errors'][_0x323dcf(0x402)];_0x2c7f10++){_0x308572[_0x323dcf(0x1980)]({'title':_0x19e561[_0x323dcf(0x524)]['errors'][_0x2c7f10]['type'],'msg':_0x19e561[_0x323dcf(0x524)][_0x323dcf(0xcef)][_0x2c7f10][_0x323dcf(0x7fd)]});}}else _0x308572[_0x323dcf(0x1980)]({'title':_0x19e561[_0x323dcf(0x107b)]?'API:'+_0x19e561[_0x323dcf(0x107b)]+_0x323dcf(0x1315)+_0x19e561[_0x323dcf(0x167f)]:'api.interval.update','msg':_0x19e561[_0x323dcf(0x524)]?JSON[_0x323dcf(0x10bb)](_0x19e561[_0x323dcf(0x524)][_0x323dcf(0x7fd)]):_0x19e561[_0x323dcf(0xd5f)]()});});}function _0x55d4c1(_0x4286f2){const _0x3ff19e=_0x347c6c;_0xe1f1a1['errors']=[];const _0x23bc75=_0x46bbdc[_0x3ff19e(0x1e8a)]()[_0x3ff19e(0x1189)](_0x3ff19e(0x1d64))[_0x3ff19e(0x80f)](_0x3ff19e(0xcae))['ariaLabel']('Delete\x20Interval')['ok'](_0x3ff19e(0x25de))[_0x3ff19e(0x6c3)](_0x3ff19e(0xcf0))['targetEvent'](_0x4286f2);_0x46bbdc[_0x3ff19e(0x2615)](_0x23bc75)[_0x3ff19e(0x146b)](function(){const _0x5560fb=_0x3ff19e;_0x617e30['interval'][_0x5560fb(0x1fac)]({'id':_0xe1f1a1[_0x5560fb(0x2765)]['id']})[_0x5560fb(0x2945)][_0x5560fb(0x146b)](function(){const _0x550555=_0x5560fb;_0x3f65c0()[_0x550555(0x2640)](_0xe1f1a1[_0x550555(0x278f)],{'id':_0xe1f1a1[_0x550555(0x2765)]['id']}),_0x308572['success']({'title':'Interval\x20properly\x20deleted!','msg':(_0xe1f1a1[_0x550555(0x2765)][_0x550555(0x19eb)]||_0x550555(0x2765))+_0x550555(0x23e3)}),_0x702dfc(_0xe1f1a1[_0x550555(0x2765)]);})[_0x5560fb(0x129e)](function(_0x3488b2){const _0x36b524=_0x5560fb;if(_0x3488b2[_0x36b524(0x524)]&&_0x3488b2[_0x36b524(0x524)]['errors']&&_0x3488b2[_0x36b524(0x524)][_0x36b524(0xcef)]['length']){_0xe1f1a1[_0x36b524(0xcef)]=_0x3488b2[_0x36b524(0x524)][_0x36b524(0xcef)]||[{'message':_0x3488b2[_0x36b524(0xd5f)](),'type':'api.interval.delete'}];for(let _0x533bda=0x0;_0x533bda<_0x3488b2['data'][_0x36b524(0xcef)][_0x36b524(0x402)];_0x533bda++){_0x308572[_0x36b524(0x1980)]({'title':_0x3488b2[_0x36b524(0x524)]['errors'][_0x533bda]['type'],'msg':_0x3488b2['data'][_0x36b524(0xcef)][_0x533bda][_0x36b524(0x7fd)]});}}else _0x308572['error']({'title':_0x3488b2[_0x36b524(0x107b)]?_0x36b524(0x262a)+_0x3488b2[_0x36b524(0x107b)]+_0x36b524(0x1315)+_0x3488b2[_0x36b524(0x167f)]:'api.interval.delete','msg':_0x3488b2['data']?JSON[_0x36b524(0x10bb)](_0x3488b2[_0x36b524(0x524)][_0x36b524(0x7fd)]):_0x3488b2[_0x36b524(0x7fd)]||_0x3488b2[_0x36b524(0xd5f)]()});});},function(){});}function _0x18d557(_0x426aac){return _0x426aac===null?undefined:new Date(_0x426aac);}function _0x702dfc(_0x45b664){const _0x217f94=_0x347c6c;_0x46bbdc[_0x217f94(0x2458)](_0x45b664);}}const _0x90faaf=_0x4d554f;;_0x3ec952[_0x313a4d(0x11c2)]=[_0x313a4d(0x1862),'$mdDialog',_0x313a4d(0x1c7e),'IndexFactory',_0x313a4d(0x2765),_0x313a4d(0x278f),_0x313a4d(0x1fe4),_0x313a4d(0x247f),_0x313a4d(0xa87),_0x313a4d(0x2514)];function _0x3ec952(_0x3c459d,_0x62323d,_0x5e005f,_0x6b6f01,_0x29d240,_0xb88d4f,_0x52c069,_0x294c75,_0x2ee1ca,_0x54cb50){const _0x5ac48f=_0x313a4d,_0x3d0b17=this;_0x3d0b17[_0x5ac48f(0x2321)]=_0x2ee1ca['getCurrentUser'](),_0x3d0b17[_0x5ac48f(0xcef)]=[],_0x3d0b17[_0x5ac48f(0x1189)]=_0x5ac48f(0x56d),_0x3d0b17['interval']=angular[_0x5ac48f(0x235a)](_0x29d240),_0x3d0b17['intervals']=_0xb88d4f,_0x3d0b17[_0x5ac48f(0xa76)]=![],_0x3d0b17[_0x5ac48f(0x1960)]=['always',_0x5ac48f(0x1802)],_0x3d0b17[_0x5ac48f(0x2514)]=_0x54cb50,_0x3d0b17[_0x5ac48f(0x1e35)]=_0x6b6f01[_0x5ac48f(0x2045)](),_0x3d0b17[_0x5ac48f(0x593)]=_0x6b6f01['getMonthNumber'](),_0x3d0b17[_0x5ac48f(0x2156)]=_0x6b6f01[_0x5ac48f(0x18b6)](),_0x3d0b17[_0x5ac48f(0x15f1)]=_0x6b6f01[_0x5ac48f(0x1421)]();if(!_0x3d0b17[_0x5ac48f(0x2765)])_0x3d0b17[_0x5ac48f(0x2765)]={'interval':_0x5ac48f(0x1559)},_0x3d0b17['type']='always',_0x3d0b17[_0x5ac48f(0x1189)]=_0x5ac48f(0x79c),_0x3d0b17[_0x5ac48f(0xa76)]=!![];else{if(_0x3d0b17['interval'][_0x5ac48f(0x2765)]!==_0x5ac48f(0x1559)){_0x3d0b17[_0x5ac48f(0x1142)]='custom';const _0x141629=_0x3d0b17['interval'][_0x5ac48f(0x2765)]['split'](','),_0x4a23c4=_0x141629[0x0],_0x496432=_0x141629[0x1],_0x64549e=_0x141629[0x2],_0x3fc69f=_0x141629[0x3];if(_0x4a23c4!=='*'){const _0x71f023=_0x4a23c4['split']('-')[0x0],_0x260644=_0x4a23c4[_0x5ac48f(0x10c8)]('-')[0x1];let _0xd43d6c;_0xd43d6c=new Date(),_0xd43d6c[_0x5ac48f(0x25cd)](Number(_0x71f023[_0x5ac48f(0x10c8)](':')[0x0])),_0xd43d6c['setMinutes'](Number(_0x71f023[_0x5ac48f(0x10c8)](':')[0x1])),_0x3d0b17[_0x5ac48f(0x2469)]=_0xd43d6c,_0xd43d6c=new Date(),_0xd43d6c[_0x5ac48f(0x25cd)](Number(_0x260644[_0x5ac48f(0x10c8)](':')[0x0])),_0xd43d6c[_0x5ac48f(0x2348)](Number(_0x260644[_0x5ac48f(0x10c8)](':')[0x1])),_0x3d0b17[_0x5ac48f(0x637)]=_0xd43d6c;}_0x496432!=='*'&&(_0x3d0b17[_0x5ac48f(0x1455)]=_0x496432[_0x5ac48f(0x10c8)]('-')[0x0],_0x3d0b17[_0x5ac48f(0x27a1)]=_0x496432[_0x5ac48f(0x10c8)]('-')[0x1]),_0x64549e!=='*'&&(_0x3d0b17['monthDayFrom']=_0x64549e[_0x5ac48f(0x10c8)]('-')[0x0],_0x3d0b17[_0x5ac48f(0x896)]=_0x64549e[_0x5ac48f(0x10c8)]('-')[0x1]),_0x3fc69f!=='*'&&(_0x3d0b17['monthFrom']=_0x3fc69f[_0x5ac48f(0x10c8)]('-')[0x0],_0x3d0b17['monthTo']=_0x3fc69f[_0x5ac48f(0x10c8)]('-')[0x1]);}else _0x3d0b17['type']=_0x5ac48f(0xd85);}_0x3c459d[_0x5ac48f(0x16a)]['id']&&!_0x3d0b17[_0x5ac48f(0x2765)]['application']&&(_0x3d0b17['interval'][_0x5ac48f(0x1ff2)]=_0x3c459d[_0x5ac48f(0x16a)]['id']);_0x3d0b17[_0x5ac48f(0x2765)][_0x5ac48f(0x1ff2)]&&_0x3d0b17['interval'][_0x5ac48f(0xea)]&&(_0x3d0b17[_0x5ac48f(0x1142)]=_0x5ac48f(0x25f4));_0x3d0b17['addNewInterval']=_0x148320,_0x3d0b17['saveInterval']=_0x55b950,_0x3d0b17[_0x5ac48f(0x13f3)]=_0x128e35;_0x3d0b17['interval']['application']&&(_0x2ee1ca[_0x5ac48f(0x23e0)](_0x5ac48f(0x174b))?_0x294c75[_0x5ac48f(0x2765)][_0x5ac48f(0x16b4)]({'fields':_0x5ac48f(0x648),'IntervalId':_0x5ac48f(0x203c),'nolimit':!![]})['$promise'][_0x5ac48f(0x146b)](function(_0x5077a4){const _0xc8f5a6=_0x5ac48f;_0x3d0b17[_0xc8f5a6(0x278f)]=_0x5077a4[_0xc8f5a6(0x19c7)]||[];})[_0x5ac48f(0x129e)](function(_0xa8092b){const _0x444457=_0x5ac48f;_0x52c069[_0x444457(0x1980)]({'title':_0xa8092b[_0x444457(0x107b)]?_0x444457(0x262a)+_0xa8092b[_0x444457(0x107b)]+_0x444457(0x1315)+_0xa8092b[_0x444457(0x167f)]:_0x444457(0x603),'msg':_0xa8092b[_0x444457(0x524)]?JSON[_0x444457(0x10bb)](_0xa8092b[_0x444457(0x524)]):_0xa8092b[_0x444457(0xd5f)]()});}):_0x294c75[_0x5ac48f(0x2765)]['get']({'fields':_0x5ac48f(0x648),'IntervalId':_0x5ac48f(0x203c),'nolimit':!![]})['$promise'][_0x5ac48f(0x146b)](function(_0x57def2){const _0x46b07b=_0x5ac48f;_0x3d0b17[_0x46b07b(0x278f)]=_0x57def2['rows']||[];})[_0x5ac48f(0x146b)](function(){const _0x54c33e=_0x5ac48f;return _0x294c75['userProfileSection']['get']({'userProfileId':_0x3d0b17[_0x54c33e(0x2321)]['userProfileId'],'sectionId':0x3ec})[_0x54c33e(0x2945)];})[_0x5ac48f(0x146b)](function(_0x5e9c6c){const _0x4f0ca6=_0x5ac48f,_0x113318=_0x5e9c6c&&_0x5e9c6c[_0x4f0ca6(0x19c7)]?_0x5e9c6c[_0x4f0ca6(0x19c7)][0x0]:null;if(!_0x113318)_0x3d0b17[_0x4f0ca6(0x278f)]=[];else{if(!_0x113318[_0x4f0ca6(0x11d2)])return _0x294c75[_0x4f0ca6(0xdcc)][_0x4f0ca6(0x16b4)]({'sectionId':_0x113318['id']})[_0x4f0ca6(0x2945)][_0x4f0ca6(0x146b)](function(_0x456782){const _0x3afdec=_0x4f0ca6,_0x5cfeb9=_0x456782&&_0x456782[_0x3afdec(0x19c7)]?_0x456782[_0x3afdec(0x19c7)]:[],_0x539a34=[];let _0x51487a=null;_0x3d0b17['interval']&&(_0x51487a=_0x3f65c0()[_0x3afdec(0xc84)](_0x3d0b17[_0x3afdec(0x278f)],{'name':_0x3d0b17[_0x3afdec(0x2765)]['IntervalId']})),_0x51487a&&!_0x3f65c0()[_0x3afdec(0x1360)](_0x5cfeb9,[_0x3afdec(0x18b8),_0x51487a['id']])&&_0x3d0b17[_0x3afdec(0x278f)]['forEach'](function(_0x55552a){const _0x85cbc=_0x3afdec;_0x55552a['id']===_0x51487a['id']&&(_0x55552a[_0x85cbc(0x8ff)]=![],_0x539a34[_0x85cbc(0x1f47)](_0x55552a));}),_0x3d0b17['intervals']=_0x539a34;});}})[_0x5ac48f(0x129e)](function(_0x5bfa1e){const _0x19223a=_0x5ac48f;_0x52c069[_0x19223a(0x1980)]({'title':_0x5bfa1e[_0x19223a(0x107b)]?_0x19223a(0x262a)+_0x5bfa1e[_0x19223a(0x107b)]+_0x19223a(0x1315)+_0x5bfa1e['statusText']:_0x19223a(0x603),'msg':_0x5bfa1e[_0x19223a(0x524)]?JSON[_0x19223a(0x10bb)](_0x5bfa1e['data']):_0x5bfa1e['toString']()});}));function _0x525954(){const _0x161287=_0x5ac48f;switch(_0x3d0b17['type']){case _0x161287(0xd85):case _0x161287(0x25f4):return'*,*,*,*';case _0x161287(0x1802):{const _0x2a0357=[];if(_0x3d0b17['timeRangeFrom']!=='*'&&_0x3d0b17[_0x161287(0x2469)]&&_0x3d0b17[_0x161287(0x637)]){const _0x1aa034=(_0x3d0b17[_0x161287(0x2469)][_0x161287(0x1d57)]()<0xa?'0':'')+_0x3d0b17['timeRangeFrom'][_0x161287(0x1d57)]()+':'+((_0x3d0b17['timeRangeFrom'][_0x161287(0x7fc)]()<0xa?'0':'')+_0x3d0b17['timeRangeFrom'][_0x161287(0x7fc)]()),_0x1d763b=(_0x3d0b17['timeRangeTo']['getHours']()<0xa?'0':'')+_0x3d0b17[_0x161287(0x637)][_0x161287(0x1d57)]()+':'+((_0x3d0b17['timeRangeTo']['getMinutes']()<0xa?'0':'')+_0x3d0b17[_0x161287(0x637)]['getMinutes']());_0x2a0357['push'](_0x1aa034+'-'+_0x1d763b);}else _0x2a0357['push']('*');return _0x3d0b17['dayOfWeekFrom']?_0x3d0b17['dayOfWeekTo']?_0x2a0357[_0x161287(0x1f47)](_0x3d0b17['dayOfWeekFrom']+'-'+_0x3d0b17['dayOfWeekTo']):_0x2a0357['push'](_0x3d0b17[_0x161287(0x1455)]):_0x2a0357[_0x161287(0x1f47)]('*'),_0x3d0b17[_0x161287(0xf0b)]?_0x3d0b17[_0x161287(0x896)]?_0x2a0357[_0x161287(0x1f47)](_0x3d0b17['monthDayFrom']+'-'+_0x3d0b17['monthDayTo']):_0x2a0357[_0x161287(0x1f47)](_0x3d0b17[_0x161287(0xf0b)]):_0x2a0357[_0x161287(0x1f47)]('*'),_0x3d0b17[_0x161287(0x167)]?_0x3d0b17[_0x161287(0x9c3)]?_0x2a0357[_0x161287(0x1f47)](_0x3d0b17['monthFrom']+'-'+_0x3d0b17[_0x161287(0x9c3)]):_0x2a0357['push'](_0x3d0b17['monthFrom']):_0x2a0357['push']('*'),_0x2a0357[_0x161287(0xb47)]();}}}function _0x148320(){const _0x1cda6a=_0x5ac48f;_0x3d0b17[_0x1cda6a(0xcef)]=[],_0x3d0b17[_0x1cda6a(0x2765)][_0x1cda6a(0x2765)]=_0x525954(),_0x294c75[_0x1cda6a(0x2765)][_0x1cda6a(0x1e3)](_0x3d0b17[_0x1cda6a(0x2765)])['$promise'][_0x1cda6a(0x146b)](function(_0x5c54a0){const _0x46dc0e=_0x1cda6a;_0x3d0b17['intervals'][_0x46dc0e(0x1f47)](_0x5c54a0),_0x52c069[_0x46dc0e(0x1c75)]({'title':_0x46dc0e(0x17f5),'msg':_0x3d0b17[_0x46dc0e(0x2765)][_0x46dc0e(0x19eb)]?_0x3d0b17[_0x46dc0e(0x2765)]['name']+'\x20has\x20been\x20created!':''}),_0x128e35();})['catch'](function(_0x1a071e){const _0xf90bb6=_0x1cda6a;console[_0xf90bb6(0x1980)](_0x1a071e),_0x3d0b17[_0xf90bb6(0xcef)]=_0x1a071e[_0xf90bb6(0x524)][_0xf90bb6(0xcef)]||[{'message':_0x1a071e['toString'](),'type':_0xf90bb6(0x7e7)}];});}function _0x55b950(){const _0x187753=_0x5ac48f;_0x3d0b17[_0x187753(0xcef)]=[],_0x3d0b17[_0x187753(0x2765)][_0x187753(0x2765)]=_0x525954(),_0x3d0b17[_0x187753(0x2765)][_0x187753(0xea)]?(_0x3d0b17[_0x187753(0x1142)]!==_0x187753(0x25f4)&&(_0x3d0b17['interval'][_0x187753(0x1ff2)]=null),_0x128e35(_0x3d0b17['interval'])):_0x294c75[_0x187753(0x2765)][_0x187753(0x18e1)]({'id':_0x3d0b17['interval']['id']},_0x3d0b17[_0x187753(0x2765)])[_0x187753(0x2945)]['then'](function(_0x1b36a2){const _0x288c6f=_0x187753,_0x2f587d=_0x3f65c0()[_0x288c6f(0xc84)](_0x3d0b17[_0x288c6f(0x278f)],{'id':_0x1b36a2['id']});_0x2f587d&&_0x3f65c0()['merge'](_0x2f587d,_0x1b36a2),_0x52c069[_0x288c6f(0x1c75)]({'title':_0x288c6f(0x1d51),'msg':_0x288c6f(0x97a)}),_0x128e35();})[_0x187753(0x129e)](function(_0x15fb2d){const _0x23e4c4=_0x187753;console[_0x23e4c4(0x1980)](_0x15fb2d),_0x3d0b17[_0x23e4c4(0xcef)]=_0x15fb2d['data'][_0x23e4c4(0xcef)]||[{'message':_0x15fb2d[_0x23e4c4(0xd5f)](),'type':_0x23e4c4(0x1fbe)}];});}function _0x128e35(_0x38d210){const _0x34d9b1=_0x5ac48f;_0x62323d[_0x34d9b1(0x2458)](_0x38d210);}}const _0x3db550=_0x3ec952;;const _0x37d08f=_0x4acfac['p']+_0x313a4d(0x2250);;_0x1c2104[_0x313a4d(0x11c2)]=[_0x313a4d(0x23df),_0x313a4d(0x910),_0x313a4d(0x1862),'$q','$translate',_0x313a4d(0x1abe),_0x313a4d(0x10e8),_0x313a4d(0x4d8),_0x313a4d(0x1fe4),'api',_0x313a4d(0xa87)];function _0x1c2104(_0x1f7966,_0x20a2e0,_0x585ae5,_0x154265,_0x18638a,_0x13070f,_0x67d606,_0x52531f,_0x1086d6,_0x94b495,_0x144594){const _0x3efcac=_0x313a4d,_0x154ff8=this;_0x154ff8[_0x3efcac(0x2321)]=_0x144594[_0x3efcac(0xb12)](),_0x154ff8[_0x3efcac(0x2765)]={},_0x154ff8[_0x3efcac(0x24a)]={'count':0x0,'rows':[]},_0x154ff8['selectedIntervalIntervals']=[],_0x154ff8[_0x3efcac(0x2514)],_0x154ff8['sortableTable']={'animation':0x64,'onSort':function(_0x2470c2){const _0x3b1459=_0x3efcac;_0x94b495[_0x3b1459(0x2765)][_0x3b1459(0x2847)]({'id':_0x154ff8[_0x3b1459(0x2765)]['id']},_0x2470c2['models'])[_0x3b1459(0x2945)]['then'](function(_0x4d4da6){const _0x1137cc=_0x3b1459;_0x154ff8['intervalIntervals'][_0x1137cc(0x19c7)]=_0x4d4da6;})[_0x3b1459(0x129e)](function(_0x2ea644){const _0x1069ad=_0x3b1459;_0x1086d6[_0x1069ad(0x1980)]({'title':_0x2ea644['status']?_0x1069ad(0x262a)+_0x2ea644[_0x1069ad(0x107b)]+_0x1069ad(0x1315)+_0x2ea644[_0x1069ad(0x167f)]:_0x1069ad(0x1a89),'msg':_0x2ea644[_0x1069ad(0x524)]?JSON[_0x1069ad(0x10bb)](_0x2ea644[_0x1069ad(0x524)]):_0x2ea644[_0x1069ad(0xd5f)]()});});}},_0x154ff8[_0x3efcac(0x1a56)]={'fields':'createdAt,updatedAt,id,name,interval','nolimit':'true','limit':0xa,'page':0x1},_0x154ff8[_0x3efcac(0x5aa)]=_0x405f72,_0x154ff8[_0x3efcac(0x19b4)]=_0xe5a6be,_0x154ff8['success']=_0x335f4d,_0x154ff8[_0x3efcac(0xdf8)]=_0x47a59f,_0x154ff8[_0x3efcac(0xdfb)]=_0x447d25,_0x154ff8[_0x3efcac(0xa18)]=_0x25cd22,_0x154ff8['deleteIntervalInterval']=_0x1f5c0b,_0x154ff8[_0x3efcac(0x6a3)]=_0x1aef4d;function _0x405f72(_0x1baca6,_0x1c2c28){const _0x217b07=_0x3efcac;_0x154ff8[_0x217b07(0x2765)]=_0x1baca6,_0x154ff8['crudPermissions']=typeof _0x1c2c28!==_0x217b07(0x2274)?_0x1c2c28:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x154ff8['sortableTable'][_0x217b07(0x2862)]=!_0x154ff8[_0x217b07(0x2514)][_0x217b07(0x15f4)]?!![]:![],_0x154ff8[_0x217b07(0x1a56)]['id']=_0x154ff8['interval']['id'],_0x47a59f();}function _0xe5a6be(_0x532047,_0x59aec9){const _0x5547a4=_0x3efcac,_0x2bb58a=_0x67d606[_0x5547a4(0x1e8a)]()[_0x5547a4(0x1189)](_0x5547a4(0x1f46))['htmlContent'](_0x5547a4(0x16d3)+(_0x532047['name']||_0x532047['id']&&_0x3f65c0()['upperFirst'](_0x5547a4(0xd75))+_0x532047['id']||_0x5547a4(0x2765))+_0x5547a4(0x252f)+_0x5547a4(0xe01))[_0x5547a4(0x4bd)](_0x5547a4(0xf53))[_0x5547a4(0x1f27)](_0x59aec9)['ok']('OK')['cancel'](_0x5547a4(0x39a));_0x67d606['show'](_0x2bb58a)[_0x5547a4(0x146b)](function(){_0x1f5c0b(_0x532047);},function(){const _0x57acf0=_0x5547a4;console[_0x57acf0(0x1a74)]('CANCEL');});}function _0x335f4d(_0x4347f4){_0x154ff8['intervalIntervals']=_0x4347f4||{'count':0x0,'rows':[]};}function _0x47a59f(){const _0x376e9c=_0x3efcac;_0x154ff8[_0x376e9c(0x1a56)][_0x376e9c(0x145d)]=(_0x154ff8[_0x376e9c(0x1a56)]['page']-0x1)*_0x154ff8[_0x376e9c(0x1a56)][_0x376e9c(0x221e)],_0x154ff8['promise']=_0x94b495[_0x376e9c(0x2765)]['getIntervals'](_0x154ff8[_0x376e9c(0x1a56)],_0x335f4d)[_0x376e9c(0x2945)];}function _0x447d25(_0x462c79,_0x11bd2e){const _0x1ce58d=_0x3efcac;_0x67d606[_0x1ce58d(0x2615)]({'controller':'EditAppintervalDialogController','controllerAs':'vm','templateUrl':_0x37d08f,'parent':angular[_0x1ce58d(0x1853)](_0x52531f[_0x1ce58d(0x2586)]),'targetEvent':_0x462c79,'clickOutsideToClose':!![],'locals':{'interval':_0x11bd2e,'intervals':_0x154ff8[_0x1ce58d(0x24a)][_0x1ce58d(0x19c7)],'license':null,'setting':null,'crudPermissions':_0x154ff8[_0x1ce58d(0x2514)]}});}function _0x1f5c0b(_0x1ccb0e){const _0x5157d4=_0x3efcac;_0x94b495[_0x5157d4(0x2765)][_0x5157d4(0x1fac)]({'id':_0x1ccb0e['id']})[_0x5157d4(0x2945)][_0x5157d4(0x146b)](function(){const _0xe8d4ae=_0x5157d4;_0x3f65c0()['remove'](_0x154ff8[_0xe8d4ae(0x24a)][_0xe8d4ae(0x19c7)],{'id':_0x1ccb0e['id']}),_0x154ff8[_0xe8d4ae(0x24a)]['count']-=0x1,!_0x154ff8[_0xe8d4ae(0x24a)]['rows'][_0xe8d4ae(0x402)]&&_0x47a59f(),_0x1086d6[_0xe8d4ae(0x1c75)]({'title':'Interval\x20deleted!','msg':_0x1ccb0e[_0xe8d4ae(0x19eb)]?_0x1ccb0e['name']+_0xe8d4ae(0x23e3):''});})[_0x5157d4(0x129e)](function(_0x1a4a53){const _0x5e73b5=_0x5157d4;if(_0x1a4a53['data']&&_0x1a4a53[_0x5e73b5(0x524)][_0x5e73b5(0xcef)]&&_0x1a4a53[_0x5e73b5(0x524)][_0x5e73b5(0xcef)][_0x5e73b5(0x402)]){_0x154ff8[_0x5e73b5(0xcef)]=_0x1a4a53['data'][_0x5e73b5(0xcef)]||[{'message':_0x1a4a53['toString'](),'type':_0x5e73b5(0x8b6)}];for(let _0x3a1605=0x0;_0x3a1605<_0x1a4a53['data']['errors'][_0x5e73b5(0x402)];_0x3a1605++){_0x1086d6[_0x5e73b5(0x1980)]({'title':_0x1a4a53['data'][_0x5e73b5(0xcef)][_0x3a1605][_0x5e73b5(0x1142)],'msg':_0x1a4a53['data'][_0x5e73b5(0xcef)][_0x3a1605][_0x5e73b5(0x7fd)]});}}else _0x1086d6[_0x5e73b5(0x1980)]({'title':_0x1a4a53['status']?'API:'+_0x1a4a53[_0x5e73b5(0x107b)]+_0x5e73b5(0x1315)+_0x1a4a53[_0x5e73b5(0x167f)]:_0x5e73b5(0x8b6),'msg':_0x1a4a53[_0x5e73b5(0x524)]?JSON[_0x5e73b5(0x10bb)](_0x1a4a53[_0x5e73b5(0x524)][_0x5e73b5(0x7fd)]):_0x1a4a53[_0x5e73b5(0x7fd)]||_0x1a4a53[_0x5e73b5(0xd5f)]()});});}function _0x25cd22(){const _0x750b6d=_0x3efcac,_0x571187=angular[_0x750b6d(0x235a)](_0x154ff8[_0x750b6d(0x92d)]);return _0x154ff8[_0x750b6d(0x92d)]=[],_0x571187;}function _0x1aef4d(_0x1c7bfd){const _0x3ae59b=_0x3efcac,_0x1b9739=_0x67d606['confirm']()['title'](_0x3ae59b(0xfee))[_0x3ae59b(0x1cbe)](''+_0x154ff8[_0x3ae59b(0x92d)][_0x3ae59b(0x402)]+'\x20selected'+'\x20will\x20be\x20deleted.')[_0x3ae59b(0x4bd)](_0x3ae59b(0x25f9))['targetEvent'](_0x1c7bfd)['ok']('OK')[_0x3ae59b(0x6c3)](_0x3ae59b(0x39a));_0x67d606['show'](_0x1b9739)[_0x3ae59b(0x146b)](function(){const _0x4b7d60=_0x3ae59b;_0x154ff8[_0x4b7d60(0x92d)][_0x4b7d60(0x1df5)](function(_0x3854b1){_0x1f5c0b(_0x3854b1);}),_0x154ff8[_0x4b7d60(0x92d)]=[];});}let _0x58aff4=!![],_0x27114c=0x1;_0x20a2e0[_0x3efcac(0x21e8)](_0x3efcac(0x117f),function(_0x4d5d8a,_0xc68a00){const _0x51b311=_0x3efcac;_0x58aff4?_0x13070f(function(){_0x58aff4=![];}):(!_0xc68a00&&(_0x27114c=_0x154ff8[_0x51b311(0x1a56)]['page']),_0x4d5d8a!==_0xc68a00&&(_0x154ff8[_0x51b311(0x1a56)]['page']=0x1),!_0x4d5d8a&&(_0x154ff8[_0x51b311(0x1a56)]['page']=_0x27114c),_0x47a59f());});}const _0x1ff921=_0x1c2104;;_0x162195[_0x313a4d(0x11c2)]=[_0x313a4d(0x1862),'$location',_0x313a4d(0x10e8),_0x313a4d(0x4d8),'$translate','license',_0x313a4d(0x15b9),'api',_0x313a4d(0x1fe4),'Auth',_0x313a4d(0x2765),_0x313a4d(0x1366)];function _0x162195(_0x52c2db,_0x2e17e8,_0x5e15a3,_0x23a600,_0x5b8f21,_0xa3f7d4,_0xcd82d7,_0x4a3dea,_0x39c3cb,_0x1d5f7f,_0x2d81da,_0x13f7e4){const _0x2e9c52=_0x313a4d,_0x23bedf=this;_0x23bedf[_0x2e9c52(0x2321)]=_0x1d5f7f[_0x2e9c52(0xb12)](),_0x23bedf[_0x2e9c52(0x2690)]=_0xa3f7d4,_0x23bedf[_0x2e9c52(0x15b9)]=_0xcd82d7,_0x23bedf[_0x2e9c52(0x2251)]=_0x23bedf[_0x2e9c52(0x15b9)][_0x2e9c52(0x976)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x23bedf[_0x2e9c52(0x1002)]=_0x2e17e8['protocol']()+_0x2e9c52(0xb0e)+_0x2e17e8[_0x2e9c52(0x148e)](),_0x23bedf['interval']=_0x2d81da||_0x52c2db[_0x2e9c52(0x16a)][_0x2e9c52(0x2765)]||{},_0x23bedf[_0x2e9c52(0x1366)]=_0x13f7e4&&_0x13f7e4[_0x2e9c52(0x51c)]==0x1?_0x13f7e4['rows'][0x0]:null,_0x23bedf[_0x2e9c52(0x2514)]=_0x1d5f7f[_0x2e9c52(0xe60)](_0x23bedf['userProfileSection']?_0x23bedf[_0x2e9c52(0x1366)][_0x2e9c52(0x2514)]:null),_0x23bedf[_0x2e9c52(0x855)]={},_0x23bedf[_0x2e9c52(0x1b09)]=_0x52c2db['params'][_0x2e9c52(0x13a3)]||0x0,_0x23bedf['alert']=_0x39c3cb[_0x2e9c52(0x271e)],_0x23bedf[_0x2e9c52(0xf35)]=_0x22a331,_0x23bedf['saveInterval']=_0x30860a;function _0x22a331(){const _0x26b39e=_0x2e9c52;_0x52c2db['go'](_0x26b39e(0x2378),{},{'reload':_0x26b39e(0x2378)});}function _0x30860a(){const _0x411941=_0x2e9c52;_0x4a3dea['interval'][_0x411941(0x18e1)]({'id':_0x23bedf['interval']['id']},_0x23bedf['interval'])['$promise'][_0x411941(0x146b)](function(){const _0x3f2613=_0x411941;_0x39c3cb[_0x3f2613(0x1c75)]({'title':_0x3f2613(0x1c16),'msg':_0x23bedf['interval']['name']?_0x23bedf['interval'][_0x3f2613(0x19eb)]+_0x3f2613(0x6b0):''});})[_0x411941(0x129e)](function(_0x341f45){const _0x415183=_0x411941;_0x39c3cb[_0x415183(0x1980)]({'title':_0x341f45[_0x415183(0x107b)]?_0x415183(0x262a)+_0x341f45[_0x415183(0x107b)]+_0x415183(0x1315)+_0x341f45[_0x415183(0x167f)]:_0x415183(0x8b6),'msg':_0x341f45[_0x415183(0x524)]?JSON[_0x415183(0x10bb)](_0x341f45[_0x415183(0x524)]):_0x341f45[_0x415183(0xd5f)]()});});}}const _0x45644c=_0x162195;;const _0x1fb7db=_0x4acfac['p']+'src/js/modules/main/apps/tools/views/intervals/create/dialog.html/dialog.html';;_0x243310[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),'$window',_0x313a4d(0x1862),_0x313a4d(0x15fe),_0x313a4d(0x10e8),_0x313a4d(0x4d8),_0x313a4d(0x1abe),_0x313a4d(0x214b),'intervals',_0x313a4d(0x26b6),'userProfileSection','api','msUtils','toasty',_0x313a4d(0xa87),'license',_0x313a4d(0x15b9)];function _0x243310(_0x40fe7e,_0x590482,_0x1baa78,_0x4f6cfe,_0x247c2e,_0xf01d90,_0xc768ec,_0x25390c,_0x205860,_0x37cb43,_0x13c65b,_0x572155,_0x257839,_0x33d31c,_0x29009f,_0x49718a,_0x4e2098){const _0x322669=_0x313a4d,_0x1e6113=this;_0x1e6113[_0x322669(0x2690)]=_0x49718a,_0x1e6113['setting']=_0x4e2098,_0x1e6113[_0x322669(0x2321)]=_0x29009f['getCurrentUser'](),_0x1e6113['intervals']=_0x205860||{'count':0x0,'rows':[]},_0x1e6113[_0x322669(0x26b6)]=_0x37cb43,_0x1e6113[_0x322669(0x1366)]=_0x13c65b&&_0x13c65b[_0x322669(0x51c)]==0x1?_0x13c65b['rows'][0x0]:null,_0x1e6113[_0x322669(0x2514)]=_0x29009f[_0x322669(0xe60)](_0x1e6113[_0x322669(0x1366)]?_0x1e6113[_0x322669(0x1366)][_0x322669(0x2514)]:null),_0x1e6113[_0x322669(0x768)]='intervals',_0x1e6113[_0x322669(0x216a)]='',_0x1e6113['listOrderAsc']=null,_0x1e6113['selectedIntervals']=[],_0x1e6113[_0x322669(0x1a56)]={'fields':_0x322669(0x608),'sort':_0x322669(0x12f2),'IntervalId':_0x322669(0x203c),'limit':0xa,'page':0x1},_0x1e6113[_0x322669(0x23f9)]=_0x5e230c,_0x1e6113['deleteconfirm']=_0x221f26,_0x1e6113[_0x322669(0x1c75)]=_0x376d8c,_0x1e6113[_0x322669(0x1c1c)]=_0x24a7b0,_0x1e6113['createOrEditInterval']=_0xa3245a,_0x1e6113[_0x322669(0x1db1)]=_0x56a6e4,_0x1e6113[_0x322669(0x203f)]=_0x56ee31,_0x1e6113[_0x322669(0x1238)]=_0x460d30,_0x1e6113[_0x322669(0x1a70)]=_0x59c91a,_0x1e6113[_0x322669(0x4a2)]=_0xca827;function _0x5e230c(_0x339d01){const _0xa667e2=_0x322669;_0x1baa78['go'](_0xa667e2(0xc51),{'id':_0x339d01['id'],'interval':_0x339d01,'crudPermissions':_0x1e6113[_0xa667e2(0x2514)]});}function _0x221f26(_0x43431c,_0xc3cc77){const _0x5be853=_0x322669,_0x34f335=_0x247c2e[_0x5be853(0x1e8a)]()[_0x5be853(0x1189)](_0x5be853(0xdb2)+_0x3f65c0()['startCase'](_0x5be853(0x2765))+'?')['htmlContent'](''+(_0x43431c['name']||'interval')+''+_0x5be853(0xe01))[_0x5be853(0x4bd)](_0x5be853(0xf53))['targetEvent'](_0xc3cc77)['ok']('OK')[_0x5be853(0x6c3)]('CANCEL');_0x247c2e[_0x5be853(0x2615)](_0x34f335)['then'](function(){_0x56a6e4(_0x43431c);},function(){const _0x26faf0=_0x5be853;console[_0x26faf0(0x1a74)](_0x26faf0(0x39a));});}let _0x1968ec=!![],_0x503e5a=0x1;_0x40fe7e[_0x322669(0x21e8)]('vm.query.filter',function(_0x3310eb,_0x302f85){const _0x286c1b=_0x322669;_0x1968ec?_0xc768ec(function(){_0x1968ec=![];}):(!_0x302f85&&(_0x503e5a=_0x1e6113[_0x286c1b(0x1a56)]['page']),_0x3310eb!==_0x302f85&&(_0x1e6113['query'][_0x286c1b(0x844)]=0x1),!_0x3310eb&&(_0x1e6113[_0x286c1b(0x1a56)][_0x286c1b(0x844)]=_0x503e5a),_0x1e6113[_0x286c1b(0x1c1c)]());});function _0x376d8c(_0x1d6fa9){_0x1e6113['intervals']=_0x1d6fa9||{'count':0x0,'rows':[]};}function _0x24a7b0(){const _0x22b93d=_0x322669;_0x1e6113['query'][_0x22b93d(0x145d)]=(_0x1e6113[_0x22b93d(0x1a56)][_0x22b93d(0x844)]-0x1)*_0x1e6113[_0x22b93d(0x1a56)]['limit'],_0x29009f[_0x22b93d(0x23e0)](_0x22b93d(0x174b))?_0x1e6113['promise']=_0x572155[_0x22b93d(0x2765)][_0x22b93d(0x16b4)](_0x1e6113[_0x22b93d(0x1a56)],_0x376d8c)['$promise']:(_0x1e6113[_0x22b93d(0x1a56)]['id']=_0x1e6113[_0x22b93d(0x26b6)]['id'],_0x1e6113[_0x22b93d(0x1a56)][_0x22b93d(0x2146)]=_0x22b93d(0x162f),_0x1e6113['promise']=_0x572155[_0x22b93d(0x26b6)][_0x22b93d(0x158f)](_0x1e6113[_0x22b93d(0x1a56)],_0x376d8c)['$promise']);}function _0xa3245a(_0x4fc0a1,_0x5d464e){const _0x55e79d=_0x322669;_0x247c2e[_0x55e79d(0x2615)]({'controller':_0x55e79d(0x1eff),'controllerAs':'vm','templateUrl':_0x1fb7db,'parent':angular[_0x55e79d(0x1853)](_0xf01d90['body']),'targetEvent':_0x4fc0a1,'clickOutsideToClose':!![],'locals':{'interval':_0x5d464e,'intervals':_0x1e6113[_0x55e79d(0x278f)][_0x55e79d(0x19c7)],'license':_0x1e6113[_0x55e79d(0x2690)],'setting':_0x1e6113[_0x55e79d(0x15b9)],'crudPermissions':_0x1e6113[_0x55e79d(0x2514)]}});}function _0x56a6e4(_0x3d7714){const _0x3fc0ea=_0x322669;_0x572155[_0x3fc0ea(0x2765)][_0x3fc0ea(0x1fac)]({'id':_0x3d7714['id']})['$promise'][_0x3fc0ea(0x146b)](function(){const _0x58ad59=_0x3fc0ea;_0x3f65c0()[_0x58ad59(0x2640)](_0x1e6113[_0x58ad59(0x278f)][_0x58ad59(0x19c7)],{'id':_0x3d7714['id']}),_0x1e6113[_0x58ad59(0x278f)][_0x58ad59(0x51c)]-=0x1,!_0x1e6113[_0x58ad59(0x278f)][_0x58ad59(0x19c7)]['length']&&_0x1e6113[_0x58ad59(0x1c1c)](),_0x33d31c[_0x58ad59(0x1c75)]({'title':_0x3f65c0()[_0x58ad59(0x20d1)]('Interval')+_0x58ad59(0x201c),'msg':_0x3d7714[_0x58ad59(0x19eb)]?_0x3d7714[_0x58ad59(0x19eb)]+'\x20has\x20been\x20deleted!':''});})[_0x3fc0ea(0x129e)](function(_0x4d69cc){const _0x3925b7=_0x3fc0ea;if(_0x4d69cc[_0x3925b7(0x524)]&&_0x4d69cc[_0x3925b7(0x524)][_0x3925b7(0xcef)]&&_0x4d69cc[_0x3925b7(0x524)]['errors'][_0x3925b7(0x402)]){_0x1e6113['errors']=_0x4d69cc[_0x3925b7(0x524)]['errors']||[{'message':_0x4d69cc['toString'](),'type':'SYSTEM:DELETEinterval'}];for(let _0x2e8059=0x0;_0x2e8059<_0x4d69cc['data']['errors'][_0x3925b7(0x402)];_0x2e8059++){_0x33d31c['error']({'title':_0x4d69cc[_0x3925b7(0x524)][_0x3925b7(0xcef)][_0x2e8059][_0x3925b7(0x1142)],'msg':_0x4d69cc[_0x3925b7(0x524)][_0x3925b7(0xcef)][_0x2e8059][_0x3925b7(0x7fd)]});}}else _0x33d31c[_0x3925b7(0x1980)]({'title':_0x4d69cc[_0x3925b7(0x107b)]?'API:'+_0x4d69cc[_0x3925b7(0x107b)]+_0x3925b7(0x1315)+_0x4d69cc[_0x3925b7(0x167f)]:'SYSTEM:DELETEinterval','msg':_0x4d69cc[_0x3925b7(0x524)]?JSON['stringify'](_0x4d69cc[_0x3925b7(0x524)][_0x3925b7(0x7fd)]):_0x4d69cc[_0x3925b7(0x7fd)]||_0x4d69cc[_0x3925b7(0xd5f)]()});});}function _0x56ee31(){const _0x541859=_0x322669,_0x512a34=angular[_0x541859(0x235a)](_0x1e6113[_0x541859(0x13e9)]);return _0x1e6113[_0x541859(0x13e9)]=[],_0x512a34;}function _0x460d30(_0x2b8329){const _0x34b80d=_0x322669,_0x38689a=_0x247c2e['confirm']()[_0x34b80d(0x1189)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20intervals?')[_0x34b80d(0x1cbe)](_0x34b80d(0x16d3)+_0x1e6113[_0x34b80d(0x13e9)][_0x34b80d(0x402)]+_0x34b80d(0x2452)+_0x34b80d(0xe01))[_0x34b80d(0x4bd)](_0x34b80d(0xe64))['targetEvent'](_0x2b8329)['ok']('OK')['cancel'](_0x34b80d(0x39a));_0x247c2e[_0x34b80d(0x2615)](_0x38689a)[_0x34b80d(0x146b)](function(){const _0x2fd4a6=_0x34b80d;_0x1e6113['selectedIntervals']['forEach'](function(_0x14a8af){_0x56a6e4(_0x14a8af);}),_0x1e6113[_0x2fd4a6(0x13e9)]=[];});}function _0x59c91a(){const _0x326d9a=_0x322669;_0x1e6113[_0x326d9a(0x13e9)]=[];}function _0xca827(){const _0x41dc20=_0x322669;_0x1e6113[_0x41dc20(0x13e9)]=_0x1e6113[_0x41dc20(0x278f)]['rows'];}}const _0x2d36df=_0x243310;;_0x23a3e0[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),'$state','$location',_0x313a4d(0x10e8),'$q','$translate','toasty',_0x313a4d(0x23bb),_0x313a4d(0x1e3e),_0x313a4d(0x247f),_0x313a4d(0xa87),_0x313a4d(0x2690),_0x313a4d(0x15b9),'crudPermissions'];function _0x23a3e0(_0x431359,_0x3d2157,_0x5333e0,_0x3c161a,_0x26ddc3,_0x173158,_0x202647,_0x3e7e7f,_0x32a831,_0x52a813,_0x5d1c72,_0x4685af,_0x2a8d17,_0x1ed528){const _0x4fed54=_0x313a4d,_0x206e6e=this;_0x206e6e[_0x4fed54(0x2321)]=_0x5d1c72[_0x4fed54(0xb12)](),_0x206e6e[_0x4fed54(0xcef)]=[],_0x206e6e[_0x4fed54(0x15b9)]=_0x2a8d17,_0x206e6e[_0x4fed54(0x2690)]=_0x4685af,_0x206e6e[_0x4fed54(0x2514)]=_0x1ed528,_0x206e6e[_0x4fed54(0x855)]={},_0x206e6e[_0x4fed54(0x2251)]=_0x206e6e[_0x4fed54(0x15b9)]&&_0x206e6e[_0x4fed54(0x15b9)][_0x4fed54(0x976)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x206e6e[_0x4fed54(0x1189)]=_0x4fed54(0x236),_0x206e6e[_0x4fed54(0x1e3e)]=angular[_0x4fed54(0x235a)](_0x32a831),_0x206e6e[_0x4fed54(0x23bb)]=_0x3e7e7f,_0x206e6e[_0x4fed54(0x2086)]=![];!_0x206e6e[_0x4fed54(0x1e3e)]&&(_0x206e6e[_0x4fed54(0x1e3e)]={},_0x206e6e[_0x4fed54(0x1189)]='TOOLS.NEW_PAUSE',_0x206e6e[_0x4fed54(0x2086)]=!![]);_0x206e6e[_0x4fed54(0x139e)]=_0x356cb5,_0x206e6e['savePause']=_0x3403c5,_0x206e6e[_0x4fed54(0x95f)]=_0x14fbc0,_0x206e6e[_0x4fed54(0xe73)]=_0x2f51af,_0x206e6e[_0x4fed54(0x13f3)]=_0x3e5ee9;function _0x356cb5(){const _0x3e1bfd=_0x4fed54;_0x206e6e['errors']=[],_0x52a813[_0x3e1bfd(0x1e3e)][_0x3e1bfd(0x1e3)](_0x206e6e[_0x3e1bfd(0x1e3e)])[_0x3e1bfd(0x2945)][_0x3e1bfd(0x146b)](function(_0x51a27e){const _0x3214e8=_0x3e1bfd;_0x206e6e['pauses'][_0x3214e8(0xb3d)](_0x51a27e[_0x3214e8(0x2488)]()),_0x202647[_0x3214e8(0x1c75)]({'title':_0x3214e8(0x738),'msg':_0x206e6e[_0x3214e8(0x1e3e)]['name']?_0x206e6e['pause'][_0x3214e8(0x19eb)]+_0x3214e8(0x1386):''}),_0x3e5ee9(_0x51a27e);})[_0x3e1bfd(0x129e)](function(_0x544e09){const _0x1864c8=_0x3e1bfd;if(_0x544e09[_0x1864c8(0x524)]&&_0x544e09[_0x1864c8(0x524)][_0x1864c8(0xcef)]&&_0x544e09[_0x1864c8(0x524)][_0x1864c8(0xcef)][_0x1864c8(0x402)]){_0x206e6e[_0x1864c8(0xcef)]=_0x544e09[_0x1864c8(0x524)][_0x1864c8(0xcef)]||[{'message':_0x544e09[_0x1864c8(0xd5f)](),'type':'api.pause.save'}];for(let _0xf14d1c=0x0;_0xf14d1c<_0x544e09[_0x1864c8(0x524)][_0x1864c8(0xcef)][_0x1864c8(0x402)];_0xf14d1c+=0x1){_0x202647[_0x1864c8(0x1980)]({'title':_0x544e09[_0x1864c8(0x524)][_0x1864c8(0xcef)][_0xf14d1c][_0x1864c8(0x1142)],'msg':_0x544e09['data'][_0x1864c8(0xcef)][_0xf14d1c][_0x1864c8(0x7fd)]});}}else _0x202647[_0x1864c8(0x1980)]({'title':_0x544e09[_0x1864c8(0x107b)]?'API:'+_0x544e09[_0x1864c8(0x107b)]+_0x1864c8(0x1315)+_0x544e09[_0x1864c8(0x167f)]:_0x1864c8(0x25b2),'msg':_0x544e09[_0x1864c8(0x524)]?JSON[_0x1864c8(0x10bb)](_0x544e09['data'][_0x1864c8(0x7fd)]):_0x544e09[_0x1864c8(0xd5f)]()});});}function _0x3403c5(){const _0x4e0044=_0x4fed54;_0x206e6e[_0x4e0044(0xcef)]=[],_0x52a813[_0x4e0044(0x1e3e)][_0x4e0044(0x18e1)]({'id':_0x206e6e[_0x4e0044(0x1e3e)]['id']},_0x206e6e[_0x4e0044(0x1e3e)])['$promise'][_0x4e0044(0x146b)](function(_0x4fc4b8){const _0x3289a0=_0x4e0044,_0x441eaa=_0x3f65c0()[_0x3289a0(0xc84)](_0x206e6e[_0x3289a0(0x23bb)],{'id':_0x4fc4b8['id']});_0x441eaa&&_0x3f65c0()['merge'](_0x441eaa,_0x3f65c0()[_0x3289a0(0x40e)](_0x4fc4b8[_0x3289a0(0x2488)](),_0x3f65c0()[_0x3289a0(0x627)](_0x441eaa))),_0x202647[_0x3289a0(0x1c75)]({'title':_0x3289a0(0x2621),'msg':_0x206e6e[_0x3289a0(0x1e3e)]['name']?_0x206e6e[_0x3289a0(0x1e3e)][_0x3289a0(0x19eb)]+_0x3289a0(0x24db):''}),_0x3e5ee9(_0x4fc4b8);})['catch'](function(_0x4ddc75){const _0x517373=_0x4e0044;if(_0x4ddc75[_0x517373(0x524)]&&_0x4ddc75['data'][_0x517373(0xcef)]&&_0x4ddc75[_0x517373(0x524)][_0x517373(0xcef)][_0x517373(0x402)]){_0x206e6e[_0x517373(0xcef)]=_0x4ddc75[_0x517373(0x524)]['errors']||[{'message':_0x4ddc75['toString'](),'type':'api.pause.update'}];for(let _0x492c75=0x0;_0x492c75<_0x4ddc75[_0x517373(0x524)]['errors'][_0x517373(0x402)];_0x492c75++){_0x202647[_0x517373(0x1980)]({'title':_0x4ddc75[_0x517373(0x524)][_0x517373(0xcef)][_0x492c75]['type'],'msg':_0x4ddc75['data'][_0x517373(0xcef)][_0x492c75]['message']});}}else _0x202647[_0x517373(0x1980)]({'title':_0x4ddc75[_0x517373(0x107b)]?_0x517373(0x262a)+_0x4ddc75[_0x517373(0x107b)]+_0x517373(0x1315)+_0x4ddc75['statusText']:_0x517373(0xdd5),'msg':_0x4ddc75[_0x517373(0x524)]?JSON[_0x517373(0x10bb)](_0x4ddc75[_0x517373(0x524)]['message']):_0x4ddc75[_0x517373(0xd5f)]()});});}function _0x14fbc0(_0x5c4555){const _0xddebc7=_0x4fed54;_0x206e6e[_0xddebc7(0xcef)]=[];const _0x10f5e9=_0x3c161a[_0xddebc7(0x1e8a)]()[_0xddebc7(0x1189)](_0xddebc7(0x1d64))[_0xddebc7(0x80f)](_0xddebc7(0x277f))[_0xddebc7(0x4bd)]('Delete\x20Pause')['ok'](_0xddebc7(0x25de))['cancel'](_0xddebc7(0xcf0))['targetEvent'](_0x5c4555);_0x3c161a[_0xddebc7(0x2615)](_0x10f5e9)[_0xddebc7(0x146b)](function(){const _0x18e0ff=_0xddebc7;_0x52a813[_0x18e0ff(0x1e3e)]['delete']({'id':_0x206e6e['pause']['id']})[_0x18e0ff(0x2945)][_0x18e0ff(0x146b)](function(){const _0x21cd24=_0x18e0ff;_0x3f65c0()['remove'](_0x206e6e[_0x21cd24(0x23bb)],{'id':_0x206e6e['pause']['id']}),_0x202647['success']({'title':'Pause\x20properly\x20deleted!','msg':(_0x206e6e[_0x21cd24(0x1e3e)][_0x21cd24(0x19eb)]||'pause')+_0x21cd24(0x23e3)}),_0x3e5ee9(_0x206e6e[_0x21cd24(0x1e3e)]);})['catch'](function(_0x53441f){const _0x322b94=_0x18e0ff;if(_0x53441f[_0x322b94(0x524)]&&_0x53441f['data'][_0x322b94(0xcef)]&&_0x53441f[_0x322b94(0x524)][_0x322b94(0xcef)]['length']){_0x206e6e[_0x322b94(0xcef)]=_0x53441f[_0x322b94(0x524)][_0x322b94(0xcef)]||[{'message':_0x53441f[_0x322b94(0xd5f)](),'type':_0x322b94(0x2659)}];for(let _0x59e69e=0x0;_0x59e69e<_0x53441f[_0x322b94(0x524)]['errors'][_0x322b94(0x402)];_0x59e69e++){_0x202647[_0x322b94(0x1980)]({'title':_0x53441f['data'][_0x322b94(0xcef)][_0x59e69e][_0x322b94(0x1142)],'msg':_0x53441f['data'][_0x322b94(0xcef)][_0x59e69e][_0x322b94(0x7fd)]});}}else _0x202647[_0x322b94(0x1980)]({'title':_0x53441f[_0x322b94(0x107b)]?_0x322b94(0x262a)+_0x53441f[_0x322b94(0x107b)]+'\x20-\x20'+_0x53441f[_0x322b94(0x167f)]:_0x322b94(0x2659),'msg':_0x53441f[_0x322b94(0x524)]?JSON[_0x322b94(0x10bb)](_0x53441f['data'][_0x322b94(0x7fd)]):_0x53441f[_0x322b94(0x7fd)]||_0x53441f['toString']()});});},function(){});}function _0x2f51af(_0x14a0d9){return _0x14a0d9===null?undefined:new Date(_0x14a0d9);}function _0x3e5ee9(_0x1276e7){const _0x12688b=_0x4fed54;_0x3c161a[_0x12688b(0x2458)](_0x1276e7);}}const _0x467eb2=_0x23a3e0;;const _0x355510=_0x4acfac['p']+_0x313a4d(0x1026);;_0x58167a[_0x313a4d(0x11c2)]=['$scope','$window',_0x313a4d(0x1862),'$mdSidenav','$mdDialog',_0x313a4d(0x4d8),_0x313a4d(0x1abe),_0x313a4d(0x214b),_0x313a4d(0x23bb),_0x313a4d(0x26b6),'userProfileSection','api',_0x313a4d(0x216c),_0x313a4d(0x1fe4),_0x313a4d(0xa87),_0x313a4d(0x2690),'setting'];function _0x58167a(_0x2a4222,_0x15c6bd,_0x108694,_0x2b0ba9,_0x35f266,_0x4927ea,_0x26b485,_0x4ed76e,_0x71d41c,_0x1b2389,_0x5c3905,_0x50fb75,_0x590090,_0x64ae36,_0x3eb490,_0x378327,_0x2956b5){const _0x43bd9d=_0x313a4d,_0x191460=this;_0x191460[_0x43bd9d(0x2690)]=_0x378327,_0x191460['setting']=_0x2956b5,_0x191460[_0x43bd9d(0x2321)]=_0x3eb490[_0x43bd9d(0xb12)](),_0x191460[_0x43bd9d(0x23bb)]=_0x71d41c||{'count':0x0,'rows':[]},_0x191460['userProfile']=_0x1b2389,_0x191460['userProfileSection']=_0x5c3905&&_0x5c3905[_0x43bd9d(0x51c)]==0x1?_0x5c3905[_0x43bd9d(0x19c7)][0x0]:null,_0x191460['crudPermissions']=_0x3eb490[_0x43bd9d(0xe60)](_0x191460[_0x43bd9d(0x1366)]?_0x191460[_0x43bd9d(0x1366)][_0x43bd9d(0x2514)]:null),_0x191460[_0x43bd9d(0x768)]=_0x43bd9d(0x23bb),_0x191460[_0x43bd9d(0x216a)]='',_0x191460['listOrderAsc']=null,_0x191460[_0x43bd9d(0x22e9)]=[],_0x191460[_0x43bd9d(0x1a56)]={'fields':_0x43bd9d(0x608),'sort':_0x43bd9d(0x12f2),'limit':0xa,'page':0x1},_0x191460[_0x43bd9d(0x2ed)]=_0x2eed45,_0x191460[_0x43bd9d(0xf0a)]=_0x324a05,_0x191460[_0x43bd9d(0x1c75)]=_0x1cb6bd,_0x191460[_0x43bd9d(0x494)]=_0x57f38f,_0x191460['createOrEditPause']=_0x583a9d,_0x191460[_0x43bd9d(0x95f)]=_0x54268a,_0x191460[_0x43bd9d(0x28bb)]=_0x1cba47,_0x191460[_0x43bd9d(0xeef)]=_0x5773d3,_0x191460[_0x43bd9d(0x23ed)]=_0x30cc95,_0x191460[_0x43bd9d(0xea9)]=_0x36137a;function _0x2eed45(_0x2b5e34,_0x4a1d3c){const _0x2fcf44=_0x43bd9d;_0x35f266['show']({'controller':_0x2fcf44(0x24be),'controllerAs':'vm','templateUrl':_0x355510,'parent':angular[_0x2fcf44(0x1853)](_0x4927ea[_0x2fcf44(0x2586)]),'targetEvent':_0x4a1d3c,'clickOutsideToClose':!![],'locals':{'pause':_0x2b5e34,'pauses':_0x191460[_0x2fcf44(0x23bb)][_0x2fcf44(0x19c7)],'license':_0x191460['license'],'setting':null,'crudPermissions':_0x191460['crudPermissions']}});}function _0x324a05(_0x1e6d94,_0x13e657){const _0x47204a=_0x43bd9d,_0x4654ae=_0x35f266['confirm']()[_0x47204a(0x1189)](_0x47204a(0xdb2)+_0x3f65c0()[_0x47204a(0x20d1)](_0x47204a(0x1e3e))+'?')[_0x47204a(0x1cbe)](_0x47204a(0x16d3)+(_0x1e6d94[_0x47204a(0x19eb)]||_0x47204a(0x1e3e))+_0x47204a(0x252f)+_0x47204a(0xe01))[_0x47204a(0x4bd)](_0x47204a(0x7d0))[_0x47204a(0x1f27)](_0x13e657)['ok']('OK')[_0x47204a(0x6c3)]('CANCEL');_0x35f266[_0x47204a(0x2615)](_0x4654ae)[_0x47204a(0x146b)](function(){_0x54268a(_0x1e6d94);},function(){const _0x517953=_0x47204a;console[_0x517953(0x1a74)]('CANCEL');});}let _0x12b0ae=!![],_0x3b65cd=0x1;_0x2a4222['$watch'](_0x43bd9d(0x2669),function(_0x12ba27,_0x341a05){const _0x4fe37d=_0x43bd9d;_0x12b0ae?_0x26b485(function(){_0x12b0ae=![];}):(!_0x341a05&&(_0x3b65cd=_0x191460[_0x4fe37d(0x1a56)][_0x4fe37d(0x844)]),_0x12ba27!==_0x341a05&&(_0x191460[_0x4fe37d(0x1a56)][_0x4fe37d(0x844)]=0x1),!_0x12ba27&&(_0x191460[_0x4fe37d(0x1a56)][_0x4fe37d(0x844)]=_0x3b65cd),_0x191460[_0x4fe37d(0x494)]());});function _0x1cb6bd(_0x2f2522){const _0x4c3718=_0x43bd9d;_0x191460[_0x4c3718(0x23bb)]=_0x2f2522||{'count':0x0,'rows':[]};}function _0x57f38f(){const _0x49cc4d=_0x43bd9d;_0x191460[_0x49cc4d(0x1a56)][_0x49cc4d(0x145d)]=(_0x191460[_0x49cc4d(0x1a56)][_0x49cc4d(0x844)]-0x1)*_0x191460['query'][_0x49cc4d(0x221e)],_0x3eb490[_0x49cc4d(0x23e0)](_0x49cc4d(0x174b))?_0x191460['promise']=_0x50fb75[_0x49cc4d(0x1e3e)]['get'](_0x191460[_0x49cc4d(0x1a56)],_0x1cb6bd)[_0x49cc4d(0x2945)]:(_0x191460[_0x49cc4d(0x1a56)]['id']=_0x191460[_0x49cc4d(0x26b6)]['id'],_0x191460[_0x49cc4d(0x1a56)]['section']=_0x49cc4d(0x197),_0x191460['promise']=_0x50fb75[_0x49cc4d(0x26b6)][_0x49cc4d(0x158f)](_0x191460['query'],_0x1cb6bd)[_0x49cc4d(0x2945)]);}function _0x583a9d(_0x3919d0,_0x10e57f){const _0x3a2739=_0x43bd9d;_0x35f266[_0x3a2739(0x2615)]({'controller':_0x3a2739(0x24be),'controllerAs':'vm','templateUrl':_0x355510,'parent':angular['element'](_0x4927ea[_0x3a2739(0x2586)]),'targetEvent':_0x3919d0,'clickOutsideToClose':!![],'locals':{'pause':_0x10e57f,'pauses':_0x191460[_0x3a2739(0x23bb)][_0x3a2739(0x19c7)],'license':_0x191460[_0x3a2739(0x2690)],'setting':_0x191460['setting'],'crudPermissions':_0x191460[_0x3a2739(0x2514)]}});}function _0x54268a(_0x891e4b){const _0x3f92b6=_0x43bd9d;_0x50fb75[_0x3f92b6(0x1e3e)][_0x3f92b6(0x1fac)]({'id':_0x891e4b['id']})[_0x3f92b6(0x2945)][_0x3f92b6(0x146b)](function(){const _0x591351=_0x3f92b6;_0x3f65c0()[_0x591351(0x2640)](_0x191460[_0x591351(0x23bb)][_0x591351(0x19c7)],{'id':_0x891e4b['id']}),_0x191460[_0x591351(0x23bb)][_0x591351(0x51c)]-=0x1,!_0x191460[_0x591351(0x23bb)][_0x591351(0x19c7)][_0x591351(0x402)]&&_0x191460[_0x591351(0x494)](),_0x64ae36[_0x591351(0x1c75)]({'title':_0x3f65c0()['startCase']('Pause')+_0x591351(0x201c),'msg':_0x891e4b[_0x591351(0x19eb)]?_0x891e4b['name']+_0x591351(0x23e3):''});})['catch'](function(_0x5428fe){const _0x9ce8dd=_0x3f92b6;if(_0x5428fe[_0x9ce8dd(0x524)]&&_0x5428fe[_0x9ce8dd(0x524)]['errors']&&_0x5428fe[_0x9ce8dd(0x524)][_0x9ce8dd(0xcef)][_0x9ce8dd(0x402)]){_0x191460[_0x9ce8dd(0xcef)]=_0x5428fe[_0x9ce8dd(0x524)]['errors']||[{'message':_0x5428fe[_0x9ce8dd(0xd5f)](),'type':_0x9ce8dd(0x24cd)}];for(let _0x1dc5eb=0x0;_0x1dc5eb<_0x5428fe['data'][_0x9ce8dd(0xcef)][_0x9ce8dd(0x402)];_0x1dc5eb++){_0x64ae36['error']({'title':_0x5428fe['data'][_0x9ce8dd(0xcef)][_0x1dc5eb][_0x9ce8dd(0x1142)],'msg':_0x5428fe[_0x9ce8dd(0x524)][_0x9ce8dd(0xcef)][_0x1dc5eb]['message']});}}else _0x64ae36[_0x9ce8dd(0x1980)]({'title':_0x5428fe[_0x9ce8dd(0x107b)]?_0x9ce8dd(0x262a)+_0x5428fe[_0x9ce8dd(0x107b)]+_0x9ce8dd(0x1315)+_0x5428fe[_0x9ce8dd(0x167f)]:_0x9ce8dd(0x24cd),'msg':_0x5428fe[_0x9ce8dd(0x524)]?JSON[_0x9ce8dd(0x10bb)](_0x5428fe[_0x9ce8dd(0x524)][_0x9ce8dd(0x7fd)]):_0x5428fe[_0x9ce8dd(0x7fd)]||_0x5428fe[_0x9ce8dd(0xd5f)]()});});}function _0x1cba47(){const _0x4a09c4=_0x43bd9d,_0x270a58=angular['copy'](_0x191460[_0x4a09c4(0x22e9)]);return _0x191460[_0x4a09c4(0x22e9)]=[],_0x270a58;}function _0x5773d3(_0x4bd35a){const _0x5a384a=_0x43bd9d,_0x29f19e=_0x35f266['confirm']()[_0x5a384a(0x1189)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20pauses?')[_0x5a384a(0x1cbe)](_0x5a384a(0x16d3)+_0x191460[_0x5a384a(0x22e9)]['length']+_0x5a384a(0x2452)+_0x5a384a(0xe01))[_0x5a384a(0x4bd)](_0x5a384a(0x2087))['targetEvent'](_0x4bd35a)['ok']('OK')['cancel'](_0x5a384a(0x39a));_0x35f266[_0x5a384a(0x2615)](_0x29f19e)[_0x5a384a(0x146b)](function(){const _0x14673e=_0x5a384a;_0x191460[_0x14673e(0x22e9)]['forEach'](function(_0x1b5cb9){_0x54268a(_0x1b5cb9);}),_0x191460[_0x14673e(0x22e9)]=[];});}function _0x30cc95(){const _0x117e37=_0x43bd9d;_0x191460[_0x117e37(0x22e9)]=[];}function _0x36137a(){const _0x42571e=_0x43bd9d;_0x191460[_0x42571e(0x22e9)]=_0x191460[_0x42571e(0x23bb)][_0x42571e(0x19c7)];}}const _0xe0acd5=_0x58167a;;const _0x58b6e3=_0x4acfac['p']+_0x313a4d(0x2196);;_0x501b92['$inject']=[_0x313a4d(0x910),_0x313a4d(0x1862),_0x313a4d(0xd08),'$mdDialog','$q',_0x313a4d(0x214b),_0x313a4d(0x1fe4),_0x313a4d(0x1f36),'schedule',_0x313a4d(0x247f),_0x313a4d(0xa87),_0x313a4d(0x2690),'setting',_0x313a4d(0x2514)];function _0x501b92(_0x56d3e3,_0x37ae82,_0x2d63d4,_0x362f19,_0x5e2a49,_0x1a6a8f,_0x26e039,_0x29554,_0xc0b47c,_0x424f95,_0x439a59,_0x10d395,_0x2b6b98,_0x352251){const _0xf1cc66=_0x313a4d,_0x49c3c1=this;_0x49c3c1[_0xf1cc66(0x2321)]=_0x439a59[_0xf1cc66(0xb12)](),_0x49c3c1[_0xf1cc66(0xcef)]=[],_0x49c3c1['setting']=_0x2b6b98,_0x49c3c1[_0xf1cc66(0x2690)]=_0x10d395,_0x49c3c1[_0xf1cc66(0x2514)]=_0x352251,_0x49c3c1['hasModulePermissions']={},_0x49c3c1[_0xf1cc66(0x2251)]=_0x49c3c1[_0xf1cc66(0x15b9)]&&_0x49c3c1['setting'][_0xf1cc66(0x976)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x49c3c1['title']=_0xf1cc66(0xa98),_0x49c3c1[_0xf1cc66(0x4bf)]=angular[_0xf1cc66(0x235a)](_0xc0b47c),_0x49c3c1[_0xf1cc66(0x1f36)]=_0x29554,_0x49c3c1[_0xf1cc66(0x21c5)]=![],_0x49c3c1[_0xf1cc66(0x1f30)]=[],_0x49c3c1[_0xf1cc66(0x1a56)]={'fields':_0xf1cc66(0x25ce),'limit':0xa,'page':0x1,'sort':_0xf1cc66(0x12f2)};if(!_0x49c3c1[_0xf1cc66(0x4bf)])_0x49c3c1['schedule']={'output':_0xf1cc66(0x27a2),'active':!![],'startAt':new Date(),'endAt':new Date(Date['now']()+0x1e*0x18*0x3c*0x3c*0x3e8),'cron':_0xf1cc66(0x19fd),'subtractNumber':0x1,'subtractUnit':_0xf1cc66(0x13d7),'sendMail':![],'sendIfEmpty':!![]},_0x49c3c1[_0xf1cc66(0x1189)]=_0xf1cc66(0x27a4),_0x49c3c1[_0xf1cc66(0x21c5)]=!![];else{_0x49c3c1[_0xf1cc66(0x320)]=_0x49c3c1[_0xf1cc66(0x4bf)][_0xf1cc66(0x1148)]?'analyticDefaultReport':'analyticCustomReport';const _0x3025bd=_0x49c3c1[_0xf1cc66(0x4bf)][_0xf1cc66(0x1148)]?_0x49c3c1['schedule'][_0xf1cc66(0x1148)]:_0x49c3c1[_0xf1cc66(0x4bf)]['CustomReportId'];_0x424f95[_0x49c3c1[_0xf1cc66(0x320)]][_0xf1cc66(0x16b4)]({'fields':_0xf1cc66(0x2134)})[_0xf1cc66(0x2945)][_0xf1cc66(0x146b)](function(_0xcf444c){const _0x51b31d=_0xf1cc66;_0x49c3c1[_0x51b31d(0x1cec)]=_0x3f65c0()['find'](_0xcf444c[_0x51b31d(0x19c7)],{'id':_0x3025bd}),_0x49c3c1[_0x51b31d(0x4bf)][_0x51b31d(0x1c9a)]=_0x49c3c1[_0x51b31d(0x1cec)][_0x51b31d(0x19eb)],_0x49c3c1[_0x51b31d(0x1a56)]['parent']=_0x49c3c1[_0x51b31d(0x1cec)][_0x51b31d(0x3fd)];});}_0x49c3c1['addNewSchedule']=_0x36e0b2,_0x49c3c1[_0xf1cc66(0xcca)]=_0x1b980b,_0x49c3c1[_0xf1cc66(0x1ab9)]=_0x360bfb,_0x49c3c1[_0xf1cc66(0xe73)]=_0x30e58b,_0x49c3c1[_0xf1cc66(0x12f7)]=_0x2eb6eb,_0x49c3c1[_0xf1cc66(0xfd7)]=_0x4e95c7,_0x49c3c1[_0xf1cc66(0x19e8)]=_0x44e9bd,_0x49c3c1[_0xf1cc66(0x2109)]=_0x17b10b,_0x49c3c1[_0xf1cc66(0x13f3)]=_0x48653e,_0x424f95[_0xf1cc66(0x888)][_0xf1cc66(0x16b4)]({})[_0xf1cc66(0x2945)][_0xf1cc66(0x146b)](function(_0x286bc6){const _0x11e1c0=_0xf1cc66;_0x49c3c1[_0x11e1c0(0x728)]=_0x286bc6[_0x11e1c0(0x19c7)]||[];})[_0xf1cc66(0x129e)](function(_0xc215c2){const _0x2cc48d=_0xf1cc66;_0x26e039['error']({'title':_0xc215c2['status']?'API:'+_0xc215c2[_0x2cc48d(0x107b)]+'\x20-\x20'+_0xc215c2[_0x2cc48d(0x167f)]:'SYSTEM:GET_TREEREPORTS','msg':_0xc215c2[_0x2cc48d(0x524)]?JSON['stringify'](_0xc215c2[_0x2cc48d(0x524)]):_0xc215c2['toString']()});}),_0x439a59['hasRole'](_0xf1cc66(0x174b))?_0x424f95[_0xf1cc66(0x67d)][_0xf1cc66(0x16b4)]({'fields':'id,name','sort':_0xf1cc66(0x19eb)})[_0xf1cc66(0x2945)][_0xf1cc66(0x146b)](function(_0x21b4d5){const _0x317388=_0xf1cc66;_0x49c3c1[_0x317388(0x1593)]=_0x21b4d5[_0x317388(0x19c7)]||[];})['catch'](function(_0x3593a2){const _0x5be50a=_0xf1cc66;_0x26e039[_0x5be50a(0x1980)]({'title':_0x3593a2[_0x5be50a(0x107b)]?_0x5be50a(0x262a)+_0x3593a2[_0x5be50a(0x107b)]+_0x5be50a(0x1315)+_0x3593a2[_0x5be50a(0x167f)]:_0x5be50a(0x2898),'msg':_0x3593a2[_0x5be50a(0x524)]?JSON[_0x5be50a(0x10bb)](_0x3593a2[_0x5be50a(0x524)]):_0x3593a2[_0x5be50a(0xd5f)]()});}):_0x424f95[_0xf1cc66(0x67d)]['get']({'fields':_0xf1cc66(0x7a7),'sort':'name'})[_0xf1cc66(0x2945)][_0xf1cc66(0x146b)](function(_0x2eb6de){const _0x111b0e=_0xf1cc66;_0x49c3c1[_0x111b0e(0x1593)]=_0x2eb6de[_0x111b0e(0x19c7)]||[];})['then'](function(){const _0xea73ea=_0xf1cc66;return _0x424f95['userProfileSection'][_0xea73ea(0x16b4)]({'userProfileId':_0x49c3c1['currentUser'][_0xea73ea(0x209a)],'sectionId':0x25a})[_0xea73ea(0x2945)];})[_0xf1cc66(0x146b)](function(_0x33b3bb){const _0xd7cbcf=_0xf1cc66,_0x33a377=_0x33b3bb&&_0x33b3bb[_0xd7cbcf(0x19c7)]?_0x33b3bb[_0xd7cbcf(0x19c7)][0x0]:null;if(!_0x33a377){const _0x22611f=[];let _0x14a75b=null;_0x49c3c1[_0xd7cbcf(0x4bf)]&&(_0x14a75b=_0x3f65c0()['find'](_0x49c3c1['mailAccounts'],{'id':Number(_0x49c3c1['schedule'][_0xd7cbcf(0x658)])}));for(let _0x2cd0a7=0x0;_0x2cd0a7<_0x49c3c1[_0xd7cbcf(0x1593)][_0xd7cbcf(0x402)];_0x2cd0a7++){_0x14a75b&&_0x49c3c1[_0xd7cbcf(0x1593)][_0x2cd0a7]['id']===_0x14a75b['id']&&(_0x49c3c1['mailAccounts'][_0x2cd0a7]['canSelect']=![],_0x22611f[_0xd7cbcf(0x1f47)](_0x49c3c1[_0xd7cbcf(0x1593)][_0x2cd0a7]));}_0x49c3c1[_0xd7cbcf(0x1593)]=_0x22611f;}else{if(!_0x33a377[_0xd7cbcf(0x11d2)])return _0x424f95[_0xd7cbcf(0xdcc)][_0xd7cbcf(0x16b4)]({'sectionId':_0x33a377['id']})[_0xd7cbcf(0x2945)][_0xd7cbcf(0x146b)](function(_0x2af8e4){const _0x60aa2d=_0xd7cbcf,_0x417a43=_0x3f65c0()[_0x60aa2d(0x205)](_0x2af8e4[_0x60aa2d(0x19c7)],function(_0x3ca282){const _0x43b10d=_0x60aa2d;return _0x3f65c0()[_0x43b10d(0xc84)](_0x49c3c1['mailAccounts'],{'id':_0x3ca282[_0x43b10d(0x18b8)]});});let _0x1e1ffc=null;_0x49c3c1[_0x60aa2d(0x4bf)]&&(_0x1e1ffc=_0x3f65c0()[_0x60aa2d(0xc84)](_0x49c3c1[_0x60aa2d(0x1593)],{'id':Number(_0x49c3c1[_0x60aa2d(0x4bf)][_0x60aa2d(0x658)])}));if(_0x1e1ffc&&!_0x3f65c0()['some'](_0x417a43,['id',_0x1e1ffc['id']])){const _0x3f99b7=_0x3f65c0()['find'](_0x49c3c1['mailAccounts'],{'id':_0x1e1ffc['id']});_0x3f99b7['canSelect']=![],_0x417a43[_0x60aa2d(0x1f47)](_0x3f99b7);}_0x49c3c1[_0x60aa2d(0x1593)]=_0x417a43;});}})[_0xf1cc66(0x129e)](function(_0x52acd7){const _0x58bdef=_0xf1cc66;_0x26e039[_0x58bdef(0x1980)]({'title':_0x52acd7[_0x58bdef(0x107b)]?_0x58bdef(0x262a)+_0x52acd7[_0x58bdef(0x107b)]+_0x58bdef(0x1315)+_0x52acd7[_0x58bdef(0x167f)]:_0x58bdef(0x386),'msg':_0x52acd7[_0x58bdef(0x524)]?JSON['stringify'](_0x52acd7['data']):_0x52acd7[_0x58bdef(0xd5f)]()});});function _0x36e0b2(){const _0x2632e1=_0xf1cc66;_0x49c3c1['errors']=[],_0x424f95[_0x2632e1(0x4bf)][_0x2632e1(0x1e3)](_0x49c3c1[_0x2632e1(0x4bf)])[_0x2632e1(0x2945)][_0x2632e1(0x146b)](function(_0x57b37d){const _0x29de69=_0x2632e1;_0x49c3c1[_0x29de69(0x1f36)][_0x29de69(0xb3d)](_0x57b37d[_0x29de69(0x2488)]()),_0x26e039[_0x29de69(0x1c75)]({'title':_0x29de69(0x10db),'msg':_0x49c3c1['schedule'][_0x29de69(0x19eb)]?_0x49c3c1[_0x29de69(0x4bf)][_0x29de69(0x19eb)]+_0x29de69(0x1386):''}),_0x48653e(_0x57b37d);})[_0x2632e1(0x129e)](function(_0x5b4503){const _0x52a7a4=_0x2632e1;if(_0x5b4503[_0x52a7a4(0x524)]&&_0x5b4503[_0x52a7a4(0x524)][_0x52a7a4(0xcef)]&&_0x5b4503['data'][_0x52a7a4(0xcef)][_0x52a7a4(0x402)]){_0x49c3c1[_0x52a7a4(0xcef)]=_0x5b4503['data'][_0x52a7a4(0xcef)]||[{'message':_0x5b4503[_0x52a7a4(0xd5f)](),'type':_0x52a7a4(0x230f)}];for(let _0x4617f6=0x0;_0x4617f6<_0x5b4503[_0x52a7a4(0x524)][_0x52a7a4(0xcef)][_0x52a7a4(0x402)];_0x4617f6+=0x1){_0x26e039[_0x52a7a4(0x1980)]({'title':_0x5b4503[_0x52a7a4(0x524)][_0x52a7a4(0xcef)][_0x4617f6]['type'],'msg':_0x5b4503['data'][_0x52a7a4(0xcef)][_0x4617f6]['message']});}}else _0x26e039[_0x52a7a4(0x1980)]({'title':_0x5b4503[_0x52a7a4(0x107b)]?_0x52a7a4(0x262a)+_0x5b4503[_0x52a7a4(0x107b)]+'\x20-\x20'+_0x5b4503[_0x52a7a4(0x167f)]:_0x52a7a4(0x230f),'msg':_0x5b4503[_0x52a7a4(0x524)]?JSON['stringify'](_0x5b4503[_0x52a7a4(0x524)][_0x52a7a4(0x7fd)]):_0x5b4503['toString']()});});}function _0x1b980b(){const _0x4e100a=_0xf1cc66;_0x49c3c1[_0x4e100a(0xcef)]=[],_0x424f95[_0x4e100a(0x4bf)][_0x4e100a(0x18e1)]({'id':_0x49c3c1[_0x4e100a(0x4bf)]['id']},_0x49c3c1[_0x4e100a(0x4bf)])[_0x4e100a(0x2945)][_0x4e100a(0x146b)](function(_0xfc894e){const _0x408834=_0x4e100a,_0x5ec083=_0x3f65c0()[_0x408834(0xc84)](_0x49c3c1[_0x408834(0x1f36)],{'id':_0xfc894e['id']});_0x5ec083&&_0x3f65c0()[_0x408834(0x168d)](_0x5ec083,_0x3f65c0()[_0x408834(0x40e)](_0xfc894e[_0x408834(0x2488)](),_0x3f65c0()['keys'](_0x5ec083))),_0x26e039['success']({'title':'Schedule\x20properly\x20saved!','msg':_0x49c3c1[_0x408834(0x4bf)]['name']?_0x49c3c1['schedule'][_0x408834(0x19eb)]+'\x20has\x20been\x20saved!':''}),_0x48653e(_0xfc894e);})[_0x4e100a(0x129e)](function(_0x4676eb){const _0x104e12=_0x4e100a;if(_0x4676eb[_0x104e12(0x524)]&&_0x4676eb['data']['errors']&&_0x4676eb[_0x104e12(0x524)][_0x104e12(0xcef)][_0x104e12(0x402)]){_0x49c3c1[_0x104e12(0xcef)]=_0x4676eb[_0x104e12(0x524)][_0x104e12(0xcef)]||[{'message':_0x4676eb[_0x104e12(0xd5f)](),'type':_0x104e12(0x14e9)}];for(let _0x483e1f=0x0;_0x483e1f<_0x4676eb[_0x104e12(0x524)][_0x104e12(0xcef)][_0x104e12(0x402)];_0x483e1f++){_0x26e039[_0x104e12(0x1980)]({'title':_0x4676eb['data'][_0x104e12(0xcef)][_0x483e1f][_0x104e12(0x1142)],'msg':_0x4676eb[_0x104e12(0x524)][_0x104e12(0xcef)][_0x483e1f][_0x104e12(0x7fd)]});}}else _0x26e039[_0x104e12(0x1980)]({'title':_0x4676eb[_0x104e12(0x107b)]?_0x104e12(0x262a)+_0x4676eb[_0x104e12(0x107b)]+_0x104e12(0x1315)+_0x4676eb[_0x104e12(0x167f)]:_0x104e12(0x14e9),'msg':_0x4676eb['data']?JSON[_0x104e12(0x10bb)](_0x4676eb[_0x104e12(0x524)][_0x104e12(0x7fd)]):_0x4676eb[_0x104e12(0xd5f)]()});});}function _0x360bfb(_0x7c962c){const _0x3391aa=_0xf1cc66;_0x49c3c1[_0x3391aa(0xcef)]=[];const _0x24c28e=_0x362f19[_0x3391aa(0x1e8a)]()['title']('Are\x20you\x20sure?')['content'](_0x3391aa(0x22d3))['ariaLabel'](_0x3391aa(0x2219))['ok'](_0x3391aa(0x25de))[_0x3391aa(0x6c3)]('Cancel')[_0x3391aa(0x1f27)](_0x7c962c);_0x362f19[_0x3391aa(0x2615)](_0x24c28e)['then'](function(){const _0x1a467e=_0x3391aa;_0x424f95['schedule'][_0x1a467e(0x1fac)]({'id':_0x49c3c1['schedule']['id']})[_0x1a467e(0x2945)][_0x1a467e(0x146b)](function(){const _0x1030a5=_0x1a467e;_0x3f65c0()[_0x1030a5(0x2640)](_0x49c3c1[_0x1030a5(0x1f36)],{'id':_0x49c3c1['schedule']['id']}),_0x26e039[_0x1030a5(0x1c75)]({'title':_0x1030a5(0x805),'msg':(_0x49c3c1[_0x1030a5(0x4bf)][_0x1030a5(0x19eb)]||_0x1030a5(0x4bf))+'\x20has\x20been\x20deleted!'}),_0x48653e(_0x49c3c1['schedule']);})['catch'](function(_0x5908f1){const _0x211904=_0x1a467e;if(_0x5908f1[_0x211904(0x524)]&&_0x5908f1[_0x211904(0x524)][_0x211904(0xcef)]&&_0x5908f1[_0x211904(0x524)]['errors']['length']){_0x49c3c1[_0x211904(0xcef)]=_0x5908f1[_0x211904(0x524)][_0x211904(0xcef)]||[{'message':_0x5908f1[_0x211904(0xd5f)](),'type':_0x211904(0x2889)}];for(let _0x1f7325=0x0;_0x1f7325<_0x5908f1['data'][_0x211904(0xcef)][_0x211904(0x402)];_0x1f7325++){_0x26e039['error']({'title':_0x5908f1['data']['errors'][_0x1f7325][_0x211904(0x1142)],'msg':_0x5908f1['data'][_0x211904(0xcef)][_0x1f7325][_0x211904(0x7fd)]});}}else _0x26e039['error']({'title':_0x5908f1[_0x211904(0x107b)]?'API:'+_0x5908f1['status']+_0x211904(0x1315)+_0x5908f1[_0x211904(0x167f)]:_0x211904(0x2889),'msg':_0x5908f1[_0x211904(0x524)]?JSON[_0x211904(0x10bb)](_0x5908f1['data'][_0x211904(0x7fd)]):_0x5908f1[_0x211904(0x7fd)]||_0x5908f1[_0x211904(0xd5f)]()});});},function(){});}function _0x15d38b(){const _0x3e32e7=_0xf1cc66,_0x5f3143={'core':{'multiple':![],'animation':!![],'error':function(_0x2db03c){const _0x48369a=a0_0x3bb9;console[_0x48369a(0x1980)]('treeCtrl:\x20error\x20from\x20js\x20tree\x20-\x20'+angular[_0x48369a(0x217d)](_0x2db03c));},'check_callback':!![],'worker':!![]},'version':0x1,'plugins':[_0x3e32e7(0x5e6)]};return _0x49c3c1[_0x3e32e7(0x2321)][_0x3e32e7(0xfb0)]!==_0x3e32e7(0x174b)?_0x424f95[_0x3e32e7(0x1366)][_0x3e32e7(0x16b4)]({'fields':_0x3e32e7(0x1e64),'userProfileId':_0x49c3c1[_0x3e32e7(0x2321)][_0x3e32e7(0x209a)],'sectionId':0x4b3})[_0x3e32e7(0x2945)][_0x3e32e7(0x146b)](function(_0x441fc4){const _0x2c8d8d=_0x3e32e7;return _0x49c3c1[_0x2c8d8d(0x1366)]=_0x441fc4&&_0x441fc4[_0x2c8d8d(0x51c)]==0x1?_0x441fc4[_0x2c8d8d(0x19c7)][0x0]:null,_0x5f3143;})[_0x3e32e7(0x129e)](function(_0x4310e2){const _0x568292=_0x3e32e7;_0x26e039[_0x568292(0x1980)]({'title':_0x568292(0x10f5),'msg':_0x4310e2[_0x568292(0x7fd)]});}):_0x5f3143;}function _0x1963bc(_0x1723b9){return _0x1723b9?{'loaded':_0x5af296,'select_node':_0x481f25}:{'loaded':_0x3aa89c,'select_node':_0x228486};}function _0x481f25(_0x9b23d0,_0x5894fe){const _0x25c42d=_0xf1cc66;_0x49c3c1[_0x25c42d(0x1d1a)]['jstree'](!![])['deselect_all'](),_0x49c3c1[_0x25c42d(0x1d1a)][_0x25c42d(0x7e1)](!![])[_0x25c42d(0x25fd)](),_0x49c3c1[_0x25c42d(0x13cf)]=_0x5894fe[_0x25c42d(0x8f7)],_0x49c3c1[_0x25c42d(0x13cf)][_0x25c42d(0x1802)]=!![],_0x49c3c1[_0x25c42d(0x25e4)]=_0x49c3c1[_0x25c42d(0x25f7)][_0x25c42d(0x7e1)](!![])['get_path'](_0x49c3c1['currentNode'])[_0x25c42d(0xb47)]('/\x20'),_0x49c3c1[_0x25c42d(0x320)]='analyticCustomReport',_0x49c3c1[_0x25c42d(0x1a56)][_0x25c42d(0x3fd)]=_0x5894fe[_0x25c42d(0x8f7)]['id'],_0x2eb6eb();}function _0x228486(_0x486e4b,_0x125d99){const _0x5aa55f=_0xf1cc66;_0x49c3c1[_0x5aa55f(0x25f7)][_0x5aa55f(0x7e1)](!![])[_0x5aa55f(0xe99)](),_0x49c3c1[_0x5aa55f(0x25f7)][_0x5aa55f(0x7e1)](!![])[_0x5aa55f(0x25fd)](),_0x49c3c1['currentNode']=_0x125d99[_0x5aa55f(0x8f7)],_0x49c3c1['currentNode']['custom']=![],_0x49c3c1[_0x5aa55f(0x25e4)]=_0x49c3c1['treeDefaultInstance'][_0x5aa55f(0x7e1)](!![])[_0x5aa55f(0x11ba)](_0x49c3c1[_0x5aa55f(0x13cf)])[_0x5aa55f(0xb47)]('/\x20'),_0x49c3c1[_0x5aa55f(0x320)]=_0x5aa55f(0x20fa),_0x49c3c1[_0x5aa55f(0x1a56)][_0x5aa55f(0x3fd)]=_0x125d99[_0x5aa55f(0x8f7)]['id'],_0x2eb6eb();}function _0x5af296(){const _0xf9f0b9=_0xf1cc66;if(!_0x49c3c1[_0xf9f0b9(0x21c5)]&&_0x49c3c1[_0xf9f0b9(0x320)]===_0xf9f0b9(0x12a5)){const _0x47c8ad=_0x49c3c1[_0xf9f0b9(0x25f7)][_0xf9f0b9(0x7e1)](!![])['get_node'](_0x49c3c1[_0xf9f0b9(0x1a56)][_0xf9f0b9(0x3fd)]);_0x481f25(null,{'node':_0x47c8ad,'selected':_0x47c8ad['id']});}}function _0x3aa89c(){const _0x1f67b3=_0xf1cc66;if(!_0x49c3c1[_0x1f67b3(0x21c5)]&&_0x49c3c1['apiName']===_0x1f67b3(0x20fa)){const _0xcc27b6=_0x49c3c1[_0x1f67b3(0x1d1a)][_0x1f67b3(0x7e1)](!![])['get_node'](_0x49c3c1[_0x1f67b3(0x1a56)][_0x1f67b3(0x3fd)]);_0x228486(null,{'node':_0xcc27b6,'selected':_0xcc27b6['id']});}}function _0x2eb6eb(){const _0x56dc90=_0xf1cc66;_0x49c3c1[_0x56dc90(0x1a56)][_0x56dc90(0x145d)]=(_0x49c3c1[_0x56dc90(0x1a56)][_0x56dc90(0x844)]-0x1)*_0x49c3c1[_0x56dc90(0x1a56)]['limit'];if(_0x49c3c1[_0x56dc90(0x320)]){if(_0x49c3c1[_0x56dc90(0x2321)][_0x56dc90(0xfb0)]===_0x56dc90(0x174b))_0x49c3c1['promise']=_0x424f95[_0x49c3c1[_0x56dc90(0x320)]][_0x56dc90(0x16b4)](_0x49c3c1[_0x56dc90(0x1a56)],_0x37b9a3)['$promise'];else{if(!_0x49c3c1['userProfileSection'])return _0x37b9a3(null);else{if(_0x49c3c1['userProfileSection'][_0x56dc90(0x11d2)])_0x49c3c1[_0x56dc90(0xb9c)]=_0x424f95[_0x49c3c1[_0x56dc90(0x320)]][_0x56dc90(0x16b4)](_0x49c3c1[_0x56dc90(0x1a56)],_0x37b9a3)[_0x56dc90(0x2945)];else{let _0x19607f=[];_0x49c3c1['promise']=_0x424f95[_0x49c3c1[_0x56dc90(0x320)]][_0x56dc90(0x16b4)](_0x49c3c1['query'])[_0x56dc90(0x2945)][_0x56dc90(0x146b)](function(_0x57f99f){const _0x583f1b=_0x56dc90;return _0x19607f=_0x57f99f&&_0x57f99f['rows']?_0x57f99f[_0x583f1b(0x19c7)]:[],_0x19607f[_0x583f1b(0x402)]>0x0?_0x424f95[_0x583f1b(0xdcc)][_0x583f1b(0x16b4)]({'sectionId':_0x49c3c1[_0x583f1b(0x1366)]['id'],'type':_0x49c3c1[_0x583f1b(0x320)]===_0x583f1b(0x20fa)?_0x583f1b(0x3b0):_0x583f1b(0x193a)})['$promise']['then'](function(_0x12028c){const _0x56000d=_0x583f1b,_0x61cf1d=_0x12028c&&_0x12028c[_0x56000d(0x19c7)]?_0x12028c['rows']:[];if(_0x61cf1d[_0x56000d(0x402)]>0x0){const _0x444943=[];return _0x19607f[_0x56000d(0x1df5)](function(_0x1e63cd){const _0x3c390e=_0x56000d,_0x1f7a00=_0x3f65c0()['find'](_0x61cf1d,[_0x3c390e(0x18b8),_0x1e63cd['id']]);if(_0x1f7a00)_0x444943['push'](_0x1e63cd);}),_0x37b9a3({'count':_0x444943[_0x56000d(0x402)],'rows':_0x444943});}else return _0x37b9a3(null);}):_0x37b9a3(null);})[_0x56dc90(0x129e)](function(_0xba81eb){const _0xfb59f9=_0x56dc90;_0x26e039[_0xfb59f9(0x1980)]({'title':_0xba81eb[_0xfb59f9(0x107b)]?'API:'+_0xba81eb['status']+_0xfb59f9(0x1315)+_0xba81eb[_0xfb59f9(0x167f)]:'SYSTEM:GET_REPORTS','msg':_0xba81eb[_0xfb59f9(0x524)]?JSON['stringify'](_0xba81eb[_0xfb59f9(0x524)]):_0xba81eb[_0xfb59f9(0xd5f)]()});});}}}}}function _0x37b9a3(_0x407109){const _0x3f7e59=_0xf1cc66;_0x49c3c1['reports']=_0x407109||{'count':0x0,'rows':[]},!_0x49c3c1['newSchedule']&&_0x49c3c1[_0x3f7e59(0x1f30)]['push'](_0x3f65c0()[_0x3f7e59(0xc84)](_0x49c3c1[_0x3f7e59(0x2284)][_0x3f7e59(0x19c7)],{'id':_0x49c3c1[_0x3f7e59(0x1cec)]['id']}));}function _0x17b10b(){const _0x12425a=_0xf1cc66;_0x49c3c1['treeDefaultData']=_0x49c3c1[_0x12425a(0x728)][0x0]?angular[_0x12425a(0xb08)](_0x49c3c1[_0x12425a(0x728)][0x0][_0x12425a(0xf47)]):[],_0x49c3c1[_0x12425a(0x282d)]=_0x49c3c1[_0x12425a(0x728)][0x1]?angular['fromJson'](_0x49c3c1[_0x12425a(0x728)][0x1]['tree']):[],_0x49c3c1['treeConfig']=_0x15d38b(),_0x49c3c1[_0x12425a(0x2861)]=_0x1963bc(![]),_0x49c3c1[_0x12425a(0xf43)]=_0x1963bc(!![]),_0x362f19['show']({'controller':function(){return _0x49c3c1;},'controllerAs':'vm','templateUrl':_0x58b6e3,'autoWrap':!![],'skipHide':!![]});}function _0x4e95c7(){const _0x532c5c=_0xf1cc66;_0x49c3c1['schedule'][_0x532c5c(0x1c9a)]=_0x49c3c1[_0x532c5c(0x1f30)][0x0][_0x532c5c(0x19eb)],_0x49c3c1[_0x532c5c(0x13cf)][_0x532c5c(0x1802)]?(_0x49c3c1[_0x532c5c(0x4bf)][_0x532c5c(0x2728)]=_0x49c3c1[_0x532c5c(0x1f30)][0x0]['id'],delete _0x49c3c1['schedule'][_0x532c5c(0x1148)]):(_0x49c3c1[_0x532c5c(0x4bf)][_0x532c5c(0x1148)]=_0x49c3c1[_0x532c5c(0x1f30)][0x0]['id'],delete _0x49c3c1[_0x532c5c(0x4bf)][_0x532c5c(0x2728)]),_0x56d3e3['scheduleForm'][_0x532c5c(0x1c9a)]['$setDirty'](),_0x362f19[_0x532c5c(0x2458)]();}function _0x44e9bd(){const _0x1a549e=_0xf1cc66;_0x362f19[_0x1a549e(0x2458)]();}function _0x30e58b(_0x61a59d){return _0x61a59d===null?undefined:new Date(_0x61a59d);}function _0x48653e(_0x4dbfdd){const _0x54980e=_0xf1cc66;_0x362f19[_0x54980e(0x2458)](_0x4dbfdd);}}const _0x4b0c96=_0x501b92;;const _0x272900=_0x4acfac['p']+_0x313a4d(0x1a32);;_0x190faf[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),'$window',_0x313a4d(0x1862),_0x313a4d(0x15fe),'$mdDialog',_0x313a4d(0x4d8),_0x313a4d(0x1abe),_0x313a4d(0x214b),_0x313a4d(0x1f36),_0x313a4d(0x26b6),_0x313a4d(0x1366),_0x313a4d(0x247f),_0x313a4d(0x216c),_0x313a4d(0x1fe4),_0x313a4d(0xa87),_0x313a4d(0x2690),_0x313a4d(0x15b9)];function _0x190faf(_0x43e1da,_0x33382b,_0x49b8c4,_0x1210fd,_0xe9e77b,_0x27e8e7,_0x978eba,_0x15127e,_0x20251e,_0x1ac242,_0x3e3c98,_0x18070d,_0x4e8c18,_0x221d5d,_0x45b2b6,_0x3ef558,_0x818444){const _0x51380e=_0x313a4d,_0x487867=this;_0x487867[_0x51380e(0x2690)]=_0x3ef558,_0x487867['setting']=_0x818444,_0x487867['currentUser']=_0x45b2b6['getCurrentUser'](),_0x487867[_0x51380e(0x1f36)]=_0x20251e||{'count':0x0,'rows':[]},_0x487867[_0x51380e(0x26b6)]=_0x1ac242,_0x487867[_0x51380e(0x1366)]=_0x3e3c98&&_0x3e3c98['count']==0x1?_0x3e3c98[_0x51380e(0x19c7)][0x0]:null,_0x487867[_0x51380e(0x2514)]=_0x45b2b6[_0x51380e(0xe60)](_0x487867[_0x51380e(0x1366)]?_0x487867[_0x51380e(0x1366)][_0x51380e(0x2514)]:null),_0x487867[_0x51380e(0x768)]='schedules',_0x487867[_0x51380e(0x216a)]='',_0x487867[_0x51380e(0x214f)]=null,_0x487867[_0x51380e(0xf5)]=[],_0x487867['query']={'fields':_0x51380e(0x1a09),'sort':_0x51380e(0x12f2),'limit':0xa,'page':0x1},_0x487867[_0x51380e(0x1a8d)]=_0x3f65c0()[_0x51380e(0x194)]([{'option':_0x51380e(0xd24),'value':'\x27csv\x27'},{'option':_0x51380e(0x132a),'value':_0x51380e(0x2863)},{'option':_0x51380e(0x858),'value':_0x51380e(0x26b5)}],function(_0x5a7541){const _0x26efe7=_0x51380e;return _0x3f65c0()[_0x26efe7(0x5f4)](_0x5a7541['value'],new RegExp('\x27','g'),'');}),_0x487867['arraysubtractUnit']=_0x3f65c0()[_0x51380e(0x194)]([{'option':_0x51380e(0x20ea),'value':_0x51380e(0xa09)},{'option':_0x51380e(0x1ba7),'value':_0x51380e(0x27d4)},{'option':'Days','value':'\x27days\x27'},{'option':_0x51380e(0x2786),'value':_0x51380e(0x1528)},{'option':_0x51380e(0x351),'value':_0x51380e(0x137)},{'option':_0x51380e(0x305),'value':_0x51380e(0x24e)},{'option':_0x51380e(0x1c6a),'value':'\x27years\x27'}],function(_0x3d9959){const _0x3ad584=_0x51380e;return _0x3f65c0()[_0x3ad584(0x5f4)](_0x3d9959[_0x3ad584(0x175d)],new RegExp('\x27','g'),'');}),_0x487867[_0x51380e(0x2ed)]=_0x225f48,_0x487867[_0x51380e(0x379)]=_0x4d2790,_0x487867[_0x51380e(0xf0a)]=_0x3f069f,_0x487867[_0x51380e(0x1c75)]=_0x167e23,_0x487867[_0x51380e(0x1db8)]=_0x4c96ab,_0x487867['createOrEditSchedule']=_0x4a91b7,_0x487867[_0x51380e(0x1ab9)]=_0x561e30,_0x487867[_0x51380e(0x683)]=_0x398808,_0x487867[_0x51380e(0x1e14)]=_0x5d3a17,_0x487867['deselectScheduler']=_0x5d1cf2,_0x487867[_0x51380e(0x70c)]=_0x30779a,_0x18070d[_0x51380e(0x888)][_0x51380e(0x16b4)]({})[_0x51380e(0x2945)][_0x51380e(0x146b)](function(_0x130a80){const _0x5b8a7a=_0x51380e;_0x487867[_0x5b8a7a(0x728)]=_0x130a80[_0x5b8a7a(0x19c7)]||[];})['catch'](function(_0xffcf9e){const _0x55a341=_0x51380e;_0x221d5d[_0x55a341(0x1980)]({'title':_0xffcf9e[_0x55a341(0x107b)]?'API:'+_0xffcf9e[_0x55a341(0x107b)]+_0x55a341(0x1315)+_0xffcf9e[_0x55a341(0x167f)]:_0x55a341(0x1f8c),'msg':_0xffcf9e['data']?JSON[_0x55a341(0x10bb)](_0xffcf9e[_0x55a341(0x524)]):_0xffcf9e[_0x55a341(0xd5f)]()});}),_0x45b2b6[_0x51380e(0x23e0)](_0x51380e(0x174b))?_0x18070d[_0x51380e(0x67d)][_0x51380e(0x16b4)]({'fields':_0x51380e(0x7a7),'sort':'name'})[_0x51380e(0x2945)][_0x51380e(0x146b)](function(_0x1f5c64){const _0x4e9daa=_0x51380e;_0x487867[_0x4e9daa(0x1593)]=_0x1f5c64[_0x4e9daa(0x19c7)]||[];})[_0x51380e(0x129e)](function(_0x46b713){const _0x5f2309=_0x51380e;_0x221d5d['error']({'title':_0x46b713[_0x5f2309(0x107b)]?_0x5f2309(0x262a)+_0x46b713['status']+_0x5f2309(0x1315)+_0x46b713[_0x5f2309(0x167f)]:'SYSTEM:GET_MAILACCOUNTS','msg':_0x46b713[_0x5f2309(0x524)]?JSON[_0x5f2309(0x10bb)](_0x46b713[_0x5f2309(0x524)]):_0x46b713[_0x5f2309(0xd5f)]()});}):_0x18070d[_0x51380e(0x67d)]['get']({'fields':_0x51380e(0x7a7),'sort':'name'})[_0x51380e(0x2945)]['then'](function(_0x5174d7){const _0x3f9dd=_0x51380e;_0x487867['mailAccounts']=_0x5174d7[_0x3f9dd(0x19c7)]||[];})[_0x51380e(0x146b)](function(){const _0x1015b8=_0x51380e;return _0x18070d[_0x1015b8(0x1366)][_0x1015b8(0x16b4)]({'userProfileId':_0x487867['currentUser'][_0x1015b8(0x209a)],'sectionId':0x25a})[_0x1015b8(0x2945)];})[_0x51380e(0x146b)](function(_0x3316c8){const _0x592de8=_0x51380e,_0x5f027c=_0x3316c8&&_0x3316c8['rows']?_0x3316c8[_0x592de8(0x19c7)][0x0]:null;if(!_0x5f027c){const _0x5c82e8=[];let _0x177489=null;_0x487867['schedule']&&(_0x177489=_0x3f65c0()['find'](_0x487867['mailAccounts'],{'id':Number(_0x487867[_0x592de8(0x4bf)][_0x592de8(0x658)])}));for(let _0x5cdba6=0x0;_0x5cdba6<_0x487867[_0x592de8(0x1593)][_0x592de8(0x402)];_0x5cdba6++){_0x177489&&_0x487867[_0x592de8(0x1593)][_0x5cdba6]['id']===_0x177489['id']&&(_0x487867[_0x592de8(0x1593)][_0x5cdba6][_0x592de8(0x8ff)]=![],_0x5c82e8[_0x592de8(0x1f47)](_0x487867['mailAccounts'][_0x5cdba6]));}_0x487867[_0x592de8(0x1593)]=_0x5c82e8;}else{if(!_0x5f027c[_0x592de8(0x11d2)])return _0x18070d[_0x592de8(0xdcc)][_0x592de8(0x16b4)]({'sectionId':_0x5f027c['id']})['$promise'][_0x592de8(0x146b)](function(_0x11e075){const _0x10a73a=_0x592de8,_0x1aadba=_0x3f65c0()['map'](_0x11e075[_0x10a73a(0x19c7)],function(_0x2f5e8f){const _0x83cd2d=_0x10a73a;return _0x3f65c0()[_0x83cd2d(0xc84)](_0x487867[_0x83cd2d(0x1593)],{'id':_0x2f5e8f[_0x83cd2d(0x18b8)]});});let _0x1653df=null;_0x487867['schedule']&&(_0x1653df=_0x3f65c0()[_0x10a73a(0xc84)](_0x487867[_0x10a73a(0x1593)],{'id':Number(_0x487867['schedule'][_0x10a73a(0x658)])}));if(_0x1653df&&!_0x3f65c0()[_0x10a73a(0x1360)](_0x1aadba,['id',_0x1653df['id']])){const _0x39f977=_0x3f65c0()[_0x10a73a(0xc84)](_0x487867[_0x10a73a(0x1593)],{'id':_0x1653df['id']});_0x39f977[_0x10a73a(0x8ff)]=![],_0x1aadba[_0x10a73a(0x1f47)](_0x39f977);}_0x487867['mailAccounts']=_0x1aadba;});}})['catch'](function(_0x42fd72){const _0x1d39de=_0x51380e;_0x221d5d[_0x1d39de(0x1980)]({'title':_0x42fd72['status']?_0x1d39de(0x262a)+_0x42fd72[_0x1d39de(0x107b)]+_0x1d39de(0x1315)+_0x42fd72['statusText']:_0x1d39de(0x386),'msg':_0x42fd72['data']?JSON[_0x1d39de(0x10bb)](_0x42fd72[_0x1d39de(0x524)]):_0x42fd72['toString']()});});function _0x225f48(_0x30c4ee,_0xdec598){const _0x3a8c23=_0x51380e;_0xe9e77b[_0x3a8c23(0x2615)]({'controller':_0x3a8c23(0x65a),'controllerAs':'vm','templateUrl':_0x272900,'parent':angular[_0x3a8c23(0x1853)](_0x27e8e7[_0x3a8c23(0x2586)]),'targetEvent':_0xdec598,'clickOutsideToClose':!![],'locals':{'schedule':_0x30c4ee,'schedules':_0x487867['schedules'][_0x3a8c23(0x19c7)],'license':_0x487867[_0x3a8c23(0x2690)],'setting':null,'crudPermissions':_0x487867[_0x3a8c23(0x2514)]}});}function _0x4d2790(_0xac47b2,_0x460d56){const _0x265c11=_0x51380e,_0x470765=_0xe9e77b['confirm']()[_0x265c11(0x1189)](_0x265c11(0x1b8e))[_0x265c11(0x1cbe)](_0x265c11(0x16d3)+(_0xac47b2[_0x265c11(0x19eb)]||_0x265c11(0x4bf))+_0x265c11(0x252f)+_0x265c11(0x16f0))[_0x265c11(0x4bd)](_0x265c11(0x1352))['targetEvent'](_0x460d56)['ok']('OK')[_0x265c11(0x6c3)](_0x265c11(0x39a));_0xe9e77b[_0x265c11(0x2615)](_0x470765)['then'](function(){const _0x3c65ae=_0x265c11;return _0x18070d[_0x3c65ae(0x4bf)][_0x3c65ae(0x1caa)]({'id':_0xac47b2['id']})[_0x3c65ae(0x2945)];},function(){const _0x107647=_0x265c11;console['log'](_0x107647(0x39a));});}function _0x3f069f(_0x1527b2,_0xc53958){const _0x2c4eb8=_0x51380e,_0x38b446=_0xe9e77b[_0x2c4eb8(0x1e8a)]()[_0x2c4eb8(0x1189)](_0x2c4eb8(0xdb2)+_0x3f65c0()['startCase'](_0x2c4eb8(0x4bf))+'?')[_0x2c4eb8(0x1cbe)](_0x2c4eb8(0x16d3)+(_0x1527b2['name']||_0x2c4eb8(0x4bf))+''+_0x2c4eb8(0xe01))[_0x2c4eb8(0x4bd)](_0x2c4eb8(0x1352))['targetEvent'](_0xc53958)['ok']('OK')['cancel']('CANCEL');_0xe9e77b[_0x2c4eb8(0x2615)](_0x38b446)['then'](function(){_0x561e30(_0x1527b2);},function(){const _0x2b48a7=_0x2c4eb8;console[_0x2b48a7(0x1a74)]('CANCEL');});}let _0x13bbaf=!![],_0xf6bd74=0x1;_0x43e1da[_0x51380e(0x21e8)](_0x51380e(0x2669),function(_0x20bf6f,_0x1957a9){const _0x3337e3=_0x51380e;_0x13bbaf?_0x978eba(function(){_0x13bbaf=![];}):(!_0x1957a9&&(_0xf6bd74=_0x487867[_0x3337e3(0x1a56)][_0x3337e3(0x844)]),_0x20bf6f!==_0x1957a9&&(_0x487867[_0x3337e3(0x1a56)][_0x3337e3(0x844)]=0x1),!_0x20bf6f&&(_0x487867[_0x3337e3(0x1a56)]['page']=_0xf6bd74),_0x487867[_0x3337e3(0x1db8)]());});function _0x167e23(_0x2bf2c1){_0x487867['schedules']=_0x2bf2c1||{'count':0x0,'rows':[]};}function _0x4c96ab(){const _0xcd22ee=_0x51380e;_0x487867[_0xcd22ee(0x1a56)][_0xcd22ee(0x145d)]=(_0x487867[_0xcd22ee(0x1a56)]['page']-0x1)*_0x487867['query'][_0xcd22ee(0x221e)],_0x45b2b6[_0xcd22ee(0x23e0)]('admin')?_0x487867[_0xcd22ee(0xb9c)]=_0x18070d[_0xcd22ee(0x4bf)][_0xcd22ee(0x16b4)](_0x487867[_0xcd22ee(0x1a56)],_0x167e23)[_0xcd22ee(0x2945)]:(_0x487867[_0xcd22ee(0x1a56)]['id']=_0x487867[_0xcd22ee(0x26b6)]['id'],_0x487867[_0xcd22ee(0x1a56)][_0xcd22ee(0x2146)]='Scheduler',_0x487867[_0xcd22ee(0xb9c)]=_0x18070d[_0xcd22ee(0x26b6)][_0xcd22ee(0x158f)](_0x487867[_0xcd22ee(0x1a56)],_0x167e23)[_0xcd22ee(0x2945)]);}function _0x4a91b7(_0xc0bffe,_0x43fbee){const _0x376c77=_0x51380e;_0xe9e77b[_0x376c77(0x2615)]({'controller':_0x376c77(0x65a),'controllerAs':'vm','templateUrl':_0x272900,'parent':angular[_0x376c77(0x1853)](_0x27e8e7[_0x376c77(0x2586)]),'targetEvent':_0xc0bffe,'clickOutsideToClose':!![],'locals':{'schedule':_0x43fbee,'schedules':_0x487867['schedules'][_0x376c77(0x19c7)],'license':_0x487867[_0x376c77(0x2690)],'setting':_0x487867[_0x376c77(0x15b9)],'crudPermissions':_0x487867[_0x376c77(0x2514)]}});}function _0x561e30(_0x138719){const _0x3705f8=_0x51380e;_0x18070d[_0x3705f8(0x4bf)]['delete']({'id':_0x138719['id']})[_0x3705f8(0x2945)]['then'](function(){const _0x1df0f9=_0x3705f8;_0x3f65c0()['remove'](_0x487867[_0x1df0f9(0x1f36)][_0x1df0f9(0x19c7)],{'id':_0x138719['id']}),_0x487867['schedules']['count']-=0x1,!_0x487867['schedules'][_0x1df0f9(0x19c7)][_0x1df0f9(0x402)]&&_0x487867['getScheduler'](),_0x221d5d[_0x1df0f9(0x1c75)]({'title':_0x3f65c0()[_0x1df0f9(0x20d1)]('Schedule')+_0x1df0f9(0x201c),'msg':_0x138719[_0x1df0f9(0x19eb)]?_0x138719[_0x1df0f9(0x19eb)]+_0x1df0f9(0x23e3):''});})['catch'](function(_0x165e63){const _0x5d658f=_0x3705f8;if(_0x165e63[_0x5d658f(0x524)]&&_0x165e63[_0x5d658f(0x524)][_0x5d658f(0xcef)]&&_0x165e63[_0x5d658f(0x524)][_0x5d658f(0xcef)][_0x5d658f(0x402)]){_0x487867[_0x5d658f(0xcef)]=_0x165e63['data']['errors']||[{'message':_0x165e63[_0x5d658f(0xd5f)](),'type':_0x5d658f(0x1d06)}];for(let _0x2e4757=0x0;_0x2e4757<_0x165e63[_0x5d658f(0x524)]['errors'][_0x5d658f(0x402)];_0x2e4757++){_0x221d5d[_0x5d658f(0x1980)]({'title':_0x165e63[_0x5d658f(0x524)][_0x5d658f(0xcef)][_0x2e4757][_0x5d658f(0x1142)],'msg':_0x165e63[_0x5d658f(0x524)]['errors'][_0x2e4757][_0x5d658f(0x7fd)]});}}else _0x221d5d['error']({'title':_0x165e63[_0x5d658f(0x107b)]?_0x5d658f(0x262a)+_0x165e63[_0x5d658f(0x107b)]+'\x20-\x20'+_0x165e63['statusText']:_0x5d658f(0x1d06),'msg':_0x165e63[_0x5d658f(0x524)]?JSON[_0x5d658f(0x10bb)](_0x165e63[_0x5d658f(0x524)][_0x5d658f(0x7fd)]):_0x165e63[_0x5d658f(0x7fd)]||_0x165e63[_0x5d658f(0xd5f)]()});});}function _0x398808(){const _0x13ef8b=_0x51380e,_0x538dc6=angular[_0x13ef8b(0x235a)](_0x487867[_0x13ef8b(0xf5)]);return _0x487867[_0x13ef8b(0xf5)]=[],_0x538dc6;}function _0x5d3a17(_0x13b5f6){const _0x1f10e6=_0x51380e,_0x4cfe54=_0xe9e77b[_0x1f10e6(0x1e8a)]()[_0x1f10e6(0x1189)](_0x1f10e6(0x1c60))[_0x1f10e6(0x1cbe)](_0x1f10e6(0x16d3)+_0x487867[_0x1f10e6(0xf5)][_0x1f10e6(0x402)]+_0x1f10e6(0x2452)+_0x1f10e6(0xe01))[_0x1f10e6(0x4bd)]('delete\x20Schedules')[_0x1f10e6(0x1f27)](_0x13b5f6)['ok']('OK')[_0x1f10e6(0x6c3)](_0x1f10e6(0x39a));_0xe9e77b[_0x1f10e6(0x2615)](_0x4cfe54)[_0x1f10e6(0x146b)](function(){const _0x353098=_0x1f10e6;_0x487867[_0x353098(0xf5)]['forEach'](function(_0x55cdaf){_0x561e30(_0x55cdaf);}),_0x487867[_0x353098(0xf5)]=[];});}function _0x5d1cf2(){const _0x5568ad=_0x51380e;_0x487867[_0x5568ad(0xf5)]=[];}function _0x30779a(){const _0x3df196=_0x51380e;_0x487867[_0x3df196(0xf5)]=_0x487867[_0x3df196(0x1f36)][_0x3df196(0x19c7)];}}const _0x494803=_0x190faf;;_0x22dd99[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1862),'$location',_0x313a4d(0x10e8),'$q',_0x313a4d(0x214b),_0x313a4d(0x1fe4),_0x313a4d(0xb02),_0x313a4d(0x126d),_0x313a4d(0x247f),'Auth',_0x313a4d(0x2690),_0x313a4d(0x15b9),_0x313a4d(0x2514)];function _0x22dd99(_0x1a0627,_0xa6acb1,_0x4b80f6,_0x47f4d2,_0x53a028,_0x374a62,_0x10fbbf,_0x438342,_0x1a8eb5,_0x51b589,_0x1f73e1,_0xa7fa37,_0x38d2ed,_0x435827){const _0x2729e5=_0x313a4d,_0x26971f=this;_0x26971f[_0x2729e5(0x2321)]=_0x1f73e1[_0x2729e5(0xb12)](),_0x26971f[_0x2729e5(0xcef)]=[],_0x26971f[_0x2729e5(0x15b9)]=_0x38d2ed,_0x26971f[_0x2729e5(0x2690)]=_0xa7fa37,_0x26971f['crudPermissions']=_0x435827,_0x26971f[_0x2729e5(0x855)]={},_0x26971f[_0x2729e5(0x2251)]=_0x26971f['setting']&&_0x26971f['setting'][_0x2729e5(0x976)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x26971f[_0x2729e5(0x1189)]=_0x2729e5(0x1dbd),_0x26971f['sound']=angular[_0x2729e5(0x235a)](_0x1a8eb5),_0x26971f[_0x2729e5(0xb02)]=_0x438342,_0x26971f[_0x2729e5(0xa82)]=![];!_0x26971f['sound']&&(_0x26971f[_0x2729e5(0x126d)]={},_0x26971f['title']=_0x2729e5(0x5e5),_0x26971f[_0x2729e5(0xa82)]=!![]);_0x26971f[_0x2729e5(0x205f)]=_0x3d1142,_0x26971f[_0x2729e5(0x1137)]=_0x18229e,_0x26971f[_0x2729e5(0xd1d)]=_0x2ab844,_0x26971f['getDateFromString']=_0x3fe369,_0x26971f[_0x2729e5(0x13f3)]=_0x4200d6;function _0x3d1142(){const _0x31af7c=_0x2729e5;_0x26971f['errors']=[],_0x51b589['sound']['save'](_0x26971f['sound'])[_0x31af7c(0x2945)][_0x31af7c(0x146b)](function(_0x51a75c){const _0x451149=_0x31af7c;_0x26971f[_0x451149(0xb02)][_0x451149(0xb3d)](_0x51a75c[_0x451149(0x2488)]()),_0x10fbbf[_0x451149(0x1c75)]({'title':'Sound\x20properly\x20created','msg':_0x26971f[_0x451149(0x126d)][_0x451149(0x19eb)]?_0x26971f['sound'][_0x451149(0x19eb)]+_0x451149(0x1386):''}),_0x4200d6(_0x51a75c);})[_0x31af7c(0x129e)](function(_0x25ca23){const _0xb4e23d=_0x31af7c;if(_0x25ca23[_0xb4e23d(0x524)]&&_0x25ca23[_0xb4e23d(0x524)]['errors']&&_0x25ca23[_0xb4e23d(0x524)]['errors']['length']){_0x26971f[_0xb4e23d(0xcef)]=_0x25ca23[_0xb4e23d(0x524)][_0xb4e23d(0xcef)]||[{'message':_0x25ca23[_0xb4e23d(0xd5f)](),'type':_0xb4e23d(0xe56)}];for(let _0x29e1b5=0x0;_0x29e1b5<_0x25ca23[_0xb4e23d(0x524)][_0xb4e23d(0xcef)][_0xb4e23d(0x402)];_0x29e1b5+=0x1){_0x10fbbf['error']({'title':_0x25ca23['data'][_0xb4e23d(0xcef)][_0x29e1b5][_0xb4e23d(0x1142)],'msg':_0x25ca23[_0xb4e23d(0x524)][_0xb4e23d(0xcef)][_0x29e1b5]['message']});}}else _0x10fbbf[_0xb4e23d(0x1980)]({'title':_0x25ca23[_0xb4e23d(0x107b)]?_0xb4e23d(0x262a)+_0x25ca23[_0xb4e23d(0x107b)]+'\x20-\x20'+_0x25ca23[_0xb4e23d(0x167f)]:'api.sound.save','msg':_0x25ca23[_0xb4e23d(0x524)]?JSON[_0xb4e23d(0x10bb)](_0x25ca23['data'][_0xb4e23d(0x7fd)]):_0x25ca23['toString']()});});}function _0x18229e(){const _0x1ff0d8=_0x2729e5;_0x26971f['errors']=[],_0x51b589[_0x1ff0d8(0x126d)][_0x1ff0d8(0x18e1)]({'id':_0x26971f['sound']['id']},_0x26971f[_0x1ff0d8(0x126d)])[_0x1ff0d8(0x2945)][_0x1ff0d8(0x146b)](function(_0x56dbfa){const _0xe1e38f=_0x1ff0d8,_0xe4685d=_0x3f65c0()[_0xe1e38f(0xc84)](_0x26971f[_0xe1e38f(0xb02)],{'id':_0x56dbfa['id']});_0xe4685d&&_0x3f65c0()[_0xe1e38f(0x168d)](_0xe4685d,_0x3f65c0()[_0xe1e38f(0x40e)](_0x56dbfa[_0xe1e38f(0x2488)](),_0x3f65c0()[_0xe1e38f(0x627)](_0xe4685d))),_0x10fbbf[_0xe1e38f(0x1c75)]({'title':'Sound\x20properly\x20saved!','msg':_0x26971f['sound'][_0xe1e38f(0x19eb)]?_0x26971f[_0xe1e38f(0x126d)][_0xe1e38f(0x19eb)]+_0xe1e38f(0x24db):''}),_0x4200d6(_0x56dbfa);})[_0x1ff0d8(0x129e)](function(_0x48f589){const _0x1cfdf6=_0x1ff0d8;if(_0x48f589['data']&&_0x48f589[_0x1cfdf6(0x524)][_0x1cfdf6(0xcef)]&&_0x48f589['data']['errors'][_0x1cfdf6(0x402)]){_0x26971f[_0x1cfdf6(0xcef)]=_0x48f589[_0x1cfdf6(0x524)][_0x1cfdf6(0xcef)]||[{'message':_0x48f589[_0x1cfdf6(0xd5f)](),'type':_0x1cfdf6(0x2486)}];for(let _0x19b55a=0x0;_0x19b55a<_0x48f589[_0x1cfdf6(0x524)]['errors'][_0x1cfdf6(0x402)];_0x19b55a++){_0x10fbbf['error']({'title':_0x48f589[_0x1cfdf6(0x524)][_0x1cfdf6(0xcef)][_0x19b55a][_0x1cfdf6(0x1142)],'msg':_0x48f589[_0x1cfdf6(0x524)]['errors'][_0x19b55a][_0x1cfdf6(0x7fd)]});}}else _0x10fbbf[_0x1cfdf6(0x1980)]({'title':_0x48f589[_0x1cfdf6(0x107b)]?_0x1cfdf6(0x262a)+_0x48f589[_0x1cfdf6(0x107b)]+_0x1cfdf6(0x1315)+_0x48f589[_0x1cfdf6(0x167f)]:'api.sound.update','msg':_0x48f589[_0x1cfdf6(0x524)]?JSON[_0x1cfdf6(0x10bb)](_0x48f589[_0x1cfdf6(0x524)][_0x1cfdf6(0x7fd)]):_0x48f589[_0x1cfdf6(0xd5f)]()});});}function _0x2ab844(_0x1fe622){const _0x47bf94=_0x2729e5;_0x26971f[_0x47bf94(0xcef)]=[];const _0x52ce65=_0x47f4d2[_0x47bf94(0x1e8a)]()[_0x47bf94(0x1189)](_0x47bf94(0x1d64))['content']('The\x20sound\x20will\x20be\x20deleted.')['ariaLabel'](_0x47bf94(0x1f82))['ok']('Delete')['cancel'](_0x47bf94(0xcf0))['targetEvent'](_0x1fe622);_0x47f4d2[_0x47bf94(0x2615)](_0x52ce65)['then'](function(){const _0x388ffd=_0x47bf94;_0x51b589[_0x388ffd(0x126d)][_0x388ffd(0x1fac)]({'id':_0x26971f[_0x388ffd(0x126d)]['id']})[_0x388ffd(0x2945)][_0x388ffd(0x146b)](function(){const _0x2dcaca=_0x388ffd;_0x3f65c0()[_0x2dcaca(0x2640)](_0x26971f[_0x2dcaca(0xb02)],{'id':_0x26971f['sound']['id']}),_0x10fbbf[_0x2dcaca(0x1c75)]({'title':_0x2dcaca(0x281e),'msg':(_0x26971f[_0x2dcaca(0x126d)][_0x2dcaca(0x19eb)]||'sound')+_0x2dcaca(0x23e3)}),_0x4200d6(_0x26971f[_0x2dcaca(0x126d)]);})['catch'](function(_0x4dc074){const _0x47d19b=_0x388ffd;if(_0x4dc074[_0x47d19b(0x524)]&&_0x4dc074[_0x47d19b(0x524)][_0x47d19b(0xcef)]&&_0x4dc074['data'][_0x47d19b(0xcef)][_0x47d19b(0x402)]){_0x26971f[_0x47d19b(0xcef)]=_0x4dc074['data'][_0x47d19b(0xcef)]||[{'message':_0x4dc074[_0x47d19b(0xd5f)](),'type':_0x47d19b(0x21a)}];for(let _0x47f2b6=0x0;_0x47f2b6<_0x4dc074[_0x47d19b(0x524)]['errors'][_0x47d19b(0x402)];_0x47f2b6++){_0x10fbbf[_0x47d19b(0x1980)]({'title':_0x4dc074[_0x47d19b(0x524)][_0x47d19b(0xcef)][_0x47f2b6]['type'],'msg':_0x4dc074[_0x47d19b(0x524)][_0x47d19b(0xcef)][_0x47f2b6][_0x47d19b(0x7fd)]});}}else _0x10fbbf[_0x47d19b(0x1980)]({'title':_0x4dc074[_0x47d19b(0x107b)]?_0x47d19b(0x262a)+_0x4dc074[_0x47d19b(0x107b)]+_0x47d19b(0x1315)+_0x4dc074['statusText']:_0x47d19b(0x21a),'msg':_0x4dc074[_0x47d19b(0x524)]?JSON[_0x47d19b(0x10bb)](_0x4dc074['data'][_0x47d19b(0x7fd)]):_0x4dc074[_0x47d19b(0x7fd)]||_0x4dc074['toString']()});});},function(){});}function _0x3fe369(_0x47ee24){return _0x47ee24===null?undefined:new Date(_0x47ee24);}function _0x4200d6(_0x2484f7){const _0x33623e=_0x2729e5;_0x47f4d2[_0x33623e(0x2458)](_0x2484f7);}}const _0x564bc7=_0x22dd99;;const _0x1b262a=_0x4acfac['p']+'src/js/modules/main/apps/tools/views/sounds/create/dialog.html/dialog.html';;const _0x5093b8=_0x4acfac['p']+'src/js/modules/main/apps/tools/views/sounds/upload/dialog.html/dialog.html';;_0x326c93[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1aa9),_0x313a4d(0x1862),_0x313a4d(0x15fe),_0x313a4d(0x10e8),'$document',_0x313a4d(0x1abe),_0x313a4d(0x214b),_0x313a4d(0xb02),_0x313a4d(0x26b6),'userProfileSection',_0x313a4d(0x247f),_0x313a4d(0x216c),_0x313a4d(0x1fe4),_0x313a4d(0xa87),_0x313a4d(0x2690),'setting'];function _0x326c93(_0x3239d7,_0x36474f,_0x4e602b,_0x7e9538,_0x3edf22,_0x40f3cf,_0x576a43,_0x3b5e2e,_0x25f13c,_0x2fd5b5,_0x5224d3,_0x42c442,_0x2d8b27,_0x2fcf5a,_0x58e2ee,_0x678c95,_0x2bed10){const _0x2fef2b=_0x313a4d,_0x357fef=this;_0x357fef[_0x2fef2b(0x2690)]=_0x678c95,_0x357fef[_0x2fef2b(0x15b9)]=_0x2bed10,_0x357fef[_0x2fef2b(0x2321)]=_0x58e2ee[_0x2fef2b(0xb12)](),_0x357fef[_0x2fef2b(0xb02)]=_0x25f13c||{'count':0x0,'rows':[]},_0x357fef['userProfile']=_0x2fd5b5,_0x357fef[_0x2fef2b(0x1366)]=_0x5224d3&&_0x5224d3['count']==0x1?_0x5224d3[_0x2fef2b(0x19c7)][0x0]:null,_0x357fef[_0x2fef2b(0x2514)]=_0x58e2ee['parseCrudPermissions'](_0x357fef[_0x2fef2b(0x1366)]?_0x357fef[_0x2fef2b(0x1366)][_0x2fef2b(0x2514)]:null),_0x357fef[_0x2fef2b(0x768)]=_0x2fef2b(0xb02),_0x357fef[_0x2fef2b(0x216a)]='',_0x357fef[_0x2fef2b(0x214f)]=null,_0x357fef[_0x2fef2b(0x204b)]=[],_0x357fef[_0x2fef2b(0x1a56)]={'fields':'createdAt,updatedAt,id,save_name,converted_format,name,audio,description','sort':'-updatedAt','limit':0xa,'page':0x1},_0x357fef[_0x2fef2b(0x2ed)]=_0x2532e8,_0x357fef[_0x2fef2b(0xe49)]=_0x37069a,_0x357fef[_0x2fef2b(0xf0a)]=_0x5f6af2,_0x357fef[_0x2fef2b(0x1c75)]=_0x616fea,_0x357fef[_0x2fef2b(0x2208)]=_0x35601a,_0x357fef['createOrEditSound']=_0x3df48d,_0x357fef['deleteSound']=_0x28013c,_0x357fef[_0x2fef2b(0x2f2)]=_0x53b707,_0x357fef['deleteSelectedSounds']=_0x2305cd,_0x357fef[_0x2fef2b(0x135)]=_0x16c2a0,_0x357fef[_0x2fef2b(0xcd0)]=_0x590065,_0x357fef[_0x2fef2b(0x2771)]=_0x495e57;function _0x2532e8(_0xbf5cc0,_0x4cb1a2){const _0x534b37=_0x2fef2b;_0x3edf22[_0x534b37(0x2615)]({'controller':'CreateOrEditSoundDialogController','controllerAs':'vm','templateUrl':_0x1b262a,'parent':angular['element'](_0x40f3cf[_0x534b37(0x2586)]),'targetEvent':_0x4cb1a2,'clickOutsideToClose':!![],'locals':{'sound':_0xbf5cc0,'sounds':_0x357fef['sounds']['rows'],'license':_0x357fef[_0x534b37(0x2690)],'setting':null,'crudPermissions':_0x357fef['crudPermissions']}});}function _0x37069a(_0x324722){const _0xa6df69=_0x2fef2b;return _0x42c442['sound']['download']({'id':_0x324722['id']})[_0xa6df69(0x2945)]['then'](function(_0x5db06c){const _0x19ac3b=_0xa6df69,_0x108bf2=[_0x5db06c[_0x19ac3b(0x2eb)]];let _0x5ceacd='download';const _0x46102f=new Blob(_0x108bf2,{'type':_0x5db06c[_0x19ac3b(0x1142)]});_0x5ceacd=_0x324722['converted_format']?_0x324722[_0x19ac3b(0xa3d)]+'.'+_0x324722['converted_format']:_0x324722[_0x19ac3b(0xa3d)];const _0x2d03c7=window[_0x19ac3b(0xef3)][_0x19ac3b(0x24ec)]('a');_0x2d03c7[_0x19ac3b(0x1652)](_0x19ac3b(0x1b3c),URL[_0x19ac3b(0x1c58)](_0x46102f)),_0x2d03c7[_0x19ac3b(0x1652)](_0x19ac3b(0x15b1),_0x5ceacd),document['body'][_0x19ac3b(0x23e)](_0x2d03c7),_0x2d03c7['click']();})[_0xa6df69(0x129e)](function(_0x5cfa57){const _0x3ca5d5=_0xa6df69;if(_0x5cfa57[_0x3ca5d5(0x524)]&&_0x5cfa57[_0x3ca5d5(0x524)][_0x3ca5d5(0xcef)]&&_0x5cfa57[_0x3ca5d5(0x524)][_0x3ca5d5(0xcef)][_0x3ca5d5(0x402)])for(let _0x52c80d=0x0;_0x52c80d<_0x5cfa57['data'][_0x3ca5d5(0xcef)][_0x3ca5d5(0x402)];_0x52c80d++){_0x2fcf5a[_0x3ca5d5(0x1980)]({'title':_0x5cfa57['data'][_0x3ca5d5(0xcef)][_0x52c80d][_0x3ca5d5(0x1142)],'msg':_0x5cfa57[_0x3ca5d5(0x524)][_0x3ca5d5(0xcef)][_0x52c80d][_0x3ca5d5(0x7fd)]});}else _0x2fcf5a[_0x3ca5d5(0x1980)]({'title':_0x5cfa57[_0x3ca5d5(0x107b)]?_0x3ca5d5(0x262a)+_0x5cfa57[_0x3ca5d5(0x107b)]+'\x20-\x20'+_0x5cfa57['statusText']:_0x3ca5d5(0xe56),'msg':_0x5cfa57[_0x3ca5d5(0x524)]?JSON[_0x3ca5d5(0x10bb)](_0x5cfa57[_0x3ca5d5(0x524)][_0x3ca5d5(0x7fd)]):_0x5cfa57[_0x3ca5d5(0xd5f)]()});});}function _0x5f6af2(_0xe90578,_0x243a5f){const _0x3ce94d=_0x2fef2b,_0x5b8421=_0x3edf22[_0x3ce94d(0x1e8a)]()[_0x3ce94d(0x1189)](_0x3ce94d(0xdb2)+_0x3f65c0()[_0x3ce94d(0x20d1)](_0x3ce94d(0x126d))+'?')['htmlContent'](_0x3ce94d(0x16d3)+(_0xe90578[_0x3ce94d(0x19eb)]||_0x3ce94d(0x126d))+_0x3ce94d(0x252f)+'\x20will\x20be\x20deleted.')[_0x3ce94d(0x4bd)]('delete\x20sound')[_0x3ce94d(0x1f27)](_0x243a5f)['ok']('OK')[_0x3ce94d(0x6c3)](_0x3ce94d(0x39a));_0x3edf22['show'](_0x5b8421)[_0x3ce94d(0x146b)](function(){_0x28013c(_0xe90578);},function(){const _0x3ce8ab=_0x3ce94d;console[_0x3ce8ab(0x1a74)]('CANCEL');});}let _0x5ef2e9=!![],_0x63a500=0x1;_0x3239d7[_0x2fef2b(0x21e8)](_0x2fef2b(0x2669),function(_0xc31f39,_0x1433b9){const _0x4b11f7=_0x2fef2b;_0x5ef2e9?_0x576a43(function(){_0x5ef2e9=![];}):(!_0x1433b9&&(_0x63a500=_0x357fef[_0x4b11f7(0x1a56)][_0x4b11f7(0x844)]),_0xc31f39!==_0x1433b9&&(_0x357fef[_0x4b11f7(0x1a56)]['page']=0x1),!_0xc31f39&&(_0x357fef['query'][_0x4b11f7(0x844)]=_0x63a500),_0x357fef['getSounds']());});function _0x616fea(_0x48c00b){_0x357fef['sounds']=_0x48c00b||{'count':0x0,'rows':[]};}function _0x35601a(){const _0x22f532=_0x2fef2b;_0x357fef[_0x22f532(0x1a56)][_0x22f532(0x145d)]=(_0x357fef[_0x22f532(0x1a56)]['page']-0x1)*_0x357fef[_0x22f532(0x1a56)][_0x22f532(0x221e)],_0x58e2ee[_0x22f532(0x23e0)](_0x22f532(0x174b))?_0x357fef[_0x22f532(0xb9c)]=_0x42c442[_0x22f532(0x126d)][_0x22f532(0x16b4)](_0x357fef['query'],_0x616fea)['$promise']:(_0x357fef['query']['id']=_0x357fef[_0x22f532(0x26b6)]['id'],_0x357fef['query']['section']=_0x22f532(0x175f),_0x357fef[_0x22f532(0xb9c)]=_0x42c442[_0x22f532(0x26b6)][_0x22f532(0x158f)](_0x357fef['query'],_0x616fea)[_0x22f532(0x2945)]);}function _0x3df48d(_0x5374f5,_0x42819d){const _0x1e4850=_0x2fef2b;_0x3edf22[_0x1e4850(0x2615)]({'controller':_0x1e4850(0x2808),'controllerAs':'vm','templateUrl':_0x1b262a,'parent':angular[_0x1e4850(0x1853)](_0x40f3cf[_0x1e4850(0x2586)]),'targetEvent':_0x5374f5,'clickOutsideToClose':!![],'locals':{'sound':_0x42819d,'sounds':_0x357fef['sounds']['rows'],'license':_0x357fef['license'],'setting':_0x357fef[_0x1e4850(0x15b9)],'crudPermissions':_0x357fef[_0x1e4850(0x2514)]}});}function _0x28013c(_0x180b72){const _0x350012=_0x2fef2b;_0x42c442['sound'][_0x350012(0x1fac)]({'id':_0x180b72['id']})[_0x350012(0x2945)]['then'](function(){const _0x96f27c=_0x350012;_0x3f65c0()['remove'](_0x357fef[_0x96f27c(0xb02)][_0x96f27c(0x19c7)],{'id':_0x180b72['id']}),_0x357fef[_0x96f27c(0xb02)][_0x96f27c(0x51c)]-=0x1,!_0x357fef['sounds'][_0x96f27c(0x19c7)][_0x96f27c(0x402)]&&_0x357fef[_0x96f27c(0x2208)](),_0x2fcf5a[_0x96f27c(0x1c75)]({'title':_0x3f65c0()[_0x96f27c(0x20d1)](_0x96f27c(0x426))+_0x96f27c(0x201c),'msg':_0x180b72[_0x96f27c(0x19eb)]?_0x180b72[_0x96f27c(0x19eb)]+_0x96f27c(0x23e3):''});})[_0x350012(0x129e)](function(_0x463338){const _0x54db9d=_0x350012;if(_0x463338[_0x54db9d(0x524)]&&_0x463338['data']['errors']&&_0x463338[_0x54db9d(0x524)]['errors'][_0x54db9d(0x402)]){_0x357fef[_0x54db9d(0xcef)]=_0x463338[_0x54db9d(0x524)][_0x54db9d(0xcef)]||[{'message':_0x463338[_0x54db9d(0xd5f)](),'type':_0x54db9d(0xa85)}];for(let _0x2de3f1=0x0;_0x2de3f1<_0x463338[_0x54db9d(0x524)][_0x54db9d(0xcef)][_0x54db9d(0x402)];_0x2de3f1++){_0x2fcf5a[_0x54db9d(0x1980)]({'title':_0x463338['data'][_0x54db9d(0xcef)][_0x2de3f1][_0x54db9d(0x1142)],'msg':_0x463338[_0x54db9d(0x524)][_0x54db9d(0xcef)][_0x2de3f1][_0x54db9d(0x7fd)]});}}else _0x2fcf5a[_0x54db9d(0x1980)]({'title':_0x463338['status']?_0x54db9d(0x262a)+_0x463338[_0x54db9d(0x107b)]+_0x54db9d(0x1315)+_0x463338['statusText']:_0x54db9d(0xa85),'msg':_0x463338['data']?JSON[_0x54db9d(0x10bb)](_0x463338['data'][_0x54db9d(0x7fd)]):_0x463338[_0x54db9d(0x7fd)]||_0x463338[_0x54db9d(0xd5f)]()});});}function _0x53b707(){const _0x373e82=_0x2fef2b,_0x2f4364=angular[_0x373e82(0x235a)](_0x357fef[_0x373e82(0x204b)]);return _0x357fef['selectedSounds']=[],_0x2f4364;}function _0x2305cd(_0x273909){const _0x2aeef6=_0x2fef2b,_0x55e771=_0x3edf22[_0x2aeef6(0x1e8a)]()[_0x2aeef6(0x1189)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20sounds?')[_0x2aeef6(0x1cbe)](_0x2aeef6(0x16d3)+_0x357fef['selectedSounds'][_0x2aeef6(0x402)]+_0x2aeef6(0x2452)+'\x20will\x20be\x20deleted.')[_0x2aeef6(0x4bd)](_0x2aeef6(0xbcb))['targetEvent'](_0x273909)['ok']('OK')[_0x2aeef6(0x6c3)]('CANCEL');_0x3edf22[_0x2aeef6(0x2615)](_0x55e771)['then'](function(){const _0x482d3f=_0x2aeef6;_0x357fef['selectedSounds'][_0x482d3f(0x1df5)](function(_0x34ee64){_0x28013c(_0x34ee64);}),_0x357fef[_0x482d3f(0x204b)]=[];});}function _0x16c2a0(){_0x357fef['selectedSounds']=[];}function _0x590065(){const _0x5717cd=_0x2fef2b;_0x357fef['selectedSounds']=_0x357fef[_0x5717cd(0xb02)][_0x5717cd(0x19c7)];}function _0x495e57(_0x46bdd5){const _0x56b776=_0x2fef2b;_0x3edf22[_0x56b776(0x2615)]({'controller':_0x56b776(0x63d),'controllerAs':'vm','templateUrl':_0x5093b8,'parent':angular['element'](_0x40f3cf[_0x56b776(0x2586)]),'targetEvent':_0x46bdd5,'clickOutsideToClose':!![],'locals':{'sounds':_0x357fef[_0x56b776(0xb02)][_0x56b776(0x19c7)]}});}}const _0x3de211=_0x326c93;;_0x1f87d6[_0x313a4d(0x11c2)]=['$cookies',_0x313a4d(0x10e8),_0x313a4d(0x1fe4),_0x313a4d(0xb02),_0x313a4d(0x247f),_0x313a4d(0xa87)];function _0x1f87d6(_0x21f3cd,_0x47a191,_0x66a36,_0x5bbbe6,_0x472278,_0x232bcd){const _0x4f90df=_0x313a4d,_0x10b155=this,_0xb351f5=0xf,_0x1a0757=_0xb351f5*0x400*0x400;_0x10b155[_0x4f90df(0x2321)]=_0x232bcd[_0x4f90df(0xb12)](),_0x10b155[_0x4f90df(0xcef)]=[],_0x10b155[_0x4f90df(0x1189)]=_0x4f90df(0x31e),_0x10b155[_0x4f90df(0xb02)]=_0x5bbbe6,_0x10b155['uploadSounds']=[],_0x10b155[_0x4f90df(0x211b)]=_0x4f90df(0x1642),_0x10b155[_0x4f90df(0x126d)]={},_0x10b155['ngFlowOptions']={'maxChunkRetries':0x1,'chunkSize':_0x1a0757,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![],'target':'api/sounds'},_0x10b155['ngFlow']={'flow':{}},_0x10b155[_0x4f90df(0x240d)]=![],_0x10b155[_0x4f90df(0x143d)]=_0x5ddc90,_0x10b155[_0x4f90df(0x1dc6)]=_0x2029a8,_0x10b155['fileSuccess']=_0x4dc968,_0x10b155[_0x4f90df(0x1897)]=_0x446b81,_0x10b155['uploadComplete']=_0x59dff2,_0x10b155['closeDialog']=_0x3a46ed;function _0x5ddc90(_0x1d48b0){const _0x24bd6f=_0x4f90df,_0x22a056=[_0x24bd6f(0x52d),_0x24bd6f(0x499),_0x24bd6f(0xdf0)];if(!_0x3f65c0()['includes'](_0x22a056,_0x1d48b0[_0x24bd6f(0x193f)]()))return _0x66a36[_0x24bd6f(0x1980)]({'title':'Invalid\x20extension:\x20'+_0x1d48b0[_0x24bd6f(0x193f)](),'msg':_0x24bd6f(0x208f)+_0x22a056['join']()}),![];if(_0x1d48b0[_0x24bd6f(0x4cc)]>_0x1a0757)return _0x66a36['error']({'title':'File\x20too\x20big','msg':_0x24bd6f(0x923)+_0xb351f5+'MB'}),![];return _0x10b155[_0x24bd6f(0x126d)]={'id':_0x1d48b0[_0x24bd6f(0x1276)],'file':_0x1d48b0},_0x10b155['uploadSounds'][_0x24bd6f(0xb3d)](_0x10b155[_0x24bd6f(0x126d)]),!![];}function _0x2029a8(){const _0x1b7d2f=_0x4f90df;_0x10b155[_0x1b7d2f(0x211b)]=_0x1b7d2f(0x159c),_0x10b155[_0x1b7d2f(0x1376)][_0x1b7d2f(0x963)]['opts'][_0x1b7d2f(0xa01)]={'X-Requested-With':'XMLHttpRequest','Authorization':_0x1b7d2f(0x2745)+_0x21f3cd['get'](_0x1b7d2f(0xe2d))},_0x10b155['ngFlow']['flow'][_0x1b7d2f(0x1da1)][_0x1b7d2f(0x1a56)]={'role':_0x10b155['currentUser'][_0x1b7d2f(0xfb0)],'userProfileId':_0x10b155[_0x1b7d2f(0x2321)][_0x1b7d2f(0x209a)]},_0x10b155[_0x1b7d2f(0x1376)][_0x1b7d2f(0x963)][_0x1b7d2f(0x1dc6)]();}function _0x4dc968(_0x143ffe,_0x5a05eb){const _0x1057ff=_0x4f90df;_0x10b155['sounds'][_0x1057ff(0xb3d)](JSON[_0x1057ff(0x975)](_0x5a05eb)),angular[_0x1057ff(0x1df5)](_0x10b155[_0x1057ff(0x13a5)],function(_0x3b11e8){const _0x53a1b7=_0x1057ff;if(_0x3b11e8['id']===_0x143ffe[_0x53a1b7(0x1276)]){const _0x396f47=new FileReader();_0x396f47[_0x53a1b7(0xa0c)](_0x3b11e8[_0x53a1b7(0x252e)]['file']),_0x396f47[_0x53a1b7(0x20f6)]=function(_0x74ef8c){const _0x48cbdf=_0x53a1b7;_0x3b11e8['url']=_0x74ef8c['target'][_0x48cbdf(0x61a)];};}});}function _0x446b81(){const _0x4c0839=_0x4f90df;_0x10b155['ngFlow'][_0x4c0839(0x963)]['cancel'](),_0x66a36['error']({'title':_0x4c0839(0x2645),'msg':_0x4c0839(0x1319)}),_0x10b155[_0x4c0839(0x211b)]=_0x4c0839(0x18de);}function _0x59dff2(){const _0xba5bc8=_0x4f90df;_0x10b155[_0xba5bc8(0x211b)]!=='failed'&&(_0x10b155[_0xba5bc8(0x211b)]=_0xba5bc8(0x1b62),_0x66a36[_0xba5bc8(0x1c75)]({'title':_0xba5bc8(0xd31),'msg':_0x10b155[_0xba5bc8(0x126d)]['file'][_0xba5bc8(0x19eb)]+'\x20uploaded\x20successfully'}));}function _0x3a46ed(){const _0x439dba=_0x4f90df;_0x47a191[_0x439dba(0x2458)]();}}const _0x33741a=_0x1f87d6;;_0x530126[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1862),_0x313a4d(0xd08),_0x313a4d(0x10e8),'$q',_0x313a4d(0x214b),_0x313a4d(0x1fe4),_0x313a4d(0x1b86),'tag',_0x313a4d(0x247f),_0x313a4d(0xa87),_0x313a4d(0x2690),_0x313a4d(0x15b9),'crudPermissions'];function _0x530126(_0x1caaca,_0x4d4f8e,_0x5dec9f,_0x1f1441,_0x3c1ef6,_0x2d8760,_0x518ff5,_0x19919b,_0x181943,_0x4994d8,_0x38008d,_0x5c083b,_0x783fbd,_0x28c91f){const _0x1bf203=_0x313a4d,_0x31d022=this;_0x31d022[_0x1bf203(0x2321)]=_0x38008d[_0x1bf203(0xb12)](),_0x31d022[_0x1bf203(0xcef)]=[],_0x31d022[_0x1bf203(0x15b9)]=_0x783fbd,_0x31d022[_0x1bf203(0x2690)]=_0x5c083b,_0x31d022[_0x1bf203(0x2514)]=_0x28c91f,_0x31d022[_0x1bf203(0x855)]={},_0x31d022[_0x1bf203(0x2251)]=_0x31d022[_0x1bf203(0x15b9)]&&_0x31d022[_0x1bf203(0x15b9)]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x31d022['title']=_0x1bf203(0x2355),_0x31d022['tag']=angular[_0x1bf203(0x235a)](_0x181943),_0x31d022['tags']=_0x19919b,_0x31d022['newTag']=![];!_0x31d022[_0x1bf203(0xa80)]&&(_0x31d022[_0x1bf203(0xa80)]={},_0x31d022['title']='TOOLS.NEW_TAG',_0x31d022['newTag']=!![]);_0x31d022[_0x1bf203(0x431)]=_0x3d1e0f,_0x31d022[_0x1bf203(0x236b)]=_0x3b5ccf,_0x31d022[_0x1bf203(0x7a6)]=_0x2e5c23,_0x31d022['getDateFromString']=_0x27e7fa,_0x31d022[_0x1bf203(0x13f3)]=_0x569906;function _0x3d1e0f(){const _0x592987=_0x1bf203;_0x31d022[_0x592987(0xcef)]=[],_0x4994d8[_0x592987(0xa80)][_0x592987(0x1e3)](_0x31d022[_0x592987(0xa80)])['$promise'][_0x592987(0x146b)](function(_0x1ff5c4){const _0x57eef=_0x592987;_0x31d022[_0x57eef(0x1b86)][_0x57eef(0xb3d)](_0x1ff5c4[_0x57eef(0x2488)]()),_0x518ff5[_0x57eef(0x1c75)]({'title':_0x57eef(0x24d3),'msg':_0x31d022[_0x57eef(0xa80)][_0x57eef(0x19eb)]?_0x31d022[_0x57eef(0xa80)][_0x57eef(0x19eb)]+_0x57eef(0x1386):''}),_0x569906(_0x1ff5c4);})['catch'](function(_0x4d1083){const _0x2d2414=_0x592987;if(_0x4d1083[_0x2d2414(0x524)]&&_0x4d1083[_0x2d2414(0x524)][_0x2d2414(0xcef)]&&_0x4d1083[_0x2d2414(0x524)][_0x2d2414(0xcef)][_0x2d2414(0x402)]){_0x31d022[_0x2d2414(0xcef)]=_0x4d1083[_0x2d2414(0x524)][_0x2d2414(0xcef)]||[{'message':_0x4d1083[_0x2d2414(0xd5f)](),'type':_0x2d2414(0x1ba9)}];for(let _0xf1269f=0x0;_0xf1269f<_0x4d1083['data']['errors']['length'];_0xf1269f+=0x1){_0x518ff5['error']({'title':_0x4d1083[_0x2d2414(0x524)][_0x2d2414(0xcef)][_0xf1269f][_0x2d2414(0x1142)],'msg':_0x4d1083[_0x2d2414(0x524)][_0x2d2414(0xcef)][_0xf1269f]['message']});}}else _0x518ff5[_0x2d2414(0x1980)]({'title':_0x4d1083[_0x2d2414(0x107b)]?_0x2d2414(0x262a)+_0x4d1083[_0x2d2414(0x107b)]+_0x2d2414(0x1315)+_0x4d1083['statusText']:'api.tag.save','msg':_0x4d1083[_0x2d2414(0x524)]?JSON['stringify'](_0x4d1083['data']['message']):_0x4d1083[_0x2d2414(0xd5f)]()});});}function _0x3b5ccf(){const _0x2839d1=_0x1bf203;_0x31d022[_0x2839d1(0xcef)]=[],_0x4994d8['tag'][_0x2839d1(0x18e1)]({'id':_0x31d022[_0x2839d1(0xa80)]['id']},_0x31d022[_0x2839d1(0xa80)])[_0x2839d1(0x2945)][_0x2839d1(0x146b)](function(_0x2aa12b){const _0x5f0891=_0x2839d1,_0x409907=_0x3f65c0()[_0x5f0891(0xc84)](_0x31d022[_0x5f0891(0x1b86)],{'id':_0x2aa12b['id']});_0x409907&&_0x3f65c0()['merge'](_0x409907,_0x3f65c0()[_0x5f0891(0x40e)](_0x2aa12b[_0x5f0891(0x2488)](),_0x3f65c0()['keys'](_0x409907))),_0x518ff5[_0x5f0891(0x1c75)]({'title':_0x5f0891(0x234),'msg':_0x31d022['tag'][_0x5f0891(0x19eb)]?_0x31d022['tag'][_0x5f0891(0x19eb)]+_0x5f0891(0x24db):''}),_0x569906(_0x2aa12b);})[_0x2839d1(0x129e)](function(_0x11eaf5){const _0x3bb271=_0x2839d1;if(_0x11eaf5['data']&&_0x11eaf5['data'][_0x3bb271(0xcef)]&&_0x11eaf5[_0x3bb271(0x524)][_0x3bb271(0xcef)][_0x3bb271(0x402)]){_0x31d022['errors']=_0x11eaf5[_0x3bb271(0x524)][_0x3bb271(0xcef)]||[{'message':_0x11eaf5['toString'](),'type':_0x3bb271(0x1af4)}];for(let _0x1e24b4=0x0;_0x1e24b4<_0x11eaf5[_0x3bb271(0x524)][_0x3bb271(0xcef)]['length'];_0x1e24b4++){_0x518ff5['error']({'title':_0x11eaf5[_0x3bb271(0x524)][_0x3bb271(0xcef)][_0x1e24b4][_0x3bb271(0x1142)],'msg':_0x11eaf5[_0x3bb271(0x524)][_0x3bb271(0xcef)][_0x1e24b4]['message']});}}else _0x518ff5[_0x3bb271(0x1980)]({'title':_0x11eaf5[_0x3bb271(0x107b)]?'API:'+_0x11eaf5[_0x3bb271(0x107b)]+_0x3bb271(0x1315)+_0x11eaf5['statusText']:'api.tag.update','msg':_0x11eaf5[_0x3bb271(0x524)]?JSON[_0x3bb271(0x10bb)](_0x11eaf5[_0x3bb271(0x524)][_0x3bb271(0x7fd)]):_0x11eaf5[_0x3bb271(0xd5f)]()});});}function _0x2e5c23(_0x11b45e){const _0x1edaed=_0x1bf203;_0x31d022[_0x1edaed(0xcef)]=[];const _0x3e043f=_0x1f1441['confirm']()[_0x1edaed(0x1189)](_0x1edaed(0x1d64))[_0x1edaed(0x80f)]('The\x20tag\x20will\x20be\x20deleted.')['ariaLabel']('Delete\x20Tag')['ok'](_0x1edaed(0x25de))[_0x1edaed(0x6c3)]('Cancel')[_0x1edaed(0x1f27)](_0x11b45e);_0x1f1441['show'](_0x3e043f)['then'](function(){const _0x2b51ba=_0x1edaed;_0x4994d8[_0x2b51ba(0xa80)][_0x2b51ba(0x1fac)]({'id':_0x31d022[_0x2b51ba(0xa80)]['id']})[_0x2b51ba(0x2945)][_0x2b51ba(0x146b)](function(){const _0x5f4f83=_0x2b51ba;_0x3f65c0()[_0x5f4f83(0x2640)](_0x31d022['tags'],{'id':_0x31d022[_0x5f4f83(0xa80)]['id']}),_0x518ff5[_0x5f4f83(0x1c75)]({'title':_0x5f4f83(0x16c),'msg':(_0x31d022['tag'][_0x5f4f83(0x19eb)]||_0x5f4f83(0xa80))+_0x5f4f83(0x23e3)}),_0x569906(_0x31d022['tag']);})['catch'](function(_0x17f339){const _0x11692c=_0x2b51ba;if(_0x17f339[_0x11692c(0x524)]&&_0x17f339[_0x11692c(0x524)][_0x11692c(0xcef)]&&_0x17f339[_0x11692c(0x524)][_0x11692c(0xcef)][_0x11692c(0x402)]){_0x31d022['errors']=_0x17f339[_0x11692c(0x524)][_0x11692c(0xcef)]||[{'message':_0x17f339[_0x11692c(0xd5f)](),'type':'api.tag.delete'}];for(let _0x284e3d=0x0;_0x284e3d<_0x17f339[_0x11692c(0x524)][_0x11692c(0xcef)]['length'];_0x284e3d++){_0x518ff5[_0x11692c(0x1980)]({'title':_0x17f339[_0x11692c(0x524)][_0x11692c(0xcef)][_0x284e3d][_0x11692c(0x1142)],'msg':_0x17f339[_0x11692c(0x524)][_0x11692c(0xcef)][_0x284e3d]['message']});}}else _0x518ff5['error']({'title':_0x17f339[_0x11692c(0x107b)]?_0x11692c(0x262a)+_0x17f339[_0x11692c(0x107b)]+_0x11692c(0x1315)+_0x17f339[_0x11692c(0x167f)]:_0x11692c(0x1e7d),'msg':_0x17f339[_0x11692c(0x524)]?JSON[_0x11692c(0x10bb)](_0x17f339[_0x11692c(0x524)][_0x11692c(0x7fd)]):_0x17f339[_0x11692c(0x7fd)]||_0x17f339[_0x11692c(0xd5f)]()});});},function(){});}function _0x27e7fa(_0x1b8289){return _0x1b8289===null?undefined:new Date(_0x1b8289);}function _0x569906(_0x3ba413){const _0x485f8b=_0x1bf203;_0x1f1441[_0x485f8b(0x2458)](_0x3ba413);}}const _0x54b692=_0x530126;;const _0x3a5178=_0x4acfac['p']+_0x313a4d(0x1dec);;_0x317766['$inject']=[_0x313a4d(0x910),_0x313a4d(0x1aa9),_0x313a4d(0x1862),_0x313a4d(0x15fe),_0x313a4d(0x10e8),_0x313a4d(0x4d8),_0x313a4d(0x1abe),_0x313a4d(0x214b),_0x313a4d(0x1b86),_0x313a4d(0x26b6),_0x313a4d(0x1366),_0x313a4d(0x247f),'msUtils',_0x313a4d(0x1fe4),'Auth',_0x313a4d(0x2690),_0x313a4d(0x15b9)];function _0x317766(_0x3ef373,_0x58051a,_0x348549,_0x234e82,_0x32ea12,_0x32d335,_0x10fde6,_0x273b62,_0xf73169,_0x58940b,_0x1fb94d,_0x28a55e,_0x266481,_0x4f9b2a,_0x2b5c40,_0x4504fa,_0x31b95c){const _0x2e74b4=_0x313a4d,_0x3ddb42=this;_0x3ddb42[_0x2e74b4(0x2690)]=_0x4504fa,_0x3ddb42[_0x2e74b4(0x15b9)]=_0x31b95c,_0x3ddb42[_0x2e74b4(0x2321)]=_0x2b5c40[_0x2e74b4(0xb12)](),_0x3ddb42['tags']=_0xf73169||{'count':0x0,'rows':[]},_0x3ddb42[_0x2e74b4(0x26b6)]=_0x58940b,_0x3ddb42[_0x2e74b4(0x1366)]=_0x1fb94d&&_0x1fb94d[_0x2e74b4(0x51c)]==0x1?_0x1fb94d[_0x2e74b4(0x19c7)][0x0]:null,_0x3ddb42[_0x2e74b4(0x2514)]=_0x2b5c40[_0x2e74b4(0xe60)](_0x3ddb42[_0x2e74b4(0x1366)]?_0x3ddb42[_0x2e74b4(0x1366)]['crudPermissions']:null),_0x3ddb42[_0x2e74b4(0x768)]=_0x2e74b4(0x1b86),_0x3ddb42['listOrder']='',_0x3ddb42['listOrderAsc']=null,_0x3ddb42[_0x2e74b4(0x2323)]=[],_0x3ddb42[_0x2e74b4(0x1a56)]={'fields':_0x2e74b4(0x1099),'sort':'-updatedAt','limit':0xa,'page':0x1},_0x3ddb42[_0x2e74b4(0x2ed)]=_0xd52029,_0x3ddb42[_0x2e74b4(0xf0a)]=_0x20a968,_0x3ddb42[_0x2e74b4(0x1c75)]=_0x3d9f99,_0x3ddb42[_0x2e74b4(0x16ee)]=_0x2367d1,_0x3ddb42[_0x2e74b4(0x16db)]=_0x3914fd,_0x3ddb42[_0x2e74b4(0x7a6)]=_0x37c67a,_0x3ddb42[_0x2e74b4(0x194b)]=_0x142593,_0x3ddb42[_0x2e74b4(0x1e80)]=_0x3af905,_0x3ddb42[_0x2e74b4(0xfc8)]=_0x34eebc,_0x3ddb42['selectAllTags']=_0x500999;function _0xd52029(_0x1a828c,_0x34b667){const _0x109449=_0x2e74b4;_0x32ea12[_0x109449(0x2615)]({'controller':'CreateOrEditTagDialogController','controllerAs':'vm','templateUrl':_0x3a5178,'parent':angular[_0x109449(0x1853)](_0x32d335[_0x109449(0x2586)]),'targetEvent':_0x34b667,'clickOutsideToClose':!![],'locals':{'tag':_0x1a828c,'tags':_0x3ddb42[_0x109449(0x1b86)][_0x109449(0x19c7)],'license':_0x3ddb42['license'],'setting':null,'crudPermissions':_0x3ddb42['crudPermissions']}});}function _0x20a968(_0x23ee44,_0x58dda8){const _0x43f4c6=_0x2e74b4,_0x45e4ac=_0x32ea12[_0x43f4c6(0x1e8a)]()[_0x43f4c6(0x1189)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x3f65c0()['startCase'](_0x43f4c6(0xa80))+'?')['htmlContent'](_0x43f4c6(0x16d3)+(_0x23ee44[_0x43f4c6(0x19eb)]||_0x43f4c6(0xa80))+_0x43f4c6(0x252f)+_0x43f4c6(0xe01))[_0x43f4c6(0x4bd)](_0x43f4c6(0xae5))[_0x43f4c6(0x1f27)](_0x58dda8)['ok']('OK')[_0x43f4c6(0x6c3)](_0x43f4c6(0x39a));_0x32ea12[_0x43f4c6(0x2615)](_0x45e4ac)[_0x43f4c6(0x146b)](function(){_0x37c67a(_0x23ee44);},function(){const _0x55971a=_0x43f4c6;console[_0x55971a(0x1a74)](_0x55971a(0x39a));});}let _0x4b1a8e=!![],_0x520eeb=0x1;_0x3ef373[_0x2e74b4(0x21e8)]('vm.query.filter',function(_0x3639fb,_0x1719f2){const _0x4a0d69=_0x2e74b4;_0x4b1a8e?_0x10fde6(function(){_0x4b1a8e=![];}):(!_0x1719f2&&(_0x520eeb=_0x3ddb42[_0x4a0d69(0x1a56)][_0x4a0d69(0x844)]),_0x3639fb!==_0x1719f2&&(_0x3ddb42[_0x4a0d69(0x1a56)][_0x4a0d69(0x844)]=0x1),!_0x3639fb&&(_0x3ddb42['query'][_0x4a0d69(0x844)]=_0x520eeb),_0x3ddb42[_0x4a0d69(0x16ee)]());});function _0x3d9f99(_0x561317){const _0xf2b759=_0x2e74b4;_0x3ddb42[_0xf2b759(0x1b86)]=_0x561317||{'count':0x0,'rows':[]};}function _0x2367d1(){const _0x2c6d01=_0x2e74b4;_0x3ddb42[_0x2c6d01(0x1a56)]['offset']=(_0x3ddb42['query'][_0x2c6d01(0x844)]-0x1)*_0x3ddb42[_0x2c6d01(0x1a56)]['limit'],_0x2b5c40[_0x2c6d01(0x23e0)](_0x2c6d01(0x174b))?_0x3ddb42[_0x2c6d01(0xb9c)]=_0x28a55e[_0x2c6d01(0xa80)][_0x2c6d01(0x16b4)](_0x3ddb42[_0x2c6d01(0x1a56)],_0x3d9f99)['$promise']:(_0x3ddb42[_0x2c6d01(0x1a56)]['id']=_0x3ddb42[_0x2c6d01(0x26b6)]['id'],_0x3ddb42['query'][_0x2c6d01(0x2146)]='Tags',_0x3ddb42['promise']=_0x28a55e[_0x2c6d01(0x26b6)]['getResources'](_0x3ddb42['query'],_0x3d9f99)[_0x2c6d01(0x2945)]);}function _0x3914fd(_0x225d86,_0x3fb34f){const _0x17711d=_0x2e74b4;_0x32ea12[_0x17711d(0x2615)]({'controller':_0x17711d(0x1c86),'controllerAs':'vm','templateUrl':_0x3a5178,'parent':angular[_0x17711d(0x1853)](_0x32d335[_0x17711d(0x2586)]),'targetEvent':_0x225d86,'clickOutsideToClose':!![],'locals':{'tag':_0x3fb34f,'tags':_0x3ddb42['tags']['rows'],'license':_0x3ddb42[_0x17711d(0x2690)],'setting':_0x3ddb42[_0x17711d(0x15b9)],'crudPermissions':_0x3ddb42['crudPermissions']}});}function _0x37c67a(_0x1de143){const _0x326ec4=_0x2e74b4;_0x28a55e[_0x326ec4(0xa80)][_0x326ec4(0x1fac)]({'id':_0x1de143['id']})['$promise']['then'](function(){const _0x532ecf=_0x326ec4;_0x3f65c0()[_0x532ecf(0x2640)](_0x3ddb42[_0x532ecf(0x1b86)][_0x532ecf(0x19c7)],{'id':_0x1de143['id']}),_0x3ddb42['tags'][_0x532ecf(0x51c)]-=0x1,!_0x3ddb42[_0x532ecf(0x1b86)][_0x532ecf(0x19c7)][_0x532ecf(0x402)]&&_0x3ddb42['getTags'](),_0x4f9b2a[_0x532ecf(0x1c75)]({'title':_0x3f65c0()[_0x532ecf(0x20d1)](_0x532ecf(0x23a8))+_0x532ecf(0x201c),'msg':_0x1de143[_0x532ecf(0x19eb)]?_0x1de143[_0x532ecf(0x19eb)]+_0x532ecf(0x23e3):''});})[_0x326ec4(0x129e)](function(_0x128764){const _0x2e1ece=_0x326ec4;if(_0x128764[_0x2e1ece(0x524)]&&_0x128764['data'][_0x2e1ece(0xcef)]&&_0x128764[_0x2e1ece(0x524)][_0x2e1ece(0xcef)][_0x2e1ece(0x402)]){_0x3ddb42[_0x2e1ece(0xcef)]=_0x128764[_0x2e1ece(0x524)][_0x2e1ece(0xcef)]||[{'message':_0x128764['toString'](),'type':_0x2e1ece(0x186a)}];for(let _0xe995c2=0x0;_0xe995c2<_0x128764['data'][_0x2e1ece(0xcef)][_0x2e1ece(0x402)];_0xe995c2++){_0x4f9b2a[_0x2e1ece(0x1980)]({'title':_0x128764[_0x2e1ece(0x524)]['errors'][_0xe995c2]['type'],'msg':_0x128764[_0x2e1ece(0x524)][_0x2e1ece(0xcef)][_0xe995c2][_0x2e1ece(0x7fd)]});}}else _0x4f9b2a['error']({'title':_0x128764[_0x2e1ece(0x107b)]?_0x2e1ece(0x262a)+_0x128764[_0x2e1ece(0x107b)]+_0x2e1ece(0x1315)+_0x128764['statusText']:_0x2e1ece(0x186a),'msg':_0x128764[_0x2e1ece(0x524)]?JSON[_0x2e1ece(0x10bb)](_0x128764[_0x2e1ece(0x524)]['message']):_0x128764[_0x2e1ece(0x7fd)]||_0x128764['toString']()});});}function _0x142593(){const _0x3c12c2=_0x2e74b4,_0x203f86=angular[_0x3c12c2(0x235a)](_0x3ddb42[_0x3c12c2(0x2323)]);return _0x3ddb42['selectedTags']=[],_0x203f86;}function _0x3af905(_0x4baee8){const _0x27037e=_0x2e74b4,_0x21592c=_0x32ea12[_0x27037e(0x1e8a)]()['title'](_0x27037e(0x1dc7))[_0x27037e(0x1cbe)](_0x27037e(0x16d3)+_0x3ddb42[_0x27037e(0x2323)][_0x27037e(0x402)]+_0x27037e(0x2452)+_0x27037e(0xe01))[_0x27037e(0x4bd)]('delete\x20Tags')[_0x27037e(0x1f27)](_0x4baee8)['ok']('OK')['cancel']('CANCEL');_0x32ea12[_0x27037e(0x2615)](_0x21592c)[_0x27037e(0x146b)](function(){const _0x208cb5=_0x27037e;_0x3ddb42[_0x208cb5(0x2323)][_0x208cb5(0x1df5)](function(_0x46c21f){_0x37c67a(_0x46c21f);}),_0x3ddb42['selectedTags']=[];});}function _0x34eebc(){const _0x4b1149=_0x2e74b4;_0x3ddb42[_0x4b1149(0x2323)]=[];}function _0x500999(){const _0x5d0822=_0x2e74b4;_0x3ddb42[_0x5d0822(0x2323)]=_0x3ddb42[_0x5d0822(0x1b86)][_0x5d0822(0x19c7)];}}const _0x452b4d=_0x317766;;_0x4f20b2[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),'$state',_0x313a4d(0xd08),_0x313a4d(0x10e8),'$q','$translate',_0x313a4d(0x1fe4),_0x313a4d(0x2841),_0x313a4d(0x1928),_0x313a4d(0x247f),'Auth',_0x313a4d(0x2690),_0x313a4d(0x15b9),'crudPermissions'];function _0x4f20b2(_0x507135,_0x927dbf,_0x2eeb47,_0x16ec6,_0x186821,_0x4c5a3e,_0x21347c,_0x572065,_0x31af9f,_0x338a32,_0x489f57,_0xb19224,_0x21362f,_0x1be0d2){const _0x46802f=_0x313a4d,_0x5198b9=this;_0x5198b9['currentUser']=_0x489f57['getCurrentUser'](),_0x5198b9[_0x46802f(0xcef)]=[],_0x5198b9[_0x46802f(0x15b9)]=_0x21362f,_0x5198b9[_0x46802f(0x2690)]=_0xb19224,_0x5198b9['crudPermissions']=_0x1be0d2,_0x5198b9['hasModulePermissions']={},_0x5198b9[_0x46802f(0x2251)]=_0x5198b9['setting']&&_0x5198b9[_0x46802f(0x15b9)]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x5198b9['title']='TOOLS.EDIT_TEMPLATE',_0x5198b9[_0x46802f(0x1928)]=angular[_0x46802f(0x235a)](_0x31af9f),_0x5198b9[_0x46802f(0x2841)]=_0x572065,_0x5198b9[_0x46802f(0xeeb)]=![];!_0x5198b9[_0x46802f(0x1928)]&&(_0x5198b9[_0x46802f(0x1928)]={},_0x5198b9[_0x46802f(0x1189)]='TOOLS.NEW_TEMPLATE',_0x5198b9[_0x46802f(0xeeb)]=!![]);_0x5198b9[_0x46802f(0xd3c)]=_0x2ac991,_0x5198b9['saveTemplate']=_0x33c26c,_0x5198b9['deleteTemplate']=_0x45158f,_0x5198b9[_0x46802f(0xe73)]=_0x5d4c73,_0x5198b9[_0x46802f(0x13f3)]=_0x33ef06;function _0x2ac991(){const _0x4edefa=_0x46802f;_0x5198b9[_0x4edefa(0xcef)]=[],_0x338a32['template']['save'](_0x5198b9['template'])[_0x4edefa(0x2945)][_0x4edefa(0x146b)](function(_0x20a8f7){const _0x2618b5=_0x4edefa;_0x5198b9[_0x2618b5(0x2841)][_0x2618b5(0xb3d)](_0x20a8f7['toJSON']()),_0x21347c[_0x2618b5(0x1c75)]({'title':_0x2618b5(0x569),'msg':_0x5198b9[_0x2618b5(0x1928)][_0x2618b5(0x19eb)]?_0x5198b9['template'][_0x2618b5(0x19eb)]+'\x20has\x20been\x20created!':''}),_0x33ef06(_0x20a8f7);})[_0x4edefa(0x129e)](function(_0x3d2ac0){const _0x707d3a=_0x4edefa;if(_0x3d2ac0[_0x707d3a(0x524)]&&_0x3d2ac0[_0x707d3a(0x524)][_0x707d3a(0xcef)]&&_0x3d2ac0['data'][_0x707d3a(0xcef)]['length']){_0x5198b9[_0x707d3a(0xcef)]=_0x3d2ac0[_0x707d3a(0x524)]['errors']||[{'message':_0x3d2ac0[_0x707d3a(0xd5f)](),'type':_0x707d3a(0x6eb)}];for(let _0x1ff10c=0x0;_0x1ff10c<_0x3d2ac0[_0x707d3a(0x524)][_0x707d3a(0xcef)][_0x707d3a(0x402)];_0x1ff10c+=0x1){_0x21347c[_0x707d3a(0x1980)]({'title':_0x3d2ac0[_0x707d3a(0x524)]['errors'][_0x1ff10c][_0x707d3a(0x1142)],'msg':_0x3d2ac0[_0x707d3a(0x524)][_0x707d3a(0xcef)][_0x1ff10c]['message']});}}else _0x21347c['error']({'title':_0x3d2ac0[_0x707d3a(0x107b)]?_0x707d3a(0x262a)+_0x3d2ac0[_0x707d3a(0x107b)]+_0x707d3a(0x1315)+_0x3d2ac0[_0x707d3a(0x167f)]:_0x707d3a(0x6eb),'msg':_0x3d2ac0[_0x707d3a(0x524)]?JSON[_0x707d3a(0x10bb)](_0x3d2ac0[_0x707d3a(0x524)]['message']):_0x3d2ac0['toString']()});});}function _0x33c26c(){const _0x412682=_0x46802f;_0x5198b9['errors']=[],_0x338a32[_0x412682(0x1928)][_0x412682(0x18e1)]({'id':_0x5198b9[_0x412682(0x1928)]['id']},_0x5198b9[_0x412682(0x1928)])[_0x412682(0x2945)][_0x412682(0x146b)](function(_0x57b1e2){const _0x14854b=_0x412682,_0x3a06d6=_0x3f65c0()[_0x14854b(0xc84)](_0x5198b9[_0x14854b(0x2841)],{'id':_0x57b1e2['id']});_0x3a06d6&&_0x3f65c0()[_0x14854b(0x168d)](_0x3a06d6,_0x3f65c0()[_0x14854b(0x40e)](_0x57b1e2[_0x14854b(0x2488)](),_0x3f65c0()[_0x14854b(0x627)](_0x3a06d6))),_0x21347c[_0x14854b(0x1c75)]({'title':_0x14854b(0x9f6),'msg':_0x5198b9[_0x14854b(0x1928)]['name']?_0x5198b9[_0x14854b(0x1928)]['name']+'\x20has\x20been\x20saved!':''}),_0x33ef06(_0x57b1e2);})['catch'](function(_0x5e5276){const _0x166dcc=_0x412682;if(_0x5e5276[_0x166dcc(0x524)]&&_0x5e5276[_0x166dcc(0x524)][_0x166dcc(0xcef)]&&_0x5e5276[_0x166dcc(0x524)][_0x166dcc(0xcef)][_0x166dcc(0x402)]){_0x5198b9[_0x166dcc(0xcef)]=_0x5e5276[_0x166dcc(0x524)][_0x166dcc(0xcef)]||[{'message':_0x5e5276[_0x166dcc(0xd5f)](),'type':_0x166dcc(0xf93)}];for(let _0x24ac17=0x0;_0x24ac17<_0x5e5276['data'][_0x166dcc(0xcef)]['length'];_0x24ac17++){_0x21347c[_0x166dcc(0x1980)]({'title':_0x5e5276[_0x166dcc(0x524)][_0x166dcc(0xcef)][_0x24ac17]['type'],'msg':_0x5e5276[_0x166dcc(0x524)][_0x166dcc(0xcef)][_0x24ac17][_0x166dcc(0x7fd)]});}}else _0x21347c[_0x166dcc(0x1980)]({'title':_0x5e5276[_0x166dcc(0x107b)]?_0x166dcc(0x262a)+_0x5e5276[_0x166dcc(0x107b)]+_0x166dcc(0x1315)+_0x5e5276[_0x166dcc(0x167f)]:_0x166dcc(0xf93),'msg':_0x5e5276[_0x166dcc(0x524)]?JSON['stringify'](_0x5e5276[_0x166dcc(0x524)]['message']):_0x5e5276['toString']()});});}function _0x45158f(_0x2b26e1){const _0x14f57e=_0x46802f;_0x5198b9[_0x14f57e(0xcef)]=[];const _0x42c29f=_0x16ec6[_0x14f57e(0x1e8a)]()['title'](_0x14f57e(0x1d64))[_0x14f57e(0x80f)](_0x14f57e(0x105d))[_0x14f57e(0x4bd)]('Delete\x20Template')['ok'](_0x14f57e(0x25de))[_0x14f57e(0x6c3)](_0x14f57e(0xcf0))['targetEvent'](_0x2b26e1);_0x16ec6[_0x14f57e(0x2615)](_0x42c29f)[_0x14f57e(0x146b)](function(){const _0x5ecdba=_0x14f57e;_0x338a32[_0x5ecdba(0x1928)]['delete']({'id':_0x5198b9[_0x5ecdba(0x1928)]['id']})[_0x5ecdba(0x2945)][_0x5ecdba(0x146b)](function(){const _0x467c0e=_0x5ecdba;_0x3f65c0()[_0x467c0e(0x2640)](_0x5198b9['templates'],{'id':_0x5198b9[_0x467c0e(0x1928)]['id']}),_0x21347c[_0x467c0e(0x1c75)]({'title':_0x467c0e(0x1cb2),'msg':(_0x5198b9[_0x467c0e(0x1928)]['name']||_0x467c0e(0x1928))+_0x467c0e(0x23e3)}),_0x33ef06(_0x5198b9[_0x467c0e(0x1928)]);})['catch'](function(_0x23c1bb){const _0x254b51=_0x5ecdba;if(_0x23c1bb[_0x254b51(0x524)]&&_0x23c1bb[_0x254b51(0x524)][_0x254b51(0xcef)]&&_0x23c1bb[_0x254b51(0x524)][_0x254b51(0xcef)][_0x254b51(0x402)]){_0x5198b9[_0x254b51(0xcef)]=_0x23c1bb[_0x254b51(0x524)][_0x254b51(0xcef)]||[{'message':_0x23c1bb[_0x254b51(0xd5f)](),'type':_0x254b51(0x8e0)}];for(let _0x29c1f4=0x0;_0x29c1f4<_0x23c1bb['data'][_0x254b51(0xcef)][_0x254b51(0x402)];_0x29c1f4++){_0x21347c[_0x254b51(0x1980)]({'title':_0x23c1bb[_0x254b51(0x524)][_0x254b51(0xcef)][_0x29c1f4]['type'],'msg':_0x23c1bb[_0x254b51(0x524)][_0x254b51(0xcef)][_0x29c1f4]['message']});}}else _0x21347c[_0x254b51(0x1980)]({'title':_0x23c1bb[_0x254b51(0x107b)]?'API:'+_0x23c1bb[_0x254b51(0x107b)]+'\x20-\x20'+_0x23c1bb['statusText']:_0x254b51(0x8e0),'msg':_0x23c1bb[_0x254b51(0x524)]?JSON[_0x254b51(0x10bb)](_0x23c1bb[_0x254b51(0x524)][_0x254b51(0x7fd)]):_0x23c1bb[_0x254b51(0x7fd)]||_0x23c1bb[_0x254b51(0xd5f)]()});});},function(){});}function _0x5d4c73(_0x53cfca){return _0x53cfca===null?undefined:new Date(_0x53cfca);}function _0x33ef06(_0x3cd7eb){const _0x352842=_0x46802f;_0x16ec6[_0x352842(0x2458)](_0x3cd7eb);}}const _0x45270a=_0x4f20b2;;const _0x2af230=_0x4acfac['p']+_0x313a4d(0x1911);;_0x519502[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1aa9),_0x313a4d(0x1862),_0x313a4d(0x15fe),_0x313a4d(0x10e8),'$document','$timeout',_0x313a4d(0x214b),_0x313a4d(0x2841),_0x313a4d(0x26b6),_0x313a4d(0x1366),_0x313a4d(0x247f),_0x313a4d(0x216c),_0x313a4d(0x1fe4),_0x313a4d(0xa87),'license',_0x313a4d(0x15b9)];function _0x519502(_0x14725a,_0xe9c5b1,_0x170f9c,_0x20657d,_0x1990d2,_0x277712,_0x2ac403,_0xdffe3f,_0x4aee08,_0x5bbd7d,_0x5dd503,_0x492970,_0x2ce71c,_0x49487d,_0x21716f,_0x5b7b5e,_0x49a32c){const _0x4f0d7d=_0x313a4d,_0x2117d3=this;_0x2117d3[_0x4f0d7d(0x2690)]=_0x5b7b5e,_0x2117d3[_0x4f0d7d(0x15b9)]=_0x49a32c,_0x2117d3['currentUser']=_0x21716f[_0x4f0d7d(0xb12)](),_0x2117d3[_0x4f0d7d(0x2841)]=_0x4aee08||{'count':0x0,'rows':[]},_0x2117d3[_0x4f0d7d(0x26b6)]=_0x5bbd7d,_0x2117d3['userProfileSection']=_0x5dd503&&_0x5dd503[_0x4f0d7d(0x51c)]==0x1?_0x5dd503[_0x4f0d7d(0x19c7)][0x0]:null,_0x2117d3[_0x4f0d7d(0x2514)]=_0x21716f[_0x4f0d7d(0xe60)](_0x2117d3[_0x4f0d7d(0x1366)]?_0x2117d3[_0x4f0d7d(0x1366)]['crudPermissions']:null),_0x2117d3[_0x4f0d7d(0x768)]='templates',_0x2117d3[_0x4f0d7d(0x216a)]='',_0x2117d3[_0x4f0d7d(0x214f)]=null,_0x2117d3['selectedTemplates']=[],_0x2117d3[_0x4f0d7d(0x1a56)]={'fields':_0x4f0d7d(0x1378),'sort':_0x4f0d7d(0x12f2),'limit':0xa,'page':0x1},_0x2117d3[_0x4f0d7d(0x2ed)]=_0x5cbcb4,_0x2117d3['deleteconfirm']=_0x12c359,_0x2117d3[_0x4f0d7d(0x1c75)]=_0x3e8c41,_0x2117d3[_0x4f0d7d(0x17c6)]=_0x237d10,_0x2117d3[_0x4f0d7d(0x2277)]=_0x41f88c,_0x2117d3[_0x4f0d7d(0x128b)]=_0x5ec34a,_0x2117d3[_0x4f0d7d(0x22a8)]=_0x6fb46b,_0x2117d3[_0x4f0d7d(0xc09)]=_0x17a6ef,_0x2117d3['deselectTemplates']=_0x392604,_0x2117d3['selectAllTemplates']=_0x546095;function _0x5cbcb4(_0x329f46,_0x5f5642){const _0x234031=_0x4f0d7d;_0x1990d2[_0x234031(0x2615)]({'controller':_0x234031(0x1ab1),'controllerAs':'vm','templateUrl':_0x2af230,'parent':angular[_0x234031(0x1853)](_0x277712[_0x234031(0x2586)]),'targetEvent':_0x5f5642,'clickOutsideToClose':!![],'locals':{'template':_0x329f46,'templates':_0x2117d3[_0x234031(0x2841)][_0x234031(0x19c7)],'license':_0x2117d3[_0x234031(0x2690)],'setting':null,'crudPermissions':_0x2117d3[_0x234031(0x2514)]}});}function _0x12c359(_0x2d6f13,_0x38fd27){const _0x225987=_0x4f0d7d,_0x471f84=_0x1990d2[_0x225987(0x1e8a)]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x3f65c0()['startCase'](_0x225987(0x1928))+'?')['htmlContent'](''+(_0x2d6f13[_0x225987(0x19eb)]||_0x225987(0x1928))+_0x225987(0x252f)+_0x225987(0xe01))[_0x225987(0x4bd)](_0x225987(0x12a2))[_0x225987(0x1f27)](_0x38fd27)['ok']('OK')[_0x225987(0x6c3)](_0x225987(0x39a));_0x1990d2['show'](_0x471f84)['then'](function(){_0x5ec34a(_0x2d6f13);},function(){console['log']('CANCEL');});}let _0x56fe83=!![],_0x522994=0x1;_0x14725a[_0x4f0d7d(0x21e8)]('vm.query.filter',function(_0x327fc7,_0x46e60c){const _0x58df90=_0x4f0d7d;_0x56fe83?_0x2ac403(function(){_0x56fe83=![];}):(!_0x46e60c&&(_0x522994=_0x2117d3[_0x58df90(0x1a56)][_0x58df90(0x844)]),_0x327fc7!==_0x46e60c&&(_0x2117d3['query'][_0x58df90(0x844)]=0x1),!_0x327fc7&&(_0x2117d3[_0x58df90(0x1a56)]['page']=_0x522994),_0x2117d3[_0x58df90(0x17c6)]());});function _0x3e8c41(_0xf6b013){const _0x1f6487=_0x4f0d7d;_0x2117d3[_0x1f6487(0x2841)]=_0xf6b013||{'count':0x0,'rows':[]};}function _0x237d10(){const _0x3aa284=_0x4f0d7d;_0x2117d3['query'][_0x3aa284(0x145d)]=(_0x2117d3[_0x3aa284(0x1a56)][_0x3aa284(0x844)]-0x1)*_0x2117d3[_0x3aa284(0x1a56)]['limit'],_0x21716f[_0x3aa284(0x23e0)](_0x3aa284(0x174b))?_0x2117d3[_0x3aa284(0xb9c)]=_0x492970[_0x3aa284(0x1928)]['get'](_0x2117d3[_0x3aa284(0x1a56)],_0x3e8c41)[_0x3aa284(0x2945)]:(_0x2117d3[_0x3aa284(0x1a56)]['id']=_0x2117d3[_0x3aa284(0x26b6)]['id'],_0x2117d3[_0x3aa284(0x1a56)][_0x3aa284(0x2146)]=_0x3aa284(0x7ff),_0x2117d3['promise']=_0x492970[_0x3aa284(0x26b6)][_0x3aa284(0x158f)](_0x2117d3[_0x3aa284(0x1a56)],_0x3e8c41)[_0x3aa284(0x2945)]);}function _0x41f88c(_0x1d3447,_0x5bcfcf){const _0x5a41a3=_0x4f0d7d;_0x1990d2[_0x5a41a3(0x2615)]({'controller':_0x5a41a3(0x1ab1),'controllerAs':'vm','templateUrl':_0x2af230,'parent':angular[_0x5a41a3(0x1853)](_0x277712['body']),'targetEvent':_0x1d3447,'clickOutsideToClose':!![],'locals':{'template':_0x5bcfcf,'templates':_0x2117d3[_0x5a41a3(0x2841)][_0x5a41a3(0x19c7)],'license':_0x2117d3['license'],'setting':_0x2117d3[_0x5a41a3(0x15b9)],'crudPermissions':_0x2117d3[_0x5a41a3(0x2514)]}});}function _0x5ec34a(_0x3cc030){const _0x24dd98=_0x4f0d7d;_0x492970[_0x24dd98(0x1928)][_0x24dd98(0x1fac)]({'id':_0x3cc030['id']})[_0x24dd98(0x2945)][_0x24dd98(0x146b)](function(){const _0x7b9113=_0x24dd98;_0x3f65c0()['remove'](_0x2117d3[_0x7b9113(0x2841)][_0x7b9113(0x19c7)],{'id':_0x3cc030['id']}),_0x2117d3[_0x7b9113(0x2841)][_0x7b9113(0x51c)]-=0x1,!_0x2117d3[_0x7b9113(0x2841)][_0x7b9113(0x19c7)][_0x7b9113(0x402)]&&_0x2117d3[_0x7b9113(0x17c6)](),_0x49487d[_0x7b9113(0x1c75)]({'title':_0x3f65c0()[_0x7b9113(0x20d1)]('Template')+_0x7b9113(0x201c),'msg':_0x3cc030[_0x7b9113(0x19eb)]?_0x3cc030[_0x7b9113(0x19eb)]+'\x20has\x20been\x20deleted!':''});})[_0x24dd98(0x129e)](function(_0x4f6300){const _0x4b642c=_0x24dd98;if(_0x4f6300[_0x4b642c(0x524)]&&_0x4f6300[_0x4b642c(0x524)][_0x4b642c(0xcef)]&&_0x4f6300['data'][_0x4b642c(0xcef)][_0x4b642c(0x402)]){_0x2117d3[_0x4b642c(0xcef)]=_0x4f6300[_0x4b642c(0x524)][_0x4b642c(0xcef)]||[{'message':_0x4f6300['toString'](),'type':_0x4b642c(0x273e)}];for(let _0x1b30bf=0x0;_0x1b30bf<_0x4f6300[_0x4b642c(0x524)][_0x4b642c(0xcef)][_0x4b642c(0x402)];_0x1b30bf++){_0x49487d[_0x4b642c(0x1980)]({'title':_0x4f6300['data'][_0x4b642c(0xcef)][_0x1b30bf][_0x4b642c(0x1142)],'msg':_0x4f6300['data'][_0x4b642c(0xcef)][_0x1b30bf][_0x4b642c(0x7fd)]});}}else _0x49487d[_0x4b642c(0x1980)]({'title':_0x4f6300[_0x4b642c(0x107b)]?_0x4b642c(0x262a)+_0x4f6300['status']+_0x4b642c(0x1315)+_0x4f6300[_0x4b642c(0x167f)]:_0x4b642c(0x273e),'msg':_0x4f6300[_0x4b642c(0x524)]?JSON['stringify'](_0x4f6300[_0x4b642c(0x524)][_0x4b642c(0x7fd)]):_0x4f6300[_0x4b642c(0x7fd)]||_0x4f6300[_0x4b642c(0xd5f)]()});});}function _0x6fb46b(){const _0x30cbef=_0x4f0d7d,_0x25e1f4=angular[_0x30cbef(0x235a)](_0x2117d3['selectedTemplates']);return _0x2117d3[_0x30cbef(0x2310)]=[],_0x25e1f4;}function _0x17a6ef(_0x30107c){const _0x40081f=_0x4f0d7d,_0x5b9ef8=_0x1990d2['confirm']()[_0x40081f(0x1189)](_0x40081f(0x1518))['htmlContent'](_0x40081f(0x16d3)+_0x2117d3[_0x40081f(0x2310)][_0x40081f(0x402)]+_0x40081f(0x2452)+_0x40081f(0xe01))[_0x40081f(0x4bd)](_0x40081f(0x43d))[_0x40081f(0x1f27)](_0x30107c)['ok']('OK')[_0x40081f(0x6c3)](_0x40081f(0x39a));_0x1990d2[_0x40081f(0x2615)](_0x5b9ef8)['then'](function(){const _0x34b5ba=_0x40081f;_0x2117d3[_0x34b5ba(0x2310)][_0x34b5ba(0x1df5)](function(_0x48362a){_0x5ec34a(_0x48362a);}),_0x2117d3[_0x34b5ba(0x2310)]=[];});}function _0x392604(){const _0x42c717=_0x4f0d7d;_0x2117d3[_0x42c717(0x2310)]=[];}function _0x546095(){const _0x56275e=_0x4f0d7d;_0x2117d3[_0x56275e(0x2310)]=_0x2117d3[_0x56275e(0x2841)][_0x56275e(0x19c7)];}}const _0x23b193=_0x519502;;_0x4acdf1[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1862),_0x313a4d(0xd08),_0x313a4d(0x10e8),'$q','$translate',_0x313a4d(0x1fe4),_0x313a4d(0x2433),_0x313a4d(0x279f),_0x313a4d(0x247f),_0x313a4d(0xa87),_0x313a4d(0x2690),_0x313a4d(0x15b9),'crudPermissions'];function _0x4acdf1(_0x23b24f,_0x58272d,_0x2e915a,_0xa276a4,_0x332c83,_0x3f664e,_0x33d394,_0x47bd05,_0x47f7bf,_0x413657,_0x5d76ff,_0x38199c,_0x2bd2df,_0x2d4adb){const _0x1728a2=_0x313a4d,_0xbe9cba=this;_0xbe9cba['currentUser']=_0x5d76ff[_0x1728a2(0xb12)](),_0xbe9cba[_0x1728a2(0xcef)]=[],_0xbe9cba[_0x1728a2(0x15b9)]=_0x2bd2df,_0xbe9cba[_0x1728a2(0x2690)]=_0x38199c,_0xbe9cba[_0x1728a2(0x2514)]=_0x2d4adb,_0xbe9cba[_0x1728a2(0x855)]={},_0xbe9cba[_0x1728a2(0x2251)]=_0xbe9cba[_0x1728a2(0x15b9)]&&_0xbe9cba[_0x1728a2(0x15b9)][_0x1728a2(0x976)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0xbe9cba[_0x1728a2(0x1189)]=_0x1728a2(0x1d74),_0xbe9cba[_0x1728a2(0x279f)]=angular['copy'](_0x47f7bf),_0xbe9cba[_0x1728a2(0x2433)]=_0x47bd05,_0xbe9cba['newTrunk']=![];!_0xbe9cba[_0x1728a2(0x279f)]&&(_0xbe9cba[_0x1728a2(0x279f)]={'active':!![],'type':_0x1728a2(0x2169),'dtmfmode':_0x1728a2(0x14d8),'qualify':_0x1728a2(0x18e3),'t38pt_udptl':'no'},_0xbe9cba[_0x1728a2(0x1189)]='TOOLS.NEW_TRUNK',_0xbe9cba[_0x1728a2(0x25d7)]=!![]);_0xbe9cba['addNewTrunk']=_0xe9265e,_0xbe9cba[_0x1728a2(0x2211)]=_0x53eb4a,_0xbe9cba['deleteTrunk']=_0x237d18,_0xbe9cba[_0x1728a2(0xe73)]=_0x39ec1f,_0xbe9cba[_0x1728a2(0x13f3)]=_0x1f4573;function _0xe9265e(){const _0x39edcd=_0x1728a2;_0xbe9cba[_0x39edcd(0xcef)]=[],_0x413657[_0x39edcd(0x279f)][_0x39edcd(0x1e3)](_0xbe9cba[_0x39edcd(0x279f)])[_0x39edcd(0x2945)][_0x39edcd(0x146b)](function(_0xd4e15d){const _0x2b5a64=_0x39edcd;_0xbe9cba['trunks'][_0x2b5a64(0xb3d)](_0xd4e15d[_0x2b5a64(0x2488)]()),_0x33d394[_0x2b5a64(0x1c75)]({'title':'Trunk\x20properly\x20created','msg':_0xbe9cba[_0x2b5a64(0x279f)][_0x2b5a64(0x19eb)]?_0xbe9cba[_0x2b5a64(0x279f)][_0x2b5a64(0x19eb)]+_0x2b5a64(0x1386):''}),_0x1f4573(_0xd4e15d);})[_0x39edcd(0x129e)](function(_0x2cfad8){const _0x4df62e=_0x39edcd;if(_0x2cfad8[_0x4df62e(0x524)]&&_0x2cfad8[_0x4df62e(0x524)][_0x4df62e(0xcef)]&&_0x2cfad8[_0x4df62e(0x524)]['errors'][_0x4df62e(0x402)]){_0xbe9cba[_0x4df62e(0xcef)]=_0x2cfad8[_0x4df62e(0x524)]['errors']||[{'message':_0x2cfad8[_0x4df62e(0xd5f)](),'type':_0x4df62e(0x2420)}];for(let _0x351985=0x0;_0x351985<_0x2cfad8[_0x4df62e(0x524)]['errors'][_0x4df62e(0x402)];_0x351985+=0x1){_0x33d394[_0x4df62e(0x1980)]({'title':_0x2cfad8[_0x4df62e(0x524)]['errors'][_0x351985][_0x4df62e(0x1142)],'msg':_0x2cfad8[_0x4df62e(0x524)][_0x4df62e(0xcef)][_0x351985][_0x4df62e(0x7fd)]});}}else _0x33d394[_0x4df62e(0x1980)]({'title':_0x2cfad8['status']?_0x4df62e(0x262a)+_0x2cfad8['status']+_0x4df62e(0x1315)+_0x2cfad8[_0x4df62e(0x167f)]:'api.trunk.save','msg':_0x2cfad8[_0x4df62e(0x524)]?JSON[_0x4df62e(0x10bb)](_0x2cfad8[_0x4df62e(0x524)][_0x4df62e(0x7fd)]):_0x2cfad8[_0x4df62e(0xd5f)]()});});}function _0x53eb4a(){const _0x193633=_0x1728a2;_0xbe9cba[_0x193633(0xcef)]=[],_0x413657[_0x193633(0x279f)]['update']({'id':_0xbe9cba[_0x193633(0x279f)]['id']},_0xbe9cba[_0x193633(0x279f)])['$promise'][_0x193633(0x146b)](function(_0x25e82c){const _0x52a7be=_0x193633,_0x3429a1=_0x3f65c0()[_0x52a7be(0xc84)](_0xbe9cba[_0x52a7be(0x2433)],{'id':_0x25e82c['id']});_0x3429a1&&_0x3f65c0()[_0x52a7be(0x168d)](_0x3429a1,_0x3f65c0()['pick'](_0x25e82c['toJSON'](),_0x3f65c0()[_0x52a7be(0x627)](_0x3429a1))),_0x33d394[_0x52a7be(0x1c75)]({'title':_0x52a7be(0x9c6),'msg':_0xbe9cba[_0x52a7be(0x279f)][_0x52a7be(0x19eb)]?_0xbe9cba['trunk'][_0x52a7be(0x19eb)]+_0x52a7be(0x24db):''}),_0x1f4573(_0x25e82c);})['catch'](function(_0x372453){const _0x2858bd=_0x193633;if(_0x372453['data']&&_0x372453[_0x2858bd(0x524)]['errors']&&_0x372453[_0x2858bd(0x524)][_0x2858bd(0xcef)][_0x2858bd(0x402)]){_0xbe9cba['errors']=_0x372453[_0x2858bd(0x524)][_0x2858bd(0xcef)]||[{'message':_0x372453[_0x2858bd(0xd5f)](),'type':_0x2858bd(0xd25)}];for(let _0x4591d0=0x0;_0x4591d0<_0x372453[_0x2858bd(0x524)]['errors'][_0x2858bd(0x402)];_0x4591d0++){_0x33d394[_0x2858bd(0x1980)]({'title':_0x372453[_0x2858bd(0x524)]['errors'][_0x4591d0][_0x2858bd(0x1142)],'msg':_0x372453[_0x2858bd(0x524)][_0x2858bd(0xcef)][_0x4591d0]['message']});}}else _0x33d394[_0x2858bd(0x1980)]({'title':_0x372453[_0x2858bd(0x107b)]?'API:'+_0x372453[_0x2858bd(0x107b)]+_0x2858bd(0x1315)+_0x372453['statusText']:_0x2858bd(0xd25),'msg':_0x372453[_0x2858bd(0x524)]?JSON[_0x2858bd(0x10bb)](_0x372453['data']['message']):_0x372453[_0x2858bd(0xd5f)]()});});}function _0x237d18(_0x1e105b){const _0x128253=_0x1728a2;_0xbe9cba['errors']=[];const _0x5b8f78=_0xa276a4[_0x128253(0x1e8a)]()['title'](_0x128253(0x1d64))[_0x128253(0x80f)](_0x128253(0xd9f))[_0x128253(0x4bd)]('Delete\x20Trunk')['ok'](_0x128253(0x25de))[_0x128253(0x6c3)](_0x128253(0xcf0))[_0x128253(0x1f27)](_0x1e105b);_0xa276a4[_0x128253(0x2615)](_0x5b8f78)[_0x128253(0x146b)](function(){const _0x371271=_0x128253;_0x413657['trunk'][_0x371271(0x1fac)]({'id':_0xbe9cba[_0x371271(0x279f)]['id']})['$promise'][_0x371271(0x146b)](function(){const _0x3745f5=_0x371271;_0x3f65c0()[_0x3745f5(0x2640)](_0xbe9cba[_0x3745f5(0x2433)],{'id':_0xbe9cba[_0x3745f5(0x279f)]['id']}),_0x33d394[_0x3745f5(0x1c75)]({'title':_0x3745f5(0x245),'msg':(_0xbe9cba[_0x3745f5(0x279f)][_0x3745f5(0x19eb)]||_0x3745f5(0x279f))+'\x20has\x20been\x20deleted!'}),_0x1f4573(_0xbe9cba[_0x3745f5(0x279f)]);})['catch'](function(_0x1ab8de){const _0x323c0a=_0x371271;if(_0x1ab8de[_0x323c0a(0x524)]&&_0x1ab8de['data'][_0x323c0a(0xcef)]&&_0x1ab8de['data'][_0x323c0a(0xcef)][_0x323c0a(0x402)]){_0xbe9cba[_0x323c0a(0xcef)]=_0x1ab8de[_0x323c0a(0x524)][_0x323c0a(0xcef)]||[{'message':_0x1ab8de[_0x323c0a(0xd5f)](),'type':_0x323c0a(0xb3f)}];for(let _0xaa9645=0x0;_0xaa9645<_0x1ab8de['data']['errors'][_0x323c0a(0x402)];_0xaa9645++){_0x33d394[_0x323c0a(0x1980)]({'title':_0x1ab8de[_0x323c0a(0x524)][_0x323c0a(0xcef)][_0xaa9645][_0x323c0a(0x1142)],'msg':_0x1ab8de[_0x323c0a(0x524)]['errors'][_0xaa9645][_0x323c0a(0x7fd)]});}}else _0x33d394['error']({'title':_0x1ab8de[_0x323c0a(0x107b)]?_0x323c0a(0x262a)+_0x1ab8de[_0x323c0a(0x107b)]+_0x323c0a(0x1315)+_0x1ab8de['statusText']:_0x323c0a(0xb3f),'msg':_0x1ab8de[_0x323c0a(0x524)]?JSON['stringify'](_0x1ab8de[_0x323c0a(0x524)]['message']):_0x1ab8de[_0x323c0a(0x7fd)]||_0x1ab8de[_0x323c0a(0xd5f)]()});});},function(){});}function _0x39ec1f(_0x549c18){return _0x549c18===null?undefined:new Date(_0x549c18);}function _0x1f4573(_0x571ed1){const _0x4f9a85=_0x1728a2;_0xa276a4[_0x4f9a85(0x2458)](_0x571ed1);}}const _0x5550bc=_0x4acdf1;;_0x3864ac['$inject']=[_0x313a4d(0x10e8),_0x313a4d(0x1862),_0x313a4d(0x1fe4),_0x313a4d(0x247f),_0x313a4d(0x279f),'trunks',_0x313a4d(0x214b)];function _0x3864ac(_0xc62a43,_0x5849ca,_0x45ff47,_0x583275,_0x2df812,_0x29b3f4,_0x2ce72f){const _0x3504c0=_0x313a4d,_0x318a15=this;_0x318a15[_0x3504c0(0x25d7)]=!![],_0x318a15[_0x3504c0(0x279f)]=angular[_0x3504c0(0x235a)](_0x2df812),_0x318a15[_0x3504c0(0x2433)]=_0x29b3f4,_0x318a15[_0x3504c0(0x1189)]=_0x2ce72f['instant'](_0x3504c0(0x18ea));_0x2df812&&_0x2df812[_0x3504c0(0x19eb)]&&(_0x318a15[_0x3504c0(0x1189)]+=':\x20'+_0x2df812[_0x3504c0(0x19eb)]);_0x318a15['cloneTrunk']=_0x2f4256,_0x318a15[_0x3504c0(0x13f3)]=_0x369418;function _0x2f4256(){const _0x15a177=_0x3504c0;return _0x583275[_0x15a177(0x279f)][_0x15a177(0x12cc)]({'id':_0x2df812['id']},_0x318a15[_0x15a177(0x279f)])[_0x15a177(0x2945)][_0x15a177(0x146b)](function(_0x813af9){const _0x59f62b=_0x15a177;_0x318a15[_0x59f62b(0x2433)]['unshift'](_0x813af9[_0x59f62b(0x2488)]()),_0x45ff47[_0x59f62b(0x1c75)]({'title':_0x59f62b(0xde1),'msg':_0x318a15['trunk'][_0x59f62b(0x19eb)]?_0x318a15['trunk']['name']+_0x59f62b(0x1b63):''}),_0x5849ca['go'](_0x59f62b(0x5f0),{'id':_0x813af9['id']}),_0x369418(_0x813af9);})[_0x15a177(0x129e)](function(_0x1a508e){const _0x172326=_0x15a177;if(_0x1a508e[_0x172326(0x524)]&&_0x1a508e[_0x172326(0x524)][_0x172326(0xcef)]&&_0x1a508e[_0x172326(0x524)][_0x172326(0xcef)]['length']){_0x318a15['errors']=_0x1a508e[_0x172326(0x524)][_0x172326(0xcef)]||[{'message':_0x1a508e['toString'](),'type':_0x172326(0x30b)}];for(let _0x205a10=0x0;_0x205a10<_0x1a508e['data'][_0x172326(0xcef)]['length'];_0x205a10+=0x1){_0x45ff47['error']({'title':_0x1a508e['data']['errors'][_0x205a10][_0x172326(0x1142)],'msg':_0x1a508e[_0x172326(0x524)]['errors'][_0x205a10]['message']});}}else _0x45ff47['error']({'title':_0x1a508e[_0x172326(0x107b)]?_0x172326(0x262a)+_0x1a508e[_0x172326(0x107b)]+'\x20-\x20'+_0x1a508e[_0x172326(0x167f)]:_0x172326(0x30b),'msg':_0x1a508e[_0x172326(0x524)]?JSON[_0x172326(0x10bb)](_0x1a508e[_0x172326(0x524)][_0x172326(0x7fd)]):_0x1a508e[_0x172326(0xd5f)]()});});}function _0x369418(_0x214ab6){const _0x3e39e7=_0x3504c0;_0xc62a43[_0x3e39e7(0x2458)](_0x214ab6);}}const _0x378d44=_0x3864ac;;const _0x4bd866=_0x4acfac['p']+_0x313a4d(0x1c66);;_0x42a277[_0x313a4d(0x11c2)]=[_0x313a4d(0x1862),_0x313a4d(0xd08),_0x313a4d(0x10e8),'$document',_0x313a4d(0x214b),'license',_0x313a4d(0x15b9),_0x313a4d(0x247f),'toasty',_0x313a4d(0xa87),_0x313a4d(0x279f),_0x313a4d(0x1366)];function _0x42a277(_0x4217ad,_0x2d86e5,_0x4c7090,_0x527d41,_0x1c2981,_0xdcabbe,_0x1dd3a8,_0x36fd0b,_0x203f0f,_0x510de9,_0x267fee,_0x5d0e61){const _0x33711c=_0x313a4d,_0x17386d=this;_0x17386d[_0x33711c(0x2321)]=_0x510de9['getCurrentUser'](),_0x17386d[_0x33711c(0x2690)]=_0xdcabbe,_0x17386d[_0x33711c(0x15b9)]=_0x1dd3a8,_0x17386d[_0x33711c(0x2251)]=_0x17386d['setting'][_0x33711c(0x976)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x17386d['location']=_0x2d86e5[_0x33711c(0x2414)]()+'://'+_0x2d86e5['host'](),_0x17386d[_0x33711c(0x279f)]=_0x267fee||_0x4217ad['params']['trunk']||{},_0x17386d[_0x33711c(0x1366)]=_0x5d0e61&&_0x5d0e61['count']==0x1?_0x5d0e61[_0x33711c(0x19c7)][0x0]:null,_0x17386d[_0x33711c(0x2514)]=_0x510de9[_0x33711c(0xe60)](_0x17386d[_0x33711c(0x1366)]?_0x17386d[_0x33711c(0x1366)][_0x33711c(0x2514)]:null),_0x17386d[_0x33711c(0x855)]={},_0x17386d[_0x33711c(0x1b09)]=_0x4217ad[_0x33711c(0x16a)][_0x33711c(0x13a3)]||0x0,_0x17386d[_0x33711c(0x3a9)]=_0x5a668b,_0x17386d['clonedialog']=_0x413979,_0x17386d[_0x33711c(0x861)]=_0x203f0f['info'],_0x17386d['gotoTrunks']=_0x431f90,_0x17386d[_0x33711c(0x2211)]=_0x54fa18,_0x510de9['hasRole'](_0x33711c(0x174b))?_0x36fd0b[_0x33711c(0x1b82)][_0x33711c(0x16b4)]({'fields':'id,name','sort':_0x33711c(0x19eb)})['$promise']['then'](function(_0x3ae1a0){const _0x537c49=_0x33711c;_0x17386d[_0x537c49(0xfe9)]=_0x3ae1a0[_0x537c49(0x19c7)]||[];})[_0x33711c(0x129e)](function(_0x2df2f9){const _0x1df81d=_0x33711c;_0x203f0f[_0x1df81d(0x1980)]({'title':_0x2df2f9['status']?_0x1df81d(0x262a)+_0x2df2f9[_0x1df81d(0x107b)]+_0x1df81d(0x1315)+_0x2df2f9[_0x1df81d(0x167f)]:_0x1df81d(0x2742),'msg':_0x2df2f9['data']?JSON[_0x1df81d(0x10bb)](_0x2df2f9[_0x1df81d(0x524)]):_0x2df2f9[_0x1df81d(0xd5f)]()});}):_0x36fd0b[_0x33711c(0x1b82)]['get']({'fields':_0x33711c(0x7a7),'sort':_0x33711c(0x19eb)})[_0x33711c(0x2945)]['then'](function(_0x4da4d0){const _0x1ed9e7=_0x33711c;_0x17386d[_0x1ed9e7(0xfe9)]=_0x4da4d0[_0x1ed9e7(0x19c7)]||[];})[_0x33711c(0x146b)](function(){const _0xf6df58=_0x33711c;return _0x36fd0b[_0xf6df58(0x1366)][_0xf6df58(0x16b4)]({'userProfileId':_0x17386d[_0xf6df58(0x2321)]['userProfileId'],'sectionId':0x195})[_0xf6df58(0x2945)];})[_0x33711c(0x146b)](function(_0x3527dc){const _0x4b90f1=_0x33711c,_0x3770a0=_0x3527dc&&_0x3527dc[_0x4b90f1(0x19c7)]?_0x3527dc[_0x4b90f1(0x19c7)][0x0]:null;if(!_0x3770a0)return _0x36fd0b['voiceContext']['get']({'fields':_0x4b90f1(0x7a7),'sort':'name','defaultEntry':0x1})[_0x4b90f1(0x2945)][_0x4b90f1(0x146b)](function(_0x4ec286){const _0x296436=_0x4b90f1;_0x17386d[_0x296436(0xfe9)]=_0x4ec286['rows']||[];});else{if(!_0x3770a0[_0x4b90f1(0x11d2)])return _0x36fd0b['userProfileResource'][_0x4b90f1(0x16b4)]({'sectionId':_0x3770a0['id']})[_0x4b90f1(0x2945)][_0x4b90f1(0x146b)](function(_0x3b3788){const _0x2f187e=_0x4b90f1,_0x48c376=_0x3f65c0()[_0x2f187e(0x205)](_0x3b3788['rows'],function(_0x2a39b1){const _0x345a25=_0x2f187e;return _0x3f65c0()[_0x345a25(0xc84)](_0x17386d['contexts'],{'id':_0x2a39b1[_0x345a25(0x18b8)]});});let _0xb91a6d=null;_0x17386d[_0x2f187e(0x279f)]&&(_0xb91a6d=_0x3f65c0()[_0x2f187e(0xc84)](_0x17386d['contexts'],{'name':_0x17386d['trunk'][_0x2f187e(0x1ac1)]}));if(_0xb91a6d&&!_0x3f65c0()[_0x2f187e(0x1360)](_0x48c376,['id',_0xb91a6d['id']])){const _0x419016=_0x3f65c0()[_0x2f187e(0xc84)](_0x17386d[_0x2f187e(0xfe9)],{'id':_0xb91a6d['id']});_0x419016[_0x2f187e(0x8ff)]=![],_0x48c376[_0x2f187e(0x1f47)](_0x419016);}_0x17386d[_0x2f187e(0xfe9)]=_0x48c376;});}})[_0x33711c(0x129e)](function(_0x1f4df8){const _0x26e93f=_0x33711c;_0x203f0f['error']({'title':_0x1f4df8['status']?'API:'+_0x1f4df8[_0x26e93f(0x107b)]+_0x26e93f(0x1315)+_0x1f4df8[_0x26e93f(0x167f)]:_0x26e93f(0x155e),'msg':_0x1f4df8[_0x26e93f(0x524)]?JSON[_0x26e93f(0x10bb)](_0x1f4df8[_0x26e93f(0x524)]):_0x1f4df8[_0x26e93f(0xd5f)]()});});function _0x5a668b(){const _0x465881=_0x33711c;if(_0x510de9[_0x465881(0x23e0)](_0x465881(0x174b)))_0x4217ad['go']('app.voice.realtime.trunks',{});else return _0x36fd0b[_0x465881(0x1366)][_0x465881(0x16b4)]({'userProfileId':_0x510de9['getCurrentUser']()['userProfileId'],'sectionId':0x19b})[_0x465881(0x2945)][_0x465881(0x146b)](function(_0x2e0ab2){const _0x12fbfb=_0x465881,_0xe67348=_0x2e0ab2&&_0x2e0ab2[_0x12fbfb(0x19c7)]?_0x2e0ab2[_0x12fbfb(0x19c7)][0x0]:null;_0xe67348&&_0xe67348[_0x12fbfb(0x193e)]?_0x4217ad['go']('app.voice.realtime.trunks',{}):_0x203f0f['info']({'title':_0x1c2981[_0x12fbfb(0xde)](_0x12fbfb(0xb27)),'msg':_0x1c2981[_0x12fbfb(0xde)](_0x12fbfb(0x174a))});})[_0x465881(0x129e)](function(_0x13afea){const _0x5c48e9=_0x465881;_0x203f0f[_0x5c48e9(0x1980)]({'title':_0x13afea[_0x5c48e9(0x107b)]?_0x5c48e9(0x262a)+_0x13afea[_0x5c48e9(0x107b)]+_0x5c48e9(0x1315)+_0x13afea[_0x5c48e9(0x167f)]:'USERPROFILE:GET_SECTION','msg':_0x13afea[_0x5c48e9(0x107b)]?JSON[_0x5c48e9(0x10bb)](_0x13afea[_0x5c48e9(0x524)]):_0x13afea[_0x5c48e9(0xd5f)]()});});}function _0x413979(_0x22591d,_0x329b94){const _0x51ba87=_0x33711c;_0x4c7090[_0x51ba87(0x2615)]({'controller':_0x51ba87(0x1974),'controllerAs':'vm','templateUrl':_0x4bd866,'parent':angular[_0x51ba87(0x1853)](_0x527d41['body']),'targetEvent':_0x329b94,'clickOutsideToClose':!![],'locals':{'trunk':_0x22591d,'trunks':_0x17386d[_0x51ba87(0x2433)]?_0x17386d[_0x51ba87(0x2433)][_0x51ba87(0x19c7)]:[],'crudPermissions':_0x17386d[_0x51ba87(0x2514)]}});}function _0x431f90(){const _0x34686b=_0x33711c;_0x4217ad['go'](_0x34686b(0x20ab),{},{'reload':_0x34686b(0x20ab)});}function _0x54fa18(){const _0x4a6e27=_0x33711c;_0x36fd0b[_0x4a6e27(0x279f)]['update']({'id':_0x17386d[_0x4a6e27(0x279f)]['id']},_0x17386d[_0x4a6e27(0x279f)])[_0x4a6e27(0x2945)][_0x4a6e27(0x146b)](function(){const _0x5afd1b=_0x4a6e27;_0x203f0f['success']({'title':_0x5afd1b(0xb0f),'msg':_0x17386d[_0x5afd1b(0x279f)][_0x5afd1b(0x19eb)]?_0x17386d[_0x5afd1b(0x279f)]['name']+'\x20has\x20been\x20updated!':''});})[_0x4a6e27(0x129e)](function(_0x308347){const _0xec3e92=_0x4a6e27;_0x203f0f[_0xec3e92(0x1980)]({'title':_0x308347[_0xec3e92(0x107b)]?_0xec3e92(0x262a)+_0x308347[_0xec3e92(0x107b)]+_0xec3e92(0x1315)+_0x308347['statusText']:_0xec3e92(0xc4d),'msg':_0x308347[_0xec3e92(0x524)]?JSON['stringify'](_0x308347[_0xec3e92(0x524)]):_0x308347[_0xec3e92(0xd5f)]()});});}}const _0xedc4a7=_0x42a277;;const _0xbd6438=_0x4acfac['p']+_0x313a4d(0x285d);;_0x4bf818[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1aa9),_0x313a4d(0x1862),_0x313a4d(0x15fe),_0x313a4d(0x10e8),_0x313a4d(0x4d8),_0x313a4d(0x1abe),_0x313a4d(0x214b),_0x313a4d(0x2433),_0x313a4d(0x26b6),_0x313a4d(0x1366),_0x313a4d(0x247f),_0x313a4d(0x216c),_0x313a4d(0x1fe4),_0x313a4d(0xa87),'license',_0x313a4d(0x15b9)];function _0x4bf818(_0x33c0d4,_0x5be458,_0x15bda7,_0xc502f9,_0x707ede,_0x38b152,_0x1dab28,_0x2dc8ca,_0x354b4d,_0x2f1948,_0x542660,_0x9a364f,_0x15739e,_0xedc330,_0x32eb48,_0x4db39b,_0x9f9af0){const _0x2d3280=_0x313a4d,_0x59e064=this;_0x59e064[_0x2d3280(0x2690)]=_0x4db39b,_0x59e064['setting']=_0x9f9af0,_0x59e064['currentUser']=_0x32eb48['getCurrentUser'](),_0x59e064[_0x2d3280(0x2433)]=_0x354b4d||{'count':0x0,'rows':[]},_0x59e064['userProfile']=_0x2f1948,_0x59e064[_0x2d3280(0x1366)]=_0x542660&&_0x542660[_0x2d3280(0x51c)]==0x1?_0x542660[_0x2d3280(0x19c7)][0x0]:null,_0x59e064[_0x2d3280(0x2514)]=_0x32eb48[_0x2d3280(0xe60)](_0x59e064[_0x2d3280(0x1366)]?_0x59e064['userProfileSection']['crudPermissions']:null),_0x59e064[_0x2d3280(0x768)]=_0x2d3280(0x2433),_0x59e064[_0x2d3280(0x216a)]='',_0x59e064[_0x2d3280(0x214f)]=null,_0x59e064['selectedTrunks']=[],_0x59e064[_0x2d3280(0x1a56)]={'fields':_0x2d3280(0x16b0),'sort':_0x2d3280(0x12f2),'limit':0xa,'page':0x1},_0x59e064[_0x2d3280(0x11da)]=_0x3f65c0()[_0x2d3280(0x194)]([{'option':'Friend','value':'\x27friend\x27'},{'option':_0x2d3280(0x2393),'value':_0x2d3280(0x232e)},{'option':_0x2d3280(0xd9c),'value':_0x2d3280(0x1e47)}],function(_0x21c0bf){const _0x1285d4=_0x2d3280;return _0x3f65c0()[_0x1285d4(0x5f4)](_0x21c0bf['value'],new RegExp('\x27','g'),'');}),_0x59e064[_0x2d3280(0x270)]=_0x3f65c0()[_0x2d3280(0x194)]([{'option':_0x2d3280(0x14d8),'value':_0x2d3280(0x136e)},{'option':_0x2d3280(0x271e),'value':_0x2d3280(0xd91)},{'option':_0x2d3280(0xd04),'value':_0x2d3280(0x574)},{'option':_0x2d3280(0xbb1),'value':_0x2d3280(0xa88)},{'option':_0x2d3280(0x1b08),'value':_0x2d3280(0x1461)}],function(_0x31345b){const _0x3b3759=_0x2d3280;return _0x3f65c0()[_0x3b3759(0x5f4)](_0x31345b[_0x3b3759(0x175d)],new RegExp('\x27','g'),'');}),_0x59e064['arraynat']=_0x3f65c0()[_0x2d3280(0x194)]([{'option':_0x2d3280(0x22e7),'value':'\x27force_rport\x27'},{'option':_0x2d3280(0x113b),'value':_0x2d3280(0x73c)},{'option':_0x2d3280(0x18e3),'value':_0x2d3280(0x2339)},{'option':'no','value':'\x27no\x27'},{'option':_0x2d3280(0x6d2),'value':_0x2d3280(0xc7b)},{'option':_0x2d3280(0xdb0),'value':_0x2d3280(0xd9a)}],function(_0x22e02b){const _0x595912=_0x2d3280;return _0x3f65c0()[_0x595912(0x5f4)](_0x22e02b[_0x595912(0x175d)],new RegExp('\x27','g'),'');}),_0x59e064[_0x2d3280(0x11a4)]=_0x3f65c0()[_0x2d3280(0x194)]([{'option':_0x2d3280(0x18e3),'value':_0x2d3280(0x2339)},{'option':'no','value':_0x2d3280(0x74f)}],function(_0x1b240c){const _0xf9aa27=_0x2d3280;return _0x3f65c0()[_0xf9aa27(0x5f4)](_0x1b240c[_0xf9aa27(0x175d)],new RegExp('\x27','g'),'');}),_0x59e064[_0x2d3280(0x1ee2)]=_0x3f65c0()[_0x2d3280(0x194)]([{'option':_0x2d3280(0x8c3),'value':_0x2d3280(0x1f6f)},{'option':_0x2d3280(0x10ea),'value':_0x2d3280(0x174d)},{'option':_0x2d3280(0xdf0),'value':_0x2d3280(0x5a3)},{'option':_0x2d3280(0x8fd),'value':'\x27g723\x27'},{'option':_0x2d3280(0x2269),'value':_0x2d3280(0xc36)},{'option':_0x2d3280(0x2453),'value':_0x2d3280(0x1d33)},{'option':_0x2d3280(0xe90),'value':_0x2d3280(0x1bf3)},{'option':'ilbc','value':_0x2d3280(0x1d18)},{'option':'opus','value':_0x2d3280(0x1a7f)},{'option':_0x2d3280(0x1c87),'value':_0x2d3280(0x559)}],function(_0x437608){const _0x36a3bc=_0x2d3280;return _0x3f65c0()[_0x36a3bc(0x5f4)](_0x437608['value'],new RegExp('\x27','g'),'');}),_0x59e064[_0x2d3280(0x17dd)]=_0x3f65c0()['keyBy']([{'option':_0x2d3280(0x1553),'value':_0x2d3280(0x1860)},{'option':_0x2d3280(0x1bfc),'value':_0x2d3280(0x1b26)},{'option':_0x2d3280(0x1547),'value':_0x2d3280(0xab2)}],function(_0x5f22c8){const _0x41f492=_0x2d3280;return _0x3f65c0()[_0x41f492(0x5f4)](_0x5f22c8['value'],new RegExp('\x27','g'),'');}),_0x59e064[_0x2d3280(0x2207)]=_0x3f65c0()['keyBy']([{'option':_0x2d3280(0x18e3),'value':'\x27yes\x27'},{'option':'no','value':'\x27no\x27'},{'option':_0x2d3280(0x28cb),'value':_0x2d3280(0xe20)},{'option':'update','value':_0x2d3280(0x21f1)}],function(_0x3e2c10){const _0x592db9=_0x2d3280;return _0x3f65c0()[_0x592db9(0x5f4)](_0x3e2c10[_0x592db9(0x175d)],new RegExp('\x27','g'),'');}),_0x59e064[_0x2d3280(0x1dca)]=_0x3f65c0()[_0x2d3280(0x194)]([{'option':_0x2d3280(0x18e3),'value':_0x2d3280(0x2339)},{'option':'no','value':_0x2d3280(0x74f)}],function(_0x22da33){const _0x514405=_0x2d3280;return _0x3f65c0()[_0x514405(0x5f4)](_0x22da33[_0x514405(0x175d)],new RegExp('\x27','g'),'');}),_0x59e064[_0x2d3280(0xeb4)]=_0x3f65c0()[_0x2d3280(0x194)]([{'option':_0x2d3280(0x18e3),'value':_0x2d3280(0x2339)},{'option':'no','value':_0x2d3280(0x74f)}],function(_0x1069a4){const _0x19cab8=_0x2d3280;return _0x3f65c0()[_0x19cab8(0x5f4)](_0x1069a4[_0x19cab8(0x175d)],new RegExp('\x27','g'),'');}),_0x59e064[_0x2d3280(0xe05)]=_0x3f65c0()[_0x2d3280(0x194)]([{'option':_0x2d3280(0x18e3),'value':'\x27yes\x27'},{'option':'no','value':_0x2d3280(0x74f)}],function(_0x52ace9){const _0x56cd73=_0x2d3280;return _0x3f65c0()[_0x56cd73(0x5f4)](_0x52ace9[_0x56cd73(0x175d)],new RegExp('\x27','g'),'');}),_0x59e064[_0x2d3280(0x228c)]=_0x3f65c0()['keyBy']([{'option':'yes','value':_0x2d3280(0x2339)},{'option':'no','value':_0x2d3280(0x74f)},{'option':_0x2d3280(0x11ac),'value':'\x27pai\x27'}],function(_0x5dbe61){const _0x2e1e3a=_0x2d3280;return _0x3f65c0()[_0x2e1e3a(0x5f4)](_0x5dbe61[_0x2e1e3a(0x175d)],new RegExp('\x27','g'),'');}),_0x59e064[_0x2d3280(0x6dd)]=_0x3f65c0()[_0x2d3280(0x194)]([{'option':_0x2d3280(0x18e3),'value':_0x2d3280(0x2339)},{'option':'no','value':_0x2d3280(0x74f)}],function(_0x582a72){const _0x5037f2=_0x2d3280;return _0x3f65c0()[_0x5037f2(0x5f4)](_0x582a72['value'],new RegExp('\x27','g'),'');}),_0x59e064['arraytransport']=_0x3f65c0()[_0x2d3280(0x194)]([{'option':'udp','value':_0x2d3280(0x21bd)},{'option':_0x2d3280(0x1701),'value':_0x2d3280(0x1992)},{'option':'ws','value':_0x2d3280(0x9ae)},{'option':'wss','value':_0x2d3280(0x222c)},{'option':_0x2d3280(0xcbe),'value':_0x2d3280(0x17ca)}],function(_0x153a49){return _0x3f65c0()['replace'](_0x153a49['value'],new RegExp('\x27','g'),'');}),_0x59e064[_0x2d3280(0xc95)]=_0x3f65c0()[_0x2d3280(0x194)]([{'option':_0x2d3280(0x1b97),'value':'\x27yes\x27'},{'option':'No','value':_0x2d3280(0x74f)},{'option':_0x2d3280(0x132f),'value':'\x27always\x27'}],function(_0x41186f){const _0x7e1888=_0x2d3280;return _0x3f65c0()[_0x7e1888(0x5f4)](_0x41186f[_0x7e1888(0x175d)],new RegExp('\x27','g'),'');}),_0x59e064[_0x2d3280(0x23f9)]=_0x4ba9ac,_0x59e064[_0x2d3280(0xa26)]=_0x5cdbbf,_0x59e064[_0x2d3280(0x138d)]=_0x575d16,_0x59e064[_0x2d3280(0xf0a)]=_0x1e997a,_0x59e064[_0x2d3280(0x1c75)]=_0x191365,_0x59e064[_0x2d3280(0x1cd4)]=_0x14cf2c,_0x59e064[_0x2d3280(0xb69)]=_0x21d623,_0x59e064[_0x2d3280(0x1fc5)]=_0x17fb12,_0x59e064[_0x2d3280(0x183b)]=_0x1b1716,_0x59e064['deleteSelectedTrunks']=_0x57b1da,_0x59e064[_0x2d3280(0x14fd)]=_0x174b02,_0x59e064[_0x2d3280(0x122d)]=_0x5411be;function _0x4ba9ac(_0x37bd7b){const _0x3702ac=_0x2d3280;_0x15bda7['go']('app.tools.trunks.edit',{'id':_0x37bd7b['id'],'trunk':_0x37bd7b,'crudPermissions':_0x59e064[_0x3702ac(0x2514)]});}function _0x5cdbbf(_0x48d85b,_0x54c95c){const _0x450ab0=_0x2d3280;_0x707ede['show']({'controller':_0x450ab0(0x1974),'controllerAs':'vm','templateUrl':_0x4bd866,'parent':angular[_0x450ab0(0x1853)](_0x38b152['body']),'targetEvent':_0x54c95c,'clickOutsideToClose':!![],'locals':{'trunk':_0x48d85b,'trunks':_0x59e064[_0x450ab0(0x2433)]?_0x59e064[_0x450ab0(0x2433)][_0x450ab0(0x19c7)]:[],'crudPermissions':_0x59e064[_0x450ab0(0x2514)]}});}function _0x575d16(){const _0x25031f=_0x2d3280;if(_0x32eb48[_0x25031f(0x23e0)](_0x25031f(0x174b)))_0x15bda7['go'](_0x25031f(0x146),{});else return _0x9a364f['userProfileSection'][_0x25031f(0x16b4)]({'userProfileId':_0x32eb48[_0x25031f(0xb12)]()['userProfileId'],'sectionId':0x19b})[_0x25031f(0x2945)][_0x25031f(0x146b)](function(_0x12b321){const _0x43d967=_0x25031f,_0x476eea=_0x12b321&&_0x12b321[_0x43d967(0x19c7)]?_0x12b321[_0x43d967(0x19c7)][0x0]:null;_0x476eea&&_0x476eea[_0x43d967(0x193e)]?_0x15bda7['go']('app.voice.realtime.trunks',{}):_0xedc330[_0x43d967(0x271e)]({'title':_0x2dc8ca['instant'](_0x43d967(0xb27)),'msg':_0x2dc8ca[_0x43d967(0xde)](_0x43d967(0x174a))});})[_0x25031f(0x129e)](function(_0x1ec2a4){const _0x4c4f40=_0x25031f;_0xedc330['error']({'title':_0x1ec2a4[_0x4c4f40(0x107b)]?_0x4c4f40(0x262a)+_0x1ec2a4[_0x4c4f40(0x107b)]+_0x4c4f40(0x1315)+_0x1ec2a4[_0x4c4f40(0x167f)]:_0x4c4f40(0x698),'msg':_0x1ec2a4[_0x4c4f40(0x107b)]?JSON['stringify'](_0x1ec2a4[_0x4c4f40(0x524)]):_0x1ec2a4[_0x4c4f40(0xd5f)]()});});}function _0x1e997a(_0xc9927e,_0x2a4cab){const _0x567ddc=_0x2d3280,_0x3fb0cd=_0x707ede['confirm']()[_0x567ddc(0x1189)](_0x567ddc(0xdb2)+_0x3f65c0()[_0x567ddc(0x20d1)]('trunk')+'?')[_0x567ddc(0x1cbe)](_0x567ddc(0x16d3)+(_0xc9927e['name']||'trunk')+_0x567ddc(0x252f)+_0x567ddc(0xe01))[_0x567ddc(0x4bd)](_0x567ddc(0x21f3))[_0x567ddc(0x1f27)](_0x2a4cab)['ok']('OK')['cancel'](_0x567ddc(0x39a));_0x707ede[_0x567ddc(0x2615)](_0x3fb0cd)[_0x567ddc(0x146b)](function(){_0x17fb12(_0xc9927e);},function(){const _0x804a74=_0x567ddc;console['log'](_0x804a74(0x39a));});}let _0x5d9fec=!![],_0x4c0770=0x1;_0x33c0d4['$watch'](_0x2d3280(0x2669),function(_0x382ebb,_0x1716b9){const _0x1478a0=_0x2d3280;_0x5d9fec?_0x1dab28(function(){_0x5d9fec=![];}):(!_0x1716b9&&(_0x4c0770=_0x59e064['query'][_0x1478a0(0x844)]),_0x382ebb!==_0x1716b9&&(_0x59e064['query'][_0x1478a0(0x844)]=0x1),!_0x382ebb&&(_0x59e064[_0x1478a0(0x1a56)][_0x1478a0(0x844)]=_0x4c0770),_0x59e064['getTrunks']());});function _0x191365(_0x3a53bf){const _0x40dbfa=_0x2d3280;_0x59e064[_0x40dbfa(0x2433)]=_0x3a53bf||{'count':0x0,'rows':[]};}function _0x14cf2c(){const _0x52462f=_0x2d3280;_0x59e064[_0x52462f(0x1a56)][_0x52462f(0x145d)]=(_0x59e064[_0x52462f(0x1a56)]['page']-0x1)*_0x59e064[_0x52462f(0x1a56)]['limit'],_0x32eb48[_0x52462f(0x23e0)]('admin')?_0x59e064['promise']=_0x9a364f['trunk'][_0x52462f(0x16b4)](_0x59e064[_0x52462f(0x1a56)],_0x191365)[_0x52462f(0x2945)]:(_0x59e064[_0x52462f(0x1a56)]['id']=_0x59e064[_0x52462f(0x26b6)]['id'],_0x59e064['query'][_0x52462f(0x2146)]='Trunks',_0x59e064['promise']=_0x9a364f[_0x52462f(0x26b6)][_0x52462f(0x158f)](_0x59e064['query'],_0x191365)[_0x52462f(0x2945)]);}function _0x21d623(_0x292010,_0x50d5f6){const _0x32ebca=_0x2d3280;_0x707ede['show']({'controller':_0x32ebca(0x95a),'controllerAs':'vm','templateUrl':_0xbd6438,'parent':angular[_0x32ebca(0x1853)](_0x38b152[_0x32ebca(0x2586)]),'targetEvent':_0x292010,'clickOutsideToClose':!![],'locals':{'trunk':_0x50d5f6,'trunks':_0x59e064[_0x32ebca(0x2433)]['rows'],'license':_0x59e064[_0x32ebca(0x2690)],'setting':_0x59e064['setting'],'crudPermissions':_0x59e064[_0x32ebca(0x2514)]}});}function _0x17fb12(_0x2739e3){const _0x269ec9=_0x2d3280;_0x9a364f[_0x269ec9(0x279f)]['delete']({'id':_0x2739e3['id']})[_0x269ec9(0x2945)][_0x269ec9(0x146b)](function(){const _0x550139=_0x269ec9;_0x3f65c0()[_0x550139(0x2640)](_0x59e064['trunks'][_0x550139(0x19c7)],{'id':_0x2739e3['id']}),_0x59e064[_0x550139(0x2433)]['count']-=0x1,!_0x59e064[_0x550139(0x2433)][_0x550139(0x19c7)][_0x550139(0x402)]&&_0x59e064[_0x550139(0x1cd4)](),_0xedc330[_0x550139(0x1c75)]({'title':_0x3f65c0()[_0x550139(0x20d1)]('Trunk')+_0x550139(0x201c),'msg':_0x2739e3[_0x550139(0x19eb)]?_0x2739e3[_0x550139(0x19eb)]+'\x20has\x20been\x20deleted!':''});})[_0x269ec9(0x129e)](function(_0x475774){const _0x62672a=_0x269ec9;if(_0x475774['data']&&_0x475774[_0x62672a(0x524)][_0x62672a(0xcef)]&&_0x475774[_0x62672a(0x524)]['errors']['length']){_0x59e064[_0x62672a(0xcef)]=_0x475774[_0x62672a(0x524)][_0x62672a(0xcef)]||[{'message':_0x475774[_0x62672a(0xd5f)](),'type':'SYSTEM:DELETEtrunk'}];for(let _0x34fd71=0x0;_0x34fd71<_0x475774[_0x62672a(0x524)][_0x62672a(0xcef)][_0x62672a(0x402)];_0x34fd71++){_0xedc330[_0x62672a(0x1980)]({'title':_0x475774['data'][_0x62672a(0xcef)][_0x34fd71][_0x62672a(0x1142)],'msg':_0x475774[_0x62672a(0x524)][_0x62672a(0xcef)][_0x34fd71][_0x62672a(0x7fd)]});}}else _0xedc330[_0x62672a(0x1980)]({'title':_0x475774[_0x62672a(0x107b)]?_0x62672a(0x262a)+_0x475774[_0x62672a(0x107b)]+_0x62672a(0x1315)+_0x475774[_0x62672a(0x167f)]:_0x62672a(0xc34),'msg':_0x475774['data']?JSON['stringify'](_0x475774[_0x62672a(0x524)][_0x62672a(0x7fd)]):_0x475774[_0x62672a(0x7fd)]||_0x475774[_0x62672a(0xd5f)]()});});}function _0x1b1716(){const _0x46883b=_0x2d3280,_0x10fed2=angular[_0x46883b(0x235a)](_0x59e064[_0x46883b(0x2806)]);return _0x59e064[_0x46883b(0x2806)]=[],_0x10fed2;}function _0x57b1da(_0x1d415e){const _0x58a0b2=_0x2d3280,_0x360a05=_0x707ede['confirm']()[_0x58a0b2(0x1189)](_0x58a0b2(0x1010))['htmlContent'](_0x58a0b2(0x16d3)+_0x59e064[_0x58a0b2(0x2806)]['length']+_0x58a0b2(0x2452)+'\x20will\x20be\x20deleted.')[_0x58a0b2(0x4bd)](_0x58a0b2(0xa81))[_0x58a0b2(0x1f27)](_0x1d415e)['ok']('OK')[_0x58a0b2(0x6c3)](_0x58a0b2(0x39a));_0x707ede[_0x58a0b2(0x2615)](_0x360a05)['then'](function(){const _0x118522=_0x58a0b2;_0x59e064[_0x118522(0x2806)]['forEach'](function(_0x38ab7c){_0x17fb12(_0x38ab7c);}),_0x59e064[_0x118522(0x2806)]=[];});}function _0x174b02(){const _0x287ca2=_0x2d3280;_0x59e064[_0x287ca2(0x2806)]=[];}function _0x5411be(){const _0x280953=_0x2d3280;_0x59e064[_0x280953(0x2806)]=_0x59e064['trunks'][_0x280953(0x19c7)];}}const _0x4308cd=_0x4bf818;;_0x8b7b74[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1862),_0x313a4d(0xd08),_0x313a4d(0x10e8),'$q',_0x313a4d(0x214b),_0x313a4d(0x1fe4),_0x313a4d(0x85b),_0x313a4d(0x212),'api',_0x313a4d(0xa87),'license',_0x313a4d(0x15b9),_0x313a4d(0x2514)];function _0x8b7b74(_0x26390c,_0x3864c4,_0x19eb03,_0x492a31,_0x4b24e9,_0x381db1,_0x30a42d,_0x27f50a,_0x22683b,_0x26cb75,_0x191f39,_0x430c67,_0x59476d,_0x45e19f){const _0x2ae5d4=_0x313a4d,_0x46a90a=this;_0x46a90a['currentUser']=_0x191f39[_0x2ae5d4(0xb12)](),_0x46a90a['errors']=[],_0x46a90a[_0x2ae5d4(0x15b9)]=_0x59476d,_0x46a90a['license']=_0x430c67,_0x46a90a['crudPermissions']=_0x45e19f,_0x46a90a[_0x2ae5d4(0x855)]={},_0x46a90a[_0x2ae5d4(0x2251)]=_0x46a90a['setting']&&_0x46a90a['setting'][_0x2ae5d4(0x976)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x46a90a[_0x2ae5d4(0x1189)]=_0x2ae5d4(0x1330),_0x46a90a[_0x2ae5d4(0x212)]=angular[_0x2ae5d4(0x235a)](_0x22683b),_0x46a90a[_0x2ae5d4(0x85b)]=_0x27f50a,_0x46a90a['newVariable']=![];!_0x46a90a[_0x2ae5d4(0x212)]&&(_0x46a90a[_0x2ae5d4(0x212)]={},_0x46a90a[_0x2ae5d4(0x1189)]=_0x2ae5d4(0x189b),_0x46a90a[_0x2ae5d4(0x10ff)]=!![]);_0x46a90a[_0x2ae5d4(0x1b92)]=_0x6894c3,_0x46a90a[_0x2ae5d4(0x1382)]=_0x2706f1,_0x46a90a[_0x2ae5d4(0x26d2)]=_0x21146f,_0x46a90a[_0x2ae5d4(0xe73)]=_0x177d19,_0x46a90a[_0x2ae5d4(0x13f3)]=_0x23b47b;function _0x6894c3(){const _0x513241=_0x2ae5d4;_0x46a90a[_0x513241(0xcef)]=[],_0x26cb75[_0x513241(0x212)][_0x513241(0x1e3)](_0x46a90a[_0x513241(0x212)])['$promise'][_0x513241(0x146b)](function(_0x4ffb67){const _0x42b0ef=_0x513241;_0x46a90a[_0x42b0ef(0x85b)][_0x42b0ef(0xb3d)](_0x4ffb67[_0x42b0ef(0x2488)]()),_0x30a42d[_0x42b0ef(0x1c75)]({'title':_0x42b0ef(0x129c),'msg':_0x46a90a[_0x42b0ef(0x212)][_0x42b0ef(0x19eb)]?_0x46a90a[_0x42b0ef(0x212)][_0x42b0ef(0x19eb)]+_0x42b0ef(0x1386):''}),_0x23b47b(_0x4ffb67);})['catch'](function(_0x9478ea){const _0x53c45a=_0x513241;if(_0x9478ea[_0x53c45a(0x524)]&&_0x9478ea[_0x53c45a(0x524)][_0x53c45a(0xcef)]&&_0x9478ea['data'][_0x53c45a(0xcef)][_0x53c45a(0x402)]){_0x46a90a[_0x53c45a(0xcef)]=_0x9478ea['data'][_0x53c45a(0xcef)]||[{'message':_0x9478ea[_0x53c45a(0xd5f)](),'type':'api.variable.save'}];for(let _0x202987=0x0;_0x202987<_0x9478ea[_0x53c45a(0x524)][_0x53c45a(0xcef)][_0x53c45a(0x402)];_0x202987+=0x1){_0x30a42d[_0x53c45a(0x1980)]({'title':_0x9478ea[_0x53c45a(0x524)]['errors'][_0x202987][_0x53c45a(0x1142)],'msg':_0x9478ea['data']['errors'][_0x202987][_0x53c45a(0x7fd)]});}}else _0x30a42d['error']({'title':_0x9478ea['status']?'API:'+_0x9478ea['status']+_0x53c45a(0x1315)+_0x9478ea[_0x53c45a(0x167f)]:'api.variable.save','msg':_0x9478ea[_0x53c45a(0x524)]?JSON[_0x53c45a(0x10bb)](_0x9478ea['data']['message']):_0x9478ea[_0x53c45a(0xd5f)]()});});}function _0x2706f1(){const _0xf8b2cb=_0x2ae5d4;_0x46a90a[_0xf8b2cb(0xcef)]=[],_0x26cb75['variable'][_0xf8b2cb(0x18e1)]({'id':_0x46a90a['variable']['id']},_0x46a90a['variable'])['$promise']['then'](function(_0x48e541){const _0x505662=_0xf8b2cb,_0x1354e0=_0x3f65c0()[_0x505662(0xc84)](_0x46a90a[_0x505662(0x85b)],{'id':_0x48e541['id']});_0x1354e0&&_0x3f65c0()[_0x505662(0x168d)](_0x1354e0,_0x3f65c0()['pick'](_0x48e541['toJSON'](),_0x3f65c0()['keys'](_0x1354e0))),_0x30a42d[_0x505662(0x1c75)]({'title':_0x505662(0x88a),'msg':_0x46a90a[_0x505662(0x212)][_0x505662(0x19eb)]?_0x46a90a[_0x505662(0x212)][_0x505662(0x19eb)]+_0x505662(0x24db):''}),_0x23b47b(_0x48e541);})['catch'](function(_0x343c1b){const _0x103651=_0xf8b2cb;if(_0x343c1b[_0x103651(0x524)]&&_0x343c1b[_0x103651(0x524)][_0x103651(0xcef)]&&_0x343c1b[_0x103651(0x524)]['errors'][_0x103651(0x402)]){_0x46a90a['errors']=_0x343c1b[_0x103651(0x524)]['errors']||[{'message':_0x343c1b[_0x103651(0xd5f)](),'type':_0x103651(0x343)}];for(let _0x279e55=0x0;_0x279e55<_0x343c1b[_0x103651(0x524)][_0x103651(0xcef)][_0x103651(0x402)];_0x279e55++){_0x30a42d[_0x103651(0x1980)]({'title':_0x343c1b[_0x103651(0x524)]['errors'][_0x279e55][_0x103651(0x1142)],'msg':_0x343c1b[_0x103651(0x524)][_0x103651(0xcef)][_0x279e55][_0x103651(0x7fd)]});}}else _0x30a42d['error']({'title':_0x343c1b[_0x103651(0x107b)]?_0x103651(0x262a)+_0x343c1b[_0x103651(0x107b)]+'\x20-\x20'+_0x343c1b['statusText']:_0x103651(0x343),'msg':_0x343c1b[_0x103651(0x524)]?JSON[_0x103651(0x10bb)](_0x343c1b['data'][_0x103651(0x7fd)]):_0x343c1b[_0x103651(0xd5f)]()});});}function _0x21146f(_0x3faefe){const _0x3ff597=_0x2ae5d4;_0x46a90a['errors']=[];const _0x13d32a=_0x492a31['confirm']()[_0x3ff597(0x1189)](_0x3ff597(0x1d64))[_0x3ff597(0x80f)](_0x3ff597(0xf1d))[_0x3ff597(0x4bd)](_0x3ff597(0x2306))['ok'](_0x3ff597(0x25de))[_0x3ff597(0x6c3)](_0x3ff597(0xcf0))['targetEvent'](_0x3faefe);_0x492a31[_0x3ff597(0x2615)](_0x13d32a)[_0x3ff597(0x146b)](function(){const _0x4c280b=_0x3ff597;_0x26cb75[_0x4c280b(0x212)][_0x4c280b(0x1fac)]({'id':_0x46a90a[_0x4c280b(0x212)]['id']})[_0x4c280b(0x2945)]['then'](function(){const _0x3829d1=_0x4c280b;_0x3f65c0()['remove'](_0x46a90a['variables'],{'id':_0x46a90a['variable']['id']}),_0x30a42d[_0x3829d1(0x1c75)]({'title':_0x3829d1(0xcb9),'msg':(_0x46a90a[_0x3829d1(0x212)][_0x3829d1(0x19eb)]||_0x3829d1(0x212))+_0x3829d1(0x23e3)}),_0x23b47b(_0x46a90a['variable']);})['catch'](function(_0x2de4ed){const _0x162e0d=_0x4c280b;if(_0x2de4ed[_0x162e0d(0x524)]&&_0x2de4ed[_0x162e0d(0x524)][_0x162e0d(0xcef)]&&_0x2de4ed[_0x162e0d(0x524)]['errors'][_0x162e0d(0x402)]){_0x46a90a[_0x162e0d(0xcef)]=_0x2de4ed[_0x162e0d(0x524)][_0x162e0d(0xcef)]||[{'message':_0x2de4ed[_0x162e0d(0xd5f)](),'type':_0x162e0d(0xe19)}];for(let _0x1c219a=0x0;_0x1c219a<_0x2de4ed[_0x162e0d(0x524)][_0x162e0d(0xcef)]['length'];_0x1c219a++){_0x30a42d[_0x162e0d(0x1980)]({'title':_0x2de4ed[_0x162e0d(0x524)][_0x162e0d(0xcef)][_0x1c219a][_0x162e0d(0x1142)],'msg':_0x2de4ed[_0x162e0d(0x524)][_0x162e0d(0xcef)][_0x1c219a]['message']});}}else _0x30a42d[_0x162e0d(0x1980)]({'title':_0x2de4ed['status']?_0x162e0d(0x262a)+_0x2de4ed[_0x162e0d(0x107b)]+'\x20-\x20'+_0x2de4ed[_0x162e0d(0x167f)]:'api.variable.delete','msg':_0x2de4ed['data']?JSON[_0x162e0d(0x10bb)](_0x2de4ed['data'][_0x162e0d(0x7fd)]):_0x2de4ed['message']||_0x2de4ed[_0x162e0d(0xd5f)]()});});},function(){});}function _0x177d19(_0x346abb){return _0x346abb===null?undefined:new Date(_0x346abb);}function _0x23b47b(_0x3b29b0){_0x492a31['hide'](_0x3b29b0);}}const _0x1d6e77=_0x8b7b74;;const _0x2c833f=_0x4acfac['p']+'src/js/modules/main/apps/tools/views/variables/create/dialog.html/dialog.html';;_0x230127['$inject']=[_0x313a4d(0x910),_0x313a4d(0x1aa9),'$state','$mdSidenav',_0x313a4d(0x10e8),'$document','$timeout',_0x313a4d(0x214b),_0x313a4d(0x85b),'userProfile',_0x313a4d(0x1366),_0x313a4d(0x247f),_0x313a4d(0x216c),_0x313a4d(0x1fe4),_0x313a4d(0xa87),'license',_0x313a4d(0x15b9)];function _0x230127(_0x37d831,_0x12e90c,_0x1aae08,_0x28002c,_0x51e808,_0x5438de,_0x9dc7a,_0x167b3c,_0x3137a8,_0x3203b8,_0x4a759b,_0xec9b3a,_0x58abeb,_0x5828b0,_0x2867c7,_0x33cef4,_0x29c2f7){const _0x30c3da=_0x313a4d,_0x126785=this;_0x126785[_0x30c3da(0x2690)]=_0x33cef4,_0x126785[_0x30c3da(0x15b9)]=_0x29c2f7,_0x126785[_0x30c3da(0x2321)]=_0x2867c7[_0x30c3da(0xb12)](),_0x126785[_0x30c3da(0x85b)]=_0x3137a8||{'count':0x0,'rows':[]},_0x126785[_0x30c3da(0x26b6)]=_0x3203b8,_0x126785[_0x30c3da(0x1366)]=_0x4a759b&&_0x4a759b[_0x30c3da(0x51c)]==0x1?_0x4a759b['rows'][0x0]:null,_0x126785[_0x30c3da(0x2514)]=_0x2867c7[_0x30c3da(0xe60)](_0x126785['userProfileSection']?_0x126785[_0x30c3da(0x1366)][_0x30c3da(0x2514)]:null),_0x126785['table']=_0x30c3da(0x85b),_0x126785[_0x30c3da(0x216a)]='',_0x126785[_0x30c3da(0x214f)]=null,_0x126785[_0x30c3da(0x1e4f)]=[],_0x126785[_0x30c3da(0x1a56)]={'fields':_0x30c3da(0x608),'sort':'-updatedAt','limit':0xa,'page':0x1},_0x126785[_0x30c3da(0x2ed)]=_0x395b1a,_0x126785[_0x30c3da(0xf0a)]=_0x2919c1,_0x126785[_0x30c3da(0x1c75)]=_0x9c9fa2,_0x126785['getVariables']=_0x24e170,_0x126785['createOrEditVariable']=_0x41e533,_0x126785[_0x30c3da(0x26d2)]=_0x5cf363,_0x126785[_0x30c3da(0x1466)]=_0x1f8531,_0x126785['deleteSelectedVariables']=_0x8bb3b9,_0x126785[_0x30c3da(0x1d6e)]=_0x32a7bd,_0x126785[_0x30c3da(0x2438)]=_0x2ea98a;function _0x395b1a(_0x10aaf7,_0x37b82d){const _0x40cb7b=_0x30c3da;_0x51e808[_0x40cb7b(0x2615)]({'controller':_0x40cb7b(0x1a4a),'controllerAs':'vm','templateUrl':_0x2c833f,'parent':angular[_0x40cb7b(0x1853)](_0x5438de[_0x40cb7b(0x2586)]),'targetEvent':_0x37b82d,'clickOutsideToClose':!![],'locals':{'variable':_0x10aaf7,'variables':_0x126785['variables']['rows'],'license':_0x126785[_0x40cb7b(0x2690)],'setting':null,'crudPermissions':_0x126785['crudPermissions']}});}function _0x2919c1(_0x560c77,_0x47147f){const _0x10d08e=_0x30c3da,_0x23b769=_0x51e808[_0x10d08e(0x1e8a)]()[_0x10d08e(0x1189)](_0x10d08e(0xdb2)+_0x3f65c0()[_0x10d08e(0x20d1)](_0x10d08e(0x212))+'?')['htmlContent'](_0x10d08e(0x16d3)+(_0x560c77[_0x10d08e(0x19eb)]||'variable')+_0x10d08e(0x252f)+_0x10d08e(0xe01))[_0x10d08e(0x4bd)](_0x10d08e(0x246a))[_0x10d08e(0x1f27)](_0x47147f)['ok']('OK')['cancel'](_0x10d08e(0x39a));_0x51e808[_0x10d08e(0x2615)](_0x23b769)[_0x10d08e(0x146b)](function(){_0x5cf363(_0x560c77);},function(){const _0x1aed58=_0x10d08e;console[_0x1aed58(0x1a74)](_0x1aed58(0x39a));});}let _0x248d37=!![],_0x5d5c9f=0x1;_0x37d831['$watch'](_0x30c3da(0x2669),function(_0x286e34,_0x151324){const _0x4dd42f=_0x30c3da;_0x248d37?_0x9dc7a(function(){_0x248d37=![];}):(!_0x151324&&(_0x5d5c9f=_0x126785['query'][_0x4dd42f(0x844)]),_0x286e34!==_0x151324&&(_0x126785['query'][_0x4dd42f(0x844)]=0x1),!_0x286e34&&(_0x126785[_0x4dd42f(0x1a56)][_0x4dd42f(0x844)]=_0x5d5c9f),_0x126785[_0x4dd42f(0x1840)]());});function _0x9c9fa2(_0x448848){_0x126785['variables']=_0x448848||{'count':0x0,'rows':[]};}function _0x24e170(){const _0x1b1cb8=_0x30c3da;_0x126785[_0x1b1cb8(0x1a56)][_0x1b1cb8(0x145d)]=(_0x126785[_0x1b1cb8(0x1a56)][_0x1b1cb8(0x844)]-0x1)*_0x126785[_0x1b1cb8(0x1a56)][_0x1b1cb8(0x221e)],_0x2867c7[_0x1b1cb8(0x23e0)](_0x1b1cb8(0x174b))?_0x126785[_0x1b1cb8(0xb9c)]=_0xec9b3a[_0x1b1cb8(0x212)][_0x1b1cb8(0x16b4)](_0x126785[_0x1b1cb8(0x1a56)],_0x9c9fa2)[_0x1b1cb8(0x2945)]:(_0x126785[_0x1b1cb8(0x1a56)]['id']=_0x126785['userProfile']['id'],_0x126785[_0x1b1cb8(0x1a56)][_0x1b1cb8(0x2146)]=_0x1b1cb8(0x18ce),_0x126785[_0x1b1cb8(0xb9c)]=_0xec9b3a[_0x1b1cb8(0x26b6)]['getResources'](_0x126785['query'],_0x9c9fa2)['$promise']);}function _0x41e533(_0x512e5f,_0x4196c0){const _0x52dee6=_0x30c3da;_0x51e808[_0x52dee6(0x2615)]({'controller':_0x52dee6(0x1a4a),'controllerAs':'vm','templateUrl':_0x2c833f,'parent':angular[_0x52dee6(0x1853)](_0x5438de[_0x52dee6(0x2586)]),'targetEvent':_0x512e5f,'clickOutsideToClose':!![],'locals':{'variable':_0x4196c0,'variables':_0x126785[_0x52dee6(0x85b)][_0x52dee6(0x19c7)],'license':_0x126785[_0x52dee6(0x2690)],'setting':_0x126785['setting'],'crudPermissions':_0x126785[_0x52dee6(0x2514)]}});}function _0x5cf363(_0x520028){const _0x15ef10=_0x30c3da;_0xec9b3a[_0x15ef10(0x212)]['delete']({'id':_0x520028['id']})['$promise'][_0x15ef10(0x146b)](function(){const _0x177141=_0x15ef10;_0x3f65c0()[_0x177141(0x2640)](_0x126785['variables'][_0x177141(0x19c7)],{'id':_0x520028['id']}),_0x126785['variables'][_0x177141(0x51c)]-=0x1,!_0x126785['variables'][_0x177141(0x19c7)][_0x177141(0x402)]&&_0x126785[_0x177141(0x1840)](),_0x5828b0[_0x177141(0x1c75)]({'title':_0x3f65c0()[_0x177141(0x20d1)](_0x177141(0x182))+_0x177141(0x201c),'msg':_0x520028[_0x177141(0x19eb)]?_0x520028[_0x177141(0x19eb)]+_0x177141(0x23e3):''});})['catch'](function(_0x46ac28){const _0x4f07c7=_0x15ef10;if(_0x46ac28[_0x4f07c7(0x524)]&&_0x46ac28['data'][_0x4f07c7(0xcef)]&&_0x46ac28[_0x4f07c7(0x524)][_0x4f07c7(0xcef)][_0x4f07c7(0x402)]){_0x126785[_0x4f07c7(0xcef)]=_0x46ac28['data'][_0x4f07c7(0xcef)]||[{'message':_0x46ac28[_0x4f07c7(0xd5f)](),'type':'SYSTEM:DELETEvariable'}];for(let _0x4236ee=0x0;_0x4236ee<_0x46ac28[_0x4f07c7(0x524)][_0x4f07c7(0xcef)][_0x4f07c7(0x402)];_0x4236ee++){_0x5828b0[_0x4f07c7(0x1980)]({'title':_0x46ac28[_0x4f07c7(0x524)][_0x4f07c7(0xcef)][_0x4236ee][_0x4f07c7(0x1142)],'msg':_0x46ac28[_0x4f07c7(0x524)][_0x4f07c7(0xcef)][_0x4236ee][_0x4f07c7(0x7fd)]});}}else _0x5828b0[_0x4f07c7(0x1980)]({'title':_0x46ac28[_0x4f07c7(0x107b)]?_0x4f07c7(0x262a)+_0x46ac28['status']+'\x20-\x20'+_0x46ac28[_0x4f07c7(0x167f)]:_0x4f07c7(0x1249),'msg':_0x46ac28[_0x4f07c7(0x524)]?JSON[_0x4f07c7(0x10bb)](_0x46ac28[_0x4f07c7(0x524)][_0x4f07c7(0x7fd)]):_0x46ac28[_0x4f07c7(0x7fd)]||_0x46ac28['toString']()});});}function _0x1f8531(){const _0x3ccfbc=_0x30c3da,_0x49966e=angular[_0x3ccfbc(0x235a)](_0x126785[_0x3ccfbc(0x1e4f)]);return _0x126785[_0x3ccfbc(0x1e4f)]=[],_0x49966e;}function _0x8bb3b9(_0x25601b){const _0xd203cf=_0x30c3da,_0x1fb9e1=_0x51e808[_0xd203cf(0x1e8a)]()[_0xd203cf(0x1189)](_0xd203cf(0xe4d))['htmlContent'](_0xd203cf(0x16d3)+_0x126785['selectedVariables'][_0xd203cf(0x402)]+_0xd203cf(0x2452)+_0xd203cf(0xe01))[_0xd203cf(0x4bd)](_0xd203cf(0x10a5))[_0xd203cf(0x1f27)](_0x25601b)['ok']('OK')[_0xd203cf(0x6c3)]('CANCEL');_0x51e808[_0xd203cf(0x2615)](_0x1fb9e1)[_0xd203cf(0x146b)](function(){const _0x11a7cc=_0xd203cf;_0x126785['selectedVariables'][_0x11a7cc(0x1df5)](function(_0x95a06a){_0x5cf363(_0x95a06a);}),_0x126785[_0x11a7cc(0x1e4f)]=[];});}function _0x32a7bd(){const _0x592982=_0x30c3da;_0x126785[_0x592982(0x1e4f)]=[];}function _0x2ea98a(){const _0x2358a2=_0x30c3da;_0x126785[_0x2358a2(0x1e4f)]=_0x126785['variables'][_0x2358a2(0x19c7)];}}const _0x7c9e26=_0x230127;;_0x1c967d[_0x313a4d(0x11c2)]=[_0x313a4d(0x921),_0x313a4d(0x695)];function _0x1c967d(_0x2d0e62,_0x25e6d7){const _0xabdd61=_0x313a4d;_0x2d0e62[_0xabdd61(0x13d6)](_0xabdd61(0xe84),{'abstract':!![],'url':_0xabdd61(0x18d6)})[_0xabdd61(0x13d6)](_0xabdd61(0x1f7c),{'url':_0xabdd61(0x506),'views':{'content@app':{'templateUrl':_0x4e3d52,'controller':_0xabdd61(0x164d)}},'resolve':{'cannedAnswers':[_0xabdd61(0x362),_0xabdd61(0xa87),function(_0x329311,_0x5ba33d){const _0x3962b1=_0xabdd61;return _0x5ba33d[_0x3962b1(0x23e0)](_0x3962b1(0x174b))?_0x329311['resolve'](_0x3962b1(0x2d6),{'fields':_0x3962b1(0x241e),'sort':_0x3962b1(0x12f2),'MailAccountId':_0x3962b1(0x203c),'FaxAccountId':_0x3962b1(0x203c),'SmsAccountId':_0x3962b1(0x203c),'OpenchannelAccountId':_0x3962b1(0x203c),'ChatWebsiteId':'null','limit':0xa,'offset':0x0}):_0x329311[_0x3962b1(0x2922)](_0x3962b1(0x938),{'id':_0x5ba33d[_0x3962b1(0xb12)]()[_0x3962b1(0x209a)],'section':_0x3962b1(0x16c4),'fields':_0x3962b1(0x241e),'sort':_0x3962b1(0x12f2),'MailAccountId':_0x3962b1(0x203c),'FaxAccountId':'null','SmsAccountId':_0x3962b1(0x203c),'OpenchannelAccountId':_0x3962b1(0x203c),'ChatWebsiteId':_0x3962b1(0x203c),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver','Auth',function(_0x560d7b,_0xab187b){const _0x516324=_0xabdd61;return _0xab187b[_0x516324(0x23e0)](_0x516324(0x174b))?null:_0x560d7b[_0x516324(0x2922)](_0x516324(0x119a),{'fields':_0x516324(0x227),'id':_0xab187b['getCurrentUser']()[_0x516324(0x209a)]});}],'userProfileSection':[_0xabdd61(0x362),'Auth',function(_0x3c6a56,_0x58cb62){const _0x4a1551=_0xabdd61;return _0x58cb62['hasRole'](_0x4a1551(0x174b))?null:_0x3c6a56[_0x4a1551(0x2922)](_0x4a1551(0x27be),{'fields':_0x4a1551(0x1e64),'userProfileId':_0x58cb62['getCurrentUser']()[_0x4a1551(0x209a)],'sectionId':0x3e9});}]},'authenticate':!![],'permissionId':0x3e9,'bodyClass':_0xabdd61(0x11fe)})[_0xabdd61(0x13d6)](_0xabdd61(0x1cc8),{'url':'/customDashboards','views':{'content@app':{'templateUrl':_0x2a832b,'controller':'CustomDashboardsController\x20as\x20vm'}},'resolve':{'customDashboards':[_0xabdd61(0x362),_0xabdd61(0xa87),function(_0x257c34,_0x2cdbb0){const _0x4b976b=_0xabdd61;return _0x2cdbb0['hasRole'](_0x4b976b(0x174b))?_0x257c34['resolve'](_0x4b976b(0x6d1),{'fields':_0x4b976b(0x608),'sort':_0x4b976b(0x12f2),'limit':0xa,'offset':0x0}):_0x257c34[_0x4b976b(0x2922)]('userProfile@getResources',{'id':_0x2cdbb0[_0x4b976b(0xb12)]()['userProfileId'],'section':'CustomDashboards','fields':_0x4b976b(0x608),'sort':_0x4b976b(0x12f2),'limit':0xa,'offset':0x0});}],'userProfile':[_0xabdd61(0x362),_0xabdd61(0xa87),function(_0x29ddc0,_0x23ac91){const _0xd419de=_0xabdd61;return _0x23ac91[_0xd419de(0x23e0)](_0xd419de(0x174b))?null:_0x29ddc0[_0xd419de(0x2922)](_0xd419de(0x119a),{'fields':_0xd419de(0x227),'id':_0x23ac91[_0xd419de(0xb12)]()[_0xd419de(0x209a)]});}],'userProfileSection':[_0xabdd61(0x362),'Auth',function(_0xb16d28,_0x93b5b4){const _0x552363=_0xabdd61;return _0x93b5b4['hasRole']('admin')?null:_0xb16d28[_0x552363(0x2922)](_0x552363(0x27be),{'fields':_0x552363(0x1e64),'userProfileId':_0x93b5b4[_0x552363(0xb12)]()[_0x552363(0x209a)],'sectionId':0x3eb});}]},'authenticate':!![],'permissionId':0x3eb,'bodyClass':_0xabdd61(0x11fe)})[_0xabdd61(0x13d6)](_0xabdd61(0x9d8),{'url':_0xabdd61(0x2028),'params':{'customDashboard':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x3c03ee,'controller':'CustomDashboardController\x20as\x20vm'}},'resolve':{'customDashboard':[_0xabdd61(0x362),'$stateParams',function(_0x43fe90,_0x2f73be){const _0x55ddea=_0xabdd61;return _0x43fe90[_0x55ddea(0x2922)]('dashboard@get',{'fields':_0x55ddea(0x608),'id':_0x2f73be['id']});}],'userProfileSection':[_0xabdd61(0x362),'Auth',function(_0x5ce079,_0x3560db){const _0x505481=_0xabdd61;return _0x5ce079[_0x505481(0x2922)]('userProfileSection@get',{'fields':_0x505481(0x1e64),'userProfileId':_0x3560db[_0x505481(0xb12)]()[_0x505481(0x209a)],'sectionId':0x3eb});}]},'authenticate':!![],'permissionId':0x3eb,'bodyClass':_0xabdd61(0x11fe)})[_0xabdd61(0x13d6)](_0xabdd61(0x2378),{'url':_0xabdd61(0x1067),'views':{'content@app':{'templateUrl':_0x3cfbe2,'controller':'IntervalsController\x20as\x20vm'}},'resolve':{'intervals':[_0xabdd61(0x362),_0xabdd61(0xa87),function(_0x40a5d8,_0x7d85e5){const _0x43b4de=_0xabdd61;return _0x7d85e5['hasRole'](_0x43b4de(0x174b))?_0x40a5d8[_0x43b4de(0x2922)](_0x43b4de(0x2270),{'fields':_0x43b4de(0x608),'sort':_0x43b4de(0x12f2),'IntervalId':'null','limit':0xa,'offset':0x0}):_0x40a5d8['resolve'](_0x43b4de(0x938),{'id':_0x7d85e5[_0x43b4de(0xb12)]()[_0x43b4de(0x209a)],'section':_0x43b4de(0x162f),'fields':_0x43b4de(0x608),'sort':'-updatedAt','IntervalId':_0x43b4de(0x203c),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0xabdd61(0xa87),function(_0x42defa,_0x49d3e0){const _0x4c7642=_0xabdd61;return _0x49d3e0[_0x4c7642(0x23e0)](_0x4c7642(0x174b))?null:_0x42defa[_0x4c7642(0x2922)]('userProfile@get',{'fields':_0x4c7642(0x227),'id':_0x49d3e0['getCurrentUser']()['userProfileId']});}],'userProfileSection':[_0xabdd61(0x362),_0xabdd61(0xa87),function(_0x52d7fc,_0x59f65c){const _0x20b0d0=_0xabdd61;return _0x59f65c[_0x20b0d0(0x23e0)](_0x20b0d0(0x174b))?null:_0x52d7fc[_0x20b0d0(0x2922)](_0x20b0d0(0x27be),{'fields':_0x20b0d0(0x1e64),'userProfileId':_0x59f65c[_0x20b0d0(0xb12)]()[_0x20b0d0(0x209a)],'sectionId':0x3ec});}]},'authenticate':!![],'permissionId':0x3ec,'bodyClass':'tools'})[_0xabdd61(0x13d6)](_0xabdd61(0xc51),{'url':'/:id?tab','params':{'interval':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x5109aa,'controller':_0xabdd61(0x748)}},'resolve':{'interval':[_0xabdd61(0x362),'$stateParams',function(_0x34b589,_0x2c8046){const _0x425851=_0xabdd61;return _0x34b589[_0x425851(0x2922)](_0x425851(0x2270),{'fields':_0x425851(0x608),'id':_0x2c8046['id']});}],'userProfileSection':[_0xabdd61(0x362),'Auth',function(_0x386afc,_0x5bd4d2){const _0x3c43e7=_0xabdd61;return _0x386afc[_0x3c43e7(0x2922)](_0x3c43e7(0x27be),{'fields':_0x3c43e7(0x1e64),'userProfileId':_0x5bd4d2['getCurrentUser']()[_0x3c43e7(0x209a)],'sectionId':0x3ec});}]},'authenticate':!![],'permissionId':0x3ec,'bodyClass':_0xabdd61(0x11fe)})[_0xabdd61(0x13d6)](_0xabdd61(0x179e),{'url':_0xabdd61(0x149a),'views':{'content@app':{'templateUrl':_0x4de650,'controller':_0xabdd61(0xb6d)}},'resolve':{'pauses':['apiResolver',_0xabdd61(0xa87),function(_0x27fc2d,_0x13d628){const _0x935736=_0xabdd61;return _0x13d628[_0x935736(0x23e0)](_0x935736(0x174b))?_0x27fc2d['resolve'](_0x935736(0x3f6),{'fields':_0x935736(0x608),'sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x27fc2d[_0x935736(0x2922)](_0x935736(0x938),{'id':_0x13d628['getCurrentUser']()[_0x935736(0x209a)],'section':_0x935736(0x197),'fields':_0x935736(0x608),'sort':_0x935736(0x12f2),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver','Auth',function(_0x5de80c,_0x53a55e){const _0x4b7512=_0xabdd61;return _0x53a55e[_0x4b7512(0x23e0)](_0x4b7512(0x174b))?null:_0x5de80c['resolve'](_0x4b7512(0x119a),{'fields':_0x4b7512(0x227),'id':_0x53a55e[_0x4b7512(0xb12)]()[_0x4b7512(0x209a)]});}],'userProfileSection':[_0xabdd61(0x362),_0xabdd61(0xa87),function(_0x2e9ff6,_0x3371e3){const _0x40260d=_0xabdd61;return _0x3371e3['hasRole'](_0x40260d(0x174b))?null:_0x2e9ff6[_0x40260d(0x2922)](_0x40260d(0x27be),{'fields':_0x40260d(0x1e64),'userProfileId':_0x3371e3[_0x40260d(0xb12)]()[_0x40260d(0x209a)],'sectionId':0x3ed});}]},'authenticate':!![],'permissionId':0x3ed,'bodyClass':_0xabdd61(0x11fe)})[_0xabdd61(0x13d6)](_0xabdd61(0x1578),{'url':'/schedules','views':{'content@app':{'templateUrl':_0x5ab98f,'controller':_0xabdd61(0x2061)}},'resolve':{'schedules':['apiResolver',_0xabdd61(0xa87),function(_0x24e589,_0x46a7a7){const _0x264dce=_0xabdd61;return _0x46a7a7['hasRole'](_0x264dce(0x174b))?_0x24e589[_0x264dce(0x2922)](_0x264dce(0x1b0),{'fields':_0x264dce(0x1a09),'sort':_0x264dce(0x12f2),'limit':0xa,'offset':0x0}):_0x24e589[_0x264dce(0x2922)]('userProfile@getResources',{'id':_0x46a7a7[_0x264dce(0xb12)]()[_0x264dce(0x209a)],'section':'Scheduler','fields':'createdAt,updatedAt,id,name,CustomReportId,DefaultReportId,output,active,startAt,endAt,cron,subtractNumber,subtractUnit,sendMail,MailAccountId,email,cc,bcc,sendIfEmpty,description','sort':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':[_0xabdd61(0x362),_0xabdd61(0xa87),function(_0xf6907a,_0x540536){const _0x32f9b4=_0xabdd61;return _0x540536['hasRole'](_0x32f9b4(0x174b))?null:_0xf6907a[_0x32f9b4(0x2922)](_0x32f9b4(0x119a),{'fields':'id,name,crudPermissions','id':_0x540536[_0x32f9b4(0xb12)]()[_0x32f9b4(0x209a)]});}],'userProfileSection':[_0xabdd61(0x362),_0xabdd61(0xa87),function(_0x440a8c,_0x5382e6){const _0x51e6b5=_0xabdd61;return _0x5382e6[_0x51e6b5(0x23e0)](_0x51e6b5(0x174b))?null:_0x440a8c['resolve'](_0x51e6b5(0x27be),{'fields':_0x51e6b5(0x1e64),'userProfileId':_0x5382e6[_0x51e6b5(0xb12)]()['userProfileId'],'sectionId':0x3ee});}]},'authenticate':!![],'permissionId':0x3ee,'bodyClass':_0xabdd61(0x11fe)})[_0xabdd61(0x13d6)](_0xabdd61(0x90a),{'url':_0xabdd61(0x102a),'views':{'content@app':{'templateUrl':_0x6b1dde,'controller':'SoundsController\x20as\x20vm'}},'resolve':{'sounds':[_0xabdd61(0x362),_0xabdd61(0xa87),function(_0x23db3c,_0x153d84){const _0x3e1de5=_0xabdd61;return _0x153d84[_0x3e1de5(0x23e0)]('admin')?_0x23db3c[_0x3e1de5(0x2922)](_0x3e1de5(0x537),{'fields':_0x3e1de5(0x21d),'sort':_0x3e1de5(0x12f2),'limit':0xa,'offset':0x0}):_0x23db3c[_0x3e1de5(0x2922)](_0x3e1de5(0x938),{'id':_0x153d84[_0x3e1de5(0xb12)]()[_0x3e1de5(0x209a)],'section':'Sounds','fields':_0x3e1de5(0x21d),'sort':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':[_0xabdd61(0x362),_0xabdd61(0xa87),function(_0x454cc4,_0x5d0e46){const _0x1f6a82=_0xabdd61;return _0x5d0e46[_0x1f6a82(0x23e0)]('admin')?null:_0x454cc4['resolve'](_0x1f6a82(0x119a),{'fields':_0x1f6a82(0x227),'id':_0x5d0e46[_0x1f6a82(0xb12)]()['userProfileId']});}],'userProfileSection':['apiResolver',_0xabdd61(0xa87),function(_0x29dfe7,_0x3579c4){const _0x370d4a=_0xabdd61;return _0x3579c4['hasRole']('admin')?null:_0x29dfe7[_0x370d4a(0x2922)](_0x370d4a(0x27be),{'fields':_0x370d4a(0x1e64),'userProfileId':_0x3579c4[_0x370d4a(0xb12)]()[_0x370d4a(0x209a)],'sectionId':0x3ef});}]},'authenticate':!![],'permissionId':0x3ef,'bodyClass':_0xabdd61(0x11fe)})[_0xabdd61(0x13d6)]('app.tools.tags',{'url':_0xabdd61(0x580),'views':{'content@app':{'templateUrl':_0x4af6e3,'controller':_0xabdd61(0xcf2)}},'resolve':{'tags':[_0xabdd61(0x362),_0xabdd61(0xa87),function(_0x1d57a9,_0x1ec1de){const _0x498e6a=_0xabdd61;return _0x1ec1de[_0x498e6a(0x23e0)]('admin')?_0x1d57a9[_0x498e6a(0x2922)](_0x498e6a(0x2552),{'fields':_0x498e6a(0x1099),'sort':_0x498e6a(0x12f2),'limit':0xa,'offset':0x0}):_0x1d57a9['resolve']('userProfile@getResources',{'id':_0x1ec1de[_0x498e6a(0xb12)]()['userProfileId'],'section':_0x498e6a(0x2331),'fields':'createdAt,updatedAt,id,name,description,color','sort':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':[_0xabdd61(0x362),_0xabdd61(0xa87),function(_0x2a1dba,_0x3b745e){const _0x38e3dd=_0xabdd61;return _0x3b745e[_0x38e3dd(0x23e0)](_0x38e3dd(0x174b))?null:_0x2a1dba[_0x38e3dd(0x2922)]('userProfile@get',{'fields':_0x38e3dd(0x227),'id':_0x3b745e[_0x38e3dd(0xb12)]()[_0x38e3dd(0x209a)]});}],'userProfileSection':[_0xabdd61(0x362),_0xabdd61(0xa87),function(_0x31b416,_0x1ff9f2){const _0x1d297d=_0xabdd61;return _0x1ff9f2[_0x1d297d(0x23e0)](_0x1d297d(0x174b))?null:_0x31b416[_0x1d297d(0x2922)](_0x1d297d(0x27be),{'fields':_0x1d297d(0x1e64),'userProfileId':_0x1ff9f2['getCurrentUser']()['userProfileId'],'sectionId':0x3f0});}]},'authenticate':!![],'permissionId':0x3f0,'bodyClass':_0xabdd61(0x11fe)})[_0xabdd61(0x13d6)]('app.tools.templates',{'url':_0xabdd61(0x2294),'views':{'content@app':{'templateUrl':_0xc44bdf,'controller':_0xabdd61(0x2874)}},'resolve':{'templates':[_0xabdd61(0x362),_0xabdd61(0xa87),function(_0x10a0f9,_0x517c0a){const _0x22b1cf=_0xabdd61;return _0x517c0a[_0x22b1cf(0x23e0)]('admin')?_0x10a0f9['resolve'](_0x22b1cf(0x16da),{'fields':'createdAt,updatedAt,id,name,html,description','sort':_0x22b1cf(0x12f2),'limit':0xa,'offset':0x0}):_0x10a0f9['resolve'](_0x22b1cf(0x938),{'id':_0x517c0a['getCurrentUser']()[_0x22b1cf(0x209a)],'section':'Templates','fields':_0x22b1cf(0x1378),'sort':_0x22b1cf(0x12f2),'limit':0xa,'offset':0x0});}],'userProfile':[_0xabdd61(0x362),_0xabdd61(0xa87),function(_0x212a27,_0x3670d3){const _0x390555=_0xabdd61;return _0x3670d3[_0x390555(0x23e0)]('admin')?null:_0x212a27[_0x390555(0x2922)](_0x390555(0x119a),{'fields':_0x390555(0x227),'id':_0x3670d3[_0x390555(0xb12)]()[_0x390555(0x209a)]});}],'userProfileSection':[_0xabdd61(0x362),_0xabdd61(0xa87),function(_0x3e4b9a,_0x3ed890){const _0x1ed8ea=_0xabdd61;return _0x3ed890['hasRole']('admin')?null:_0x3e4b9a[_0x1ed8ea(0x2922)](_0x1ed8ea(0x27be),{'fields':_0x1ed8ea(0x1e64),'userProfileId':_0x3ed890[_0x1ed8ea(0xb12)]()[_0x1ed8ea(0x209a)],'sectionId':0x3f1});}]},'authenticate':!![],'permissionId':0x3f1,'bodyClass':_0xabdd61(0x11fe)})[_0xabdd61(0x13d6)](_0xabdd61(0x20ab),{'url':'/trunks','views':{'content@app':{'templateUrl':_0x59596e,'controller':_0xabdd61(0x219a)}},'resolve':{'trunks':[_0xabdd61(0x362),_0xabdd61(0xa87),function(_0x4f6d54,_0x1081e3){const _0x51fec8=_0xabdd61;return _0x1081e3[_0x51fec8(0x23e0)](_0x51fec8(0x174b))?_0x4f6d54['resolve']('trunk@get',{'fields':_0x51fec8(0x16b0),'sort':_0x51fec8(0x12f2),'limit':0xa,'offset':0x0}):_0x4f6d54[_0x51fec8(0x2922)]('userProfile@getResources',{'id':_0x1081e3[_0x51fec8(0xb12)]()[_0x51fec8(0x209a)],'section':_0x51fec8(0x110f),'fields':_0x51fec8(0x16b0),'sort':_0x51fec8(0x12f2),'limit':0xa,'offset':0x0});}],'userProfile':[_0xabdd61(0x362),_0xabdd61(0xa87),function(_0x1dfe1a,_0x794eee){const _0x4a1775=_0xabdd61;return _0x794eee[_0x4a1775(0x23e0)](_0x4a1775(0x174b))?null:_0x1dfe1a[_0x4a1775(0x2922)]('userProfile@get',{'fields':_0x4a1775(0x227),'id':_0x794eee[_0x4a1775(0xb12)]()[_0x4a1775(0x209a)]});}],'userProfileSection':[_0xabdd61(0x362),'Auth',function(_0x2cabac,_0x297f71){const _0x530b25=_0xabdd61;return _0x297f71[_0x530b25(0x23e0)](_0x530b25(0x174b))?null:_0x2cabac[_0x530b25(0x2922)](_0x530b25(0x27be),{'fields':_0x530b25(0x1e64),'userProfileId':_0x297f71['getCurrentUser']()[_0x530b25(0x209a)],'sectionId':0x3f3});}]},'authenticate':!![],'permissionId':0x3f3,'bodyClass':'tools'})[_0xabdd61(0x13d6)]('app.tools.trunks.edit',{'url':_0xabdd61(0x2028),'params':{'trunk':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x3afaf5,'controller':'TrunkController\x20as\x20vm'}},'resolve':{'trunk':[_0xabdd61(0x362),_0xabdd61(0x28c8),function(_0x4b2a74,_0x41e910){const _0x3d7135=_0xabdd61;return _0x4b2a74[_0x3d7135(0x2922)]('trunk@get',{'fields':_0x3d7135(0x16b0),'id':_0x41e910['id']});}],'userProfileSection':[_0xabdd61(0x362),_0xabdd61(0xa87),function(_0x1e5a12,_0x51639a){const _0x429518=_0xabdd61;return _0x1e5a12[_0x429518(0x2922)](_0x429518(0x27be),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x51639a[_0x429518(0xb12)]()[_0x429518(0x209a)],'sectionId':0x3f3});}]},'authenticate':!![],'permissionId':0x3f3,'bodyClass':_0xabdd61(0x11fe)})[_0xabdd61(0x13d6)]('app.tools.variables',{'url':_0xabdd61(0x20d3),'views':{'content@app':{'templateUrl':_0x2e16b4,'controller':_0xabdd61(0x1445)}},'resolve':{'variables':[_0xabdd61(0x362),'Auth',function(_0x19dc19,_0x2e7fe0){const _0x3532ee=_0xabdd61;return _0x2e7fe0['hasRole'](_0x3532ee(0x174b))?_0x19dc19[_0x3532ee(0x2922)]('variable@get',{'fields':_0x3532ee(0x608),'sort':_0x3532ee(0x12f2),'limit':0xa,'offset':0x0}):_0x19dc19[_0x3532ee(0x2922)](_0x3532ee(0x938),{'id':_0x2e7fe0['getCurrentUser']()[_0x3532ee(0x209a)],'section':_0x3532ee(0x18ce),'fields':'createdAt,updatedAt,id,name,description','sort':_0x3532ee(0x12f2),'limit':0xa,'offset':0x0});}],'userProfile':[_0xabdd61(0x362),_0xabdd61(0xa87),function(_0x3a1c5f,_0x1c3938){const _0x3cc9f4=_0xabdd61;return _0x1c3938[_0x3cc9f4(0x23e0)](_0x3cc9f4(0x174b))?null:_0x3a1c5f['resolve'](_0x3cc9f4(0x119a),{'fields':_0x3cc9f4(0x227),'id':_0x1c3938[_0x3cc9f4(0xb12)]()[_0x3cc9f4(0x209a)]});}],'userProfileSection':['apiResolver',_0xabdd61(0xa87),function(_0x3539a7,_0x3ac623){const _0xd06786=_0xabdd61;return _0x3ac623[_0xd06786(0x23e0)]('admin')?null:_0x3539a7[_0xd06786(0x2922)](_0xd06786(0x27be),{'fields':_0xd06786(0x1e64),'userProfileId':_0x3ac623[_0xd06786(0xb12)]()[_0xd06786(0x209a)],'sectionId':0x3f4});}]},'authenticate':!![],'permissionId':0x3f4,'bodyClass':_0xabdd61(0x11fe)}),_0x25e6d7[_0xabdd61(0x15bf)]('app/main/apps/tools');}angular[_0x313a4d(0x2528)](_0x313a4d(0xe84),[_0x313a4d(0xdad),_0x313a4d(0x962),_0x313a4d(0x23c7),'flow',_0x313a4d(0x19e2),_0x313a4d(0x27c1),_0x313a4d(0x195b),'ngAria',_0x313a4d(0xc86),_0x313a4d(0x1f5f),_0x313a4d(0x28a8),_0x313a4d(0xfb2),_0x313a4d(0x1e57),_0x313a4d(0x581),_0x313a4d(0x1bd2),_0x313a4d(0x1792),_0x313a4d(0x1b65),_0x313a4d(0x1626),_0x313a4d(0x2713),_0x313a4d(0x11df),'app.tools.dispositions','app.tools.triggers'])[_0x313a4d(0x989)](_0x1c967d)[_0x313a4d(0x28f0)](_0x313a4d(0x2295),_0x7726c8)['controller']('CreateOrEditCannedAnswerDialogController',_0x509dff)[_0x313a4d(0x28f0)](_0x313a4d(0x5c6),_0xca20dd)[_0x313a4d(0x28f0)]('CustomDashboardsController',_0x31c16c)[_0x313a4d(0x28f0)](_0x313a4d(0x88b),_0xc6f0e9)[_0x313a4d(0x28f0)](_0x313a4d(0x134b),_0x19bcb7)[_0x313a4d(0x28f0)](_0x313a4d(0x75b),_0x1fafbd)[_0x313a4d(0x28f0)](_0x313a4d(0x470),_0x5474ae)[_0x313a4d(0x28f0)](_0x313a4d(0x1eff),_0x90faaf)[_0x313a4d(0x28f0)](_0x313a4d(0x238),_0x3db550)['controller'](_0x313a4d(0x47f),_0x1ff921)[_0x313a4d(0x28f0)](_0x313a4d(0xdd2),_0x45644c)[_0x313a4d(0x28f0)](_0x313a4d(0xb6f),_0x2d36df)[_0x313a4d(0x28f0)](_0x313a4d(0x24be),_0x467eb2)[_0x313a4d(0x28f0)](_0x313a4d(0x24c5),_0xe0acd5)[_0x313a4d(0x28f0)]('CreateOrEditScheduleDialogController',_0x4b0c96)[_0x313a4d(0x28f0)](_0x313a4d(0x398),_0x494803)[_0x313a4d(0x28f0)](_0x313a4d(0x2808),_0x564bc7)[_0x313a4d(0x28f0)]('SoundsController',_0x3de211)[_0x313a4d(0x28f0)](_0x313a4d(0x63d),_0x33741a)[_0x313a4d(0x28f0)](_0x313a4d(0x1c86),_0x54b692)[_0x313a4d(0x28f0)](_0x313a4d(0x1716),_0x452b4d)[_0x313a4d(0x28f0)](_0x313a4d(0x1ab1),_0x45270a)[_0x313a4d(0x28f0)](_0x313a4d(0x12f1),_0x23b193)['controller']('CreateOrEditTrunkDialogController',_0x5550bc)['controller'](_0x313a4d(0x1974),_0x378d44)[_0x313a4d(0x28f0)](_0x313a4d(0x1f0d),_0xedc4a7)[_0x313a4d(0x28f0)]('TrunksController',_0x4308cd)[_0x313a4d(0x28f0)]('CreateOrEditVariableDialogController',_0x1d6e77)[_0x313a4d(0x28f0)](_0x313a4d(0x102),_0x7c9e26);;const _0x3becc7=_0x4acfac['p']+_0x313a4d(0x235f);;const _0x190e89=_0x4acfac['p']+_0x313a4d(0xd06);;_0x27458a[_0x313a4d(0x11c2)]=['$mdDialog',_0x313a4d(0x1aa9),_0x313a4d(0x1862),'$q',_0x313a4d(0xa87),_0x313a4d(0x1fe4),_0x313a4d(0x1991),_0x313a4d(0x9e0),_0x313a4d(0x247f),_0x313a4d(0x1bd6),_0x313a4d(0x2514)];function _0x27458a(_0x1ac788,_0x2b79f2,_0x2359f0,_0x16c026,_0x143b7c,_0x5dce83,_0xa96eb3,_0x3dac02,_0x9fd87e,_0xb5f1d1,_0x57f0be){const _0x3218b8=_0x313a4d,_0x3eb139=this;_0x3eb139[_0x3218b8(0xcef)]=[],_0x3eb139[_0x3218b8(0x1189)]=_0x3218b8(0x1dd5),_0x3eb139[_0x3218b8(0x2514)]=_0x57f0be,_0x3eb139[_0x3218b8(0x9e0)]=angular[_0x3218b8(0x235a)](_0x3dac02),_0x3eb139[_0x3218b8(0x2691)]=!![],_0x3eb139[_0x3218b8(0x1991)]=_0xa96eb3,_0x3eb139['newProject']=![],_0x3eb139[_0x3218b8(0x1bd6)]=_0xb5f1d1;!_0x3eb139[_0x3218b8(0x9e0)]&&(_0x3eb139[_0x3218b8(0x9e0)]={'name':'','description':''},_0x3eb139['title']=_0x3218b8(0x423),_0x3eb139['newProject']=!![]);_0x3eb139[_0x3218b8(0x8ad)]=_0x1bc15e,_0x3eb139[_0x3218b8(0x1994)]=_0x29d13a,_0x3eb139[_0x3218b8(0x767)]=_0x4c78d4,_0x3eb139[_0x3218b8(0x13f3)]=_0x3da842;function _0x1bc15e(){const _0xf7e44a=_0x3218b8;_0x3eb139[_0xf7e44a(0xcef)]=[],_0x9fd87e[_0xf7e44a(0x9b1)]['save'](_0x3eb139['project'])[_0xf7e44a(0x2945)][_0xf7e44a(0x146b)](function(_0x241411){const _0x42dd72=_0xf7e44a;return _0x9fd87e[_0x42dd72(0xe7b)][_0x42dd72(0x156a)]({'id':_0x143b7c[_0x42dd72(0xb12)]()['id'],'ids':[_0x241411['id']]})[_0x42dd72(0x2945)],_0x241411;})['then'](function(_0x3e0459){const _0xa32c72=_0xf7e44a;_0x3eb139['projects']['unshift'](_0x3e0459),_0x5dce83[_0xa32c72(0x1c75)]({'title':_0xa32c72(0x1266),'msg':_0x3eb139[_0xa32c72(0x9e0)][_0xa32c72(0x19eb)]?_0x3eb139[_0xa32c72(0x9e0)][_0xa32c72(0x19eb)]+_0xa32c72(0x1386):''}),_0x3da842(_0x3e0459),_0x3eb139[_0xa32c72(0x1bd6)]&&(_0x3eb139[_0xa32c72(0x2691)]?_0x2b79f2[_0xa32c72(0x217a)](_0xa32c72(0x28c0)+_0x3e0459['id'],_0xa32c72(0x20f1)):_0x2359f0['go'](_0xa32c72(0x257),{'id':_0x3e0459['id']}));})[_0xf7e44a(0x129e)](function(_0x2772c3){const _0x55fc7f=_0xf7e44a;if(_0x2772c3[_0x55fc7f(0x524)]&&_0x2772c3['data']['errors']&&_0x2772c3[_0x55fc7f(0x524)][_0x55fc7f(0xcef)][_0x55fc7f(0x402)]){_0x3eb139[_0x55fc7f(0xcef)]=_0x2772c3[_0x55fc7f(0x524)][_0x55fc7f(0xcef)]||[{'message':_0x2772c3[_0x55fc7f(0xd5f)](),'type':_0x55fc7f(0x181c)}];for(let _0x579dd4=0x0;_0x579dd4<_0x2772c3[_0x55fc7f(0x524)][_0x55fc7f(0xcef)][_0x55fc7f(0x402)];_0x579dd4++){_0x5dce83[_0x55fc7f(0x1980)]({'title':_0x2772c3[_0x55fc7f(0x524)][_0x55fc7f(0xcef)][_0x579dd4][_0x55fc7f(0x1142)],'msg':_0x2772c3[_0x55fc7f(0x524)]['errors'][_0x579dd4][_0x55fc7f(0x7fd)]});}}else _0x5dce83[_0x55fc7f(0x1980)]({'title':_0x2772c3['status']?_0x55fc7f(0x262a)+_0x2772c3[_0x55fc7f(0x107b)]+_0x55fc7f(0x1315)+_0x2772c3[_0x55fc7f(0x167f)]:_0x55fc7f(0x181c),'msg':_0x2772c3[_0x55fc7f(0x524)]?JSON[_0x55fc7f(0x10bb)](_0x2772c3[_0x55fc7f(0x524)][_0x55fc7f(0x7fd)]):_0x2772c3['toString']()});});}function _0x29d13a(){const _0x36ddce=_0x3218b8;_0x3eb139[_0x36ddce(0xcef)]=[],_0x9fd87e[_0x36ddce(0x9b1)][_0x36ddce(0x18e1)]({'id':_0x3eb139[_0x36ddce(0x9e0)]['id']},_0x3eb139[_0x36ddce(0x9e0)])[_0x36ddce(0x2945)][_0x36ddce(0x146b)](function(_0x19be59){const _0x222b2d=_0x36ddce,_0x55aaaa=_0x3f65c0()['find'](_0x3eb139[_0x222b2d(0x1991)],{'id':_0x19be59['id']});_0x55aaaa&&_0x3f65c0()[_0x222b2d(0x168d)](_0x55aaaa,_0x19be59),_0x5dce83[_0x222b2d(0x1c75)]({'title':_0x222b2d(0x81e),'msg':_0x3eb139[_0x222b2d(0x9e0)][_0x222b2d(0x19eb)]?_0x3eb139[_0x222b2d(0x9e0)][_0x222b2d(0x19eb)]+'\x20has\x20been\x20saved!':''}),_0x3da842(_0x19be59);})['catch'](function(_0x1ad01d){const _0x1c9f8b=_0x36ddce;if(_0x1ad01d[_0x1c9f8b(0x524)]&&_0x1ad01d[_0x1c9f8b(0x524)][_0x1c9f8b(0xcef)]&&_0x1ad01d['data'][_0x1c9f8b(0xcef)][_0x1c9f8b(0x402)]){_0x3eb139['errors']=_0x1ad01d['data'][_0x1c9f8b(0xcef)]||[{'message':_0x1ad01d['toString'](),'type':'api.squareProject.update'}];for(let _0x247a54=0x0;_0x247a54<_0x1ad01d['data'][_0x1c9f8b(0xcef)][_0x1c9f8b(0x402)];_0x247a54++){_0x5dce83[_0x1c9f8b(0x1980)]({'title':_0x1ad01d['data'][_0x1c9f8b(0xcef)][_0x247a54][_0x1c9f8b(0x1142)],'msg':_0x1ad01d[_0x1c9f8b(0x524)][_0x1c9f8b(0xcef)][_0x247a54][_0x1c9f8b(0x7fd)]});}}else _0x5dce83[_0x1c9f8b(0x1980)]({'title':_0x1ad01d[_0x1c9f8b(0x107b)]?_0x1c9f8b(0x262a)+_0x1ad01d[_0x1c9f8b(0x107b)]+_0x1c9f8b(0x1315)+_0x1ad01d[_0x1c9f8b(0x167f)]:_0x1c9f8b(0x19fc),'msg':_0x1ad01d['data']?JSON[_0x1c9f8b(0x10bb)](_0x1ad01d[_0x1c9f8b(0x524)][_0x1c9f8b(0x7fd)]):_0x1ad01d[_0x1c9f8b(0xd5f)]()});});}function _0x4c78d4(){const _0x4c6bd8=_0x3218b8;_0x3eb139['errors']=[];const _0x204f0b=_0x1ac788[_0x4c6bd8(0x1e8a)]()[_0x4c6bd8(0x1189)](_0x4c6bd8(0x1d64))[_0x4c6bd8(0x80f)](_0x4c6bd8(0x2826))['ariaLabel']('Delete\x20Project')['ok'](_0x4c6bd8(0x25de))[_0x4c6bd8(0x6c3)](_0x4c6bd8(0xcf0))[_0x4c6bd8(0x1f27)](event);_0x1ac788[_0x4c6bd8(0x2615)](_0x204f0b)[_0x4c6bd8(0x146b)](function(){const _0x5b2499=_0x4c6bd8;_0x9fd87e[_0x5b2499(0x9b1)][_0x5b2499(0x1fac)]({'id':_0x3eb139[_0x5b2499(0x9e0)]['id']})[_0x5b2499(0x2945)][_0x5b2499(0x146b)](function(){const _0x3b09c8=_0x5b2499;return _0x9fd87e[_0x3b09c8(0x9b1)][_0x3b09c8(0x275b)]({'id':_0x3eb139[_0x3b09c8(0x9e0)]['id']})[_0x3b09c8(0x2945)];})['then'](function(_0x23c01f){const _0x2eb554=_0x5b2499,_0x53728c=[],_0x2f3eab=_0x23c01f['rows'];for(let _0x546f3a=0x0;_0x546f3a<_0x2f3eab[_0x2eb554(0x402)];_0x546f3a++){_0x53728c[_0x2eb554(0x1f47)](_0x9fd87e[_0x2eb554(0xe7b)][_0x2eb554(0x72a)]({'id':_0x143b7c['getCurrentUser']()['id'],'ids':[_0x3eb139[_0x2eb554(0x9e0)]['id']]})['$promise']);}return _0x16c026[_0x2eb554(0x1be2)](_0x53728c);})[_0x5b2499(0x146b)](function(){const _0x43e026=_0x5b2499;_0x3f65c0()['remove'](_0x3eb139['projects'],{'id':_0x3eb139['project']['id']}),_0x5dce83['success']({'title':_0x43e026(0x182f),'msg':_0x3eb139[_0x43e026(0x9e0)][_0x43e026(0x19eb)]?_0x3eb139[_0x43e026(0x9e0)][_0x43e026(0x19eb)]+'\x20has\x20been\x20deleted!':''}),_0x3da842(_0x3eb139[_0x43e026(0x9e0)]);})[_0x5b2499(0x129e)](function(_0x57e0a1){const _0x33fe8c=_0x5b2499;console[_0x33fe8c(0x1980)](_0x57e0a1),_0x3eb139['errors']=_0x57e0a1['data'][_0x33fe8c(0xcef)]||[{'message':_0x57e0a1['toString'](),'type':_0x33fe8c(0x1813)}];});},function(){});}function _0x3da842(_0xe382d9){const _0x396670=_0x3218b8;_0x1ac788[_0x396670(0x2458)](_0xe382d9);}}const _0x586c4f=_0x27458a;;_0x5d5898[_0x313a4d(0x11c2)]=['$mdDialog',_0x313a4d(0x247f),'toasty',_0x313a4d(0x2875),_0x313a4d(0x6c9),_0x313a4d(0xc37),_0x313a4d(0x33d),_0x313a4d(0xeec),_0x313a4d(0xa25),_0x313a4d(0x1995),'trunks',_0x313a4d(0x1b32),_0x313a4d(0xb02),_0x313a4d(0x85b),_0x313a4d(0x22c8),_0x313a4d(0x1991),_0x313a4d(0xfe9),_0x313a4d(0x278f),_0x313a4d(0x1593),_0x313a4d(0x2841),_0x313a4d(0x1324),_0x313a4d(0x1165),_0x313a4d(0x121d),_0x313a4d(0x17b5),'awsPollyRegion',_0x313a4d(0x1c34),_0x313a4d(0x23bb),_0x313a4d(0xae0),_0x313a4d(0x82d),_0x313a4d(0x7f7),_0x313a4d(0xa87),_0x313a4d(0x2514)];function _0x5d5898(_0xba038,_0xd0de25,_0x150ca7,_0x402077,_0x263965,_0x57078e,_0x3ae456,_0x5f38bb,_0x381525,_0x224d10,_0x15397f,_0x40d8f5,_0x4128d8,_0x2fa478,_0x252953,_0x40773e,_0x4cbab4,_0x395231,_0x35c3de,_0x4ae713,_0x3ab55b,_0x8f86e0,_0x2bbff3,_0x45a137,_0x5ebf28,_0x3f5304,_0x122398,_0x384aa2,_0x302710,_0x5bacff,_0x38c27f,_0x2cc159){const _0xa58fa6=_0x313a4d,_0x5c709a=this,_0x376bfb={'playback':[_0xa58fa6(0x845)],'answer':[_0xa58fa6(0xa9c)],'menu':['file_id',_0xa58fa6(0xc21),_0xa58fa6(0x2712),_0xa58fa6(0x20d8)],'getdigits':[_0xa58fa6(0x845),_0xa58fa6(0x1fe2),'mindigit',_0xa58fa6(0x15c4),_0xa58fa6(0x20d8)],'getsecretdigits':[_0xa58fa6(0x845),_0xa58fa6(0x1fe2),_0xa58fa6(0x2400),_0xa58fa6(0x15c4),'hiddendigitsnum',_0xa58fa6(0x20d8)],'vswitch':['variable_id'],'database':[_0xa58fa6(0x1ad2),_0xa58fa6(0x1a56)],'ext_dial':[_0xa58fa6(0xc90),_0xa58fa6(0x1d55),_0xa58fa6(0xa9c)],'set':[_0xa58fa6(0x1fe2)],'math':['variable_id'],'gotoc':[_0xa58fa6(0x1ac1),_0xa58fa6(0x1bc6),_0xa58fa6(0xa6a)],'system':[_0xa58fa6(0x23e9)],'agi':[_0xa58fa6(0x23e9)],'gotoif':[_0xa58fa6(0x115f)],'saydigits':['digits'],'saynumber':['number'],'sayphonetic':[_0xa58fa6(0xa8d)],'record':[_0xa58fa6(0x252e),_0xa58fa6(0xa9c)],'goal':[_0xa58fa6(0x1346)],'dial':[_0xa58fa6(0x1c85),_0xa58fa6(0xa9c)],'queue':['queue_id',_0xa58fa6(0xa9c)],'callback':[_0xa58fa6(0x1a36),_0xa58fa6(0x19eb),'phone','delay'],'gotoiftime':[_0xa58fa6(0x12f6)],'voicemail':[_0xa58fa6(0x1cc5)],'subproject':[_0xa58fa6(0x2675)],'sendSMS':['sms_account_id','to',_0xa58fa6(0xd80)],'sendMail':[_0xa58fa6(0x1dc3),'to'],'sendFax':['account_id','to',_0xa58fa6(0x1a1c)],'google_cloud_tts':[_0xa58fa6(0x25b9),_0xa58fa6(0x106f),'text'],'tts':['text'],'ispeechtts':['text',_0xa58fa6(0x2293),'speed'],'ispeechasr':[_0xa58fa6(0x2293),_0xa58fa6(0xa9c)],'custom_app':[_0xa58fa6(0xea)],'googleasr':[_0xa58fa6(0x2293),_0xa58fa6(0xa9c)],'awspolly':[_0xa58fa6(0x231f),_0xa58fa6(0x27b1),_0xa58fa6(0xa8d),'aws_text_type'],'lumenvoxtts':[_0xa58fa6(0xa8d)],'sestektts':[_0xa58fa6(0xa8d)],'lumenvoxasr':[_0xa58fa6(0x124)],'sestekasr':[_0xa58fa6(0x124)],'tildeasr':['appid',_0xa58fa6(0xfa7),_0xa58fa6(0x1e73)],'login':['findBy'],'pause':[_0xa58fa6(0x1ceb),_0xa58fa6(0x1ab7)],'unpause':['findBy'],'logout':[_0xa58fa6(0x1ceb)],'dialogflow':[_0xa58fa6(0x2293),_0xa58fa6(0xa8d),'dialogflow_language'],'awslex':[_0xa58fa6(0x231f),'aws_secret_access_key',_0xa58fa6(0xf8b),_0xa58fa6(0x1eed),_0xa58fa6(0xa8d)],'sesteknda':[_0xa58fa6(0xa8d),'ndauth_url',_0xa58fa6(0x14b7),_0xa58fa6(0xf37),_0xa58fa6(0x2499)],'restapi':[_0xa58fa6(0x20cc),_0xa58fa6(0x17f0)],'mrcpsynth':[_0xa58fa6(0xa8d)],'mrcprecog':[_0xa58fa6(0x124)],'dialogflowV2':[_0xa58fa6(0x2db),_0xa58fa6(0x190),_0xa58fa6(0x24ae),_0xa58fa6(0x191e),'text']},_0x5bd16a={'queue':[_0xa58fa6(0x845)],'database':[_0xa58fa6(0x1fe2)],'pause':[_0xa58fa6(0x1ab7)]},_0x465a53={'sendMail':['to','cc',_0xa58fa6(0x26f3)],'voicemail':['mailbox']};_0x5c709a[_0xa58fa6(0x24bf)]=_0x8f86e0[_0xa58fa6(0x8bf)],_0x5c709a[_0xa58fa6(0x130d)]=_0x3f65c0()[_0xa58fa6(0x205)](_0x8f86e0[_0xa58fa6(0x130d)],function(_0x3e129b){const _0x20dafc=_0xa58fa6;return{'name':_0x3e129b[_0x20dafc(0x19eb)],'value':_0x3e129b[_0x20dafc(0x175d)],'defaultValue':_0x5bd16a[_0x5c709a[_0x20dafc(0x24bf)]]&&_0x3f65c0()[_0x20dafc(0xa4e)](_0x5bd16a[_0x5c709a[_0x20dafc(0x24bf)]],_0x3e129b['name']),'required':_0x376bfb[_0x5c709a[_0x20dafc(0x24bf)]]&&_0x3f65c0()[_0x20dafc(0xa4e)](_0x376bfb[_0x5c709a[_0x20dafc(0x24bf)]],_0x3e129b[_0x20dafc(0x19eb)]),'help':_0x465a53[_0x5c709a[_0x20dafc(0x24bf)]]&&_0x3f65c0()[_0x20dafc(0xa4e)](_0x465a53[_0x5c709a[_0x20dafc(0x24bf)]],_0x3e129b[_0x20dafc(0x19eb)])};}),_0x5c709a[_0xa58fa6(0x81b)]={'authMethod':[{'value':_0xa58fa6(0x258),'option':_0xa58fa6(0x1257)},{'value':'hmac','option':_0xa58fa6(0xf31)}],'answer':[{'value':_0xa58fa6(0x18e3),'option':'Yes'},{'value':'no','option':'No'}],'ndagenerate_audio':[{'value':0x1,'option':_0xa58fa6(0x1b97)},{'value':0x0,'option':'No'}],'ndaactivity_type':[{'value':'message','option':_0xa58fa6(0xe2)},{'value':_0xa58fa6(0x10b0),'option':'Conversation\x20Update'},{'value':_0xa58fa6(0x338),'option':_0xa58fa6(0x4e5)},{'value':'endOfConversation','option':_0xa58fa6(0x167a)}],'hiddendigitspos':[{'value':_0xa58fa6(0xb68),'option':_0xa58fa6(0x7e6)},{'value':_0xa58fa6(0x22f2),'option':_0xa58fa6(0x2245)}],'recordingFormat':[{'value':_0xa58fa6(0x52d),'option':_0xa58fa6(0x2782)},{'value':_0xa58fa6(0xdf0),'option':_0xa58fa6(0xa9e)}],'intkey':[{'value':'#','option':'#'},{'value':'*','option':'*'}],'beep':[{'value':_0xa58fa6(0xfe7),'option':_0xa58fa6(0x1b97)},{'value':_0xa58fa6(0x23f7),'option':'No'}],'model':_0x402077,'ispeech_asr_language':_0x263965,'ispeech_tts_language':_0x3ae456,'languageCode':_0x5f38bb,'ssmlGender':[{'value':_0xa58fa6(0x3f3),'option':_0xa58fa6(0x18df)},{'value':_0xa58fa6(0x274e),'option':_0xa58fa6(0x5b5)}],'google_tts_language':_0x381525,'google_asr_language':_0x57078e,'google_cloud_tts_text_type':[{'value':'text','option':_0xa58fa6(0x23d7)},{'value':_0xa58fa6(0x15d2),'option':_0xa58fa6(0x1b23)}],'aws_polly_region':_0x5ebf28,'aws_polly_voice':_0x45a137,'aws_text_type':[{'value':'text','option':'Text'},{'value':_0xa58fa6(0x15d2),'option':_0xa58fa6(0x1b23)}],'callback_priority':[{'option':_0xa58fa6(0xa73),'value':0x4},{'option':_0xa58fa6(0x25c5),'value':0x3},{'option':_0xa58fa6(0x6c4),'value':0x2},{'option':'Low','value':0x1},{'option':_0xa58fa6(0x2188),'value':0x0}],'findBy':[{'value':_0xa58fa6(0x113f),'option':'Internal'},{'value':_0xa58fa6(0x1d55),'option':_0xa58fa6(0x1184)},{'value':'mobile','option':_0xa58fa6(0x33c)}],'dialogflow_language':_0x384aa2,'dialogflowV2_language':_0x302710,'aws_lex_region':_0x5bacff,'method':[{'value':_0xa58fa6(0xe5d),'option':_0xa58fa6(0xe5d)},{'value':'POST','option':'POST'},{'value':_0xa58fa6(0x1213),'option':'PUT'},{'value':_0xa58fa6(0x10df),'option':'DELETE'}]},_0x5c709a['crudPermissions']=_0x2cc159,_0x5c709a[_0xa58fa6(0x3d4)]=_0x2c1fd4,_0x5c709a[_0xa58fa6(0x13f3)]=_0x12c3e9,_0x5c709a[_0xa58fa6(0x2372)]=_0x8df94a;function _0x2c1fd4(){const _0x24846a=_0xa58fa6;_0x38c27f[_0x24846a(0x23e0)](_0x24846a(0x174b))?_0xb39fb8():_0x545302();}function _0x8df94a(_0xd21e68,_0xbf864c,_0x300f43,_0x277304){return _0x3f65c0()['map'](_0xd21e68,function(_0x264220){const _0x2db93b=a0_0x3bb9;return{'value':_0x264220[_0xbf864c],'option':_0x264220[_0x300f43],'group':_0x277304?_0x264220[_0x277304]:undefined,'canSelect':typeof _0x264220[_0x2db93b(0x8ff)]!==_0x2db93b(0x2274)?_0x264220[_0x2db93b(0x8ff)]:!![]};});}function _0x57ecc3(_0x1a2ada,_0x214d77,_0x514ec4,_0x1778f7){const _0x39d915=_0xa58fa6,_0x2aa8c3=_0x3f65c0()['filter'](_0x1a2ada,function(_0x1bf05a){return _0x1bf05a[_0x1778f7]===null;}),_0x2a3ca7=[];return _0x3f65c0()[_0x39d915(0x1df5)](_0x2aa8c3,function(_0x3c0973){const _0x1d47af=_0x39d915;_0x2a3ca7['push']({'value':_0x3c0973[_0x214d77],'option':_0x3c0973[_0x514ec4]});const _0x11d99=_0x3f65c0()[_0x1d47af(0x1dd6)](_0x1a2ada,function(_0x1771f6){return _0x1771f6[_0x1778f7]===_0x3c0973['id'];});_0x3f65c0()['forEach'](_0x11d99,function(_0x932687){const _0x3f4f71=_0x1d47af;_0x2a3ca7[_0x3f4f71(0x1f47)]({'value':_0x932687[_0x214d77],'option':_0x3f4f71(0x1315)+_0x932687[_0x514ec4]});});}),_0x2a3ca7;}function _0xb39fb8(){const _0x1b8374=_0xa58fa6,_0xb7a6c7={'sip_id':_0x8df94a(_0x224d10,'id',_0x1b8374(0x286a),_0x1b8374(0xfb0)),'trunk_name':_0x8df94a(_0x15397f,_0x1b8374(0x19eb),_0x1b8374(0x19eb)),'trunk_id':_0x8df94a(_0x15397f,'id',_0x1b8374(0x19eb)),'queue_id':_0x8df94a(_0x40d8f5,'id','name'),'file_id':_0x8df94a(_0x4128d8,'id',_0x1b8374(0x19eb)),'variable_id':_0x8df94a(_0x2fa478,'id','name'),'odbc_id':_0x8df94a(_0x252953,'id',_0x1b8374(0x19eb)),'project_id':_0x8df94a(_0x40773e,'id','name'),'context':_0x8df94a(_0x4cbab4,'id','name'),'interval_id':_0x57ecc3(_0x395231,'id',_0x1b8374(0x19eb),_0x1b8374(0x1ff2)),'account_id':_0x8df94a(_0x35c3de,'id',_0x1b8374(0x19eb)),'template_id':_0x8df94a(_0x4ae713,'id',_0x1b8374(0x19eb)),'list_id':_0x8df94a(_0x3ab55b,'id',_0x1b8374(0x19eb)),'sms_account_id':_0x8df94a(_0x3f5304,'id',_0x1b8374(0x19eb)),'pause_id':_0x8df94a(_0x122398,'id',_0x1b8374(0x19eb))},_0x336581=_0x3f65c0()[_0x1b8374(0x168d)](_0x5c709a[_0x1b8374(0x81b)],_0xb7a6c7);_0x5c709a[_0x1b8374(0x81b)]=_0x336581;}function _0x545302(){const _0x578767=_0xa58fa6,_0x365be5=['sip_id',_0x578767(0xc90),_0x578767(0xe43),_0x578767(0x1c2a),_0x578767(0x845),_0x578767(0x1fe2),'odbc_id','project_id',_0x578767(0x1ac1),'interval_id',_0x578767(0x1dc3),_0x578767(0x16d8),_0x578767(0x1a36),_0x578767(0x17e7),_0x578767(0x1ab7)];for(let _0x4ffac6=0x0;_0x4ffac6<_0x5c709a['attributes'][_0x578767(0x402)];_0x4ffac6++){if(_0x3f65c0()['includes'](_0x365be5,_0x5c709a[_0x578767(0x130d)][_0x4ffac6][_0x578767(0x19eb)]))switch(_0x5c709a['attributes'][_0x4ffac6][_0x578767(0x19eb)]){case'sip_id':_0x2c56f1();break;case _0x578767(0xc90):_0x2edaee();break;case _0x578767(0xe43):_0x25bd60();break;case'queue_id':_0x547362();break;case _0x578767(0x845):_0x45de91();break;case _0x578767(0x1fe2):_0x4ff19a();break;case _0x578767(0x1ad2):_0x3384a9();break;case _0x578767(0x2675):_0x143412();break;case'context':_0x54d186();break;case _0x578767(0x12f6):_0x51fc26();break;case _0x578767(0x1dc3):_0x49afe2();break;case _0x578767(0x16d8):_0x2226af();break;case _0x578767(0x1a36):_0x36c5c5();break;case'sms_account_id':_0x1ec868();break;case _0x578767(0x1ab7):_0x381b40();break;}}}function _0x2c56f1(){const _0x8fb67=_0xa58fa6,_0x14dd5d=Number(_0x3f65c0()['find'](_0x5c709a[_0x8fb67(0x130d)],{'name':'sip_id'})['value']),_0x246365=_0x3f65c0()[_0x8fb67(0x1360)](_0x224d10,{'id':_0x14dd5d});if(!_0x246365&&_0x14dd5d>0x0)return _0xd0de25[_0x8fb67(0xe7b)][_0x8fb67(0x16b4)]({'id':_0x14dd5d,'fields':_0x8fb67(0x1f6)})[_0x8fb67(0x2945)][_0x8fb67(0x146b)](function(_0x40bf10){const _0x4de464=_0x8fb67,_0x1cf5b7=_0x40bf10['toJSON']();_0x1cf5b7['canSelect']=![],_0x224d10['push'](_0x1cf5b7),_0x5c709a[_0x4de464(0x81b)]['sip_id']=_0x8df94a(_0x224d10,'id',_0x4de464(0x286a),_0x4de464(0xfb0));})[_0x8fb67(0x129e)](function(_0x2b94af){const _0x464f02=_0x8fb67;_0x150ca7[_0x464f02(0x1980)]({'title':_0x2b94af[_0x464f02(0x107b)]?_0x464f02(0x262a)+_0x2b94af['status']+'\x20-\x20'+_0x2b94af[_0x464f02(0x167f)]:_0x464f02(0x1af9),'msg':_0x2b94af[_0x464f02(0x524)]?JSON['stringify'](_0x2b94af['data']['message']):_0x2b94af[_0x464f02(0xd5f)]()});});else _0x5c709a[_0x8fb67(0x81b)]['sip_id']=_0x8df94a(_0x224d10,'id',_0x8fb67(0x286a),_0x8fb67(0xfb0));}function _0x36c5c5(){const _0x307de0=_0xa58fa6,_0x1854fa=Number(_0x3f65c0()[_0x307de0(0xc84)](_0x5c709a['attributes'],{'name':'list_id'})[_0x307de0(0x175d)]),_0x2b1836=_0x3f65c0()[_0x307de0(0x1360)](_0x3ab55b,{'id':_0x1854fa});if(!_0x2b1836&&_0x1854fa>0x0)return _0xd0de25[_0x307de0(0xf03)]['get']({'id':_0x1854fa,'fields':_0x307de0(0x7a7)})[_0x307de0(0x2945)][_0x307de0(0x146b)](function(_0x3a3cc2){const _0x210304=_0x307de0,_0x3a1102=_0x3a3cc2['toJSON']();_0x3a1102['canSelect']=![],_0x3ab55b[_0x210304(0x1f47)](_0x3a1102),_0x5c709a[_0x210304(0x81b)][_0x210304(0x1a36)]=_0x8df94a(_0x3ab55b,'id',_0x210304(0x19eb));})['catch'](function(_0x134665){const _0x206182=_0x307de0;_0x150ca7['error']({'title':_0x134665[_0x206182(0x107b)]?_0x206182(0x262a)+_0x134665[_0x206182(0x107b)]+_0x206182(0x1315)+_0x134665[_0x206182(0x167f)]:_0x206182(0x1af3),'msg':_0x134665['data']?JSON[_0x206182(0x10bb)](_0x134665[_0x206182(0x524)]['message']):_0x134665['toString']()});});else _0x5c709a[_0x307de0(0x81b)]['list_id']=_0x8df94a(_0x3ab55b,'id',_0x307de0(0x19eb));}function _0x25bd60(){const _0x55f67b=_0xa58fa6,_0x4d5d16=Number(_0x3f65c0()[_0x55f67b(0xc84)](_0x5c709a[_0x55f67b(0x130d)],{'name':_0x55f67b(0xe43)})[_0x55f67b(0x175d)]),_0x3b2e6c=_0x3f65c0()[_0x55f67b(0x1360)](_0x15397f,{'id':_0x4d5d16});if(!_0x3b2e6c&&_0x4d5d16>0x0)return _0xd0de25[_0x55f67b(0x279f)]['get']({'id':_0x4d5d16,'fields':_0x55f67b(0x7a7)})['$promise'][_0x55f67b(0x146b)](function(_0x104d31){const _0xba698a=_0x55f67b,_0xaaa03a=_0x104d31[_0xba698a(0x2488)]();_0xaaa03a[_0xba698a(0x8ff)]=![],_0x15397f[_0xba698a(0x1f47)](_0xaaa03a),_0x5c709a[_0xba698a(0x81b)][_0xba698a(0xe43)]=_0x8df94a(_0x15397f,'id',_0xba698a(0x19eb));})['catch'](function(_0x5106fc){const _0x4043aa=_0x55f67b;_0x150ca7[_0x4043aa(0x1980)]({'title':_0x5106fc[_0x4043aa(0x107b)]?_0x4043aa(0x262a)+_0x5106fc[_0x4043aa(0x107b)]+_0x4043aa(0x1315)+_0x5106fc[_0x4043aa(0x167f)]:_0x4043aa(0x172a),'msg':_0x5106fc[_0x4043aa(0x524)]?JSON['stringify'](_0x5106fc[_0x4043aa(0x524)][_0x4043aa(0x7fd)]):_0x5106fc[_0x4043aa(0xd5f)]()});});else _0x5c709a['values'][_0x55f67b(0xe43)]=_0x8df94a(_0x15397f,'id',_0x55f67b(0x19eb));}function _0x2edaee(){const _0x25384a=_0xa58fa6,_0x409493=_0x3f65c0()[_0x25384a(0xc84)](_0x5c709a[_0x25384a(0x130d)],{'name':_0x25384a(0xc90)})[_0x25384a(0x175d)],_0x13535c=_0x3f65c0()[_0x25384a(0x1360)](_0x15397f,{'name':_0x409493});if(!_0x13535c&&_0x409493)return _0xd0de25['trunk'][_0x25384a(0x16b4)]({'name':_0x409493,'fields':_0x25384a(0x7a7)})[_0x25384a(0x2945)][_0x25384a(0x146b)](function(_0x2a431b){const _0x12efb5=_0x25384a;if(_0x2a431b[_0x12efb5(0x51c)]>0x0&&_0x2a431b[_0x12efb5(0x19c7)][_0x12efb5(0x402)]>0x0){const _0x4b28ec=_0x2a431b[_0x12efb5(0x19c7)][0x0];_0x4b28ec['canSelect']=![],_0x15397f[_0x12efb5(0x1f47)](_0x4b28ec),_0x5c709a[_0x12efb5(0x81b)][_0x12efb5(0xc90)]=_0x8df94a(_0x15397f,_0x12efb5(0x19eb),_0x12efb5(0x19eb));}})[_0x25384a(0x129e)](function(_0x285ead){const _0xd42aaf=_0x25384a;_0x150ca7[_0xd42aaf(0x1980)]({'title':_0x285ead[_0xd42aaf(0x107b)]?_0xd42aaf(0x262a)+_0x285ead[_0xd42aaf(0x107b)]+_0xd42aaf(0x1315)+_0x285ead[_0xd42aaf(0x167f)]:_0xd42aaf(0x172a),'msg':_0x285ead[_0xd42aaf(0x524)]?JSON[_0xd42aaf(0x10bb)](_0x285ead[_0xd42aaf(0x524)][_0xd42aaf(0x7fd)]):_0x285ead[_0xd42aaf(0xd5f)]()});});else _0x5c709a['values'][_0x25384a(0xc90)]=_0x8df94a(_0x15397f,_0x25384a(0x19eb),_0x25384a(0x19eb));}function _0x547362(){const _0x29781d=_0xa58fa6,_0x510ef4=Number(_0x3f65c0()[_0x29781d(0xc84)](_0x5c709a[_0x29781d(0x130d)],{'name':_0x29781d(0x1c2a)})[_0x29781d(0x175d)]),_0x322a7e=_0x3f65c0()[_0x29781d(0x1360)](_0x40d8f5,{'id':_0x510ef4});if(!_0x322a7e&&_0x510ef4>0x0)return _0xd0de25['voiceQueue'][_0x29781d(0x16b4)]({'id':_0x510ef4,'fields':'id,name'})[_0x29781d(0x2945)][_0x29781d(0x146b)](function(_0x38d8fc){const _0x10610d=_0x29781d,_0x515e92=_0x38d8fc[_0x10610d(0x2488)]();_0x515e92['canSelect']=![],_0x40d8f5[_0x10610d(0x1f47)](_0x515e92),_0x5c709a[_0x10610d(0x81b)][_0x10610d(0x1c2a)]=_0x8df94a(_0x40d8f5,'id',_0x10610d(0x19eb));})[_0x29781d(0x129e)](function(_0x3e3ec7){const _0x24937c=_0x29781d;_0x150ca7[_0x24937c(0x1980)]({'title':_0x3e3ec7[_0x24937c(0x107b)]?_0x24937c(0x262a)+_0x3e3ec7[_0x24937c(0x107b)]+'\x20-\x20'+_0x3e3ec7[_0x24937c(0x167f)]:_0x24937c(0x13cc),'msg':_0x3e3ec7[_0x24937c(0x524)]?JSON[_0x24937c(0x10bb)](_0x3e3ec7[_0x24937c(0x524)][_0x24937c(0x7fd)]):_0x3e3ec7['toString']()});});else _0x5c709a[_0x29781d(0x81b)][_0x29781d(0x1c2a)]=_0x8df94a(_0x40d8f5,'id',_0x29781d(0x19eb));}function _0x45de91(){const _0x1ed72a=_0xa58fa6,_0x617e7a=Number(_0x3f65c0()[_0x1ed72a(0xc84)](_0x5c709a[_0x1ed72a(0x130d)],{'name':_0x1ed72a(0x845)})[_0x1ed72a(0x175d)]),_0x44cefd=_0x3f65c0()[_0x1ed72a(0x1360)](_0x4128d8,{'id':_0x617e7a});if(!_0x44cefd&&_0x617e7a>0x0)return _0xd0de25['sound'][_0x1ed72a(0x16b4)]({'id':_0x617e7a,'fields':_0x1ed72a(0x7a7)})['$promise'][_0x1ed72a(0x146b)](function(_0x19ae1d){const _0x2676d9=_0x1ed72a,_0x58b654=_0x19ae1d[_0x2676d9(0x2488)]();_0x58b654[_0x2676d9(0x8ff)]=![],_0x4128d8[_0x2676d9(0x1f47)](_0x58b654),_0x5c709a[_0x2676d9(0x81b)]['file_id']=_0x8df94a(_0x4128d8,'id','name');})['catch'](function(_0x1cc690){const _0x2b6d9e=_0x1ed72a;_0x150ca7['error']({'title':_0x1cc690['status']?_0x2b6d9e(0x262a)+_0x1cc690['status']+_0x2b6d9e(0x1315)+_0x1cc690[_0x2b6d9e(0x167f)]:'GET_SOUND','msg':_0x1cc690[_0x2b6d9e(0x524)]?JSON[_0x2b6d9e(0x10bb)](_0x1cc690['data']['message']):_0x1cc690[_0x2b6d9e(0xd5f)]()});});else _0x5c709a[_0x1ed72a(0x81b)][_0x1ed72a(0x845)]=_0x8df94a(_0x4128d8,'id',_0x1ed72a(0x19eb));}function _0x4ff19a(){const _0x550c16=_0xa58fa6,_0x26928f=Number(_0x3f65c0()[_0x550c16(0xc84)](_0x5c709a['attributes'],{'name':_0x550c16(0x1fe2)})[_0x550c16(0x175d)]),_0x4fe4fc=_0x3f65c0()[_0x550c16(0x1360)](_0x2fa478,{'id':_0x26928f});if(!_0x4fe4fc&&_0x26928f>0x0)return _0xd0de25['variable']['get']({'id':_0x26928f,'fields':_0x550c16(0x7a7)})[_0x550c16(0x2945)][_0x550c16(0x146b)](function(_0x58209a){const _0x53f12e=_0x550c16,_0x59fdc0=_0x58209a[_0x53f12e(0x2488)]();_0x59fdc0['canSelect']=![],_0x2fa478[_0x53f12e(0x1f47)](_0x59fdc0),_0x5c709a[_0x53f12e(0x81b)][_0x53f12e(0x1fe2)]=_0x8df94a(_0x2fa478,'id',_0x53f12e(0x19eb));})[_0x550c16(0x129e)](function(_0x487f28){const _0x1de6a3=_0x550c16;_0x150ca7[_0x1de6a3(0x1980)]({'title':_0x487f28[_0x1de6a3(0x107b)]?_0x1de6a3(0x262a)+_0x487f28[_0x1de6a3(0x107b)]+'\x20-\x20'+_0x487f28[_0x1de6a3(0x167f)]:_0x1de6a3(0x1f0b),'msg':_0x487f28[_0x1de6a3(0x524)]?JSON[_0x1de6a3(0x10bb)](_0x487f28[_0x1de6a3(0x524)]['message']):_0x487f28[_0x1de6a3(0xd5f)]()});});else _0x5c709a[_0x550c16(0x81b)][_0x550c16(0x1fe2)]=_0x8df94a(_0x2fa478,'id',_0x550c16(0x19eb));}function _0x3384a9(){const _0x1ea0ee=_0xa58fa6,_0x24238f=Number(_0x3f65c0()[_0x1ea0ee(0xc84)](_0x5c709a[_0x1ea0ee(0x130d)],{'name':_0x1ea0ee(0x1ad2)})[_0x1ea0ee(0x175d)]),_0x492f3b=_0x3f65c0()[_0x1ea0ee(0x1360)](_0x252953,{'id':_0x24238f});if(!_0x492f3b&&_0x24238f>0x0)return _0xd0de25[_0x1ea0ee(0xbf8)][_0x1ea0ee(0x16b4)]({'id':_0x24238f,'fields':_0x1ea0ee(0x7a7)})[_0x1ea0ee(0x2945)][_0x1ea0ee(0x146b)](function(_0x38bc6e){const _0x61d36b=_0x1ea0ee,_0x105eef=_0x38bc6e[_0x61d36b(0x2488)]();_0x105eef[_0x61d36b(0x8ff)]=![],_0x252953[_0x61d36b(0x1f47)](_0x105eef),_0x5c709a[_0x61d36b(0x81b)][_0x61d36b(0x1ad2)]=_0x8df94a(_0x252953,'id',_0x61d36b(0x19eb));})['catch'](function(_0x4b9d11){const _0x12c6c7=_0x1ea0ee;_0x150ca7[_0x12c6c7(0x1980)]({'title':_0x4b9d11[_0x12c6c7(0x107b)]?'API:'+_0x4b9d11[_0x12c6c7(0x107b)]+_0x12c6c7(0x1315)+_0x4b9d11[_0x12c6c7(0x167f)]:_0x12c6c7(0x18af),'msg':_0x4b9d11[_0x12c6c7(0x524)]?JSON[_0x12c6c7(0x10bb)](_0x4b9d11[_0x12c6c7(0x524)][_0x12c6c7(0x7fd)]):_0x4b9d11[_0x12c6c7(0xd5f)]()});});else _0x5c709a['values'][_0x1ea0ee(0x1ad2)]=_0x8df94a(_0x252953,'id','name');}function _0x143412(){const _0x111ec8=_0xa58fa6,_0x55a645=Number(_0x3f65c0()[_0x111ec8(0xc84)](_0x5c709a[_0x111ec8(0x130d)],{'name':_0x111ec8(0x2675)})['value']),_0x1e3e82=_0x3f65c0()[_0x111ec8(0x1360)](_0x40773e,{'id':_0x55a645});if(!_0x1e3e82&&_0x55a645>0x0)return _0xd0de25['squareProject'][_0x111ec8(0x16b4)]({'id':_0x55a645,'fields':_0x111ec8(0x7a7)})['$promise'][_0x111ec8(0x146b)](function(_0x56ac5a){const _0x31b004=_0x111ec8,_0x3b0e41=_0x56ac5a[_0x31b004(0x2488)]();_0x3b0e41[_0x31b004(0x8ff)]=![],_0x40773e[_0x31b004(0x1f47)](_0x3b0e41),_0x5c709a[_0x31b004(0x81b)]['project_id']=_0x8df94a(_0x40773e,'id','name');})[_0x111ec8(0x129e)](function(_0xf4988e){const _0x3762fc=_0x111ec8;_0x150ca7[_0x3762fc(0x1980)]({'title':_0xf4988e['status']?_0x3762fc(0x262a)+_0xf4988e[_0x3762fc(0x107b)]+_0x3762fc(0x1315)+_0xf4988e[_0x3762fc(0x167f)]:_0x3762fc(0x27a0),'msg':_0xf4988e[_0x3762fc(0x524)]?JSON[_0x3762fc(0x10bb)](_0xf4988e[_0x3762fc(0x524)][_0x3762fc(0x7fd)]):_0xf4988e[_0x3762fc(0xd5f)]()});});else _0x5c709a[_0x111ec8(0x81b)]['project_id']=_0x8df94a(_0x40773e,'id','name');}function _0x54d186(){const _0x288a0e=_0xa58fa6,_0x180842=Number(_0x3f65c0()[_0x288a0e(0xc84)](_0x5c709a[_0x288a0e(0x130d)],{'name':_0x288a0e(0x1ac1)})['value']),_0x128355=_0x3f65c0()[_0x288a0e(0x1360)](_0x4cbab4,{'id':_0x180842});if(!_0x128355&&_0x180842>0x0)return _0xd0de25[_0x288a0e(0x1b82)][_0x288a0e(0x16b4)]({'id':_0x180842,'fields':'id,name'})[_0x288a0e(0x2945)][_0x288a0e(0x146b)](function(_0x5b5805){const _0x1809e4=_0x288a0e,_0x29844b=_0x5b5805[_0x1809e4(0x2488)]();_0x29844b['canSelect']=![],_0x4cbab4[_0x1809e4(0x1f47)](_0x29844b),_0x5c709a[_0x1809e4(0x81b)]['context']=_0x8df94a(_0x4cbab4,'id',_0x1809e4(0x19eb));})[_0x288a0e(0x129e)](function(_0x488ca7){const _0x957960=_0x288a0e;_0x150ca7[_0x957960(0x1980)]({'title':_0x488ca7[_0x957960(0x107b)]?_0x957960(0x262a)+_0x488ca7[_0x957960(0x107b)]+_0x957960(0x1315)+_0x488ca7['statusText']:_0x957960(0x1742),'msg':_0x488ca7[_0x957960(0x524)]?JSON[_0x957960(0x10bb)](_0x488ca7['data'][_0x957960(0x7fd)]):_0x488ca7[_0x957960(0xd5f)]()});});else _0x5c709a[_0x288a0e(0x81b)][_0x288a0e(0x1ac1)]=_0x8df94a(_0x4cbab4,'id',_0x288a0e(0x19eb));}function _0x51fc26(){const _0x5f1776=_0xa58fa6,_0x56a81f=Number(_0x3f65c0()['find'](_0x5c709a[_0x5f1776(0x130d)],{'name':'interval_id'})['value']),_0x42917b=_0x3f65c0()['some'](_0x395231,{'id':_0x56a81f});if(!_0x42917b&&_0x56a81f>0x0)return _0xd0de25[_0x5f1776(0x2765)][_0x5f1776(0x16b4)]({'id':_0x56a81f,'fields':_0x5f1776(0x775)})[_0x5f1776(0x2945)][_0x5f1776(0x146b)](function(_0x56eed7){const _0x1e0ece=_0x5f1776,_0x486a75=_0x56eed7[_0x1e0ece(0x2488)]();_0x486a75[_0x1e0ece(0x8ff)]=![],_0x395231[_0x1e0ece(0x1f47)](_0x486a75),_0x5c709a[_0x1e0ece(0x81b)][_0x1e0ece(0x12f6)]=_0x8df94a(_0x395231,'id',_0x1e0ece(0x19eb),_0x1e0ece(0x1ff2));})['catch'](function(_0x127555){const _0x55bf64=_0x5f1776;_0x150ca7[_0x55bf64(0x1980)]({'title':_0x127555[_0x55bf64(0x107b)]?_0x55bf64(0x262a)+_0x127555[_0x55bf64(0x107b)]+_0x55bf64(0x1315)+_0x127555[_0x55bf64(0x167f)]:_0x55bf64(0x9c2),'msg':_0x127555[_0x55bf64(0x524)]?JSON[_0x55bf64(0x10bb)](_0x127555[_0x55bf64(0x524)][_0x55bf64(0x7fd)]):_0x127555[_0x55bf64(0xd5f)]()});});else _0x5c709a['values']['interval_id']=_0x8df94a(_0x395231,'id',_0x5f1776(0x19eb),_0x5f1776(0x1ff2));}function _0x49afe2(){const _0x2881e1=_0xa58fa6,_0x2c64a4=Number(_0x3f65c0()[_0x2881e1(0xc84)](_0x5c709a[_0x2881e1(0x130d)],{'name':_0x2881e1(0x1dc3)})['value']),_0x41c51b=_0x3f65c0()[_0x2881e1(0x1360)](_0x35c3de,{'id':_0x2c64a4});if(!_0x41c51b&&_0x2c64a4>0x0)return _0xd0de25['mailAccount']['get']({'id':_0x2c64a4,'fields':_0x2881e1(0x7a7)})['$promise'][_0x2881e1(0x146b)](function(_0x24db62){const _0x387f39=_0x2881e1,_0x5009db=_0x24db62[_0x387f39(0x2488)]();_0x5009db[_0x387f39(0x8ff)]=![],_0x35c3de[_0x387f39(0x1f47)](_0x5009db),_0x5c709a[_0x387f39(0x81b)][_0x387f39(0x1dc3)]=_0x8df94a(_0x35c3de,'id',_0x387f39(0x19eb));})[_0x2881e1(0x129e)](function(_0x542e3f){const _0x38a64e=_0x2881e1;_0x150ca7[_0x38a64e(0x1980)]({'title':_0x542e3f[_0x38a64e(0x107b)]?_0x38a64e(0x262a)+_0x542e3f[_0x38a64e(0x107b)]+'\x20-\x20'+_0x542e3f[_0x38a64e(0x167f)]:_0x38a64e(0xbc6),'msg':_0x542e3f[_0x38a64e(0x524)]?JSON[_0x38a64e(0x10bb)](_0x542e3f['data']['message']):_0x542e3f['toString']()});});else _0x5c709a['values']['account_id']=_0x8df94a(_0x35c3de,'id',_0x2881e1(0x19eb));}function _0x1ec868(){const _0x3e3861=_0xa58fa6,_0x1ec804=Number(_0x3f65c0()[_0x3e3861(0xc84)](_0x5c709a[_0x3e3861(0x130d)],{'name':_0x3e3861(0x17e7)})[_0x3e3861(0x175d)]),_0x3ca7fb=_0x3f65c0()[_0x3e3861(0x1360)](_0x3f5304,{'id':_0x1ec804});if(!_0x3ca7fb&&_0x1ec804>0x0)return _0xd0de25[_0x3e3861(0x2209)][_0x3e3861(0x16b4)]({'id':_0x1ec804,'fields':_0x3e3861(0x7a7)})[_0x3e3861(0x2945)][_0x3e3861(0x146b)](function(_0x5d2656){const _0x56d2ec=_0x3e3861,_0x4d931f=_0x5d2656[_0x56d2ec(0x2488)]();_0x4d931f[_0x56d2ec(0x8ff)]=![],_0x3f5304[_0x56d2ec(0x1f47)](_0x4d931f),_0x5c709a[_0x56d2ec(0x81b)][_0x56d2ec(0x17e7)]=_0x8df94a(_0x3f5304,'id',_0x56d2ec(0x19eb));})['catch'](function(_0x2a5fb1){const _0x175477=_0x3e3861;_0x150ca7['error']({'title':_0x2a5fb1[_0x175477(0x107b)]?_0x175477(0x262a)+_0x2a5fb1[_0x175477(0x107b)]+_0x175477(0x1315)+_0x2a5fb1['statusText']:_0x175477(0x1afb),'msg':_0x2a5fb1['data']?JSON['stringify'](_0x2a5fb1[_0x175477(0x524)]['message']):_0x2a5fb1[_0x175477(0xd5f)]()});});else _0x5c709a[_0x3e3861(0x81b)][_0x3e3861(0x17e7)]=_0x8df94a(_0x3f5304,'id',_0x3e3861(0x19eb));}function _0x2226af(){const _0x4b2c40=_0xa58fa6,_0x1e9e1f=Number(_0x3f65c0()[_0x4b2c40(0xc84)](_0x5c709a[_0x4b2c40(0x130d)],{'name':_0x4b2c40(0x16d8)})[_0x4b2c40(0x175d)]),_0x104a16=_0x3f65c0()[_0x4b2c40(0x1360)](_0x4ae713,{'id':_0x1e9e1f});if(!_0x104a16&&_0x1e9e1f>0x0)return _0xd0de25[_0x4b2c40(0x1928)]['get']({'id':_0x1e9e1f,'fields':_0x4b2c40(0x7a7)})[_0x4b2c40(0x2945)][_0x4b2c40(0x146b)](function(_0xc68bf0){const _0x26e13d=_0x4b2c40,_0x4c4a42=_0xc68bf0['toJSON']();_0x4c4a42[_0x26e13d(0x8ff)]=![],_0x4ae713[_0x26e13d(0x1f47)](_0x4c4a42),_0x5c709a[_0x26e13d(0x81b)][_0x26e13d(0x16d8)]=_0x8df94a(_0x4ae713,'id','name');})[_0x4b2c40(0x129e)](function(_0x5dc096){const _0x48ec4b=_0x4b2c40;_0x150ca7[_0x48ec4b(0x1980)]({'title':_0x5dc096[_0x48ec4b(0x107b)]?'API:'+_0x5dc096['status']+'\x20-\x20'+_0x5dc096[_0x48ec4b(0x167f)]:_0x48ec4b(0x701),'msg':_0x5dc096[_0x48ec4b(0x524)]?JSON['stringify'](_0x5dc096['data'][_0x48ec4b(0x7fd)]):_0x5dc096['toString']()});});else _0x5c709a[_0x4b2c40(0x81b)]['template_id']=_0x8df94a(_0x4ae713,'id',_0x4b2c40(0x19eb));}function _0x381b40(){const _0x2f321d=_0xa58fa6,_0x4f1d58=Number(_0x3f65c0()['find'](_0x5c709a[_0x2f321d(0x130d)],{'name':'pause_id'})[_0x2f321d(0x175d)]),_0x4762b5=_0x3f65c0()[_0x2f321d(0x1360)](_0x122398,{'id':_0x4f1d58});if(!_0x4762b5&&_0x4f1d58>0x0)return _0xd0de25['pause']['get']({'id':_0x4f1d58,'fields':_0x2f321d(0x7a7)})[_0x2f321d(0x2945)][_0x2f321d(0x146b)](function(_0x52ecf6){const _0x4d944a=_0x2f321d,_0x263fc6=_0x52ecf6[_0x4d944a(0x2488)]();_0x263fc6['canSelect']=![],_0x122398[_0x4d944a(0x1f47)](_0x263fc6),_0x5c709a[_0x4d944a(0x81b)]['pause_id']=_0x8df94a(_0x122398,'id',_0x4d944a(0x19eb));})[_0x2f321d(0x129e)](function(_0x2dccda){const _0x356186=_0x2f321d;_0x150ca7[_0x356186(0x1980)]({'title':_0x2dccda[_0x356186(0x107b)]?_0x356186(0x262a)+_0x2dccda['status']+_0x356186(0x1315)+_0x2dccda[_0x356186(0x167f)]:'GET_PAUSE','msg':_0x2dccda['data']?JSON['stringify'](_0x2dccda[_0x356186(0x524)][_0x356186(0x7fd)]):_0x2dccda[_0x356186(0xd5f)]()});});else _0x5c709a[_0x2f321d(0x81b)][_0x2f321d(0x1ab7)]=_0x8df94a(_0x122398,'id',_0x2f321d(0x19eb));}function _0x12c3e9(_0x41396b){const _0x499309=_0xa58fa6;_0x41396b&&_0x2bbff3(_0x5c709a[_0x499309(0x130d)]),_0xba038[_0x499309(0x2458)]();}}const _0x50edeb=_0x5d5898;;function _0xcb6900(){const _0xd0d7c7=_0x313a4d;return{'require':_0xd0d7c7(0x213f),'link':function(_0x1dfeac,_0x568609,_0x347f4b,_0x4fd1af){const _0x48f821=_0xd0d7c7;_0x4fd1af['$parsers'][_0x48f821(0x1f47)](function(_0x460fb5){return''+_0x460fb5;}),_0x4fd1af['$formatters']['push'](function(_0x3d31b4){return parseFloat(_0x3d31b4);});}};}const _0x4a723d=_0xcb6900;;function _0x5d06ec(){const _0x575f85=_0x313a4d;return[{'value':'da','option':_0x575f85(0x3d5)},{'value':'en','option':_0x575f85(0x1ce8)},{'value':'de','option':_0x575f85(0x592)},{'value':'it','option':_0x575f85(0x98f)},{'value':'es','option':'Spanish'},{'value':'fr','option':_0x575f85(0x12ea)},{'value':'id','option':_0x575f85(0x12f)},{'value':'ja','option':_0x575f85(0xf90)},{'value':'ko','option':_0x575f85(0x11cd)},{'value':'nl','option':_0x575f85(0x1d32)},{'value':'no','option':_0x575f85(0xcb4)},{'value':'pt','option':_0x575f85(0x119b)},{'value':_0x575f85(0x315),'option':_0x575f85(0x1e34)},{'value':'ru','option':_0x575f85(0x25d4)},{'value':'sv','option':_0x575f85(0x2081)},{'value':'th','option':_0x575f85(0x1449)},{'value':'uk','option':_0x575f85(0x13bf)},{'value':_0x575f85(0xc56),'option':_0x575f85(0x8d3)},{'value':'zh-HK','option':_0x575f85(0x1f35)},{'value':_0x575f85(0xf12),'option':_0x575f85(0x1cde)}];}function _0x556a3e(){const _0x50761c=_0x313a4d;return[{'value':_0x50761c(0x13c6),'option':_0x50761c(0x196f)},{'value':'zh-CN','option':_0x50761c(0x8d3)},{'value':_0x50761c(0xf12),'option':_0x50761c(0x1cde)},{'value':'da','option':_0x50761c(0x3d5)},{'value':'nl','option':'Dutch'},{'value':'en','option':_0x50761c(0x1ce8)},{'value':_0x50761c(0x1beb),'option':'English\x20(Australia)'},{'value':'en-CA','option':_0x50761c(0x425)},{'value':'en-GB','option':_0x50761c(0x3c9)},{'value':_0x50761c(0xef0),'option':_0x50761c(0x688)},{'value':'en-US','option':_0x50761c(0x4e8)},{'value':'fr','option':'French'},{'value':'fr-CA','option':_0x50761c(0x3e1)},{'value':_0x50761c(0x110a),'option':_0x50761c(0x9a0)},{'value':'de','option':_0x50761c(0x592)},{'value':'hi','option':_0x50761c(0x28c1)},{'value':'id','option':_0x50761c(0x12f)},{'value':'it','option':_0x50761c(0x98f)},{'value':'ja','option':_0x50761c(0xf90)},{'value':'ko','option':_0x50761c(0x1dc)},{'value':'no','option':_0x50761c(0xcb4)},{'value':'pl','option':_0x50761c(0xe06)},{'value':_0x50761c(0x2566),'option':_0x50761c(0x1aaf)},{'value':_0x50761c(0x23f5),'option':'Portuguese\x20(Portugal)'},{'value':'ru','option':_0x50761c(0x25d4)},{'value':'es','option':'Spanish'},{'value':'es-419','option':'Spanish\x20(Latin\x20America)'},{'value':_0x50761c(0xd8c),'option':_0x50761c(0x13ad)},{'value':'sw','option':_0x50761c(0x2081)},{'value':'th','option':_0x50761c(0x1449)},{'value':'tr','option':_0x50761c(0x15a8)},{'value':'uk','option':'Ukrainian'}];}function _0x265aca(){const _0xdd176e=_0x313a4d;return[{'value':'ar-XA','option':_0xdd176e(0x1123)},{'value':_0xdd176e(0x27b0),'option':_0xdd176e(0x23dd)},{'value':_0xdd176e(0x2009),'option':_0xdd176e(0x328)},{'value':_0xdd176e(0x2203),'option':'Dutch\x20(Netherlands)'},{'value':'el-GR','option':_0xdd176e(0x11c9)},{'value':_0xdd176e(0x1beb),'option':_0xdd176e(0x3aa)},{'value':_0xdd176e(0xef0),'option':'English\x20(India)'},{'value':_0xdd176e(0x7b3),'option':_0xdd176e(0x32a)},{'value':_0xdd176e(0x146d),'option':_0xdd176e(0x4e8)},{'value':'fi-FI','option':_0xdd176e(0x1998)},{'value':_0xdd176e(0x2748),'option':_0xdd176e(0x1f21)},{'value':_0xdd176e(0x267e),'option':_0xdd176e(0x3e1)},{'value':'fr-FR','option':'French\x20(France)'},{'value':'hi-IN','option':'Hindi\x20(India)'},{'value':_0xdd176e(0x66a),'option':'Hungarian\x20(Hungary)'},{'value':_0xdd176e(0x108f),'option':_0xdd176e(0x1e76)},{'value':'it-IT','option':_0xdd176e(0x1b8d)},{'value':_0xdd176e(0x27bd),'option':_0xdd176e(0xf4c)},{'value':'ko-KR','option':_0xdd176e(0x11cd)},{'value':_0xdd176e(0x19d1),'option':_0xdd176e(0x1817)},{'value':_0xdd176e(0x15a0),'option':_0xdd176e(0x52b)},{'value':_0xdd176e(0x904),'option':'Polish\x20(Poland)'},{'value':_0xdd176e(0x2566),'option':_0xdd176e(0x1aaf)},{'value':_0xdd176e(0x23f5),'option':_0xdd176e(0x1d1)},{'value':_0xdd176e(0x912),'option':'Russian\x20(Russia)'},{'value':_0xdd176e(0x14ac),'option':_0xdd176e(0x263f)},{'value':_0xdd176e(0xd8c),'option':_0xdd176e(0x13ad)},{'value':_0xdd176e(0x1038),'option':_0xdd176e(0x14bf)},{'value':_0xdd176e(0x1aa8),'option':'Turkish\x20(Turkey)'},{'value':_0xdd176e(0x125a),'option':_0xdd176e(0x17e8)},{'value':_0xdd176e(0x1bfb),'option':'Vietnamese\x20(Vietnam)'}];}function _0x29c46f(){const _0x3733f6=_0x313a4d;return[{'value':'af','option':_0x3733f6(0xc18)},{'value':'sq','option':_0x3733f6(0x27fd)},{'value':'am','option':'Amharic'},{'value':'ar','option':_0x3733f6(0x1123)},{'value':'hy','option':_0x3733f6(0x273a)},{'value':'az','option':_0x3733f6(0x4b0)},{'value':'eu','option':'Basque'},{'value':'be','option':'Belarusian'},{'value':'bn','option':'Bengali'},{'value':'bh','option':_0x3733f6(0x28a3)},{'value':'bs','option':_0x3733f6(0x27ef)},{'value':'br','option':_0x3733f6(0x1a3b)},{'value':'bg','option':'Bulgarian'},{'value':'km','option':'Cambodian'},{'value':'ca','option':_0x3733f6(0x20cd)},{'value':_0x3733f6(0xc56),'option':_0x3733f6(0x8d3)},{'value':_0x3733f6(0xf12),'option':_0x3733f6(0x1cde)},{'value':'co','option':_0x3733f6(0x24d)},{'value':'hr','option':'Croatian'},{'value':'cs','option':_0x3733f6(0xf6d)},{'value':'da','option':'Danish'},{'value':'nl','option':_0x3733f6(0x1d32)},{'value':'en','option':_0x3733f6(0x1ce8)},{'value':'eo','option':'Esperanto'},{'value':'et','option':_0x3733f6(0x9aa)},{'value':'fo','option':_0x3733f6(0x26bb)},{'value':'tl','option':'Filipino'},{'value':'fi','option':_0x3733f6(0x1229)},{'value':'fr','option':_0x3733f6(0x12ea)},{'value':'fy','option':'Frisian'},{'value':'gl','option':_0x3733f6(0x1ec)},{'value':'ka','option':'Georgian'},{'value':'de','option':_0x3733f6(0x592)},{'value':'el','option':_0x3733f6(0x1286)},{'value':'gn','option':_0x3733f6(0x1020)},{'value':'gu','option':_0x3733f6(0xdf9)},{'value':_0x3733f6(0x1833),'option':'Hacker'},{'value':'ha','option':_0x3733f6(0x1a7a)},{'value':'iw','option':_0x3733f6(0x24a9)},{'value':'hi','option':_0x3733f6(0x28c1)},{'value':'hu','option':_0x3733f6(0x42b)},{'value':'is','option':_0x3733f6(0x2033)},{'value':'id','option':_0x3733f6(0x12f)},{'value':'ia','option':_0x3733f6(0xfb5)},{'value':'ga','option':_0x3733f6(0x17c0)},{'value':'it','option':'Italian'},{'value':'jw','option':_0x3733f6(0x8eb)},{'value':'ja','option':'Japanese'},{'value':'kn','option':'Kannada'},{'value':'kk','option':'Kazakh'},{'value':'rw','option':_0x3733f6(0x16d5)},{'value':'rn','option':'Kirundi'},{'value':_0x3733f6(0x1dee),'option':_0x3733f6(0x1163)},{'value':'ku','option':_0x3733f6(0x1c48)},{'value':'ko','option':'Korean'},{'value':'ky','option':_0x3733f6(0x19d4)},{'value':'lo','option':_0x3733f6(0x13ef)},{'value':'la','option':_0x3733f6(0x1cbb)},{'value':'lv','option':_0x3733f6(0x1ebd)},{'value':'ln','option':_0x3733f6(0x280d)},{'value':'lt','option':_0x3733f6(0x23b0)},{'value':'mk','option':_0x3733f6(0x10de)},{'value':'mg','option':_0x3733f6(0x246b)},{'value':'ml','option':_0x3733f6(0xca4)},{'value':'mt','option':_0x3733f6(0x24a5)},{'value':'mi','option':'Maori'},{'value':'mr','option':_0x3733f6(0x14ea)},{'value':'mo','option':_0x3733f6(0x7f6)},{'value':'mn','option':'Mongolian'},{'value':'sr-ME','option':_0x3733f6(0xc50)},{'value':'ne','option':_0x3733f6(0x2504)},{'value':'no','option':_0x3733f6(0xcb4)},{'value':'nn','option':_0x3733f6(0x22f0)},{'value':'oc','option':_0x3733f6(0x227e)},{'value':'or','option':_0x3733f6(0x1543)},{'value':'om','option':_0x3733f6(0x2692)},{'value':'ps','option':_0x3733f6(0x2199)},{'value':'fa','option':'Persian'},{'value':_0x3733f6(0x16df),'option':_0x3733f6(0x28ac)},{'value':'pl','option':_0x3733f6(0xe06)},{'value':_0x3733f6(0x2566),'option':'Portuguese\x20(Brazil)'},{'value':_0x3733f6(0x23f5),'option':_0x3733f6(0x1d1)},{'value':'pa','option':'Punjabi'},{'value':'qu','option':_0x3733f6(0x16f9)},{'value':'ro','option':_0x3733f6(0x652)},{'value':'rm','option':_0x3733f6(0x1fcf)},{'value':'ru','option':_0x3733f6(0x25d4)},{'value':'gd','option':_0x3733f6(0x21d3)},{'value':'sr','option':'Serbian'},{'value':'sh','option':'Serbo-Croatian'},{'value':'st','option':'Sesotho'},{'value':'sn','option':'Shona'},{'value':'sd','option':_0x3733f6(0xd40)},{'value':'si','option':_0x3733f6(0x1fdc)},{'value':'sk','option':_0x3733f6(0xe7f)},{'value':'sl','option':_0x3733f6(0xbbd)},{'value':'so','option':_0x3733f6(0xef8)},{'value':'es','option':_0x3733f6(0xae7)},{'value':'su','option':_0x3733f6(0x1786)},{'value':'sw','option':_0x3733f6(0x2280)},{'value':'sv','option':'Swedish'},{'value':'tg','option':'Tajik'},{'value':'ta','option':_0x3733f6(0xd83)},{'value':'tt','option':_0x3733f6(0x1896)},{'value':'te','option':_0x3733f6(0x243e)},{'value':'th','option':_0x3733f6(0x1449)},{'value':'ti','option':_0x3733f6(0x18f8)},{'value':'to','option':_0x3733f6(0x14a6)},{'value':'tr','option':_0x3733f6(0x15a8)},{'value':'tk','option':_0x3733f6(0x100c)},{'value':'tw','option':'Twi'},{'value':'ug','option':_0x3733f6(0x291f)},{'value':'uk','option':'Ukrainian'},{'value':'ur','option':_0x3733f6(0x26bd)},{'value':'uz','option':_0x3733f6(0x21ab)},{'value':'vi','option':_0x3733f6(0x27b)},{'value':'cy','option':_0x3733f6(0x54a)},{'value':'xh','option':_0x3733f6(0x4b2)},{'value':'yi','option':_0x3733f6(0x1e56)},{'value':'yo','option':_0x3733f6(0x18fb)},{'value':'zu','option':'Zulu'}];}function _0x29750e(){const _0x58cab3=_0x313a4d;return[{'value':'af-ZA','option':_0x58cab3(0xd7f)},{'value':'am-ET','option':_0x58cab3(0x1613)},{'value':'hy-AM','option':'Armenian\x20(Armenia)'},{'value':'az-AZ','option':'Azerbaijani\x20(Azerbaijan)'},{'value':_0x58cab3(0x108f),'option':'Indonesian\x20(Indonesia)'},{'value':_0x58cab3(0xce4),'option':_0x58cab3(0x1aa)},{'value':_0x58cab3(0x1731),'option':_0x58cab3(0x5e8)},{'value':_0x58cab3(0x72f),'option':_0x58cab3(0x1321)},{'value':_0x58cab3(0x582),'option':'Catalan\x20(Spain)'},{'value':_0x58cab3(0x27b0),'option':'Czech\x20(Czech\x20Republic)'},{'value':_0x58cab3(0x2009),'option':_0x58cab3(0x328)},{'value':_0x58cab3(0x2203),'option':_0x58cab3(0x11bf)},{'value':_0x58cab3(0x1beb),'option':_0x58cab3(0x24ea)},{'value':'en-CA','option':_0x58cab3(0x425)},{'value':_0x58cab3(0x18e6),'option':'English\x20(Ghana)'},{'value':_0x58cab3(0x7b3),'option':_0x58cab3(0x129f)},{'value':_0x58cab3(0xef0),'option':_0x58cab3(0x688)},{'value':'en-IE','option':_0x58cab3(0x2183)},{'value':_0x58cab3(0x1bf0),'option':_0x58cab3(0x261f)},{'value':_0x58cab3(0x1dd),'option':_0x58cab3(0xee3)},{'value':_0x58cab3(0x1aa4),'option':'English\x20(Nigeria)'},{'value':'en-PH','option':_0x58cab3(0x2f1)},{'value':'en-ZA','option':'English\x20(South\x20Africa)'},{'value':'en-TZ','option':_0x58cab3(0x24f6)},{'value':_0x58cab3(0x146d),'option':_0x58cab3(0x236a)},{'value':_0x58cab3(0xd90),'option':_0x58cab3(0x12ec)},{'value':_0x58cab3(0x38e),'option':_0x58cab3(0x8d2)},{'value':_0x58cab3(0x2473),'option':'Spanish\x20(Chile)'},{'value':'es-CO','option':_0x58cab3(0xd27)},{'value':'es-CR','option':_0x58cab3(0x8f9)},{'value':_0x58cab3(0x24d5),'option':_0x58cab3(0x20e0)},{'value':'es-SV','option':_0x58cab3(0x67c)},{'value':_0x58cab3(0xd8c),'option':_0x58cab3(0x13ad)},{'value':'es-US','option':_0x58cab3(0x1199)},{'value':_0x58cab3(0xedf),'option':_0x58cab3(0x147c)},{'value':'es-HN','option':_0x58cab3(0x1e3a)},{'value':_0x58cab3(0x19e),'option':_0x58cab3(0x3c2)},{'value':'es-NI','option':_0x58cab3(0x2150)},{'value':_0x58cab3(0x771),'option':_0x58cab3(0x171d)},{'value':_0x58cab3(0x290b),'option':_0x58cab3(0x9bc)},{'value':_0x58cab3(0x186f),'option':'Spanish\x20(Peru)'},{'value':_0x58cab3(0x273c),'option':_0x58cab3(0x1a80)},{'value':_0x58cab3(0x24b4),'option':_0x58cab3(0x15c5)},{'value':'es-UY','option':_0x58cab3(0x1bad)},{'value':_0x58cab3(0x19b7),'option':_0x58cab3(0x4e1)},{'value':_0x58cab3(0xf9),'option':_0x58cab3(0xf0e)},{'value':_0x58cab3(0x2748),'option':_0x58cab3(0x1f21)},{'value':_0x58cab3(0x267e),'option':_0x58cab3(0x3e1)},{'value':_0x58cab3(0x110a),'option':_0x58cab3(0x1e2b)},{'value':'gl-ES','option':_0x58cab3(0x80a)},{'value':_0x58cab3(0x20f),'option':_0x58cab3(0x215a)},{'value':'gu-IN','option':_0x58cab3(0xcf4)},{'value':_0x58cab3(0x1d41),'option':'Croatian\x20(Croatia)'},{'value':_0x58cab3(0xe27),'option':_0x58cab3(0xb28)},{'value':_0x58cab3(0xddb),'option':_0x58cab3(0x149e)},{'value':'it-IT','option':_0x58cab3(0x1b8d)},{'value':_0x58cab3(0x1b91),'option':_0x58cab3(0xd37)},{'value':_0x58cab3(0x619),'option':_0x58cab3(0x708)},{'value':_0x58cab3(0x2489),'option':_0x58cab3(0x12e8)},{'value':_0x58cab3(0x15fc),'option':_0x58cab3(0xaf9)},{'value':_0x58cab3(0xd35),'option':_0x58cab3(0x5e0)},{'value':_0x58cab3(0xba2),'option':_0x58cab3(0x1563)},{'value':_0x58cab3(0x66a),'option':_0x58cab3(0xe5f)},{'value':_0x58cab3(0x1bd7),'option':_0x58cab3(0x12ab)},{'value':_0x58cab3(0x16bf),'option':_0x58cab3(0xd11)},{'value':_0x58cab3(0x303),'option':_0x58cab3(0xfb9)},{'value':_0x58cab3(0x480),'option':_0x58cab3(0x145b)},{'value':'nb-NO','option':_0x58cab3(0x20ae)},{'value':_0x58cab3(0x904),'option':_0x58cab3(0x1c26)},{'value':_0x58cab3(0x2566),'option':_0x58cab3(0x1aaf)},{'value':_0x58cab3(0x23f5),'option':_0x58cab3(0x1d1)},{'value':'ro-RO','option':_0x58cab3(0x2696)},{'value':'si-LK','option':_0x58cab3(0xa05)},{'value':'sk-SK','option':'Slovak\x20(Slovakia)'},{'value':_0x58cab3(0x1ae4),'option':_0x58cab3(0x13c7)},{'value':_0x58cab3(0x202a),'option':_0x58cab3(0x527)},{'value':_0x58cab3(0xfa6),'option':_0x58cab3(0x2056)},{'value':'sw-KE','option':'Swahili\x20(Kenya)'},{'value':'fi-FI','option':_0x58cab3(0x1998)},{'value':_0x58cab3(0x1038),'option':_0x58cab3(0x14bf)},{'value':_0x58cab3(0xf9c),'option':_0x58cab3(0xb9e)},{'value':_0x58cab3(0x1df1),'option':_0x58cab3(0xefb)},{'value':'ta-LK','option':_0x58cab3(0xf3a)},{'value':'ta-MY','option':'Tamil\x20(Malaysia)'},{'value':_0x58cab3(0x7d7),'option':_0x58cab3(0x121c)},{'value':_0x58cab3(0x1bfb),'option':_0x58cab3(0x14dd)},{'value':_0x58cab3(0x1aa8),'option':_0x58cab3(0x191a)},{'value':_0x58cab3(0x1d6),'option':_0x58cab3(0x6e5)},{'value':'ur-IN','option':_0x58cab3(0x8c9)},{'value':_0x58cab3(0x61c),'option':'Greek\x20(Greece)'},{'value':'bg-BG','option':_0x58cab3(0x9c0)},{'value':_0x58cab3(0x912),'option':_0x58cab3(0x1282)},{'value':_0x58cab3(0xc82),'option':_0x58cab3(0x101a)},{'value':_0x58cab3(0x125a),'option':_0x58cab3(0x17e8)},{'value':_0x58cab3(0x4a7),'option':_0x58cab3(0x2429)},{'value':'ar-IL','option':_0x58cab3(0xa16)},{'value':_0x58cab3(0x204e),'option':_0x58cab3(0x2558)},{'value':_0x58cab3(0x133c),'option':_0x58cab3(0x2c2)},{'value':_0x58cab3(0x1ef4),'option':_0x58cab3(0xbae)},{'value':_0x58cab3(0xa7b),'option':_0x58cab3(0xf01)},{'value':_0x58cab3(0xa77),'option':_0x58cab3(0xf13)},{'value':_0x58cab3(0x238f),'option':_0x58cab3(0xbb8)},{'value':_0x58cab3(0x532),'option':'Arabic\x20(Kuwait)'},{'value':_0x58cab3(0x107),'option':_0x58cab3(0xb16)},{'value':_0x58cab3(0x28da),'option':_0x58cab3(0x1089)},{'value':_0x58cab3(0x1725),'option':'Arabic\x20(Oman)'},{'value':'ar-PS','option':_0x58cab3(0x27d6)},{'value':_0x58cab3(0x1bdd),'option':_0x58cab3(0x224a)},{'value':'ar-LB','option':_0x58cab3(0x1915)},{'value':_0x58cab3(0x1c2c),'option':_0x58cab3(0x3ac)},{'value':_0x58cab3(0x2589),'option':'Persian\x20(Iran)'},{'value':_0x58cab3(0x18a6),'option':_0x58cab3(0x179d)},{'value':_0x58cab3(0x1523),'option':_0x58cab3(0x1679)},{'value':_0x58cab3(0x2259),'option':_0x58cab3(0x11cd)},{'value':'cmn-Hant-TW','option':'Chinese,\x20Mandarin\x20(Traditional,\x20Taiwan)'},{'value':_0x58cab3(0x5dd),'option':_0x58cab3(0x1866)},{'value':_0x58cab3(0x27bd),'option':_0x58cab3(0xf4c)},{'value':_0x58cab3(0x436),'option':_0x58cab3(0x2107)},{'value':_0x58cab3(0xd3b),'option':'Chinese,\x20Mandarin\x20(Simplified,\x20China)'}];}function _0x436663(){const _0x432ac1=_0x313a4d;return[{'value':_0x432ac1(0x209b),'option':'US\x20English\x20Female'},{'value':_0x432ac1(0x1139),'option':_0x432ac1(0xc9d)},{'value':_0x432ac1(0x183a),'option':_0x432ac1(0x14f9)},{'value':'ukenglishmale','option':_0x432ac1(0x293f)},{'value':_0x432ac1(0xad2),'option':_0x432ac1(0x1e2d)},{'value':_0x432ac1(0x106d),'option':_0x432ac1(0x1c24)},{'value':_0x432ac1(0x656),'option':_0x432ac1(0x2759)},{'value':'chchinesefemale','option':_0x432ac1(0x1771)},{'value':_0x432ac1(0x4f9),'option':'Chinese\x20Male'},{'value':_0x432ac1(0x1d15),'option':_0x432ac1(0x2540)},{'value':_0x432ac1(0x1b67),'option':_0x432ac1(0x1149)},{'value':'jpjapanesefemale','option':_0x432ac1(0x20a3)},{'value':_0x432ac1(0x19aa),'option':'Japanese\x20Male'},{'value':_0x432ac1(0x2064),'option':_0x432ac1(0x2788)},{'value':'krkoreanmale','option':'Korean\x20Male'},{'value':_0x432ac1(0x242),'option':_0x432ac1(0x2100)},{'value':_0x432ac1(0x6e8),'option':_0x432ac1(0x7f8)},{'value':_0x432ac1(0x1df),'option':_0x432ac1(0x276f)},{'value':_0x432ac1(0x272f),'option':_0x432ac1(0x14d6)},{'value':_0x432ac1(0xb25),'option':_0x432ac1(0x1eae)},{'value':_0x432ac1(0x5eb),'option':_0x432ac1(0xbb6)},{'value':_0x432ac1(0x174c),'option':_0x432ac1(0xff5)},{'value':_0x432ac1(0x2051),'option':_0x432ac1(0x132e)},{'value':'eurczechfemale','option':_0x432ac1(0xdcb)},{'value':_0x432ac1(0xeb7),'option':_0x432ac1(0x311)},{'value':_0x432ac1(0x1bcb),'option':_0x432ac1(0x23a4)},{'value':_0x432ac1(0x169b),'option':_0x432ac1(0x8a0)},{'value':_0x432ac1(0x188),'option':'European\x20French\x20Male'},{'value':'eurnorwegianfemale','option':_0x432ac1(0x137e)},{'value':'eurdutchfemale','option':'European\x20Dutch\x20Female'},{'value':_0x432ac1(0x129a),'option':'European\x20Polish\x20Female'},{'value':_0x432ac1(0xd6a),'option':'European\x20Italian\x20Female'},{'value':_0x432ac1(0x26ce),'option':'European\x20Italian\x20Male'},{'value':'eurturkishfemale','option':_0x432ac1(0x25e9)},{'value':_0x432ac1(0x1cd),'option':_0x432ac1(0x1ed3)},{'value':'eurgermanfemale','option':'European\x20German\x20Female'},{'value':'eurgermanmale','option':_0x432ac1(0x10b9)},{'value':_0x432ac1(0x11d8),'option':'Russian\x20Female'},{'value':_0x432ac1(0x26a9),'option':_0x432ac1(0x4ca)},{'value':'swswedishfemale','option':_0x432ac1(0x1e36)},{'value':_0x432ac1(0x18ab),'option':_0x432ac1(0x18b5)},{'value':_0x432ac1(0x8e9),'option':_0x432ac1(0xb8a)}];}function _0x941e76(){const _0xc137ff=_0x313a4d;return[{'value':_0xc137ff(0x146d),'option':'English\x20(US)'},{'value':_0xc137ff(0x19f7),'option':'English\x20(Canada)'},{'value':_0xc137ff(0x7b3),'option':_0xc137ff(0x32a)},{'value':'en-AU','option':_0xc137ff(0x24ea)},{'value':_0xc137ff(0xd8c),'option':'Spanish\x20(Spain)'},{'value':_0xc137ff(0x19e),'option':_0xc137ff(0x3c2)},{'value':_0xc137ff(0x26a1),'option':_0xc137ff(0x26da)},{'value':_0xc137ff(0x110a),'option':_0xc137ff(0x11bf)},{'value':'fr-CA','option':'French\x20(Canada)'},{'value':_0xc137ff(0x904),'option':_0xc137ff(0x1c26)},{'value':'pt-PT','option':_0xc137ff(0x1d1)},{'value':_0xc137ff(0x582),'option':_0xc137ff(0x2518)},{'value':_0xc137ff(0xf12),'option':_0xc137ff(0x148a)},{'value':'da-DK','option':_0xc137ff(0x328)},{'value':_0xc137ff(0x27bd),'option':_0xc137ff(0xf4c)},{'value':'ko-KR','option':'Korean\x20(Korea)'},{'value':_0xc137ff(0x303),'option':'Dutch\x20(Netherlands)'},{'value':_0xc137ff(0x15a0),'option':_0xc137ff(0x52b)},{'value':_0xc137ff(0x2566),'option':_0xc137ff(0x1aaf)},{'value':_0xc137ff(0x912),'option':'Russian\x20(Russia)'},{'value':'sv-SE','option':_0xc137ff(0x14bf)},{'value':_0xc137ff(0xc56),'option':'Chinese\x20(China)'},{'value':_0xc137ff(0x13c6),'option':_0xc137ff(0x1f35)}];}function _0x5e4037(){const _0x5db81b=_0x313a4d;return[{'value':'0','option':'Default'},{'value':_0x5db81b(0x1a10),'option':_0x5db81b(0x2882)},{'value':_0x5db81b(0xf9d),'option':_0x5db81b(0x26a)},{'value':'numbersto9','option':'Numbers\x20to\x209'},{'value':'numbersto99','option':'Numbers\x20to\x2099'},{'value':_0x5db81b(0x213b),'option':_0x5db81b(0x183)},{'value':_0x5db81b(0x1df0),'option':_0x5db81b(0x1ae8)},{'value':'phonenumber','option':_0x5db81b(0x26fe)},{'value':_0x5db81b(0x2bd),'option':_0x5db81b(0x11f6)},{'value':_0x5db81b(0x1050),'option':_0x5db81b(0x518)}];}function _0x17525a(){const _0x839286=_0x313a4d;return[{'value':'Amy','option':_0x839286(0xd18)},{'value':_0x839286(0x1c25),'option':_0x839286(0x730)},{'value':_0x839286(0x26d9),'option':_0x839286(0xced)},{'value':'Carla','option':'Carla\x20(Italian,\x20Female)'},{'value':'Carmen','option':'Carmen\x20(Romanian,\x20Female)'},{'value':_0x839286(0x1ff6),'option':_0x839286(0x1478)},{'value':'Chantal','option':_0x839286(0x1843)},{'value':_0x839286(0x1a79),'option':_0x839286(0x17f8)},{'value':_0x839286(0x11a6),'option':_0x839286(0x117b)},{'value':_0x839286(0x2781),'option':'Dora\x20(Icelandic,\x20Female)'},{'value':_0x839286(0x2848),'option':_0x839286(0x6a0)},{'value':'Enrique','option':_0x839286(0xeb6)},{'value':_0x839286(0x2162),'option':_0x839286(0x1a01)},{'value':_0x839286(0x20db),'option':_0x839286(0x4e6)},{'value':_0x839286(0x28dd),'option':_0x839286(0x1307)},{'value':_0x839286(0x1b5),'option':_0x839286(0x15ba)},{'value':'Gwineth','option':_0x839286(0x14cb)},{'value':_0x839286(0xe9e),'option':_0x839286(0x20be)},{'value':_0x839286(0x1296),'option':_0x839286(0x12c3)},{'value':_0x839286(0x2ac),'option':_0x839286(0xa66)},{'value':_0x839286(0x617),'option':_0x839286(0x243)},{'value':'Jan','option':_0x839286(0xd0a)},{'value':_0x839286(0x28a9),'option':_0x839286(0x125e)},{'value':_0x839286(0x1fef),'option':'Joey\x20(English,\x20US,\x20Male)'},{'value':_0x839286(0x205d),'option':'Justin\x20(English,\x20US,\x20Male)'},{'value':_0x839286(0x6ad),'option':'Karl\x20(Icelandic,\x20Male)'},{'value':'Kendra','option':_0x839286(0x23e1)},{'value':'Kimberly','option':_0x839286(0x1983)},{'value':'Liv','option':'Liv\x20(Norwegian,\x20Female)'},{'value':_0x839286(0x205e),'option':_0x839286(0x260c)},{'value':_0x839286(0x1b61),'option':'Mads\x20(Danish,\x20Male)'},{'value':_0x839286(0x67e),'option':_0x839286(0xb2e)},{'value':'Marlene','option':'Marlene\x20(German,\x20Female)'},{'value':_0x839286(0xf54),'option':_0x839286(0xb75)},{'value':'Maxim','option':_0x839286(0x5d2)},{'value':'Miguel','option':_0x839286(0xfdb)},{'value':_0x839286(0x7e0),'option':_0x839286(0x808)},{'value':_0x839286(0x10b8),'option':_0x839286(0x13bc)},{'value':_0x839286(0xb7e),'option':_0x839286(0xa3a)},{'value':_0x839286(0xea3),'option':_0x839286(0x2828)},{'value':_0x839286(0x15cd),'option':'Raveena\x20(English,\x20Indian,\x20Female)'},{'value':_0x839286(0x84c),'option':'Ricardo\x20(Portuguese,\x20Brazilian,\x20Male)'},{'value':_0x839286(0x1ea7),'option':_0x839286(0x1a53)},{'value':'Russell','option':_0x839286(0x7b9)},{'value':_0x839286(0x2290),'option':_0x839286(0xf8c)},{'value':_0x839286(0xe6c),'option':'Tatyana\x20(Russian,\x20Female)'},{'value':_0x839286(0x335),'option':_0x839286(0x1986)}];}function _0x4976e8(){const _0x32af34=_0x313a4d;return[{'value':_0x32af34(0x20a9),'option':_0x32af34(0x18e2)},{'value':_0x32af34(0x10d9),'option':_0x32af34(0x60f)},{'value':_0x32af34(0x2273),'option':_0x32af34(0xa96)},{'value':_0x32af34(0x7c7),'option':_0x32af34(0x1ff5)},{'value':_0x32af34(0x1849),'option':_0x32af34(0x259b)},{'value':_0x32af34(0x228f),'option':_0x32af34(0x6a8)},{'value':_0x32af34(0x257b),'option':_0x32af34(0x26d7)},{'value':'eu-west-2','option':_0x32af34(0x9fc)},{'value':_0x32af34(0xd4c),'option':_0x32af34(0x266)},{'value':_0x32af34(0x21fc),'option':_0x32af34(0x1b8b)},{'value':_0x32af34(0x2824),'option':'Asia\x20Pacific\x20(Sydney)'},{'value':_0x32af34(0x15b4),'option':'Asia\x20Pacific\x20(Seoul)'},{'value':_0x32af34(0x1b70),'option':_0x32af34(0x20bb)},{'value':_0x32af34(0x1ba),'option':_0x32af34(0xf0f)},{'value':'sa-east-1','option':_0x32af34(0x2261)}];}function _0x7adcbe(){const _0x523787=_0x313a4d;return[{'value':_0x523787(0x20a9),'option':_0x523787(0x18e2)},{'value':'us-west-2','option':_0x523787(0x1ff5)},{'value':_0x523787(0x228f),'option':_0x523787(0x6a8)},{'value':'ap-southeast-2','option':_0x523787(0x13d9)}];};_0x510003[_0x313a4d(0x11c2)]=[_0x313a4d(0x10e8),'toasty','currentXML','saveCallback'];function _0x510003(_0x4a45a0,_0x311f72,_0x2c7fbd,_0x1e5094){const _0x28e5c8=_0x313a4d,_0x2ce1c5=this;_0x2ce1c5[_0x28e5c8(0x9e0)]={'preproduction':_0x2c7fbd};function _0x379632(_0x385af8){const _0x3432a9=_0x28e5c8;_0x385af8?(_0x1e5094(_0x2ce1c5[_0x3432a9(0x9e0)]['preproduction']),_0x4a45a0['hide'](_0x2ce1c5[_0x3432a9(0x9e0)][_0x3432a9(0x276b)])):_0x4a45a0[_0x3432a9(0x2458)]();}_0x2ce1c5[_0x28e5c8(0x13f3)]=_0x379632;}const _0x3e610e=_0x510003;;_0x8888d3[_0x313a4d(0x11c2)]=[_0x313a4d(0x10e8),_0x313a4d(0x121d)];function _0x8888d3(_0x4b531d,_0x24c85f){const _0x3b4e7f=_0x313a4d,_0x1b9c32=this,_0x5288fb=0x5,_0x1c27cc=_0x5288fb*0x400*0x400;_0x1b9c32[_0x3b4e7f(0xcef)]=[],_0x1b9c32[_0x3b4e7f(0x4c3)]={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x1c27cc,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x1b9c32['ngFlow']={'flow':{}},_0x1b9c32['dropping']=![],_0x1b9c32[_0x3b4e7f(0x13f3)]=_0x32ef00,_0x1b9c32[_0x3b4e7f(0x143d)]=_0x599548;function _0x599548(_0x327a98){const _0x505046=_0x3b4e7f;_0x1b9c32[_0x505046(0xcef)]=[];const _0x29a576=[_0x505046(0x2415)];!_0x3f65c0()[_0x505046(0xa4e)](_0x29a576,_0x327a98[_0x505046(0x193f)]())&&_0x1b9c32[_0x505046(0xcef)][_0x505046(0x1f47)]({'message':_0x505046(0x21a7)+_0x327a98[_0x505046(0x193f)]()+_0x505046(0x248e)});_0x327a98[_0x505046(0x4cc)]>_0x1c27cc&&_0x1b9c32[_0x505046(0xcef)][_0x505046(0x1f47)]({'message':_0x505046(0xd20)+_0x5288fb+'MB'});if(!_0x1b9c32[_0x505046(0xcef)][_0x505046(0x402)]){const _0x53d36a=new FileReader();_0x53d36a[_0x505046(0x20f6)]=function(_0x352532){const _0xa11d54=_0x505046;_0x32ef00(_0x352532[_0xa11d54(0xe1d)][_0xa11d54(0x61a)]);},_0x53d36a['readAsText'](_0x327a98[_0x505046(0x252e)]);}}function _0x32ef00(_0x3243e9){_0x3243e9?(_0x24c85f(_0x3243e9),_0x4b531d['hide'](_0x3243e9)):_0x4b531d['hide']();}}const _0xf68ade=_0x8888d3;;_0x345e01['$inject']=[_0x313a4d(0x10e8),_0x313a4d(0x1fe4),_0x313a4d(0x9e0),_0x313a4d(0x247f)];function _0x345e01(_0x207ab5,_0xadc5ff,_0x452144,_0xb9f762){const _0x587b1d=_0x313a4d,_0x36dcf2=this;_0x36dcf2[_0x587b1d(0x9e0)]=_0x3f65c0()[_0x587b1d(0x12cc)](_0x452144);function _0x43bcae(){const _0x4dd175=_0x587b1d;_0x36dcf2['errors']=[],_0xb9f762[_0x4dd175(0x9b1)]['update']({'id':_0x36dcf2[_0x4dd175(0x9e0)]['id']},{'notes':_0x36dcf2[_0x4dd175(0x9e0)][_0x4dd175(0x1e13)],'description':_0x36dcf2[_0x4dd175(0x9e0)][_0x4dd175(0xb17)]})[_0x4dd175(0x2945)][_0x4dd175(0x146b)](function(_0xb4105e){const _0x47b58a=_0x4dd175;_0xadc5ff['success']({'title':_0x47b58a(0x987),'msg':_0x36dcf2[_0x47b58a(0x9e0)][_0x47b58a(0x19eb)]?_0x36dcf2[_0x47b58a(0x9e0)][_0x47b58a(0x19eb)]+_0x47b58a(0x6b0):''}),_0x207ab5[_0x47b58a(0x2458)](_0xb4105e);})[_0x4dd175(0x129e)](function(_0x18ef55){const _0x511d4d=_0x4dd175;console[_0x511d4d(0x1980)](_0x18ef55),_0x36dcf2['errors']=_0x18ef55['data']['errors']||[{'message':_0x18ef55['toString'](),'type':_0x511d4d(0x19fc)}];});}function _0x2cf81a(){_0x207ab5['hide']();}_0x36dcf2[_0x587b1d(0x13f3)]=_0x2cf81a,_0x36dcf2[_0x587b1d(0x1e3)]=_0x43bcae;}const _0xdd0d4d=_0x345e01;;_0x1e4638[_0x313a4d(0x11c2)]=['$mdDialog',_0x313a4d(0x1fe4),_0x313a4d(0x1991),'$window',_0x313a4d(0x1862)];function _0x1e4638(_0x5b1d33,_0x4525b7,_0x54b293,_0x1ddc1e,_0x1a3085){const _0x41c88=_0x313a4d,_0x274b46=this;_0x274b46[_0x41c88(0x1991)]=_0x54b293,_0x274b46['id']='',_0x274b46['newWindow']=!![];function _0xe0662b(_0x1906ff){const _0x1fb894=_0x41c88;_0x274b46['errors']=[],_0x1906ff?(_0x5b1d33['hide'](),_0x274b46[_0x1fb894(0x2691)]?_0x1ddc1e['open'](_0x1fb894(0x28c0)+_0x274b46['id'],'_blank'):_0x1a3085['go'](_0x1fb894(0x257),{'id':_0x274b46['id']})):_0x5b1d33[_0x1fb894(0x2458)]();}_0x274b46['closeDialog']=_0xe0662b;}const _0x8252d8=_0x1e4638;;_0x314335['$inject']=['$mdDialog','toasty',_0x313a4d(0x247f),_0x313a4d(0x9e0),'projects','$translate'];function _0x314335(_0x2889b6,_0x21fd34,_0x4b9aad,_0x5b4caf,_0x42d23e,_0x59eda1){const _0x40c78f=_0x313a4d,_0x1dccfa=this;_0x1dccfa['project']=_0x5b4caf,_0x1dccfa['penalty']=0x0,_0x1dccfa[_0x40c78f(0x1fd6)]=[],_0x1dccfa[_0x40c78f(0x1ecf)]=[],_0x1dccfa[_0x40c78f(0x13f3)]=_0x48f1f8,_0x1dccfa[_0x40c78f(0x1f8a)]={'readOnly':![],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x40c78f(0x19eb),'line1':_0x40c78f(0x286a),'line2':[_0x40c78f(0x19eb),_0x40c78f(0x113f)],'line3':_0x40c78f(0x188d),'labelAll':_0x59eda1[_0x40c78f(0xde)](_0x40c78f(0x2335)),'labelSelected':_0x59eda1[_0x40c78f(0xde)](_0x40c78f(0x27ab)),'transferCallback':function(_0x336d66,_0x1a5941){const _0x4cf57f=_0x40c78f;_0x4b9aad[_0x4cf57f(0x9b1)][_0x1a5941?'removeUsers':_0x4cf57f(0x19ea)]({'id':_0x1dccfa[_0x4cf57f(0x9e0)]['id'],'ids':_0x3f65c0()[_0x4cf57f(0x205)](_0x336d66,'id'),'penalty':_0x1dccfa[_0x4cf57f(0x188d)]||0x0})[_0x4cf57f(0x2945)][_0x4cf57f(0x146b)](function(){const _0x573b74=_0x4cf57f;_0x21fd34[_0x573b74(0x1c75)]({'title':_0x573b74(0x5bb)+(_0x1a5941?_0x573b74(0x1618):'added'),'msg':_0x573b74(0x529)+(_0x1a5941?'removed':_0x573b74(0x3f5))+'!'}),!_0x1a5941&&_0x478955();})[_0x4cf57f(0x129e)](function(_0x429464){const _0x202f50=_0x4cf57f;_0x21fd34['error']({'title':_0x429464[_0x202f50(0x107b)]?'API:'+_0x429464[_0x202f50(0x107b)]+_0x202f50(0x1315)+_0x429464['statusText']:'SYSTEM:squareProjects.ADDUSERS','msg':_0x429464[_0x202f50(0x107b)]?JSON[_0x202f50(0x10bb)](_0x429464['data']):_0x429464[_0x202f50(0xd5f)]()});});}};function _0x478955(){const _0x444ba0=_0x40c78f;return _0x4b9aad[_0x444ba0(0x9b1)]['getUsers']({'id':_0x1dccfa['project']['id'],'fields':_0x444ba0(0x1d1c),'nolimit':!![],'role':_0x444ba0(0xe7b)})['$promise'][_0x444ba0(0x146b)](function(_0x232af2){const _0x10fe33=_0x444ba0;return _0x1dccfa['selectedItems']=_0x232af2[_0x10fe33(0x19c7)]?_0x3f65c0()[_0x10fe33(0x205)](_0x232af2[_0x10fe33(0x19c7)],function(_0x1cb3bd){return _0x1cb3bd;}):[],_0x1dccfa[_0x10fe33(0x1f8a)][_0x10fe33(0x1ecf)]=_0x1dccfa['selectedItems'],_0x4b9aad[_0x10fe33(0xe7b)][_0x10fe33(0x16b4)]({'fields':_0x10fe33(0xc33),'role':_0x10fe33(0xe7b),'nolimit':!![]})[_0x10fe33(0x2945)];})['then'](function(_0x33f350){const _0x2dd702=_0x444ba0;_0x1dccfa[_0x2dd702(0x1fd6)]=_0x33f350[_0x2dd702(0x19c7)]?_0x3f65c0()[_0x2dd702(0x205)](_0x33f350[_0x2dd702(0x19c7)],function(_0x58c7f6){return _0x58c7f6;}):[],_0x1dccfa[_0x2dd702(0x1f8a)]['items']=_0x3f65c0()[_0x2dd702(0x2796)](_0x1dccfa[_0x2dd702(0x1fd6)],_0x1dccfa[_0x2dd702(0x1ecf)],'id');})[_0x444ba0(0x129e)](function(_0x295009){const _0x326fa5=_0x444ba0;_0x21fd34[_0x326fa5(0x1980)]({'title':_0x295009[_0x326fa5(0x107b)]?_0x326fa5(0x262a)+_0x295009['status']+_0x326fa5(0x1315)+_0x295009[_0x326fa5(0x167f)]:_0x326fa5(0x4fc),'msg':_0x295009[_0x326fa5(0x107b)]?JSON['stringify'](_0x295009[_0x326fa5(0x524)]):_0x295009[_0x326fa5(0xd5f)]()});});}function _0x48f1f8(){const _0x17de0d=_0x40c78f;_0x2889b6[_0x17de0d(0x2458)]();}_0x478955();}const _0x38d484=_0x314335;;_0x10205e[_0x313a4d(0x11c2)]=[_0x313a4d(0x10e8),_0x313a4d(0x1fe4),_0x313a4d(0x9e0),_0x313a4d(0x2753),_0x313a4d(0x247f),_0x313a4d(0x1aa9),'$state'];function _0x10205e(_0x14e2bc,_0x4b9ac9,_0xaff8cf,_0xb98ebc,_0x2473c9,_0x40d764,_0x2e4dad){const _0x1d4349=_0x313a4d,_0x2d8769=this;_0x2d8769[_0x1d4349(0x9e0)]=angular[_0x1d4349(0x235a)](_0xaff8cf),_0x2d8769[_0x1d4349(0x9e0)][_0x1d4349(0x19eb)]+=_0x1d4349(0x2787),_0x2d8769[_0x1d4349(0x9e0)]['preproduction']=_0xb98ebc,_0x2d8769['newWindow']=!![];function _0x2bd573(){const _0x1b470e=_0x1d4349;delete _0x2d8769[_0x1b470e(0x9e0)]['id'],_0x2473c9[_0x1b470e(0x9b1)][_0x1b470e(0x1e3)](_0x2d8769[_0x1b470e(0x9e0)])[_0x1b470e(0x2945)][_0x1b470e(0x146b)](function(_0x20a657){const _0x89a48b=_0x1b470e;_0x4b9ac9['success']({'title':_0x89a48b(0x1266),'msg':_0x2d8769[_0x89a48b(0x9e0)][_0x89a48b(0x19eb)]?_0x2d8769['project'][_0x89a48b(0x19eb)]+'\x20has\x20been\x20created!':''}),_0x14e2bc[_0x89a48b(0x2458)](_0x20a657),_0x2d8769[_0x89a48b(0x2691)]?_0x40d764[_0x89a48b(0x217a)](_0x89a48b(0x28c0)+_0x20a657['id'],_0x89a48b(0x20f1)):_0x2e4dad['go']('app.callysquare.projects.edit',{'id':_0x20a657['id']});})['catch'](function(_0xbb96f4){const _0x2a1ca8=_0x1b470e;console['error'](_0xbb96f4),_0x2d8769[_0x2a1ca8(0xcef)]=_0xbb96f4[_0x2a1ca8(0x524)]['errors']||[{'message':_0xbb96f4[_0x2a1ca8(0xd5f)](),'type':_0x2a1ca8(0x181c)}];});}function _0x46d384(){const _0x3b7693=_0x1d4349;_0x14e2bc[_0x3b7693(0x2458)]();}_0x2d8769[_0x1d4349(0x13f3)]=_0x46d384,_0x2d8769[_0x1d4349(0x1e3)]=_0x2bd573;}const _0x5733e4=_0x10205e;;const _0x406baf=_0x4acfac['p']+_0x313a4d(0x10f3);;const _0xfd129a=_0x4acfac['p']+'src/js/modules/main/apps/callysquare/views/projects/create/dialog.html/dialog.html';;const _0x46bb01=_0x4acfac['p']+_0x313a4d(0x1c7);;const _0x49868b=_0x4acfac['p']+_0x313a4d(0xded);;const _0x551572=_0x4acfac['p']+'src/js/modules/main/apps/callysquare/views/projects/edit/info/info.html/info.html';;const _0x1bddf1=_0x4acfac['p']+_0x313a4d(0x1acb);;const _0x373bb7=_0x4acfac['p']+'src/js/modules/main/apps/callysquare/views/projects/edit/import/import.html/import.html';;_0x5f4d2a[_0x313a4d(0x11c2)]=[_0x313a4d(0x1862),_0x313a4d(0x4d8),_0x313a4d(0x10e8),'$q',_0x313a4d(0x214b),_0x313a4d(0x1fe4),_0x313a4d(0x247f),_0x313a4d(0x9e0),_0x313a4d(0x1995),'trunks','queues','sounds',_0x313a4d(0x85b),_0x313a4d(0x22c8),'contexts','projects',_0x313a4d(0x278f),'mailAccounts',_0x313a4d(0x2841),_0x313a4d(0x1324),_0x313a4d(0x1c34),_0x313a4d(0x23bb),'userProfileSection','Auth'];const _0x3adcc3=window[_0x313a4d(0x27c0)],_0x32ac34=window[_0x313a4d(0x954)];function _0x5f4d2a(_0x3ac158,_0x2a8116,_0x330cb5,_0x16c30f,_0x56bc97,_0x26362c,_0x475ab2,_0x15a98d,_0x5e791b,_0x197ccf,_0x51d5c5,_0x296da2,_0x5adaee,_0x28a729,_0x4ca449,_0x58b71c,_0x4db49d,_0x253333,_0x598c9a,_0x26fdb8,_0x5eeba7,_0x350b9d,_0x811b3f,_0x1e57db){const _0xbb7715=_0x313a4d,_0x1b0b3e=this;_0x1b0b3e[_0xbb7715(0x2321)]=_0x1e57db[_0xbb7715(0xb12)](),_0x1b0b3e[_0xbb7715(0x9e0)]=_0x15a98d||{},_0x1b0b3e[_0xbb7715(0x1366)]=_0x811b3f&&_0x811b3f[_0xbb7715(0x51c)]==0x1?_0x811b3f[_0xbb7715(0x19c7)][0x0]:null,_0x1b0b3e[_0xbb7715(0x2514)]=_0x1e57db['parseCrudPermissions'](_0x1b0b3e[_0xbb7715(0x1366)]?_0x1b0b3e[_0xbb7715(0x1366)][_0xbb7715(0x2514)]:null),_0x1b0b3e['onInit']=_0xebb5e6,_0x1b0b3e[_0xbb7715(0x2303)]=_0x33cb80,_0x1b0b3e[_0xbb7715(0x8e6)]=_0x319e62,_0x1b0b3e[_0xbb7715(0x125c)]=_0x2bc97b,_0x1b0b3e['openProject']=_0x129f6e,_0x1b0b3e['saveProjectAs']=_0x8d17c5,_0x1b0b3e[_0xbb7715(0x10ff)]=_0x516fda,_0x1b0b3e[_0xbb7715(0x160f)]=_0x23faaa,_0x1b0b3e['editXML']=_0x5e06f6,_0x1b0b3e[_0xbb7715(0x23de)]=_0x547ded,_0x1b0b3e[_0xbb7715(0x2634)]=_0x5013f7;function _0xebb5e6(){const _0x2148a8=_0xbb7715,_0x3fe472=new _0x3adcc3(_0x1b0b3e,new _0x32ac34(),document[_0x2148a8(0x156b)](_0x2148a8(0x24b5)));_0x3fe472['openString'](_0x1b0b3e['project'][_0x2148a8(0x276b)],_0x1b0b3e[_0x2148a8(0x9e0)]['name'],_0x1b0b3e[_0x2148a8(0x9e0)]);}function _0x319e62(_0x26e89b,_0x5cd660){const _0x50d10b=_0xbb7715;_0x330cb5[_0x50d10b(0x2615)]({'controller':_0x50d10b(0xea5),'controllerAs':'vm','templateUrl':_0x406baf,'parent':angular[_0x50d10b(0x1853)](_0x2a8116[_0x50d10b(0x2586)]),'clickOutsideToClose':!![],'locals':{'users':_0x5e791b[_0x50d10b(0x19c7)]||[],'trunks':_0x197ccf[_0x50d10b(0x19c7)]||[],'queues':_0x51d5c5[_0x50d10b(0x19c7)]||[],'sounds':_0x296da2[_0x50d10b(0x19c7)]||[],'variables':_0x5adaee[_0x50d10b(0x19c7)]||[],'databases':_0x28a729[_0x50d10b(0x19c7)]||[],'contexts':_0x4ca449[_0x50d10b(0x19c7)]||[],'projects':_0x58b71c['rows']||[],'intervals':_0x4db49d[_0x50d10b(0x19c7)]||[],'mailAccounts':_0x253333['rows']||[],'smsAccounts':_0x5eeba7['rows']||[],'pauses':_0x350b9d['rows']||[],'templates':_0x598c9a[_0x50d10b(0x19c7)]||[],'lists':_0x26fdb8['rows']||[],'cell':_0x26e89b,'saveCallback':_0x5cd660,'crudPermissions':_0x1b0b3e[_0x50d10b(0x2514)]}});}function _0x2bc97b(_0x4c8d50){const _0x63298f=_0xbb7715;_0x330cb5[_0x63298f(0x2615)]({'controller':_0x63298f(0x2864),'controllerAs':'vm','templateUrl':_0xfd129a,'parent':angular['element'](_0x2a8116[_0x63298f(0x2586)]),'clickOutsideToClose':!![],'locals':{'project':_0x4c8d50,'projects':_0x58b71c[_0x63298f(0x19c7)],'openFromEditor':!![],'license':null,'setting':null,'crudPermissions':_0x1b0b3e[_0x63298f(0x2514)]}});}function _0x129f6e(){const _0x1be9d5=_0xbb7715;_0x330cb5[_0x1be9d5(0x2615)]({'controller':_0x1be9d5(0x841),'controllerAs':'vm','templateUrl':_0x46bb01,'parent':angular[_0x1be9d5(0x1853)](_0x2a8116[_0x1be9d5(0x2586)]),'clickOutsideToClose':!![],'locals':{'projects':_0x58b71c[_0x1be9d5(0x19c7)]||[]}});}function _0x8d17c5(_0x206f97){const _0x5498b2=_0xbb7715;_0x330cb5['show']({'controller':_0x5498b2(0x28d4),'controllerAs':'vm','templateUrl':_0x49868b,'parent':angular[_0x5498b2(0x1853)](_0x2a8116[_0x5498b2(0x2586)]),'clickOutsideToClose':!![],'locals':{'project':_0x1b0b3e['project'],'currentXML':_0x206f97}})[_0x5498b2(0x146b)](function(_0x56d277){const _0x475492=_0x5498b2;_0x56d277&&_0x58b71c['rows'][_0x475492(0x1f47)](_0x56d277);});}function _0x452ec9(){return _0x16c30f(function(_0x5872e5,_0x33812c){const _0x36b163=a0_0x3bb9;return _0x475ab2[_0x36b163(0x1366)][_0x36b163(0x16b4)]({'userProfileId':_0x1b0b3e[_0x36b163(0x2321)][_0x36b163(0x209a)],'sectionId':0x3f4})[_0x36b163(0x2945)]['then'](function(_0x4bdf15){const _0x1b4a3f=_0x36b163,_0x1e422c=_0x4bdf15[_0x1b4a3f(0x19c7)]?_0x4bdf15[_0x1b4a3f(0x19c7)][0x0]:null,_0x4fc269=_0x1e57db[_0x1b4a3f(0xe60)](_0x1e422c?_0x1e422c['crudPermissions']:null);_0x5872e5(_0x4fc269);})[_0x36b163(0x129e)](function(_0x51bce3){_0x33812c(_0x51bce3);});});}function _0x516fda(_0x5e6f9e){const _0x3ef582=_0xbb7715;return _0x452ec9()[_0x3ef582(0x146b)](function(_0xf735b9){const _0x2a27d9=_0x3ef582;_0xf735b9[_0x2a27d9(0x15f4)]?_0x330cb5['show']({'controller':_0x2a27d9(0x1a4a),'controllerAs':'vm','templateUrl':_0x2c833f,'parent':angular[_0x2a27d9(0x1853)](_0x2a8116['body']),'clickOutsideToClose':!![],'locals':{'variable':_0x5e6f9e,'variables':_0x5adaee[_0x2a27d9(0x19c7)],'license':null,'setting':null,'crudPermissions':_0xf735b9}}):_0x26362c['info']({'title':_0x56bc97[_0x2a27d9(0xde)]('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_TITLE'),'msg':_0x56bc97[_0x2a27d9(0xde)](_0x2a27d9(0x1a78))});})[_0x3ef582(0x129e)](function(_0x40412d){const _0x1c4f45=_0x3ef582;_0x26362c[_0x1c4f45(0x1980)]({'title':_0x40412d['status']?'API:'+_0x40412d[_0x1c4f45(0x107b)]+_0x1c4f45(0x1315)+_0x40412d[_0x1c4f45(0x167f)]:'API:NEW_VARIABLE','msg':_0x40412d['data']?JSON[_0x1c4f45(0x10bb)](_0x40412d[_0x1c4f45(0x524)]):_0x40412d[_0x1c4f45(0xd5f)]()});});}function _0x23faaa(_0x16036f){const _0x3192ce=_0xbb7715;_0x330cb5[_0x3192ce(0x2615)]({'controller':_0x3192ce(0xb36),'controllerAs':'vm','templateUrl':_0x551572,'parent':angular[_0x3192ce(0x1853)](_0x2a8116[_0x3192ce(0x2586)]),'targetEvent':_0x16036f,'clickOutsideToClose':!![],'locals':{'project':_0x1b0b3e[_0x3192ce(0x9e0)]}})[_0x3192ce(0x146b)](function(_0x2a8c9a){const _0x48aa1f=_0x3192ce;_0x2a8c9a&&_0x3f65c0()[_0x48aa1f(0x168d)](_0x1b0b3e[_0x48aa1f(0x9e0)],_0x2a8c9a);});}function _0x5e06f6(_0x2a5519,_0x333473){const _0x27ec7b=_0xbb7715;_0x330cb5[_0x27ec7b(0x2615)]({'controller':_0x27ec7b(0xf24),'controllerAs':'vm','templateUrl':_0x1bddf1,'parent':angular[_0x27ec7b(0x1853)](_0x2a8116['body']),'clickOutsideToClose':!![],'locals':{'currentXML':_0x2a5519,'saveCallback':_0x333473}})[_0x27ec7b(0x146b)](function(_0x5adecc){const _0x3588c4=_0x27ec7b;_0x5adecc&&(_0x1b0b3e[_0x3588c4(0x9e0)][_0x3588c4(0x276b)]=_0x5adecc);});}function _0x547ded(_0x4969e0){const _0x522e3e=_0xbb7715;_0x330cb5[_0x522e3e(0x2615)]({'controller':_0x522e3e(0x137a),'controllerAs':'vm','templateUrl':_0x373bb7,'parent':angular['element'](_0x2a8116[_0x522e3e(0x2586)]),'clickOutsideToClose':!![],'locals':{'saveCallback':_0x4969e0}})[_0x522e3e(0x146b)](function(_0x3f9312){const _0x8d3ddf=_0x522e3e;_0x3f9312&&(_0x1b0b3e[_0x8d3ddf(0x9e0)][_0x8d3ddf(0x276b)]=_0x3f9312);});}function _0x33cb80(_0x4526c9,_0x31650c){const _0x28eac8=_0xbb7715,_0x15def4={'preproduction':_0x4526c9};_0x31650c&&(_0x15def4[_0x28eac8(0x7f2)]=_0x4526c9),_0x475ab2[_0x28eac8(0x9b1)][_0x28eac8(0x18e1)]({'id':_0x1b0b3e['project']['id']},_0x15def4)[_0x28eac8(0x2945)][_0x28eac8(0x146b)](function(_0x450fa4){const _0x49c969=_0x28eac8;_0x26362c[_0x49c969(0x1c75)]({'title':'Project\x20'+(_0x31650c?_0x49c969(0x1f50):_0x49c969(0x1a2e))+'!','msg':_0x1b0b3e[_0x49c969(0x9e0)][_0x49c969(0x19eb)]?_0x1b0b3e[_0x49c969(0x9e0)]['name']+_0x49c969(0x8db)+(_0x31650c?'published':_0x49c969(0x1a2e))+'!':''}),_0x1b0b3e[_0x49c969(0x9e0)][_0x49c969(0x276b)]=_0x450fa4[_0x49c969(0x276b)];})[_0x28eac8(0x129e)](function(_0x44c9e6){const _0x5ddbb1=_0x28eac8;_0x26362c[_0x5ddbb1(0x1980)]({'title':_0x44c9e6[_0x5ddbb1(0x107b)]?_0x5ddbb1(0x262a)+_0x44c9e6[_0x5ddbb1(0x107b)]+_0x5ddbb1(0x1315)+_0x44c9e6['statusText']:_0x5ddbb1(0x123d),'msg':_0x44c9e6[_0x5ddbb1(0x524)]?JSON[_0x5ddbb1(0x10bb)](_0x44c9e6[_0x5ddbb1(0x524)]):_0x44c9e6[_0x5ddbb1(0xd5f)]()});});}function _0x5013f7(){const _0x2d81b5=_0xbb7715;_0x3ac158['go'](_0x2d81b5(0x14d0),{},{'reload':_0x2d81b5(0x14d0)});}}const _0x1d8345=_0x5f4d2a;;_0x23cc12[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),'$state',_0x313a4d(0x15fe),_0x313a4d(0x1991),_0x313a4d(0x26b6),'userProfileSection','api',_0x313a4d(0x216c),_0x313a4d(0x10e8),_0x313a4d(0x4d8),_0x313a4d(0x1abe),_0x313a4d(0x1fe4),_0x313a4d(0xa87)];function _0x23cc12(_0x45a862,_0x3fa8bf,_0x21aa61,_0x2ef225,_0xb6560e,_0x219fce,_0x32364f,_0x5d231e,_0x50acb4,_0x3a5e74,_0x17ec40,_0x1e8cca,_0x5e3527){const _0x3145aa=_0x313a4d,_0x1b16e9=this;_0x1b16e9[_0x3145aa(0x2321)]=_0x5e3527['getCurrentUser'](),_0x1b16e9[_0x3145aa(0x1991)]=_0x2ef225||{'count':0x0,'rows':[]},_0x1b16e9[_0x3145aa(0x26b6)]=_0xb6560e,_0x1b16e9['userProfileSection']=_0x219fce&&_0x219fce['count']==0x1?_0x219fce[_0x3145aa(0x19c7)][0x0]:null,_0x1b16e9[_0x3145aa(0x2514)]=_0x5e3527[_0x3145aa(0xe60)](_0x1b16e9[_0x3145aa(0x1366)]?_0x1b16e9[_0x3145aa(0x1366)][_0x3145aa(0x2514)]:null),_0x1b16e9['table']=_0x3145aa(0x1991),_0x1b16e9[_0x3145aa(0x216a)]='',_0x1b16e9['listOrderAsc']=null,_0x1b16e9['selectedProjects']=[],_0x1b16e9['query']={'fields':'id,name,description,notes','sort':_0x3145aa(0x12f2),'limit':0xa,'page':0x1},_0x1b16e9[_0x3145aa(0x23f9)]=_0x475beb,_0x1b16e9[_0x3145aa(0xf0a)]=_0x51da49,_0x1b16e9[_0x3145aa(0x1c75)]=_0x4424cf,_0x1b16e9[_0x3145aa(0x2858)]=_0xa4ba60,_0x1b16e9[_0x3145aa(0x1a1b)]=_0x2e5daa,_0x1b16e9['deleteProject']=_0x41d2f1,_0x1b16e9['exportSelectedProjects']=_0xa37665,_0x1b16e9[_0x3145aa(0x647)]=_0x62cf1e,_0x1b16e9[_0x3145aa(0x1188)]=_0xf78d46,_0x1b16e9['selectAllProjects']=_0x5466e5;function _0x475beb(_0x3c4f0c){const _0xcbf24a=_0x3145aa;_0x3fa8bf['go'](_0xcbf24a(0x257),{'id':_0x3c4f0c['id'],'crudPermissions':_0x1b16e9[_0xcbf24a(0x2514)]});}function _0x51da49(_0x1b31b0,_0xd67690){const _0x5c6dc4=_0x3145aa,_0x334585=_0x50acb4[_0x5c6dc4(0x1e8a)]()['title'](_0x5c6dc4(0x79f))[_0x5c6dc4(0x1cbe)](_0x5c6dc4(0x16d3)+_0x1b31b0[_0x5c6dc4(0x19eb)]+_0x5c6dc4(0x252f)+_0x5c6dc4(0xe01))[_0x5c6dc4(0x4bd)](_0x5c6dc4(0x2813))[_0x5c6dc4(0x1f27)](_0xd67690)['ok']('OK')['cancel'](_0x5c6dc4(0x39a));_0x50acb4[_0x5c6dc4(0x2615)](_0x334585)[_0x5c6dc4(0x146b)](function(){_0x41d2f1(_0x1b31b0);},function(){const _0x357e6d=_0x5c6dc4;console[_0x357e6d(0x1a74)](_0x357e6d(0x39a));});}let _0x12f17c=!![],_0x32faeb=0x1;_0x45a862[_0x3145aa(0x21e8)](_0x3145aa(0x2669),function(_0x579247,_0x5c96df){const _0x20546d=_0x3145aa;_0x12f17c?_0x17ec40(function(){_0x12f17c=![];}):(!_0x5c96df&&(_0x32faeb=_0x1b16e9[_0x20546d(0x1a56)][_0x20546d(0x844)]),_0x579247!==_0x5c96df&&(_0x1b16e9[_0x20546d(0x1a56)]['page']=0x1),!_0x579247&&(_0x1b16e9[_0x20546d(0x1a56)]['page']=_0x32faeb),_0x1b16e9[_0x20546d(0x2858)]());});function _0x4424cf(_0x207861){const _0x4911eb=_0x3145aa;_0x1b16e9[_0x4911eb(0x1991)]=_0x207861||{'count':0x0,'rows':[]};}function _0xa4ba60(){const _0x466620=_0x3145aa;_0x1b16e9['query'][_0x466620(0x145d)]=(_0x1b16e9[_0x466620(0x1a56)]['page']-0x1)*_0x1b16e9[_0x466620(0x1a56)]['limit'],_0x5e3527[_0x466620(0x23e0)]('admin')?_0x1b16e9[_0x466620(0xb9c)]=_0x32364f[_0x466620(0x9b1)][_0x466620(0x16b4)](_0x1b16e9[_0x466620(0x1a56)],_0x4424cf)[_0x466620(0x2945)]:(_0x1b16e9[_0x466620(0x1a56)]['id']=_0x1b16e9['userProfile']['id'],_0x1b16e9[_0x466620(0x1a56)]['section']=_0x466620(0x14e8),_0x1b16e9[_0x466620(0xb9c)]=_0x32364f[_0x466620(0x26b6)][_0x466620(0x158f)](_0x1b16e9['query'],_0x4424cf)[_0x466620(0x2945)]);}function _0x2e5daa(_0x12e092,_0x299bf5){const _0x2f25b1=_0x3145aa;_0x50acb4['show']({'controller':_0x2f25b1(0x2864),'controllerAs':'vm','templateUrl':_0xfd129a,'parent':angular[_0x2f25b1(0x1853)](_0x3a5e74[_0x2f25b1(0x2586)]),'targetEvent':_0x12e092,'clickOutsideToClose':!![],'locals':{'project':_0x299bf5,'projects':_0x1b16e9['projects']['rows'],'openFromEditor':null,'setting':null,'crudPermissions':_0x1b16e9[_0x2f25b1(0x2514)]}});}function _0x41d2f1(_0x153a44){const _0x2c9b90=_0x3145aa;_0x32364f[_0x2c9b90(0x9b1)][_0x2c9b90(0x1fac)]({'id':_0x153a44['id']})[_0x2c9b90(0x2945)][_0x2c9b90(0x146b)](function(){const _0x5dc075=_0x2c9b90;_0x3f65c0()[_0x5dc075(0x2640)](_0x1b16e9['projects'][_0x5dc075(0x19c7)],{'id':_0x153a44['id']}),_0x1b16e9[_0x5dc075(0x1991)]['count']-=0x1,!_0x1b16e9[_0x5dc075(0x1991)][_0x5dc075(0x19c7)][_0x5dc075(0x402)]&&_0x1b16e9['getProjects'](),_0x1e8cca['success']({'title':_0x5dc075(0x291d),'msg':_0x153a44['name']?_0x153a44[_0x5dc075(0x19eb)]+_0x5dc075(0x23e3):''});})[_0x2c9b90(0x129e)](function(_0x15ba5b){const _0x386917=_0x2c9b90;if(_0x15ba5b['data']&&_0x15ba5b[_0x386917(0x524)][_0x386917(0xcef)]&&_0x15ba5b[_0x386917(0x524)][_0x386917(0xcef)][_0x386917(0x402)]){_0x1b16e9['errors']=_0x15ba5b[_0x386917(0x524)][_0x386917(0xcef)]||[{'message':_0x15ba5b[_0x386917(0xd5f)](),'type':'api.project.delete'}];for(let _0x59968e=0x0;_0x59968e<_0x15ba5b[_0x386917(0x524)][_0x386917(0xcef)][_0x386917(0x402)];_0x59968e++){_0x1e8cca[_0x386917(0x1980)]({'title':_0x15ba5b[_0x386917(0x524)]['errors'][_0x59968e][_0x386917(0x1142)],'msg':_0x15ba5b['data'][_0x386917(0xcef)][_0x59968e][_0x386917(0x7fd)]});}}else _0x1e8cca['error']({'title':_0x15ba5b[_0x386917(0x107b)]?_0x386917(0x262a)+_0x15ba5b[_0x386917(0x107b)]+_0x386917(0x1315)+_0x15ba5b[_0x386917(0x167f)]:_0x386917(0x26d1),'msg':_0x15ba5b[_0x386917(0x524)]?JSON['stringify'](_0x15ba5b[_0x386917(0x524)][_0x386917(0x7fd)]):_0x15ba5b[_0x386917(0x7fd)]||_0x15ba5b[_0x386917(0xd5f)]()});});}function _0xa37665(){const _0x2ed23f=_0x3145aa,_0x1189ec=angular['copy'](_0x1b16e9[_0x2ed23f(0x26f7)]);return _0x1b16e9[_0x2ed23f(0x26f7)]=[],_0x1189ec;}function _0x62cf1e(_0x3f5a49){const _0x4a3392=_0x3145aa,_0x31e597=_0x50acb4[_0x4a3392(0x1e8a)]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20projects?')[_0x4a3392(0x1cbe)](_0x4a3392(0x16d3)+_0x1b16e9[_0x4a3392(0x26f7)][_0x4a3392(0x402)]+_0x4a3392(0x2452)+_0x4a3392(0xe01))[_0x4a3392(0x4bd)](_0x4a3392(0x674))[_0x4a3392(0x1f27)](_0x3f5a49)['ok']('OK')[_0x4a3392(0x6c3)](_0x4a3392(0x39a));_0x50acb4[_0x4a3392(0x2615)](_0x31e597)[_0x4a3392(0x146b)](function(){const _0xdaca4f=_0x4a3392;_0x1b16e9[_0xdaca4f(0x26f7)][_0xdaca4f(0x1df5)](function(_0x5243a3){_0x41d2f1(_0x5243a3);}),_0x1b16e9['selectedProjects']=[];});}function _0xf78d46(){const _0x1383fc=_0x3145aa;_0x1b16e9[_0x1383fc(0x26f7)]=[];}function _0x5466e5(){const _0x38fa2e=_0x3145aa;_0x1b16e9['selectedProjects']=_0x1b16e9[_0x38fa2e(0x1991)][_0x38fa2e(0x19c7)];}}const _0x1b9200=_0x23cc12;;_0x3caa17[_0x313a4d(0x11c2)]=['$stateProvider'];function _0x3caa17(_0x5931c7){const _0x2e55cd=_0x313a4d;_0x5931c7[_0x2e55cd(0x13d6)](_0x2e55cd(0x14d0),{'url':_0x2e55cd(0x165f),'views':{'content@app':{'templateUrl':_0x3becc7,'controller':'ProjectsController\x20as\x20vm'}},'resolve':{'projects':[_0x2e55cd(0x362),_0x2e55cd(0xa87),function(_0x523ec6,_0x3722d5){const _0x59d0ce=_0x2e55cd;return _0x3722d5[_0x59d0ce(0x23e0)](_0x59d0ce(0x174b))?_0x523ec6['resolve']('squareProject@get',{'fields':_0x59d0ce(0x140),'sort':_0x59d0ce(0x19eb),'limit':0xa,'offset':0x0}):_0x523ec6[_0x59d0ce(0x2922)](_0x59d0ce(0x938),{'id':_0x3722d5[_0x59d0ce(0xb12)]()['userProfileId'],'section':_0x59d0ce(0x14e8),'fields':_0x59d0ce(0x140),'sort':_0x59d0ce(0x19eb),'limit':0xa,'offset':0x0});}],'userProfile':[_0x2e55cd(0x362),_0x2e55cd(0xa87),function(_0xaee4b3,_0x53f3c5){const _0x59d76a=_0x2e55cd;return _0xaee4b3[_0x59d76a(0x2922)](_0x59d76a(0x119a),{'fields':_0x59d76a(0x227),'id':_0x53f3c5[_0x59d76a(0xb12)]()[_0x59d76a(0x209a)]});}],'userProfileSection':['apiResolver','Auth',function(_0xf186c9,_0x2d4824){const _0x361ce3=_0x2e55cd;return _0xf186c9['resolve'](_0x361ce3(0x27be),{'fields':_0x361ce3(0x1e64),'userProfileId':_0x2d4824[_0x361ce3(0xb12)]()[_0x361ce3(0x209a)],'sectionId':0x44f});}]},'authenticate':!![],'permissionId':0x44f,'bodyClass':'callysquare'})[_0x2e55cd(0x13d6)](_0x2e55cd(0x257),{'url':_0x2e55cd(0x5e9),'views':{'content@app':{'templateUrl':_0x190e89,'controller':_0x2e55cd(0x777)}},'params':{'crudPermissions':undefined},'resolve':{'project':['apiResolver',_0x2e55cd(0x28c8),function(_0x5b07b2,_0x567bbb){const _0x3fcbd8=_0x2e55cd;return _0x5b07b2['resolve'](_0x3fcbd8(0x14d1),{'id':_0x567bbb['id']});}],'users':[_0x2e55cd(0x362),_0x2e55cd(0xa87),function(_0x14ec44,_0x1fc6a2){const _0x58aa2e=_0x2e55cd;return _0x1fc6a2[_0x58aa2e(0x23e0)]('admin')?_0x14ec44[_0x58aa2e(0x2922)](_0x58aa2e(0x2484),{'fields':_0x58aa2e(0x1f6),'sort':_0x58aa2e(0x19eb),'nolimit':!![]}):_0x14ec44[_0x58aa2e(0x2922)]('userProfile@getResources',{'id':_0x1fc6a2[_0x58aa2e(0xb12)]()[_0x58aa2e(0x209a)],'section':'Users','mergeResources':!![],'fields':_0x58aa2e(0x1f6),'sort':_0x58aa2e(0x19eb),'nolimit':!![]});}],'trunks':['apiResolver',_0x2e55cd(0xa87),function(_0x8353,_0xff2fd8){const _0x19e20c=_0x2e55cd;return _0xff2fd8['hasRole'](_0x19e20c(0x174b))?_0x8353['resolve'](_0x19e20c(0x244b),{'fields':'id,name','sort':_0x19e20c(0x19eb),'nolimit':!![]}):_0x8353[_0x19e20c(0x2922)]('userProfile@getResources',{'id':_0xff2fd8[_0x19e20c(0xb12)]()[_0x19e20c(0x209a)],'section':'Trunks','fields':_0x19e20c(0x7a7),'sort':_0x19e20c(0x19eb),'nolimit':!![]});}],'queues':[_0x2e55cd(0x362),_0x2e55cd(0xa87),function(_0x569e31,_0x5cae10){const _0x1608a5=_0x2e55cd;return _0x5cae10['hasRole']('admin')?_0x569e31['resolve'](_0x1608a5(0x5c0),{'type':'inbound','fields':_0x1608a5(0x7a7),'sort':_0x1608a5(0x19eb),'nolimit':!![]}):_0x569e31['resolve'](_0x1608a5(0x938),{'id':_0x5cae10[_0x1608a5(0xb12)]()[_0x1608a5(0x209a)],'section':'VoiceQueues','type':'inbound','fields':_0x1608a5(0x7a7),'sort':_0x1608a5(0x19eb),'nolimit':!![]});}],'sounds':[_0x2e55cd(0x362),_0x2e55cd(0xa87),function(_0x59f645,_0x17474c){const _0x4c3936=_0x2e55cd;return _0x17474c[_0x4c3936(0x23e0)](_0x4c3936(0x174b))?_0x59f645[_0x4c3936(0x2922)](_0x4c3936(0x537),{'fields':_0x4c3936(0x7a7),'sort':_0x4c3936(0x19eb),'nolimit':!![]}):_0x59f645['resolve'](_0x4c3936(0x938),{'id':_0x17474c[_0x4c3936(0xb12)]()[_0x4c3936(0x209a)],'section':_0x4c3936(0x175f),'fields':_0x4c3936(0x7a7),'sort':_0x4c3936(0x19eb),'nolimit':!![]});}],'variables':[_0x2e55cd(0x362),_0x2e55cd(0xa87),function(_0x3a4360,_0x3bd60c){const _0x3d1320=_0x2e55cd;return _0x3bd60c[_0x3d1320(0x23e0)](_0x3d1320(0x174b))?_0x3a4360[_0x3d1320(0x2922)]('variable@get',{'fields':_0x3d1320(0x7a7),'sort':_0x3d1320(0x19eb),'nolimit':!![]}):_0x3a4360[_0x3d1320(0x2922)](_0x3d1320(0x938),{'id':_0x3bd60c['getCurrentUser']()['userProfileId'],'section':_0x3d1320(0x18ce),'fields':_0x3d1320(0x7a7),'sort':_0x3d1320(0x19eb),'nolimit':!![]});}],'databases':[_0x2e55cd(0x362),_0x2e55cd(0xa87),function(_0x2c1de7,_0x565347){const _0x4db446=_0x2e55cd;return _0x565347[_0x4db446(0x23e0)](_0x4db446(0x174b))?_0x2c1de7[_0x4db446(0x2922)]('squareOdbc@get',{'fields':_0x4db446(0x7a7),'sort':_0x4db446(0x19eb),'nolimit':!![]}):_0x2c1de7[_0x4db446(0x2922)](_0x4db446(0x938),{'id':_0x565347[_0x4db446(0xb12)]()[_0x4db446(0x209a)],'section':'ODBC','fields':_0x4db446(0x7a7),'sort':_0x4db446(0x19eb),'nolimit':!![]});}],'projects':[_0x2e55cd(0x362),'Auth',function(_0x2445fe,_0x1dd446){const _0x4e26e4=_0x2e55cd;return _0x1dd446[_0x4e26e4(0x23e0)](_0x4e26e4(0x174b))?_0x2445fe['resolve']('squareProject@get',{'fields':_0x4e26e4(0x7a7),'sort':_0x4e26e4(0x19eb),'nolimit':!![]}):_0x2445fe['resolve']('userProfile@getResources',{'id':_0x1dd446[_0x4e26e4(0xb12)]()[_0x4e26e4(0x209a)],'section':_0x4e26e4(0x14e8),'fields':_0x4e26e4(0x7a7),'sort':'name','nolimit':!![]});}],'contexts':[_0x2e55cd(0x362),_0x2e55cd(0xa87),function(_0x35892d,_0x492431){const _0x214fb8=_0x2e55cd;return _0x492431['hasRole'](_0x214fb8(0x174b))?_0x35892d[_0x214fb8(0x2922)]('voiceContext@get',{'fields':_0x214fb8(0x7a7),'sort':_0x214fb8(0x19eb),'nolimit':!![]}):_0x35892d[_0x214fb8(0x2922)](_0x214fb8(0x938),{'id':_0x492431[_0x214fb8(0xb12)]()['userProfileId'],'section':_0x214fb8(0x275),'fields':'id,name','sort':_0x214fb8(0x19eb),'nolimit':!![]});}],'intervals':[_0x2e55cd(0x362),_0x2e55cd(0xa87),function(_0x549214,_0x100068){const _0x93f702=_0x2e55cd;return _0x100068[_0x93f702(0x23e0)]('admin')?_0x549214[_0x93f702(0x2922)](_0x93f702(0x2270),{'fields':'id,name,IntervalId','sort':_0x93f702(0x19eb),'nolimit':!![]}):_0x549214[_0x93f702(0x2922)](_0x93f702(0x938),{'id':_0x100068[_0x93f702(0xb12)]()['userProfileId'],'section':_0x93f702(0x162f),'fields':_0x93f702(0x775),'sort':'name','nolimit':!![]});}],'mailAccounts':[_0x2e55cd(0x362),_0x2e55cd(0xa87),function(_0x3e0381,_0x4a9396){const _0x191848=_0x2e55cd;return _0x4a9396[_0x191848(0x23e0)]('admin')?_0x3e0381[_0x191848(0x2922)](_0x191848(0x541),{'fields':_0x191848(0x7a7),'sort':_0x191848(0x19eb),'nolimit':!![]}):_0x3e0381['resolve'](_0x191848(0x938),{'id':_0x4a9396[_0x191848(0xb12)]()['userProfileId'],'section':_0x191848(0xbf0),'fields':_0x191848(0x7a7),'sort':_0x191848(0x19eb),'nolimit':!![]});}],'templates':[_0x2e55cd(0x362),_0x2e55cd(0xa87),function(_0x443979,_0x2d5dee){const _0x5c117b=_0x2e55cd;return _0x2d5dee[_0x5c117b(0x23e0)](_0x5c117b(0x174b))?_0x443979[_0x5c117b(0x2922)]('template@get',{'fields':_0x5c117b(0x7a7),'sort':_0x5c117b(0x19eb),'nolimit':!![]}):_0x443979[_0x5c117b(0x2922)](_0x5c117b(0x938),{'id':_0x2d5dee[_0x5c117b(0xb12)]()['userProfileId'],'section':_0x5c117b(0x7ff),'fields':_0x5c117b(0x7a7),'sort':_0x5c117b(0x19eb),'nolimit':!![]});}],'lists':['apiResolver',_0x2e55cd(0xa87),function(_0x523c18,_0x8523f0){const _0x1aff97=_0x2e55cd;return _0x8523f0[_0x1aff97(0x23e0)](_0x1aff97(0x174b))?_0x523c18[_0x1aff97(0x2922)](_0x1aff97(0xd64),{'fields':'id,name','sort':'name','nolimit':!![]}):_0x523c18[_0x1aff97(0x2922)](_0x1aff97(0x938),{'id':_0x8523f0[_0x1aff97(0xb12)]()[_0x1aff97(0x209a)],'section':_0x1aff97(0x174f),'fields':'id,name','sort':_0x1aff97(0x19eb),'nolimit':!![]});}],'smsAccounts':['apiResolver','Auth',function(_0x14e3d6,_0x46b9ed){const _0x3b7d98=_0x2e55cd;return _0x46b9ed[_0x3b7d98(0x23e0)](_0x3b7d98(0x174b))?_0x14e3d6[_0x3b7d98(0x2922)](_0x3b7d98(0xe51),{'fields':_0x3b7d98(0x7a7),'sort':_0x3b7d98(0x19eb),'nolimit':!![]}):_0x14e3d6['resolve'](_0x3b7d98(0x938),{'id':_0x46b9ed[_0x3b7d98(0xb12)]()[_0x3b7d98(0x209a)],'section':_0x3b7d98(0xda3),'fields':_0x3b7d98(0x7a7),'sort':_0x3b7d98(0x19eb),'nolimit':!![]});}],'pauses':[_0x2e55cd(0x362),_0x2e55cd(0xa87),function(_0x15154a,_0x37ef5f){const _0x24be23=_0x2e55cd;return _0x37ef5f[_0x24be23(0x23e0)](_0x24be23(0x174b))?_0x15154a[_0x24be23(0x2922)](_0x24be23(0x3f6),{'fields':_0x24be23(0x7a7),'sort':'name','nolimit':!![]}):_0x15154a['resolve'](_0x24be23(0x938),{'id':_0x37ef5f[_0x24be23(0xb12)]()[_0x24be23(0x209a)],'section':'Pauses','fields':_0x24be23(0x7a7),'sort':_0x24be23(0x19eb),'nolimit':!![]});}],'userProfileSection':[_0x2e55cd(0x362),_0x2e55cd(0xa87),function(_0x1c5660,_0x29d0ae){const _0x56ef95=_0x2e55cd;return _0x1c5660['resolve']('userProfileSection@get',{'fields':_0x56ef95(0x1e64),'userProfileId':_0x29d0ae[_0x56ef95(0xb12)]()[_0x56ef95(0x209a)],'sectionId':0x44f});}]},'authenticate':!![],'permissionId':0x44f,'bodyClass':_0x2e55cd(0x1611)});}angular[_0x313a4d(0x2528)]('app.callysquare.projects',[])['config'](_0x3caa17)[_0x313a4d(0x28f0)](_0x313a4d(0x2864),_0x586c4f)[_0x313a4d(0x28f0)](_0x313a4d(0xea5),_0x50edeb)[_0x313a4d(0x2ba)](_0x313a4d(0x577),_0x4a723d)['factory']('ispeechAsrModel',_0x5e4037)[_0x313a4d(0x1750)]('ispeechAsrLanguage',_0x941e76)[_0x313a4d(0x1750)](_0x313a4d(0x33d),_0x436663)[_0x313a4d(0x1750)]('googleCloudTtslanguageCode',_0x265aca)[_0x313a4d(0x1750)]('googleTtsLanguage',_0x29c46f)[_0x313a4d(0x1750)](_0x313a4d(0xc37),_0x29750e)[_0x313a4d(0x1750)](_0x313a4d(0x17b5),_0x17525a)[_0x313a4d(0x1750)](_0x313a4d(0x17f3),_0x4976e8)[_0x313a4d(0x1750)](_0x313a4d(0x7f7),_0x7adcbe)[_0x313a4d(0x1750)](_0x313a4d(0xae0),_0x5d06ec)['factory'](_0x313a4d(0x82d),_0x556a3e)[_0x313a4d(0x28f0)](_0x313a4d(0xf24),_0x3e610e)[_0x313a4d(0x28f0)](_0x313a4d(0x137a),_0xf68ade)[_0x313a4d(0x28f0)](_0x313a4d(0xb36),_0xdd0d4d)[_0x313a4d(0x28f0)]('MxGraphOpenProjectController',_0x8252d8)[_0x313a4d(0x28f0)](_0x313a4d(0x2603),_0x38d484)[_0x313a4d(0x28f0)]('MxGraphSaveProjectAsController',_0x5733e4)['controller'](_0x313a4d(0x1d11),_0x1d8345)[_0x313a4d(0x28f0)](_0x313a4d(0xc25),_0x1b9200);;const _0x1e5790=_0x4acfac['p']+'src/js/modules/main/apps/callysquare/views/odbcs/odbcs.html/odbcs.html';;const _0x3edf68=_0x4acfac['p']+_0x313a4d(0x6d5);;_0x4450ec[_0x313a4d(0x11c2)]=['$scope','$state',_0x313a4d(0xd08),_0x313a4d(0x10e8),'$q','$translate',_0x313a4d(0x1fe4),'odbcs',_0x313a4d(0x1770),_0x313a4d(0x247f),'Auth',_0x313a4d(0x2690),_0x313a4d(0x15b9),_0x313a4d(0x2514)];function _0x4450ec(_0x243365,_0xb14173,_0x5a0450,_0x2c8734,_0x267af9,_0x172e97,_0x358214,_0x1aea9b,_0x10549,_0x1f4556,_0x3c04f9,_0x53285a,_0x5bc3ff,_0x3e2cc4){const _0x5b53e0=_0x313a4d,_0x1975d3=this;_0x1975d3['currentUser']=_0x3c04f9[_0x5b53e0(0xb12)](),_0x1975d3[_0x5b53e0(0xcef)]=[],_0x1975d3[_0x5b53e0(0x15b9)]=_0x5bc3ff,_0x1975d3[_0x5b53e0(0x2690)]=_0x53285a,_0x1975d3[_0x5b53e0(0x2514)]=_0x3e2cc4,_0x1975d3[_0x5b53e0(0x855)]={},_0x1975d3['passwordPattern']=_0x1975d3[_0x5b53e0(0x15b9)]&&_0x1975d3['setting'][_0x5b53e0(0x976)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1975d3['title']=_0x5b53e0(0x27f),_0x1975d3[_0x5b53e0(0x1770)]=angular[_0x5b53e0(0x235a)](_0x10549),_0x1975d3[_0x5b53e0(0x1cf2)]=_0x1aea9b,_0x1975d3['newOdbc']=![];!_0x1975d3[_0x5b53e0(0x1770)]&&(_0x1975d3[_0x5b53e0(0x1770)]={},_0x1975d3[_0x5b53e0(0x1189)]='CALLYSQUARE.NEW_ODBC',_0x1975d3[_0x5b53e0(0xee5)]=!![]);_0x1975d3['addNewOdbc']=_0x5378fe,_0x1975d3['saveOdbc']=_0x1ad1e4,_0x1975d3[_0x5b53e0(0x416)]=_0x12e5bf,_0x1975d3[_0x5b53e0(0xe73)]=_0x2c22fd,_0x1975d3[_0x5b53e0(0x13f3)]=_0x3a8876;function _0x5378fe(){const _0x505d5b=_0x5b53e0;_0x1975d3[_0x505d5b(0xcef)]=[],_0x1f4556[_0x505d5b(0xbf8)][_0x505d5b(0x1e3)](_0x1975d3[_0x505d5b(0x1770)])[_0x505d5b(0x2945)][_0x505d5b(0x146b)](function(_0x269f7b){const _0x355e0a=_0x505d5b;_0x1975d3['odbcs'][_0x355e0a(0xb3d)](_0x269f7b[_0x355e0a(0x2488)]()),_0x358214[_0x355e0a(0x1c75)]({'title':'Odbc\x20properly\x20created','msg':_0x1975d3[_0x355e0a(0x1770)]['name']?_0x1975d3[_0x355e0a(0x1770)][_0x355e0a(0x19eb)]+_0x355e0a(0x1386):''}),_0x3a8876(_0x269f7b);})[_0x505d5b(0x129e)](function(_0x5ad1bc){const _0x2393c9=_0x505d5b;if(_0x5ad1bc[_0x2393c9(0x524)]&&_0x5ad1bc['data'][_0x2393c9(0xcef)]&&_0x5ad1bc[_0x2393c9(0x524)][_0x2393c9(0xcef)][_0x2393c9(0x402)]){_0x1975d3[_0x2393c9(0xcef)]=_0x5ad1bc[_0x2393c9(0x524)][_0x2393c9(0xcef)]||[{'message':_0x5ad1bc[_0x2393c9(0xd5f)](),'type':_0x2393c9(0x23d5)}];for(let _0x2c7155=0x0;_0x2c7155<_0x5ad1bc['data']['errors'][_0x2393c9(0x402)];_0x2c7155+=0x1){_0x358214[_0x2393c9(0x1980)]({'title':_0x5ad1bc[_0x2393c9(0x524)]['errors'][_0x2c7155][_0x2393c9(0x1142)],'msg':_0x5ad1bc['data'][_0x2393c9(0xcef)][_0x2c7155][_0x2393c9(0x7fd)]});}}else _0x358214['error']({'title':_0x5ad1bc[_0x2393c9(0x107b)]?'API:'+_0x5ad1bc[_0x2393c9(0x107b)]+_0x2393c9(0x1315)+_0x5ad1bc[_0x2393c9(0x167f)]:_0x2393c9(0x23d5),'msg':_0x5ad1bc['data']?JSON[_0x2393c9(0x10bb)](_0x5ad1bc[_0x2393c9(0x524)][_0x2393c9(0x7fd)]):_0x5ad1bc[_0x2393c9(0xd5f)]()});});}function _0x1ad1e4(){const _0x1d2d4e=_0x5b53e0;_0x1975d3[_0x1d2d4e(0xcef)]=[],_0x1f4556[_0x1d2d4e(0xbf8)][_0x1d2d4e(0x18e1)]({'id':_0x1975d3['odbc']['id']},_0x1975d3[_0x1d2d4e(0x1770)])[_0x1d2d4e(0x2945)][_0x1d2d4e(0x146b)](function(_0x3f583b){const _0x4eaba7=_0x1d2d4e,_0x4be5e5=_0x3f65c0()[_0x4eaba7(0xc84)](_0x1975d3['odbcs'],{'id':_0x3f583b['id']});_0x4be5e5&&_0x3f65c0()[_0x4eaba7(0x168d)](_0x4be5e5,_0x3f65c0()[_0x4eaba7(0x40e)](_0x3f583b[_0x4eaba7(0x2488)](),_0x3f65c0()[_0x4eaba7(0x627)](_0x4be5e5))),_0x358214[_0x4eaba7(0x1c75)]({'title':'Odbc\x20properly\x20saved!','msg':_0x1975d3[_0x4eaba7(0x1770)][_0x4eaba7(0x19eb)]?_0x1975d3[_0x4eaba7(0x1770)]['name']+_0x4eaba7(0x24db):''}),_0x3a8876(_0x3f583b);})[_0x1d2d4e(0x129e)](function(_0x50710b){const _0x5e900c=_0x1d2d4e;if(_0x50710b[_0x5e900c(0x524)]&&_0x50710b[_0x5e900c(0x524)][_0x5e900c(0xcef)]&&_0x50710b[_0x5e900c(0x524)][_0x5e900c(0xcef)][_0x5e900c(0x402)]){_0x1975d3[_0x5e900c(0xcef)]=_0x50710b[_0x5e900c(0x524)][_0x5e900c(0xcef)]||[{'message':_0x50710b['toString'](),'type':'api.squareOdbc.update'}];for(let _0x393aed=0x0;_0x393aed<_0x50710b[_0x5e900c(0x524)][_0x5e900c(0xcef)]['length'];_0x393aed++){_0x358214[_0x5e900c(0x1980)]({'title':_0x50710b[_0x5e900c(0x524)][_0x5e900c(0xcef)][_0x393aed][_0x5e900c(0x1142)],'msg':_0x50710b[_0x5e900c(0x524)]['errors'][_0x393aed][_0x5e900c(0x7fd)]});}}else _0x358214[_0x5e900c(0x1980)]({'title':_0x50710b['status']?_0x5e900c(0x262a)+_0x50710b[_0x5e900c(0x107b)]+_0x5e900c(0x1315)+_0x50710b['statusText']:'api.squareOdbc.update','msg':_0x50710b[_0x5e900c(0x524)]?JSON[_0x5e900c(0x10bb)](_0x50710b[_0x5e900c(0x524)][_0x5e900c(0x7fd)]):_0x50710b[_0x5e900c(0xd5f)]()});});}function _0x12e5bf(_0x2ef53a){const _0x2cc222=_0x5b53e0;_0x1975d3[_0x2cc222(0xcef)]=[];const _0x3b6124=_0x2c8734[_0x2cc222(0x1e8a)]()[_0x2cc222(0x1189)](_0x2cc222(0x1d64))[_0x2cc222(0x80f)](_0x2cc222(0x1e0f))[_0x2cc222(0x4bd)](_0x2cc222(0x1a87))['ok']('Delete')[_0x2cc222(0x6c3)](_0x2cc222(0xcf0))[_0x2cc222(0x1f27)](_0x2ef53a);_0x2c8734[_0x2cc222(0x2615)](_0x3b6124)[_0x2cc222(0x146b)](function(){const _0x2410a0=_0x2cc222;_0x1f4556[_0x2410a0(0xbf8)][_0x2410a0(0x1fac)]({'id':_0x1975d3['odbc']['id']})[_0x2410a0(0x2945)][_0x2410a0(0x146b)](function(){const _0x3d20d6=_0x2410a0;_0x3f65c0()[_0x3d20d6(0x2640)](_0x1975d3[_0x3d20d6(0x1cf2)],{'id':_0x1975d3[_0x3d20d6(0x1770)]['id']}),_0x358214[_0x3d20d6(0x1c75)]({'title':_0x3d20d6(0x27e7),'msg':(_0x1975d3['odbc']['name']||_0x3d20d6(0x1770))+_0x3d20d6(0x23e3)}),_0x3a8876(_0x1975d3[_0x3d20d6(0x1770)]);})[_0x2410a0(0x129e)](function(_0x1a672a){const _0x2338df=_0x2410a0;if(_0x1a672a[_0x2338df(0x524)]&&_0x1a672a['data'][_0x2338df(0xcef)]&&_0x1a672a[_0x2338df(0x524)]['errors'][_0x2338df(0x402)]){_0x1975d3[_0x2338df(0xcef)]=_0x1a672a[_0x2338df(0x524)][_0x2338df(0xcef)]||[{'message':_0x1a672a[_0x2338df(0xd5f)](),'type':_0x2338df(0x10ac)}];for(let _0x43e222=0x0;_0x43e222<_0x1a672a[_0x2338df(0x524)][_0x2338df(0xcef)][_0x2338df(0x402)];_0x43e222++){_0x358214[_0x2338df(0x1980)]({'title':_0x1a672a['data']['errors'][_0x43e222][_0x2338df(0x1142)],'msg':_0x1a672a[_0x2338df(0x524)][_0x2338df(0xcef)][_0x43e222][_0x2338df(0x7fd)]});}}else _0x358214['error']({'title':_0x1a672a[_0x2338df(0x107b)]?_0x2338df(0x262a)+_0x1a672a[_0x2338df(0x107b)]+_0x2338df(0x1315)+_0x1a672a['statusText']:_0x2338df(0x10ac),'msg':_0x1a672a[_0x2338df(0x524)]?JSON[_0x2338df(0x10bb)](_0x1a672a[_0x2338df(0x524)][_0x2338df(0x7fd)]):_0x1a672a[_0x2338df(0x7fd)]||_0x1a672a[_0x2338df(0xd5f)]()});});},function(){});}function _0x2c22fd(_0x51e8d4){return _0x51e8d4===null?undefined:new Date(_0x51e8d4);}function _0x3a8876(_0x2e845a){_0x2c8734['hide'](_0x2e845a);}}const _0x5b4941=_0x4450ec;;const _0x41176c=_0x4acfac['p']+_0x313a4d(0xd7e);;_0x2ae451['$inject']=[_0x313a4d(0x910),_0x313a4d(0x1aa9),_0x313a4d(0x1862),_0x313a4d(0x15fe),'$mdDialog',_0x313a4d(0x4d8),_0x313a4d(0x1abe),'$translate','odbcs',_0x313a4d(0x26b6),'userProfileSection',_0x313a4d(0x247f),_0x313a4d(0x216c),_0x313a4d(0x1fe4),_0x313a4d(0xa87),_0x313a4d(0x2690),_0x313a4d(0x15b9)];function _0x2ae451(_0x4e0d9b,_0x1b76de,_0x227b8e,_0x45d8ef,_0x17d571,_0x4eb02a,_0x1ea821,_0x4e71cb,_0x96a75c,_0x15686e,_0x13d8b3,_0x55a22f,_0x1ba118,_0x548e20,_0x4d2706,_0x4455f2,_0x1d9326){const _0x592e94=_0x313a4d,_0x122058=this;_0x122058[_0x592e94(0x2690)]=_0x4455f2,_0x122058[_0x592e94(0x15b9)]=_0x1d9326,_0x122058[_0x592e94(0x2321)]=_0x4d2706[_0x592e94(0xb12)](),_0x122058[_0x592e94(0x1cf2)]=_0x96a75c||{'count':0x0,'rows':[]},_0x122058['userProfile']=_0x15686e,_0x122058['userProfileSection']=_0x13d8b3&&_0x13d8b3[_0x592e94(0x51c)]==0x1?_0x13d8b3[_0x592e94(0x19c7)][0x0]:null,_0x122058['crudPermissions']=_0x4d2706[_0x592e94(0xe60)](_0x122058[_0x592e94(0x1366)]?_0x122058[_0x592e94(0x1366)][_0x592e94(0x2514)]:null),_0x122058[_0x592e94(0x768)]='odbcs',_0x122058[_0x592e94(0x216a)]='',_0x122058['listOrderAsc']=null,_0x122058['selectedODBC']=[],_0x122058[_0x592e94(0x1a56)]={'fields':_0x592e94(0x18cf),'sort':_0x592e94(0x12f2),'limit':0xa,'page':0x1},_0x122058[_0x592e94(0x2ed)]=_0x147adf,_0x122058[_0x592e94(0x746)]=_0x4bfab3,_0x122058[_0x592e94(0xf0a)]=_0x3681ca,_0x122058[_0x592e94(0x1c75)]=_0x3b6c52,_0x122058[_0x592e94(0x15eb)]=_0x31a58b,_0x122058[_0x592e94(0x2267)]=_0x1a0fc8,_0x122058[_0x592e94(0x416)]=_0x225696,_0x122058[_0x592e94(0x1878)]=_0x38f3e0,_0x122058[_0x592e94(0x177e)]=_0x39a107,_0x122058[_0x592e94(0x27f5)]=_0x116ba5,_0x122058['selectAllODBC']=_0x282aca;function _0x147adf(_0x376ec9,_0x2b49d0){const _0x55965f=_0x592e94;_0x17d571[_0x55965f(0x2615)]({'controller':_0x55965f(0x9f2),'controllerAs':'vm','templateUrl':_0x41176c,'parent':angular['element'](_0x4eb02a[_0x55965f(0x2586)]),'targetEvent':_0x2b49d0,'clickOutsideToClose':!![],'locals':{'odbc':_0x376ec9,'odbcs':_0x122058[_0x55965f(0x1cf2)]['rows'],'license':_0x122058['license'],'setting':null,'crudPermissions':_0x122058[_0x55965f(0x2514)]}});}function _0x4bfab3(_0x3bb30b){const _0x17f542=_0x592e94;return _0x55a22f['squareOdbc']['test']({'id':_0x3bb30b['id']})[_0x17f542(0x2945)][_0x17f542(0x146b)](function(){const _0x440ecb=_0x17f542;_0x548e20[_0x440ecb(0x1c75)]({'title':_0x440ecb(0x9e5),'msg':_0x440ecb(0x1893)});})[_0x17f542(0x129e)](function(_0x4ddbec){const _0x51925e=_0x17f542;_0x548e20[_0x51925e(0x1980)]({'title':_0x51925e(0x9e5),'msg':_0x4ddbec[_0x51925e(0x524)]?JSON['stringify'](_0x4ddbec['data']):_0x4ddbec['toString']()});});}function _0x3681ca(_0x4e325f,_0x580b12){const _0x473a51=_0x592e94,_0x3bf48d=_0x17d571['confirm']()['title'](_0x473a51(0xdb2)+_0x3f65c0()['startCase']('odbc')+'?')['htmlContent'](_0x473a51(0x16d3)+(_0x4e325f[_0x473a51(0x19eb)]||_0x473a51(0x1770))+_0x473a51(0x252f)+_0x473a51(0xe01))[_0x473a51(0x4bd)](_0x473a51(0xf81))[_0x473a51(0x1f27)](_0x580b12)['ok']('OK')[_0x473a51(0x6c3)](_0x473a51(0x39a));_0x17d571[_0x473a51(0x2615)](_0x3bf48d)[_0x473a51(0x146b)](function(){_0x225696(_0x4e325f);},function(){const _0x32b668=_0x473a51;console[_0x32b668(0x1a74)](_0x32b668(0x39a));});}let _0x5a3848=!![],_0x24e10b=0x1;_0x4e0d9b[_0x592e94(0x21e8)](_0x592e94(0x2669),function(_0x1f0432,_0x551130){const _0x3b9636=_0x592e94;_0x5a3848?_0x1ea821(function(){_0x5a3848=![];}):(!_0x551130&&(_0x24e10b=_0x122058['query'][_0x3b9636(0x844)]),_0x1f0432!==_0x551130&&(_0x122058[_0x3b9636(0x1a56)][_0x3b9636(0x844)]=0x1),!_0x1f0432&&(_0x122058[_0x3b9636(0x1a56)][_0x3b9636(0x844)]=_0x24e10b),_0x122058[_0x3b9636(0x15eb)]());});function _0x3b6c52(_0x244523){_0x122058['odbcs']=_0x244523||{'count':0x0,'rows':[]};}function _0x31a58b(){const _0x4c0df6=_0x592e94;_0x122058[_0x4c0df6(0x1a56)][_0x4c0df6(0x145d)]=(_0x122058[_0x4c0df6(0x1a56)]['page']-0x1)*_0x122058['query']['limit'],_0x4d2706[_0x4c0df6(0x23e0)]('admin')?_0x122058[_0x4c0df6(0xb9c)]=_0x55a22f[_0x4c0df6(0xbf8)][_0x4c0df6(0x16b4)](_0x122058[_0x4c0df6(0x1a56)],_0x3b6c52)[_0x4c0df6(0x2945)]:(_0x122058[_0x4c0df6(0x1a56)]['id']=_0x122058[_0x4c0df6(0x26b6)]['id'],_0x122058[_0x4c0df6(0x1a56)][_0x4c0df6(0x2146)]=_0x4c0df6(0xa4d),_0x122058[_0x4c0df6(0xb9c)]=_0x55a22f[_0x4c0df6(0x26b6)][_0x4c0df6(0x158f)](_0x122058[_0x4c0df6(0x1a56)],_0x3b6c52)[_0x4c0df6(0x2945)]);}function _0x1a0fc8(_0x3014d1,_0x313be3){const _0x2446aa=_0x592e94;_0x17d571[_0x2446aa(0x2615)]({'controller':'CreateOrEditOdbcDialogController','controllerAs':'vm','templateUrl':_0x41176c,'parent':angular[_0x2446aa(0x1853)](_0x4eb02a[_0x2446aa(0x2586)]),'targetEvent':_0x3014d1,'clickOutsideToClose':!![],'locals':{'odbc':_0x313be3,'odbcs':_0x122058[_0x2446aa(0x1cf2)]['rows'],'license':_0x122058[_0x2446aa(0x2690)],'setting':_0x122058[_0x2446aa(0x15b9)],'crudPermissions':_0x122058['crudPermissions']}});}function _0x225696(_0x4f638c){const _0x55c185=_0x592e94;_0x55a22f[_0x55c185(0xbf8)]['delete']({'id':_0x4f638c['id']})[_0x55c185(0x2945)][_0x55c185(0x146b)](function(){const _0x53f088=_0x55c185;_0x3f65c0()['remove'](_0x122058[_0x53f088(0x1cf2)][_0x53f088(0x19c7)],{'id':_0x4f638c['id']}),_0x122058[_0x53f088(0x1cf2)]['count']-=0x1,!_0x122058[_0x53f088(0x1cf2)][_0x53f088(0x19c7)]['length']&&_0x122058[_0x53f088(0x15eb)](),_0x548e20[_0x53f088(0x1c75)]({'title':_0x3f65c0()[_0x53f088(0x20d1)](_0x53f088(0x1b52))+'\x20deleted!','msg':_0x4f638c[_0x53f088(0x19eb)]?_0x4f638c['name']+'\x20has\x20been\x20deleted!':''});})['catch'](function(_0x5b523b){const _0x44d033=_0x55c185;if(_0x5b523b[_0x44d033(0x524)]&&_0x5b523b[_0x44d033(0x524)]['errors']&&_0x5b523b[_0x44d033(0x524)][_0x44d033(0xcef)]['length']){_0x122058[_0x44d033(0xcef)]=_0x5b523b[_0x44d033(0x524)][_0x44d033(0xcef)]||[{'message':_0x5b523b[_0x44d033(0xd5f)](),'type':_0x44d033(0x1fa9)}];for(let _0x424fc6=0x0;_0x424fc6<_0x5b523b[_0x44d033(0x524)][_0x44d033(0xcef)][_0x44d033(0x402)];_0x424fc6++){_0x548e20[_0x44d033(0x1980)]({'title':_0x5b523b[_0x44d033(0x524)][_0x44d033(0xcef)][_0x424fc6]['type'],'msg':_0x5b523b['data'][_0x44d033(0xcef)][_0x424fc6]['message']});}}else _0x548e20[_0x44d033(0x1980)]({'title':_0x5b523b[_0x44d033(0x107b)]?_0x44d033(0x262a)+_0x5b523b[_0x44d033(0x107b)]+_0x44d033(0x1315)+_0x5b523b[_0x44d033(0x167f)]:'SYSTEM:DELETEsquareOdbc','msg':_0x5b523b[_0x44d033(0x524)]?JSON[_0x44d033(0x10bb)](_0x5b523b['data'][_0x44d033(0x7fd)]):_0x5b523b['message']||_0x5b523b[_0x44d033(0xd5f)]()});});}function _0x38f3e0(){const _0x381fa4=_0x592e94,_0x38a68e=angular[_0x381fa4(0x235a)](_0x122058[_0x381fa4(0x185c)]);return _0x122058[_0x381fa4(0x185c)]=[],_0x38a68e;}function _0x39a107(_0x256c44){const _0x31120d=_0x592e94,_0x546842=_0x17d571[_0x31120d(0x1e8a)]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20odbcs?')['htmlContent'](''+_0x122058[_0x31120d(0x185c)][_0x31120d(0x402)]+_0x31120d(0x2452)+'\x20will\x20be\x20deleted.')[_0x31120d(0x4bd)](_0x31120d(0x15e))[_0x31120d(0x1f27)](_0x256c44)['ok']('OK')[_0x31120d(0x6c3)](_0x31120d(0x39a));_0x17d571[_0x31120d(0x2615)](_0x546842)['then'](function(){const _0x3c60ad=_0x31120d;_0x122058['selectedODBC'][_0x3c60ad(0x1df5)](function(_0x220280){_0x225696(_0x220280);}),_0x122058['selectedODBC']=[];});}function _0x116ba5(){const _0xc56a47=_0x592e94;_0x122058[_0xc56a47(0x185c)]=[];}function _0x282aca(){const _0x21263f=_0x592e94;_0x122058['selectedODBC']=_0x122058[_0x21263f(0x1cf2)][_0x21263f(0x19c7)];}}const _0x44ab16=_0x2ae451;;_0x3435d2[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1862),_0x313a4d(0xd08),_0x313a4d(0x10e8),'$q',_0x313a4d(0x214b),_0x313a4d(0x1fe4),_0x313a4d(0x17fc),_0x313a4d(0x2222),'api',_0x313a4d(0xa87),_0x313a4d(0x2690),_0x313a4d(0x15b9),_0x313a4d(0x2514)];function _0x3435d2(_0x4f36a1,_0x34d4c5,_0x11a68a,_0x576ede,_0xddd377,_0x5d9b42,_0x18224b,_0x55beb5,_0x2b560e,_0x146952,_0x10a4de,_0xb75539,_0x127159,_0x800429){const _0x1273ad=_0x313a4d,_0x22d05e=this;_0x22d05e[_0x1273ad(0x2321)]=_0x10a4de[_0x1273ad(0xb12)](),_0x22d05e[_0x1273ad(0xcef)]=[],_0x22d05e[_0x1273ad(0x15b9)]=_0x127159,_0x22d05e[_0x1273ad(0x2690)]=_0xb75539,_0x22d05e['crudPermissions']=_0x800429,_0x22d05e[_0x1273ad(0x855)]={},_0x22d05e[_0x1273ad(0x2251)]=_0x22d05e[_0x1273ad(0x15b9)]&&_0x22d05e[_0x1273ad(0x15b9)][_0x1273ad(0x976)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x22d05e[_0x1273ad(0x1189)]=_0x1273ad(0x724),_0x22d05e[_0x1273ad(0x2222)]=angular['copy'](_0x2b560e),_0x22d05e['squareRecordings']=_0x55beb5,_0x22d05e[_0x1273ad(0x46c)]=![];!_0x22d05e[_0x1273ad(0x2222)]&&(_0x22d05e['squareRecording']={},_0x22d05e[_0x1273ad(0x1189)]='CALLYSQUARE.NEW_SQUARERECORDING',_0x22d05e[_0x1273ad(0x46c)]=!![]);_0x22d05e['addNewSquareRecording']=_0x580b9e,_0x22d05e[_0x1273ad(0x1d6c)]=_0x50ee2d,_0x22d05e['deleteSquareRecording']=_0x39eaab,_0x22d05e['getDateFromString']=_0x56a381,_0x22d05e[_0x1273ad(0x13f3)]=_0x3776dc;function _0x580b9e(){const _0x54ad9a=_0x1273ad;_0x22d05e[_0x54ad9a(0xcef)]=[],_0x146952[_0x54ad9a(0x2222)][_0x54ad9a(0x1e3)](_0x22d05e['squareRecording'])[_0x54ad9a(0x2945)][_0x54ad9a(0x146b)](function(_0x1a144d){const _0xce3491=_0x54ad9a;_0x22d05e[_0xce3491(0x17fc)][_0xce3491(0xb3d)](_0x1a144d[_0xce3491(0x2488)]()),_0x18224b['success']({'title':_0xce3491(0x2388),'msg':_0x22d05e['squareRecording']['name']?_0x22d05e[_0xce3491(0x2222)][_0xce3491(0x19eb)]+_0xce3491(0x1386):''}),_0x3776dc(_0x1a144d);})[_0x54ad9a(0x129e)](function(_0x5ab5ff){const _0x408c19=_0x54ad9a;if(_0x5ab5ff['data']&&_0x5ab5ff[_0x408c19(0x524)]['errors']&&_0x5ab5ff[_0x408c19(0x524)]['errors'][_0x408c19(0x402)]){_0x22d05e[_0x408c19(0xcef)]=_0x5ab5ff[_0x408c19(0x524)][_0x408c19(0xcef)]||[{'message':_0x5ab5ff[_0x408c19(0xd5f)](),'type':_0x408c19(0x546)}];for(let _0xbf5200=0x0;_0xbf5200<_0x5ab5ff[_0x408c19(0x524)][_0x408c19(0xcef)]['length'];_0xbf5200+=0x1){_0x18224b[_0x408c19(0x1980)]({'title':_0x5ab5ff['data']['errors'][_0xbf5200][_0x408c19(0x1142)],'msg':_0x5ab5ff[_0x408c19(0x524)][_0x408c19(0xcef)][_0xbf5200][_0x408c19(0x7fd)]});}}else _0x18224b[_0x408c19(0x1980)]({'title':_0x5ab5ff[_0x408c19(0x107b)]?_0x408c19(0x262a)+_0x5ab5ff[_0x408c19(0x107b)]+_0x408c19(0x1315)+_0x5ab5ff[_0x408c19(0x167f)]:_0x408c19(0x546),'msg':_0x5ab5ff['data']?JSON['stringify'](_0x5ab5ff[_0x408c19(0x524)][_0x408c19(0x7fd)]):_0x5ab5ff['toString']()});});}function _0x50ee2d(){const _0x18c642=_0x1273ad;_0x22d05e['errors']=[],_0x146952[_0x18c642(0x2222)]['update']({'id':_0x22d05e['squareRecording']['id']},_0x22d05e['squareRecording'])[_0x18c642(0x2945)][_0x18c642(0x146b)](function(_0xcb865f){const _0x542179=_0x18c642,_0x901d4d=_0x3f65c0()[_0x542179(0xc84)](_0x22d05e[_0x542179(0x17fc)],{'id':_0xcb865f['id']});_0x901d4d&&_0x3f65c0()[_0x542179(0x168d)](_0x901d4d,_0x3f65c0()[_0x542179(0x40e)](_0xcb865f['toJSON'](),_0x3f65c0()[_0x542179(0x627)](_0x901d4d))),_0x18224b['success']({'title':_0x542179(0x62a),'msg':_0x22d05e['squareRecording'][_0x542179(0x19eb)]?_0x22d05e[_0x542179(0x2222)][_0x542179(0x19eb)]+_0x542179(0x24db):''}),_0x3776dc(_0xcb865f);})[_0x18c642(0x129e)](function(_0x34cbb){const _0x3ffed6=_0x18c642;if(_0x34cbb[_0x3ffed6(0x524)]&&_0x34cbb[_0x3ffed6(0x524)]['errors']&&_0x34cbb[_0x3ffed6(0x524)][_0x3ffed6(0xcef)][_0x3ffed6(0x402)]){_0x22d05e[_0x3ffed6(0xcef)]=_0x34cbb[_0x3ffed6(0x524)][_0x3ffed6(0xcef)]||[{'message':_0x34cbb[_0x3ffed6(0xd5f)](),'type':_0x3ffed6(0x21b6)}];for(let _0x2b1e35=0x0;_0x2b1e35<_0x34cbb[_0x3ffed6(0x524)]['errors'][_0x3ffed6(0x402)];_0x2b1e35++){_0x18224b['error']({'title':_0x34cbb['data']['errors'][_0x2b1e35][_0x3ffed6(0x1142)],'msg':_0x34cbb['data'][_0x3ffed6(0xcef)][_0x2b1e35][_0x3ffed6(0x7fd)]});}}else _0x18224b[_0x3ffed6(0x1980)]({'title':_0x34cbb[_0x3ffed6(0x107b)]?_0x3ffed6(0x262a)+_0x34cbb['status']+_0x3ffed6(0x1315)+_0x34cbb[_0x3ffed6(0x167f)]:_0x3ffed6(0x21b6),'msg':_0x34cbb[_0x3ffed6(0x524)]?JSON['stringify'](_0x34cbb[_0x3ffed6(0x524)][_0x3ffed6(0x7fd)]):_0x34cbb[_0x3ffed6(0xd5f)]()});});}function _0x39eaab(_0x32fed8){const _0x3e8c42=_0x1273ad;_0x22d05e[_0x3e8c42(0xcef)]=[];const _0x453f13=_0x576ede[_0x3e8c42(0x1e8a)]()[_0x3e8c42(0x1189)](_0x3e8c42(0x1d64))[_0x3e8c42(0x80f)](_0x3e8c42(0x2055))[_0x3e8c42(0x4bd)]('Delete\x20SquareRecording')['ok']('Delete')[_0x3e8c42(0x6c3)](_0x3e8c42(0xcf0))[_0x3e8c42(0x1f27)](_0x32fed8);_0x576ede[_0x3e8c42(0x2615)](_0x453f13)[_0x3e8c42(0x146b)](function(){const _0x194386=_0x3e8c42;_0x146952[_0x194386(0x2222)]['delete']({'id':_0x22d05e['squareRecording']['id']})[_0x194386(0x2945)]['then'](function(){const _0x19be78=_0x194386;_0x3f65c0()['remove'](_0x22d05e[_0x19be78(0x17fc)],{'id':_0x22d05e[_0x19be78(0x2222)]['id']}),_0x18224b[_0x19be78(0x1c75)]({'title':_0x19be78(0x26e1),'msg':(_0x22d05e['squareRecording'][_0x19be78(0x19eb)]||_0x19be78(0x2222))+_0x19be78(0x23e3)}),_0x3776dc(_0x22d05e['squareRecording']);})[_0x194386(0x129e)](function(_0x2643d1){const _0x1924b1=_0x194386;if(_0x2643d1['data']&&_0x2643d1['data'][_0x1924b1(0xcef)]&&_0x2643d1[_0x1924b1(0x524)][_0x1924b1(0xcef)]['length']){_0x22d05e[_0x1924b1(0xcef)]=_0x2643d1[_0x1924b1(0x524)]['errors']||[{'message':_0x2643d1[_0x1924b1(0xd5f)](),'type':'api.squareRecording.delete'}];for(let _0x25c2f6=0x0;_0x25c2f6<_0x2643d1[_0x1924b1(0x524)][_0x1924b1(0xcef)]['length'];_0x25c2f6++){_0x18224b[_0x1924b1(0x1980)]({'title':_0x2643d1[_0x1924b1(0x524)][_0x1924b1(0xcef)][_0x25c2f6][_0x1924b1(0x1142)],'msg':_0x2643d1['data'][_0x1924b1(0xcef)][_0x25c2f6]['message']});}}else _0x18224b[_0x1924b1(0x1980)]({'title':_0x2643d1[_0x1924b1(0x107b)]?_0x1924b1(0x262a)+_0x2643d1['status']+_0x1924b1(0x1315)+_0x2643d1[_0x1924b1(0x167f)]:_0x1924b1(0x28b3),'msg':_0x2643d1[_0x1924b1(0x524)]?JSON[_0x1924b1(0x10bb)](_0x2643d1[_0x1924b1(0x524)][_0x1924b1(0x7fd)]):_0x2643d1[_0x1924b1(0x7fd)]||_0x2643d1[_0x1924b1(0xd5f)]()});});},function(){});}function _0x56a381(_0x4edd27){return _0x4edd27===null?undefined:new Date(_0x4edd27);}function _0x3776dc(_0xd87ff2){const _0x134210=_0x1273ad;_0x576ede[_0x134210(0x2458)](_0xd87ff2);}}const _0x4c94ea=_0x3435d2;;const _0x4d7120=_0x4acfac['p']+_0x313a4d(0x174e);;_0x3ae7bc[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1aa9),_0x313a4d(0x1862),_0x313a4d(0x15fe),_0x313a4d(0x10e8),_0x313a4d(0x4d8),_0x313a4d(0x1abe),'$translate',_0x313a4d(0x17fc),_0x313a4d(0x26b6),_0x313a4d(0x1366),_0x313a4d(0x247f),'msUtils',_0x313a4d(0x1fe4),_0x313a4d(0xa87),_0x313a4d(0x2690),_0x313a4d(0x15b9)];function _0x3ae7bc(_0x307f34,_0x392ccb,_0x5c9bcc,_0x2a985e,_0x4020e4,_0xce2cf0,_0xc82cda,_0x3ee931,_0x45201c,_0x1dc998,_0x3f3d29,_0x44bafb,_0x1600ae,_0x296692,_0x1a89bc,_0x512048,_0x4652a6){const _0x3adce7=_0x313a4d,_0x317029=this;_0x317029['license']=_0x512048,_0x317029[_0x3adce7(0x15b9)]=_0x4652a6,_0x317029['currentUser']=_0x1a89bc[_0x3adce7(0xb12)](),_0x317029[_0x3adce7(0x17fc)]=_0x45201c||{'count':0x0,'rows':[]},_0x317029['userProfile']=_0x1dc998,_0x317029['userProfileSection']=_0x3f3d29&&_0x3f3d29[_0x3adce7(0x51c)]==0x1?_0x3f3d29[_0x3adce7(0x19c7)][0x0]:null,_0x317029['crudPermissions']=_0x1a89bc['parseCrudPermissions'](_0x317029[_0x3adce7(0x1366)]?_0x317029['userProfileSection'][_0x3adce7(0x2514)]:null),_0x317029[_0x3adce7(0x768)]=_0x3adce7(0x17fc),_0x317029[_0x3adce7(0x216a)]='',_0x317029[_0x3adce7(0x214f)]=null,_0x317029[_0x3adce7(0x417)]=[],_0x317029[_0x3adce7(0x1a56)]={'fields':_0x3adce7(0xab1),'sort':_0x3adce7(0x12f2),'limit':0xa,'page':0x1},_0x317029[_0x3adce7(0xe49)]=_0x1c4553,_0x317029['deleteconfirm']=_0x4e37b9,_0x317029[_0x3adce7(0x1c75)]=_0x5d8310,_0x317029['getSquareRecordings']=_0x374055,_0x317029[_0x3adce7(0x5ee)]=_0x4259b6,_0x317029['deleteSquareRecording']=_0xacc1c3,_0x317029[_0x3adce7(0x1c18)]=_0x2baa35,_0x317029[_0x3adce7(0x250b)]=_0x5bf892,_0x317029[_0x3adce7(0x1855)]=_0x4bb83d,_0x317029[_0x3adce7(0x121e)]=_0x3e20ad;function _0x1c4553(_0x4ac2bd){const _0x5e0832=_0x3adce7;return _0x44bafb['squareRecording'][_0x5e0832(0x15b1)]({'id':_0x4ac2bd['id']})['$promise'][_0x5e0832(0x146b)](function(_0x24571e){const _0x3dc437=_0x5e0832,_0x5a7d8f=[_0x24571e[_0x3dc437(0x2eb)]];let _0x6162fc=_0x3dc437(0x15b1);const _0x4d8548=new Blob(_0x5a7d8f,{'type':_0x24571e[_0x3dc437(0x1142)]});_0x6162fc=_0x4ac2bd[_0x3dc437(0x4f8)]+_0x4ac2bd[_0x3dc437(0x22b0)];const _0x442090=window[_0x3dc437(0xef3)]['createElement']('a');_0x442090[_0x3dc437(0x1652)](_0x3dc437(0x1b3c),URL[_0x3dc437(0x1c58)](_0x4d8548)),_0x442090['setAttribute'](_0x3dc437(0x15b1),_0x6162fc),document[_0x3dc437(0x2586)][_0x3dc437(0x23e)](_0x442090),_0x442090['click']();})[_0x5e0832(0x129e)](function(_0x4cf36f){const _0xea36d9=_0x5e0832;if(_0x4cf36f[_0xea36d9(0x524)]&&_0x4cf36f['data'][_0xea36d9(0xcef)]&&_0x4cf36f[_0xea36d9(0x524)][_0xea36d9(0xcef)][_0xea36d9(0x402)])for(let _0x4c1239=0x0;_0x4c1239<_0x4cf36f[_0xea36d9(0x524)]['errors'][_0xea36d9(0x402)];_0x4c1239++){_0x296692[_0xea36d9(0x1980)]({'title':_0x4cf36f[_0xea36d9(0x524)][_0xea36d9(0xcef)][_0x4c1239][_0xea36d9(0x1142)],'msg':_0x4cf36f[_0xea36d9(0x524)][_0xea36d9(0xcef)][_0x4c1239][_0xea36d9(0x7fd)]});}else _0x296692[_0xea36d9(0x1980)]({'title':_0x4cf36f[_0xea36d9(0x107b)]?'API:'+_0x4cf36f[_0xea36d9(0x107b)]+_0xea36d9(0x1315)+_0x4cf36f[_0xea36d9(0x167f)]:'api.squareRecording.save','msg':_0x4cf36f[_0xea36d9(0x524)]?JSON[_0xea36d9(0x10bb)](_0x4cf36f[_0xea36d9(0x524)][_0xea36d9(0x7fd)]):_0x4cf36f[_0xea36d9(0xd5f)]()});});}function _0x4e37b9(_0x191086,_0x4cfa42){const _0x2a724c=_0x3adce7,_0x259224=_0x4020e4[_0x2a724c(0x1e8a)]()[_0x2a724c(0x1189)](_0x2a724c(0xdb2)+_0x3f65c0()[_0x2a724c(0x20d1)](_0x2a724c(0x2222))+'?')[_0x2a724c(0x1cbe)](_0x2a724c(0x16d3)+(_0x191086[_0x2a724c(0x19eb)]||_0x2a724c(0x2222))+_0x2a724c(0x252f)+_0x2a724c(0xe01))[_0x2a724c(0x4bd)]('delete\x20squareRecording')[_0x2a724c(0x1f27)](_0x4cfa42)['ok']('OK')[_0x2a724c(0x6c3)](_0x2a724c(0x39a));_0x4020e4[_0x2a724c(0x2615)](_0x259224)[_0x2a724c(0x146b)](function(){_0xacc1c3(_0x191086);},function(){const _0x49ae78=_0x2a724c;console['log'](_0x49ae78(0x39a));});}let _0x2a4332=!![],_0x4e57cc=0x1;_0x307f34[_0x3adce7(0x21e8)](_0x3adce7(0x2669),function(_0x25a59d,_0x2c3153){const _0xdd0fa2=_0x3adce7;_0x2a4332?_0xc82cda(function(){_0x2a4332=![];}):(!_0x2c3153&&(_0x4e57cc=_0x317029[_0xdd0fa2(0x1a56)][_0xdd0fa2(0x844)]),_0x25a59d!==_0x2c3153&&(_0x317029[_0xdd0fa2(0x1a56)]['page']=0x1),!_0x25a59d&&(_0x317029[_0xdd0fa2(0x1a56)][_0xdd0fa2(0x844)]=_0x4e57cc),_0x317029[_0xdd0fa2(0x1fc1)]());});function _0x5d8310(_0x5ca319){const _0x3e460c=_0x3adce7;_0x317029[_0x3e460c(0x17fc)]=_0x5ca319||{'count':0x0,'rows':[]};}function _0x374055(){const _0x2fa52e=_0x3adce7;_0x317029[_0x2fa52e(0x1a56)]['offset']=(_0x317029[_0x2fa52e(0x1a56)][_0x2fa52e(0x844)]-0x1)*_0x317029[_0x2fa52e(0x1a56)]['limit'],_0x1a89bc[_0x2fa52e(0x23e0)]('admin')?_0x317029['promise']=_0x44bafb[_0x2fa52e(0x2222)]['get'](_0x317029[_0x2fa52e(0x1a56)],_0x5d8310)[_0x2fa52e(0x2945)]:(_0x317029[_0x2fa52e(0x1a56)]['id']=_0x317029[_0x2fa52e(0x26b6)]['id'],_0x317029['query']['section']=_0x2fa52e(0x10e3),_0x317029['promise']=_0x44bafb['userProfile'][_0x2fa52e(0x158f)](_0x317029[_0x2fa52e(0x1a56)],_0x5d8310)[_0x2fa52e(0x2945)]);}function _0x4259b6(_0x3c406b,_0x563343){const _0x4d6f88=_0x3adce7;_0x4020e4[_0x4d6f88(0x2615)]({'controller':_0x4d6f88(0x810),'controllerAs':'vm','templateUrl':_0x4d7120,'parent':angular[_0x4d6f88(0x1853)](_0xce2cf0[_0x4d6f88(0x2586)]),'targetEvent':_0x3c406b,'clickOutsideToClose':!![],'locals':{'squareRecording':_0x563343,'squareRecordings':_0x317029[_0x4d6f88(0x17fc)]['rows'],'license':_0x317029['license'],'setting':_0x317029[_0x4d6f88(0x15b9)],'crudPermissions':_0x317029[_0x4d6f88(0x2514)]}});}function _0xacc1c3(_0x348cef){const _0x19bd59=_0x3adce7;_0x44bafb[_0x19bd59(0x2222)]['delete']({'id':_0x348cef['id']})[_0x19bd59(0x2945)][_0x19bd59(0x146b)](function(){const _0x42eec1=_0x19bd59;_0x3f65c0()[_0x42eec1(0x2640)](_0x317029[_0x42eec1(0x17fc)]['rows'],{'id':_0x348cef['id']}),_0x317029[_0x42eec1(0x17fc)]['count']-=0x1,!_0x317029['squareRecordings'][_0x42eec1(0x19c7)]['length']&&_0x317029[_0x42eec1(0x1fc1)](),_0x296692[_0x42eec1(0x1c75)]({'title':_0x3f65c0()[_0x42eec1(0x20d1)](_0x42eec1(0x14a8))+_0x42eec1(0x201c),'msg':_0x348cef[_0x42eec1(0x19eb)]?_0x348cef[_0x42eec1(0x19eb)]+_0x42eec1(0x23e3):''});})['catch'](function(_0x1354ae){const _0x5d27ba=_0x19bd59;if(_0x1354ae[_0x5d27ba(0x524)]&&_0x1354ae[_0x5d27ba(0x524)]['errors']&&_0x1354ae[_0x5d27ba(0x524)][_0x5d27ba(0xcef)][_0x5d27ba(0x402)]){_0x317029['errors']=_0x1354ae[_0x5d27ba(0x524)][_0x5d27ba(0xcef)]||[{'message':_0x1354ae[_0x5d27ba(0xd5f)](),'type':_0x5d27ba(0x10f1)}];for(let _0x28ec56=0x0;_0x28ec56<_0x1354ae['data'][_0x5d27ba(0xcef)][_0x5d27ba(0x402)];_0x28ec56++){_0x296692['error']({'title':_0x1354ae['data']['errors'][_0x28ec56][_0x5d27ba(0x1142)],'msg':_0x1354ae[_0x5d27ba(0x524)]['errors'][_0x28ec56][_0x5d27ba(0x7fd)]});}}else _0x296692[_0x5d27ba(0x1980)]({'title':_0x1354ae[_0x5d27ba(0x107b)]?'API:'+_0x1354ae[_0x5d27ba(0x107b)]+_0x5d27ba(0x1315)+_0x1354ae['statusText']:_0x5d27ba(0x10f1),'msg':_0x1354ae[_0x5d27ba(0x524)]?JSON[_0x5d27ba(0x10bb)](_0x1354ae[_0x5d27ba(0x524)][_0x5d27ba(0x7fd)]):_0x1354ae[_0x5d27ba(0x7fd)]||_0x1354ae[_0x5d27ba(0xd5f)]()});});}function _0x2baa35(){const _0x698c4e=_0x3adce7,_0x356986=angular[_0x698c4e(0x235a)](_0x317029[_0x698c4e(0x417)]);return _0x317029[_0x698c4e(0x417)]=[],_0x356986;}function _0x5bf892(_0x4e5078){const _0x4287e0=_0x3adce7,_0x3504d1=_0x4020e4[_0x4287e0(0x1e8a)]()['title'](_0x4287e0(0x287e))[_0x4287e0(0x1cbe)](_0x4287e0(0x16d3)+_0x317029[_0x4287e0(0x417)][_0x4287e0(0x402)]+'\x20selected'+_0x4287e0(0xe01))[_0x4287e0(0x4bd)]('delete\x20SquareRecordings')['targetEvent'](_0x4e5078)['ok']('OK')[_0x4287e0(0x6c3)]('CANCEL');_0x4020e4[_0x4287e0(0x2615)](_0x3504d1)['then'](function(){const _0x57a359=_0x4287e0;_0x317029[_0x57a359(0x417)][_0x57a359(0x1df5)](function(_0x263a36){_0xacc1c3(_0x263a36);}),_0x317029[_0x57a359(0x417)]=[];});}function _0x4bb83d(){_0x317029['selectedSquareRecordings']=[];}function _0x3e20ad(){const _0x5c7b6b=_0x3adce7;_0x317029['selectedSquareRecordings']=_0x317029[_0x5c7b6b(0x17fc)]['rows'];}}const _0x296c48=_0x3ae7bc;;_0x278088[_0x313a4d(0x11c2)]=[_0x313a4d(0x921),_0x313a4d(0x695)];function _0x278088(_0x5a69b5,_0x147011){const _0x5b00b5=_0x313a4d;_0x5a69b5[_0x5b00b5(0x13d6)](_0x5b00b5(0xea4),{'abstract':!![],'url':_0x5b00b5(0x21e)})[_0x5b00b5(0x13d6)](_0x5b00b5(0xa1f),{'url':_0x5b00b5(0x2662),'views':{'content@app':{'templateUrl':_0x1e5790,'controller':_0x5b00b5(0x2325)}},'resolve':{'odbcs':[_0x5b00b5(0x362),_0x5b00b5(0xa87),function(_0x393c45,_0x14fa37){const _0x4b45bd=_0x5b00b5;return _0x14fa37['hasRole'](_0x4b45bd(0x174b))?_0x393c45[_0x4b45bd(0x2922)]('squareOdbc@get',{'fields':_0x4b45bd(0x18cf),'sort':_0x4b45bd(0x12f2),'limit':0xa,'offset':0x0}):_0x393c45[_0x4b45bd(0x2922)](_0x4b45bd(0x938),{'id':_0x14fa37[_0x4b45bd(0xb12)]()['userProfileId'],'section':'ODBC','fields':'createdAt,updatedAt,id,name,dsn,description','sort':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':[_0x5b00b5(0x362),_0x5b00b5(0xa87),function(_0x234955,_0x1cab17){const _0x21aeed=_0x5b00b5;return _0x1cab17[_0x21aeed(0x23e0)](_0x21aeed(0x174b))?null:_0x234955[_0x21aeed(0x2922)]('userProfile@get',{'fields':_0x21aeed(0x227),'id':_0x1cab17[_0x21aeed(0xb12)]()[_0x21aeed(0x209a)]});}],'userProfileSection':[_0x5b00b5(0x362),_0x5b00b5(0xa87),function(_0xd9ef41,_0x3d7620){const _0x37de13=_0x5b00b5;return _0x3d7620[_0x37de13(0x23e0)](_0x37de13(0x174b))?null:_0xd9ef41[_0x37de13(0x2922)](_0x37de13(0x27be),{'fields':_0x37de13(0x1e64),'userProfileId':_0x3d7620[_0x37de13(0xb12)]()[_0x37de13(0x209a)],'sectionId':0x44d});}]},'authenticate':!![],'permissionId':0x44d,'bodyClass':'callysquare'})[_0x5b00b5(0x13d6)](_0x5b00b5(0x1638),{'url':_0x5b00b5(0x703),'views':{'content@app':{'templateUrl':_0x3edf68,'controller':_0x5b00b5(0xf1)}},'resolve':{'squareRecordings':['apiResolver',_0x5b00b5(0xa87),function(_0x456127,_0x46cb56){const _0x41fddb=_0x5b00b5;return _0x46cb56['hasRole'](_0x41fddb(0x174b))?_0x456127[_0x41fddb(0x2922)]('squareRecording@get',{'fields':_0x41fddb(0xab1),'sort':_0x41fddb(0x12f2),'limit':0xa,'offset':0x0}):_0x456127[_0x41fddb(0x2922)](_0x41fddb(0x938),{'id':_0x46cb56[_0x41fddb(0xb12)]()['userProfileId'],'section':_0x41fddb(0x10e3),'fields':_0x41fddb(0xab1),'sort':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':[_0x5b00b5(0x362),'Auth',function(_0x5b7921,_0x512665){const _0x5c89da=_0x5b00b5;return _0x512665[_0x5c89da(0x23e0)](_0x5c89da(0x174b))?null:_0x5b7921[_0x5c89da(0x2922)](_0x5c89da(0x119a),{'fields':_0x5c89da(0x227),'id':_0x512665[_0x5c89da(0xb12)]()[_0x5c89da(0x209a)]});}],'userProfileSection':[_0x5b00b5(0x362),'Auth',function(_0x3ba5fd,_0x1be375){const _0x2a7fe3=_0x5b00b5;return _0x1be375[_0x2a7fe3(0x23e0)](_0x2a7fe3(0x174b))?null:_0x3ba5fd['resolve'](_0x2a7fe3(0x27be),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x1be375['getCurrentUser']()['userProfileId'],'sectionId':0x44e});}]},'authenticate':!![],'permissionId':0x44e,'bodyClass':_0x5b00b5(0x1611)}),_0x147011[_0x5b00b5(0x15bf)](_0x5b00b5(0x14a3));}angular['module'](_0x313a4d(0xea4),[_0x313a4d(0xdad),_0x313a4d(0x962),_0x313a4d(0x23c7),'flow',_0x313a4d(0x19e2),_0x313a4d(0x27c1),_0x313a4d(0x195b),_0x313a4d(0x15ef),_0x313a4d(0xc86),_0x313a4d(0x1f5f),_0x313a4d(0x28a8),_0x313a4d(0xfb2),_0x313a4d(0x1e57),_0x313a4d(0x581),_0x313a4d(0x1bd2),_0x313a4d(0x1792),_0x313a4d(0x1b65),_0x313a4d(0x1626),'chart.js','angular.filter',_0x313a4d(0x14d0)])['config'](_0x278088)['controller'](_0x313a4d(0x9f2),_0x5b4941)[_0x313a4d(0x28f0)](_0x313a4d(0xd50),_0x44ab16)[_0x313a4d(0x28f0)]('CreateOrEditSquareRecordingDialogController',_0x4c94ea)[_0x313a4d(0x28f0)](_0x313a4d(0xbfa),_0x296c48);;const _0x4ae842=_0x4acfac['p']+_0x313a4d(0x2592);;const _0x1991b9=_0x4acfac['p']+'src/js/modules/main/apps/analytics/views/extractedReports/extractedReports.html/extractedReports.html';;const _0x1da429=_0x4acfac['p']+'src/js/modules/main/apps/analytics/views/reports/reports.html/reports.html';;const _0x112a3a=_0x4acfac['p']+'src/js/modules/main/apps/analytics/views/reports/edit/view.html/view.html';var _0x33fe96=_0x4acfac(0xd5a);;_0x3ba500[_0x313a4d(0x11c2)]=[_0x313a4d(0xd08),_0x313a4d(0x10e8),'toasty','report',_0x313a4d(0x247f),'apiName',_0x313a4d(0x282d)];function _0x3ba500(_0x58719b,_0x3e2b3d,_0x1bbe9e,_0x3b1da4,_0x4241c7,_0x2a50f1,_0x5de2d2){const _0x29eff5=_0x313a4d,_0x1618ad=this;_0x1618ad[_0x29eff5(0xcef)]=[],_0x1618ad[_0x29eff5(0x1c9a)]=angular['copy'](_0x3b1da4),_0x1618ad['report'][_0x29eff5(0x19eb)]+=_0x29eff5(0x118e),_0x1618ad['treeCustomData']=_0x5de2d2,_0x1618ad[_0x29eff5(0x178f)]={'core':{'multiple':![],'animation':!![],'error':function(_0x12d5f6){const _0x2dd624=_0x29eff5;console[_0x2dd624(0x1980)](_0x2dd624(0x535)+angular[_0x2dd624(0x217d)](_0x12d5f6));},'check_callback':!![],'worker':!![]},'version':0x1,'plugins':[_0x29eff5(0x5e6)]},_0x1618ad[_0x29eff5(0xf43)]={'select_node':_0x877cc5},_0x1618ad[_0x29eff5(0x833)]=_0x3b9f3f,_0x1618ad[_0x29eff5(0x13f3)]=_0x5c751a;function _0x3b9f3f(){const _0xf74a24=_0x29eff5;_0x1618ad['errors']=[];let _0x411b9b;_0x4241c7['analyticCustomReport'][_0xf74a24(0x1e3)]({'name':_0x1618ad[_0xf74a24(0x1c9a)][_0xf74a24(0x19eb)],'description':_0x1618ad[_0xf74a24(0x1c9a)][_0xf74a24(0xb17)],'table':_0x1618ad[_0xf74a24(0x1c9a)][_0xf74a24(0x768)],'conditions':_0x1618ad[_0xf74a24(0x1c9a)][_0xf74a24(0x1072)],'joins':_0x1618ad[_0xf74a24(0x1c9a)][_0xf74a24(0x219e)],'parent':_0x1618ad[_0xf74a24(0x13cf)]['id']})[_0xf74a24(0x2945)][_0xf74a24(0x146b)](function(_0x182a1f){const _0x54c36a=_0xf74a24;_0x411b9b=_0x182a1f,_0x1bbe9e[_0x54c36a(0x1c75)]({'title':_0x54c36a(0x18b9),'msg':_0x1618ad[_0x54c36a(0x1c9a)][_0x54c36a(0x19eb)]?_0x1618ad[_0x54c36a(0x1c9a)][_0x54c36a(0x19eb)]+_0x54c36a(0x4f6):''});const _0x2d6520={'fields':_0x54c36a(0x1cfd),'nolimit':!![]};return _0x2d6520[_0x2a50f1===_0x54c36a(0x12a5)?_0x54c36a(0x2728):_0x54c36a(0x1148)]=_0x1618ad[_0x54c36a(0x1c9a)]['id'],_0x4241c7[_0x54c36a(0x1f56)][_0x54c36a(0x16b4)](_0x2d6520)[_0x54c36a(0x2945)];})[_0xf74a24(0x146b)](function(_0x13b271){const _0x425a40=_0xf74a24,_0xf89182=_0x3f65c0()[_0x425a40(0x205)](_0x13b271[_0x425a40(0x19c7)],function(_0x13fbc1){return _0x3f65c0()['extend']({},_0x13fbc1,{'CustomReportId':_0x411b9b['id']});});return _0x4241c7[_0x425a40(0x1f56)]['bulkCreate'](_0xf89182)[_0x425a40(0x2945)];})['then'](function(){const _0x74b69c=_0xf74a24;_0x1bbe9e[_0x74b69c(0x1c75)]({'title':_0x74b69c(0x23ca),'msg':'Fields\x20has\x20been\x20copied!'}),_0x5c751a();})[_0xf74a24(0x129e)](function(_0x1b57d8){const _0x5175c0=_0xf74a24;_0x1bbe9e[_0x5175c0(0x1980)]({'title':_0x1b57d8[_0x5175c0(0x107b)]?'API:'+_0x1b57d8[_0x5175c0(0x107b)]+_0x5175c0(0x1315)+_0x1b57d8['statusText']:_0x5175c0(0x3d3),'msg':_0x1b57d8[_0x5175c0(0x524)]?JSON['stringify'](_0x1b57d8[_0x5175c0(0x524)][_0x5175c0(0x7fd)]):_0x1b57d8['toString']()});});}function _0x877cc5(_0x58970c,_0x330f3a){const _0x10d8ff=_0x29eff5;_0x1618ad[_0x10d8ff(0x13cf)]=_0x330f3a['node'];}function _0x5c751a(){const _0x1d9454=_0x29eff5;_0x3e2b3d[_0x1d9454(0x2458)]();}}const _0x4bf0eb=_0x3ba500;;_0x55b9d4[_0x313a4d(0x11c2)]=[_0x313a4d(0xd08),'$mdDialog','toasty',_0x313a4d(0x2284),'report','api',_0x313a4d(0x320),'currentNode',_0x313a4d(0x1997),_0x313a4d(0x2514)];function _0x55b9d4(_0x5742a2,_0x2eb6bd,_0x583472,_0xb6269d,_0x4301f5,_0x53b05e,_0x12ab5e,_0x5de7dd,_0x40fa74,_0x4dbcf1){const _0x13d02a=_0x313a4d,_0x257216=this;_0x257216[_0x13d02a(0xcef)]=[],_0x257216[_0x13d02a(0x101)]=[],_0x257216[_0x13d02a(0x1189)]=_0x13d02a(0x2385),_0x257216[_0x13d02a(0x2514)]=_0x4dbcf1,_0x257216[_0x13d02a(0x1c9a)]=angular['copy'](_0x4301f5),_0x257216[_0x13d02a(0x2284)]=_0xb6269d,_0x257216['newReport']=![],_0x257216[_0x13d02a(0x1c7d)]=_0x40fa74[_0x13d02a(0x2372)](),_0x257216['joinTypes']=[{'key':_0x13d02a(0xb47),'value':_0x13d02a(0xce9)},{'key':'left_join','value':_0x13d02a(0x2522)},{'key':_0x13d02a(0x1e08),'value':'Right\x20Join'},{'key':'cross_join','value':_0x13d02a(0x1167)}];!_0x257216['report']&&(_0x257216[_0x13d02a(0x1c9a)]={'name':'','table':'report_agent','description':'','parent':_0x5de7dd['id']},_0x257216[_0x13d02a(0x1189)]=_0x13d02a(0x11aa),_0x257216[_0x13d02a(0x1552)]=!![]);_0x257216['addNewReport']=_0x218271,_0x257216['saveReport']=_0x6e903,_0x257216['deleteReport']=_0x3b2daa,_0x257216[_0x13d02a(0x13f3)]=_0x4c9f77,_0x257216[_0x13d02a(0xaa8)]=_0xdc601c,_0x257216[_0x13d02a(0x15dd)]=_0x2bae69,_0x257216[_0x13d02a(0x12ff)]=_0x434dfb;function _0x2bae69(_0x21de34){const _0x10e82e=_0x13d02a;_0x257216[_0x10e82e(0x101)][_0x10e82e(0x1f7d)](_0x21de34,0x1);}function _0x434dfb(_0x4ba5bd,_0x21db5a,_0x1d34e1){const _0x1e4269=_0x13d02a,_0x5a55d0=_0x3f65c0()[_0x1e4269(0xc84)](_0x257216[_0x1e4269(0x1c7d)],{'name':_0x1d34e1});_0x5a55d0&&_0x5a55d0[_0x1e4269(0x247f)]&&_0x53b05e[_0x5a55d0['api']][_0x1e4269(0x1ea2)]()['$promise'][_0x1e4269(0x146b)](function(_0xdc4dff){const _0x5ddd0d=_0x1e4269;_0x4ba5bd[_0x21db5a]=_0x3f65c0()[_0x5ddd0d(0xa62)](_0x3f65c0()[_0x5ddd0d(0x627)](_0xdc4dff),[_0x5ddd0d(0x2945),_0x5ddd0d(0x26f2)]);})['catch'](function(_0x18a447){console['error'](_0x18a447);});}function _0xdc601c(_0x1e48fd){const _0x5156e9=_0x13d02a;_0x1e48fd&&(delete _0x257216['selectedItem'],_0x257216[_0x5156e9(0x101)]['push'](_0x1e48fd));}function _0x218271(){const _0x2f84d4=_0x13d02a;_0x257216[_0x2f84d4(0xcef)]=[],_0x257216[_0x2f84d4(0x1c9a)][_0x2f84d4(0x219e)]=_0x3f65c0()[_0x2f84d4(0x205)](_0x257216['joinTables']||[],function(_0x19867b){const _0x373d30=_0x2f84d4;return{'parentKey':_0x19867b['parentKey'],'foreignTable':_0x19867b[_0x373d30(0x19eb)],'foreignKey':_0x19867b[_0x373d30(0x23ff)],'type':_0x19867b[_0x373d30(0x1142)][_0x373d30(0x256e)]()};}),_0x257216[_0x2f84d4(0x1c9a)][_0x2f84d4(0x219e)]=JSON[_0x2f84d4(0x10bb)](_0x257216['report'][_0x2f84d4(0x219e)]),_0x53b05e[_0x12ab5e][_0x2f84d4(0x1e3)](_0x257216[_0x2f84d4(0x1c9a)])[_0x2f84d4(0x2945)][_0x2f84d4(0x146b)](function(_0x1aa923){const _0x289abf=_0x2f84d4;_0x257216['reports'][_0x289abf(0xb3d)](_0x1aa923),_0x583472[_0x289abf(0x1c75)]({'title':_0x289abf(0x970),'msg':_0x257216['report'][_0x289abf(0x19eb)]?_0x257216[_0x289abf(0x1c9a)][_0x289abf(0x19eb)]+'\x20has\x20been\x20created!':''}),_0x4c9f77();})[_0x2f84d4(0x129e)](function(_0x8fdc5){const _0x9934ce=_0x2f84d4;if(_0x8fdc5[_0x9934ce(0x524)]&&_0x8fdc5['data'][_0x9934ce(0xcef)]&&_0x8fdc5[_0x9934ce(0x524)][_0x9934ce(0xcef)]['length']){_0x257216[_0x9934ce(0xcef)]=_0x8fdc5[_0x9934ce(0x524)][_0x9934ce(0xcef)]||[{'message':_0x8fdc5[_0x9934ce(0xd5f)](),'type':_0x9934ce(0x1ec9)}];for(let _0x598e0e=0x0;_0x598e0e<_0x8fdc5[_0x9934ce(0x524)]['errors'][_0x9934ce(0x402)];_0x598e0e++){_0x583472['error']({'title':_0x8fdc5[_0x9934ce(0x524)][_0x9934ce(0xcef)][_0x598e0e][_0x9934ce(0x1142)],'msg':_0x8fdc5[_0x9934ce(0x524)][_0x9934ce(0xcef)][_0x598e0e]['message']});}}else _0x583472[_0x9934ce(0x1980)]({'title':_0x8fdc5[_0x9934ce(0x107b)]?_0x9934ce(0x262a)+_0x8fdc5[_0x9934ce(0x107b)]+'\x20-\x20'+_0x8fdc5[_0x9934ce(0x167f)]:'api.analyticReport.save','msg':_0x8fdc5['data']?JSON[_0x9934ce(0x10bb)](_0x8fdc5[_0x9934ce(0x524)][_0x9934ce(0x7fd)]):_0x8fdc5['toString']()});});}function _0x6e903(){const _0x19a153=_0x13d02a;_0x257216[_0x19a153(0xcef)]=[],_0x53b05e[_0x12ab5e][_0x19a153(0x18e1)]({'id':_0x257216[_0x19a153(0x1c9a)]['id']},_0x257216['report'])[_0x19a153(0x2945)][_0x19a153(0x146b)](function(_0x455a04){const _0x4d8fe9=_0x19a153,_0x248aa1=_0x3f65c0()[_0x4d8fe9(0xc84)](_0x257216[_0x4d8fe9(0x2284)],{'id':_0x455a04['id']});_0x248aa1&&_0x3f65c0()[_0x4d8fe9(0x168d)](_0x248aa1,_0x455a04),_0x583472['success']({'title':_0x4d8fe9(0x94b),'msg':_0x257216[_0x4d8fe9(0x1c9a)]['name']?_0x257216[_0x4d8fe9(0x1c9a)][_0x4d8fe9(0x19eb)]+_0x4d8fe9(0x24db):''}),_0x4c9f77();})['catch'](function(_0x25c589){const _0x3e1f5e=_0x19a153;if(_0x25c589['data']&&_0x25c589[_0x3e1f5e(0x524)][_0x3e1f5e(0xcef)]&&_0x25c589[_0x3e1f5e(0x524)][_0x3e1f5e(0xcef)][_0x3e1f5e(0x402)]){_0x257216[_0x3e1f5e(0xcef)]=_0x25c589['data'][_0x3e1f5e(0xcef)]||[{'message':_0x25c589[_0x3e1f5e(0xd5f)](),'type':_0x3e1f5e(0x613)}];for(let _0x397a18=0x0;_0x397a18<_0x25c589[_0x3e1f5e(0x524)]['errors'][_0x3e1f5e(0x402)];_0x397a18++){_0x583472['error']({'title':_0x25c589[_0x3e1f5e(0x524)][_0x3e1f5e(0xcef)][_0x397a18][_0x3e1f5e(0x1142)],'msg':_0x25c589[_0x3e1f5e(0x524)]['errors'][_0x397a18]['message']});}}else _0x583472[_0x3e1f5e(0x1980)]({'title':_0x25c589[_0x3e1f5e(0x107b)]?_0x3e1f5e(0x262a)+_0x25c589[_0x3e1f5e(0x107b)]+'\x20-\x20'+_0x25c589[_0x3e1f5e(0x167f)]:_0x3e1f5e(0x613),'msg':_0x25c589['data']?JSON['stringify'](_0x25c589['data'][_0x3e1f5e(0x7fd)]):_0x25c589['toString']()});});}function _0x3b2daa(){const _0x15487e=_0x13d02a;_0x257216[_0x15487e(0xcef)]=[];const _0x1cdc08=_0x2eb6bd[_0x15487e(0x1e8a)]()[_0x15487e(0x1189)](_0x15487e(0x1d64))[_0x15487e(0x80f)]('The\x20report\x20will\x20be\x20deleted.')[_0x15487e(0x4bd)](_0x15487e(0x40a))['ok'](_0x15487e(0x25de))[_0x15487e(0x6c3)](_0x15487e(0xcf0))[_0x15487e(0x1f27)](event);_0x2eb6bd[_0x15487e(0x2615)](_0x1cdc08)[_0x15487e(0x146b)](function(){const _0x47da75=_0x15487e;_0x53b05e[_0x12ab5e][_0x47da75(0x1fac)]({'id':_0x257216[_0x47da75(0x1c9a)]['id']})['$promise'][_0x47da75(0x146b)](function(){const _0x4a3e27=_0x47da75;_0x3f65c0()[_0x4a3e27(0x2640)](_0x257216['reports'],{'id':_0x257216[_0x4a3e27(0x1c9a)]['id']}),_0x583472[_0x4a3e27(0x1c75)]({'title':_0x4a3e27(0x18ac),'msg':_0x257216['report'][_0x4a3e27(0x19eb)]?_0x257216[_0x4a3e27(0x1c9a)][_0x4a3e27(0x19eb)]+_0x4a3e27(0x23e3):''}),_0x4c9f77();})['catch'](function(_0x2eefe0){const _0x37a018=_0x47da75;_0x257216['errors']=_0x2eefe0[_0x37a018(0x524)]['errors']||[{'message':_0x2eefe0['toString'](),'type':_0x37a018(0x1e8)}];});},function(){});}function _0x4c9f77(){_0x2eb6bd['hide']();}}const _0x3913e2=_0x55b9d4;;_0x1bbdb[_0x313a4d(0x11c2)]=[_0x313a4d(0x10e8),_0x313a4d(0x1997),_0x313a4d(0x1fe4),_0x313a4d(0xc07)];function _0x1bbdb(_0x220170,_0xbd7c35,_0x209ad4,_0x1d86e1){const _0x57ce62=_0x313a4d,_0x3e5d1b=this;_0x3e5d1b[_0x57ce62(0x1c9a)]={},_0x3e5d1b[_0x57ce62(0x1072)]=_0x1d86e1[_0x57ce62(0x16bb)],_0x3e5d1b['init']=_0x4fb1dc,_0x3e5d1b[_0x57ce62(0x1b84)]=_0x2c652a,_0x3e5d1b['addGroup']=_0x21b5b6,_0x3e5d1b[_0x57ce62(0x19b4)]=_0xc0ba48,_0x3e5d1b[_0x57ce62(0x4d5)]=_0x161afb;function _0x4fb1dc(_0x2a18f6,_0x31c22e){const _0x1243f0=_0x57ce62;_0x3e5d1b[_0x1243f0(0x1c9a)]=_0x2a18f6,_0x3e5d1b[_0x1243f0(0x1c9a)][_0x1243f0(0x115f)]=angular['fromJson'](_0x2a18f6[_0x1243f0(0x1072)])||{'group':{'operator':'AND','rules':[]}},_0x3e5d1b[_0x1243f0(0x2514)]=typeof _0x31c22e!=='undefined'?_0x31c22e:{'readOnly':!![],'canEdit':![],'canDelete':![]};for(let _0x5b1f61=0x0;_0x5b1f61<_0x3e5d1b[_0x1243f0(0x1c9a)][_0x1243f0(0x115f)]['group'][_0x1243f0(0x644)][_0x1243f0(0x402)];_0x5b1f61++){if(_0x3e5d1b['report'][_0x1243f0(0x115f)][_0x1243f0(0x1b12)]['rules'][_0x5b1f61]['field']){const _0x19964c=_0x3e5d1b['report'][_0x1243f0(0x115f)][_0x1243f0(0x1b12)][_0x1243f0(0x644)][_0x5b1f61][_0x1243f0(0x65c)][_0x1243f0(0x10c8)]('.');_0x19964c[_0x1243f0(0x402)]===0x1&&(_0x3e5d1b['report']['condition'][_0x1243f0(0x1b12)][_0x1243f0(0x644)][_0x5b1f61][_0x1243f0(0x65c)]=_0x3e5d1b[_0x1243f0(0x1c9a)][_0x1243f0(0x768)]+'.'+_0x3e5d1b[_0x1243f0(0x1c9a)][_0x1243f0(0x115f)][_0x1243f0(0x1b12)][_0x1243f0(0x644)][_0x5b1f61][_0x1243f0(0x65c)]);}}_0xbd7c35['getColumns'](_0x3e5d1b[_0x1243f0(0x1c9a)][_0x1243f0(0x768)])[_0x1243f0(0x146b)](function(_0x27430b){const _0x206ee5=_0x1243f0;_0x3e5d1b[_0x206ee5(0x194f)]=_0x3f65c0()[_0x206ee5(0xa62)](_0x3f65c0()[_0x206ee5(0x627)](_0x27430b),[_0x206ee5(0x2945),'$resolved',_0x206ee5(0xc68),_0x206ee5(0x144f)]);})[_0x1243f0(0x129e)](function(_0x438e92){const _0x34d74f=_0x1243f0;_0x209ad4[_0x34d74f(0x1980)]({'title':_0x438e92['status']?_0x34d74f(0x262a)+_0x438e92[_0x34d74f(0x107b)]+_0x34d74f(0x1315)+_0x438e92['statusText']:_0x34d74f(0x11ee),'msg':_0x438e92[_0x34d74f(0x524)]?JSON[_0x34d74f(0x10bb)](_0x438e92[_0x34d74f(0x524)]):_0x438e92['toString']()});});}function _0x2c652a(_0x5f4ff0){_0x5f4ff0['unshift']({'condition':'=','field':'','value':''});}function _0x21b5b6(_0x34bfc5){const _0x59d06d=_0x57ce62;_0x34bfc5[_0x59d06d(0x1f47)]({'group':{'operator':_0x59d06d(0x2006),'rules':[]}});}function _0xc0ba48(_0x126a32,_0x3d4571,_0x56657e){const _0x46189a=_0x57ce62,_0x1f61e5=_0x220170[_0x46189a(0x1e8a)]()[_0x46189a(0x1189)](_0x46189a(0x2416))[_0x46189a(0x1cbe)](_0x46189a(0x10dd))[_0x46189a(0x4bd)](_0x46189a(0x7ec))['targetEvent'](_0x56657e)['ok']('OK')[_0x46189a(0x6c3)](_0x46189a(0x39a));_0x220170[_0x46189a(0x2615)](_0x1f61e5)[_0x46189a(0x146b)](function(){const _0x5a0635=_0x46189a;_0x126a32[_0x5a0635(0x1f7d)](_0x3d4571,0x1);},function(){const _0x22c3b4=_0x46189a;console[_0x22c3b4(0x1a74)](_0x22c3b4(0x39a));});}function _0x161afb(_0x40157c){const _0x11070a=_0x57ce62;return!_0x3f65c0()[_0x11070a(0xa4e)]([_0x11070a(0x1bfa),_0x11070a(0x3e8),_0x11070a(0x628),_0x11070a(0xf2d)],_0x40157c);}}const _0x57f371=_0x1bbdb;;_0xc6a19[_0x313a4d(0x11c2)]=['api'];function _0xc6a19(_0x12c16a){const _0x4c3b9f=_0x313a4d,_0x2d6268={'cm_companies':_0x4c3b9f(0x134d),'cm_contacts':_0x4c3b9f(0x18c3),'cm_hopper':'cmHopper','cm_hopper_final':_0x4c3b9f(0x2018),'cm_hopper_history':_0x4c3b9f(0x22e3),'cm_lists':_0x4c3b9f(0xf03),'chat_websites':_0x4c3b9f(0x189e),'chat_queues':'chatQueue','chat_interactions':_0x4c3b9f(0xc9f),'chat_messages':'chatMessage','chat_offline_messages':_0x4c3b9f(0x147e),'report_chat_queue':_0x4c3b9f(0x11f2),'report_chat_transfer':'chatTransferReport','mail_accounts':_0x4c3b9f(0x67d),'mail_queues':'mailQueue','mail_interactions':'mailInteraction','mail_messages':_0x4c3b9f(0x213),'report_mail_queue':'mailQueueReport','report_mail_transfer':_0x4c3b9f(0x1000),'openchannel_accounts':_0x4c3b9f(0xbd7),'openchannel_queues':_0x4c3b9f(0x2755),'openchannel_interactions':_0x4c3b9f(0x119),'openchannel_messages':_0x4c3b9f(0x105e),'report_openchannel_queue':'openchannelQueueReport','report_openchannel_transfer':'openchannelTransferReport','sms_accounts':_0x4c3b9f(0x2209),'sms_queues':_0x4c3b9f(0xf80),'sms_interactions':'smsInteraction','sms_messages':_0x4c3b9f(0xb24),'report_sms_queue':_0x4c3b9f(0x64a),'report_sms_transfer':'smsTransferReport','fax_accounts':_0x4c3b9f(0x178),'fax_queues':_0x4c3b9f(0x999),'fax_interactions':_0x4c3b9f(0xe5b),'fax_messages':'faxMessage','report_fax_transfer':_0x4c3b9f(0x377),'report_fax_queue':_0x4c3b9f(0x1c30),'report_call':_0x4c3b9f(0x629),'report_agent':_0x4c3b9f(0x1cb3),'report_square':'squareReport','report_member':_0x4c3b9f(0x2721),'report_queue':'voiceQueueReport','report_square_details':_0x4c3b9f(0x27c3),'report_dial':_0x4c3b9f(0x160),'report_jscripty_sessions':_0x4c3b9f(0x468),'report_jscripty_questions':_0x4c3b9f(0x2526),'report_jscripty_answers':_0x4c3b9f(0x1641),'users':_0x4c3b9f(0xe7b),'voice_recordings':_0x4c3b9f(0x1688),'cdr':_0x4c3b9f(0x138f),'whatsapp_accounts':_0x4c3b9f(0x815),'whatsapp_queues':'whatsappQueue','whatsapp_interactions':'whatsappInteraction','whatsapp_messages':_0x4c3b9f(0x812),'report_whatsapp_queue':_0x4c3b9f(0x448),'report_whatsapp_transfer':'whatsappTransferReport'};return{'getMap':function(){const _0x10bf6c=_0x4c3b9f,_0x331903=[];return _0x3f65c0()[_0x10bf6c(0x1a04)](_0x2d6268,function(_0x1014e1,_0x9fe4ad){const _0x11a36c=_0x10bf6c;_0x331903[_0x11a36c(0x1f47)]({'name':_0x9fe4ad,'api':_0x1014e1});}),_0x331903;},'getColumns':function(_0x185b75){const _0x358272=_0x4c3b9f,_0x1e37a0=_0x2d6268[_0x185b75];return _0x12c16a[_0x1e37a0][_0x358272(0x1ea2)]()['$promise'];}};}const _0x8a0bc9=_0xc6a19;;_0x270623[_0x313a4d(0x11c2)]=['$scope',_0x313a4d(0xd08),'$mdDialog',_0x313a4d(0x1fe4),_0x313a4d(0x1c9a),_0x313a4d(0xed7),_0x313a4d(0x1aef),_0x313a4d(0x210e),'columns',_0x313a4d(0xc07),'api','crudPermissions'];function _0x270623(_0x434c34,_0x158c4f,_0x355df0,_0x2298e7,_0x99e986,_0x456cfc,_0x125456,_0x5976e7,_0x23f535,_0x1f857e,_0x10d5f4,_0x14d12e){const _0x4ff147=_0x313a4d,_0x25de23=this;_0x25de23[_0x4ff147(0xcef)]=[],_0x25de23[_0x4ff147(0x1189)]=_0x4ff147(0xb42),_0x25de23[_0x4ff147(0x1c9a)]=_0x99e986,_0x25de23[_0x4ff147(0x1aef)]=angular[_0x4ff147(0x235a)](_0x125456),_0x25de23[_0x4ff147(0xed7)]=_0x456cfc,_0x25de23[_0x4ff147(0x210e)]=_0x5976e7,_0x25de23[_0x4ff147(0x194f)]=_0x23f535,_0x25de23[_0x4ff147(0xc07)]=_0x1f857e,_0x25de23['newReportField']=![],_0x25de23[_0x4ff147(0x2514)]=_0x14d12e;if(!_0x25de23[_0x4ff147(0x1aef)])_0x25de23[_0x4ff147(0x1aef)]={'type':_0x4ff147(0x1dbb),'function':null,'format':null,'groupBy':![],'orderBy':null},_0x25de23['title']=_0x4ff147(0xf7d),_0x25de23[_0x4ff147(0x5fa)]=!![];else{_0x25de23[_0x4ff147(0x1aef)][_0x4ff147(0x1142)]=_0x25de23['reportField'][_0x4ff147(0x1802)]?_0x4ff147(0x1802):_0x25de23[_0x4ff147(0x1aef)][_0x4ff147(0x9e9)]?_0x4ff147(0x16c6):_0x4ff147(0x1dbb);if(_0x25de23['reportField'][_0x4ff147(0x65c)]&&!_0x25de23[_0x4ff147(0x1aef)][_0x4ff147(0x1802)]&&_0x3f65c0()['isNil'](_0x25de23['reportField'][_0x4ff147(0x9e9)])){const _0x27b740=_0x25de23[_0x4ff147(0x1aef)][_0x4ff147(0x65c)][_0x4ff147(0x10c8)]('.');_0x27b740['length']===0x1&&(_0x25de23[_0x4ff147(0x1aef)][_0x4ff147(0x65c)]=_0x25de23[_0x4ff147(0x1c9a)][_0x4ff147(0x768)]+'.'+_0x25de23['reportField'][_0x4ff147(0x65c)]);}}_0x25de23[_0x4ff147(0x1b47)]=_0x5aee21,_0x25de23['saveReportField']=_0x45583b,_0x25de23[_0x4ff147(0x121f)]=_0x49f22d,_0x25de23[_0x4ff147(0x13f3)]=_0x441fe9;function _0x5aee21(){const _0x30cf40=_0x4ff147;_0x25de23[_0x30cf40(0xcef)]=[],_0x25de23[_0x30cf40(0x1aef)][_0x30cf40(0x1802)]=_0x25de23[_0x30cf40(0x1aef)][_0x30cf40(0x1142)]==='custom',_0x25de23[_0x30cf40(0x1aef)][_0x30cf40(0x9e9)]=_0x25de23[_0x30cf40(0x1aef)][_0x30cf40(0x1142)]===_0x30cf40(0x16c6)?_0x25de23['reportField'][_0x30cf40(0x9e9)]:null,_0x25de23['reportField']['CustomReportId']=_0x25de23[_0x30cf40(0x1c9a)]['id'],_0x10d5f4[_0x30cf40(0x1f56)][_0x30cf40(0x1e3)](_0x25de23['reportField'])['$promise'][_0x30cf40(0x146b)](function(_0x116c2c){const _0x40c2cf=_0x30cf40;_0x25de23[_0x40c2cf(0xed7)]['push'](_0x116c2c),_0x2298e7[_0x40c2cf(0x1c75)]({'title':_0x40c2cf(0x846),'msg':_0x25de23[_0x40c2cf(0x1aef)][_0x40c2cf(0x65c)]?_0x25de23[_0x40c2cf(0x1aef)][_0x40c2cf(0x65c)]+_0x40c2cf(0x1386):_0x25de23[_0x40c2cf(0x1aef)]['type']+_0x40c2cf(0x1386)}),_0x441fe9();})[_0x30cf40(0x129e)](function(_0x130fb7){const _0x52279f=_0x30cf40;_0x25de23['errors']=_0x130fb7['data']['errors']||[{'message':_0x130fb7[_0x52279f(0xd5f)](),'type':_0x52279f(0x1894)}];});}function _0x45583b(){const _0x1f6144=_0x4ff147;_0x25de23[_0x1f6144(0xcef)]=[],_0x25de23[_0x1f6144(0x1aef)][_0x1f6144(0x1802)]=_0x25de23[_0x1f6144(0x1aef)]['type']===_0x1f6144(0x1802),_0x25de23[_0x1f6144(0x1aef)][_0x1f6144(0x9e9)]=_0x25de23['reportField'][_0x1f6144(0x1142)]===_0x1f6144(0x16c6)?_0x25de23[_0x1f6144(0x1aef)]['MetricId']:null,_0x10d5f4[_0x1f6144(0x1f56)]['update']({'id':_0x25de23[_0x1f6144(0x1aef)]['id']},_0x25de23[_0x1f6144(0x1aef)])[_0x1f6144(0x2945)][_0x1f6144(0x146b)](function(_0x469f02){const _0x3accc3=_0x1f6144,_0x48f8fc=_0x3f65c0()[_0x3accc3(0xc84)](_0x25de23[_0x3accc3(0xed7)],{'id':_0x469f02['id']});_0x48f8fc&&_0x3f65c0()[_0x3accc3(0x168d)](_0x48f8fc,_0x469f02),_0x2298e7[_0x3accc3(0x1c75)]({'title':_0x3accc3(0x19ff),'msg':_0x25de23['reportField'][_0x3accc3(0x65c)]?_0x25de23[_0x3accc3(0x1aef)][_0x3accc3(0x65c)]+_0x3accc3(0x24db):''}),_0x441fe9();})[_0x1f6144(0x129e)](function(_0x4acd8c){const _0xb6ab9b=_0x1f6144;_0x25de23['errors']=_0x4acd8c['data']['errors']||[{'message':_0x4acd8c[_0xb6ab9b(0xd5f)](),'type':'api.analyticFieldReport.update'}];});}function _0x49f22d(_0x1bf0a1){const _0x3b0bd6=_0x4ff147;_0x25de23[_0x3b0bd6(0xcef)]=[];const _0x12de84=_0x355df0['confirm']()[_0x3b0bd6(0x1189)]('Are\x20you\x20sure?')['content']('The\x20field\x20will\x20be\x20deleted.')[_0x3b0bd6(0x4bd)]('Delete\x20Report')['ok'](_0x3b0bd6(0x25de))[_0x3b0bd6(0x6c3)](_0x3b0bd6(0xcf0))[_0x3b0bd6(0x1f27)](_0x1bf0a1);_0x355df0[_0x3b0bd6(0x2615)](_0x12de84)['then'](function(){const _0x42c0ac=_0x3b0bd6;_0x10d5f4[_0x42c0ac(0x1f56)][_0x42c0ac(0x1fac)]({'id':_0x25de23[_0x42c0ac(0x1aef)]['id']})['$promise'][_0x42c0ac(0x146b)](function(){const _0x55713c=_0x42c0ac;_0x3f65c0()['remove'](_0x25de23[_0x55713c(0xed7)],{'id':_0x25de23[_0x55713c(0x1aef)]['id']}),_0x2298e7[_0x55713c(0x1c75)]({'title':_0x55713c(0x268c),'msg':_0x25de23[_0x55713c(0x1aef)][_0x55713c(0x65c)]?_0x25de23[_0x55713c(0x1aef)][_0x55713c(0x65c)]+'\x20has\x20been\x20deleted!':''}),_0x441fe9();})['catch'](function(_0x380208){const _0x33482c=_0x42c0ac;_0x25de23[_0x33482c(0xcef)]=_0x380208[_0x33482c(0x524)][_0x33482c(0xcef)]||[{'message':_0x380208['toString'](),'type':_0x33482c(0x9c1)}];});},function(){});}function _0x441fe9(){const _0xdae766=_0x4ff147;_0x355df0[_0xdae766(0x2458)]();}}const _0x26e060=_0x270623;;const _0x22dbb6=_0x4acfac['p']+_0x313a4d(0x26e3);;_0x2c9e1c[_0x313a4d(0x11c2)]=[_0x313a4d(0x23df),_0x313a4d(0x910),_0x313a4d(0x1abe),_0x313a4d(0x10e8),_0x313a4d(0x4d8),_0x313a4d(0x1fe4),_0x313a4d(0x247f),_0x313a4d(0x1997),_0x313a4d(0xc07),_0x313a4d(0x214b)];function _0x2c9e1c(_0x51cb30,_0x5d9439,_0x35e911,_0x98f54,_0x1edec7,_0x4c4008,_0x223329,_0x58e348,_0x498209,_0x3709e9){const _0x53f222=_0x313a4d,_0x4b8c71=this;_0x4b8c71[_0x53f222(0x1c9a)]={},_0x4b8c71[_0x53f222(0xed7)]={'count':0x0,'rows':[]},_0x4b8c71['functions']=_0x3f65c0()[_0x53f222(0x194)](_0x498209[_0x53f222(0xcda)],_0x53f222(0x175d)),_0x4b8c71['formats']=_0x3f65c0()[_0x53f222(0x194)](_0x498209[_0x53f222(0x25b3)],_0x53f222(0x175d)),_0x4b8c71['groupBy']=_0x3f65c0()[_0x53f222(0x194)](_0x498209['getGroupBy'],_0x53f222(0x175d)),_0x4b8c71[_0x53f222(0x979)]=_0x3f65c0()['keyBy'](_0x498209[_0x53f222(0x15e7)],'value'),_0x4b8c71[_0x53f222(0x274d)]=[],_0x4b8c71['query']={'fields':_0x53f222(0x705),'nolimit':!![]},_0x4b8c71[_0x53f222(0x161d)]={'animation':0x64,'onSort':function(_0x23d0c9){const _0x56e26f=_0x53f222;_0x223329[_0x56e26f(0x1f56)]['addFields']({'id':_0x4b8c71[_0x56e26f(0x1c9a)]['id']},_0x23d0c9[_0x56e26f(0x2885)])[_0x56e26f(0x2945)][_0x56e26f(0x146b)](function(_0x5c7170){const _0x5a25c3=_0x56e26f;_0x4b8c71['reportFields'][_0x5a25c3(0x19c7)]=_0x5c7170;})['catch'](function(_0x297237){const _0x213175=_0x56e26f;_0x4c4008[_0x213175(0x1980)]({'title':_0x297237['status']?_0x213175(0x262a)+_0x297237[_0x213175(0x107b)]+'\x20-\x20'+_0x297237['statusText']:_0x213175(0x229f)});});}},_0x4b8c71[_0x53f222(0x5aa)]=_0x580e1a,_0x4b8c71[_0x53f222(0x19b4)]=_0x2012ae,_0x4b8c71[_0x53f222(0x1c75)]=_0x2b8b50,_0x4b8c71['getReportFields']=_0x1f9e35,_0x4b8c71[_0x53f222(0x1345)]=_0x337742,_0x4b8c71['deleteReportField']=_0x44474e,_0x4b8c71['deleteSelectedReportFields']=_0x293465,_0x4b8c71[_0x53f222(0x1d9c)]=_0x52859c,_0x4b8c71[_0x53f222(0x2e7)]=_0x42a08d;function _0x580e1a(_0x1ef30d,_0x5def97){const _0x3b6482=_0x53f222;_0x4b8c71['report']=_0x1ef30d,_0x4b8c71[_0x3b6482(0x1a56)][_0x3b6482(0x2728)]=_0x4b8c71['report']['id'],_0x4b8c71[_0x3b6482(0x2514)]=typeof _0x5def97!==_0x3b6482(0x2274)?_0x5def97:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x4b8c71[_0x3b6482(0x161d)][_0x3b6482(0x2862)]=!_0x4b8c71[_0x3b6482(0x2514)]['canEdit']?!![]:![],_0x58e348[_0x3b6482(0x9dc)](_0x4b8c71[_0x3b6482(0x1c9a)][_0x3b6482(0x768)])[_0x3b6482(0x146b)](function(_0x3a3228){const _0x213346=_0x3b6482;return _0x4b8c71[_0x213346(0x194f)]=_0x3f65c0()['difference'](_0x3f65c0()['keys'](_0x3a3228),[_0x213346(0x2945),_0x213346(0x26f2)]),_0x223329[_0x213346(0x1f01)][_0x213346(0x16b4)]({'fields':_0x213346(0xc31),'nolimit':!![]})[_0x213346(0x2945)];})[_0x3b6482(0x146b)](function(_0x1db7bf){const _0xf1fb7b=_0x3b6482;_0x4b8c71['metrics']=_0x1db7bf[_0xf1fb7b(0x19c7)];})[_0x3b6482(0x129e)](function(_0x151d4c){const _0x4bd87a=_0x3b6482;_0x4c4008['error']({'title':_0x151d4c[_0x4bd87a(0x107b)]?_0x4bd87a(0x262a)+_0x151d4c[_0x4bd87a(0x107b)]+_0x4bd87a(0x1315)+_0x151d4c[_0x4bd87a(0x167f)]:_0x4bd87a(0x11ee),'msg':_0x151d4c[_0x4bd87a(0x524)]?JSON['stringify'](_0x151d4c[_0x4bd87a(0x524)]):_0x151d4c[_0x4bd87a(0xd5f)]()});}),_0x4b8c71[_0x3b6482(0x2104)]();}function _0x2012ae(_0x5a04bb,_0x946d2b){const _0x5f1b2a=_0x53f222,_0x255ecc=_0x98f54[_0x5f1b2a(0x1e8a)]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20field?')[_0x5f1b2a(0x1cbe)](_0x5f1b2a(0x16d3)+_0x5a04bb[_0x5f1b2a(0x65c)]+''+_0x5f1b2a(0xe01))[_0x5f1b2a(0x4bd)](_0x5f1b2a(0x2487))[_0x5f1b2a(0x1f27)](_0x946d2b)['ok']('OK')[_0x5f1b2a(0x6c3)](_0x5f1b2a(0x39a));_0x98f54['show'](_0x255ecc)[_0x5f1b2a(0x146b)](function(){_0x44474e(_0x5a04bb);},function(){const _0x3a1a4c=_0x5f1b2a;console['log'](_0x3a1a4c(0x39a));});}let _0x52f4d3=!![];_0x5d9439[_0x53f222(0x21e8)]('vm_rf.query.filter',function(){_0x52f4d3?_0x35e911(function(){_0x52f4d3=![];}):_0x4b8c71['getReportFields']();});function _0x2b8b50(_0x2deebb){_0x4b8c71['reportFields']=_0x2deebb||{'count':0x0,'rows':[]};}function _0x1f9e35(){const _0x5ab481=_0x53f222;_0x4b8c71[_0x5ab481(0xb9c)]=_0x223329[_0x5ab481(0x1f56)]['get'](_0x4b8c71['query'],_0x2b8b50)[_0x5ab481(0x2945)];}function _0x337742(_0x3328f9,_0x11c4de){const _0x3b8a0e=_0x53f222;_0x98f54['show']({'controller':_0x3b8a0e(0x1657),'controllerAs':'vm','templateUrl':_0x22dbb6,'parent':angular[_0x3b8a0e(0x1853)](_0x1edec7[_0x3b8a0e(0x2586)]),'targetEvent':_0x3328f9,'clickOutsideToClose':!![],'locals':{'report':_0x4b8c71['report'],'reportField':_0x11c4de,'reportFields':_0x4b8c71[_0x3b8a0e(0xed7)]['rows'],'metrics':_0x4b8c71['metrics'],'columns':_0x4b8c71[_0x3b8a0e(0x194f)],'setting':null,'crudPermissions':_0x4b8c71['crudPermissions']}});}function _0x44474e(_0x1a7922){const _0x59e455=_0x53f222;_0x223329[_0x59e455(0x1f56)][_0x59e455(0x1fac)]({'id':_0x1a7922['id']})[_0x59e455(0x2945)]['then'](function(){const _0x3d5361=_0x59e455;_0x4b8c71[_0x3d5361(0x274d)]=[],_0x3f65c0()['remove'](_0x4b8c71[_0x3d5361(0xed7)][_0x3d5361(0x19c7)],{'id':_0x1a7922['id']}),_0x4b8c71[_0x3d5361(0xed7)][_0x3d5361(0x51c)]-=0x1,!_0x4b8c71['reportFields']['rows'][_0x3d5361(0x402)]&&_0x4b8c71[_0x3d5361(0x2104)](),_0x4c4008[_0x3d5361(0x1c75)]({'title':_0x3d5361(0x24ce),'msg':_0x1a7922[_0x3d5361(0x65c)]?_0x1a7922['field']+_0x3d5361(0x23e3):''});})['catch'](function(_0x1b59bf){const _0x59aafe=_0x59e455;_0x4c4008[_0x59aafe(0x1980)]({'title':_0x1b59bf['status']?_0x59aafe(0x262a)+_0x1b59bf[_0x59aafe(0x107b)]+_0x59aafe(0x1315)+_0x1b59bf[_0x59aafe(0x167f)]:_0x59aafe(0x10eb),'msg':_0x1b59bf[_0x59aafe(0x524)]?JSON['stringify'](_0x1b59bf[_0x59aafe(0x524)]):_0x1b59bf[_0x59aafe(0xd5f)]()});});}function _0x293465(_0x2328de){const _0x270df9=_0x53f222,_0x3cc7eb=_0x98f54[_0x270df9(0x1e8a)]()[_0x270df9(0x1189)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20fields?')[_0x270df9(0x1cbe)](_0x270df9(0x16d3)+_0x4b8c71[_0x270df9(0x274d)]['length']+_0x270df9(0x2452)+'\x20will\x20be\x20deleted.')[_0x270df9(0x4bd)](_0x270df9(0x176a))[_0x270df9(0x1f27)](_0x2328de)['ok']('OK')[_0x270df9(0x6c3)]('CANCEL');_0x98f54[_0x270df9(0x2615)](_0x3cc7eb)['then'](function(){const _0x336ed5=_0x270df9;_0x4b8c71[_0x336ed5(0x274d)]['forEach'](function(_0x2c4e2f){_0x44474e(_0x2c4e2f);}),_0x4b8c71[_0x336ed5(0x274d)]=[];});}function _0x52859c(_0x1a0a36){const _0x5c343d=_0x53f222,_0x5614c2=_0x3f65c0()[_0x5c343d(0xc84)](_0x4b8c71[_0x5c343d(0x210e)],{'id':_0x1a0a36});return _0x5614c2?_0x5614c2['name']:_0x3709e9['instant'](_0x5c343d(0x1426));}function _0x42a08d(_0x2c0937){const _0x4941b1=_0x53f222,_0x1c2638=_0x3f65c0()[_0x4941b1(0xc84)](_0x4b8c71[_0x4941b1(0x210e)],{'id':_0x2c0937});return _0x1c2638?_0x1c2638[_0x4941b1(0x16c6)]:_0x3709e9['instant'](_0x4941b1(0x1426));}}const _0x4b6735=_0x2c9e1c;;function _0x27036c(){const _0x17323b=_0x313a4d,_0x304021=[{'value':'SUM','option':function(_0x5b321a){const _0x428518=a0_0x3bb9;return _0x428518(0x24f9)+_0x5b321a+')';}},{'value':_0x17323b(0x1aac),'option':function(_0x4e0e1f){const _0x345c8e=_0x17323b;return _0x345c8e(0xa64)+_0x4e0e1f+')';}},{'value':_0x17323b(0x2431),'option':function(_0x4d9ce5){const _0x4630d0=_0x17323b;return _0x4630d0(0x2596)+_0x4d9ce5+')';}},{'value':'MAX','option':function(_0x2f0124){const _0xd84bc2=_0x17323b;return _0xd84bc2(0xb6e)+_0x2f0124+')';}},{'value':_0x17323b(0x159b),'option':function(_0x1284eb){const _0x58ec85=_0x17323b;return _0x58ec85(0xd10)+_0x1284eb+')';}},{'value':_0x17323b(0x195f),'option':function(_0xf9f407){const _0x17f6e2=_0x17323b;return _0x17f6e2(0x1454)+_0xf9f407+')';}},{'value':'GROUP_CONCAT','option':function(_0x50a757){const _0x17cecf=_0x17323b;return _0x17cecf(0x170a)+_0x50a757+')';}},{'value':'GROUP_CONCAT\x20ASC','option':function(_0x5d32a8){const _0x1024b9=_0x17323b;return'GROUP_CONCAT\x20('+_0x5d32a8+_0x1024b9(0x38a)+_0x5d32a8+_0x1024b9(0x1407);}},{'value':'GROUP_CONCAT\x20DESC','option':function(_0x48bee7){const _0x34a1d4=_0x17323b;return _0x34a1d4(0x170a)+_0x48bee7+'\x20ORDER\x20BY\x20'+_0x48bee7+_0x34a1d4(0x3cf);}}],_0x8cf16=[{'value':_0x17323b(0x2594),'option':function(_0x4b8fb9){const _0x1d6329=_0x17323b;return _0x1d6329(0x1f32)+_0x4b8fb9+')';}},{'value':'DATE','option':function(_0x41215d){const _0x1e95c9=_0x17323b;return _0x1e95c9(0x1565)+_0x41215d+')';}},{'value':_0x17323b(0x2656),'option':function(_0x239774){return'HOUR\x20('+_0x239774+')';}},{'value':_0x17323b(0xfba),'option':function(_0x5d3131){return'ROUND\x20('+_0x5d3131+')';}},{'value':_0x17323b(0x7d4),'option':function(_0xb23244){const _0xff77a6=_0x17323b;return _0xff77a6(0xaf6)+_0xb23244+')';}}],_0x27ca43=[{'value':![],'option':function(){return'No';}},{'value':!![],'option':function(_0x539745){const _0x202aef=_0x17323b;return _0x202aef(0x289d)+_0x539745;}}],_0x1c82c8=[{'value':_0x17323b(0x1734),'option':function(_0x56bd2a){const _0x3fe4fc=_0x17323b;return _0x3fe4fc(0x222)+_0x56bd2a+'\x20ASC';}},{'value':_0x17323b(0x40b),'option':function(_0x342f28){const _0x4e2730=_0x17323b;return _0x4e2730(0x222)+_0x342f28+_0x4e2730(0x1b29);}}],_0x37f05b=['=','!=','<','<=','>','>=',_0x17323b(0x2591),_0x17323b(0x1f8),_0x17323b(0x1bfa),_0x17323b(0x3e8),_0x17323b(0x628),_0x17323b(0xf2d)];return{'getFunctions':_0x304021,'getFormats':_0x8cf16,'getGroupBy':_0x27ca43,'getOrderBy':_0x1c82c8,'getConditions':_0x37f05b};}const _0x411b5a=_0x27036c;;_0x22d168[_0x313a4d(0x11c2)]=[_0x313a4d(0x1862),_0x313a4d(0x1fe4),_0x313a4d(0x247f),'report','Auth',_0x313a4d(0x1366)];function _0x22d168(_0x4b8f4b,_0x52ee73,_0x123cfc,_0x54f2ad,_0xa2c0f5,_0x577405){const _0x3ea740=_0x313a4d,_0x5db485=this;_0x5db485[_0x3ea740(0x1c9a)]=_0x54f2ad||{},_0x5db485[_0x3ea740(0x1366)]=_0x577405&&_0x577405['count']==0x1?_0x577405[_0x3ea740(0x19c7)][0x0]:null,_0x5db485[_0x3ea740(0x2514)]=_0xa2c0f5[_0x3ea740(0xe60)](_0x5db485[_0x3ea740(0x1366)]?_0x5db485['userProfileSection']['crudPermissions']:null),_0x5db485[_0x3ea740(0x1b09)]=_0x4b8f4b['params'][_0x3ea740(0x13a3)]||0x0,_0x5db485[_0x3ea740(0x15e6)]=_0x5f5946,_0x5db485[_0x3ea740(0x10cf)]=_0x3dac9e,_0x5db485[_0x3ea740(0x723)]=_0x240d85,_0x5db485[_0x3ea740(0xa72)]=_0xe1e185,_0x5db485['mapArray']=_0xb077b6,_0x5db485[_0x3ea740(0x1bbb)]=_0x2cf841,_0x5db485[_0x3ea740(0x969)]=_0x1ab4de;function _0x5f5946(){const _0x5c16d4=_0x3ea740;_0x4b8f4b['go'](_0x5c16d4(0x25c0),{},{'reload':_0x5c16d4(0x25c0)});}function _0x3dac9e(){const _0x5aba48=_0x3ea740;_0x5db485['report'][_0x5aba48(0x1072)]=angular['toJson'](_0x5db485[_0x5aba48(0x1c9a)][_0x5aba48(0x115f)]),_0x123cfc[_0x5aba48(0x12a5)][_0x5aba48(0x18e1)]({'id':_0x5db485[_0x5aba48(0x1c9a)]['id']},_0x3f65c0()[_0x5aba48(0x2432)](_0x5db485[_0x5aba48(0x1c9a)],_0x5aba48(0x219e)))[_0x5aba48(0x2945)][_0x5aba48(0x146b)](function(){const _0x1c351f=_0x5aba48;_0x52ee73[_0x1c351f(0x1c75)]({'title':_0x1c351f(0x160a),'msg':_0x5db485[_0x1c351f(0x1c9a)][_0x1c351f(0x19eb)]?_0x5db485[_0x1c351f(0x1c9a)][_0x1c351f(0x19eb)]+_0x1c351f(0x6b0):''});})['catch'](function(_0xf1d1f1){const _0x81efcc=_0x5aba48;_0x52ee73['error']({'title':_0xf1d1f1['status']?_0x81efcc(0x262a)+_0xf1d1f1['status']+_0x81efcc(0x1315)+_0xf1d1f1[_0x81efcc(0x167f)]:_0x81efcc(0x12ae),'msg':_0xf1d1f1['data']?JSON[_0x81efcc(0x10bb)](_0xf1d1f1[_0x81efcc(0x524)]):_0xf1d1f1[_0x81efcc(0xd5f)]()});});}function _0x240d85(){const _0x4141a6=_0x3ea740;_0x5db485[_0x4141a6(0x194f)]=[],_0x5db485[_0x4141a6(0x19c7)]=[],_0x5db485[_0x4141a6(0x1980)]=![],_0x123cfc[_0x4141a6(0x1f56)][_0x4141a6(0x16b4)]({'fields':_0x4141a6(0x2545),'nolimit':!![],'CustomReportId':_0x5db485[_0x4141a6(0x1c9a)]['id']})['$promise']['then'](function(_0x148331){const _0xb10ae5=_0x4141a6;return _0x5db485[_0xb10ae5(0x194f)]=_0x148331?_0x148331[_0xb10ae5(0x19c7)]:[],_0x123cfc[_0xb10ae5(0x12a5)][_0xb10ae5(0x17d7)]({'id':_0x5db485[_0xb10ae5(0x1c9a)]['id']})[_0xb10ae5(0x2945)];})[_0x4141a6(0x146b)](function(_0x7d79b){const _0x15665d=_0x4141a6;_0x5db485[_0x15665d(0x19c7)]=_0x7d79b;})[_0x4141a6(0x129e)](function(_0x5183dc){const _0x202d97=_0x4141a6;console[_0x202d97(0x1a74)](_0x5183dc),_0x5db485[_0x202d97(0x1980)]={'title':_0x5183dc[_0x202d97(0x107b)]?_0x202d97(0x262a)+_0x5183dc[_0x202d97(0x107b)]+'\x20-\x20'+_0x5183dc[_0x202d97(0x167f)]:'SYSTEM:analyticFieldReport','msg':_0x5183dc[_0x202d97(0x524)]?_0x5183dc[_0x202d97(0x524)][_0x202d97(0x7fd)]:_0x5183dc[_0x202d97(0xd5f)](),'sql':_0x5183dc[_0x202d97(0x524)]?_0x5183dc['data']['parent']?_0x5183dc[_0x202d97(0x524)][_0x202d97(0x3fd)][_0x202d97(0xbf7)]:'NO\x20QUERY':'NO\x20QUERY'},_0x52ee73[_0x202d97(0x1980)](_0x5db485['error']);});}function _0x1ab4de(_0xd36b83,_0x1ed4ee){const _0x9cef64=_0x3ea740;return _0x2deec6()(_0x1ed4ee,_0x9cef64(0x11c6),!![])['isValid']()&&(_0x1ed4ee=_0x2deec6()(_0x1ed4ee,'')['format']('YYYY-MM-DD\x20HH:mm:ss')),_0x1ed4ee;}function _0xe1e185(){const _0x2a0645=_0x3ea740;return _0x5db485[_0x2a0645(0x98d)]='Loading...',_0x123cfc[_0x2a0645(0x12a5)][_0x2a0645(0x1a56)]({'id':_0x5db485[_0x2a0645(0x1c9a)]['id']})[_0x2a0645(0x2945)]['then'](function(_0x19b746){const _0x861bc3=_0x2a0645;_0x5db485['queryResult']=_0x19b746[_0x861bc3(0xbf7)];})[_0x2a0645(0x129e)](function(_0x51b55e){const _0x3d6854=_0x2a0645;_0x5db485[_0x3d6854(0x98d)]='',console['log'](_0x51b55e),_0x5db485[_0x3d6854(0x1980)]={'title':_0x51b55e[_0x3d6854(0x107b)]?_0x3d6854(0x262a)+_0x51b55e[_0x3d6854(0x107b)]+_0x3d6854(0x1315)+_0x51b55e[_0x3d6854(0x167f)]:'SYSTEM:analyticFieldReport','msg':_0x51b55e[_0x3d6854(0x524)]?_0x51b55e[_0x3d6854(0x524)][_0x3d6854(0x7fd)]:_0x51b55e['toString'](),'sql':_0x51b55e[_0x3d6854(0x524)]?_0x51b55e['data']['parent']?_0x51b55e[_0x3d6854(0x524)][_0x3d6854(0x3fd)]['sql']:_0x3d6854(0x278a):_0x3d6854(0x278a)},_0x52ee73[_0x3d6854(0x1980)](_0x5db485['error']);});}function _0xb077b6(_0x6593cd,_0x4c4985){const _0x2e74d2=_0x3ea740;if(_0x2cf841(_0x6593cd))return _0x3f65c0()[_0x2e74d2(0x205)](_0x6593cd,_0x4c4985)[_0x2e74d2(0xb47)](',');return'';}function _0x2cf841(_0x56aaba){const _0x52de84=_0x3ea740;return _0x3f65c0()[_0x52de84(0x1bbb)](_0x56aaba);}}const _0x3acde8=_0x22d168;;_0x43075a['$inject']=[_0x313a4d(0xd08),_0x313a4d(0x10e8),_0x313a4d(0x1fe4),_0x313a4d(0x1c9a),'api','apiName'];function _0x43075a(_0x112192,_0x31c814,_0x556b1d,_0x2c4ed4,_0x4d126f,_0x5160c9){const _0x1d3e6a=_0x313a4d,_0x5b54f0=this;_0x5b54f0[_0x1d3e6a(0xcef)]=[],_0x5b54f0['report']=angular['copy'](_0x2c4ed4),_0x5b54f0[_0x1d3e6a(0x969)]=_0x2d3cac,_0x5b54f0[_0x1d3e6a(0x13f3)]=_0x10ddfc,_0x348d5c();function _0x348d5c(){const _0x2483cf=_0x1d3e6a;_0x5b54f0[_0x2483cf(0x194f)]=[],_0x5b54f0[_0x2483cf(0x19c7)]=[],_0x5b54f0[_0x2483cf(0x1980)]=![];const _0x4eb27d={'fields':_0x2483cf(0x2545),'nolimit':!![]};_0x4eb27d[_0x5160c9===_0x2483cf(0x12a5)?_0x2483cf(0x2728):_0x2483cf(0x1148)]=_0x5b54f0['report']['id'],_0x5b54f0['promise']=_0x4d126f[_0x2483cf(0x1f56)][_0x2483cf(0x16b4)](_0x4eb27d)['$promise']['then'](function(_0x54b40f){const _0x3345a5=_0x2483cf;return _0x5b54f0[_0x3345a5(0x194f)]=_0x54b40f?_0x54b40f[_0x3345a5(0x19c7)]:[],_0x4d126f[_0x5160c9][_0x3345a5(0x17d7)]({'id':_0x5b54f0[_0x3345a5(0x1c9a)]['id']})[_0x3345a5(0x2945)];})[_0x2483cf(0x146b)](function(_0x405ff1){const _0x5f195b=_0x2483cf;_0x5b54f0[_0x5f195b(0x19c7)]=_0x405ff1;})[_0x2483cf(0x129e)](function(_0x2423d7){const _0x29b723=_0x2483cf;console[_0x29b723(0x1a74)](_0x2423d7),_0x5b54f0['error']={'title':_0x2423d7[_0x29b723(0x107b)]?_0x29b723(0x262a)+_0x2423d7[_0x29b723(0x107b)]+_0x29b723(0x1315)+_0x2423d7[_0x29b723(0x167f)]:_0x29b723(0x1154),'msg':_0x2423d7[_0x29b723(0x524)]?_0x2423d7['data'][_0x29b723(0x7fd)]:_0x2423d7['toString'](),'sql':_0x2423d7[_0x29b723(0x524)]?_0x2423d7[_0x29b723(0x524)][_0x29b723(0x3fd)]?_0x2423d7[_0x29b723(0x524)][_0x29b723(0x3fd)][_0x29b723(0xbf7)]:_0x29b723(0x278a):'NO\x20QUERY'},_0x556b1d[_0x29b723(0x1980)](_0x5b54f0[_0x29b723(0x1980)]);});}function _0x2d3cac(_0xcd64fb,_0x26f38b){const _0x776ae0=_0x1d3e6a;return _0x2deec6()(_0x26f38b,_0x776ae0(0x11c6),!![])[_0x776ae0(0x146f)]()&&(_0x26f38b=_0x2deec6()(_0x26f38b,'')[_0x776ae0(0x22b0)]('YYYY-MM-DD\x20HH:mm:ss')),_0x26f38b;}function _0x10ddfc(){const _0x2a5528=_0x1d3e6a;_0x31c814[_0x2a5528(0x2458)]();}}const _0x32ed71=_0x43075a;;const _0x33b9cb=_0x4acfac['p']+_0x313a4d(0x1004);;const _0x546b3b=_0x4acfac['p']+_0x313a4d(0x1b13);;const _0x200042=_0x4acfac['p']+_0x313a4d(0xc76);;const _0x4bfa8c=_0x4acfac['p']+_0x313a4d(0xda6);;_0x3be4b8['$inject']=[_0x313a4d(0x910),_0x313a4d(0x1abe),_0x313a4d(0x4d8),_0x313a4d(0x10e8),_0x313a4d(0x1862),_0x313a4d(0x1aa9),_0x313a4d(0x214b),_0x313a4d(0x26b6),_0x313a4d(0x1366),_0x313a4d(0x247f),_0x313a4d(0x728),_0x313a4d(0x1fe4),_0x313a4d(0xa87)];function _0x3be4b8(_0x2a4b43,_0x43794a,_0xb49c5f,_0x369cb4,_0x20cc29,_0x4e6eaf,_0x41277d,_0x19fb25,_0x11d16f,_0x1080a9,_0x8c313d,_0x4efc2f,_0x565d39){const _0x314180=_0x313a4d,_0x5d1a3c=this;_0x5d1a3c[_0x314180(0x2321)]=_0x565d39[_0x314180(0xb12)](),_0x5d1a3c[_0x314180(0x2284)]={'count':0x0,'rows':[]},_0x5d1a3c['userProfile']=_0x19fb25,_0x5d1a3c[_0x314180(0x1366)]=_0x11d16f&&_0x11d16f['count']==0x1?_0x11d16f[_0x314180(0x19c7)][0x0]:null,_0x5d1a3c[_0x314180(0x2514)]=_0x565d39[_0x314180(0xe60)](_0x5d1a3c[_0x314180(0x1366)]?_0x5d1a3c['userProfileSection'][_0x314180(0x2514)]:null),_0x5d1a3c[_0x314180(0x249f)]=[],_0x5d1a3c[_0x314180(0x1a56)]={'fields':_0x314180(0x25ce),'limit':0xa,'page':0x1,'sort':'-updatedAt'},_0x5d1a3c['apiName']=null,_0x5d1a3c[_0x314180(0x25e4)]='',_0x5d1a3c['customTree']=!![],_0x5d1a3c[_0x314180(0x23f9)]=_0x213e01,_0x5d1a3c[_0x314180(0x48c)]=_0x447b0b,_0x5d1a3c[_0x314180(0x1be0)]=_0x502e1e,_0x5d1a3c[_0x314180(0x28e5)]=_0x34c070,_0x5d1a3c['downloadfile']=_0x1b332d,_0x5d1a3c[_0x314180(0xf0a)]=_0x12eec3,_0x5d1a3c[_0x314180(0x1c75)]=_0x47f026,_0x5d1a3c[_0x314180(0x12f7)]=_0x4f31fc,_0x5d1a3c['createOrEditReport']=_0x117324,_0x5d1a3c[_0x314180(0x39b)]=_0x23e102,_0x5d1a3c[_0x314180(0xa90)]=_0x31da1b,_0x5d1a3c[_0x314180(0xbfc)]=_0x2b354e,_0x5d1a3c[_0x314180(0x10e2)]=_0x5a92e5,_0x5d1a3c['deselectReports']=_0x6a7824,_0x5d1a3c[_0x314180(0xc39)]=_0x1d0f6,_0x5d1a3c[_0x314180(0xc26)]=_0x8c313d['rows'][0x0]?angular[_0x314180(0xb08)](_0x8c313d['rows'][0x0][_0x314180(0xf47)]):[],_0x5d1a3c[_0x314180(0x282d)]=_0x8c313d[_0x314180(0x19c7)][0x1]?angular['fromJson'](_0x8c313d[_0x314180(0x19c7)][0x1]['tree']):[],_0x5d1a3c[_0x314180(0xfe2)]=_0x3e837c(![]),_0x5d1a3c[_0x314180(0x178f)]=_0x3e837c(!![]),_0x5d1a3c[_0x314180(0x2861)]=_0x2766e6(![]),_0x5d1a3c['treeCustomEvents']=_0x2766e6(!![]);function _0x213e01(_0x27bcd0){const _0xc879a=_0x314180;_0x20cc29['go'](_0xc879a(0xfb1),{'id':_0x27bcd0['id'],'crudPermissions':_0x5d1a3c['crudPermissions']});}function _0x447b0b(_0xd8e046,_0x36ccca){const _0xdce9aa=_0x314180;_0x369cb4[_0xdce9aa(0x2615)]({'controller':_0xdce9aa(0x18e8),'controllerAs':'vm','templateUrl':_0x33b9cb,'parent':angular[_0xdce9aa(0x1853)](_0xb49c5f[_0xdce9aa(0x2586)]),'targetEvent':_0x36ccca,'clickOutsideToClose':!![],'locals':{'report':_0xd8e046,'apiName':_0x5d1a3c[_0xdce9aa(0x320)],'treeCustomData':_0x5d1a3c[_0xdce9aa(0x25f7)]['jstree'](!![])[_0xdce9aa(0x14cc)]('#')}})['finally'](function(){});}function _0x502e1e(_0x1fd52f,_0x9adb66){const _0x30b8af=_0x314180;_0x369cb4[_0x30b8af(0x2615)]({'controller':_0x30b8af(0x27ea),'controllerAs':'vm','templateUrl':_0x546b3b,'parent':angular[_0x30b8af(0x1853)](_0xb49c5f[_0x30b8af(0x2586)]),'targetEvent':_0x9adb66,'clickOutsideToClose':!![],'locals':{'report':_0x1fd52f,'apiName':_0x5d1a3c['apiName']}});}function _0x34c070(_0x53cb48,_0x14aeab){const _0x321105=_0x314180;_0x369cb4[_0x321105(0x2615)]({'controller':_0x321105(0x2b3),'controllerAs':'vm','templateUrl':_0x200042,'parent':angular[_0x321105(0x1853)](_0xb49c5f[_0x321105(0x2586)]),'targetEvent':_0x14aeab,'clickOutsideToClose':!![],'locals':{'report':_0x53cb48,'apiName':_0x5d1a3c['apiName'],'currentPath':_0x5d1a3c['currentPath']}});}function _0x1b332d(_0x46082e){const _0x137e8a=_0x314180;let _0x3b4a1d;_0x1080a9['analyticMetric'][_0x137e8a(0x16b4)]({'fields':_0x137e8a(0xc31),'nolimit':!![]})['$promise'][_0x137e8a(0x146b)](function(_0x2f9c51){const _0x3b7687=_0x137e8a;_0x3b4a1d=_0x3f65c0()[_0x3b7687(0x194)](_0x2f9c51[_0x3b7687(0x19c7)],'id');const _0x47d99d={'fields':_0x3b7687(0x1cfd),'nolimit':!![]};return _0x47d99d[_0x5d1a3c['apiName']===_0x3b7687(0x12a5)?_0x3b7687(0x2728):'DefaultReportId']=_0x46082e['id'],_0x1080a9['analyticFieldReport'][_0x3b7687(0x16b4)](_0x47d99d)[_0x3b7687(0x2945)];})[_0x137e8a(0x146b)](function(_0xe515f){const _0x591211=_0x137e8a;for(let _0x2c2c56=0x0;_0x2c2c56<_0xe515f[_0x591211(0x19c7)]['length'];_0x2c2c56+=0x1){_0xe515f['rows'][_0x2c2c56][_0x591211(0x9e9)]&&(_0xe515f[_0x591211(0x19c7)][_0x2c2c56][_0x591211(0x65c)]=_0x3b4a1d[_0xe515f['rows'][_0x2c2c56][_0x591211(0x9e9)]][_0x591211(0x16c6)],_0xe515f[_0x591211(0x19c7)][_0x2c2c56][_0x591211(0x1802)]=!![]),delete _0xe515f[_0x591211(0x19c7)][_0x2c2c56][_0x591211(0x9e9)];}const _0x4131fe=_0x4e6eaf[_0x591211(0xef3)][_0x591211(0x24ec)]('a');_0x4131fe['href']=_0x591211(0x1d4e)+_0x4e6eaf['encodeURIComponent'](angular[_0x591211(0x217d)]({'name':_0x46082e[_0x591211(0x19eb)],'description':_0x46082e[_0x591211(0xb17)],'table':_0x46082e[_0x591211(0x768)],'conditions':_0x46082e['conditions'],'joins':_0x46082e[_0x591211(0x219e)],'fields':_0xe515f[_0x591211(0x19c7)]})),_0x4131fe[_0x591211(0x15b1)]=_0x46082e['name']+_0x591211(0xd61),_0x4131fe[_0x591211(0xe1d)]=_0x591211(0x20cb),_0x4131fe['click'](),_0x4efc2f[_0x591211(0x1c75)]({'title':'Report\x20downloaded!','msg':_0x46082e[_0x591211(0x19eb)]?_0x46082e['name']+_0x591211(0x27b9):''});})[_0x137e8a(0x129e)](function(_0x20521d){const _0x4de630=_0x137e8a;_0x4efc2f[_0x4de630(0x1980)]({'title':_0x20521d[_0x4de630(0x107b)]?_0x4de630(0x262a)+_0x20521d[_0x4de630(0x107b)]+_0x4de630(0x1315)+_0x20521d['statusText']:_0x4de630(0x2811),'msg':_0x20521d[_0x4de630(0x524)]?JSON['stringify'](_0x20521d[_0x4de630(0x524)]):_0x20521d[_0x4de630(0xd5f)]()});});}function _0x12eec3(_0x201274,_0x45a8d6){const _0x21dd3f=_0x314180,_0x56123e=_0x369cb4[_0x21dd3f(0x1e8a)]()[_0x21dd3f(0x1189)](_0x21dd3f(0x26f))[_0x21dd3f(0x1cbe)](_0x21dd3f(0x16d3)+_0x201274[_0x21dd3f(0x19eb)]+_0x21dd3f(0x252f)+_0x21dd3f(0xe01))[_0x21dd3f(0x4bd)](_0x21dd3f(0x1707))[_0x21dd3f(0x1f27)](_0x45a8d6)['ok']('OK')[_0x21dd3f(0x6c3)](_0x21dd3f(0x39a));_0x369cb4['show'](_0x56123e)['then'](function(){_0x31da1b(_0x201274);},function(){const _0x16b943=_0x21dd3f;console[_0x16b943(0x1a74)](_0x16b943(0x39a));});}let _0x3ef86f=!![],_0x285930=0x1;_0x2a4b43['$watch'](_0x314180(0x2669),function(_0x4bb748,_0x462666){const _0x2e62c9=_0x314180;_0x3ef86f?_0x43794a(function(){_0x3ef86f=![];}):(!_0x462666&&(_0x285930=_0x5d1a3c['query']['page']),_0x4bb748!==_0x462666&&(_0x5d1a3c['query'][_0x2e62c9(0x844)]=0x1),!_0x4bb748&&(_0x5d1a3c[_0x2e62c9(0x1a56)]['page']=_0x285930),_0x5d1a3c[_0x2e62c9(0x12f7)]());}),_0x2a4b43[_0x314180(0x21e8)](_0x314180(0x116a),function(_0x553a5a){const _0x282795=_0x314180;_0x5d1a3c[_0x282795(0x1d1a)]&&_0x5d1a3c['treeDefaultInstance'][_0x282795(0x7e1)](!![])['search'](_0x553a5a),_0x5d1a3c[_0x282795(0x25f7)]&&_0x5d1a3c[_0x282795(0x25f7)][_0x282795(0x7e1)](!![])[_0x282795(0x21da)](_0x553a5a);});function _0x47f026(_0x4831e6){const _0x11fe94=_0x314180;_0x5d1a3c[_0x11fe94(0x2284)]=_0x4831e6||{'count':0x0,'rows':[]};}function _0x4f31fc(){const _0x3ed8cc=_0x314180;_0x5d1a3c[_0x3ed8cc(0x1a56)][_0x3ed8cc(0x145d)]=(_0x5d1a3c['query']['page']-0x1)*_0x5d1a3c[_0x3ed8cc(0x1a56)][_0x3ed8cc(0x221e)];if(_0x5d1a3c[_0x3ed8cc(0x320)]){if(_0x5d1a3c[_0x3ed8cc(0x2321)][_0x3ed8cc(0xfb0)]==='admin'||_0x5d1a3c[_0x3ed8cc(0x1366)]['autoAssociation'])_0x5d1a3c[_0x3ed8cc(0xb9c)]=_0x1080a9[_0x5d1a3c['apiName']][_0x3ed8cc(0x16b4)](_0x5d1a3c[_0x3ed8cc(0x1a56)],_0x47f026)[_0x3ed8cc(0x2945)];else{let _0x1322de=[];_0x5d1a3c['promise']=_0x1080a9[_0x5d1a3c[_0x3ed8cc(0x320)]][_0x3ed8cc(0x16b4)](_0x5d1a3c[_0x3ed8cc(0x1a56)])[_0x3ed8cc(0x2945)][_0x3ed8cc(0x146b)](function(_0x4087f0){const _0x263c1b=_0x3ed8cc;return _0x1322de=_0x4087f0&&_0x4087f0[_0x263c1b(0x19c7)]?_0x4087f0[_0x263c1b(0x19c7)]:[],_0x1322de[_0x263c1b(0x402)]>0x0?_0x1080a9[_0x263c1b(0xdcc)][_0x263c1b(0x16b4)]({'sectionId':_0x5d1a3c[_0x263c1b(0x1366)]['id'],'type':_0x5d1a3c['apiName']==='analyticDefaultReport'?_0x263c1b(0x3b0):'CustomReports'})[_0x263c1b(0x2945)]['then'](function(_0x5b65a4){const _0x52cb38=_0x263c1b,_0x12750f=_0x5b65a4&&_0x5b65a4['rows']?_0x5b65a4[_0x52cb38(0x19c7)]:[];if(_0x12750f[_0x52cb38(0x402)]>0x0){const _0x1558ee=[];return _0x1322de[_0x52cb38(0x1df5)](function(_0x6fee49){const _0x4fa7a3=_0x3f65c0()['find'](_0x12750f,['resourceId',_0x6fee49['id']]);if(_0x4fa7a3)_0x1558ee['push'](_0x6fee49);}),_0x47f026({'count':_0x1558ee['length'],'rows':_0x1558ee});}else return _0x47f026(null);}):_0x47f026(null);});}}}function _0x117324(_0x313705,_0x32875a){const _0x3b5638=_0x314180;_0x369cb4[_0x3b5638(0x2615)]({'controller':_0x3b5638(0xfed),'controllerAs':'vm','templateUrl':_0x4bfa8c,'parent':angular['element'](_0xb49c5f[_0x3b5638(0x2586)]),'targetEvent':_0x313705,'clickOutsideToClose':!![],'locals':{'report':_0x32875a,'reports':_0x5d1a3c[_0x3b5638(0x2284)][_0x3b5638(0x19c7)],'apiName':_0x5d1a3c[_0x3b5638(0x320)],'currentNode':_0x5d1a3c['currentNode'],'setting':null,'crudPermissions':_0x5d1a3c[_0x3b5638(0x2514)]}});}function _0x23e102(_0x121ef5){const _0x47c029=_0x314180;if(_0x121ef5[_0x47c029(0x252e)][_0x47c029(0x1142)]===_0x47c029(0x8d1)){const _0x20c8c4=new FileReader();_0x20c8c4[_0x47c029(0x20f6)]=function(_0x547abb){const _0x70d472=_0x47c029;console[_0x70d472(0x1a74)](_0x547abb[_0x70d472(0xe1d)][_0x70d472(0x61a)]);try{let _0x33eb1d=atob(_0x547abb[_0x70d472(0xe1d)]['result']['split'](',')[0x1]);_0x33eb1d=angular[_0x70d472(0xb08)](_0x33eb1d),_0x1080a9['analyticCustomReport']['save']({'name':_0x33eb1d['name'],'description':_0x33eb1d[_0x70d472(0xb17)],'table':_0x33eb1d[_0x70d472(0x768)],'conditions':_0x33eb1d[_0x70d472(0x1072)],'joins':_0x33eb1d[_0x70d472(0x219e)],'parent':_0x5d1a3c[_0x70d472(0x13cf)]['id']})[_0x70d472(0x2945)][_0x70d472(0x146b)](function(_0x2e6557){const _0x4355e5=_0x70d472;_0x5d1a3c[_0x4355e5(0x2284)][_0x4355e5(0x19c7)]['unshift'](_0x2e6557),_0x4efc2f['success']({'title':_0x4355e5(0x57d),'msg':_0x2e6557['name']?_0x2e6557[_0x4355e5(0x19eb)]+'\x20has\x20been\x20saved!':''});const _0x13229d=_0x3f65c0()[_0x4355e5(0x205)](_0x33eb1d['fields'],function(_0x47c595){const _0x36b273=_0x4355e5;return _0x3f65c0()[_0x36b273(0xd9b)]({},_0x47c595,{'CustomReportId':_0x2e6557['id']});});return _0x1080a9[_0x4355e5(0x1f56)][_0x4355e5(0x1cc4)](_0x13229d)['$promise'];})[_0x70d472(0x146b)](function(){const _0x55054f=_0x70d472;_0x4efc2f[_0x55054f(0x1c75)]({'title':_0x55054f(0x2177),'msg':_0x55054f(0x12f5)});})[_0x70d472(0x129e)](function(_0x496eb9){const _0x59a815=_0x70d472;_0x4efc2f[_0x59a815(0x1980)]({'title':_0x496eb9[_0x59a815(0x107b)]?_0x59a815(0x262a)+_0x496eb9[_0x59a815(0x107b)]+_0x59a815(0x1315)+_0x496eb9[_0x59a815(0x167f)]:'SYSTEM:GETanalyticReport','msg':_0x496eb9[_0x59a815(0x524)]?JSON[_0x59a815(0x10bb)](_0x496eb9[_0x59a815(0x524)]):_0x496eb9['toString']()});});}catch(_0x5dba26){console[_0x70d472(0x1980)](_0x5dba26),_0x4efc2f[_0x70d472(0x1980)]({'title':_0x70d472(0xb04),'msg':_0x5dba26[_0x70d472(0xd5f)]()});}},_0x20c8c4[_0x47c029(0xa0c)](_0x121ef5[_0x47c029(0x252e)]);}else _0x4efc2f[_0x47c029(0x1980)]({'title':'Format\x20Error','msg':_0x47c029(0x1e0d)});}function _0x31da1b(_0x37ef80){const _0x3e8f09=_0x314180;_0x5d1a3c['apiName']&&_0x1080a9[_0x5d1a3c[_0x3e8f09(0x320)]]['delete']({'id':_0x37ef80['id']})['$promise'][_0x3e8f09(0x146b)](function(){const _0x28d9ad=_0x3e8f09;_0x3f65c0()[_0x28d9ad(0x2640)](_0x5d1a3c[_0x28d9ad(0x2284)][_0x28d9ad(0x19c7)],{'id':_0x37ef80['id']}),_0x5d1a3c[_0x28d9ad(0x2284)][_0x28d9ad(0x51c)]-=0x1,!_0x5d1a3c[_0x28d9ad(0x2284)][_0x28d9ad(0x19c7)][_0x28d9ad(0x402)]&&_0x5d1a3c[_0x28d9ad(0x12f7)](),_0x4efc2f[_0x28d9ad(0x1c75)]({'title':_0x28d9ad(0x11e),'msg':_0x37ef80['name']?_0x37ef80[_0x28d9ad(0x19eb)]+'\x20has\x20been\x20deleted!':''});})[_0x3e8f09(0x129e)](function(_0x1658b4){const _0x4dfbee=_0x3e8f09;if(_0x1658b4[_0x4dfbee(0x524)]&&_0x1658b4[_0x4dfbee(0x524)][_0x4dfbee(0xcef)]&&_0x1658b4[_0x4dfbee(0x524)][_0x4dfbee(0xcef)][_0x4dfbee(0x402)]){_0x5d1a3c[_0x4dfbee(0xcef)]=_0x1658b4['data']['errors']||[{'message':_0x1658b4[_0x4dfbee(0xd5f)](),'type':_0x4dfbee(0x1571)}];for(let _0x524096=0x0;_0x524096<_0x1658b4[_0x4dfbee(0x524)][_0x4dfbee(0xcef)][_0x4dfbee(0x402)];_0x524096++){_0x4efc2f[_0x4dfbee(0x1980)]({'title':_0x1658b4[_0x4dfbee(0x524)][_0x4dfbee(0xcef)][_0x524096][_0x4dfbee(0x1142)],'msg':_0x1658b4[_0x4dfbee(0x524)][_0x4dfbee(0xcef)][_0x524096]['message']});}}else _0x4efc2f[_0x4dfbee(0x1980)]({'title':_0x1658b4['status']?_0x4dfbee(0x262a)+_0x1658b4[_0x4dfbee(0x107b)]+'\x20-\x20'+_0x1658b4['statusText']:_0x4dfbee(0x1571),'msg':_0x1658b4[_0x4dfbee(0x524)]?JSON['stringify'](_0x1658b4[_0x4dfbee(0x524)]['message']):_0x1658b4[_0x4dfbee(0x7fd)]||_0x1658b4[_0x4dfbee(0xd5f)]()});});}function _0x2b354e(){const _0x536530=_0x314180,_0x37d900=angular['copy'](_0x5d1a3c['selectedReports']);return _0x5d1a3c[_0x536530(0x249f)]=[],_0x37d900;}function _0x5a92e5(_0x40c8b7){const _0x1e7a06=_0x314180,_0x2db10a=_0x369cb4[_0x1e7a06(0x1e8a)]()[_0x1e7a06(0x1189)](_0x1e7a06(0x1ccf))['htmlContent'](''+_0x5d1a3c[_0x1e7a06(0x249f)]['length']+_0x1e7a06(0x2452)+_0x1e7a06(0xe01))['ariaLabel'](_0x1e7a06(0x1627))[_0x1e7a06(0x1f27)](_0x40c8b7)['ok']('OK')[_0x1e7a06(0x6c3)]('CANCEL');_0x369cb4[_0x1e7a06(0x2615)](_0x2db10a)[_0x1e7a06(0x146b)](function(){const _0x2b5d85=_0x1e7a06;_0x5d1a3c['selectedReports'][_0x2b5d85(0x1df5)](function(_0x52e62c){_0x31da1b(_0x52e62c);}),_0x5d1a3c[_0x2b5d85(0x249f)]=[];});}function _0x6a7824(){const _0x238b70=_0x314180;_0x5d1a3c[_0x238b70(0x249f)]=[];}function _0x1d0f6(){const _0x4c53eb=_0x314180;_0x5d1a3c[_0x4c53eb(0x249f)]=_0x5d1a3c[_0x4c53eb(0x2284)]['rows'];}function _0x1cf028(_0x44f16f,_0xd987d5){const _0x398148=_0x314180;_0x5d1a3c[_0x398148(0x1d1a)][_0x398148(0x7e1)](!![])['deselect_all'](),_0x5d1a3c[_0x398148(0x1d1a)]['jstree'](!![])[_0x398148(0x25fd)](),_0x5d1a3c[_0x398148(0x13cf)]=_0xd987d5[_0x398148(0x8f7)],_0x5d1a3c[_0x398148(0x13cf)][_0x398148(0x1802)]=!![],_0x5d1a3c[_0x398148(0x25e4)]=_0x5d1a3c[_0x398148(0x25f7)][_0x398148(0x7e1)](!![])[_0x398148(0x11ba)](_0x5d1a3c['currentNode'])['join']('/\x20'),_0x5d1a3c[_0x398148(0x320)]=_0x398148(0x12a5),_0x5d1a3c[_0x398148(0x1a56)][_0x398148(0x3fd)]=_0xd987d5['node']['id'],_0x4f31fc();}function _0xb66d85(_0x2a158f,_0x49f1bd){const _0x2c1764=_0x314180;_0x5d1a3c[_0x2c1764(0x25f7)][_0x2c1764(0x7e1)](!![])['deselect_all'](),_0x5d1a3c[_0x2c1764(0x25f7)]['jstree'](!![])['close_all'](),_0x5d1a3c['currentNode']=_0x49f1bd[_0x2c1764(0x8f7)],_0x5d1a3c[_0x2c1764(0x13cf)][_0x2c1764(0x1802)]=![],_0x5d1a3c['currentPath']=_0x5d1a3c[_0x2c1764(0x1d1a)][_0x2c1764(0x7e1)](!![])['get_path'](_0x5d1a3c[_0x2c1764(0x13cf)])[_0x2c1764(0xb47)]('/\x20'),_0x5d1a3c[_0x2c1764(0x320)]=_0x2c1764(0x20fa),_0x5d1a3c[_0x2c1764(0x1a56)][_0x2c1764(0x3fd)]=_0x49f1bd[_0x2c1764(0x8f7)]['id'],_0x4f31fc();}function _0x3f6e42(_0x54c4ed,_0xdc087d){const _0x26f0e4=_0x314180,_0x85e8ba=angular['toJson'](_0x5d1a3c['treeCustomInstance'][_0x26f0e4(0x7e1)](!![])['get_json']('#'));_0x1080a9[_0x26f0e4(0x888)][_0x26f0e4(0x18e1)]({'id':0x2,'tree':_0x85e8ba})[_0x26f0e4(0x2945)][_0x26f0e4(0x146b)](function(){const _0x3389ca=_0x26f0e4;_0x8c313d['rows'][0x1]&&(_0x8c313d[_0x3389ca(0x19c7)][0x1]['tree']=_0x85e8ba),_0x4efc2f[_0x3389ca(0x1c75)]({'title':_0x3389ca(0x1972),'msg':_0xdc087d[_0x3389ca(0x8f7)][_0x3389ca(0xa8d)]?_0xdc087d[_0x3389ca(0x8f7)][_0x3389ca(0xa8d)]+_0x3389ca(0x6b0):_0x3389ca(0x89e)});})['catch'](function(_0x139453){const _0x2ea089=_0x26f0e4;_0x4efc2f['error']({'title':_0x139453['status']?_0x2ea089(0x262a)+_0x139453[_0x2ea089(0x107b)]+_0x2ea089(0x1315)+_0x139453[_0x2ea089(0x167f)]:_0x2ea089(0x256f),'msg':_0x139453[_0x2ea089(0x524)]?JSON['stringify'](_0x139453[_0x2ea089(0x524)]):_0x139453['toString']()});});}function _0x3e837c(_0x2178f3){const _0x46f38b=_0x314180;return{'core':{'multiple':![],'animation':!![],'error':function(_0x485e22){const _0x202811=a0_0x3bb9;console['error'](_0x202811(0x535)+angular[_0x202811(0x217d)](_0x485e22));},'check_callback':!![],'worker':!![]},'version':0x1,'plugins':_0x2178f3?[_0x46f38b(0x2b8),_0x46f38b(0xc1e),_0x46f38b(0x21da),'state','wholerow']:[_0x46f38b(0x21da),'state',_0x46f38b(0x5e6)],'contextmenu':{'items':function(_0x13adff){const _0x155209=_0x46f38b,_0x48d66c={};return _0x5d1a3c[_0x155209(0x2514)][_0x155209(0x15f4)]&&_0x3f65c0()[_0x155209(0x255a)](_0x48d66c,{'create':{'label':_0x41277d[_0x155209(0xde)](_0x155209(0x17d0)),'action':function(){const _0x773637=_0x155209;_0x13adff=_0x5d1a3c[_0x773637(0x25f7)][_0x773637(0x7e1)](!![])[_0x773637(0xeed)](_0x13adff),_0x5d1a3c['treeCustomInstance'][_0x773637(0x7e1)](!![])[_0x773637(0x129)](_0x13adff);}},'rename':{'_disabled':_0x13adff['parent']==='#','label':_0x41277d[_0x155209(0xde)](_0x155209(0x1186)),'action':function(){const _0x3ae087=_0x155209;_0x5d1a3c[_0x3ae087(0x25f7)][_0x3ae087(0x7e1)](!![])['edit'](_0x13adff);}}}),_0x5d1a3c['crudPermissions']['canDelete']&&_0x3f65c0()['assign'](_0x48d66c,{'remove':{'_disabled':_0x13adff['parent']==='#','label':_0x41277d['instant'](_0x155209(0x1937)),'action':function(){const _0x35e404=_0x155209,_0xe9b14e=_0x369cb4[_0x35e404(0x1e8a)]()['title'](_0x35e404(0x1d2e))[_0x35e404(0x1cbe)](_0x35e404(0x16d3)+(_0x13adff[_0x35e404(0xa8d)]?_0x13adff[_0x35e404(0xa8d)]:_0x35e404(0x23b))+_0x35e404(0x252f)+_0x35e404(0x1da))[_0x35e404(0x4bd)](_0x35e404(0x2660))['ok']('OK')[_0x35e404(0x6c3)](_0x35e404(0x39a));_0x369cb4[_0x35e404(0x2615)](_0xe9b14e)[_0x35e404(0x146b)](function(){const _0x412af7=_0x35e404;let _0xfc954a=_0x5d1a3c['treeCustomInstance']['jstree'](!![])[_0x412af7(0x1f06)](_0x13adff);_0xfc954a=_0x5d1a3c[_0x412af7(0x25f7)][_0x412af7(0x7e1)](!![])[_0x412af7(0x1ba0)](_0xfc954a),_0x5d1a3c[_0x412af7(0x25f7)][_0x412af7(0x7e1)](!![])[_0x412af7(0x2220)](_0x13adff),_0xb19db8([_0x13adff['id']][_0x412af7(0x163c)](_0x13adff[_0x412af7(0x2503)]||[])),_0x5d1a3c[_0x412af7(0x25f7)][_0x412af7(0x7e1)](!![])[_0x412af7(0x1648)](_0xfc954a);});}}}),_0x48d66c;}}};}function _0xb19db8(_0x2866f6){const _0x165724=_0x314180;return _0x1080a9[_0x165724(0x12a5)][_0x165724(0x16b4)]({'parent':_0x2866f6[_0x165724(0xb47)](','),'fields':_0x165724(0x7a7)})[_0x165724(0x2945)][_0x165724(0x146b)](function(_0xa80487){const _0x1492aa=_0x165724;_0xa80487&&_0xa80487[_0x1492aa(0x19c7)]&&_0xa80487[_0x1492aa(0x19c7)][_0x1492aa(0x1df5)](function(_0x186599){_0x31da1b(_0x186599);});})['catch'](function(_0x5a9f65){const _0x5946ee=_0x165724;_0x4efc2f[_0x5946ee(0x1980)]({'title':_0x5a9f65[_0x5946ee(0x107b)]?_0x5946ee(0x262a)+_0x5a9f65[_0x5946ee(0x107b)]+'\x20-\x20'+_0x5a9f65[_0x5946ee(0x167f)]:_0x5946ee(0x27e4),'msg':_0x5a9f65[_0x5946ee(0x524)]?JSON[_0x5946ee(0x10bb)](_0x5a9f65['data']):_0x5a9f65[_0x5946ee(0xd5f)]()});});}function _0x2766e6(_0x4c3706){return _0x4c3706?{'create_node':_0x3f6e42,'rename_node':_0x3f6e42,'move_node':_0x3f6e42,'delete_node':_0x3f6e42,'select_node':_0x1cf028}:{'select_node':_0xb66d85};}}const _0x383249=_0x3be4b8;;const _0x4db675=_0x4acfac['p']+_0x313a4d(0x21a3);;_0x4805f4[_0x313a4d(0x11c2)]=['$location',_0x313a4d(0x10e8),_0x313a4d(0x1fe4),_0x313a4d(0x1c9a),_0x313a4d(0x247f),_0x313a4d(0x320),'$document',_0x313a4d(0x25e4)];function _0x4805f4(_0x1c0969,_0xf23a72,_0x180626,_0x21951f,_0x1f8f3e,_0x27bfb0,_0x1598c1,_0x4cb968){const _0x20b1a3=_0x313a4d,_0x2a67d6=this;_0x2a67d6[_0x20b1a3(0xcef)]=[],_0x2a67d6[_0x20b1a3(0x1c9a)]=angular[_0x20b1a3(0x235a)](_0x21951f),_0x2a67d6[_0x20b1a3(0x20a6)]={},_0x2a67d6[_0x20b1a3(0x1b1b)]=_0x5ac0f,_0x2a67d6[_0x20b1a3(0x13f3)]=_0x81934a,_0x2a67d6['refreshDate']=_0x5c0516,_0x5c0516();function _0x5c0516(){const _0x573871=_0x20b1a3;_0x2a67d6['export']={'id':_0x2a67d6[_0x573871(0x1c9a)]['id'],'name':_0x2a67d6['report'][_0x573871(0x19eb)],'startDate':new Date(_0x2deec6()()['startOf'](_0x573871(0x1066))),'endDate':new Date(_0x2deec6()()[_0x573871(0x824)](_0x573871(0x1066))),'output':_0x573871(0x27a2),'fullPath':_0x4cb968?_0x4cb968+'/'+_0x2a67d6['report'][_0x573871(0x19eb)]:_0x2a67d6[_0x573871(0x1c9a)][_0x573871(0x19eb)]};}function _0x5ac0f(_0x17ffc8){const _0x3758cc=_0x20b1a3;_0x2a67d6[_0x3758cc(0xcef)]=[],_0x2a67d6['exportDate']=_0x3f65c0()[_0x3758cc(0x255a)]({},_0x2a67d6[_0x3758cc(0x20a6)],{'startDate':_0x2deec6()(_0x2a67d6[_0x3758cc(0x20a6)][_0x3758cc(0x1dd4)])[_0x3758cc(0x22b0)](_0x3758cc(0x1ce2)),'endDate':_0x2deec6()(_0x2a67d6[_0x3758cc(0x20a6)][_0x3758cc(0x1b1c)])['format']('YYYY-MM-DD\x20HH:mm:ss')}),_0x1f8f3e[_0x27bfb0][_0x3758cc(0x1caa)](_0x2a67d6[_0x3758cc(0x15f5)])['$promise'][_0x3758cc(0x146b)](function(_0x550fa3){const _0x3d8a2c=_0x3758cc;_0x2a67d6[_0x3d8a2c(0x20a6)][_0x3d8a2c(0x3de)]===_0x3d8a2c(0x1c63)?_0xf23a72['show']({'controller':_0x3d8a2c(0x134a),'controllerAs':'vm','templateUrl':_0x4db675,'parent':angular[_0x3d8a2c(0x1853)](_0x1598c1[_0x3d8a2c(0x2586)]),'targetEvent':_0x17ffc8,'skipHide':!![],'locals':{'apiName':_0x27bfb0,'exportDate':_0x2a67d6[_0x3d8a2c(0x15f5)],'results':_0x550fa3},'resolve':{'columns':[_0x3d8a2c(0x362),function(_0x3e630){const _0x331182=_0x3d8a2c,_0x9f119f={'fields':_0x331182(0x2545),'nolimit':!![]};return _0x9f119f[_0x27bfb0===_0x331182(0x12a5)?_0x331182(0x2728):'DefaultReportId']=_0x2a67d6[_0x331182(0x1c9a)]['id'],_0x3e630[_0x331182(0x2922)]('analyticFieldReport@get',_0x9f119f);}]}}):(_0x180626[_0x3d8a2c(0x1c75)]({'title':_0x3d8a2c(0xcd5),'msg':_0x2a67d6[_0x3d8a2c(0x1c9a)][_0x3d8a2c(0x19eb)]?_0x2a67d6[_0x3d8a2c(0x1c9a)][_0x3d8a2c(0x19eb)]+_0x3d8a2c(0xbe2):''}),_0x81934a());})[_0x3758cc(0x129e)](function(_0x33663b){const _0x3590d0=_0x3758cc;_0x180626[_0x3590d0(0x1980)]({'title':_0x33663b['status']?'API:'+_0x33663b['status']+_0x3590d0(0x1315)+_0x33663b['statusText']:'SYSTEM:DESCRIBE','msg':_0x33663b[_0x3590d0(0x524)]?JSON[_0x3590d0(0x10bb)](_0x33663b[_0x3590d0(0x524)][_0x3590d0(0x7fd)]):_0x33663b[_0x3590d0(0xd5f)]()});});}function _0x81934a(){const _0x39b590=_0x20b1a3;_0xf23a72[_0x39b590(0x2458)]();}}const _0x5394af=_0x4805f4;;_0x12f8f2[_0x313a4d(0x11c2)]=[_0x313a4d(0x10e8),'toasty',_0x313a4d(0x247f),_0x313a4d(0x194f),_0x313a4d(0x943),_0x313a4d(0x320),_0x313a4d(0x15f5)];function _0x12f8f2(_0x24d531,_0x39eef9,_0x5dcb5d,_0x393482,_0x5d4a8f,_0xe7c269,_0x7f8e6d){const _0x1a0118=_0x313a4d,_0xf964d4=this;_0xf964d4[_0x1a0118(0xcef)]=[],_0xf964d4['columns']=_0x393482?_0x393482[_0x1a0118(0x19c7)]:[],_0xf964d4[_0x1a0118(0x943)]=_0x5d4a8f||{'rows':[],'count':0x0},_0xf964d4[_0x1a0118(0x1a56)]={'limit':0xa,'page':0x1},_0xf964d4['closeDialog']=_0x4d25fc,_0xf964d4['getResults']=_0x45e95b,_0xf964d4['valueReplacer']=_0x593708;function _0x45e95b(){const _0xe71f21=_0x1a0118;_0x7f8e6d[_0xe71f21(0x145d)]=(_0xf964d4[_0xe71f21(0x1a56)][_0xe71f21(0x844)]-0x1)*_0xf964d4[_0xe71f21(0x1a56)][_0xe71f21(0x221e)],_0x7f8e6d[_0xe71f21(0x221e)]=_0xf964d4[_0xe71f21(0x1a56)][_0xe71f21(0x221e)],_0xf964d4[_0xe71f21(0xb9c)]=_0x5dcb5d[_0xe7c269][_0xe71f21(0x1caa)](_0x7f8e6d,_0x50c96c)[_0xe71f21(0x2945)];}function _0x593708(_0x35d564,_0x53e244){const _0x4f02aa=_0x1a0118;return _0x2deec6()(_0x53e244,_0x4f02aa(0x11c6),!![])[_0x4f02aa(0x146f)]()&&(_0x53e244=_0x2deec6()(_0x53e244,'')[_0x4f02aa(0x22b0)](_0x4f02aa(0x1ce2))),_0x53e244;}function _0x50c96c(_0x1323ab){const _0x3c69e4=_0x1a0118;_0xf964d4[_0x3c69e4(0x943)]=_0x1323ab||{'count':0x0,'rows':[]};}function _0x4d25fc(){const _0x35aaff=_0x1a0118;_0x24d531[_0x35aaff(0x2458)]();}}const _0x68d417=_0x12f8f2;;_0xcce723[_0x313a4d(0x11c2)]=[_0x313a4d(0x921)];function _0xcce723(_0x41cc09){const _0x2ff16f=_0x313a4d;_0x41cc09[_0x2ff16f(0x13d6)]('app.analytics.reports',{'url':_0x2ff16f(0x1310),'views':{'content@app':{'templateUrl':_0x1da429,'controller':'ReportsController\x20as\x20vm'}},'resolve':{'treeReports':['apiResolver',function(_0x3301b5){const _0x11ec32=_0x2ff16f;return _0x3301b5[_0x11ec32(0x2922)]('analyticTreeReport@get',{'fields':_0x11ec32(0x26e8),'limit':0xa,'offset':0x0});}],'userProfile':[_0x2ff16f(0x362),'Auth',function(_0x3416eb,_0x2c2450){const _0x17dcde=_0x2ff16f;return _0x3416eb['resolve'](_0x17dcde(0x119a),{'fields':_0x17dcde(0x227),'id':_0x2c2450[_0x17dcde(0xb12)]()[_0x17dcde(0x209a)]});}],'userProfileSection':[_0x2ff16f(0x362),_0x2ff16f(0xa87),function(_0x3a299f,_0x1433da){const _0x271d67=_0x2ff16f;return _0x3a299f[_0x271d67(0x2922)](_0x271d67(0x27be),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x1433da['getCurrentUser']()[_0x271d67(0x209a)],'sectionId':0x4b3});}]},'authenticate':!![],'permissionId':0x4b3,'bodyClass':_0x2ff16f(0xf5c)})[_0x2ff16f(0x13d6)](_0x2ff16f(0xfb1),{'url':'/:id?tab','views':{'content@app':{'templateUrl':_0x112a3a,'controller':'ReportController\x20as\x20vm'}},'resolve':{'report':['apiResolver','$stateParams','$q',_0x2ff16f(0x1997),function(_0x593410,_0x42887a,_0x4f92a2,_0x4f9fa2){const _0x84406d=_0x2ff16f;let _0x544b82;return _0x593410[_0x84406d(0x2922)](_0x84406d(0x15e0),{'fields':'createdAt,updatedAt,id,name,description,table,conditions,joins','id':_0x42887a['id']})[_0x84406d(0x146b)](function(_0x50b7d1){const _0x497160=_0x84406d,_0x3f770a=[];_0x544b82=_0x50b7d1;if(_0x544b82['joins'])try{_0x544b82[_0x497160(0x219e)]=JSON[_0x497160(0x975)](_0x544b82[_0x497160(0x219e)]);for(let _0x32674e=0x0;_0x32674e<_0x544b82[_0x497160(0x219e)][_0x497160(0x402)];_0x32674e+=0x1){_0x3f770a[_0x497160(0x1f47)](_0x4f9fa2[_0x497160(0x9dc)](_0x544b82[_0x497160(0x219e)][_0x32674e]['foreignTable']));}}catch(_0x38e7f5){console[_0x497160(0x1a74)](_0x38e7f5);}return _0x4f92a2[_0x497160(0x1be2)](_0x3f770a);})['then'](function(_0x2511ac){const _0x11ccc8=_0x84406d;for(let _0x10547b=0x0;_0x10547b<_0x2511ac[_0x11ccc8(0x402)];_0x10547b+=0x1){_0x544b82[_0x11ccc8(0x219e)][_0x10547b][_0x11ccc8(0x2880)]=_0x3f65c0()[_0x11ccc8(0xa62)](_0x3f65c0()['keys'](_0x2511ac[_0x10547b]),['$promise',_0x11ccc8(0x26f2)]);}return _0x544b82;});}],'userProfileSection':[_0x2ff16f(0x362),_0x2ff16f(0xa87),function(_0x331588,_0x11dc0f){const _0x5d69b2=_0x2ff16f;return _0x331588[_0x5d69b2(0x2922)]('userProfileSection@get',{'fields':_0x5d69b2(0x1e64),'userProfileId':_0x11dc0f[_0x5d69b2(0xb12)]()[_0x5d69b2(0x209a)],'sectionId':0x4b3});}]},'authenticate':!![],'permissionId':0x4b3,'bodyClass':_0x2ff16f(0xf5c)});}angular[_0x313a4d(0x2528)](_0x313a4d(0x25c0),[_0x313a4d(0x2737)])[_0x313a4d(0x989)](_0xcce723)[_0x313a4d(0x28f0)]('CopyReportDialogController',_0x4bf0eb)[_0x313a4d(0x28f0)](_0x313a4d(0xfed),_0x3913e2)[_0x313a4d(0x28f0)](_0x313a4d(0x15ed),_0x57f371)[_0x313a4d(0x1750)]('describeTable',_0x8a0bc9)[_0x313a4d(0x28f0)]('CreateOrEditReportFieldDialogController',_0x26e060)[_0x313a4d(0x28f0)](_0x313a4d(0x1dae),_0x4b6735)[_0x313a4d(0x1750)](_0x313a4d(0xc07),_0x411b5a)[_0x313a4d(0x28f0)](_0x313a4d(0x291b),_0x3acde8)[_0x313a4d(0x28f0)](_0x313a4d(0x27ea),_0x32ed71)['controller'](_0x313a4d(0x17cd),_0x383249)[_0x313a4d(0x28f0)](_0x313a4d(0x2b3),_0x5394af)[_0x313a4d(0x28f0)]('WebReportDialogController',_0x68d417);;_0x15508c['$inject']=[_0x313a4d(0x910),'$state',_0x313a4d(0xd08),_0x313a4d(0x10e8),'$q','$translate',_0x313a4d(0x1fe4),_0x313a4d(0x127a),'extractedReport',_0x313a4d(0x247f),_0x313a4d(0xa87),'license',_0x313a4d(0x15b9),_0x313a4d(0x2514)];function _0x15508c(_0x269e47,_0x1b1cb3,_0x32633f,_0xaf7d32,_0x175cf5,_0x3bb15a,_0x4b2230,_0x5091a2,_0x454570,_0x5ef7b2,_0xe2d37f,_0x15cdd0,_0x2a50d5,_0x203140){const _0x1c8500=_0x313a4d,_0x4bcbcd=this;_0x4bcbcd[_0x1c8500(0x2321)]=_0xe2d37f[_0x1c8500(0xb12)](),_0x4bcbcd['errors']=[],_0x4bcbcd['setting']=_0x2a50d5,_0x4bcbcd[_0x1c8500(0x2690)]=_0x15cdd0,_0x4bcbcd[_0x1c8500(0x2514)]=_0x203140,_0x4bcbcd[_0x1c8500(0x855)]={},_0x4bcbcd['passwordPattern']=_0x4bcbcd[_0x1c8500(0x15b9)]&&_0x4bcbcd[_0x1c8500(0x15b9)][_0x1c8500(0x976)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x4bcbcd[_0x1c8500(0x1189)]=_0x1c8500(0x2709),_0x4bcbcd[_0x1c8500(0x22c0)]=angular[_0x1c8500(0x235a)](_0x454570),_0x4bcbcd[_0x1c8500(0x127a)]=_0x5091a2,_0x4bcbcd[_0x1c8500(0x1f3)]=![];!_0x4bcbcd[_0x1c8500(0x22c0)]&&(_0x4bcbcd['extractedReport']={},_0x4bcbcd[_0x1c8500(0x1189)]=_0x1c8500(0x199),_0x4bcbcd[_0x1c8500(0x1f3)]=!![]);_0x4bcbcd['addNewExtractedReport']=_0x2f9061,_0x4bcbcd[_0x1c8500(0x1b6b)]=_0x6f6c45,_0x4bcbcd['deleteExtractedReport']=_0x496cc4,_0x4bcbcd[_0x1c8500(0xe73)]=_0x283a45,_0x4bcbcd[_0x1c8500(0x13f3)]=_0x315012;function _0x2f9061(){const _0x240316=_0x1c8500;_0x4bcbcd[_0x240316(0xcef)]=[],_0x5ef7b2['analyticExtractedReport']['save'](_0x4bcbcd['extractedReport'])[_0x240316(0x2945)][_0x240316(0x146b)](function(_0x5858b4){const _0x52d84e=_0x240316;_0x4bcbcd[_0x52d84e(0x127a)][_0x52d84e(0xb3d)](_0x5858b4['toJSON']()),_0x4b2230[_0x52d84e(0x1c75)]({'title':_0x52d84e(0x131d),'msg':_0x4bcbcd[_0x52d84e(0x22c0)][_0x52d84e(0x19eb)]?_0x4bcbcd[_0x52d84e(0x22c0)]['name']+_0x52d84e(0x1386):''}),_0x315012(_0x5858b4);})[_0x240316(0x129e)](function(_0x1f08f2){const _0x439342=_0x240316;if(_0x1f08f2[_0x439342(0x524)]&&_0x1f08f2[_0x439342(0x524)][_0x439342(0xcef)]&&_0x1f08f2[_0x439342(0x524)]['errors'][_0x439342(0x402)]){_0x4bcbcd[_0x439342(0xcef)]=_0x1f08f2[_0x439342(0x524)][_0x439342(0xcef)]||[{'message':_0x1f08f2[_0x439342(0xd5f)](),'type':_0x439342(0x1253)}];for(let _0x456dc2=0x0;_0x456dc2<_0x1f08f2[_0x439342(0x524)][_0x439342(0xcef)][_0x439342(0x402)];_0x456dc2+=0x1){_0x4b2230[_0x439342(0x1980)]({'title':_0x1f08f2['data'][_0x439342(0xcef)][_0x456dc2][_0x439342(0x1142)],'msg':_0x1f08f2[_0x439342(0x524)][_0x439342(0xcef)][_0x456dc2]['message']});}}else _0x4b2230[_0x439342(0x1980)]({'title':_0x1f08f2[_0x439342(0x107b)]?'API:'+_0x1f08f2['status']+'\x20-\x20'+_0x1f08f2[_0x439342(0x167f)]:'api.analyticExtractedReport.save','msg':_0x1f08f2[_0x439342(0x524)]?JSON[_0x439342(0x10bb)](_0x1f08f2[_0x439342(0x524)][_0x439342(0x7fd)]):_0x1f08f2[_0x439342(0xd5f)]()});});}function _0x6f6c45(){const _0x60911f=_0x1c8500;_0x4bcbcd[_0x60911f(0xcef)]=[],_0x5ef7b2['analyticExtractedReport'][_0x60911f(0x18e1)]({'id':_0x4bcbcd[_0x60911f(0x22c0)]['id']},_0x4bcbcd[_0x60911f(0x22c0)])[_0x60911f(0x2945)][_0x60911f(0x146b)](function(_0x201fde){const _0x599ab1=_0x60911f,_0x55bae3=_0x3f65c0()['find'](_0x4bcbcd[_0x599ab1(0x127a)],{'id':_0x201fde['id']});_0x55bae3&&_0x3f65c0()['merge'](_0x55bae3,_0x3f65c0()[_0x599ab1(0x40e)](_0x201fde[_0x599ab1(0x2488)](),_0x3f65c0()[_0x599ab1(0x627)](_0x55bae3))),_0x4b2230[_0x599ab1(0x1c75)]({'title':_0x599ab1(0x181a),'msg':_0x4bcbcd[_0x599ab1(0x22c0)][_0x599ab1(0x19eb)]?_0x4bcbcd[_0x599ab1(0x22c0)][_0x599ab1(0x19eb)]+_0x599ab1(0x24db):''}),_0x315012(_0x201fde);})['catch'](function(_0x4d9599){const _0x4517ce=_0x60911f;if(_0x4d9599[_0x4517ce(0x524)]&&_0x4d9599['data'][_0x4517ce(0xcef)]&&_0x4d9599[_0x4517ce(0x524)]['errors'][_0x4517ce(0x402)]){_0x4bcbcd[_0x4517ce(0xcef)]=_0x4d9599['data'][_0x4517ce(0xcef)]||[{'message':_0x4d9599[_0x4517ce(0xd5f)](),'type':_0x4517ce(0xc7a)}];for(let _0x2c973f=0x0;_0x2c973f<_0x4d9599[_0x4517ce(0x524)][_0x4517ce(0xcef)][_0x4517ce(0x402)];_0x2c973f++){_0x4b2230['error']({'title':_0x4d9599['data'][_0x4517ce(0xcef)][_0x2c973f][_0x4517ce(0x1142)],'msg':_0x4d9599[_0x4517ce(0x524)]['errors'][_0x2c973f][_0x4517ce(0x7fd)]});}}else _0x4b2230['error']({'title':_0x4d9599['status']?'API:'+_0x4d9599[_0x4517ce(0x107b)]+_0x4517ce(0x1315)+_0x4d9599[_0x4517ce(0x167f)]:'api.analyticExtractedReport.update','msg':_0x4d9599[_0x4517ce(0x524)]?JSON[_0x4517ce(0x10bb)](_0x4d9599[_0x4517ce(0x524)][_0x4517ce(0x7fd)]):_0x4d9599[_0x4517ce(0xd5f)]()});});}function _0x496cc4(_0x14282d){const _0x2c5502=_0x1c8500;_0x4bcbcd[_0x2c5502(0xcef)]=[];const _0x3a724d=_0xaf7d32[_0x2c5502(0x1e8a)]()['title']('Are\x20you\x20sure?')['content']('The\x20extractedReport\x20will\x20be\x20deleted.')[_0x2c5502(0x4bd)](_0x2c5502(0x2548))['ok'](_0x2c5502(0x25de))['cancel'](_0x2c5502(0xcf0))[_0x2c5502(0x1f27)](_0x14282d);_0xaf7d32[_0x2c5502(0x2615)](_0x3a724d)[_0x2c5502(0x146b)](function(){const _0x5469ab=_0x2c5502;_0x5ef7b2[_0x5469ab(0xc5d)][_0x5469ab(0x1fac)]({'id':_0x4bcbcd[_0x5469ab(0x22c0)]['id']})[_0x5469ab(0x2945)][_0x5469ab(0x146b)](function(){const _0x6c756e=_0x5469ab;_0x3f65c0()['remove'](_0x4bcbcd['extractedReports'],{'id':_0x4bcbcd[_0x6c756e(0x22c0)]['id']}),_0x4b2230[_0x6c756e(0x1c75)]({'title':_0x6c756e(0x19b5),'msg':(_0x4bcbcd['extractedReport'][_0x6c756e(0x19eb)]||_0x6c756e(0x22c0))+_0x6c756e(0x23e3)}),_0x315012(_0x4bcbcd[_0x6c756e(0x22c0)]);})[_0x5469ab(0x129e)](function(_0x4e06e2){const _0x53ce41=_0x5469ab;if(_0x4e06e2[_0x53ce41(0x524)]&&_0x4e06e2[_0x53ce41(0x524)]['errors']&&_0x4e06e2['data']['errors'][_0x53ce41(0x402)]){_0x4bcbcd[_0x53ce41(0xcef)]=_0x4e06e2[_0x53ce41(0x524)][_0x53ce41(0xcef)]||[{'message':_0x4e06e2[_0x53ce41(0xd5f)](),'type':_0x53ce41(0x25aa)}];for(let _0x1b3694=0x0;_0x1b3694<_0x4e06e2[_0x53ce41(0x524)]['errors']['length'];_0x1b3694++){_0x4b2230['error']({'title':_0x4e06e2[_0x53ce41(0x524)]['errors'][_0x1b3694][_0x53ce41(0x1142)],'msg':_0x4e06e2[_0x53ce41(0x524)][_0x53ce41(0xcef)][_0x1b3694][_0x53ce41(0x7fd)]});}}else _0x4b2230[_0x53ce41(0x1980)]({'title':_0x4e06e2[_0x53ce41(0x107b)]?_0x53ce41(0x262a)+_0x4e06e2[_0x53ce41(0x107b)]+'\x20-\x20'+_0x4e06e2[_0x53ce41(0x167f)]:_0x53ce41(0x25aa),'msg':_0x4e06e2[_0x53ce41(0x524)]?JSON[_0x53ce41(0x10bb)](_0x4e06e2[_0x53ce41(0x524)][_0x53ce41(0x7fd)]):_0x4e06e2['message']||_0x4e06e2['toString']()});});},function(){});}function _0x283a45(_0x24e1d4){return _0x24e1d4===null?undefined:new Date(_0x24e1d4);}function _0x315012(_0x5930e0){const _0x334241=_0x1c8500;_0xaf7d32[_0x334241(0x2458)](_0x5930e0);}}const _0x5e634c=_0x15508c;;const _0x36571c=_0x4acfac['p']+'src/js/modules/main/apps/analytics/views/extractedReports/create/dialog.html/dialog.html';;_0x221991[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1aa9),'$state',_0x313a4d(0x15fe),_0x313a4d(0x10e8),_0x313a4d(0x4d8),_0x313a4d(0x1abe),'$translate',_0x313a4d(0x127a),_0x313a4d(0x26b6),_0x313a4d(0x1366),_0x313a4d(0x247f),'msUtils',_0x313a4d(0x1fe4),_0x313a4d(0xa87),_0x313a4d(0x2690),_0x313a4d(0x15b9)];function _0x221991(_0x447ace,_0x42d7f7,_0x44d11d,_0x47da5d,_0x4c557a,_0x26d357,_0x26e734,_0x35f1dc,_0x15b1ba,_0x35d2c3,_0x5031d1,_0x3ac532,_0x205031,_0x47633e,_0x597f0d,_0x4f863a,_0xc5a07e){const _0x20fa6b=_0x313a4d,_0x4a6d9a=this;_0x4a6d9a[_0x20fa6b(0x2690)]=_0x4f863a,_0x4a6d9a[_0x20fa6b(0x15b9)]=_0xc5a07e,_0x4a6d9a[_0x20fa6b(0x2321)]=_0x597f0d[_0x20fa6b(0xb12)](),_0x4a6d9a[_0x20fa6b(0x127a)]=_0x15b1ba||{'count':0x0,'rows':[]},_0x4a6d9a[_0x20fa6b(0x26b6)]=_0x35d2c3,_0x4a6d9a[_0x20fa6b(0x1366)]=_0x5031d1&&_0x5031d1['count']==0x1?_0x5031d1[_0x20fa6b(0x19c7)][0x0]:null,_0x4a6d9a[_0x20fa6b(0x2514)]=_0x597f0d[_0x20fa6b(0xe60)](_0x4a6d9a[_0x20fa6b(0x1366)]?_0x4a6d9a[_0x20fa6b(0x1366)][_0x20fa6b(0x2514)]:null),_0x4a6d9a['table']=_0x20fa6b(0x127a),_0x4a6d9a[_0x20fa6b(0x216a)]='',_0x4a6d9a['listOrderAsc']=null,_0x4a6d9a['selectedExtractedReports']=[],_0x4a6d9a[_0x20fa6b(0x1a56)]={'fields':_0x20fa6b(0x1a71),'sort':_0x20fa6b(0x12f2),'limit':0xa,'page':0x1},_0x4a6d9a['editdialog']=_0xfd4666,_0x4a6d9a[_0x20fa6b(0xe49)]=_0x34df8d,_0x4a6d9a[_0x20fa6b(0xf0a)]=_0x3f1201,_0x4a6d9a[_0x20fa6b(0x1c75)]=_0x2abc00,_0x4a6d9a[_0x20fa6b(0x16a9)]=_0x366e0f,_0x4a6d9a[_0x20fa6b(0x1d7f)]=_0x49fecd,_0x4a6d9a[_0x20fa6b(0x77a)]=_0x2cb0db,_0x4a6d9a[_0x20fa6b(0x46a)]=_0x482603,_0x4a6d9a[_0x20fa6b(0x615)]=_0x11fb0f,_0x4a6d9a[_0x20fa6b(0x1b4c)]=_0x497b02,_0x4a6d9a['selectAllExtractedReports']=_0x32308a;function _0xfd4666(_0x4b8969,_0x464b47){const _0x4de06d=_0x20fa6b;_0x4c557a['show']({'controller':'CreateOrEditExtractedReportDialogController','controllerAs':'vm','templateUrl':_0x36571c,'parent':angular[_0x4de06d(0x1853)](_0x26d357[_0x4de06d(0x2586)]),'targetEvent':_0x464b47,'clickOutsideToClose':!![],'locals':{'extractedReport':_0x4b8969,'extractedReports':_0x4a6d9a[_0x4de06d(0x127a)][_0x4de06d(0x19c7)],'license':_0x4a6d9a[_0x4de06d(0x2690)],'setting':null,'crudPermissions':_0x4a6d9a[_0x4de06d(0x2514)]}});}function _0x34df8d(_0x32e886){const _0x320941=_0x20fa6b;return _0x3ac532[_0x320941(0xc5d)][_0x320941(0x15b1)]({'id':_0x32e886['id']})[_0x320941(0x2945)][_0x320941(0x146b)](function(_0x3f462e){const _0x4ee6ac=_0x320941,_0x394360=[_0x3f462e[_0x4ee6ac(0x2eb)]];let _0x536ea9='download';const _0x7a8fd=new Blob(_0x394360,{'type':_0x3f462e['type']});_0x536ea9=_0x32e886[_0x4ee6ac(0x1211)];const _0x7552aa=window[_0x4ee6ac(0xef3)]['createElement']('a');_0x7552aa['setAttribute'](_0x4ee6ac(0x1b3c),URL[_0x4ee6ac(0x1c58)](_0x7a8fd)),_0x7552aa[_0x4ee6ac(0x1652)](_0x4ee6ac(0x15b1),_0x536ea9),document['body'][_0x4ee6ac(0x23e)](_0x7552aa),_0x7552aa[_0x4ee6ac(0x1fa5)]();})['catch'](function(_0x445350){const _0x5861fa=_0x320941;if(_0x445350['data']&&_0x445350[_0x5861fa(0x524)][_0x5861fa(0xcef)]&&_0x445350['data'][_0x5861fa(0xcef)][_0x5861fa(0x402)])for(let _0x475c01=0x0;_0x475c01<_0x445350[_0x5861fa(0x524)][_0x5861fa(0xcef)][_0x5861fa(0x402)];_0x475c01++){_0x47633e[_0x5861fa(0x1980)]({'title':_0x445350[_0x5861fa(0x524)][_0x5861fa(0xcef)][_0x475c01]['type'],'msg':_0x445350['data'][_0x5861fa(0xcef)][_0x475c01][_0x5861fa(0x7fd)]});}else _0x47633e[_0x5861fa(0x1980)]({'title':_0x445350['status']?_0x5861fa(0x262a)+_0x445350['status']+_0x5861fa(0x1315)+_0x445350[_0x5861fa(0x167f)]:_0x5861fa(0x1253),'msg':_0x445350[_0x5861fa(0x524)]?JSON[_0x5861fa(0x10bb)](_0x445350[_0x5861fa(0x524)][_0x5861fa(0x7fd)]):_0x445350[_0x5861fa(0xd5f)]()});});}function _0x3f1201(_0x2b6b9d,_0x102a72){const _0x4c8b85=_0x20fa6b,_0x3ea4dd=_0x4c557a[_0x4c8b85(0x1e8a)]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x3f65c0()['startCase']('extractedReport')+'?')[_0x4c8b85(0x1cbe)](_0x4c8b85(0x16d3)+(_0x2b6b9d[_0x4c8b85(0x19eb)]||_0x4c8b85(0x22c0))+_0x4c8b85(0x252f)+_0x4c8b85(0xe01))['ariaLabel'](_0x4c8b85(0x2774))['targetEvent'](_0x102a72)['ok']('OK')[_0x4c8b85(0x6c3)]('CANCEL');_0x4c557a[_0x4c8b85(0x2615)](_0x3ea4dd)[_0x4c8b85(0x146b)](function(){_0x2cb0db(_0x2b6b9d);},function(){const _0x232eba=_0x4c8b85;console[_0x232eba(0x1a74)]('CANCEL');});}let _0x2d4372=!![],_0x1d65ea=0x1;_0x447ace[_0x20fa6b(0x21e8)]('vm.query.filter',function(_0x5efacd,_0x17c9e0){const _0x21715d=_0x20fa6b;_0x2d4372?_0x26e734(function(){_0x2d4372=![];}):(!_0x17c9e0&&(_0x1d65ea=_0x4a6d9a[_0x21715d(0x1a56)]['page']),_0x5efacd!==_0x17c9e0&&(_0x4a6d9a[_0x21715d(0x1a56)][_0x21715d(0x844)]=0x1),!_0x5efacd&&(_0x4a6d9a[_0x21715d(0x1a56)][_0x21715d(0x844)]=_0x1d65ea),_0x4a6d9a[_0x21715d(0x16a9)]());});function _0x2abc00(_0x3e1e14){const _0x53ed7a=_0x20fa6b;_0x4a6d9a[_0x53ed7a(0x127a)]=_0x3e1e14||{'count':0x0,'rows':[]};}function _0x366e0f(){const _0x18f93d=_0x20fa6b;_0x4a6d9a['query'][_0x18f93d(0x145d)]=(_0x4a6d9a[_0x18f93d(0x1a56)][_0x18f93d(0x844)]-0x1)*_0x4a6d9a['query'][_0x18f93d(0x221e)],_0x597f0d[_0x18f93d(0x23e0)](_0x18f93d(0x174b))?_0x4a6d9a[_0x18f93d(0xb9c)]=_0x3ac532['analyticExtractedReport'][_0x18f93d(0x16b4)](_0x4a6d9a[_0x18f93d(0x1a56)],_0x2abc00)['$promise']:(_0x4a6d9a[_0x18f93d(0x1a56)]['id']=_0x4a6d9a['userProfile']['id'],_0x4a6d9a['query']['section']=_0x18f93d(0x1d35),_0x4a6d9a['promise']=_0x3ac532[_0x18f93d(0x26b6)]['getResources'](_0x4a6d9a[_0x18f93d(0x1a56)],_0x2abc00)[_0x18f93d(0x2945)]);}function _0x49fecd(_0xfe38d5,_0x3c5948){const _0x181768=_0x20fa6b;_0x4c557a[_0x181768(0x2615)]({'controller':_0x181768(0x1c45),'controllerAs':'vm','templateUrl':_0x36571c,'parent':angular[_0x181768(0x1853)](_0x26d357[_0x181768(0x2586)]),'targetEvent':_0xfe38d5,'clickOutsideToClose':!![],'locals':{'extractedReport':_0x3c5948,'extractedReports':_0x4a6d9a[_0x181768(0x127a)][_0x181768(0x19c7)],'license':_0x4a6d9a[_0x181768(0x2690)],'setting':_0x4a6d9a['setting'],'crudPermissions':_0x4a6d9a['crudPermissions']}});}function _0x2cb0db(_0x5f5c15){const _0x26f050=_0x20fa6b;_0x3ac532[_0x26f050(0xc5d)][_0x26f050(0x1fac)]({'id':_0x5f5c15['id']})[_0x26f050(0x2945)]['then'](function(){const _0x28ce38=_0x26f050;_0x3f65c0()['remove'](_0x4a6d9a[_0x28ce38(0x127a)][_0x28ce38(0x19c7)],{'id':_0x5f5c15['id']}),_0x4a6d9a[_0x28ce38(0x127a)][_0x28ce38(0x51c)]-=0x1,!_0x4a6d9a[_0x28ce38(0x127a)][_0x28ce38(0x19c7)]['length']&&_0x4a6d9a[_0x28ce38(0x16a9)](),_0x47633e[_0x28ce38(0x1c75)]({'title':_0x3f65c0()[_0x28ce38(0x20d1)](_0x28ce38(0x32c))+_0x28ce38(0x201c),'msg':_0x5f5c15[_0x28ce38(0x19eb)]?_0x5f5c15['name']+_0x28ce38(0x23e3):''});})[_0x26f050(0x129e)](function(_0x3fc69e){const _0x14a4c0=_0x26f050;if(_0x3fc69e[_0x14a4c0(0x524)]&&_0x3fc69e[_0x14a4c0(0x524)]['errors']&&_0x3fc69e[_0x14a4c0(0x524)][_0x14a4c0(0xcef)]['length']){_0x4a6d9a[_0x14a4c0(0xcef)]=_0x3fc69e[_0x14a4c0(0x524)]['errors']||[{'message':_0x3fc69e[_0x14a4c0(0xd5f)](),'type':'SYSTEM:DELETEanalyticExtractedReport'}];for(let _0x323dff=0x0;_0x323dff<_0x3fc69e[_0x14a4c0(0x524)][_0x14a4c0(0xcef)][_0x14a4c0(0x402)];_0x323dff++){_0x47633e[_0x14a4c0(0x1980)]({'title':_0x3fc69e[_0x14a4c0(0x524)][_0x14a4c0(0xcef)][_0x323dff]['type'],'msg':_0x3fc69e[_0x14a4c0(0x524)][_0x14a4c0(0xcef)][_0x323dff][_0x14a4c0(0x7fd)]});}}else _0x47633e['error']({'title':_0x3fc69e[_0x14a4c0(0x107b)]?_0x14a4c0(0x262a)+_0x3fc69e['status']+_0x14a4c0(0x1315)+_0x3fc69e[_0x14a4c0(0x167f)]:'SYSTEM:DELETEanalyticExtractedReport','msg':_0x3fc69e[_0x14a4c0(0x524)]?JSON['stringify'](_0x3fc69e[_0x14a4c0(0x524)]['message']):_0x3fc69e[_0x14a4c0(0x7fd)]||_0x3fc69e[_0x14a4c0(0xd5f)]()});});}function _0x482603(){const _0x592347=_0x20fa6b,_0x5e32ad=angular[_0x592347(0x235a)](_0x4a6d9a[_0x592347(0x1704)]);return _0x4a6d9a[_0x592347(0x1704)]=[],_0x5e32ad;}function _0x11fb0f(_0x266c2d){const _0x23092a=_0x20fa6b,_0x366b5e=_0x4c557a[_0x23092a(0x1e8a)]()['title'](_0x23092a(0x6db))[_0x23092a(0x1cbe)](''+_0x4a6d9a[_0x23092a(0x1704)][_0x23092a(0x402)]+'\x20selected'+_0x23092a(0xe01))[_0x23092a(0x4bd)](_0x23092a(0x24b0))['targetEvent'](_0x266c2d)['ok']('OK')[_0x23092a(0x6c3)](_0x23092a(0x39a));_0x4c557a[_0x23092a(0x2615)](_0x366b5e)[_0x23092a(0x146b)](function(){const _0x481848=_0x23092a;_0x4a6d9a[_0x481848(0x1704)][_0x481848(0x1df5)](function(_0x192e6f){_0x2cb0db(_0x192e6f);}),_0x4a6d9a[_0x481848(0x1704)]=[];});}function _0x497b02(){const _0x21b591=_0x20fa6b;_0x4a6d9a[_0x21b591(0x1704)]=[];}function _0x32308a(){const _0x1c35c0=_0x20fa6b;_0x4a6d9a[_0x1c35c0(0x1704)]=_0x4a6d9a[_0x1c35c0(0x127a)][_0x1c35c0(0x19c7)];}}const _0x1f19a8=_0x221991;;_0x19f0be[_0x313a4d(0x11c2)]=['$scope',_0x313a4d(0x1862),'$location',_0x313a4d(0x10e8),'$q','$translate',_0x313a4d(0x1fe4),'metrics','metric',_0x313a4d(0x247f),_0x313a4d(0xa87),_0x313a4d(0x2690),_0x313a4d(0x15b9),_0x313a4d(0x2514)];function _0x19f0be(_0x34e9ea,_0x3efc2b,_0x203a3b,_0x537c44,_0x4331e8,_0xbefcb6,_0x1c4d99,_0x195b29,_0x5e179f,_0x3dbc30,_0x2f4aa3,_0x4a1485,_0xf69922,_0x804d4f){const _0x5b2b5e=_0x313a4d,_0x366530=this;_0x366530[_0x5b2b5e(0x2321)]=_0x2f4aa3['getCurrentUser'](),_0x366530[_0x5b2b5e(0xcef)]=[],_0x366530[_0x5b2b5e(0x15b9)]=_0xf69922,_0x366530[_0x5b2b5e(0x2690)]=_0x4a1485,_0x366530[_0x5b2b5e(0x2514)]=_0x804d4f,_0x366530[_0x5b2b5e(0x855)]={},_0x366530[_0x5b2b5e(0x2251)]=_0x366530[_0x5b2b5e(0x15b9)]&&_0x366530[_0x5b2b5e(0x15b9)][_0x5b2b5e(0x976)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x366530[_0x5b2b5e(0x1189)]=_0x5b2b5e(0x7ac),_0x366530[_0x5b2b5e(0x16c6)]=angular['copy'](_0x5e179f),_0x366530[_0x5b2b5e(0x210e)]=_0x195b29,_0x366530[_0x5b2b5e(0x233e)]=![];!_0x366530[_0x5b2b5e(0x16c6)]&&(_0x366530[_0x5b2b5e(0x16c6)]={'table':'report_agent'},_0x366530[_0x5b2b5e(0x1189)]=_0x5b2b5e(0x10ec),_0x366530[_0x5b2b5e(0x233e)]=!![]);_0x366530[_0x5b2b5e(0x960)]=_0x457b40,_0x366530[_0x5b2b5e(0x1a26)]=_0x1f6676,_0x366530[_0x5b2b5e(0xc3a)]=_0x20cb6a,_0x366530[_0x5b2b5e(0xe73)]=_0x50e8c3,_0x366530[_0x5b2b5e(0x13f3)]=_0x43148b;function _0x457b40(){const _0x415fef=_0x5b2b5e;_0x366530[_0x415fef(0xcef)]=[],_0x3dbc30[_0x415fef(0x1f01)][_0x415fef(0x1e3)](_0x366530[_0x415fef(0x16c6)])['$promise'][_0x415fef(0x146b)](function(_0x3ddf79){const _0x4467b2=_0x415fef;_0x366530[_0x4467b2(0x210e)]['unshift'](_0x3ddf79[_0x4467b2(0x2488)]()),_0x1c4d99[_0x4467b2(0x1c75)]({'title':'Metric\x20properly\x20created','msg':_0x366530[_0x4467b2(0x16c6)][_0x4467b2(0x19eb)]?_0x366530[_0x4467b2(0x16c6)][_0x4467b2(0x19eb)]+_0x4467b2(0x1386):''}),_0x43148b(_0x3ddf79);})['catch'](function(_0x1e4d3d){const _0x1ca328=_0x415fef;if(_0x1e4d3d[_0x1ca328(0x524)]&&_0x1e4d3d[_0x1ca328(0x524)][_0x1ca328(0xcef)]&&_0x1e4d3d[_0x1ca328(0x524)][_0x1ca328(0xcef)]['length']){_0x366530['errors']=_0x1e4d3d[_0x1ca328(0x524)][_0x1ca328(0xcef)]||[{'message':_0x1e4d3d['toString'](),'type':'api.analyticMetric.save'}];for(let _0x588b32=0x0;_0x588b32<_0x1e4d3d[_0x1ca328(0x524)][_0x1ca328(0xcef)]['length'];_0x588b32+=0x1){_0x1c4d99['error']({'title':_0x1e4d3d[_0x1ca328(0x524)][_0x1ca328(0xcef)][_0x588b32]['type'],'msg':_0x1e4d3d[_0x1ca328(0x524)][_0x1ca328(0xcef)][_0x588b32][_0x1ca328(0x7fd)]});}}else _0x1c4d99[_0x1ca328(0x1980)]({'title':_0x1e4d3d['status']?_0x1ca328(0x262a)+_0x1e4d3d[_0x1ca328(0x107b)]+_0x1ca328(0x1315)+_0x1e4d3d[_0x1ca328(0x167f)]:_0x1ca328(0x1cd6),'msg':_0x1e4d3d[_0x1ca328(0x524)]?JSON[_0x1ca328(0x10bb)](_0x1e4d3d[_0x1ca328(0x524)]['message']):_0x1e4d3d['toString']()});});}function _0x1f6676(){const _0x57b8c1=_0x5b2b5e;_0x366530[_0x57b8c1(0xcef)]=[],_0x3dbc30[_0x57b8c1(0x1f01)][_0x57b8c1(0x18e1)]({'id':_0x366530[_0x57b8c1(0x16c6)]['id']},_0x366530[_0x57b8c1(0x16c6)])['$promise'][_0x57b8c1(0x146b)](function(_0x1590a6){const _0x50569d=_0x57b8c1,_0x10715a=_0x3f65c0()[_0x50569d(0xc84)](_0x366530[_0x50569d(0x210e)],{'id':_0x1590a6['id']});_0x10715a&&_0x3f65c0()['merge'](_0x10715a,_0x3f65c0()[_0x50569d(0x40e)](_0x1590a6[_0x50569d(0x2488)](),_0x3f65c0()['keys'](_0x10715a))),_0x1c4d99[_0x50569d(0x1c75)]({'title':_0x50569d(0x1d0c),'msg':_0x366530[_0x50569d(0x16c6)][_0x50569d(0x19eb)]?_0x366530[_0x50569d(0x16c6)][_0x50569d(0x19eb)]+'\x20has\x20been\x20saved!':''}),_0x43148b(_0x1590a6);})[_0x57b8c1(0x129e)](function(_0x270485){const _0x576a2b=_0x57b8c1;if(_0x270485[_0x576a2b(0x524)]&&_0x270485['data'][_0x576a2b(0xcef)]&&_0x270485[_0x576a2b(0x524)][_0x576a2b(0xcef)]['length']){_0x366530[_0x576a2b(0xcef)]=_0x270485['data'][_0x576a2b(0xcef)]||[{'message':_0x270485['toString'](),'type':_0x576a2b(0x13ec)}];for(let _0x213fa1=0x0;_0x213fa1<_0x270485[_0x576a2b(0x524)][_0x576a2b(0xcef)][_0x576a2b(0x402)];_0x213fa1++){_0x1c4d99[_0x576a2b(0x1980)]({'title':_0x270485['data'][_0x576a2b(0xcef)][_0x213fa1][_0x576a2b(0x1142)],'msg':_0x270485[_0x576a2b(0x524)]['errors'][_0x213fa1]['message']});}}else _0x1c4d99[_0x576a2b(0x1980)]({'title':_0x270485[_0x576a2b(0x107b)]?'API:'+_0x270485[_0x576a2b(0x107b)]+'\x20-\x20'+_0x270485[_0x576a2b(0x167f)]:'api.analyticMetric.update','msg':_0x270485[_0x576a2b(0x524)]?JSON[_0x576a2b(0x10bb)](_0x270485['data'][_0x576a2b(0x7fd)]):_0x270485[_0x576a2b(0xd5f)]()});});}function _0x20cb6a(_0x6b8dcc){const _0x4e9612=_0x5b2b5e;_0x366530['errors']=[];const _0x4d3d5b=_0x537c44['confirm']()[_0x4e9612(0x1189)]('Are\x20you\x20sure?')[_0x4e9612(0x80f)](_0x4e9612(0xd8b))[_0x4e9612(0x4bd)](_0x4e9612(0x17da))['ok'](_0x4e9612(0x25de))[_0x4e9612(0x6c3)](_0x4e9612(0xcf0))['targetEvent'](_0x6b8dcc);_0x537c44[_0x4e9612(0x2615)](_0x4d3d5b)['then'](function(){const _0x4f572b=_0x4e9612;_0x3dbc30[_0x4f572b(0x1f01)][_0x4f572b(0x1fac)]({'id':_0x366530[_0x4f572b(0x16c6)]['id']})[_0x4f572b(0x2945)][_0x4f572b(0x146b)](function(){const _0x77fe62=_0x4f572b;_0x3f65c0()[_0x77fe62(0x2640)](_0x366530[_0x77fe62(0x210e)],{'id':_0x366530['metric']['id']}),_0x1c4d99[_0x77fe62(0x1c75)]({'title':_0x77fe62(0x1e70),'msg':(_0x366530['metric'][_0x77fe62(0x19eb)]||_0x77fe62(0x16c6))+_0x77fe62(0x23e3)}),_0x43148b(_0x366530[_0x77fe62(0x16c6)]);})[_0x4f572b(0x129e)](function(_0x2fbe6a){const _0x3bc045=_0x4f572b;if(_0x2fbe6a[_0x3bc045(0x524)]&&_0x2fbe6a[_0x3bc045(0x524)][_0x3bc045(0xcef)]&&_0x2fbe6a[_0x3bc045(0x524)][_0x3bc045(0xcef)]['length']){_0x366530[_0x3bc045(0xcef)]=_0x2fbe6a[_0x3bc045(0x524)]['errors']||[{'message':_0x2fbe6a[_0x3bc045(0xd5f)](),'type':_0x3bc045(0x1656)}];for(let _0x6207ae=0x0;_0x6207ae<_0x2fbe6a[_0x3bc045(0x524)]['errors'][_0x3bc045(0x402)];_0x6207ae++){_0x1c4d99[_0x3bc045(0x1980)]({'title':_0x2fbe6a[_0x3bc045(0x524)][_0x3bc045(0xcef)][_0x6207ae][_0x3bc045(0x1142)],'msg':_0x2fbe6a[_0x3bc045(0x524)]['errors'][_0x6207ae][_0x3bc045(0x7fd)]});}}else _0x1c4d99[_0x3bc045(0x1980)]({'title':_0x2fbe6a[_0x3bc045(0x107b)]?_0x3bc045(0x262a)+_0x2fbe6a['status']+_0x3bc045(0x1315)+_0x2fbe6a['statusText']:_0x3bc045(0x1656),'msg':_0x2fbe6a[_0x3bc045(0x524)]?JSON[_0x3bc045(0x10bb)](_0x2fbe6a[_0x3bc045(0x524)][_0x3bc045(0x7fd)]):_0x2fbe6a[_0x3bc045(0x7fd)]||_0x2fbe6a[_0x3bc045(0xd5f)]()});});},function(){});}function _0x50e8c3(_0x4bd890){return _0x4bd890===null?undefined:new Date(_0x4bd890);}function _0x43148b(_0x2f110f){const _0x2ee6eb=_0x5b2b5e;_0x537c44[_0x2ee6eb(0x2458)](_0x2f110f);}}const _0x18613c=_0x19f0be;;const _0x2528fd=_0x4acfac['p']+'src/js/modules/main/apps/analytics/views/metrics/create/dialog.html/dialog.html';;_0x5c778c[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),'$window',_0x313a4d(0x1862),_0x313a4d(0x15fe),_0x313a4d(0x10e8),_0x313a4d(0x4d8),_0x313a4d(0x1abe),_0x313a4d(0x214b),_0x313a4d(0x210e),_0x313a4d(0x26b6),_0x313a4d(0x1366),'api',_0x313a4d(0x216c),'toasty','Auth','license','setting'];function _0x5c778c(_0x243b32,_0x2a714f,_0x3e0016,_0x4dd90c,_0x34adeb,_0x17b501,_0x48bf94,_0x52a631,_0x4f7d69,_0x112811,_0x25c4ae,_0x1a26fe,_0x41aacc,_0x358cdc,_0x2120d6,_0x2a5d5b,_0x3c233e){const _0x40dc28=_0x313a4d,_0x1de390=this;_0x1de390[_0x40dc28(0x2690)]=_0x2a5d5b,_0x1de390[_0x40dc28(0x15b9)]=_0x3c233e,_0x1de390[_0x40dc28(0x2321)]=_0x2120d6[_0x40dc28(0xb12)](),_0x1de390['metrics']=_0x4f7d69||{'count':0x0,'rows':[]},_0x1de390[_0x40dc28(0x26b6)]=_0x112811,_0x1de390[_0x40dc28(0x1366)]=_0x25c4ae&&_0x25c4ae['count']==0x1?_0x25c4ae[_0x40dc28(0x19c7)][0x0]:null,_0x1de390[_0x40dc28(0x2514)]=_0x2120d6[_0x40dc28(0xe60)](_0x1de390[_0x40dc28(0x1366)]?_0x1de390[_0x40dc28(0x1366)]['crudPermissions']:null),_0x1de390[_0x40dc28(0x768)]=_0x40dc28(0x210e),_0x1de390['listOrder']='',_0x1de390[_0x40dc28(0x214f)]=null,_0x1de390[_0x40dc28(0xa43)]=[],_0x1de390[_0x40dc28(0x1a56)]={'fields':'createdAt,updatedAt,id,name,table,metric,description','sort':_0x40dc28(0x12f2),'limit':0xa,'page':0x1},_0x1de390[_0x40dc28(0x1ea0)]=_0x3f65c0()[_0x40dc28(0x194)]([{'option':_0x40dc28(0x7e5),'value':_0x40dc28(0x1738)},{'option':_0x40dc28(0x224d),'value':_0x40dc28(0x1de5)},{'option':_0x40dc28(0x28e3),'value':_0x40dc28(0x21ff)},{'option':_0x40dc28(0x23ad),'value':'\x27chat_websites\x27'},{'option':_0x40dc28(0x1403),'value':'\x27chat_interactions\x27'},{'option':_0x40dc28(0x22e1),'value':_0x40dc28(0x21b4)},{'option':_0x40dc28(0x528),'value':'\x27chat_offline_messages\x27'},{'option':'Chat\x20Queues','value':_0x40dc28(0x2821)},{'option':'Chat\x20Report\x20Queue','value':_0x40dc28(0x84e)},{'option':'Chat\x20Report\x20Transfer','value':_0x40dc28(0x1d37)},{'option':_0x40dc28(0x1a5e),'value':'\x27cm_companies\x27'},{'option':_0x40dc28(0x1efa),'value':'\x27cm_contacts\x27'},{'option':_0x40dc28(0xe04),'value':_0x40dc28(0x19d8)},{'option':_0x40dc28(0x26ad),'value':'\x27report_square_details\x27'},{'option':'Dial\x20Report','value':_0x40dc28(0x13f9)},{'option':_0x40dc28(0x2212),'value':_0x40dc28(0x43e)},{'option':_0x40dc28(0x1661),'value':_0x40dc28(0xee0)},{'option':'Dialer\x20Hopper\x20Final','value':'\x27cm_hopper_final\x27'},{'option':'Email\x20Account','value':_0x40dc28(0x1b04)},{'option':_0x40dc28(0x1459),'value':_0x40dc28(0x15c8)},{'option':_0x40dc28(0x1fd3),'value':_0x40dc28(0x26c)},{'option':_0x40dc28(0x13ca),'value':_0x40dc28(0x370)},{'option':_0x40dc28(0xab3),'value':_0x40dc28(0x22ef)},{'option':_0x40dc28(0x12a8),'value':_0x40dc28(0x5ab)},{'option':_0x40dc28(0x26e7),'value':_0x40dc28(0x19a7)},{'option':_0x40dc28(0x1303),'value':_0x40dc28(0x27d3)},{'option':_0x40dc28(0x1516),'value':_0x40dc28(0x4e7)},{'option':_0x40dc28(0x2524),'value':_0x40dc28(0x2096)},{'option':_0x40dc28(0x155b),'value':'\x27report_fax_queue\x27'},{'option':_0x40dc28(0x18fe),'value':'\x27report_fax_transfer\x27'},{'option':_0x40dc28(0x23a0),'value':_0x40dc28(0x1adc)},{'option':_0x40dc28(0x397),'value':_0x40dc28(0x18cc)},{'option':_0x40dc28(0x2f9),'value':'\x27report_jscripty_answers\x27'},{'option':_0x40dc28(0x174f),'value':_0x40dc28(0x1a62)},{'option':_0x40dc28(0xb8d),'value':'\x27report_member\x27'},{'option':_0x40dc28(0x23fe),'value':_0x40dc28(0x1e81)},{'option':'Openchannel\x20Interaction','value':'\x27openchannel_interactions\x27'},{'option':_0x40dc28(0x160d),'value':_0x40dc28(0x1615)},{'option':_0x40dc28(0xf7),'value':_0x40dc28(0x262)},{'option':_0x40dc28(0x1962),'value':_0x40dc28(0x43a)},{'option':_0x40dc28(0x72c),'value':_0x40dc28(0x11b0)},{'option':_0x40dc28(0x55e),'value':_0x40dc28(0x1d99)},{'option':'SMS\x20Account','value':_0x40dc28(0x1534)},{'option':_0x40dc28(0x1329),'value':'\x27sms_interactions\x27'},{'option':'SMS\x20Messages','value':_0x40dc28(0x2090)},{'option':_0x40dc28(0x1c2b),'value':_0x40dc28(0x1331)},{'option':'SMS\x20Report\x20Queue','value':'\x27report_sms_queue\x27'},{'option':'SMS\x20Report\x20Transfer','value':_0x40dc28(0x12f9)},{'option':_0x40dc28(0x3c4),'value':_0x40dc28(0xa1b)},{'option':'Voice\x20Recordings','value':_0x40dc28(0x168f)},{'option':_0x40dc28(0x1c0),'value':_0x40dc28(0x9e3)},{'option':'Whatsapp\x20Interaction','value':_0x40dc28(0x27e3)},{'option':_0x40dc28(0x10ab),'value':_0x40dc28(0x216f)},{'option':_0x40dc28(0x2319),'value':_0x40dc28(0x1c01)},{'option':'Whatsapp\x20Report\x20Queue','value':_0x40dc28(0x11d9)},{'option':_0x40dc28(0x1a61),'value':_0x40dc28(0x25b1)}],function(_0x9badcb){const _0x3d92e4=_0x40dc28;return _0x3f65c0()[_0x3d92e4(0x5f4)](_0x9badcb[_0x3d92e4(0x175d)],new RegExp('\x27','g'),'');}),_0x1de390[_0x40dc28(0x2ed)]=_0x539806,_0x1de390[_0x40dc28(0xf0a)]=_0x2c315b,_0x1de390[_0x40dc28(0x1c75)]=_0x17422c,_0x1de390[_0x40dc28(0x508)]=_0x3e58c0,_0x1de390[_0x40dc28(0x194c)]=_0x34039e,_0x1de390['deleteMetric']=_0xfa59ad,_0x1de390['exportSelectedMetrics']=_0x241dde,_0x1de390[_0x40dc28(0xec0)]=_0x34c232,_0x1de390['deselectMetrics']=_0x37a07f,_0x1de390[_0x40dc28(0xa6d)]=_0x2d5e9e;function _0x539806(_0x3af289,_0x544a59){const _0x4d8714=_0x40dc28;_0x34adeb[_0x4d8714(0x2615)]({'controller':_0x4d8714(0x255),'controllerAs':'vm','templateUrl':_0x2528fd,'parent':angular[_0x4d8714(0x1853)](_0x17b501[_0x4d8714(0x2586)]),'targetEvent':_0x544a59,'clickOutsideToClose':!![],'locals':{'metric':_0x3af289,'metrics':_0x1de390[_0x4d8714(0x210e)][_0x4d8714(0x19c7)],'license':_0x1de390['license'],'setting':null,'crudPermissions':_0x1de390[_0x4d8714(0x2514)]}});}function _0x2c315b(_0x18dd7f,_0x1d2c41){const _0x342471=_0x40dc28,_0x1ba39c=_0x34adeb[_0x342471(0x1e8a)]()[_0x342471(0x1189)](_0x342471(0xdb2)+_0x3f65c0()[_0x342471(0x20d1)](_0x342471(0x16c6))+'?')[_0x342471(0x1cbe)](_0x342471(0x16d3)+(_0x18dd7f[_0x342471(0x19eb)]||_0x342471(0x16c6))+''+_0x342471(0xe01))[_0x342471(0x4bd)](_0x342471(0xa3b))['targetEvent'](_0x1d2c41)['ok']('OK')[_0x342471(0x6c3)](_0x342471(0x39a));_0x34adeb[_0x342471(0x2615)](_0x1ba39c)[_0x342471(0x146b)](function(){_0xfa59ad(_0x18dd7f);},function(){const _0x282c6e=_0x342471;console['log'](_0x282c6e(0x39a));});}let _0x5104fe=!![],_0xc28a0d=0x1;_0x243b32[_0x40dc28(0x21e8)](_0x40dc28(0x2669),function(_0x321fd5,_0x3b2d89){const _0x354ed7=_0x40dc28;_0x5104fe?_0x48bf94(function(){_0x5104fe=![];}):(!_0x3b2d89&&(_0xc28a0d=_0x1de390['query']['page']),_0x321fd5!==_0x3b2d89&&(_0x1de390[_0x354ed7(0x1a56)]['page']=0x1),!_0x321fd5&&(_0x1de390[_0x354ed7(0x1a56)][_0x354ed7(0x844)]=_0xc28a0d),_0x1de390['getMetrics']());});function _0x17422c(_0x72ac9c){const _0x218cf1=_0x40dc28;_0x1de390[_0x218cf1(0x210e)]=_0x72ac9c||{'count':0x0,'rows':[]};}function _0x3e58c0(){const _0xcf0a15=_0x40dc28;_0x1de390[_0xcf0a15(0x1a56)]['offset']=(_0x1de390['query'][_0xcf0a15(0x844)]-0x1)*_0x1de390[_0xcf0a15(0x1a56)][_0xcf0a15(0x221e)],_0x2120d6[_0xcf0a15(0x23e0)](_0xcf0a15(0x174b))?_0x1de390[_0xcf0a15(0xb9c)]=_0x1a26fe[_0xcf0a15(0x1f01)][_0xcf0a15(0x16b4)](_0x1de390['query'],_0x17422c)[_0xcf0a15(0x2945)]:(_0x1de390['query']['id']=_0x1de390[_0xcf0a15(0x26b6)]['id'],_0x1de390[_0xcf0a15(0x1a56)][_0xcf0a15(0x2146)]=_0xcf0a15(0x24d8),_0x1de390[_0xcf0a15(0xb9c)]=_0x1a26fe[_0xcf0a15(0x26b6)]['getResources'](_0x1de390[_0xcf0a15(0x1a56)],_0x17422c)['$promise']);}function _0x34039e(_0x295717,_0x427e86){const _0x3431c4=_0x40dc28;_0x34adeb[_0x3431c4(0x2615)]({'controller':_0x3431c4(0x255),'controllerAs':'vm','templateUrl':_0x2528fd,'parent':angular[_0x3431c4(0x1853)](_0x17b501[_0x3431c4(0x2586)]),'targetEvent':_0x295717,'clickOutsideToClose':!![],'locals':{'metric':_0x427e86,'metrics':_0x1de390[_0x3431c4(0x210e)][_0x3431c4(0x19c7)],'license':_0x1de390[_0x3431c4(0x2690)],'setting':_0x1de390['setting'],'crudPermissions':_0x1de390['crudPermissions']}});}function _0xfa59ad(_0x1a979d){const _0x3b02a5=_0x40dc28;_0x1a26fe['analyticMetric'][_0x3b02a5(0x1fac)]({'id':_0x1a979d['id']})[_0x3b02a5(0x2945)][_0x3b02a5(0x146b)](function(){const _0x4174e2=_0x3b02a5;_0x3f65c0()[_0x4174e2(0x2640)](_0x1de390['metrics'][_0x4174e2(0x19c7)],{'id':_0x1a979d['id']}),_0x1de390['metrics'][_0x4174e2(0x51c)]-=0x1,!_0x1de390['metrics']['rows'][_0x4174e2(0x402)]&&_0x1de390['getMetrics'](),_0x358cdc[_0x4174e2(0x1c75)]({'title':_0x3f65c0()[_0x4174e2(0x20d1)](_0x4174e2(0x253b))+_0x4174e2(0x201c),'msg':_0x1a979d['name']?_0x1a979d[_0x4174e2(0x19eb)]+_0x4174e2(0x23e3):''});})['catch'](function(_0x535586){const _0x24bc8e=_0x3b02a5;if(_0x535586[_0x24bc8e(0x524)]&&_0x535586[_0x24bc8e(0x524)][_0x24bc8e(0xcef)]&&_0x535586[_0x24bc8e(0x524)]['errors']['length']){_0x1de390[_0x24bc8e(0xcef)]=_0x535586['data'][_0x24bc8e(0xcef)]||[{'message':_0x535586[_0x24bc8e(0xd5f)](),'type':_0x24bc8e(0x268a)}];for(let _0x11f784=0x0;_0x11f784<_0x535586['data'][_0x24bc8e(0xcef)][_0x24bc8e(0x402)];_0x11f784++){_0x358cdc[_0x24bc8e(0x1980)]({'title':_0x535586[_0x24bc8e(0x524)][_0x24bc8e(0xcef)][_0x11f784]['type'],'msg':_0x535586[_0x24bc8e(0x524)][_0x24bc8e(0xcef)][_0x11f784][_0x24bc8e(0x7fd)]});}}else _0x358cdc['error']({'title':_0x535586['status']?'API:'+_0x535586[_0x24bc8e(0x107b)]+'\x20-\x20'+_0x535586[_0x24bc8e(0x167f)]:'SYSTEM:DELETEanalyticMetric','msg':_0x535586[_0x24bc8e(0x524)]?JSON[_0x24bc8e(0x10bb)](_0x535586[_0x24bc8e(0x524)]['message']):_0x535586[_0x24bc8e(0x7fd)]||_0x535586[_0x24bc8e(0xd5f)]()});});}function _0x241dde(){const _0xee28df=_0x40dc28,_0x344f7a=angular[_0xee28df(0x235a)](_0x1de390[_0xee28df(0xa43)]);return _0x1de390[_0xee28df(0xa43)]=[],_0x344f7a;}function _0x34c232(_0x504088){const _0x17a136=_0x40dc28,_0x4076fe=_0x34adeb[_0x17a136(0x1e8a)]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20metrics?')[_0x17a136(0x1cbe)](''+_0x1de390['selectedMetrics']['length']+'\x20selected'+'\x20will\x20be\x20deleted.')[_0x17a136(0x4bd)](_0x17a136(0x2437))[_0x17a136(0x1f27)](_0x504088)['ok']('OK')[_0x17a136(0x6c3)](_0x17a136(0x39a));_0x34adeb[_0x17a136(0x2615)](_0x4076fe)[_0x17a136(0x146b)](function(){const _0x3eb369=_0x17a136;_0x1de390[_0x3eb369(0xa43)][_0x3eb369(0x1df5)](function(_0x4bb328){_0xfa59ad(_0x4bb328);}),_0x1de390[_0x3eb369(0xa43)]=[];});}function _0x37a07f(){const _0x58c0d0=_0x40dc28;_0x1de390[_0x58c0d0(0xa43)]=[];}function _0x2d5e9e(){const _0x5405ca=_0x40dc28;_0x1de390[_0x5405ca(0xa43)]=_0x1de390[_0x5405ca(0x210e)][_0x5405ca(0x19c7)];}}const _0x58d042=_0x5c778c;;_0x147f63[_0x313a4d(0x11c2)]=[_0x313a4d(0x921),_0x313a4d(0x695)];function _0x147f63(_0x20b3d0,_0x1177e7){const _0x5ea6e7=_0x313a4d;_0x20b3d0['state'](_0x5ea6e7(0x1925),{'abstract':!![],'url':_0x5ea6e7(0x2083)})[_0x5ea6e7(0x13d6)](_0x5ea6e7(0x2360),{'url':_0x5ea6e7(0x6e9),'views':{'content@app':{'templateUrl':_0x4ae842,'controller':_0x5ea6e7(0x1082)}},'resolve':{'metrics':[_0x5ea6e7(0x362),'Auth',function(_0x309e3b,_0x418c7a){const _0x568d8e=_0x5ea6e7;return _0x418c7a['hasRole']('admin')?_0x309e3b['resolve']('analyticMetric@get',{'fields':_0x568d8e(0x20f9),'sort':_0x568d8e(0x12f2),'limit':0xa,'offset':0x0}):_0x309e3b[_0x568d8e(0x2922)]('userProfile@getResources',{'id':_0x418c7a[_0x568d8e(0xb12)]()['userProfileId'],'section':_0x568d8e(0x24d8),'fields':'createdAt,updatedAt,id,name,table,metric,description','sort':_0x568d8e(0x12f2),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver','Auth',function(_0x62b96c,_0x3db0ff){const _0x16414f=_0x5ea6e7;return _0x3db0ff[_0x16414f(0x23e0)]('admin')?null:_0x62b96c[_0x16414f(0x2922)](_0x16414f(0x119a),{'fields':_0x16414f(0x227),'id':_0x3db0ff[_0x16414f(0xb12)]()[_0x16414f(0x209a)]});}],'userProfileSection':[_0x5ea6e7(0x362),'Auth',function(_0x1e6094,_0x58b185){const _0x15c2ab=_0x5ea6e7;return _0x58b185[_0x15c2ab(0x23e0)]('admin')?null:_0x1e6094['resolve'](_0x15c2ab(0x27be),{'fields':_0x15c2ab(0x1e64),'userProfileId':_0x58b185['getCurrentUser']()['userProfileId'],'sectionId':0x4b1});}]},'authenticate':!![],'permissionId':0x4b1,'bodyClass':'analytics'})[_0x5ea6e7(0x13d6)]('app.analytics.extractedReports',{'url':_0x5ea6e7(0xd84),'views':{'content@app':{'templateUrl':_0x1991b9,'controller':_0x5ea6e7(0x2609)}},'resolve':{'extractedReports':[_0x5ea6e7(0x362),'Auth',function(_0x3ee0e5,_0x59819a){const _0x2693e1=_0x5ea6e7;return _0x59819a[_0x2693e1(0x23e0)]('admin')?_0x3ee0e5[_0x2693e1(0x2922)](_0x2693e1(0xb20),{'fields':_0x2693e1(0x1a71),'sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x3ee0e5[_0x2693e1(0x2922)](_0x2693e1(0x938),{'id':_0x59819a[_0x2693e1(0xb12)]()['userProfileId'],'section':_0x2693e1(0x1d35),'fields':_0x2693e1(0x1a71),'sort':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':[_0x5ea6e7(0x362),_0x5ea6e7(0xa87),function(_0x11d148,_0x5131d1){const _0x5762d8=_0x5ea6e7;return _0x5131d1['hasRole'](_0x5762d8(0x174b))?null:_0x11d148[_0x5762d8(0x2922)]('userProfile@get',{'fields':_0x5762d8(0x227),'id':_0x5131d1[_0x5762d8(0xb12)]()[_0x5762d8(0x209a)]});}],'userProfileSection':['apiResolver',_0x5ea6e7(0xa87),function(_0x4d97d4,_0x594e4e){const _0x11ac58=_0x5ea6e7;return _0x594e4e[_0x11ac58(0x23e0)](_0x11ac58(0x174b))?null:_0x4d97d4['resolve'](_0x11ac58(0x27be),{'fields':_0x11ac58(0x1e64),'userProfileId':_0x594e4e['getCurrentUser']()['userProfileId'],'sectionId':0x4b2});}]},'authenticate':!![],'permissionId':0x4b2,'bodyClass':_0x5ea6e7(0xf5c)}),_0x1177e7[_0x5ea6e7(0x15bf)](_0x5ea6e7(0xf36));}angular[_0x313a4d(0x2528)]('app.analytics',[_0x313a4d(0xdad),_0x313a4d(0x962),_0x313a4d(0x23c7),_0x313a4d(0x963),_0x313a4d(0x19e2),_0x313a4d(0x27c1),_0x313a4d(0x195b),_0x313a4d(0x15ef),_0x313a4d(0xc86),_0x313a4d(0x1f5f),_0x313a4d(0x28a8),'mwFormViewer',_0x313a4d(0x1e57),'ngclipboard',_0x313a4d(0x1bd2),_0x313a4d(0x1792),'angularMaterialFormBuilder','material.components.expansionPanels',_0x313a4d(0x2713),_0x313a4d(0x11df),'app.analytics.reports'])[_0x313a4d(0x989)](_0x147f63)[_0x313a4d(0x28f0)](_0x313a4d(0x1c45),_0x5e634c)[_0x313a4d(0x28f0)](_0x313a4d(0x141b),_0x1f19a8)[_0x313a4d(0x28f0)](_0x313a4d(0x255),_0x18613c)[_0x313a4d(0x28f0)](_0x313a4d(0xf48),_0x58d042);;const _0x1bf47d=_0x4acfac['p']+'src/js/modules/main/apps/integrations/views/zendeskAccounts/zendeskAccounts.html/zendeskAccounts.html';;const _0x31432a=_0x4acfac['p']+'src/js/modules/main/apps/integrations/views/zendeskAccounts/edit/view.html/view.html';;const _0x9908c7=_0x4acfac['p']+_0x313a4d(0x403);;const _0xffe78=_0x4acfac['p']+_0x313a4d(0x22c2);;const _0xb8d797=_0x4acfac['p']+'src/js/modules/main/apps/integrations/views/freshdeskAccounts/freshdeskAccounts.html/freshdeskAccounts.html';;const _0x182d3e=_0x4acfac['p']+_0x313a4d(0x1277);;const _0x2cbed3=_0x4acfac['p']+_0x313a4d(0x1c3b);;const _0x5036b2=_0x4acfac['p']+_0x313a4d(0x8a7);;const _0x5eb581=_0x4acfac['p']+_0x313a4d(0x1b40);;const _0x467534=_0x4acfac['p']+'src/js/modules/main/apps/integrations/views/deskAccounts/edit/view.html/view.html';;const _0x34830d=_0x4acfac['p']+_0x313a4d(0x1a81);;const _0x279f5c=_0x4acfac['p']+'src/js/modules/main/apps/integrations/views/zohoAccounts/edit/view.html/view.html';;const _0xcd6f76=_0x4acfac['p']+_0x313a4d(0x19cd);;const _0x52d6f1=_0x4acfac['p']+_0x313a4d(0x24f0);;const _0x50a1b4=_0x4acfac['p']+_0x313a4d(0x133e);;const _0x7dedfe=_0x4acfac['p']+_0x313a4d(0x186b);;const _0x23d4a8=_0x4acfac['p']+_0x313a4d(0xb2d);;const _0x581d51=_0x4acfac['p']+_0x313a4d(0x20f0);;const _0x119f88=_0x4acfac['p']+_0x313a4d(0xc98);;const _0x2c1489=_0x4acfac['p']+_0x313a4d(0x1a19);;_0x539e89[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),'$state',_0x313a4d(0xd08),_0x313a4d(0x10e8),'$q',_0x313a4d(0x214b),'toasty','deskAccounts','deskAccount',_0x313a4d(0x247f),_0x313a4d(0xa87),_0x313a4d(0x2690),_0x313a4d(0x15b9),_0x313a4d(0x2514)];function _0x539e89(_0x1d1120,_0x43f919,_0x463326,_0x143007,_0x16df3d,_0x342d93,_0x5e5bce,_0x11abc9,_0x43ca24,_0x539990,_0x26b76a,_0x5e9f4b,_0xfe57b9,_0x55d55c){const _0x2941b9=_0x313a4d,_0x1b9ce9=this;_0x1b9ce9[_0x2941b9(0x2321)]=_0x26b76a[_0x2941b9(0xb12)](),_0x1b9ce9['errors']=[],_0x1b9ce9[_0x2941b9(0x15b9)]=_0xfe57b9,_0x1b9ce9[_0x2941b9(0x2690)]=_0x5e9f4b,_0x1b9ce9[_0x2941b9(0x2514)]=_0x55d55c,_0x1b9ce9['hasModulePermissions']={},_0x1b9ce9['passwordPattern']=_0x1b9ce9[_0x2941b9(0x15b9)]&&_0x1b9ce9['setting'][_0x2941b9(0x976)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1b9ce9[_0x2941b9(0x1189)]=_0x2941b9(0x1a6e),_0x1b9ce9[_0x2941b9(0x262b)]=angular[_0x2941b9(0x235a)](_0x43ca24),_0x1b9ce9[_0x2941b9(0x7c8)]=_0x11abc9,_0x1b9ce9[_0x2941b9(0x126c)]=![];!_0x1b9ce9[_0x2941b9(0x262b)]&&(_0x1b9ce9[_0x2941b9(0x262b)]={'type':_0x2941b9(0xb4b),'authType':_0x2941b9(0x241d),'serverUrl':_0x463326['protocol']()+'://'+_0x463326[_0x2941b9(0x148e)]()+(_0x463326[_0x2941b9(0x1553)]()?':'+_0x463326[_0x2941b9(0x1553)]():'')},_0x1b9ce9[_0x2941b9(0x1189)]=_0x2941b9(0x259a),_0x1b9ce9[_0x2941b9(0x126c)]=!![]);_0x1b9ce9[_0x2941b9(0x1055)]=_0x5e8774,_0x1b9ce9[_0x2941b9(0x1232)]=_0x445d69,_0x1b9ce9[_0x2941b9(0xb90)]=_0x447dbb,_0x1b9ce9['getDateFromString']=_0x3671b9,_0x1b9ce9['closeDialog']=_0x59ee39;function _0x5e8774(){const _0x43e967=_0x2941b9;_0x1b9ce9['errors']=[],_0x539990[_0x43e967(0x139)][_0x43e967(0x1e3)](_0x1b9ce9[_0x43e967(0x262b)])[_0x43e967(0x2945)][_0x43e967(0x146b)](function(_0x158018){const _0x2ef2a4=_0x43e967;_0x1b9ce9[_0x2ef2a4(0x7c8)]['unshift'](_0x158018['toJSON']()),_0x5e5bce[_0x2ef2a4(0x1c75)]({'title':_0x2ef2a4(0x1368),'msg':_0x1b9ce9[_0x2ef2a4(0x262b)][_0x2ef2a4(0x19eb)]?_0x1b9ce9[_0x2ef2a4(0x262b)][_0x2ef2a4(0x19eb)]+_0x2ef2a4(0x1386):''}),_0x59ee39(_0x158018);})[_0x43e967(0x129e)](function(_0x3420a6){const _0x1111f5=_0x43e967;if(_0x3420a6[_0x1111f5(0x524)]&&_0x3420a6[_0x1111f5(0x524)][_0x1111f5(0xcef)]&&_0x3420a6['data'][_0x1111f5(0xcef)][_0x1111f5(0x402)]){_0x1b9ce9['errors']=_0x3420a6[_0x1111f5(0x524)]['errors']||[{'message':_0x3420a6['toString'](),'type':_0x1111f5(0x200)}];for(let _0x125393=0x0;_0x125393<_0x3420a6['data'][_0x1111f5(0xcef)][_0x1111f5(0x402)];_0x125393+=0x1){_0x5e5bce['error']({'title':_0x3420a6[_0x1111f5(0x524)][_0x1111f5(0xcef)][_0x125393][_0x1111f5(0x1142)],'msg':_0x3420a6['data']['errors'][_0x125393]['message']});}}else _0x5e5bce['error']({'title':_0x3420a6[_0x1111f5(0x107b)]?_0x1111f5(0x262a)+_0x3420a6[_0x1111f5(0x107b)]+_0x1111f5(0x1315)+_0x3420a6[_0x1111f5(0x167f)]:'api.intDeskAccount.save','msg':_0x3420a6[_0x1111f5(0x524)]?JSON[_0x1111f5(0x10bb)](_0x3420a6['data'][_0x1111f5(0x7fd)]):_0x3420a6[_0x1111f5(0xd5f)]()});});}function _0x445d69(){const _0x5645c0=_0x2941b9;_0x1b9ce9[_0x5645c0(0xcef)]=[],_0x539990[_0x5645c0(0x139)][_0x5645c0(0x18e1)]({'id':_0x1b9ce9[_0x5645c0(0x262b)]['id']},_0x1b9ce9[_0x5645c0(0x262b)])['$promise']['then'](function(_0x2ba7a2){const _0x2e4706=_0x5645c0,_0x3ef896=_0x3f65c0()['find'](_0x1b9ce9[_0x2e4706(0x7c8)],{'id':_0x2ba7a2['id']});_0x3ef896&&_0x3f65c0()[_0x2e4706(0x168d)](_0x3ef896,_0x3f65c0()['pick'](_0x2ba7a2['toJSON'](),_0x3f65c0()['keys'](_0x3ef896))),_0x5e5bce[_0x2e4706(0x1c75)]({'title':_0x2e4706(0xb41),'msg':_0x1b9ce9['deskAccount'][_0x2e4706(0x19eb)]?_0x1b9ce9[_0x2e4706(0x262b)][_0x2e4706(0x19eb)]+'\x20has\x20been\x20saved!':''}),_0x59ee39(_0x2ba7a2);})[_0x5645c0(0x129e)](function(_0x13f9f3){const _0x33df5d=_0x5645c0;if(_0x13f9f3[_0x33df5d(0x524)]&&_0x13f9f3[_0x33df5d(0x524)][_0x33df5d(0xcef)]&&_0x13f9f3[_0x33df5d(0x524)][_0x33df5d(0xcef)][_0x33df5d(0x402)]){_0x1b9ce9[_0x33df5d(0xcef)]=_0x13f9f3[_0x33df5d(0x524)][_0x33df5d(0xcef)]||[{'message':_0x13f9f3['toString'](),'type':_0x33df5d(0x1693)}];for(let _0x4bd5cf=0x0;_0x4bd5cf<_0x13f9f3[_0x33df5d(0x524)][_0x33df5d(0xcef)]['length'];_0x4bd5cf++){_0x5e5bce[_0x33df5d(0x1980)]({'title':_0x13f9f3[_0x33df5d(0x524)][_0x33df5d(0xcef)][_0x4bd5cf][_0x33df5d(0x1142)],'msg':_0x13f9f3['data'][_0x33df5d(0xcef)][_0x4bd5cf][_0x33df5d(0x7fd)]});}}else _0x5e5bce[_0x33df5d(0x1980)]({'title':_0x13f9f3[_0x33df5d(0x107b)]?_0x33df5d(0x262a)+_0x13f9f3['status']+_0x33df5d(0x1315)+_0x13f9f3[_0x33df5d(0x167f)]:'api.intDeskAccount.update','msg':_0x13f9f3[_0x33df5d(0x524)]?JSON[_0x33df5d(0x10bb)](_0x13f9f3['data']['message']):_0x13f9f3[_0x33df5d(0xd5f)]()});});}function _0x447dbb(_0x25884a){const _0x4a695f=_0x2941b9;_0x1b9ce9[_0x4a695f(0xcef)]=[];const _0x25f6d2=_0x143007[_0x4a695f(0x1e8a)]()[_0x4a695f(0x1189)](_0x4a695f(0x1d64))[_0x4a695f(0x80f)]('The\x20deskAccount\x20will\x20be\x20deleted.')['ariaLabel']('Delete\x20DeskAccount')['ok'](_0x4a695f(0x25de))[_0x4a695f(0x6c3)]('Cancel')['targetEvent'](_0x25884a);_0x143007[_0x4a695f(0x2615)](_0x25f6d2)[_0x4a695f(0x146b)](function(){const _0x441a50=_0x4a695f;_0x539990[_0x441a50(0x139)][_0x441a50(0x1fac)]({'id':_0x1b9ce9[_0x441a50(0x262b)]['id']})[_0x441a50(0x2945)][_0x441a50(0x146b)](function(){const _0x1f2bc3=_0x441a50;_0x3f65c0()[_0x1f2bc3(0x2640)](_0x1b9ce9[_0x1f2bc3(0x7c8)],{'id':_0x1b9ce9[_0x1f2bc3(0x262b)]['id']}),_0x5e5bce[_0x1f2bc3(0x1c75)]({'title':_0x1f2bc3(0x14f2),'msg':(_0x1b9ce9[_0x1f2bc3(0x262b)][_0x1f2bc3(0x19eb)]||_0x1f2bc3(0x262b))+'\x20has\x20been\x20deleted!'}),_0x59ee39(_0x1b9ce9[_0x1f2bc3(0x262b)]);})['catch'](function(_0x1e0813){const _0x23531e=_0x441a50;if(_0x1e0813['data']&&_0x1e0813[_0x23531e(0x524)][_0x23531e(0xcef)]&&_0x1e0813[_0x23531e(0x524)][_0x23531e(0xcef)][_0x23531e(0x402)]){_0x1b9ce9[_0x23531e(0xcef)]=_0x1e0813[_0x23531e(0x524)][_0x23531e(0xcef)]||[{'message':_0x1e0813['toString'](),'type':'api.intDeskAccount.delete'}];for(let _0x4305a8=0x0;_0x4305a8<_0x1e0813[_0x23531e(0x524)][_0x23531e(0xcef)]['length'];_0x4305a8++){_0x5e5bce[_0x23531e(0x1980)]({'title':_0x1e0813[_0x23531e(0x524)][_0x23531e(0xcef)][_0x4305a8][_0x23531e(0x1142)],'msg':_0x1e0813[_0x23531e(0x524)]['errors'][_0x4305a8][_0x23531e(0x7fd)]});}}else _0x5e5bce[_0x23531e(0x1980)]({'title':_0x1e0813[_0x23531e(0x107b)]?'API:'+_0x1e0813[_0x23531e(0x107b)]+_0x23531e(0x1315)+_0x1e0813['statusText']:'api.intDeskAccount.delete','msg':_0x1e0813[_0x23531e(0x524)]?JSON[_0x23531e(0x10bb)](_0x1e0813[_0x23531e(0x524)][_0x23531e(0x7fd)]):_0x1e0813[_0x23531e(0x7fd)]||_0x1e0813['toString']()});});},function(){});}function _0x3671b9(_0x1c49e9){return _0x1c49e9===null?undefined:new Date(_0x1c49e9);}function _0x59ee39(_0x20b15d){const _0xd2f244=_0x2941b9;_0x143007[_0xd2f244(0x2458)](_0x20b15d);}}const _0x1226ff=_0x539e89;;const _0x230c97=_0x4acfac['p']+_0x313a4d(0x1891);;_0x20cdea[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1aa9),_0x313a4d(0x1862),_0x313a4d(0x15fe),_0x313a4d(0x10e8),_0x313a4d(0x4d8),_0x313a4d(0x1abe),_0x313a4d(0x214b),_0x313a4d(0x7c8),_0x313a4d(0x26b6),_0x313a4d(0x1366),_0x313a4d(0x247f),_0x313a4d(0x216c),'toasty',_0x313a4d(0xa87),_0x313a4d(0x2690),_0x313a4d(0x15b9)];function _0x20cdea(_0x5e7f27,_0x5177ee,_0x568047,_0xc39d5b,_0x11dd4a,_0x54ad9e,_0x3fc755,_0x23a291,_0x1b036f,_0x176c53,_0x1ce4c0,_0x21009b,_0x1b8eb6,_0xae9695,_0xeb288d,_0xccdd86,_0x3eca58){const _0x1d3a7e=_0x313a4d,_0x177dca=this;_0x177dca[_0x1d3a7e(0x2690)]=_0xccdd86,_0x177dca['setting']=_0x3eca58,_0x177dca['currentUser']=_0xeb288d[_0x1d3a7e(0xb12)](),_0x177dca['deskAccounts']=_0x1b036f||{'count':0x0,'rows':[]},_0x177dca[_0x1d3a7e(0x26b6)]=_0x176c53,_0x177dca['userProfileSection']=_0x1ce4c0&&_0x1ce4c0[_0x1d3a7e(0x51c)]==0x1?_0x1ce4c0['rows'][0x0]:null,_0x177dca[_0x1d3a7e(0x2514)]=_0xeb288d[_0x1d3a7e(0xe60)](_0x177dca[_0x1d3a7e(0x1366)]?_0x177dca[_0x1d3a7e(0x1366)][_0x1d3a7e(0x2514)]:null),_0x177dca[_0x1d3a7e(0x768)]='deskAccounts',_0x177dca['listOrder']='',_0x177dca[_0x1d3a7e(0x214f)]=null,_0x177dca['selectedDeskAccounts']=[],_0x177dca[_0x1d3a7e(0x1a56)]={'fields':'createdAt,updatedAt,id,name,type,remoteUri,authType,username,password,serverUrl,description','limit':0xa,'page':0x1},_0x177dca[_0x1d3a7e(0x11da)]=_0x3f65c0()[_0x1d3a7e(0x194)]([{'option':_0x1d3a7e(0xfad),'value':_0x1d3a7e(0x17ec)},{'option':_0x1d3a7e(0xf6a),'value':_0x1d3a7e(0x1404)}],function(_0x1df452){const _0xba7093=_0x1d3a7e;return _0x3f65c0()[_0xba7093(0x5f4)](_0x1df452['value'],new RegExp('\x27','g'),'');}),_0x177dca['arrayauthType']=_0x3f65c0()['keyBy']([{'option':_0x1d3a7e(0x267f),'value':_0x1d3a7e(0x26c3)}],function(_0x3ca0c5){const _0x23f860=_0x1d3a7e;return _0x3f65c0()[_0x23f860(0x5f4)](_0x3ca0c5['value'],new RegExp('\x27','g'),'');}),_0x177dca[_0x1d3a7e(0x23f9)]=_0x2a02f0,_0x177dca['testtestintegrationaccount']=_0x3866ba,_0x177dca[_0x1d3a7e(0xf0a)]=_0x1c8cf9,_0x177dca[_0x1d3a7e(0x1c75)]=_0x11c20c,_0x177dca['getDeskAccounts']=_0x43ec2e,_0x177dca['createOrEditDeskAccount']=_0x19fa8a,_0x177dca[_0x1d3a7e(0xb90)]=_0x132d83,_0x177dca[_0x1d3a7e(0x1d5d)]=_0x4d75b8,_0x177dca[_0x1d3a7e(0x23cc)]=_0x33daa5,_0x177dca[_0x1d3a7e(0x18a0)]=_0x19af9b,_0x177dca[_0x1d3a7e(0x7f9)]=_0x2bff0e;function _0x2a02f0(_0x297617){const _0x4d7159=_0x1d3a7e;_0x568047['go']('app.integrations.deskAccounts.edit',{'id':_0x297617['id'],'deskAccount':_0x297617,'crudPermissions':_0x177dca[_0x4d7159(0x2514)]});}function _0x3866ba(_0x49cdee){const _0x2b6cae=_0x1d3a7e;return _0x21009b['intDeskAccount'][_0x2b6cae(0x12ff)]({'id':_0x49cdee['id'],'test':!![]})[_0x2b6cae(0x2945)][_0x2b6cae(0x146b)](function(){const _0x129aa4=_0x2b6cae;_0xae9695[_0x129aa4(0x1c75)]({'title':'DeskAccount\x20properly\x20tested','msg':_0x129aa4(0x1893)});})[_0x2b6cae(0x129e)](function(_0x5a9353){const _0x4a34a9=_0x2b6cae;_0xae9695[_0x4a34a9(0x1980)]({'title':_0x4a34a9(0x13ac),'msg':_0x5a9353['data']?_0x5a9353['data'][_0x4a34a9(0x7fd)]?_0x5a9353[_0x4a34a9(0x524)]['message']:JSON[_0x4a34a9(0x10bb)](_0x5a9353[_0x4a34a9(0x524)]):_0x5a9353[_0x4a34a9(0xd5f)]()});});}function _0x1c8cf9(_0x5c9cc1,_0x2d2398){const _0x4f4b85=_0x1d3a7e,_0x59dde7=_0x11dd4a[_0x4f4b85(0x1e8a)]()[_0x4f4b85(0x1189)](_0x4f4b85(0xdb2)+_0x3f65c0()[_0x4f4b85(0x20d1)]('deskAccount')+'?')[_0x4f4b85(0x1cbe)](_0x4f4b85(0x16d3)+(_0x5c9cc1[_0x4f4b85(0x19eb)]||_0x4f4b85(0x262b))+''+_0x4f4b85(0xe01))[_0x4f4b85(0x4bd)]('delete\x20deskAccount')[_0x4f4b85(0x1f27)](_0x2d2398)['ok']('OK')['cancel'](_0x4f4b85(0x39a));_0x11dd4a[_0x4f4b85(0x2615)](_0x59dde7)[_0x4f4b85(0x146b)](function(){_0x132d83(_0x5c9cc1);},function(){console['log']('CANCEL');});}let _0x53c110=!![],_0x257e6d=0x1;_0x5e7f27[_0x1d3a7e(0x21e8)](_0x1d3a7e(0x2669),function(_0xdb160b,_0x33c50d){const _0x401e07=_0x1d3a7e;_0x53c110?_0x3fc755(function(){_0x53c110=![];}):(!_0x33c50d&&(_0x257e6d=_0x177dca[_0x401e07(0x1a56)]['page']),_0xdb160b!==_0x33c50d&&(_0x177dca[_0x401e07(0x1a56)][_0x401e07(0x844)]=0x1),!_0xdb160b&&(_0x177dca['query'][_0x401e07(0x844)]=_0x257e6d),_0x177dca[_0x401e07(0x1c35)]());});function _0x11c20c(_0x37f295){const _0xc76d5=_0x1d3a7e;_0x177dca[_0xc76d5(0x7c8)]=_0x37f295||{'count':0x0,'rows':[]};}function _0x43ec2e(){const _0x4bc027=_0x1d3a7e;_0x177dca[_0x4bc027(0x1a56)]['offset']=(_0x177dca['query'][_0x4bc027(0x844)]-0x1)*_0x177dca[_0x4bc027(0x1a56)]['limit'],_0xeb288d['hasRole'](_0x4bc027(0x174b))?_0x177dca[_0x4bc027(0xb9c)]=_0x21009b[_0x4bc027(0x139)][_0x4bc027(0x16b4)](_0x177dca[_0x4bc027(0x1a56)],_0x11c20c)['$promise']:(_0x177dca[_0x4bc027(0x1a56)]['id']=_0x177dca['userProfile']['id'],_0x177dca[_0x4bc027(0x1a56)][_0x4bc027(0x2146)]=_0x4bc027(0xecc),_0x177dca['promise']=_0x21009b['userProfile'][_0x4bc027(0x158f)](_0x177dca['query'],_0x11c20c)['$promise']);}function _0x19fa8a(_0x4c8d65,_0x55421d){const _0x579918=_0x1d3a7e;_0x11dd4a[_0x579918(0x2615)]({'controller':_0x579918(0x20e2),'controllerAs':'vm','templateUrl':_0x230c97,'parent':angular['element'](_0x54ad9e[_0x579918(0x2586)]),'targetEvent':_0x4c8d65,'clickOutsideToClose':!![],'locals':{'deskAccount':_0x55421d,'deskAccounts':_0x177dca[_0x579918(0x7c8)][_0x579918(0x19c7)],'license':_0x177dca[_0x579918(0x2690)],'setting':_0x177dca[_0x579918(0x15b9)],'crudPermissions':_0x177dca[_0x579918(0x2514)]}});}function _0x132d83(_0x22510a){const _0x3464e1=_0x1d3a7e;_0x21009b[_0x3464e1(0x139)][_0x3464e1(0x1fac)]({'id':_0x22510a['id']})[_0x3464e1(0x2945)][_0x3464e1(0x146b)](function(){const _0x2d7156=_0x3464e1;_0x3f65c0()['remove'](_0x177dca['deskAccounts'][_0x2d7156(0x19c7)],{'id':_0x22510a['id']}),_0x177dca[_0x2d7156(0x7c8)][_0x2d7156(0x51c)]-=0x1,!_0x177dca[_0x2d7156(0x7c8)][_0x2d7156(0x19c7)][_0x2d7156(0x402)]&&_0x177dca[_0x2d7156(0x1c35)](),_0xae9695['success']({'title':_0x3f65c0()[_0x2d7156(0x20d1)]('DeskAccount')+_0x2d7156(0x201c),'msg':_0x22510a[_0x2d7156(0x19eb)]?_0x22510a[_0x2d7156(0x19eb)]+'\x20has\x20been\x20deleted!':''});})[_0x3464e1(0x129e)](function(_0x5a9c0d){const _0x3d3831=_0x3464e1;if(_0x5a9c0d[_0x3d3831(0x524)]&&_0x5a9c0d[_0x3d3831(0x524)][_0x3d3831(0xcef)]&&_0x5a9c0d['data'][_0x3d3831(0xcef)][_0x3d3831(0x402)]){_0x177dca[_0x3d3831(0xcef)]=_0x5a9c0d[_0x3d3831(0x524)][_0x3d3831(0xcef)]||[{'message':_0x5a9c0d[_0x3d3831(0xd5f)](),'type':'SYSTEM:DELETEintDeskAccount'}];for(let _0x3c9a4e=0x0;_0x3c9a4e<_0x5a9c0d[_0x3d3831(0x524)]['errors'][_0x3d3831(0x402)];_0x3c9a4e++){_0xae9695[_0x3d3831(0x1980)]({'title':_0x5a9c0d[_0x3d3831(0x524)]['errors'][_0x3c9a4e]['type'],'msg':_0x5a9c0d[_0x3d3831(0x524)][_0x3d3831(0xcef)][_0x3c9a4e][_0x3d3831(0x7fd)]});}}else _0xae9695[_0x3d3831(0x1980)]({'title':_0x5a9c0d[_0x3d3831(0x107b)]?_0x3d3831(0x262a)+_0x5a9c0d[_0x3d3831(0x107b)]+_0x3d3831(0x1315)+_0x5a9c0d['statusText']:_0x3d3831(0xd1e),'msg':_0x5a9c0d[_0x3d3831(0x524)]?JSON[_0x3d3831(0x10bb)](_0x5a9c0d[_0x3d3831(0x524)]['message']):_0x5a9c0d[_0x3d3831(0x7fd)]||_0x5a9c0d[_0x3d3831(0xd5f)]()});});}function _0x4d75b8(){const _0x4df374=_0x1d3a7e,_0x1e90f7=angular[_0x4df374(0x235a)](_0x177dca[_0x4df374(0x130e)]);return _0x177dca[_0x4df374(0x130e)]=[],_0x1e90f7;}function _0x33daa5(_0x325d36){const _0x5e5dbe=_0x1d3a7e,_0x59ffea=_0x11dd4a[_0x5e5dbe(0x1e8a)]()[_0x5e5dbe(0x1189)](_0x5e5dbe(0xd87))[_0x5e5dbe(0x1cbe)](_0x5e5dbe(0x16d3)+_0x177dca[_0x5e5dbe(0x130e)][_0x5e5dbe(0x402)]+_0x5e5dbe(0x2452)+_0x5e5dbe(0xe01))[_0x5e5dbe(0x4bd)](_0x5e5dbe(0x2b5))[_0x5e5dbe(0x1f27)](_0x325d36)['ok']('OK')[_0x5e5dbe(0x6c3)](_0x5e5dbe(0x39a));_0x11dd4a['show'](_0x59ffea)[_0x5e5dbe(0x146b)](function(){const _0x2238b1=_0x5e5dbe;_0x177dca[_0x2238b1(0x130e)][_0x2238b1(0x1df5)](function(_0x1657ce){_0x132d83(_0x1657ce);}),_0x177dca[_0x2238b1(0x130e)]=[];});}function _0x19af9b(){const _0x94e19f=_0x1d3a7e;_0x177dca[_0x94e19f(0x130e)]=[];}function _0x2bff0e(){const _0x57e9f1=_0x1d3a7e;_0x177dca['selectedDeskAccounts']=_0x177dca[_0x57e9f1(0x7c8)][_0x57e9f1(0x19c7)];}}const _0x5bc86e=_0x20cdea;;const _0x2957e9=_0x4acfac['p']+_0x313a4d(0x396);;const _0x38ba14=_0x4acfac['p']+_0x313a4d(0x26fb);;_0x4c95cf[_0x313a4d(0x11c2)]=[_0x313a4d(0x10e8),'$document',_0x313a4d(0x247f),_0x313a4d(0x1fe4),_0x313a4d(0xa87)];function _0x4c95cf(_0x56a147,_0x2dc45c,_0x32c39d,_0x1f13f2,_0x46866d){const _0x27a317=_0x313a4d,_0x5da0de=this;_0x5da0de[_0x27a317(0x2321)]=_0x46866d['getCurrentUser'](),_0x5da0de[_0x27a317(0x262b)]={},_0x5da0de[_0x27a317(0x451)]={},_0x5da0de[_0x27a317(0x1723)]=[],_0x5da0de[_0x27a317(0x749)]=-0x1,_0x5da0de['crudPermissions'],_0x5da0de[_0x27a317(0x5aa)]=_0x19743a,_0x5da0de[_0x27a317(0x220d)]=_0x59b6ff,_0x5da0de[_0x27a317(0x1b74)]=_0x3f547a,_0x5da0de[_0x27a317(0xfde)]=_0xab3456,_0x5da0de[_0x27a317(0x2323)]=[],_0x5da0de['selectTagsChanged']=_0x72b567,_0x32c39d[_0x27a317(0xa80)][_0x27a317(0x16b4)]({'nolimit':!![],'sort':_0x27a317(0x19eb)})[_0x27a317(0x2945)][_0x27a317(0x146b)](function(_0xeb9439){const _0x38f951=_0x27a317;_0x5da0de[_0x38f951(0x1b86)]=_0xeb9439[_0x38f951(0x19c7)]?_0xeb9439[_0x38f951(0x19c7)]:[];})[_0x27a317(0x129e)](function(_0x5926c3){const _0x3777d8=_0x27a317;_0x1f13f2['error']({'title':_0x5926c3[_0x3777d8(0x107b)]?'API:'+_0x5926c3['status']+_0x3777d8(0x1315)+_0x5926c3[_0x3777d8(0x167f)]:_0x3777d8(0x220e),'msg':_0x5926c3['data']?JSON[_0x3777d8(0x10bb)](_0x5926c3[_0x3777d8(0x524)]):_0x5926c3[_0x3777d8(0xd5f)]()});});function _0x72b567(){const _0x26d418=_0x27a317;_0x32c39d['intDeskConfiguration'][_0x26d418(0x13eb)]({'id':_0x5da0de[_0x26d418(0x451)]['id'],'ids':_0x5da0de[_0x26d418(0x2323)]})[_0x26d418(0x2945)][_0x26d418(0x146b)](function(){const _0x559cf0=_0x26d418;_0x1f13f2[_0x559cf0(0x1c75)]({'title':_0x559cf0(0x20f8),'msg':'Tags\x20has\x20been\x20set!'});})[_0x26d418(0x129e)](function(_0x53a6ee){const _0x133c7f=_0x26d418;_0x1f13f2[_0x133c7f(0x1980)]({'title':_0x53a6ee[_0x133c7f(0x107b)]?_0x133c7f(0x262a)+_0x53a6ee[_0x133c7f(0x107b)]+_0x133c7f(0x1315)+_0x53a6ee[_0x133c7f(0x167f)]:_0x133c7f(0x11c3),'msg':_0x53a6ee[_0x133c7f(0x524)]?JSON[_0x133c7f(0x10bb)](_0x53a6ee[_0x133c7f(0x524)]):_0x53a6ee['toString']()});});}function _0x19743a(_0x2f39c0,_0x380435){const _0xc1eea8=_0x27a317;_0x5da0de[_0xc1eea8(0x262b)]=_0x2f39c0,_0x5da0de[_0xc1eea8(0x2514)]=typeof _0x380435!=='undefined'?_0x380435:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x32c39d[_0xc1eea8(0x139)][_0xc1eea8(0xeb)]({'id':_0x5da0de[_0xc1eea8(0x262b)]['id'],'sort':_0xc1eea8(0x12f2)})[_0xc1eea8(0x2945)]['then'](function(_0x307296){const _0x13b481=_0xc1eea8;return _0x5da0de['configurations']=_0x307296[_0x13b481(0x19c7)]?_0x307296['rows']:[],_0x5da0de[_0x13b481(0x1723)][_0x13b481(0x402)]&&_0x5da0de[_0x13b481(0x220d)](0x0),_0x32c39d[_0x13b481(0x212)]['get']({'nolimit':!![],'sort':_0x13b481(0x19eb)})['$promise'];})[_0xc1eea8(0x146b)](function(_0x439d1c){const _0x5f5017=_0xc1eea8;_0x5da0de[_0x5f5017(0x85b)]=_0x439d1c[_0x5f5017(0x19c7)]?_0x439d1c[_0x5f5017(0x19c7)]:[],_0x5da0de[_0x5f5017(0x80c)]=_0x3f65c0()['keyBy'](_0x5da0de['variables'],'id');})[_0xc1eea8(0x129e)](function(_0x9869ad){const _0x36439e=_0xc1eea8;_0x1f13f2[_0x36439e(0x1980)]({'title':_0x9869ad[_0x36439e(0x107b)]?'API:'+_0x9869ad[_0x36439e(0x107b)]+_0x36439e(0x1315)+_0x9869ad[_0x36439e(0x167f)]:_0x36439e(0x9e7),'msg':_0x9869ad[_0x36439e(0x524)]?JSON[_0x36439e(0x10bb)](_0x9869ad[_0x36439e(0x524)]):_0x9869ad[_0x36439e(0xd5f)]()});});}function _0x59b6ff(_0x14b75c){const _0x2a33f5=_0x27a317;_0x5da0de[_0x2a33f5(0x451)]=_0x5da0de[_0x2a33f5(0x1723)][_0x14b75c],_0x5da0de[_0x2a33f5(0x749)]=_0x14b75c,_0x32c39d[_0x2a33f5(0x2778)][_0x2a33f5(0x18ee)]({'id':_0x5da0de[_0x2a33f5(0x451)]['id']})[_0x2a33f5(0x2945)]['then'](function(_0x2ebbb0){const _0xa61db7=_0x2a33f5;return _0x5da0de['subjects']=_0x2ebbb0[_0xa61db7(0x19c7)]?_0x2ebbb0[_0xa61db7(0x19c7)]:[],_0x32c39d[_0xa61db7(0x2778)][_0xa61db7(0xc2a)]({'id':_0x5da0de[_0xa61db7(0x451)]['id']})[_0xa61db7(0x2945)];})[_0x2a33f5(0x146b)](function(_0x2a7d6b){const _0x1d79ab=_0x2a33f5;return _0x5da0de[_0x1d79ab(0x2358)]=_0x2a7d6b['rows']?_0x2a7d6b[_0x1d79ab(0x19c7)]:[],_0x32c39d[_0x1d79ab(0x2778)]['getFields']({'id':_0x5da0de[_0x1d79ab(0x451)]['id']})[_0x1d79ab(0x2945)];})[_0x2a33f5(0x146b)](function(_0x4f2c0f){const _0x487f38=_0x2a33f5;_0x5da0de[_0x487f38(0x2867)]=_0x4f2c0f[_0x487f38(0x19c7)]?_0x4f2c0f['rows']:[];})[_0x2a33f5(0x129e)](function(_0x451656){const _0x54e360=_0x2a33f5;_0x1f13f2[_0x54e360(0x1980)]({'title':_0x451656['status']?_0x54e360(0x262a)+_0x451656[_0x54e360(0x107b)]+_0x54e360(0x1315)+_0x451656[_0x54e360(0x167f)]:_0x54e360(0x6ca),'msg':_0x451656['data']?JSON['stringify'](_0x451656[_0x54e360(0x524)]):_0x451656[_0x54e360(0xd5f)]()});}),_0x32c39d['intDeskConfiguration']['getTags']({'id':_0x5da0de['deskConfiguration']['id']})[_0x2a33f5(0x2945)][_0x2a33f5(0x146b)](function(_0xd1575e){const _0x247f7f=_0x2a33f5;_0x5da0de['selectedTags']=_0xd1575e[_0x247f7f(0x19c7)]?_0x3f65c0()[_0x247f7f(0x205)](_0xd1575e[_0x247f7f(0x19c7)],'id'):[];})[_0x2a33f5(0x129e)](function(_0xa26f4e){const _0x56c6a0=_0x2a33f5;_0x1f13f2['error']({'title':_0xa26f4e[_0x56c6a0(0x107b)]?_0x56c6a0(0x262a)+_0xa26f4e[_0x56c6a0(0x107b)]+'\x20-\x20'+_0xa26f4e[_0x56c6a0(0x167f)]:'SYSTEM:GETTAGS','msg':_0xa26f4e[_0x56c6a0(0x524)]?JSON[_0x56c6a0(0x10bb)](_0xa26f4e[_0x56c6a0(0x524)]):_0xa26f4e['toString']()});});}function _0x3f547a(_0x5abcaf,_0x54f3e2){const _0x4a12c2=_0x27a317;_0x56a147[_0x4a12c2(0x2615)]({'controller':'CreateOrEditDeskConfigurationDialogController','controllerAs':'vm','templateUrl':_0x2957e9,'parent':angular[_0x4a12c2(0x1853)](_0x2dc45c[_0x4a12c2(0x2586)]),'targetEvent':_0x5abcaf,'clickOutsideToClose':!![],'locals':{'deskConfiguration':_0x54f3e2,'configurations':_0x5da0de[_0x4a12c2(0x1723)],'license':null,'setting':null,'crudPermissions':_0x5da0de['crudPermissions']}})[_0x4a12c2(0x1ec6)](function(){const _0x21df02=_0x4a12c2;_0x5da0de[_0x21df02(0x220d)](0x0);});}function _0xab3456(_0x2f483d,_0x23b5d7){const _0x3a0f01=_0x27a317,_0x148b99=_0x56a147[_0x3a0f01(0x1e8a)]()[_0x3a0f01(0x1189)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20deskConfiguration?')[_0x3a0f01(0x1cbe)](_0x3a0f01(0x16d3)+(_0x23b5d7[_0x3a0f01(0x19eb)]||_0x3a0f01(0x451))+_0x3a0f01(0x252f)+_0x3a0f01(0xe01))[_0x3a0f01(0x4bd)]('delete\x20deskConfiguration')[_0x3a0f01(0x1f27)](_0x2f483d)['ok']('OK')[_0x3a0f01(0x6c3)](_0x3a0f01(0x39a));_0x56a147['show'](_0x148b99)[_0x3a0f01(0x146b)](function(){const _0x2b1498=_0x3a0f01;_0x32c39d[_0x2b1498(0x2778)][_0x2b1498(0x1fac)]({'id':_0x23b5d7['id']})['$promise']['then'](function(){const _0x45f9fd=_0x2b1498;_0x3f65c0()['remove'](_0x5da0de['configurations'],{'id':_0x23b5d7['id']}),_0x1f13f2[_0x45f9fd(0x1c75)]({'title':_0x45f9fd(0x1872),'msg':_0x23b5d7[_0x45f9fd(0x19eb)]?_0x23b5d7[_0x45f9fd(0x19eb)]+'\x20has\x20been\x20deleted!':''});})[_0x2b1498(0x129e)](function(_0x4dff4e){const _0x4280e1=_0x2b1498;_0x1f13f2[_0x4280e1(0x1980)]({'title':_0x4dff4e[_0x4280e1(0x107b)]?_0x4280e1(0x262a)+_0x4dff4e['status']+'\x20-\x20'+_0x4dff4e[_0x4280e1(0x167f)]:_0x4280e1(0xff1),'msg':_0x4dff4e[_0x4280e1(0x524)]?JSON[_0x4280e1(0x10bb)](_0x4dff4e[_0x4280e1(0x524)]):_0x4dff4e[_0x4280e1(0xd5f)]()});})[_0x2b1498(0x1ec6)](function(){const _0x3895d8=_0x2b1498;_0x5da0de[_0x3895d8(0x220d)](0x0);});},function(){const _0x58cc6d=_0x3a0f01;console[_0x58cc6d(0x1a74)](_0x58cc6d(0x39a));});}_0x5da0de[_0x27a317(0x15a6)]=[],_0x5da0de['createOrEditSubject']=_0x1ebcdd,_0x5da0de[_0x27a317(0x10d5)]=_0x475657,_0x5da0de[_0x27a317(0x1777)]=_0x2be8fb;function _0x1ebcdd(_0x3630c4,_0x24d537){const _0x6be50e=_0x27a317;_0x56a147[_0x6be50e(0x2615)]({'controller':'CreateOrEditDeskAccountItemDialogController','controllerAs':'vm','templateUrl':_0x38ba14,'parent':angular[_0x6be50e(0x1853)](_0x2dc45c[_0x6be50e(0x2586)]),'targetEvent':_0x3630c4,'clickOutsideToClose':!![],'locals':{'type':_0x6be50e(0xe32),'item':_0x24d537,'items':_0x5da0de[_0x6be50e(0x3c8)],'configuration':_0x5da0de[_0x6be50e(0x451)],'account':_0x5da0de[_0x6be50e(0x262b)],'license':null,'setting':null,'crudPermissions':_0x5da0de[_0x6be50e(0x2514)]}});}function _0x2e3d4d(_0x24413b){const _0x1abf38=_0x27a317;_0x32c39d[_0x1abf38(0x1073)][_0x1abf38(0x1fac)]({'id':_0x24413b['id']})[_0x1abf38(0x2945)][_0x1abf38(0x146b)](function(){const _0x3f9b63=_0x1abf38;_0x3f65c0()[_0x3f9b63(0x2640)](_0x5da0de[_0x3f9b63(0x3c8)],{'id':_0x24413b['id']}),_0x1f13f2[_0x3f9b63(0x1c75)]({'title':_0x3f9b63(0x28e6),'msg':_0x3f9b63(0x761)});})['catch'](function(_0x239326){const _0xff96fb=_0x1abf38;_0x1f13f2[_0xff96fb(0x1980)]({'title':_0x239326[_0xff96fb(0x107b)]?_0xff96fb(0x262a)+_0x239326[_0xff96fb(0x107b)]+_0xff96fb(0x1315)+_0x239326[_0xff96fb(0x167f)]:_0xff96fb(0xf6e),'msg':_0x239326[_0xff96fb(0x524)]?JSON[_0xff96fb(0x10bb)](_0x239326[_0xff96fb(0x524)]):_0x239326[_0xff96fb(0xd5f)]()});});}function _0x475657(_0x5c0386,_0x567fb3){const _0x1b8d7f=_0x27a317,_0x22cd2a=_0x56a147[_0x1b8d7f(0x1e8a)]()[_0x1b8d7f(0x1189)](_0x1b8d7f(0x317))[_0x1b8d7f(0x1cbe)](_0x1b8d7f(0xf7f)+_0x1b8d7f(0xe01))['ariaLabel'](_0x1b8d7f(0x5d1))[_0x1b8d7f(0x1f27)](_0x5c0386)['ok']('OK')[_0x1b8d7f(0x6c3)](_0x1b8d7f(0x39a));_0x56a147[_0x1b8d7f(0x2615)](_0x22cd2a)[_0x1b8d7f(0x146b)](function(){_0x2e3d4d(_0x567fb3);},function(){console['log']('CANCEL');});}function _0x2be8fb(_0xdbed98){const _0x110740=_0x27a317,_0x5741a6=_0x56a147[_0x110740(0x1e8a)]()[_0x110740(0x1189)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20subjects?')[_0x110740(0x1cbe)](_0x110740(0x16d3)+_0x5da0de[_0x110740(0x15a6)]['length']+'\x20selected'+_0x110740(0xe01))[_0x110740(0x4bd)](_0x110740(0x1209))['targetEvent'](_0xdbed98)['ok']('OK')[_0x110740(0x6c3)](_0x110740(0x39a));_0x56a147[_0x110740(0x2615)](_0x5741a6)[_0x110740(0x146b)](function(){const _0x4243aa=_0x110740;_0x5da0de['selectedSubjects'][_0x4243aa(0x1df5)](function(_0x5e038b){_0x2e3d4d(_0x5e038b);}),_0x5da0de[_0x4243aa(0x15a6)]=[];});}_0x5da0de[_0x27a317(0x126)]=[],_0x5da0de[_0x27a317(0x18da)]=_0x198c79,_0x5da0de[_0x27a317(0xb29)]=_0x181782,_0x5da0de['deleteSelectedDescriptions']=_0x15c8fd;function _0x198c79(_0x5033c6,_0x260f7c){const _0x411c99=_0x27a317;_0x56a147['show']({'controller':_0x411c99(0xe35),'controllerAs':'vm','templateUrl':_0x38ba14,'parent':angular[_0x411c99(0x1853)](_0x2dc45c['body']),'targetEvent':_0x5033c6,'clickOutsideToClose':!![],'locals':{'type':_0x411c99(0xb17),'item':_0x260f7c,'items':_0x5da0de['descriptions'],'configuration':_0x5da0de[_0x411c99(0x451)],'account':_0x5da0de[_0x411c99(0x262b)],'license':null,'setting':null,'crudPermissions':_0x5da0de[_0x411c99(0x2514)]}});}function _0xd763b9(_0x2e4bef){const _0x469d21=_0x27a317;_0x32c39d['intDeskField'][_0x469d21(0x1fac)]({'id':_0x2e4bef['id']})[_0x469d21(0x2945)][_0x469d21(0x146b)](function(){const _0x19dfb7=_0x469d21;_0x3f65c0()[_0x19dfb7(0x2640)](_0x5da0de[_0x19dfb7(0x2358)],{'id':_0x2e4bef['id']}),_0x1f13f2[_0x19dfb7(0x1c75)]({'title':_0x19dfb7(0xaf8),'msg':'Description\x20has\x20been\x20deleted!'});})[_0x469d21(0x129e)](function(_0x3fa445){const _0x70a428=_0x469d21;_0x1f13f2['error']({'title':_0x3fa445['status']?_0x70a428(0x262a)+_0x3fa445[_0x70a428(0x107b)]+_0x70a428(0x1315)+_0x3fa445['statusText']:'SYSTEM:DELETECONFIGURATIONFIELD','msg':_0x3fa445[_0x70a428(0x524)]?JSON[_0x70a428(0x10bb)](_0x3fa445['data']):_0x3fa445['toString']()});});}function _0x181782(_0x4b811b,_0x117ce7){const _0x426c6b=_0x27a317,_0x1b843e=_0x56a147[_0x426c6b(0x1e8a)]()['title'](_0x426c6b(0x1e9))[_0x426c6b(0x1cbe)](_0x426c6b(0x2014)+'\x20will\x20be\x20deleted.')[_0x426c6b(0x4bd)](_0x426c6b(0x1c5c))['targetEvent'](_0x4b811b)['ok']('OK')[_0x426c6b(0x6c3)](_0x426c6b(0x39a));_0x56a147['show'](_0x1b843e)[_0x426c6b(0x146b)](function(){_0xd763b9(_0x117ce7);},function(){const _0x4cd5ff=_0x426c6b;console[_0x4cd5ff(0x1a74)](_0x4cd5ff(0x39a));});}function _0x15c8fd(_0x518c2d){const _0x53ac97=_0x27a317,_0x1a8422=_0x56a147[_0x53ac97(0x1e8a)]()[_0x53ac97(0x1189)](_0x53ac97(0x1acd))[_0x53ac97(0x1cbe)](''+_0x5da0de[_0x53ac97(0x126)][_0x53ac97(0x402)]+_0x53ac97(0x2452)+_0x53ac97(0xe01))[_0x53ac97(0x4bd)]('delete\x20descriptions')['targetEvent'](_0x518c2d)['ok']('OK')['cancel'](_0x53ac97(0x39a));_0x56a147[_0x53ac97(0x2615)](_0x1a8422)[_0x53ac97(0x146b)](function(){const _0x3c0791=_0x53ac97;_0x5da0de[_0x3c0791(0x126)]['forEach'](function(_0x1ef5c4){_0xd763b9(_0x1ef5c4);}),_0x5da0de[_0x3c0791(0x126)]=[];});}_0x5da0de[_0x27a317(0x2605)]=[],_0x5da0de[_0x27a317(0x737)]=_0x36bb60,_0x5da0de[_0x27a317(0x2180)]=_0x32dd7e,_0x5da0de[_0x27a317(0x816)]=_0x1696f8;function _0x36bb60(_0xa4ab5d,_0x4d6c35){const _0x1783fa=_0x27a317;_0x56a147[_0x1783fa(0x2615)]({'controller':_0x1783fa(0xe35),'controllerAs':'vm','templateUrl':_0x38ba14,'parent':angular[_0x1783fa(0x1853)](_0x2dc45c[_0x1783fa(0x2586)]),'targetEvent':_0xa4ab5d,'clickOutsideToClose':!![],'locals':{'type':_0x1783fa(0x65c),'item':_0x4d6c35,'items':_0x5da0de[_0x1783fa(0x2867)],'configuration':_0x5da0de['deskConfiguration'],'account':_0x5da0de[_0x1783fa(0x262b)],'license':null,'setting':null,'crudPermissions':_0x5da0de[_0x1783fa(0x2514)]}});}function _0x6e05f4(_0x3d21f9){const _0x269074=_0x27a317;_0x32c39d['intDeskField'][_0x269074(0x1fac)]({'id':_0x3d21f9['id']})[_0x269074(0x2945)][_0x269074(0x146b)](function(){const _0x5ef373=_0x269074;_0x3f65c0()[_0x5ef373(0x2640)](_0x5da0de[_0x5ef373(0x2867)],{'id':_0x3d21f9['id']}),_0x1f13f2[_0x5ef373(0x1c75)]({'title':_0x5ef373(0x24ce),'msg':_0x5ef373(0x1c07)});})[_0x269074(0x129e)](function(_0x2a823f){const _0x20737d=_0x269074;_0x1f13f2['error']({'title':_0x2a823f['status']?_0x20737d(0x262a)+_0x2a823f[_0x20737d(0x107b)]+'\x20-\x20'+_0x2a823f[_0x20737d(0x167f)]:_0x20737d(0xf6e),'msg':_0x2a823f[_0x20737d(0x524)]?JSON[_0x20737d(0x10bb)](_0x2a823f[_0x20737d(0x524)]):_0x2a823f[_0x20737d(0xd5f)]()});});}function _0x32dd7e(_0x330304,_0x35e02f){const _0xe3f55c=_0x27a317,_0x50cce9=_0x56a147['confirm']()['title'](_0xe3f55c(0x17f6))['htmlContent'](_0xe3f55c(0x2216)+_0xe3f55c(0xe01))['ariaLabel'](_0xe3f55c(0x2487))[_0xe3f55c(0x1f27)](_0x330304)['ok']('OK')[_0xe3f55c(0x6c3)](_0xe3f55c(0x39a));_0x56a147[_0xe3f55c(0x2615)](_0x50cce9)[_0xe3f55c(0x146b)](function(){_0x6e05f4(_0x35e02f);},function(){const _0x3da160=_0xe3f55c;console[_0x3da160(0x1a74)](_0x3da160(0x39a));});}function _0x1696f8(_0x4e8493){const _0x5bcb7a=_0x27a317,_0x3be2fb=_0x56a147[_0x5bcb7a(0x1e8a)]()[_0x5bcb7a(0x1189)](_0x5bcb7a(0xe75))['htmlContent'](_0x5bcb7a(0x16d3)+_0x5da0de[_0x5bcb7a(0x2605)][_0x5bcb7a(0x402)]+_0x5bcb7a(0x2452)+_0x5bcb7a(0xe01))[_0x5bcb7a(0x4bd)]('delete\x20fields')[_0x5bcb7a(0x1f27)](_0x4e8493)['ok']('OK')[_0x5bcb7a(0x6c3)](_0x5bcb7a(0x39a));_0x56a147[_0x5bcb7a(0x2615)](_0x3be2fb)[_0x5bcb7a(0x146b)](function(){const _0x455b4d=_0x5bcb7a;_0x5da0de[_0x455b4d(0x2605)][_0x455b4d(0x1df5)](function(_0x35483c){_0x6e05f4(_0x35483c);}),_0x5da0de['selectedFields']=[];});}}const _0x2bc7c1=_0x4c95cf;;_0x2af627['$inject']=[_0x313a4d(0x910),'$state',_0x313a4d(0xd08),'$mdDialog','$q',_0x313a4d(0x214b),_0x313a4d(0x1fe4),'configurations',_0x313a4d(0x451),_0x313a4d(0x247f),_0x313a4d(0xa87),_0x313a4d(0x2690),_0x313a4d(0x15b9),'crudPermissions'];function _0x2af627(_0x1d077c,_0x5e51c2,_0x1e5908,_0x1a2ccc,_0xdf3353,_0x5ac48a,_0x55adec,_0x4057d0,_0xdba581,_0x37ed85,_0x758ae3,_0x363bf2,_0x4c89a4,_0x79aa44){const _0x94ed54=_0x313a4d,_0x56c82c=this;_0x56c82c[_0x94ed54(0x2321)]=_0x758ae3[_0x94ed54(0xb12)](),_0x56c82c[_0x94ed54(0xcef)]=[],_0x56c82c[_0x94ed54(0x15b9)]=_0x4c89a4,_0x56c82c[_0x94ed54(0x2690)]=_0x363bf2,_0x56c82c[_0x94ed54(0x2514)]=_0x79aa44,_0x56c82c[_0x94ed54(0x855)]={},_0x56c82c[_0x94ed54(0x2251)]=_0x56c82c[_0x94ed54(0x15b9)]&&_0x56c82c[_0x94ed54(0x15b9)][_0x94ed54(0x976)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x56c82c['title']=_0x94ed54(0x1029),_0x56c82c['deskConfiguration']=angular[_0x94ed54(0x235a)](_0xdba581),_0x56c82c[_0x94ed54(0x1723)]=_0x4057d0,_0x56c82c[_0x94ed54(0x7a4)]=![];!_0x56c82c[_0x94ed54(0x451)]&&(_0x56c82c['deskConfiguration']={'channel':'voice','type':'inbound'},_0x56c82c['title']=_0x94ed54(0x2b4),_0x56c82c['newDeskConfiguration']=!![]);_0x56c82c[_0x94ed54(0xf7a)]=_0x133ba1,_0x56c82c[_0x94ed54(0xcdf)]=_0x39d5ba,_0x56c82c[_0x94ed54(0xfde)]=_0x13aa8d,_0x56c82c[_0x94ed54(0xe73)]=_0x1ab3a1,_0x56c82c[_0x94ed54(0x13f3)]=_0x5b2062;function _0x133ba1(){const _0x1bf43c=_0x94ed54;_0x56c82c['errors']=[],_0x37ed85[_0x1bf43c(0x139)]['addConfiguration']({'id':_0x5e51c2[_0x1bf43c(0x16a)]['id']},_0x56c82c[_0x1bf43c(0x451)])['$promise']['then'](function(_0x2ad29a){const _0x59d292=_0x1bf43c;_0x56c82c[_0x59d292(0x1723)]['unshift'](_0x2ad29a['toJSON']()),_0x55adec[_0x59d292(0x1c75)]({'title':_0x59d292(0x1abf),'msg':_0x56c82c[_0x59d292(0x451)][_0x59d292(0x19eb)]?_0x56c82c[_0x59d292(0x451)]['name']+_0x59d292(0x1386):''}),_0x5b2062(_0x2ad29a);})[_0x1bf43c(0x129e)](function(_0x2a0e62){const _0x5b8316=_0x1bf43c;if(_0x2a0e62[_0x5b8316(0x524)]&&_0x2a0e62[_0x5b8316(0x524)][_0x5b8316(0xcef)]&&_0x2a0e62[_0x5b8316(0x524)][_0x5b8316(0xcef)][_0x5b8316(0x402)]){_0x56c82c[_0x5b8316(0xcef)]=_0x2a0e62['data'][_0x5b8316(0xcef)]||[{'message':_0x2a0e62['toString'](),'type':'api.intDeskConfiguration.save'}];for(let _0x1ffc9a=0x0;_0x1ffc9a<_0x2a0e62[_0x5b8316(0x524)][_0x5b8316(0xcef)][_0x5b8316(0x402)];_0x1ffc9a+=0x1){_0x55adec[_0x5b8316(0x1980)]({'title':_0x2a0e62[_0x5b8316(0x524)][_0x5b8316(0xcef)][_0x1ffc9a][_0x5b8316(0x1142)],'msg':_0x2a0e62[_0x5b8316(0x524)][_0x5b8316(0xcef)][_0x1ffc9a][_0x5b8316(0x7fd)]});}}else _0x55adec['error']({'title':_0x2a0e62[_0x5b8316(0x107b)]?_0x5b8316(0x262a)+_0x2a0e62[_0x5b8316(0x107b)]+'\x20-\x20'+_0x2a0e62[_0x5b8316(0x167f)]:_0x5b8316(0x19b1),'msg':_0x2a0e62[_0x5b8316(0x524)]?JSON[_0x5b8316(0x10bb)](_0x2a0e62[_0x5b8316(0x524)]['message']):_0x2a0e62[_0x5b8316(0xd5f)]()});});}function _0x39d5ba(){const _0x2a9eae=_0x94ed54;_0x56c82c[_0x2a9eae(0xcef)]=[],_0x37ed85[_0x2a9eae(0x2778)][_0x2a9eae(0x18e1)]({'id':_0x56c82c[_0x2a9eae(0x451)]['id']},_0x56c82c[_0x2a9eae(0x451)])['$promise']['then'](function(_0x490426){const _0x4cee2a=_0x2a9eae,_0x137dce=_0x3f65c0()[_0x4cee2a(0xc84)](_0x56c82c[_0x4cee2a(0x1723)],{'id':_0x490426['id']});_0x137dce&&_0x3f65c0()['merge'](_0x137dce,_0x3f65c0()[_0x4cee2a(0x40e)](_0x490426[_0x4cee2a(0x2488)](),_0x3f65c0()[_0x4cee2a(0x627)](_0x137dce))),_0x55adec[_0x4cee2a(0x1c75)]({'title':'DeskConfiguration\x20properly\x20saved!','msg':_0x56c82c[_0x4cee2a(0x451)][_0x4cee2a(0x19eb)]?_0x56c82c[_0x4cee2a(0x451)][_0x4cee2a(0x19eb)]+_0x4cee2a(0x24db):''}),_0x5b2062(_0x490426);})[_0x2a9eae(0x129e)](function(_0x4f2a3b){const _0x34509d=_0x2a9eae;if(_0x4f2a3b[_0x34509d(0x524)]&&_0x4f2a3b[_0x34509d(0x524)][_0x34509d(0xcef)]&&_0x4f2a3b['data'][_0x34509d(0xcef)][_0x34509d(0x402)]){_0x56c82c[_0x34509d(0xcef)]=_0x4f2a3b[_0x34509d(0x524)][_0x34509d(0xcef)]||[{'message':_0x4f2a3b[_0x34509d(0xd5f)](),'type':_0x34509d(0x155a)}];for(let _0x17407e=0x0;_0x17407e<_0x4f2a3b[_0x34509d(0x524)][_0x34509d(0xcef)][_0x34509d(0x402)];_0x17407e++){_0x55adec[_0x34509d(0x1980)]({'title':_0x4f2a3b[_0x34509d(0x524)]['errors'][_0x17407e][_0x34509d(0x1142)],'msg':_0x4f2a3b[_0x34509d(0x524)][_0x34509d(0xcef)][_0x17407e]['message']});}}else _0x55adec['error']({'title':_0x4f2a3b[_0x34509d(0x107b)]?_0x34509d(0x262a)+_0x4f2a3b['status']+'\x20-\x20'+_0x4f2a3b[_0x34509d(0x167f)]:_0x34509d(0x155a),'msg':_0x4f2a3b[_0x34509d(0x524)]?JSON[_0x34509d(0x10bb)](_0x4f2a3b['data'][_0x34509d(0x7fd)]):_0x4f2a3b[_0x34509d(0xd5f)]()});});}function _0x13aa8d(_0x43e6e6){const _0x2b14b9=_0x94ed54;_0x56c82c[_0x2b14b9(0xcef)]=[];const _0x21b71d=_0x1a2ccc['confirm']()[_0x2b14b9(0x1189)](_0x2b14b9(0x1d64))['content'](_0x2b14b9(0x1499))[_0x2b14b9(0x4bd)](_0x2b14b9(0x197f))['ok'](_0x2b14b9(0x25de))[_0x2b14b9(0x6c3)](_0x2b14b9(0xcf0))[_0x2b14b9(0x1f27)](_0x43e6e6);_0x1a2ccc[_0x2b14b9(0x2615)](_0x21b71d)['then'](function(){const _0x59ada5=_0x2b14b9;_0x37ed85['intDeskConfiguration'][_0x59ada5(0x1fac)]({'id':_0x56c82c[_0x59ada5(0x451)]['id']})[_0x59ada5(0x2945)]['then'](function(){const _0x23dd1e=_0x59ada5;_0x3f65c0()[_0x23dd1e(0x2640)](_0x56c82c[_0x23dd1e(0x1723)],{'id':_0x56c82c[_0x23dd1e(0x451)]['id']}),_0x55adec['success']({'title':_0x23dd1e(0x24a0),'msg':(_0x56c82c[_0x23dd1e(0x451)][_0x23dd1e(0x19eb)]||_0x23dd1e(0x451))+_0x23dd1e(0x23e3)}),_0x5b2062(_0x56c82c[_0x23dd1e(0x451)]);})[_0x59ada5(0x129e)](function(_0x581372){const _0x4773bb=_0x59ada5;if(_0x581372['data']&&_0x581372[_0x4773bb(0x524)][_0x4773bb(0xcef)]&&_0x581372[_0x4773bb(0x524)][_0x4773bb(0xcef)][_0x4773bb(0x402)]){_0x56c82c['errors']=_0x581372[_0x4773bb(0x524)]['errors']||[{'message':_0x581372[_0x4773bb(0xd5f)](),'type':_0x4773bb(0x6b8)}];for(let _0x939241=0x0;_0x939241<_0x581372[_0x4773bb(0x524)][_0x4773bb(0xcef)][_0x4773bb(0x402)];_0x939241++){_0x55adec['error']({'title':_0x581372[_0x4773bb(0x524)]['errors'][_0x939241][_0x4773bb(0x1142)],'msg':_0x581372[_0x4773bb(0x524)][_0x4773bb(0xcef)][_0x939241][_0x4773bb(0x7fd)]});}}else _0x55adec['error']({'title':_0x581372[_0x4773bb(0x107b)]?_0x4773bb(0x262a)+_0x581372['status']+'\x20-\x20'+_0x581372['statusText']:'api.intDeskConfiguration.delete','msg':_0x581372[_0x4773bb(0x524)]?JSON[_0x4773bb(0x10bb)](_0x581372[_0x4773bb(0x524)][_0x4773bb(0x7fd)]):_0x581372[_0x4773bb(0x7fd)]||_0x581372['toString']()});});},function(){});}function _0x1ab3a1(_0x4563b1){return _0x4563b1===null?undefined:new Date(_0x4563b1);}function _0x5b2062(_0x477965){const _0x48bfbd=_0x94ed54;_0x1a2ccc[_0x48bfbd(0x2458)](_0x477965);}}const _0x499774=_0x2af627;;_0xe57f9e[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),'$state',_0x313a4d(0xd08),'$mdDialog',_0x313a4d(0x1fe4),_0x313a4d(0x19d7),_0x313a4d(0x1fd6),_0x313a4d(0x2711),_0x313a4d(0x1f8e),_0x313a4d(0x1142),_0x313a4d(0x247f),_0x313a4d(0xa87),_0x313a4d(0x2514)];function _0xe57f9e(_0x29b3e8,_0xe55ed8,_0x12e0ff,_0x2beac9,_0x94ae22,_0x554bf6,_0x99a20e,_0xa75814,_0x464e1b,_0xa6c7bd,_0xe747f5,_0x52ceaa,_0x3ccc62){const _0xde825f=_0x313a4d,_0x5e1a78=this;_0x5e1a78['currentUser']=_0x52ceaa[_0xde825f(0xb12)](),_0x5e1a78[_0xde825f(0xcef)]=[],_0x5e1a78[_0xde825f(0x1189)]='INTEGRATIONS.EDIT_'+_0x3f65c0()[_0xde825f(0xd39)](_0xa6c7bd),_0x5e1a78[_0xde825f(0x2711)]=angular[_0xde825f(0x235a)](_0xa75814),_0x5e1a78[_0xde825f(0x1fd6)]=_0x99a20e,_0x5e1a78[_0xde825f(0x1142)]=_0xa6c7bd,_0x5e1a78[_0xde825f(0x2514)]=_0x3ccc62,_0x5e1a78['newItem']=![];!_0x5e1a78['item']&&(_0x5e1a78['item']={'type':'string'},_0x5e1a78['item'][_0x3f65c0()[_0xde825f(0x83f)](_0xa6c7bd)+'Id']=_0x554bf6['id'],_0x5e1a78[_0xde825f(0x1189)]='INTEGRATIONS.NEW_'+_0x3f65c0()['toUpper'](_0xa6c7bd),_0x5e1a78['newItem']=!![]);_0x5e1a78['addNewItem']=_0x3914ec,_0x5e1a78[_0xde825f(0x150e)]=_0x40e648,_0x5e1a78[_0xde825f(0xbaf)]=_0x59a5c2,_0x5e1a78[_0xde825f(0x21b1)]=_0xa038d1,_0x5e1a78['closeDialog']=_0x497513,_0xe747f5['variable'][_0xde825f(0x16b4)]({'nolimit':!![]})['$promise'][_0xde825f(0x146b)](function(_0x344ac1){const _0xbaa9c4=_0xde825f;return _0x5e1a78[_0xbaa9c4(0x85b)]=_0x344ac1['rows']?_0x344ac1[_0xbaa9c4(0x19c7)]:[],_0xe747f5[_0xbaa9c4(0x1cb3)]['describe']()[_0xbaa9c4(0x2945)];})[_0xde825f(0x146b)](function(_0x77ff3){const _0x4b297b=_0xde825f;return _0x5e1a78['voiceAgentReportColumns']=_0x3f65c0()[_0x4b297b(0xa62)](_0x3f65c0()[_0x4b297b(0x627)](_0x77ff3),['$promise',_0x4b297b(0x26f2),_0x4b297b(0xc68),'updatedAt','sourceid']),_0x5e1a78[_0x4b297b(0x1c8a)][_0x4b297b(0x1f47)](_0x4b297b(0x643)),_0xe747f5['voiceDialReport'][_0x4b297b(0x1ea2)]()[_0x4b297b(0x2945)];})[_0xde825f(0x146b)](function(_0x1a1fc2){const _0x31cbd4=_0xde825f;_0x5e1a78[_0x31cbd4(0x164b)]=_0x3f65c0()[_0x31cbd4(0xa62)](_0x3f65c0()[_0x31cbd4(0x627)](_0x1a1fc2),['$promise',_0x31cbd4(0x26f2),_0x31cbd4(0xc68),_0x31cbd4(0x144f),'sourceid']),_0x5e1a78[_0x31cbd4(0x164b)][_0x31cbd4(0x1f47)](_0x31cbd4(0x643));})[_0xde825f(0x129e)](function(_0x4bed66){const _0x302a5c=_0xde825f;_0x94ae22[_0x302a5c(0x1980)]({'title':_0x4bed66[_0x302a5c(0x107b)]?_0x302a5c(0x262a)+_0x4bed66[_0x302a5c(0x107b)]+_0x302a5c(0x1315)+_0x4bed66[_0x302a5c(0x167f)]:_0x302a5c(0x502),'msg':_0x4bed66[_0x302a5c(0x524)]?JSON['stringify'](_0x4bed66[_0x302a5c(0x524)]):_0x4bed66['toString']()});}),_0xe747f5['intDeskAccount']['getFields']({'id':_0x464e1b['id'],'ticketType':_0x554bf6['ticketType']?_0x554bf6[_0xde825f(0x21be)]:undefined})['$promise'][_0xde825f(0x146b)](function(_0x5559a8){const _0x2caba5=_0xde825f;_0x5e1a78[_0x2caba5(0x822)]=!![],_0x5e1a78[_0x2caba5(0x2867)]=_0x5559a8[_0x2caba5(0x19c7)]?_0x5559a8['rows']:[],_0x5e1a78[_0x2caba5(0x2711)][_0x2caba5(0x2912)]&&(_0x5e1a78['customField']=_0x3f65c0()[_0x2caba5(0xc84)](_0x5e1a78['fields'],{'id':_0x5e1a78[_0x2caba5(0x2711)]['idField']}));})[_0xde825f(0x129e)](function(_0x1f05a1){const _0x415b7e=_0xde825f;_0x5e1a78[_0x415b7e(0x822)]=![],console[_0x415b7e(0x1980)](_0x1f05a1);});function _0x3914ec(){const _0x13b24=_0xde825f;_0x5e1a78['errors']=[],_0x5e1a78['customField']&&(_0x5e1a78[_0x13b24(0x2711)][_0x13b24(0x2912)]=_0x5e1a78[_0x13b24(0x165e)]['id'],_0x5e1a78[_0x13b24(0x2711)][_0x13b24(0x25e3)]=_0x5e1a78[_0x13b24(0x165e)]['name'],_0x5e1a78[_0x13b24(0x2711)][_0x13b24(0x165e)]=_0x5e1a78[_0x13b24(0x165e)][_0x13b24(0x1802)]),_0xe747f5['intDeskField'][_0x13b24(0x1e3)](_0x5e1a78['item'])[_0x13b24(0x2945)][_0x13b24(0x146b)](function(_0x4b3d2d){const _0x22592f=_0x13b24;_0x5e1a78['items'][_0x22592f(0xb3d)](_0x4b3d2d),_0x94ae22['success']({'title':_0x3f65c0()[_0x22592f(0x83f)](_0xa6c7bd)+_0x22592f(0x1637),'msg':_0x3f65c0()[_0x22592f(0x83f)](_0xa6c7bd)+'\x20has\x20been\x20created!'}),_0x497513();})['catch'](function(_0x44fb9d){const _0x523b2d=_0x13b24;console[_0x523b2d(0x1980)](_0x44fb9d),_0x5e1a78['errors']=_0x44fb9d[_0x523b2d(0x524)][_0x523b2d(0xcef)]||[{'message':_0x44fb9d['toString'](),'type':_0x523b2d(0x1ec4)}];});}function _0x40e648(){const _0x5bd086=_0xde825f;_0x5e1a78['errors']=[],_0x5e1a78[_0x5bd086(0x165e)]&&(_0x5e1a78[_0x5bd086(0x2711)]['idField']=_0x5e1a78['customField']['id'],_0x5e1a78[_0x5bd086(0x2711)][_0x5bd086(0x25e3)]=_0x5e1a78[_0x5bd086(0x165e)]['name'],_0x5e1a78[_0x5bd086(0x2711)][_0x5bd086(0x165e)]=_0x5e1a78[_0x5bd086(0x165e)][_0x5bd086(0x1802)]),_0xe747f5[_0x5bd086(0x1073)]['update']({'id':_0x5e1a78[_0x5bd086(0x2711)]['id']},_0x5e1a78[_0x5bd086(0x2711)])[_0x5bd086(0x2945)]['then'](function(_0x15fa92){const _0x166d39=_0x5bd086,_0x565fd7=_0x3f65c0()[_0x166d39(0xc84)](_0x5e1a78['items'],{'id':_0x15fa92['id']});_0x565fd7&&_0x3f65c0()[_0x166d39(0x168d)](_0x565fd7,_0x15fa92),_0x94ae22[_0x166d39(0x1c75)]({'title':_0x3f65c0()[_0x166d39(0x83f)](_0xa6c7bd)+'\x20properly\x20saved!','msg':_0x3f65c0()[_0x166d39(0x83f)](_0xa6c7bd)+_0x166d39(0x24db)}),_0x497513();})[_0x5bd086(0x129e)](function(_0x10d9f5){const _0x18662b=_0x5bd086;console[_0x18662b(0x1980)](_0x10d9f5),_0x5e1a78[_0x18662b(0xcef)]=_0x10d9f5['data'][_0x18662b(0xcef)]||[{'message':_0x10d9f5[_0x18662b(0xd5f)](),'type':_0x18662b(0x1b4)}];});}function _0x59a5c2(_0x4f32e4){const _0x10ec2e=_0xde825f;_0x5e1a78[_0x10ec2e(0xcef)]=[];const _0x55e804=_0x2beac9[_0x10ec2e(0x1e8a)]()['title'](_0x10ec2e(0x1d64))[_0x10ec2e(0x80f)](_0x10ec2e(0xe57)+_0xa6c7bd+_0x10ec2e(0xe01))['ariaLabel']('Delete\x20'+_0x3f65c0()[_0x10ec2e(0x83f)](_0xa6c7bd))['ok'](_0x10ec2e(0x25de))['cancel'](_0x10ec2e(0xcf0))[_0x10ec2e(0x1f27)](_0x4f32e4);_0x2beac9[_0x10ec2e(0x2615)](_0x55e804)[_0x10ec2e(0x146b)](function(){const _0x2540e9=_0x10ec2e;_0xe747f5[_0x2540e9(0x1073)][_0x2540e9(0x1fac)]({'id':_0x5e1a78[_0x2540e9(0x2711)]['id']})[_0x2540e9(0x2945)][_0x2540e9(0x146b)](function(){const _0x25aa12=_0x2540e9;_0x3f65c0()[_0x25aa12(0x2640)](_0x5e1a78['items'],{'id':_0x5e1a78[_0x25aa12(0x2711)]['id']}),_0x94ae22[_0x25aa12(0x1c75)]({'title':_0x3f65c0()[_0x25aa12(0x83f)](_0xa6c7bd)+_0x25aa12(0x1e6c),'msg':_0x3f65c0()['capitalize'](_0xa6c7bd)+_0x25aa12(0x23e3)}),_0x497513();})[_0x2540e9(0x129e)](function(_0x510612){const _0x29aa14=_0x2540e9;console[_0x29aa14(0x1980)](_0x510612),_0x5e1a78[_0x29aa14(0xcef)]=_0x510612[_0x29aa14(0x524)][_0x29aa14(0xcef)]||[{'message':_0x510612[_0x29aa14(0xd5f)](),'type':_0x29aa14(0x1cb0)}];});},function(){});}function _0xa038d1(){const _0x2ccde1=_0xde825f;return _0x5e1a78['item'][_0x2ccde1(0x97f)]!==undefined?_0x5e1a78['item'][_0x2ccde1(0x97f)]:_0x2ccde1(0x1040);}function _0x497513(){const _0x55dbf5=_0xde825f;_0x2beac9[_0x55dbf5(0x2458)]();}}const _0x5b9e74=_0xe57f9e;;_0x588a39[_0x313a4d(0x11c2)]=[_0x313a4d(0x1862),'$location',_0x313a4d(0x10e8),'$document',_0x313a4d(0x214b),_0x313a4d(0x2690),_0x313a4d(0x15b9),_0x313a4d(0x247f),_0x313a4d(0x1fe4),_0x313a4d(0xa87),_0x313a4d(0x262b),_0x313a4d(0x1366)];function _0x588a39(_0x2179cf,_0x1b8f61,_0xa57ac6,_0x3f1e49,_0x4beaa2,_0x5b7090,_0x102009,_0x819b04,_0x57b775,_0x3e7d48,_0x58b32e,_0x280c51){const _0x5c1c44=_0x313a4d,_0x4995fd=this;_0x4995fd[_0x5c1c44(0x2321)]=_0x3e7d48['getCurrentUser'](),_0x4995fd[_0x5c1c44(0x2690)]=_0x5b7090,_0x4995fd['setting']=_0x102009,_0x4995fd['passwordPattern']=_0x4995fd[_0x5c1c44(0x15b9)][_0x5c1c44(0x976)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x4995fd[_0x5c1c44(0x1002)]=_0x1b8f61[_0x5c1c44(0x2414)]()+_0x5c1c44(0xb0e)+_0x1b8f61[_0x5c1c44(0x148e)](),_0x4995fd[_0x5c1c44(0x262b)]=_0x58b32e||_0x2179cf['params']['deskAccount']||{},_0x4995fd['userProfileSection']=_0x280c51&&_0x280c51['count']==0x1?_0x280c51[_0x5c1c44(0x19c7)][0x0]:null,_0x4995fd[_0x5c1c44(0x2514)]=_0x3e7d48['parseCrudPermissions'](_0x4995fd[_0x5c1c44(0x1366)]?_0x4995fd[_0x5c1c44(0x1366)][_0x5c1c44(0x2514)]:null),_0x4995fd[_0x5c1c44(0x855)]={},_0x4995fd['selectedTab']=_0x2179cf[_0x5c1c44(0x16a)][_0x5c1c44(0x13a3)]||0x0,_0x4995fd[_0x5c1c44(0x861)]=_0x57b775[_0x5c1c44(0x271e)],_0x4995fd[_0x5c1c44(0x286)]=_0x274aa0,_0x4995fd['saveDeskAccount']=_0x4e0a61;function _0x274aa0(){const _0x1ec5c5=_0x5c1c44;_0x2179cf['go'](_0x1ec5c5(0x1df8),{},{'reload':_0x1ec5c5(0x1df8)});}function _0x4e0a61(){const _0x296351=_0x5c1c44;_0x819b04[_0x296351(0x139)][_0x296351(0x18e1)]({'id':_0x4995fd[_0x296351(0x262b)]['id']},_0x4995fd[_0x296351(0x262b)])[_0x296351(0x2945)][_0x296351(0x146b)](function(){const _0x145eb0=_0x296351;_0x57b775[_0x145eb0(0x1c75)]({'title':_0x145eb0(0x2579),'msg':_0x4995fd[_0x145eb0(0x262b)][_0x145eb0(0x19eb)]?_0x4995fd[_0x145eb0(0x262b)]['name']+_0x145eb0(0x6b0):''});})['catch'](function(_0x3dab01){const _0x10ead7=_0x296351;_0x57b775[_0x10ead7(0x1980)]({'title':_0x3dab01[_0x10ead7(0x107b)]?_0x10ead7(0x262a)+_0x3dab01[_0x10ead7(0x107b)]+_0x10ead7(0x1315)+_0x3dab01[_0x10ead7(0x167f)]:'SYSTEM:GETintDeskAccount','msg':_0x3dab01[_0x10ead7(0x524)]?JSON[_0x10ead7(0x10bb)](_0x3dab01[_0x10ead7(0x524)]):_0x3dab01[_0x10ead7(0xd5f)]()});});}}const _0x262cf3=_0x588a39;;_0x5b057f[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1862),_0x313a4d(0xd08),_0x313a4d(0x10e8),'$q','$translate','toasty',_0x313a4d(0xbcf),_0x313a4d(0xa53),'api','Auth','license',_0x313a4d(0x15b9),'crudPermissions'];function _0x5b057f(_0x383518,_0x4cf012,_0x59d48f,_0x1ee4f3,_0x4dcb41,_0x5ef1d2,_0x25618e,_0x477d41,_0x1de128,_0x5ce21f,_0x49f203,_0x3ecdda,_0x659c95,_0x444666){const _0x45abd7=_0x313a4d,_0x275a8a=this;_0x275a8a[_0x45abd7(0x2321)]=_0x49f203['getCurrentUser'](),_0x275a8a['errors']=[],_0x275a8a['setting']=_0x659c95,_0x275a8a[_0x45abd7(0x2690)]=_0x3ecdda,_0x275a8a[_0x45abd7(0x2514)]=_0x444666,_0x275a8a['hasModulePermissions']={},_0x275a8a['passwordPattern']=_0x275a8a[_0x45abd7(0x15b9)]&&_0x275a8a[_0x45abd7(0x15b9)]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x275a8a[_0x45abd7(0x1189)]=_0x45abd7(0x277),_0x275a8a[_0x45abd7(0xa53)]=angular[_0x45abd7(0x235a)](_0x1de128),_0x275a8a['dynamics365Accounts']=_0x477d41,_0x275a8a[_0x45abd7(0x1a66)]=![];!_0x275a8a[_0x45abd7(0xa53)]&&(_0x275a8a[_0x45abd7(0xa53)]={'serverUrl':_0x59d48f[_0x45abd7(0x2414)]()+'://'+_0x59d48f[_0x45abd7(0x148e)]()+(_0x59d48f[_0x45abd7(0x1553)]()?':'+_0x59d48f[_0x45abd7(0x1553)]():'')},_0x275a8a[_0x45abd7(0x1189)]=_0x45abd7(0x13e8),_0x275a8a[_0x45abd7(0x1a66)]=!![]);_0x275a8a['addNewDynamics365Account']=_0x4f6780,_0x275a8a[_0x45abd7(0x754)]=_0x29133c,_0x275a8a['deleteDynamics365Account']=_0x5098d0,_0x275a8a[_0x45abd7(0xe73)]=_0x34d7a1,_0x275a8a[_0x45abd7(0x13f3)]=_0x1d5412;function _0x4f6780(){const _0x101cf2=_0x45abd7;_0x275a8a['errors']=[],_0x5ce21f[_0x101cf2(0xdb4)][_0x101cf2(0x1e3)](_0x275a8a[_0x101cf2(0xa53)])[_0x101cf2(0x2945)][_0x101cf2(0x146b)](function(_0x2a585e){const _0x599d6a=_0x101cf2;_0x275a8a[_0x599d6a(0xbcf)][_0x599d6a(0xb3d)](_0x2a585e[_0x599d6a(0x2488)]()),_0x25618e[_0x599d6a(0x1c75)]({'title':_0x599d6a(0x12b6),'msg':_0x275a8a[_0x599d6a(0xa53)][_0x599d6a(0x19eb)]?_0x275a8a[_0x599d6a(0xa53)][_0x599d6a(0x19eb)]+_0x599d6a(0x1386):''}),_0x1d5412(_0x2a585e);})[_0x101cf2(0x129e)](function(_0x4dec49){const _0x2fb2ba=_0x101cf2;if(_0x4dec49[_0x2fb2ba(0x524)]&&_0x4dec49[_0x2fb2ba(0x524)][_0x2fb2ba(0xcef)]&&_0x4dec49[_0x2fb2ba(0x524)][_0x2fb2ba(0xcef)][_0x2fb2ba(0x402)]){_0x275a8a[_0x2fb2ba(0xcef)]=_0x4dec49[_0x2fb2ba(0x524)][_0x2fb2ba(0xcef)]||[{'message':_0x4dec49['toString'](),'type':_0x2fb2ba(0xdc7)}];for(let _0x233687=0x0;_0x233687<_0x4dec49[_0x2fb2ba(0x524)][_0x2fb2ba(0xcef)][_0x2fb2ba(0x402)];_0x233687+=0x1){_0x25618e['error']({'title':_0x4dec49[_0x2fb2ba(0x524)][_0x2fb2ba(0xcef)][_0x233687][_0x2fb2ba(0x1142)],'msg':_0x4dec49['data']['errors'][_0x233687]['message']});}}else _0x25618e[_0x2fb2ba(0x1980)]({'title':_0x4dec49['status']?'API:'+_0x4dec49['status']+_0x2fb2ba(0x1315)+_0x4dec49[_0x2fb2ba(0x167f)]:_0x2fb2ba(0xdc7),'msg':_0x4dec49[_0x2fb2ba(0x524)]?JSON[_0x2fb2ba(0x10bb)](_0x4dec49[_0x2fb2ba(0x524)]['message']):_0x4dec49[_0x2fb2ba(0xd5f)]()});});}function _0x29133c(){const _0x19b7fa=_0x45abd7;_0x275a8a[_0x19b7fa(0xcef)]=[],_0x5ce21f[_0x19b7fa(0xdb4)][_0x19b7fa(0x18e1)]({'id':_0x275a8a[_0x19b7fa(0xa53)]['id']},_0x275a8a[_0x19b7fa(0xa53)])[_0x19b7fa(0x2945)]['then'](function(_0x425a7a){const _0xa297fa=_0x19b7fa,_0x1bf11a=_0x3f65c0()['find'](_0x275a8a[_0xa297fa(0xbcf)],{'id':_0x425a7a['id']});_0x1bf11a&&_0x3f65c0()[_0xa297fa(0x168d)](_0x1bf11a,_0x3f65c0()[_0xa297fa(0x40e)](_0x425a7a[_0xa297fa(0x2488)](),_0x3f65c0()['keys'](_0x1bf11a))),_0x25618e[_0xa297fa(0x1c75)]({'title':_0xa297fa(0x802),'msg':_0x275a8a[_0xa297fa(0xa53)][_0xa297fa(0x19eb)]?_0x275a8a['dynamics365Account'][_0xa297fa(0x19eb)]+_0xa297fa(0x24db):''}),_0x1d5412(_0x425a7a);})['catch'](function(_0x434648){const _0x3f9bf5=_0x19b7fa;if(_0x434648[_0x3f9bf5(0x524)]&&_0x434648['data'][_0x3f9bf5(0xcef)]&&_0x434648['data'][_0x3f9bf5(0xcef)][_0x3f9bf5(0x402)]){_0x275a8a[_0x3f9bf5(0xcef)]=_0x434648['data']['errors']||[{'message':_0x434648[_0x3f9bf5(0xd5f)](),'type':_0x3f9bf5(0x1758)}];for(let _0x347fce=0x0;_0x347fce<_0x434648['data']['errors'][_0x3f9bf5(0x402)];_0x347fce++){_0x25618e['error']({'title':_0x434648[_0x3f9bf5(0x524)]['errors'][_0x347fce][_0x3f9bf5(0x1142)],'msg':_0x434648[_0x3f9bf5(0x524)][_0x3f9bf5(0xcef)][_0x347fce][_0x3f9bf5(0x7fd)]});}}else _0x25618e[_0x3f9bf5(0x1980)]({'title':_0x434648[_0x3f9bf5(0x107b)]?'API:'+_0x434648[_0x3f9bf5(0x107b)]+_0x3f9bf5(0x1315)+_0x434648['statusText']:'api.intDynamics365Account.update','msg':_0x434648['data']?JSON['stringify'](_0x434648[_0x3f9bf5(0x524)][_0x3f9bf5(0x7fd)]):_0x434648['toString']()});});}function _0x5098d0(_0x30fdf2){const _0xff0d6b=_0x45abd7;_0x275a8a['errors']=[];const _0x24275a=_0x1ee4f3[_0xff0d6b(0x1e8a)]()[_0xff0d6b(0x1189)](_0xff0d6b(0x1d64))[_0xff0d6b(0x80f)](_0xff0d6b(0xabe))['ariaLabel'](_0xff0d6b(0x1551))['ok'](_0xff0d6b(0x25de))[_0xff0d6b(0x6c3)](_0xff0d6b(0xcf0))[_0xff0d6b(0x1f27)](_0x30fdf2);_0x1ee4f3[_0xff0d6b(0x2615)](_0x24275a)[_0xff0d6b(0x146b)](function(){const _0x6a14d=_0xff0d6b;_0x5ce21f['intDynamics365Account'][_0x6a14d(0x1fac)]({'id':_0x275a8a['dynamics365Account']['id']})['$promise'][_0x6a14d(0x146b)](function(){const _0x3b5cc9=_0x6a14d;_0x3f65c0()['remove'](_0x275a8a[_0x3b5cc9(0xbcf)],{'id':_0x275a8a[_0x3b5cc9(0xa53)]['id']}),_0x25618e[_0x3b5cc9(0x1c75)]({'title':_0x3b5cc9(0x2937),'msg':(_0x275a8a[_0x3b5cc9(0xa53)]['name']||_0x3b5cc9(0xa53))+_0x3b5cc9(0x23e3)}),_0x1d5412(_0x275a8a['dynamics365Account']);})[_0x6a14d(0x129e)](function(_0x19a3b3){const _0x515c1a=_0x6a14d;if(_0x19a3b3[_0x515c1a(0x524)]&&_0x19a3b3[_0x515c1a(0x524)][_0x515c1a(0xcef)]&&_0x19a3b3[_0x515c1a(0x524)]['errors'][_0x515c1a(0x402)]){_0x275a8a[_0x515c1a(0xcef)]=_0x19a3b3[_0x515c1a(0x524)][_0x515c1a(0xcef)]||[{'message':_0x19a3b3[_0x515c1a(0xd5f)](),'type':_0x515c1a(0x1e92)}];for(let _0x533353=0x0;_0x533353<_0x19a3b3[_0x515c1a(0x524)]['errors']['length'];_0x533353++){_0x25618e[_0x515c1a(0x1980)]({'title':_0x19a3b3['data'][_0x515c1a(0xcef)][_0x533353]['type'],'msg':_0x19a3b3['data']['errors'][_0x533353][_0x515c1a(0x7fd)]});}}else _0x25618e[_0x515c1a(0x1980)]({'title':_0x19a3b3[_0x515c1a(0x107b)]?_0x515c1a(0x262a)+_0x19a3b3[_0x515c1a(0x107b)]+_0x515c1a(0x1315)+_0x19a3b3['statusText']:_0x515c1a(0x1e92),'msg':_0x19a3b3[_0x515c1a(0x524)]?JSON[_0x515c1a(0x10bb)](_0x19a3b3[_0x515c1a(0x524)][_0x515c1a(0x7fd)]):_0x19a3b3['message']||_0x19a3b3[_0x515c1a(0xd5f)]()});});},function(){});}function _0x34d7a1(_0x4a0822){return _0x4a0822===null?undefined:new Date(_0x4a0822);}function _0x1d5412(_0x539a4b){const _0x5533ab=_0x45abd7;_0x1ee4f3[_0x5533ab(0x2458)](_0x539a4b);}}const _0x4f4ff2=_0x5b057f;;const _0x2bdd6f=_0x4acfac['p']+_0x313a4d(0x16bc);;_0xbcfdb8['$inject']=[_0x313a4d(0x910),_0x313a4d(0x1aa9),_0x313a4d(0x1862),_0x313a4d(0x15fe),_0x313a4d(0x10e8),_0x313a4d(0x4d8),'$timeout',_0x313a4d(0x214b),'dynamics365Accounts',_0x313a4d(0x26b6),'userProfileSection','api',_0x313a4d(0x216c),_0x313a4d(0x1fe4),_0x313a4d(0xa87),'license',_0x313a4d(0x15b9)];function _0xbcfdb8(_0x60cbba,_0xe04a1b,_0x3ecfe7,_0x371632,_0x2a6d44,_0x5c12c9,_0x390956,_0x4a304b,_0x5893f8,_0x29b41e,_0x519fcf,_0x12c64e,_0x1ba012,_0x5ef0f3,_0x1c9f27,_0x263548,_0x5e4c16){const _0x3804c5=_0x313a4d,_0x313084=this;_0x313084[_0x3804c5(0x2690)]=_0x263548,_0x313084['setting']=_0x5e4c16,_0x313084['currentUser']=_0x1c9f27[_0x3804c5(0xb12)](),_0x313084[_0x3804c5(0xbcf)]=_0x5893f8||{'count':0x0,'rows':[]},_0x313084['userProfile']=_0x29b41e,_0x313084[_0x3804c5(0x1366)]=_0x519fcf&&_0x519fcf[_0x3804c5(0x51c)]==0x1?_0x519fcf['rows'][0x0]:null,_0x313084['crudPermissions']=_0x1c9f27[_0x3804c5(0xe60)](_0x313084['userProfileSection']?_0x313084['userProfileSection'][_0x3804c5(0x2514)]:null),_0x313084['table']=_0x3804c5(0xbcf),_0x313084[_0x3804c5(0x216a)]='',_0x313084[_0x3804c5(0x214f)]=null,_0x313084['selectedDynamics365Accounts']=[],_0x313084[_0x3804c5(0x1a56)]={'fields':'createdAt,updatedAt,id,name,username,password,remoteUri,tenantId,clientId,clientSecret,serverUrl,description','limit':0xa,'page':0x1},_0x313084[_0x3804c5(0x23f9)]=_0xf9c2dc,_0x313084['testtestintegrationaccount']=_0x5c99cf,_0x313084[_0x3804c5(0xf0a)]=_0x2a025a,_0x313084[_0x3804c5(0x1c75)]=_0xf1b98b,_0x313084[_0x3804c5(0x1ea5)]=_0x2d8016,_0x313084[_0x3804c5(0x167b)]=_0x3c356c,_0x313084[_0x3804c5(0x17b8)]=_0x4fd836,_0x313084[_0x3804c5(0x17c5)]=_0x14c281,_0x313084[_0x3804c5(0xcc7)]=_0x4760dd,_0x313084[_0x3804c5(0x106)]=_0x3780ec,_0x313084[_0x3804c5(0x1f13)]=_0x201a2e;function _0xf9c2dc(_0x18892a){const _0x129033=_0x3804c5;_0x3ecfe7['go'](_0x129033(0xdbd),{'id':_0x18892a['id'],'dynamics365Account':_0x18892a,'crudPermissions':_0x313084[_0x129033(0x2514)]});}function _0x5c99cf(_0xcbef51){const _0x38bc79=_0x3804c5;return _0x12c64e[_0x38bc79(0xdb4)][_0x38bc79(0x12ff)]({'id':_0xcbef51['id'],'test':!![]})[_0x38bc79(0x2945)][_0x38bc79(0x146b)](function(){const _0x5a5c75=_0x38bc79;_0x5ef0f3[_0x5a5c75(0x1c75)]({'title':_0x5a5c75(0x14ca),'msg':_0x5a5c75(0x1893)});})[_0x38bc79(0x129e)](function(_0x33e86a){const _0x1f25c1=_0x38bc79;_0x5ef0f3[_0x1f25c1(0x1980)]({'title':_0x1f25c1(0x14ca),'msg':_0x33e86a[_0x1f25c1(0x524)]?_0x33e86a[_0x1f25c1(0x524)][_0x1f25c1(0x7fd)]?_0x33e86a[_0x1f25c1(0x524)][_0x1f25c1(0x7fd)]:JSON[_0x1f25c1(0x10bb)](_0x33e86a[_0x1f25c1(0x524)]):_0x33e86a[_0x1f25c1(0xd5f)]()});});}function _0x2a025a(_0x456106,_0x37a6ef){const _0x20a623=_0x3804c5,_0x38e072=_0x2a6d44[_0x20a623(0x1e8a)]()[_0x20a623(0x1189)](_0x20a623(0xdb2)+_0x3f65c0()[_0x20a623(0x20d1)]('dynamics365Account')+'?')[_0x20a623(0x1cbe)](''+(_0x456106[_0x20a623(0x19eb)]||'dynamics365Account')+_0x20a623(0x252f)+_0x20a623(0xe01))['ariaLabel'](_0x20a623(0x372))[_0x20a623(0x1f27)](_0x37a6ef)['ok']('OK')[_0x20a623(0x6c3)]('CANCEL');_0x2a6d44[_0x20a623(0x2615)](_0x38e072)[_0x20a623(0x146b)](function(){_0x4fd836(_0x456106);},function(){const _0x2a049c=_0x20a623;console[_0x2a049c(0x1a74)]('CANCEL');});}let _0x25d66c=!![],_0x93d6de=0x1;_0x60cbba[_0x3804c5(0x21e8)](_0x3804c5(0x2669),function(_0x4ef717,_0x165577){const _0x5e95e9=_0x3804c5;_0x25d66c?_0x390956(function(){_0x25d66c=![];}):(!_0x165577&&(_0x93d6de=_0x313084[_0x5e95e9(0x1a56)]['page']),_0x4ef717!==_0x165577&&(_0x313084[_0x5e95e9(0x1a56)][_0x5e95e9(0x844)]=0x1),!_0x4ef717&&(_0x313084[_0x5e95e9(0x1a56)][_0x5e95e9(0x844)]=_0x93d6de),_0x313084['getDynamics365Accounts']());});function _0xf1b98b(_0x5d6927){const _0x53b523=_0x3804c5;_0x313084[_0x53b523(0xbcf)]=_0x5d6927||{'count':0x0,'rows':[]};}function _0x2d8016(){const _0x50e4ed=_0x3804c5;_0x313084[_0x50e4ed(0x1a56)][_0x50e4ed(0x145d)]=(_0x313084[_0x50e4ed(0x1a56)][_0x50e4ed(0x844)]-0x1)*_0x313084[_0x50e4ed(0x1a56)][_0x50e4ed(0x221e)],_0x1c9f27[_0x50e4ed(0x23e0)]('admin')?_0x313084['promise']=_0x12c64e[_0x50e4ed(0xdb4)][_0x50e4ed(0x16b4)](_0x313084['query'],_0xf1b98b)[_0x50e4ed(0x2945)]:(_0x313084[_0x50e4ed(0x1a56)]['id']=_0x313084['userProfile']['id'],_0x313084['query'][_0x50e4ed(0x2146)]=_0x50e4ed(0x47d),_0x313084[_0x50e4ed(0xb9c)]=_0x12c64e[_0x50e4ed(0x26b6)][_0x50e4ed(0x158f)](_0x313084[_0x50e4ed(0x1a56)],_0xf1b98b)[_0x50e4ed(0x2945)]);}function _0x3c356c(_0x3d7f23,_0x5eaac0){const _0x11ac05=_0x3804c5;_0x2a6d44[_0x11ac05(0x2615)]({'controller':_0x11ac05(0x1781),'controllerAs':'vm','templateUrl':_0x2bdd6f,'parent':angular[_0x11ac05(0x1853)](_0x5c12c9[_0x11ac05(0x2586)]),'targetEvent':_0x3d7f23,'clickOutsideToClose':!![],'locals':{'dynamics365Account':_0x5eaac0,'dynamics365Accounts':_0x313084[_0x11ac05(0xbcf)][_0x11ac05(0x19c7)],'license':_0x313084[_0x11ac05(0x2690)],'setting':_0x313084[_0x11ac05(0x15b9)],'crudPermissions':_0x313084[_0x11ac05(0x2514)]}});}function _0x4fd836(_0x244bfa){const _0x2f124b=_0x3804c5;_0x12c64e[_0x2f124b(0xdb4)]['delete']({'id':_0x244bfa['id']})['$promise']['then'](function(){const _0x59ad89=_0x2f124b;_0x3f65c0()[_0x59ad89(0x2640)](_0x313084[_0x59ad89(0xbcf)][_0x59ad89(0x19c7)],{'id':_0x244bfa['id']}),_0x313084[_0x59ad89(0xbcf)][_0x59ad89(0x51c)]-=0x1,!_0x313084['dynamics365Accounts'][_0x59ad89(0x19c7)][_0x59ad89(0x402)]&&_0x313084['getDynamics365Accounts'](),_0x5ef0f3[_0x59ad89(0x1c75)]({'title':_0x3f65c0()[_0x59ad89(0x20d1)]('Dynamics365Account')+_0x59ad89(0x201c),'msg':_0x244bfa[_0x59ad89(0x19eb)]?_0x244bfa[_0x59ad89(0x19eb)]+_0x59ad89(0x23e3):''});})['catch'](function(_0x3a6782){const _0x2de276=_0x2f124b;if(_0x3a6782['data']&&_0x3a6782['data']['errors']&&_0x3a6782[_0x2de276(0x524)][_0x2de276(0xcef)][_0x2de276(0x402)]){_0x313084['errors']=_0x3a6782[_0x2de276(0x524)][_0x2de276(0xcef)]||[{'message':_0x3a6782[_0x2de276(0xd5f)](),'type':'SYSTEM:DELETEintDynamics365Account'}];for(let _0x3123af=0x0;_0x3123af<_0x3a6782['data'][_0x2de276(0xcef)][_0x2de276(0x402)];_0x3123af++){_0x5ef0f3[_0x2de276(0x1980)]({'title':_0x3a6782[_0x2de276(0x524)][_0x2de276(0xcef)][_0x3123af][_0x2de276(0x1142)],'msg':_0x3a6782[_0x2de276(0x524)][_0x2de276(0xcef)][_0x3123af][_0x2de276(0x7fd)]});}}else _0x5ef0f3[_0x2de276(0x1980)]({'title':_0x3a6782[_0x2de276(0x107b)]?_0x2de276(0x262a)+_0x3a6782[_0x2de276(0x107b)]+_0x2de276(0x1315)+_0x3a6782[_0x2de276(0x167f)]:'SYSTEM:DELETEintDynamics365Account','msg':_0x3a6782[_0x2de276(0x524)]?JSON[_0x2de276(0x10bb)](_0x3a6782[_0x2de276(0x524)][_0x2de276(0x7fd)]):_0x3a6782[_0x2de276(0x7fd)]||_0x3a6782[_0x2de276(0xd5f)]()});});}function _0x14c281(){const _0x32156f=_0x3804c5,_0x484f23=angular['copy'](_0x313084['selectedDynamics365Accounts']);return _0x313084[_0x32156f(0x1d69)]=[],_0x484f23;}function _0x4760dd(_0x48214f){const _0x56b0e2=_0x3804c5,_0x42d5d8=_0x2a6d44[_0x56b0e2(0x1e8a)]()[_0x56b0e2(0x1189)](_0x56b0e2(0x2353))[_0x56b0e2(0x1cbe)](''+_0x313084[_0x56b0e2(0x1d69)][_0x56b0e2(0x402)]+'\x20selected'+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x56b0e2(0xca7))[_0x56b0e2(0x1f27)](_0x48214f)['ok']('OK')[_0x56b0e2(0x6c3)](_0x56b0e2(0x39a));_0x2a6d44[_0x56b0e2(0x2615)](_0x42d5d8)['then'](function(){const _0x140bb3=_0x56b0e2;_0x313084['selectedDynamics365Accounts'][_0x140bb3(0x1df5)](function(_0x53ee8c){_0x4fd836(_0x53ee8c);}),_0x313084[_0x140bb3(0x1d69)]=[];});}function _0x3780ec(){_0x313084['selectedDynamics365Accounts']=[];}function _0x201a2e(){const _0x2c38d6=_0x3804c5;_0x313084[_0x2c38d6(0x1d69)]=_0x313084[_0x2c38d6(0xbcf)][_0x2c38d6(0x19c7)];}}const _0x1555db=_0xbcfdb8;;const _0x355319=_0x4acfac['p']+_0x313a4d(0x184e);;const _0x2867ae=_0x4acfac['p']+'src/js/modules/main/apps/integrations/views/dynamics365Accounts/edit/item/dialog.html/dialog.html';;_0x48f5f9['$inject']=['$mdDialog','$document',_0x313a4d(0x247f),_0x313a4d(0x1fe4),_0x313a4d(0xa87)];function _0x48f5f9(_0x598bec,_0xf3ca26,_0x28711d,_0x5dbed3,_0x5a5708){const _0x51ac2a=_0x313a4d,_0x23c561=this;_0x23c561[_0x51ac2a(0x2321)]=_0x5a5708[_0x51ac2a(0xb12)](),_0x23c561[_0x51ac2a(0xa53)]={},_0x23c561[_0x51ac2a(0x1af8)]={},_0x23c561[_0x51ac2a(0x1723)]=[],_0x23c561[_0x51ac2a(0x26c5)]=-0x1,_0x23c561[_0x51ac2a(0x2514)],_0x23c561[_0x51ac2a(0x5aa)]=_0x18e65b,_0x23c561[_0x51ac2a(0x2899)]=_0xae8f5d,_0x23c561[_0x51ac2a(0x514)]=_0xb6c939,_0x23c561[_0x51ac2a(0x670)]=_0x442bed;function _0x18e65b(_0x3e6e67,_0x24ffc4){const _0x3eb608=_0x51ac2a;_0x23c561['dynamics365Account']=_0x3e6e67,_0x23c561[_0x3eb608(0x2514)]=typeof _0x24ffc4!==_0x3eb608(0x2274)?_0x24ffc4:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x28711d[_0x3eb608(0xdb4)][_0x3eb608(0xeb)]({'id':_0x23c561[_0x3eb608(0xa53)]['id'],'sort':_0x3eb608(0x12f2)})[_0x3eb608(0x2945)][_0x3eb608(0x146b)](function(_0x1ea23a){const _0x5ad260=_0x3eb608;return _0x23c561[_0x5ad260(0x1723)]=_0x1ea23a[_0x5ad260(0x19c7)]?_0x1ea23a[_0x5ad260(0x19c7)]:[],_0x23c561[_0x5ad260(0x1723)][_0x5ad260(0x402)]&&_0x23c561[_0x5ad260(0x2899)](0x0),_0x28711d[_0x5ad260(0x212)][_0x5ad260(0x16b4)]({'nolimit':!![],'sort':'name'})[_0x5ad260(0x2945)];})[_0x3eb608(0x146b)](function(_0x43aeb9){const _0x49568d=_0x3eb608;_0x23c561['variables']=_0x43aeb9['rows']?_0x43aeb9[_0x49568d(0x19c7)]:[],_0x23c561[_0x49568d(0x80c)]=_0x3f65c0()[_0x49568d(0x194)](_0x23c561['variables'],'id');})[_0x3eb608(0x129e)](function(_0x419a1a){const _0x179f15=_0x3eb608;_0x5dbed3[_0x179f15(0x1980)]({'title':_0x419a1a[_0x179f15(0x107b)]?_0x179f15(0x262a)+_0x419a1a['status']+'\x20-\x20'+_0x419a1a[_0x179f15(0x167f)]:_0x179f15(0x9e7),'msg':_0x419a1a[_0x179f15(0x524)]?JSON[_0x179f15(0x10bb)](_0x419a1a['data']):_0x419a1a['toString']()});});}function _0xae8f5d(_0x34890b){const _0x5b7cad=_0x51ac2a;_0x23c561[_0x5b7cad(0x1af8)]=_0x23c561[_0x5b7cad(0x1723)][_0x34890b],_0x23c561[_0x5b7cad(0x26c5)]=_0x34890b,_0x28711d[_0x5b7cad(0x1c8b)][_0x5b7cad(0x18ee)]({'id':_0x23c561['dynamics365Configuration']['id']})[_0x5b7cad(0x2945)]['then'](function(_0x124de2){const _0x855f27=_0x5b7cad;return _0x23c561[_0x855f27(0x3c8)]=_0x124de2['rows']?_0x124de2[_0x855f27(0x19c7)]:[],_0x28711d[_0x855f27(0x1c8b)][_0x855f27(0xc2a)]({'id':_0x23c561[_0x855f27(0x1af8)]['id']})[_0x855f27(0x2945)];})['then'](function(_0x4d2dd4){const _0x18b3c2=_0x5b7cad;return _0x23c561['descriptions']=_0x4d2dd4[_0x18b3c2(0x19c7)]?_0x4d2dd4[_0x18b3c2(0x19c7)]:[],_0x28711d['intDynamics365Configuration'][_0x18b3c2(0x12ff)]({'id':_0x23c561['dynamics365Configuration']['id']})[_0x18b3c2(0x2945)];})[_0x5b7cad(0x146b)](function(_0x50dbac){const _0x4c2288=_0x5b7cad;_0x23c561['fields']=_0x50dbac['rows']?_0x50dbac[_0x4c2288(0x19c7)]:[];})[_0x5b7cad(0x129e)](function(_0x4a0fbe){const _0xea7894=_0x5b7cad;_0x5dbed3[_0xea7894(0x1980)]({'title':_0x4a0fbe[_0xea7894(0x107b)]?_0xea7894(0x262a)+_0x4a0fbe['status']+_0xea7894(0x1315)+_0x4a0fbe['statusText']:_0xea7894(0x6ca),'msg':_0x4a0fbe['data']?JSON['stringify'](_0x4a0fbe['data']):_0x4a0fbe[_0xea7894(0xd5f)]()});});}function _0xb6c939(_0x197a13,_0xb63f1){const _0x379ed4=_0x51ac2a;_0x598bec[_0x379ed4(0x2615)]({'controller':_0x379ed4(0x10f9),'controllerAs':'vm','templateUrl':_0x355319,'parent':angular['element'](_0xf3ca26[_0x379ed4(0x2586)]),'targetEvent':_0x197a13,'clickOutsideToClose':!![],'locals':{'dynamics365Configuration':_0xb63f1,'configurations':_0x23c561[_0x379ed4(0x1723)],'license':null,'setting':null,'crudPermissions':_0x23c561[_0x379ed4(0x2514)]}})['finally'](function(){const _0xce35=_0x379ed4;_0x23c561[_0xce35(0x2899)](0x0);});}function _0x442bed(_0x52a0f8,_0x5d9dcd){const _0x3efd61=_0x51ac2a,_0x215160=_0x598bec[_0x3efd61(0x1e8a)]()[_0x3efd61(0x1189)](_0x3efd61(0x242f))[_0x3efd61(0x1cbe)](_0x3efd61(0x16d3)+(_0x5d9dcd[_0x3efd61(0x19eb)]||'dynamics365Configuration')+_0x3efd61(0x252f)+_0x3efd61(0xe01))[_0x3efd61(0x4bd)](_0x3efd61(0x1144))[_0x3efd61(0x1f27)](_0x52a0f8)['ok']('OK')[_0x3efd61(0x6c3)](_0x3efd61(0x39a));_0x598bec['show'](_0x215160)[_0x3efd61(0x146b)](function(){const _0x56945f=_0x3efd61;_0x28711d[_0x56945f(0x1c8b)][_0x56945f(0x1fac)]({'id':_0x5d9dcd['id']})[_0x56945f(0x2945)][_0x56945f(0x146b)](function(){const _0x51158c=_0x56945f;_0x3f65c0()[_0x51158c(0x2640)](_0x23c561[_0x51158c(0x1723)],{'id':_0x5d9dcd['id']}),_0x5dbed3['success']({'title':_0x51158c(0x2865),'msg':_0x5d9dcd[_0x51158c(0x19eb)]?_0x5d9dcd[_0x51158c(0x19eb)]+'\x20has\x20been\x20deleted!':''});})[_0x56945f(0x129e)](function(_0x4078f5){const _0x50ab8c=_0x56945f;_0x5dbed3[_0x50ab8c(0x1980)]({'title':_0x4078f5[_0x50ab8c(0x107b)]?'API:'+_0x4078f5[_0x50ab8c(0x107b)]+_0x50ab8c(0x1315)+_0x4078f5[_0x50ab8c(0x167f)]:_0x50ab8c(0xff1),'msg':_0x4078f5[_0x50ab8c(0x524)]?JSON[_0x50ab8c(0x10bb)](_0x4078f5[_0x50ab8c(0x524)]):_0x4078f5[_0x50ab8c(0xd5f)]()});})[_0x56945f(0x1ec6)](function(){const _0xf1deb7=_0x56945f;_0x23c561[_0xf1deb7(0x2899)](0x0);});},function(){const _0x3984d1=_0x3efd61;console[_0x3984d1(0x1a74)]('CANCEL');});}_0x23c561[_0x51ac2a(0x15a6)]=[],_0x23c561[_0x51ac2a(0x2665)]=_0x3b2ea7,_0x23c561[_0x51ac2a(0x10d5)]=_0xa235b2,_0x23c561['deleteSelectedSubjects']=_0x379999;function _0x3b2ea7(_0x576a4f,_0x41f5a2){const _0x5670a9=_0x51ac2a;_0x598bec[_0x5670a9(0x2615)]({'controller':_0x5670a9(0x1ad6),'controllerAs':'vm','templateUrl':_0x2867ae,'parent':angular[_0x5670a9(0x1853)](_0xf3ca26[_0x5670a9(0x2586)]),'targetEvent':_0x576a4f,'clickOutsideToClose':!![],'locals':{'type':_0x5670a9(0xe32),'item':_0x41f5a2,'items':_0x23c561[_0x5670a9(0x3c8)],'configuration':_0x23c561['dynamics365Configuration'],'account':_0x23c561['dynamics365Account'],'license':null,'setting':null,'crudPermissions':_0x23c561[_0x5670a9(0x2514)]}});}function _0x41da02(_0x125df4){const _0xf21f51=_0x51ac2a;_0x28711d[_0xf21f51(0x409)][_0xf21f51(0x1fac)]({'id':_0x125df4['id']})[_0xf21f51(0x2945)][_0xf21f51(0x146b)](function(){const _0x429f72=_0xf21f51;_0x3f65c0()[_0x429f72(0x2640)](_0x23c561['subjects'],{'id':_0x125df4['id']}),_0x5dbed3[_0x429f72(0x1c75)]({'title':_0x429f72(0x28e6),'msg':_0x429f72(0x761)});})['catch'](function(_0xc9fe82){const _0x1866b0=_0xf21f51;_0x5dbed3[_0x1866b0(0x1980)]({'title':_0xc9fe82[_0x1866b0(0x107b)]?_0x1866b0(0x262a)+_0xc9fe82[_0x1866b0(0x107b)]+'\x20-\x20'+_0xc9fe82[_0x1866b0(0x167f)]:_0x1866b0(0xf6e),'msg':_0xc9fe82[_0x1866b0(0x524)]?JSON[_0x1866b0(0x10bb)](_0xc9fe82['data']):_0xc9fe82[_0x1866b0(0xd5f)]()});});}function _0xa235b2(_0xdc6e04,_0x425a2e){const _0x369aee=_0x51ac2a,_0x496093=_0x598bec[_0x369aee(0x1e8a)]()[_0x369aee(0x1189)](_0x369aee(0x317))['htmlContent'](_0x369aee(0xf7f)+_0x369aee(0xe01))['ariaLabel']('delete\x20subject')[_0x369aee(0x1f27)](_0xdc6e04)['ok']('OK')[_0x369aee(0x6c3)]('CANCEL');_0x598bec[_0x369aee(0x2615)](_0x496093)[_0x369aee(0x146b)](function(){_0x41da02(_0x425a2e);},function(){const _0x1cd0d0=_0x369aee;console[_0x1cd0d0(0x1a74)](_0x1cd0d0(0x39a));});}function _0x379999(_0x249940){const _0x4d0530=_0x51ac2a,_0x34567f=_0x598bec['confirm']()[_0x4d0530(0x1189)](_0x4d0530(0x2e6))['htmlContent'](_0x4d0530(0x16d3)+_0x23c561[_0x4d0530(0x15a6)][_0x4d0530(0x402)]+_0x4d0530(0x2452)+_0x4d0530(0xe01))[_0x4d0530(0x4bd)](_0x4d0530(0x1209))[_0x4d0530(0x1f27)](_0x249940)['ok']('OK')['cancel'](_0x4d0530(0x39a));_0x598bec['show'](_0x34567f)['then'](function(){const _0x113ee=_0x4d0530;_0x23c561[_0x113ee(0x15a6)][_0x113ee(0x1df5)](function(_0x756699){_0x41da02(_0x756699);}),_0x23c561['selectedSubjects']=[];});}_0x23c561['selectedDescriptions']=[],_0x23c561[_0x51ac2a(0x18da)]=_0x1505d3,_0x23c561[_0x51ac2a(0xb29)]=_0x2581d5,_0x23c561[_0x51ac2a(0x2241)]=_0x4e8f30;function _0x1505d3(_0x29193a,_0xeed017){const _0x473c38=_0x51ac2a;_0x598bec[_0x473c38(0x2615)]({'controller':'CreateOrEditDynamics365AccountItemDialogController','controllerAs':'vm','templateUrl':_0x2867ae,'parent':angular[_0x473c38(0x1853)](_0xf3ca26[_0x473c38(0x2586)]),'targetEvent':_0x29193a,'clickOutsideToClose':!![],'locals':{'type':_0x473c38(0xb17),'item':_0xeed017,'items':_0x23c561[_0x473c38(0x2358)],'configuration':_0x23c561[_0x473c38(0x1af8)],'account':_0x23c561['dynamics365Account'],'license':null,'setting':null,'crudPermissions':_0x23c561[_0x473c38(0x2514)]}});}function _0x3d92f6(_0x3dc0ff){const _0x23830a=_0x51ac2a;_0x28711d['intDynamics365Field'][_0x23830a(0x1fac)]({'id':_0x3dc0ff['id']})[_0x23830a(0x2945)][_0x23830a(0x146b)](function(){const _0x3de995=_0x23830a;_0x3f65c0()['remove'](_0x23c561[_0x3de995(0x2358)],{'id':_0x3dc0ff['id']}),_0x5dbed3[_0x3de995(0x1c75)]({'title':_0x3de995(0xaf8),'msg':_0x3de995(0x8e3)});})[_0x23830a(0x129e)](function(_0x22e2a1){const _0x409d84=_0x23830a;_0x5dbed3[_0x409d84(0x1980)]({'title':_0x22e2a1[_0x409d84(0x107b)]?'API:'+_0x22e2a1[_0x409d84(0x107b)]+_0x409d84(0x1315)+_0x22e2a1[_0x409d84(0x167f)]:_0x409d84(0xf6e),'msg':_0x22e2a1[_0x409d84(0x524)]?JSON['stringify'](_0x22e2a1[_0x409d84(0x524)]):_0x22e2a1['toString']()});});}function _0x2581d5(_0x19c0c7,_0x469ab3){const _0x5e89d9=_0x51ac2a,_0x23cabe=_0x598bec[_0x5e89d9(0x1e8a)]()[_0x5e89d9(0x1189)](_0x5e89d9(0x1e9))['htmlContent'](_0x5e89d9(0x2014)+_0x5e89d9(0xe01))['ariaLabel'](_0x5e89d9(0x1c5c))['targetEvent'](_0x19c0c7)['ok']('OK')[_0x5e89d9(0x6c3)](_0x5e89d9(0x39a));_0x598bec[_0x5e89d9(0x2615)](_0x23cabe)[_0x5e89d9(0x146b)](function(){_0x3d92f6(_0x469ab3);},function(){const _0x465ff4=_0x5e89d9;console['log'](_0x465ff4(0x39a));});}function _0x4e8f30(_0x421863){const _0x155684=_0x51ac2a,_0xd72b2d=_0x598bec[_0x155684(0x1e8a)]()[_0x155684(0x1189)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20descriptions?')['htmlContent'](''+_0x23c561[_0x155684(0x126)][_0x155684(0x402)]+_0x155684(0x2452)+_0x155684(0xe01))['ariaLabel'](_0x155684(0x1be7))[_0x155684(0x1f27)](_0x421863)['ok']('OK')[_0x155684(0x6c3)]('CANCEL');_0x598bec['show'](_0xd72b2d)[_0x155684(0x146b)](function(){const _0x578ea4=_0x155684;_0x23c561[_0x578ea4(0x126)][_0x578ea4(0x1df5)](function(_0x20152a){_0x3d92f6(_0x20152a);}),_0x23c561[_0x578ea4(0x126)]=[];});}_0x23c561[_0x51ac2a(0x2605)]=[],_0x23c561['createOrEditField']=_0x465025,_0x23c561[_0x51ac2a(0x2180)]=_0x5ea742,_0x23c561[_0x51ac2a(0x816)]=_0x2da273;function _0x465025(_0x7a2719,_0x42705f){const _0x1affdf=_0x51ac2a;_0x598bec[_0x1affdf(0x2615)]({'controller':_0x1affdf(0x1ad6),'controllerAs':'vm','templateUrl':_0x2867ae,'parent':angular[_0x1affdf(0x1853)](_0xf3ca26['body']),'targetEvent':_0x7a2719,'clickOutsideToClose':!![],'locals':{'type':'field','item':_0x42705f,'items':_0x23c561[_0x1affdf(0x2867)],'configuration':_0x23c561[_0x1affdf(0x1af8)],'account':_0x23c561[_0x1affdf(0xa53)],'license':null,'setting':null,'crudPermissions':_0x23c561[_0x1affdf(0x2514)]}});}function _0x53ba2f(_0x429975){const _0x26ba67=_0x51ac2a;_0x28711d['intDynamics365Field'][_0x26ba67(0x1fac)]({'id':_0x429975['id']})['$promise'][_0x26ba67(0x146b)](function(){const _0x9637c0=_0x26ba67;_0x3f65c0()['remove'](_0x23c561[_0x9637c0(0x2867)],{'id':_0x429975['id']}),_0x5dbed3[_0x9637c0(0x1c75)]({'title':_0x9637c0(0x24ce),'msg':'Field\x20has\x20been\x20deleted!'});})[_0x26ba67(0x129e)](function(_0x4ae5dc){const _0x2a58d9=_0x26ba67;_0x5dbed3[_0x2a58d9(0x1980)]({'title':_0x4ae5dc[_0x2a58d9(0x107b)]?_0x2a58d9(0x262a)+_0x4ae5dc['status']+'\x20-\x20'+_0x4ae5dc['statusText']:_0x2a58d9(0xf6e),'msg':_0x4ae5dc['data']?JSON[_0x2a58d9(0x10bb)](_0x4ae5dc[_0x2a58d9(0x524)]):_0x4ae5dc[_0x2a58d9(0xd5f)]()});});}function _0x5ea742(_0x25bbec,_0x2b31dc){const _0x1147ec=_0x51ac2a,_0xf052c2=_0x598bec['confirm']()[_0x1147ec(0x1189)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20field?')[_0x1147ec(0x1cbe)](_0x1147ec(0x2216)+_0x1147ec(0xe01))[_0x1147ec(0x4bd)](_0x1147ec(0x2487))['targetEvent'](_0x25bbec)['ok']('OK')[_0x1147ec(0x6c3)](_0x1147ec(0x39a));_0x598bec[_0x1147ec(0x2615)](_0xf052c2)[_0x1147ec(0x146b)](function(){_0x53ba2f(_0x2b31dc);},function(){const _0x2638bb=_0x1147ec;console[_0x2638bb(0x1a74)](_0x2638bb(0x39a));});}function _0x2da273(_0x2bc816){const _0x5de58d=_0x51ac2a,_0x13831c=_0x598bec[_0x5de58d(0x1e8a)]()[_0x5de58d(0x1189)](_0x5de58d(0xe75))[_0x5de58d(0x1cbe)](_0x5de58d(0x16d3)+_0x23c561[_0x5de58d(0x2605)][_0x5de58d(0x402)]+_0x5de58d(0x2452)+_0x5de58d(0xe01))['ariaLabel']('delete\x20fields')[_0x5de58d(0x1f27)](_0x2bc816)['ok']('OK')['cancel'](_0x5de58d(0x39a));_0x598bec[_0x5de58d(0x2615)](_0x13831c)[_0x5de58d(0x146b)](function(){const _0x1ed7c6=_0x5de58d;_0x23c561[_0x1ed7c6(0x2605)][_0x1ed7c6(0x1df5)](function(_0x38f3a7){_0x53ba2f(_0x38f3a7);}),_0x23c561['selectedFields']=[];});}}const _0x306677=_0x48f5f9;;_0xca0d55[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1862),'$location',_0x313a4d(0x10e8),'$q',_0x313a4d(0x214b),'toasty',_0x313a4d(0x1723),_0x313a4d(0x1af8),'api',_0x313a4d(0xa87),_0x313a4d(0x2690),_0x313a4d(0x15b9),_0x313a4d(0x2514)];function _0xca0d55(_0x5044b2,_0x2b3eb2,_0x2f7eb2,_0x2c6fcb,_0x12efcb,_0x5355ff,_0x3125a4,_0x563caf,_0x382e98,_0x21a6d1,_0x25af66,_0x1395d1,_0x32032c,_0x5e4910){const _0x3c2fd3=_0x313a4d,_0x14bf40=this;_0x14bf40[_0x3c2fd3(0x2321)]=_0x25af66[_0x3c2fd3(0xb12)](),_0x14bf40[_0x3c2fd3(0xcef)]=[],_0x14bf40[_0x3c2fd3(0x15b9)]=_0x32032c,_0x14bf40[_0x3c2fd3(0x2690)]=_0x1395d1,_0x14bf40['crudPermissions']=_0x5e4910,_0x14bf40[_0x3c2fd3(0x855)]={},_0x14bf40['passwordPattern']=_0x14bf40[_0x3c2fd3(0x15b9)]&&_0x14bf40['setting'][_0x3c2fd3(0x976)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x14bf40[_0x3c2fd3(0x1189)]=_0x3c2fd3(0x167d),_0x14bf40[_0x3c2fd3(0x1af8)]=angular['copy'](_0x382e98),_0x14bf40['configurations']=_0x563caf,_0x14bf40[_0x3c2fd3(0x23f0)]=![];!_0x14bf40['dynamics365Configuration']&&(_0x14bf40['dynamics365Configuration']={'channel':_0x3c2fd3(0xe6),'type':_0x3c2fd3(0x7b0),'ticketType':_0x3c2fd3(0x5d4)},_0x14bf40[_0x3c2fd3(0x1189)]=_0x3c2fd3(0x1945),_0x14bf40[_0x3c2fd3(0x23f0)]=!![]);_0x14bf40[_0x3c2fd3(0x1588)]=_0x34a74d,_0x14bf40[_0x3c2fd3(0x196a)]=_0x3408a3,_0x14bf40[_0x3c2fd3(0x670)]=_0x2aa7a9,_0x14bf40[_0x3c2fd3(0xe73)]=_0x5af020,_0x14bf40[_0x3c2fd3(0x13f3)]=_0x42907a;function _0x34a74d(){const _0x56457b=_0x3c2fd3;_0x14bf40[_0x56457b(0xcef)]=[],_0x21a6d1['intDynamics365Account'][_0x56457b(0xa17)]({'id':_0x2b3eb2[_0x56457b(0x16a)]['id']},_0x14bf40['dynamics365Configuration'])[_0x56457b(0x2945)][_0x56457b(0x146b)](function(_0x295135){const _0x5d728e=_0x56457b;_0x14bf40[_0x5d728e(0x1723)]['unshift'](_0x295135[_0x5d728e(0x2488)]()),_0x3125a4['success']({'title':'Dynamics365Configuration\x20properly\x20created','msg':_0x14bf40['dynamics365Configuration'][_0x5d728e(0x19eb)]?_0x14bf40['dynamics365Configuration'][_0x5d728e(0x19eb)]+_0x5d728e(0x1386):''}),_0x42907a(_0x295135);})[_0x56457b(0x129e)](function(_0x35089a){const _0x19e3bb=_0x56457b;if(_0x35089a[_0x19e3bb(0x524)]&&_0x35089a[_0x19e3bb(0x524)][_0x19e3bb(0xcef)]&&_0x35089a['data'][_0x19e3bb(0xcef)][_0x19e3bb(0x402)]){_0x14bf40[_0x19e3bb(0xcef)]=_0x35089a['data']['errors']||[{'message':_0x35089a['toString'](),'type':_0x19e3bb(0x14d7)}];for(let _0x2c14d6=0x0;_0x2c14d6<_0x35089a[_0x19e3bb(0x524)][_0x19e3bb(0xcef)][_0x19e3bb(0x402)];_0x2c14d6+=0x1){_0x3125a4['error']({'title':_0x35089a[_0x19e3bb(0x524)][_0x19e3bb(0xcef)][_0x2c14d6]['type'],'msg':_0x35089a[_0x19e3bb(0x524)][_0x19e3bb(0xcef)][_0x2c14d6][_0x19e3bb(0x7fd)]});}}else _0x3125a4['error']({'title':_0x35089a[_0x19e3bb(0x107b)]?_0x19e3bb(0x262a)+_0x35089a[_0x19e3bb(0x107b)]+_0x19e3bb(0x1315)+_0x35089a['statusText']:_0x19e3bb(0x14d7),'msg':_0x35089a[_0x19e3bb(0x524)]?JSON[_0x19e3bb(0x10bb)](_0x35089a[_0x19e3bb(0x524)][_0x19e3bb(0x7fd)]):_0x35089a['toString']()});});}function _0x3408a3(){const _0x2d9702=_0x3c2fd3;_0x14bf40['errors']=[],_0x21a6d1[_0x2d9702(0x1c8b)][_0x2d9702(0x18e1)]({'id':_0x14bf40[_0x2d9702(0x1af8)]['id']},_0x14bf40[_0x2d9702(0x1af8)])[_0x2d9702(0x2945)][_0x2d9702(0x146b)](function(_0x1ca8a5){const _0x6c8d3f=_0x2d9702,_0x893d41=_0x3f65c0()[_0x6c8d3f(0xc84)](_0x14bf40['configurations'],{'id':_0x1ca8a5['id']});_0x893d41&&_0x3f65c0()[_0x6c8d3f(0x168d)](_0x893d41,_0x3f65c0()['pick'](_0x1ca8a5[_0x6c8d3f(0x2488)](),_0x3f65c0()[_0x6c8d3f(0x627)](_0x893d41))),_0x3125a4['success']({'title':'Dynamics365Configuration\x20properly\x20saved!','msg':_0x14bf40['dynamics365Configuration'][_0x6c8d3f(0x19eb)]?_0x14bf40['dynamics365Configuration'][_0x6c8d3f(0x19eb)]+_0x6c8d3f(0x24db):''}),_0x42907a(_0x1ca8a5);})['catch'](function(_0x7e8837){const _0x1c4ec0=_0x2d9702;if(_0x7e8837[_0x1c4ec0(0x524)]&&_0x7e8837[_0x1c4ec0(0x524)][_0x1c4ec0(0xcef)]&&_0x7e8837[_0x1c4ec0(0x524)][_0x1c4ec0(0xcef)]['length']){_0x14bf40[_0x1c4ec0(0xcef)]=_0x7e8837[_0x1c4ec0(0x524)][_0x1c4ec0(0xcef)]||[{'message':_0x7e8837['toString'](),'type':_0x1c4ec0(0x143e)}];for(let _0x26d9c4=0x0;_0x26d9c4<_0x7e8837[_0x1c4ec0(0x524)][_0x1c4ec0(0xcef)][_0x1c4ec0(0x402)];_0x26d9c4++){_0x3125a4['error']({'title':_0x7e8837[_0x1c4ec0(0x524)]['errors'][_0x26d9c4]['type'],'msg':_0x7e8837['data']['errors'][_0x26d9c4][_0x1c4ec0(0x7fd)]});}}else _0x3125a4[_0x1c4ec0(0x1980)]({'title':_0x7e8837[_0x1c4ec0(0x107b)]?_0x1c4ec0(0x262a)+_0x7e8837[_0x1c4ec0(0x107b)]+_0x1c4ec0(0x1315)+_0x7e8837[_0x1c4ec0(0x167f)]:_0x1c4ec0(0x143e),'msg':_0x7e8837[_0x1c4ec0(0x524)]?JSON[_0x1c4ec0(0x10bb)](_0x7e8837[_0x1c4ec0(0x524)][_0x1c4ec0(0x7fd)]):_0x7e8837[_0x1c4ec0(0xd5f)]()});});}function _0x2aa7a9(_0x35b04b){const _0x16f1bf=_0x3c2fd3;_0x14bf40['errors']=[];const _0x47d07b=_0x2c6fcb[_0x16f1bf(0x1e8a)]()[_0x16f1bf(0x1189)](_0x16f1bf(0x1d64))[_0x16f1bf(0x80f)](_0x16f1bf(0x193d))['ariaLabel']('Delete\x20Dynamics365Configuration')['ok'](_0x16f1bf(0x25de))[_0x16f1bf(0x6c3)](_0x16f1bf(0xcf0))[_0x16f1bf(0x1f27)](_0x35b04b);_0x2c6fcb[_0x16f1bf(0x2615)](_0x47d07b)[_0x16f1bf(0x146b)](function(){const _0x3cbf60=_0x16f1bf;_0x21a6d1[_0x3cbf60(0x1c8b)][_0x3cbf60(0x1fac)]({'id':_0x14bf40[_0x3cbf60(0x1af8)]['id']})['$promise']['then'](function(){const _0x2cfc4e=_0x3cbf60;_0x3f65c0()[_0x2cfc4e(0x2640)](_0x14bf40[_0x2cfc4e(0x1723)],{'id':_0x14bf40[_0x2cfc4e(0x1af8)]['id']}),_0x3125a4[_0x2cfc4e(0x1c75)]({'title':_0x2cfc4e(0x2103),'msg':(_0x14bf40[_0x2cfc4e(0x1af8)]['name']||'dynamics365Configuration')+_0x2cfc4e(0x23e3)}),_0x42907a(_0x14bf40[_0x2cfc4e(0x1af8)]);})[_0x3cbf60(0x129e)](function(_0x30aa05){const _0x369c85=_0x3cbf60;if(_0x30aa05[_0x369c85(0x524)]&&_0x30aa05['data'][_0x369c85(0xcef)]&&_0x30aa05[_0x369c85(0x524)]['errors'][_0x369c85(0x402)]){_0x14bf40['errors']=_0x30aa05['data'][_0x369c85(0xcef)]||[{'message':_0x30aa05['toString'](),'type':_0x369c85(0x1dac)}];for(let _0x2ce5d6=0x0;_0x2ce5d6<_0x30aa05[_0x369c85(0x524)][_0x369c85(0xcef)][_0x369c85(0x402)];_0x2ce5d6++){_0x3125a4[_0x369c85(0x1980)]({'title':_0x30aa05[_0x369c85(0x524)][_0x369c85(0xcef)][_0x2ce5d6][_0x369c85(0x1142)],'msg':_0x30aa05[_0x369c85(0x524)][_0x369c85(0xcef)][_0x2ce5d6][_0x369c85(0x7fd)]});}}else _0x3125a4['error']({'title':_0x30aa05[_0x369c85(0x107b)]?_0x369c85(0x262a)+_0x30aa05[_0x369c85(0x107b)]+_0x369c85(0x1315)+_0x30aa05['statusText']:_0x369c85(0x1dac),'msg':_0x30aa05['data']?JSON['stringify'](_0x30aa05[_0x369c85(0x524)]['message']):_0x30aa05[_0x369c85(0x7fd)]||_0x30aa05[_0x369c85(0xd5f)]()});});},function(){});}function _0x5af020(_0x49eb3d){return _0x49eb3d===null?undefined:new Date(_0x49eb3d);}function _0x42907a(_0x369221){const _0x3b8ea3=_0x3c2fd3;_0x2c6fcb[_0x3b8ea3(0x2458)](_0x369221);}}const _0xdeff11=_0xca0d55;;_0x2e8467[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1862),_0x313a4d(0xd08),_0x313a4d(0x10e8),_0x313a4d(0x1fe4),'configuration',_0x313a4d(0x1fd6),_0x313a4d(0x2711),_0x313a4d(0x1f8e),'type',_0x313a4d(0x247f),_0x313a4d(0xa87),_0x313a4d(0x2514)];function _0x2e8467(_0x355fe6,_0x135a6f,_0x129bf3,_0x2bde47,_0x5bd25d,_0x23d409,_0x3f1323,_0x530a6c,_0xab7ea4,_0x435616,_0x4d362d,_0x3712df,_0x2f5615){const _0x3ca102=_0x313a4d,_0x19e992=this;_0x19e992[_0x3ca102(0x2321)]=_0x3712df[_0x3ca102(0xb12)](),_0x19e992[_0x3ca102(0xcef)]=[],_0x19e992[_0x3ca102(0x1189)]='INTEGRATIONS.EDIT_'+_0x3f65c0()[_0x3ca102(0xd39)](_0x435616),_0x19e992[_0x3ca102(0x2711)]=angular[_0x3ca102(0x235a)](_0x530a6c),_0x19e992['items']=_0x3f1323,_0x19e992[_0x3ca102(0x1142)]=_0x435616,_0x19e992[_0x3ca102(0x2514)]=_0x2f5615,_0x19e992[_0x3ca102(0x23cd)]=![];!_0x19e992[_0x3ca102(0x2711)]&&(_0x19e992[_0x3ca102(0x2711)]={'type':_0x3ca102(0x1f23)},_0x19e992['item'][_0x3f65c0()['capitalize'](_0x435616)+'Id']=_0x23d409['id'],_0x19e992[_0x3ca102(0x1189)]='INTEGRATIONS.NEW_'+_0x3f65c0()[_0x3ca102(0xd39)](_0x435616),_0x19e992[_0x3ca102(0x23cd)]=!![]);_0x19e992[_0x3ca102(0x1e65)]=_0x5a95d0,_0x19e992[_0x3ca102(0x150e)]=_0x769da7,_0x19e992[_0x3ca102(0xbaf)]=_0xa604d0,_0x19e992[_0x3ca102(0x21b1)]=_0x19cc52,_0x19e992[_0x3ca102(0x13f3)]=_0x4877c7,_0x4d362d[_0x3ca102(0x212)][_0x3ca102(0x16b4)]({'nolimit':!![]})['$promise'][_0x3ca102(0x146b)](function(_0x5b26eb){const _0x206386=_0x3ca102;return _0x19e992[_0x206386(0x85b)]=_0x5b26eb[_0x206386(0x19c7)]?_0x5b26eb['rows']:[],_0x4d362d[_0x206386(0x1cb3)][_0x206386(0x1ea2)]()[_0x206386(0x2945)];})[_0x3ca102(0x146b)](function(_0xfff9ed){const _0x34652d=_0x3ca102;return _0x19e992[_0x34652d(0x1c8a)]=_0x3f65c0()[_0x34652d(0xa62)](_0x3f65c0()['keys'](_0xfff9ed),['$promise',_0x34652d(0x26f2),_0x34652d(0xc68),_0x34652d(0x144f),_0x34652d(0xc3b)]),_0x19e992['voiceAgentReportColumns'][_0x34652d(0x1f47)](_0x34652d(0x643)),_0x4d362d[_0x34652d(0x160)][_0x34652d(0x1ea2)]()[_0x34652d(0x2945)];})[_0x3ca102(0x146b)](function(_0x4180ca){const _0x8a654d=_0x3ca102;_0x19e992['voiceDialReportColumns']=_0x3f65c0()[_0x8a654d(0xa62)](_0x3f65c0()[_0x8a654d(0x627)](_0x4180ca),[_0x8a654d(0x2945),'$resolved',_0x8a654d(0xc68),_0x8a654d(0x144f),'sourceid']),_0x19e992[_0x8a654d(0x164b)][_0x8a654d(0x1f47)](_0x8a654d(0x643));})[_0x3ca102(0x129e)](function(_0xadd7e9){const _0x162603=_0x3ca102;_0x5bd25d[_0x162603(0x1980)]({'title':_0xadd7e9['status']?_0x162603(0x262a)+_0xadd7e9[_0x162603(0x107b)]+'\x20-\x20'+_0xadd7e9[_0x162603(0x167f)]:_0x162603(0x502),'msg':_0xadd7e9['data']?JSON[_0x162603(0x10bb)](_0xadd7e9[_0x162603(0x524)]):_0xadd7e9[_0x162603(0xd5f)]()});}),_0x4d362d[_0x3ca102(0xdb4)][_0x3ca102(0x12ff)]({'id':_0xab7ea4['id'],'ticketType':_0x23d409[_0x3ca102(0x21be)]?_0x23d409[_0x3ca102(0x21be)]:undefined})[_0x3ca102(0x2945)]['then'](function(_0x192158){const _0x17b385=_0x3ca102;_0x19e992[_0x17b385(0x822)]=!![],_0x19e992[_0x17b385(0x2867)]=_0x192158[_0x17b385(0x19c7)]?_0x192158[_0x17b385(0x19c7)]:[],_0x19e992['item']['idField']&&(_0x19e992[_0x17b385(0x165e)]=_0x3f65c0()[_0x17b385(0xc84)](_0x19e992[_0x17b385(0x2867)],{'id':_0x19e992[_0x17b385(0x2711)][_0x17b385(0x2912)]}));})[_0x3ca102(0x129e)](function(_0x31f574){const _0xf8f032=_0x3ca102;_0x19e992[_0xf8f032(0x822)]=![],console[_0xf8f032(0x1980)](_0x31f574);});function _0x5a95d0(){const _0x59f0b9=_0x3ca102;_0x19e992[_0x59f0b9(0xcef)]=[],_0x19e992[_0x59f0b9(0x165e)]&&(_0x19e992['item'][_0x59f0b9(0x2912)]=_0x19e992['customField']['id'],_0x19e992['item']['nameField']=_0x19e992[_0x59f0b9(0x165e)][_0x59f0b9(0x19eb)],_0x19e992[_0x59f0b9(0x2711)]['customField']=_0x19e992[_0x59f0b9(0x165e)][_0x59f0b9(0x1802)]),_0x4d362d['intDynamics365Field'][_0x59f0b9(0x1e3)](_0x19e992[_0x59f0b9(0x2711)])[_0x59f0b9(0x2945)]['then'](function(_0x19929e){const _0x4a8756=_0x59f0b9;_0x19e992[_0x4a8756(0x1fd6)][_0x4a8756(0xb3d)](_0x19929e),_0x5bd25d[_0x4a8756(0x1c75)]({'title':_0x3f65c0()[_0x4a8756(0x83f)](_0x435616)+_0x4a8756(0x1637),'msg':_0x3f65c0()['capitalize'](_0x435616)+_0x4a8756(0x1386)}),_0x4877c7();})[_0x59f0b9(0x129e)](function(_0x21f53d){const _0x2296c9=_0x59f0b9;console[_0x2296c9(0x1980)](_0x21f53d),_0x19e992[_0x2296c9(0xcef)]=_0x21f53d[_0x2296c9(0x524)][_0x2296c9(0xcef)]||[{'message':_0x21f53d[_0x2296c9(0xd5f)](),'type':'api.item.save'}];});}function _0x769da7(){const _0x4353ef=_0x3ca102;_0x19e992['errors']=[],_0x19e992[_0x4353ef(0x165e)]&&(_0x19e992[_0x4353ef(0x2711)][_0x4353ef(0x2912)]=_0x19e992[_0x4353ef(0x165e)]['id'],_0x19e992[_0x4353ef(0x2711)][_0x4353ef(0x25e3)]=_0x19e992['customField'][_0x4353ef(0x19eb)],_0x19e992[_0x4353ef(0x2711)]['customField']=_0x19e992[_0x4353ef(0x165e)][_0x4353ef(0x1802)]),_0x4d362d['intDynamics365Field'][_0x4353ef(0x18e1)]({'id':_0x19e992['item']['id']},_0x19e992[_0x4353ef(0x2711)])[_0x4353ef(0x2945)][_0x4353ef(0x146b)](function(_0xc4de7e){const _0x41a681=_0x4353ef,_0x48b31d=_0x3f65c0()[_0x41a681(0xc84)](_0x19e992[_0x41a681(0x1fd6)],{'id':_0xc4de7e['id']});_0x48b31d&&_0x3f65c0()[_0x41a681(0x168d)](_0x48b31d,_0xc4de7e),_0x5bd25d['success']({'title':_0x3f65c0()[_0x41a681(0x83f)](_0x435616)+_0x41a681(0xffe),'msg':_0x3f65c0()[_0x41a681(0x83f)](_0x435616)+_0x41a681(0x24db)}),_0x4877c7();})['catch'](function(_0x2cd982){const _0x15c62a=_0x4353ef;console[_0x15c62a(0x1980)](_0x2cd982),_0x19e992[_0x15c62a(0xcef)]=_0x2cd982['data'][_0x15c62a(0xcef)]||[{'message':_0x2cd982['toString'](),'type':_0x15c62a(0x1b4)}];});}function _0xa604d0(_0x2a5e84){const _0x589817=_0x3ca102;_0x19e992[_0x589817(0xcef)]=[];const _0x854daa=_0x2bde47['confirm']()[_0x589817(0x1189)](_0x589817(0x1d64))[_0x589817(0x80f)](_0x589817(0xe57)+_0x435616+_0x589817(0xe01))[_0x589817(0x4bd)](_0x589817(0xb22)+_0x3f65c0()[_0x589817(0x83f)](_0x435616))['ok'](_0x589817(0x25de))[_0x589817(0x6c3)](_0x589817(0xcf0))[_0x589817(0x1f27)](_0x2a5e84);_0x2bde47['show'](_0x854daa)[_0x589817(0x146b)](function(){const _0x629377=_0x589817;_0x4d362d[_0x629377(0x409)][_0x629377(0x1fac)]({'id':_0x19e992['item']['id']})['$promise']['then'](function(){const _0x443565=_0x629377;_0x3f65c0()[_0x443565(0x2640)](_0x19e992[_0x443565(0x1fd6)],{'id':_0x19e992[_0x443565(0x2711)]['id']}),_0x5bd25d[_0x443565(0x1c75)]({'title':_0x3f65c0()['capitalize'](_0x435616)+_0x443565(0x1e6c),'msg':_0x3f65c0()[_0x443565(0x83f)](_0x435616)+_0x443565(0x23e3)}),_0x4877c7();})['catch'](function(_0x38cbb2){const _0x2fd92b=_0x629377;console[_0x2fd92b(0x1980)](_0x38cbb2),_0x19e992[_0x2fd92b(0xcef)]=_0x38cbb2[_0x2fd92b(0x524)]['errors']||[{'message':_0x38cbb2['toString'](),'type':'api.item.delete'}];});},function(){});}function _0x19cc52(){const _0x338995=_0x3ca102;return _0x19e992[_0x338995(0x2711)][_0x338995(0x97f)]!==undefined?_0x19e992[_0x338995(0x2711)][_0x338995(0x97f)]:'Please\x20select\x20a\x20variable';}function _0x4877c7(){const _0x135805=_0x3ca102;_0x2bde47[_0x135805(0x2458)]();}}const _0x2f7bfb=_0x2e8467;;_0x56a781[_0x313a4d(0x11c2)]=[_0x313a4d(0x1862),_0x313a4d(0xd08),_0x313a4d(0x10e8),_0x313a4d(0x4d8),_0x313a4d(0x214b),_0x313a4d(0x2690),_0x313a4d(0x15b9),_0x313a4d(0x247f),_0x313a4d(0x1fe4),_0x313a4d(0xa87),'dynamics365Account',_0x313a4d(0x1366)];function _0x56a781(_0x430698,_0x382a04,_0x4c6407,_0x35ca54,_0xa3e4f0,_0x12d6fd,_0xda422f,_0xada43a,_0x1a92ea,_0x3daac3,_0x574929,_0x2e15a5){const _0x2df00e=_0x313a4d,_0x50a9af=this;_0x50a9af[_0x2df00e(0x2321)]=_0x3daac3['getCurrentUser'](),_0x50a9af['license']=_0x12d6fd,_0x50a9af[_0x2df00e(0x15b9)]=_0xda422f,_0x50a9af[_0x2df00e(0x2251)]=_0x50a9af['setting'][_0x2df00e(0x976)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x50a9af[_0x2df00e(0x1002)]=_0x382a04[_0x2df00e(0x2414)]()+_0x2df00e(0xb0e)+_0x382a04[_0x2df00e(0x148e)](),_0x50a9af['dynamics365Account']=_0x574929||_0x430698[_0x2df00e(0x16a)][_0x2df00e(0xa53)]||{},_0x50a9af[_0x2df00e(0x1366)]=_0x2e15a5&&_0x2e15a5[_0x2df00e(0x51c)]==0x1?_0x2e15a5[_0x2df00e(0x19c7)][0x0]:null,_0x50a9af['crudPermissions']=_0x3daac3['parseCrudPermissions'](_0x50a9af[_0x2df00e(0x1366)]?_0x50a9af[_0x2df00e(0x1366)]['crudPermissions']:null),_0x50a9af[_0x2df00e(0x855)]={},_0x50a9af['selectedTab']=_0x430698['params'][_0x2df00e(0x13a3)]||0x0,_0x50a9af[_0x2df00e(0x861)]=_0x1a92ea[_0x2df00e(0x271e)],_0x50a9af[_0x2df00e(0xdea)]=_0x43b4fa,_0x50a9af[_0x2df00e(0x754)]=_0x4c023f;function _0x43b4fa(){const _0x22b66b=_0x2df00e;_0x430698['go'](_0x22b66b(0x1881),{},{'reload':_0x22b66b(0x1881)});}function _0x4c023f(){const _0xd26bf2=_0x2df00e;_0xada43a['intDynamics365Account'][_0xd26bf2(0x18e1)]({'id':_0x50a9af['dynamics365Account']['id']},_0x50a9af[_0xd26bf2(0xa53)])[_0xd26bf2(0x2945)]['then'](function(){const _0x3fccbc=_0xd26bf2;_0x1a92ea[_0x3fccbc(0x1c75)]({'title':'Dynamics365Account\x20updated!','msg':_0x50a9af[_0x3fccbc(0xa53)][_0x3fccbc(0x19eb)]?_0x50a9af['dynamics365Account'][_0x3fccbc(0x19eb)]+_0x3fccbc(0x6b0):''});})['catch'](function(_0x548833){const _0xc93fdd=_0xd26bf2;_0x1a92ea[_0xc93fdd(0x1980)]({'title':_0x548833[_0xc93fdd(0x107b)]?_0xc93fdd(0x262a)+_0x548833['status']+_0xc93fdd(0x1315)+_0x548833[_0xc93fdd(0x167f)]:_0xc93fdd(0x2793),'msg':_0x548833['data']?JSON[_0xc93fdd(0x10bb)](_0x548833[_0xc93fdd(0x524)]):_0x548833[_0xc93fdd(0xd5f)]()});});}}const _0x340ece=_0x56a781;;_0x52eaaf[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),'$state',_0x313a4d(0xd08),'$mdDialog','$q',_0x313a4d(0x214b),_0x313a4d(0x1fe4),_0x313a4d(0x314),_0x313a4d(0x16d1),_0x313a4d(0x247f),_0x313a4d(0xa87),'license',_0x313a4d(0x15b9),_0x313a4d(0x2514)];function _0x52eaaf(_0x44a492,_0x5f25df,_0x423142,_0x395ff3,_0x3a08c6,_0x135fbe,_0x23d159,_0x47c187,_0x2fdc98,_0x4e36db,_0x3e6cf2,_0x28507f,_0x4744a0,_0x1bfb17){const _0x2e9dc4=_0x313a4d,_0x52080=this;_0x52080[_0x2e9dc4(0x2321)]=_0x3e6cf2[_0x2e9dc4(0xb12)](),_0x52080['errors']=[],_0x52080[_0x2e9dc4(0x15b9)]=_0x4744a0,_0x52080[_0x2e9dc4(0x2690)]=_0x28507f,_0x52080['crudPermissions']=_0x1bfb17,_0x52080['hasModulePermissions']={},_0x52080[_0x2e9dc4(0x2251)]=_0x52080[_0x2e9dc4(0x15b9)]&&_0x52080['setting']['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x52080[_0x2e9dc4(0x1189)]=_0x2e9dc4(0x136a),_0x52080[_0x2e9dc4(0x16d1)]=angular[_0x2e9dc4(0x235a)](_0x2fdc98),_0x52080[_0x2e9dc4(0x314)]=_0x47c187,_0x52080[_0x2e9dc4(0x16af)]=![];!_0x52080[_0x2e9dc4(0x16d1)]&&(_0x52080[_0x2e9dc4(0x16d1)]={'serverUrl':_0x423142[_0x2e9dc4(0x2414)]()+_0x2e9dc4(0xb0e)+_0x423142[_0x2e9dc4(0x148e)]()+(_0x423142[_0x2e9dc4(0x1553)]()?':'+_0x423142[_0x2e9dc4(0x1553)]():'')},_0x52080[_0x2e9dc4(0x1189)]=_0x2e9dc4(0x18c7),_0x52080[_0x2e9dc4(0x16af)]=!![]);_0x52080['addNewFreshdeskAccount']=_0x1d97f9,_0x52080[_0x2e9dc4(0x22d0)]=_0x14d9d9,_0x52080[_0x2e9dc4(0xb59)]=_0xb1cbc4,_0x52080[_0x2e9dc4(0xe73)]=_0x684c54,_0x52080[_0x2e9dc4(0x13f3)]=_0x3c3c47;function _0x1d97f9(){const _0x138a31=_0x2e9dc4;_0x52080[_0x138a31(0xcef)]=[],_0x4e36db[_0x138a31(0x21b2)]['save'](_0x52080['freshdeskAccount'])[_0x138a31(0x2945)][_0x138a31(0x146b)](function(_0xfdc331){const _0x4c775f=_0x138a31;_0x52080[_0x4c775f(0x314)][_0x4c775f(0xb3d)](_0xfdc331[_0x4c775f(0x2488)]()),_0x23d159[_0x4c775f(0x1c75)]({'title':_0x4c775f(0xb72),'msg':_0x52080[_0x4c775f(0x16d1)][_0x4c775f(0x19eb)]?_0x52080['freshdeskAccount']['name']+_0x4c775f(0x1386):''}),_0x3c3c47(_0xfdc331);})[_0x138a31(0x129e)](function(_0x59bf5e){const _0x17064f=_0x138a31;if(_0x59bf5e[_0x17064f(0x524)]&&_0x59bf5e[_0x17064f(0x524)][_0x17064f(0xcef)]&&_0x59bf5e[_0x17064f(0x524)][_0x17064f(0xcef)][_0x17064f(0x402)]){_0x52080[_0x17064f(0xcef)]=_0x59bf5e['data'][_0x17064f(0xcef)]||[{'message':_0x59bf5e[_0x17064f(0xd5f)](),'type':'api.intFreshdeskAccount.save'}];for(let _0x3c2d74=0x0;_0x3c2d74<_0x59bf5e['data'][_0x17064f(0xcef)][_0x17064f(0x402)];_0x3c2d74+=0x1){_0x23d159[_0x17064f(0x1980)]({'title':_0x59bf5e[_0x17064f(0x524)][_0x17064f(0xcef)][_0x3c2d74][_0x17064f(0x1142)],'msg':_0x59bf5e[_0x17064f(0x524)]['errors'][_0x3c2d74][_0x17064f(0x7fd)]});}}else _0x23d159['error']({'title':_0x59bf5e[_0x17064f(0x107b)]?'API:'+_0x59bf5e['status']+_0x17064f(0x1315)+_0x59bf5e[_0x17064f(0x167f)]:_0x17064f(0x16dd),'msg':_0x59bf5e[_0x17064f(0x524)]?JSON['stringify'](_0x59bf5e['data']['message']):_0x59bf5e[_0x17064f(0xd5f)]()});});}function _0x14d9d9(){const _0x1f94a4=_0x2e9dc4;_0x52080[_0x1f94a4(0xcef)]=[],_0x4e36db[_0x1f94a4(0x21b2)][_0x1f94a4(0x18e1)]({'id':_0x52080[_0x1f94a4(0x16d1)]['id']},_0x52080[_0x1f94a4(0x16d1)])['$promise']['then'](function(_0xaf70c5){const _0x3df1ca=_0x1f94a4,_0x39467a=_0x3f65c0()[_0x3df1ca(0xc84)](_0x52080[_0x3df1ca(0x314)],{'id':_0xaf70c5['id']});_0x39467a&&_0x3f65c0()[_0x3df1ca(0x168d)](_0x39467a,_0x3f65c0()[_0x3df1ca(0x40e)](_0xaf70c5[_0x3df1ca(0x2488)](),_0x3f65c0()['keys'](_0x39467a))),_0x23d159['success']({'title':_0x3df1ca(0x9b4),'msg':_0x52080['freshdeskAccount']['name']?_0x52080[_0x3df1ca(0x16d1)][_0x3df1ca(0x19eb)]+_0x3df1ca(0x24db):''}),_0x3c3c47(_0xaf70c5);})[_0x1f94a4(0x129e)](function(_0x205987){const _0x6abd6e=_0x1f94a4;if(_0x205987[_0x6abd6e(0x524)]&&_0x205987[_0x6abd6e(0x524)]['errors']&&_0x205987['data']['errors'][_0x6abd6e(0x402)]){_0x52080[_0x6abd6e(0xcef)]=_0x205987[_0x6abd6e(0x524)][_0x6abd6e(0xcef)]||[{'message':_0x205987[_0x6abd6e(0xd5f)](),'type':_0x6abd6e(0x1560)}];for(let _0x879122=0x0;_0x879122<_0x205987[_0x6abd6e(0x524)][_0x6abd6e(0xcef)]['length'];_0x879122++){_0x23d159[_0x6abd6e(0x1980)]({'title':_0x205987[_0x6abd6e(0x524)][_0x6abd6e(0xcef)][_0x879122][_0x6abd6e(0x1142)],'msg':_0x205987['data'][_0x6abd6e(0xcef)][_0x879122][_0x6abd6e(0x7fd)]});}}else _0x23d159[_0x6abd6e(0x1980)]({'title':_0x205987[_0x6abd6e(0x107b)]?_0x6abd6e(0x262a)+_0x205987[_0x6abd6e(0x107b)]+_0x6abd6e(0x1315)+_0x205987[_0x6abd6e(0x167f)]:'api.intFreshdeskAccount.update','msg':_0x205987[_0x6abd6e(0x524)]?JSON[_0x6abd6e(0x10bb)](_0x205987[_0x6abd6e(0x524)][_0x6abd6e(0x7fd)]):_0x205987['toString']()});});}function _0xb1cbc4(_0x218ccf){const _0x5f2907=_0x2e9dc4;_0x52080[_0x5f2907(0xcef)]=[];const _0xa8fb5b=_0x395ff3[_0x5f2907(0x1e8a)]()[_0x5f2907(0x1189)]('Are\x20you\x20sure?')['content']('The\x20freshdeskAccount\x20will\x20be\x20deleted.')['ariaLabel']('Delete\x20FreshdeskAccount')['ok'](_0x5f2907(0x25de))[_0x5f2907(0x6c3)]('Cancel')[_0x5f2907(0x1f27)](_0x218ccf);_0x395ff3[_0x5f2907(0x2615)](_0xa8fb5b)['then'](function(){const _0x29ebe2=_0x5f2907;_0x4e36db[_0x29ebe2(0x21b2)][_0x29ebe2(0x1fac)]({'id':_0x52080['freshdeskAccount']['id']})[_0x29ebe2(0x2945)][_0x29ebe2(0x146b)](function(){const _0x16c8de=_0x29ebe2;_0x3f65c0()[_0x16c8de(0x2640)](_0x52080[_0x16c8de(0x314)],{'id':_0x52080[_0x16c8de(0x16d1)]['id']}),_0x23d159[_0x16c8de(0x1c75)]({'title':_0x16c8de(0xfef),'msg':(_0x52080['freshdeskAccount'][_0x16c8de(0x19eb)]||_0x16c8de(0x16d1))+_0x16c8de(0x23e3)}),_0x3c3c47(_0x52080['freshdeskAccount']);})[_0x29ebe2(0x129e)](function(_0x283afa){const _0x2b50cd=_0x29ebe2;if(_0x283afa['data']&&_0x283afa['data'][_0x2b50cd(0xcef)]&&_0x283afa['data']['errors'][_0x2b50cd(0x402)]){_0x52080[_0x2b50cd(0xcef)]=_0x283afa[_0x2b50cd(0x524)]['errors']||[{'message':_0x283afa[_0x2b50cd(0xd5f)](),'type':'api.intFreshdeskAccount.delete'}];for(let _0x72d745=0x0;_0x72d745<_0x283afa[_0x2b50cd(0x524)][_0x2b50cd(0xcef)][_0x2b50cd(0x402)];_0x72d745++){_0x23d159['error']({'title':_0x283afa['data'][_0x2b50cd(0xcef)][_0x72d745]['type'],'msg':_0x283afa['data'][_0x2b50cd(0xcef)][_0x72d745][_0x2b50cd(0x7fd)]});}}else _0x23d159[_0x2b50cd(0x1980)]({'title':_0x283afa['status']?_0x2b50cd(0x262a)+_0x283afa[_0x2b50cd(0x107b)]+_0x2b50cd(0x1315)+_0x283afa[_0x2b50cd(0x167f)]:'api.intFreshdeskAccount.delete','msg':_0x283afa[_0x2b50cd(0x524)]?JSON[_0x2b50cd(0x10bb)](_0x283afa['data'][_0x2b50cd(0x7fd)]):_0x283afa['message']||_0x283afa[_0x2b50cd(0xd5f)]()});});},function(){});}function _0x684c54(_0x44c57b){return _0x44c57b===null?undefined:new Date(_0x44c57b);}function _0x3c3c47(_0x5ab77a){const _0x53b52d=_0x2e9dc4;_0x395ff3[_0x53b52d(0x2458)](_0x5ab77a);}}const _0x2ce68c=_0x52eaaf;;const _0x2b489c=_0x4acfac['p']+'src/js/modules/main/apps/integrations/views/freshdeskAccounts/edit/configurations/dialog.html/dialog.html';;const _0x5a9633=_0x4acfac['p']+_0x313a4d(0x4f4);;_0xca9130[_0x313a4d(0x11c2)]=[_0x313a4d(0x10e8),_0x313a4d(0x4d8),_0x313a4d(0x247f),'toasty',_0x313a4d(0xa87)];function _0xca9130(_0x28e3a8,_0x2c8180,_0x545d27,_0x5223cc,_0x4f560e){const _0x39b027=_0x313a4d,_0x2c6ccb=this;_0x2c6ccb[_0x39b027(0x2321)]=_0x4f560e[_0x39b027(0xb12)](),_0x2c6ccb['freshdeskAccount']={},_0x2c6ccb[_0x39b027(0x24e9)]={},_0x2c6ccb[_0x39b027(0x1723)]=[],_0x2c6ccb['selectedFreshdeskConfiguration']=-0x1,_0x2c6ccb[_0x39b027(0x2514)],_0x2c6ccb['init']=_0x5748b7,_0x2c6ccb[_0x39b027(0x1514)]=_0x2da596,_0x2c6ccb[_0x39b027(0x1700)]=_0x40eb11,_0x2c6ccb[_0x39b027(0x1233)]=_0x4e374e,_0x2c6ccb[_0x39b027(0x2323)]=[],_0x2c6ccb['selectTagsChanged']=_0x35c528,_0x545d27[_0x39b027(0xa80)][_0x39b027(0x16b4)]({'nolimit':!![],'sort':_0x39b027(0x19eb)})[_0x39b027(0x2945)][_0x39b027(0x146b)](function(_0x2e48e8){const _0x55c7e1=_0x39b027;_0x2c6ccb[_0x55c7e1(0x1b86)]=_0x2e48e8[_0x55c7e1(0x19c7)]?_0x2e48e8[_0x55c7e1(0x19c7)]:[];})['catch'](function(_0x2c971e){const _0x3561e9=_0x39b027;_0x5223cc[_0x3561e9(0x1980)]({'title':_0x2c971e[_0x3561e9(0x107b)]?_0x3561e9(0x262a)+_0x2c971e[_0x3561e9(0x107b)]+_0x3561e9(0x1315)+_0x2c971e[_0x3561e9(0x167f)]:'SYSTEM:GETTAGS','msg':_0x2c971e[_0x3561e9(0x524)]?JSON[_0x3561e9(0x10bb)](_0x2c971e[_0x3561e9(0x524)]):_0x2c971e['toString']()});});function _0x35c528(){const _0x39d86d=_0x39b027;_0x545d27[_0x39d86d(0x261e)][_0x39d86d(0x13eb)]({'id':_0x2c6ccb[_0x39d86d(0x24e9)]['id'],'ids':_0x2c6ccb['selectedTags']})[_0x39d86d(0x2945)]['then'](function(){const _0x25fad5=_0x39d86d;_0x5223cc['success']({'title':_0x25fad5(0x20f8),'msg':_0x25fad5(0x23fb)});})['catch'](function(_0x2a7fdc){const _0x3009a9=_0x39d86d;_0x5223cc[_0x3009a9(0x1980)]({'title':_0x2a7fdc[_0x3009a9(0x107b)]?_0x3009a9(0x262a)+_0x2a7fdc[_0x3009a9(0x107b)]+_0x3009a9(0x1315)+_0x2a7fdc['statusText']:'SYSTEM:ADDTAGS','msg':_0x2a7fdc[_0x3009a9(0x524)]?JSON['stringify'](_0x2a7fdc[_0x3009a9(0x524)]):_0x2a7fdc['toString']()});});}function _0x5748b7(_0x11eca9,_0x4457bb){const _0x106bf8=_0x39b027;_0x2c6ccb[_0x106bf8(0x16d1)]=_0x11eca9,_0x2c6ccb[_0x106bf8(0x2514)]=typeof _0x4457bb!=='undefined'?_0x4457bb:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x545d27[_0x106bf8(0x21b2)][_0x106bf8(0xeb)]({'id':_0x2c6ccb[_0x106bf8(0x16d1)]['id'],'sort':_0x106bf8(0x12f2)})[_0x106bf8(0x2945)][_0x106bf8(0x146b)](function(_0x4d4f95){const _0x2482ab=_0x106bf8;return _0x2c6ccb[_0x2482ab(0x1723)]=_0x4d4f95[_0x2482ab(0x19c7)]?_0x4d4f95['rows']:[],_0x2c6ccb['configurations'][_0x2482ab(0x402)]&&_0x2c6ccb['getFreshdeskConfiguration'](0x0),_0x545d27['variable'][_0x2482ab(0x16b4)]({'nolimit':!![],'sort':'name'})[_0x2482ab(0x2945)];})['then'](function(_0x2285dd){const _0x201ce9=_0x106bf8;_0x2c6ccb[_0x201ce9(0x85b)]=_0x2285dd[_0x201ce9(0x19c7)]?_0x2285dd[_0x201ce9(0x19c7)]:[],_0x2c6ccb[_0x201ce9(0x80c)]=_0x3f65c0()[_0x201ce9(0x194)](_0x2c6ccb[_0x201ce9(0x85b)],'id');})['catch'](function(_0x334418){const _0x5d93c5=_0x106bf8;_0x5223cc[_0x5d93c5(0x1980)]({'title':_0x334418[_0x5d93c5(0x107b)]?_0x5d93c5(0x262a)+_0x334418['status']+_0x5d93c5(0x1315)+_0x334418[_0x5d93c5(0x167f)]:_0x5d93c5(0x9e7),'msg':_0x334418[_0x5d93c5(0x524)]?JSON['stringify'](_0x334418['data']):_0x334418[_0x5d93c5(0xd5f)]()});});}function _0x2da596(_0x244a0f){const _0xfc1b20=_0x39b027;_0x2c6ccb[_0xfc1b20(0x24e9)]=_0x2c6ccb[_0xfc1b20(0x1723)][_0x244a0f],_0x2c6ccb[_0xfc1b20(0x5c7)]=_0x244a0f,_0x545d27['intFreshdeskConfiguration'][_0xfc1b20(0x18ee)]({'id':_0x2c6ccb[_0xfc1b20(0x24e9)]['id']})[_0xfc1b20(0x2945)][_0xfc1b20(0x146b)](function(_0xe12e11){const _0x9c7d77=_0xfc1b20;return _0x2c6ccb[_0x9c7d77(0x3c8)]=_0xe12e11['rows']?_0xe12e11[_0x9c7d77(0x19c7)]:[],_0x545d27[_0x9c7d77(0x261e)][_0x9c7d77(0xc2a)]({'id':_0x2c6ccb[_0x9c7d77(0x24e9)]['id']})['$promise'];})[_0xfc1b20(0x146b)](function(_0x3565f6){const _0x3f410d=_0xfc1b20;return _0x2c6ccb[_0x3f410d(0x2358)]=_0x3565f6[_0x3f410d(0x19c7)]?_0x3565f6[_0x3f410d(0x19c7)]:[],_0x545d27[_0x3f410d(0x261e)]['getFields']({'id':_0x2c6ccb[_0x3f410d(0x24e9)]['id']})['$promise'];})['then'](function(_0x2ffbfa){const _0xed021c=_0xfc1b20;_0x2c6ccb[_0xed021c(0x2867)]=_0x2ffbfa[_0xed021c(0x19c7)]?_0x2ffbfa[_0xed021c(0x19c7)]:[];})[_0xfc1b20(0x129e)](function(_0x35dc46){const _0x2424e6=_0xfc1b20;_0x5223cc[_0x2424e6(0x1980)]({'title':_0x35dc46[_0x2424e6(0x107b)]?_0x2424e6(0x262a)+_0x35dc46[_0x2424e6(0x107b)]+_0x2424e6(0x1315)+_0x35dc46['statusText']:_0x2424e6(0x6ca),'msg':_0x35dc46[_0x2424e6(0x524)]?JSON['stringify'](_0x35dc46['data']):_0x35dc46[_0x2424e6(0xd5f)]()});}),_0x545d27['intFreshdeskConfiguration'][_0xfc1b20(0x16ee)]({'id':_0x2c6ccb[_0xfc1b20(0x24e9)]['id']})[_0xfc1b20(0x2945)][_0xfc1b20(0x146b)](function(_0x976d6c){const _0x1587aa=_0xfc1b20;_0x2c6ccb['selectedTags']=_0x976d6c[_0x1587aa(0x19c7)]?_0x3f65c0()[_0x1587aa(0x205)](_0x976d6c[_0x1587aa(0x19c7)],'id'):[];})[_0xfc1b20(0x129e)](function(_0x157161){const _0x3ce409=_0xfc1b20;_0x5223cc[_0x3ce409(0x1980)]({'title':_0x157161[_0x3ce409(0x107b)]?'API:'+_0x157161[_0x3ce409(0x107b)]+_0x3ce409(0x1315)+_0x157161[_0x3ce409(0x167f)]:'SYSTEM:GETTAGS','msg':_0x157161['data']?JSON[_0x3ce409(0x10bb)](_0x157161['data']):_0x157161[_0x3ce409(0xd5f)]()});});}function _0x40eb11(_0x50cafe,_0x1e11fc){const _0x45eb7b=_0x39b027;_0x28e3a8[_0x45eb7b(0x2615)]({'controller':_0x45eb7b(0xd42),'controllerAs':'vm','templateUrl':_0x2b489c,'parent':angular[_0x45eb7b(0x1853)](_0x2c8180[_0x45eb7b(0x2586)]),'targetEvent':_0x50cafe,'clickOutsideToClose':!![],'locals':{'freshdeskConfiguration':_0x1e11fc,'configurations':_0x2c6ccb[_0x45eb7b(0x1723)],'license':null,'setting':null,'crudPermissions':_0x2c6ccb['crudPermissions']}})[_0x45eb7b(0x1ec6)](function(){const _0x37ad33=_0x45eb7b;_0x2c6ccb[_0x37ad33(0x1514)](0x0);});}function _0x4e374e(_0x449edd,_0x21ab6d){const _0x3900d6=_0x39b027,_0x5d99cd=_0x28e3a8[_0x3900d6(0x1e8a)]()[_0x3900d6(0x1189)](_0x3900d6(0x191c))[_0x3900d6(0x1cbe)](_0x3900d6(0x16d3)+(_0x21ab6d[_0x3900d6(0x19eb)]||_0x3900d6(0x24e9))+_0x3900d6(0x252f)+_0x3900d6(0xe01))[_0x3900d6(0x4bd)](_0x3900d6(0x24a6))[_0x3900d6(0x1f27)](_0x449edd)['ok']('OK')[_0x3900d6(0x6c3)](_0x3900d6(0x39a));_0x28e3a8[_0x3900d6(0x2615)](_0x5d99cd)[_0x3900d6(0x146b)](function(){const _0x4d13a4=_0x3900d6;_0x545d27[_0x4d13a4(0x261e)][_0x4d13a4(0x1fac)]({'id':_0x21ab6d['id']})[_0x4d13a4(0x2945)][_0x4d13a4(0x146b)](function(){const _0x842aaa=_0x4d13a4;_0x3f65c0()['remove'](_0x2c6ccb[_0x842aaa(0x1723)],{'id':_0x21ab6d['id']}),_0x5223cc[_0x842aaa(0x1c75)]({'title':'FreshdeskConfiguration\x20deleted!','msg':_0x21ab6d[_0x842aaa(0x19eb)]?_0x21ab6d['name']+_0x842aaa(0x23e3):''});})[_0x4d13a4(0x129e)](function(_0x5d2e13){const _0x384ec8=_0x4d13a4;_0x5223cc[_0x384ec8(0x1980)]({'title':_0x5d2e13[_0x384ec8(0x107b)]?_0x384ec8(0x262a)+_0x5d2e13['status']+_0x384ec8(0x1315)+_0x5d2e13['statusText']:_0x384ec8(0xff1),'msg':_0x5d2e13['data']?JSON['stringify'](_0x5d2e13[_0x384ec8(0x524)]):_0x5d2e13[_0x384ec8(0xd5f)]()});})[_0x4d13a4(0x1ec6)](function(){_0x2c6ccb['getFreshdeskConfiguration'](0x0);});},function(){const _0x447cdd=_0x3900d6;console[_0x447cdd(0x1a74)]('CANCEL');});}_0x2c6ccb['selectedSubjects']=[],_0x2c6ccb[_0x39b027(0x2665)]=_0x2cc700,_0x2c6ccb[_0x39b027(0x10d5)]=_0x2b201f,_0x2c6ccb[_0x39b027(0x1777)]=_0x3d3f2b;function _0x2cc700(_0x1046fa,_0x1412ea){const _0x1e992c=_0x39b027;_0x28e3a8[_0x1e992c(0x2615)]({'controller':_0x1e992c(0x325),'controllerAs':'vm','templateUrl':_0x5a9633,'parent':angular[_0x1e992c(0x1853)](_0x2c8180[_0x1e992c(0x2586)]),'targetEvent':_0x1046fa,'clickOutsideToClose':!![],'locals':{'type':_0x1e992c(0xe32),'item':_0x1412ea,'items':_0x2c6ccb[_0x1e992c(0x3c8)],'configuration':_0x2c6ccb['freshdeskConfiguration'],'account':_0x2c6ccb[_0x1e992c(0x16d1)],'license':null,'setting':null,'crudPermissions':_0x2c6ccb[_0x1e992c(0x2514)]}});}function _0x7c74fe(_0x576334){const _0x29970e=_0x39b027;_0x545d27[_0x29970e(0x13ce)][_0x29970e(0x1fac)]({'id':_0x576334['id']})[_0x29970e(0x2945)]['then'](function(){const _0x1a18c3=_0x29970e;_0x3f65c0()['remove'](_0x2c6ccb['subjects'],{'id':_0x576334['id']}),_0x5223cc[_0x1a18c3(0x1c75)]({'title':_0x1a18c3(0x28e6),'msg':'Subject\x20has\x20been\x20deleted!'});})[_0x29970e(0x129e)](function(_0x3ff79d){const _0x16c93c=_0x29970e;_0x5223cc['error']({'title':_0x3ff79d['status']?_0x16c93c(0x262a)+_0x3ff79d[_0x16c93c(0x107b)]+_0x16c93c(0x1315)+_0x3ff79d['statusText']:'SYSTEM:DELETECONFIGURATIONFIELD','msg':_0x3ff79d[_0x16c93c(0x524)]?JSON['stringify'](_0x3ff79d[_0x16c93c(0x524)]):_0x3ff79d['toString']()});});}function _0x2b201f(_0x4998b4,_0x966a3e){const _0x35d91a=_0x39b027,_0x33a78c=_0x28e3a8[_0x35d91a(0x1e8a)]()['title'](_0x35d91a(0x317))['htmlContent'](_0x35d91a(0xf7f)+_0x35d91a(0xe01))[_0x35d91a(0x4bd)]('delete\x20subject')[_0x35d91a(0x1f27)](_0x4998b4)['ok']('OK')[_0x35d91a(0x6c3)](_0x35d91a(0x39a));_0x28e3a8['show'](_0x33a78c)[_0x35d91a(0x146b)](function(){_0x7c74fe(_0x966a3e);},function(){const _0x176e0f=_0x35d91a;console[_0x176e0f(0x1a74)]('CANCEL');});}function _0x3d3f2b(_0x84ec32){const _0x81bc18=_0x39b027,_0x4cdd0f=_0x28e3a8['confirm']()[_0x81bc18(0x1189)](_0x81bc18(0x2e6))[_0x81bc18(0x1cbe)](_0x81bc18(0x16d3)+_0x2c6ccb['selectedSubjects'][_0x81bc18(0x402)]+_0x81bc18(0x2452)+_0x81bc18(0xe01))['ariaLabel'](_0x81bc18(0x1209))[_0x81bc18(0x1f27)](_0x84ec32)['ok']('OK')[_0x81bc18(0x6c3)](_0x81bc18(0x39a));_0x28e3a8[_0x81bc18(0x2615)](_0x4cdd0f)[_0x81bc18(0x146b)](function(){const _0x341fbc=_0x81bc18;_0x2c6ccb['selectedSubjects']['forEach'](function(_0x50bb44){_0x7c74fe(_0x50bb44);}),_0x2c6ccb[_0x341fbc(0x15a6)]=[];});}_0x2c6ccb['selectedDescriptions']=[],_0x2c6ccb['createOrEditDescription']=_0x347dad,_0x2c6ccb['deleteDescriptionConfirm']=_0x3b40da,_0x2c6ccb[_0x39b027(0x2241)]=_0x4aafc9;function _0x347dad(_0x3d4182,_0x304f22){const _0x432c73=_0x39b027;_0x28e3a8[_0x432c73(0x2615)]({'controller':_0x432c73(0x325),'controllerAs':'vm','templateUrl':_0x5a9633,'parent':angular[_0x432c73(0x1853)](_0x2c8180[_0x432c73(0x2586)]),'targetEvent':_0x3d4182,'clickOutsideToClose':!![],'locals':{'type':_0x432c73(0xb17),'item':_0x304f22,'items':_0x2c6ccb['descriptions'],'configuration':_0x2c6ccb[_0x432c73(0x24e9)],'account':_0x2c6ccb[_0x432c73(0x16d1)],'license':null,'setting':null,'crudPermissions':_0x2c6ccb[_0x432c73(0x2514)]}});}function _0x1c1286(_0x51e050){const _0x566b5f=_0x39b027;_0x545d27['intFreshdeskField'][_0x566b5f(0x1fac)]({'id':_0x51e050['id']})[_0x566b5f(0x2945)][_0x566b5f(0x146b)](function(){const _0x383679=_0x566b5f;_0x3f65c0()[_0x383679(0x2640)](_0x2c6ccb[_0x383679(0x2358)],{'id':_0x51e050['id']}),_0x5223cc[_0x383679(0x1c75)]({'title':_0x383679(0xaf8),'msg':_0x383679(0x8e3)});})[_0x566b5f(0x129e)](function(_0x3ba42f){const _0xdec72=_0x566b5f;_0x5223cc[_0xdec72(0x1980)]({'title':_0x3ba42f[_0xdec72(0x107b)]?_0xdec72(0x262a)+_0x3ba42f['status']+_0xdec72(0x1315)+_0x3ba42f[_0xdec72(0x167f)]:_0xdec72(0xf6e),'msg':_0x3ba42f['data']?JSON['stringify'](_0x3ba42f['data']):_0x3ba42f[_0xdec72(0xd5f)]()});});}function _0x3b40da(_0x46bb69,_0x1608a2){const _0x3863d9=_0x39b027,_0x1f605d=_0x28e3a8[_0x3863d9(0x1e8a)]()[_0x3863d9(0x1189)](_0x3863d9(0x1e9))[_0x3863d9(0x1cbe)](_0x3863d9(0x2014)+_0x3863d9(0xe01))['ariaLabel']('delete\x20description')[_0x3863d9(0x1f27)](_0x46bb69)['ok']('OK')['cancel']('CANCEL');_0x28e3a8[_0x3863d9(0x2615)](_0x1f605d)['then'](function(){_0x1c1286(_0x1608a2);},function(){const _0x1d0ed1=_0x3863d9;console[_0x1d0ed1(0x1a74)](_0x1d0ed1(0x39a));});}function _0x4aafc9(_0x1ba4c5){const _0xd0b3a0=_0x39b027,_0x16919c=_0x28e3a8[_0xd0b3a0(0x1e8a)]()[_0xd0b3a0(0x1189)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20descriptions?')['htmlContent'](_0xd0b3a0(0x16d3)+_0x2c6ccb[_0xd0b3a0(0x126)][_0xd0b3a0(0x402)]+_0xd0b3a0(0x2452)+_0xd0b3a0(0xe01))[_0xd0b3a0(0x4bd)]('delete\x20descriptions')[_0xd0b3a0(0x1f27)](_0x1ba4c5)['ok']('OK')['cancel'](_0xd0b3a0(0x39a));_0x28e3a8[_0xd0b3a0(0x2615)](_0x16919c)[_0xd0b3a0(0x146b)](function(){_0x2c6ccb['selectedDescriptions']['forEach'](function(_0xf4d7af){_0x1c1286(_0xf4d7af);}),_0x2c6ccb['selectedDescriptions']=[];});}_0x2c6ccb[_0x39b027(0x2605)]=[],_0x2c6ccb['createOrEditField']=_0x577b8c,_0x2c6ccb['deleteFieldConfirm']=_0x32ce34,_0x2c6ccb[_0x39b027(0x816)]=_0x221baa;function _0x577b8c(_0x226695,_0x21ac6c){const _0x374907=_0x39b027;_0x28e3a8[_0x374907(0x2615)]({'controller':_0x374907(0x325),'controllerAs':'vm','templateUrl':_0x5a9633,'parent':angular[_0x374907(0x1853)](_0x2c8180['body']),'targetEvent':_0x226695,'clickOutsideToClose':!![],'locals':{'type':'field','item':_0x21ac6c,'items':_0x2c6ccb[_0x374907(0x2867)],'configuration':_0x2c6ccb[_0x374907(0x24e9)],'account':_0x2c6ccb[_0x374907(0x16d1)],'license':null,'setting':null,'crudPermissions':_0x2c6ccb[_0x374907(0x2514)]}});}function _0x165b44(_0x2d4286){const _0x201f8d=_0x39b027;_0x545d27[_0x201f8d(0x13ce)][_0x201f8d(0x1fac)]({'id':_0x2d4286['id']})[_0x201f8d(0x2945)][_0x201f8d(0x146b)](function(){const _0x392e0c=_0x201f8d;_0x3f65c0()[_0x392e0c(0x2640)](_0x2c6ccb[_0x392e0c(0x2867)],{'id':_0x2d4286['id']}),_0x5223cc['success']({'title':_0x392e0c(0x24ce),'msg':_0x392e0c(0x1c07)});})[_0x201f8d(0x129e)](function(_0x224fb8){const _0x29e871=_0x201f8d;_0x5223cc[_0x29e871(0x1980)]({'title':_0x224fb8[_0x29e871(0x107b)]?'API:'+_0x224fb8[_0x29e871(0x107b)]+_0x29e871(0x1315)+_0x224fb8['statusText']:'SYSTEM:DELETECONFIGURATIONFIELD','msg':_0x224fb8['data']?JSON[_0x29e871(0x10bb)](_0x224fb8[_0x29e871(0x524)]):_0x224fb8[_0x29e871(0xd5f)]()});});}function _0x32ce34(_0x4b891b,_0xb95a62){const _0x4e452f=_0x39b027,_0x91e89f=_0x28e3a8[_0x4e452f(0x1e8a)]()[_0x4e452f(0x1189)](_0x4e452f(0x17f6))['htmlContent'](_0x4e452f(0x2216)+_0x4e452f(0xe01))[_0x4e452f(0x4bd)]('delete\x20field')[_0x4e452f(0x1f27)](_0x4b891b)['ok']('OK')['cancel'](_0x4e452f(0x39a));_0x28e3a8[_0x4e452f(0x2615)](_0x91e89f)[_0x4e452f(0x146b)](function(){_0x165b44(_0xb95a62);},function(){const _0x5c3655=_0x4e452f;console['log'](_0x5c3655(0x39a));});}function _0x221baa(_0x189cb6){const _0x214721=_0x39b027,_0x3060c4=_0x28e3a8[_0x214721(0x1e8a)]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20fields?')['htmlContent'](_0x214721(0x16d3)+_0x2c6ccb[_0x214721(0x2605)][_0x214721(0x402)]+_0x214721(0x2452)+_0x214721(0xe01))[_0x214721(0x4bd)](_0x214721(0x176a))['targetEvent'](_0x189cb6)['ok']('OK')[_0x214721(0x6c3)]('CANCEL');_0x28e3a8['show'](_0x3060c4)[_0x214721(0x146b)](function(){const _0xb7d000=_0x214721;_0x2c6ccb['selectedFields'][_0xb7d000(0x1df5)](function(_0x5b7adb){_0x165b44(_0x5b7adb);}),_0x2c6ccb[_0xb7d000(0x2605)]=[];});}}const _0x472aab=_0xca9130;;_0x57006f[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1862),_0x313a4d(0xd08),_0x313a4d(0x10e8),'$q',_0x313a4d(0x214b),_0x313a4d(0x1fe4),_0x313a4d(0x1723),_0x313a4d(0x24e9),'api','Auth',_0x313a4d(0x2690),'setting',_0x313a4d(0x2514)];function _0x57006f(_0x1424b5,_0x1fe868,_0x104a90,_0x526608,_0x4fd032,_0x2bce24,_0xad3554,_0x198e79,_0x1469c3,_0x4c4890,_0x2a641e,_0x3f02fb,_0x487411,_0x3f65be){const _0x2d7c98=_0x313a4d,_0x1a1831=this;_0x1a1831[_0x2d7c98(0x2321)]=_0x2a641e['getCurrentUser'](),_0x1a1831[_0x2d7c98(0xcef)]=[],_0x1a1831[_0x2d7c98(0x15b9)]=_0x487411,_0x1a1831[_0x2d7c98(0x2690)]=_0x3f02fb,_0x1a1831[_0x2d7c98(0x2514)]=_0x3f65be,_0x1a1831[_0x2d7c98(0x855)]={},_0x1a1831['passwordPattern']=_0x1a1831['setting']&&_0x1a1831[_0x2d7c98(0x15b9)][_0x2d7c98(0x976)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1a1831[_0x2d7c98(0x1189)]=_0x2d7c98(0x2418),_0x1a1831[_0x2d7c98(0x24e9)]=angular[_0x2d7c98(0x235a)](_0x1469c3),_0x1a1831[_0x2d7c98(0x1723)]=_0x198e79,_0x1a1831['newFreshdeskConfiguration']=![];!_0x1a1831[_0x2d7c98(0x24e9)]&&(_0x1a1831[_0x2d7c98(0x24e9)]={'channel':_0x2d7c98(0xe6),'type':_0x2d7c98(0x7b0)},_0x1a1831['title']=_0x2d7c98(0x4bc),_0x1a1831[_0x2d7c98(0x2500)]=!![]);_0x1a1831[_0x2d7c98(0xfbd)]=_0x2b3ad5,_0x1a1831[_0x2d7c98(0xdeb)]=_0x3025cb,_0x1a1831['deleteFreshdeskConfiguration']=_0x226938,_0x1a1831[_0x2d7c98(0xe73)]=_0x5adb44,_0x1a1831[_0x2d7c98(0x13f3)]=_0x259835;function _0x2b3ad5(){const _0x4a51fd=_0x2d7c98;_0x1a1831[_0x4a51fd(0xcef)]=[],_0x4c4890[_0x4a51fd(0x21b2)][_0x4a51fd(0xa17)]({'id':_0x1fe868[_0x4a51fd(0x16a)]['id']},_0x1a1831[_0x4a51fd(0x24e9)])[_0x4a51fd(0x2945)][_0x4a51fd(0x146b)](function(_0x25778f){const _0x5319be=_0x4a51fd;_0x1a1831[_0x5319be(0x1723)][_0x5319be(0xb3d)](_0x25778f[_0x5319be(0x2488)]()),_0xad3554[_0x5319be(0x1c75)]({'title':'FreshdeskConfiguration\x20properly\x20created','msg':_0x1a1831['freshdeskConfiguration'][_0x5319be(0x19eb)]?_0x1a1831['freshdeskConfiguration'][_0x5319be(0x19eb)]+_0x5319be(0x1386):''}),_0x259835(_0x25778f);})['catch'](function(_0x604504){const _0x7a8722=_0x4a51fd;if(_0x604504[_0x7a8722(0x524)]&&_0x604504[_0x7a8722(0x524)][_0x7a8722(0xcef)]&&_0x604504[_0x7a8722(0x524)][_0x7a8722(0xcef)][_0x7a8722(0x402)]){_0x1a1831[_0x7a8722(0xcef)]=_0x604504['data'][_0x7a8722(0xcef)]||[{'message':_0x604504[_0x7a8722(0xd5f)](),'type':_0x7a8722(0x1889)}];for(let _0x5c7142=0x0;_0x5c7142<_0x604504[_0x7a8722(0x524)][_0x7a8722(0xcef)][_0x7a8722(0x402)];_0x5c7142+=0x1){_0xad3554['error']({'title':_0x604504[_0x7a8722(0x524)][_0x7a8722(0xcef)][_0x5c7142][_0x7a8722(0x1142)],'msg':_0x604504[_0x7a8722(0x524)][_0x7a8722(0xcef)][_0x5c7142][_0x7a8722(0x7fd)]});}}else _0xad3554[_0x7a8722(0x1980)]({'title':_0x604504[_0x7a8722(0x107b)]?_0x7a8722(0x262a)+_0x604504['status']+_0x7a8722(0x1315)+_0x604504['statusText']:_0x7a8722(0x1889),'msg':_0x604504[_0x7a8722(0x524)]?JSON[_0x7a8722(0x10bb)](_0x604504[_0x7a8722(0x524)][_0x7a8722(0x7fd)]):_0x604504[_0x7a8722(0xd5f)]()});});}function _0x3025cb(){const _0x4b13bd=_0x2d7c98;_0x1a1831[_0x4b13bd(0xcef)]=[],_0x4c4890[_0x4b13bd(0x261e)][_0x4b13bd(0x18e1)]({'id':_0x1a1831[_0x4b13bd(0x24e9)]['id']},_0x1a1831['freshdeskConfiguration'])[_0x4b13bd(0x2945)]['then'](function(_0xba0461){const _0x4f8957=_0x4b13bd,_0x57c44c=_0x3f65c0()[_0x4f8957(0xc84)](_0x1a1831[_0x4f8957(0x1723)],{'id':_0xba0461['id']});_0x57c44c&&_0x3f65c0()[_0x4f8957(0x168d)](_0x57c44c,_0x3f65c0()[_0x4f8957(0x40e)](_0xba0461[_0x4f8957(0x2488)](),_0x3f65c0()['keys'](_0x57c44c))),_0xad3554['success']({'title':_0x4f8957(0xde5),'msg':_0x1a1831[_0x4f8957(0x24e9)][_0x4f8957(0x19eb)]?_0x1a1831['freshdeskConfiguration'][_0x4f8957(0x19eb)]+_0x4f8957(0x24db):''}),_0x259835(_0xba0461);})[_0x4b13bd(0x129e)](function(_0x4c7746){const _0x3ac1d2=_0x4b13bd;if(_0x4c7746[_0x3ac1d2(0x524)]&&_0x4c7746[_0x3ac1d2(0x524)]['errors']&&_0x4c7746[_0x3ac1d2(0x524)][_0x3ac1d2(0xcef)][_0x3ac1d2(0x402)]){_0x1a1831[_0x3ac1d2(0xcef)]=_0x4c7746['data'][_0x3ac1d2(0xcef)]||[{'message':_0x4c7746[_0x3ac1d2(0xd5f)](),'type':_0x3ac1d2(0x5c8)}];for(let _0x5e4863=0x0;_0x5e4863<_0x4c7746[_0x3ac1d2(0x524)][_0x3ac1d2(0xcef)][_0x3ac1d2(0x402)];_0x5e4863++){_0xad3554[_0x3ac1d2(0x1980)]({'title':_0x4c7746['data'][_0x3ac1d2(0xcef)][_0x5e4863]['type'],'msg':_0x4c7746[_0x3ac1d2(0x524)][_0x3ac1d2(0xcef)][_0x5e4863][_0x3ac1d2(0x7fd)]});}}else _0xad3554['error']({'title':_0x4c7746['status']?_0x3ac1d2(0x262a)+_0x4c7746[_0x3ac1d2(0x107b)]+_0x3ac1d2(0x1315)+_0x4c7746[_0x3ac1d2(0x167f)]:_0x3ac1d2(0x5c8),'msg':_0x4c7746['data']?JSON[_0x3ac1d2(0x10bb)](_0x4c7746[_0x3ac1d2(0x524)][_0x3ac1d2(0x7fd)]):_0x4c7746[_0x3ac1d2(0xd5f)]()});});}function _0x226938(_0x4957a4){const _0x353f95=_0x2d7c98;_0x1a1831[_0x353f95(0xcef)]=[];const _0x1a9788=_0x526608[_0x353f95(0x1e8a)]()[_0x353f95(0x1189)]('Are\x20you\x20sure?')[_0x353f95(0x80f)](_0x353f95(0x79b))[_0x353f95(0x4bd)](_0x353f95(0xd56))['ok'](_0x353f95(0x25de))[_0x353f95(0x6c3)](_0x353f95(0xcf0))[_0x353f95(0x1f27)](_0x4957a4);_0x526608[_0x353f95(0x2615)](_0x1a9788)['then'](function(){const _0x304883=_0x353f95;_0x4c4890['intFreshdeskConfiguration']['delete']({'id':_0x1a1831[_0x304883(0x24e9)]['id']})[_0x304883(0x2945)]['then'](function(){const _0x207bb8=_0x304883;_0x3f65c0()['remove'](_0x1a1831[_0x207bb8(0x1723)],{'id':_0x1a1831[_0x207bb8(0x24e9)]['id']}),_0xad3554[_0x207bb8(0x1c75)]({'title':'FreshdeskConfiguration\x20properly\x20deleted!','msg':(_0x1a1831['freshdeskConfiguration'][_0x207bb8(0x19eb)]||_0x207bb8(0x24e9))+'\x20has\x20been\x20deleted!'}),_0x259835(_0x1a1831[_0x207bb8(0x24e9)]);})['catch'](function(_0xf97124){const _0x3687e7=_0x304883;if(_0xf97124[_0x3687e7(0x524)]&&_0xf97124[_0x3687e7(0x524)][_0x3687e7(0xcef)]&&_0xf97124[_0x3687e7(0x524)][_0x3687e7(0xcef)][_0x3687e7(0x402)]){_0x1a1831['errors']=_0xf97124[_0x3687e7(0x524)]['errors']||[{'message':_0xf97124[_0x3687e7(0xd5f)](),'type':_0x3687e7(0xf05)}];for(let _0x3a091f=0x0;_0x3a091f<_0xf97124[_0x3687e7(0x524)][_0x3687e7(0xcef)][_0x3687e7(0x402)];_0x3a091f++){_0xad3554[_0x3687e7(0x1980)]({'title':_0xf97124[_0x3687e7(0x524)]['errors'][_0x3a091f][_0x3687e7(0x1142)],'msg':_0xf97124[_0x3687e7(0x524)]['errors'][_0x3a091f][_0x3687e7(0x7fd)]});}}else _0xad3554[_0x3687e7(0x1980)]({'title':_0xf97124[_0x3687e7(0x107b)]?_0x3687e7(0x262a)+_0xf97124[_0x3687e7(0x107b)]+_0x3687e7(0x1315)+_0xf97124[_0x3687e7(0x167f)]:_0x3687e7(0xf05),'msg':_0xf97124['data']?JSON[_0x3687e7(0x10bb)](_0xf97124[_0x3687e7(0x524)][_0x3687e7(0x7fd)]):_0xf97124[_0x3687e7(0x7fd)]||_0xf97124[_0x3687e7(0xd5f)]()});});},function(){});}function _0x5adb44(_0x57f9c9){return _0x57f9c9===null?undefined:new Date(_0x57f9c9);}function _0x259835(_0x1957aa){const _0x28abca=_0x2d7c98;_0x526608[_0x28abca(0x2458)](_0x1957aa);}}const _0x53a7b3=_0x57006f;;_0xc117a7['$inject']=[_0x313a4d(0x910),_0x313a4d(0x1862),_0x313a4d(0xd08),_0x313a4d(0x10e8),_0x313a4d(0x1fe4),'configuration',_0x313a4d(0x1fd6),_0x313a4d(0x2711),_0x313a4d(0x1f8e),_0x313a4d(0x1142),'api',_0x313a4d(0xa87),_0x313a4d(0x2514)];function _0xc117a7(_0x4f9b6c,_0x3b7ead,_0x44425c,_0x1b5171,_0x4d2977,_0x4625a8,_0x408073,_0x2308a2,_0x53f263,_0x3f23c4,_0x431fd5,_0x4a479d,_0x5089ad){const _0x620c91=_0x313a4d,_0x497b7c=this;_0x497b7c[_0x620c91(0x2321)]=_0x4a479d[_0x620c91(0xb12)](),_0x497b7c[_0x620c91(0xcef)]=[],_0x497b7c[_0x620c91(0x1189)]='INTEGRATIONS.EDIT_'+_0x3f65c0()[_0x620c91(0xd39)](_0x3f23c4),_0x497b7c[_0x620c91(0x2711)]=angular[_0x620c91(0x235a)](_0x2308a2),_0x497b7c[_0x620c91(0x1fd6)]=_0x408073,_0x497b7c['type']=_0x3f23c4,_0x497b7c[_0x620c91(0x2514)]=_0x5089ad,_0x497b7c[_0x620c91(0x23cd)]=![];!_0x497b7c[_0x620c91(0x2711)]&&(_0x497b7c[_0x620c91(0x2711)]={'type':_0x620c91(0x1f23)},_0x497b7c[_0x620c91(0x2711)][_0x3f65c0()[_0x620c91(0x83f)](_0x3f23c4)+'Id']=_0x4625a8['id'],_0x497b7c[_0x620c91(0x1189)]=_0x620c91(0xe78)+_0x3f65c0()[_0x620c91(0xd39)](_0x3f23c4),_0x497b7c[_0x620c91(0x23cd)]=!![]);_0x497b7c[_0x620c91(0x1e65)]=_0x50a94a,_0x497b7c[_0x620c91(0x150e)]=_0x5bfce6,_0x497b7c[_0x620c91(0xbaf)]=_0x57bd91,_0x497b7c[_0x620c91(0x21b1)]=_0x426cf3,_0x497b7c[_0x620c91(0x13f3)]=_0x498643,_0x431fd5['variable'][_0x620c91(0x16b4)]({'nolimit':!![]})[_0x620c91(0x2945)][_0x620c91(0x146b)](function(_0x29e3d4){const _0x58d4a1=_0x620c91;return _0x497b7c['variables']=_0x29e3d4[_0x58d4a1(0x19c7)]?_0x29e3d4[_0x58d4a1(0x19c7)]:[],_0x431fd5[_0x58d4a1(0x1cb3)][_0x58d4a1(0x1ea2)]()[_0x58d4a1(0x2945)];})[_0x620c91(0x146b)](function(_0x3aa6b8){const _0x4e20eb=_0x620c91;return _0x497b7c[_0x4e20eb(0x1c8a)]=_0x3f65c0()['difference'](_0x3f65c0()[_0x4e20eb(0x627)](_0x3aa6b8),[_0x4e20eb(0x2945),_0x4e20eb(0x26f2),_0x4e20eb(0xc68),'updatedAt',_0x4e20eb(0xc3b)]),_0x497b7c['voiceAgentReportColumns'][_0x4e20eb(0x1f47)]('recordingURL'),_0x431fd5[_0x4e20eb(0x160)][_0x4e20eb(0x1ea2)]()[_0x4e20eb(0x2945)];})[_0x620c91(0x146b)](function(_0x7672fc){const _0x4a0209=_0x620c91;_0x497b7c[_0x4a0209(0x164b)]=_0x3f65c0()[_0x4a0209(0xa62)](_0x3f65c0()['keys'](_0x7672fc),[_0x4a0209(0x2945),_0x4a0209(0x26f2),'createdAt',_0x4a0209(0x144f),'sourceid']),_0x497b7c[_0x4a0209(0x164b)][_0x4a0209(0x1f47)](_0x4a0209(0x643));})['catch'](function(_0x3b5693){const _0x3e0e68=_0x620c91;_0x4d2977[_0x3e0e68(0x1980)]({'title':_0x3b5693[_0x3e0e68(0x107b)]?'API:'+_0x3b5693[_0x3e0e68(0x107b)]+_0x3e0e68(0x1315)+_0x3b5693[_0x3e0e68(0x167f)]:'SYSTEM:GETVARIABLES','msg':_0x3b5693[_0x3e0e68(0x524)]?JSON[_0x3e0e68(0x10bb)](_0x3b5693[_0x3e0e68(0x524)]):_0x3b5693[_0x3e0e68(0xd5f)]()});}),_0x431fd5['intFreshdeskAccount'][_0x620c91(0x12ff)]({'id':_0x53f263['id'],'ticketType':_0x4625a8[_0x620c91(0x21be)]?_0x4625a8[_0x620c91(0x21be)]:undefined})[_0x620c91(0x2945)][_0x620c91(0x146b)](function(_0x59f246){const _0x102054=_0x620c91;_0x497b7c[_0x102054(0x822)]=!![],_0x497b7c[_0x102054(0x2867)]=_0x59f246[_0x102054(0x19c7)]?_0x59f246[_0x102054(0x19c7)]:[],_0x497b7c[_0x102054(0x2711)][_0x102054(0x2912)]&&(_0x497b7c[_0x102054(0x165e)]=_0x3f65c0()['find'](_0x497b7c[_0x102054(0x2867)],{'id':_0x497b7c[_0x102054(0x2711)]['idField']}));})[_0x620c91(0x129e)](function(_0x6adbb){const _0x3897dd=_0x620c91;_0x497b7c[_0x3897dd(0x822)]=![],console['error'](_0x6adbb);});function _0x50a94a(){const _0x343566=_0x620c91;_0x497b7c[_0x343566(0xcef)]=[],_0x497b7c['customField']&&(_0x497b7c['item']['idField']=_0x497b7c['customField']['id'],_0x497b7c[_0x343566(0x2711)][_0x343566(0x25e3)]=_0x497b7c[_0x343566(0x165e)][_0x343566(0x19eb)],_0x497b7c[_0x343566(0x2711)][_0x343566(0x165e)]=_0x497b7c[_0x343566(0x165e)]['custom']),_0x431fd5[_0x343566(0x13ce)][_0x343566(0x1e3)](_0x497b7c[_0x343566(0x2711)])['$promise']['then'](function(_0x5ee25e){const _0x5aae54=_0x343566;_0x497b7c[_0x5aae54(0x1fd6)][_0x5aae54(0xb3d)](_0x5ee25e),_0x4d2977[_0x5aae54(0x1c75)]({'title':_0x3f65c0()[_0x5aae54(0x83f)](_0x3f23c4)+_0x5aae54(0x1637),'msg':_0x3f65c0()[_0x5aae54(0x83f)](_0x3f23c4)+_0x5aae54(0x1386)}),_0x498643();})[_0x343566(0x129e)](function(_0x25555d){const _0x4de2ae=_0x343566;console[_0x4de2ae(0x1980)](_0x25555d),_0x497b7c[_0x4de2ae(0xcef)]=_0x25555d[_0x4de2ae(0x524)][_0x4de2ae(0xcef)]||[{'message':_0x25555d['toString'](),'type':_0x4de2ae(0x1ec4)}];});}function _0x5bfce6(){const _0x2b45ea=_0x620c91;_0x497b7c[_0x2b45ea(0xcef)]=[],_0x497b7c[_0x2b45ea(0x165e)]&&(_0x497b7c[_0x2b45ea(0x2711)][_0x2b45ea(0x2912)]=_0x497b7c[_0x2b45ea(0x165e)]['id'],_0x497b7c['item'][_0x2b45ea(0x25e3)]=_0x497b7c[_0x2b45ea(0x165e)][_0x2b45ea(0x19eb)],_0x497b7c[_0x2b45ea(0x2711)][_0x2b45ea(0x165e)]=_0x497b7c[_0x2b45ea(0x165e)][_0x2b45ea(0x1802)]),_0x431fd5[_0x2b45ea(0x13ce)][_0x2b45ea(0x18e1)]({'id':_0x497b7c[_0x2b45ea(0x2711)]['id']},_0x497b7c[_0x2b45ea(0x2711)])['$promise']['then'](function(_0x79ab1f){const _0x189419=_0x2b45ea,_0x42d4fe=_0x3f65c0()[_0x189419(0xc84)](_0x497b7c[_0x189419(0x1fd6)],{'id':_0x79ab1f['id']});_0x42d4fe&&_0x3f65c0()[_0x189419(0x168d)](_0x42d4fe,_0x79ab1f),_0x4d2977[_0x189419(0x1c75)]({'title':_0x3f65c0()['capitalize'](_0x3f23c4)+_0x189419(0xffe),'msg':_0x3f65c0()['capitalize'](_0x3f23c4)+_0x189419(0x24db)}),_0x498643();})[_0x2b45ea(0x129e)](function(_0x1e6e8a){const _0x27c30d=_0x2b45ea;console[_0x27c30d(0x1980)](_0x1e6e8a),_0x497b7c['errors']=_0x1e6e8a[_0x27c30d(0x524)]['errors']||[{'message':_0x1e6e8a[_0x27c30d(0xd5f)](),'type':_0x27c30d(0x1b4)}];});}function _0x57bd91(_0x547855){const _0x5400b5=_0x620c91;_0x497b7c[_0x5400b5(0xcef)]=[];const _0x4b5d78=_0x1b5171[_0x5400b5(0x1e8a)]()[_0x5400b5(0x1189)](_0x5400b5(0x1d64))[_0x5400b5(0x80f)](_0x5400b5(0xe57)+_0x3f23c4+'\x20will\x20be\x20deleted.')[_0x5400b5(0x4bd)](_0x5400b5(0xb22)+_0x3f65c0()[_0x5400b5(0x83f)](_0x3f23c4))['ok'](_0x5400b5(0x25de))['cancel'](_0x5400b5(0xcf0))[_0x5400b5(0x1f27)](_0x547855);_0x1b5171[_0x5400b5(0x2615)](_0x4b5d78)[_0x5400b5(0x146b)](function(){const _0x31e5d3=_0x5400b5;_0x431fd5[_0x31e5d3(0x13ce)][_0x31e5d3(0x1fac)]({'id':_0x497b7c[_0x31e5d3(0x2711)]['id']})[_0x31e5d3(0x2945)][_0x31e5d3(0x146b)](function(){const _0x1409e2=_0x31e5d3;_0x3f65c0()[_0x1409e2(0x2640)](_0x497b7c[_0x1409e2(0x1fd6)],{'id':_0x497b7c[_0x1409e2(0x2711)]['id']}),_0x4d2977[_0x1409e2(0x1c75)]({'title':_0x3f65c0()[_0x1409e2(0x83f)](_0x3f23c4)+_0x1409e2(0x1e6c),'msg':_0x3f65c0()[_0x1409e2(0x83f)](_0x3f23c4)+'\x20has\x20been\x20deleted!'}),_0x498643();})[_0x31e5d3(0x129e)](function(_0x2bf2f4){const _0x17e69d=_0x31e5d3;console[_0x17e69d(0x1980)](_0x2bf2f4),_0x497b7c[_0x17e69d(0xcef)]=_0x2bf2f4[_0x17e69d(0x524)][_0x17e69d(0xcef)]||[{'message':_0x2bf2f4['toString'](),'type':_0x17e69d(0x1cb0)}];});},function(){});}function _0x426cf3(){const _0x940566=_0x620c91;return _0x497b7c[_0x940566(0x2711)][_0x940566(0x97f)]!==undefined?_0x497b7c[_0x940566(0x2711)][_0x940566(0x97f)]:_0x940566(0x1040);}function _0x498643(){const _0x4275ac=_0x620c91;_0x1b5171[_0x4275ac(0x2458)]();}}const _0x4dcfe6=_0xc117a7;;_0x4ab656[_0x313a4d(0x11c2)]=[_0x313a4d(0x1862),_0x313a4d(0xd08),_0x313a4d(0x10e8),_0x313a4d(0x4d8),_0x313a4d(0x214b),_0x313a4d(0x2690),'setting',_0x313a4d(0x247f),_0x313a4d(0x1fe4),_0x313a4d(0xa87),'freshdeskAccount','userProfileSection'];function _0x4ab656(_0x266ab0,_0x864142,_0x493170,_0x4147c5,_0x179a2f,_0x40bb00,_0x18e465,_0x331ef2,_0x41d1ed,_0xeb9a1f,_0x1d8066,_0x45eac2){const _0x3e3853=_0x313a4d,_0x108253=this;_0x108253[_0x3e3853(0x2321)]=_0xeb9a1f['getCurrentUser'](),_0x108253[_0x3e3853(0x2690)]=_0x40bb00,_0x108253[_0x3e3853(0x15b9)]=_0x18e465,_0x108253[_0x3e3853(0x2251)]=_0x108253['setting'][_0x3e3853(0x976)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x108253['location']=_0x864142[_0x3e3853(0x2414)]()+_0x3e3853(0xb0e)+_0x864142['host'](),_0x108253[_0x3e3853(0x16d1)]=_0x1d8066||_0x266ab0[_0x3e3853(0x16a)][_0x3e3853(0x16d1)]||{},_0x108253[_0x3e3853(0x1366)]=_0x45eac2&&_0x45eac2[_0x3e3853(0x51c)]==0x1?_0x45eac2[_0x3e3853(0x19c7)][0x0]:null,_0x108253[_0x3e3853(0x2514)]=_0xeb9a1f[_0x3e3853(0xe60)](_0x108253[_0x3e3853(0x1366)]?_0x108253[_0x3e3853(0x1366)][_0x3e3853(0x2514)]:null),_0x108253[_0x3e3853(0x855)]={},_0x108253[_0x3e3853(0x1b09)]=_0x266ab0[_0x3e3853(0x16a)][_0x3e3853(0x13a3)]||0x0,_0x108253[_0x3e3853(0x861)]=_0x41d1ed[_0x3e3853(0x271e)],_0x108253['gotoFreshdeskAccounts']=_0x1bb214,_0x108253[_0x3e3853(0x22d0)]=_0x34fe99;function _0x1bb214(){const _0x14623e=_0x3e3853;_0x266ab0['go'](_0x14623e(0x229d),{},{'reload':_0x14623e(0x229d)});}function _0x34fe99(){const _0x17af98=_0x3e3853;_0x331ef2[_0x17af98(0x21b2)][_0x17af98(0x18e1)]({'id':_0x108253[_0x17af98(0x16d1)]['id']},_0x108253[_0x17af98(0x16d1)])['$promise'][_0x17af98(0x146b)](function(){const _0xa9e47f=_0x17af98;_0x41d1ed['success']({'title':'FreshdeskAccount\x20updated!','msg':_0x108253['freshdeskAccount'][_0xa9e47f(0x19eb)]?_0x108253[_0xa9e47f(0x16d1)]['name']+_0xa9e47f(0x6b0):''});})[_0x17af98(0x129e)](function(_0x503c0d){const _0x240f6c=_0x17af98;_0x41d1ed['error']({'title':_0x503c0d[_0x240f6c(0x107b)]?_0x240f6c(0x262a)+_0x503c0d[_0x240f6c(0x107b)]+_0x240f6c(0x1315)+_0x503c0d[_0x240f6c(0x167f)]:_0x240f6c(0x265c),'msg':_0x503c0d['data']?JSON[_0x240f6c(0x10bb)](_0x503c0d[_0x240f6c(0x524)]):_0x503c0d[_0x240f6c(0xd5f)]()});});}}const _0x523b5a=_0x4ab656;;const _0x1aaba3=_0x4acfac['p']+_0x313a4d(0x2743);;_0x7b624d[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1aa9),_0x313a4d(0x1862),_0x313a4d(0x15fe),'$mdDialog',_0x313a4d(0x4d8),_0x313a4d(0x1abe),'$translate',_0x313a4d(0x314),_0x313a4d(0x26b6),_0x313a4d(0x1366),_0x313a4d(0x247f),_0x313a4d(0x216c),_0x313a4d(0x1fe4),_0x313a4d(0xa87),_0x313a4d(0x2690),_0x313a4d(0x15b9)];function _0x7b624d(_0x10b341,_0x560c0d,_0x4b5cca,_0x1e655a,_0x537436,_0x4ad8ff,_0x4e000d,_0x42b0d3,_0x1b0f2d,_0x27fe8c,_0x2cc64a,_0x54ee5d,_0x2d817b,_0x10eb80,_0x4b7d98,_0x43f37a,_0x34fd4f){const _0x3bc400=_0x313a4d,_0x349a73=this;_0x349a73[_0x3bc400(0x2690)]=_0x43f37a,_0x349a73[_0x3bc400(0x15b9)]=_0x34fd4f,_0x349a73[_0x3bc400(0x2321)]=_0x4b7d98[_0x3bc400(0xb12)](),_0x349a73[_0x3bc400(0x314)]=_0x1b0f2d||{'count':0x0,'rows':[]},_0x349a73[_0x3bc400(0x26b6)]=_0x27fe8c,_0x349a73[_0x3bc400(0x1366)]=_0x2cc64a&&_0x2cc64a['count']==0x1?_0x2cc64a['rows'][0x0]:null,_0x349a73[_0x3bc400(0x2514)]=_0x4b7d98[_0x3bc400(0xe60)](_0x349a73[_0x3bc400(0x1366)]?_0x349a73[_0x3bc400(0x1366)]['crudPermissions']:null),_0x349a73[_0x3bc400(0x768)]='freshdeskAccounts',_0x349a73['listOrder']='',_0x349a73['listOrderAsc']=null,_0x349a73['selectedFreshdeskAccounts']=[],_0x349a73[_0x3bc400(0x1a56)]={'fields':_0x3bc400(0xd82),'limit':0xa,'page':0x1},_0x349a73[_0x3bc400(0x23f9)]=_0x36fd82,_0x349a73['testtestintegrationaccount']=_0xc61d69,_0x349a73[_0x3bc400(0xf0a)]=_0x2a670a,_0x349a73[_0x3bc400(0x1c75)]=_0x499a63,_0x349a73[_0x3bc400(0x686)]=_0x2c0339,_0x349a73[_0x3bc400(0xace)]=_0x4d6d1b,_0x349a73['deleteFreshdeskAccount']=_0x528c4f,_0x349a73[_0x3bc400(0x220b)]=_0x524afa,_0x349a73[_0x3bc400(0x1582)]=_0x54e629,_0x349a73['deselectFreshdeskAccounts']=_0x58b3dc,_0x349a73[_0x3bc400(0x10e5)]=_0x4b35a6;function _0x36fd82(_0x151859){const _0x3a968b=_0x3bc400;_0x4b5cca['go'](_0x3a968b(0x1a98),{'id':_0x151859['id'],'freshdeskAccount':_0x151859,'crudPermissions':_0x349a73[_0x3a968b(0x2514)]});}function _0xc61d69(_0xf59580){const _0x28b257=_0x3bc400;return _0x54ee5d[_0x28b257(0x21b2)][_0x28b257(0x12ff)]({'id':_0xf59580['id'],'test':!![]})[_0x28b257(0x2945)][_0x28b257(0x146b)](function(){const _0x5ebd0c=_0x28b257;_0x10eb80['success']({'title':_0x5ebd0c(0x1d8d),'msg':'Connection\x20succeded!'});})[_0x28b257(0x129e)](function(_0x335ab4){const _0x358608=_0x28b257;_0x10eb80['error']({'title':_0x358608(0x1d8d),'msg':_0x335ab4['data']?_0x335ab4['data'][_0x358608(0x7fd)]?_0x335ab4[_0x358608(0x524)]['message']:JSON[_0x358608(0x10bb)](_0x335ab4[_0x358608(0x524)]):_0x335ab4[_0x358608(0xd5f)]()});});}function _0x2a670a(_0x1e8e6a,_0x4fd159){const _0x377815=_0x3bc400,_0x3ff1d6=_0x537436[_0x377815(0x1e8a)]()[_0x377815(0x1189)](_0x377815(0xdb2)+_0x3f65c0()[_0x377815(0x20d1)](_0x377815(0x16d1))+'?')[_0x377815(0x1cbe)](_0x377815(0x16d3)+(_0x1e8e6a['name']||'freshdeskAccount')+''+_0x377815(0xe01))[_0x377815(0x4bd)](_0x377815(0x19b9))['targetEvent'](_0x4fd159)['ok']('OK')[_0x377815(0x6c3)]('CANCEL');_0x537436['show'](_0x3ff1d6)[_0x377815(0x146b)](function(){_0x528c4f(_0x1e8e6a);},function(){const _0x5c24dd=_0x377815;console[_0x5c24dd(0x1a74)](_0x5c24dd(0x39a));});}let _0x4326bf=!![],_0xc8de23=0x1;_0x10b341[_0x3bc400(0x21e8)](_0x3bc400(0x2669),function(_0x12bcc1,_0x2bba1c){const _0x33dcf7=_0x3bc400;_0x4326bf?_0x4e000d(function(){_0x4326bf=![];}):(!_0x2bba1c&&(_0xc8de23=_0x349a73[_0x33dcf7(0x1a56)][_0x33dcf7(0x844)]),_0x12bcc1!==_0x2bba1c&&(_0x349a73[_0x33dcf7(0x1a56)][_0x33dcf7(0x844)]=0x1),!_0x12bcc1&&(_0x349a73['query'][_0x33dcf7(0x844)]=_0xc8de23),_0x349a73[_0x33dcf7(0x686)]());});function _0x499a63(_0x2fd03d){const _0x5d90ff=_0x3bc400;_0x349a73[_0x5d90ff(0x314)]=_0x2fd03d||{'count':0x0,'rows':[]};}function _0x2c0339(){const _0x56deb4=_0x3bc400;_0x349a73[_0x56deb4(0x1a56)][_0x56deb4(0x145d)]=(_0x349a73[_0x56deb4(0x1a56)]['page']-0x1)*_0x349a73[_0x56deb4(0x1a56)]['limit'],_0x4b7d98[_0x56deb4(0x23e0)](_0x56deb4(0x174b))?_0x349a73[_0x56deb4(0xb9c)]=_0x54ee5d[_0x56deb4(0x21b2)][_0x56deb4(0x16b4)](_0x349a73[_0x56deb4(0x1a56)],_0x499a63)['$promise']:(_0x349a73[_0x56deb4(0x1a56)]['id']=_0x349a73[_0x56deb4(0x26b6)]['id'],_0x349a73[_0x56deb4(0x1a56)][_0x56deb4(0x2146)]=_0x56deb4(0x207),_0x349a73['promise']=_0x54ee5d[_0x56deb4(0x26b6)][_0x56deb4(0x158f)](_0x349a73[_0x56deb4(0x1a56)],_0x499a63)['$promise']);}function _0x4d6d1b(_0x271dad,_0x2848b8){const _0x153d9a=_0x3bc400;_0x537436[_0x153d9a(0x2615)]({'controller':_0x153d9a(0x157f),'controllerAs':'vm','templateUrl':_0x1aaba3,'parent':angular[_0x153d9a(0x1853)](_0x4ad8ff[_0x153d9a(0x2586)]),'targetEvent':_0x271dad,'clickOutsideToClose':!![],'locals':{'freshdeskAccount':_0x2848b8,'freshdeskAccounts':_0x349a73[_0x153d9a(0x314)][_0x153d9a(0x19c7)],'license':_0x349a73[_0x153d9a(0x2690)],'setting':_0x349a73[_0x153d9a(0x15b9)],'crudPermissions':_0x349a73[_0x153d9a(0x2514)]}});}function _0x528c4f(_0x9ae5a){const _0x1081fb=_0x3bc400;_0x54ee5d['intFreshdeskAccount']['delete']({'id':_0x9ae5a['id']})[_0x1081fb(0x2945)]['then'](function(){const _0x48594a=_0x1081fb;_0x3f65c0()[_0x48594a(0x2640)](_0x349a73[_0x48594a(0x314)]['rows'],{'id':_0x9ae5a['id']}),_0x349a73[_0x48594a(0x314)][_0x48594a(0x51c)]-=0x1,!_0x349a73[_0x48594a(0x314)]['rows'][_0x48594a(0x402)]&&_0x349a73[_0x48594a(0x686)](),_0x10eb80[_0x48594a(0x1c75)]({'title':_0x3f65c0()[_0x48594a(0x20d1)]('FreshdeskAccount')+'\x20deleted!','msg':_0x9ae5a[_0x48594a(0x19eb)]?_0x9ae5a[_0x48594a(0x19eb)]+_0x48594a(0x23e3):''});})['catch'](function(_0x3845ef){const _0x10087f=_0x1081fb;if(_0x3845ef[_0x10087f(0x524)]&&_0x3845ef['data'][_0x10087f(0xcef)]&&_0x3845ef[_0x10087f(0x524)]['errors'][_0x10087f(0x402)]){_0x349a73[_0x10087f(0xcef)]=_0x3845ef[_0x10087f(0x524)][_0x10087f(0xcef)]||[{'message':_0x3845ef[_0x10087f(0xd5f)](),'type':_0x10087f(0x208a)}];for(let _0x2a06ba=0x0;_0x2a06ba<_0x3845ef[_0x10087f(0x524)]['errors']['length'];_0x2a06ba++){_0x10eb80[_0x10087f(0x1980)]({'title':_0x3845ef[_0x10087f(0x524)][_0x10087f(0xcef)][_0x2a06ba][_0x10087f(0x1142)],'msg':_0x3845ef[_0x10087f(0x524)][_0x10087f(0xcef)][_0x2a06ba][_0x10087f(0x7fd)]});}}else _0x10eb80['error']({'title':_0x3845ef['status']?'API:'+_0x3845ef[_0x10087f(0x107b)]+_0x10087f(0x1315)+_0x3845ef['statusText']:_0x10087f(0x208a),'msg':_0x3845ef[_0x10087f(0x524)]?JSON[_0x10087f(0x10bb)](_0x3845ef[_0x10087f(0x524)][_0x10087f(0x7fd)]):_0x3845ef[_0x10087f(0x7fd)]||_0x3845ef[_0x10087f(0xd5f)]()});});}function _0x524afa(){const _0x59054b=_0x3bc400,_0x31c3fb=angular[_0x59054b(0x235a)](_0x349a73[_0x59054b(0x1df3)]);return _0x349a73['selectedFreshdeskAccounts']=[],_0x31c3fb;}function _0x54e629(_0x7cdcf3){const _0x4caf4c=_0x3bc400,_0x306789=_0x537436['confirm']()['title'](_0x4caf4c(0x24fa))[_0x4caf4c(0x1cbe)](_0x4caf4c(0x16d3)+_0x349a73['selectedFreshdeskAccounts'][_0x4caf4c(0x402)]+'\x20selected'+_0x4caf4c(0xe01))['ariaLabel']('delete\x20FreshdeskAccounts')['targetEvent'](_0x7cdcf3)['ok']('OK')[_0x4caf4c(0x6c3)]('CANCEL');_0x537436['show'](_0x306789)[_0x4caf4c(0x146b)](function(){const _0x4fd410=_0x4caf4c;_0x349a73[_0x4fd410(0x1df3)][_0x4fd410(0x1df5)](function(_0x16bb4f){_0x528c4f(_0x16bb4f);}),_0x349a73[_0x4fd410(0x1df3)]=[];});}function _0x58b3dc(){const _0x45db04=_0x3bc400;_0x349a73[_0x45db04(0x1df3)]=[];}function _0x4b35a6(){const _0x3de62b=_0x3bc400;_0x349a73[_0x3de62b(0x1df3)]=_0x349a73['freshdeskAccounts'][_0x3de62b(0x19c7)];}}const _0x52d955=_0x7b624d;;_0x3de127[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),'$state','$location',_0x313a4d(0x10e8),'$q',_0x313a4d(0x214b),_0x313a4d(0x1fe4),_0x313a4d(0x16b6),_0x313a4d(0x158),_0x313a4d(0x247f),_0x313a4d(0xa87),_0x313a4d(0x2690),_0x313a4d(0x15b9),_0x313a4d(0x2514)];function _0x3de127(_0xba7134,_0x46423b,_0x2781e6,_0x31fb9d,_0x5e8944,_0x224b8e,_0x14c728,_0x358525,_0x7adae6,_0x4058d7,_0x4d7e98,_0x174762,_0x402b0c,_0x196345){const _0x1164ac=_0x313a4d,_0x3a27a9=this;_0x3a27a9[_0x1164ac(0x2321)]=_0x4d7e98['getCurrentUser'](),_0x3a27a9[_0x1164ac(0xcef)]=[],_0x3a27a9['setting']=_0x402b0c,_0x3a27a9[_0x1164ac(0x2690)]=_0x174762,_0x3a27a9[_0x1164ac(0x2514)]=_0x196345,_0x3a27a9[_0x1164ac(0x855)]={},_0x3a27a9[_0x1164ac(0x2251)]=_0x3a27a9[_0x1164ac(0x15b9)]&&_0x3a27a9['setting'][_0x1164ac(0x976)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3a27a9[_0x1164ac(0x1189)]='INTEGRATIONS.EDIT_FRESHSALESACCOUNT',_0x3a27a9[_0x1164ac(0x158)]=angular['copy'](_0x7adae6),_0x3a27a9[_0x1164ac(0x16b6)]=_0x358525,_0x3a27a9[_0x1164ac(0x2287)]=![];!_0x3a27a9[_0x1164ac(0x158)]&&(_0x3a27a9[_0x1164ac(0x158)]={'serverUrl':_0x2781e6[_0x1164ac(0x2414)]()+_0x1164ac(0xb0e)+_0x2781e6[_0x1164ac(0x148e)]()+(_0x2781e6[_0x1164ac(0x1553)]()?':'+_0x2781e6[_0x1164ac(0x1553)]():'')},_0x3a27a9[_0x1164ac(0x1189)]=_0x1164ac(0x147a),_0x3a27a9['newFreshsalesAccount']=!![]);_0x3a27a9[_0x1164ac(0x1d25)]=_0x393c58,_0x3a27a9[_0x1164ac(0x6b6)]=_0x43932f,_0x3a27a9['deleteFreshsalesAccount']=_0x5f56a0,_0x3a27a9[_0x1164ac(0xe73)]=_0x270aaa,_0x3a27a9['closeDialog']=_0x117757;function _0x393c58(){const _0x4ff3be=_0x1164ac;_0x3a27a9['errors']=[],_0x4058d7[_0x4ff3be(0x219f)][_0x4ff3be(0x1e3)](_0x3a27a9['freshsalesAccount'])[_0x4ff3be(0x2945)]['then'](function(_0x41e682){const _0x57b9d3=_0x4ff3be;_0x3a27a9[_0x57b9d3(0x16b6)][_0x57b9d3(0xb3d)](_0x41e682[_0x57b9d3(0x2488)]()),_0x14c728[_0x57b9d3(0x1c75)]({'title':_0x57b9d3(0x1f04),'msg':_0x3a27a9[_0x57b9d3(0x158)]['name']?_0x3a27a9[_0x57b9d3(0x158)]['name']+'\x20has\x20been\x20created!':''}),_0x117757(_0x41e682);})[_0x4ff3be(0x129e)](function(_0x5b6d41){const _0x44c9a2=_0x4ff3be;if(_0x5b6d41['data']&&_0x5b6d41['data']['errors']&&_0x5b6d41[_0x44c9a2(0x524)][_0x44c9a2(0xcef)]['length']){_0x3a27a9[_0x44c9a2(0xcef)]=_0x5b6d41[_0x44c9a2(0x524)][_0x44c9a2(0xcef)]||[{'message':_0x5b6d41['toString'](),'type':_0x44c9a2(0x1b85)}];for(let _0x15b262=0x0;_0x15b262<_0x5b6d41[_0x44c9a2(0x524)]['errors'][_0x44c9a2(0x402)];_0x15b262+=0x1){_0x14c728['error']({'title':_0x5b6d41['data']['errors'][_0x15b262]['type'],'msg':_0x5b6d41['data'][_0x44c9a2(0xcef)][_0x15b262][_0x44c9a2(0x7fd)]});}}else _0x14c728['error']({'title':_0x5b6d41[_0x44c9a2(0x107b)]?'API:'+_0x5b6d41['status']+_0x44c9a2(0x1315)+_0x5b6d41[_0x44c9a2(0x167f)]:_0x44c9a2(0x1b85),'msg':_0x5b6d41[_0x44c9a2(0x524)]?JSON[_0x44c9a2(0x10bb)](_0x5b6d41['data'][_0x44c9a2(0x7fd)]):_0x5b6d41[_0x44c9a2(0xd5f)]()});});}function _0x43932f(){const _0x50f91b=_0x1164ac;_0x3a27a9[_0x50f91b(0xcef)]=[],_0x4058d7[_0x50f91b(0x219f)][_0x50f91b(0x18e1)]({'id':_0x3a27a9[_0x50f91b(0x158)]['id']},_0x3a27a9[_0x50f91b(0x158)])['$promise']['then'](function(_0x3642cc){const _0x10b226=_0x50f91b,_0x571763=_0x3f65c0()[_0x10b226(0xc84)](_0x3a27a9['freshsalesAccounts'],{'id':_0x3642cc['id']});_0x571763&&_0x3f65c0()[_0x10b226(0x168d)](_0x571763,_0x3f65c0()[_0x10b226(0x40e)](_0x3642cc[_0x10b226(0x2488)](),_0x3f65c0()[_0x10b226(0x627)](_0x571763))),_0x14c728['success']({'title':_0x10b226(0x1f1f),'msg':_0x3a27a9[_0x10b226(0x158)][_0x10b226(0x19eb)]?_0x3a27a9[_0x10b226(0x158)][_0x10b226(0x19eb)]+_0x10b226(0x24db):''}),_0x117757(_0x3642cc);})['catch'](function(_0x5ba37e){const _0x570651=_0x50f91b;if(_0x5ba37e[_0x570651(0x524)]&&_0x5ba37e[_0x570651(0x524)][_0x570651(0xcef)]&&_0x5ba37e[_0x570651(0x524)][_0x570651(0xcef)][_0x570651(0x402)]){_0x3a27a9[_0x570651(0xcef)]=_0x5ba37e['data'][_0x570651(0xcef)]||[{'message':_0x5ba37e['toString'](),'type':_0x570651(0x1460)}];for(let _0x2fa944=0x0;_0x2fa944<_0x5ba37e['data'][_0x570651(0xcef)][_0x570651(0x402)];_0x2fa944++){_0x14c728[_0x570651(0x1980)]({'title':_0x5ba37e[_0x570651(0x524)][_0x570651(0xcef)][_0x2fa944][_0x570651(0x1142)],'msg':_0x5ba37e[_0x570651(0x524)][_0x570651(0xcef)][_0x2fa944]['message']});}}else _0x14c728['error']({'title':_0x5ba37e[_0x570651(0x107b)]?_0x570651(0x262a)+_0x5ba37e['status']+_0x570651(0x1315)+_0x5ba37e[_0x570651(0x167f)]:'api.intFreshsalesAccount.update','msg':_0x5ba37e[_0x570651(0x524)]?JSON[_0x570651(0x10bb)](_0x5ba37e['data'][_0x570651(0x7fd)]):_0x5ba37e[_0x570651(0xd5f)]()});});}function _0x5f56a0(_0x9fa22d){const _0x3438c9=_0x1164ac;_0x3a27a9[_0x3438c9(0xcef)]=[];const _0x2c79e9=_0x31fb9d[_0x3438c9(0x1e8a)]()['title'](_0x3438c9(0x1d64))[_0x3438c9(0x80f)](_0x3438c9(0x2888))['ariaLabel'](_0x3438c9(0x225f))['ok']('Delete')[_0x3438c9(0x6c3)](_0x3438c9(0xcf0))['targetEvent'](_0x9fa22d);_0x31fb9d[_0x3438c9(0x2615)](_0x2c79e9)[_0x3438c9(0x146b)](function(){const _0x1f3990=_0x3438c9;_0x4058d7['intFreshsalesAccount'][_0x1f3990(0x1fac)]({'id':_0x3a27a9['freshsalesAccount']['id']})[_0x1f3990(0x2945)]['then'](function(){const _0x526c60=_0x1f3990;_0x3f65c0()[_0x526c60(0x2640)](_0x3a27a9[_0x526c60(0x16b6)],{'id':_0x3a27a9[_0x526c60(0x158)]['id']}),_0x14c728[_0x526c60(0x1c75)]({'title':_0x526c60(0x21bc),'msg':(_0x3a27a9['freshsalesAccount'][_0x526c60(0x19eb)]||_0x526c60(0x158))+_0x526c60(0x23e3)}),_0x117757(_0x3a27a9[_0x526c60(0x158)]);})[_0x1f3990(0x129e)](function(_0x52c1d3){const _0x2d67b9=_0x1f3990;if(_0x52c1d3['data']&&_0x52c1d3[_0x2d67b9(0x524)][_0x2d67b9(0xcef)]&&_0x52c1d3['data'][_0x2d67b9(0xcef)][_0x2d67b9(0x402)]){_0x3a27a9[_0x2d67b9(0xcef)]=_0x52c1d3['data'][_0x2d67b9(0xcef)]||[{'message':_0x52c1d3['toString'](),'type':_0x2d67b9(0x23cf)}];for(let _0x5eb8ae=0x0;_0x5eb8ae<_0x52c1d3[_0x2d67b9(0x524)][_0x2d67b9(0xcef)]['length'];_0x5eb8ae++){_0x14c728['error']({'title':_0x52c1d3[_0x2d67b9(0x524)][_0x2d67b9(0xcef)][_0x5eb8ae][_0x2d67b9(0x1142)],'msg':_0x52c1d3['data'][_0x2d67b9(0xcef)][_0x5eb8ae][_0x2d67b9(0x7fd)]});}}else _0x14c728[_0x2d67b9(0x1980)]({'title':_0x52c1d3['status']?_0x2d67b9(0x262a)+_0x52c1d3[_0x2d67b9(0x107b)]+'\x20-\x20'+_0x52c1d3['statusText']:_0x2d67b9(0x23cf),'msg':_0x52c1d3[_0x2d67b9(0x524)]?JSON['stringify'](_0x52c1d3[_0x2d67b9(0x524)][_0x2d67b9(0x7fd)]):_0x52c1d3[_0x2d67b9(0x7fd)]||_0x52c1d3[_0x2d67b9(0xd5f)]()});});},function(){});}function _0x270aaa(_0x1bcd1c){return _0x1bcd1c===null?undefined:new Date(_0x1bcd1c);}function _0x117757(_0x28742e){const _0x3e9b00=_0x1164ac;_0x31fb9d[_0x3e9b00(0x2458)](_0x28742e);}}const _0x298999=_0x3de127;;const _0x612fe=_0x4acfac['p']+_0x313a4d(0x2539);;const _0x39700e=_0x4acfac['p']+'src/js/modules/main/apps/integrations/views/freshsalesAccounts/edit/item/dialog.html/dialog.html';;_0x7567af[_0x313a4d(0x11c2)]=[_0x313a4d(0x10e8),_0x313a4d(0x4d8),_0x313a4d(0x247f),_0x313a4d(0x1fe4),_0x313a4d(0xa87)];function _0x7567af(_0x335af8,_0x23fc55,_0x29b39f,_0x5b26f3,_0x10c673){const _0xcab9fa=_0x313a4d,_0x33c11e=this;_0x33c11e[_0xcab9fa(0x2321)]=_0x10c673[_0xcab9fa(0xb12)](),_0x33c11e[_0xcab9fa(0x158)]={},_0x33c11e['freshsalesConfiguration']={},_0x33c11e[_0xcab9fa(0x1723)]=[],_0x33c11e[_0xcab9fa(0x5bc)]=-0x1,_0x33c11e[_0xcab9fa(0x2514)],_0x33c11e[_0xcab9fa(0x5aa)]=_0x4fd301,_0x33c11e[_0xcab9fa(0x2286)]=_0xa68d7b,_0x33c11e['createOrEditFreshsalesConfiguration']=_0xbf2a1d,_0x33c11e[_0xcab9fa(0x18ad)]=_0x8ad290;function _0x4fd301(_0x52feeb,_0x48247b){const _0x23eb0a=_0xcab9fa;_0x33c11e[_0x23eb0a(0x158)]=_0x52feeb,_0x33c11e[_0x23eb0a(0x2514)]=typeof _0x48247b!==_0x23eb0a(0x2274)?_0x48247b:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x29b39f['intFreshsalesAccount'][_0x23eb0a(0xeb)]({'id':_0x33c11e[_0x23eb0a(0x158)]['id'],'sort':_0x23eb0a(0x12f2)})[_0x23eb0a(0x2945)][_0x23eb0a(0x146b)](function(_0xa29128){const _0xa1091f=_0x23eb0a;return _0x33c11e[_0xa1091f(0x1723)]=_0xa29128[_0xa1091f(0x19c7)]?_0xa29128[_0xa1091f(0x19c7)]:[],_0x33c11e[_0xa1091f(0x1723)][_0xa1091f(0x402)]&&_0x33c11e[_0xa1091f(0x2286)](0x0),_0x29b39f[_0xa1091f(0x212)][_0xa1091f(0x16b4)]({'nolimit':!![],'sort':_0xa1091f(0x19eb)})[_0xa1091f(0x2945)];})[_0x23eb0a(0x146b)](function(_0x38e2e8){const _0x292192=_0x23eb0a;_0x33c11e['variables']=_0x38e2e8[_0x292192(0x19c7)]?_0x38e2e8[_0x292192(0x19c7)]:[],_0x33c11e[_0x292192(0x80c)]=_0x3f65c0()[_0x292192(0x194)](_0x33c11e[_0x292192(0x85b)],'id');})[_0x23eb0a(0x129e)](function(_0x239cc3){const _0x133a64=_0x23eb0a;_0x5b26f3['error']({'title':_0x239cc3[_0x133a64(0x107b)]?_0x133a64(0x262a)+_0x239cc3[_0x133a64(0x107b)]+'\x20-\x20'+_0x239cc3[_0x133a64(0x167f)]:_0x133a64(0x9e7),'msg':_0x239cc3[_0x133a64(0x524)]?JSON['stringify'](_0x239cc3['data']):_0x239cc3[_0x133a64(0xd5f)]()});});}function _0xa68d7b(_0x473a20){const _0x408fb4=_0xcab9fa;_0x33c11e[_0x408fb4(0xe46)]=_0x33c11e[_0x408fb4(0x1723)][_0x473a20],_0x33c11e[_0x408fb4(0x5bc)]=_0x473a20,_0x29b39f[_0x408fb4(0xe76)][_0x408fb4(0x18ee)]({'id':_0x33c11e[_0x408fb4(0xe46)]['id']})['$promise'][_0x408fb4(0x146b)](function(_0x255684){const _0x22c795=_0x408fb4;return _0x33c11e[_0x22c795(0x3c8)]=_0x255684[_0x22c795(0x19c7)]?_0x255684['rows']:[],_0x29b39f['intFreshsalesConfiguration'][_0x22c795(0xc2a)]({'id':_0x33c11e[_0x22c795(0xe46)]['id']})[_0x22c795(0x2945)];})[_0x408fb4(0x146b)](function(_0xbdd54a){const _0xfa8f69=_0x408fb4;return _0x33c11e[_0xfa8f69(0x2358)]=_0xbdd54a[_0xfa8f69(0x19c7)]?_0xbdd54a[_0xfa8f69(0x19c7)]:[],_0x29b39f[_0xfa8f69(0xe76)][_0xfa8f69(0x12ff)]({'id':_0x33c11e[_0xfa8f69(0xe46)]['id']})['$promise'];})['then'](function(_0x289e91){const _0x5ea7ff=_0x408fb4;_0x33c11e[_0x5ea7ff(0x2867)]=_0x289e91[_0x5ea7ff(0x19c7)]?_0x289e91[_0x5ea7ff(0x19c7)]:[];})['catch'](function(_0x348fe6){const _0x3e9d9e=_0x408fb4;_0x5b26f3[_0x3e9d9e(0x1980)]({'title':_0x348fe6[_0x3e9d9e(0x107b)]?'API:'+_0x348fe6[_0x3e9d9e(0x107b)]+_0x3e9d9e(0x1315)+_0x348fe6[_0x3e9d9e(0x167f)]:_0x3e9d9e(0x6ca),'msg':_0x348fe6[_0x3e9d9e(0x524)]?JSON[_0x3e9d9e(0x10bb)](_0x348fe6[_0x3e9d9e(0x524)]):_0x348fe6[_0x3e9d9e(0xd5f)]()});});}function _0xbf2a1d(_0x1aaeb1,_0x554348){const _0x4cd3e5=_0xcab9fa;_0x335af8[_0x4cd3e5(0x2615)]({'controller':_0x4cd3e5(0x10d0),'controllerAs':'vm','templateUrl':_0x612fe,'parent':angular[_0x4cd3e5(0x1853)](_0x23fc55[_0x4cd3e5(0x2586)]),'targetEvent':_0x1aaeb1,'clickOutsideToClose':!![],'locals':{'freshsalesConfiguration':_0x554348,'configurations':_0x33c11e[_0x4cd3e5(0x1723)],'license':null,'setting':null,'crudPermissions':_0x33c11e[_0x4cd3e5(0x2514)]}})[_0x4cd3e5(0x1ec6)](function(){_0x33c11e['getFreshsalesConfiguration'](0x0);});}function _0x8ad290(_0x925448,_0x9bab09){const _0x559f74=_0xcab9fa,_0x41efd7=_0x335af8[_0x559f74(0x1e8a)]()[_0x559f74(0x1189)](_0x559f74(0x150a))[_0x559f74(0x1cbe)](''+(_0x9bab09[_0x559f74(0x19eb)]||_0x559f74(0xe46))+_0x559f74(0x252f)+'\x20will\x20be\x20deleted.')[_0x559f74(0x4bd)]('delete\x20freshsalesConfiguration')[_0x559f74(0x1f27)](_0x925448)['ok']('OK')[_0x559f74(0x6c3)](_0x559f74(0x39a));_0x335af8[_0x559f74(0x2615)](_0x41efd7)[_0x559f74(0x146b)](function(){const _0x5755f2=_0x559f74;_0x29b39f[_0x5755f2(0xe76)]['delete']({'id':_0x9bab09['id']})[_0x5755f2(0x2945)][_0x5755f2(0x146b)](function(){const _0x1c3fa1=_0x5755f2;_0x3f65c0()[_0x1c3fa1(0x2640)](_0x33c11e[_0x1c3fa1(0x1723)],{'id':_0x9bab09['id']}),_0x5b26f3[_0x1c3fa1(0x1c75)]({'title':_0x1c3fa1(0x42f),'msg':_0x9bab09[_0x1c3fa1(0x19eb)]?_0x9bab09[_0x1c3fa1(0x19eb)]+_0x1c3fa1(0x23e3):''});})['catch'](function(_0x1c998d){const _0x1cbaa5=_0x5755f2;_0x5b26f3[_0x1cbaa5(0x1980)]({'title':_0x1c998d[_0x1cbaa5(0x107b)]?_0x1cbaa5(0x262a)+_0x1c998d[_0x1cbaa5(0x107b)]+'\x20-\x20'+_0x1c998d['statusText']:_0x1cbaa5(0xff1),'msg':_0x1c998d[_0x1cbaa5(0x524)]?JSON[_0x1cbaa5(0x10bb)](_0x1c998d[_0x1cbaa5(0x524)]):_0x1c998d[_0x1cbaa5(0xd5f)]()});})[_0x5755f2(0x1ec6)](function(){const _0x4e3269=_0x5755f2;_0x33c11e[_0x4e3269(0x2286)](0x0);});},function(){const _0x19ffad=_0x559f74;console[_0x19ffad(0x1a74)](_0x19ffad(0x39a));});}_0x33c11e[_0xcab9fa(0x15a6)]=[],_0x33c11e[_0xcab9fa(0x2665)]=_0x3298c3,_0x33c11e['deleteSubjectConfirm']=_0x597adf,_0x33c11e[_0xcab9fa(0x1777)]=_0x5884fe;function _0x3298c3(_0xc08410,_0x2338ae){const _0x324805=_0xcab9fa;_0x335af8[_0x324805(0x2615)]({'controller':_0x324805(0x248),'controllerAs':'vm','templateUrl':_0x39700e,'parent':angular[_0x324805(0x1853)](_0x23fc55[_0x324805(0x2586)]),'targetEvent':_0xc08410,'clickOutsideToClose':!![],'locals':{'type':_0x324805(0xe32),'item':_0x2338ae,'items':_0x33c11e['subjects'],'configuration':_0x33c11e[_0x324805(0xe46)],'account':_0x33c11e['freshsalesAccount'],'license':null,'setting':null,'crudPermissions':_0x33c11e[_0x324805(0x2514)]}});}function _0x2995e4(_0x3184cf){const _0x1c3206=_0xcab9fa;_0x29b39f['intFreshsalesField']['delete']({'id':_0x3184cf['id']})[_0x1c3206(0x2945)]['then'](function(){const _0x582944=_0x1c3206;_0x3f65c0()[_0x582944(0x2640)](_0x33c11e[_0x582944(0x3c8)],{'id':_0x3184cf['id']}),_0x5b26f3[_0x582944(0x1c75)]({'title':_0x582944(0x28e6),'msg':_0x582944(0x761)});})[_0x1c3206(0x129e)](function(_0x57fd90){const _0x1a0347=_0x1c3206;_0x5b26f3['error']({'title':_0x57fd90[_0x1a0347(0x107b)]?_0x1a0347(0x262a)+_0x57fd90[_0x1a0347(0x107b)]+'\x20-\x20'+_0x57fd90[_0x1a0347(0x167f)]:_0x1a0347(0xf6e),'msg':_0x57fd90['data']?JSON[_0x1a0347(0x10bb)](_0x57fd90[_0x1a0347(0x524)]):_0x57fd90[_0x1a0347(0xd5f)]()});});}function _0x597adf(_0x2ebb52,_0x334648){const _0x16d17f=_0xcab9fa,_0x4afdd4=_0x335af8[_0x16d17f(0x1e8a)]()['title'](_0x16d17f(0x317))[_0x16d17f(0x1cbe)](_0x16d17f(0xf7f)+_0x16d17f(0xe01))[_0x16d17f(0x4bd)](_0x16d17f(0x5d1))['targetEvent'](_0x2ebb52)['ok']('OK')[_0x16d17f(0x6c3)]('CANCEL');_0x335af8[_0x16d17f(0x2615)](_0x4afdd4)[_0x16d17f(0x146b)](function(){_0x2995e4(_0x334648);},function(){const _0x183fe8=_0x16d17f;console[_0x183fe8(0x1a74)](_0x183fe8(0x39a));});}function _0x5884fe(_0x53c1c0){const _0x5a932d=_0xcab9fa,_0x53cdc8=_0x335af8[_0x5a932d(0x1e8a)]()[_0x5a932d(0x1189)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20subjects?')[_0x5a932d(0x1cbe)](_0x5a932d(0x16d3)+_0x33c11e[_0x5a932d(0x15a6)]['length']+'\x20selected'+_0x5a932d(0xe01))[_0x5a932d(0x4bd)](_0x5a932d(0x1209))[_0x5a932d(0x1f27)](_0x53c1c0)['ok']('OK')[_0x5a932d(0x6c3)](_0x5a932d(0x39a));_0x335af8[_0x5a932d(0x2615)](_0x53cdc8)['then'](function(){const _0x5577c7=_0x5a932d;_0x33c11e[_0x5577c7(0x15a6)]['forEach'](function(_0x245a79){_0x2995e4(_0x245a79);}),_0x33c11e[_0x5577c7(0x15a6)]=[];});}_0x33c11e[_0xcab9fa(0x126)]=[],_0x33c11e[_0xcab9fa(0x18da)]=_0x15b23a,_0x33c11e['deleteDescriptionConfirm']=_0x914aae,_0x33c11e[_0xcab9fa(0x2241)]=_0x15976d;function _0x15b23a(_0x33d5dd,_0x5dc279){const _0x535d4d=_0xcab9fa;_0x335af8[_0x535d4d(0x2615)]({'controller':_0x535d4d(0x248),'controllerAs':'vm','templateUrl':_0x39700e,'parent':angular[_0x535d4d(0x1853)](_0x23fc55[_0x535d4d(0x2586)]),'targetEvent':_0x33d5dd,'clickOutsideToClose':!![],'locals':{'type':_0x535d4d(0xb17),'item':_0x5dc279,'items':_0x33c11e[_0x535d4d(0x2358)],'configuration':_0x33c11e[_0x535d4d(0xe46)],'account':_0x33c11e[_0x535d4d(0x158)],'license':null,'setting':null,'crudPermissions':_0x33c11e[_0x535d4d(0x2514)]}});}function _0x32c545(_0x39949d){const _0x31df5f=_0xcab9fa;_0x29b39f[_0x31df5f(0x6f8)][_0x31df5f(0x1fac)]({'id':_0x39949d['id']})[_0x31df5f(0x2945)][_0x31df5f(0x146b)](function(){const _0x263670=_0x31df5f;_0x3f65c0()['remove'](_0x33c11e[_0x263670(0x2358)],{'id':_0x39949d['id']}),_0x5b26f3[_0x263670(0x1c75)]({'title':_0x263670(0xaf8),'msg':_0x263670(0x8e3)});})[_0x31df5f(0x129e)](function(_0x5f4139){const _0x2c0bc6=_0x31df5f;_0x5b26f3[_0x2c0bc6(0x1980)]({'title':_0x5f4139[_0x2c0bc6(0x107b)]?_0x2c0bc6(0x262a)+_0x5f4139[_0x2c0bc6(0x107b)]+_0x2c0bc6(0x1315)+_0x5f4139[_0x2c0bc6(0x167f)]:'SYSTEM:DELETECONFIGURATIONFIELD','msg':_0x5f4139['data']?JSON[_0x2c0bc6(0x10bb)](_0x5f4139[_0x2c0bc6(0x524)]):_0x5f4139[_0x2c0bc6(0xd5f)]()});});}function _0x914aae(_0x5d6841,_0x491150){const _0x266c1d=_0xcab9fa,_0x8dbd52=_0x335af8[_0x266c1d(0x1e8a)]()['title'](_0x266c1d(0x1e9))['htmlContent'](_0x266c1d(0x2014)+_0x266c1d(0xe01))[_0x266c1d(0x4bd)]('delete\x20description')[_0x266c1d(0x1f27)](_0x5d6841)['ok']('OK')[_0x266c1d(0x6c3)]('CANCEL');_0x335af8['show'](_0x8dbd52)['then'](function(){_0x32c545(_0x491150);},function(){const _0x617516=_0x266c1d;console[_0x617516(0x1a74)](_0x617516(0x39a));});}function _0x15976d(_0x3f2219){const _0x2be32f=_0xcab9fa,_0x5b506a=_0x335af8['confirm']()[_0x2be32f(0x1189)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20descriptions?')[_0x2be32f(0x1cbe)](_0x2be32f(0x16d3)+_0x33c11e['selectedDescriptions'][_0x2be32f(0x402)]+_0x2be32f(0x2452)+_0x2be32f(0xe01))['ariaLabel'](_0x2be32f(0x1be7))[_0x2be32f(0x1f27)](_0x3f2219)['ok']('OK')[_0x2be32f(0x6c3)](_0x2be32f(0x39a));_0x335af8[_0x2be32f(0x2615)](_0x5b506a)['then'](function(){const _0x50fa70=_0x2be32f;_0x33c11e['selectedDescriptions'][_0x50fa70(0x1df5)](function(_0x4bb143){_0x32c545(_0x4bb143);}),_0x33c11e[_0x50fa70(0x126)]=[];});}_0x33c11e[_0xcab9fa(0x2605)]=[],_0x33c11e[_0xcab9fa(0x737)]=_0x2b9e76,_0x33c11e[_0xcab9fa(0x2180)]=_0x3dbe15,_0x33c11e[_0xcab9fa(0x816)]=_0x41bb72;function _0x2b9e76(_0x4c324d,_0x32d809){const _0x78e8cb=_0xcab9fa;_0x335af8[_0x78e8cb(0x2615)]({'controller':_0x78e8cb(0x248),'controllerAs':'vm','templateUrl':_0x39700e,'parent':angular[_0x78e8cb(0x1853)](_0x23fc55[_0x78e8cb(0x2586)]),'targetEvent':_0x4c324d,'clickOutsideToClose':!![],'locals':{'type':_0x78e8cb(0x65c),'item':_0x32d809,'items':_0x33c11e[_0x78e8cb(0x2867)],'configuration':_0x33c11e[_0x78e8cb(0xe46)],'account':_0x33c11e[_0x78e8cb(0x158)],'license':null,'setting':null,'crudPermissions':_0x33c11e[_0x78e8cb(0x2514)]}});}function _0x43b795(_0x7eed11){const _0x43236b=_0xcab9fa;_0x29b39f[_0x43236b(0x6f8)][_0x43236b(0x1fac)]({'id':_0x7eed11['id']})[_0x43236b(0x2945)][_0x43236b(0x146b)](function(){const _0x38dce9=_0x43236b;_0x3f65c0()[_0x38dce9(0x2640)](_0x33c11e['fields'],{'id':_0x7eed11['id']}),_0x5b26f3[_0x38dce9(0x1c75)]({'title':'Field\x20deleted!','msg':_0x38dce9(0x1c07)});})[_0x43236b(0x129e)](function(_0x249643){const _0x268a2f=_0x43236b;_0x5b26f3[_0x268a2f(0x1980)]({'title':_0x249643['status']?_0x268a2f(0x262a)+_0x249643['status']+_0x268a2f(0x1315)+_0x249643[_0x268a2f(0x167f)]:_0x268a2f(0xf6e),'msg':_0x249643['data']?JSON[_0x268a2f(0x10bb)](_0x249643[_0x268a2f(0x524)]):_0x249643[_0x268a2f(0xd5f)]()});});}function _0x3dbe15(_0x2977fb,_0x79894e){const _0x5b8a51=_0xcab9fa,_0x2b13b3=_0x335af8['confirm']()[_0x5b8a51(0x1189)](_0x5b8a51(0x17f6))['htmlContent'](_0x5b8a51(0x2216)+_0x5b8a51(0xe01))[_0x5b8a51(0x4bd)]('delete\x20field')['targetEvent'](_0x2977fb)['ok']('OK')['cancel'](_0x5b8a51(0x39a));_0x335af8[_0x5b8a51(0x2615)](_0x2b13b3)['then'](function(){_0x43b795(_0x79894e);},function(){const _0x160cc3=_0x5b8a51;console['log'](_0x160cc3(0x39a));});}function _0x41bb72(_0x20e924){const _0xaf57fa=_0xcab9fa,_0x12c025=_0x335af8[_0xaf57fa(0x1e8a)]()[_0xaf57fa(0x1189)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20fields?')[_0xaf57fa(0x1cbe)](_0xaf57fa(0x16d3)+_0x33c11e[_0xaf57fa(0x2605)][_0xaf57fa(0x402)]+_0xaf57fa(0x2452)+_0xaf57fa(0xe01))['ariaLabel'](_0xaf57fa(0x176a))['targetEvent'](_0x20e924)['ok']('OK')[_0xaf57fa(0x6c3)](_0xaf57fa(0x39a));_0x335af8[_0xaf57fa(0x2615)](_0x12c025)[_0xaf57fa(0x146b)](function(){const _0x30e1a9=_0xaf57fa;_0x33c11e[_0x30e1a9(0x2605)]['forEach'](function(_0x4b622f){_0x43b795(_0x4b622f);}),_0x33c11e[_0x30e1a9(0x2605)]=[];});}}const _0x1b12ab=_0x7567af;;_0x17aab6[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),'$state',_0x313a4d(0xd08),_0x313a4d(0x10e8),'$q','$translate',_0x313a4d(0x1fe4),_0x313a4d(0x1723),_0x313a4d(0xe46),_0x313a4d(0x247f),_0x313a4d(0xa87),_0x313a4d(0x2690),_0x313a4d(0x15b9),_0x313a4d(0x2514)];function _0x17aab6(_0xcac409,_0x2edcd4,_0x28b253,_0x5569f7,_0x1c7d75,_0x2e9aaa,_0x1b39ab,_0x1dc8e4,_0x865aa2,_0x273db2,_0x298041,_0x45291f,_0xf095a,_0x3890bb){const _0x1f6658=_0x313a4d,_0x341956=this;_0x341956[_0x1f6658(0x2321)]=_0x298041[_0x1f6658(0xb12)](),_0x341956[_0x1f6658(0xcef)]=[],_0x341956[_0x1f6658(0x15b9)]=_0xf095a,_0x341956[_0x1f6658(0x2690)]=_0x45291f,_0x341956[_0x1f6658(0x2514)]=_0x3890bb,_0x341956['hasModulePermissions']={},_0x341956[_0x1f6658(0x2251)]=_0x341956[_0x1f6658(0x15b9)]&&_0x341956['setting'][_0x1f6658(0x976)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x341956[_0x1f6658(0x1189)]=_0x1f6658(0x1867),_0x341956[_0x1f6658(0xe46)]=angular['copy'](_0x865aa2),_0x341956['configurations']=_0x1dc8e4,_0x341956[_0x1f6658(0x1eef)]=![];!_0x341956['freshsalesConfiguration']&&(_0x341956[_0x1f6658(0xe46)]={'channel':_0x1f6658(0xe6),'type':'inbound'},_0x341956[_0x1f6658(0x1189)]=_0x1f6658(0x8d7),_0x341956[_0x1f6658(0x1eef)]=!![]);_0x341956[_0x1f6658(0x1646)]=_0x34d0b5,_0x341956[_0x1f6658(0x23b3)]=_0x4064c4,_0x341956[_0x1f6658(0x18ad)]=_0x45e5a3,_0x341956[_0x1f6658(0xe73)]=_0x25bc5c,_0x341956[_0x1f6658(0x13f3)]=_0x10bdbb;function _0x34d0b5(){const _0x2a4cb6=_0x1f6658;_0x341956[_0x2a4cb6(0xcef)]=[],_0x273db2['intFreshsalesAccount'][_0x2a4cb6(0xa17)]({'id':_0x2edcd4[_0x2a4cb6(0x16a)]['id']},_0x341956[_0x2a4cb6(0xe46)])[_0x2a4cb6(0x2945)][_0x2a4cb6(0x146b)](function(_0x49084c){const _0x2c9c0f=_0x2a4cb6;_0x341956[_0x2c9c0f(0x1723)][_0x2c9c0f(0xb3d)](_0x49084c['toJSON']()),_0x1b39ab[_0x2c9c0f(0x1c75)]({'title':_0x2c9c0f(0xedb),'msg':_0x341956[_0x2c9c0f(0xe46)][_0x2c9c0f(0x19eb)]?_0x341956['freshsalesConfiguration'][_0x2c9c0f(0x19eb)]+_0x2c9c0f(0x1386):''}),_0x10bdbb(_0x49084c);})[_0x2a4cb6(0x129e)](function(_0x1ea1f1){const _0x63fc0=_0x2a4cb6;if(_0x1ea1f1[_0x63fc0(0x524)]&&_0x1ea1f1[_0x63fc0(0x524)][_0x63fc0(0xcef)]&&_0x1ea1f1[_0x63fc0(0x524)][_0x63fc0(0xcef)][_0x63fc0(0x402)]){_0x341956['errors']=_0x1ea1f1['data'][_0x63fc0(0xcef)]||[{'message':_0x1ea1f1[_0x63fc0(0xd5f)](),'type':_0x63fc0(0xbf5)}];for(let _0x1a4910=0x0;_0x1a4910<_0x1ea1f1[_0x63fc0(0x524)][_0x63fc0(0xcef)][_0x63fc0(0x402)];_0x1a4910+=0x1){_0x1b39ab[_0x63fc0(0x1980)]({'title':_0x1ea1f1['data']['errors'][_0x1a4910][_0x63fc0(0x1142)],'msg':_0x1ea1f1[_0x63fc0(0x524)][_0x63fc0(0xcef)][_0x1a4910][_0x63fc0(0x7fd)]});}}else _0x1b39ab[_0x63fc0(0x1980)]({'title':_0x1ea1f1['status']?_0x63fc0(0x262a)+_0x1ea1f1[_0x63fc0(0x107b)]+'\x20-\x20'+_0x1ea1f1['statusText']:'api.intFreshsalesConfiguration.save','msg':_0x1ea1f1[_0x63fc0(0x524)]?JSON[_0x63fc0(0x10bb)](_0x1ea1f1[_0x63fc0(0x524)][_0x63fc0(0x7fd)]):_0x1ea1f1['toString']()});});}function _0x4064c4(){const _0x1f066b=_0x1f6658;_0x341956[_0x1f066b(0xcef)]=[],_0x273db2[_0x1f066b(0xe76)][_0x1f066b(0x18e1)]({'id':_0x341956['freshsalesConfiguration']['id']},_0x341956['freshsalesConfiguration'])[_0x1f066b(0x2945)]['then'](function(_0x1a4e55){const _0x45b7ac=_0x1f066b,_0x147795=_0x3f65c0()[_0x45b7ac(0xc84)](_0x341956[_0x45b7ac(0x1723)],{'id':_0x1a4e55['id']});_0x147795&&_0x3f65c0()['merge'](_0x147795,_0x3f65c0()['pick'](_0x1a4e55[_0x45b7ac(0x2488)](),_0x3f65c0()[_0x45b7ac(0x627)](_0x147795))),_0x1b39ab[_0x45b7ac(0x1c75)]({'title':_0x45b7ac(0x13db),'msg':_0x341956[_0x45b7ac(0xe46)][_0x45b7ac(0x19eb)]?_0x341956[_0x45b7ac(0xe46)][_0x45b7ac(0x19eb)]+_0x45b7ac(0x24db):''}),_0x10bdbb(_0x1a4e55);})[_0x1f066b(0x129e)](function(_0x26228a){const _0x5d7217=_0x1f066b;if(_0x26228a[_0x5d7217(0x524)]&&_0x26228a['data']['errors']&&_0x26228a[_0x5d7217(0x524)]['errors'][_0x5d7217(0x402)]){_0x341956['errors']=_0x26228a[_0x5d7217(0x524)][_0x5d7217(0xcef)]||[{'message':_0x26228a[_0x5d7217(0xd5f)](),'type':_0x5d7217(0x180c)}];for(let _0x147afa=0x0;_0x147afa<_0x26228a[_0x5d7217(0x524)][_0x5d7217(0xcef)][_0x5d7217(0x402)];_0x147afa++){_0x1b39ab[_0x5d7217(0x1980)]({'title':_0x26228a[_0x5d7217(0x524)][_0x5d7217(0xcef)][_0x147afa][_0x5d7217(0x1142)],'msg':_0x26228a['data'][_0x5d7217(0xcef)][_0x147afa]['message']});}}else _0x1b39ab[_0x5d7217(0x1980)]({'title':_0x26228a[_0x5d7217(0x107b)]?'API:'+_0x26228a[_0x5d7217(0x107b)]+'\x20-\x20'+_0x26228a[_0x5d7217(0x167f)]:_0x5d7217(0x180c),'msg':_0x26228a[_0x5d7217(0x524)]?JSON[_0x5d7217(0x10bb)](_0x26228a[_0x5d7217(0x524)][_0x5d7217(0x7fd)]):_0x26228a['toString']()});});}function _0x45e5a3(_0x4a9e81){const _0x36c73b=_0x1f6658;_0x341956[_0x36c73b(0xcef)]=[];const _0x2a8bf2=_0x5569f7['confirm']()[_0x36c73b(0x1189)]('Are\x20you\x20sure?')['content'](_0x36c73b(0xfa8))['ariaLabel'](_0x36c73b(0x1cdc))['ok'](_0x36c73b(0x25de))[_0x36c73b(0x6c3)](_0x36c73b(0xcf0))['targetEvent'](_0x4a9e81);_0x5569f7[_0x36c73b(0x2615)](_0x2a8bf2)[_0x36c73b(0x146b)](function(){const _0x1314b9=_0x36c73b;_0x273db2[_0x1314b9(0xe76)]['delete']({'id':_0x341956[_0x1314b9(0xe46)]['id']})[_0x1314b9(0x2945)][_0x1314b9(0x146b)](function(){const _0x17bbc7=_0x1314b9;_0x3f65c0()[_0x17bbc7(0x2640)](_0x341956[_0x17bbc7(0x1723)],{'id':_0x341956[_0x17bbc7(0xe46)]['id']}),_0x1b39ab['success']({'title':_0x17bbc7(0x23a3),'msg':(_0x341956[_0x17bbc7(0xe46)][_0x17bbc7(0x19eb)]||'freshsalesConfiguration')+_0x17bbc7(0x23e3)}),_0x10bdbb(_0x341956[_0x17bbc7(0xe46)]);})[_0x1314b9(0x129e)](function(_0x5586db){const _0x43c06f=_0x1314b9;if(_0x5586db[_0x43c06f(0x524)]&&_0x5586db[_0x43c06f(0x524)][_0x43c06f(0xcef)]&&_0x5586db[_0x43c06f(0x524)]['errors'][_0x43c06f(0x402)]){_0x341956['errors']=_0x5586db[_0x43c06f(0x524)][_0x43c06f(0xcef)]||[{'message':_0x5586db[_0x43c06f(0xd5f)](),'type':_0x43c06f(0x13bd)}];for(let _0x3b778a=0x0;_0x3b778a<_0x5586db[_0x43c06f(0x524)][_0x43c06f(0xcef)][_0x43c06f(0x402)];_0x3b778a++){_0x1b39ab[_0x43c06f(0x1980)]({'title':_0x5586db[_0x43c06f(0x524)][_0x43c06f(0xcef)][_0x3b778a][_0x43c06f(0x1142)],'msg':_0x5586db['data']['errors'][_0x3b778a]['message']});}}else _0x1b39ab['error']({'title':_0x5586db[_0x43c06f(0x107b)]?'API:'+_0x5586db[_0x43c06f(0x107b)]+_0x43c06f(0x1315)+_0x5586db['statusText']:_0x43c06f(0x13bd),'msg':_0x5586db['data']?JSON[_0x43c06f(0x10bb)](_0x5586db[_0x43c06f(0x524)][_0x43c06f(0x7fd)]):_0x5586db[_0x43c06f(0x7fd)]||_0x5586db[_0x43c06f(0xd5f)]()});});},function(){});}function _0x25bc5c(_0xd61213){return _0xd61213===null?undefined:new Date(_0xd61213);}function _0x10bdbb(_0x4eaf51){const _0x173ac5=_0x1f6658;_0x5569f7[_0x173ac5(0x2458)](_0x4eaf51);}}const _0x250b10=_0x17aab6;;_0x30279b[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1862),_0x313a4d(0xd08),_0x313a4d(0x10e8),_0x313a4d(0x1fe4),'configuration','items',_0x313a4d(0x2711),_0x313a4d(0x1f8e),_0x313a4d(0x1142),_0x313a4d(0x247f),_0x313a4d(0xa87),'crudPermissions'];function _0x30279b(_0x2f49e6,_0x21dcd6,_0x4ff513,_0x5188fd,_0x3f6f35,_0x508f67,_0x1df093,_0x1f17cf,_0x1a1cbd,_0x3021fd,_0x1848ef,_0x582640,_0x5cd6a7){const _0x3167ee=_0x313a4d,_0x14a3e3=this;_0x14a3e3[_0x3167ee(0x2321)]=_0x582640[_0x3167ee(0xb12)](),_0x14a3e3[_0x3167ee(0xcef)]=[],_0x14a3e3['title']=_0x3167ee(0x28ec)+_0x3f65c0()['toUpper'](_0x3021fd),_0x14a3e3['item']=angular[_0x3167ee(0x235a)](_0x1f17cf),_0x14a3e3['items']=_0x1df093,_0x14a3e3[_0x3167ee(0x1142)]=_0x3021fd,_0x14a3e3['crudPermissions']=_0x5cd6a7,_0x14a3e3[_0x3167ee(0x23cd)]=![];!_0x14a3e3[_0x3167ee(0x2711)]&&(_0x14a3e3[_0x3167ee(0x2711)]={'type':'string'},_0x14a3e3['item'][_0x3f65c0()['capitalize'](_0x3021fd)+'Id']=_0x508f67['id'],_0x14a3e3['title']='INTEGRATIONS.NEW_'+_0x3f65c0()['toUpper'](_0x3021fd),_0x14a3e3[_0x3167ee(0x23cd)]=!![]);_0x14a3e3[_0x3167ee(0x1e65)]=_0x4b08e6,_0x14a3e3[_0x3167ee(0x150e)]=_0x40cc21,_0x14a3e3[_0x3167ee(0xbaf)]=_0x18e3cb,_0x14a3e3[_0x3167ee(0x21b1)]=_0x599ec6,_0x14a3e3['closeDialog']=_0x48a0d9,_0x1848ef[_0x3167ee(0x212)][_0x3167ee(0x16b4)]({'nolimit':!![]})['$promise']['then'](function(_0x3b4403){const _0x348899=_0x3167ee;return _0x14a3e3[_0x348899(0x85b)]=_0x3b4403[_0x348899(0x19c7)]?_0x3b4403[_0x348899(0x19c7)]:[],_0x1848ef[_0x348899(0x1cb3)][_0x348899(0x1ea2)]()['$promise'];})[_0x3167ee(0x146b)](function(_0xcb966d){const _0x1a4428=_0x3167ee;return _0x14a3e3[_0x1a4428(0x1c8a)]=_0x3f65c0()['difference'](_0x3f65c0()[_0x1a4428(0x627)](_0xcb966d),[_0x1a4428(0x2945),_0x1a4428(0x26f2),_0x1a4428(0xc68),_0x1a4428(0x144f),_0x1a4428(0xc3b)]),_0x14a3e3['voiceAgentReportColumns'][_0x1a4428(0x1f47)](_0x1a4428(0x643)),_0x1848ef[_0x1a4428(0x160)][_0x1a4428(0x1ea2)]()[_0x1a4428(0x2945)];})[_0x3167ee(0x146b)](function(_0x4bbc71){const _0xab8388=_0x3167ee;_0x14a3e3[_0xab8388(0x164b)]=_0x3f65c0()[_0xab8388(0xa62)](_0x3f65c0()[_0xab8388(0x627)](_0x4bbc71),[_0xab8388(0x2945),'$resolved',_0xab8388(0xc68),_0xab8388(0x144f),'sourceid']),_0x14a3e3[_0xab8388(0x164b)][_0xab8388(0x1f47)](_0xab8388(0x643));})[_0x3167ee(0x129e)](function(_0x10bbc8){const _0x10e9fc=_0x3167ee;_0x3f6f35[_0x10e9fc(0x1980)]({'title':_0x10bbc8['status']?_0x10e9fc(0x262a)+_0x10bbc8[_0x10e9fc(0x107b)]+_0x10e9fc(0x1315)+_0x10bbc8[_0x10e9fc(0x167f)]:_0x10e9fc(0x502),'msg':_0x10bbc8[_0x10e9fc(0x524)]?JSON[_0x10e9fc(0x10bb)](_0x10bbc8[_0x10e9fc(0x524)]):_0x10bbc8[_0x10e9fc(0xd5f)]()});}),_0x1848ef[_0x3167ee(0x219f)][_0x3167ee(0x12ff)]({'id':_0x1a1cbd['id'],'ticketType':_0x508f67[_0x3167ee(0x21be)]?_0x508f67[_0x3167ee(0x21be)]:undefined})[_0x3167ee(0x2945)][_0x3167ee(0x146b)](function(_0x3634ca){const _0x311fd4=_0x3167ee;_0x14a3e3['accountConnected']=!![],_0x14a3e3[_0x311fd4(0x2867)]=_0x3634ca['rows']?_0x3634ca[_0x311fd4(0x19c7)]:[],_0x14a3e3[_0x311fd4(0x2711)][_0x311fd4(0x2912)]&&(_0x14a3e3[_0x311fd4(0x165e)]=_0x3f65c0()[_0x311fd4(0xc84)](_0x14a3e3[_0x311fd4(0x2867)],{'id':_0x14a3e3['item'][_0x311fd4(0x2912)]}));})[_0x3167ee(0x129e)](function(_0x539746){const _0x1ff276=_0x3167ee;_0x14a3e3[_0x1ff276(0x822)]=![],console[_0x1ff276(0x1980)](_0x539746);});function _0x4b08e6(){const _0xbd8801=_0x3167ee;_0x14a3e3[_0xbd8801(0xcef)]=[],_0x14a3e3[_0xbd8801(0x165e)]&&(_0x14a3e3[_0xbd8801(0x2711)][_0xbd8801(0x2912)]=_0x14a3e3[_0xbd8801(0x165e)]['id'],_0x14a3e3[_0xbd8801(0x2711)][_0xbd8801(0x25e3)]=_0x14a3e3[_0xbd8801(0x165e)][_0xbd8801(0x19eb)],_0x14a3e3[_0xbd8801(0x2711)][_0xbd8801(0x165e)]=_0x14a3e3[_0xbd8801(0x165e)][_0xbd8801(0x1802)]),_0x1848ef['intFreshsalesField'][_0xbd8801(0x1e3)](_0x14a3e3['item'])['$promise'][_0xbd8801(0x146b)](function(_0x552b9d){const _0x28c240=_0xbd8801;_0x14a3e3[_0x28c240(0x1fd6)][_0x28c240(0xb3d)](_0x552b9d),_0x3f6f35['success']({'title':_0x3f65c0()[_0x28c240(0x83f)](_0x3021fd)+_0x28c240(0x1637),'msg':_0x3f65c0()[_0x28c240(0x83f)](_0x3021fd)+_0x28c240(0x1386)}),_0x48a0d9();})['catch'](function(_0x43a73b){const _0x4362ae=_0xbd8801;console['error'](_0x43a73b),_0x14a3e3['errors']=_0x43a73b[_0x4362ae(0x524)][_0x4362ae(0xcef)]||[{'message':_0x43a73b[_0x4362ae(0xd5f)](),'type':_0x4362ae(0x1ec4)}];});}function _0x40cc21(){const _0xda8a57=_0x3167ee;_0x14a3e3[_0xda8a57(0xcef)]=[],_0x14a3e3[_0xda8a57(0x165e)]&&(_0x14a3e3[_0xda8a57(0x2711)][_0xda8a57(0x2912)]=_0x14a3e3[_0xda8a57(0x165e)]['id'],_0x14a3e3[_0xda8a57(0x2711)][_0xda8a57(0x25e3)]=_0x14a3e3[_0xda8a57(0x165e)][_0xda8a57(0x19eb)],_0x14a3e3['item'][_0xda8a57(0x165e)]=_0x14a3e3[_0xda8a57(0x165e)]['custom']),_0x1848ef['intFreshsalesField'][_0xda8a57(0x18e1)]({'id':_0x14a3e3[_0xda8a57(0x2711)]['id']},_0x14a3e3[_0xda8a57(0x2711)])[_0xda8a57(0x2945)][_0xda8a57(0x146b)](function(_0x3b7b33){const _0x561f1a=_0xda8a57,_0x1be5fd=_0x3f65c0()[_0x561f1a(0xc84)](_0x14a3e3[_0x561f1a(0x1fd6)],{'id':_0x3b7b33['id']});_0x1be5fd&&_0x3f65c0()['merge'](_0x1be5fd,_0x3b7b33),_0x3f6f35[_0x561f1a(0x1c75)]({'title':_0x3f65c0()[_0x561f1a(0x83f)](_0x3021fd)+'\x20properly\x20saved!','msg':_0x3f65c0()[_0x561f1a(0x83f)](_0x3021fd)+_0x561f1a(0x24db)}),_0x48a0d9();})[_0xda8a57(0x129e)](function(_0x2bf7db){const _0xcc3632=_0xda8a57;console['error'](_0x2bf7db),_0x14a3e3[_0xcc3632(0xcef)]=_0x2bf7db[_0xcc3632(0x524)][_0xcc3632(0xcef)]||[{'message':_0x2bf7db[_0xcc3632(0xd5f)](),'type':'api.intItem.update'}];});}function _0x18e3cb(_0x5839d7){const _0x597674=_0x3167ee;_0x14a3e3[_0x597674(0xcef)]=[];const _0x559293=_0x5188fd[_0x597674(0x1e8a)]()['title'](_0x597674(0x1d64))[_0x597674(0x80f)]('The\x20'+_0x3021fd+_0x597674(0xe01))[_0x597674(0x4bd)]('Delete\x20'+_0x3f65c0()[_0x597674(0x83f)](_0x3021fd))['ok'](_0x597674(0x25de))[_0x597674(0x6c3)]('Cancel')['targetEvent'](_0x5839d7);_0x5188fd[_0x597674(0x2615)](_0x559293)['then'](function(){const _0xcd2c04=_0x597674;_0x1848ef['intFreshsalesField'][_0xcd2c04(0x1fac)]({'id':_0x14a3e3[_0xcd2c04(0x2711)]['id']})[_0xcd2c04(0x2945)]['then'](function(){const _0x54a0a5=_0xcd2c04;_0x3f65c0()[_0x54a0a5(0x2640)](_0x14a3e3[_0x54a0a5(0x1fd6)],{'id':_0x14a3e3['item']['id']}),_0x3f6f35[_0x54a0a5(0x1c75)]({'title':_0x3f65c0()['capitalize'](_0x3021fd)+'\x20properly\x20deleted!','msg':_0x3f65c0()[_0x54a0a5(0x83f)](_0x3021fd)+_0x54a0a5(0x23e3)}),_0x48a0d9();})[_0xcd2c04(0x129e)](function(_0x2e2556){const _0x530d1b=_0xcd2c04;console[_0x530d1b(0x1980)](_0x2e2556),_0x14a3e3[_0x530d1b(0xcef)]=_0x2e2556[_0x530d1b(0x524)][_0x530d1b(0xcef)]||[{'message':_0x2e2556[_0x530d1b(0xd5f)](),'type':_0x530d1b(0x1cb0)}];});},function(){});}function _0x599ec6(){const _0x489207=_0x3167ee;return _0x14a3e3[_0x489207(0x2711)]['variableName']!==undefined?_0x14a3e3[_0x489207(0x2711)][_0x489207(0x97f)]:'Please\x20select\x20a\x20variable';}function _0x48a0d9(){const _0x1057f8=_0x3167ee;_0x5188fd[_0x1057f8(0x2458)]();}}const _0xbf3cff=_0x30279b;;_0x40f22e[_0x313a4d(0x11c2)]=[_0x313a4d(0x1862),_0x313a4d(0xd08),'$mdDialog',_0x313a4d(0x4d8),_0x313a4d(0x214b),_0x313a4d(0x2690),_0x313a4d(0x15b9),_0x313a4d(0x247f),'toasty','Auth',_0x313a4d(0x158),_0x313a4d(0x1366)];function _0x40f22e(_0x1089bf,_0x57f6d6,_0x53fa06,_0x82a56f,_0x71f53,_0x163a4e,_0x5e5324,_0x37887d,_0xe27d39,_0x58703b,_0x1d8927,_0xb40b86){const _0x28ad7a=_0x313a4d,_0x5b3768=this;_0x5b3768[_0x28ad7a(0x2321)]=_0x58703b[_0x28ad7a(0xb12)](),_0x5b3768[_0x28ad7a(0x2690)]=_0x163a4e,_0x5b3768[_0x28ad7a(0x15b9)]=_0x5e5324,_0x5b3768[_0x28ad7a(0x2251)]=_0x5b3768[_0x28ad7a(0x15b9)][_0x28ad7a(0x976)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x5b3768['location']=_0x57f6d6[_0x28ad7a(0x2414)]()+_0x28ad7a(0xb0e)+_0x57f6d6[_0x28ad7a(0x148e)](),_0x5b3768[_0x28ad7a(0x158)]=_0x1d8927||_0x1089bf[_0x28ad7a(0x16a)]['freshsalesAccount']||{},_0x5b3768[_0x28ad7a(0x1366)]=_0xb40b86&&_0xb40b86[_0x28ad7a(0x51c)]==0x1?_0xb40b86[_0x28ad7a(0x19c7)][0x0]:null,_0x5b3768[_0x28ad7a(0x2514)]=_0x58703b[_0x28ad7a(0xe60)](_0x5b3768[_0x28ad7a(0x1366)]?_0x5b3768['userProfileSection'][_0x28ad7a(0x2514)]:null),_0x5b3768['hasModulePermissions']={},_0x5b3768[_0x28ad7a(0x1b09)]=_0x1089bf[_0x28ad7a(0x16a)]['tab']||0x0,_0x5b3768[_0x28ad7a(0x861)]=_0xe27d39['info'],_0x5b3768[_0x28ad7a(0x6ba)]=_0x58dd96,_0x5b3768[_0x28ad7a(0x6b6)]=_0x10e70b;function _0x58dd96(){const _0x1e527b=_0x28ad7a;_0x1089bf['go'](_0x1e527b(0x21f9),{},{'reload':_0x1e527b(0x21f9)});}function _0x10e70b(){const _0x28088a=_0x28ad7a;_0x37887d[_0x28088a(0x219f)][_0x28088a(0x18e1)]({'id':_0x5b3768[_0x28088a(0x158)]['id']},_0x5b3768[_0x28088a(0x158)])[_0x28088a(0x2945)][_0x28088a(0x146b)](function(){const _0xb8179b=_0x28088a;_0xe27d39[_0xb8179b(0x1c75)]({'title':_0xb8179b(0x13af),'msg':_0x5b3768[_0xb8179b(0x158)][_0xb8179b(0x19eb)]?_0x5b3768[_0xb8179b(0x158)][_0xb8179b(0x19eb)]+_0xb8179b(0x6b0):''});})[_0x28088a(0x129e)](function(_0x2e4104){const _0x50c53a=_0x28088a;_0xe27d39[_0x50c53a(0x1980)]({'title':_0x2e4104[_0x50c53a(0x107b)]?_0x50c53a(0x262a)+_0x2e4104[_0x50c53a(0x107b)]+_0x50c53a(0x1315)+_0x2e4104[_0x50c53a(0x167f)]:'SYSTEM:GETintFreshsalesAccount','msg':_0x2e4104[_0x50c53a(0x524)]?JSON[_0x50c53a(0x10bb)](_0x2e4104[_0x50c53a(0x524)]):_0x2e4104[_0x50c53a(0xd5f)]()});});}}const _0x944201=_0x40f22e;;const _0x3f0965=_0x4acfac['p']+_0x313a4d(0x1e22);;_0x157312['$inject']=['$scope',_0x313a4d(0x1aa9),_0x313a4d(0x1862),_0x313a4d(0x15fe),'$mdDialog',_0x313a4d(0x4d8),_0x313a4d(0x1abe),_0x313a4d(0x214b),'freshsalesAccounts',_0x313a4d(0x26b6),_0x313a4d(0x1366),_0x313a4d(0x247f),_0x313a4d(0x216c),_0x313a4d(0x1fe4),_0x313a4d(0xa87),_0x313a4d(0x2690),_0x313a4d(0x15b9)];function _0x157312(_0x2c66f1,_0x53b290,_0x1d5bb5,_0xc67b06,_0x4732e1,_0x22dcba,_0x125afd,_0x1ac2b0,_0x16aacc,_0x105ae2,_0x4d44b3,_0x3ac5a9,_0x4dc826,_0x430863,_0xa26960,_0x12bc39,_0x3937eb){const _0xf292c=_0x313a4d,_0x45c467=this;_0x45c467[_0xf292c(0x2690)]=_0x12bc39,_0x45c467[_0xf292c(0x15b9)]=_0x3937eb,_0x45c467[_0xf292c(0x2321)]=_0xa26960[_0xf292c(0xb12)](),_0x45c467[_0xf292c(0x16b6)]=_0x16aacc||{'count':0x0,'rows':[]},_0x45c467[_0xf292c(0x26b6)]=_0x105ae2,_0x45c467[_0xf292c(0x1366)]=_0x4d44b3&&_0x4d44b3[_0xf292c(0x51c)]==0x1?_0x4d44b3[_0xf292c(0x19c7)][0x0]:null,_0x45c467[_0xf292c(0x2514)]=_0xa26960[_0xf292c(0xe60)](_0x45c467[_0xf292c(0x1366)]?_0x45c467['userProfileSection'][_0xf292c(0x2514)]:null),_0x45c467['table']=_0xf292c(0x16b6),_0x45c467[_0xf292c(0x216a)]='',_0x45c467[_0xf292c(0x214f)]=null,_0x45c467[_0xf292c(0x3d9)]=[],_0x45c467[_0xf292c(0x1a56)]={'fields':_0xf292c(0xd82),'limit':0xa,'page':0x1},_0x45c467[_0xf292c(0x23f9)]=_0xad0ff7,_0x45c467[_0xf292c(0x1e60)]=_0x1ce1b8,_0x45c467[_0xf292c(0xf0a)]=_0x3a7d3b,_0x45c467[_0xf292c(0x1c75)]=_0x1e0000,_0x45c467['getFreshsalesAccounts']=_0x1c3101,_0x45c467[_0xf292c(0x262d)]=_0x1baf6e,_0x45c467['deleteFreshsalesAccount']=_0x41312e,_0x45c467['exportSelectedFreshsalesAccounts']=_0x3af367,_0x45c467['deleteSelectedFreshsalesAccounts']=_0x16a213,_0x45c467[_0xf292c(0x26d6)]=_0x2c8f87,_0x45c467[_0xf292c(0x1aa1)]=_0x4fcbe9;function _0xad0ff7(_0x70ef0e){const _0x4267c0=_0xf292c;_0x1d5bb5['go'](_0x4267c0(0x2946),{'id':_0x70ef0e['id'],'freshsalesAccount':_0x70ef0e,'crudPermissions':_0x45c467['crudPermissions']});}function _0x1ce1b8(_0x1c7f8d){const _0x15d1d0=_0xf292c;return _0x3ac5a9[_0x15d1d0(0x219f)][_0x15d1d0(0x12ff)]({'id':_0x1c7f8d['id'],'test':!![]})[_0x15d1d0(0x2945)][_0x15d1d0(0x146b)](function(){const _0x4540b8=_0x15d1d0;_0x430863[_0x4540b8(0x1c75)]({'title':_0x4540b8(0x1375),'msg':_0x4540b8(0x1893)});})[_0x15d1d0(0x129e)](function(_0xeae136){const _0x241acc=_0x15d1d0;_0x430863['error']({'title':_0x241acc(0x1375),'msg':_0xeae136[_0x241acc(0x524)]?_0xeae136[_0x241acc(0x524)][_0x241acc(0x7fd)]?_0xeae136[_0x241acc(0x524)][_0x241acc(0x7fd)]:JSON[_0x241acc(0x10bb)](_0xeae136[_0x241acc(0x524)]):_0xeae136['toString']()});});}function _0x3a7d3b(_0x470356,_0xc8735c){const _0xc03ea6=_0xf292c,_0xfd9ce8=_0x4732e1[_0xc03ea6(0x1e8a)]()[_0xc03ea6(0x1189)](_0xc03ea6(0xdb2)+_0x3f65c0()[_0xc03ea6(0x20d1)](_0xc03ea6(0x158))+'?')['htmlContent'](_0xc03ea6(0x16d3)+(_0x470356['name']||_0xc03ea6(0x158))+_0xc03ea6(0x252f)+_0xc03ea6(0xe01))[_0xc03ea6(0x4bd)](_0xc03ea6(0x252a))[_0xc03ea6(0x1f27)](_0xc8735c)['ok']('OK')[_0xc03ea6(0x6c3)](_0xc03ea6(0x39a));_0x4732e1[_0xc03ea6(0x2615)](_0xfd9ce8)[_0xc03ea6(0x146b)](function(){_0x41312e(_0x470356);},function(){const _0x2e61ed=_0xc03ea6;console[_0x2e61ed(0x1a74)](_0x2e61ed(0x39a));});}let _0x33d9bd=!![],_0x4147a2=0x1;_0x2c66f1[_0xf292c(0x21e8)](_0xf292c(0x2669),function(_0x1219a6,_0x512e58){const _0x252e08=_0xf292c;_0x33d9bd?_0x125afd(function(){_0x33d9bd=![];}):(!_0x512e58&&(_0x4147a2=_0x45c467['query'][_0x252e08(0x844)]),_0x1219a6!==_0x512e58&&(_0x45c467[_0x252e08(0x1a56)][_0x252e08(0x844)]=0x1),!_0x1219a6&&(_0x45c467[_0x252e08(0x1a56)][_0x252e08(0x844)]=_0x4147a2),_0x45c467['getFreshsalesAccounts']());});function _0x1e0000(_0x2c5ff4){const _0x36fc66=_0xf292c;_0x45c467[_0x36fc66(0x16b6)]=_0x2c5ff4||{'count':0x0,'rows':[]};}function _0x1c3101(){const _0x1706bc=_0xf292c;_0x45c467[_0x1706bc(0x1a56)]['offset']=(_0x45c467[_0x1706bc(0x1a56)][_0x1706bc(0x844)]-0x1)*_0x45c467[_0x1706bc(0x1a56)][_0x1706bc(0x221e)],_0xa26960['hasRole'](_0x1706bc(0x174b))?_0x45c467[_0x1706bc(0xb9c)]=_0x3ac5a9[_0x1706bc(0x219f)][_0x1706bc(0x16b4)](_0x45c467['query'],_0x1e0000)[_0x1706bc(0x2945)]:(_0x45c467['query']['id']=_0x45c467[_0x1706bc(0x26b6)]['id'],_0x45c467[_0x1706bc(0x1a56)][_0x1706bc(0x2146)]=_0x1706bc(0x185a),_0x45c467[_0x1706bc(0xb9c)]=_0x3ac5a9[_0x1706bc(0x26b6)][_0x1706bc(0x158f)](_0x45c467['query'],_0x1e0000)[_0x1706bc(0x2945)]);}function _0x1baf6e(_0x177450,_0xb12994){const _0x4ba66a=_0xf292c;_0x4732e1[_0x4ba66a(0x2615)]({'controller':_0x4ba66a(0x61e),'controllerAs':'vm','templateUrl':_0x3f0965,'parent':angular[_0x4ba66a(0x1853)](_0x22dcba['body']),'targetEvent':_0x177450,'clickOutsideToClose':!![],'locals':{'freshsalesAccount':_0xb12994,'freshsalesAccounts':_0x45c467[_0x4ba66a(0x16b6)]['rows'],'license':_0x45c467[_0x4ba66a(0x2690)],'setting':_0x45c467[_0x4ba66a(0x15b9)],'crudPermissions':_0x45c467['crudPermissions']}});}function _0x41312e(_0x411e52){const _0x28958b=_0xf292c;_0x3ac5a9[_0x28958b(0x219f)][_0x28958b(0x1fac)]({'id':_0x411e52['id']})[_0x28958b(0x2945)][_0x28958b(0x146b)](function(){const _0xc78fe3=_0x28958b;_0x3f65c0()[_0xc78fe3(0x2640)](_0x45c467[_0xc78fe3(0x16b6)][_0xc78fe3(0x19c7)],{'id':_0x411e52['id']}),_0x45c467[_0xc78fe3(0x16b6)]['count']-=0x1,!_0x45c467['freshsalesAccounts']['rows'][_0xc78fe3(0x402)]&&_0x45c467[_0xc78fe3(0x1eee)](),_0x430863[_0xc78fe3(0x1c75)]({'title':_0x3f65c0()[_0xc78fe3(0x20d1)](_0xc78fe3(0xc77))+_0xc78fe3(0x201c),'msg':_0x411e52[_0xc78fe3(0x19eb)]?_0x411e52[_0xc78fe3(0x19eb)]+_0xc78fe3(0x23e3):''});})[_0x28958b(0x129e)](function(_0x2ff8c5){const _0x2ad3fd=_0x28958b;if(_0x2ff8c5['data']&&_0x2ff8c5[_0x2ad3fd(0x524)][_0x2ad3fd(0xcef)]&&_0x2ff8c5[_0x2ad3fd(0x524)]['errors'][_0x2ad3fd(0x402)]){_0x45c467[_0x2ad3fd(0xcef)]=_0x2ff8c5['data'][_0x2ad3fd(0xcef)]||[{'message':_0x2ff8c5[_0x2ad3fd(0xd5f)](),'type':_0x2ad3fd(0x7e4)}];for(let _0x2abcef=0x0;_0x2abcef<_0x2ff8c5['data'][_0x2ad3fd(0xcef)][_0x2ad3fd(0x402)];_0x2abcef++){_0x430863[_0x2ad3fd(0x1980)]({'title':_0x2ff8c5[_0x2ad3fd(0x524)]['errors'][_0x2abcef]['type'],'msg':_0x2ff8c5[_0x2ad3fd(0x524)][_0x2ad3fd(0xcef)][_0x2abcef]['message']});}}else _0x430863[_0x2ad3fd(0x1980)]({'title':_0x2ff8c5[_0x2ad3fd(0x107b)]?_0x2ad3fd(0x262a)+_0x2ff8c5[_0x2ad3fd(0x107b)]+_0x2ad3fd(0x1315)+_0x2ff8c5[_0x2ad3fd(0x167f)]:_0x2ad3fd(0x7e4),'msg':_0x2ff8c5[_0x2ad3fd(0x524)]?JSON[_0x2ad3fd(0x10bb)](_0x2ff8c5[_0x2ad3fd(0x524)][_0x2ad3fd(0x7fd)]):_0x2ff8c5[_0x2ad3fd(0x7fd)]||_0x2ff8c5['toString']()});});}function _0x3af367(){const _0x27a4a8=_0xf292c,_0x53836a=angular['copy'](_0x45c467['selectedFreshsalesAccounts']);return _0x45c467[_0x27a4a8(0x3d9)]=[],_0x53836a;}function _0x16a213(_0x4618d5){const _0x3d361f=_0xf292c,_0x15ede8=_0x4732e1[_0x3d361f(0x1e8a)]()['title'](_0x3d361f(0x2077))[_0x3d361f(0x1cbe)](_0x3d361f(0x16d3)+_0x45c467[_0x3d361f(0x3d9)]['length']+'\x20selected'+_0x3d361f(0xe01))['ariaLabel'](_0x3d361f(0x1884))[_0x3d361f(0x1f27)](_0x4618d5)['ok']('OK')['cancel'](_0x3d361f(0x39a));_0x4732e1[_0x3d361f(0x2615)](_0x15ede8)[_0x3d361f(0x146b)](function(){const _0x4b484d=_0x3d361f;_0x45c467['selectedFreshsalesAccounts'][_0x4b484d(0x1df5)](function(_0xd751a){_0x41312e(_0xd751a);}),_0x45c467[_0x4b484d(0x3d9)]=[];});}function _0x2c8f87(){const _0x5d78c6=_0xf292c;_0x45c467[_0x5d78c6(0x3d9)]=[];}function _0x4fcbe9(){const _0xbe475a=_0xf292c;_0x45c467[_0xbe475a(0x3d9)]=_0x45c467[_0xbe475a(0x16b6)][_0xbe475a(0x19c7)];}}const _0x8d5f5f=_0x157312;;_0x1ae921[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1862),_0x313a4d(0xd08),_0x313a4d(0x10e8),'$q','$translate',_0x313a4d(0x1fe4),_0x313a4d(0x24eb),'salesforceAccount','api',_0x313a4d(0xa87),_0x313a4d(0x2690),_0x313a4d(0x15b9),'crudPermissions'];function _0x1ae921(_0x17997c,_0x4b5351,_0x333137,_0x4f9eab,_0x5603cd,_0x205896,_0x2b83b4,_0x3f9e36,_0x2fb44f,_0x5bd020,_0x31a660,_0x400312,_0x1f75b2,_0x50bc39){const _0x5e3759=_0x313a4d,_0x438033=this;_0x438033[_0x5e3759(0x2321)]=_0x31a660[_0x5e3759(0xb12)](),_0x438033[_0x5e3759(0xcef)]=[],_0x438033[_0x5e3759(0x15b9)]=_0x1f75b2,_0x438033[_0x5e3759(0x2690)]=_0x400312,_0x438033[_0x5e3759(0x2514)]=_0x50bc39,_0x438033['hasModulePermissions']={},_0x438033[_0x5e3759(0x2251)]=_0x438033[_0x5e3759(0x15b9)]&&_0x438033[_0x5e3759(0x15b9)][_0x5e3759(0x976)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x438033[_0x5e3759(0x1189)]=_0x5e3759(0x2308),_0x438033['salesforceAccount']=angular[_0x5e3759(0x235a)](_0x2fb44f),_0x438033[_0x5e3759(0x24eb)]=_0x3f9e36,_0x438033['newSalesforceAccount']=![];!_0x438033[_0x5e3759(0x11e6)]&&(_0x438033[_0x5e3759(0x11e6)]={'type':_0x5e3759(0xb4b),'serverUrl':_0x333137['protocol']()+_0x5e3759(0xb0e)+_0x333137[_0x5e3759(0x148e)]()+(_0x333137[_0x5e3759(0x1553)]()?':'+_0x333137[_0x5e3759(0x1553)]():'')},_0x438033[_0x5e3759(0x1189)]=_0x5e3759(0x479),_0x438033[_0x5e3759(0xc6d)]=!![]);_0x438033['addNewSalesforceAccount']=_0x8ad4a0,_0x438033[_0x5e3759(0x20bf)]=_0x363a0d,_0x438033[_0x5e3759(0x32f)]=_0x26854b,_0x438033[_0x5e3759(0xe73)]=_0x50c633,_0x438033['closeDialog']=_0x19d304;function _0x8ad4a0(){const _0x1015a6=_0x5e3759;_0x438033[_0x1015a6(0xcef)]=[],_0x5bd020['intSalesforceAccount']['save'](_0x438033[_0x1015a6(0x11e6)])[_0x1015a6(0x2945)][_0x1015a6(0x146b)](function(_0x144821){const _0x36aad0=_0x1015a6;_0x438033[_0x36aad0(0x24eb)][_0x36aad0(0xb3d)](_0x144821[_0x36aad0(0x2488)]()),_0x2b83b4[_0x36aad0(0x1c75)]({'title':_0x36aad0(0x1875),'msg':_0x438033['salesforceAccount'][_0x36aad0(0x19eb)]?_0x438033['salesforceAccount'][_0x36aad0(0x19eb)]+_0x36aad0(0x1386):''}),_0x19d304(_0x144821);})[_0x1015a6(0x129e)](function(_0x2ba501){const _0x34b591=_0x1015a6;if(_0x2ba501[_0x34b591(0x524)]&&_0x2ba501['data'][_0x34b591(0xcef)]&&_0x2ba501['data']['errors']['length']){_0x438033['errors']=_0x2ba501[_0x34b591(0x524)][_0x34b591(0xcef)]||[{'message':_0x2ba501[_0x34b591(0xd5f)](),'type':'api.intSalesforceAccount.save'}];for(let _0x4beadd=0x0;_0x4beadd<_0x2ba501['data'][_0x34b591(0xcef)][_0x34b591(0x402)];_0x4beadd+=0x1){_0x2b83b4['error']({'title':_0x2ba501[_0x34b591(0x524)]['errors'][_0x4beadd][_0x34b591(0x1142)],'msg':_0x2ba501['data'][_0x34b591(0xcef)][_0x4beadd]['message']});}}else _0x2b83b4['error']({'title':_0x2ba501[_0x34b591(0x107b)]?_0x34b591(0x262a)+_0x2ba501[_0x34b591(0x107b)]+_0x34b591(0x1315)+_0x2ba501[_0x34b591(0x167f)]:'api.intSalesforceAccount.save','msg':_0x2ba501[_0x34b591(0x524)]?JSON[_0x34b591(0x10bb)](_0x2ba501[_0x34b591(0x524)][_0x34b591(0x7fd)]):_0x2ba501['toString']()});});}function _0x363a0d(){const _0x479b71=_0x5e3759;_0x438033[_0x479b71(0xcef)]=[],_0x5bd020['intSalesforceAccount']['update']({'id':_0x438033[_0x479b71(0x11e6)]['id']},_0x438033['salesforceAccount'])[_0x479b71(0x2945)][_0x479b71(0x146b)](function(_0x35a1cb){const _0x103e5d=_0x479b71,_0x24bfe7=_0x3f65c0()[_0x103e5d(0xc84)](_0x438033[_0x103e5d(0x24eb)],{'id':_0x35a1cb['id']});_0x24bfe7&&_0x3f65c0()[_0x103e5d(0x168d)](_0x24bfe7,_0x3f65c0()[_0x103e5d(0x40e)](_0x35a1cb['toJSON'](),_0x3f65c0()[_0x103e5d(0x627)](_0x24bfe7))),_0x2b83b4['success']({'title':'SalesforceAccount\x20properly\x20saved!','msg':_0x438033['salesforceAccount'][_0x103e5d(0x19eb)]?_0x438033[_0x103e5d(0x11e6)]['name']+_0x103e5d(0x24db):''}),_0x19d304(_0x35a1cb);})['catch'](function(_0x3b53b7){const _0xd1d05a=_0x479b71;if(_0x3b53b7['data']&&_0x3b53b7[_0xd1d05a(0x524)][_0xd1d05a(0xcef)]&&_0x3b53b7[_0xd1d05a(0x524)][_0xd1d05a(0xcef)][_0xd1d05a(0x402)]){_0x438033[_0xd1d05a(0xcef)]=_0x3b53b7[_0xd1d05a(0x524)]['errors']||[{'message':_0x3b53b7[_0xd1d05a(0xd5f)](),'type':_0xd1d05a(0x246f)}];for(let _0x461fe2=0x0;_0x461fe2<_0x3b53b7[_0xd1d05a(0x524)][_0xd1d05a(0xcef)]['length'];_0x461fe2++){_0x2b83b4[_0xd1d05a(0x1980)]({'title':_0x3b53b7[_0xd1d05a(0x524)][_0xd1d05a(0xcef)][_0x461fe2]['type'],'msg':_0x3b53b7[_0xd1d05a(0x524)]['errors'][_0x461fe2]['message']});}}else _0x2b83b4[_0xd1d05a(0x1980)]({'title':_0x3b53b7[_0xd1d05a(0x107b)]?_0xd1d05a(0x262a)+_0x3b53b7[_0xd1d05a(0x107b)]+'\x20-\x20'+_0x3b53b7['statusText']:_0xd1d05a(0x246f),'msg':_0x3b53b7['data']?JSON[_0xd1d05a(0x10bb)](_0x3b53b7[_0xd1d05a(0x524)][_0xd1d05a(0x7fd)]):_0x3b53b7[_0xd1d05a(0xd5f)]()});});}function _0x26854b(_0x545888){const _0x4ab943=_0x5e3759;_0x438033[_0x4ab943(0xcef)]=[];const _0x32929d=_0x4f9eab['confirm']()[_0x4ab943(0x1189)](_0x4ab943(0x1d64))[_0x4ab943(0x80f)](_0x4ab943(0x156e))[_0x4ab943(0x4bd)]('Delete\x20SalesforceAccount')['ok'](_0x4ab943(0x25de))[_0x4ab943(0x6c3)](_0x4ab943(0xcf0))['targetEvent'](_0x545888);_0x4f9eab[_0x4ab943(0x2615)](_0x32929d)[_0x4ab943(0x146b)](function(){const _0x41bc50=_0x4ab943;_0x5bd020['intSalesforceAccount'][_0x41bc50(0x1fac)]({'id':_0x438033[_0x41bc50(0x11e6)]['id']})[_0x41bc50(0x2945)][_0x41bc50(0x146b)](function(){const _0x11b9d5=_0x41bc50;_0x3f65c0()['remove'](_0x438033[_0x11b9d5(0x24eb)],{'id':_0x438033[_0x11b9d5(0x11e6)]['id']}),_0x2b83b4[_0x11b9d5(0x1c75)]({'title':_0x11b9d5(0xebf),'msg':(_0x438033[_0x11b9d5(0x11e6)][_0x11b9d5(0x19eb)]||_0x11b9d5(0x11e6))+_0x11b9d5(0x23e3)}),_0x19d304(_0x438033[_0x11b9d5(0x11e6)]);})[_0x41bc50(0x129e)](function(_0x29bc0f){const _0x5793df=_0x41bc50;if(_0x29bc0f[_0x5793df(0x524)]&&_0x29bc0f['data'][_0x5793df(0xcef)]&&_0x29bc0f[_0x5793df(0x524)][_0x5793df(0xcef)][_0x5793df(0x402)]){_0x438033[_0x5793df(0xcef)]=_0x29bc0f['data']['errors']||[{'message':_0x29bc0f[_0x5793df(0xd5f)](),'type':_0x5793df(0x161)}];for(let _0x40275f=0x0;_0x40275f<_0x29bc0f[_0x5793df(0x524)][_0x5793df(0xcef)]['length'];_0x40275f++){_0x2b83b4[_0x5793df(0x1980)]({'title':_0x29bc0f[_0x5793df(0x524)][_0x5793df(0xcef)][_0x40275f][_0x5793df(0x1142)],'msg':_0x29bc0f['data'][_0x5793df(0xcef)][_0x40275f][_0x5793df(0x7fd)]});}}else _0x2b83b4[_0x5793df(0x1980)]({'title':_0x29bc0f[_0x5793df(0x107b)]?_0x5793df(0x262a)+_0x29bc0f[_0x5793df(0x107b)]+_0x5793df(0x1315)+_0x29bc0f['statusText']:_0x5793df(0x161),'msg':_0x29bc0f[_0x5793df(0x524)]?JSON[_0x5793df(0x10bb)](_0x29bc0f[_0x5793df(0x524)]['message']):_0x29bc0f[_0x5793df(0x7fd)]||_0x29bc0f[_0x5793df(0xd5f)]()});});},function(){});}function _0x50c633(_0x44a481){return _0x44a481===null?undefined:new Date(_0x44a481);}function _0x19d304(_0x29f4a9){const _0x53803a=_0x5e3759;_0x4f9eab[_0x53803a(0x2458)](_0x29f4a9);}}const _0x4931d5=_0x1ae921;;const _0x3f050e=_0x4acfac['p']+_0x313a4d(0xf99);;const _0x26b142=_0x4acfac['p']+_0x313a4d(0x2377);;_0xa9c4d4['$inject']=[_0x313a4d(0x10e8),'$document',_0x313a4d(0x247f),_0x313a4d(0x1fe4),_0x313a4d(0xa87)];function _0xa9c4d4(_0x4fe4f4,_0x3f7218,_0xc2a841,_0x14adb2,_0x3852fc){const _0x537a7d=_0x313a4d,_0xee4c22=this;_0xee4c22[_0x537a7d(0x2321)]=_0x3852fc[_0x537a7d(0xb12)](),_0xee4c22[_0x537a7d(0x11e6)]={},_0xee4c22[_0x537a7d(0x1fea)]={},_0xee4c22[_0x537a7d(0x1723)]=[],_0xee4c22[_0x537a7d(0x204c)]=-0x1,_0xee4c22['crudPermissions'],_0xee4c22[_0x537a7d(0x5aa)]=_0x277339,_0xee4c22['getSalesforceConfiguration']=_0x44f023,_0xee4c22[_0x537a7d(0x2736)]=_0x19df85,_0xee4c22[_0x537a7d(0x770)]=_0x6e3b00,_0xee4c22['selectChangedAdvanced']=_0x342378;function _0x342378(){const _0x503818=_0x537a7d;return _0xc2a841['intSalesforceConfiguration'][_0x503818(0x18e1)]({'id':_0xee4c22[_0x503818(0x1fea)]['id']},_0xee4c22[_0x503818(0x1fea)])['$promise']['then'](function(){const _0xe51663=_0x503818;_0x14adb2[_0xe51663(0x1c75)]({'title':_0xe51663(0x1673),'msg':_0xe51663(0x116)});})['catch'](function(_0x4a986f){const _0x52d6b2=_0x503818;_0x14adb2[_0x52d6b2(0x1980)]({'title':_0x4a986f[_0x52d6b2(0x107b)]?'API:'+_0x4a986f[_0x52d6b2(0x107b)]+_0x52d6b2(0x1315)+_0x4a986f[_0x52d6b2(0x167f)]:_0x52d6b2(0x203b),'msg':_0x4a986f['data']?JSON['stringify'](_0x4a986f[_0x52d6b2(0x524)]):_0x4a986f[_0x52d6b2(0xd5f)]()});});}function _0x277339(_0x28a7b9,_0x4173cc){const _0x295e60=_0x537a7d;_0xee4c22[_0x295e60(0x11e6)]=_0x28a7b9,_0xee4c22[_0x295e60(0x2514)]=typeof _0x4173cc!==_0x295e60(0x2274)?_0x4173cc:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0xc2a841[_0x295e60(0x1fa4)][_0x295e60(0xeb)]({'id':_0xee4c22[_0x295e60(0x11e6)]['id'],'sort':_0x295e60(0x12f2)})['$promise'][_0x295e60(0x146b)](function(_0x464a23){const _0x16aef9=_0x295e60;return _0xee4c22[_0x16aef9(0x1723)]=_0x464a23['rows']?_0x464a23[_0x16aef9(0x19c7)]:[],_0xee4c22[_0x16aef9(0x1723)]['length']&&_0xee4c22[_0x16aef9(0x86e)](0x0),_0xc2a841[_0x16aef9(0x212)][_0x16aef9(0x16b4)]({'nolimit':!![],'sort':_0x16aef9(0x19eb)})[_0x16aef9(0x2945)];})[_0x295e60(0x146b)](function(_0x538c87){const _0x1c15f3=_0x295e60;_0xee4c22[_0x1c15f3(0x85b)]=_0x538c87[_0x1c15f3(0x19c7)]?_0x538c87[_0x1c15f3(0x19c7)]:[],_0xee4c22[_0x1c15f3(0x80c)]=_0x3f65c0()[_0x1c15f3(0x194)](_0xee4c22['variables'],'id');})[_0x295e60(0x129e)](function(_0x2271f7){const _0x3cac02=_0x295e60;_0x14adb2[_0x3cac02(0x1980)]({'title':_0x2271f7[_0x3cac02(0x107b)]?_0x3cac02(0x262a)+_0x2271f7['status']+_0x3cac02(0x1315)+_0x2271f7[_0x3cac02(0x167f)]:_0x3cac02(0x9e7),'msg':_0x2271f7[_0x3cac02(0x524)]?JSON[_0x3cac02(0x10bb)](_0x2271f7[_0x3cac02(0x524)]):_0x2271f7[_0x3cac02(0xd5f)]()});});}function _0x44f023(_0x43f065){const _0x40cb18=_0x537a7d;_0xee4c22['salesforceConfiguration']=_0xee4c22['configurations'][_0x43f065],_0xee4c22[_0x40cb18(0x204c)]=_0x43f065,_0xc2a841['intSalesforceConfiguration'][_0x40cb18(0x18ee)]({'id':_0xee4c22[_0x40cb18(0x1fea)]['id']})[_0x40cb18(0x2945)][_0x40cb18(0x146b)](function(_0x2a646d){const _0x26a800=_0x40cb18;return _0xee4c22[_0x26a800(0x3c8)]=_0x2a646d[_0x26a800(0x19c7)]?_0x2a646d[_0x26a800(0x19c7)]:[],_0xc2a841[_0x26a800(0x1e6)][_0x26a800(0xc2a)]({'id':_0xee4c22[_0x26a800(0x1fea)]['id']})[_0x26a800(0x2945)];})[_0x40cb18(0x146b)](function(_0x232662){const _0x5be09d=_0x40cb18;return _0xee4c22['descriptions']=_0x232662[_0x5be09d(0x19c7)]?_0x232662['rows']:[],_0xc2a841[_0x5be09d(0x1e6)][_0x5be09d(0x12ff)]({'id':_0xee4c22['salesforceConfiguration']['id']})[_0x5be09d(0x2945)];})[_0x40cb18(0x146b)](function(_0x1ba90c){const _0x270018=_0x40cb18;_0xee4c22[_0x270018(0x2867)]=_0x1ba90c[_0x270018(0x19c7)]?_0x1ba90c[_0x270018(0x19c7)]:[];})[_0x40cb18(0x129e)](function(_0x408d69){const _0x44570e=_0x40cb18;_0x14adb2[_0x44570e(0x1980)]({'title':_0x408d69['status']?_0x44570e(0x262a)+_0x408d69[_0x44570e(0x107b)]+_0x44570e(0x1315)+_0x408d69['statusText']:_0x44570e(0x6ca),'msg':_0x408d69[_0x44570e(0x524)]?JSON[_0x44570e(0x10bb)](_0x408d69[_0x44570e(0x524)]):_0x408d69[_0x44570e(0xd5f)]()});});}function _0x19df85(_0x186bae,_0x513b7a){const _0x235740=_0x537a7d;_0x4fe4f4[_0x235740(0x2615)]({'controller':_0x235740(0x73f),'controllerAs':'vm','templateUrl':_0x3f050e,'parent':angular[_0x235740(0x1853)](_0x3f7218[_0x235740(0x2586)]),'targetEvent':_0x186bae,'clickOutsideToClose':!![],'locals':{'salesforceConfiguration':_0x513b7a,'configurations':_0xee4c22['configurations'],'license':null,'setting':null,'crudPermissions':_0xee4c22['crudPermissions']}})['finally'](function(){const _0x47b483=_0x235740;_0xee4c22[_0x47b483(0x86e)](0x0);});}function _0x6e3b00(_0x546760,_0x465ba7){const _0x2c2f96=_0x537a7d,_0xbdf81f=_0x4fe4f4['confirm']()[_0x2c2f96(0x1189)](_0x2c2f96(0x35e))['htmlContent'](_0x2c2f96(0x16d3)+(_0x465ba7['name']||'salesforceConfiguration')+''+_0x2c2f96(0xe01))[_0x2c2f96(0x4bd)]('delete\x20salesforceConfiguration')[_0x2c2f96(0x1f27)](_0x546760)['ok']('OK')[_0x2c2f96(0x6c3)]('CANCEL');_0x4fe4f4[_0x2c2f96(0x2615)](_0xbdf81f)[_0x2c2f96(0x146b)](function(){const _0x388ab1=_0x2c2f96;_0xc2a841['intSalesforceConfiguration'][_0x388ab1(0x1fac)]({'id':_0x465ba7['id']})[_0x388ab1(0x2945)][_0x388ab1(0x146b)](function(){const _0x27c664=_0x388ab1;_0x3f65c0()[_0x27c664(0x2640)](_0xee4c22[_0x27c664(0x1723)],{'id':_0x465ba7['id']}),_0x14adb2['success']({'title':'SalesforceConfiguration\x20deleted!','msg':_0x465ba7['name']?_0x465ba7[_0x27c664(0x19eb)]+'\x20has\x20been\x20deleted!':''});})[_0x388ab1(0x129e)](function(_0x43725b){const _0x23807d=_0x388ab1;_0x14adb2[_0x23807d(0x1980)]({'title':_0x43725b[_0x23807d(0x107b)]?_0x23807d(0x262a)+_0x43725b['status']+_0x23807d(0x1315)+_0x43725b[_0x23807d(0x167f)]:_0x23807d(0xff1),'msg':_0x43725b[_0x23807d(0x524)]?JSON[_0x23807d(0x10bb)](_0x43725b[_0x23807d(0x524)]):_0x43725b[_0x23807d(0xd5f)]()});})['finally'](function(){const _0x475251=_0x388ab1;_0xee4c22[_0x475251(0x86e)](0x0);});},function(){const _0x48257f=_0x2c2f96;console[_0x48257f(0x1a74)](_0x48257f(0x39a));});}_0xee4c22[_0x537a7d(0x15a6)]=[],_0xee4c22[_0x537a7d(0x2665)]=_0x2fd1fe,_0xee4c22['deleteSubjectConfirm']=_0x45f6c5,_0xee4c22[_0x537a7d(0x1777)]=_0x92f784;function _0x2fd1fe(_0x49d045,_0x4ecd2d){const _0x430bdd=_0x537a7d;_0x4fe4f4[_0x430bdd(0x2615)]({'controller':_0x430bdd(0x4ad),'controllerAs':'vm','templateUrl':_0x26b142,'parent':angular[_0x430bdd(0x1853)](_0x3f7218[_0x430bdd(0x2586)]),'targetEvent':_0x49d045,'clickOutsideToClose':!![],'locals':{'type':_0x430bdd(0xe32),'item':_0x4ecd2d,'items':_0xee4c22[_0x430bdd(0x3c8)],'configuration':_0xee4c22['salesforceConfiguration'],'account':_0xee4c22['salesforceAccount'],'license':null,'setting':null,'crudPermissions':_0xee4c22[_0x430bdd(0x2514)]}});}function _0x16c3cb(_0x52f2a7){const _0x4449a9=_0x537a7d;_0xc2a841[_0x4449a9(0x1d8e)][_0x4449a9(0x1fac)]({'id':_0x52f2a7['id']})[_0x4449a9(0x2945)][_0x4449a9(0x146b)](function(){const _0x19dd74=_0x4449a9;_0x3f65c0()[_0x19dd74(0x2640)](_0xee4c22[_0x19dd74(0x3c8)],{'id':_0x52f2a7['id']}),_0x14adb2['success']({'title':_0x19dd74(0x28e6),'msg':_0x19dd74(0x761)});})[_0x4449a9(0x129e)](function(_0x2bbb2a){const _0x53442f=_0x4449a9;_0x14adb2['error']({'title':_0x2bbb2a[_0x53442f(0x107b)]?_0x53442f(0x262a)+_0x2bbb2a[_0x53442f(0x107b)]+_0x53442f(0x1315)+_0x2bbb2a[_0x53442f(0x167f)]:_0x53442f(0xf6e),'msg':_0x2bbb2a[_0x53442f(0x524)]?JSON[_0x53442f(0x10bb)](_0x2bbb2a['data']):_0x2bbb2a[_0x53442f(0xd5f)]()});});}function _0x45f6c5(_0x1f6b53,_0x56bee3){const _0x7dc559=_0x537a7d,_0x1d9934=_0x4fe4f4[_0x7dc559(0x1e8a)]()[_0x7dc559(0x1189)](_0x7dc559(0x317))[_0x7dc559(0x1cbe)](_0x7dc559(0xf7f)+_0x7dc559(0xe01))[_0x7dc559(0x4bd)](_0x7dc559(0x5d1))['targetEvent'](_0x1f6b53)['ok']('OK')[_0x7dc559(0x6c3)]('CANCEL');_0x4fe4f4[_0x7dc559(0x2615)](_0x1d9934)[_0x7dc559(0x146b)](function(){_0x16c3cb(_0x56bee3);},function(){const _0x327867=_0x7dc559;console[_0x327867(0x1a74)](_0x327867(0x39a));});}function _0x92f784(_0x1ee847){const _0x554801=_0x537a7d,_0x15f2f6=_0x4fe4f4[_0x554801(0x1e8a)]()[_0x554801(0x1189)](_0x554801(0x2e6))[_0x554801(0x1cbe)](''+_0xee4c22[_0x554801(0x15a6)][_0x554801(0x402)]+_0x554801(0x2452)+'\x20will\x20be\x20deleted.')[_0x554801(0x4bd)]('delete\x20subjects')[_0x554801(0x1f27)](_0x1ee847)['ok']('OK')[_0x554801(0x6c3)](_0x554801(0x39a));_0x4fe4f4[_0x554801(0x2615)](_0x15f2f6)[_0x554801(0x146b)](function(){const _0x3712d8=_0x554801;_0xee4c22[_0x3712d8(0x15a6)][_0x3712d8(0x1df5)](function(_0x1caed9){_0x16c3cb(_0x1caed9);}),_0xee4c22[_0x3712d8(0x15a6)]=[];});}_0xee4c22[_0x537a7d(0x126)]=[],_0xee4c22[_0x537a7d(0x18da)]=_0x3919cf,_0xee4c22[_0x537a7d(0xb29)]=_0x2e7af4,_0xee4c22[_0x537a7d(0x2241)]=_0x581d84;function _0x3919cf(_0x23e1a1,_0x4c743c){const _0x11fb63=_0x537a7d;_0x4fe4f4[_0x11fb63(0x2615)]({'controller':_0x11fb63(0x4ad),'controllerAs':'vm','templateUrl':_0x26b142,'parent':angular[_0x11fb63(0x1853)](_0x3f7218[_0x11fb63(0x2586)]),'targetEvent':_0x23e1a1,'clickOutsideToClose':!![],'locals':{'type':_0x11fb63(0xb17),'item':_0x4c743c,'items':_0xee4c22[_0x11fb63(0x2358)],'configuration':_0xee4c22[_0x11fb63(0x1fea)],'account':_0xee4c22[_0x11fb63(0x11e6)],'license':null,'setting':null,'crudPermissions':_0xee4c22[_0x11fb63(0x2514)]}});}function _0x5cb228(_0x3558b1){const _0x3b163a=_0x537a7d;_0xc2a841[_0x3b163a(0x1d8e)][_0x3b163a(0x1fac)]({'id':_0x3558b1['id']})[_0x3b163a(0x2945)][_0x3b163a(0x146b)](function(){const _0x1c7104=_0x3b163a;_0x3f65c0()[_0x1c7104(0x2640)](_0xee4c22[_0x1c7104(0x2358)],{'id':_0x3558b1['id']}),_0x14adb2['success']({'title':_0x1c7104(0xaf8),'msg':_0x1c7104(0x8e3)});})[_0x3b163a(0x129e)](function(_0x4cd6c5){const _0x5c5d18=_0x3b163a;_0x14adb2['error']({'title':_0x4cd6c5[_0x5c5d18(0x107b)]?_0x5c5d18(0x262a)+_0x4cd6c5[_0x5c5d18(0x107b)]+_0x5c5d18(0x1315)+_0x4cd6c5[_0x5c5d18(0x167f)]:_0x5c5d18(0xf6e),'msg':_0x4cd6c5[_0x5c5d18(0x524)]?JSON[_0x5c5d18(0x10bb)](_0x4cd6c5[_0x5c5d18(0x524)]):_0x4cd6c5[_0x5c5d18(0xd5f)]()});});}function _0x2e7af4(_0x12bd65,_0x16fee5){const _0x1f0eb5=_0x537a7d,_0x38c1f4=_0x4fe4f4['confirm']()['title'](_0x1f0eb5(0x1e9))['htmlContent'](_0x1f0eb5(0x2014)+_0x1f0eb5(0xe01))['ariaLabel'](_0x1f0eb5(0x1c5c))['targetEvent'](_0x12bd65)['ok']('OK')[_0x1f0eb5(0x6c3)]('CANCEL');_0x4fe4f4[_0x1f0eb5(0x2615)](_0x38c1f4)[_0x1f0eb5(0x146b)](function(){_0x5cb228(_0x16fee5);},function(){const _0xbe4e02=_0x1f0eb5;console['log'](_0xbe4e02(0x39a));});}function _0x581d84(_0x494472){const _0x25c6d2=_0x537a7d,_0x3a6a1c=_0x4fe4f4[_0x25c6d2(0x1e8a)]()['title'](_0x25c6d2(0x1acd))['htmlContent'](''+_0xee4c22['selectedDescriptions']['length']+_0x25c6d2(0x2452)+_0x25c6d2(0xe01))['ariaLabel'](_0x25c6d2(0x1be7))[_0x25c6d2(0x1f27)](_0x494472)['ok']('OK')[_0x25c6d2(0x6c3)]('CANCEL');_0x4fe4f4['show'](_0x3a6a1c)[_0x25c6d2(0x146b)](function(){const _0x3b2f55=_0x25c6d2;_0xee4c22[_0x3b2f55(0x126)][_0x3b2f55(0x1df5)](function(_0x314017){_0x5cb228(_0x314017);}),_0xee4c22['selectedDescriptions']=[];});}_0xee4c22[_0x537a7d(0x2605)]=[],_0xee4c22[_0x537a7d(0x737)]=_0x43d2ef,_0xee4c22[_0x537a7d(0x2180)]=_0x21ff4d,_0xee4c22['deleteSelectedFields']=_0x7ae44;function _0x43d2ef(_0x508ef1,_0x310542){const _0x31d90b=_0x537a7d;_0x4fe4f4[_0x31d90b(0x2615)]({'controller':_0x31d90b(0x4ad),'controllerAs':'vm','templateUrl':_0x26b142,'parent':angular[_0x31d90b(0x1853)](_0x3f7218[_0x31d90b(0x2586)]),'targetEvent':_0x508ef1,'clickOutsideToClose':!![],'locals':{'type':_0x31d90b(0x65c),'item':_0x310542,'items':_0xee4c22[_0x31d90b(0x2867)],'configuration':_0xee4c22[_0x31d90b(0x1fea)],'account':_0xee4c22[_0x31d90b(0x11e6)],'license':null,'setting':null,'crudPermissions':_0xee4c22['crudPermissions']}});}function _0xf46809(_0x521906){const _0x3d2031=_0x537a7d;_0xc2a841[_0x3d2031(0x1d8e)][_0x3d2031(0x1fac)]({'id':_0x521906['id']})[_0x3d2031(0x2945)]['then'](function(){const _0x379161=_0x3d2031;_0x3f65c0()[_0x379161(0x2640)](_0xee4c22[_0x379161(0x2867)],{'id':_0x521906['id']}),_0x14adb2[_0x379161(0x1c75)]({'title':_0x379161(0x24ce),'msg':_0x379161(0x1c07)});})[_0x3d2031(0x129e)](function(_0x2aa3d7){const _0x235ded=_0x3d2031;_0x14adb2[_0x235ded(0x1980)]({'title':_0x2aa3d7[_0x235ded(0x107b)]?_0x235ded(0x262a)+_0x2aa3d7[_0x235ded(0x107b)]+_0x235ded(0x1315)+_0x2aa3d7['statusText']:_0x235ded(0xf6e),'msg':_0x2aa3d7[_0x235ded(0x524)]?JSON[_0x235ded(0x10bb)](_0x2aa3d7[_0x235ded(0x524)]):_0x2aa3d7['toString']()});});}function _0x21ff4d(_0x396ec2,_0x481f5a){const _0xcf158b=_0x537a7d,_0xba2a2f=_0x4fe4f4[_0xcf158b(0x1e8a)]()[_0xcf158b(0x1189)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20field?')[_0xcf158b(0x1cbe)](_0xcf158b(0x2216)+_0xcf158b(0xe01))[_0xcf158b(0x4bd)]('delete\x20field')[_0xcf158b(0x1f27)](_0x396ec2)['ok']('OK')[_0xcf158b(0x6c3)](_0xcf158b(0x39a));_0x4fe4f4[_0xcf158b(0x2615)](_0xba2a2f)[_0xcf158b(0x146b)](function(){_0xf46809(_0x481f5a);},function(){const _0x1731e3=_0xcf158b;console[_0x1731e3(0x1a74)](_0x1731e3(0x39a));});}function _0x7ae44(_0x1e2507){const _0x51c3eb=_0x537a7d,_0x59da36=_0x4fe4f4[_0x51c3eb(0x1e8a)]()[_0x51c3eb(0x1189)](_0x51c3eb(0xe75))[_0x51c3eb(0x1cbe)](_0x51c3eb(0x16d3)+_0xee4c22['selectedFields'][_0x51c3eb(0x402)]+'\x20selected'+_0x51c3eb(0xe01))[_0x51c3eb(0x4bd)](_0x51c3eb(0x176a))[_0x51c3eb(0x1f27)](_0x1e2507)['ok']('OK')['cancel']('CANCEL');_0x4fe4f4[_0x51c3eb(0x2615)](_0x59da36)[_0x51c3eb(0x146b)](function(){const _0x4f50cf=_0x51c3eb;_0xee4c22[_0x4f50cf(0x2605)]['forEach'](function(_0xfc7cf0){_0xf46809(_0xfc7cf0);}),_0xee4c22[_0x4f50cf(0x2605)]=[];});}}const _0x1dbe55=_0xa9c4d4;;_0x587117[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),'$state',_0x313a4d(0xd08),_0x313a4d(0x10e8),'$q',_0x313a4d(0x214b),_0x313a4d(0x1fe4),'configurations',_0x313a4d(0x1fea),_0x313a4d(0x247f),_0x313a4d(0xa87),_0x313a4d(0x2690),_0x313a4d(0x15b9),_0x313a4d(0x2514)];function _0x587117(_0x181ff5,_0x3ec892,_0x4083d1,_0x30b822,_0x2aa6e0,_0x2358b5,_0x36abbe,_0x112203,_0x57efb2,_0x7d35b0,_0x19f943,_0x41410a,_0x21c399,_0x2ae537){const _0x589f7d=_0x313a4d,_0x2db6ae=this;_0x2db6ae[_0x589f7d(0x2321)]=_0x19f943[_0x589f7d(0xb12)](),_0x2db6ae[_0x589f7d(0xcef)]=[],_0x2db6ae['setting']=_0x21c399,_0x2db6ae[_0x589f7d(0x2690)]=_0x41410a,_0x2db6ae['crudPermissions']=_0x2ae537,_0x2db6ae['hasModulePermissions']={},_0x2db6ae[_0x589f7d(0x2251)]=_0x2db6ae[_0x589f7d(0x15b9)]&&_0x2db6ae[_0x589f7d(0x15b9)][_0x589f7d(0x976)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2db6ae[_0x589f7d(0x1189)]=_0x589f7d(0x24b7),_0x2db6ae[_0x589f7d(0x1fea)]=angular[_0x589f7d(0x235a)](_0x57efb2),_0x2db6ae[_0x589f7d(0x1723)]=_0x112203,_0x2db6ae['newSalesforceConfiguration']=![];!_0x2db6ae[_0x589f7d(0x1fea)]&&(_0x2db6ae[_0x589f7d(0x1fea)]={'channel':'voice','type':_0x589f7d(0x7b0),'ticketType':'Task'},_0x2db6ae[_0x589f7d(0x1189)]='INTEGRATIONS.NEW_SALESFORCECONFIGURATION',_0x2db6ae['newSalesforceConfiguration']=!![]);_0x2db6ae[_0x589f7d(0x1076)]=_0x40ba8f,_0x2db6ae['saveSalesforceConfiguration']=_0x20d510,_0x2db6ae[_0x589f7d(0x770)]=_0xdb2953,_0x2db6ae[_0x589f7d(0xe73)]=_0x4b3f66,_0x2db6ae[_0x589f7d(0x13f3)]=_0x21e569;function _0x40ba8f(){const _0x3c44c4=_0x589f7d;_0x2db6ae[_0x3c44c4(0xcef)]=[],_0x7d35b0[_0x3c44c4(0x1fa4)]['addConfiguration']({'id':_0x3ec892[_0x3c44c4(0x16a)]['id']},_0x2db6ae[_0x3c44c4(0x1fea)])[_0x3c44c4(0x2945)]['then'](function(_0x5d5d17){const _0x26adba=_0x3c44c4;_0x2db6ae['configurations']['unshift'](_0x5d5d17[_0x26adba(0x2488)]()),_0x36abbe[_0x26adba(0x1c75)]({'title':_0x26adba(0x504),'msg':_0x2db6ae[_0x26adba(0x1fea)][_0x26adba(0x19eb)]?_0x2db6ae[_0x26adba(0x1fea)][_0x26adba(0x19eb)]+'\x20has\x20been\x20created!':''}),_0x21e569(_0x5d5d17);})[_0x3c44c4(0x129e)](function(_0x49c60d){const _0x4ef896=_0x3c44c4;if(_0x49c60d['data']&&_0x49c60d[_0x4ef896(0x524)][_0x4ef896(0xcef)]&&_0x49c60d[_0x4ef896(0x524)][_0x4ef896(0xcef)][_0x4ef896(0x402)]){_0x2db6ae['errors']=_0x49c60d[_0x4ef896(0x524)][_0x4ef896(0xcef)]||[{'message':_0x49c60d[_0x4ef896(0xd5f)](),'type':_0x4ef896(0x22a1)}];for(let _0x4cf0ee=0x0;_0x4cf0ee<_0x49c60d['data'][_0x4ef896(0xcef)]['length'];_0x4cf0ee+=0x1){_0x36abbe[_0x4ef896(0x1980)]({'title':_0x49c60d[_0x4ef896(0x524)][_0x4ef896(0xcef)][_0x4cf0ee][_0x4ef896(0x1142)],'msg':_0x49c60d['data'][_0x4ef896(0xcef)][_0x4cf0ee][_0x4ef896(0x7fd)]});}}else _0x36abbe[_0x4ef896(0x1980)]({'title':_0x49c60d[_0x4ef896(0x107b)]?'API:'+_0x49c60d[_0x4ef896(0x107b)]+_0x4ef896(0x1315)+_0x49c60d['statusText']:_0x4ef896(0x22a1),'msg':_0x49c60d['data']?JSON[_0x4ef896(0x10bb)](_0x49c60d[_0x4ef896(0x524)][_0x4ef896(0x7fd)]):_0x49c60d['toString']()});});}function _0x20d510(){const _0x1ccb2a=_0x589f7d;_0x2db6ae[_0x1ccb2a(0xcef)]=[],_0x7d35b0['intSalesforceConfiguration'][_0x1ccb2a(0x18e1)]({'id':_0x2db6ae[_0x1ccb2a(0x1fea)]['id']},_0x2db6ae[_0x1ccb2a(0x1fea)])[_0x1ccb2a(0x2945)]['then'](function(_0x15e5e4){const _0x227861=_0x1ccb2a,_0x5a63fb=_0x3f65c0()[_0x227861(0xc84)](_0x2db6ae[_0x227861(0x1723)],{'id':_0x15e5e4['id']});_0x5a63fb&&_0x3f65c0()['merge'](_0x5a63fb,_0x3f65c0()[_0x227861(0x40e)](_0x15e5e4['toJSON'](),_0x3f65c0()[_0x227861(0x627)](_0x5a63fb))),_0x36abbe[_0x227861(0x1c75)]({'title':'SalesforceConfiguration\x20properly\x20saved!','msg':_0x2db6ae[_0x227861(0x1fea)][_0x227861(0x19eb)]?_0x2db6ae['salesforceConfiguration'][_0x227861(0x19eb)]+_0x227861(0x24db):''}),_0x21e569(_0x15e5e4);})[_0x1ccb2a(0x129e)](function(_0x558289){const _0x4924bb=_0x1ccb2a;if(_0x558289['data']&&_0x558289[_0x4924bb(0x524)][_0x4924bb(0xcef)]&&_0x558289[_0x4924bb(0x524)]['errors']['length']){_0x2db6ae[_0x4924bb(0xcef)]=_0x558289[_0x4924bb(0x524)][_0x4924bb(0xcef)]||[{'message':_0x558289['toString'](),'type':'api.intSalesforceConfiguration.update'}];for(let _0x16884e=0x0;_0x16884e<_0x558289['data'][_0x4924bb(0xcef)][_0x4924bb(0x402)];_0x16884e++){_0x36abbe[_0x4924bb(0x1980)]({'title':_0x558289[_0x4924bb(0x524)]['errors'][_0x16884e][_0x4924bb(0x1142)],'msg':_0x558289[_0x4924bb(0x524)]['errors'][_0x16884e][_0x4924bb(0x7fd)]});}}else _0x36abbe[_0x4924bb(0x1980)]({'title':_0x558289[_0x4924bb(0x107b)]?'API:'+_0x558289['status']+_0x4924bb(0x1315)+_0x558289[_0x4924bb(0x167f)]:_0x4924bb(0x9db),'msg':_0x558289[_0x4924bb(0x524)]?JSON[_0x4924bb(0x10bb)](_0x558289[_0x4924bb(0x524)][_0x4924bb(0x7fd)]):_0x558289[_0x4924bb(0xd5f)]()});});}function _0xdb2953(_0x19e9b7){const _0x4aed25=_0x589f7d;_0x2db6ae['errors']=[];const _0x465d9b=_0x30b822[_0x4aed25(0x1e8a)]()[_0x4aed25(0x1189)](_0x4aed25(0x1d64))['content'](_0x4aed25(0x12cd))[_0x4aed25(0x4bd)](_0x4aed25(0x1e53))['ok'](_0x4aed25(0x25de))[_0x4aed25(0x6c3)]('Cancel')[_0x4aed25(0x1f27)](_0x19e9b7);_0x30b822['show'](_0x465d9b)['then'](function(){const _0x7ddb8d=_0x4aed25;_0x7d35b0[_0x7ddb8d(0x1e6)][_0x7ddb8d(0x1fac)]({'id':_0x2db6ae[_0x7ddb8d(0x1fea)]['id']})['$promise'][_0x7ddb8d(0x146b)](function(){const _0x20b44f=_0x7ddb8d;_0x3f65c0()['remove'](_0x2db6ae[_0x20b44f(0x1723)],{'id':_0x2db6ae['salesforceConfiguration']['id']}),_0x36abbe[_0x20b44f(0x1c75)]({'title':'SalesforceConfiguration\x20properly\x20deleted!','msg':(_0x2db6ae[_0x20b44f(0x1fea)][_0x20b44f(0x19eb)]||_0x20b44f(0x1fea))+_0x20b44f(0x23e3)}),_0x21e569(_0x2db6ae['salesforceConfiguration']);})[_0x7ddb8d(0x129e)](function(_0x4875bf){const _0xb59214=_0x7ddb8d;if(_0x4875bf[_0xb59214(0x524)]&&_0x4875bf['data'][_0xb59214(0xcef)]&&_0x4875bf['data']['errors']['length']){_0x2db6ae[_0xb59214(0xcef)]=_0x4875bf[_0xb59214(0x524)][_0xb59214(0xcef)]||[{'message':_0x4875bf[_0xb59214(0xd5f)](),'type':_0xb59214(0x1e78)}];for(let _0xc84608=0x0;_0xc84608<_0x4875bf[_0xb59214(0x524)][_0xb59214(0xcef)][_0xb59214(0x402)];_0xc84608++){_0x36abbe[_0xb59214(0x1980)]({'title':_0x4875bf[_0xb59214(0x524)][_0xb59214(0xcef)][_0xc84608]['type'],'msg':_0x4875bf['data'][_0xb59214(0xcef)][_0xc84608][_0xb59214(0x7fd)]});}}else _0x36abbe['error']({'title':_0x4875bf[_0xb59214(0x107b)]?_0xb59214(0x262a)+_0x4875bf[_0xb59214(0x107b)]+'\x20-\x20'+_0x4875bf[_0xb59214(0x167f)]:_0xb59214(0x1e78),'msg':_0x4875bf[_0xb59214(0x524)]?JSON[_0xb59214(0x10bb)](_0x4875bf[_0xb59214(0x524)]['message']):_0x4875bf[_0xb59214(0x7fd)]||_0x4875bf[_0xb59214(0xd5f)]()});});},function(){});}function _0x4b3f66(_0xc4681){return _0xc4681===null?undefined:new Date(_0xc4681);}function _0x21e569(_0xa32be){const _0x3d033b=_0x589f7d;_0x30b822[_0x3d033b(0x2458)](_0xa32be);}}const _0x3562a6=_0x587117;;_0x123bb7[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),'$state',_0x313a4d(0xd08),_0x313a4d(0x10e8),_0x313a4d(0x1fe4),'configuration',_0x313a4d(0x1fd6),_0x313a4d(0x2711),_0x313a4d(0x1f8e),'type',_0x313a4d(0x247f),'Auth',_0x313a4d(0x2514)];function _0x123bb7(_0xd4baa7,_0x267437,_0x322428,_0x2bedc6,_0xda652a,_0x52a0c7,_0x484d91,_0x3e572c,_0xf07cca,_0x2a2805,_0x436d61,_0x454eb5,_0x4e1a67){const _0x38269e=_0x313a4d,_0x4d0d18=this;_0x4d0d18['currentUser']=_0x454eb5[_0x38269e(0xb12)](),_0x4d0d18[_0x38269e(0xcef)]=[],_0x4d0d18[_0x38269e(0x1189)]=_0x38269e(0x28ec)+_0x3f65c0()[_0x38269e(0xd39)](_0x2a2805),_0x4d0d18[_0x38269e(0x2711)]=angular[_0x38269e(0x235a)](_0x3e572c),_0x4d0d18[_0x38269e(0x1fd6)]=_0x484d91,_0x4d0d18[_0x38269e(0x1142)]=_0x2a2805,_0x4d0d18[_0x38269e(0x2514)]=_0x4e1a67,_0x4d0d18[_0x38269e(0x23cd)]=![];!_0x4d0d18[_0x38269e(0x2711)]&&(_0x4d0d18[_0x38269e(0x2711)]={'type':_0x38269e(0x1f23)},_0x4d0d18['item'][_0x3f65c0()[_0x38269e(0x83f)](_0x2a2805)+'Id']=_0x52a0c7['id'],_0x4d0d18[_0x38269e(0x1189)]='INTEGRATIONS.NEW_'+_0x3f65c0()[_0x38269e(0xd39)](_0x2a2805),_0x4d0d18['newItem']=!![]);_0x4d0d18[_0x38269e(0x1e65)]=_0x95fd2e,_0x4d0d18[_0x38269e(0x150e)]=_0x5d3f99,_0x4d0d18[_0x38269e(0xbaf)]=_0x5b5e45,_0x4d0d18[_0x38269e(0x21b1)]=_0x4e97fc,_0x4d0d18[_0x38269e(0x13f3)]=_0x5ae205,_0x436d61[_0x38269e(0x212)][_0x38269e(0x16b4)]({'nolimit':!![]})['$promise'][_0x38269e(0x146b)](function(_0x3a2a4a){const _0x71cca1=_0x38269e;return _0x4d0d18[_0x71cca1(0x85b)]=_0x3a2a4a[_0x71cca1(0x19c7)]?_0x3a2a4a[_0x71cca1(0x19c7)]:[],_0x436d61[_0x71cca1(0x1cb3)][_0x71cca1(0x1ea2)]()[_0x71cca1(0x2945)];})[_0x38269e(0x146b)](function(_0x28a6a5){const _0x4b828e=_0x38269e;return _0x4d0d18[_0x4b828e(0x1c8a)]=_0x3f65c0()[_0x4b828e(0xa62)](_0x3f65c0()[_0x4b828e(0x627)](_0x28a6a5),[_0x4b828e(0x2945),_0x4b828e(0x26f2),_0x4b828e(0xc68),_0x4b828e(0x144f),_0x4b828e(0xc3b)]),_0x4d0d18[_0x4b828e(0x1c8a)][_0x4b828e(0x1f47)](_0x4b828e(0x643)),_0x436d61[_0x4b828e(0x160)][_0x4b828e(0x1ea2)]()[_0x4b828e(0x2945)];})[_0x38269e(0x146b)](function(_0x4f4266){const _0x3a9951=_0x38269e;_0x4d0d18[_0x3a9951(0x164b)]=_0x3f65c0()['difference'](_0x3f65c0()[_0x3a9951(0x627)](_0x4f4266),[_0x3a9951(0x2945),_0x3a9951(0x26f2),_0x3a9951(0xc68),_0x3a9951(0x144f),_0x3a9951(0xc3b)]),_0x4d0d18[_0x3a9951(0x164b)][_0x3a9951(0x1f47)]('recordingURL');})['catch'](function(_0x2f32cd){const _0x19b850=_0x38269e;_0xda652a['error']({'title':_0x2f32cd[_0x19b850(0x107b)]?_0x19b850(0x262a)+_0x2f32cd[_0x19b850(0x107b)]+_0x19b850(0x1315)+_0x2f32cd[_0x19b850(0x167f)]:'SYSTEM:GETVARIABLES','msg':_0x2f32cd[_0x19b850(0x524)]?JSON[_0x19b850(0x10bb)](_0x2f32cd[_0x19b850(0x524)]):_0x2f32cd[_0x19b850(0xd5f)]()});}),_0x436d61['intSalesforceAccount'][_0x38269e(0x12ff)]({'id':_0xf07cca['id'],'ticketType':_0x52a0c7[_0x38269e(0x21be)]?_0x52a0c7['ticketType']:undefined})[_0x38269e(0x2945)][_0x38269e(0x146b)](function(_0x30d50d){const _0x50be3a=_0x38269e;_0x4d0d18[_0x50be3a(0x822)]=!![],_0x4d0d18[_0x50be3a(0x2867)]=_0x30d50d['rows']?_0x30d50d[_0x50be3a(0x19c7)]:[],_0x4d0d18['item'][_0x50be3a(0x2912)]&&(_0x4d0d18['customField']=_0x3f65c0()[_0x50be3a(0xc84)](_0x4d0d18['fields'],{'id':_0x4d0d18[_0x50be3a(0x2711)][_0x50be3a(0x2912)]}));})[_0x38269e(0x129e)](function(_0x23d5ed){const _0x5ad00a=_0x38269e;_0x4d0d18[_0x5ad00a(0x822)]=![],console[_0x5ad00a(0x1980)](_0x23d5ed);});function _0x95fd2e(){const _0x4f7ca=_0x38269e;_0x4d0d18[_0x4f7ca(0xcef)]=[],_0x4d0d18[_0x4f7ca(0x165e)]&&(_0x4d0d18[_0x4f7ca(0x2711)][_0x4f7ca(0x2912)]=_0x4d0d18[_0x4f7ca(0x165e)]['id'],_0x4d0d18[_0x4f7ca(0x2711)]['nameField']=_0x4d0d18[_0x4f7ca(0x165e)][_0x4f7ca(0x19eb)],_0x4d0d18['item'][_0x4f7ca(0x165e)]=_0x4d0d18[_0x4f7ca(0x165e)][_0x4f7ca(0x1802)]),_0x436d61[_0x4f7ca(0x1d8e)][_0x4f7ca(0x1e3)](_0x4d0d18[_0x4f7ca(0x2711)])['$promise'][_0x4f7ca(0x146b)](function(_0x5197ff){const _0x258c61=_0x4f7ca;_0x4d0d18[_0x258c61(0x1fd6)][_0x258c61(0xb3d)](_0x5197ff),_0xda652a[_0x258c61(0x1c75)]({'title':_0x3f65c0()[_0x258c61(0x83f)](_0x2a2805)+_0x258c61(0x1637),'msg':_0x3f65c0()['capitalize'](_0x2a2805)+'\x20has\x20been\x20created!'}),_0x5ae205();})[_0x4f7ca(0x129e)](function(_0x1b21c0){const _0xf06eab=_0x4f7ca;console[_0xf06eab(0x1980)](_0x1b21c0),_0x4d0d18['errors']=_0x1b21c0['data'][_0xf06eab(0xcef)]||[{'message':_0x1b21c0[_0xf06eab(0xd5f)](),'type':_0xf06eab(0x1ec4)}];});}function _0x5d3f99(){const _0x4a9f3e=_0x38269e;_0x4d0d18[_0x4a9f3e(0xcef)]=[],_0x4d0d18['customField']&&(_0x4d0d18[_0x4a9f3e(0x2711)][_0x4a9f3e(0x2912)]=_0x4d0d18[_0x4a9f3e(0x165e)]['id'],_0x4d0d18[_0x4a9f3e(0x2711)]['nameField']=_0x4d0d18['customField'][_0x4a9f3e(0x19eb)],_0x4d0d18[_0x4a9f3e(0x2711)]['customField']=_0x4d0d18[_0x4a9f3e(0x165e)][_0x4a9f3e(0x1802)]),_0x436d61[_0x4a9f3e(0x1d8e)]['update']({'id':_0x4d0d18[_0x4a9f3e(0x2711)]['id']},_0x4d0d18[_0x4a9f3e(0x2711)])['$promise'][_0x4a9f3e(0x146b)](function(_0x19b928){const _0xd2d7af=_0x4a9f3e,_0x47f1a0=_0x3f65c0()[_0xd2d7af(0xc84)](_0x4d0d18['items'],{'id':_0x19b928['id']});_0x47f1a0&&_0x3f65c0()['merge'](_0x47f1a0,_0x19b928),_0xda652a[_0xd2d7af(0x1c75)]({'title':_0x3f65c0()['capitalize'](_0x2a2805)+_0xd2d7af(0xffe),'msg':_0x3f65c0()[_0xd2d7af(0x83f)](_0x2a2805)+'\x20has\x20been\x20saved!'}),_0x5ae205();})['catch'](function(_0xb564f6){const _0x1b8971=_0x4a9f3e;console['error'](_0xb564f6),_0x4d0d18[_0x1b8971(0xcef)]=_0xb564f6['data'][_0x1b8971(0xcef)]||[{'message':_0xb564f6[_0x1b8971(0xd5f)](),'type':_0x1b8971(0x1b4)}];});}function _0x5b5e45(_0x44b419){const _0x22df70=_0x38269e;_0x4d0d18[_0x22df70(0xcef)]=[];const _0x10fb6d=_0x2bedc6['confirm']()[_0x22df70(0x1189)](_0x22df70(0x1d64))[_0x22df70(0x80f)](_0x22df70(0xe57)+_0x2a2805+'\x20will\x20be\x20deleted.')[_0x22df70(0x4bd)](_0x22df70(0xb22)+_0x3f65c0()[_0x22df70(0x83f)](_0x2a2805))['ok'](_0x22df70(0x25de))[_0x22df70(0x6c3)](_0x22df70(0xcf0))[_0x22df70(0x1f27)](_0x44b419);_0x2bedc6[_0x22df70(0x2615)](_0x10fb6d)[_0x22df70(0x146b)](function(){const _0x43d4e=_0x22df70;_0x436d61[_0x43d4e(0x1d8e)][_0x43d4e(0x1fac)]({'id':_0x4d0d18[_0x43d4e(0x2711)]['id']})[_0x43d4e(0x2945)][_0x43d4e(0x146b)](function(){const _0x280deb=_0x43d4e;_0x3f65c0()[_0x280deb(0x2640)](_0x4d0d18[_0x280deb(0x1fd6)],{'id':_0x4d0d18[_0x280deb(0x2711)]['id']}),_0xda652a['success']({'title':_0x3f65c0()[_0x280deb(0x83f)](_0x2a2805)+_0x280deb(0x1e6c),'msg':_0x3f65c0()[_0x280deb(0x83f)](_0x2a2805)+_0x280deb(0x23e3)}),_0x5ae205();})['catch'](function(_0x1455d0){const _0x1efb97=_0x43d4e;console[_0x1efb97(0x1980)](_0x1455d0),_0x4d0d18[_0x1efb97(0xcef)]=_0x1455d0[_0x1efb97(0x524)][_0x1efb97(0xcef)]||[{'message':_0x1455d0[_0x1efb97(0xd5f)](),'type':_0x1efb97(0x1cb0)}];});},function(){});}function _0x4e97fc(){const _0x137827=_0x38269e;return _0x4d0d18[_0x137827(0x2711)][_0x137827(0x97f)]!==undefined?_0x4d0d18[_0x137827(0x2711)]['variableName']:'Please\x20select\x20a\x20variable';}function _0x5ae205(){const _0x596bfe=_0x38269e;_0x2bedc6[_0x596bfe(0x2458)]();}}const _0x2ae4a3=_0x123bb7;;_0x51a096[_0x313a4d(0x11c2)]=[_0x313a4d(0x1862),_0x313a4d(0xd08),_0x313a4d(0x10e8),_0x313a4d(0x4d8),_0x313a4d(0x214b),'license','setting',_0x313a4d(0x247f),_0x313a4d(0x1fe4),'Auth',_0x313a4d(0x11e6),'userProfileSection'];function _0x51a096(_0xd8e5a6,_0x2fcb10,_0x1edb1e,_0x4e25a6,_0x3cff31,_0x4a9fdb,_0x5820c8,_0x40574e,_0x493933,_0x517af4,_0x442b70,_0x19c4ed){const _0x1ce0e9=_0x313a4d,_0x263dba=this;_0x263dba[_0x1ce0e9(0x2321)]=_0x517af4[_0x1ce0e9(0xb12)](),_0x263dba[_0x1ce0e9(0x2690)]=_0x4a9fdb,_0x263dba[_0x1ce0e9(0x15b9)]=_0x5820c8,_0x263dba[_0x1ce0e9(0x2251)]=_0x263dba[_0x1ce0e9(0x15b9)][_0x1ce0e9(0x976)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x263dba[_0x1ce0e9(0x1002)]=_0x2fcb10[_0x1ce0e9(0x2414)]()+_0x1ce0e9(0xb0e)+_0x2fcb10[_0x1ce0e9(0x148e)](),_0x263dba[_0x1ce0e9(0x11e6)]=_0x442b70||_0xd8e5a6['params'][_0x1ce0e9(0x11e6)]||{},_0x263dba[_0x1ce0e9(0x1366)]=_0x19c4ed&&_0x19c4ed[_0x1ce0e9(0x51c)]==0x1?_0x19c4ed[_0x1ce0e9(0x19c7)][0x0]:null,_0x263dba[_0x1ce0e9(0x2514)]=_0x517af4['parseCrudPermissions'](_0x263dba[_0x1ce0e9(0x1366)]?_0x263dba[_0x1ce0e9(0x1366)][_0x1ce0e9(0x2514)]:null),_0x263dba[_0x1ce0e9(0x855)]={},_0x263dba[_0x1ce0e9(0x1b09)]=_0xd8e5a6[_0x1ce0e9(0x16a)]['tab']||0x0,_0x263dba[_0x1ce0e9(0x861)]=_0x493933[_0x1ce0e9(0x271e)],_0x263dba[_0x1ce0e9(0xa23)]=_0x4ec791,_0x263dba['saveSalesforceAccount']=_0x516d9a;function _0x4ec791(){const _0x3c2c10=_0x1ce0e9;_0xd8e5a6['go'](_0x3c2c10(0x991),{},{'reload':'app.integrations.salesforceAccounts'});}function _0x516d9a(){const _0x264d65=_0x1ce0e9;_0x40574e[_0x264d65(0x1fa4)][_0x264d65(0x18e1)]({'id':_0x263dba[_0x264d65(0x11e6)]['id']},_0x263dba['salesforceAccount'])[_0x264d65(0x2945)][_0x264d65(0x146b)](function(){const _0x4e945c=_0x264d65;_0x493933[_0x4e945c(0x1c75)]({'title':_0x4e945c(0x20c),'msg':_0x263dba['salesforceAccount'][_0x4e945c(0x19eb)]?_0x263dba[_0x4e945c(0x11e6)][_0x4e945c(0x19eb)]+_0x4e945c(0x6b0):''});})[_0x264d65(0x129e)](function(_0x298d2f){const _0x188cc5=_0x264d65;_0x493933[_0x188cc5(0x1980)]({'title':_0x298d2f['status']?_0x188cc5(0x262a)+_0x298d2f[_0x188cc5(0x107b)]+_0x188cc5(0x1315)+_0x298d2f[_0x188cc5(0x167f)]:'SYSTEM:GETintSalesforceAccount','msg':_0x298d2f[_0x188cc5(0x524)]?JSON[_0x188cc5(0x10bb)](_0x298d2f[_0x188cc5(0x524)]):_0x298d2f[_0x188cc5(0xd5f)]()});});}}const _0x533452=_0x51a096;;const _0x55e956=_0x4acfac['p']+_0x313a4d(0x4da);;_0x270e6d['$inject']=['$scope',_0x313a4d(0x1aa9),_0x313a4d(0x1862),_0x313a4d(0x15fe),_0x313a4d(0x10e8),_0x313a4d(0x4d8),'$timeout',_0x313a4d(0x214b),_0x313a4d(0x24eb),_0x313a4d(0x26b6),'userProfileSection','api',_0x313a4d(0x216c),_0x313a4d(0x1fe4),_0x313a4d(0xa87),_0x313a4d(0x2690),_0x313a4d(0x15b9)];function _0x270e6d(_0x259697,_0x55e63a,_0x2f3c22,_0x44abd6,_0x53c724,_0x2d4fa3,_0x4e2280,_0x2646b4,_0xc4c75e,_0x2e1c33,_0xce15eb,_0x34e880,_0xe5850f,_0x13e05a,_0xe515d8,_0x2f2505,_0x57f998){const _0x8a383d=_0x313a4d,_0x47f8e9=this;_0x47f8e9[_0x8a383d(0x2690)]=_0x2f2505,_0x47f8e9[_0x8a383d(0x15b9)]=_0x57f998,_0x47f8e9[_0x8a383d(0x2321)]=_0xe515d8[_0x8a383d(0xb12)](),_0x47f8e9[_0x8a383d(0x24eb)]=_0xc4c75e||{'count':0x0,'rows':[]},_0x47f8e9[_0x8a383d(0x26b6)]=_0x2e1c33,_0x47f8e9[_0x8a383d(0x1366)]=_0xce15eb&&_0xce15eb[_0x8a383d(0x51c)]==0x1?_0xce15eb[_0x8a383d(0x19c7)][0x0]:null,_0x47f8e9['crudPermissions']=_0xe515d8[_0x8a383d(0xe60)](_0x47f8e9[_0x8a383d(0x1366)]?_0x47f8e9[_0x8a383d(0x1366)][_0x8a383d(0x2514)]:null),_0x47f8e9[_0x8a383d(0x768)]=_0x8a383d(0x24eb),_0x47f8e9[_0x8a383d(0x216a)]='',_0x47f8e9['listOrderAsc']=null,_0x47f8e9[_0x8a383d(0x278c)]=[],_0x47f8e9['query']={'fields':_0x8a383d(0x1a40),'limit':0xa,'page':0x1},_0x47f8e9[_0x8a383d(0x11da)]=_0x3f65c0()[_0x8a383d(0x194)]([{'option':'Integration_Tab','value':'\x27integrationTab\x27'},{'option':_0x8a383d(0xf6a),'value':'\x27newTab\x27'}],function(_0x5d8311){const _0x1407cc=_0x8a383d;return _0x3f65c0()[_0x1407cc(0x5f4)](_0x5d8311[_0x1407cc(0x175d)],new RegExp('\x27','g'),'');}),_0x47f8e9['editstate']=_0x32ba15,_0x47f8e9[_0x8a383d(0x1e60)]=_0x24c3c0,_0x47f8e9[_0x8a383d(0xf0a)]=_0x2214c2,_0x47f8e9[_0x8a383d(0x1c75)]=_0x34b670,_0x47f8e9[_0x8a383d(0x2234)]=_0x1b6d7a,_0x47f8e9['createOrEditSalesforceAccount']=_0x3af40b,_0x47f8e9[_0x8a383d(0x32f)]=_0x55144f,_0x47f8e9[_0x8a383d(0x2ef)]=_0x230b79,_0x47f8e9[_0x8a383d(0x1371)]=_0xc29d7d,_0x47f8e9['deselectSalesforceAccounts']=_0x12b533,_0x47f8e9[_0x8a383d(0xf2)]=_0x3d46e0;function _0x32ba15(_0xebc31b){const _0x4505fb=_0x8a383d;_0x2f3c22['go']('app.integrations.salesforceAccounts.edit',{'id':_0xebc31b['id'],'salesforceAccount':_0xebc31b,'crudPermissions':_0x47f8e9[_0x4505fb(0x2514)]});}function _0x24c3c0(_0x189b70){const _0x5d711c=_0x8a383d;return _0x34e880[_0x5d711c(0x1fa4)][_0x5d711c(0x12ff)]({'id':_0x189b70['id'],'test':!![]})[_0x5d711c(0x2945)][_0x5d711c(0x146b)](function(){const _0x46c8d5=_0x5d711c;_0x13e05a[_0x46c8d5(0x1c75)]({'title':'SalesforceAccount\x20properly\x20tested','msg':'Connection\x20succeded!'});})[_0x5d711c(0x129e)](function(_0x22e391){const _0x417eb0=_0x5d711c;_0x13e05a[_0x417eb0(0x1980)]({'title':'SalesforceAccount\x20properly\x20tested','msg':_0x22e391[_0x417eb0(0x524)]?_0x22e391[_0x417eb0(0x524)]['message']?_0x22e391['data'][_0x417eb0(0x7fd)]:JSON[_0x417eb0(0x10bb)](_0x22e391[_0x417eb0(0x524)]):_0x22e391['toString']()});});}function _0x2214c2(_0x4957c1,_0x214d31){const _0x52a437=_0x8a383d,_0x1c8320=_0x53c724['confirm']()[_0x52a437(0x1189)](_0x52a437(0xdb2)+_0x3f65c0()[_0x52a437(0x20d1)]('salesforceAccount')+'?')[_0x52a437(0x1cbe)](_0x52a437(0x16d3)+(_0x4957c1[_0x52a437(0x19eb)]||_0x52a437(0x11e6))+_0x52a437(0x252f)+_0x52a437(0xe01))['ariaLabel'](_0x52a437(0x235))[_0x52a437(0x1f27)](_0x214d31)['ok']('OK')[_0x52a437(0x6c3)](_0x52a437(0x39a));_0x53c724[_0x52a437(0x2615)](_0x1c8320)['then'](function(){_0x55144f(_0x4957c1);},function(){const _0x39afe5=_0x52a437;console[_0x39afe5(0x1a74)](_0x39afe5(0x39a));});}let _0x19339c=!![],_0xe43ba5=0x1;_0x259697[_0x8a383d(0x21e8)]('vm.query.filter',function(_0x34f734,_0x47c6a7){const _0x1efa8f=_0x8a383d;_0x19339c?_0x4e2280(function(){_0x19339c=![];}):(!_0x47c6a7&&(_0xe43ba5=_0x47f8e9[_0x1efa8f(0x1a56)][_0x1efa8f(0x844)]),_0x34f734!==_0x47c6a7&&(_0x47f8e9[_0x1efa8f(0x1a56)][_0x1efa8f(0x844)]=0x1),!_0x34f734&&(_0x47f8e9[_0x1efa8f(0x1a56)][_0x1efa8f(0x844)]=_0xe43ba5),_0x47f8e9[_0x1efa8f(0x2234)]());});function _0x34b670(_0x52997){const _0x49334b=_0x8a383d;_0x47f8e9[_0x49334b(0x24eb)]=_0x52997||{'count':0x0,'rows':[]};}function _0x1b6d7a(){const _0x140e19=_0x8a383d;_0x47f8e9[_0x140e19(0x1a56)][_0x140e19(0x145d)]=(_0x47f8e9[_0x140e19(0x1a56)]['page']-0x1)*_0x47f8e9[_0x140e19(0x1a56)][_0x140e19(0x221e)],_0xe515d8['hasRole'](_0x140e19(0x174b))?_0x47f8e9[_0x140e19(0xb9c)]=_0x34e880[_0x140e19(0x1fa4)][_0x140e19(0x16b4)](_0x47f8e9[_0x140e19(0x1a56)],_0x34b670)['$promise']:(_0x47f8e9[_0x140e19(0x1a56)]['id']=_0x47f8e9[_0x140e19(0x26b6)]['id'],_0x47f8e9[_0x140e19(0x1a56)]['section']=_0x140e19(0x2938),_0x47f8e9[_0x140e19(0xb9c)]=_0x34e880[_0x140e19(0x26b6)]['getResources'](_0x47f8e9[_0x140e19(0x1a56)],_0x34b670)['$promise']);}function _0x3af40b(_0x3b27e5,_0x273543){const _0x3198bd=_0x8a383d;_0x53c724[_0x3198bd(0x2615)]({'controller':'CreateOrEditSalesforceAccountDialogController','controllerAs':'vm','templateUrl':_0x55e956,'parent':angular[_0x3198bd(0x1853)](_0x2d4fa3[_0x3198bd(0x2586)]),'targetEvent':_0x3b27e5,'clickOutsideToClose':!![],'locals':{'salesforceAccount':_0x273543,'salesforceAccounts':_0x47f8e9[_0x3198bd(0x24eb)][_0x3198bd(0x19c7)],'license':_0x47f8e9['license'],'setting':_0x47f8e9[_0x3198bd(0x15b9)],'crudPermissions':_0x47f8e9[_0x3198bd(0x2514)]}});}function _0x55144f(_0xef79dc){const _0x316472=_0x8a383d;_0x34e880[_0x316472(0x1fa4)][_0x316472(0x1fac)]({'id':_0xef79dc['id']})['$promise'][_0x316472(0x146b)](function(){const _0x46e562=_0x316472;_0x3f65c0()[_0x46e562(0x2640)](_0x47f8e9['salesforceAccounts'][_0x46e562(0x19c7)],{'id':_0xef79dc['id']}),_0x47f8e9[_0x46e562(0x24eb)][_0x46e562(0x51c)]-=0x1,!_0x47f8e9[_0x46e562(0x24eb)][_0x46e562(0x19c7)]['length']&&_0x47f8e9[_0x46e562(0x2234)](),_0x13e05a['success']({'title':_0x3f65c0()[_0x46e562(0x20d1)](_0x46e562(0x2094))+_0x46e562(0x201c),'msg':_0xef79dc[_0x46e562(0x19eb)]?_0xef79dc['name']+_0x46e562(0x23e3):''});})[_0x316472(0x129e)](function(_0xca9cfe){const _0x21ada1=_0x316472;if(_0xca9cfe[_0x21ada1(0x524)]&&_0xca9cfe[_0x21ada1(0x524)]['errors']&&_0xca9cfe[_0x21ada1(0x524)][_0x21ada1(0xcef)][_0x21ada1(0x402)]){_0x47f8e9[_0x21ada1(0xcef)]=_0xca9cfe[_0x21ada1(0x524)][_0x21ada1(0xcef)]||[{'message':_0xca9cfe['toString'](),'type':'SYSTEM:DELETEintSalesforceAccount'}];for(let _0x430adc=0x0;_0x430adc<_0xca9cfe[_0x21ada1(0x524)][_0x21ada1(0xcef)][_0x21ada1(0x402)];_0x430adc++){_0x13e05a[_0x21ada1(0x1980)]({'title':_0xca9cfe[_0x21ada1(0x524)][_0x21ada1(0xcef)][_0x430adc][_0x21ada1(0x1142)],'msg':_0xca9cfe['data'][_0x21ada1(0xcef)][_0x430adc]['message']});}}else _0x13e05a[_0x21ada1(0x1980)]({'title':_0xca9cfe[_0x21ada1(0x107b)]?_0x21ada1(0x262a)+_0xca9cfe['status']+_0x21ada1(0x1315)+_0xca9cfe[_0x21ada1(0x167f)]:'SYSTEM:DELETEintSalesforceAccount','msg':_0xca9cfe[_0x21ada1(0x524)]?JSON[_0x21ada1(0x10bb)](_0xca9cfe[_0x21ada1(0x524)][_0x21ada1(0x7fd)]):_0xca9cfe['message']||_0xca9cfe[_0x21ada1(0xd5f)]()});});}function _0x230b79(){const _0xce02d5=_0x8a383d,_0x10539b=angular['copy'](_0x47f8e9[_0xce02d5(0x278c)]);return _0x47f8e9[_0xce02d5(0x278c)]=[],_0x10539b;}function _0xc29d7d(_0x5e28fe){const _0x5d454c=_0x8a383d,_0x5d5bf2=_0x53c724['confirm']()['title'](_0x5d454c(0xe14))[_0x5d454c(0x1cbe)](''+_0x47f8e9[_0x5d454c(0x278c)]['length']+'\x20selected'+_0x5d454c(0xe01))[_0x5d454c(0x4bd)](_0x5d454c(0x1bf7))[_0x5d454c(0x1f27)](_0x5e28fe)['ok']('OK')[_0x5d454c(0x6c3)](_0x5d454c(0x39a));_0x53c724['show'](_0x5d5bf2)['then'](function(){const _0x2c8005=_0x5d454c;_0x47f8e9[_0x2c8005(0x278c)][_0x2c8005(0x1df5)](function(_0x4e32ed){_0x55144f(_0x4e32ed);}),_0x47f8e9[_0x2c8005(0x278c)]=[];});}function _0x12b533(){const _0x40672d=_0x8a383d;_0x47f8e9[_0x40672d(0x278c)]=[];}function _0x3d46e0(){const _0x36bc04=_0x8a383d;_0x47f8e9[_0x36bc04(0x278c)]=_0x47f8e9[_0x36bc04(0x24eb)][_0x36bc04(0x19c7)];}}const _0x2f0743=_0x270e6d;;_0x3c7df8['$inject']=[_0x313a4d(0x910),_0x313a4d(0x1862),_0x313a4d(0xd08),'$mdDialog','$q',_0x313a4d(0x214b),'toasty',_0x313a4d(0x69b),_0x313a4d(0x177c),'api',_0x313a4d(0xa87),_0x313a4d(0x2690),_0x313a4d(0x15b9),_0x313a4d(0x2514)];function _0x3c7df8(_0xf6d68c,_0x22a364,_0x93c612,_0x34a40e,_0x48c427,_0x3b55b5,_0x3b596c,_0x4bbbfd,_0x1ff611,_0x4c966e,_0x45a66e,_0x241416,_0x3910d6,_0x4df35d){const _0x2b7495=_0x313a4d,_0x8837a2=this;_0x8837a2[_0x2b7495(0x2321)]=_0x45a66e[_0x2b7495(0xb12)](),_0x8837a2['errors']=[],_0x8837a2[_0x2b7495(0x15b9)]=_0x3910d6,_0x8837a2['license']=_0x241416,_0x8837a2['crudPermissions']=_0x4df35d,_0x8837a2['hasModulePermissions']={},_0x8837a2[_0x2b7495(0x2251)]=_0x8837a2[_0x2b7495(0x15b9)]&&_0x8837a2[_0x2b7495(0x15b9)][_0x2b7495(0x976)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x8837a2[_0x2b7495(0x1189)]='INTEGRATIONS.EDIT_SERVICENOWACCOUNT',_0x8837a2[_0x2b7495(0x177c)]=angular[_0x2b7495(0x235a)](_0x1ff611),_0x8837a2[_0x2b7495(0x69b)]=_0x4bbbfd,_0x8837a2['newServicenowAccount']=![];!_0x8837a2[_0x2b7495(0x177c)]&&(_0x8837a2['servicenowAccount']={'serverUrl':_0x93c612[_0x2b7495(0x2414)]()+'://'+_0x93c612[_0x2b7495(0x148e)]()+(_0x93c612[_0x2b7495(0x1553)]()?':'+_0x93c612[_0x2b7495(0x1553)]():'')},_0x8837a2[_0x2b7495(0x1189)]=_0x2b7495(0xb77),_0x8837a2[_0x2b7495(0x1268)]=!![]);_0x8837a2[_0x2b7495(0x218)]=_0x385acb,_0x8837a2['saveServicenowAccount']=_0x4aebf2,_0x8837a2['deleteServicenowAccount']=_0xbc03fd,_0x8837a2['getDateFromString']=_0xaf0128,_0x8837a2[_0x2b7495(0x13f3)]=_0x151552;function _0x385acb(){const _0x2c7804=_0x2b7495;_0x8837a2[_0x2c7804(0xcef)]=[],_0x4c966e[_0x2c7804(0xbd9)]['save'](_0x8837a2['servicenowAccount'])[_0x2c7804(0x2945)][_0x2c7804(0x146b)](function(_0x1fbacd){const _0x1f7be3=_0x2c7804;_0x8837a2['servicenowAccounts'][_0x1f7be3(0xb3d)](_0x1fbacd[_0x1f7be3(0x2488)]()),_0x3b596c[_0x1f7be3(0x1c75)]({'title':_0x1f7be3(0x823),'msg':_0x8837a2[_0x1f7be3(0x177c)][_0x1f7be3(0x19eb)]?_0x8837a2[_0x1f7be3(0x177c)][_0x1f7be3(0x19eb)]+_0x1f7be3(0x1386):''}),_0x151552(_0x1fbacd);})[_0x2c7804(0x129e)](function(_0x40de0d){const _0x2ed6aa=_0x2c7804;if(_0x40de0d[_0x2ed6aa(0x524)]&&_0x40de0d[_0x2ed6aa(0x524)][_0x2ed6aa(0xcef)]&&_0x40de0d[_0x2ed6aa(0x524)]['errors'][_0x2ed6aa(0x402)]){_0x8837a2[_0x2ed6aa(0xcef)]=_0x40de0d['data'][_0x2ed6aa(0xcef)]||[{'message':_0x40de0d[_0x2ed6aa(0xd5f)](),'type':'api.intServicenowAccount.save'}];for(let _0x41ded0=0x0;_0x41ded0<_0x40de0d['data']['errors'][_0x2ed6aa(0x402)];_0x41ded0+=0x1){_0x3b596c['error']({'title':_0x40de0d[_0x2ed6aa(0x524)]['errors'][_0x41ded0][_0x2ed6aa(0x1142)],'msg':_0x40de0d[_0x2ed6aa(0x524)]['errors'][_0x41ded0][_0x2ed6aa(0x7fd)]});}}else _0x3b596c[_0x2ed6aa(0x1980)]({'title':_0x40de0d['status']?_0x2ed6aa(0x262a)+_0x40de0d[_0x2ed6aa(0x107b)]+_0x2ed6aa(0x1315)+_0x40de0d['statusText']:_0x2ed6aa(0x28c9),'msg':_0x40de0d['data']?JSON[_0x2ed6aa(0x10bb)](_0x40de0d[_0x2ed6aa(0x524)][_0x2ed6aa(0x7fd)]):_0x40de0d[_0x2ed6aa(0xd5f)]()});});}function _0x4aebf2(){const _0xab06db=_0x2b7495;_0x8837a2[_0xab06db(0xcef)]=[],_0x4c966e[_0xab06db(0xbd9)][_0xab06db(0x18e1)]({'id':_0x8837a2['servicenowAccount']['id']},_0x8837a2[_0xab06db(0x177c)])[_0xab06db(0x2945)][_0xab06db(0x146b)](function(_0x10286a){const _0x1ea9f9=_0xab06db,_0x156003=_0x3f65c0()[_0x1ea9f9(0xc84)](_0x8837a2['servicenowAccounts'],{'id':_0x10286a['id']});_0x156003&&_0x3f65c0()[_0x1ea9f9(0x168d)](_0x156003,_0x3f65c0()[_0x1ea9f9(0x40e)](_0x10286a[_0x1ea9f9(0x2488)](),_0x3f65c0()[_0x1ea9f9(0x627)](_0x156003))),_0x3b596c[_0x1ea9f9(0x1c75)]({'title':_0x1ea9f9(0x6f9),'msg':_0x8837a2[_0x1ea9f9(0x177c)]['name']?_0x8837a2[_0x1ea9f9(0x177c)][_0x1ea9f9(0x19eb)]+_0x1ea9f9(0x24db):''}),_0x151552(_0x10286a);})[_0xab06db(0x129e)](function(_0x45d9c2){const _0x1db7aa=_0xab06db;if(_0x45d9c2[_0x1db7aa(0x524)]&&_0x45d9c2[_0x1db7aa(0x524)]['errors']&&_0x45d9c2[_0x1db7aa(0x524)]['errors'][_0x1db7aa(0x402)]){_0x8837a2['errors']=_0x45d9c2[_0x1db7aa(0x524)][_0x1db7aa(0xcef)]||[{'message':_0x45d9c2['toString'](),'type':'api.intServicenowAccount.update'}];for(let _0x57272b=0x0;_0x57272b<_0x45d9c2['data'][_0x1db7aa(0xcef)][_0x1db7aa(0x402)];_0x57272b++){_0x3b596c['error']({'title':_0x45d9c2[_0x1db7aa(0x524)][_0x1db7aa(0xcef)][_0x57272b][_0x1db7aa(0x1142)],'msg':_0x45d9c2['data'][_0x1db7aa(0xcef)][_0x57272b][_0x1db7aa(0x7fd)]});}}else _0x3b596c['error']({'title':_0x45d9c2[_0x1db7aa(0x107b)]?'API:'+_0x45d9c2[_0x1db7aa(0x107b)]+_0x1db7aa(0x1315)+_0x45d9c2['statusText']:'api.intServicenowAccount.update','msg':_0x45d9c2[_0x1db7aa(0x524)]?JSON['stringify'](_0x45d9c2[_0x1db7aa(0x524)][_0x1db7aa(0x7fd)]):_0x45d9c2[_0x1db7aa(0xd5f)]()});});}function _0xbc03fd(_0x2115ea){const _0x5a0de5=_0x2b7495;_0x8837a2['errors']=[];const _0x4acb3b=_0x34a40e['confirm']()[_0x5a0de5(0x1189)](_0x5a0de5(0x1d64))['content'](_0x5a0de5(0x2409))[_0x5a0de5(0x4bd)](_0x5a0de5(0xda1))['ok'](_0x5a0de5(0x25de))[_0x5a0de5(0x6c3)]('Cancel')[_0x5a0de5(0x1f27)](_0x2115ea);_0x34a40e[_0x5a0de5(0x2615)](_0x4acb3b)[_0x5a0de5(0x146b)](function(){const _0x5a1b15=_0x5a0de5;_0x4c966e[_0x5a1b15(0xbd9)]['delete']({'id':_0x8837a2[_0x5a1b15(0x177c)]['id']})[_0x5a1b15(0x2945)][_0x5a1b15(0x146b)](function(){const _0x2ff7b3=_0x5a1b15;_0x3f65c0()['remove'](_0x8837a2[_0x2ff7b3(0x69b)],{'id':_0x8837a2[_0x2ff7b3(0x177c)]['id']}),_0x3b596c[_0x2ff7b3(0x1c75)]({'title':_0x2ff7b3(0x260f),'msg':(_0x8837a2['servicenowAccount']['name']||_0x2ff7b3(0x177c))+_0x2ff7b3(0x23e3)}),_0x151552(_0x8837a2['servicenowAccount']);})['catch'](function(_0xf2c517){const _0x2c469c=_0x5a1b15;if(_0xf2c517[_0x2c469c(0x524)]&&_0xf2c517[_0x2c469c(0x524)][_0x2c469c(0xcef)]&&_0xf2c517[_0x2c469c(0x524)][_0x2c469c(0xcef)][_0x2c469c(0x402)]){_0x8837a2[_0x2c469c(0xcef)]=_0xf2c517[_0x2c469c(0x524)][_0x2c469c(0xcef)]||[{'message':_0xf2c517['toString'](),'type':'api.intServicenowAccount.delete'}];for(let _0x29dc13=0x0;_0x29dc13<_0xf2c517[_0x2c469c(0x524)]['errors']['length'];_0x29dc13++){_0x3b596c[_0x2c469c(0x1980)]({'title':_0xf2c517[_0x2c469c(0x524)][_0x2c469c(0xcef)][_0x29dc13][_0x2c469c(0x1142)],'msg':_0xf2c517[_0x2c469c(0x524)]['errors'][_0x29dc13][_0x2c469c(0x7fd)]});}}else _0x3b596c['error']({'title':_0xf2c517['status']?_0x2c469c(0x262a)+_0xf2c517['status']+'\x20-\x20'+_0xf2c517[_0x2c469c(0x167f)]:'api.intServicenowAccount.delete','msg':_0xf2c517['data']?JSON[_0x2c469c(0x10bb)](_0xf2c517[_0x2c469c(0x524)][_0x2c469c(0x7fd)]):_0xf2c517[_0x2c469c(0x7fd)]||_0xf2c517[_0x2c469c(0xd5f)]()});});},function(){});}function _0xaf0128(_0x282a73){return _0x282a73===null?undefined:new Date(_0x282a73);}function _0x151552(_0x387349){const _0x21b5c6=_0x2b7495;_0x34a40e[_0x21b5c6(0x2458)](_0x387349);}}const _0x1fe4b5=_0x3c7df8;;const _0x326985=_0x4acfac['p']+'src/js/modules/main/apps/integrations/views/servicenowAccounts/edit/configurations/dialog.html/dialog.html';;const _0x41e8e0=_0x4acfac['p']+_0x313a4d(0x1e7c);;_0x16e6d6['$inject']=[_0x313a4d(0x10e8),'$document',_0x313a4d(0x247f),_0x313a4d(0x1fe4),'Auth'];function _0x16e6d6(_0x48557d,_0x378614,_0x467cb0,_0x1c7249,_0x4bf033){const _0x27ec4c=_0x313a4d,_0x1e2e1c=this;_0x1e2e1c['currentUser']=_0x4bf033[_0x27ec4c(0xb12)](),_0x1e2e1c['servicenowAccount']={},_0x1e2e1c[_0x27ec4c(0x1f2b)]={},_0x1e2e1c['configurations']=[],_0x1e2e1c[_0x27ec4c(0x88e)]=-0x1,_0x1e2e1c[_0x27ec4c(0x2514)],_0x1e2e1c[_0x27ec4c(0x5aa)]=_0x233658,_0x1e2e1c[_0x27ec4c(0x1bac)]=_0x12c602,_0x1e2e1c[_0x27ec4c(0x65e)]=_0x4a35fc,_0x1e2e1c[_0x27ec4c(0x389)]=_0x4e54ad;function _0x233658(_0x523e06,_0x32350e){const _0xb99664=_0x27ec4c;_0x1e2e1c['servicenowAccount']=_0x523e06,_0x1e2e1c[_0xb99664(0x2514)]=typeof _0x32350e!=='undefined'?_0x32350e:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x467cb0[_0xb99664(0xbd9)]['getConfigurations']({'id':_0x1e2e1c[_0xb99664(0x177c)]['id'],'sort':_0xb99664(0x12f2)})[_0xb99664(0x2945)][_0xb99664(0x146b)](function(_0x403281){const _0x10d994=_0xb99664;return _0x1e2e1c[_0x10d994(0x1723)]=_0x403281[_0x10d994(0x19c7)]?_0x403281['rows']:[],_0x1e2e1c[_0x10d994(0x1723)]['length']&&_0x1e2e1c['getServicenowConfiguration'](0x0),_0x467cb0[_0x10d994(0x212)][_0x10d994(0x16b4)]({'nolimit':!![],'sort':_0x10d994(0x19eb)})[_0x10d994(0x2945)];})['then'](function(_0x3d7ada){const _0x131101=_0xb99664;_0x1e2e1c[_0x131101(0x85b)]=_0x3d7ada['rows']?_0x3d7ada[_0x131101(0x19c7)]:[],_0x1e2e1c[_0x131101(0x80c)]=_0x3f65c0()[_0x131101(0x194)](_0x1e2e1c['variables'],'id');})['catch'](function(_0x9408f4){const _0x3248b0=_0xb99664;_0x1c7249[_0x3248b0(0x1980)]({'title':_0x9408f4[_0x3248b0(0x107b)]?_0x3248b0(0x262a)+_0x9408f4['status']+_0x3248b0(0x1315)+_0x9408f4[_0x3248b0(0x167f)]:_0x3248b0(0x9e7),'msg':_0x9408f4[_0x3248b0(0x524)]?JSON['stringify'](_0x9408f4[_0x3248b0(0x524)]):_0x9408f4[_0x3248b0(0xd5f)]()});});}function _0x12c602(_0xcefff5){const _0x12ab65=_0x27ec4c;_0x1e2e1c[_0x12ab65(0x1f2b)]=_0x1e2e1c[_0x12ab65(0x1723)][_0xcefff5],_0x1e2e1c['selectedServicenowConfiguration']=_0xcefff5,_0x467cb0[_0x12ab65(0x620)][_0x12ab65(0x18ee)]({'id':_0x1e2e1c[_0x12ab65(0x1f2b)]['id']})[_0x12ab65(0x2945)][_0x12ab65(0x146b)](function(_0x4aa2cc){const _0x4461c1=_0x12ab65;return _0x1e2e1c[_0x4461c1(0x3c8)]=_0x4aa2cc[_0x4461c1(0x19c7)]?_0x4aa2cc['rows']:[],_0x467cb0['intServicenowConfiguration'][_0x4461c1(0xc2a)]({'id':_0x1e2e1c[_0x4461c1(0x1f2b)]['id']})[_0x4461c1(0x2945)];})['then'](function(_0x51f529){const _0x422fb4=_0x12ab65;return _0x1e2e1c['descriptions']=_0x51f529[_0x422fb4(0x19c7)]?_0x51f529['rows']:[],_0x467cb0['intServicenowConfiguration']['getFields']({'id':_0x1e2e1c['servicenowConfiguration']['id']})[_0x422fb4(0x2945)];})[_0x12ab65(0x146b)](function(_0x145041){const _0x399723=_0x12ab65;_0x1e2e1c[_0x399723(0x2867)]=_0x145041[_0x399723(0x19c7)]?_0x145041['rows']:[];})[_0x12ab65(0x129e)](function(_0x40e0bb){const _0x458e17=_0x12ab65;_0x1c7249[_0x458e17(0x1980)]({'title':_0x40e0bb[_0x458e17(0x107b)]?_0x458e17(0x262a)+_0x40e0bb[_0x458e17(0x107b)]+_0x458e17(0x1315)+_0x40e0bb[_0x458e17(0x167f)]:'SYSTEM:GETConfigurations','msg':_0x40e0bb[_0x458e17(0x524)]?JSON['stringify'](_0x40e0bb[_0x458e17(0x524)]):_0x40e0bb[_0x458e17(0xd5f)]()});});}function _0x4a35fc(_0x18e912,_0x49e9c2){const _0x53d024=_0x27ec4c;_0x48557d[_0x53d024(0x2615)]({'controller':'CreateOrEditServicenowConfigurationDialogController','controllerAs':'vm','templateUrl':_0x326985,'parent':angular[_0x53d024(0x1853)](_0x378614[_0x53d024(0x2586)]),'targetEvent':_0x18e912,'clickOutsideToClose':!![],'locals':{'servicenowConfiguration':_0x49e9c2,'configurations':_0x1e2e1c[_0x53d024(0x1723)],'license':null,'setting':null,'crudPermissions':_0x1e2e1c[_0x53d024(0x2514)]}})[_0x53d024(0x1ec6)](function(){const _0x4a9e53=_0x53d024;_0x1e2e1c[_0x4a9e53(0x1bac)](0x0);});}function _0x4e54ad(_0x49643c,_0x4a6bd4){const _0x1d47d9=_0x27ec4c,_0x44e2d2=_0x48557d[_0x1d47d9(0x1e8a)]()[_0x1d47d9(0x1189)](_0x1d47d9(0xc27))['htmlContent'](_0x1d47d9(0x16d3)+(_0x4a6bd4['name']||_0x1d47d9(0x1f2b))+_0x1d47d9(0x252f)+_0x1d47d9(0xe01))[_0x1d47d9(0x4bd)](_0x1d47d9(0x9e4))[_0x1d47d9(0x1f27)](_0x49643c)['ok']('OK')['cancel'](_0x1d47d9(0x39a));_0x48557d[_0x1d47d9(0x2615)](_0x44e2d2)[_0x1d47d9(0x146b)](function(){const _0x424334=_0x1d47d9;_0x467cb0[_0x424334(0x620)][_0x424334(0x1fac)]({'id':_0x4a6bd4['id']})[_0x424334(0x2945)][_0x424334(0x146b)](function(){const _0x22ebf6=_0x424334;_0x3f65c0()[_0x22ebf6(0x2640)](_0x1e2e1c['configurations'],{'id':_0x4a6bd4['id']}),_0x1c7249[_0x22ebf6(0x1c75)]({'title':_0x22ebf6(0x492),'msg':_0x4a6bd4[_0x22ebf6(0x19eb)]?_0x4a6bd4['name']+_0x22ebf6(0x23e3):''});})[_0x424334(0x129e)](function(_0x411ff9){const _0x30b534=_0x424334;_0x1c7249[_0x30b534(0x1980)]({'title':_0x411ff9[_0x30b534(0x107b)]?_0x30b534(0x262a)+_0x411ff9[_0x30b534(0x107b)]+_0x30b534(0x1315)+_0x411ff9[_0x30b534(0x167f)]:'SYSTEM:DELETECONFIGURATION','msg':_0x411ff9[_0x30b534(0x524)]?JSON[_0x30b534(0x10bb)](_0x411ff9['data']):_0x411ff9[_0x30b534(0xd5f)]()});})[_0x424334(0x1ec6)](function(){const _0x18e26a=_0x424334;_0x1e2e1c[_0x18e26a(0x1bac)](0x0);});},function(){const _0x1eaa04=_0x1d47d9;console[_0x1eaa04(0x1a74)](_0x1eaa04(0x39a));});}_0x1e2e1c['selectedSubjects']=[],_0x1e2e1c['createOrEditSubject']=_0x16af93,_0x1e2e1c[_0x27ec4c(0x10d5)]=_0x41290b,_0x1e2e1c[_0x27ec4c(0x1777)]=_0x228409;function _0x16af93(_0x2689f5,_0x2f1544){const _0x1d7af4=_0x27ec4c;_0x48557d['show']({'controller':_0x1d7af4(0xe4c),'controllerAs':'vm','templateUrl':_0x41e8e0,'parent':angular[_0x1d7af4(0x1853)](_0x378614['body']),'targetEvent':_0x2689f5,'clickOutsideToClose':!![],'locals':{'type':_0x1d7af4(0xe32),'item':_0x2f1544,'items':_0x1e2e1c[_0x1d7af4(0x3c8)],'configuration':_0x1e2e1c['servicenowConfiguration'],'account':_0x1e2e1c[_0x1d7af4(0x177c)],'license':null,'setting':null,'crudPermissions':_0x1e2e1c[_0x1d7af4(0x2514)]}});}function _0x124cd1(_0x451cce){const _0x40808d=_0x27ec4c;_0x467cb0[_0x40808d(0x178c)][_0x40808d(0x1fac)]({'id':_0x451cce['id']})[_0x40808d(0x2945)][_0x40808d(0x146b)](function(){const _0x3a0666=_0x40808d;_0x3f65c0()['remove'](_0x1e2e1c[_0x3a0666(0x3c8)],{'id':_0x451cce['id']}),_0x1c7249[_0x3a0666(0x1c75)]({'title':_0x3a0666(0x28e6),'msg':'Subject\x20has\x20been\x20deleted!'});})[_0x40808d(0x129e)](function(_0x12abeb){const _0x291b76=_0x40808d;_0x1c7249[_0x291b76(0x1980)]({'title':_0x12abeb[_0x291b76(0x107b)]?'API:'+_0x12abeb[_0x291b76(0x107b)]+_0x291b76(0x1315)+_0x12abeb[_0x291b76(0x167f)]:_0x291b76(0xf6e),'msg':_0x12abeb[_0x291b76(0x524)]?JSON['stringify'](_0x12abeb['data']):_0x12abeb['toString']()});});}function _0x41290b(_0x15388c,_0x1c5ca5){const _0x6202=_0x27ec4c,_0x4b82f1=_0x48557d[_0x6202(0x1e8a)]()[_0x6202(0x1189)](_0x6202(0x317))[_0x6202(0x1cbe)](_0x6202(0xf7f)+'\x20will\x20be\x20deleted.')[_0x6202(0x4bd)](_0x6202(0x5d1))[_0x6202(0x1f27)](_0x15388c)['ok']('OK')['cancel']('CANCEL');_0x48557d[_0x6202(0x2615)](_0x4b82f1)[_0x6202(0x146b)](function(){_0x124cd1(_0x1c5ca5);},function(){const _0x329efc=_0x6202;console['log'](_0x329efc(0x39a));});}function _0x228409(_0x3f752e){const _0x17836d=_0x27ec4c,_0x4ea322=_0x48557d[_0x17836d(0x1e8a)]()[_0x17836d(0x1189)](_0x17836d(0x2e6))[_0x17836d(0x1cbe)](_0x17836d(0x16d3)+_0x1e2e1c[_0x17836d(0x15a6)][_0x17836d(0x402)]+_0x17836d(0x2452)+_0x17836d(0xe01))[_0x17836d(0x4bd)](_0x17836d(0x1209))[_0x17836d(0x1f27)](_0x3f752e)['ok']('OK')['cancel'](_0x17836d(0x39a));_0x48557d[_0x17836d(0x2615)](_0x4ea322)['then'](function(){const _0xe52a4a=_0x17836d;_0x1e2e1c[_0xe52a4a(0x15a6)][_0xe52a4a(0x1df5)](function(_0x1dd147){_0x124cd1(_0x1dd147);}),_0x1e2e1c[_0xe52a4a(0x15a6)]=[];});}_0x1e2e1c[_0x27ec4c(0x126)]=[],_0x1e2e1c['createOrEditDescription']=_0x32b0b1,_0x1e2e1c[_0x27ec4c(0xb29)]=_0x42a300,_0x1e2e1c['deleteSelectedDescriptions']=_0x62ef3b;function _0x32b0b1(_0x39297e,_0x43d2dc){const _0x1dc283=_0x27ec4c;_0x48557d['show']({'controller':_0x1dc283(0xe4c),'controllerAs':'vm','templateUrl':_0x41e8e0,'parent':angular[_0x1dc283(0x1853)](_0x378614[_0x1dc283(0x2586)]),'targetEvent':_0x39297e,'clickOutsideToClose':!![],'locals':{'type':_0x1dc283(0xb17),'item':_0x43d2dc,'items':_0x1e2e1c[_0x1dc283(0x2358)],'configuration':_0x1e2e1c[_0x1dc283(0x1f2b)],'account':_0x1e2e1c[_0x1dc283(0x177c)],'license':null,'setting':null,'crudPermissions':_0x1e2e1c[_0x1dc283(0x2514)]}});}function _0x36fce9(_0x26f8a4){const _0x587399=_0x27ec4c;_0x467cb0[_0x587399(0x178c)][_0x587399(0x1fac)]({'id':_0x26f8a4['id']})['$promise'][_0x587399(0x146b)](function(){const _0x290ed7=_0x587399;_0x3f65c0()[_0x290ed7(0x2640)](_0x1e2e1c[_0x290ed7(0x2358)],{'id':_0x26f8a4['id']}),_0x1c7249[_0x290ed7(0x1c75)]({'title':_0x290ed7(0xaf8),'msg':_0x290ed7(0x8e3)});})[_0x587399(0x129e)](function(_0x358f42){const _0x2e57a2=_0x587399;_0x1c7249['error']({'title':_0x358f42[_0x2e57a2(0x107b)]?_0x2e57a2(0x262a)+_0x358f42[_0x2e57a2(0x107b)]+_0x2e57a2(0x1315)+_0x358f42[_0x2e57a2(0x167f)]:'SYSTEM:DELETECONFIGURATIONFIELD','msg':_0x358f42['data']?JSON[_0x2e57a2(0x10bb)](_0x358f42[_0x2e57a2(0x524)]):_0x358f42[_0x2e57a2(0xd5f)]()});});}function _0x42a300(_0x4744f4,_0x2e7310){const _0x343d6f=_0x27ec4c,_0x7cf74=_0x48557d[_0x343d6f(0x1e8a)]()[_0x343d6f(0x1189)](_0x343d6f(0x1e9))[_0x343d6f(0x1cbe)](_0x343d6f(0x2014)+_0x343d6f(0xe01))[_0x343d6f(0x4bd)](_0x343d6f(0x1c5c))[_0x343d6f(0x1f27)](_0x4744f4)['ok']('OK')[_0x343d6f(0x6c3)](_0x343d6f(0x39a));_0x48557d[_0x343d6f(0x2615)](_0x7cf74)[_0x343d6f(0x146b)](function(){_0x36fce9(_0x2e7310);},function(){const _0x163242=_0x343d6f;console['log'](_0x163242(0x39a));});}function _0x62ef3b(_0x3c4de8){const _0x2eefbd=_0x27ec4c,_0x29bc48=_0x48557d[_0x2eefbd(0x1e8a)]()['title'](_0x2eefbd(0x1acd))[_0x2eefbd(0x1cbe)](_0x2eefbd(0x16d3)+_0x1e2e1c[_0x2eefbd(0x126)][_0x2eefbd(0x402)]+_0x2eefbd(0x2452)+_0x2eefbd(0xe01))['ariaLabel'](_0x2eefbd(0x1be7))[_0x2eefbd(0x1f27)](_0x3c4de8)['ok']('OK')['cancel'](_0x2eefbd(0x39a));_0x48557d[_0x2eefbd(0x2615)](_0x29bc48)[_0x2eefbd(0x146b)](function(){const _0x2c6f5b=_0x2eefbd;_0x1e2e1c['selectedDescriptions'][_0x2c6f5b(0x1df5)](function(_0x40d82b){_0x36fce9(_0x40d82b);}),_0x1e2e1c[_0x2c6f5b(0x126)]=[];});}_0x1e2e1c['selectedFields']=[],_0x1e2e1c[_0x27ec4c(0x737)]=_0x4ff7a4,_0x1e2e1c['deleteFieldConfirm']=_0x4d2edb,_0x1e2e1c[_0x27ec4c(0x816)]=_0x4ffc2e;function _0x4ff7a4(_0x1d4c39,_0x348c00){const _0x28e1c0=_0x27ec4c;_0x48557d[_0x28e1c0(0x2615)]({'controller':_0x28e1c0(0xe4c),'controllerAs':'vm','templateUrl':_0x41e8e0,'parent':angular[_0x28e1c0(0x1853)](_0x378614[_0x28e1c0(0x2586)]),'targetEvent':_0x1d4c39,'clickOutsideToClose':!![],'locals':{'type':_0x28e1c0(0x65c),'item':_0x348c00,'items':_0x1e2e1c[_0x28e1c0(0x2867)],'configuration':_0x1e2e1c['servicenowConfiguration'],'account':_0x1e2e1c['servicenowAccount'],'license':null,'setting':null,'crudPermissions':_0x1e2e1c[_0x28e1c0(0x2514)]}});}function _0x5e5ee7(_0x58ed84){const _0x2e5609=_0x27ec4c;_0x467cb0[_0x2e5609(0x178c)]['delete']({'id':_0x58ed84['id']})[_0x2e5609(0x2945)][_0x2e5609(0x146b)](function(){const _0x42eea0=_0x2e5609;_0x3f65c0()[_0x42eea0(0x2640)](_0x1e2e1c[_0x42eea0(0x2867)],{'id':_0x58ed84['id']}),_0x1c7249['success']({'title':_0x42eea0(0x24ce),'msg':'Field\x20has\x20been\x20deleted!'});})[_0x2e5609(0x129e)](function(_0x2a1f73){const _0x188ab8=_0x2e5609;_0x1c7249[_0x188ab8(0x1980)]({'title':_0x2a1f73[_0x188ab8(0x107b)]?_0x188ab8(0x262a)+_0x2a1f73[_0x188ab8(0x107b)]+_0x188ab8(0x1315)+_0x2a1f73['statusText']:_0x188ab8(0xf6e),'msg':_0x2a1f73[_0x188ab8(0x524)]?JSON[_0x188ab8(0x10bb)](_0x2a1f73[_0x188ab8(0x524)]):_0x2a1f73[_0x188ab8(0xd5f)]()});});}function _0x4d2edb(_0x20b19b,_0x19a2fd){const _0x3435ba=_0x27ec4c,_0x2afd7f=_0x48557d[_0x3435ba(0x1e8a)]()[_0x3435ba(0x1189)](_0x3435ba(0x17f6))[_0x3435ba(0x1cbe)](_0x3435ba(0x2216)+_0x3435ba(0xe01))[_0x3435ba(0x4bd)]('delete\x20field')[_0x3435ba(0x1f27)](_0x20b19b)['ok']('OK')[_0x3435ba(0x6c3)](_0x3435ba(0x39a));_0x48557d['show'](_0x2afd7f)['then'](function(){_0x5e5ee7(_0x19a2fd);},function(){const _0x10a42d=_0x3435ba;console[_0x10a42d(0x1a74)](_0x10a42d(0x39a));});}function _0x4ffc2e(_0x36b6a4){const _0x3acbec=_0x27ec4c,_0x3b3fa9=_0x48557d[_0x3acbec(0x1e8a)]()['title'](_0x3acbec(0xe75))[_0x3acbec(0x1cbe)](''+_0x1e2e1c['selectedFields'][_0x3acbec(0x402)]+'\x20selected'+'\x20will\x20be\x20deleted.')[_0x3acbec(0x4bd)](_0x3acbec(0x176a))[_0x3acbec(0x1f27)](_0x36b6a4)['ok']('OK')[_0x3acbec(0x6c3)](_0x3acbec(0x39a));_0x48557d['show'](_0x3b3fa9)[_0x3acbec(0x146b)](function(){const _0x58e5f2=_0x3acbec;_0x1e2e1c['selectedFields'][_0x58e5f2(0x1df5)](function(_0x3cf50e){_0x5e5ee7(_0x3cf50e);}),_0x1e2e1c['selectedFields']=[];});}}const _0x3ddd30=_0x16e6d6;;_0x2057cd[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1862),_0x313a4d(0xd08),_0x313a4d(0x10e8),'$q',_0x313a4d(0x214b),_0x313a4d(0x1fe4),'configurations',_0x313a4d(0x1f2b),_0x313a4d(0x247f),'Auth',_0x313a4d(0x2690),_0x313a4d(0x15b9),'crudPermissions'];function _0x2057cd(_0x32202e,_0x3486d7,_0x52940b,_0x47bcfc,_0x82fefe,_0x159cc6,_0x5c36f5,_0x34899b,_0x30f703,_0x19bc9c,_0x4b5675,_0x5416da,_0x3db0f2,_0x157913){const _0x244a9c=_0x313a4d,_0x340aca=this;_0x340aca[_0x244a9c(0x2321)]=_0x4b5675['getCurrentUser'](),_0x340aca[_0x244a9c(0xcef)]=[],_0x340aca[_0x244a9c(0x15b9)]=_0x3db0f2,_0x340aca[_0x244a9c(0x2690)]=_0x5416da,_0x340aca[_0x244a9c(0x2514)]=_0x157913,_0x340aca[_0x244a9c(0x855)]={},_0x340aca['passwordPattern']=_0x340aca[_0x244a9c(0x15b9)]&&_0x340aca[_0x244a9c(0x15b9)]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x340aca[_0x244a9c(0x1189)]=_0x244a9c(0x1cf4),_0x340aca['servicenowConfiguration']=angular[_0x244a9c(0x235a)](_0x30f703),_0x340aca[_0x244a9c(0x1723)]=_0x34899b,_0x340aca[_0x244a9c(0x4d9)]=![];!_0x340aca[_0x244a9c(0x1f2b)]&&(_0x340aca[_0x244a9c(0x1f2b)]={'channel':_0x244a9c(0xe6),'type':_0x244a9c(0x7b0)},_0x340aca['title']=_0x244a9c(0x893),_0x340aca[_0x244a9c(0x4d9)]=!![]);_0x340aca[_0x244a9c(0x1749)]=_0x593693,_0x340aca[_0x244a9c(0x1280)]=_0xa216de,_0x340aca[_0x244a9c(0x389)]=_0x109697,_0x340aca['getDateFromString']=_0x27af40,_0x340aca['closeDialog']=_0x53b867;function _0x593693(){const _0xc22c79=_0x244a9c;_0x340aca['errors']=[],_0x19bc9c[_0xc22c79(0xbd9)]['addConfiguration']({'id':_0x3486d7[_0xc22c79(0x16a)]['id']},_0x340aca[_0xc22c79(0x1f2b)])['$promise'][_0xc22c79(0x146b)](function(_0x3dcc7f){const _0x22dae3=_0xc22c79;_0x340aca[_0x22dae3(0x1723)][_0x22dae3(0xb3d)](_0x3dcc7f[_0x22dae3(0x2488)]()),_0x5c36f5['success']({'title':_0x22dae3(0x15f3),'msg':_0x340aca[_0x22dae3(0x1f2b)][_0x22dae3(0x19eb)]?_0x340aca[_0x22dae3(0x1f2b)][_0x22dae3(0x19eb)]+'\x20has\x20been\x20created!':''}),_0x53b867(_0x3dcc7f);})['catch'](function(_0x369c32){const _0x737f64=_0xc22c79;if(_0x369c32['data']&&_0x369c32['data']['errors']&&_0x369c32[_0x737f64(0x524)]['errors']['length']){_0x340aca[_0x737f64(0xcef)]=_0x369c32[_0x737f64(0x524)]['errors']||[{'message':_0x369c32[_0x737f64(0xd5f)](),'type':_0x737f64(0x187c)}];for(let _0x397f42=0x0;_0x397f42<_0x369c32['data'][_0x737f64(0xcef)][_0x737f64(0x402)];_0x397f42+=0x1){_0x5c36f5[_0x737f64(0x1980)]({'title':_0x369c32[_0x737f64(0x524)][_0x737f64(0xcef)][_0x397f42][_0x737f64(0x1142)],'msg':_0x369c32['data'][_0x737f64(0xcef)][_0x397f42]['message']});}}else _0x5c36f5[_0x737f64(0x1980)]({'title':_0x369c32[_0x737f64(0x107b)]?_0x737f64(0x262a)+_0x369c32[_0x737f64(0x107b)]+_0x737f64(0x1315)+_0x369c32[_0x737f64(0x167f)]:_0x737f64(0x187c),'msg':_0x369c32[_0x737f64(0x524)]?JSON[_0x737f64(0x10bb)](_0x369c32[_0x737f64(0x524)][_0x737f64(0x7fd)]):_0x369c32[_0x737f64(0xd5f)]()});});}function _0xa216de(){const _0x33c9e8=_0x244a9c;_0x340aca['errors']=[],_0x19bc9c['intServicenowConfiguration'][_0x33c9e8(0x18e1)]({'id':_0x340aca[_0x33c9e8(0x1f2b)]['id']},_0x340aca[_0x33c9e8(0x1f2b)])[_0x33c9e8(0x2945)][_0x33c9e8(0x146b)](function(_0xc217a4){const _0x4aeb05=_0x33c9e8,_0x2cac4d=_0x3f65c0()[_0x4aeb05(0xc84)](_0x340aca['configurations'],{'id':_0xc217a4['id']});_0x2cac4d&&_0x3f65c0()[_0x4aeb05(0x168d)](_0x2cac4d,_0x3f65c0()[_0x4aeb05(0x40e)](_0xc217a4[_0x4aeb05(0x2488)](),_0x3f65c0()[_0x4aeb05(0x627)](_0x2cac4d))),_0x5c36f5['success']({'title':'ServicenowConfiguration\x20properly\x20saved!','msg':_0x340aca[_0x4aeb05(0x1f2b)]['name']?_0x340aca[_0x4aeb05(0x1f2b)][_0x4aeb05(0x19eb)]+'\x20has\x20been\x20saved!':''}),_0x53b867(_0xc217a4);})[_0x33c9e8(0x129e)](function(_0x615821){const _0x2d49bc=_0x33c9e8;if(_0x615821[_0x2d49bc(0x524)]&&_0x615821['data'][_0x2d49bc(0xcef)]&&_0x615821[_0x2d49bc(0x524)]['errors'][_0x2d49bc(0x402)]){_0x340aca[_0x2d49bc(0xcef)]=_0x615821[_0x2d49bc(0x524)][_0x2d49bc(0xcef)]||[{'message':_0x615821[_0x2d49bc(0xd5f)](),'type':_0x2d49bc(0x2031)}];for(let _0x3979d8=0x0;_0x3979d8<_0x615821[_0x2d49bc(0x524)][_0x2d49bc(0xcef)][_0x2d49bc(0x402)];_0x3979d8++){_0x5c36f5[_0x2d49bc(0x1980)]({'title':_0x615821[_0x2d49bc(0x524)]['errors'][_0x3979d8][_0x2d49bc(0x1142)],'msg':_0x615821['data'][_0x2d49bc(0xcef)][_0x3979d8][_0x2d49bc(0x7fd)]});}}else _0x5c36f5[_0x2d49bc(0x1980)]({'title':_0x615821[_0x2d49bc(0x107b)]?_0x2d49bc(0x262a)+_0x615821[_0x2d49bc(0x107b)]+_0x2d49bc(0x1315)+_0x615821[_0x2d49bc(0x167f)]:_0x2d49bc(0x2031),'msg':_0x615821[_0x2d49bc(0x524)]?JSON[_0x2d49bc(0x10bb)](_0x615821['data']['message']):_0x615821[_0x2d49bc(0xd5f)]()});});}function _0x109697(_0x2fea51){const _0xe544b4=_0x244a9c;_0x340aca[_0xe544b4(0xcef)]=[];const _0x1a654c=_0x47bcfc[_0xe544b4(0x1e8a)]()[_0xe544b4(0x1189)](_0xe544b4(0x1d64))['content'](_0xe544b4(0x26d0))[_0xe544b4(0x4bd)]('Delete\x20ServicenowConfiguration')['ok'](_0xe544b4(0x25de))[_0xe544b4(0x6c3)](_0xe544b4(0xcf0))[_0xe544b4(0x1f27)](_0x2fea51);_0x47bcfc[_0xe544b4(0x2615)](_0x1a654c)['then'](function(){const _0x40fc55=_0xe544b4;_0x19bc9c[_0x40fc55(0x620)]['delete']({'id':_0x340aca['servicenowConfiguration']['id']})[_0x40fc55(0x2945)][_0x40fc55(0x146b)](function(){const _0x1307b4=_0x40fc55;_0x3f65c0()[_0x1307b4(0x2640)](_0x340aca[_0x1307b4(0x1723)],{'id':_0x340aca[_0x1307b4(0x1f2b)]['id']}),_0x5c36f5[_0x1307b4(0x1c75)]({'title':_0x1307b4(0x7ce),'msg':(_0x340aca[_0x1307b4(0x1f2b)][_0x1307b4(0x19eb)]||'servicenowConfiguration')+_0x1307b4(0x23e3)}),_0x53b867(_0x340aca['servicenowConfiguration']);})[_0x40fc55(0x129e)](function(_0x39effe){const _0x5c94f1=_0x40fc55;if(_0x39effe[_0x5c94f1(0x524)]&&_0x39effe['data'][_0x5c94f1(0xcef)]&&_0x39effe[_0x5c94f1(0x524)]['errors'][_0x5c94f1(0x402)]){_0x340aca[_0x5c94f1(0xcef)]=_0x39effe[_0x5c94f1(0x524)][_0x5c94f1(0xcef)]||[{'message':_0x39effe[_0x5c94f1(0xd5f)](),'type':_0x5c94f1(0x1339)}];for(let _0x1e6b91=0x0;_0x1e6b91<_0x39effe[_0x5c94f1(0x524)]['errors'][_0x5c94f1(0x402)];_0x1e6b91++){_0x5c36f5[_0x5c94f1(0x1980)]({'title':_0x39effe[_0x5c94f1(0x524)]['errors'][_0x1e6b91][_0x5c94f1(0x1142)],'msg':_0x39effe[_0x5c94f1(0x524)][_0x5c94f1(0xcef)][_0x1e6b91][_0x5c94f1(0x7fd)]});}}else _0x5c36f5[_0x5c94f1(0x1980)]({'title':_0x39effe['status']?_0x5c94f1(0x262a)+_0x39effe[_0x5c94f1(0x107b)]+'\x20-\x20'+_0x39effe['statusText']:_0x5c94f1(0x1339),'msg':_0x39effe[_0x5c94f1(0x524)]?JSON[_0x5c94f1(0x10bb)](_0x39effe[_0x5c94f1(0x524)]['message']):_0x39effe[_0x5c94f1(0x7fd)]||_0x39effe['toString']()});});},function(){});}function _0x27af40(_0x3a442c){return _0x3a442c===null?undefined:new Date(_0x3a442c);}function _0x53b867(_0x9c9e9f){_0x47bcfc['hide'](_0x9c9e9f);}}const _0x1bd5bd=_0x2057cd;;_0x46efc9['$inject']=[_0x313a4d(0x910),_0x313a4d(0x1862),_0x313a4d(0xd08),_0x313a4d(0x10e8),_0x313a4d(0x1fe4),_0x313a4d(0x19d7),_0x313a4d(0x1fd6),'item',_0x313a4d(0x1f8e),_0x313a4d(0x1142),_0x313a4d(0x247f),_0x313a4d(0xa87),'crudPermissions'];function _0x46efc9(_0x3a5be8,_0x63649,_0x5bad58,_0x776864,_0x12d736,_0x3391a1,_0x4a6021,_0x515185,_0x5dd687,_0x29e42d,_0x1799a2,_0x5ad6e5,_0x53b65f){const _0x452aed=_0x313a4d,_0x2504eb=this;_0x2504eb[_0x452aed(0x2321)]=_0x5ad6e5[_0x452aed(0xb12)](),_0x2504eb[_0x452aed(0xcef)]=[],_0x2504eb['title']=_0x452aed(0x28ec)+_0x3f65c0()[_0x452aed(0xd39)](_0x29e42d),_0x2504eb[_0x452aed(0x2711)]=angular[_0x452aed(0x235a)](_0x515185),_0x2504eb[_0x452aed(0x1fd6)]=_0x4a6021,_0x2504eb[_0x452aed(0x1142)]=_0x29e42d,_0x2504eb[_0x452aed(0x2514)]=_0x53b65f,_0x2504eb['newItem']=![];!_0x2504eb[_0x452aed(0x2711)]&&(_0x2504eb[_0x452aed(0x2711)]={'type':'string'},_0x2504eb['item'][_0x3f65c0()[_0x452aed(0x83f)](_0x29e42d)+'Id']=_0x3391a1['id'],_0x2504eb['title']=_0x452aed(0xe78)+_0x3f65c0()[_0x452aed(0xd39)](_0x29e42d),_0x2504eb[_0x452aed(0x23cd)]=!![]);_0x2504eb[_0x452aed(0x1e65)]=_0x3b6621,_0x2504eb['saveItem']=_0x3762d6,_0x2504eb['deleteItem']=_0x327609,_0x2504eb[_0x452aed(0x21b1)]=_0x4fbad,_0x2504eb[_0x452aed(0x13f3)]=_0x12b85b,_0x1799a2[_0x452aed(0x212)][_0x452aed(0x16b4)]({'nolimit':!![]})[_0x452aed(0x2945)]['then'](function(_0xa6ecdb){const _0x40c802=_0x452aed;return _0x2504eb['variables']=_0xa6ecdb[_0x40c802(0x19c7)]?_0xa6ecdb['rows']:[],_0x1799a2[_0x40c802(0x1cb3)]['describe']()[_0x40c802(0x2945)];})[_0x452aed(0x146b)](function(_0x3a20fe){const _0x13add3=_0x452aed;return _0x2504eb[_0x13add3(0x1c8a)]=_0x3f65c0()[_0x13add3(0xa62)](_0x3f65c0()['keys'](_0x3a20fe),[_0x13add3(0x2945),'$resolved','createdAt',_0x13add3(0x144f),'sourceid']),_0x2504eb[_0x13add3(0x1c8a)][_0x13add3(0x1f47)](_0x13add3(0x643)),_0x1799a2[_0x13add3(0x160)][_0x13add3(0x1ea2)]()['$promise'];})['then'](function(_0x5cfe54){const _0x4bfc29=_0x452aed;_0x2504eb[_0x4bfc29(0x164b)]=_0x3f65c0()['difference'](_0x3f65c0()['keys'](_0x5cfe54),['$promise','$resolved',_0x4bfc29(0xc68),_0x4bfc29(0x144f),_0x4bfc29(0xc3b)]),_0x2504eb[_0x4bfc29(0x164b)][_0x4bfc29(0x1f47)](_0x4bfc29(0x643));})['catch'](function(_0xb3f7ef){const _0x2adacd=_0x452aed;_0x12d736['error']({'title':_0xb3f7ef['status']?'API:'+_0xb3f7ef[_0x2adacd(0x107b)]+_0x2adacd(0x1315)+_0xb3f7ef[_0x2adacd(0x167f)]:_0x2adacd(0x502),'msg':_0xb3f7ef['data']?JSON[_0x2adacd(0x10bb)](_0xb3f7ef[_0x2adacd(0x524)]):_0xb3f7ef['toString']()});}),_0x1799a2[_0x452aed(0xbd9)][_0x452aed(0x12ff)]({'id':_0x5dd687['id'],'ticketType':_0x3391a1[_0x452aed(0x21be)]?_0x3391a1[_0x452aed(0x21be)]:undefined})[_0x452aed(0x2945)]['then'](function(_0x57128b){const _0x4200d8=_0x452aed;_0x2504eb[_0x4200d8(0x822)]=!![],_0x2504eb[_0x4200d8(0x2867)]=_0x57128b[_0x4200d8(0x19c7)]?_0x57128b[_0x4200d8(0x19c7)]:[],_0x2504eb[_0x4200d8(0x2711)][_0x4200d8(0x2912)]&&(_0x2504eb['customField']=_0x3f65c0()[_0x4200d8(0xc84)](_0x2504eb[_0x4200d8(0x2867)],{'id':_0x2504eb[_0x4200d8(0x2711)]['idField']}));})[_0x452aed(0x129e)](function(_0x39f035){_0x2504eb['accountConnected']=![],console['error'](_0x39f035);});function _0x3b6621(){const _0x4404c3=_0x452aed;_0x2504eb[_0x4404c3(0xcef)]=[],_0x2504eb['customField']&&(_0x2504eb['item'][_0x4404c3(0x2912)]=_0x2504eb[_0x4404c3(0x165e)]['id'],_0x2504eb['item'][_0x4404c3(0x25e3)]=_0x2504eb[_0x4404c3(0x165e)][_0x4404c3(0x19eb)],_0x2504eb['item'][_0x4404c3(0x165e)]=_0x2504eb[_0x4404c3(0x165e)][_0x4404c3(0x1802)]),_0x1799a2[_0x4404c3(0x178c)][_0x4404c3(0x1e3)](_0x2504eb[_0x4404c3(0x2711)])[_0x4404c3(0x2945)][_0x4404c3(0x146b)](function(_0x5dbe86){const _0x32a0f5=_0x4404c3;_0x2504eb[_0x32a0f5(0x1fd6)][_0x32a0f5(0xb3d)](_0x5dbe86),_0x12d736['success']({'title':_0x3f65c0()['capitalize'](_0x29e42d)+_0x32a0f5(0x1637),'msg':_0x3f65c0()[_0x32a0f5(0x83f)](_0x29e42d)+'\x20has\x20been\x20created!'}),_0x12b85b();})[_0x4404c3(0x129e)](function(_0x3553cf){const _0xe4d70d=_0x4404c3;console[_0xe4d70d(0x1980)](_0x3553cf),_0x2504eb['errors']=_0x3553cf[_0xe4d70d(0x524)][_0xe4d70d(0xcef)]||[{'message':_0x3553cf[_0xe4d70d(0xd5f)](),'type':_0xe4d70d(0x1ec4)}];});}function _0x3762d6(){const _0x2ffc1b=_0x452aed;_0x2504eb[_0x2ffc1b(0xcef)]=[],_0x2504eb['customField']&&(_0x2504eb[_0x2ffc1b(0x2711)][_0x2ffc1b(0x2912)]=_0x2504eb[_0x2ffc1b(0x165e)]['id'],_0x2504eb['item']['nameField']=_0x2504eb[_0x2ffc1b(0x165e)][_0x2ffc1b(0x19eb)],_0x2504eb[_0x2ffc1b(0x2711)][_0x2ffc1b(0x165e)]=_0x2504eb[_0x2ffc1b(0x165e)][_0x2ffc1b(0x1802)]),_0x1799a2[_0x2ffc1b(0x178c)][_0x2ffc1b(0x18e1)]({'id':_0x2504eb[_0x2ffc1b(0x2711)]['id']},_0x2504eb['item'])[_0x2ffc1b(0x2945)][_0x2ffc1b(0x146b)](function(_0x4f88a9){const _0x4da2a0=_0x2ffc1b,_0x3e1df7=_0x3f65c0()['find'](_0x2504eb[_0x4da2a0(0x1fd6)],{'id':_0x4f88a9['id']});_0x3e1df7&&_0x3f65c0()['merge'](_0x3e1df7,_0x4f88a9),_0x12d736[_0x4da2a0(0x1c75)]({'title':_0x3f65c0()[_0x4da2a0(0x83f)](_0x29e42d)+_0x4da2a0(0xffe),'msg':_0x3f65c0()[_0x4da2a0(0x83f)](_0x29e42d)+_0x4da2a0(0x24db)}),_0x12b85b();})[_0x2ffc1b(0x129e)](function(_0x1ba98f){const _0x6afa06=_0x2ffc1b;console['error'](_0x1ba98f),_0x2504eb[_0x6afa06(0xcef)]=_0x1ba98f['data'][_0x6afa06(0xcef)]||[{'message':_0x1ba98f[_0x6afa06(0xd5f)](),'type':_0x6afa06(0x1b4)}];});}function _0x327609(_0x1eeee9){const _0xb4a411=_0x452aed;_0x2504eb[_0xb4a411(0xcef)]=[];const _0x70a879=_0x776864[_0xb4a411(0x1e8a)]()[_0xb4a411(0x1189)](_0xb4a411(0x1d64))[_0xb4a411(0x80f)](_0xb4a411(0xe57)+_0x29e42d+_0xb4a411(0xe01))[_0xb4a411(0x4bd)](_0xb4a411(0xb22)+_0x3f65c0()['capitalize'](_0x29e42d))['ok']('Delete')[_0xb4a411(0x6c3)](_0xb4a411(0xcf0))[_0xb4a411(0x1f27)](_0x1eeee9);_0x776864[_0xb4a411(0x2615)](_0x70a879)[_0xb4a411(0x146b)](function(){const _0x5a2703=_0xb4a411;_0x1799a2[_0x5a2703(0x178c)][_0x5a2703(0x1fac)]({'id':_0x2504eb[_0x5a2703(0x2711)]['id']})['$promise'][_0x5a2703(0x146b)](function(){const _0x31b2b3=_0x5a2703;_0x3f65c0()[_0x31b2b3(0x2640)](_0x2504eb[_0x31b2b3(0x1fd6)],{'id':_0x2504eb[_0x31b2b3(0x2711)]['id']}),_0x12d736[_0x31b2b3(0x1c75)]({'title':_0x3f65c0()['capitalize'](_0x29e42d)+_0x31b2b3(0x1e6c),'msg':_0x3f65c0()[_0x31b2b3(0x83f)](_0x29e42d)+_0x31b2b3(0x23e3)}),_0x12b85b();})[_0x5a2703(0x129e)](function(_0x3678b3){const _0x4febc0=_0x5a2703;console[_0x4febc0(0x1980)](_0x3678b3),_0x2504eb['errors']=_0x3678b3[_0x4febc0(0x524)][_0x4febc0(0xcef)]||[{'message':_0x3678b3['toString'](),'type':'api.item.delete'}];});},function(){});}function _0x4fbad(){const _0x35c821=_0x452aed;return _0x2504eb['item'][_0x35c821(0x97f)]!==undefined?_0x2504eb[_0x35c821(0x2711)][_0x35c821(0x97f)]:'Please\x20select\x20a\x20variable';}function _0x12b85b(){const _0x47b70a=_0x452aed;_0x776864[_0x47b70a(0x2458)]();}}const _0x1a0df5=_0x46efc9;;_0x57ec9f[_0x313a4d(0x11c2)]=['$state','$location',_0x313a4d(0x10e8),_0x313a4d(0x4d8),_0x313a4d(0x214b),'license','setting',_0x313a4d(0x247f),_0x313a4d(0x1fe4),'Auth',_0x313a4d(0x177c),_0x313a4d(0x1366)];function _0x57ec9f(_0x12e68d,_0xfcdfc1,_0x526e0c,_0x45dc4a,_0xd2d4e,_0x37b3cb,_0x217306,_0x47b28e,_0x485562,_0x110a58,_0x59c563,_0xc77883){const _0x3b746a=_0x313a4d,_0x4766ae=this;_0x4766ae[_0x3b746a(0x2321)]=_0x110a58[_0x3b746a(0xb12)](),_0x4766ae['license']=_0x37b3cb,_0x4766ae[_0x3b746a(0x15b9)]=_0x217306,_0x4766ae['passwordPattern']=_0x4766ae['setting'][_0x3b746a(0x976)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x4766ae[_0x3b746a(0x1002)]=_0xfcdfc1[_0x3b746a(0x2414)]()+_0x3b746a(0xb0e)+_0xfcdfc1[_0x3b746a(0x148e)](),_0x4766ae[_0x3b746a(0x177c)]=_0x59c563||_0x12e68d['params'][_0x3b746a(0x177c)]||{},_0x4766ae[_0x3b746a(0x1366)]=_0xc77883&&_0xc77883['count']==0x1?_0xc77883['rows'][0x0]:null,_0x4766ae[_0x3b746a(0x2514)]=_0x110a58[_0x3b746a(0xe60)](_0x4766ae[_0x3b746a(0x1366)]?_0x4766ae[_0x3b746a(0x1366)][_0x3b746a(0x2514)]:null),_0x4766ae[_0x3b746a(0x855)]={},_0x4766ae['selectedTab']=_0x12e68d[_0x3b746a(0x16a)]['tab']||0x0,_0x4766ae['alert']=_0x485562[_0x3b746a(0x271e)],_0x4766ae[_0x3b746a(0x781)]=_0x359583,_0x4766ae[_0x3b746a(0x242c)]=_0x2d28d2;function _0x359583(){const _0x530e23=_0x3b746a;_0x12e68d['go'](_0x530e23(0x8a8),{},{'reload':_0x530e23(0x8a8)});}function _0x2d28d2(){const _0x1a86ef=_0x3b746a;_0x47b28e['intServicenowAccount'][_0x1a86ef(0x18e1)]({'id':_0x4766ae['servicenowAccount']['id']},_0x4766ae[_0x1a86ef(0x177c)])[_0x1a86ef(0x2945)][_0x1a86ef(0x146b)](function(){const _0x23b9fc=_0x1a86ef;_0x485562[_0x23b9fc(0x1c75)]({'title':_0x23b9fc(0x225c),'msg':_0x4766ae[_0x23b9fc(0x177c)][_0x23b9fc(0x19eb)]?_0x4766ae[_0x23b9fc(0x177c)][_0x23b9fc(0x19eb)]+'\x20has\x20been\x20updated!':''});})[_0x1a86ef(0x129e)](function(_0x24161d){const _0x98b379=_0x1a86ef;_0x485562[_0x98b379(0x1980)]({'title':_0x24161d['status']?_0x98b379(0x262a)+_0x24161d[_0x98b379(0x107b)]+_0x98b379(0x1315)+_0x24161d[_0x98b379(0x167f)]:_0x98b379(0x3a2),'msg':_0x24161d[_0x98b379(0x524)]?JSON[_0x98b379(0x10bb)](_0x24161d[_0x98b379(0x524)]):_0x24161d[_0x98b379(0xd5f)]()});});}}const _0x5982d5=_0x57ec9f;;const _0x81f093=_0x4acfac['p']+'src/js/modules/main/apps/integrations/views/servicenowAccounts/create/dialog.html/dialog.html';;_0x3c2a4f[_0x313a4d(0x11c2)]=['$scope','$window',_0x313a4d(0x1862),_0x313a4d(0x15fe),'$mdDialog','$document',_0x313a4d(0x1abe),_0x313a4d(0x214b),_0x313a4d(0x69b),'userProfile','userProfileSection',_0x313a4d(0x247f),_0x313a4d(0x216c),'toasty',_0x313a4d(0xa87),_0x313a4d(0x2690),_0x313a4d(0x15b9)];function _0x3c2a4f(_0x3c8781,_0x24f67a,_0x5a11fe,_0x563edd,_0x25f5ad,_0x7af216,_0x57a83e,_0x2ee207,_0x984aa9,_0x155e68,_0x43b8a8,_0x21affa,_0x3ab3f8,_0x4464ac,_0x37d46c,_0x3ae045,_0xa5c1f4){const _0x25c2f0=_0x313a4d,_0x580fc7=this;_0x580fc7[_0x25c2f0(0x2690)]=_0x3ae045,_0x580fc7[_0x25c2f0(0x15b9)]=_0xa5c1f4,_0x580fc7[_0x25c2f0(0x2321)]=_0x37d46c[_0x25c2f0(0xb12)](),_0x580fc7[_0x25c2f0(0x69b)]=_0x984aa9||{'count':0x0,'rows':[]},_0x580fc7[_0x25c2f0(0x26b6)]=_0x155e68,_0x580fc7[_0x25c2f0(0x1366)]=_0x43b8a8&&_0x43b8a8['count']==0x1?_0x43b8a8[_0x25c2f0(0x19c7)][0x0]:null,_0x580fc7['crudPermissions']=_0x37d46c[_0x25c2f0(0xe60)](_0x580fc7[_0x25c2f0(0x1366)]?_0x580fc7[_0x25c2f0(0x1366)][_0x25c2f0(0x2514)]:null),_0x580fc7['table']='servicenowAccounts',_0x580fc7['listOrder']='',_0x580fc7[_0x25c2f0(0x214f)]=null,_0x580fc7[_0x25c2f0(0x10b)]=[],_0x580fc7[_0x25c2f0(0x1a56)]={'fields':'createdAt,updatedAt,id,name,username,password,email,remoteUri,serverUrl,description','limit':0xa,'page':0x1},_0x580fc7[_0x25c2f0(0x23f9)]=_0x2348e3,_0x580fc7['testtestintegrationaccount']=_0x4fd913,_0x580fc7[_0x25c2f0(0xf0a)]=_0x3e52ad,_0x580fc7[_0x25c2f0(0x1c75)]=_0x4ebf3d,_0x580fc7['getServicenowAccounts']=_0x7b8f2a,_0x580fc7[_0x25c2f0(0x1630)]=_0x97c700,_0x580fc7[_0x25c2f0(0x2460)]=_0x115ee7,_0x580fc7['exportSelectedServicenowAccounts']=_0x56167b,_0x580fc7[_0x25c2f0(0x10b5)]=_0x5eec34,_0x580fc7[_0x25c2f0(0x19a4)]=_0x33c5fc,_0x580fc7[_0x25c2f0(0x782)]=_0x2fb85f;function _0x2348e3(_0x44cf76){const _0x5763fe=_0x25c2f0;_0x5a11fe['go'](_0x5763fe(0x1ddb),{'id':_0x44cf76['id'],'servicenowAccount':_0x44cf76,'crudPermissions':_0x580fc7[_0x5763fe(0x2514)]});}function _0x4fd913(_0x30c6ab){const _0x3b6a96=_0x25c2f0;return _0x21affa[_0x3b6a96(0xbd9)]['getFields']({'id':_0x30c6ab['id'],'test':!![]})[_0x3b6a96(0x2945)][_0x3b6a96(0x146b)](function(){const _0x3baa50=_0x3b6a96;_0x4464ac[_0x3baa50(0x1c75)]({'title':_0x3baa50(0x12d8),'msg':_0x3baa50(0x1893)});})[_0x3b6a96(0x129e)](function(_0x3bfc37){const _0x3e3907=_0x3b6a96;_0x4464ac[_0x3e3907(0x1980)]({'title':'ServicenowAccount\x20properly\x20tested','msg':_0x3bfc37[_0x3e3907(0x524)]?_0x3bfc37[_0x3e3907(0x524)][_0x3e3907(0x7fd)]?_0x3bfc37[_0x3e3907(0x524)][_0x3e3907(0x7fd)]:JSON[_0x3e3907(0x10bb)](_0x3bfc37[_0x3e3907(0x524)]):_0x3bfc37[_0x3e3907(0xd5f)]()});});}function _0x3e52ad(_0x5fb483,_0x13eb6f){const _0x451004=_0x25c2f0,_0x4a3dc2=_0x25f5ad[_0x451004(0x1e8a)]()['title'](_0x451004(0xdb2)+_0x3f65c0()['startCase'](_0x451004(0x177c))+'?')[_0x451004(0x1cbe)](''+(_0x5fb483[_0x451004(0x19eb)]||_0x451004(0x177c))+_0x451004(0x252f)+_0x451004(0xe01))[_0x451004(0x4bd)](_0x451004(0x1b6))[_0x451004(0x1f27)](_0x13eb6f)['ok']('OK')[_0x451004(0x6c3)](_0x451004(0x39a));_0x25f5ad[_0x451004(0x2615)](_0x4a3dc2)[_0x451004(0x146b)](function(){_0x115ee7(_0x5fb483);},function(){const _0x29e375=_0x451004;console[_0x29e375(0x1a74)](_0x29e375(0x39a));});}let _0x2dae5b=!![],_0x2730a5=0x1;_0x3c8781[_0x25c2f0(0x21e8)](_0x25c2f0(0x2669),function(_0x54d6e6,_0x31a05a){const _0x33a44b=_0x25c2f0;_0x2dae5b?_0x57a83e(function(){_0x2dae5b=![];}):(!_0x31a05a&&(_0x2730a5=_0x580fc7['query'][_0x33a44b(0x844)]),_0x54d6e6!==_0x31a05a&&(_0x580fc7[_0x33a44b(0x1a56)][_0x33a44b(0x844)]=0x1),!_0x54d6e6&&(_0x580fc7[_0x33a44b(0x1a56)][_0x33a44b(0x844)]=_0x2730a5),_0x580fc7[_0x33a44b(0x243f)]());});function _0x4ebf3d(_0x104957){const _0x1b2fc9=_0x25c2f0;_0x580fc7[_0x1b2fc9(0x69b)]=_0x104957||{'count':0x0,'rows':[]};}function _0x7b8f2a(){const _0x415435=_0x25c2f0;_0x580fc7[_0x415435(0x1a56)][_0x415435(0x145d)]=(_0x580fc7[_0x415435(0x1a56)]['page']-0x1)*_0x580fc7[_0x415435(0x1a56)]['limit'],_0x37d46c[_0x415435(0x23e0)](_0x415435(0x174b))?_0x580fc7[_0x415435(0xb9c)]=_0x21affa[_0x415435(0xbd9)][_0x415435(0x16b4)](_0x580fc7[_0x415435(0x1a56)],_0x4ebf3d)[_0x415435(0x2945)]:(_0x580fc7[_0x415435(0x1a56)]['id']=_0x580fc7['userProfile']['id'],_0x580fc7[_0x415435(0x1a56)][_0x415435(0x2146)]=_0x415435(0xa95),_0x580fc7[_0x415435(0xb9c)]=_0x21affa[_0x415435(0x26b6)][_0x415435(0x158f)](_0x580fc7[_0x415435(0x1a56)],_0x4ebf3d)[_0x415435(0x2945)]);}function _0x97c700(_0x33d8c3,_0xe0c31a){const _0xf33877=_0x25c2f0;_0x25f5ad[_0xf33877(0x2615)]({'controller':'CreateOrEditServicenowAccountDialogController','controllerAs':'vm','templateUrl':_0x81f093,'parent':angular['element'](_0x7af216['body']),'targetEvent':_0x33d8c3,'clickOutsideToClose':!![],'locals':{'servicenowAccount':_0xe0c31a,'servicenowAccounts':_0x580fc7['servicenowAccounts'][_0xf33877(0x19c7)],'license':_0x580fc7[_0xf33877(0x2690)],'setting':_0x580fc7[_0xf33877(0x15b9)],'crudPermissions':_0x580fc7['crudPermissions']}});}function _0x115ee7(_0x423fc3){const _0x47cb34=_0x25c2f0;_0x21affa[_0x47cb34(0xbd9)][_0x47cb34(0x1fac)]({'id':_0x423fc3['id']})[_0x47cb34(0x2945)][_0x47cb34(0x146b)](function(){const _0xf413eb=_0x47cb34;_0x3f65c0()[_0xf413eb(0x2640)](_0x580fc7['servicenowAccounts'][_0xf413eb(0x19c7)],{'id':_0x423fc3['id']}),_0x580fc7[_0xf413eb(0x69b)][_0xf413eb(0x51c)]-=0x1,!_0x580fc7[_0xf413eb(0x69b)][_0xf413eb(0x19c7)][_0xf413eb(0x402)]&&_0x580fc7['getServicenowAccounts'](),_0x4464ac[_0xf413eb(0x1c75)]({'title':_0x3f65c0()[_0xf413eb(0x20d1)](_0xf413eb(0x12fb))+_0xf413eb(0x201c),'msg':_0x423fc3[_0xf413eb(0x19eb)]?_0x423fc3[_0xf413eb(0x19eb)]+_0xf413eb(0x23e3):''});})[_0x47cb34(0x129e)](function(_0x16263){const _0x11cd9d=_0x47cb34;if(_0x16263[_0x11cd9d(0x524)]&&_0x16263[_0x11cd9d(0x524)]['errors']&&_0x16263[_0x11cd9d(0x524)][_0x11cd9d(0xcef)][_0x11cd9d(0x402)]){_0x580fc7[_0x11cd9d(0xcef)]=_0x16263['data'][_0x11cd9d(0xcef)]||[{'message':_0x16263[_0x11cd9d(0xd5f)](),'type':_0x11cd9d(0x10a8)}];for(let _0x313550=0x0;_0x313550<_0x16263[_0x11cd9d(0x524)][_0x11cd9d(0xcef)][_0x11cd9d(0x402)];_0x313550++){_0x4464ac[_0x11cd9d(0x1980)]({'title':_0x16263[_0x11cd9d(0x524)]['errors'][_0x313550][_0x11cd9d(0x1142)],'msg':_0x16263['data'][_0x11cd9d(0xcef)][_0x313550][_0x11cd9d(0x7fd)]});}}else _0x4464ac[_0x11cd9d(0x1980)]({'title':_0x16263[_0x11cd9d(0x107b)]?_0x11cd9d(0x262a)+_0x16263['status']+_0x11cd9d(0x1315)+_0x16263['statusText']:'SYSTEM:DELETEintServicenowAccount','msg':_0x16263[_0x11cd9d(0x524)]?JSON[_0x11cd9d(0x10bb)](_0x16263['data']['message']):_0x16263[_0x11cd9d(0x7fd)]||_0x16263[_0x11cd9d(0xd5f)]()});});}function _0x56167b(){const _0x1c3579=_0x25c2f0,_0x4c7311=angular[_0x1c3579(0x235a)](_0x580fc7['selectedServicenowAccounts']);return _0x580fc7[_0x1c3579(0x10b)]=[],_0x4c7311;}function _0x5eec34(_0x46330c){const _0xbf9b23=_0x25c2f0,_0x3f92bf=_0x25f5ad['confirm']()[_0xbf9b23(0x1189)](_0xbf9b23(0x1474))[_0xbf9b23(0x1cbe)](_0xbf9b23(0x16d3)+_0x580fc7[_0xbf9b23(0x10b)][_0xbf9b23(0x402)]+_0xbf9b23(0x2452)+_0xbf9b23(0xe01))[_0xbf9b23(0x4bd)](_0xbf9b23(0x1bb2))[_0xbf9b23(0x1f27)](_0x46330c)['ok']('OK')['cancel'](_0xbf9b23(0x39a));_0x25f5ad[_0xbf9b23(0x2615)](_0x3f92bf)['then'](function(){const _0x23a531=_0xbf9b23;_0x580fc7[_0x23a531(0x10b)]['forEach'](function(_0x2916dc){_0x115ee7(_0x2916dc);}),_0x580fc7[_0x23a531(0x10b)]=[];});}function _0x33c5fc(){const _0x221bb4=_0x25c2f0;_0x580fc7[_0x221bb4(0x10b)]=[];}function _0x2fb85f(){const _0x5ab1cd=_0x25c2f0;_0x580fc7[_0x5ab1cd(0x10b)]=_0x580fc7[_0x5ab1cd(0x69b)][_0x5ab1cd(0x19c7)];}}const _0x218c42=_0x3c2a4f;;_0x2cefba[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1862),_0x313a4d(0xd08),_0x313a4d(0x10e8),'$q','$translate','toasty',_0x313a4d(0x2dd),_0x313a4d(0x16a4),_0x313a4d(0x247f),'Auth',_0x313a4d(0x2690),_0x313a4d(0x15b9),'crudPermissions'];function _0x2cefba(_0x493521,_0x947e57,_0x3139ac,_0x5c50bd,_0x5c5c22,_0xcae2af,_0x4e9270,_0x52e580,_0x20846c,_0x2ef9f7,_0x1111a9,_0x2e2625,_0x2525a7,_0x52b914){const _0x3e29f5=_0x313a4d,_0x46146c=this;_0x46146c[_0x3e29f5(0x2321)]=_0x1111a9[_0x3e29f5(0xb12)](),_0x46146c[_0x3e29f5(0xcef)]=[],_0x46146c[_0x3e29f5(0x15b9)]=_0x2525a7,_0x46146c[_0x3e29f5(0x2690)]=_0x2e2625,_0x46146c[_0x3e29f5(0x2514)]=_0x52b914,_0x46146c[_0x3e29f5(0x855)]={},_0x46146c[_0x3e29f5(0x2251)]=_0x46146c[_0x3e29f5(0x15b9)]&&_0x46146c[_0x3e29f5(0x15b9)]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x46146c[_0x3e29f5(0x1189)]='INTEGRATIONS.EDIT_SUGARCRMACCOUNT',_0x46146c['sugarcrmAccount']=angular[_0x3e29f5(0x235a)](_0x20846c),_0x46146c[_0x3e29f5(0x2dd)]=_0x52e580,_0x46146c[_0x3e29f5(0x13f7)]=![];!_0x46146c[_0x3e29f5(0x16a4)]&&(_0x46146c['sugarcrmAccount']={'serverUrl':_0x3139ac['protocol']()+_0x3e29f5(0xb0e)+_0x3139ac[_0x3e29f5(0x148e)]()+(_0x3139ac[_0x3e29f5(0x1553)]()?':'+_0x3139ac[_0x3e29f5(0x1553)]():'')},_0x46146c[_0x3e29f5(0x1189)]='INTEGRATIONS.NEW_SUGARCRMACCOUNT',_0x46146c[_0x3e29f5(0x13f7)]=!![]);_0x46146c[_0x3e29f5(0x273f)]=_0x519ef3,_0x46146c[_0x3e29f5(0x1b4d)]=_0x427885,_0x46146c[_0x3e29f5(0x75c)]=_0x1c800c,_0x46146c[_0x3e29f5(0xe73)]=_0x269647,_0x46146c[_0x3e29f5(0x13f3)]=_0x546621;function _0x519ef3(){const _0x49e0b6=_0x3e29f5;_0x46146c['errors']=[],_0x2ef9f7[_0x49e0b6(0x1cf5)][_0x49e0b6(0x1e3)](_0x46146c[_0x49e0b6(0x16a4)])['$promise'][_0x49e0b6(0x146b)](function(_0x2ea593){const _0x42c128=_0x49e0b6;_0x46146c[_0x42c128(0x2dd)][_0x42c128(0xb3d)](_0x2ea593[_0x42c128(0x2488)]()),_0x4e9270[_0x42c128(0x1c75)]({'title':_0x42c128(0x1c6f),'msg':_0x46146c[_0x42c128(0x16a4)][_0x42c128(0x19eb)]?_0x46146c['sugarcrmAccount'][_0x42c128(0x19eb)]+_0x42c128(0x1386):''}),_0x546621(_0x2ea593);})[_0x49e0b6(0x129e)](function(_0x27cdef){const _0x5b123e=_0x49e0b6;if(_0x27cdef[_0x5b123e(0x524)]&&_0x27cdef['data'][_0x5b123e(0xcef)]&&_0x27cdef[_0x5b123e(0x524)][_0x5b123e(0xcef)][_0x5b123e(0x402)]){_0x46146c['errors']=_0x27cdef[_0x5b123e(0x524)]['errors']||[{'message':_0x27cdef['toString'](),'type':'api.intSugarcrmAccount.save'}];for(let _0x37debc=0x0;_0x37debc<_0x27cdef[_0x5b123e(0x524)]['errors'][_0x5b123e(0x402)];_0x37debc+=0x1){_0x4e9270[_0x5b123e(0x1980)]({'title':_0x27cdef[_0x5b123e(0x524)][_0x5b123e(0xcef)][_0x37debc][_0x5b123e(0x1142)],'msg':_0x27cdef[_0x5b123e(0x524)][_0x5b123e(0xcef)][_0x37debc][_0x5b123e(0x7fd)]});}}else _0x4e9270[_0x5b123e(0x1980)]({'title':_0x27cdef[_0x5b123e(0x107b)]?'API:'+_0x27cdef[_0x5b123e(0x107b)]+_0x5b123e(0x1315)+_0x27cdef[_0x5b123e(0x167f)]:_0x5b123e(0x376),'msg':_0x27cdef['data']?JSON['stringify'](_0x27cdef[_0x5b123e(0x524)][_0x5b123e(0x7fd)]):_0x27cdef[_0x5b123e(0xd5f)]()});});}function _0x427885(){const _0x266917=_0x3e29f5;_0x46146c[_0x266917(0xcef)]=[],_0x2ef9f7[_0x266917(0x1cf5)][_0x266917(0x18e1)]({'id':_0x46146c[_0x266917(0x16a4)]['id']},_0x46146c[_0x266917(0x16a4)])[_0x266917(0x2945)][_0x266917(0x146b)](function(_0x50bbfb){const _0x104a79=_0x266917,_0x117845=_0x3f65c0()[_0x104a79(0xc84)](_0x46146c[_0x104a79(0x2dd)],{'id':_0x50bbfb['id']});_0x117845&&_0x3f65c0()[_0x104a79(0x168d)](_0x117845,_0x3f65c0()[_0x104a79(0x40e)](_0x50bbfb[_0x104a79(0x2488)](),_0x3f65c0()['keys'](_0x117845))),_0x4e9270[_0x104a79(0x1c75)]({'title':_0x104a79(0xa19),'msg':_0x46146c[_0x104a79(0x16a4)][_0x104a79(0x19eb)]?_0x46146c[_0x104a79(0x16a4)]['name']+_0x104a79(0x24db):''}),_0x546621(_0x50bbfb);})[_0x266917(0x129e)](function(_0x48655b){const _0x5d6cac=_0x266917;if(_0x48655b[_0x5d6cac(0x524)]&&_0x48655b[_0x5d6cac(0x524)]['errors']&&_0x48655b[_0x5d6cac(0x524)][_0x5d6cac(0xcef)][_0x5d6cac(0x402)]){_0x46146c[_0x5d6cac(0xcef)]=_0x48655b[_0x5d6cac(0x524)]['errors']||[{'message':_0x48655b[_0x5d6cac(0xd5f)](),'type':_0x5d6cac(0x27cf)}];for(let _0x5129fb=0x0;_0x5129fb<_0x48655b['data'][_0x5d6cac(0xcef)][_0x5d6cac(0x402)];_0x5129fb++){_0x4e9270[_0x5d6cac(0x1980)]({'title':_0x48655b['data'][_0x5d6cac(0xcef)][_0x5129fb][_0x5d6cac(0x1142)],'msg':_0x48655b[_0x5d6cac(0x524)][_0x5d6cac(0xcef)][_0x5129fb][_0x5d6cac(0x7fd)]});}}else _0x4e9270['error']({'title':_0x48655b[_0x5d6cac(0x107b)]?_0x5d6cac(0x262a)+_0x48655b[_0x5d6cac(0x107b)]+_0x5d6cac(0x1315)+_0x48655b[_0x5d6cac(0x167f)]:'api.intSugarcrmAccount.update','msg':_0x48655b[_0x5d6cac(0x524)]?JSON[_0x5d6cac(0x10bb)](_0x48655b[_0x5d6cac(0x524)]['message']):_0x48655b[_0x5d6cac(0xd5f)]()});});}function _0x1c800c(_0x4b6181){const _0x3e4105=_0x3e29f5;_0x46146c[_0x3e4105(0xcef)]=[];const _0x4d16cf=_0x5c50bd[_0x3e4105(0x1e8a)]()[_0x3e4105(0x1189)](_0x3e4105(0x1d64))[_0x3e4105(0x80f)](_0x3e4105(0xafa))[_0x3e4105(0x4bd)]('Delete\x20SugarcrmAccount')['ok'](_0x3e4105(0x25de))[_0x3e4105(0x6c3)](_0x3e4105(0xcf0))[_0x3e4105(0x1f27)](_0x4b6181);_0x5c50bd[_0x3e4105(0x2615)](_0x4d16cf)[_0x3e4105(0x146b)](function(){const _0x4ff3e8=_0x3e4105;_0x2ef9f7['intSugarcrmAccount'][_0x4ff3e8(0x1fac)]({'id':_0x46146c[_0x4ff3e8(0x16a4)]['id']})[_0x4ff3e8(0x2945)][_0x4ff3e8(0x146b)](function(){const _0x5cac73=_0x4ff3e8;_0x3f65c0()[_0x5cac73(0x2640)](_0x46146c[_0x5cac73(0x2dd)],{'id':_0x46146c[_0x5cac73(0x16a4)]['id']}),_0x4e9270['success']({'title':_0x5cac73(0x20eb),'msg':(_0x46146c[_0x5cac73(0x16a4)][_0x5cac73(0x19eb)]||_0x5cac73(0x16a4))+_0x5cac73(0x23e3)}),_0x546621(_0x46146c[_0x5cac73(0x16a4)]);})['catch'](function(_0x1cafa1){const _0x3f2920=_0x4ff3e8;if(_0x1cafa1[_0x3f2920(0x524)]&&_0x1cafa1[_0x3f2920(0x524)][_0x3f2920(0xcef)]&&_0x1cafa1[_0x3f2920(0x524)][_0x3f2920(0xcef)][_0x3f2920(0x402)]){_0x46146c[_0x3f2920(0xcef)]=_0x1cafa1[_0x3f2920(0x524)][_0x3f2920(0xcef)]||[{'message':_0x1cafa1[_0x3f2920(0xd5f)](),'type':_0x3f2920(0x37a)}];for(let _0x1083b7=0x0;_0x1083b7<_0x1cafa1[_0x3f2920(0x524)][_0x3f2920(0xcef)][_0x3f2920(0x402)];_0x1083b7++){_0x4e9270[_0x3f2920(0x1980)]({'title':_0x1cafa1['data']['errors'][_0x1083b7]['type'],'msg':_0x1cafa1[_0x3f2920(0x524)][_0x3f2920(0xcef)][_0x1083b7][_0x3f2920(0x7fd)]});}}else _0x4e9270[_0x3f2920(0x1980)]({'title':_0x1cafa1['status']?'API:'+_0x1cafa1[_0x3f2920(0x107b)]+_0x3f2920(0x1315)+_0x1cafa1[_0x3f2920(0x167f)]:_0x3f2920(0x37a),'msg':_0x1cafa1[_0x3f2920(0x524)]?JSON[_0x3f2920(0x10bb)](_0x1cafa1['data']['message']):_0x1cafa1[_0x3f2920(0x7fd)]||_0x1cafa1['toString']()});});},function(){});}function _0x269647(_0x49b10d){return _0x49b10d===null?undefined:new Date(_0x49b10d);}function _0x546621(_0x681d41){const _0x5eab47=_0x3e29f5;_0x5c50bd[_0x5eab47(0x2458)](_0x681d41);}}const _0x33c680=_0x2cefba;;const _0x2ce3b8=_0x4acfac['p']+_0x313a4d(0x411);;const _0x3c776d=_0x4acfac['p']+'src/js/modules/main/apps/integrations/views/sugarcrmAccounts/edit/item/dialog.html/dialog.html';;_0x36c86c['$inject']=[_0x313a4d(0x10e8),'$document',_0x313a4d(0x247f),_0x313a4d(0x1fe4),_0x313a4d(0xa87)];function _0x36c86c(_0x45358a,_0x4d7c96,_0x415c23,_0x442119,_0xa4dfce){const _0x336342=_0x313a4d,_0x5150d1=this;_0x5150d1[_0x336342(0x2321)]=_0xa4dfce[_0x336342(0xb12)](),_0x5150d1[_0x336342(0x16a4)]={},_0x5150d1[_0x336342(0x2738)]={},_0x5150d1[_0x336342(0x1723)]=[],_0x5150d1[_0x336342(0x146c)]=-0x1,_0x5150d1[_0x336342(0x2514)],_0x5150d1[_0x336342(0x5aa)]=_0x18a0e5,_0x5150d1[_0x336342(0x132d)]=_0x172342,_0x5150d1[_0x336342(0x82e)]=_0x2cdb2d,_0x5150d1[_0x336342(0x7ca)]=_0x51306a;function _0x18a0e5(_0x4e92f1,_0x5ebff5){const _0x4a2104=_0x336342;_0x5150d1[_0x4a2104(0x16a4)]=_0x4e92f1,_0x5150d1[_0x4a2104(0x2514)]=typeof _0x5ebff5!=='undefined'?_0x5ebff5:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x415c23[_0x4a2104(0x1cf5)][_0x4a2104(0xeb)]({'id':_0x5150d1['sugarcrmAccount']['id'],'sort':_0x4a2104(0x12f2)})[_0x4a2104(0x2945)]['then'](function(_0x380eb5){const _0x4ba9c8=_0x4a2104;return _0x5150d1[_0x4ba9c8(0x1723)]=_0x380eb5[_0x4ba9c8(0x19c7)]?_0x380eb5[_0x4ba9c8(0x19c7)]:[],_0x5150d1[_0x4ba9c8(0x1723)]['length']&&_0x5150d1['getSugarcrmConfiguration'](0x0),_0x415c23[_0x4ba9c8(0x212)][_0x4ba9c8(0x16b4)]({'nolimit':!![],'sort':_0x4ba9c8(0x19eb)})[_0x4ba9c8(0x2945)];})['then'](function(_0x44840d){const _0x78c28c=_0x4a2104;_0x5150d1[_0x78c28c(0x85b)]=_0x44840d['rows']?_0x44840d[_0x78c28c(0x19c7)]:[],_0x5150d1['variablesById']=_0x3f65c0()[_0x78c28c(0x194)](_0x5150d1[_0x78c28c(0x85b)],'id');})[_0x4a2104(0x129e)](function(_0xa10a02){const _0x19a3e8=_0x4a2104;_0x442119[_0x19a3e8(0x1980)]({'title':_0xa10a02['status']?_0x19a3e8(0x262a)+_0xa10a02[_0x19a3e8(0x107b)]+_0x19a3e8(0x1315)+_0xa10a02['statusText']:_0x19a3e8(0x9e7),'msg':_0xa10a02['data']?JSON[_0x19a3e8(0x10bb)](_0xa10a02[_0x19a3e8(0x524)]):_0xa10a02[_0x19a3e8(0xd5f)]()});});}function _0x172342(_0x1d6e94){const _0x42187f=_0x336342;_0x5150d1[_0x42187f(0x2738)]=_0x5150d1[_0x42187f(0x1723)][_0x1d6e94],_0x5150d1[_0x42187f(0x146c)]=_0x1d6e94,_0x415c23['intSugarcrmConfiguration'][_0x42187f(0x18ee)]({'id':_0x5150d1[_0x42187f(0x2738)]['id']})[_0x42187f(0x2945)][_0x42187f(0x146b)](function(_0x3722d1){const _0x4ef8d4=_0x42187f;return _0x5150d1[_0x4ef8d4(0x3c8)]=_0x3722d1['rows']?_0x3722d1[_0x4ef8d4(0x19c7)]:[],_0x415c23['intSugarcrmConfiguration'][_0x4ef8d4(0xc2a)]({'id':_0x5150d1[_0x4ef8d4(0x2738)]['id']})['$promise'];})['then'](function(_0x1e427c){const _0x2c7c6c=_0x42187f;return _0x5150d1[_0x2c7c6c(0x2358)]=_0x1e427c[_0x2c7c6c(0x19c7)]?_0x1e427c['rows']:[],_0x415c23[_0x2c7c6c(0x547)][_0x2c7c6c(0x12ff)]({'id':_0x5150d1[_0x2c7c6c(0x2738)]['id']})[_0x2c7c6c(0x2945)];})[_0x42187f(0x146b)](function(_0x2382a7){const _0x1cfff4=_0x42187f;_0x5150d1[_0x1cfff4(0x2867)]=_0x2382a7['rows']?_0x2382a7[_0x1cfff4(0x19c7)]:[];})['catch'](function(_0x41bff3){const _0x4f21bd=_0x42187f;_0x442119['error']({'title':_0x41bff3[_0x4f21bd(0x107b)]?'API:'+_0x41bff3[_0x4f21bd(0x107b)]+'\x20-\x20'+_0x41bff3[_0x4f21bd(0x167f)]:_0x4f21bd(0x6ca),'msg':_0x41bff3[_0x4f21bd(0x524)]?JSON[_0x4f21bd(0x10bb)](_0x41bff3[_0x4f21bd(0x524)]):_0x41bff3[_0x4f21bd(0xd5f)]()});});}function _0x2cdb2d(_0x109db4,_0x505b85){const _0x4d29e0=_0x336342;_0x45358a[_0x4d29e0(0x2615)]({'controller':_0x4d29e0(0x22f8),'controllerAs':'vm','templateUrl':_0x2ce3b8,'parent':angular['element'](_0x4d7c96[_0x4d29e0(0x2586)]),'targetEvent':_0x109db4,'clickOutsideToClose':!![],'locals':{'sugarcrmConfiguration':_0x505b85,'configurations':_0x5150d1[_0x4d29e0(0x1723)],'license':null,'setting':null,'crudPermissions':_0x5150d1['crudPermissions']}})[_0x4d29e0(0x1ec6)](function(){const _0x106f6b=_0x4d29e0;_0x5150d1[_0x106f6b(0x132d)](0x0);});}function _0x51306a(_0x2b2547,_0x109622){const _0xf5480b=_0x336342,_0x30d449=_0x45358a['confirm']()[_0xf5480b(0x1189)](_0xf5480b(0x2a6))[_0xf5480b(0x1cbe)](''+(_0x109622[_0xf5480b(0x19eb)]||'sugarcrmConfiguration')+_0xf5480b(0x252f)+_0xf5480b(0xe01))[_0xf5480b(0x4bd)](_0xf5480b(0x88c))[_0xf5480b(0x1f27)](_0x2b2547)['ok']('OK')['cancel'](_0xf5480b(0x39a));_0x45358a[_0xf5480b(0x2615)](_0x30d449)[_0xf5480b(0x146b)](function(){const _0xdec698=_0xf5480b;_0x415c23['intSugarcrmConfiguration']['delete']({'id':_0x109622['id']})[_0xdec698(0x2945)][_0xdec698(0x146b)](function(){const _0x372e04=_0xdec698;_0x3f65c0()[_0x372e04(0x2640)](_0x5150d1['configurations'],{'id':_0x109622['id']}),_0x442119[_0x372e04(0x1c75)]({'title':_0x372e04(0x223f),'msg':_0x109622[_0x372e04(0x19eb)]?_0x109622['name']+_0x372e04(0x23e3):''});})['catch'](function(_0x4412ea){const _0x3fe804=_0xdec698;_0x442119['error']({'title':_0x4412ea['status']?_0x3fe804(0x262a)+_0x4412ea['status']+'\x20-\x20'+_0x4412ea[_0x3fe804(0x167f)]:_0x3fe804(0xff1),'msg':_0x4412ea['data']?JSON[_0x3fe804(0x10bb)](_0x4412ea[_0x3fe804(0x524)]):_0x4412ea['toString']()});})[_0xdec698(0x1ec6)](function(){_0x5150d1['getSugarcrmConfiguration'](0x0);});},function(){console['log']('CANCEL');});}_0x5150d1[_0x336342(0x15a6)]=[],_0x5150d1[_0x336342(0x2665)]=_0x546d9a,_0x5150d1[_0x336342(0x10d5)]=_0x12a977,_0x5150d1[_0x336342(0x1777)]=_0x33988f;function _0x546d9a(_0xca5948,_0x35a390){const _0x36296b=_0x336342;_0x45358a[_0x36296b(0x2615)]({'controller':_0x36296b(0x206d),'controllerAs':'vm','templateUrl':_0x3c776d,'parent':angular[_0x36296b(0x1853)](_0x4d7c96[_0x36296b(0x2586)]),'targetEvent':_0xca5948,'clickOutsideToClose':!![],'locals':{'type':_0x36296b(0xe32),'item':_0x35a390,'items':_0x5150d1['subjects'],'configuration':_0x5150d1[_0x36296b(0x2738)],'account':_0x5150d1[_0x36296b(0x16a4)],'license':null,'setting':null,'crudPermissions':_0x5150d1[_0x36296b(0x2514)]}});}function _0x20405b(_0x465a55){const _0x53085a=_0x336342;_0x415c23[_0x53085a(0x260e)]['delete']({'id':_0x465a55['id']})[_0x53085a(0x2945)]['then'](function(){const _0x305b89=_0x53085a;_0x3f65c0()[_0x305b89(0x2640)](_0x5150d1[_0x305b89(0x3c8)],{'id':_0x465a55['id']}),_0x442119['success']({'title':'Subject\x20deleted!','msg':'Subject\x20has\x20been\x20deleted!'});})['catch'](function(_0x2571c8){const _0x51d20c=_0x53085a;_0x442119[_0x51d20c(0x1980)]({'title':_0x2571c8[_0x51d20c(0x107b)]?'API:'+_0x2571c8[_0x51d20c(0x107b)]+_0x51d20c(0x1315)+_0x2571c8[_0x51d20c(0x167f)]:_0x51d20c(0xf6e),'msg':_0x2571c8[_0x51d20c(0x524)]?JSON[_0x51d20c(0x10bb)](_0x2571c8['data']):_0x2571c8[_0x51d20c(0xd5f)]()});});}function _0x12a977(_0x1be191,_0xe80d49){const _0x2e1130=_0x336342,_0x35a2c4=_0x45358a[_0x2e1130(0x1e8a)]()[_0x2e1130(0x1189)](_0x2e1130(0x317))[_0x2e1130(0x1cbe)]('Subject'+_0x2e1130(0xe01))[_0x2e1130(0x4bd)]('delete\x20subject')[_0x2e1130(0x1f27)](_0x1be191)['ok']('OK')[_0x2e1130(0x6c3)]('CANCEL');_0x45358a[_0x2e1130(0x2615)](_0x35a2c4)[_0x2e1130(0x146b)](function(){_0x20405b(_0xe80d49);},function(){const _0x14b0a2=_0x2e1130;console[_0x14b0a2(0x1a74)](_0x14b0a2(0x39a));});}function _0x33988f(_0x3cad24){const _0x9fdf2f=_0x336342,_0x5787ad=_0x45358a['confirm']()[_0x9fdf2f(0x1189)](_0x9fdf2f(0x2e6))[_0x9fdf2f(0x1cbe)](_0x9fdf2f(0x16d3)+_0x5150d1['selectedSubjects'][_0x9fdf2f(0x402)]+_0x9fdf2f(0x2452)+_0x9fdf2f(0xe01))[_0x9fdf2f(0x4bd)](_0x9fdf2f(0x1209))[_0x9fdf2f(0x1f27)](_0x3cad24)['ok']('OK')[_0x9fdf2f(0x6c3)](_0x9fdf2f(0x39a));_0x45358a[_0x9fdf2f(0x2615)](_0x5787ad)['then'](function(){const _0x1826bf=_0x9fdf2f;_0x5150d1[_0x1826bf(0x15a6)][_0x1826bf(0x1df5)](function(_0x3b7374){_0x20405b(_0x3b7374);}),_0x5150d1[_0x1826bf(0x15a6)]=[];});}_0x5150d1[_0x336342(0x126)]=[],_0x5150d1['createOrEditDescription']=_0xaa9222,_0x5150d1[_0x336342(0xb29)]=_0x122876,_0x5150d1['deleteSelectedDescriptions']=_0x4c760b;function _0xaa9222(_0x44dc41,_0x1574a4){const _0x2a877a=_0x336342;_0x45358a['show']({'controller':_0x2a877a(0x206d),'controllerAs':'vm','templateUrl':_0x3c776d,'parent':angular[_0x2a877a(0x1853)](_0x4d7c96[_0x2a877a(0x2586)]),'targetEvent':_0x44dc41,'clickOutsideToClose':!![],'locals':{'type':_0x2a877a(0xb17),'item':_0x1574a4,'items':_0x5150d1[_0x2a877a(0x2358)],'configuration':_0x5150d1[_0x2a877a(0x2738)],'account':_0x5150d1['sugarcrmAccount'],'license':null,'setting':null,'crudPermissions':_0x5150d1[_0x2a877a(0x2514)]}});}function _0x454d6e(_0x1320eb){const _0x58df2a=_0x336342;_0x415c23[_0x58df2a(0x260e)][_0x58df2a(0x1fac)]({'id':_0x1320eb['id']})['$promise'][_0x58df2a(0x146b)](function(){const _0x5e9d50=_0x58df2a;_0x3f65c0()[_0x5e9d50(0x2640)](_0x5150d1['descriptions'],{'id':_0x1320eb['id']}),_0x442119[_0x5e9d50(0x1c75)]({'title':_0x5e9d50(0xaf8),'msg':_0x5e9d50(0x8e3)});})['catch'](function(_0x407c5c){const _0x5c7c7a=_0x58df2a;_0x442119['error']({'title':_0x407c5c[_0x5c7c7a(0x107b)]?_0x5c7c7a(0x262a)+_0x407c5c[_0x5c7c7a(0x107b)]+_0x5c7c7a(0x1315)+_0x407c5c[_0x5c7c7a(0x167f)]:_0x5c7c7a(0xf6e),'msg':_0x407c5c[_0x5c7c7a(0x524)]?JSON[_0x5c7c7a(0x10bb)](_0x407c5c[_0x5c7c7a(0x524)]):_0x407c5c[_0x5c7c7a(0xd5f)]()});});}function _0x122876(_0x4650b3,_0x1d4d5a){const _0x49294b=_0x336342,_0x5186ea=_0x45358a[_0x49294b(0x1e8a)]()[_0x49294b(0x1189)](_0x49294b(0x1e9))[_0x49294b(0x1cbe)](_0x49294b(0x2014)+_0x49294b(0xe01))[_0x49294b(0x4bd)](_0x49294b(0x1c5c))[_0x49294b(0x1f27)](_0x4650b3)['ok']('OK')['cancel'](_0x49294b(0x39a));_0x45358a[_0x49294b(0x2615)](_0x5186ea)[_0x49294b(0x146b)](function(){_0x454d6e(_0x1d4d5a);},function(){const _0x3487f7=_0x49294b;console[_0x3487f7(0x1a74)](_0x3487f7(0x39a));});}function _0x4c760b(_0x41fb44){const _0x44bb2e=_0x336342,_0x65f99=_0x45358a['confirm']()['title'](_0x44bb2e(0x1acd))[_0x44bb2e(0x1cbe)](_0x44bb2e(0x16d3)+_0x5150d1[_0x44bb2e(0x126)][_0x44bb2e(0x402)]+_0x44bb2e(0x2452)+_0x44bb2e(0xe01))[_0x44bb2e(0x4bd)](_0x44bb2e(0x1be7))[_0x44bb2e(0x1f27)](_0x41fb44)['ok']('OK')[_0x44bb2e(0x6c3)](_0x44bb2e(0x39a));_0x45358a[_0x44bb2e(0x2615)](_0x65f99)[_0x44bb2e(0x146b)](function(){const _0x14e742=_0x44bb2e;_0x5150d1[_0x14e742(0x126)]['forEach'](function(_0x2ea208){_0x454d6e(_0x2ea208);}),_0x5150d1[_0x14e742(0x126)]=[];});}_0x5150d1[_0x336342(0x2605)]=[],_0x5150d1[_0x336342(0x737)]=_0x1f3b80,_0x5150d1[_0x336342(0x2180)]=_0x1d0a18,_0x5150d1[_0x336342(0x816)]=_0x24c52a;function _0x1f3b80(_0x38b3f8,_0x620631){const _0x638e89=_0x336342;_0x45358a[_0x638e89(0x2615)]({'controller':_0x638e89(0x206d),'controllerAs':'vm','templateUrl':_0x3c776d,'parent':angular[_0x638e89(0x1853)](_0x4d7c96[_0x638e89(0x2586)]),'targetEvent':_0x38b3f8,'clickOutsideToClose':!![],'locals':{'type':'field','item':_0x620631,'items':_0x5150d1[_0x638e89(0x2867)],'configuration':_0x5150d1[_0x638e89(0x2738)],'account':_0x5150d1[_0x638e89(0x16a4)],'license':null,'setting':null,'crudPermissions':_0x5150d1[_0x638e89(0x2514)]}});}function _0x4671a9(_0x6aeba8){const _0x57c8da=_0x336342;_0x415c23[_0x57c8da(0x260e)][_0x57c8da(0x1fac)]({'id':_0x6aeba8['id']})[_0x57c8da(0x2945)]['then'](function(){const _0x5d8abf=_0x57c8da;_0x3f65c0()[_0x5d8abf(0x2640)](_0x5150d1[_0x5d8abf(0x2867)],{'id':_0x6aeba8['id']}),_0x442119['success']({'title':_0x5d8abf(0x24ce),'msg':_0x5d8abf(0x1c07)});})[_0x57c8da(0x129e)](function(_0x4f2b14){const _0x5023fd=_0x57c8da;_0x442119['error']({'title':_0x4f2b14[_0x5023fd(0x107b)]?_0x5023fd(0x262a)+_0x4f2b14['status']+'\x20-\x20'+_0x4f2b14[_0x5023fd(0x167f)]:'SYSTEM:DELETECONFIGURATIONFIELD','msg':_0x4f2b14['data']?JSON['stringify'](_0x4f2b14['data']):_0x4f2b14['toString']()});});}function _0x1d0a18(_0xe7ff55,_0x18dd5e){const _0x2886c2=_0x336342,_0x780d54=_0x45358a[_0x2886c2(0x1e8a)]()['title'](_0x2886c2(0x17f6))['htmlContent'](_0x2886c2(0x2216)+'\x20will\x20be\x20deleted.')[_0x2886c2(0x4bd)]('delete\x20field')['targetEvent'](_0xe7ff55)['ok']('OK')['cancel'](_0x2886c2(0x39a));_0x45358a[_0x2886c2(0x2615)](_0x780d54)['then'](function(){_0x4671a9(_0x18dd5e);},function(){const _0x38f2f1=_0x2886c2;console[_0x38f2f1(0x1a74)](_0x38f2f1(0x39a));});}function _0x24c52a(_0x5bca5c){const _0x1d7b47=_0x336342,_0xfda6d7=_0x45358a[_0x1d7b47(0x1e8a)]()[_0x1d7b47(0x1189)](_0x1d7b47(0xe75))[_0x1d7b47(0x1cbe)](''+_0x5150d1[_0x1d7b47(0x2605)]['length']+_0x1d7b47(0x2452)+_0x1d7b47(0xe01))[_0x1d7b47(0x4bd)](_0x1d7b47(0x176a))[_0x1d7b47(0x1f27)](_0x5bca5c)['ok']('OK')[_0x1d7b47(0x6c3)](_0x1d7b47(0x39a));_0x45358a[_0x1d7b47(0x2615)](_0xfda6d7)[_0x1d7b47(0x146b)](function(){const _0x5025b3=_0x1d7b47;_0x5150d1[_0x5025b3(0x2605)][_0x5025b3(0x1df5)](function(_0x1ecdd2){_0x4671a9(_0x1ecdd2);}),_0x5150d1[_0x5025b3(0x2605)]=[];});}}const _0x182f94=_0x36c86c;;_0x5d5828[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1862),_0x313a4d(0xd08),_0x313a4d(0x10e8),'$q',_0x313a4d(0x214b),_0x313a4d(0x1fe4),_0x313a4d(0x1723),_0x313a4d(0x2738),_0x313a4d(0x247f),_0x313a4d(0xa87),_0x313a4d(0x2690),_0x313a4d(0x15b9),_0x313a4d(0x2514)];function _0x5d5828(_0x2d66ff,_0x731def,_0x830fb3,_0x8996ec,_0x3c5c3e,_0x17c597,_0x1f6b78,_0x173b44,_0x1946c3,_0x41f995,_0x4ed57d,_0x298906,_0x2ea1cb,_0x3e94fe){const _0x590eef=_0x313a4d,_0x4551f8=this;_0x4551f8[_0x590eef(0x2321)]=_0x4ed57d[_0x590eef(0xb12)](),_0x4551f8[_0x590eef(0xcef)]=[],_0x4551f8[_0x590eef(0x15b9)]=_0x2ea1cb,_0x4551f8[_0x590eef(0x2690)]=_0x298906,_0x4551f8[_0x590eef(0x2514)]=_0x3e94fe,_0x4551f8[_0x590eef(0x855)]={},_0x4551f8[_0x590eef(0x2251)]=_0x4551f8[_0x590eef(0x15b9)]&&_0x4551f8[_0x590eef(0x15b9)][_0x590eef(0x976)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x4551f8[_0x590eef(0x1189)]=_0x590eef(0x1d04),_0x4551f8[_0x590eef(0x2738)]=angular['copy'](_0x1946c3),_0x4551f8[_0x590eef(0x1723)]=_0x173b44,_0x4551f8[_0x590eef(0x11e9)]=![];!_0x4551f8[_0x590eef(0x2738)]&&(_0x4551f8[_0x590eef(0x2738)]={'channel':_0x590eef(0xe6),'type':_0x590eef(0x7b0)},_0x4551f8[_0x590eef(0x1189)]=_0x590eef(0x140d),_0x4551f8['newSugarcrmConfiguration']=!![]);_0x4551f8[_0x590eef(0xf83)]=_0xf126b2,_0x4551f8['saveSugarcrmConfiguration']=_0x3a31d4,_0x4551f8[_0x590eef(0x7ca)]=_0x188f9a,_0x4551f8[_0x590eef(0xe73)]=_0x1a02a1,_0x4551f8[_0x590eef(0x13f3)]=_0x30dd43;function _0xf126b2(){const _0x483d43=_0x590eef;_0x4551f8[_0x483d43(0xcef)]=[],_0x41f995[_0x483d43(0x1cf5)][_0x483d43(0xa17)]({'id':_0x731def['params']['id']},_0x4551f8[_0x483d43(0x2738)])[_0x483d43(0x2945)][_0x483d43(0x146b)](function(_0x1b2032){const _0x537d9c=_0x483d43;_0x4551f8[_0x537d9c(0x1723)][_0x537d9c(0xb3d)](_0x1b2032[_0x537d9c(0x2488)]()),_0x1f6b78[_0x537d9c(0x1c75)]({'title':_0x537d9c(0xeb0),'msg':_0x4551f8[_0x537d9c(0x2738)][_0x537d9c(0x19eb)]?_0x4551f8[_0x537d9c(0x2738)][_0x537d9c(0x19eb)]+_0x537d9c(0x1386):''}),_0x30dd43(_0x1b2032);})['catch'](function(_0x35a893){const _0x381f7b=_0x483d43;if(_0x35a893[_0x381f7b(0x524)]&&_0x35a893[_0x381f7b(0x524)][_0x381f7b(0xcef)]&&_0x35a893['data']['errors'][_0x381f7b(0x402)]){_0x4551f8[_0x381f7b(0xcef)]=_0x35a893['data'][_0x381f7b(0xcef)]||[{'message':_0x35a893[_0x381f7b(0xd5f)](),'type':_0x381f7b(0x171)}];for(let _0xe73be1=0x0;_0xe73be1<_0x35a893['data'][_0x381f7b(0xcef)][_0x381f7b(0x402)];_0xe73be1+=0x1){_0x1f6b78[_0x381f7b(0x1980)]({'title':_0x35a893[_0x381f7b(0x524)][_0x381f7b(0xcef)][_0xe73be1][_0x381f7b(0x1142)],'msg':_0x35a893['data'][_0x381f7b(0xcef)][_0xe73be1][_0x381f7b(0x7fd)]});}}else _0x1f6b78[_0x381f7b(0x1980)]({'title':_0x35a893[_0x381f7b(0x107b)]?_0x381f7b(0x262a)+_0x35a893[_0x381f7b(0x107b)]+'\x20-\x20'+_0x35a893[_0x381f7b(0x167f)]:_0x381f7b(0x171),'msg':_0x35a893['data']?JSON[_0x381f7b(0x10bb)](_0x35a893[_0x381f7b(0x524)][_0x381f7b(0x7fd)]):_0x35a893[_0x381f7b(0xd5f)]()});});}function _0x3a31d4(){const _0x308134=_0x590eef;_0x4551f8[_0x308134(0xcef)]=[],_0x41f995['intSugarcrmConfiguration'][_0x308134(0x18e1)]({'id':_0x4551f8[_0x308134(0x2738)]['id']},_0x4551f8[_0x308134(0x2738)])['$promise']['then'](function(_0x19ffb7){const _0x2c124f=_0x308134,_0x11c078=_0x3f65c0()[_0x2c124f(0xc84)](_0x4551f8[_0x2c124f(0x1723)],{'id':_0x19ffb7['id']});_0x11c078&&_0x3f65c0()[_0x2c124f(0x168d)](_0x11c078,_0x3f65c0()[_0x2c124f(0x40e)](_0x19ffb7['toJSON'](),_0x3f65c0()['keys'](_0x11c078))),_0x1f6b78[_0x2c124f(0x1c75)]({'title':_0x2c124f(0x1e4c),'msg':_0x4551f8[_0x2c124f(0x2738)][_0x2c124f(0x19eb)]?_0x4551f8[_0x2c124f(0x2738)]['name']+'\x20has\x20been\x20saved!':''}),_0x30dd43(_0x19ffb7);})[_0x308134(0x129e)](function(_0x537788){const _0xcfbe42=_0x308134;if(_0x537788['data']&&_0x537788[_0xcfbe42(0x524)][_0xcfbe42(0xcef)]&&_0x537788[_0xcfbe42(0x524)][_0xcfbe42(0xcef)]['length']){_0x4551f8['errors']=_0x537788[_0xcfbe42(0x524)]['errors']||[{'message':_0x537788[_0xcfbe42(0xd5f)](),'type':_0xcfbe42(0x1644)}];for(let _0x195f12=0x0;_0x195f12<_0x537788['data'][_0xcfbe42(0xcef)][_0xcfbe42(0x402)];_0x195f12++){_0x1f6b78['error']({'title':_0x537788['data'][_0xcfbe42(0xcef)][_0x195f12][_0xcfbe42(0x1142)],'msg':_0x537788[_0xcfbe42(0x524)][_0xcfbe42(0xcef)][_0x195f12][_0xcfbe42(0x7fd)]});}}else _0x1f6b78[_0xcfbe42(0x1980)]({'title':_0x537788[_0xcfbe42(0x107b)]?'API:'+_0x537788[_0xcfbe42(0x107b)]+_0xcfbe42(0x1315)+_0x537788[_0xcfbe42(0x167f)]:_0xcfbe42(0x1644),'msg':_0x537788[_0xcfbe42(0x524)]?JSON[_0xcfbe42(0x10bb)](_0x537788[_0xcfbe42(0x524)]['message']):_0x537788[_0xcfbe42(0xd5f)]()});});}function _0x188f9a(_0x4c9834){const _0x374def=_0x590eef;_0x4551f8['errors']=[];const _0x3d04b4=_0x8996ec[_0x374def(0x1e8a)]()[_0x374def(0x1189)](_0x374def(0x1d64))['content'](_0x374def(0x1dab))['ariaLabel']('Delete\x20SugarcrmConfiguration')['ok'](_0x374def(0x25de))[_0x374def(0x6c3)](_0x374def(0xcf0))[_0x374def(0x1f27)](_0x4c9834);_0x8996ec[_0x374def(0x2615)](_0x3d04b4)[_0x374def(0x146b)](function(){const _0x1264ff=_0x374def;_0x41f995[_0x1264ff(0x547)]['delete']({'id':_0x4551f8['sugarcrmConfiguration']['id']})[_0x1264ff(0x2945)][_0x1264ff(0x146b)](function(){const _0x5bfb5e=_0x1264ff;_0x3f65c0()[_0x5bfb5e(0x2640)](_0x4551f8[_0x5bfb5e(0x1723)],{'id':_0x4551f8[_0x5bfb5e(0x2738)]['id']}),_0x1f6b78[_0x5bfb5e(0x1c75)]({'title':_0x5bfb5e(0x9ea),'msg':(_0x4551f8[_0x5bfb5e(0x2738)][_0x5bfb5e(0x19eb)]||_0x5bfb5e(0x2738))+_0x5bfb5e(0x23e3)}),_0x30dd43(_0x4551f8[_0x5bfb5e(0x2738)]);})[_0x1264ff(0x129e)](function(_0x500510){const _0x3e1551=_0x1264ff;if(_0x500510['data']&&_0x500510[_0x3e1551(0x524)][_0x3e1551(0xcef)]&&_0x500510[_0x3e1551(0x524)][_0x3e1551(0xcef)]['length']){_0x4551f8[_0x3e1551(0xcef)]=_0x500510[_0x3e1551(0x524)][_0x3e1551(0xcef)]||[{'message':_0x500510['toString'](),'type':'api.intSugarcrmConfiguration.delete'}];for(let _0x1c4989=0x0;_0x1c4989<_0x500510[_0x3e1551(0x524)][_0x3e1551(0xcef)][_0x3e1551(0x402)];_0x1c4989++){_0x1f6b78[_0x3e1551(0x1980)]({'title':_0x500510[_0x3e1551(0x524)][_0x3e1551(0xcef)][_0x1c4989][_0x3e1551(0x1142)],'msg':_0x500510[_0x3e1551(0x524)][_0x3e1551(0xcef)][_0x1c4989][_0x3e1551(0x7fd)]});}}else _0x1f6b78[_0x3e1551(0x1980)]({'title':_0x500510[_0x3e1551(0x107b)]?_0x3e1551(0x262a)+_0x500510['status']+'\x20-\x20'+_0x500510['statusText']:_0x3e1551(0x27b6),'msg':_0x500510[_0x3e1551(0x524)]?JSON[_0x3e1551(0x10bb)](_0x500510['data'][_0x3e1551(0x7fd)]):_0x500510[_0x3e1551(0x7fd)]||_0x500510[_0x3e1551(0xd5f)]()});});},function(){});}function _0x1a02a1(_0x2b3b9c){return _0x2b3b9c===null?undefined:new Date(_0x2b3b9c);}function _0x30dd43(_0x13cd3c){const _0x16e71e=_0x590eef;_0x8996ec[_0x16e71e(0x2458)](_0x13cd3c);}}const _0x2d2887=_0x5d5828;;_0x4e8681[_0x313a4d(0x11c2)]=['$scope',_0x313a4d(0x1862),_0x313a4d(0xd08),_0x313a4d(0x10e8),_0x313a4d(0x1fe4),'configuration',_0x313a4d(0x1fd6),_0x313a4d(0x2711),_0x313a4d(0x1f8e),_0x313a4d(0x1142),_0x313a4d(0x247f),_0x313a4d(0xa87),'crudPermissions'];function _0x4e8681(_0x1414aa,_0x42b89b,_0x58bf85,_0x2a8769,_0x1c749c,_0x502431,_0x36725a,_0x1de67f,_0x45dcfe,_0xe60f14,_0x228421,_0x1b6533,_0x4ce966){const _0x54d5ae=_0x313a4d,_0x4c8e0b=this;_0x4c8e0b[_0x54d5ae(0x2321)]=_0x1b6533[_0x54d5ae(0xb12)](),_0x4c8e0b['errors']=[],_0x4c8e0b[_0x54d5ae(0x1189)]='INTEGRATIONS.EDIT_'+_0x3f65c0()[_0x54d5ae(0xd39)](_0xe60f14),_0x4c8e0b[_0x54d5ae(0x2711)]=angular[_0x54d5ae(0x235a)](_0x1de67f),_0x4c8e0b[_0x54d5ae(0x1fd6)]=_0x36725a,_0x4c8e0b[_0x54d5ae(0x1142)]=_0xe60f14,_0x4c8e0b[_0x54d5ae(0x2514)]=_0x4ce966,_0x4c8e0b['newItem']=![];!_0x4c8e0b[_0x54d5ae(0x2711)]&&(_0x4c8e0b[_0x54d5ae(0x2711)]={'type':_0x54d5ae(0x1f23)},_0x4c8e0b['item'][_0x3f65c0()[_0x54d5ae(0x83f)](_0xe60f14)+'Id']=_0x502431['id'],_0x4c8e0b[_0x54d5ae(0x1189)]=_0x54d5ae(0xe78)+_0x3f65c0()[_0x54d5ae(0xd39)](_0xe60f14),_0x4c8e0b['newItem']=!![]);_0x4c8e0b[_0x54d5ae(0x1e65)]=_0x19cd84,_0x4c8e0b['saveItem']=_0x4672b0,_0x4c8e0b[_0x54d5ae(0xbaf)]=_0x153dc7,_0x4c8e0b[_0x54d5ae(0x21b1)]=_0x24d68c,_0x4c8e0b[_0x54d5ae(0x13f3)]=_0x207d00,_0x228421[_0x54d5ae(0x212)][_0x54d5ae(0x16b4)]({'nolimit':!![]})['$promise']['then'](function(_0x276291){const _0x4253a1=_0x54d5ae;return _0x4c8e0b[_0x4253a1(0x85b)]=_0x276291[_0x4253a1(0x19c7)]?_0x276291[_0x4253a1(0x19c7)]:[],_0x228421[_0x4253a1(0x1cb3)][_0x4253a1(0x1ea2)]()[_0x4253a1(0x2945)];})[_0x54d5ae(0x146b)](function(_0x37071c){const _0x2b836e=_0x54d5ae;return _0x4c8e0b[_0x2b836e(0x1c8a)]=_0x3f65c0()[_0x2b836e(0xa62)](_0x3f65c0()[_0x2b836e(0x627)](_0x37071c),[_0x2b836e(0x2945),_0x2b836e(0x26f2),_0x2b836e(0xc68),_0x2b836e(0x144f),'sourceid']),_0x4c8e0b[_0x2b836e(0x1c8a)]['push'](_0x2b836e(0x643)),_0x228421[_0x2b836e(0x160)][_0x2b836e(0x1ea2)]()[_0x2b836e(0x2945)];})['then'](function(_0x2e25ec){const _0x51496f=_0x54d5ae;_0x4c8e0b[_0x51496f(0x164b)]=_0x3f65c0()['difference'](_0x3f65c0()[_0x51496f(0x627)](_0x2e25ec),['$promise',_0x51496f(0x26f2),_0x51496f(0xc68),_0x51496f(0x144f),_0x51496f(0xc3b)]),_0x4c8e0b[_0x51496f(0x164b)][_0x51496f(0x1f47)](_0x51496f(0x643));})[_0x54d5ae(0x129e)](function(_0x1f625b){const _0x23daf7=_0x54d5ae;_0x1c749c[_0x23daf7(0x1980)]({'title':_0x1f625b[_0x23daf7(0x107b)]?_0x23daf7(0x262a)+_0x1f625b[_0x23daf7(0x107b)]+'\x20-\x20'+_0x1f625b[_0x23daf7(0x167f)]:_0x23daf7(0x502),'msg':_0x1f625b[_0x23daf7(0x524)]?JSON[_0x23daf7(0x10bb)](_0x1f625b[_0x23daf7(0x524)]):_0x1f625b['toString']()});}),_0x228421[_0x54d5ae(0x1cf5)][_0x54d5ae(0x12ff)]({'id':_0x45dcfe['id'],'ticketType':_0x502431[_0x54d5ae(0x21be)]?_0x502431['ticketType']:undefined})[_0x54d5ae(0x2945)][_0x54d5ae(0x146b)](function(_0x8571ff){const _0x5aaf09=_0x54d5ae;_0x4c8e0b['accountConnected']=!![],_0x4c8e0b[_0x5aaf09(0x2867)]=_0x8571ff[_0x5aaf09(0x19c7)]?_0x8571ff[_0x5aaf09(0x19c7)]:[],_0x4c8e0b[_0x5aaf09(0x2711)][_0x5aaf09(0x2912)]&&(_0x4c8e0b[_0x5aaf09(0x165e)]=_0x3f65c0()[_0x5aaf09(0xc84)](_0x4c8e0b[_0x5aaf09(0x2867)],{'id':_0x4c8e0b[_0x5aaf09(0x2711)][_0x5aaf09(0x2912)]}));})['catch'](function(_0x482c2f){const _0x6b4424=_0x54d5ae;_0x4c8e0b[_0x6b4424(0x822)]=![],console[_0x6b4424(0x1980)](_0x482c2f);});function _0x19cd84(){const _0xa2ede1=_0x54d5ae;_0x4c8e0b[_0xa2ede1(0xcef)]=[],_0x4c8e0b[_0xa2ede1(0x165e)]&&(_0x4c8e0b[_0xa2ede1(0x2711)][_0xa2ede1(0x2912)]=_0x4c8e0b['customField']['id'],_0x4c8e0b[_0xa2ede1(0x2711)]['nameField']=_0x4c8e0b[_0xa2ede1(0x165e)]['name'],_0x4c8e0b[_0xa2ede1(0x2711)][_0xa2ede1(0x165e)]=_0x4c8e0b[_0xa2ede1(0x165e)][_0xa2ede1(0x1802)]),_0x228421[_0xa2ede1(0x260e)][_0xa2ede1(0x1e3)](_0x4c8e0b['item'])['$promise'][_0xa2ede1(0x146b)](function(_0x190702){const _0x264382=_0xa2ede1;_0x4c8e0b[_0x264382(0x1fd6)][_0x264382(0xb3d)](_0x190702),_0x1c749c[_0x264382(0x1c75)]({'title':_0x3f65c0()[_0x264382(0x83f)](_0xe60f14)+_0x264382(0x1637),'msg':_0x3f65c0()[_0x264382(0x83f)](_0xe60f14)+'\x20has\x20been\x20created!'}),_0x207d00();})[_0xa2ede1(0x129e)](function(_0x2a3b8c){const _0x279ffd=_0xa2ede1;console[_0x279ffd(0x1980)](_0x2a3b8c),_0x4c8e0b[_0x279ffd(0xcef)]=_0x2a3b8c['data'][_0x279ffd(0xcef)]||[{'message':_0x2a3b8c['toString'](),'type':_0x279ffd(0x1ec4)}];});}function _0x4672b0(){const _0x50980b=_0x54d5ae;_0x4c8e0b[_0x50980b(0xcef)]=[],_0x4c8e0b['customField']&&(_0x4c8e0b[_0x50980b(0x2711)][_0x50980b(0x2912)]=_0x4c8e0b['customField']['id'],_0x4c8e0b[_0x50980b(0x2711)]['nameField']=_0x4c8e0b[_0x50980b(0x165e)][_0x50980b(0x19eb)],_0x4c8e0b[_0x50980b(0x2711)][_0x50980b(0x165e)]=_0x4c8e0b[_0x50980b(0x165e)][_0x50980b(0x1802)]),_0x228421[_0x50980b(0x260e)][_0x50980b(0x18e1)]({'id':_0x4c8e0b[_0x50980b(0x2711)]['id']},_0x4c8e0b['item'])[_0x50980b(0x2945)]['then'](function(_0x276e62){const _0x22f759=_0x50980b,_0x597433=_0x3f65c0()[_0x22f759(0xc84)](_0x4c8e0b[_0x22f759(0x1fd6)],{'id':_0x276e62['id']});_0x597433&&_0x3f65c0()[_0x22f759(0x168d)](_0x597433,_0x276e62),_0x1c749c[_0x22f759(0x1c75)]({'title':_0x3f65c0()[_0x22f759(0x83f)](_0xe60f14)+_0x22f759(0xffe),'msg':_0x3f65c0()[_0x22f759(0x83f)](_0xe60f14)+_0x22f759(0x24db)}),_0x207d00();})['catch'](function(_0x9415df){const _0x512058=_0x50980b;console[_0x512058(0x1980)](_0x9415df),_0x4c8e0b[_0x512058(0xcef)]=_0x9415df[_0x512058(0x524)][_0x512058(0xcef)]||[{'message':_0x9415df[_0x512058(0xd5f)](),'type':'api.intItem.update'}];});}function _0x153dc7(_0x489c5f){const _0x54c66d=_0x54d5ae;_0x4c8e0b[_0x54c66d(0xcef)]=[];const _0x21c896=_0x2a8769[_0x54c66d(0x1e8a)]()[_0x54c66d(0x1189)](_0x54c66d(0x1d64))[_0x54c66d(0x80f)](_0x54c66d(0xe57)+_0xe60f14+_0x54c66d(0xe01))[_0x54c66d(0x4bd)]('Delete\x20'+_0x3f65c0()[_0x54c66d(0x83f)](_0xe60f14))['ok'](_0x54c66d(0x25de))[_0x54c66d(0x6c3)](_0x54c66d(0xcf0))[_0x54c66d(0x1f27)](_0x489c5f);_0x2a8769[_0x54c66d(0x2615)](_0x21c896)[_0x54c66d(0x146b)](function(){const _0x3f75ab=_0x54c66d;_0x228421[_0x3f75ab(0x260e)]['delete']({'id':_0x4c8e0b[_0x3f75ab(0x2711)]['id']})[_0x3f75ab(0x2945)][_0x3f75ab(0x146b)](function(){const _0x2a009c=_0x3f75ab;_0x3f65c0()[_0x2a009c(0x2640)](_0x4c8e0b['items'],{'id':_0x4c8e0b[_0x2a009c(0x2711)]['id']}),_0x1c749c['success']({'title':_0x3f65c0()[_0x2a009c(0x83f)](_0xe60f14)+_0x2a009c(0x1e6c),'msg':_0x3f65c0()['capitalize'](_0xe60f14)+_0x2a009c(0x23e3)}),_0x207d00();})[_0x3f75ab(0x129e)](function(_0x4ffdc4){const _0x520787=_0x3f75ab;console[_0x520787(0x1980)](_0x4ffdc4),_0x4c8e0b[_0x520787(0xcef)]=_0x4ffdc4[_0x520787(0x524)][_0x520787(0xcef)]||[{'message':_0x4ffdc4['toString'](),'type':_0x520787(0x1cb0)}];});},function(){});}function _0x24d68c(){const _0x5f215f=_0x54d5ae;return _0x4c8e0b[_0x5f215f(0x2711)]['variableName']!==undefined?_0x4c8e0b[_0x5f215f(0x2711)][_0x5f215f(0x97f)]:_0x5f215f(0x1040);}function _0x207d00(){const _0x592643=_0x54d5ae;_0x2a8769[_0x592643(0x2458)]();}}const _0x4ee3c2=_0x4e8681;;_0x29ceac[_0x313a4d(0x11c2)]=['$state',_0x313a4d(0xd08),_0x313a4d(0x10e8),_0x313a4d(0x4d8),_0x313a4d(0x214b),_0x313a4d(0x2690),_0x313a4d(0x15b9),'api',_0x313a4d(0x1fe4),_0x313a4d(0xa87),_0x313a4d(0x16a4),_0x313a4d(0x1366)];function _0x29ceac(_0x5b8de5,_0xdf112c,_0xbefdb0,_0x108179,_0x297b5e,_0x45f969,_0x21c914,_0x2c9308,_0x4c0c44,_0x435789,_0x44d05f,_0x35b3a3){const _0x9aea37=_0x313a4d,_0x59bc6d=this;_0x59bc6d[_0x9aea37(0x2321)]=_0x435789[_0x9aea37(0xb12)](),_0x59bc6d[_0x9aea37(0x2690)]=_0x45f969,_0x59bc6d[_0x9aea37(0x15b9)]=_0x21c914,_0x59bc6d[_0x9aea37(0x2251)]=_0x59bc6d[_0x9aea37(0x15b9)][_0x9aea37(0x976)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x59bc6d['location']=_0xdf112c[_0x9aea37(0x2414)]()+_0x9aea37(0xb0e)+_0xdf112c['host'](),_0x59bc6d[_0x9aea37(0x16a4)]=_0x44d05f||_0x5b8de5[_0x9aea37(0x16a)][_0x9aea37(0x16a4)]||{},_0x59bc6d[_0x9aea37(0x1366)]=_0x35b3a3&&_0x35b3a3[_0x9aea37(0x51c)]==0x1?_0x35b3a3[_0x9aea37(0x19c7)][0x0]:null,_0x59bc6d[_0x9aea37(0x2514)]=_0x435789[_0x9aea37(0xe60)](_0x59bc6d['userProfileSection']?_0x59bc6d[_0x9aea37(0x1366)][_0x9aea37(0x2514)]:null),_0x59bc6d[_0x9aea37(0x855)]={},_0x59bc6d[_0x9aea37(0x1b09)]=_0x5b8de5[_0x9aea37(0x16a)]['tab']||0x0,_0x59bc6d['alert']=_0x4c0c44[_0x9aea37(0x271e)],_0x59bc6d[_0x9aea37(0x22bf)]=_0x487667,_0x59bc6d[_0x9aea37(0x1b4d)]=_0x47ff26;function _0x487667(){const _0x276ca4=_0x9aea37;_0x5b8de5['go'](_0x276ca4(0x289c),{},{'reload':_0x276ca4(0x289c)});}function _0x47ff26(){const _0x377920=_0x9aea37;_0x2c9308[_0x377920(0x1cf5)][_0x377920(0x18e1)]({'id':_0x59bc6d[_0x377920(0x16a4)]['id']},_0x59bc6d['sugarcrmAccount'])[_0x377920(0x2945)][_0x377920(0x146b)](function(){const _0x2c7dbc=_0x377920;_0x4c0c44[_0x2c7dbc(0x1c75)]({'title':_0x2c7dbc(0x18a8),'msg':_0x59bc6d[_0x2c7dbc(0x16a4)][_0x2c7dbc(0x19eb)]?_0x59bc6d[_0x2c7dbc(0x16a4)][_0x2c7dbc(0x19eb)]+_0x2c7dbc(0x6b0):''});})['catch'](function(_0x1971dd){const _0x4cdcfc=_0x377920;_0x4c0c44['error']({'title':_0x1971dd[_0x4cdcfc(0x107b)]?_0x4cdcfc(0x262a)+_0x1971dd[_0x4cdcfc(0x107b)]+_0x4cdcfc(0x1315)+_0x1971dd[_0x4cdcfc(0x167f)]:_0x4cdcfc(0x10cc),'msg':_0x1971dd[_0x4cdcfc(0x524)]?JSON[_0x4cdcfc(0x10bb)](_0x1971dd['data']):_0x1971dd[_0x4cdcfc(0xd5f)]()});});}}const _0x3835ca=_0x29ceac;;const _0x25586c=_0x4acfac['p']+'src/js/modules/main/apps/integrations/views/sugarcrmAccounts/create/dialog.html/dialog.html';;_0x4e3e2f[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1aa9),_0x313a4d(0x1862),_0x313a4d(0x15fe),_0x313a4d(0x10e8),_0x313a4d(0x4d8),_0x313a4d(0x1abe),_0x313a4d(0x214b),'sugarcrmAccounts',_0x313a4d(0x26b6),_0x313a4d(0x1366),_0x313a4d(0x247f),'msUtils',_0x313a4d(0x1fe4),_0x313a4d(0xa87),_0x313a4d(0x2690),'setting'];function _0x4e3e2f(_0x4bc12e,_0x50d04e,_0x11d2a1,_0xaeaa57,_0xfc314a,_0x5ee93d,_0x33926a,_0x538059,_0x3d6fd7,_0x497c69,_0x232cd9,_0x5d7929,_0x1d4c17,_0x42b761,_0x6117d4,_0x47d235,_0x154a28){const _0x2c6866=_0x313a4d,_0x4bdbc0=this;_0x4bdbc0[_0x2c6866(0x2690)]=_0x47d235,_0x4bdbc0['setting']=_0x154a28,_0x4bdbc0[_0x2c6866(0x2321)]=_0x6117d4['getCurrentUser'](),_0x4bdbc0[_0x2c6866(0x2dd)]=_0x3d6fd7||{'count':0x0,'rows':[]},_0x4bdbc0['userProfile']=_0x497c69,_0x4bdbc0[_0x2c6866(0x1366)]=_0x232cd9&&_0x232cd9['count']==0x1?_0x232cd9[_0x2c6866(0x19c7)][0x0]:null,_0x4bdbc0['crudPermissions']=_0x6117d4[_0x2c6866(0xe60)](_0x4bdbc0[_0x2c6866(0x1366)]?_0x4bdbc0['userProfileSection']['crudPermissions']:null),_0x4bdbc0[_0x2c6866(0x768)]=_0x2c6866(0x2dd),_0x4bdbc0[_0x2c6866(0x216a)]='',_0x4bdbc0[_0x2c6866(0x214f)]=null,_0x4bdbc0['selectedSugarcrmAccounts']=[],_0x4bdbc0['query']={'fields':'createdAt,updatedAt,id,name,username,remoteUri,password,serverUrl,description','limit':0xa,'page':0x1},_0x4bdbc0[_0x2c6866(0x23f9)]=_0x1dfac7,_0x4bdbc0['testtestintegrationaccount']=_0x2d1e54,_0x4bdbc0[_0x2c6866(0xf0a)]=_0x470b0c,_0x4bdbc0[_0x2c6866(0x1c75)]=_0x271a2a,_0x4bdbc0[_0x2c6866(0x1017)]=_0x349f8a,_0x4bdbc0[_0x2c6866(0x178e)]=_0x48d4bf,_0x4bdbc0[_0x2c6866(0x75c)]=_0x5eb3c7,_0x4bdbc0[_0x2c6866(0x5ff)]=_0x208e13,_0x4bdbc0[_0x2c6866(0xfa1)]=_0x59ef55,_0x4bdbc0['deselectSugarcrmAccounts']=_0x12f9db,_0x4bdbc0[_0x2c6866(0xf55)]=_0x3e22f5;function _0x1dfac7(_0x55195e){_0x11d2a1['go']('app.integrations.sugarcrmAccounts.edit',{'id':_0x55195e['id'],'sugarcrmAccount':_0x55195e,'crudPermissions':_0x4bdbc0['crudPermissions']});}function _0x2d1e54(_0x1278b2){const _0x14c92e=_0x2c6866;return _0x5d7929[_0x14c92e(0x1cf5)][_0x14c92e(0x12ff)]({'id':_0x1278b2['id'],'test':!![]})[_0x14c92e(0x2945)][_0x14c92e(0x146b)](function(){const _0x900af=_0x14c92e;_0x42b761[_0x900af(0x1c75)]({'title':_0x900af(0x17d8),'msg':_0x900af(0x1893)});})[_0x14c92e(0x129e)](function(_0x351d8c){const _0x57bc12=_0x14c92e;_0x42b761['error']({'title':_0x57bc12(0x17d8),'msg':_0x351d8c['data']?_0x351d8c['data'][_0x57bc12(0x7fd)]?_0x351d8c[_0x57bc12(0x524)][_0x57bc12(0x7fd)]:JSON[_0x57bc12(0x10bb)](_0x351d8c['data']):_0x351d8c[_0x57bc12(0xd5f)]()});});}function _0x470b0c(_0x1108a0,_0x20cbd1){const _0x51fca9=_0x2c6866,_0xc67fb1=_0xfc314a['confirm']()['title'](_0x51fca9(0xdb2)+_0x3f65c0()[_0x51fca9(0x20d1)](_0x51fca9(0x16a4))+'?')['htmlContent'](_0x51fca9(0x16d3)+(_0x1108a0[_0x51fca9(0x19eb)]||_0x51fca9(0x16a4))+_0x51fca9(0x252f)+_0x51fca9(0xe01))[_0x51fca9(0x4bd)](_0x51fca9(0x1544))[_0x51fca9(0x1f27)](_0x20cbd1)['ok']('OK')[_0x51fca9(0x6c3)](_0x51fca9(0x39a));_0xfc314a[_0x51fca9(0x2615)](_0xc67fb1)[_0x51fca9(0x146b)](function(){_0x5eb3c7(_0x1108a0);},function(){const _0x59a315=_0x51fca9;console[_0x59a315(0x1a74)](_0x59a315(0x39a));});}let _0x2e1837=!![],_0x282214=0x1;_0x4bc12e['$watch'](_0x2c6866(0x2669),function(_0x180676,_0x399e96){const _0x1e492b=_0x2c6866;_0x2e1837?_0x33926a(function(){_0x2e1837=![];}):(!_0x399e96&&(_0x282214=_0x4bdbc0[_0x1e492b(0x1a56)][_0x1e492b(0x844)]),_0x180676!==_0x399e96&&(_0x4bdbc0[_0x1e492b(0x1a56)]['page']=0x1),!_0x180676&&(_0x4bdbc0[_0x1e492b(0x1a56)][_0x1e492b(0x844)]=_0x282214),_0x4bdbc0[_0x1e492b(0x1017)]());});function _0x271a2a(_0x274ade){_0x4bdbc0['sugarcrmAccounts']=_0x274ade||{'count':0x0,'rows':[]};}function _0x349f8a(){const _0x48dd28=_0x2c6866;_0x4bdbc0[_0x48dd28(0x1a56)]['offset']=(_0x4bdbc0[_0x48dd28(0x1a56)]['page']-0x1)*_0x4bdbc0['query']['limit'],_0x6117d4[_0x48dd28(0x23e0)](_0x48dd28(0x174b))?_0x4bdbc0[_0x48dd28(0xb9c)]=_0x5d7929[_0x48dd28(0x1cf5)][_0x48dd28(0x16b4)](_0x4bdbc0[_0x48dd28(0x1a56)],_0x271a2a)[_0x48dd28(0x2945)]:(_0x4bdbc0['query']['id']=_0x4bdbc0[_0x48dd28(0x26b6)]['id'],_0x4bdbc0['query']['section']=_0x48dd28(0x12f0),_0x4bdbc0[_0x48dd28(0xb9c)]=_0x5d7929[_0x48dd28(0x26b6)][_0x48dd28(0x158f)](_0x4bdbc0['query'],_0x271a2a)[_0x48dd28(0x2945)]);}function _0x48d4bf(_0x5f4785,_0x4763f9){const _0x40ac47=_0x2c6866;_0xfc314a[_0x40ac47(0x2615)]({'controller':_0x40ac47(0xa00),'controllerAs':'vm','templateUrl':_0x25586c,'parent':angular[_0x40ac47(0x1853)](_0x5ee93d[_0x40ac47(0x2586)]),'targetEvent':_0x5f4785,'clickOutsideToClose':!![],'locals':{'sugarcrmAccount':_0x4763f9,'sugarcrmAccounts':_0x4bdbc0[_0x40ac47(0x2dd)][_0x40ac47(0x19c7)],'license':_0x4bdbc0['license'],'setting':_0x4bdbc0[_0x40ac47(0x15b9)],'crudPermissions':_0x4bdbc0['crudPermissions']}});}function _0x5eb3c7(_0x13ed06){const _0x3c8c62=_0x2c6866;_0x5d7929[_0x3c8c62(0x1cf5)]['delete']({'id':_0x13ed06['id']})[_0x3c8c62(0x2945)][_0x3c8c62(0x146b)](function(){const _0x1565e3=_0x3c8c62;_0x3f65c0()[_0x1565e3(0x2640)](_0x4bdbc0[_0x1565e3(0x2dd)]['rows'],{'id':_0x13ed06['id']}),_0x4bdbc0[_0x1565e3(0x2dd)]['count']-=0x1,!_0x4bdbc0[_0x1565e3(0x2dd)][_0x1565e3(0x19c7)]['length']&&_0x4bdbc0[_0x1565e3(0x1017)](),_0x42b761[_0x1565e3(0x1c75)]({'title':_0x3f65c0()[_0x1565e3(0x20d1)](_0x1565e3(0x20b9))+_0x1565e3(0x201c),'msg':_0x13ed06['name']?_0x13ed06['name']+_0x1565e3(0x23e3):''});})[_0x3c8c62(0x129e)](function(_0x29cbeb){const _0x3a8674=_0x3c8c62;if(_0x29cbeb[_0x3a8674(0x524)]&&_0x29cbeb[_0x3a8674(0x524)][_0x3a8674(0xcef)]&&_0x29cbeb[_0x3a8674(0x524)][_0x3a8674(0xcef)][_0x3a8674(0x402)]){_0x4bdbc0[_0x3a8674(0xcef)]=_0x29cbeb[_0x3a8674(0x524)][_0x3a8674(0xcef)]||[{'message':_0x29cbeb[_0x3a8674(0xd5f)](),'type':_0x3a8674(0x1b16)}];for(let _0x255a14=0x0;_0x255a14<_0x29cbeb[_0x3a8674(0x524)][_0x3a8674(0xcef)][_0x3a8674(0x402)];_0x255a14++){_0x42b761['error']({'title':_0x29cbeb[_0x3a8674(0x524)]['errors'][_0x255a14]['type'],'msg':_0x29cbeb[_0x3a8674(0x524)]['errors'][_0x255a14]['message']});}}else _0x42b761[_0x3a8674(0x1980)]({'title':_0x29cbeb['status']?_0x3a8674(0x262a)+_0x29cbeb[_0x3a8674(0x107b)]+_0x3a8674(0x1315)+_0x29cbeb[_0x3a8674(0x167f)]:_0x3a8674(0x1b16),'msg':_0x29cbeb['data']?JSON[_0x3a8674(0x10bb)](_0x29cbeb[_0x3a8674(0x524)][_0x3a8674(0x7fd)]):_0x29cbeb[_0x3a8674(0x7fd)]||_0x29cbeb[_0x3a8674(0xd5f)]()});});}function _0x208e13(){const _0x1c8eb4=_0x2c6866,_0x5e022d=angular[_0x1c8eb4(0x235a)](_0x4bdbc0[_0x1c8eb4(0x13e5)]);return _0x4bdbc0[_0x1c8eb4(0x13e5)]=[],_0x5e022d;}function _0x59ef55(_0x5d8b0e){const _0x50dc61=_0x2c6866,_0x5dffc6=_0xfc314a[_0x50dc61(0x1e8a)]()['title'](_0x50dc61(0x457))[_0x50dc61(0x1cbe)](_0x50dc61(0x16d3)+_0x4bdbc0[_0x50dc61(0x13e5)][_0x50dc61(0x402)]+_0x50dc61(0x2452)+_0x50dc61(0xe01))[_0x50dc61(0x4bd)](_0x50dc61(0x1561))[_0x50dc61(0x1f27)](_0x5d8b0e)['ok']('OK')[_0x50dc61(0x6c3)](_0x50dc61(0x39a));_0xfc314a[_0x50dc61(0x2615)](_0x5dffc6)['then'](function(){const _0x388b42=_0x50dc61;_0x4bdbc0[_0x388b42(0x13e5)][_0x388b42(0x1df5)](function(_0x7037a3){_0x5eb3c7(_0x7037a3);}),_0x4bdbc0[_0x388b42(0x13e5)]=[];});}function _0x12f9db(){const _0x2fc23c=_0x2c6866;_0x4bdbc0[_0x2fc23c(0x13e5)]=[];}function _0x3e22f5(){const _0x23ce43=_0x2c6866;_0x4bdbc0[_0x23ce43(0x13e5)]=_0x4bdbc0[_0x23ce43(0x2dd)]['rows'];}}const _0x34c86f=_0x4e3e2f;;_0xea45c6['$inject']=[_0x313a4d(0x910),_0x313a4d(0x1862),_0x313a4d(0xd08),'$mdDialog','$q',_0x313a4d(0x214b),_0x313a4d(0x1fe4),_0x313a4d(0x148d),_0x313a4d(0xfc2),_0x313a4d(0x247f),_0x313a4d(0xa87),_0x313a4d(0x2690),_0x313a4d(0x15b9),_0x313a4d(0x2514)];function _0xea45c6(_0x4c7a5e,_0xbb48ca,_0x53a0d4,_0x54ae0c,_0x34b6f0,_0x450039,_0x154f35,_0x2b67ca,_0x588397,_0x2213a7,_0x1a4345,_0x23d838,_0x54f7f9,_0x1556d9){const _0x135771=_0x313a4d,_0x1e2332=this;_0x1e2332['currentUser']=_0x1a4345['getCurrentUser'](),_0x1e2332[_0x135771(0xcef)]=[],_0x1e2332[_0x135771(0x15b9)]=_0x54f7f9,_0x1e2332[_0x135771(0x2690)]=_0x23d838,_0x1e2332[_0x135771(0x2514)]=_0x1556d9,_0x1e2332['hasModulePermissions']={},_0x1e2332[_0x135771(0x2251)]=_0x1e2332[_0x135771(0x15b9)]&&_0x1e2332[_0x135771(0x15b9)]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1e2332['title']=_0x135771(0xf4f),_0x1e2332[_0x135771(0xfc2)]=angular[_0x135771(0x235a)](_0x588397),_0x1e2332[_0x135771(0x148d)]=_0x2b67ca,_0x1e2332['newVtigerAccount']=![];!_0x1e2332['vtigerAccount']&&(_0x1e2332[_0x135771(0xfc2)]={'serverUrl':_0x53a0d4[_0x135771(0x2414)]()+_0x135771(0xb0e)+_0x53a0d4[_0x135771(0x148e)]()+(_0x53a0d4['port']()?':'+_0x53a0d4[_0x135771(0x1553)]():'')},_0x1e2332[_0x135771(0x1189)]=_0x135771(0x1d83),_0x1e2332[_0x135771(0x8d9)]=!![]);_0x1e2332[_0x135771(0x1178)]=_0x5dbd49,_0x1e2332[_0x135771(0x1fc0)]=_0x4cf55d,_0x1e2332[_0x135771(0xe31)]=_0x2c83c0,_0x1e2332[_0x135771(0xe73)]=_0x417d01,_0x1e2332[_0x135771(0x13f3)]=_0x512392;function _0x5dbd49(){const _0x3554ef=_0x135771;_0x1e2332[_0x3554ef(0xcef)]=[],_0x2213a7[_0x3554ef(0xf8d)][_0x3554ef(0x1e3)](_0x1e2332[_0x3554ef(0xfc2)])[_0x3554ef(0x2945)][_0x3554ef(0x146b)](function(_0xf656fc){const _0x56858a=_0x3554ef;_0x1e2332['vtigerAccounts'][_0x56858a(0xb3d)](_0xf656fc[_0x56858a(0x2488)]()),_0x154f35[_0x56858a(0x1c75)]({'title':_0x56858a(0x2935),'msg':_0x1e2332[_0x56858a(0xfc2)]['name']?_0x1e2332[_0x56858a(0xfc2)][_0x56858a(0x19eb)]+_0x56858a(0x1386):''}),_0x512392(_0xf656fc);})['catch'](function(_0xe35429){const _0x375009=_0x3554ef;if(_0xe35429[_0x375009(0x524)]&&_0xe35429['data'][_0x375009(0xcef)]&&_0xe35429[_0x375009(0x524)][_0x375009(0xcef)][_0x375009(0x402)]){_0x1e2332[_0x375009(0xcef)]=_0xe35429['data'][_0x375009(0xcef)]||[{'message':_0xe35429[_0x375009(0xd5f)](),'type':_0x375009(0x9fb)}];for(let _0x58e0db=0x0;_0x58e0db<_0xe35429['data'][_0x375009(0xcef)][_0x375009(0x402)];_0x58e0db+=0x1){_0x154f35[_0x375009(0x1980)]({'title':_0xe35429[_0x375009(0x524)]['errors'][_0x58e0db][_0x375009(0x1142)],'msg':_0xe35429[_0x375009(0x524)][_0x375009(0xcef)][_0x58e0db][_0x375009(0x7fd)]});}}else _0x154f35[_0x375009(0x1980)]({'title':_0xe35429[_0x375009(0x107b)]?'API:'+_0xe35429['status']+_0x375009(0x1315)+_0xe35429[_0x375009(0x167f)]:_0x375009(0x9fb),'msg':_0xe35429[_0x375009(0x524)]?JSON[_0x375009(0x10bb)](_0xe35429['data'][_0x375009(0x7fd)]):_0xe35429[_0x375009(0xd5f)]()});});}function _0x4cf55d(){const _0x6c9f31=_0x135771;_0x1e2332[_0x6c9f31(0xcef)]=[],_0x2213a7['intVtigerAccount']['update']({'id':_0x1e2332[_0x6c9f31(0xfc2)]['id']},_0x1e2332['vtigerAccount'])[_0x6c9f31(0x2945)][_0x6c9f31(0x146b)](function(_0x3218b2){const _0x49852f=_0x6c9f31,_0x12bc3c=_0x3f65c0()[_0x49852f(0xc84)](_0x1e2332[_0x49852f(0x148d)],{'id':_0x3218b2['id']});_0x12bc3c&&_0x3f65c0()[_0x49852f(0x168d)](_0x12bc3c,_0x3f65c0()[_0x49852f(0x40e)](_0x3218b2[_0x49852f(0x2488)](),_0x3f65c0()[_0x49852f(0x627)](_0x12bc3c))),_0x154f35['success']({'title':'VtigerAccount\x20properly\x20saved!','msg':_0x1e2332[_0x49852f(0xfc2)][_0x49852f(0x19eb)]?_0x1e2332[_0x49852f(0xfc2)][_0x49852f(0x19eb)]+'\x20has\x20been\x20saved!':''}),_0x512392(_0x3218b2);})[_0x6c9f31(0x129e)](function(_0x5c10b3){const _0x10b74e=_0x6c9f31;if(_0x5c10b3['data']&&_0x5c10b3[_0x10b74e(0x524)][_0x10b74e(0xcef)]&&_0x5c10b3[_0x10b74e(0x524)]['errors']['length']){_0x1e2332['errors']=_0x5c10b3[_0x10b74e(0x524)][_0x10b74e(0xcef)]||[{'message':_0x5c10b3[_0x10b74e(0xd5f)](),'type':_0x10b74e(0xa9b)}];for(let _0x40b679=0x0;_0x40b679<_0x5c10b3[_0x10b74e(0x524)][_0x10b74e(0xcef)]['length'];_0x40b679++){_0x154f35['error']({'title':_0x5c10b3[_0x10b74e(0x524)][_0x10b74e(0xcef)][_0x40b679][_0x10b74e(0x1142)],'msg':_0x5c10b3[_0x10b74e(0x524)][_0x10b74e(0xcef)][_0x40b679][_0x10b74e(0x7fd)]});}}else _0x154f35[_0x10b74e(0x1980)]({'title':_0x5c10b3[_0x10b74e(0x107b)]?_0x10b74e(0x262a)+_0x5c10b3[_0x10b74e(0x107b)]+_0x10b74e(0x1315)+_0x5c10b3[_0x10b74e(0x167f)]:_0x10b74e(0xa9b),'msg':_0x5c10b3[_0x10b74e(0x524)]?JSON[_0x10b74e(0x10bb)](_0x5c10b3['data'][_0x10b74e(0x7fd)]):_0x5c10b3[_0x10b74e(0xd5f)]()});});}function _0x2c83c0(_0x248e1a){const _0x635367=_0x135771;_0x1e2332[_0x635367(0xcef)]=[];const _0xf9dc4d=_0x54ae0c[_0x635367(0x1e8a)]()[_0x635367(0x1189)](_0x635367(0x1d64))[_0x635367(0x80f)](_0x635367(0x206b))[_0x635367(0x4bd)](_0x635367(0x81f))['ok']('Delete')['cancel']('Cancel')[_0x635367(0x1f27)](_0x248e1a);_0x54ae0c['show'](_0xf9dc4d)[_0x635367(0x146b)](function(){const _0x5840f2=_0x635367;_0x2213a7[_0x5840f2(0xf8d)][_0x5840f2(0x1fac)]({'id':_0x1e2332['vtigerAccount']['id']})[_0x5840f2(0x2945)]['then'](function(){const _0x78eb63=_0x5840f2;_0x3f65c0()[_0x78eb63(0x2640)](_0x1e2332['vtigerAccounts'],{'id':_0x1e2332[_0x78eb63(0xfc2)]['id']}),_0x154f35[_0x78eb63(0x1c75)]({'title':_0x78eb63(0xf11),'msg':(_0x1e2332[_0x78eb63(0xfc2)][_0x78eb63(0x19eb)]||_0x78eb63(0xfc2))+'\x20has\x20been\x20deleted!'}),_0x512392(_0x1e2332[_0x78eb63(0xfc2)]);})['catch'](function(_0x423219){const _0x17b616=_0x5840f2;if(_0x423219['data']&&_0x423219[_0x17b616(0x524)][_0x17b616(0xcef)]&&_0x423219['data'][_0x17b616(0xcef)]['length']){_0x1e2332[_0x17b616(0xcef)]=_0x423219[_0x17b616(0x524)][_0x17b616(0xcef)]||[{'message':_0x423219[_0x17b616(0xd5f)](),'type':'api.intVtigerAccount.delete'}];for(let _0x4483cd=0x0;_0x4483cd<_0x423219[_0x17b616(0x524)][_0x17b616(0xcef)][_0x17b616(0x402)];_0x4483cd++){_0x154f35['error']({'title':_0x423219[_0x17b616(0x524)][_0x17b616(0xcef)][_0x4483cd][_0x17b616(0x1142)],'msg':_0x423219['data'][_0x17b616(0xcef)][_0x4483cd][_0x17b616(0x7fd)]});}}else _0x154f35[_0x17b616(0x1980)]({'title':_0x423219[_0x17b616(0x107b)]?'API:'+_0x423219[_0x17b616(0x107b)]+_0x17b616(0x1315)+_0x423219[_0x17b616(0x167f)]:'api.intVtigerAccount.delete','msg':_0x423219[_0x17b616(0x524)]?JSON[_0x17b616(0x10bb)](_0x423219[_0x17b616(0x524)][_0x17b616(0x7fd)]):_0x423219[_0x17b616(0x7fd)]||_0x423219[_0x17b616(0xd5f)]()});});},function(){});}function _0x417d01(_0x77919e){return _0x77919e===null?undefined:new Date(_0x77919e);}function _0x512392(_0x4ca9e9){const _0x2d4a65=_0x135771;_0x54ae0c[_0x2d4a65(0x2458)](_0x4ca9e9);}}const _0x35b5b4=_0xea45c6;;const _0x14ffb1=_0x4acfac['p']+'src/js/modules/main/apps/integrations/views/vtigerAccounts/edit/configurations/dialog.html/dialog.html';;const _0xd4b74=_0x4acfac['p']+'src/js/modules/main/apps/integrations/views/vtigerAccounts/edit/item/dialog.html/dialog.html';;_0x295373[_0x313a4d(0x11c2)]=[_0x313a4d(0x10e8),_0x313a4d(0x4d8),_0x313a4d(0x247f),'toasty',_0x313a4d(0xa87)];function _0x295373(_0x28cd12,_0x4c23d1,_0x20d46b,_0x398289,_0x13ca58){const _0x16c7b0=_0x313a4d,_0x1b18ea=this;_0x1b18ea[_0x16c7b0(0x2321)]=_0x13ca58['getCurrentUser'](),_0x1b18ea[_0x16c7b0(0xfc2)]={},_0x1b18ea[_0x16c7b0(0x27c2)]={},_0x1b18ea['configurations']=[],_0x1b18ea[_0x16c7b0(0x1d8f)]=-0x1,_0x1b18ea['crudPermissions'],_0x1b18ea['init']=_0x231322,_0x1b18ea[_0x16c7b0(0x188a)]=_0x2032a2,_0x1b18ea['createOrEditVtigerConfiguration']=_0x1480f4,_0x1b18ea['deleteVtigerConfiguration']=_0x2983d2;function _0x231322(_0x101df2,_0x20d8da){const _0x19265e=_0x16c7b0;_0x1b18ea[_0x19265e(0xfc2)]=_0x101df2,_0x1b18ea[_0x19265e(0x2514)]=typeof _0x20d8da!==_0x19265e(0x2274)?_0x20d8da:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x20d46b[_0x19265e(0xf8d)][_0x19265e(0xeb)]({'id':_0x1b18ea[_0x19265e(0xfc2)]['id'],'sort':_0x19265e(0x12f2)})[_0x19265e(0x2945)][_0x19265e(0x146b)](function(_0x1077ae){const _0x459334=_0x19265e;return _0x1b18ea[_0x459334(0x1723)]=_0x1077ae[_0x459334(0x19c7)]?_0x1077ae[_0x459334(0x19c7)]:[],_0x1b18ea[_0x459334(0x1723)][_0x459334(0x402)]&&_0x1b18ea[_0x459334(0x188a)](0x0),_0x20d46b[_0x459334(0x212)]['get']({'nolimit':!![],'sort':_0x459334(0x19eb)})[_0x459334(0x2945)];})[_0x19265e(0x146b)](function(_0x415eb1){const _0x1ab69e=_0x19265e;_0x1b18ea[_0x1ab69e(0x85b)]=_0x415eb1['rows']?_0x415eb1[_0x1ab69e(0x19c7)]:[],_0x1b18ea['variablesById']=_0x3f65c0()[_0x1ab69e(0x194)](_0x1b18ea[_0x1ab69e(0x85b)],'id');})[_0x19265e(0x129e)](function(_0x571c81){const _0x3a3bec=_0x19265e;_0x398289[_0x3a3bec(0x1980)]({'title':_0x571c81[_0x3a3bec(0x107b)]?_0x3a3bec(0x262a)+_0x571c81[_0x3a3bec(0x107b)]+'\x20-\x20'+_0x571c81[_0x3a3bec(0x167f)]:'SYSTEM:GETCONFIGURATION','msg':_0x571c81[_0x3a3bec(0x524)]?JSON[_0x3a3bec(0x10bb)](_0x571c81[_0x3a3bec(0x524)]):_0x571c81[_0x3a3bec(0xd5f)]()});});}function _0x2032a2(_0x451c8f){const _0x560c98=_0x16c7b0;_0x1b18ea[_0x560c98(0x27c2)]=_0x1b18ea[_0x560c98(0x1723)][_0x451c8f],_0x1b18ea[_0x560c98(0x1d8f)]=_0x451c8f,_0x20d46b['intVtigerConfiguration'][_0x560c98(0x18ee)]({'id':_0x1b18ea[_0x560c98(0x27c2)]['id']})[_0x560c98(0x2945)][_0x560c98(0x146b)](function(_0x27c4e1){const _0x4b19de=_0x560c98;return _0x1b18ea['subjects']=_0x27c4e1[_0x4b19de(0x19c7)]?_0x27c4e1[_0x4b19de(0x19c7)]:[],_0x20d46b[_0x4b19de(0x242d)]['getDescriptions']({'id':_0x1b18ea[_0x4b19de(0x27c2)]['id']})['$promise'];})[_0x560c98(0x146b)](function(_0x582c28){const _0x4ee940=_0x560c98;return _0x1b18ea['descriptions']=_0x582c28[_0x4ee940(0x19c7)]?_0x582c28['rows']:[],_0x20d46b['intVtigerConfiguration'][_0x4ee940(0x12ff)]({'id':_0x1b18ea[_0x4ee940(0x27c2)]['id']})['$promise'];})[_0x560c98(0x146b)](function(_0x30f296){const _0x3c6883=_0x560c98;_0x1b18ea['fields']=_0x30f296['rows']?_0x30f296[_0x3c6883(0x19c7)]:[];})['catch'](function(_0x1ad255){const _0x13c0df=_0x560c98;_0x398289[_0x13c0df(0x1980)]({'title':_0x1ad255['status']?'API:'+_0x1ad255[_0x13c0df(0x107b)]+_0x13c0df(0x1315)+_0x1ad255['statusText']:_0x13c0df(0x6ca),'msg':_0x1ad255[_0x13c0df(0x524)]?JSON['stringify'](_0x1ad255[_0x13c0df(0x524)]):_0x1ad255[_0x13c0df(0xd5f)]()});});}function _0x1480f4(_0x3c3b49,_0x3e0ad3){const _0x175ad0=_0x16c7b0;_0x28cd12['show']({'controller':_0x175ad0(0x18a7),'controllerAs':'vm','templateUrl':_0x14ffb1,'parent':angular[_0x175ad0(0x1853)](_0x4c23d1[_0x175ad0(0x2586)]),'targetEvent':_0x3c3b49,'clickOutsideToClose':!![],'locals':{'vtigerConfiguration':_0x3e0ad3,'configurations':_0x1b18ea['configurations'],'license':null,'setting':null,'crudPermissions':_0x1b18ea['crudPermissions']}})[_0x175ad0(0x1ec6)](function(){const _0x581e0f=_0x175ad0;_0x1b18ea[_0x581e0f(0x188a)](0x0);});}function _0x2983d2(_0x52271a,_0x1b5da9){const _0x30dd2b=_0x16c7b0,_0x35fc32=_0x28cd12[_0x30dd2b(0x1e8a)]()[_0x30dd2b(0x1189)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20vtigerConfiguration?')['htmlContent'](''+(_0x1b5da9['name']||_0x30dd2b(0x27c2))+_0x30dd2b(0x252f)+_0x30dd2b(0xe01))[_0x30dd2b(0x4bd)]('delete\x20vtigerConfiguration')[_0x30dd2b(0x1f27)](_0x52271a)['ok']('OK')['cancel'](_0x30dd2b(0x39a));_0x28cd12[_0x30dd2b(0x2615)](_0x35fc32)[_0x30dd2b(0x146b)](function(){const _0x24ede3=_0x30dd2b;_0x20d46b[_0x24ede3(0x242d)][_0x24ede3(0x1fac)]({'id':_0x1b5da9['id']})[_0x24ede3(0x2945)][_0x24ede3(0x146b)](function(){const _0x231eae=_0x24ede3;_0x3f65c0()[_0x231eae(0x2640)](_0x1b18ea[_0x231eae(0x1723)],{'id':_0x1b5da9['id']}),_0x398289[_0x231eae(0x1c75)]({'title':_0x231eae(0x37f),'msg':_0x1b5da9['name']?_0x1b5da9[_0x231eae(0x19eb)]+_0x231eae(0x23e3):''});})[_0x24ede3(0x129e)](function(_0x45d1c4){const _0x2c87ba=_0x24ede3;_0x398289[_0x2c87ba(0x1980)]({'title':_0x45d1c4[_0x2c87ba(0x107b)]?_0x2c87ba(0x262a)+_0x45d1c4[_0x2c87ba(0x107b)]+_0x2c87ba(0x1315)+_0x45d1c4[_0x2c87ba(0x167f)]:_0x2c87ba(0xff1),'msg':_0x45d1c4[_0x2c87ba(0x524)]?JSON[_0x2c87ba(0x10bb)](_0x45d1c4['data']):_0x45d1c4['toString']()});})[_0x24ede3(0x1ec6)](function(){const _0x3c1320=_0x24ede3;_0x1b18ea[_0x3c1320(0x188a)](0x0);});},function(){const _0xe8bf59=_0x30dd2b;console[_0xe8bf59(0x1a74)](_0xe8bf59(0x39a));});}_0x1b18ea['selectedSubjects']=[],_0x1b18ea[_0x16c7b0(0x2665)]=_0x33bf46,_0x1b18ea[_0x16c7b0(0x10d5)]=_0x2ed3dc,_0x1b18ea['deleteSelectedSubjects']=_0x3a0785;function _0x33bf46(_0x2abefc,_0x5c395e){const _0x5ba215=_0x16c7b0;_0x28cd12['show']({'controller':'CreateOrEditVtigerAccountItemDialogController','controllerAs':'vm','templateUrl':_0xd4b74,'parent':angular[_0x5ba215(0x1853)](_0x4c23d1[_0x5ba215(0x2586)]),'targetEvent':_0x2abefc,'clickOutsideToClose':!![],'locals':{'type':_0x5ba215(0xe32),'item':_0x5c395e,'items':_0x1b18ea[_0x5ba215(0x3c8)],'configuration':_0x1b18ea['vtigerConfiguration'],'account':_0x1b18ea[_0x5ba215(0xfc2)],'license':null,'setting':null,'crudPermissions':_0x1b18ea[_0x5ba215(0x2514)]}});}function _0x5c480f(_0x351476){const _0xb9d451=_0x16c7b0;_0x20d46b[_0xb9d451(0x745)][_0xb9d451(0x1fac)]({'id':_0x351476['id']})['$promise'][_0xb9d451(0x146b)](function(){const _0x199061=_0xb9d451;_0x3f65c0()[_0x199061(0x2640)](_0x1b18ea[_0x199061(0x3c8)],{'id':_0x351476['id']}),_0x398289[_0x199061(0x1c75)]({'title':_0x199061(0x28e6),'msg':'Subject\x20has\x20been\x20deleted!'});})[_0xb9d451(0x129e)](function(_0x285d4a){const _0x43ff4f=_0xb9d451;_0x398289[_0x43ff4f(0x1980)]({'title':_0x285d4a[_0x43ff4f(0x107b)]?_0x43ff4f(0x262a)+_0x285d4a['status']+_0x43ff4f(0x1315)+_0x285d4a['statusText']:_0x43ff4f(0xf6e),'msg':_0x285d4a[_0x43ff4f(0x524)]?JSON[_0x43ff4f(0x10bb)](_0x285d4a[_0x43ff4f(0x524)]):_0x285d4a[_0x43ff4f(0xd5f)]()});});}function _0x2ed3dc(_0x6e80c8,_0x49100e){const _0x22b77c=_0x16c7b0,_0x2a5124=_0x28cd12['confirm']()[_0x22b77c(0x1189)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20subject?')[_0x22b77c(0x1cbe)](_0x22b77c(0xf7f)+_0x22b77c(0xe01))['ariaLabel'](_0x22b77c(0x5d1))[_0x22b77c(0x1f27)](_0x6e80c8)['ok']('OK')['cancel'](_0x22b77c(0x39a));_0x28cd12[_0x22b77c(0x2615)](_0x2a5124)[_0x22b77c(0x146b)](function(){_0x5c480f(_0x49100e);},function(){const _0x2f45e7=_0x22b77c;console[_0x2f45e7(0x1a74)](_0x2f45e7(0x39a));});}function _0x3a0785(_0x918849){const _0x400c53=_0x16c7b0,_0x1db714=_0x28cd12[_0x400c53(0x1e8a)]()[_0x400c53(0x1189)](_0x400c53(0x2e6))[_0x400c53(0x1cbe)](_0x400c53(0x16d3)+_0x1b18ea['selectedSubjects'][_0x400c53(0x402)]+_0x400c53(0x2452)+_0x400c53(0xe01))['ariaLabel'](_0x400c53(0x1209))[_0x400c53(0x1f27)](_0x918849)['ok']('OK')[_0x400c53(0x6c3)](_0x400c53(0x39a));_0x28cd12[_0x400c53(0x2615)](_0x1db714)['then'](function(){const _0x30acdc=_0x400c53;_0x1b18ea['selectedSubjects']['forEach'](function(_0x48e46d){_0x5c480f(_0x48e46d);}),_0x1b18ea[_0x30acdc(0x15a6)]=[];});}_0x1b18ea['selectedDescriptions']=[],_0x1b18ea[_0x16c7b0(0x18da)]=_0x4beadb,_0x1b18ea[_0x16c7b0(0xb29)]=_0x3e512b,_0x1b18ea[_0x16c7b0(0x2241)]=_0x2f7843;function _0x4beadb(_0x30c9f5,_0x4c1ea7){const _0x35f28c=_0x16c7b0;_0x28cd12[_0x35f28c(0x2615)]({'controller':_0x35f28c(0x17a0),'controllerAs':'vm','templateUrl':_0xd4b74,'parent':angular[_0x35f28c(0x1853)](_0x4c23d1[_0x35f28c(0x2586)]),'targetEvent':_0x30c9f5,'clickOutsideToClose':!![],'locals':{'type':_0x35f28c(0xb17),'item':_0x4c1ea7,'items':_0x1b18ea[_0x35f28c(0x2358)],'configuration':_0x1b18ea[_0x35f28c(0x27c2)],'account':_0x1b18ea[_0x35f28c(0xfc2)],'license':null,'setting':null,'crudPermissions':_0x1b18ea[_0x35f28c(0x2514)]}});}function _0x3b99a1(_0x24cc81){const _0x422c60=_0x16c7b0;_0x20d46b[_0x422c60(0x745)][_0x422c60(0x1fac)]({'id':_0x24cc81['id']})[_0x422c60(0x2945)]['then'](function(){const _0x2c2739=_0x422c60;_0x3f65c0()['remove'](_0x1b18ea[_0x2c2739(0x2358)],{'id':_0x24cc81['id']}),_0x398289['success']({'title':_0x2c2739(0xaf8),'msg':_0x2c2739(0x8e3)});})[_0x422c60(0x129e)](function(_0x1e5743){const _0x35603c=_0x422c60;_0x398289['error']({'title':_0x1e5743[_0x35603c(0x107b)]?_0x35603c(0x262a)+_0x1e5743[_0x35603c(0x107b)]+'\x20-\x20'+_0x1e5743['statusText']:_0x35603c(0xf6e),'msg':_0x1e5743[_0x35603c(0x524)]?JSON['stringify'](_0x1e5743[_0x35603c(0x524)]):_0x1e5743['toString']()});});}function _0x3e512b(_0x3ffc54,_0x5b27c1){const _0x468351=_0x16c7b0,_0x31c2ec=_0x28cd12[_0x468351(0x1e8a)]()[_0x468351(0x1189)](_0x468351(0x1e9))[_0x468351(0x1cbe)](_0x468351(0x2014)+_0x468351(0xe01))[_0x468351(0x4bd)](_0x468351(0x1c5c))[_0x468351(0x1f27)](_0x3ffc54)['ok']('OK')[_0x468351(0x6c3)](_0x468351(0x39a));_0x28cd12[_0x468351(0x2615)](_0x31c2ec)[_0x468351(0x146b)](function(){_0x3b99a1(_0x5b27c1);},function(){const _0x5d879b=_0x468351;console[_0x5d879b(0x1a74)]('CANCEL');});}function _0x2f7843(_0x31e6d4){const _0x25a2ce=_0x16c7b0,_0x5bc424=_0x28cd12['confirm']()[_0x25a2ce(0x1189)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20descriptions?')[_0x25a2ce(0x1cbe)](_0x25a2ce(0x16d3)+_0x1b18ea[_0x25a2ce(0x126)][_0x25a2ce(0x402)]+_0x25a2ce(0x2452)+_0x25a2ce(0xe01))['ariaLabel'](_0x25a2ce(0x1be7))[_0x25a2ce(0x1f27)](_0x31e6d4)['ok']('OK')[_0x25a2ce(0x6c3)](_0x25a2ce(0x39a));_0x28cd12[_0x25a2ce(0x2615)](_0x5bc424)['then'](function(){const _0x3f0e96=_0x25a2ce;_0x1b18ea[_0x3f0e96(0x126)]['forEach'](function(_0x5e8b49){_0x3b99a1(_0x5e8b49);}),_0x1b18ea['selectedDescriptions']=[];});}_0x1b18ea['selectedFields']=[],_0x1b18ea['createOrEditField']=_0x5a381e,_0x1b18ea[_0x16c7b0(0x2180)]=_0x173e65,_0x1b18ea[_0x16c7b0(0x816)]=_0x1d2b08;function _0x5a381e(_0x4f4e35,_0x2b2a64){const _0x496545=_0x16c7b0;_0x28cd12[_0x496545(0x2615)]({'controller':_0x496545(0x17a0),'controllerAs':'vm','templateUrl':_0xd4b74,'parent':angular[_0x496545(0x1853)](_0x4c23d1['body']),'targetEvent':_0x4f4e35,'clickOutsideToClose':!![],'locals':{'type':_0x496545(0x65c),'item':_0x2b2a64,'items':_0x1b18ea[_0x496545(0x2867)],'configuration':_0x1b18ea[_0x496545(0x27c2)],'account':_0x1b18ea[_0x496545(0xfc2)],'license':null,'setting':null,'crudPermissions':_0x1b18ea[_0x496545(0x2514)]}});}function _0x355266(_0x2bf055){const _0x4f11ba=_0x16c7b0;_0x20d46b[_0x4f11ba(0x745)][_0x4f11ba(0x1fac)]({'id':_0x2bf055['id']})[_0x4f11ba(0x2945)][_0x4f11ba(0x146b)](function(){const _0x159d55=_0x4f11ba;_0x3f65c0()[_0x159d55(0x2640)](_0x1b18ea['fields'],{'id':_0x2bf055['id']}),_0x398289[_0x159d55(0x1c75)]({'title':'Field\x20deleted!','msg':'Field\x20has\x20been\x20deleted!'});})[_0x4f11ba(0x129e)](function(_0x5df782){const _0x1d97a9=_0x4f11ba;_0x398289[_0x1d97a9(0x1980)]({'title':_0x5df782['status']?_0x1d97a9(0x262a)+_0x5df782[_0x1d97a9(0x107b)]+'\x20-\x20'+_0x5df782[_0x1d97a9(0x167f)]:_0x1d97a9(0xf6e),'msg':_0x5df782[_0x1d97a9(0x524)]?JSON[_0x1d97a9(0x10bb)](_0x5df782['data']):_0x5df782[_0x1d97a9(0xd5f)]()});});}function _0x173e65(_0x26a58d,_0x292c6e){const _0x45dca8=_0x16c7b0,_0x43a707=_0x28cd12['confirm']()[_0x45dca8(0x1189)](_0x45dca8(0x17f6))[_0x45dca8(0x1cbe)](_0x45dca8(0x2216)+_0x45dca8(0xe01))[_0x45dca8(0x4bd)](_0x45dca8(0x2487))[_0x45dca8(0x1f27)](_0x26a58d)['ok']('OK')['cancel']('CANCEL');_0x28cd12[_0x45dca8(0x2615)](_0x43a707)[_0x45dca8(0x146b)](function(){_0x355266(_0x292c6e);},function(){const _0x4ce658=_0x45dca8;console[_0x4ce658(0x1a74)](_0x4ce658(0x39a));});}function _0x1d2b08(_0x311a8b){const _0x28a426=_0x16c7b0,_0x5993f1=_0x28cd12['confirm']()[_0x28a426(0x1189)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20fields?')[_0x28a426(0x1cbe)](_0x28a426(0x16d3)+_0x1b18ea[_0x28a426(0x2605)][_0x28a426(0x402)]+'\x20selected'+_0x28a426(0xe01))[_0x28a426(0x4bd)](_0x28a426(0x176a))[_0x28a426(0x1f27)](_0x311a8b)['ok']('OK')['cancel'](_0x28a426(0x39a));_0x28cd12['show'](_0x5993f1)[_0x28a426(0x146b)](function(){const _0x17c26d=_0x28a426;_0x1b18ea[_0x17c26d(0x2605)]['forEach'](function(_0x491270){_0x355266(_0x491270);}),_0x1b18ea['selectedFields']=[];});}}const _0x4e6509=_0x295373;;_0x1f96a4[_0x313a4d(0x11c2)]=['$scope',_0x313a4d(0x1862),_0x313a4d(0xd08),_0x313a4d(0x10e8),'$q',_0x313a4d(0x214b),_0x313a4d(0x1fe4),'configurations','vtigerConfiguration',_0x313a4d(0x247f),_0x313a4d(0xa87),_0x313a4d(0x2690),_0x313a4d(0x15b9),_0x313a4d(0x2514)];function _0x1f96a4(_0x4a8ff2,_0x919e67,_0x50d8f3,_0x4d953b,_0x4d746c,_0x117611,_0x583a13,_0xa823e6,_0x9a4d4d,_0x373b5f,_0x4459c4,_0x413eaf,_0x3d4b4f,_0x3d77fa){const _0x34d543=_0x313a4d,_0x5745d3=this;_0x5745d3['currentUser']=_0x4459c4[_0x34d543(0xb12)](),_0x5745d3['errors']=[],_0x5745d3[_0x34d543(0x15b9)]=_0x3d4b4f,_0x5745d3['license']=_0x413eaf,_0x5745d3[_0x34d543(0x2514)]=_0x3d77fa,_0x5745d3['hasModulePermissions']={},_0x5745d3[_0x34d543(0x2251)]=_0x5745d3[_0x34d543(0x15b9)]&&_0x5745d3[_0x34d543(0x15b9)][_0x34d543(0x976)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x5745d3['title']=_0x34d543(0x1ad9),_0x5745d3[_0x34d543(0x27c2)]=angular['copy'](_0x9a4d4d),_0x5745d3[_0x34d543(0x1723)]=_0xa823e6,_0x5745d3[_0x34d543(0x3f9)]=![];!_0x5745d3['vtigerConfiguration']&&(_0x5745d3[_0x34d543(0x27c2)]={'channel':_0x34d543(0xe6),'type':_0x34d543(0x7b0)},_0x5745d3[_0x34d543(0x1189)]='INTEGRATIONS.NEW_VTIGERCONFIGURATION',_0x5745d3['newVtigerConfiguration']=!![]);_0x5745d3[_0x34d543(0x25c3)]=_0x9d4188,_0x5745d3[_0x34d543(0xf8e)]=_0x380283,_0x5745d3['deleteVtigerConfiguration']=_0x2d3733,_0x5745d3[_0x34d543(0xe73)]=_0x34f6a3,_0x5745d3['closeDialog']=_0x37ba1d;function _0x9d4188(){const _0x3f01ee=_0x34d543;_0x5745d3[_0x3f01ee(0xcef)]=[],_0x373b5f[_0x3f01ee(0xf8d)]['addConfiguration']({'id':_0x919e67[_0x3f01ee(0x16a)]['id']},_0x5745d3[_0x3f01ee(0x27c2)])[_0x3f01ee(0x2945)]['then'](function(_0x29ee75){const _0xaddc69=_0x3f01ee;_0x5745d3[_0xaddc69(0x1723)][_0xaddc69(0xb3d)](_0x29ee75[_0xaddc69(0x2488)]()),_0x583a13[_0xaddc69(0x1c75)]({'title':_0xaddc69(0x19c3),'msg':_0x5745d3[_0xaddc69(0x27c2)][_0xaddc69(0x19eb)]?_0x5745d3[_0xaddc69(0x27c2)][_0xaddc69(0x19eb)]+_0xaddc69(0x1386):''}),_0x37ba1d(_0x29ee75);})['catch'](function(_0x2c9830){const _0x2d4651=_0x3f01ee;if(_0x2c9830[_0x2d4651(0x524)]&&_0x2c9830['data'][_0x2d4651(0xcef)]&&_0x2c9830[_0x2d4651(0x524)]['errors'][_0x2d4651(0x402)]){_0x5745d3['errors']=_0x2c9830[_0x2d4651(0x524)][_0x2d4651(0xcef)]||[{'message':_0x2c9830[_0x2d4651(0xd5f)](),'type':_0x2d4651(0x28c2)}];for(let _0x1aba34=0x0;_0x1aba34<_0x2c9830[_0x2d4651(0x524)][_0x2d4651(0xcef)]['length'];_0x1aba34+=0x1){_0x583a13[_0x2d4651(0x1980)]({'title':_0x2c9830[_0x2d4651(0x524)][_0x2d4651(0xcef)][_0x1aba34]['type'],'msg':_0x2c9830[_0x2d4651(0x524)][_0x2d4651(0xcef)][_0x1aba34][_0x2d4651(0x7fd)]});}}else _0x583a13['error']({'title':_0x2c9830['status']?'API:'+_0x2c9830[_0x2d4651(0x107b)]+_0x2d4651(0x1315)+_0x2c9830['statusText']:_0x2d4651(0x28c2),'msg':_0x2c9830[_0x2d4651(0x524)]?JSON[_0x2d4651(0x10bb)](_0x2c9830[_0x2d4651(0x524)][_0x2d4651(0x7fd)]):_0x2c9830['toString']()});});}function _0x380283(){const _0x224165=_0x34d543;_0x5745d3[_0x224165(0xcef)]=[],_0x373b5f[_0x224165(0x242d)][_0x224165(0x18e1)]({'id':_0x5745d3['vtigerConfiguration']['id']},_0x5745d3[_0x224165(0x27c2)])[_0x224165(0x2945)][_0x224165(0x146b)](function(_0x18f99a){const _0x4b5d2a=_0x224165,_0x2a8fe2=_0x3f65c0()[_0x4b5d2a(0xc84)](_0x5745d3[_0x4b5d2a(0x1723)],{'id':_0x18f99a['id']});_0x2a8fe2&&_0x3f65c0()[_0x4b5d2a(0x168d)](_0x2a8fe2,_0x3f65c0()[_0x4b5d2a(0x40e)](_0x18f99a[_0x4b5d2a(0x2488)](),_0x3f65c0()[_0x4b5d2a(0x627)](_0x2a8fe2))),_0x583a13[_0x4b5d2a(0x1c75)]({'title':_0x4b5d2a(0x9d9),'msg':_0x5745d3['vtigerConfiguration'][_0x4b5d2a(0x19eb)]?_0x5745d3[_0x4b5d2a(0x27c2)][_0x4b5d2a(0x19eb)]+_0x4b5d2a(0x24db):''}),_0x37ba1d(_0x18f99a);})[_0x224165(0x129e)](function(_0x5a7960){const _0x25c515=_0x224165;if(_0x5a7960['data']&&_0x5a7960['data'][_0x25c515(0xcef)]&&_0x5a7960[_0x25c515(0x524)][_0x25c515(0xcef)]['length']){_0x5745d3['errors']=_0x5a7960[_0x25c515(0x524)]['errors']||[{'message':_0x5a7960['toString'](),'type':'api.intVtigerConfiguration.update'}];for(let _0x4b682c=0x0;_0x4b682c<_0x5a7960['data'][_0x25c515(0xcef)][_0x25c515(0x402)];_0x4b682c++){_0x583a13['error']({'title':_0x5a7960['data'][_0x25c515(0xcef)][_0x4b682c]['type'],'msg':_0x5a7960[_0x25c515(0x524)][_0x25c515(0xcef)][_0x4b682c]['message']});}}else _0x583a13[_0x25c515(0x1980)]({'title':_0x5a7960['status']?_0x25c515(0x262a)+_0x5a7960[_0x25c515(0x107b)]+_0x25c515(0x1315)+_0x5a7960[_0x25c515(0x167f)]:'api.intVtigerConfiguration.update','msg':_0x5a7960[_0x25c515(0x524)]?JSON[_0x25c515(0x10bb)](_0x5a7960[_0x25c515(0x524)][_0x25c515(0x7fd)]):_0x5a7960['toString']()});});}function _0x2d3733(_0x431aa4){const _0x274f2e=_0x34d543;_0x5745d3['errors']=[];const _0x35505e=_0x4d953b['confirm']()[_0x274f2e(0x1189)](_0x274f2e(0x1d64))['content']('The\x20vtigerConfiguration\x20will\x20be\x20deleted.')[_0x274f2e(0x4bd)]('Delete\x20VtigerConfiguration')['ok'](_0x274f2e(0x25de))[_0x274f2e(0x6c3)](_0x274f2e(0xcf0))[_0x274f2e(0x1f27)](_0x431aa4);_0x4d953b[_0x274f2e(0x2615)](_0x35505e)[_0x274f2e(0x146b)](function(){const _0x4fd8a0=_0x274f2e;_0x373b5f[_0x4fd8a0(0x242d)][_0x4fd8a0(0x1fac)]({'id':_0x5745d3[_0x4fd8a0(0x27c2)]['id']})[_0x4fd8a0(0x2945)][_0x4fd8a0(0x146b)](function(){const _0x322bbd=_0x4fd8a0;_0x3f65c0()[_0x322bbd(0x2640)](_0x5745d3[_0x322bbd(0x1723)],{'id':_0x5745d3[_0x322bbd(0x27c2)]['id']}),_0x583a13['success']({'title':_0x322bbd(0x1a9e),'msg':(_0x5745d3[_0x322bbd(0x27c2)][_0x322bbd(0x19eb)]||_0x322bbd(0x27c2))+_0x322bbd(0x23e3)}),_0x37ba1d(_0x5745d3['vtigerConfiguration']);})[_0x4fd8a0(0x129e)](function(_0x394ef4){const _0x2ca24d=_0x4fd8a0;if(_0x394ef4['data']&&_0x394ef4[_0x2ca24d(0x524)][_0x2ca24d(0xcef)]&&_0x394ef4[_0x2ca24d(0x524)][_0x2ca24d(0xcef)]['length']){_0x5745d3[_0x2ca24d(0xcef)]=_0x394ef4[_0x2ca24d(0x524)][_0x2ca24d(0xcef)]||[{'message':_0x394ef4[_0x2ca24d(0xd5f)](),'type':_0x2ca24d(0x4df)}];for(let _0x3ec318=0x0;_0x3ec318<_0x394ef4[_0x2ca24d(0x524)][_0x2ca24d(0xcef)][_0x2ca24d(0x402)];_0x3ec318++){_0x583a13[_0x2ca24d(0x1980)]({'title':_0x394ef4[_0x2ca24d(0x524)][_0x2ca24d(0xcef)][_0x3ec318]['type'],'msg':_0x394ef4[_0x2ca24d(0x524)][_0x2ca24d(0xcef)][_0x3ec318][_0x2ca24d(0x7fd)]});}}else _0x583a13[_0x2ca24d(0x1980)]({'title':_0x394ef4['status']?_0x2ca24d(0x262a)+_0x394ef4[_0x2ca24d(0x107b)]+_0x2ca24d(0x1315)+_0x394ef4[_0x2ca24d(0x167f)]:_0x2ca24d(0x4df),'msg':_0x394ef4['data']?JSON[_0x2ca24d(0x10bb)](_0x394ef4[_0x2ca24d(0x524)][_0x2ca24d(0x7fd)]):_0x394ef4[_0x2ca24d(0x7fd)]||_0x394ef4['toString']()});});},function(){});}function _0x34f6a3(_0x1ad179){return _0x1ad179===null?undefined:new Date(_0x1ad179);}function _0x37ba1d(_0x410419){const _0x34a3ca=_0x34d543;_0x4d953b[_0x34a3ca(0x2458)](_0x410419);}}const _0x1f53fb=_0x1f96a4;;_0x2c3583['$inject']=[_0x313a4d(0x910),_0x313a4d(0x1862),_0x313a4d(0xd08),_0x313a4d(0x10e8),'toasty',_0x313a4d(0x19d7),'items','item',_0x313a4d(0x1f8e),'type',_0x313a4d(0x247f),_0x313a4d(0xa87),_0x313a4d(0x2514)];function _0x2c3583(_0xba0308,_0x5f3e93,_0x5dbda9,_0x612635,_0x32bf3,_0x3a34ad,_0x1c36ca,_0x38572a,_0x513edf,_0x3f7cd9,_0x470b1d,_0x34e029,_0x106d3f){const _0x1acbf6=_0x313a4d,_0x2ece49=this;_0x2ece49[_0x1acbf6(0x2321)]=_0x34e029[_0x1acbf6(0xb12)](),_0x2ece49[_0x1acbf6(0xcef)]=[],_0x2ece49[_0x1acbf6(0x1189)]=_0x1acbf6(0x28ec)+_0x3f65c0()[_0x1acbf6(0xd39)](_0x3f7cd9),_0x2ece49[_0x1acbf6(0x2711)]=angular['copy'](_0x38572a),_0x2ece49['items']=_0x1c36ca,_0x2ece49['type']=_0x3f7cd9,_0x2ece49[_0x1acbf6(0x2514)]=_0x106d3f,_0x2ece49['newItem']=![];!_0x2ece49[_0x1acbf6(0x2711)]&&(_0x2ece49[_0x1acbf6(0x2711)]={'type':_0x1acbf6(0x1f23)},_0x2ece49['item'][_0x3f65c0()[_0x1acbf6(0x83f)](_0x3f7cd9)+'Id']=_0x3a34ad['id'],_0x2ece49[_0x1acbf6(0x1189)]='INTEGRATIONS.NEW_'+_0x3f65c0()[_0x1acbf6(0xd39)](_0x3f7cd9),_0x2ece49[_0x1acbf6(0x23cd)]=!![]);_0x2ece49[_0x1acbf6(0x1e65)]=_0x308566,_0x2ece49[_0x1acbf6(0x150e)]=_0x598583,_0x2ece49[_0x1acbf6(0xbaf)]=_0x277e5e,_0x2ece49[_0x1acbf6(0x21b1)]=_0xe38533,_0x2ece49[_0x1acbf6(0x13f3)]=_0x3399c0,_0x470b1d[_0x1acbf6(0x212)][_0x1acbf6(0x16b4)]({'nolimit':!![]})['$promise']['then'](function(_0x392802){const _0x457847=_0x1acbf6;return _0x2ece49[_0x457847(0x85b)]=_0x392802[_0x457847(0x19c7)]?_0x392802['rows']:[],_0x470b1d['voiceAgentReport']['describe']()[_0x457847(0x2945)];})[_0x1acbf6(0x146b)](function(_0x523f83){const _0x526d9c=_0x1acbf6;return _0x2ece49['voiceAgentReportColumns']=_0x3f65c0()['difference'](_0x3f65c0()[_0x526d9c(0x627)](_0x523f83),[_0x526d9c(0x2945),_0x526d9c(0x26f2),_0x526d9c(0xc68),_0x526d9c(0x144f),'sourceid']),_0x2ece49[_0x526d9c(0x1c8a)][_0x526d9c(0x1f47)](_0x526d9c(0x643)),_0x470b1d[_0x526d9c(0x160)][_0x526d9c(0x1ea2)]()['$promise'];})[_0x1acbf6(0x146b)](function(_0x572d0f){const _0x1424df=_0x1acbf6;_0x2ece49[_0x1424df(0x164b)]=_0x3f65c0()['difference'](_0x3f65c0()[_0x1424df(0x627)](_0x572d0f),['$promise',_0x1424df(0x26f2),_0x1424df(0xc68),'updatedAt',_0x1424df(0xc3b)]),_0x2ece49[_0x1424df(0x164b)][_0x1424df(0x1f47)](_0x1424df(0x643));})['catch'](function(_0x49ec01){const _0x212a34=_0x1acbf6;_0x32bf3[_0x212a34(0x1980)]({'title':_0x49ec01['status']?_0x212a34(0x262a)+_0x49ec01[_0x212a34(0x107b)]+_0x212a34(0x1315)+_0x49ec01[_0x212a34(0x167f)]:_0x212a34(0x502),'msg':_0x49ec01[_0x212a34(0x524)]?JSON[_0x212a34(0x10bb)](_0x49ec01[_0x212a34(0x524)]):_0x49ec01[_0x212a34(0xd5f)]()});}),_0x470b1d[_0x1acbf6(0xf8d)][_0x1acbf6(0x12ff)]({'id':_0x513edf['id'],'ticketType':_0x3a34ad[_0x1acbf6(0x21be)]?_0x3a34ad[_0x1acbf6(0x21be)]:undefined})[_0x1acbf6(0x2945)]['then'](function(_0x560bc8){const _0x4f51c2=_0x1acbf6;_0x2ece49[_0x4f51c2(0x822)]=!![],_0x2ece49['fields']=_0x560bc8['rows']?_0x560bc8[_0x4f51c2(0x19c7)]:[],_0x2ece49[_0x4f51c2(0x2711)]['idField']&&(_0x2ece49['customField']=_0x3f65c0()['find'](_0x2ece49[_0x4f51c2(0x2867)],{'id':_0x2ece49[_0x4f51c2(0x2711)][_0x4f51c2(0x2912)]}));})['catch'](function(_0x582bb0){const _0x7772ee=_0x1acbf6;_0x2ece49['accountConnected']=![],console[_0x7772ee(0x1980)](_0x582bb0);});function _0x308566(){const _0x10b4d4=_0x1acbf6;_0x2ece49[_0x10b4d4(0xcef)]=[],_0x2ece49['customField']&&(_0x2ece49[_0x10b4d4(0x2711)][_0x10b4d4(0x2912)]=_0x2ece49[_0x10b4d4(0x165e)]['id'],_0x2ece49[_0x10b4d4(0x2711)][_0x10b4d4(0x25e3)]=_0x2ece49[_0x10b4d4(0x165e)]['name'],_0x2ece49[_0x10b4d4(0x2711)][_0x10b4d4(0x165e)]=_0x2ece49['customField'][_0x10b4d4(0x1802)]),_0x470b1d[_0x10b4d4(0x745)]['save'](_0x2ece49[_0x10b4d4(0x2711)])[_0x10b4d4(0x2945)][_0x10b4d4(0x146b)](function(_0x471922){const _0x349cf0=_0x10b4d4;_0x2ece49[_0x349cf0(0x1fd6)][_0x349cf0(0xb3d)](_0x471922),_0x32bf3[_0x349cf0(0x1c75)]({'title':_0x3f65c0()['capitalize'](_0x3f7cd9)+'\x20properly\x20created','msg':_0x3f65c0()[_0x349cf0(0x83f)](_0x3f7cd9)+_0x349cf0(0x1386)}),_0x3399c0();})['catch'](function(_0x373f73){const _0x16669d=_0x10b4d4;console['error'](_0x373f73),_0x2ece49[_0x16669d(0xcef)]=_0x373f73[_0x16669d(0x524)][_0x16669d(0xcef)]||[{'message':_0x373f73['toString'](),'type':'api.item.save'}];});}function _0x598583(){const _0x5b8aea=_0x1acbf6;_0x2ece49['errors']=[],_0x2ece49[_0x5b8aea(0x165e)]&&(_0x2ece49[_0x5b8aea(0x2711)][_0x5b8aea(0x2912)]=_0x2ece49[_0x5b8aea(0x165e)]['id'],_0x2ece49['item'][_0x5b8aea(0x25e3)]=_0x2ece49[_0x5b8aea(0x165e)][_0x5b8aea(0x19eb)],_0x2ece49['item'][_0x5b8aea(0x165e)]=_0x2ece49['customField'][_0x5b8aea(0x1802)]),_0x470b1d[_0x5b8aea(0x745)]['update']({'id':_0x2ece49[_0x5b8aea(0x2711)]['id']},_0x2ece49['item'])[_0x5b8aea(0x2945)][_0x5b8aea(0x146b)](function(_0x41af3c){const _0x185a7d=_0x5b8aea,_0x42f433=_0x3f65c0()[_0x185a7d(0xc84)](_0x2ece49[_0x185a7d(0x1fd6)],{'id':_0x41af3c['id']});_0x42f433&&_0x3f65c0()[_0x185a7d(0x168d)](_0x42f433,_0x41af3c),_0x32bf3['success']({'title':_0x3f65c0()[_0x185a7d(0x83f)](_0x3f7cd9)+_0x185a7d(0xffe),'msg':_0x3f65c0()[_0x185a7d(0x83f)](_0x3f7cd9)+_0x185a7d(0x24db)}),_0x3399c0();})[_0x5b8aea(0x129e)](function(_0x4e7e48){const _0x302e6d=_0x5b8aea;console['error'](_0x4e7e48),_0x2ece49['errors']=_0x4e7e48[_0x302e6d(0x524)][_0x302e6d(0xcef)]||[{'message':_0x4e7e48[_0x302e6d(0xd5f)](),'type':_0x302e6d(0x1b4)}];});}function _0x277e5e(_0x553647){const _0x119972=_0x1acbf6;_0x2ece49[_0x119972(0xcef)]=[];const _0x502aee=_0x612635['confirm']()[_0x119972(0x1189)](_0x119972(0x1d64))['content']('The\x20'+_0x3f7cd9+_0x119972(0xe01))[_0x119972(0x4bd)](_0x119972(0xb22)+_0x3f65c0()['capitalize'](_0x3f7cd9))['ok']('Delete')[_0x119972(0x6c3)](_0x119972(0xcf0))[_0x119972(0x1f27)](_0x553647);_0x612635[_0x119972(0x2615)](_0x502aee)['then'](function(){const _0x3de872=_0x119972;_0x470b1d['intVtigerField'][_0x3de872(0x1fac)]({'id':_0x2ece49[_0x3de872(0x2711)]['id']})[_0x3de872(0x2945)][_0x3de872(0x146b)](function(){const _0x399055=_0x3de872;_0x3f65c0()[_0x399055(0x2640)](_0x2ece49['items'],{'id':_0x2ece49[_0x399055(0x2711)]['id']}),_0x32bf3[_0x399055(0x1c75)]({'title':_0x3f65c0()[_0x399055(0x83f)](_0x3f7cd9)+'\x20properly\x20deleted!','msg':_0x3f65c0()['capitalize'](_0x3f7cd9)+_0x399055(0x23e3)}),_0x3399c0();})['catch'](function(_0xe8298f){const _0x5f4771=_0x3de872;console[_0x5f4771(0x1980)](_0xe8298f),_0x2ece49[_0x5f4771(0xcef)]=_0xe8298f[_0x5f4771(0x524)][_0x5f4771(0xcef)]||[{'message':_0xe8298f[_0x5f4771(0xd5f)](),'type':_0x5f4771(0x1cb0)}];});},function(){});}function _0xe38533(){const _0x2e1ff0=_0x1acbf6;return _0x2ece49[_0x2e1ff0(0x2711)][_0x2e1ff0(0x97f)]!==undefined?_0x2ece49[_0x2e1ff0(0x2711)][_0x2e1ff0(0x97f)]:_0x2e1ff0(0x1040);}function _0x3399c0(){const _0x556e43=_0x1acbf6;_0x612635[_0x556e43(0x2458)]();}}const _0x3fcfbe=_0x2c3583;;_0x5f2b5b[_0x313a4d(0x11c2)]=[_0x313a4d(0x1862),_0x313a4d(0xd08),_0x313a4d(0x10e8),'$document',_0x313a4d(0x214b),_0x313a4d(0x2690),_0x313a4d(0x15b9),_0x313a4d(0x247f),_0x313a4d(0x1fe4),_0x313a4d(0xa87),'vtigerAccount',_0x313a4d(0x1366)];function _0x5f2b5b(_0x1a8a79,_0x55e4ee,_0x117ad7,_0x524202,_0x408bcb,_0x1eacab,_0x491675,_0x5a7fac,_0x10ab13,_0x4546ee,_0x418656,_0x33265b){const _0x133ddc=_0x313a4d,_0x628dd7=this;_0x628dd7[_0x133ddc(0x2321)]=_0x4546ee['getCurrentUser'](),_0x628dd7[_0x133ddc(0x2690)]=_0x1eacab,_0x628dd7[_0x133ddc(0x15b9)]=_0x491675,_0x628dd7[_0x133ddc(0x2251)]=_0x628dd7['setting'][_0x133ddc(0x976)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x628dd7[_0x133ddc(0x1002)]=_0x55e4ee[_0x133ddc(0x2414)]()+_0x133ddc(0xb0e)+_0x55e4ee[_0x133ddc(0x148e)](),_0x628dd7[_0x133ddc(0xfc2)]=_0x418656||_0x1a8a79[_0x133ddc(0x16a)][_0x133ddc(0xfc2)]||{},_0x628dd7[_0x133ddc(0x1366)]=_0x33265b&&_0x33265b[_0x133ddc(0x51c)]==0x1?_0x33265b['rows'][0x0]:null,_0x628dd7[_0x133ddc(0x2514)]=_0x4546ee['parseCrudPermissions'](_0x628dd7[_0x133ddc(0x1366)]?_0x628dd7[_0x133ddc(0x1366)][_0x133ddc(0x2514)]:null),_0x628dd7[_0x133ddc(0x855)]={},_0x628dd7['selectedTab']=_0x1a8a79[_0x133ddc(0x16a)][_0x133ddc(0x13a3)]||0x0,_0x628dd7['alert']=_0x10ab13['info'],_0x628dd7[_0x133ddc(0x1b19)]=_0x51111f,_0x628dd7['saveVtigerAccount']=_0x3d439a;function _0x51111f(){const _0x558e89=_0x133ddc;_0x1a8a79['go'](_0x558e89(0x217b),{},{'reload':_0x558e89(0x217b)});}function _0x3d439a(){const _0x131c3d=_0x133ddc;_0x5a7fac['intVtigerAccount'][_0x131c3d(0x18e1)]({'id':_0x628dd7['vtigerAccount']['id']},_0x628dd7[_0x131c3d(0xfc2)])[_0x131c3d(0x2945)][_0x131c3d(0x146b)](function(){const _0x32461a=_0x131c3d;_0x10ab13[_0x32461a(0x1c75)]({'title':_0x32461a(0x7b6),'msg':_0x628dd7['vtigerAccount'][_0x32461a(0x19eb)]?_0x628dd7[_0x32461a(0xfc2)][_0x32461a(0x19eb)]+'\x20has\x20been\x20updated!':''});})[_0x131c3d(0x129e)](function(_0x16104e){const _0x1860a3=_0x131c3d;_0x10ab13[_0x1860a3(0x1980)]({'title':_0x16104e[_0x1860a3(0x107b)]?'API:'+_0x16104e[_0x1860a3(0x107b)]+'\x20-\x20'+_0x16104e['statusText']:_0x1860a3(0x153f),'msg':_0x16104e[_0x1860a3(0x524)]?JSON[_0x1860a3(0x10bb)](_0x16104e[_0x1860a3(0x524)]):_0x16104e['toString']()});});}}const _0x38fed7=_0x5f2b5b;;const _0x271e9e=_0x4acfac['p']+_0x313a4d(0x1512);;_0xa8f02f[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),'$window',_0x313a4d(0x1862),_0x313a4d(0x15fe),_0x313a4d(0x10e8),_0x313a4d(0x4d8),_0x313a4d(0x1abe),'$translate',_0x313a4d(0x148d),_0x313a4d(0x26b6),_0x313a4d(0x1366),_0x313a4d(0x247f),_0x313a4d(0x216c),_0x313a4d(0x1fe4),'Auth',_0x313a4d(0x2690),_0x313a4d(0x15b9)];function _0xa8f02f(_0x18a5be,_0x3959fa,_0x1a8bf6,_0x145f7b,_0x43f9ed,_0x520d72,_0x40ddb7,_0x28edfb,_0x5ae311,_0x3c3f37,_0x257210,_0x6ffd09,_0x32caab,_0x3f5504,_0x10cc2a,_0x5ac4fc,_0x592bbd){const _0xb5b610=_0x313a4d,_0x2220ed=this;_0x2220ed[_0xb5b610(0x2690)]=_0x5ac4fc,_0x2220ed['setting']=_0x592bbd,_0x2220ed[_0xb5b610(0x2321)]=_0x10cc2a['getCurrentUser'](),_0x2220ed['vtigerAccounts']=_0x5ae311||{'count':0x0,'rows':[]},_0x2220ed[_0xb5b610(0x26b6)]=_0x3c3f37,_0x2220ed['userProfileSection']=_0x257210&&_0x257210[_0xb5b610(0x51c)]==0x1?_0x257210['rows'][0x0]:null,_0x2220ed[_0xb5b610(0x2514)]=_0x10cc2a[_0xb5b610(0xe60)](_0x2220ed[_0xb5b610(0x1366)]?_0x2220ed['userProfileSection'][_0xb5b610(0x2514)]:null),_0x2220ed[_0xb5b610(0x768)]='vtigerAccounts',_0x2220ed[_0xb5b610(0x216a)]='',_0x2220ed[_0xb5b610(0x214f)]=null,_0x2220ed[_0xb5b610(0x1ff4)]=[],_0x2220ed[_0xb5b610(0x1a56)]={'fields':_0xb5b610(0x14c4),'limit':0xa,'page':0x1},_0x2220ed[_0xb5b610(0x23f9)]=_0x4835bc,_0x2220ed[_0xb5b610(0x1e60)]=_0x456867,_0x2220ed[_0xb5b610(0xf0a)]=_0x1f9cb0,_0x2220ed[_0xb5b610(0x1c75)]=_0xc147ef,_0x2220ed[_0xb5b610(0x27dc)]=_0x10cbc0,_0x2220ed[_0xb5b610(0x24bd)]=_0x316ef4,_0x2220ed[_0xb5b610(0xe31)]=_0x2278f9,_0x2220ed[_0xb5b610(0x171b)]=_0x2cf76a,_0x2220ed['deleteSelectedVtigerAccounts']=_0x96c9c,_0x2220ed[_0xb5b610(0x1374)]=_0x2e3f8e,_0x2220ed['selectAllVtigerAccounts']=_0x91e6ee;function _0x4835bc(_0x5b8054){const _0x598562=_0xb5b610;_0x1a8bf6['go'](_0x598562(0xccd),{'id':_0x5b8054['id'],'vtigerAccount':_0x5b8054,'crudPermissions':_0x2220ed[_0x598562(0x2514)]});}function _0x456867(_0x5b3437){const _0x4ee5a3=_0xb5b610;return _0x6ffd09[_0x4ee5a3(0xf8d)][_0x4ee5a3(0x12ff)]({'id':_0x5b3437['id'],'test':!![]})[_0x4ee5a3(0x2945)][_0x4ee5a3(0x146b)](function(){const _0x64748e=_0x4ee5a3;_0x3f5504[_0x64748e(0x1c75)]({'title':_0x64748e(0x9ab),'msg':_0x64748e(0x1893)});})[_0x4ee5a3(0x129e)](function(_0x214beb){const _0x228be4=_0x4ee5a3;_0x3f5504[_0x228be4(0x1980)]({'title':_0x228be4(0x9ab),'msg':_0x214beb[_0x228be4(0x524)]?_0x214beb[_0x228be4(0x524)][_0x228be4(0x7fd)]?_0x214beb[_0x228be4(0x524)]['message']:JSON['stringify'](_0x214beb[_0x228be4(0x524)]):_0x214beb[_0x228be4(0xd5f)]()});});}function _0x1f9cb0(_0x32b158,_0x16a657){const _0x580c48=_0xb5b610,_0x148265=_0x43f9ed[_0x580c48(0x1e8a)]()[_0x580c48(0x1189)](_0x580c48(0xdb2)+_0x3f65c0()[_0x580c48(0x20d1)](_0x580c48(0xfc2))+'?')[_0x580c48(0x1cbe)](_0x580c48(0x16d3)+(_0x32b158[_0x580c48(0x19eb)]||_0x580c48(0xfc2))+_0x580c48(0x252f)+_0x580c48(0xe01))[_0x580c48(0x4bd)](_0x580c48(0x2708))[_0x580c48(0x1f27)](_0x16a657)['ok']('OK')[_0x580c48(0x6c3)](_0x580c48(0x39a));_0x43f9ed[_0x580c48(0x2615)](_0x148265)[_0x580c48(0x146b)](function(){_0x2278f9(_0x32b158);},function(){const _0x44e34c=_0x580c48;console['log'](_0x44e34c(0x39a));});}let _0x37fa68=!![],_0x3af994=0x1;_0x18a5be[_0xb5b610(0x21e8)]('vm.query.filter',function(_0x1c9442,_0x25f571){const _0x22666b=_0xb5b610;_0x37fa68?_0x40ddb7(function(){_0x37fa68=![];}):(!_0x25f571&&(_0x3af994=_0x2220ed[_0x22666b(0x1a56)][_0x22666b(0x844)]),_0x1c9442!==_0x25f571&&(_0x2220ed[_0x22666b(0x1a56)][_0x22666b(0x844)]=0x1),!_0x1c9442&&(_0x2220ed[_0x22666b(0x1a56)][_0x22666b(0x844)]=_0x3af994),_0x2220ed['getVtigerAccounts']());});function _0xc147ef(_0x2233ac){const _0x597c3f=_0xb5b610;_0x2220ed[_0x597c3f(0x148d)]=_0x2233ac||{'count':0x0,'rows':[]};}function _0x10cbc0(){const _0x14ec43=_0xb5b610;_0x2220ed['query']['offset']=(_0x2220ed[_0x14ec43(0x1a56)][_0x14ec43(0x844)]-0x1)*_0x2220ed['query']['limit'],_0x10cc2a[_0x14ec43(0x23e0)](_0x14ec43(0x174b))?_0x2220ed[_0x14ec43(0xb9c)]=_0x6ffd09[_0x14ec43(0xf8d)][_0x14ec43(0x16b4)](_0x2220ed['query'],_0xc147ef)[_0x14ec43(0x2945)]:(_0x2220ed['query']['id']=_0x2220ed[_0x14ec43(0x26b6)]['id'],_0x2220ed[_0x14ec43(0x1a56)][_0x14ec43(0x2146)]='VtigerAccounts',_0x2220ed['promise']=_0x6ffd09[_0x14ec43(0x26b6)][_0x14ec43(0x158f)](_0x2220ed[_0x14ec43(0x1a56)],_0xc147ef)[_0x14ec43(0x2945)]);}function _0x316ef4(_0x342ac7,_0x26fc2e){const _0x5b560c=_0xb5b610;_0x43f9ed[_0x5b560c(0x2615)]({'controller':_0x5b560c(0xe59),'controllerAs':'vm','templateUrl':_0x271e9e,'parent':angular[_0x5b560c(0x1853)](_0x520d72['body']),'targetEvent':_0x342ac7,'clickOutsideToClose':!![],'locals':{'vtigerAccount':_0x26fc2e,'vtigerAccounts':_0x2220ed[_0x5b560c(0x148d)][_0x5b560c(0x19c7)],'license':_0x2220ed['license'],'setting':_0x2220ed['setting'],'crudPermissions':_0x2220ed[_0x5b560c(0x2514)]}});}function _0x2278f9(_0x7c040c){const _0xff4d85=_0xb5b610;_0x6ffd09['intVtigerAccount'][_0xff4d85(0x1fac)]({'id':_0x7c040c['id']})[_0xff4d85(0x2945)][_0xff4d85(0x146b)](function(){const _0x1dd3c6=_0xff4d85;_0x3f65c0()['remove'](_0x2220ed[_0x1dd3c6(0x148d)][_0x1dd3c6(0x19c7)],{'id':_0x7c040c['id']}),_0x2220ed[_0x1dd3c6(0x148d)][_0x1dd3c6(0x51c)]-=0x1,!_0x2220ed['vtigerAccounts']['rows'][_0x1dd3c6(0x402)]&&_0x2220ed[_0x1dd3c6(0x27dc)](),_0x3f5504[_0x1dd3c6(0x1c75)]({'title':_0x3f65c0()[_0x1dd3c6(0x20d1)]('VtigerAccount')+_0x1dd3c6(0x201c),'msg':_0x7c040c[_0x1dd3c6(0x19eb)]?_0x7c040c[_0x1dd3c6(0x19eb)]+_0x1dd3c6(0x23e3):''});})[_0xff4d85(0x129e)](function(_0x4b2802){const _0x256ed5=_0xff4d85;if(_0x4b2802[_0x256ed5(0x524)]&&_0x4b2802[_0x256ed5(0x524)][_0x256ed5(0xcef)]&&_0x4b2802['data'][_0x256ed5(0xcef)][_0x256ed5(0x402)]){_0x2220ed[_0x256ed5(0xcef)]=_0x4b2802[_0x256ed5(0x524)][_0x256ed5(0xcef)]||[{'message':_0x4b2802[_0x256ed5(0xd5f)](),'type':'SYSTEM:DELETEintVtigerAccount'}];for(let _0xa87f4d=0x0;_0xa87f4d<_0x4b2802[_0x256ed5(0x524)][_0x256ed5(0xcef)]['length'];_0xa87f4d++){_0x3f5504[_0x256ed5(0x1980)]({'title':_0x4b2802['data'][_0x256ed5(0xcef)][_0xa87f4d][_0x256ed5(0x1142)],'msg':_0x4b2802[_0x256ed5(0x524)][_0x256ed5(0xcef)][_0xa87f4d][_0x256ed5(0x7fd)]});}}else _0x3f5504['error']({'title':_0x4b2802[_0x256ed5(0x107b)]?_0x256ed5(0x262a)+_0x4b2802[_0x256ed5(0x107b)]+_0x256ed5(0x1315)+_0x4b2802[_0x256ed5(0x167f)]:'SYSTEM:DELETEintVtigerAccount','msg':_0x4b2802[_0x256ed5(0x524)]?JSON[_0x256ed5(0x10bb)](_0x4b2802[_0x256ed5(0x524)][_0x256ed5(0x7fd)]):_0x4b2802[_0x256ed5(0x7fd)]||_0x4b2802[_0x256ed5(0xd5f)]()});});}function _0x2cf76a(){const _0x5ac266=_0xb5b610,_0x490b1a=angular[_0x5ac266(0x235a)](_0x2220ed['selectedVtigerAccounts']);return _0x2220ed[_0x5ac266(0x1ff4)]=[],_0x490b1a;}function _0x96c9c(_0x44cb92){const _0x8f184e=_0xb5b610,_0x3c939a=_0x43f9ed[_0x8f184e(0x1e8a)]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20vtigerAccounts?')[_0x8f184e(0x1cbe)](''+_0x2220ed[_0x8f184e(0x1ff4)][_0x8f184e(0x402)]+_0x8f184e(0x2452)+'\x20will\x20be\x20deleted.')[_0x8f184e(0x4bd)](_0x8f184e(0xd3e))['targetEvent'](_0x44cb92)['ok']('OK')[_0x8f184e(0x6c3)](_0x8f184e(0x39a));_0x43f9ed['show'](_0x3c939a)[_0x8f184e(0x146b)](function(){const _0x2449b0=_0x8f184e;_0x2220ed[_0x2449b0(0x1ff4)][_0x2449b0(0x1df5)](function(_0x8faad4){_0x2278f9(_0x8faad4);}),_0x2220ed[_0x2449b0(0x1ff4)]=[];});}function _0x2e3f8e(){const _0x5f5add=_0xb5b610;_0x2220ed[_0x5f5add(0x1ff4)]=[];}function _0x91e6ee(){const _0x171a69=_0xb5b610;_0x2220ed[_0x171a69(0x1ff4)]=_0x2220ed[_0x171a69(0x148d)][_0x171a69(0x19c7)];}}const _0x526c0e=_0xa8f02f;;_0x398340['$inject']=['$scope',_0x313a4d(0x1862),_0x313a4d(0xd08),_0x313a4d(0x10e8),'$q',_0x313a4d(0x214b),_0x313a4d(0x1fe4),_0x313a4d(0x988),_0x313a4d(0x4f5),_0x313a4d(0x247f),'Auth','license',_0x313a4d(0x15b9),'crudPermissions'];function _0x398340(_0x43ddb0,_0x2cf90d,_0x4ba171,_0x3a8796,_0xadb6b2,_0x1a8942,_0x1cf3b1,_0x4a48bd,_0x44e01b,_0x150c29,_0x276b58,_0x5f47c0,_0x4b7429,_0x4bcf15){const _0x24d76c=_0x313a4d,_0x15711c=this;_0x15711c[_0x24d76c(0x2321)]=_0x276b58[_0x24d76c(0xb12)](),_0x15711c[_0x24d76c(0xcef)]=[],_0x15711c[_0x24d76c(0x15b9)]=_0x4b7429,_0x15711c[_0x24d76c(0x2690)]=_0x5f47c0,_0x15711c[_0x24d76c(0x2514)]=_0x4bcf15,_0x15711c[_0x24d76c(0x855)]={},_0x15711c[_0x24d76c(0x2251)]=_0x15711c[_0x24d76c(0x15b9)]&&_0x15711c['setting'][_0x24d76c(0x976)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x15711c[_0x24d76c(0x1189)]=_0x24d76c(0x2f7),_0x15711c[_0x24d76c(0x4f5)]=angular[_0x24d76c(0x235a)](_0x44e01b),_0x15711c['zendeskAccounts']=_0x4a48bd,_0x15711c[_0x24d76c(0x1ec0)]=![];!_0x15711c['zendeskAccount']&&(_0x15711c[_0x24d76c(0x4f5)]={'type':_0x24d76c(0xb4b),'authType':'password','serverUrl':_0x4ba171[_0x24d76c(0x2414)]()+_0x24d76c(0xb0e)+_0x4ba171[_0x24d76c(0x148e)]()+(_0x4ba171[_0x24d76c(0x1553)]()?':'+_0x4ba171['port']():'')},_0x15711c[_0x24d76c(0x1189)]=_0x24d76c(0x1b5d),_0x15711c[_0x24d76c(0x1ec0)]=!![]);_0x15711c['addNewZendeskAccount']=_0x120fce,_0x15711c[_0x24d76c(0x295)]=_0x134fed,_0x15711c['deleteZendeskAccount']=_0x38bb90,_0x15711c[_0x24d76c(0xe73)]=_0x16c4ae,_0x15711c['closeDialog']=_0x55fe28;function _0x120fce(){const _0xeafc68=_0x24d76c;_0x15711c['errors']=[],_0x150c29[_0xeafc68(0x2686)][_0xeafc68(0x1e3)](_0x15711c[_0xeafc68(0x4f5)])[_0xeafc68(0x2945)][_0xeafc68(0x146b)](function(_0x3ed272){const _0x9a232f=_0xeafc68;_0x15711c[_0x9a232f(0x988)][_0x9a232f(0xb3d)](_0x3ed272[_0x9a232f(0x2488)]()),_0x1cf3b1[_0x9a232f(0x1c75)]({'title':_0x9a232f(0xdf2),'msg':_0x15711c['zendeskAccount'][_0x9a232f(0x19eb)]?_0x15711c[_0x9a232f(0x4f5)]['name']+_0x9a232f(0x1386):''}),_0x55fe28(_0x3ed272);})[_0xeafc68(0x129e)](function(_0x585713){const _0x47edbd=_0xeafc68;if(_0x585713['data']&&_0x585713[_0x47edbd(0x524)]['errors']&&_0x585713[_0x47edbd(0x524)]['errors'][_0x47edbd(0x402)]){_0x15711c[_0x47edbd(0xcef)]=_0x585713['data'][_0x47edbd(0xcef)]||[{'message':_0x585713[_0x47edbd(0xd5f)](),'type':_0x47edbd(0x1f41)}];for(let _0x2f84dc=0x0;_0x2f84dc<_0x585713['data'][_0x47edbd(0xcef)][_0x47edbd(0x402)];_0x2f84dc+=0x1){_0x1cf3b1['error']({'title':_0x585713[_0x47edbd(0x524)][_0x47edbd(0xcef)][_0x2f84dc][_0x47edbd(0x1142)],'msg':_0x585713['data'][_0x47edbd(0xcef)][_0x2f84dc][_0x47edbd(0x7fd)]});}}else _0x1cf3b1['error']({'title':_0x585713[_0x47edbd(0x107b)]?'API:'+_0x585713[_0x47edbd(0x107b)]+'\x20-\x20'+_0x585713[_0x47edbd(0x167f)]:_0x47edbd(0x1f41),'msg':_0x585713[_0x47edbd(0x524)]?JSON[_0x47edbd(0x10bb)](_0x585713[_0x47edbd(0x524)][_0x47edbd(0x7fd)]):_0x585713[_0x47edbd(0xd5f)]()});});}function _0x134fed(){const _0x6ed1e3=_0x24d76c;_0x15711c[_0x6ed1e3(0xcef)]=[],_0x150c29[_0x6ed1e3(0x2686)][_0x6ed1e3(0x18e1)]({'id':_0x15711c[_0x6ed1e3(0x4f5)]['id']},_0x15711c['zendeskAccount'])[_0x6ed1e3(0x2945)][_0x6ed1e3(0x146b)](function(_0x5400ca){const _0x2c7008=_0x6ed1e3,_0x1cd445=_0x3f65c0()['find'](_0x15711c['zendeskAccounts'],{'id':_0x5400ca['id']});_0x1cd445&&_0x3f65c0()[_0x2c7008(0x168d)](_0x1cd445,_0x3f65c0()[_0x2c7008(0x40e)](_0x5400ca[_0x2c7008(0x2488)](),_0x3f65c0()[_0x2c7008(0x627)](_0x1cd445))),_0x1cf3b1[_0x2c7008(0x1c75)]({'title':'ZendeskAccount\x20properly\x20saved!','msg':_0x15711c[_0x2c7008(0x4f5)][_0x2c7008(0x19eb)]?_0x15711c[_0x2c7008(0x4f5)][_0x2c7008(0x19eb)]+_0x2c7008(0x24db):''}),_0x55fe28(_0x5400ca);})['catch'](function(_0x352c3a){const _0x23491d=_0x6ed1e3;if(_0x352c3a['data']&&_0x352c3a[_0x23491d(0x524)][_0x23491d(0xcef)]&&_0x352c3a[_0x23491d(0x524)][_0x23491d(0xcef)][_0x23491d(0x402)]){_0x15711c['errors']=_0x352c3a['data'][_0x23491d(0xcef)]||[{'message':_0x352c3a['toString'](),'type':_0x23491d(0x1cfe)}];for(let _0x54f555=0x0;_0x54f555<_0x352c3a[_0x23491d(0x524)]['errors'][_0x23491d(0x402)];_0x54f555++){_0x1cf3b1[_0x23491d(0x1980)]({'title':_0x352c3a['data'][_0x23491d(0xcef)][_0x54f555][_0x23491d(0x1142)],'msg':_0x352c3a['data'][_0x23491d(0xcef)][_0x54f555][_0x23491d(0x7fd)]});}}else _0x1cf3b1['error']({'title':_0x352c3a['status']?_0x23491d(0x262a)+_0x352c3a[_0x23491d(0x107b)]+_0x23491d(0x1315)+_0x352c3a[_0x23491d(0x167f)]:_0x23491d(0x1cfe),'msg':_0x352c3a[_0x23491d(0x524)]?JSON[_0x23491d(0x10bb)](_0x352c3a['data'][_0x23491d(0x7fd)]):_0x352c3a[_0x23491d(0xd5f)]()});});}function _0x38bb90(_0xac8f6c){const _0x43e33=_0x24d76c;_0x15711c['errors']=[];const _0x205603=_0x3a8796[_0x43e33(0x1e8a)]()[_0x43e33(0x1189)](_0x43e33(0x1d64))['content'](_0x43e33(0x7cc))['ariaLabel'](_0x43e33(0x2891))['ok'](_0x43e33(0x25de))['cancel'](_0x43e33(0xcf0))[_0x43e33(0x1f27)](_0xac8f6c);_0x3a8796[_0x43e33(0x2615)](_0x205603)[_0x43e33(0x146b)](function(){const _0x266838=_0x43e33;_0x150c29['intZendeskAccount'][_0x266838(0x1fac)]({'id':_0x15711c['zendeskAccount']['id']})[_0x266838(0x2945)][_0x266838(0x146b)](function(){const _0x165385=_0x266838;_0x3f65c0()[_0x165385(0x2640)](_0x15711c[_0x165385(0x988)],{'id':_0x15711c[_0x165385(0x4f5)]['id']}),_0x1cf3b1['success']({'title':_0x165385(0xf5f),'msg':(_0x15711c[_0x165385(0x4f5)][_0x165385(0x19eb)]||_0x165385(0x4f5))+'\x20has\x20been\x20deleted!'}),_0x55fe28(_0x15711c[_0x165385(0x4f5)]);})[_0x266838(0x129e)](function(_0x1fc106){const _0x4333e2=_0x266838;if(_0x1fc106[_0x4333e2(0x524)]&&_0x1fc106['data'][_0x4333e2(0xcef)]&&_0x1fc106['data'][_0x4333e2(0xcef)][_0x4333e2(0x402)]){_0x15711c[_0x4333e2(0xcef)]=_0x1fc106[_0x4333e2(0x524)][_0x4333e2(0xcef)]||[{'message':_0x1fc106[_0x4333e2(0xd5f)](),'type':_0x4333e2(0x248a)}];for(let _0x61f099=0x0;_0x61f099<_0x1fc106[_0x4333e2(0x524)][_0x4333e2(0xcef)]['length'];_0x61f099++){_0x1cf3b1['error']({'title':_0x1fc106[_0x4333e2(0x524)]['errors'][_0x61f099][_0x4333e2(0x1142)],'msg':_0x1fc106[_0x4333e2(0x524)][_0x4333e2(0xcef)][_0x61f099]['message']});}}else _0x1cf3b1[_0x4333e2(0x1980)]({'title':_0x1fc106[_0x4333e2(0x107b)]?_0x4333e2(0x262a)+_0x1fc106['status']+_0x4333e2(0x1315)+_0x1fc106[_0x4333e2(0x167f)]:'api.intZendeskAccount.delete','msg':_0x1fc106[_0x4333e2(0x524)]?JSON['stringify'](_0x1fc106[_0x4333e2(0x524)][_0x4333e2(0x7fd)]):_0x1fc106['message']||_0x1fc106[_0x4333e2(0xd5f)]()});});},function(){});}function _0x16c4ae(_0x115a5b){return _0x115a5b===null?undefined:new Date(_0x115a5b);}function _0x55fe28(_0x54922e){const _0x26dafe=_0x24d76c;_0x3a8796[_0x26dafe(0x2458)](_0x54922e);}}const _0x261080=_0x398340;;_0x2deaab[_0x313a4d(0x11c2)]=['$scope',_0x313a4d(0x1862),_0x313a4d(0xd08),_0x313a4d(0x10e8),_0x313a4d(0x1fe4),'configuration',_0x313a4d(0x1fd6),_0x313a4d(0x2711),_0x313a4d(0x1f8e),_0x313a4d(0x1142),'api',_0x313a4d(0xa87),'crudPermissions'];function _0x2deaab(_0xf60782,_0x19e9ac,_0x5bb552,_0x590c13,_0x4d4b16,_0x45568e,_0x1d3f34,_0x436136,_0x54ff99,_0x5a59b1,_0x22a7ee,_0x38cae0,_0x3ee4ce){const _0x1744c7=_0x313a4d,_0x12a75b=this;_0x12a75b[_0x1744c7(0x2321)]=_0x38cae0[_0x1744c7(0xb12)](),_0x12a75b['errors']=[],_0x12a75b[_0x1744c7(0x1189)]=_0x1744c7(0x28ec)+_0x3f65c0()[_0x1744c7(0xd39)](_0x5a59b1),_0x12a75b[_0x1744c7(0x2711)]=angular['copy'](_0x436136),_0x12a75b[_0x1744c7(0x1fd6)]=_0x1d3f34,_0x12a75b[_0x1744c7(0x1142)]=_0x5a59b1,_0x12a75b[_0x1744c7(0x2514)]=_0x3ee4ce,_0x12a75b[_0x1744c7(0x23cd)]=![];!_0x12a75b[_0x1744c7(0x2711)]&&(_0x12a75b[_0x1744c7(0x2711)]={'type':_0x1744c7(0x1f23)},_0x12a75b[_0x1744c7(0x2711)][_0x3f65c0()[_0x1744c7(0x83f)](_0x5a59b1)+'Id']=_0x45568e['id'],_0x12a75b[_0x1744c7(0x1189)]=_0x1744c7(0xe78)+_0x3f65c0()[_0x1744c7(0xd39)](_0x5a59b1),_0x12a75b[_0x1744c7(0x23cd)]=!![]);_0x12a75b[_0x1744c7(0x1e65)]=_0x5975eb,_0x12a75b[_0x1744c7(0x150e)]=_0x4c4e87,_0x12a75b[_0x1744c7(0xbaf)]=_0x3a9fcb,_0x12a75b[_0x1744c7(0x21b1)]=_0x301bfc,_0x12a75b[_0x1744c7(0x13f3)]=_0x58df93,_0x22a7ee['variable'][_0x1744c7(0x16b4)]({'nolimit':!![]})[_0x1744c7(0x2945)]['then'](function(_0x1ea9b2){const _0x4012b8=_0x1744c7;return _0x12a75b[_0x4012b8(0x85b)]=_0x1ea9b2[_0x4012b8(0x19c7)]?_0x1ea9b2[_0x4012b8(0x19c7)]:[],_0x22a7ee['voiceAgentReport'][_0x4012b8(0x1ea2)]()[_0x4012b8(0x2945)];})[_0x1744c7(0x146b)](function(_0x5699b0){const _0x5d37d0=_0x1744c7;return _0x12a75b[_0x5d37d0(0x1c8a)]=_0x3f65c0()[_0x5d37d0(0xa62)](_0x3f65c0()['keys'](_0x5699b0),['$promise',_0x5d37d0(0x26f2),_0x5d37d0(0xc68),_0x5d37d0(0x144f),_0x5d37d0(0xc3b)]),_0x12a75b['voiceAgentReportColumns']['push'](_0x5d37d0(0x643)),_0x22a7ee[_0x5d37d0(0x160)][_0x5d37d0(0x1ea2)]()[_0x5d37d0(0x2945)];})[_0x1744c7(0x146b)](function(_0xacb6df){const _0x2a5a80=_0x1744c7;_0x12a75b[_0x2a5a80(0x164b)]=_0x3f65c0()['difference'](_0x3f65c0()['keys'](_0xacb6df),['$promise',_0x2a5a80(0x26f2),_0x2a5a80(0xc68),_0x2a5a80(0x144f),_0x2a5a80(0xc3b)]),_0x12a75b['voiceDialReportColumns']['push'](_0x2a5a80(0x643));})['catch'](function(_0x19af65){const _0x19c3ca=_0x1744c7;_0x4d4b16['error']({'title':_0x19af65[_0x19c3ca(0x107b)]?_0x19c3ca(0x262a)+_0x19af65['status']+_0x19c3ca(0x1315)+_0x19af65['statusText']:_0x19c3ca(0x502),'msg':_0x19af65[_0x19c3ca(0x524)]?JSON[_0x19c3ca(0x10bb)](_0x19af65[_0x19c3ca(0x524)]):_0x19af65[_0x19c3ca(0xd5f)]()});}),_0x22a7ee['intZendeskAccount']['getFields']({'id':_0x54ff99['id'],'ticketType':_0x45568e[_0x1744c7(0x21be)]?_0x45568e[_0x1744c7(0x21be)]:undefined})[_0x1744c7(0x2945)][_0x1744c7(0x146b)](function(_0x208a40){const _0x229336=_0x1744c7;_0x12a75b[_0x229336(0x822)]=!![],_0x12a75b[_0x229336(0x2867)]=_0x208a40[_0x229336(0x19c7)]?_0x208a40[_0x229336(0x19c7)]:[],_0x12a75b[_0x229336(0x2711)][_0x229336(0x2912)]&&(_0x12a75b[_0x229336(0x165e)]=_0x3f65c0()[_0x229336(0xc84)](_0x12a75b['fields'],{'id':_0x12a75b[_0x229336(0x2711)][_0x229336(0x2912)]}));})[_0x1744c7(0x129e)](function(_0x8f06ea){const _0x3d6ae8=_0x1744c7;_0x12a75b[_0x3d6ae8(0x822)]=![],console[_0x3d6ae8(0x1980)](_0x8f06ea);});function _0x5975eb(){const _0x330365=_0x1744c7;_0x12a75b[_0x330365(0xcef)]=[],_0x12a75b[_0x330365(0x165e)]&&(_0x12a75b[_0x330365(0x2711)]['idField']=_0x12a75b[_0x330365(0x165e)]['id'],_0x12a75b[_0x330365(0x2711)][_0x330365(0x25e3)]=_0x12a75b[_0x330365(0x165e)]['name'],_0x12a75b[_0x330365(0x2711)]['customField']=_0x12a75b[_0x330365(0x165e)]['custom']),_0x22a7ee[_0x330365(0xf5d)][_0x330365(0x1e3)](_0x12a75b['item'])[_0x330365(0x2945)]['then'](function(_0x2e6e0b){const _0xa348b0=_0x330365;_0x12a75b['items'][_0xa348b0(0xb3d)](_0x2e6e0b),_0x4d4b16[_0xa348b0(0x1c75)]({'title':_0x3f65c0()[_0xa348b0(0x83f)](_0x5a59b1)+'\x20properly\x20created','msg':_0x3f65c0()[_0xa348b0(0x83f)](_0x5a59b1)+'\x20has\x20been\x20created!'}),_0x58df93();})[_0x330365(0x129e)](function(_0x3ffd30){const _0x87e8c8=_0x330365;console['error'](_0x3ffd30),_0x12a75b[_0x87e8c8(0xcef)]=_0x3ffd30['data'][_0x87e8c8(0xcef)]||[{'message':_0x3ffd30[_0x87e8c8(0xd5f)](),'type':_0x87e8c8(0x1ec4)}];});}function _0x4c4e87(){const _0x5cc55e=_0x1744c7;_0x12a75b[_0x5cc55e(0xcef)]=[],_0x12a75b[_0x5cc55e(0x165e)]&&(_0x12a75b['item'][_0x5cc55e(0x2912)]=_0x12a75b['customField']['id'],_0x12a75b[_0x5cc55e(0x2711)][_0x5cc55e(0x25e3)]=_0x12a75b['customField'][_0x5cc55e(0x19eb)],_0x12a75b['item']['customField']=_0x12a75b[_0x5cc55e(0x165e)][_0x5cc55e(0x1802)]),_0x22a7ee['intZendeskField'][_0x5cc55e(0x18e1)]({'id':_0x12a75b['item']['id']},_0x12a75b[_0x5cc55e(0x2711)])[_0x5cc55e(0x2945)][_0x5cc55e(0x146b)](function(_0x288c3e){const _0x2edd67=_0x5cc55e,_0x1a97ae=_0x3f65c0()['find'](_0x12a75b['items'],{'id':_0x288c3e['id']});_0x1a97ae&&_0x3f65c0()[_0x2edd67(0x168d)](_0x1a97ae,_0x288c3e),_0x4d4b16['success']({'title':_0x3f65c0()['capitalize'](_0x5a59b1)+_0x2edd67(0xffe),'msg':_0x3f65c0()[_0x2edd67(0x83f)](_0x5a59b1)+_0x2edd67(0x24db)}),_0x58df93();})[_0x5cc55e(0x129e)](function(_0x462b28){const _0x34bbb0=_0x5cc55e;console[_0x34bbb0(0x1980)](_0x462b28),_0x12a75b[_0x34bbb0(0xcef)]=_0x462b28[_0x34bbb0(0x524)]['errors']||[{'message':_0x462b28[_0x34bbb0(0xd5f)](),'type':_0x34bbb0(0x1b4)}];});}function _0x3a9fcb(_0x59cb64){const _0x539f97=_0x1744c7;_0x12a75b[_0x539f97(0xcef)]=[];const _0x5adad5=_0x590c13[_0x539f97(0x1e8a)]()[_0x539f97(0x1189)](_0x539f97(0x1d64))[_0x539f97(0x80f)](_0x539f97(0xe57)+_0x5a59b1+'\x20will\x20be\x20deleted.')[_0x539f97(0x4bd)](_0x539f97(0xb22)+_0x3f65c0()[_0x539f97(0x83f)](_0x5a59b1))['ok']('Delete')[_0x539f97(0x6c3)](_0x539f97(0xcf0))[_0x539f97(0x1f27)](_0x59cb64);_0x590c13[_0x539f97(0x2615)](_0x5adad5)[_0x539f97(0x146b)](function(){const _0x37887a=_0x539f97;_0x22a7ee[_0x37887a(0xf5d)][_0x37887a(0x1fac)]({'id':_0x12a75b[_0x37887a(0x2711)]['id']})[_0x37887a(0x2945)]['then'](function(){const _0xc1f549=_0x37887a;_0x3f65c0()[_0xc1f549(0x2640)](_0x12a75b['items'],{'id':_0x12a75b[_0xc1f549(0x2711)]['id']}),_0x4d4b16[_0xc1f549(0x1c75)]({'title':_0x3f65c0()[_0xc1f549(0x83f)](_0x5a59b1)+_0xc1f549(0x1e6c),'msg':_0x3f65c0()[_0xc1f549(0x83f)](_0x5a59b1)+_0xc1f549(0x23e3)}),_0x58df93();})['catch'](function(_0x5b7d4){const _0x35aed5=_0x37887a;console['error'](_0x5b7d4),_0x12a75b[_0x35aed5(0xcef)]=_0x5b7d4['data'][_0x35aed5(0xcef)]||[{'message':_0x5b7d4[_0x35aed5(0xd5f)](),'type':'api.item.delete'}];});},function(){});}function _0x301bfc(){const _0x14bb40=_0x1744c7;return _0x12a75b['item']['variableName']!==undefined?_0x12a75b['item'][_0x14bb40(0x97f)]:_0x14bb40(0x1040);}function _0x58df93(){const _0x508995=_0x1744c7;_0x590c13[_0x508995(0x2458)]();}}const _0x51b098=_0x2deaab;;_0x39e2fc[_0x313a4d(0x11c2)]=['$state',_0x313a4d(0xd08),'$mdDialog',_0x313a4d(0x4d8),_0x313a4d(0x214b),_0x313a4d(0x2690),_0x313a4d(0x15b9),_0x313a4d(0x247f),_0x313a4d(0x1fe4),_0x313a4d(0xa87),_0x313a4d(0x4f5),_0x313a4d(0x1366)];function _0x39e2fc(_0x51d9ef,_0x4ffe18,_0x55342f,_0x1636d7,_0x21c7ea,_0x337f22,_0x40f627,_0x2ad8ea,_0x9ffada,_0x4fcd0b,_0x4ba1de,_0x50f906){const _0x23596a=_0x313a4d,_0x58bc53=this;_0x58bc53['currentUser']=_0x4fcd0b[_0x23596a(0xb12)](),_0x58bc53[_0x23596a(0x2690)]=_0x337f22,_0x58bc53['setting']=_0x40f627,_0x58bc53['passwordPattern']=_0x58bc53[_0x23596a(0x15b9)]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x58bc53[_0x23596a(0x1002)]=_0x4ffe18['protocol']()+'://'+_0x4ffe18[_0x23596a(0x148e)](),_0x58bc53[_0x23596a(0x4f5)]=_0x4ba1de||_0x51d9ef[_0x23596a(0x16a)][_0x23596a(0x4f5)]||{},_0x58bc53[_0x23596a(0x1366)]=_0x50f906&&_0x50f906[_0x23596a(0x51c)]==0x1?_0x50f906['rows'][0x0]:null,_0x58bc53[_0x23596a(0x2514)]=_0x4fcd0b['parseCrudPermissions'](_0x58bc53[_0x23596a(0x1366)]?_0x58bc53[_0x23596a(0x1366)][_0x23596a(0x2514)]:null),_0x58bc53[_0x23596a(0x855)]={},_0x58bc53[_0x23596a(0x1b09)]=_0x51d9ef[_0x23596a(0x16a)][_0x23596a(0x13a3)]||0x0,_0x58bc53['alert']=_0x9ffada[_0x23596a(0x271e)],_0x58bc53['gotoZendeskAccounts']=_0x43d266,_0x58bc53['saveZendeskAccount']=_0x5bdcb5;function _0x43d266(){const _0x49de94=_0x23596a;_0x51d9ef['go']('app.integrations.zendeskAccounts',{},{'reload':_0x49de94(0xbd4)});}function _0x5bdcb5(){const _0x5b72c6=_0x23596a;_0x2ad8ea['intZendeskAccount'][_0x5b72c6(0x18e1)]({'id':_0x58bc53[_0x5b72c6(0x4f5)]['id']},_0x58bc53[_0x5b72c6(0x4f5)])[_0x5b72c6(0x2945)][_0x5b72c6(0x146b)](function(){const _0x2c2c02=_0x5b72c6;_0x9ffada[_0x2c2c02(0x1c75)]({'title':'ZendeskAccount\x20updated!','msg':_0x58bc53[_0x2c2c02(0x4f5)][_0x2c2c02(0x19eb)]?_0x58bc53[_0x2c2c02(0x4f5)][_0x2c2c02(0x19eb)]+_0x2c2c02(0x6b0):''});})[_0x5b72c6(0x129e)](function(_0x46f05b){const _0x11557d=_0x5b72c6;_0x9ffada[_0x11557d(0x1980)]({'title':_0x46f05b[_0x11557d(0x107b)]?_0x11557d(0x262a)+_0x46f05b[_0x11557d(0x107b)]+_0x11557d(0x1315)+_0x46f05b['statusText']:_0x11557d(0x25c2),'msg':_0x46f05b[_0x11557d(0x524)]?JSON[_0x11557d(0x10bb)](_0x46f05b[_0x11557d(0x524)]):_0x46f05b[_0x11557d(0xd5f)]()});});}}const _0x352cce=_0x39e2fc;;const _0x50e36f=_0x4acfac['p']+'src/js/modules/main/apps/integrations/views/zendeskAccounts/edit/zendeskConfigurations/dialog.html/dialog.html';;const _0x365832=_0x4acfac['p']+_0x313a4d(0x81d);;_0x400871[_0x313a4d(0x11c2)]=[_0x313a4d(0x10e8),_0x313a4d(0x4d8),_0x313a4d(0x247f),_0x313a4d(0x1fe4),_0x313a4d(0xa87)];function _0x400871(_0x9145e6,_0x9b63a2,_0x25c879,_0x52c5cb,_0x3fe010){const _0x2b7ff1=_0x313a4d,_0x3714b6=this;_0x3714b6['currentUser']=_0x3fe010[_0x2b7ff1(0xb12)](),_0x3714b6[_0x2b7ff1(0x4f5)]={},_0x3714b6['zendeskConfiguration']={},_0x3714b6[_0x2b7ff1(0x1388)]=[],_0x3714b6[_0x2b7ff1(0x1999)]=-0x1,_0x3714b6['crudPermissions'],_0x3714b6[_0x2b7ff1(0x5aa)]=_0x2ac1ad,_0x3714b6[_0x2b7ff1(0x125b)]=_0x4a4433,_0x3714b6['createOrEditZendeskConfiguration']=_0x55dfab,_0x3714b6[_0x2b7ff1(0x1a1f)]=_0x5b0241,_0x3714b6[_0x2b7ff1(0x2323)]=[],_0x3714b6[_0x2b7ff1(0x2002)]=_0x13b34d,_0x25c879[_0x2b7ff1(0xa80)][_0x2b7ff1(0x16b4)]({'nolimit':!![],'sort':_0x2b7ff1(0x19eb)})['$promise'][_0x2b7ff1(0x146b)](function(_0x4cfe5c){const _0x3b335d=_0x2b7ff1;_0x3714b6[_0x3b335d(0x1b86)]=_0x4cfe5c[_0x3b335d(0x19c7)]?_0x4cfe5c[_0x3b335d(0x19c7)]:[];})['catch'](function(_0x2c77db){const _0x3604a4=_0x2b7ff1;_0x52c5cb[_0x3604a4(0x1980)]({'title':_0x2c77db[_0x3604a4(0x107b)]?_0x3604a4(0x262a)+_0x2c77db['status']+_0x3604a4(0x1315)+_0x2c77db[_0x3604a4(0x167f)]:_0x3604a4(0x220e),'msg':_0x2c77db[_0x3604a4(0x524)]?JSON[_0x3604a4(0x10bb)](_0x2c77db['data']):_0x2c77db['toString']()});});function _0x13b34d(){const _0x42116c=_0x2b7ff1;_0x25c879[_0x42116c(0x252c)]['setTags']({'id':_0x3714b6['zendeskConfiguration']['id'],'ids':_0x3714b6[_0x42116c(0x2323)]})[_0x42116c(0x2945)]['then'](function(){const _0x35ea43=_0x42116c;_0x52c5cb['success']({'title':_0x35ea43(0x20f8),'msg':_0x35ea43(0x23fb)});})[_0x42116c(0x129e)](function(_0x3149e0){const _0x274073=_0x42116c;_0x52c5cb[_0x274073(0x1980)]({'title':_0x3149e0[_0x274073(0x107b)]?_0x274073(0x262a)+_0x3149e0['status']+_0x274073(0x1315)+_0x3149e0[_0x274073(0x167f)]:_0x274073(0x11c3),'msg':_0x3149e0[_0x274073(0x524)]?JSON[_0x274073(0x10bb)](_0x3149e0['data']):_0x3149e0[_0x274073(0xd5f)]()});});}function _0x2ac1ad(_0x796be8,_0xb8f563){const _0x22f9a0=_0x2b7ff1;_0x3714b6['zendeskAccount']=_0x796be8,_0x3714b6[_0x22f9a0(0x2514)]=typeof _0xb8f563!==_0x22f9a0(0x2274)?_0xb8f563:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x25c879['intZendeskAccount'][_0x22f9a0(0xeb)]({'id':_0x3714b6[_0x22f9a0(0x4f5)]['id'],'sort':_0x22f9a0(0x12f2)})[_0x22f9a0(0x2945)][_0x22f9a0(0x146b)](function(_0x3a1b72){const _0x155a4c=_0x22f9a0;return _0x3714b6['zendeskConfigurations']=_0x3a1b72[_0x155a4c(0x19c7)]?_0x3a1b72[_0x155a4c(0x19c7)]:[],_0x3714b6[_0x155a4c(0x1388)][_0x155a4c(0x402)]&&_0x3714b6['getZendeskConfiguration'](0x0),_0x25c879[_0x155a4c(0x212)][_0x155a4c(0x16b4)]({'nolimit':!![],'sort':_0x155a4c(0x19eb)})[_0x155a4c(0x2945)];})[_0x22f9a0(0x146b)](function(_0x1ebf70){const _0x482621=_0x22f9a0;_0x3714b6[_0x482621(0x85b)]=_0x1ebf70[_0x482621(0x19c7)]?_0x1ebf70[_0x482621(0x19c7)]:[],_0x3714b6[_0x482621(0x80c)]=_0x3f65c0()[_0x482621(0x194)](_0x3714b6[_0x482621(0x85b)],'id');})['catch'](function(_0x25f11d){const _0x516494=_0x22f9a0;_0x52c5cb['error']({'title':_0x25f11d[_0x516494(0x107b)]?_0x516494(0x262a)+_0x25f11d[_0x516494(0x107b)]+'\x20-\x20'+_0x25f11d[_0x516494(0x167f)]:'SYSTEM:GETCONFIGURATION','msg':_0x25f11d[_0x516494(0x524)]?JSON[_0x516494(0x10bb)](_0x25f11d[_0x516494(0x524)]):_0x25f11d[_0x516494(0xd5f)]()});});}function _0x4a4433(_0xd388c6){const _0x28a1b0=_0x2b7ff1;_0x3714b6[_0x28a1b0(0x275c)]=_0x3714b6[_0x28a1b0(0x1388)][_0xd388c6],_0x3714b6[_0x28a1b0(0x1999)]=_0xd388c6,_0x25c879[_0x28a1b0(0x252c)][_0x28a1b0(0x18ee)]({'id':_0x3714b6[_0x28a1b0(0x275c)]['id']})[_0x28a1b0(0x2945)][_0x28a1b0(0x146b)](function(_0x5d337f){const _0x366df6=_0x28a1b0;return _0x3714b6[_0x366df6(0x3c8)]=_0x5d337f[_0x366df6(0x19c7)]?_0x5d337f[_0x366df6(0x19c7)]:[],_0x25c879[_0x366df6(0x252c)][_0x366df6(0xc2a)]({'id':_0x3714b6[_0x366df6(0x275c)]['id']})[_0x366df6(0x2945)];})[_0x28a1b0(0x146b)](function(_0x42c0df){const _0x52ded3=_0x28a1b0;return _0x3714b6['descriptions']=_0x42c0df[_0x52ded3(0x19c7)]?_0x42c0df[_0x52ded3(0x19c7)]:[],_0x25c879[_0x52ded3(0x252c)][_0x52ded3(0x12ff)]({'id':_0x3714b6[_0x52ded3(0x275c)]['id']})[_0x52ded3(0x2945)];})[_0x28a1b0(0x146b)](function(_0x3825d3){const _0x59827c=_0x28a1b0;_0x3714b6['fields']=_0x3825d3['rows']?_0x3825d3[_0x59827c(0x19c7)]:[];})[_0x28a1b0(0x129e)](function(_0x17e18c){const _0x3d63d3=_0x28a1b0;_0x52c5cb[_0x3d63d3(0x1980)]({'title':_0x17e18c[_0x3d63d3(0x107b)]?_0x3d63d3(0x262a)+_0x17e18c[_0x3d63d3(0x107b)]+_0x3d63d3(0x1315)+_0x17e18c[_0x3d63d3(0x167f)]:_0x3d63d3(0x6ca),'msg':_0x17e18c[_0x3d63d3(0x524)]?JSON[_0x3d63d3(0x10bb)](_0x17e18c[_0x3d63d3(0x524)]):_0x17e18c['toString']()});}),_0x25c879[_0x28a1b0(0x252c)]['getTags']({'id':_0x3714b6[_0x28a1b0(0x275c)]['id']})[_0x28a1b0(0x2945)]['then'](function(_0x3fa557){const _0x4dba71=_0x28a1b0;_0x3714b6[_0x4dba71(0x2323)]=_0x3fa557['rows']?_0x3f65c0()[_0x4dba71(0x205)](_0x3fa557[_0x4dba71(0x19c7)],'id'):[];})['catch'](function(_0x5a6a14){const _0x3b35ea=_0x28a1b0;_0x52c5cb[_0x3b35ea(0x1980)]({'title':_0x5a6a14[_0x3b35ea(0x107b)]?_0x3b35ea(0x262a)+_0x5a6a14[_0x3b35ea(0x107b)]+_0x3b35ea(0x1315)+_0x5a6a14[_0x3b35ea(0x167f)]:_0x3b35ea(0x220e),'msg':_0x5a6a14[_0x3b35ea(0x524)]?JSON['stringify'](_0x5a6a14[_0x3b35ea(0x524)]):_0x5a6a14[_0x3b35ea(0xd5f)]()});});}function _0x55dfab(_0x3c8af0,_0x1f3da3){const _0x444f0b=_0x2b7ff1;_0x9145e6[_0x444f0b(0x2615)]({'controller':_0x444f0b(0x9a9),'controllerAs':'vm','templateUrl':_0x50e36f,'parent':angular[_0x444f0b(0x1853)](_0x9b63a2[_0x444f0b(0x2586)]),'targetEvent':_0x3c8af0,'clickOutsideToClose':!![],'locals':{'zendeskConfiguration':_0x1f3da3,'zendeskConfigurations':_0x3714b6[_0x444f0b(0x1388)],'license':null,'setting':null,'crudPermissions':_0x3714b6[_0x444f0b(0x2514)]}})[_0x444f0b(0x1ec6)](function(){const _0xbac583=_0x444f0b;_0x3714b6[_0xbac583(0x125b)](0x0);});}function _0x5b0241(_0x440cba,_0x20350f){const _0x504002=_0x2b7ff1,_0x54ee94=_0x9145e6[_0x504002(0x1e8a)]()['title'](_0x504002(0x8a2))[_0x504002(0x1cbe)](_0x504002(0x16d3)+(_0x20350f[_0x504002(0x19eb)]||_0x504002(0x275c))+_0x504002(0x252f)+_0x504002(0xe01))[_0x504002(0x4bd)](_0x504002(0xc80))[_0x504002(0x1f27)](_0x440cba)['ok']('OK')[_0x504002(0x6c3)](_0x504002(0x39a));_0x9145e6['show'](_0x54ee94)[_0x504002(0x146b)](function(){const _0x155f83=_0x504002;_0x25c879[_0x155f83(0x252c)][_0x155f83(0x1fac)]({'id':_0x20350f['id']})[_0x155f83(0x2945)]['then'](function(){const _0x4201e5=_0x155f83;_0x3f65c0()['remove'](_0x3714b6[_0x4201e5(0x1388)],{'id':_0x20350f['id']}),_0x52c5cb[_0x4201e5(0x1c75)]({'title':_0x4201e5(0x1bbf),'msg':_0x20350f['name']?_0x20350f[_0x4201e5(0x19eb)]+_0x4201e5(0x23e3):''});})[_0x155f83(0x129e)](function(_0x3a971f){const _0x506d88=_0x155f83;_0x52c5cb['error']({'title':_0x3a971f[_0x506d88(0x107b)]?'API:'+_0x3a971f[_0x506d88(0x107b)]+_0x506d88(0x1315)+_0x3a971f['statusText']:_0x506d88(0xff1),'msg':_0x3a971f['data']?JSON['stringify'](_0x3a971f[_0x506d88(0x524)]):_0x3a971f[_0x506d88(0xd5f)]()});})[_0x155f83(0x1ec6)](function(){const _0x4f41a9=_0x155f83;_0x3714b6[_0x4f41a9(0x125b)](0x0);});},function(){const _0xbd2ad=_0x504002;console[_0xbd2ad(0x1a74)](_0xbd2ad(0x39a));});}_0x3714b6[_0x2b7ff1(0x15a6)]=[],_0x3714b6[_0x2b7ff1(0x2665)]=_0x57141b,_0x3714b6['deleteSubjectConfirm']=_0x2c720d,_0x3714b6[_0x2b7ff1(0x1777)]=_0x1b965f;function _0x57141b(_0x5c15cf,_0x5cef3b){const _0xff4a87=_0x2b7ff1;_0x9145e6['show']({'controller':'CreateOrEditZendeskAccountItemDialogController','controllerAs':'vm','templateUrl':_0x365832,'parent':angular[_0xff4a87(0x1853)](_0x9b63a2[_0xff4a87(0x2586)]),'targetEvent':_0x5c15cf,'clickOutsideToClose':!![],'locals':{'type':'subject','item':_0x5cef3b,'items':_0x3714b6[_0xff4a87(0x3c8)],'configuration':_0x3714b6[_0xff4a87(0x275c)],'account':_0x3714b6['zendeskAccount'],'license':null,'setting':null,'crudPermissions':_0x3714b6[_0xff4a87(0x2514)]}});}function _0x3dc956(_0x11d327){const _0x21cc82=_0x2b7ff1;_0x25c879['intZendeskField'][_0x21cc82(0x1fac)]({'id':_0x11d327['id']})[_0x21cc82(0x2945)]['then'](function(){const _0x1c4ebc=_0x21cc82;_0x3f65c0()[_0x1c4ebc(0x2640)](_0x3714b6[_0x1c4ebc(0x3c8)],{'id':_0x11d327['id']}),_0x52c5cb[_0x1c4ebc(0x1c75)]({'title':_0x1c4ebc(0x28e6),'msg':_0x1c4ebc(0x761)});})['catch'](function(_0x3ea314){const _0x20079e=_0x21cc82;_0x52c5cb[_0x20079e(0x1980)]({'title':_0x3ea314[_0x20079e(0x107b)]?_0x20079e(0x262a)+_0x3ea314['status']+'\x20-\x20'+_0x3ea314[_0x20079e(0x167f)]:_0x20079e(0xf6e),'msg':_0x3ea314[_0x20079e(0x524)]?JSON[_0x20079e(0x10bb)](_0x3ea314[_0x20079e(0x524)]):_0x3ea314[_0x20079e(0xd5f)]()});});}function _0x2c720d(_0x3ce5cb,_0x39472b){const _0x2defb6=_0x2b7ff1,_0x17d3ff=_0x9145e6[_0x2defb6(0x1e8a)]()[_0x2defb6(0x1189)](_0x2defb6(0x317))[_0x2defb6(0x1cbe)](_0x2defb6(0xf7f)+'\x20will\x20be\x20deleted.')[_0x2defb6(0x4bd)](_0x2defb6(0x5d1))[_0x2defb6(0x1f27)](_0x3ce5cb)['ok']('OK')[_0x2defb6(0x6c3)](_0x2defb6(0x39a));_0x9145e6[_0x2defb6(0x2615)](_0x17d3ff)[_0x2defb6(0x146b)](function(){_0x3dc956(_0x39472b);},function(){const _0x3c99c0=_0x2defb6;console[_0x3c99c0(0x1a74)](_0x3c99c0(0x39a));});}function _0x1b965f(_0x1ac0f8){const _0x30ef18=_0x2b7ff1,_0x1ca3fa=_0x9145e6[_0x30ef18(0x1e8a)]()[_0x30ef18(0x1189)](_0x30ef18(0x2e6))['htmlContent'](_0x30ef18(0x16d3)+_0x3714b6[_0x30ef18(0x15a6)][_0x30ef18(0x402)]+_0x30ef18(0x2452)+_0x30ef18(0xe01))[_0x30ef18(0x4bd)]('delete\x20subjects')[_0x30ef18(0x1f27)](_0x1ac0f8)['ok']('OK')[_0x30ef18(0x6c3)](_0x30ef18(0x39a));_0x9145e6[_0x30ef18(0x2615)](_0x1ca3fa)[_0x30ef18(0x146b)](function(){const _0x55d3de=_0x30ef18;_0x3714b6[_0x55d3de(0x15a6)][_0x55d3de(0x1df5)](function(_0x33f91c){_0x3dc956(_0x33f91c);}),_0x3714b6[_0x55d3de(0x15a6)]=[];});}_0x3714b6['selectedDescriptions']=[],_0x3714b6['createOrEditDescription']=_0x2dc6b8,_0x3714b6[_0x2b7ff1(0xb29)]=_0x5afe35,_0x3714b6['deleteSelectedDescriptions']=_0x15aa86;function _0x2dc6b8(_0x45dfe5,_0x219458){const _0x2423d5=_0x2b7ff1;_0x9145e6[_0x2423d5(0x2615)]({'controller':_0x2423d5(0x2903),'controllerAs':'vm','templateUrl':_0x365832,'parent':angular[_0x2423d5(0x1853)](_0x9b63a2[_0x2423d5(0x2586)]),'targetEvent':_0x45dfe5,'clickOutsideToClose':!![],'locals':{'type':_0x2423d5(0xb17),'item':_0x219458,'items':_0x3714b6[_0x2423d5(0x2358)],'configuration':_0x3714b6['zendeskConfiguration'],'account':_0x3714b6['zendeskAccount'],'license':null,'setting':null,'crudPermissions':_0x3714b6[_0x2423d5(0x2514)]}});}function _0x688b15(_0x210c58){const _0x3282b3=_0x2b7ff1;_0x25c879[_0x3282b3(0xf5d)][_0x3282b3(0x1fac)]({'id':_0x210c58['id']})[_0x3282b3(0x2945)][_0x3282b3(0x146b)](function(){const _0x10745f=_0x3282b3;_0x3f65c0()[_0x10745f(0x2640)](_0x3714b6[_0x10745f(0x2358)],{'id':_0x210c58['id']}),_0x52c5cb[_0x10745f(0x1c75)]({'title':_0x10745f(0xaf8),'msg':_0x10745f(0x8e3)});})['catch'](function(_0x1625fd){const _0x1cbd4a=_0x3282b3;_0x52c5cb[_0x1cbd4a(0x1980)]({'title':_0x1625fd[_0x1cbd4a(0x107b)]?_0x1cbd4a(0x262a)+_0x1625fd[_0x1cbd4a(0x107b)]+'\x20-\x20'+_0x1625fd[_0x1cbd4a(0x167f)]:'SYSTEM:DELETECONFIGURATIONFIELD','msg':_0x1625fd[_0x1cbd4a(0x524)]?JSON[_0x1cbd4a(0x10bb)](_0x1625fd[_0x1cbd4a(0x524)]):_0x1625fd[_0x1cbd4a(0xd5f)]()});});}function _0x5afe35(_0x35d66c,_0x28d8be){const _0x1705e8=_0x2b7ff1,_0x60b2db=_0x9145e6[_0x1705e8(0x1e8a)]()[_0x1705e8(0x1189)](_0x1705e8(0x1e9))['htmlContent'](_0x1705e8(0x2014)+_0x1705e8(0xe01))['ariaLabel']('delete\x20description')[_0x1705e8(0x1f27)](_0x35d66c)['ok']('OK')[_0x1705e8(0x6c3)](_0x1705e8(0x39a));_0x9145e6['show'](_0x60b2db)[_0x1705e8(0x146b)](function(){_0x688b15(_0x28d8be);},function(){const _0x4aad26=_0x1705e8;console[_0x4aad26(0x1a74)](_0x4aad26(0x39a));});}function _0x15aa86(_0x890143){const _0x2d124d=_0x2b7ff1,_0x12635d=_0x9145e6['confirm']()[_0x2d124d(0x1189)](_0x2d124d(0x1acd))[_0x2d124d(0x1cbe)](_0x2d124d(0x16d3)+_0x3714b6[_0x2d124d(0x126)][_0x2d124d(0x402)]+_0x2d124d(0x2452)+_0x2d124d(0xe01))[_0x2d124d(0x4bd)]('delete\x20descriptions')[_0x2d124d(0x1f27)](_0x890143)['ok']('OK')[_0x2d124d(0x6c3)](_0x2d124d(0x39a));_0x9145e6[_0x2d124d(0x2615)](_0x12635d)[_0x2d124d(0x146b)](function(){const _0x4c5d6b=_0x2d124d;_0x3714b6[_0x4c5d6b(0x126)]['forEach'](function(_0x29508a){_0x688b15(_0x29508a);}),_0x3714b6[_0x4c5d6b(0x126)]=[];});}_0x3714b6[_0x2b7ff1(0x2605)]=[],_0x3714b6[_0x2b7ff1(0x737)]=_0x35d22e,_0x3714b6['deleteFieldConfirm']=_0x243300,_0x3714b6[_0x2b7ff1(0x816)]=_0x9f7fc8;function _0x35d22e(_0x1d9a2c,_0x465a4a){const _0x1672e0=_0x2b7ff1;_0x9145e6[_0x1672e0(0x2615)]({'controller':_0x1672e0(0x2903),'controllerAs':'vm','templateUrl':_0x365832,'parent':angular[_0x1672e0(0x1853)](_0x9b63a2[_0x1672e0(0x2586)]),'targetEvent':_0x1d9a2c,'clickOutsideToClose':!![],'locals':{'type':_0x1672e0(0x65c),'item':_0x465a4a,'items':_0x3714b6[_0x1672e0(0x2867)],'configuration':_0x3714b6[_0x1672e0(0x275c)],'account':_0x3714b6['zendeskAccount'],'license':null,'setting':null,'crudPermissions':_0x3714b6[_0x1672e0(0x2514)]}});}function _0x174d76(_0x3e497f){const _0x36b3a3=_0x2b7ff1;_0x25c879[_0x36b3a3(0xf5d)][_0x36b3a3(0x1fac)]({'id':_0x3e497f['id']})[_0x36b3a3(0x2945)][_0x36b3a3(0x146b)](function(){const _0x1d38fe=_0x36b3a3;_0x3f65c0()[_0x1d38fe(0x2640)](_0x3714b6[_0x1d38fe(0x2867)],{'id':_0x3e497f['id']}),_0x52c5cb[_0x1d38fe(0x1c75)]({'title':_0x1d38fe(0x24ce),'msg':_0x1d38fe(0x1c07)});})[_0x36b3a3(0x129e)](function(_0x21e852){const _0x59e353=_0x36b3a3;_0x52c5cb[_0x59e353(0x1980)]({'title':_0x21e852['status']?'API:'+_0x21e852['status']+_0x59e353(0x1315)+_0x21e852['statusText']:_0x59e353(0xf6e),'msg':_0x21e852['data']?JSON[_0x59e353(0x10bb)](_0x21e852[_0x59e353(0x524)]):_0x21e852[_0x59e353(0xd5f)]()});});}function _0x243300(_0x2e8b70,_0x332377){const _0x4470ab=_0x2b7ff1,_0x25cb1c=_0x9145e6[_0x4470ab(0x1e8a)]()[_0x4470ab(0x1189)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20field?')[_0x4470ab(0x1cbe)](_0x4470ab(0x2216)+_0x4470ab(0xe01))[_0x4470ab(0x4bd)]('delete\x20field')[_0x4470ab(0x1f27)](_0x2e8b70)['ok']('OK')[_0x4470ab(0x6c3)](_0x4470ab(0x39a));_0x9145e6[_0x4470ab(0x2615)](_0x25cb1c)[_0x4470ab(0x146b)](function(){_0x174d76(_0x332377);},function(){const _0x25c145=_0x4470ab;console[_0x25c145(0x1a74)](_0x25c145(0x39a));});}function _0x9f7fc8(_0x262f9b){const _0x3a5f75=_0x2b7ff1,_0x511d89=_0x9145e6[_0x3a5f75(0x1e8a)]()['title'](_0x3a5f75(0xe75))['htmlContent'](''+_0x3714b6[_0x3a5f75(0x2605)][_0x3a5f75(0x402)]+'\x20selected'+_0x3a5f75(0xe01))[_0x3a5f75(0x4bd)](_0x3a5f75(0x176a))[_0x3a5f75(0x1f27)](_0x262f9b)['ok']('OK')[_0x3a5f75(0x6c3)](_0x3a5f75(0x39a));_0x9145e6[_0x3a5f75(0x2615)](_0x511d89)['then'](function(){const _0x46fa94=_0x3a5f75;_0x3714b6[_0x46fa94(0x2605)]['forEach'](function(_0x5bde41){_0x174d76(_0x5bde41);}),_0x3714b6[_0x46fa94(0x2605)]=[];});}}const _0x11d3e7=_0x400871;;_0x294b79[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1862),_0x313a4d(0xd08),_0x313a4d(0x10e8),'$q',_0x313a4d(0x214b),_0x313a4d(0x1fe4),_0x313a4d(0x1388),_0x313a4d(0x275c),_0x313a4d(0x247f),_0x313a4d(0xa87),_0x313a4d(0x2690),_0x313a4d(0x15b9),_0x313a4d(0x2514)];function _0x294b79(_0x4e2fb4,_0x26286e,_0x41f3df,_0x465269,_0x1f0333,_0x52cecf,_0x434a3b,_0x330430,_0x26df1e,_0x22e537,_0xa2e77,_0x32ca91,_0x1ae55c,_0x4407bd){const _0x2abe79=_0x313a4d,_0x52b018=this;_0x52b018[_0x2abe79(0x2321)]=_0xa2e77[_0x2abe79(0xb12)](),_0x52b018[_0x2abe79(0xcef)]=[],_0x52b018['setting']=_0x1ae55c,_0x52b018['license']=_0x32ca91,_0x52b018['crudPermissions']=_0x4407bd,_0x52b018[_0x2abe79(0x855)]={},_0x52b018[_0x2abe79(0x2251)]=_0x52b018['setting']&&_0x52b018[_0x2abe79(0x15b9)][_0x2abe79(0x976)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x52b018['title']='INTEGRATIONS.EDIT_ZENDESKCONFIGURATION',_0x52b018[_0x2abe79(0x275c)]=angular[_0x2abe79(0x235a)](_0x26df1e),_0x52b018[_0x2abe79(0x1388)]=_0x330430,_0x52b018[_0x2abe79(0x1fff)]=![];!_0x52b018[_0x2abe79(0x275c)]&&(_0x52b018[_0x2abe79(0x275c)]={'channel':'voice','type':'inbound'},_0x52b018['title']=_0x2abe79(0xc3f),_0x52b018[_0x2abe79(0x1fff)]=!![]);_0x52b018[_0x2abe79(0x16e6)]=_0x4b4b6d,_0x52b018[_0x2abe79(0x80d)]=_0x521a98,_0x52b018[_0x2abe79(0x1a1f)]=_0x142db3,_0x52b018[_0x2abe79(0xe73)]=_0x454ad0,_0x52b018[_0x2abe79(0x13f3)]=_0x52bf67;function _0x4b4b6d(){const _0x458db=_0x2abe79;_0x52b018['errors']=[],_0x22e537[_0x458db(0x2686)]['addConfiguration']({'id':_0x26286e['params']['id']},_0x52b018[_0x458db(0x275c)])[_0x458db(0x2945)]['then'](function(_0x5b9f45){const _0xfc2d3f=_0x458db;_0x52b018[_0xfc2d3f(0x1388)]['unshift'](_0x5b9f45[_0xfc2d3f(0x2488)]()),_0x434a3b[_0xfc2d3f(0x1c75)]({'title':_0xfc2d3f(0xf82),'msg':_0x52b018[_0xfc2d3f(0x275c)]['name']?_0x52b018[_0xfc2d3f(0x275c)]['name']+_0xfc2d3f(0x1386):''}),_0x52bf67(_0x5b9f45);})[_0x458db(0x129e)](function(_0x1e6d4c){const _0x5d10c4=_0x458db;if(_0x1e6d4c['data']&&_0x1e6d4c[_0x5d10c4(0x524)][_0x5d10c4(0xcef)]&&_0x1e6d4c[_0x5d10c4(0x524)][_0x5d10c4(0xcef)]['length']){_0x52b018[_0x5d10c4(0xcef)]=_0x1e6d4c[_0x5d10c4(0x524)][_0x5d10c4(0xcef)]||[{'message':_0x1e6d4c[_0x5d10c4(0xd5f)](),'type':'api.intZendeskConfiguration.save'}];for(let _0x224389=0x0;_0x224389<_0x1e6d4c['data'][_0x5d10c4(0xcef)][_0x5d10c4(0x402)];_0x224389+=0x1){_0x434a3b[_0x5d10c4(0x1980)]({'title':_0x1e6d4c[_0x5d10c4(0x524)][_0x5d10c4(0xcef)][_0x224389][_0x5d10c4(0x1142)],'msg':_0x1e6d4c[_0x5d10c4(0x524)]['errors'][_0x224389][_0x5d10c4(0x7fd)]});}}else _0x434a3b[_0x5d10c4(0x1980)]({'title':_0x1e6d4c[_0x5d10c4(0x107b)]?'API:'+_0x1e6d4c['status']+'\x20-\x20'+_0x1e6d4c[_0x5d10c4(0x167f)]:_0x5d10c4(0x11ad),'msg':_0x1e6d4c[_0x5d10c4(0x524)]?JSON[_0x5d10c4(0x10bb)](_0x1e6d4c[_0x5d10c4(0x524)][_0x5d10c4(0x7fd)]):_0x1e6d4c['toString']()});});}function _0x521a98(){const _0x202f47=_0x2abe79;_0x52b018[_0x202f47(0xcef)]=[],_0x22e537[_0x202f47(0x252c)]['update']({'id':_0x52b018[_0x202f47(0x275c)]['id']},_0x52b018[_0x202f47(0x275c)])[_0x202f47(0x2945)][_0x202f47(0x146b)](function(_0x51159b){const _0x4e8aef=_0x202f47,_0x5cf562=_0x3f65c0()[_0x4e8aef(0xc84)](_0x52b018[_0x4e8aef(0x1388)],{'id':_0x51159b['id']});_0x5cf562&&_0x3f65c0()[_0x4e8aef(0x168d)](_0x5cf562,_0x3f65c0()['pick'](_0x51159b[_0x4e8aef(0x2488)](),_0x3f65c0()[_0x4e8aef(0x627)](_0x5cf562))),_0x434a3b[_0x4e8aef(0x1c75)]({'title':_0x4e8aef(0x1e89),'msg':_0x52b018[_0x4e8aef(0x275c)]['name']?_0x52b018[_0x4e8aef(0x275c)][_0x4e8aef(0x19eb)]+_0x4e8aef(0x24db):''}),_0x52bf67(_0x51159b);})[_0x202f47(0x129e)](function(_0x849f5a){const _0x2bcb47=_0x202f47;if(_0x849f5a[_0x2bcb47(0x524)]&&_0x849f5a['data'][_0x2bcb47(0xcef)]&&_0x849f5a[_0x2bcb47(0x524)][_0x2bcb47(0xcef)][_0x2bcb47(0x402)]){_0x52b018[_0x2bcb47(0xcef)]=_0x849f5a[_0x2bcb47(0x524)][_0x2bcb47(0xcef)]||[{'message':_0x849f5a['toString'](),'type':_0x2bcb47(0x2047)}];for(let _0x17b2ed=0x0;_0x17b2ed<_0x849f5a[_0x2bcb47(0x524)][_0x2bcb47(0xcef)][_0x2bcb47(0x402)];_0x17b2ed++){_0x434a3b[_0x2bcb47(0x1980)]({'title':_0x849f5a[_0x2bcb47(0x524)]['errors'][_0x17b2ed][_0x2bcb47(0x1142)],'msg':_0x849f5a[_0x2bcb47(0x524)][_0x2bcb47(0xcef)][_0x17b2ed][_0x2bcb47(0x7fd)]});}}else _0x434a3b[_0x2bcb47(0x1980)]({'title':_0x849f5a['status']?_0x2bcb47(0x262a)+_0x849f5a[_0x2bcb47(0x107b)]+_0x2bcb47(0x1315)+_0x849f5a[_0x2bcb47(0x167f)]:_0x2bcb47(0x2047),'msg':_0x849f5a['data']?JSON['stringify'](_0x849f5a[_0x2bcb47(0x524)][_0x2bcb47(0x7fd)]):_0x849f5a[_0x2bcb47(0xd5f)]()});});}function _0x142db3(_0x10b316){const _0x5dfe3a=_0x2abe79;_0x52b018[_0x5dfe3a(0xcef)]=[];const _0x4dc623=_0x465269[_0x5dfe3a(0x1e8a)]()[_0x5dfe3a(0x1189)]('Are\x20you\x20sure?')[_0x5dfe3a(0x80f)]('The\x20zendeskConfiguration\x20will\x20be\x20deleted.')[_0x5dfe3a(0x4bd)]('Delete\x20ZendeskConfiguration')['ok'](_0x5dfe3a(0x25de))[_0x5dfe3a(0x6c3)](_0x5dfe3a(0xcf0))[_0x5dfe3a(0x1f27)](_0x10b316);_0x465269[_0x5dfe3a(0x2615)](_0x4dc623)['then'](function(){const _0x245bf7=_0x5dfe3a;_0x22e537[_0x245bf7(0x252c)][_0x245bf7(0x1fac)]({'id':_0x52b018[_0x245bf7(0x275c)]['id']})[_0x245bf7(0x2945)]['then'](function(){const _0x1452c9=_0x245bf7;_0x3f65c0()['remove'](_0x52b018[_0x1452c9(0x1388)],{'id':_0x52b018[_0x1452c9(0x275c)]['id']}),_0x434a3b[_0x1452c9(0x1c75)]({'title':'ZendeskConfiguration\x20properly\x20deleted!','msg':(_0x52b018[_0x1452c9(0x275c)][_0x1452c9(0x19eb)]||_0x1452c9(0x275c))+'\x20has\x20been\x20deleted!'}),_0x52bf67(_0x52b018[_0x1452c9(0x275c)]);})[_0x245bf7(0x129e)](function(_0x20e98c){const _0x5b01c4=_0x245bf7;if(_0x20e98c[_0x5b01c4(0x524)]&&_0x20e98c[_0x5b01c4(0x524)]['errors']&&_0x20e98c[_0x5b01c4(0x524)][_0x5b01c4(0xcef)]['length']){_0x52b018[_0x5b01c4(0xcef)]=_0x20e98c['data'][_0x5b01c4(0xcef)]||[{'message':_0x20e98c[_0x5b01c4(0xd5f)](),'type':_0x5b01c4(0x2501)}];for(let _0xef7580=0x0;_0xef7580<_0x20e98c['data']['errors']['length'];_0xef7580++){_0x434a3b[_0x5b01c4(0x1980)]({'title':_0x20e98c[_0x5b01c4(0x524)][_0x5b01c4(0xcef)][_0xef7580]['type'],'msg':_0x20e98c[_0x5b01c4(0x524)]['errors'][_0xef7580][_0x5b01c4(0x7fd)]});}}else _0x434a3b[_0x5b01c4(0x1980)]({'title':_0x20e98c[_0x5b01c4(0x107b)]?_0x5b01c4(0x262a)+_0x20e98c[_0x5b01c4(0x107b)]+_0x5b01c4(0x1315)+_0x20e98c[_0x5b01c4(0x167f)]:_0x5b01c4(0x2501),'msg':_0x20e98c[_0x5b01c4(0x524)]?JSON[_0x5b01c4(0x10bb)](_0x20e98c[_0x5b01c4(0x524)][_0x5b01c4(0x7fd)]):_0x20e98c[_0x5b01c4(0x7fd)]||_0x20e98c[_0x5b01c4(0xd5f)]()});});},function(){});}function _0x454ad0(_0xc56df2){return _0xc56df2===null?undefined:new Date(_0xc56df2);}function _0x52bf67(_0x54108c){_0x465269['hide'](_0x54108c);}}const _0x5f3171=_0x294b79;;const _0x1177fd=_0x4acfac['p']+_0x313a4d(0x173b);;_0x363d25[_0x313a4d(0x11c2)]=['$scope',_0x313a4d(0x1aa9),_0x313a4d(0x1862),_0x313a4d(0x15fe),_0x313a4d(0x10e8),_0x313a4d(0x4d8),_0x313a4d(0x1abe),_0x313a4d(0x214b),_0x313a4d(0x988),_0x313a4d(0x26b6),'userProfileSection',_0x313a4d(0x247f),'msUtils','toasty',_0x313a4d(0xa87),_0x313a4d(0x2690),_0x313a4d(0x15b9)];function _0x363d25(_0x18b9de,_0x2b6dc3,_0x47e264,_0x49d827,_0x5e3b71,_0x33a469,_0x40f19c,_0x1a046a,_0x18a031,_0x3a49f1,_0xec26d,_0xd74535,_0x1bef45,_0x348444,_0x553ef5,_0xa2fe6b,_0x3c06bf){const _0x313dcf=_0x313a4d,_0x5883f6=this;_0x5883f6[_0x313dcf(0x2690)]=_0xa2fe6b,_0x5883f6[_0x313dcf(0x15b9)]=_0x3c06bf,_0x5883f6[_0x313dcf(0x2321)]=_0x553ef5[_0x313dcf(0xb12)](),_0x5883f6['zendeskAccounts']=_0x18a031||{'count':0x0,'rows':[]},_0x5883f6['userProfile']=_0x3a49f1,_0x5883f6[_0x313dcf(0x1366)]=_0xec26d&&_0xec26d[_0x313dcf(0x51c)]==0x1?_0xec26d['rows'][0x0]:null,_0x5883f6[_0x313dcf(0x2514)]=_0x553ef5['parseCrudPermissions'](_0x5883f6[_0x313dcf(0x1366)]?_0x5883f6[_0x313dcf(0x1366)]['crudPermissions']:null),_0x5883f6['table']=_0x313dcf(0x988),_0x5883f6[_0x313dcf(0x216a)]='',_0x5883f6[_0x313dcf(0x214f)]=null,_0x5883f6[_0x313dcf(0x5d0)]=[],_0x5883f6[_0x313dcf(0x1a56)]={'fields':'createdAt,updatedAt,id,name,type,username,remoteUri,authType,password,token,serverUrl,description','limit':0xa,'page':0x1},_0x5883f6[_0x313dcf(0x11da)]=_0x3f65c0()[_0x313dcf(0x194)]([{'option':'Integration_Tab','value':_0x313dcf(0x17ec)},{'option':_0x313dcf(0xf6a),'value':_0x313dcf(0x1404)}],function(_0x22607c){const _0x4c24b4=_0x313dcf;return _0x3f65c0()[_0x4c24b4(0x5f4)](_0x22607c['value'],new RegExp('\x27','g'),'');}),_0x5883f6[_0x313dcf(0xd5e)]=_0x3f65c0()[_0x313dcf(0x194)]([{'option':_0x313dcf(0x12da),'value':_0x313dcf(0x2008)},{'option':_0x313dcf(0x1357),'value':_0x313dcf(0x19fb)}],function(_0x2b4036){const _0x5b57fd=_0x313dcf;return _0x3f65c0()['replace'](_0x2b4036[_0x5b57fd(0x175d)],new RegExp('\x27','g'),'');}),_0x5883f6[_0x313dcf(0x23f9)]=_0x49773a,_0x5883f6[_0x313dcf(0x1e60)]=_0x9551ba,_0x5883f6[_0x313dcf(0xf0a)]=_0x1c19bf,_0x5883f6['success']=_0x259aeb,_0x5883f6[_0x313dcf(0x233f)]=_0xa48fe,_0x5883f6[_0x313dcf(0x73a)]=_0x2da5f9,_0x5883f6['deleteZendeskAccount']=_0x58b050,_0x5883f6[_0x313dcf(0x1d50)]=_0xb5e139,_0x5883f6[_0x313dcf(0x57c)]=_0x533e6b,_0x5883f6[_0x313dcf(0x308)]=_0x9ee1d6,_0x5883f6[_0x313dcf(0x20fd)]=_0x32fdf5;function _0x49773a(_0x135b23){const _0x102d27=_0x313dcf;_0x47e264['go'](_0x102d27(0x1c55),{'id':_0x135b23['id'],'zendeskAccount':_0x135b23,'crudPermissions':_0x5883f6[_0x102d27(0x2514)]});}function _0x9551ba(_0x1e7b50){const _0x4e7b1e=_0x313dcf;return _0xd74535['intZendeskAccount'][_0x4e7b1e(0x12ff)]({'id':_0x1e7b50['id'],'test':!![]})[_0x4e7b1e(0x2945)][_0x4e7b1e(0x146b)](function(){const _0xce6d3f=_0x4e7b1e;_0x348444[_0xce6d3f(0x1c75)]({'title':'ZendeskAccount\x20properly\x20tested','msg':_0xce6d3f(0x1893)});})[_0x4e7b1e(0x129e)](function(_0x5d641c){const _0x1776f5=_0x4e7b1e;_0x348444[_0x1776f5(0x1980)]({'title':'ZendeskAccount\x20properly\x20tested','msg':_0x5d641c[_0x1776f5(0x524)]?_0x5d641c['data']['message']?_0x5d641c[_0x1776f5(0x524)]['message']:JSON[_0x1776f5(0x10bb)](_0x5d641c[_0x1776f5(0x524)]):_0x5d641c[_0x1776f5(0xd5f)]()});});}function _0x1c19bf(_0x421235,_0x2f5c47){const _0x4fb664=_0x313dcf,_0x2ca17=_0x5e3b71[_0x4fb664(0x1e8a)]()[_0x4fb664(0x1189)](_0x4fb664(0xdb2)+_0x3f65c0()['startCase'](_0x4fb664(0x4f5))+'?')['htmlContent'](''+(_0x421235[_0x4fb664(0x19eb)]||_0x4fb664(0x4f5))+_0x4fb664(0x252f)+_0x4fb664(0xe01))[_0x4fb664(0x4bd)](_0x4fb664(0xdf6))[_0x4fb664(0x1f27)](_0x2f5c47)['ok']('OK')[_0x4fb664(0x6c3)](_0x4fb664(0x39a));_0x5e3b71[_0x4fb664(0x2615)](_0x2ca17)[_0x4fb664(0x146b)](function(){_0x58b050(_0x421235);},function(){const _0x1d435e=_0x4fb664;console[_0x1d435e(0x1a74)](_0x1d435e(0x39a));});}let _0x5bc687=!![],_0x57bbfb=0x1;_0x18b9de[_0x313dcf(0x21e8)](_0x313dcf(0x2669),function(_0x211ca1,_0x3c3176){const _0x183751=_0x313dcf;_0x5bc687?_0x40f19c(function(){_0x5bc687=![];}):(!_0x3c3176&&(_0x57bbfb=_0x5883f6[_0x183751(0x1a56)][_0x183751(0x844)]),_0x211ca1!==_0x3c3176&&(_0x5883f6[_0x183751(0x1a56)][_0x183751(0x844)]=0x1),!_0x211ca1&&(_0x5883f6[_0x183751(0x1a56)][_0x183751(0x844)]=_0x57bbfb),_0x5883f6[_0x183751(0x233f)]());});function _0x259aeb(_0x56a12c){const _0x3d07b9=_0x313dcf;_0x5883f6[_0x3d07b9(0x988)]=_0x56a12c||{'count':0x0,'rows':[]};}function _0xa48fe(){const _0x9b60e6=_0x313dcf;_0x5883f6[_0x9b60e6(0x1a56)][_0x9b60e6(0x145d)]=(_0x5883f6[_0x9b60e6(0x1a56)][_0x9b60e6(0x844)]-0x1)*_0x5883f6['query'][_0x9b60e6(0x221e)],_0x553ef5['hasRole'](_0x9b60e6(0x174b))?_0x5883f6[_0x9b60e6(0xb9c)]=_0xd74535['intZendeskAccount'][_0x9b60e6(0x16b4)](_0x5883f6[_0x9b60e6(0x1a56)],_0x259aeb)['$promise']:(_0x5883f6['query']['id']=_0x5883f6['userProfile']['id'],_0x5883f6[_0x9b60e6(0x1a56)][_0x9b60e6(0x2146)]=_0x9b60e6(0x1fc),_0x5883f6['promise']=_0xd74535[_0x9b60e6(0x26b6)][_0x9b60e6(0x158f)](_0x5883f6[_0x9b60e6(0x1a56)],_0x259aeb)[_0x9b60e6(0x2945)]);}function _0x2da5f9(_0x239cbc,_0xd44444){const _0x4fe1e6=_0x313dcf;_0x5e3b71[_0x4fe1e6(0x2615)]({'controller':_0x4fe1e6(0x121b),'controllerAs':'vm','templateUrl':_0x1177fd,'parent':angular[_0x4fe1e6(0x1853)](_0x33a469[_0x4fe1e6(0x2586)]),'targetEvent':_0x239cbc,'clickOutsideToClose':!![],'locals':{'zendeskAccount':_0xd44444,'zendeskAccounts':_0x5883f6[_0x4fe1e6(0x988)][_0x4fe1e6(0x19c7)],'license':_0x5883f6[_0x4fe1e6(0x2690)],'setting':_0x5883f6[_0x4fe1e6(0x15b9)],'crudPermissions':_0x5883f6[_0x4fe1e6(0x2514)]}});}function _0x58b050(_0x2bad56){const _0x22a2dd=_0x313dcf;_0xd74535[_0x22a2dd(0x2686)][_0x22a2dd(0x1fac)]({'id':_0x2bad56['id']})[_0x22a2dd(0x2945)][_0x22a2dd(0x146b)](function(){const _0x40c0f0=_0x22a2dd;_0x3f65c0()[_0x40c0f0(0x2640)](_0x5883f6[_0x40c0f0(0x988)][_0x40c0f0(0x19c7)],{'id':_0x2bad56['id']}),_0x5883f6[_0x40c0f0(0x988)]['count']-=0x1,!_0x5883f6['zendeskAccounts'][_0x40c0f0(0x19c7)][_0x40c0f0(0x402)]&&_0x5883f6[_0x40c0f0(0x233f)](),_0x348444['success']({'title':_0x3f65c0()[_0x40c0f0(0x20d1)](_0x40c0f0(0x1b39))+_0x40c0f0(0x201c),'msg':_0x2bad56[_0x40c0f0(0x19eb)]?_0x2bad56[_0x40c0f0(0x19eb)]+_0x40c0f0(0x23e3):''});})[_0x22a2dd(0x129e)](function(_0xc5878e){const _0x234dae=_0x22a2dd;if(_0xc5878e[_0x234dae(0x524)]&&_0xc5878e[_0x234dae(0x524)][_0x234dae(0xcef)]&&_0xc5878e[_0x234dae(0x524)][_0x234dae(0xcef)][_0x234dae(0x402)]){_0x5883f6[_0x234dae(0xcef)]=_0xc5878e[_0x234dae(0x524)][_0x234dae(0xcef)]||[{'message':_0xc5878e[_0x234dae(0xd5f)](),'type':'SYSTEM:DELETEintZendeskAccount'}];for(let _0x17e265=0x0;_0x17e265<_0xc5878e[_0x234dae(0x524)][_0x234dae(0xcef)][_0x234dae(0x402)];_0x17e265++){_0x348444['error']({'title':_0xc5878e[_0x234dae(0x524)]['errors'][_0x17e265][_0x234dae(0x1142)],'msg':_0xc5878e[_0x234dae(0x524)][_0x234dae(0xcef)][_0x17e265]['message']});}}else _0x348444[_0x234dae(0x1980)]({'title':_0xc5878e['status']?_0x234dae(0x262a)+_0xc5878e['status']+_0x234dae(0x1315)+_0xc5878e[_0x234dae(0x167f)]:_0x234dae(0x1f67),'msg':_0xc5878e[_0x234dae(0x524)]?JSON[_0x234dae(0x10bb)](_0xc5878e[_0x234dae(0x524)][_0x234dae(0x7fd)]):_0xc5878e[_0x234dae(0x7fd)]||_0xc5878e[_0x234dae(0xd5f)]()});});}function _0xb5e139(){const _0x42f87c=_0x313dcf,_0x29080e=angular[_0x42f87c(0x235a)](_0x5883f6[_0x42f87c(0x5d0)]);return _0x5883f6[_0x42f87c(0x5d0)]=[],_0x29080e;}function _0x533e6b(_0x566874){const _0x59becf=_0x313dcf,_0x2214d7=_0x5e3b71['confirm']()['title'](_0x59becf(0x2215))[_0x59becf(0x1cbe)](''+_0x5883f6[_0x59becf(0x5d0)][_0x59becf(0x402)]+_0x59becf(0x2452)+_0x59becf(0xe01))[_0x59becf(0x4bd)]('delete\x20ZendeskAccounts')['targetEvent'](_0x566874)['ok']('OK')[_0x59becf(0x6c3)](_0x59becf(0x39a));_0x5e3b71[_0x59becf(0x2615)](_0x2214d7)[_0x59becf(0x146b)](function(){const _0x48811=_0x59becf;_0x5883f6[_0x48811(0x5d0)][_0x48811(0x1df5)](function(_0x1d7704){_0x58b050(_0x1d7704);}),_0x5883f6[_0x48811(0x5d0)]=[];});}function _0x9ee1d6(){const _0x382a09=_0x313dcf;_0x5883f6[_0x382a09(0x5d0)]=[];}function _0x32fdf5(){const _0x17edd9=_0x313dcf;_0x5883f6[_0x17edd9(0x5d0)]=_0x5883f6[_0x17edd9(0x988)]['rows'];}}const _0x57fc2b=_0x363d25;;_0x15d976[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1862),_0x313a4d(0xd08),_0x313a4d(0x10e8),'$q',_0x313a4d(0x214b),_0x313a4d(0x1fe4),_0x313a4d(0x1e58),_0x313a4d(0x26df),_0x313a4d(0x247f),_0x313a4d(0xa87),'license',_0x313a4d(0x15b9),'crudPermissions'];function _0x15d976(_0x10b75c,_0x41b005,_0x4bd6ee,_0x535673,_0x181e27,_0x17713a,_0x3e49dc,_0x11d79b,_0xa195b9,_0x412028,_0x47f504,_0x46088e,_0x4544de,_0x3a9e64){const _0x2c7179=_0x313a4d,_0x1e2047=this;_0x1e2047[_0x2c7179(0x2321)]=_0x47f504[_0x2c7179(0xb12)](),_0x1e2047[_0x2c7179(0xcef)]=[],_0x1e2047['setting']=_0x4544de,_0x1e2047['license']=_0x46088e,_0x1e2047[_0x2c7179(0x2514)]=_0x3a9e64,_0x1e2047[_0x2c7179(0x855)]={},_0x1e2047[_0x2c7179(0x2251)]=_0x1e2047[_0x2c7179(0x15b9)]&&_0x1e2047[_0x2c7179(0x15b9)][_0x2c7179(0x976)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1e2047[_0x2c7179(0x1189)]=_0x2c7179(0x2628),_0x1e2047[_0x2c7179(0x26df)]=angular[_0x2c7179(0x235a)](_0xa195b9),_0x1e2047['zohoAccounts']=_0x11d79b,_0x1e2047[_0x2c7179(0x1483)]=![];!_0x1e2047[_0x2c7179(0x26df)]&&(_0x1e2047[_0x2c7179(0x26df)]={'host':_0x2c7179(0x45b),'zone':'EU','serverUrl':_0x4bd6ee['protocol']()+_0x2c7179(0xb0e)+_0x4bd6ee[_0x2c7179(0x148e)]()+(_0x4bd6ee[_0x2c7179(0x1553)]()?':'+_0x4bd6ee[_0x2c7179(0x1553)]():'')},_0x1e2047[_0x2c7179(0x1189)]=_0x2c7179(0x21d8),_0x1e2047[_0x2c7179(0x1483)]=!![]);_0x1e2047[_0x2c7179(0x89a)]=_0x1571b0,_0x1e2047[_0x2c7179(0xb26)]=_0x585af8,_0x1e2047[_0x2c7179(0x1e26)]=_0x52906f,_0x1e2047[_0x2c7179(0xe73)]=_0x4c3a29,_0x1e2047[_0x2c7179(0x13f3)]=_0x1789b9;function _0x1571b0(){const _0x449133=_0x2c7179;_0x1e2047[_0x449133(0xcef)]=[],_0x412028[_0x449133(0x15d7)][_0x449133(0x1e3)](_0x1e2047[_0x449133(0x26df)])[_0x449133(0x2945)][_0x449133(0x146b)](function(_0xc9375){const _0x35d487=_0x449133;_0x1e2047[_0x35d487(0x1e58)]['unshift'](_0xc9375['toJSON']()),_0x3e49dc[_0x35d487(0x1c75)]({'title':_0x35d487(0x11d6),'msg':_0x1e2047[_0x35d487(0x26df)][_0x35d487(0x19eb)]?_0x1e2047['zohoAccount'][_0x35d487(0x19eb)]+_0x35d487(0x1386):''}),_0x1789b9(_0xc9375);})[_0x449133(0x129e)](function(_0xa65d9b){const _0x57c230=_0x449133;if(_0xa65d9b[_0x57c230(0x524)]&&_0xa65d9b[_0x57c230(0x524)]['errors']&&_0xa65d9b['data'][_0x57c230(0xcef)][_0x57c230(0x402)]){_0x1e2047[_0x57c230(0xcef)]=_0xa65d9b[_0x57c230(0x524)][_0x57c230(0xcef)]||[{'message':_0xa65d9b[_0x57c230(0xd5f)](),'type':'api.intZohoAccount.save'}];for(let _0x4e7889=0x0;_0x4e7889<_0xa65d9b[_0x57c230(0x524)][_0x57c230(0xcef)][_0x57c230(0x402)];_0x4e7889+=0x1){_0x3e49dc['error']({'title':_0xa65d9b[_0x57c230(0x524)][_0x57c230(0xcef)][_0x4e7889]['type'],'msg':_0xa65d9b[_0x57c230(0x524)]['errors'][_0x4e7889][_0x57c230(0x7fd)]});}}else _0x3e49dc[_0x57c230(0x1980)]({'title':_0xa65d9b['status']?_0x57c230(0x262a)+_0xa65d9b[_0x57c230(0x107b)]+_0x57c230(0x1315)+_0xa65d9b[_0x57c230(0x167f)]:_0x57c230(0x111f),'msg':_0xa65d9b[_0x57c230(0x524)]?JSON[_0x57c230(0x10bb)](_0xa65d9b[_0x57c230(0x524)][_0x57c230(0x7fd)]):_0xa65d9b[_0x57c230(0xd5f)]()});});}function _0x585af8(){const _0x15f6a2=_0x2c7179;_0x1e2047['errors']=[],_0x412028[_0x15f6a2(0x15d7)]['update']({'id':_0x1e2047[_0x15f6a2(0x26df)]['id']},_0x1e2047[_0x15f6a2(0x26df)])['$promise'][_0x15f6a2(0x146b)](function(_0x52bc9d){const _0x62f052=_0x15f6a2,_0x59910e=_0x3f65c0()[_0x62f052(0xc84)](_0x1e2047[_0x62f052(0x1e58)],{'id':_0x52bc9d['id']});_0x59910e&&_0x3f65c0()[_0x62f052(0x168d)](_0x59910e,_0x3f65c0()[_0x62f052(0x40e)](_0x52bc9d[_0x62f052(0x2488)](),_0x3f65c0()['keys'](_0x59910e))),_0x3e49dc['success']({'title':_0x62f052(0x11a3),'msg':_0x1e2047[_0x62f052(0x26df)][_0x62f052(0x19eb)]?_0x1e2047['zohoAccount'][_0x62f052(0x19eb)]+_0x62f052(0x24db):''}),_0x1789b9(_0x52bc9d);})[_0x15f6a2(0x129e)](function(_0x867e9b){const _0xcb6493=_0x15f6a2;if(_0x867e9b[_0xcb6493(0x524)]&&_0x867e9b[_0xcb6493(0x524)]['errors']&&_0x867e9b[_0xcb6493(0x524)][_0xcb6493(0xcef)][_0xcb6493(0x402)]){_0x1e2047[_0xcb6493(0xcef)]=_0x867e9b[_0xcb6493(0x524)]['errors']||[{'message':_0x867e9b[_0xcb6493(0xd5f)](),'type':_0xcb6493(0x2784)}];for(let _0x540ed0=0x0;_0x540ed0<_0x867e9b[_0xcb6493(0x524)]['errors']['length'];_0x540ed0++){_0x3e49dc[_0xcb6493(0x1980)]({'title':_0x867e9b['data'][_0xcb6493(0xcef)][_0x540ed0]['type'],'msg':_0x867e9b['data'][_0xcb6493(0xcef)][_0x540ed0][_0xcb6493(0x7fd)]});}}else _0x3e49dc[_0xcb6493(0x1980)]({'title':_0x867e9b[_0xcb6493(0x107b)]?_0xcb6493(0x262a)+_0x867e9b[_0xcb6493(0x107b)]+_0xcb6493(0x1315)+_0x867e9b[_0xcb6493(0x167f)]:_0xcb6493(0x2784),'msg':_0x867e9b[_0xcb6493(0x524)]?JSON[_0xcb6493(0x10bb)](_0x867e9b[_0xcb6493(0x524)]['message']):_0x867e9b['toString']()});});}function _0x52906f(_0x3df30e){const _0xfe59b1=_0x2c7179;_0x1e2047['errors']=[];const _0x6a4c59=_0x535673['confirm']()['title'](_0xfe59b1(0x1d64))[_0xfe59b1(0x80f)]('The\x20zohoAccount\x20will\x20be\x20deleted.')[_0xfe59b1(0x4bd)](_0xfe59b1(0x211))['ok'](_0xfe59b1(0x25de))[_0xfe59b1(0x6c3)](_0xfe59b1(0xcf0))[_0xfe59b1(0x1f27)](_0x3df30e);_0x535673[_0xfe59b1(0x2615)](_0x6a4c59)[_0xfe59b1(0x146b)](function(){const _0x384a6f=_0xfe59b1;_0x412028['intZohoAccount'][_0x384a6f(0x1fac)]({'id':_0x1e2047[_0x384a6f(0x26df)]['id']})[_0x384a6f(0x2945)][_0x384a6f(0x146b)](function(){const _0x1f9a34=_0x384a6f;_0x3f65c0()[_0x1f9a34(0x2640)](_0x1e2047[_0x1f9a34(0x1e58)],{'id':_0x1e2047['zohoAccount']['id']}),_0x3e49dc[_0x1f9a34(0x1c75)]({'title':_0x1f9a34(0x135c),'msg':(_0x1e2047[_0x1f9a34(0x26df)][_0x1f9a34(0x19eb)]||'zohoAccount')+_0x1f9a34(0x23e3)}),_0x1789b9(_0x1e2047[_0x1f9a34(0x26df)]);})[_0x384a6f(0x129e)](function(_0x413e41){const _0x1de224=_0x384a6f;if(_0x413e41[_0x1de224(0x524)]&&_0x413e41[_0x1de224(0x524)]['errors']&&_0x413e41[_0x1de224(0x524)][_0x1de224(0xcef)][_0x1de224(0x402)]){_0x1e2047[_0x1de224(0xcef)]=_0x413e41[_0x1de224(0x524)][_0x1de224(0xcef)]||[{'message':_0x413e41['toString'](),'type':'api.intZohoAccount.delete'}];for(let _0x1698f2=0x0;_0x1698f2<_0x413e41[_0x1de224(0x524)][_0x1de224(0xcef)]['length'];_0x1698f2++){_0x3e49dc[_0x1de224(0x1980)]({'title':_0x413e41[_0x1de224(0x524)][_0x1de224(0xcef)][_0x1698f2][_0x1de224(0x1142)],'msg':_0x413e41[_0x1de224(0x524)][_0x1de224(0xcef)][_0x1698f2][_0x1de224(0x7fd)]});}}else _0x3e49dc['error']({'title':_0x413e41[_0x1de224(0x107b)]?'API:'+_0x413e41[_0x1de224(0x107b)]+_0x1de224(0x1315)+_0x413e41[_0x1de224(0x167f)]:_0x1de224(0xacf),'msg':_0x413e41[_0x1de224(0x524)]?JSON[_0x1de224(0x10bb)](_0x413e41[_0x1de224(0x524)][_0x1de224(0x7fd)]):_0x413e41[_0x1de224(0x7fd)]||_0x413e41[_0x1de224(0xd5f)]()});});},function(){});}function _0x4c3a29(_0x41f9df){return _0x41f9df===null?undefined:new Date(_0x41f9df);}function _0x1789b9(_0xbbf9a6){const _0x563cc9=_0x2c7179;_0x535673[_0x563cc9(0x2458)](_0xbbf9a6);}}const _0x1df74a=_0x15d976;;const _0x3ecf64=_0x4acfac['p']+_0x313a4d(0x16ba);;const _0x128885=_0x4acfac['p']+_0x313a4d(0x1eac);;_0x1f997e['$inject']=['$mdDialog',_0x313a4d(0x4d8),_0x313a4d(0x247f),_0x313a4d(0x1fe4),_0x313a4d(0xa87)];function _0x1f997e(_0x372c84,_0x4f7d37,_0x4c7626,_0x5be2bc,_0x396bb7){const _0x3cab40=_0x313a4d,_0x4dc561=this;_0x4dc561[_0x3cab40(0x2321)]=_0x396bb7[_0x3cab40(0xb12)](),_0x4dc561[_0x3cab40(0x26df)]={},_0x4dc561[_0x3cab40(0x76d)]={},_0x4dc561[_0x3cab40(0x1723)]=[],_0x4dc561['selectedZohoConfiguration']=-0x1,_0x4dc561[_0x3cab40(0x2514)],_0x4dc561[_0x3cab40(0x5aa)]=_0x1bb59a,_0x4dc561[_0x3cab40(0x10a3)]=_0xa57e81,_0x4dc561['createOrEditZohoConfiguration']=_0x2e8b90,_0x4dc561[_0x3cab40(0xd5d)]=_0x1503fa,_0x4dc561[_0x3cab40(0x21c)]=_0x43a367;function _0x43a367(){const _0x50b930=_0x3cab40;return _0x4c7626[_0x50b930(0x178a)][_0x50b930(0x18e1)]({'id':_0x4dc561[_0x50b930(0x76d)]['id']},_0x4dc561[_0x50b930(0x76d)])[_0x50b930(0x2945)][_0x50b930(0x146b)](function(){const _0xb7e6c6=_0x50b930;_0x5be2bc[_0xb7e6c6(0x1c75)]({'title':_0xb7e6c6(0x1673),'msg':'Module\x20has\x20been\x20updated!'});})[_0x50b930(0x129e)](function(_0x5b881a){const _0x4db613=_0x50b930;_0x5be2bc['error']({'title':_0x5b881a['status']?_0x4db613(0x262a)+_0x5b881a[_0x4db613(0x107b)]+_0x4db613(0x1315)+_0x5b881a[_0x4db613(0x167f)]:_0x4db613(0x203b),'msg':_0x5b881a[_0x4db613(0x524)]?JSON[_0x4db613(0x10bb)](_0x5b881a[_0x4db613(0x524)]):_0x5b881a[_0x4db613(0xd5f)]()});});}function _0x1bb59a(_0xfa85b4,_0x4c41cc){const _0x33d770=_0x3cab40;_0x4dc561[_0x33d770(0x26df)]=_0xfa85b4,_0x4dc561[_0x33d770(0x2514)]=typeof _0x4c41cc!==_0x33d770(0x2274)?_0x4c41cc:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x4c7626[_0x33d770(0x15d7)][_0x33d770(0xeb)]({'id':_0x4dc561['zohoAccount']['id'],'sort':_0x33d770(0x12f2)})[_0x33d770(0x2945)][_0x33d770(0x146b)](function(_0x54b998){const _0x5ec360=_0x33d770;return _0x4dc561['configurations']=_0x54b998[_0x5ec360(0x19c7)]?_0x54b998[_0x5ec360(0x19c7)]:[],_0x4dc561[_0x5ec360(0x1723)][_0x5ec360(0x402)]&&_0x4dc561[_0x5ec360(0x10a3)](0x0),_0x4c7626[_0x5ec360(0x212)][_0x5ec360(0x16b4)]({'nolimit':!![],'sort':_0x5ec360(0x19eb)})[_0x5ec360(0x2945)];})['then'](function(_0x158b11){const _0x3d55aa=_0x33d770;_0x4dc561[_0x3d55aa(0x85b)]=_0x158b11[_0x3d55aa(0x19c7)]?_0x158b11[_0x3d55aa(0x19c7)]:[],_0x4dc561[_0x3d55aa(0x80c)]=_0x3f65c0()['keyBy'](_0x4dc561[_0x3d55aa(0x85b)],'id');})['catch'](function(_0x40e88f){const _0x506913=_0x33d770;_0x5be2bc[_0x506913(0x1980)]({'title':_0x40e88f[_0x506913(0x107b)]?_0x506913(0x262a)+_0x40e88f[_0x506913(0x107b)]+_0x506913(0x1315)+_0x40e88f[_0x506913(0x167f)]:_0x506913(0x9e7),'msg':_0x40e88f[_0x506913(0x524)]?JSON[_0x506913(0x10bb)](_0x40e88f['data']):_0x40e88f[_0x506913(0xd5f)]()});});}function _0xa57e81(_0x2c575e){const _0xee4cd3=_0x3cab40;_0x4dc561[_0xee4cd3(0x76d)]=_0x4dc561[_0xee4cd3(0x1723)][_0x2c575e],_0x4dc561[_0xee4cd3(0x1ffc)]=_0x2c575e,_0x4c7626[_0xee4cd3(0x178a)][_0xee4cd3(0x18ee)]({'id':_0x4dc561['zohoConfiguration']['id']})[_0xee4cd3(0x2945)]['then'](function(_0x1db0d0){const _0x18df14=_0xee4cd3;return _0x4dc561[_0x18df14(0x3c8)]=_0x1db0d0[_0x18df14(0x19c7)]?_0x1db0d0[_0x18df14(0x19c7)]:[],_0x4c7626[_0x18df14(0x178a)][_0x18df14(0xc2a)]({'id':_0x4dc561[_0x18df14(0x76d)]['id']})[_0x18df14(0x2945)];})[_0xee4cd3(0x146b)](function(_0x2d127d){const _0x209d10=_0xee4cd3;return _0x4dc561[_0x209d10(0x2358)]=_0x2d127d['rows']?_0x2d127d['rows']:[],_0x4c7626[_0x209d10(0x178a)][_0x209d10(0x12ff)]({'id':_0x4dc561[_0x209d10(0x76d)]['id']})['$promise'];})[_0xee4cd3(0x146b)](function(_0x6c17e5){const _0x4d7c59=_0xee4cd3;_0x4dc561[_0x4d7c59(0x2867)]=_0x6c17e5[_0x4d7c59(0x19c7)]?_0x6c17e5[_0x4d7c59(0x19c7)]:[];})[_0xee4cd3(0x129e)](function(_0x110440){const _0x7a7337=_0xee4cd3;_0x5be2bc['error']({'title':_0x110440['status']?_0x7a7337(0x262a)+_0x110440[_0x7a7337(0x107b)]+_0x7a7337(0x1315)+_0x110440['statusText']:_0x7a7337(0x6ca),'msg':_0x110440['data']?JSON[_0x7a7337(0x10bb)](_0x110440[_0x7a7337(0x524)]):_0x110440['toString']()});});}function _0x2e8b90(_0x409369,_0x189116){const _0x4f5a4f=_0x3cab40;_0x372c84[_0x4f5a4f(0x2615)]({'controller':'CreateOrEditZohoConfigurationDialogController','controllerAs':'vm','templateUrl':_0x3ecf64,'parent':angular[_0x4f5a4f(0x1853)](_0x4f7d37['body']),'targetEvent':_0x409369,'clickOutsideToClose':!![],'locals':{'zohoConfiguration':_0x189116,'configurations':_0x4dc561[_0x4f5a4f(0x1723)],'license':null,'setting':null,'crudPermissions':_0x4dc561[_0x4f5a4f(0x2514)]}})[_0x4f5a4f(0x1ec6)](function(){const _0x3af64e=_0x4f5a4f;_0x4dc561[_0x3af64e(0x10a3)](0x0);});}function _0x1503fa(_0x196973,_0x118b63){const _0x3df224=_0x3cab40,_0xd89c80=_0x372c84['confirm']()[_0x3df224(0x1189)](_0x3df224(0x36b))[_0x3df224(0x1cbe)](_0x3df224(0x16d3)+(_0x118b63[_0x3df224(0x19eb)]||_0x3df224(0x76d))+''+_0x3df224(0xe01))[_0x3df224(0x4bd)](_0x3df224(0x2281))['targetEvent'](_0x196973)['ok']('OK')[_0x3df224(0x6c3)](_0x3df224(0x39a));_0x372c84[_0x3df224(0x2615)](_0xd89c80)[_0x3df224(0x146b)](function(){const _0x50a6a6=_0x3df224;_0x4c7626[_0x50a6a6(0x178a)][_0x50a6a6(0x1fac)]({'id':_0x118b63['id']})[_0x50a6a6(0x2945)][_0x50a6a6(0x146b)](function(){const _0x22d683=_0x50a6a6;_0x3f65c0()[_0x22d683(0x2640)](_0x4dc561[_0x22d683(0x1723)],{'id':_0x118b63['id']}),_0x5be2bc[_0x22d683(0x1c75)]({'title':_0x22d683(0x1223),'msg':_0x118b63[_0x22d683(0x19eb)]?_0x118b63[_0x22d683(0x19eb)]+_0x22d683(0x23e3):''});})[_0x50a6a6(0x129e)](function(_0x460ef0){const _0x3bef96=_0x50a6a6;_0x5be2bc[_0x3bef96(0x1980)]({'title':_0x460ef0[_0x3bef96(0x107b)]?_0x3bef96(0x262a)+_0x460ef0[_0x3bef96(0x107b)]+'\x20-\x20'+_0x460ef0[_0x3bef96(0x167f)]:_0x3bef96(0xff1),'msg':_0x460ef0[_0x3bef96(0x524)]?JSON[_0x3bef96(0x10bb)](_0x460ef0[_0x3bef96(0x524)]):_0x460ef0[_0x3bef96(0xd5f)]()});})[_0x50a6a6(0x1ec6)](function(){const _0x566bca=_0x50a6a6;_0x4dc561[_0x566bca(0x10a3)](0x0);});},function(){const _0x4e6adb=_0x3df224;console[_0x4e6adb(0x1a74)]('CANCEL');});}_0x4dc561[_0x3cab40(0x15a6)]=[],_0x4dc561['createOrEditSubject']=_0xe53147,_0x4dc561[_0x3cab40(0x10d5)]=_0x565b30,_0x4dc561[_0x3cab40(0x1777)]=_0x29a911;function _0xe53147(_0x23d9ba,_0x33b990){const _0x57fafa=_0x3cab40;_0x372c84[_0x57fafa(0x2615)]({'controller':_0x57fafa(0x25cb),'controllerAs':'vm','templateUrl':_0x128885,'parent':angular['element'](_0x4f7d37[_0x57fafa(0x2586)]),'targetEvent':_0x23d9ba,'clickOutsideToClose':!![],'locals':{'type':_0x57fafa(0xe32),'item':_0x33b990,'items':_0x4dc561[_0x57fafa(0x3c8)],'configuration':_0x4dc561[_0x57fafa(0x76d)],'account':_0x4dc561['zohoAccount'],'license':null,'setting':null,'crudPermissions':_0x4dc561[_0x57fafa(0x2514)]}});}function _0x28a5cc(_0x421a5c){const _0x452310=_0x3cab40;_0x4c7626['intZohoField'][_0x452310(0x1fac)]({'id':_0x421a5c['id']})[_0x452310(0x2945)][_0x452310(0x146b)](function(){const _0x504328=_0x452310;_0x3f65c0()[_0x504328(0x2640)](_0x4dc561[_0x504328(0x3c8)],{'id':_0x421a5c['id']}),_0x5be2bc['success']({'title':'Subject\x20deleted!','msg':_0x504328(0x761)});})[_0x452310(0x129e)](function(_0x28c6e2){const _0x166592=_0x452310;_0x5be2bc[_0x166592(0x1980)]({'title':_0x28c6e2[_0x166592(0x107b)]?_0x166592(0x262a)+_0x28c6e2[_0x166592(0x107b)]+_0x166592(0x1315)+_0x28c6e2[_0x166592(0x167f)]:_0x166592(0xf6e),'msg':_0x28c6e2['data']?JSON['stringify'](_0x28c6e2['data']):_0x28c6e2[_0x166592(0xd5f)]()});});}function _0x565b30(_0x233852,_0x5943dc){const _0x43d6ec=_0x3cab40,_0x2af97e=_0x372c84['confirm']()[_0x43d6ec(0x1189)](_0x43d6ec(0x317))[_0x43d6ec(0x1cbe)](_0x43d6ec(0xf7f)+_0x43d6ec(0xe01))[_0x43d6ec(0x4bd)](_0x43d6ec(0x5d1))[_0x43d6ec(0x1f27)](_0x233852)['ok']('OK')[_0x43d6ec(0x6c3)](_0x43d6ec(0x39a));_0x372c84[_0x43d6ec(0x2615)](_0x2af97e)[_0x43d6ec(0x146b)](function(){_0x28a5cc(_0x5943dc);},function(){const _0xebcdc5=_0x43d6ec;console[_0xebcdc5(0x1a74)](_0xebcdc5(0x39a));});}function _0x29a911(_0x4cee06){const _0x30b55c=_0x3cab40,_0x2abdea=_0x372c84[_0x30b55c(0x1e8a)]()[_0x30b55c(0x1189)](_0x30b55c(0x2e6))[_0x30b55c(0x1cbe)](_0x30b55c(0x16d3)+_0x4dc561[_0x30b55c(0x15a6)][_0x30b55c(0x402)]+_0x30b55c(0x2452)+_0x30b55c(0xe01))[_0x30b55c(0x4bd)](_0x30b55c(0x1209))[_0x30b55c(0x1f27)](_0x4cee06)['ok']('OK')[_0x30b55c(0x6c3)](_0x30b55c(0x39a));_0x372c84['show'](_0x2abdea)[_0x30b55c(0x146b)](function(){const _0x46517a=_0x30b55c;_0x4dc561[_0x46517a(0x15a6)][_0x46517a(0x1df5)](function(_0xe9e4c7){_0x28a5cc(_0xe9e4c7);}),_0x4dc561[_0x46517a(0x15a6)]=[];});}_0x4dc561[_0x3cab40(0x126)]=[],_0x4dc561[_0x3cab40(0x18da)]=_0x113e0f,_0x4dc561['deleteDescriptionConfirm']=_0x405d0f,_0x4dc561[_0x3cab40(0x2241)]=_0xafeed6;function _0x113e0f(_0x2083b1,_0x3c025a){const _0x244774=_0x3cab40;_0x372c84['show']({'controller':_0x244774(0x25cb),'controllerAs':'vm','templateUrl':_0x128885,'parent':angular[_0x244774(0x1853)](_0x4f7d37[_0x244774(0x2586)]),'targetEvent':_0x2083b1,'clickOutsideToClose':!![],'locals':{'type':_0x244774(0xb17),'item':_0x3c025a,'items':_0x4dc561[_0x244774(0x2358)],'configuration':_0x4dc561[_0x244774(0x76d)],'account':_0x4dc561['zohoAccount'],'license':null,'setting':null,'crudPermissions':_0x4dc561[_0x244774(0x2514)]}});}function _0x215b74(_0x3175bd){const _0xa964f7=_0x3cab40;_0x4c7626[_0xa964f7(0x6b9)][_0xa964f7(0x1fac)]({'id':_0x3175bd['id']})[_0xa964f7(0x2945)]['then'](function(){const _0x33f041=_0xa964f7;_0x3f65c0()['remove'](_0x4dc561['descriptions'],{'id':_0x3175bd['id']}),_0x5be2bc[_0x33f041(0x1c75)]({'title':_0x33f041(0xaf8),'msg':'Description\x20has\x20been\x20deleted!'});})[_0xa964f7(0x129e)](function(_0x2a9186){const _0x35ccf0=_0xa964f7;_0x5be2bc[_0x35ccf0(0x1980)]({'title':_0x2a9186[_0x35ccf0(0x107b)]?_0x35ccf0(0x262a)+_0x2a9186[_0x35ccf0(0x107b)]+_0x35ccf0(0x1315)+_0x2a9186[_0x35ccf0(0x167f)]:'SYSTEM:DELETECONFIGURATIONFIELD','msg':_0x2a9186[_0x35ccf0(0x524)]?JSON[_0x35ccf0(0x10bb)](_0x2a9186[_0x35ccf0(0x524)]):_0x2a9186[_0x35ccf0(0xd5f)]()});});}function _0x405d0f(_0x535570,_0x4fedbc){const _0x36c740=_0x3cab40,_0x1eb25e=_0x372c84[_0x36c740(0x1e8a)]()[_0x36c740(0x1189)](_0x36c740(0x1e9))[_0x36c740(0x1cbe)]('Description'+_0x36c740(0xe01))[_0x36c740(0x4bd)](_0x36c740(0x1c5c))[_0x36c740(0x1f27)](_0x535570)['ok']('OK')[_0x36c740(0x6c3)](_0x36c740(0x39a));_0x372c84[_0x36c740(0x2615)](_0x1eb25e)[_0x36c740(0x146b)](function(){_0x215b74(_0x4fedbc);},function(){const _0x3e1cbe=_0x36c740;console[_0x3e1cbe(0x1a74)](_0x3e1cbe(0x39a));});}function _0xafeed6(_0x2f33a5){const _0x584591=_0x3cab40,_0x4825e8=_0x372c84['confirm']()[_0x584591(0x1189)](_0x584591(0x1acd))[_0x584591(0x1cbe)](_0x584591(0x16d3)+_0x4dc561['selectedDescriptions'][_0x584591(0x402)]+_0x584591(0x2452)+_0x584591(0xe01))[_0x584591(0x4bd)](_0x584591(0x1be7))[_0x584591(0x1f27)](_0x2f33a5)['ok']('OK')[_0x584591(0x6c3)]('CANCEL');_0x372c84[_0x584591(0x2615)](_0x4825e8)[_0x584591(0x146b)](function(){const _0x3d254b=_0x584591;_0x4dc561['selectedDescriptions']['forEach'](function(_0x50ecbf){_0x215b74(_0x50ecbf);}),_0x4dc561[_0x3d254b(0x126)]=[];});}_0x4dc561[_0x3cab40(0x2605)]=[],_0x4dc561[_0x3cab40(0x737)]=_0x462694,_0x4dc561[_0x3cab40(0x2180)]=_0x8b97a0,_0x4dc561[_0x3cab40(0x816)]=_0x52de8d;function _0x462694(_0x5680d4,_0x403531){const _0x3cc6b4=_0x3cab40;_0x372c84[_0x3cc6b4(0x2615)]({'controller':_0x3cc6b4(0x25cb),'controllerAs':'vm','templateUrl':_0x128885,'parent':angular[_0x3cc6b4(0x1853)](_0x4f7d37[_0x3cc6b4(0x2586)]),'targetEvent':_0x5680d4,'clickOutsideToClose':!![],'locals':{'type':_0x3cc6b4(0x65c),'item':_0x403531,'items':_0x4dc561[_0x3cc6b4(0x2867)],'configuration':_0x4dc561[_0x3cc6b4(0x76d)],'account':_0x4dc561[_0x3cc6b4(0x26df)],'license':null,'setting':null,'crudPermissions':_0x4dc561[_0x3cc6b4(0x2514)]}});}function _0x1329e8(_0x2aa6a2){const _0x3a4529=_0x3cab40;_0x4c7626[_0x3a4529(0x6b9)]['delete']({'id':_0x2aa6a2['id']})[_0x3a4529(0x2945)][_0x3a4529(0x146b)](function(){const _0x3ce016=_0x3a4529;_0x3f65c0()[_0x3ce016(0x2640)](_0x4dc561[_0x3ce016(0x2867)],{'id':_0x2aa6a2['id']}),_0x5be2bc['success']({'title':_0x3ce016(0x24ce),'msg':_0x3ce016(0x1c07)});})['catch'](function(_0x504a59){const _0x1d5214=_0x3a4529;_0x5be2bc[_0x1d5214(0x1980)]({'title':_0x504a59[_0x1d5214(0x107b)]?_0x1d5214(0x262a)+_0x504a59[_0x1d5214(0x107b)]+_0x1d5214(0x1315)+_0x504a59[_0x1d5214(0x167f)]:_0x1d5214(0xf6e),'msg':_0x504a59[_0x1d5214(0x524)]?JSON[_0x1d5214(0x10bb)](_0x504a59[_0x1d5214(0x524)]):_0x504a59[_0x1d5214(0xd5f)]()});});}function _0x8b97a0(_0x3f20ea,_0x3f7726){const _0x379ad5=_0x3cab40,_0x3a5bec=_0x372c84[_0x379ad5(0x1e8a)]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20field?')[_0x379ad5(0x1cbe)](_0x379ad5(0x2216)+'\x20will\x20be\x20deleted.')[_0x379ad5(0x4bd)](_0x379ad5(0x2487))['targetEvent'](_0x3f20ea)['ok']('OK')[_0x379ad5(0x6c3)](_0x379ad5(0x39a));_0x372c84[_0x379ad5(0x2615)](_0x3a5bec)[_0x379ad5(0x146b)](function(){_0x1329e8(_0x3f7726);},function(){console['log']('CANCEL');});}function _0x52de8d(_0x147193){const _0x5e2a2c=_0x3cab40,_0x3fef28=_0x372c84[_0x5e2a2c(0x1e8a)]()[_0x5e2a2c(0x1189)](_0x5e2a2c(0xe75))[_0x5e2a2c(0x1cbe)](_0x5e2a2c(0x16d3)+_0x4dc561[_0x5e2a2c(0x2605)][_0x5e2a2c(0x402)]+_0x5e2a2c(0x2452)+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x5e2a2c(0x176a))['targetEvent'](_0x147193)['ok']('OK')[_0x5e2a2c(0x6c3)](_0x5e2a2c(0x39a));_0x372c84[_0x5e2a2c(0x2615)](_0x3fef28)['then'](function(){const _0x41bb80=_0x5e2a2c;_0x4dc561[_0x41bb80(0x2605)][_0x41bb80(0x1df5)](function(_0x260a26){_0x1329e8(_0x260a26);}),_0x4dc561[_0x41bb80(0x2605)]=[];});}}const _0x4f3ee6=_0x1f997e;;_0x10ca1a[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1862),_0x313a4d(0xd08),'$mdDialog','$q',_0x313a4d(0x214b),_0x313a4d(0x1fe4),_0x313a4d(0x1723),'zohoConfiguration',_0x313a4d(0x247f),_0x313a4d(0xa87),_0x313a4d(0x2690),_0x313a4d(0x15b9),_0x313a4d(0x2514)];function _0x10ca1a(_0x29c84a,_0xd60561,_0x544e96,_0x4fbbc3,_0x579651,_0x2af6fd,_0x526f9b,_0x26008a,_0x33ea05,_0x428a8f,_0x42228e,_0x593ba5,_0x150e37,_0x4c82e2){const _0x133083=_0x313a4d,_0x364fbe=this;_0x364fbe['currentUser']=_0x42228e[_0x133083(0xb12)](),_0x364fbe['errors']=[],_0x364fbe[_0x133083(0x15b9)]=_0x150e37,_0x364fbe[_0x133083(0x2690)]=_0x593ba5,_0x364fbe['crudPermissions']=_0x4c82e2,_0x364fbe[_0x133083(0x855)]={},_0x364fbe[_0x133083(0x2251)]=_0x364fbe[_0x133083(0x15b9)]&&_0x364fbe[_0x133083(0x15b9)][_0x133083(0x976)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x364fbe['title']=_0x133083(0x126e),_0x364fbe['zohoConfiguration']=angular['copy'](_0x33ea05),_0x364fbe['configurations']=_0x26008a,_0x364fbe['newZohoConfiguration']=![];!_0x364fbe[_0x133083(0x76d)]&&(_0x364fbe[_0x133083(0x76d)]={'channel':'voice','type':_0x133083(0x7b0)},_0x364fbe[_0x133083(0x1189)]=_0x133083(0x10da),_0x364fbe[_0x133083(0x2401)]=!![]);_0x364fbe['addNewZohoConfiguration']=_0x2f24a1,_0x364fbe[_0x133083(0xa89)]=_0x4395ca,_0x364fbe[_0x133083(0xd5d)]=_0x1b266e,_0x364fbe[_0x133083(0xe73)]=_0x4af97c,_0x364fbe[_0x133083(0x13f3)]=_0x3eb509;function _0x2f24a1(){const _0x2ea9fe=_0x133083;_0x364fbe[_0x2ea9fe(0xcef)]=[],_0x428a8f['intZohoAccount'][_0x2ea9fe(0xa17)]({'id':_0xd60561['params']['id']},_0x364fbe[_0x2ea9fe(0x76d)])['$promise'][_0x2ea9fe(0x146b)](function(_0x577297){const _0x56573f=_0x2ea9fe;_0x364fbe[_0x56573f(0x1723)][_0x56573f(0xb3d)](_0x577297['toJSON']()),_0x526f9b[_0x56573f(0x1c75)]({'title':_0x56573f(0x15b5),'msg':_0x364fbe[_0x56573f(0x76d)]['name']?_0x364fbe['zohoConfiguration'][_0x56573f(0x19eb)]+_0x56573f(0x1386):''}),_0x3eb509(_0x577297);})[_0x2ea9fe(0x129e)](function(_0x463415){const _0x235065=_0x2ea9fe;if(_0x463415['data']&&_0x463415[_0x235065(0x524)][_0x235065(0xcef)]&&_0x463415[_0x235065(0x524)][_0x235065(0xcef)][_0x235065(0x402)]){_0x364fbe[_0x235065(0xcef)]=_0x463415[_0x235065(0x524)][_0x235065(0xcef)]||[{'message':_0x463415[_0x235065(0xd5f)](),'type':_0x235065(0x24c)}];for(let _0x3cfe84=0x0;_0x3cfe84<_0x463415['data']['errors'][_0x235065(0x402)];_0x3cfe84+=0x1){_0x526f9b[_0x235065(0x1980)]({'title':_0x463415['data'][_0x235065(0xcef)][_0x3cfe84][_0x235065(0x1142)],'msg':_0x463415[_0x235065(0x524)][_0x235065(0xcef)][_0x3cfe84]['message']});}}else _0x526f9b['error']({'title':_0x463415['status']?_0x235065(0x262a)+_0x463415[_0x235065(0x107b)]+_0x235065(0x1315)+_0x463415[_0x235065(0x167f)]:'api.intZohoConfiguration.save','msg':_0x463415[_0x235065(0x524)]?JSON[_0x235065(0x10bb)](_0x463415[_0x235065(0x524)][_0x235065(0x7fd)]):_0x463415[_0x235065(0xd5f)]()});});}function _0x4395ca(){const _0x48df67=_0x133083;_0x364fbe['errors']=[],_0x428a8f[_0x48df67(0x178a)][_0x48df67(0x18e1)]({'id':_0x364fbe['zohoConfiguration']['id']},_0x364fbe[_0x48df67(0x76d)])[_0x48df67(0x2945)][_0x48df67(0x146b)](function(_0x254da6){const _0x5295fb=_0x48df67,_0x357548=_0x3f65c0()['find'](_0x364fbe[_0x5295fb(0x1723)],{'id':_0x254da6['id']});_0x357548&&_0x3f65c0()[_0x5295fb(0x168d)](_0x357548,_0x3f65c0()['pick'](_0x254da6[_0x5295fb(0x2488)](),_0x3f65c0()[_0x5295fb(0x627)](_0x357548))),_0x526f9b['success']({'title':_0x5295fb(0x1c82),'msg':_0x364fbe[_0x5295fb(0x76d)][_0x5295fb(0x19eb)]?_0x364fbe[_0x5295fb(0x76d)][_0x5295fb(0x19eb)]+'\x20has\x20been\x20saved!':''}),_0x3eb509(_0x254da6);})[_0x48df67(0x129e)](function(_0x1e1d3a){const _0x5442d6=_0x48df67;if(_0x1e1d3a[_0x5442d6(0x524)]&&_0x1e1d3a[_0x5442d6(0x524)][_0x5442d6(0xcef)]&&_0x1e1d3a[_0x5442d6(0x524)][_0x5442d6(0xcef)][_0x5442d6(0x402)]){_0x364fbe[_0x5442d6(0xcef)]=_0x1e1d3a[_0x5442d6(0x524)][_0x5442d6(0xcef)]||[{'message':_0x1e1d3a[_0x5442d6(0xd5f)](),'type':_0x5442d6(0x62d)}];for(let _0x22769c=0x0;_0x22769c<_0x1e1d3a[_0x5442d6(0x524)][_0x5442d6(0xcef)][_0x5442d6(0x402)];_0x22769c++){_0x526f9b['error']({'title':_0x1e1d3a[_0x5442d6(0x524)][_0x5442d6(0xcef)][_0x22769c][_0x5442d6(0x1142)],'msg':_0x1e1d3a['data'][_0x5442d6(0xcef)][_0x22769c][_0x5442d6(0x7fd)]});}}else _0x526f9b[_0x5442d6(0x1980)]({'title':_0x1e1d3a[_0x5442d6(0x107b)]?_0x5442d6(0x262a)+_0x1e1d3a[_0x5442d6(0x107b)]+_0x5442d6(0x1315)+_0x1e1d3a[_0x5442d6(0x167f)]:_0x5442d6(0x62d),'msg':_0x1e1d3a[_0x5442d6(0x524)]?JSON['stringify'](_0x1e1d3a[_0x5442d6(0x524)][_0x5442d6(0x7fd)]):_0x1e1d3a['toString']()});});}function _0x1b266e(_0x3d8fb7){const _0x3bf1d1=_0x133083;_0x364fbe['errors']=[];const _0x20658f=_0x4fbbc3[_0x3bf1d1(0x1e8a)]()[_0x3bf1d1(0x1189)](_0x3bf1d1(0x1d64))[_0x3bf1d1(0x80f)](_0x3bf1d1(0x1391))['ariaLabel']('Delete\x20ZohoConfiguration')['ok'](_0x3bf1d1(0x25de))[_0x3bf1d1(0x6c3)](_0x3bf1d1(0xcf0))[_0x3bf1d1(0x1f27)](_0x3d8fb7);_0x4fbbc3['show'](_0x20658f)[_0x3bf1d1(0x146b)](function(){const _0x4e4cab=_0x3bf1d1;_0x428a8f[_0x4e4cab(0x178a)]['delete']({'id':_0x364fbe[_0x4e4cab(0x76d)]['id']})['$promise'][_0x4e4cab(0x146b)](function(){const _0x23df19=_0x4e4cab;_0x3f65c0()[_0x23df19(0x2640)](_0x364fbe[_0x23df19(0x1723)],{'id':_0x364fbe[_0x23df19(0x76d)]['id']}),_0x526f9b[_0x23df19(0x1c75)]({'title':_0x23df19(0x63b),'msg':(_0x364fbe[_0x23df19(0x76d)][_0x23df19(0x19eb)]||_0x23df19(0x76d))+_0x23df19(0x23e3)}),_0x3eb509(_0x364fbe[_0x23df19(0x76d)]);})['catch'](function(_0x25e61c){const _0x5f116b=_0x4e4cab;if(_0x25e61c[_0x5f116b(0x524)]&&_0x25e61c[_0x5f116b(0x524)][_0x5f116b(0xcef)]&&_0x25e61c['data'][_0x5f116b(0xcef)]['length']){_0x364fbe[_0x5f116b(0xcef)]=_0x25e61c[_0x5f116b(0x524)]['errors']||[{'message':_0x25e61c['toString'](),'type':_0x5f116b(0x10c6)}];for(let _0x5cd3e0=0x0;_0x5cd3e0<_0x25e61c['data'][_0x5f116b(0xcef)][_0x5f116b(0x402)];_0x5cd3e0++){_0x526f9b[_0x5f116b(0x1980)]({'title':_0x25e61c['data']['errors'][_0x5cd3e0][_0x5f116b(0x1142)],'msg':_0x25e61c[_0x5f116b(0x524)][_0x5f116b(0xcef)][_0x5cd3e0]['message']});}}else _0x526f9b[_0x5f116b(0x1980)]({'title':_0x25e61c[_0x5f116b(0x107b)]?_0x5f116b(0x262a)+_0x25e61c[_0x5f116b(0x107b)]+'\x20-\x20'+_0x25e61c[_0x5f116b(0x167f)]:_0x5f116b(0x10c6),'msg':_0x25e61c[_0x5f116b(0x524)]?JSON[_0x5f116b(0x10bb)](_0x25e61c[_0x5f116b(0x524)]['message']):_0x25e61c[_0x5f116b(0x7fd)]||_0x25e61c[_0x5f116b(0xd5f)]()});});},function(){});}function _0x4af97c(_0x26e210){return _0x26e210===null?undefined:new Date(_0x26e210);}function _0x3eb509(_0xf1a2b){_0x4fbbc3['hide'](_0xf1a2b);}}const _0x1ef2e3=_0x10ca1a;;_0x4da618[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1862),_0x313a4d(0xd08),_0x313a4d(0x10e8),_0x313a4d(0x1fe4),'configuration','items',_0x313a4d(0x2711),'account',_0x313a4d(0x1142),_0x313a4d(0x247f),'Auth',_0x313a4d(0x2514)];function _0x4da618(_0x187fab,_0x41f8db,_0x40f18e,_0x2b1250,_0x57402d,_0xb9c4e1,_0x117664,_0x9d9fc5,_0x241e2a,_0x1ec8ab,_0x52a095,_0x53df7b,_0x20f976){const _0x531480=_0x313a4d,_0x2cd0ea=this;_0x2cd0ea[_0x531480(0x2321)]=_0x53df7b['getCurrentUser'](),_0x2cd0ea[_0x531480(0xcef)]=[],_0x2cd0ea['title']=_0x531480(0x28ec)+_0x3f65c0()[_0x531480(0xd39)](_0x1ec8ab),_0x2cd0ea[_0x531480(0x2711)]=angular['copy'](_0x9d9fc5),_0x2cd0ea['items']=_0x117664,_0x2cd0ea[_0x531480(0x1142)]=_0x1ec8ab,_0x2cd0ea[_0x531480(0x2514)]=_0x20f976,_0x2cd0ea[_0x531480(0x23cd)]=![];!_0x2cd0ea[_0x531480(0x2711)]&&(_0x2cd0ea[_0x531480(0x2711)]={'type':'string'},_0x2cd0ea[_0x531480(0x2711)][_0x3f65c0()[_0x531480(0x83f)](_0x1ec8ab)+'Id']=_0xb9c4e1['id'],_0x2cd0ea[_0x531480(0x1189)]='INTEGRATIONS.NEW_'+_0x3f65c0()[_0x531480(0xd39)](_0x1ec8ab),_0x2cd0ea[_0x531480(0x23cd)]=!![]);_0x2cd0ea[_0x531480(0x1e65)]=_0x286150,_0x2cd0ea[_0x531480(0x150e)]=_0x369189,_0x2cd0ea[_0x531480(0xbaf)]=_0x51551b,_0x2cd0ea[_0x531480(0x21b1)]=_0xcd4524,_0x2cd0ea['closeDialog']=_0x2d53eb,_0x52a095[_0x531480(0x212)][_0x531480(0x16b4)]({'nolimit':!![]})['$promise'][_0x531480(0x146b)](function(_0x4e4bde){const _0x2e8024=_0x531480;return _0x2cd0ea[_0x2e8024(0x85b)]=_0x4e4bde[_0x2e8024(0x19c7)]?_0x4e4bde[_0x2e8024(0x19c7)]:[],_0x52a095[_0x2e8024(0x1cb3)][_0x2e8024(0x1ea2)]()[_0x2e8024(0x2945)];})[_0x531480(0x146b)](function(_0x59c824){const _0x45138f=_0x531480;return _0x2cd0ea[_0x45138f(0x1c8a)]=_0x3f65c0()[_0x45138f(0xa62)](_0x3f65c0()[_0x45138f(0x627)](_0x59c824),['$promise','$resolved',_0x45138f(0xc68),_0x45138f(0x144f),'sourceid']),_0x2cd0ea['voiceAgentReportColumns'][_0x45138f(0x1f47)](_0x45138f(0x643)),_0x52a095[_0x45138f(0x160)][_0x45138f(0x1ea2)]()[_0x45138f(0x2945)];})[_0x531480(0x146b)](function(_0x3b1a3f){const _0x2100ad=_0x531480;_0x2cd0ea[_0x2100ad(0x164b)]=_0x3f65c0()[_0x2100ad(0xa62)](_0x3f65c0()[_0x2100ad(0x627)](_0x3b1a3f),[_0x2100ad(0x2945),_0x2100ad(0x26f2),_0x2100ad(0xc68),'updatedAt',_0x2100ad(0xc3b)]),_0x2cd0ea[_0x2100ad(0x164b)][_0x2100ad(0x1f47)](_0x2100ad(0x643));})[_0x531480(0x129e)](function(_0x40b744){const _0x3ce141=_0x531480;_0x57402d[_0x3ce141(0x1980)]({'title':_0x40b744['status']?_0x3ce141(0x262a)+_0x40b744[_0x3ce141(0x107b)]+_0x3ce141(0x1315)+_0x40b744[_0x3ce141(0x167f)]:_0x3ce141(0x502),'msg':_0x40b744[_0x3ce141(0x524)]?JSON[_0x3ce141(0x10bb)](_0x40b744[_0x3ce141(0x524)]):_0x40b744[_0x3ce141(0xd5f)]()});}),_0x52a095[_0x531480(0x15d7)]['getFields']({'id':_0x241e2a['id'],'ticketType':_0xb9c4e1[_0x531480(0x21be)]?_0xb9c4e1[_0x531480(0x21be)]:undefined})['$promise'][_0x531480(0x146b)](function(_0x51b0c9){const _0x53ead6=_0x531480;_0x2cd0ea[_0x53ead6(0x822)]=!![],_0x2cd0ea['fields']=_0x51b0c9[_0x53ead6(0x19c7)]?_0x51b0c9['rows']:[],_0x2cd0ea[_0x53ead6(0x2711)][_0x53ead6(0x2912)]&&(_0x2cd0ea[_0x53ead6(0x165e)]=_0x3f65c0()[_0x53ead6(0xc84)](_0x2cd0ea[_0x53ead6(0x2867)],{'id':_0x2cd0ea[_0x53ead6(0x2711)][_0x53ead6(0x2912)]}));})[_0x531480(0x129e)](function(_0x53a800){const _0x2cdb54=_0x531480;_0x2cd0ea[_0x2cdb54(0x822)]=![],console['error'](_0x53a800);});function _0x286150(){const _0x338e95=_0x531480;_0x2cd0ea['errors']=[],_0x2cd0ea[_0x338e95(0x165e)]&&(_0x2cd0ea[_0x338e95(0x2711)][_0x338e95(0x2912)]=_0x2cd0ea[_0x338e95(0x165e)]['id'],_0x2cd0ea[_0x338e95(0x2711)][_0x338e95(0x25e3)]=_0x2cd0ea['customField'][_0x338e95(0x19eb)],_0x2cd0ea[_0x338e95(0x2711)][_0x338e95(0x165e)]=_0x2cd0ea['customField'][_0x338e95(0x1802)]),_0x52a095['intZohoField'][_0x338e95(0x1e3)](_0x2cd0ea[_0x338e95(0x2711)])[_0x338e95(0x2945)][_0x338e95(0x146b)](function(_0x2b730c){const _0x372502=_0x338e95;_0x2cd0ea[_0x372502(0x1fd6)][_0x372502(0xb3d)](_0x2b730c),_0x57402d[_0x372502(0x1c75)]({'title':_0x3f65c0()['capitalize'](_0x1ec8ab)+_0x372502(0x1637),'msg':_0x3f65c0()['capitalize'](_0x1ec8ab)+_0x372502(0x1386)}),_0x2d53eb();})[_0x338e95(0x129e)](function(_0x1a4824){const _0x3e85e8=_0x338e95;console[_0x3e85e8(0x1980)](_0x1a4824),_0x2cd0ea[_0x3e85e8(0xcef)]=_0x1a4824['data'][_0x3e85e8(0xcef)]||[{'message':_0x1a4824['toString'](),'type':'api.item.save'}];});}function _0x369189(){const _0x215f47=_0x531480;_0x2cd0ea['errors']=[],_0x2cd0ea[_0x215f47(0x165e)]&&(_0x2cd0ea['item'][_0x215f47(0x2912)]=_0x2cd0ea[_0x215f47(0x165e)]['id'],_0x2cd0ea['item'][_0x215f47(0x25e3)]=_0x2cd0ea[_0x215f47(0x165e)][_0x215f47(0x19eb)],_0x2cd0ea[_0x215f47(0x2711)][_0x215f47(0x165e)]=_0x2cd0ea[_0x215f47(0x165e)]['custom']),_0x52a095[_0x215f47(0x6b9)]['update']({'id':_0x2cd0ea['item']['id']},_0x2cd0ea[_0x215f47(0x2711)])[_0x215f47(0x2945)][_0x215f47(0x146b)](function(_0x3fa551){const _0x2d5327=_0x215f47,_0x24909d=_0x3f65c0()[_0x2d5327(0xc84)](_0x2cd0ea['items'],{'id':_0x3fa551['id']});_0x24909d&&_0x3f65c0()['merge'](_0x24909d,_0x3fa551),_0x57402d[_0x2d5327(0x1c75)]({'title':_0x3f65c0()[_0x2d5327(0x83f)](_0x1ec8ab)+_0x2d5327(0xffe),'msg':_0x3f65c0()[_0x2d5327(0x83f)](_0x1ec8ab)+_0x2d5327(0x24db)}),_0x2d53eb();})['catch'](function(_0x1d594c){const _0x17d125=_0x215f47;console[_0x17d125(0x1980)](_0x1d594c),_0x2cd0ea[_0x17d125(0xcef)]=_0x1d594c[_0x17d125(0x524)][_0x17d125(0xcef)]||[{'message':_0x1d594c[_0x17d125(0xd5f)](),'type':_0x17d125(0x1b4)}];});}function _0x51551b(_0x288283){const _0x463241=_0x531480;_0x2cd0ea[_0x463241(0xcef)]=[];const _0x1a6edf=_0x2b1250['confirm']()[_0x463241(0x1189)](_0x463241(0x1d64))[_0x463241(0x80f)](_0x463241(0xe57)+_0x1ec8ab+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x463241(0xb22)+_0x3f65c0()[_0x463241(0x83f)](_0x1ec8ab))['ok'](_0x463241(0x25de))[_0x463241(0x6c3)](_0x463241(0xcf0))[_0x463241(0x1f27)](_0x288283);_0x2b1250[_0x463241(0x2615)](_0x1a6edf)[_0x463241(0x146b)](function(){const _0x52a3a3=_0x463241;_0x52a095[_0x52a3a3(0x6b9)]['delete']({'id':_0x2cd0ea['item']['id']})[_0x52a3a3(0x2945)]['then'](function(){const _0x3cacf8=_0x52a3a3;_0x3f65c0()[_0x3cacf8(0x2640)](_0x2cd0ea[_0x3cacf8(0x1fd6)],{'id':_0x2cd0ea[_0x3cacf8(0x2711)]['id']}),_0x57402d[_0x3cacf8(0x1c75)]({'title':_0x3f65c0()[_0x3cacf8(0x83f)](_0x1ec8ab)+_0x3cacf8(0x1e6c),'msg':_0x3f65c0()[_0x3cacf8(0x83f)](_0x1ec8ab)+_0x3cacf8(0x23e3)}),_0x2d53eb();})[_0x52a3a3(0x129e)](function(_0x132c97){const _0x1c51f7=_0x52a3a3;console[_0x1c51f7(0x1980)](_0x132c97),_0x2cd0ea[_0x1c51f7(0xcef)]=_0x132c97[_0x1c51f7(0x524)]['errors']||[{'message':_0x132c97[_0x1c51f7(0xd5f)](),'type':_0x1c51f7(0x1cb0)}];});},function(){});}function _0xcd4524(){const _0x2e2baf=_0x531480;return _0x2cd0ea['item']['variableName']!==undefined?_0x2cd0ea[_0x2e2baf(0x2711)]['variableName']:_0x2e2baf(0x1040);}function _0x2d53eb(){const _0x22cd34=_0x531480;_0x2b1250[_0x22cd34(0x2458)]();}}const _0x4d0d78=_0x4da618;;_0x55d5ed['$inject']=[_0x313a4d(0x1862),_0x313a4d(0xd08),'$mdDialog',_0x313a4d(0x4d8),_0x313a4d(0x214b),_0x313a4d(0x2690),'setting',_0x313a4d(0x247f),_0x313a4d(0x1fe4),_0x313a4d(0xa87),_0x313a4d(0x26df),'userProfileSection'];function _0x55d5ed(_0x129a6e,_0x2dc414,_0x469531,_0x3609a4,_0x2b2632,_0x164a1d,_0x5db35b,_0x484424,_0x14b22b,_0x4efeb2,_0x1fe0c2,_0x32c27f){const _0x5f00dd=_0x313a4d,_0x203bab=this;_0x203bab[_0x5f00dd(0x2321)]=_0x4efeb2['getCurrentUser'](),_0x203bab['license']=_0x164a1d,_0x203bab['setting']=_0x5db35b,_0x203bab['passwordPattern']=_0x203bab[_0x5f00dd(0x15b9)]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x203bab['location']=_0x2dc414[_0x5f00dd(0x2414)]()+_0x5f00dd(0xb0e)+_0x2dc414[_0x5f00dd(0x148e)](),_0x203bab['zohoAccount']=_0x1fe0c2||_0x129a6e[_0x5f00dd(0x16a)][_0x5f00dd(0x26df)]||{},_0x203bab[_0x5f00dd(0x1366)]=_0x32c27f&&_0x32c27f['count']==0x1?_0x32c27f[_0x5f00dd(0x19c7)][0x0]:null,_0x203bab['crudPermissions']=_0x4efeb2[_0x5f00dd(0xe60)](_0x203bab[_0x5f00dd(0x1366)]?_0x203bab[_0x5f00dd(0x1366)][_0x5f00dd(0x2514)]:null),_0x203bab[_0x5f00dd(0x855)]={},_0x203bab[_0x5f00dd(0x1b09)]=_0x129a6e[_0x5f00dd(0x16a)][_0x5f00dd(0x13a3)]||0x0,_0x203bab['alert']=_0x14b22b['info'],_0x203bab[_0x5f00dd(0x281c)]=_0x51c46c,_0x203bab[_0x5f00dd(0xb26)]=_0x2409dd;function _0x51c46c(){const _0x7e4a85=_0x5f00dd;_0x129a6e['go']('app.integrations.zohoAccounts',{},{'reload':_0x7e4a85(0x17b3)});}function _0x2409dd(){const _0x31a09a=_0x5f00dd;_0x484424[_0x31a09a(0x15d7)][_0x31a09a(0x18e1)]({'id':_0x203bab[_0x31a09a(0x26df)]['id']},_0x203bab[_0x31a09a(0x26df)])[_0x31a09a(0x2945)][_0x31a09a(0x146b)](function(){const _0x3b4be8=_0x31a09a;_0x14b22b[_0x3b4be8(0x1c75)]({'title':_0x3b4be8(0x153e),'msg':_0x203bab[_0x3b4be8(0x26df)][_0x3b4be8(0x19eb)]?_0x203bab['zohoAccount'][_0x3b4be8(0x19eb)]+_0x3b4be8(0x6b0):''});})[_0x31a09a(0x129e)](function(_0x1e9d06){const _0x5d2168=_0x31a09a;_0x14b22b['error']({'title':_0x1e9d06[_0x5d2168(0x107b)]?'API:'+_0x1e9d06[_0x5d2168(0x107b)]+'\x20-\x20'+_0x1e9d06[_0x5d2168(0x167f)]:'SYSTEM:GETintZohoAccount','msg':_0x1e9d06['data']?JSON[_0x5d2168(0x10bb)](_0x1e9d06[_0x5d2168(0x524)]):_0x1e9d06[_0x5d2168(0xd5f)]()});});}}const _0x596891=_0x55d5ed;;const _0x4182b4=_0x4acfac['p']+_0x313a4d(0x28d8);;_0x3ee1cc[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),'$window','$state',_0x313a4d(0x15fe),_0x313a4d(0x10e8),_0x313a4d(0x4d8),_0x313a4d(0x1abe),'$translate','zohoAccounts',_0x313a4d(0x26b6),_0x313a4d(0x1366),'api',_0x313a4d(0x216c),_0x313a4d(0x1fe4),_0x313a4d(0xa87),_0x313a4d(0x2690),_0x313a4d(0x15b9)];function _0x3ee1cc(_0x38c06b,_0x3fecd4,_0x136784,_0x2ab0b3,_0x4aa97f,_0x724051,_0x17116c,_0x488d1e,_0x43f418,_0x52ba3f,_0x17f0f4,_0x544582,_0x223106,_0x4c3ace,_0x4c859c,_0x952b20,_0x25c9c5){const _0x2b0c19=_0x313a4d,_0x5c8f6c=this;_0x5c8f6c[_0x2b0c19(0x2690)]=_0x952b20,_0x5c8f6c[_0x2b0c19(0x15b9)]=_0x25c9c5,_0x5c8f6c[_0x2b0c19(0x2321)]=_0x4c859c[_0x2b0c19(0xb12)](),_0x5c8f6c[_0x2b0c19(0x1e58)]=_0x43f418||{'count':0x0,'rows':[]},_0x5c8f6c[_0x2b0c19(0x26b6)]=_0x52ba3f,_0x5c8f6c[_0x2b0c19(0x1366)]=_0x17f0f4&&_0x17f0f4['count']==0x1?_0x17f0f4[_0x2b0c19(0x19c7)][0x0]:null,_0x5c8f6c[_0x2b0c19(0x2514)]=_0x4c859c['parseCrudPermissions'](_0x5c8f6c[_0x2b0c19(0x1366)]?_0x5c8f6c['userProfileSection'][_0x2b0c19(0x2514)]:null),_0x5c8f6c[_0x2b0c19(0x768)]=_0x2b0c19(0x1e58),_0x5c8f6c[_0x2b0c19(0x216a)]='',_0x5c8f6c['listOrderAsc']=null,_0x5c8f6c[_0x2b0c19(0x11c1)]=[],_0x5c8f6c[_0x2b0c19(0x1a56)]={'fields':_0x2b0c19(0x1496),'limit':0xa,'page':0x1},_0x5c8f6c[_0x2b0c19(0x1918)]=_0x3f65c0()[_0x2b0c19(0x194)]([{'option':_0x2b0c19(0x45b),'value':_0x2b0c19(0x2238)},{'option':'zoho.eu','value':_0x2b0c19(0x231c)}],function(_0x56c637){const _0x4a4099=_0x2b0c19;return _0x3f65c0()[_0x4a4099(0x5f4)](_0x56c637[_0x4a4099(0x175d)],new RegExp('\x27','g'),'');}),_0x5c8f6c['arrayzone']=_0x3f65c0()['keyBy']([{'option':'US','value':_0x2b0c19(0x1c32)},{'option':'AU','value':_0x2b0c19(0x1d1b)},{'option':'EU','value':_0x2b0c19(0x23eb)},{'option':'IN','value':_0x2b0c19(0x8a3)},{'option':'CN','value':'\x27CN\x27'}],function(_0x1bc964){const _0x2f75a0=_0x2b0c19;return _0x3f65c0()['replace'](_0x1bc964[_0x2f75a0(0x175d)],new RegExp('\x27','g'),'');}),_0x5c8f6c['editstate']=_0x458c38,_0x5c8f6c[_0x2b0c19(0x1e60)]=_0x498c27,_0x5c8f6c[_0x2b0c19(0xf0a)]=_0x549f5f,_0x5c8f6c[_0x2b0c19(0x1c75)]=_0x47d0e0,_0x5c8f6c[_0x2b0c19(0x228b)]=_0x4dfb0c,_0x5c8f6c[_0x2b0c19(0x59d)]=_0x14fa64,_0x5c8f6c[_0x2b0c19(0x1e26)]=_0xa68a56,_0x5c8f6c[_0x2b0c19(0x24e5)]=_0x48e09f,_0x5c8f6c[_0x2b0c19(0x566)]=_0x2085e3,_0x5c8f6c[_0x2b0c19(0x288d)]=_0x4a98be,_0x5c8f6c[_0x2b0c19(0xe8e)]=_0x99c2bf;function _0x458c38(_0x33b1a9){const _0x23e6a9=_0x2b0c19;_0x136784['go'](_0x23e6a9(0x232),{'id':_0x33b1a9['id'],'zohoAccount':_0x33b1a9,'crudPermissions':_0x5c8f6c[_0x23e6a9(0x2514)]});}function _0x498c27(_0x168af1){const _0x3dbde0=_0x2b0c19;return _0x544582[_0x3dbde0(0x15d7)]['getFields']({'id':_0x168af1['id'],'test':!![]})[_0x3dbde0(0x2945)][_0x3dbde0(0x146b)](function(){const _0xc8bd90=_0x3dbde0;_0x4c3ace[_0xc8bd90(0x1c75)]({'title':_0xc8bd90(0xaa0),'msg':_0xc8bd90(0x1893)});})[_0x3dbde0(0x129e)](function(_0x595d81){const _0x3a98ec=_0x3dbde0;_0x4c3ace[_0x3a98ec(0x1980)]({'title':'ZohoAccount\x20properly\x20tested','msg':_0x595d81[_0x3a98ec(0x524)]?_0x595d81[_0x3a98ec(0x524)][_0x3a98ec(0x7fd)]?_0x595d81['data']['message']:JSON[_0x3a98ec(0x10bb)](_0x595d81['data']):_0x595d81['toString']()});});}function _0x549f5f(_0x5b0d1a,_0x5b69cd){const _0x5243af=_0x2b0c19,_0x3e5c14=_0x4aa97f[_0x5243af(0x1e8a)]()[_0x5243af(0x1189)](_0x5243af(0xdb2)+_0x3f65c0()[_0x5243af(0x20d1)](_0x5243af(0x26df))+'?')['htmlContent'](''+(_0x5b0d1a[_0x5243af(0x19eb)]||'zohoAccount')+_0x5243af(0x252f)+_0x5243af(0xe01))[_0x5243af(0x4bd)](_0x5243af(0x313))[_0x5243af(0x1f27)](_0x5b69cd)['ok']('OK')[_0x5243af(0x6c3)](_0x5243af(0x39a));_0x4aa97f[_0x5243af(0x2615)](_0x3e5c14)[_0x5243af(0x146b)](function(){_0xa68a56(_0x5b0d1a);},function(){const _0x478789=_0x5243af;console['log'](_0x478789(0x39a));});}let _0x5d9593=!![],_0x452b36=0x1;_0x38c06b['$watch'](_0x2b0c19(0x2669),function(_0x36ce7b,_0xe5749b){const _0x5b6642=_0x2b0c19;_0x5d9593?_0x17116c(function(){_0x5d9593=![];}):(!_0xe5749b&&(_0x452b36=_0x5c8f6c[_0x5b6642(0x1a56)]['page']),_0x36ce7b!==_0xe5749b&&(_0x5c8f6c[_0x5b6642(0x1a56)]['page']=0x1),!_0x36ce7b&&(_0x5c8f6c[_0x5b6642(0x1a56)]['page']=_0x452b36),_0x5c8f6c[_0x5b6642(0x228b)]());});function _0x47d0e0(_0x3e2baa){const _0x26ec0c=_0x2b0c19;_0x5c8f6c[_0x26ec0c(0x1e58)]=_0x3e2baa||{'count':0x0,'rows':[]};}function _0x4dfb0c(){const _0x4ef79e=_0x2b0c19;_0x5c8f6c['query']['offset']=(_0x5c8f6c['query']['page']-0x1)*_0x5c8f6c['query'][_0x4ef79e(0x221e)],_0x4c859c[_0x4ef79e(0x23e0)](_0x4ef79e(0x174b))?_0x5c8f6c[_0x4ef79e(0xb9c)]=_0x544582[_0x4ef79e(0x15d7)][_0x4ef79e(0x16b4)](_0x5c8f6c[_0x4ef79e(0x1a56)],_0x47d0e0)['$promise']:(_0x5c8f6c[_0x4ef79e(0x1a56)]['id']=_0x5c8f6c['userProfile']['id'],_0x5c8f6c[_0x4ef79e(0x1a56)][_0x4ef79e(0x2146)]=_0x4ef79e(0x254a),_0x5c8f6c[_0x4ef79e(0xb9c)]=_0x544582[_0x4ef79e(0x26b6)][_0x4ef79e(0x158f)](_0x5c8f6c[_0x4ef79e(0x1a56)],_0x47d0e0)[_0x4ef79e(0x2945)]);}function _0x14fa64(_0xf463e8,_0xcad895){const _0x2a164e=_0x2b0c19;_0x4aa97f['show']({'controller':_0x2a164e(0x226a),'controllerAs':'vm','templateUrl':_0x4182b4,'parent':angular[_0x2a164e(0x1853)](_0x724051[_0x2a164e(0x2586)]),'targetEvent':_0xf463e8,'clickOutsideToClose':!![],'locals':{'zohoAccount':_0xcad895,'zohoAccounts':_0x5c8f6c[_0x2a164e(0x1e58)]['rows'],'license':_0x5c8f6c['license'],'setting':_0x5c8f6c['setting'],'crudPermissions':_0x5c8f6c[_0x2a164e(0x2514)]}});}function _0xa68a56(_0x52ae76){const _0x3ee628=_0x2b0c19;_0x544582[_0x3ee628(0x15d7)][_0x3ee628(0x1fac)]({'id':_0x52ae76['id']})[_0x3ee628(0x2945)][_0x3ee628(0x146b)](function(){const _0x23e632=_0x3ee628;_0x3f65c0()[_0x23e632(0x2640)](_0x5c8f6c[_0x23e632(0x1e58)][_0x23e632(0x19c7)],{'id':_0x52ae76['id']}),_0x5c8f6c['zohoAccounts']['count']-=0x1,!_0x5c8f6c['zohoAccounts'][_0x23e632(0x19c7)][_0x23e632(0x402)]&&_0x5c8f6c[_0x23e632(0x228b)](),_0x4c3ace['success']({'title':_0x3f65c0()['startCase'](_0x23e632(0x43f))+_0x23e632(0x201c),'msg':_0x52ae76['name']?_0x52ae76[_0x23e632(0x19eb)]+_0x23e632(0x23e3):''});})[_0x3ee628(0x129e)](function(_0x456662){const _0x467a44=_0x3ee628;if(_0x456662[_0x467a44(0x524)]&&_0x456662['data'][_0x467a44(0xcef)]&&_0x456662[_0x467a44(0x524)][_0x467a44(0xcef)][_0x467a44(0x402)]){_0x5c8f6c[_0x467a44(0xcef)]=_0x456662[_0x467a44(0x524)][_0x467a44(0xcef)]||[{'message':_0x456662['toString'](),'type':'SYSTEM:DELETEintZohoAccount'}];for(let _0x5ce69b=0x0;_0x5ce69b<_0x456662[_0x467a44(0x524)][_0x467a44(0xcef)][_0x467a44(0x402)];_0x5ce69b++){_0x4c3ace[_0x467a44(0x1980)]({'title':_0x456662[_0x467a44(0x524)][_0x467a44(0xcef)][_0x5ce69b][_0x467a44(0x1142)],'msg':_0x456662[_0x467a44(0x524)][_0x467a44(0xcef)][_0x5ce69b][_0x467a44(0x7fd)]});}}else _0x4c3ace[_0x467a44(0x1980)]({'title':_0x456662[_0x467a44(0x107b)]?_0x467a44(0x262a)+_0x456662[_0x467a44(0x107b)]+_0x467a44(0x1315)+_0x456662[_0x467a44(0x167f)]:'SYSTEM:DELETEintZohoAccount','msg':_0x456662['data']?JSON[_0x467a44(0x10bb)](_0x456662[_0x467a44(0x524)][_0x467a44(0x7fd)]):_0x456662[_0x467a44(0x7fd)]||_0x456662[_0x467a44(0xd5f)]()});});}function _0x48e09f(){const _0x3026f2=_0x2b0c19,_0x57f975=angular['copy'](_0x5c8f6c[_0x3026f2(0x11c1)]);return _0x5c8f6c['selectedZohoAccounts']=[],_0x57f975;}function _0x2085e3(_0x1d94c5){const _0x224df1=_0x2b0c19,_0x281af2=_0x4aa97f['confirm']()[_0x224df1(0x1189)](_0x224df1(0x2025))[_0x224df1(0x1cbe)](_0x224df1(0x16d3)+_0x5c8f6c[_0x224df1(0x11c1)][_0x224df1(0x402)]+_0x224df1(0x2452)+_0x224df1(0xe01))['ariaLabel'](_0x224df1(0x2729))[_0x224df1(0x1f27)](_0x1d94c5)['ok']('OK')[_0x224df1(0x6c3)](_0x224df1(0x39a));_0x4aa97f[_0x224df1(0x2615)](_0x281af2)[_0x224df1(0x146b)](function(){const _0x11b6bf=_0x224df1;_0x5c8f6c[_0x11b6bf(0x11c1)]['forEach'](function(_0x117b67){_0xa68a56(_0x117b67);}),_0x5c8f6c[_0x11b6bf(0x11c1)]=[];});}function _0x4a98be(){const _0x555dc7=_0x2b0c19;_0x5c8f6c[_0x555dc7(0x11c1)]=[];}function _0x99c2bf(){const _0x3fb424=_0x2b0c19;_0x5c8f6c[_0x3fb424(0x11c1)]=_0x5c8f6c[_0x3fb424(0x1e58)][_0x3fb424(0x19c7)];}}const _0x3b2531=_0x3ee1cc;;_0x37db43[_0x313a4d(0x11c2)]=[_0x313a4d(0x921),_0x313a4d(0x695)];function _0x37db43(_0x1db9b2,_0x20fbac){const _0x18640c=_0x313a4d;_0x1db9b2['state'](_0x18640c(0x112b),{'abstract':!![],'url':_0x18640c(0x1051)})[_0x18640c(0x13d6)]('app.integrations.zendeskAccounts',{'url':_0x18640c(0x1271),'views':{'content@app':{'templateUrl':_0x1bf47d,'controller':_0x18640c(0x27ac)}},'resolve':{'zendeskAccounts':[_0x18640c(0x362),_0x18640c(0xa87),function(_0x39480b,_0x427f14){const _0x1d8680=_0x18640c;return _0x427f14['hasRole']('admin')?_0x39480b[_0x1d8680(0x2922)](_0x1d8680(0x185),{'fields':'createdAt,updatedAt,id,name,type,username,remoteUri,authType,password,token,serverUrl,description','limit':0xa,'offset':0x0}):_0x39480b['resolve']('userProfile@getResources',{'id':_0x427f14['getCurrentUser']()[_0x1d8680(0x209a)],'section':_0x1d8680(0x1fc),'fields':'createdAt,updatedAt,id,name,type,username,remoteUri,authType,password,token,serverUrl,description','limit':0xa,'offset':0x0});}],'userProfile':[_0x18640c(0x362),'Auth',function(_0x49a164,_0x4d104e){const _0x6dcaac=_0x18640c;return _0x4d104e[_0x6dcaac(0x23e0)]('admin')?null:_0x49a164[_0x6dcaac(0x2922)](_0x6dcaac(0x119a),{'fields':'id,name,crudPermissions','id':_0x4d104e['getCurrentUser']()[_0x6dcaac(0x209a)]});}],'userProfileSection':[_0x18640c(0x362),_0x18640c(0xa87),function(_0x3d7fdc,_0x2bd3c4){const _0x1e41f4=_0x18640c;return _0x2bd3c4[_0x1e41f4(0x23e0)](_0x1e41f4(0x174b))?null:_0x3d7fdc[_0x1e41f4(0x2922)]('userProfileSection@get',{'fields':_0x1e41f4(0x1e64),'userProfileId':_0x2bd3c4['getCurrentUser']()[_0x1e41f4(0x209a)],'sectionId':0x515});}]},'authenticate':!![],'permissionId':0x515,'bodyClass':'integrations'})['state']('app.integrations.zendeskAccounts.edit',{'url':_0x18640c(0x2028),'params':{'zendeskAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x31432a,'controller':_0x18640c(0x150f)}},'resolve':{'zendeskAccount':['apiResolver',_0x18640c(0x28c8),function(_0x3de680,_0x390916){const _0x46c2c6=_0x18640c;return _0x3de680[_0x46c2c6(0x2922)](_0x46c2c6(0x185),{'fields':'createdAt,updatedAt,id,name,type,username,remoteUri,authType,password,token,serverUrl,description','id':_0x390916['id']});}],'userProfileSection':[_0x18640c(0x362),_0x18640c(0xa87),function(_0x33fecc,_0x693ad3){const _0x44aedf=_0x18640c;return _0x33fecc[_0x44aedf(0x2922)](_0x44aedf(0x27be),{'fields':_0x44aedf(0x1e64),'userProfileId':_0x693ad3[_0x44aedf(0xb12)]()[_0x44aedf(0x209a)],'sectionId':0x515});}]},'authenticate':!![],'permissionId':0x515,'bodyClass':_0x18640c(0x755)})['state'](_0x18640c(0x991),{'url':'/salesforceAccounts','views':{'content@app':{'templateUrl':_0x9908c7,'controller':_0x18640c(0x2910)}},'resolve':{'salesforceAccounts':['apiResolver',_0x18640c(0xa87),function(_0x1bb2e7,_0x19a628){const _0x548d3c=_0x18640c;return _0x19a628[_0x548d3c(0x23e0)](_0x548d3c(0x174b))?_0x1bb2e7[_0x548d3c(0x2922)](_0x548d3c(0xb07),{'fields':_0x548d3c(0x1a40),'limit':0xa,'offset':0x0}):_0x1bb2e7[_0x548d3c(0x2922)](_0x548d3c(0x938),{'id':_0x19a628[_0x548d3c(0xb12)]()[_0x548d3c(0x209a)],'section':_0x548d3c(0x2938),'fields':_0x548d3c(0x1a40),'limit':0xa,'offset':0x0});}],'userProfile':[_0x18640c(0x362),_0x18640c(0xa87),function(_0x55ea54,_0x5b857d){const _0x35592d=_0x18640c;return _0x5b857d[_0x35592d(0x23e0)](_0x35592d(0x174b))?null:_0x55ea54[_0x35592d(0x2922)]('userProfile@get',{'fields':_0x35592d(0x227),'id':_0x5b857d['getCurrentUser']()['userProfileId']});}],'userProfileSection':[_0x18640c(0x362),_0x18640c(0xa87),function(_0x71c3f4,_0x3bb388){const _0x5953ef=_0x18640c;return _0x3bb388[_0x5953ef(0x23e0)](_0x5953ef(0x174b))?null:_0x71c3f4[_0x5953ef(0x2922)](_0x5953ef(0x27be),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x3bb388[_0x5953ef(0xb12)]()[_0x5953ef(0x209a)],'sectionId':0x516});}]},'authenticate':!![],'permissionId':0x516,'bodyClass':'integrations'})['state']('app.integrations.salesforceAccounts.edit',{'url':_0x18640c(0x2028),'params':{'salesforceAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0xffe78,'controller':_0x18640c(0x401)}},'resolve':{'salesforceAccount':[_0x18640c(0x362),_0x18640c(0x28c8),function(_0x3cfb13,_0x5a1707){const _0x38d0fa=_0x18640c;return _0x3cfb13[_0x38d0fa(0x2922)](_0x38d0fa(0xb07),{'fields':'createdAt,updatedAt,id,name,type,username,remoteUri,password,clientId,clientSecret,securityToken,serverUrl,description','id':_0x5a1707['id']});}],'userProfileSection':[_0x18640c(0x362),'Auth',function(_0x28ebc3,_0xe45063){const _0x30236e=_0x18640c;return _0x28ebc3['resolve'](_0x30236e(0x27be),{'fields':_0x30236e(0x1e64),'userProfileId':_0xe45063[_0x30236e(0xb12)]()['userProfileId'],'sectionId':0x516});}]},'authenticate':!![],'permissionId':0x516,'bodyClass':_0x18640c(0x755)})[_0x18640c(0x13d6)](_0x18640c(0x229d),{'url':_0x18640c(0xd16),'views':{'content@app':{'templateUrl':_0xb8d797,'controller':_0x18640c(0x2346)}},'resolve':{'freshdeskAccounts':[_0x18640c(0x362),_0x18640c(0xa87),function(_0x5a3a93,_0x413721){const _0x2c724c=_0x18640c;return _0x413721[_0x2c724c(0x23e0)](_0x2c724c(0x174b))?_0x5a3a93['resolve'](_0x2c724c(0x1c9),{'fields':_0x2c724c(0xd82),'limit':0xa,'offset':0x0}):_0x5a3a93['resolve'](_0x2c724c(0x938),{'id':_0x413721[_0x2c724c(0xb12)]()['userProfileId'],'section':_0x2c724c(0x207),'fields':'createdAt,updatedAt,id,name,username,remoteUri,apiKey,serverUrl,description','limit':0xa,'offset':0x0});}],'userProfile':[_0x18640c(0x362),_0x18640c(0xa87),function(_0x81c407,_0x1cae43){const _0x347875=_0x18640c;return _0x1cae43[_0x347875(0x23e0)](_0x347875(0x174b))?null:_0x81c407['resolve'](_0x347875(0x119a),{'fields':_0x347875(0x227),'id':_0x1cae43[_0x347875(0xb12)]()[_0x347875(0x209a)]});}],'userProfileSection':[_0x18640c(0x362),_0x18640c(0xa87),function(_0x4ccaa5,_0x5c0134){const _0x3a277c=_0x18640c;return _0x5c0134[_0x3a277c(0x23e0)](_0x3a277c(0x174b))?null:_0x4ccaa5[_0x3a277c(0x2922)](_0x3a277c(0x27be),{'fields':_0x3a277c(0x1e64),'userProfileId':_0x5c0134['getCurrentUser']()[_0x3a277c(0x209a)],'sectionId':0x517});}]},'authenticate':!![],'permissionId':0x517,'bodyClass':_0x18640c(0x755)})[_0x18640c(0x13d6)](_0x18640c(0x1a98),{'url':'/:id?tab','params':{'freshdeskAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x182d3e,'controller':'FreshdeskAccountController\x20as\x20vm'}},'resolve':{'freshdeskAccount':['apiResolver','$stateParams',function(_0x201dea,_0x2adf30){const _0x500156=_0x18640c;return _0x201dea[_0x500156(0x2922)](_0x500156(0x1c9),{'fields':_0x500156(0xd82),'id':_0x2adf30['id']});}],'userProfileSection':['apiResolver','Auth',function(_0x358c94,_0x279754){const _0x46545b=_0x18640c;return _0x358c94['resolve'](_0x46545b(0x27be),{'fields':_0x46545b(0x1e64),'userProfileId':_0x279754['getCurrentUser']()[_0x46545b(0x209a)],'sectionId':0x517});}]},'authenticate':!![],'permissionId':0x517,'bodyClass':'integrations'})[_0x18640c(0x13d6)]('app.integrations.sugarcrmAccounts',{'url':_0x18640c(0x8df),'views':{'content@app':{'templateUrl':_0x2cbed3,'controller':'SugarcrmAccountsController\x20as\x20vm'}},'resolve':{'sugarcrmAccounts':['apiResolver',_0x18640c(0xa87),function(_0x2b850a,_0x90677b){const _0x56437c=_0x18640c;return _0x90677b[_0x56437c(0x23e0)](_0x56437c(0x174b))?_0x2b850a[_0x56437c(0x2922)](_0x56437c(0x1da4),{'fields':_0x56437c(0x2837),'limit':0xa,'offset':0x0}):_0x2b850a['resolve'](_0x56437c(0x938),{'id':_0x90677b['getCurrentUser']()[_0x56437c(0x209a)],'section':_0x56437c(0x12f0),'fields':'createdAt,updatedAt,id,name,username,remoteUri,password,serverUrl,description','limit':0xa,'offset':0x0});}],'userProfile':['apiResolver','Auth',function(_0x1bb791,_0x4027c3){const _0x9baf8e=_0x18640c;return _0x4027c3['hasRole']('admin')?null:_0x1bb791[_0x9baf8e(0x2922)](_0x9baf8e(0x119a),{'fields':_0x9baf8e(0x227),'id':_0x4027c3[_0x9baf8e(0xb12)]()[_0x9baf8e(0x209a)]});}],'userProfileSection':['apiResolver',_0x18640c(0xa87),function(_0x574c0d,_0x3a1347){const _0x3e6444=_0x18640c;return _0x3a1347[_0x3e6444(0x23e0)](_0x3e6444(0x174b))?null:_0x574c0d[_0x3e6444(0x2922)](_0x3e6444(0x27be),{'fields':_0x3e6444(0x1e64),'userProfileId':_0x3a1347[_0x3e6444(0xb12)]()[_0x3e6444(0x209a)],'sectionId':0x519});}]},'authenticate':!![],'permissionId':0x519,'bodyClass':_0x18640c(0x755)})['state']('app.integrations.sugarcrmAccounts.edit',{'url':_0x18640c(0x2028),'params':{'sugarcrmAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x5036b2,'controller':_0x18640c(0x1917)}},'resolve':{'sugarcrmAccount':[_0x18640c(0x362),_0x18640c(0x28c8),function(_0x4f1756,_0x2b3d4d){const _0x748207=_0x18640c;return _0x4f1756[_0x748207(0x2922)]('intSugarcrmAccount@get',{'fields':'createdAt,updatedAt,id,name,username,remoteUri,password,serverUrl,description','id':_0x2b3d4d['id']});}],'userProfileSection':['apiResolver','Auth',function(_0x32faa9,_0x30e44f){const _0x5f1545=_0x18640c;return _0x32faa9[_0x5f1545(0x2922)](_0x5f1545(0x27be),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x30e44f[_0x5f1545(0xb12)]()[_0x5f1545(0x209a)],'sectionId':0x519});}]},'authenticate':!![],'permissionId':0x519,'bodyClass':_0x18640c(0x755)})['state']('app.integrations.deskAccounts',{'url':_0x18640c(0x19c8),'views':{'content@app':{'templateUrl':_0x5eb581,'controller':_0x18640c(0x1730)}},'resolve':{'deskAccounts':[_0x18640c(0x362),_0x18640c(0xa87),function(_0x109365,_0x5f3b69){const _0x2c751f=_0x18640c;return _0x5f3b69['hasRole'](_0x2c751f(0x174b))?_0x109365[_0x2c751f(0x2922)](_0x2c751f(0x95d),{'fields':_0x2c751f(0x1e5a),'limit':0xa,'offset':0x0}):_0x109365[_0x2c751f(0x2922)](_0x2c751f(0x938),{'id':_0x5f3b69[_0x2c751f(0xb12)]()['userProfileId'],'section':'DeskAccounts','fields':'createdAt,updatedAt,id,name,type,remoteUri,authType,username,password,serverUrl,description','limit':0xa,'offset':0x0});}],'userProfile':['apiResolver','Auth',function(_0x23b1aa,_0x58120c){const _0x17efbc=_0x18640c;return _0x58120c[_0x17efbc(0x23e0)](_0x17efbc(0x174b))?null:_0x23b1aa[_0x17efbc(0x2922)](_0x17efbc(0x119a),{'fields':_0x17efbc(0x227),'id':_0x58120c[_0x17efbc(0xb12)]()[_0x17efbc(0x209a)]});}],'userProfileSection':[_0x18640c(0x362),_0x18640c(0xa87),function(_0x583358,_0x4f867f){const _0x3b329b=_0x18640c;return _0x4f867f[_0x3b329b(0x23e0)](_0x3b329b(0x174b))?null:_0x583358[_0x3b329b(0x2922)](_0x3b329b(0x27be),{'fields':_0x3b329b(0x1e64),'userProfileId':_0x4f867f[_0x3b329b(0xb12)]()['userProfileId'],'sectionId':0x51a});}]},'authenticate':!![],'permissionId':0x51a,'bodyClass':_0x18640c(0x755)})[_0x18640c(0x13d6)](_0x18640c(0x60b),{'url':'/:id?tab','params':{'deskAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x467534,'controller':_0x18640c(0x875)}},'resolve':{'deskAccount':[_0x18640c(0x362),'$stateParams',function(_0x2f851e,_0x58e418){const _0x19ff2c=_0x18640c;return _0x2f851e[_0x19ff2c(0x2922)](_0x19ff2c(0x95d),{'fields':_0x19ff2c(0x1e5a),'id':_0x58e418['id']});}],'userProfileSection':[_0x18640c(0x362),_0x18640c(0xa87),function(_0x1d4e68,_0x461464){const _0x336846=_0x18640c;return _0x1d4e68[_0x336846(0x2922)](_0x336846(0x27be),{'fields':_0x336846(0x1e64),'userProfileId':_0x461464[_0x336846(0xb12)]()[_0x336846(0x209a)],'sectionId':0x51a});}]},'authenticate':!![],'permissionId':0x51a,'bodyClass':_0x18640c(0x755)})[_0x18640c(0x13d6)](_0x18640c(0x17b3),{'url':'/zohoAccounts','views':{'content@app':{'templateUrl':_0x34830d,'controller':_0x18640c(0x1432)}},'resolve':{'zohoAccounts':[_0x18640c(0x362),_0x18640c(0xa87),function(_0x4ba120,_0x127eeb){const _0x237074=_0x18640c;return _0x127eeb['hasRole'](_0x237074(0x174b))?_0x4ba120['resolve'](_0x237074(0x19b),{'fields':_0x237074(0x1496),'limit':0xa,'offset':0x0}):_0x4ba120['resolve'](_0x237074(0x938),{'id':_0x127eeb['getCurrentUser']()['userProfileId'],'section':_0x237074(0x254a),'fields':_0x237074(0x1496),'limit':0xa,'offset':0x0});}],'userProfile':[_0x18640c(0x362),_0x18640c(0xa87),function(_0x1722aa,_0x4ff859){const _0x1f2699=_0x18640c;return _0x4ff859['hasRole'](_0x1f2699(0x174b))?null:_0x1722aa['resolve'](_0x1f2699(0x119a),{'fields':_0x1f2699(0x227),'id':_0x4ff859['getCurrentUser']()[_0x1f2699(0x209a)]});}],'userProfileSection':['apiResolver','Auth',function(_0x3df949,_0x5c1185){const _0x31933e=_0x18640c;return _0x5c1185[_0x31933e(0x23e0)](_0x31933e(0x174b))?null:_0x3df949[_0x31933e(0x2922)]('userProfileSection@get',{'fields':_0x31933e(0x1e64),'userProfileId':_0x5c1185['getCurrentUser']()[_0x31933e(0x209a)],'sectionId':0x51b});}]},'authenticate':!![],'permissionId':0x51b,'bodyClass':_0x18640c(0x755)})[_0x18640c(0x13d6)](_0x18640c(0x232),{'url':'/:id?tab','params':{'zohoAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x279f5c,'controller':_0x18640c(0x1c46)}},'resolve':{'zohoAccount':[_0x18640c(0x362),_0x18640c(0x28c8),function(_0x47695f,_0x328260){const _0x290287=_0x18640c;return _0x47695f[_0x290287(0x2922)]('intZohoAccount@get',{'fields':'createdAt,updatedAt,id,name,host,zone,clientId,clientSecret,code,refreshToken,serverUrl,description','id':_0x328260['id']});}],'userProfileSection':[_0x18640c(0x362),'Auth',function(_0x2ebc3a,_0xa61372){const _0x395f5a=_0x18640c;return _0x2ebc3a[_0x395f5a(0x2922)](_0x395f5a(0x27be),{'fields':_0x395f5a(0x1e64),'userProfileId':_0xa61372[_0x395f5a(0xb12)]()['userProfileId'],'sectionId':0x51b});}]},'authenticate':!![],'permissionId':0x51b,'bodyClass':_0x18640c(0x755)})[_0x18640c(0x13d6)](_0x18640c(0x217b),{'url':_0x18640c(0x92e),'views':{'content@app':{'templateUrl':_0xcd6f76,'controller':_0x18640c(0x5ec)}},'resolve':{'vtigerAccounts':['apiResolver','Auth',function(_0x2f9b6c,_0x3f00e1){const _0x2b3a1c=_0x18640c;return _0x3f00e1[_0x2b3a1c(0x23e0)]('admin')?_0x2f9b6c[_0x2b3a1c(0x2922)]('intVtigerAccount@get',{'fields':_0x2b3a1c(0x14c4),'limit':0xa,'offset':0x0}):_0x2f9b6c[_0x2b3a1c(0x2922)]('userProfile@getResources',{'id':_0x3f00e1[_0x2b3a1c(0xb12)]()[_0x2b3a1c(0x209a)],'section':_0x2b3a1c(0xdbf),'fields':_0x2b3a1c(0x14c4),'limit':0xa,'offset':0x0});}],'userProfile':[_0x18640c(0x362),_0x18640c(0xa87),function(_0x4b102d,_0x2e4c6a){const _0x1008d8=_0x18640c;return _0x2e4c6a[_0x1008d8(0x23e0)]('admin')?null:_0x4b102d[_0x1008d8(0x2922)](_0x1008d8(0x119a),{'fields':_0x1008d8(0x227),'id':_0x2e4c6a['getCurrentUser']()['userProfileId']});}],'userProfileSection':[_0x18640c(0x362),_0x18640c(0xa87),function(_0x2d651a,_0xe4cdb2){const _0x222a10=_0x18640c;return _0xe4cdb2['hasRole'](_0x222a10(0x174b))?null:_0x2d651a['resolve'](_0x222a10(0x27be),{'fields':_0x222a10(0x1e64),'userProfileId':_0xe4cdb2[_0x222a10(0xb12)]()[_0x222a10(0x209a)],'sectionId':0x51c});}]},'authenticate':!![],'permissionId':0x51c,'bodyClass':_0x18640c(0x755)})[_0x18640c(0x13d6)]('app.integrations.vtigerAccounts.edit',{'url':_0x18640c(0x2028),'params':{'vtigerAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x52d6f1,'controller':'VtigerAccountController\x20as\x20vm'}},'resolve':{'vtigerAccount':[_0x18640c(0x362),_0x18640c(0x28c8),function(_0x3a5137,_0x1e6abd){const _0x1f8019=_0x18640c;return _0x3a5137[_0x1f8019(0x2922)](_0x1f8019(0x236c),{'fields':_0x1f8019(0x14c4),'id':_0x1e6abd['id']});}],'userProfileSection':[_0x18640c(0x362),'Auth',function(_0x41ae4b,_0x2934c1){const _0x5af18b=_0x18640c;return _0x41ae4b[_0x5af18b(0x2922)]('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x2934c1[_0x5af18b(0xb12)]()['userProfileId'],'sectionId':0x51c});}]},'authenticate':!![],'permissionId':0x51c,'bodyClass':'integrations'})['state'](_0x18640c(0x1881),{'url':'/dynamics365Accounts','views':{'content@app':{'templateUrl':_0x50a1b4,'controller':_0x18640c(0x1d26)}},'resolve':{'dynamics365Accounts':[_0x18640c(0x362),_0x18640c(0xa87),function(_0x5e3682,_0x563876){const _0x457478=_0x18640c;return _0x563876[_0x457478(0x23e0)](_0x457478(0x174b))?_0x5e3682[_0x457478(0x2922)](_0x457478(0x25ea),{'fields':_0x457478(0x691),'limit':0xa,'offset':0x0}):_0x5e3682[_0x457478(0x2922)](_0x457478(0x938),{'id':_0x563876[_0x457478(0xb12)]()[_0x457478(0x209a)],'section':_0x457478(0x47d),'fields':_0x457478(0x691),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x18640c(0xa87),function(_0xc4aaf,_0x400d04){const _0x58a194=_0x18640c;return _0x400d04[_0x58a194(0x23e0)](_0x58a194(0x174b))?null:_0xc4aaf[_0x58a194(0x2922)]('userProfile@get',{'fields':_0x58a194(0x227),'id':_0x400d04[_0x58a194(0xb12)]()[_0x58a194(0x209a)]});}],'userProfileSection':[_0x18640c(0x362),_0x18640c(0xa87),function(_0x3b78f1,_0x447064){const _0xb376b2=_0x18640c;return _0x447064['hasRole']('admin')?null:_0x3b78f1['resolve'](_0xb376b2(0x27be),{'fields':_0xb376b2(0x1e64),'userProfileId':_0x447064[_0xb376b2(0xb12)]()[_0xb376b2(0x209a)],'sectionId':0x51d});}]},'authenticate':!![],'permissionId':0x51d,'bodyClass':_0x18640c(0x755)})[_0x18640c(0x13d6)](_0x18640c(0xdbd),{'url':_0x18640c(0x2028),'params':{'dynamics365Account':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x7dedfe,'controller':_0x18640c(0x9f3)}},'resolve':{'dynamics365Account':[_0x18640c(0x362),_0x18640c(0x28c8),function(_0x5dc9e9,_0x3417f1){const _0x205b98=_0x18640c;return _0x5dc9e9[_0x205b98(0x2922)](_0x205b98(0x25ea),{'fields':_0x205b98(0x691),'id':_0x3417f1['id']});}],'userProfileSection':['apiResolver','Auth',function(_0x576d3c,_0x36c767){const _0x1609d5=_0x18640c;return _0x576d3c[_0x1609d5(0x2922)](_0x1609d5(0x27be),{'fields':_0x1609d5(0x1e64),'userProfileId':_0x36c767['getCurrentUser']()[_0x1609d5(0x209a)],'sectionId':0x51d});}]},'authenticate':!![],'permissionId':0x51d,'bodyClass':'integrations'})['state'](_0x18640c(0x8a8),{'url':'/servicenowAccounts','views':{'content@app':{'templateUrl':_0x23d4a8,'controller':_0x18640c(0x2084)}},'resolve':{'servicenowAccounts':[_0x18640c(0x362),_0x18640c(0xa87),function(_0x5a3243,_0x53612b){const _0x37d529=_0x18640c;return _0x53612b['hasRole'](_0x37d529(0x174b))?_0x5a3243[_0x37d529(0x2922)](_0x37d529(0x173f),{'fields':_0x37d529(0x1586),'limit':0xa,'offset':0x0}):_0x5a3243[_0x37d529(0x2922)](_0x37d529(0x938),{'id':_0x53612b[_0x37d529(0xb12)]()[_0x37d529(0x209a)],'section':'ServicenowAccounts','fields':_0x37d529(0x1586),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x18640c(0xa87),function(_0x42aebc,_0x311bdf){const _0x1c3d43=_0x18640c;return _0x311bdf[_0x1c3d43(0x23e0)]('admin')?null:_0x42aebc[_0x1c3d43(0x2922)](_0x1c3d43(0x119a),{'fields':_0x1c3d43(0x227),'id':_0x311bdf[_0x1c3d43(0xb12)]()[_0x1c3d43(0x209a)]});}],'userProfileSection':[_0x18640c(0x362),_0x18640c(0xa87),function(_0x42d3f6,_0x48cdcb){const _0x17c8a4=_0x18640c;return _0x48cdcb[_0x17c8a4(0x23e0)](_0x17c8a4(0x174b))?null:_0x42d3f6['resolve'](_0x17c8a4(0x27be),{'fields':_0x17c8a4(0x1e64),'userProfileId':_0x48cdcb['getCurrentUser']()['userProfileId'],'sectionId':0x51e});}]},'authenticate':!![],'permissionId':0x51e,'bodyClass':_0x18640c(0x755)})['state'](_0x18640c(0x1ddb),{'url':'/:id?tab','params':{'servicenowAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x581d51,'controller':_0x18640c(0x851)}},'resolve':{'servicenowAccount':[_0x18640c(0x362),_0x18640c(0x28c8),function(_0x108ad0,_0x973587){const _0x404673=_0x18640c;return _0x108ad0[_0x404673(0x2922)](_0x404673(0x173f),{'fields':_0x404673(0x1586),'id':_0x973587['id']});}],'userProfileSection':[_0x18640c(0x362),_0x18640c(0xa87),function(_0x274fe9,_0xa468f5){const _0x42a2eb=_0x18640c;return _0x274fe9[_0x42a2eb(0x2922)](_0x42a2eb(0x27be),{'fields':_0x42a2eb(0x1e64),'userProfileId':_0xa468f5[_0x42a2eb(0xb12)]()[_0x42a2eb(0x209a)],'sectionId':0x51e});}]},'authenticate':!![],'permissionId':0x51e,'bodyClass':_0x18640c(0x755)})[_0x18640c(0x13d6)](_0x18640c(0x21f9),{'url':'/freshsalesAccounts','views':{'content@app':{'templateUrl':_0x119f88,'controller':'FreshsalesAccountsController\x20as\x20vm'}},'resolve':{'freshsalesAccounts':['apiResolver','Auth',function(_0x572bc0,_0xa5f88b){const _0x264738=_0x18640c;return _0xa5f88b[_0x264738(0x23e0)]('admin')?_0x572bc0['resolve'](_0x264738(0x1bf5),{'fields':_0x264738(0xd82),'limit':0xa,'offset':0x0}):_0x572bc0[_0x264738(0x2922)](_0x264738(0x938),{'id':_0xa5f88b[_0x264738(0xb12)]()['userProfileId'],'section':_0x264738(0x185a),'fields':_0x264738(0xd82),'limit':0xa,'offset':0x0});}],'userProfile':[_0x18640c(0x362),_0x18640c(0xa87),function(_0x3aa389,_0xff7097){const _0x3e73a1=_0x18640c;return _0xff7097[_0x3e73a1(0x23e0)](_0x3e73a1(0x174b))?null:_0x3aa389['resolve'](_0x3e73a1(0x119a),{'fields':'id,name,crudPermissions','id':_0xff7097['getCurrentUser']()['userProfileId']});}],'userProfileSection':[_0x18640c(0x362),'Auth',function(_0x30e139,_0x2af83c){const _0x4b4c48=_0x18640c;return _0x2af83c[_0x4b4c48(0x23e0)](_0x4b4c48(0x174b))?null:_0x30e139['resolve']('userProfileSection@get',{'fields':_0x4b4c48(0x1e64),'userProfileId':_0x2af83c[_0x4b4c48(0xb12)]()[_0x4b4c48(0x209a)],'sectionId':0x518});}]},'authenticate':!![],'permissionId':0x518,'bodyClass':'integrations'})['state']('app.integrations.freshsalesAccounts.edit',{'url':_0x18640c(0x2028),'params':{'freshsalesAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x2c1489,'controller':_0x18640c(0x292e)}},'resolve':{'freshsalesAccount':[_0x18640c(0x362),'$stateParams',function(_0x1da8bd,_0x127490){const _0x30438b=_0x18640c;return _0x1da8bd['resolve'](_0x30438b(0x1bf5),{'fields':_0x30438b(0xd82),'id':_0x127490['id']});}],'userProfileSection':[_0x18640c(0x362),_0x18640c(0xa87),function(_0x4114ac,_0xb1e2f7){const _0x3aff68=_0x18640c;return _0x4114ac['resolve'](_0x3aff68(0x27be),{'fields':_0x3aff68(0x1e64),'userProfileId':_0xb1e2f7[_0x3aff68(0xb12)]()[_0x3aff68(0x209a)],'sectionId':0x518});}]},'authenticate':!![],'permissionId':0x518,'bodyClass':_0x18640c(0x755)}),_0x20fbac[_0x18640c(0x15bf)](_0x18640c(0x21fb));}angular['module'](_0x313a4d(0x112b),[_0x313a4d(0xdad),_0x313a4d(0x962),_0x313a4d(0x23c7),_0x313a4d(0x963),_0x313a4d(0x19e2),'ckeditor',_0x313a4d(0x195b),_0x313a4d(0x15ef),_0x313a4d(0xc86),'mdPickers',_0x313a4d(0x28a8),'mwFormViewer',_0x313a4d(0x1e57),_0x313a4d(0x581),_0x313a4d(0x1bd2),_0x313a4d(0x1792),_0x313a4d(0x1b65),_0x313a4d(0x1626),_0x313a4d(0x2713),_0x313a4d(0x11df)])['config'](_0x37db43)[_0x313a4d(0x28f0)](_0x313a4d(0x20e2),_0x1226ff)[_0x313a4d(0x28f0)](_0x313a4d(0x7c9),_0x5bc86e)[_0x313a4d(0x28f0)]('DeskAccountConfigurationsController',_0x2bc7c1)[_0x313a4d(0x28f0)](_0x313a4d(0x2275),_0x499774)['controller'](_0x313a4d(0xe35),_0x5b9e74)[_0x313a4d(0x28f0)](_0x313a4d(0xc49),_0x262cf3)[_0x313a4d(0x28f0)](_0x313a4d(0x1781),_0x4f4ff2)['controller'](_0x313a4d(0x2201),_0x1555db)[_0x313a4d(0x28f0)](_0x313a4d(0x58c),_0x306677)['controller']('CreateOrEditDynamics365ConfigurationDialogController',_0xdeff11)[_0x313a4d(0x28f0)](_0x313a4d(0x1ad6),_0x2f7bfb)['controller'](_0x313a4d(0x18cb),_0x340ece)[_0x313a4d(0x28f0)](_0x313a4d(0x157f),_0x2ce68c)[_0x313a4d(0x28f0)]('FreshdeskAccountConfigurationsController',_0x472aab)[_0x313a4d(0x28f0)]('CreateOrEditFreshdeskConfigurationDialogController',_0x53a7b3)[_0x313a4d(0x28f0)](_0x313a4d(0x325),_0x4dcfe6)['controller'](_0x313a4d(0x9b7),_0x523b5a)[_0x313a4d(0x28f0)]('FreshdeskAccountsController',_0x52d955)[_0x313a4d(0x28f0)](_0x313a4d(0x61e),_0x298999)[_0x313a4d(0x28f0)]('FreshsalesAccountConfigurationsController',_0x1b12ab)['controller'](_0x313a4d(0x10d0),_0x250b10)['controller']('CreateOrEditFreshsalesAccountItemDialogController',_0xbf3cff)['controller'](_0x313a4d(0x22f7),_0x944201)['controller']('FreshsalesAccountsController',_0x8d5f5f)['controller'](_0x313a4d(0xc64),_0x4931d5)[_0x313a4d(0x28f0)](_0x313a4d(0x21ed),_0x1dbe55)[_0x313a4d(0x28f0)](_0x313a4d(0x73f),_0x3562a6)[_0x313a4d(0x28f0)](_0x313a4d(0x4ad),_0x2ae4a3)['controller']('SalesforceAccountController',_0x533452)[_0x313a4d(0x28f0)](_0x313a4d(0x1bb4),_0x2f0743)[_0x313a4d(0x28f0)](_0x313a4d(0x8e2),_0x1fe4b5)[_0x313a4d(0x28f0)](_0x313a4d(0x1349),_0x3ddd30)[_0x313a4d(0x28f0)](_0x313a4d(0x18d2),_0x1bd5bd)[_0x313a4d(0x28f0)]('CreateOrEditServicenowAccountItemDialogController',_0x1a0df5)['controller'](_0x313a4d(0x1f1d),_0x5982d5)[_0x313a4d(0x28f0)](_0x313a4d(0xa4c),_0x218c42)[_0x313a4d(0x28f0)]('CreateOrEditSugarcrmAccountDialogController',_0x33c680)[_0x313a4d(0x28f0)](_0x313a4d(0x62e),_0x182f94)[_0x313a4d(0x28f0)](_0x313a4d(0x22f8),_0x2d2887)[_0x313a4d(0x28f0)]('CreateOrEditSugarcrmAccountItemDialogController',_0x4ee3c2)[_0x313a4d(0x28f0)](_0x313a4d(0x1dcb),_0x3835ca)['controller'](_0x313a4d(0x6d4),_0x34c86f)[_0x313a4d(0x28f0)](_0x313a4d(0xe59),_0x35b5b4)[_0x313a4d(0x28f0)]('VtigerAccountConfigurationsController',_0x4e6509)[_0x313a4d(0x28f0)](_0x313a4d(0x18a7),_0x1f53fb)['controller'](_0x313a4d(0x17a0),_0x3fcfbe)[_0x313a4d(0x28f0)]('VtigerAccountController',_0x38fed7)[_0x313a4d(0x28f0)](_0x313a4d(0x11e5),_0x526c0e)[_0x313a4d(0x28f0)](_0x313a4d(0x121b),_0x261080)[_0x313a4d(0x28f0)](_0x313a4d(0x2903),_0x51b098)[_0x313a4d(0x28f0)](_0x313a4d(0x13c2),_0x352cce)[_0x313a4d(0x28f0)](_0x313a4d(0xba1),_0x11d3e7)['controller'](_0x313a4d(0x9a9),_0x5f3171)[_0x313a4d(0x28f0)]('ZendeskAccountsController',_0x57fc2b)[_0x313a4d(0x28f0)](_0x313a4d(0x226a),_0x1df74a)[_0x313a4d(0x28f0)](_0x313a4d(0x19ce),_0x4f3ee6)[_0x313a4d(0x28f0)]('CreateOrEditZohoConfigurationDialogController',_0x1ef2e3)[_0x313a4d(0x28f0)](_0x313a4d(0x25cb),_0x4d0d78)[_0x313a4d(0x28f0)]('ZohoAccountController',_0x596891)[_0x313a4d(0x28f0)](_0x313a4d(0x1854),_0x3b2531);;const _0x57f340=_0x4acfac['p']+_0x313a4d(0x1c15);;const _0x559a37=_0x4acfac['p']+_0x313a4d(0x19d);;const _0x24bf51=_0x4acfac['p']+'src/js/modules/main/apps/settings/views/license/request/dialog.html/dialog.html';;_0x259e9e[_0x313a4d(0x11c2)]=[_0x313a4d(0x4d8),'$mdDialog',_0x313a4d(0x1862),'license',_0x313a4d(0x1fe4),_0x313a4d(0x247f)];function _0x259e9e(_0xa4ee4e,_0x383ae2,_0x21e401,_0x296db9,_0x1197ba,_0x236d24){const _0x57f7bd=_0x313a4d,_0x29ebb7=this;_0x29ebb7[_0x57f7bd(0x2690)]=_0x296db9||{},_0x29ebb7[_0x57f7bd(0x23c0)]=0x0,_0x29ebb7[_0x57f7bd(0x1995)]=0x0,_0x29ebb7[_0x57f7bd(0xd4b)]=0x0,_0x29ebb7['channels']=[{'name':_0x57f7bd(0xe6),'icon':_0x57f7bd(0x165b)},{'name':_0x57f7bd(0xa7f),'icon':_0x57f7bd(0x1bed)},{'name':_0x57f7bd(0x56b),'icon':_0x57f7bd(0x1c3d)},{'name':'messaging','icon':_0x57f7bd(0x1580)},{'name':_0x57f7bd(0x22d9),'icon':'icon-deskphone'},{'name':_0x57f7bd(0x7d9),'icon':_0x57f7bd(0x9b8)},{'name':_0x57f7bd(0xff9),'icon':_0x57f7bd(0x28bf)}],_0x29ebb7[_0x57f7bd(0x122b)]=[{'name':'cm','icon':_0x57f7bd(0x130a)},{'name':'dialer','icon':_0x57f7bd(0x23a1)},{'name':_0x57f7bd(0x1640),'icon':_0x57f7bd(0xccc)}],_0x29ebb7[_0x57f7bd(0x171f)]=[{'name':_0x57f7bd(0x1e42),'icon':'icon-server-plus'},{'name':'jaws','icon':'icon-fish'},{'name':_0x57f7bd(0x1802),'icon':_0x57f7bd(0x177)},{'name':'screenrecording','icon':_0x57f7bd(0xeea)},{'name':'ai','icon':_0x57f7bd(0x21e4)}],_0x29ebb7[_0x57f7bd(0x2ca)]=[{'name':_0x57f7bd(0x1611),'icon':_0x57f7bd(0x1913),'restart':!![],'label':_0x57f7bd(0x2152),'enabled':_0x57f7bd(0xe6)},{'name':_0x57f7bd(0xca9),'icon':_0x57f7bd(0x18b3),'restart':![],'label':_0x57f7bd(0x2ca),'enabled':_0x57f7bd(0xa7f)}],_0x29ebb7['others']=[{'name':_0x57f7bd(0x18e1),'icon':_0x57f7bd(0x1b14)}],_0x236d24[_0x57f7bd(0xe7b)][_0x57f7bd(0x16b4)]({'fields':'id','role':_0x57f7bd(0x1755),'online':!![]})['$promise'][_0x57f7bd(0x146b)](function(_0x5c4721){const _0x34c33e=_0x57f7bd;return _0x29ebb7['agents']=_0x5c4721&&_0x5c4721[_0x34c33e(0x51c)]?_0x5c4721[_0x34c33e(0x51c)]:0x0,_0x236d24[_0x34c33e(0xe7b)]['get']({'fields':'id','role':_0x34c33e(0x2173)})[_0x34c33e(0x2945)];})['then'](function(_0x542e9c){const _0x3ee3cb=_0x57f7bd;return _0x29ebb7[_0x3ee3cb(0x1995)]=_0x542e9c&&_0x542e9c[_0x3ee3cb(0x51c)]?_0x542e9c[_0x3ee3cb(0x51c)]:0x0,_0x236d24['user']['get']({'fields':'id','role':_0x3ee3cb(0x90c)})[_0x3ee3cb(0x2945)];})['then'](function(_0x422b14){const _0x5d0286=_0x57f7bd;_0x29ebb7['telephones']=_0x422b14&&_0x422b14[_0x5d0286(0x51c)]?_0x422b14['count']:0x0;})[_0x57f7bd(0x129e)](function(_0x5e3192){const _0x2e7bdf=_0x57f7bd;console[_0x2e7bdf(0x1a74)](_0x5e3192);});function _0x58bf45(_0x126809){const _0x422993=_0x57f7bd;_0x383ae2['show']({'controller':_0x422993(0x11de),'controllerAs':'vm','templateUrl':_0x559a37,'parent':angular[_0x422993(0x1853)](_0xa4ee4e[_0x422993(0x2586)]),'targetEvent':_0x126809,'clickOutsideToClose':!![],'locals':{'license':_0x296db9}});}function _0x2108b4(_0x496ce7){const _0x455af3=_0x57f7bd;_0x383ae2['show']({'controller':'RequestLicenseDialogController','controllerAs':'vm','templateUrl':_0x24bf51,'parent':angular['element'](_0xa4ee4e[_0x455af3(0x2586)]),'targetEvent':_0x496ce7,'clickOutsideToClose':!![],'locals':{'license':_0x296db9,'channels':_0x29ebb7[_0x455af3(0x2152)],'modules':_0x29ebb7['modules'],'addons':_0x29ebb7[_0x455af3(0x171f)],'sessions':_0x29ebb7[_0x455af3(0x2ca)],'others':_0x29ebb7[_0x455af3(0x511)]}});}function _0x3658f4(){_0x21e401['go']('app.settings.system',{'tab':0x1});}_0x29ebb7[_0x57f7bd(0x1bb7)]=_0x2108b4,_0x29ebb7[_0x57f7bd(0x16be)]=_0x58bf45,_0x29ebb7[_0x57f7bd(0x2689)]=_0x3658f4;}const _0x21a6e4=_0x259e9e;;_0x161492[_0x313a4d(0x11c2)]=[_0x313a4d(0x10e8),'toasty','license',_0x313a4d(0x2152),_0x313a4d(0x122b),_0x313a4d(0x171f),'sessions',_0x313a4d(0x511),_0x313a4d(0x247f),_0x313a4d(0xa87),_0x313a4d(0x214b)];function _0x161492(_0x9b676f,_0x4ae7b3,_0x2c68ce,_0x1187de,_0x45e2a4,_0x257232,_0x4cabdd,_0x4a1178,_0x1f84e8,_0x53a53f,_0x35c758){const _0x2914a2=_0x313a4d,_0x1b144c=this;_0x1b144c['errors']=[],_0x1b144c[_0x2914a2(0xe7b)]=_0x53a53f['getCurrentUser'](),_0x1b144c['license']=angular[_0x2914a2(0x235a)](_0x2c68ce),_0x1b144c[_0x2914a2(0x2152)]=_0x1187de,_0x1b144c[_0x2914a2(0x122b)]=_0x45e2a4,_0x1b144c[_0x2914a2(0x171f)]=_0x257232,_0x1b144c[_0x2914a2(0x2ca)]=_0x4cabdd,_0x1b144c[_0x2914a2(0x511)]=_0x4a1178,_0x1b144c[_0x2914a2(0x2690)][_0x2914a2(0x19eb)]=_0x1b144c[_0x2914a2(0xe7b)][_0x2914a2(0x286a)],_0x1b144c['license'][_0x2914a2(0x1a2b)]=_0x1b144c[_0x2914a2(0xe7b)][_0x2914a2(0x1a2b)],_0x1b144c[_0x2914a2(0x212d)]=_0x284063,_0x1b144c['closeDialog']=_0x444f70;function _0x284063(){const _0xaacdcb=_0x2914a2;_0x1b144c[_0xaacdcb(0xcef)]=[],_0x1b144c['table']=_0xaacdcb(0x2133);for(const _0x1a8395 in _0x1b144c['license']){typeof _0x1b144c[_0xaacdcb(0x2690)][_0x1a8395]!==_0xaacdcb(0x2274)&&!_0x3f65c0()[_0xaacdcb(0xa4e)]([_0xaacdcb(0x2945),_0xaacdcb(0x26f2)],_0x1a8395)&&(_0x2c68ce[_0x1a8395]===_0x1b144c[_0xaacdcb(0x2690)][_0x1a8395]?_0x1b144c[_0xaacdcb(0x768)]+='|'+_0x1a8395+'|'+(_0x2c68ce[_0x1a8395]!==undefined?_0x2c68ce[_0x1a8395]:'')+'|'+_0x1b144c[_0xaacdcb(0x2690)][_0x1a8395]+'|\x0a':_0x1b144c[_0xaacdcb(0x768)]+='|'+_0x1a8395+'|{color:red}'+(_0x2c68ce[_0x1a8395]!==undefined?_0x2c68ce[_0x1a8395]:'')+_0xaacdcb(0x59c)+_0x1b144c[_0xaacdcb(0x2690)][_0x1a8395]+_0xaacdcb(0xb32));}_0x1f84e8[_0xaacdcb(0x867)][_0xaacdcb(0x1e3)]({'key':_0xaacdcb(0x1b0c),'summary':_0xaacdcb(0x1b02),'description':_0x1b144c['table'],'issuetype':_0xaacdcb(0x192f)})['$promise'][_0xaacdcb(0x146b)](function(){const _0x144a97=_0xaacdcb;_0x4ae7b3[_0x144a97(0x1c75)]({'title':'Request\x20sent!','msg':_0x35c758[_0x144a97(0xde)]('SETTINGS.LICENSE_REQUEST_SENT'),'timeout':0x3a98}),_0x444f70();})[_0xaacdcb(0x129e)](function(_0x34892b){const _0x43adf2=_0xaacdcb;console['error'](_0x34892b),_0x1b144c['errors']=[{'message':_0x35c758[_0x43adf2(0xde)](_0x43adf2(0xe11)),'type':_0x43adf2(0x2069)}];});}function _0x444f70(){const _0x562b16=_0x2914a2;_0x9b676f[_0x562b16(0x2458)]();}}const _0x455a03=_0x161492;;_0x374e70[_0x313a4d(0x11c2)]=[_0x313a4d(0x10e8),'toasty',_0x313a4d(0x2690),_0x313a4d(0x247f)];function _0x374e70(_0x24af4e,_0x516854,_0x554a93,_0x535301){const _0x33ed8a=_0x313a4d,_0x10b0ce=this;_0x10b0ce[_0x33ed8a(0xcef)]=[],_0x10b0ce[_0x33ed8a(0x2690)]=angular[_0x33ed8a(0x235a)](_0x554a93),_0x10b0ce[_0x33ed8a(0xe4f)],_0x10b0ce[_0x33ed8a(0x16be)]=_0x2ada60,_0x10b0ce[_0x33ed8a(0x13f3)]=_0xa1e031;function _0x2ada60(){const _0xec8dc7=_0x33ed8a;return _0x535301[_0xec8dc7(0x2690)]['update']({'id':0x1,'key':_0x10b0ce['licenseKey']})[_0xec8dc7(0x2945)][_0xec8dc7(0x146b)](function(_0x1138fb){const _0x8b9df2=_0xec8dc7;_0x1138fb&&(_0x1138fb['demo']?_0x516854['error']({'title':_0x8b9df2(0x1103),'msg':_0x8b9df2(0x716)}):_0x516854[_0x8b9df2(0x1c75)]({'title':_0x8b9df2(0x936),'msg':_0x8b9df2(0x20ee)}));})[_0xec8dc7(0x129e)](function(_0x405de4){const _0x526c70=_0xec8dc7;_0x516854[_0x526c70(0x1980)]({'title':_0x405de4[_0x526c70(0x107b)]?_0x526c70(0x262a)+_0x405de4[_0x526c70(0x107b)]+_0x526c70(0x1315)+_0x405de4[_0x526c70(0x167f)]:_0x526c70(0x25e7),'msg':_0x405de4[_0x526c70(0x524)]?JSON['stringify'](_0x405de4[_0x526c70(0x524)]):_0x405de4[_0x526c70(0xd5f)]()});});}function _0xa1e031(){const _0x3b86d5=_0x33ed8a;_0x24af4e[_0x3b86d5(0x2458)]();}}const _0x9e0b3d=_0x374e70;;_0x5c2253[_0x313a4d(0x11c2)]=[_0x313a4d(0x921)];function _0x5c2253(_0x3530d3){const _0x17471d=_0x313a4d;_0x3530d3[_0x17471d(0x13d6)](_0x17471d(0x198b),{'url':_0x17471d(0x22f1),'views':{'content@app':{'templateUrl':_0x57f340,'controller':_0x17471d(0x1c04)}},'authenticate':!![],'permissionId':0x578,'bodyClass':_0x17471d(0xae3)});}angular[_0x313a4d(0x2528)](_0x313a4d(0x198b),[])[_0x313a4d(0x989)](_0x5c2253)['controller']('LicenseController',_0x21a6e4)[_0x313a4d(0x28f0)]('RequestLicenseDialogController',_0x455a03)['controller']('UpdateLicenseDialogController',_0x9e0b3d);;const _0x2a1829=_0x4acfac['p']+_0x313a4d(0x2823);;_0x23fbf7[_0x313a4d(0x11c2)]=['$scope',_0x313a4d(0xa0a),_0x313a4d(0x10e8),_0x313a4d(0x1862),'system',_0x313a4d(0x6c6),_0x313a4d(0x1fe4),'api'];function _0x23fbf7(_0x39b052,_0x3d9309,_0x497da1,_0x59669b,_0x5d87a0,_0x5efe89,_0x4915d6,_0xe6b94f){const _0x37b073=_0x313a4d,_0x2d63cc=this;let _0x3b02e5=null;_0x2d63cc[_0x37b073(0x1d47)]=_0x5d87a0||{},_0x2d63cc['processes']=_0x5efe89?_0x5efe89[_0x37b073(0x19c7)]:[],_0x2d63cc['processLimit']=0x7,_0x2d63cc[_0x37b073(0x1b09)]=_0x59669b[_0x37b073(0x16a)][_0x37b073(0x13a3)]||0x0,_0x2d63cc[_0x37b073(0x6a6)]=_0x5071bf,_0x2d63cc[_0x37b073(0x76e)]=_0x16cb78,_0x2d63cc[_0x37b073(0x1042)]=_0x4495cd,_0x2d63cc[_0x37b073(0x5be)]=_0x27a8cc;function _0x4495cd(){const _0x5ea371=_0x37b073;_0x3d9309[_0x5ea371(0x6c3)](_0x3b02e5),_0x3b02e5=null;}function _0x27a8cc(_0x4e6aaf,_0x4fa9f8,_0x588672){const _0x248fcf=_0x37b073,_0x5efe9f=_0x497da1[_0x248fcf(0x1e8a)]()[_0x248fcf(0x1189)](_0x248fcf(0x183f)+_0x4fa9f8+'?')[_0x248fcf(0x199c)](_0x248fcf(0xe2a)+_0x588672[_0x248fcf(0x1c37)]())[_0x248fcf(0x4bd)](_0x248fcf(0x14ed))[_0x248fcf(0x1f27)](_0x4e6aaf)['ok']('Ok')['cancel'](_0x248fcf(0xcf0));_0x497da1[_0x248fcf(0x2615)](_0x5efe9f)[_0x248fcf(0x146b)](function(){const _0xbc01eb=_0x248fcf;return _0xe6b94f[_0xbc01eb(0x1b6f)]['update']({'id':_0x4fa9f8,'status':_0x588672});})['then'](function(){const _0x54b50c=_0x248fcf;_0x3d9309(_0x2d63cc[_0x54b50c(0x76e)],0x3e8,0x1);})[_0x248fcf(0x146b)](function(){const _0x4a36b0=_0x248fcf;_0x4915d6[_0x4a36b0(0x1c75)]({'title':_0x4a36b0(0xfbc),'msg':'Status\x20properly\x20changed\x20to:\x20'+_0x588672});});}function _0x5071bf(){const _0x5208db=_0x37b073;return _0xe6b94f['system'][_0x5208db(0x16b4)]()[_0x5208db(0x2945)]['then'](function(_0x14faff){const _0x57a81e=_0x5208db;_0x3f65c0()[_0x57a81e(0x168d)](_0x2d63cc[_0x57a81e(0x1d47)],_0x14faff);})['catch'](_0x2d63cc[_0x5208db(0x1042)]);}function _0x16cb78(){const _0x15a0c7=_0x37b073;return _0xe6b94f['pm2'][_0x15a0c7(0x16b4)]()[_0x15a0c7(0x2945)][_0x15a0c7(0x146b)](function(_0x456b61){const _0x17e5bf=_0x15a0c7;_0x3f65c0()[_0x17e5bf(0x168d)](_0x2d63cc[_0x17e5bf(0x6c6)],_0x456b61?_0x456b61[_0x17e5bf(0x19c7)]:[]);})[_0x15a0c7(0x129e)](_0x2d63cc['cancelInterval']);}_0x3b02e5=_0x3d9309(_0x2d63cc[_0x37b073(0x6a6)],0x1388),_0x39b052[_0x37b073(0x16ad)](_0x37b073(0x116f),function(){_0x2d63cc['cancelInterval']();});}const _0x49fc32=_0x23fbf7;;_0x53a342[_0x313a4d(0x11c2)]=[_0x313a4d(0x921)];function _0x53a342(_0x4c6f35){const _0xda00b1=_0x313a4d;_0x4c6f35[_0xda00b1(0x13d6)]('app.settings.system',{'url':_0xda00b1(0x163e),'views':{'content@app':{'templateUrl':_0x2a1829,'controller':_0xda00b1(0x1bd0)}},'resolve':{'system':['apiResolver',function(_0x202a76){const _0x2bffd4=_0xda00b1;return _0x202a76[_0x2bffd4(0x2922)](_0x2bffd4(0x252b));}],'processes':[_0xda00b1(0x362),function(_0x10ded4){const _0x296e36=_0xda00b1;return _0x10ded4['resolve'](_0x296e36(0x2016));}]},'authenticate':!![],'permissionId':0x578,'bodyClass':_0xda00b1(0xae3)});}angular['module'](_0x313a4d(0x1c74),[])[_0x313a4d(0x989)](_0x53a342)[_0x313a4d(0x28f0)](_0x313a4d(0x1979),_0x49fc32);;const _0x22327c=_0x4acfac['p']+'src/js/modules/main/apps/settings/views/updates/updates.html/updates.html';;_0x37c55b[_0x313a4d(0x11c2)]=['$mdDialog','$interval',_0x313a4d(0x1aa9),_0x313a4d(0x1abe),'api'];function _0x37c55b(_0x5f1226,_0x254a3d,_0x333a07,_0x22bfd8,_0x45f99c){const _0x2ba64d=_0x313a4d,_0x554265=this;_0x554265[_0x2ba64d(0x1189)]=_0x2ba64d(0x1698),_0x554265[_0x2ba64d(0x2141)]=0x0,_0x554265['updating']=!![],_0x554265[_0x2ba64d(0x3de)]=_0x2ba64d(0x28b0),_0x554265[_0x2ba64d(0x1c75)]=!![],_0x554265[_0x2ba64d(0x2765)]=_0x254a3d(function(){const _0x2e9d29=_0x2ba64d;_0x554265[_0x2e9d29(0x2141)]<0x5a&&(_0x554265[_0x2e9d29(0x2141)]+=0x1);},0x3e8),_0x45f99c[_0x2ba64d(0x11b7)][_0x2ba64d(0x91e)]()[_0x2ba64d(0x2945)][_0x2ba64d(0x146b)](function(_0x2486ff){const _0x1d0958=_0x2ba64d;return _0x554265[_0x1d0958(0x3de)]=_0x2486ff[_0x1d0958(0x3de)]+_0x1d0958(0x646),_0x45f99c[_0x1d0958(0x11b7)][_0x1d0958(0x2450)]()[_0x1d0958(0x2945)];})[_0x2ba64d(0x146b)](function(_0x3b9160){const _0x39cba1=_0x2ba64d;return _0x554265[_0x39cba1(0x3de)]=_0x3b9160['output']+_0x39cba1(0x646),_0x45f99c['version'][_0x39cba1(0x2e0)]()[_0x39cba1(0x2945)];})['then'](function(_0x3c2e67){const _0x42b589=_0x2ba64d;return _0x554265['output']=_0x3c2e67['output']+'...',_0x45f99c['version'][_0x42b589(0x2263)]()['$promise'];})['then'](function(_0xc25612){const _0x18f3db=_0x2ba64d;return _0x554265[_0x18f3db(0x3de)]=_0xc25612['output']+'...',_0x45f99c[_0x18f3db(0x11b7)]['restart']()[_0x18f3db(0x2945)];})[_0x2ba64d(0x146b)](function(){const _0x53d4ae=_0x2ba64d;_0x554265[_0x53d4ae(0x3de)]=_0x53d4ae(0xb92),_0x22bfd8(function(){const _0x17a82f=_0x53d4ae;_0x554265[_0x17a82f(0x25bf)]();},0x7530);})['catch'](function(_0x2caf6c){const _0x33ff6b=_0x2ba64d;_0x554265[_0x33ff6b(0x1c75)]=![],_0x554265[_0x33ff6b(0x25bf)](),_0x554265['output']=JSON[_0x33ff6b(0x10bb)](_0x2caf6c);});function _0x23af95(){const _0xeac304=_0x2ba64d;angular['isDefined'](_0x554265[_0xeac304(0x2765)])&&(_0x254a3d[_0xeac304(0x6c3)](_0x554265[_0xeac304(0x2765)]),_0x554265[_0xeac304(0x2765)]=undefined),_0x554265[_0xeac304(0x2141)]=0x64,_0x554265[_0xeac304(0x12ac)]=![];}function _0x17bf8b(){const _0x291d16=_0x2ba64d;_0x333a07[_0x291d16(0x1002)][_0x291d16(0x2502)]();}function _0x1abbe7(){const _0x214099=_0x2ba64d;_0x5f1226[_0x214099(0x2458)]();}_0x554265[_0x2ba64d(0x13f3)]=_0x1abbe7,_0x554265[_0x2ba64d(0x2502)]=_0x17bf8b,_0x554265[_0x2ba64d(0x25bf)]=_0x23af95;}const _0x379735=_0x37c55b;;const _0x4abee9=_0x4acfac['p']+_0x313a4d(0x1f4c);;_0x4c9881[_0x313a4d(0x11c2)]=[_0x313a4d(0x10e8),_0x313a4d(0xa0a),_0x313a4d(0x4d8),_0x313a4d(0x11b7)];function _0x4c9881(_0x529efa,_0x4765bc,_0x54f04e,_0xd3bc1d){const _0x20f89f=_0x313a4d,_0x1a20aa=this;_0x1a20aa[_0x20f89f(0x11b7)]=_0xd3bc1d||{};function _0x47cf1e(_0x232a12){const _0xff5a4c=_0x20f89f,_0x17943a=_0x529efa[_0xff5a4c(0x1e8a)]()[_0xff5a4c(0x1189)](_0xff5a4c(0x23bf))[_0xff5a4c(0x1cbe)]('The\x20system\x20request\x20time\x20for\x20the\x20update\x20should\x20be\x20below\x201\x20minute.

    Do\x20you\x20agree\x20the\x20terms\x20of\x20this\x20End\x20User\x20License\x20Agreement?')[_0xff5a4c(0x4bd)]('')[_0xff5a4c(0x1f27)](_0x232a12)[_0xff5a4c(0xa70)](!![])[_0xff5a4c(0x3fd)](angular[_0xff5a4c(0x1853)](_0x54f04e[_0xff5a4c(0x2586)]))['ok'](_0xff5a4c(0x250f))[_0xff5a4c(0x6c3)]('Disagree');_0x529efa['show'](_0x17943a)[_0xff5a4c(0x146b)](function(){const _0x27a471=_0xff5a4c;_0x529efa[_0x27a471(0x2615)]({'controller':_0x27a471(0xd2d),'controllerAs':'vm','templateUrl':_0x4abee9,'parent':angular[_0x27a471(0x1853)](_0x54f04e[_0x27a471(0x2586)]),'targetEvent':_0x232a12,'clickOutsideToClose':![]});});}_0x1a20aa[_0x20f89f(0x166)]=_0x47cf1e;}const _0x1ccc8f=_0x4c9881;;_0xb84351['$inject']=[_0x313a4d(0x921)];function _0xb84351(_0x27211){const _0x14977b=_0x313a4d;_0x27211[_0x14977b(0x13d6)](_0x14977b(0x259e),{'url':'/updates','views':{'content@app':{'templateUrl':_0x22327c,'controller':_0x14977b(0x4a4)}},'resolve':{'version':[_0x14977b(0x362),function(_0x412248){const _0x52fddd=_0x14977b;return _0x412248[_0x52fddd(0x2922)](_0x52fddd(0x17a2),{'latest':!![]});}],'userProfile':[_0x14977b(0x362),_0x14977b(0xa87),function(_0x103293,_0x4cc632){const _0x1affa4=_0x14977b;return _0x103293['resolve'](_0x1affa4(0x119a),{'fields':_0x1affa4(0x227),'id':_0x4cc632['getCurrentUser']()[_0x1affa4(0x209a)]});}],'userProfileSection':[_0x14977b(0x362),_0x14977b(0xa87),function(_0x3f509f,_0x25bcea){const _0x2303a1=_0x14977b;return _0x3f509f['resolve']('userProfileSection@get',{'fields':_0x2303a1(0x1e64),'userProfileId':_0x25bcea[_0x2303a1(0xb12)]()['userProfileId'],'sectionId':0x578});}]},'authenticate':!![],'permissionId':0x578,'bodyClass':_0x14977b(0xae3)});}angular[_0x313a4d(0x2528)]('app.settings.updates',[])[_0x313a4d(0x989)](_0xb84351)[_0x313a4d(0x28f0)](_0x313a4d(0xd2d),_0x379735)['controller'](_0x313a4d(0x1b5a),_0x1ccc8f);;const _0xf7a2b6=_0x4acfac['p']+_0x313a4d(0x269d);;const _0x1a8107=_0x4acfac['p']+_0x313a4d(0x2345);;const _0x2fc8da=_0x4acfac['p']+'src/js/modules/main/apps/settings/views/networks/networks.html/networks.html';;const _0x4f3a68=_0x4acfac['p']+'src/js/modules/main/apps/settings/views/customizations/customizations.html/customizations.html';;const _0x4bb142=_0x4acfac['p']+'src/js/modules/main/apps/settings/views/cloudProviders/cloudProviders.html/cloudProviders.html';;const _0x54e388=_0x4acfac['p']+_0x313a4d(0x19c2);;_0x41c34f['$inject']=['$scope','$window',_0x313a4d(0x1862),_0x313a4d(0x15fe),_0x313a4d(0x10e8),_0x313a4d(0x4d8),_0x313a4d(0x1abe),'$translate',_0x313a4d(0x161b),_0x313a4d(0x247f),_0x313a4d(0x216c),_0x313a4d(0x1fe4),_0x313a4d(0xa87),_0x313a4d(0x2690),_0x313a4d(0x15b9)];function _0x41c34f(_0x152952,_0xf55008,_0x31eab2,_0x4df052,_0x40e7de,_0x21a9df,_0x390eb9,_0xfe9d89,_0x26b1ed,_0x1a2e32,_0x4cd70d,_0x23b3cc,_0x5bb130,_0x26ee45,_0x3fa9c7){const _0x280a10=_0x313a4d,_0x7f5000=this;_0x7f5000[_0x280a10(0x2690)]=_0x26ee45,_0x7f5000[_0x280a10(0x15b9)]=_0x3fa9c7,_0x7f5000[_0x280a10(0x2321)]=_0x5bb130[_0x280a10(0xb12)](),_0x7f5000[_0x280a10(0x161b)]=_0x26b1ed||{'count':0x0,'rows':[]},_0x7f5000[_0x280a10(0x768)]=_0x280a10(0x161b),_0x7f5000[_0x280a10(0x216a)]='',_0x7f5000['listOrderAsc']=null,_0x7f5000['selectedAiTools']=[],_0x7f5000[_0x280a10(0x1a56)]={'fields':_0x280a10(0x1259),'sort':_0x280a10(0x12f2),'limit':0xa,'page':0x1},_0x7f5000['arrayservice']=_0x3f65c0()['keyBy']([{'option':_0x280a10(0x1908),'value':'\x27AmazonAWS\x27'}],function(_0x2b2c84){const _0x52d074=_0x280a10;return _0x3f65c0()['replace'](_0x2b2c84[_0x52d074(0x175d)],new RegExp('\x27','g'),'');}),_0x7f5000[_0x280a10(0x2ed)]=_0x1915ef,_0x7f5000[_0x280a10(0xf0a)]=_0x26ee71,_0x7f5000['success']=_0x4edadb,_0x7f5000[_0x280a10(0x21e2)]=_0x12aafb,_0x7f5000[_0x280a10(0x16e4)]=_0x2ebfc5,_0x7f5000[_0x280a10(0x1c9c)]=_0x5712a2,_0x7f5000['exportSelectedAiTools']=_0x501dc2,_0x7f5000[_0x280a10(0x1311)]=_0x51cb2a,_0x7f5000['deselectAiTools']=_0x3142ed,_0x7f5000['selectAllAiTools']=_0x52383d;function _0x1915ef(_0x266ebb,_0x388a7b){const _0x3b440b=_0x280a10;_0x40e7de['show']({'controller':_0x3b440b(0x453),'controllerAs':'vm','templateUrl':_0x54e388,'parent':angular[_0x3b440b(0x1853)](_0x21a9df[_0x3b440b(0x2586)]),'targetEvent':_0x388a7b,'clickOutsideToClose':!![],'locals':{'cloudProvider':_0x266ebb,'cloudProviders':_0x7f5000['cloudProviders'][_0x3b440b(0x19c7)],'license':_0x7f5000[_0x3b440b(0x2690)],'setting':null,'crudPermissions':_0x7f5000['crudPermissions']}});}function _0x26ee71(_0x191c04,_0x257922){const _0x592899=_0x280a10,_0x594766=_0x40e7de[_0x592899(0x1e8a)]()['title'](_0x592899(0xdb2)+_0x3f65c0()[_0x592899(0x20d1)](_0x592899(0x605))+'?')[_0x592899(0x1cbe)](''+(_0x191c04[_0x592899(0x19eb)]||'cloudProvider')+_0x592899(0x252f)+'\x20will\x20be\x20deleted.')[_0x592899(0x4bd)](_0x592899(0x141f))['targetEvent'](_0x257922)['ok']('OK')[_0x592899(0x6c3)](_0x592899(0x39a));_0x40e7de[_0x592899(0x2615)](_0x594766)[_0x592899(0x146b)](function(){_0x5712a2(_0x191c04);},function(){const _0x6b564=_0x592899;console[_0x6b564(0x1a74)](_0x6b564(0x39a));});}let _0x5193da=!![],_0x2be967=0x1;_0x152952['$watch'](_0x280a10(0x2669),function(_0x41f8b3,_0x527a3f){const _0x38afb4=_0x280a10;_0x5193da?_0x390eb9(function(){_0x5193da=![];}):(!_0x527a3f&&(_0x2be967=_0x7f5000[_0x38afb4(0x1a56)][_0x38afb4(0x844)]),_0x41f8b3!==_0x527a3f&&(_0x7f5000['query']['page']=0x1),!_0x41f8b3&&(_0x7f5000[_0x38afb4(0x1a56)][_0x38afb4(0x844)]=_0x2be967),_0x7f5000[_0x38afb4(0x21e2)]());});function _0x4edadb(_0x3fb835){const _0xa40f21=_0x280a10;_0x7f5000[_0xa40f21(0x161b)]=_0x3fb835||{'count':0x0,'rows':[]};}function _0x12aafb(){const _0x153969=_0x280a10;_0x7f5000[_0x153969(0x1a56)][_0x153969(0x145d)]=(_0x7f5000[_0x153969(0x1a56)]['page']-0x1)*_0x7f5000['query']['limit'],_0x5bb130[_0x153969(0x23e0)]('admin')?_0x7f5000[_0x153969(0xb9c)]=_0x1a2e32['cloudProvider'][_0x153969(0x16b4)](_0x7f5000[_0x153969(0x1a56)],_0x4edadb)['$promise']:(_0x7f5000[_0x153969(0x1a56)]['id']=_0x7f5000[_0x153969(0x26b6)]['id'],_0x7f5000['query']['section']=_0x153969(0x27aa),_0x7f5000[_0x153969(0xb9c)]=_0x1a2e32[_0x153969(0x26b6)][_0x153969(0x158f)](_0x7f5000['query'],_0x4edadb)[_0x153969(0x2945)]);}function _0x2ebfc5(_0x58ed45,_0x16a7f0){const _0x2fe63f=_0x280a10;_0x40e7de['show']({'controller':'CreateOrEditCloudProviderDialogController','controllerAs':'vm','templateUrl':_0x54e388,'parent':angular[_0x2fe63f(0x1853)](_0x21a9df[_0x2fe63f(0x2586)]),'targetEvent':_0x58ed45,'clickOutsideToClose':!![],'locals':{'cloudProvider':_0x16a7f0,'cloudProviders':_0x7f5000[_0x2fe63f(0x161b)]['rows'],'license':_0x7f5000[_0x2fe63f(0x2690)],'setting':_0x7f5000[_0x2fe63f(0x15b9)],'crudPermissions':_0x7f5000[_0x2fe63f(0x2514)]}});}function _0x5712a2(_0x56af16){const _0x3c1af0=_0x280a10;_0x1a2e32[_0x3c1af0(0x605)][_0x3c1af0(0x1fac)]({'id':_0x56af16['id']})[_0x3c1af0(0x2945)]['then'](function(){const _0x33931e=_0x3c1af0;_0x3f65c0()['remove'](_0x7f5000[_0x33931e(0x161b)][_0x33931e(0x19c7)],{'id':_0x56af16['id']}),_0x7f5000['cloudProviders'][_0x33931e(0x51c)]-=0x1,!_0x7f5000[_0x33931e(0x161b)][_0x33931e(0x19c7)]['length']&&_0x7f5000[_0x33931e(0x21e2)](),_0x23b3cc[_0x33931e(0x1c75)]({'title':_0x3f65c0()[_0x33931e(0x20d1)](_0x33931e(0xdb3))+'\x20deleted!','msg':_0x56af16[_0x33931e(0x19eb)]?_0x56af16['name']+_0x33931e(0x23e3):''});})['catch'](function(_0x20b1c5){const _0x3cec42=_0x3c1af0;if(_0x20b1c5[_0x3cec42(0x524)]&&_0x20b1c5[_0x3cec42(0x524)]['errors']&&_0x20b1c5['data'][_0x3cec42(0xcef)][_0x3cec42(0x402)]){_0x7f5000[_0x3cec42(0xcef)]=_0x20b1c5[_0x3cec42(0x524)][_0x3cec42(0xcef)]||[{'message':_0x20b1c5[_0x3cec42(0xd5f)](),'type':_0x3cec42(0x1328)}];for(let _0x1a7092=0x0;_0x1a7092<_0x20b1c5['data'][_0x3cec42(0xcef)][_0x3cec42(0x402)];_0x1a7092++){_0x23b3cc[_0x3cec42(0x1980)]({'title':_0x20b1c5['data'][_0x3cec42(0xcef)][_0x1a7092][_0x3cec42(0x1142)],'msg':_0x20b1c5['data']['errors'][_0x1a7092][_0x3cec42(0x7fd)]});}}else _0x23b3cc[_0x3cec42(0x1980)]({'title':_0x20b1c5[_0x3cec42(0x107b)]?_0x3cec42(0x262a)+_0x20b1c5[_0x3cec42(0x107b)]+_0x3cec42(0x1315)+_0x20b1c5[_0x3cec42(0x167f)]:'SYSTEM:DELETEcloudProvider','msg':_0x20b1c5[_0x3cec42(0x524)]?JSON[_0x3cec42(0x10bb)](_0x20b1c5[_0x3cec42(0x524)]['message']):_0x20b1c5[_0x3cec42(0x7fd)]||_0x20b1c5[_0x3cec42(0xd5f)]()});});}function _0x501dc2(){const _0x2fa031=_0x280a10,_0x125ff1=angular[_0x2fa031(0x235a)](_0x7f5000[_0x2fa031(0xd2f)]);return _0x7f5000[_0x2fa031(0xd2f)]=[],_0x125ff1;}function _0x51cb2a(_0x3afdac){const _0x23342a=_0x280a10,_0x22bb4b=_0x40e7de[_0x23342a(0x1e8a)]()[_0x23342a(0x1189)](_0x23342a(0x1302))[_0x23342a(0x1cbe)](''+_0x7f5000['selectedAiTools'][_0x23342a(0x402)]+_0x23342a(0x2452)+_0x23342a(0xe01))[_0x23342a(0x4bd)]('delete\x20CloudProviders')['targetEvent'](_0x3afdac)['ok']('OK')['cancel'](_0x23342a(0x39a));_0x40e7de['show'](_0x22bb4b)[_0x23342a(0x146b)](function(){const _0x1b3b74=_0x23342a;_0x7f5000[_0x1b3b74(0xd2f)][_0x1b3b74(0x1df5)](function(_0x1c4bcd){_0x5712a2(_0x1c4bcd);}),_0x7f5000['selectedAiTools']=[];});}function _0x3142ed(){const _0x1502c4=_0x280a10;_0x7f5000[_0x1502c4(0xd2f)]=[];}function _0x52383d(){const _0x3a6c5e=_0x280a10;_0x7f5000[_0x3a6c5e(0xd2f)]=_0x7f5000[_0x3a6c5e(0x161b)][_0x3a6c5e(0x19c7)];}}const _0x3e06fa=_0x41c34f;;_0x497209['$inject']=['$scope',_0x313a4d(0x1862),'$location',_0x313a4d(0x10e8),'$q',_0x313a4d(0x214b),'toasty',_0x313a4d(0x161b),'cloudProvider',_0x313a4d(0x247f),_0x313a4d(0xa87),_0x313a4d(0x2690),'setting'];function _0x497209(_0x4c09c0,_0x26d18c,_0x2d64c7,_0x27ba3f,_0x197b40,_0x292f0b,_0x438bff,_0x5be04a,_0x2d54f4,_0x482dc6,_0x50c3a4,_0x46501f,_0x5ebfdd){const _0x280ba7=_0x313a4d,_0x1f773b=this;_0x1f773b[_0x280ba7(0x2321)]=_0x50c3a4['getCurrentUser'](),_0x1f773b[_0x280ba7(0xcef)]=[],_0x1f773b['setting']=_0x5ebfdd,_0x1f773b[_0x280ba7(0x2690)]=_0x46501f,_0x1f773b[_0x280ba7(0x855)]={},_0x1f773b['passwordPattern']=_0x1f773b[_0x280ba7(0x15b9)]&&_0x1f773b['setting']['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1f773b[_0x280ba7(0x1189)]='SETTINGS.EDIT_CLOUDPROVIDER',_0x1f773b[_0x280ba7(0x605)]=angular[_0x280ba7(0x235a)](_0x2d54f4),_0x1f773b[_0x280ba7(0x161b)]=_0x5be04a,_0x1f773b[_0x280ba7(0x1ccd)]=![];!_0x1f773b['cloudProvider']&&(_0x1f773b['cloudProvider']={},_0x1f773b['title']=_0x280ba7(0xde3),_0x1f773b[_0x280ba7(0x1ccd)]=!![]);_0x1f773b[_0x280ba7(0xc48)]=_0x3d97e8,_0x1f773b[_0x280ba7(0x46b)]=_0x458a89,_0x1f773b[_0x280ba7(0x1c9c)]=_0x1e17af,_0x1f773b[_0x280ba7(0xe73)]=_0x4fa653,_0x1f773b[_0x280ba7(0x13f3)]=_0x18f58e;function _0x3d97e8(){const _0x2fa013=_0x280ba7;_0x1f773b[_0x2fa013(0xcef)]=[],_0x482dc6[_0x2fa013(0x605)][_0x2fa013(0x1e3)](_0x1f773b[_0x2fa013(0x605)])['$promise']['then'](function(_0x36ac40){const _0x2a5fae=_0x2fa013;_0x1f773b['cloudProviders'][_0x2a5fae(0xb3d)](_0x36ac40[_0x2a5fae(0x2488)]()),_0x438bff['success']({'title':_0x2a5fae(0x2179),'msg':_0x1f773b[_0x2a5fae(0x605)]['name']?_0x1f773b[_0x2a5fae(0x605)]['name']+_0x2a5fae(0x1386):''}),_0x18f58e(_0x36ac40);})['catch'](function(_0x4fce22){const _0x10fb1d=_0x2fa013;if(_0x4fce22[_0x10fb1d(0x524)]&&_0x4fce22[_0x10fb1d(0x524)]['errors']&&_0x4fce22[_0x10fb1d(0x524)][_0x10fb1d(0xcef)]['length']){_0x1f773b[_0x10fb1d(0xcef)]=_0x4fce22[_0x10fb1d(0x524)][_0x10fb1d(0xcef)]||[{'message':_0x4fce22[_0x10fb1d(0xd5f)](),'type':'api.cloudProvider.save'}];for(let _0x7a3cee=0x0;_0x7a3cee<_0x4fce22[_0x10fb1d(0x524)][_0x10fb1d(0xcef)][_0x10fb1d(0x402)];_0x7a3cee+=0x1){_0x438bff['error']({'title':_0x4fce22['data'][_0x10fb1d(0xcef)][_0x7a3cee]['type'],'msg':_0x4fce22[_0x10fb1d(0x524)][_0x10fb1d(0xcef)][_0x7a3cee][_0x10fb1d(0x7fd)]});}}else _0x438bff['error']({'title':_0x4fce22[_0x10fb1d(0x107b)]?_0x10fb1d(0x262a)+_0x4fce22['status']+'\x20-\x20'+_0x4fce22[_0x10fb1d(0x167f)]:_0x10fb1d(0x780),'msg':_0x4fce22[_0x10fb1d(0x524)]?JSON[_0x10fb1d(0x10bb)](_0x4fce22[_0x10fb1d(0x524)][_0x10fb1d(0x7fd)]):_0x4fce22[_0x10fb1d(0xd5f)]()});});}function _0x458a89(){const _0x25476e=_0x280ba7;_0x1f773b['errors']=[],_0x482dc6['cloudProvider']['update']({'id':_0x1f773b[_0x25476e(0x605)]['id']},_0x1f773b['cloudProvider'])[_0x25476e(0x2945)]['then'](function(_0x1b6ccd){const _0x148a46=_0x25476e,_0x475cf2=_0x3f65c0()[_0x148a46(0xc84)](_0x1f773b[_0x148a46(0x161b)],{'id':_0x1b6ccd['id']});_0x475cf2&&_0x3f65c0()[_0x148a46(0x168d)](_0x475cf2,_0x3f65c0()[_0x148a46(0x40e)](_0x1b6ccd[_0x148a46(0x2488)](),_0x3f65c0()['keys'](_0x475cf2))),_0x438bff[_0x148a46(0x1c75)]({'title':'CloudProvider\x20properly\x20saved!','msg':_0x1f773b[_0x148a46(0x605)]['name']?_0x1f773b[_0x148a46(0x605)][_0x148a46(0x19eb)]+_0x148a46(0x24db):''}),_0x18f58e(_0x1b6ccd);})[_0x25476e(0x129e)](function(_0x23b8b0){const _0x416be0=_0x25476e;if(_0x23b8b0[_0x416be0(0x524)]&&_0x23b8b0[_0x416be0(0x524)][_0x416be0(0xcef)]&&_0x23b8b0[_0x416be0(0x524)]['errors']['length']){_0x1f773b[_0x416be0(0xcef)]=_0x23b8b0[_0x416be0(0x524)][_0x416be0(0xcef)]||[{'message':_0x23b8b0['toString'](),'type':'api.cloudProvider.update'}];for(let _0x57fff4=0x0;_0x57fff4<_0x23b8b0['data'][_0x416be0(0xcef)][_0x416be0(0x402)];_0x57fff4++){_0x438bff['error']({'title':_0x23b8b0[_0x416be0(0x524)]['errors'][_0x57fff4][_0x416be0(0x1142)],'msg':_0x23b8b0[_0x416be0(0x524)][_0x416be0(0xcef)][_0x57fff4]['message']});}}else _0x438bff[_0x416be0(0x1980)]({'title':_0x23b8b0[_0x416be0(0x107b)]?_0x416be0(0x262a)+_0x23b8b0[_0x416be0(0x107b)]+'\x20-\x20'+_0x23b8b0[_0x416be0(0x167f)]:_0x416be0(0x1e88),'msg':_0x23b8b0['data']?JSON[_0x416be0(0x10bb)](_0x23b8b0[_0x416be0(0x524)]['message']):_0x23b8b0[_0x416be0(0xd5f)]()});});}function _0x1e17af(_0x4b5b4d){const _0x13a693=_0x280ba7;_0x1f773b[_0x13a693(0xcef)]=[];const _0x149aec=_0x27ba3f[_0x13a693(0x1e8a)]()[_0x13a693(0x1189)]('Are\x20you\x20sure?')[_0x13a693(0x80f)]('The\x20cloudProvider\x20will\x20be\x20deleted.')[_0x13a693(0x4bd)](_0x13a693(0x8c4))['ok'](_0x13a693(0x25de))[_0x13a693(0x6c3)](_0x13a693(0xcf0))['targetEvent'](_0x4b5b4d);_0x27ba3f[_0x13a693(0x2615)](_0x149aec)[_0x13a693(0x146b)](function(){const _0x3b49e8=_0x13a693;_0x482dc6['cloudProvider'][_0x3b49e8(0x1fac)]({'id':_0x1f773b[_0x3b49e8(0x605)]['id']})[_0x3b49e8(0x2945)][_0x3b49e8(0x146b)](function(){const _0x50c295=_0x3b49e8;_0x3f65c0()[_0x50c295(0x2640)](_0x1f773b[_0x50c295(0x161b)],{'id':_0x1f773b['cloudProvider']['id']}),_0x438bff[_0x50c295(0x1c75)]({'title':'CloudProvider\x20properly\x20deleted!','msg':(_0x1f773b[_0x50c295(0x605)][_0x50c295(0x19eb)]||_0x50c295(0x605))+'\x20has\x20been\x20deleted!'}),_0x18f58e(_0x1f773b[_0x50c295(0x605)]);})[_0x3b49e8(0x129e)](function(_0x5be7b5){const _0x1e151b=_0x3b49e8;if(_0x5be7b5['data']&&_0x5be7b5['data'][_0x1e151b(0xcef)]&&_0x5be7b5[_0x1e151b(0x524)][_0x1e151b(0xcef)]['length']){_0x1f773b[_0x1e151b(0xcef)]=_0x5be7b5['data']['errors']||[{'message':_0x5be7b5['toString'](),'type':_0x1e151b(0x455)}];for(let _0x17a455=0x0;_0x17a455<_0x5be7b5[_0x1e151b(0x524)]['errors'][_0x1e151b(0x402)];_0x17a455++){_0x438bff[_0x1e151b(0x1980)]({'title':_0x5be7b5['data'][_0x1e151b(0xcef)][_0x17a455]['type'],'msg':_0x5be7b5['data'][_0x1e151b(0xcef)][_0x17a455][_0x1e151b(0x7fd)]});}}else _0x438bff[_0x1e151b(0x1980)]({'title':_0x5be7b5['status']?'API:'+_0x5be7b5['status']+_0x1e151b(0x1315)+_0x5be7b5[_0x1e151b(0x167f)]:_0x1e151b(0x455),'msg':_0x5be7b5['data']?JSON['stringify'](_0x5be7b5[_0x1e151b(0x524)][_0x1e151b(0x7fd)]):_0x5be7b5[_0x1e151b(0x7fd)]||_0x5be7b5['toString']()});});},function(){});}function _0x4fa653(_0x1764d4){return _0x1764d4===null?undefined:new Date(_0x1764d4);}function _0x18f58e(_0x30e6a8){const _0x400d14=_0x280ba7;_0x27ba3f[_0x400d14(0x2458)](_0x30e6a8);}}const _0x296e19=_0x497209;;_0x58efe7[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),'$state',_0x313a4d(0xd08),_0x313a4d(0x10e8),'$q',_0x313a4d(0x214b),_0x313a4d(0x1fe4),_0x313a4d(0x22e),_0x313a4d(0x22b3),_0x313a4d(0x247f),'Auth',_0x313a4d(0x2690),_0x313a4d(0x15b9),'crudPermissions'];function _0x58efe7(_0x5592f0,_0x5807a1,_0x1e3a1c,_0x9956d4,_0x1ac117,_0x4a1902,_0x155712,_0x545590,_0x1f6ca3,_0x4a3da4,_0xe480f9,_0x45dd40,_0xd3874a,_0x18101f){const _0x445875=_0x313a4d,_0x52a3c5=this;_0x52a3c5[_0x445875(0x2321)]=_0xe480f9['getCurrentUser'](),_0x52a3c5['errors']=[],_0x52a3c5[_0x445875(0x15b9)]=_0xd3874a,_0x52a3c5[_0x445875(0x2690)]=_0x45dd40,_0x52a3c5['crudPermissions']=_0x18101f,_0x52a3c5[_0x445875(0x855)]={},_0x52a3c5[_0x445875(0x2251)]=_0x52a3c5[_0x445875(0x15b9)]&&_0x52a3c5['setting']['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x52a3c5[_0x445875(0x1189)]=_0x445875(0x1dc0),_0x52a3c5[_0x445875(0x22b3)]=angular['copy'](_0x1f6ca3),_0x52a3c5['customizations']=_0x545590,_0x52a3c5[_0x445875(0xf2c)]=![];!_0x52a3c5[_0x445875(0x22b3)]&&(_0x52a3c5['customization']={},_0x52a3c5[_0x445875(0x1189)]=_0x445875(0x11b1),_0x52a3c5[_0x445875(0xf2c)]=!![]);_0x52a3c5[_0x445875(0x4a6)]=_0x29c367,_0x52a3c5[_0x445875(0x2159)]=_0x12c327,_0x52a3c5[_0x445875(0xc1d)]=_0x58304c,_0x52a3c5[_0x445875(0xe73)]=_0x2f8f1a,_0x52a3c5[_0x445875(0x13f3)]=_0x16a51d;function _0x29c367(){const _0xc4a908=_0x445875;_0x52a3c5['errors']=[],_0x4a3da4[_0xc4a908(0x15b9)][_0xc4a908(0x1e3)](_0x52a3c5[_0xc4a908(0x22b3)])['$promise'][_0xc4a908(0x146b)](function(_0x5f5425){const _0x1a3caa=_0xc4a908;_0x52a3c5['customizations'][_0x1a3caa(0xb3d)](_0x5f5425['toJSON']()),_0x155712['success']({'title':_0x1a3caa(0x2832),'msg':_0x52a3c5[_0x1a3caa(0x22b3)]['name']?_0x52a3c5[_0x1a3caa(0x22b3)][_0x1a3caa(0x19eb)]+'\x20has\x20been\x20created!':''}),_0x16a51d(_0x5f5425);})[_0xc4a908(0x129e)](function(_0x91421a){const _0x5188f0=_0xc4a908;if(_0x91421a['data']&&_0x91421a[_0x5188f0(0x524)][_0x5188f0(0xcef)]&&_0x91421a[_0x5188f0(0x524)][_0x5188f0(0xcef)][_0x5188f0(0x402)]){_0x52a3c5[_0x5188f0(0xcef)]=_0x91421a[_0x5188f0(0x524)]['errors']||[{'message':_0x91421a['toString'](),'type':_0x5188f0(0x1790)}];for(let _0x5ca28e=0x0;_0x5ca28e<_0x91421a[_0x5188f0(0x524)][_0x5188f0(0xcef)][_0x5188f0(0x402)];_0x5ca28e+=0x1){_0x155712[_0x5188f0(0x1980)]({'title':_0x91421a[_0x5188f0(0x524)][_0x5188f0(0xcef)][_0x5ca28e][_0x5188f0(0x1142)],'msg':_0x91421a['data']['errors'][_0x5ca28e][_0x5188f0(0x7fd)]});}}else _0x155712['error']({'title':_0x91421a[_0x5188f0(0x107b)]?_0x5188f0(0x262a)+_0x91421a[_0x5188f0(0x107b)]+_0x5188f0(0x1315)+_0x91421a['statusText']:_0x5188f0(0x1790),'msg':_0x91421a[_0x5188f0(0x524)]?JSON[_0x5188f0(0x10bb)](_0x91421a[_0x5188f0(0x524)][_0x5188f0(0x7fd)]):_0x91421a[_0x5188f0(0xd5f)]()});});}function _0x12c327(){const _0x1a1c6b=_0x445875;_0x52a3c5['errors']=[],_0x4a3da4[_0x1a1c6b(0x15b9)][_0x1a1c6b(0x18e1)]({'id':_0x52a3c5[_0x1a1c6b(0x22b3)]['id']},_0x52a3c5['customization'])[_0x1a1c6b(0x2945)][_0x1a1c6b(0x146b)](function(_0x3dbada){const _0x597f86=_0x1a1c6b,_0x499cbe=_0x3f65c0()[_0x597f86(0xc84)](_0x52a3c5[_0x597f86(0x22e)],{'id':_0x3dbada['id']});_0x499cbe&&_0x3f65c0()['merge'](_0x499cbe,_0x3f65c0()[_0x597f86(0x40e)](_0x3dbada[_0x597f86(0x2488)](),_0x3f65c0()[_0x597f86(0x627)](_0x499cbe))),_0x155712[_0x597f86(0x1c75)]({'title':_0x597f86(0x1a9a),'msg':_0x52a3c5[_0x597f86(0x22b3)]['name']?_0x52a3c5[_0x597f86(0x22b3)]['name']+_0x597f86(0x24db):''}),_0x16a51d(_0x3dbada);})[_0x1a1c6b(0x129e)](function(_0x2ac99b){const _0x38a103=_0x1a1c6b;if(_0x2ac99b[_0x38a103(0x524)]&&_0x2ac99b[_0x38a103(0x524)][_0x38a103(0xcef)]&&_0x2ac99b[_0x38a103(0x524)]['errors'][_0x38a103(0x402)]){_0x52a3c5[_0x38a103(0xcef)]=_0x2ac99b['data'][_0x38a103(0xcef)]||[{'message':_0x2ac99b[_0x38a103(0xd5f)](),'type':'api.setting.update'}];for(let _0x4d6e65=0x0;_0x4d6e65<_0x2ac99b[_0x38a103(0x524)]['errors'][_0x38a103(0x402)];_0x4d6e65++){_0x155712['error']({'title':_0x2ac99b['data'][_0x38a103(0xcef)][_0x4d6e65][_0x38a103(0x1142)],'msg':_0x2ac99b[_0x38a103(0x524)][_0x38a103(0xcef)][_0x4d6e65][_0x38a103(0x7fd)]});}}else _0x155712[_0x38a103(0x1980)]({'title':_0x2ac99b['status']?'API:'+_0x2ac99b[_0x38a103(0x107b)]+_0x38a103(0x1315)+_0x2ac99b[_0x38a103(0x167f)]:_0x38a103(0xddc),'msg':_0x2ac99b[_0x38a103(0x524)]?JSON[_0x38a103(0x10bb)](_0x2ac99b[_0x38a103(0x524)][_0x38a103(0x7fd)]):_0x2ac99b['toString']()});});}function _0x58304c(_0x3a3a65){const _0x303f94=_0x445875;_0x52a3c5[_0x303f94(0xcef)]=[];const _0x148c6e=_0x9956d4[_0x303f94(0x1e8a)]()[_0x303f94(0x1189)](_0x303f94(0x1d64))[_0x303f94(0x80f)](_0x303f94(0x1015))[_0x303f94(0x4bd)]('Delete\x20Customization')['ok'](_0x303f94(0x25de))['cancel'](_0x303f94(0xcf0))[_0x303f94(0x1f27)](_0x3a3a65);_0x9956d4['show'](_0x148c6e)[_0x303f94(0x146b)](function(){const _0x4d2c00=_0x303f94;_0x4a3da4[_0x4d2c00(0x15b9)][_0x4d2c00(0x1fac)]({'id':_0x52a3c5[_0x4d2c00(0x22b3)]['id']})[_0x4d2c00(0x2945)]['then'](function(){const _0x578639=_0x4d2c00;_0x3f65c0()[_0x578639(0x2640)](_0x52a3c5[_0x578639(0x22e)],{'id':_0x52a3c5['customization']['id']}),_0x155712[_0x578639(0x1c75)]({'title':_0x578639(0x926),'msg':(_0x52a3c5[_0x578639(0x22b3)][_0x578639(0x19eb)]||'customization')+_0x578639(0x23e3)}),_0x16a51d(_0x52a3c5[_0x578639(0x22b3)]);})['catch'](function(_0x27fd3e){const _0x267654=_0x4d2c00;if(_0x27fd3e[_0x267654(0x524)]&&_0x27fd3e[_0x267654(0x524)][_0x267654(0xcef)]&&_0x27fd3e['data'][_0x267654(0xcef)][_0x267654(0x402)]){_0x52a3c5['errors']=_0x27fd3e[_0x267654(0x524)][_0x267654(0xcef)]||[{'message':_0x27fd3e[_0x267654(0xd5f)](),'type':_0x267654(0x254e)}];for(let _0x2f92d6=0x0;_0x2f92d6<_0x27fd3e['data'][_0x267654(0xcef)]['length'];_0x2f92d6++){_0x155712['error']({'title':_0x27fd3e[_0x267654(0x524)]['errors'][_0x2f92d6][_0x267654(0x1142)],'msg':_0x27fd3e[_0x267654(0x524)][_0x267654(0xcef)][_0x2f92d6][_0x267654(0x7fd)]});}}else _0x155712[_0x267654(0x1980)]({'title':_0x27fd3e[_0x267654(0x107b)]?'API:'+_0x27fd3e[_0x267654(0x107b)]+_0x267654(0x1315)+_0x27fd3e[_0x267654(0x167f)]:_0x267654(0x254e),'msg':_0x27fd3e[_0x267654(0x524)]?JSON[_0x267654(0x10bb)](_0x27fd3e[_0x267654(0x524)][_0x267654(0x7fd)]):_0x27fd3e[_0x267654(0x7fd)]||_0x27fd3e[_0x267654(0xd5f)]()});});},function(){});}function _0x2f8f1a(_0x4f94ba){return _0x4f94ba===null?undefined:new Date(_0x4f94ba);}function _0x16a51d(_0x256243){const _0x33449f=_0x445875;_0x9956d4[_0x33449f(0x2458)](_0x256243);}}const _0x212012=_0x58efe7;;_0x1f35ba[_0x313a4d(0x11c2)]=['customizations',_0x313a4d(0x247f),_0x313a4d(0x1fe4),_0x313a4d(0x2690),'Auth'];function _0x1f35ba(_0x30b36b,_0x548584,_0x301c54,_0x399afb,_0x79158a){const _0x5eecd0=_0x313a4d,_0x7e7723=this;_0x7e7723[_0x5eecd0(0x2321)]=_0x79158a[_0x5eecd0(0xb12)](),_0x7e7723['license']=_0x399afb,_0x7e7723[_0x5eecd0(0x22e)]=_0x30b36b,_0x7e7723[_0x5eecd0(0x22b3)]={};_0x7e7723['customizations']&&_0x7e7723['customizations'][_0x5eecd0(0x19c7)]&&_0x7e7723[_0x5eecd0(0x22e)]['rows']['length']&&(_0x7e7723[_0x5eecd0(0x22b3)]=_0x7e7723[_0x5eecd0(0x22e)]['rows'][0x0]);_0x7e7723['saveCustomization']=_0xac8bde;function _0xac8bde(){const _0x1324d5=_0x5eecd0;_0x7e7723[_0x1324d5(0x22b3)]['id']?_0x548584[_0x1324d5(0x15b9)]['update']({'id':_0x7e7723['customization']['id']},_0x7e7723[_0x1324d5(0x22b3)])[_0x1324d5(0x2945)][_0x1324d5(0x146b)](function(){const _0x4f2fb3=_0x1324d5;_0x301c54[_0x4f2fb3(0x1c75)]({'title':_0x4f2fb3(0x2200),'msg':_0x7e7723[_0x4f2fb3(0x22b3)][_0x4f2fb3(0x19eb)]?_0x7e7723[_0x4f2fb3(0x22b3)][_0x4f2fb3(0x19eb)]+_0x4f2fb3(0x6b0):''});})[_0x1324d5(0x129e)](function(_0x565081){const _0x1b9f70=_0x1324d5;_0x301c54[_0x1b9f70(0x1980)]({'title':_0x565081[_0x1b9f70(0x107b)]?_0x1b9f70(0x262a)+_0x565081[_0x1b9f70(0x107b)]+_0x1b9f70(0x1315)+_0x565081[_0x1b9f70(0x167f)]:_0x1b9f70(0x83a),'msg':_0x565081[_0x1b9f70(0x524)]?JSON['stringify'](_0x565081[_0x1b9f70(0x524)]):_0x565081[_0x1b9f70(0xd5f)]()});}):_0x548584['setting'][_0x1324d5(0x1e3)](_0x7e7723[_0x1324d5(0x22b3)])['$promise']['then'](function(_0x4bffe7){const _0x572727=_0x1324d5;_0x3f65c0()[_0x572727(0x168d)](_0x7e7723[_0x572727(0x22b3)],_0x4bffe7),_0x301c54['success']({'title':'Customization\x20updated!','msg':_0x7e7723[_0x572727(0x22b3)][_0x572727(0x19eb)]?_0x7e7723['customization']['name']+_0x572727(0x6b0):''});})[_0x1324d5(0x129e)](function(_0x34264a){const _0x799260=_0x1324d5;_0x301c54[_0x799260(0x1980)]({'title':_0x34264a[_0x799260(0x107b)]?_0x799260(0x262a)+_0x34264a[_0x799260(0x107b)]+_0x799260(0x1315)+_0x34264a[_0x799260(0x167f)]:_0x799260(0x83a),'msg':_0x34264a[_0x799260(0x524)]?JSON['stringify'](_0x34264a['data']):_0x34264a[_0x799260(0xd5f)]()});});}}const _0x27095d=_0x1f35ba;;_0x559c33[_0x313a4d(0x11c2)]=['$cookies',_0x313a4d(0x1fe4)];function _0x559c33(_0x1dc93f,_0x44bb2d){const _0x479588=_0x313a4d,_0x5a2838=this,_0x40a572=0x8,_0x5a68c7=_0x40a572*0x400*0x400;_0x5a2838[_0x479588(0x22b3)]={},_0x5a2838[_0x479588(0x4c3)]={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x5a68c7,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x5a2838['ngFlow']={'flow':{}},_0x5a2838['dropping']=![],_0x5a2838['fileAdded']=_0x13a5be,_0x5a2838[_0x479588(0x1dc6)]=_0x4a3042,_0x5a2838[_0x479588(0xc4c)]=_0x5b5ad2,_0x5a2838[_0x479588(0x5aa)]=_0x25e742;function _0x25e742(_0xd1a8e2){const _0x23f85d=_0x479588;_0x5a2838[_0x23f85d(0x22b3)]=angular[_0x23f85d(0x235a)](_0xd1a8e2),_0x5a2838[_0x23f85d(0x4c3)]['target']=_0x23f85d(0x148)['replace'](_0x23f85d(0xa55),_0x5a2838[_0x23f85d(0x22b3)]['id']),_0x5a2838[_0x23f85d(0x22b3)]['images']=[];}function _0x13a5be(_0x3637d5){const _0x594431=_0x479588,_0x1ce284=[_0x594431(0xadf),_0x594431(0x621),_0x594431(0x135f)];if(!_0x3f65c0()[_0x594431(0xa4e)](_0x1ce284,_0x3637d5['getExtension']()))return _0x44bb2d[_0x594431(0x1980)]({'title':_0x594431(0x4c6)+_0x3637d5[_0x594431(0x193f)](),'msg':_0x594431(0x208f)+_0x1ce284[_0x594431(0xb47)]()}),![];if(_0x3637d5[_0x594431(0x4cc)]>_0x5a68c7)return _0x44bb2d['error']({'title':'File\x20too\x20big','msg':_0x594431(0x923)+_0x40a572+'MB'}),![];const _0x3674dd={'id':_0x3637d5[_0x594431(0x1276)],'file':_0x3637d5,'type':_0x594431(0x159c)};return _0x5a2838[_0x594431(0x22b3)][_0x594431(0x1f07)][_0x594431(0xb3d)](_0x3674dd),!![];}function _0x4a3042(){const _0x3d78fa=_0x479588;_0x5a2838['ngFlow'][_0x3d78fa(0x963)][_0x3d78fa(0x1da1)][_0x3d78fa(0xa01)]={'X-Requested-With':_0x3d78fa(0x1f8f),'Authorization':'Bearer\x20'+_0x1dc93f[_0x3d78fa(0x16b4)](_0x3d78fa(0xe2d))},_0x5a2838['ngFlow']['flow'][_0x3d78fa(0x1dc6)]();}function _0x5b5ad2(_0x893708){const _0x48439c=_0x479588;angular[_0x48439c(0x1df5)](_0x5a2838[_0x48439c(0x22b3)][_0x48439c(0x1f07)],function(_0x509505){const _0x179307=_0x48439c;if(_0x509505['id']===_0x893708['uniqueIdentifier']){const _0x4673b3=new FileReader();_0x4673b3['readAsDataURL'](_0x509505[_0x179307(0x252e)][_0x179307(0x252e)]),_0x4673b3['onload']=function(_0x568cee){const _0x46b465=_0x179307;_0x509505[_0x46b465(0x20cc)]=_0x568cee['target'][_0x46b465(0x61a)];},_0x509505['type']=_0x179307(0x106c);}});}}const _0x572f3d=_0x559c33;;_0x38f294[_0x313a4d(0x11c2)]=[_0x313a4d(0x23df),_0x313a4d(0x1fe4)];function _0x38f294(_0x37b047,_0x1684dc){const _0x586b49=_0x313a4d,_0x29a8e9=this,_0x40581e=0x8,_0x4e9939=_0x40581e*0x400*0x400;_0x29a8e9['customization']={},_0x29a8e9['ngFlowOptions']={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x4e9939,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x29a8e9[_0x586b49(0x1376)]={'flow':{}},_0x29a8e9['dropping']=![],_0x29a8e9[_0x586b49(0x143d)]=_0x38680a,_0x29a8e9[_0x586b49(0x1dc6)]=_0x106b97,_0x29a8e9[_0x586b49(0xc4c)]=_0x42be7f,_0x29a8e9['init']=_0x3cf923;function _0x3cf923(_0x2b0548){const _0x2884a5=_0x586b49;_0x29a8e9[_0x2884a5(0x22b3)]=angular[_0x2884a5(0x235a)](_0x2b0548),_0x29a8e9[_0x2884a5(0x4c3)]['target']=_0x2884a5(0x11d5)[_0x2884a5(0x5f4)](_0x2884a5(0xa55),_0x29a8e9[_0x2884a5(0x22b3)]['id']),_0x29a8e9[_0x2884a5(0x22b3)][_0x2884a5(0x1f07)]=[];}function _0x38680a(_0x12d111){const _0x134f4d=_0x586b49,_0x1d6ffe=[_0x134f4d(0xadf),_0x134f4d(0x621)];if(!_0x3f65c0()[_0x134f4d(0xa4e)](_0x1d6ffe,_0x12d111[_0x134f4d(0x193f)]()))return _0x1684dc[_0x134f4d(0x1980)]({'title':'Invalid\x20extension:\x20'+_0x12d111['getExtension'](),'msg':_0x134f4d(0x208f)+_0x1d6ffe[_0x134f4d(0xb47)]()}),![];if(_0x12d111[_0x134f4d(0x4cc)]>_0x4e9939)return _0x1684dc[_0x134f4d(0x1980)]({'title':_0x134f4d(0x625),'msg':_0x134f4d(0x923)+_0x40581e+'MB'}),![];const _0x2b5b2d={'id':_0x12d111[_0x134f4d(0x1276)],'file':_0x12d111,'type':'uploading'};return _0x29a8e9[_0x134f4d(0x22b3)][_0x134f4d(0x1f07)][_0x134f4d(0xb3d)](_0x2b5b2d),!![];}function _0x106b97(){const _0x27225b=_0x586b49;_0x29a8e9[_0x27225b(0x1376)][_0x27225b(0x963)]['opts'][_0x27225b(0xa01)]={'X-Requested-With':_0x27225b(0x1f8f),'Authorization':_0x27225b(0x2745)+_0x37b047[_0x27225b(0x16b4)](_0x27225b(0xe2d))},_0x29a8e9[_0x27225b(0x1376)]['flow'][_0x27225b(0x1dc6)]();}function _0x42be7f(_0x2a79e8){const _0x201a61=_0x586b49;angular[_0x201a61(0x1df5)](_0x29a8e9[_0x201a61(0x22b3)]['images'],function(_0x1dabdf){const _0xf40f35=_0x201a61;if(_0x1dabdf['id']===_0x2a79e8[_0xf40f35(0x1276)]){const _0x3c2a5b=new FileReader();_0x3c2a5b[_0xf40f35(0xa0c)](_0x1dabdf[_0xf40f35(0x252e)][_0xf40f35(0x252e)]),_0x3c2a5b['onload']=function(_0x41d3db){const _0x1f8ff2=_0xf40f35;_0x1dabdf['url']=_0x41d3db[_0x1f8ff2(0xe1d)]['result'];},_0x1dabdf[_0xf40f35(0x1142)]=_0xf40f35(0x106c);}});}}const _0x425505=_0x38f294;;_0x5affa8[_0x313a4d(0x11c2)]=[_0x313a4d(0x23df),_0x313a4d(0x1fe4)];function _0x5affa8(_0xadf948,_0x493dc0){const _0x159a48=_0x313a4d,_0x267297=this,_0x1ffcf5=0x8,_0x40d5ec=_0x1ffcf5*0x400*0x400;_0x267297[_0x159a48(0x22b3)]={},_0x267297['ngFlowOptions']={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x40d5ec,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x267297['ngFlow']={'flow':{}},_0x267297[_0x159a48(0x240d)]=![],_0x267297['fileAdded']=_0x4ad863,_0x267297[_0x159a48(0x1dc6)]=_0x133a8d,_0x267297[_0x159a48(0xc4c)]=_0x5826c9,_0x267297['init']=_0x3f0aa3;function _0x3f0aa3(_0x5a6d22){const _0x3f1c5d=_0x159a48;_0x267297[_0x3f1c5d(0x22b3)]=angular[_0x3f1c5d(0x235a)](_0x5a6d22),_0x267297[_0x3f1c5d(0x4c3)]['target']=_0x3f1c5d(0x2119)[_0x3f1c5d(0x5f4)](_0x3f1c5d(0xa55),_0x267297['customization']['id']),_0x267297[_0x3f1c5d(0x22b3)][_0x3f1c5d(0x1f07)]=[];}function _0x4ad863(_0xa64cc3){const _0x19a6f0=_0x159a48,_0x3df879=['png',_0x19a6f0(0x621)];if(!_0x3f65c0()[_0x19a6f0(0xa4e)](_0x3df879,_0xa64cc3[_0x19a6f0(0x193f)]()))return _0x493dc0['error']({'title':_0x19a6f0(0x4c6)+_0xa64cc3[_0x19a6f0(0x193f)](),'msg':_0x19a6f0(0x208f)+_0x3df879['join']()}),![];if(_0xa64cc3['size']>_0x40d5ec)return _0x493dc0[_0x19a6f0(0x1980)]({'title':_0x19a6f0(0x625),'msg':_0x19a6f0(0x923)+_0x1ffcf5+'MB'}),![];const _0x55d6a5={'id':_0xa64cc3[_0x19a6f0(0x1276)],'file':_0xa64cc3,'type':_0x19a6f0(0x159c)};return _0x267297['customization'][_0x19a6f0(0x1f07)][_0x19a6f0(0xb3d)](_0x55d6a5),!![];}function _0x133a8d(){const _0x274611=_0x159a48;_0x267297['ngFlow']['flow'][_0x274611(0x1da1)]['headers']={'X-Requested-With':_0x274611(0x1f8f),'Authorization':_0x274611(0x2745)+_0xadf948[_0x274611(0x16b4)](_0x274611(0xe2d))},_0x267297[_0x274611(0x1376)][_0x274611(0x963)][_0x274611(0x1dc6)]();}function _0x5826c9(_0x5054f5){const _0x5862e8=_0x159a48;angular[_0x5862e8(0x1df5)](_0x267297[_0x5862e8(0x22b3)][_0x5862e8(0x1f07)],function(_0xe9c4a3){const _0x58102d=_0x5862e8;if(_0xe9c4a3['id']===_0x5054f5['uniqueIdentifier']){const _0x51b23b=new FileReader();_0x51b23b[_0x58102d(0xa0c)](_0xe9c4a3[_0x58102d(0x252e)][_0x58102d(0x252e)]),_0x51b23b['onload']=function(_0x3ab3dd){const _0xe7327c=_0x58102d;_0xe9c4a3['url']=_0x3ab3dd[_0xe7327c(0xe1d)][_0xe7327c(0x61a)];},_0xe9c4a3[_0x58102d(0x1142)]='image';}});}}const _0x188833=_0x5affa8;;_0x4361b6['$inject']=[_0x313a4d(0x23df),_0x313a4d(0x1fe4)];function _0x4361b6(_0x500b29,_0x5e7f4a){const _0x567b0c=_0x313a4d,_0x1225a1=this,_0x25fd76=0x8,_0x5f5d1b=_0x25fd76*0x400*0x400;_0x1225a1[_0x567b0c(0x22b3)]={},_0x1225a1[_0x567b0c(0x4c3)]={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x5f5d1b,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x1225a1[_0x567b0c(0x1376)]={'flow':{}},_0x1225a1[_0x567b0c(0x240d)]=![],_0x1225a1[_0x567b0c(0x143d)]=_0x3cad9b,_0x1225a1[_0x567b0c(0x1dc6)]=_0xf77d3f,_0x1225a1['fileSuccess']=_0xc98aa6,_0x1225a1['init']=_0x5a8fe0;function _0x5a8fe0(_0x2d4f49){const _0x38ab79=_0x567b0c;_0x1225a1[_0x38ab79(0x22b3)]=angular[_0x38ab79(0x235a)](_0x2d4f49),_0x1225a1[_0x38ab79(0x4c3)][_0x38ab79(0xe1d)]=_0x38ab79(0xce2)['replace'](_0x38ab79(0xa55),_0x1225a1[_0x38ab79(0x22b3)]['id']),_0x1225a1['customization'][_0x38ab79(0x1f07)]=[];}function _0x3cad9b(_0x39e189){const _0x1f870d=_0x567b0c,_0x58b2d9=[_0x1f870d(0xadf),'jpg'];if(!_0x3f65c0()[_0x1f870d(0xa4e)](_0x58b2d9,_0x39e189[_0x1f870d(0x193f)]()))return _0x5e7f4a[_0x1f870d(0x1980)]({'title':_0x1f870d(0x4c6)+_0x39e189[_0x1f870d(0x193f)](),'msg':_0x1f870d(0x208f)+_0x58b2d9[_0x1f870d(0xb47)]()}),![];if(_0x39e189[_0x1f870d(0x4cc)]>_0x5f5d1b)return _0x5e7f4a[_0x1f870d(0x1980)]({'title':_0x1f870d(0x625),'msg':_0x1f870d(0x923)+_0x25fd76+'MB'}),![];const _0x5cde71={'id':_0x39e189[_0x1f870d(0x1276)],'file':_0x39e189,'type':'uploading'};return _0x1225a1[_0x1f870d(0x22b3)][_0x1f870d(0x1f07)][_0x1f870d(0xb3d)](_0x5cde71),!![];}function _0xf77d3f(){const _0x394f2d=_0x567b0c;_0x1225a1[_0x394f2d(0x1376)][_0x394f2d(0x963)][_0x394f2d(0x1da1)][_0x394f2d(0xa01)]={'X-Requested-With':_0x394f2d(0x1f8f),'Authorization':_0x394f2d(0x2745)+_0x500b29[_0x394f2d(0x16b4)]('motion.token')},_0x1225a1[_0x394f2d(0x1376)]['flow'][_0x394f2d(0x1dc6)]();}function _0xc98aa6(_0x45db9a){const _0x5749bc=_0x567b0c;angular[_0x5749bc(0x1df5)](_0x1225a1[_0x5749bc(0x22b3)][_0x5749bc(0x1f07)],function(_0x4c9006){const _0x4ab15c=_0x5749bc;if(_0x4c9006['id']===_0x45db9a[_0x4ab15c(0x1276)]){const _0x171f78=new FileReader();_0x171f78[_0x4ab15c(0xa0c)](_0x4c9006[_0x4ab15c(0x252e)]['file']),_0x171f78[_0x4ab15c(0x20f6)]=function(_0x37218d){const _0xeecf5a=_0x4ab15c;_0x4c9006[_0xeecf5a(0x20cc)]=_0x37218d[_0xeecf5a(0xe1d)]['result'];},_0x4c9006['type']='image';}});}}const _0x42a37b=_0x4361b6;;_0x4d298c[_0x313a4d(0x11c2)]=['$scope','$state','$location',_0x313a4d(0x10e8),'$q','$translate',_0x313a4d(0x1fe4),'generals',_0x313a4d(0x18f),_0x313a4d(0x247f),'Auth',_0x313a4d(0x2690),_0x313a4d(0x15b9),_0x313a4d(0x2514)];function _0x4d298c(_0x226683,_0x4c6032,_0x1dee31,_0x53fb82,_0x47ec62,_0x1decb9,_0x1ac890,_0x55f74d,_0x144af6,_0x5d96a0,_0x5b78ec,_0x17e928,_0x2abc6d,_0x453a04){const _0x580dc7=_0x313a4d,_0x3bdcd2=this;_0x3bdcd2[_0x580dc7(0x2321)]=_0x5b78ec[_0x580dc7(0xb12)](),_0x3bdcd2[_0x580dc7(0xcef)]=[],_0x3bdcd2[_0x580dc7(0x15b9)]=_0x2abc6d,_0x3bdcd2['license']=_0x17e928,_0x3bdcd2[_0x580dc7(0x2514)]=_0x453a04,_0x3bdcd2['hasModulePermissions']={},_0x3bdcd2['passwordPattern']=_0x3bdcd2[_0x580dc7(0x15b9)]&&_0x3bdcd2['setting'][_0x580dc7(0x976)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3bdcd2[_0x580dc7(0x1189)]=_0x580dc7(0x366),_0x3bdcd2[_0x580dc7(0x18f)]=angular[_0x580dc7(0x235a)](_0x144af6),_0x3bdcd2[_0x580dc7(0xc0c)]=_0x55f74d,_0x3bdcd2['newGeneral']=![];!_0x3bdcd2[_0x580dc7(0x18f)]&&(_0x3bdcd2[_0x580dc7(0x18f)]={'min_internal':0x3e8,'chatTimeout':0x1e,'phoneBarAutoUpdater':!![],'phoneBarAutoUpdaterUrl':'https://www.xcally.com/bar/phonebar/autoupdater.xml','splitSizeCsv':0x1388,'splitSizePdf':0x3e8,'splitSizeXlsx':0x1388,'messagesAlignment':_0x580dc7(0x1557),'phoneBarRememberMeEnabled':!![],'allowedLoginAttempts':0x5,'blockDuration':0xa,'loginMailFrequency':0xa,'enforcePasswordHistory':!![],'passwordHistoryLimit':0x3},_0x3bdcd2[_0x580dc7(0x1189)]=_0x580dc7(0x14b5),_0x3bdcd2[_0x580dc7(0x1c93)]=!![]);_0x3bdcd2['addNewGeneral']=_0x179b9f,_0x3bdcd2[_0x580dc7(0x77c)]=_0x479e3f,_0x3bdcd2[_0x580dc7(0x1288)]=_0x3be5ff,_0x3bdcd2[_0x580dc7(0xe73)]=_0x1e2abf,_0x3bdcd2[_0x580dc7(0x13f3)]=_0x321022,_0x5d96a0[_0x580dc7(0x605)]['get']({'fields':_0x580dc7(0x7a7),'sort':'name','nolimit':_0x580dc7(0x1185)})[_0x580dc7(0x2945)][_0x580dc7(0x146b)](function(_0x3fadef){const _0x32d98e=_0x580dc7;_0x3bdcd2[_0x32d98e(0x161b)]=_0x3fadef['rows']||[];})[_0x580dc7(0x129e)](function(_0x123592){const _0x35a13b=_0x580dc7;_0x1ac890[_0x35a13b(0x1980)]({'title':_0x123592[_0x35a13b(0x107b)]?_0x35a13b(0x262a)+_0x123592[_0x35a13b(0x107b)]+_0x35a13b(0x1315)+_0x123592[_0x35a13b(0x167f)]:_0x35a13b(0x1c21),'msg':_0x123592['data']?JSON['stringify'](_0x123592[_0x35a13b(0x524)]):_0x123592['toString']()});});function _0x179b9f(){const _0x37d070=_0x580dc7;_0x3bdcd2[_0x37d070(0xcef)]=[],_0x5d96a0[_0x37d070(0x15b9)][_0x37d070(0x1e3)](_0x3bdcd2['general'])['$promise']['then'](function(_0x1a4fca){const _0x1444fc=_0x37d070;_0x3bdcd2[_0x1444fc(0xc0c)][_0x1444fc(0xb3d)](_0x1a4fca[_0x1444fc(0x2488)]()),_0x1ac890[_0x1444fc(0x1c75)]({'title':'General\x20properly\x20created','msg':_0x3bdcd2[_0x1444fc(0x18f)][_0x1444fc(0x19eb)]?_0x3bdcd2['general'][_0x1444fc(0x19eb)]+_0x1444fc(0x1386):''}),_0x321022(_0x1a4fca);})[_0x37d070(0x129e)](function(_0x1f7412){const _0x4f9edc=_0x37d070;if(_0x1f7412['data']&&_0x1f7412['data'][_0x4f9edc(0xcef)]&&_0x1f7412[_0x4f9edc(0x524)][_0x4f9edc(0xcef)]['length']){_0x3bdcd2[_0x4f9edc(0xcef)]=_0x1f7412[_0x4f9edc(0x524)][_0x4f9edc(0xcef)]||[{'message':_0x1f7412['toString'](),'type':_0x4f9edc(0x1790)}];for(let _0x23210b=0x0;_0x23210b<_0x1f7412[_0x4f9edc(0x524)][_0x4f9edc(0xcef)]['length'];_0x23210b+=0x1){_0x1ac890[_0x4f9edc(0x1980)]({'title':_0x1f7412[_0x4f9edc(0x524)]['errors'][_0x23210b][_0x4f9edc(0x1142)],'msg':_0x1f7412[_0x4f9edc(0x524)][_0x4f9edc(0xcef)][_0x23210b][_0x4f9edc(0x7fd)]});}}else _0x1ac890[_0x4f9edc(0x1980)]({'title':_0x1f7412[_0x4f9edc(0x107b)]?'API:'+_0x1f7412[_0x4f9edc(0x107b)]+_0x4f9edc(0x1315)+_0x1f7412[_0x4f9edc(0x167f)]:_0x4f9edc(0x1790),'msg':_0x1f7412[_0x4f9edc(0x524)]?JSON[_0x4f9edc(0x10bb)](_0x1f7412[_0x4f9edc(0x524)]['message']):_0x1f7412['toString']()});});}function _0x479e3f(){const _0x3de8d7=_0x580dc7;_0x3bdcd2[_0x3de8d7(0xcef)]=[],_0x5d96a0['setting'][_0x3de8d7(0x18e1)]({'id':_0x3bdcd2[_0x3de8d7(0x18f)]['id']},_0x3bdcd2['general'])['$promise']['then'](function(_0x4ae57f){const _0x194cae=_0x3de8d7,_0x1ac133=_0x3f65c0()[_0x194cae(0xc84)](_0x3bdcd2[_0x194cae(0xc0c)],{'id':_0x4ae57f['id']});_0x1ac133&&_0x3f65c0()[_0x194cae(0x168d)](_0x1ac133,_0x3f65c0()[_0x194cae(0x40e)](_0x4ae57f[_0x194cae(0x2488)](),_0x3f65c0()[_0x194cae(0x627)](_0x1ac133))),_0x1ac890['success']({'title':_0x194cae(0x17f7),'msg':_0x3bdcd2[_0x194cae(0x18f)][_0x194cae(0x19eb)]?_0x3bdcd2[_0x194cae(0x18f)][_0x194cae(0x19eb)]+_0x194cae(0x24db):''}),_0x321022(_0x4ae57f);})[_0x3de8d7(0x129e)](function(_0x191eec){const _0x180d25=_0x3de8d7;if(_0x191eec[_0x180d25(0x524)]&&_0x191eec[_0x180d25(0x524)][_0x180d25(0xcef)]&&_0x191eec[_0x180d25(0x524)][_0x180d25(0xcef)][_0x180d25(0x402)]){_0x3bdcd2[_0x180d25(0xcef)]=_0x191eec['data'][_0x180d25(0xcef)]||[{'message':_0x191eec[_0x180d25(0xd5f)](),'type':_0x180d25(0xddc)}];for(let _0xc0abe6=0x0;_0xc0abe6<_0x191eec[_0x180d25(0x524)][_0x180d25(0xcef)][_0x180d25(0x402)];_0xc0abe6++){_0x1ac890['error']({'title':_0x191eec['data'][_0x180d25(0xcef)][_0xc0abe6][_0x180d25(0x1142)],'msg':_0x191eec[_0x180d25(0x524)][_0x180d25(0xcef)][_0xc0abe6]['message']});}}else _0x1ac890['error']({'title':_0x191eec['status']?_0x180d25(0x262a)+_0x191eec[_0x180d25(0x107b)]+_0x180d25(0x1315)+_0x191eec['statusText']:_0x180d25(0xddc),'msg':_0x191eec['data']?JSON[_0x180d25(0x10bb)](_0x191eec[_0x180d25(0x524)][_0x180d25(0x7fd)]):_0x191eec['toString']()});});}function _0x3be5ff(_0x1f676f){const _0x15c0a5=_0x580dc7;_0x3bdcd2[_0x15c0a5(0xcef)]=[];const _0x2e8a96=_0x53fb82[_0x15c0a5(0x1e8a)]()[_0x15c0a5(0x1189)](_0x15c0a5(0x1d64))[_0x15c0a5(0x80f)](_0x15c0a5(0x23dc))[_0x15c0a5(0x4bd)](_0x15c0a5(0x5f8))['ok']('Delete')['cancel'](_0x15c0a5(0xcf0))['targetEvent'](_0x1f676f);_0x53fb82[_0x15c0a5(0x2615)](_0x2e8a96)[_0x15c0a5(0x146b)](function(){const _0x4d7fda=_0x15c0a5;_0x5d96a0['setting']['delete']({'id':_0x3bdcd2[_0x4d7fda(0x18f)]['id']})[_0x4d7fda(0x2945)]['then'](function(){const _0x357a29=_0x4d7fda;_0x3f65c0()[_0x357a29(0x2640)](_0x3bdcd2['generals'],{'id':_0x3bdcd2[_0x357a29(0x18f)]['id']}),_0x1ac890[_0x357a29(0x1c75)]({'title':_0x357a29(0x1fbb),'msg':(_0x3bdcd2[_0x357a29(0x18f)][_0x357a29(0x19eb)]||_0x357a29(0x18f))+_0x357a29(0x23e3)}),_0x321022(_0x3bdcd2[_0x357a29(0x18f)]);})['catch'](function(_0x1ca53d){const _0x33a916=_0x4d7fda;if(_0x1ca53d[_0x33a916(0x524)]&&_0x1ca53d[_0x33a916(0x524)][_0x33a916(0xcef)]&&_0x1ca53d[_0x33a916(0x524)][_0x33a916(0xcef)][_0x33a916(0x402)]){_0x3bdcd2[_0x33a916(0xcef)]=_0x1ca53d[_0x33a916(0x524)][_0x33a916(0xcef)]||[{'message':_0x1ca53d[_0x33a916(0xd5f)](),'type':_0x33a916(0x254e)}];for(let _0x73bc36=0x0;_0x73bc36<_0x1ca53d[_0x33a916(0x524)][_0x33a916(0xcef)][_0x33a916(0x402)];_0x73bc36++){_0x1ac890[_0x33a916(0x1980)]({'title':_0x1ca53d[_0x33a916(0x524)][_0x33a916(0xcef)][_0x73bc36][_0x33a916(0x1142)],'msg':_0x1ca53d[_0x33a916(0x524)][_0x33a916(0xcef)][_0x73bc36]['message']});}}else _0x1ac890[_0x33a916(0x1980)]({'title':_0x1ca53d[_0x33a916(0x107b)]?_0x33a916(0x262a)+_0x1ca53d['status']+_0x33a916(0x1315)+_0x1ca53d[_0x33a916(0x167f)]:_0x33a916(0x254e),'msg':_0x1ca53d['data']?JSON['stringify'](_0x1ca53d[_0x33a916(0x524)][_0x33a916(0x7fd)]):_0x1ca53d[_0x33a916(0x7fd)]||_0x1ca53d[_0x33a916(0xd5f)]()});});},function(){});}function _0x1e2abf(_0x40b35d){return _0x40b35d===null?undefined:new Date(_0x40b35d);}function _0x321022(_0x30ff11){_0x53fb82['hide'](_0x30ff11);}}const _0x4d762b=_0x4d298c;;_0x3d5f2d[_0x313a4d(0x11c2)]=['generals',_0x313a4d(0x247f),'toasty',_0x313a4d(0x2690),_0x313a4d(0xa87)];function _0x3d5f2d(_0xd5bd2f,_0x1c973f,_0x26d5a8,_0xc5e387,_0x4319f9){const _0x563981=_0x313a4d,_0x1ab7c6=this;_0x1ab7c6['currentUser']=_0x4319f9[_0x563981(0xb12)](),_0x1ab7c6[_0x563981(0x2690)]=_0xc5e387,_0x1ab7c6[_0x563981(0xc0c)]=_0xd5bd2f,_0x1ab7c6[_0x563981(0x18f)]={};_0x1ab7c6[_0x563981(0xc0c)]&&_0x1ab7c6[_0x563981(0xc0c)][_0x563981(0x19c7)]&&_0x1ab7c6[_0x563981(0xc0c)][_0x563981(0x19c7)][_0x563981(0x402)]&&(_0x1ab7c6[_0x563981(0x18f)]=_0x1ab7c6['generals'][_0x563981(0x19c7)][0x0]);_0x1c973f[_0x563981(0x605)][_0x563981(0x16b4)]({'fields':_0x563981(0x7a7),'sort':_0x563981(0x19eb),'nolimit':_0x563981(0x1185)})[_0x563981(0x2945)][_0x563981(0x146b)](function(_0x52164f){const _0xe70d36=_0x563981;_0x1ab7c6[_0xe70d36(0x161b)]=_0x52164f[_0xe70d36(0x19c7)]||[];})[_0x563981(0x129e)](function(_0x4dadbb){const _0x5edf98=_0x563981;_0x26d5a8[_0x5edf98(0x1980)]({'title':_0x4dadbb[_0x5edf98(0x107b)]?_0x5edf98(0x262a)+_0x4dadbb[_0x5edf98(0x107b)]+_0x5edf98(0x1315)+_0x4dadbb[_0x5edf98(0x167f)]:_0x5edf98(0x1c21),'msg':_0x4dadbb['data']?JSON['stringify'](_0x4dadbb['data']):_0x4dadbb[_0x5edf98(0xd5f)]()});}),_0x1ab7c6[_0x563981(0x77c)]=_0x4a8ee3;function _0x4a8ee3(){const _0x49ad24=_0x563981;_0x1ab7c6[_0x49ad24(0x18f)]['id']?_0x1c973f[_0x49ad24(0x15b9)][_0x49ad24(0x18e1)]({'id':_0x1ab7c6[_0x49ad24(0x18f)]['id']},_0x1ab7c6[_0x49ad24(0x18f)])[_0x49ad24(0x2945)][_0x49ad24(0x146b)](function(){const _0x242939=_0x49ad24;_0x26d5a8[_0x242939(0x1c75)]({'title':_0x242939(0x725),'msg':_0x1ab7c6[_0x242939(0x18f)][_0x242939(0x19eb)]?_0x1ab7c6[_0x242939(0x18f)][_0x242939(0x19eb)]+_0x242939(0x6b0):''});})['catch'](function(_0x233169){const _0x1a0928=_0x49ad24;_0x26d5a8['error']({'title':_0x233169[_0x1a0928(0x107b)]?'API:'+_0x233169[_0x1a0928(0x107b)]+_0x1a0928(0x1315)+_0x233169[_0x1a0928(0x167f)]:_0x1a0928(0x83a),'msg':_0x233169[_0x1a0928(0x524)]?JSON[_0x1a0928(0x10bb)](_0x233169[_0x1a0928(0x524)]):_0x233169[_0x1a0928(0xd5f)]()});}):_0x1c973f[_0x49ad24(0x15b9)][_0x49ad24(0x1e3)](_0x1ab7c6[_0x49ad24(0x18f)])[_0x49ad24(0x2945)]['then'](function(_0x4c5179){const _0x32c202=_0x49ad24;_0x3f65c0()[_0x32c202(0x168d)](_0x1ab7c6[_0x32c202(0x18f)],_0x4c5179),_0x26d5a8[_0x32c202(0x1c75)]({'title':_0x32c202(0x725),'msg':_0x1ab7c6[_0x32c202(0x18f)][_0x32c202(0x19eb)]?_0x1ab7c6[_0x32c202(0x18f)][_0x32c202(0x19eb)]+_0x32c202(0x6b0):''});})['catch'](function(_0x518af1){const _0x22fac9=_0x49ad24;_0x26d5a8[_0x22fac9(0x1980)]({'title':_0x518af1[_0x22fac9(0x107b)]?_0x22fac9(0x262a)+_0x518af1['status']+_0x22fac9(0x1315)+_0x518af1[_0x22fac9(0x167f)]:_0x22fac9(0x83a),'msg':_0x518af1[_0x22fac9(0x524)]?JSON[_0x22fac9(0x10bb)](_0x518af1[_0x22fac9(0x524)]):_0x518af1[_0x22fac9(0xd5f)]()});});}}const _0x42176b=_0x3d5f2d;;_0x167f5c[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1862),_0x313a4d(0xd08),'$mdDialog','$q',_0x313a4d(0x214b),'toasty',_0x313a4d(0x12d7),_0x313a4d(0x1f0c),_0x313a4d(0x247f),_0x313a4d(0xa87),_0x313a4d(0x2690),'setting'];function _0x167f5c(_0x47eb01,_0x35ac96,_0x4812fc,_0x2ce1fd,_0x23dadf,_0x5d5f8f,_0x5ccb43,_0x4a99d1,_0x456a3d,_0x3bd38c,_0x47b85b,_0x44f495,_0x2840f6){const _0x521fa5=_0x313a4d,_0x2e7bcf=this;_0x2e7bcf[_0x521fa5(0x2321)]=_0x47b85b[_0x521fa5(0xb12)](),_0x2e7bcf[_0x521fa5(0xcef)]=[],_0x2e7bcf[_0x521fa5(0x15b9)]=_0x2840f6,_0x2e7bcf[_0x521fa5(0x2690)]=_0x44f495,_0x2e7bcf[_0x521fa5(0x855)]={},_0x2e7bcf[_0x521fa5(0x2251)]=_0x2e7bcf[_0x521fa5(0x15b9)]&&_0x2e7bcf[_0x521fa5(0x15b9)]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2e7bcf[_0x521fa5(0x1189)]=_0x521fa5(0x2511),_0x2e7bcf['network']=angular['copy'](_0x456a3d),_0x2e7bcf['networks']=_0x4a99d1,_0x2e7bcf[_0x521fa5(0x664)]=![];!_0x2e7bcf[_0x521fa5(0x1f0c)]&&(_0x2e7bcf['network']={'type':_0x521fa5(0x765)},_0x2e7bcf[_0x521fa5(0x1189)]='SETTINGS.NEW_NETWORK',_0x2e7bcf['newNetwork']=!![]);_0x2e7bcf[_0x521fa5(0x261c)]=_0x6c7210,_0x2e7bcf[_0x521fa5(0x1dff)]=_0x221b9a,_0x2e7bcf[_0x521fa5(0xce0)]=_0x1af93f,_0x2e7bcf[_0x521fa5(0xe73)]=_0x24ddf1,_0x2e7bcf['closeDialog']=_0x339522;function _0x6c7210(){const _0x430743=_0x521fa5;_0x2e7bcf[_0x430743(0xcef)]=[],_0x3bd38c[_0x430743(0x1f0c)][_0x430743(0x1e3)](_0x2e7bcf[_0x430743(0x1f0c)])['$promise'][_0x430743(0x146b)](function(_0x13e4ca){const _0x3ac683=_0x430743;_0x2e7bcf[_0x3ac683(0x12d7)][_0x3ac683(0xb3d)](_0x13e4ca[_0x3ac683(0x2488)]()),_0x5ccb43['success']({'title':'Network\x20properly\x20created','msg':_0x2e7bcf[_0x3ac683(0x1f0c)][_0x3ac683(0x19eb)]?_0x2e7bcf[_0x3ac683(0x1f0c)][_0x3ac683(0x19eb)]+_0x3ac683(0x1386):''}),_0x339522(_0x13e4ca);})[_0x430743(0x129e)](function(_0x1031af){const _0x2dd76c=_0x430743;if(_0x1031af[_0x2dd76c(0x524)]&&_0x1031af[_0x2dd76c(0x524)]['errors']&&_0x1031af[_0x2dd76c(0x524)]['errors']['length']){_0x2e7bcf[_0x2dd76c(0xcef)]=_0x1031af[_0x2dd76c(0x524)][_0x2dd76c(0xcef)]||[{'message':_0x1031af[_0x2dd76c(0xd5f)](),'type':_0x2dd76c(0x157a)}];for(let _0x5d1c29=0x0;_0x5d1c29<_0x1031af[_0x2dd76c(0x524)][_0x2dd76c(0xcef)][_0x2dd76c(0x402)];_0x5d1c29+=0x1){_0x5ccb43[_0x2dd76c(0x1980)]({'title':_0x1031af['data']['errors'][_0x5d1c29]['type'],'msg':_0x1031af[_0x2dd76c(0x524)]['errors'][_0x5d1c29]['message']});}}else _0x5ccb43['error']({'title':_0x1031af[_0x2dd76c(0x107b)]?_0x2dd76c(0x262a)+_0x1031af[_0x2dd76c(0x107b)]+_0x2dd76c(0x1315)+_0x1031af['statusText']:_0x2dd76c(0x157a),'msg':_0x1031af[_0x2dd76c(0x524)]?JSON[_0x2dd76c(0x10bb)](_0x1031af['data'][_0x2dd76c(0x7fd)]):_0x1031af['toString']()});});}function _0x221b9a(){const _0x454998=_0x521fa5;_0x2e7bcf[_0x454998(0xcef)]=[],_0x3bd38c[_0x454998(0x1f0c)][_0x454998(0x18e1)]({'id':_0x2e7bcf[_0x454998(0x1f0c)]['id']},_0x2e7bcf[_0x454998(0x1f0c)])[_0x454998(0x2945)][_0x454998(0x146b)](function(_0x5e72eb){const _0x13d2e8=_0x454998,_0x21a969=_0x3f65c0()[_0x13d2e8(0xc84)](_0x2e7bcf[_0x13d2e8(0x12d7)],{'id':_0x5e72eb['id']});_0x21a969&&_0x3f65c0()[_0x13d2e8(0x168d)](_0x21a969,_0x3f65c0()[_0x13d2e8(0x40e)](_0x5e72eb[_0x13d2e8(0x2488)](),_0x3f65c0()['keys'](_0x21a969))),_0x5ccb43[_0x13d2e8(0x1c75)]({'title':_0x13d2e8(0x4ea),'msg':_0x2e7bcf[_0x13d2e8(0x1f0c)]['name']?_0x2e7bcf[_0x13d2e8(0x1f0c)]['name']+'\x20has\x20been\x20saved!':''}),_0x339522(_0x5e72eb);})[_0x454998(0x129e)](function(_0xabaf7c){const _0x485380=_0x454998;if(_0xabaf7c[_0x485380(0x524)]&&_0xabaf7c[_0x485380(0x524)][_0x485380(0xcef)]&&_0xabaf7c[_0x485380(0x524)][_0x485380(0xcef)][_0x485380(0x402)]){_0x2e7bcf['errors']=_0xabaf7c[_0x485380(0x524)]['errors']||[{'message':_0xabaf7c[_0x485380(0xd5f)](),'type':'api.network.update'}];for(let _0x363483=0x0;_0x363483<_0xabaf7c[_0x485380(0x524)][_0x485380(0xcef)][_0x485380(0x402)];_0x363483++){_0x5ccb43['error']({'title':_0xabaf7c[_0x485380(0x524)][_0x485380(0xcef)][_0x363483][_0x485380(0x1142)],'msg':_0xabaf7c[_0x485380(0x524)][_0x485380(0xcef)][_0x363483][_0x485380(0x7fd)]});}}else _0x5ccb43[_0x485380(0x1980)]({'title':_0xabaf7c['status']?_0x485380(0x262a)+_0xabaf7c[_0x485380(0x107b)]+_0x485380(0x1315)+_0xabaf7c['statusText']:_0x485380(0x250a),'msg':_0xabaf7c[_0x485380(0x524)]?JSON[_0x485380(0x10bb)](_0xabaf7c['data'][_0x485380(0x7fd)]):_0xabaf7c[_0x485380(0xd5f)]()});});}function _0x1af93f(_0x2faffd){const _0x3f893e=_0x521fa5;_0x2e7bcf[_0x3f893e(0xcef)]=[];const _0x485b67=_0x2ce1fd[_0x3f893e(0x1e8a)]()[_0x3f893e(0x1189)]('Are\x20you\x20sure?')[_0x3f893e(0x80f)]('The\x20network\x20will\x20be\x20deleted.')[_0x3f893e(0x4bd)](_0x3f893e(0x1f11))['ok']('Delete')[_0x3f893e(0x6c3)](_0x3f893e(0xcf0))['targetEvent'](_0x2faffd);_0x2ce1fd[_0x3f893e(0x2615)](_0x485b67)[_0x3f893e(0x146b)](function(){const _0x23b356=_0x3f893e;_0x3bd38c[_0x23b356(0x1f0c)][_0x23b356(0x1fac)]({'id':_0x2e7bcf[_0x23b356(0x1f0c)]['id']})[_0x23b356(0x2945)]['then'](function(){const _0x3dae4b=_0x23b356;_0x3f65c0()[_0x3dae4b(0x2640)](_0x2e7bcf[_0x3dae4b(0x12d7)],{'id':_0x2e7bcf['network']['id']}),_0x5ccb43[_0x3dae4b(0x1c75)]({'title':_0x3dae4b(0x2282),'msg':(_0x2e7bcf[_0x3dae4b(0x1f0c)][_0x3dae4b(0x19eb)]||_0x3dae4b(0x1f0c))+_0x3dae4b(0x23e3)}),_0x339522(_0x2e7bcf[_0x3dae4b(0x1f0c)]);})['catch'](function(_0x3adce0){const _0x5be2a7=_0x23b356;if(_0x3adce0['data']&&_0x3adce0[_0x5be2a7(0x524)][_0x5be2a7(0xcef)]&&_0x3adce0[_0x5be2a7(0x524)][_0x5be2a7(0xcef)]['length']){_0x2e7bcf['errors']=_0x3adce0[_0x5be2a7(0x524)][_0x5be2a7(0xcef)]||[{'message':_0x3adce0[_0x5be2a7(0xd5f)](),'type':'api.network.delete'}];for(let _0x722d39=0x0;_0x722d39<_0x3adce0['data']['errors']['length'];_0x722d39++){_0x5ccb43['error']({'title':_0x3adce0[_0x5be2a7(0x524)]['errors'][_0x722d39][_0x5be2a7(0x1142)],'msg':_0x3adce0[_0x5be2a7(0x524)][_0x5be2a7(0xcef)][_0x722d39][_0x5be2a7(0x7fd)]});}}else _0x5ccb43['error']({'title':_0x3adce0[_0x5be2a7(0x107b)]?'API:'+_0x3adce0['status']+_0x5be2a7(0x1315)+_0x3adce0[_0x5be2a7(0x167f)]:_0x5be2a7(0x136b),'msg':_0x3adce0[_0x5be2a7(0x524)]?JSON['stringify'](_0x3adce0[_0x5be2a7(0x524)][_0x5be2a7(0x7fd)]):_0x3adce0[_0x5be2a7(0x7fd)]||_0x3adce0[_0x5be2a7(0xd5f)]()});});},function(){});}function _0x24ddf1(_0x5279d4){return _0x5279d4===null?undefined:new Date(_0x5279d4);}function _0x339522(_0xe371fe){const _0x25e98c=_0x521fa5;_0x2ce1fd[_0x25e98c(0x2458)](_0xe371fe);}}const _0x3433ae=_0x167f5c;;const _0x2f26ad=_0x4acfac['p']+_0x313a4d(0x1529);;_0x125ce8[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1aa9),_0x313a4d(0x1862),'$mdSidenav',_0x313a4d(0x10e8),_0x313a4d(0x4d8),'$timeout',_0x313a4d(0x214b),_0x313a4d(0x12d7),_0x313a4d(0x247f),_0x313a4d(0x216c),_0x313a4d(0x1fe4),'Auth',_0x313a4d(0x2690),_0x313a4d(0x15b9)];function _0x125ce8(_0xf885f4,_0x1401d1,_0x328311,_0x5289d7,_0x19c6f1,_0x49ba5c,_0x28bd6e,_0x1fb765,_0x23b56f,_0x226e28,_0x151082,_0xe7639a,_0x12bbd4,_0x4080f6,_0x2f61ef){const _0x3c76d5=_0x313a4d,_0x42abd3=this;_0x42abd3[_0x3c76d5(0x2690)]=_0x4080f6,_0x42abd3[_0x3c76d5(0x15b9)]=_0x2f61ef,_0x42abd3[_0x3c76d5(0x2321)]=_0x12bbd4[_0x3c76d5(0xb12)](),_0x42abd3['networks']=_0x23b56f||{'count':0x0,'rows':[]},_0x42abd3[_0x3c76d5(0x768)]='networks',_0x42abd3[_0x3c76d5(0x216a)]='',_0x42abd3[_0x3c76d5(0x214f)]=null,_0x42abd3[_0x3c76d5(0x1336)]=[],_0x42abd3[_0x3c76d5(0x1a56)]={'fields':_0x3c76d5(0x6bd),'sort':'-updatedAt','limit':0xa,'page':0x1},_0x42abd3[_0x3c76d5(0x11da)]=_0x3f65c0()[_0x3c76d5(0x194)]([{'option':_0x3c76d5(0x1971),'value':_0x3c76d5(0x1480)},{'option':_0x3c76d5(0x113),'value':_0x3c76d5(0x123e)},{'option':_0x3c76d5(0x1e54),'value':_0x3c76d5(0xa07)},{'option':_0x3c76d5(0x832),'value':_0x3c76d5(0x1fa1)}],function(_0x3632b7){const _0x16a327=_0x3c76d5;return _0x3f65c0()[_0x16a327(0x5f4)](_0x3632b7[_0x16a327(0x175d)],new RegExp('\x27','g'),'');}),_0x42abd3[_0x3c76d5(0x2ed)]=_0x58c460,_0x42abd3[_0x3c76d5(0xf0a)]=_0x26a872,_0x42abd3[_0x3c76d5(0x1c75)]=_0x296228,_0x42abd3[_0x3c76d5(0xd86)]=_0x9f14cf,_0x42abd3[_0x3c76d5(0x2258)]=_0x46933d,_0x42abd3['deleteNetwork']=_0x1af168,_0x42abd3['exportSelectedNetworks']=_0x48953e,_0x42abd3['deleteSelectedNetworks']=_0xb6007f,_0x42abd3[_0x3c76d5(0x108b)]=_0x4f786d,_0x42abd3['selectAllNetworks']=_0xd5330a;function _0x58c460(_0x4f1d42,_0x455460){const _0x53274a=_0x3c76d5;_0x19c6f1[_0x53274a(0x2615)]({'controller':_0x53274a(0x199a),'controllerAs':'vm','templateUrl':_0x2f26ad,'parent':angular[_0x53274a(0x1853)](_0x49ba5c[_0x53274a(0x2586)]),'targetEvent':_0x455460,'clickOutsideToClose':!![],'locals':{'network':_0x4f1d42,'networks':_0x42abd3[_0x53274a(0x12d7)][_0x53274a(0x19c7)],'license':_0x42abd3[_0x53274a(0x2690)],'setting':null,'crudPermissions':_0x42abd3[_0x53274a(0x2514)]}});}function _0x26a872(_0x29f468,_0x64a078){const _0x18902f=_0x3c76d5,_0x4288d8=_0x19c6f1[_0x18902f(0x1e8a)]()['title'](_0x18902f(0xdb2)+_0x3f65c0()[_0x18902f(0x20d1)](_0x18902f(0x1f0c))+'?')['htmlContent'](_0x18902f(0x16d3)+(_0x29f468['name']||_0x18902f(0x1f0c))+_0x18902f(0x252f)+_0x18902f(0xe01))['ariaLabel'](_0x18902f(0x12ad))[_0x18902f(0x1f27)](_0x64a078)['ok']('OK')['cancel'](_0x18902f(0x39a));_0x19c6f1[_0x18902f(0x2615)](_0x4288d8)[_0x18902f(0x146b)](function(){_0x1af168(_0x29f468);},function(){const _0x44cbc6=_0x18902f;console[_0x44cbc6(0x1a74)](_0x44cbc6(0x39a));});}let _0xf04803=!![],_0x12d98e=0x1;_0xf885f4['$watch'](_0x3c76d5(0x2669),function(_0x2e8efa,_0x549b4b){const _0x3275bd=_0x3c76d5;_0xf04803?_0x28bd6e(function(){_0xf04803=![];}):(!_0x549b4b&&(_0x12d98e=_0x42abd3['query']['page']),_0x2e8efa!==_0x549b4b&&(_0x42abd3[_0x3275bd(0x1a56)][_0x3275bd(0x844)]=0x1),!_0x2e8efa&&(_0x42abd3[_0x3275bd(0x1a56)][_0x3275bd(0x844)]=_0x12d98e),_0x42abd3[_0x3275bd(0xd86)]());});function _0x296228(_0x24f58a){_0x42abd3['networks']=_0x24f58a||{'count':0x0,'rows':[]};}function _0x9f14cf(){const _0x42713f=_0x3c76d5;_0x42abd3[_0x42713f(0x1a56)][_0x42713f(0x145d)]=(_0x42abd3[_0x42713f(0x1a56)]['page']-0x1)*_0x42abd3[_0x42713f(0x1a56)][_0x42713f(0x221e)],_0x12bbd4[_0x42713f(0x23e0)](_0x42713f(0x174b))?_0x42abd3['promise']=_0x226e28[_0x42713f(0x1f0c)][_0x42713f(0x16b4)](_0x42abd3[_0x42713f(0x1a56)],_0x296228)['$promise']:(_0x42abd3[_0x42713f(0x1a56)]['id']=_0x42abd3[_0x42713f(0x26b6)]['id'],_0x42abd3[_0x42713f(0x1a56)][_0x42713f(0x2146)]=_0x42713f(0xfd5),_0x42abd3[_0x42713f(0xb9c)]=_0x226e28[_0x42713f(0x26b6)]['getResources'](_0x42abd3['query'],_0x296228)[_0x42713f(0x2945)]);}function _0x46933d(_0x1657cc,_0x163131){const _0xe47cda=_0x3c76d5;_0x19c6f1[_0xe47cda(0x2615)]({'controller':_0xe47cda(0x199a),'controllerAs':'vm','templateUrl':_0x2f26ad,'parent':angular[_0xe47cda(0x1853)](_0x49ba5c[_0xe47cda(0x2586)]),'targetEvent':_0x1657cc,'clickOutsideToClose':!![],'locals':{'network':_0x163131,'networks':_0x42abd3['networks'][_0xe47cda(0x19c7)],'license':_0x42abd3[_0xe47cda(0x2690)],'setting':_0x42abd3[_0xe47cda(0x15b9)],'crudPermissions':_0x42abd3[_0xe47cda(0x2514)]}});}function _0x1af168(_0x5a006a){const _0x56d2a2=_0x3c76d5;_0x226e28[_0x56d2a2(0x1f0c)][_0x56d2a2(0x1fac)]({'id':_0x5a006a['id']})[_0x56d2a2(0x2945)][_0x56d2a2(0x146b)](function(){const _0x34a823=_0x56d2a2;_0x3f65c0()[_0x34a823(0x2640)](_0x42abd3[_0x34a823(0x12d7)][_0x34a823(0x19c7)],{'id':_0x5a006a['id']}),_0x42abd3['networks'][_0x34a823(0x51c)]-=0x1,!_0x42abd3['networks'][_0x34a823(0x19c7)][_0x34a823(0x402)]&&_0x42abd3[_0x34a823(0xd86)](),_0xe7639a['success']({'title':_0x3f65c0()[_0x34a823(0x20d1)]('Network')+_0x34a823(0x201c),'msg':_0x5a006a[_0x34a823(0x19eb)]?_0x5a006a[_0x34a823(0x19eb)]+_0x34a823(0x23e3):''});})[_0x56d2a2(0x129e)](function(_0x3e6921){const _0x3f4dcb=_0x56d2a2;if(_0x3e6921[_0x3f4dcb(0x524)]&&_0x3e6921['data'][_0x3f4dcb(0xcef)]&&_0x3e6921['data']['errors'][_0x3f4dcb(0x402)]){_0x42abd3['errors']=_0x3e6921[_0x3f4dcb(0x524)]['errors']||[{'message':_0x3e6921[_0x3f4dcb(0xd5f)](),'type':_0x3f4dcb(0xe30)}];for(let _0x1101d8=0x0;_0x1101d8<_0x3e6921[_0x3f4dcb(0x524)]['errors']['length'];_0x1101d8++){_0xe7639a['error']({'title':_0x3e6921[_0x3f4dcb(0x524)]['errors'][_0x1101d8][_0x3f4dcb(0x1142)],'msg':_0x3e6921[_0x3f4dcb(0x524)][_0x3f4dcb(0xcef)][_0x1101d8]['message']});}}else _0xe7639a['error']({'title':_0x3e6921['status']?_0x3f4dcb(0x262a)+_0x3e6921[_0x3f4dcb(0x107b)]+'\x20-\x20'+_0x3e6921[_0x3f4dcb(0x167f)]:_0x3f4dcb(0xe30),'msg':_0x3e6921[_0x3f4dcb(0x524)]?JSON[_0x3f4dcb(0x10bb)](_0x3e6921[_0x3f4dcb(0x524)][_0x3f4dcb(0x7fd)]):_0x3e6921[_0x3f4dcb(0x7fd)]||_0x3e6921[_0x3f4dcb(0xd5f)]()});});}function _0x48953e(){const _0x23e048=_0x3c76d5,_0x1bfa7d=angular['copy'](_0x42abd3[_0x23e048(0x1336)]);return _0x42abd3[_0x23e048(0x1336)]=[],_0x1bfa7d;}function _0xb6007f(_0x51bf2b){const _0x241fdc=_0x3c76d5,_0x44bcb9=_0x19c6f1[_0x241fdc(0x1e8a)]()[_0x241fdc(0x1189)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20networks?')[_0x241fdc(0x1cbe)](_0x241fdc(0x16d3)+_0x42abd3[_0x241fdc(0x1336)][_0x241fdc(0x402)]+_0x241fdc(0x2452)+_0x241fdc(0xe01))['ariaLabel'](_0x241fdc(0x3ba))[_0x241fdc(0x1f27)](_0x51bf2b)['ok']('OK')['cancel'](_0x241fdc(0x39a));_0x19c6f1[_0x241fdc(0x2615)](_0x44bcb9)['then'](function(){const _0x311488=_0x241fdc;_0x42abd3[_0x311488(0x1336)]['forEach'](function(_0x4fb103){_0x1af168(_0x4fb103);}),_0x42abd3[_0x311488(0x1336)]=[];});}function _0x4f786d(){_0x42abd3['selectedNetworks']=[];}function _0xd5330a(){const _0x1174ac=_0x3c76d5;_0x42abd3[_0x1174ac(0x1336)]=_0x42abd3[_0x1174ac(0x12d7)][_0x1174ac(0x19c7)];}}const _0x33f7b0=_0x125ce8;;_0x2be8ff[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1862),_0x313a4d(0xd08),_0x313a4d(0x10e8),'$q',_0x313a4d(0x214b),_0x313a4d(0x1fe4),'smtps',_0x313a4d(0x249e),_0x313a4d(0x247f),'Auth',_0x313a4d(0x2690),_0x313a4d(0x15b9),_0x313a4d(0x2514)];function _0x2be8ff(_0x20ada1,_0x5131fc,_0x3aefbe,_0x34ac9b,_0x348c77,_0x238d02,_0x1ca31f,_0x5e091f,_0x42446d,_0x25523b,_0x4469af,_0x1c3498,_0x48afdd,_0x2a9258){const _0x2d676e=_0x313a4d,_0x5c5ec8=this;_0x5c5ec8[_0x2d676e(0x2321)]=_0x4469af[_0x2d676e(0xb12)](),_0x5c5ec8[_0x2d676e(0xcef)]=[],_0x5c5ec8[_0x2d676e(0x15b9)]=_0x48afdd,_0x5c5ec8[_0x2d676e(0x2690)]=_0x1c3498,_0x5c5ec8[_0x2d676e(0x2514)]=_0x2a9258,_0x5c5ec8[_0x2d676e(0x855)]={},_0x5c5ec8[_0x2d676e(0x2251)]=_0x5c5ec8[_0x2d676e(0x15b9)]&&_0x5c5ec8[_0x2d676e(0x15b9)][_0x2d676e(0x976)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x5c5ec8['title']=_0x2d676e(0x878),_0x5c5ec8[_0x2d676e(0x249e)]=angular['copy'](_0x42446d),_0x5c5ec8['smtps']=_0x5e091f,_0x5c5ec8[_0x2d676e(0x2587)]=![];!_0x5c5ec8[_0x2d676e(0x249e)]&&(_0x5c5ec8[_0x2d676e(0x249e)]={'service':!![]},_0x5c5ec8['title']=_0x2d676e(0x19f0),_0x5c5ec8[_0x2d676e(0x2587)]=!![]);_0x5c5ec8[_0x2d676e(0x1044)]=_0x5c1393,_0x5c5ec8['saveSmtp']=_0x47855f,_0x5c5ec8[_0x2d676e(0x253c)]=_0x5cdfb2,_0x5c5ec8[_0x2d676e(0xe73)]=_0x1c5e1e,_0x5c5ec8[_0x2d676e(0x13f3)]=_0x1edec4;function _0x5c1393(){const _0x433e97=_0x2d676e;_0x5c5ec8['errors']=[],_0x25523b[_0x433e97(0x67d)][_0x433e97(0x1e3)](_0x5c5ec8[_0x433e97(0x249e)])[_0x433e97(0x2945)][_0x433e97(0x146b)](function(_0x1d5950){const _0x50a5dc=_0x433e97;_0x5c5ec8[_0x50a5dc(0x4a5)]['unshift'](_0x1d5950[_0x50a5dc(0x2488)]()),_0x1ca31f['success']({'title':_0x50a5dc(0x2815),'msg':_0x5c5ec8[_0x50a5dc(0x249e)][_0x50a5dc(0x19eb)]?_0x5c5ec8[_0x50a5dc(0x249e)][_0x50a5dc(0x19eb)]+_0x50a5dc(0x1386):''}),_0x1edec4(_0x1d5950);})[_0x433e97(0x129e)](function(_0x4f6ad2){const _0x2d22cb=_0x433e97;if(_0x4f6ad2['data']&&_0x4f6ad2['data'][_0x2d22cb(0xcef)]&&_0x4f6ad2[_0x2d22cb(0x524)][_0x2d22cb(0xcef)][_0x2d22cb(0x402)]){_0x5c5ec8[_0x2d22cb(0xcef)]=_0x4f6ad2[_0x2d22cb(0x524)][_0x2d22cb(0xcef)]||[{'message':_0x4f6ad2[_0x2d22cb(0xd5f)](),'type':'api.mailAccount.save'}];for(let _0x5b82a4=0x0;_0x5b82a4<_0x4f6ad2[_0x2d22cb(0x524)]['errors'][_0x2d22cb(0x402)];_0x5b82a4+=0x1){_0x1ca31f[_0x2d22cb(0x1980)]({'title':_0x4f6ad2['data'][_0x2d22cb(0xcef)][_0x5b82a4]['type'],'msg':_0x4f6ad2[_0x2d22cb(0x524)][_0x2d22cb(0xcef)][_0x5b82a4][_0x2d22cb(0x7fd)]});}}else _0x1ca31f[_0x2d22cb(0x1980)]({'title':_0x4f6ad2[_0x2d22cb(0x107b)]?_0x2d22cb(0x262a)+_0x4f6ad2['status']+_0x2d22cb(0x1315)+_0x4f6ad2[_0x2d22cb(0x167f)]:_0x2d22cb(0x489),'msg':_0x4f6ad2[_0x2d22cb(0x524)]?JSON[_0x2d22cb(0x10bb)](_0x4f6ad2[_0x2d22cb(0x524)][_0x2d22cb(0x7fd)]):_0x4f6ad2['toString']()});});}function _0x47855f(){const _0xc61ba7=_0x2d676e;_0x5c5ec8['errors']=[],_0x25523b[_0xc61ba7(0x67d)][_0xc61ba7(0x18e1)]({'id':_0x5c5ec8[_0xc61ba7(0x249e)]['id']},_0x5c5ec8[_0xc61ba7(0x249e)])[_0xc61ba7(0x2945)][_0xc61ba7(0x146b)](function(_0x413b4f){const _0x2076ac=_0xc61ba7,_0x37af06=_0x3f65c0()['find'](_0x5c5ec8[_0x2076ac(0x4a5)],{'id':_0x413b4f['id']});_0x37af06&&_0x3f65c0()[_0x2076ac(0x168d)](_0x37af06,_0x3f65c0()[_0x2076ac(0x40e)](_0x413b4f['toJSON'](),_0x3f65c0()[_0x2076ac(0x627)](_0x37af06))),_0x1ca31f[_0x2076ac(0x1c75)]({'title':_0x2076ac(0x1085),'msg':_0x5c5ec8[_0x2076ac(0x249e)][_0x2076ac(0x19eb)]?_0x5c5ec8[_0x2076ac(0x249e)][_0x2076ac(0x19eb)]+_0x2076ac(0x24db):''}),_0x1edec4(_0x413b4f);})[_0xc61ba7(0x129e)](function(_0x577bfb){const _0x50bf08=_0xc61ba7;if(_0x577bfb[_0x50bf08(0x524)]&&_0x577bfb[_0x50bf08(0x524)][_0x50bf08(0xcef)]&&_0x577bfb[_0x50bf08(0x524)][_0x50bf08(0xcef)]['length']){_0x5c5ec8[_0x50bf08(0xcef)]=_0x577bfb[_0x50bf08(0x524)][_0x50bf08(0xcef)]||[{'message':_0x577bfb['toString'](),'type':_0x50bf08(0xa6c)}];for(let _0x79a711=0x0;_0x79a711<_0x577bfb[_0x50bf08(0x524)][_0x50bf08(0xcef)][_0x50bf08(0x402)];_0x79a711++){_0x1ca31f['error']({'title':_0x577bfb[_0x50bf08(0x524)]['errors'][_0x79a711][_0x50bf08(0x1142)],'msg':_0x577bfb[_0x50bf08(0x524)][_0x50bf08(0xcef)][_0x79a711][_0x50bf08(0x7fd)]});}}else _0x1ca31f[_0x50bf08(0x1980)]({'title':_0x577bfb[_0x50bf08(0x107b)]?_0x50bf08(0x262a)+_0x577bfb[_0x50bf08(0x107b)]+_0x50bf08(0x1315)+_0x577bfb[_0x50bf08(0x167f)]:'api.mailAccount.update','msg':_0x577bfb[_0x50bf08(0x524)]?JSON[_0x50bf08(0x10bb)](_0x577bfb['data'][_0x50bf08(0x7fd)]):_0x577bfb['toString']()});});}function _0x5cdfb2(_0x165297){const _0x13357e=_0x2d676e;_0x5c5ec8[_0x13357e(0xcef)]=[];const _0x27eec9=_0x34ac9b[_0x13357e(0x1e8a)]()[_0x13357e(0x1189)](_0x13357e(0x1d64))[_0x13357e(0x80f)](_0x13357e(0x13fe))[_0x13357e(0x4bd)](_0x13357e(0x2316))['ok'](_0x13357e(0x25de))[_0x13357e(0x6c3)]('Cancel')[_0x13357e(0x1f27)](_0x165297);_0x34ac9b[_0x13357e(0x2615)](_0x27eec9)[_0x13357e(0x146b)](function(){const _0x47b0ba=_0x13357e;_0x25523b[_0x47b0ba(0x67d)]['delete']({'id':_0x5c5ec8[_0x47b0ba(0x249e)]['id']})[_0x47b0ba(0x2945)][_0x47b0ba(0x146b)](function(){const _0x3f47cd=_0x47b0ba;_0x3f65c0()[_0x3f47cd(0x2640)](_0x5c5ec8[_0x3f47cd(0x4a5)],{'id':_0x5c5ec8['smtp']['id']}),_0x1ca31f[_0x3f47cd(0x1c75)]({'title':_0x3f47cd(0x1267),'msg':(_0x5c5ec8[_0x3f47cd(0x249e)][_0x3f47cd(0x19eb)]||_0x3f47cd(0x249e))+_0x3f47cd(0x23e3)}),_0x1edec4(_0x5c5ec8['smtp']);})[_0x47b0ba(0x129e)](function(_0x4b2902){const _0x465fd1=_0x47b0ba;if(_0x4b2902[_0x465fd1(0x524)]&&_0x4b2902[_0x465fd1(0x524)][_0x465fd1(0xcef)]&&_0x4b2902[_0x465fd1(0x524)][_0x465fd1(0xcef)][_0x465fd1(0x402)]){_0x5c5ec8[_0x465fd1(0xcef)]=_0x4b2902['data']['errors']||[{'message':_0x4b2902['toString'](),'type':_0x465fd1(0x14b0)}];for(let _0x185b81=0x0;_0x185b81<_0x4b2902[_0x465fd1(0x524)][_0x465fd1(0xcef)]['length'];_0x185b81++){_0x1ca31f['error']({'title':_0x4b2902[_0x465fd1(0x524)][_0x465fd1(0xcef)][_0x185b81][_0x465fd1(0x1142)],'msg':_0x4b2902[_0x465fd1(0x524)][_0x465fd1(0xcef)][_0x185b81][_0x465fd1(0x7fd)]});}}else _0x1ca31f[_0x465fd1(0x1980)]({'title':_0x4b2902['status']?'API:'+_0x4b2902[_0x465fd1(0x107b)]+'\x20-\x20'+_0x4b2902[_0x465fd1(0x167f)]:'api.mailAccount.delete','msg':_0x4b2902['data']?JSON[_0x465fd1(0x10bb)](_0x4b2902[_0x465fd1(0x524)][_0x465fd1(0x7fd)]):_0x4b2902[_0x465fd1(0x7fd)]||_0x4b2902[_0x465fd1(0xd5f)]()});});},function(){});}function _0x1c5e1e(_0x5c3aaa){return _0x5c3aaa===null?undefined:new Date(_0x5c3aaa);}function _0x1edec4(_0x4177f1){const _0x2efd86=_0x2d676e;_0x34ac9b[_0x2efd86(0x2458)](_0x4177f1);}}const _0x487936=_0x2be8ff;;_0x4d5799['$inject']=[_0x313a4d(0x4a5),_0x313a4d(0x247f),_0x313a4d(0x1fe4),_0x313a4d(0x2690),'Auth'];function _0x4d5799(_0x594114,_0x245149,_0x580985,_0x3f10da,_0x4228a5){const _0x417d7d=_0x313a4d,_0x5a39ac=this;_0x5a39ac[_0x417d7d(0x2321)]=_0x4228a5['getCurrentUser'](),_0x5a39ac[_0x417d7d(0x2690)]=_0x3f10da,_0x5a39ac[_0x417d7d(0x4a5)]=_0x594114,_0x5a39ac[_0x417d7d(0x249e)]={};_0x5a39ac['smtps']&&_0x5a39ac[_0x417d7d(0x4a5)]['rows']&&_0x5a39ac[_0x417d7d(0x4a5)][_0x417d7d(0x19c7)]['length']?_0x5a39ac['smtp']=_0x5a39ac[_0x417d7d(0x4a5)][_0x417d7d(0x19c7)][0x0]:_0x5a39ac[_0x417d7d(0x249e)]={'service':!![],'Smtp':{'service':null}};_0x5a39ac[_0x417d7d(0x15b3)]=_0x3f296b,_0x5a39ac[_0x417d7d(0x218e)]=_0x1a7fa9;function _0x1a7fa9(){const _0x2a8a71=_0x417d7d;_0x5a39ac['smtp']['id']&&_0x245149['mailAccount'][_0x2a8a71(0x218e)]({'id':_0x5a39ac['smtp']['id']})['$promise']['then'](function(){const _0x9528f6=_0x2a8a71;_0x580985['success']({'title':_0x9528f6(0x22c4),'msg':_0x5a39ac[_0x9528f6(0x249e)]['name']?_0x5a39ac[_0x9528f6(0x249e)]['name']+'\x20has\x20been\x20verified!':''});})[_0x2a8a71(0x129e)](function(_0x1e9c53){const _0x494be5=_0x2a8a71;_0x580985[_0x494be5(0x1980)]({'title':_0x494be5(0x3b5),'msg':_0x1e9c53[_0x494be5(0x524)]?JSON['stringify'](_0x1e9c53['data']):_0x1e9c53[_0x494be5(0xd5f)](),'timeout':0x2710});});}function _0x3f296b(){const _0x5d176b=_0x417d7d;_0x5a39ac[_0x5d176b(0x249e)]['id']?_0x245149[_0x5d176b(0x67d)][_0x5d176b(0x18e1)]({'id':_0x5a39ac['smtp']['id']},_0x5a39ac['smtp'])[_0x5d176b(0x2945)][_0x5d176b(0x146b)](function(){const _0x228d6a=_0x5d176b;_0x580985['success']({'title':_0x228d6a(0x1f9),'msg':_0x5a39ac[_0x228d6a(0x249e)][_0x228d6a(0x19eb)]?_0x5a39ac[_0x228d6a(0x249e)][_0x228d6a(0x19eb)]+_0x228d6a(0x6b0):''});})[_0x5d176b(0x129e)](function(_0x42d0fe){const _0x5aa9b1=_0x5d176b;_0x580985[_0x5aa9b1(0x1980)]({'title':_0x42d0fe[_0x5aa9b1(0x107b)]?_0x5aa9b1(0x262a)+_0x42d0fe[_0x5aa9b1(0x107b)]+_0x5aa9b1(0x1315)+_0x42d0fe[_0x5aa9b1(0x167f)]:'SYSTEM:GETmailAccount','msg':_0x42d0fe[_0x5aa9b1(0x524)]?JSON[_0x5aa9b1(0x10bb)](_0x42d0fe[_0x5aa9b1(0x524)]):_0x42d0fe[_0x5aa9b1(0xd5f)]()});}):_0x245149['mailAccount']['save'](_0x5a39ac['smtp'])['$promise'][_0x5d176b(0x146b)](function(_0x2d2a5c){const _0x12325c=_0x5d176b;_0x3f65c0()['merge'](_0x5a39ac[_0x12325c(0x249e)],_0x2d2a5c),_0x580985['success']({'title':'Smtp\x20updated!','msg':_0x5a39ac['smtp']['name']?_0x5a39ac['smtp'][_0x12325c(0x19eb)]+_0x12325c(0x6b0):''});})[_0x5d176b(0x129e)](function(_0x3b7aa2){const _0x283470=_0x5d176b;_0x580985[_0x283470(0x1980)]({'title':_0x3b7aa2['status']?_0x283470(0x262a)+_0x3b7aa2[_0x283470(0x107b)]+_0x283470(0x1315)+_0x3b7aa2[_0x283470(0x167f)]:_0x283470(0x12eb),'msg':_0x3b7aa2[_0x283470(0x524)]?JSON[_0x283470(0x10bb)](_0x3b7aa2['data']):_0x3b7aa2[_0x283470(0xd5f)]()});});}}const _0x5b3948=_0x4d5799;;_0x23235a[_0x313a4d(0x11c2)]=[_0x313a4d(0x921),'$translatePartialLoaderProvider'];function _0x23235a(_0x4b5d6e,_0x2a7c76){const _0x320971=_0x313a4d;_0x4b5d6e[_0x320971(0x13d6)](_0x320971(0x175),{'abstract':!![],'url':_0x320971(0x1a0f)})['state']('app.settings.generals',{'url':_0x320971(0x1318),'views':{'content@app':{'templateUrl':_0xf7a2b6,'controller':_0x320971(0x164)}},'resolve':{'generals':[_0x320971(0x362),function(_0x3dc073){const _0x2f6eea=_0x320971;return _0x3dc073[_0x2f6eea(0x2922)](_0x2f6eea(0x20b),{'fields':'createdAt,updatedAt,id,min_internal,securePassword,callRecordingEncryption,chatTimeout,phoneBarAutoUpdater,defaultScreenRecordingPath,phoneBarAutoUpdaterUrl,enableEmailPreview,split,splitSizeCsv,splitSizePdf,splitSizeXlsx,messagesAlignment,phoneBarRememberMeEnabled,rtlSupport,allowedLoginAttempts,blockDuration,loginMailFrequency,language,bucket,transcribe,transcribeRegion,transcribeAccountId,sentiment,sentimentRegion,sentimentAccountId,googleSsoEnabled,enforcePasswordHistory,passwordHistoryLimit','limit':0xa,'offset':0x0});}]},'authenticate':!![],'permissionId':0x578,'bodyClass':_0x320971(0xae3)})[_0x320971(0x13d6)](_0x320971(0x1174),{'url':_0x320971(0x981),'views':{'content@app':{'templateUrl':_0x1a8107,'controller':'SmtpController\x20as\x20vm'}},'resolve':{'smtps':[_0x320971(0x362),function(_0x133043){const _0x98e5f1=_0x320971;return _0x133043[_0x98e5f1(0x2922)](_0x98e5f1(0x541),{'fields':'createdAt,updatedAt,id,service,name,email,Smtp.service,Smtp.host,Smtp.port,Smtp.secure,Smtp.authentication,Smtp.user,Smtp.pass,description','service':'1','limit':0xa,'offset':0x0});}]},'authenticate':!![],'permissionId':0x578,'bodyClass':_0x320971(0xae3)})[_0x320971(0x13d6)](_0x320971(0xe1c),{'url':_0x320971(0x1a0d),'views':{'content@app':{'templateUrl':_0x2fc8da,'controller':_0x320971(0x11bb)}},'resolve':{'networks':[_0x320971(0x362),function(_0x53ce50){const _0x56ed45=_0x320971;return _0x53ce50[_0x56ed45(0x2922)](_0x56ed45(0xed4),{'fields':_0x56ed45(0x6bd),'sort':_0x56ed45(0x12f2),'limit':0xa,'offset':0x0});}]},'authenticate':!![],'permissionId':0x578,'bodyClass':_0x320971(0xae3)})[_0x320971(0x13d6)]('app.settings.customizations',{'url':_0x320971(0x326),'views':{'content@app':{'templateUrl':_0x4f3a68,'controller':_0x320971(0x9df)}},'resolve':{'customizations':['apiResolver',function(_0x48ffd6){const _0x507da9=_0x320971;return _0x48ffd6[_0x507da9(0x2922)]('setting@get',{'fields':'createdAt,updatedAt,id,defaultLogo,defaultLoginLogo,defaultFavicon,defaultHeaderWhiteLabel,headerWhiteLabel,defaultPageTitle,pageTitle,defaultPreferred','limit':0xa,'offset':0x0});}]},'authenticate':!![],'permissionId':0x578,'bodyClass':'settings'})[_0x320971(0x13d6)](_0x320971(0x2004),{'url':'/cloudProviders','views':{'content@app':{'templateUrl':_0x4bb142,'controller':_0x320971(0x234a)}},'resolve':{'cloudProviders':[_0x320971(0x362),function(_0x59fde5){const _0x450d01=_0x320971;return _0x59fde5[_0x450d01(0x2922)]('cloudProvider@get',{'fields':_0x450d01(0x1259),'sort':'-updatedAt','limit':0xa,'offset':0x0});}]},'authenticate':!![],'permissionId':0x578,'bodyClass':'settings'}),_0x2a7c76['addPart'](_0x320971(0x9cd));}angular['module']('app.settings',[_0x313a4d(0xdad),'ngPassword',_0x313a4d(0x23c7),_0x313a4d(0x963),'mdColorPicker',_0x313a4d(0x27c1),_0x313a4d(0x195b),_0x313a4d(0x15ef),_0x313a4d(0xc86),_0x313a4d(0x1f5f),_0x313a4d(0x28a8),'mwFormViewer','mwFormUtils',_0x313a4d(0x581),_0x313a4d(0x1bd2),_0x313a4d(0x1792),_0x313a4d(0x1b65),_0x313a4d(0x1626),_0x313a4d(0x2713),'angular.filter','app.settings.updates',_0x313a4d(0x198b),_0x313a4d(0x1c74)])[_0x313a4d(0x989)](_0x23235a)[_0x313a4d(0x28f0)](_0x313a4d(0x491),_0x3e06fa)['controller'](_0x313a4d(0x453),_0x296e19)['controller'](_0x313a4d(0x1afe),_0x212012)[_0x313a4d(0x28f0)](_0x313a4d(0xf59),_0x27095d)['controller']('CustomizationfaviconController',_0x572f3d)[_0x313a4d(0x28f0)](_0x313a4d(0x21df),_0x425505)[_0x313a4d(0x28f0)](_0x313a4d(0x1a5a),_0x188833)[_0x313a4d(0x28f0)](_0x313a4d(0x983),_0x42a37b)[_0x313a4d(0x28f0)](_0x313a4d(0x24a8),_0x4d762b)['controller'](_0x313a4d(0x2617),_0x42176b)['controller'](_0x313a4d(0x199a),_0x3433ae)[_0x313a4d(0x28f0)](_0x313a4d(0x197d),_0x33f7b0)[_0x313a4d(0x28f0)](_0x313a4d(0x1fb7),_0x487936)[_0x313a4d(0x28f0)](_0x313a4d(0xb4d),_0x5b3948);;const _0x3a9e=_0x4acfac['p']+_0x313a4d(0x1030);;const _0x48ccf9=_0x4acfac['p']+'src/js/modules/main/apps/motiondialer/views/realtime/agents/view.html/view.html';;const _0x55dc5e=_0x4acfac['p']+_0x313a4d(0x27b5);;const _0x13d5bf=_0x4acfac['p']+_0x313a4d(0x1046);;const _0x40b2c8=_0x4acfac['p']+_0x313a4d(0x886);;const _0x374ed1=_0x4acfac['p']+_0x313a4d(0x21ea);;const _0x43482f=_0x4acfac['p']+'src/js/modules/main/apps/motiondialer/views/realtime/ivr_campaigns/view.html/view.html';;const _0x33ee4d=_0x4acfac['p']+_0x313a4d(0xee9);;_0x20aa3a[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1abe),_0x313a4d(0x10e8),'$document',_0x313a4d(0x1aa9),_0x313a4d(0x214b),_0x313a4d(0x247f),'userProfile',_0x313a4d(0x1366),_0x313a4d(0xa87),'socket',_0x313a4d(0x1fe4),'agents',_0x313a4d(0x2647)];function _0x20aa3a(_0x5173df,_0x1bc64b,_0x30f34b,_0x492659,_0x593a18,_0x54654c,_0x14a09b,_0x35ee57,_0x2c89ea,_0x320832,_0x181100,_0x42ebb6,_0x348b27,_0x3243ee){const _0x376c41=_0x313a4d,_0x48e547=this;_0x48e547[_0x376c41(0x2321)]=_0x320832[_0x376c41(0xb12)](),_0x48e547[_0x376c41(0x23c0)]=_0x348b27?_0x348b27:[],_0x48e547[_0x376c41(0x2647)]=_0x3243ee,_0x48e547[_0x376c41(0x2097)]={'count':0x0,'rows':[]},_0x48e547[_0x376c41(0x181b)]=![],_0x48e547[_0x376c41(0x258a)]=!![],_0x48e547[_0x376c41(0x26b6)]=_0x35ee57,_0x48e547['userProfileSection']=_0x2c89ea&&_0x2c89ea[_0x376c41(0x51c)]==0x1?_0x2c89ea[_0x376c41(0x19c7)][0x0]:null,_0x48e547[_0x376c41(0x2514)]=_0x320832[_0x376c41(0xe60)](_0x48e547['userProfileSection']?_0x48e547['userProfileSection'][_0x376c41(0x2514)]:null),_0x48e547[_0x376c41(0x1a56)]={'fields':_0x376c41(0x655),'type':'outbound','queuecallerexitreason':'TIMEOUT'+','+_0x376c41(0x1f0a),'sort':_0x376c41(0x12f2),'limit':0xa,'page':0x1},_0x48e547[_0x376c41(0x1d84)]=_0x219fbc,_0x48e547[_0x376c41(0x2482)]=_0x5d7117,_0x48e547[_0x376c41(0x1e2e)]=_0x2a8a84,_0x48e547[_0x376c41(0x25ed)]=_0x36975d,_0x48e547[_0x376c41(0x196c)]=_0x4e15eb,_0x48e547[_0x376c41(0x6b3)]=_0x20f774,_0x181100[_0x376c41(0x13b7)]('voiceQueueReport:save',_0x48e547[_0x376c41(0x196c)]),_0x181100['on']('voiceQueueReport:update',_0x48e547[_0x376c41(0x6b3)]),_0x35aa21();function _0x35aa21(){const _0x273716=_0x376c41;let _0x156e13=_0x593a18[_0x273716(0x1c39)][_0x273716(0x1519)]('motion2.realtime.abandoned.bull.abandonedCalls:'+_0x48e547[_0x273716(0x2321)]['id']);if(_0x156e13)_0x156e13=JSON[_0x273716(0x975)](_0x156e13),_0x156e13&&_0x156e13[_0x273716(0x1a56)]&&(_0x48e547[_0x273716(0x1a56)]=_0x3f65c0()[_0x273716(0x168d)](_0x156e13['query'],_0x3f65c0()['omit'](_0x48e547['query'],['sort',_0x273716(0x221e),'page'])),_0x48e547[_0x273716(0x1a56)]=_0x3f65c0()['omit'](_0x48e547['query'],_0x273716(0x1dd6)));else{const _0x56c809={'$gte':_0x2deec6()()[_0x273716(0x1fcc)]('month')[_0x273716(0x65f)](0x0,!![])['format'](),'$lte':_0x2deec6()()[_0x273716(0x824)](_0x273716(0x12b7))[_0x273716(0x65f)](0x0,!![])[_0x273716(0x22b0)]()};_0x48e547[_0x273716(0x1a56)][_0x273716(0xc68)]=_0x56c809;}_0x320832[_0x273716(0x23e0)]('admin')?_0x14a09b['user'][_0x273716(0xc53)]({'id':_0x320832[_0x273716(0xb12)]()['id'],'fields':_0x273716(0x7a7),'channel':_0x273716(0xe6),'type':_0x273716(0xc9c),'nolimit':!![]})[_0x273716(0x2945)][_0x273716(0x146b)](function(_0x3f2661){const _0x3b8a10=_0x273716;_0x48e547[_0x3b8a10(0x1b32)]=_0x3f2661||{'count':0x0,'rows':[]},_0x48e547['queuesMap']=_0x3f65c0()[_0x3b8a10(0x1de4)](_0x3f65c0()[_0x3b8a10(0x194)](_0x48e547[_0x3b8a10(0x1b32)][_0x3b8a10(0x19c7)],'name'),_0x3b8a10(0x19eb));})[_0x273716(0x129e)](function(_0x5b60eb){const _0x428643=_0x273716;console[_0x428643(0x1980)](_0x5b60eb);})['finally'](function(){const _0x1f0c50=_0x273716;_0x48e547[_0x1f0c50(0x28af)]=_0x423bf7(),_0x48e547[_0x1f0c50(0x1d84)]();}):_0x14a09b['userProfile'][_0x273716(0x158f)]({'id':_0x48e547['currentUser'][_0x273716(0x209a)],'section':_0x273716(0x15d6),'channel':_0x273716(0xe6),'type':_0x273716(0xc9c),'sort':'-updatedAt','nolimit':!![]})[_0x273716(0x2945)][_0x273716(0x146b)](function(_0x19ca92){const _0x5caca1=_0x273716;_0x48e547[_0x5caca1(0x1b32)]=_0x19ca92||{'count':0x0,'rows':[]},_0x48e547['queuesMap']=_0x3f65c0()[_0x5caca1(0x1de4)](_0x3f65c0()[_0x5caca1(0x194)](_0x48e547[_0x5caca1(0x1b32)]['rows'],_0x5caca1(0x19eb)),'name');})[_0x273716(0x129e)](function(_0x5d7608){const _0x50a8b4=_0x273716;console[_0x50a8b4(0x1980)](_0x5d7608);})['finally'](function(){const _0x367278=_0x273716;_0x48e547[_0x367278(0x28af)]=_0x423bf7(),_0x48e547['getAbandonedCalls']();});}function _0x423bf7(){const _0x1d129b=_0x376c41;return[{'name':'Start\x20Date','key':'createdAt','type':_0x1d129b(0x1a10),'label':'DASHBOARDS.SELECT_DATE'},{'name':_0x1d129b(0x294a),'key':_0x1d129b(0x19ac),'type':'select','label':_0x1d129b(0x127),'options':_0x48e547[_0x1d129b(0x23c0)][_0x1d129b(0x19c7)],'customOptions':[{'value':_0x1d129b(0xa03),'translate':_0x1d129b(0x38d)},{'value':undefined,'translate':_0x1d129b(0x175e)}]},{'name':_0x1d129b(0x1cd3),'key':'queue','type':'multiselect','label':'DASHBOARDS.SELECT_CAMPAIGN','options':_0x48e547[_0x1d129b(0x1b32)][_0x1d129b(0x19c7)]}];}function _0x219fbc(){const _0x582226=_0x376c41;_0x48e547['refresh']=![],_0x48e547['queues']['count']>0x0?(_0x48e547[_0x582226(0x1a56)][_0x582226(0x1c72)]=_0x48e547[_0x582226(0x1b32)][_0x582226(0x51c)]===0x1?_0x48e547['queues'][_0x582226(0x19c7)][0x0]['name']:_0x48e547[_0x582226(0x1a56)][_0x582226(0x1c72)],_0x48e547[_0x582226(0x1a56)][_0x582226(0x145d)]=(_0x48e547['query']['page']-0x1)*_0x48e547[_0x582226(0x1a56)]['limit'],_0x593a18[_0x582226(0x1c39)]['setItem'](_0x582226(0x789)+_0x48e547[_0x582226(0x2321)]['id'],JSON['stringify']({'query':_0x3f65c0()[_0x582226(0x2432)](_0x48e547[_0x582226(0x1a56)],_0x582226(0x1c72))})),_0x48e547['promise']=_0x14a09b[_0x582226(0x19ef)]['getVoiceQueuesReport'](_0x48e547[_0x582226(0x1a56)],_0x478038)[_0x582226(0x2945)]):_0x478038(null);}function _0x478038(_0xe2c9cd){_0x48e547['abandonedCalls']=_0xe2c9cd||{'count':0x0,'rows':[]},_0x48e547['refresh']=!![];}function _0x5d7117(){const _0x4c1f98=_0x376c41;_0x48e547[_0x4c1f98(0x181b)]=![],_0x48e547[_0x4c1f98(0x1d84)]();}function _0x4e15eb(_0xfb6311){const _0x8db700=_0x376c41,_0x370558=_0x8db700(0xc9c);_0xfb6311&&_0x48e547[_0x8db700(0x212b)]&&_0xfb6311[_0x8db700(0x1c72)][_0x8db700(0x1142)]===_0x370558&&_0x48e547[_0x8db700(0x212b)][_0xfb6311[_0x8db700(0x1c72)]]&&(_0x48e547[_0x8db700(0x181b)]=!![]);}function _0x20f774(_0x1d3af8){const _0x1fcd1c=_0x376c41;if(_0x1d3af8){const _0xf976e5=_0x3f65c0()[_0x1fcd1c(0x99c)](_0x48e547['abandonedCalls'][_0x1fcd1c(0x19c7)],['id',_0x1d3af8['id']]);_0xf976e5>=0x0&&_0x3f65c0()['merge'](_0x48e547[_0x1fcd1c(0x2097)][_0x1fcd1c(0x19c7)][_0xf976e5],_0x1d3af8);}}function _0x2a8a84(_0x15457d,_0x575450){const _0x3c57af=_0x376c41;_0x15457d&&_0x14a09b[_0x3c57af(0x19ef)][_0x3c57af(0x18e1)]({'id':_0x15457d['id'],'lastAssignedTo':_0x575450?_0x575450[_0x3c57af(0x19eb)]:null,'assigned':_0x575450?!![]:![]})[_0x3c57af(0x2945)]['catch'](function(_0x2dcc1c){const _0x27a9ce=_0x3c57af;console[_0x27a9ce(0x1a74)](_0x2dcc1c);});}function _0x36975d(_0x4dde80){const _0xd8a6b9=_0x376c41;_0x30f34b[_0xd8a6b9(0x2615)]({'controller':_0xd8a6b9(0x1dd0),'controllerAs':'vm','templateUrl':_0x33ee4d,'parent':angular[_0xd8a6b9(0x1853)](_0x492659[_0xd8a6b9(0x2586)]),'targetEvent':_0x4dde80,'resolve':{'globalDispositions':['apiResolver',function(_0x104e38){const _0x2d9fbc=_0xd8a6b9;return _0x104e38['resolve'](_0x2d9fbc(0x1041),{'MailAccountId':_0x2d9fbc(0x203c),'FaxAccountId':_0x2d9fbc(0x203c),'SmsAccountId':_0x2d9fbc(0x203c),'WhatsappAccountId':_0x2d9fbc(0x203c),'OpenchannelAccountId':_0x2d9fbc(0x203c),'ChatWebsiteId':_0x2d9fbc(0x203c),'ListId':_0x2d9fbc(0x203c)});}]},'locals':{'dispositions':_0x48e547[_0xd8a6b9(0x2647)],'call':_0x4dde80}})['then'](function(_0xaa6909){const _0x44f32e=_0xd8a6b9;if(_0xaa6909){const _0xc417={'id':_0x4dde80['id'],'disposition':_0xaa6909['firstLevel']||null,'secondDisposition':_0xaa6909[_0x44f32e(0x4af)]||null,'thirdDisposition':_0xaa6909['thirdLevel']||null};_0x14a09b['voiceQueueReport'][_0x44f32e(0x18e1)](_0xc417)[_0x44f32e(0x2945)][_0x44f32e(0x129e)](function(_0x11d8df){const _0x369b19=_0x44f32e;console[_0x369b19(0x1a74)](_0x11d8df);});}});}let _0x21ce1b=!![],_0x628290=0x1;_0x5173df[_0x376c41(0x21e8)](_0x376c41(0x2669),function(_0x24a827,_0x546dcc){const _0x5c4dce=_0x376c41;_0x21ce1b?_0x1bc64b(function(){_0x21ce1b=![];}):(!_0x546dcc&&(_0x628290=_0x48e547['query']['page']),_0x24a827!==_0x546dcc&&(_0x48e547[_0x5c4dce(0x1a56)][_0x5c4dce(0x844)]=0x1),!_0x24a827&&(_0x48e547[_0x5c4dce(0x1a56)][_0x5c4dce(0x844)]=_0x628290),_0x48e547['getAbandonedCalls']());}),_0x5173df[_0x376c41(0x16ad)]('$destroy',function(){const _0x7ce17e=_0x376c41;_0x181100[_0x7ce17e(0x1c5f)](_0x7ce17e(0xfd4)),_0x181100['removeAllListeners']('voiceQueueReport:update');});}const _0x4be860=_0x20aa3a;;_0x1ad269[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),'$q','$timeout','$mdDialog',_0x313a4d(0x4d8),_0x313a4d(0x1ee0),_0x313a4d(0x23bb),_0x313a4d(0x23c0),_0x313a4d(0x2445),_0x313a4d(0x247f),_0x313a4d(0x279d),'toasty','helperClasses',_0x313a4d(0x26b6),'userProfileSection',_0x313a4d(0xa87),_0x313a4d(0x2690),_0x313a4d(0xa0a)];function _0x1ad269(_0x4a4360,_0x4a1c85,_0x1d7d81,_0x764c4f,_0x17b641,_0x547c61,_0x2e678a,_0x16dc36,_0x261bcd,_0x26fcc9,_0x4ddcc1,_0x208d3b,_0x159213,_0x5bed2c,_0x2c8a60,_0x46a6d0,_0x2d09bc,_0x4bbaf4){const _0x4cbef6=_0x313a4d,_0x32e81a=this,_0xdfb885=[_0x4cbef6(0x1fce),_0x4cbef6(0x538),'lastLoginAt',_0x4cbef6(0x192a),_0x4cbef6(0x1125),_0x4cbef6(0x192a),_0x4cbef6(0x113f),_0x4cbef6(0x2bb),_0x4cbef6(0x5f7),'openchannelPause','mailPause',_0x4cbef6(0x17c),_0x4cbef6(0x1f9d),_0x4cbef6(0x25c4),_0x4cbef6(0x211c),'chatCapacity',_0x4cbef6(0x15fd),'mailCapacity',_0x4cbef6(0x1820),'whatsappCapacity',_0x4cbef6(0x1cf6),_0x4cbef6(0xaac),_0x4cbef6(0x247),_0x4cbef6(0x1025),'smsCurrentCapacity','whatsappCurrentCapacity',_0x4cbef6(0x1815),_0x4cbef6(0xfc3),_0x4cbef6(0xfae),_0x4cbef6(0x1fc6),_0x4cbef6(0x22f6),_0x4cbef6(0xfdf),'faxStatus','voiceStatus',_0x4cbef6(0x1a22),_0x4cbef6(0x6cb),_0x4cbef6(0x10cd),_0x4cbef6(0x1f5c),'whatsappStatusTime','faxStatusTime','voiceStatusTime',_0x4cbef6(0x1c72),'destconnectedlinenum',_0x4cbef6(0x1ca2),_0x4cbef6(0x4e3),_0x4cbef6(0x22c3)],_0x2e7a7b=[_0x4cbef6(0x5f7),'openchannelPause',_0x4cbef6(0x1e9e),_0x4cbef6(0x17c),_0x4cbef6(0x1f9d),_0x4cbef6(0x25c4),'voicePause','online'];_0x32e81a['currentUser']=_0x46a6d0['getCurrentUser'](),_0x32e81a[_0x4cbef6(0xe3e)]=['ringing',_0x4cbef6(0xfe4),'busy',_0x4cbef6(0x776),_0x4cbef6(0x254d)],_0x32e81a[_0x4cbef6(0x23bb)]=_0x2e678a||{'count':0x0,'rows':[]},_0x32e81a[_0x4cbef6(0x2690)]=_0x2d09bc,_0x32e81a[_0x4cbef6(0x26b6)]=_0x5bed2c,_0x32e81a['userProfileSection']=_0x2c8a60&&_0x2c8a60[_0x4cbef6(0x51c)]==0x1?_0x2c8a60[_0x4cbef6(0x19c7)][0x0]:null,_0x32e81a[_0x4cbef6(0x2514)]=_0x46a6d0[_0x4cbef6(0xe60)](_0x32e81a[_0x4cbef6(0x1366)]?_0x32e81a[_0x4cbef6(0x1366)][_0x4cbef6(0x2514)]:null),_0x32e81a[_0x4cbef6(0x23c0)]=_0x16dc36?_0x3f65c0()[_0x4cbef6(0x194)](_0x16dc36[_0x4cbef6(0x19c7)]?_0x16dc36[_0x4cbef6(0x19c7)]:[],'id'):{},_0x32e81a['rpcAgents']=_0x261bcd?_0x3f65c0()[_0x4cbef6(0x194)](_0x261bcd['rows']?_0x261bcd['rows']:[],'id'):{},_0x32e81a[_0x4cbef6(0x285)]={},_0x32e81a[_0x4cbef6(0x2412)]=![],_0x32e81a[_0x4cbef6(0x206e)]=[],_0x32e81a[_0x4cbef6(0x626)]={};for(const _0x8e40d4 in _0x32e81a[_0x4cbef6(0x23c0)]){typeof _0x32e81a[_0x4cbef6(0x23c0)][_0x8e40d4]!==_0x4cbef6(0x2274)&&(_0x32e81a['agents'][_0x8e40d4][_0x4cbef6(0x5aa)]=!![]);}_0x32e81a[_0x4cbef6(0x1a56)]={'limit':0xa,'page':0x1,'order':_0x4cbef6(0x286a),'globalStatusFilter':'','pauseTypeFilter':''},_0x32e81a[_0x4cbef6(0x2044)]=_0x316c54,_0x32e81a['queueAdd']=_0x2c684d,_0x32e81a[_0x4cbef6(0x1e3e)]=_0xa4743c,_0x32e81a[_0x4cbef6(0x693)]=_0x34d30e,_0x32e81a[_0x4cbef6(0x232c)]=_0x2fb43c,_0x32e81a[_0x4cbef6(0x1eaa)]=_0x300a3f,_0x32e81a[_0x4cbef6(0x1775)]=_0x55108d,_0x32e81a['isPause']=_0x89755f,_0x32e81a[_0x4cbef6(0x169)]=_0x22f9fe,_0x32e81a[_0x4cbef6(0x1d53)]=_0x35a47e,_0x32e81a['onSave']=_0x3aa3f8,_0x32e81a[_0x4cbef6(0x1a76)]=_0x2f49ff,_0x32e81a[_0x4cbef6(0x3d4)]=_0x45116e,_0x32e81a['onConnect']=_0xf019d5,_0x32e81a['onComplete']=_0x566f10,_0x32e81a[_0x4cbef6(0x1b80)]=_0x40594d,_0x4ddcc1['on'](_0x4cbef6(0x17de),_0x32e81a[_0x4cbef6(0x1db0)]),_0x4ddcc1['on']('user:update',_0x32e81a['onUpdate']),_0x4ddcc1['on'](_0x4cbef6(0x118c),_0x32e81a[_0x4cbef6(0x201a)]),_0x4ddcc1['on'](_0x4cbef6(0x198f),_0x32e81a['onComplete']),_0x45116e();let _0x3fbd59=_0x4bbaf4(function(){const _0x465f83=_0x4cbef6;_0x32e81a['load']&&(_0x32e81a[_0x465f83(0x2412)]=![],_0x45116e());},0x3e7);function _0x45116e(){const _0x5d8bb1=_0x4cbef6;_0x32e81a[_0x5d8bb1(0x2412)]=![];const _0x33fe4b=_0x4a1c85[_0x5d8bb1(0xce3)]();_0x32e81a[_0x5d8bb1(0xb9c)]=_0x33fe4b['promise'],_0x32e81a[_0x5d8bb1(0x202e)]=[],_0x32e81a[_0x5d8bb1(0x206e)]=[],_0x3f65c0()[_0x5d8bb1(0x1a04)](_0x32e81a[_0x5d8bb1(0x23c0)],function(_0x150012,_0x25e07){const _0x3f909e=_0x5d8bb1;_0x32e81a[_0x3f909e(0x2445)][_0x25e07]&&_0x3f65c0()[_0x3f909e(0x168d)](_0x150012,_0x3f65c0()[_0x3f909e(0x40e)](_0x3f65c0()['omit'](_0x32e81a[_0x3f909e(0x2445)][_0x25e07],_0x2e7a7b),_0xdfb885)),_0x55108d(_0x150012),_0x150012[_0x3f909e(0x538)]?(_0x32e81a[_0x3f909e(0x202e)][_0x3f909e(0x1f47)](_0x150012),_0x32e81a[_0x3f909e(0x626)][_0x150012[_0x3f909e(0x113f)]]=_0x25e07):_0x150012[_0x3f909e(0xed1)]=_0x3f65c0()[_0x3f909e(0x123)](_0x2deec6()()[_0x3f909e(0x22b0)]('x'));});_0x32e81a[_0x5d8bb1(0x1a56)][_0x5d8bb1(0x1500)]&&_0x3f65c0()[_0x5d8bb1(0x2640)](_0x32e81a[_0x5d8bb1(0x202e)],function(_0x36d7e5){const _0x39b641=_0x5d8bb1;return _0x36d7e5[_0x39b641(0x72b)]!==_0x32e81a[_0x39b641(0x1a56)]['globalStatusFilter'];});_0x32e81a['query'][_0x5d8bb1(0x301)]&&_0x3f65c0()[_0x5d8bb1(0x2640)](_0x32e81a[_0x5d8bb1(0x202e)],function(_0x426b6c){const _0x345f50=_0x5d8bb1;return _0x426b6c[_0x345f50(0x1125)]!==_0x32e81a[_0x345f50(0x1a56)]['pauseTypeFilter'];});_0x32e81a[_0x5d8bb1(0x1a56)][_0x5d8bb1(0x1dd6)]&&_0x3f65c0()[_0x5d8bb1(0x2640)](_0x32e81a['filteredAgents'],function(_0x580b8e){const _0x2213cf=_0x5d8bb1;return _0x580b8e['fullname'][_0x2213cf(0x256e)]()[_0x2213cf(0x172b)](_0x32e81a[_0x2213cf(0x1a56)][_0x2213cf(0x1dd6)][_0x2213cf(0x256e)]())<0x0;});_0x32e81a[_0x5d8bb1(0x202e)]=_0x5d8566(_0x32e81a[_0x5d8bb1(0x202e)]);const _0x6beda1=(_0x32e81a[_0x5d8bb1(0x1a56)][_0x5d8bb1(0x844)]-0x1)*_0x32e81a[_0x5d8bb1(0x1a56)][_0x5d8bb1(0x221e)];_0x32e81a['paginatedAgents']=_0x3f65c0()[_0x5d8bb1(0x854)](_0x32e81a[_0x5d8bb1(0x202e)],_0x6beda1)[_0x5d8bb1(0x1298)](0x0,_0x32e81a[_0x5d8bb1(0x1a56)][_0x5d8bb1(0x221e)]);for(let _0x42eaaf=0x0;_0x42eaaf<_0x32e81a[_0x5d8bb1(0x285)][_0x5d8bb1(0x402)];_0x42eaaf+=0x1){_0x32e81a[_0x5d8bb1(0x206e)][_0x5d8bb1(0x1f47)](_0x32e81a['paginatedAgents'][_0x42eaaf]['id']);}_0x33fe4b['resolve'](),_0x32e81a[_0x5d8bb1(0x2412)]=!![];}function _0x3aa3f8(_0xbf9c8b){const _0xab1a98=_0x4cbef6;_0x32e81a['agents'][_0xbf9c8b['id']]&&(_0x3f65c0()[_0xab1a98(0x168d)](_0x32e81a[_0xab1a98(0x23c0)][_0xbf9c8b['id']],_0x3f65c0()[_0xab1a98(0x40e)](_0x3f65c0()[_0xab1a98(0x2432)](_0xbf9c8b,_0x2e7a7b),_0xdfb885)),_0x3f65c0()[_0xab1a98(0x168d)](_0x32e81a[_0xab1a98(0x2445)][_0xbf9c8b['id']],_0x3f65c0()[_0xab1a98(0x40e)](_0x3f65c0()[_0xab1a98(0x2432)](_0xbf9c8b,_0x2e7a7b),_0xdfb885)),_0x55108d(_0x32e81a['agents'][_0xbf9c8b['id']]));}function _0x2f49ff(_0x2d30ee){const _0x3c1fff=_0x4cbef6;_0x32e81a[_0x3c1fff(0x23c0)][_0x2d30ee['id']]&&(_0x3f65c0()['merge'](_0x32e81a[_0x3c1fff(0x23c0)][_0x2d30ee['id']],_0x3f65c0()['pick'](_0x2d30ee,_0xdfb885)),_0x3f65c0()[_0x3c1fff(0x168d)](_0x32e81a['rpcAgents'][_0x2d30ee['id']],_0x3f65c0()[_0x3c1fff(0x40e)](_0x2d30ee,_0xdfb885)),_0x2d30ee[_0x3c1fff(0x192a)]&&(_0x32e81a[_0x3c1fff(0x23c0)][_0x2d30ee['id']][_0x3c1fff(0xed1)]=_0x2d30ee['lastPauseAt'],_0x32e81a['rpcAgents'][_0x2d30ee['id']][_0x3c1fff(0xed1)]=_0x2d30ee['lastPauseAt']),_0x55108d(_0x32e81a[_0x3c1fff(0x23c0)][_0x2d30ee['id']]));}function _0xf019d5(_0x36e17a){const _0x3a3c63=_0x4cbef6;_0x32e81a[_0x3a3c63(0x23c0)][_0x32e81a['agentInternal'][_0x36e17a[_0x3a3c63(0x1fb9)]]]&&(_0x3f65c0()[_0x3a3c63(0x168d)](_0x32e81a['agents'][_0x32e81a[_0x3a3c63(0x626)][_0x36e17a[_0x3a3c63(0x1fb9)]]],_0x3f65c0()['pick'](_0x36e17a,[_0x3a3c63(0x1c72),_0x3a3c63(0x1e8d)])),_0x3f65c0()[_0x3a3c63(0x168d)](_0x32e81a[_0x3a3c63(0x2445)][_0x32e81a['agentInternal'][_0x36e17a[_0x3a3c63(0x1fb9)]]],_0x3f65c0()[_0x3a3c63(0x40e)](_0x36e17a,[_0x3a3c63(0x1c72),_0x3a3c63(0x1e8d)])));}function _0x566f10(_0x27884b){const _0x5e1ad9=_0x4cbef6;_0x32e81a[_0x5e1ad9(0x23c0)][_0x32e81a[_0x5e1ad9(0x626)][_0x27884b['destaccountcode']]]&&(_0x32e81a[_0x5e1ad9(0x23c0)][_0x32e81a[_0x5e1ad9(0x626)][_0x27884b[_0x5e1ad9(0x1fb9)]]]=_0x3f65c0()['omit'](_0x32e81a[_0x5e1ad9(0x23c0)][_0x32e81a['agentInternal'][_0x27884b[_0x5e1ad9(0x1fb9)]]],[_0x5e1ad9(0x1c72),_0x5e1ad9(0x1e8d)]),_0x32e81a[_0x5e1ad9(0x2445)][_0x32e81a[_0x5e1ad9(0x626)][_0x27884b['destaccountcode']]]=_0x3f65c0()['omit'](_0x32e81a[_0x5e1ad9(0x2445)][_0x32e81a[_0x5e1ad9(0x626)][_0x27884b[_0x5e1ad9(0x1fb9)]]],[_0x5e1ad9(0x1c72),_0x5e1ad9(0x1e8d)]));}function _0x316c54(_0x5a6ad0){const _0x1663f5=_0x4cbef6;return _0x26fcc9[_0x1663f5(0xe7b)][_0x1663f5(0x2044)]({'id':_0x5a6ad0['id'],'device':_0x1663f5(0xfc4),'agent_id':_0x5a6ad0['id'],'agent_name':_0x5a6ad0[_0x1663f5(0x19eb)]})[_0x1663f5(0x2945)]['then'](function(){const _0x7d7dcc=_0x1663f5;_0x208d3b[_0x7d7dcc(0x1c75)]({'title':_0x7d7dcc(0x1c70),'msg':_0x5a6ad0[_0x7d7dcc(0x286a)]+'\x20\x20properly\x20logout'}),_0x32e81a[_0x7d7dcc(0x23c0)][_0x5a6ad0['id']]&&(_0x32e81a['agents'][_0x5a6ad0['id']]['online']=![]),_0x32e81a[_0x7d7dcc(0x2445)][_0x5a6ad0['id']]&&(_0x32e81a[_0x7d7dcc(0x2445)][_0x5a6ad0['id']][_0x7d7dcc(0x538)]=![]),_0x45116e();})['catch'](function(_0xf7856d){const _0x32fed2=_0x1663f5;_0x208d3b[_0x32fed2(0x1980)]({'title':_0xf7856d[_0x32fed2(0x107b)]?'API:'+_0xf7856d[_0x32fed2(0x107b)]+_0x32fed2(0x1315)+_0xf7856d['statusText']:_0x32fed2(0x23c6),'msg':_0xf7856d[_0x32fed2(0x524)]?JSON[_0x32fed2(0x10bb)](_0xf7856d[_0x32fed2(0x524)]['message']):_0xf7856d[_0x32fed2(0xd5f)]()});});}function _0xa4743c(_0x1f0198,_0x3cc870){const _0x13293=_0x4cbef6;return _0x26fcc9[_0x13293(0xe7b)][_0x13293(0x1e3e)]({'id':_0x1f0198['id'],'type':_0x3cc870})['$promise'][_0x13293(0x146b)](function(_0x18efba){const _0x52634e=_0x13293;_0x32e81a[_0x52634e(0x23c0)][_0x1f0198['id']]&&_0x3f65c0()['merge'](_0x32e81a[_0x52634e(0x23c0)][_0x1f0198['id']],_0x3f65c0()['pick'](_0x18efba,_0xdfb885)),_0x32e81a[_0x52634e(0x2445)][_0x1f0198['id']]&&_0x3f65c0()[_0x52634e(0x168d)](_0x32e81a[_0x52634e(0x2445)][_0x1f0198['id']],_0x3f65c0()[_0x52634e(0x40e)](_0x18efba,_0xdfb885)),_0x55108d(_0x32e81a[_0x52634e(0x23c0)][_0x1f0198['id']]);})[_0x13293(0x129e)](function(_0x31d5d3){const _0x28d54b=_0x13293;_0x208d3b['error']({'title':_0x31d5d3[_0x28d54b(0x107b)]?_0x28d54b(0x262a)+_0x31d5d3[_0x28d54b(0x107b)]+_0x28d54b(0x1315)+_0x31d5d3[_0x28d54b(0x167f)]:_0x28d54b(0x23c6),'msg':_0x31d5d3[_0x28d54b(0x524)]?JSON[_0x28d54b(0x10bb)](_0x31d5d3['data'][_0x28d54b(0x7fd)]):_0x31d5d3[_0x28d54b(0xd5f)]()});});}function _0x34d30e(_0x44863c){const _0x15b7c9=_0x4cbef6;return _0x26fcc9['user'][_0x15b7c9(0x974)]({'id':_0x44863c['id']})[_0x15b7c9(0x2945)]['then'](function(_0x533c88){const _0x3f18ff=_0x15b7c9;_0x32e81a[_0x3f18ff(0x23c0)][_0x44863c['id']]&&_0x3f65c0()['merge'](_0x32e81a['agents'][_0x44863c['id']],_0x3f65c0()['pick'](_0x533c88,_0xdfb885)),_0x32e81a['rpcAgents'][_0x44863c['id']]&&_0x3f65c0()[_0x3f18ff(0x168d)](_0x32e81a[_0x3f18ff(0x2445)][_0x44863c['id']],_0x3f65c0()[_0x3f18ff(0x40e)](_0x533c88,_0xdfb885)),_0x55108d(_0x32e81a[_0x3f18ff(0x23c0)][_0x44863c['id']]);})[_0x15b7c9(0x129e)](function(_0x2daab5){const _0x58a197=_0x15b7c9;_0x208d3b[_0x58a197(0x1980)]({'title':_0x2daab5[_0x58a197(0x107b)]?_0x58a197(0x262a)+_0x2daab5[_0x58a197(0x107b)]+_0x58a197(0x1315)+_0x2daab5['statusText']:_0x58a197(0x23c6),'msg':_0x2daab5[_0x58a197(0x524)]?JSON[_0x58a197(0x10bb)](_0x2daab5['data'][_0x58a197(0x7fd)]):_0x2daab5[_0x58a197(0xd5f)]()});});}function _0x2fb43c(_0xb43b9b){const _0x5f381f=_0x4cbef6;_0x764c4f['show'](_0x764c4f[_0x5f381f(0x861)]()['clickOutsideToClose'](!![])[_0x5f381f(0x1189)](_0x5f381f(0x2783))[_0x5f381f(0x1cbe)](_0x5f381f(0x1f77))['ok']('Ok')[_0x5f381f(0x1f27)](_0xb43b9b));}function _0x2c684d(_0x1a1262,_0x362585){const _0x55a064=_0x4cbef6;_0x764c4f['show']({'controller':'AgentqueueaddController','controllerAs':'vm','templateUrl':_0xbb22f1,'parent':angular[_0x55a064(0x1853)](_0x17b641[_0x55a064(0x2586)]),'targetEvent':_0x362585,'clickOutsideToClose':!![],'locals':{'agent':_0x1a1262,'agents':[],'channel':_0x55a064(0xe6),'direction':_0x55a064(0xc9c),'crudPermissions':_0x32e81a[_0x55a064(0x2514)]}});}function _0x89755f(_0x2f0466){const _0xf9fe2d=_0x4cbef6;return _0x2f0466===_0xf9fe2d(0x1e3e)||_0x2f0466==='*pause';}function _0x22f9fe(_0x45f21c){const _0x4413da=_0x4cbef6;return _0x45f21c===_0x4413da(0x1e3e);}function _0x35a47e(_0x4e06d0){return _0x4e06d0==='*pause';}function _0x482748(_0x5ccf2a){const _0xf29805=_0x4cbef6;return _0x5ccf2a===_0xf29805(0xb09)||_0x5ccf2a===_0xf29805(0x207d)||_0x5ccf2a===_0xf29805(0x85d)||_0x5ccf2a===_0xf29805(0xad4)||_0x3f65c0()[_0xf29805(0x1b36)](_0x5ccf2a);}function _0x300a3f(_0x4c7db3,_0x178c76){const _0x3f5280=_0x4cbef6;if(_0x178c76===_0x3f5280(0xe6)){if(_0x4c7db3[_0x178c76+_0x3f5280(0x74e)]!==_0x3f5280(0xb09))return _0x4c7db3[_0x178c76+_0x3f5280(0x74e)];if(_0x4c7db3[_0x178c76+'Pause'])return _0x4c7db3[_0x178c76+'Status']='pause',_0x3f5280(0x1e3e);return _0x3f5280(0xb09);}else{if(_0x4c7db3[_0x178c76+'Pause'])return _0x4c7db3[_0x178c76+_0x3f5280(0x74e)]='pause',_0x3f5280(0x1e3e);return _0x4c7db3[_0x178c76+_0x3f5280(0x74e)];}}function _0x55108d(_0x2f08fb){const _0x7fa323=_0x4cbef6;let _0x5d6d20='unknown';if(_0x3f65c0()['every']([_0x300a3f(_0x2f08fb,_0x7fa323(0xe6)),_0x300a3f(_0x2f08fb,'chat'),_0x300a3f(_0x2f08fb,_0x7fa323(0x56b)),_0x300a3f(_0x2f08fb,'openchannel'),_0x300a3f(_0x2f08fb,_0x7fa323(0x929)),_0x300a3f(_0x2f08fb,_0x7fa323(0xff9)),_0x300a3f(_0x2f08fb,_0x7fa323(0x22d9))],_0x89755f))_0x5d6d20=_0x7fa323(0x1e3e);else{if(_0x3f65c0()['some']([_0x300a3f(_0x2f08fb,'voice'),_0x300a3f(_0x2f08fb,_0x7fa323(0xa7f)),_0x300a3f(_0x2f08fb,_0x7fa323(0x56b)),_0x300a3f(_0x2f08fb,'openchannel'),_0x300a3f(_0x2f08fb,_0x7fa323(0x929)),_0x300a3f(_0x2f08fb,_0x7fa323(0xff9)),_0x300a3f(_0x2f08fb,'fax')],_0x89755f))_0x5d6d20=_0x7fa323(0x1127);else _0x3f65c0()[_0x7fa323(0xb14)]([_0x300a3f(_0x2f08fb,_0x7fa323(0xe6)),_0x300a3f(_0x2f08fb,_0x7fa323(0xa7f)),_0x300a3f(_0x2f08fb,_0x7fa323(0x56b)),_0x300a3f(_0x2f08fb,_0x7fa323(0x7d9)),_0x300a3f(_0x2f08fb,_0x7fa323(0x929)),_0x300a3f(_0x2f08fb,_0x7fa323(0xff9)),_0x300a3f(_0x2f08fb,_0x7fa323(0x22d9))],_0x482748)?_0x5d6d20=_0x7fa323(0xb09):_0x5d6d20=_0x7fa323(0x26a7);}_0x2f08fb['globalStatus']!==_0x5d6d20&&(_0x2f08fb[_0x7fa323(0x72b)]=_0x5d6d20,_0x2f08fb[_0x7fa323(0x5aa)]?(_0x2f08fb[_0x7fa323(0x5aa)]=![],_0x2f08fb[_0x7fa323(0xed1)]=_0x89755f(_0x5d6d20)?_0x3f65c0()[_0x7fa323(0x123)](_0x2deec6()(_0x2f08fb[_0x7fa323(0x192a)])[_0x7fa323(0x22b0)]('x')):_0x3f65c0()[_0x7fa323(0x727)]([_0x2f08fb[_0x7fa323(0x1dda)],_0x2f08fb[_0x7fa323(0x1a22)],_0x2f08fb[_0x7fa323(0x10cd)],_0x2f08fb[_0x7fa323(0x1f5c)],_0x2f08fb[_0x7fa323(0xadd)],_0x2f08fb['openchannelStatusTime'],_0x2f08fb[_0x7fa323(0x47a)]])):_0x2f08fb['globalStatusTime']=_0x3f65c0()[_0x7fa323(0x123)](_0x2deec6()()['format']('x')));}function _0x5d8566(_0x316bc6){const _0x387448=_0x4cbef6,_0x1afe10=_0x3f65c0()[_0x387448(0xd4d)](_0x32e81a[_0x387448(0x1a56)][_0x387448(0x206e)],'-')?_0x387448(0x2517):_0x387448(0x195);return _0x3f65c0()[_0x387448(0x979)](_0x316bc6,[_0x32e81a['query'][_0x387448(0x206e)]['replace']('-','')],[_0x1afe10]);}function _0x4f0af6(){const _0x5f365c=_0x4cbef6;_0x3fbd59&&(_0x4bbaf4[_0x5f365c(0x6c3)](_0x3fbd59),_0x3fbd59=null);}function _0x40594d(_0x2b2802,_0x78327){const _0x456168=_0x4cbef6;return _0x26fcc9[_0x456168(0xe7b)][_0x456168(0x18e1)]({'id':_0x2b2802['id']},{'screenrecording':_0x78327})[_0x456168(0x2945)]['catch'](function(_0x53b1ef){const _0x2b153e=_0x456168;_0x208d3b[_0x2b153e(0x1980)]({'title':_0x53b1ef['status']?'API:'+_0x53b1ef['status']+_0x2b153e(0x1315)+_0x53b1ef[_0x2b153e(0x167f)]:_0x2b153e(0x254f),'msg':_0x53b1ef[_0x2b153e(0x524)]?JSON[_0x2b153e(0x10bb)](_0x53b1ef[_0x2b153e(0x524)][_0x2b153e(0x7fd)]):_0x53b1ef[_0x2b153e(0xd5f)]()});});}_0x4a4360['$on']('$destroy',function(){const _0x468772=_0x4cbef6;_0x4ddcc1[_0x468772(0x1c5f)](_0x468772(0x17de)),_0x4ddcc1[_0x468772(0x1c5f)](_0x468772(0x324)),_0x4ddcc1[_0x468772(0x1c5f)](_0x468772(0x118c)),_0x4ddcc1['removeAllListeners'](_0x468772(0x198f)),_0x4f0af6();});}const _0x1ebd7a=_0x1ad269;;const _0x513fc7=_0x4acfac['p']+'src/js/modules/main/apps/motiondialer/views/ivrCampaigns/create/dialog.html/dialog.html';;_0x2a3dfc['$inject']=['$scope',_0x313a4d(0x1abe),_0x313a4d(0x10e8),'$document','$interval',_0x313a4d(0x163),_0x313a4d(0x1ccb),_0x313a4d(0x247f),_0x313a4d(0x279d),_0x313a4d(0x26b6),_0x313a4d(0x1366),_0x313a4d(0xa87)];function _0x2a3dfc(_0x18f487,_0x582516,_0x594fdd,_0x1bb54d,_0x1f103a,_0x177ce1,_0x2c07b7,_0x47e4ec,_0x5c25d1,_0x28a5ae,_0x34560e,_0x3313d8){const _0x3f4f11=_0x313a4d,_0x1a3d24=this,_0x4bab3c=['name','active',_0x3f4f11(0x114c),_0x3f4f11(0x7fd),_0x3f4f11(0x1e38),_0x3f4f11(0x1ff2),'SquareProjectId',_0x3f4f11(0x13c4),_0x3f4f11(0x1b77),_0x3f4f11(0x183d),_0x3f4f11(0xb0b),_0x3f4f11(0x121),_0x3f4f11(0xb17)];_0x1a3d24['currentUser']=_0x3313d8[_0x3f4f11(0xb12)](),_0x1a3d24[_0x3f4f11(0x51c)]=_0x2c07b7[_0x3f4f11(0x51c)],_0x1a3d24['campaigns']=_0x2c07b7?_0x3f65c0()[_0x3f4f11(0x194)](_0x2c07b7[_0x3f4f11(0x19c7)]?_0x2c07b7['rows']:[],'id'):{},_0x1a3d24[_0x3f4f11(0x163)]=_0x177ce1?_0x3f65c0()[_0x3f4f11(0x194)](_0x177ce1[_0x3f4f11(0x19c7)]?_0x177ce1['rows']:[],'id'):{},_0x1a3d24['userProfile']=_0x28a5ae,_0x1a3d24[_0x3f4f11(0x1366)]=_0x34560e&&_0x34560e['count']==0x1?_0x34560e[_0x3f4f11(0x19c7)][0x0]:null,_0x1a3d24['crudPermissions']=_0x3313d8[_0x3f4f11(0xe60)](_0x1a3d24[_0x3f4f11(0x1366)]?_0x1a3d24[_0x3f4f11(0x1366)][_0x3f4f11(0x2514)]:null),_0x1a3d24[_0x3f4f11(0x1a56)]={'sort':_0x3f4f11(0x12f2),'limit':0xa,'page':0x1},_0x1a3d24['success']=_0x48d718,_0x1a3d24[_0x3f4f11(0x519)]=_0x5c4fe2,_0x1a3d24[_0x3f4f11(0x1db0)]=_0x260110,_0x1a3d24[_0x3f4f11(0x20de)]=_0x1c81ab,_0x1a3d24['createOrEditIvrCampaign']=_0x43b662,_0x5c25d1[_0x3f4f11(0x13b7)](_0x3f4f11(0x1d5e),_0x1a3d24[_0x3f4f11(0x1db0)]),_0x1a3d24['interval']=_0x1f103a(function(){},0x3e7);function _0x1c81ab(){const _0x3616aa=_0x3f4f11;_0x3f65c0()[_0x3616aa(0x1a04)](_0x1a3d24[_0x3616aa(0x1ccb)],function(_0x1a61c5,_0x34be23){const _0x38e96c=_0x3616aa;_0x1a3d24[_0x38e96c(0x163)][_0x34be23]&&_0x3f65c0()[_0x38e96c(0x168d)](_0x1a61c5,_0x3f65c0()[_0x38e96c(0x40e)](_0x1a3d24[_0x38e96c(0x163)][_0x34be23],_0x4bab3c));});}function _0x260110(_0x4f7aa6){const _0x2e44ef=_0x3f4f11;_0x1a3d24[_0x2e44ef(0x1ccb)][_0x4f7aa6['id']]&&(_0x3f65c0()[_0x2e44ef(0x168d)](_0x1a3d24['campaigns'][_0x4f7aa6['id']],_0x3f65c0()[_0x2e44ef(0x40e)](_0x4f7aa6,_0x4bab3c)),_0x3f65c0()[_0x2e44ef(0x168d)](_0x1a3d24['rpcCampaigns'][_0x4f7aa6['id']],_0x3f65c0()[_0x2e44ef(0x40e)](_0x4f7aa6,_0x4bab3c)));}let _0x4d128c=!![],_0x741ab2=0x1;_0x18f487[_0x3f4f11(0x21e8)](_0x3f4f11(0x2669),function(_0x413afa,_0x39fea9){const _0x421860=_0x3f4f11;_0x4d128c?_0x582516(function(){_0x4d128c=![];}):(!_0x39fea9&&(_0x741ab2=_0x1a3d24[_0x421860(0x1a56)][_0x421860(0x844)]),_0x413afa!==_0x39fea9&&(_0x1a3d24['query'][_0x421860(0x844)]=0x1),!_0x413afa&&(_0x1a3d24['query'][_0x421860(0x844)]=_0x741ab2),_0x1a3d24['getCampaigns']());});function _0x48d718(_0x45cfa0){const _0x1d52f8=_0x3f4f11;_0x1a3d24[_0x1d52f8(0x51c)]=_0x45cfa0[_0x1d52f8(0x51c)],_0x1a3d24[_0x1d52f8(0x1ccb)]=_0x45cfa0?_0x3f65c0()[_0x1d52f8(0x194)](_0x45cfa0['rows']?_0x45cfa0[_0x1d52f8(0x19c7)]:[],'id'):{},_0x1c81ab();}function _0x5c4fe2(){const _0x21f4a1=_0x3f4f11;_0x1a3d24['query']['offset']=(_0x1a3d24[_0x21f4a1(0x1a56)][_0x21f4a1(0x844)]-0x1)*_0x1a3d24[_0x21f4a1(0x1a56)][_0x21f4a1(0x221e)],_0x3313d8[_0x21f4a1(0x23e0)]('admin')?_0x1a3d24[_0x21f4a1(0xb9c)]=_0x47e4ec[_0x21f4a1(0x8dc)]['get'](_0x1a3d24[_0x21f4a1(0x1a56)],_0x48d718)['$promise']:(_0x1a3d24['query']['id']=_0x1a3d24[_0x21f4a1(0x26b6)]['id'],_0x1a3d24['query'][_0x21f4a1(0x2146)]=_0x21f4a1(0x27f9),_0x1a3d24[_0x21f4a1(0xb9c)]=_0x47e4ec['userProfile']['getResources'](_0x1a3d24['query'],_0x48d718)['$promise']);}function _0x43b662(_0x3788af,_0x43387c){const _0x2eee36=_0x3f4f11;_0x594fdd[_0x2eee36(0x2615)]({'controller':_0x2eee36(0x6da),'controllerAs':'vm','templateUrl':_0x513fc7,'parent':angular[_0x2eee36(0x1853)](_0x1bb54d[_0x2eee36(0x2586)]),'targetEvent':_0x3788af,'clickOutsideToClose':!![],'locals':{'ivrCampaign':_0x43387c,'ivrCampaigns':_0x3f65c0()[_0x2eee36(0x81b)](_0x1a3d24[_0x2eee36(0x1ccb)]),'license':null,'setting':null,'crudPermissions':_0x1a3d24[_0x2eee36(0x2514)]}});}_0x18f487[_0x3f4f11(0x16ad)]('$destroy',function(){const _0xa5657b=_0x3f4f11;_0x5c25d1[_0xa5657b(0x1c5f)](_0xa5657b(0x1d5e)),_0x1a3d24[_0xa5657b(0x2765)]&&_0x1f103a[_0xa5657b(0x6c3)](_0x1a3d24[_0xa5657b(0x2765)]);});}const _0x37baea=_0x2a3dfc;;_0x4744e3[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1abe),_0x313a4d(0x10e8),_0x313a4d(0x23c0),_0x313a4d(0x1b32),_0x313a4d(0x18e),_0x313a4d(0x247f),_0x313a4d(0x279d),_0x313a4d(0x1ac0),_0x313a4d(0x1fe4),_0x313a4d(0x26b6),'userProfileSection','Auth'];function _0x4744e3(_0xb19054,_0x48756a,_0x3215e0,_0x58ff9a,_0x3509c1,_0x5ca93e,_0x4af7a6,_0x2a4962,_0x36fe33,_0xa8b19e,_0x5bbeb1,_0x55c5a8,_0x3eee6c){const _0x1057cd=_0x313a4d,_0x53f06d=this;_0x53f06d[_0x1057cd(0x2321)]=_0x3eee6c['getCurrentUser'](),_0x53f06d[_0x1057cd(0x23c0)]=_0x58ff9a||{'count':0x0,'rows':[]},_0x53f06d[_0x1057cd(0x1b32)]=_0x3509c1?_0x3f65c0()['keyBy'](_0x3509c1[_0x1057cd(0x19c7)]?_0x3509c1[_0x1057cd(0x19c7)]:[],_0x1057cd(0x19eb)):{},_0x53f06d['rpcVoiceQueuesChannelsTmp']=_0x5ca93e?_0x3f65c0()[_0x1057cd(0x194)](_0x5ca93e['rows']?_0x3f65c0()[_0x1057cd(0x1dd6)](_0x5ca93e[_0x1057cd(0x19c7)],{'type':_0x1057cd(0xc9c)}):[],_0x1057cd(0x4f8)):{},_0x53f06d[_0x1057cd(0x18e)]={},_0x53f06d['userProfile']=_0x5bbeb1,_0x53f06d[_0x1057cd(0x1366)]=_0x55c5a8&&_0x55c5a8['count']==0x1?_0x55c5a8[_0x1057cd(0x19c7)][0x0]:null,_0x53f06d[_0x1057cd(0x2514)]=_0x3eee6c['parseCrudPermissions'](_0x53f06d['userProfileSection']?_0x53f06d[_0x1057cd(0x1366)][_0x1057cd(0x2514)]:null),_0x53f06d['queryChannels']={'limit':0xa,'page':0x1},_0x53f06d['getSize']=_0x2bcf91,_0x53f06d[_0x1057cd(0x20de)]=_0x218cc9,_0x53f06d['onSave']=_0x504013,_0x53f06d['onRemove']=_0x53f868,_0x53f06d['hangup']=_0x5b5772,_0x53f06d[_0x1057cd(0x1309)]=_0x1b4f2f,_0x53f06d[_0x1057cd(0x1bb3)]=_0x4355c8,_0x2a4962['on']('voice_queue_channel:save',_0x53f06d[_0x1057cd(0x1db0)]),_0x2a4962['on'](_0x1057cd(0xeb8),_0x53f06d[_0x1057cd(0xe7)]);function _0x2bcf91(_0x5121c4){const _0x39f048=_0x1057cd;return _0x3f65c0()[_0x39f048(0x4cc)](_0x5121c4);}function _0x218cc9(){const _0xe89d9f=_0x1057cd;_0x3f65c0()[_0xe89d9f(0x1a04)](_0x53f06d[_0xe89d9f(0x2160)],function(_0x51a741,_0x32be99){const _0x3de039=_0xe89d9f;_0x3f65c0()[_0x3de039(0xc84)](_0x53f06d[_0x3de039(0x1b32)],{'name':_0x51a741['name']})&&(_0x53f06d[_0x3de039(0x18e)][_0x32be99]=_0x51a741);});}function _0x504013(_0x2e13b5){const _0x5443e0=_0x1057cd;_0x2e13b5[_0x5443e0(0x1142)]===_0x5443e0(0xc9c)&&(_0x3f65c0()['find'](_0x53f06d[_0x5443e0(0x1b32)],{'name':_0x2e13b5[_0x5443e0(0x19eb)]})&&(_0x53f06d[_0x5443e0(0x18e)][_0x2e13b5['uniqueid']]=_0x2e13b5));}function _0x53f868(_0x1536e0){const _0x17dbb5=_0x1057cd;_0x53f06d[_0x17dbb5(0x18e)][_0x1536e0[_0x17dbb5(0x4f8)]]&&delete _0x53f06d[_0x17dbb5(0x18e)][_0x1536e0['uniqueid']];}function _0x5b5772(_0x2889b1){const _0x3b9aeb=_0x1057cd;return _0x4af7a6[_0x3b9aeb(0x1af7)][_0x3b9aeb(0xdae)]({'uniqueid':_0x2889b1})['$promise'][_0x3b9aeb(0x146b)](function(_0x3a0bb8){const _0x3d0ee0=_0x3b9aeb;_0xa8b19e[_0x3d0ee0(0x1c75)]({'title':'Channel\x20'+_0x2889b1+_0x3d0ee0(0x1419),'msg':_0x3a0bb8[_0x3d0ee0(0x7fd)]||''});})[_0x3b9aeb(0x129e)](function(_0x16b670){const _0xc0a3a6=_0x3b9aeb;_0xa8b19e[_0xc0a3a6(0x1980)]({'title':_0x16b670[_0xc0a3a6(0x107b)]+_0xc0a3a6(0x1315)+_0x16b670[_0xc0a3a6(0x167f)],'msg':JSON[_0xc0a3a6(0x10bb)](_0x16b670[_0xc0a3a6(0x524)])||_0x16b670['message'][_0xc0a3a6(0xb47)]('\x20')});});}function _0x1b4f2f(_0x35b9bd,_0x53b790,_0x269b7){const _0x1520e1=_0x1057cd;return _0x4af7a6[_0x1520e1(0x1af7)][_0x1520e1(0x1741)]({'uniqueid':_0x35b9bd,'exten':_0x53b790,'context':_0x269b7})[_0x1520e1(0x2945)]['then'](function(_0x1c8f58){const _0x5d794a=_0x1520e1;_0xa8b19e[_0x5d794a(0x1c75)]({'title':_0x5d794a(0x26c4)+_0x35b9bd+_0x5d794a(0x16e),'msg':_0x1c8f58[_0x5d794a(0x7fd)]||''});})[_0x1520e1(0x129e)](function(_0x1714a8){const _0x5a1ccf=_0x1520e1;_0xa8b19e['error']({'title':_0x1714a8[_0x5a1ccf(0x107b)]+'\x20-\x20'+_0x1714a8[_0x5a1ccf(0x167f)],'msg':JSON[_0x5a1ccf(0x10bb)](_0x1714a8[_0x5a1ccf(0x524)])||_0x1714a8[_0x5a1ccf(0x7fd)][_0x5a1ccf(0xb47)]('\x20')});});}function _0x4355c8(_0x150e0f,_0x174b8c){const _0x7872be=_0x1057cd,_0xa433ed=_0x3215e0[_0x7872be(0x212a)]()[_0x7872be(0x1189)](_0x7872be(0x1d8c))[_0x7872be(0x1a02)](_0x7872be(0x27b7))['targetEvent'](_0x150e0f)['ok']('Ok')[_0x7872be(0x6c3)](_0x7872be(0xcf0));return _0x3215e0['show'](_0xa433ed)[_0x7872be(0x146b)](function(_0x34ace0){const _0x43b03b=_0x7872be;return _0x4af7a6[_0x43b03b(0x1af7)][_0x43b03b(0x1741)]({'uniqueid':_0x174b8c,'exten':_0x34ace0})['$promise'];})[_0x7872be(0x146b)](function(_0x45ed19){const _0x4aba81=_0x7872be;_0xa8b19e[_0x4aba81(0x1c75)]({'title':_0x4aba81(0x26c4)+_0x174b8c+_0x4aba81(0x16e),'msg':_0x45ed19['message']||''});})['catch'](function(_0xb82514){const _0x2a74c2=_0x7872be;_0xa8b19e[_0x2a74c2(0x1980)]({'title':_0xb82514['status']+_0x2a74c2(0x1315)+_0xb82514[_0x2a74c2(0x167f)],'msg':JSON[_0x2a74c2(0x10bb)](_0xb82514[_0x2a74c2(0x524)])||_0xb82514[_0x2a74c2(0x7fd)][_0x2a74c2(0xb47)]('\x20')});});}_0xb19054[_0x1057cd(0x16ad)](_0x1057cd(0x116f),function(){const _0x527893=_0x1057cd;_0x2a4962[_0x527893(0x1c5f)]('voice_queue_channel:save'),_0x2a4962[_0x527893(0x1c5f)]('voice_queue_channel:remove');});}const _0x2a3aeb=_0x4744e3;;_0x419a87[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1abe),_0x313a4d(0xa0a),_0x313a4d(0x1b32),_0x313a4d(0x21af),_0x313a4d(0x247f),_0x313a4d(0x279d),_0x313a4d(0x26b6),_0x313a4d(0x1366),_0x313a4d(0xa87)];function _0x419a87(_0x5aff66,_0x1a1043,_0x5f2f29,_0x3b23b6,_0x40631f,_0x85fcec,_0x4c58ba,_0x12db55,_0x14f560,_0x25804d){const _0x4c3dae=_0x313a4d,_0x3e494a=this,_0x55fa1c=[_0x4c3dae(0x2877),_0x4c3dae(0x23c3),'sumHoldTime',_0x4c3dae(0x14fa),_0x4c3dae(0x2761),'outboundNoAnswerCallsDay','outboundBusyCallsDay',_0x4c3dae(0x23db),'outboundNoSuchCallsDay','outboundUnknownCallsDay',_0x4c3dae(0xcb5),_0x4c3dae(0x3d7),_0x4c3dae(0x230a),_0x4c3dae(0x1196),_0x4c3dae(0x176f),_0x4c3dae(0x53e),'outboundRejectCallsDay'];_0x3e494a['count']=_0x3b23b6[_0x4c3dae(0x51c)],_0x3e494a[_0x4c3dae(0x1b32)]=_0x3b23b6?_0x3f65c0()[_0x4c3dae(0x194)](_0x3b23b6[_0x4c3dae(0x19c7)]?_0x3b23b6[_0x4c3dae(0x19c7)]:[],'id'):{},_0x3e494a['rpcQueues']=_0x40631f?_0x3f65c0()['keyBy'](_0x40631f['rows']?_0x40631f['rows']:[],'id'):{},_0x3e494a[_0x4c3dae(0x26b6)]=_0x12db55,_0x3e494a['userProfileSection']=_0x14f560&&_0x14f560[_0x4c3dae(0x51c)]==0x1?_0x14f560[_0x4c3dae(0x19c7)][0x0]:null,_0x3e494a[_0x4c3dae(0x2514)]=_0x25804d[_0x4c3dae(0xe60)](_0x3e494a[_0x4c3dae(0x1366)]?_0x3e494a[_0x4c3dae(0x1366)]['crudPermissions']:null);_0x25804d[_0x4c3dae(0x23e0)](_0x4c3dae(0x174b))?_0x3e494a['query']={'type':_0x4c3dae(0xc9c),'fields':_0x4c3dae(0x7a7),'sort':'-updatedAt','limit':0xa,'page':0x1}:_0x3e494a[_0x4c3dae(0x1a56)]={'id':_0x25804d['getCurrentUser']()['id'],'channel':_0x4c3dae(0xe6),'type':_0x4c3dae(0xc9c),'fields':_0x4c3dae(0x7a7),'sort':_0x4c3dae(0x12f2),'limit':0xa,'page':0x1};_0x3e494a['success']=_0x49de43,_0x3e494a['getQueues']=_0x5a7016,_0x3e494a[_0x4c3dae(0x1db0)]=_0x567082,_0x3e494a[_0x4c3dae(0x20de)]=_0x1d22ff,_0x4c58ba[_0x4c3dae(0x13b7)](_0x4c3dae(0x101d),_0x3e494a['onSave']),_0x3e494a[_0x4c3dae(0x2765)]=_0x5f2f29(function(){},0x3e7);function _0x1d22ff(){const _0x2f2491=_0x4c3dae;_0x3f65c0()['forIn'](_0x3e494a[_0x2f2491(0x1b32)],function(_0x44ab08,_0x7d6b7a){const _0x41f80c=_0x2f2491;_0x3e494a['rpcQueues'][_0x7d6b7a]&&_0x3f65c0()[_0x41f80c(0x168d)](_0x44ab08,_0x3f65c0()[_0x41f80c(0x40e)](_0x3e494a['rpcQueues'][_0x7d6b7a],_0x55fa1c));});}function _0x567082(_0x5e5bbd){const _0x1872a9=_0x4c3dae;_0x3e494a[_0x1872a9(0x1b32)][_0x5e5bbd['id']]&&_0x3f65c0()[_0x1872a9(0x168d)](_0x3e494a['queues'][_0x5e5bbd['id']],_0x3f65c0()[_0x1872a9(0x40e)](_0x5e5bbd,_0x55fa1c));}let _0x12754f=!![],_0x5eab5a=0x1;_0x5aff66[_0x4c3dae(0x21e8)](_0x4c3dae(0x2669),function(_0x392cd3,_0x374163){const _0x3c6486=_0x4c3dae;_0x12754f?_0x1a1043(function(){_0x12754f=![];}):(!_0x374163&&(_0x5eab5a=_0x3e494a[_0x3c6486(0x1a56)][_0x3c6486(0x844)]),_0x392cd3!==_0x374163&&(_0x3e494a['query']['page']=0x1),!_0x392cd3&&(_0x3e494a[_0x3c6486(0x1a56)][_0x3c6486(0x844)]=_0x5eab5a),_0x3e494a[_0x3c6486(0xc53)]());});function _0x49de43(_0xce2cac){const _0x4a4f6f=_0x4c3dae;_0x3e494a['count']=_0xce2cac[_0x4a4f6f(0x51c)],_0x3e494a['queues']=_0xce2cac?_0x3f65c0()['keyBy'](_0xce2cac['rows']?_0xce2cac['rows']:[],'id'):{},_0x1d22ff();}function _0x5a7016(){const _0x270add=_0x4c3dae;_0x3e494a[_0x270add(0x1a56)]['offset']=(_0x3e494a[_0x270add(0x1a56)][_0x270add(0x844)]-0x1)*_0x3e494a[_0x270add(0x1a56)]['limit'],_0x25804d[_0x270add(0x23e0)](_0x270add(0x174b))?_0x3e494a[_0x270add(0xb9c)]=_0x85fcec['voiceQueue'][_0x270add(0x16b4)](_0x3e494a[_0x270add(0x1a56)],_0x49de43)[_0x270add(0x2945)]:(_0x3e494a['query']['id']=_0x3e494a['userProfile']['id'],_0x3e494a[_0x270add(0x1a56)][_0x270add(0x2146)]=_0x270add(0x15d6),_0x3e494a[_0x270add(0xb9c)]=_0x85fcec[_0x270add(0x26b6)]['getResources'](_0x3e494a[_0x270add(0x1a56)],_0x49de43)[_0x270add(0x2945)]);}_0x5aff66['$on'](_0x4c3dae(0x116f),function(){const _0x499e96=_0x4c3dae;_0x4c58ba[_0x499e96(0x1c5f)](_0x499e96(0x101d)),_0x3e494a[_0x499e96(0x2765)]&&_0x5f2f29[_0x499e96(0x6c3)](_0x3e494a[_0x499e96(0x2765)]);});}const _0x437e89=_0x419a87;;const _0x403428=_0x4acfac['p']+_0x313a4d(0xb39);;const _0x40fdaf=_0x4acfac['p']+_0x313a4d(0x500);;const _0x4619e2=_0x4acfac['p']+_0x313a4d(0x1e87);;_0x23a7ee[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),'$timeout',_0x313a4d(0x10e8),'$q',_0x313a4d(0x4d8),_0x313a4d(0xa0a),_0x313a4d(0x1b32),_0x313a4d(0x21af),_0x313a4d(0x247f),_0x313a4d(0x279d),_0x313a4d(0x1fe4),_0x313a4d(0x26b6),'userProfileSection',_0x313a4d(0xa87)];function _0x23a7ee(_0x37b834,_0x24cc2b,_0x16eb9d,_0x5b1248,_0x514e73,_0x596eb4,_0x4823fd,_0xfd05c0,_0x1cd644,_0x107f25,_0x241c6c,_0x53ccde,_0x35bccd,_0x48476c){const _0x3aec47=_0x313a4d,_0x166472=this,_0x2674c3=[_0x3aec47(0x2398),'available',_0x3aec47(0x12a3),_0x3aec47(0x10ed),_0x3aec47(0x166f),_0x3aec47(0x1e38),'message',_0x3aec47(0x1095),_0x3aec47(0x1a69),'Trunk','paused',_0x3aec47(0x16fb),_0x3aec47(0x1816),_0x3aec47(0x21f4),_0x3aec47(0xbc1),_0x3aec47(0x123f),_0x3aec47(0x585),'dialPredictiveInterval','dialPredictiveIntervalMaxThreshold','dialPredictiveIntervalMinThreshold','predictiveIntervalAvailable','predictiveIntervalTotalCalls',_0x3aec47(0x27bc),'predictiveIntervalDroppedCallsTimeout',_0x3aec47(0x321),_0x3aec47(0xfd),_0x3aec47(0x27cc)];_0x166472['currentUser']=_0x48476c[_0x3aec47(0xb12)](),_0x166472[_0x3aec47(0x51c)]=_0x4823fd['count']?_0x4823fd[_0x3aec47(0x51c)]:0x0,_0x166472[_0x3aec47(0x1b32)]=_0x4823fd?_0x3f65c0()[_0x3aec47(0x194)](_0x4823fd[_0x3aec47(0x19c7)]?_0x4823fd[_0x3aec47(0x19c7)]:[],'id'):{},_0x166472[_0x3aec47(0x21af)]=_0xfd05c0?_0x3f65c0()['keyBy'](_0xfd05c0[_0x3aec47(0x19c7)]?_0xfd05c0[_0x3aec47(0x19c7)]:[],'id'):{},_0x166472[_0x3aec47(0x26b6)]=_0x53ccde,_0x166472[_0x3aec47(0x1366)]=_0x35bccd&&_0x35bccd['count']==0x1?_0x35bccd[_0x3aec47(0x19c7)][0x0]:null,_0x166472['crudPermissions']=_0x48476c[_0x3aec47(0xe60)](_0x166472[_0x3aec47(0x1366)]?_0x166472[_0x3aec47(0x1366)][_0x3aec47(0x2514)]:null);_0x48476c['hasRole'](_0x3aec47(0x174b))?_0x166472[_0x3aec47(0x1a56)]={'type':_0x3aec47(0xc9c),'sort':_0x3aec47(0x12f2),'limit':0xa,'page':0x1}:_0x166472[_0x3aec47(0x1a56)]={'id':_0x166472[_0x3aec47(0x2321)]['id'],'channel':_0x3aec47(0xe6),'type':_0x3aec47(0xc9c),'sort':_0x3aec47(0x12f2),'limit':0xa,'page':0x1};_0x166472[_0x3aec47(0x1c75)]=_0x53f4b9,_0x166472['getQueues']=_0x3e1b3a,_0x166472[_0x3aec47(0x28ca)]=_0x5b75bb,_0x166472[_0x3aec47(0x6f7)]=_0x1903cb,_0x166472['agentAdd']=_0x2be6a4,_0x166472['updateQueue']=_0x237220,_0x166472[_0x3aec47(0x1db0)]=_0x2f747f,_0x166472[_0x3aec47(0x285f)]=_0x34c648,_0x166472['onPause']=_0x571a4a,_0x166472[_0x3aec47(0x1c6c)]=_0x588177,_0x166472[_0x3aec47(0x600)]=_0x109457,_0x166472['$onInit']=_0x2b53ae,_0x166472['order']=[],_0x3f65c0()[_0x3aec47(0x1a04)](_0x166472['queues'],function(_0xc724e7){const _0x5a5a23=_0x3aec47;_0x166472[_0x5a5a23(0x206e)][_0x5a5a23(0x1f47)](_0xc724e7['id']);}),_0x107f25[_0x3aec47(0x13b7)](_0x3aec47(0x101d),_0x166472[_0x3aec47(0x1db0)]),_0x166472['interval']=_0x596eb4(function(){},0x3e7),_0x107f25['on'](_0x3aec47(0x26cb),_0x166472['onSaveMember']),_0x107f25['on'](_0x3aec47(0x324),_0x166472[_0x3aec47(0x1028)]),_0x107f25['on'](_0x3aec47(0x1d3e),_0x166472[_0x3aec47(0x600)]),_0x107f25['on'](_0x3aec47(0x109d),_0x166472[_0x3aec47(0x1c6c)]);function _0x2b53ae(){const _0x47430b=_0x3aec47,_0x5d2d8c=[];return _0x3f65c0()['forIn'](_0x166472[_0x47430b(0x1b32)],function(_0x59202b,_0x1c6b7d){const _0x2f9f21=_0x47430b;_0x59202b[_0x2f9f21(0x1e3d)]=0x0,_0x59202b['loggedInDb']=0x0,_0x166472[_0x2f9f21(0x1b32)][_0x1c6b7d][_0x2f9f21(0x23c0)]={},_0x5d2d8c[_0x2f9f21(0x1f47)](_0x1cd644['voiceQueue'][_0x2f9f21(0x24c3)]({'id':_0x1c6b7d})[_0x2f9f21(0x2945)]),_0x166472[_0x2f9f21(0x21af)][_0x1c6b7d]&&_0x3f65c0()[_0x2f9f21(0x168d)](_0x59202b,_0x3f65c0()['pick'](_0x166472[_0x2f9f21(0x21af)][_0x1c6b7d],_0x2674c3));}),_0x5b1248[_0x47430b(0x1be2)](_0x5d2d8c)[_0x47430b(0x146b)](function(_0x547071){const _0x573145=_0x47430b;for(let _0x17dece=0x0;_0x17dece<_0x547071['length'];_0x17dece+=0x1){for(let _0x30dd17=0x0;_0x30dd17<_0x547071[_0x17dece][_0x573145(0x19c7)][_0x573145(0x402)];_0x30dd17++){_0x547071[_0x17dece][_0x573145(0x19c7)][_0x30dd17][_0x573145(0x1e3d)]&&_0x166472[_0x573145(0x1b32)][_0x547071[_0x17dece]['rows'][_0x30dd17][_0x573145(0x6ed)]]['paused']++,_0x166472[_0x573145(0x1b32)][_0x547071[_0x17dece][_0x573145(0x19c7)][_0x30dd17]['VoiceQueueId']][_0x573145(0x1899)]++,_0x166472[_0x573145(0x1b32)][_0x547071[_0x17dece]['rows'][_0x30dd17][_0x573145(0x6ed)]][_0x573145(0x23c0)][_0x547071[_0x17dece][_0x573145(0x19c7)][_0x30dd17]['UserId']]=_0x547071[_0x17dece]['rows'][_0x30dd17][_0x573145(0x6ed)];}}})[_0x47430b(0x129e)](function(_0x2e6839){const _0x6ef9bc=_0x47430b;console[_0x6ef9bc(0x1980)](_0x2e6839);});}function _0x2f747f(_0x53e42e){const _0x329af9=_0x3aec47;_0x166472[_0x329af9(0x1b32)][_0x53e42e['id']]&&(_0x3f65c0()['merge'](_0x166472['queues'][_0x53e42e['id']],_0x3f65c0()[_0x329af9(0x40e)](_0x53e42e,_0x2674c3)),_0x3f65c0()[_0x329af9(0x1b36)](_0x53e42e['startPredictive'])&&(_0x166472['queues'][_0x53e42e['id']][_0x329af9(0x16fb)]=undefined));}function _0x34c648(_0x5f4843){const _0x3e98a2=_0x3aec47;_0x166472[_0x3e98a2(0x1b32)][_0x5f4843[_0x3e98a2(0x160b)]]&&_0x166472[_0x3e98a2(0x1b32)][_0x5f4843[_0x3e98a2(0x160b)]][_0x3e98a2(0x1899)]++;}function _0x571a4a(_0x303b38){const _0x21ae6f=_0x3aec47;console[_0x21ae6f(0x1a74)]('onPause',_0x303b38);if(_0x303b38[_0x21ae6f(0x211c)])_0x3f65c0()[_0x21ae6f(0x1a04)](_0x166472[_0x21ae6f(0x1b32)],function(_0x3ea3b2){const _0x10d21a=_0x21ae6f;_0x3ea3b2['agents'][_0x303b38['id']]&&(_0x3ea3b2[_0x10d21a(0x1e3d)]+=0x1,console[_0x10d21a(0x1a74)](_0x10d21a(0x1e3e)));});else!_0x303b38[_0x21ae6f(0x211c)]&&_0x3f65c0()['forIn'](_0x166472[_0x21ae6f(0x1b32)],function(_0x22c1d1){const _0x2ac2e6=_0x21ae6f;_0x22c1d1[_0x2ac2e6(0x23c0)][_0x303b38['id']]&&(_0x22c1d1[_0x2ac2e6(0x1e3d)]>0x0&&(_0x22c1d1[_0x2ac2e6(0x1e3d)]-=0x1,console[_0x2ac2e6(0x1a74)](_0x2ac2e6(0x974))));});}function _0x588177(_0x42430b){const _0x1e00df=_0x3aec47;console['log'](_0x1e00df(0x414),_0x42430b),_0x166472[_0x1e00df(0x1b32)][_0x42430b[_0x1e00df(0x6ed)]]&&(_0x166472[_0x1e00df(0x1b32)][_0x42430b[_0x1e00df(0x6ed)]][_0x1e00df(0x1899)]+=0x1,_0x166472['queues'][_0x42430b[_0x1e00df(0x6ed)]][_0x1e00df(0x23c0)][_0x42430b[_0x1e00df(0xea2)]]=_0x42430b[_0x1e00df(0x6ed)]);}function _0x109457(_0x2492ee){const _0x4da9fb=_0x3aec47;console[_0x4da9fb(0x1a74)](_0x4da9fb(0x600),_0x2492ee),_0x166472[_0x4da9fb(0x1b32)][_0x2492ee[_0x4da9fb(0x6ed)]]&&_0x166472['queues'][_0x2492ee['VoiceQueueId']][_0x4da9fb(0x1899)]>0x0&&(_0x166472[_0x4da9fb(0x1b32)][_0x2492ee[_0x4da9fb(0x6ed)]][_0x4da9fb(0x1899)]-=0x1,delete _0x166472[_0x4da9fb(0x1b32)][_0x2492ee[_0x4da9fb(0x6ed)]][_0x4da9fb(0x23c0)][_0x2492ee['UserId']]);}let _0x2af032=!![],_0x516b1c=0x1;_0x37b834[_0x3aec47(0x21e8)](_0x3aec47(0x2669),function(_0x40f4bb,_0x3bf90e){const _0x40fd7c=_0x3aec47;_0x2af032?_0x24cc2b(function(){_0x2af032=![];}):(!_0x3bf90e&&(_0x516b1c=_0x166472[_0x40fd7c(0x1a56)][_0x40fd7c(0x844)]),_0x40f4bb!==_0x3bf90e&&(_0x166472[_0x40fd7c(0x1a56)][_0x40fd7c(0x844)]=0x1),!_0x40f4bb&&(_0x166472[_0x40fd7c(0x1a56)][_0x40fd7c(0x844)]=_0x516b1c),_0x166472[_0x40fd7c(0xc53)]());});function _0x53f4b9(_0x529dfa){const _0x4af21e=_0x3aec47;_0x166472['count']=_0x529dfa[_0x4af21e(0x51c)],_0x166472[_0x4af21e(0x1b32)]=_0x529dfa?_0x3f65c0()[_0x4af21e(0x194)](_0x529dfa['rows']?_0x529dfa[_0x4af21e(0x19c7)]:[],'id'):{};if(_0x529dfa[_0x4af21e(0x19c7)]){_0x166472['order']=[];for(let _0x4e20c4=0x0;_0x4e20c4<_0x529dfa['rows'][_0x4af21e(0x402)];_0x4e20c4++){_0x166472[_0x4af21e(0x206e)][_0x4af21e(0x1f47)](_0x529dfa[_0x4af21e(0x19c7)][_0x4e20c4]['id']);}}_0x2b53ae();}function _0x3e1b3a(){const _0xbd0366=_0x3aec47;_0x166472[_0xbd0366(0x1a56)][_0xbd0366(0x145d)]=(_0x166472['query']['page']-0x1)*_0x166472[_0xbd0366(0x1a56)][_0xbd0366(0x221e)],_0x48476c['hasRole']('admin')?_0x166472[_0xbd0366(0xb9c)]=_0x1cd644['voiceQueue'][_0xbd0366(0x16b4)](_0x166472['query'],_0x53f4b9)[_0xbd0366(0x2945)]:(_0x166472[_0xbd0366(0x1a56)]['id']=_0x166472[_0xbd0366(0x26b6)]['id'],_0x166472[_0xbd0366(0x1a56)]['section']='QueueCampaigns',_0x166472[_0xbd0366(0xb9c)]=_0x1cd644[_0xbd0366(0x26b6)]['getResources'](_0x166472[_0xbd0366(0x1a56)],_0x53f4b9)[_0xbd0366(0x2945)]);}function _0x5b75bb(_0x599e71,_0x3a4d84){const _0x1c04ce=_0x3aec47;_0x16eb9d[_0x1c04ce(0x2615)]({'controller':_0x1c04ce(0x2573),'controllerAs':'vm','templateUrl':_0x403428,'parent':angular['element'](_0x514e73[_0x1c04ce(0x2586)]),'targetEvent':_0x599e71,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x3a4d84,'queueCampaigns':_0x3f65c0()[_0x1c04ce(0x81b)](_0x166472[_0x1c04ce(0x1b32)]),'license':null,'setting':null,'crudPermissions':_0x166472[_0x1c04ce(0x2514)]}});}function _0x1903cb(_0x8a82c5,_0x427d61){const _0x3933f4=_0x3aec47;_0x16eb9d[_0x3933f4(0x2615)]({'controller':_0x3933f4(0xe2f),'controllerAs':'vm','templateUrl':_0x40fdaf,'parent':angular[_0x3933f4(0x1853)](_0x514e73[_0x3933f4(0x2586)]),'targetEvent':_0x8a82c5,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x427d61}});}function _0x2be6a4(_0xc2cbf1,_0x571d4a){const _0x1933de=_0x3aec47;_0x16eb9d['show']({'controller':_0x1933de(0x86a),'controllerAs':'vm','templateUrl':_0x4619e2,'parent':angular[_0x1933de(0x1853)](_0x514e73[_0x1933de(0x2586)]),'targetEvent':_0xc2cbf1,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x571d4a,'queueCampaigns':_0x166472[_0x1933de(0x1b32)]?_0x166472[_0x1933de(0x1b32)][_0x1933de(0x19c7)]:[],'realtime':!![],'crudPermissions':_0x166472[_0x1933de(0x2514)]}});}function _0x237220(_0x370681){const _0x233499=_0x3aec47;return _0x1cd644['voiceQueue']['update'](_0x370681)[_0x233499(0x2945)][_0x233499(0x146b)](function(){const _0x530c57=_0x233499;_0x241c6c[_0x530c57(0x1c75)]({'title':_0x530c57(0x5f1),'msg':_0x370681[_0x530c57(0x19eb)]?_0x370681[_0x530c57(0x19eb)]+'\x20has\x20been\x20updated!':''});})[_0x233499(0x129e)](function(_0x2bb32c){const _0x3dc040=_0x233499;_0x241c6c[_0x3dc040(0x1980)]({'title':'Error\x20creating\x20queue!','msg':_0x2bb32c[_0x3dc040(0x7fd)]});});}_0x37b834[_0x3aec47(0x16ad)](_0x3aec47(0x116f),function(){const _0x1a4d4e=_0x3aec47;_0x107f25[_0x1a4d4e(0x1c5f)](_0x1a4d4e(0x101d)),_0x166472['interval']&&_0x596eb4[_0x1a4d4e(0x6c3)](_0x166472[_0x1a4d4e(0x2765)]),_0x107f25[_0x1a4d4e(0x1c5f)]('userVoiceQueueRt:save'),_0x107f25[_0x1a4d4e(0x1c5f)](_0x1a4d4e(0x324)),_0x107f25[_0x1a4d4e(0x1c5f)](_0x1a4d4e(0x1d3e)),_0x107f25[_0x1a4d4e(0x1c5f)](_0x1a4d4e(0x109d));});}const _0x35af3b=_0x23a7ee;;_0x3deba3[_0x313a4d(0x11c2)]=[_0x313a4d(0x10e8),'$interval',_0x313a4d(0x1f0f)];function _0x3deba3(_0x237b0f,_0x509ab3,_0x2c068d){const _0x45f54e=_0x313a4d,_0x558f3f=this;_0x558f3f[_0x45f54e(0x1f0f)]=_0x2c068d,_0x558f3f[_0x45f54e(0x20d6)]=_0x13799d,_0x558f3f[_0x45f54e(0x26f5)]=_0x249edb,_0x558f3f[_0x45f54e(0x13f3)]=_0x25effb;function _0x13799d(_0x5816f0,_0x582f35){const _0x5d51d8=_0x45f54e;return _0x2deec6()(_0x5816f0)[_0x5d51d8(0x387)]('m',_0x582f35)['format']('HH:mm:ss');}function _0x249edb(_0x14647d){const _0x6b879e=_0x45f54e;return _0x2deec6()(_0x14647d)['format'](_0x6b879e(0x14e));}function _0x25effb(){const _0x211c9f=_0x45f54e;_0x237b0f[_0x211c9f(0x2458)]();}}const _0xc6607b=_0x3deba3;;function _0x32b247(){const _0x2d24f6=_0x313a4d;return{'status':{'registered':_0x2d24f6(0xdf4),'unregistered':_0x2d24f6(0x4c7),'lagged':'red-300-fg\x20icon-close-circle','reachable':_0x2d24f6(0xdf4),'unreachable':'red-300-fg\x20icon-close-circle','unknown':_0x2d24f6(0xc4b)},'state':{'unknown':_0x2d24f6(0x1fd7),'not_inuse':'green-300-fg\x20icon-phone-hangup','inuse':_0x2d24f6(0x255c),'busy':_0x2d24f6(0xb3c),'invalid':_0x2d24f6(0x1fd7),'unavailable':_0x2d24f6(0x1fd7),'ringing':'blue-300-fg\x20icon-phone-incoming','ringinuse':'blue-300-fg\x20icon-phone-incoming','onhold':'blue-300-fg\x20icon-phone-paused'},'channelStatus':{'ring':_0x2d24f6(0x1172),'up':_0x2d24f6(0x1668),'hangup':_0x2d24f6(0x135d)},'channelStatusOut':{'ring':_0x2d24f6(0x1a13),'up':_0x2d24f6(0x1668),'hangup':'red-300-fg\x20icon-phone-hangup'}};}const _0x26990b=_0x32b247;;_0xdd424a[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1862),_0x313a4d(0x279d)];function _0xdd424a(_0x4dbc38,_0x1080d6,_0x4e9d84){const _0x1bc52a=_0x313a4d,_0x57ada1=this;_0x4e9d84['disconnect'](),_0x4e9d84[_0x1bc52a(0x2e3)](),_0x57ada1['selectedTab']=0x0;switch(_0x1080d6[_0x1bc52a(0x2d7)][_0x1bc52a(0x19eb)]){case _0x1bc52a(0x1438):_0x57ada1[_0x1bc52a(0x1b09)]=0x0;break;case _0x1bc52a(0x181f):_0x57ada1[_0x1bc52a(0x1b09)]=0x1;break;case _0x1bc52a(0x1952):_0x57ada1[_0x1bc52a(0x1b09)]=0x2;break;case'app.motiondialer.realtime.abandonedcalls':_0x57ada1[_0x1bc52a(0x1b09)]=0x3;break;case _0x1bc52a(0x1617):_0x57ada1['selectedTab']=0x4;break;case'app.motiondialer.realtime.ivr_campaigns':_0x57ada1[_0x1bc52a(0x1b09)]=0x5;break;default:_0x57ada1[_0x1bc52a(0x1b09)]=0x0,_0x1080d6['go'](_0x1bc52a(0x1438));}_0x4dbc38[_0x1bc52a(0x21e8)]('vm.selectedTab',function(_0x47b5d3,_0x48697a){const _0x25dc86=_0x1bc52a;if(_0x47b5d3!==_0x48697a)switch(_0x47b5d3){case 0x0:_0x1080d6['go']('app.motiondialer.realtime.agents');break;case 0x1:_0x1080d6['go'](_0x25dc86(0x181f));break;case 0x2:_0x1080d6['go'](_0x25dc86(0x1952));break;case 0x3:_0x1080d6['go']('app.motiondialer.realtime.abandonedcalls');break;case 0x4:_0x1080d6['go'](_0x25dc86(0x1617));break;case 0x5:_0x1080d6['go'](_0x25dc86(0x22cb));break;default:_0x1080d6['go'](_0x25dc86(0x1438));}});}const _0xbd9c7c=_0xdd424a;;_0x3b2e93[_0x313a4d(0x11c2)]=['$stateProvider'];function _0x3b2e93(_0x4e08dc){const _0x22159d=_0x313a4d;_0x4e08dc['state'](_0x22159d(0x595),{'url':_0x22159d(0x178b),'views':{'content@app':{'templateUrl':_0x3a9e,'controller':_0x22159d(0x24de)}},'resolve':{'userProfile':[_0x22159d(0x362),'Auth',function(_0x5c4047,_0x55f360){const _0x882552=_0x22159d;return _0x55f360[_0x882552(0x23e0)]('admin')?null:_0x5c4047[_0x882552(0x2922)](_0x882552(0x119a),{'fields':_0x882552(0x227),'id':_0x55f360[_0x882552(0xb12)]()[_0x882552(0x209a)]});}],'userProfileSection':[_0x22159d(0x362),_0x22159d(0xa87),function(_0x4f5bee,_0x5b84f8){const _0x933535=_0x22159d;return _0x5b84f8['hasRole']('admin')?null:_0x4f5bee[_0x933535(0x2922)](_0x933535(0x27be),{'fields':_0x933535(0x1e64),'userProfileId':_0x5b84f8[_0x933535(0xb12)]()[_0x933535(0x209a)],'sectionId':0x5e6});}]},'authenticate':!![],'permissionId':0x5e6})[_0x22159d(0x13d6)](_0x22159d(0x1438),{'url':_0x22159d(0x1507),'controller':_0x22159d(0x553),'templateUrl':_0x48ccf9,'resolve':{'pauses':[_0x22159d(0x362),function(_0x6cb9b9){const _0x25b0f7=_0x22159d;return _0x6cb9b9[_0x25b0f7(0x2922)]('pause@get',{'nolimit':!![]});}],'agents':[_0x22159d(0x362),'Auth',function(_0x4b8017,_0x3670f2){const _0x4df6b8=_0x22159d;return _0x3670f2[_0x4df6b8(0x23e0)](_0x4df6b8(0x174b))?_0x4b8017['resolve'](_0x4df6b8(0x2484),{'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':_0x4df6b8(0x1755),'sort':_0x4df6b8(0x286a),'nolimit':!![]}):_0x4b8017['resolve'](_0x4df6b8(0x938),{'id':_0x3670f2[_0x4df6b8(0xb12)]()['userProfileId'],'section':'Agents','fields':_0x4df6b8(0x2869),'role':_0x4df6b8(0x1755),'sort':_0x4df6b8(0x286a),'nolimit':!![]});}],'userProfile':[_0x22159d(0x362),_0x22159d(0xa87),function(_0x226b53,_0x10693d){const _0xdf9523=_0x22159d;return _0x10693d[_0xdf9523(0x23e0)](_0xdf9523(0x174b))?null:_0x226b53[_0xdf9523(0x2922)](_0xdf9523(0x119a),{'fields':_0xdf9523(0x227),'id':_0x10693d[_0xdf9523(0xb12)]()[_0xdf9523(0x209a)]});}],'userProfileSection':['apiResolver',_0x22159d(0xa87),function(_0x5b0cfd,_0x50dab2){const _0x645ff5=_0x22159d;return _0x50dab2['hasRole'](_0x645ff5(0x174b))?null:_0x5b0cfd[_0x645ff5(0x2922)](_0x645ff5(0x27be),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x50dab2[_0x645ff5(0xb12)]()[_0x645ff5(0x209a)],'sectionId':0xca});}],'rpcAgents':[_0x22159d(0x362),function(_0x31b888){const _0x5eadd3=_0x22159d;return _0x31b888[_0x5eadd3(0x2922)]('rpc@getAgents');}]},'authenticate':!![],'permissionId':0x5e6})[_0x22159d(0x13d6)]('app.motiondialer.realtime.queues',{'url':_0x22159d(0xf15),'controller':'QueuesMotionDialerRealtimeController\x20as\x20vm','templateUrl':_0x55dc5e,'resolve':{'queues':[_0x22159d(0x362),'Auth',function(_0x531898,_0x354e4b){const _0x1877e9=_0x22159d;return _0x354e4b[_0x1877e9(0x23e0)]('admin')?_0x531898[_0x1877e9(0x2922)](_0x1877e9(0x5c0),{'type':_0x1877e9(0xc9c),'sort':_0x1877e9(0x12f2),'limit':0xa,'offset':0x0}):_0x531898['resolve']('userProfile@getResources',{'id':_0x354e4b[_0x1877e9(0xb12)]()[_0x1877e9(0x209a)],'section':_0x1877e9(0x15d6),'channel':_0x1877e9(0xe6),'type':_0x1877e9(0xc9c),'sort':_0x1877e9(0x12f2),'limit':0xa,'page':0x1});}],'userProfile':['apiResolver','Auth',function(_0x2d0905,_0x295cad){const _0x2b4c10=_0x22159d;return _0x295cad['hasRole']('admin')?null:_0x2d0905[_0x2b4c10(0x2922)](_0x2b4c10(0x119a),{'fields':_0x2b4c10(0x227),'id':_0x295cad[_0x2b4c10(0xb12)]()[_0x2b4c10(0x209a)]});}],'userProfileSection':[_0x22159d(0x362),_0x22159d(0xa87),function(_0x2c6ffd,_0x1e6efa){const _0x39bb4b=_0x22159d;return _0x1e6efa['hasRole'](_0x39bb4b(0x174b))?null:_0x2c6ffd[_0x39bb4b(0x2922)]('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x1e6efa[_0x39bb4b(0xb12)]()[_0x39bb4b(0x209a)],'sectionId':0x5dd});}],'rpcQueues':[_0x22159d(0x362),function(_0x5a7402){const _0x52c616=_0x22159d;return _0x5a7402['resolve'](_0x52c616(0x684));}]},'authenticate':!![],'permissionId':0x5e6})['state'](_0x22159d(0x1952),{'url':_0x22159d(0x12c),'controller':_0x22159d(0x276d),'templateUrl':_0x13d5bf,'resolve':{'agents':['apiResolver',_0x22159d(0xa87),function(_0x5032bf,_0x476aa7){const _0x295501=_0x22159d;return _0x476aa7[_0x295501(0x23e0)](_0x295501(0x174b))?_0x5032bf[_0x295501(0x2922)](_0x295501(0x2484),{'fields':'id,name,role,context','role':'agent','nolimit':!![]}):_0x5032bf[_0x295501(0x2922)](_0x295501(0x938),{'id':_0x476aa7[_0x295501(0xb12)]()[_0x295501(0x209a)],'section':_0x295501(0xca8),'fields':_0x295501(0x2041),'role':_0x295501(0x1755),'nolimit':!![]});}],'queues':[_0x22159d(0x362),'Auth',function(_0x1fda02,_0x205d40){const _0x4df0ba=_0x22159d;return _0x205d40[_0x4df0ba(0x23e0)](_0x4df0ba(0x174b))?_0x1fda02['resolve'](_0x4df0ba(0x5c0),{'type':'outbound','sort':_0x4df0ba(0x12f2),'nolimit':!![]}):_0x1fda02[_0x4df0ba(0x2922)](_0x4df0ba(0x938),{'id':_0x205d40[_0x4df0ba(0xb12)]()['userProfileId'],'section':'QueueCampaigns','channel':_0x4df0ba(0xe6),'type':'outbound','sort':_0x4df0ba(0x12f2),'nolimit':!![]});}],'userProfile':[_0x22159d(0x362),_0x22159d(0xa87),function(_0x11d836,_0x53f065){const _0x295f4d=_0x22159d;return _0x53f065[_0x295f4d(0x23e0)](_0x295f4d(0x174b))?null:_0x11d836[_0x295f4d(0x2922)](_0x295f4d(0x119a),{'fields':_0x295f4d(0x227),'id':_0x53f065['getCurrentUser']()[_0x295f4d(0x209a)]});}],'userProfileSection':['apiResolver',_0x22159d(0xa87),function(_0x223c6a,_0x538690){const _0x184b56=_0x22159d;return _0x538690[_0x184b56(0x23e0)](_0x184b56(0x174b))?null:_0x223c6a[_0x184b56(0x2922)]('userProfileSection@get',{'fields':_0x184b56(0x1e64),'userProfileId':_0x538690[_0x184b56(0xb12)]()[_0x184b56(0x209a)],'sectionId':0x5dd});}],'rpcVoiceQueuesChannels':[_0x22159d(0x362),function(_0x541d0d){const _0xa9dee3=_0x22159d;return _0x541d0d[_0xa9dee3(0x2922)](_0xa9dee3(0x1b41));}]},'authenticate':!![],'permissionId':0x5e6})[_0x22159d(0x13d6)](_0x22159d(0x20f7),{'url':'/abandonedcalls','controller':_0x22159d(0x2b9),'templateUrl':_0x40b2c8,'resolve':{'agents':[_0x22159d(0x362),'Auth',function(_0x2ed137,_0x2fc81d){const _0x491a44=_0x22159d;return _0x2fc81d['hasRole'](_0x491a44(0x174b))?_0x2ed137[_0x491a44(0x2922)](_0x491a44(0x2484),{'fields':_0x491a44(0x2041),'role':_0x491a44(0x1755),'nolimit':!![]}):_0x2ed137[_0x491a44(0x2922)]('userProfile@getResources',{'id':_0x2fc81d['getCurrentUser']()[_0x491a44(0x209a)],'section':'Agents','fields':_0x491a44(0x2041),'role':'agent','nolimit':!![]});}],'queues':[_0x22159d(0x362),_0x22159d(0xa87),function(_0x4f1ea8,_0x8d485f){const _0x41c21a=_0x22159d;return _0x8d485f['hasRole']('admin')?_0x4f1ea8[_0x41c21a(0x2922)](_0x41c21a(0x5c0),{'type':_0x41c21a(0xc9c),'sort':_0x41c21a(0x12f2),'nolimit':!![]}):_0x4f1ea8[_0x41c21a(0x2922)](_0x41c21a(0x938),{'id':_0x8d485f[_0x41c21a(0xb12)]()[_0x41c21a(0x209a)],'section':_0x41c21a(0x15d6),'channel':_0x41c21a(0xe6),'type':_0x41c21a(0xc9c),'sort':_0x41c21a(0x12f2),'nolimit':!![]});}],'dispositions':['apiResolver','Auth',function(_0x17c7e8,_0x332a6e){const _0x4adedb=_0x22159d;return _0x332a6e[_0x4adedb(0x23e0)]('admin')?_0x17c7e8[_0x4adedb(0x2922)]('disposition@get',{'fields':_0x4adedb(0x211a),'sort':_0x4adedb(0x12f2),'MailAccountId':_0x4adedb(0x203c),'FaxAccountId':'null','SmsAccountId':'null','WhatsappAccountId':'null','OpenchannelAccountId':'null','ChatWebsiteId':_0x4adedb(0x203c),'ListId':_0x4adedb(0x203c),'nolimit':!![]}):_0x17c7e8['resolve'](_0x4adedb(0x938),{'id':_0x332a6e['getCurrentUser']()[_0x4adedb(0x209a)],'section':_0x4adedb(0x1754),'fields':'createdAt,updatedAt,id,name','sort':_0x4adedb(0x12f2),'MailAccountId':_0x4adedb(0x203c),'FaxAccountId':'null','SmsAccountId':_0x4adedb(0x203c),'WhatsappAccountId':_0x4adedb(0x203c),'OpenchannelAccountId':_0x4adedb(0x203c),'ChatWebsiteId':_0x4adedb(0x203c),'ListId':_0x4adedb(0x203c),'nolimit':!![]});}],'userProfile':[_0x22159d(0x362),_0x22159d(0xa87),function(_0x11eabe,_0x46cba8){const _0x4cb6fc=_0x22159d;return _0x46cba8[_0x4cb6fc(0x23e0)](_0x4cb6fc(0x174b))?null:_0x11eabe['resolve'](_0x4cb6fc(0x119a),{'fields':_0x4cb6fc(0x227),'id':_0x46cba8[_0x4cb6fc(0xb12)]()[_0x4cb6fc(0x209a)]});}],'userProfileSection':[_0x22159d(0x362),'Auth',function(_0x398b6b,_0x3eaff1){const _0x1f1fc7=_0x22159d;return _0x3eaff1[_0x1f1fc7(0x23e0)](_0x1f1fc7(0x174b))?null:_0x398b6b[_0x1f1fc7(0x2922)](_0x1f1fc7(0x27be),{'fields':_0x1f1fc7(0x1e64),'userProfileId':_0x3eaff1[_0x1f1fc7(0xb12)]()['userProfileId'],'sectionId':0x5dd});}]},'authenticate':!![],'permissionId':0x5e6})[_0x22159d(0x13d6)](_0x22159d(0x1617),{'url':_0x22159d(0x85c),'controller':_0x22159d(0x945),'templateUrl':_0x374ed1,'resolve':{'queues':['apiResolver',_0x22159d(0xa87),function(_0x2b2503,_0x505895){const _0x47efb5=_0x22159d;return _0x505895[_0x47efb5(0x23e0)](_0x47efb5(0x174b))?_0x2b2503[_0x47efb5(0x2922)](_0x47efb5(0x5c0),{'type':'outbound','fields':'id,name','sort':_0x47efb5(0x12f2),'limit':0xa,'offset':0x0}):_0x2b2503['resolve'](_0x47efb5(0x938),{'id':_0x505895['getCurrentUser']()[_0x47efb5(0x209a)],'section':_0x47efb5(0x15d6),'channel':_0x47efb5(0xe6),'type':'outbound','sort':_0x47efb5(0x12f2),'nolimit':!![]});}],'userProfile':[_0x22159d(0x362),_0x22159d(0xa87),function(_0x5b3566,_0x38035a){const _0x314529=_0x22159d;return _0x38035a[_0x314529(0x23e0)](_0x314529(0x174b))?null:_0x5b3566[_0x314529(0x2922)](_0x314529(0x119a),{'fields':_0x314529(0x227),'id':_0x38035a[_0x314529(0xb12)]()[_0x314529(0x209a)]});}],'userProfileSection':['apiResolver',_0x22159d(0xa87),function(_0x204d90,_0x508750){const _0x31752e=_0x22159d;return _0x508750[_0x31752e(0x23e0)](_0x31752e(0x174b))?null:_0x204d90[_0x31752e(0x2922)](_0x31752e(0x27be),{'fields':_0x31752e(0x1e64),'userProfileId':_0x508750[_0x31752e(0xb12)]()[_0x31752e(0x209a)],'sectionId':0x5dd});}],'rpcQueues':[_0x22159d(0x362),function(_0x18940f){const _0x29b710=_0x22159d;return _0x18940f[_0x29b710(0x2922)]('rpc@getVoiceQueues');}]},'authenticate':!![],'permissionId':0x5e6})['state'](_0x22159d(0x22cb),{'url':_0x22159d(0x1b3),'controller':_0x22159d(0xe5),'templateUrl':_0x43482f,'resolve':{'campaigns':[_0x22159d(0x362),_0x22159d(0xa87),function(_0x12cef6,_0x1b148d){const _0x5d3ae4=_0x22159d;return _0x1b148d[_0x5d3ae4(0x23e0)](_0x5d3ae4(0x174b))?_0x12cef6[_0x5d3ae4(0x2922)]('campaign@get',{'sort':_0x5d3ae4(0x12f2),'limit':0xa,'offset':0x0}):_0x12cef6[_0x5d3ae4(0x2922)](_0x5d3ae4(0x938),{'id':_0x1b148d['getCurrentUser']()['userProfileId'],'section':'IvrCampaigns','sort':_0x5d3ae4(0x12f2),'limit':0xa,'offset':0x0});}],'userProfile':[_0x22159d(0x362),_0x22159d(0xa87),function(_0x24da13,_0x283736){const _0x1e8c4a=_0x22159d;return _0x283736[_0x1e8c4a(0x23e0)]('admin')?null:_0x24da13['resolve']('userProfile@get',{'fields':_0x1e8c4a(0x227),'id':_0x283736['getCurrentUser']()[_0x1e8c4a(0x209a)]});}],'userProfileSection':[_0x22159d(0x362),'Auth',function(_0x5f3a32,_0xb41a9a){const _0x1ad3e1=_0x22159d;return _0xb41a9a[_0x1ad3e1(0x23e0)]('admin')?null:_0x5f3a32[_0x1ad3e1(0x2922)](_0x1ad3e1(0x27be),{'fields':_0x1ad3e1(0x1e64),'userProfileId':_0xb41a9a[_0x1ad3e1(0xb12)]()[_0x1ad3e1(0x209a)],'sectionId':0x5de});}],'rpcCampaigns':[_0x22159d(0x362),function(_0x423493){const _0x52f9bf=_0x22159d;return _0x423493[_0x52f9bf(0x2922)]('rpc@getCampaigns');}]},'authenticate':!![],'permissionId':0x5e6});}angular['module'](_0x313a4d(0x595),[])[_0x313a4d(0x989)](_0x3b2e93)[_0x313a4d(0x28f0)](_0x313a4d(0x13df),_0x4be860)['controller'](_0x313a4d(0x25f),_0x1ebd7a)[_0x313a4d(0x28f0)](_0x313a4d(0x9fe),_0x37baea)['controller'](_0x313a4d(0xd65),_0x2a3aeb)[_0x313a4d(0x28f0)]('QueueParamsMotionDialerRealtimeController',_0x437e89)[_0x313a4d(0x28f0)](_0x313a4d(0xe4a),_0x35af3b)[_0x313a4d(0x28f0)](_0x313a4d(0xe2f),_0xc6607b)[_0x313a4d(0x1750)](_0x313a4d(0x1ac0),_0x26990b)[_0x313a4d(0x28f0)](_0x313a4d(0x141),_0xbd9c7c);;const _0x2c840a=_0x4acfac['p']+_0x313a4d(0x1819);;const _0x5b75f9=_0x4acfac['p']+'src/js/modules/main/apps/motiondialer/views/queueCampaigns/edit/view.html/view.html';;const _0x491eec=_0x4acfac['p']+_0x313a4d(0x1858);;const _0xb6a0f4=_0x4acfac['p']+'src/js/modules/main/apps/motiondialer/views/ivrCampaigns/edit/view.html/view.html';;_0x288da0[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1862),_0x313a4d(0xd08),_0x313a4d(0x10e8),'$q',_0x313a4d(0x214b),_0x313a4d(0x1fe4),_0x313a4d(0x13f8),_0x313a4d(0x958),_0x313a4d(0x247f),_0x313a4d(0xa87),_0x313a4d(0x2690),_0x313a4d(0x15b9),_0x313a4d(0x2514)];function _0x288da0(_0x9fa347,_0x18ce60,_0x4fef7f,_0xe54911,_0x143bf2,_0x1c1426,_0x34d1ed,_0x44d9c8,_0x338ad2,_0x554f66,_0x5cd529,_0x9e04f3,_0x266d63,_0x342f87){const _0x5e02f5=_0x313a4d,_0x2ae371=this;_0x2ae371[_0x5e02f5(0x2321)]=_0x5cd529[_0x5e02f5(0xb12)](),_0x2ae371[_0x5e02f5(0xcef)]=[],_0x2ae371[_0x5e02f5(0x15b9)]=_0x266d63,_0x2ae371[_0x5e02f5(0x2690)]=_0x9e04f3,_0x2ae371[_0x5e02f5(0x2514)]=_0x342f87,_0x2ae371[_0x5e02f5(0x855)]={},_0x2ae371[_0x5e02f5(0x2251)]=_0x2ae371['setting']&&_0x2ae371['setting']['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2ae371[_0x5e02f5(0x1189)]=_0x5e02f5(0x87c),_0x2ae371[_0x5e02f5(0x958)]=angular['copy'](_0x338ad2),_0x2ae371[_0x5e02f5(0x13f8)]=_0x44d9c8,_0x2ae371[_0x5e02f5(0x1bbd)]=![];!_0x2ae371[_0x5e02f5(0x958)]&&(_0x2ae371[_0x5e02f5(0x958)]={'active':!![],'type':_0x5e02f5(0x1f0),'dialCheckDuplicateType':_0x5e02f5(0xd85),'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':_0x5e02f5(0x1734),'dialGlobalInterval':_0x5e02f5(0x259f),'dialAMDInitialSilence':0x9c4,'dialAMDGreeting':0x5dc,'dialAMDAfterGreetingSilence':0x320,'dialAMDTotalAnalysisTime':0x1388,'dialAMDMinWordLength':0x64,'dialAMDBetweenWordsSilence':0x32,'dialAMDMaximumNumberOfWords':0x3,'dialAMDSilenceThreshold':0x100,'dialAMDMaximumWordLength':0x1388},_0x2ae371['title']=_0x5e02f5(0x26b8),_0x2ae371['newIvrCampaign']=!![]);_0x2ae371[_0x5e02f5(0x3ab)]=_0x42afae,_0x2ae371[_0x5e02f5(0x1093)]=_0x447a45,_0x2ae371[_0x5e02f5(0x3b4)]=_0x2d5cf6,_0x2ae371[_0x5e02f5(0xe73)]=_0x38071d,_0x2ae371['closeDialog']=_0x597c80,_0x5cd529['hasRole'](_0x5e02f5(0x174b))?_0x554f66[_0x5e02f5(0x279f)][_0x5e02f5(0x16b4)]({'fields':'id,name','sort':_0x5e02f5(0x19eb),'table':_0x5e02f5(0x1185)})[_0x5e02f5(0x2945)]['then'](function(_0x51b77f){const _0x3056b0=_0x5e02f5;_0x2ae371[_0x3056b0(0x2433)]=_0x51b77f[_0x3056b0(0x19c7)]||[];})[_0x5e02f5(0x129e)](function(_0x32afe3){const _0x3c61b4=_0x5e02f5;_0x34d1ed[_0x3c61b4(0x1980)]({'title':_0x32afe3['status']?_0x3c61b4(0x262a)+_0x32afe3[_0x3c61b4(0x107b)]+_0x3c61b4(0x1315)+_0x32afe3['statusText']:_0x3c61b4(0xfc0),'msg':_0x32afe3[_0x3c61b4(0x524)]?JSON[_0x3c61b4(0x10bb)](_0x32afe3[_0x3c61b4(0x524)]):_0x32afe3[_0x3c61b4(0xd5f)]()});}):_0x554f66[_0x5e02f5(0x279f)][_0x5e02f5(0x16b4)]({'fields':'id,name','sort':_0x5e02f5(0x19eb),'table':'true'})[_0x5e02f5(0x2945)][_0x5e02f5(0x146b)](function(_0x31f603){const _0x46160b=_0x5e02f5;_0x2ae371[_0x46160b(0x2433)]=_0x31f603['rows']||[];})[_0x5e02f5(0x146b)](function(){const _0x5d1c1d=_0x5e02f5;return _0x554f66['userProfileSection'][_0x5d1c1d(0x16b4)]({'userProfileId':_0x2ae371[_0x5d1c1d(0x2321)][_0x5d1c1d(0x209a)],'sectionId':0x3f3})[_0x5d1c1d(0x2945)];})[_0x5e02f5(0x146b)](function(_0x1bd875){const _0x182fb3=_0x5e02f5,_0x3a52ee=_0x1bd875&&_0x1bd875[_0x182fb3(0x19c7)]?_0x1bd875[_0x182fb3(0x19c7)][0x0]:null;if(!_0x3a52ee)_0x2ae371[_0x182fb3(0x2433)]=[];else{if(!_0x3a52ee[_0x182fb3(0x11d2)])return _0x554f66[_0x182fb3(0xdcc)]['get']({'sectionId':_0x3a52ee['id']})[_0x182fb3(0x2945)][_0x182fb3(0x146b)](function(_0x4d9f1c){const _0x23abef=_0x182fb3,_0x2e0cf7=_0x3f65c0()[_0x23abef(0x205)](_0x4d9f1c[_0x23abef(0x19c7)],function(_0x46fbca){const _0x39310b=_0x23abef;return _0x3f65c0()['find'](_0x2ae371[_0x39310b(0x2433)],{'id':_0x46fbca[_0x39310b(0x18b8)]});});_0x2ae371[_0x23abef(0x2433)][_0x23abef(0x1df5)](function(_0x348ea0){const _0x292e68=_0x23abef;!_0x3f65c0()[_0x292e68(0x1360)](_0x2e0cf7,['id',_0x348ea0['id']])&&(_0x348ea0[_0x292e68(0x8ff)]=![]),_0x2e0cf7[_0x292e68(0x1f47)](_0x348ea0);}),_0x2ae371[_0x23abef(0x2433)]=_0x2e0cf7;});}})[_0x5e02f5(0x129e)](function(_0x27b470){const _0x412aff=_0x5e02f5;_0x34d1ed[_0x412aff(0x1980)]({'title':_0x27b470[_0x412aff(0x107b)]?_0x412aff(0x262a)+_0x27b470['status']+_0x412aff(0x1315)+_0x27b470[_0x412aff(0x167f)]:'SYSTEM:GETtrunks','msg':_0x27b470[_0x412aff(0x524)]?JSON['stringify'](_0x27b470['data']):_0x27b470[_0x412aff(0xd5f)]()});}),_0x5cd529[_0x5e02f5(0x23e0)](_0x5e02f5(0x174b))?_0x554f66['squareProject'][_0x5e02f5(0x16b4)]({'fields':'id,name','sort':_0x5e02f5(0x19eb)})[_0x5e02f5(0x2945)][_0x5e02f5(0x146b)](function(_0xbd7b0c){const _0x33d9db=_0x5e02f5;_0x2ae371[_0x33d9db(0x1991)]=_0xbd7b0c[_0x33d9db(0x19c7)]||[];})[_0x5e02f5(0x129e)](function(_0x5c7765){const _0x4bc38e=_0x5e02f5;_0x34d1ed[_0x4bc38e(0x1980)]({'title':_0x5c7765[_0x4bc38e(0x107b)]?_0x4bc38e(0x262a)+_0x5c7765['status']+_0x4bc38e(0x1315)+_0x5c7765[_0x4bc38e(0x167f)]:'SYSTEM:GET_PROJECTS','msg':_0x5c7765[_0x4bc38e(0x524)]?JSON[_0x4bc38e(0x10bb)](_0x5c7765[_0x4bc38e(0x524)]):_0x5c7765['toString']()});}):_0x554f66[_0x5e02f5(0x9b1)]['get']({'fields':_0x5e02f5(0x7a7),'sort':'name'})[_0x5e02f5(0x2945)][_0x5e02f5(0x146b)](function(_0x56ed40){const _0x41e29b=_0x5e02f5;_0x2ae371[_0x41e29b(0x1991)]=_0x56ed40[_0x41e29b(0x19c7)]||[];})[_0x5e02f5(0x146b)](function(){const _0x5c5c6b=_0x5e02f5;return _0x554f66[_0x5c5c6b(0x1366)]['get']({'userProfileId':_0x2ae371[_0x5c5c6b(0x2321)][_0x5c5c6b(0x209a)],'sectionId':0x44f})[_0x5c5c6b(0x2945)];})[_0x5e02f5(0x146b)](function(_0x38eb7b){const _0x37166a=_0x5e02f5,_0x3cf096=_0x38eb7b&&_0x38eb7b[_0x37166a(0x19c7)]?_0x38eb7b['rows'][0x0]:null;if(!_0x3cf096){const _0x283808=[];let _0x5ae4b7=null;_0x2ae371[_0x37166a(0x958)]&&(_0x5ae4b7=_0x3f65c0()['find'](_0x2ae371[_0x37166a(0x1991)],{'id':Number(_0x2ae371[_0x37166a(0x958)][_0x37166a(0x223c)])}));for(let _0x42f5ac=0x0;_0x42f5ac<_0x2ae371['projects'][_0x37166a(0x402)];_0x42f5ac++){_0x5ae4b7&&_0x2ae371[_0x37166a(0x1991)][_0x42f5ac]['id']===_0x5ae4b7['id']&&(_0x2ae371[_0x37166a(0x1991)][_0x42f5ac][_0x37166a(0x8ff)]=![],_0x283808[_0x37166a(0x1f47)](_0x2ae371[_0x37166a(0x1991)][_0x42f5ac]));}_0x2ae371[_0x37166a(0x1991)]=_0x283808;}else{if(!_0x3cf096[_0x37166a(0x11d2)])return _0x554f66['userProfileResource'][_0x37166a(0x16b4)]({'sectionId':_0x3cf096['id']})[_0x37166a(0x2945)][_0x37166a(0x146b)](function(_0x38a2db){const _0x9a1c08=_0x37166a,_0x30e359=_0x3f65c0()[_0x9a1c08(0x205)](_0x38a2db[_0x9a1c08(0x19c7)],function(_0xb096e7){const _0xda44ee=_0x9a1c08;return _0x3f65c0()[_0xda44ee(0xc84)](_0x2ae371[_0xda44ee(0x1991)],{'id':_0xb096e7[_0xda44ee(0x18b8)]});});let _0x2ef3eb=null;_0x2ae371[_0x9a1c08(0x958)]&&(_0x2ef3eb=_0x3f65c0()[_0x9a1c08(0xc84)](_0x2ae371['projects'],{'id':Number(_0x2ae371[_0x9a1c08(0x958)][_0x9a1c08(0x223c)])}));if(_0x2ef3eb&&!_0x3f65c0()[_0x9a1c08(0x1360)](_0x30e359,['id',_0x2ef3eb['id']])){const _0x2d9d66=_0x3f65c0()[_0x9a1c08(0xc84)](_0x2ae371[_0x9a1c08(0x1991)],{'id':_0x2ef3eb['id']});_0x2d9d66[_0x9a1c08(0x8ff)]=![],_0x30e359[_0x9a1c08(0x1f47)](_0x2d9d66);}_0x2ae371['projects']=_0x30e359;});}})[_0x5e02f5(0x129e)](function(_0xe22385){const _0x2a4e1b=_0x5e02f5;_0x34d1ed[_0x2a4e1b(0x1980)]({'title':_0xe22385[_0x2a4e1b(0x107b)]?'API:'+_0xe22385[_0x2a4e1b(0x107b)]+_0x2a4e1b(0x1315)+_0xe22385[_0x2a4e1b(0x167f)]:_0x2a4e1b(0x193b),'msg':_0xe22385['data']?JSON[_0x2a4e1b(0x10bb)](_0xe22385[_0x2a4e1b(0x524)]):_0xe22385[_0x2a4e1b(0xd5f)]()});}),_0x5cd529[_0x5e02f5(0x23e0)](_0x5e02f5(0x174b))?_0x554f66[_0x5e02f5(0x2765)]['get']({'fields':_0x5e02f5(0x7a7),'sort':'name','IntervalId':_0x5e02f5(0x203c)})['$promise'][_0x5e02f5(0x146b)](function(_0x3dd31e){const _0x5234d5=_0x5e02f5;_0x2ae371[_0x5234d5(0x2765)]=_0x3dd31e[_0x5234d5(0x19c7)]||[];})[_0x5e02f5(0x129e)](function(_0x2df6f4){const _0x45393d=_0x5e02f5;_0x34d1ed[_0x45393d(0x1980)]({'title':_0x2df6f4[_0x45393d(0x107b)]?_0x45393d(0x262a)+_0x2df6f4['status']+_0x45393d(0x1315)+_0x2df6f4['statusText']:_0x45393d(0x12c5),'msg':_0x2df6f4[_0x45393d(0x524)]?JSON[_0x45393d(0x10bb)](_0x2df6f4['data']):_0x2df6f4[_0x45393d(0xd5f)]()});}):_0x554f66[_0x5e02f5(0x2765)]['get']({'fields':_0x5e02f5(0x7a7),'sort':_0x5e02f5(0x19eb),'IntervalId':_0x5e02f5(0x203c)})[_0x5e02f5(0x2945)][_0x5e02f5(0x146b)](function(_0x4e2c7a){const _0x2aa84=_0x5e02f5;_0x2ae371[_0x2aa84(0x2765)]=_0x4e2c7a[_0x2aa84(0x19c7)]||[];})[_0x5e02f5(0x146b)](function(){const _0x2f56d6=_0x5e02f5;return _0x554f66[_0x2f56d6(0x1366)][_0x2f56d6(0x16b4)]({'userProfileId':_0x2ae371[_0x2f56d6(0x2321)][_0x2f56d6(0x209a)],'sectionId':0x3ec})[_0x2f56d6(0x2945)];})[_0x5e02f5(0x146b)](function(_0x3ec8bf){const _0x35789b=_0x5e02f5,_0x1f02c1=_0x3ec8bf&&_0x3ec8bf['rows']?_0x3ec8bf[_0x35789b(0x19c7)][0x0]:null;if(!_0x1f02c1){const _0x2f0d27=[];let _0x51d225=null;_0x2ae371[_0x35789b(0x958)]&&(_0x51d225=_0x3f65c0()[_0x35789b(0xc84)](_0x2ae371['interval'],{'id':Number(_0x2ae371[_0x35789b(0x958)][_0x35789b(0x1ff2)])}));for(let _0x810bb9=0x0;_0x810bb9<_0x2ae371[_0x35789b(0x2765)][_0x35789b(0x402)];_0x810bb9++){_0x51d225&&_0x2ae371[_0x35789b(0x2765)][_0x810bb9]['id']===_0x51d225['id']&&(_0x2ae371[_0x35789b(0x2765)][_0x810bb9][_0x35789b(0x8ff)]=![],_0x2f0d27['push'](_0x2ae371[_0x35789b(0x2765)][_0x810bb9]));}_0x2ae371['interval']=_0x2f0d27;}else{if(!_0x1f02c1[_0x35789b(0x11d2)])return _0x554f66[_0x35789b(0xdcc)]['get']({'sectionId':_0x1f02c1['id']})['$promise'][_0x35789b(0x146b)](function(_0x35d8c6){const _0x3efbc0=_0x35789b,_0x381c84=_0x3f65c0()[_0x3efbc0(0x205)](_0x35d8c6[_0x3efbc0(0x19c7)],function(_0x1e2ad4){const _0x5bafc6=_0x3efbc0;return _0x3f65c0()[_0x5bafc6(0xc84)](_0x2ae371[_0x5bafc6(0x2765)],{'id':_0x1e2ad4['resourceId']});});let _0x378e8b=null;_0x2ae371[_0x3efbc0(0x958)]&&(_0x378e8b=_0x3f65c0()[_0x3efbc0(0xc84)](_0x2ae371[_0x3efbc0(0x2765)],{'id':Number(_0x2ae371[_0x3efbc0(0x958)][_0x3efbc0(0x1ff2)])}));if(_0x378e8b&&!_0x3f65c0()[_0x3efbc0(0x1360)](_0x381c84,['id',_0x378e8b['id']])){const _0xa1c2f=_0x3f65c0()['find'](_0x2ae371[_0x3efbc0(0x2765)],{'id':_0x378e8b['id']});_0xa1c2f[_0x3efbc0(0x8ff)]=![],_0x381c84[_0x3efbc0(0x1f47)](_0xa1c2f);}_0x2ae371['interval']=_0x381c84;});}})['catch'](function(_0x3bcd70){const _0x7483b5=_0x5e02f5;_0x34d1ed[_0x7483b5(0x1980)]({'title':_0x3bcd70['status']?'API:'+_0x3bcd70[_0x7483b5(0x107b)]+_0x7483b5(0x1315)+_0x3bcd70['statusText']:_0x7483b5(0x8b6),'msg':_0x3bcd70[_0x7483b5(0x524)]?JSON[_0x7483b5(0x10bb)](_0x3bcd70[_0x7483b5(0x524)]):_0x3bcd70[_0x7483b5(0xd5f)]()});});function _0x42afae(){const _0x1aaafb=_0x5e02f5;_0x2ae371[_0x1aaafb(0xcef)]=[],_0x554f66['campaign'][_0x1aaafb(0x1e3)](_0x2ae371['ivrCampaign'])[_0x1aaafb(0x2945)][_0x1aaafb(0x146b)](function(_0x26649f){const _0x447135=_0x1aaafb;_0x2ae371[_0x447135(0x13f8)][_0x447135(0xb3d)](_0x26649f['toJSON']()),_0x34d1ed[_0x447135(0x1c75)]({'title':'IvrCampaign\x20properly\x20created','msg':_0x2ae371[_0x447135(0x958)][_0x447135(0x19eb)]?_0x2ae371[_0x447135(0x958)]['name']+_0x447135(0x1386):''}),_0x597c80(_0x26649f);})[_0x1aaafb(0x129e)](function(_0x2631c3){const _0x358781=_0x1aaafb;if(_0x2631c3[_0x358781(0x524)]&&_0x2631c3[_0x358781(0x524)][_0x358781(0xcef)]&&_0x2631c3[_0x358781(0x524)]['errors'][_0x358781(0x402)]){_0x2ae371[_0x358781(0xcef)]=_0x2631c3[_0x358781(0x524)][_0x358781(0xcef)]||[{'message':_0x2631c3[_0x358781(0xd5f)](),'type':_0x358781(0x105b)}];for(let _0x4e6804=0x0;_0x4e6804<_0x2631c3[_0x358781(0x524)][_0x358781(0xcef)][_0x358781(0x402)];_0x4e6804+=0x1){_0x34d1ed[_0x358781(0x1980)]({'title':_0x2631c3['data']['errors'][_0x4e6804][_0x358781(0x1142)],'msg':_0x2631c3[_0x358781(0x524)][_0x358781(0xcef)][_0x4e6804][_0x358781(0x7fd)]});}}else _0x34d1ed['error']({'title':_0x2631c3['status']?_0x358781(0x262a)+_0x2631c3['status']+_0x358781(0x1315)+_0x2631c3['statusText']:_0x358781(0x105b),'msg':_0x2631c3[_0x358781(0x524)]?JSON[_0x358781(0x10bb)](_0x2631c3[_0x358781(0x524)][_0x358781(0x7fd)]):_0x2631c3[_0x358781(0xd5f)]()});});}function _0x447a45(){const _0x13f648=_0x5e02f5;_0x2ae371[_0x13f648(0xcef)]=[],_0x554f66[_0x13f648(0x8dc)][_0x13f648(0x18e1)]({'id':_0x2ae371[_0x13f648(0x958)]['id']},_0x2ae371[_0x13f648(0x958)])[_0x13f648(0x2945)]['then'](function(_0xba6545){const _0x1eb720=_0x13f648,_0x2d6e9b=_0x3f65c0()['find'](_0x2ae371['ivrCampaigns'],{'id':_0xba6545['id']});_0x2d6e9b&&_0x3f65c0()['merge'](_0x2d6e9b,_0x3f65c0()[_0x1eb720(0x40e)](_0xba6545['toJSON'](),_0x3f65c0()[_0x1eb720(0x627)](_0x2d6e9b))),_0x34d1ed[_0x1eb720(0x1c75)]({'title':_0x1eb720(0x28d),'msg':_0x2ae371[_0x1eb720(0x958)]['name']?_0x2ae371['ivrCampaign'][_0x1eb720(0x19eb)]+_0x1eb720(0x24db):''}),_0x597c80(_0xba6545);})['catch'](function(_0x27e5aa){const _0x4c0f13=_0x13f648;if(_0x27e5aa[_0x4c0f13(0x524)]&&_0x27e5aa[_0x4c0f13(0x524)][_0x4c0f13(0xcef)]&&_0x27e5aa[_0x4c0f13(0x524)][_0x4c0f13(0xcef)]['length']){_0x2ae371[_0x4c0f13(0xcef)]=_0x27e5aa[_0x4c0f13(0x524)][_0x4c0f13(0xcef)]||[{'message':_0x27e5aa['toString'](),'type':_0x4c0f13(0x1248)}];for(let _0x329baf=0x0;_0x329baf<_0x27e5aa[_0x4c0f13(0x524)][_0x4c0f13(0xcef)][_0x4c0f13(0x402)];_0x329baf++){_0x34d1ed['error']({'title':_0x27e5aa[_0x4c0f13(0x524)][_0x4c0f13(0xcef)][_0x329baf][_0x4c0f13(0x1142)],'msg':_0x27e5aa[_0x4c0f13(0x524)][_0x4c0f13(0xcef)][_0x329baf]['message']});}}else _0x34d1ed[_0x4c0f13(0x1980)]({'title':_0x27e5aa['status']?_0x4c0f13(0x262a)+_0x27e5aa['status']+_0x4c0f13(0x1315)+_0x27e5aa[_0x4c0f13(0x167f)]:_0x4c0f13(0x1248),'msg':_0x27e5aa['data']?JSON[_0x4c0f13(0x10bb)](_0x27e5aa['data'][_0x4c0f13(0x7fd)]):_0x27e5aa['toString']()});});}function _0x2d5cf6(_0x4127bb){const _0x24e810=_0x5e02f5;_0x2ae371[_0x24e810(0xcef)]=[];const _0x35fa46=_0xe54911[_0x24e810(0x1e8a)]()[_0x24e810(0x1189)](_0x24e810(0x1d64))['content']('The\x20ivrCampaign\x20will\x20be\x20deleted.')[_0x24e810(0x4bd)](_0x24e810(0x4d6))['ok']('Delete')[_0x24e810(0x6c3)](_0x24e810(0xcf0))[_0x24e810(0x1f27)](_0x4127bb);_0xe54911['show'](_0x35fa46)[_0x24e810(0x146b)](function(){const _0x30ff39=_0x24e810;_0x554f66[_0x30ff39(0x8dc)][_0x30ff39(0x1fac)]({'id':_0x2ae371['ivrCampaign']['id']})['$promise']['then'](function(){const _0x5e8c2e=_0x30ff39;_0x3f65c0()[_0x5e8c2e(0x2640)](_0x2ae371['ivrCampaigns'],{'id':_0x2ae371[_0x5e8c2e(0x958)]['id']}),_0x34d1ed[_0x5e8c2e(0x1c75)]({'title':_0x5e8c2e(0x1d27),'msg':(_0x2ae371[_0x5e8c2e(0x958)][_0x5e8c2e(0x19eb)]||_0x5e8c2e(0x958))+'\x20has\x20been\x20deleted!'}),_0x597c80(_0x2ae371[_0x5e8c2e(0x958)]);})[_0x30ff39(0x129e)](function(_0x42a116){const _0x6ff9a0=_0x30ff39;if(_0x42a116[_0x6ff9a0(0x524)]&&_0x42a116[_0x6ff9a0(0x524)][_0x6ff9a0(0xcef)]&&_0x42a116[_0x6ff9a0(0x524)]['errors'][_0x6ff9a0(0x402)]){_0x2ae371['errors']=_0x42a116['data']['errors']||[{'message':_0x42a116[_0x6ff9a0(0xd5f)](),'type':_0x6ff9a0(0x24b3)}];for(let _0x32bdd2=0x0;_0x32bdd2<_0x42a116[_0x6ff9a0(0x524)][_0x6ff9a0(0xcef)][_0x6ff9a0(0x402)];_0x32bdd2++){_0x34d1ed[_0x6ff9a0(0x1980)]({'title':_0x42a116[_0x6ff9a0(0x524)][_0x6ff9a0(0xcef)][_0x32bdd2][_0x6ff9a0(0x1142)],'msg':_0x42a116[_0x6ff9a0(0x524)][_0x6ff9a0(0xcef)][_0x32bdd2][_0x6ff9a0(0x7fd)]});}}else _0x34d1ed['error']({'title':_0x42a116[_0x6ff9a0(0x107b)]?'API:'+_0x42a116['status']+_0x6ff9a0(0x1315)+_0x42a116[_0x6ff9a0(0x167f)]:_0x6ff9a0(0x24b3),'msg':_0x42a116[_0x6ff9a0(0x524)]?JSON[_0x6ff9a0(0x10bb)](_0x42a116[_0x6ff9a0(0x524)][_0x6ff9a0(0x7fd)]):_0x42a116[_0x6ff9a0(0x7fd)]||_0x42a116['toString']()});});},function(){});}function _0x38071d(_0x3cbf6c){return _0x3cbf6c===null?undefined:new Date(_0x3cbf6c);}function _0x597c80(_0xafc69f){const _0x590f70=_0x5e02f5;_0xe54911[_0x590f70(0x2458)](_0xafc69f);}}const _0x590974=_0x288da0;;_0x479872['$inject']=[_0x313a4d(0x10e8),'$q','toasty',_0x313a4d(0x247f),_0x313a4d(0x958),_0x313a4d(0x214b),'$timeout',_0x313a4d(0xa87),'crudPermissions'];function _0x479872(_0x38f00,_0x26e563,_0x11b066,_0x606b5e,_0x10f82e,_0x347aa8,_0x213171,_0x58d836,_0x2d9dce){const _0x1723cb=_0x313a4d,_0x24721a=this;_0x24721a[_0x1723cb(0x2321)]=_0x58d836[_0x1723cb(0xb12)](),_0x24721a[_0x1723cb(0x958)]=_0x10f82e,_0x24721a[_0x1723cb(0x2514)]=_0x2d9dce,_0x24721a[_0x1723cb(0x161a)]=_0x1723cb(0x1446),_0x24721a[_0x1723cb(0x706)]=_0x1723cb(0x1e5f),_0x24721a['addApi']=_0x1723cb(0xd03),_0x24721a['removeApi']=_0x1723cb(0x191f),_0x24721a[_0x1723cb(0x1fd6)]=[],_0x24721a[_0x1723cb(0xc4e)]=[],_0x24721a[_0x1723cb(0x1ecf)]=[],_0x24721a[_0x1723cb(0x2e8)]=[],_0x24721a[_0x1723cb(0xa65)]=[],_0x24721a[_0x1723cb(0x132)]=![],_0x24721a[_0x1723cb(0x1699)]=![],_0x24721a[_0x1723cb(0x1f8a)]={'readOnly':!_0x24721a[_0x1723cb(0x2514)]['canEdit'],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':![],'orderBy':_0x1723cb(0x19eb),'line1':_0x1723cb(0x19eb),'line2':'','line3':'','labelAll':_0x347aa8[_0x1723cb(0xde)](_0x1723cb(0x11e0)),'labelSelected':_0x347aa8['instant']('MOTIONDIALER.SELECTED_LISTS'),'transferCallback':function(){const _0x5984a5=_0x1723cb,_0x1a0be2=_0x3f65c0()[_0x5984a5(0x1883)](_0x24721a[_0x5984a5(0xa65)],_0x24721a[_0x5984a5(0x1ecf)],'id');_0x24721a[_0x5984a5(0x132)]=_0x3f65c0()[_0x5984a5(0x2635)](_0x1a0be2)?![]:!![];}},_0x24721a[_0x1723cb(0x3d4)]=_0x226048,_0x24721a[_0x1723cb(0x24d1)]=_0x24ed08,_0x24721a[_0x1723cb(0x13f3)]=_0x1ca4ad;function _0x226048(){const _0x168cf6=_0x1723cb;return _0x58d836[_0x168cf6(0x23e0)]('admin')?_0x465b37()[_0x168cf6(0x129e)](function(_0x752f78){const _0x57c142=_0x168cf6;_0x11b066[_0x57c142(0x1980)]({'title':_0x752f78[_0x57c142(0x107b)]?_0x57c142(0x262a)+_0x752f78[_0x57c142(0x107b)]+_0x57c142(0x1315)+_0x752f78['statusText']:_0x57c142(0x474),'msg':_0x752f78['status']?JSON[_0x57c142(0x10bb)](_0x752f78['data']):_0x752f78['toString']()});}):_0x3a3651()['then'](function(_0x6ebb76){const _0x3c8f32=_0x168cf6;return _0x24721a[_0x3c8f32(0x2146)]=_0x6ebb76,_0x465b37();})[_0x168cf6(0x129e)](function(_0x3a9b04){const _0xd78c71=_0x168cf6;_0x11b066['error']({'title':_0x3a9b04[_0xd78c71(0x107b)]?'API:'+_0x3a9b04[_0xd78c71(0x107b)]+_0xd78c71(0x1315)+_0x3a9b04['statusText']:_0xd78c71(0x474),'msg':_0x3a9b04[_0xd78c71(0x107b)]?JSON[_0xd78c71(0x10bb)](_0x3a9b04[_0xd78c71(0x524)]):_0x3a9b04['toString']()});});}function _0x3a3651(){return _0x26e563(function(_0x593599,_0x2ce793){const _0x2446e3=a0_0x3bb9;_0x606b5e[_0x2446e3(0x1366)]['get']({'userProfileId':_0x24721a[_0x2446e3(0x2321)][_0x2446e3(0x209a)],'name':'Lists'})[_0x2446e3(0x2945)]['then'](function(_0x1f9f81){const _0x459cd6=_0x2446e3,_0x471afc=_0x1f9f81&&_0x1f9f81[_0x459cd6(0x19c7)]?_0x1f9f81['rows'][0x0]:null;_0x593599(_0x471afc);})[_0x2446e3(0x129e)](function(_0x4aaed0){_0x2ce793(_0x4aaed0);});});}function _0x465b37(){return _0x26e563(function(_0x185570,_0x1f0850){const _0x4f3bc9=a0_0x3bb9;return _0x75d974()[_0x4f3bc9(0x146b)](function(_0x293566){const _0x14b376=_0x4f3bc9;return _0x24721a[_0x14b376(0x1fd6)]=_0x293566[_0x14b376(0x19c7)]?_0x293566[_0x14b376(0x19c7)]:[],_0x58d836[_0x14b376(0x23e0)](_0x14b376(0x174b))?_0x293566:_0x24721a[_0x14b376(0x2146)]?_0x24721a[_0x14b376(0x2146)][_0x14b376(0x11d2)]?_0x293566:_0x1b6fc8():null;})[_0x4f3bc9(0x146b)](function(_0x6edb62){const _0x24ff4f=_0x4f3bc9,_0x15ed5d=_0x6edb62&&_0x6edb62[_0x24ff4f(0x19c7)]?_0x6edb62['rows']:[];return _0x24721a[_0x24ff4f(0xc4e)]=_0x3f65c0()[_0x24ff4f(0x205)](_0x15ed5d,function(_0x22edfb){const _0x452017=_0x24ff4f;return _0x3f65c0()[_0x452017(0xc84)](_0x24721a[_0x452017(0x1fd6)],{'id':_0x58d836['hasRole']('admin')||_0x24721a[_0x452017(0x2146)]['autoAssociation']?_0x22edfb['id']:_0x22edfb[_0x452017(0x18b8)]});}),_0x24721a['startingAllowedItems']=angular['copy'](_0x24721a['allowedItems']),_0x24721a[_0x24ff4f(0x1fd6)]['forEach'](function(_0x2a599c){const _0x2451f3=_0x24ff4f,_0x271802=_0x3f65c0()[_0x2451f3(0xc84)](_0x24721a[_0x2451f3(0xc4e)],{'id':_0x2a599c['id']});_0x24721a[_0x2451f3(0x2321)]['role']===_0x2451f3(0x174b)?_0x2a599c['isValid']=!![]:_0x2a599c['isValid']=typeof _0x271802!==_0x2451f3(0x2274)?!![]:![];}),_0x2c28e5();})['then'](function(_0x1590f3){const _0xc1ca8b=_0x4f3bc9,_0x4cc6d4=_0x1590f3&&_0x1590f3[_0xc1ca8b(0x19c7)]?_0x1590f3[_0xc1ca8b(0x19c7)]:[];_0x24721a['selectedItems']=_0x3f65c0()['map'](_0x4cc6d4,function(_0x38d5bd){const _0x1b51c9=_0xc1ca8b;return _0x3f65c0()[_0x1b51c9(0xc84)](_0x24721a[_0x1b51c9(0x1fd6)],{'id':_0x38d5bd['id']});}),_0x24721a['startingSelectedItems']=angular[_0xc1ca8b(0x235a)](_0x24721a[_0xc1ca8b(0x1ecf)]),_0x24721a[_0xc1ca8b(0x1f8a)]['selectedItems']=_0x24721a[_0xc1ca8b(0x1ecf)],_0x24721a[_0xc1ca8b(0x1f8a)][_0xc1ca8b(0x1fd6)]=_0x3f65c0()[_0xc1ca8b(0x2796)](_0x24721a['allowedItems'],_0x24721a[_0xc1ca8b(0x1f8a)][_0xc1ca8b(0x1ecf)],'id'),_0x185570();})[_0x4f3bc9(0x129e)](function(_0x540e18){_0x1f0850(_0x540e18);});});}function _0x1b6fc8(){return _0x26e563(function(_0x19abb6,_0x2ce9b3){const _0x4a0a29=a0_0x3bb9;return _0x606b5e[_0x4a0a29(0xdcc)][_0x4a0a29(0x16b4)]({'sectionId':_0x24721a[_0x4a0a29(0x2146)]['id'],'nolimit':!![]})['$promise']['then'](function(_0x354080){_0x19abb6(_0x354080);})[_0x4a0a29(0x129e)](function(_0x3f58a9){_0x2ce9b3(_0x3f58a9);});});}function _0x2c28e5(){return _0x26e563(function(_0x4392aa,_0x480926){const _0x417ac4=a0_0x3bb9,_0x21f486=_0x606b5e[_0x24721a[_0x417ac4(0x161a)]];return _0x21f486[_0x24721a['getApi']]({'id':_0x24721a[_0x417ac4(0x958)]['id'],'fields':_0x417ac4(0x7a7),'nolimit':!![]})['$promise'][_0x417ac4(0x146b)](function(_0x242055){_0x4392aa(_0x242055);})[_0x417ac4(0x129e)](function(_0x4fc4fe){_0x480926(_0x4fc4fe);});});}function _0x75d974(){return _0x26e563(function(_0x52806c,_0x261b0f){const _0x353df3=a0_0x3bb9;return _0x606b5e['cmList']['get']({'fields':_0x353df3(0x7a7),'nolimit':!![]})[_0x353df3(0x2945)][_0x353df3(0x146b)](function(_0x6b1a86){_0x52806c(_0x6b1a86);})['catch'](function(_0x1eb3c8){_0x261b0f(_0x1eb3c8);});});}function _0x243ef1(_0x204ba9){return _0x26e563(function(_0x46d5e1,_0x189676){const _0x5b87f4=a0_0x3bb9;if(_0x3f65c0()['isEmpty'](_0x204ba9))_0x46d5e1();else{const _0x1494c1=_0x606b5e[_0x24721a[_0x5b87f4(0x161a)]];_0x1494c1[_0x24721a['addApi']]({'id':_0x24721a[_0x5b87f4(0x958)]['id'],'ids':_0x3f65c0()[_0x5b87f4(0x205)](_0x204ba9,'id')})[_0x5b87f4(0x2945)][_0x5b87f4(0x146b)](function(){_0x46d5e1();})[_0x5b87f4(0x129e)](function(_0x26cd2e){_0x189676(_0x26cd2e);});}});}function _0x24e186(_0x4683ee){return _0x26e563(function(_0x154761,_0x24e801){const _0x163255=a0_0x3bb9;if(_0x3f65c0()[_0x163255(0x2635)](_0x4683ee))_0x154761();else{const _0x1f55a0=_0x606b5e[_0x24721a[_0x163255(0x161a)]];_0x1f55a0[_0x24721a[_0x163255(0x1ae9)]]({'id':_0x24721a[_0x163255(0x958)]['id'],'ids':_0x3f65c0()[_0x163255(0x205)](_0x4683ee,'id')})[_0x163255(0x2945)][_0x163255(0x146b)](function(){_0x154761();})[_0x163255(0x129e)](function(_0x5e8ec6){_0x24e801(_0x5e8ec6);});}});}function _0x24ed08(){const _0x38cce5=_0x1723cb;_0x24721a[_0x38cce5(0x1699)]=!![];const _0x4ad42a=_0x3f65c0()['differenceBy'](_0x24721a[_0x38cce5(0xa65)],_0x24721a['selectedItems'],'id'),_0x28a47d=_0x3f65c0()[_0x38cce5(0x2796)](_0x24721a[_0x38cce5(0x1ecf)],_0x24721a[_0x38cce5(0xa65)],'id');return _0x24e186(_0x4ad42a)['then'](function(){return _0x243ef1(_0x28a47d);})[_0x38cce5(0x146b)](function(){const _0x18375e=_0x38cce5;_0x24721a[_0x18375e(0x132)]=![],_0x24721a[_0x18375e(0x2e8)]=angular[_0x18375e(0x235a)](_0x24721a[_0x18375e(0xc4e)]),_0x24721a[_0x18375e(0xa65)]=angular[_0x18375e(0x235a)](_0x24721a[_0x18375e(0x1ecf)]),_0x11b066['success']({'title':_0x18375e(0x4c0),'msg':_0x18375e(0x1031)});})[_0x38cce5(0x129e)](function(_0x54d54d){const _0x52f1c2=_0x38cce5;_0x11b066['error']({'title':_0x54d54d[_0x52f1c2(0x107b)]?_0x52f1c2(0x262a)+_0x54d54d['status']+_0x52f1c2(0x1315)+_0x54d54d[_0x52f1c2(0x167f)]:_0x52f1c2(0xa56),'msg':_0x54d54d[_0x52f1c2(0x107b)]?JSON[_0x52f1c2(0x10bb)](_0x54d54d[_0x52f1c2(0x524)]):_0x54d54d[_0x52f1c2(0xd5f)]()});})[_0x38cce5(0x1ec6)](function(){const _0x2d6016=_0x38cce5;_0x24721a[_0x2d6016(0x1699)]=![];});}function _0x1ca4ad(){_0x38f00['hide']();}}const _0x466d4b=_0x479872;;_0x26b19f[_0x313a4d(0x11c2)]=[_0x313a4d(0x10e8),_0x313a4d(0x1862),_0x313a4d(0x1fe4),_0x313a4d(0x247f),_0x313a4d(0x958),_0x313a4d(0x13f8),_0x313a4d(0x214b)];function _0x26b19f(_0x2b1587,_0x401e2a,_0x57df57,_0x1da9a7,_0xb9af4c,_0x5994df,_0x577f36){const _0x5880f7=_0x313a4d,_0x840da5=this;_0x840da5['newIvrCampaign']=!![],_0x840da5[_0x5880f7(0x958)]=angular[_0x5880f7(0x235a)](_0xb9af4c),_0x840da5[_0x5880f7(0x13f8)]=_0x5994df,_0x840da5[_0x5880f7(0x1189)]=_0x577f36[_0x5880f7(0xde)]('MOTIONDIALER.CLONE_IVRCAMPAIGN');_0xb9af4c&&_0xb9af4c[_0x5880f7(0x19eb)]&&(_0x840da5[_0x5880f7(0x1189)]+=':\x20'+_0xb9af4c[_0x5880f7(0x19eb)]);_0x840da5[_0x5880f7(0x3ff)]=_0x1332dd,_0x840da5[_0x5880f7(0x13f3)]=_0x949db1;function _0x1332dd(){const _0x256d96=_0x5880f7;return _0x1da9a7['campaign'][_0x256d96(0x12cc)]({'id':_0xb9af4c['id']},_0x840da5[_0x256d96(0x958)])[_0x256d96(0x2945)][_0x256d96(0x146b)](function(_0x410e37){const _0x23763e=_0x256d96;_0x840da5['ivrCampaigns'][_0x23763e(0xb3d)](_0x410e37[_0x23763e(0x2488)]()),_0x57df57['success']({'title':_0x23763e(0x8ce),'msg':_0x840da5['ivrCampaign'][_0x23763e(0x19eb)]?_0x840da5[_0x23763e(0x958)][_0x23763e(0x19eb)]+_0x23763e(0x1b63):''}),_0x401e2a['go'](_0x23763e(0x2463),{'id':_0x410e37['id']}),_0x949db1(_0x410e37);})[_0x256d96(0x129e)](function(_0x3aef55){const _0x3f97f1=_0x256d96;if(_0x3aef55[_0x3f97f1(0x524)]&&_0x3aef55[_0x3f97f1(0x524)][_0x3f97f1(0xcef)]&&_0x3aef55[_0x3f97f1(0x524)]['errors'][_0x3f97f1(0x402)]){_0x840da5['errors']=_0x3aef55[_0x3f97f1(0x524)][_0x3f97f1(0xcef)]||[{'message':_0x3aef55[_0x3f97f1(0xd5f)](),'type':_0x3f97f1(0x586)}];for(let _0x1bc734=0x0;_0x1bc734<_0x3aef55[_0x3f97f1(0x524)][_0x3f97f1(0xcef)][_0x3f97f1(0x402)];_0x1bc734+=0x1){_0x57df57[_0x3f97f1(0x1980)]({'title':_0x3aef55[_0x3f97f1(0x524)][_0x3f97f1(0xcef)][_0x1bc734][_0x3f97f1(0x1142)],'msg':_0x3aef55[_0x3f97f1(0x524)][_0x3f97f1(0xcef)][_0x1bc734]['message']});}}else _0x57df57[_0x3f97f1(0x1980)]({'title':_0x3aef55[_0x3f97f1(0x107b)]?_0x3f97f1(0x262a)+_0x3aef55[_0x3f97f1(0x107b)]+_0x3f97f1(0x1315)+_0x3aef55['statusText']:'api.campaign.clone','msg':_0x3aef55[_0x3f97f1(0x524)]?JSON['stringify'](_0x3aef55['data'][_0x3f97f1(0x7fd)]):_0x3aef55[_0x3f97f1(0xd5f)]()});});}function _0x949db1(_0x34cf3c){const _0x24237a=_0x5880f7;_0x2b1587[_0x24237a(0x2458)](_0x34cf3c);}}const _0x573f5d=_0x26b19f;;_0xc79e97[_0x313a4d(0x11c2)]=['$cookies',_0x313a4d(0x910),_0x313a4d(0x1862),'$q',_0x313a4d(0x214b),'$timeout','$mdDialog',_0x313a4d(0x4d8),_0x313a4d(0x1fe4),_0x313a4d(0x247f),_0x313a4d(0xa87)];function _0xc79e97(_0x322ff3,_0x3adcd5,_0x3a50d5,_0x5dcbbb,_0x30ac07,_0x175199,_0x5a34ab,_0x2c4cc1,_0x33ca2a,_0x366542,_0x1473fe){const _0x5dced5=_0x313a4d,_0x32c505=this;_0x32c505[_0x5dced5(0x2321)]=_0x1473fe['getCurrentUser'](),_0x32c505[_0x5dced5(0x958)]={},_0x32c505[_0x5dced5(0x790)]={'count':0x0,'rows':[]},_0x32c505[_0x5dced5(0x1d5a)]=[],_0x32c505['crudPermissions'],_0x32c505[_0x5dced5(0x1a56)]={'fields':'createdAt,updatedAt,ContactId,phone','sort':'-id','limit':0xa,'page':0x1},_0x32c505[_0x5dced5(0x5aa)]=_0x21571c,_0x32c505['deleteConfirm']=_0x5c8eee,_0x32c505[_0x5dced5(0x1c75)]=_0x5a36c4,_0x32c505[_0x5dced5(0x1663)]=_0x3c9ee0,_0x32c505[_0x5dced5(0x996)]=_0x4acb2b,_0x32c505[_0x5dced5(0x166d)]=_0x3c3bd6,_0x32c505[_0x5dced5(0x2df)]=_0x3fe27d;function _0x21571c(_0x275ea3,_0x42daa2){const _0x1b75ca=_0x5dced5;_0x32c505[_0x1b75ca(0x958)]=_0x275ea3,_0x32c505[_0x1b75ca(0x2514)]=typeof _0x42daa2!==_0x1b75ca(0x2274)?_0x42daa2:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x32c505[_0x1b75ca(0x1a56)][_0x1b75ca(0x1ee8)]=_0x32c505['ivrCampaign']['id'],_0x32c505[_0x1b75ca(0x1a56)]['id']=_0x32c505[_0x1b75ca(0x958)]['id'],_0x3c9ee0();}function _0x5c8eee(_0x22d286,_0x47d11b){const _0x3d072b=_0x5dced5,_0x4568f6=_0x5a34ab[_0x3d072b(0x1e8a)]()[_0x3d072b(0x1189)](_0x3d072b(0x1477))[_0x3d072b(0x1cbe)](_0x3d072b(0x16d3)+(_0x22d286[_0x3d072b(0x19eb)]||_0x22d286['id']&&_0x3f65c0()[_0x3d072b(0x21cf)](_0x3d072b(0x19cf))+_0x22d286['id']||_0x3d072b(0x17b1))+_0x3d072b(0x252f)+'\x20will\x20be\x20deleted.')[_0x3d072b(0x4bd)](_0x3d072b(0x126a))[_0x3d072b(0x1f27)](_0x47d11b)['ok']('OK')[_0x3d072b(0x6c3)](_0x3d072b(0x39a));_0x5a34ab[_0x3d072b(0x2615)](_0x4568f6)[_0x3d072b(0x146b)](function(){_0x3c3bd6(_0x22d286);},function(){const _0x567bee=_0x3d072b;console['log'](_0x567bee(0x39a));});}function _0x5a36c4(_0x3aff0f){const _0x3d12d5=_0x5dced5;_0x32c505[_0x3d12d5(0x790)]=_0x3aff0f||{'count':0x0,'rows':[]};}function _0x3c9ee0(){const _0x13b6d8=_0x5dced5;_0x32c505[_0x13b6d8(0x1a56)][_0x13b6d8(0x145d)]=(_0x32c505[_0x13b6d8(0x1a56)][_0x13b6d8(0x844)]-0x1)*_0x32c505['query'][_0x13b6d8(0x221e)],_0x32c505[_0x13b6d8(0xb9c)]=_0x366542['campaign']['getHopperBlacks'](_0x32c505['query'],_0x5a36c4)[_0x13b6d8(0x2945)];}function _0x3c3bd6(_0x226e49){const _0x64ace1=_0x5dced5;_0x366542[_0x64ace1(0x17b1)][_0x64ace1(0x1fac)]({'id':_0x226e49['id']})['$promise'][_0x64ace1(0x146b)](function(){const _0x4b8eda=_0x64ace1;_0x3f65c0()['remove'](_0x32c505[_0x4b8eda(0x790)][_0x4b8eda(0x19c7)],{'id':_0x226e49['id']}),_0x32c505[_0x4b8eda(0x790)][_0x4b8eda(0x51c)]-=0x1,!_0x32c505[_0x4b8eda(0x790)][_0x4b8eda(0x19c7)][_0x4b8eda(0x402)]&&_0x3c9ee0(),_0x33ca2a['success']({'title':'HopperBlack\x20deleted!','msg':_0x226e49[_0x4b8eda(0x19eb)]?_0x226e49[_0x4b8eda(0x19eb)]+_0x4b8eda(0x23e3):''});})['catch'](function(_0x121b82){const _0x254c13=_0x64ace1;if(_0x121b82[_0x254c13(0x524)]&&_0x121b82['data'][_0x254c13(0xcef)]&&_0x121b82[_0x254c13(0x524)][_0x254c13(0xcef)]['length']){_0x32c505[_0x254c13(0xcef)]=_0x121b82[_0x254c13(0x524)][_0x254c13(0xcef)]||[{'message':_0x121b82[_0x254c13(0xd5f)](),'type':_0x254c13(0x17e9)}];for(let _0x2a03e2=0x0;_0x2a03e2<_0x121b82['data'][_0x254c13(0xcef)][_0x254c13(0x402)];_0x2a03e2++){_0x33ca2a[_0x254c13(0x1980)]({'title':_0x121b82[_0x254c13(0x524)][_0x254c13(0xcef)][_0x2a03e2]['type'],'msg':_0x121b82[_0x254c13(0x524)][_0x254c13(0xcef)][_0x2a03e2][_0x254c13(0x7fd)]});}}else _0x33ca2a[_0x254c13(0x1980)]({'title':_0x121b82[_0x254c13(0x107b)]?_0x254c13(0x262a)+_0x121b82[_0x254c13(0x107b)]+_0x254c13(0x1315)+_0x121b82[_0x254c13(0x167f)]:_0x254c13(0x17e9),'msg':_0x121b82[_0x254c13(0x524)]?JSON[_0x254c13(0x10bb)](_0x121b82[_0x254c13(0x524)][_0x254c13(0x7fd)]):_0x121b82[_0x254c13(0x7fd)]||_0x121b82[_0x254c13(0xd5f)]()});});}function _0x4acb2b(){const _0x3e47e5=_0x5dced5,_0x3f6b6f=angular[_0x3e47e5(0x235a)](_0x32c505[_0x3e47e5(0x1d5a)]);return _0x32c505[_0x3e47e5(0x1d5a)]=[],_0x3f6b6f;}function _0x3fe27d(_0x1dfdba){const _0x4a9218=_0x5dced5,_0x1def58=_0x5a34ab[_0x4a9218(0x1e8a)]()[_0x4a9218(0x1189)](_0x4a9218(0x3d6))[_0x4a9218(0x1cbe)](''+_0x32c505[_0x4a9218(0x1d5a)][_0x4a9218(0x402)]+'\x20selected'+_0x4a9218(0xe01))[_0x4a9218(0x4bd)](_0x4a9218(0x14db))[_0x4a9218(0x1f27)](_0x1dfdba)['ok']('OK')[_0x4a9218(0x6c3)]('CANCEL');_0x5a34ab[_0x4a9218(0x2615)](_0x1def58)[_0x4a9218(0x146b)](function(){const _0x4cc0d0=_0x4a9218;_0x32c505[_0x4cc0d0(0x1d5a)]['forEach'](function(_0x5be98c){_0x3c3bd6(_0x5be98c);}),_0x32c505[_0x4cc0d0(0x1d5a)]=[];});}let _0x939ded=!![],_0x563766=0x1;_0x3adcd5['$watch'](_0x5dced5(0x117f),function(_0x3944e1,_0x32704f){const _0x354a4a=_0x5dced5;_0x939ded?_0x175199(function(){_0x939ded=![];}):(!_0x32704f&&(_0x563766=_0x32c505['query'][_0x354a4a(0x844)]),_0x3944e1!==_0x32704f&&(_0x32c505['query'][_0x354a4a(0x844)]=0x1),!_0x3944e1&&(_0x32c505['query'][_0x354a4a(0x844)]=_0x563766),_0x3c9ee0());});}const _0x5a968d=_0xc79e97;;_0x5d251f[_0x313a4d(0x11c2)]=[_0x313a4d(0x23df),_0x313a4d(0x910),'$state','$q',_0x313a4d(0x214b),_0x313a4d(0x1abe),_0x313a4d(0x10e8),_0x313a4d(0x4d8),_0x313a4d(0x1fe4),_0x313a4d(0x247f),'Auth'];function _0x5d251f(_0x4e79af,_0x2e36b3,_0x1f151e,_0x3fb5e1,_0x2f1daf,_0x11488a,_0x25cbeb,_0x380851,_0x3a853d,_0x45544c,_0x53167e){const _0xd88ec3=_0x313a4d,_0x93b1e9=this;_0x93b1e9[_0xd88ec3(0x2321)]=_0x53167e[_0xd88ec3(0xb12)](),_0x93b1e9[_0xd88ec3(0x1471)]={},_0x93b1e9['ivrCampaign']={},_0x93b1e9[_0xd88ec3(0xab6)]={'count':0x0,'rows':[]},_0x93b1e9[_0xd88ec3(0x6d7)]=[],_0x93b1e9[_0xd88ec3(0x2514)],_0x93b1e9[_0xd88ec3(0x1a56)]={'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':'-id','limit':0xa,'page':0x1},_0x93b1e9['init']=_0x23d1a3,_0x93b1e9[_0xd88ec3(0x19b4)]=_0x3a24af,_0x93b1e9[_0xd88ec3(0x1c75)]=_0x3262af,_0x93b1e9[_0xd88ec3(0x1b8c)]=_0x3eefae,_0x93b1e9['exportSelectedIvrCampaignHopperFinals']=_0x2ee6b3,_0x93b1e9[_0xd88ec3(0x21b7)]=_0x5dc5b8,_0x93b1e9[_0xd88ec3(0x19d2)]=_0x592b20,_0x93b1e9['moveIvrCampaignHopperFinal']=_0x545eed,_0x93b1e9['moveContactsIvrCampaignHopperFinal']=_0x319680,_0x93b1e9[_0xd88ec3(0x197a)]=_0x4e7a7e,_0x93b1e9[_0xd88ec3(0x1b48)]=_0xa823d5,_0x93b1e9[_0xd88ec3(0x1546)]=_0x1f02d6;function _0x23d1a3(_0x162441,_0x19d884){const _0x419cb3=_0xd88ec3;_0x93b1e9[_0x419cb3(0x958)]=_0x162441,_0x93b1e9['crudPermissions']=typeof _0x19d884!==_0x419cb3(0x2274)?_0x19d884:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x93b1e9[_0x419cb3(0x1a56)]['CampaignId']=_0x93b1e9['ivrCampaign']['id'],_0x93b1e9[_0x419cb3(0x1a56)]['id']=_0x93b1e9[_0x419cb3(0x958)]['id'],_0x3eefae();}function _0x3a24af(_0x1b6e94,_0x4b7c5e){const _0xe6ec4=_0xd88ec3,_0x164d30=_0x25cbeb[_0xe6ec4(0x1e8a)]()[_0xe6ec4(0x1189)](_0xe6ec4(0xdf7))[_0xe6ec4(0x1cbe)](''+(_0x1b6e94[_0xe6ec4(0x19eb)]||_0x1b6e94['id']&&_0x3f65c0()[_0xe6ec4(0x21cf)](_0xe6ec4(0x1463))+_0x1b6e94['id']||'hopperFinal')+_0xe6ec4(0x252f)+_0xe6ec4(0xe01))['ariaLabel'](_0xe6ec4(0x20d))['targetEvent'](_0x4b7c5e)['ok']('OK')[_0xe6ec4(0x6c3)]('CANCEL');_0x25cbeb[_0xe6ec4(0x2615)](_0x164d30)[_0xe6ec4(0x146b)](function(){_0x5dc5b8(_0x1b6e94);},function(){const _0xc7991a=_0xe6ec4;console['log'](_0xc7991a(0x39a));});}function _0x3262af(_0x34c4cb){const _0x5e3e2e=_0xd88ec3;_0x93b1e9[_0x5e3e2e(0xab6)]=_0x34c4cb||{'count':0x0,'rows':[]};}function _0x3eefae(){const _0x3f4428=_0xd88ec3;_0x93b1e9[_0x3f4428(0x1a56)][_0x3f4428(0x145d)]=(_0x93b1e9[_0x3f4428(0x1a56)][_0x3f4428(0x844)]-0x1)*_0x93b1e9[_0x3f4428(0x1a56)][_0x3f4428(0x221e)],_0x93b1e9[_0x3f4428(0xb9c)]=_0x45544c[_0x3f4428(0x8dc)][_0x3f4428(0x642)](_0x93b1e9[_0x3f4428(0x1a56)],_0x3262af)[_0x3f4428(0x2945)];}function _0x5dc5b8(_0x648dcb){const _0x50f510=_0xd88ec3;_0x45544c[_0x50f510(0xafc)][_0x50f510(0x1fac)]({'id':_0x648dcb['id']})[_0x50f510(0x2945)][_0x50f510(0x146b)](function(){const _0xd7a090=_0x50f510;_0x3f65c0()['remove'](_0x93b1e9['ivrCampaignHopperFinals'][_0xd7a090(0x19c7)],{'id':_0x648dcb['id']}),_0x93b1e9[_0xd7a090(0xab6)][_0xd7a090(0x51c)]-=0x1,!_0x93b1e9[_0xd7a090(0xab6)][_0xd7a090(0x19c7)][_0xd7a090(0x402)]&&_0x3eefae(),_0x3a853d[_0xd7a090(0x1c75)]({'title':'HopperFinal\x20deleted!','msg':_0x648dcb[_0xd7a090(0x19eb)]?_0x648dcb['name']+_0xd7a090(0x23e3):''});})[_0x50f510(0x129e)](function(_0x4168a4){const _0x153bc6=_0x50f510;if(_0x4168a4[_0x153bc6(0x524)]&&_0x4168a4[_0x153bc6(0x524)]['errors']&&_0x4168a4[_0x153bc6(0x524)]['errors'][_0x153bc6(0x402)]){_0x93b1e9['errors']=_0x4168a4[_0x153bc6(0x524)][_0x153bc6(0xcef)]||[{'message':_0x4168a4[_0x153bc6(0xd5f)](),'type':_0x153bc6(0x17e9)}];for(let _0x72e48c=0x0;_0x72e48c<_0x4168a4['data'][_0x153bc6(0xcef)]['length'];_0x72e48c++){_0x3a853d[_0x153bc6(0x1980)]({'title':_0x4168a4[_0x153bc6(0x524)][_0x153bc6(0xcef)][_0x72e48c]['type'],'msg':_0x4168a4[_0x153bc6(0x524)][_0x153bc6(0xcef)][_0x72e48c][_0x153bc6(0x7fd)]});}}else _0x3a853d['error']({'title':_0x4168a4['status']?_0x153bc6(0x262a)+_0x4168a4['status']+'\x20-\x20'+_0x4168a4[_0x153bc6(0x167f)]:_0x153bc6(0x17e9),'msg':_0x4168a4[_0x153bc6(0x524)]?JSON['stringify'](_0x4168a4[_0x153bc6(0x524)][_0x153bc6(0x7fd)]):_0x4168a4[_0x153bc6(0x7fd)]||_0x4168a4[_0x153bc6(0xd5f)]()});});}function _0x2ee6b3(){const _0x13cc39=_0xd88ec3,_0xd14b5d=angular[_0x13cc39(0x235a)](_0x93b1e9[_0x13cc39(0x6d7)]);return _0x93b1e9[_0x13cc39(0x6d7)]=[],_0xd14b5d;}function _0x592b20(_0x30f66f){const _0x59ce8a=_0xd88ec3,_0x980947=_0x25cbeb[_0x59ce8a(0x1e8a)]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20hopperFinals?')[_0x59ce8a(0x1cbe)](_0x59ce8a(0x16d3)+_0x93b1e9[_0x59ce8a(0x6d7)][_0x59ce8a(0x402)]+_0x59ce8a(0x2452)+_0x59ce8a(0xe01))[_0x59ce8a(0x4bd)](_0x59ce8a(0x40d))[_0x59ce8a(0x1f27)](_0x30f66f)['ok']('OK')[_0x59ce8a(0x6c3)](_0x59ce8a(0x39a));_0x25cbeb[_0x59ce8a(0x2615)](_0x980947)[_0x59ce8a(0x146b)](function(){const _0x5e693e=_0x59ce8a;_0x93b1e9[_0x5e693e(0x6d7)]['forEach'](function(_0x467895){_0x5dc5b8(_0x467895);}),_0x93b1e9[_0x5e693e(0x6d7)]=[];});}function _0x319680(_0x58a241){const _0x56e6c4=_0xd88ec3;_0x45544c[_0x56e6c4(0x2018)][_0x56e6c4(0x2881)]({'id':_0x93b1e9['query']['id'],'state':_0x58a241})[_0x56e6c4(0x2945)][_0x56e6c4(0x146b)](function(_0x345fd0){const _0x22ced3=_0x56e6c4;_0x3f65c0()['isNil'](_0x345fd0)&&_0x3f65c0()[_0x22ced3(0x1b36)](_0x345fd0[0x0])?_0x3a853d[_0x22ced3(0x271e)]({'title':_0x22ced3(0xf6f),'msg':'0'}):_0x3a853d['info']({'title':'Restored\x20Contacts','msg':JSON[_0x22ced3(0x10bb)](_0x345fd0[0x0]['affectedRows'])});})[_0x56e6c4(0x129e)](function(_0x5e84fa){const _0x1e88b1=_0x56e6c4;_0x3a853d['error']({'title':_0x5e84fa[_0x1e88b1(0x107b)]?_0x1e88b1(0x262a)+_0x5e84fa['status']+_0x1e88b1(0x1315)+_0x5e84fa[_0x1e88b1(0x167f)]:_0x1e88b1(0xfac),'msg':_0x5e84fa[_0x1e88b1(0x524)]?JSON[_0x1e88b1(0x10bb)](_0x5e84fa[_0x1e88b1(0x524)][_0x1e88b1(0x7fd)]):_0x5e84fa[_0x1e88b1(0x7fd)]||_0x5e84fa[_0x1e88b1(0xd5f)]()});});}function _0x4e7a7e(_0x4a5f3a){const _0x493527=_0xd88ec3;_0x45544c[_0x493527(0x2018)][_0x493527(0x197a)]({'id':_0x4a5f3a})[_0x493527(0x2945)][_0x493527(0x146b)](function(_0x30bd92){const _0x1fbfc9=_0x493527;_0x3f65c0()[_0x1fbfc9(0x168d)](_0x93b1e9[_0x1fbfc9(0x1471)],_0x30bd92[0x0]);})[_0x493527(0x129e)](function(_0x13c7e9){const _0x1af010=_0x493527;_0x3a853d[_0x1af010(0x1980)]({'title':_0x13c7e9[_0x1af010(0x107b)]?_0x1af010(0x262a)+_0x13c7e9[_0x1af010(0x107b)]+_0x1af010(0x1315)+_0x13c7e9[_0x1af010(0x167f)]:'SYSTEM:GETcampaign','msg':_0x13c7e9[_0x1af010(0x524)]?JSON[_0x1af010(0x10bb)](_0x13c7e9[_0x1af010(0x524)][_0x1af010(0x7fd)]):_0x13c7e9['message']||_0x13c7e9[_0x1af010(0xd5f)]()});});}function _0x1f02d6(_0x4e4c4e){const _0x2916e9=_0xd88ec3,_0x504e2d=_0x25cbeb['confirm']()['title']('Are\x20you\x20sure\x20want\x20to\x20restore\x20the\x20selected\x20contacts?')[_0x2916e9(0x1cbe)]('\x20Contacts\x20selected'+_0x2916e9(0x1996))['ariaLabel']('Restore\x20Contacts')['targetEvent'](_0x4e4c4e)['ok']('OK')[_0x2916e9(0x6c3)](_0x2916e9(0x39a));_0x25cbeb['show'](_0x504e2d)['then'](function(){const _0x436234=_0x2916e9;_0x93b1e9['selectedIvrCampaignHopperFinals'][_0x436234(0x1df5)](function(_0x34b9f1){_0x545eed(_0x34b9f1);}),_0x93b1e9[_0x436234(0x6d7)]=[];});}function _0xa823d5(_0x4e10ef,_0x142365){const _0x152de2=_0xd88ec3,_0x651186=_0x25cbeb[_0x152de2(0x1e8a)]()['title'](_0x152de2(0x1a48))[_0x152de2(0x1cbe)](_0x152de2(0x16d3)+'Contact'+_0x152de2(0x252f)+'\x20will\x20be\x20restored.')[_0x152de2(0x4bd)]('Restore\x20Contact')[_0x152de2(0x1f27)](_0x142365)['ok']('OK')['cancel'](_0x152de2(0x39a));_0x25cbeb['show'](_0x651186)[_0x152de2(0x146b)](function(){_0x545eed(_0x4e10ef);},function(){console['log']('CANCEL');});}function _0x3e688b(_0x1fba14){const _0x343632=_0xd88ec3,_0xe4885a={};return _0xe4885a['phone']=_0x1fba14[_0x343632(0xa5c)],_0xe4885a[_0x343632(0x432)]=_0x2deec6()()[_0x343632(0x22b0)](_0x343632(0x1ce2)),_0xe4885a[_0x343632(0x283e)]=0x0,_0xe4885a[_0x343632(0x24c9)]=0x0,_0xe4885a[_0x343632(0x1b71)]=0x0,_0xe4885a['countglobal']=0x0,_0xe4885a['ContactId']=_0x1fba14['ContactId'],_0xe4885a[_0x343632(0xb7c)]=_0x1fba14[_0x343632(0xb7c)],_0xe4885a[_0x343632(0xea2)]=_0x1fba14[_0x343632(0x27af)]?null:_0x1fba14[_0x343632(0xea2)],_0xe4885a[_0x343632(0x6ed)]=_0x1fba14[_0x343632(0x6ed)],_0xe4885a['CampaignId']=_0x1fba14[_0x343632(0x1ee8)],_0xe4885a[_0x343632(0xa6a)]=_0x1fba14[_0x343632(0x2762)]?0x3:0x2,_0xe4885a[_0x343632(0x2762)]=_0x1fba14[_0x343632(0x2762)]?!![]:![],_0xe4885a;}function _0xeaea1(_0x4104c3){const _0x4d7073=_0xd88ec3,_0x22a5d2={};return _0x22a5d2['calleridnum']=_0x4104c3[_0x4d7073(0xa5c)],_0x22a5d2[_0x4d7073(0x1772)]=_0x4104c3[_0x4d7073(0x1772)],_0x22a5d2[_0x4d7073(0x432)]=_0x2deec6()()[_0x4d7073(0x22b0)](_0x4d7073(0x1ce2)),_0x22a5d2['countbusyretry']=_0x4104c3['countbusyretry'],_0x22a5d2['countcongestionretry']=_0x4104c3['countcongestionretry'],_0x22a5d2['countnoanswerretry']=_0x4104c3['countnoanswerretry'],_0x22a5d2[_0x4d7073(0x1adf)]=_0x4104c3[_0x4d7073(0x1adf)],_0x22a5d2[_0x4d7073(0x932)]=_0x4104c3[_0x4d7073(0x932)],_0x22a5d2[_0x4d7073(0xb7c)]=_0x4104c3[_0x4d7073(0xb7c)],_0x22a5d2[_0x4d7073(0xea2)]=_0x53167e[_0x4d7073(0xb12)]()['id'],_0x22a5d2['VoiceQueueId']=_0x4104c3['VoiceQueueId'],_0x22a5d2[_0x4d7073(0x1ee8)]=_0x4104c3[_0x4d7073(0x1ee8)],_0x22a5d2['editedat']=_0x2deec6()()[_0x4d7073(0x22b0)](_0x4d7073(0x1ce2)),_0x22a5d2[_0x4d7073(0x6aa)]=!![],_0x22a5d2[_0x4d7073(0x13d6)]=0x19,_0x22a5d2['statedesc']='Restored',_0x22a5d2['campaign']=_0x4104c3['campaign'],_0x22a5d2[_0x4d7073(0xaeb)]=_0x4104c3[_0x4d7073(0x6ed)]?_0x4d7073(0x1c72):_0x4d7073(0x1f0),_0x22a5d2;}function _0x545eed(_0x4f070b){const _0x48b553=_0xd88ec3;_0x45544c['cmHopperFinal']['checkContactHopper'](_0x4f070b)[_0x48b553(0x2945)][_0x48b553(0x146b)](function(_0x11bea9){const _0x3788c9=_0x48b553;_0x3a853d[_0x3788c9(0x271e)]({'title':'The\x20contact\x20is\x20in\x20the\x20hopper','msg':_0x3788c9(0x151)+_0x11bea9['ContactId']});})[_0x48b553(0x129e)](function(_0x252eaa){const _0x1580f5=_0x48b553;_0x252eaa[_0x1580f5(0x524)]===_0x1580f5(0x159d)?_0x45544c[_0x1580f5(0x39f)]['save'](_0x3e688b(_0x4f070b))[_0x1580f5(0x2945)][_0x1580f5(0x146b)](function(_0x5dd3c7){const _0x410a4d=_0x1580f5;_0x3a853d[_0x410a4d(0x271e)]({'title':_0x410a4d(0x819),'msg':_0x410a4d(0x151)+_0x5dd3c7[_0x410a4d(0x932)]}),_0x5dd3c7[_0x410a4d(0x932)]&&_0x45544c[_0x410a4d(0x22e3)][_0x410a4d(0x1e3)](_0xeaea1(_0x4f070b));})[_0x1580f5(0x129e)](function(_0x296675){const _0x5143b5=_0x1580f5;!_0x3f65c0()[_0x5143b5(0x1b36)](_0x296675['data'])&&_0x296675['data']['message']===_0x5143b5(0xe0e)?_0x3a853d[_0x5143b5(0x271e)]({'title':'The\x20contact\x20is\x20in\x20the\x20hopper','msg':'Contact\x20ID\x20'+_0x4f070b[_0x5143b5(0x932)]}):_0x3a853d[_0x5143b5(0x1980)]({'title':_0x296675['status']?_0x5143b5(0x262a)+_0x296675[_0x5143b5(0x107b)]+_0x5143b5(0x1315)+_0x296675[_0x5143b5(0x167f)]:'SYSTEM:GETvoiceQueue','msg':_0x296675[_0x5143b5(0x524)]?JSON[_0x5143b5(0x10bb)](_0x296675[_0x5143b5(0x524)][_0x5143b5(0x7fd)]):_0x296675['message']||_0x296675[_0x5143b5(0xd5f)]()});}):_0x3a853d[_0x1580f5(0x1980)]({'title':_0x252eaa[_0x1580f5(0x107b)]?'API:'+_0x252eaa[_0x1580f5(0x107b)]+_0x1580f5(0x1315)+_0x252eaa[_0x1580f5(0x167f)]:_0x1580f5(0xfac),'msg':_0x252eaa[_0x1580f5(0x524)]?JSON[_0x1580f5(0x10bb)](_0x252eaa[_0x1580f5(0x524)][_0x1580f5(0x7fd)]):_0x252eaa['message']||_0x252eaa[_0x1580f5(0xd5f)]()});});}let _0x2667b1=!![],_0x2119cc=0x1;_0x2e36b3[_0xd88ec3(0x21e8)](_0xd88ec3(0x117f),function(_0x51f014,_0x581dbd){const _0x138f71=_0xd88ec3;_0x2667b1?_0x11488a(function(){_0x2667b1=![];}):(!_0x581dbd&&(_0x2119cc=_0x93b1e9[_0x138f71(0x1a56)][_0x138f71(0x844)]),_0x51f014!==_0x581dbd&&(_0x93b1e9['query']['page']=0x1),!_0x51f014&&(_0x93b1e9[_0x138f71(0x1a56)][_0x138f71(0x844)]=_0x2119cc),_0x3eefae());});}const _0x254d1c=_0x5d251f;;_0x3bba6c[_0x313a4d(0x11c2)]=[_0x313a4d(0x23df),_0x313a4d(0x910),'$state','$q','$translate','$timeout',_0x313a4d(0x10e8),_0x313a4d(0x4d8),_0x313a4d(0x1fe4),_0x313a4d(0x247f),'Auth'];function _0x3bba6c(_0x5affa9,_0x2be927,_0xdca8e8,_0x5e48bf,_0x30fce7,_0x39efcf,_0x2f7c99,_0x3c03f7,_0x2e4f87,_0xd5b1e2,_0x466f25){const _0x3cdb1c=_0x313a4d,_0x2f40ab=this;_0x2f40ab['currentUser']=_0x466f25[_0x3cdb1c(0xb12)](),_0x2f40ab[_0x3cdb1c(0x958)]={},_0x2f40ab['ivrCampaignHopperHistories']={'count':0x0,'rows':[]},_0x2f40ab[_0x3cdb1c(0x1522)]=[],_0x2f40ab['crudPermissions'],_0x2f40ab[_0x3cdb1c(0x1a56)]={'fields':_0x3cdb1c(0x1cf7),'sort':_0x3cdb1c(0xef6),'limit':0xa,'page':0x1},_0x2f40ab[_0x3cdb1c(0x5aa)]=_0x3ef201,_0x2f40ab[_0x3cdb1c(0x19b4)]=_0x9895c5,_0x2f40ab[_0x3cdb1c(0x1c75)]=_0x27930c,_0x2f40ab[_0x3cdb1c(0x20a)]=_0x148f8c,_0x2f40ab['exportSelectedIvrCampaignHopperHistories']=_0x168c1a,_0x2f40ab['deleteIvrCampaignHopperHistory']=_0x17fbe5,_0x2f40ab[_0x3cdb1c(0x1a24)]=_0x401168;function _0x3ef201(_0x3f4b6a,_0x46ac4d){const _0x253270=_0x3cdb1c;_0x2f40ab['ivrCampaign']=_0x3f4b6a,_0x2f40ab[_0x253270(0x2514)]=typeof _0x46ac4d!==_0x253270(0x2274)?_0x46ac4d:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x2f40ab['query'][_0x253270(0x1ee8)]=_0x2f40ab[_0x253270(0x958)]['id'],_0x2f40ab[_0x253270(0x1a56)]['id']=_0x2f40ab[_0x253270(0x958)]['id'],_0x148f8c();}function _0x9895c5(_0x2ffaf3,_0x5a4599){const _0x3d6f93=_0x3cdb1c,_0x7560dd=_0x2f7c99['confirm']()[_0x3d6f93(0x1189)](_0x3d6f93(0x2136))[_0x3d6f93(0x1cbe)](_0x3d6f93(0x16d3)+(_0x2ffaf3[_0x3d6f93(0x19eb)]||_0x2ffaf3['id']&&_0x3f65c0()['upperFirst'](_0x3d6f93(0x1493))+_0x2ffaf3['id']||_0x3d6f93(0x2040))+_0x3d6f93(0x252f)+_0x3d6f93(0xe01))['ariaLabel'](_0x3d6f93(0x1655))[_0x3d6f93(0x1f27)](_0x5a4599)['ok']('OK')[_0x3d6f93(0x6c3)](_0x3d6f93(0x39a));_0x2f7c99[_0x3d6f93(0x2615)](_0x7560dd)[_0x3d6f93(0x146b)](function(){_0x17fbe5(_0x2ffaf3);},function(){const _0x37676c=_0x3d6f93;console[_0x37676c(0x1a74)]('CANCEL');});}function _0x27930c(_0x2cb06d){const _0x55295a=_0x3cdb1c;_0x2f40ab[_0x55295a(0x22bc)]=_0x2cb06d||{'count':0x0,'rows':[]};}function _0x148f8c(){const _0x20bde3=_0x3cdb1c;_0x2f40ab[_0x20bde3(0x1a56)]['offset']=(_0x2f40ab[_0x20bde3(0x1a56)][_0x20bde3(0x844)]-0x1)*_0x2f40ab[_0x20bde3(0x1a56)]['limit'],_0x2f40ab[_0x20bde3(0xb9c)]=_0xd5b1e2[_0x20bde3(0x8dc)][_0x20bde3(0x12b3)](_0x2f40ab[_0x20bde3(0x1a56)],_0x27930c)['$promise'];}function _0x17fbe5(_0x10ac66){const _0x43bc4c=_0x3cdb1c;_0xd5b1e2[_0x43bc4c(0x2040)][_0x43bc4c(0x1fac)]({'id':_0x10ac66['id']})[_0x43bc4c(0x2945)][_0x43bc4c(0x146b)](function(){const _0x35257d=_0x43bc4c;_0x3f65c0()['remove'](_0x2f40ab[_0x35257d(0x22bc)][_0x35257d(0x19c7)],{'id':_0x10ac66['id']}),_0x2f40ab[_0x35257d(0x22bc)][_0x35257d(0x51c)]-=0x1,!_0x2f40ab[_0x35257d(0x22bc)][_0x35257d(0x19c7)][_0x35257d(0x402)]&&_0x148f8c(),_0x2e4f87[_0x35257d(0x1c75)]({'title':_0x35257d(0x1187),'msg':_0x10ac66[_0x35257d(0x19eb)]?_0x10ac66[_0x35257d(0x19eb)]+_0x35257d(0x23e3):''});})[_0x43bc4c(0x129e)](function(_0x479423){const _0x20a9bd=_0x43bc4c;if(_0x479423[_0x20a9bd(0x524)]&&_0x479423['data'][_0x20a9bd(0xcef)]&&_0x479423[_0x20a9bd(0x524)]['errors']['length']){_0x2f40ab[_0x20a9bd(0xcef)]=_0x479423[_0x20a9bd(0x524)][_0x20a9bd(0xcef)]||[{'message':_0x479423[_0x20a9bd(0xd5f)](),'type':'SYSTEM:GETcampaign'}];for(let _0x48ae6b=0x0;_0x48ae6b<_0x479423[_0x20a9bd(0x524)][_0x20a9bd(0xcef)][_0x20a9bd(0x402)];_0x48ae6b++){_0x2e4f87[_0x20a9bd(0x1980)]({'title':_0x479423[_0x20a9bd(0x524)][_0x20a9bd(0xcef)][_0x48ae6b]['type'],'msg':_0x479423[_0x20a9bd(0x524)][_0x20a9bd(0xcef)][_0x48ae6b][_0x20a9bd(0x7fd)]});}}else _0x2e4f87[_0x20a9bd(0x1980)]({'title':_0x479423[_0x20a9bd(0x107b)]?_0x20a9bd(0x262a)+_0x479423['status']+_0x20a9bd(0x1315)+_0x479423[_0x20a9bd(0x167f)]:_0x20a9bd(0x17e9),'msg':_0x479423[_0x20a9bd(0x524)]?JSON[_0x20a9bd(0x10bb)](_0x479423[_0x20a9bd(0x524)][_0x20a9bd(0x7fd)]):_0x479423[_0x20a9bd(0x7fd)]||_0x479423['toString']()});});}function _0x168c1a(){const _0x32068f=_0x3cdb1c,_0x391899=angular[_0x32068f(0x235a)](_0x2f40ab[_0x32068f(0x1522)]);return _0x2f40ab[_0x32068f(0x1522)]=[],_0x391899;}function _0x401168(_0x4a6155){const _0x50ac40=_0x3cdb1c,_0x54becc=_0x2f7c99['confirm']()[_0x50ac40(0x1189)](_0x50ac40(0x1683))[_0x50ac40(0x1cbe)](_0x50ac40(0x16d3)+_0x2f40ab['selectedIvrCampaignHopperHistories'][_0x50ac40(0x402)]+_0x50ac40(0x2452)+'\x20will\x20be\x20deleted.')[_0x50ac40(0x4bd)](_0x50ac40(0x111c))[_0x50ac40(0x1f27)](_0x4a6155)['ok']('OK')[_0x50ac40(0x6c3)](_0x50ac40(0x39a));_0x2f7c99[_0x50ac40(0x2615)](_0x54becc)[_0x50ac40(0x146b)](function(){const _0x20172b=_0x50ac40;_0x2f40ab[_0x20172b(0x1522)][_0x20172b(0x1df5)](function(_0x78b38a){_0x17fbe5(_0x78b38a);}),_0x2f40ab[_0x20172b(0x1522)]=[];});}let _0x253b52=!![],_0x22bea6=0x1;_0x2be927[_0x3cdb1c(0x21e8)](_0x3cdb1c(0x117f),function(_0x2ec349,_0x276cc2){const _0x39a3a5=_0x3cdb1c;_0x253b52?_0x39efcf(function(){_0x253b52=![];}):(!_0x276cc2&&(_0x22bea6=_0x2f40ab[_0x39a3a5(0x1a56)]['page']),_0x2ec349!==_0x276cc2&&(_0x2f40ab[_0x39a3a5(0x1a56)][_0x39a3a5(0x844)]=0x1),!_0x2ec349&&(_0x2f40ab[_0x39a3a5(0x1a56)]['page']=_0x22bea6),_0x148f8c());});}const _0x424793=_0x3bba6c;;_0x540106['$inject']=[_0x313a4d(0x23df),_0x313a4d(0x910),_0x313a4d(0x1862),'$q',_0x313a4d(0x214b),_0x313a4d(0x1abe),_0x313a4d(0x10e8),_0x313a4d(0x4d8),_0x313a4d(0x1fe4),'api','Auth'];function _0x540106(_0x308a8f,_0x54d289,_0xe24ef3,_0x2898a3,_0x4b2361,_0x27b9df,_0x59ae1b,_0x30a006,_0x5a3e88,_0x32163c,_0xced07e){const _0x15d7bb=_0x313a4d,_0x4f4097=this;_0x4f4097[_0x15d7bb(0x2321)]=_0xced07e[_0x15d7bb(0xb12)](),_0x4f4097['ivrCampaign']={},_0x4f4097[_0x15d7bb(0x1880)]={'count':0x0,'rows':[]},_0x4f4097[_0x15d7bb(0xbbe)]=[],_0x4f4097['crudPermissions'],_0x4f4097[_0x15d7bb(0x1a56)]={'fields':_0x15d7bb(0x1b94),'sort':_0x15d7bb(0x12f2),'limit':0xa,'page':0x1},_0x4f4097[_0x15d7bb(0x221d)]=_0x3f65c0()[_0x15d7bb(0x194)]([{'option':_0x15d7bb(0xa73),'value':_0x15d7bb(0x1428)},{'option':_0x15d7bb(0x25c5),'value':_0x15d7bb(0x1f63)},{'option':_0x15d7bb(0x6c4),'value':'\x272\x27'},{'option':_0x15d7bb(0xce5),'value':_0x15d7bb(0x729)},{'option':_0x15d7bb(0x2188),'value':_0x15d7bb(0x35c)}],function(_0x258b08){const _0x531292=_0x15d7bb;return _0x3f65c0()[_0x531292(0x5f4)](_0x258b08['value'],new RegExp('\x27','g'),'');}),_0x4f4097[_0x15d7bb(0x5aa)]=_0x209ae5,_0x4f4097[_0x15d7bb(0x19b4)]=_0x3b1471,_0x4f4097['success']=_0x4a80b8,_0x4f4097[_0x15d7bb(0x2204)]=_0x56b811,_0x4f4097[_0x15d7bb(0x1f79)]=_0x13ad11,_0x4f4097[_0x15d7bb(0x1bf1)]=_0x39aef3,_0x4f4097[_0x15d7bb(0x6ef)]=_0x304230,_0x4f4097[_0x15d7bb(0x11db)]=_0x1de2d9,_0xced07e['hasRole']('admin')?_0x32163c[_0x15d7bb(0xe7b)][_0x15d7bb(0x16b4)]({'fields':_0x15d7bb(0x7a7),'role':_0x15d7bb(0x1755),'sort':_0x15d7bb(0x19eb),'nolimit':_0x15d7bb(0x1185)})[_0x15d7bb(0x2945)][_0x15d7bb(0x146b)](function(_0x5351e6){const _0x439fe1=_0x15d7bb;_0x4f4097[_0x439fe1(0x23c0)]=_0x5351e6[_0x439fe1(0x19c7)]||[];})[_0x15d7bb(0x129e)](function(_0x124262){const _0x59a45f=_0x15d7bb;_0x5a3e88[_0x59a45f(0x1980)]({'title':_0x124262[_0x59a45f(0x107b)]?'API:'+_0x124262[_0x59a45f(0x107b)]+_0x59a45f(0x1315)+_0x124262[_0x59a45f(0x167f)]:_0x59a45f(0x557),'msg':_0x124262['data']?JSON['stringify'](_0x124262[_0x59a45f(0x524)]):_0x124262['toString']()});}):_0x32163c['user'][_0x15d7bb(0x16b4)]({'fields':_0x15d7bb(0x7a7),'role':'agent','sort':'name','nolimit':_0x15d7bb(0x1185)})['$promise'][_0x15d7bb(0x146b)](function(_0x583096){const _0x403e04=_0x15d7bb;_0x4f4097[_0x403e04(0x23c0)]=_0x583096[_0x403e04(0x19c7)]||[];})[_0x15d7bb(0x146b)](function(){const _0x58eb49=_0x15d7bb;return _0x32163c[_0x58eb49(0x1366)][_0x58eb49(0x16b4)]({'userProfileId':_0x4f4097[_0x58eb49(0x2321)][_0x58eb49(0x209a)],'sectionId':0xca})['$promise'];})[_0x15d7bb(0x146b)](function(_0x337acd){const _0x50fc49=_0x15d7bb,_0x44bb75=_0x337acd&&_0x337acd[_0x50fc49(0x19c7)]?_0x337acd[_0x50fc49(0x19c7)][0x0]:null;if(!_0x44bb75)_0x4f4097[_0x50fc49(0x23c0)]=[];else{if(!_0x44bb75[_0x50fc49(0x11d2)])return _0x32163c[_0x50fc49(0xdcc)][_0x50fc49(0x16b4)]({'sectionId':_0x44bb75['id']})[_0x50fc49(0x2945)][_0x50fc49(0x146b)](function(_0x454e99){const _0x37243f=_0x50fc49,_0x549ff1=_0x3f65c0()[_0x37243f(0x205)](_0x454e99['rows'],function(_0x4b4ad6){const _0x33cd1c=_0x37243f;return _0x3f65c0()[_0x33cd1c(0xc84)](_0x4f4097['agents'],{'id':_0x4b4ad6[_0x33cd1c(0x18b8)]});});_0x4f4097[_0x37243f(0x23c0)]['forEach'](function(_0x54a13e){const _0x19600c=_0x37243f;!_0x3f65c0()['some'](_0x549ff1,['id',_0x54a13e['id']])&&(_0x54a13e[_0x19600c(0x8ff)]=![]),_0x549ff1['push'](_0x54a13e);}),_0x4f4097[_0x37243f(0x23c0)]=_0x549ff1;});}})[_0x15d7bb(0x129e)](function(_0x2675c8){const _0x45fbef=_0x15d7bb;_0x5a3e88[_0x45fbef(0x1980)]({'title':_0x2675c8[_0x45fbef(0x107b)]?_0x45fbef(0x262a)+_0x2675c8[_0x45fbef(0x107b)]+_0x45fbef(0x1315)+_0x2675c8['statusText']:'SYSTEM:GETagents','msg':_0x2675c8[_0x45fbef(0x524)]?JSON[_0x45fbef(0x10bb)](_0x2675c8['data']):_0x2675c8[_0x45fbef(0xd5f)]()});});function _0x209ae5(_0x4361ec,_0x1e657d){const _0x228ad6=_0x15d7bb;_0x4f4097[_0x228ad6(0x958)]=_0x4361ec,_0x4f4097[_0x228ad6(0x2514)]=typeof _0x1e657d!==_0x228ad6(0x2274)?_0x1e657d:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x4f4097[_0x228ad6(0x1a56)][_0x228ad6(0x1ee8)]=_0x4f4097[_0x228ad6(0x958)]['id'],_0x4f4097[_0x228ad6(0x1a56)]['id']=_0x4f4097[_0x228ad6(0x958)]['id'],_0x56b811();}function _0x3b1471(_0x3c1e55,_0x548c1a){const _0x3082f0=_0x15d7bb,_0x20e591=_0x59ae1b[_0x3082f0(0x1e8a)]()[_0x3082f0(0x1189)](_0x3082f0(0x13ea))[_0x3082f0(0x1cbe)](_0x3082f0(0x16d3)+(_0x3c1e55[_0x3082f0(0x19eb)]||_0x3c1e55['id']&&_0x3f65c0()[_0x3082f0(0x21cf)](_0x3082f0(0x2551))+_0x3c1e55['id']||_0x3082f0(0x10fa))+_0x3082f0(0x252f)+_0x3082f0(0xe01))['ariaLabel'](_0x3082f0(0xb62))[_0x3082f0(0x1f27)](_0x548c1a)['ok']('OK')[_0x3082f0(0x6c3)]('CANCEL');_0x59ae1b['show'](_0x20e591)[_0x3082f0(0x146b)](function(){_0x304230(_0x3c1e55);},function(){const _0x49d0cb=_0x3082f0;console[_0x49d0cb(0x1a74)]('CANCEL');});}function _0x4a80b8(_0x1fa128){const _0xc323f5=_0x15d7bb;_0x4f4097[_0xc323f5(0x1880)]=_0x1fa128||{'count':0x0,'rows':[]};}function _0x56b811(){const _0x2b9ed8=_0x15d7bb;_0x4f4097[_0x2b9ed8(0x1a56)][_0x2b9ed8(0x145d)]=(_0x4f4097[_0x2b9ed8(0x1a56)]['page']-0x1)*_0x4f4097[_0x2b9ed8(0x1a56)][_0x2b9ed8(0x221e)],_0x4f4097[_0x2b9ed8(0xb9c)]=_0x32163c['campaign']['getHoppers'](_0x4f4097['query'],_0x4a80b8)[_0x2b9ed8(0x2945)];}function _0x13ad11(_0x1accb1,_0x151eaf){const _0x5ed217=_0x15d7bb;_0x59ae1b['show']({'controller':'CreateOrEditHopperCampaignIdDialogController','controllerAs':'vm','templateUrl':_0x581f39,'parent':angular[_0x5ed217(0x1853)](_0x30a006[_0x5ed217(0x2586)]),'targetEvent':_0x1accb1,'clickOutsideToClose':!![],'locals':{'ivrCampaign':_0x4f4097[_0x5ed217(0x958)],'hopper':_0x151eaf,'hoppers':_0x4f4097[_0x5ed217(0x1880)][_0x5ed217(0x19c7)],'license':null,'setting':null,'crudPermissions':_0x4f4097['crudPermissions']}});}function _0x304230(_0x9f40f2){const _0x46891e=_0x15d7bb;_0x32163c['cmHopper'][_0x46891e(0x1fac)]({'id':_0x9f40f2['id']})[_0x46891e(0x2945)]['then'](function(){const _0x38d1d9=_0x46891e;_0x3f65c0()['remove'](_0x4f4097[_0x38d1d9(0x1880)][_0x38d1d9(0x19c7)],{'id':_0x9f40f2['id']}),_0x4f4097[_0x38d1d9(0x1880)][_0x38d1d9(0x51c)]-=0x1,!_0x4f4097[_0x38d1d9(0x1880)][_0x38d1d9(0x19c7)][_0x38d1d9(0x402)]&&_0x56b811(),_0x5a3e88[_0x38d1d9(0x1c75)]({'title':'Hopper\x20deleted!','msg':_0x9f40f2['name']?_0x9f40f2['name']+_0x38d1d9(0x23e3):''});})[_0x46891e(0x129e)](function(_0x57f222){const _0x25c5d7=_0x46891e;if(_0x57f222['data']&&_0x57f222['data'][_0x25c5d7(0xcef)]&&_0x57f222[_0x25c5d7(0x524)][_0x25c5d7(0xcef)]['length']){_0x4f4097[_0x25c5d7(0xcef)]=_0x57f222[_0x25c5d7(0x524)][_0x25c5d7(0xcef)]||[{'message':_0x57f222[_0x25c5d7(0xd5f)](),'type':_0x25c5d7(0x17e9)}];for(let _0x46c2b6=0x0;_0x46c2b6<_0x57f222['data']['errors'][_0x25c5d7(0x402)];_0x46c2b6++){_0x5a3e88['error']({'title':_0x57f222[_0x25c5d7(0x524)]['errors'][_0x46c2b6][_0x25c5d7(0x1142)],'msg':_0x57f222[_0x25c5d7(0x524)]['errors'][_0x46c2b6][_0x25c5d7(0x7fd)]});}}else _0x5a3e88['error']({'title':_0x57f222[_0x25c5d7(0x107b)]?_0x25c5d7(0x262a)+_0x57f222[_0x25c5d7(0x107b)]+'\x20-\x20'+_0x57f222[_0x25c5d7(0x167f)]:_0x25c5d7(0x17e9),'msg':_0x57f222[_0x25c5d7(0x524)]?JSON[_0x25c5d7(0x10bb)](_0x57f222[_0x25c5d7(0x524)][_0x25c5d7(0x7fd)]):_0x57f222[_0x25c5d7(0x7fd)]||_0x57f222[_0x25c5d7(0xd5f)]()});});}function _0x39aef3(){const _0x7cc39a=_0x15d7bb,_0x2c7b96=angular['copy'](_0x4f4097[_0x7cc39a(0xbbe)]);return _0x4f4097[_0x7cc39a(0xbbe)]=[],_0x2c7b96;}function _0x1de2d9(_0xc101e8){const _0x438a6d=_0x15d7bb,_0x2b29f7=_0x59ae1b[_0x438a6d(0x1e8a)]()[_0x438a6d(0x1189)](_0x438a6d(0x3e7))['htmlContent'](''+_0x4f4097[_0x438a6d(0xbbe)][_0x438a6d(0x402)]+_0x438a6d(0x2452)+_0x438a6d(0xe01))[_0x438a6d(0x4bd)](_0x438a6d(0xaca))['targetEvent'](_0xc101e8)['ok']('OK')[_0x438a6d(0x6c3)](_0x438a6d(0x39a));_0x59ae1b['show'](_0x2b29f7)[_0x438a6d(0x146b)](function(){const _0x4851fa=_0x438a6d;_0x4f4097[_0x4851fa(0xbbe)][_0x4851fa(0x1df5)](function(_0x4b0f16){_0x304230(_0x4b0f16);}),_0x4f4097[_0x4851fa(0xbbe)]=[];});}let _0x9574a=!![],_0x21b1fe=0x1;_0x54d289['$watch'](_0x15d7bb(0x117f),function(_0x3919a3,_0x1b94bf){const _0xd97158=_0x15d7bb;_0x9574a?_0x27b9df(function(){_0x9574a=![];}):(!_0x1b94bf&&(_0x21b1fe=_0x4f4097['query'][_0xd97158(0x844)]),_0x3919a3!==_0x1b94bf&&(_0x4f4097[_0xd97158(0x1a56)]['page']=0x1),!_0x3919a3&&(_0x4f4097[_0xd97158(0x1a56)]['page']=_0x21b1fe),_0x56b811());});}const _0x545edb=_0x540106;;_0x4d6cbd[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1862),_0x313a4d(0xd08),'$mdDialog','$q',_0x313a4d(0x214b),_0x313a4d(0x1fe4),'hoppers','hopper','api',_0x313a4d(0xa87),_0x313a4d(0x2690),_0x313a4d(0x15b9),_0x313a4d(0x2514)];function _0x4d6cbd(_0x43cedb,_0x2d7b5f,_0x3ebb1e,_0x196607,_0x1fb9a1,_0x17d41a,_0x40ebf7,_0x1333f8,_0xef5d81,_0x2de2c5,_0x2afd45,_0x2187f9,_0x8d6fe8,_0x5bd9b5){const _0x7deede=_0x313a4d,_0x38037b=this;_0x38037b[_0x7deede(0x2321)]=_0x2afd45[_0x7deede(0xb12)](),_0x38037b['errors']=[],_0x38037b['setting']=_0x8d6fe8,_0x38037b[_0x7deede(0x2690)]=_0x2187f9,_0x38037b[_0x7deede(0x2514)]=_0x5bd9b5,_0x38037b[_0x7deede(0x855)]={},_0x38037b[_0x7deede(0x2251)]=_0x38037b[_0x7deede(0x15b9)]&&_0x38037b[_0x7deede(0x15b9)][_0x7deede(0x976)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x38037b[_0x7deede(0x1189)]=_0x7deede(0x1fd),_0x38037b['hopper']=angular[_0x7deede(0x235a)](_0xef5d81),_0x38037b['hoppers']=_0x1333f8,_0x38037b[_0x7deede(0xaa9)]=![];!_0x38037b[_0x7deede(0x10fa)]&&(_0x38037b[_0x7deede(0x10fa)]={},_0x38037b['title']=_0x7deede(0x1147),_0x38037b['newHopper']=!![]);_0x2d7b5f[_0x7deede(0x16a)]['id']&&(_0x38037b[_0x7deede(0x10fa)]['CampaignId']=_0x2d7b5f['params']['id']);_0x38037b[_0x7deede(0x6fe)]=_0x26a88c,_0x38037b['saveHopper']=_0x4a6762,_0x38037b[_0x7deede(0x238e)]=_0x309a72,_0x38037b[_0x7deede(0xe73)]=_0x5a3846,_0x38037b[_0x7deede(0x13f3)]=_0x5ad395,_0x2afd45['hasRole']('admin')?_0x2de2c5[_0x7deede(0xe7b)][_0x7deede(0x16b4)]({'fields':_0x7deede(0x7a7),'role':'agent','sort':_0x7deede(0x19eb),'nolimit':'true'})[_0x7deede(0x2945)][_0x7deede(0x146b)](function(_0x32a929){const _0x10c209=_0x7deede;_0x38037b[_0x10c209(0x23c0)]=_0x32a929['rows']||[];})[_0x7deede(0x129e)](function(_0x236901){const _0x29bfe3=_0x7deede;_0x40ebf7[_0x29bfe3(0x1980)]({'title':_0x236901[_0x29bfe3(0x107b)]?_0x29bfe3(0x262a)+_0x236901[_0x29bfe3(0x107b)]+'\x20-\x20'+_0x236901[_0x29bfe3(0x167f)]:'SYSTEM:GET_AGENTS','msg':_0x236901['data']?JSON[_0x29bfe3(0x10bb)](_0x236901[_0x29bfe3(0x524)]):_0x236901[_0x29bfe3(0xd5f)]()});}):_0x2de2c5[_0x7deede(0xe7b)][_0x7deede(0x16b4)]({'fields':_0x7deede(0x7a7),'role':'agent','sort':_0x7deede(0x19eb),'nolimit':_0x7deede(0x1185)})[_0x7deede(0x2945)][_0x7deede(0x146b)](function(_0x2f8525){const _0x2dbfba=_0x7deede;_0x38037b[_0x2dbfba(0x23c0)]=_0x2f8525[_0x2dbfba(0x19c7)]||[];})[_0x7deede(0x146b)](function(){const _0xa325f6=_0x7deede;return _0x2de2c5[_0xa325f6(0x1366)][_0xa325f6(0x16b4)]({'userProfileId':_0x38037b[_0xa325f6(0x2321)]['userProfileId'],'sectionId':0xca})[_0xa325f6(0x2945)];})['then'](function(_0x1bdc8c){const _0xd35308=_0x7deede,_0x24a070=_0x1bdc8c&&_0x1bdc8c['rows']?_0x1bdc8c['rows'][0x0]:null;if(!_0x24a070)_0x38037b[_0xd35308(0x23c0)]=[];else{if(!_0x24a070[_0xd35308(0x11d2)])return _0x2de2c5[_0xd35308(0xdcc)][_0xd35308(0x16b4)]({'sectionId':_0x24a070['id']})['$promise'][_0xd35308(0x146b)](function(_0x5bfccb){const _0x307232=_0xd35308,_0x3fae87=_0x3f65c0()[_0x307232(0x205)](_0x5bfccb[_0x307232(0x19c7)],function(_0x4f62dd){const _0x1f20f8=_0x307232;return _0x3f65c0()[_0x1f20f8(0xc84)](_0x38037b[_0x1f20f8(0x23c0)],{'id':_0x4f62dd[_0x1f20f8(0x18b8)]});});_0x38037b['agents'][_0x307232(0x1df5)](function(_0x3f672c){const _0x2d4876=_0x307232;!_0x3f65c0()[_0x2d4876(0x1360)](_0x3fae87,['id',_0x3f672c['id']])&&(_0x3f672c[_0x2d4876(0x8ff)]=![]),_0x3fae87[_0x2d4876(0x1f47)](_0x3f672c);}),_0x38037b[_0x307232(0x23c0)]=_0x3fae87;});}})[_0x7deede(0x129e)](function(_0x3bebe3){const _0x1c1346=_0x7deede;_0x40ebf7[_0x1c1346(0x1980)]({'title':_0x3bebe3[_0x1c1346(0x107b)]?_0x1c1346(0x262a)+_0x3bebe3[_0x1c1346(0x107b)]+_0x1c1346(0x1315)+_0x3bebe3[_0x1c1346(0x167f)]:_0x1c1346(0x788),'msg':_0x3bebe3['data']?JSON['stringify'](_0x3bebe3[_0x1c1346(0x524)]):_0x3bebe3['toString']()});});function _0x26a88c(){const _0x4e5792=_0x7deede;_0x38037b[_0x4e5792(0xcef)]=[],_0x2de2c5[_0x4e5792(0x39f)][_0x4e5792(0x1e3)](_0x38037b[_0x4e5792(0x10fa)])[_0x4e5792(0x2945)][_0x4e5792(0x146b)](function(_0x3896dd){const _0x510a6e=_0x4e5792;_0x38037b['hoppers'][_0x510a6e(0xb3d)](_0x3896dd[_0x510a6e(0x2488)]()),_0x40ebf7[_0x510a6e(0x1c75)]({'title':_0x510a6e(0x1976),'msg':_0x38037b[_0x510a6e(0x10fa)]['name']?_0x38037b[_0x510a6e(0x10fa)]['name']+_0x510a6e(0x1386):''}),_0x5ad395(_0x3896dd);})[_0x4e5792(0x129e)](function(_0x1cc7d1){const _0x350010=_0x4e5792;if(_0x1cc7d1[_0x350010(0x524)]&&_0x1cc7d1[_0x350010(0x524)]['errors']&&_0x1cc7d1['data'][_0x350010(0xcef)][_0x350010(0x402)]){_0x38037b[_0x350010(0xcef)]=_0x1cc7d1['data'][_0x350010(0xcef)]||[{'message':_0x1cc7d1[_0x350010(0xd5f)](),'type':_0x350010(0x800)}];for(let _0x549915=0x0;_0x549915<_0x1cc7d1[_0x350010(0x524)][_0x350010(0xcef)][_0x350010(0x402)];_0x549915+=0x1){_0x40ebf7[_0x350010(0x1980)]({'title':_0x1cc7d1[_0x350010(0x524)][_0x350010(0xcef)][_0x549915][_0x350010(0x1142)],'msg':_0x1cc7d1['data'][_0x350010(0xcef)][_0x549915]['message']});}}else _0x40ebf7['error']({'title':_0x1cc7d1[_0x350010(0x107b)]?_0x350010(0x262a)+_0x1cc7d1['status']+_0x350010(0x1315)+_0x1cc7d1[_0x350010(0x167f)]:_0x350010(0x800),'msg':_0x1cc7d1[_0x350010(0x524)]?JSON['stringify'](_0x1cc7d1[_0x350010(0x524)][_0x350010(0x7fd)]):_0x1cc7d1[_0x350010(0xd5f)]()});});}function _0x4a6762(){const _0x3f0a55=_0x7deede;_0x38037b[_0x3f0a55(0xcef)]=[];let _0x2637c9,_0x3217ce,_0x23ba67,_0x24fa9c;_0x38037b[_0x3f0a55(0x10fa)]['UserId']=_0x38037b[_0x3f0a55(0x10fa)][_0x3f0a55(0x2762)]?_0x38037b[_0x3f0a55(0x10fa)][_0x3f0a55(0xea2)]:null,_0x38037b[_0x3f0a55(0x10fa)]['OwnerId']=_0x2afd45[_0x3f0a55(0xb12)]()['id'],_0x2de2c5[_0x3f0a55(0x39f)][_0x3f0a55(0x16b4)]({'id':_0x38037b[_0x3f0a55(0x10fa)]['id'],'attributes':[_0x3f0a55(0x432)]})[_0x3f0a55(0x2945)][_0x3f0a55(0x146b)](function(_0x212029){const _0x54a7dc=_0x3f0a55;_0x3f65c0()[_0x54a7dc(0x1b36)](_0x212029)||_0x3f65c0()[_0x54a7dc(0x2635)](_0x212029)?_0x2637c9=_0x2deec6()()[_0x54a7dc(0x22b0)](_0x54a7dc(0x1ce2)):_0x2637c9=_0x212029[_0x54a7dc(0x432)];})[_0x3f0a55(0x1ec6)](function(){const _0x2e81c1=_0x3f0a55;_0x2de2c5[_0x2e81c1(0x39f)][_0x2e81c1(0x18e1)]({'id':_0x38037b[_0x2e81c1(0x10fa)]['id']},_0x3f65c0()[_0x2e81c1(0x2432)](_0x38037b[_0x2e81c1(0x10fa)],['VoiceQueueId',_0x2e81c1(0x1ee8),_0x2e81c1(0x932),_0x2e81c1(0xb7c)]))['$promise']['then'](function(_0x4f6714){const _0x57d22e=_0x2e81c1;_0x3217ce=_0x4f6714,_0x2de2c5[_0x57d22e(0x18c3)]['get']({'id':_0x3217ce[_0x57d22e(0x932)],'attributes':[_0x57d22e(0x1ed4),_0x57d22e(0xee4)]})[_0x57d22e(0x2945)][_0x57d22e(0x146b)](function(_0x45b33f){const _0x39e556=_0x57d22e;!_0x3f65c0()[_0x39e556(0x1b36)](_0x45b33f)&&!_0x3f65c0()['isNil'](_0x45b33f[_0x39e556(0x1ed4)])&&(_0x23ba67=_0x45b33f['firstName'],!_0x3f65c0()[_0x39e556(0x1b36)](_0x45b33f[_0x39e556(0xee4)])&&(_0x23ba67+='\x20'+_0x45b33f['lastName']));})[_0x57d22e(0x129e)](function(){_0x23ba67=undefined;})['finally'](function(){const _0x3f9d9f=_0x57d22e;_0x2de2c5[_0x3f9d9f(0x8dc)]['get']({'raw':![],'id':_0x3217ce[_0x3f9d9f(0x1ee8)],'attributes':[_0x3f9d9f(0x19eb)]})[_0x3f9d9f(0x2945)]['then'](function(_0x410b65){const _0x56d1fc=_0x3f9d9f;_0x24fa9c=_0x410b65[_0x56d1fc(0x19eb)];})[_0x3f9d9f(0x129e)](function(){_0x24fa9c=undefined;})['finally'](function(){const _0x39802e=_0x3f9d9f;_0x2de2c5[_0x39802e(0x22e3)]['save']({'state':0x18,'statedesc':'Edited','scheduledat':_0x2637c9,'calleridnum':_0x3217ce[_0x39802e(0x1d55)],'calleridname':_0x23ba67,'campaigntype':_0x3217ce[_0x39802e(0x6ed)]?_0x39802e(0x1c72):_0x39802e(0x1f0),'campaign':_0x24fa9c,'editedat':_0x2deec6()()[_0x39802e(0x22b0)](_0x39802e(0x1ce2)),'edited':!![],'ListId':_0x3217ce[_0x39802e(0xb7c)],'UserId':_0x2afd45[_0x39802e(0xb12)]()['id'],'VoiceQueueId':_0x3217ce['VoiceQueueId'],'CampaignId':_0x3217ce['CampaignId'],'ContactId':_0x3217ce[_0x39802e(0x932)],'callback':_0x3217ce[_0x39802e(0x2268)],'callbackuniqueid':_0x3217ce[_0x39802e(0x2679)],'countbusyretry':_0x3217ce['countbusyretry'],'countcongestionretry':_0x3217ce[_0x39802e(0x24c9)],'countglobal':_0x3217ce[_0x39802e(0x1adf)],'countnoanswerretry':_0x3217ce[_0x39802e(0x1b71)],'followuptime':_0x3217ce[_0x39802e(0x1a47)],'recallme':_0x3217ce[_0x39802e(0x2762)]});});});const _0x113fbd=_0x3f65c0()['find'](_0x38037b[_0x57d22e(0x9f0)],{'id':_0x4f6714['id']});_0x113fbd&&_0x3f65c0()[_0x57d22e(0x168d)](_0x113fbd,_0x3f65c0()[_0x57d22e(0x40e)](_0x4f6714[_0x57d22e(0x2488)](),_0x3f65c0()['keys'](_0x113fbd))),_0x40ebf7[_0x57d22e(0x1c75)]({'title':_0x57d22e(0x17e3),'msg':_0x38037b[_0x57d22e(0x10fa)][_0x57d22e(0x19eb)]?_0x38037b[_0x57d22e(0x10fa)][_0x57d22e(0x19eb)]+'\x20has\x20been\x20saved!':''}),_0x5ad395(_0x4f6714);})['catch'](function(_0x4d4b00){const _0x49635c=_0x2e81c1;if(_0x4d4b00['data']&&_0x4d4b00[_0x49635c(0x524)][_0x49635c(0xcef)]&&_0x4d4b00['data'][_0x49635c(0xcef)][_0x49635c(0x402)]){_0x38037b['errors']=_0x4d4b00[_0x49635c(0x524)][_0x49635c(0xcef)]||[{'message':_0x4d4b00[_0x49635c(0xd5f)](),'type':'api.cmHopper.update'}];for(let _0x42d931=0x0;_0x42d931<_0x4d4b00[_0x49635c(0x524)][_0x49635c(0xcef)]['length'];_0x42d931++){_0x40ebf7[_0x49635c(0x1980)]({'title':_0x4d4b00['data']['errors'][_0x42d931][_0x49635c(0x1142)],'msg':_0x4d4b00[_0x49635c(0x524)][_0x49635c(0xcef)][_0x42d931][_0x49635c(0x7fd)]});}}else _0x40ebf7[_0x49635c(0x1980)]({'title':_0x4d4b00[_0x49635c(0x107b)]?'API:'+_0x4d4b00[_0x49635c(0x107b)]+_0x49635c(0x1315)+_0x4d4b00[_0x49635c(0x167f)]:_0x49635c(0x1a93),'msg':_0x4d4b00[_0x49635c(0x524)]?JSON[_0x49635c(0x10bb)](_0x4d4b00[_0x49635c(0x524)]['message']):_0x4d4b00['toString']()});});});}function _0x309a72(_0x39866b){const _0x460dd4=_0x7deede;_0x38037b['errors']=[];const _0x4421d2=_0x196607[_0x460dd4(0x1e8a)]()['title']('Are\x20you\x20sure?')['content']('The\x20hopper\x20will\x20be\x20deleted.')['ariaLabel'](_0x460dd4(0x16c8))['ok'](_0x460dd4(0x25de))[_0x460dd4(0x6c3)](_0x460dd4(0xcf0))['targetEvent'](_0x39866b);_0x196607[_0x460dd4(0x2615)](_0x4421d2)[_0x460dd4(0x146b)](function(){const _0x2079f6=_0x460dd4;_0x2de2c5[_0x2079f6(0x39f)][_0x2079f6(0x1fac)]({'id':_0x38037b[_0x2079f6(0x10fa)]['id']})['$promise']['then'](function(){const _0x168cb1=_0x2079f6;_0x3f65c0()[_0x168cb1(0x2640)](_0x38037b[_0x168cb1(0x9f0)],{'id':_0x38037b['hopper']['id']}),_0x40ebf7['success']({'title':_0x168cb1(0x1a50),'msg':(_0x38037b[_0x168cb1(0x10fa)]['name']||'hopper')+_0x168cb1(0x23e3)}),_0x5ad395(_0x38037b[_0x168cb1(0x10fa)]);})[_0x2079f6(0x129e)](function(_0x2379c7){const _0x32d214=_0x2079f6;if(_0x2379c7[_0x32d214(0x524)]&&_0x2379c7[_0x32d214(0x524)][_0x32d214(0xcef)]&&_0x2379c7[_0x32d214(0x524)][_0x32d214(0xcef)][_0x32d214(0x402)]){_0x38037b[_0x32d214(0xcef)]=_0x2379c7[_0x32d214(0x524)]['errors']||[{'message':_0x2379c7['toString'](),'type':_0x32d214(0x5d5)}];for(let _0x49611d=0x0;_0x49611d<_0x2379c7[_0x32d214(0x524)][_0x32d214(0xcef)][_0x32d214(0x402)];_0x49611d++){_0x40ebf7[_0x32d214(0x1980)]({'title':_0x2379c7['data'][_0x32d214(0xcef)][_0x49611d]['type'],'msg':_0x2379c7[_0x32d214(0x524)][_0x32d214(0xcef)][_0x49611d][_0x32d214(0x7fd)]});}}else _0x40ebf7[_0x32d214(0x1980)]({'title':_0x2379c7[_0x32d214(0x107b)]?_0x32d214(0x262a)+_0x2379c7[_0x32d214(0x107b)]+_0x32d214(0x1315)+_0x2379c7[_0x32d214(0x167f)]:_0x32d214(0x5d5),'msg':_0x2379c7[_0x32d214(0x524)]?JSON[_0x32d214(0x10bb)](_0x2379c7['data'][_0x32d214(0x7fd)]):_0x2379c7[_0x32d214(0x7fd)]||_0x2379c7['toString']()});});},function(){});}function _0x5a3846(_0x2d4b5a){return _0x2d4b5a===null?undefined:new Date(_0x2d4b5a);}function _0x5ad395(_0x204aed){_0x196607['hide'](_0x204aed);}}const _0x2a5b35=_0x4d6cbd;;_0xa18f61[_0x313a4d(0x11c2)]=[_0x313a4d(0x247f),_0x313a4d(0x1fe4)];function _0xa18f61(_0x39e432,_0x3e8e0f){const _0x3fe745=_0x313a4d,_0x3a5c5e=this;_0x3a5c5e[_0x3fe745(0x958)]={},_0x3a5c5e[_0x3fe745(0x5aa)]=_0x11dfbe;function _0x11dfbe(_0x58c0c1){const _0x4e1a80=_0x3fe745;_0x3a5c5e[_0x4e1a80(0x958)]=_0x58c0c1,_0x39e432[_0x4e1a80(0x39f)]['get']({'limit':0x0,'CampaignId':_0x58c0c1['id']})[_0x4e1a80(0x2945)][_0x4e1a80(0x146b)](function(_0x4a1829){const _0x2e1688=_0x4e1a80;return _0x3a5c5e['total']=_0x4a1829[_0x2e1688(0x51c)]||0x0,_0x39e432[_0x2e1688(0x39f)][_0x2e1688(0x16b4)]({'limit':0x0,'CampaignId':_0x58c0c1['id'],'active':![],'countbusyretry':0x0,'countcongestionretry':0x0,'countnoanswerretry':0x0})[_0x2e1688(0x2945)];})[_0x4e1a80(0x146b)](function(_0xf035f6){const _0x4e6103=_0x4e1a80;return _0x3a5c5e[_0x4e6103(0xbb0)]=_0xf035f6['count']||0x0,_0x39e432[_0x4e6103(0x2018)][_0x4e6103(0x16b4)]({'limit':0x0,'CampaignId':_0x58c0c1['id']})[_0x4e6103(0x2945)];})[_0x4e1a80(0x146b)](function(_0x3c3389){_0x3a5c5e['closed']=_0x3c3389['count']||0x0;})['catch'](function(_0xc9c1fc){const _0x4fc9ff=_0x4e1a80;_0x3e8e0f[_0x4fc9ff(0x1980)]({'title':_0xc9c1fc[_0x4fc9ff(0x107b)]?_0x4fc9ff(0x262a)+_0xc9c1fc[_0x4fc9ff(0x107b)]+_0x4fc9ff(0x1315)+_0xc9c1fc[_0x4fc9ff(0x167f)]:_0x4fc9ff(0x220e),'msg':_0xc9c1fc['data']?JSON[_0x4fc9ff(0x10bb)](_0xc9c1fc[_0x4fc9ff(0x524)]):_0xc9c1fc[_0x4fc9ff(0xd5f)]()});});}}const _0x28c262=_0xa18f61;;_0x36f596['$inject']=[_0x313a4d(0x10e8),'$q',_0x313a4d(0x1fe4),_0x313a4d(0x247f),'ivrCampaign',_0x313a4d(0x214b),_0x313a4d(0x1abe),_0x313a4d(0xa87),_0x313a4d(0x2514)];function _0x36f596(_0x5df555,_0x4f5ba3,_0x1408b8,_0x106f90,_0xf4069f,_0x3d74fd,_0x28ea90,_0x91bcb7,_0x4223eb){const _0x437068=_0x313a4d,_0x485c47=this;_0x485c47[_0x437068(0x2321)]=_0x91bcb7[_0x437068(0xb12)](),_0x485c47['ivrCampaign']=_0xf4069f,_0x485c47['crudPermissions']=_0x4223eb,_0x485c47['apiRoute']=_0x437068(0x8dc),_0x485c47[_0x437068(0x706)]='getLists',_0x485c47[_0x437068(0x8f4)]=_0x437068(0x2352),_0x485c47['removeApi']='removeLists',_0x485c47[_0x437068(0x1fd6)]=[],_0x485c47[_0x437068(0xc4e)]=[],_0x485c47[_0x437068(0x1ecf)]=[],_0x485c47[_0x437068(0x2e8)]=[],_0x485c47[_0x437068(0xa65)]=[],_0x485c47[_0x437068(0x132)]=![],_0x485c47[_0x437068(0x1699)]=![],_0x485c47[_0x437068(0x1f8a)]={'readOnly':!_0x485c47[_0x437068(0x2514)][_0x437068(0x15f4)],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':![],'orderBy':_0x437068(0x19eb),'line1':'name','line2':'','line3':'','labelAll':_0x3d74fd[_0x437068(0xde)](_0x437068(0x11e0)),'labelSelected':_0x3d74fd[_0x437068(0xde)](_0x437068(0x1ded)),'transferCallback':function(){const _0x268d97=_0x437068,_0x5345dc=_0x3f65c0()[_0x268d97(0x1883)](_0x485c47[_0x268d97(0xa65)],_0x485c47[_0x268d97(0x1ecf)],'id');_0x485c47[_0x268d97(0x132)]=_0x3f65c0()[_0x268d97(0x2635)](_0x5345dc)?![]:!![];}},_0x485c47['onInit']=_0x156f38,_0x485c47[_0x437068(0x24d1)]=_0x323d5d,_0x485c47[_0x437068(0x13f3)]=_0x285864;function _0x156f38(){const _0x5637cf=_0x437068;return _0x91bcb7[_0x5637cf(0x23e0)](_0x5637cf(0x174b))?_0x5435c5()[_0x5637cf(0x129e)](function(_0x446098){const _0x38fda7=_0x5637cf;_0x1408b8['error']({'title':_0x446098[_0x38fda7(0x107b)]?_0x38fda7(0x262a)+_0x446098[_0x38fda7(0x107b)]+'\x20-\x20'+_0x446098[_0x38fda7(0x167f)]:'SYSTEM:GETLISTS','msg':_0x446098[_0x38fda7(0x107b)]?JSON[_0x38fda7(0x10bb)](_0x446098[_0x38fda7(0x524)]):_0x446098[_0x38fda7(0xd5f)]()});}):_0x40839d()[_0x5637cf(0x146b)](function(_0x29b0ac){const _0x420883=_0x5637cf;return _0x485c47[_0x420883(0x2146)]=_0x29b0ac,_0x5435c5();})['catch'](function(_0x3f001e){const _0x537782=_0x5637cf;_0x1408b8[_0x537782(0x1980)]({'title':_0x3f001e[_0x537782(0x107b)]?_0x537782(0x262a)+_0x3f001e['status']+_0x537782(0x1315)+_0x3f001e[_0x537782(0x167f)]:_0x537782(0x474),'msg':_0x3f001e[_0x537782(0x107b)]?JSON['stringify'](_0x3f001e[_0x537782(0x524)]):_0x3f001e['toString']()});});}function _0x40839d(){return _0x4f5ba3(function(_0x1dfd2e,_0x1a1a13){const _0x131586=a0_0x3bb9;_0x106f90[_0x131586(0x1366)][_0x131586(0x16b4)]({'userProfileId':_0x485c47[_0x131586(0x2321)]['userProfileId'],'name':_0x131586(0x174f)})[_0x131586(0x2945)][_0x131586(0x146b)](function(_0x556d00){const _0x44689f=_0x131586,_0x65ed16=_0x556d00&&_0x556d00[_0x44689f(0x19c7)]?_0x556d00[_0x44689f(0x19c7)][0x0]:null;_0x1dfd2e(_0x65ed16);})[_0x131586(0x129e)](function(_0x58e008){_0x1a1a13(_0x58e008);});});}function _0x5435c5(){return _0x4f5ba3(function(_0xeac5e6,_0x4a89cf){const _0x44f380=a0_0x3bb9;return _0x499b46()['then'](function(_0x1ae0b8){const _0x3f6ef3=a0_0x3bb9;return _0x485c47[_0x3f6ef3(0x1fd6)]=_0x1ae0b8[_0x3f6ef3(0x19c7)]?_0x1ae0b8[_0x3f6ef3(0x19c7)]:[],_0x91bcb7['hasRole'](_0x3f6ef3(0x174b))?_0x1ae0b8:_0x485c47[_0x3f6ef3(0x2146)]?_0x485c47[_0x3f6ef3(0x2146)]['autoAssociation']?_0x1ae0b8:_0x5d30dc():null;})[_0x44f380(0x146b)](function(_0x14d0fe){const _0x168dae=_0x44f380,_0x23e7e9=_0x14d0fe&&_0x14d0fe[_0x168dae(0x19c7)]?_0x14d0fe[_0x168dae(0x19c7)]:[];return _0x485c47[_0x168dae(0xc4e)]=_0x3f65c0()[_0x168dae(0x205)](_0x23e7e9,function(_0x568bbb){const _0x4aa1e7=_0x168dae;return _0x3f65c0()['find'](_0x485c47[_0x4aa1e7(0x1fd6)],{'id':_0x91bcb7['hasRole'](_0x4aa1e7(0x174b))||_0x485c47[_0x4aa1e7(0x2146)][_0x4aa1e7(0x11d2)]?_0x568bbb['id']:_0x568bbb[_0x4aa1e7(0x18b8)]});}),_0x485c47[_0x168dae(0x2e8)]=angular['copy'](_0x485c47[_0x168dae(0xc4e)]),_0x485c47['items']['forEach'](function(_0x14294d){const _0xfbe407=_0x168dae,_0x348214=_0x3f65c0()['find'](_0x485c47[_0xfbe407(0xc4e)],{'id':_0x14294d['id']});_0x485c47[_0xfbe407(0x2321)][_0xfbe407(0xfb0)]==='admin'?_0x14294d[_0xfbe407(0x146f)]=!![]:_0x14294d[_0xfbe407(0x146f)]=typeof _0x348214!==_0xfbe407(0x2274)?!![]:![];}),_0x296487();})[_0x44f380(0x146b)](function(_0x7e98bf){const _0x52708d=_0x44f380,_0x436608=_0x7e98bf&&_0x7e98bf[_0x52708d(0x19c7)]?_0x7e98bf[_0x52708d(0x19c7)]:[];_0x485c47[_0x52708d(0x1ecf)]=_0x3f65c0()[_0x52708d(0x205)](_0x436608,function(_0x22ea6e){const _0x771a9f=_0x52708d;return _0x3f65c0()[_0x771a9f(0xc84)](_0x485c47[_0x771a9f(0x1fd6)],{'id':_0x22ea6e['id']});}),_0x485c47[_0x52708d(0xa65)]=angular[_0x52708d(0x235a)](_0x485c47[_0x52708d(0x1ecf)]),_0x485c47[_0x52708d(0x1f8a)][_0x52708d(0x1ecf)]=_0x485c47[_0x52708d(0x1ecf)],_0x485c47[_0x52708d(0x1f8a)]['items']=_0x3f65c0()[_0x52708d(0x2796)](_0x485c47[_0x52708d(0xc4e)],_0x485c47[_0x52708d(0x1f8a)][_0x52708d(0x1ecf)],'id'),_0xeac5e6();})[_0x44f380(0x129e)](function(_0x21e4c8){_0x4a89cf(_0x21e4c8);});});}function _0x5d30dc(){return _0x4f5ba3(function(_0x46c38e,_0x5f0cee){const _0x4deed4=a0_0x3bb9;return _0x106f90[_0x4deed4(0xdcc)]['get']({'sectionId':_0x485c47[_0x4deed4(0x2146)]['id'],'nolimit':!![]})[_0x4deed4(0x2945)][_0x4deed4(0x146b)](function(_0x4ee340){_0x46c38e(_0x4ee340);})[_0x4deed4(0x129e)](function(_0x53c66e){_0x5f0cee(_0x53c66e);});});}function _0x296487(){return _0x4f5ba3(function(_0x28d682,_0x56d30a){const _0x41bcdd=a0_0x3bb9,_0x4ae3a6=_0x106f90[_0x485c47['apiRoute']];return _0x4ae3a6[_0x485c47[_0x41bcdd(0x706)]]({'id':_0x485c47[_0x41bcdd(0x958)]['id'],'fields':_0x41bcdd(0x7a7),'nolimit':!![]})[_0x41bcdd(0x2945)][_0x41bcdd(0x146b)](function(_0x4e308b){_0x28d682(_0x4e308b);})[_0x41bcdd(0x129e)](function(_0x58f759){_0x56d30a(_0x58f759);});});}function _0x499b46(){return _0x4f5ba3(function(_0x38dd30,_0x2adf8d){const _0x625eb8=a0_0x3bb9;return _0x106f90[_0x625eb8(0xf03)]['get']({'fields':_0x625eb8(0x7a7),'nolimit':!![]})[_0x625eb8(0x2945)]['then'](function(_0x1afd7b){_0x38dd30(_0x1afd7b);})['catch'](function(_0x4a1509){_0x2adf8d(_0x4a1509);});});}function _0x28a035(_0x389ec3){return _0x4f5ba3(function(_0xf6e0e3,_0xc99180){const _0x5073b0=a0_0x3bb9;if(_0x3f65c0()[_0x5073b0(0x2635)](_0x389ec3))_0xf6e0e3();else{const _0x53e714=_0x106f90[_0x485c47['apiRoute']];_0x53e714[_0x485c47[_0x5073b0(0x8f4)]]({'id':_0x485c47[_0x5073b0(0x958)]['id'],'ids':_0x3f65c0()[_0x5073b0(0x205)](_0x389ec3,'id')})[_0x5073b0(0x2945)][_0x5073b0(0x146b)](function(){_0xf6e0e3();})['catch'](function(_0x7e01aa){_0xc99180(_0x7e01aa);});}});}function _0x2104a7(_0x5f18e0){return _0x4f5ba3(function(_0x1fc7af,_0x518b58){const _0x27d2d7=a0_0x3bb9;if(_0x3f65c0()['isEmpty'](_0x5f18e0))_0x1fc7af();else{const _0x110509=_0x106f90[_0x485c47[_0x27d2d7(0x161a)]];_0x110509[_0x485c47['removeApi']]({'id':_0x485c47['ivrCampaign']['id'],'ids':_0x3f65c0()['map'](_0x5f18e0,'id')})['$promise'][_0x27d2d7(0x146b)](function(){_0x1fc7af();})[_0x27d2d7(0x129e)](function(_0x1861eb){_0x518b58(_0x1861eb);});}});}function _0x323d5d(){const _0x1568c6=_0x437068;_0x485c47[_0x1568c6(0x1699)]=!![];const _0x5a2a78=_0x3f65c0()[_0x1568c6(0x2796)](_0x485c47['startingSelectedItems'],_0x485c47[_0x1568c6(0x1ecf)],'id'),_0x2b48bd=_0x3f65c0()[_0x1568c6(0x2796)](_0x485c47[_0x1568c6(0x1ecf)],_0x485c47[_0x1568c6(0xa65)],'id');return _0x2104a7(_0x5a2a78)[_0x1568c6(0x146b)](function(){return _0x28a035(_0x2b48bd);})['then'](function(){const _0x22333f=_0x1568c6;_0x485c47[_0x22333f(0x132)]=![],_0x485c47[_0x22333f(0x2e8)]=angular[_0x22333f(0x235a)](_0x485c47[_0x22333f(0xc4e)]),_0x485c47[_0x22333f(0xa65)]=angular[_0x22333f(0x235a)](_0x485c47[_0x22333f(0x1ecf)]),_0x1408b8[_0x22333f(0x1c75)]({'title':'SUCCESS','msg':'Lists\x20association\x20has\x20been\x20updated!'});})[_0x1568c6(0x129e)](function(_0x13dda5){const _0x5c9887=_0x1568c6;_0x1408b8['error']({'title':_0x13dda5[_0x5c9887(0x107b)]?'API:'+_0x13dda5['status']+'\x20-\x20'+_0x13dda5[_0x5c9887(0x167f)]:_0x5c9887(0xa56),'msg':_0x13dda5[_0x5c9887(0x107b)]?JSON[_0x5c9887(0x10bb)](_0x13dda5[_0x5c9887(0x524)]):_0x13dda5[_0x5c9887(0xd5f)]()});})['finally'](function(){const _0x6d876d=_0x1568c6;_0x485c47[_0x6d876d(0x1699)]=![];});}function _0x285864(){const _0x4a0488=_0x437068;_0x5df555[_0x4a0488(0x2458)]();}}const _0x5dc952=_0x36f596;;_0x4bba2f['$inject']=[_0x313a4d(0x910),_0x313a4d(0x10e8),_0x313a4d(0x1fe4),_0x313a4d(0x247f),_0x313a4d(0x958),_0x313a4d(0x1014),_0x313a4d(0x2dc),'$q'];function _0x4bba2f(_0x355308,_0x1c04b2,_0x4b6420,_0x4be131,_0x23f6b5,_0x5a89fa,_0x2702aa,_0x277acf){const _0x5a4afe=_0x313a4d,_0xb37c6d=this;_0xb37c6d['selected']=[],_0xb37c6d['items']=_0x5a89fa?_0x5a89fa:[],_0xb37c6d[_0x5a4afe(0x1699)]=![],_0xb37c6d[_0x5a4afe(0x13f3)]=_0x4c9854,_0xb37c6d[_0x5a4afe(0xbf4)]=_0x5dd0c3,_0xb37c6d[_0x5a4afe(0x1f05)]=_0x3a9c38,_0xb37c6d[_0x5a4afe(0xf52)]=_0x3c2b7c,_0xb37c6d[_0x5a4afe(0x2735)]=_0x537518,_0xb37c6d['toggleAll']=_0x468c56,_0xb37c6d['listSelected']=_0x45caa3;function _0x3a9c38(_0x72393d,_0xd0e33){const _0x3c0b3a=_0x5a4afe,_0x35acab=_0xd0e33[_0x3c0b3a(0x172b)](_0x72393d);_0x35acab>-0x1?_0xd0e33[_0x3c0b3a(0x1f7d)](_0x35acab,0x1):_0xd0e33[_0x3c0b3a(0x1f47)](_0x72393d);}function _0x5dd0c3(_0x31ad80,_0x3911b3){const _0xa179b=_0x5a4afe;return _0x3911b3[_0xa179b(0x172b)](_0x31ad80)>-0x1;}function _0x3c2b7c(){const _0x548d48=_0x5a4afe;return _0xb37c6d[_0x548d48(0x839)]['length']!==0x0&&_0xb37c6d[_0x548d48(0x839)]['length']!==_0xb37c6d['items'][_0x548d48(0x402)];}function _0x537518(){const _0x5d7b38=_0x5a4afe;return _0xb37c6d['selected'][_0x5d7b38(0x402)]===_0xb37c6d[_0x5d7b38(0x1fd6)]['length'];}function _0x468c56(){const _0x1cdc49=_0x5a4afe;if(_0xb37c6d[_0x1cdc49(0x839)][_0x1cdc49(0x402)]===_0xb37c6d[_0x1cdc49(0x1fd6)][_0x1cdc49(0x402)])_0xb37c6d[_0x1cdc49(0x839)]=[];else(_0xb37c6d[_0x1cdc49(0x839)][_0x1cdc49(0x402)]===0x0||_0xb37c6d[_0x1cdc49(0x839)]['length']>0x0)&&(_0xb37c6d['selected']=_0xb37c6d[_0x1cdc49(0x1fd6)]['slice'](0x0));}function _0x4c9854(){const _0x4bcf5b=_0x5a4afe;_0x1c04b2[_0x4bcf5b(0x2458)]();}function _0x45caa3(){const _0x2145e4=_0x5a4afe;_0xb37c6d[_0x2145e4(0x1699)]=!![];const _0x6444c7=_0x12a4d4();_0x6444c7[_0x2145e4(0x1ec6)](function(){_0xb37c6d['loading']=![],_0x4c9854();});}function _0x12a4d4(){return _0x277acf(function(_0x19d414){const _0x57fcf7=a0_0x3bb9;for(let _0x429511=0x0;_0x429511<_0xb37c6d[_0x57fcf7(0x839)]['length'];_0x429511+=0x1){_0x1bf477(_0x23f6b5['id'],_0xb37c6d[_0x57fcf7(0x839)][_0x429511]);}_0x149110(_0x19d414);});}function _0x1bf477(_0x5f5175,_0x2fcb00){const _0x30b26f=_0x5a4afe,_0x360c25=_0x2fcb00['id'];_0x2702aa[_0x30b26f(0x177a)](function(){const _0x299974=_0x30b26f;return _0x4be131[_0x299974(0x8dc)][_0x299974(0x1def)]({'id':_0x5f5175,'ids':_0x360c25})[_0x299974(0x2945)]['then'](function(){const _0x23b012=_0x299974;return _0x4be131[_0x23b012(0x8dc)][_0x23b012(0x2352)]({'id':_0x5f5175,'ids':_0x360c25,'dialCheckDuplicateType':_0x23b012(0x6d2)})[_0x23b012(0x2945)];})[_0x299974(0x146b)](function(){const _0xd1173=_0x299974;_0x4b6420[_0xd1173(0x1c75)]({'title':_0xd1173(0x273d),'msg':_0xd1173(0x18aa)+_0x2fcb00['name']+_0xd1173(0x1c44)});})[_0x299974(0x129e)](function(_0xdcf80a){const _0x241d46=_0x299974;_0x4b6420[_0x241d46(0x1980)]({'title':_0xdcf80a['status']?_0x241d46(0x262a)+_0xdcf80a[_0x241d46(0x107b)]+_0x241d46(0x1315)+_0xdcf80a[_0x241d46(0x167f)]:'SYSTEM:queueCampaign.RESETLIST','msg':_0xdcf80a[_0x241d46(0x107b)]?JSON['stringify'](_0xdcf80a['data']):_0xdcf80a['toString']()});});});}function _0x149110(_0x5adb6f){const _0x52df98=_0x5a4afe;_0x2702aa[_0x52df98(0x177a)](function(){return _0x5adb6f();});}}const _0x50a298=_0x4bba2f;;const _0x4c9ed3=_0x4acfac['p']+_0x313a4d(0x2191);;const _0xd68527=_0x4acfac['p']+_0x313a4d(0x11d3);;const _0x52912f=_0x4acfac['p']+_0x313a4d(0x679);;const _0x4f89f2=_0x4acfac['p']+'src/js/modules/main/apps/motiondialer/views/ivrCampaigns/edit/resetlist/resetlist.html/resetlist.html';;_0x5c7954[_0x313a4d(0x11c2)]=['$state',_0x313a4d(0xd08),'$mdDialog',_0x313a4d(0x4d8),'$translate',_0x313a4d(0x2690),_0x313a4d(0x15b9),_0x313a4d(0x247f),'toasty',_0x313a4d(0xa87),_0x313a4d(0x958),_0x313a4d(0x1366)];function _0x5c7954(_0x5aaa49,_0x56f3f6,_0x1c13b7,_0x59534f,_0x32a8d4,_0x30b28e,_0x26fe50,_0x1124d1,_0x362e03,_0x2fdb42,_0x338d6d,_0x3a990b){const _0x5837f9=_0x313a4d,_0x1b48ec=this;_0x1b48ec[_0x5837f9(0x2321)]=_0x2fdb42['getCurrentUser'](),_0x1b48ec[_0x5837f9(0x2690)]=_0x30b28e,_0x1b48ec['setting']=_0x26fe50,_0x1b48ec['passwordPattern']=_0x1b48ec[_0x5837f9(0x15b9)][_0x5837f9(0x976)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1b48ec[_0x5837f9(0x1002)]=_0x56f3f6[_0x5837f9(0x2414)]()+_0x5837f9(0xb0e)+_0x56f3f6[_0x5837f9(0x148e)](),_0x1b48ec['ivrCampaign']=_0x338d6d||_0x5aaa49['params'][_0x5837f9(0x958)]||{},_0x1b48ec['userProfileSection']=_0x3a990b&&_0x3a990b[_0x5837f9(0x51c)]==0x1?_0x3a990b['rows'][0x0]:null,_0x1b48ec[_0x5837f9(0x2514)]=_0x2fdb42['parseCrudPermissions'](_0x1b48ec[_0x5837f9(0x1366)]?_0x1b48ec[_0x5837f9(0x1366)][_0x5837f9(0x2514)]:null),_0x1b48ec['hasModulePermissions']={},_0x1b48ec['selectedTab']=_0x5aaa49[_0x5837f9(0x16a)][_0x5837f9(0x13a3)]||0x0,_0x1b48ec['clonedialog']=_0x42d781,_0x1b48ec['listadddialog']=_0x2d66be,_0x1b48ec['blacklistadddialog']=_0x5e2ac0,_0x1b48ec[_0x5837f9(0x6a9)]=_0x55ea72,_0x1b48ec[_0x5837f9(0x3a9)]=_0x2a8208,_0x1b48ec[_0x5837f9(0x861)]=_0x362e03[_0x5837f9(0x271e)],_0x1b48ec[_0x5837f9(0x1cf9)]=_0x10d639,_0x1b48ec[_0x5837f9(0x1093)]=_0x50b3ce,_0x2fdb42['hasRole'](_0x5837f9(0x174b))?_0x1124d1['trunk']['get']({'fields':'id,name','sort':_0x5837f9(0x19eb)})[_0x5837f9(0x2945)][_0x5837f9(0x146b)](function(_0x4c03a9){const _0x52ce46=_0x5837f9;_0x1b48ec[_0x52ce46(0x2433)]=_0x4c03a9[_0x52ce46(0x19c7)]||[];})[_0x5837f9(0x129e)](function(_0x7ab894){const _0x25f77e=_0x5837f9;_0x362e03[_0x25f77e(0x1980)]({'title':_0x7ab894['status']?'API:'+_0x7ab894[_0x25f77e(0x107b)]+_0x25f77e(0x1315)+_0x7ab894['statusText']:_0x25f77e(0xfc0),'msg':_0x7ab894[_0x25f77e(0x524)]?JSON[_0x25f77e(0x10bb)](_0x7ab894['data']):_0x7ab894['toString']()});}):_0x1124d1[_0x5837f9(0x279f)][_0x5837f9(0x16b4)]({'fields':_0x5837f9(0x7a7),'sort':'name'})[_0x5837f9(0x2945)][_0x5837f9(0x146b)](function(_0x106f2c){const _0x3f8a0f=_0x5837f9;_0x1b48ec[_0x3f8a0f(0x2433)]=_0x106f2c[_0x3f8a0f(0x19c7)]||[];})[_0x5837f9(0x146b)](function(){const _0x28733c=_0x5837f9;return _0x1124d1['userProfileSection'][_0x28733c(0x16b4)]({'userProfileId':_0x1b48ec[_0x28733c(0x2321)][_0x28733c(0x209a)],'sectionId':0x3f3})[_0x28733c(0x2945)];})['then'](function(_0x5e8c82){const _0x4f17a3=_0x5837f9,_0x14f0fc=_0x5e8c82&&_0x5e8c82[_0x4f17a3(0x19c7)]?_0x5e8c82[_0x4f17a3(0x19c7)][0x0]:null;if(!_0x14f0fc)_0x1b48ec[_0x4f17a3(0x2433)]=[];else{if(!_0x14f0fc[_0x4f17a3(0x11d2)])return _0x1124d1[_0x4f17a3(0xdcc)][_0x4f17a3(0x16b4)]({'sectionId':_0x14f0fc['id']})['$promise']['then'](function(_0x112b4a){const _0xebca11=_0x4f17a3,_0x560f68=_0x3f65c0()[_0xebca11(0x205)](_0x112b4a[_0xebca11(0x19c7)],function(_0x2487b8){const _0x4ac72f=_0xebca11;return _0x3f65c0()[_0x4ac72f(0xc84)](_0x1b48ec['trunks'],{'id':_0x2487b8[_0x4ac72f(0x18b8)]});});_0x1b48ec[_0xebca11(0x2433)][_0xebca11(0x1df5)](function(_0x28bc06){const _0x3cd45f=_0xebca11;!_0x3f65c0()[_0x3cd45f(0x1360)](_0x560f68,['id',_0x28bc06['id']])&&(_0x28bc06[_0x3cd45f(0x8ff)]=![]),_0x560f68[_0x3cd45f(0x1f47)](_0x28bc06);}),_0x1b48ec[_0xebca11(0x2433)]=_0x560f68;});}})[_0x5837f9(0x129e)](function(_0x2dbf9){const _0x52f922=_0x5837f9;_0x362e03[_0x52f922(0x1980)]({'title':_0x2dbf9['status']?'API:'+_0x2dbf9[_0x52f922(0x107b)]+_0x52f922(0x1315)+_0x2dbf9[_0x52f922(0x167f)]:_0x52f922(0x2436),'msg':_0x2dbf9[_0x52f922(0x524)]?JSON[_0x52f922(0x10bb)](_0x2dbf9[_0x52f922(0x524)]):_0x2dbf9[_0x52f922(0xd5f)]()});}),_0x2fdb42['hasRole'](_0x5837f9(0x174b))?_0x1124d1[_0x5837f9(0x9b1)][_0x5837f9(0x16b4)]({'fields':_0x5837f9(0x7a7),'sort':_0x5837f9(0x19eb)})['$promise'][_0x5837f9(0x146b)](function(_0x27b0e3){const _0x5b6627=_0x5837f9;_0x1b48ec[_0x5b6627(0x1991)]=_0x27b0e3[_0x5b6627(0x19c7)]||[];})['catch'](function(_0x2c6aa7){const _0x49f619=_0x5837f9;_0x362e03[_0x49f619(0x1980)]({'title':_0x2c6aa7[_0x49f619(0x107b)]?_0x49f619(0x262a)+_0x2c6aa7[_0x49f619(0x107b)]+_0x49f619(0x1315)+_0x2c6aa7[_0x49f619(0x167f)]:_0x49f619(0x1764),'msg':_0x2c6aa7[_0x49f619(0x524)]?JSON[_0x49f619(0x10bb)](_0x2c6aa7[_0x49f619(0x524)]):_0x2c6aa7[_0x49f619(0xd5f)]()});}):_0x1124d1[_0x5837f9(0x9b1)][_0x5837f9(0x16b4)]({'fields':_0x5837f9(0x7a7),'sort':_0x5837f9(0x19eb)})[_0x5837f9(0x2945)][_0x5837f9(0x146b)](function(_0x56e5dd){const _0xe11910=_0x5837f9;_0x1b48ec[_0xe11910(0x1991)]=_0x56e5dd['rows']||[];})['then'](function(){const _0x558748=_0x5837f9;return _0x1124d1['userProfileSection'][_0x558748(0x16b4)]({'userProfileId':_0x1b48ec[_0x558748(0x2321)][_0x558748(0x209a)],'sectionId':0x44f})['$promise'];})['then'](function(_0x50e805){const _0x514273=_0x5837f9,_0x42eab9=_0x50e805&&_0x50e805[_0x514273(0x19c7)]?_0x50e805[_0x514273(0x19c7)][0x0]:null;if(!_0x42eab9){const _0x55db5a=[];let _0x205fb4=null;_0x1b48ec['ivrCampaign']&&(_0x205fb4=_0x3f65c0()[_0x514273(0xc84)](_0x1b48ec[_0x514273(0x1991)],{'id':Number(_0x1b48ec[_0x514273(0x958)][_0x514273(0x223c)])}));for(let _0x218c23=0x0;_0x218c23<_0x1b48ec[_0x514273(0x1991)][_0x514273(0x402)];_0x218c23++){_0x205fb4&&_0x1b48ec[_0x514273(0x1991)][_0x218c23]['id']===_0x205fb4['id']&&(_0x1b48ec[_0x514273(0x1991)][_0x218c23][_0x514273(0x8ff)]=![],_0x55db5a[_0x514273(0x1f47)](_0x1b48ec['projects'][_0x218c23]));}_0x1b48ec[_0x514273(0x1991)]=_0x55db5a;}else{if(!_0x42eab9['autoAssociation'])return _0x1124d1[_0x514273(0xdcc)][_0x514273(0x16b4)]({'sectionId':_0x42eab9['id']})['$promise']['then'](function(_0x218fc0){const _0x2c17d2=_0x514273,_0x5b0092=_0x3f65c0()[_0x2c17d2(0x205)](_0x218fc0['rows'],function(_0x4d913c){const _0x4f6bd1=_0x2c17d2;return _0x3f65c0()[_0x4f6bd1(0xc84)](_0x1b48ec[_0x4f6bd1(0x1991)],{'id':_0x4d913c[_0x4f6bd1(0x18b8)]});});let _0x14c965=null;_0x1b48ec[_0x2c17d2(0x958)]&&(_0x14c965=_0x3f65c0()[_0x2c17d2(0xc84)](_0x1b48ec[_0x2c17d2(0x1991)],{'id':Number(_0x1b48ec[_0x2c17d2(0x958)][_0x2c17d2(0x223c)])}));if(_0x14c965&&!_0x3f65c0()[_0x2c17d2(0x1360)](_0x5b0092,['id',_0x14c965['id']])){const _0x2e08f4=_0x3f65c0()[_0x2c17d2(0xc84)](_0x1b48ec[_0x2c17d2(0x1991)],{'id':_0x14c965['id']});_0x2e08f4['canSelect']=![],_0x5b0092[_0x2c17d2(0x1f47)](_0x2e08f4);}_0x1b48ec[_0x2c17d2(0x1991)]=_0x5b0092;});}})['catch'](function(_0x48c260){const _0x51fa0b=_0x5837f9;_0x362e03['error']({'title':_0x48c260[_0x51fa0b(0x107b)]?_0x51fa0b(0x262a)+_0x48c260[_0x51fa0b(0x107b)]+'\x20-\x20'+_0x48c260['statusText']:_0x51fa0b(0x193b),'msg':_0x48c260[_0x51fa0b(0x524)]?JSON[_0x51fa0b(0x10bb)](_0x48c260[_0x51fa0b(0x524)]):_0x48c260[_0x51fa0b(0xd5f)]()});}),_0x2fdb42[_0x5837f9(0x23e0)](_0x5837f9(0x174b))?_0x1124d1['interval'][_0x5837f9(0x16b4)]({'fields':_0x5837f9(0x7a7),'sort':_0x5837f9(0x19eb),'IntervalId':_0x5837f9(0x203c)})[_0x5837f9(0x2945)][_0x5837f9(0x146b)](function(_0x575b28){const _0x40cb1f=_0x5837f9;_0x1b48ec[_0x40cb1f(0x2765)]=_0x575b28[_0x40cb1f(0x19c7)]||[];})[_0x5837f9(0x129e)](function(_0x11561c){const _0x318313=_0x5837f9;_0x362e03['error']({'title':_0x11561c[_0x318313(0x107b)]?'API:'+_0x11561c['status']+_0x318313(0x1315)+_0x11561c[_0x318313(0x167f)]:'SYSTEM:GET_INTERVAL','msg':_0x11561c['data']?JSON[_0x318313(0x10bb)](_0x11561c[_0x318313(0x524)]):_0x11561c['toString']()});}):_0x1124d1[_0x5837f9(0x2765)][_0x5837f9(0x16b4)]({'fields':_0x5837f9(0x7a7),'sort':_0x5837f9(0x19eb),'IntervalId':_0x5837f9(0x203c)})['$promise'][_0x5837f9(0x146b)](function(_0x255e46){const _0x4b8e02=_0x5837f9;_0x1b48ec[_0x4b8e02(0x2765)]=_0x255e46[_0x4b8e02(0x19c7)]||[];})[_0x5837f9(0x146b)](function(){const _0x10d59f=_0x5837f9;return _0x1124d1['userProfileSection'][_0x10d59f(0x16b4)]({'userProfileId':_0x1b48ec['currentUser'][_0x10d59f(0x209a)],'sectionId':0x3ec})[_0x10d59f(0x2945)];})[_0x5837f9(0x146b)](function(_0x17c300){const _0x2496f2=_0x5837f9,_0x3c55b0=_0x17c300&&_0x17c300[_0x2496f2(0x19c7)]?_0x17c300[_0x2496f2(0x19c7)][0x0]:null;if(!_0x3c55b0){const _0x4602a8=[];let _0x1f5d4f=null;_0x1b48ec[_0x2496f2(0x958)]&&(_0x1f5d4f=_0x3f65c0()[_0x2496f2(0xc84)](_0x1b48ec[_0x2496f2(0x2765)],{'id':Number(_0x1b48ec[_0x2496f2(0x958)][_0x2496f2(0x1ff2)])}));for(let _0xe86356=0x0;_0xe86356<_0x1b48ec['interval'][_0x2496f2(0x402)];_0xe86356++){_0x1f5d4f&&_0x1b48ec[_0x2496f2(0x2765)][_0xe86356]['id']===_0x1f5d4f['id']&&(_0x1b48ec[_0x2496f2(0x2765)][_0xe86356][_0x2496f2(0x8ff)]=![],_0x4602a8[_0x2496f2(0x1f47)](_0x1b48ec[_0x2496f2(0x2765)][_0xe86356]));}_0x1b48ec[_0x2496f2(0x2765)]=_0x4602a8;}else{if(!_0x3c55b0[_0x2496f2(0x11d2)])return _0x1124d1[_0x2496f2(0xdcc)]['get']({'sectionId':_0x3c55b0['id']})[_0x2496f2(0x2945)]['then'](function(_0x27babf){const _0x41101a=_0x2496f2,_0x380eb7=_0x3f65c0()[_0x41101a(0x205)](_0x27babf[_0x41101a(0x19c7)],function(_0xcc8ad6){const _0x608cca=_0x41101a;return _0x3f65c0()[_0x608cca(0xc84)](_0x1b48ec[_0x608cca(0x2765)],{'id':_0xcc8ad6['resourceId']});});let _0x51046a=null;_0x1b48ec[_0x41101a(0x958)]&&(_0x51046a=_0x3f65c0()[_0x41101a(0xc84)](_0x1b48ec[_0x41101a(0x2765)],{'id':Number(_0x1b48ec[_0x41101a(0x958)][_0x41101a(0x1ff2)])}));if(_0x51046a&&!_0x3f65c0()[_0x41101a(0x1360)](_0x380eb7,['id',_0x51046a['id']])){const _0xdc4d8=_0x3f65c0()['find'](_0x1b48ec[_0x41101a(0x2765)],{'id':_0x51046a['id']});_0xdc4d8[_0x41101a(0x8ff)]=![],_0x380eb7[_0x41101a(0x1f47)](_0xdc4d8);}_0x1b48ec['interval']=_0x380eb7;});}})[_0x5837f9(0x129e)](function(_0x5d683a){const _0x5b13d8=_0x5837f9;_0x362e03['error']({'title':_0x5d683a[_0x5b13d8(0x107b)]?'API:'+_0x5d683a[_0x5b13d8(0x107b)]+_0x5b13d8(0x1315)+_0x5d683a[_0x5b13d8(0x167f)]:_0x5b13d8(0x8b6),'msg':_0x5d683a[_0x5b13d8(0x524)]?JSON['stringify'](_0x5d683a[_0x5b13d8(0x524)]):_0x5d683a[_0x5b13d8(0xd5f)]()});});function _0x42d781(_0x50dbfa,_0x3edb16){const _0x3a1b90=_0x5837f9;_0x1c13b7[_0x3a1b90(0x2615)]({'controller':_0x3a1b90(0x2724),'controllerAs':'vm','templateUrl':_0x4c9ed3,'parent':angular['element'](_0x59534f['body']),'targetEvent':_0x3edb16,'clickOutsideToClose':!![],'locals':{'ivrCampaign':_0x50dbfa,'ivrCampaigns':_0x1b48ec[_0x3a1b90(0x13f8)]?_0x1b48ec['ivrCampaigns'][_0x3a1b90(0x19c7)]:[],'crudPermissions':_0x1b48ec[_0x3a1b90(0x2514)]}});}function _0x2d66be(_0x2718c1,_0x30aead){const _0x582c96=_0x5837f9;_0x1c13b7['show']({'controller':_0x582c96(0x222d),'controllerAs':'vm','templateUrl':_0xd68527,'parent':angular[_0x582c96(0x1853)](_0x59534f[_0x582c96(0x2586)]),'targetEvent':_0x30aead,'clickOutsideToClose':!![],'locals':{'ivrCampaign':_0x2718c1,'ivrCampaigns':_0x1b48ec[_0x582c96(0x13f8)]?_0x1b48ec[_0x582c96(0x13f8)][_0x582c96(0x19c7)]:[],'crudPermissions':_0x1b48ec[_0x582c96(0x2514)]}});}function _0x5e2ac0(_0x406f89,_0x3f6f40){const _0x40669e=_0x5837f9;_0x1c13b7['show']({'controller':_0x40669e(0x22de),'controllerAs':'vm','templateUrl':_0x52912f,'parent':angular['element'](_0x59534f[_0x40669e(0x2586)]),'targetEvent':_0x3f6f40,'clickOutsideToClose':!![],'locals':{'ivrCampaign':_0x406f89,'ivrCampaigns':_0x1b48ec[_0x40669e(0x13f8)]?_0x1b48ec[_0x40669e(0x13f8)][_0x40669e(0x19c7)]:[],'crudPermissions':_0x1b48ec[_0x40669e(0x2514)]}});}function _0x11ae27(_0x174756,_0x5171eb){const _0x50e1f0=_0x5837f9,_0x2a0ef7=_0x5171eb['id'];_0x1124d1[_0x50e1f0(0x8dc)][_0x50e1f0(0x1def)]({'id':_0x174756,'ids':_0x2a0ef7})['$promise']['then'](function(){const _0x3c20e4=_0x50e1f0;return _0x1124d1[_0x3c20e4(0x8dc)][_0x3c20e4(0x2352)]({'id':_0x174756,'ids':_0x2a0ef7,'dialCheckDuplicateType':'never'})[_0x3c20e4(0x2945)];})[_0x50e1f0(0x146b)](function(){const _0x260734=_0x50e1f0;_0x362e03[_0x260734(0x1c75)]({'title':_0x260734(0x273d),'msg':_0x260734(0x18aa)+_0x5171eb[_0x260734(0x19eb)]+_0x260734(0x1c44)});})[_0x50e1f0(0x129e)](function(_0x420bbe){const _0x2791c5=_0x50e1f0;_0x362e03[_0x2791c5(0x1980)]({'title':_0x420bbe[_0x2791c5(0x107b)]?_0x2791c5(0x262a)+_0x420bbe[_0x2791c5(0x107b)]+_0x2791c5(0x1315)+_0x420bbe[_0x2791c5(0x167f)]:_0x2791c5(0x2095),'msg':_0x420bbe['status']?JSON[_0x2791c5(0x10bb)](_0x420bbe['data']):_0x420bbe[_0x2791c5(0xd5f)]()});});}function _0x55ea72(_0x1ec545,_0x533a52){const _0x4aab14=_0x5837f9;_0x1124d1['campaign'][_0x4aab14(0x233d)]({'id':_0x1ec545['id'],'fields':_0x4aab14(0x7a7),'nolimit':!![]})['$promise'][_0x4aab14(0x146b)](function(_0x275106){const _0x565b8d=_0x4aab14;if(_0x3f65c0()[_0x565b8d(0x1b36)](_0x275106['rows'])||_0x3f65c0()[_0x565b8d(0x2635)](_0x275106[_0x565b8d(0x19c7)]))_0x362e03[_0x565b8d(0x271e)]({'title':'Campaign\x20Without\x20Lists'});else{if(_0x275106['rows'][_0x565b8d(0x402)]===0x1){const _0x23dfbf=_0x1c13b7[_0x565b8d(0x1e8a)]()[_0x565b8d(0x1189)]('Are\x20you\x20sure\x20want\x20to\x20reset\x20the\x20list\x20'+_0x275106[_0x565b8d(0x19c7)][0x0]['name']+'\x20?')[_0x565b8d(0x1cbe)](_0x565b8d(0x16d3)+_0x275106[_0x565b8d(0x19c7)][0x0]['name']+_0x565b8d(0x252f)+'\x20will\x20be\x20reset.')[_0x565b8d(0x4bd)](_0x565b8d(0x2276))[_0x565b8d(0x1f27)](_0x533a52)['ok']('OK')[_0x565b8d(0x6c3)]('CANCEL');_0x1c13b7['show'](_0x23dfbf)['then'](function(){const _0x277ad4=_0x565b8d;_0x11ae27(_0x1b48ec[_0x277ad4(0x958)]['id'],_0x275106[_0x277ad4(0x19c7)][0x0]);});}else _0x1c13b7[_0x565b8d(0x2615)]({'controller':_0x565b8d(0x18d1),'controllerAs':'vm','templateUrl':_0x4f89f2,'parent':angular[_0x565b8d(0x1853)](_0x59534f[_0x565b8d(0x2586)]),'targetEvent':_0x533a52,'clickOutsideToClose':![],'locals':{'ivrCampaign':_0x1ec545,'listsCampaign':_0x275106?_0x275106[_0x565b8d(0x19c7)]:[]}});}})[_0x4aab14(0x129e)](function(_0x4c1bd7){const _0x13e083=_0x4aab14;_0x362e03['error']({'title':_0x4c1bd7['status']?_0x13e083(0x262a)+_0x4c1bd7[_0x13e083(0x107b)]+_0x13e083(0x1315)+_0x4c1bd7['statusText']:'SYSTEM:RESETLIST','msg':_0x4c1bd7['status']?JSON['stringify'](_0x4c1bd7[_0x13e083(0x524)]):_0x4c1bd7['toString']()});});}function _0x2a8208(){const _0x648c95=_0x5837f9;if(_0x2fdb42[_0x648c95(0x23e0)]('admin'))_0x5aaa49['go'](_0x648c95(0x22cb),{});else return _0x1124d1['userProfileSection'][_0x648c95(0x16b4)]({'userProfileId':_0x2fdb42[_0x648c95(0xb12)]()[_0x648c95(0x209a)],'sectionId':0x5e6})['$promise']['then'](function(_0x26303b){const _0x196033=_0x648c95,_0x57dc0e=_0x26303b&&_0x26303b['rows']?_0x26303b[_0x196033(0x19c7)][0x0]:null;_0x57dc0e&&_0x57dc0e[_0x196033(0x193e)]?_0x5aaa49['go'](_0x196033(0x22cb),{}):_0x362e03[_0x196033(0x271e)]({'title':_0x32a8d4[_0x196033(0xde)](_0x196033(0xb27)),'msg':_0x32a8d4[_0x196033(0xde)](_0x196033(0x174a))});})[_0x648c95(0x129e)](function(_0x575f7d){const _0x3febdb=_0x648c95;_0x362e03[_0x3febdb(0x1980)]({'title':_0x575f7d[_0x3febdb(0x107b)]?_0x3febdb(0x262a)+_0x575f7d['status']+_0x3febdb(0x1315)+_0x575f7d[_0x3febdb(0x167f)]:_0x3febdb(0x698),'msg':_0x575f7d['status']?JSON['stringify'](_0x575f7d[_0x3febdb(0x524)]):_0x575f7d[_0x3febdb(0xd5f)]()});});}function _0x10d639(){const _0xd2eada=_0x5837f9;_0x5aaa49['go']('app.motiondialer.ivrCampaigns',{},{'reload':_0xd2eada(0x21b0)});}function _0x50b3ce(){const _0x239812=_0x5837f9;_0x1124d1[_0x239812(0x8dc)][_0x239812(0x18e1)]({'id':_0x1b48ec[_0x239812(0x958)]['id']},_0x1b48ec['ivrCampaign'])['$promise'][_0x239812(0x146b)](function(){const _0xfc7a50=_0x239812;_0x362e03[_0xfc7a50(0x1c75)]({'title':_0xfc7a50(0xeb1),'msg':_0x1b48ec[_0xfc7a50(0x958)][_0xfc7a50(0x19eb)]?_0x1b48ec[_0xfc7a50(0x958)][_0xfc7a50(0x19eb)]+'\x20has\x20been\x20updated!':''});})[_0x239812(0x129e)](function(_0x5020a8){const _0x1c4f92=_0x239812;_0x362e03[_0x1c4f92(0x1980)]({'title':_0x5020a8[_0x1c4f92(0x107b)]?_0x1c4f92(0x262a)+_0x5020a8[_0x1c4f92(0x107b)]+_0x1c4f92(0x1315)+_0x5020a8['statusText']:_0x1c4f92(0x17e9),'msg':_0x5020a8['data']?JSON[_0x1c4f92(0x10bb)](_0x5020a8['data']):_0x5020a8[_0x1c4f92(0xd5f)]()});});}}const _0x11b9fc=_0x5c7954;;_0x51ae18[_0x313a4d(0x11c2)]=['$scope',_0x313a4d(0x1aa9),'$state','$mdSidenav',_0x313a4d(0x10e8),_0x313a4d(0x4d8),_0x313a4d(0x1abe),_0x313a4d(0x214b),_0x313a4d(0x13f8),_0x313a4d(0x26b6),_0x313a4d(0x1366),_0x313a4d(0x247f),_0x313a4d(0x216c),_0x313a4d(0x1fe4),'Auth',_0x313a4d(0x2690),'setting'];function _0x51ae18(_0x1fd3f5,_0x11aec3,_0x54ab2c,_0x2476eb,_0x73e6ab,_0x4e9063,_0x21ca60,_0xbba65a,_0x124f5a,_0x314175,_0x4d6252,_0x5cac6f,_0x3e0506,_0x36bdbf,_0xa7b0c9,_0x38e382,_0x17b9bc){const _0x532a1e=_0x313a4d,_0x259ae4=this;_0x259ae4[_0x532a1e(0x2690)]=_0x38e382,_0x259ae4[_0x532a1e(0x15b9)]=_0x17b9bc,_0x259ae4[_0x532a1e(0x2321)]=_0xa7b0c9['getCurrentUser'](),_0x259ae4[_0x532a1e(0x13f8)]=_0x124f5a||{'count':0x0,'rows':[]},_0x259ae4[_0x532a1e(0x26b6)]=_0x314175,_0x259ae4['userProfileSection']=_0x4d6252&&_0x4d6252[_0x532a1e(0x51c)]==0x1?_0x4d6252[_0x532a1e(0x19c7)][0x0]:null,_0x259ae4['crudPermissions']=_0xa7b0c9[_0x532a1e(0xe60)](_0x259ae4[_0x532a1e(0x1366)]?_0x259ae4[_0x532a1e(0x1366)][_0x532a1e(0x2514)]:null),_0x259ae4[_0x532a1e(0x768)]=_0x532a1e(0x13f8),_0x259ae4['listOrder']='',_0x259ae4[_0x532a1e(0x214f)]=null,_0x259ae4[_0x532a1e(0xfab)]=[],_0x259ae4[_0x532a1e(0x1a56)]={'fields':_0x532a1e(0x1870),'type':_0x532a1e(0x1f0),'sort':_0x532a1e(0x12f2),'limit':0xa,'page':0x1},_0x259ae4[_0x532a1e(0x265)]=_0x3f65c0()[_0x532a1e(0x194)]([{'option':'ALWAYS','value':_0x532a1e(0x220a)},{'option':'NEVER','value':_0x532a1e(0xc7b)},{'option':'ONLY_IF_OPEN','value':_0x532a1e(0x6c8)}],function(_0x430e26){const _0x16135f=_0x532a1e;return _0x3f65c0()[_0x16135f(0x5f4)](_0x430e26[_0x16135f(0x175d)],new RegExp('\x27','g'),'');}),_0x259ae4['arraydialOrderByScheduledAt']=_0x3f65c0()['keyBy']([{'option':'DESC','value':_0x532a1e(0x191)},{'option':_0x532a1e(0x1734),'value':_0x532a1e(0x3b8)}],function(_0x4ec45d){const _0x28deb5=_0x532a1e;return _0x3f65c0()['replace'](_0x4ec45d[_0x28deb5(0x175d)],new RegExp('\x27','g'),'');}),_0x259ae4[_0x532a1e(0x23f9)]=_0xdfbd35,_0x259ae4[_0x532a1e(0xa26)]=_0x132300,_0x259ae4[_0x532a1e(0xa4a)]=_0x283867,_0x259ae4[_0x532a1e(0x1f45)]=_0x44a248,_0x259ae4[_0x532a1e(0xf0a)]=_0x3993ff,_0x259ae4[_0x532a1e(0x138d)]=_0xc70a9d,_0x259ae4['success']=_0x34fa7e,_0x259ae4[_0x532a1e(0xeee)]=_0x18b6b5,_0x259ae4[_0x532a1e(0x17e2)]=_0x5d82f5,_0x259ae4[_0x532a1e(0x3b4)]=_0x283cd0,_0x259ae4[_0x532a1e(0x1b7e)]=_0x4bf125,_0x259ae4['deleteSelectedIvrCampaigns']=_0x523adf,_0x259ae4[_0x532a1e(0x550)]=_0x49cf7f,_0x259ae4[_0x532a1e(0xf8f)]=_0x2cc6c4,_0xa7b0c9[_0x532a1e(0x23e0)](_0x532a1e(0x174b))?_0x5cac6f[_0x532a1e(0x279f)][_0x532a1e(0x16b4)]({'fields':'id,name','sort':_0x532a1e(0x19eb),'table':_0x532a1e(0x1185)})[_0x532a1e(0x2945)]['then'](function(_0x25d6c5){const _0x5f2d5a=_0x532a1e;_0x259ae4[_0x5f2d5a(0x2433)]=_0x25d6c5[_0x5f2d5a(0x19c7)]||[];})['catch'](function(_0x3ce3a3){const _0x16ede1=_0x532a1e;_0x36bdbf[_0x16ede1(0x1980)]({'title':_0x3ce3a3[_0x16ede1(0x107b)]?_0x16ede1(0x262a)+_0x3ce3a3['status']+_0x16ede1(0x1315)+_0x3ce3a3[_0x16ede1(0x167f)]:_0x16ede1(0xfc0),'msg':_0x3ce3a3[_0x16ede1(0x524)]?JSON[_0x16ede1(0x10bb)](_0x3ce3a3['data']):_0x3ce3a3[_0x16ede1(0xd5f)]()});}):_0x5cac6f['trunk']['get']({'fields':'id,name','sort':_0x532a1e(0x19eb),'table':_0x532a1e(0x1185)})[_0x532a1e(0x2945)][_0x532a1e(0x146b)](function(_0x359d58){const _0x50a983=_0x532a1e;_0x259ae4[_0x50a983(0x2433)]=_0x359d58[_0x50a983(0x19c7)]||[];})[_0x532a1e(0x146b)](function(){const _0x3226d9=_0x532a1e;return _0x5cac6f[_0x3226d9(0x1366)]['get']({'userProfileId':_0x259ae4[_0x3226d9(0x2321)][_0x3226d9(0x209a)],'sectionId':0x3f3})['$promise'];})[_0x532a1e(0x146b)](function(_0x1b6bd2){const _0x36fc60=_0x532a1e,_0xcfd5c2=_0x1b6bd2&&_0x1b6bd2[_0x36fc60(0x19c7)]?_0x1b6bd2['rows'][0x0]:null;if(!_0xcfd5c2)_0x259ae4[_0x36fc60(0x2433)]=[];else{if(!_0xcfd5c2['autoAssociation'])return _0x5cac6f[_0x36fc60(0xdcc)][_0x36fc60(0x16b4)]({'sectionId':_0xcfd5c2['id']})[_0x36fc60(0x2945)]['then'](function(_0x4b00d1){const _0x100994=_0x36fc60,_0x1bfc8e=_0x3f65c0()[_0x100994(0x205)](_0x4b00d1['rows'],function(_0x3bfe90){const _0x5c8129=_0x100994;return _0x3f65c0()['find'](_0x259ae4['trunks'],{'id':_0x3bfe90[_0x5c8129(0x18b8)]});});_0x259ae4[_0x100994(0x2433)][_0x100994(0x1df5)](function(_0x46357c){const _0xcb85e8=_0x100994;!_0x3f65c0()[_0xcb85e8(0x1360)](_0x1bfc8e,['id',_0x46357c['id']])&&(_0x46357c['canSelect']=![]),_0x1bfc8e[_0xcb85e8(0x1f47)](_0x46357c);}),_0x259ae4[_0x100994(0x2433)]=_0x1bfc8e;});}})[_0x532a1e(0x129e)](function(_0x142c0){const _0x486157=_0x532a1e;_0x36bdbf[_0x486157(0x1980)]({'title':_0x142c0[_0x486157(0x107b)]?_0x486157(0x262a)+_0x142c0[_0x486157(0x107b)]+'\x20-\x20'+_0x142c0[_0x486157(0x167f)]:_0x486157(0x2436),'msg':_0x142c0[_0x486157(0x524)]?JSON[_0x486157(0x10bb)](_0x142c0['data']):_0x142c0['toString']()});}),_0xa7b0c9['hasRole'](_0x532a1e(0x174b))?_0x5cac6f[_0x532a1e(0x9b1)][_0x532a1e(0x16b4)]({'fields':_0x532a1e(0x7a7),'sort':_0x532a1e(0x19eb)})['$promise'][_0x532a1e(0x146b)](function(_0xbdec1b){const _0xb91134=_0x532a1e;_0x259ae4[_0xb91134(0x1991)]=_0xbdec1b[_0xb91134(0x19c7)]||[];})[_0x532a1e(0x129e)](function(_0xeaedd9){const _0x4733a2=_0x532a1e;_0x36bdbf[_0x4733a2(0x1980)]({'title':_0xeaedd9[_0x4733a2(0x107b)]?_0x4733a2(0x262a)+_0xeaedd9['status']+_0x4733a2(0x1315)+_0xeaedd9[_0x4733a2(0x167f)]:_0x4733a2(0x1764),'msg':_0xeaedd9['data']?JSON['stringify'](_0xeaedd9[_0x4733a2(0x524)]):_0xeaedd9[_0x4733a2(0xd5f)]()});}):_0x5cac6f['squareProject'][_0x532a1e(0x16b4)]({'fields':'id,name','sort':_0x532a1e(0x19eb)})['$promise']['then'](function(_0x311fb8){const _0x196555=_0x532a1e;_0x259ae4['projects']=_0x311fb8[_0x196555(0x19c7)]||[];})[_0x532a1e(0x146b)](function(){const _0x3c4cca=_0x532a1e;return _0x5cac6f[_0x3c4cca(0x1366)][_0x3c4cca(0x16b4)]({'userProfileId':_0x259ae4[_0x3c4cca(0x2321)][_0x3c4cca(0x209a)],'sectionId':0x44f})[_0x3c4cca(0x2945)];})[_0x532a1e(0x146b)](function(_0x3609ab){const _0x606e84=_0x532a1e,_0xd618ad=_0x3609ab&&_0x3609ab['rows']?_0x3609ab[_0x606e84(0x19c7)][0x0]:null;if(!_0xd618ad){const _0x56c824=[],_0x4bba4f=[];_0x259ae4[_0x606e84(0x13f8)][_0x606e84(0x19c7)][_0x606e84(0x1df5)](function(_0x1cc2e5){const _0x5f4ea1=_0x606e84,_0x4323b0=_0x3f65c0()[_0x5f4ea1(0xc84)](_0x259ae4[_0x5f4ea1(0x1991)],{'id':Number(_0x1cc2e5[_0x5f4ea1(0x223c)])});_0x4bba4f['push'](_0x4323b0);});for(let _0x47f871=0x0;_0x47f871<_0x259ae4[_0x606e84(0x1991)][_0x606e84(0x402)];_0x47f871++){const _0x818e5=_0x3f65c0()[_0x606e84(0x1360)](_0x4bba4f,{'id':_0x259ae4['projects'][_0x47f871]['id']});_0x818e5&&(_0x259ae4[_0x606e84(0x1991)][_0x47f871][_0x606e84(0x8ff)]=![],_0x56c824[_0x606e84(0x1f47)](_0x259ae4['projects'][_0x47f871]));}_0x259ae4['projects']=_0x56c824;}else{if(!_0xd618ad[_0x606e84(0x11d2)])return _0x5cac6f[_0x606e84(0xdcc)]['get']({'sectionId':_0xd618ad['id']})[_0x606e84(0x2945)]['then'](function(_0x43185b){const _0x151c54=_0x606e84,_0x5772ca=_0x3f65c0()[_0x151c54(0x205)](_0x43185b['rows'],function(_0x5768f0){return _0x3f65c0()['find'](_0x259ae4['projects'],{'id':_0x5768f0['resourceId']});});let _0x431251=null;_0x431251=[],_0x259ae4[_0x151c54(0x13f8)][_0x151c54(0x19c7)][_0x151c54(0x1df5)](function(_0x3d78a0){const _0xfeb34d=_0x151c54,_0xbbebd=_0x3f65c0()[_0xfeb34d(0xc84)](_0x259ae4[_0xfeb34d(0x1991)],{'id':Number(_0x3d78a0[_0xfeb34d(0x223c)])});_0x431251[_0xfeb34d(0x1f47)](_0xbbebd);}),!_0x3f65c0()[_0x151c54(0x2635)](_0x431251)&&_0x431251[_0x151c54(0x1df5)](function(_0x95eb7f){const _0x2a2caf=_0x151c54;if(!_0x3f65c0()['some'](_0x5772ca,['id',_0x95eb7f['id']])){const _0x9ef4dd=_0x3f65c0()[_0x2a2caf(0xc84)](_0x259ae4['projects'],{'id':_0x95eb7f['id']});_0x9ef4dd[_0x2a2caf(0x8ff)]=![],_0x5772ca[_0x2a2caf(0x1f47)](_0x9ef4dd);}}),_0x259ae4[_0x151c54(0x1991)]=_0x5772ca;});}})['catch'](function(_0x4e3f43){const _0x15ee82=_0x532a1e;_0x36bdbf['error']({'title':_0x4e3f43[_0x15ee82(0x107b)]?_0x15ee82(0x262a)+_0x4e3f43[_0x15ee82(0x107b)]+_0x15ee82(0x1315)+_0x4e3f43[_0x15ee82(0x167f)]:_0x15ee82(0x193b),'msg':_0x4e3f43[_0x15ee82(0x524)]?JSON[_0x15ee82(0x10bb)](_0x4e3f43[_0x15ee82(0x524)]):_0x4e3f43[_0x15ee82(0xd5f)]()});}),_0xa7b0c9['hasRole']('admin')?_0x5cac6f['interval']['get']({'fields':'id,name','sort':_0x532a1e(0x19eb),'IntervalId':'null'})[_0x532a1e(0x2945)]['then'](function(_0x128e69){_0x259ae4['interval']=_0x128e69['rows']||[];})[_0x532a1e(0x129e)](function(_0x3c64a5){const _0x3899f3=_0x532a1e;_0x36bdbf[_0x3899f3(0x1980)]({'title':_0x3c64a5[_0x3899f3(0x107b)]?_0x3899f3(0x262a)+_0x3c64a5['status']+_0x3899f3(0x1315)+_0x3c64a5[_0x3899f3(0x167f)]:_0x3899f3(0x12c5),'msg':_0x3c64a5[_0x3899f3(0x524)]?JSON[_0x3899f3(0x10bb)](_0x3c64a5['data']):_0x3c64a5['toString']()});}):_0x5cac6f[_0x532a1e(0x2765)][_0x532a1e(0x16b4)]({'fields':_0x532a1e(0x7a7),'sort':'name','IntervalId':'null'})[_0x532a1e(0x2945)]['then'](function(_0x34d953){const _0x23ad6d=_0x532a1e;_0x259ae4['interval']=_0x34d953[_0x23ad6d(0x19c7)]||[];})[_0x532a1e(0x146b)](function(){const _0x2999ae=_0x532a1e;return _0x5cac6f[_0x2999ae(0x1366)][_0x2999ae(0x16b4)]({'userProfileId':_0x259ae4[_0x2999ae(0x2321)]['userProfileId'],'sectionId':0x3ec})[_0x2999ae(0x2945)];})['then'](function(_0x3fa5fa){const _0x3b3081=_0x532a1e,_0x3b2b15=_0x3fa5fa&&_0x3fa5fa[_0x3b3081(0x19c7)]?_0x3fa5fa[_0x3b3081(0x19c7)][0x0]:null;if(!_0x3b2b15){const _0x1326e7=[];let _0x49423b=null;_0x259ae4[_0x3b3081(0x958)]&&(_0x49423b=_0x3f65c0()[_0x3b3081(0xc84)](_0x259ae4[_0x3b3081(0x2765)],{'id':Number(_0x259ae4[_0x3b3081(0x958)][_0x3b3081(0x1ff2)])}));for(let _0x4d5817=0x0;_0x4d5817<_0x259ae4[_0x3b3081(0x2765)][_0x3b3081(0x402)];_0x4d5817++){_0x49423b&&_0x259ae4['interval'][_0x4d5817]['id']===_0x49423b['id']&&(_0x259ae4[_0x3b3081(0x2765)][_0x4d5817][_0x3b3081(0x8ff)]=![],_0x1326e7[_0x3b3081(0x1f47)](_0x259ae4[_0x3b3081(0x2765)][_0x4d5817]));}_0x259ae4[_0x3b3081(0x2765)]=_0x1326e7;}else{if(!_0x3b2b15[_0x3b3081(0x11d2)])return _0x5cac6f[_0x3b3081(0xdcc)][_0x3b3081(0x16b4)]({'sectionId':_0x3b2b15['id']})['$promise'][_0x3b3081(0x146b)](function(_0x49301b){const _0x4506d0=_0x3b3081,_0x189bd1=_0x3f65c0()[_0x4506d0(0x205)](_0x49301b[_0x4506d0(0x19c7)],function(_0x58f38b){const _0x4bd687=_0x4506d0;return _0x3f65c0()[_0x4bd687(0xc84)](_0x259ae4[_0x4bd687(0x2765)],{'id':_0x58f38b[_0x4bd687(0x18b8)]});});let _0x10d86b=null;_0x259ae4[_0x4506d0(0x958)]&&(_0x10d86b=_0x3f65c0()[_0x4506d0(0xc84)](_0x259ae4['interval'],{'id':Number(_0x259ae4[_0x4506d0(0x958)][_0x4506d0(0x1ff2)])}));if(_0x10d86b&&!_0x3f65c0()[_0x4506d0(0x1360)](_0x189bd1,['id',_0x10d86b['id']])){const _0x3ed2e2=_0x3f65c0()['find'](_0x259ae4[_0x4506d0(0x2765)],{'id':_0x10d86b['id']});_0x3ed2e2['canSelect']=![],_0x189bd1[_0x4506d0(0x1f47)](_0x3ed2e2);}_0x259ae4[_0x4506d0(0x2765)]=_0x189bd1;});}})[_0x532a1e(0x129e)](function(_0x631c9c){const _0x1c827f=_0x532a1e;_0x36bdbf[_0x1c827f(0x1980)]({'title':_0x631c9c['status']?_0x1c827f(0x262a)+_0x631c9c[_0x1c827f(0x107b)]+_0x1c827f(0x1315)+_0x631c9c['statusText']:_0x1c827f(0x8b6),'msg':_0x631c9c[_0x1c827f(0x524)]?JSON[_0x1c827f(0x10bb)](_0x631c9c['data']):_0x631c9c[_0x1c827f(0xd5f)]()});});function _0xdfbd35(_0x207b05){const _0x5864ee=_0x532a1e;_0x54ab2c['go']('app.motiondialer.ivrCampaigns.edit',{'id':_0x207b05['id'],'ivrCampaign':_0x207b05,'crudPermissions':_0x259ae4[_0x5864ee(0x2514)]});}function _0x132300(_0x478df6,_0x331e38){const _0x25e1a1=_0x532a1e;_0x73e6ab[_0x25e1a1(0x2615)]({'controller':_0x25e1a1(0x2724),'controllerAs':'vm','templateUrl':_0x4c9ed3,'parent':angular['element'](_0x4e9063[_0x25e1a1(0x2586)]),'targetEvent':_0x331e38,'clickOutsideToClose':!![],'locals':{'ivrCampaign':_0x478df6,'ivrCampaigns':_0x259ae4[_0x25e1a1(0x13f8)]?_0x259ae4[_0x25e1a1(0x13f8)][_0x25e1a1(0x19c7)]:[],'crudPermissions':_0x259ae4[_0x25e1a1(0x2514)]}});}function _0x283867(_0x2c331d,_0x117b4a){const _0x59de37=_0x532a1e;_0x73e6ab[_0x59de37(0x2615)]({'controller':_0x59de37(0x222d),'controllerAs':'vm','templateUrl':_0xd68527,'parent':angular[_0x59de37(0x1853)](_0x4e9063['body']),'targetEvent':_0x117b4a,'clickOutsideToClose':!![],'locals':{'ivrCampaign':_0x2c331d,'ivrCampaigns':_0x259ae4[_0x59de37(0x13f8)]?_0x259ae4['ivrCampaigns']['rows']:[],'crudPermissions':_0x259ae4[_0x59de37(0x2514)]}});}function _0x44a248(_0x2e2dc3,_0x4bd0de){const _0x4ebc51=_0x532a1e;_0x73e6ab[_0x4ebc51(0x2615)]({'controller':_0x4ebc51(0x22de),'controllerAs':'vm','templateUrl':_0x52912f,'parent':angular[_0x4ebc51(0x1853)](_0x4e9063[_0x4ebc51(0x2586)]),'targetEvent':_0x4bd0de,'clickOutsideToClose':!![],'locals':{'ivrCampaign':_0x2e2dc3,'ivrCampaigns':_0x259ae4[_0x4ebc51(0x13f8)]?_0x259ae4[_0x4ebc51(0x13f8)][_0x4ebc51(0x19c7)]:[],'crudPermissions':_0x259ae4[_0x4ebc51(0x2514)]}});}function _0x3993ff(_0x124ce1,_0x14abfb){const _0x3f3823=_0x532a1e,_0x34282d=_0x73e6ab['confirm']()[_0x3f3823(0x1189)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x3f65c0()['startCase'](_0x3f3823(0x958))+'?')[_0x3f3823(0x1cbe)](_0x3f3823(0x16d3)+(_0x124ce1[_0x3f3823(0x19eb)]||_0x3f3823(0x958))+_0x3f3823(0x252f)+_0x3f3823(0xe01))[_0x3f3823(0x4bd)](_0x3f3823(0x1db3))['targetEvent'](_0x14abfb)['ok']('OK')[_0x3f3823(0x6c3)](_0x3f3823(0x39a));_0x73e6ab[_0x3f3823(0x2615)](_0x34282d)[_0x3f3823(0x146b)](function(){_0x283cd0(_0x124ce1);},function(){const _0xd60789=_0x3f3823;console[_0xd60789(0x1a74)](_0xd60789(0x39a));});}function _0xc70a9d(){const _0x29b60f=_0x532a1e;if(_0xa7b0c9['hasRole'](_0x29b60f(0x174b)))_0x54ab2c['go']('app.motiondialer.realtime.ivr_campaigns',{});else return _0x5cac6f['userProfileSection'][_0x29b60f(0x16b4)]({'userProfileId':_0xa7b0c9[_0x29b60f(0xb12)]()[_0x29b60f(0x209a)],'sectionId':0x5e6})[_0x29b60f(0x2945)][_0x29b60f(0x146b)](function(_0x4f75ca){const _0x27c6b5=_0x29b60f,_0x43ffe6=_0x4f75ca&&_0x4f75ca['rows']?_0x4f75ca[_0x27c6b5(0x19c7)][0x0]:null;_0x43ffe6&&_0x43ffe6['enabled']?_0x54ab2c['go'](_0x27c6b5(0x22cb),{}):_0x36bdbf[_0x27c6b5(0x271e)]({'title':_0xbba65a[_0x27c6b5(0xde)](_0x27c6b5(0xb27)),'msg':_0xbba65a[_0x27c6b5(0xde)](_0x27c6b5(0x174a))});})[_0x29b60f(0x129e)](function(_0x48150d){const _0x2348bb=_0x29b60f;_0x36bdbf[_0x2348bb(0x1980)]({'title':_0x48150d[_0x2348bb(0x107b)]?'API:'+_0x48150d['status']+_0x2348bb(0x1315)+_0x48150d[_0x2348bb(0x167f)]:'USERPROFILE:GET_SECTION','msg':_0x48150d[_0x2348bb(0x107b)]?JSON[_0x2348bb(0x10bb)](_0x48150d[_0x2348bb(0x524)]):_0x48150d['toString']()});});}let _0x139acb=!![],_0x5b461f=0x1;_0x1fd3f5['$watch'](_0x532a1e(0x2669),function(_0x24e953,_0x49ce84){const _0x2171e7=_0x532a1e;_0x139acb?_0x21ca60(function(){_0x139acb=![];}):(!_0x49ce84&&(_0x5b461f=_0x259ae4[_0x2171e7(0x1a56)]['page']),_0x24e953!==_0x49ce84&&(_0x259ae4[_0x2171e7(0x1a56)]['page']=0x1),!_0x24e953&&(_0x259ae4[_0x2171e7(0x1a56)][_0x2171e7(0x844)]=_0x5b461f),_0x259ae4[_0x2171e7(0xeee)]());});function _0x34fa7e(_0x3cb6da){const _0xb4a13d=_0x532a1e;_0x259ae4[_0xb4a13d(0x13f8)]=_0x3cb6da||{'count':0x0,'rows':[]};}function _0x18b6b5(){const _0x19c8dd=_0x532a1e;_0x259ae4[_0x19c8dd(0x1a56)][_0x19c8dd(0x145d)]=(_0x259ae4[_0x19c8dd(0x1a56)][_0x19c8dd(0x844)]-0x1)*_0x259ae4['query']['limit'],_0xa7b0c9[_0x19c8dd(0x23e0)](_0x19c8dd(0x174b))?_0x259ae4[_0x19c8dd(0xb9c)]=_0x5cac6f[_0x19c8dd(0x8dc)][_0x19c8dd(0x16b4)](_0x259ae4[_0x19c8dd(0x1a56)],_0x34fa7e)['$promise']:(_0x259ae4['query']['id']=_0x259ae4[_0x19c8dd(0x26b6)]['id'],_0x259ae4[_0x19c8dd(0x1a56)][_0x19c8dd(0x2146)]=_0x19c8dd(0x27f9),_0x259ae4['promise']=_0x5cac6f[_0x19c8dd(0x26b6)]['getResources'](_0x259ae4['query'],_0x34fa7e)[_0x19c8dd(0x2945)]);}function _0x5d82f5(_0x5a9f88,_0x4a80e3){const _0x56b856=_0x532a1e;_0x73e6ab['show']({'controller':_0x56b856(0x6da),'controllerAs':'vm','templateUrl':_0x513fc7,'parent':angular[_0x56b856(0x1853)](_0x4e9063['body']),'targetEvent':_0x5a9f88,'clickOutsideToClose':!![],'locals':{'ivrCampaign':_0x4a80e3,'ivrCampaigns':_0x259ae4[_0x56b856(0x13f8)][_0x56b856(0x19c7)],'license':_0x259ae4[_0x56b856(0x2690)],'setting':_0x259ae4['setting'],'crudPermissions':_0x259ae4[_0x56b856(0x2514)]}});}function _0x283cd0(_0x536b0c){const _0x3f03fd=_0x532a1e;_0x5cac6f[_0x3f03fd(0x8dc)][_0x3f03fd(0x1fac)]({'id':_0x536b0c['id']})[_0x3f03fd(0x2945)][_0x3f03fd(0x146b)](function(){const _0x483eff=_0x3f03fd;_0x3f65c0()['remove'](_0x259ae4[_0x483eff(0x13f8)][_0x483eff(0x19c7)],{'id':_0x536b0c['id']}),_0x259ae4[_0x483eff(0x13f8)]['count']-=0x1,!_0x259ae4[_0x483eff(0x13f8)]['rows'][_0x483eff(0x402)]&&_0x259ae4['getIvrCampaigns'](),_0x36bdbf['success']({'title':_0x3f65c0()[_0x483eff(0x20d1)]('IvrCampaign')+'\x20deleted!','msg':_0x536b0c[_0x483eff(0x19eb)]?_0x536b0c[_0x483eff(0x19eb)]+'\x20has\x20been\x20deleted!':''});})[_0x3f03fd(0x129e)](function(_0x941ebf){const _0x1eec3a=_0x3f03fd;if(_0x941ebf[_0x1eec3a(0x524)]&&_0x941ebf['data'][_0x1eec3a(0xcef)]&&_0x941ebf[_0x1eec3a(0x524)][_0x1eec3a(0xcef)][_0x1eec3a(0x402)]){_0x259ae4['errors']=_0x941ebf[_0x1eec3a(0x524)][_0x1eec3a(0xcef)]||[{'message':_0x941ebf[_0x1eec3a(0xd5f)](),'type':_0x1eec3a(0xb83)}];for(let _0xff77f0=0x0;_0xff77f0<_0x941ebf[_0x1eec3a(0x524)][_0x1eec3a(0xcef)]['length'];_0xff77f0++){_0x36bdbf[_0x1eec3a(0x1980)]({'title':_0x941ebf[_0x1eec3a(0x524)][_0x1eec3a(0xcef)][_0xff77f0][_0x1eec3a(0x1142)],'msg':_0x941ebf[_0x1eec3a(0x524)][_0x1eec3a(0xcef)][_0xff77f0][_0x1eec3a(0x7fd)]});}}else _0x36bdbf['error']({'title':_0x941ebf[_0x1eec3a(0x107b)]?_0x1eec3a(0x262a)+_0x941ebf[_0x1eec3a(0x107b)]+_0x1eec3a(0x1315)+_0x941ebf[_0x1eec3a(0x167f)]:_0x1eec3a(0xb83),'msg':_0x941ebf[_0x1eec3a(0x524)]?JSON['stringify'](_0x941ebf[_0x1eec3a(0x524)][_0x1eec3a(0x7fd)]):_0x941ebf[_0x1eec3a(0x7fd)]||_0x941ebf['toString']()});});}function _0x4bf125(){const _0x332ccb=_0x532a1e,_0x56716f=angular['copy'](_0x259ae4[_0x332ccb(0xfab)]);return _0x259ae4['selectedIvrCampaigns']=[],_0x56716f;}function _0x523adf(_0xa2f242){const _0x3a5e66=_0x532a1e,_0x140902=_0x73e6ab[_0x3a5e66(0x1e8a)]()['title'](_0x3a5e66(0x1535))[_0x3a5e66(0x1cbe)](_0x3a5e66(0x16d3)+_0x259ae4[_0x3a5e66(0xfab)][_0x3a5e66(0x402)]+_0x3a5e66(0x2452)+_0x3a5e66(0xe01))[_0x3a5e66(0x4bd)](_0x3a5e66(0x1e1f))[_0x3a5e66(0x1f27)](_0xa2f242)['ok']('OK')[_0x3a5e66(0x6c3)](_0x3a5e66(0x39a));_0x73e6ab[_0x3a5e66(0x2615)](_0x140902)['then'](function(){const _0x5bf431=_0x3a5e66;_0x259ae4[_0x5bf431(0xfab)][_0x5bf431(0x1df5)](function(_0x347af3){_0x283cd0(_0x347af3);}),_0x259ae4[_0x5bf431(0xfab)]=[];});}function _0x49cf7f(){const _0x3b9420=_0x532a1e;_0x259ae4[_0x3b9420(0xfab)]=[];}function _0x2cc6c4(){const _0x5e440c=_0x532a1e;_0x259ae4['selectedIvrCampaigns']=_0x259ae4[_0x5e440c(0x13f8)][_0x5e440c(0x19c7)];}}const _0x742fe9=_0x51ae18;;_0x5f34ef[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),'$state','$location',_0x313a4d(0x10e8),'$q',_0x313a4d(0x214b),_0x313a4d(0x1fe4),_0x313a4d(0x17c4),'queueCampaign',_0x313a4d(0x247f),_0x313a4d(0xa87),_0x313a4d(0x2690),_0x313a4d(0x15b9),_0x313a4d(0x2514)];function _0x5f34ef(_0x1c37e4,_0x3d6ad8,_0x3d8c53,_0x184bee,_0x340f22,_0x153dd9,_0x3dc0be,_0x3bc72b,_0x584515,_0x4a84c2,_0x6a4c56,_0x2ff7d4,_0x1cf1e8,_0x4f6cfa){const _0x4bcbc9=_0x313a4d,_0x17bdd6=this;_0x17bdd6[_0x4bcbc9(0x2321)]=_0x6a4c56['getCurrentUser'](),_0x17bdd6[_0x4bcbc9(0xcef)]=[],_0x17bdd6['setting']=_0x1cf1e8,_0x17bdd6[_0x4bcbc9(0x2690)]=_0x2ff7d4,_0x17bdd6['crudPermissions']=_0x4f6cfa,_0x17bdd6[_0x4bcbc9(0x855)]={},_0x17bdd6['passwordPattern']=_0x17bdd6[_0x4bcbc9(0x15b9)]&&_0x17bdd6[_0x4bcbc9(0x15b9)][_0x4bcbc9(0x976)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x17bdd6[_0x4bcbc9(0x1189)]=_0x4bcbc9(0x1eab),_0x17bdd6[_0x4bcbc9(0x1f0f)]=angular[_0x4bcbc9(0x235a)](_0x584515),_0x17bdd6[_0x4bcbc9(0x17c4)]=_0x3bc72b,_0x17bdd6[_0x4bcbc9(0xba6)]=![];!_0x17bdd6[_0x4bcbc9(0x1f0f)]&&(_0x17bdd6['queueCampaign']={'dialActive':!![],'type':'outbound','dialCheckDuplicateType':_0x4bcbc9(0xd85),'dialCutDigit':0x0,'autopause':'no','ringinuse':'no','timeoutrestart':'no','setinterfacevar':'no','setqueuevar':'no','setqueueentryvar':'no','dialOrderByScheduledAt':_0x4bcbc9(0x1734),'dialGlobalInterval':_0x4bcbc9(0x259f),'dialAMDInitialSilence':0x9c4,'dialAMDGreeting':0x5dc,'dialAMDAfterGreetingSilence':0x320,'dialAMDTotalAnalysisTime':0x1388,'dialAMDMinWordLength':0x64,'dialAMDBetweenWordsSilence':0x32,'dialAMDMaximumNumberOfWords':0x3,'dialAMDSilenceThreshold':0x100,'dialAMDMaximumWordLength':0x1388,'dialMethod':'progressive','dialPowerLevel':0x1,'dialPredictiveOptimization':'dropRate','dialPredictiveOptimizationPercentage':0x3,'dialPredictiveInterval':0xa,'dialLimitQueue':0x0,'dialRandomLastDigitCallerIdNumber':0x0,'dialOriginateTimeout':0x1e,'dialQueueOptions':_0x4bcbc9(0x919),'dialQueueTimeout':0x3,'strategy':_0x4bcbc9(0x533),'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},_0x17bdd6[_0x4bcbc9(0x1189)]='MOTIONDIALER.NEW_QUEUECAMPAIGN',_0x17bdd6[_0x4bcbc9(0xba6)]=!![]);_0x17bdd6[_0x4bcbc9(0x26a2)]=_0x1616c8,_0x17bdd6[_0x4bcbc9(0x27a9)]=_0x432afd,_0x17bdd6[_0x4bcbc9(0x696)]=_0x28c726,_0x17bdd6[_0x4bcbc9(0xe73)]=_0x33a009,_0x17bdd6[_0x4bcbc9(0x13f3)]=_0x4d560d,_0x6a4c56[_0x4bcbc9(0x23e0)](_0x4bcbc9(0x174b))?_0x4a84c2[_0x4bcbc9(0x279f)][_0x4bcbc9(0x16b4)]({'fields':_0x4bcbc9(0x7a7),'sort':_0x4bcbc9(0x19eb)})[_0x4bcbc9(0x2945)][_0x4bcbc9(0x146b)](function(_0x506b4f){const _0x569ec4=_0x4bcbc9;_0x17bdd6[_0x569ec4(0x2433)]=_0x506b4f[_0x569ec4(0x19c7)]||[];})['catch'](function(_0x3f5cde){const _0x19153a=_0x4bcbc9;_0x3dc0be[_0x19153a(0x1980)]({'title':_0x3f5cde[_0x19153a(0x107b)]?_0x19153a(0x262a)+_0x3f5cde[_0x19153a(0x107b)]+_0x19153a(0x1315)+_0x3f5cde[_0x19153a(0x167f)]:_0x19153a(0xfc0),'msg':_0x3f5cde[_0x19153a(0x524)]?JSON[_0x19153a(0x10bb)](_0x3f5cde[_0x19153a(0x524)]):_0x3f5cde[_0x19153a(0xd5f)]()});}):_0x4a84c2[_0x4bcbc9(0x279f)][_0x4bcbc9(0x16b4)]({'fields':'id,name','sort':_0x4bcbc9(0x19eb)})[_0x4bcbc9(0x2945)][_0x4bcbc9(0x146b)](function(_0x5a0867){const _0x4bea19=_0x4bcbc9;_0x17bdd6[_0x4bea19(0x2433)]=_0x5a0867['rows']||[];})['then'](function(){const _0x32fd28=_0x4bcbc9;return _0x4a84c2['userProfileSection']['get']({'userProfileId':_0x17bdd6['currentUser'][_0x32fd28(0x209a)],'sectionId':0x3f3})['$promise'];})[_0x4bcbc9(0x146b)](function(_0x417cf5){const _0x259ce7=_0x4bcbc9,_0x53320e=_0x417cf5&&_0x417cf5[_0x259ce7(0x19c7)]?_0x417cf5['rows'][0x0]:null;if(!_0x53320e){const _0x2d4eab=[];let _0x2b1331=null;_0x17bdd6[_0x259ce7(0x1f0f)]&&(_0x2b1331=_0x3f65c0()[_0x259ce7(0xc84)](_0x17bdd6['trunks'],{'id':Number(_0x17bdd6[_0x259ce7(0x1f0f)][_0x259ce7(0x1b77)])}));for(let _0x45c799=0x0;_0x45c799<_0x17bdd6[_0x259ce7(0x2433)][_0x259ce7(0x402)];_0x45c799++){_0x2b1331&&_0x17bdd6[_0x259ce7(0x2433)][_0x45c799]['id']===_0x2b1331['id']&&(_0x17bdd6['trunks'][_0x45c799]['canSelect']=![],_0x2d4eab['push'](_0x17bdd6[_0x259ce7(0x2433)][_0x45c799]));}_0x17bdd6[_0x259ce7(0x2433)]=_0x2d4eab;}else{if(!_0x53320e['autoAssociation'])return _0x4a84c2['userProfileResource'][_0x259ce7(0x16b4)]({'sectionId':_0x53320e['id']})['$promise']['then'](function(_0xa3fe69){const _0x2ded13=_0x259ce7,_0xe1eb1f=_0x3f65c0()[_0x2ded13(0x205)](_0xa3fe69[_0x2ded13(0x19c7)],function(_0x1297c8){const _0x45a221=_0x2ded13;return _0x3f65c0()[_0x45a221(0xc84)](_0x17bdd6[_0x45a221(0x2433)],{'id':_0x1297c8['resourceId']});});let _0x25d99e=null;_0x17bdd6[_0x2ded13(0x1f0f)]&&(_0x25d99e=_0x3f65c0()['find'](_0x17bdd6['trunks'],{'id':Number(_0x17bdd6[_0x2ded13(0x1f0f)][_0x2ded13(0x1b77)])}));if(_0x25d99e&&!_0x3f65c0()[_0x2ded13(0x1360)](_0xe1eb1f,['id',_0x25d99e['id']])){const _0x3e6b97=_0x3f65c0()[_0x2ded13(0xc84)](_0x17bdd6[_0x2ded13(0x2433)],{'id':_0x25d99e['id']});_0x3e6b97[_0x2ded13(0x8ff)]=![],_0xe1eb1f[_0x2ded13(0x1f47)](_0x3e6b97);}_0x17bdd6[_0x2ded13(0x2433)]=_0xe1eb1f;});}})[_0x4bcbc9(0x129e)](function(_0x2a3c72){const _0xb39e9c=_0x4bcbc9;_0x3dc0be[_0xb39e9c(0x1980)]({'title':_0x2a3c72[_0xb39e9c(0x107b)]?'API:'+_0x2a3c72[_0xb39e9c(0x107b)]+'\x20-\x20'+_0x2a3c72['statusText']:_0xb39e9c(0x2436),'msg':_0x2a3c72[_0xb39e9c(0x524)]?JSON[_0xb39e9c(0x10bb)](_0x2a3c72[_0xb39e9c(0x524)]):_0x2a3c72['toString']()});}),_0x6a4c56[_0x4bcbc9(0x23e0)](_0x4bcbc9(0x174b))?_0x4a84c2[_0x4bcbc9(0x2765)][_0x4bcbc9(0x16b4)]({'fields':_0x4bcbc9(0x7a7),'sort':_0x4bcbc9(0x19eb),'IntervalId':_0x4bcbc9(0x203c)})[_0x4bcbc9(0x2945)][_0x4bcbc9(0x146b)](function(_0xc5da4c){_0x17bdd6['interval']=_0xc5da4c['rows']||[];})[_0x4bcbc9(0x129e)](function(_0x447734){const _0x197111=_0x4bcbc9;_0x3dc0be['error']({'title':_0x447734[_0x197111(0x107b)]?'API:'+_0x447734[_0x197111(0x107b)]+_0x197111(0x1315)+_0x447734[_0x197111(0x167f)]:_0x197111(0x12c5),'msg':_0x447734['data']?JSON[_0x197111(0x10bb)](_0x447734[_0x197111(0x524)]):_0x447734[_0x197111(0xd5f)]()});}):_0x4a84c2[_0x4bcbc9(0x2765)]['get']({'fields':_0x4bcbc9(0x7a7),'sort':_0x4bcbc9(0x19eb),'IntervalId':_0x4bcbc9(0x203c)})[_0x4bcbc9(0x2945)]['then'](function(_0x2b6747){const _0x5374e9=_0x4bcbc9;_0x17bdd6[_0x5374e9(0x2765)]=_0x2b6747['rows']||[];})['then'](function(){const _0x419b7c=_0x4bcbc9;return _0x4a84c2[_0x419b7c(0x1366)][_0x419b7c(0x16b4)]({'userProfileId':_0x17bdd6[_0x419b7c(0x2321)][_0x419b7c(0x209a)],'sectionId':0x3ec})[_0x419b7c(0x2945)];})[_0x4bcbc9(0x146b)](function(_0x4416b1){const _0x57f8d2=_0x4bcbc9,_0x42b631=_0x4416b1&&_0x4416b1['rows']?_0x4416b1[_0x57f8d2(0x19c7)][0x0]:null;if(!_0x42b631){const _0x1077a2=[];let _0xc1741e=null;_0x17bdd6['queueCampaign']&&(_0xc1741e=_0x3f65c0()['find'](_0x17bdd6[_0x57f8d2(0x2765)],{'id':Number(_0x17bdd6['queueCampaign']['IntervalId'])}));for(let _0xe92322=0x0;_0xe92322<_0x17bdd6[_0x57f8d2(0x2765)][_0x57f8d2(0x402)];_0xe92322++){_0xc1741e&&_0x17bdd6[_0x57f8d2(0x2765)][_0xe92322]['id']===_0xc1741e['id']&&(_0x17bdd6[_0x57f8d2(0x2765)][_0xe92322][_0x57f8d2(0x8ff)]=![],_0x1077a2[_0x57f8d2(0x1f47)](_0x17bdd6['interval'][_0xe92322]));}_0x17bdd6[_0x57f8d2(0x2765)]=_0x1077a2;}else{if(!_0x42b631[_0x57f8d2(0x11d2)])return _0x4a84c2[_0x57f8d2(0xdcc)][_0x57f8d2(0x16b4)]({'sectionId':_0x42b631['id']})[_0x57f8d2(0x2945)][_0x57f8d2(0x146b)](function(_0x5690ef){const _0xb78cac=_0x57f8d2,_0xc6de2f=_0x3f65c0()['map'](_0x5690ef[_0xb78cac(0x19c7)],function(_0x167165){const _0xe1a5c4=_0xb78cac;return _0x3f65c0()[_0xe1a5c4(0xc84)](_0x17bdd6[_0xe1a5c4(0x2765)],{'id':_0x167165[_0xe1a5c4(0x18b8)]});});let _0x545e6c=null;_0x17bdd6[_0xb78cac(0x1f0f)]&&(_0x545e6c=_0x3f65c0()[_0xb78cac(0xc84)](_0x17bdd6['interval'],{'id':Number(_0x17bdd6[_0xb78cac(0x1f0f)][_0xb78cac(0x1ff2)])}));if(_0x545e6c&&!_0x3f65c0()[_0xb78cac(0x1360)](_0xc6de2f,['id',_0x545e6c['id']])){const _0x88fdca=_0x3f65c0()['find'](_0x17bdd6[_0xb78cac(0x2765)],{'id':_0x545e6c['id']});_0x88fdca[_0xb78cac(0x8ff)]=![],_0xc6de2f[_0xb78cac(0x1f47)](_0x88fdca);}_0x17bdd6[_0xb78cac(0x2765)]=_0xc6de2f;});}})[_0x4bcbc9(0x129e)](function(_0x116232){const _0x43c2af=_0x4bcbc9;_0x3dc0be[_0x43c2af(0x1980)]({'title':_0x116232[_0x43c2af(0x107b)]?'API:'+_0x116232[_0x43c2af(0x107b)]+_0x43c2af(0x1315)+_0x116232[_0x43c2af(0x167f)]:'SYSTEM:GETinterval','msg':_0x116232[_0x43c2af(0x524)]?JSON[_0x43c2af(0x10bb)](_0x116232['data']):_0x116232[_0x43c2af(0xd5f)]()});});function _0x1616c8(){const _0xa8edd1=_0x4bcbc9;_0x17bdd6[_0xa8edd1(0xcef)]=[],_0x4a84c2[_0xa8edd1(0x1446)][_0xa8edd1(0x1e3)](_0x17bdd6[_0xa8edd1(0x1f0f)])[_0xa8edd1(0x2945)]['then'](function(_0xac551d){const _0x521cb2=_0xa8edd1;_0x17bdd6[_0x521cb2(0x17c4)][_0x521cb2(0xb3d)](_0xac551d[_0x521cb2(0x2488)]()),_0x3dc0be[_0x521cb2(0x1c75)]({'title':'QueueCampaign\x20properly\x20created','msg':_0x17bdd6[_0x521cb2(0x1f0f)][_0x521cb2(0x19eb)]?_0x17bdd6[_0x521cb2(0x1f0f)][_0x521cb2(0x19eb)]+'\x20has\x20been\x20created!':''}),_0x4d560d(_0xac551d);})[_0xa8edd1(0x129e)](function(_0x3e4757){const _0x2fe6c8=_0xa8edd1;if(_0x3e4757['data']&&_0x3e4757[_0x2fe6c8(0x524)][_0x2fe6c8(0xcef)]&&_0x3e4757[_0x2fe6c8(0x524)][_0x2fe6c8(0xcef)]['length']){_0x17bdd6[_0x2fe6c8(0xcef)]=_0x3e4757['data'][_0x2fe6c8(0xcef)]||[{'message':_0x3e4757[_0x2fe6c8(0xd5f)](),'type':'api.voiceQueue.save'}];for(let _0x5270b8=0x0;_0x5270b8<_0x3e4757[_0x2fe6c8(0x524)]['errors'][_0x2fe6c8(0x402)];_0x5270b8+=0x1){_0x3dc0be[_0x2fe6c8(0x1980)]({'title':_0x3e4757[_0x2fe6c8(0x524)]['errors'][_0x5270b8][_0x2fe6c8(0x1142)],'msg':_0x3e4757[_0x2fe6c8(0x524)][_0x2fe6c8(0xcef)][_0x5270b8][_0x2fe6c8(0x7fd)]});}}else _0x3dc0be[_0x2fe6c8(0x1980)]({'title':_0x3e4757[_0x2fe6c8(0x107b)]?_0x2fe6c8(0x262a)+_0x3e4757['status']+_0x2fe6c8(0x1315)+_0x3e4757['statusText']:'api.voiceQueue.save','msg':_0x3e4757[_0x2fe6c8(0x524)]?JSON[_0x2fe6c8(0x10bb)](_0x3e4757['data']['message']):_0x3e4757[_0x2fe6c8(0xd5f)]()});});}function _0x432afd(){const _0x56765e=_0x4bcbc9;_0x17bdd6['errors']=[],_0x4a84c2['voiceQueue'][_0x56765e(0x18e1)]({'id':_0x17bdd6[_0x56765e(0x1f0f)]['id']},_0x17bdd6['queueCampaign'])[_0x56765e(0x2945)][_0x56765e(0x146b)](function(_0xbb05ab){const _0x1eecac=_0x56765e,_0x50175a=_0x3f65c0()['find'](_0x17bdd6[_0x1eecac(0x17c4)],{'id':_0xbb05ab['id']});_0x50175a&&_0x3f65c0()[_0x1eecac(0x168d)](_0x50175a,_0x3f65c0()[_0x1eecac(0x40e)](_0xbb05ab[_0x1eecac(0x2488)](),_0x3f65c0()[_0x1eecac(0x627)](_0x50175a))),_0x3dc0be[_0x1eecac(0x1c75)]({'title':'QueueCampaign\x20properly\x20saved!','msg':_0x17bdd6[_0x1eecac(0x1f0f)][_0x1eecac(0x19eb)]?_0x17bdd6['queueCampaign'][_0x1eecac(0x19eb)]+_0x1eecac(0x24db):''}),_0x4d560d(_0xbb05ab);})[_0x56765e(0x129e)](function(_0x47d05b){const _0x195255=_0x56765e;if(_0x47d05b[_0x195255(0x524)]&&_0x47d05b['data'][_0x195255(0xcef)]&&_0x47d05b[_0x195255(0x524)][_0x195255(0xcef)][_0x195255(0x402)]){_0x17bdd6[_0x195255(0xcef)]=_0x47d05b['data']['errors']||[{'message':_0x47d05b[_0x195255(0xd5f)](),'type':_0x195255(0x221f)}];for(let _0xace93c=0x0;_0xace93c<_0x47d05b[_0x195255(0x524)][_0x195255(0xcef)][_0x195255(0x402)];_0xace93c++){_0x3dc0be['error']({'title':_0x47d05b[_0x195255(0x524)][_0x195255(0xcef)][_0xace93c]['type'],'msg':_0x47d05b[_0x195255(0x524)][_0x195255(0xcef)][_0xace93c][_0x195255(0x7fd)]});}}else _0x3dc0be['error']({'title':_0x47d05b[_0x195255(0x107b)]?_0x195255(0x262a)+_0x47d05b['status']+_0x195255(0x1315)+_0x47d05b[_0x195255(0x167f)]:_0x195255(0x221f),'msg':_0x47d05b[_0x195255(0x524)]?JSON[_0x195255(0x10bb)](_0x47d05b[_0x195255(0x524)][_0x195255(0x7fd)]):_0x47d05b['toString']()});});}function _0x28c726(_0x52c554){const _0x34a205=_0x4bcbc9;_0x17bdd6[_0x34a205(0xcef)]=[];const _0x4d1062=_0x184bee[_0x34a205(0x1e8a)]()[_0x34a205(0x1189)]('Are\x20you\x20sure?')['content'](_0x34a205(0x23a))[_0x34a205(0x4bd)](_0x34a205(0x280e))['ok']('Delete')[_0x34a205(0x6c3)](_0x34a205(0xcf0))['targetEvent'](_0x52c554);_0x184bee[_0x34a205(0x2615)](_0x4d1062)['then'](function(){const _0x5e2c4c=_0x34a205;_0x4a84c2[_0x5e2c4c(0x1446)]['delete']({'id':_0x17bdd6['queueCampaign']['id']})['$promise'][_0x5e2c4c(0x146b)](function(){const _0x16977a=_0x5e2c4c;_0x3f65c0()[_0x16977a(0x2640)](_0x17bdd6['queueCampaigns'],{'id':_0x17bdd6[_0x16977a(0x1f0f)]['id']}),_0x3dc0be[_0x16977a(0x1c75)]({'title':_0x16977a(0x2508),'msg':(_0x17bdd6['queueCampaign'][_0x16977a(0x19eb)]||'queueCampaign')+_0x16977a(0x23e3)}),_0x4d560d(_0x17bdd6['queueCampaign']);})['catch'](function(_0x9eb683){const _0x562170=_0x5e2c4c;if(_0x9eb683[_0x562170(0x524)]&&_0x9eb683[_0x562170(0x524)]['errors']&&_0x9eb683[_0x562170(0x524)]['errors'][_0x562170(0x402)]){_0x17bdd6[_0x562170(0xcef)]=_0x9eb683[_0x562170(0x524)][_0x562170(0xcef)]||[{'message':_0x9eb683[_0x562170(0xd5f)](),'type':_0x562170(0xf2e)}];for(let _0x72c08b=0x0;_0x72c08b<_0x9eb683[_0x562170(0x524)][_0x562170(0xcef)][_0x562170(0x402)];_0x72c08b++){_0x3dc0be[_0x562170(0x1980)]({'title':_0x9eb683[_0x562170(0x524)][_0x562170(0xcef)][_0x72c08b][_0x562170(0x1142)],'msg':_0x9eb683[_0x562170(0x524)][_0x562170(0xcef)][_0x72c08b][_0x562170(0x7fd)]});}}else _0x3dc0be['error']({'title':_0x9eb683[_0x562170(0x107b)]?'API:'+_0x9eb683['status']+_0x562170(0x1315)+_0x9eb683[_0x562170(0x167f)]:'api.voiceQueue.delete','msg':_0x9eb683[_0x562170(0x524)]?JSON[_0x562170(0x10bb)](_0x9eb683[_0x562170(0x524)][_0x562170(0x7fd)]):_0x9eb683[_0x562170(0x7fd)]||_0x9eb683[_0x562170(0xd5f)]()});});},function(){});}function _0x33a009(_0x43311d){return _0x43311d===null?undefined:new Date(_0x43311d);}function _0x4d560d(_0x5632af){_0x184bee['hide'](_0x5632af);}}const _0x730d04=_0x5f34ef;;_0x1c832b[_0x313a4d(0x11c2)]=[_0x313a4d(0x10e8),'$q',_0x313a4d(0x1fe4),_0x313a4d(0x247f),'queueCampaign',_0x313a4d(0x17c4),_0x313a4d(0xfc4),_0x313a4d(0x214b),_0x313a4d(0xa87),_0x313a4d(0x2514)];function _0x1c832b(_0x4d8eed,_0x46ebb5,_0x2d30dd,_0x5a2060,_0x310744,_0x4e0d7e,_0x5502e2,_0x1e2f55,_0x52fd26,_0x28c926){const _0x4bd12b=_0x313a4d,_0x54b75a=this;_0x54b75a['currentUser']=_0x52fd26[_0x4bd12b(0xb12)](),_0x54b75a[_0x4bd12b(0x1f0f)]=_0x310744,_0x54b75a[_0x4bd12b(0x2514)]=_0x28c926,_0x54b75a[_0x4bd12b(0x188d)]=0x0,_0x54b75a[_0x4bd12b(0xfc4)]=_0x5502e2,_0x54b75a[_0x4bd12b(0x1fd6)]=[],_0x54b75a[_0x4bd12b(0xc4e)]=[],_0x54b75a[_0x4bd12b(0x1ecf)]=[],_0x54b75a['startingAllowedItems']=[],_0x54b75a[_0x4bd12b(0xa65)]=[],_0x54b75a[_0x4bd12b(0x132)]=![],_0x54b75a[_0x4bd12b(0x3d4)]=_0x4871a5,_0x54b75a[_0x4bd12b(0x14c2)]=_0x10bc52,_0x54b75a[_0x4bd12b(0x13f3)]=_0x3af6e1,_0x54b75a[_0x4bd12b(0x1f8a)]={'readOnly':!_0x54b75a['crudPermissions']['canEdit'],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x4bd12b(0x19eb),'line1':_0x4bd12b(0x286a),'line2':[_0x4bd12b(0x19eb),_0x4bd12b(0x113f)],'line3':_0x4bd12b(0x188d),'labelAll':_0x1e2f55[_0x4bd12b(0xde)](_0x4bd12b(0x2050)),'labelSelected':_0x1e2f55[_0x4bd12b(0xde)](_0x4bd12b(0xf73)),'transferCallback':function(_0x13c341,_0x55ec06){const _0x4a9b94=_0x4bd12b;_0x55ec06?_0x13c341[_0x4a9b94(0x1df5)](function(_0x5ddfda){const _0x3363fa=_0x4a9b94;_0x5ddfda[_0x3363fa(0x188d)]=undefined;}):_0x13c341[_0x4a9b94(0x1df5)](function(_0x59dbc9){const _0x40593f=_0x4a9b94;_0x59dbc9['penalty']=_0x40593f(0x2505)+_0x54b75a[_0x40593f(0x188d)];});const _0x466bdb=_0x3f65c0()['xorWith'](_0x54b75a[_0x4a9b94(0xa65)],_0x54b75a[_0x4a9b94(0x1ecf)],function(_0x39e278,_0x5d4311){const _0xd7b864=_0x4a9b94;return _0x39e278['id']===_0x5d4311['id']&&_0x39e278[_0xd7b864(0x188d)]===_0x5d4311[_0xd7b864(0x188d)];});_0x54b75a[_0x4a9b94(0x132)]=_0x3f65c0()[_0x4a9b94(0x2635)](_0x466bdb)?![]:!![];}};function _0x4871a5(){const _0x42fdcf=_0x4bd12b;return _0x52fd26['hasRole'](_0x42fdcf(0x174b))?_0xe017b7()[_0x42fdcf(0x129e)](function(_0xa773){const _0x5e0381=_0x42fdcf;_0x2d30dd[_0x5e0381(0x1980)]({'title':_0xa773['status']?_0x5e0381(0x262a)+_0xa773['status']+'\x20-\x20'+_0xa773['statusText']:_0x5e0381(0x557),'msg':_0xa773[_0x5e0381(0x107b)]?JSON[_0x5e0381(0x10bb)](_0xa773[_0x5e0381(0x524)]):_0xa773[_0x5e0381(0xd5f)]()});}):_0x461660()[_0x42fdcf(0x146b)](function(_0x216be8){const _0x14c803=_0x42fdcf;return _0x54b75a[_0x14c803(0x2146)]=_0x216be8,_0xe017b7();})['catch'](function(_0x33859f){const _0x36aed0=_0x42fdcf;_0x2d30dd[_0x36aed0(0x1980)]({'title':_0x33859f['status']?_0x36aed0(0x262a)+_0x33859f['status']+_0x36aed0(0x1315)+_0x33859f[_0x36aed0(0x167f)]:_0x36aed0(0x557),'msg':_0x33859f[_0x36aed0(0x107b)]?JSON[_0x36aed0(0x10bb)](_0x33859f[_0x36aed0(0x524)]):_0x33859f[_0x36aed0(0xd5f)]()});});}function _0x461660(){return _0x46ebb5(function(_0x4df6f1,_0x31c58c){const _0x5bf94e=a0_0x3bb9;_0x5a2060[_0x5bf94e(0x1366)]['get']({'userProfileId':_0x54b75a[_0x5bf94e(0x2321)][_0x5bf94e(0x209a)],'name':_0x5bf94e(0xca8)})[_0x5bf94e(0x2945)][_0x5bf94e(0x146b)](function(_0x3774cd){const _0x2408f2=_0x5bf94e,_0x4caf60=_0x3774cd&&_0x3774cd['rows']?_0x3774cd[_0x2408f2(0x19c7)][0x0]:null;_0x4df6f1(_0x4caf60);})[_0x5bf94e(0x129e)](function(_0x3666a0){_0x31c58c(_0x3666a0);});});}function _0xe017b7(){return _0x46ebb5(function(_0x16f8bb,_0x5ad211){const _0x306915=a0_0x3bb9;return _0x4024ec()[_0x306915(0x146b)](function(_0x4974b8){const _0x57019d=_0x306915;return _0x54b75a[_0x57019d(0x1fd6)]=_0x4974b8[_0x57019d(0x19c7)]?_0x4974b8[_0x57019d(0x19c7)]:[],_0x52fd26[_0x57019d(0x23e0)](_0x57019d(0x174b))?_0x4974b8:_0x54b75a[_0x57019d(0x2146)]?_0x54b75a[_0x57019d(0x2146)][_0x57019d(0x11d2)]?_0x4974b8:_0x21f925():null;})['then'](function(_0x1fb78f){const _0x189461=_0x306915,_0x5b08b2=_0x1fb78f&&_0x1fb78f[_0x189461(0x19c7)]?_0x1fb78f[_0x189461(0x19c7)]:[];return _0x54b75a[_0x189461(0xc4e)]=_0x3f65c0()[_0x189461(0x205)](_0x5b08b2,function(_0x20332a){const _0x39f48f=_0x189461;return _0x3f65c0()[_0x39f48f(0xc84)](_0x54b75a[_0x39f48f(0x1fd6)],{'id':_0x52fd26[_0x39f48f(0x23e0)](_0x39f48f(0x174b))||_0x54b75a[_0x39f48f(0x2146)][_0x39f48f(0x11d2)]?_0x20332a['id']:_0x20332a['resourceId']});}),_0x54b75a[_0x189461(0x2e8)]=angular[_0x189461(0x235a)](_0x54b75a['allowedItems']),_0x54b75a[_0x189461(0x1fd6)][_0x189461(0x1df5)](function(_0x1a80f4){const _0x83920d=_0x189461,_0x2a5a36=_0x3f65c0()[_0x83920d(0xc84)](_0x54b75a[_0x83920d(0xc4e)],{'id':_0x1a80f4['id']});_0x52fd26[_0x83920d(0x23e0)](_0x83920d(0x174b))?_0x1a80f4['isValid']=!![]:_0x1a80f4[_0x83920d(0x146f)]=typeof _0x2a5a36!==_0x83920d(0x2274)?!![]:![];}),_0x3c7852();})[_0x306915(0x146b)](function(_0x5a1f84){const _0x283f9b=_0x306915,_0x4439c8=_0x5a1f84&&_0x5a1f84['rows']?_0x5a1f84[_0x283f9b(0x19c7)]:[];_0x54b75a[_0x283f9b(0x1ecf)]=_0x3f65c0()[_0x283f9b(0x205)](_0x4439c8,function(_0x4f1d8c){const _0x3e532b=_0x283f9b,_0x3e1f19=_0x3f65c0()['find'](_0x54b75a[_0x3e532b(0x1fd6)],{'id':_0x4f1d8c['id']});return _0x3e1f19['penalty']=_0x4f1d8c[_0x3e532b(0x1f91)]?'penalty\x20'+_0x4f1d8c['UserVoiceQueue']['penalty']:'',_0x3e1f19[_0x3e532b(0x113f)]=typeof _0x4f1d8c[_0x3e532b(0x113f)]!==_0x3e532b(0x2274)?'<'+_0x4f1d8c[_0x3e532b(0x113f)]+'>':'',_0x3e1f19;}),_0x54b75a[_0x283f9b(0xa65)]=angular[_0x283f9b(0x235a)](_0x54b75a[_0x283f9b(0x1ecf)]),_0x54b75a[_0x283f9b(0x1f8a)]['selectedItems']=_0x54b75a[_0x283f9b(0x1ecf)],_0x54b75a[_0x283f9b(0x1f8a)][_0x283f9b(0x1fd6)]=_0x3f65c0()['differenceBy'](_0x54b75a[_0x283f9b(0xc4e)],_0x54b75a[_0x283f9b(0x1f8a)]['selectedItems'],'id'),_0x16f8bb();})[_0x306915(0x129e)](function(_0x1cabca){_0x5ad211(_0x1cabca);});});}function _0x21f925(){return _0x46ebb5(function(_0x427ef3,_0x406233){const _0x5ee249=a0_0x3bb9;return _0x5a2060['userProfileResource'][_0x5ee249(0x16b4)]({'sectionId':_0x54b75a[_0x5ee249(0x2146)]['id'],'nolimit':!![]})[_0x5ee249(0x2945)][_0x5ee249(0x146b)](function(_0x1b4acb){_0x427ef3(_0x1b4acb);})[_0x5ee249(0x129e)](function(_0xa0f252){_0x406233(_0xa0f252);});});}function _0x3c7852(){return _0x46ebb5(function(_0x167adb,_0x2f3c49){const _0x17e839=a0_0x3bb9;return _0x5a2060[_0x17e839(0x1446)]['getAgents']({'id':_0x54b75a[_0x17e839(0x1f0f)]['id'],'fields':_0x17e839(0x1569),'nolimit':!![],'role':'agent'})[_0x17e839(0x2945)][_0x17e839(0x146b)](function(_0x284da4){_0x167adb(_0x284da4);})[_0x17e839(0x129e)](function(_0x4ed810){_0x2f3c49(_0x4ed810);});});}function _0x4024ec(){return _0x46ebb5(function(_0x5bb124,_0x48f5d4){const _0x1286a9=a0_0x3bb9;return _0x5a2060[_0x1286a9(0xe7b)][_0x1286a9(0x16b4)]({'fields':_0x1286a9(0x1569),'nolimit':!![],'role':_0x1286a9(0x1755)})[_0x1286a9(0x2945)][_0x1286a9(0x146b)](function(_0x15617a){_0x5bb124(_0x15617a);})[_0x1286a9(0x129e)](function(_0x15e0f6){_0x48f5d4(_0x15e0f6);});});}function _0x2c8a9b(_0x74b33e){return _0x46ebb5(function(_0x4e9782,_0x2e85f1){const _0x283463=a0_0x3bb9;if(_0x3f65c0()[_0x283463(0x2635)](_0x74b33e))_0x4e9782();else{const _0x9bfe6b=[],_0x5e9def=_0x3f65c0()[_0x283463(0x253)](_0x74b33e,_0x283463(0x188d));for(let _0x6234ef=0x0;_0x6234ef'+_0x1a6b74(0xe01))[_0x1a6b74(0x4bd)](_0x1a6b74(0x14db))[_0x1a6b74(0x1f27)](_0x1c9ae2)['ok']('OK')['cancel'](_0x1a6b74(0x39a));_0x443519[_0x1a6b74(0x2615)](_0x1a28ef)[_0x1a6b74(0x146b)](function(){const _0x44eb26=_0x1a6b74;_0x26e1c6[_0x44eb26(0x821)][_0x44eb26(0x1df5)](function(_0x5587eb){_0x11774d(_0x5587eb);}),_0x26e1c6['selectedQueueCampaignHopperBlacks']=[];});}let _0x4e6530=!![],_0x494108=0x1;_0x5017d5['$watch']('vm_dc.query.filter',function(_0x365c0c,_0x219322){const _0x33fb9=_0x2cd4ce;_0x4e6530?_0xf36818(function(){_0x4e6530=![];}):(!_0x219322&&(_0x494108=_0x26e1c6['query'][_0x33fb9(0x844)]),_0x365c0c!==_0x219322&&(_0x26e1c6['query'][_0x33fb9(0x844)]=0x1),!_0x365c0c&&(_0x26e1c6[_0x33fb9(0x1a56)][_0x33fb9(0x844)]=_0x494108),_0x4ffd63());});}const _0xc0e1a3=_0x2b2d44;;_0x469bf6[_0x313a4d(0x11c2)]=[_0x313a4d(0x23df),_0x313a4d(0x910),_0x313a4d(0x1862),'$q',_0x313a4d(0x214b),_0x313a4d(0x1abe),_0x313a4d(0x10e8),_0x313a4d(0x4d8),_0x313a4d(0x1fe4),'api',_0x313a4d(0xa87)];function _0x469bf6(_0x521535,_0x57eb32,_0x4b1ff6,_0x4c4aa9,_0x274bf8,_0x141a8f,_0x3de416,_0x4f0b43,_0x4cd380,_0x1f6e74,_0x239049){const _0x144b69=_0x313a4d,_0x58f197=this;_0x58f197['currentUser']=_0x239049[_0x144b69(0xb12)](),_0x58f197[_0x144b69(0x1471)]={},_0x58f197['queueCampaign']={},_0x58f197[_0x144b69(0x16a5)]={'count':0x0,'rows':[]},_0x58f197['selectedQueueCampaignHopperFinals']=[],_0x58f197[_0x144b69(0x2514)],_0x58f197['query']={'fields':'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','sort':'-id','limit':0xa,'page':0x1},_0x58f197[_0x144b69(0x5aa)]=_0x28b267,_0x58f197['deleteConfirm']=_0x41373c,_0x58f197[_0x144b69(0x1c75)]=_0x2fe549,_0x58f197[_0x144b69(0x1f73)]=_0x28a656,_0x58f197[_0x144b69(0x71f)]=_0x276d8c,_0x58f197[_0x144b69(0x1ebf)]=_0x1baf8a,_0x58f197['deleteSelectedQueueCampaignHopperFinals']=_0x1951a7,_0x58f197[_0x144b69(0x249b)]=_0x1da937,_0x58f197[_0x144b69(0x1795)]=_0x1e27bc,_0x58f197[_0x144b69(0x1686)]=_0x1139d8,_0x58f197['moveConfirm']=_0x3388a3,_0x58f197[_0x144b69(0xde8)]=_0x4b6cee;function _0x28b267(_0x3b6bde,_0x149427){const _0x465e98=_0x144b69;_0x58f197[_0x465e98(0x1f0f)]=_0x3b6bde,_0x58f197[_0x465e98(0x2514)]=typeof _0x149427!==_0x465e98(0x2274)?_0x149427:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x58f197[_0x465e98(0x1a56)][_0x465e98(0x6ed)]=_0x58f197[_0x465e98(0x1f0f)]['id'],_0x58f197[_0x465e98(0x1a56)]['id']=_0x58f197['queueCampaign']['id'],_0x28a656();}function _0x41373c(_0x49d894,_0x5ed8ad){const _0x570219=_0x144b69,_0x133295=_0x3de416[_0x570219(0x1e8a)]()['title'](_0x570219(0xdf7))[_0x570219(0x1cbe)](_0x570219(0x16d3)+(_0x49d894[_0x570219(0x19eb)]||_0x49d894['id']&&_0x3f65c0()['upperFirst'](_0x570219(0x1463))+_0x49d894['id']||_0x570219(0xafc))+_0x570219(0x252f)+_0x570219(0xe01))[_0x570219(0x4bd)](_0x570219(0x20d))[_0x570219(0x1f27)](_0x5ed8ad)['ok']('OK')[_0x570219(0x6c3)](_0x570219(0x39a));_0x3de416[_0x570219(0x2615)](_0x133295)[_0x570219(0x146b)](function(){_0x1baf8a(_0x49d894);},function(){const _0x46b32c=_0x570219;console[_0x46b32c(0x1a74)](_0x46b32c(0x39a));});}function _0x2fe549(_0x55f997){const _0x346680=_0x144b69;_0x58f197[_0x346680(0x16a5)]=_0x55f997||{'count':0x0,'rows':[]};}function _0x28a656(){const _0x6b8608=_0x144b69;_0x58f197[_0x6b8608(0x1a56)][_0x6b8608(0x145d)]=(_0x58f197[_0x6b8608(0x1a56)][_0x6b8608(0x844)]-0x1)*_0x58f197['query'][_0x6b8608(0x221e)],_0x58f197[_0x6b8608(0xb9c)]=_0x1f6e74[_0x6b8608(0x1446)]['getHopperFinals'](_0x58f197[_0x6b8608(0x1a56)],_0x2fe549)[_0x6b8608(0x2945)];}function _0x1baf8a(_0x384b66){const _0x528815=_0x144b69;_0x1f6e74[_0x528815(0xafc)][_0x528815(0x1fac)]({'id':_0x384b66['id']})[_0x528815(0x2945)][_0x528815(0x146b)](function(){const _0x211b34=_0x528815;_0x3f65c0()[_0x211b34(0x2640)](_0x58f197[_0x211b34(0x16a5)][_0x211b34(0x19c7)],{'id':_0x384b66['id']}),_0x58f197[_0x211b34(0x16a5)]['count']-=0x1,!_0x58f197[_0x211b34(0x16a5)][_0x211b34(0x19c7)]['length']&&_0x28a656(),_0x4cd380[_0x211b34(0x1c75)]({'title':_0x211b34(0x1f3d),'msg':_0x384b66[_0x211b34(0x19eb)]?_0x384b66[_0x211b34(0x19eb)]+_0x211b34(0x23e3):''});})['catch'](function(_0x214784){const _0x1caa1e=_0x528815;if(_0x214784['data']&&_0x214784['data'][_0x1caa1e(0xcef)]&&_0x214784[_0x1caa1e(0x524)][_0x1caa1e(0xcef)][_0x1caa1e(0x402)]){_0x58f197[_0x1caa1e(0xcef)]=_0x214784[_0x1caa1e(0x524)]['errors']||[{'message':_0x214784[_0x1caa1e(0xd5f)](),'type':'SYSTEM:GETvoiceQueue'}];for(let _0x15b1ef=0x0;_0x15b1ef<_0x214784[_0x1caa1e(0x524)]['errors'][_0x1caa1e(0x402)];_0x15b1ef++){_0x4cd380['error']({'title':_0x214784['data']['errors'][_0x15b1ef][_0x1caa1e(0x1142)],'msg':_0x214784['data'][_0x1caa1e(0xcef)][_0x15b1ef][_0x1caa1e(0x7fd)]});}}else _0x4cd380[_0x1caa1e(0x1980)]({'title':_0x214784['status']?_0x1caa1e(0x262a)+_0x214784[_0x1caa1e(0x107b)]+_0x1caa1e(0x1315)+_0x214784[_0x1caa1e(0x167f)]:_0x1caa1e(0xfac),'msg':_0x214784[_0x1caa1e(0x524)]?JSON['stringify'](_0x214784['data'][_0x1caa1e(0x7fd)]):_0x214784['message']||_0x214784[_0x1caa1e(0xd5f)]()});});}function _0x276d8c(){const _0x35acd6=_0x144b69,_0x54bfe0=angular[_0x35acd6(0x235a)](_0x58f197[_0x35acd6(0x2520)]);return _0x58f197['selectedQueueCampaignHopperFinals']=[],_0x54bfe0;}function _0x1951a7(_0x39d77d){const _0x495633=_0x144b69,_0x19deb6=_0x3de416[_0x495633(0x1e8a)]()[_0x495633(0x1189)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20hopperFinals?')['htmlContent'](_0x495633(0x16d3)+_0x58f197['selectedQueueCampaignHopperFinals']['length']+_0x495633(0x2452)+_0x495633(0xe01))['ariaLabel'](_0x495633(0x40d))[_0x495633(0x1f27)](_0x39d77d)['ok']('OK')['cancel'](_0x495633(0x39a));_0x3de416[_0x495633(0x2615)](_0x19deb6)[_0x495633(0x146b)](function(){const _0x577d40=_0x495633;_0x58f197[_0x577d40(0x2520)][_0x577d40(0x1df5)](function(_0x148102){_0x1baf8a(_0x148102);}),_0x58f197['selectedQueueCampaignHopperFinals']=[];});}function _0x1e27bc(_0x1172a5){const _0x1bd0b4=_0x144b69;_0x1f6e74['cmHopperFinal'][_0x1bd0b4(0x1795)]({'id':_0x58f197[_0x1bd0b4(0x1a56)]['id'],'state':_0x1172a5})[_0x1bd0b4(0x2945)][_0x1bd0b4(0x146b)](function(_0xa3f777){const _0x1bd46d=_0x1bd0b4;_0x3f65c0()['isNil'](_0xa3f777)&&_0x3f65c0()[_0x1bd46d(0x1b36)](_0xa3f777[0x0])?_0x4cd380['info']({'title':_0x1bd46d(0xf6f),'msg':'0'}):_0x4cd380[_0x1bd46d(0x271e)]({'title':'Restored\x20Contacts','msg':JSON['stringify'](_0xa3f777[0x0][_0x1bd46d(0xaf4)])});})[_0x1bd0b4(0x129e)](function(_0x27e723){const _0x55adbe=_0x1bd0b4;_0x4cd380[_0x55adbe(0x1980)]({'title':_0x27e723['status']?_0x55adbe(0x262a)+_0x27e723[_0x55adbe(0x107b)]+'\x20-\x20'+_0x27e723[_0x55adbe(0x167f)]:_0x55adbe(0xfac),'msg':_0x27e723['data']?JSON['stringify'](_0x27e723[_0x55adbe(0x524)][_0x55adbe(0x7fd)]):_0x27e723[_0x55adbe(0x7fd)]||_0x27e723[_0x55adbe(0xd5f)]()});});}function _0x1139d8(_0x453851){const _0x233320=_0x144b69;_0x1f6e74['cmHopperFinal'][_0x233320(0x1686)]({'id':_0x453851})[_0x233320(0x2945)]['then'](function(_0x543997){const _0xb90fbd=_0x233320;_0x3f65c0()[_0xb90fbd(0x168d)](_0x58f197[_0xb90fbd(0x1471)],_0x543997[0x0]);})[_0x233320(0x129e)](function(_0xbed15){const _0x52434f=_0x233320;_0x4cd380[_0x52434f(0x1980)]({'title':_0xbed15[_0x52434f(0x107b)]?_0x52434f(0x262a)+_0xbed15[_0x52434f(0x107b)]+_0x52434f(0x1315)+_0xbed15[_0x52434f(0x167f)]:_0x52434f(0xfac),'msg':_0xbed15[_0x52434f(0x524)]?JSON[_0x52434f(0x10bb)](_0xbed15[_0x52434f(0x524)][_0x52434f(0x7fd)]):_0xbed15[_0x52434f(0x7fd)]||_0xbed15[_0x52434f(0xd5f)]()});});}function _0x4b6cee(_0x5e0558){const _0x2bfb2b=_0x144b69,_0x5880e9=_0x3de416[_0x2bfb2b(0x1e8a)]()[_0x2bfb2b(0x1189)](_0x2bfb2b(0x131a))['htmlContent'](_0x2bfb2b(0x1898)+_0x2bfb2b(0x1996))[_0x2bfb2b(0x4bd)]('Restore\x20Contacts')[_0x2bfb2b(0x1f27)](_0x5e0558)['ok']('OK')[_0x2bfb2b(0x6c3)](_0x2bfb2b(0x39a));_0x3de416[_0x2bfb2b(0x2615)](_0x5880e9)[_0x2bfb2b(0x146b)](function(){const _0x440b25=_0x2bfb2b;_0x58f197[_0x440b25(0x2520)]['forEach'](function(_0x4854a2){_0x1da937(_0x4854a2);}),_0x58f197[_0x440b25(0x2520)]=[];});}function _0x3388a3(_0x3e26c1,_0x3c03e5){const _0x3dde23=_0x144b69,_0x3e49e0=_0x3de416[_0x3dde23(0x1e8a)]()[_0x3dde23(0x1189)](_0x3dde23(0x1a48))[_0x3dde23(0x1cbe)](_0x3dde23(0x16d3)+'Contact'+_0x3dde23(0x252f)+_0x3dde23(0x1996))[_0x3dde23(0x4bd)]('Restore\x20Contact')['targetEvent'](_0x3c03e5)['ok']('OK')[_0x3dde23(0x6c3)](_0x3dde23(0x39a));_0x3de416['show'](_0x3e49e0)['then'](function(){_0x1da937(_0x3e26c1);},function(){const _0x29379e=_0x3dde23;console['log'](_0x29379e(0x39a));});}function _0x2d96a8(_0x2106b5){const _0x11042c=_0x144b69,_0x473bb9={};return _0x473bb9[_0x11042c(0x1d55)]=_0x2106b5[_0x11042c(0xa5c)],_0x473bb9[_0x11042c(0x432)]=_0x2deec6()()[_0x11042c(0x22b0)](_0x11042c(0x1ce2)),_0x473bb9[_0x11042c(0x283e)]=0x0,_0x473bb9[_0x11042c(0x24c9)]=0x0,_0x473bb9[_0x11042c(0x1b71)]=0x0,_0x473bb9[_0x11042c(0x1adf)]=0x0,_0x473bb9[_0x11042c(0x932)]=_0x2106b5[_0x11042c(0x932)],_0x473bb9[_0x11042c(0xb7c)]=_0x2106b5[_0x11042c(0xb7c)],_0x473bb9['UserId']=_0x2106b5[_0x11042c(0x27af)]?null:_0x2106b5[_0x11042c(0xea2)],_0x473bb9['VoiceQueueId']=_0x2106b5[_0x11042c(0x6ed)],_0x473bb9[_0x11042c(0x1ee8)]=_0x2106b5[_0x11042c(0x1ee8)],_0x473bb9['priority']=_0x2106b5[_0x11042c(0x2762)]?0x3:0x2,_0x473bb9[_0x11042c(0x2762)]=_0x2106b5[_0x11042c(0x2762)]?!![]:![],_0x473bb9;}function _0x4b0884(_0x3e575e){const _0x5a73c7=_0x144b69,_0x30789d={};return _0x30789d[_0x5a73c7(0xa5c)]=_0x3e575e['calleridnum'],_0x30789d[_0x5a73c7(0x1772)]=_0x3e575e['calleridname'],_0x30789d[_0x5a73c7(0x432)]=_0x2deec6()()['format'](_0x5a73c7(0x1ce2)),_0x30789d['countbusyretry']=_0x3e575e[_0x5a73c7(0x283e)],_0x30789d['countcongestionretry']=_0x3e575e[_0x5a73c7(0x24c9)],_0x30789d[_0x5a73c7(0x1b71)]=_0x3e575e['countnoanswerretry'],_0x30789d['countglobal']=_0x3e575e['countglobal'],_0x30789d[_0x5a73c7(0x932)]=_0x3e575e[_0x5a73c7(0x932)],_0x30789d[_0x5a73c7(0xb7c)]=_0x3e575e[_0x5a73c7(0xb7c)],_0x30789d[_0x5a73c7(0xea2)]=_0x239049[_0x5a73c7(0xb12)]()['id'],_0x30789d[_0x5a73c7(0x6ed)]=_0x3e575e[_0x5a73c7(0x6ed)],_0x30789d[_0x5a73c7(0x1ee8)]=_0x3e575e[_0x5a73c7(0x1ee8)],_0x30789d[_0x5a73c7(0x178d)]=_0x2deec6()()[_0x5a73c7(0x22b0)]('YYYY-MM-DD\x20HH:mm:ss'),_0x30789d[_0x5a73c7(0x6aa)]=!![],_0x30789d['state']=0x19,_0x30789d['statedesc']=_0x5a73c7(0x10fb),_0x30789d[_0x5a73c7(0x8dc)]=_0x3e575e[_0x5a73c7(0x8dc)],_0x30789d[_0x5a73c7(0xaeb)]=_0x3e575e[_0x5a73c7(0x6ed)]?_0x5a73c7(0x1c72):_0x5a73c7(0x1f0),_0x30789d;}function _0x1da937(_0x25b67d){const _0x448000=_0x144b69;_0x1f6e74['cmHopperFinal'][_0x448000(0xbb7)](_0x25b67d)['$promise'][_0x448000(0x146b)](function(_0x132233){const _0xeebc1=_0x448000;_0x4cd380[_0xeebc1(0x271e)]({'title':_0xeebc1(0xc5b),'msg':_0xeebc1(0x151)+_0x132233[_0xeebc1(0x932)]});})[_0x448000(0x129e)](function(_0x337973){const _0x7889f8=_0x448000;_0x337973['data']===_0x7889f8(0x159d)?_0x1f6e74[_0x7889f8(0x39f)]['save'](_0x2d96a8(_0x25b67d))['$promise'][_0x7889f8(0x146b)](function(_0x5b919e){const _0x5f4ad5=_0x7889f8;_0x4cd380[_0x5f4ad5(0x271e)]({'title':'Restored\x20Contact','msg':_0x5f4ad5(0x151)+_0x5b919e[_0x5f4ad5(0x932)]}),_0x5b919e[_0x5f4ad5(0x932)]&&_0x1f6e74[_0x5f4ad5(0x22e3)][_0x5f4ad5(0x1e3)](_0x4b0884(_0x25b67d));})[_0x7889f8(0x129e)](function(_0x18b8ed){const _0x153bdf=_0x7889f8;!_0x3f65c0()['isNil'](_0x18b8ed[_0x153bdf(0x524)])&&_0x18b8ed['data'][_0x153bdf(0x7fd)]===_0x153bdf(0xe0e)?_0x4cd380[_0x153bdf(0x271e)]({'title':_0x153bdf(0xc5b),'msg':_0x153bdf(0x151)+_0x25b67d[_0x153bdf(0x932)]}):_0x4cd380[_0x153bdf(0x1980)]({'title':_0x18b8ed['status']?_0x153bdf(0x262a)+_0x18b8ed[_0x153bdf(0x107b)]+_0x153bdf(0x1315)+_0x18b8ed['statusText']:_0x153bdf(0xfac),'msg':_0x18b8ed[_0x153bdf(0x524)]?JSON[_0x153bdf(0x10bb)](_0x18b8ed[_0x153bdf(0x524)][_0x153bdf(0x7fd)]):_0x18b8ed['message']||_0x18b8ed['toString']()});}):_0x4cd380[_0x7889f8(0x1980)]({'title':_0x337973[_0x7889f8(0x107b)]?'API:'+_0x337973[_0x7889f8(0x107b)]+_0x7889f8(0x1315)+_0x337973[_0x7889f8(0x167f)]:_0x7889f8(0xfac),'msg':_0x337973[_0x7889f8(0x524)]?JSON[_0x7889f8(0x10bb)](_0x337973[_0x7889f8(0x524)][_0x7889f8(0x7fd)]):_0x337973[_0x7889f8(0x7fd)]||_0x337973[_0x7889f8(0xd5f)]()});});}let _0x56cf2e=!![],_0x2f1702=0x1;_0x57eb32[_0x144b69(0x21e8)](_0x144b69(0x117f),function(_0x139d76,_0x230714){const _0x1596ff=_0x144b69;_0x56cf2e?_0x141a8f(function(){_0x56cf2e=![];}):(!_0x230714&&(_0x2f1702=_0x58f197[_0x1596ff(0x1a56)]['page']),_0x139d76!==_0x230714&&(_0x58f197['query'][_0x1596ff(0x844)]=0x1),!_0x139d76&&(_0x58f197[_0x1596ff(0x1a56)][_0x1596ff(0x844)]=_0x2f1702),_0x28a656());});}const _0x14308a=_0x469bf6;;_0x34ec2e[_0x313a4d(0x11c2)]=['$cookies',_0x313a4d(0x910),_0x313a4d(0x1862),'$q','$translate',_0x313a4d(0x1abe),_0x313a4d(0x10e8),_0x313a4d(0x4d8),'toasty',_0x313a4d(0x247f),_0x313a4d(0xa87)];function _0x34ec2e(_0x165909,_0x1c32de,_0x37ce35,_0x39c02b,_0x311cb0,_0x3ffbc9,_0x46c64a,_0x68172e,_0x59c3dd,_0x47d140,_0x51e44f){const _0x219fca=_0x313a4d,_0x2ec799=this;_0x2ec799[_0x219fca(0x2321)]=_0x51e44f[_0x219fca(0xb12)](),_0x2ec799[_0x219fca(0x1f0f)]={},_0x2ec799[_0x219fca(0x2760)]={'count':0x0,'rows':[]},_0x2ec799[_0x219fca(0x44f)]=[],_0x2ec799[_0x219fca(0x2514)],_0x2ec799[_0x219fca(0x1a56)]={'fields':_0x219fca(0x1cf7),'sort':_0x219fca(0xef6),'limit':0xa,'page':0x1},_0x2ec799['init']=_0x25835f,_0x2ec799['deleteConfirm']=_0x103a1a,_0x2ec799[_0x219fca(0x1c75)]=_0x35586e,_0x2ec799[_0x219fca(0x54c)]=_0x49dea9,_0x2ec799[_0x219fca(0xb3b)]=_0x59fa59,_0x2ec799['deleteQueueCampaignHopperHistory']=_0x26148b,_0x2ec799[_0x219fca(0x1afc)]=_0xe3f941;function _0x25835f(_0x2c25b7,_0x329f78){const _0xb4688e=_0x219fca;_0x2ec799[_0xb4688e(0x1f0f)]=_0x2c25b7,_0x2ec799['crudPermissions']=typeof _0x329f78!==_0xb4688e(0x2274)?_0x329f78:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x2ec799[_0xb4688e(0x1a56)][_0xb4688e(0x6ed)]=_0x2ec799['queueCampaign']['id'],_0x2ec799['query']['id']=_0x2ec799[_0xb4688e(0x1f0f)]['id'],_0x49dea9();}function _0x103a1a(_0x490cac,_0x5c94fc){const _0x532e73=_0x219fca,_0x2823a3=_0x46c64a[_0x532e73(0x1e8a)]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20hopperHistory?')[_0x532e73(0x1cbe)](_0x532e73(0x16d3)+(_0x490cac[_0x532e73(0x19eb)]||_0x490cac['id']&&_0x3f65c0()[_0x532e73(0x21cf)](_0x532e73(0x1493))+_0x490cac['id']||'hopperHistory')+''+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x532e73(0x1655))[_0x532e73(0x1f27)](_0x5c94fc)['ok']('OK')['cancel']('CANCEL');_0x46c64a[_0x532e73(0x2615)](_0x2823a3)[_0x532e73(0x146b)](function(){_0x26148b(_0x490cac);},function(){const _0x8b86d7=_0x532e73;console[_0x8b86d7(0x1a74)](_0x8b86d7(0x39a));});}function _0x35586e(_0x4e6666){_0x2ec799['queueCampaignHopperHistories']=_0x4e6666||{'count':0x0,'rows':[]};}function _0x49dea9(){const _0x34abc3=_0x219fca;_0x2ec799[_0x34abc3(0x1a56)][_0x34abc3(0x145d)]=(_0x2ec799['query'][_0x34abc3(0x844)]-0x1)*_0x2ec799['query'][_0x34abc3(0x221e)],_0x2ec799[_0x34abc3(0xb9c)]=_0x47d140['voiceQueue'][_0x34abc3(0x12b3)](_0x2ec799[_0x34abc3(0x1a56)],_0x35586e)[_0x34abc3(0x2945)];}function _0x26148b(_0x1b2dfc){const _0x4cdeb1=_0x219fca;_0x47d140[_0x4cdeb1(0x2040)]['delete']({'id':_0x1b2dfc['id']})[_0x4cdeb1(0x2945)][_0x4cdeb1(0x146b)](function(){const _0x48886c=_0x4cdeb1;_0x3f65c0()[_0x48886c(0x2640)](_0x2ec799['queueCampaignHopperHistories'][_0x48886c(0x19c7)],{'id':_0x1b2dfc['id']}),_0x2ec799['queueCampaignHopperHistories'][_0x48886c(0x51c)]-=0x1,!_0x2ec799[_0x48886c(0x2760)]['rows'][_0x48886c(0x402)]&&_0x49dea9(),_0x59c3dd['success']({'title':_0x48886c(0x1187),'msg':_0x1b2dfc[_0x48886c(0x19eb)]?_0x1b2dfc[_0x48886c(0x19eb)]+'\x20has\x20been\x20deleted!':''});})[_0x4cdeb1(0x129e)](function(_0x32d3e7){const _0x528301=_0x4cdeb1;if(_0x32d3e7[_0x528301(0x524)]&&_0x32d3e7[_0x528301(0x524)][_0x528301(0xcef)]&&_0x32d3e7[_0x528301(0x524)][_0x528301(0xcef)][_0x528301(0x402)]){_0x2ec799['errors']=_0x32d3e7[_0x528301(0x524)]['errors']||[{'message':_0x32d3e7[_0x528301(0xd5f)](),'type':_0x528301(0xfac)}];for(let _0x560209=0x0;_0x560209<_0x32d3e7['data']['errors'][_0x528301(0x402)];_0x560209++){_0x59c3dd['error']({'title':_0x32d3e7[_0x528301(0x524)][_0x528301(0xcef)][_0x560209][_0x528301(0x1142)],'msg':_0x32d3e7['data'][_0x528301(0xcef)][_0x560209][_0x528301(0x7fd)]});}}else _0x59c3dd[_0x528301(0x1980)]({'title':_0x32d3e7[_0x528301(0x107b)]?_0x528301(0x262a)+_0x32d3e7[_0x528301(0x107b)]+'\x20-\x20'+_0x32d3e7[_0x528301(0x167f)]:'SYSTEM:GETvoiceQueue','msg':_0x32d3e7[_0x528301(0x524)]?JSON[_0x528301(0x10bb)](_0x32d3e7[_0x528301(0x524)]['message']):_0x32d3e7[_0x528301(0x7fd)]||_0x32d3e7['toString']()});});}function _0x59fa59(){const _0x198246=_0x219fca,_0x3c4345=angular[_0x198246(0x235a)](_0x2ec799['selectedQueueCampaignHopperHistories']);return _0x2ec799['selectedQueueCampaignHopperHistories']=[],_0x3c4345;}function _0xe3f941(_0x13e681){const _0x2db566=_0x219fca,_0x4bc726=_0x46c64a[_0x2db566(0x1e8a)]()[_0x2db566(0x1189)](_0x2db566(0x1683))[_0x2db566(0x1cbe)](_0x2db566(0x16d3)+_0x2ec799[_0x2db566(0x44f)]['length']+_0x2db566(0x2452)+_0x2db566(0xe01))[_0x2db566(0x4bd)](_0x2db566(0x111c))['targetEvent'](_0x13e681)['ok']('OK')[_0x2db566(0x6c3)]('CANCEL');_0x46c64a[_0x2db566(0x2615)](_0x4bc726)[_0x2db566(0x146b)](function(){const _0x3c4bf8=_0x2db566;_0x2ec799[_0x3c4bf8(0x44f)][_0x3c4bf8(0x1df5)](function(_0x49d513){_0x26148b(_0x49d513);}),_0x2ec799['selectedQueueCampaignHopperHistories']=[];});}let _0x26aa78=!![],_0xb1e614=0x1;_0x1c32de['$watch'](_0x219fca(0x117f),function(_0x245d25,_0x38c70f){const _0x1249ce=_0x219fca;_0x26aa78?_0x3ffbc9(function(){_0x26aa78=![];}):(!_0x38c70f&&(_0xb1e614=_0x2ec799[_0x1249ce(0x1a56)][_0x1249ce(0x844)]),_0x245d25!==_0x38c70f&&(_0x2ec799[_0x1249ce(0x1a56)]['page']=0x1),!_0x245d25&&(_0x2ec799[_0x1249ce(0x1a56)][_0x1249ce(0x844)]=_0xb1e614),_0x49dea9());});}const _0x3f7b53=_0x34ec2e;;_0x1ac9c8[_0x313a4d(0x11c2)]=[_0x313a4d(0x23df),_0x313a4d(0x910),_0x313a4d(0x1862),'$q','$translate',_0x313a4d(0x1abe),_0x313a4d(0x10e8),_0x313a4d(0x4d8),_0x313a4d(0x1fe4),_0x313a4d(0x247f),_0x313a4d(0xa87)];function _0x1ac9c8(_0x1ce94d,_0x4287c2,_0x426a61,_0x4f7aa1,_0x509f52,_0x11b611,_0x444a3e,_0x572a10,_0x2cb1b0,_0x5d605e,_0x2db403){const _0xfe2b49=_0x313a4d,_0x5a5510=this;_0x5a5510['currentUser']=_0x2db403[_0xfe2b49(0xb12)](),_0x5a5510[_0xfe2b49(0x1f0f)]={},_0x5a5510[_0xfe2b49(0x172f)]={'count':0x0,'rows':[]},_0x5a5510[_0xfe2b49(0x10aa)]=[],_0x5a5510['crudPermissions'],_0x5a5510[_0xfe2b49(0x1a56)]={'fields':_0xfe2b49(0x352),'sort':_0xfe2b49(0x12f2),'limit':0xa,'page':0x1},_0x5a5510['arraypriority']=_0x3f65c0()[_0xfe2b49(0x194)]([{'option':_0xfe2b49(0xa73),'value':_0xfe2b49(0x1428)},{'option':_0xfe2b49(0x25c5),'value':_0xfe2b49(0x1f63)},{'option':_0xfe2b49(0x6c4),'value':_0xfe2b49(0x12f4)},{'option':_0xfe2b49(0xce5),'value':_0xfe2b49(0x729)},{'option':_0xfe2b49(0x2188),'value':_0xfe2b49(0x35c)}],function(_0x2069d7){const _0xc88556=_0xfe2b49;return _0x3f65c0()[_0xc88556(0x5f4)](_0x2069d7[_0xc88556(0x175d)],new RegExp('\x27','g'),'');}),_0x5a5510[_0xfe2b49(0x5aa)]=_0x203c7e,_0x5a5510[_0xfe2b49(0x19b4)]=_0x28c9b9,_0x5a5510[_0xfe2b49(0x1c75)]=_0x288dac,_0x5a5510[_0xfe2b49(0xcce)]=_0xb318c8,_0x5a5510[_0xfe2b49(0x1bc8)]=_0x19470d,_0x5a5510['exportSelectedQueueCampaignHoppers']=_0x501f66,_0x5a5510[_0xfe2b49(0xb71)]=_0x299dd3,_0x5a5510['deleteSelectedQueueCampaignHoppers']=_0x5dd4d8,_0x2db403[_0xfe2b49(0x23e0)](_0xfe2b49(0x174b))?_0x5d605e['user'][_0xfe2b49(0x16b4)]({'fields':_0xfe2b49(0x7a7),'role':_0xfe2b49(0x1755),'sort':'name','nolimit':_0xfe2b49(0x1185)})[_0xfe2b49(0x2945)]['then'](function(_0x10603c){const _0x3a79dc=_0xfe2b49;_0x5a5510['agents']=_0x10603c[_0x3a79dc(0x19c7)]||[];})['catch'](function(_0x5b86da){const _0x3f9f65=_0xfe2b49;_0x2cb1b0['error']({'title':_0x5b86da[_0x3f9f65(0x107b)]?'API:'+_0x5b86da[_0x3f9f65(0x107b)]+_0x3f9f65(0x1315)+_0x5b86da[_0x3f9f65(0x167f)]:'SYSTEM:GET_AGENTS','msg':_0x5b86da[_0x3f9f65(0x524)]?JSON[_0x3f9f65(0x10bb)](_0x5b86da[_0x3f9f65(0x524)]):_0x5b86da[_0x3f9f65(0xd5f)]()});}):_0x5d605e[_0xfe2b49(0xe7b)][_0xfe2b49(0x16b4)]({'fields':_0xfe2b49(0x7a7),'role':_0xfe2b49(0x1755),'sort':_0xfe2b49(0x19eb),'nolimit':_0xfe2b49(0x1185)})[_0xfe2b49(0x2945)]['then'](function(_0x353ec8){const _0x39a8a3=_0xfe2b49;_0x5a5510[_0x39a8a3(0x23c0)]=_0x353ec8[_0x39a8a3(0x19c7)]||[];})[_0xfe2b49(0x146b)](function(){const _0x385f73=_0xfe2b49;return _0x5d605e[_0x385f73(0x1366)][_0x385f73(0x16b4)]({'userProfileId':_0x5a5510[_0x385f73(0x2321)][_0x385f73(0x209a)],'sectionId':0xca})['$promise'];})[_0xfe2b49(0x146b)](function(_0x680cf1){const _0x3db478=_0xfe2b49,_0x18a432=_0x680cf1&&_0x680cf1[_0x3db478(0x19c7)]?_0x680cf1['rows'][0x0]:null;if(!_0x18a432){const _0x4028dc=[];let _0x7e1029=null;_0x5a5510[_0x3db478(0x1f0f)]&&(_0x7e1029=_0x3f65c0()[_0x3db478(0xc84)](_0x5a5510['agents'],{'id':Number(_0x5a5510[_0x3db478(0x1f0f)][_0x3db478(0xea2)])}));for(let _0x4b3209=0x0;_0x4b3209<_0x5a5510[_0x3db478(0x23c0)][_0x3db478(0x402)];_0x4b3209++){_0x7e1029&&_0x5a5510['agents'][_0x4b3209]['id']===_0x7e1029['id']&&(_0x5a5510[_0x3db478(0x23c0)][_0x4b3209][_0x3db478(0x8ff)]=![],_0x4028dc[_0x3db478(0x1f47)](_0x5a5510[_0x3db478(0x23c0)][_0x4b3209]));}_0x5a5510[_0x3db478(0x23c0)]=_0x4028dc;}else{if(!_0x18a432[_0x3db478(0x11d2)])return _0x5d605e[_0x3db478(0xdcc)][_0x3db478(0x16b4)]({'sectionId':_0x18a432['id']})['$promise'][_0x3db478(0x146b)](function(_0x552660){const _0x13ad9c=_0x3db478,_0x14800d=_0x3f65c0()[_0x13ad9c(0x205)](_0x552660[_0x13ad9c(0x19c7)],function(_0x191513){const _0x24c1a8=_0x13ad9c;return _0x3f65c0()[_0x24c1a8(0xc84)](_0x5a5510[_0x24c1a8(0x23c0)],{'id':_0x191513[_0x24c1a8(0x18b8)]});});let _0xfacd04=null;_0x5a5510[_0x13ad9c(0x1f0f)]&&(_0xfacd04=_0x3f65c0()[_0x13ad9c(0xc84)](_0x5a5510['agents'],{'id':Number(_0x5a5510['queueCampaign']['UserId'])}));if(_0xfacd04&&!_0x3f65c0()[_0x13ad9c(0x1360)](_0x14800d,['id',_0xfacd04['id']])){const _0x13c59c=_0x3f65c0()['find'](_0x5a5510[_0x13ad9c(0x23c0)],{'id':_0xfacd04['id']});_0x13c59c[_0x13ad9c(0x8ff)]=![],_0x14800d[_0x13ad9c(0x1f47)](_0x13c59c);}_0x5a5510['agents']=_0x14800d;});}})[_0xfe2b49(0x129e)](function(_0x1b6f4d){const _0x3f7cfa=_0xfe2b49;_0x2cb1b0['error']({'title':_0x1b6f4d[_0x3f7cfa(0x107b)]?_0x3f7cfa(0x262a)+_0x1b6f4d['status']+'\x20-\x20'+_0x1b6f4d[_0x3f7cfa(0x167f)]:_0x3f7cfa(0x788),'msg':_0x1b6f4d[_0x3f7cfa(0x524)]?JSON[_0x3f7cfa(0x10bb)](_0x1b6f4d['data']):_0x1b6f4d[_0x3f7cfa(0xd5f)]()});});function _0x203c7e(_0x33fdd9,_0x459048){const _0x502f36=_0xfe2b49;_0x5a5510[_0x502f36(0x1f0f)]=_0x33fdd9,_0x5a5510['crudPermissions']=typeof _0x459048!==_0x502f36(0x2274)?_0x459048:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x5a5510[_0x502f36(0x1a56)]['VoiceQueueId']=_0x5a5510[_0x502f36(0x1f0f)]['id'],_0x5a5510['query']['id']=_0x5a5510[_0x502f36(0x1f0f)]['id'],_0xb318c8();}function _0x28c9b9(_0x45c31d,_0x1432ea){const _0x34a666=_0xfe2b49,_0x15bb54=_0x444a3e[_0x34a666(0x1e8a)]()[_0x34a666(0x1189)](_0x34a666(0x13ea))[_0x34a666(0x1cbe)](''+(_0x45c31d[_0x34a666(0x19eb)]||_0x45c31d['id']&&_0x3f65c0()['upperFirst']('hopper\x20#')+_0x45c31d['id']||'hopper')+''+'\x20will\x20be\x20deleted.')[_0x34a666(0x4bd)](_0x34a666(0xb62))[_0x34a666(0x1f27)](_0x1432ea)['ok']('OK')['cancel'](_0x34a666(0x39a));_0x444a3e[_0x34a666(0x2615)](_0x15bb54)[_0x34a666(0x146b)](function(){_0x299dd3(_0x45c31d);},function(){const _0x19813f=_0x34a666;console[_0x19813f(0x1a74)](_0x19813f(0x39a));});}function _0x288dac(_0x21d6de){const _0x42e0ec=_0xfe2b49;_0x5a5510[_0x42e0ec(0x172f)]=_0x21d6de||{'count':0x0,'rows':[]};}function _0xb318c8(){const _0x5bf262=_0xfe2b49;_0x5a5510[_0x5bf262(0x1a56)][_0x5bf262(0x145d)]=(_0x5a5510[_0x5bf262(0x1a56)][_0x5bf262(0x844)]-0x1)*_0x5a5510[_0x5bf262(0x1a56)][_0x5bf262(0x221e)],_0x5a5510[_0x5bf262(0xb9c)]=_0x5d605e['voiceQueue'][_0x5bf262(0x3b6)](_0x5a5510[_0x5bf262(0x1a56)],_0x288dac)[_0x5bf262(0x2945)];}function _0x19470d(_0x21f6f3,_0x147251){const _0x55ab06=_0xfe2b49;_0x444a3e[_0x55ab06(0x2615)]({'controller':'CreateOrEditHopperVoiceQueueIdDialogController','controllerAs':'vm','templateUrl':_0x24c092,'parent':angular['element'](_0x572a10[_0x55ab06(0x2586)]),'targetEvent':_0x21f6f3,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x5a5510[_0x55ab06(0x1f0f)],'hopper':_0x147251,'hoppers':_0x5a5510[_0x55ab06(0x172f)][_0x55ab06(0x19c7)],'license':null,'setting':null,'crudPermissions':_0x5a5510['crudPermissions']}});}function _0x299dd3(_0xaa4ecf){const _0x149983=_0xfe2b49;_0x5d605e['cmHopper'][_0x149983(0x1fac)]({'id':_0xaa4ecf['id']})[_0x149983(0x2945)][_0x149983(0x146b)](function(){const _0x2cb0cc=_0x149983;_0x3f65c0()[_0x2cb0cc(0x2640)](_0x5a5510[_0x2cb0cc(0x172f)][_0x2cb0cc(0x19c7)],{'id':_0xaa4ecf['id']}),_0x5a5510['queueCampaignHoppers']['count']-=0x1,!_0x5a5510['queueCampaignHoppers'][_0x2cb0cc(0x19c7)][_0x2cb0cc(0x402)]&&_0xb318c8(),_0x2cb1b0['success']({'title':'Hopper\x20deleted!','msg':_0xaa4ecf['name']?_0xaa4ecf[_0x2cb0cc(0x19eb)]+_0x2cb0cc(0x23e3):''});})['catch'](function(_0xcbb773){const _0x5f55d5=_0x149983;if(_0xcbb773[_0x5f55d5(0x524)]&&_0xcbb773[_0x5f55d5(0x524)][_0x5f55d5(0xcef)]&&_0xcbb773[_0x5f55d5(0x524)][_0x5f55d5(0xcef)][_0x5f55d5(0x402)]){_0x5a5510[_0x5f55d5(0xcef)]=_0xcbb773['data']['errors']||[{'message':_0xcbb773[_0x5f55d5(0xd5f)](),'type':_0x5f55d5(0xfac)}];for(let _0x3577ab=0x0;_0x3577ab<_0xcbb773[_0x5f55d5(0x524)][_0x5f55d5(0xcef)][_0x5f55d5(0x402)];_0x3577ab++){_0x2cb1b0[_0x5f55d5(0x1980)]({'title':_0xcbb773['data']['errors'][_0x3577ab][_0x5f55d5(0x1142)],'msg':_0xcbb773['data'][_0x5f55d5(0xcef)][_0x3577ab]['message']});}}else _0x2cb1b0['error']({'title':_0xcbb773[_0x5f55d5(0x107b)]?'API:'+_0xcbb773['status']+_0x5f55d5(0x1315)+_0xcbb773[_0x5f55d5(0x167f)]:_0x5f55d5(0xfac),'msg':_0xcbb773['data']?JSON['stringify'](_0xcbb773[_0x5f55d5(0x524)][_0x5f55d5(0x7fd)]):_0xcbb773['message']||_0xcbb773[_0x5f55d5(0xd5f)]()});});}function _0x501f66(){const _0x1f9036=_0xfe2b49,_0x206b5c=angular[_0x1f9036(0x235a)](_0x5a5510['selectedQueueCampaignHoppers']);return _0x5a5510['selectedQueueCampaignHoppers']=[],_0x206b5c;}function _0x5dd4d8(_0x3092b7){const _0x263ec7=_0xfe2b49,_0x3f98f8=_0x444a3e[_0x263ec7(0x1e8a)]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20hoppers?')['htmlContent'](''+_0x5a5510[_0x263ec7(0x10aa)][_0x263ec7(0x402)]+'\x20selected'+'\x20will\x20be\x20deleted.')[_0x263ec7(0x4bd)](_0x263ec7(0xaca))[_0x263ec7(0x1f27)](_0x3092b7)['ok']('OK')['cancel'](_0x263ec7(0x39a));_0x444a3e[_0x263ec7(0x2615)](_0x3f98f8)['then'](function(){const _0x3dce2f=_0x263ec7;_0x5a5510[_0x3dce2f(0x10aa)][_0x3dce2f(0x1df5)](function(_0xfa7196){_0x299dd3(_0xfa7196);}),_0x5a5510[_0x3dce2f(0x10aa)]=[];});}let _0x1a740d=!![],_0x5bbe3a=0x1;_0x4287c2['$watch']('vm_dc.query.filter',function(_0x15106d,_0x4e9751){const _0x1ae54d=_0xfe2b49;_0x1a740d?_0x11b611(function(){_0x1a740d=![];}):(!_0x4e9751&&(_0x5bbe3a=_0x5a5510[_0x1ae54d(0x1a56)][_0x1ae54d(0x844)]),_0x15106d!==_0x4e9751&&(_0x5a5510[_0x1ae54d(0x1a56)][_0x1ae54d(0x844)]=0x1),!_0x15106d&&(_0x5a5510['query'][_0x1ae54d(0x844)]=_0x5bbe3a),_0xb318c8());});}const _0x1cc8b3=_0x1ac9c8;;_0x3337aa[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1862),'$location',_0x313a4d(0x10e8),'$q',_0x313a4d(0x214b),'toasty',_0x313a4d(0x9f0),_0x313a4d(0x10fa),_0x313a4d(0x247f),'Auth',_0x313a4d(0x2690),'setting',_0x313a4d(0x2514)];function _0x3337aa(_0xc0a21b,_0x456d26,_0x1bdb6e,_0x24c01f,_0xd365cc,_0x43c03d,_0x5edb97,_0x57e2c1,_0x23537c,_0x460822,_0x2b7b0b,_0x3d58f2,_0x53ae31,_0x143e52){const _0x11b05f=_0x313a4d,_0x14629f=this;_0x14629f['currentUser']=_0x2b7b0b[_0x11b05f(0xb12)](),_0x14629f[_0x11b05f(0xcef)]=[],_0x14629f[_0x11b05f(0x15b9)]=_0x53ae31,_0x14629f[_0x11b05f(0x2690)]=_0x3d58f2,_0x14629f['crudPermissions']=_0x143e52,_0x14629f[_0x11b05f(0x855)]={},_0x14629f['passwordPattern']=_0x14629f[_0x11b05f(0x15b9)]&&_0x14629f[_0x11b05f(0x15b9)]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x14629f['title']=_0x11b05f(0x1fd),_0x14629f['hopper']=angular[_0x11b05f(0x235a)](_0x23537c),_0x14629f['hoppers']=_0x57e2c1,_0x14629f['newHopper']=![];!_0x14629f[_0x11b05f(0x10fa)]&&(_0x14629f[_0x11b05f(0x10fa)]={},_0x14629f[_0x11b05f(0x1189)]=_0x11b05f(0x1147),_0x14629f[_0x11b05f(0xaa9)]=!![]);_0x456d26[_0x11b05f(0x16a)]['id']&&(_0x14629f[_0x11b05f(0x10fa)][_0x11b05f(0x6ed)]=_0x456d26[_0x11b05f(0x16a)]['id']);_0x14629f[_0x11b05f(0x6fe)]=_0x5ba761,_0x14629f['saveHopper']=_0x436252,_0x14629f['deleteHopper']=_0x2fc999,_0x14629f[_0x11b05f(0xe73)]=_0x23a8f2,_0x14629f[_0x11b05f(0x13f3)]=_0x2db2aa,_0x2b7b0b[_0x11b05f(0x23e0)]('admin')?_0x460822[_0x11b05f(0xe7b)]['get']({'fields':'id,name','role':_0x11b05f(0x1755),'sort':_0x11b05f(0x19eb),'nolimit':_0x11b05f(0x1185)})['$promise'][_0x11b05f(0x146b)](function(_0x35fe05){const _0x1992fa=_0x11b05f;_0x14629f[_0x1992fa(0x23c0)]=_0x35fe05[_0x1992fa(0x19c7)]||[];})['catch'](function(_0x56de1b){const _0x420cd8=_0x11b05f;_0x5edb97[_0x420cd8(0x1980)]({'title':_0x56de1b[_0x420cd8(0x107b)]?_0x420cd8(0x262a)+_0x56de1b[_0x420cd8(0x107b)]+_0x420cd8(0x1315)+_0x56de1b[_0x420cd8(0x167f)]:'SYSTEM:GET_AGENTS','msg':_0x56de1b['data']?JSON[_0x420cd8(0x10bb)](_0x56de1b[_0x420cd8(0x524)]):_0x56de1b[_0x420cd8(0xd5f)]()});}):_0x460822[_0x11b05f(0xe7b)][_0x11b05f(0x16b4)]({'fields':_0x11b05f(0x7a7),'role':_0x11b05f(0x1755),'sort':'name','nolimit':_0x11b05f(0x1185)})[_0x11b05f(0x2945)][_0x11b05f(0x146b)](function(_0xb84758){const _0x29f2af=_0x11b05f;_0x14629f[_0x29f2af(0x23c0)]=_0xb84758['rows']||[];})['then'](function(){const _0x4b7c17=_0x11b05f;return _0x460822[_0x4b7c17(0x1366)][_0x4b7c17(0x16b4)]({'userProfileId':_0x14629f[_0x4b7c17(0x2321)][_0x4b7c17(0x209a)],'sectionId':0xca})[_0x4b7c17(0x2945)];})['then'](function(_0x2b4b65){const _0x138a3c=_0x11b05f,_0x5d6e46=_0x2b4b65&&_0x2b4b65[_0x138a3c(0x19c7)]?_0x2b4b65[_0x138a3c(0x19c7)][0x0]:null;if(!_0x5d6e46){const _0x208c46=[];let _0x3394ad=null;_0x14629f[_0x138a3c(0x10fa)]&&(_0x3394ad=_0x3f65c0()[_0x138a3c(0xc84)](_0x14629f[_0x138a3c(0x23c0)],{'id':Number(_0x14629f[_0x138a3c(0x10fa)][_0x138a3c(0xea2)])}));for(let _0x19b8b1=0x0;_0x19b8b1<_0x14629f[_0x138a3c(0x23c0)][_0x138a3c(0x402)];_0x19b8b1++){_0x3394ad&&_0x14629f[_0x138a3c(0x23c0)][_0x19b8b1]['id']===_0x3394ad['id']&&(_0x14629f[_0x138a3c(0x23c0)][_0x19b8b1][_0x138a3c(0x8ff)]=![],_0x208c46[_0x138a3c(0x1f47)](_0x14629f[_0x138a3c(0x23c0)][_0x19b8b1]));}_0x14629f[_0x138a3c(0x23c0)]=_0x208c46;}else{if(!_0x5d6e46[_0x138a3c(0x11d2)])return _0x460822[_0x138a3c(0xdcc)][_0x138a3c(0x16b4)]({'sectionId':_0x5d6e46['id']})[_0x138a3c(0x2945)]['then'](function(_0x521c78){const _0x50007f=_0x138a3c,_0x1383b0=_0x3f65c0()[_0x50007f(0x205)](_0x521c78[_0x50007f(0x19c7)],function(_0x5c9eaa){const _0x1fb226=_0x50007f;return _0x3f65c0()[_0x1fb226(0xc84)](_0x14629f[_0x1fb226(0x23c0)],{'id':_0x5c9eaa['resourceId']});});let _0xc5fd21=null;_0x14629f[_0x50007f(0x10fa)]&&(_0xc5fd21=_0x3f65c0()[_0x50007f(0xc84)](_0x14629f[_0x50007f(0x23c0)],{'id':Number(_0x14629f[_0x50007f(0x10fa)][_0x50007f(0xea2)])}));if(_0xc5fd21&&!_0x3f65c0()['some'](_0x1383b0,['id',_0xc5fd21['id']])){const _0x122329=_0x3f65c0()[_0x50007f(0xc84)](_0x14629f['agents'],{'id':_0xc5fd21['id']});_0x122329[_0x50007f(0x8ff)]=![],_0x1383b0[_0x50007f(0x1f47)](_0x122329);}_0x14629f[_0x50007f(0x23c0)]=_0x1383b0;});}})[_0x11b05f(0x129e)](function(_0x1b72c){const _0x4096d1=_0x11b05f;_0x5edb97[_0x4096d1(0x1980)]({'title':_0x1b72c[_0x4096d1(0x107b)]?_0x4096d1(0x262a)+_0x1b72c[_0x4096d1(0x107b)]+_0x4096d1(0x1315)+_0x1b72c[_0x4096d1(0x167f)]:_0x4096d1(0x788),'msg':_0x1b72c[_0x4096d1(0x524)]?JSON[_0x4096d1(0x10bb)](_0x1b72c['data']):_0x1b72c['toString']()});});function _0x5ba761(){const _0x33e2d6=_0x11b05f;_0x14629f[_0x33e2d6(0xcef)]=[],_0x460822['cmHopper'][_0x33e2d6(0x1e3)](_0x14629f[_0x33e2d6(0x10fa)])[_0x33e2d6(0x2945)][_0x33e2d6(0x146b)](function(_0x5d89a1){const _0x3b6217=_0x33e2d6;_0x14629f[_0x3b6217(0x9f0)][_0x3b6217(0xb3d)](_0x5d89a1[_0x3b6217(0x2488)]()),_0x5edb97[_0x3b6217(0x1c75)]({'title':_0x3b6217(0x1976),'msg':_0x14629f[_0x3b6217(0x10fa)]['name']?_0x14629f['hopper'][_0x3b6217(0x19eb)]+'\x20has\x20been\x20created!':''}),_0x2db2aa(_0x5d89a1);})[_0x33e2d6(0x129e)](function(_0x43d67f){const _0x1c3819=_0x33e2d6;if(_0x43d67f[_0x1c3819(0x524)]&&_0x43d67f[_0x1c3819(0x524)][_0x1c3819(0xcef)]&&_0x43d67f[_0x1c3819(0x524)][_0x1c3819(0xcef)][_0x1c3819(0x402)]){_0x14629f[_0x1c3819(0xcef)]=_0x43d67f[_0x1c3819(0x524)]['errors']||[{'message':_0x43d67f['toString'](),'type':_0x1c3819(0x800)}];for(let _0x2e7d3b=0x0;_0x2e7d3b<_0x43d67f[_0x1c3819(0x524)][_0x1c3819(0xcef)][_0x1c3819(0x402)];_0x2e7d3b+=0x1){_0x5edb97[_0x1c3819(0x1980)]({'title':_0x43d67f[_0x1c3819(0x524)][_0x1c3819(0xcef)][_0x2e7d3b][_0x1c3819(0x1142)],'msg':_0x43d67f[_0x1c3819(0x524)][_0x1c3819(0xcef)][_0x2e7d3b]['message']});}}else _0x5edb97[_0x1c3819(0x1980)]({'title':_0x43d67f[_0x1c3819(0x107b)]?_0x1c3819(0x262a)+_0x43d67f[_0x1c3819(0x107b)]+_0x1c3819(0x1315)+_0x43d67f[_0x1c3819(0x167f)]:_0x1c3819(0x800),'msg':_0x43d67f[_0x1c3819(0x524)]?JSON['stringify'](_0x43d67f[_0x1c3819(0x524)][_0x1c3819(0x7fd)]):_0x43d67f[_0x1c3819(0xd5f)]()});});}function _0x436252(){const _0x4fb77f=_0x11b05f;_0x14629f[_0x4fb77f(0xcef)]=[];let _0x554eab,_0x54c58c,_0x53618a,_0x5eafbf;_0x14629f[_0x4fb77f(0x10fa)]['UserId']=_0x14629f[_0x4fb77f(0x10fa)][_0x4fb77f(0x2762)]?_0x14629f[_0x4fb77f(0x10fa)][_0x4fb77f(0xea2)]:null,_0x14629f[_0x4fb77f(0x10fa)]['OwnerId']=_0x2b7b0b[_0x4fb77f(0xb12)]()['id'],_0x460822[_0x4fb77f(0x39f)][_0x4fb77f(0x16b4)]({'id':_0x14629f[_0x4fb77f(0x10fa)]['id'],'attributes':[_0x4fb77f(0x432)]})[_0x4fb77f(0x2945)][_0x4fb77f(0x146b)](function(_0x446472){const _0x181fe4=_0x4fb77f;_0x3f65c0()[_0x181fe4(0x1b36)](_0x446472)||_0x3f65c0()[_0x181fe4(0x2635)](_0x446472)?_0x554eab=_0x2deec6()()[_0x181fe4(0x22b0)]('YYYY-MM-DD\x20HH:mm:ss'):_0x554eab=_0x446472['scheduledat'];})['finally'](function(){const _0x5014e4=_0x4fb77f;_0x460822[_0x5014e4(0x39f)][_0x5014e4(0x18e1)]({'id':_0x14629f['hopper']['id']},_0x3f65c0()[_0x5014e4(0x2432)](_0x14629f[_0x5014e4(0x10fa)],[_0x5014e4(0x6ed),'CampaignId','ContactId','ListId']))[_0x5014e4(0x2945)]['then'](function(_0x208a91){const _0xb654=_0x5014e4;_0x54c58c=_0x208a91,_0x460822[_0xb654(0x18c3)]['get']({'id':_0x54c58c[_0xb654(0x932)],'attributes':[_0xb654(0x1ed4),_0xb654(0xee4)]})[_0xb654(0x2945)]['then'](function(_0x291579){const _0x2565ff=_0xb654;!_0x3f65c0()[_0x2565ff(0x1b36)](_0x291579)&&!_0x3f65c0()[_0x2565ff(0x1b36)](_0x291579[_0x2565ff(0x1ed4)])&&(_0x53618a=_0x291579[_0x2565ff(0x1ed4)],!_0x3f65c0()[_0x2565ff(0x1b36)](_0x291579[_0x2565ff(0xee4)])&&(_0x53618a+='\x20'+_0x291579[_0x2565ff(0xee4)]));})['catch'](function(){_0x53618a=undefined;})[_0xb654(0x1ec6)](function(){const _0x34ba84=_0xb654;_0x460822[_0x34ba84(0x1446)][_0x34ba84(0x16b4)]({'raw':![],'id':_0x54c58c[_0x34ba84(0x6ed)],'attributes':['name']})['$promise']['then'](function(_0x44e6a6){const _0x808ddb=_0x34ba84;_0x5eafbf=_0x44e6a6[_0x808ddb(0x19eb)];})[_0x34ba84(0x129e)](function(){_0x5eafbf=undefined;})[_0x34ba84(0x1ec6)](function(){const _0x1fb0d8=_0x34ba84;_0x460822['cmHopperHistory'][_0x1fb0d8(0x1e3)]({'state':0x18,'statedesc':_0x1fb0d8(0xc7e),'scheduledat':_0x554eab,'calleridnum':_0x54c58c['phone'],'calleridname':_0x53618a,'campaigntype':_0x54c58c['VoiceQueueId']?_0x1fb0d8(0x1c72):_0x1fb0d8(0x1f0),'campaign':_0x5eafbf,'editedat':_0x2deec6()()[_0x1fb0d8(0x22b0)]('YYYY-MM-DD\x20HH:mm:ss'),'edited':!![],'ListId':_0x54c58c[_0x1fb0d8(0xb7c)],'UserId':_0x2b7b0b[_0x1fb0d8(0xb12)]()['id'],'VoiceQueueId':_0x54c58c[_0x1fb0d8(0x6ed)],'CampaignId':_0x54c58c[_0x1fb0d8(0x1ee8)],'ContactId':_0x54c58c['ContactId'],'callback':_0x54c58c['callback'],'callbackuniqueid':_0x54c58c[_0x1fb0d8(0x2679)],'countbusyretry':_0x54c58c[_0x1fb0d8(0x283e)],'countcongestionretry':_0x54c58c['countcongestionretry'],'countglobal':_0x54c58c[_0x1fb0d8(0x1adf)],'countnoanswerretry':_0x54c58c[_0x1fb0d8(0x1b71)],'followuptime':_0x54c58c['followuptime'],'recallme':_0x54c58c['recallme']});});});const _0x343e3f=_0x3f65c0()[_0xb654(0xc84)](_0x14629f['hoppers'],{'id':_0x208a91['id']});_0x343e3f&&_0x3f65c0()[_0xb654(0x168d)](_0x343e3f,_0x3f65c0()['pick'](_0x208a91[_0xb654(0x2488)](),_0x3f65c0()[_0xb654(0x627)](_0x343e3f))),_0x5edb97[_0xb654(0x1c75)]({'title':_0xb654(0x17e3),'msg':_0x14629f[_0xb654(0x10fa)]['name']?_0x14629f[_0xb654(0x10fa)][_0xb654(0x19eb)]+_0xb654(0x24db):''}),_0x2db2aa(_0x208a91);})['catch'](function(_0x119689){const _0x2faad6=_0x5014e4;if(_0x119689[_0x2faad6(0x524)]&&_0x119689[_0x2faad6(0x524)][_0x2faad6(0xcef)]&&_0x119689[_0x2faad6(0x524)]['errors']['length']){_0x14629f[_0x2faad6(0xcef)]=_0x119689[_0x2faad6(0x524)][_0x2faad6(0xcef)]||[{'message':_0x119689['toString'](),'type':_0x2faad6(0x1a93)}];for(let _0x35bb8f=0x0;_0x35bb8f<_0x119689[_0x2faad6(0x524)][_0x2faad6(0xcef)][_0x2faad6(0x402)];_0x35bb8f++){_0x5edb97[_0x2faad6(0x1980)]({'title':_0x119689['data'][_0x2faad6(0xcef)][_0x35bb8f][_0x2faad6(0x1142)],'msg':_0x119689[_0x2faad6(0x524)]['errors'][_0x35bb8f]['message']});}}else _0x5edb97[_0x2faad6(0x1980)]({'title':_0x119689[_0x2faad6(0x107b)]?_0x2faad6(0x262a)+_0x119689[_0x2faad6(0x107b)]+_0x2faad6(0x1315)+_0x119689[_0x2faad6(0x167f)]:'api.cmHopper.update','msg':_0x119689['data']?JSON['stringify'](_0x119689[_0x2faad6(0x524)][_0x2faad6(0x7fd)]):_0x119689[_0x2faad6(0xd5f)]()});});});}function _0x2fc999(_0xf9e12a){const _0xa356dd=_0x11b05f;_0x14629f[_0xa356dd(0xcef)]=[];const _0xf30e77=_0x24c01f[_0xa356dd(0x1e8a)]()['title'](_0xa356dd(0x1d64))[_0xa356dd(0x80f)]('The\x20hopper\x20will\x20be\x20deleted.')['ariaLabel'](_0xa356dd(0x16c8))['ok'](_0xa356dd(0x25de))['cancel'](_0xa356dd(0xcf0))[_0xa356dd(0x1f27)](_0xf9e12a);_0x24c01f[_0xa356dd(0x2615)](_0xf30e77)[_0xa356dd(0x146b)](function(){const _0x97a16b=_0xa356dd;_0x460822[_0x97a16b(0x39f)]['delete']({'id':_0x14629f['hopper']['id']})[_0x97a16b(0x2945)][_0x97a16b(0x146b)](function(){const _0x508f3e=_0x97a16b;_0x3f65c0()[_0x508f3e(0x2640)](_0x14629f['hoppers'],{'id':_0x14629f[_0x508f3e(0x10fa)]['id']}),_0x5edb97[_0x508f3e(0x1c75)]({'title':'Hopper\x20properly\x20deleted!','msg':(_0x14629f['hopper'][_0x508f3e(0x19eb)]||_0x508f3e(0x10fa))+_0x508f3e(0x23e3)}),_0x2db2aa(_0x14629f[_0x508f3e(0x10fa)]);})[_0x97a16b(0x129e)](function(_0x541c46){const _0x3efa4a=_0x97a16b;if(_0x541c46['data']&&_0x541c46[_0x3efa4a(0x524)][_0x3efa4a(0xcef)]&&_0x541c46[_0x3efa4a(0x524)][_0x3efa4a(0xcef)][_0x3efa4a(0x402)]){_0x14629f['errors']=_0x541c46['data'][_0x3efa4a(0xcef)]||[{'message':_0x541c46[_0x3efa4a(0xd5f)](),'type':_0x3efa4a(0x5d5)}];for(let _0x364a7c=0x0;_0x364a7c<_0x541c46[_0x3efa4a(0x524)][_0x3efa4a(0xcef)]['length'];_0x364a7c++){_0x5edb97[_0x3efa4a(0x1980)]({'title':_0x541c46[_0x3efa4a(0x524)][_0x3efa4a(0xcef)][_0x364a7c][_0x3efa4a(0x1142)],'msg':_0x541c46[_0x3efa4a(0x524)]['errors'][_0x364a7c][_0x3efa4a(0x7fd)]});}}else _0x5edb97['error']({'title':_0x541c46[_0x3efa4a(0x107b)]?_0x3efa4a(0x262a)+_0x541c46[_0x3efa4a(0x107b)]+'\x20-\x20'+_0x541c46[_0x3efa4a(0x167f)]:_0x3efa4a(0x5d5),'msg':_0x541c46[_0x3efa4a(0x524)]?JSON[_0x3efa4a(0x10bb)](_0x541c46[_0x3efa4a(0x524)][_0x3efa4a(0x7fd)]):_0x541c46[_0x3efa4a(0x7fd)]||_0x541c46[_0x3efa4a(0xd5f)]()});});},function(){});}function _0x23a8f2(_0x4be29e){return _0x4be29e===null?undefined:new Date(_0x4be29e);}function _0x2db2aa(_0x44b888){const _0x1b95b7=_0x11b05f;_0x24c01f[_0x1b95b7(0x2458)](_0x44b888);}}const _0x13c860=_0x3337aa;;_0x505161[_0x313a4d(0x11c2)]=[_0x313a4d(0x247f),_0x313a4d(0x1fe4)];function _0x505161(_0x4e14c0,_0x4cd00f){const _0x11249a=_0x313a4d,_0x2e015c=this;_0x2e015c[_0x11249a(0x1f0f)]={},_0x2e015c['init']=_0x40adf1;function _0x40adf1(_0x4c2457){const _0x438e6e=_0x11249a;_0x2e015c[_0x438e6e(0x1f0f)]=_0x4c2457,_0x4e14c0[_0x438e6e(0x39f)]['get']({'limit':0x0,'VoiceQueueId':_0x4c2457['id']})[_0x438e6e(0x2945)][_0x438e6e(0x146b)](function(_0x5e8254){const _0x166992=_0x438e6e;return _0x2e015c[_0x166992(0x2877)]=_0x5e8254['count']||0x0,_0x4e14c0['cmHopper'][_0x166992(0x16b4)]({'limit':0x0,'VoiceQueueId':_0x4c2457['id'],'active':![],'countbusyretry':0x0,'countcongestionretry':0x0,'countnoanswerretry':0x0})[_0x166992(0x2945)];})['then'](function(_0x4886c1){const _0x17ad67=_0x438e6e;return _0x2e015c[_0x17ad67(0xbb0)]=_0x4886c1[_0x17ad67(0x51c)]||0x0,_0x4e14c0[_0x17ad67(0x2018)]['get']({'limit':0x0,'VoiceQueueId':_0x4c2457['id']})[_0x17ad67(0x2945)];})[_0x438e6e(0x146b)](function(_0x165380){const _0xe3ef1d=_0x438e6e;_0x2e015c[_0xe3ef1d(0x1943)]=_0x165380[_0xe3ef1d(0x51c)]||0x0;})['catch'](function(_0x2b726e){const _0x37027c=_0x438e6e;_0x4cd00f[_0x37027c(0x1980)]({'title':_0x2b726e[_0x37027c(0x107b)]?_0x37027c(0x262a)+_0x2b726e[_0x37027c(0x107b)]+'\x20-\x20'+_0x2b726e[_0x37027c(0x167f)]:_0x37027c(0x220e),'msg':_0x2b726e[_0x37027c(0x524)]?JSON['stringify'](_0x2b726e[_0x37027c(0x524)]):_0x2b726e[_0x37027c(0xd5f)]()});});}}const _0x204849=_0x505161;;_0x971f04[_0x313a4d(0x11c2)]=['$mdDialog','$q','toasty',_0x313a4d(0x247f),_0x313a4d(0x1f0f),_0x313a4d(0x214b),_0x313a4d(0x1abe),'Auth',_0x313a4d(0x2514)];function _0x971f04(_0x3112b8,_0x3f339c,_0x5af736,_0xc48747,_0x509ce4,_0x3c1097,_0x47b774,_0x56ac22,_0x1df0f0){const _0x1f05c7=_0x313a4d,_0x40e5ff=this;_0x40e5ff[_0x1f05c7(0x2321)]=_0x56ac22[_0x1f05c7(0xb12)](),_0x40e5ff[_0x1f05c7(0x1f0f)]=_0x509ce4,_0x40e5ff[_0x1f05c7(0x2514)]=_0x1df0f0,_0x40e5ff[_0x1f05c7(0x161a)]=_0x1f05c7(0x1446),_0x40e5ff['getApi']=_0x1f05c7(0x233d),_0x40e5ff[_0x1f05c7(0x8f4)]='addLists',_0x40e5ff[_0x1f05c7(0x1ae9)]='removeLists',_0x40e5ff[_0x1f05c7(0x1fd6)]=[],_0x40e5ff[_0x1f05c7(0xc4e)]=[],_0x40e5ff['selectedItems']=[],_0x40e5ff['startingAllowedItems']=[],_0x40e5ff['startingSelectedItems']=[],_0x40e5ff[_0x1f05c7(0x132)]=![],_0x40e5ff[_0x1f05c7(0x1699)]=![],_0x40e5ff[_0x1f05c7(0x1f8a)]={'readOnly':!_0x40e5ff['crudPermissions'][_0x1f05c7(0x15f4)],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':![],'orderBy':_0x1f05c7(0x19eb),'line1':'name','line2':'','line3':'','labelAll':_0x3c1097[_0x1f05c7(0xde)](_0x1f05c7(0x11e0)),'labelSelected':_0x3c1097[_0x1f05c7(0xde)]('MOTIONDIALER.SELECTED_LISTS'),'transferCallback':function(){const _0x3f32f6=_0x1f05c7,_0x1f3af8=_0x3f65c0()[_0x3f32f6(0x1883)](_0x40e5ff[_0x3f32f6(0xa65)],_0x40e5ff[_0x3f32f6(0x1ecf)],'id');_0x40e5ff[_0x3f32f6(0x132)]=_0x3f65c0()[_0x3f32f6(0x2635)](_0x1f3af8)?![]:!![];}},_0x40e5ff[_0x1f05c7(0x3d4)]=_0x472e76,_0x40e5ff[_0x1f05c7(0x24d1)]=_0x14ebec,_0x40e5ff[_0x1f05c7(0x13f3)]=_0x2e2ce3;function _0x472e76(){const _0x4c5b5e=_0x1f05c7;return _0x56ac22[_0x4c5b5e(0x23e0)](_0x4c5b5e(0x174b))?_0x2ed1a4()['catch'](function(_0x5b3be2){const _0xb300c2=_0x4c5b5e;_0x5af736[_0xb300c2(0x1980)]({'title':_0x5b3be2[_0xb300c2(0x107b)]?_0xb300c2(0x262a)+_0x5b3be2['status']+_0xb300c2(0x1315)+_0x5b3be2[_0xb300c2(0x167f)]:_0xb300c2(0x474),'msg':_0x5b3be2[_0xb300c2(0x107b)]?JSON[_0xb300c2(0x10bb)](_0x5b3be2['data']):_0x5b3be2[_0xb300c2(0xd5f)]()});}):_0x12db91()[_0x4c5b5e(0x146b)](function(_0x40f0de){const _0x1ad908=_0x4c5b5e;return _0x40e5ff[_0x1ad908(0x2146)]=_0x40f0de,_0x2ed1a4();})[_0x4c5b5e(0x129e)](function(_0x13260f){const _0x46d2da=_0x4c5b5e;_0x5af736['error']({'title':_0x13260f[_0x46d2da(0x107b)]?_0x46d2da(0x262a)+_0x13260f[_0x46d2da(0x107b)]+_0x46d2da(0x1315)+_0x13260f[_0x46d2da(0x167f)]:'SYSTEM:GETLISTS','msg':_0x13260f[_0x46d2da(0x107b)]?JSON[_0x46d2da(0x10bb)](_0x13260f[_0x46d2da(0x524)]):_0x13260f['toString']()});});}function _0x12db91(){return _0x3f339c(function(_0x3cf33e,_0x4cafb7){const _0x206639=a0_0x3bb9;_0xc48747[_0x206639(0x1366)][_0x206639(0x16b4)]({'userProfileId':_0x40e5ff[_0x206639(0x2321)][_0x206639(0x209a)],'name':_0x206639(0x174f)})[_0x206639(0x2945)][_0x206639(0x146b)](function(_0x5e52ef){const _0x25d90b=_0x206639,_0x282e09=_0x5e52ef&&_0x5e52ef[_0x25d90b(0x19c7)]?_0x5e52ef[_0x25d90b(0x19c7)][0x0]:null;_0x3cf33e(_0x282e09);})['catch'](function(_0x394582){_0x4cafb7(_0x394582);});});}function _0x2ed1a4(){return _0x3f339c(function(_0x518d30,_0x5c066e){const _0x2c10ff=a0_0x3bb9;return _0x65c835()[_0x2c10ff(0x146b)](function(_0x46ee64){const _0x319503=_0x2c10ff;return _0x40e5ff[_0x319503(0x1fd6)]=_0x46ee64['rows']?_0x46ee64['rows']:[],_0x56ac22[_0x319503(0x23e0)](_0x319503(0x174b))?_0x46ee64:_0x40e5ff[_0x319503(0x2146)]?_0x40e5ff[_0x319503(0x2146)][_0x319503(0x11d2)]?_0x46ee64:_0x56051f():null;})[_0x2c10ff(0x146b)](function(_0xa810b9){const _0x3442d0=_0x2c10ff,_0x56e64a=_0xa810b9&&_0xa810b9[_0x3442d0(0x19c7)]?_0xa810b9['rows']:[];return _0x40e5ff[_0x3442d0(0xc4e)]=_0x3f65c0()[_0x3442d0(0x205)](_0x56e64a,function(_0x44188b){const _0x25d200=_0x3442d0;return _0x3f65c0()['find'](_0x40e5ff['items'],{'id':_0x56ac22[_0x25d200(0x23e0)](_0x25d200(0x174b))||_0x40e5ff[_0x25d200(0x2146)][_0x25d200(0x11d2)]?_0x44188b['id']:_0x44188b[_0x25d200(0x18b8)]});}),_0x40e5ff['startingAllowedItems']=angular[_0x3442d0(0x235a)](_0x40e5ff[_0x3442d0(0xc4e)]),_0x40e5ff['items'][_0x3442d0(0x1df5)](function(_0x32119f){const _0x4e4137=_0x3442d0,_0x4b6aba=_0x3f65c0()[_0x4e4137(0xc84)](_0x40e5ff['allowedItems'],{'id':_0x32119f['id']});_0x40e5ff['currentUser'][_0x4e4137(0xfb0)]===_0x4e4137(0x174b)?_0x32119f[_0x4e4137(0x146f)]=!![]:_0x32119f[_0x4e4137(0x146f)]=typeof _0x4b6aba!==_0x4e4137(0x2274)?!![]:![];}),_0x22082d();})['then'](function(_0x4ace0d){const _0x483f87=_0x2c10ff,_0x381b45=_0x4ace0d&&_0x4ace0d[_0x483f87(0x19c7)]?_0x4ace0d[_0x483f87(0x19c7)]:[];_0x40e5ff['selectedItems']=_0x3f65c0()[_0x483f87(0x205)](_0x381b45,function(_0xd2e237){return _0x3f65c0()['find'](_0x40e5ff['items'],{'id':_0xd2e237['id']});}),_0x40e5ff[_0x483f87(0xa65)]=angular[_0x483f87(0x235a)](_0x40e5ff['selectedItems']),_0x40e5ff[_0x483f87(0x1f8a)][_0x483f87(0x1ecf)]=_0x40e5ff['selectedItems'],_0x40e5ff[_0x483f87(0x1f8a)]['items']=_0x3f65c0()[_0x483f87(0x2796)](_0x40e5ff[_0x483f87(0xc4e)],_0x40e5ff['dualMultiselectOptions'][_0x483f87(0x1ecf)],'id'),_0x518d30();})[_0x2c10ff(0x129e)](function(_0x40433f){_0x5c066e(_0x40433f);});});}function _0x56051f(){return _0x3f339c(function(_0x213c96,_0x5f344f){const _0x7d39e1=a0_0x3bb9;return _0xc48747['userProfileResource'][_0x7d39e1(0x16b4)]({'sectionId':_0x40e5ff[_0x7d39e1(0x2146)]['id'],'nolimit':!![]})[_0x7d39e1(0x2945)]['then'](function(_0x53300b){_0x213c96(_0x53300b);})[_0x7d39e1(0x129e)](function(_0x4f7c5){_0x5f344f(_0x4f7c5);});});}function _0x22082d(){return _0x3f339c(function(_0x721e36,_0x539981){const _0x31b6dc=a0_0x3bb9,_0x1fd2e0=_0xc48747[_0x40e5ff[_0x31b6dc(0x161a)]];return _0x1fd2e0[_0x40e5ff[_0x31b6dc(0x706)]]({'id':_0x40e5ff['queueCampaign']['id'],'fields':_0x31b6dc(0x7a7),'nolimit':!![]})[_0x31b6dc(0x2945)]['then'](function(_0x8731e4){_0x721e36(_0x8731e4);})['catch'](function(_0xc79067){_0x539981(_0xc79067);});});}function _0x65c835(){return _0x3f339c(function(_0x16ec5d,_0x253815){const _0x51ee32=a0_0x3bb9;return _0xc48747['cmList'][_0x51ee32(0x16b4)]({'fields':'id,name','nolimit':!![]})[_0x51ee32(0x2945)][_0x51ee32(0x146b)](function(_0x4017c9){_0x16ec5d(_0x4017c9);})[_0x51ee32(0x129e)](function(_0x3fc2f2){_0x253815(_0x3fc2f2);});});}function _0x218f8d(_0x2a2dfe){return _0x3f339c(function(_0xbf2d18,_0x4d2f9f){const _0x3d0303=a0_0x3bb9;if(_0x3f65c0()['isEmpty'](_0x2a2dfe))_0xbf2d18();else{const _0x41f1b9=_0xc48747[_0x40e5ff[_0x3d0303(0x161a)]];_0x41f1b9[_0x40e5ff['addApi']]({'id':_0x40e5ff[_0x3d0303(0x1f0f)]['id'],'ids':_0x3f65c0()[_0x3d0303(0x205)](_0x2a2dfe,'id')})[_0x3d0303(0x2945)][_0x3d0303(0x146b)](function(){_0xbf2d18();})[_0x3d0303(0x129e)](function(_0x909903){_0x4d2f9f(_0x909903);});}});}function _0x2808fb(_0x8e4cd1){return _0x3f339c(function(_0x434505,_0x48c00d){const _0x2dd66a=a0_0x3bb9;if(_0x3f65c0()[_0x2dd66a(0x2635)](_0x8e4cd1))_0x434505();else{const _0x4202a7=_0xc48747[_0x40e5ff[_0x2dd66a(0x161a)]];_0x4202a7[_0x40e5ff[_0x2dd66a(0x1ae9)]]({'id':_0x40e5ff[_0x2dd66a(0x1f0f)]['id'],'ids':_0x3f65c0()['map'](_0x8e4cd1,'id')})[_0x2dd66a(0x2945)]['then'](function(){_0x434505();})[_0x2dd66a(0x129e)](function(_0xe80f57){_0x48c00d(_0xe80f57);});}});}function _0x14ebec(){const _0x2996f7=_0x1f05c7;_0x40e5ff['loading']=!![];const _0x19d323=_0x3f65c0()[_0x2996f7(0x2796)](_0x40e5ff[_0x2996f7(0xa65)],_0x40e5ff[_0x2996f7(0x1ecf)],'id'),_0x58c9c1=_0x3f65c0()[_0x2996f7(0x2796)](_0x40e5ff['selectedItems'],_0x40e5ff[_0x2996f7(0xa65)],'id');return _0x2808fb(_0x19d323)[_0x2996f7(0x146b)](function(){return _0x218f8d(_0x58c9c1);})[_0x2996f7(0x146b)](function(){const _0x4694b9=_0x2996f7;_0x40e5ff[_0x4694b9(0x132)]=![],_0x40e5ff[_0x4694b9(0x2e8)]=angular[_0x4694b9(0x235a)](_0x40e5ff['allowedItems']),_0x40e5ff[_0x4694b9(0xa65)]=angular['copy'](_0x40e5ff[_0x4694b9(0x1ecf)]),_0x5af736[_0x4694b9(0x1c75)]({'title':'SUCCESS','msg':_0x4694b9(0x1031)});})[_0x2996f7(0x129e)](function(_0xecedda){const _0x1333e5=_0x2996f7;_0x5af736[_0x1333e5(0x1980)]({'title':_0xecedda[_0x1333e5(0x107b)]?'API:'+_0xecedda[_0x1333e5(0x107b)]+'\x20-\x20'+_0xecedda[_0x1333e5(0x167f)]:_0x1333e5(0xa56),'msg':_0xecedda[_0x1333e5(0x107b)]?JSON[_0x1333e5(0x10bb)](_0xecedda['data']):_0xecedda[_0x1333e5(0xd5f)]()});})[_0x2996f7(0x1ec6)](function(){const _0x18ddd9=_0x2996f7;_0x40e5ff[_0x18ddd9(0x1699)]=![];});}function _0x2e2ce3(){const _0xd8f11c=_0x1f05c7;_0x3112b8[_0xd8f11c(0x2458)]();}}const _0x23cbf1=_0x971f04;;_0x11c75d[_0x313a4d(0x11c2)]=['$scope','$mdDialog',_0x313a4d(0x1fe4),_0x313a4d(0x247f),_0x313a4d(0x1f0f),_0x313a4d(0x1014),_0x313a4d(0x2dc),'$q'];function _0x11c75d(_0x2c8f77,_0x5918cb,_0x5030f2,_0x4adf4a,_0x1de4fc,_0x34a993,_0x445418,_0x45c2dc){const _0x335a81=_0x313a4d,_0x317fed=this;_0x317fed[_0x335a81(0x839)]=[],_0x317fed[_0x335a81(0x1fd6)]=_0x34a993?_0x34a993:[],_0x317fed[_0x335a81(0x1699)]=![],_0x317fed['closeDialog']=_0x5e0014,_0x317fed[_0x335a81(0xbf4)]=_0x5af8a3,_0x317fed[_0x335a81(0x1f05)]=_0x343719,_0x317fed[_0x335a81(0xf52)]=_0x36c2e2,_0x317fed[_0x335a81(0x2735)]=_0x348cac,_0x317fed[_0x335a81(0x1d8a)]=_0x55d024,_0x317fed[_0x335a81(0x1f66)]=_0x1e1c44;function _0x343719(_0x2ecf13,_0x582727){const _0x384094=_0x335a81,_0x4d3401=_0x582727['indexOf'](_0x2ecf13);_0x4d3401>-0x1?_0x582727[_0x384094(0x1f7d)](_0x4d3401,0x1):_0x582727[_0x384094(0x1f47)](_0x2ecf13);}function _0x5af8a3(_0x3382dc,_0x318d2d){const _0x282fd4=_0x335a81;return _0x318d2d[_0x282fd4(0x172b)](_0x3382dc)>-0x1;}function _0x36c2e2(){const _0x312cdd=_0x335a81;return _0x317fed[_0x312cdd(0x839)]['length']!==0x0&&_0x317fed[_0x312cdd(0x839)][_0x312cdd(0x402)]!==_0x317fed['items'][_0x312cdd(0x402)];}function _0x348cac(){const _0x1d05f5=_0x335a81;return _0x317fed[_0x1d05f5(0x839)][_0x1d05f5(0x402)]===_0x317fed['items'][_0x1d05f5(0x402)];}function _0x55d024(){const _0x529fca=_0x335a81;if(_0x317fed[_0x529fca(0x839)][_0x529fca(0x402)]===_0x317fed[_0x529fca(0x1fd6)][_0x529fca(0x402)])_0x317fed[_0x529fca(0x839)]=[];else(_0x317fed['selected'][_0x529fca(0x402)]===0x0||_0x317fed[_0x529fca(0x839)][_0x529fca(0x402)]>0x0)&&(_0x317fed[_0x529fca(0x839)]=_0x317fed[_0x529fca(0x1fd6)][_0x529fca(0x1298)](0x0));}function _0x5e0014(){_0x5918cb['hide']();}function _0x1e1c44(){const _0x9cd903=_0x335a81;_0x317fed[_0x9cd903(0x1699)]=!![];const _0x511d9d=_0x673595();_0x511d9d[_0x9cd903(0x1ec6)](function(){const _0x41272a=_0x9cd903;_0x317fed[_0x41272a(0x1699)]=![],_0x5e0014();});}function _0x673595(){return _0x45c2dc(function(_0x34e968){const _0x5569e9=a0_0x3bb9;for(let _0x47dd73=0x0;_0x47dd73<_0x317fed[_0x5569e9(0x839)][_0x5569e9(0x402)];_0x47dd73+=0x1){_0x32fe82(_0x1de4fc['id'],_0x317fed[_0x5569e9(0x839)][_0x47dd73]);}_0x5db71d(_0x34e968);});}function _0x32fe82(_0x5cbe09,_0x5751da){const _0x4e3c14=_0x5751da['id'];_0x445418['enqueue'](function(){const _0x3bae14=a0_0x3bb9;return _0x4adf4a[_0x3bae14(0x1446)][_0x3bae14(0x1def)]({'id':_0x5cbe09,'ids':_0x4e3c14})[_0x3bae14(0x2945)]['then'](function(){const _0x36d43b=_0x3bae14;return _0x4adf4a[_0x36d43b(0x1446)][_0x36d43b(0x2352)]({'id':_0x5cbe09,'ids':_0x4e3c14,'dialCheckDuplicateType':_0x36d43b(0x6d2)})[_0x36d43b(0x2945)];})[_0x3bae14(0x146b)](function(){const _0x150a32=_0x3bae14;_0x5030f2['success']({'title':'Reset\x20Succesfull','msg':_0x150a32(0x18aa)+_0x5751da[_0x150a32(0x19eb)]+_0x150a32(0x1c44)});})[_0x3bae14(0x129e)](function(_0x5ba158){const _0x1dea52=_0x3bae14;_0x5030f2[_0x1dea52(0x1980)]({'title':_0x5ba158['status']?_0x1dea52(0x262a)+_0x5ba158[_0x1dea52(0x107b)]+_0x1dea52(0x1315)+_0x5ba158[_0x1dea52(0x167f)]:_0x1dea52(0xa74),'msg':_0x5ba158[_0x1dea52(0x107b)]?JSON[_0x1dea52(0x10bb)](_0x5ba158[_0x1dea52(0x524)]):_0x5ba158[_0x1dea52(0xd5f)]()});});});}function _0x5db71d(_0x53bddf){const _0x5608f4=_0x335a81;_0x445418[_0x5608f4(0x177a)](function(){return _0x53bddf();});}}const _0x5e55c4=_0x11c75d;;_0x3db5de[_0x313a4d(0x11c2)]=[_0x313a4d(0x10e8),'$q',_0x313a4d(0x1fe4),'api','queueCampaign',_0x313a4d(0x214b),_0x313a4d(0xa87),_0x313a4d(0x2514)];function _0x3db5de(_0x40a547,_0x49236b,_0xd6f8b6,_0x3e6645,_0x57daec,_0x4f3b0d,_0x23aac5,_0x2e854e){const _0x14fd2c=_0x313a4d,_0x7c786=this;_0x7c786['currentUser']=_0x23aac5[_0x14fd2c(0xb12)](),_0x7c786[_0x14fd2c(0x1f0f)]=_0x57daec,_0x7c786[_0x14fd2c(0x2514)]=_0x2e854e,_0x7c786[_0x14fd2c(0x188d)]=0x0,_0x7c786[_0x14fd2c(0x1fd6)]=[],_0x7c786[_0x14fd2c(0xc4e)]=[],_0x7c786[_0x14fd2c(0x1ecf)]=[],_0x7c786[_0x14fd2c(0x2e8)]=[],_0x7c786[_0x14fd2c(0xa65)]=[],_0x7c786[_0x14fd2c(0x132)]=![],_0x7c786['dualMultiselectOptions']={'readOnly':!_0x7c786['crudPermissions'][_0x14fd2c(0x15f4)],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':'name','line1':_0x14fd2c(0x19eb),'line2':'','line3':'','labelAll':_0x4f3b0d[_0x14fd2c(0xde)](_0x14fd2c(0x218d)),'labelSelected':_0x4f3b0d[_0x14fd2c(0xde)](_0x14fd2c(0x1ae7)),'transferCallback':function(_0x2e4c08,_0x38b2a0){const _0x40f06f=_0x14fd2c;_0x38b2a0?_0x2e4c08[_0x40f06f(0x1df5)](function(_0x363fbf){const _0x1d461f=_0x40f06f;_0x363fbf[_0x1d461f(0x188d)]=undefined;}):_0x2e4c08['forEach'](function(_0x408029){const _0x5e018c=_0x40f06f;_0x408029[_0x5e018c(0x188d)]=_0x5e018c(0x2505)+_0x7c786['penalty'];});const _0x142941=_0x3f65c0()['xorBy'](_0x7c786[_0x40f06f(0xa65)],_0x7c786['selectedItems'],'id');_0x7c786['pendingChanges']=_0x3f65c0()[_0x40f06f(0x2635)](_0x142941)?![]:!![];}},_0x7c786['onInit']=_0x104abc,_0x7c786['saveTeams']=_0x5dd0e5,_0x7c786['closeDialog']=_0x4bd4b8;function _0x104abc(){const _0x23e068=_0x14fd2c;return _0x23aac5[_0x23e068(0x23e0)](_0x23e068(0x174b))?_0x14feb7()[_0x23e068(0x129e)](function(_0x236c3a){const _0x13d526=_0x23e068;_0xd6f8b6['error']({'title':_0x236c3a[_0x13d526(0x107b)]?_0x13d526(0x262a)+_0x236c3a['status']+_0x13d526(0x1315)+_0x236c3a['statusText']:'SYSTEM:GET_TEAMS','msg':_0x236c3a['status']?JSON[_0x13d526(0x10bb)](_0x236c3a['data']):_0x236c3a['toString']()});}):_0xb59a83()[_0x23e068(0x146b)](function(_0x550d2a){const _0x5d8224=_0x23e068;return _0x7c786[_0x5d8224(0x2146)]=_0x550d2a,_0x14feb7();})[_0x23e068(0x129e)](function(_0x1ceacd){const _0x43b343=_0x23e068;_0xd6f8b6[_0x43b343(0x1980)]({'title':_0x1ceacd['status']?_0x43b343(0x262a)+_0x1ceacd['status']+_0x43b343(0x1315)+_0x1ceacd[_0x43b343(0x167f)]:_0x43b343(0x5a5),'msg':_0x1ceacd[_0x43b343(0x107b)]?JSON[_0x43b343(0x10bb)](_0x1ceacd[_0x43b343(0x524)]):_0x1ceacd['toString']()});});}function _0xb59a83(){return _0x49236b(function(_0x5e733a,_0xe95f07){const _0x28ab34=a0_0x3bb9;_0x3e6645['userProfileSection'][_0x28ab34(0x16b4)]({'userProfileId':_0x7c786['currentUser'][_0x28ab34(0x209a)],'name':_0x28ab34(0x21ae)})[_0x28ab34(0x2945)][_0x28ab34(0x146b)](function(_0x4ff805){const _0x31f9c2=_0x28ab34,_0x37c944=_0x4ff805&&_0x4ff805['rows']?_0x4ff805[_0x31f9c2(0x19c7)][0x0]:null;_0x5e733a(_0x37c944);})[_0x28ab34(0x129e)](function(_0x325180){_0xe95f07(_0x325180);});});}function _0x14feb7(){return _0x49236b(function(_0x3fa666,_0x42b394){const _0x53dd71=a0_0x3bb9;return _0x114f81()[_0x53dd71(0x146b)](function(_0x572ba9){const _0x4f8662=_0x53dd71;return _0x7c786['items']=_0x572ba9[_0x4f8662(0x19c7)]?_0x572ba9['rows']:[],_0x23aac5['hasRole']('admin')?_0x572ba9:_0x7c786['section']?_0x7c786[_0x4f8662(0x2146)][_0x4f8662(0x11d2)]?_0x572ba9:_0x34bdfe():null;})[_0x53dd71(0x146b)](function(_0x55c9d7){const _0x5f4bdc=_0x53dd71,_0x26c083=_0x55c9d7&&_0x55c9d7[_0x5f4bdc(0x19c7)]?_0x55c9d7[_0x5f4bdc(0x19c7)]:[];return _0x7c786[_0x5f4bdc(0xc4e)]=_0x3f65c0()['map'](_0x26c083,function(_0x1fb0ce){const _0x4040cb=_0x5f4bdc;return _0x3f65c0()[_0x4040cb(0xc84)](_0x7c786[_0x4040cb(0x1fd6)],{'id':_0x23aac5[_0x4040cb(0x23e0)]('admin')||_0x7c786['section']['autoAssociation']?_0x1fb0ce['id']:_0x1fb0ce[_0x4040cb(0x18b8)]});}),_0x7c786[_0x5f4bdc(0x1fd6)]['forEach'](function(_0x469189){const _0x532277=_0x5f4bdc,_0x2bdef2=_0x3f65c0()['find'](_0x7c786[_0x532277(0xc4e)],{'id':_0x469189['id']});_0x23aac5[_0x532277(0x23e0)](_0x532277(0x174b))?_0x469189['isValid']=!![]:_0x469189['isValid']=typeof _0x2bdef2!=='undefined'?!![]:![];}),_0x1633e6();})[_0x53dd71(0x146b)](function(_0x540b26){const _0x3cc30f=_0x53dd71,_0x5d82fb=_0x540b26&&_0x540b26[_0x3cc30f(0x19c7)]?_0x540b26[_0x3cc30f(0x19c7)]:[];_0x7c786[_0x3cc30f(0x1ecf)]=_0x3f65c0()[_0x3cc30f(0x205)](_0x5d82fb,function(_0x293784){const _0x21f5d1=_0x3cc30f;return _0x3f65c0()[_0x21f5d1(0xc84)](_0x7c786[_0x21f5d1(0x1fd6)],{'id':_0x293784['id']});}),_0x7c786[_0x3cc30f(0xa65)]=angular['copy'](_0x7c786[_0x3cc30f(0x1ecf)]),_0x7c786[_0x3cc30f(0x1f8a)]['selectedItems']=_0x7c786['selectedItems'],_0x7c786['dualMultiselectOptions']['items']=_0x3f65c0()['differenceBy'](_0x7c786['allowedItems'],_0x7c786[_0x3cc30f(0x1f8a)]['selectedItems'],'id'),_0x3fa666();})[_0x53dd71(0x129e)](function(_0x4e623b){_0x42b394(_0x4e623b);});});}function _0x34bdfe(){return _0x49236b(function(_0x2eec35,_0xbba418){const _0x5d445e=a0_0x3bb9;return _0x3e6645[_0x5d445e(0xdcc)][_0x5d445e(0x16b4)]({'sectionId':_0x7c786[_0x5d445e(0x2146)]['id'],'nolimit':!![]})[_0x5d445e(0x2945)][_0x5d445e(0x146b)](function(_0x37bde5){_0x2eec35(_0x37bde5);})[_0x5d445e(0x129e)](function(_0x539267){_0xbba418(_0x539267);});});}function _0x1633e6(){return _0x49236b(function(_0x522280,_0x4d55ad){const _0x3ff706=a0_0x3bb9;return _0x3e6645[_0x3ff706(0x1446)][_0x3ff706(0x11d1)]({'id':_0x7c786['queueCampaign']['id'],'fields':_0x3ff706(0x7a7),'nolimit':!![]})[_0x3ff706(0x2945)]['then'](function(_0x1c0381){_0x522280(_0x1c0381);})['catch'](function(_0x1197c4){_0x4d55ad(_0x1197c4);});});}function _0x114f81(){return _0x49236b(function(_0xeaf545,_0xefb47){const _0x557898=a0_0x3bb9;return _0x3e6645[_0x557898(0x23f1)]['get']({'fields':_0x557898(0x7a7),'nolimit':!![]})['$promise'][_0x557898(0x146b)](function(_0x1fbc99){_0xeaf545(_0x1fbc99);})[_0x557898(0x129e)](function(_0x4fc8ff){_0xefb47(_0x4fc8ff);});});}function _0x292aff(_0x4c5c15){return _0x49236b(function(_0x3dc41e,_0x1fc645){const _0x1a44a1=a0_0x3bb9;if(_0x3f65c0()[_0x1a44a1(0x2635)](_0x4c5c15))_0x3dc41e();else{const _0x3606ef=_0x3f65c0()['map'](_0x4c5c15,function(_0x42f203){const _0x103517=_0x1a44a1;return{'id':_0x42f203['id'],'penalty':_0x3f65c0()[_0x103517(0x15a3)](_0x42f203[_0x103517(0x188d)],_0x103517(0x2505))};});return _0x3e6645['voiceQueue']['addTeams']({'id':_0x7c786[_0x1a44a1(0x1f0f)]['id'],'teams':_0x3606ef})[_0x1a44a1(0x2945)][_0x1a44a1(0x146b)](function(){_0x3dc41e();})[_0x1a44a1(0x129e)](function(_0x515eef){_0x1fc645(_0x515eef);});}});}function _0x24609a(_0x26f87d){return _0x49236b(function(_0x213852,_0x24e0c9){const _0x520ac4=a0_0x3bb9;_0x3f65c0()['isEmpty'](_0x26f87d)?_0x213852():_0x3e6645[_0x520ac4(0x1446)][_0x520ac4(0xfa4)]({'id':_0x7c786['queueCampaign']['id'],'ids':_0x3f65c0()['map'](_0x26f87d,'id')})[_0x520ac4(0x2945)][_0x520ac4(0x146b)](function(){_0x213852();})['catch'](function(_0x460096){_0x24e0c9(_0x460096);});});}function _0x5dd0e5(){const _0x59957c=_0x14fd2c,_0x8490d3=_0x3f65c0()[_0x59957c(0x2796)](_0x7c786['startingSelectedItems'],_0x7c786[_0x59957c(0x1ecf)],'id'),_0x37a1bd=_0x3f65c0()[_0x59957c(0x2796)](_0x7c786[_0x59957c(0x1ecf)],_0x7c786['startingSelectedItems'],'id');return _0x24609a(_0x8490d3)[_0x59957c(0x146b)](function(){return _0x292aff(_0x37a1bd);})[_0x59957c(0x146b)](function(){const _0x38ffd7=_0x59957c;_0x7c786[_0x38ffd7(0x132)]=![],_0x7c786['startingAllowedItems']=angular[_0x38ffd7(0x235a)](_0x7c786['allowedItems']),_0x7c786['startingSelectedItems']=angular[_0x38ffd7(0x235a)](_0x7c786[_0x38ffd7(0x1ecf)]),_0xd6f8b6['success']({'title':'SUCCESS','msg':_0x38ffd7(0xf08)});})['catch'](function(_0x39b721){const _0x3f5d86=_0x59957c;_0xd6f8b6['error']({'title':_0x39b721['status']?'API:'+_0x39b721[_0x3f5d86(0x107b)]+_0x3f5d86(0x1315)+_0x39b721[_0x3f5d86(0x167f)]:_0x3f5d86(0xa56),'msg':_0x39b721[_0x3f5d86(0x107b)]?JSON[_0x3f5d86(0x10bb)](_0x39b721[_0x3f5d86(0x524)]):_0x39b721[_0x3f5d86(0xd5f)]()});});}function _0x4bd4b8(){const _0x263c09=_0x14fd2c;_0x40a547[_0x263c09(0x2458)]();}}const _0x16032b=_0x3db5de;;const _0x3f6aea=_0x4acfac['p']+_0x313a4d(0x8a4);;const _0x2010aa=_0x4acfac['p']+_0x313a4d(0xf64);;const _0xaffb8e=_0x4acfac['p']+'src/js/modules/main/apps/motiondialer/views/queueCampaigns/edit/blacklistadd/blacklistadd.html/blacklistadd.html';;const _0x412655=_0x4acfac['p']+_0x313a4d(0x1ae);;const _0x1afd81=_0x4acfac['p']+_0x313a4d(0x207c);;_0x13a4f8['$inject']=[_0x313a4d(0x1862),_0x313a4d(0xd08),'$mdDialog',_0x313a4d(0x4d8),_0x313a4d(0x214b),_0x313a4d(0x2690),_0x313a4d(0x15b9),_0x313a4d(0x247f),_0x313a4d(0x1fe4),_0x313a4d(0xa87),_0x313a4d(0x1f0f),'userProfileSection'];function _0x13a4f8(_0x4f3689,_0x167f91,_0x28b2d6,_0x26e7ca,_0x1569e0,_0x4f6916,_0xa73ee4,_0x4f590d,_0x2abc97,_0x26d6e0,_0xd4f7a0,_0x11154e){const _0x35749c=_0x313a4d,_0x36c4d7=this;_0x36c4d7[_0x35749c(0x2321)]=_0x26d6e0[_0x35749c(0xb12)](),_0x36c4d7[_0x35749c(0x2690)]=_0x4f6916,_0x36c4d7['setting']=_0xa73ee4,_0x36c4d7[_0x35749c(0x2251)]=_0x36c4d7['setting'][_0x35749c(0x976)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x36c4d7[_0x35749c(0x1002)]=_0x167f91[_0x35749c(0x2414)]()+_0x35749c(0xb0e)+_0x167f91['host'](),_0x36c4d7['queueCampaign']=_0xd4f7a0||_0x4f3689[_0x35749c(0x16a)]['queueCampaign']||{},_0x36c4d7[_0x35749c(0x1366)]=_0x11154e&&_0x11154e[_0x35749c(0x51c)]==0x1?_0x11154e[_0x35749c(0x19c7)][0x0]:null,_0x36c4d7[_0x35749c(0x2514)]=_0x26d6e0[_0x35749c(0xe60)](_0x36c4d7['userProfileSection']?_0x36c4d7['userProfileSection'][_0x35749c(0x2514)]:null),_0x36c4d7[_0x35749c(0x855)]={},_0x36c4d7['selectedTab']=_0x4f3689['params']['tab']||0x0,_0x36c4d7['clonedialog']=_0x3fd8ab,_0x36c4d7['listadddialog']=_0x1f6f99,_0x36c4d7[_0x35749c(0x1f45)]=_0x123918,_0x36c4d7[_0x35749c(0x244)]=_0x574bfe,_0x36c4d7[_0x35749c(0x1027)]=_0x2a708b,_0x36c4d7[_0x35749c(0x6a9)]=_0x13b2fd,_0x36c4d7[_0x35749c(0x3a9)]=_0x5e0df5,_0x36c4d7[_0x35749c(0x861)]=_0x2abc97[_0x35749c(0x271e)],_0x36c4d7[_0x35749c(0x4cd)]=_0x230cee,_0x36c4d7[_0x35749c(0x27a9)]=_0x384822,_0x26d6e0['hasRole']('admin')?_0x4f590d[_0x35749c(0x7bd)][_0x35749c(0x16b4)]({'fields':_0x35749c(0x7a7),'nolimit':_0x35749c(0x1185)})[_0x35749c(0x2945)][_0x35749c(0x146b)](function(_0x49c6e1){const _0xee0389=_0x35749c;_0x36c4d7[_0xee0389(0x19a8)]=_0x49c6e1[_0xee0389(0x19c7)]||[];})['catch'](function(_0x5f4dd6){const _0x4527aa=_0x35749c;_0x2abc97[_0x4527aa(0x1980)]({'title':_0x5f4dd6[_0x4527aa(0x107b)]?_0x4527aa(0x262a)+_0x5f4dd6['status']+_0x4527aa(0x1315)+_0x5f4dd6[_0x4527aa(0x167f)]:'SYSTEM:GET_MUSICONHOLDS','msg':_0x5f4dd6[_0x4527aa(0x524)]?JSON[_0x4527aa(0x10bb)](_0x5f4dd6[_0x4527aa(0x524)]):_0x5f4dd6[_0x4527aa(0xd5f)]()});}):_0x4f590d[_0x35749c(0x7bd)][_0x35749c(0x16b4)]({'fields':_0x35749c(0x7a7),'nolimit':_0x35749c(0x1185)})[_0x35749c(0x2945)][_0x35749c(0x146b)](function(_0x387184){const _0x33320b=_0x35749c;_0x36c4d7[_0x33320b(0x19a8)]=_0x387184[_0x33320b(0x19c7)]||[];})[_0x35749c(0x146b)](function(){const _0x275cf0=_0x35749c;return _0x4f590d[_0x275cf0(0x1366)]['get']({'userProfileId':_0x36c4d7[_0x275cf0(0x2321)][_0x275cf0(0x209a)],'sectionId':0x197})['$promise'];})[_0x35749c(0x146b)](function(_0x1475b3){const _0x2915d1=_0x35749c,_0x868e1e=_0x1475b3&&_0x1475b3[_0x2915d1(0x19c7)]?_0x1475b3[_0x2915d1(0x19c7)][0x0]:null;if(!_0x868e1e)return _0x4f590d[_0x2915d1(0x7bd)][_0x2915d1(0x16b4)]({'fields':'id,name','nolimit':'true','defaultEntry':0x1})[_0x2915d1(0x2945)][_0x2915d1(0x146b)](function(_0xc00b23){const _0x3fd055=_0x2915d1;_0x36c4d7[_0x3fd055(0x19a8)]=_0xc00b23[_0x3fd055(0x19c7)]||[];});else{if(!_0x868e1e[_0x2915d1(0x11d2)])return _0x4f590d[_0x2915d1(0xdcc)][_0x2915d1(0x16b4)]({'sectionId':_0x868e1e['id']})[_0x2915d1(0x2945)][_0x2915d1(0x146b)](function(_0x1c25a0){const _0x4b2165=_0x2915d1,_0x936799=_0x3f65c0()[_0x4b2165(0x205)](_0x1c25a0[_0x4b2165(0x19c7)],function(_0x2aed17){const _0x2f71a3=_0x4b2165;return _0x3f65c0()[_0x2f71a3(0xc84)](_0x36c4d7[_0x2f71a3(0x19a8)],{'id':_0x2aed17[_0x2f71a3(0x18b8)]});});let _0x5e7e8a=null;_0x36c4d7[_0x4b2165(0x1f0f)]&&(_0x5e7e8a=_0x3f65c0()[_0x4b2165(0xc84)](_0x36c4d7[_0x4b2165(0x19a8)],{'name':_0x36c4d7[_0x4b2165(0x1f0f)][_0x4b2165(0x23ee)]}));if(_0x5e7e8a&&!_0x3f65c0()['some'](_0x936799,['id',_0x5e7e8a['id']])){const _0x33d446=_0x3f65c0()['find'](_0x36c4d7[_0x4b2165(0x19a8)],{'id':_0x5e7e8a['id']});_0x33d446['canSelect']=![],_0x936799['push'](_0x33d446);}_0x36c4d7[_0x4b2165(0x19a8)]=_0x936799;});}})[_0x35749c(0x129e)](function(_0xc320b3){const _0x24f0b1=_0x35749c;_0x2abc97[_0x24f0b1(0x1980)]({'title':_0xc320b3['status']?_0x24f0b1(0x262a)+_0xc320b3['status']+_0x24f0b1(0x1315)+_0xc320b3[_0x24f0b1(0x167f)]:_0x24f0b1(0x9e2),'msg':_0xc320b3[_0x24f0b1(0x524)]?JSON['stringify'](_0xc320b3[_0x24f0b1(0x524)]):_0xc320b3[_0x24f0b1(0xd5f)]()});}),_0x26d6e0[_0x35749c(0x23e0)](_0x35749c(0x174b))?_0x4f590d[_0x35749c(0x279f)]['get']({'fields':'id,name','sort':'name'})[_0x35749c(0x2945)][_0x35749c(0x146b)](function(_0x39595e){const _0x4e84c7=_0x35749c;_0x36c4d7[_0x4e84c7(0x2433)]=_0x39595e[_0x4e84c7(0x19c7)]||[];})[_0x35749c(0x129e)](function(_0x2b1d34){const _0x164fc=_0x35749c;_0x2abc97[_0x164fc(0x1980)]({'title':_0x2b1d34[_0x164fc(0x107b)]?'API:'+_0x2b1d34[_0x164fc(0x107b)]+_0x164fc(0x1315)+_0x2b1d34['statusText']:_0x164fc(0xfc0),'msg':_0x2b1d34[_0x164fc(0x524)]?JSON['stringify'](_0x2b1d34[_0x164fc(0x524)]):_0x2b1d34['toString']()});}):_0x4f590d[_0x35749c(0x279f)][_0x35749c(0x16b4)]({'fields':_0x35749c(0x7a7),'sort':'name'})[_0x35749c(0x2945)][_0x35749c(0x146b)](function(_0x2dcf6f){const _0x3f960e=_0x35749c;_0x36c4d7[_0x3f960e(0x2433)]=_0x2dcf6f['rows']||[];})[_0x35749c(0x146b)](function(){const _0x7cf064=_0x35749c;return _0x4f590d[_0x7cf064(0x1366)]['get']({'userProfileId':_0x36c4d7[_0x7cf064(0x2321)][_0x7cf064(0x209a)],'sectionId':0x3f3})[_0x7cf064(0x2945)];})[_0x35749c(0x146b)](function(_0x246a2c){const _0xa3b3c6=_0x35749c,_0x15aa67=_0x246a2c&&_0x246a2c['rows']?_0x246a2c[_0xa3b3c6(0x19c7)][0x0]:null;if(!_0x15aa67){const _0x4716b9=[];let _0x594b9d=null;_0x36c4d7[_0xa3b3c6(0x1f0f)]&&(_0x594b9d=_0x3f65c0()['find'](_0x36c4d7[_0xa3b3c6(0x2433)],{'id':Number(_0x36c4d7[_0xa3b3c6(0x1f0f)][_0xa3b3c6(0x1b77)])}));for(let _0x86f603=0x0;_0x86f603<_0x36c4d7[_0xa3b3c6(0x2433)][_0xa3b3c6(0x402)];_0x86f603++){_0x594b9d&&_0x36c4d7['trunks'][_0x86f603]['id']===_0x594b9d['id']&&(_0x36c4d7[_0xa3b3c6(0x2433)][_0x86f603][_0xa3b3c6(0x8ff)]=![],_0x4716b9['push'](_0x36c4d7[_0xa3b3c6(0x2433)][_0x86f603]));}_0x36c4d7['trunks']=_0x4716b9;}else{if(!_0x15aa67['autoAssociation'])return _0x4f590d['userProfileResource']['get']({'sectionId':_0x15aa67['id']})[_0xa3b3c6(0x2945)]['then'](function(_0x20647d){const _0x46a830=_0xa3b3c6,_0xadf144=_0x3f65c0()[_0x46a830(0x205)](_0x20647d['rows'],function(_0x174ccd){const _0x39097c=_0x46a830;return _0x3f65c0()[_0x39097c(0xc84)](_0x36c4d7[_0x39097c(0x2433)],{'id':_0x174ccd['resourceId']});});let _0x1470f8=null;_0x36c4d7[_0x46a830(0x1f0f)]&&(_0x1470f8=_0x3f65c0()[_0x46a830(0xc84)](_0x36c4d7[_0x46a830(0x2433)],{'id':Number(_0x36c4d7[_0x46a830(0x1f0f)][_0x46a830(0x1b77)])}));if(_0x1470f8&&!_0x3f65c0()['some'](_0xadf144,['id',_0x1470f8['id']])){const _0x34e908=_0x3f65c0()[_0x46a830(0xc84)](_0x36c4d7[_0x46a830(0x2433)],{'id':_0x1470f8['id']});_0x34e908[_0x46a830(0x8ff)]=![],_0xadf144[_0x46a830(0x1f47)](_0x34e908);}_0x36c4d7[_0x46a830(0x2433)]=_0xadf144;});}})[_0x35749c(0x129e)](function(_0x59b9c8){const _0x2876bc=_0x35749c;_0x2abc97[_0x2876bc(0x1980)]({'title':_0x59b9c8[_0x2876bc(0x107b)]?_0x2876bc(0x262a)+_0x59b9c8[_0x2876bc(0x107b)]+_0x2876bc(0x1315)+_0x59b9c8[_0x2876bc(0x167f)]:_0x2876bc(0x2436),'msg':_0x59b9c8[_0x2876bc(0x524)]?JSON['stringify'](_0x59b9c8['data']):_0x59b9c8[_0x2876bc(0xd5f)]()});}),_0x26d6e0[_0x35749c(0x23e0)](_0x35749c(0x174b))?_0x4f590d[_0x35749c(0x9b1)]['get']({'fields':_0x35749c(0x7a7),'sort':_0x35749c(0x19eb)})[_0x35749c(0x2945)]['then'](function(_0x178332){const _0x5a4d1d=_0x35749c;_0x36c4d7[_0x5a4d1d(0x1991)]=_0x178332['rows']||[];})[_0x35749c(0x129e)](function(_0x35c729){const _0x1246da=_0x35749c;_0x2abc97[_0x1246da(0x1980)]({'title':_0x35c729[_0x1246da(0x107b)]?'API:'+_0x35c729[_0x1246da(0x107b)]+_0x1246da(0x1315)+_0x35c729[_0x1246da(0x167f)]:_0x1246da(0x1764),'msg':_0x35c729['data']?JSON[_0x1246da(0x10bb)](_0x35c729['data']):_0x35c729[_0x1246da(0xd5f)]()});}):_0x4f590d['squareProject']['get']({'fields':'id,name','sort':_0x35749c(0x19eb)})[_0x35749c(0x2945)][_0x35749c(0x146b)](function(_0x573cd1){_0x36c4d7['projects']=_0x573cd1['rows']||[];})[_0x35749c(0x146b)](function(){const _0x11304b=_0x35749c;return _0x4f590d[_0x11304b(0x1366)][_0x11304b(0x16b4)]({'userProfileId':_0x36c4d7[_0x11304b(0x2321)][_0x11304b(0x209a)],'sectionId':0x44f})[_0x11304b(0x2945)];})[_0x35749c(0x146b)](function(_0xfdea82){const _0x6fd3b0=_0x35749c,_0x10b286=_0xfdea82&&_0xfdea82[_0x6fd3b0(0x19c7)]?_0xfdea82[_0x6fd3b0(0x19c7)][0x0]:null;if(!_0x10b286){const _0x4576cb=[];let _0xe88ea3=null;_0x36c4d7[_0x6fd3b0(0x1f0f)]&&(_0xe88ea3=_0x3f65c0()[_0x6fd3b0(0xc84)](_0x36c4d7[_0x6fd3b0(0x1991)],{'name':_0x36c4d7[_0x6fd3b0(0x1f0f)]['dialQueueProject']}));for(let _0x4f58b7=0x0;_0x4f58b7<_0x36c4d7[_0x6fd3b0(0x1991)][_0x6fd3b0(0x402)];_0x4f58b7++){_0xe88ea3&&_0x36c4d7[_0x6fd3b0(0x1991)][_0x4f58b7]['id']===_0xe88ea3['id']&&(_0x36c4d7[_0x6fd3b0(0x1991)][_0x4f58b7]['canSelect']=![],_0x4576cb['push'](_0x36c4d7[_0x6fd3b0(0x1991)][_0x4f58b7]));}_0x36c4d7[_0x6fd3b0(0x1991)]=_0x4576cb;}else{if(!_0x10b286['autoAssociation'])return _0x4f590d['userProfileResource'][_0x6fd3b0(0x16b4)]({'sectionId':_0x10b286['id']})[_0x6fd3b0(0x2945)][_0x6fd3b0(0x146b)](function(_0x619981){const _0x31e5eb=_0x6fd3b0,_0x4d11ff=_0x3f65c0()['map'](_0x619981['rows'],function(_0x2d45e7){const _0x506c6a=a0_0x3bb9;return _0x3f65c0()[_0x506c6a(0xc84)](_0x36c4d7['projects'],{'id':_0x2d45e7[_0x506c6a(0x18b8)]});});let _0x43580f=null;_0x36c4d7[_0x31e5eb(0x1f0f)]&&(_0x43580f=_0x3f65c0()[_0x31e5eb(0xc84)](_0x36c4d7[_0x31e5eb(0x1991)],{'name':_0x36c4d7['queueCampaign'][_0x31e5eb(0xb0b)]}));if(_0x43580f&&!_0x3f65c0()[_0x31e5eb(0x1360)](_0x4d11ff,['id',_0x43580f['id']])){const _0x382d0c=_0x3f65c0()['find'](_0x36c4d7['projects'],{'id':_0x43580f['id']});_0x382d0c[_0x31e5eb(0x8ff)]=![],_0x4d11ff[_0x31e5eb(0x1f47)](_0x382d0c);}_0x36c4d7[_0x31e5eb(0x1991)]=_0x4d11ff;});}})[_0x35749c(0x129e)](function(_0x2d9026){const _0x4a8600=_0x35749c;_0x2abc97[_0x4a8600(0x1980)]({'title':_0x2d9026[_0x4a8600(0x107b)]?_0x4a8600(0x262a)+_0x2d9026[_0x4a8600(0x107b)]+_0x4a8600(0x1315)+_0x2d9026['statusText']:_0x4a8600(0x193b),'msg':_0x2d9026[_0x4a8600(0x524)]?JSON[_0x4a8600(0x10bb)](_0x2d9026['data']):_0x2d9026[_0x4a8600(0xd5f)]()});}),_0x26d6e0[_0x35749c(0x23e0)]('admin')?_0x4f590d[_0x35749c(0x2765)][_0x35749c(0x16b4)]({'fields':_0x35749c(0x7a7),'sort':'name','IntervalId':_0x35749c(0x203c)})[_0x35749c(0x2945)][_0x35749c(0x146b)](function(_0x39b23b){const _0x512368=_0x35749c;_0x36c4d7[_0x512368(0x2765)]=_0x39b23b[_0x512368(0x19c7)]||[];})[_0x35749c(0x129e)](function(_0x3f2d17){const _0x443f83=_0x35749c;_0x2abc97[_0x443f83(0x1980)]({'title':_0x3f2d17[_0x443f83(0x107b)]?_0x443f83(0x262a)+_0x3f2d17['status']+_0x443f83(0x1315)+_0x3f2d17[_0x443f83(0x167f)]:_0x443f83(0x12c5),'msg':_0x3f2d17[_0x443f83(0x524)]?JSON[_0x443f83(0x10bb)](_0x3f2d17[_0x443f83(0x524)]):_0x3f2d17[_0x443f83(0xd5f)]()});}):_0x4f590d[_0x35749c(0x2765)]['get']({'fields':_0x35749c(0x7a7),'sort':'name','IntervalId':'null'})['$promise']['then'](function(_0x64d7d4){const _0x31a388=_0x35749c;_0x36c4d7['interval']=_0x64d7d4[_0x31a388(0x19c7)]||[];})['then'](function(){const _0x52ad99=_0x35749c;return _0x4f590d[_0x52ad99(0x1366)]['get']({'userProfileId':_0x36c4d7[_0x52ad99(0x2321)][_0x52ad99(0x209a)],'sectionId':0x3ec})[_0x52ad99(0x2945)];})[_0x35749c(0x146b)](function(_0x4b86dc){const _0x3440ad=_0x35749c,_0x2c4b51=_0x4b86dc&&_0x4b86dc[_0x3440ad(0x19c7)]?_0x4b86dc[_0x3440ad(0x19c7)][0x0]:null;if(!_0x2c4b51){const _0x24c97a=[];let _0x4ac737=null;_0x36c4d7[_0x3440ad(0x1f0f)]&&(_0x4ac737=_0x3f65c0()[_0x3440ad(0xc84)](_0x36c4d7[_0x3440ad(0x2765)],{'id':Number(_0x36c4d7[_0x3440ad(0x1f0f)][_0x3440ad(0x1ff2)])}));for(let _0x27687f=0x0;_0x27687f<_0x36c4d7['interval'][_0x3440ad(0x402)];_0x27687f++){_0x4ac737&&_0x36c4d7[_0x3440ad(0x2765)][_0x27687f]['id']===_0x4ac737['id']&&(_0x36c4d7[_0x3440ad(0x2765)][_0x27687f][_0x3440ad(0x8ff)]=![],_0x24c97a['push'](_0x36c4d7['interval'][_0x27687f]));}_0x36c4d7['interval']=_0x24c97a;}else{if(!_0x2c4b51[_0x3440ad(0x11d2)])return _0x4f590d[_0x3440ad(0xdcc)][_0x3440ad(0x16b4)]({'sectionId':_0x2c4b51['id']})[_0x3440ad(0x2945)][_0x3440ad(0x146b)](function(_0xe9a8a){const _0x270b51=_0x3440ad,_0x4d5d62=_0x3f65c0()[_0x270b51(0x205)](_0xe9a8a[_0x270b51(0x19c7)],function(_0x530e87){const _0x44e2b7=_0x270b51;return _0x3f65c0()[_0x44e2b7(0xc84)](_0x36c4d7['interval'],{'id':_0x530e87[_0x44e2b7(0x18b8)]});});let _0x266a37=null;_0x36c4d7['queueCampaign']&&(_0x266a37=_0x3f65c0()[_0x270b51(0xc84)](_0x36c4d7[_0x270b51(0x2765)],{'id':Number(_0x36c4d7['queueCampaign'][_0x270b51(0x1ff2)])}));if(_0x266a37&&!_0x3f65c0()['some'](_0x4d5d62,['id',_0x266a37['id']])){const _0x549293=_0x3f65c0()[_0x270b51(0xc84)](_0x36c4d7[_0x270b51(0x2765)],{'id':_0x266a37['id']});_0x549293[_0x270b51(0x8ff)]=![],_0x4d5d62[_0x270b51(0x1f47)](_0x549293);}_0x36c4d7[_0x270b51(0x2765)]=_0x4d5d62;});}})[_0x35749c(0x129e)](function(_0x4baad5){const _0x56ff06=_0x35749c;_0x2abc97[_0x56ff06(0x1980)]({'title':_0x4baad5['status']?_0x56ff06(0x262a)+_0x4baad5[_0x56ff06(0x107b)]+_0x56ff06(0x1315)+_0x4baad5[_0x56ff06(0x167f)]:_0x56ff06(0x8b6),'msg':_0x4baad5[_0x56ff06(0x524)]?JSON[_0x56ff06(0x10bb)](_0x4baad5[_0x56ff06(0x524)]):_0x4baad5[_0x56ff06(0xd5f)]()});}),_0x26d6e0[_0x35749c(0x23e0)](_0x35749c(0x174b))?_0x4f590d[_0x35749c(0x1e3e)]['get']({'fields':_0x35749c(0x69a),'sort':_0x35749c(0x19eb),'nolimit':_0x35749c(0x1185)})[_0x35749c(0x2945)][_0x35749c(0x146b)](function(_0x4a5d69){const _0x20d964=_0x35749c;_0x36c4d7[_0x20d964(0x23bb)]=_0x4a5d69[_0x20d964(0x19c7)]||[];})[_0x35749c(0x129e)](function(_0x8ae5c7){const _0x22064a=_0x35749c;_0x2abc97['error']({'title':_0x8ae5c7[_0x22064a(0x107b)]?'API:'+_0x8ae5c7[_0x22064a(0x107b)]+_0x22064a(0x1315)+_0x8ae5c7[_0x22064a(0x167f)]:_0x22064a(0x1e82),'msg':_0x8ae5c7[_0x22064a(0x524)]?JSON[_0x22064a(0x10bb)](_0x8ae5c7[_0x22064a(0x524)]):_0x8ae5c7['toString']()});}):_0x4f590d[_0x35749c(0x1e3e)][_0x35749c(0x16b4)]({'fields':_0x35749c(0x69a),'sort':'name','nolimit':'true'})[_0x35749c(0x2945)][_0x35749c(0x146b)](function(_0x443bbe){const _0x269711=_0x35749c;_0x36c4d7[_0x269711(0x23bb)]=_0x443bbe['rows']||[];})[_0x35749c(0x146b)](function(){const _0x42ffd9=_0x35749c;return _0x4f590d[_0x42ffd9(0x1366)][_0x42ffd9(0x16b4)]({'userProfileId':_0x36c4d7[_0x42ffd9(0x2321)][_0x42ffd9(0x209a)],'sectionId':0x3ed})['$promise'];})[_0x35749c(0x146b)](function(_0x25727a){const _0x20e03f=_0x35749c,_0x11afd8=_0x25727a&&_0x25727a[_0x20e03f(0x19c7)]?_0x25727a[_0x20e03f(0x19c7)][0x0]:null;if(!_0x11afd8)_0x36c4d7['pauses']=[];else{if(!_0x11afd8[_0x20e03f(0x11d2)])return _0x4f590d[_0x20e03f(0xdcc)][_0x20e03f(0x16b4)]({'sectionId':_0x11afd8['id']})['$promise'][_0x20e03f(0x146b)](function(_0x39ce18){const _0x3427cd=_0x20e03f,_0x28c3f6=_0x3f65c0()[_0x3427cd(0x205)](_0x39ce18[_0x3427cd(0x19c7)],function(_0x5987bf){const _0x48d1db=_0x3427cd;return _0x3f65c0()[_0x48d1db(0xc84)](_0x36c4d7[_0x48d1db(0x23bb)],{'id':_0x5987bf['resourceId']});});_0x36c4d7[_0x3427cd(0x23bb)]['forEach'](function(_0x593658){const _0x435270=_0x3427cd;!_0x3f65c0()['some'](_0x28c3f6,['id',_0x593658['id']])&&(_0x593658['canSelect']=![]),_0x28c3f6[_0x435270(0x1f47)](_0x593658);}),_0x36c4d7[_0x3427cd(0x23bb)]=_0x28c3f6;});}})[_0x35749c(0x129e)](function(_0x5500c7){const _0x488ea8=_0x35749c;_0x2abc97['error']({'title':_0x5500c7[_0x488ea8(0x107b)]?_0x488ea8(0x262a)+_0x5500c7[_0x488ea8(0x107b)]+_0x488ea8(0x1315)+_0x5500c7['statusText']:'SYSTEM:GETpauses','msg':_0x5500c7['data']?JSON[_0x488ea8(0x10bb)](_0x5500c7[_0x488ea8(0x524)]):_0x5500c7[_0x488ea8(0xd5f)]()});});function _0x3fd8ab(_0x50bde2,_0x4b3b92){const _0x3e5cc1=_0x35749c;_0x28b2d6['show']({'controller':_0x3e5cc1(0x256a),'controllerAs':'vm','templateUrl':_0x3f6aea,'parent':angular[_0x3e5cc1(0x1853)](_0x26e7ca[_0x3e5cc1(0x2586)]),'targetEvent':_0x4b3b92,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x50bde2,'queueCampaigns':_0x36c4d7[_0x3e5cc1(0x17c4)]?_0x36c4d7[_0x3e5cc1(0x17c4)][_0x3e5cc1(0x19c7)]:[],'crudPermissions':_0x36c4d7[_0x3e5cc1(0x2514)]}});}function _0x1f6f99(_0x38be0c,_0x3d97d8){const _0x5859e2=_0x35749c;_0x28b2d6['show']({'controller':_0x5859e2(0x1b9d),'controllerAs':'vm','templateUrl':_0x2010aa,'parent':angular[_0x5859e2(0x1853)](_0x26e7ca[_0x5859e2(0x2586)]),'targetEvent':_0x3d97d8,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x38be0c,'queueCampaigns':_0x36c4d7[_0x5859e2(0x17c4)]?_0x36c4d7[_0x5859e2(0x17c4)]['rows']:[],'crudPermissions':_0x36c4d7[_0x5859e2(0x2514)]}});}function _0x123918(_0x3d504c,_0x2dddb4){const _0x3e8f1e=_0x35749c;_0x28b2d6['show']({'controller':_0x3e8f1e(0x214),'controllerAs':'vm','templateUrl':_0xaffb8e,'parent':angular[_0x3e8f1e(0x1853)](_0x26e7ca[_0x3e8f1e(0x2586)]),'targetEvent':_0x2dddb4,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x3d504c,'queueCampaigns':_0x36c4d7[_0x3e8f1e(0x17c4)]?_0x36c4d7[_0x3e8f1e(0x17c4)][_0x3e8f1e(0x19c7)]:[],'crudPermissions':_0x36c4d7[_0x3e8f1e(0x2514)]}});}function _0x574bfe(_0x293221,_0x166537){const _0x14e7e4=_0x35749c;_0x28b2d6[_0x14e7e4(0x2615)]({'controller':_0x14e7e4(0x26ca),'controllerAs':'vm','templateUrl':_0x412655,'parent':angular['element'](_0x26e7ca['body']),'targetEvent':_0x166537,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x293221,'queueCampaigns':_0x36c4d7[_0x14e7e4(0x17c4)]?_0x36c4d7['queueCampaigns'][_0x14e7e4(0x19c7)]:[],'crudPermissions':_0x36c4d7[_0x14e7e4(0x2514)]}});}function _0x2a708b(_0x30029f,_0x49ce03){const _0x595e18=_0x35749c;_0x28b2d6[_0x595e18(0x2615)]({'controller':_0x595e18(0x86a),'controllerAs':'vm','templateUrl':_0x4619e2,'parent':angular['element'](_0x26e7ca['body']),'targetEvent':_0x49ce03,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x30029f,'queueCampaigns':_0x36c4d7[_0x595e18(0x17c4)]?_0x36c4d7[_0x595e18(0x17c4)][_0x595e18(0x19c7)]:[],'crudPermissions':_0x36c4d7['crudPermissions'],'realtime':![]}});}function _0x27a527(_0x2dd055,_0x2b136d){const _0x19dc61=_0x35749c,_0x510432=_0x2b136d['id'];_0x4f590d[_0x19dc61(0x1446)]['removeLists']({'id':_0x2dd055,'ids':_0x510432})[_0x19dc61(0x2945)]['then'](function(){const _0x2d14fe=_0x19dc61;return _0x4f590d[_0x2d14fe(0x1446)]['addLists']({'id':_0x2dd055,'ids':_0x510432,'dialCheckDuplicateType':_0x2d14fe(0x6d2)})[_0x2d14fe(0x2945)];})[_0x19dc61(0x146b)](function(){const _0x3fdf4f=_0x19dc61;_0x2abc97[_0x3fdf4f(0x1c75)]({'title':_0x3fdf4f(0x273d),'msg':_0x3fdf4f(0x18aa)+_0x2b136d[_0x3fdf4f(0x19eb)]+_0x3fdf4f(0x1c44)});})[_0x19dc61(0x129e)](function(_0x5170b2){const _0x2c6a7b=_0x19dc61;_0x2abc97[_0x2c6a7b(0x1980)]({'title':_0x5170b2['status']?_0x2c6a7b(0x262a)+_0x5170b2[_0x2c6a7b(0x107b)]+'\x20-\x20'+_0x5170b2['statusText']:_0x2c6a7b(0x12b9),'msg':_0x5170b2[_0x2c6a7b(0x107b)]?JSON[_0x2c6a7b(0x10bb)](_0x5170b2[_0x2c6a7b(0x524)]):_0x5170b2[_0x2c6a7b(0xd5f)]()});});}function _0x13b2fd(_0x520693,_0x204fbf){const _0x262596=_0x35749c;_0x4f590d[_0x262596(0x1446)][_0x262596(0x233d)]({'id':_0x520693['id'],'fields':_0x262596(0x7a7),'nolimit':!![]})['$promise']['then'](function(_0x1a8781){const _0x2ba4e0=_0x262596;if(_0x3f65c0()[_0x2ba4e0(0x1b36)](_0x1a8781[_0x2ba4e0(0x19c7)])||_0x3f65c0()['isEmpty'](_0x1a8781[_0x2ba4e0(0x19c7)]))_0x2abc97['info']({'title':_0x2ba4e0(0x11e3)});else{if(_0x1a8781[_0x2ba4e0(0x19c7)][_0x2ba4e0(0x402)]===0x1){const _0x1de9af=_0x28b2d6[_0x2ba4e0(0x1e8a)]()[_0x2ba4e0(0x1189)](_0x2ba4e0(0x13f0)+_0x1a8781[_0x2ba4e0(0x19c7)][0x0][_0x2ba4e0(0x19eb)]+'\x20?')[_0x2ba4e0(0x1cbe)](_0x2ba4e0(0x16d3)+_0x1a8781['rows'][0x0][_0x2ba4e0(0x19eb)]+_0x2ba4e0(0x252f)+_0x2ba4e0(0x2790))[_0x2ba4e0(0x4bd)]('Reset\x20List')[_0x2ba4e0(0x1f27)](_0x204fbf)['ok']('OK')['cancel'](_0x2ba4e0(0x39a));_0x28b2d6[_0x2ba4e0(0x2615)](_0x1de9af)[_0x2ba4e0(0x146b)](function(){const _0x493aee=_0x2ba4e0;_0x27a527(_0x36c4d7[_0x493aee(0x1f0f)]['id'],_0x1a8781[_0x493aee(0x19c7)][0x0]);});}else _0x28b2d6[_0x2ba4e0(0x2615)]({'controller':_0x2ba4e0(0x26f1),'controllerAs':'vm','templateUrl':_0x1afd81,'parent':angular[_0x2ba4e0(0x1853)](_0x26e7ca[_0x2ba4e0(0x2586)]),'targetEvent':_0x204fbf,'clickOutsideToClose':![],'locals':{'queueCampaign':_0x520693,'listsCampaign':_0x1a8781?_0x1a8781[_0x2ba4e0(0x19c7)]:[]}});}})['catch'](function(_0x591073){const _0xfe8514=_0x262596;_0x2abc97[_0xfe8514(0x1980)]({'title':_0x591073[_0xfe8514(0x107b)]?'API:'+_0x591073['status']+_0xfe8514(0x1315)+_0x591073[_0xfe8514(0x167f)]:_0xfe8514(0x5ba),'msg':_0x591073['status']?JSON[_0xfe8514(0x10bb)](_0x591073[_0xfe8514(0x524)]):_0x591073[_0xfe8514(0xd5f)]()});});}function _0x5e0df5(){const _0x3d836c=_0x35749c;if(_0x26d6e0['hasRole'](_0x3d836c(0x174b)))_0x4f3689['go'](_0x3d836c(0x181f),{});else return _0x4f590d[_0x3d836c(0x1366)]['get']({'userProfileId':_0x26d6e0['getCurrentUser']()[_0x3d836c(0x209a)],'sectionId':0x5e6})['$promise'][_0x3d836c(0x146b)](function(_0x50ddc6){const _0x495db4=_0x3d836c,_0x5a4db7=_0x50ddc6&&_0x50ddc6[_0x495db4(0x19c7)]?_0x50ddc6[_0x495db4(0x19c7)][0x0]:null;_0x5a4db7&&_0x5a4db7[_0x495db4(0x193e)]?_0x4f3689['go'](_0x495db4(0x181f),{}):_0x2abc97['info']({'title':_0x1569e0['instant']('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_TITLE'),'msg':_0x1569e0[_0x495db4(0xde)](_0x495db4(0x174a))});})[_0x3d836c(0x129e)](function(_0x2464ad){const _0x3549d9=_0x3d836c;_0x2abc97['error']({'title':_0x2464ad['status']?_0x3549d9(0x262a)+_0x2464ad['status']+_0x3549d9(0x1315)+_0x2464ad[_0x3549d9(0x167f)]:_0x3549d9(0x698),'msg':_0x2464ad[_0x3549d9(0x107b)]?JSON[_0x3549d9(0x10bb)](_0x2464ad[_0x3549d9(0x524)]):_0x2464ad[_0x3549d9(0xd5f)]()});});}function _0x230cee(){const _0x1942a1=_0x35749c;_0x4f3689['go'](_0x1942a1(0xab7),{},{'reload':_0x1942a1(0xab7)});}function _0x384822(){const _0x371561=_0x35749c;_0x4f590d['voiceQueue']['update']({'id':_0x36c4d7[_0x371561(0x1f0f)]['id']},_0x36c4d7[_0x371561(0x1f0f)])[_0x371561(0x2945)]['then'](function(){const _0x4f8ba2=_0x371561;_0x2abc97[_0x4f8ba2(0x1c75)]({'title':'QueueCampaign\x20updated!','msg':_0x36c4d7[_0x4f8ba2(0x1f0f)][_0x4f8ba2(0x19eb)]?_0x36c4d7[_0x4f8ba2(0x1f0f)][_0x4f8ba2(0x19eb)]+_0x4f8ba2(0x6b0):''});})['catch'](function(_0x2a5ef7){const _0xd3e4d9=_0x371561;_0x2abc97[_0xd3e4d9(0x1980)]({'title':_0x2a5ef7['status']?_0xd3e4d9(0x262a)+_0x2a5ef7['status']+_0xd3e4d9(0x1315)+_0x2a5ef7[_0xd3e4d9(0x167f)]:_0xd3e4d9(0xfac),'msg':_0x2a5ef7[_0xd3e4d9(0x524)]?JSON[_0xd3e4d9(0x10bb)](_0x2a5ef7['data']):_0x2a5ef7[_0xd3e4d9(0xd5f)]()});});}}const _0x813b36=_0x13a4f8;;_0x28e8e0[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),'$window',_0x313a4d(0x1862),_0x313a4d(0x15fe),_0x313a4d(0x10e8),_0x313a4d(0x4d8),_0x313a4d(0x1abe),_0x313a4d(0x214b),_0x313a4d(0x17c4),_0x313a4d(0x26b6),_0x313a4d(0x1366),_0x313a4d(0x247f),_0x313a4d(0x216c),_0x313a4d(0x1fe4),_0x313a4d(0xa87),_0x313a4d(0x2690),'setting'];function _0x28e8e0(_0x129853,_0x2c36a3,_0xd8a711,_0x34cda3,_0x378b42,_0x33f52a,_0x479cf3,_0x133c11,_0x146b3b,_0x5deeb7,_0x5c616e,_0x5ed839,_0xd29612,_0x400087,_0x248777,_0x16210f,_0x4fe43d){const _0x6f49e8=_0x313a4d,_0x15522e=this;_0x15522e['license']=_0x16210f,_0x15522e[_0x6f49e8(0x15b9)]=_0x4fe43d,_0x15522e[_0x6f49e8(0x2321)]=_0x248777[_0x6f49e8(0xb12)](),_0x15522e[_0x6f49e8(0x17c4)]=_0x146b3b||{'count':0x0,'rows':[]},_0x15522e[_0x6f49e8(0x26b6)]=_0x5deeb7,_0x15522e[_0x6f49e8(0x1366)]=_0x5c616e&&_0x5c616e['count']==0x1?_0x5c616e[_0x6f49e8(0x19c7)][0x0]:null,_0x15522e['crudPermissions']=_0x248777[_0x6f49e8(0xe60)](_0x15522e[_0x6f49e8(0x1366)]?_0x15522e['userProfileSection'][_0x6f49e8(0x2514)]:null),_0x15522e[_0x6f49e8(0x768)]=_0x6f49e8(0x17c4),_0x15522e[_0x6f49e8(0x216a)]='',_0x15522e['listOrderAsc']=null,_0x15522e['selectedQueueCampaigns']=[],_0x15522e[_0x6f49e8(0x1a56)]={'fields':_0x6f49e8(0xe62),'type':'outbound','sort':_0x6f49e8(0x12f2),'channel':'voice','limit':0xa,'page':0x1},_0x15522e['arraydialCheckDuplicateType']=_0x3f65c0()[_0x6f49e8(0x194)]([{'option':_0x6f49e8(0x111e),'value':_0x6f49e8(0x220a)},{'option':_0x6f49e8(0x1a05),'value':'\x27never\x27'},{'option':'ONLY_IF_OPEN','value':'\x27onlyIfOpen\x27'}],function(_0x303a7e){const _0x2bbcaf=_0x6f49e8;return _0x3f65c0()[_0x2bbcaf(0x5f4)](_0x303a7e[_0x2bbcaf(0x175d)],new RegExp('\x27','g'),'');}),_0x15522e[_0x6f49e8(0x14f)]=_0x3f65c0()[_0x6f49e8(0x194)]([{'option':_0x6f49e8(0x1b97),'value':_0x6f49e8(0x26cd)},{'option':'No','value':'\x27no\x27'}],function(_0x5b7cfe){const _0x751504=_0x6f49e8;return _0x3f65c0()[_0x751504(0x5f4)](_0x5b7cfe['value'],new RegExp('\x27','g'),'');}),_0x15522e[_0x6f49e8(0x1cc1)]=_0x3f65c0()[_0x6f49e8(0x194)]([{'option':_0x6f49e8(0x1b97),'value':_0x6f49e8(0x2339)},{'option':'No','value':_0x6f49e8(0x74f)}],function(_0x27d26d){const _0x46843d=_0x6f49e8;return _0x3f65c0()[_0x46843d(0x5f4)](_0x27d26d[_0x46843d(0x175d)],new RegExp('\x27','g'),'');}),_0x15522e['arraytimeoutrestart']=_0x3f65c0()[_0x6f49e8(0x194)]([{'option':'Yes','value':_0x6f49e8(0x2339)},{'option':'No','value':'\x27no\x27'}],function(_0x4ed659){const _0x5c74cb=_0x6f49e8;return _0x3f65c0()[_0x5c74cb(0x5f4)](_0x4ed659[_0x5c74cb(0x175d)],new RegExp('\x27','g'),'');}),_0x15522e[_0x6f49e8(0x638)]=_0x3f65c0()[_0x6f49e8(0x194)]([{'option':_0x6f49e8(0x180),'value':'\x27\x27'},{'option':_0x6f49e8(0x52d),'value':'\x27wav\x27'},{'option':_0x6f49e8(0x306),'value':_0x6f49e8(0x21a1)},{'option':_0x6f49e8(0xdf0),'value':_0x6f49e8(0x5a3)}],function(_0x5df0f3){const _0x3fafdc=_0x6f49e8;return _0x3f65c0()[_0x3fafdc(0x5f4)](_0x5df0f3[_0x3fafdc(0x175d)],new RegExp('\x27','g'),'');}),_0x15522e[_0x6f49e8(0x21bb)]=_0x3f65c0()['keyBy']([{'option':_0x6f49e8(0x1b97),'value':'\x27yes\x27'},{'option':'No','value':'\x27no\x27'}],function(_0xdda2d6){const _0xb1c4bf=_0x6f49e8;return _0x3f65c0()[_0xb1c4bf(0x5f4)](_0xdda2d6[_0xb1c4bf(0x175d)],new RegExp('\x27','g'),'');}),_0x15522e[_0x6f49e8(0x2673)]=_0x3f65c0()[_0x6f49e8(0x194)]([{'option':_0x6f49e8(0x1b97),'value':_0x6f49e8(0x2339)},{'option':'No','value':_0x6f49e8(0x74f)}],function(_0x5ca1d5){const _0x10f419=_0x6f49e8;return _0x3f65c0()[_0x10f419(0x5f4)](_0x5ca1d5['value'],new RegExp('\x27','g'),'');}),_0x15522e[_0x6f49e8(0x213c)]=_0x3f65c0()[_0x6f49e8(0x194)]([{'option':'Yes','value':_0x6f49e8(0x2339)},{'option':'No','value':_0x6f49e8(0x74f)}],function(_0x100d74){const _0x17d279=_0x6f49e8;return _0x3f65c0()[_0x17d279(0x5f4)](_0x100d74[_0x17d279(0x175d)],new RegExp('\x27','g'),'');}),_0x15522e[_0x6f49e8(0x1ca6)]=_0x3f65c0()[_0x6f49e8(0x194)]([{'option':'DESC','value':_0x6f49e8(0x191)},{'option':_0x6f49e8(0x1734),'value':_0x6f49e8(0x3b8)}],function(_0x15bd11){const _0x3a9044=_0x6f49e8;return _0x3f65c0()[_0x3a9044(0x5f4)](_0x15bd11[_0x3a9044(0x175d)],new RegExp('\x27','g'),'');}),_0x15522e[_0x6f49e8(0xffd)]=_0x3f65c0()[_0x6f49e8(0x194)]([{'option':_0x6f49e8(0x13a9),'value':'\x27progressive\x27'},{'option':_0x6f49e8(0x11c5),'value':_0x6f49e8(0x1836)},{'option':_0x6f49e8(0x110),'value':_0x6f49e8(0x21d2)},{'option':_0x6f49e8(0x4e4),'value':_0x6f49e8(0x5b7)},{'option':_0x6f49e8(0x67b),'value':_0x6f49e8(0x236d)}],function(_0x4fc90b){const _0x242a26=_0x6f49e8;return _0x3f65c0()[_0x242a26(0x5f4)](_0x4fc90b[_0x242a26(0x175d)],new RegExp('\x27','g'),'');}),_0x15522e['arraydialPredictiveOptimization']=_0x3f65c0()[_0x6f49e8(0x194)]([{'option':_0x6f49e8(0x153d),'value':'\x27agentBusyFactor\x27'},{'option':_0x6f49e8(0x1e62),'value':_0x6f49e8(0x1317)}],function(_0x59ba59){return _0x3f65c0()['replace'](_0x59ba59['value'],new RegExp('\x27','g'),'');}),_0x15522e[_0x6f49e8(0x280a)]=_0x3f65c0()[_0x6f49e8(0x194)]([{'option':_0x6f49e8(0x28f7),'value':'\x27rrmemory\x27'},{'option':_0x6f49e8(0x37c),'value':_0x6f49e8(0x52f),'ngIf':'vm.queueCampaign.dialMethod\x20===\x20\x27booked\x27'},{'option':_0x6f49e8(0x251a),'value':'\x27leastrecent\x27','ngIf':_0x6f49e8(0x12d5)},{'option':_0x6f49e8(0x1567),'value':_0x6f49e8(0x8ec),'ngIf':_0x6f49e8(0x12d5)},{'option':_0x6f49e8(0x1944),'value':_0x6f49e8(0xb40),'ngIf':'vm.queueCampaign.dialMethod\x20!==\x20\x27booked\x27'},{'option':_0x6f49e8(0x1745),'value':_0x6f49e8(0xbdf),'ngIf':_0x6f49e8(0x12d5)},{'option':_0x6f49e8(0x24e3),'value':_0x6f49e8(0x1da7),'ngIf':_0x6f49e8(0x12d5)}],function(_0x55e533){const _0x51bd27=_0x6f49e8;return _0x3f65c0()[_0x51bd27(0x5f4)](_0x55e533[_0x51bd27(0x175d)],new RegExp('\x27','g'),'');}),_0x15522e[_0x6f49e8(0x23f9)]=_0x140ed5,_0x15522e[_0x6f49e8(0xa26)]=_0x1f9858,_0x15522e[_0x6f49e8(0xa4a)]=_0x8f239d,_0x15522e[_0x6f49e8(0x1f45)]=_0x1a10fb,_0x15522e[_0x6f49e8(0x244)]=_0xb39956,_0x15522e[_0x6f49e8(0x1027)]=_0x9e3ce7,_0x15522e[_0x6f49e8(0xf0a)]=_0x4336cc,_0x15522e['gotorealtimegoto']=_0x5a28c0,_0x15522e[_0x6f49e8(0x1c75)]=_0x5833ec,_0x15522e[_0x6f49e8(0x12e3)]=_0xb5f2e1,_0x15522e[_0x6f49e8(0x1c42)]=_0xca8785,_0x15522e['deleteQueueCampaign']=_0x57118b,_0x15522e[_0x6f49e8(0x26d5)]=_0x25519f,_0x15522e[_0x6f49e8(0x1d1f)]=_0x2ab02c,_0x15522e[_0x6f49e8(0x2237)]=_0x3b2f42,_0x15522e[_0x6f49e8(0x2387)]=_0x3d5224,_0x248777[_0x6f49e8(0x23e0)](_0x6f49e8(0x174b))?_0x5ed839[_0x6f49e8(0x279f)][_0x6f49e8(0x16b4)]({'fields':_0x6f49e8(0x7a7),'sort':_0x6f49e8(0x19eb)})[_0x6f49e8(0x2945)]['then'](function(_0x167354){const _0x508c82=_0x6f49e8;_0x15522e[_0x508c82(0x2433)]=_0x167354[_0x508c82(0x19c7)]||[];})[_0x6f49e8(0x129e)](function(_0x3e5e86){const _0x3b5807=_0x6f49e8;_0x400087[_0x3b5807(0x1980)]({'title':_0x3e5e86[_0x3b5807(0x107b)]?_0x3b5807(0x262a)+_0x3e5e86[_0x3b5807(0x107b)]+_0x3b5807(0x1315)+_0x3e5e86[_0x3b5807(0x167f)]:_0x3b5807(0xfc0),'msg':_0x3e5e86['data']?JSON[_0x3b5807(0x10bb)](_0x3e5e86[_0x3b5807(0x524)]):_0x3e5e86['toString']()});}):_0x5ed839[_0x6f49e8(0x279f)][_0x6f49e8(0x16b4)]({'fields':'id,name','sort':'name'})[_0x6f49e8(0x2945)][_0x6f49e8(0x146b)](function(_0xb0228e){const _0x482c18=_0x6f49e8;_0x15522e[_0x482c18(0x2433)]=_0xb0228e[_0x482c18(0x19c7)]||[];})['then'](function(){const _0x1d6d4d=_0x6f49e8;return _0x5ed839['userProfileSection']['get']({'userProfileId':_0x15522e[_0x1d6d4d(0x2321)][_0x1d6d4d(0x209a)],'sectionId':0x3f3})[_0x1d6d4d(0x2945)];})['then'](function(_0x12a106){const _0x4fc1ab=_0x6f49e8,_0x4298b9=_0x12a106&&_0x12a106[_0x4fc1ab(0x19c7)]?_0x12a106[_0x4fc1ab(0x19c7)][0x0]:null;if(!_0x4298b9){const _0x5285ff=[],_0x594979=[];_0x15522e[_0x4fc1ab(0x17c4)][_0x4fc1ab(0x19c7)][_0x4fc1ab(0x1df5)](function(_0xcca51a){const _0x55b64d=_0x4fc1ab,_0x4b8662=_0x3f65c0()[_0x55b64d(0xc84)](_0x15522e[_0x55b64d(0x2433)],{'id':Number(_0xcca51a[_0x55b64d(0x1b77)])});_0x594979[_0x55b64d(0x1f47)](_0x4b8662);});for(let _0x3d273e=0x0;_0x3d273e<_0x15522e[_0x4fc1ab(0x2433)][_0x4fc1ab(0x402)];_0x3d273e++){const _0xa0ca4c=_0x3f65c0()[_0x4fc1ab(0x1360)](_0x594979,{'id':_0x15522e[_0x4fc1ab(0x2433)][_0x3d273e]['id']});_0xa0ca4c&&(_0x15522e[_0x4fc1ab(0x2433)][_0x3d273e][_0x4fc1ab(0x8ff)]=![],_0x5285ff['push'](_0x15522e[_0x4fc1ab(0x2433)][_0x3d273e]));}_0x15522e['trunks']=_0x5285ff;}else{if(!_0x4298b9[_0x4fc1ab(0x11d2)])return _0x5ed839[_0x4fc1ab(0xdcc)]['get']({'sectionId':_0x4298b9['id']})[_0x4fc1ab(0x2945)][_0x4fc1ab(0x146b)](function(_0x413571){const _0x48f01a=_0x4fc1ab,_0x6ea6e3=_0x3f65c0()[_0x48f01a(0x205)](_0x413571[_0x48f01a(0x19c7)],function(_0x99474a){const _0x297f58=_0x48f01a;return _0x3f65c0()[_0x297f58(0xc84)](_0x15522e['trunks'],{'id':_0x99474a[_0x297f58(0x18b8)]});});let _0x4bb42c=null;_0x4bb42c=[],_0x15522e[_0x48f01a(0x17c4)][_0x48f01a(0x19c7)]['forEach'](function(_0x450011){const _0x190def=_0x48f01a,_0x56d576=_0x3f65c0()[_0x190def(0xc84)](_0x15522e['trunks'],{'id':Number(_0x450011[_0x190def(0x1b77)])});_0x4bb42c[_0x190def(0x1f47)](_0x56d576);}),!_0x3f65c0()[_0x48f01a(0x2635)](_0x4bb42c)&&_0x4bb42c['forEach'](function(_0x14ed28){const _0x237c0b=_0x48f01a;if(!_0x3f65c0()[_0x237c0b(0x1360)](_0x6ea6e3,['id',_0x14ed28['id']])){const _0x4981a9=_0x3f65c0()['find'](_0x15522e[_0x237c0b(0x2433)],{'id':_0x14ed28['id']});_0x4981a9[_0x237c0b(0x8ff)]=![],_0x6ea6e3['push'](_0x4981a9);}}),_0x15522e[_0x48f01a(0x2433)]=_0x6ea6e3;});}})[_0x6f49e8(0x129e)](function(_0x2c860e){const _0x566586=_0x6f49e8;_0x400087[_0x566586(0x1980)]({'title':_0x2c860e[_0x566586(0x107b)]?_0x566586(0x262a)+_0x2c860e[_0x566586(0x107b)]+'\x20-\x20'+_0x2c860e[_0x566586(0x167f)]:_0x566586(0x2436),'msg':_0x2c860e[_0x566586(0x524)]?JSON[_0x566586(0x10bb)](_0x2c860e[_0x566586(0x524)]):_0x2c860e[_0x566586(0xd5f)]()});}),_0x248777[_0x6f49e8(0x23e0)](_0x6f49e8(0x174b))?_0x5ed839[_0x6f49e8(0x2765)][_0x6f49e8(0x16b4)]({'fields':_0x6f49e8(0x7a7),'sort':_0x6f49e8(0x19eb),'IntervalId':'null'})['$promise'][_0x6f49e8(0x146b)](function(_0x52ec9d){const _0x58355f=_0x6f49e8;_0x15522e[_0x58355f(0x2765)]=_0x52ec9d[_0x58355f(0x19c7)]||[];})[_0x6f49e8(0x129e)](function(_0x3afdad){const _0x111c64=_0x6f49e8;_0x400087[_0x111c64(0x1980)]({'title':_0x3afdad['status']?_0x111c64(0x262a)+_0x3afdad[_0x111c64(0x107b)]+'\x20-\x20'+_0x3afdad[_0x111c64(0x167f)]:'SYSTEM:GET_INTERVAL','msg':_0x3afdad[_0x111c64(0x524)]?JSON[_0x111c64(0x10bb)](_0x3afdad['data']):_0x3afdad[_0x111c64(0xd5f)]()});}):_0x5ed839[_0x6f49e8(0x2765)]['get']({'fields':_0x6f49e8(0x7a7),'sort':_0x6f49e8(0x19eb),'IntervalId':_0x6f49e8(0x203c)})[_0x6f49e8(0x2945)][_0x6f49e8(0x146b)](function(_0x43944c){const _0x3e7382=_0x6f49e8;_0x15522e['interval']=_0x43944c[_0x3e7382(0x19c7)]||[];})[_0x6f49e8(0x146b)](function(){const _0x4c6214=_0x6f49e8;return _0x5ed839['userProfileSection'][_0x4c6214(0x16b4)]({'userProfileId':_0x15522e['currentUser']['userProfileId'],'sectionId':0x3ec})[_0x4c6214(0x2945)];})['then'](function(_0x3baac7){const _0x9acc9=_0x6f49e8,_0xf3259c=_0x3baac7&&_0x3baac7[_0x9acc9(0x19c7)]?_0x3baac7[_0x9acc9(0x19c7)][0x0]:null;if(!_0xf3259c){const _0x30abc8=[];let _0x26acaf=null;_0x15522e[_0x9acc9(0x1f0f)]&&(_0x26acaf=_0x3f65c0()[_0x9acc9(0xc84)](_0x15522e[_0x9acc9(0x2765)],{'id':Number(_0x15522e[_0x9acc9(0x1f0f)][_0x9acc9(0x1ff2)])}));for(let _0x30b3bc=0x0;_0x30b3bc<_0x15522e[_0x9acc9(0x2765)]['length'];_0x30b3bc++){_0x26acaf&&_0x15522e[_0x9acc9(0x2765)][_0x30b3bc]['id']===_0x26acaf['id']&&(_0x15522e[_0x9acc9(0x2765)][_0x30b3bc][_0x9acc9(0x8ff)]=![],_0x30abc8[_0x9acc9(0x1f47)](_0x15522e[_0x9acc9(0x2765)][_0x30b3bc]));}_0x15522e[_0x9acc9(0x2765)]=_0x30abc8;}else{if(!_0xf3259c[_0x9acc9(0x11d2)])return _0x5ed839[_0x9acc9(0xdcc)]['get']({'sectionId':_0xf3259c['id']})[_0x9acc9(0x2945)][_0x9acc9(0x146b)](function(_0x19384d){const _0x165691=_0x9acc9,_0x2df2ce=_0x3f65c0()[_0x165691(0x205)](_0x19384d[_0x165691(0x19c7)],function(_0xf6a252){const _0x1864f7=_0x165691;return _0x3f65c0()['find'](_0x15522e[_0x1864f7(0x2765)],{'id':_0xf6a252[_0x1864f7(0x18b8)]});});let _0x11c5ef=null;_0x15522e[_0x165691(0x1f0f)]&&(_0x11c5ef=_0x3f65c0()[_0x165691(0xc84)](_0x15522e['interval'],{'id':Number(_0x15522e[_0x165691(0x1f0f)][_0x165691(0x1ff2)])}));if(_0x11c5ef&&!_0x3f65c0()[_0x165691(0x1360)](_0x2df2ce,['id',_0x11c5ef['id']])){const _0x1be12f=_0x3f65c0()[_0x165691(0xc84)](_0x15522e[_0x165691(0x2765)],{'id':_0x11c5ef['id']});_0x1be12f[_0x165691(0x8ff)]=![],_0x2df2ce['push'](_0x1be12f);}_0x15522e[_0x165691(0x2765)]=_0x2df2ce;});}})['catch'](function(_0x181408){const _0x14f233=_0x6f49e8;_0x400087[_0x14f233(0x1980)]({'title':_0x181408[_0x14f233(0x107b)]?_0x14f233(0x262a)+_0x181408[_0x14f233(0x107b)]+_0x14f233(0x1315)+_0x181408['statusText']:'SYSTEM:GETinterval','msg':_0x181408[_0x14f233(0x524)]?JSON['stringify'](_0x181408[_0x14f233(0x524)]):_0x181408[_0x14f233(0xd5f)]()});});function _0x140ed5(_0x228eef){const _0x2ecaee=_0x6f49e8;_0xd8a711['go'](_0x2ecaee(0x1179),{'id':_0x228eef['id'],'queueCampaign':_0x228eef,'crudPermissions':_0x15522e['crudPermissions']});}function _0x1f9858(_0x214cb9,_0x259d37){const _0x192f5b=_0x6f49e8;_0x378b42['show']({'controller':_0x192f5b(0x256a),'controllerAs':'vm','templateUrl':_0x3f6aea,'parent':angular['element'](_0x33f52a[_0x192f5b(0x2586)]),'targetEvent':_0x259d37,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x214cb9,'queueCampaigns':_0x15522e[_0x192f5b(0x17c4)]?_0x15522e['queueCampaigns'][_0x192f5b(0x19c7)]:[],'crudPermissions':_0x15522e['crudPermissions']}});}function _0x8f239d(_0x34f75e,_0x88aca8){const _0x2dee65=_0x6f49e8;_0x378b42['show']({'controller':'QueueCampaignlistaddController','controllerAs':'vm','templateUrl':_0x2010aa,'parent':angular[_0x2dee65(0x1853)](_0x33f52a[_0x2dee65(0x2586)]),'targetEvent':_0x88aca8,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x34f75e,'queueCampaigns':_0x15522e[_0x2dee65(0x17c4)]?_0x15522e[_0x2dee65(0x17c4)][_0x2dee65(0x19c7)]:[],'crudPermissions':_0x15522e[_0x2dee65(0x2514)]}});}function _0x1a10fb(_0x467d1d,_0x1ce289){const _0x19a98a=_0x6f49e8;_0x378b42[_0x19a98a(0x2615)]({'controller':'QueueCampaignblacklistaddController','controllerAs':'vm','templateUrl':_0xaffb8e,'parent':angular[_0x19a98a(0x1853)](_0x33f52a[_0x19a98a(0x2586)]),'targetEvent':_0x1ce289,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x467d1d,'queueCampaigns':_0x15522e['queueCampaigns']?_0x15522e[_0x19a98a(0x17c4)][_0x19a98a(0x19c7)]:[],'crudPermissions':_0x15522e['crudPermissions']}});}function _0xb39956(_0xe5fb4b,_0x5e93fc){const _0x5ad675=_0x6f49e8;_0x378b42[_0x5ad675(0x2615)]({'controller':_0x5ad675(0x26ca),'controllerAs':'vm','templateUrl':_0x412655,'parent':angular['element'](_0x33f52a[_0x5ad675(0x2586)]),'targetEvent':_0x5e93fc,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0xe5fb4b,'queueCampaigns':_0x15522e['queueCampaigns']?_0x15522e['queueCampaigns']['rows']:[],'crudPermissions':_0x15522e['crudPermissions']}});}function _0x9e3ce7(_0x5bda62,_0x282edc){const _0x532b42=_0x6f49e8;_0x378b42[_0x532b42(0x2615)]({'controller':_0x532b42(0x86a),'controllerAs':'vm','templateUrl':_0x4619e2,'parent':angular['element'](_0x33f52a['body']),'targetEvent':_0x282edc,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x5bda62,'queueCampaigns':_0x15522e['queueCampaigns']?_0x15522e['queueCampaigns'][_0x532b42(0x19c7)]:[],'crudPermissions':_0x15522e['crudPermissions'],'realtime':![]}});}function _0x4336cc(_0x2042cf,_0x3bdf2a){const _0x28dbfb=_0x6f49e8,_0x4a1698=_0x378b42[_0x28dbfb(0x1e8a)]()[_0x28dbfb(0x1189)](_0x28dbfb(0xdb2)+_0x3f65c0()[_0x28dbfb(0x20d1)](_0x28dbfb(0x1f0f))+'?')[_0x28dbfb(0x1cbe)](_0x28dbfb(0x16d3)+(_0x2042cf[_0x28dbfb(0x19eb)]||_0x28dbfb(0x1f0f))+_0x28dbfb(0x252f)+_0x28dbfb(0xe01))['ariaLabel'](_0x28dbfb(0x12b1))[_0x28dbfb(0x1f27)](_0x3bdf2a)['ok']('OK')['cancel'](_0x28dbfb(0x39a));_0x378b42['show'](_0x4a1698)['then'](function(){_0x57118b(_0x2042cf);},function(){const _0x3b361b=_0x28dbfb;console[_0x3b361b(0x1a74)](_0x3b361b(0x39a));});}function _0x5a28c0(){const _0x8c01e1=_0x6f49e8;if(_0x248777[_0x8c01e1(0x23e0)](_0x8c01e1(0x174b)))_0xd8a711['go'](_0x8c01e1(0x181f),{});else return _0x5ed839[_0x8c01e1(0x1366)][_0x8c01e1(0x16b4)]({'userProfileId':_0x248777[_0x8c01e1(0xb12)]()[_0x8c01e1(0x209a)],'sectionId':0x5e6})[_0x8c01e1(0x2945)][_0x8c01e1(0x146b)](function(_0x319a77){const _0x274607=_0x8c01e1,_0x383db9=_0x319a77&&_0x319a77[_0x274607(0x19c7)]?_0x319a77[_0x274607(0x19c7)][0x0]:null;_0x383db9&&_0x383db9[_0x274607(0x193e)]?_0xd8a711['go'](_0x274607(0x181f),{}):_0x400087[_0x274607(0x271e)]({'title':_0x133c11[_0x274607(0xde)](_0x274607(0xb27)),'msg':_0x133c11['instant']('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_MESSAGE')});})['catch'](function(_0x4a4a63){const _0x19b166=_0x8c01e1;_0x400087[_0x19b166(0x1980)]({'title':_0x4a4a63[_0x19b166(0x107b)]?'API:'+_0x4a4a63[_0x19b166(0x107b)]+'\x20-\x20'+_0x4a4a63[_0x19b166(0x167f)]:_0x19b166(0x698),'msg':_0x4a4a63['status']?JSON['stringify'](_0x4a4a63['data']):_0x4a4a63[_0x19b166(0xd5f)]()});});}let _0x4f2e16=!![],_0x4e6ace=0x1;_0x129853['$watch'](_0x6f49e8(0x2669),function(_0x419409,_0x4cfc4b){const _0x599fa8=_0x6f49e8;_0x4f2e16?_0x479cf3(function(){_0x4f2e16=![];}):(!_0x4cfc4b&&(_0x4e6ace=_0x15522e['query'][_0x599fa8(0x844)]),_0x419409!==_0x4cfc4b&&(_0x15522e[_0x599fa8(0x1a56)]['page']=0x1),!_0x419409&&(_0x15522e[_0x599fa8(0x1a56)][_0x599fa8(0x844)]=_0x4e6ace),_0x15522e[_0x599fa8(0x12e3)]());});function _0x5833ec(_0x4f7e07){_0x15522e['queueCampaigns']=_0x4f7e07||{'count':0x0,'rows':[]};}function _0xb5f2e1(){const _0x1a22e8=_0x6f49e8;_0x15522e[_0x1a22e8(0x1a56)]['offset']=(_0x15522e[_0x1a22e8(0x1a56)][_0x1a22e8(0x844)]-0x1)*_0x15522e['query'][_0x1a22e8(0x221e)],_0x248777['hasRole'](_0x1a22e8(0x174b))?_0x15522e[_0x1a22e8(0xb9c)]=_0x5ed839['voiceQueue'][_0x1a22e8(0x16b4)](_0x15522e[_0x1a22e8(0x1a56)],_0x5833ec)['$promise']:(_0x15522e['query']['id']=_0x15522e[_0x1a22e8(0x26b6)]['id'],_0x15522e[_0x1a22e8(0x1a56)][_0x1a22e8(0x2146)]='QueueCampaigns',_0x15522e[_0x1a22e8(0xb9c)]=_0x5ed839[_0x1a22e8(0x26b6)]['getResources'](_0x15522e['query'],_0x5833ec)[_0x1a22e8(0x2945)]);}function _0xca8785(_0x50d88e,_0xb3843a){const _0x5a800b=_0x6f49e8;_0x378b42[_0x5a800b(0x2615)]({'controller':_0x5a800b(0x2573),'controllerAs':'vm','templateUrl':_0x403428,'parent':angular[_0x5a800b(0x1853)](_0x33f52a[_0x5a800b(0x2586)]),'targetEvent':_0x50d88e,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0xb3843a,'queueCampaigns':_0x15522e[_0x5a800b(0x17c4)]['rows'],'license':_0x15522e[_0x5a800b(0x2690)],'setting':_0x15522e['setting'],'crudPermissions':_0x15522e[_0x5a800b(0x2514)]}});}function _0x57118b(_0xc4a9ff){const _0x27da5c=_0x6f49e8;_0x5ed839['voiceQueue'][_0x27da5c(0x1fac)]({'id':_0xc4a9ff['id']})['$promise'][_0x27da5c(0x146b)](function(){const _0x40cd1e=_0x27da5c;_0x3f65c0()['remove'](_0x15522e['queueCampaigns'][_0x40cd1e(0x19c7)],{'id':_0xc4a9ff['id']}),_0x15522e[_0x40cd1e(0x17c4)][_0x40cd1e(0x51c)]-=0x1,!_0x15522e[_0x40cd1e(0x17c4)][_0x40cd1e(0x19c7)][_0x40cd1e(0x402)]&&_0x15522e[_0x40cd1e(0x12e3)](),_0x400087[_0x40cd1e(0x1c75)]({'title':_0x3f65c0()['startCase'](_0x40cd1e(0x15ff))+_0x40cd1e(0x201c),'msg':_0xc4a9ff[_0x40cd1e(0x19eb)]?_0xc4a9ff[_0x40cd1e(0x19eb)]+_0x40cd1e(0x23e3):''});})[_0x27da5c(0x129e)](function(_0x40dbf2){const _0x26ef8e=_0x27da5c;if(_0x40dbf2[_0x26ef8e(0x524)]&&_0x40dbf2[_0x26ef8e(0x524)][_0x26ef8e(0xcef)]&&_0x40dbf2[_0x26ef8e(0x524)][_0x26ef8e(0xcef)][_0x26ef8e(0x402)]){_0x15522e[_0x26ef8e(0xcef)]=_0x40dbf2[_0x26ef8e(0x524)][_0x26ef8e(0xcef)]||[{'message':_0x40dbf2[_0x26ef8e(0xd5f)](),'type':_0x26ef8e(0x798)}];for(let _0x3fdfe8=0x0;_0x3fdfe8<_0x40dbf2['data'][_0x26ef8e(0xcef)][_0x26ef8e(0x402)];_0x3fdfe8++){_0x400087['error']({'title':_0x40dbf2[_0x26ef8e(0x524)][_0x26ef8e(0xcef)][_0x3fdfe8][_0x26ef8e(0x1142)],'msg':_0x40dbf2[_0x26ef8e(0x524)]['errors'][_0x3fdfe8][_0x26ef8e(0x7fd)]});}}else _0x400087['error']({'title':_0x40dbf2['status']?_0x26ef8e(0x262a)+_0x40dbf2[_0x26ef8e(0x107b)]+'\x20-\x20'+_0x40dbf2[_0x26ef8e(0x167f)]:'SYSTEM:DELETEvoiceQueue','msg':_0x40dbf2['data']?JSON['stringify'](_0x40dbf2['data'][_0x26ef8e(0x7fd)]):_0x40dbf2[_0x26ef8e(0x7fd)]||_0x40dbf2['toString']()});});}function _0x25519f(){const _0x4081d3=_0x6f49e8,_0x217c82=angular[_0x4081d3(0x235a)](_0x15522e[_0x4081d3(0x128)]);return _0x15522e[_0x4081d3(0x128)]=[],_0x217c82;}function _0x2ab02c(_0x7ed0ce){const _0x2f9187=_0x6f49e8,_0x599b87=_0x378b42[_0x2f9187(0x1e8a)]()[_0x2f9187(0x1189)](_0x2f9187(0x1591))[_0x2f9187(0x1cbe)](_0x2f9187(0x16d3)+_0x15522e[_0x2f9187(0x128)][_0x2f9187(0x402)]+_0x2f9187(0x2452)+_0x2f9187(0xe01))[_0x2f9187(0x4bd)](_0x2f9187(0x29f))[_0x2f9187(0x1f27)](_0x7ed0ce)['ok']('OK')[_0x2f9187(0x6c3)](_0x2f9187(0x39a));_0x378b42[_0x2f9187(0x2615)](_0x599b87)[_0x2f9187(0x146b)](function(){const _0x556574=_0x2f9187;_0x15522e[_0x556574(0x128)]['forEach'](function(_0xc61d6){_0x57118b(_0xc61d6);}),_0x15522e[_0x556574(0x128)]=[];});}function _0x3b2f42(){_0x15522e['selectedQueueCampaigns']=[];}function _0x3d5224(){const _0x1d7bf5=_0x6f49e8;_0x15522e[_0x1d7bf5(0x128)]=_0x15522e[_0x1d7bf5(0x17c4)][_0x1d7bf5(0x19c7)];}}const _0x5beeac=_0x28e8e0;;_0x67e793['$inject']=[_0x313a4d(0x921),_0x313a4d(0x695)];function _0x67e793(_0x3bbbd2,_0x5d991f){const _0xac76a=_0x313a4d;_0x3bbbd2[_0xac76a(0x13d6)](_0xac76a(0x234d),{'abstract':!![],'url':_0xac76a(0x1d80)})['state'](_0xac76a(0xab7),{'url':_0xac76a(0x263a),'views':{'content@app':{'templateUrl':_0x2c840a,'controller':_0xac76a(0x16ec)}},'resolve':{'queueCampaigns':[_0xac76a(0x362),'Auth',function(_0x1793e6,_0x41c1e8){const _0x4da732=_0xac76a;return _0x41c1e8[_0x4da732(0x23e0)](_0x4da732(0x174b))?_0x1793e6[_0x4da732(0x2922)](_0x4da732(0x5c0),{'fields':_0x4da732(0xe62),'type':_0x4da732(0xc9c),'sort':'-updatedAt','channel':_0x4da732(0xe6),'limit':0xa,'offset':0x0}):_0x1793e6[_0x4da732(0x2922)](_0x4da732(0x938),{'id':_0x41c1e8[_0x4da732(0xb12)]()[_0x4da732(0x209a)],'section':_0x4da732(0x15d6),'fields':_0x4da732(0xe62),'type':_0x4da732(0xc9c),'sort':_0x4da732(0x12f2),'channel':_0x4da732(0xe6),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0xac76a(0xa87),function(_0x430282,_0x354f0c){const _0x4f00b4=_0xac76a;return _0x354f0c['hasRole'](_0x4f00b4(0x174b))?null:_0x430282[_0x4f00b4(0x2922)](_0x4f00b4(0x119a),{'fields':_0x4f00b4(0x227),'id':_0x354f0c['getCurrentUser']()[_0x4f00b4(0x209a)]});}],'userProfileSection':['apiResolver',_0xac76a(0xa87),function(_0x407af4,_0xb41bf8){const _0x54c03=_0xac76a;return _0xb41bf8['hasRole'](_0x54c03(0x174b))?null:_0x407af4[_0x54c03(0x2922)]('userProfileSection@get',{'fields':_0x54c03(0x1e64),'userProfileId':_0xb41bf8['getCurrentUser']()[_0x54c03(0x209a)],'sectionId':0x5dd});}]},'authenticate':!![],'permissionId':0x5dd,'bodyClass':_0xac76a(0x24da)})[_0xac76a(0x13d6)](_0xac76a(0x1179),{'url':_0xac76a(0x2028),'params':{'queueCampaign':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x5b75f9,'controller':_0xac76a(0xcc6)}},'resolve':{'queueCampaign':[_0xac76a(0x362),_0xac76a(0x28c8),function(_0x3023f9,_0x3cbbfd){const _0x5a7ea1=_0xac76a;return _0x3023f9[_0x5a7ea1(0x2922)](_0x5a7ea1(0x5c0),{'fields':'createdAt,updatedAt,id,name,dialActive,TrunkId,TrunkBackupId,type,IntervalId,dialCheckDuplicateType,dialCutDigit,acw,acwTimeout,autopause,ringinuse,memberdelay,timeoutrestart,monitor_format,context,setinterfacevar,setqueuevar,setqueueentryvar,dialOrderByScheduledAt,dialRecallMeTimeout,dialRecallInQueue,dialGlobalInterval,dialTimezone,dialAMDActive,dialAMDInitialSilence,dialAMDGreeting,dialAMDAfterGreetingSilence,dialAMDTotalAnalysisTime,dialAMDMinWordLength,dialAMDBetweenWordsSilence,dialAMDMaximumNumberOfWords,dialAMDSilenceThreshold,dialAMDMaximumWordLength,dialMethod,dialPowerLevel,dialPredictiveOptimization,dialPredictiveOptimizationPercentage,dialPredictiveInterval,dialLimitQueue,dialOriginateCallerIdName,dialOriginateCallerIdNumber,dialRandomLastDigitCallerIdNumber,dialOriginateTimeout,dialPrefix,dialQueueOptions,dialQueueTimeout,strategy,timeout,retry,wrapuptime,weight,musiconhold,dialQueueProject,dialQueueProject2,dialAgiAfterHangupAgent,dialGlobalMaxRetry,dialCongestionMaxRetry,dialCongestionRetryFrequency,dialBusyMaxRetry,dialBusyRetryFrequency,dialNoAnswerMaxRetry,dialNoAnswerRetryFrequency,dialNoSuchNumberMaxRetry,dialNoSuchNumberRetryFrequency,dialDropMaxRetry,dialDropRetryFrequency,dialAbandonedMaxRetry,dialAbandonedRetryFrequency,dialMachineMaxRetry,dialMachineRetryFrequency,dialAgentRejectMaxRetry,dialAgentRejectRetryFrequency,description,mandatoryDisposition,mandatoryDispositionPauseId,dialPredictiveIntervalMaxThreshold,dialPredictiveIntervalMinThreshold','id':_0x3cbbfd['id']});}],'userProfileSection':[_0xac76a(0x362),_0xac76a(0xa87),function(_0x367a6f,_0x4a4949){const _0x4444ab=_0xac76a;return _0x367a6f[_0x4444ab(0x2922)]('userProfileSection@get',{'fields':_0x4444ab(0x1e64),'userProfileId':_0x4a4949[_0x4444ab(0xb12)]()[_0x4444ab(0x209a)],'sectionId':0x5dd});}]},'authenticate':!![],'permissionId':0x5dd,'bodyClass':_0xac76a(0x24da)})[_0xac76a(0x13d6)](_0xac76a(0x21b0),{'url':_0xac76a(0x3be),'views':{'content@app':{'templateUrl':_0x491eec,'controller':_0xac76a(0x23ae)}},'resolve':{'ivrCampaigns':[_0xac76a(0x362),'Auth',function(_0x3a3f7c,_0xdeb480){const _0x935a3a=_0xac76a;return _0xdeb480[_0x935a3a(0x23e0)](_0x935a3a(0x174b))?_0x3a3f7c[_0x935a3a(0x2922)](_0x935a3a(0x221a),{'fields':_0x935a3a(0x1870),'type':_0x935a3a(0x1f0),'sort':_0x935a3a(0x12f2),'limit':0xa,'offset':0x0}):_0x3a3f7c[_0x935a3a(0x2922)](_0x935a3a(0x938),{'id':_0xdeb480['getCurrentUser']()[_0x935a3a(0x209a)],'section':_0x935a3a(0x27f9),'fields':_0x935a3a(0x1870),'type':'ivr','sort':_0x935a3a(0x12f2),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0xac76a(0xa87),function(_0x5bb897,_0x15b81b){const _0x102103=_0xac76a;return _0x15b81b[_0x102103(0x23e0)](_0x102103(0x174b))?null:_0x5bb897[_0x102103(0x2922)](_0x102103(0x119a),{'fields':_0x102103(0x227),'id':_0x15b81b[_0x102103(0xb12)]()['userProfileId']});}],'userProfileSection':['apiResolver','Auth',function(_0x349322,_0xd07c82){const _0x20fb43=_0xac76a;return _0xd07c82[_0x20fb43(0x23e0)](_0x20fb43(0x174b))?null:_0x349322['resolve'](_0x20fb43(0x27be),{'fields':_0x20fb43(0x1e64),'userProfileId':_0xd07c82[_0x20fb43(0xb12)]()['userProfileId'],'sectionId':0x5de});}]},'authenticate':!![],'permissionId':0x5de,'bodyClass':_0xac76a(0x24da)})['state'](_0xac76a(0x2463),{'url':_0xac76a(0x2028),'params':{'ivrCampaign':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0xb6a0f4,'controller':_0xac76a(0x935)}},'resolve':{'ivrCampaign':[_0xac76a(0x362),_0xac76a(0x28c8),function(_0x28c37d,_0x17f2ae){const _0x29f2c5=_0xac76a;return _0x28c37d[_0x29f2c5(0x2922)]('campaign@get',{'fields':_0x29f2c5(0x1870),'id':_0x17f2ae['id']});}],'userProfileSection':[_0xac76a(0x362),_0xac76a(0xa87),function(_0x5952af,_0x4f8c93){const _0xcf288=_0xac76a;return _0x5952af[_0xcf288(0x2922)]('userProfileSection@get',{'fields':_0xcf288(0x1e64),'userProfileId':_0x4f8c93[_0xcf288(0xb12)]()['userProfileId'],'sectionId':0x5de});}]},'authenticate':!![],'permissionId':0x5de,'bodyClass':_0xac76a(0x24da)}),_0x5d991f[_0xac76a(0x15bf)]('app/main/apps/motiondialer');}angular['module'](_0x313a4d(0x234d),[_0x313a4d(0xdad),_0x313a4d(0x962),'md.data.table',_0x313a4d(0x963),_0x313a4d(0x19e2),_0x313a4d(0x27c1),_0x313a4d(0x195b),_0x313a4d(0x15ef),_0x313a4d(0xc86),_0x313a4d(0x1f5f),_0x313a4d(0x28a8),_0x313a4d(0xfb2),_0x313a4d(0x1e57),_0x313a4d(0x581),_0x313a4d(0x1bd2),'ngEmbed',_0x313a4d(0x1b65),_0x313a4d(0x1626),_0x313a4d(0x2713),'angular.filter','app.motiondialer.realtime'])[_0x313a4d(0x989)](_0x67e793)['controller']('CreateOrEditIvrCampaignDialogController',_0x590974)[_0x313a4d(0x28f0)](_0x313a4d(0x22de),_0x466d4b)[_0x313a4d(0x28f0)]('IvrCampaigncloneController',_0x573f5d)['controller'](_0x313a4d(0x1047),_0x5a968d)[_0x313a4d(0x28f0)](_0x313a4d(0x1ef5),_0x254d1c)[_0x313a4d(0x28f0)](_0x313a4d(0x1a00),_0x424793)[_0x313a4d(0x28f0)]('IvrCampaignHoppersController',_0x545edb)[_0x313a4d(0x28f0)](_0x313a4d(0x375),_0x2a5b35)[_0x313a4d(0x28f0)](_0x313a4d(0x22f5),_0x28c262)['controller'](_0x313a4d(0x222d),_0x5dc952)['controller'](_0x313a4d(0x18d1),_0x50a298)['controller'](_0x313a4d(0x16f2),_0x11b9fc)[_0x313a4d(0x28f0)]('IvrCampaignsController',_0x742fe9)[_0x313a4d(0x28f0)](_0x313a4d(0x2573),_0x730d04)['controller'](_0x313a4d(0x86a),_0x11a584)[_0x313a4d(0x28f0)](_0x313a4d(0x214),_0x3f8d16)[_0x313a4d(0x28f0)](_0x313a4d(0x256a),_0x4b17d0)[_0x313a4d(0x28f0)]('QueueCampaignHopperBlacksController',_0xc0e1a3)[_0x313a4d(0x28f0)]('QueueCampaignHopperFinalsController',_0x14308a)['controller']('QueueCampaignHopperHistoriesController',_0x3f7b53)[_0x313a4d(0x28f0)]('QueueCampaignHoppersController',_0x1cc8b3)[_0x313a4d(0x28f0)]('CreateOrEditHopperVoiceQueueIdDialogController',_0x13c860)[_0x313a4d(0x28f0)](_0x313a4d(0x1ef3),_0x204849)[_0x313a4d(0x28f0)]('QueueCampaignlistaddController',_0x23cbf1)[_0x313a4d(0x28f0)]('QueueCampaignresetlistController',_0x5e55c4)[_0x313a4d(0x28f0)](_0x313a4d(0x26ca),_0x16032b)[_0x313a4d(0x28f0)](_0x313a4d(0x279c),_0x813b36)[_0x313a4d(0x28f0)]('QueueCampaignsController',_0x5beeac);;const _0x55e607=_0x4acfac['p']+_0x313a4d(0x1224);;_0x290b71[_0x313a4d(0x11c2)]=[_0x313a4d(0x271e),_0x313a4d(0x2690),_0x313a4d(0x247f)];function _0x3a5de9(_0x3f8c2f){const _0xbf8a17=_0x313a4d,_0x5d644e=_0x2deec6()(_0x3f8c2f);return _0x5d644e[_0xbf8a17(0x146f)]()?_0x5d644e[_0xbf8a17(0x22b0)](_0xbf8a17(0xb2f)):'';}function _0x290b71(_0x1b7b22,_0x42d161,_0x763efe){const _0x45df7b=_0x313a4d,_0x244899=this;_0x244899[_0x45df7b(0x1b1f)]=_0x763efe['baseUrl'],_0x244899[_0x45df7b(0x271e)]={..._0x1b7b22,'buildDate':_0x3a5de9(_0x1b7b22['buildDate']),'commitDate':_0x3a5de9(_0x1b7b22[_0x45df7b(0x4d7)]),'client':{'name':_0x45df7b(0x62c),'version':_0x45df7b(0x1293),'shortHash':'9666e78','branch':_0x45df7b(0xf6),'tag':'','committedOn':_0x45df7b(0x1572),'buildDate':_0x45df7b(0xc43)}},_0x244899[_0x45df7b(0x2690)]=_0x42d161;}const _0x253a7a=_0x290b71;;_0x3e7ade[_0x313a4d(0x11c2)]=['$stateProvider'];function _0x3e7ade(_0x3ac845){const _0x11b99e=_0x313a4d;_0x3ac845[_0x11b99e(0x13d6)](_0x11b99e(0x2542),{'url':_0x11b99e(0x331),'views':{'content@app':{'templateUrl':_0x55e607,'controller':'AboutController\x20as\x20vm'}},'resolve':{'info':['apiResolver',function(_0x424153){const _0x30026f=_0x11b99e;return _0x424153[_0x30026f(0x2922)](_0x30026f(0x17a2));}]},'authenticate':!![],'permissionId':0x640,'bodyClass':_0x11b99e(0x2cb)});}angular[_0x313a4d(0x2528)](_0x313a4d(0x2542),[])['config'](_0x3e7ade)['controller']('AboutController',_0x253a7a);;_0x5666c2[_0x313a4d(0x11c2)]=[_0x313a4d(0x921),_0x313a4d(0x695)];function _0x5666c2(_0x12bbae,_0x1d4182){const _0x37a7ac=_0x313a4d;_0x12bbae[_0x37a7ac(0x13d6)](_0x37a7ac(0x23ba),{'abstract':!![],'url':'/help'}),_0x1d4182['addPart']('app/main/apps/help');}angular['module'](_0x313a4d(0x23ba),[_0x313a4d(0xdad),_0x313a4d(0x962),_0x313a4d(0x23c7),_0x313a4d(0x963),_0x313a4d(0x19e2),'ckeditor',_0x313a4d(0x195b),'ngAria',_0x313a4d(0xc86),_0x313a4d(0x1f5f),'mwFormBuilder',_0x313a4d(0xfb2),_0x313a4d(0x1e57),_0x313a4d(0x581),_0x313a4d(0x1bd2),_0x313a4d(0x1792),_0x313a4d(0x1b65),_0x313a4d(0x1626),_0x313a4d(0x2713),_0x313a4d(0x11df),_0x313a4d(0x2542)])[_0x313a4d(0x989)](_0x5666c2);;const _0x5a1655=_0x4acfac['p']+_0x313a4d(0x1d0a);;const _0x434199=_0x4acfac['p']+_0x313a4d(0x27e2);;_0x5e4f6d['$inject']=[_0x313a4d(0x910),_0x313a4d(0x1862),_0x313a4d(0xd08),'$mdDialog','$q',_0x313a4d(0x214b),_0x313a4d(0x1fe4),_0x313a4d(0x1991),_0x313a4d(0x9e0),_0x313a4d(0x247f),_0x313a4d(0xa87),_0x313a4d(0x2690),_0x313a4d(0x15b9),'crudPermissions'];function _0x5e4f6d(_0x5eb04b,_0x129dcd,_0x2218c6,_0x3d9962,_0x1d17be,_0x1a0933,_0x43c498,_0x419ec5,_0x1752a8,_0x3700d4,_0x398d02,_0x59dfc6,_0x1c9a9d,_0x48c5a0){const _0x267225=_0x313a4d,_0x518e0a=this;_0x518e0a[_0x267225(0x2321)]=_0x398d02[_0x267225(0xb12)](),_0x518e0a['errors']=[],_0x518e0a[_0x267225(0x15b9)]=_0x1c9a9d,_0x518e0a[_0x267225(0x2690)]=_0x59dfc6,_0x518e0a[_0x267225(0x2514)]=_0x48c5a0,_0x518e0a[_0x267225(0x855)]={},_0x518e0a['passwordPattern']=_0x518e0a[_0x267225(0x15b9)]&&_0x518e0a[_0x267225(0x15b9)][_0x267225(0x976)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x518e0a[_0x267225(0x1189)]=_0x267225(0x1fcd),_0x518e0a['project']=angular[_0x267225(0x235a)](_0x1752a8),_0x518e0a[_0x267225(0x1991)]=_0x419ec5,_0x518e0a[_0x267225(0x125c)]=![];!_0x518e0a[_0x267225(0x9e0)]&&(_0x518e0a[_0x267225(0x9e0)]={'enableUncompleteSave':!![],'sendUnpauseOnSubmit':!![]},_0x518e0a[_0x267225(0x1189)]=_0x267225(0x8d0),_0x518e0a[_0x267225(0x125c)]=!![]);_0x518e0a[_0x267225(0x8ad)]=_0x481ab4,_0x518e0a[_0x267225(0x1994)]=_0x22af33,_0x518e0a[_0x267225(0x767)]=_0x538367,_0x518e0a[_0x267225(0xe73)]=_0x1aa24c,_0x518e0a[_0x267225(0x13f3)]=_0x5a31d9;function _0x481ab4(){const _0x4798a7=_0x267225;_0x518e0a['errors']=[],_0x3700d4[_0x4798a7(0x20c8)][_0x4798a7(0x1e3)](_0x518e0a[_0x4798a7(0x9e0)])['$promise'][_0x4798a7(0x146b)](function(_0x9c60c6){const _0x192882=_0x4798a7;_0x518e0a['projects'][_0x192882(0xb3d)](_0x9c60c6[_0x192882(0x2488)]()),_0x43c498['success']({'title':'Project\x20properly\x20created','msg':_0x518e0a[_0x192882(0x9e0)][_0x192882(0x19eb)]?_0x518e0a['project'][_0x192882(0x19eb)]+'\x20has\x20been\x20created!':''}),_0x5a31d9(_0x9c60c6);})[_0x4798a7(0x129e)](function(_0xf28310){const _0x39afaa=_0x4798a7;if(_0xf28310['data']&&_0xf28310['data'][_0x39afaa(0xcef)]&&_0xf28310[_0x39afaa(0x524)][_0x39afaa(0xcef)][_0x39afaa(0x402)]){_0x518e0a[_0x39afaa(0xcef)]=_0xf28310['data'][_0x39afaa(0xcef)]||[{'message':_0xf28310[_0x39afaa(0xd5f)](),'type':_0x39afaa(0x383)}];for(let _0x38574e=0x0;_0x38574e<_0xf28310['data'][_0x39afaa(0xcef)][_0x39afaa(0x402)];_0x38574e+=0x1){_0x43c498[_0x39afaa(0x1980)]({'title':_0xf28310[_0x39afaa(0x524)]['errors'][_0x38574e]['type'],'msg':_0xf28310['data']['errors'][_0x38574e]['message']});}}else _0x43c498['error']({'title':_0xf28310[_0x39afaa(0x107b)]?_0x39afaa(0x262a)+_0xf28310[_0x39afaa(0x107b)]+_0x39afaa(0x1315)+_0xf28310[_0x39afaa(0x167f)]:_0x39afaa(0x383),'msg':_0xf28310[_0x39afaa(0x524)]?JSON['stringify'](_0xf28310['data'][_0x39afaa(0x7fd)]):_0xf28310[_0x39afaa(0xd5f)]()});});}function _0x22af33(){const _0x36e588=_0x267225;_0x518e0a['errors']=[],_0x3700d4[_0x36e588(0x20c8)][_0x36e588(0x18e1)]({'id':_0x518e0a['project']['id']},_0x518e0a['project'])['$promise'][_0x36e588(0x146b)](function(_0x32e08a){const _0x455013=_0x36e588,_0x15fbf9=_0x3f65c0()['find'](_0x518e0a[_0x455013(0x1991)],{'id':_0x32e08a['id']});_0x15fbf9&&_0x3f65c0()[_0x455013(0x168d)](_0x15fbf9,_0x3f65c0()[_0x455013(0x40e)](_0x32e08a['toJSON'](),_0x3f65c0()[_0x455013(0x627)](_0x15fbf9))),_0x43c498[_0x455013(0x1c75)]({'title':_0x455013(0x81e),'msg':_0x518e0a[_0x455013(0x9e0)][_0x455013(0x19eb)]?_0x518e0a['project']['name']+'\x20has\x20been\x20saved!':''}),_0x5a31d9(_0x32e08a);})['catch'](function(_0x3ee438){const _0x852723=_0x36e588;if(_0x3ee438['data']&&_0x3ee438[_0x852723(0x524)][_0x852723(0xcef)]&&_0x3ee438[_0x852723(0x524)][_0x852723(0xcef)][_0x852723(0x402)]){_0x518e0a[_0x852723(0xcef)]=_0x3ee438[_0x852723(0x524)][_0x852723(0xcef)]||[{'message':_0x3ee438[_0x852723(0xd5f)](),'type':_0x852723(0x229b)}];for(let _0x2d6563=0x0;_0x2d6563<_0x3ee438[_0x852723(0x524)][_0x852723(0xcef)][_0x852723(0x402)];_0x2d6563++){_0x43c498['error']({'title':_0x3ee438['data'][_0x852723(0xcef)][_0x2d6563][_0x852723(0x1142)],'msg':_0x3ee438[_0x852723(0x524)][_0x852723(0xcef)][_0x2d6563]['message']});}}else _0x43c498[_0x852723(0x1980)]({'title':_0x3ee438['status']?_0x852723(0x262a)+_0x3ee438[_0x852723(0x107b)]+_0x852723(0x1315)+_0x3ee438[_0x852723(0x167f)]:'api.jscriptyProject.update','msg':_0x3ee438['data']?JSON[_0x852723(0x10bb)](_0x3ee438[_0x852723(0x524)]['message']):_0x3ee438[_0x852723(0xd5f)]()});});}function _0x538367(_0x51e082){const _0x277a1e=_0x267225;_0x518e0a[_0x277a1e(0xcef)]=[];const _0x39b871=_0x3d9962[_0x277a1e(0x1e8a)]()[_0x277a1e(0x1189)]('Are\x20you\x20sure?')[_0x277a1e(0x80f)]('The\x20project\x20will\x20be\x20deleted.')[_0x277a1e(0x4bd)](_0x277a1e(0x1c81))['ok']('Delete')['cancel'](_0x277a1e(0xcf0))[_0x277a1e(0x1f27)](_0x51e082);_0x3d9962[_0x277a1e(0x2615)](_0x39b871)[_0x277a1e(0x146b)](function(){const _0x5a6a27=_0x277a1e;_0x3700d4[_0x5a6a27(0x20c8)][_0x5a6a27(0x1fac)]({'id':_0x518e0a[_0x5a6a27(0x9e0)]['id']})[_0x5a6a27(0x2945)][_0x5a6a27(0x146b)](function(){const _0x5e2127=_0x5a6a27;_0x3f65c0()[_0x5e2127(0x2640)](_0x518e0a[_0x5e2127(0x1991)],{'id':_0x518e0a[_0x5e2127(0x9e0)]['id']}),_0x43c498[_0x5e2127(0x1c75)]({'title':_0x5e2127(0x182f),'msg':(_0x518e0a['project'][_0x5e2127(0x19eb)]||_0x5e2127(0x9e0))+'\x20has\x20been\x20deleted!'}),_0x5a31d9(_0x518e0a[_0x5e2127(0x9e0)]);})[_0x5a6a27(0x129e)](function(_0x2eaf16){const _0x353da6=_0x5a6a27;if(_0x2eaf16[_0x353da6(0x524)]&&_0x2eaf16[_0x353da6(0x524)][_0x353da6(0xcef)]&&_0x2eaf16['data'][_0x353da6(0xcef)]['length']){_0x518e0a[_0x353da6(0xcef)]=_0x2eaf16[_0x353da6(0x524)][_0x353da6(0xcef)]||[{'message':_0x2eaf16[_0x353da6(0xd5f)](),'type':_0x353da6(0x14e2)}];for(let _0x45b5a2=0x0;_0x45b5a2<_0x2eaf16['data']['errors']['length'];_0x45b5a2++){_0x43c498[_0x353da6(0x1980)]({'title':_0x2eaf16[_0x353da6(0x524)][_0x353da6(0xcef)][_0x45b5a2][_0x353da6(0x1142)],'msg':_0x2eaf16[_0x353da6(0x524)][_0x353da6(0xcef)][_0x45b5a2]['message']});}}else _0x43c498[_0x353da6(0x1980)]({'title':_0x2eaf16['status']?_0x353da6(0x262a)+_0x2eaf16[_0x353da6(0x107b)]+_0x353da6(0x1315)+_0x2eaf16[_0x353da6(0x167f)]:_0x353da6(0x14e2),'msg':_0x2eaf16[_0x353da6(0x524)]?JSON[_0x353da6(0x10bb)](_0x2eaf16[_0x353da6(0x524)][_0x353da6(0x7fd)]):_0x2eaf16[_0x353da6(0x7fd)]||_0x2eaf16[_0x353da6(0xd5f)]()});});},function(){});}function _0x1aa24c(_0x5bf655){return _0x5bf655===null?undefined:new Date(_0x5bf655);}function _0x5a31d9(_0x16f371){_0x3d9962['hide'](_0x16f371);}}const _0x5a3896=_0x5e4f6d;;_0x4f6fae['$inject']=['$mdDialog',_0x313a4d(0x4d8),_0x313a4d(0x1aa9),_0x313a4d(0x247f),'toasty','dateFilterLocalizationFactory'];function _0x4f6fae(_0xc578ec,_0x5ce624,_0x2def17,_0x261df4,_0x44bc7c,_0x4170bb){const _0x143d7e=_0x313a4d,_0x2b0417=this;_0x2b0417[_0x143d7e(0x9e0)]={},_0x2b0417['localizationMap']=_0x4170bb;const _0x5d918a=new Date();_0x5d918a[_0x143d7e(0x25cd)](0x0,0x0,0x0,0x0),_0x2b0417[_0x143d7e(0x1237)]={'dateStart':new Date(_0x5d918a['getFullYear'](),_0x5d918a[_0x143d7e(0x2185)](),0x1),'dateEnd':new Date(_0x5d918a[_0x143d7e(0x1d3)](),_0x5d918a[_0x143d7e(0x2185)]()+0x1,0x0),'selectedTemplate':'TM'},_0x2b0417[_0x143d7e(0x5aa)]=_0x3ae2be,_0x2b0417[_0x143d7e(0x1650)]=_0x52856e,_0x2b0417[_0x143d7e(0x13e1)]=_0x1dabd0;function _0x1dabd0(){const _0x5b3b8e=_0x143d7e;return _0x2b0417[_0x5b3b8e(0x18d3)]=![],_0x261df4[_0x5b3b8e(0x20c8)][_0x5b3b8e(0x13e1)]({'id':_0x2b0417[_0x5b3b8e(0x9e0)]['id'],'sort':_0x5b3b8e(0x1152),'createdAt':{'$gte':_0x2deec6()(_0x2b0417[_0x5b3b8e(0x1237)][_0x5b3b8e(0x1aca)])[_0x5b3b8e(0x387)](0x0,_0x5b3b8e(0xdfa))[_0x5b3b8e(0x387)](0x0,'minutes')['add'](0x0,_0x5b3b8e(0xcf5))[_0x5b3b8e(0x65f)](0x0,!![])['format'](),'$lte':_0x2deec6()(_0x2b0417[_0x5b3b8e(0x1237)]['dateEnd'])[_0x5b3b8e(0x387)](0x17,_0x5b3b8e(0xdfa))[_0x5b3b8e(0x387)](0x3b,_0x5b3b8e(0x142))['add'](0x3b,_0x5b3b8e(0xcf5))['utcOffset'](0x0,!![])['format']()},'nolimit':!![]})[_0x5b3b8e(0x2945)]['then'](function(_0x1c2e47){const _0x1f13aa=_0x5b3b8e;if(_0x1c2e47&&_0x1c2e47[_0x1f13aa(0x19c7)]&&typeof _0x1c2e47[_0x1f13aa(0x51c)]!==_0x1f13aa(0x2274)){_0x2b0417[_0x1f13aa(0x1251)]={};for(let _0x35da1b=0x0,_0x5e7659=_0x1c2e47['count'];_0x35da1b<_0x5e7659;_0x35da1b++){_0x1c2e47['rows'][_0x35da1b][_0x1f13aa(0x217e)]&&(_0x2b0417[_0x1f13aa(0x18d3)]=!![],typeof _0x2b0417['answers'][_0x1c2e47[_0x1f13aa(0x19c7)][_0x35da1b][_0x1f13aa(0x217e)]]===_0x1f13aa(0x2274)&&(_0x2b0417[_0x1f13aa(0x1251)][_0x1c2e47[_0x1f13aa(0x19c7)][_0x35da1b]['questionId']]={'question':_0x1c2e47['rows'][_0x35da1b]['question'],'answers':{},'sum':0x0}),_0x1c2e47[_0x1f13aa(0x19c7)][_0x35da1b]['answer']===''&&(_0x1c2e47[_0x1f13aa(0x19c7)][_0x35da1b][_0x1f13aa(0x2336)]=_0x1f13aa(0xf62)),_0x2b0417[_0x1f13aa(0x1251)][_0x1c2e47[_0x1f13aa(0x19c7)][_0x35da1b][_0x1f13aa(0x217e)]][_0x1f13aa(0x1251)][_0x1c2e47['rows'][_0x35da1b]['answer']]?_0x2b0417['answers'][_0x1c2e47[_0x1f13aa(0x19c7)][_0x35da1b][_0x1f13aa(0x217e)]][_0x1f13aa(0x1251)][_0x1c2e47[_0x1f13aa(0x19c7)][_0x35da1b][_0x1f13aa(0x2336)]]+=0x1:_0x2b0417[_0x1f13aa(0x1251)][_0x1c2e47[_0x1f13aa(0x19c7)][_0x35da1b][_0x1f13aa(0x217e)]][_0x1f13aa(0x1251)][_0x1c2e47[_0x1f13aa(0x19c7)][_0x35da1b]['answer']]=0x1,_0x2b0417['answers'][_0x1c2e47[_0x1f13aa(0x19c7)][_0x35da1b]['questionId']][_0x1f13aa(0x238d)]+=0x1);}}})[_0x5b3b8e(0x129e)](function(_0x5e973b){const _0xa2a6e1=_0x5b3b8e;_0x44bc7c[_0xa2a6e1(0x1980)]({'title':_0x5e973b[_0xa2a6e1(0x107b)]?_0xa2a6e1(0x262a)+_0x5e973b[_0xa2a6e1(0x107b)]+'\x20-\x20'+_0x5e973b[_0xa2a6e1(0x167f)]:'SYSTEM:GETANSWERS','msg':_0x5e973b[_0xa2a6e1(0x524)]?JSON[_0xa2a6e1(0x10bb)](_0x5e973b[_0xa2a6e1(0x524)]):_0x5e973b[_0xa2a6e1(0xd5f)]()});});}function _0x3ae2be(_0x145875){const _0x547f9a=_0x143d7e;_0x2b0417[_0x547f9a(0x9e0)]=_0x145875,_0x2b0417[_0x547f9a(0x13e1)]();}function _0x52856e(){const _0x38e8cb=_0x143d7e;return _0x261df4[_0x38e8cb(0x20c8)][_0x38e8cb(0x1650)]({'id':_0x2b0417[_0x38e8cb(0x9e0)]['id'],'startTime':{'$gte':_0x2b0417['pickerModel']['dateStart'],'$lte':_0x2deec6()(_0x2b0417[_0x38e8cb(0x1237)][_0x38e8cb(0x1b6d)])['add'](0x17,_0x38e8cb(0xdfa))['add'](0x3b,_0x38e8cb(0x142))[_0x38e8cb(0x387)](0x3b,_0x38e8cb(0xcf5))[_0x38e8cb(0x22b0)]()},'nolimit':!![]})[_0x38e8cb(0x2945)][_0x38e8cb(0x146b)](function(_0x1e485a){const _0x3d0dee=_0x38e8cb;if(typeof _0x1e485a[_0x3d0dee(0x402)]!=='undefined'){const _0x10c0cd=[_0x1e485a[_0x3d0dee(0x2eb)]],_0x42428c=new Blob(_0x10c0cd,{'type':_0x1e485a[_0x3d0dee(0x1142)]}),_0x5a8889=window['document'][_0x3d0dee(0x24ec)]('a');_0x5a8889[_0x3d0dee(0x1652)]('href',URL[_0x3d0dee(0x1c58)](_0x42428c)),_0x5a8889[_0x3d0dee(0x1652)](_0x3d0dee(0x15b1),_0x3d0dee(0x2a4)+_0x2b0417[_0x3d0dee(0x9e0)]['id']+'.csv'),_0x5a8889[_0x3d0dee(0x1fa5)]();}else _0x44bc7c[_0x3d0dee(0x271e)]({'title':_0x3d0dee(0x6bb),'msg':_0x3d0dee(0x2288)});})['catch'](function(_0x40d3e7){const _0x35bd88=_0x38e8cb;_0x44bc7c[_0x35bd88(0x1980)]({'title':_0x40d3e7[_0x35bd88(0x107b)]?_0x35bd88(0x262a)+_0x40d3e7['status']+'\x20-\x20'+_0x40d3e7[_0x35bd88(0x167f)]:_0x35bd88(0x42a),'msg':_0x40d3e7[_0x35bd88(0x524)]?JSON[_0x35bd88(0x10bb)](_0x40d3e7[_0x35bd88(0x524)]):_0x40d3e7[_0x35bd88(0xd5f)]()});});}}const _0x56dc54=_0x4f6fae;;function _0x178651(){const _0x57f02e=_0x313a4d,_0x2caf2d=this;_0x2caf2d[_0x57f02e(0x9e0)]={},_0x2caf2d[_0x57f02e(0x1b7a)]={'questionTypes':['text','textarea','radio',_0x57f02e(0xd6d),'select',_0x57f02e(0x181),_0x57f02e(0x1a10),_0x57f02e(0x1df0),'email',_0x57f02e(0x21a0),_0x57f02e(0x20cc)],'elementTypes':[_0x57f02e(0x1246),_0x57f02e(0x8b1)]},_0x2caf2d[_0x57f02e(0x5aa)]=_0x4345a4,_0x2caf2d[_0x57f02e(0xc87)]=_0x2937a9;function _0x2937a9(_0xda9850){const _0xda00c1=_0x57f02e;if(_0x3f65c0()[_0xda00c1(0x1b36)](_0xda9850))return![];try{JSON[_0xda00c1(0x975)](_0xda9850);}catch(_0x3755f7){return![];}return!![];}function _0x4345a4(_0x39b807){const _0x55ebce=_0x57f02e;_0x2caf2d['project']=_0x39b807;if(_0x3f65c0()[_0x55ebce(0x18a2)](_0x39b807[_0x55ebce(0x21e6)]))_0x2caf2d[_0x55ebce(0x9e0)][_0x55ebce(0x21e6)]=_0x39b807[_0x55ebce(0x21e6)];else _0x2caf2d['isJsonString'](_0x39b807[_0x55ebce(0x21e6)])?_0x2caf2d[_0x55ebce(0x9e0)]['formData']=JSON['parse'](_0x39b807[_0x55ebce(0x21e6)]):_0x2caf2d[_0x55ebce(0x9e0)][_0x55ebce(0x21e6)]={};}}const _0x492fd3=_0x178651;;_0x576c26[_0x313a4d(0x11c2)]=[_0x313a4d(0x10e8),_0x313a4d(0x1862),_0x313a4d(0x1fe4),_0x313a4d(0x247f),_0x313a4d(0x9e0),'projects','$translate'];function _0x576c26(_0x5d306b,_0x265f12,_0x3d1f16,_0x17c3a5,_0x427864,_0x5da58e,_0x5d0c5b){const _0xe57a7d=_0x313a4d,_0x2ba081=this;_0x2ba081['newProject']=!![],_0x2ba081[_0xe57a7d(0x9e0)]=angular[_0xe57a7d(0x235a)](_0x427864),_0x2ba081[_0xe57a7d(0x1991)]=_0x5da58e,_0x2ba081[_0xe57a7d(0x1189)]=_0x5d0c5b[_0xe57a7d(0xde)]('JSCRIPTY.CLONE_PROJECT');_0x427864&&_0x427864[_0xe57a7d(0x19eb)]&&(_0x2ba081[_0xe57a7d(0x1189)]+=':\x20'+_0x427864[_0xe57a7d(0x19eb)]);_0x2ba081[_0xe57a7d(0x1834)]=_0x3b11cb,_0x2ba081['closeDialog']=_0x59b555;function _0x3b11cb(){const _0x53b311=_0xe57a7d;return _0x17c3a5[_0x53b311(0x20c8)]['clone']({'id':_0x427864['id']},_0x2ba081[_0x53b311(0x9e0)])['$promise'][_0x53b311(0x146b)](function(_0x5267db){const _0x251c25=_0x53b311;_0x2ba081[_0x251c25(0x1991)][_0x251c25(0xb3d)](_0x5267db[_0x251c25(0x2488)]()),_0x3d1f16[_0x251c25(0x1c75)]({'title':_0x251c25(0x161e),'msg':_0x2ba081[_0x251c25(0x9e0)][_0x251c25(0x19eb)]?_0x2ba081[_0x251c25(0x9e0)][_0x251c25(0x19eb)]+'\x20has\x20been\x20cloned!':''}),_0x265f12['go'](_0x251c25(0x8c2),{'id':_0x5267db['id']}),_0x59b555(_0x5267db);})[_0x53b311(0x129e)](function(_0x42283d){const _0x1a5a67=_0x53b311;if(_0x42283d[_0x1a5a67(0x524)]&&_0x42283d[_0x1a5a67(0x524)][_0x1a5a67(0xcef)]&&_0x42283d[_0x1a5a67(0x524)][_0x1a5a67(0xcef)]['length']){_0x2ba081[_0x1a5a67(0xcef)]=_0x42283d[_0x1a5a67(0x524)][_0x1a5a67(0xcef)]||[{'message':_0x42283d[_0x1a5a67(0xd5f)](),'type':'api.jscriptyProject.clone'}];for(let _0x2146af=0x0;_0x2146af<_0x42283d[_0x1a5a67(0x524)][_0x1a5a67(0xcef)][_0x1a5a67(0x402)];_0x2146af+=0x1){_0x3d1f16[_0x1a5a67(0x1980)]({'title':_0x42283d[_0x1a5a67(0x524)]['errors'][_0x2146af][_0x1a5a67(0x1142)],'msg':_0x42283d[_0x1a5a67(0x524)]['errors'][_0x2146af][_0x1a5a67(0x7fd)]});}}else _0x3d1f16[_0x1a5a67(0x1980)]({'title':_0x42283d[_0x1a5a67(0x107b)]?_0x1a5a67(0x262a)+_0x42283d[_0x1a5a67(0x107b)]+_0x1a5a67(0x1315)+_0x42283d[_0x1a5a67(0x167f)]:_0x1a5a67(0x227d),'msg':_0x42283d[_0x1a5a67(0x524)]?JSON[_0x1a5a67(0x10bb)](_0x42283d[_0x1a5a67(0x524)][_0x1a5a67(0x7fd)]):_0x42283d[_0x1a5a67(0xd5f)]()});});}function _0x59b555(_0x33406b){const _0x489556=_0xe57a7d;_0x5d306b[_0x489556(0x2458)](_0x33406b);}}const _0x109939=_0x576c26;;_0x1f8582[_0x313a4d(0x11c2)]=['$q',_0x313a4d(0x10e8),_0x313a4d(0x910)];function _0x1f8582(_0x3f135e,_0x2a6ad5,_0x5687d3){const _0x5047c4=_0x313a4d,_0x390b58=this;_0x390b58[_0x5047c4(0x9e0)]={},_0x390b58[_0x5047c4(0x2719)]={},_0x390b58['formViewer']={},_0x390b58[_0x5047c4(0x5aa)]=_0x2b05b4,_0x390b58['onSubmit']=_0x86fe38,_0x390b58[_0x5047c4(0xe50)]=_0x43d16c;function _0x2b05b4(_0x2f7a9d){const _0x5228ff=_0x5047c4;_0x390b58[_0x5228ff(0x9e0)]=_0x2f7a9d,_0x5687d3[_0x5228ff(0x16ad)](_0x5228ff(0xa54),function(_0x30dc3c,_0x54fc80){const _0x33a189=_0x5228ff;if(_0x54fc80['currentPage']&&_0x390b58['project'][_0x33a189(0x21e6)]&&_0x390b58[_0x33a189(0x9e0)][_0x33a189(0x21e6)][_0x33a189(0x28cc)])for(let _0x149df0=0x0,_0x4f63d4=_0x390b58[_0x33a189(0x9e0)][_0x33a189(0x21e6)][_0x33a189(0x28cc)][_0x33a189(0x402)];_0x149df0<_0x4f63d4;_0x149df0++){if(_0x54fc80['currentPage']['number']<_0x149df0+0x1&&_0x390b58['project'][_0x33a189(0x21e6)]['pages'][_0x149df0]['elements'])for(let _0x2efde9=0x0,_0x13cf0e=_0x390b58[_0x33a189(0x9e0)][_0x33a189(0x21e6)][_0x33a189(0x28cc)][_0x149df0]['elements'][_0x33a189(0x402)];_0x2efde9<_0x13cf0e;_0x2efde9++){_0x390b58[_0x33a189(0x9e0)][_0x33a189(0x21e6)][_0x33a189(0x28cc)][_0x149df0]['elements'][_0x2efde9][_0x33a189(0x1142)]===_0x33a189(0x1246)&&_0x390b58[_0x33a189(0x9e0)][_0x33a189(0x21e6)][_0x33a189(0x28cc)][_0x149df0]['elements'][_0x2efde9][_0x33a189(0x1246)]&&delete _0x390b58['responseData'][_0x390b58[_0x33a189(0x9e0)][_0x33a189(0x21e6)][_0x33a189(0x28cc)][_0x149df0]['elements'][_0x2efde9][_0x33a189(0x1246)]['id']];}}});}function _0x86fe38(_0x3f9361){const _0x44a231=_0x5047c4,_0x28c1e6=_0x3f135e[_0x44a231(0xce3)](),_0x3bfbf8=_0x2a6ad5[_0x44a231(0x1e8a)]()['title']('Would\x20you\x20like\x20to\x20save\x20your\x20survey?')[_0x44a231(0x199c)]('')[_0x44a231(0x4bd)](_0x44a231(0x2a3))[_0x44a231(0x1f27)](_0x3f9361)['ok'](_0x44a231(0x4de))[_0x44a231(0x6c3)](_0x44a231(0x39a));return _0x2a6ad5[_0x44a231(0x2615)](_0x3bfbf8)[_0x44a231(0x146b)](function(){const _0x4848dc=_0x44a231;_0x28c1e6[_0x4848dc(0x2922)](!![]);},function(){_0x28c1e6['reject']();}),_0x28c1e6[_0x44a231(0xb9c)];}function _0x43d16c(){const _0x43803d=_0x5047c4;_0x390b58[_0x43803d(0x3dc)][_0x43803d(0x2450)]&&_0x390b58[_0x43803d(0x3dc)][_0x43803d(0x2450)]();}}const _0x1b39d6=_0x1f8582;;const _0x49c76a=_0x4acfac['p']+_0x313a4d(0x103b);;_0x194544[_0x313a4d(0x11c2)]=[_0x313a4d(0x23df),_0x313a4d(0x910),_0x313a4d(0x1862),'$q',_0x313a4d(0x214b),'$timeout','$mdDialog','$document',_0x313a4d(0x1fe4),_0x313a4d(0x247f),_0x313a4d(0xa87)];function _0x194544(_0x501ebe,_0xf7eadb,_0x626906,_0x504c5a,_0x2ecf45,_0x1bd346,_0x86f2d4,_0x5e129a,_0x36c6b0,_0x3ebdf4,_0x402c44){const _0x1947f2=_0x313a4d,_0x224193=this;_0x224193[_0x1947f2(0x2321)]=_0x402c44['getCurrentUser'](),_0x224193['project']={},_0x224193[_0x1947f2(0x1753)]={'count':0x0,'rows':[]},_0x224193[_0x1947f2(0x773)]=[],_0x224193[_0x1947f2(0x2514)],_0x224193['query']={'fields':'createdAt,updatedAt,id,starttime,endtime,membername,calleridnum,completed','sort':_0x1947f2(0xc89),'limit':0xa,'page':0x1},_0x224193[_0x1947f2(0x5aa)]=_0x50e007,_0x224193[_0x1947f2(0x19b4)]=_0x49988c,_0x224193[_0x1947f2(0x1c75)]=_0x31d6a1,_0x224193[_0x1947f2(0x218c)]=_0x41c9ef,_0x224193[_0x1947f2(0xb5d)]=_0x562467,_0x224193['showQuestionsProjectSession']=_0xfaeeaa,_0x224193['exportSelectedProjectSessions']=_0x471c04,_0x224193['deleteProjectSession']=_0x5e0cb9,_0x224193[_0x1947f2(0x2625)]=_0x496442;function _0x50e007(_0x48d6fa,_0x44cf51){const _0x3a81e0=_0x1947f2;_0x224193[_0x3a81e0(0x9e0)]=_0x48d6fa,_0x224193[_0x3a81e0(0x2514)]=typeof _0x44cf51!==_0x3a81e0(0x2274)?_0x44cf51:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x224193[_0x3a81e0(0x1a56)]['id']=_0x224193['project']['id'],_0x41c9ef();}function _0x49988c(_0x8da484,_0x12e5d0){const _0x3230a3=_0x1947f2,_0x5ccab2=_0x86f2d4[_0x3230a3(0x1e8a)]()[_0x3230a3(0x1189)](_0x3230a3(0xae1))[_0x3230a3(0x1cbe)](_0x3230a3(0x16d3)+(_0x8da484[_0x3230a3(0x19eb)]||_0x8da484['id']&&_0x3f65c0()[_0x3230a3(0x21cf)](_0x3230a3(0x124a))+_0x8da484['id']||_0x3230a3(0x258b))+_0x3230a3(0x252f)+_0x3230a3(0xe01))[_0x3230a3(0x4bd)]('delete\x20session')[_0x3230a3(0x1f27)](_0x12e5d0)['ok']('OK')[_0x3230a3(0x6c3)](_0x3230a3(0x39a));_0x86f2d4[_0x3230a3(0x2615)](_0x5ccab2)['then'](function(){_0x5e0cb9(_0x8da484);},function(){const _0x510bab=_0x3230a3;console[_0x510bab(0x1a74)](_0x510bab(0x39a));});}function _0x31d6a1(_0xc20f2b){_0x224193['projectSessions']=_0xc20f2b||{'count':0x0,'rows':[]};}function _0x41c9ef(){const _0x579999=_0x1947f2;_0x224193[_0x579999(0x1a56)][_0x579999(0x145d)]=(_0x224193['query'][_0x579999(0x844)]-0x1)*_0x224193[_0x579999(0x1a56)][_0x579999(0x221e)],_0x224193[_0x579999(0xb9c)]=_0x3ebdf4[_0x579999(0x20c8)]['getSessions'](_0x224193[_0x579999(0x1a56)],_0x31d6a1)['$promise'];}function _0x562467(_0x39aa52,_0x33bb6c){const _0x43538d=_0x1947f2;_0x86f2d4[_0x43538d(0x2615)]({'controller':'CreateOrEditSessionDialogController','controllerAs':'vm','templateUrl':_0x49c76a,'parent':angular[_0x43538d(0x1853)](_0x5e129a['body']),'targetEvent':_0x39aa52,'clickOutsideToClose':!![],'locals':{'project':_0x224193[_0x43538d(0x9e0)],'session':_0x33bb6c,'sessions':_0x224193[_0x43538d(0x1753)][_0x43538d(0x19c7)],'license':null,'setting':null,'crudPermissions':_0x224193['crudPermissions']}});}function _0xfaeeaa(_0x5533e4,_0x182322){const _0x38ea36=_0x1947f2;_0x86f2d4[_0x38ea36(0x2615)]({'controller':_0x38ea36(0x158b),'controllerAs':'vm','templateUrl':_0x49c76a,'parent':angular[_0x38ea36(0x1853)](_0x5e129a[_0x38ea36(0x2586)]),'targetEvent':_0x5533e4,'clickOutsideToClose':!![],'resolve':{'questions':[_0x38ea36(0x362),function(_0x2fd07c){const _0x14b7e3=_0x38ea36;return _0x2fd07c['resolve']('jscriptySessionReport@getQuestions',{'fields':_0x14b7e3(0x1f80),'sort':'id','id':_0x182322['id']});}]},'locals':{'project':_0x224193[_0x38ea36(0x9e0)],'session':_0x182322}});}function _0x5e0cb9(_0x343a95){const _0x25a1cd=_0x1947f2;_0x3ebdf4['jscriptySessionReport']['delete']({'id':_0x343a95['id']})[_0x25a1cd(0x2945)][_0x25a1cd(0x146b)](function(){const _0x32b829=_0x25a1cd;_0x3f65c0()[_0x32b829(0x2640)](_0x224193['projectSessions'][_0x32b829(0x19c7)],{'id':_0x343a95['id']}),_0x224193[_0x32b829(0x1753)][_0x32b829(0x51c)]-=0x1,!_0x224193[_0x32b829(0x1753)]['rows'][_0x32b829(0x402)]&&_0x41c9ef(),_0x36c6b0[_0x32b829(0x1c75)]({'title':_0x32b829(0xbbf),'msg':_0x343a95[_0x32b829(0x19eb)]?_0x343a95['name']+_0x32b829(0x23e3):''});})[_0x25a1cd(0x129e)](function(_0x3ee55f){const _0x20ffd1=_0x25a1cd;if(_0x3ee55f[_0x20ffd1(0x524)]&&_0x3ee55f['data']['errors']&&_0x3ee55f[_0x20ffd1(0x524)]['errors']['length']){_0x224193[_0x20ffd1(0xcef)]=_0x3ee55f[_0x20ffd1(0x524)]['errors']||[{'message':_0x3ee55f[_0x20ffd1(0xd5f)](),'type':_0x20ffd1(0x267a)}];for(let _0xf288a=0x0;_0xf288a<_0x3ee55f[_0x20ffd1(0x524)][_0x20ffd1(0xcef)][_0x20ffd1(0x402)];_0xf288a++){_0x36c6b0[_0x20ffd1(0x1980)]({'title':_0x3ee55f['data'][_0x20ffd1(0xcef)][_0xf288a][_0x20ffd1(0x1142)],'msg':_0x3ee55f['data'][_0x20ffd1(0xcef)][_0xf288a][_0x20ffd1(0x7fd)]});}}else _0x36c6b0['error']({'title':_0x3ee55f[_0x20ffd1(0x107b)]?_0x20ffd1(0x262a)+_0x3ee55f[_0x20ffd1(0x107b)]+'\x20-\x20'+_0x3ee55f['statusText']:'SYSTEM:GETjscriptyProject','msg':_0x3ee55f[_0x20ffd1(0x524)]?JSON['stringify'](_0x3ee55f[_0x20ffd1(0x524)][_0x20ffd1(0x7fd)]):_0x3ee55f[_0x20ffd1(0x7fd)]||_0x3ee55f['toString']()});});}function _0x471c04(){const _0x2f5d84=_0x1947f2,_0x3e9803=angular[_0x2f5d84(0x235a)](_0x224193['selectedProjectSessions']);return _0x224193['selectedProjectSessions']=[],_0x3e9803;}function _0x496442(_0x8bf3b1){const _0x4002b7=_0x1947f2,_0x40d696=_0x86f2d4[_0x4002b7(0x1e8a)]()['title'](_0x4002b7(0x24dd))[_0x4002b7(0x1cbe)](_0x4002b7(0x16d3)+_0x224193[_0x4002b7(0x773)][_0x4002b7(0x402)]+_0x4002b7(0x2452)+_0x4002b7(0xe01))['ariaLabel'](_0x4002b7(0x2373))['targetEvent'](_0x8bf3b1)['ok']('OK')['cancel'](_0x4002b7(0x39a));_0x86f2d4['show'](_0x40d696)[_0x4002b7(0x146b)](function(){const _0x550a58=_0x4002b7;_0x224193['selectedProjectSessions'][_0x550a58(0x1df5)](function(_0x30d200){_0x5e0cb9(_0x30d200);}),_0x224193[_0x550a58(0x773)]=[];});}let _0xee63d3=!![],_0x5c5659=0x1;_0xf7eadb[_0x1947f2(0x21e8)](_0x1947f2(0x117f),function(_0x2bd1ed,_0x34c9ac){const _0x1b6a09=_0x1947f2;_0xee63d3?_0x1bd346(function(){_0xee63d3=![];}):(!_0x34c9ac&&(_0x5c5659=_0x224193['query'][_0x1b6a09(0x844)]),_0x2bd1ed!==_0x34c9ac&&(_0x224193[_0x1b6a09(0x1a56)][_0x1b6a09(0x844)]=0x1),!_0x2bd1ed&&(_0x224193[_0x1b6a09(0x1a56)]['page']=_0x5c5659),_0x41c9ef());});}const _0x301762=_0x194544;;_0x35d3bb[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),'$state',_0x313a4d(0xd08),_0x313a4d(0x10e8),_0x313a4d(0x1fe4),_0x313a4d(0x258b),_0x313a4d(0x10cb),_0x313a4d(0x9e0)];function _0x35d3bb(_0x304c17,_0x17c805,_0xa33fc5,_0x55cb6b,_0x20e759,_0x21f56a,_0x4986cd,_0x54cadb){const _0x2cd28f=_0x313a4d,_0x31aa6f=this;_0x31aa6f[_0x2cd28f(0x1189)]=_0x2cd28f(0x1cc0),_0x31aa6f[_0x2cd28f(0x258b)]=_0x21f56a,_0x31aa6f[_0x2cd28f(0x10cb)]=_0x4986cd,_0x31aa6f['project']=_0x54cadb;function _0x3a4cfe(_0x2e9f0b){const _0x2f82a1=_0x2cd28f;_0x55cb6b[_0x2f82a1(0x2458)](_0x2e9f0b);}_0x31aa6f[_0x2cd28f(0x13f3)]=_0x3a4cfe;}const _0x4e646d=_0x35d3bb;;const _0x1e82f0=_0x4acfac['p']+'src/js/modules/main/apps/jscripty/views/projects/edit/clone/clone.html/clone.html';;_0x639da3[_0x313a4d(0x11c2)]=['$state',_0x313a4d(0xd08),_0x313a4d(0x10e8),_0x313a4d(0x4d8),_0x313a4d(0x214b),_0x313a4d(0x2690),_0x313a4d(0x15b9),_0x313a4d(0x247f),_0x313a4d(0x1fe4),_0x313a4d(0xa87),_0x313a4d(0x9e0),_0x313a4d(0x1366)];function _0x639da3(_0x2de47e,_0x1ffe87,_0x41577b,_0x505a23,_0x3cd65a,_0x54ab12,_0x2558c6,_0xb7681d,_0x5d8385,_0x23f76e,_0x4ec333,_0x332ca9){const _0x142f52=_0x313a4d,_0x45ac04=this;_0x45ac04[_0x142f52(0x2321)]=_0x23f76e[_0x142f52(0xb12)](),_0x45ac04['license']=_0x54ab12,_0x45ac04[_0x142f52(0x15b9)]=_0x2558c6,_0x45ac04[_0x142f52(0x2251)]=_0x45ac04[_0x142f52(0x15b9)][_0x142f52(0x976)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x45ac04[_0x142f52(0x1002)]=_0x1ffe87[_0x142f52(0x2414)]()+_0x142f52(0xb0e)+_0x1ffe87['host'](),_0x45ac04[_0x142f52(0x9e0)]=_0x4ec333||_0x2de47e[_0x142f52(0x16a)][_0x142f52(0x9e0)]||{},_0x45ac04['userProfileSection']=_0x332ca9&&_0x332ca9[_0x142f52(0x51c)]==0x1?_0x332ca9[_0x142f52(0x19c7)][0x0]:null,_0x45ac04[_0x142f52(0x2514)]=_0x23f76e['parseCrudPermissions'](_0x45ac04[_0x142f52(0x1366)]?_0x45ac04[_0x142f52(0x1366)][_0x142f52(0x2514)]:null),_0x45ac04[_0x142f52(0x855)]={},_0x45ac04[_0x142f52(0x1b09)]=_0x2de47e['params'][_0x142f52(0x13a3)]||0x0,_0x45ac04['clonedialog']=_0x259946,_0x45ac04['alert']=_0x5d8385[_0x142f52(0x271e)],_0x45ac04[_0x142f52(0x2634)]=_0x46579f,_0x45ac04[_0x142f52(0x1994)]=_0x50ae59;function _0x259946(_0x34fdd7,_0x39c7a4){const _0x3c6cd0=_0x142f52;_0x41577b[_0x3c6cd0(0x2615)]({'controller':'ProjectcloneController','controllerAs':'vm','templateUrl':_0x1e82f0,'parent':angular[_0x3c6cd0(0x1853)](_0x505a23[_0x3c6cd0(0x2586)]),'targetEvent':_0x39c7a4,'clickOutsideToClose':!![],'locals':{'project':_0x34fdd7,'projects':_0x45ac04[_0x3c6cd0(0x1991)]?_0x45ac04[_0x3c6cd0(0x1991)][_0x3c6cd0(0x19c7)]:[],'crudPermissions':_0x45ac04['crudPermissions']}});}function _0x46579f(){const _0x49dbba=_0x142f52;_0x2de47e['go']('app.jscripty.projects',{},{'reload':_0x49dbba(0x19a2)});}function _0x50ae59(){const _0x22d114=_0x142f52;_0xb7681d[_0x22d114(0x20c8)][_0x22d114(0x18e1)]({'id':_0x45ac04['project']['id']},_0x45ac04['project'])[_0x22d114(0x2945)]['then'](function(){const _0x512e3c=_0x22d114;_0x5d8385[_0x512e3c(0x1c75)]({'title':_0x512e3c(0x987),'msg':_0x45ac04[_0x512e3c(0x9e0)][_0x512e3c(0x19eb)]?_0x45ac04[_0x512e3c(0x9e0)][_0x512e3c(0x19eb)]+_0x512e3c(0x6b0):''});})[_0x22d114(0x129e)](function(_0x474cb1){const _0x5d38c6=_0x22d114;_0x5d8385['error']({'title':_0x474cb1['status']?'API:'+_0x474cb1['status']+_0x5d38c6(0x1315)+_0x474cb1['statusText']:'SYSTEM:GETjscriptyProject','msg':_0x474cb1[_0x5d38c6(0x524)]?JSON[_0x5d38c6(0x10bb)](_0x474cb1[_0x5d38c6(0x524)]):_0x474cb1[_0x5d38c6(0xd5f)]()});});}}const _0x3e429d=_0x639da3;;const _0x1440d2=_0x4acfac['p']+'src/js/modules/main/apps/jscripty/views/projects/create/dialog.html/dialog.html';;_0x4d70c0[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1aa9),_0x313a4d(0x1862),_0x313a4d(0x15fe),_0x313a4d(0x10e8),_0x313a4d(0x4d8),_0x313a4d(0x1abe),'$translate',_0x313a4d(0x1991),_0x313a4d(0x26b6),'userProfileSection','api',_0x313a4d(0x216c),'toasty',_0x313a4d(0xa87),_0x313a4d(0x2690),_0x313a4d(0x15b9)];function _0x4d70c0(_0x323c03,_0x45090f,_0x3f5cd0,_0x253d06,_0x49274a,_0x26fe7f,_0x3d7362,_0x5f5749,_0x30e7d3,_0x3c4afd,_0xa85373,_0x124f7e,_0x162fe5,_0x1ae4cc,_0x78e973,_0x3930d3,_0x236d3a){const _0x2cdfff=_0x313a4d,_0x13f011=this;_0x13f011['license']=_0x3930d3,_0x13f011[_0x2cdfff(0x15b9)]=_0x236d3a,_0x13f011[_0x2cdfff(0x2321)]=_0x78e973[_0x2cdfff(0xb12)](),_0x13f011[_0x2cdfff(0x1991)]=_0x30e7d3||{'count':0x0,'rows':[]},_0x13f011[_0x2cdfff(0x26b6)]=_0x3c4afd,_0x13f011['userProfileSection']=_0xa85373&&_0xa85373['count']==0x1?_0xa85373['rows'][0x0]:null,_0x13f011[_0x2cdfff(0x2514)]=_0x78e973['parseCrudPermissions'](_0x13f011['userProfileSection']?_0x13f011[_0x2cdfff(0x1366)]['crudPermissions']:null),_0x13f011[_0x2cdfff(0x768)]=_0x2cdfff(0x1991),_0x13f011['listOrder']='',_0x13f011[_0x2cdfff(0x214f)]=null,_0x13f011['selectedProjects']=[],_0x13f011[_0x2cdfff(0x1a56)]={'fields':_0x2cdfff(0x195e),'sort':'-updatedAt','limit':0xa,'page':0x1},_0x13f011[_0x2cdfff(0x23f9)]=_0x207dc6,_0x13f011[_0x2cdfff(0xa26)]=_0x1ea46b,_0x13f011['sessionsgoto']=_0x48ebf8,_0x13f011[_0x2cdfff(0xf0a)]=_0x34c573,_0x13f011[_0x2cdfff(0x1c75)]=_0x2b4535,_0x13f011[_0x2cdfff(0x2858)]=_0x16a7c5,_0x13f011[_0x2cdfff(0x1a1b)]=_0x163466,_0x13f011['deleteProject']=_0xde4f14,_0x13f011['exportSelectedProjects']=_0x119e26,_0x13f011['deleteSelectedProjects']=_0x541d5b,_0x13f011[_0x2cdfff(0x1188)]=_0x225078,_0x13f011['selectAllProjects']=_0x5f692c;function _0x207dc6(_0x346078){const _0x43ad1a=_0x2cdfff;_0x3f5cd0['go'](_0x43ad1a(0x8c2),{'id':_0x346078['id'],'project':_0x346078,'crudPermissions':_0x13f011[_0x43ad1a(0x2514)]});}function _0x1ea46b(_0x4fc707,_0x109c41){const _0x3167e2=_0x2cdfff;_0x49274a[_0x3167e2(0x2615)]({'controller':_0x3167e2(0x21ac),'controllerAs':'vm','templateUrl':_0x1e82f0,'parent':angular[_0x3167e2(0x1853)](_0x26fe7f[_0x3167e2(0x2586)]),'targetEvent':_0x109c41,'clickOutsideToClose':!![],'locals':{'project':_0x4fc707,'projects':_0x13f011['projects']?_0x13f011[_0x3167e2(0x1991)][_0x3167e2(0x19c7)]:[],'crudPermissions':_0x13f011['crudPermissions']}});}function _0x48ebf8(_0x5ef31d){const _0xfccbc=_0x2cdfff;_0x3f5cd0['go'](_0xfccbc(0x8c2),{'id':_0x5ef31d['id'],'tab':0x3});}function _0x34c573(_0x22501d,_0x44ebab){const _0x58df2c=_0x2cdfff,_0x48fa7f=_0x49274a[_0x58df2c(0x1e8a)]()[_0x58df2c(0x1189)](_0x58df2c(0xdb2)+_0x3f65c0()[_0x58df2c(0x20d1)](_0x58df2c(0x9e0))+'?')[_0x58df2c(0x1cbe)](_0x58df2c(0x16d3)+(_0x22501d[_0x58df2c(0x19eb)]||_0x58df2c(0x9e0))+_0x58df2c(0x252f)+_0x58df2c(0xe01))[_0x58df2c(0x4bd)](_0x58df2c(0x2813))[_0x58df2c(0x1f27)](_0x44ebab)['ok']('OK')['cancel']('CANCEL');_0x49274a['show'](_0x48fa7f)[_0x58df2c(0x146b)](function(){_0xde4f14(_0x22501d);},function(){const _0x4be1bf=_0x58df2c;console[_0x4be1bf(0x1a74)](_0x4be1bf(0x39a));});}let _0x3f8b74=!![],_0x4ac5f1=0x1;_0x323c03[_0x2cdfff(0x21e8)](_0x2cdfff(0x2669),function(_0x958903,_0x3b14f2){const _0x3886d7=_0x2cdfff;_0x3f8b74?_0x3d7362(function(){_0x3f8b74=![];}):(!_0x3b14f2&&(_0x4ac5f1=_0x13f011[_0x3886d7(0x1a56)]['page']),_0x958903!==_0x3b14f2&&(_0x13f011[_0x3886d7(0x1a56)][_0x3886d7(0x844)]=0x1),!_0x958903&&(_0x13f011[_0x3886d7(0x1a56)][_0x3886d7(0x844)]=_0x4ac5f1),_0x13f011[_0x3886d7(0x2858)]());});function _0x2b4535(_0x3112c0){_0x13f011['projects']=_0x3112c0||{'count':0x0,'rows':[]};}function _0x16a7c5(){const _0x130a7d=_0x2cdfff;_0x13f011[_0x130a7d(0x1a56)][_0x130a7d(0x145d)]=(_0x13f011[_0x130a7d(0x1a56)][_0x130a7d(0x844)]-0x1)*_0x13f011[_0x130a7d(0x1a56)]['limit'],_0x78e973[_0x130a7d(0x23e0)](_0x130a7d(0x174b))?_0x13f011[_0x130a7d(0xb9c)]=_0x124f7e[_0x130a7d(0x20c8)][_0x130a7d(0x16b4)](_0x13f011[_0x130a7d(0x1a56)],_0x2b4535)[_0x130a7d(0x2945)]:(_0x13f011[_0x130a7d(0x1a56)]['id']=_0x13f011[_0x130a7d(0x26b6)]['id'],_0x13f011[_0x130a7d(0x1a56)][_0x130a7d(0x2146)]=_0x130a7d(0x1ea),_0x13f011[_0x130a7d(0xb9c)]=_0x124f7e[_0x130a7d(0x26b6)][_0x130a7d(0x158f)](_0x13f011[_0x130a7d(0x1a56)],_0x2b4535)[_0x130a7d(0x2945)]);}function _0x163466(_0x1c9423,_0xd0c011){const _0x36948c=_0x2cdfff;_0x49274a[_0x36948c(0x2615)]({'controller':_0x36948c(0x1af0),'controllerAs':'vm','templateUrl':_0x1440d2,'parent':angular[_0x36948c(0x1853)](_0x26fe7f[_0x36948c(0x2586)]),'targetEvent':_0x1c9423,'clickOutsideToClose':!![],'locals':{'project':_0xd0c011,'projects':_0x13f011[_0x36948c(0x1991)]['rows'],'license':_0x13f011['license'],'setting':_0x13f011[_0x36948c(0x15b9)],'crudPermissions':_0x13f011['crudPermissions']}});}function _0xde4f14(_0x25769c){const _0x53ac34=_0x2cdfff;_0x124f7e[_0x53ac34(0x20c8)]['delete']({'id':_0x25769c['id']})[_0x53ac34(0x2945)]['then'](function(){const _0x2b0654=_0x53ac34;_0x3f65c0()[_0x2b0654(0x2640)](_0x13f011[_0x2b0654(0x1991)][_0x2b0654(0x19c7)],{'id':_0x25769c['id']}),_0x13f011[_0x2b0654(0x1991)][_0x2b0654(0x51c)]-=0x1,!_0x13f011[_0x2b0654(0x1991)][_0x2b0654(0x19c7)][_0x2b0654(0x402)]&&_0x13f011['getProjects'](),_0x1ae4cc[_0x2b0654(0x1c75)]({'title':_0x3f65c0()['startCase'](_0x2b0654(0x176d))+'\x20deleted!','msg':_0x25769c['name']?_0x25769c[_0x2b0654(0x19eb)]+_0x2b0654(0x23e3):''});})['catch'](function(_0xd48b21){const _0x34dd0b=_0x53ac34;if(_0xd48b21[_0x34dd0b(0x524)]&&_0xd48b21[_0x34dd0b(0x524)][_0x34dd0b(0xcef)]&&_0xd48b21[_0x34dd0b(0x524)]['errors'][_0x34dd0b(0x402)]){_0x13f011[_0x34dd0b(0xcef)]=_0xd48b21[_0x34dd0b(0x524)]['errors']||[{'message':_0xd48b21['toString'](),'type':'SYSTEM:DELETEjscriptyProject'}];for(let _0x54c1c3=0x0;_0x54c1c3<_0xd48b21[_0x34dd0b(0x524)][_0x34dd0b(0xcef)]['length'];_0x54c1c3++){_0x1ae4cc[_0x34dd0b(0x1980)]({'title':_0xd48b21[_0x34dd0b(0x524)][_0x34dd0b(0xcef)][_0x54c1c3][_0x34dd0b(0x1142)],'msg':_0xd48b21[_0x34dd0b(0x524)][_0x34dd0b(0xcef)][_0x54c1c3][_0x34dd0b(0x7fd)]});}}else _0x1ae4cc['error']({'title':_0xd48b21['status']?_0x34dd0b(0x262a)+_0xd48b21['status']+_0x34dd0b(0x1315)+_0xd48b21[_0x34dd0b(0x167f)]:_0x34dd0b(0x253e),'msg':_0xd48b21[_0x34dd0b(0x524)]?JSON['stringify'](_0xd48b21['data']['message']):_0xd48b21[_0x34dd0b(0x7fd)]||_0xd48b21[_0x34dd0b(0xd5f)]()});});}function _0x119e26(){const _0x205725=_0x2cdfff,_0x5ec6a9=angular[_0x205725(0x235a)](_0x13f011[_0x205725(0x26f7)]);return _0x13f011[_0x205725(0x26f7)]=[],_0x5ec6a9;}function _0x541d5b(_0xc42ad9){const _0x5d73be=_0x2cdfff,_0x3fe322=_0x49274a[_0x5d73be(0x1e8a)]()['title'](_0x5d73be(0x23ac))[_0x5d73be(0x1cbe)](_0x5d73be(0x16d3)+_0x13f011[_0x5d73be(0x26f7)][_0x5d73be(0x402)]+_0x5d73be(0x2452)+_0x5d73be(0xe01))[_0x5d73be(0x4bd)](_0x5d73be(0x674))[_0x5d73be(0x1f27)](_0xc42ad9)['ok']('OK')[_0x5d73be(0x6c3)](_0x5d73be(0x39a));_0x49274a[_0x5d73be(0x2615)](_0x3fe322)[_0x5d73be(0x146b)](function(){const _0x3e0c3a=_0x5d73be;_0x13f011['selectedProjects'][_0x3e0c3a(0x1df5)](function(_0x544814){_0xde4f14(_0x544814);}),_0x13f011['selectedProjects']=[];});}function _0x225078(){const _0x5d6c15=_0x2cdfff;_0x13f011[_0x5d6c15(0x26f7)]=[];}function _0x5f692c(){const _0x51ee53=_0x2cdfff;_0x13f011[_0x51ee53(0x26f7)]=_0x13f011['projects']['rows'];}}const _0x2aaa48=_0x4d70c0;;_0x1a2ffb[_0x313a4d(0x11c2)]=[_0x313a4d(0x921),_0x313a4d(0x695)];function _0x1a2ffb(_0x2c8cdd,_0x5c988f){const _0x3004c0=_0x313a4d;_0x2c8cdd['state'](_0x3004c0(0x1bdf),{'abstract':!![],'url':_0x3004c0(0x13c3)})[_0x3004c0(0x13d6)](_0x3004c0(0x19a2),{'url':_0x3004c0(0x165f),'views':{'content@app':{'templateUrl':_0x5a1655,'controller':_0x3004c0(0xa8b)}},'resolve':{'projects':[_0x3004c0(0x362),_0x3004c0(0xa87),function(_0x259403,_0x27c11e){const _0x16597b=_0x3004c0;return _0x27c11e[_0x16597b(0x23e0)](_0x16597b(0x174b))?_0x259403[_0x16597b(0x2922)]('jscriptyProject@get',{'fields':_0x16597b(0x195e),'sort':_0x16597b(0x12f2),'limit':0xa,'offset':0x0}):_0x259403['resolve']('userProfile@getResources',{'id':_0x27c11e[_0x16597b(0xb12)]()[_0x16597b(0x209a)],'section':'Projects','fields':'createdAt,updatedAt,id,name,enableUncompleteSave,sendUnpauseOnSubmit,description,formData','sort':_0x16597b(0x12f2),'limit':0xa,'offset':0x0});}],'userProfile':[_0x3004c0(0x362),_0x3004c0(0xa87),function(_0x1ba4c3,_0x209393){const _0x47aaca=_0x3004c0;return _0x209393[_0x47aaca(0x23e0)](_0x47aaca(0x174b))?null:_0x1ba4c3[_0x47aaca(0x2922)](_0x47aaca(0x119a),{'fields':_0x47aaca(0x227),'id':_0x209393['getCurrentUser']()['userProfileId']});}],'userProfileSection':[_0x3004c0(0x362),_0x3004c0(0xa87),function(_0x1ccc4a,_0x72aaf4){const _0x2319e2=_0x3004c0;return _0x72aaf4[_0x2319e2(0x23e0)](_0x2319e2(0x174b))?null:_0x1ccc4a['resolve'](_0x2319e2(0x27be),{'fields':_0x2319e2(0x1e64),'userProfileId':_0x72aaf4['getCurrentUser']()[_0x2319e2(0x209a)],'sectionId':0x6a5});}]},'authenticate':!![],'permissionId':0x6a5,'bodyClass':_0x3004c0(0x1640)})[_0x3004c0(0x13d6)](_0x3004c0(0x8c2),{'url':_0x3004c0(0x2028),'params':{'project':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x434199,'controller':_0x3004c0(0x3ca)}},'resolve':{'project':[_0x3004c0(0x362),_0x3004c0(0x28c8),function(_0x11d6c4,_0x981480){const _0x56a430=_0x3004c0;return _0x11d6c4[_0x56a430(0x2922)](_0x56a430(0x27da),{'fields':_0x56a430(0x195e),'id':_0x981480['id']});}],'userProfileSection':[_0x3004c0(0x362),'Auth',function(_0x1bb358,_0x3b7a94){const _0x4cb0fa=_0x3004c0;return _0x1bb358['resolve'](_0x4cb0fa(0x27be),{'fields':_0x4cb0fa(0x1e64),'userProfileId':_0x3b7a94['getCurrentUser']()[_0x4cb0fa(0x209a)],'sectionId':0x6a5});}]},'authenticate':!![],'permissionId':0x6a5,'bodyClass':'jscripty'}),_0x5c988f['addPart'](_0x3004c0(0x111d));}angular[_0x313a4d(0x2528)](_0x313a4d(0x1bdf),[_0x313a4d(0xdad),_0x313a4d(0x962),_0x313a4d(0x23c7),_0x313a4d(0x963),_0x313a4d(0x19e2),_0x313a4d(0x27c1),'ng-sortable',_0x313a4d(0x15ef),_0x313a4d(0xc86),_0x313a4d(0x1f5f),_0x313a4d(0x28a8),_0x313a4d(0xfb2),_0x313a4d(0x1e57),_0x313a4d(0x581),_0x313a4d(0x1bd2),_0x313a4d(0x1792),'angularMaterialFormBuilder',_0x313a4d(0x1626),_0x313a4d(0x2713),_0x313a4d(0x11df)])[_0x313a4d(0x989)](_0x1a2ffb)['controller']('CreateOrEditProjectDialogController',_0x5a3896)[_0x313a4d(0x28f0)](_0x313a4d(0x3c5),_0x56dc54)['controller'](_0x313a4d(0x17fa),_0x492fd3)[_0x313a4d(0x28f0)](_0x313a4d(0x21ac),_0x109939)['controller'](_0x313a4d(0x27a),_0x1b39d6)[_0x313a4d(0x28f0)](_0x313a4d(0x1b75),_0x301762)[_0x313a4d(0x28f0)]('ShowQuestionsSessionDialogController',_0x4e646d)[_0x313a4d(0x28f0)](_0x313a4d(0x1aeb),_0x3e429d)[_0x313a4d(0x28f0)](_0x313a4d(0xa1d),_0x2aaa48);;const _0x450378=_0x4acfac['p']+_0x313a4d(0x47e);;const _0x2cff3d=_0x4acfac['p']+_0x313a4d(0x27fc);;_0x17785e['$inject']=[_0x313a4d(0x910),_0x313a4d(0x1862),_0x313a4d(0xd08),'$mdDialog','$q',_0x313a4d(0x214b),_0x313a4d(0x1fe4),_0x313a4d(0x2af),'plugin',_0x313a4d(0x247f),_0x313a4d(0xa87),_0x313a4d(0x2690),_0x313a4d(0x15b9),_0x313a4d(0x2514)];function _0x17785e(_0x4f4296,_0x339dde,_0x3c9cef,_0x38a84c,_0x35975a,_0x14e39e,_0x1f5a3b,_0x2844a3,_0x303e86,_0xf8b4a0,_0x4c7f57,_0x35d8ec,_0xfba18b,_0x521b2f){const _0x87a9ca=_0x313a4d,_0x10f1fd=this;_0x10f1fd[_0x87a9ca(0x2321)]=_0x4c7f57[_0x87a9ca(0xb12)](),_0x10f1fd[_0x87a9ca(0xcef)]=[],_0x10f1fd[_0x87a9ca(0x15b9)]=_0xfba18b,_0x10f1fd[_0x87a9ca(0x2690)]=_0x35d8ec,_0x10f1fd[_0x87a9ca(0x2514)]=_0x521b2f,_0x10f1fd[_0x87a9ca(0x855)]={},_0x10f1fd[_0x87a9ca(0x2251)]=_0x10f1fd[_0x87a9ca(0x15b9)]&&_0x10f1fd[_0x87a9ca(0x15b9)][_0x87a9ca(0x976)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x10f1fd['title']='MARKETPLACE.EDIT_PLUGIN',_0x10f1fd[_0x87a9ca(0x5f5)]=angular[_0x87a9ca(0x235a)](_0x303e86),_0x10f1fd[_0x87a9ca(0x2af)]=_0x2844a3,_0x10f1fd[_0x87a9ca(0x182d)]=![];!_0x10f1fd[_0x87a9ca(0x5f5)]&&(_0x10f1fd[_0x87a9ca(0x5f5)]={},_0x10f1fd[_0x87a9ca(0x1189)]='MARKETPLACE.NEW_PLUGIN',_0x10f1fd['newPlugin']=!![]);_0x10f1fd[_0x87a9ca(0x27f3)]=_0x4f4d40,_0x10f1fd['savePlugin']=_0x2227cb,_0x10f1fd['deletePlugin']=_0x566dd2,_0x10f1fd['getDateFromString']=_0x594875,_0x10f1fd[_0x87a9ca(0x13f3)]=_0x2513bd;function _0x4f4d40(){const _0x54614a=_0x87a9ca;_0x10f1fd['errors']=[],_0xf8b4a0[_0x54614a(0x5f5)]['save'](_0x10f1fd['plugin'])['$promise'][_0x54614a(0x146b)](function(_0x3063ab){const _0x123bc2=_0x54614a;_0x10f1fd[_0x123bc2(0x2af)][_0x123bc2(0xb3d)](_0x3063ab['toJSON']()),_0x1f5a3b[_0x123bc2(0x1c75)]({'title':_0x123bc2(0x1cc2),'msg':_0x10f1fd[_0x123bc2(0x5f5)][_0x123bc2(0x19eb)]?_0x10f1fd[_0x123bc2(0x5f5)][_0x123bc2(0x19eb)]+_0x123bc2(0x1386):''}),_0x2513bd(_0x3063ab);})['catch'](function(_0xd79adc){const _0x182304=_0x54614a;if(_0xd79adc['data']&&_0xd79adc[_0x182304(0x524)][_0x182304(0xcef)]&&_0xd79adc[_0x182304(0x524)][_0x182304(0xcef)]['length']){_0x10f1fd['errors']=_0xd79adc[_0x182304(0x524)][_0x182304(0xcef)]||[{'message':_0xd79adc['toString'](),'type':_0x182304(0x1a29)}];for(let _0xa75976=0x0;_0xa75976<_0xd79adc['data'][_0x182304(0xcef)][_0x182304(0x402)];_0xa75976+=0x1){_0x1f5a3b['error']({'title':_0xd79adc['data'][_0x182304(0xcef)][_0xa75976][_0x182304(0x1142)],'msg':_0xd79adc[_0x182304(0x524)][_0x182304(0xcef)][_0xa75976][_0x182304(0x7fd)]});}}else _0x1f5a3b[_0x182304(0x1980)]({'title':_0xd79adc[_0x182304(0x107b)]?'API:'+_0xd79adc[_0x182304(0x107b)]+_0x182304(0x1315)+_0xd79adc[_0x182304(0x167f)]:_0x182304(0x1a29),'msg':_0xd79adc[_0x182304(0x524)]?JSON[_0x182304(0x10bb)](_0xd79adc[_0x182304(0x524)]['message']):_0xd79adc[_0x182304(0xd5f)]()});});}function _0x2227cb(){const _0xdc333=_0x87a9ca;_0x10f1fd[_0xdc333(0xcef)]=[],_0xf8b4a0[_0xdc333(0x5f5)]['update']({'id':_0x10f1fd[_0xdc333(0x5f5)]['id']},_0x10f1fd[_0xdc333(0x5f5)])[_0xdc333(0x2945)][_0xdc333(0x146b)](function(_0x1e43b4){const _0x59ae13=_0xdc333,_0x27aad8=_0x3f65c0()['find'](_0x10f1fd[_0x59ae13(0x2af)],{'id':_0x1e43b4['id']});_0x27aad8&&_0x3f65c0()[_0x59ae13(0x168d)](_0x27aad8,_0x3f65c0()[_0x59ae13(0x40e)](_0x1e43b4[_0x59ae13(0x2488)](),_0x3f65c0()[_0x59ae13(0x627)](_0x27aad8))),_0x1f5a3b[_0x59ae13(0x1c75)]({'title':'Plugin\x20properly\x20saved!','msg':_0x10f1fd['plugin'][_0x59ae13(0x19eb)]?_0x10f1fd[_0x59ae13(0x5f5)]['name']+'\x20has\x20been\x20saved!':''}),_0x2513bd(_0x1e43b4);})['catch'](function(_0x2758b9){const _0x4cd04d=_0xdc333;if(_0x2758b9[_0x4cd04d(0x524)]&&_0x2758b9[_0x4cd04d(0x524)]['errors']&&_0x2758b9[_0x4cd04d(0x524)][_0x4cd04d(0xcef)][_0x4cd04d(0x402)]){_0x10f1fd[_0x4cd04d(0xcef)]=_0x2758b9[_0x4cd04d(0x524)][_0x4cd04d(0xcef)]||[{'message':_0x2758b9['toString'](),'type':_0x4cd04d(0x169d)}];for(let _0x58bd4f=0x0;_0x58bd4f<_0x2758b9['data']['errors'][_0x4cd04d(0x402)];_0x58bd4f++){_0x1f5a3b['error']({'title':_0x2758b9['data'][_0x4cd04d(0xcef)][_0x58bd4f]['type'],'msg':_0x2758b9['data'][_0x4cd04d(0xcef)][_0x58bd4f][_0x4cd04d(0x7fd)]});}}else _0x1f5a3b[_0x4cd04d(0x1980)]({'title':_0x2758b9['status']?'API:'+_0x2758b9[_0x4cd04d(0x107b)]+_0x4cd04d(0x1315)+_0x2758b9[_0x4cd04d(0x167f)]:'api.plugin.update','msg':_0x2758b9['data']?JSON['stringify'](_0x2758b9[_0x4cd04d(0x524)][_0x4cd04d(0x7fd)]):_0x2758b9[_0x4cd04d(0xd5f)]()});});}function _0x566dd2(_0x3a2dfa){const _0x1d7550=_0x87a9ca;_0x10f1fd[_0x1d7550(0xcef)]=[];const _0x1431a5=_0x38a84c[_0x1d7550(0x1e8a)]()[_0x1d7550(0x1189)](_0x1d7550(0x1d64))['content'](_0x1d7550(0xed6))[_0x1d7550(0x4bd)]('Delete\x20Plugin')['ok'](_0x1d7550(0x25de))[_0x1d7550(0x6c3)](_0x1d7550(0xcf0))[_0x1d7550(0x1f27)](_0x3a2dfa);_0x38a84c[_0x1d7550(0x2615)](_0x1431a5)['then'](function(){const _0x5cdc4d=_0x1d7550;_0xf8b4a0['plugin'][_0x5cdc4d(0x1fac)]({'id':_0x10f1fd[_0x5cdc4d(0x5f5)]['id']})['$promise'][_0x5cdc4d(0x146b)](function(){const _0x383dc2=_0x5cdc4d;_0x3f65c0()[_0x383dc2(0x2640)](_0x10f1fd[_0x383dc2(0x2af)],{'id':_0x10f1fd[_0x383dc2(0x5f5)]['id']}),_0x1f5a3b[_0x383dc2(0x1c75)]({'title':'Plugin\x20properly\x20deleted!','msg':(_0x10f1fd[_0x383dc2(0x5f5)][_0x383dc2(0x19eb)]||_0x383dc2(0x5f5))+'\x20has\x20been\x20deleted!'}),_0x2513bd(_0x10f1fd[_0x383dc2(0x5f5)]);})[_0x5cdc4d(0x129e)](function(_0x1a28a5){const _0x33d3d7=_0x5cdc4d;if(_0x1a28a5[_0x33d3d7(0x524)]&&_0x1a28a5[_0x33d3d7(0x524)]['errors']&&_0x1a28a5['data'][_0x33d3d7(0xcef)][_0x33d3d7(0x402)]){_0x10f1fd[_0x33d3d7(0xcef)]=_0x1a28a5[_0x33d3d7(0x524)][_0x33d3d7(0xcef)]||[{'message':_0x1a28a5[_0x33d3d7(0xd5f)](),'type':_0x33d3d7(0xcdc)}];for(let _0x22fb9e=0x0;_0x22fb9e<_0x1a28a5[_0x33d3d7(0x524)][_0x33d3d7(0xcef)]['length'];_0x22fb9e++){_0x1f5a3b[_0x33d3d7(0x1980)]({'title':_0x1a28a5[_0x33d3d7(0x524)][_0x33d3d7(0xcef)][_0x22fb9e][_0x33d3d7(0x1142)],'msg':_0x1a28a5[_0x33d3d7(0x524)][_0x33d3d7(0xcef)][_0x22fb9e]['message']});}}else _0x1f5a3b[_0x33d3d7(0x1980)]({'title':_0x1a28a5[_0x33d3d7(0x107b)]?_0x33d3d7(0x262a)+_0x1a28a5[_0x33d3d7(0x107b)]+_0x33d3d7(0x1315)+_0x1a28a5[_0x33d3d7(0x167f)]:'api.plugin.delete','msg':_0x1a28a5[_0x33d3d7(0x524)]?JSON[_0x33d3d7(0x10bb)](_0x1a28a5[_0x33d3d7(0x524)][_0x33d3d7(0x7fd)]):_0x1a28a5[_0x33d3d7(0x7fd)]||_0x1a28a5[_0x33d3d7(0xd5f)]()});});},function(){});}function _0x594875(_0x3e5fd6){return _0x3e5fd6===null?undefined:new Date(_0x3e5fd6);}function _0x2513bd(_0x44ca63){const _0x4d07cd=_0x87a9ca;_0x38a84c[_0x4d07cd(0x2458)](_0x44ca63);}}const _0x21d949=_0x17785e;;_0x240e7c[_0x313a4d(0x11c2)]=[_0x313a4d(0x1862),_0x313a4d(0xd08),'$mdDialog',_0x313a4d(0x4d8),_0x313a4d(0x214b),_0x313a4d(0x2690),_0x313a4d(0x15b9),_0x313a4d(0x247f),_0x313a4d(0x1fe4),'Auth',_0x313a4d(0x5f5),_0x313a4d(0x1366)];function _0x240e7c(_0x1ec656,_0x3cf7f0,_0x25611a,_0x228f83,_0x29fcf0,_0x4ea270,_0x5af909,_0x57dbd1,_0x7ff52c,_0x1d571f,_0x346a5f,_0x593b43){const _0x1007fb=_0x313a4d,_0x20846f=this;_0x20846f[_0x1007fb(0x2321)]=_0x1d571f['getCurrentUser'](),_0x20846f[_0x1007fb(0x2690)]=_0x4ea270,_0x20846f[_0x1007fb(0x15b9)]=_0x5af909,_0x20846f['passwordPattern']=_0x20846f[_0x1007fb(0x15b9)][_0x1007fb(0x976)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x20846f['location']=_0x3cf7f0[_0x1007fb(0x2414)]()+'://'+_0x3cf7f0[_0x1007fb(0x148e)](),_0x20846f[_0x1007fb(0x5f5)]=_0x346a5f||_0x1ec656['params']['plugin']||{},_0x20846f[_0x1007fb(0x1366)]=_0x593b43&&_0x593b43[_0x1007fb(0x51c)]==0x1?_0x593b43['rows'][0x0]:null,_0x20846f['crudPermissions']=_0x1d571f[_0x1007fb(0xe60)](_0x20846f[_0x1007fb(0x1366)]?_0x20846f[_0x1007fb(0x1366)][_0x1007fb(0x2514)]:null),_0x20846f['hasModulePermissions']={},_0x20846f[_0x1007fb(0x1b09)]=_0x1ec656[_0x1007fb(0x16a)][_0x1007fb(0x13a3)]||0x0,_0x20846f[_0x1007fb(0x861)]=_0x7ff52c[_0x1007fb(0x271e)],_0x20846f[_0x1007fb(0x1c47)]=_0x858d54,_0x20846f[_0x1007fb(0xe89)]=_0x2cf9aa;function _0x858d54(){const _0x34a6fc=_0x1007fb;_0x1ec656['go']('app.marketplace.plugins',{},{'reload':_0x34a6fc(0x2923)});}function _0x2cf9aa(){const _0x402574=_0x1007fb;_0x57dbd1['plugin']['update']({'id':_0x20846f[_0x402574(0x5f5)]['id']},_0x20846f[_0x402574(0x5f5)])['$promise'][_0x402574(0x146b)](function(){const _0x28b904=_0x402574;_0x7ff52c[_0x28b904(0x1c75)]({'title':_0x28b904(0x267c),'msg':_0x20846f[_0x28b904(0x5f5)][_0x28b904(0x19eb)]?_0x20846f[_0x28b904(0x5f5)][_0x28b904(0x19eb)]+_0x28b904(0x6b0):''});})[_0x402574(0x129e)](function(_0x375507){const _0x5a4e13=_0x402574;_0x7ff52c[_0x5a4e13(0x1980)]({'title':_0x375507[_0x5a4e13(0x107b)]?'API:'+_0x375507[_0x5a4e13(0x107b)]+_0x5a4e13(0x1315)+_0x375507[_0x5a4e13(0x167f)]:_0x5a4e13(0x1ca),'msg':_0x375507['data']?JSON[_0x5a4e13(0x10bb)](_0x375507['data']):_0x375507[_0x5a4e13(0xd5f)]()});});}}const _0x4f8f68=_0x240e7c;;const _0x3a75dc=_0x4acfac['p']+_0x313a4d(0x12cb);;const _0x2acd43=_0x4acfac['p']+_0x313a4d(0x446);;_0xa61cba[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1aa9),'$state',_0x313a4d(0x15fe),_0x313a4d(0x10e8),_0x313a4d(0x4d8),'$timeout','$translate',_0x313a4d(0x2af),'userProfile',_0x313a4d(0x1366),_0x313a4d(0x247f),_0x313a4d(0x216c),_0x313a4d(0x1fe4),'Auth',_0x313a4d(0x2690),_0x313a4d(0x15b9)];function _0xa61cba(_0x1dcd3a,_0xe74de6,_0x592f6b,_0x550bbd,_0x2489b0,_0x4ab1dc,_0x21822a,_0x3ec8a9,_0x2c362f,_0x3c448b,_0x6f4162,_0x389281,_0x174d0e,_0x6b39c4,_0x1cf12b,_0x16e8d4,_0x3f14b2){const _0x268a8b=_0x313a4d,_0x4bc074=this;_0x4bc074[_0x268a8b(0x2690)]=_0x16e8d4,_0x4bc074[_0x268a8b(0x15b9)]=_0x3f14b2,_0x4bc074[_0x268a8b(0x2321)]=_0x1cf12b[_0x268a8b(0xb12)](),_0x4bc074[_0x268a8b(0x2af)]=_0x2c362f||{'count':0x0,'rows':[]},_0x4bc074[_0x268a8b(0x26b6)]=_0x3c448b,_0x4bc074[_0x268a8b(0x1366)]=_0x6f4162&&_0x6f4162['count']==0x1?_0x6f4162[_0x268a8b(0x19c7)][0x0]:null,_0x4bc074[_0x268a8b(0x2514)]=_0x1cf12b[_0x268a8b(0xe60)](_0x4bc074[_0x268a8b(0x1366)]?_0x4bc074[_0x268a8b(0x1366)][_0x268a8b(0x2514)]:null),_0x4bc074[_0x268a8b(0x768)]=_0x268a8b(0x2af),_0x4bc074[_0x268a8b(0x216a)]='',_0x4bc074[_0x268a8b(0x214f)]=null,_0x4bc074['selectedPlugins']=[],_0x4bc074[_0x268a8b(0x1a56)]={'fields':_0x268a8b(0x1d56),'sort':_0x268a8b(0x19eb),'limit':0xa,'page':0x1},_0x4bc074[_0x268a8b(0xfbf)]=![],_0x4bc074[_0x268a8b(0x9a3)]=_0x3f65c0()[_0x268a8b(0x194)]([{'option':_0x268a8b(0x132f),'value':_0x268a8b(0x220a)},{'option':_0x268a8b(0x277e),'value':'\x27adminOnly\x27'},{'option':_0x268a8b(0x1827),'value':_0x268a8b(0xf67)},{'option':_0x268a8b(0x1b38),'value':'\x27never\x27'}],function(_0x5a79bb){const _0x15ec85=_0x268a8b;return _0x3f65c0()[_0x15ec85(0x5f4)](_0x5a79bb[_0x15ec85(0x175d)],new RegExp('\x27','g'),'');}),_0x4bc074['installplugin']=_0x5466f6,_0x4bc074[_0x268a8b(0x23f9)]=_0x5a66e5,_0x4bc074['stopplugin']=_0x2cf17f,_0x4bc074[_0x268a8b(0xfcb)]=_0x54f0a6,_0x4bc074[_0x268a8b(0xe49)]=_0x2d9f8c,_0x4bc074['uninstallplugin']=_0x17e79b,_0x4bc074[_0x268a8b(0xf0a)]=_0x1ede4c,_0x4bc074[_0x268a8b(0x1c75)]=_0x4d8c57,_0x4bc074[_0x268a8b(0xa1a)]=_0x58241c,_0x4bc074[_0x268a8b(0xe03)]=_0x39754b,_0x4bc074['deletePlugin']=_0x385889,_0x4bc074['exportSelectedPlugins']=_0x2b63bc,_0x4bc074['deleteSelectedPlugins']=_0x2643ae,_0x4bc074[_0x268a8b(0x165d)]=_0x5204a3,_0x4bc074['selectAllPlugins']=_0x29fc84,_0x4bc074[_0x268a8b(0xe42)]=_0x369e8b;function _0x5466f6(_0x305d97){const _0x45ee30=_0x268a8b;if(_0x305d97['type']==='script')_0x4bc074[_0x45ee30(0xfbf)]=!![],_0x389281[_0x45ee30(0x1b6f)][_0x45ee30(0x1e3)]({'name':_0x305d97[_0x45ee30(0x1cdb)],'script':_0x305d97['path']+'/'+_0x305d97[_0x45ee30(0x2556)]})[_0x45ee30(0x2945)][_0x45ee30(0x146b)](function(){const _0x32ce39=_0x45ee30;return _0x305d97[_0x32ce39(0x275a)]=!![],_0x389281['plugin'][_0x32ce39(0x18e1)]({'id':_0x305d97['id']},_0x305d97)[_0x32ce39(0x2945)];})['then'](function(){const _0xb0156=_0x45ee30;_0x4bc074[_0xb0156(0xfbf)]=![],_0x6b39c4[_0xb0156(0x1c75)]({'title':'Plugin\x20installed!','msg':_0x305d97[_0xb0156(0x19eb)]?_0x305d97[_0xb0156(0x19eb)]+'\x20has\x20been\x20installed!':''});})[_0x45ee30(0x129e)](function(_0x539988){const _0x143502=_0x45ee30;if(_0x539988[_0x143502(0x524)]&&_0x539988[_0x143502(0x524)][_0x143502(0xcef)]&&_0x539988[_0x143502(0x524)][_0x143502(0xcef)][_0x143502(0x402)]){_0x4bc074['errors']=_0x539988[_0x143502(0x524)]['errors']||[{'message':_0x539988['toString'](),'type':'api.pm2.save'}];for(let _0x786d27=0x0;_0x786d27<_0x539988[_0x143502(0x524)][_0x143502(0xcef)][_0x143502(0x402)];_0x786d27++){_0x6b39c4['error']({'title':_0x539988['data'][_0x143502(0xcef)][_0x786d27][_0x143502(0x1142)],'msg':_0x539988[_0x143502(0x524)][_0x143502(0xcef)][_0x786d27]['message']});}}else _0x6b39c4['error']({'title':_0x539988[_0x143502(0x107b)]?_0x143502(0x262a)+_0x539988[_0x143502(0x107b)]+'\x20-\x20'+_0x539988[_0x143502(0x167f)]:_0x143502(0x265b),'msg':_0x539988[_0x143502(0x524)]?JSON[_0x143502(0x10bb)](_0x539988['data']['message']):_0x539988[_0x143502(0x7fd)]||_0x539988['toString']()});});else return _0x305d97['active']=!![],_0x389281[_0x45ee30(0x5f5)][_0x45ee30(0x18e1)]({'id':_0x305d97['id']},_0x305d97)['$promise'][_0x45ee30(0x146b)](function(){const _0xd3772d=_0x45ee30;_0x6b39c4[_0xd3772d(0x1c75)]({'title':_0xd3772d(0x1c83),'msg':_0x305d97[_0xd3772d(0x19eb)]?_0x305d97['name']+_0xd3772d(0x28de):''});})['catch'](function(_0x505d69){const _0x113fde=_0x45ee30;if(_0x505d69[_0x113fde(0x524)]&&_0x505d69[_0x113fde(0x524)][_0x113fde(0xcef)]&&_0x505d69[_0x113fde(0x524)][_0x113fde(0xcef)]['length']){_0x4bc074[_0x113fde(0xcef)]=_0x505d69['data'][_0x113fde(0xcef)]||[{'message':_0x505d69[_0x113fde(0xd5f)](),'type':_0x113fde(0x169d)}];for(let _0x316aab=0x0;_0x316aab<_0x505d69[_0x113fde(0x524)]['errors'][_0x113fde(0x402)];_0x316aab++){_0x6b39c4['error']({'title':_0x505d69[_0x113fde(0x524)]['errors'][_0x316aab][_0x113fde(0x1142)],'msg':_0x505d69[_0x113fde(0x524)][_0x113fde(0xcef)][_0x316aab][_0x113fde(0x7fd)]});}}else _0x6b39c4['error']({'title':_0x505d69[_0x113fde(0x107b)]?_0x113fde(0x262a)+_0x505d69[_0x113fde(0x107b)]+_0x113fde(0x1315)+_0x505d69[_0x113fde(0x167f)]:_0x113fde(0x169d),'msg':_0x505d69[_0x113fde(0x524)]?JSON[_0x113fde(0x10bb)](_0x505d69['data'][_0x113fde(0x7fd)]):_0x505d69[_0x113fde(0x7fd)]||_0x505d69['toString']()});});}function _0x5a66e5(_0x4aca12){const _0x546237=_0x268a8b;_0x592f6b['go'](_0x546237(0x133),{'id':_0x4aca12['id'],'plugin':_0x4aca12,'crudPermissions':_0x4bc074[_0x546237(0x2514)]});}function _0x2cf17f(_0x5bff17,_0x4e728c){const _0x5e9c36=_0x268a8b,_0x2156d9=_0x2489b0[_0x5e9c36(0x1e8a)]()[_0x5e9c36(0x1189)]('Are\x20you\x20sure\x20want\x20to\x20stop\x20the\x20plugin\x20attached\x20process?')[_0x5e9c36(0x1cbe)](''+(_0x5bff17[_0x5e9c36(0x19eb)]||_0x5e9c36(0x5f5))+_0x5e9c36(0x252f)+_0x5e9c36(0x220c))[_0x5e9c36(0x4bd)](_0x5e9c36(0x1e79))[_0x5e9c36(0x1f27)](_0x4e728c)['ok']('OK')['cancel'](_0x5e9c36(0x39a));_0x2489b0['show'](_0x2156d9)[_0x5e9c36(0x146b)](function(){_0xec6b0c(_0x5bff17);},function(){const _0x39e9a2=_0x5e9c36;console['log'](_0x39e9a2(0x39a));});}function _0xec6b0c(_0xcb4ead){const _0x509202=_0x268a8b;_0x389281[_0x509202(0x1b6f)][_0x509202(0x16b4)]()['$promise'][_0x509202(0x146b)](function(_0x2aeec1){const _0x40d920=_0x509202;if(!_0x2aeec1||!_0x2aeec1[_0x40d920(0x19c7)])throw new Error(_0x40d920(0x1508));const _0x5db4d=_0x3f65c0()['find'](_0x2aeec1[_0x40d920(0x19c7)],{'name':_0xcb4ead[_0x40d920(0x1cdb)]});if(!_0x5db4d)throw new Error(_0x40d920(0x2819));_0x389281['pm2'][_0x40d920(0x18e1)]({'id':_0x5db4d[_0x40d920(0x2643)],'status':'stopped'})['$promise']['then'](function(){const _0x782f52=_0x40d920;_0x6b39c4[_0x782f52(0x1c75)]({'title':_0x782f52(0xfd3),'msg':_0x782f52(0x1308)});});})['catch'](function(_0x3d1f02){const _0x2b4d57=_0x509202;if(_0x3d1f02[_0x2b4d57(0x524)]&&_0x3d1f02['data'][_0x2b4d57(0xcef)]&&_0x3d1f02[_0x2b4d57(0x524)][_0x2b4d57(0xcef)]['length']){_0x4bc074[_0x2b4d57(0xcef)]=_0x3d1f02[_0x2b4d57(0x524)][_0x2b4d57(0xcef)]||[{'message':_0x3d1f02[_0x2b4d57(0xd5f)](),'type':_0x2b4d57(0xca0)}];for(let _0x19240e=0x0;_0x19240e<_0x3d1f02[_0x2b4d57(0x524)][_0x2b4d57(0xcef)]['length'];_0x19240e++){_0x6b39c4[_0x2b4d57(0x1980)]({'title':_0x3d1f02[_0x2b4d57(0x524)][_0x2b4d57(0xcef)][_0x19240e][_0x2b4d57(0x1142)],'msg':_0x3d1f02[_0x2b4d57(0x524)][_0x2b4d57(0xcef)][_0x19240e][_0x2b4d57(0x7fd)]});}}else _0x6b39c4['error']({'title':_0x3d1f02[_0x2b4d57(0x107b)]?_0x2b4d57(0x262a)+_0x3d1f02['status']+_0x2b4d57(0x1315)+_0x3d1f02['statusText']:_0x2b4d57(0xca0),'msg':_0x3d1f02[_0x2b4d57(0x524)]?JSON[_0x2b4d57(0x10bb)](_0x3d1f02[_0x2b4d57(0x524)][_0x2b4d57(0x7fd)]):_0x3d1f02['message']||_0x3d1f02[_0x2b4d57(0xd5f)]()});});}function _0x54f0a6(_0x3dbebc,_0x5cd7d8){const _0xc74875=_0x268a8b,_0xa32068=_0x2489b0['confirm']()[_0xc74875(0x1189)](_0xc74875(0x1412))[_0xc74875(0x1cbe)](_0xc74875(0x16d3)+(_0x3dbebc[_0xc74875(0x19eb)]||'plugin')+_0xc74875(0x252f)+_0xc74875(0x2013))[_0xc74875(0x4bd)](_0xc74875(0x28e9))[_0xc74875(0x1f27)](_0x5cd7d8)['ok']('OK')['cancel'](_0xc74875(0x39a));_0x2489b0[_0xc74875(0x2615)](_0xa32068)[_0xc74875(0x146b)](function(){_0x336876(_0x3dbebc);},function(){const _0x2123e5=_0xc74875;console[_0x2123e5(0x1a74)]('CANCEL');});}function _0x336876(_0x554cc1){const _0x249df8=_0x268a8b;_0x389281['pm2']['get']()[_0x249df8(0x2945)][_0x249df8(0x146b)](function(_0x26d659){const _0x4bdb9d=_0x249df8;if(!_0x26d659||!_0x26d659[_0x4bdb9d(0x19c7)])throw new Error(_0x4bdb9d(0x1508));const _0x4af1de=_0x3f65c0()[_0x4bdb9d(0xc84)](_0x26d659['rows'],{'name':_0x554cc1[_0x4bdb9d(0x1cdb)]});if(!_0x4af1de)throw new Error('No\x20corresponding\x20process\x20found');_0x389281[_0x4bdb9d(0x1b6f)][_0x4bdb9d(0x18e1)]({'id':_0x4af1de[_0x4bdb9d(0x2643)],'status':'online'})['$promise'][_0x4bdb9d(0x146b)](function(){const _0x321e1f=_0x4bdb9d;_0x6b39c4[_0x321e1f(0x1c75)]({'title':_0x321e1f(0x8c0),'msg':_0x321e1f(0x850)});});})[_0x249df8(0x129e)](function(_0x148db6){const _0x208b21=_0x249df8;if(_0x148db6[_0x208b21(0x524)]&&_0x148db6['data']['errors']&&_0x148db6[_0x208b21(0x524)][_0x208b21(0xcef)]['length']){_0x4bc074[_0x208b21(0xcef)]=_0x148db6[_0x208b21(0x524)][_0x208b21(0xcef)]||[{'message':_0x148db6[_0x208b21(0xd5f)](),'type':'api.pm2.update'}];for(let _0x18f9c0=0x0;_0x18f9c0<_0x148db6['data'][_0x208b21(0xcef)]['length'];_0x18f9c0++){_0x6b39c4[_0x208b21(0x1980)]({'title':_0x148db6[_0x208b21(0x524)]['errors'][_0x18f9c0][_0x208b21(0x1142)],'msg':_0x148db6[_0x208b21(0x524)]['errors'][_0x18f9c0][_0x208b21(0x7fd)]});}}else _0x6b39c4[_0x208b21(0x1980)]({'title':_0x148db6[_0x208b21(0x107b)]?_0x208b21(0x262a)+_0x148db6[_0x208b21(0x107b)]+_0x208b21(0x1315)+_0x148db6[_0x208b21(0x167f)]:_0x208b21(0xca0),'msg':_0x148db6['data']?JSON[_0x208b21(0x10bb)](_0x148db6[_0x208b21(0x524)][_0x208b21(0x7fd)]):_0x148db6['message']||_0x148db6['toString']()});});}function _0x2d9f8c(_0x2d0c87){const _0x2a9637=_0x268a8b;return _0x389281[_0x2a9637(0x5f5)][_0x2a9637(0x15b1)]({'id':_0x2d0c87['id']})['$promise'][_0x2a9637(0x146b)](function(_0x36e057){const _0x20a464=_0x2a9637,_0x8393b6=[_0x36e057[_0x20a464(0x2eb)]];let _0xc5ed64='download';const _0x3f0c66=new Blob(_0x8393b6,{'type':_0x36e057[_0x20a464(0x1142)]});_0xc5ed64=_0x2d0c87['name'][_0x20a464(0x5f4)]('\x20','_')[_0x20a464(0x256e)]()+_0x20a464(0xf04);const _0x56e5f7=window[_0x20a464(0xef3)][_0x20a464(0x24ec)]('a');_0x56e5f7['setAttribute'](_0x20a464(0x1b3c),URL[_0x20a464(0x1c58)](_0x3f0c66)),_0x56e5f7[_0x20a464(0x1652)]('download',_0xc5ed64),document[_0x20a464(0x2586)][_0x20a464(0x23e)](_0x56e5f7),_0x56e5f7[_0x20a464(0x1fa5)]();})[_0x2a9637(0x129e)](function(_0xe5875d){const _0x2436d4=_0x2a9637;if(_0xe5875d[_0x2436d4(0x524)]&&_0xe5875d[_0x2436d4(0x524)][_0x2436d4(0xcef)]&&_0xe5875d['data'][_0x2436d4(0xcef)]['length'])for(let _0x3cd3bb=0x0;_0x3cd3bb<_0xe5875d[_0x2436d4(0x524)]['errors'][_0x2436d4(0x402)];_0x3cd3bb++){_0x6b39c4[_0x2436d4(0x1980)]({'title':_0xe5875d['data'][_0x2436d4(0xcef)][_0x3cd3bb]['type'],'msg':_0xe5875d[_0x2436d4(0x524)]['errors'][_0x3cd3bb][_0x2436d4(0x7fd)]});}else _0x6b39c4['error']({'title':_0xe5875d['status']?_0x2436d4(0x262a)+_0xe5875d[_0x2436d4(0x107b)]+_0x2436d4(0x1315)+_0xe5875d['statusText']:'api.plugin.save','msg':_0xe5875d[_0x2436d4(0x524)]?JSON['stringify'](_0xe5875d[_0x2436d4(0x524)][_0x2436d4(0x7fd)]):_0xe5875d[_0x2436d4(0xd5f)]()});});}function _0x17e79b(_0x3af4dd,_0x1cdb59){const _0x589ef7=_0x268a8b,_0x1b66a3=_0x2489b0[_0x589ef7(0x1e8a)]()['title'](_0x589ef7(0x1e0c))[_0x589ef7(0x1cbe)](_0x589ef7(0x16d3)+(_0x3af4dd[_0x589ef7(0x19eb)]||_0x589ef7(0x5f5))+''+_0x589ef7(0x2187))[_0x589ef7(0x4bd)](_0x589ef7(0x197e))[_0x589ef7(0x1f27)](_0x1cdb59)['ok']('OK')['cancel']('CANCEL');_0x2489b0[_0x589ef7(0x2615)](_0x1b66a3)['then'](function(){_0x392aeb(_0x3af4dd);},function(){const _0xde5c6d=_0x589ef7;console[_0xde5c6d(0x1a74)]('CANCEL');});}function _0x392aeb(_0xd69424){const _0xe0929d=_0x268a8b;return _0xd69424[_0xe0929d(0x1142)]===_0xe0929d(0x1a8)&&_0x389281[_0xe0929d(0x1b6f)][_0xe0929d(0x16b4)]()[_0xe0929d(0x2945)]['then'](function(_0x42d835){const _0x53c6f5=_0xe0929d;if(!_0x42d835||!_0x42d835['rows'])throw new Error(_0x53c6f5(0x1508));const _0x36ff6e=_0x3f65c0()[_0x53c6f5(0xc84)](_0x42d835[_0x53c6f5(0x19c7)],{'name':_0xd69424['scriptName']});if(!_0x36ff6e)throw new Error(_0x53c6f5(0x2819));_0x389281[_0x53c6f5(0x1b6f)][_0x53c6f5(0x1fac)]({'id':_0x36ff6e['pm_id'],'name':_0xd69424[_0x53c6f5(0x1cdb)]})[_0x53c6f5(0x2945)];})[_0xe0929d(0x129e)](function(_0x2f9037){const _0x226711=_0xe0929d;_0x6b39c4[_0x226711(0x1980)]({'title':_0x2f9037[_0x226711(0x107b)]?_0x226711(0x262a)+_0x2f9037[_0x226711(0x107b)]+_0x226711(0x1315)+_0x2f9037[_0x226711(0x167f)]:_0x226711(0x25df),'msg':_0x2f9037[_0x226711(0x524)]?JSON[_0x226711(0x10bb)](_0x2f9037[_0x226711(0x524)][_0x226711(0x7fd)]):_0x2f9037[_0x226711(0x7fd)]||_0x2f9037[_0x226711(0xd5f)]()});}),_0xd69424[_0xe0929d(0x275a)]=![],_0x389281[_0xe0929d(0x5f5)][_0xe0929d(0x18e1)]({'id':_0xd69424['id']},_0xd69424)[_0xe0929d(0x2945)][_0xe0929d(0x146b)](function(){const _0x44db7f=_0xe0929d;_0x6b39c4[_0x44db7f(0x1c75)]({'title':_0x44db7f(0x141c),'msg':_0xd69424['name']?_0xd69424[_0x44db7f(0x19eb)]+'\x20has\x20been\x20uninstalled!':''});})[_0xe0929d(0x129e)](function(_0x191058){const _0x3a2807=_0xe0929d;if(_0x191058[_0x3a2807(0x524)]&&_0x191058[_0x3a2807(0x524)][_0x3a2807(0xcef)]&&_0x191058['data']['errors'][_0x3a2807(0x402)]){_0x4bc074[_0x3a2807(0xcef)]=_0x191058['data'][_0x3a2807(0xcef)]||[{'message':_0x191058[_0x3a2807(0xd5f)](),'type':_0x3a2807(0x169d)}];for(let _0x42dbd3=0x0;_0x42dbd3<_0x191058['data']['errors'][_0x3a2807(0x402)];_0x42dbd3++){_0x6b39c4[_0x3a2807(0x1980)]({'title':_0x191058['data'][_0x3a2807(0xcef)][_0x42dbd3][_0x3a2807(0x1142)],'msg':_0x191058[_0x3a2807(0x524)]['errors'][_0x42dbd3]['message']});}}else _0x6b39c4[_0x3a2807(0x1980)]({'title':_0x191058['status']?_0x3a2807(0x262a)+_0x191058['status']+'\x20-\x20'+_0x191058[_0x3a2807(0x167f)]:'api.plugin.update','msg':_0x191058['data']?JSON[_0x3a2807(0x10bb)](_0x191058[_0x3a2807(0x524)]['message']):_0x191058[_0x3a2807(0x7fd)]||_0x191058['toString']()});});}function _0x1ede4c(_0x41eeb0,_0x3ae54f){const _0x387599=_0x268a8b,_0x1aac8=_0x2489b0['confirm']()[_0x387599(0x1189)](_0x387599(0xdb2)+_0x3f65c0()[_0x387599(0x20d1)](_0x387599(0x5f5))+'?')[_0x387599(0x1cbe)](_0x387599(0x16d3)+(_0x41eeb0[_0x387599(0x19eb)]||_0x387599(0x5f5))+''+'\x20will\x20be\x20deleted.')[_0x387599(0x4bd)](_0x387599(0x15e3))[_0x387599(0x1f27)](_0x3ae54f)['ok']('OK')['cancel'](_0x387599(0x39a));_0x2489b0[_0x387599(0x2615)](_0x1aac8)[_0x387599(0x146b)](function(){_0x385889(_0x41eeb0);},function(){const _0x5a3ce3=_0x387599;console['log'](_0x5a3ce3(0x39a));});}let _0x4a755d=!![],_0x1b8cda=0x1;_0x1dcd3a[_0x268a8b(0x21e8)]('vm.query.filter',function(_0x5b54dc,_0x19d08c){const _0x319626=_0x268a8b;_0x4a755d?_0x21822a(function(){_0x4a755d=![];}):(!_0x19d08c&&(_0x1b8cda=_0x4bc074[_0x319626(0x1a56)][_0x319626(0x844)]),_0x5b54dc!==_0x19d08c&&(_0x4bc074[_0x319626(0x1a56)][_0x319626(0x844)]=0x1),!_0x5b54dc&&(_0x4bc074[_0x319626(0x1a56)]['page']=_0x1b8cda),_0x4bc074[_0x319626(0xa1a)]());});function _0x4d8c57(_0x563ccc){const _0x5751ef=_0x268a8b;_0x4bc074[_0x5751ef(0x2af)]=_0x563ccc||{'count':0x0,'rows':[]};}function _0x58241c(){const _0x4d5124=_0x268a8b;_0x4bc074['query'][_0x4d5124(0x145d)]=(_0x4bc074[_0x4d5124(0x1a56)][_0x4d5124(0x844)]-0x1)*_0x4bc074['query'][_0x4d5124(0x221e)],_0x1cf12b[_0x4d5124(0x23e0)](_0x4d5124(0x174b))?_0x4bc074[_0x4d5124(0xb9c)]=_0x389281[_0x4d5124(0x5f5)]['get'](_0x4bc074[_0x4d5124(0x1a56)],_0x4d8c57)['$promise']:(_0x4bc074[_0x4d5124(0x1a56)]['id']=_0x4bc074[_0x4d5124(0x26b6)]['id'],_0x4bc074['query'][_0x4d5124(0x2146)]=_0x4d5124(0x40f),_0x4bc074[_0x4d5124(0xb9c)]=_0x389281['userProfile']['getResources'](_0x4bc074[_0x4d5124(0x1a56)],_0x4d8c57)['$promise']);}function _0x39754b(_0x58e95a,_0xc2e31d){const _0x19ee77=_0x268a8b;_0x2489b0[_0x19ee77(0x2615)]({'controller':_0x19ee77(0x9a2),'controllerAs':'vm','templateUrl':_0x3a75dc,'parent':angular[_0x19ee77(0x1853)](_0x4ab1dc['body']),'targetEvent':_0x58e95a,'clickOutsideToClose':!![],'locals':{'plugin':_0xc2e31d,'plugins':_0x4bc074[_0x19ee77(0x2af)][_0x19ee77(0x19c7)],'license':_0x4bc074['license'],'setting':_0x4bc074[_0x19ee77(0x15b9)],'crudPermissions':_0x4bc074[_0x19ee77(0x2514)]}});}function _0x385889(_0x4d3cef){const _0xeda225=_0x268a8b;_0x4d3cef[_0xeda225(0x275a)]&&_0x4d3cef['type']==_0xeda225(0x1a8)&&_0x389281['pm2'][_0xeda225(0x16b4)]()[_0xeda225(0x2945)][_0xeda225(0x146b)](function(_0x4a4142){const _0x18ea3b=_0xeda225;if(!_0x4a4142||!_0x4a4142['rows'])return _0x6b39c4[_0x18ea3b(0x1980)]({'title':_0x18ea3b(0x87b),'msg':_0x18ea3b(0x1508)});const _0x2f6911=_0x3f65c0()[_0x18ea3b(0xc84)](_0x4a4142[_0x18ea3b(0x19c7)],{'name':_0x4d3cef[_0x18ea3b(0x1cdb)]});if(!_0x2f6911){console[_0x18ea3b(0x1a74)](_0x18ea3b(0x2470),_0x4d3cef[_0x18ea3b(0x1cdb)]);return;}_0x389281[_0x18ea3b(0x1b6f)][_0x18ea3b(0x1fac)]({'id':_0x2f6911[_0x18ea3b(0x2643)],'name':_0x4d3cef['scriptName']})[_0x18ea3b(0x2945)];})[_0xeda225(0x129e)](function(){const _0x5e2043=_0xeda225;return _0x6b39c4[_0x5e2043(0x1980)]({'title':_0x5e2043(0x28d0),'msg':'Failed\x20to\x20delete\x20the\x20attached\x20pm2\x20process'});}),_0x389281[_0xeda225(0x5f5)]['delete']({'id':_0x4d3cef['id']})[_0xeda225(0x2945)][_0xeda225(0x146b)](function(){const _0xe4163f=_0xeda225;_0x3f65c0()[_0xe4163f(0x2640)](_0x4bc074[_0xe4163f(0x2af)][_0xe4163f(0x19c7)],{'id':_0x4d3cef['id']}),_0x4bc074['plugins'][_0xe4163f(0x51c)]-=0x1,!_0x4bc074[_0xe4163f(0x2af)][_0xe4163f(0x19c7)][_0xe4163f(0x402)]&&_0x4bc074[_0xe4163f(0xa1a)](),_0x6b39c4[_0xe4163f(0x1c75)]({'title':_0x3f65c0()[_0xe4163f(0x20d1)](_0xe4163f(0x13d5))+_0xe4163f(0x201c),'msg':_0x4d3cef[_0xe4163f(0x19eb)]?_0x4d3cef[_0xe4163f(0x19eb)]+'\x20has\x20been\x20deleted!':''});})[_0xeda225(0x129e)](function(_0x13f9a4){const _0x38d0c4=_0xeda225;if(_0x13f9a4['data']&&_0x13f9a4['data'][_0x38d0c4(0xcef)]&&_0x13f9a4[_0x38d0c4(0x524)]['errors'][_0x38d0c4(0x402)]){_0x4bc074[_0x38d0c4(0xcef)]=_0x13f9a4[_0x38d0c4(0x524)][_0x38d0c4(0xcef)]||[{'message':_0x13f9a4[_0x38d0c4(0xd5f)](),'type':'SYSTEM:DELETEplugin'}];for(let _0x367d2b=0x0;_0x367d2b<_0x13f9a4['data'][_0x38d0c4(0xcef)][_0x38d0c4(0x402)];_0x367d2b++){_0x6b39c4[_0x38d0c4(0x1980)]({'title':_0x13f9a4[_0x38d0c4(0x524)][_0x38d0c4(0xcef)][_0x367d2b][_0x38d0c4(0x1142)],'msg':_0x13f9a4[_0x38d0c4(0x524)][_0x38d0c4(0xcef)][_0x367d2b][_0x38d0c4(0x7fd)]});}}else _0x6b39c4[_0x38d0c4(0x1980)]({'title':_0x13f9a4[_0x38d0c4(0x107b)]?_0x38d0c4(0x262a)+_0x13f9a4[_0x38d0c4(0x107b)]+_0x38d0c4(0x1315)+_0x13f9a4[_0x38d0c4(0x167f)]:_0x38d0c4(0x65b),'msg':_0x13f9a4[_0x38d0c4(0x524)]?JSON[_0x38d0c4(0x10bb)](_0x13f9a4[_0x38d0c4(0x524)][_0x38d0c4(0x7fd)]):_0x13f9a4[_0x38d0c4(0x7fd)]||_0x13f9a4[_0x38d0c4(0xd5f)]()});});}function _0x2b63bc(){const _0x3ebb16=_0x268a8b,_0x4b2574=angular[_0x3ebb16(0x235a)](_0x4bc074[_0x3ebb16(0x1847)]);return _0x4bc074[_0x3ebb16(0x1847)]=[],_0x4b2574;}function _0x2643ae(_0x65fef8){const _0x1f16dc=_0x268a8b,_0x33e197=_0x2489b0[_0x1f16dc(0x1e8a)]()[_0x1f16dc(0x1189)](_0x1f16dc(0x1281))[_0x1f16dc(0x1cbe)](_0x1f16dc(0x16d3)+_0x4bc074[_0x1f16dc(0x1847)][_0x1f16dc(0x402)]+_0x1f16dc(0x2452)+_0x1f16dc(0xe01))[_0x1f16dc(0x4bd)](_0x1f16dc(0x544))[_0x1f16dc(0x1f27)](_0x65fef8)['ok']('OK')[_0x1f16dc(0x6c3)](_0x1f16dc(0x39a));_0x2489b0[_0x1f16dc(0x2615)](_0x33e197)['then'](function(){const _0x127aee=_0x1f16dc;_0x4bc074[_0x127aee(0x1847)]['forEach'](function(_0x51734b){_0x385889(_0x51734b);}),_0x4bc074[_0x127aee(0x1847)]=[];});}function _0x5204a3(){const _0x1ee5de=_0x268a8b;_0x4bc074[_0x1ee5de(0x1847)]=[];}function _0x29fc84(){const _0x557fe7=_0x268a8b;_0x4bc074[_0x557fe7(0x1847)]=_0x4bc074[_0x557fe7(0x2af)][_0x557fe7(0x19c7)];}function _0x369e8b(_0x3c3182){const _0x110876=_0x268a8b;_0x2489b0[_0x110876(0x2615)]({'controller':_0x110876(0x1326),'controllerAs':'vm','templateUrl':_0x2acd43,'parent':angular[_0x110876(0x1853)](_0x4ab1dc['body']),'targetEvent':_0x3c3182,'clickOutsideToClose':!![],'locals':{'plugins':_0x4bc074['plugins']['rows']}});}}const _0x5d6bf5=_0xa61cba;;_0x95396f[_0x313a4d(0x11c2)]=['$cookies',_0x313a4d(0x10e8),'toasty',_0x313a4d(0x2af),_0x313a4d(0x247f),_0x313a4d(0xa87)];function _0x95396f(_0x51609b,_0xbc3248,_0xcbe5ef,_0x44a6f7,_0x389dc4,_0xff2b8a){const _0x16e75c=_0x313a4d,_0x826aec=this,_0x3e6fad=0x2,_0x4b3551=_0x3e6fad*0x400*0x400;_0x826aec[_0x16e75c(0x2321)]=_0xff2b8a['getCurrentUser'](),_0x826aec[_0x16e75c(0xcef)]=[],_0x826aec[_0x16e75c(0x1189)]='MARKETPLACE.UPLOAD_PLUGIN',_0x826aec['plugins']=_0x44a6f7,_0x826aec[_0x16e75c(0xe7d)]=[],_0x826aec[_0x16e75c(0x211b)]=_0x16e75c(0x1642),_0x826aec[_0x16e75c(0x5f5)]={},_0x826aec[_0x16e75c(0x4c3)]={'maxChunkRetries':0x1,'chunkSize':_0x4b3551,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![],'target':_0x16e75c(0x95b)},_0x826aec[_0x16e75c(0x1376)]={'flow':{}},_0x826aec['dropping']=![],_0x826aec[_0x16e75c(0x143d)]=_0x28cb3f,_0x826aec['upload']=_0x45d2a0,_0x826aec['fileSuccess']=_0x6b1caa,_0x826aec[_0x16e75c(0x1897)]=_0x349c56,_0x826aec[_0x16e75c(0x234e)]=_0x1f6f14,_0x826aec['closeDialog']=_0x53cfa0;function _0x28cb3f(_0x3f7ebe){const _0x49fc6b=_0x16e75c,_0x1d3452=[_0x49fc6b(0x2106)];if(!_0x3f65c0()['includes'](_0x1d3452,_0x3f7ebe[_0x49fc6b(0x193f)]()))return _0xcbe5ef['error']({'title':_0x49fc6b(0x4c6)+_0x3f7ebe[_0x49fc6b(0x193f)](),'msg':_0x49fc6b(0x208f)+_0x1d3452['join']()}),![];if(_0x3f7ebe[_0x49fc6b(0x4cc)]>_0x4b3551)return _0xcbe5ef['error']({'title':_0x49fc6b(0x625),'msg':_0x49fc6b(0x923)+_0x3e6fad+'MB'}),![];return _0x826aec['plugin']={'id':_0x3f7ebe[_0x49fc6b(0x1276)],'file':_0x3f7ebe},_0x826aec[_0x49fc6b(0xe7d)][_0x49fc6b(0xb3d)](_0x826aec[_0x49fc6b(0x5f5)]),!![];}function _0x45d2a0(){const _0x431ef4=_0x16e75c;_0x826aec[_0x431ef4(0x211b)]=_0x431ef4(0x159c),_0x826aec['ngFlow'][_0x431ef4(0x963)]['opts'][_0x431ef4(0xa01)]={'X-Requested-With':'XMLHttpRequest','Authorization':_0x431ef4(0x2745)+_0x51609b['get']('motion.token')},_0x826aec[_0x431ef4(0x1376)]['flow'][_0x431ef4(0x1da1)][_0x431ef4(0x1a56)]={'role':_0x826aec[_0x431ef4(0x2321)]['role'],'userProfileId':_0x826aec[_0x431ef4(0x2321)][_0x431ef4(0x209a)]},_0x826aec[_0x431ef4(0x1376)][_0x431ef4(0x963)]['upload']();}function _0x6b1caa(_0x140500,_0x55cb68){const _0x180287=_0x16e75c;_0x826aec[_0x180287(0x2af)][_0x180287(0xb3d)](JSON['parse'](_0x55cb68)),angular[_0x180287(0x1df5)](_0x826aec['uploadPlugins'],function(_0x46bb91){const _0x126bf2=_0x180287;if(_0x46bb91['id']===_0x140500[_0x126bf2(0x1276)]){const _0x28c61b=new FileReader();_0x28c61b[_0x126bf2(0xa0c)](_0x46bb91[_0x126bf2(0x252e)][_0x126bf2(0x252e)]),_0x28c61b[_0x126bf2(0x20f6)]=function(_0x181546){const _0x3e2746=_0x126bf2;_0x46bb91[_0x3e2746(0x20cc)]=_0x181546[_0x3e2746(0xe1d)][_0x3e2746(0x61a)];};}});}function _0x349c56(){const _0x4f311d=_0x16e75c;_0x826aec[_0x4f311d(0x1376)][_0x4f311d(0x963)][_0x4f311d(0x6c3)](),_0xcbe5ef[_0x4f311d(0x1980)]({'title':_0x4f311d(0x2645),'msg':_0x4f311d(0x543)}),_0x826aec[_0x4f311d(0x211b)]=_0x4f311d(0x18de);}function _0x1f6f14(){const _0x484d29=_0x16e75c;_0x826aec[_0x484d29(0x211b)]!==_0x484d29(0x18de)&&(_0x826aec[_0x484d29(0x211b)]='completed',_0xcbe5ef[_0x484d29(0x1c75)]({'title':'Upload\x20completed','msg':_0x826aec['plugin'][_0x484d29(0x252e)]['name']+_0x484d29(0x1aae)}));}function _0x53cfa0(){_0xbc3248['hide']();}}const _0x45d01d=_0x95396f;;_0x172b32[_0x313a4d(0x11c2)]=[_0x313a4d(0x921),_0x313a4d(0x695)];function _0x172b32(_0x1d71d2,_0x51afe2){const _0x4b11ae=_0x313a4d;_0x1d71d2[_0x4b11ae(0x13d6)](_0x4b11ae(0x9f8),{'abstract':!![],'url':_0x4b11ae(0xcac)})['state']('app.marketplace.plugins',{'url':'/plugins','views':{'content@app':{'templateUrl':_0x450378,'controller':_0x4b11ae(0xe61)}},'resolve':{'plugins':[_0x4b11ae(0x362),_0x4b11ae(0xa87),function(_0x173861,_0x2c5a17){const _0x41b9b9=_0x4b11ae;return _0x2c5a17[_0x41b9b9(0x23e0)](_0x41b9b9(0x174b))?_0x173861[_0x41b9b9(0x2922)](_0x41b9b9(0x18a),{'fields':'createdAt,updatedAt,id,name,type,active,description,icon,sidebar,path,adminUrl,agentUrl,scriptName,scriptPath,version','sort':_0x41b9b9(0x19eb),'limit':0xa,'offset':0x0}):_0x173861[_0x41b9b9(0x2922)]('userProfile@getResources',{'id':_0x2c5a17[_0x41b9b9(0xb12)]()[_0x41b9b9(0x209a)],'section':_0x41b9b9(0x40f),'fields':_0x41b9b9(0x1d56),'sort':_0x41b9b9(0x19eb),'limit':0xa,'offset':0x0});}],'userProfile':[_0x4b11ae(0x362),_0x4b11ae(0xa87),function(_0x474398,_0x252a27){const _0x10239e=_0x4b11ae;return _0x252a27['hasRole'](_0x10239e(0x174b))?null:_0x474398[_0x10239e(0x2922)](_0x10239e(0x119a),{'fields':'id,name,crudPermissions','id':_0x252a27['getCurrentUser']()[_0x10239e(0x209a)]});}],'userProfileSection':['apiResolver',_0x4b11ae(0xa87),function(_0x435073,_0x24dd32){const _0x2173bf=_0x4b11ae;return _0x24dd32['hasRole'](_0x2173bf(0x174b))?null:_0x435073[_0x2173bf(0x2922)](_0x2173bf(0x27be),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x24dd32[_0x2173bf(0xb12)]()[_0x2173bf(0x209a)],'sectionId':0x709});}]},'authenticate':!![],'permissionId':0x709,'bodyClass':'marketplace'})['state'](_0x4b11ae(0x133),{'url':_0x4b11ae(0x2028),'params':{'plugin':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x2cff3d,'controller':_0x4b11ae(0x9f7)}},'resolve':{'plugin':[_0x4b11ae(0x362),_0x4b11ae(0x28c8),function(_0x4b0902,_0x5589c0){const _0x4e178b=_0x4b11ae;return _0x4b0902[_0x4e178b(0x2922)]('plugin@get',{'fields':_0x4e178b(0x1d56),'id':_0x5589c0['id']});}],'userProfileSection':['apiResolver',_0x4b11ae(0xa87),function(_0x152b3e,_0x127fd1){const _0x101e5a=_0x4b11ae;return _0x152b3e[_0x101e5a(0x2922)](_0x101e5a(0x27be),{'fields':_0x101e5a(0x1e64),'userProfileId':_0x127fd1['getCurrentUser']()[_0x101e5a(0x209a)],'sectionId':0x709});}]},'authenticate':!![],'permissionId':0x709,'bodyClass':_0x4b11ae(0x694)}),_0x51afe2[_0x4b11ae(0x15bf)]('app/main/apps/marketplace');}angular[_0x313a4d(0x2528)]('app.marketplace',[_0x313a4d(0xdad),_0x313a4d(0x962),_0x313a4d(0x23c7),_0x313a4d(0x963),'mdColorPicker',_0x313a4d(0x27c1),'ng-sortable',_0x313a4d(0x15ef),'ngAnimate',_0x313a4d(0x1f5f),'mwFormBuilder',_0x313a4d(0xfb2),_0x313a4d(0x1e57),_0x313a4d(0x581),_0x313a4d(0x1bd2),_0x313a4d(0x1792),'angularMaterialFormBuilder',_0x313a4d(0x1626),_0x313a4d(0x2713),_0x313a4d(0x11df)])[_0x313a4d(0x989)](_0x172b32)[_0x313a4d(0x28f0)](_0x313a4d(0x9a2),_0x21d949)[_0x313a4d(0x28f0)](_0x313a4d(0x639),_0x4f8f68)['controller'](_0x313a4d(0xb0d),_0x5d6bf5)[_0x313a4d(0x28f0)](_0x313a4d(0x1326),_0x45d01d);;const _0x2c7463=_0x4acfac['p']+_0x313a4d(0x1e9a);;_0x53de0f['$inject']=[_0x313a4d(0x1862),_0x313a4d(0x910),_0x313a4d(0xb51),_0x313a4d(0x247f),'socket',_0x313a4d(0xa87)];function _0x53de0f(_0x217633,_0x2a0cd7,_0x9a9fe5,_0xadfe0e,_0x3d773e,_0x1f419e){const _0x594cd7=_0x313a4d,_0x54b23c=this;_0x54b23c['currentUser']=_0x1f419e[_0x594cd7(0xb12)](),_0x54b23c[_0x594cd7(0x5f5)]={},_0x54b23c[_0x594cd7(0x208b)]=_0x2f6ced,_0xadfe0e[_0x594cd7(0x5f5)][_0x594cd7(0x16b4)]({'id':_0x217633[_0x594cd7(0x16a)]['id']})[_0x594cd7(0x2945)][_0x594cd7(0x146b)](function(_0x272553){const _0x21b19c=_0x594cd7;if(_0x272553)return _0x54b23c[_0x21b19c(0x5f5)]=_0x272553,_0xadfe0e[_0x21b19c(0x5f5)]['get']({'id':_0x54b23c['plugin']['id']})['$promise'];})['catch'](function(){const _0x1f6e63=_0x594cd7;_0x54b23c[_0x1f6e63(0x5f5)]=undefined;});function _0x2f6ced(){const _0x525118=_0x594cd7;return _0x9a9fe5[_0x525118(0x66b)](_0x54b23c[_0x525118(0x5f5)][_0x525118(0x3cc)]);}}const _0xe3d732=_0x53de0f;;_0x51a347[_0x313a4d(0x11c2)]=[_0x313a4d(0x921)];function _0x51a347(_0x4e410c){const _0x34801c=_0x313a4d;_0x4e410c['state']('app.plugins.plugin',{'url':_0x34801c(0x22a5),'views':{'content@app':{'templateUrl':_0x2c7463,'controller':_0x34801c(0x10c9)}},'resolve':{},'authenticate':!![],'bodyClass':_0x34801c(0x2af)});}angular['module'](_0x313a4d(0x9ce),[])[_0x313a4d(0x989)](_0x51a347)[_0x313a4d(0x28f0)]('PluginController',_0xe3d732);;_0x33104f[_0x313a4d(0x11c2)]=['$stateProvider',_0x313a4d(0x695)];function _0x33104f(_0x7b2d65,_0x33e85e){const _0xadd650=_0x313a4d;_0x7b2d65[_0xadd650(0x13d6)](_0xadd650(0xa59),{'abstract':!![],'url':_0xadd650(0x24aa)}),_0x33e85e[_0xadd650(0x15bf)](_0xadd650(0x2099));}angular['module'](_0x313a4d(0xa59),['ngCsv','ngPassword',_0x313a4d(0x23c7),_0x313a4d(0x963),_0x313a4d(0x19e2),'ckeditor',_0x313a4d(0x195b),_0x313a4d(0x15ef),'ngAnimate',_0x313a4d(0x1f5f),_0x313a4d(0x28a8),'mwFormViewer',_0x313a4d(0x1e57),_0x313a4d(0x581),_0x313a4d(0x1bd2),'ngEmbed','angularMaterialFormBuilder',_0x313a4d(0x1626),_0x313a4d(0x2713),_0x313a4d(0x11df),_0x313a4d(0x9ce)])['config'](_0x33104f);;const _0x5a0183=_0x4acfac['p']+_0x313a4d(0xa0b);;_0x26dd0b['$inject']=[_0x313a4d(0x910),_0x313a4d(0x1862),'$location',_0x313a4d(0x10e8),'$q','$translate',_0x313a4d(0x1fe4),_0x313a4d(0x293d),'screenRecording',_0x313a4d(0x247f),'Auth',_0x313a4d(0x2690),'setting',_0x313a4d(0x2514)];function _0x26dd0b(_0x3ac907,_0x1fe5aa,_0x16429e,_0x22f74e,_0x37397b,_0x4aaac9,_0x1ea48e,_0x2193cd,_0xc84acb,_0x414adf,_0x5451a3,_0xcb392f,_0x68584a,_0x56cb1a){const _0x2944c2=_0x313a4d,_0x221cf0=this;_0x221cf0['currentUser']=_0x5451a3[_0x2944c2(0xb12)](),_0x221cf0['errors']=[],_0x221cf0[_0x2944c2(0x15b9)]=_0x68584a,_0x221cf0[_0x2944c2(0x2690)]=_0xcb392f,_0x221cf0[_0x2944c2(0x2514)]=_0x56cb1a,_0x221cf0['hasModulePermissions']={},_0x221cf0[_0x2944c2(0x2251)]=_0x221cf0[_0x2944c2(0x15b9)]&&_0x221cf0[_0x2944c2(0x15b9)]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x221cf0[_0x2944c2(0x1189)]=_0x2944c2(0x1f78),_0x221cf0[_0x2944c2(0x1b80)]=angular[_0x2944c2(0x235a)](_0xc84acb),_0x221cf0[_0x2944c2(0x293d)]=_0x2193cd,_0x221cf0['newscreenRecording']=![];!_0x221cf0[_0x2944c2(0x1b80)]&&(_0x221cf0['screenRecording']={},_0x221cf0[_0x2944c2(0x1189)]=_0x2944c2(0x2427),_0x221cf0['newscreenRecording']=!![]);_0x221cf0[_0x2944c2(0x245d)]=_0x14e140,_0x221cf0['savescreenRecording']=_0x4e30a5,_0x221cf0[_0x2944c2(0x19f1)]=_0x191768,_0x221cf0[_0x2944c2(0xe73)]=_0x303394,_0x221cf0[_0x2944c2(0x13f3)]=_0x107aaa,_0x414adf[_0x2944c2(0xe7b)][_0x2944c2(0x16b4)]({'fields':_0x2944c2(0x12bf),'sort':_0x2944c2(0x19eb),'nolimit':_0x2944c2(0x1185)})[_0x2944c2(0x2945)][_0x2944c2(0x146b)](function(_0x59d11d){const _0x4aba97=_0x2944c2;_0x221cf0[_0x4aba97(0x1995)]=_0x59d11d[_0x4aba97(0x19c7)]||[];})[_0x2944c2(0x129e)](function(_0x4afa11){const _0x19965e=_0x2944c2;_0x1ea48e['error']({'title':_0x4afa11['status']?_0x19965e(0x262a)+_0x4afa11['status']+'\x20-\x20'+_0x4afa11[_0x19965e(0x167f)]:'SYSTEM:GET_USERS','msg':_0x4afa11[_0x19965e(0x524)]?JSON['stringify'](_0x4afa11[_0x19965e(0x524)]):_0x4afa11[_0x19965e(0xd5f)]()});});function _0x14e140(){const _0x2ba7ab=_0x2944c2;_0x221cf0['errors']=[],_0x414adf[_0x2ba7ab(0x1b80)][_0x2ba7ab(0x1e3)](_0x221cf0['screenRecording'])[_0x2ba7ab(0x2945)][_0x2ba7ab(0x146b)](function(_0x371b16){const _0x204595=_0x2ba7ab;_0x221cf0[_0x204595(0x293d)][_0x204595(0xb3d)](_0x371b16[_0x204595(0x2488)]()),_0x1ea48e[_0x204595(0x1c75)]({'title':_0x204595(0x804),'msg':_0x221cf0[_0x204595(0x1b80)][_0x204595(0x19eb)]?_0x221cf0[_0x204595(0x1b80)][_0x204595(0x19eb)]+_0x204595(0x1386):''}),_0x107aaa(_0x371b16);})[_0x2ba7ab(0x129e)](function(_0x1285bd){const _0x210c99=_0x2ba7ab;if(_0x1285bd[_0x210c99(0x524)]&&_0x1285bd[_0x210c99(0x524)][_0x210c99(0xcef)]&&_0x1285bd[_0x210c99(0x524)][_0x210c99(0xcef)][_0x210c99(0x402)]){_0x221cf0['errors']=_0x1285bd[_0x210c99(0x524)]['errors']||[{'message':_0x1285bd[_0x210c99(0xd5f)](),'type':_0x210c99(0xc44)}];for(let _0x516e11=0x0;_0x516e11<_0x1285bd[_0x210c99(0x524)]['errors'][_0x210c99(0x402)];_0x516e11+=0x1){_0x1ea48e[_0x210c99(0x1980)]({'title':_0x1285bd[_0x210c99(0x524)][_0x210c99(0xcef)][_0x516e11][_0x210c99(0x1142)],'msg':_0x1285bd[_0x210c99(0x524)][_0x210c99(0xcef)][_0x516e11][_0x210c99(0x7fd)]});}}else _0x1ea48e[_0x210c99(0x1980)]({'title':_0x1285bd[_0x210c99(0x107b)]?'API:'+_0x1285bd[_0x210c99(0x107b)]+_0x210c99(0x1315)+_0x1285bd[_0x210c99(0x167f)]:_0x210c99(0xc44),'msg':_0x1285bd[_0x210c99(0x524)]?JSON[_0x210c99(0x10bb)](_0x1285bd[_0x210c99(0x524)][_0x210c99(0x7fd)]):_0x1285bd[_0x210c99(0xd5f)]()});});}function _0x4e30a5(){const _0x37c72b=_0x2944c2;_0x221cf0['errors']=[],_0x414adf['screenRecording'][_0x37c72b(0x18e1)]({'id':_0x221cf0['screenRecording']['id']},_0x221cf0['screenRecording'])[_0x37c72b(0x2945)]['then'](function(_0x3c38f9){const _0x1cc935=_0x37c72b,_0x3c6961=_0x3f65c0()[_0x1cc935(0xc84)](_0x221cf0[_0x1cc935(0x293d)],{'id':_0x3c38f9['id']});_0x3c6961&&_0x3f65c0()['merge'](_0x3c6961,_0x3f65c0()['pick'](_0x3c38f9[_0x1cc935(0x2488)](),_0x3f65c0()[_0x1cc935(0x627)](_0x3c6961))),_0x1ea48e['success']({'title':_0x1cc935(0x24f3),'msg':_0x221cf0[_0x1cc935(0x1b80)]['name']?_0x221cf0['screenRecording'][_0x1cc935(0x19eb)]+_0x1cc935(0x24db):''}),_0x107aaa(_0x3c38f9);})[_0x37c72b(0x129e)](function(_0xd57cfe){const _0x35a09a=_0x37c72b;if(_0xd57cfe[_0x35a09a(0x524)]&&_0xd57cfe[_0x35a09a(0x524)]['errors']&&_0xd57cfe[_0x35a09a(0x524)][_0x35a09a(0xcef)]['length']){_0x221cf0['errors']=_0xd57cfe[_0x35a09a(0x524)][_0x35a09a(0xcef)]||[{'message':_0xd57cfe[_0x35a09a(0xd5f)](),'type':_0x35a09a(0xea0)}];for(let _0x47837b=0x0;_0x47837b<_0xd57cfe[_0x35a09a(0x524)]['errors']['length'];_0x47837b++){_0x1ea48e[_0x35a09a(0x1980)]({'title':_0xd57cfe['data'][_0x35a09a(0xcef)][_0x47837b][_0x35a09a(0x1142)],'msg':_0xd57cfe[_0x35a09a(0x524)][_0x35a09a(0xcef)][_0x47837b][_0x35a09a(0x7fd)]});}}else _0x1ea48e['error']({'title':_0xd57cfe['status']?'API:'+_0xd57cfe[_0x35a09a(0x107b)]+_0x35a09a(0x1315)+_0xd57cfe[_0x35a09a(0x167f)]:_0x35a09a(0xea0),'msg':_0xd57cfe['data']?JSON[_0x35a09a(0x10bb)](_0xd57cfe[_0x35a09a(0x524)][_0x35a09a(0x7fd)]):_0xd57cfe[_0x35a09a(0xd5f)]()});});}function _0x191768(_0x2ae0b3){const _0x547030=_0x2944c2;_0x221cf0[_0x547030(0xcef)]=[];const _0x42d4cf=_0x22f74e[_0x547030(0x1e8a)]()[_0x547030(0x1189)](_0x547030(0x1d64))[_0x547030(0x80f)](_0x547030(0x13cd))[_0x547030(0x4bd)](_0x547030(0x28a7))['ok'](_0x547030(0x25de))['cancel'](_0x547030(0xcf0))[_0x547030(0x1f27)](_0x2ae0b3);_0x22f74e[_0x547030(0x2615)](_0x42d4cf)[_0x547030(0x146b)](function(){const _0x1ad4a0=_0x547030;_0x414adf['screenRecording'][_0x1ad4a0(0x1fac)]({'id':_0x221cf0[_0x1ad4a0(0x1b80)]['id']})[_0x1ad4a0(0x2945)][_0x1ad4a0(0x146b)](function(){const _0x5867cf=_0x1ad4a0;_0x3f65c0()['remove'](_0x221cf0['screenRecordings'],{'id':_0x221cf0[_0x5867cf(0x1b80)]['id']}),_0x1ea48e[_0x5867cf(0x1c75)]({'title':_0x5867cf(0x230),'msg':(_0x221cf0[_0x5867cf(0x1b80)][_0x5867cf(0x19eb)]||'screenRecording')+_0x5867cf(0x23e3)}),_0x107aaa(_0x221cf0[_0x5867cf(0x1b80)]);})[_0x1ad4a0(0x129e)](function(_0x373bd1){const _0x1b7fe0=_0x1ad4a0;if(_0x373bd1[_0x1b7fe0(0x524)]&&_0x373bd1[_0x1b7fe0(0x524)]['errors']&&_0x373bd1['data'][_0x1b7fe0(0xcef)][_0x1b7fe0(0x402)]){_0x221cf0[_0x1b7fe0(0xcef)]=_0x373bd1[_0x1b7fe0(0x524)][_0x1b7fe0(0xcef)]||[{'message':_0x373bd1['toString'](),'type':_0x1b7fe0(0x10c1)}];for(let _0x50720c=0x0;_0x50720c<_0x373bd1[_0x1b7fe0(0x524)][_0x1b7fe0(0xcef)][_0x1b7fe0(0x402)];_0x50720c++){_0x1ea48e[_0x1b7fe0(0x1980)]({'title':_0x373bd1[_0x1b7fe0(0x524)][_0x1b7fe0(0xcef)][_0x50720c][_0x1b7fe0(0x1142)],'msg':_0x373bd1['data'][_0x1b7fe0(0xcef)][_0x50720c][_0x1b7fe0(0x7fd)]});}}else _0x1ea48e['error']({'title':_0x373bd1['status']?_0x1b7fe0(0x262a)+_0x373bd1[_0x1b7fe0(0x107b)]+_0x1b7fe0(0x1315)+_0x373bd1['statusText']:'api.screenRecording.delete','msg':_0x373bd1[_0x1b7fe0(0x524)]?JSON['stringify'](_0x373bd1[_0x1b7fe0(0x524)][_0x1b7fe0(0x7fd)]):_0x373bd1[_0x1b7fe0(0x7fd)]||_0x373bd1[_0x1b7fe0(0xd5f)]()});});},function(){});}function _0x303394(_0x3621cd){return _0x3621cd===null?undefined:new Date(_0x3621cd);}function _0x107aaa(_0x2498fc){_0x22f74e['hide'](_0x2498fc);}}const _0x28d0c3=_0x26dd0b;;_0x248ad4['$inject']=[_0x313a4d(0x910),'$mdDialog','toasty',_0x313a4d(0x247f),'recording',_0x313a4d(0x2532),'label',_0x313a4d(0x1912),'elementTag','$q'];function _0x248ad4(_0x22a523,_0x2ae967,_0x573b3b,_0x38fe42,_0x14d667,_0x29aa1d,_0xd97272,_0x497d18,_0x4ba759,_0x14621d){const _0x1ec667=_0x313a4d,_0x461641=this;_0x461641[_0x1ec667(0x1699)]=![],_0x461641['recording']=Object['assign']({},_0x14d667),_0x461641[_0x1ec667(0xdb0)]=_0x1ec667(0x1b80),_0x461641['element']=_0x4ba759,_0x461641[_0x1ec667(0x2532)]=Object['assign']({},_0x29aa1d),_0x461641[_0x1ec667(0x27e0)]=_0x497d18,_0x461641[_0x1ec667(0x11f8)]=_0xd97272,_0x461641[_0x1ec667(0x1873)]=_0x1ec667(0x1be9),_0x461641[_0x1ec667(0x1320)]=_0x1ec667(0x1b80),console['log'](_0x1ec667(0x811),_0x461641[_0x1ec667(0x27e0)]),console[_0x1ec667(0x1a74)](_0x1ec667(0x23fd),_0x461641[_0x1ec667(0x15c0)][_0x461641[_0x1ec667(0x27e0)]]),_0x461641['filename']=_0x461641[_0x1ec667(0x15c0)][_0x461641[_0x1ec667(0x27e0)]]['indexOf']('/')>-0x1?_0x461641[_0x1ec667(0x15c0)][_0x461641[_0x1ec667(0x27e0)]][_0x1ec667(0xe83)](_0x461641[_0x1ec667(0x15c0)][_0x461641[_0x1ec667(0x27e0)]][_0x1ec667(0x1052)]('/')+0x1):_0x461641[_0x1ec667(0x15c0)][_0x461641[_0x1ec667(0x27e0)]][_0x1ec667(0x172b)]('\x5c')>-0x1?_0x461641['recording'][_0x461641[_0x1ec667(0x27e0)]]['substring'](_0x461641[_0x1ec667(0x15c0)][_0x461641['path']][_0x1ec667(0x1052)]('\x5c')+0x1):_0x461641[_0x1ec667(0x15c0)][_0x461641['path']],_0x461641['format']=![];_0x3f65c0()['isNil'](_0x461641[_0x1ec667(0x15c0)][_0x1ec667(0x22b0)])&&(_0x461641[_0x1ec667(0x15c0)][_0x1ec667(0x22b0)]=_0x461641[_0x1ec667(0x920)][_0x1ec667(0x1298)](_0x461641[_0x1ec667(0x920)][_0x1ec667(0x1052)]('.')));(_0x461641[_0x1ec667(0x15c0)][_0x1ec667(0x22b0)]==='.wav'&&_0x461641['element']===_0x1ec667(0x922)||_0x461641['recording'][_0x1ec667(0x22b0)]==='.mp4'&&_0x461641[_0x1ec667(0x1853)]===_0x1ec667(0x1be9))&&(_0x461641['format']=!![]);_0x461641[_0x1ec667(0x597)]=!![];_0x461641['format']&&_0x59ad24();function _0x59ad24(){const _0x46cfc3=_0x1ec667,_0x40de5f=_0x14621d['defer']();return _0x38fe42[_0x46cfc3(0x1b80)]['download']({'id':_0x461641[_0x46cfc3(0x15c0)]['id'],'path':String(_0x461641['path'])})[_0x46cfc3(0x2945)][_0x46cfc3(0x146b)](function(){const _0x2a0fc9=_0x46cfc3;_0x461641[_0x2a0fc9(0x22b0)]=!![],_0x461641[_0x2a0fc9(0x597)]=!![],_0x40de5f[_0x2a0fc9(0x2922)]();})[_0x46cfc3(0x129e)](function(){const _0x555afd=_0x46cfc3;console['log'](_0x555afd(0xa36)),_0x461641[_0x555afd(0x22b0)]=![],_0x461641[_0x555afd(0x597)]=![],_0x40de5f[_0x555afd(0x2922)]();}),_0x40de5f[_0x46cfc3(0xb9c)];}if(!_0x3f65c0()['isNil'](_0x29aa1d['properties'])&&_0x29aa1d[_0x1ec667(0x1063)]){_0x461641[_0x1ec667(0x1063)]=Object[_0x1ec667(0x255a)]({},_0x14d667);const _0xadcff9=Object['keys'](_0x14d667);_0xadcff9[_0x1ec667(0x1df5)](function(_0x159dfc){const _0x50cdd1=_0x1ec667;String(_0x159dfc[0x0][_0x50cdd1(0x1c37)]())===String(_0x159dfc[0x0])&&delete _0x461641[_0x50cdd1(0x1063)][_0x159dfc];}),_0x461641[_0x1ec667(0x1353)]={};if(!_0x3f65c0()[_0x1ec667(0x1b36)](_0x29aa1d[_0x1ec667(0x1a20)])&&_0x29aa1d[_0x1ec667(0x1a20)][_0x1ec667(0x402)]>0x0){_0x461641['propertiesDefault']=Object[_0x1ec667(0x255a)]({},_0x14d667);const _0x37a38f=_0x29aa1d[_0x1ec667(0x1a20)],_0x44f71e=Object[_0x1ec667(0x627)](_0x14d667);let _0x1dac38=!![];_0x44f71e[_0x1ec667(0x1df5)](function(_0x565866){const _0x356d84=_0x1ec667;_0x1dac38=!![],_0x37a38f['forEach'](function(_0x22bacf){String(_0x565866)===String(_0x22bacf)&&(_0x1dac38=![]);}),_0x1dac38&&delete _0x461641[_0x356d84(0x1353)][_0x565866];}),_0x461641[_0x1ec667(0x1063)]=_0x461641[_0x1ec667(0x1353)];}if(!_0x3f65c0()[_0x1ec667(0x1b36)](_0x29aa1d[_0x1ec667(0x8e1)])&&_0x29aa1d['extraData'][_0x1ec667(0x402)]>0x0){_0x461641[_0x1ec667(0x127e)]={};const _0x30aabb=_0x29aa1d[_0x1ec667(0x8e1)];for(let _0x56466f=0x0;_0x56466f<_0x30aabb['length'];_0x56466f++){const _0x5a3a24=_0x30aabb[_0x56466f]['values'],_0x5aaf6b=_0x30aabb[_0x56466f]['model'];for(let _0x23d1fe=0x0;_0x23d1fe<_0x5a3a24[_0x1ec667(0x402)];_0x23d1fe++){_0x461641[_0x1ec667(0x127e)][_0x5a3a24[_0x23d1fe][_0x1ec667(0xa8d)]]=_0x14d667[_0x5aaf6b][_0x5a3a24[_0x23d1fe][_0x1ec667(0x2293)]];}}_0x461641[_0x1ec667(0x1063)]=Object[_0x1ec667(0x255a)]({},_0x461641['propertiesDefault'],_0x461641['propertiesExtra']);}}_0x461641[_0x1ec667(0x13f3)]=_0x3ba1fa;function _0x3ba1fa(){const _0x2a9a8f=_0x1ec667;_0x2ae967[_0x2a9a8f(0x2458)]();}}const _0x36bf3b=_0x248ad4;;const _0x216c33=_0x4acfac['p']+_0x313a4d(0xd77);;const _0x249efa=_0x4acfac['p']+_0x313a4d(0x289);;_0x4e3378[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1aa9),'$state',_0x313a4d(0x15fe),_0x313a4d(0x10e8),'$document',_0x313a4d(0x1abe),_0x313a4d(0x214b),_0x313a4d(0x293d),_0x313a4d(0x26b6),_0x313a4d(0x1366),_0x313a4d(0x247f),_0x313a4d(0x216c),_0x313a4d(0x1fe4),'Auth',_0x313a4d(0x2690),_0x313a4d(0x15b9)];function _0x4e3378(_0x578432,_0xda5568,_0x4aecf5,_0x3572fc,_0x34d029,_0x188951,_0x474cad,_0x595aa7,_0x529bc4,_0x2d4b62,_0x23b43a,_0x30ad4b,_0x141ff5,_0x53290e,_0x5dc94e,_0x1b8d7b,_0x30e817){const _0x2ee319=_0x313a4d,_0x5a4ef8=this;_0x5a4ef8[_0x2ee319(0x2690)]=_0x1b8d7b,_0x5a4ef8['setting']=_0x30e817,_0x5a4ef8['currentUser']=_0x5dc94e['getCurrentUser'](),_0x5a4ef8['screenRecordings']=_0x529bc4||{'count':0x0,'rows':[]},_0x5a4ef8[_0x2ee319(0x26b6)]=_0x2d4b62,_0x5a4ef8['userProfileSection']=_0x23b43a&&_0x23b43a[_0x2ee319(0x51c)]==0x1?_0x23b43a[_0x2ee319(0x19c7)][0x0]:null,_0x5a4ef8[_0x2ee319(0x2514)]=_0x5dc94e[_0x2ee319(0xe60)](_0x5a4ef8['userProfileSection']?_0x5a4ef8[_0x2ee319(0x1366)][_0x2ee319(0x2514)]:null),_0x5a4ef8[_0x2ee319(0x768)]='screenRecordings',_0x5a4ef8['listOrder']='',_0x5a4ef8[_0x2ee319(0x214f)]=null,_0x5a4ef8[_0x2ee319(0x2cd)]=[],_0x5a4ef8[_0x2ee319(0x1a56)]={'fields':'createdAt,updatedAt,id,interactionid,channel,format,value,rating,UserId,duration,startedAt,closedAt','createdAt':_0x2ee319(0x1338),'includeAll':'true','sort':_0x2ee319(0x12f2),'limit':0xa,'page':0x1},_0x5a4ef8[_0x2ee319(0x1a56)][_0x2ee319(0xc68)]=_0x141ff5[_0x2ee319(0xc8f)](),_0x5a4ef8[_0x2ee319(0x28af)]=_0x5dda94();function _0x5dda94(){const _0x44a424=_0x2ee319;return[{'name':_0x44a424(0x294),'key':_0x44a424(0xc68),'type':_0x44a424(0x1a10),'label':_0x44a424(0x1158)}];}_0x5a4ef8[_0x2ee319(0x2027)]=_0x2bebf1,_0x5a4ef8[_0x2ee319(0xe49)]=_0x422070,_0x5a4ef8[_0x2ee319(0xf0a)]=_0x162676,_0x5a4ef8[_0x2ee319(0x1c75)]=_0x444d65,_0x5a4ef8[_0x2ee319(0xbe8)]=_0x29f46a,_0x5a4ef8['createOrEditscreenRecording']=_0x224c0c,_0x5a4ef8[_0x2ee319(0x19f1)]=_0xe95aa5,_0x5a4ef8[_0x2ee319(0x5d7)]=_0x1dd49d,_0x5a4ef8['deleteSelectedScreenRecordings']=_0x21121e,_0x5a4ef8[_0x2ee319(0x25d0)]=_0x5238ad,_0x5a4ef8['selectAllScreenRecordings']=_0x32ede2,_0x5a4ef8['convertDuration']=_0x173c4c,_0x30ad4b[_0x2ee319(0xe7b)]['get']({'fields':_0x2ee319(0x12bf),'sort':_0x2ee319(0x19eb),'nolimit':_0x2ee319(0x1185)})['$promise'][_0x2ee319(0x146b)](function(_0x226979){const _0x41826d=_0x2ee319;_0x5a4ef8[_0x41826d(0x1995)]=_0x226979[_0x41826d(0x19c7)]||[];})['catch'](function(_0x2252be){const _0x3a5a5c=_0x2ee319;_0x53290e[_0x3a5a5c(0x1980)]({'title':_0x2252be[_0x3a5a5c(0x107b)]?'API:'+_0x2252be['status']+_0x3a5a5c(0x1315)+_0x2252be['statusText']:'SYSTEM:GET_USERS','msg':_0x2252be[_0x3a5a5c(0x524)]?JSON['stringify'](_0x2252be[_0x3a5a5c(0x524)]):_0x2252be[_0x3a5a5c(0xd5f)]()});});function _0x2bebf1(_0x58075b,_0x2f2e65,_0x12798c,_0xc8226b,_0x2c0389){const _0x41c25a=_0x2ee319,_0x197b1a={'upperTitle':![],'lowerTitle':!![],'properties':!![],'propertiesIcon':_0x41c25a(0xeea),'propertiesList':[_0x41c25a(0x22b0),_0x41c25a(0x139b),_0x41c25a(0x11cc),_0x41c25a(0x17ea),_0x41c25a(0xc73),_0x41c25a(0xc68)],'extraData':[{'model':_0x41c25a(0x2393),'values':[{'key':_0x41c25a(0x19eb),'text':_0x41c25a(0xb97)}]}]},_0x3e4fba={};_0x3e4fba[_0x41c25a(0xdb0)]=_0x41c25a(0x1b80),_0x3e4fba[_0x41c25a(0x19eb)]=_0x41c25a(0x293d),_0x3e4fba[_0x41c25a(0x1320)]=_0x41c25a(0x1b80),_0x3e4fba[_0x41c25a(0x13d3)]=_0x41c25a(0x1b80),_0xc8226b=String(_0xc8226b);const _0x130c04=String(_0x12798c);console[_0x41c25a(0x1a74)](_0x41c25a(0x191d),String(_0x12798c)),_0x34d029[_0x41c25a(0x2615)]({'controller':_0x41c25a(0x25a9),'controllerAs':'vm','templateUrl':_0x249efa,'parent':angular[_0x41c25a(0x1853)](_0x188951['body']),'targetEvent':_0x2f2e65,'clickOutsideToClose':!![],'locals':{'recording':_0x58075b,'recordings':_0x5a4ef8[_0x41c25a(0x293d)]['rows'],'license':_0x5a4ef8['license'],'setting':null,'item':_0x3e4fba,'actionOptions':_0x197b1a,'label':_0xc8226b,'varPath':_0x130c04,'elementTag':String(_0x2c0389)}});}function _0x422070(_0x11af83){const _0x233358=_0x2ee319;let _0x5d7b59=![];const _0x2186a0=!_0x3f65c0()[_0x233358(0x1b36)](_0x11af83[_0x233358(0x22b0)])?_0x11af83[_0x233358(0x22b0)]:_0x11af83[_0x233358(0x175d)][_0x233358(0xe83)](_0x11af83[_0x233358(0x175d)][_0x233358(0x1052)]('.'));_0x5d7b59=_0x2186a0===_0x233358(0x27ba)?!![]:![];const _0x1bf84f=_0x11af83['value']['lastIndexOf']('/')>-0x1?_0x11af83[_0x233358(0x175d)][_0x233358(0xe83)](_0x11af83['value']['lastIndexOf']('/')+0x1):_0x11af83[_0x233358(0x175d)][_0x233358(0x1052)]('\x5c')>-0x1?_0x11af83[_0x233358(0x175d)]['substring'](_0x11af83['value'][_0x233358(0x1052)]('\x5c')+0x1):_0x11af83[_0x233358(0x175d)];return _0x30ad4b[_0x233358(0x1b80)][_0x233358(0x15b1)]({'id':_0x11af83['id']})['$promise'][_0x233358(0x146b)](function(_0x1ccf40){const _0x7ba865=_0x233358,_0x2900c7=[_0x1ccf40[_0x7ba865(0x2eb)]];let _0x2ff73c=_0x7ba865(0x15b1);const _0x12f96c=new Blob(_0x2900c7,{'type':_0x1ccf40[_0x7ba865(0x1142)]});_0x2ff73c=_0x1bf84f;const _0x147cb6=window[_0x7ba865(0xef3)][_0x7ba865(0x24ec)]('a');_0x147cb6[_0x7ba865(0x1652)]('href',URL[_0x7ba865(0x1c58)](_0x12f96c)),_0x147cb6[_0x7ba865(0x1652)](_0x7ba865(0x15b1),_0x2ff73c),document['body'][_0x7ba865(0x23e)](_0x147cb6),_0x147cb6['click']();})[_0x233358(0x129e)](function(_0x5403ae){const _0x1ab2a9=_0x233358;if(_0x5403ae[_0x1ab2a9(0x524)]&&_0x5403ae['data']['errors']&&_0x5403ae['data']['errors'][_0x1ab2a9(0x402)])for(let _0xc09b99=0x0;_0xc09b99<_0x5403ae[_0x1ab2a9(0x524)][_0x1ab2a9(0xcef)][_0x1ab2a9(0x402)];_0xc09b99++){_0x53290e[_0x1ab2a9(0x1980)]({'title':_0x5403ae[_0x1ab2a9(0x524)][_0x1ab2a9(0xcef)][_0xc09b99][_0x1ab2a9(0x1142)],'msg':_0x5403ae[_0x1ab2a9(0x524)][_0x1ab2a9(0xcef)][_0xc09b99][_0x1ab2a9(0x7fd)]});}else{if(String(_0x5403ae[_0x1ab2a9(0x107b)])===_0x1ab2a9(0x2670)&&_0x5d7b59===![])_0x53290e[_0x1ab2a9(0x271e)]({'title':_0x595aa7['instant'](_0x1ab2a9(0x517)),'msg':_0x595aa7[_0x1ab2a9(0xde)](_0x1ab2a9(0x25a))});else String(_0x5403ae['status'])===_0x1ab2a9(0x2670)?_0x53290e[_0x1ab2a9(0x271e)]({'title':_0x595aa7['instant'](_0x1ab2a9(0x517)),'msg':_0x595aa7[_0x1ab2a9(0xde)](_0x1ab2a9(0x2616))}):_0x53290e[_0x1ab2a9(0x1980)]({'title':_0x5403ae[_0x1ab2a9(0x107b)]?_0x1ab2a9(0x262a)+_0x5403ae[_0x1ab2a9(0x107b)]+'\x20-\x20'+_0x5403ae['statusText']:'api.screenRecording.save','msg':_0x5403ae['data']?JSON[_0x1ab2a9(0x10bb)](_0x5403ae['data'][_0x1ab2a9(0x7fd)]):_0x5403ae[_0x1ab2a9(0xd5f)]()});}});}function _0x162676(_0x4efbdc,_0x4f181c){const _0x2fc744=_0x2ee319,_0x2081a7=_0x34d029['confirm']()['title'](_0x2fc744(0xdb2)+_0x3f65c0()['startCase'](_0x2fc744(0x1b80))+'?')[_0x2fc744(0x1cbe)](_0x2fc744(0x16d3)+(_0x4efbdc[_0x2fc744(0x19eb)]||_0x2fc744(0x1b80))+_0x2fc744(0x252f)+_0x2fc744(0xe01))[_0x2fc744(0x4bd)]('delete\x20screenRecording')[_0x2fc744(0x1f27)](_0x4f181c)['ok']('OK')[_0x2fc744(0x6c3)](_0x2fc744(0x39a));_0x34d029['show'](_0x2081a7)[_0x2fc744(0x146b)](function(){_0xe95aa5(_0x4efbdc);},function(){const _0xe69cf3=_0x2fc744;console[_0xe69cf3(0x1a74)]('CANCEL');});}let _0x252993=!![],_0x374771=0x1;_0x578432['$watch']('vm.query.filter',function(_0x18f193,_0xeab907){const _0x3f4114=_0x2ee319;_0x252993?_0x474cad(function(){_0x252993=![];}):(!_0xeab907&&(_0x374771=_0x5a4ef8['query'][_0x3f4114(0x844)]),_0x18f193!==_0xeab907&&(_0x5a4ef8['query'][_0x3f4114(0x844)]=0x1),!_0x18f193&&(_0x5a4ef8['query'][_0x3f4114(0x844)]=_0x374771),_0x5a4ef8['getScreenRecordings']());});function _0x173c4c(_0x1ec3a1){const _0x1aa474=_0x2ee319,_0x2b8338=Math[_0x1aa474(0x19ad)](_0x1ec3a1/0x3e8%0x3c),_0x2b91da=Math['floor'](_0x1ec3a1/(0x3e8*0x3c)%0x3c),_0x4e3f6c=Math['floor'](_0x1ec3a1/(0x3e8*0x3c*0x3c)%0x18),_0x14cf90=_0x4e3f6c<0xa?'0'+String(_0x4e3f6c):String(_0x4e3f6c),_0x511954=_0x2b91da<0xa?'0'+String(_0x2b91da):String(_0x2b91da),_0x664183=_0x2b8338<0xa?'0'+String(_0x2b8338):String(_0x2b8338);return _0x14cf90+':'+_0x511954+':'+_0x664183;}function _0x444d65(_0x4e1a60){const _0x5f0cc9=_0x2ee319;_0x5a4ef8[_0x5f0cc9(0x293d)]=_0x4e1a60||{'count':0x0,'rows':[]};}function _0x29f46a(){const _0x2ca6bf=_0x2ee319;_0x5a4ef8[_0x2ca6bf(0x1a56)][_0x2ca6bf(0x145d)]=(_0x5a4ef8[_0x2ca6bf(0x1a56)][_0x2ca6bf(0x844)]-0x1)*_0x5a4ef8[_0x2ca6bf(0x1a56)][_0x2ca6bf(0x221e)],_0x5dc94e[_0x2ca6bf(0x23e0)](_0x2ca6bf(0x174b))?_0x5a4ef8[_0x2ca6bf(0xb9c)]=_0x30ad4b[_0x2ca6bf(0x1b80)]['get'](_0x5a4ef8[_0x2ca6bf(0x1a56)],_0x444d65)[_0x2ca6bf(0x2945)]:(_0x5a4ef8[_0x2ca6bf(0x1a56)]['id']=_0x5a4ef8[_0x2ca6bf(0x26b6)]['id'],_0x5a4ef8[_0x2ca6bf(0x1a56)][_0x2ca6bf(0x2146)]=_0x2ca6bf(0x17a8),_0x5a4ef8['promise']=_0x30ad4b['userProfile'][_0x2ca6bf(0x158f)](_0x5a4ef8[_0x2ca6bf(0x1a56)],_0x444d65)[_0x2ca6bf(0x2945)]);}function _0x224c0c(_0x6774c6,_0x4284ce){const _0x51db7e=_0x2ee319;_0x34d029['show']({'controller':_0x51db7e(0x292a),'controllerAs':'vm','templateUrl':_0x216c33,'parent':angular[_0x51db7e(0x1853)](_0x188951[_0x51db7e(0x2586)]),'targetEvent':_0x6774c6,'clickOutsideToClose':!![],'locals':{'screenRecording':_0x4284ce,'screenRecordings':_0x5a4ef8[_0x51db7e(0x293d)][_0x51db7e(0x19c7)],'license':_0x5a4ef8[_0x51db7e(0x2690)],'setting':_0x5a4ef8[_0x51db7e(0x15b9)],'crudPermissions':_0x5a4ef8['crudPermissions']}});}function _0xe95aa5(_0x156bdd){const _0x4cb355=_0x2ee319;_0x30ad4b[_0x4cb355(0x1b80)]['delete']({'id':_0x156bdd['id']})[_0x4cb355(0x2945)][_0x4cb355(0x146b)](function(){const _0xd913a9=_0x4cb355;_0x3f65c0()[_0xd913a9(0x2640)](_0x5a4ef8[_0xd913a9(0x293d)][_0xd913a9(0x19c7)],{'id':_0x156bdd['id']}),_0x5a4ef8[_0xd913a9(0x293d)][_0xd913a9(0x51c)]-=0x1,!_0x5a4ef8[_0xd913a9(0x293d)]['rows'][_0xd913a9(0x402)]&&_0x5a4ef8[_0xd913a9(0xbe8)](),_0x53290e[_0xd913a9(0x1c75)]({'title':_0x3f65c0()[_0xd913a9(0x20d1)]('screenRecording')+'\x20deleted!','msg':_0x156bdd['name']?_0x156bdd[_0xd913a9(0x19eb)]+_0xd913a9(0x23e3):''});})[_0x4cb355(0x129e)](function(_0x214faf){const _0x2eb6a7=_0x4cb355;if(_0x214faf[_0x2eb6a7(0x524)]&&_0x214faf[_0x2eb6a7(0x524)][_0x2eb6a7(0xcef)]&&_0x214faf['data'][_0x2eb6a7(0xcef)]['length']){_0x5a4ef8[_0x2eb6a7(0xcef)]=_0x214faf['data'][_0x2eb6a7(0xcef)]||[{'message':_0x214faf[_0x2eb6a7(0xd5f)](),'type':_0x2eb6a7(0x22a7)}];for(let _0x3cfecb=0x0;_0x3cfecb<_0x214faf['data'][_0x2eb6a7(0xcef)]['length'];_0x3cfecb++){_0x53290e['error']({'title':_0x214faf[_0x2eb6a7(0x524)][_0x2eb6a7(0xcef)][_0x3cfecb][_0x2eb6a7(0x1142)],'msg':_0x214faf[_0x2eb6a7(0x524)]['errors'][_0x3cfecb][_0x2eb6a7(0x7fd)]});}}else _0x53290e['error']({'title':_0x214faf['status']?_0x2eb6a7(0x262a)+_0x214faf[_0x2eb6a7(0x107b)]+'\x20-\x20'+_0x214faf['statusText']:_0x2eb6a7(0x22a7),'msg':_0x214faf[_0x2eb6a7(0x524)]?JSON['stringify'](_0x214faf['data'][_0x2eb6a7(0x7fd)]):_0x214faf['message']||_0x214faf[_0x2eb6a7(0xd5f)]()});});}function _0x1dd49d(){const _0x586c57=_0x2ee319,_0x5b70df=angular['copy'](_0x5a4ef8['selectedScreenRecordings']);return _0x5a4ef8[_0x586c57(0x2cd)]=[],_0x5b70df;}function _0x21121e(_0x267ad7){const _0x267521=_0x2ee319,_0x47d9f7=_0x34d029[_0x267521(0x1e8a)]()[_0x267521(0x1189)](_0x267521(0x109c))[_0x267521(0x1cbe)](''+_0x5a4ef8[_0x267521(0x2cd)][_0x267521(0x402)]+_0x267521(0x2452)+_0x267521(0xe01))[_0x267521(0x4bd)](_0x267521(0xeda))[_0x267521(0x1f27)](_0x267ad7)['ok']('OK')['cancel'](_0x267521(0x39a));_0x34d029[_0x267521(0x2615)](_0x47d9f7)[_0x267521(0x146b)](function(){const _0x2fe6d5=_0x267521;_0x5a4ef8[_0x2fe6d5(0x2cd)][_0x2fe6d5(0x1df5)](function(_0x4c3e81){_0xe95aa5(_0x4c3e81);}),_0x5a4ef8[_0x2fe6d5(0x2cd)]=[];});}function _0x5238ad(){const _0x4f83b6=_0x2ee319;_0x5a4ef8[_0x4f83b6(0x2cd)]=[];}function _0x32ede2(){const _0x3c4e4b=_0x2ee319;_0x5a4ef8[_0x3c4e4b(0x2cd)]=_0x5a4ef8[_0x3c4e4b(0x293d)][_0x3c4e4b(0x19c7)];}}const _0x5877c4=_0x4e3378;;_0x2728de[_0x313a4d(0x11c2)]=[_0x313a4d(0x921),'$translatePartialLoaderProvider'];function _0x2728de(_0x591cd9,_0x103da7){const _0x1084af=_0x313a4d;_0x591cd9['state']('app.video',{'abstract':!![],'url':_0x1084af(0xb05)})[_0x1084af(0x13d6)](_0x1084af(0x1b25),{'url':_0x1084af(0x143a),'views':{'content@app':{'templateUrl':_0x5a0183,'controller':_0x1084af(0x622)}},'resolve':{'screenRecordings':[_0x1084af(0x362),'Auth',_0x1084af(0x216c),function(_0x4d93f6,_0x19d8f9,_0x3452f8){const _0x3c4154=_0x1084af;return _0x19d8f9[_0x3c4154(0x23e0)](_0x3c4154(0x174b))?_0x4d93f6['resolve']('screenRecording@get',{'fields':'createdAt,updatedAt,id,interactionid,channel,format,value,rating,UserId,duration,startedAt,closedAt','createdAt':_0x3452f8[_0x3c4154(0xc8f)](),'includeAll':'true','sort':_0x3c4154(0x12f2),'limit':0xa,'offset':0x0}):_0x4d93f6[_0x3c4154(0x2922)](_0x3c4154(0x938),{'id':_0x19d8f9[_0x3c4154(0xb12)]()[_0x3c4154(0x209a)],'section':_0x3c4154(0x17a8),'fields':_0x3c4154(0x1451),'createdAt':_0x3452f8[_0x3c4154(0xc8f)](),'includeAll':_0x3c4154(0x1185),'sort':_0x3c4154(0x12f2),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver','Auth',function(_0x3f646d,_0x264b2c){const _0x100ca2=_0x1084af;return _0x264b2c['hasRole'](_0x100ca2(0x174b))?null:_0x3f646d['resolve'](_0x100ca2(0x119a),{'fields':'id,name,crudPermissions','id':_0x264b2c[_0x100ca2(0xb12)]()[_0x100ca2(0x209a)]});}],'userProfileSection':['apiResolver',_0x1084af(0xa87),function(_0x25e264,_0x4b68c3){const _0x256978=_0x1084af;return _0x4b68c3['hasRole'](_0x256978(0x174b))?null:_0x25e264[_0x256978(0x2922)](_0x256978(0x27be),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x4b68c3[_0x256978(0xb12)]()['userProfileId'],'sectionId':0x7d1});}]},'authenticate':!![],'permissionId':0x7d1,'bodyClass':'video'}),_0x103da7[_0x1084af(0x15bf)](_0x1084af(0x1951));}angular[_0x313a4d(0x2528)](_0x313a4d(0x5dc),[_0x313a4d(0xdad),_0x313a4d(0x962),_0x313a4d(0x23c7),'flow',_0x313a4d(0x19e2),_0x313a4d(0x27c1),_0x313a4d(0x195b),_0x313a4d(0x15ef),_0x313a4d(0xc86),_0x313a4d(0x1f5f),_0x313a4d(0x28a8),_0x313a4d(0xfb2),'mwFormUtils',_0x313a4d(0x581),_0x313a4d(0x1bd2),_0x313a4d(0x1792),'angularMaterialFormBuilder',_0x313a4d(0x1626),_0x313a4d(0x2713),_0x313a4d(0x11df)])[_0x313a4d(0x989)](_0x2728de)[_0x313a4d(0x28f0)](_0x313a4d(0x292a),_0x28d0c3)[_0x313a4d(0x28f0)](_0x313a4d(0x25a9),_0x36bf3b)[_0x313a4d(0x28f0)](_0x313a4d(0x1ede),_0x5877c4);;const _0x457373=_0x4acfac['p']+_0x313a4d(0x2080);;const _0x4682d4=_0x4acfac['p']+_0x313a4d(0x12c1);;const _0x352469=_0x4acfac['p']+_0x313a4d(0x1db4);;_0x152e31[_0x313a4d(0x11c2)]=['$scope','$q',_0x313a4d(0x1abe),_0x313a4d(0x10e8),_0x313a4d(0x4d8),_0x313a4d(0x1ee0),_0x313a4d(0x23bb),_0x313a4d(0x23c0),'rpcAgents',_0x313a4d(0x247f),_0x313a4d(0x279d),'toasty','helperClasses','userProfile',_0x313a4d(0x1366),'Auth','license','$interval'];function _0x152e31(_0x2249a9,_0x19c01d,_0x5264d3,_0x2b61ad,_0x6a4868,_0x35de17,_0x1a2aa2,_0x17a5b7,_0x3677e3,_0x2ca214,_0x2718ff,_0x5c3834,_0x52cf27,_0x30e8b7,_0x3f5237,_0x3f3903,_0x414f43,_0x2605c4){const _0x206a6f=_0x313a4d,_0x375027=this,_0xc86d14=['userpic','online','lastLoginAt',_0x206a6f(0x192a),_0x206a6f(0x1125),'lastPauseAt',_0x206a6f(0x113f),'address',_0x206a6f(0x5f7),'openchannelPause',_0x206a6f(0x1e9e),_0x206a6f(0x17c),_0x206a6f(0x1f9d),_0x206a6f(0x25c4),'voicePause',_0x206a6f(0x6e4),'openchannelCapacity',_0x206a6f(0xf85),'smsCapacity',_0x206a6f(0x237c),_0x206a6f(0x1cf6),_0x206a6f(0xaac),_0x206a6f(0x247),_0x206a6f(0x1025),_0x206a6f(0x2e2),_0x206a6f(0xfc1),'faxCurrentCapacity',_0x206a6f(0xfc3),'openchannelStatus',_0x206a6f(0x1fc6),_0x206a6f(0x22f6),_0x206a6f(0xfdf),'faxStatus','voiceStatus',_0x206a6f(0x1a22),_0x206a6f(0x6cb),_0x206a6f(0x10cd),_0x206a6f(0x1f5c),_0x206a6f(0xadd),_0x206a6f(0x47a),_0x206a6f(0x1dda),'queue',_0x206a6f(0x1e8d),'screenrecording','phoneBarEnableScreenRecordingByAgent',_0x206a6f(0x22c3)],_0x5ed5c7=[_0x206a6f(0x5f7),_0x206a6f(0xcc5),'mailPause','smsPause',_0x206a6f(0x1f9d),_0x206a6f(0x25c4),_0x206a6f(0x211c),_0x206a6f(0x538)];_0x375027[_0x206a6f(0x2321)]=_0x3f3903['getCurrentUser'](),_0x375027[_0x206a6f(0xe3e)]=['ringing',_0x206a6f(0xfe4),_0x206a6f(0x26a7),'onhold',_0x206a6f(0x254d)],_0x375027[_0x206a6f(0x23bb)]=_0x1a2aa2||{'count':0x0,'rows':[]},_0x375027[_0x206a6f(0x2690)]=_0x414f43,_0x375027[_0x206a6f(0x26b6)]=_0x30e8b7,_0x375027[_0x206a6f(0x1366)]=_0x3f5237&&_0x3f5237[_0x206a6f(0x51c)]==0x1?_0x3f5237['rows'][0x0]:null,_0x375027[_0x206a6f(0x2514)]=_0x3f3903['parseCrudPermissions'](_0x375027[_0x206a6f(0x1366)]?_0x375027[_0x206a6f(0x1366)][_0x206a6f(0x2514)]:null),_0x375027[_0x206a6f(0x23c0)]=_0x17a5b7?_0x3f65c0()['keyBy'](_0x17a5b7['rows']?_0x17a5b7[_0x206a6f(0x19c7)]:[],'id'):{},_0x375027['rpcAgents']=_0x3677e3?_0x3f65c0()[_0x206a6f(0x194)](_0x3677e3[_0x206a6f(0x19c7)]?_0x3677e3[_0x206a6f(0x19c7)]:[],'id'):{},_0x375027['paginatedAgents']={},_0x375027[_0x206a6f(0x2412)]=![],_0x375027[_0x206a6f(0x206e)]=[],_0x375027[_0x206a6f(0x626)]={};for(const _0x5be2c1 in _0x375027[_0x206a6f(0x23c0)]){typeof _0x375027[_0x206a6f(0x23c0)][_0x5be2c1]!=='undefined'&&(_0x375027[_0x206a6f(0x23c0)][_0x5be2c1][_0x206a6f(0x5aa)]=!![]);}_0x375027[_0x206a6f(0x1a56)]={'limit':0xa,'page':0x1,'order':'fullname','globalStatusFilter':'','pauseTypeFilter':''},_0x375027[_0x206a6f(0x2044)]=_0x206a7b,_0x375027[_0x206a6f(0x2677)]=_0x4b9f79,_0x375027[_0x206a6f(0x1e3e)]=_0x2f96c,_0x375027[_0x206a6f(0x693)]=_0x3d8ddf,_0x375027[_0x206a6f(0x232c)]=_0x540319,_0x375027[_0x206a6f(0x1eaa)]=_0x43e22e,_0x375027['getAgentGlobalStatus']=_0x2351a9,_0x375027['isPause']=_0x10980e,_0x375027[_0x206a6f(0x169)]=_0x2f4cc7,_0x375027['isPartialPause']=_0x5a9b9f,_0x375027[_0x206a6f(0x1db0)]=_0x35dcfb,_0x375027[_0x206a6f(0x1a76)]=_0x31c03f,_0x375027[_0x206a6f(0x3d4)]=_0x1030bf,_0x375027['onConnect']=_0x1912f5,_0x375027[_0x206a6f(0x483)]=_0x164546,_0x375027[_0x206a6f(0x1b80)]=_0x4d1feb,_0x2718ff['on'](_0x206a6f(0x17de),_0x375027['onSave']),_0x2718ff['on']('user:update',_0x375027[_0x206a6f(0x1a76)]),_0x2718ff['on'](_0x206a6f(0x118c),_0x375027[_0x206a6f(0x201a)]),_0x2718ff['on']('user:agentcomplete',_0x375027['onComplete']),_0x1030bf();let _0xfd3ed3=_0x2605c4(function(){const _0x1b3034=_0x206a6f;_0x375027['load']&&(_0x375027[_0x1b3034(0x2412)]=![],_0x1030bf());},0x3e7);function _0x1030bf(){const _0x48be15=_0x206a6f;_0x375027[_0x48be15(0x2412)]=![];const _0x33203a=_0x19c01d[_0x48be15(0xce3)]();_0x375027['promise']=_0x33203a[_0x48be15(0xb9c)],_0x375027[_0x48be15(0x202e)]=[],_0x375027[_0x48be15(0x206e)]=[],_0x3f65c0()[_0x48be15(0x1a04)](_0x375027[_0x48be15(0x23c0)],function(_0x539a89,_0x2562c5){const _0x132f23=_0x48be15;_0x375027[_0x132f23(0x2445)][_0x2562c5]&&_0x3f65c0()[_0x132f23(0x168d)](_0x539a89,_0x3f65c0()[_0x132f23(0x40e)](_0x3f65c0()[_0x132f23(0x2432)](_0x375027[_0x132f23(0x2445)][_0x2562c5],_0x5ed5c7),_0xc86d14)),_0x2351a9(_0x539a89),_0x539a89[_0x132f23(0x538)]?(_0x375027[_0x132f23(0x202e)][_0x132f23(0x1f47)](_0x539a89),_0x375027[_0x132f23(0x626)][_0x539a89[_0x132f23(0x113f)]]=_0x2562c5):_0x539a89[_0x132f23(0xed1)]=_0x3f65c0()[_0x132f23(0x123)](_0x2deec6()()['format']('x'));});_0x375027[_0x48be15(0x1a56)][_0x48be15(0x1500)]&&_0x3f65c0()[_0x48be15(0x2640)](_0x375027['filteredAgents'],function(_0x575b03){const _0x33b97c=_0x48be15;return _0x575b03[_0x33b97c(0x72b)]!==_0x375027[_0x33b97c(0x1a56)]['globalStatusFilter'];});_0x375027['query'][_0x48be15(0x301)]&&_0x3f65c0()[_0x48be15(0x2640)](_0x375027[_0x48be15(0x202e)],function(_0x1f0fe4){const _0x3e7095=_0x48be15;return _0x1f0fe4['pauseType']!==_0x375027[_0x3e7095(0x1a56)][_0x3e7095(0x301)];});_0x375027[_0x48be15(0x1a56)][_0x48be15(0x1dd6)]&&_0x3f65c0()[_0x48be15(0x2640)](_0x375027[_0x48be15(0x202e)],function(_0x26e356){const _0x289d99=_0x48be15;return _0x26e356[_0x289d99(0x286a)][_0x289d99(0x256e)]()[_0x289d99(0x172b)](_0x375027['query'][_0x289d99(0x1dd6)][_0x289d99(0x256e)]())<0x0;});_0x375027['filteredAgents']=_0x54041f(_0x375027[_0x48be15(0x202e)]);const _0x4fd64a=(_0x375027[_0x48be15(0x1a56)][_0x48be15(0x844)]-0x1)*_0x375027[_0x48be15(0x1a56)]['limit'];_0x375027['paginatedAgents']=_0x3f65c0()[_0x48be15(0x854)](_0x375027[_0x48be15(0x202e)],_0x4fd64a)[_0x48be15(0x1298)](0x0,_0x375027['query'][_0x48be15(0x221e)]);for(let _0x7c14cf=0x0;_0x7c14cf<_0x375027[_0x48be15(0x285)][_0x48be15(0x402)];_0x7c14cf+=0x1){_0x375027[_0x48be15(0x206e)][_0x48be15(0x1f47)](_0x375027['paginatedAgents'][_0x7c14cf]['id']);}_0x33203a[_0x48be15(0x2922)](),_0x375027[_0x48be15(0x2412)]=!![];}function _0x35dcfb(_0xfc9fe7){const _0x292748=_0x206a6f;_0x375027['agents'][_0xfc9fe7['id']]&&(_0x3f65c0()[_0x292748(0x168d)](_0x375027[_0x292748(0x23c0)][_0xfc9fe7['id']],_0x3f65c0()[_0x292748(0x40e)](_0x3f65c0()[_0x292748(0x2432)](_0xfc9fe7,_0x5ed5c7),_0xc86d14)),_0x3f65c0()[_0x292748(0x168d)](_0x375027[_0x292748(0x2445)][_0xfc9fe7['id']],_0x3f65c0()[_0x292748(0x40e)](_0x3f65c0()[_0x292748(0x2432)](_0xfc9fe7,_0x5ed5c7),_0xc86d14)),_0x2351a9(_0x375027[_0x292748(0x23c0)][_0xfc9fe7['id']]));}function _0x31c03f(_0x35442c){const _0x4ff70b=_0x206a6f;_0x375027[_0x4ff70b(0x23c0)][_0x35442c['id']]&&(_0x3f65c0()[_0x4ff70b(0x168d)](_0x375027[_0x4ff70b(0x23c0)][_0x35442c['id']],_0x3f65c0()['pick'](_0x35442c,_0xc86d14)),_0x3f65c0()[_0x4ff70b(0x168d)](_0x375027[_0x4ff70b(0x2445)][_0x35442c['id']],_0x3f65c0()[_0x4ff70b(0x40e)](_0x35442c,_0xc86d14)),_0x35442c['lastPauseAt']&&(_0x375027[_0x4ff70b(0x23c0)][_0x35442c['id']][_0x4ff70b(0xed1)]=_0x35442c[_0x4ff70b(0x192a)],_0x375027[_0x4ff70b(0x2445)][_0x35442c['id']]['globalStatusTime']=_0x35442c['lastPauseAt']),_0x2351a9(_0x375027[_0x4ff70b(0x23c0)][_0x35442c['id']]));}function _0x1912f5(_0xb2f8d1){const _0x1d5543=_0x206a6f;_0x375027[_0x1d5543(0x23c0)][_0x375027['agentInternal'][_0xb2f8d1[_0x1d5543(0x1fb9)]]]&&(_0x3f65c0()[_0x1d5543(0x168d)](_0x375027['agents'][_0x375027[_0x1d5543(0x626)][_0xb2f8d1[_0x1d5543(0x1fb9)]]],_0x3f65c0()[_0x1d5543(0x40e)](_0xb2f8d1,[_0x1d5543(0x1c72),'destconnectedlinenum'])),_0x3f65c0()[_0x1d5543(0x168d)](_0x375027[_0x1d5543(0x2445)][_0x375027[_0x1d5543(0x626)][_0xb2f8d1[_0x1d5543(0x1fb9)]]],_0x3f65c0()['pick'](_0xb2f8d1,['queue',_0x1d5543(0x1e8d)])));}function _0x164546(_0x35d6cd){const _0x389ced=_0x206a6f;_0x375027[_0x389ced(0x23c0)][_0x375027[_0x389ced(0x626)][_0x35d6cd[_0x389ced(0x1fb9)]]]&&(_0x375027[_0x389ced(0x23c0)][_0x375027['agentInternal'][_0x35d6cd[_0x389ced(0x1fb9)]]]=_0x3f65c0()[_0x389ced(0x2432)](_0x375027[_0x389ced(0x23c0)][_0x375027[_0x389ced(0x626)][_0x35d6cd[_0x389ced(0x1fb9)]]],[_0x389ced(0x1c72),_0x389ced(0x1e8d)]),_0x375027['rpcAgents'][_0x375027[_0x389ced(0x626)][_0x35d6cd[_0x389ced(0x1fb9)]]]=_0x3f65c0()[_0x389ced(0x2432)](_0x375027[_0x389ced(0x2445)][_0x375027[_0x389ced(0x626)][_0x35d6cd[_0x389ced(0x1fb9)]]],['queue','destconnectedlinenum']));}function _0x206a7b(_0x3a6fad){const _0xbc8317=_0x206a6f;return _0x2ca214[_0xbc8317(0xe7b)][_0xbc8317(0x2044)]({'id':_0x3a6fad['id'],'device':_0xbc8317(0xfc4),'agent_id':_0x3a6fad['id'],'agent_name':_0x3a6fad[_0xbc8317(0x19eb)]})['$promise']['then'](function(){const _0x398d9a=_0xbc8317;_0x5c3834[_0x398d9a(0x1c75)]({'title':_0x398d9a(0x1c70),'msg':_0x3a6fad[_0x398d9a(0x286a)]+_0x398d9a(0x166c)}),_0x375027['agents'][_0x3a6fad['id']]&&(_0x375027['agents'][_0x3a6fad['id']]['online']=![]),_0x375027[_0x398d9a(0x2445)][_0x3a6fad['id']]&&(_0x375027['rpcAgents'][_0x3a6fad['id']][_0x398d9a(0x538)]=![]),_0x1030bf();})['catch'](function(_0x3c2e10){const _0x1e4e51=_0xbc8317;_0x5c3834[_0x1e4e51(0x1980)]({'title':_0x3c2e10['status']?_0x1e4e51(0x262a)+_0x3c2e10[_0x1e4e51(0x107b)]+'\x20-\x20'+_0x3c2e10[_0x1e4e51(0x167f)]:'api.staff.save','msg':_0x3c2e10[_0x1e4e51(0x524)]?JSON['stringify'](_0x3c2e10[_0x1e4e51(0x524)][_0x1e4e51(0x7fd)]):_0x3c2e10['toString']()});});}function _0x2f96c(_0x40e7f8,_0x441326){const _0x16c185=_0x206a6f;return _0x2ca214[_0x16c185(0xe7b)]['pause']({'id':_0x40e7f8['id'],'type':_0x441326})[_0x16c185(0x2945)][_0x16c185(0x146b)](function(_0x20a9c1){const _0x36555d=_0x16c185;_0x375027[_0x36555d(0x23c0)][_0x40e7f8['id']]&&_0x3f65c0()[_0x36555d(0x168d)](_0x375027['agents'][_0x40e7f8['id']],_0x3f65c0()[_0x36555d(0x40e)](_0x20a9c1,_0xc86d14)),_0x375027[_0x36555d(0x2445)][_0x40e7f8['id']]&&_0x3f65c0()[_0x36555d(0x168d)](_0x375027[_0x36555d(0x2445)][_0x40e7f8['id']],_0x3f65c0()[_0x36555d(0x40e)](_0x20a9c1,_0xc86d14)),_0x2351a9(_0x375027[_0x36555d(0x23c0)][_0x40e7f8['id']]);})[_0x16c185(0x129e)](function(_0x3bf86e){const _0x3e9255=_0x16c185;_0x5c3834[_0x3e9255(0x1980)]({'title':_0x3bf86e[_0x3e9255(0x107b)]?_0x3e9255(0x262a)+_0x3bf86e[_0x3e9255(0x107b)]+'\x20-\x20'+_0x3bf86e['statusText']:'api.staff.save','msg':_0x3bf86e[_0x3e9255(0x524)]?JSON[_0x3e9255(0x10bb)](_0x3bf86e[_0x3e9255(0x524)][_0x3e9255(0x7fd)]):_0x3bf86e['toString']()});});}function _0x3d8ddf(_0x28aa30){const _0x5e7bc4=_0x206a6f;return _0x2ca214[_0x5e7bc4(0xe7b)][_0x5e7bc4(0x974)]({'id':_0x28aa30['id']})[_0x5e7bc4(0x2945)][_0x5e7bc4(0x146b)](function(_0x1c521d){const _0x51a9cc=_0x5e7bc4;_0x375027[_0x51a9cc(0x23c0)][_0x28aa30['id']]&&_0x3f65c0()[_0x51a9cc(0x168d)](_0x375027[_0x51a9cc(0x23c0)][_0x28aa30['id']],_0x3f65c0()[_0x51a9cc(0x40e)](_0x1c521d,_0xc86d14)),_0x375027[_0x51a9cc(0x2445)][_0x28aa30['id']]&&_0x3f65c0()[_0x51a9cc(0x168d)](_0x375027[_0x51a9cc(0x2445)][_0x28aa30['id']],_0x3f65c0()['pick'](_0x1c521d,_0xc86d14)),_0x2351a9(_0x375027['agents'][_0x28aa30['id']]);})[_0x5e7bc4(0x129e)](function(_0xfef208){const _0x59a651=_0x5e7bc4;_0x5c3834[_0x59a651(0x1980)]({'title':_0xfef208[_0x59a651(0x107b)]?_0x59a651(0x262a)+_0xfef208[_0x59a651(0x107b)]+_0x59a651(0x1315)+_0xfef208[_0x59a651(0x167f)]:_0x59a651(0x23c6),'msg':_0xfef208[_0x59a651(0x524)]?JSON[_0x59a651(0x10bb)](_0xfef208[_0x59a651(0x524)][_0x59a651(0x7fd)]):_0xfef208[_0x59a651(0xd5f)]()});});}function _0x540319(_0x1b495d){const _0x45d06e=_0x206a6f;_0x2b61ad[_0x45d06e(0x2615)](_0x2b61ad[_0x45d06e(0x861)]()[_0x45d06e(0xa70)](!![])[_0x45d06e(0x1189)](_0x45d06e(0x2783))['htmlContent'](_0x45d06e(0x1f77))['ok']('Ok')['targetEvent'](_0x1b495d));}function _0x4b9f79(_0x19a648,_0x37a4b1){const _0x2d1b10=_0x206a6f;_0x2b61ad['show']({'controller':_0x2d1b10(0x2610),'controllerAs':'vm','templateUrl':_0xbb22f1,'parent':angular[_0x2d1b10(0x1853)](_0x6a4868['body']),'targetEvent':_0x37a4b1,'clickOutsideToClose':!![],'locals':{'agent':_0x19a648,'agents':[],'channel':_0x2d1b10(0xff9),'direction':_0x2d1b10(0x7b0),'crudPermissions':_0x375027['crudPermissions']}});}function _0x10980e(_0x11dc93){const _0xf43c55=_0x206a6f;return _0x11dc93===_0xf43c55(0x1e3e)||_0x11dc93===_0xf43c55(0x1127);}function _0x2f4cc7(_0x41c3d1){return _0x41c3d1==='pause';}function _0x5a9b9f(_0x122fe8){const _0x544182=_0x206a6f;return _0x122fe8===_0x544182(0x1127);}function _0x358889(_0x37c14d){const _0x274475=_0x206a6f;return _0x37c14d==='idle'||_0x37c14d===_0x274475(0x207d)||_0x37c14d===_0x274475(0x85d)||_0x37c14d===_0x274475(0xad4)||_0x3f65c0()[_0x274475(0x1b36)](_0x37c14d);}function _0x43e22e(_0xc9697c,_0x18cff3){const _0x409470=_0x206a6f;if(_0x18cff3===_0x409470(0xe6)){if(_0xc9697c[_0x18cff3+_0x409470(0x74e)]!==_0x409470(0xb09))return _0xc9697c[_0x18cff3+'Status'];if(_0xc9697c[_0x18cff3+_0x409470(0xde0)])return _0xc9697c[_0x18cff3+_0x409470(0x74e)]=_0x409470(0x1e3e),'pause';return _0x409470(0xb09);}else{if(_0xc9697c[_0x18cff3+_0x409470(0xde0)])return _0xc9697c[_0x18cff3+'Status']='pause',_0x409470(0x1e3e);return _0xc9697c[_0x18cff3+_0x409470(0x74e)];}}function _0x2351a9(_0x51b4dc){const _0x1a1c7a=_0x206a6f;let _0x38813f=_0x1a1c7a(0x207d);if(_0x3f65c0()[_0x1a1c7a(0xb14)]([_0x43e22e(_0x51b4dc,_0x1a1c7a(0xe6)),_0x43e22e(_0x51b4dc,_0x1a1c7a(0xa7f)),_0x43e22e(_0x51b4dc,_0x1a1c7a(0x56b)),_0x43e22e(_0x51b4dc,_0x1a1c7a(0x7d9)),_0x43e22e(_0x51b4dc,_0x1a1c7a(0x929)),_0x43e22e(_0x51b4dc,_0x1a1c7a(0xff9)),_0x43e22e(_0x51b4dc,_0x1a1c7a(0x22d9))],_0x10980e))_0x38813f='pause';else{if(_0x3f65c0()[_0x1a1c7a(0x1360)]([_0x43e22e(_0x51b4dc,_0x1a1c7a(0xe6)),_0x43e22e(_0x51b4dc,'chat'),_0x43e22e(_0x51b4dc,_0x1a1c7a(0x56b)),_0x43e22e(_0x51b4dc,_0x1a1c7a(0x7d9)),_0x43e22e(_0x51b4dc,_0x1a1c7a(0x929)),_0x43e22e(_0x51b4dc,_0x1a1c7a(0xff9)),_0x43e22e(_0x51b4dc,_0x1a1c7a(0x22d9))],_0x10980e))_0x38813f='*pause';else _0x3f65c0()[_0x1a1c7a(0xb14)]([_0x43e22e(_0x51b4dc,'voice'),_0x43e22e(_0x51b4dc,_0x1a1c7a(0xa7f)),_0x43e22e(_0x51b4dc,_0x1a1c7a(0x56b)),_0x43e22e(_0x51b4dc,_0x1a1c7a(0x7d9)),_0x43e22e(_0x51b4dc,_0x1a1c7a(0x929)),_0x43e22e(_0x51b4dc,_0x1a1c7a(0xff9)),_0x43e22e(_0x51b4dc,_0x1a1c7a(0x22d9))],_0x358889)?_0x38813f=_0x1a1c7a(0xb09):_0x38813f='busy';}_0x51b4dc[_0x1a1c7a(0x72b)]!==_0x38813f&&(_0x51b4dc[_0x1a1c7a(0x72b)]=_0x38813f,_0x51b4dc[_0x1a1c7a(0x5aa)]?(_0x51b4dc['init']=![],_0x51b4dc[_0x1a1c7a(0xed1)]=_0x10980e(_0x38813f)?_0x3f65c0()[_0x1a1c7a(0x123)](_0x2deec6()(_0x51b4dc['lastPauseAt'])[_0x1a1c7a(0x22b0)]('x')):_0x3f65c0()[_0x1a1c7a(0x727)]([_0x51b4dc[_0x1a1c7a(0x1dda)],_0x51b4dc['chatStatusTime'],_0x51b4dc[_0x1a1c7a(0x10cd)],_0x51b4dc['smsStatusTime'],_0x51b4dc[_0x1a1c7a(0xadd)],_0x51b4dc[_0x1a1c7a(0x6cb)],_0x51b4dc['faxStatusTime']])):_0x51b4dc[_0x1a1c7a(0xed1)]=_0x3f65c0()[_0x1a1c7a(0x123)](_0x2deec6()()[_0x1a1c7a(0x22b0)]('x')));}function _0x54041f(_0x2db647){const _0x30dc28=_0x206a6f,_0x33585a=_0x3f65c0()['startsWith'](_0x375027[_0x30dc28(0x1a56)][_0x30dc28(0x206e)],'-')?_0x30dc28(0x2517):_0x30dc28(0x195);return _0x3f65c0()[_0x30dc28(0x979)](_0x2db647,[_0x375027[_0x30dc28(0x1a56)][_0x30dc28(0x206e)][_0x30dc28(0x5f4)]('-','')],[_0x33585a]);}function _0x1c8066(){const _0x182ba3=_0x206a6f;_0xfd3ed3&&(_0x2605c4[_0x182ba3(0x6c3)](_0xfd3ed3),_0xfd3ed3=null);}function _0x4d1feb(_0x379ed1,_0x399e27){const _0x4abe9c=_0x206a6f;return _0x2ca214['user']['update']({'id':_0x379ed1['id']},{'screenrecording':_0x399e27})[_0x4abe9c(0x2945)][_0x4abe9c(0x129e)](function(_0x52b2be){const _0x513390=_0x4abe9c;_0x5c3834[_0x513390(0x1980)]({'title':_0x52b2be[_0x513390(0x107b)]?_0x513390(0x262a)+_0x52b2be['status']+'\x20-\x20'+_0x52b2be[_0x513390(0x167f)]:'api.user.update','msg':_0x52b2be[_0x513390(0x524)]?JSON['stringify'](_0x52b2be['data'][_0x513390(0x7fd)]):_0x52b2be[_0x513390(0xd5f)]()});});}_0x2249a9['$on'](_0x206a6f(0x116f),function(){const _0x492f8c=_0x206a6f;_0x2718ff['removeAllListeners'](_0x492f8c(0x17de)),_0x2718ff[_0x492f8c(0x1c5f)](_0x492f8c(0x324)),_0x2718ff[_0x492f8c(0x1c5f)]('user:agentconnect'),_0x2718ff[_0x492f8c(0x1c5f)](_0x492f8c(0x198f)),_0x1c8066();});}const _0x16200f=_0x152e31;;const _0x1140c1=_0x4acfac['p']+'src/js/modules/main/apps/whatsapp/views/whatsappQueues/create/dialog.html/dialog.html';;const _0x389127=_0x4acfac['p']+_0x313a4d(0x1ae2);;_0x54053d[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1abe),_0x313a4d(0x10e8),'$q',_0x313a4d(0x4d8),_0x313a4d(0xa0a),_0x313a4d(0x1b32),_0x313a4d(0x21af),_0x313a4d(0x247f),_0x313a4d(0x279d),'toasty',_0x313a4d(0x26b6),'userProfileSection',_0x313a4d(0xa87)];function _0x54053d(_0x4ebee3,_0x53f9b3,_0x538eca,_0x4c280d,_0x429919,_0x2a7464,_0x3c9735,_0x56b92e,_0x49e77f,_0x34f96d,_0x463c57,_0x29db95,_0x35f6a0,_0x4126b7){const _0x2f21d3=_0x313a4d,_0x54aa1f=this,_0x1c3ca1=[_0x2f21d3(0x2398),_0x2f21d3(0xbdb),_0x2f21d3(0x12a3),'talking',_0x2f21d3(0x166f),_0x2f21d3(0x1e38),_0x2f21d3(0x7fd),_0x2f21d3(0x1095),'dialMethod','Trunk',_0x2f21d3(0x1e3d)];_0x54aa1f[_0x2f21d3(0x2321)]=_0x4126b7[_0x2f21d3(0xb12)](),_0x54aa1f[_0x2f21d3(0x51c)]=_0x3c9735[_0x2f21d3(0x51c)]?_0x3c9735['count']:0x0,_0x54aa1f['queues']=_0x3c9735?_0x3f65c0()[_0x2f21d3(0x194)](_0x3c9735[_0x2f21d3(0x19c7)]?_0x3c9735['rows']:[],'id'):{},_0x54aa1f['rpcQueues']=_0x56b92e?_0x3f65c0()[_0x2f21d3(0x194)](_0x56b92e[_0x2f21d3(0x19c7)]?_0x56b92e[_0x2f21d3(0x19c7)]:[],'id'):{},_0x54aa1f['userProfile']=_0x29db95,_0x54aa1f[_0x2f21d3(0x1366)]=_0x35f6a0&&_0x35f6a0['count']==0x1?_0x35f6a0['rows'][0x0]:null,_0x54aa1f[_0x2f21d3(0x2514)]=_0x4126b7['parseCrudPermissions'](_0x54aa1f['userProfileSection']?_0x54aa1f[_0x2f21d3(0x1366)]['crudPermissions']:null);_0x4126b7[_0x2f21d3(0x23e0)](_0x2f21d3(0x174b))?_0x54aa1f[_0x2f21d3(0x1a56)]={'type':'inbound','sort':'-updatedAt','limit':0xa,'page':0x1}:_0x54aa1f[_0x2f21d3(0x1a56)]={'id':_0x54aa1f[_0x2f21d3(0x2321)]['id'],'channel':_0x2f21d3(0xff9),'type':'inbound','sort':_0x2f21d3(0x12f2),'limit':0xa,'page':0x1};_0x54aa1f[_0x2f21d3(0x1c75)]=_0x433a91,_0x54aa1f[_0x2f21d3(0xc53)]=_0x440ee3,_0x54aa1f[_0x2f21d3(0x17be)]=_0x3cef6f,_0x54aa1f[_0x2f21d3(0x13c)]=_0x44954a,_0x54aa1f[_0x2f21d3(0x2801)]=_0x4774c7,_0x54aa1f[_0x2f21d3(0x1db0)]=_0x3e64a1,_0x54aa1f[_0x2f21d3(0x285f)]=_0x2f8bac,_0x54aa1f[_0x2f21d3(0x2240)]=_0x28b5d1,_0x54aa1f['onPause']=_0x7720f7,_0x54aa1f[_0x2f21d3(0x1c6c)]=_0x3a12cb,_0x54aa1f[_0x2f21d3(0x600)]=_0x4bbd1e,_0x54aa1f[_0x2f21d3(0x20de)]=_0x56c5b6,_0x54aa1f[_0x2f21d3(0x206e)]=[],_0x3f65c0()[_0x2f21d3(0x1a04)](_0x54aa1f[_0x2f21d3(0x1b32)],function(_0x158b9c){const _0x5c332f=_0x2f21d3;_0x54aa1f[_0x5c332f(0x206e)][_0x5c332f(0x1f47)](_0x158b9c['id']);}),_0x34f96d['on'](_0x2f21d3(0x1fe1),_0x54aa1f[_0x2f21d3(0x1db0)]),_0x34f96d['on'](_0x2f21d3(0x2779),_0x54aa1f[_0x2f21d3(0x285f)]),_0x34f96d['on']('userWhatsappQueue:remove',_0x54aa1f[_0x2f21d3(0x2240)]),_0x34f96d['on'](_0x2f21d3(0x324),_0x54aa1f[_0x2f21d3(0x1028)]),_0x34f96d['on']('userVoiceQueue:remove',_0x54aa1f[_0x2f21d3(0x600)]),_0x34f96d['on'](_0x2f21d3(0x109d),_0x54aa1f[_0x2f21d3(0x1c6c)]);function _0x56c5b6(){const _0x3be14e=_0x2f21d3,_0x428eb=[];return _0x3f65c0()['forIn'](_0x54aa1f[_0x3be14e(0x1b32)],function(_0x3b8e3e,_0x4f5d2b){const _0x1c9bc4=_0x3be14e;_0x3b8e3e[_0x1c9bc4(0x1e3d)]=0x0,_0x3b8e3e['loggedInDb']=0x0,_0x54aa1f[_0x1c9bc4(0x1b32)][_0x4f5d2b]['agents']={},_0x428eb[_0x1c9bc4(0x1f47)](_0x49e77f[_0x1c9bc4(0x1b3b)][_0x1c9bc4(0x24c3)]({'id':_0x4f5d2b})['$promise']),_0x54aa1f[_0x1c9bc4(0x21af)][_0x4f5d2b]&&_0x3f65c0()[_0x1c9bc4(0x168d)](_0x3b8e3e,_0x3f65c0()[_0x1c9bc4(0x40e)](_0x54aa1f['rpcQueues'][_0x4f5d2b],_0x1c3ca1));}),_0x4c280d[_0x3be14e(0x1be2)](_0x428eb)[_0x3be14e(0x146b)](function(_0x17ce1b){const _0x9673a3=_0x3be14e;for(let _0x2936ed=0x0;_0x2936ed<_0x17ce1b[_0x9673a3(0x402)];_0x2936ed+=0x1){for(let _0x33ef9f=0x0;_0x33ef9f<_0x17ce1b[_0x2936ed]['rows'][_0x9673a3(0x402)];_0x33ef9f++){_0x17ce1b[_0x2936ed][_0x9673a3(0x19c7)][_0x33ef9f][_0x9673a3(0x1e3d)]&&_0x54aa1f[_0x9673a3(0x1b32)][_0x17ce1b[_0x2936ed]['rows'][_0x33ef9f][_0x9673a3(0x469)]]['paused']++,_0x54aa1f[_0x9673a3(0x1b32)][_0x17ce1b[_0x2936ed][_0x9673a3(0x19c7)][_0x33ef9f][_0x9673a3(0x469)]][_0x9673a3(0x1899)]++,_0x54aa1f['queues'][_0x17ce1b[_0x2936ed][_0x9673a3(0x19c7)][_0x33ef9f][_0x9673a3(0x469)]][_0x9673a3(0x23c0)][_0x17ce1b[_0x2936ed][_0x9673a3(0x19c7)][_0x33ef9f][_0x9673a3(0xea2)]]=_0x17ce1b[_0x2936ed]['rows'][_0x33ef9f][_0x9673a3(0x469)];}}})[_0x3be14e(0x129e)](function(_0x529546){const _0x27b3e2=_0x3be14e;console[_0x27b3e2(0x1980)](_0x529546);});}function _0x3e64a1(_0x11fe0c){const _0x4bcda2=_0x2f21d3;_0x54aa1f['queues'][_0x11fe0c['id']]&&_0x3f65c0()[_0x4bcda2(0x168d)](_0x54aa1f[_0x4bcda2(0x1b32)][_0x11fe0c['id']],_0x3f65c0()[_0x4bcda2(0x40e)](_0x11fe0c,_0x1c3ca1));}function _0x2f8bac(_0x379b3e){const _0x2712ed=_0x2f21d3;_0x54aa1f[_0x2712ed(0x1b32)][_0x379b3e[_0x2712ed(0x469)]]&&_0x54aa1f['queues'][_0x379b3e['WhatsappQueueId']][_0x2712ed(0x1899)]++;}function _0x28b5d1(_0x1499f8){const _0x43ec76=_0x2f21d3;_0x54aa1f['queues'][_0x1499f8[_0x43ec76(0x469)]]&&_0x54aa1f['queues'][_0x1499f8[_0x43ec76(0x469)]]['loggedInDb']--;}function _0x7720f7(_0x5f45ed){const _0x4fce8b=_0x2f21d3;console[_0x4fce8b(0x1a74)](_0x4fce8b(0x1028),_0x5f45ed);if(_0x5f45ed[_0x4fce8b(0x211c)])_0x3f65c0()[_0x4fce8b(0x1a04)](_0x54aa1f['queues'],function(_0xe1f1a9){const _0x57a720=_0x4fce8b;_0xe1f1a9[_0x57a720(0x23c0)][_0x5f45ed['id']]&&(_0xe1f1a9['paused']+=0x1,console[_0x57a720(0x1a74)](_0x57a720(0x1e3e)));});else!_0x5f45ed[_0x4fce8b(0x211c)]&&_0x3f65c0()[_0x4fce8b(0x1a04)](_0x54aa1f[_0x4fce8b(0x1b32)],function(_0x5a7788){const _0x17eeb2=_0x4fce8b;_0x5a7788[_0x17eeb2(0x23c0)][_0x5f45ed['id']]&&(_0x5a7788['paused']>0x0&&(_0x5a7788[_0x17eeb2(0x1e3d)]-=0x1,console['log']('unpause')));});}function _0x3a12cb(_0x4292d3){const _0x49712a=_0x2f21d3;console[_0x49712a(0x1a74)]('onLogged',_0x4292d3),_0x54aa1f[_0x49712a(0x1b32)][_0x4292d3[_0x49712a(0x469)]]&&(_0x54aa1f['queues'][_0x4292d3[_0x49712a(0x469)]][_0x49712a(0x1899)]+=0x1,_0x54aa1f[_0x49712a(0x1b32)][_0x4292d3[_0x49712a(0x469)]][_0x49712a(0x23c0)][_0x4292d3['UserId']]=_0x4292d3[_0x49712a(0x469)]);}function _0x4bbd1e(_0xed66e1){const _0xf21941=_0x2f21d3;console[_0xf21941(0x1a74)](_0xf21941(0x600),_0xed66e1),_0x54aa1f[_0xf21941(0x1b32)][_0xed66e1['WhatsappQueueId']]&&_0x54aa1f['queues'][_0xed66e1[_0xf21941(0x469)]][_0xf21941(0x1899)]>0x0&&(_0x54aa1f['queues'][_0xed66e1[_0xf21941(0x469)]][_0xf21941(0x1899)]-=0x1,delete _0x54aa1f[_0xf21941(0x1b32)][_0xed66e1[_0xf21941(0x469)]][_0xf21941(0x23c0)][_0xed66e1[_0xf21941(0xea2)]]);}let _0x5a443d=!![],_0x1fd0ca=0x1;_0x4ebee3['$watch'](_0x2f21d3(0x2669),function(_0x235563,_0x4ec8d1){const _0x1edcbf=_0x2f21d3;_0x5a443d?_0x53f9b3(function(){_0x5a443d=![];}):(!_0x4ec8d1&&(_0x1fd0ca=_0x54aa1f[_0x1edcbf(0x1a56)][_0x1edcbf(0x844)]),_0x235563!==_0x4ec8d1&&(_0x54aa1f[_0x1edcbf(0x1a56)][_0x1edcbf(0x844)]=0x1),!_0x235563&&(_0x54aa1f[_0x1edcbf(0x1a56)][_0x1edcbf(0x844)]=_0x1fd0ca),_0x54aa1f[_0x1edcbf(0xc53)]());});function _0x433a91(_0x1cd3f3){const _0x495ed5=_0x2f21d3;_0x54aa1f[_0x495ed5(0x51c)]=_0x1cd3f3[_0x495ed5(0x51c)],_0x54aa1f[_0x495ed5(0x1b32)]=_0x1cd3f3?_0x3f65c0()[_0x495ed5(0x194)](_0x1cd3f3[_0x495ed5(0x19c7)]?_0x1cd3f3['rows']:[],'id'):{};if(_0x1cd3f3[_0x495ed5(0x19c7)]){_0x54aa1f[_0x495ed5(0x206e)]=[];for(let _0x121571=0x0;_0x121571<_0x1cd3f3[_0x495ed5(0x19c7)]['length'];_0x121571++){_0x54aa1f['order'][_0x495ed5(0x1f47)](_0x1cd3f3['rows'][_0x121571]['id']);}}_0x56c5b6();}function _0x440ee3(){const _0x229c88=_0x2f21d3;_0x54aa1f[_0x229c88(0x1a56)][_0x229c88(0x145d)]=(_0x54aa1f['query'][_0x229c88(0x844)]-0x1)*_0x54aa1f[_0x229c88(0x1a56)][_0x229c88(0x221e)],_0x4126b7['hasRole'](_0x229c88(0x174b))?_0x54aa1f[_0x229c88(0xb9c)]=_0x49e77f[_0x229c88(0x1b3b)][_0x229c88(0x16b4)](_0x54aa1f['query'],_0x433a91)[_0x229c88(0x2945)]:(_0x54aa1f[_0x229c88(0x1a56)]['id']=_0x54aa1f[_0x229c88(0x26b6)]['id'],_0x54aa1f['query'][_0x229c88(0x2146)]=_0x229c88(0xef),_0x54aa1f[_0x229c88(0xb9c)]=_0x49e77f[_0x229c88(0x26b6)][_0x229c88(0x158f)](_0x54aa1f[_0x229c88(0x1a56)],_0x433a91)['$promise']);}function _0x3cef6f(_0x4d3b3c,_0x1db49a){const _0x406bac=_0x2f21d3;_0x538eca[_0x406bac(0x2615)]({'controller':'CreateOrEditWhatsappQueueDialogController','controllerAs':'vm','templateUrl':_0x1140c1,'parent':angular['element'](_0x429919['body']),'targetEvent':_0x4d3b3c,'clickOutsideToClose':!![],'locals':{'whatsappQueue':_0x1db49a,'whatsappQueues':_0x3f65c0()[_0x406bac(0x81b)](_0x54aa1f[_0x406bac(0x1b32)]),'license':null,'setting':null,'crudPermissions':_0x54aa1f['crudPermissions']}});}function _0x44954a(_0xe24f83,_0x3b3897){const _0x158c08=_0x2f21d3;_0x538eca[_0x158c08(0x2615)]({'controller':_0x158c08(0x2d5),'controllerAs':'vm','templateUrl':_0x389127,'parent':angular[_0x158c08(0x1853)](_0x429919[_0x158c08(0x2586)]),'targetEvent':_0xe24f83,'clickOutsideToClose':!![],'locals':{'whatsappQueue':_0x3b3897,'whatsappQueues':_0x54aa1f[_0x158c08(0x1b32)]?_0x54aa1f[_0x158c08(0x1b32)][_0x158c08(0x19c7)]:[],'realtime':![],'crudPermissions':_0x54aa1f[_0x158c08(0x2514)]}});}function _0x4774c7(_0x4cc40e){const _0x18afeb=_0x2f21d3;return _0x49e77f[_0x18afeb(0x1b3b)][_0x18afeb(0x18e1)](_0x4cc40e)[_0x18afeb(0x2945)][_0x18afeb(0x146b)](function(){const _0x20a536=_0x18afeb;_0x463c57[_0x20a536(0x1c75)]({'title':_0x20a536(0x5f1),'msg':_0x4cc40e['name']?_0x4cc40e[_0x20a536(0x19eb)]+_0x20a536(0x6b0):''});})[_0x18afeb(0x129e)](function(_0x17c168){const _0xc08a81=_0x18afeb;_0x463c57[_0xc08a81(0x1980)]({'title':'Error\x20creating\x20queue!','msg':_0x17c168[_0xc08a81(0x7fd)]});});}_0x4ebee3[_0x2f21d3(0x16ad)](_0x2f21d3(0x116f),function(){const _0x12a317=_0x2f21d3;_0x34f96d[_0x12a317(0x1c5f)]('whatsapp_queue:save'),_0x34f96d[_0x12a317(0x1c5f)]('userWhatsappQueue:remove'),_0x34f96d[_0x12a317(0x1c5f)](_0x12a317(0x2779)),_0x34f96d[_0x12a317(0x1c5f)](_0x12a317(0x324)),_0x34f96d[_0x12a317(0x1c5f)](_0x12a317(0x1d3e)),_0x34f96d['removeAllListeners']('userVoiceQueue:save');});}const _0x142cc3=_0x54053d;;function _0x2a5507(){const _0x3fab16=_0x313a4d;return{'status':{'registered':_0x3fab16(0xdf4),'unregistered':'red-300-fg\x20icon-close-circle','lagged':_0x3fab16(0x4c7),'reachable':_0x3fab16(0xdf4),'unreachable':_0x3fab16(0x4c7),'unknown':_0x3fab16(0xc4b)},'state':{'unknown':_0x3fab16(0x1fd7),'not_inuse':_0x3fab16(0x1756),'inuse':_0x3fab16(0x255c),'busy':_0x3fab16(0xb3c),'invalid':_0x3fab16(0x1fd7),'unavailable':_0x3fab16(0x1fd7),'ringing':_0x3fab16(0x1172),'ringinuse':_0x3fab16(0x1172),'onhold':_0x3fab16(0x119f)},'channelStatus':{'ring':_0x3fab16(0x1172),'up':_0x3fab16(0x1668),'hangup':_0x3fab16(0x135d)},'channelStatusOut':{'ring':_0x3fab16(0x1a13),'up':'green-300-fg\x20icon-phone-in-talk','hangup':_0x3fab16(0x135d)}};}const _0x337210=_0x2a5507;;_0x4a1d63[_0x313a4d(0x11c2)]=['$scope',_0x313a4d(0x1862),_0x313a4d(0x279d)];function _0x4a1d63(_0xccfab1,_0xa380b0,_0x4951bd){const _0x3839bf=_0x313a4d,_0x589e89=this;_0x4951bd[_0x3839bf(0x194a)](),_0x4951bd[_0x3839bf(0x2e3)](),_0x589e89[_0x3839bf(0x1b09)]=0x0;switch(_0xa380b0[_0x3839bf(0x2d7)][_0x3839bf(0x19eb)]){case _0x3839bf(0x93e):_0x589e89[_0x3839bf(0x1b09)]=0x0;break;case _0x3839bf(0x1f49):_0x589e89[_0x3839bf(0x1b09)]=0x1;break;default:_0x589e89[_0x3839bf(0x1b09)]=0x0,_0xa380b0['go'](_0x3839bf(0x93e));}_0xccfab1[_0x3839bf(0x21e8)](_0x3839bf(0x241b),function(_0x4ea9ad,_0xbe01a9){const _0x4e88b5=_0x3839bf;if(_0x4ea9ad!==_0xbe01a9)switch(_0x4ea9ad){case 0x0:_0xa380b0['go'](_0x4e88b5(0x93e));break;case 0x1:_0xa380b0['go'](_0x4e88b5(0x1f49));break;default:_0xa380b0['go']('app.whatsapp.realtime.agents');break;}});}const _0x4aa7a1=_0x4a1d63;;_0x4f8528[_0x313a4d(0x11c2)]=[_0x313a4d(0x921)];function _0x4f8528(_0x5878af){const _0x2dc57b=_0x313a4d;_0x5878af[_0x2dc57b(0x13d6)]('app.whatsapp.realtime',{'url':'/realtime','views':{'content@app':{'templateUrl':_0x457373,'controller':'WhatsappRealtimeController\x20as\x20vm'}},'resolve':{'userProfile':[_0x2dc57b(0x362),_0x2dc57b(0xa87),function(_0x38115d,_0x2b6a5f){const _0x5ce4bc=_0x2dc57b;return _0x2b6a5f[_0x5ce4bc(0x23e0)]('admin')?null:_0x38115d[_0x5ce4bc(0x2922)](_0x5ce4bc(0x119a),{'fields':_0x5ce4bc(0x227),'id':_0x2b6a5f[_0x5ce4bc(0xb12)]()[_0x5ce4bc(0x209a)]});}],'userProfileSection':[_0x2dc57b(0x362),_0x2dc57b(0xa87),function(_0x256701,_0x29ef8c){const _0x591925=_0x2dc57b;return _0x29ef8c['hasRole']('admin')?null:_0x256701[_0x591925(0x2922)](_0x591925(0x27be),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x29ef8c['getCurrentUser']()[_0x591925(0x209a)],'sectionId':0x83e});}]},'authenticate':!![],'permissionId':0x83e})[_0x2dc57b(0x13d6)](_0x2dc57b(0x93e),{'url':_0x2dc57b(0x1507),'controller':_0x2dc57b(0x1732),'templateUrl':_0x4682d4,'resolve':{'pauses':[_0x2dc57b(0x362),function(_0x3c648d){const _0x60747d=_0x2dc57b;return _0x3c648d[_0x60747d(0x2922)](_0x60747d(0x3f6),{'nolimit':!![]});}],'agents':[_0x2dc57b(0x362),'Auth',function(_0x1bf017,_0x1b76bc){const _0x3b08e5=_0x2dc57b;return _0x1b76bc[_0x3b08e5(0x23e0)](_0x3b08e5(0x174b))?_0x1bf017[_0x3b08e5(0x2922)](_0x3b08e5(0x2484),{'fields':_0x3b08e5(0x2869),'role':_0x3b08e5(0x1755),'sort':_0x3b08e5(0x286a),'nolimit':!![]}):_0x1bf017[_0x3b08e5(0x2922)](_0x3b08e5(0x938),{'id':_0x1b76bc[_0x3b08e5(0xb12)]()['userProfileId'],'section':'Agents','fields':_0x3b08e5(0x2869),'role':_0x3b08e5(0x1755),'sort':_0x3b08e5(0x286a),'nolimit':!![]});}],'userProfile':['apiResolver','Auth',function(_0xf32a8c,_0x6b9e7e){const _0x2388af=_0x2dc57b;return _0x6b9e7e[_0x2388af(0x23e0)](_0x2388af(0x174b))?null:_0xf32a8c[_0x2388af(0x2922)](_0x2388af(0x119a),{'fields':_0x2388af(0x227),'id':_0x6b9e7e[_0x2388af(0xb12)]()[_0x2388af(0x209a)]});}],'userProfileSection':['apiResolver',_0x2dc57b(0xa87),function(_0x3e8894,_0x962143){const _0x3192b7=_0x2dc57b;return _0x962143[_0x3192b7(0x23e0)](_0x3192b7(0x174b))?null:_0x3e8894['resolve']('userProfileSection@get',{'fields':_0x3192b7(0x1e64),'userProfileId':_0x962143['getCurrentUser']()[_0x3192b7(0x209a)],'sectionId':0xca});}],'rpcAgents':[_0x2dc57b(0x362),function(_0x122116){const _0x41dc38=_0x2dc57b;return _0x122116['resolve'](_0x41dc38(0x19ab));}]},'authenticate':!![],'permissionId':0x83e})['state'](_0x2dc57b(0x1f49),{'url':_0x2dc57b(0xf15),'controller':_0x2dc57b(0x661),'templateUrl':_0x352469,'resolve':{'queues':['apiResolver',_0x2dc57b(0xa87),function(_0x2a8188,_0x7f581){const _0x2c6b26=_0x2dc57b;return _0x7f581[_0x2c6b26(0x23e0)](_0x2c6b26(0x174b))?_0x2a8188[_0x2c6b26(0x2922)](_0x2c6b26(0x26e6),{'type':_0x2c6b26(0x7b0),'sort':_0x2c6b26(0x12f2),'limit':0xa,'offset':0x0}):_0x2a8188['resolve'](_0x2c6b26(0x938),{'id':_0x7f581[_0x2c6b26(0xb12)]()['userProfileId'],'section':_0x2c6b26(0xef),'channel':_0x2c6b26(0xff9),'type':_0x2c6b26(0x7b0),'sort':_0x2c6b26(0x12f2),'limit':0xa,'page':0x1});}],'userProfile':['apiResolver',_0x2dc57b(0xa87),function(_0x1a943e,_0x293b85){const _0x315c45=_0x2dc57b;return _0x293b85[_0x315c45(0x23e0)](_0x315c45(0x174b))?null:_0x1a943e[_0x315c45(0x2922)](_0x315c45(0x119a),{'fields':_0x315c45(0x227),'id':_0x293b85[_0x315c45(0xb12)]()[_0x315c45(0x209a)]});}],'userProfileSection':['apiResolver',_0x2dc57b(0xa87),function(_0x2692a7,_0x57046c){const _0x4e089f=_0x2dc57b;return _0x57046c[_0x4e089f(0x23e0)](_0x4e089f(0x174b))?null:_0x2692a7[_0x4e089f(0x2922)](_0x4e089f(0x27be),{'fields':_0x4e089f(0x1e64),'userProfileId':_0x57046c[_0x4e089f(0xb12)]()[_0x4e089f(0x209a)],'sectionId':0x835});}],'rpcQueues':[_0x2dc57b(0x362),function(_0x306380){const _0x1207f5=_0x2dc57b;return _0x306380[_0x1207f5(0x2922)](_0x1207f5(0x601));}]},'authenticate':!![],'permissionId':0x83e});}angular['module'](_0x313a4d(0x2829),[])[_0x313a4d(0x989)](_0x4f8528)[_0x313a4d(0x28f0)](_0x313a4d(0x2620),_0x16200f)[_0x313a4d(0x28f0)]('QueuesWhatsappRealtimeController',_0x142cc3)[_0x313a4d(0x1750)](_0x313a4d(0x1ac0),_0x337210)[_0x313a4d(0x28f0)](_0x313a4d(0x5c5),_0x4aa7a1);;const _0x8ddf7e=_0x4acfac['p']+_0x313a4d(0xd4e);;const _0x181a60=_0x4acfac['p']+_0x313a4d(0x11a9);;const _0x1239f5=_0x4acfac['p']+'src/js/modules/main/apps/whatsapp/views/whatsappAccounts/whatsappAccounts.html/whatsappAccounts.html';;const _0x2b4e10=_0x4acfac['p']+'src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/view.html/view.html';;_0x46139e[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),_0x313a4d(0x1862),_0x313a4d(0xd08),'$mdDialog','$q',_0x313a4d(0x214b),'toasty','whatsappAccounts',_0x313a4d(0x815),_0x313a4d(0x247f),_0x313a4d(0xa87),'license',_0x313a4d(0x15b9),'crudPermissions'];function _0x46139e(_0x2ad785,_0x244c64,_0x32dc40,_0xd81702,_0x204b35,_0x195abd,_0x562b26,_0x594dd0,_0x4763f1,_0x2713a1,_0x1c72f3,_0x3662fc,_0x566aa0,_0x1b3ecf){const _0xe68102=_0x313a4d,_0x3de7d8=this;_0x3de7d8[_0xe68102(0x2321)]=_0x1c72f3[_0xe68102(0xb12)](),_0x3de7d8[_0xe68102(0xcef)]=[],_0x3de7d8['setting']=_0x566aa0,_0x3de7d8['license']=_0x3662fc,_0x3de7d8[_0xe68102(0x2514)]=_0x1b3ecf,_0x3de7d8[_0xe68102(0x855)]={},_0x3de7d8[_0xe68102(0x2251)]=_0x3de7d8[_0xe68102(0x15b9)]&&_0x3de7d8[_0xe68102(0x15b9)][_0xe68102(0x976)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3de7d8[_0xe68102(0x1189)]=_0xe68102(0x17ed),_0x3de7d8[_0xe68102(0x815)]=angular[_0xe68102(0x235a)](_0x4763f1),_0x3de7d8[_0xe68102(0x23c)]=_0x594dd0,_0x3de7d8[_0xe68102(0x36d)]=![];!_0x3de7d8['whatsappAccount']&&(_0x3de7d8[_0xe68102(0x815)]={'remote':_0x32dc40[_0xe68102(0x2414)]()+_0xe68102(0xb0e)+_0x32dc40[_0xe68102(0x148e)]()+(_0x32dc40[_0xe68102(0x1553)]()?':'+_0x32dc40[_0xe68102(0x1553)]():''),'type':_0xe68102(0xc08),'notificationSound':!![],'queueTransferTimeout':0x12c,'waitForTheAssignedAgent':0xa,'agentTransferTimeout':0x12c},_0x3de7d8[_0xe68102(0x1189)]=_0xe68102(0x268e),_0x3de7d8[_0xe68102(0x36d)]=!![]);_0x244c64[_0xe68102(0x16a)]['id']&&(_0x3de7d8[_0xe68102(0x815)][_0xe68102(0x158a)]=_0x244c64[_0xe68102(0x16a)]['id']);_0x3de7d8[_0xe68102(0x1fe3)]=_0x4b6994,_0x3de7d8[_0xe68102(0x2741)]=_0x2500e9,_0x3de7d8['deleteWhatsappAccount']=_0x1bcc9f,_0x3de7d8['getDateFromString']=_0x57d663,_0x3de7d8[_0xe68102(0x13f3)]=_0x5d863c,_0x1c72f3[_0xe68102(0x23e0)](_0xe68102(0x174b))?_0x2713a1[_0xe68102(0xf03)][_0xe68102(0x16b4)]({'fields':_0xe68102(0x7a7),'sort':'name'})[_0xe68102(0x2945)]['then'](function(_0x2283a6){const _0x19a892=_0xe68102;_0x3de7d8['lists']=_0x2283a6[_0x19a892(0x19c7)]||[];})[_0xe68102(0x129e)](function(_0x3dec46){const _0x5d67d2=_0xe68102;_0x562b26[_0x5d67d2(0x1980)]({'title':_0x3dec46['status']?_0x5d67d2(0x262a)+_0x3dec46[_0x5d67d2(0x107b)]+_0x5d67d2(0x1315)+_0x3dec46[_0x5d67d2(0x167f)]:'SYSTEM:GET_LISTS','msg':_0x3dec46[_0x5d67d2(0x524)]?JSON[_0x5d67d2(0x10bb)](_0x3dec46[_0x5d67d2(0x524)]):_0x3dec46[_0x5d67d2(0xd5f)]()});}):_0x2713a1[_0xe68102(0xf03)][_0xe68102(0x16b4)]({'fields':_0xe68102(0x7a7),'sort':'name'})[_0xe68102(0x2945)][_0xe68102(0x146b)](function(_0x592adc){const _0x545a26=_0xe68102;_0x3de7d8[_0x545a26(0x1324)]=_0x592adc['rows']||[];})[_0xe68102(0x146b)](function(){const _0x57ce02=_0xe68102;return _0x2713a1[_0x57ce02(0x1366)][_0x57ce02(0x16b4)]({'userProfileId':_0x3de7d8[_0x57ce02(0x2321)][_0x57ce02(0x209a)],'sectionId':0x12d})[_0x57ce02(0x2945)];})[_0xe68102(0x146b)](function(_0x23de4a){const _0x2c4522=_0xe68102,_0x280bea=_0x23de4a&&_0x23de4a[_0x2c4522(0x19c7)]?_0x23de4a[_0x2c4522(0x19c7)][0x0]:null;if(!_0x280bea){const _0x4fe848=[];let _0x3ea92d=null;_0x3de7d8[_0x2c4522(0x815)]&&(_0x3ea92d=_0x3f65c0()['find'](_0x3de7d8[_0x2c4522(0x1324)],{'id':Number(_0x3de7d8[_0x2c4522(0x815)][_0x2c4522(0xb7c)])}));for(let _0xacfcb3=0x0;_0xacfcb3<_0x3de7d8[_0x2c4522(0x1324)]['length'];_0xacfcb3++){_0x3ea92d&&_0x3de7d8[_0x2c4522(0x1324)][_0xacfcb3]['id']===_0x3ea92d['id']&&(_0x3de7d8[_0x2c4522(0x1324)][_0xacfcb3]['canSelect']=![],_0x4fe848[_0x2c4522(0x1f47)](_0x3de7d8[_0x2c4522(0x1324)][_0xacfcb3]));}_0x3de7d8[_0x2c4522(0x1324)]=_0x4fe848;}else{if(!_0x280bea[_0x2c4522(0x11d2)])return _0x2713a1[_0x2c4522(0xdcc)][_0x2c4522(0x16b4)]({'sectionId':_0x280bea['id']})[_0x2c4522(0x2945)][_0x2c4522(0x146b)](function(_0x4b2f90){const _0xdfa834=_0x2c4522,_0x909acf=_0x3f65c0()[_0xdfa834(0x205)](_0x4b2f90[_0xdfa834(0x19c7)],function(_0xf8da2c){const _0x154c7c=_0xdfa834;return _0x3f65c0()[_0x154c7c(0xc84)](_0x3de7d8[_0x154c7c(0x1324)],{'id':_0xf8da2c['resourceId']});});let _0x38d7e0=null;_0x3de7d8[_0xdfa834(0x815)]&&(_0x38d7e0=_0x3f65c0()[_0xdfa834(0xc84)](_0x3de7d8['lists'],{'id':Number(_0x3de7d8[_0xdfa834(0x815)][_0xdfa834(0xb7c)])}));if(_0x38d7e0&&!_0x3f65c0()[_0xdfa834(0x1360)](_0x909acf,['id',_0x38d7e0['id']])){const _0xde0eff=_0x3f65c0()[_0xdfa834(0xc84)](_0x3de7d8[_0xdfa834(0x1324)],{'id':_0x38d7e0['id']});_0xde0eff[_0xdfa834(0x8ff)]=![],_0x909acf['push'](_0xde0eff);}_0x3de7d8[_0xdfa834(0x1324)]=_0x909acf;});}})['catch'](function(_0x208e41){const _0x25f63b=_0xe68102;_0x562b26['error']({'title':_0x208e41['status']?_0x25f63b(0x262a)+_0x208e41['status']+_0x25f63b(0x1315)+_0x208e41['statusText']:_0x25f63b(0x1a2f),'msg':_0x208e41[_0x25f63b(0x524)]?JSON['stringify'](_0x208e41[_0x25f63b(0x524)]):_0x208e41['toString']()});}),_0x1c72f3[_0xe68102(0x23e0)]('admin')?_0x2713a1[_0xe68102(0x1e3e)][_0xe68102(0x16b4)]({'fields':_0xe68102(0x69a),'sort':_0xe68102(0x19eb),'nolimit':_0xe68102(0x1185)})[_0xe68102(0x2945)]['then'](function(_0x99f853){const _0x447394=_0xe68102;_0x3de7d8[_0x447394(0x23bb)]=_0x99f853[_0x447394(0x19c7)]||[];})[_0xe68102(0x129e)](function(_0x1d3c10){const _0x485362=_0xe68102;_0x562b26[_0x485362(0x1980)]({'title':_0x1d3c10[_0x485362(0x107b)]?_0x485362(0x262a)+_0x1d3c10[_0x485362(0x107b)]+'\x20-\x20'+_0x1d3c10[_0x485362(0x167f)]:_0x485362(0x1e82),'msg':_0x1d3c10['data']?JSON[_0x485362(0x10bb)](_0x1d3c10[_0x485362(0x524)]):_0x1d3c10[_0x485362(0xd5f)]()});}):_0x2713a1['pause']['get']({'fields':'name,id','sort':_0xe68102(0x19eb),'nolimit':_0xe68102(0x1185)})['$promise'][_0xe68102(0x146b)](function(_0x43940b){const _0x330545=_0xe68102;_0x3de7d8['pauses']=_0x43940b[_0x330545(0x19c7)]||[];})[_0xe68102(0x146b)](function(){const _0x1a3990=_0xe68102;return _0x2713a1[_0x1a3990(0x1366)][_0x1a3990(0x16b4)]({'userProfileId':_0x3de7d8[_0x1a3990(0x2321)][_0x1a3990(0x209a)],'sectionId':0x3ed})[_0x1a3990(0x2945)];})[_0xe68102(0x146b)](function(_0x3ff565){const _0xc84be3=_0xe68102,_0xd4c970=_0x3ff565&&_0x3ff565['rows']?_0x3ff565['rows'][0x0]:null;if(!_0xd4c970)_0x3de7d8['pauses']=[];else{if(!_0xd4c970[_0xc84be3(0x11d2)])return _0x2713a1[_0xc84be3(0xdcc)][_0xc84be3(0x16b4)]({'sectionId':_0xd4c970['id']})[_0xc84be3(0x2945)][_0xc84be3(0x146b)](function(_0x914c94){const _0x2dacbe=_0xc84be3,_0x59f1a2=_0x3f65c0()[_0x2dacbe(0x205)](_0x914c94[_0x2dacbe(0x19c7)],function(_0x26fbcd){const _0x40112d=_0x2dacbe;return _0x3f65c0()['find'](_0x3de7d8['pauses'],{'id':_0x26fbcd[_0x40112d(0x18b8)]});});_0x3de7d8['pauses'][_0x2dacbe(0x1df5)](function(_0xbba491){const _0x204b43=_0x2dacbe;!_0x3f65c0()['some'](_0x59f1a2,['id',_0xbba491['id']])&&(_0xbba491['canSelect']=![]),_0x59f1a2[_0x204b43(0x1f47)](_0xbba491);}),_0x3de7d8[_0x2dacbe(0x23bb)]=_0x59f1a2;});}})[_0xe68102(0x129e)](function(_0x12a310){const _0x2cc333=_0xe68102;_0x562b26[_0x2cc333(0x1980)]({'title':_0x12a310[_0x2cc333(0x107b)]?_0x2cc333(0x262a)+_0x12a310[_0x2cc333(0x107b)]+_0x2cc333(0x1315)+_0x12a310['statusText']:'SYSTEM:GETpauses','msg':_0x12a310[_0x2cc333(0x524)]?JSON[_0x2cc333(0x10bb)](_0x12a310['data']):_0x12a310['toString']()});});function _0x4b6994(){const _0xfa8b2c=_0xe68102;_0x3de7d8[_0xfa8b2c(0xcef)]=[],_0x2713a1[_0xfa8b2c(0x815)][_0xfa8b2c(0x1e3)](_0x3de7d8[_0xfa8b2c(0x815)])[_0xfa8b2c(0x2945)][_0xfa8b2c(0x146b)](function(_0x54b7fe){const _0x597364=_0xfa8b2c;_0x3de7d8['whatsappAccounts']['unshift'](_0x54b7fe[_0x597364(0x2488)]()),_0x562b26['success']({'title':_0x597364(0x12e2),'msg':_0x3de7d8[_0x597364(0x815)][_0x597364(0x19eb)]?_0x3de7d8[_0x597364(0x815)][_0x597364(0x19eb)]+_0x597364(0x1386):''}),_0x5d863c(_0x54b7fe);})[_0xfa8b2c(0x129e)](function(_0x333398){const _0x236f50=_0xfa8b2c;if(_0x333398[_0x236f50(0x524)]&&_0x333398[_0x236f50(0x524)][_0x236f50(0xcef)]&&_0x333398[_0x236f50(0x524)][_0x236f50(0xcef)][_0x236f50(0x402)]){_0x3de7d8[_0x236f50(0xcef)]=_0x333398[_0x236f50(0x524)]['errors']||[{'message':_0x333398['toString'](),'type':_0x236f50(0x1e68)}];for(let _0x54ce5c=0x0;_0x54ce5c<_0x333398['data'][_0x236f50(0xcef)]['length'];_0x54ce5c+=0x1){_0x562b26['error']({'title':_0x333398[_0x236f50(0x524)][_0x236f50(0xcef)][_0x54ce5c][_0x236f50(0x1142)],'msg':_0x333398['data'][_0x236f50(0xcef)][_0x54ce5c]['message']});}}else _0x562b26[_0x236f50(0x1980)]({'title':_0x333398[_0x236f50(0x107b)]?_0x236f50(0x262a)+_0x333398[_0x236f50(0x107b)]+_0x236f50(0x1315)+_0x333398[_0x236f50(0x167f)]:_0x236f50(0x1e68),'msg':_0x333398[_0x236f50(0x524)]?JSON[_0x236f50(0x10bb)](_0x333398['data']['message']):_0x333398[_0x236f50(0xd5f)]()});});}function _0x2500e9(){const _0x1b931e=_0xe68102;_0x3de7d8[_0x1b931e(0xcef)]=[],_0x2713a1[_0x1b931e(0x815)][_0x1b931e(0x18e1)]({'id':_0x3de7d8[_0x1b931e(0x815)]['id']},_0x3de7d8[_0x1b931e(0x815)])['$promise'][_0x1b931e(0x146b)](function(_0xe639d3){const _0x7f9eb6=_0x1b931e,_0x11a2cd=_0x3f65c0()[_0x7f9eb6(0xc84)](_0x3de7d8[_0x7f9eb6(0x23c)],{'id':_0xe639d3['id']});_0x11a2cd&&_0x3f65c0()['merge'](_0x11a2cd,_0x3f65c0()['pick'](_0xe639d3['toJSON'](),_0x3f65c0()['keys'](_0x11a2cd))),_0x562b26[_0x7f9eb6(0x1c75)]({'title':'WhatsappAccount\x20properly\x20saved!','msg':_0x3de7d8[_0x7f9eb6(0x815)]['name']?_0x3de7d8[_0x7f9eb6(0x815)][_0x7f9eb6(0x19eb)]+_0x7f9eb6(0x24db):''}),_0x5d863c(_0xe639d3);})[_0x1b931e(0x129e)](function(_0x3922bc){const _0x3c5ffa=_0x1b931e;if(_0x3922bc[_0x3c5ffa(0x524)]&&_0x3922bc[_0x3c5ffa(0x524)][_0x3c5ffa(0xcef)]&&_0x3922bc['data'][_0x3c5ffa(0xcef)][_0x3c5ffa(0x402)]){_0x3de7d8['errors']=_0x3922bc[_0x3c5ffa(0x524)]['errors']||[{'message':_0x3922bc[_0x3c5ffa(0xd5f)](),'type':_0x3c5ffa(0x2816)}];for(let _0x4e2bc4=0x0;_0x4e2bc4<_0x3922bc[_0x3c5ffa(0x524)][_0x3c5ffa(0xcef)]['length'];_0x4e2bc4++){_0x562b26[_0x3c5ffa(0x1980)]({'title':_0x3922bc[_0x3c5ffa(0x524)][_0x3c5ffa(0xcef)][_0x4e2bc4][_0x3c5ffa(0x1142)],'msg':_0x3922bc['data']['errors'][_0x4e2bc4][_0x3c5ffa(0x7fd)]});}}else _0x562b26['error']({'title':_0x3922bc[_0x3c5ffa(0x107b)]?'API:'+_0x3922bc[_0x3c5ffa(0x107b)]+_0x3c5ffa(0x1315)+_0x3922bc[_0x3c5ffa(0x167f)]:_0x3c5ffa(0x2816),'msg':_0x3922bc['data']?JSON[_0x3c5ffa(0x10bb)](_0x3922bc[_0x3c5ffa(0x524)][_0x3c5ffa(0x7fd)]):_0x3922bc[_0x3c5ffa(0xd5f)]()});});}function _0x1bcc9f(_0x5bb4b8){const _0x198669=_0xe68102;_0x3de7d8[_0x198669(0xcef)]=[];const _0x2abdc9=_0xd81702[_0x198669(0x1e8a)]()[_0x198669(0x1189)]('Are\x20you\x20sure?')['content']('The\x20whatsappAccount\x20will\x20be\x20deleted.')[_0x198669(0x4bd)](_0x198669(0x994))['ok'](_0x198669(0x25de))['cancel'](_0x198669(0xcf0))[_0x198669(0x1f27)](_0x5bb4b8);_0xd81702[_0x198669(0x2615)](_0x2abdc9)[_0x198669(0x146b)](function(){const _0x46c6c7=_0x198669;_0x2713a1[_0x46c6c7(0x815)]['delete']({'id':_0x3de7d8[_0x46c6c7(0x815)]['id']})['$promise']['then'](function(){const _0x22d83d=_0x46c6c7;_0x3f65c0()[_0x22d83d(0x2640)](_0x3de7d8[_0x22d83d(0x23c)],{'id':_0x3de7d8[_0x22d83d(0x815)]['id']}),_0x562b26['success']({'title':'WhatsappAccount\x20properly\x20deleted!','msg':(_0x3de7d8['whatsappAccount'][_0x22d83d(0x19eb)]||_0x22d83d(0x815))+'\x20has\x20been\x20deleted!'}),_0x5d863c(_0x3de7d8[_0x22d83d(0x815)]);})[_0x46c6c7(0x129e)](function(_0x5de081){const _0x107000=_0x46c6c7;if(_0x5de081[_0x107000(0x524)]&&_0x5de081['data'][_0x107000(0xcef)]&&_0x5de081['data'][_0x107000(0xcef)][_0x107000(0x402)]){_0x3de7d8[_0x107000(0xcef)]=_0x5de081['data']['errors']||[{'message':_0x5de081[_0x107000(0xd5f)](),'type':'api.whatsappAccount.delete'}];for(let _0x34c8eb=0x0;_0x34c8eb<_0x5de081[_0x107000(0x524)][_0x107000(0xcef)]['length'];_0x34c8eb++){_0x562b26[_0x107000(0x1980)]({'title':_0x5de081[_0x107000(0x524)][_0x107000(0xcef)][_0x34c8eb][_0x107000(0x1142)],'msg':_0x5de081[_0x107000(0x524)][_0x107000(0xcef)][_0x34c8eb][_0x107000(0x7fd)]});}}else _0x562b26[_0x107000(0x1980)]({'title':_0x5de081[_0x107000(0x107b)]?_0x107000(0x262a)+_0x5de081['status']+_0x107000(0x1315)+_0x5de081[_0x107000(0x167f)]:_0x107000(0x1c0a),'msg':_0x5de081[_0x107000(0x524)]?JSON[_0x107000(0x10bb)](_0x5de081[_0x107000(0x524)]['message']):_0x5de081[_0x107000(0x7fd)]||_0x5de081[_0x107000(0xd5f)]()});});},function(){});}function _0x57d663(_0x4b0f6f){return _0x4b0f6f===null?undefined:new Date(_0x4b0f6f);}function _0x5d863c(_0x3936a1){const _0x120c83=_0xe68102;_0xd81702[_0x120c83(0x2458)](_0x3936a1);}}const _0x5d2c89=_0x46139e;;const _0x7c8bc8=_0x4acfac['p']+_0x313a4d(0x1599);;const _0x2e7ae6=_0x4acfac['p']+'src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/amazonlex/dialog.html/dialog.html';;const _0x113565=_0x4acfac['p']+'src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/autoreply/dialog.html/dialog.html';;const _0x4d85a2=_0x4acfac['p']+'src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/close/dialog.html/dialog.html';;const _0x240220=_0x4acfac['p']+_0x313a4d(0x26dd);;const _0x395f2f=_0x4acfac['p']+_0x313a4d(0x662);;const _0x2e9101=_0x4acfac['p']+_0x313a4d(0x13ed);;const _0x4244d4=_0x4acfac['p']+'src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/interval/dialog.html/dialog.html';;const _0x3f523a=_0x4acfac['p']+'src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/noop/dialog.html/dialog.html';;const _0x586392=_0x4acfac['p']+_0x313a4d(0x1141);;const _0x173b14=_0x4acfac['p']+_0x313a4d(0x2872);;const _0x3320dc=_0x4acfac['p']+_0x313a4d(0x1728);;_0x177666['$inject']=[_0x313a4d(0x247f),_0x313a4d(0x10e8),_0x313a4d(0x4d8),_0x313a4d(0x1fe4),_0x313a4d(0xa87)];const _0x23759b={'agent':_0x7c8bc8,'amazonlex':_0x2e7ae6,'autoreply':_0x113565,'close':_0x4d85a2,'dialogflow':_0x240220,'gotoif':_0x395f2f,'gotop':_0x2e9101,'interval':_0x4244d4,'noop':_0x3f523a,'queue':_0x586392,'system':_0x173b14,'tag':_0x3320dc};function _0x177666(_0x35111f,_0x326fec,_0x2aec71,_0x693f0b,_0x1029c0){const _0x4b93bc=_0x313a4d,_0x138237=this;_0x138237[_0x4b93bc(0x2321)]=_0x1029c0[_0x4b93bc(0xb12)](),_0x138237[_0x4b93bc(0x815)]={},_0x138237['whatsappAccountApps']={'count':0x0,'rows':[]},_0x138237[_0x4b93bc(0xf61)]=[],_0x138237[_0x4b93bc(0x2514)],_0x138237[_0x4b93bc(0x1a56)]={'sort':_0x4b93bc(0xa6a)},_0x138237['apps']=_0x3f65c0()[_0x4b93bc(0xa6f)](_0x3f65c0()[_0x4b93bc(0x939)]([{'app':_0x4b93bc(0x1b4e),'appType':_0x4b93bc(0x2765),'types':[_0x4b93bc(0xd85),'custom',_0x4b93bc(0x25f4)],'fields':[],'isApp':![]},{'app':_0x4b93bc(0x309),'appType':_0x4b93bc(0x309),'type':_0x4b93bc(0x309),'icon':_0x4b93bc(0x1205),'interval':'*,*,*,*','required':!![],'isApp':!![],'fields':[{'title':_0x4b93bc(0x2193),'name':_0x4b93bc(0x175d),'type':_0x4b93bc(0xa8d),'param':0x0}]},{'app':_0x4b93bc(0x1d47),'appType':_0x4b93bc(0x1d47),'type':_0x4b93bc(0x1d47),'icon':_0x4b93bc(0x1205),'interval':_0x4b93bc(0x1559),'required':!![],'isApp':!![],'extraApi':[{'name':_0x4b93bc(0x85b),'field':{'name':_0x4b93bc(0x212),'key':'name'},'route':_0x4b93bc(0x212),'filters':{'fields':_0x4b93bc(0x7a7),'sort':_0x4b93bc(0x19eb),'nolimit':!![]},'permissions':{'section':0x3f4}}],'fields':[{'title':_0x4b93bc(0x1d8b),'name':'command','type':_0x4b93bc(0xa8d),'required':!![],'param':0x0},{'title':_0x4b93bc(0x182),'name':'variable','type':_0x4b93bc(0x28c6),'values':_0x4b93bc(0x85b),'value':_0x4b93bc(0x1566),'option':'variable.name','defaultValues':[{'value':'\x27\x27','option':'None'}],'defaultValue':'\x27\x27','param':0x1}]},{'app':'gotop','appType':'gotop','type':_0x4b93bc(0x151b),'icon':_0x4b93bc(0x1205),'interval':_0x4b93bc(0x1559),'isApp':!![],'fields':[{'title':_0x4b93bc(0x23d8),'name':_0x4b93bc(0xa6a),'type':_0x4b93bc(0x181),'required':!![],'min':0x0,'param':0x0}]},{'app':_0x4b93bc(0x609),'appType':'gotoif','type':_0x4b93bc(0x609),'icon':_0x4b93bc(0x1205),'interval':_0x4b93bc(0x1559),'isApp':!![],'fields':[{'title':_0x4b93bc(0x15db),'name':_0x4b93bc(0x115f),'type':_0x4b93bc(0xa8d),'required':!![],'param':0x0},{'title':_0x4b93bc(0x1d78),'name':'truepriority','type':'number','min':0x1,'required':!![],'param':0x1},{'title':_0x4b93bc(0x28e1),'name':_0x4b93bc(0x28e1),'type':_0x4b93bc(0x181),'min':0x1,'required':!![],'param':0x2}]},{'app':_0x4b93bc(0x1c72),'appType':_0x4b93bc(0x1c72),'foreignKey':_0x4b93bc(0x469),'type':_0x4b93bc(0x1c72),'icon':_0x4b93bc(0x1205),'interval':_0x4b93bc(0x1559),'isApp':!![],'extraApi':[{'name':_0x4b93bc(0x1b32),'field':{'name':_0x4b93bc(0x1c72),'key':'name'},'route':_0x4b93bc(0x1b3b),'filters':{'fields':_0x4b93bc(0x45e),'sort':_0x4b93bc(0x19eb),'nolimit':!![]},'permissions':{'section':0x836}}],'fields':[{'title':_0x4b93bc(0xe26),'name':_0x4b93bc(0x1c72),'type':_0x4b93bc(0x28c6),'values':'queues','value':_0x4b93bc(0x15b0),'option':'queue.name','defaultValue':0x12c,'required':!![],'param':0x0},{'title':_0x4b93bc(0x5cc),'name':_0x4b93bc(0xa9c),'type':_0x4b93bc(0x181),'max':0x20c49b,'min':0x0,'required':!![],'defaultValue':0x12c,'param':0x1}]},{'app':_0x4b93bc(0x1755),'appType':_0x4b93bc(0x1755),'type':'agent','foreignKey':_0x4b93bc(0xea2),'icon':'icon-apps','interval':_0x4b93bc(0x1559),'isApp':!![],'extraApi':[{'name':_0x4b93bc(0x23c0),'field':{'name':_0x4b93bc(0x1755),'key':_0x4b93bc(0x19eb)},'route':_0x4b93bc(0xe7b),'filters':{'fields':_0x4b93bc(0x7a7),'sort':_0x4b93bc(0x19eb),'nolimit':!![],'role':_0x4b93bc(0x1755)},'permissions':{'section':0xca}}],'fields':[{'title':'Agent','name':'agent','type':_0x4b93bc(0x28c6),'values':'agents','value':_0x4b93bc(0x264f),'option':_0x4b93bc(0x264f),'required':!![],'param':0x0},{'title':_0x4b93bc(0x5cc),'name':'timeout','type':'number','max':0x20c49b,'min':0x0,'required':!![],'defaultValue':0x1e,'param':0x1}]},{'app':'autoreply','appType':_0x4b93bc(0x1713),'type':'autoreply','icon':_0x4b93bc(0x1205),'interval':_0x4b93bc(0x1559),'isApp':!![],'fields':[{'title':_0x4b93bc(0x583),'name':_0x4b93bc(0x583),'type':_0x4b93bc(0xa5f),'defaultValue':'1','values':[{'option':_0x4b93bc(0x1d98),'value':'1'},{'option':_0x4b93bc(0x132f),'value':'0'}],'required':!![],'param':0x0},{'title':_0x4b93bc(0x23d7),'name':'text','type':_0x4b93bc(0x2350),'required':!![],'param':0x1}]},{'app':_0x4b93bc(0xa7c),'appType':'close','type':_0x4b93bc(0xa7c),'icon':'icon-apps','interval':_0x4b93bc(0x1559),'isApp':!![],'fields':[{'title':_0x4b93bc(0x673),'name':_0x4b93bc(0x9e1),'type':_0x4b93bc(0xa8d),'required':!![],'param':0x0}]},{'app':_0x4b93bc(0xa80),'appType':'tag','type':_0x4b93bc(0xa80),'foreignKey':_0x4b93bc(0xb0a),'icon':'icon-apps','interval':_0x4b93bc(0x1559),'isApp':!![],'extraApi':[{'name':_0x4b93bc(0x1b86),'field':{'name':_0x4b93bc(0xa80),'key':_0x4b93bc(0x19eb)},'route':'tag','filters':{'fields':'id,name','sort':_0x4b93bc(0x19eb),'nolimit':!![]},'permissions':{'section':0x3f0}}],'fields':[{'title':'Tag','name':_0x4b93bc(0xa80),'type':'apiselect','values':_0x4b93bc(0x1b86),'value':_0x4b93bc(0x1a96),'option':_0x4b93bc(0x1a96),'required':!![],'param':0x0}]},{'app':_0x4b93bc(0xeaa),'appType':'dialogflow','type':_0x4b93bc(0xeaa),'icon':_0x4b93bc(0x1205),'interval':_0x4b93bc(0x1559),'isApp':!![],'fields':[{'title':_0x4b93bc(0x16b7),'name':_0x4b93bc(0x2293),'type':_0x4b93bc(0xa8d),'required':!![],'param':0x0},{'title':_0x4b93bc(0x90b),'name':_0x4b93bc(0x90b),'type':_0x4b93bc(0xa5f),'defaultValue':_0x4b93bc(0x2383),'values':[{'option':_0x4b93bc(0x3d5),'value':'\x27da\x27'},{'option':_0x4b93bc(0x1ce8),'value':'\x27en\x27'},{'option':_0x4b93bc(0x592),'value':_0x4b93bc(0x1491)},{'option':'Italian','value':_0x4b93bc(0x9f9)},{'option':_0x4b93bc(0xae7),'value':_0x4b93bc(0x2374)},{'option':_0x4b93bc(0x12ea),'value':_0x4b93bc(0xbe9)},{'option':_0x4b93bc(0x12f),'value':_0x4b93bc(0x27ee)},{'option':_0x4b93bc(0xf90),'value':'\x27ja\x27'},{'option':_0x4b93bc(0x11cd),'value':_0x4b93bc(0x1df9)},{'option':'Dutch','value':_0x4b93bc(0x7ae)},{'option':_0x4b93bc(0xcb4),'value':_0x4b93bc(0x74f)},{'option':_0x4b93bc(0x119b),'value':'\x27pt\x27'},{'option':_0x4b93bc(0x1e34),'value':_0x4b93bc(0x1505)},{'option':_0x4b93bc(0x25d4),'value':_0x4b93bc(0x18d0)},{'option':'Swedish','value':_0x4b93bc(0x1717)},{'option':_0x4b93bc(0x1449),'value':_0x4b93bc(0x136c)},{'option':'Ukrainian','value':_0x4b93bc(0x289e)},{'option':_0x4b93bc(0x8d3),'value':_0x4b93bc(0x16cc)},{'option':_0x4b93bc(0x1f35),'value':_0x4b93bc(0x1a86)},{'option':'Chinese\x20(Traditional)','value':_0x4b93bc(0x1ca7)}],'required':!![],'param':0x1},{'title':_0x4b93bc(0xaf3),'name':_0x4b93bc(0xaf3),'type':'textarea','maxlength':0xff,'required':![],'param':0x2,'help':!![]}]},{'app':_0x4b93bc(0x9bb),'appType':'dialogflowv2','type':_0x4b93bc(0xa46),'icon':'icon-apps','interval':'*,*,*,*','isApp':!![],'fields':[{'title':_0x4b93bc(0x1bdb),'name':_0x4b93bc(0x153a),'type':_0x4b93bc(0xa8d),'required':!![],'param':0x0},{'title':_0x4b93bc(0x4ff),'name':_0x4b93bc(0x1392),'type':_0x4b93bc(0xa8d),'required':!![],'param':0x1},{'title':_0x4b93bc(0x1590),'name':'privateKey','type':_0x4b93bc(0x2350),'required':!![],'param':0x2},{'title':'language','name':'language','type':'select','defaultValue':'\x27en\x27','values':[{'value':_0x4b93bc(0x1a86),'option':_0x4b93bc(0x196f)},{'value':'\x27zh-CN\x27','option':_0x4b93bc(0x8d3)},{'value':_0x4b93bc(0x1ca7),'option':'Chinese\x20(Traditional)'},{'value':_0x4b93bc(0x17c9),'option':_0x4b93bc(0x3d5)},{'value':_0x4b93bc(0x7ae),'option':_0x4b93bc(0x1d32)},{'value':_0x4b93bc(0x2383),'option':_0x4b93bc(0x1ce8)},{'value':_0x4b93bc(0x17ee),'option':_0x4b93bc(0x24ea)},{'value':_0x4b93bc(0x3a0),'option':_0x4b93bc(0x425)},{'value':'\x27en-GB\x27','option':_0x4b93bc(0x3c9)},{'value':_0x4b93bc(0x2171),'option':'English\x20(India)'},{'value':_0x4b93bc(0x1d0f),'option':_0x4b93bc(0x4e8)},{'value':_0x4b93bc(0xbe9),'option':_0x4b93bc(0x12ea)},{'value':_0x4b93bc(0x135b),'option':_0x4b93bc(0x3e1)},{'value':_0x4b93bc(0x1906),'option':_0x4b93bc(0x1c51)},{'value':_0x4b93bc(0x1491),'option':_0x4b93bc(0x592)},{'value':_0x4b93bc(0x16b3),'option':_0x4b93bc(0x28c1)},{'value':'\x27id\x27','option':_0x4b93bc(0x12f)},{'value':'\x27it\x27','option':_0x4b93bc(0x98f)},{'value':_0x4b93bc(0x27d7),'option':_0x4b93bc(0xf90)},{'value':_0x4b93bc(0x1df9),'option':_0x4b93bc(0x1dc)},{'value':_0x4b93bc(0x74f),'option':_0x4b93bc(0xcb4)},{'value':_0x4b93bc(0x3f1),'option':_0x4b93bc(0xe06)},{'value':_0x4b93bc(0x211e),'option':_0x4b93bc(0x1aaf)},{'value':_0x4b93bc(0xe6d),'option':'Portuguese\x20(Portugal)'},{'value':_0x4b93bc(0x18d0),'option':_0x4b93bc(0x25d4)},{'value':'\x27es\x27','option':_0x4b93bc(0xae7)},{'value':_0x4b93bc(0x1bb6),'option':_0x4b93bc(0x12c9)},{'value':_0x4b93bc(0x1370),'option':'Spanish\x20(Spain)'},{'value':_0x4b93bc(0x752),'option':_0x4b93bc(0x2081)},{'value':_0x4b93bc(0x136c),'option':_0x4b93bc(0x1449)},{'value':'\x27tr\x27','option':'Turkish'},{'value':'\x27uk\x27','option':_0x4b93bc(0x13bf)}],'required':!![],'param':0x3},{'title':'welcomemessage','name':_0x4b93bc(0xaf3),'type':_0x4b93bc(0x2350),'maxlength':0xff,'param':0x4,'help':!![]}]},{'app':_0x4b93bc(0x17d6),'appType':'amazonlex','type':_0x4b93bc(0x17d6),'icon':_0x4b93bc(0x1205),'interval':_0x4b93bc(0x1559),'isApp':!![],'fields':[{'title':_0x4b93bc(0x1651),'name':_0x4b93bc(0x1651),'type':'text','required':!![],'param':0x0},{'title':_0x4b93bc(0x252),'name':_0x4b93bc(0x252),'type':_0x4b93bc(0xa8d),'required':!![],'param':0x1},{'title':_0x4b93bc(0x1039),'name':_0x4b93bc(0x1039),'type':'select','defaultValue':_0x4b93bc(0x2947),'values':[{'option':_0x4b93bc(0x18e2),'value':_0x4b93bc(0x2947)},{'option':'US\x20West\x20(Oregon)','value':_0x4b93bc(0x22fd)},{'option':_0x4b93bc(0x6a8),'value':_0x4b93bc(0x2940)},{'option':'Asia\x20Pacific\x20(Sydney)','value':_0x4b93bc(0x304)}],'required':!![],'param':0x2},{'title':'botname','name':_0x4b93bc(0x8dd),'type':_0x4b93bc(0xa8d),'required':!![],'param':0x3},{'title':_0x4b93bc(0xaf3),'name':_0x4b93bc(0xaf3),'type':_0x4b93bc(0x2350),'maxlength':0xff,'required':![],'param':0x4,'help':!![]}]}],[_0x4b93bc(0x1873)]),{'isApp':![]}),_0x138237[_0x4b93bc(0x25f4)]={'group':{'name':_0x4b93bc(0x156c),'pull':_0x4b93bc(0x12cc)},'animation':0x64,'sort':![]},_0x138237['applications']={'group':{'name':'opt2','put':_0x4b93bc(0x156c)},'animation':0x64,'onAdd':function(_0x4ca004){const _0x56db8a=_0x4b93bc;_0x19877b(_0x4ca004,_0x4ca004[_0x56db8a(0x154d)]);},'onSort':function(){_0x5f2bff();}},_0x138237[_0x4b93bc(0x5aa)]=_0x45e96a,_0x138237[_0x4b93bc(0x19b4)]=_0x5636e7,_0x138237[_0x4b93bc(0x522)]=_0x43dd85,_0x138237['editWhatsappAccountApp']=_0x19877b,_0x138237[_0x4b93bc(0x285b)]=_0x3de058,_0x138237[_0x4b93bc(0x25b4)]=_0xab06e,_0x138237[_0x4b93bc(0x13b8)]=_0x33a2de,_0x138237[_0x4b93bc(0x1450)]=_0x5f2bff,_0x138237[_0x4b93bc(0x1c1c)]=_0x373100;function _0x45e96a(_0x31de28,_0x296938){const _0x1e7344=_0x4b93bc;_0x138237[_0x1e7344(0x815)]=_0x31de28,_0x138237[_0x1e7344(0x2514)]=typeof _0x296938!==_0x1e7344(0x2274)?_0x296938:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x138237[_0x1e7344(0x25fc)][_0x1e7344(0x2862)]=!_0x138237[_0x1e7344(0x2514)]['canEdit']?!![]:![],_0x138237['query']['id']=_0x31de28['id'],_0x138237[_0x1e7344(0x1a56)][_0x1e7344(0x16f6)]=!![],_0x138237['query'][_0x1e7344(0x6c5)]=!![],_0x138237[_0x1e7344(0x522)](),_0x138237[_0x1e7344(0x1c1c)]();}function _0x5636e7(_0x10468a,_0x55222c,_0x580cea){const _0xac1763=_0x4b93bc,_0x76d7f9=_0x326fec[_0xac1763(0x1e8a)]()[_0xac1763(0x1189)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20application?')['htmlContent'](_0xac1763(0x16d3)+_0x10468a[_0xac1763(0x1873)]+_0xac1763(0x252f)+_0xac1763(0xe01))[_0xac1763(0x4bd)](_0xac1763(0x847))[_0xac1763(0x1f27)](_0x580cea)['ok']('OK')[_0xac1763(0x6c3)](_0xac1763(0x39a));_0x326fec[_0xac1763(0x2615)](_0x76d7f9)[_0xac1763(0x146b)](function(){const _0x217a11=_0xac1763;_0x138237['whatsappAccountApps'][_0x217a11(0x19c7)][_0x217a11(0x1f7d)](_0x55222c,0x1),_0x5f2bff();},function(){const _0x31cb81=_0xac1763;console[_0x31cb81(0x1a74)](_0x31cb81(0x39a));});}function _0x19877b(_0x366634,_0x1c5917){const _0x7ce3ef=_0x4b93bc;if(_0x138237[_0x7ce3ef(0x437)][_0x7ce3ef(0x19c7)]['length']){const _0x1f4003=_0x138237[_0x7ce3ef(0x437)][_0x7ce3ef(0x19c7)][_0x1c5917]?_0x138237['whatsappAccountApps'][_0x7ce3ef(0x19c7)][_0x1c5917]:_0x138237[_0x7ce3ef(0x437)]['rows'][0x0],_0xf6ad20=(_0x1f4003['appType']||_0x1f4003['app'])[_0x7ce3ef(0x256e)]();_0x326fec[_0x7ce3ef(0x2615)]({'controller':'EditWhatsappAccountApp'+_0xf6ad20+_0x7ce3ef(0x76a),'controllerAs':'vm','templateUrl':_0x23759b[_0xf6ad20],'parent':angular[_0x7ce3ef(0x1853)](_0x2aec71[_0x7ce3ef(0x2586)]),'targetEvent':_0x366634,'clickOutsideToClose':!![],'locals':{'whatsappAccountApp':_0x1f4003,'whatsappAccount':_0x138237[_0x7ce3ef(0x815)],'crudPermissions':_0x138237[_0x7ce3ef(0x2514)]}})[_0x7ce3ef(0x146b)](function(_0x39a4d7){const _0x13f4c2=_0x7ce3ef;_0x39a4d7&&(_0x39a4d7['id']?_0x138237[_0x13f4c2(0x437)][_0x13f4c2(0x19c7)][_0x1c5917]=_0x39a4d7:_0x138237[_0x13f4c2(0x437)][_0x13f4c2(0x19c7)]['splice'](_0x1c5917,0x0,_0x39a4d7),_0x5f2bff());})[_0x7ce3ef(0x129e)](function(_0x1d9456){const _0x5791b5=_0x7ce3ef;_0x1d9456&&_0x693f0b[_0x5791b5(0x1980)]({'title':_0x1d9456['status']?'API:'+_0x1d9456[_0x5791b5(0x107b)]+'\x20-\x20'+_0x1d9456[_0x5791b5(0x167f)]:_0x5791b5(0x10a0),'msg':_0x1d9456[_0x5791b5(0x524)]?JSON['stringify'](_0x1d9456[_0x5791b5(0x524)]):_0x1d9456['toString']()});});}}function _0x3de058(_0x485a54,_0x1b6370){const _0x7bf2b6=_0x4b93bc;if(_0x138237[_0x7bf2b6(0x437)][_0x7bf2b6(0x19c7)]['length']){const _0x4e44c8=_0x138237[_0x7bf2b6(0x437)][_0x7bf2b6(0x19c7)][_0x1b6370]?_0x138237['whatsappAccountApps'][_0x7bf2b6(0x19c7)][_0x1b6370]:_0x138237[_0x7bf2b6(0x437)][_0x7bf2b6(0x19c7)][0x0];_0x326fec[_0x7bf2b6(0x2615)]({'controller':_0x7bf2b6(0x1fad),'controllerAs':'vm','templateUrl':_0x4244d4,'parent':angular[_0x7bf2b6(0x1853)](_0x2aec71['body']),'targetEvent':_0x485a54,'clickOutsideToClose':!![],'locals':{'interval':{'interval':_0x4e44c8[_0x7bf2b6(0x2765)],'IntervalId':_0x4e44c8['IntervalId'],'application':!![]},'intervals':[],'crudPermissions':_0x138237['crudPermissions']}})['then'](function(_0x441359){const _0x5ca74c=_0x7bf2b6;_0x441359&&(_0x4e44c8[_0x5ca74c(0x2765)]=_0x441359['interval']||_0x5ca74c(0x1559),_0x4e44c8['IntervalId']=_0x441359[_0x5ca74c(0x1ff2)]||null,_0x5f2bff());});}}function _0x5f2bff(){const _0x12f6af=_0x4b93bc;let _0x3c6d90=0x1,_0x11a538=[];for(let _0x582885=0x0;_0x582885<_0x138237['whatsappAccountApps'][_0x12f6af(0x19c7)]['length'];_0x582885++){const _0x21742c=_0x138237[_0x12f6af(0x437)][_0x12f6af(0x19c7)][_0x582885],_0x5088f1=[],_0x3019df=[];_0x21742c[_0x12f6af(0x278f)]=_0x21742c['interval']!==_0x12f6af(0x1559)?[_0x21742c['interval']]:_0x21742c[_0x12f6af(0x1ff2)]?_0x3f65c0()['map'](_0x3f65c0()[_0x12f6af(0x1dd6)](_0x138237[_0x12f6af(0x278f)][_0x12f6af(0x19c7)],{'IntervalId':_0x21742c[_0x12f6af(0x1ff2)]}),_0x12f6af(0x2765)):[],_0x21742c[_0x12f6af(0x1ac1)]=_0x138237[_0x12f6af(0x815)]['context'],_0x21742c[_0x12f6af(0x19b2)]=_0x138237[_0x12f6af(0x815)]['exten'],_0x21742c[_0x12f6af(0x1142)]&&(_0x21742c[_0x12f6af(0x1142)]=_0x21742c['type'][_0x12f6af(0x256e)]()),_0x21742c[_0x12f6af(0xa6a)]=_0x5088f1['length']?_0x3f65c0()[_0x12f6af(0x22f2)](_0x5088f1)[_0x12f6af(0xa6a)]+0x1:_0x3c6d90,_0x3c6d90=(_0x3019df[_0x12f6af(0x402)]?_0x3f65c0()[_0x12f6af(0x22f2)](_0x3019df)[_0x12f6af(0xa6a)]:_0x21742c[_0x12f6af(0xa6a)])+0x1,_0x11a538=_0x3f65c0()['concat'](_0x11a538,_0x5088f1,[_0x21742c],_0x3019df);}_0x35111f['whatsappAccount'][_0x12f6af(0x1711)]({'id':_0x138237[_0x12f6af(0x815)]['id']},_0x3f65c0()[_0x12f6af(0x939)](_0x11a538,_0x12f6af(0xa6a)))[_0x12f6af(0x2945)]['then'](function(_0x18cd5a){const _0x4ba4b9=_0x12f6af;_0x138237[_0x4ba4b9(0x437)][_0x4ba4b9(0x19c7)]=_0x18cd5a[_0x4ba4b9(0x19c7)];})['catch'](function(_0x592723){const _0x1bc173=_0x12f6af;console[_0x1bc173(0x1980)](_0x592723);});}function _0x5863af(_0x2281ca){const _0x3fd09c=_0x4b93bc;_0x138237[_0x3fd09c(0x437)]=_0x2281ca||{'count':0x0,'rows':[]};}function _0x373100(){const _0x116e5e=_0x4b93bc;return _0x35111f[_0x116e5e(0x2765)]['get']({'fields':_0x116e5e(0x2749)})['$promise']['then'](function(_0x4d7d2b){_0x138237['intervals']=_0x4d7d2b;})[_0x116e5e(0x129e)](function(_0x8d083a){const _0x96b442=_0x116e5e;console[_0x96b442(0x1980)](_0x8d083a);});}function _0x43dd85(){const _0x72169c=_0x4b93bc;_0x138237[_0x72169c(0xb9c)]=_0x35111f['whatsappAccount'][_0x72169c(0x261b)](_0x138237['query'],_0x5863af)['$promise'];}function _0xab06e(_0x51e6ce){const _0x5094ed=_0x4b93bc;_0x3f65c0()[_0x5094ed(0x2640)](_0x138237['whatsappAccountApps'][_0x5094ed(0x19c7)],{'id':_0x51e6ce['id']}),_0x5f2bff(),_0x693f0b[_0x5094ed(0x1c75)]({'title':_0x5094ed(0x1c3a),'msg':_0x51e6ce[_0x5094ed(0x1873)]?_0x51e6ce[_0x5094ed(0x1873)]+_0x5094ed(0x23e3):''});}function _0x33a2de(_0x14bc4c){const _0x5ce6bb=_0x4b93bc,_0x4e3ecf=_0x326fec[_0x5ce6bb(0x1e8a)]()['title'](_0x5ce6bb(0x1d9f))['htmlContent'](_0x5ce6bb(0x16d3)+_0x138237[_0x5ce6bb(0xf61)][_0x5ce6bb(0x402)]+_0x5ce6bb(0x2452)+_0x5ce6bb(0xe01))['ariaLabel'](_0x5ce6bb(0x2674))[_0x5ce6bb(0x1f27)](_0x14bc4c)['ok']('OK')[_0x5ce6bb(0x6c3)](_0x5ce6bb(0x39a));_0x326fec[_0x5ce6bb(0x2615)](_0x4e3ecf)[_0x5ce6bb(0x146b)](function(){const _0x479d5e=_0x5ce6bb;_0x138237['selectedWhatsappAccountApps'][_0x479d5e(0x1df5)](function(_0x17741e){const _0x415e2e=_0x479d5e;_0x3f65c0()[_0x415e2e(0x2640)](_0x138237[_0x415e2e(0x437)][_0x415e2e(0x19c7)],{'id':_0x17741e['id']});}),_0x138237[_0x479d5e(0xf61)]=[],_0x5f2bff();});}}const _0x4c8e05=_0x177666;;_0x40149c[_0x313a4d(0x11c2)]=['$mdDialog','$q','toasty',_0x313a4d(0x247f),_0x313a4d(0x815),_0x313a4d(0x23c),_0x313a4d(0xfc4),_0x313a4d(0x214b),'Auth',_0x313a4d(0x2514)];function _0x40149c(_0x47de46,_0x5e9b4d,_0x42777b,_0x2141b6,_0xd3889d,_0x36aece,_0x117e9e,_0x2e93e8,_0x27c4ce,_0x5cd51e){const _0x453612=_0x313a4d,_0x5053a7=this;_0x5053a7['currentUser']=_0x27c4ce['getCurrentUser'](),_0x5053a7[_0x453612(0x815)]=_0xd3889d,_0x5053a7[_0x453612(0x2514)]=_0x5cd51e,_0x5053a7[_0x453612(0xfc4)]=_0x117e9e,_0x5053a7[_0x453612(0x1fd6)]=[],_0x5053a7['allowedItems']=[],_0x5053a7[_0x453612(0x1ecf)]=[],_0x5053a7[_0x453612(0x2e8)]=[],_0x5053a7['startingSelectedItems']=[],_0x5053a7[_0x453612(0x132)]=![],_0x5053a7[_0x453612(0x3d4)]=_0x5a42fe,_0x5053a7[_0x453612(0x14c2)]=_0x552ca8,_0x5053a7[_0x453612(0x13f3)]=_0x19ba55,_0x5053a7[_0x453612(0x1f8a)]={'readOnly':!_0x5053a7[_0x453612(0x2514)]['canEdit'],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x453612(0x19eb),'line1':_0x453612(0x286a),'line2':[_0x453612(0x19eb),_0x453612(0x113f)],'line3':'','labelAll':_0x2e93e8[_0x453612(0xde)]('APP.ALL_AGENTS'),'labelSelected':_0x2e93e8['instant'](_0x453612(0xf73)),'transferCallback':function(){const _0x21575f=_0x453612,_0xdb491b=_0x3f65c0()[_0x21575f(0x1883)](_0x5053a7[_0x21575f(0xa65)],_0x5053a7['selectedItems'],'id');_0x5053a7[_0x21575f(0x132)]=_0x3f65c0()['isEmpty'](_0xdb491b)?![]:!![];}};function _0x5a42fe(){const _0x16fe78=_0x453612;return _0x27c4ce[_0x16fe78(0x23e0)](_0x16fe78(0x174b))?_0x36828a()[_0x16fe78(0x129e)](function(_0xbb2d4a){const _0x1bdb27=_0x16fe78;_0x42777b[_0x1bdb27(0x1980)]({'title':_0xbb2d4a['status']?_0x1bdb27(0x262a)+_0xbb2d4a[_0x1bdb27(0x107b)]+_0x1bdb27(0x1315)+_0xbb2d4a[_0x1bdb27(0x167f)]:_0x1bdb27(0x557),'msg':_0xbb2d4a[_0x1bdb27(0x107b)]?JSON[_0x1bdb27(0x10bb)](_0xbb2d4a[_0x1bdb27(0x524)]):_0xbb2d4a[_0x1bdb27(0xd5f)]()});}):_0x20d9e9()[_0x16fe78(0x146b)](function(_0x24a9b7){const _0x3983d3=_0x16fe78;return _0x5053a7[_0x3983d3(0x2146)]=_0x24a9b7,_0x36828a();})[_0x16fe78(0x129e)](function(_0x38e617){const _0x108089=_0x16fe78;_0x42777b[_0x108089(0x1980)]({'title':_0x38e617[_0x108089(0x107b)]?_0x108089(0x262a)+_0x38e617[_0x108089(0x107b)]+_0x108089(0x1315)+_0x38e617['statusText']:_0x108089(0x557),'msg':_0x38e617[_0x108089(0x107b)]?JSON['stringify'](_0x38e617[_0x108089(0x524)]):_0x38e617[_0x108089(0xd5f)]()});});}function _0x20d9e9(){return _0x5e9b4d(function(_0x317b2e,_0x2a21f1){const _0x243eb1=a0_0x3bb9;_0x2141b6[_0x243eb1(0x1366)][_0x243eb1(0x16b4)]({'userProfileId':_0x5053a7[_0x243eb1(0x2321)]['userProfileId'],'name':_0x243eb1(0xca8)})[_0x243eb1(0x2945)][_0x243eb1(0x146b)](function(_0x12978c){const _0x48ed97=_0x243eb1,_0x6b4eb1=_0x12978c&&_0x12978c[_0x48ed97(0x19c7)]?_0x12978c[_0x48ed97(0x19c7)][0x0]:null;_0x317b2e(_0x6b4eb1);})[_0x243eb1(0x129e)](function(_0x4f89e5){_0x2a21f1(_0x4f89e5);});});}function _0x36828a(){return _0x5e9b4d(function(_0x1e57e9,_0x495586){const _0x326a18=a0_0x3bb9;return _0x1edf9a()[_0x326a18(0x146b)](function(_0x4492b8){const _0x20a376=_0x326a18;return _0x5053a7['items']=_0x4492b8[_0x20a376(0x19c7)]?_0x4492b8[_0x20a376(0x19c7)]:[],_0x27c4ce[_0x20a376(0x23e0)](_0x20a376(0x174b))?_0x4492b8:_0x5053a7[_0x20a376(0x2146)]?_0x5053a7[_0x20a376(0x2146)][_0x20a376(0x11d2)]?_0x4492b8:_0x533e44():null;})['then'](function(_0x38fce8){const _0x3d0f56=_0x326a18,_0x4c9d6f=_0x38fce8&&_0x38fce8[_0x3d0f56(0x19c7)]?_0x38fce8[_0x3d0f56(0x19c7)]:[];return _0x5053a7[_0x3d0f56(0xc4e)]=_0x3f65c0()[_0x3d0f56(0x205)](_0x4c9d6f,function(_0x3a1f77){const _0x2bef39=_0x3d0f56;return _0x3f65c0()[_0x2bef39(0xc84)](_0x5053a7[_0x2bef39(0x1fd6)],{'id':_0x27c4ce[_0x2bef39(0x23e0)]('admin')||_0x5053a7[_0x2bef39(0x2146)]['autoAssociation']?_0x3a1f77['id']:_0x3a1f77[_0x2bef39(0x18b8)]});}),_0x5053a7[_0x3d0f56(0x2e8)]=angular[_0x3d0f56(0x235a)](_0x5053a7[_0x3d0f56(0xc4e)]),_0x5053a7['items'][_0x3d0f56(0x1df5)](function(_0x2bc294){const _0x142f79=_0x3d0f56,_0x423125=_0x3f65c0()[_0x142f79(0xc84)](_0x5053a7['allowedItems'],{'id':_0x2bc294['id']});_0x27c4ce[_0x142f79(0x23e0)]('admin')?_0x2bc294['isValid']=!![]:_0x2bc294['isValid']=typeof _0x423125!==_0x142f79(0x2274)?!![]:![];}),_0x33ae99();})[_0x326a18(0x146b)](function(_0x3f30f3){const _0x3db21d=_0x326a18,_0x1aa083=_0x3f30f3&&_0x3f30f3[_0x3db21d(0x19c7)]?_0x3f30f3[_0x3db21d(0x19c7)]:[];_0x5053a7['selectedItems']=_0x3f65c0()[_0x3db21d(0x205)](_0x1aa083,function(_0x1aa49c){const _0x507f59=_0x3db21d,_0x413cf3=_0x3f65c0()[_0x507f59(0xc84)](_0x5053a7[_0x507f59(0x1fd6)],{'id':_0x1aa49c['id']});return _0x413cf3[_0x507f59(0x188d)]=_0x1aa49c['UserWhatsappAccount']?_0x507f59(0x2505)+_0x1aa49c['UserWhatsappAccount'][_0x507f59(0x188d)]:'',_0x413cf3[_0x507f59(0x113f)]=typeof _0x1aa49c['internal']!=='undefined'?'<'+_0x1aa49c['internal']+'>':'',_0x413cf3;}),_0x5053a7[_0x3db21d(0xa65)]=angular[_0x3db21d(0x235a)](_0x5053a7[_0x3db21d(0x1ecf)]),_0x5053a7['dualMultiselectOptions'][_0x3db21d(0x1ecf)]=_0x5053a7[_0x3db21d(0x1ecf)],_0x5053a7[_0x3db21d(0x1f8a)][_0x3db21d(0x1fd6)]=_0x3f65c0()[_0x3db21d(0x2796)](_0x5053a7[_0x3db21d(0xc4e)],_0x5053a7[_0x3db21d(0x1f8a)][_0x3db21d(0x1ecf)],'id'),_0x1e57e9();})[_0x326a18(0x129e)](function(_0x453028){_0x495586(_0x453028);});});}function _0x533e44(){return _0x5e9b4d(function(_0x4cbb70,_0x7cd6fb){const _0x30c299=a0_0x3bb9;return _0x2141b6[_0x30c299(0xdcc)]['get']({'sectionId':_0x5053a7[_0x30c299(0x2146)]['id'],'nolimit':!![]})[_0x30c299(0x2945)]['then'](function(_0x3d87ab){_0x4cbb70(_0x3d87ab);})['catch'](function(_0x3c88a2){_0x7cd6fb(_0x3c88a2);});});}function _0x33ae99(){return _0x5e9b4d(function(_0x2672f3,_0x1279de){const _0x4cccb1=a0_0x3bb9;return _0x2141b6[_0x4cccb1(0x815)][_0x4cccb1(0x333)]({'id':_0x5053a7[_0x4cccb1(0x815)]['id'],'fields':'id,name,internal,fullname','nolimit':!![],'role':_0x4cccb1(0x1755)})[_0x4cccb1(0x2945)][_0x4cccb1(0x146b)](function(_0x30d827){_0x2672f3(_0x30d827);})['catch'](function(_0x951d7b){_0x1279de(_0x951d7b);});});}function _0x1edf9a(){return _0x5e9b4d(function(_0x1ff168,_0x5d2952){const _0x287c76=a0_0x3bb9;return _0x2141b6[_0x287c76(0xe7b)]['get']({'fields':_0x287c76(0x1569),'nolimit':!![],'role':'agent'})[_0x287c76(0x2945)][_0x287c76(0x146b)](function(_0x4e2c5e){_0x1ff168(_0x4e2c5e);})['catch'](function(_0x5eff4b){_0x5d2952(_0x5eff4b);});});}function _0x580a6a(_0x4a8c90){return _0x5e9b4d(function(_0x292f2e,_0x53740f){const _0x4e555d=a0_0x3bb9;_0x3f65c0()['isEmpty'](_0x4a8c90)?_0x292f2e():_0x2141b6['whatsappAccount'][_0x4e555d(0x135e)]({'id':_0x5053a7['whatsappAccount']['id'],'ids':_0x3f65c0()[_0x4e555d(0x205)](_0x4a8c90,'id')})[_0x4e555d(0x2945)]['then'](function(){_0x292f2e();})[_0x4e555d(0x129e)](function(_0x2f513a){_0x53740f(_0x2f513a);});});}function _0x4dfb23(_0x2ef0bd){return _0x5e9b4d(function(_0x55fd1b,_0x3d7e98){const _0x212887=a0_0x3bb9;_0x3f65c0()[_0x212887(0x2635)](_0x2ef0bd)?_0x55fd1b():_0x2141b6['whatsappAccount'][_0x212887(0x1f53)]({'id':_0x5053a7[_0x212887(0x815)]['id'],'ids':_0x3f65c0()[_0x212887(0x205)](_0x2ef0bd,'id')})['$promise'][_0x212887(0x146b)](function(){_0x55fd1b();})['catch'](function(_0x5e0a59){_0x3d7e98(_0x5e0a59);});});}function _0x552ca8(){const _0x511bc7=_0x453612,_0x36c629=_0x3f65c0()[_0x511bc7(0x2796)](_0x5053a7['startingSelectedItems'],_0x5053a7[_0x511bc7(0x1ecf)],'id'),_0x9601c3=_0x3f65c0()[_0x511bc7(0x2796)](_0x5053a7[_0x511bc7(0x1ecf)],_0x5053a7[_0x511bc7(0xa65)],'id');return _0x4dfb23(_0x36c629)[_0x511bc7(0x146b)](function(){return _0x580a6a(_0x9601c3);})['then'](function(){const _0x1a82df=_0x511bc7;_0x5053a7[_0x1a82df(0x132)]=![],_0x5053a7['startingAllowedItems']=angular['copy'](_0x5053a7['allowedItems']),_0x5053a7[_0x1a82df(0xa65)]=angular[_0x1a82df(0x235a)](_0x5053a7['selectedItems']),_0x42777b[_0x1a82df(0x1c75)]({'title':_0x1a82df(0x4c0),'msg':_0x1a82df(0x26be)});})[_0x511bc7(0x129e)](function(_0x45a9d2){const _0x19f6d4=_0x511bc7;_0x42777b[_0x19f6d4(0x1980)]({'title':_0x45a9d2[_0x19f6d4(0x107b)]?'API:'+_0x45a9d2['status']+_0x19f6d4(0x1315)+_0x45a9d2[_0x19f6d4(0x167f)]:'SYSTEM:LISTS_ASSOCIATION','msg':_0x45a9d2[_0x19f6d4(0x107b)]?JSON[_0x19f6d4(0x10bb)](_0x45a9d2[_0x19f6d4(0x524)]):_0x45a9d2[_0x19f6d4(0xd5f)]()});});}function _0x19ba55(){const _0x22909e=_0x453612;_0x47de46[_0x22909e(0x2458)]();}}const _0x5e79c8=_0x40149c;;_0x579e88[_0x313a4d(0x11c2)]=[_0x313a4d(0x10e8),'$q',_0x313a4d(0x1fe4),'whatsappAccountApp',_0x313a4d(0x815),_0x313a4d(0x247f),_0x313a4d(0xa87),_0x313a4d(0x2514)];function _0x579e88(_0x1e8f1d,_0x36a856,_0x3342eb,_0x2cba47,_0x1da26e,_0x23cc64,_0x976879,_0x1f35ed){const _0xfd268b=_0x313a4d,_0x2d8588=this;_0x2d8588[_0xfd268b(0x2321)]=_0x976879['getCurrentUser'](),_0x2d8588['errors']=[],_0x2d8588[_0xfd268b(0x1189)]=_0xfd268b(0x1955)+(_0x2cba47[_0xfd268b(0x8f2)]||_0x2cba47[_0xfd268b(0x1873)])['toUpperCase'](),_0x2d8588[_0xfd268b(0x1755)]=angular[_0xfd268b(0x235a)](_0x2cba47),_0x2d8588['crudPermissions']=_0x1f35ed,_0x2d8588[_0xfd268b(0x855)]={};if(_0x2d8588['agent'][_0xfd268b(0x168a)])switch(_0x2d8588['agent']['appType']?_0x2d8588['agent'][_0xfd268b(0x8f2)][_0xfd268b(0x256e)]():_0x2d8588[_0xfd268b(0x1755)]['app'][_0xfd268b(0x256e)]()){case _0xfd268b(0x1802):break;case _0xfd268b(0xeaa):{const _0x530dc3=_0x2d8588[_0xfd268b(0x1755)]['appdata'][_0xfd268b(0x10c8)](',');_0x2d8588[_0xfd268b(0x1755)][_0xfd268b(0x2293)]=_0x530dc3[0x0],_0x2d8588[_0xfd268b(0x1755)][_0xfd268b(0x90b)]=_0x530dc3[0x1],_0x2d8588[_0xfd268b(0x1755)][_0xfd268b(0xaf3)]=_0x530dc3[_0xfd268b(0x1298)](0x2,_0x530dc3[_0xfd268b(0x402)])[_0xfd268b(0xb47)](',');}break;case'dialogflowv2':{const _0x23597f=_0x2d8588[_0xfd268b(0x1755)][_0xfd268b(0x168a)][_0xfd268b(0x10c8)](',');_0x2d8588[_0xfd268b(0x1755)][_0xfd268b(0x153a)]=_0x23597f[0x0],_0x2d8588[_0xfd268b(0x1755)][_0xfd268b(0x1392)]=_0x23597f[0x1],_0x2d8588[_0xfd268b(0x1755)][_0xfd268b(0x2217)]=_0x23597f[0x2],_0x2d8588[_0xfd268b(0x1755)]['language']=_0x23597f[0x3],_0x2d8588['agent'][_0xfd268b(0xaf3)]=_0x23597f['slice'](0x4,_0x23597f['length'])[_0xfd268b(0xb47)](',');}break;case'amazonlex':{const _0x1b5e24=_0x2d8588[_0xfd268b(0x1755)]['appdata']['split'](',');_0x2d8588['agent'][_0xfd268b(0x1651)]=_0x1b5e24[0x0],_0x2d8588['agent'][_0xfd268b(0x252)]=_0x1b5e24[0x1],_0x2d8588[_0xfd268b(0x1755)]['lexregion']=_0x1b5e24[0x2],_0x2d8588[_0xfd268b(0x1755)][_0xfd268b(0x8dd)]=_0x1b5e24[0x3],_0x2d8588[_0xfd268b(0x1755)][_0xfd268b(0xaf3)]=_0x1b5e24[_0xfd268b(0x1298)](0x4,_0x1b5e24[_0xfd268b(0x402)])[_0xfd268b(0xb47)](',');}break;case _0xfd268b(0x1713):{const _0x3caeb4=_0x2d8588[_0xfd268b(0x1755)]['appdata'][_0xfd268b(0x10c8)](',');_0x2d8588[_0xfd268b(0x1755)][_0xfd268b(0x583)]=isNaN(_0x3caeb4[0x0])?_0x3caeb4[0x0]:parseInt(_0x3caeb4[0x0],0xa),_0x2d8588[_0xfd268b(0x1755)]['text']=_0x3caeb4[_0xfd268b(0x1298)](0x1,_0x3caeb4[_0xfd268b(0x402)])[_0xfd268b(0xb47)](',');}break;case _0xfd268b(0x7fd):_0x2d8588[_0xfd268b(0x1755)]['text']=_0x2d8588[_0xfd268b(0x1755)]['appdata'];break;case _0xfd268b(0x26ba):_0x2d8588[_0xfd268b(0x1755)]['name']=_0x2d8588[_0xfd268b(0x1755)]['appdata'][_0xfd268b(0x10c8)]('=')[0x0],_0x2d8588['agent'][_0xfd268b(0x175d)]=_0x2d8588['agent'][_0xfd268b(0x168a)][_0xfd268b(0x10c8)]('=')[0x1];break;case'agi':_0x2d8588[_0xfd268b(0x1755)]['project']=_0x2d8588[_0xfd268b(0x1755)][_0xfd268b(0x168a)];break;default:{const _0x3b0e48=_0x2d8588[_0xfd268b(0x1755)][_0xfd268b(0x168a)][_0xfd268b(0x10c8)](',');_0x2d8588['agent'][_0xfd268b(0x1755)]=_0x3f65c0()[_0xfd268b(0x2635)](_0x3b0e48[0x0])?_0x3b0e48[0x0]:isNaN(_0x3b0e48[0x0])?_0x3b0e48[0x0]:parseInt(_0x3b0e48[0x0],0xa),_0x2d8588[_0xfd268b(0x1755)][_0xfd268b(0xa9c)]=_0x3f65c0()[_0xfd268b(0x2635)](_0x3b0e48[0x1])?_0x3b0e48[0x1]:isNaN(_0x3b0e48[0x1])?_0x3b0e48[0x1]:parseInt(_0x3b0e48[0x1],0xa);}break;}else _0x2d8588['agent'][_0xfd268b(0xa9c)]=0x1e;_0x2d8588[_0xfd268b(0x1755)][_0xfd268b(0x1142)]&&_0x2d8588[_0xfd268b(0x1755)]['type'][_0xfd268b(0x256e)]()===_0xfd268b(0xc9c)&&_0x2d8588[_0xfd268b(0x1755)][_0xfd268b(0x8f2)]['toLowerCase']()===_0xfd268b(0x3bb)&&(_0x2d8588[_0xfd268b(0x1755)][_0xfd268b(0x1e12)]=_0x2d8588[_0xfd268b(0x1755)][_0xfd268b(0x1d55)]?_0x2d8588[_0xfd268b(0x1755)][_0xfd268b(0x1d55)][_0xfd268b(0x10c8)]('$')[0x0]:undefined,_0x2d8588[_0xfd268b(0x1755)]['callerId']=_0x2d8588[_0xfd268b(0x1755)][_0xfd268b(0x11be)]?_0xfd268b(0x1b60)+_0x2d8588[_0xfd268b(0x1755)]['callerID']:undefined);_0x2d8588[_0xfd268b(0x7de)]=_0x26074e,_0x2d8588[_0xfd268b(0x13f3)]=_0x369d60,_0x976879[_0xfd268b(0x23e0)]('admin')?_0x23cc64[_0xfd268b(0xe7b)][_0xfd268b(0x16b4)]({'fields':_0xfd268b(0x7a7),'sort':_0xfd268b(0x19eb),'nolimit':_0xfd268b(0x1185),'role':_0xfd268b(0x1755)})[_0xfd268b(0x2945)][_0xfd268b(0x146b)](function(_0x4ff86f){const _0x2ac49e=_0xfd268b;_0x2d8588[_0x2ac49e(0x23c0)]=_0x4ff86f[_0x2ac49e(0x19c7)]||[];})[_0xfd268b(0x129e)](function(_0x1100c0){const _0x24f0c4=_0xfd268b;_0x3342eb[_0x24f0c4(0x1980)]({'title':_0x1100c0['status']?'API:'+_0x1100c0[_0x24f0c4(0x107b)]+_0x24f0c4(0x1315)+_0x1100c0[_0x24f0c4(0x167f)]:_0x24f0c4(0x557),'msg':_0x1100c0[_0x24f0c4(0x524)]?JSON[_0x24f0c4(0x10bb)](_0x1100c0[_0x24f0c4(0x524)]):_0x1100c0['toString']()});}):_0x23cc64['user'][_0xfd268b(0x16b4)]({'fields':_0xfd268b(0x7a7),'sort':_0xfd268b(0x19eb),'nolimit':_0xfd268b(0x1185),'role':_0xfd268b(0x1755)})[_0xfd268b(0x2945)][_0xfd268b(0x146b)](function(_0x23d6ac){const _0x26855b=_0xfd268b;_0x2d8588[_0x26855b(0x23c0)]=_0x23d6ac[_0x26855b(0x19c7)]||[];})['then'](function(){const _0x5f3fc5=_0xfd268b;return _0x23cc64[_0x5f3fc5(0x1366)][_0x5f3fc5(0x16b4)]({'userProfileId':_0x2d8588[_0x5f3fc5(0x2321)][_0x5f3fc5(0x209a)],'sectionId':0xca})['$promise'];})[_0xfd268b(0x146b)](function(_0x658c4b){const _0x260e04=_0xfd268b,_0x566b9a=_0x658c4b&&_0x658c4b[_0x260e04(0x19c7)]?_0x658c4b[_0x260e04(0x19c7)][0x0]:null;if(!_0x566b9a){const _0x1665d1=[];let _0x8845e2=null;_0x2d8588['agent']&&(_0x8845e2=_0x3f65c0()[_0x260e04(0xc84)](_0x2d8588[_0x260e04(0x23c0)],{'name':_0x2d8588[_0x260e04(0x1755)][_0x260e04(0x1755)]}));for(let _0x550938=0x0;_0x550938<_0x2d8588[_0x260e04(0x23c0)][_0x260e04(0x402)];_0x550938++){_0x8845e2&&_0x2d8588[_0x260e04(0x23c0)][_0x550938]['id']===_0x8845e2['id']&&(_0x2d8588[_0x260e04(0x23c0)][_0x550938]['canSelect']=![],_0x1665d1[_0x260e04(0x1f47)](_0x2d8588[_0x260e04(0x23c0)][_0x550938]));}_0x2d8588[_0x260e04(0x23c0)]=_0x1665d1;}else{if(!_0x566b9a['autoAssociation'])return _0x23cc64['userProfileResource']['get']({'sectionId':_0x566b9a['id']})[_0x260e04(0x2945)][_0x260e04(0x146b)](function(_0x5c9718){const _0x4214ac=_0x260e04,_0x10103b=_0x3f65c0()[_0x4214ac(0x205)](_0x5c9718[_0x4214ac(0x19c7)],function(_0x3e0097){const _0x4020d4=_0x4214ac;return _0x3f65c0()['find'](_0x2d8588[_0x4020d4(0x23c0)],{'id':_0x3e0097[_0x4020d4(0x18b8)]});});let _0x45e90e=null;_0x2d8588[_0x4214ac(0x1755)]&&(_0x45e90e=_0x3f65c0()['find'](_0x2d8588[_0x4214ac(0x23c0)],{'name':_0x2d8588[_0x4214ac(0x1755)][_0x4214ac(0x1755)]}));if(_0x45e90e&&!_0x3f65c0()[_0x4214ac(0x1360)](_0x10103b,['id',_0x45e90e['id']])){const _0x1dde08=_0x3f65c0()[_0x4214ac(0xc84)](_0x2d8588[_0x4214ac(0x23c0)],{'id':_0x45e90e['id']});_0x1dde08[_0x4214ac(0x8ff)]=![],_0x10103b[_0x4214ac(0x1f47)](_0x1dde08);}_0x2d8588[_0x4214ac(0x23c0)]=_0x10103b;});}})[_0xfd268b(0x129e)](function(_0x12be12){const _0x5aa813=_0xfd268b;_0x3342eb[_0x5aa813(0x1980)]({'title':_0x12be12[_0x5aa813(0x107b)]?_0x5aa813(0x262a)+_0x12be12[_0x5aa813(0x107b)]+_0x5aa813(0x1315)+_0x12be12[_0x5aa813(0x167f)]:'SYSTEM:GETagents','msg':_0x12be12[_0x5aa813(0x524)]?JSON[_0x5aa813(0x10bb)](_0x12be12[_0x5aa813(0x524)]):_0x12be12[_0x5aa813(0xd5f)]()});});function _0x26074e(){const _0x4db96c=_0xfd268b;_0x2d8588[_0x4db96c(0xcef)]=[];const _0x1a7fa7=[];_0x2d8588[_0x4db96c(0x1755)][_0x4db96c(0x1142)]&&_0x2d8588[_0x4db96c(0x1755)]['type'][_0x4db96c(0x256e)]()===_0x4db96c(0xc9c)&&_0x2d8588['agent'][_0x4db96c(0x8f2)]===_0x4db96c(0x118b)&&(_0x2d8588[_0x4db96c(0x1755)]['phone']=_0x1da26e[_0x4db96c(0x1274)]?(_0x2d8588[_0x4db96c(0x1755)][_0x4db96c(0x1e12)]||'')+_0x4db96c(0x2147)+_0x1da26e[_0x4db96c(0x1274)]+'}':(_0x2d8588[_0x4db96c(0x1755)][_0x4db96c(0x1e12)]||'')+'${EXTEN}',_0x1da26e['recordingFormat']!==_0x4db96c(0x1642)?_0x2d8588[_0x4db96c(0x1755)][_0x4db96c(0xa08)][_0x4db96c(0x172b)](_0x4db96c(0x1ea4))<0x0&&(_0x2d8588[_0x4db96c(0x1755)][_0x4db96c(0xa08)]+=_0x4db96c(0x1ea4)):_0x2d8588[_0x4db96c(0x1755)][_0x4db96c(0xa08)]=_0x2d8588[_0x4db96c(0x1755)][_0x4db96c(0xa08)][_0x4db96c(0x5f4)]('U(xcally-mixmonitor-context)',''));const _0x1e8f70=_0x3f65c0()[_0x4db96c(0xc84)](_0x2d8588[_0x4db96c(0x23c0)],{'name':_0x2d8588[_0x4db96c(0x1755)][_0x4db96c(0x1755)]});_0x1e8f70&&(_0x2d8588[_0x4db96c(0x1755)][_0x4db96c(0xea2)]=_0x1e8f70['id']);if(_0x2d8588[_0x4db96c(0x1755)][_0x4db96c(0x8f2)]&&_0x2d8588[_0x4db96c(0x1755)][_0x4db96c(0x8f2)]==='custom'){}else switch((_0x2d8588[_0x4db96c(0x1755)][_0x4db96c(0x1873)]||_0x2d8588[_0x4db96c(0x1755)][_0x4db96c(0x8f2)])[_0x4db96c(0x256e)]()){case _0x4db96c(0x26ba):_0x2d8588[_0x4db96c(0x1755)][_0x4db96c(0x168a)]=_0x2d8588[_0x4db96c(0x1755)][_0x4db96c(0x19eb)]+'='+_0x2d8588[_0x4db96c(0x1755)][_0x4db96c(0x175d)];break;case'custom':break;default:_0x1a7fa7[0x0]=_0x2d8588['agent'][_0x4db96c(0x1755)],_0x1a7fa7[0x1]=_0x2d8588['agent']['timeout'],_0x2d8588[_0x4db96c(0x1755)][_0x4db96c(0x168a)]=_0x1a7fa7[_0x4db96c(0xb47)](',');}_0x369d60(_0x2d8588['agent']);}function _0x369d60(_0x46f4f3){const _0x350b68=_0xfd268b;_0x1e8f1d[_0x350b68(0x2458)](_0x46f4f3);}}const _0x456b4d=_0x579e88;;_0x1915ec[_0x313a4d(0x11c2)]=[_0x313a4d(0x10e8),'$q',_0x313a4d(0x1fe4),_0x313a4d(0x13c5),'whatsappAccount','api',_0x313a4d(0xa87),_0x313a4d(0x2514)];function _0x1915ec(_0x44e718,_0xc645b4,_0x209728,_0x153d62,_0x313764,_0x45722c,_0x155c1d,_0x261e04){const _0x56954a=_0x313a4d,_0x485387=this;_0x485387[_0x56954a(0x2321)]=_0x155c1d['getCurrentUser'](),_0x485387[_0x56954a(0xcef)]=[],_0x485387['title']=_0x56954a(0x1955)+(_0x153d62['appType']||_0x153d62[_0x56954a(0x1873)])[_0x56954a(0x1c37)](),_0x485387[_0x56954a(0x17d6)]=angular['copy'](_0x153d62),_0x485387[_0x56954a(0x2514)]=_0x261e04,_0x485387['hasModulePermissions']={};if(_0x485387[_0x56954a(0x17d6)][_0x56954a(0x168a)])switch(_0x485387[_0x56954a(0x17d6)]['appType']?_0x485387['amazonlex'][_0x56954a(0x8f2)][_0x56954a(0x256e)]():_0x485387[_0x56954a(0x17d6)][_0x56954a(0x1873)][_0x56954a(0x256e)]()){case _0x56954a(0x1802):break;case _0x56954a(0xeaa):{const _0x44e587=_0x485387[_0x56954a(0x17d6)][_0x56954a(0x168a)][_0x56954a(0x10c8)](',');_0x485387[_0x56954a(0x17d6)][_0x56954a(0x2293)]=_0x44e587[0x0],_0x485387[_0x56954a(0x17d6)][_0x56954a(0x90b)]=_0x44e587[0x1],_0x485387[_0x56954a(0x17d6)][_0x56954a(0xaf3)]=_0x44e587[_0x56954a(0x1298)](0x2,_0x44e587[_0x56954a(0x402)])[_0x56954a(0xb47)](',');}break;case'dialogflowv2':{const _0x3bdae2=_0x485387[_0x56954a(0x17d6)]['appdata'][_0x56954a(0x10c8)](',');_0x485387['amazonlex'][_0x56954a(0x153a)]=_0x3bdae2[0x0],_0x485387[_0x56954a(0x17d6)][_0x56954a(0x1392)]=_0x3bdae2[0x1],_0x485387[_0x56954a(0x17d6)][_0x56954a(0x2217)]=_0x3bdae2[0x2],_0x485387[_0x56954a(0x17d6)]['language']=_0x3bdae2[0x3],_0x485387[_0x56954a(0x17d6)][_0x56954a(0xaf3)]=_0x3bdae2['slice'](0x4,_0x3bdae2[_0x56954a(0x402)])['join'](',');}break;case _0x56954a(0x17d6):{const _0x40508b=_0x485387[_0x56954a(0x17d6)]['appdata']['split'](',');_0x485387[_0x56954a(0x17d6)]['accesskeyid']=_0x40508b[0x0],_0x485387['amazonlex'][_0x56954a(0x252)]=_0x40508b[0x1],_0x485387[_0x56954a(0x17d6)][_0x56954a(0x1039)]=_0x40508b[0x2],_0x485387[_0x56954a(0x17d6)][_0x56954a(0x8dd)]=_0x40508b[0x3],_0x485387[_0x56954a(0x17d6)]['welcomemessage']=_0x40508b[_0x56954a(0x1298)](0x4,_0x40508b[_0x56954a(0x402)])[_0x56954a(0xb47)](',');}break;case _0x56954a(0x1713):{const _0xbfa0af=_0x485387[_0x56954a(0x17d6)]['appdata']['split'](',');_0x485387[_0x56954a(0x17d6)][_0x56954a(0x583)]=isNaN(_0xbfa0af[0x0])?_0xbfa0af[0x0]:parseInt(_0xbfa0af[0x0],0xa),_0x485387[_0x56954a(0x17d6)][_0x56954a(0xa8d)]=_0xbfa0af['slice'](0x1,_0xbfa0af['length'])[_0x56954a(0xb47)](',');}break;case _0x56954a(0x7fd):_0x485387[_0x56954a(0x17d6)][_0x56954a(0xa8d)]=_0x485387['amazonlex'][_0x56954a(0x168a)];break;case'set':_0x485387['amazonlex'][_0x56954a(0x19eb)]=_0x485387[_0x56954a(0x17d6)][_0x56954a(0x168a)][_0x56954a(0x10c8)]('=')[0x0],_0x485387['amazonlex'][_0x56954a(0x175d)]=_0x485387[_0x56954a(0x17d6)][_0x56954a(0x168a)][_0x56954a(0x10c8)]('=')[0x1];break;case _0x56954a(0x1ecb):_0x485387['amazonlex']['project']=_0x485387[_0x56954a(0x17d6)][_0x56954a(0x168a)];break;default:{const _0x3ba4a5=_0x485387[_0x56954a(0x17d6)][_0x56954a(0x168a)][_0x56954a(0x10c8)](',');_0x485387[_0x56954a(0x17d6)][_0x56954a(0x1651)]=_0x3f65c0()[_0x56954a(0x2635)](_0x3ba4a5[0x0])?_0x3ba4a5[0x0]:isNaN(_0x3ba4a5[0x0])?_0x3ba4a5[0x0]:parseInt(_0x3ba4a5[0x0],0xa),_0x485387[_0x56954a(0x17d6)][_0x56954a(0x252)]=_0x3f65c0()[_0x56954a(0x2635)](_0x3ba4a5[0x1])?_0x3ba4a5[0x1]:isNaN(_0x3ba4a5[0x1])?_0x3ba4a5[0x1]:parseInt(_0x3ba4a5[0x1],0xa),_0x485387[_0x56954a(0x17d6)]['lexregion']=_0x3f65c0()[_0x56954a(0x2635)](_0x3ba4a5[0x2])?_0x3ba4a5[0x2]:isNaN(_0x3ba4a5[0x2])?_0x3ba4a5[0x2]:parseInt(_0x3ba4a5[0x2],0xa),_0x485387['amazonlex']['botname']=_0x3f65c0()[_0x56954a(0x2635)](_0x3ba4a5[0x3])?_0x3ba4a5[0x3]:isNaN(_0x3ba4a5[0x3])?_0x3ba4a5[0x3]:parseInt(_0x3ba4a5[0x3],0xa),_0x485387['amazonlex'][_0x56954a(0xaf3)]=_0x3f65c0()[_0x56954a(0x2635)](_0x3ba4a5[0x4])?_0x3ba4a5[0x4]:isNaN(_0x3ba4a5[0x4])?_0x3ba4a5[0x4]:parseInt(_0x3ba4a5[0x4],0xa);}break;}else _0x485387[_0x56954a(0x17d6)]['lexregion']=_0x56954a(0x20a9);_0x485387[_0x56954a(0x17d6)][_0x56954a(0x1142)]&&_0x485387[_0x56954a(0x17d6)][_0x56954a(0x1142)]['toLowerCase']()==='outbound'&&_0x485387[_0x56954a(0x17d6)][_0x56954a(0x8f2)][_0x56954a(0x256e)]()===_0x56954a(0x3bb)&&(_0x485387[_0x56954a(0x17d6)][_0x56954a(0x1e12)]=_0x485387[_0x56954a(0x17d6)][_0x56954a(0x1d55)]?_0x485387[_0x56954a(0x17d6)]['phone'][_0x56954a(0x10c8)]('$')[0x0]:undefined,_0x485387[_0x56954a(0x17d6)][_0x56954a(0x1d43)]=_0x485387[_0x56954a(0x17d6)][_0x56954a(0x11be)]?_0x56954a(0x1b60)+_0x485387[_0x56954a(0x17d6)][_0x56954a(0x11be)]:undefined);_0x485387[_0x56954a(0x7de)]=_0x481f20,_0x485387[_0x56954a(0x13f3)]=_0x58d685;function _0x481f20(){const _0x5d477f=_0x56954a;_0x485387['errors']=[];const _0x751ea=[];_0x485387[_0x5d477f(0x17d6)][_0x5d477f(0x1142)]&&_0x485387[_0x5d477f(0x17d6)][_0x5d477f(0x1142)][_0x5d477f(0x256e)]()===_0x5d477f(0xc9c)&&_0x485387[_0x5d477f(0x17d6)][_0x5d477f(0x8f2)]===_0x5d477f(0x118b)&&(_0x485387[_0x5d477f(0x17d6)]['phone']=_0x313764[_0x5d477f(0x1274)]?(_0x485387['amazonlex'][_0x5d477f(0x1e12)]||'')+_0x5d477f(0x2147)+_0x313764[_0x5d477f(0x1274)]+'}':(_0x485387[_0x5d477f(0x17d6)][_0x5d477f(0x1e12)]||'')+_0x5d477f(0x20df),_0x313764[_0x5d477f(0x1425)]!==_0x5d477f(0x1642)?_0x485387[_0x5d477f(0x17d6)][_0x5d477f(0xa08)][_0x5d477f(0x172b)]('U(xcally-mixmonitor-context)')<0x0&&(_0x485387['amazonlex'][_0x5d477f(0xa08)]+=_0x5d477f(0x1ea4)):_0x485387[_0x5d477f(0x17d6)][_0x5d477f(0xa08)]=_0x485387[_0x5d477f(0x17d6)][_0x5d477f(0xa08)]['replace']('U(xcally-mixmonitor-context)',''));if(_0x485387['amazonlex'][_0x5d477f(0x8f2)]&&_0x485387[_0x5d477f(0x17d6)][_0x5d477f(0x8f2)]===_0x5d477f(0x1802)){}else switch((_0x485387['amazonlex'][_0x5d477f(0x1873)]||_0x485387[_0x5d477f(0x17d6)][_0x5d477f(0x8f2)])[_0x5d477f(0x256e)]()){case _0x5d477f(0x26ba):_0x485387[_0x5d477f(0x17d6)]['appdata']=_0x485387[_0x5d477f(0x17d6)][_0x5d477f(0x19eb)]+'='+_0x485387[_0x5d477f(0x17d6)]['value'];break;case _0x5d477f(0x1802):break;default:_0x751ea[0x0]=_0x485387[_0x5d477f(0x17d6)][_0x5d477f(0x1651)],_0x751ea[0x1]=_0x485387['amazonlex'][_0x5d477f(0x252)],_0x751ea[0x2]=_0x485387[_0x5d477f(0x17d6)][_0x5d477f(0x1039)],_0x751ea[0x3]=_0x485387['amazonlex'][_0x5d477f(0x8dd)],_0x751ea[0x4]=_0x485387[_0x5d477f(0x17d6)][_0x5d477f(0xaf3)],_0x485387[_0x5d477f(0x17d6)][_0x5d477f(0x168a)]=_0x751ea[_0x5d477f(0xb47)](',');}_0x58d685(_0x485387[_0x5d477f(0x17d6)]);}function _0x58d685(_0x2855cc){const _0x50fc4e=_0x56954a;_0x44e718[_0x50fc4e(0x2458)](_0x2855cc);}}const _0x4b9b3b=_0x1915ec;;_0x3bf868[_0x313a4d(0x11c2)]=[_0x313a4d(0x10e8),'$q',_0x313a4d(0x1fe4),_0x313a4d(0x13c5),'whatsappAccount',_0x313a4d(0x247f),'Auth',_0x313a4d(0x2514)];function _0x3bf868(_0xb01b6d,_0x48ee4d,_0x3ebc35,_0x1dbb44,_0x214879,_0x27ed9e,_0x9a1e18,_0x3c059d){const _0x172038=_0x313a4d,_0x2e9586=this;_0x2e9586[_0x172038(0x2321)]=_0x9a1e18[_0x172038(0xb12)](),_0x2e9586[_0x172038(0xcef)]=[],_0x2e9586[_0x172038(0x1189)]=_0x172038(0x1955)+(_0x1dbb44[_0x172038(0x8f2)]||_0x1dbb44[_0x172038(0x1873)])[_0x172038(0x1c37)](),_0x2e9586['autoreply']=angular[_0x172038(0x235a)](_0x1dbb44),_0x2e9586['crudPermissions']=_0x3c059d,_0x2e9586['hasModulePermissions']={};if(_0x2e9586[_0x172038(0x1713)][_0x172038(0x168a)])switch(_0x2e9586[_0x172038(0x1713)][_0x172038(0x8f2)]?_0x2e9586[_0x172038(0x1713)][_0x172038(0x8f2)][_0x172038(0x256e)]():_0x2e9586[_0x172038(0x1713)][_0x172038(0x1873)][_0x172038(0x256e)]()){case _0x172038(0x1802):break;case _0x172038(0xeaa):{const _0x3945eb=_0x2e9586[_0x172038(0x1713)][_0x172038(0x168a)][_0x172038(0x10c8)](',');_0x2e9586['autoreply']['key']=_0x3945eb[0x0],_0x2e9586[_0x172038(0x1713)]['language']=_0x3945eb[0x1],_0x2e9586[_0x172038(0x1713)][_0x172038(0xaf3)]=_0x3945eb['slice'](0x2,_0x3945eb['length'])[_0x172038(0xb47)](',');}break;case _0x172038(0xa46):{const _0x15339b=_0x2e9586[_0x172038(0x1713)][_0x172038(0x168a)][_0x172038(0x10c8)](',');_0x2e9586[_0x172038(0x1713)][_0x172038(0x153a)]=_0x15339b[0x0],_0x2e9586[_0x172038(0x1713)]['clientEmail']=_0x15339b[0x1],_0x2e9586[_0x172038(0x1713)][_0x172038(0x2217)]=_0x15339b[0x2],_0x2e9586[_0x172038(0x1713)][_0x172038(0x90b)]=_0x15339b[0x3],_0x2e9586[_0x172038(0x1713)][_0x172038(0xaf3)]=_0x15339b[_0x172038(0x1298)](0x4,_0x15339b['length'])[_0x172038(0xb47)](',');}break;case'amazonlex':{const _0x495f16=_0x2e9586[_0x172038(0x1713)][_0x172038(0x168a)][_0x172038(0x10c8)](',');_0x2e9586[_0x172038(0x1713)][_0x172038(0x1651)]=_0x495f16[0x0],_0x2e9586['autoreply'][_0x172038(0x252)]=_0x495f16[0x1],_0x2e9586['autoreply'][_0x172038(0x1039)]=_0x495f16[0x2],_0x2e9586['autoreply'][_0x172038(0x8dd)]=_0x495f16[0x3],_0x2e9586[_0x172038(0x1713)]['welcomemessage']=_0x495f16[_0x172038(0x1298)](0x4,_0x495f16[_0x172038(0x402)])['join'](',');}break;case _0x172038(0x1713):{const _0x57b8dd=_0x2e9586[_0x172038(0x1713)][_0x172038(0x168a)][_0x172038(0x10c8)](',');_0x2e9586[_0x172038(0x1713)][_0x172038(0x583)]=isNaN(_0x57b8dd[0x0])?_0x57b8dd[0x0]:parseInt(_0x57b8dd[0x0],0xa),_0x2e9586[_0x172038(0x1713)][_0x172038(0xa8d)]=_0x57b8dd[_0x172038(0x1298)](0x1,_0x57b8dd['length'])[_0x172038(0xb47)](',');}break;case _0x172038(0x7fd):_0x2e9586['autoreply'][_0x172038(0xa8d)]=_0x2e9586['autoreply'][_0x172038(0x168a)];break;case _0x172038(0x26ba):_0x2e9586[_0x172038(0x1713)]['name']=_0x2e9586[_0x172038(0x1713)]['appdata'][_0x172038(0x10c8)]('=')[0x0],_0x2e9586['autoreply'][_0x172038(0x175d)]=_0x2e9586[_0x172038(0x1713)][_0x172038(0x168a)][_0x172038(0x10c8)]('=')[0x1];break;case _0x172038(0x1ecb):_0x2e9586[_0x172038(0x1713)][_0x172038(0x9e0)]=_0x2e9586['autoreply'][_0x172038(0x168a)];break;default:{const _0x25f728=_0x2e9586[_0x172038(0x1713)]['appdata'][_0x172038(0x10c8)](',');_0x2e9586[_0x172038(0x1713)][_0x172038(0x583)]=_0x3f65c0()[_0x172038(0x2635)](_0x25f728[0x0])?_0x25f728[0x0]:isNaN(_0x25f728[0x0])?_0x25f728[0x0]:parseInt(_0x25f728[0x0],0xa),_0x2e9586[_0x172038(0x1713)][_0x172038(0xa8d)]=_0x3f65c0()[_0x172038(0x2635)](_0x25f728[0x1])?_0x25f728[0x1]:isNaN(_0x25f728[0x1])?_0x25f728[0x1]:parseInt(_0x25f728[0x1],0xa);}break;}else _0x2e9586[_0x172038(0x1713)][_0x172038(0x583)]=0x1;_0x2e9586['autoreply'][_0x172038(0x1142)]&&_0x2e9586[_0x172038(0x1713)][_0x172038(0x1142)][_0x172038(0x256e)]()===_0x172038(0xc9c)&&_0x2e9586[_0x172038(0x1713)][_0x172038(0x8f2)][_0x172038(0x256e)]()===_0x172038(0x3bb)&&(_0x2e9586[_0x172038(0x1713)][_0x172038(0x1e12)]=_0x2e9586[_0x172038(0x1713)]['phone']?_0x2e9586[_0x172038(0x1713)][_0x172038(0x1d55)][_0x172038(0x10c8)]('$')[0x0]:undefined,_0x2e9586['autoreply'][_0x172038(0x1d43)]=_0x2e9586[_0x172038(0x1713)]['callerID']?_0x172038(0x1b60)+_0x2e9586['autoreply']['callerID']:undefined);_0x2e9586[_0x172038(0x7de)]=_0x329d93,_0x2e9586[_0x172038(0x13f3)]=_0x3b9a65;function _0x329d93(){const _0x8ed0c4=_0x172038;_0x2e9586['errors']=[];const _0x626190=[];_0x2e9586['autoreply'][_0x8ed0c4(0x1142)]&&_0x2e9586[_0x8ed0c4(0x1713)][_0x8ed0c4(0x1142)][_0x8ed0c4(0x256e)]()==='outbound'&&_0x2e9586[_0x8ed0c4(0x1713)][_0x8ed0c4(0x8f2)]===_0x8ed0c4(0x118b)&&(_0x2e9586[_0x8ed0c4(0x1713)]['phone']=_0x214879[_0x8ed0c4(0x1274)]?(_0x2e9586[_0x8ed0c4(0x1713)][_0x8ed0c4(0x1e12)]||'')+'${EXTEN:'+_0x214879['cutdigits']+'}':(_0x2e9586[_0x8ed0c4(0x1713)][_0x8ed0c4(0x1e12)]||'')+'${EXTEN}',_0x214879['recordingFormat']!=='none'?_0x2e9586[_0x8ed0c4(0x1713)][_0x8ed0c4(0xa08)][_0x8ed0c4(0x172b)](_0x8ed0c4(0x1ea4))<0x0&&(_0x2e9586[_0x8ed0c4(0x1713)][_0x8ed0c4(0xa08)]+='U(xcally-mixmonitor-context)'):_0x2e9586['autoreply'][_0x8ed0c4(0xa08)]=_0x2e9586['autoreply'][_0x8ed0c4(0xa08)][_0x8ed0c4(0x5f4)](_0x8ed0c4(0x1ea4),''));if(_0x2e9586[_0x8ed0c4(0x1713)][_0x8ed0c4(0x8f2)]&&_0x2e9586['autoreply']['appType']===_0x8ed0c4(0x1802)){}else switch((_0x2e9586[_0x8ed0c4(0x1713)]['app']||_0x2e9586[_0x8ed0c4(0x1713)][_0x8ed0c4(0x8f2)])['toLowerCase']()){case _0x8ed0c4(0x26ba):_0x2e9586['autoreply'][_0x8ed0c4(0x168a)]=_0x2e9586[_0x8ed0c4(0x1713)][_0x8ed0c4(0x19eb)]+'='+_0x2e9586[_0x8ed0c4(0x1713)]['value'];break;case _0x8ed0c4(0x1802):break;default:_0x626190[0x0]=_0x2e9586[_0x8ed0c4(0x1713)][_0x8ed0c4(0x583)],_0x626190[0x1]=_0x2e9586[_0x8ed0c4(0x1713)]['text'],_0x2e9586[_0x8ed0c4(0x1713)][_0x8ed0c4(0x168a)]=_0x626190[_0x8ed0c4(0xb47)](',');}_0x3b9a65(_0x2e9586[_0x8ed0c4(0x1713)]);}function _0x3b9a65(_0x156918){const _0x53230d=_0x172038;_0xb01b6d[_0x53230d(0x2458)](_0x156918);}}const _0x1c05cd=_0x3bf868;;_0x1ad40d['$inject']=[_0x313a4d(0x10e8),'$q','toasty','whatsappAccountApp',_0x313a4d(0x815),_0x313a4d(0x247f),_0x313a4d(0xa87),_0x313a4d(0x2514)];function _0x1ad40d(_0x10c47b,_0x3c6c47,_0xc48d3e,_0x50c4ac,_0xead437,_0x2d498f,_0x57a8ce,_0x2110b8){const _0x5621ed=_0x313a4d,_0x17aefd=this;_0x17aefd[_0x5621ed(0x2321)]=_0x57a8ce[_0x5621ed(0xb12)](),_0x17aefd[_0x5621ed(0xcef)]=[],_0x17aefd['title']=_0x5621ed(0x1955)+(_0x50c4ac[_0x5621ed(0x8f2)]||_0x50c4ac[_0x5621ed(0x1873)])[_0x5621ed(0x1c37)](),_0x17aefd[_0x5621ed(0xa7c)]=angular[_0x5621ed(0x235a)](_0x50c4ac),_0x17aefd[_0x5621ed(0x2514)]=_0x2110b8,_0x17aefd[_0x5621ed(0x855)]={};if(_0x17aefd['close'][_0x5621ed(0x168a)])switch(_0x17aefd[_0x5621ed(0xa7c)]['appType']?_0x17aefd[_0x5621ed(0xa7c)][_0x5621ed(0x8f2)][_0x5621ed(0x256e)]():_0x17aefd['close'][_0x5621ed(0x1873)][_0x5621ed(0x256e)]()){case _0x5621ed(0x1802):break;case _0x5621ed(0xeaa):{const _0x334847=_0x17aefd[_0x5621ed(0xa7c)]['appdata'][_0x5621ed(0x10c8)](',');_0x17aefd[_0x5621ed(0xa7c)]['key']=_0x334847[0x0],_0x17aefd['close']['language']=_0x334847[0x1],_0x17aefd['close'][_0x5621ed(0xaf3)]=_0x334847[_0x5621ed(0x1298)](0x2,_0x334847[_0x5621ed(0x402)])[_0x5621ed(0xb47)](',');}break;case _0x5621ed(0xa46):{const _0x2e3b7f=_0x17aefd[_0x5621ed(0xa7c)][_0x5621ed(0x168a)][_0x5621ed(0x10c8)](',');_0x17aefd[_0x5621ed(0xa7c)][_0x5621ed(0x153a)]=_0x2e3b7f[0x0],_0x17aefd[_0x5621ed(0xa7c)]['clientEmail']=_0x2e3b7f[0x1],_0x17aefd[_0x5621ed(0xa7c)][_0x5621ed(0x2217)]=_0x2e3b7f[0x2],_0x17aefd[_0x5621ed(0xa7c)][_0x5621ed(0x90b)]=_0x2e3b7f[0x3],_0x17aefd['close'][_0x5621ed(0xaf3)]=_0x2e3b7f[_0x5621ed(0x1298)](0x4,_0x2e3b7f['length'])[_0x5621ed(0xb47)](',');}break;case _0x5621ed(0x17d6):{const _0x3dce78=_0x17aefd['close']['appdata'][_0x5621ed(0x10c8)](',');_0x17aefd[_0x5621ed(0xa7c)][_0x5621ed(0x1651)]=_0x3dce78[0x0],_0x17aefd[_0x5621ed(0xa7c)]['secretaccesskey']=_0x3dce78[0x1],_0x17aefd[_0x5621ed(0xa7c)][_0x5621ed(0x1039)]=_0x3dce78[0x2],_0x17aefd['close'][_0x5621ed(0x8dd)]=_0x3dce78[0x3],_0x17aefd[_0x5621ed(0xa7c)][_0x5621ed(0xaf3)]=_0x3dce78['slice'](0x4,_0x3dce78[_0x5621ed(0x402)])[_0x5621ed(0xb47)](',');}break;case _0x5621ed(0x1713):{const _0x26f8e5=_0x17aefd['close']['appdata'][_0x5621ed(0x10c8)](',');_0x17aefd[_0x5621ed(0xa7c)][_0x5621ed(0x583)]=isNaN(_0x26f8e5[0x0])?_0x26f8e5[0x0]:parseInt(_0x26f8e5[0x0],0xa),_0x17aefd[_0x5621ed(0xa7c)][_0x5621ed(0xa8d)]=_0x26f8e5['slice'](0x1,_0x26f8e5[_0x5621ed(0x402)])[_0x5621ed(0xb47)](',');}break;case _0x5621ed(0x7fd):_0x17aefd['close'][_0x5621ed(0xa8d)]=_0x17aefd[_0x5621ed(0xa7c)][_0x5621ed(0x168a)];break;case'set':_0x17aefd[_0x5621ed(0xa7c)][_0x5621ed(0x19eb)]=_0x17aefd[_0x5621ed(0xa7c)][_0x5621ed(0x168a)][_0x5621ed(0x10c8)]('=')[0x0],_0x17aefd['close'][_0x5621ed(0x175d)]=_0x17aefd[_0x5621ed(0xa7c)][_0x5621ed(0x168a)][_0x5621ed(0x10c8)]('=')[0x1];break;case _0x5621ed(0x1ecb):_0x17aefd['close'][_0x5621ed(0x9e0)]=_0x17aefd['close'][_0x5621ed(0x168a)];break;default:{const _0x551e30=_0x17aefd[_0x5621ed(0xa7c)]['appdata'][_0x5621ed(0x10c8)](',');_0x17aefd[_0x5621ed(0xa7c)]['disposition']=_0x3f65c0()[_0x5621ed(0x2635)](_0x551e30[0x0])?_0x551e30[0x0]:isNaN(_0x551e30[0x0])?_0x551e30[0x0]:parseInt(_0x551e30[0x0],0xa);}break;}else{}_0x17aefd[_0x5621ed(0xa7c)]['type']&&_0x17aefd[_0x5621ed(0xa7c)][_0x5621ed(0x1142)][_0x5621ed(0x256e)]()===_0x5621ed(0xc9c)&&_0x17aefd[_0x5621ed(0xa7c)][_0x5621ed(0x8f2)]['toLowerCase']()===_0x5621ed(0x3bb)&&(_0x17aefd[_0x5621ed(0xa7c)][_0x5621ed(0x1e12)]=_0x17aefd[_0x5621ed(0xa7c)][_0x5621ed(0x1d55)]?_0x17aefd[_0x5621ed(0xa7c)][_0x5621ed(0x1d55)]['split']('$')[0x0]:undefined,_0x17aefd[_0x5621ed(0xa7c)][_0x5621ed(0x1d43)]=_0x17aefd['close'][_0x5621ed(0x11be)]?_0x5621ed(0x1b60)+_0x17aefd[_0x5621ed(0xa7c)][_0x5621ed(0x11be)]:undefined);_0x17aefd[_0x5621ed(0x7de)]=_0x5c669c,_0x17aefd[_0x5621ed(0x13f3)]=_0x5af4d5;function _0x5c669c(){const _0x47e1b8=_0x5621ed;_0x17aefd[_0x47e1b8(0xcef)]=[];const _0x2159ad=[];_0x17aefd[_0x47e1b8(0xa7c)]['type']&&_0x17aefd[_0x47e1b8(0xa7c)][_0x47e1b8(0x1142)][_0x47e1b8(0x256e)]()===_0x47e1b8(0xc9c)&&_0x17aefd[_0x47e1b8(0xa7c)][_0x47e1b8(0x8f2)]===_0x47e1b8(0x118b)&&(_0x17aefd[_0x47e1b8(0xa7c)]['phone']=_0xead437[_0x47e1b8(0x1274)]?(_0x17aefd[_0x47e1b8(0xa7c)][_0x47e1b8(0x1e12)]||'')+_0x47e1b8(0x2147)+_0xead437[_0x47e1b8(0x1274)]+'}':(_0x17aefd[_0x47e1b8(0xa7c)][_0x47e1b8(0x1e12)]||'')+_0x47e1b8(0x20df),_0xead437[_0x47e1b8(0x1425)]!==_0x47e1b8(0x1642)?_0x17aefd['close'][_0x47e1b8(0xa08)]['indexOf'](_0x47e1b8(0x1ea4))<0x0&&(_0x17aefd[_0x47e1b8(0xa7c)][_0x47e1b8(0xa08)]+=_0x47e1b8(0x1ea4)):_0x17aefd[_0x47e1b8(0xa7c)][_0x47e1b8(0xa08)]=_0x17aefd[_0x47e1b8(0xa7c)][_0x47e1b8(0xa08)][_0x47e1b8(0x5f4)](_0x47e1b8(0x1ea4),''));if(_0x17aefd[_0x47e1b8(0xa7c)][_0x47e1b8(0x8f2)]&&_0x17aefd['close'][_0x47e1b8(0x8f2)]===_0x47e1b8(0x1802)){}else switch((_0x17aefd['close'][_0x47e1b8(0x1873)]||_0x17aefd[_0x47e1b8(0xa7c)][_0x47e1b8(0x8f2)])[_0x47e1b8(0x256e)]()){case _0x47e1b8(0x26ba):_0x17aefd[_0x47e1b8(0xa7c)][_0x47e1b8(0x168a)]=_0x17aefd[_0x47e1b8(0xa7c)][_0x47e1b8(0x19eb)]+'='+_0x17aefd[_0x47e1b8(0xa7c)][_0x47e1b8(0x175d)];break;case'custom':break;default:_0x2159ad[0x0]=_0x17aefd[_0x47e1b8(0xa7c)][_0x47e1b8(0x9e1)],_0x17aefd['close'][_0x47e1b8(0x168a)]=_0x2159ad['join'](',');}_0x5af4d5(_0x17aefd['close']);}function _0x5af4d5(_0x26da3d){_0x10c47b['hide'](_0x26da3d);}}const _0x14d1a0=_0x1ad40d;;_0x52c52f[_0x313a4d(0x11c2)]=[_0x313a4d(0x10e8),'$q',_0x313a4d(0x1fe4),_0x313a4d(0x13c5),_0x313a4d(0x815),'api','Auth',_0x313a4d(0x2514)];function _0x52c52f(_0x7942ee,_0x579cfd,_0x4cc8fe,_0x183a99,_0x364c53,_0x74002f,_0xeb1d5e,_0x3e5b37){const _0xcd467b=_0x313a4d,_0x39c0ce=this;_0x39c0ce['currentUser']=_0xeb1d5e[_0xcd467b(0xb12)](),_0x39c0ce[_0xcd467b(0xcef)]=[],_0x39c0ce[_0xcd467b(0x1189)]=_0xcd467b(0x1955)+(_0x183a99[_0xcd467b(0x8f2)]||_0x183a99[_0xcd467b(0x1873)])['toUpperCase'](),_0x39c0ce['dialogflow']=angular[_0xcd467b(0x235a)](_0x183a99),_0x39c0ce[_0xcd467b(0x2514)]=_0x3e5b37,_0x39c0ce['hasModulePermissions']={};if(_0x39c0ce['dialogflow'][_0xcd467b(0x168a)])switch(_0x39c0ce[_0xcd467b(0xeaa)]['appType']?_0x39c0ce[_0xcd467b(0xeaa)][_0xcd467b(0x8f2)][_0xcd467b(0x256e)]():_0x39c0ce[_0xcd467b(0xeaa)][_0xcd467b(0x1873)]['toLowerCase']()){case _0xcd467b(0x1802):break;case'dialogflow':{const _0xe90d18=_0x39c0ce['dialogflow']['appdata'][_0xcd467b(0x10c8)](',');_0x39c0ce['dialogflow'][_0xcd467b(0x2293)]=_0xe90d18[0x0],_0x39c0ce[_0xcd467b(0xeaa)][_0xcd467b(0x90b)]=_0xe90d18[0x1],_0x39c0ce[_0xcd467b(0xeaa)][_0xcd467b(0xaf3)]=_0xe90d18[_0xcd467b(0x1298)](0x2,_0xe90d18['length'])[_0xcd467b(0xb47)](',');}break;case _0xcd467b(0xa46):{const _0x2f416d=_0x39c0ce[_0xcd467b(0xeaa)][_0xcd467b(0x168a)][_0xcd467b(0x10c8)](',');_0x39c0ce[_0xcd467b(0xeaa)]['projectId']=_0x2f416d[0x0],_0x39c0ce[_0xcd467b(0xeaa)][_0xcd467b(0x1392)]=_0x2f416d[0x1],_0x39c0ce[_0xcd467b(0xeaa)][_0xcd467b(0x2217)]=_0x2f416d[0x2],_0x39c0ce[_0xcd467b(0xeaa)][_0xcd467b(0x90b)]=_0x2f416d[0x3],_0x39c0ce[_0xcd467b(0xeaa)]['welcomemessage']=_0x2f416d[_0xcd467b(0x1298)](0x4,_0x2f416d['length'])['join'](',');}break;case _0xcd467b(0x17d6):{const _0x5047c7=_0x39c0ce[_0xcd467b(0xeaa)][_0xcd467b(0x168a)][_0xcd467b(0x10c8)](',');_0x39c0ce[_0xcd467b(0xeaa)]['accesskeyid']=_0x5047c7[0x0],_0x39c0ce['dialogflow'][_0xcd467b(0x252)]=_0x5047c7[0x1],_0x39c0ce[_0xcd467b(0xeaa)][_0xcd467b(0x1039)]=_0x5047c7[0x2],_0x39c0ce[_0xcd467b(0xeaa)]['botname']=_0x5047c7[0x3],_0x39c0ce[_0xcd467b(0xeaa)][_0xcd467b(0xaf3)]=_0x5047c7[_0xcd467b(0x1298)](0x4,_0x5047c7[_0xcd467b(0x402)])['join'](',');}break;case _0xcd467b(0x1713):{const _0x127019=_0x39c0ce['dialogflow'][_0xcd467b(0x168a)][_0xcd467b(0x10c8)](',');_0x39c0ce[_0xcd467b(0xeaa)][_0xcd467b(0x583)]=isNaN(_0x127019[0x0])?_0x127019[0x0]:parseInt(_0x127019[0x0],0xa),_0x39c0ce[_0xcd467b(0xeaa)]['text']=_0x127019[_0xcd467b(0x1298)](0x1,_0x127019['length'])[_0xcd467b(0xb47)](',');}break;case'message':_0x39c0ce[_0xcd467b(0xeaa)]['text']=_0x39c0ce[_0xcd467b(0xeaa)][_0xcd467b(0x168a)];break;case _0xcd467b(0x26ba):_0x39c0ce[_0xcd467b(0xeaa)][_0xcd467b(0x19eb)]=_0x39c0ce[_0xcd467b(0xeaa)][_0xcd467b(0x168a)][_0xcd467b(0x10c8)]('=')[0x0],_0x39c0ce['dialogflow'][_0xcd467b(0x175d)]=_0x39c0ce[_0xcd467b(0xeaa)]['appdata'][_0xcd467b(0x10c8)]('=')[0x1];break;case'agi':_0x39c0ce['dialogflow'][_0xcd467b(0x9e0)]=_0x39c0ce[_0xcd467b(0xeaa)][_0xcd467b(0x168a)];break;default:{const _0xa78984=_0x39c0ce[_0xcd467b(0xeaa)][_0xcd467b(0x168a)][_0xcd467b(0x10c8)](',');_0x39c0ce[_0xcd467b(0xeaa)][_0xcd467b(0x2293)]=_0x3f65c0()[_0xcd467b(0x2635)](_0xa78984[0x0])?_0xa78984[0x0]:isNaN(_0xa78984[0x0])?_0xa78984[0x0]:parseInt(_0xa78984[0x0],0xa),_0x39c0ce[_0xcd467b(0xeaa)][_0xcd467b(0x90b)]=_0x3f65c0()[_0xcd467b(0x2635)](_0xa78984[0x1])?_0xa78984[0x1]:isNaN(_0xa78984[0x1])?_0xa78984[0x1]:parseInt(_0xa78984[0x1],0xa),_0x39c0ce[_0xcd467b(0xeaa)]['welcomemessage']=_0x3f65c0()[_0xcd467b(0x2635)](_0xa78984[0x2])?_0xa78984[0x2]:isNaN(_0xa78984[0x2])?_0xa78984[0x2]:parseInt(_0xa78984[0x2],0xa);}break;}else _0x39c0ce['dialogflow'][_0xcd467b(0x90b)]='en';_0x39c0ce[_0xcd467b(0xeaa)][_0xcd467b(0x1142)]&&_0x39c0ce[_0xcd467b(0xeaa)][_0xcd467b(0x1142)][_0xcd467b(0x256e)]()===_0xcd467b(0xc9c)&&_0x39c0ce[_0xcd467b(0xeaa)][_0xcd467b(0x8f2)][_0xcd467b(0x256e)]()===_0xcd467b(0x3bb)&&(_0x39c0ce[_0xcd467b(0xeaa)][_0xcd467b(0x1e12)]=_0x39c0ce['dialogflow'][_0xcd467b(0x1d55)]?_0x39c0ce[_0xcd467b(0xeaa)][_0xcd467b(0x1d55)][_0xcd467b(0x10c8)]('$')[0x0]:undefined,_0x39c0ce[_0xcd467b(0xeaa)][_0xcd467b(0x1d43)]=_0x39c0ce[_0xcd467b(0xeaa)][_0xcd467b(0x11be)]?_0xcd467b(0x1b60)+_0x39c0ce['dialogflow']['callerID']:undefined);_0x39c0ce[_0xcd467b(0x7de)]=_0x206f1c,_0x39c0ce['closeDialog']=_0x45fd8b;function _0x206f1c(){const _0x25bee8=_0xcd467b;_0x39c0ce['errors']=[];const _0x3e04ac=[];_0x39c0ce[_0x25bee8(0xeaa)]['type']&&_0x39c0ce['dialogflow'][_0x25bee8(0x1142)]['toLowerCase']()===_0x25bee8(0xc9c)&&_0x39c0ce[_0x25bee8(0xeaa)][_0x25bee8(0x8f2)]===_0x25bee8(0x118b)&&(_0x39c0ce['dialogflow'][_0x25bee8(0x1d55)]=_0x364c53[_0x25bee8(0x1274)]?(_0x39c0ce[_0x25bee8(0xeaa)][_0x25bee8(0x1e12)]||'')+'${EXTEN:'+_0x364c53[_0x25bee8(0x1274)]+'}':(_0x39c0ce[_0x25bee8(0xeaa)][_0x25bee8(0x1e12)]||'')+_0x25bee8(0x20df),_0x364c53[_0x25bee8(0x1425)]!=='none'?_0x39c0ce[_0x25bee8(0xeaa)][_0x25bee8(0xa08)][_0x25bee8(0x172b)](_0x25bee8(0x1ea4))<0x0&&(_0x39c0ce[_0x25bee8(0xeaa)][_0x25bee8(0xa08)]+=_0x25bee8(0x1ea4)):_0x39c0ce[_0x25bee8(0xeaa)][_0x25bee8(0xa08)]=_0x39c0ce[_0x25bee8(0xeaa)][_0x25bee8(0xa08)][_0x25bee8(0x5f4)]('U(xcally-mixmonitor-context)',''));if(_0x39c0ce[_0x25bee8(0xeaa)][_0x25bee8(0x8f2)]&&_0x39c0ce['dialogflow'][_0x25bee8(0x8f2)]===_0x25bee8(0x1802)){}else switch((_0x39c0ce['dialogflow'][_0x25bee8(0x1873)]||_0x39c0ce[_0x25bee8(0xeaa)][_0x25bee8(0x8f2)])['toLowerCase']()){case _0x25bee8(0x26ba):_0x39c0ce['dialogflow']['appdata']=_0x39c0ce[_0x25bee8(0xeaa)][_0x25bee8(0x19eb)]+'='+_0x39c0ce[_0x25bee8(0xeaa)][_0x25bee8(0x175d)];break;case _0x25bee8(0x1802):break;default:_0x3e04ac[0x0]=_0x39c0ce[_0x25bee8(0xeaa)][_0x25bee8(0x2293)],_0x3e04ac[0x1]=_0x39c0ce[_0x25bee8(0xeaa)][_0x25bee8(0x90b)],_0x3e04ac[0x2]=_0x39c0ce[_0x25bee8(0xeaa)]['welcomemessage'],_0x39c0ce['dialogflow'][_0x25bee8(0x168a)]=_0x3e04ac[_0x25bee8(0xb47)](',');}_0x45fd8b(_0x39c0ce[_0x25bee8(0xeaa)]);}function _0x45fd8b(_0x56fc34){_0x7942ee['hide'](_0x56fc34);}}const _0x152c15=_0x52c52f;;_0x512486[_0x313a4d(0x11c2)]=['$mdDialog','$q',_0x313a4d(0x1fe4),'whatsappAccountApp',_0x313a4d(0x815),_0x313a4d(0x247f),_0x313a4d(0xa87),_0x313a4d(0x2514)];function _0x512486(_0x5c996c,_0x238fb6,_0x91963b,_0x5b3da8,_0x293d8a,_0xbab404,_0x102cc0,_0x3eb232){const _0x27504c=_0x313a4d,_0x159f6f=this;_0x159f6f[_0x27504c(0x2321)]=_0x102cc0[_0x27504c(0xb12)](),_0x159f6f[_0x27504c(0xcef)]=[],_0x159f6f['title']=_0x27504c(0x1955)+(_0x5b3da8['appType']||_0x5b3da8[_0x27504c(0x1873)])[_0x27504c(0x1c37)](),_0x159f6f['gotoif']=angular[_0x27504c(0x235a)](_0x5b3da8),_0x159f6f[_0x27504c(0x2514)]=_0x3eb232,_0x159f6f['hasModulePermissions']={};if(_0x159f6f[_0x27504c(0x609)][_0x27504c(0x168a)])switch(_0x159f6f[_0x27504c(0x609)][_0x27504c(0x8f2)]?_0x159f6f[_0x27504c(0x609)][_0x27504c(0x8f2)][_0x27504c(0x256e)]():_0x159f6f[_0x27504c(0x609)][_0x27504c(0x1873)][_0x27504c(0x256e)]()){case _0x27504c(0x1802):break;case'dialogflow':{const _0x3f231c=_0x159f6f[_0x27504c(0x609)]['appdata']['split'](',');_0x159f6f[_0x27504c(0x609)][_0x27504c(0x2293)]=_0x3f231c[0x0],_0x159f6f[_0x27504c(0x609)][_0x27504c(0x90b)]=_0x3f231c[0x1],_0x159f6f[_0x27504c(0x609)][_0x27504c(0xaf3)]=_0x3f231c['slice'](0x2,_0x3f231c['length'])['join'](',');}break;case _0x27504c(0xa46):{const _0x2f1439=_0x159f6f[_0x27504c(0x609)]['appdata'][_0x27504c(0x10c8)](',');_0x159f6f[_0x27504c(0x609)][_0x27504c(0x153a)]=_0x2f1439[0x0],_0x159f6f[_0x27504c(0x609)]['clientEmail']=_0x2f1439[0x1],_0x159f6f[_0x27504c(0x609)][_0x27504c(0x2217)]=_0x2f1439[0x2],_0x159f6f['gotoif'][_0x27504c(0x90b)]=_0x2f1439[0x3],_0x159f6f[_0x27504c(0x609)][_0x27504c(0xaf3)]=_0x2f1439['slice'](0x4,_0x2f1439[_0x27504c(0x402)])[_0x27504c(0xb47)](',');}break;case _0x27504c(0x17d6):{const _0x493009=_0x159f6f[_0x27504c(0x609)][_0x27504c(0x168a)][_0x27504c(0x10c8)](',');_0x159f6f['gotoif'][_0x27504c(0x1651)]=_0x493009[0x0],_0x159f6f['gotoif'][_0x27504c(0x252)]=_0x493009[0x1],_0x159f6f[_0x27504c(0x609)][_0x27504c(0x1039)]=_0x493009[0x2],_0x159f6f['gotoif'][_0x27504c(0x8dd)]=_0x493009[0x3],_0x159f6f[_0x27504c(0x609)][_0x27504c(0xaf3)]=_0x493009[_0x27504c(0x1298)](0x4,_0x493009[_0x27504c(0x402)])[_0x27504c(0xb47)](',');}break;case _0x27504c(0x1713):{const _0x34279f=_0x159f6f[_0x27504c(0x609)]['appdata'][_0x27504c(0x10c8)](',');_0x159f6f[_0x27504c(0x609)][_0x27504c(0x583)]=isNaN(_0x34279f[0x0])?_0x34279f[0x0]:parseInt(_0x34279f[0x0],0xa),_0x159f6f['gotoif'][_0x27504c(0xa8d)]=_0x34279f[_0x27504c(0x1298)](0x1,_0x34279f[_0x27504c(0x402)])[_0x27504c(0xb47)](',');}break;case _0x27504c(0x7fd):_0x159f6f[_0x27504c(0x609)][_0x27504c(0xa8d)]=_0x159f6f['gotoif'][_0x27504c(0x168a)];break;case _0x27504c(0x26ba):_0x159f6f[_0x27504c(0x609)][_0x27504c(0x19eb)]=_0x159f6f['gotoif'][_0x27504c(0x168a)][_0x27504c(0x10c8)]('=')[0x0],_0x159f6f['gotoif'][_0x27504c(0x175d)]=_0x159f6f[_0x27504c(0x609)][_0x27504c(0x168a)][_0x27504c(0x10c8)]('=')[0x1];break;case'agi':_0x159f6f[_0x27504c(0x609)][_0x27504c(0x9e0)]=_0x159f6f[_0x27504c(0x609)][_0x27504c(0x168a)];break;default:{const _0x5d0229=_0x159f6f[_0x27504c(0x609)]['appdata'][_0x27504c(0x10c8)](',');_0x159f6f[_0x27504c(0x609)][_0x27504c(0x115f)]=_0x3f65c0()[_0x27504c(0x2635)](_0x5d0229[0x0])?_0x5d0229[0x0]:isNaN(_0x5d0229[0x0])?_0x5d0229[0x0]:parseInt(_0x5d0229[0x0],0xa),_0x159f6f[_0x27504c(0x609)]['truepriority']=_0x3f65c0()[_0x27504c(0x2635)](_0x5d0229[0x1])?_0x5d0229[0x1]:isNaN(_0x5d0229[0x1])?_0x5d0229[0x1]:parseInt(_0x5d0229[0x1],0xa),_0x159f6f[_0x27504c(0x609)][_0x27504c(0x28e1)]=_0x3f65c0()[_0x27504c(0x2635)](_0x5d0229[0x2])?_0x5d0229[0x2]:isNaN(_0x5d0229[0x2])?_0x5d0229[0x2]:parseInt(_0x5d0229[0x2],0xa);}break;}else{}_0x159f6f['gotoif'][_0x27504c(0x1142)]&&_0x159f6f[_0x27504c(0x609)]['type'][_0x27504c(0x256e)]()===_0x27504c(0xc9c)&&_0x159f6f[_0x27504c(0x609)][_0x27504c(0x8f2)][_0x27504c(0x256e)]()===_0x27504c(0x3bb)&&(_0x159f6f[_0x27504c(0x609)][_0x27504c(0x1e12)]=_0x159f6f['gotoif']['phone']?_0x159f6f[_0x27504c(0x609)][_0x27504c(0x1d55)]['split']('$')[0x0]:undefined,_0x159f6f[_0x27504c(0x609)]['callerId']=_0x159f6f[_0x27504c(0x609)][_0x27504c(0x11be)]?'CALLERID(all)='+_0x159f6f['gotoif']['callerID']:undefined);_0x159f6f['saveWhatsappAccountApp']=_0x1bcd4d,_0x159f6f['closeDialog']=_0x28a54f;function _0x1bcd4d(){const _0xb2d7e6=_0x27504c;_0x159f6f[_0xb2d7e6(0xcef)]=[];const _0x123f62=[];_0x159f6f[_0xb2d7e6(0x609)][_0xb2d7e6(0x1142)]&&_0x159f6f[_0xb2d7e6(0x609)][_0xb2d7e6(0x1142)][_0xb2d7e6(0x256e)]()==='outbound'&&_0x159f6f[_0xb2d7e6(0x609)][_0xb2d7e6(0x8f2)]==='outboundDial'&&(_0x159f6f[_0xb2d7e6(0x609)][_0xb2d7e6(0x1d55)]=_0x293d8a['cutdigits']?(_0x159f6f['gotoif'][_0xb2d7e6(0x1e12)]||'')+'${EXTEN:'+_0x293d8a[_0xb2d7e6(0x1274)]+'}':(_0x159f6f['gotoif']['prefix']||'')+_0xb2d7e6(0x20df),_0x293d8a[_0xb2d7e6(0x1425)]!=='none'?_0x159f6f[_0xb2d7e6(0x609)]['options'][_0xb2d7e6(0x172b)](_0xb2d7e6(0x1ea4))<0x0&&(_0x159f6f[_0xb2d7e6(0x609)]['options']+=_0xb2d7e6(0x1ea4)):_0x159f6f['gotoif'][_0xb2d7e6(0xa08)]=_0x159f6f['gotoif'][_0xb2d7e6(0xa08)][_0xb2d7e6(0x5f4)](_0xb2d7e6(0x1ea4),''));if(_0x159f6f[_0xb2d7e6(0x609)][_0xb2d7e6(0x8f2)]&&_0x159f6f[_0xb2d7e6(0x609)][_0xb2d7e6(0x8f2)]==='custom'){}else switch((_0x159f6f[_0xb2d7e6(0x609)]['app']||_0x159f6f[_0xb2d7e6(0x609)]['appType'])[_0xb2d7e6(0x256e)]()){case'set':_0x159f6f[_0xb2d7e6(0x609)][_0xb2d7e6(0x168a)]=_0x159f6f['gotoif'][_0xb2d7e6(0x19eb)]+'='+_0x159f6f[_0xb2d7e6(0x609)][_0xb2d7e6(0x175d)];break;case _0xb2d7e6(0x1802):break;default:_0x123f62[0x0]=_0x159f6f[_0xb2d7e6(0x609)][_0xb2d7e6(0x115f)],_0x123f62[0x1]=_0x159f6f[_0xb2d7e6(0x609)]['truepriority'],_0x123f62[0x2]=_0x159f6f[_0xb2d7e6(0x609)]['falsepriority'],_0x159f6f[_0xb2d7e6(0x609)]['appdata']=_0x123f62['join'](',');}_0x28a54f(_0x159f6f[_0xb2d7e6(0x609)]);}function _0x28a54f(_0x3e144a){const _0x15a075=_0x27504c;_0x5c996c[_0x15a075(0x2458)](_0x3e144a);}}const _0x5ef783=_0x512486;;_0x3f716a['$inject']=['$mdDialog','$q',_0x313a4d(0x1fe4),_0x313a4d(0x13c5),_0x313a4d(0x815),'api',_0x313a4d(0xa87),_0x313a4d(0x2514)];function _0x3f716a(_0xf6287f,_0x4a749f,_0x553bc8,_0x44a368,_0x2be1cf,_0x431d5,_0x5adf72,_0x22b401){const _0x51e85b=_0x313a4d,_0x4f986e=this;_0x4f986e['currentUser']=_0x5adf72['getCurrentUser'](),_0x4f986e[_0x51e85b(0xcef)]=[],_0x4f986e[_0x51e85b(0x1189)]='WHATSAPP.EDIT_'+(_0x44a368[_0x51e85b(0x8f2)]||_0x44a368[_0x51e85b(0x1873)])[_0x51e85b(0x1c37)](),_0x4f986e[_0x51e85b(0x28f4)]=angular[_0x51e85b(0x235a)](_0x44a368),_0x4f986e[_0x51e85b(0x2514)]=_0x22b401,_0x4f986e[_0x51e85b(0x855)]={};if(_0x4f986e[_0x51e85b(0x28f4)]['appdata'])switch(_0x4f986e[_0x51e85b(0x28f4)][_0x51e85b(0x8f2)]?_0x4f986e[_0x51e85b(0x28f4)][_0x51e85b(0x8f2)][_0x51e85b(0x256e)]():_0x4f986e['gotop'][_0x51e85b(0x1873)]['toLowerCase']()){case _0x51e85b(0x1802):break;case'dialogflow':{const _0x51f181=_0x4f986e[_0x51e85b(0x28f4)]['appdata'][_0x51e85b(0x10c8)](',');_0x4f986e[_0x51e85b(0x28f4)][_0x51e85b(0x2293)]=_0x51f181[0x0],_0x4f986e[_0x51e85b(0x28f4)]['language']=_0x51f181[0x1],_0x4f986e[_0x51e85b(0x28f4)][_0x51e85b(0xaf3)]=_0x51f181[_0x51e85b(0x1298)](0x2,_0x51f181[_0x51e85b(0x402)])[_0x51e85b(0xb47)](',');}break;case _0x51e85b(0xa46):{const _0x3bef22=_0x4f986e[_0x51e85b(0x28f4)][_0x51e85b(0x168a)][_0x51e85b(0x10c8)](',');_0x4f986e[_0x51e85b(0x28f4)][_0x51e85b(0x153a)]=_0x3bef22[0x0],_0x4f986e[_0x51e85b(0x28f4)][_0x51e85b(0x1392)]=_0x3bef22[0x1],_0x4f986e[_0x51e85b(0x28f4)]['privateKey']=_0x3bef22[0x2],_0x4f986e[_0x51e85b(0x28f4)]['language']=_0x3bef22[0x3],_0x4f986e['gotop'][_0x51e85b(0xaf3)]=_0x3bef22[_0x51e85b(0x1298)](0x4,_0x3bef22[_0x51e85b(0x402)])[_0x51e85b(0xb47)](',');}break;case'amazonlex':{const _0x1dee1f=_0x4f986e['gotop']['appdata'][_0x51e85b(0x10c8)](',');_0x4f986e['gotop'][_0x51e85b(0x1651)]=_0x1dee1f[0x0],_0x4f986e[_0x51e85b(0x28f4)][_0x51e85b(0x252)]=_0x1dee1f[0x1],_0x4f986e[_0x51e85b(0x28f4)]['lexregion']=_0x1dee1f[0x2],_0x4f986e[_0x51e85b(0x28f4)]['botname']=_0x1dee1f[0x3],_0x4f986e[_0x51e85b(0x28f4)][_0x51e85b(0xaf3)]=_0x1dee1f[_0x51e85b(0x1298)](0x4,_0x1dee1f[_0x51e85b(0x402)])[_0x51e85b(0xb47)](',');}break;case _0x51e85b(0x1713):{const _0x4f075d=_0x4f986e[_0x51e85b(0x28f4)][_0x51e85b(0x168a)][_0x51e85b(0x10c8)](',');_0x4f986e[_0x51e85b(0x28f4)]['times']=isNaN(_0x4f075d[0x0])?_0x4f075d[0x0]:parseInt(_0x4f075d[0x0],0xa),_0x4f986e[_0x51e85b(0x28f4)][_0x51e85b(0xa8d)]=_0x4f075d[_0x51e85b(0x1298)](0x1,_0x4f075d['length'])[_0x51e85b(0xb47)](',');}break;case _0x51e85b(0x7fd):_0x4f986e[_0x51e85b(0x28f4)][_0x51e85b(0xa8d)]=_0x4f986e['gotop'][_0x51e85b(0x168a)];break;case _0x51e85b(0x26ba):_0x4f986e[_0x51e85b(0x28f4)][_0x51e85b(0x19eb)]=_0x4f986e[_0x51e85b(0x28f4)][_0x51e85b(0x168a)][_0x51e85b(0x10c8)]('=')[0x0],_0x4f986e[_0x51e85b(0x28f4)][_0x51e85b(0x175d)]=_0x4f986e[_0x51e85b(0x28f4)]['appdata']['split']('=')[0x1];break;case _0x51e85b(0x1ecb):_0x4f986e[_0x51e85b(0x28f4)][_0x51e85b(0x9e0)]=_0x4f986e[_0x51e85b(0x28f4)][_0x51e85b(0x168a)];break;default:{const _0x32c759=_0x4f986e['gotop'][_0x51e85b(0x168a)][_0x51e85b(0x10c8)](',');_0x4f986e['gotop']['priority']=_0x3f65c0()[_0x51e85b(0x2635)](_0x32c759[0x0])?_0x32c759[0x0]:isNaN(_0x32c759[0x0])?_0x32c759[0x0]:parseInt(_0x32c759[0x0],0xa);}break;}else{}_0x4f986e[_0x51e85b(0x28f4)][_0x51e85b(0x1142)]&&_0x4f986e[_0x51e85b(0x28f4)][_0x51e85b(0x1142)][_0x51e85b(0x256e)]()===_0x51e85b(0xc9c)&&_0x4f986e['gotop'][_0x51e85b(0x8f2)][_0x51e85b(0x256e)]()==='outbounddial'&&(_0x4f986e[_0x51e85b(0x28f4)][_0x51e85b(0x1e12)]=_0x4f986e['gotop'][_0x51e85b(0x1d55)]?_0x4f986e[_0x51e85b(0x28f4)][_0x51e85b(0x1d55)][_0x51e85b(0x10c8)]('$')[0x0]:undefined,_0x4f986e['gotop'][_0x51e85b(0x1d43)]=_0x4f986e['gotop'][_0x51e85b(0x11be)]?_0x51e85b(0x1b60)+_0x4f986e[_0x51e85b(0x28f4)]['callerID']:undefined);_0x4f986e['saveWhatsappAccountApp']=_0x425b98,_0x4f986e[_0x51e85b(0x13f3)]=_0x4c0a83;function _0x425b98(){const _0x24fad5=_0x51e85b;_0x4f986e[_0x24fad5(0xcef)]=[];const _0x218f0a=[];_0x4f986e[_0x24fad5(0x28f4)]['type']&&_0x4f986e[_0x24fad5(0x28f4)][_0x24fad5(0x1142)][_0x24fad5(0x256e)]()===_0x24fad5(0xc9c)&&_0x4f986e[_0x24fad5(0x28f4)][_0x24fad5(0x8f2)]===_0x24fad5(0x118b)&&(_0x4f986e[_0x24fad5(0x28f4)][_0x24fad5(0x1d55)]=_0x2be1cf[_0x24fad5(0x1274)]?(_0x4f986e['gotop'][_0x24fad5(0x1e12)]||'')+_0x24fad5(0x2147)+_0x2be1cf['cutdigits']+'}':(_0x4f986e[_0x24fad5(0x28f4)][_0x24fad5(0x1e12)]||'')+_0x24fad5(0x20df),_0x2be1cf[_0x24fad5(0x1425)]!==_0x24fad5(0x1642)?_0x4f986e[_0x24fad5(0x28f4)][_0x24fad5(0xa08)][_0x24fad5(0x172b)]('U(xcally-mixmonitor-context)')<0x0&&(_0x4f986e[_0x24fad5(0x28f4)][_0x24fad5(0xa08)]+=_0x24fad5(0x1ea4)):_0x4f986e[_0x24fad5(0x28f4)]['options']=_0x4f986e[_0x24fad5(0x28f4)][_0x24fad5(0xa08)][_0x24fad5(0x5f4)](_0x24fad5(0x1ea4),''));if(_0x4f986e[_0x24fad5(0x28f4)][_0x24fad5(0x8f2)]&&_0x4f986e['gotop']['appType']===_0x24fad5(0x1802)){}else switch((_0x4f986e[_0x24fad5(0x28f4)][_0x24fad5(0x1873)]||_0x4f986e[_0x24fad5(0x28f4)][_0x24fad5(0x8f2)])[_0x24fad5(0x256e)]()){case _0x24fad5(0x26ba):_0x4f986e[_0x24fad5(0x28f4)][_0x24fad5(0x168a)]=_0x4f986e[_0x24fad5(0x28f4)][_0x24fad5(0x19eb)]+'='+_0x4f986e[_0x24fad5(0x28f4)]['value'];break;case'custom':break;default:_0x218f0a[0x0]=_0x4f986e[_0x24fad5(0x28f4)][_0x24fad5(0xa6a)],_0x4f986e[_0x24fad5(0x28f4)]['appdata']=_0x218f0a[_0x24fad5(0xb47)](',');}_0x4c0a83(_0x4f986e[_0x24fad5(0x28f4)]);}function _0x4c0a83(_0x568a2a){const _0x233f03=_0x51e85b;_0xf6287f[_0x233f03(0x2458)](_0x568a2a);}}const _0x46b5e7=_0x3f716a;;_0x45f92d[_0x313a4d(0x11c2)]=[_0x313a4d(0x1862),_0x313a4d(0x10e8),_0x313a4d(0x1c7e),'IndexFactory',_0x313a4d(0x2765),_0x313a4d(0x278f),'toasty','api','Auth','crudPermissions'];function _0x45f92d(_0x25221f,_0x486128,_0x34cfc5,_0x249ad2,_0x5d054f,_0x50c57b,_0x43ebc5,_0x570d7e,_0xde5112,_0x1dab9a){const _0x547b27=_0x313a4d,_0x4366d4=this;_0x4366d4[_0x547b27(0x2321)]=_0xde5112[_0x547b27(0xb12)](),_0x4366d4[_0x547b27(0xcef)]=[],_0x4366d4['title']=_0x547b27(0x56d),_0x4366d4[_0x547b27(0x2765)]=angular['copy'](_0x5d054f),_0x4366d4['intervals']=_0x50c57b,_0x4366d4['newInterval']=![],_0x4366d4['types']=['always',_0x547b27(0x1802),_0x547b27(0x25f4)],_0x4366d4[_0x547b27(0x2514)]=_0x1dab9a,_0x4366d4[_0x547b27(0x1e35)]=_0x249ad2[_0x547b27(0x2045)](),_0x4366d4['monthNumber']=_0x249ad2[_0x547b27(0xead)](),_0x4366d4[_0x547b27(0x2156)]=_0x249ad2['getMonthName'](),_0x4366d4['daysOfMonth']=_0x249ad2[_0x547b27(0x1421)]();if(!_0x4366d4['interval'])_0x4366d4['interval']={'interval':_0x547b27(0x1559)},_0x4366d4[_0x547b27(0x1142)]=_0x547b27(0xd85),_0x4366d4[_0x547b27(0x1189)]=_0x547b27(0x79c),_0x4366d4[_0x547b27(0xa76)]=!![];else{if(_0x4366d4[_0x547b27(0x2765)][_0x547b27(0x2765)]!==_0x547b27(0x1559)){_0x4366d4[_0x547b27(0x1142)]=_0x547b27(0x1802);const _0xeac67a=_0x4366d4[_0x547b27(0x2765)]['interval'][_0x547b27(0x10c8)](','),_0x57af2f=_0xeac67a[0x0],_0x30ca4d=_0xeac67a[0x1],_0x36363d=_0xeac67a[0x2],_0x73eba5=_0xeac67a[0x3];if(_0x57af2f!=='*'){const _0x3222a7=_0x57af2f[_0x547b27(0x10c8)]('-')[0x0],_0x571d6e=_0x57af2f[_0x547b27(0x10c8)]('-')[0x1];let _0x4debe2;_0x4debe2=new Date(),_0x4debe2[_0x547b27(0x25cd)](Number(_0x3222a7['split'](':')[0x0])),_0x4debe2[_0x547b27(0x2348)](Number(_0x3222a7[_0x547b27(0x10c8)](':')[0x1])),_0x4366d4['timeRangeFrom']=_0x4debe2,_0x4debe2=new Date(),_0x4debe2['setHours'](Number(_0x571d6e['split'](':')[0x0])),_0x4debe2[_0x547b27(0x2348)](Number(_0x571d6e[_0x547b27(0x10c8)](':')[0x1])),_0x4366d4['timeRangeTo']=_0x4debe2;}_0x30ca4d!=='*'&&(_0x4366d4[_0x547b27(0x1455)]=_0x30ca4d['split']('-')[0x0],_0x4366d4[_0x547b27(0x27a1)]=_0x30ca4d[_0x547b27(0x10c8)]('-')[0x1]),_0x36363d!=='*'&&(_0x4366d4[_0x547b27(0xf0b)]=_0x36363d[_0x547b27(0x10c8)]('-')[0x0],_0x4366d4[_0x547b27(0x896)]=_0x36363d['split']('-')[0x1]),_0x73eba5!=='*'&&(_0x4366d4[_0x547b27(0x167)]=_0x73eba5[_0x547b27(0x10c8)]('-')[0x0],_0x4366d4[_0x547b27(0x9c3)]=_0x73eba5['split']('-')[0x1]);}else _0x4366d4['type']=_0x547b27(0xd85);}_0x25221f[_0x547b27(0x16a)]['id']&&!_0x4366d4[_0x547b27(0x2765)][_0x547b27(0xea)]&&(_0x4366d4[_0x547b27(0x2765)]['IntervalId']=_0x25221f['params']['id']);_0x4366d4['interval']['IntervalId']&&_0x4366d4[_0x547b27(0x2765)][_0x547b27(0xea)]&&(_0x4366d4[_0x547b27(0x1142)]=_0x547b27(0x25f4));_0x4366d4[_0x547b27(0x2f0)]=_0x55e015,_0x4366d4[_0x547b27(0x1242)]=_0x1890fb,_0x4366d4['closeDialog']=_0x4d7bcd;_0x4366d4[_0x547b27(0x2765)][_0x547b27(0xea)]&&(_0xde5112[_0x547b27(0x23e0)](_0x547b27(0x174b))?_0x570d7e['interval']['get']({'fields':_0x547b27(0x648),'IntervalId':_0x547b27(0x203c),'nolimit':!![]})[_0x547b27(0x2945)][_0x547b27(0x146b)](function(_0x2d341b){const _0x518700=_0x547b27;_0x4366d4[_0x518700(0x278f)]=_0x2d341b[_0x518700(0x19c7)]||[];})[_0x547b27(0x129e)](function(_0x473b9a){const _0x25f579=_0x547b27;_0x43ebc5[_0x25f579(0x1980)]({'title':_0x473b9a[_0x25f579(0x107b)]?'API:'+_0x473b9a['status']+'\x20-\x20'+_0x473b9a[_0x25f579(0x167f)]:'SYSTEM:GET_INTERVALS','msg':_0x473b9a[_0x25f579(0x524)]?JSON[_0x25f579(0x10bb)](_0x473b9a['data']):_0x473b9a[_0x25f579(0xd5f)]()});}):_0x570d7e[_0x547b27(0x2765)]['get']({'fields':'id,name,interval,IntervalId','IntervalId':'null','nolimit':!![]})[_0x547b27(0x2945)][_0x547b27(0x146b)](function(_0x555b8e){const _0x2686c9=_0x547b27;_0x4366d4[_0x2686c9(0x278f)]=_0x555b8e[_0x2686c9(0x19c7)]||[];})[_0x547b27(0x146b)](function(){const _0x22ac4d=_0x547b27;return _0x570d7e[_0x22ac4d(0x1366)][_0x22ac4d(0x16b4)]({'userProfileId':_0x4366d4[_0x22ac4d(0x2321)][_0x22ac4d(0x209a)],'sectionId':0x3ec})[_0x22ac4d(0x2945)];})[_0x547b27(0x146b)](function(_0x3073a5){const _0x42949e=_0x547b27,_0x389871=_0x3073a5&&_0x3073a5[_0x42949e(0x19c7)]?_0x3073a5[_0x42949e(0x19c7)][0x0]:null;if(!_0x389871)_0x4366d4[_0x42949e(0x278f)]=[];else{if(!_0x389871[_0x42949e(0x11d2)])return _0x570d7e[_0x42949e(0xdcc)][_0x42949e(0x16b4)]({'sectionId':_0x389871['id']})[_0x42949e(0x2945)][_0x42949e(0x146b)](function(_0x4801dd){const _0x15b2e2=_0x42949e,_0x4ed7af=_0x4801dd&&_0x4801dd[_0x15b2e2(0x19c7)]?_0x4801dd[_0x15b2e2(0x19c7)]:[],_0x31781b=[];let _0x6841e=null;_0x4366d4[_0x15b2e2(0x2765)]&&(_0x6841e=_0x3f65c0()[_0x15b2e2(0xc84)](_0x4366d4[_0x15b2e2(0x278f)],{'name':_0x4366d4[_0x15b2e2(0x2765)][_0x15b2e2(0x1ff2)]})),_0x6841e&&!_0x3f65c0()[_0x15b2e2(0x1360)](_0x4ed7af,['resourceId',_0x6841e['id']])&&_0x4366d4[_0x15b2e2(0x278f)][_0x15b2e2(0x1df5)](function(_0xd7244f){const _0x4b9d51=_0x15b2e2;_0xd7244f['id']===_0x6841e['id']&&(_0xd7244f['canSelect']=![],_0x31781b[_0x4b9d51(0x1f47)](_0xd7244f));}),_0x4366d4[_0x15b2e2(0x278f)]=_0x31781b;});}})[_0x547b27(0x129e)](function(_0x5db986){const _0x39dd52=_0x547b27;_0x43ebc5[_0x39dd52(0x1980)]({'title':_0x5db986[_0x39dd52(0x107b)]?_0x39dd52(0x262a)+_0x5db986[_0x39dd52(0x107b)]+_0x39dd52(0x1315)+_0x5db986[_0x39dd52(0x167f)]:'SYSTEM:GET_INTERVALS','msg':_0x5db986[_0x39dd52(0x524)]?JSON[_0x39dd52(0x10bb)](_0x5db986[_0x39dd52(0x524)]):_0x5db986[_0x39dd52(0xd5f)]()});}));function _0x18e0ee(){const _0x130c45=_0x547b27;switch(_0x4366d4[_0x130c45(0x1142)]){case _0x130c45(0xd85):case _0x130c45(0x25f4):return _0x130c45(0x1559);case _0x130c45(0x1802):{const _0x15ce22=[];if(_0x4366d4[_0x130c45(0x2469)]!=='*'&&_0x4366d4[_0x130c45(0x2469)]&&_0x4366d4[_0x130c45(0x637)]){const _0x19083f=(_0x4366d4['timeRangeFrom'][_0x130c45(0x1d57)]()<0xa?'0':'')+_0x4366d4[_0x130c45(0x2469)][_0x130c45(0x1d57)]()+':'+((_0x4366d4[_0x130c45(0x2469)][_0x130c45(0x7fc)]()<0xa?'0':'')+_0x4366d4[_0x130c45(0x2469)][_0x130c45(0x7fc)]()),_0x61f907=(_0x4366d4[_0x130c45(0x637)][_0x130c45(0x1d57)]()<0xa?'0':'')+_0x4366d4[_0x130c45(0x637)][_0x130c45(0x1d57)]()+':'+((_0x4366d4['timeRangeTo'][_0x130c45(0x7fc)]()<0xa?'0':'')+_0x4366d4[_0x130c45(0x637)][_0x130c45(0x7fc)]());_0x15ce22[_0x130c45(0x1f47)](_0x19083f+'-'+_0x61f907);}else _0x15ce22[_0x130c45(0x1f47)]('*');return _0x4366d4['dayOfWeekFrom']?_0x4366d4[_0x130c45(0x27a1)]?_0x15ce22['push'](_0x4366d4[_0x130c45(0x1455)]+'-'+_0x4366d4['dayOfWeekTo']):_0x15ce22[_0x130c45(0x1f47)](_0x4366d4['dayOfWeekFrom']):_0x15ce22[_0x130c45(0x1f47)]('*'),_0x4366d4[_0x130c45(0xf0b)]?_0x4366d4[_0x130c45(0x896)]?_0x15ce22['push'](_0x4366d4[_0x130c45(0xf0b)]+'-'+_0x4366d4[_0x130c45(0x896)]):_0x15ce22[_0x130c45(0x1f47)](_0x4366d4[_0x130c45(0xf0b)]):_0x15ce22[_0x130c45(0x1f47)]('*'),_0x4366d4['monthFrom']?_0x4366d4[_0x130c45(0x9c3)]?_0x15ce22[_0x130c45(0x1f47)](_0x4366d4[_0x130c45(0x167)]+'-'+_0x4366d4[_0x130c45(0x9c3)]):_0x15ce22['push'](_0x4366d4[_0x130c45(0x167)]):_0x15ce22[_0x130c45(0x1f47)]('*'),_0x15ce22['join']();}}}function _0x55e015(){const _0x31bf69=_0x547b27;_0x4366d4[_0x31bf69(0xcef)]=[],_0x4366d4[_0x31bf69(0x2765)][_0x31bf69(0x2765)]=_0x18e0ee(),_0x570d7e[_0x31bf69(0x2765)][_0x31bf69(0x1e3)](_0x4366d4[_0x31bf69(0x2765)])[_0x31bf69(0x2945)][_0x31bf69(0x146b)](function(_0x5415a6){const _0x51bc03=_0x31bf69;_0x4366d4[_0x51bc03(0x278f)][_0x51bc03(0x1f47)](_0x5415a6),_0x43ebc5[_0x51bc03(0x1c75)]({'title':_0x51bc03(0x17f5),'msg':_0x4366d4[_0x51bc03(0x2765)][_0x51bc03(0x19eb)]?_0x4366d4[_0x51bc03(0x2765)][_0x51bc03(0x19eb)]+'\x20has\x20been\x20created!':''}),_0x4d7bcd();})[_0x31bf69(0x129e)](function(_0x201def){const _0x57696b=_0x31bf69;console[_0x57696b(0x1980)](_0x201def),_0x4366d4['errors']=_0x201def[_0x57696b(0x524)][_0x57696b(0xcef)]||[{'message':_0x201def[_0x57696b(0xd5f)](),'type':_0x57696b(0x7e7)}];});}function _0x1890fb(){const _0x591bdb=_0x547b27;_0x4366d4[_0x591bdb(0xcef)]=[],_0x4366d4[_0x591bdb(0x2765)]['interval']=_0x18e0ee(),_0x4366d4[_0x591bdb(0x2765)][_0x591bdb(0xea)]?(_0x4366d4[_0x591bdb(0x1142)]!==_0x591bdb(0x25f4)&&(_0x4366d4[_0x591bdb(0x2765)][_0x591bdb(0x1ff2)]=null),_0x4d7bcd(_0x4366d4[_0x591bdb(0x2765)])):_0x570d7e[_0x591bdb(0x2765)][_0x591bdb(0x18e1)]({'id':_0x4366d4[_0x591bdb(0x2765)]['id']},_0x4366d4['interval'])['$promise'][_0x591bdb(0x146b)](function(_0x532c74){const _0x5a86bf=_0x591bdb,_0xbe77c9=_0x3f65c0()[_0x5a86bf(0xc84)](_0x4366d4[_0x5a86bf(0x278f)],{'id':_0x532c74['id']});_0xbe77c9&&_0x3f65c0()[_0x5a86bf(0x168d)](_0xbe77c9,_0x532c74),_0x43ebc5['success']({'title':_0x5a86bf(0x1d51),'msg':'Interval\x20has\x20been\x20saved!'}),_0x4d7bcd();})[_0x591bdb(0x129e)](function(_0x3276f3){const _0x48631d=_0x591bdb;console[_0x48631d(0x1980)](_0x3276f3),_0x4366d4[_0x48631d(0xcef)]=_0x3276f3[_0x48631d(0x524)][_0x48631d(0xcef)]||[{'message':_0x3276f3[_0x48631d(0xd5f)](),'type':'api.interval.update'}];});}function _0x4d7bcd(_0x1fabed){const _0x1a7fba=_0x547b27;_0x486128[_0x1a7fba(0x2458)](_0x1fabed);}}const _0x430574=_0x45f92d;;_0x5a9168[_0x313a4d(0x11c2)]=['$mdDialog','$q','toasty',_0x313a4d(0x13c5),'whatsappAccount',_0x313a4d(0x247f),'Auth',_0x313a4d(0x2514)];function _0x5a9168(_0x2a41f1,_0x5128fb,_0x2573ad,_0x197fc2,_0x56e16d,_0x5e7f77,_0x1ce9f6,_0x3b4f17){const _0x372440=_0x313a4d,_0x467023=this;_0x467023[_0x372440(0x2321)]=_0x1ce9f6['getCurrentUser'](),_0x467023[_0x372440(0xcef)]=[],_0x467023[_0x372440(0x1189)]='WHATSAPP.EDIT_'+(_0x197fc2[_0x372440(0x8f2)]||_0x197fc2[_0x372440(0x1873)])[_0x372440(0x1c37)](),_0x467023['noop']=angular['copy'](_0x197fc2),_0x467023[_0x372440(0x2514)]=_0x3b4f17,_0x467023['hasModulePermissions']={};if(_0x467023[_0x372440(0x309)]['appdata'])switch(_0x467023['noop'][_0x372440(0x8f2)]?_0x467023[_0x372440(0x309)][_0x372440(0x8f2)][_0x372440(0x256e)]():_0x467023['noop']['app'][_0x372440(0x256e)]()){case _0x372440(0x1802):break;case'dialogflow':{const _0x52833c=_0x467023[_0x372440(0x309)][_0x372440(0x168a)][_0x372440(0x10c8)](',');_0x467023[_0x372440(0x309)][_0x372440(0x2293)]=_0x52833c[0x0],_0x467023['noop'][_0x372440(0x90b)]=_0x52833c[0x1],_0x467023[_0x372440(0x309)]['welcomemessage']=_0x52833c[_0x372440(0x1298)](0x2,_0x52833c[_0x372440(0x402)])[_0x372440(0xb47)](',');}break;case _0x372440(0xa46):{const _0x2bad3f=_0x467023['noop'][_0x372440(0x168a)][_0x372440(0x10c8)](',');_0x467023['noop'][_0x372440(0x153a)]=_0x2bad3f[0x0],_0x467023[_0x372440(0x309)][_0x372440(0x1392)]=_0x2bad3f[0x1],_0x467023['noop'][_0x372440(0x2217)]=_0x2bad3f[0x2],_0x467023[_0x372440(0x309)][_0x372440(0x90b)]=_0x2bad3f[0x3],_0x467023['noop'][_0x372440(0xaf3)]=_0x2bad3f[_0x372440(0x1298)](0x4,_0x2bad3f['length'])[_0x372440(0xb47)](',');}break;case _0x372440(0x17d6):{const _0x80d6af=_0x467023[_0x372440(0x309)]['appdata']['split'](',');_0x467023[_0x372440(0x309)]['accesskeyid']=_0x80d6af[0x0],_0x467023[_0x372440(0x309)][_0x372440(0x252)]=_0x80d6af[0x1],_0x467023['noop'][_0x372440(0x1039)]=_0x80d6af[0x2],_0x467023[_0x372440(0x309)][_0x372440(0x8dd)]=_0x80d6af[0x3],_0x467023['noop'][_0x372440(0xaf3)]=_0x80d6af[_0x372440(0x1298)](0x4,_0x80d6af[_0x372440(0x402)])['join'](',');}break;case _0x372440(0x1713):{const _0x2f2990=_0x467023[_0x372440(0x309)][_0x372440(0x168a)][_0x372440(0x10c8)](',');_0x467023[_0x372440(0x309)]['times']=isNaN(_0x2f2990[0x0])?_0x2f2990[0x0]:parseInt(_0x2f2990[0x0],0xa),_0x467023['noop']['text']=_0x2f2990[_0x372440(0x1298)](0x1,_0x2f2990[_0x372440(0x402)])['join'](',');}break;case _0x372440(0x7fd):_0x467023['noop'][_0x372440(0xa8d)]=_0x467023[_0x372440(0x309)][_0x372440(0x168a)];break;case'set':_0x467023[_0x372440(0x309)][_0x372440(0x19eb)]=_0x467023[_0x372440(0x309)][_0x372440(0x168a)][_0x372440(0x10c8)]('=')[0x0],_0x467023[_0x372440(0x309)][_0x372440(0x175d)]=_0x467023[_0x372440(0x309)][_0x372440(0x168a)][_0x372440(0x10c8)]('=')[0x1];break;case'agi':_0x467023[_0x372440(0x309)][_0x372440(0x9e0)]=_0x467023[_0x372440(0x309)][_0x372440(0x168a)];break;default:{const _0x3b851d=_0x467023[_0x372440(0x309)][_0x372440(0x168a)][_0x372440(0x10c8)](',');_0x467023[_0x372440(0x309)][_0x372440(0x175d)]=_0x3f65c0()[_0x372440(0x2635)](_0x3b851d[0x0])?_0x3b851d[0x0]:isNaN(_0x3b851d[0x0])?_0x3b851d[0x0]:parseInt(_0x3b851d[0x0],0xa);}break;}else{}_0x467023[_0x372440(0x309)][_0x372440(0x1142)]&&_0x467023[_0x372440(0x309)]['type']['toLowerCase']()==='outbound'&&_0x467023['noop'][_0x372440(0x8f2)]['toLowerCase']()===_0x372440(0x3bb)&&(_0x467023['noop']['prefix']=_0x467023['noop']['phone']?_0x467023[_0x372440(0x309)][_0x372440(0x1d55)][_0x372440(0x10c8)]('$')[0x0]:undefined,_0x467023[_0x372440(0x309)][_0x372440(0x1d43)]=_0x467023[_0x372440(0x309)][_0x372440(0x11be)]?_0x372440(0x1b60)+_0x467023[_0x372440(0x309)][_0x372440(0x11be)]:undefined);_0x467023[_0x372440(0x7de)]=_0x26dded,_0x467023['closeDialog']=_0x58779c;function _0x26dded(){const _0x58e3ac=_0x372440;_0x467023[_0x58e3ac(0xcef)]=[];const _0x3cf1ba=[];_0x467023[_0x58e3ac(0x309)]['type']&&_0x467023[_0x58e3ac(0x309)][_0x58e3ac(0x1142)][_0x58e3ac(0x256e)]()===_0x58e3ac(0xc9c)&&_0x467023[_0x58e3ac(0x309)]['appType']==='outboundDial'&&(_0x467023[_0x58e3ac(0x309)]['phone']=_0x56e16d[_0x58e3ac(0x1274)]?(_0x467023['noop']['prefix']||'')+'${EXTEN:'+_0x56e16d[_0x58e3ac(0x1274)]+'}':(_0x467023[_0x58e3ac(0x309)][_0x58e3ac(0x1e12)]||'')+_0x58e3ac(0x20df),_0x56e16d['recordingFormat']!==_0x58e3ac(0x1642)?_0x467023['noop'][_0x58e3ac(0xa08)]['indexOf'](_0x58e3ac(0x1ea4))<0x0&&(_0x467023[_0x58e3ac(0x309)][_0x58e3ac(0xa08)]+=_0x58e3ac(0x1ea4)):_0x467023[_0x58e3ac(0x309)][_0x58e3ac(0xa08)]=_0x467023[_0x58e3ac(0x309)]['options']['replace'](_0x58e3ac(0x1ea4),''));if(_0x467023[_0x58e3ac(0x309)]['appType']&&_0x467023[_0x58e3ac(0x309)][_0x58e3ac(0x8f2)]===_0x58e3ac(0x1802)){}else switch((_0x467023[_0x58e3ac(0x309)]['app']||_0x467023[_0x58e3ac(0x309)][_0x58e3ac(0x8f2)])['toLowerCase']()){case _0x58e3ac(0x26ba):_0x467023['noop']['appdata']=_0x467023['noop'][_0x58e3ac(0x19eb)]+'='+_0x467023['noop'][_0x58e3ac(0x175d)];break;case _0x58e3ac(0x1802):break;default:_0x3cf1ba[0x0]=_0x467023[_0x58e3ac(0x309)]['value'],_0x467023[_0x58e3ac(0x309)][_0x58e3ac(0x168a)]=_0x3cf1ba[_0x58e3ac(0xb47)](',');}_0x58779c(_0x467023[_0x58e3ac(0x309)]);}function _0x58779c(_0x16de70){const _0x5d8f46=_0x372440;_0x2a41f1[_0x5d8f46(0x2458)](_0x16de70);}}const _0xd28de4=_0x5a9168;;_0x559f90[_0x313a4d(0x11c2)]=[_0x313a4d(0x10e8),'$q',_0x313a4d(0x1fe4),_0x313a4d(0x13c5),_0x313a4d(0x815),_0x313a4d(0x247f),_0x313a4d(0xa87),_0x313a4d(0x2514)];function _0x559f90(_0x320c91,_0x415529,_0x57226a,_0x3b192a,_0x307d0f,_0xd05388,_0x2dbf11,_0x4e4182){const _0x558db7=_0x313a4d,_0x4df58b=this;_0x4df58b[_0x558db7(0x2321)]=_0x2dbf11[_0x558db7(0xb12)](),_0x4df58b[_0x558db7(0xcef)]=[],_0x4df58b['title']=_0x558db7(0x1955)+(_0x3b192a[_0x558db7(0x8f2)]||_0x3b192a[_0x558db7(0x1873)])['toUpperCase'](),_0x4df58b[_0x558db7(0x1c72)]=angular[_0x558db7(0x235a)](_0x3b192a),_0x4df58b[_0x558db7(0x2514)]=_0x4e4182,_0x4df58b[_0x558db7(0x855)]={};if(_0x4df58b['queue']['appdata'])switch(_0x4df58b[_0x558db7(0x1c72)][_0x558db7(0x8f2)]?_0x4df58b[_0x558db7(0x1c72)][_0x558db7(0x8f2)][_0x558db7(0x256e)]():_0x4df58b['queue'][_0x558db7(0x1873)]['toLowerCase']()){case _0x558db7(0x1802):break;case _0x558db7(0xeaa):{const _0x2bb247=_0x4df58b[_0x558db7(0x1c72)]['appdata'][_0x558db7(0x10c8)](',');_0x4df58b[_0x558db7(0x1c72)]['key']=_0x2bb247[0x0],_0x4df58b[_0x558db7(0x1c72)]['language']=_0x2bb247[0x1],_0x4df58b[_0x558db7(0x1c72)][_0x558db7(0xaf3)]=_0x2bb247[_0x558db7(0x1298)](0x2,_0x2bb247[_0x558db7(0x402)])[_0x558db7(0xb47)](',');}break;case _0x558db7(0xa46):{const _0x5a438f=_0x4df58b['queue']['appdata'][_0x558db7(0x10c8)](',');_0x4df58b[_0x558db7(0x1c72)][_0x558db7(0x153a)]=_0x5a438f[0x0],_0x4df58b[_0x558db7(0x1c72)][_0x558db7(0x1392)]=_0x5a438f[0x1],_0x4df58b['queue'][_0x558db7(0x2217)]=_0x5a438f[0x2],_0x4df58b[_0x558db7(0x1c72)]['language']=_0x5a438f[0x3],_0x4df58b[_0x558db7(0x1c72)][_0x558db7(0xaf3)]=_0x5a438f['slice'](0x4,_0x5a438f[_0x558db7(0x402)])[_0x558db7(0xb47)](',');}break;case'amazonlex':{const _0x37b605=_0x4df58b[_0x558db7(0x1c72)][_0x558db7(0x168a)][_0x558db7(0x10c8)](',');_0x4df58b[_0x558db7(0x1c72)][_0x558db7(0x1651)]=_0x37b605[0x0],_0x4df58b['queue'][_0x558db7(0x252)]=_0x37b605[0x1],_0x4df58b[_0x558db7(0x1c72)][_0x558db7(0x1039)]=_0x37b605[0x2],_0x4df58b[_0x558db7(0x1c72)][_0x558db7(0x8dd)]=_0x37b605[0x3],_0x4df58b[_0x558db7(0x1c72)][_0x558db7(0xaf3)]=_0x37b605[_0x558db7(0x1298)](0x4,_0x37b605[_0x558db7(0x402)])[_0x558db7(0xb47)](',');}break;case'autoreply':{const _0xbb5b6b=_0x4df58b['queue'][_0x558db7(0x168a)]['split'](',');_0x4df58b['queue'][_0x558db7(0x583)]=isNaN(_0xbb5b6b[0x0])?_0xbb5b6b[0x0]:parseInt(_0xbb5b6b[0x0],0xa),_0x4df58b[_0x558db7(0x1c72)][_0x558db7(0xa8d)]=_0xbb5b6b['slice'](0x1,_0xbb5b6b[_0x558db7(0x402)])['join'](',');}break;case _0x558db7(0x7fd):_0x4df58b['queue'][_0x558db7(0xa8d)]=_0x4df58b[_0x558db7(0x1c72)][_0x558db7(0x168a)];break;case _0x558db7(0x26ba):_0x4df58b[_0x558db7(0x1c72)][_0x558db7(0x19eb)]=_0x4df58b[_0x558db7(0x1c72)]['appdata'][_0x558db7(0x10c8)]('=')[0x0],_0x4df58b[_0x558db7(0x1c72)]['value']=_0x4df58b[_0x558db7(0x1c72)][_0x558db7(0x168a)]['split']('=')[0x1];break;case _0x558db7(0x1ecb):_0x4df58b[_0x558db7(0x1c72)][_0x558db7(0x9e0)]=_0x4df58b['queue']['appdata'];break;default:{const _0x20d269=_0x4df58b['queue'][_0x558db7(0x168a)][_0x558db7(0x10c8)](',');_0x4df58b[_0x558db7(0x1c72)][_0x558db7(0x1c72)]=_0x3f65c0()[_0x558db7(0x2635)](_0x20d269[0x0])?_0x20d269[0x0]:isNaN(_0x20d269[0x0])?_0x20d269[0x0]:parseInt(_0x20d269[0x0],0xa),_0x4df58b['queue'][_0x558db7(0xa9c)]=_0x3f65c0()[_0x558db7(0x2635)](_0x20d269[0x1])?_0x20d269[0x1]:isNaN(_0x20d269[0x1])?_0x20d269[0x1]:parseInt(_0x20d269[0x1],0xa);}break;}else _0x4df58b[_0x558db7(0x1c72)][_0x558db7(0x1c72)]=0x12c,_0x4df58b[_0x558db7(0x1c72)][_0x558db7(0xa9c)]=0x12c;_0x4df58b[_0x558db7(0x1c72)][_0x558db7(0x1142)]&&_0x4df58b[_0x558db7(0x1c72)][_0x558db7(0x1142)][_0x558db7(0x256e)]()===_0x558db7(0xc9c)&&_0x4df58b[_0x558db7(0x1c72)][_0x558db7(0x8f2)][_0x558db7(0x256e)]()==='outbounddial'&&(_0x4df58b[_0x558db7(0x1c72)][_0x558db7(0x1e12)]=_0x4df58b['queue']['phone']?_0x4df58b[_0x558db7(0x1c72)][_0x558db7(0x1d55)][_0x558db7(0x10c8)]('$')[0x0]:undefined,_0x4df58b[_0x558db7(0x1c72)][_0x558db7(0x1d43)]=_0x4df58b['queue'][_0x558db7(0x11be)]?_0x558db7(0x1b60)+_0x4df58b['queue']['callerID']:undefined);_0x4df58b[_0x558db7(0x7de)]=_0x10fc4e,_0x4df58b[_0x558db7(0x13f3)]=_0x21a76c,_0x2dbf11[_0x558db7(0x23e0)]('admin')?_0xd05388[_0x558db7(0x1b3b)]['get']({'fields':'id,name,type','sort':'name','nolimit':_0x558db7(0x1185)})[_0x558db7(0x2945)][_0x558db7(0x146b)](function(_0xc3fe61){const _0x56e251=_0x558db7;_0x4df58b[_0x56e251(0x1b32)]=_0xc3fe61['rows']||[];})[_0x558db7(0x129e)](function(_0x1109ae){const _0x4688d9=_0x558db7;_0x57226a[_0x4688d9(0x1980)]({'title':_0x1109ae[_0x4688d9(0x107b)]?'API:'+_0x1109ae[_0x4688d9(0x107b)]+_0x4688d9(0x1315)+_0x1109ae[_0x4688d9(0x167f)]:_0x4688d9(0x22d8),'msg':_0x1109ae[_0x4688d9(0x524)]?JSON[_0x4688d9(0x10bb)](_0x1109ae[_0x4688d9(0x524)]):_0x1109ae['toString']()});}):_0xd05388[_0x558db7(0x1b3b)][_0x558db7(0x16b4)]({'fields':_0x558db7(0x45e),'sort':_0x558db7(0x19eb),'nolimit':'true'})[_0x558db7(0x2945)][_0x558db7(0x146b)](function(_0x4acf9e){const _0x3df893=_0x558db7;_0x4df58b[_0x3df893(0x1b32)]=_0x4acf9e['rows']||[];})[_0x558db7(0x146b)](function(){const _0x216ea1=_0x558db7;return _0xd05388[_0x216ea1(0x1366)][_0x216ea1(0x16b4)]({'userProfileId':_0x4df58b[_0x216ea1(0x2321)][_0x216ea1(0x209a)],'sectionId':0x836})[_0x216ea1(0x2945)];})['then'](function(_0x3a60a4){const _0x52a5e1=_0x558db7,_0x292618=_0x3a60a4&&_0x3a60a4[_0x52a5e1(0x19c7)]?_0x3a60a4['rows'][0x0]:null;if(!_0x292618){const _0x5994bb=[];let _0x4d6f5c=null;_0x4df58b[_0x52a5e1(0x1c72)]&&(_0x4d6f5c=_0x3f65c0()[_0x52a5e1(0xc84)](_0x4df58b[_0x52a5e1(0x1b32)],{'name':_0x4df58b['queue']['queue']}));for(let _0x39016a=0x0;_0x39016a<_0x4df58b['queues']['length'];_0x39016a++){_0x4d6f5c&&_0x4df58b[_0x52a5e1(0x1b32)][_0x39016a]['id']===_0x4d6f5c['id']&&(_0x4df58b[_0x52a5e1(0x1b32)][_0x39016a]['canSelect']=![],_0x5994bb['push'](_0x4df58b[_0x52a5e1(0x1b32)][_0x39016a]));}_0x4df58b[_0x52a5e1(0x1b32)]=_0x5994bb;}else{if(!_0x292618[_0x52a5e1(0x11d2)])return _0xd05388[_0x52a5e1(0xdcc)][_0x52a5e1(0x16b4)]({'sectionId':_0x292618['id']})['$promise'][_0x52a5e1(0x146b)](function(_0x35d363){const _0x209c9d=_0x52a5e1,_0x483d55=_0x3f65c0()['map'](_0x35d363['rows'],function(_0x5f4e6a){const _0x5c4ab5=a0_0x3bb9;return _0x3f65c0()[_0x5c4ab5(0xc84)](_0x4df58b[_0x5c4ab5(0x1b32)],{'id':_0x5f4e6a[_0x5c4ab5(0x18b8)]});});let _0xf2e93f=null;_0x4df58b[_0x209c9d(0x1c72)]&&(_0xf2e93f=_0x3f65c0()['find'](_0x4df58b[_0x209c9d(0x1b32)],{'name':_0x4df58b[_0x209c9d(0x1c72)][_0x209c9d(0x1c72)]}));if(_0xf2e93f&&!_0x3f65c0()[_0x209c9d(0x1360)](_0x483d55,['id',_0xf2e93f['id']])){const _0x3031b9=_0x3f65c0()['find'](_0x4df58b[_0x209c9d(0x1b32)],{'id':_0xf2e93f['id']});_0x3031b9['canSelect']=![],_0x483d55[_0x209c9d(0x1f47)](_0x3031b9);}_0x4df58b[_0x209c9d(0x1b32)]=_0x483d55;});}})[_0x558db7(0x129e)](function(_0x401e40){const _0x14c320=_0x558db7;_0x57226a[_0x14c320(0x1980)]({'title':_0x401e40['status']?'API:'+_0x401e40[_0x14c320(0x107b)]+'\x20-\x20'+_0x401e40['statusText']:_0x14c320(0x561),'msg':_0x401e40[_0x14c320(0x524)]?JSON[_0x14c320(0x10bb)](_0x401e40['data']):_0x401e40['toString']()});});function _0x10fc4e(){const _0x3cf15e=_0x558db7;_0x4df58b[_0x3cf15e(0xcef)]=[];const _0x3fed04=[];_0x4df58b[_0x3cf15e(0x1c72)][_0x3cf15e(0x1142)]&&_0x4df58b[_0x3cf15e(0x1c72)]['type'][_0x3cf15e(0x256e)]()===_0x3cf15e(0xc9c)&&_0x4df58b['queue'][_0x3cf15e(0x8f2)]===_0x3cf15e(0x118b)&&(_0x4df58b[_0x3cf15e(0x1c72)][_0x3cf15e(0x1d55)]=_0x307d0f['cutdigits']?(_0x4df58b[_0x3cf15e(0x1c72)][_0x3cf15e(0x1e12)]||'')+_0x3cf15e(0x2147)+_0x307d0f[_0x3cf15e(0x1274)]+'}':(_0x4df58b[_0x3cf15e(0x1c72)][_0x3cf15e(0x1e12)]||'')+_0x3cf15e(0x20df),_0x307d0f[_0x3cf15e(0x1425)]!==_0x3cf15e(0x1642)?_0x4df58b[_0x3cf15e(0x1c72)]['options'][_0x3cf15e(0x172b)](_0x3cf15e(0x1ea4))<0x0&&(_0x4df58b[_0x3cf15e(0x1c72)][_0x3cf15e(0xa08)]+=_0x3cf15e(0x1ea4)):_0x4df58b[_0x3cf15e(0x1c72)]['options']=_0x4df58b[_0x3cf15e(0x1c72)][_0x3cf15e(0xa08)][_0x3cf15e(0x5f4)](_0x3cf15e(0x1ea4),''));const _0x37f538=_0x3f65c0()[_0x3cf15e(0xc84)](_0x4df58b[_0x3cf15e(0x1b32)],{'name':_0x4df58b[_0x3cf15e(0x1c72)][_0x3cf15e(0x1c72)]});_0x37f538&&(_0x4df58b['queue'][_0x3f65c0()[_0x3cf15e(0x83f)](_0x3cf15e(0xff9))+_0x3cf15e(0x23f8)]=_0x37f538['id']);if(_0x4df58b['queue'][_0x3cf15e(0x8f2)]&&_0x4df58b[_0x3cf15e(0x1c72)][_0x3cf15e(0x8f2)]===_0x3cf15e(0x1802)){}else switch((_0x4df58b[_0x3cf15e(0x1c72)][_0x3cf15e(0x1873)]||_0x4df58b['queue'][_0x3cf15e(0x8f2)])[_0x3cf15e(0x256e)]()){case _0x3cf15e(0x26ba):_0x4df58b[_0x3cf15e(0x1c72)][_0x3cf15e(0x168a)]=_0x4df58b['queue'][_0x3cf15e(0x19eb)]+'='+_0x4df58b['queue'][_0x3cf15e(0x175d)];break;case _0x3cf15e(0x1802):break;default:_0x3fed04[0x0]=_0x4df58b['queue'][_0x3cf15e(0x1c72)],_0x3fed04[0x1]=_0x4df58b[_0x3cf15e(0x1c72)][_0x3cf15e(0xa9c)],_0x4df58b[_0x3cf15e(0x1c72)][_0x3cf15e(0x168a)]=_0x3fed04['join'](',');}_0x21a76c(_0x4df58b[_0x3cf15e(0x1c72)]);}function _0x21a76c(_0x1ada4d){_0x320c91['hide'](_0x1ada4d);}}const _0x359b21=_0x559f90;;_0xbb2f40[_0x313a4d(0x11c2)]=[_0x313a4d(0x10e8),'$q',_0x313a4d(0x1fe4),_0x313a4d(0x13c5),'whatsappAccount',_0x313a4d(0x247f),_0x313a4d(0xa87),_0x313a4d(0x2514)];function _0xbb2f40(_0x58ee58,_0xe0a1fa,_0x171f7e,_0xb9878,_0x3aa282,_0x5bf5a,_0xd77b9,_0x225a66){const _0x4945db=_0x313a4d,_0x2b6560=this;_0x2b6560[_0x4945db(0x2321)]=_0xd77b9[_0x4945db(0xb12)](),_0x2b6560['errors']=[],_0x2b6560[_0x4945db(0x1189)]=_0x4945db(0x1955)+(_0xb9878['appType']||_0xb9878[_0x4945db(0x1873)])[_0x4945db(0x1c37)](),_0x2b6560[_0x4945db(0x1d47)]=angular[_0x4945db(0x235a)](_0xb9878),_0x2b6560[_0x4945db(0x2514)]=_0x225a66,_0x2b6560[_0x4945db(0x855)]={};if(_0x2b6560[_0x4945db(0x1d47)][_0x4945db(0x168a)])switch(_0x2b6560[_0x4945db(0x1d47)]['appType']?_0x2b6560[_0x4945db(0x1d47)][_0x4945db(0x8f2)]['toLowerCase']():_0x2b6560[_0x4945db(0x1d47)]['app'][_0x4945db(0x256e)]()){case'custom':break;case _0x4945db(0xeaa):{const _0x2020b9=_0x2b6560[_0x4945db(0x1d47)]['appdata'][_0x4945db(0x10c8)](',');_0x2b6560[_0x4945db(0x1d47)][_0x4945db(0x2293)]=_0x2020b9[0x0],_0x2b6560['system'][_0x4945db(0x90b)]=_0x2020b9[0x1],_0x2b6560[_0x4945db(0x1d47)][_0x4945db(0xaf3)]=_0x2020b9[_0x4945db(0x1298)](0x2,_0x2020b9['length'])[_0x4945db(0xb47)](',');}break;case _0x4945db(0xa46):{const _0x2d293a=_0x2b6560[_0x4945db(0x1d47)]['appdata'][_0x4945db(0x10c8)](',');_0x2b6560[_0x4945db(0x1d47)]['projectId']=_0x2d293a[0x0],_0x2b6560[_0x4945db(0x1d47)][_0x4945db(0x1392)]=_0x2d293a[0x1],_0x2b6560[_0x4945db(0x1d47)][_0x4945db(0x2217)]=_0x2d293a[0x2],_0x2b6560[_0x4945db(0x1d47)][_0x4945db(0x90b)]=_0x2d293a[0x3],_0x2b6560[_0x4945db(0x1d47)][_0x4945db(0xaf3)]=_0x2d293a['slice'](0x4,_0x2d293a['length'])[_0x4945db(0xb47)](',');}break;case _0x4945db(0x17d6):{const _0x28efdf=_0x2b6560[_0x4945db(0x1d47)]['appdata'][_0x4945db(0x10c8)](',');_0x2b6560[_0x4945db(0x1d47)][_0x4945db(0x1651)]=_0x28efdf[0x0],_0x2b6560[_0x4945db(0x1d47)]['secretaccesskey']=_0x28efdf[0x1],_0x2b6560[_0x4945db(0x1d47)][_0x4945db(0x1039)]=_0x28efdf[0x2],_0x2b6560[_0x4945db(0x1d47)][_0x4945db(0x8dd)]=_0x28efdf[0x3],_0x2b6560[_0x4945db(0x1d47)][_0x4945db(0xaf3)]=_0x28efdf[_0x4945db(0x1298)](0x4,_0x28efdf[_0x4945db(0x402)])[_0x4945db(0xb47)](',');}break;case _0x4945db(0x1713):{const _0x26731a=_0x2b6560[_0x4945db(0x1d47)][_0x4945db(0x168a)][_0x4945db(0x10c8)](',');_0x2b6560[_0x4945db(0x1d47)][_0x4945db(0x583)]=isNaN(_0x26731a[0x0])?_0x26731a[0x0]:parseInt(_0x26731a[0x0],0xa),_0x2b6560[_0x4945db(0x1d47)][_0x4945db(0xa8d)]=_0x26731a[_0x4945db(0x1298)](0x1,_0x26731a[_0x4945db(0x402)])[_0x4945db(0xb47)](',');}break;case _0x4945db(0x7fd):_0x2b6560[_0x4945db(0x1d47)][_0x4945db(0xa8d)]=_0x2b6560[_0x4945db(0x1d47)][_0x4945db(0x168a)];break;case _0x4945db(0x26ba):_0x2b6560[_0x4945db(0x1d47)][_0x4945db(0x19eb)]=_0x2b6560['system'][_0x4945db(0x168a)][_0x4945db(0x10c8)]('=')[0x0],_0x2b6560[_0x4945db(0x1d47)][_0x4945db(0x175d)]=_0x2b6560[_0x4945db(0x1d47)]['appdata'][_0x4945db(0x10c8)]('=')[0x1];break;case _0x4945db(0x1ecb):_0x2b6560[_0x4945db(0x1d47)][_0x4945db(0x9e0)]=_0x2b6560['system'][_0x4945db(0x168a)];break;default:{const _0x5c6d27=_0x2b6560[_0x4945db(0x1d47)]['appdata'][_0x4945db(0x10c8)](',');_0x2b6560[_0x4945db(0x1d47)]['command']=_0x3f65c0()[_0x4945db(0x2635)](_0x5c6d27[0x0])?_0x5c6d27[0x0]:isNaN(_0x5c6d27[0x0])?_0x5c6d27[0x0]:parseInt(_0x5c6d27[0x0],0xa),_0x2b6560[_0x4945db(0x1d47)][_0x4945db(0x212)]=_0x3f65c0()[_0x4945db(0x2635)](_0x5c6d27[0x1])?_0x5c6d27[0x1]:isNaN(_0x5c6d27[0x1])?_0x5c6d27[0x1]:parseInt(_0x5c6d27[0x1],0xa);}break;}else _0x2b6560['system'][_0x4945db(0x212)]='';_0x2b6560['system'][_0x4945db(0x1142)]&&_0x2b6560[_0x4945db(0x1d47)][_0x4945db(0x1142)][_0x4945db(0x256e)]()===_0x4945db(0xc9c)&&_0x2b6560['system'][_0x4945db(0x8f2)][_0x4945db(0x256e)]()===_0x4945db(0x3bb)&&(_0x2b6560[_0x4945db(0x1d47)]['prefix']=_0x2b6560[_0x4945db(0x1d47)][_0x4945db(0x1d55)]?_0x2b6560[_0x4945db(0x1d47)]['phone'][_0x4945db(0x10c8)]('$')[0x0]:undefined,_0x2b6560['system'][_0x4945db(0x1d43)]=_0x2b6560['system'][_0x4945db(0x11be)]?'CALLERID(all)='+_0x2b6560[_0x4945db(0x1d47)]['callerID']:undefined);_0x2b6560[_0x4945db(0x7de)]=_0x134f55,_0x2b6560['closeDialog']=_0x4bd9e3,_0xd77b9[_0x4945db(0x23e0)]('admin')?_0x5bf5a[_0x4945db(0x212)]['get']({'fields':_0x4945db(0x7a7),'sort':_0x4945db(0x19eb),'nolimit':_0x4945db(0x1185)})[_0x4945db(0x2945)][_0x4945db(0x146b)](function(_0x59663f){const _0x32f273=_0x4945db;_0x2b6560[_0x32f273(0x85b)]=_0x59663f[_0x32f273(0x19c7)]||[];})[_0x4945db(0x129e)](function(_0x5bc487){const _0x5934c2=_0x4945db;_0x171f7e['error']({'title':_0x5bc487['status']?'API:'+_0x5bc487[_0x5934c2(0x107b)]+_0x5934c2(0x1315)+_0x5bc487[_0x5934c2(0x167f)]:_0x5934c2(0x84b),'msg':_0x5bc487[_0x5934c2(0x524)]?JSON[_0x5934c2(0x10bb)](_0x5bc487[_0x5934c2(0x524)]):_0x5bc487[_0x5934c2(0xd5f)]()});}):_0x5bf5a[_0x4945db(0x212)][_0x4945db(0x16b4)]({'fields':'id,name','sort':_0x4945db(0x19eb),'nolimit':_0x4945db(0x1185)})[_0x4945db(0x2945)][_0x4945db(0x146b)](function(_0x5bbb6f){const _0x3cca7f=_0x4945db;_0x2b6560[_0x3cca7f(0x85b)]=_0x5bbb6f['rows']||[];})['then'](function(){const _0x2cede6=_0x4945db;return _0x5bf5a[_0x2cede6(0x1366)][_0x2cede6(0x16b4)]({'userProfileId':_0x2b6560[_0x2cede6(0x2321)][_0x2cede6(0x209a)],'sectionId':0x3f4})[_0x2cede6(0x2945)];})[_0x4945db(0x146b)](function(_0x5a1bb0){const _0x489381=_0x4945db,_0x227a06=_0x5a1bb0&&_0x5a1bb0['rows']?_0x5a1bb0['rows'][0x0]:null;if(!_0x227a06){const _0x4e5e88=[];let _0x5712bf=null;_0x2b6560[_0x489381(0x1d47)]&&(_0x5712bf=_0x3f65c0()[_0x489381(0xc84)](_0x2b6560[_0x489381(0x85b)],{'name':_0x2b6560['system'][_0x489381(0x212)]}));for(let _0x3ce28c=0x0;_0x3ce28c<_0x2b6560[_0x489381(0x85b)][_0x489381(0x402)];_0x3ce28c++){_0x5712bf&&_0x2b6560[_0x489381(0x85b)][_0x3ce28c]['id']===_0x5712bf['id']&&(_0x2b6560[_0x489381(0x85b)][_0x3ce28c][_0x489381(0x8ff)]=![],_0x4e5e88[_0x489381(0x1f47)](_0x2b6560[_0x489381(0x85b)][_0x3ce28c]));}_0x2b6560[_0x489381(0x85b)]=_0x4e5e88;}else{if(!_0x227a06[_0x489381(0x11d2)])return _0x5bf5a[_0x489381(0xdcc)][_0x489381(0x16b4)]({'sectionId':_0x227a06['id']})['$promise'][_0x489381(0x146b)](function(_0x530728){const _0x2b2da2=_0x489381,_0x263d45=_0x3f65c0()[_0x2b2da2(0x205)](_0x530728[_0x2b2da2(0x19c7)],function(_0x2afd9a){const _0x880461=_0x2b2da2;return _0x3f65c0()[_0x880461(0xc84)](_0x2b6560[_0x880461(0x85b)],{'id':_0x2afd9a['resourceId']});});let _0x1f7e03=null;_0x2b6560[_0x2b2da2(0x1d47)]&&(_0x1f7e03=_0x3f65c0()[_0x2b2da2(0xc84)](_0x2b6560['variables'],{'name':_0x2b6560[_0x2b2da2(0x1d47)]['variable']}));if(_0x1f7e03&&!_0x3f65c0()[_0x2b2da2(0x1360)](_0x263d45,['id',_0x1f7e03['id']])){const _0x3d705a=_0x3f65c0()[_0x2b2da2(0xc84)](_0x2b6560[_0x2b2da2(0x85b)],{'id':_0x1f7e03['id']});_0x3d705a[_0x2b2da2(0x8ff)]=![],_0x263d45['push'](_0x3d705a);}_0x2b6560[_0x2b2da2(0x85b)]=_0x263d45;});}})[_0x4945db(0x129e)](function(_0x4ae729){const _0x354c3e=_0x4945db;_0x171f7e[_0x354c3e(0x1980)]({'title':_0x4ae729[_0x354c3e(0x107b)]?_0x354c3e(0x262a)+_0x4ae729['status']+_0x354c3e(0x1315)+_0x4ae729['statusText']:_0x354c3e(0x493),'msg':_0x4ae729[_0x354c3e(0x524)]?JSON['stringify'](_0x4ae729['data']):_0x4ae729[_0x354c3e(0xd5f)]()});});function _0x134f55(){const _0x444c84=_0x4945db;_0x2b6560['errors']=[];const _0x2f8c8e=[];_0x2b6560[_0x444c84(0x1d47)][_0x444c84(0x1142)]&&_0x2b6560[_0x444c84(0x1d47)][_0x444c84(0x1142)][_0x444c84(0x256e)]()===_0x444c84(0xc9c)&&_0x2b6560['system'][_0x444c84(0x8f2)]==='outboundDial'&&(_0x2b6560[_0x444c84(0x1d47)][_0x444c84(0x1d55)]=_0x3aa282[_0x444c84(0x1274)]?(_0x2b6560['system']['prefix']||'')+_0x444c84(0x2147)+_0x3aa282['cutdigits']+'}':(_0x2b6560['system'][_0x444c84(0x1e12)]||'')+_0x444c84(0x20df),_0x3aa282['recordingFormat']!==_0x444c84(0x1642)?_0x2b6560['system'][_0x444c84(0xa08)]['indexOf'](_0x444c84(0x1ea4))<0x0&&(_0x2b6560[_0x444c84(0x1d47)]['options']+=_0x444c84(0x1ea4)):_0x2b6560['system']['options']=_0x2b6560[_0x444c84(0x1d47)][_0x444c84(0xa08)][_0x444c84(0x5f4)](_0x444c84(0x1ea4),''));if(_0x2b6560[_0x444c84(0x1d47)][_0x444c84(0x8f2)]&&_0x2b6560['system'][_0x444c84(0x8f2)]===_0x444c84(0x1802)){}else switch((_0x2b6560[_0x444c84(0x1d47)][_0x444c84(0x1873)]||_0x2b6560[_0x444c84(0x1d47)][_0x444c84(0x8f2)])[_0x444c84(0x256e)]()){case _0x444c84(0x26ba):_0x2b6560[_0x444c84(0x1d47)][_0x444c84(0x168a)]=_0x2b6560[_0x444c84(0x1d47)][_0x444c84(0x19eb)]+'='+_0x2b6560[_0x444c84(0x1d47)]['value'];break;case'custom':break;default:_0x2f8c8e[0x0]=_0x2b6560[_0x444c84(0x1d47)][_0x444c84(0x23e9)],_0x2f8c8e[0x1]=_0x2b6560[_0x444c84(0x1d47)][_0x444c84(0x212)],_0x2b6560[_0x444c84(0x1d47)][_0x444c84(0x168a)]=_0x2f8c8e['join'](',');}_0x4bd9e3(_0x2b6560[_0x444c84(0x1d47)]);}function _0x4bd9e3(_0x5f5a1b){const _0x364d09=_0x4945db;_0x58ee58[_0x364d09(0x2458)](_0x5f5a1b);}}const _0x840167=_0xbb2f40;;_0x3de579[_0x313a4d(0x11c2)]=[_0x313a4d(0x10e8),'$q','toasty',_0x313a4d(0x13c5),_0x313a4d(0x815),'api','Auth',_0x313a4d(0x2514)];function _0x3de579(_0x2c2d32,_0x1ba4e4,_0x20e8cd,_0x5f0752,_0xdea95d,_0x47de65,_0x458877,_0x3e9a39){const _0x2146b2=_0x313a4d,_0xf515f7=this;_0xf515f7[_0x2146b2(0x2321)]=_0x458877[_0x2146b2(0xb12)](),_0xf515f7['errors']=[],_0xf515f7[_0x2146b2(0x1189)]='WHATSAPP.EDIT_'+(_0x5f0752[_0x2146b2(0x8f2)]||_0x5f0752['app'])[_0x2146b2(0x1c37)](),_0xf515f7['tag']=angular[_0x2146b2(0x235a)](_0x5f0752),_0xf515f7[_0x2146b2(0x2514)]=_0x3e9a39,_0xf515f7[_0x2146b2(0x855)]={};if(_0xf515f7['tag'][_0x2146b2(0x168a)])switch(_0xf515f7[_0x2146b2(0xa80)][_0x2146b2(0x8f2)]?_0xf515f7[_0x2146b2(0xa80)][_0x2146b2(0x8f2)]['toLowerCase']():_0xf515f7[_0x2146b2(0xa80)]['app'][_0x2146b2(0x256e)]()){case _0x2146b2(0x1802):break;case'dialogflow':{const _0xe21617=_0xf515f7['tag'][_0x2146b2(0x168a)]['split'](',');_0xf515f7[_0x2146b2(0xa80)]['key']=_0xe21617[0x0],_0xf515f7[_0x2146b2(0xa80)][_0x2146b2(0x90b)]=_0xe21617[0x1],_0xf515f7[_0x2146b2(0xa80)][_0x2146b2(0xaf3)]=_0xe21617[_0x2146b2(0x1298)](0x2,_0xe21617['length'])['join'](',');}break;case _0x2146b2(0xa46):{const _0x5dce5e=_0xf515f7['tag'][_0x2146b2(0x168a)]['split'](',');_0xf515f7[_0x2146b2(0xa80)]['projectId']=_0x5dce5e[0x0],_0xf515f7['tag'][_0x2146b2(0x1392)]=_0x5dce5e[0x1],_0xf515f7[_0x2146b2(0xa80)][_0x2146b2(0x2217)]=_0x5dce5e[0x2],_0xf515f7[_0x2146b2(0xa80)][_0x2146b2(0x90b)]=_0x5dce5e[0x3],_0xf515f7[_0x2146b2(0xa80)][_0x2146b2(0xaf3)]=_0x5dce5e[_0x2146b2(0x1298)](0x4,_0x5dce5e['length'])[_0x2146b2(0xb47)](',');}break;case _0x2146b2(0x17d6):{const _0x2231e7=_0xf515f7['tag'][_0x2146b2(0x168a)][_0x2146b2(0x10c8)](',');_0xf515f7['tag'][_0x2146b2(0x1651)]=_0x2231e7[0x0],_0xf515f7['tag'][_0x2146b2(0x252)]=_0x2231e7[0x1],_0xf515f7[_0x2146b2(0xa80)][_0x2146b2(0x1039)]=_0x2231e7[0x2],_0xf515f7[_0x2146b2(0xa80)][_0x2146b2(0x8dd)]=_0x2231e7[0x3],_0xf515f7['tag'][_0x2146b2(0xaf3)]=_0x2231e7['slice'](0x4,_0x2231e7[_0x2146b2(0x402)])[_0x2146b2(0xb47)](',');}break;case'autoreply':{const _0x34fab3=_0xf515f7['tag'][_0x2146b2(0x168a)]['split'](',');_0xf515f7[_0x2146b2(0xa80)][_0x2146b2(0x583)]=isNaN(_0x34fab3[0x0])?_0x34fab3[0x0]:parseInt(_0x34fab3[0x0],0xa),_0xf515f7[_0x2146b2(0xa80)]['text']=_0x34fab3[_0x2146b2(0x1298)](0x1,_0x34fab3['length'])[_0x2146b2(0xb47)](',');}break;case _0x2146b2(0x7fd):_0xf515f7[_0x2146b2(0xa80)][_0x2146b2(0xa8d)]=_0xf515f7[_0x2146b2(0xa80)]['appdata'];break;case'set':_0xf515f7['tag'][_0x2146b2(0x19eb)]=_0xf515f7[_0x2146b2(0xa80)][_0x2146b2(0x168a)][_0x2146b2(0x10c8)]('=')[0x0],_0xf515f7[_0x2146b2(0xa80)][_0x2146b2(0x175d)]=_0xf515f7['tag'][_0x2146b2(0x168a)][_0x2146b2(0x10c8)]('=')[0x1];break;case _0x2146b2(0x1ecb):_0xf515f7[_0x2146b2(0xa80)][_0x2146b2(0x9e0)]=_0xf515f7[_0x2146b2(0xa80)][_0x2146b2(0x168a)];break;default:{const _0x234b17=_0xf515f7[_0x2146b2(0xa80)][_0x2146b2(0x168a)][_0x2146b2(0x10c8)](',');_0xf515f7[_0x2146b2(0xa80)][_0x2146b2(0xa80)]=_0x3f65c0()['isEmpty'](_0x234b17[0x0])?_0x234b17[0x0]:isNaN(_0x234b17[0x0])?_0x234b17[0x0]:parseInt(_0x234b17[0x0],0xa);}break;}else{}_0xf515f7[_0x2146b2(0xa80)][_0x2146b2(0x1142)]&&_0xf515f7[_0x2146b2(0xa80)]['type'][_0x2146b2(0x256e)]()===_0x2146b2(0xc9c)&&_0xf515f7[_0x2146b2(0xa80)][_0x2146b2(0x8f2)][_0x2146b2(0x256e)]()===_0x2146b2(0x3bb)&&(_0xf515f7[_0x2146b2(0xa80)][_0x2146b2(0x1e12)]=_0xf515f7[_0x2146b2(0xa80)]['phone']?_0xf515f7[_0x2146b2(0xa80)][_0x2146b2(0x1d55)][_0x2146b2(0x10c8)]('$')[0x0]:undefined,_0xf515f7[_0x2146b2(0xa80)][_0x2146b2(0x1d43)]=_0xf515f7[_0x2146b2(0xa80)][_0x2146b2(0x11be)]?_0x2146b2(0x1b60)+_0xf515f7['tag'][_0x2146b2(0x11be)]:undefined);_0xf515f7['saveWhatsappAccountApp']=_0xd2666,_0xf515f7[_0x2146b2(0x13f3)]=_0x58661d,_0x458877[_0x2146b2(0x23e0)](_0x2146b2(0x174b))?_0x47de65[_0x2146b2(0xa80)][_0x2146b2(0x16b4)]({'fields':_0x2146b2(0x7a7),'sort':_0x2146b2(0x19eb),'nolimit':_0x2146b2(0x1185)})[_0x2146b2(0x2945)][_0x2146b2(0x146b)](function(_0x1db06e){const _0x94f45a=_0x2146b2;_0xf515f7[_0x94f45a(0x1b86)]=_0x1db06e['rows']||[];})[_0x2146b2(0x129e)](function(_0x84a6e2){const _0xd353b7=_0x2146b2;_0x20e8cd[_0xd353b7(0x1980)]({'title':_0x84a6e2[_0xd353b7(0x107b)]?'API:'+_0x84a6e2[_0xd353b7(0x107b)]+_0xd353b7(0x1315)+_0x84a6e2[_0xd353b7(0x167f)]:_0xd353b7(0x29c),'msg':_0x84a6e2[_0xd353b7(0x524)]?JSON[_0xd353b7(0x10bb)](_0x84a6e2['data']):_0x84a6e2['toString']()});}):_0x47de65['tag']['get']({'fields':_0x2146b2(0x7a7),'sort':'name','nolimit':'true'})[_0x2146b2(0x2945)]['then'](function(_0x39f80c){const _0x9145fc=_0x2146b2;_0xf515f7[_0x9145fc(0x1b86)]=_0x39f80c['rows']||[];})[_0x2146b2(0x146b)](function(){const _0x338323=_0x2146b2;return _0x47de65[_0x338323(0x1366)]['get']({'userProfileId':_0xf515f7['currentUser'][_0x338323(0x209a)],'sectionId':0x3f0})[_0x338323(0x2945)];})['then'](function(_0x2ba1e9){const _0x1645b1=_0x2146b2,_0xe399b3=_0x2ba1e9&&_0x2ba1e9['rows']?_0x2ba1e9[_0x1645b1(0x19c7)][0x0]:null;if(!_0xe399b3){const _0x5a5010=[];let _0x4649a7=null;_0xf515f7[_0x1645b1(0xa80)]&&(_0x4649a7=_0x3f65c0()[_0x1645b1(0xc84)](_0xf515f7[_0x1645b1(0x1b86)],{'name':_0xf515f7[_0x1645b1(0xa80)][_0x1645b1(0xa80)]}));for(let _0x458ba0=0x0;_0x458ba0<_0xf515f7[_0x1645b1(0x1b86)][_0x1645b1(0x402)];_0x458ba0++){_0x4649a7&&_0xf515f7[_0x1645b1(0x1b86)][_0x458ba0]['id']===_0x4649a7['id']&&(_0xf515f7['tags'][_0x458ba0][_0x1645b1(0x8ff)]=![],_0x5a5010[_0x1645b1(0x1f47)](_0xf515f7[_0x1645b1(0x1b86)][_0x458ba0]));}_0xf515f7[_0x1645b1(0x1b86)]=_0x5a5010;}else{if(!_0xe399b3[_0x1645b1(0x11d2)])return _0x47de65['userProfileResource'][_0x1645b1(0x16b4)]({'sectionId':_0xe399b3['id']})[_0x1645b1(0x2945)][_0x1645b1(0x146b)](function(_0x40512f){const _0x1ed0f4=_0x1645b1,_0xfb9e19=_0x3f65c0()[_0x1ed0f4(0x205)](_0x40512f['rows'],function(_0x45bf42){const _0x1ac6b2=_0x1ed0f4;return _0x3f65c0()[_0x1ac6b2(0xc84)](_0xf515f7[_0x1ac6b2(0x1b86)],{'id':_0x45bf42[_0x1ac6b2(0x18b8)]});});let _0x534d71=null;_0xf515f7[_0x1ed0f4(0xa80)]&&(_0x534d71=_0x3f65c0()[_0x1ed0f4(0xc84)](_0xf515f7['tags'],{'name':_0xf515f7[_0x1ed0f4(0xa80)][_0x1ed0f4(0xa80)]}));if(_0x534d71&&!_0x3f65c0()[_0x1ed0f4(0x1360)](_0xfb9e19,['id',_0x534d71['id']])){const _0x5ccaa1=_0x3f65c0()[_0x1ed0f4(0xc84)](_0xf515f7[_0x1ed0f4(0x1b86)],{'id':_0x534d71['id']});_0x5ccaa1[_0x1ed0f4(0x8ff)]=![],_0xfb9e19[_0x1ed0f4(0x1f47)](_0x5ccaa1);}_0xf515f7['tags']=_0xfb9e19;});}})[_0x2146b2(0x129e)](function(_0x18a68a){const _0x55ee11=_0x2146b2;_0x20e8cd[_0x55ee11(0x1980)]({'title':_0x18a68a[_0x55ee11(0x107b)]?_0x55ee11(0x262a)+_0x18a68a[_0x55ee11(0x107b)]+'\x20-\x20'+_0x18a68a['statusText']:_0x55ee11(0x156),'msg':_0x18a68a[_0x55ee11(0x524)]?JSON[_0x55ee11(0x10bb)](_0x18a68a[_0x55ee11(0x524)]):_0x18a68a[_0x55ee11(0xd5f)]()});});function _0xd2666(){const _0x345174=_0x2146b2;_0xf515f7['errors']=[];const _0x16991b=[];_0xf515f7[_0x345174(0xa80)]['type']&&_0xf515f7[_0x345174(0xa80)][_0x345174(0x1142)][_0x345174(0x256e)]()==='outbound'&&_0xf515f7[_0x345174(0xa80)][_0x345174(0x8f2)]===_0x345174(0x118b)&&(_0xf515f7[_0x345174(0xa80)][_0x345174(0x1d55)]=_0xdea95d[_0x345174(0x1274)]?(_0xf515f7[_0x345174(0xa80)][_0x345174(0x1e12)]||'')+_0x345174(0x2147)+_0xdea95d[_0x345174(0x1274)]+'}':(_0xf515f7[_0x345174(0xa80)]['prefix']||'')+'${EXTEN}',_0xdea95d[_0x345174(0x1425)]!=='none'?_0xf515f7[_0x345174(0xa80)][_0x345174(0xa08)][_0x345174(0x172b)](_0x345174(0x1ea4))<0x0&&(_0xf515f7[_0x345174(0xa80)][_0x345174(0xa08)]+=_0x345174(0x1ea4)):_0xf515f7[_0x345174(0xa80)][_0x345174(0xa08)]=_0xf515f7[_0x345174(0xa80)][_0x345174(0xa08)][_0x345174(0x5f4)](_0x345174(0x1ea4),''));const _0xd03600=_0x3f65c0()[_0x345174(0xc84)](_0xf515f7[_0x345174(0x1b86)],{'name':_0xf515f7[_0x345174(0xa80)][_0x345174(0xa80)]});_0xd03600&&(_0xf515f7['tag'][_0x345174(0xb0a)]=_0xd03600['id']);if(_0xf515f7[_0x345174(0xa80)]['appType']&&_0xf515f7[_0x345174(0xa80)][_0x345174(0x8f2)]==='custom'){}else switch((_0xf515f7[_0x345174(0xa80)]['app']||_0xf515f7['tag']['appType'])['toLowerCase']()){case _0x345174(0x26ba):_0xf515f7['tag'][_0x345174(0x168a)]=_0xf515f7['tag'][_0x345174(0x19eb)]+'='+_0xf515f7[_0x345174(0xa80)][_0x345174(0x175d)];break;case'custom':break;default:_0x16991b[0x0]=_0xf515f7['tag'][_0x345174(0xa80)],_0xf515f7['tag']['appdata']=_0x16991b[_0x345174(0xb47)](',');}_0x58661d(_0xf515f7[_0x345174(0xa80)]);}function _0x58661d(_0x20bc94){_0x2c2d32['hide'](_0x20bc94);}}const _0x1b48f0=_0x3de579;;_0x72172c[_0x313a4d(0x11c2)]=[_0x313a4d(0x23df),_0x313a4d(0x910),_0x313a4d(0x1862),'$q',_0x313a4d(0x214b),_0x313a4d(0x1abe),'$mdDialog','$document',_0x313a4d(0x1fe4),_0x313a4d(0x247f),_0x313a4d(0xa87)];function _0x72172c(_0x517f48,_0x279d35,_0x375e90,_0x1db3c5,_0x32e236,_0x5a8067,_0x18b41f,_0x110d5f,_0x3e1d2a,_0x45e0fb,_0x59785b){const _0x14730a=_0x313a4d,_0xe9334a=this;_0xe9334a[_0x14730a(0x2321)]=_0x59785b[_0x14730a(0xb12)](),_0xe9334a[_0x14730a(0x815)]={},_0xe9334a['whatsappAccountInteractions']={'count':0x0,'rows':[]},_0xe9334a[_0x14730a(0x149d)]=[],_0xe9334a[_0x14730a(0x2514)],_0xe9334a[_0x14730a(0x1a56)]={'read':_0x14730a(0x203c),'closed':'null','sort':'-createdAt','includeAll':_0x14730a(0x1185),'limit':0xa,'page':0x1},_0xe9334a[_0x14730a(0x5aa)]=_0x59f0c5,_0xe9334a[_0x14730a(0x19b4)]=_0x13a78e,_0xe9334a[_0x14730a(0x9d0)]=_0x2f74d1,_0xe9334a[_0x14730a(0x1c75)]=_0x5e3ff4,_0xe9334a[_0x14730a(0x134)]=_0x396b90,_0xe9334a[_0x14730a(0x173)]=_0xb110b0,_0xe9334a[_0x14730a(0x21a6)]=_0xb9ab6e,_0xe9334a[_0x14730a(0x102b)]=_0x2bba58,_0xe9334a['deleteWhatsappAccountInteraction']=_0x13bf97,_0xe9334a[_0x14730a(0x2563)]=_0x5c44c4;function _0x59f0c5(_0x5d1a49,_0x599106){const _0x1d9d11=_0x14730a;_0xe9334a[_0x1d9d11(0x815)]=_0x5d1a49,_0xe9334a['crudPermissions']=typeof _0x599106!==_0x1d9d11(0x2274)?_0x599106:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0xe9334a['query'][_0x1d9d11(0x158a)]=_0xe9334a['whatsappAccount']['id'],_0xe9334a['advancedSearch']={'fields':_0x3f57ae()},_0x300745();}function _0x300745(){const _0x5a2a9c=_0x14730a;return _0x45e0fb[_0x5a2a9c(0xa80)]['get']()[_0x5a2a9c(0x2945)][_0x5a2a9c(0x146b)](function(_0x4d00a2){_0xe9334a['tags']=_0x4d00a2||{'count':0x0,'rows':[]};})[_0x5a2a9c(0x146b)](function(){_0xe9334a['quickFilters']=_0x56eb86();});}function _0x56eb86(){const _0x21d561=_0x14730a;return[{'name':_0x21d561(0x294),'key':_0x21d561(0xc68),'type':_0x21d561(0x1a10),'label':'DASHBOARDS.SELECT_DATE'},{'name':_0x21d561(0x1c7c),'key':_0x21d561(0x229e),'type':_0x21d561(0xa5f),'label':_0x21d561(0x8f5),'customOptions':[{'value':0x0,'translate':_0x21d561(0x33f)},{'value':0x1,'translate':_0x21d561(0x1ce6)},{'value':null,'translate':_0x21d561(0x175e)}]},{'name':_0x21d561(0x74e),'key':_0x21d561(0x1943),'type':_0x21d561(0xa5f),'label':_0x21d561(0x1682),'customOptions':[{'value':0x0,'translate':_0x21d561(0x143b)},{'value':0x1,'translate':_0x21d561(0x1805)},{'value':null,'translate':_0x21d561(0x175e)}]},{'name':'Agent','key':_0x21d561(0xea2),'type':_0x21d561(0xa5f),'label':'DASHBOARDS.SELECT_AGENT','customOptions':[{'value':'null','translate':_0x21d561(0x38d)},{'value':undefined,'translate':'DASHBOARDS.ALL'}]},{'name':_0x21d561(0x23a8),'key':_0x21d561(0xa80),'type':_0x21d561(0x175c),'label':_0x21d561(0x1c0e),'options':_0xe9334a[_0x21d561(0x1b86)]['rows'],'placeholder':'DASHBOARDS.TAGS'}];}function _0x3f57ae(){const _0x57262c=_0x14730a;return[{'name':'Id','column':'id','type':_0x57262c(0x181)},{'name':'Contact','column':_0x57262c(0x364),'type':_0x57262c(0x14ee),'options':{'searchFields':['firstName','lastName',_0x57262c(0x1a2b)],'route':{'model':_0x57262c(0x18c3),'action':'get','params':{'fields':_0x57262c(0x992),'Contact':'@autocomplete','nolimit':!![]}},'extraOperators':[_0x57262c(0xacb)],'excludedOperators':[_0x57262c(0x1671)]}},{'name':_0x57262c(0x11e1),'column':_0x57262c(0xe32),'type':_0x57262c(0xa8d),'options':{'excludedOperators':[_0x57262c(0x6be),_0x57262c(0x1671)]}},{'name':_0x57262c(0x710),'column':_0x57262c(0xb80),'type':'text','options':{'excludedOperators':[_0x57262c(0x6be),_0x57262c(0x1671)]}},{'name':_0x57262c(0x74e),'column':'closed','type':'select','values':[{'id':0x0,'translate':_0x57262c(0x143b)},{'id':0x1,'translate':_0x57262c(0x1805)}],'options':{'excludedOperators':[_0x57262c(0x1671)]}},{'name':'Agent','column':_0x57262c(0x2393),'type':'autocomplete','options':{'table':'i','route':{'model':'user','action':_0x57262c(0x16b4),'params':{'role':_0x57262c(0x1755),'fields':_0x57262c(0x12bf),'nolimit':!![]}},'searchFields':[_0x57262c(0x286a),_0x57262c(0x19eb)],'extraOperators':[_0x57262c(0xacb)],'excludedOperators':[_0x57262c(0x1671)]}},{'name':_0x57262c(0x2331),'column':_0x57262c(0x23a8),'type':_0x57262c(0x175c),'options':{'route':{'model':_0x57262c(0xa80),'action':_0x57262c(0x16b4),'params':{'nolimit':!![]}},'excludedOperators':[_0x57262c(0xbe5)]}},{'name':_0x57262c(0x294),'column':_0x57262c(0xc68),'type':'date','options':{'excludedOperators':[_0x57262c(0x1671)]}},{'name':'Read','column':_0x57262c(0x26a6),'type':_0x57262c(0xa5f),'values':[{'id':0x1,'translate':_0x57262c(0x1ce6)},{'id':0x0,'translate':_0x57262c(0x33f)}],'options':{'excludedOperators':[_0x57262c(0x1671)]}}];}function _0xb9ab6e(){const _0x53fa23=_0x14730a;_0x18b41f[_0x53fa23(0x2615)]({'controller':_0x53fa23(0x26bc),'controllerAs':'vm','templateUrl':_0x3fb128,'parent':angular[_0x53fa23(0x1853)](_0x110d5f[_0x53fa23(0x2586)]),'clickOutsideToClose':![],'locals':{'fields':_0xe9334a[_0x53fa23(0xe93)]['fields'],'color':undefined,'storagePath':_0x53fa23(0x12aa)},'fullscreen':!![]})[_0x53fa23(0x146b)](function(_0x4c6470){const _0x4e02fd=_0x53fa23;_0xe9334a['query'][_0x4e02fd(0x21da)]=_0x4c6470===![]?undefined:_0x4c6470;if(_0xe9334a[_0x4e02fd(0x1a56)][_0x4e02fd(0x21da)])_0x396b90();else _0x4c6470===![]&&_0x396b90();})[_0x53fa23(0x129e)](function(_0x5155ca){const _0x278907=_0x53fa23;_0x3e1d2a[_0x278907(0x1980)]({'title':'ERROR','msg':_0x5155ca[_0x278907(0x524)]?JSON[_0x278907(0x10bb)](_0x5155ca[_0x278907(0x524)][_0x278907(0x7fd)]):_0x5155ca['toString']()});});}function _0x2f74d1(_0x514e06,_0x5c7e62,_0x2e5bbb){const _0x4a33c4=_0x14730a;return _0x45e0fb[_0x4a33c4(0x257a)][_0x4a33c4(0x15b1)]({'id':_0x514e06['id'],'exists':!![],'attachments':_0x2e5bbb})[_0x4a33c4(0x2945)][_0x4a33c4(0x146b)](function(_0x453798){const _0x2144a6=_0x4a33c4,_0x5882f8=[_0x453798['buffer']];let _0x409a4b='interaction'+_0x514e06['id'];const _0x1419c2=new Blob(_0x5882f8,{'type':_0x453798[_0x2144a6(0x1142)]});_0x409a4b=_0x2144a6(0x19a6)+_0x514e06['id']+'.zip';const _0x1c5c23=window[_0x2144a6(0xef3)][_0x2144a6(0x24ec)]('a');_0x1c5c23[_0x2144a6(0x1652)](_0x2144a6(0x1b3c),URL['createObjectURL'](_0x1419c2)),_0x1c5c23['setAttribute'](_0x2144a6(0x15b1),_0x409a4b),document[_0x2144a6(0x2586)]['appendChild'](_0x1c5c23),_0x1c5c23[_0x2144a6(0x1fa5)]();})['catch'](function(_0x44a0ca){const _0x417adb=_0x4a33c4;if(_0x44a0ca[_0x417adb(0x524)]&&_0x44a0ca['data'][_0x417adb(0xcef)]&&_0x44a0ca[_0x417adb(0x524)]['errors'][_0x417adb(0x402)])for(let _0x3955a8=0x0;_0x3955a8<_0x44a0ca[_0x417adb(0x524)]['errors'][_0x417adb(0x402)];_0x3955a8+=0x1){_0x3e1d2a[_0x417adb(0x1980)]({'title':_0x44a0ca[_0x417adb(0x524)]['errors'][_0x3955a8][_0x417adb(0x1142)],'msg':_0x44a0ca[_0x417adb(0x524)][_0x417adb(0xcef)][_0x3955a8][_0x417adb(0x7fd)]});}else _0x3e1d2a[_0x417adb(0x1980)]({'title':_0x44a0ca['status']?_0x417adb(0x262a)+_0x44a0ca[_0x417adb(0x107b)]+_0x417adb(0x1315)+_0x44a0ca[_0x417adb(0x167f)]:'api.whatsappAccount.save','msg':_0x44a0ca[_0x417adb(0x524)]?JSON['stringify'](_0x44a0ca['data']['message']):_0x44a0ca[_0x417adb(0xd5f)]()});});}function _0x13a78e(_0x508e0e,_0x4b0a17){const _0x14dadd=_0x14730a,_0x599356=_0x18b41f[_0x14dadd(0x1e8a)]()[_0x14dadd(0x1189)](_0x14dadd(0x1f40))[_0x14dadd(0x1cbe)](''+(_0x508e0e['name']||_0x508e0e['id']&&_0x3f65c0()[_0x14dadd(0x21cf)](_0x14dadd(0xb37))+_0x508e0e['id']||_0x14dadd(0xe80))+_0x14dadd(0x252f)+'\x20will\x20be\x20deleted.')[_0x14dadd(0x4bd)](_0x14dadd(0xcab))[_0x14dadd(0x1f27)](_0x4b0a17)['ok']('OK')[_0x14dadd(0x6c3)]('CANCEL');_0x18b41f[_0x14dadd(0x2615)](_0x599356)[_0x14dadd(0x146b)](function(){_0x13bf97(_0x508e0e);},function(){const _0x4a2093=_0x14dadd;console[_0x4a2093(0x1a74)](_0x4a2093(0x39a));});}function _0x5e3ff4(_0x4b36ae){const _0xc2a462=_0x14730a;_0xe9334a[_0xc2a462(0x21e5)]=_0x4b36ae||{'count':0x0,'rows':[]};for(let _0x2200a1=0x0;_0x2200a1<_0xe9334a[_0xc2a462(0x21e5)][_0xc2a462(0x19c7)][_0xc2a462(0x402)];_0x2200a1+=0x1){const _0x362812=_0xe9334a[_0xc2a462(0x21e5)]['rows'][_0x2200a1];_0x589992(_0x362812),_0x362812['Owner'][_0xc2a462(0x19eb)]=_0x393026(_0x362812);}}function _0x396b90(){const _0x2db2df=_0x14730a;_0xe9334a['query'][_0x2db2df(0x145d)]=(_0xe9334a[_0x2db2df(0x1a56)][_0x2db2df(0x844)]-0x1)*_0xe9334a[_0x2db2df(0x1a56)]['limit'],_0xe9334a[_0x2db2df(0xb9c)]=_0x45e0fb[_0x2db2df(0x257a)]['get'](_0xe9334a[_0x2db2df(0x1a56)],_0x5e3ff4)[_0x2db2df(0x2945)];}function _0xb110b0(_0x4ae5b3,_0x5a5baf){const _0x3c3364=_0x14730a;_0x18b41f[_0x3c3364(0x2615)]({'controller':_0x3c3364(0xd2c),'controllerAs':'vm','templateUrl':_0x270cc0,'parent':angular[_0x3c3364(0x1853)](_0x110d5f[_0x3c3364(0x2586)]),'targetEvent':_0x4ae5b3,'clickOutsideToClose':!![],'onShowing':function(_0x53ec92){const _0x531575=_0x3c3364;_0x53ec92['vm']['init']({'id':0x1,'channel':_0x531575(0xff9),'interaction':_0x5a5baf,'spy':!![]},_0x279d35[_0x531575(0x2870)]['vm']['setting']);}});}function _0x13bf97(_0x275e08){const _0x45f7ef=_0x14730a;_0x45e0fb['whatsappInteraction'][_0x45f7ef(0x1fac)]({'id':_0x275e08['id']})[_0x45f7ef(0x2945)]['then'](function(){const _0x491b18=_0x45f7ef;_0x3f65c0()[_0x491b18(0x2640)](_0xe9334a[_0x491b18(0x21e5)][_0x491b18(0x19c7)],{'id':_0x275e08['id']}),_0xe9334a[_0x491b18(0x21e5)][_0x491b18(0x51c)]-=0x1,!_0xe9334a[_0x491b18(0x21e5)][_0x491b18(0x19c7)][_0x491b18(0x402)]&&_0x396b90(),_0x3e1d2a[_0x491b18(0x1c75)]({'title':_0x491b18(0x739),'msg':_0x275e08['name']?_0x275e08[_0x491b18(0x19eb)]+_0x491b18(0x23e3):''});})['catch'](function(_0x4e083c){const _0x1f0526=_0x45f7ef;if(_0x4e083c[_0x1f0526(0x524)]&&_0x4e083c[_0x1f0526(0x524)][_0x1f0526(0xcef)]&&_0x4e083c[_0x1f0526(0x524)][_0x1f0526(0xcef)][_0x1f0526(0x402)]){_0xe9334a[_0x1f0526(0xcef)]=_0x4e083c[_0x1f0526(0x524)][_0x1f0526(0xcef)]||[{'message':_0x4e083c[_0x1f0526(0xd5f)](),'type':_0x1f0526(0x1092)}];for(let _0x3a3918=0x0;_0x3a3918<_0x4e083c[_0x1f0526(0x524)][_0x1f0526(0xcef)][_0x1f0526(0x402)];_0x3a3918++){_0x3e1d2a[_0x1f0526(0x1980)]({'title':_0x4e083c['data']['errors'][_0x3a3918][_0x1f0526(0x1142)],'msg':_0x4e083c['data'][_0x1f0526(0xcef)][_0x3a3918][_0x1f0526(0x7fd)]});}}else _0x3e1d2a[_0x1f0526(0x1980)]({'title':_0x4e083c[_0x1f0526(0x107b)]?_0x1f0526(0x262a)+_0x4e083c[_0x1f0526(0x107b)]+'\x20-\x20'+_0x4e083c[_0x1f0526(0x167f)]:'SYSTEM:GETwhatsappAccount','msg':_0x4e083c[_0x1f0526(0x524)]?JSON[_0x1f0526(0x10bb)](_0x4e083c['data'][_0x1f0526(0x7fd)]):_0x4e083c[_0x1f0526(0x7fd)]||_0x4e083c[_0x1f0526(0xd5f)]()});});}function _0x2bba58(){const _0x2e5107=_0x14730a,_0x1570ad=angular[_0x2e5107(0x235a)](_0xe9334a[_0x2e5107(0x149d)]);return _0xe9334a[_0x2e5107(0x149d)]=[],_0x1570ad;}function _0x5c44c4(_0x1a796f){const _0x2ddfc8=_0x14730a,_0x4d84bb=_0x18b41f[_0x2ddfc8(0x1e8a)]()[_0x2ddfc8(0x1189)](_0x2ddfc8(0x2283))['htmlContent'](_0x2ddfc8(0x16d3)+_0xe9334a[_0x2ddfc8(0x149d)][_0x2ddfc8(0x402)]+_0x2ddfc8(0x2452)+_0x2ddfc8(0xe01))[_0x2ddfc8(0x4bd)](_0x2ddfc8(0xa37))[_0x2ddfc8(0x1f27)](_0x1a796f)['ok']('OK')[_0x2ddfc8(0x6c3)]('CANCEL');_0x18b41f[_0x2ddfc8(0x2615)](_0x4d84bb)[_0x2ddfc8(0x146b)](function(){const _0x5642ab=_0x2ddfc8;_0xe9334a[_0x5642ab(0x149d)][_0x5642ab(0x1df5)](function(_0x1efc0f){_0x13bf97(_0x1efc0f);}),_0xe9334a[_0x5642ab(0x149d)]=[];});}function _0x589992(_0x395c24){const _0x378b56=_0x14730a;_0x395c24[_0x378b56(0x364)]?_0x395c24[_0x378b56(0x792)]=(_0x395c24[_0x378b56(0x364)][_0x378b56(0x1ed4)]||'')+'\x20'+(_0x395c24[_0x378b56(0x364)][_0x378b56(0xee4)]||''):_0x395c24[_0x378b56(0x792)]=_0x32e236['instant'](_0x378b56(0xe0b));}function _0x393026(_0x527505){const _0x508935=_0x14730a;if(_0x527505[_0x508935(0xea2)])return _0x527505[_0x508935(0xea2)]===_0xe9334a[_0x508935(0x2321)]['id']?_0x32e236[_0x508935(0xde)](_0x508935(0x6d9)):_0x527505[_0x508935(0xac5)][_0x508935(0x286a)]+'\x20<'+_0x527505[_0x508935(0xac5)][_0x508935(0x113f)]+'>';return _0x32e236[_0x508935(0xde)](_0x508935(0x38d));}let _0x7f8436=!![],_0x58ec05=0x1;_0x279d35[_0x14730a(0x21e8)](_0x14730a(0x117f),function(_0x160868,_0x533a21){const _0x463c8a=_0x14730a;_0x7f8436?_0x5a8067(function(){_0x7f8436=![];}):(!_0x533a21&&(_0x58ec05=_0xe9334a[_0x463c8a(0x1a56)][_0x463c8a(0x844)]),_0x160868!==_0x533a21&&(_0xe9334a[_0x463c8a(0x1a56)][_0x463c8a(0x844)]=0x1),!_0x160868&&(_0xe9334a[_0x463c8a(0x1a56)][_0x463c8a(0x844)]=_0x58ec05),_0x396b90());});}const _0x5e629b=_0x72172c;;const _0x434ef6=_0x4acfac['p']+_0x313a4d(0xa75);;_0x395a81[_0x313a4d(0x11c2)]=['$state',_0x313a4d(0xd08),'$mdDialog',_0x313a4d(0x4d8),'$translate','license',_0x313a4d(0x15b9),_0x313a4d(0x247f),_0x313a4d(0x1fe4),'Auth',_0x313a4d(0x815),'userProfileSection'];function _0x395a81(_0x3db257,_0x26db0c,_0x1bd8fb,_0x33ec71,_0x5ed254,_0x159422,_0x543f16,_0x4af84f,_0x42f94e,_0x57b359,_0x2d832a,_0x52eecb){const _0x4b3ed9=_0x313a4d,_0xce83f4=this;_0xce83f4[_0x4b3ed9(0x2321)]=_0x57b359['getCurrentUser'](),_0xce83f4[_0x4b3ed9(0x2690)]=_0x159422,_0xce83f4[_0x4b3ed9(0x15b9)]=_0x543f16,_0xce83f4[_0x4b3ed9(0x2251)]=_0xce83f4['setting'][_0x4b3ed9(0x976)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0xce83f4[_0x4b3ed9(0x1002)]=_0x26db0c[_0x4b3ed9(0x2414)]()+_0x4b3ed9(0xb0e)+_0x26db0c['host'](),_0xce83f4[_0x4b3ed9(0x815)]=_0x2d832a||_0x3db257[_0x4b3ed9(0x16a)][_0x4b3ed9(0x815)]||{},_0xce83f4['userProfileSection']=_0x52eecb&&_0x52eecb['count']==0x1?_0x52eecb['rows'][0x0]:null,_0xce83f4[_0x4b3ed9(0x2514)]=_0x57b359[_0x4b3ed9(0xe60)](_0xce83f4[_0x4b3ed9(0x1366)]?_0xce83f4['userProfileSection'][_0x4b3ed9(0x2514)]:null),_0xce83f4[_0x4b3ed9(0x855)]={},_0xce83f4[_0x4b3ed9(0x1b09)]=_0x3db257[_0x4b3ed9(0x16a)][_0x4b3ed9(0x13a3)]||0x0,_0xce83f4[_0x4b3ed9(0x1027)]=_0x5c2c3a,_0xce83f4['alert']=_0x42f94e[_0x4b3ed9(0x271e)],_0xce83f4[_0x4b3ed9(0x8e8)]=_0x17ad36,_0xce83f4['saveWhatsappAccount']=_0xe8f6dc,_0x57b359[_0x4b3ed9(0x23e0)](_0x4b3ed9(0x174b))?_0x4af84f[_0x4b3ed9(0xf03)][_0x4b3ed9(0x16b4)]({'fields':_0x4b3ed9(0x7a7),'sort':_0x4b3ed9(0x19eb)})['$promise'][_0x4b3ed9(0x146b)](function(_0x53b608){const _0x42c7f0=_0x4b3ed9;_0xce83f4[_0x42c7f0(0x1324)]=_0x53b608['rows']||[];})[_0x4b3ed9(0x129e)](function(_0x2f3266){const _0x48867b=_0x4b3ed9;_0x42f94e[_0x48867b(0x1980)]({'title':_0x2f3266[_0x48867b(0x107b)]?_0x48867b(0x262a)+_0x2f3266['status']+'\x20-\x20'+_0x2f3266[_0x48867b(0x167f)]:_0x48867b(0x11b3),'msg':_0x2f3266['data']?JSON['stringify'](_0x2f3266[_0x48867b(0x524)]):_0x2f3266[_0x48867b(0xd5f)]()});}):_0x4af84f[_0x4b3ed9(0xf03)][_0x4b3ed9(0x16b4)]({'fields':'id,name','sort':_0x4b3ed9(0x19eb)})[_0x4b3ed9(0x2945)][_0x4b3ed9(0x146b)](function(_0x5525f6){const _0x35b4fb=_0x4b3ed9;_0xce83f4[_0x35b4fb(0x1324)]=_0x5525f6[_0x35b4fb(0x19c7)]||[];})[_0x4b3ed9(0x146b)](function(){const _0x465f71=_0x4b3ed9;return _0x4af84f[_0x465f71(0x1366)][_0x465f71(0x16b4)]({'userProfileId':_0xce83f4[_0x465f71(0x2321)][_0x465f71(0x209a)],'sectionId':0x12d})['$promise'];})[_0x4b3ed9(0x146b)](function(_0x30fbab){const _0x18bf37=_0x4b3ed9,_0x7c67fd=_0x30fbab&&_0x30fbab['rows']?_0x30fbab[_0x18bf37(0x19c7)][0x0]:null;if(!_0x7c67fd){const _0xe2ff76=[];let _0x25024b=null;_0xce83f4['whatsappAccount']&&(_0x25024b=_0x3f65c0()[_0x18bf37(0xc84)](_0xce83f4[_0x18bf37(0x1324)],{'id':Number(_0xce83f4[_0x18bf37(0x815)]['ListId'])}));for(let _0x5a28e8=0x0;_0x5a28e8<_0xce83f4[_0x18bf37(0x1324)][_0x18bf37(0x402)];_0x5a28e8++){_0x25024b&&_0xce83f4['lists'][_0x5a28e8]['id']===_0x25024b['id']&&(_0xce83f4[_0x18bf37(0x1324)][_0x5a28e8][_0x18bf37(0x8ff)]=![],_0xe2ff76[_0x18bf37(0x1f47)](_0xce83f4[_0x18bf37(0x1324)][_0x5a28e8]));}_0xce83f4[_0x18bf37(0x1324)]=_0xe2ff76;}else{if(!_0x7c67fd[_0x18bf37(0x11d2)])return _0x4af84f[_0x18bf37(0xdcc)][_0x18bf37(0x16b4)]({'sectionId':_0x7c67fd['id']})[_0x18bf37(0x2945)][_0x18bf37(0x146b)](function(_0x4f070c){const _0xe7831c=_0x18bf37,_0x41a0fe=_0x3f65c0()[_0xe7831c(0x205)](_0x4f070c[_0xe7831c(0x19c7)],function(_0x55059e){const _0x425cef=_0xe7831c;return _0x3f65c0()[_0x425cef(0xc84)](_0xce83f4['lists'],{'id':_0x55059e[_0x425cef(0x18b8)]});});let _0x1bc68c=null;_0xce83f4[_0xe7831c(0x815)]&&(_0x1bc68c=_0x3f65c0()[_0xe7831c(0xc84)](_0xce83f4['lists'],{'id':Number(_0xce83f4[_0xe7831c(0x815)][_0xe7831c(0xb7c)])}));if(_0x1bc68c&&!_0x3f65c0()[_0xe7831c(0x1360)](_0x41a0fe,['id',_0x1bc68c['id']])){const _0x3b0a5d=_0x3f65c0()[_0xe7831c(0xc84)](_0xce83f4[_0xe7831c(0x1324)],{'id':_0x1bc68c['id']});_0x3b0a5d[_0xe7831c(0x8ff)]=![],_0x41a0fe[_0xe7831c(0x1f47)](_0x3b0a5d);}_0xce83f4[_0xe7831c(0x1324)]=_0x41a0fe;});}})[_0x4b3ed9(0x129e)](function(_0x369c57){const _0x52137e=_0x4b3ed9;_0x42f94e[_0x52137e(0x1980)]({'title':_0x369c57['status']?_0x52137e(0x262a)+_0x369c57['status']+'\x20-\x20'+_0x369c57[_0x52137e(0x167f)]:'SYSTEM:GETlists','msg':_0x369c57[_0x52137e(0x524)]?JSON['stringify'](_0x369c57[_0x52137e(0x524)]):_0x369c57['toString']()});}),_0x57b359[_0x4b3ed9(0x23e0)]('admin')?_0x4af84f[_0x4b3ed9(0x1e3e)][_0x4b3ed9(0x16b4)]({'fields':_0x4b3ed9(0x69a),'sort':_0x4b3ed9(0x19eb),'nolimit':_0x4b3ed9(0x1185)})['$promise']['then'](function(_0x27d69e){const _0x3f0152=_0x4b3ed9;_0xce83f4[_0x3f0152(0x23bb)]=_0x27d69e[_0x3f0152(0x19c7)]||[];})['catch'](function(_0x1d6da0){const _0x40de84=_0x4b3ed9;_0x42f94e[_0x40de84(0x1980)]({'title':_0x1d6da0[_0x40de84(0x107b)]?_0x40de84(0x262a)+_0x1d6da0[_0x40de84(0x107b)]+_0x40de84(0x1315)+_0x1d6da0['statusText']:_0x40de84(0x1e82),'msg':_0x1d6da0['data']?JSON[_0x40de84(0x10bb)](_0x1d6da0[_0x40de84(0x524)]):_0x1d6da0['toString']()});}):_0x4af84f[_0x4b3ed9(0x1e3e)][_0x4b3ed9(0x16b4)]({'fields':_0x4b3ed9(0x69a),'sort':_0x4b3ed9(0x19eb),'nolimit':_0x4b3ed9(0x1185)})[_0x4b3ed9(0x2945)][_0x4b3ed9(0x146b)](function(_0x2bc1f6){const _0x579b56=_0x4b3ed9;_0xce83f4[_0x579b56(0x23bb)]=_0x2bc1f6['rows']||[];})['then'](function(){const _0x3e4da3=_0x4b3ed9;return _0x4af84f[_0x3e4da3(0x1366)]['get']({'userProfileId':_0xce83f4[_0x3e4da3(0x2321)][_0x3e4da3(0x209a)],'sectionId':0x3ed})['$promise'];})['then'](function(_0xcd654e){const _0x6c4a41=_0x4b3ed9,_0x23f3c4=_0xcd654e&&_0xcd654e[_0x6c4a41(0x19c7)]?_0xcd654e[_0x6c4a41(0x19c7)][0x0]:null;if(!_0x23f3c4)_0xce83f4[_0x6c4a41(0x23bb)]=[];else{if(!_0x23f3c4[_0x6c4a41(0x11d2)])return _0x4af84f[_0x6c4a41(0xdcc)][_0x6c4a41(0x16b4)]({'sectionId':_0x23f3c4['id']})[_0x6c4a41(0x2945)][_0x6c4a41(0x146b)](function(_0x1f75be){const _0xa480e7=_0x6c4a41,_0x1de015=_0x3f65c0()[_0xa480e7(0x205)](_0x1f75be['rows'],function(_0x4ff442){const _0x43c40b=_0xa480e7;return _0x3f65c0()[_0x43c40b(0xc84)](_0xce83f4['pauses'],{'id':_0x4ff442[_0x43c40b(0x18b8)]});});_0xce83f4[_0xa480e7(0x23bb)][_0xa480e7(0x1df5)](function(_0x9c89a){const _0x3f3c4c=_0xa480e7;!_0x3f65c0()[_0x3f3c4c(0x1360)](_0x1de015,['id',_0x9c89a['id']])&&(_0x9c89a[_0x3f3c4c(0x8ff)]=![]),_0x1de015[_0x3f3c4c(0x1f47)](_0x9c89a);}),_0xce83f4[_0xa480e7(0x23bb)]=_0x1de015;});}})[_0x4b3ed9(0x129e)](function(_0xc6455c){const _0x59e497=_0x4b3ed9;_0x42f94e['error']({'title':_0xc6455c[_0x59e497(0x107b)]?_0x59e497(0x262a)+_0xc6455c[_0x59e497(0x107b)]+_0x59e497(0x1315)+_0xc6455c[_0x59e497(0x167f)]:'SYSTEM:GETpauses','msg':_0xc6455c[_0x59e497(0x524)]?JSON[_0x59e497(0x10bb)](_0xc6455c['data']):_0xc6455c['toString']()});});function _0x5c2c3a(_0x1be560,_0xfc47e3){const _0x4087e3=_0x4b3ed9;_0x1bd8fb[_0x4087e3(0x2615)]({'controller':'WhatsappAccountagentaddController','controllerAs':'vm','templateUrl':_0x434ef6,'parent':angular[_0x4087e3(0x1853)](_0x33ec71[_0x4087e3(0x2586)]),'targetEvent':_0xfc47e3,'clickOutsideToClose':!![],'locals':{'whatsappAccount':_0x1be560,'whatsappAccounts':_0xce83f4[_0x4087e3(0x23c)]?_0xce83f4[_0x4087e3(0x23c)]['rows']:[],'crudPermissions':_0xce83f4[_0x4087e3(0x2514)],'realtime':![]}});}function _0x17ad36(){const _0x21d558=_0x4b3ed9;_0x3db257['go'](_0x21d558(0x5cd),{},{'reload':_0x21d558(0x5cd)});}function _0xe8f6dc(){const _0x3ce0de=_0x4b3ed9;_0x4af84f[_0x3ce0de(0x815)][_0x3ce0de(0x18e1)]({'id':_0xce83f4[_0x3ce0de(0x815)]['id']},_0xce83f4[_0x3ce0de(0x815)])['$promise'][_0x3ce0de(0x146b)](function(){const _0x5abf7e=_0x3ce0de;_0x42f94e[_0x5abf7e(0x1c75)]({'title':'WhatsappAccount\x20updated!','msg':_0xce83f4[_0x5abf7e(0x815)][_0x5abf7e(0x19eb)]?_0xce83f4[_0x5abf7e(0x815)][_0x5abf7e(0x19eb)]+_0x5abf7e(0x6b0):''});})[_0x3ce0de(0x129e)](function(_0x398844){const _0x4cd163=_0x3ce0de;_0x42f94e['error']({'title':_0x398844[_0x4cd163(0x107b)]?'API:'+_0x398844[_0x4cd163(0x107b)]+'\x20-\x20'+_0x398844[_0x4cd163(0x167f)]:_0x4cd163(0x1092),'msg':_0x398844[_0x4cd163(0x524)]?JSON['stringify'](_0x398844[_0x4cd163(0x524)]):_0x398844[_0x4cd163(0xd5f)]()});});}}const _0x26407f=_0x395a81;;const _0x312283=_0x4acfac['p']+_0x313a4d(0x1fed);;_0x4bda81['$inject']=[_0x313a4d(0x23df),_0x313a4d(0x910),_0x313a4d(0x1862),'$q',_0x313a4d(0x214b),'$timeout',_0x313a4d(0x10e8),_0x313a4d(0x4d8),_0x313a4d(0x1fe4),_0x313a4d(0x247f),_0x313a4d(0xa87)];function _0x4bda81(_0x5a882c,_0x237607,_0x2fd920,_0x4fcb14,_0x1baf28,_0x5f58c1,_0x29d736,_0x1dc2f1,_0x1cbc90,_0x48aa2d,_0x8d6827){const _0xbcb97e=_0x313a4d,_0x4bc66a=this;_0x4bc66a['currentUser']=_0x8d6827['getCurrentUser'](),_0x4bc66a[_0xbcb97e(0x815)]={},_0x4bc66a[_0xbcb97e(0x18f3)]={'count':0x0,'rows':[]},_0x4bc66a['selectedWhatsappAccountWhatsappCannedAnswers']=[],_0x4bc66a[_0xbcb97e(0x2514)],_0x4bc66a[_0xbcb97e(0x1a56)]={'fields':_0xbcb97e(0x241e),'limit':0xa,'page':0x1},_0x4bc66a['init']=_0x5cc07a,_0x4bc66a[_0xbcb97e(0x19b4)]=_0x4d6787,_0x4bc66a['success']=_0x3ed88d,_0x4bc66a['getWhatsappAccountWhatsappCannedAnswers']=_0x1ff84a,_0x4bc66a['createOrEditWhatsappAccountWhatsappCannedAnswer']=_0x295407,_0x4bc66a['exportSelectedWhatsappAccountWhatsappCannedAnswers']=_0x46e8af,_0x4bc66a[_0xbcb97e(0x14e7)]=_0x3408a1,_0x4bc66a[_0xbcb97e(0x2914)]=_0x4d1681;function _0x5cc07a(_0x2a7646,_0x52b7d8){const _0x3ef827=_0xbcb97e;_0x4bc66a[_0x3ef827(0x815)]=_0x2a7646,_0x4bc66a[_0x3ef827(0x2514)]=typeof _0x52b7d8!==_0x3ef827(0x2274)?_0x52b7d8:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x4bc66a[_0x3ef827(0x1a56)][_0x3ef827(0x158a)]=_0x4bc66a[_0x3ef827(0x815)]['id'],_0x4bc66a['query']['id']=_0x4bc66a[_0x3ef827(0x815)]['id'],_0x1ff84a();}function _0x4d6787(_0x408787,_0x3322ef){const _0x294731=_0xbcb97e,_0x41dbae=_0x29d736[_0x294731(0x1e8a)]()[_0x294731(0x1189)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20whatsappCannedAnswer?')[_0x294731(0x1cbe)](_0x294731(0x16d3)+(_0x408787[_0x294731(0x19eb)]||_0x408787['id']&&_0x3f65c0()[_0x294731(0x21cf)](_0x294731(0x292b))+_0x408787['id']||'whatsappCannedAnswer')+_0x294731(0x252f)+_0x294731(0xe01))[_0x294731(0x4bd)](_0x294731(0x1b5f))[_0x294731(0x1f27)](_0x3322ef)['ok']('OK')[_0x294731(0x6c3)](_0x294731(0x39a));_0x29d736[_0x294731(0x2615)](_0x41dbae)['then'](function(){_0x3408a1(_0x408787);},function(){const _0x515bac=_0x294731;console[_0x515bac(0x1a74)](_0x515bac(0x39a));});}function _0x3ed88d(_0x2dd093){const _0x5aeba6=_0xbcb97e;_0x4bc66a[_0x5aeba6(0x18f3)]=_0x2dd093||{'count':0x0,'rows':[]};}function _0x1ff84a(){const _0x4189c9=_0xbcb97e;_0x4bc66a['query']['offset']=(_0x4bc66a[_0x4189c9(0x1a56)][_0x4189c9(0x844)]-0x1)*_0x4bc66a[_0x4189c9(0x1a56)]['limit'],_0x4bc66a[_0x4189c9(0xb9c)]=_0x48aa2d[_0x4189c9(0x815)]['getAnswers'](_0x4bc66a['query'],_0x3ed88d)[_0x4189c9(0x2945)];}function _0x295407(_0x516c99,_0x33eb2a){const _0x197866=_0xbcb97e;_0x29d736[_0x197866(0x2615)]({'controller':_0x197866(0x22f),'controllerAs':'vm','templateUrl':_0x312283,'parent':angular[_0x197866(0x1853)](_0x1dc2f1[_0x197866(0x2586)]),'targetEvent':_0x516c99,'clickOutsideToClose':!![],'locals':{'whatsappAccount':_0x4bc66a['whatsappAccount'],'whatsappCannedAnswer':_0x33eb2a,'whatsappCannedAnswers':_0x4bc66a[_0x197866(0x18f3)][_0x197866(0x19c7)],'license':null,'setting':null,'crudPermissions':_0x4bc66a[_0x197866(0x2514)]}});}function _0x3408a1(_0x2a9663){const _0x156642=_0xbcb97e;_0x48aa2d['cannedAnswer'][_0x156642(0x1fac)]({'id':_0x2a9663['id']})['$promise'][_0x156642(0x146b)](function(){const _0x5446b7=_0x156642;_0x3f65c0()[_0x5446b7(0x2640)](_0x4bc66a[_0x5446b7(0x18f3)][_0x5446b7(0x19c7)],{'id':_0x2a9663['id']}),_0x4bc66a[_0x5446b7(0x18f3)]['count']-=0x1,!_0x4bc66a[_0x5446b7(0x18f3)]['rows'][_0x5446b7(0x402)]&&_0x1ff84a(),_0x1cbc90[_0x5446b7(0x1c75)]({'title':_0x5446b7(0x16ed),'msg':_0x2a9663[_0x5446b7(0x19eb)]?_0x2a9663[_0x5446b7(0x19eb)]+_0x5446b7(0x23e3):''});})[_0x156642(0x129e)](function(_0x5b522a){const _0x1238c7=_0x156642;if(_0x5b522a[_0x1238c7(0x524)]&&_0x5b522a[_0x1238c7(0x524)]['errors']&&_0x5b522a[_0x1238c7(0x524)][_0x1238c7(0xcef)][_0x1238c7(0x402)]){_0x4bc66a[_0x1238c7(0xcef)]=_0x5b522a[_0x1238c7(0x524)][_0x1238c7(0xcef)]||[{'message':_0x5b522a[_0x1238c7(0xd5f)](),'type':'SYSTEM:GETwhatsappAccount'}];for(let _0x25b13a=0x0;_0x25b13a<_0x5b522a['data']['errors'][_0x1238c7(0x402)];_0x25b13a++){_0x1cbc90[_0x1238c7(0x1980)]({'title':_0x5b522a[_0x1238c7(0x524)][_0x1238c7(0xcef)][_0x25b13a][_0x1238c7(0x1142)],'msg':_0x5b522a[_0x1238c7(0x524)][_0x1238c7(0xcef)][_0x25b13a][_0x1238c7(0x7fd)]});}}else _0x1cbc90[_0x1238c7(0x1980)]({'title':_0x5b522a[_0x1238c7(0x107b)]?'API:'+_0x5b522a[_0x1238c7(0x107b)]+_0x1238c7(0x1315)+_0x5b522a[_0x1238c7(0x167f)]:_0x1238c7(0x1092),'msg':_0x5b522a[_0x1238c7(0x524)]?JSON[_0x1238c7(0x10bb)](_0x5b522a[_0x1238c7(0x524)][_0x1238c7(0x7fd)]):_0x5b522a['message']||_0x5b522a[_0x1238c7(0xd5f)]()});});}function _0x46e8af(){const _0x57e2b9=_0xbcb97e,_0x739a91=angular[_0x57e2b9(0x235a)](_0x4bc66a[_0x57e2b9(0x1631)]);return _0x4bc66a[_0x57e2b9(0x1631)]=[],_0x739a91;}function _0x4d1681(_0x3c2f37){const _0x214071=_0xbcb97e,_0x55399a=_0x29d736[_0x214071(0x1e8a)]()[_0x214071(0x1189)](_0x214071(0xb52))[_0x214071(0x1cbe)](''+_0x4bc66a[_0x214071(0x1631)][_0x214071(0x402)]+_0x214071(0x2452)+_0x214071(0xe01))[_0x214071(0x4bd)]('delete\x20whatsappCannedAnswers')[_0x214071(0x1f27)](_0x3c2f37)['ok']('OK')['cancel'](_0x214071(0x39a));_0x29d736[_0x214071(0x2615)](_0x55399a)['then'](function(){const _0x39fe59=_0x214071;_0x4bc66a[_0x39fe59(0x1631)][_0x39fe59(0x1df5)](function(_0x280dd8){_0x3408a1(_0x280dd8);}),_0x4bc66a['selectedWhatsappAccountWhatsappCannedAnswers']=[];});}let _0x4bbda0=!![],_0x2027a5=0x1;_0x237607[_0xbcb97e(0x21e8)](_0xbcb97e(0x117f),function(_0x2b4cd7,_0xe3e4d3){const _0x1a0708=_0xbcb97e;_0x4bbda0?_0x5f58c1(function(){_0x4bbda0=![];}):(!_0xe3e4d3&&(_0x2027a5=_0x4bc66a[_0x1a0708(0x1a56)][_0x1a0708(0x844)]),_0x2b4cd7!==_0xe3e4d3&&(_0x4bc66a[_0x1a0708(0x1a56)]['page']=0x1),!_0x2b4cd7&&(_0x4bc66a[_0x1a0708(0x1a56)][_0x1a0708(0x844)]=_0x2027a5),_0x1ff84a());});}const _0x77f55b=_0x4bda81;;_0x5cd099['$inject']=['$scope',_0x313a4d(0x1862),_0x313a4d(0xd08),'$mdDialog','$q',_0x313a4d(0x214b),_0x313a4d(0x1fe4),_0x313a4d(0x249),_0x313a4d(0x21f7),_0x313a4d(0x247f),'Auth','license',_0x313a4d(0x15b9),_0x313a4d(0x2514)];function _0x5cd099(_0x527da4,_0x1d6e1c,_0x386181,_0x522352,_0x454951,_0x343768,_0x355fa4,_0x4dbe91,_0x2f4b12,_0x53f578,_0x43de17,_0x1e7cdc,_0x53a54d,_0xc120bc){const _0xa3643e=_0x313a4d,_0x3c092c=this;_0x3c092c['currentUser']=_0x43de17[_0xa3643e(0xb12)](),_0x3c092c[_0xa3643e(0xcef)]=[],_0x3c092c[_0xa3643e(0x15b9)]=_0x53a54d,_0x3c092c[_0xa3643e(0x2690)]=_0x1e7cdc,_0x3c092c[_0xa3643e(0x2514)]=_0xc120bc,_0x3c092c[_0xa3643e(0x855)]={},_0x3c092c['passwordPattern']=_0x3c092c[_0xa3643e(0x15b9)]&&_0x3c092c['setting']['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3c092c[_0xa3643e(0x1189)]=_0xa3643e(0x1adb),_0x3c092c['whatsappCannedAnswer']=angular[_0xa3643e(0x235a)](_0x2f4b12),_0x3c092c[_0xa3643e(0x249)]=_0x4dbe91,_0x3c092c['newWhatsappCannedAnswer']=![];!_0x3c092c[_0xa3643e(0x21f7)]&&(_0x3c092c[_0xa3643e(0x21f7)]={},_0x3c092c[_0xa3643e(0x1189)]=_0xa3643e(0xda7),_0x3c092c['newWhatsappCannedAnswer']=!![]);_0x1d6e1c[_0xa3643e(0x16a)]['id']&&(_0x3c092c[_0xa3643e(0x21f7)]['WhatsappAccountId']=_0x1d6e1c[_0xa3643e(0x16a)]['id']);_0x3c092c[_0xa3643e(0xbea)]=_0x591d49,_0x3c092c[_0xa3643e(0x1799)]=_0x1c5f48,_0x3c092c[_0xa3643e(0x1dcd)]=_0x34aa81,_0x3c092c[_0xa3643e(0xe73)]=_0x1aab3f,_0x3c092c[_0xa3643e(0x13f3)]=_0x22240b;function _0x591d49(){const _0x573c61=_0xa3643e;_0x3c092c['errors']=[],_0x53f578[_0x573c61(0x1ada)][_0x573c61(0x1e3)](_0x3c092c[_0x573c61(0x21f7)])['$promise'][_0x573c61(0x146b)](function(_0x47b6d6){const _0x2d3552=_0x573c61;_0x3c092c['whatsappCannedAnswers'][_0x2d3552(0xb3d)](_0x47b6d6['toJSON']()),_0x355fa4[_0x2d3552(0x1c75)]({'title':'WhatsappCannedAnswer\x20properly\x20created','msg':_0x3c092c[_0x2d3552(0x21f7)]['name']?_0x3c092c[_0x2d3552(0x21f7)][_0x2d3552(0x19eb)]+'\x20has\x20been\x20created!':''}),_0x22240b(_0x47b6d6);})[_0x573c61(0x129e)](function(_0x4eb641){const _0x4924c1=_0x573c61;if(_0x4eb641['data']&&_0x4eb641['data'][_0x4924c1(0xcef)]&&_0x4eb641['data'][_0x4924c1(0xcef)][_0x4924c1(0x402)]){_0x3c092c[_0x4924c1(0xcef)]=_0x4eb641[_0x4924c1(0x524)][_0x4924c1(0xcef)]||[{'message':_0x4eb641[_0x4924c1(0xd5f)](),'type':_0x4924c1(0x13f)}];for(let _0x570330=0x0;_0x570330<_0x4eb641[_0x4924c1(0x524)][_0x4924c1(0xcef)][_0x4924c1(0x402)];_0x570330+=0x1){_0x355fa4[_0x4924c1(0x1980)]({'title':_0x4eb641['data'][_0x4924c1(0xcef)][_0x570330][_0x4924c1(0x1142)],'msg':_0x4eb641[_0x4924c1(0x524)][_0x4924c1(0xcef)][_0x570330]['message']});}}else _0x355fa4[_0x4924c1(0x1980)]({'title':_0x4eb641[_0x4924c1(0x107b)]?'API:'+_0x4eb641['status']+_0x4924c1(0x1315)+_0x4eb641[_0x4924c1(0x167f)]:'api.cannedAnswer.save','msg':_0x4eb641[_0x4924c1(0x524)]?JSON[_0x4924c1(0x10bb)](_0x4eb641['data'][_0x4924c1(0x7fd)]):_0x4eb641[_0x4924c1(0xd5f)]()});});}function _0x1c5f48(){const _0x3bf87e=_0xa3643e;_0x3c092c['errors']=[],_0x53f578[_0x3bf87e(0x1ada)][_0x3bf87e(0x18e1)]({'id':_0x3c092c[_0x3bf87e(0x21f7)]['id']},_0x3c092c['whatsappCannedAnswer'])[_0x3bf87e(0x2945)][_0x3bf87e(0x146b)](function(_0x51f04a){const _0x529531=_0x3bf87e,_0x363014=_0x3f65c0()['find'](_0x3c092c[_0x529531(0x249)],{'id':_0x51f04a['id']});_0x363014&&_0x3f65c0()[_0x529531(0x168d)](_0x363014,_0x3f65c0()[_0x529531(0x40e)](_0x51f04a[_0x529531(0x2488)](),_0x3f65c0()[_0x529531(0x627)](_0x363014))),_0x355fa4['success']({'title':_0x529531(0x1930),'msg':_0x3c092c[_0x529531(0x21f7)][_0x529531(0x19eb)]?_0x3c092c['whatsappCannedAnswer'][_0x529531(0x19eb)]+_0x529531(0x24db):''}),_0x22240b(_0x51f04a);})[_0x3bf87e(0x129e)](function(_0x20600a){const _0x56fbf4=_0x3bf87e;if(_0x20600a[_0x56fbf4(0x524)]&&_0x20600a['data'][_0x56fbf4(0xcef)]&&_0x20600a[_0x56fbf4(0x524)][_0x56fbf4(0xcef)][_0x56fbf4(0x402)]){_0x3c092c[_0x56fbf4(0xcef)]=_0x20600a[_0x56fbf4(0x524)][_0x56fbf4(0xcef)]||[{'message':_0x20600a[_0x56fbf4(0xd5f)](),'type':_0x56fbf4(0x11ab)}];for(let _0x45f265=0x0;_0x45f265<_0x20600a[_0x56fbf4(0x524)][_0x56fbf4(0xcef)][_0x56fbf4(0x402)];_0x45f265++){_0x355fa4[_0x56fbf4(0x1980)]({'title':_0x20600a[_0x56fbf4(0x524)][_0x56fbf4(0xcef)][_0x45f265][_0x56fbf4(0x1142)],'msg':_0x20600a[_0x56fbf4(0x524)][_0x56fbf4(0xcef)][_0x45f265][_0x56fbf4(0x7fd)]});}}else _0x355fa4[_0x56fbf4(0x1980)]({'title':_0x20600a['status']?_0x56fbf4(0x262a)+_0x20600a[_0x56fbf4(0x107b)]+_0x56fbf4(0x1315)+_0x20600a[_0x56fbf4(0x167f)]:_0x56fbf4(0x11ab),'msg':_0x20600a[_0x56fbf4(0x524)]?JSON[_0x56fbf4(0x10bb)](_0x20600a[_0x56fbf4(0x524)][_0x56fbf4(0x7fd)]):_0x20600a['toString']()});});}function _0x34aa81(_0x22ef81){const _0x442c37=_0xa3643e;_0x3c092c[_0x442c37(0xcef)]=[];const _0x1d39ca=_0x522352['confirm']()['title']('Are\x20you\x20sure?')[_0x442c37(0x80f)](_0x442c37(0xb53))[_0x442c37(0x4bd)](_0x442c37(0x1cf8))['ok'](_0x442c37(0x25de))[_0x442c37(0x6c3)]('Cancel')[_0x442c37(0x1f27)](_0x22ef81);_0x522352[_0x442c37(0x2615)](_0x1d39ca)['then'](function(){const _0x370db5=_0x442c37;_0x53f578[_0x370db5(0x1ada)]['delete']({'id':_0x3c092c['whatsappCannedAnswer']['id']})[_0x370db5(0x2945)][_0x370db5(0x146b)](function(){const _0x5ad255=_0x370db5;_0x3f65c0()['remove'](_0x3c092c[_0x5ad255(0x249)],{'id':_0x3c092c[_0x5ad255(0x21f7)]['id']}),_0x355fa4[_0x5ad255(0x1c75)]({'title':_0x5ad255(0x1dd3),'msg':(_0x3c092c[_0x5ad255(0x21f7)][_0x5ad255(0x19eb)]||_0x5ad255(0x21f7))+_0x5ad255(0x23e3)}),_0x22240b(_0x3c092c['whatsappCannedAnswer']);})[_0x370db5(0x129e)](function(_0x1ec864){const _0x279664=_0x370db5;if(_0x1ec864['data']&&_0x1ec864['data'][_0x279664(0xcef)]&&_0x1ec864['data'][_0x279664(0xcef)]['length']){_0x3c092c[_0x279664(0xcef)]=_0x1ec864['data'][_0x279664(0xcef)]||[{'message':_0x1ec864[_0x279664(0xd5f)](),'type':'api.cannedAnswer.delete'}];for(let _0x20d80f=0x0;_0x20d80f<_0x1ec864[_0x279664(0x524)][_0x279664(0xcef)][_0x279664(0x402)];_0x20d80f++){_0x355fa4[_0x279664(0x1980)]({'title':_0x1ec864[_0x279664(0x524)][_0x279664(0xcef)][_0x20d80f][_0x279664(0x1142)],'msg':_0x1ec864[_0x279664(0x524)]['errors'][_0x20d80f][_0x279664(0x7fd)]});}}else _0x355fa4[_0x279664(0x1980)]({'title':_0x1ec864[_0x279664(0x107b)]?_0x279664(0x262a)+_0x1ec864['status']+_0x279664(0x1315)+_0x1ec864['statusText']:_0x279664(0xe6a),'msg':_0x1ec864[_0x279664(0x524)]?JSON[_0x279664(0x10bb)](_0x1ec864['data'][_0x279664(0x7fd)]):_0x1ec864['message']||_0x1ec864[_0x279664(0xd5f)]()});});},function(){});}function _0x1aab3f(_0x4fe302){return _0x4fe302===null?undefined:new Date(_0x4fe302);}function _0x22240b(_0x19f0f9){_0x522352['hide'](_0x19f0f9);}}const _0x4f12b2=_0x5cd099;;_0x20890e[_0x313a4d(0x11c2)]=[_0x313a4d(0x910),'$window',_0x313a4d(0x1862),_0x313a4d(0x15fe),_0x313a4d(0x10e8),_0x313a4d(0x4d8),_0x313a4d(0x1abe),_0x313a4d(0x214b),_0x313a4d(0x247f),_0x313a4d(0x1fe4),'Auth'];function _0x20890e(_0x4aca2a,_0x2b45b1,_0x4a67fc,_0x90696e,_0x509ada,_0x2f1b13,_0x10ac44,_0x5c699a,_0x4244d8,_0x4c0fa4,_0x4419a7){const _0x4f5a71=_0x313a4d,_0x59373f=this;_0x59373f[_0x4f5a71(0x2321)]=_0x4419a7[_0x4f5a71(0xb12)](),_0x59373f[_0x4f5a71(0x2647)]={'count':0x0,'rows':[]},_0x59373f[_0x4f5a71(0x2ad)]=[],_0x59373f['crudPermissions'],_0x59373f[_0x4f5a71(0xd92)]={'first':_0x4f5a71(0x20c1),'second':'2nd','third':_0x4f5a71(0x1195)},_0x59373f[_0x4f5a71(0x1a56)]={'fields':_0x4f5a71(0x2430),'sort':_0x4f5a71(0x12f2),'limit':0xa,'page':0x1},_0x59373f[_0x4f5a71(0x5aa)]=_0x2ea775,_0x59373f['deleteConfirm']=_0x20453c,_0x59373f['success']=_0x2e93cd,_0x59373f['getDispositions']=_0xc4e8df,_0x59373f['createOrEditDisposition']=_0x4100b9,_0x59373f[_0x4f5a71(0x1220)]=_0x62233e,_0x59373f[_0x4f5a71(0x25f0)]=_0x57ce5e,_0x59373f[_0x4f5a71(0x11e4)]=_0x340f42,_0x59373f[_0x4f5a71(0x4f0)]=_0x9f411,_0x59373f[_0x4f5a71(0x481)]=_0x4e42b0;function _0x2ea775(_0x54131f,_0x53ecee){const _0xf39ca9=_0x4f5a71;_0x59373f[_0xf39ca9(0x815)]=_0x54131f||{},_0x59373f[_0xf39ca9(0x2514)]=typeof _0x53ecee!=='undefined'?_0x53ecee:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x59373f[_0xf39ca9(0x1a56)][_0xf39ca9(0x158a)]=_0x59373f[_0xf39ca9(0x815)]['id'],_0x59373f[_0xf39ca9(0x1a56)]['id']=_0x59373f[_0xf39ca9(0x815)]['id'],_0xc4e8df();}function _0x4100b9(_0x584ad0,_0x5f18c7){const _0x32da1a=_0x4f5a71;_0x509ada['show']({'controller':_0x32da1a(0x1a84),'controllerAs':'vm','templateUrl':_0x4f093a,'parent':angular[_0x32da1a(0x1853)](_0x2f1b13['body']),'targetEvent':_0x584ad0,'clickOutsideToClose':!![],'locals':{'disposition':_0x5f18c7,'model':{'id':_0x59373f[_0x32da1a(0x815)]['id'],'field':_0x32da1a(0x158a),'route':_0x32da1a(0x815)},'license':null,'setting':null,'crudPermissions':_0x59373f[_0x32da1a(0x2514)]}})[_0x32da1a(0x146b)](function(_0x390f6a){if(_0x390f6a)_0xc4e8df();});}function _0x20453c(_0x489aa5,_0x486577){const _0x5dba9b=_0x4f5a71,_0x159b2d=_0x3f65c0()[_0x5dba9b(0x1360)](_0x59373f[_0x5dba9b(0x2647)][_0x5dba9b(0x19c7)],[_0x5dba9b(0x11b5),_0x489aa5['id']]),_0x33876e=_0x509ada[_0x5dba9b(0x1e8a)]()[_0x5dba9b(0x1189)](_0x5c699a[_0x5dba9b(0xde)](_0x5dba9b(0x19e6)))[_0x5dba9b(0x80f)](_0x5c699a[_0x5dba9b(0xde)](_0x5dba9b(0xe8d)+(_0x159b2d?'DISPOSITION_DELETE_MESSAGE_CHILDREN':_0x5dba9b(0xd49)),{'name':_0x489aa5[_0x5dba9b(0x19eb)]}))[_0x5dba9b(0x4bd)]('Delete\x20disposition')[_0x5dba9b(0x1f27)](_0x486577)['ok']('OK')[_0x5dba9b(0x6c3)](_0x5c699a[_0x5dba9b(0xde)](_0x5dba9b(0x1161)));_0x509ada[_0x5dba9b(0x2615)](_0x33876e)['then'](function(){_0x62233e(_0x489aa5);});}function _0x2e93cd(_0x62726){const _0x4bffe9=_0x4f5a71;_0x59373f[_0x4bffe9(0x2647)]=_0x62726||{'count':0x0,'rows':[]};}function _0xc4e8df(){const _0x573893=_0x4f5a71;_0x59373f[_0x573893(0x1a56)]['offset']=(_0x59373f[_0x573893(0x1a56)][_0x573893(0x844)]-0x1)*_0x59373f['query'][_0x573893(0x221e)],_0x59373f[_0x573893(0xb9c)]=_0x4244d8[_0x573893(0x815)][_0x573893(0x2451)](_0x59373f[_0x573893(0x1a56)],_0x2e93cd)[_0x573893(0x2945)];}function _0x62233e(_0x3b1787){const _0x51352c=_0x4f5a71;_0x4244d8[_0x51352c(0x9e1)][_0x51352c(0x1fac)]({'id':_0x3b1787['id']})[_0x51352c(0x2945)]['then'](function(){const _0x33c22f=_0x51352c;_0xc4e8df(),_0x4c0fa4['success']({'title':_0x5c699a['instant'](_0x33c22f(0xa2f))});})[_0x51352c(0x129e)](function(_0x5126e3){const _0x4efcfe=_0x51352c;if(_0x5126e3['data']&&_0x5126e3[_0x4efcfe(0x524)][_0x4efcfe(0xcef)]&&_0x5126e3['data']['errors'][_0x4efcfe(0x402)]){_0x59373f[_0x4efcfe(0xcef)]=_0x5126e3[_0x4efcfe(0x524)][_0x4efcfe(0xcef)]||[{'message':_0x5126e3[_0x4efcfe(0xd5f)](),'type':_0x4efcfe(0x24a7)}];for(let _0x30bf9e=0x0;_0x30bf9e<_0x5126e3['data']['errors'][_0x4efcfe(0x402)];_0x30bf9e++){_0x4c0fa4['error']({'title':_0x5126e3[_0x4efcfe(0x524)][_0x4efcfe(0xcef)][_0x30bf9e][_0x4efcfe(0x1142)],'msg':_0x5126e3[_0x4efcfe(0x524)][_0x4efcfe(0xcef)][_0x30bf9e][_0x4efcfe(0x7fd)]});}}else _0x4c0fa4['error']({'title':_0x5126e3[_0x4efcfe(0x107b)]?_0x4efcfe(0x262a)+_0x5126e3['status']+_0x4efcfe(0x1315)+_0x5126e3[_0x4efcfe(0x167f)]:_0x4efcfe(0x24a7),'msg':_0x5126e3[_0x4efcfe(0x524)]?JSON[_0x4efcfe(0x10bb)](_0x5126e3[_0x4efcfe(0x524)][_0x4efcfe(0x7fd)]):_0x5126e3['message']||_0x5126e3[_0x4efcfe(0xd5f)]()});});}function _0x57ce5e(){const _0xb46ad8=_0x4f5a71,_0x2d653e=angular[_0xb46ad8(0x235a)](_0x59373f[_0xb46ad8(0x2ad)]);return _0x59373f[_0xb46ad8(0x2ad)]=[],_0x2d653e;}function _0x340f42(_0x450a9a){const _0x3e4992=_0x4f5a71,_0xc71aab=_0x509ada['confirm']()[_0x3e4992(0x1189)](_0x5c699a[_0x3e4992(0xde)](_0x3e4992(0x1a5b)))[_0x3e4992(0x80f)](_0x5c699a[_0x3e4992(0xde)](_0x3e4992(0x23ce),{'total':_0x59373f['selectedDispositions'][_0x3e4992(0x402)]}))[_0x3e4992(0x4bd)](_0x3e4992(0x1eb0))[_0x3e4992(0x1f27)](_0x450a9a)['ok']('OK')[_0x3e4992(0x6c3)](_0x5c699a[_0x3e4992(0xde)](_0x3e4992(0x1161)));_0x509ada['show'](_0xc71aab)[_0x3e4992(0x146b)](function(){const _0x134615=_0x3e4992;_0x59373f['selectedDispositions'][_0x134615(0x1df5)](function(_0x5116f8){_0x62233e(_0x5116f8);}),_0x59373f[_0x134615(0x2ad)]=[];});}function _0x9f411(){const _0xa061e=_0x4f5a71;_0x59373f[_0xa061e(0x2ad)]=[];}function _0x4e42b0(){const _0x5bf0bd=_0x4f5a71;_0x59373f[_0x5bf0bd(0x2ad)]=_0x59373f[_0x5bf0bd(0x2647)]['rows'];}let _0x46f820=!![],_0xedb266=0x1;_0x4aca2a[_0x4f5a71(0x21e8)](_0x4f5a71(0x117f),function(_0x39dc2f,_0x2af006){const _0x53aff9=_0x4f5a71;_0x46f820?_0x10ac44(function(){_0x46f820=![];}):(!_0x2af006&&(_0xedb266=_0x59373f[_0x53aff9(0x1a56)]['page']),_0x39dc2f!==_0x2af006&&(_0x59373f[_0x53aff9(0x1a56)]['page']=0x1),!_0x39dc2f&&(_0x59373f[_0x53aff9(0x1a56)][_0x53aff9(0x844)]=_0xedb266),_0xc4e8df());});}const _0x6b695b=_0x20890e;;const _0x14f6ae=_0x4acfac['p']+_0x313a4d(0x50a);;_0x28bab3['$inject']=[_0x313a4d(0x910),_0x313a4d(0x1aa9),'$state',_0x313a4d(0x15fe),'$mdDialog','$document',_0x313a4d(0x1abe),_0x313a4d(0x214b),'whatsappAccounts',_0x313a4d(0x26b6),_0x313a4d(0x1366),_0x313a4d(0x247f),_0x313a4d(0x216c),_0x313a4d(0x1fe4),_0x313a4d(0xa87),_0x313a4d(0x2690),'setting'];function _0x28bab3(_0x147920,_0x45b3b9,_0x2369a8,_0x1c265b,_0x2c1173,_0x3a9b87,_0x58ba29,_0x3969a4,_0x359277,_0x272b2d,_0x38a222,_0x573ba3,_0x34a060,_0x5e27fd,_0x1cbe6d,_0x3a260d,_0x1d3715){const _0x3f69c2=_0x313a4d,_0x49b096=this;_0x49b096[_0x3f69c2(0x2690)]=_0x3a260d,_0x49b096[_0x3f69c2(0x15b9)]=_0x1d3715,_0x49b096[_0x3f69c2(0x2321)]=_0x1cbe6d[_0x3f69c2(0xb12)](),_0x49b096[_0x3f69c2(0x23c)]=_0x359277||{'count':0x0,'rows':[]},_0x49b096[_0x3f69c2(0x26b6)]=_0x272b2d,_0x49b096[_0x3f69c2(0x1366)]=_0x38a222&&_0x38a222[_0x3f69c2(0x51c)]==0x1?_0x38a222[_0x3f69c2(0x19c7)][0x0]:null,_0x49b096[_0x3f69c2(0x2514)]=_0x1cbe6d['parseCrudPermissions'](_0x49b096[_0x3f69c2(0x1366)]?_0x49b096[_0x3f69c2(0x1366)][_0x3f69c2(0x2514)]:null),_0x49b096[_0x3f69c2(0x768)]=_0x3f69c2(0x23c),_0x49b096['listOrder']='',_0x49b096[_0x3f69c2(0x214f)]=null,_0x49b096[_0x3f69c2(0x2925)]=[],_0x49b096['query']={'fields':_0x3f69c2(0x1edb),'sort':_0x3f69c2(0x12f2),'limit':0xa,'page':0x1},_0x49b096[_0x3f69c2(0x11da)]=_0x3f65c0()[_0x3f69c2(0x194)]([{'option':'Twilio','value':_0x3f69c2(0x169c)}],function(_0x55eca7){const _0x484d6c=_0x3f69c2;return _0x3f65c0()[_0x484d6c(0x5f4)](_0x55eca7[_0x484d6c(0x175d)],new RegExp('\x27','g'),'');}),_0x49b096['editstate']=_0x50941e,_0x49b096[_0x3f69c2(0xbce)]=_0x165524,_0x49b096['agentadddialog']=_0x19dba9,_0x49b096['deleteconfirm']=_0x2de58a,_0x49b096['success']=_0x5b538c,_0x49b096[_0x3f69c2(0x28f)]=_0x40a46d,_0x49b096['createOrEditWhatsappAccount']=_0x1c7923,_0x49b096[_0x3f69c2(0x223a)]=_0x2efb62,_0x49b096[_0x3f69c2(0x1a58)]=_0x32145a,_0x49b096[_0x3f69c2(0x1729)]=_0x10bdaa,_0x49b096[_0x3f69c2(0x30e)]=_0x25143a,_0x49b096[_0x3f69c2(0x1475)]=_0x52676a,_0x1cbe6d[_0x3f69c2(0x23e0)](_0x3f69c2(0x174b))?_0x573ba3[_0x3f69c2(0xf03)][_0x3f69c2(0x16b4)]({'fields':'id,name','sort':_0x3f69c2(0x19eb)})['$promise'][_0x3f69c2(0x146b)](function(_0x5ae589){_0x49b096['lists']=_0x5ae589['rows']||[];})[_0x3f69c2(0x129e)](function(_0xf5bb4d){const _0x4677b0=_0x3f69c2;_0x5e27fd['error']({'title':_0xf5bb4d[_0x4677b0(0x107b)]?_0x4677b0(0x262a)+_0xf5bb4d[_0x4677b0(0x107b)]+'\x20-\x20'+_0xf5bb4d[_0x4677b0(0x167f)]:_0x4677b0(0x11b3),'msg':_0xf5bb4d[_0x4677b0(0x524)]?JSON[_0x4677b0(0x10bb)](_0xf5bb4d[_0x4677b0(0x524)]):_0xf5bb4d[_0x4677b0(0xd5f)]()});}):_0x573ba3[_0x3f69c2(0xf03)][_0x3f69c2(0x16b4)]({'fields':_0x3f69c2(0x7a7),'sort':'name'})[_0x3f69c2(0x2945)][_0x3f69c2(0x146b)](function(_0x254918){const _0x236a8e=_0x3f69c2;_0x49b096[_0x236a8e(0x1324)]=_0x254918[_0x236a8e(0x19c7)]||[];})[_0x3f69c2(0x146b)](function(){const _0x5d7f12=_0x3f69c2;return _0x573ba3[_0x5d7f12(0x1366)][_0x5d7f12(0x16b4)]({'userProfileId':_0x49b096[_0x5d7f12(0x2321)]['userProfileId'],'sectionId':0x12d})['$promise'];})['then'](function(_0x4f8373){const _0x14fdca=_0x3f69c2,_0xc3654=_0x4f8373&&_0x4f8373[_0x14fdca(0x19c7)]?_0x4f8373['rows'][0x0]:null;if(!_0xc3654){const _0x4c8f6a=[];let _0x1c19ec=null;_0x49b096[_0x14fdca(0x815)]&&(_0x1c19ec=_0x3f65c0()['find'](_0x49b096[_0x14fdca(0x1324)],{'id':Number(_0x49b096['whatsappAccount']['ListId'])}));for(let _0x1b1361=0x0;_0x1b1361<_0x49b096[_0x14fdca(0x1324)][_0x14fdca(0x402)];_0x1b1361++){_0x1c19ec&&_0x49b096[_0x14fdca(0x1324)][_0x1b1361]['id']===_0x1c19ec['id']&&(_0x49b096[_0x14fdca(0x1324)][_0x1b1361][_0x14fdca(0x8ff)]=![],_0x4c8f6a['push'](_0x49b096['lists'][_0x1b1361]));}_0x49b096['lists']=_0x4c8f6a;}else{if(!_0xc3654[_0x14fdca(0x11d2)])return _0x573ba3[_0x14fdca(0xdcc)]['get']({'sectionId':_0xc3654['id']})[_0x14fdca(0x2945)][_0x14fdca(0x146b)](function(_0x4900ee){const _0x2b626e=_0x14fdca,_0x4f13fb=_0x3f65c0()[_0x2b626e(0x205)](_0x4900ee['rows'],function(_0x3d8a89){const _0x5d6d3c=_0x2b626e;return _0x3f65c0()[_0x5d6d3c(0xc84)](_0x49b096[_0x5d6d3c(0x1324)],{'id':_0x3d8a89[_0x5d6d3c(0x18b8)]});});let _0x4046b1=null;_0x49b096[_0x2b626e(0x815)]&&(_0x4046b1=_0x3f65c0()[_0x2b626e(0xc84)](_0x49b096[_0x2b626e(0x1324)],{'id':Number(_0x49b096[_0x2b626e(0x815)][_0x2b626e(0xb7c)])}));if(_0x4046b1&&!_0x3f65c0()[_0x2b626e(0x1360)](_0x4f13fb,['id',_0x4046b1['id']])){const _0x1532ec=_0x3f65c0()['find'](_0x49b096[_0x2b626e(0x1324)],{'id':_0x4046b1['id']});_0x1532ec['canSelect']=![],_0x4f13fb[_0x2b626e(0x1f47)](_0x1532ec);}_0x49b096[_0x2b626e(0x1324)]=_0x4f13fb;});}})[_0x3f69c2(0x129e)](function(_0x2875d9){const _0x3825c3=_0x3f69c2;_0x5e27fd[_0x3825c3(0x1980)]({'title':_0x2875d9[_0x3825c3(0x107b)]?_0x3825c3(0x262a)+_0x2875d9[_0x3825c3(0x107b)]+'\x20-\x20'+_0x2875d9[_0x3825c3(0x167f)]:'SYSTEM:GETlists','msg':_0x2875d9[_0x3825c3(0x524)]?JSON['stringify'](_0x2875d9[_0x3825c3(0x524)]):_0x2875d9[_0x3825c3(0xd5f)]()});}),_0x1cbe6d[_0x3f69c2(0x23e0)](_0x3f69c2(0x174b))?_0x573ba3['pause'][_0x3f69c2(0x16b4)]({'fields':'name,id','sort':_0x3f69c2(0x19eb),'nolimit':_0x3f69c2(0x1185)})[_0x3f69c2(0x2945)][_0x3f69c2(0x146b)](function(_0x43c125){const _0x297726=_0x3f69c2;_0x49b096[_0x297726(0x23bb)]=_0x43c125['rows']||[];})['catch'](function(_0x85995c){const _0x3213a8=_0x3f69c2;_0x5e27fd[_0x3213a8(0x1980)]({'title':_0x85995c[_0x3213a8(0x107b)]?_0x3213a8(0x262a)+_0x85995c[_0x3213a8(0x107b)]+_0x3213a8(0x1315)+_0x85995c[_0x3213a8(0x167f)]:'SYSTEM:GET_PAUSES','msg':_0x85995c[_0x3213a8(0x524)]?JSON[_0x3213a8(0x10bb)](_0x85995c['data']):_0x85995c[_0x3213a8(0xd5f)]()});}):_0x573ba3[_0x3f69c2(0x1e3e)][_0x3f69c2(0x16b4)]({'fields':_0x3f69c2(0x69a),'sort':_0x3f69c2(0x19eb),'nolimit':_0x3f69c2(0x1185)})[_0x3f69c2(0x2945)][_0x3f69c2(0x146b)](function(_0x113a1d){const _0x184af2=_0x3f69c2;_0x49b096[_0x184af2(0x23bb)]=_0x113a1d[_0x184af2(0x19c7)]||[];})[_0x3f69c2(0x146b)](function(){const _0x44a7e9=_0x3f69c2;return _0x573ba3[_0x44a7e9(0x1366)][_0x44a7e9(0x16b4)]({'userProfileId':_0x49b096[_0x44a7e9(0x2321)]['userProfileId'],'sectionId':0x3ed})[_0x44a7e9(0x2945)];})[_0x3f69c2(0x146b)](function(_0x1470b6){const _0x46a674=_0x3f69c2,_0x29e043=_0x1470b6&&_0x1470b6['rows']?_0x1470b6[_0x46a674(0x19c7)][0x0]:null;if(!_0x29e043)_0x49b096[_0x46a674(0x23bb)]=[];else{if(!_0x29e043['autoAssociation'])return _0x573ba3['userProfileResource'][_0x46a674(0x16b4)]({'sectionId':_0x29e043['id']})[_0x46a674(0x2945)][_0x46a674(0x146b)](function(_0x54d772){const _0x44e860=_0x46a674,_0x34a648=_0x3f65c0()[_0x44e860(0x205)](_0x54d772[_0x44e860(0x19c7)],function(_0xe68671){return _0x3f65c0()['find'](_0x49b096['pauses'],{'id':_0xe68671['resourceId']});});_0x49b096[_0x44e860(0x23bb)][_0x44e860(0x1df5)](function(_0x58e5a9){const _0x36a90c=_0x44e860;!_0x3f65c0()[_0x36a90c(0x1360)](_0x34a648,['id',_0x58e5a9['id']])&&(_0x58e5a9[_0x36a90c(0x8ff)]=![]),_0x34a648[_0x36a90c(0x1f47)](_0x58e5a9);}),_0x49b096['pauses']=_0x34a648;});}})['catch'](function(_0x5af448){const _0x4f5d0e=_0x3f69c2;_0x5e27fd[_0x4f5d0e(0x1980)]({'title':_0x5af448[_0x4f5d0e(0x107b)]?_0x4f5d0e(0x262a)+_0x5af448['status']+_0x4f5d0e(0x1315)+_0x5af448['statusText']:_0x4f5d0e(0x176),'msg':_0x5af448[_0x4f5d0e(0x524)]?JSON['stringify'](_0x5af448[_0x4f5d0e(0x524)]):_0x5af448[_0x4f5d0e(0xd5f)]()});});function _0x50941e(_0x1243ec){const _0x2fb4a4=_0x3f69c2;_0x2369a8['go'](_0x2fb4a4(0x21e3),{'id':_0x1243ec['id'],'whatsappAccount':_0x1243ec,'crudPermissions':_0x49b096[_0x2fb4a4(0x2514)]});}function _0x165524(_0x42e692){const _0x396531=_0x3f69c2;_0x2369a8['go'](_0x396531(0x21e3),{'id':_0x42e692['id'],'tab':0x5});}function _0x19dba9(_0xb1e455,_0x54d774){const _0x422699=_0x3f69c2;_0x2c1173[_0x422699(0x2615)]({'controller':_0x422699(0x501),'controllerAs':'vm','templateUrl':_0x434ef6,'parent':angular[_0x422699(0x1853)](_0x3a9b87[_0x422699(0x2586)]),'targetEvent':_0x54d774,'clickOutsideToClose':!![],'locals':{'whatsappAccount':_0xb1e455,'whatsappAccounts':_0x49b096['whatsappAccounts']?_0x49b096[_0x422699(0x23c)][_0x422699(0x19c7)]:[],'crudPermissions':_0x49b096[_0x422699(0x2514)],'realtime':![]}});}function _0x2de58a(_0x205aee,_0x13df6d){const _0x1dc661=_0x3f69c2,_0x2921e4=_0x2c1173['confirm']()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x3f65c0()[_0x1dc661(0x20d1)]('whatsappAccount')+'?')[_0x1dc661(0x1cbe)](''+(_0x205aee['name']||_0x1dc661(0x815))+''+_0x1dc661(0xe01))[_0x1dc661(0x4bd)](_0x1dc661(0x1b05))[_0x1dc661(0x1f27)](_0x13df6d)['ok']('OK')[_0x1dc661(0x6c3)](_0x1dc661(0x39a));_0x2c1173[_0x1dc661(0x2615)](_0x2921e4)['then'](function(){_0x2efb62(_0x205aee);},function(){const _0x30acd3=_0x1dc661;console[_0x30acd3(0x1a74)](_0x30acd3(0x39a));});}let _0x1722e8=!![],_0x39374c=0x1;_0x147920[_0x3f69c2(0x21e8)]('vm.query.filter',function(_0x2d6acd,_0x4f8587){const _0x27030d=_0x3f69c2;_0x1722e8?_0x58ba29(function(){_0x1722e8=![];}):(!_0x4f8587&&(_0x39374c=_0x49b096[_0x27030d(0x1a56)][_0x27030d(0x844)]),_0x2d6acd!==_0x4f8587&&(_0x49b096['query'][_0x27030d(0x844)]=0x1),!_0x2d6acd&&(_0x49b096['query'][_0x27030d(0x844)]=_0x39374c),_0x49b096['getWhatsappAccounts']());});function _0x5b538c(_0x3afce8){const _0x2ac220=_0x3f69c2;_0x49b096[_0x2ac220(0x23c)]=_0x3afce8||{'count':0x0,'rows':[]};}function _0x40a46d(){const _0x5d5813=_0x3f69c2;_0x49b096[_0x5d5813(0x1a56)][_0x5d5813(0x145d)]=(_0x49b096[_0x5d5813(0x1a56)][_0x5d5813(0x844)]-0x1)*_0x49b096[_0x5d5813(0x1a56)]['limit'],_0x1cbe6d[_0x5d5813(0x23e0)](_0x5d5813(0x174b))?_0x49b096[_0x5d5813(0xb9c)]=_0x573ba3[_0x5d5813(0x815)][_0x5d5813(0x16b4)](_0x49b096[_0x5d5813(0x1a56)],_0x5b538c)['$promise']:(_0x49b096['query']['id']=_0x49b096['userProfile']['id'],_0x49b096[_0x5d5813(0x1a56)]['section']=_0x5d5813(0xc7c),_0x49b096[_0x5d5813(0xb9c)]=_0x573ba3[_0x5d5813(0x26b6)][_0x5d5813(0x158f)](_0x49b096[_0x5d5813(0x1a56)],_0x5b538c)['$promise']);}function _0x1c7923(_0x5e1198,_0x3cf498){const _0xb05e95=_0x3f69c2;_0x2c1173[_0xb05e95(0x2615)]({'controller':_0xb05e95(0x14fc),'controllerAs':'vm','templateUrl':_0x14f6ae,'parent':angular[_0xb05e95(0x1853)](_0x3a9b87[_0xb05e95(0x2586)]),'targetEvent':_0x5e1198,'clickOutsideToClose':!![],'locals':{'whatsappAccount':_0x3cf498,'whatsappAccounts':_0x49b096[_0xb05e95(0x23c)][_0xb05e95(0x19c7)],'license':_0x49b096[_0xb05e95(0x2690)],'setting':_0x49b096[_0xb05e95(0x15b9)],'crudPermissions':_0x49b096[_0xb05e95(0x2514)]}});}function _0x2efb62(_0x41bf2e){const _0x59f263=_0x3f69c2;_0x573ba3[_0x59f263(0x815)][_0x59f263(0x1fac)]({'id':_0x41bf2e['id']})[_0x59f263(0x2945)][_0x59f263(0x146b)](function(){const _0x16816a=_0x59f263;_0x3f65c0()['remove'](_0x49b096[_0x16816a(0x23c)][_0x16816a(0x19c7)],{'id':_0x41bf2e['id']}),_0x49b096['whatsappAccounts'][_0x16816a(0x51c)]-=0x1,!_0x49b096[_0x16816a(0x23c)][_0x16816a(0x19c7)]['length']&&_0x49b096[_0x16816a(0x28f)](),_0x5e27fd[_0x16816a(0x1c75)]({'title':_0x3f65c0()[_0x16816a(0x20d1)](_0x16816a(0x843))+'\x20deleted!','msg':_0x41bf2e[_0x16816a(0x19eb)]?_0x41bf2e['name']+'\x20has\x20been\x20deleted!':''});})['catch'](function(_0x27e7f4){const _0x15857d=_0x59f263;if(_0x27e7f4[_0x15857d(0x524)]&&_0x27e7f4[_0x15857d(0x524)][_0x15857d(0xcef)]&&_0x27e7f4[_0x15857d(0x524)]['errors'][_0x15857d(0x402)]){_0x49b096['errors']=_0x27e7f4[_0x15857d(0x524)]['errors']||[{'message':_0x27e7f4['toString'](),'type':_0x15857d(0x13a0)}];for(let _0x858306=0x0;_0x858306<_0x27e7f4[_0x15857d(0x524)]['errors'][_0x15857d(0x402)];_0x858306++){_0x5e27fd[_0x15857d(0x1980)]({'title':_0x27e7f4[_0x15857d(0x524)][_0x15857d(0xcef)][_0x858306][_0x15857d(0x1142)],'msg':_0x27e7f4[_0x15857d(0x524)][_0x15857d(0xcef)][_0x858306][_0x15857d(0x7fd)]});}}else _0x5e27fd[_0x15857d(0x1980)]({'title':_0x27e7f4[_0x15857d(0x107b)]?_0x15857d(0x262a)+_0x27e7f4[_0x15857d(0x107b)]+'\x20-\x20'+_0x27e7f4[_0x15857d(0x167f)]:'SYSTEM:DELETEwhatsappAccount','msg':_0x27e7f4[_0x15857d(0x524)]?JSON[_0x15857d(0x10bb)](_0x27e7f4['data'][_0x15857d(0x7fd)]):_0x27e7f4[_0x15857d(0x7fd)]||_0x27e7f4['toString']()});});}function _0x32145a(){const _0x3b7d94=_0x3f69c2,_0x21b653=angular[_0x3b7d94(0x235a)](_0x49b096['selectedWhatsappAccounts']);return _0x49b096[_0x3b7d94(0x2925)]=[],_0x21b653;}function _0x10bdaa(_0x537459){const _0x634a11=_0x3f69c2,_0x43930b=_0x2c1173['confirm']()[_0x634a11(0x1189)]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20whatsappAccounts?')[_0x634a11(0x1cbe)](_0x634a11(0x16d3)+_0x49b096[_0x634a11(0x2925)]['length']+_0x634a11(0x2452)+_0x634a11(0xe01))['ariaLabel'](_0x634a11(0x155d))[_0x634a11(0x1f27)](_0x537459)['ok']('OK')['cancel'](_0x634a11(0x39a));_0x2c1173[_0x634a11(0x2615)](_0x43930b)[_0x634a11(0x146b)](function(){const _0x1e7622=_0x634a11;_0x49b096['selectedWhatsappAccounts'][_0x1e7622(0x1df5)](function(_0x34b77a){_0x2efb62(_0x34b77a);}),_0x49b096[_0x1e7622(0x2925)]=[];});}function _0x25143a(){const _0x3a37b3=_0x3f69c2;_0x49b096[_0x3a37b3(0x2925)]=[];}function _0x52676a(){const _0x3cd39a=_0x3f69c2;_0x49b096['selectedWhatsappAccounts']=_0x49b096[_0x3cd39a(0x23c)]['rows'];}}const _0x65939c=_0x28bab3;;_0x367eb4['$inject']=[_0x313a4d(0x910),_0x313a4d(0x1862),_0x313a4d(0xd08),_0x313a4d(0x10e8),'$q',_0x313a4d(0x214b),_0x313a4d(0x1fe4),_0x313a4d(0x740),'whatsappQueue',_0x313a4d(0x247f),_0x313a4d(0xa87),_0x313a4d(0x2690),_0x313a4d(0x15b9),_0x313a4d(0x2514)];function _0x367eb4(_0x100185,_0x30b666,_0x5efdd2,_0xfbab03,_0x417c4b,_0x3d49b2,_0x2aa045,_0x1c7624,_0x67f9af,_0x3abb35,_0x3b7db1,_0x52d2c4,_0x4daed2,_0x52d620){const _0xde54d4=_0x313a4d,_0x207152=this;_0x207152[_0xde54d4(0x2321)]=_0x3b7db1['getCurrentUser'](),_0x207152[_0xde54d4(0xcef)]=[],_0x207152[_0xde54d4(0x15b9)]=_0x4daed2,_0x207152[_0xde54d4(0x2690)]=_0x52d2c4,_0x207152[_0xde54d4(0x2514)]=_0x52d620,_0x207152[_0xde54d4(0x855)]={},_0x207152[_0xde54d4(0x2251)]=_0x207152[_0xde54d4(0x15b9)]&&_0x207152[_0xde54d4(0x15b9)][_0xde54d4(0x976)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x207152[_0xde54d4(0x1189)]=_0xde54d4(0x2810),_0x207152[_0xde54d4(0x1b3b)]=angular[_0xde54d4(0x235a)](_0x67f9af),_0x207152[_0xde54d4(0x740)]=_0x1c7624,_0x207152['newWhatsappQueue']=![];!_0x207152['whatsappQueue']&&(_0x207152['whatsappQueue']={'strategy':'beepall','timeout':0xa},_0x207152[_0xde54d4(0x1189)]=_0xde54d4(0x1fec),_0x207152[_0xde54d4(0x250d)]=!![]);_0x207152[_0xde54d4(0x1d23)]=_0x5a3c09,_0x207152['saveWhatsappQueue']=_0x127fa1,_0x207152[_0xde54d4(0x1de2)]=_0x496f88,_0x207152[_0xde54d4(0xe73)]=_0x5f068c,_0x207152['closeDialog']=_0x2774dd;function _0x5a3c09(){const _0x3121fa=_0xde54d4;_0x207152[_0x3121fa(0xcef)]=[],_0x3abb35[_0x3121fa(0x1b3b)][_0x3121fa(0x1e3)](_0x207152[_0x3121fa(0x1b3b)])[_0x3121fa(0x2945)][_0x3121fa(0x146b)](function(_0x4a16dc){const _0xf1a2e0=_0x3121fa;_0x207152[_0xf1a2e0(0x740)][_0xf1a2e0(0xb3d)](_0x4a16dc[_0xf1a2e0(0x2488)]()),_0x2aa045[_0xf1a2e0(0x1c75)]({'title':_0xf1a2e0(0x235e),'msg':_0x207152['whatsappQueue']['name']?_0x207152[_0xf1a2e0(0x1b3b)][_0xf1a2e0(0x19eb)]+_0xf1a2e0(0x1386):''}),_0x2774dd(_0x4a16dc);})[_0x3121fa(0x129e)](function(_0x203c67){const _0x4e63b1=_0x3121fa;if(_0x203c67[_0x4e63b1(0x524)]&&_0x203c67[_0x4e63b1(0x524)][_0x4e63b1(0xcef)]&&_0x203c67[_0x4e63b1(0x524)][_0x4e63b1(0xcef)][_0x4e63b1(0x402)]){_0x207152[_0x4e63b1(0xcef)]=_0x203c67[_0x4e63b1(0x524)]['errors']||[{'message':_0x203c67[_0x4e63b1(0xd5f)](),'type':'api.whatsappQueue.save'}];for(let _0x135b67=0x0;_0x135b67<_0x203c67[_0x4e63b1(0x524)][_0x4e63b1(0xcef)][_0x4e63b1(0x402)];_0x135b67+=0x1){_0x2aa045[_0x4e63b1(0x1980)]({'title':_0x203c67[_0x4e63b1(0x524)][_0x4e63b1(0xcef)][_0x135b67][_0x4e63b1(0x1142)],'msg':_0x203c67[_0x4e63b1(0x524)][_0x4e63b1(0xcef)][_0x135b67][_0x4e63b1(0x7fd)]});}}else _0x2aa045['error']({'title':_0x203c67[_0x4e63b1(0x107b)]?'API:'+_0x203c67[_0x4e63b1(0x107b)]+_0x4e63b1(0x1315)+_0x203c67['statusText']:_0x4e63b1(0x3ec),'msg':_0x203c67[_0x4e63b1(0x524)]?JSON[_0x4e63b1(0x10bb)](_0x203c67[_0x4e63b1(0x524)]['message']):_0x203c67['toString']()});});}function _0x127fa1(){const _0x1d957c=_0xde54d4;_0x207152[_0x1d957c(0xcef)]=[],_0x3abb35[_0x1d957c(0x1b3b)][_0x1d957c(0x18e1)]({'id':_0x207152[_0x1d957c(0x1b3b)]['id']},_0x207152[_0x1d957c(0x1b3b)])[_0x1d957c(0x2945)][_0x1d957c(0x146b)](function(_0x23f782){const _0x1f4acf=_0x1d957c,_0x503c79=_0x3f65c0()['find'](_0x207152[_0x1f4acf(0x740)],{'id':_0x23f782['id']});_0x503c79&&_0x3f65c0()[_0x1f4acf(0x168d)](_0x503c79,_0x3f65c0()[_0x1f4acf(0x40e)](_0x23f782[_0x1f4acf(0x2488)](),_0x3f65c0()[_0x1f4acf(0x627)](_0x503c79))),_0x2aa045[_0x1f4acf(0x1c75)]({'title':_0x1f4acf(0x279e),'msg':_0x207152[_0x1f4acf(0x1b3b)][_0x1f4acf(0x19eb)]?_0x207152[_0x1f4acf(0x1b3b)][_0x1f4acf(0x19eb)]+'\x20has\x20been\x20saved!':''}),_0x2774dd(_0x23f782);})['catch'](function(_0x251d0a){const _0x1278c0=_0x1d957c;if(_0x251d0a['data']&&_0x251d0a[_0x1278c0(0x524)][_0x1278c0(0xcef)]&&_0x251d0a[_0x1278c0(0x524)]['errors']['length']){_0x207152[_0x1278c0(0xcef)]=_0x251d0a[_0x1278c0(0x524)]['errors']||[{'message':_0x251d0a[_0x1278c0(0xd5f)](),'type':_0x1278c0(0x1ff8)}];for(let _0x1328c2=0x0;_0x1328c2<_0x251d0a[_0x1278c0(0x524)][_0x1278c0(0xcef)]['length'];_0x1328c2++){_0x2aa045['error']({'title':_0x251d0a[_0x1278c0(0x524)]['errors'][_0x1328c2][_0x1278c0(0x1142)],'msg':_0x251d0a[_0x1278c0(0x524)][_0x1278c0(0xcef)][_0x1328c2][_0x1278c0(0x7fd)]});}}else _0x2aa045[_0x1278c0(0x1980)]({'title':_0x251d0a[_0x1278c0(0x107b)]?'API:'+_0x251d0a[_0x1278c0(0x107b)]+'\x20-\x20'+_0x251d0a[_0x1278c0(0x167f)]:'api.whatsappQueue.update','msg':_0x251d0a[_0x1278c0(0x524)]?JSON[_0x1278c0(0x10bb)](_0x251d0a[_0x1278c0(0x524)][_0x1278c0(0x7fd)]):_0x251d0a[_0x1278c0(0xd5f)]()});});}function _0x496f88(_0x34e9b1){const _0x50325d=_0xde54d4;_0x207152[_0x50325d(0xcef)]=[];const _0x595350=_0xfbab03[_0x50325d(0x1e8a)]()[_0x50325d(0x1189)](_0x50325d(0x1d64))[_0x50325d(0x80f)](_0x50325d(0xec9))[_0x50325d(0x4bd)](_0x50325d(0x1803))['ok'](_0x50325d(0x25de))[_0x50325d(0x6c3)]('Cancel')[_0x50325d(0x1f27)](_0x34e9b1);_0xfbab03['show'](_0x595350)[_0x50325d(0x146b)](function(){const _0x8bf52e=_0x50325d;_0x3abb35[_0x8bf52e(0x1b3b)][_0x8bf52e(0x1fac)]({'id':_0x207152['whatsappQueue']['id']})[_0x8bf52e(0x2945)][_0x8bf52e(0x146b)](function(){const _0x3a618c=_0x8bf52e;_0x3f65c0()[_0x3a618c(0x2640)](_0x207152[_0x3a618c(0x740)],{'id':_0x207152[_0x3a618c(0x1b3b)]['id']}),_0x2aa045['success']({'title':_0x3a618c(0x26e4),'msg':(_0x207152['whatsappQueue'][_0x3a618c(0x19eb)]||_0x3a618c(0x1b3b))+_0x3a618c(0x23e3)}),_0x2774dd(_0x207152[_0x3a618c(0x1b3b)]);})[_0x8bf52e(0x129e)](function(_0x527d16){const _0x1e2777=_0x8bf52e;if(_0x527d16['data']&&_0x527d16[_0x1e2777(0x524)][_0x1e2777(0xcef)]&&_0x527d16[_0x1e2777(0x524)][_0x1e2777(0xcef)][_0x1e2777(0x402)]){_0x207152[_0x1e2777(0xcef)]=_0x527d16[_0x1e2777(0x524)][_0x1e2777(0xcef)]||[{'message':_0x527d16[_0x1e2777(0xd5f)](),'type':_0x1e2777(0x300)}];for(let _0x339967=0x0;_0x339967<_0x527d16['data'][_0x1e2777(0xcef)][_0x1e2777(0x402)];_0x339967++){_0x2aa045[_0x1e2777(0x1980)]({'title':_0x527d16[_0x1e2777(0x524)][_0x1e2777(0xcef)][_0x339967][_0x1e2777(0x1142)],'msg':_0x527d16[_0x1e2777(0x524)][_0x1e2777(0xcef)][_0x339967]['message']});}}else _0x2aa045[_0x1e2777(0x1980)]({'title':_0x527d16[_0x1e2777(0x107b)]?'API:'+_0x527d16[_0x1e2777(0x107b)]+'\x20-\x20'+_0x527d16[_0x1e2777(0x167f)]:_0x1e2777(0x300),'msg':_0x527d16[_0x1e2777(0x524)]?JSON[_0x1e2777(0x10bb)](_0x527d16[_0x1e2777(0x524)]['message']):_0x527d16[_0x1e2777(0x7fd)]||_0x527d16['toString']()});});},function(){});}function _0x5f068c(_0x2e23fb){return _0x2e23fb===null?undefined:new Date(_0x2e23fb);}function _0x2774dd(_0x48f6b1){const _0x4865e3=_0xde54d4;_0xfbab03[_0x4865e3(0x2458)](_0x48f6b1);}}const _0x5c383b=_0x367eb4;;_0x5bd675[_0x313a4d(0x11c2)]=[_0x313a4d(0x10e8),'$q',_0x313a4d(0x1fe4),_0x313a4d(0x247f),'whatsappQueue',_0x313a4d(0x740),_0x313a4d(0xfc4),_0x313a4d(0x214b),'Auth',_0x313a4d(0x2514)];function _0x5bd675(_0x413296,_0x1f62b1,_0x6554c2,_0x4d6015,_0x583457,_0xb9a785,_0x4a0e1c,_0x4bec4f,_0x39d50e,_0x3e5fe5){const _0x525742=_0x313a4d,_0xbd8f57=this;_0xbd8f57[_0x525742(0x2321)]=_0x39d50e[_0x525742(0xb12)](),_0xbd8f57[_0x525742(0x1b3b)]=_0x583457,_0xbd8f57[_0x525742(0x2514)]=_0x3e5fe5,_0xbd8f57['realtime']=_0x4a0e1c,_0xbd8f57[_0x525742(0x1fd6)]=[],_0xbd8f57['allowedItems']=[],_0xbd8f57['selectedItems']=[],_0xbd8f57[_0x525742(0x2e8)]=[],_0xbd8f57[_0x525742(0xa65)]=[],_0xbd8f57[_0x525742(0x132)]=![],_0xbd8f57[_0x525742(0x3d4)]=_0x2dc95d,_0xbd8f57[_0x525742(0x14c2)]=_0xb782c1,_0xbd8f57[_0x525742(0x13f3)]=_0xcff90d,_0xbd8f57['dualMultiselectOptions']={'readOnly':!_0xbd8f57['crudPermissions'][_0x525742(0x15f4)],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x525742(0x19eb),'line1':_0x525742(0x286a),'line2':['name','internal'],'line3':'','labelAll':_0x4bec4f[_0x525742(0xde)](_0x525742(0x2050)),'labelSelected':_0x4bec4f['instant'](_0x525742(0xf73)),'transferCallback':function(){const _0x365150=_0x525742,_0x3314cb=_0x3f65c0()['xorBy'](_0xbd8f57[_0x365150(0xa65)],_0xbd8f57[_0x365150(0x1ecf)],'id');_0xbd8f57['pendingChanges']=_0x3f65c0()[_0x365150(0x2635)](_0x3314cb)?![]:!![];}};function _0x2dc95d(){const _0x3d0c1b=_0x525742;return _0x39d50e[_0x3d0c1b(0x23e0)](_0x3d0c1b(0x174b))?_0x3445a6()[_0x3d0c1b(0x129e)](function(_0x20b51e){const _0x1e3c57=_0x3d0c1b;_0x6554c2[_0x1e3c57(0x1980)]({'title':_0x20b51e[_0x1e3c57(0x107b)]?'API:'+_0x20b51e[_0x1e3c57(0x107b)]+'\x20-\x20'+_0x20b51e['statusText']:'SYSTEM:GET_AGENTS','msg':_0x20b51e['status']?JSON[_0x1e3c57(0x10bb)](_0x20b51e[_0x1e3c57(0x524)]):_0x20b51e[_0x1e3c57(0xd5f)]()});}):_0x5ccda7()[_0x3d0c1b(0x146b)](function(_0x2613f4){return _0xbd8f57['section']=_0x2613f4,_0x3445a6();})['catch'](function(_0x1e4ac2){const _0x18e882=_0x3d0c1b;_0x6554c2[_0x18e882(0x1980)]({'title':_0x1e4ac2[_0x18e882(0x107b)]?_0x18e882(0x262a)+_0x1e4ac2[_0x18e882(0x107b)]+_0x18e882(0x1315)+_0x1e4ac2['statusText']:_0x18e882(0x557),'msg':_0x1e4ac2[_0x18e882(0x107b)]?JSON[_0x18e882(0x10bb)](_0x1e4ac2['data']):_0x1e4ac2['toString']()});});}function _0x5ccda7(){return _0x1f62b1(function(_0x43a990,_0x53b4e6){const _0x59ba3a=a0_0x3bb9;_0x4d6015[_0x59ba3a(0x1366)][_0x59ba3a(0x16b4)]({'userProfileId':_0xbd8f57[_0x59ba3a(0x2321)][_0x59ba3a(0x209a)],'name':_0x59ba3a(0xca8)})['$promise']['then'](function(_0x3c0ec6){const _0x1c6973=_0x59ba3a,_0x18a93f=_0x3c0ec6&&_0x3c0ec6[_0x1c6973(0x19c7)]?_0x3c0ec6[_0x1c6973(0x19c7)][0x0]:null;_0x43a990(_0x18a93f);})[_0x59ba3a(0x129e)](function(_0x1ae9d2){_0x53b4e6(_0x1ae9d2);});});}function _0x3445a6(){return _0x1f62b1(function(_0x3f59a8,_0x5d0a64){const _0x84021f=a0_0x3bb9;return _0x1deb0b()['then'](function(_0x5ea7a3){const _0x1b5781=a0_0x3bb9;return _0xbd8f57[_0x1b5781(0x1fd6)]=_0x5ea7a3['rows']?_0x5ea7a3['rows']:[],_0x39d50e[_0x1b5781(0x23e0)](_0x1b5781(0x174b))?_0x5ea7a3:_0xbd8f57['section']?_0xbd8f57['section'][_0x1b5781(0x11d2)]?_0x5ea7a3:_0x4ac46f():null;})[_0x84021f(0x146b)](function(_0x42b277){const _0x1348d8=_0x84021f,_0x4e61bc=_0x42b277&&_0x42b277['rows']?_0x42b277[_0x1348d8(0x19c7)]:[];return _0xbd8f57['allowedItems']=_0x3f65c0()[_0x1348d8(0x205)](_0x4e61bc,function(_0x2b48f3){const _0x3b237e=_0x1348d8;return _0x3f65c0()[_0x3b237e(0xc84)](_0xbd8f57[_0x3b237e(0x1fd6)],{'id':_0x39d50e[_0x3b237e(0x23e0)](_0x3b237e(0x174b))||_0xbd8f57['section']['autoAssociation']?_0x2b48f3['id']:_0x2b48f3[_0x3b237e(0x18b8)]});}),_0xbd8f57[_0x1348d8(0x2e8)]=angular['copy'](_0xbd8f57[_0x1348d8(0xc4e)]),_0xbd8f57[_0x1348d8(0x1fd6)]['forEach'](function(_0x2a5a00){const _0x372e28=_0x1348d8,_0x13ebc0=_0x3f65c0()[_0x372e28(0xc84)](_0xbd8f57['allowedItems'],{'id':_0x2a5a00['id']});_0x39d50e[_0x372e28(0x23e0)](_0x372e28(0x174b))?_0x2a5a00['isValid']=!![]:_0x2a5a00['isValid']=typeof _0x13ebc0!==_0x372e28(0x2274)?!![]:![];}),_0x1a1366();})[_0x84021f(0x146b)](function(_0x53106b){const _0x99b76c=_0x84021f,_0x55570f=_0x53106b&&_0x53106b[_0x99b76c(0x19c7)]?_0x53106b[_0x99b76c(0x19c7)]:[];_0xbd8f57['selectedItems']=_0x3f65c0()['map'](_0x55570f,function(_0x578e1e){const _0x1cb6f4=_0x99b76c,_0x209db1=_0x3f65c0()[_0x1cb6f4(0xc84)](_0xbd8f57[_0x1cb6f4(0x1fd6)],{'id':_0x578e1e['id']});return _0x209db1[_0x1cb6f4(0x188d)]=_0x578e1e[_0x1cb6f4(0xc1a)]?_0x1cb6f4(0x2505)+_0x578e1e[_0x1cb6f4(0xc1a)][_0x1cb6f4(0x188d)]:'',_0x209db1[_0x1cb6f4(0x113f)]=typeof _0x578e1e[_0x1cb6f4(0x113f)]!==_0x1cb6f4(0x2274)?'<'+_0x578e1e[_0x1cb6f4(0x113f)]+'>':'',_0x209db1;}),_0xbd8f57[_0x99b76c(0xa65)]=angular[_0x99b76c(0x235a)](_0xbd8f57[_0x99b76c(0x1ecf)]),_0xbd8f57[_0x99b76c(0x1f8a)][_0x99b76c(0x1ecf)]=_0xbd8f57['selectedItems'],_0xbd8f57['dualMultiselectOptions'][_0x99b76c(0x1fd6)]=_0x3f65c0()[_0x99b76c(0x2796)](_0xbd8f57['allowedItems'],_0xbd8f57['dualMultiselectOptions'][_0x99b76c(0x1ecf)],'id'),_0x3f59a8();})[_0x84021f(0x129e)](function(_0xa78ba3){_0x5d0a64(_0xa78ba3);});});}function _0x4ac46f(){return _0x1f62b1(function(_0x487ba8,_0x2d9f07){const _0x65cb3d=a0_0x3bb9;return _0x4d6015['userProfileResource'][_0x65cb3d(0x16b4)]({'sectionId':_0xbd8f57[_0x65cb3d(0x2146)]['id'],'nolimit':!![]})[_0x65cb3d(0x2945)]['then'](function(_0x1f9a29){_0x487ba8(_0x1f9a29);})[_0x65cb3d(0x129e)](function(_0xbef851){_0x2d9f07(_0xbef851);});});}function _0x1a1366(){return _0x1f62b1(function(_0x3044ad,_0x3174a9){const _0x37ee4d=a0_0x3bb9;return _0x4d6015[_0x37ee4d(0x1b3b)]['getAgents']({'id':_0xbd8f57[_0x37ee4d(0x1b3b)]['id'],'fields':_0x37ee4d(0x1569),'nolimit':!![],'role':_0x37ee4d(0x1755)})[_0x37ee4d(0x2945)][_0x37ee4d(0x146b)](function(_0x1c57bf){_0x3044ad(_0x1c57bf);})['catch'](function(_0x47acd0){_0x3174a9(_0x47acd0);});});}function _0x1deb0b(){return _0x1f62b1(function(_0x4163a5,_0x5ad171){const _0x1a5ee4=a0_0x3bb9;return _0x4d6015[_0x1a5ee4(0xe7b)][_0x1a5ee4(0x16b4)]({'fields':_0x1a5ee4(0x1569),'nolimit':!![],'role':_0x1a5ee4(0x1755)})[_0x1a5ee4(0x2945)][_0x1a5ee4(0x146b)](function(_0x4a8bf4){_0x4163a5(_0x4a8bf4);})[_0x1a5ee4(0x129e)](function(_0x40e8a7){_0x5ad171(_0x40e8a7);});});}function _0x14fcbb(_0xd3c15b){return _0x1f62b1(function(_0x5661ac,_0x25a081){const _0x1d1b0b=a0_0x3bb9;_0x3f65c0()['isEmpty'](_0xd3c15b)?_0x5661ac():_0x4d6015[_0x1d1b0b(0x1b3b)][_0x1d1b0b(0x135e)]({'id':_0xbd8f57[_0x1d1b0b(0x1b3b)]['id'],'ids':_0x3f65c0()['map'](_0xd3c15b,'id')})[_0x1d1b0b(0x2945)][_0x1d1b0b(0x146b)](function(){_0x5661ac();})[_0x1d1b0b(0x129e)](function(_0x46c91b){_0x25a081(_0x46c91b);});});}function _0x398955(_0x37bc6e){return _0x1f62b1(function(_0x666de6,_0x583e05){const _0x634c60=a0_0x3bb9;_0x3f65c0()['isEmpty'](_0x37bc6e)?_0x666de6():_0x4d6015[_0x634c60(0x1b3b)][_0x634c60(0x1f53)]({'id':_0xbd8f57[_0x634c60(0x1b3b)]['id'],'ids':_0x3f65c0()[_0x634c60(0x205)](_0x37bc6e,'id')})[_0x634c60(0x2945)][_0x634c60(0x146b)](function(){_0x666de6();})[_0x634c60(0x129e)](function(_0xf89086){_0x583e05(_0xf89086);});});}function _0xb782c1(){const _0x147fc6=_0x525742,_0x3c9139=_0x3f65c0()['differenceBy'](_0xbd8f57[_0x147fc6(0xa65)],_0xbd8f57[_0x147fc6(0x1ecf)],'id'),_0x24405a=_0x3f65c0()[_0x147fc6(0x2796)](_0xbd8f57['selectedItems'],_0xbd8f57[_0x147fc6(0xa65)],'id');return _0x398955(_0x3c9139)[_0x147fc6(0x146b)](function(){return _0x14fcbb(_0x24405a);})[_0x147fc6(0x146b)](function(){const _0x4651f9=_0x147fc6;_0xbd8f57[_0x4651f9(0x132)]=![],_0xbd8f57[_0x4651f9(0x2e8)]=angular['copy'](_0xbd8f57['allowedItems']),_0xbd8f57[_0x4651f9(0xa65)]=angular[_0x4651f9(0x235a)](_0xbd8f57[_0x4651f9(0x1ecf)]),_0x6554c2[_0x4651f9(0x1c75)]({'title':_0x4651f9(0x4c0),'msg':_0x4651f9(0x26be)});})[_0x147fc6(0x129e)](function(_0x4d6683){const _0x3566a6=_0x147fc6;_0x6554c2[_0x3566a6(0x1980)]({'title':_0x4d6683[_0x3566a6(0x107b)]?'API:'+_0x4d6683[_0x3566a6(0x107b)]+'\x20-\x20'+_0x4d6683[_0x3566a6(0x167f)]:'SYSTEM:LISTS_ASSOCIATION','msg':_0x4d6683[_0x3566a6(0x107b)]?JSON[_0x3566a6(0x10bb)](_0x4d6683[_0x3566a6(0x524)]):_0x4d6683['toString']()});});}function _0xcff90d(){const _0x11b6b4=_0x525742;_0x413296[_0x11b6b4(0x2458)]();}}const _0x5d32e5=_0x5bd675;;_0x50d7b3[_0x313a4d(0x11c2)]=[_0x313a4d(0x10e8),'$q','toasty','api',_0x313a4d(0x1b3b),_0x313a4d(0x214b),_0x313a4d(0xa87),_0x313a4d(0x2514)];function _0x50d7b3(_0x3386e4,_0x5b6a3e,_0x921790,_0x48f165,_0x12c4ac,_0x22a9e5,_0x35ac8a,_0x218b2c){const _0x196c57=_0x313a4d,_0xd32f4e=this;_0xd32f4e[_0x196c57(0x2321)]=_0x35ac8a[_0x196c57(0xb12)](),_0xd32f4e[_0x196c57(0x1b3b)]=_0x12c4ac,_0xd32f4e['crudPermissions']=_0x218b2c,_0xd32f4e['items']=[],_0xd32f4e['allowedItems']=[],_0xd32f4e['selectedItems']=[],_0xd32f4e[_0x196c57(0x2e8)]=[],_0xd32f4e['startingSelectedItems']=[],_0xd32f4e['pendingChanges']=![],_0xd32f4e[_0x196c57(0x1f8a)]={'readOnly':!_0xd32f4e[_0x196c57(0x2514)][_0x196c57(0x15f4)],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x196c57(0x19eb),'line1':_0x196c57(0x19eb),'line2':'','line3':'','labelAll':_0x22a9e5['instant']('APP.ALL_TEAMS'),'labelSelected':_0x22a9e5[_0x196c57(0xde)](_0x196c57(0x1ae7)),'transferCallback':function(){const _0xec73f5=_0x196c57,_0xc5c514=_0x3f65c0()[_0xec73f5(0x1883)](_0xd32f4e['startingSelectedItems'],_0xd32f4e[_0xec73f5(0x1ecf)],'id');_0xd32f4e[_0xec73f5(0x132)]=_0x3f65c0()[_0xec73f5(0x2635)](_0xc5c514)?![]:!![];}},_0xd32f4e[_0x196c57(0x3d4)]=_0x4a4a8f,_0xd32f4e['saveTeams']=_0x2479d4,_0xd32f4e[_0x196c57(0x13f3)]=_0x7e02;function _0x4a4a8f(){const _0x21ebcd=_0x196c57;return _0x35ac8a['hasRole'](_0x21ebcd(0x174b))?_0x135c36()['catch'](function(_0xace9c7){const _0x5d3616=_0x21ebcd;_0x921790[_0x5d3616(0x1980)]({'title':_0xace9c7['status']?_0x5d3616(0x262a)+_0xace9c7[_0x5d3616(0x107b)]+_0x5d3616(0x1315)+_0xace9c7['statusText']:'SYSTEM:GET_TEAMS','msg':_0xace9c7[_0x5d3616(0x107b)]?JSON[_0x5d3616(0x10bb)](_0xace9c7[_0x5d3616(0x524)]):_0xace9c7['toString']()});}):_0x3a282c()[_0x21ebcd(0x146b)](function(_0x42b3b2){return _0xd32f4e['section']=_0x42b3b2,_0x135c36();})['catch'](function(_0x899ca7){const _0x1e4b71=_0x21ebcd;_0x921790[_0x1e4b71(0x1980)]({'title':_0x899ca7['status']?_0x1e4b71(0x262a)+_0x899ca7[_0x1e4b71(0x107b)]+_0x1e4b71(0x1315)+_0x899ca7[_0x1e4b71(0x167f)]:'SYSTEM:GET_TEAMS','msg':_0x899ca7['status']?JSON['stringify'](_0x899ca7[_0x1e4b71(0x524)]):_0x899ca7[_0x1e4b71(0xd5f)]()});});}function _0x3a282c(){return _0x5b6a3e(function(_0x4a3230,_0x41b714){const _0x75e9e2=a0_0x3bb9;_0x48f165[_0x75e9e2(0x1366)][_0x75e9e2(0x16b4)]({'userProfileId':_0xd32f4e[_0x75e9e2(0x2321)]['userProfileId'],'name':_0x75e9e2(0x21ae)})[_0x75e9e2(0x2945)][_0x75e9e2(0x146b)](function(_0x50082e){const _0x4d47bd=_0x75e9e2,_0x18d666=_0x50082e&&_0x50082e[_0x4d47bd(0x19c7)]?_0x50082e[_0x4d47bd(0x19c7)][0x0]:null;_0x4a3230(_0x18d666);})[_0x75e9e2(0x129e)](function(_0x4bbab7){_0x41b714(_0x4bbab7);});});}function _0x135c36(){return _0x5b6a3e(function(_0x3c1987,_0x179584){const _0x39a076=a0_0x3bb9;return _0x5d6f50()['then'](function(_0x34aee6){const _0x13ba3b=a0_0x3bb9;return _0xd32f4e[_0x13ba3b(0x1fd6)]=_0x34aee6[_0x13ba3b(0x19c7)]?_0x34aee6[_0x13ba3b(0x19c7)]:[],_0x35ac8a[_0x13ba3b(0x23e0)](_0x13ba3b(0x174b))?_0x34aee6:_0xd32f4e[_0x13ba3b(0x2146)]?_0xd32f4e[_0x13ba3b(0x2146)][_0x13ba3b(0x11d2)]?_0x34aee6:_0x5b4fad():null;})[_0x39a076(0x146b)](function(_0x1407df){const _0x188633=_0x39a076,_0x1842f3=_0x1407df&&_0x1407df['rows']?_0x1407df[_0x188633(0x19c7)]:[];return _0xd32f4e[_0x188633(0xc4e)]=_0x3f65c0()[_0x188633(0x205)](_0x1842f3,function(_0x4e34af){const _0x5894f0=_0x188633;return _0x3f65c0()[_0x5894f0(0xc84)](_0xd32f4e[_0x5894f0(0x1fd6)],{'id':_0x35ac8a[_0x5894f0(0x23e0)](_0x5894f0(0x174b))||_0xd32f4e[_0x5894f0(0x2146)]['autoAssociation']?_0x4e34af['id']:_0x4e34af[_0x5894f0(0x18b8)]});}),_0xd32f4e[_0x188633(0x1fd6)][_0x188633(0x1df5)](function(_0x27e252){const _0x1fc0b7=_0x188633,_0x52085c=_0x3f65c0()['find'](_0xd32f4e[_0x1fc0b7(0xc4e)],{'id':_0x27e252['id']});_0x35ac8a[_0x1fc0b7(0x23e0)](_0x1fc0b7(0x174b))?_0x27e252[_0x1fc0b7(0x146f)]=!![]:_0x27e252[_0x1fc0b7(0x146f)]=typeof _0x52085c!==_0x1fc0b7(0x2274)?!![]:![];}),_0x1ccb38();})[_0x39a076(0x146b)](function(_0x5f3669){const _0x4638f7=_0x39a076,_0x10d0ab=_0x5f3669&&_0x5f3669[_0x4638f7(0x19c7)]?_0x5f3669[_0x4638f7(0x19c7)]:[];_0xd32f4e[_0x4638f7(0x1ecf)]=_0x3f65c0()[_0x4638f7(0x205)](_0x10d0ab,function(_0x110c22){const _0x334374=_0x4638f7;return _0x3f65c0()[_0x334374(0xc84)](_0xd32f4e[_0x334374(0x1fd6)],{'id':_0x110c22['id']});}),_0xd32f4e[_0x4638f7(0xa65)]=angular[_0x4638f7(0x235a)](_0xd32f4e['selectedItems']),_0xd32f4e['dualMultiselectOptions'][_0x4638f7(0x1ecf)]=_0xd32f4e['selectedItems'],_0xd32f4e[_0x4638f7(0x1f8a)][_0x4638f7(0x1fd6)]=_0x3f65c0()[_0x4638f7(0x2796)](_0xd32f4e[_0x4638f7(0xc4e)],_0xd32f4e[_0x4638f7(0x1f8a)][_0x4638f7(0x1ecf)],'id'),_0x3c1987();})[_0x39a076(0x129e)](function(_0x586f52){_0x179584(_0x586f52);});});}function _0x5b4fad(){return _0x5b6a3e(function(_0x40cee5,_0x1b6a0f){const _0x2bda9b=a0_0x3bb9;return _0x48f165[_0x2bda9b(0xdcc)][_0x2bda9b(0x16b4)]({'sectionId':_0xd32f4e[_0x2bda9b(0x2146)]['id'],'nolimit':!![]})[_0x2bda9b(0x2945)][_0x2bda9b(0x146b)](function(_0x2fffa0){_0x40cee5(_0x2fffa0);})['catch'](function(_0x3e0f9a){_0x1b6a0f(_0x3e0f9a);});});}function _0x1ccb38(){return _0x5b6a3e(function(_0x4abc8b,_0x5dec3d){const _0x192b93=a0_0x3bb9;return _0x48f165[_0x192b93(0x1b3b)]['getTeams']({'id':_0xd32f4e[_0x192b93(0x1b3b)]['id'],'fields':_0x192b93(0x7a7),'nolimit':!![]})[_0x192b93(0x2945)][_0x192b93(0x146b)](function(_0x3c6b02){_0x4abc8b(_0x3c6b02);})['catch'](function(_0x205342){_0x5dec3d(_0x205342);});});}function _0x5d6f50(){return _0x5b6a3e(function(_0x33afc2,_0x3fcf62){const _0xf4d45b=a0_0x3bb9;return _0x48f165['team'][_0xf4d45b(0x16b4)]({'fields':_0xf4d45b(0x7a7),'nolimit':!![]})[_0xf4d45b(0x2945)][_0xf4d45b(0x146b)](function(_0x4c8071){_0x33afc2(_0x4c8071);})[_0xf4d45b(0x129e)](function(_0x17cf4e){_0x3fcf62(_0x17cf4e);});});}function _0x562402(_0x4ad054){return _0x5b6a3e(function(_0x2011b3,_0x209d3d){const _0x18a6e3=a0_0x3bb9;_0x3f65c0()[_0x18a6e3(0x2635)](_0x4ad054)?_0x2011b3():_0x48f165['whatsappQueue'][_0x18a6e3(0x7a0)]({'id':_0xd32f4e[_0x18a6e3(0x1b3b)]['id'],'ids':_0x3f65c0()[_0x18a6e3(0x205)](_0x4ad054,'id')})['$promise'][_0x18a6e3(0x146b)](function(){_0x2011b3();})[_0x18a6e3(0x129e)](function(_0xb02e67){_0x209d3d(_0xb02e67);});});}function _0x49c5ff(_0x5b5c57){return _0x5b6a3e(function(_0x2c928d,_0x387690){const _0x3efaa8=a0_0x3bb9;_0x3f65c0()['isEmpty'](_0x5b5c57)?_0x2c928d():_0x48f165[_0x3efaa8(0x1b3b)][_0x3efaa8(0xfa4)]({'id':_0xd32f4e[_0x3efaa8(0x1b3b)]['id'],'ids':_0x3f65c0()[_0x3efaa8(0x205)](_0x5b5c57,'id')})[_0x3efaa8(0x2945)][_0x3efaa8(0x146b)](function(){_0x2c928d();})[_0x3efaa8(0x129e)](function(_0x1a95e8){_0x387690(_0x1a95e8);});});}function _0x2479d4(){const _0xff0881=_0x196c57,_0x581dd7=_0x3f65c0()['differenceBy'](_0xd32f4e['startingSelectedItems'],_0xd32f4e['selectedItems'],'id'),_0x25532d=_0x3f65c0()[_0xff0881(0x2796)](_0xd32f4e['selectedItems'],_0xd32f4e['startingSelectedItems'],'id');return _0x49c5ff(_0x581dd7)[_0xff0881(0x146b)](function(){return _0x562402(_0x25532d);})[_0xff0881(0x146b)](function(){const _0x574009=_0xff0881;_0xd32f4e[_0x574009(0x132)]=![],_0xd32f4e[_0x574009(0x2e8)]=angular[_0x574009(0x235a)](_0xd32f4e[_0x574009(0xc4e)]),_0xd32f4e[_0x574009(0xa65)]=angular[_0x574009(0x235a)](_0xd32f4e[_0x574009(0x1ecf)]),_0x921790[_0x574009(0x1c75)]({'title':'SUCCESS','msg':'Teams\x20association\x20has\x20been\x20updated!'});})[_0xff0881(0x129e)](function(_0xe79bd3){const _0x27f521=_0xff0881;_0x921790[_0x27f521(0x1980)]({'title':_0xe79bd3[_0x27f521(0x107b)]?_0x27f521(0x262a)+_0xe79bd3['status']+'\x20-\x20'+_0xe79bd3[_0x27f521(0x167f)]:'SYSTEM:LISTS_ASSOCIATION','msg':_0xe79bd3[_0x27f521(0x107b)]?JSON['stringify'](_0xe79bd3[_0x27f521(0x524)]):_0xe79bd3[_0x27f521(0xd5f)]()});});}function _0x7e02(){const _0xaab97=_0x196c57;_0x3386e4[_0xaab97(0x2458)]();}}const _0x3d99d8=_0x50d7b3;;const _0x389a93=_0x4acfac['p']+_0x313a4d(0x18d7);;_0x422fe5['$inject']=['$state','$location','$mdDialog',_0x313a4d(0x4d8),_0x313a4d(0x214b),_0x313a4d(0x2690),'setting',_0x313a4d(0x247f),_0x313a4d(0x1fe4),_0x313a4d(0xa87),_0x313a4d(0x1b3b),_0x313a4d(0x1366)];function _0x422fe5(_0x1c0d96,_0x4e3d0a,_0x276826,_0x2b244b,_0x3321e5,_0x3a1296,_0x8c5be2,_0x59f164,_0x30d02d,_0x55b988,_0xde0ed2,_0x1ff0ce){const _0xd0430a=_0x313a4d,_0x57bf43=this;_0x57bf43[_0xd0430a(0x2321)]=_0x55b988[_0xd0430a(0xb12)](),_0x57bf43[_0xd0430a(0x2690)]=_0x3a1296,_0x57bf43[_0xd0430a(0x15b9)]=_0x8c5be2,_0x57bf43[_0xd0430a(0x2251)]=_0x57bf43[_0xd0430a(0x15b9)][_0xd0430a(0x976)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x57bf43[_0xd0430a(0x1002)]=_0x4e3d0a[_0xd0430a(0x2414)]()+_0xd0430a(0xb0e)+_0x4e3d0a[_0xd0430a(0x148e)](),_0x57bf43[_0xd0430a(0x1b3b)]=_0xde0ed2||_0x1c0d96[_0xd0430a(0x16a)][_0xd0430a(0x1b3b)]||{},_0x57bf43['userProfileSection']=_0x1ff0ce&&_0x1ff0ce[_0xd0430a(0x51c)]==0x1?_0x1ff0ce['rows'][0x0]:null,_0x57bf43['crudPermissions']=_0x55b988[_0xd0430a(0xe60)](_0x57bf43['userProfileSection']?_0x57bf43[_0xd0430a(0x1366)][_0xd0430a(0x2514)]:null),_0x57bf43[_0xd0430a(0x855)]={},_0x57bf43['selectedTab']=_0x1c0d96[_0xd0430a(0x16a)][_0xd0430a(0x13a3)]||0x0,_0x57bf43[_0xd0430a(0x244)]=_0x56b8e9,_0x57bf43[_0xd0430a(0x1027)]=_0x1fddbd,_0x57bf43[_0xd0430a(0x861)]=_0x30d02d[_0xd0430a(0x271e)],_0x57bf43['gotoWhatsappQueues']=_0x2fb035,_0x57bf43[_0xd0430a(0x753)]=_0xcf8810;function _0x56b8e9(_0x3408ad,_0x540ad0){const _0x1e31c5=_0xd0430a;_0x276826[_0x1e31c5(0x2615)]({'controller':_0x1e31c5(0xb61),'controllerAs':'vm','templateUrl':_0x389a93,'parent':angular[_0x1e31c5(0x1853)](_0x2b244b['body']),'targetEvent':_0x540ad0,'clickOutsideToClose':!![],'locals':{'whatsappQueue':_0x3408ad,'whatsappQueues':_0x57bf43[_0x1e31c5(0x740)]?_0x57bf43[_0x1e31c5(0x740)]['rows']:[],'crudPermissions':_0x57bf43['crudPermissions']}});}function _0x1fddbd(_0x184a3b,_0x18906d){const _0x10fa8e=_0xd0430a;_0x276826[_0x10fa8e(0x2615)]({'controller':_0x10fa8e(0x2d5),'controllerAs':'vm','templateUrl':_0x389127,'parent':angular[_0x10fa8e(0x1853)](_0x2b244b[_0x10fa8e(0x2586)]),'targetEvent':_0x18906d,'clickOutsideToClose':!![],'locals':{'whatsappQueue':_0x184a3b,'whatsappQueues':_0x57bf43[_0x10fa8e(0x740)]?_0x57bf43[_0x10fa8e(0x740)][_0x10fa8e(0x19c7)]:[],'crudPermissions':_0x57bf43[_0x10fa8e(0x2514)],'realtime':![]}});}function _0x2fb035(){const _0x191d65=_0xd0430a;_0x1c0d96['go']('app.whatsapp.whatsappQueues',{},{'reload':_0x191d65(0x262e)});}function _0xcf8810(){const _0x1c5f12=_0xd0430a;_0x59f164['whatsappQueue']['update']({'id':_0x57bf43['whatsappQueue']['id']},_0x57bf43[_0x1c5f12(0x1b3b)])[_0x1c5f12(0x2945)][_0x1c5f12(0x146b)](function(){const _0x3410d0=_0x1c5f12;_0x30d02d['success']({'title':_0x3410d0(0x2165),'msg':_0x57bf43[_0x3410d0(0x1b3b)][_0x3410d0(0x19eb)]?_0x57bf43[_0x3410d0(0x1b3b)][_0x3410d0(0x19eb)]+_0x3410d0(0x6b0):''});})[_0x1c5f12(0x129e)](function(_0x9f99ce){const _0x3fa297=_0x1c5f12;_0x30d02d[_0x3fa297(0x1980)]({'title':_0x9f99ce[_0x3fa297(0x107b)]?_0x3fa297(0x262a)+_0x9f99ce[_0x3fa297(0x107b)]+_0x3fa297(0x1315)+_0x9f99ce[_0x3fa297(0x167f)]:_0x3fa297(0x260d),'msg':_0x9f99ce['data']?JSON[_0x3fa297(0x10bb)](_0x9f99ce['data']):_0x9f99ce[_0x3fa297(0xd5f)]()});});}}const _0x5ade26=_0x422fe5;;_0x354ea5[_0x313a4d(0x11c2)]=['$scope',_0x313a4d(0x1aa9),_0x313a4d(0x1862),_0x313a4d(0x15fe),_0x313a4d(0x10e8),_0x313a4d(0x4d8),_0x313a4d(0x1abe),_0x313a4d(0x214b),_0x313a4d(0x740),_0x313a4d(0x26b6),_0x313a4d(0x1366),_0x313a4d(0x247f),_0x313a4d(0x216c),_0x313a4d(0x1fe4),'Auth',_0x313a4d(0x2690),'setting'];function _0x354ea5(_0x2cf02b,_0x18078a,_0x12c126,_0x1b4324,_0x54c019,_0x50f7e6,_0x52376d,_0x379b94,_0x65cacd,_0x1658f7,_0x4f5718,_0x95b4c0,_0x6f13aa,_0x14df31,_0x5b867f,_0x1e3817,_0x4ba9ae){const _0x227da2=_0x313a4d,_0x45a839=this;_0x45a839['license']=_0x1e3817,_0x45a839['setting']=_0x4ba9ae,_0x45a839[_0x227da2(0x2321)]=_0x5b867f['getCurrentUser'](),_0x45a839['whatsappQueues']=_0x65cacd||{'count':0x0,'rows':[]},_0x45a839[_0x227da2(0x26b6)]=_0x1658f7,_0x45a839[_0x227da2(0x1366)]=_0x4f5718&&_0x4f5718[_0x227da2(0x51c)]==0x1?_0x4f5718[_0x227da2(0x19c7)][0x0]:null,_0x45a839[_0x227da2(0x2514)]=_0x5b867f[_0x227da2(0xe60)](_0x45a839[_0x227da2(0x1366)]?_0x45a839[_0x227da2(0x1366)][_0x227da2(0x2514)]:null),_0x45a839[_0x227da2(0x768)]=_0x227da2(0x740),_0x45a839[_0x227da2(0x216a)]='',_0x45a839[_0x227da2(0x214f)]=null,_0x45a839[_0x227da2(0x718)]=[],_0x45a839[_0x227da2(0x1a56)]={'fields':_0x227da2(0xa22),'sort':_0x227da2(0x12f2),'channel':_0x227da2(0xff9),'limit':0xa,'page':0x1},_0x45a839[_0x227da2(0x280a)]=_0x3f65c0()[_0x227da2(0x194)]([{'option':_0x227da2(0x6a7),'value':_0x227da2(0xb5a)},{'option':_0x227da2(0xa12),'value':'\x27rrmemory\x27'}],function(_0x266a2f){const _0x505095=_0x227da2;return _0x3f65c0()[_0x505095(0x5f4)](_0x266a2f[_0x505095(0x175d)],new RegExp('\x27','g'),'');}),_0x45a839[_0x227da2(0x23f9)]=_0x420759,_0x45a839[_0x227da2(0x244)]=_0x38a6d4,_0x45a839[_0x227da2(0x1027)]=_0x58cd43,_0x45a839[_0x227da2(0xf0a)]=_0x581410,_0x45a839[_0x227da2(0x138d)]=_0x50646a,_0x45a839['success']=_0x2b89a9,_0x45a839[_0x227da2(0x1db9)]=_0x34217d,_0x45a839['createOrEditWhatsappQueue']=_0x16cf32,_0x45a839[_0x227da2(0x1de2)]=_0x364d68,_0x45a839[_0x227da2(0x2839)]=_0x25d06d,_0x45a839[_0x227da2(0x108)]=_0x3d40c5,_0x45a839[_0x227da2(0x1ec5)]=_0x26dbfc,_0x45a839[_0x227da2(0x244a)]=_0x462ca9;function _0x420759(_0x9dc506){_0x12c126['go']('app.whatsapp.whatsappQueues.edit',{'id':_0x9dc506['id'],'whatsappQueue':_0x9dc506,'crudPermissions':_0x45a839['crudPermissions']});}function _0x38a6d4(_0x40f430,_0x5f4995){const _0x52ad98=_0x227da2;_0x54c019[_0x52ad98(0x2615)]({'controller':_0x52ad98(0xb61),'controllerAs':'vm','templateUrl':_0x389a93,'parent':angular[_0x52ad98(0x1853)](_0x50f7e6['body']),'targetEvent':_0x5f4995,'clickOutsideToClose':!![],'locals':{'whatsappQueue':_0x40f430,'whatsappQueues':_0x45a839[_0x52ad98(0x740)]?_0x45a839[_0x52ad98(0x740)][_0x52ad98(0x19c7)]:[],'crudPermissions':_0x45a839['crudPermissions']}});}function _0x58cd43(_0x29fa28,_0x5580ad){const _0x2fdff8=_0x227da2;_0x54c019[_0x2fdff8(0x2615)]({'controller':_0x2fdff8(0x2d5),'controllerAs':'vm','templateUrl':_0x389127,'parent':angular[_0x2fdff8(0x1853)](_0x50f7e6[_0x2fdff8(0x2586)]),'targetEvent':_0x5580ad,'clickOutsideToClose':!![],'locals':{'whatsappQueue':_0x29fa28,'whatsappQueues':_0x45a839['whatsappQueues']?_0x45a839[_0x2fdff8(0x740)][_0x2fdff8(0x19c7)]:[],'crudPermissions':_0x45a839[_0x2fdff8(0x2514)],'realtime':![]}});}function _0x581410(_0x3c2479,_0x30f752){const _0x2dfb57=_0x227da2,_0x10b54d=_0x54c019['confirm']()['title'](_0x2dfb57(0xdb2)+_0x3f65c0()[_0x2dfb57(0x20d1)]('whatsappQueue')+'?')[_0x2dfb57(0x1cbe)](''+(_0x3c2479['name']||_0x2dfb57(0x1b3b))+_0x2dfb57(0x252f)+_0x2dfb57(0xe01))[_0x2dfb57(0x4bd)](_0x2dfb57(0xcec))[_0x2dfb57(0x1f27)](_0x30f752)['ok']('OK')[_0x2dfb57(0x6c3)]('CANCEL');_0x54c019['show'](_0x10b54d)['then'](function(){_0x364d68(_0x3c2479);},function(){const _0xec2997=_0x2dfb57;console['log'](_0xec2997(0x39a));});}function _0x50646a(){const _0x61503a=_0x227da2;if(_0x5b867f['hasRole'](_0x61503a(0x174b)))_0x12c126['go']('app.whatsapp.realtime.queues',{});else return _0x95b4c0[_0x61503a(0x1366)]['get']({'userProfileId':_0x5b867f[_0x61503a(0xb12)]()['userProfileId'],'sectionId':0x83e})[_0x61503a(0x2945)][_0x61503a(0x146b)](function(_0x360d0a){const _0x1ce5ed=_0x61503a,_0x3ac783=_0x360d0a&&_0x360d0a[_0x1ce5ed(0x19c7)]?_0x360d0a[_0x1ce5ed(0x19c7)][0x0]:null;_0x3ac783&&_0x3ac783[_0x1ce5ed(0x193e)]?_0x12c126['go']('app.whatsapp.realtime.queues',{}):_0x14df31['info']({'title':_0x379b94[_0x1ce5ed(0xde)](_0x1ce5ed(0xb27)),'msg':_0x379b94[_0x1ce5ed(0xde)](_0x1ce5ed(0x174a))});})['catch'](function(_0x3da53e){const _0x1338a4=_0x61503a;_0x14df31['error']({'title':_0x3da53e[_0x1338a4(0x107b)]?_0x1338a4(0x262a)+_0x3da53e[_0x1338a4(0x107b)]+_0x1338a4(0x1315)+_0x3da53e[_0x1338a4(0x167f)]:_0x1338a4(0x698),'msg':_0x3da53e[_0x1338a4(0x107b)]?JSON[_0x1338a4(0x10bb)](_0x3da53e[_0x1338a4(0x524)]):_0x3da53e[_0x1338a4(0xd5f)]()});});}let _0x5c315d=!![],_0x2f2904=0x1;_0x2cf02b[_0x227da2(0x21e8)](_0x227da2(0x2669),function(_0x42ba50,_0x3194e5){const _0x192e6b=_0x227da2;_0x5c315d?_0x52376d(function(){_0x5c315d=![];}):(!_0x3194e5&&(_0x2f2904=_0x45a839['query'][_0x192e6b(0x844)]),_0x42ba50!==_0x3194e5&&(_0x45a839[_0x192e6b(0x1a56)][_0x192e6b(0x844)]=0x1),!_0x42ba50&&(_0x45a839[_0x192e6b(0x1a56)][_0x192e6b(0x844)]=_0x2f2904),_0x45a839['getWhatsappQueues']());});function _0x2b89a9(_0x124848){const _0x26f958=_0x227da2;_0x45a839[_0x26f958(0x740)]=_0x124848||{'count':0x0,'rows':[]};}function _0x34217d(){const _0x31a397=_0x227da2;_0x45a839['query'][_0x31a397(0x145d)]=(_0x45a839['query']['page']-0x1)*_0x45a839['query'][_0x31a397(0x221e)],_0x5b867f[_0x31a397(0x23e0)]('admin')?_0x45a839['promise']=_0x95b4c0[_0x31a397(0x1b3b)]['get'](_0x45a839[_0x31a397(0x1a56)],_0x2b89a9)[_0x31a397(0x2945)]:(_0x45a839[_0x31a397(0x1a56)]['id']=_0x45a839[_0x31a397(0x26b6)]['id'],_0x45a839[_0x31a397(0x1a56)][_0x31a397(0x2146)]=_0x31a397(0xef),_0x45a839[_0x31a397(0xb9c)]=_0x95b4c0['userProfile']['getResources'](_0x45a839[_0x31a397(0x1a56)],_0x2b89a9)[_0x31a397(0x2945)]);}function _0x16cf32(_0x142d45,_0x3520fe){const _0x3249da=_0x227da2;_0x54c019['show']({'controller':_0x3249da(0x27d2),'controllerAs':'vm','templateUrl':_0x1140c1,'parent':angular[_0x3249da(0x1853)](_0x50f7e6['body']),'targetEvent':_0x142d45,'clickOutsideToClose':!![],'locals':{'whatsappQueue':_0x3520fe,'whatsappQueues':_0x45a839[_0x3249da(0x740)][_0x3249da(0x19c7)],'license':_0x45a839[_0x3249da(0x2690)],'setting':_0x45a839['setting'],'crudPermissions':_0x45a839[_0x3249da(0x2514)]}});}function _0x364d68(_0x16a67b){const _0x5112a3=_0x227da2;_0x95b4c0[_0x5112a3(0x1b3b)][_0x5112a3(0x1fac)]({'id':_0x16a67b['id']})[_0x5112a3(0x2945)]['then'](function(){const _0x42625a=_0x5112a3;_0x3f65c0()[_0x42625a(0x2640)](_0x45a839[_0x42625a(0x740)][_0x42625a(0x19c7)],{'id':_0x16a67b['id']}),_0x45a839[_0x42625a(0x740)][_0x42625a(0x51c)]-=0x1,!_0x45a839[_0x42625a(0x740)][_0x42625a(0x19c7)][_0x42625a(0x402)]&&_0x45a839[_0x42625a(0x1db9)](),_0x14df31[_0x42625a(0x1c75)]({'title':_0x3f65c0()['startCase']('WhatsappQueue')+_0x42625a(0x201c),'msg':_0x16a67b[_0x42625a(0x19eb)]?_0x16a67b[_0x42625a(0x19eb)]+_0x42625a(0x23e3):''});})[_0x5112a3(0x129e)](function(_0x508e19){const _0x121604=_0x5112a3;if(_0x508e19['data']&&_0x508e19[_0x121604(0x524)][_0x121604(0xcef)]&&_0x508e19[_0x121604(0x524)][_0x121604(0xcef)]['length']){_0x45a839[_0x121604(0xcef)]=_0x508e19['data']['errors']||[{'message':_0x508e19[_0x121604(0xd5f)](),'type':'SYSTEM:DELETEwhatsappQueue'}];for(let _0x1431b3=0x0;_0x1431b3<_0x508e19[_0x121604(0x524)][_0x121604(0xcef)][_0x121604(0x402)];_0x1431b3++){_0x14df31[_0x121604(0x1980)]({'title':_0x508e19[_0x121604(0x524)][_0x121604(0xcef)][_0x1431b3][_0x121604(0x1142)],'msg':_0x508e19['data']['errors'][_0x1431b3][_0x121604(0x7fd)]});}}else _0x14df31[_0x121604(0x1980)]({'title':_0x508e19[_0x121604(0x107b)]?_0x121604(0x262a)+_0x508e19['status']+_0x121604(0x1315)+_0x508e19[_0x121604(0x167f)]:_0x121604(0x2423),'msg':_0x508e19[_0x121604(0x524)]?JSON[_0x121604(0x10bb)](_0x508e19[_0x121604(0x524)][_0x121604(0x7fd)]):_0x508e19['message']||_0x508e19[_0x121604(0xd5f)]()});});}function _0x25d06d(){const _0x44c373=_0x227da2,_0x4d81e4=angular[_0x44c373(0x235a)](_0x45a839[_0x44c373(0x718)]);return _0x45a839[_0x44c373(0x718)]=[],_0x4d81e4;}function _0x3d40c5(_0xee99e5){const _0x405e02=_0x227da2,_0x30b515=_0x54c019['confirm']()[_0x405e02(0x1189)](_0x405e02(0x1f99))[_0x405e02(0x1cbe)](_0x405e02(0x16d3)+_0x45a839['selectedWhatsappQueues'][_0x405e02(0x402)]+_0x405e02(0x2452)+_0x405e02(0xe01))[_0x405e02(0x4bd)]('delete\x20WhatsappQueues')[_0x405e02(0x1f27)](_0xee99e5)['ok']('OK')[_0x405e02(0x6c3)](_0x405e02(0x39a));_0x54c019[_0x405e02(0x2615)](_0x30b515)[_0x405e02(0x146b)](function(){const _0x4fbbba=_0x405e02;_0x45a839[_0x4fbbba(0x718)][_0x4fbbba(0x1df5)](function(_0x37246b){_0x364d68(_0x37246b);}),_0x45a839[_0x4fbbba(0x718)]=[];});}function _0x26dbfc(){const _0x376e66=_0x227da2;_0x45a839[_0x376e66(0x718)]=[];}function _0x462ca9(){const _0x560046=_0x227da2;_0x45a839[_0x560046(0x718)]=_0x45a839[_0x560046(0x740)][_0x560046(0x19c7)];}}const _0x5b2296=_0x354ea5;;_0x4bf41d[_0x313a4d(0x11c2)]=[_0x313a4d(0x921),'$translatePartialLoaderProvider'];function _0x4bf41d(_0x4e87d7,_0x32381a){const _0x13653e=_0x313a4d;_0x4e87d7[_0x13653e(0x13d6)](_0x13653e(0x678),{'abstract':!![],'url':_0x13653e(0x4a8)})['state'](_0x13653e(0x262e),{'url':_0x13653e(0x1865),'views':{'content@app':{'templateUrl':_0x8ddf7e,'controller':_0x13653e(0x25bb)}},'resolve':{'whatsappQueues':[_0x13653e(0x362),_0x13653e(0xa87),function(_0xd6253b,_0x513cf0){const _0x2dd92c=_0x13653e;return _0x513cf0[_0x2dd92c(0x23e0)]('admin')?_0xd6253b[_0x2dd92c(0x2922)](_0x2dd92c(0x26e6),{'fields':'createdAt,updatedAt,id,name,strategy,timeout,description','sort':'-updatedAt','channel':_0x2dd92c(0xff9),'limit':0xa,'offset':0x0}):_0xd6253b[_0x2dd92c(0x2922)]('userProfile@getResources',{'id':_0x513cf0['getCurrentUser']()[_0x2dd92c(0x209a)],'section':_0x2dd92c(0xef),'fields':'createdAt,updatedAt,id,name,strategy,timeout,description','sort':'-updatedAt','channel':_0x2dd92c(0xff9),'limit':0xa,'offset':0x0});}],'userProfile':[_0x13653e(0x362),_0x13653e(0xa87),function(_0x2a86cb,_0x31da55){const _0xe8363=_0x13653e;return _0x31da55[_0xe8363(0x23e0)](_0xe8363(0x174b))?null:_0x2a86cb[_0xe8363(0x2922)](_0xe8363(0x119a),{'fields':_0xe8363(0x227),'id':_0x31da55[_0xe8363(0xb12)]()[_0xe8363(0x209a)]});}],'userProfileSection':[_0x13653e(0x362),_0x13653e(0xa87),function(_0x2a8b84,_0x3ff3ad){const _0x5bed96=_0x13653e;return _0x3ff3ad['hasRole'](_0x5bed96(0x174b))?null:_0x2a8b84[_0x5bed96(0x2922)](_0x5bed96(0x27be),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x3ff3ad[_0x5bed96(0xb12)]()[_0x5bed96(0x209a)],'sectionId':0x835});}]},'authenticate':!![],'permissionId':0x835,'bodyClass':'whatsapp'})['state']('app.whatsapp.whatsappQueues.edit',{'url':'/:id?tab','params':{'whatsappQueue':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x181a60,'controller':_0x13653e(0x282e)}},'resolve':{'whatsappQueue':[_0x13653e(0x362),_0x13653e(0x28c8),function(_0x68c20c,_0x59051e){const _0x26a44d=_0x13653e;return _0x68c20c[_0x26a44d(0x2922)](_0x26a44d(0x26e6),{'fields':'createdAt,updatedAt,id,name,strategy,timeout,description','id':_0x59051e['id']});}],'userProfileSection':[_0x13653e(0x362),_0x13653e(0xa87),function(_0x3dce22,_0x58458d){const _0x781c03=_0x13653e;return _0x3dce22[_0x781c03(0x2922)]('userProfileSection@get',{'fields':_0x781c03(0x1e64),'userProfileId':_0x58458d['getCurrentUser']()[_0x781c03(0x209a)],'sectionId':0x835});}]},'authenticate':!![],'permissionId':0x835,'bodyClass':_0x13653e(0xff9)})[_0x13653e(0x13d6)](_0x13653e(0x5cd),{'url':'/whatsappAccounts','views':{'content@app':{'templateUrl':_0x1239f5,'controller':_0x13653e(0x8f8)}},'resolve':{'whatsappAccounts':[_0x13653e(0x362),_0x13653e(0xa87),function(_0x40e84e,_0x1fc7ad){const _0x129f4f=_0x13653e;return _0x1fc7ad[_0x129f4f(0x23e0)](_0x129f4f(0x174b))?_0x40e84e['resolve'](_0x129f4f(0x19cc),{'fields':_0x129f4f(0x1edb),'sort':_0x129f4f(0x12f2),'limit':0xa,'offset':0x0}):_0x40e84e[_0x129f4f(0x2922)](_0x129f4f(0x938),{'id':_0x1fc7ad['getCurrentUser']()[_0x129f4f(0x209a)],'section':'WhatsappAccounts','fields':_0x129f4f(0x1edb),'sort':_0x129f4f(0x12f2),'limit':0xa,'offset':0x0});}],'userProfile':[_0x13653e(0x362),_0x13653e(0xa87),function(_0x9eb851,_0x59ae22){const _0x5571cf=_0x13653e;return _0x59ae22[_0x5571cf(0x23e0)]('admin')?null:_0x9eb851[_0x5571cf(0x2922)]('userProfile@get',{'fields':_0x5571cf(0x227),'id':_0x59ae22[_0x5571cf(0xb12)]()[_0x5571cf(0x209a)]});}],'userProfileSection':[_0x13653e(0x362),_0x13653e(0xa87),function(_0x581d27,_0x385714){const _0x4bfe40=_0x13653e;return _0x385714[_0x4bfe40(0x23e0)](_0x4bfe40(0x174b))?null:_0x581d27[_0x4bfe40(0x2922)](_0x4bfe40(0x27be),{'fields':_0x4bfe40(0x1e64),'userProfileId':_0x385714[_0x4bfe40(0xb12)]()[_0x4bfe40(0x209a)],'sectionId':0x836});}]},'authenticate':!![],'permissionId':0x836,'bodyClass':_0x13653e(0xff9)})[_0x13653e(0x13d6)]('app.whatsapp.whatsappAccounts.edit',{'url':_0x13653e(0x2028),'params':{'whatsappAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x2b4e10,'controller':_0x13653e(0x2440)}},'resolve':{'whatsappAccount':[_0x13653e(0x362),'$stateParams',function(_0x44428e,_0x145024){const _0x37f873=_0x13653e;return _0x44428e[_0x37f873(0x2922)](_0x37f873(0x19cc),{'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':_0x145024['id']});}],'userProfileSection':[_0x13653e(0x362),'Auth',function(_0x17438b,_0x31e6b6){const _0x957095=_0x13653e;return _0x17438b[_0x957095(0x2922)](_0x957095(0x27be),{'fields':_0x957095(0x1e64),'userProfileId':_0x31e6b6[_0x957095(0xb12)]()[_0x957095(0x209a)],'sectionId':0x836});}]},'authenticate':!![],'permissionId':0x836,'bodyClass':'whatsapp'}),_0x32381a[_0x13653e(0x15bf)]('app/main/apps/whatsapp');}angular[_0x313a4d(0x2528)](_0x313a4d(0x678),['ngCsv',_0x313a4d(0x962),_0x313a4d(0x23c7),_0x313a4d(0x963),_0x313a4d(0x19e2),_0x313a4d(0x27c1),_0x313a4d(0x195b),'ngAria',_0x313a4d(0xc86),_0x313a4d(0x1f5f),_0x313a4d(0x28a8),'mwFormViewer','mwFormUtils',_0x313a4d(0x581),_0x313a4d(0x1bd2),_0x313a4d(0x1792),_0x313a4d(0x1b65),_0x313a4d(0x1626),'chart.js',_0x313a4d(0x11df),_0x313a4d(0x2829)])[_0x313a4d(0x989)](_0x4bf41d)[_0x313a4d(0x28f0)](_0x313a4d(0x14fc),_0x5d2c89)[_0x313a4d(0x28f0)](_0x313a4d(0x210f),_0x4c8e05)[_0x313a4d(0x28f0)](_0x313a4d(0x501),_0x5e79c8)['controller'](_0x313a4d(0x287a),_0x456b4d)['controller'](_0x313a4d(0x226d),_0x4b9b3b)[_0x313a4d(0x28f0)](_0x313a4d(0x2fc),_0x1c05cd)['controller'](_0x313a4d(0x1fd9),_0x14d1a0)[_0x313a4d(0x28f0)]('EditWhatsappAccountAppdialogflowDialogController',_0x152c15)[_0x313a4d(0x28f0)]('EditWhatsappAccountAppgotoifDialogController',_0x5ef783)[_0x313a4d(0x28f0)]('EditWhatsappAccountAppgotopDialogController',_0x46b5e7)[_0x313a4d(0x28f0)]('EditWhatsappAccountAppintervalDialogController',_0x430574)[_0x313a4d(0x28f0)](_0x313a4d(0x1c5e),_0xd28de4)[_0x313a4d(0x28f0)](_0x313a4d(0x346),_0x359b21)[_0x313a4d(0x28f0)]('EditWhatsappAccountAppsystemDialogController',_0x840167)[_0x313a4d(0x28f0)](_0x313a4d(0x2403),_0x1b48f0)['controller'](_0x313a4d(0x1009),_0x5e629b)[_0x313a4d(0x28f0)](_0x313a4d(0x2825),_0x26407f)['controller']('WhatsappAccountWhatsappCannedAnswersController',_0x77f55b)[_0x313a4d(0x28f0)](_0x313a4d(0x22f),_0x4f12b2)[_0x313a4d(0x28f0)](_0x313a4d(0x56c),_0x6b695b)[_0x313a4d(0x28f0)](_0x313a4d(0x3df),_0x65939c)['controller']('CreateOrEditWhatsappQueueDialogController',_0x5c383b)['controller'](_0x313a4d(0x2d5),_0x5d32e5)[_0x313a4d(0x28f0)](_0x313a4d(0xb61),_0x3d99d8)[_0x313a4d(0x28f0)](_0x313a4d(0x1558),_0x5ade26)['controller']('WhatsappQueuesController',_0x5b2296);;const _0x32c656=_0x4acfac['p']+_0x313a4d(0x12e1);;const _0x31e320=_0x4acfac['p']+_0x313a4d(0x18f1);;const _0x49ff6b=_0x4acfac['p']+_0x313a4d(0xe82);;const _0x2a13c5=_0x4acfac['p']+'src/js/modules/core/layouts/horizontal-navigation.html/horizontal-navigation.html';;const _0x4bd0ac=_0x4acfac['p']+_0x313a4d(0x2300);;const _0xf74b74=_0x4acfac['p']+'src/js/modules/core/layouts/vertical-navigation-fullwidth-toolbar.html/vertical-navigation-fullwidth-toolbar.html';;const _0x28613b=_0x4acfac['p']+_0x313a4d(0xf39);;;_0x4efc4c[_0x313a4d(0x11c2)]=[_0x313a4d(0x1862),'$window',_0x313a4d(0x23df),_0x313a4d(0x1abe),'api',_0x313a4d(0xa87),_0x313a4d(0x15b9)];function _0x4efc4c(_0x404dc5,_0x373da6,_0x5a6a02,_0x1adc71,_0x3db91f,_0x17c128,_0xba78e3){const _0x573c26=_0x313a4d,_0x201f88=this;_0x201f88[_0x573c26(0x289a)]=![],_0x201f88[_0x573c26(0x1e45)]=![],_0x201f88['baseUrl']=_0x3db91f[_0x573c26(0x1b1f)];function _0x41122f(){const _0x45afff=_0x573c26;if(_0x404dc5[_0x45afff(0x16a)]['token']&&_0x404dc5[_0x45afff(0x16a)]['userId'])return _0x17c128[_0x45afff(0xd93)](),_0x201f88[_0x45afff(0x289a)]=!![],_0x5a6a02['put']('motion.token',_0x404dc5['params']['token']),_0x3db91f[_0x45afff(0xe7b)][_0x45afff(0x16b4)]({'id':_0x404dc5[_0x45afff(0x16a)][_0x45afff(0x1cab)]})[_0x45afff(0x2945)][_0x45afff(0x146b)](function(_0x4afa32){const _0x341791=_0x45afff;_0x4afa32&&(_0x17c128[_0x341791(0x1016)](_0x4afa32),_0x404dc5['go'](_0x341791(0x285e)));})['finally'](function(){_0x201f88['progresslogin']=![];});else _0x17c128[_0x45afff(0x1369)]()&&_0x404dc5['go'](_0x45afff(0x285e));_0x201f88[_0x45afff(0x1e45)]=_0xba78e3['googleSsoEnabled'];}function _0x1ec559(){const _0x58d746=_0x573c26;return _0x201f88[_0x58d746(0x289a)]=!![],_0x201f88[_0x58d746(0x7fd)]='',_0x17c128['login'](_0x201f88[_0x58d746(0x247c)])[_0x58d746(0x146b)](function(){const _0x3f5372=_0x58d746;return _0x404dc5['go'](_0x3f5372(0x285e));})[_0x58d746(0x129e)](function(_0x513256){const _0x3ee117=_0x58d746;_0x201f88['message']=_0x513256[_0x3ee117(0x524)]?_0x513256[_0x3ee117(0x524)][_0x3ee117(0x7fd)]:_0x513256[_0x3ee117(0x7fd)];})[_0x58d746(0x1ec6)](function(){_0x201f88['progresslogin']=![];});}function _0x1965b5(_0x251562){const _0x3f7415=_0x573c26;_0x201f88[_0x3f7415(0x7fd)]='',_0x373da6[_0x3f7415(0x1002)]['href']=_0x17c128[_0x3f7415(0x1a21)](_0x251562);}_0x201f88[_0x573c26(0x322)]=_0x1ec559,_0x201f88[_0x573c26(0x206)]=_0x1965b5,_0x201f88[_0x573c26(0x3d4)]=_0x41122f,_0x201f88[_0x573c26(0x3d4)]();}const _0x4729ea=_0x4efc4c;;_0x12021c[_0x313a4d(0x11c2)]=[_0x313a4d(0x921),_0x313a4d(0x695)];function _0x12021c(_0x1bca20,_0x40ec08){const _0x485b54=_0x313a4d;_0x1bca20[_0x485b54(0x13d6)](_0x485b54(0x14a4),{'url':_0x485b54(0x27dd),'views':{'main@':{'templateUrl':_0x31e320,'controller':_0x485b54(0x2707)},'content@app.login':{'templateUrl':_0x32c656,'controller':_0x485b54(0x1ade)}},'bodyClass':'login'}),_0x40ec08[_0x485b54(0x15bf)](_0x485b54(0x1365));}angular[_0x313a4d(0x2528)](_0x313a4d(0x14a4),[])[_0x313a4d(0x989)](_0x12021c)[_0x313a4d(0x28f0)](_0x313a4d(0x234f),_0x4729ea);;const _0x437b19=_0x4acfac['p']+'src/js/modules/forgot/forgot.html/forgot.html';;_0x155cc1[_0x313a4d(0x11c2)]=['Auth',_0x313a4d(0x1fe4),'$translate',_0x313a4d(0x1862),_0x313a4d(0x247f)];function _0x155cc1(_0x532675,_0x3a345f,_0x19d5d1,_0x390c91,_0x3cd986){const _0x1021ba=_0x313a4d,_0x2f96e5=this;_0x2f96e5[_0x1021ba(0x247c)]={},_0x2f96e5['baseUrl']=_0x3cd986[_0x1021ba(0x1b1f)];function _0x30c508(){const _0x572b80=_0x1021ba;_0x532675[_0x572b80(0x1369)]()&&_0x390c91['go'](_0x572b80(0x285e));}function _0x3f972b(){const _0x310800=_0x1021ba;return _0x3cd986[_0x310800(0x1013)]['forgot'](_0x2f96e5[_0x310800(0x247c)])[_0x310800(0x2945)][_0x310800(0x146b)](function(){const _0x2a7cda=_0x310800;_0x3a345f[_0x2a7cda(0x1c75)]({'title':_0x19d5d1[_0x2a7cda(0xde)](_0x2a7cda(0x1bae)),'msg':_0x19d5d1[_0x2a7cda(0xde)](_0x2a7cda(0xe58))});})[_0x310800(0x129e)](function(_0x1b01d4){const _0x30866b=_0x310800;_0x1b01d4&&_0x3a345f[_0x30866b(0x1980)]({'title':_0x19d5d1[_0x30866b(0xde)](_0x30866b(0x140f)),'msg':_0x1b01d4[_0x30866b(0x524)]?_0x1b01d4[_0x30866b(0x524)][_0x30866b(0x7fd)]||_0x1b01d4[_0x30866b(0x7fd)]||_0x1b01d4:_0x1b01d4['message']||_0x1b01d4});});}_0x2f96e5['forgotPassword']=_0x3f972b,_0x2f96e5['onInit']=_0x30c508;}const _0x2c4ff1=_0x155cc1;;_0x42ad5d[_0x313a4d(0x11c2)]=['$stateProvider',_0x313a4d(0x695)];function _0x42ad5d(_0x274d25,_0x383358){const _0x175d85=_0x313a4d;_0x274d25[_0x175d85(0x13d6)]('app.forgot',{'url':_0x175d85(0x345),'views':{'main@':{'templateUrl':_0x31e320,'controller':'MainController\x20as\x20vm'},'content@app.forgot':{'templateUrl':_0x437b19,'controller':_0x175d85(0x27b3)}},'bodyClass':'forgot'}),_0x383358[_0x175d85(0x15bf)](_0x175d85(0x28ee));}angular[_0x313a4d(0x2528)]('app.forgot',[])[_0x313a4d(0x989)](_0x42ad5d)['controller'](_0x313a4d(0x108a),_0x2c4ff1);;const _0x2c2330=_0x4acfac['p']+_0x313a4d(0xf5a);;_0x18a966[_0x313a4d(0x11c2)]=[_0x313a4d(0xa87),_0x313a4d(0x1fe4),_0x313a4d(0x214b),_0x313a4d(0x1862),_0x313a4d(0x247f),_0x313a4d(0x28c8)];function _0x18a966(_0x28a70b,_0x2365e9,_0xbf2a05,_0xd305e2,_0x45cda8,_0x4bf17d){const _0xb8ccd2=_0x313a4d,_0x42faed=this;_0x42faed[_0xb8ccd2(0x247c)]={'token':_0x4bf17d[_0xb8ccd2(0x1957)]},_0x42faed[_0xb8ccd2(0x15b9)]={},_0x42faed['baseUrl']=_0x45cda8['baseUrl'];function _0x24154a(){const _0x559883=_0xb8ccd2;return _0x28a70b[_0x559883(0x1369)]()&&_0xd305e2['go'](_0x559883(0x285e)),_0x45cda8[_0x559883(0x15b9)][_0x559883(0x13fa)]({'id':0x1})['$promise'][_0x559883(0x146b)](function(_0x4a170f){const _0x588d6d=_0x559883;_0x42faed[_0x588d6d(0x15b9)]=_0x4a170f,_0x42faed[_0x588d6d(0x2251)]=_0x42faed[_0x588d6d(0x15b9)][_0x588d6d(0x976)]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'';})['catch'](function(_0x331512){const _0xe849c1=_0x559883;_0x331512&&_0x2365e9[_0xe849c1(0x1980)]({'title':'Error','msg':_0x331512[_0xe849c1(0x524)]?_0x331512['data']['message']||_0x331512['message']||_0x331512:_0x331512[_0xe849c1(0x7fd)]||_0x331512});});}function _0x349176(){const _0x2d655d=_0xb8ccd2;return _0x45cda8['auth'][_0x2d655d(0x2450)](_0x42faed[_0x2d655d(0x247c)])[_0x2d655d(0x2945)][_0x2d655d(0x146b)](function(){const _0x2fd352=_0x2d655d;_0x2365e9[_0x2fd352(0x1c75)]({'title':_0xbf2a05['instant'](_0x2fd352(0x2866)),'msg':_0xbf2a05[_0x2fd352(0xde)](_0x2fd352(0x15d4))}),_0xd305e2['go'](_0x2fd352(0x14a4));})[_0x2d655d(0x129e)](function(_0x239234){const _0x20b7ff=_0x2d655d;_0x239234&&_0x2365e9[_0x20b7ff(0x1980)]({'title':_0xbf2a05[_0x20b7ff(0xde)](_0x20b7ff(0x1e6e)),'msg':_0x239234[_0x20b7ff(0x524)]?_0x239234[_0x20b7ff(0x524)][_0x20b7ff(0x7fd)]||_0x239234[_0x20b7ff(0x7fd)]||_0x239234:_0x239234['message']||_0x239234});});}_0x42faed['resetPassword']=_0x349176,_0x42faed['onInit']=_0x24154a;}const _0x246416=_0x18a966;;_0x509e4b[_0x313a4d(0x11c2)]=['$stateProvider',_0x313a4d(0x695)];function _0x509e4b(_0x5f30ea,_0xbb8522){const _0x53977e=_0x313a4d;_0x5f30ea[_0x53977e(0x13d6)](_0x53977e(0x247d),{'url':_0x53977e(0x15bd),'views':{'main@':{'templateUrl':_0x31e320,'controller':_0x53977e(0x2707)},'content@app.reset':{'templateUrl':_0x2c2330,'controller':'ResetPasswordController\x20as\x20vm'}},'bodyClass':_0x53977e(0x2450)}),_0xbb8522['addPart']('app/reset');}angular[_0x313a4d(0x2528)](_0x313a4d(0x247d),[])[_0x313a4d(0x989)](_0x509e4b)[_0x313a4d(0x28f0)](_0x313a4d(0x1542),_0x246416);;const _0x1493e6=_0x4acfac['p']+_0x313a4d(0x1356);;_0x1dfe03[_0x313a4d(0x11c2)]=[_0x313a4d(0x1862),'$timeout','$q',_0x313a4d(0x1f9a)];function _0x1dfe03(_0x347b97,_0xbceff6,_0x594ad8,_0x150fa5){const _0x181d05=_0x313a4d,_0x47e3c2=this;function _0x19738f(_0x13aa02){const _0x1ce1d8=a0_0x3bb9;let _0x5537c5=[];const _0x127b81=_0x150fa5['getFlatNavigation'](),_0x161262=_0x594ad8[_0x1ce1d8(0xce3)]();for(let _0x384615=0x0;_0x384615<_0x127b81['length'];_0x384615+=0x1){_0x127b81[_0x384615][_0x1ce1d8(0x135a)]&&_0x5537c5[_0x1ce1d8(0x1f47)](_0x127b81[_0x384615]);}return _0x13aa02&&(_0x5537c5=_0x5537c5[_0x1ce1d8(0x1dd6)](function(_0x49843d){const _0x341a58=_0x1ce1d8;if(_0x49843d[_0x341a58(0x1189)][_0x341a58(0x256e)]()['includes'](_0x13aa02[_0x341a58(0x256e)]()))return!![];})),_0xbceff6(function(){const _0x174672=_0x1ce1d8;_0x161262[_0x174672(0x2922)](_0x5537c5);},0x3e8),_0x161262[_0x1ce1d8(0xb9c)];}function _0x38852a(_0x586db4){const _0x21e0b1=a0_0x3bb9;_0x586db4[_0x21e0b1(0x135a)]&&(_0x586db4[_0x21e0b1(0x1de9)]?_0x347b97['go'](_0x586db4[_0x21e0b1(0x13d6)],_0x586db4[_0x21e0b1(0x1de9)]):_0x347b97['go'](_0x586db4['state']));}_0x47e3c2[_0x181d05(0x21da)]=_0x19738f,_0x47e3c2[_0x181d05(0x1ced)]=_0x38852a;}const _0x1c9329=_0x1dfe03;;_0xc66ce3[_0x313a4d(0x11c2)]=[_0x313a4d(0x921),'$translatePartialLoaderProvider'];function _0xc66ce3(_0x6a8436,_0x271b62){const _0x106aef=_0x313a4d;_0x6a8436[_0x106aef(0x13d6)](_0x106aef(0x1aa5),{'url':_0x106aef(0x1d77),'views':{'main@':{'templateUrl':_0x31e320,'controller':_0x106aef(0x2707)},'content@app.errors_error-404':{'templateUrl':_0x1493e6,'controller':_0x106aef(0x222e)}},'params':{'status':0x194,'statusText':'','data':{},'config':{}},'bodyClass':'error-404'}),_0x271b62[_0x106aef(0x15bf)]('app/errors/404');}angular[_0x313a4d(0x2528)](_0x313a4d(0xb1f),[])[_0x313a4d(0x989)](_0xc66ce3)[_0x313a4d(0x28f0)](_0x313a4d(0x105),_0x1c9329);;const _0x5b5216=_0x4acfac['p']+'src/js/modules/errors/500/error-500.html/error-500.html';;_0x4803bc[_0x313a4d(0x11c2)]=[_0x313a4d(0x1862),_0x313a4d(0x237)];function _0x4803bc(_0x49ea22,_0x238d09){const _0x24e477=_0x313a4d,_0x477693=this;function _0x2d5d1d(){const _0x5c29e3=a0_0x3bb9;_0x238d09['post'](_0x5c29e3(0x13f2),_0x477693[_0x5c29e3(0x1980)])[_0x5c29e3(0x146b)](function(_0x1f4b94){const _0x2ee636=_0x5c29e3;_0x477693[_0x2ee636(0x1443)]=!![],_0x1f4b94[_0x2ee636(0x524)]&&(_0x477693[_0x2ee636(0x2148)]=_0x1f4b94[_0x2ee636(0x524)]['id']);},function(){const _0x1496e5=_0x5c29e3;_0x477693[_0x1496e5(0x1443)]=![];});}_0x477693['code']='',_0x477693[_0x24e477(0x1443)]=![],_0x477693['error']=_0x49ea22[_0x24e477(0x16a)],_0x477693[_0x24e477(0x162d)]=_0x2d5d1d;}const _0x4e6b6e=_0x4803bc;;_0x2c2c58[_0x313a4d(0x11c2)]=['$stateProvider',_0x313a4d(0x695)];function _0x2c2c58(_0x4c4f66,_0x4b5f82){const _0x1fd469=_0x313a4d;_0x4c4f66['state'](_0x1fd469(0x4dd),{'url':_0x1fd469(0x2944),'views':{'main@':{'templateUrl':_0x31e320,'controller':'MainController\x20as\x20vm'},'content@app.errors_error-500':{'templateUrl':_0x5b5216,'controller':'Error500Controller\x20as\x20vm'}},'params':{'status':0x1f4,'statusText':'','data':{},'config':{}},'bodyClass':_0x1fd469(0x587)}),_0x4b5f82[_0x1fd469(0x15bf)](_0x1fd469(0x1d6a));}angular[_0x313a4d(0x2528)](_0x313a4d(0x1322),[])[_0x313a4d(0x989)](_0x2c2c58)['controller'](_0x313a4d(0x19b6),_0x4e6b6e);;angular['module'](_0x313a4d(0x986),[_0x313a4d(0xb1f),_0x313a4d(0x1322)]);;_0x376edd[_0x313a4d(0x11c2)]=[_0x313a4d(0x162a)];function _0x376edd(_0x5d61f2){const _0x4f4f51=_0x313a4d,_0x59cd94={};return _0x59cd94[_0x4f4f51(0x1b1f)]=!![]?'/':0x0,_0x59cd94[_0x4f4f51(0x1013)]=_0x5d61f2(_0x59cd94['baseUrl']+_0x4f4f51(0x2619),{},{'local':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/auth/local'},'forgot':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/auth/local/forgot'},'reset':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/auth/local/reset/:token','params':{'token':_0x4f4f51(0x16cd)}},'user':{'method':'get','url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/auth/local/user/:token','params':{'token':_0x4f4f51(0x16cd)}},'google':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1916)}}),_0x59cd94[_0x4f4f51(0x867)]=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+'api/jira'),_0x59cd94[_0x4f4f51(0x1af7)]=_0x5d61f2(_0x59cd94['baseUrl']+'api/rpc',{},{'startMonitor':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x2725),'params':{'uniqueid':_0x4f4f51(0xaf7)}},'stopMonitor':{'method':'get','url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/rpc/voice/channels/:uniqueid/stopmixmonitor','params':{'uniqueid':_0x4f4f51(0xaf7)}},'getVoiceChannels':{'method':'get','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0xc30)},'getVoiceQueues':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0xfc5)},'getChatQueues':{'method':'get','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0xfaa)},'getMailQueues':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94['baseUrl']+_0x4f4f51(0x131f)},'getSmsQueues':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/rpc/sms/queues'},'getWhatsappQueues':{'method':'get','url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/rpc/sms/queues'},'getOpenchannelQueues':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/rpc/openchannel/queues'},'getFaxQueues':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x562)},'getVoiceQueuesPreview':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/rpc/voice/queues/preview/:id'},'getVoiceQueuesChannels':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1b45)},'getVoiceQueuesChannel':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/rpc/voice/queues/channels/:uniqueid'},'getVoiceQueuesChannelHangup':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/rpc/voice/queues/channels/:uniqueid/hangup'},'getVoiceQueuesChannelRedirect':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94['baseUrl']+'api/rpc/voice/queues/channels/:uniqueid/redirect/:exten'},'getOutbound':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1895)},'getOutboundChannels':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94['baseUrl']+_0x4f4f51(0x2184)},'getAgents':{'method':'get','url':_0x59cd94['baseUrl']+'api/rpc/agents'},'setAgentCapacity':{'method':_0x4f4f51(0x17b7),'url':_0x59cd94['baseUrl']+_0x4f4f51(0x1921),'params':{'id':_0x4f4f51(0x283)}},'getTelephones':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94['baseUrl']+_0x4f4f51(0x1364)},'getTrunks':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x53a)},'getCampaigns':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x25f8)},'getMailAccounts':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1623)},'getFaxAccounts':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/rpc/fax/accounts'},'getChatQueuesWaitingInteractions':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1f48)},'getMailQueuesWaitingInteractions':{'method':'get','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1649)},'getOpenchannelQueuesWaitingInteractions':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94['baseUrl']+_0x4f4f51(0x1427)},'getOpenchannelQueuesIdWaitingInteractions':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/rpc/openchannel/queues/:id/waitinginteractions'},'getSmsQueuesWaitingInteractions':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94['baseUrl']+_0x4f4f51(0x170c)},'getFaxQueuesWaitingInteractions':{'method':'get','url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/rpc/fax/queues/waitinginteractions'},'getWhatsappQueuesWaitingInteractions':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1a14)},'mailQueueNotify':{'method':'post','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0xc88),'params':{'id':_0x4f4f51(0x283)}},'chatQueueNotify':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94['baseUrl']+_0x4f4f51(0x12d4),'params':{'id':_0x4f4f51(0x283)}},'faxQueueNotify':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94['baseUrl']+_0x4f4f51(0x15c1),'params':{'id':_0x4f4f51(0x283)}},'smsQueueNotify':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x21cc),'params':{'id':_0x4f4f51(0x283)}},'openchannelQueueNotify':{'method':'post','url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/rpc/openchannel/queues/:id/notify','params':{'id':'@id'}},'agentNotify':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1af6),'params':{'id':_0x4f4f51(0x283)}}}),_0x59cd94['version']=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1ecd),{},{'fetch':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x154b)},'reset':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/version/reset'},'pull':{'method':'get','url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/version/pull'},'restart':{'method':'get','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x22ff)},'migrations':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94['baseUrl']+_0x4f4f51(0x16b1)}}),_0x59cd94[_0x4f4f51(0x1d47)]=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x140c),{},{'killProcess':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x286e),'params':{'pid':_0x4f4f51(0x1733)}}}),_0x59cd94[_0x4f4f51(0x1b6f)]=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0xebb),{'id':'@id'},{'update':{'method':_0x4f4f51(0x17b7),'isArray':!![]}}),_0x59cd94['user']=_0x5d61f2(_0x59cd94['baseUrl']+'api/users/:id',{'id':'@id'},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94['baseUrl']+_0x4f4f51(0x17a5)},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94['baseUrl']+'api/users/:id/clone','params':{'includeAll':'@includeAll'}},'bulkCreate':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0xe15),'isArray':!![]},'addContacts':{'isArray':!![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94['baseUrl']+_0x4f4f51(0x1832)},'changePassword':{'isArray':![],'method':_0x4f4f51(0x17b7),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x22a0)},'addQueues':{'isArray':!![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/users/:id/queues'},'removeQueues':{'isArray':![],'method':'delete','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x10bc)},'addAvatar':{'isArray':![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/users/:id/avatar'},'getAvatar':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94['baseUrl']+_0x4f4f51(0x1ca0)},'getContacts':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1832)},'getQueues':{'isArray':![],'method':'get','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x10bc)},'getVoiceQueuesRt':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x2010)},'getGroups':{'isArray':![],'method':'get','url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/users/:id/groups'},'getRecordings':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94['baseUrl']+_0x4f4f51(0x3a3)},'getScreenRecordings':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x2182)},'getChatInteractions':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94['baseUrl']+_0x4f4f51(0x1e9b)},'getOpenchannelInteractions':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x136f)},'getMailInteractions':{'isArray':![],'method':'get','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x39c)},'getSmsInteractions':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1231)},'getFaxInteractions':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/users/:id/fax/interactions'},'getWhatsappInteractions':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x21de)},'login':{'isArray':![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x239c)},'logout':{'isArray':![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x495)},'pause':{'isArray':![],'method':'post','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x192b)},'unpause':{'isArray':![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1057)},'getTeams':{'isArray':![],'method':'get','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x2900)},'addTeams':{'isArray':!![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94['baseUrl']+_0x4f4f51(0x2900)},'removeTeams':{'isArray':![],'method':_0x4f4f51(0x1fac),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/users/:id/teams'},'getLists':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x22c6)},'getAgents':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/users/:id/agents'},'addChatInteractions':{'isArray':!![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/users/:id/chat_interactions'},'removeChatInteractions':{'isArray':![],'method':'delete','url':_0x59cd94['baseUrl']+_0x4f4f51(0x2053)},'addMailInteractions':{'isArray':!![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1e7f)},'removeMailInteractions':{'isArray':![],'method':_0x4f4f51(0x1fac),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/users/:id/mail_interactions'},'addFaxInteractions':{'isArray':!![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x5f3)},'removeFaxInteractions':{'isArray':![],'method':_0x4f4f51(0x1fac),'url':_0x59cd94['baseUrl']+_0x4f4f51(0x5f3)},'addSmsInteractions':{'isArray':!![],'method':'post','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x272d)},'removeSmsInteractions':{'isArray':![],'method':_0x4f4f51(0x1fac),'url':_0x59cd94['baseUrl']+'api/users/:id/sms_interactions'},'addOpenchannelInteractions':{'isArray':!![],'method':'post','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0xaa3)},'removeOpenchannelInteractions':{'isArray':![],'method':_0x4f4f51(0x1fac),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0xaa3)},'addWhatsappInteractions':{'isArray':!![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1c57)},'removeWhatsappInteractions':{'isArray':![],'method':'delete','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1c57)},'getVoicePrefixes':{'isArray':![],'method':'get','url':_0x59cd94['baseUrl']+'api/users/:id/prefixes'},'getFaxAccounts':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x177b)},'addFaxAccounts':{'isArray':!![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94['baseUrl']+'api/users/:id/fax_accounts'},'removeFaxAccounts':{'isArray':![],'method':_0x4f4f51(0x1fac),'url':_0x59cd94['baseUrl']+_0x4f4f51(0x177b)},'getMailAccounts':{'isArray':![],'method':'get','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x13a)},'addMailAccounts':{'isArray':!![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x13a)},'removeMailAccounts':{'isArray':![],'method':'delete','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x13a)},'getOpenchannelAccounts':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x192d)},'addOpenchannelAccounts':{'isArray':!![],'method':'post','url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/users/:id/openchannel_accounts'},'removeOpenchannelAccounts':{'isArray':![],'method':_0x4f4f51(0x1fac),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x192d)},'getSmsAccounts':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/users/:id/sms_accounts'},'addSmsAccounts':{'isArray':!![],'method':'post','url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/users/:id/sms_accounts'},'removeSmsAccounts':{'isArray':![],'method':'delete','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x185d)},'getChatWebsites':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/users/:id/chat_websites'},'addChatWebsites':{'isArray':!![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/users/:id/chat_websites'},'removeChatWebsites':{'isArray':![],'method':'delete','url':_0x59cd94['baseUrl']+'api/users/:id/chat_websites'},'getWhatsappAccounts':{'isArray':![],'method':'get','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x202d)},'addWhatsappAccounts':{'isArray':!![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/users/:id/whatsapp_accounts'},'removeWhatsappAccounts':{'isArray':![],'method':_0x4f4f51(0x1fac),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/users/:id/whatsapp_accounts'},'getSquareProjects':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/users/:id/square_projects'},'addSquareProjects':{'isArray':!![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/users/:id/square_projects'},'removeSquareProjects':{'isArray':![],'method':_0x4f4f51(0x1fac),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x24f5)},'getScheduledCalls':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0xc1b)},'getApiKey':{'isArray':![],'method':'get','url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/users/:id/api_key'},'createApiKey':{'isArray':![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/users/:id/api_key'},'removeApiKey':{'isArray':![],'method':_0x4f4f51(0x1fac),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/users/:id/api_key'},'whoami':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94['baseUrl']+'api/users/whoami'}}),_0x59cd94[_0x4f4f51(0x15e8)]=_0x5d61f2(_0x59cd94['baseUrl']+_0x4f4f51(0xd3a),{'id':'@id'},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1e02)},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94['baseUrl']+_0x4f4f51(0x2676),'params':{'includeAll':'@includeAll'}}}),_0x59cd94['voiceContext']=_0x5d61f2(_0x59cd94['baseUrl']+_0x4f4f51(0x131e),{'id':_0x4f4f51(0x283)},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/voice/contexts/describe'},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x2003),'params':{'includeAll':'@includeAll'}}}),_0x59cd94[_0x4f4f51(0xd47)]=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1494),{'id':_0x4f4f51(0x283)},{'update':{'method':'put'},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x3a6)},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94['baseUrl']+'api/voice/extensions/:id/clone','params':{'includeAll':_0x4f4f51(0x1104)}},'addApplications':{'isArray':![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1639)}}),_0x59cd94[_0x4f4f51(0x7bd)]=_0x5d61f2(_0x59cd94['baseUrl']+_0x4f4f51(0x1c1f),{'id':'@id'},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94['baseUrl']+'api/voice/mohs/describe'},'clone':{'method':'post','url':_0x59cd94['baseUrl']+_0x4f4f51(0x456),'params':{'includeAll':'@includeAll'}},'addSound':{'isArray':![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94['baseUrl']+_0x4f4f51(0x925)},'removeSound':{'isArray':![],'method':'delete','url':_0x59cd94['baseUrl']+_0x4f4f51(0x940)},'getSounds':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94['baseUrl']+_0x4f4f51(0x925)}}),_0x59cd94[_0x4f4f51(0x1446)]=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0xb06),{'id':_0x4f4f51(0x283)},{'update':{'method':'put'},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1c41)},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x16b8),'params':{'includeAll':'@includeAll'}},'getHoppers':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94['baseUrl']+_0x4f4f51(0x136)},'getHopperHistories':{'isArray':![],'method':'get','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1b90)},'getHopperFinals':{'isArray':![],'method':'get','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x24a1)},'getHopperBlacks':{'isArray':![],'method':'get','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0xae2)},'getTeams':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x243c)},'addTeams':{'isArray':!![],'method':'post','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x243c)},'removeTeams':{'isArray':![],'method':_0x4f4f51(0x1fac),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/voice/queues/:id/teams'},'addAgents':{'isArray':!![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x24fc)},'removeAgents':{'isArray':![],'method':_0x4f4f51(0x1fac),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x24fc)},'getAgents':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x24fc)},'getMembers':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94['baseUrl']+'api/voice/queues/:id/members'},'getLists':{'isArray':![],'method':'get','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x24c4)},'addLists':{'isArray':!![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94['baseUrl']+_0x4f4f51(0x24c4)},'removeLists':{'isArray':!![],'method':_0x4f4f51(0x1fac),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/voice/queues/:id/lists'},'getBlackLists':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1113)},'addBlackLists':{'isArray':!![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1113)},'removeBlackLists':{'isArray':!![],'method':'delete','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1113)}}),_0x59cd94[_0x4f4f51(0x1688)]=_0x5d61f2(_0x59cd94['baseUrl']+'api/voice/recordings/:id',{'id':'@id'},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x8e4)},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x13f1),'params':{'includeAll':_0x4f4f51(0x1104)}},'download':{'isArray':![],'method':'get','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1efb),'responseType':_0x4f4f51(0x265f),'cache':![],'transformResponse':function(_0x6a3efa,_0x360701){const _0x3f2a85=_0x360701();return{'type':_0x3f2a85['content-type'],'length':_0x3f2a85['content-length'],'buffer':_0x6a3efa};}},'downloads':{'isArray':![],'method':'get','url':_0x59cd94['baseUrl']+'api/voice/recordings/:id/downloads'},'runTranscribe':{'isArray':![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x232b)},'downloadTranscribe':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x232b),'responseType':'arraybuffer','cache':![],'transformResponse':function(_0x186167,_0x23ec51){const _0x2761d5=_0x4f4f51,_0x2c6d3c=_0x23ec51();return{'type':_0x2c6d3c['content-type'],'length':_0x2c6d3c[_0x2761d5(0xdb5)],'buffer':_0x186167};}}}),_0x59cd94[_0x4f4f51(0x1b80)]=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+'api/screen/recordings/:id',{'id':_0x4f4f51(0x283)},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1808)},'clone':{'method':'post','url':_0x59cd94['baseUrl']+_0x4f4f51(0x25a0),'params':{'includeAll':_0x4f4f51(0x1104)}},'download':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1212),'responseType':_0x4f4f51(0x265f),'cache':![],'transformResponse':function(_0x5a294f,_0x294e9a){const _0x42bfa5=_0x4f4f51,_0x1e7422=_0x294e9a();return{'type':_0x1e7422[_0x42bfa5(0x22eb)],'length':_0x1e7422['content-length'],'buffer':_0x5a294f};}}}),_0x59cd94[_0x4f4f51(0xe8c)]=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0xd96),{'id':_0x4f4f51(0x283)},{'update':{'method':'put'},'describe':{'method':'get','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x2569)},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1f2e),'params':{'includeAll':_0x4f4f51(0x1104)}},'getMessages':{'isArray':![],'method':'get','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1cf1)}}),_0x59cd94[_0x4f4f51(0x2f3)]=_0x5d61f2(_0x59cd94['baseUrl']+'api/voice/mails/messages/:id',{'id':_0x4f4f51(0x283)},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/voice/mails/messages/describe'},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x2564),'params':{'includeAll':_0x4f4f51(0x1104)}},'download':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x93f),'responseType':_0x4f4f51(0x265f),'cache':![],'transformResponse':function(_0x207a96,_0x43a7dd){const _0x89dfcd=_0x4f4f51,_0x4b4d9a=_0x43a7dd();return{'type':_0x4b4d9a[_0x89dfcd(0x22eb)],'length':_0x4b4d9a['content-length'],'buffer':_0x207a96};}}}),_0x59cd94[_0x4f4f51(0x629)]=_0x5d61f2(_0x59cd94['baseUrl']+_0x4f4f51(0x159a),{'id':_0x4f4f51(0x283)},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x16f3)},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/voice/calls/reports/:id/clone','params':{'includeAll':'@includeAll'}}}),_0x59cd94[_0x4f4f51(0x160)]=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1f10),{'id':_0x4f4f51(0x283)},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1621)},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1cfc),'params':{'includeAll':_0x4f4f51(0x1104)}}}),_0x59cd94[_0x4f4f51(0x1cb3)]=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+'api/voice/agents/reports/:id',{'id':'@id'},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':'get','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0xf8)},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x2700),'params':{'includeAll':_0x4f4f51(0x1104)}}}),_0x59cd94['voiceQueueReport']=_0x5d61f2(_0x59cd94['baseUrl']+'api/voice/queues/reports/:id',{'id':_0x4f4f51(0x283)},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1719)},'clone':{'method':'post','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x11c0),'params':{'includeAll':'@includeAll'}},'getVoiceQueuesReport':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94['baseUrl']+_0x4f4f51(0xf46)}}),_0x59cd94[_0x4f4f51(0x2721)]=_0x5d61f2(_0x59cd94['baseUrl']+_0x4f4f51(0x1ddd),{'id':_0x4f4f51(0x283)},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94['baseUrl']+'api/members/reports/describe'},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/members/reports/:id/clone','params':{'includeAll':_0x4f4f51(0x1104)}}}),_0x59cd94[_0x4f4f51(0x279f)]=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+'api/trunks/:id',{'id':'@id'},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':'get','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0xca1)},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94['baseUrl']+_0x4f4f51(0x915),'params':{'includeAll':_0x4f4f51(0x1104)}}}),_0x59cd94['voiceTransferReport']=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0xd59),{'id':_0x4f4f51(0x283)},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/voice/transfers/reports/describe'},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1919),'params':{'includeAll':'@includeAll'}}}),_0x59cd94['mailServerOut']=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1b1),{'id':_0x4f4f51(0x283)},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':'get','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x667)},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94['baseUrl']+_0x4f4f51(0x2506),'params':{'includeAll':_0x4f4f51(0x1104)}}}),_0x59cd94[_0x4f4f51(0x67d)]=_0x5d61f2(_0x59cd94['baseUrl']+_0x4f4f51(0x19df),{'id':_0x4f4f51(0x283)},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':'get','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x2663)},'clone':{'method':'post','url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/mail/accounts/:id/clone','params':{'includeAll':_0x4f4f51(0x1104)}},'addDisposition':{'isArray':![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94['baseUrl']+_0x4f4f51(0xb4f)},'getDispositions':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0xb4f)},'removeDispositions':{'isArray':![],'method':_0x4f4f51(0x1fac),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/mail/accounts/:id/dispositions'},'addAnswer':{'isArray':![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/mail/accounts/:id/canned_answers'},'getAnswers':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94['baseUrl']+_0x4f4f51(0x1e96)},'removeAnswers':{'isArray':![],'method':'delete','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1e96)},'getImap':{'isArray':![],'method':'get','url':_0x59cd94['baseUrl']+_0x4f4f51(0x1a51)},'addImap':{'isArray':![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1a51)},'removeImap':{'isArray':![],'method':_0x4f4f51(0x1fac),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1a51)},'getSmtp':{'isArray':![],'method':'get','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0xcf9)},'addSmtp':{'isArray':![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0xcf9)},'removeSmtp':{'isArray':![],'method':_0x4f4f51(0x1fac),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0xcf9)},'addInteraction':{'isArray':![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0xf33)},'getInteractions':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0xf33)},'addApplications':{'isArray':![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x799)},'getApplications':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/mail/accounts/:id/applications'},'getMessages':{'isArray':![],'method':'get','url':_0x59cd94['baseUrl']+_0x4f4f51(0xcb7)},'send':{'isArray':![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x2763)},'verifySmtp':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1871)},'addAgents':{'isArray':!![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/mail/accounts/:id/users'},'removeAgents':{'isArray':![],'method':_0x4f4f51(0x1fac),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1c33)},'getAgents':{'isArray':![],'method':'get','url':_0x59cd94['baseUrl']+'api/mail/accounts/:id/users'}}),_0x59cd94[_0x4f4f51(0x101c)]=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0xf56),{'id':_0x4f4f51(0x283)},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':'get','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x14b3)},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x26fd),'params':{'includeAll':_0x4f4f51(0x1104)}},'getMembers':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94['baseUrl']+'api/mail/queues/:id/members'},'getTeams':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1658)},'addTeams':{'isArray':!![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1658)},'removeTeams':{'isArray':![],'method':_0x4f4f51(0x1fac),'url':_0x59cd94['baseUrl']+_0x4f4f51(0x1658)},'addAgents':{'isArray':!![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x2382)},'removeAgents':{'isArray':![],'method':_0x4f4f51(0x1fac),'url':_0x59cd94['baseUrl']+_0x4f4f51(0x2382)},'getAgents':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x2382)}}),_0x59cd94['mailSubstatus']=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+'api/mail/substatuses/:id',{'id':_0x4f4f51(0x283)},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x271b)},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x28b2),'params':{'includeAll':'@includeAll'}}}),_0x59cd94[_0x4f4f51(0x3c7)]=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x814),{'id':_0x4f4f51(0x283)},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/mail/interactions/describe'},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1edc),'params':{'includeAll':_0x4f4f51(0x1104)}},'addMessage':{'isArray':![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94['baseUrl']+'api/mail/interactions/:id/messages'},'getMessages':{'isArray':![],'method':'get','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x2924)},'addTags':{'isArray':![],'method':'post','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0xa5e)},'removeTags':{'isArray':![],'method':'delete','url':_0x59cd94['baseUrl']+'api/mail/interactions/:id/tags'},'download':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/mail/interactions/:id/download','responseType':_0x4f4f51(0x265f),'cache':![],'transformResponse':function(_0x3e234c,_0xaed2c1){const _0x2eeb79=_0x4f4f51,_0x353c83=_0xaed2c1();return{'type':_0x353c83[_0x2eeb79(0x22eb)],'length':_0x353c83[_0x2eeb79(0xdb5)],'buffer':_0x3e234c};}}}),_0x59cd94[_0x4f4f51(0x213)]=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+'api/mail/messages/:id',{'id':_0x4f4f51(0x283)},{'update':{'method':'put'},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x202c)},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0xf00),'params':{'includeAll':_0x4f4f51(0x1104)}},'accept':{'isArray':![],'method':'put','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0xe96)},'reject':{'isArray':![],'method':_0x4f4f51(0x17b7),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x59a)},'download':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1ba8),'responseType':_0x4f4f51(0x265f),'cache':![],'transformResponse':function(_0x527d62,_0x2fa923){const _0x14fd0c=_0x4f4f51,_0x4e1dec=_0x2fa923();return{'type':_0x4e1dec[_0x14fd0c(0x22eb)],'length':_0x4e1dec[_0x14fd0c(0xdb5)],'buffer':_0x527d62};}}}),_0x59cd94[_0x4f4f51(0x616)]=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+'api/mail/applications/:id',{'id':_0x4f4f51(0x283)},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1ae1)},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x438),'params':{'includeAll':'@includeAll'}}}),_0x59cd94[_0x4f4f51(0x2443)]=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x251b),{'id':_0x4f4f51(0x283)},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1947)},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x136d),'params':{'includeAll':_0x4f4f51(0x1104)}}}),_0x59cd94[_0x4f4f51(0x130)]=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1416),{'id':'@id'},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x115)},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94['baseUrl']+_0x4f4f51(0x26e0),'params':{'includeAll':_0x4f4f51(0x1104)}},'addItem':{'isArray':![],'method':'post','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x51e)},'getItems':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x51e)}}),_0x59cd94['dashboardItem']=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+'api/dashboards/items/:id',{'id':_0x4f4f51(0x283)},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94['baseUrl']+'api/dashboards/items/describe'},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94['baseUrl']+_0x4f4f51(0x7bb),'params':{'includeAll':'@includeAll'}}}),_0x59cd94[_0x4f4f51(0x178)]=_0x5d61f2(_0x59cd94['baseUrl']+'api/fax/accounts/:id',{'id':_0x4f4f51(0x283)},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94['baseUrl']+'api/fax/accounts/describe'},'clone':{'method':'post','url':_0x59cd94['baseUrl']+_0x4f4f51(0xd68),'params':{'includeAll':_0x4f4f51(0x1104)}},'addDisposition':{'isArray':![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x7a1)},'getDispositions':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x7a1)},'removeDispositions':{'isArray':![],'method':_0x4f4f51(0x1fac),'url':_0x59cd94['baseUrl']+_0x4f4f51(0x7a1)},'addAnswer':{'isArray':![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x20f4)},'getAnswers':{'isArray':![],'method':'get','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x20f4)},'removeAnswers':{'isArray':![],'method':_0x4f4f51(0x1fac),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x20f4)},'addInteraction':{'isArray':![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/fax/accounts/:id/interactions'},'getInteractions':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x16e2)},'addApplications':{'isArray':![],'method':'post','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x2172)},'getApplications':{'isArray':![],'method':'get','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x2172)},'addAccountApplications':{'isArray':![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1935)},'updateAccountApplications':{'isArray':![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x2703)},'getMessages':{'isArray':![],'method':'get','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x19bd)},'send':{'isArray':![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x793)},'addAgents':{'isArray':!![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1e30)},'removeAgents':{'isArray':![],'method':'delete','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1e30)},'getAgents':{'isArray':![],'method':'get','url':_0x59cd94['baseUrl']+_0x4f4f51(0x1e30)}}),_0x59cd94['faxApplication']=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1596),{'id':'@id'},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94['baseUrl']+_0x4f4f51(0x115d)},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0xed8),'params':{'includeAll':_0x4f4f51(0x1104)}}}),_0x59cd94['faxInteraction']=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x957),{'id':'@id'},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x25c7)},'clone':{'method':'post','url':_0x59cd94['baseUrl']+_0x4f4f51(0xc22),'params':{'includeAll':'@includeAll'}},'addMessage':{'isArray':![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/fax/interactions/:id/messages'},'getMessages':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/fax/interactions/:id/messages'},'addTags':{'isArray':![],'method':'post','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1270)},'removeTags':{'isArray':![],'method':_0x4f4f51(0x1fac),'url':_0x59cd94['baseUrl']+_0x4f4f51(0x1270)},'download':{'isArray':![],'method':'get','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x2658),'responseType':'arraybuffer','cache':![],'transformResponse':function(_0x25e3e4,_0x4a3ccc){const _0x2cd2f3=_0x4f4f51,_0x43625a=_0x4a3ccc();return{'type':_0x43625a[_0x2cd2f3(0x22eb)],'length':_0x43625a[_0x2cd2f3(0xdb5)],'buffer':_0x25e3e4};}}}),_0x59cd94[_0x4f4f51(0xa30)]=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x6fd),{'id':_0x4f4f51(0x283)},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0xf1c)},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x119c),'params':{'includeAll':_0x4f4f51(0x1104)}},'accept':{'isArray':![],'method':_0x4f4f51(0x17b7),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x2706)},'reject':{'isArray':![],'method':'put','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x22b9)},'download':{'isArray':![],'method':'get','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x27a7),'responseType':_0x4f4f51(0x265f),'cache':![],'transformResponse':function(_0x24fde4,_0x168edc){const _0x4b8d93=_0x4f4f51,_0x13f873=_0x168edc();return{'type':_0x13f873[_0x4b8d93(0x22eb)],'length':_0x13f873['content-length'],'buffer':_0x24fde4};}}}),_0x59cd94['faxQueue']=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x245f),{'id':'@id'},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':'get','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x2464)},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x19be),'params':{'includeAll':_0x4f4f51(0x1104)}},'getMembers':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/fax/queues/:id/members'},'getTeams':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0xd23)},'addTeams':{'isArray':!![],'method':'post','url':_0x59cd94['baseUrl']+_0x4f4f51(0xd23)},'removeTeams':{'isArray':![],'method':_0x4f4f51(0x1fac),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0xd23)},'addAgents':{'isArray':!![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1ca4)},'removeAgents':{'isArray':![],'method':_0x4f4f51(0x1fac),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1ca4)},'getAgents':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1ca4)}}),_0x59cd94['faxQueueReport']=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1003),{'id':_0x4f4f51(0x283)},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94['baseUrl']+_0x4f4f51(0x2560)},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/fax/reports/queue/:id/clone','params':{'includeAll':_0x4f4f51(0x1104)}}}),_0x59cd94[_0x4f4f51(0x2209)]=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+'api/sms/accounts/:id',{'id':_0x4f4f51(0x283)},{'update':{'method':'put'},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/sms/accounts/describe'},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x17e),'params':{'includeAll':_0x4f4f51(0x1104)}},'addDisposition':{'isArray':![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/sms/accounts/:id/dispositions'},'getDispositions':{'isArray':![],'method':'get','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1fb)},'removeDispositions':{'isArray':![],'method':_0x4f4f51(0x1fac),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1fb)},'addAnswer':{'isArray':![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1fe8)},'getAnswers':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1fe8)},'removeAnswers':{'isArray':![],'method':_0x4f4f51(0x1fac),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1fe8)},'notify':{'isArray':![],'method':'post','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0xebe)},'addApplications':{'isArray':![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x15e4)},'getApplications':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x15e4)},'getInteractions':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1489)},'send':{'isArray':![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/sms/accounts/:id/send'},'status':{'isArray':![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1628)},'statusGet':{'isArray':![],'method':'get','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1628)},'addAgents':{'isArray':!![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/sms/accounts/:id/users'},'removeAgents':{'isArray':![],'method':'delete','url':_0x59cd94['baseUrl']+_0x4f4f51(0x269b)},'getAgents':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/sms/accounts/:id/users'}}),_0x59cd94['smsApplication']=_0x5d61f2(_0x59cd94['baseUrl']+_0x4f4f51(0x25ee),{'id':'@id'},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':'get','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x201f)},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94['baseUrl']+_0x4f4f51(0x140e),'params':{'includeAll':_0x4f4f51(0x1104)}}}),_0x59cd94[_0x4f4f51(0xb18)]=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x120f),{'id':_0x4f4f51(0x283)},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/sms/interactions/describe'},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0xc71),'params':{'includeAll':'@includeAll'}},'addMessage':{'isArray':![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1f9e)},'getMessages':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1f9e)},'addTags':{'isArray':![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94['baseUrl']+_0x4f4f51(0xe5e)},'removeTags':{'isArray':![],'method':_0x4f4f51(0x1fac),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0xe5e)},'download':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1856),'responseType':_0x4f4f51(0x265f),'cache':![],'transformResponse':function(_0x5f41ed,_0x580874){const _0x574d46=_0x4f4f51,_0x3008d4=_0x580874();return{'type':_0x3008d4['content-type'],'length':_0x3008d4[_0x574d46(0xdb5)],'buffer':_0x5f41ed};}}}),_0x59cd94[_0x4f4f51(0xb24)]=_0x5d61f2(_0x59cd94['baseUrl']+_0x4f4f51(0x10e),{'id':_0x4f4f51(0x283)},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':'get','url':_0x59cd94['baseUrl']+_0x4f4f51(0x106a)},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0xfeb),'params':{'includeAll':_0x4f4f51(0x1104)}},'accept':{'isArray':![],'method':_0x4f4f51(0x17b7),'url':_0x59cd94['baseUrl']+_0x4f4f51(0xc16)},'reject':{'isArray':![],'method':'put','url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/sms/messages/:id/reject'},'status':{'isArray':![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94['baseUrl']+_0x4f4f51(0x2657)}}),_0x59cd94[_0x4f4f51(0xf80)]=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x131),{'id':'@id'},{'update':{'method':'put'},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94['baseUrl']+_0x4f4f51(0x2071)},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x250e),'params':{'includeAll':_0x4f4f51(0x1104)}},'getMembers':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x24cf)},'getTeams':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x2239)},'addTeams':{'isArray':!![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94['baseUrl']+_0x4f4f51(0x2239)},'removeTeams':{'isArray':![],'method':'delete','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x2239)},'addAgents':{'isArray':!![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94['baseUrl']+_0x4f4f51(0x21ad)},'removeAgents':{'isArray':![],'method':_0x4f4f51(0x1fac),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/sms/queues/:id/users'},'getAgents':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x21ad)}}),_0x59cd94[_0x4f4f51(0xbd7)]=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x133d),{'id':'@id'},{'update':{'method':'put'},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x8b4)},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1885),'params':{'includeAll':'@includeAll'}},'addDisposition':{'isArray':![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94['baseUrl']+_0x4f4f51(0x1fda)},'getDispositions':{'isArray':![],'method':'get','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1fda)},'removeDispositions':{'isArray':![],'method':_0x4f4f51(0x1fac),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1fda)},'addAnswer':{'isArray':![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/openchannel/accounts/:id/canned_answers'},'getAnswers':{'isArray':![],'method':'get','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x645)},'removeAnswers':{'isArray':![],'method':_0x4f4f51(0x1fac),'url':_0x59cd94['baseUrl']+'api/openchannel/accounts/:id/canned_answers'},'notify':{'isArray':![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x3fc)},'addApplications':{'isArray':![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x20b5)},'getApplications':{'isArray':![],'method':'get','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x20b5)},'getInteractions':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/openchannel/accounts/:id/interactions'},'addAgents':{'isArray':!![],'method':'post','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1b34)},'removeAgents':{'isArray':![],'method':_0x4f4f51(0x1fac),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/openchannel/accounts/:id/users'},'getAgents':{'isArray':![],'method':'get','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1b34)},'send':{'isArray':![],'method':'post','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0xeab)}}),_0x59cd94[_0x4f4f51(0x1497)]=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x281d),{'id':'@id'},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':'get','url':_0x59cd94['baseUrl']+'api/openchannel/applications/describe'},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x578),'params':{'includeAll':_0x4f4f51(0x1104)}}}),_0x59cd94[_0x4f4f51(0x119)]=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1daa),{'id':_0x4f4f51(0x283)},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/openchannel/interactions/describe'},'clone':{'method':'post','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x10bf),'params':{'includeAll':_0x4f4f51(0x1104)}},'addMessage':{'isArray':![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0xad8)},'getMessages':{'isArray':![],'method':'get','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0xad8)},'addTags':{'isArray':![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/openchannel/interactions/:id/tags'},'removeTags':{'isArray':![],'method':_0x4f4f51(0x1fac),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1967)},'download':{'isArray':![],'method':'get','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x21f8),'responseType':_0x4f4f51(0x265f),'cache':![],'transformResponse':function(_0xcfce23,_0x553a2c){const _0x58bba1=_0x4f4f51,_0x4071e4=_0x553a2c();return{'type':_0x4071e4[_0x58bba1(0x22eb)],'length':_0x4071e4[_0x58bba1(0xdb5)],'buffer':_0xcfce23};}}}),_0x59cd94[_0x4f4f51(0x105e)]=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x24f7),{'id':_0x4f4f51(0x283)},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/openchannel/messages/describe'},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x16c9),'params':{'includeAll':_0x4f4f51(0x1104)}},'accept':{'isArray':![],'method':_0x4f4f51(0x17b7),'url':_0x59cd94['baseUrl']+_0x4f4f51(0xc72)},'reject':{'isArray':![],'method':'put','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x2730)}}),_0x59cd94[_0x4f4f51(0x2755)]=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x487),{'id':'@id'},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':'get','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1db)},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x20ac),'params':{'includeAll':_0x4f4f51(0x1104)}},'getMembers':{'isArray':![],'method':'get','url':_0x59cd94['baseUrl']+'api/openchannel/queues/:id/members'},'getTeams':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/openchannel/queues/:id/teams'},'addTeams':{'isArray':!![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0xf88)},'removeTeams':{'isArray':![],'method':_0x4f4f51(0x1fac),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0xf88)},'addAgents':{'isArray':!![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0xa32)},'removeAgents':{'isArray':![],'method':'delete','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0xa32)},'getAgents':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0xa32)}}),_0x59cd94[_0x4f4f51(0x189e)]=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1a5),{'id':'@id'},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0xe22)},'clone':{'method':'post','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1667),'params':{'includeAll':_0x4f4f51(0x1104)}},'addDisposition':{'isArray':![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1e11)},'getDispositions':{'isArray':![],'method':'get','url':_0x59cd94['baseUrl']+_0x4f4f51(0x1e11)},'removeDispositions':{'isArray':![],'method':_0x4f4f51(0x1fac),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1e11)},'addAnswer':{'isArray':![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/chat/websites/:id/canned_answers'},'getAnswers':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x89d)},'removeAnswers':{'isArray':![],'method':_0x4f4f51(0x1fac),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x89d)},'addLogo':{'isArray':![],'method':'post','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0xb7f)},'addAvatar':{'isArray':![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94['baseUrl']+_0x4f4f51(0x287f)},'addCustomerAvatar':{'isArray':![],'method':'post','url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/chat/websites/:id/customer_avatar'},'addSystemAvatar':{'isArray':![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94['baseUrl']+_0x4f4f51(0x1c27)},'getLogo':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94['baseUrl']+_0x4f4f51(0xb7f)},'getAvatar':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x287f)},'getCustomerAvatar':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x63f)},'getSystemAvatar':{'isArray':![],'method':'get','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1c27)},'notify':{'isArray':![],'method':'post','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x2466)},'offline':{'isArray':![],'method':'post','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x2623)},'addInteraction':{'isArray':![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x97d)},'getInteractions':{'isArray':![],'method':'get','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x97d)},'getSnippet':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x26f6)},'addApplications':{'isArray':![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1927)},'getApplications':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1927)},'addProactiveActions':{'isArray':![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/chat/websites/:id/proactive_actions'},'getProactiveActions':{'isArray':![],'method':'get','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x307)},'getFields':{'isArray':![],'method':'get','url':_0x59cd94['baseUrl']+'api/chat/websites/:id/fields'},'getOfflineMessages':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/chat/websites/:id/offline_messages'},'addAgents':{'isArray':!![],'method':'post','url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/chat/websites/:id/users'},'removeAgents':{'isArray':![],'method':_0x4f4f51(0x1fac),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/chat/websites/:id/users'},'getAgents':{'isArray':![],'method':'get','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x224c)}}),_0x59cd94['openchannelQueueReport']=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0xed3),{'id':'@id'},{'update':{'method':'put'},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94['baseUrl']+_0x4f4f51(0x3a5)},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/openchannel/reports/queue/:id/clone','params':{'includeAll':_0x4f4f51(0x1104)}}}),_0x59cd94[_0x4f4f51(0xa4f)]=_0x5d61f2(_0x59cd94['baseUrl']+_0x4f4f51(0x2833),{'id':'@id'},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/chat/applications/describe'},'clone':{'method':'post','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1304),'params':{'includeAll':_0x4f4f51(0x1104)}}}),_0x59cd94[_0x4f4f51(0xc9f)]=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1e23),{'id':_0x4f4f51(0x283)},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x8ef)},'clone':{'method':'post','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x22b7),'params':{'includeAll':_0x4f4f51(0x1104)}},'createVidaooSession':{'isArray':![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94['baseUrl']+_0x4f4f51(0x25a7)},'customUpdate':{'isArray':![],'method':'put','url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/chat/interactions/:id/custom_update'},'abandon':{'isArray':![],'method':_0x4f4f51(0x17b7),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x120)},'attachmentUpload':{'isArray':![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94['baseUrl']+_0x4f4f51(0x731)},'attachmentDownload':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/chat/interactions/:id/attachment_download'},'close':{'isArray':![],'method':_0x4f4f51(0x17b7),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/chat/interactions/:id/close'},'addMessage':{'isArray':![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94['baseUrl']+_0x4f4f51(0x26cf)},'getMessages':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94['baseUrl']+_0x4f4f51(0x26cf)},'getMyMessages':{'isArray':![],'method':'get','url':_0x59cd94['baseUrl']+_0x4f4f51(0x23aa)},'addTags':{'isArray':![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94['baseUrl']+_0x4f4f51(0x1b8)},'removeTags':{'isArray':![],'method':_0x4f4f51(0x1fac),'url':_0x59cd94['baseUrl']+_0x4f4f51(0x1b8)},'download':{'isArray':![],'method':'get','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x257c),'responseType':_0x4f4f51(0x265f),'cache':![],'transformResponse':function(_0xfcf4d8,_0x4485ea){const _0x39ffbb=_0x4f4f51,_0x3a9cdc=_0x4485ea();return{'type':_0x3a9cdc[_0x39ffbb(0x22eb)],'length':_0x3a9cdc['content-length'],'buffer':_0xfcf4d8};}}}),_0x59cd94[_0x4f4f51(0xe0f)]=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1923),{'id':_0x4f4f51(0x283)},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/chat/messages/describe'},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94['baseUrl']+_0x4f4f51(0x110c),'params':{'includeAll':'@includeAll'}},'accept':{'isArray':![],'method':_0x4f4f51(0x17b7),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x134c)},'reject':{'isArray':![],'method':_0x4f4f51(0x17b7),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x5fd)}}),_0x59cd94['chatOfflineMessage']=_0x5d61f2(_0x59cd94['baseUrl']+_0x4f4f51(0x188c),{'id':_0x4f4f51(0x283)},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x15a7)},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94['baseUrl']+'api/chat/offline_messages/:id/clone','params':{'includeAll':_0x4f4f51(0x1104)}}}),_0x59cd94[_0x4f4f51(0x16f8)]=_0x5d61f2(_0x59cd94['baseUrl']+_0x4f4f51(0x24e8),{'id':_0x4f4f51(0x283)},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':'get','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x27d0)},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x208),'params':{'includeAll':_0x4f4f51(0x1104)}},'getMembers':{'isArray':![],'method':'get','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x19c5)},'getTeams':{'isArray':![],'method':'get','url':_0x59cd94['baseUrl']+_0x4f4f51(0x18d4)},'addTeams':{'isArray':!![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94['baseUrl']+'api/chat/queues/:id/teams'},'removeTeams':{'isArray':![],'method':_0x4f4f51(0x1fac),'url':_0x59cd94['baseUrl']+_0x4f4f51(0x18d4)},'addAgents':{'isArray':!![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94['baseUrl']+'api/chat/queues/:id/users'},'removeAgents':{'isArray':![],'method':_0x4f4f51(0x1fac),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1230)},'getAgents':{'isArray':![],'method':'get','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1230)}}),_0x59cd94[_0x4f4f51(0x1340)]=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x807),{'id':_0x4f4f51(0x283)},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x28d3)},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/chat/groups/:id/clone','params':{'includeAll':_0x4f4f51(0x1104)}},'getUnread':{'isArray':![],'method':'get','url':_0x59cd94['baseUrl']+_0x4f4f51(0x13e2)},'addMembers':{'isArray':!![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1592)},'getMembers':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1592)},'removeMembers':{'isArray':![],'method':'delete','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1592)},'addMessage':{'isArray':![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94['baseUrl']+_0x4f4f51(0x680)},'getMessages':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94['baseUrl']+_0x4f4f51(0x680)}}),_0x59cd94[_0x4f4f51(0xebc)]=_0x5d61f2(_0x59cd94['baseUrl']+'api/chat/proactive_actions/:id',{'id':_0x4f4f51(0x283)},{'update':{'method':'put'},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94['baseUrl']+_0x4f4f51(0x236f)},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1828),'params':{'includeAll':_0x4f4f51(0x1104)}}}),_0x59cd94['cmCompany']=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1a4b),{'id':_0x4f4f51(0x283)},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94['baseUrl']+_0x4f4f51(0xdff)},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1138),'params':{'includeAll':_0x4f4f51(0x1104)}},'addContacts':{'isArray':![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1e44)},'getContacts':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1e44)}}),_0x59cd94[_0x4f4f51(0x18c3)]=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x4f3),{'id':_0x4f4f51(0x283)},{'update':{'method':'put'},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1ffa)},'clone':{'method':'post','url':_0x59cd94['baseUrl']+_0x4f4f51(0x200f),'params':{'includeAll':_0x4f4f51(0x1104)}},'merge':{'isArray':![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x2538)},'bulkCreate':{'isArray':![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94['baseUrl']+_0x4f4f51(0x1ad3)},'getTags':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94['baseUrl']+_0x4f4f51(0x24a4)},'setTags':{'isArray':!![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94['baseUrl']+'api/cm/contacts/:id/tags'},'getHoppers':{'isArray':![],'method':'get','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x2029)},'getHopperHistories':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x2271)},'getHopperFinals':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94['baseUrl']+'api/cm/contacts/:id/hopper_finals'},'getJscriptySessions':{'isArray':![],'method':'get','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1aad)},'upload':{'isArray':![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94['baseUrl']+_0x4f4f51(0x1134)},'import':{'isArray':![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94['baseUrl']+_0x4f4f51(0x598)}}),_0x59cd94[_0x4f4f51(0x39f)]=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1ec3),{'id':_0x4f4f51(0x283)},{'update':{'method':'put'},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1236)},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94['baseUrl']+'api/cm/hopper/:id/clone','params':{'includeAll':'@includeAll'}},'getPreview':{'isArray':![],'method':'post','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x49e)},'getOpenContacts':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94['baseUrl']+_0x4f4f51(0x14b8)}}),_0x59cd94[_0x4f4f51(0xdd7)]=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1a9c),{'id':'@id'},{'update':{'method':'put'},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94['baseUrl']+_0x4f4f51(0x22b)},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x997),'params':{'includeAll':_0x4f4f51(0x1104)}}}),_0x59cd94['cmHopperFinal']=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0xef9),{'id':_0x4f4f51(0x283)},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x290a)},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/cm/hopper_final/:id/clone','params':{'includeAll':'@includeAll'}},'countContactsQueueCampaignHopperFinal':{'isArray':!![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94['baseUrl']+'api/cm/hopper_final/voice/queue/countAttributes/:id'},'countContactsIvrCampaignHopperFinal':{'isArray':!![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94['baseUrl']+_0x4f4f51(0xac7)},'moveContactsQueueCampaignHopperFinal':{'isArray':!![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94['baseUrl']+_0x4f4f51(0x1f57)},'moveContactsIvrCampaignHopperFinal':{'isArray':!![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x11c7)},'checkContactHopper':{'isArray':![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x102d)}}),_0x59cd94[_0x4f4f51(0x22e3)]=_0x5d61f2(_0x59cd94['baseUrl']+_0x4f4f51(0x117d),{'id':_0x4f4f51(0x283)},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0xfb8)},'clone':{'method':'post','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x2654),'params':{'includeAll':_0x4f4f51(0x1104)}}}),_0x59cd94[_0x4f4f51(0x14a9)]=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x11af),{'id':_0x4f4f51(0x283)},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1798)},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/cm/custom_fields/:id/clone','params':{'includeAll':_0x4f4f51(0x1104)}}}),_0x59cd94[_0x4f4f51(0x233c)]=_0x5d61f2(_0x59cd94['baseUrl']+_0x4f4f51(0x2639),{'id':_0x4f4f51(0x283)},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x4d2)},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x90f),'params':{'includeAll':_0x4f4f51(0x1104)}}}),_0x59cd94[_0x4f4f51(0xfc)]=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x19f),{'id':_0x4f4f51(0x283)},{'update':{'method':'put'},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/automations/describe'},'clone':{'method':'post','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x2221),'params':{'includeAll':_0x4f4f51(0x1104)}},'addConditions':{'isArray':![],'method':'post','url':_0x59cd94['baseUrl']+_0x4f4f51(0xde4)},'getConditions':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/automations/:id/conditions'},'addActions':{'isArray':![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1708)},'getActions':{'isArray':![],'method':'get','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1708)}}),_0x59cd94[_0x4f4f51(0x1ada)]=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x139a),{'id':'@id'},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94['baseUrl']+_0x4f4f51(0x1589)},'clone':{'method':'post','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x134f),'params':{'includeAll':_0x4f4f51(0x1104)}}}),_0x59cd94[_0x4f4f51(0x9e1)]=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0xd0b),{'id':'@id'},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/dispositions/describe'},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/dispositions/:id/clone','params':{'includeAll':_0x4f4f51(0x1104)}}}),_0x59cd94[_0x4f4f51(0x115f)]=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1bb9),{'id':'@id'},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':'get','url':_0x59cd94['baseUrl']+_0x4f4f51(0x22e2)},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x2529),'params':{'includeAll':_0x4f4f51(0x1104)}}}),_0x59cd94[_0x4f4f51(0x2765)]=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+'api/intervals/:id',{'id':'@id'},{'update':{'method':'put'},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x283a)},'clone':{'method':'post','url':_0x59cd94['baseUrl']+_0x4f4f51(0x78f),'params':{'includeAll':'@includeAll'}},'addInterval':{'isArray':![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0xada)},'getIntervals':{'isArray':![],'method':'get','url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/intervals/:id/sub_intervals'},'addIntervals':{'isArray':!![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1905)}}),_0x59cd94[_0x4f4f51(0x1e3e)]=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+'api/pauses/:id',{'id':_0x4f4f51(0x283)},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0xd19)},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x34d),'params':{'includeAll':_0x4f4f51(0x1104)}}}),_0x59cd94[_0x4f4f51(0x138f)]=_0x5d61f2(_0x59cd94['baseUrl']+_0x4f4f51(0x1d66),{'id':_0x4f4f51(0x283)},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/cdr/describe'},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94['baseUrl']+_0x4f4f51(0x24c2),'params':{'includeAll':_0x4f4f51(0x1104)}}}),_0x59cd94[_0x4f4f51(0x206f)]=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x467),{'id':_0x4f4f51(0x283)},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94['baseUrl']+_0x4f4f51(0x2ce)},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/voiceQueuesLog/:id/clone','params':{'includeAll':_0x4f4f51(0x1104)}}}),_0x59cd94[_0x4f4f51(0x4bf)]=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+'api/schedules/:id',{'id':'@id'},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x127f)},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/schedules/:id/clone','params':{'includeAll':_0x4f4f51(0x1104)}},'run':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x8fa)}}),_0x59cd94[_0x4f4f51(0x126d)]=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x22a6),{'id':_0x4f4f51(0x283)},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94['baseUrl']+_0x4f4f51(0x55b)},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/sounds/:id/clone','params':{'includeAll':_0x4f4f51(0x1104)}},'download':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x14e5),'responseType':_0x4f4f51(0x265f),'cache':![],'transformResponse':function(_0x5ef4e7,_0x34264d){const _0x264a6b=_0x4f4f51,_0x23e963=_0x34264d();return{'type':_0x23e963[_0x264a6b(0x22eb)],'length':_0x23e963[_0x264a6b(0xdb5)],'buffer':_0x5ef4e7};}},'delete':{'isArray':![],'method':'delete','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x22a6)}}),_0x59cd94['tag']=_0x5d61f2(_0x59cd94['baseUrl']+'api/tags/:id',{'id':_0x4f4f51(0x283)},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':'get','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1629)},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x69e),'params':{'includeAll':_0x4f4f51(0x1104)}}}),_0x59cd94[_0x4f4f51(0x1928)]=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x2884),{'id':'@id'},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/templates/describe'},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/templates/:id/clone','params':{'includeAll':_0x4f4f51(0x1104)}}}),_0x59cd94[_0x4f4f51(0xd57)]=_0x5d61f2(_0x59cd94['baseUrl']+_0x4f4f51(0xe34),{'id':_0x4f4f51(0x283)},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/triggers/describe'},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x263c),'params':{'includeAll':_0x4f4f51(0x1104)}},'addAllCondition':{'isArray':![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x890)},'addAnyCondition':{'isArray':![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x24d6)},'getAllConditions':{'isArray':![],'method':'get','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x890)},'getAnyConditions':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x24d6)},'addAction':{'isArray':![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1bcd)},'getActions':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1bcd)}}),_0x59cd94['variable']=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1f5b),{'id':_0x4f4f51(0x283)},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94['baseUrl']+_0x4f4f51(0x224f)},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x120d),'params':{'includeAll':_0x4f4f51(0x1104)}}}),_0x59cd94['integration']=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+'api/integrations/:id',{'id':_0x4f4f51(0x283)},{'update':{'method':'put'},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x2720)},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0xc17),'params':{'includeAll':'@includeAll'}}}),_0x59cd94[_0x4f4f51(0xe40)]=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1c40),{'id':_0x4f4f51(0x283)},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x36f)},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/integrations/reports/:id/clone','params':{'includeAll':'@includeAll'}}}),_0x59cd94[_0x4f4f51(0x12a5)]=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x256d),{'id':'@id'},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':'get','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x995)},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94['baseUrl']+'api/analytics/custom_reports/:id/clone','params':{'includeAll':_0x4f4f51(0x1104)}},'preview':{'isArray':!![],'method':'get','url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/analytics/custom_reports/:id/preview'},'run':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x10a7)},'query':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/analytics/custom_reports/:id/query'}}),_0x59cd94[_0x4f4f51(0x20fa)]=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1367),{'id':_0x4f4f51(0x283)},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x29a)},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94['baseUrl']+'api/analytics/default_reports/:id/clone','params':{'includeAll':_0x4f4f51(0x1104)}},'preview':{'isArray':!![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94['baseUrl']+_0x4f4f51(0x17f)},'run':{'isArray':![],'method':'get','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0xe8b)},'query':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94['baseUrl']+_0x4f4f51(0xcfe)}}),_0x59cd94[_0x4f4f51(0xc5d)]=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1a15),{'id':_0x4f4f51(0x283)},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':'get','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x10ce)},'clone':{'method':'post','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x2757),'params':{'includeAll':_0x4f4f51(0x1104)}},'download':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0xa8e),'responseType':_0x4f4f51(0x265f),'cache':![],'transformResponse':function(_0x17c4e4,_0x13282b){const _0x4c15b4=_0x4f4f51,_0x257169=_0x13282b();return{'type':_0x257169[_0x4c15b4(0x22eb)],'length':_0x257169[_0x4c15b4(0xdb5)],'buffer':_0x17c4e4};}}}),_0x59cd94[_0x4f4f51(0x1f01)]=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x2149),{'id':_0x4f4f51(0x283)},{'update':{'method':'put'},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0xb81)},'clone':{'method':'post','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1ef9),'params':{'includeAll':'@includeAll'}}}),_0x59cd94[_0x4f4f51(0x1f56)]=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+'api/analytics/field_reports/:id',{'id':_0x4f4f51(0x283)},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94['baseUrl']+_0x4f4f51(0x7f4)},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94['baseUrl']+'api/analytics/field_reports/:id/clone','params':{'includeAll':'@includeAll'}},'bulkCreate':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/analytics/field_reports/create_many','isArray':!![]},'bulkDestroy':{'method':'delete','url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/analytics/field_reports/destroy_many','isArray':!![]},'addFields':{'isArray':!![],'method':'post','url':_0x59cd94['baseUrl']+'api/analytics/field_reports/:id/create_many'}}),_0x59cd94[_0x4f4f51(0x888)]=_0x5d61f2(_0x59cd94['baseUrl']+_0x4f4f51(0x2435),{'id':_0x4f4f51(0x283)},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94['baseUrl']+_0x4f4f51(0x163a)},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1503),'params':{'includeAll':'@includeAll'}}}),_0x59cd94[_0x4f4f51(0x1fa4)]=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x154a),{'id':'@id'},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x18c5)},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94['baseUrl']+'api/integrations/salesforce/accounts/:id/clone','params':{'includeAll':_0x4f4f51(0x1104)}},'getConfigurations':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x2777)},'addConfiguration':{'isArray':![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/integrations/salesforce/accounts/:id/configurations'},'getFields':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94['baseUrl']+_0x4f4f51(0x702)}}),_0x59cd94[_0x4f4f51(0x1e6)]=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1d76),{'id':_0x4f4f51(0x283)},{'update':{'method':'put'},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x161c)},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x207e),'params':{'includeAll':_0x4f4f51(0x1104)}},'getFields':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0xafe)},'getSubjects':{'isArray':![],'method':'get','url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/integrations/salesforce/configurations/:id/subjects'},'getDescriptions':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94['baseUrl']+_0x4f4f51(0x1814)}}),_0x59cd94['intSalesforceField']=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x2fa),{'id':_0x4f4f51(0x283)},{'update':{'method':'put'},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94['baseUrl']+_0x4f4f51(0x1d5f)},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x2444),'params':{'includeAll':_0x4f4f51(0x1104)}}}),_0x59cd94[_0x4f4f51(0x1cf5)]=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x264c),{'id':'@id'},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x27fb)},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1e90),'params':{'includeAll':'@includeAll'}},'getConfigurations':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x7a8)},'addConfiguration':{'isArray':![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x7a8)},'getFields':{'isArray':![],'method':'get','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1d93)}}),_0x59cd94[_0x4f4f51(0x547)]=_0x5d61f2(_0x59cd94['baseUrl']+_0x4f4f51(0xc79),{'id':_0x4f4f51(0x283)},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':'get','url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/integrations/sugarcrm/configurations/describe'},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x734),'params':{'includeAll':_0x4f4f51(0x1104)}},'getFields':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x147d)},'getSubjects':{'isArray':![],'method':'get','url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/integrations/sugarcrm/configurations/:id/subjects'},'getDescriptions':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/integrations/sugarcrm/configurations/:id/descriptions'}}),_0x59cd94[_0x4f4f51(0x260e)]=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+'api/integrations/sugarcrm/fields/:id',{'id':_0x4f4f51(0x283)},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x11cf)},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94['baseUrl']+'api/integrations/sugarcrm/fields/:id/clone','params':{'includeAll':_0x4f4f51(0x1104)}}}),_0x59cd94[_0x4f4f51(0x139)]=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+'api/integrations/desk/accounts/:id',{'id':'@id'},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1e27)},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1fa7),'params':{'includeAll':_0x4f4f51(0x1104)}},'getConfigurations':{'isArray':![],'method':'get','url':_0x59cd94['baseUrl']+'api/integrations/desk/accounts/:id/configurations'},'addConfiguration':{'isArray':![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1bbe)},'getFields':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1bb)}}),_0x59cd94[_0x4f4f51(0x2778)]=_0x5d61f2(_0x59cd94['baseUrl']+'api/integrations/desk/configurations/:id',{'id':_0x4f4f51(0x283)},{'update':{'method':'put'},'describe':{'method':'get','url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/integrations/desk/configurations/describe'},'clone':{'method':'post','url':_0x59cd94['baseUrl']+_0x4f4f51(0xd5b),'params':{'includeAll':_0x4f4f51(0x1104)}},'getFields':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0xab4)},'getSubjects':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x16a0)},'getDescriptions':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94['baseUrl']+_0x4f4f51(0x1877)},'getTags':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0xff6)},'setTags':{'isArray':!![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0xff6)}}),_0x59cd94[_0x4f4f51(0x1073)]=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x2498),{'id':_0x4f4f51(0x283)},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/integrations/desk/fields/describe'},'clone':{'method':'post','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x25a5),'params':{'includeAll':_0x4f4f51(0x1104)}}}),_0x59cd94[_0x4f4f51(0x15d7)]=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+'api/integrations/zoho/accounts/:id',{'id':_0x4f4f51(0x283)},{'update':{'method':'put'},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/integrations/zoho/accounts/describe'},'clone':{'method':'post','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x2046),'params':{'includeAll':_0x4f4f51(0x1104)}},'getConfigurations':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/integrations/zoho/accounts/:id/configurations'},'addConfiguration':{'isArray':![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x11b9)},'getFields':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/integrations/zoho/accounts/:id/fields'}}),_0x59cd94['intZohoConfiguration']=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x2856),{'id':_0x4f4f51(0x283)},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x152c)},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1887),'params':{'includeAll':_0x4f4f51(0x1104)}},'getFields':{'isArray':![],'method':'get','url':_0x59cd94['baseUrl']+_0x4f4f51(0x1b72)},'getSubjects':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0xc00)},'getDescriptions':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94['baseUrl']+_0x4f4f51(0x1ed0)}}),_0x59cd94['intZohoField']=_0x5d61f2(_0x59cd94['baseUrl']+_0x4f4f51(0x1914),{'id':_0x4f4f51(0x283)},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94['baseUrl']+_0x4f4f51(0x23c2)},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94['baseUrl']+_0x4f4f51(0xb95),'params':{'includeAll':_0x4f4f51(0x1104)}}}),_0x59cd94[_0x4f4f51(0x2686)]=_0x5d61f2(_0x59cd94['baseUrl']+_0x4f4f51(0x18c6),{'id':_0x4f4f51(0x283)},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':'get','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x15d3)},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1ee6),'params':{'includeAll':'@includeAll'}},'getConfigurations':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/integrations/zendesk/accounts/:id/configurations'},'addConfiguration':{'isArray':![],'method':'post','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x20bc)},'getFields':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94['baseUrl']+_0x4f4f51(0x1752)}}),_0x59cd94['intZendeskConfiguration']=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1c6),{'id':_0x4f4f51(0x283)},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x2776)},'clone':{'method':'post','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0xb38),'params':{'includeAll':_0x4f4f51(0x1104)}},'getFields':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/integrations/zendesk/configurations/:id/fields'},'getSubjects':{'isArray':![],'method':'get','url':_0x59cd94['baseUrl']+_0x4f4f51(0x198a)},'getDescriptions':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94['baseUrl']+_0x4f4f51(0x20f3)},'getTags':{'isArray':![],'method':'get','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1ea3)},'setTags':{'isArray':!![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/integrations/zendesk/configurations/:id/tags'}}),_0x59cd94[_0x4f4f51(0xf5d)]=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x2827),{'id':_0x4f4f51(0x283)},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':'get','url':_0x59cd94['baseUrl']+_0x4f4f51(0x1a8c)},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94['baseUrl']+_0x4f4f51(0x1e4d),'params':{'includeAll':_0x4f4f51(0x1104)}}}),_0x59cd94[_0x4f4f51(0x21b2)]=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1eb8),{'id':'@id'},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':'get','url':_0x59cd94['baseUrl']+'api/integrations/freshdesk/accounts/describe'},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x11eb),'params':{'includeAll':_0x4f4f51(0x1104)}},'getConfigurations':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/integrations/freshdesk/accounts/:id/configurations'},'addConfiguration':{'isArray':![],'method':'post','url':_0x59cd94['baseUrl']+_0x4f4f51(0x1247)},'getFields':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/integrations/freshdesk/accounts/:id/fields'}}),_0x59cd94[_0x4f4f51(0x261e)]=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x862),{'id':_0x4f4f51(0x283)},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x497)},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x278e),'params':{'includeAll':_0x4f4f51(0x1104)}},'getFields':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0xd2e)},'getSubjects':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x13b3)},'getDescriptions':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0xd45)},'getTags':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x121a)},'setTags':{'isArray':!![],'method':'post','url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/integrations/freshdesk/configurations/:id/tags'}}),_0x59cd94['intFreshdeskField']=_0x5d61f2(_0x59cd94['baseUrl']+_0x4f4f51(0x78a),{'id':_0x4f4f51(0x283)},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/integrations/freshdesk/fields/describe'},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94['baseUrl']+_0x4f4f51(0x1692),'params':{'includeAll':_0x4f4f51(0x1104)}}}),_0x59cd94[_0x4f4f51(0xf8d)]=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x86d),{'id':'@id'},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x189f)},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x19b3),'params':{'includeAll':'@includeAll'}},'getConfigurations':{'isArray':![],'method':'get','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0xad9)},'addConfiguration':{'isArray':![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94['baseUrl']+_0x4f4f51(0xad9)},'getFields':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94['baseUrl']+_0x4f4f51(0x13e0)}}),_0x59cd94[_0x4f4f51(0x242d)]=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1f64),{'id':'@id'},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x20b0)},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/integrations/vtiger/configurations/:id/clone','params':{'includeAll':_0x4f4f51(0x1104)}},'getFields':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x4d3)},'getSubjects':{'isArray':![],'method':'get','url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/integrations/vtiger/configurations/:id/subjects'},'getDescriptions':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94['baseUrl']+_0x4f4f51(0x258c)}}),_0x59cd94['intVtigerField']=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0xf77),{'id':_0x4f4f51(0x283)},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x142a)},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x21cb),'params':{'includeAll':_0x4f4f51(0x1104)}}}),_0x59cd94[_0x4f4f51(0xbd9)]=_0x5d61f2(_0x59cd94['baseUrl']+_0x4f4f51(0x15be),{'id':_0x4f4f51(0x283)},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x30a)},'clone':{'method':'post','url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/integrations/servicenow/accounts/:id/clone','params':{'includeAll':'@includeAll'}},'getConfigurations':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1181)},'addConfiguration':{'isArray':![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1181)},'getFields':{'isArray':![],'method':'get','url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/integrations/servicenow/accounts/:id/fields'}}),_0x59cd94[_0x4f4f51(0x620)]=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1759),{'id':_0x4f4f51(0x283)},{'update':{'method':'put'},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x76b)},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/integrations/servicenow/configurations/:id/clone','params':{'includeAll':'@includeAll'}},'getFields':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x2327)},'getSubjects':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1380)},'getDescriptions':{'isArray':![],'method':'get','url':_0x59cd94[_0x4f4f51(0x1b1f)]+'integrations/servicenow/configurations/:id/descriptions'}}),_0x59cd94[_0x4f4f51(0x178c)]=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1949),{'id':'@id'},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94['baseUrl']+'api/integrations/servicenow/fields/describe'},'clone':{'method':'post','url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/integrations/servicenow/fields/:id/clone','params':{'includeAll':'@includeAll'}}}),_0x59cd94[_0x4f4f51(0xdb4)]=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x17db),{'id':_0x4f4f51(0x283)},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':'get','url':_0x59cd94['baseUrl']+_0x4f4f51(0x1739)},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/integrations/dynamics365/accounts/:id/clone','params':{'includeAll':_0x4f4f51(0x1104)}},'getConfigurations':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0xbef)},'addConfiguration':{'isArray':![],'method':'post','url':_0x59cd94['baseUrl']+_0x4f4f51(0xbef)},'getFields':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94['baseUrl']+_0x4f4f51(0x2407)}}),_0x59cd94[_0x4f4f51(0x1c8b)]=_0x5d61f2(_0x59cd94['baseUrl']+_0x4f4f51(0x1a6a),{'id':_0x4f4f51(0x283)},{'update':{'method':'put'},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/integrations/dynamics365/configurations/describe'},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94['baseUrl']+_0x4f4f51(0x1436),'params':{'includeAll':'@includeAll'}},'getFields':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/integrations/dynamics365/configurations/:id/fields'},'getSubjects':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x266b)},'getDescriptions':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'integrations/dynamics365/configurations/:id/descriptions'}}),_0x59cd94[_0x4f4f51(0x409)]=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x2026),{'id':'@id'},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94['baseUrl']+'api/integrations/dynamics365/fields/describe'},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1d09),'params':{'includeAll':_0x4f4f51(0x1104)}}}),_0x59cd94[_0x4f4f51(0x219f)]=_0x5d61f2(_0x59cd94['baseUrl']+_0x4f4f51(0x1b3f),{'id':'@id'},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/integrations/freshsales/accounts/describe'},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x2194),'params':{'includeAll':'@includeAll'}},'getConfigurations':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x868)},'addConfiguration':{'isArray':![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94['baseUrl']+_0x4f4f51(0x868)},'getFields':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x210c)}}),_0x59cd94['intFreshsalesConfiguration']=_0x5d61f2(_0x59cd94['baseUrl']+_0x4f4f51(0xef5),{'id':_0x4f4f51(0x283)},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':'get','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0xce6)},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/integrations/freshsales/configurations/:id/clone','params':{'includeAll':_0x4f4f51(0x1104)}},'getSubjects':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94['baseUrl']+'api/integrations/freshsales/configurations/:id/subjects'},'getDescriptions':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94['baseUrl']+_0x4f4f51(0x2030)},'getFields':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1a17)}}),_0x59cd94[_0x4f4f51(0x6f8)]=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0xbd8),{'id':_0x4f4f51(0x283)},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/integrations/freshsales/fields/describe'},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/integrations/freshsales/fields/:id/clone','params':{'includeAll':_0x4f4f51(0x1104)}}}),_0x59cd94[_0x4f4f51(0x1f0c)]=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+'api/networks/:id',{'id':_0x4f4f51(0x283)},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1695)},'clone':{'method':'post','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x286f),'params':{'includeAll':_0x4f4f51(0x1104)}}}),_0x59cd94[_0x4f4f51(0x11f2)]=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+'api/chat/reports/queue/:id',{'id':'@id'},{'update':{'method':'put'},'describe':{'method':'get','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0xec2)},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x26a0),'params':{'includeAll':_0x4f4f51(0x1104)}}}),_0x59cd94[_0x4f4f51(0x1841)]=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1f9c),{'id':_0x4f4f51(0x283)},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':'get','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x253d)},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0xafb),'params':{'includeAll':_0x4f4f51(0x1104)}},'getUsers':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1011)}}),_0x59cd94[_0x4f4f51(0x1641)]=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0xdd6),{'id':_0x4f4f51(0x283)},{'update':{'method':'put'},'describe':{'method':'get','url':_0x59cd94['baseUrl']+_0x4f4f51(0x1b01)},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/jscripty/answers/reports/:id/clone','params':{'includeAll':_0x4f4f51(0x1104)}}}),_0x59cd94['jscriptyQuestionReport']=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x733),{'id':_0x4f4f51(0x283)},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x232d)},'clone':{'method':'post','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1210),'params':{'includeAll':_0x4f4f51(0x1104)}}}),_0x59cd94[_0x4f4f51(0x468)]=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0xa10),{'id':_0x4f4f51(0x283)},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x9a7)},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1ee4),'params':{'includeAll':_0x4f4f51(0x1104)}},'getQuestions':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/jscripty/sessions/reports/:id/questions'}}),_0x59cd94[_0x4f4f51(0x64a)]=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1aff),{'id':_0x4f4f51(0x283)},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x22a4)},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94['baseUrl']+_0x4f4f51(0xd8e),'params':{'includeAll':_0x4f4f51(0x1104)}}}),_0x59cd94[_0x4f4f51(0x784)]=_0x5d61f2(_0x59cd94['baseUrl']+_0x4f4f51(0x100b),{'id':'@id'},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94['baseUrl']+'api/square/reports/describe'},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1e3b),'params':{'includeAll':_0x4f4f51(0x1104)}}}),_0x59cd94[_0x4f4f51(0x27c3)]=_0x5d61f2(_0x59cd94['baseUrl']+_0x4f4f51(0x1674),{'id':'@id'},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x23f6)},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94['baseUrl']+'api/square/details/reports/:id/clone','params':{'includeAll':_0x4f4f51(0x1104)}}}),_0x59cd94[_0x4f4f51(0x20c8)]=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+'api/jscripty/projects/:id',{'id':_0x4f4f51(0x283)},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1a46)},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94['baseUrl']+_0x4f4f51(0xeac),'params':{'includeAll':_0x4f4f51(0x1104)}},'getSessions':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x218b)},'getAnswers':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x181d)},'getSummary':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94['baseUrl']+_0x4f4f51(0xab0),'responseType':_0x4f4f51(0x265f),'cache':![],'transformResponse':function(_0x2bb8c5,_0x4f90c1){const _0x21d6a4=_0x4f4f51,_0x4f9f0f=_0x4f90c1();return{'type':_0x4f9f0f[_0x21d6a4(0x22eb)],'length':_0x4f9f0f['content-length'],'buffer':_0x2bb8c5};}}}),_0x59cd94[_0x4f4f51(0x15b9)]=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x849),{'id':'@id'},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x228e)},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0xf7b),'params':{'includeAll':_0x4f4f51(0x1104)}},'addLogo':{'isArray':![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0xa9f)},'addLogoLogin':{'isArray':![],'method':'post','url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/settings/:id/logo_login'},'getLogo':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0xa9f)},'getLogoLogin':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1fb8)},'gdpr':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x2035)},'addPreferred':{'isArray':![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94['baseUrl']+_0x4f4f51(0xb35)},'getPreferred':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0xb35)},'addFavicon':{'isArray':![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/settings/:id/favicon'},'getFavicon':{'isArray':![],'method':'get','url':_0x59cd94['baseUrl']+_0x4f4f51(0x27a5)},'getDate':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1f29)}}),_0x59cd94[_0x4f4f51(0xbf8)]=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+'api/square/odbc/:id',{'id':_0x4f4f51(0x283)},{'update':{'method':'put'},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x8c7)},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/square/odbc/:id/clone','params':{'includeAll':'@includeAll'}},'test':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x265d)}}),_0x59cd94[_0x4f4f51(0x9b1)]=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x199b),{'id':'@id'},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/square/projects/describe'},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94['baseUrl']+_0x4f4f51(0x2936),'params':{'includeAll':'@includeAll'}},'addUsers':{'isArray':!![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0xb67)},'removeUsers':{'isArray':![],'method':_0x4f4f51(0x1fac),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0xb67)},'getUsers':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94['baseUrl']+_0x4f4f51(0xb67)}}),_0x59cd94[_0x4f4f51(0x2222)]=_0x5d61f2(_0x59cd94['baseUrl']+_0x4f4f51(0x198c),{'id':'@id'},{'update':{'method':'put'},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1ac7)},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1cbd),'params':{'includeAll':'@includeAll'}},'download':{'isArray':![],'method':'get','url':_0x59cd94['baseUrl']+_0x4f4f51(0x1d44),'responseType':_0x4f4f51(0x265f),'cache':![],'transformResponse':function(_0xdd65d1,_0x4e1139){const _0x3afa19=_0x4f4f51,_0x1b3899=_0x4e1139();return{'type':_0x1b3899[_0x3afa19(0x22eb)],'length':_0x1b3899[_0x3afa19(0xdb5)],'buffer':_0xdd65d1};}}}),_0x59cd94[_0x4f4f51(0xc29)]=_0x5d61f2(_0x59cd94['baseUrl']+_0x4f4f51(0x2413),{'id':_0x4f4f51(0x283)},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1b24)},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0xc6f),'params':{'includeAll':_0x4f4f51(0x1104)}}}),_0x59cd94['team']=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+'api/teams/:id',{'id':_0x4f4f51(0x283)},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1054)},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x2651),'params':{'includeAll':_0x4f4f51(0x1104)}},'getQueues':{'isArray':!![],'method':'get','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x23ab)},'addQueues':{'isArray':!![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94['baseUrl']+_0x4f4f51(0x23ab)},'removeQueues':{'isArray':![],'method':_0x4f4f51(0x1fac),'url':_0x59cd94['baseUrl']+_0x4f4f51(0x23ab)},'addAgents':{'isArray':!![],'method':'post','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1008)},'removeAgents':{'isArray':![],'method':_0x4f4f51(0x1fac),'url':_0x59cd94['baseUrl']+_0x4f4f51(0x1008)},'getAgents':{'isArray':![],'method':'get','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1008)}}),_0x59cd94['license']=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x183e),{'id':_0x4f4f51(0x283)},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/license/describe'},'clone':{'method':'post','url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/license/:id/clone','params':{'includeAll':_0x4f4f51(0x1104)}}}),_0x59cd94[_0x4f4f51(0x8dc)]=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0xe3d),{'id':_0x4f4f51(0x283)},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1da8)},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94['baseUrl']+'api/campaigns/:id/clone','params':{'includeAll':'@includeAll'}},'getHoppers':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x873)},'getHopperHistories':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94['baseUrl']+_0x4f4f51(0x263e)},'getHopperFinals':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x137d)},'getHopperBlacks':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94['baseUrl']+_0x4f4f51(0x1d68)},'getLists':{'isArray':![],'method':'get','url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/campaigns/:id/lists'},'addLists':{'isArray':!![],'method':'post','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x15d8)},'removeLists':{'isArray':!![],'method':'delete','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x15d8)},'getBlackLists':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x9ed)},'addBlackLists':{'isArray':!![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x9ed)},'removeBlackLists':{'isArray':!![],'method':_0x4f4f51(0x1fac),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x9ed)}}),_0x59cd94[_0x4f4f51(0x10fd)]=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1f5d),{'id':_0x4f4f51(0x283)},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x94c)},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x101e),'params':{'includeAll':_0x4f4f51(0x1104)}}}),_0x59cd94[_0x4f4f51(0x2527)]=_0x5d61f2(_0x59cd94['baseUrl']+_0x4f4f51(0x2523),{'id':'@id'},{'update':{'method':'put'},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x23af)},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/attachments/:id/clone','params':{'includeAll':'@includeAll'}},'download':{'isArray':![],'method':'get','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0xd8d),'responseType':'arraybuffer','cache':![],'transformResponse':function(_0x1bfa23,_0x327663){const _0x4d1e89=_0x4f4f51,_0x494416=_0x327663();return{'type':_0x494416[_0x4d1e89(0x22eb)],'length':_0x494416[_0x4d1e89(0xdb5)],'buffer':_0x1bfa23};}}}),_0x59cd94[_0x4f4f51(0x5f5)]=_0x5d61f2(_0x59cd94['baseUrl']+'api/plugins/:id',{'id':_0x4f4f51(0x283)},{'update':{'method':'put'},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x28eb)},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x28cf),'params':{'includeAll':'@includeAll'}},'download':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/plugins/:id/download','responseType':_0x4f4f51(0x265f),'cache':![],'transformResponse':function(_0x3da656,_0xa9def){const _0x348709=_0x4f4f51,_0xadfb97=_0xa9def();return{'type':_0xadfb97[_0x348709(0x22eb)],'length':_0xadfb97['content-length'],'buffer':_0x3da656};}},'upload':{'isArray':![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0xaf5)},'delete':{'isArray':![],'method':_0x4f4f51(0x1fac),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x27f0)},'webhookGet':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1545)},'webhookPost':{'isArray':![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1545)}}),_0x59cd94[_0x4f4f51(0x1000)]=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0xe25),{'id':_0x4f4f51(0x283)},{'update':{'method':'put'},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1f09)},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x614),'params':{'includeAll':'@includeAll'}}}),_0x59cd94[_0x4f4f51(0x16ce)]=_0x5d61f2(_0x59cd94['baseUrl']+_0x4f4f51(0x1924),{'id':'@id'},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/chat/reports/transfer/describe'},'clone':{'method':'post','url':_0x59cd94['baseUrl']+'api/chat/reports/transfer/:id/clone','params':{'includeAll':_0x4f4f51(0x1104)}}}),_0x59cd94[_0x4f4f51(0x377)]=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x20c7),{'id':_0x4f4f51(0x283)},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':'get','url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/fax/reports/transfer/describe'},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0xd76),'params':{'includeAll':_0x4f4f51(0x1104)}}}),_0x59cd94[_0x4f4f51(0xdd1)]=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x2744),{'id':_0x4f4f51(0x283)},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1f98)},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/openchannel/reports/transfer/:id/clone','params':{'includeAll':_0x4f4f51(0x1104)}}}),_0x59cd94[_0x4f4f51(0xa21)]=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+'api/sms/reports/transfer/:id',{'id':'@id'},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x15b6)},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/sms/reports/transfer/:id/clone','params':{'includeAll':_0x4f4f51(0x1104)}}}),_0x59cd94['cmList']=_0x5d61f2(_0x59cd94['baseUrl']+'api/cm/lists/:id',{'id':_0x4f4f51(0x283)},{'update':{'method':'put'},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x14f6)},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x2052),'params':{'includeAll':'@includeAll'}},'addDisposition':{'isArray':![],'method':'post','url':_0x59cd94['baseUrl']+_0x4f4f51(0x1585)},'getDispositions':{'isArray':![],'method':'get','url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/cm/lists/:id/dispositions'},'removeDispositions':{'isArray':![],'method':_0x4f4f51(0x1fac),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1585)},'addContacts':{'isArray':![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x25a6)},'getContacts':{'isArray':!![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94['baseUrl']+_0x4f4f51(0x25a6)},'getContactsCsv':{'isArray':![],'method':'get','url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/cm/lists/:id/contacts/csv','responseType':_0x4f4f51(0x265f),'cache':![],'transformResponse':function(_0x18ba08,_0x171742){const _0x30a614=_0x4f4f51,_0x4c2092=_0x171742();return{'type':_0x4c2092[_0x30a614(0x22eb)],'length':_0x4c2092[_0x30a614(0xdb5)],'buffer':_0x18ba08};}},'addCustomField':{'isArray':![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94['baseUrl']+_0x4f4f51(0x130f)},'getCustomFields':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x130f)},'addAgents':{'isArray':!![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94['baseUrl']+_0x4f4f51(0x128c)},'removeAgents':{'isArray':![],'method':_0x4f4f51(0x1fac),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/cm/lists/:id/users'},'getAgents':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94['baseUrl']+_0x4f4f51(0x128c)}}),_0x59cd94['voicePrefix']=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1c4e),{'id':'@id'},{'update':{'method':'put'},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0xee2)},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0xb31),'params':{'includeAll':'@includeAll'}},'addAgents':{'isArray':!![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1283)},'removeAgents':{'isArray':![],'method':_0x4f4f51(0x1fac),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1283)},'getAgents':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1283)}}),_0x59cd94[_0x4f4f51(0x26b6)]=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+'api/userProfiles/:id',{'id':_0x4f4f51(0x283)},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x23d4)},'clone':{'method':'post','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x21d4),'params':{'includeAll':'@includeAll'}},'addSections':{'isArray':!![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/userProfiles/:id/sections'},'removeSections':{'isArray':![],'method':'delete','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x818)},'getSections':{'isArray':!![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x818)},'addResources':{'isArray':!![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0xaa2)},'removeResources':{'isArray':![],'method':_0x4f4f51(0x1fac),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0xaa2)},'getResources':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/userProfiles/:id/resources'}}),_0x59cd94[_0x4f4f51(0x1366)]=_0x5d61f2(_0x59cd94['baseUrl']+_0x4f4f51(0x16b2),{'id':_0x4f4f51(0x283)},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94['baseUrl']+'api/userProfile/sections/describe'},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0xb1c),'params':{'includeAll':_0x4f4f51(0x1104)}}}),_0x59cd94['userProfileResource']=_0x5d61f2(_0x59cd94['baseUrl']+_0x4f4f51(0x172d),{'id':_0x4f4f51(0x283)},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94['baseUrl']+_0x4f4f51(0x17ce)},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x6c2),'params':{'includeAll':'@includeAll'}}}),_0x59cd94['notification']=_0x5d61f2(_0x59cd94['baseUrl']+_0x4f4f51(0x323),{'id':_0x4f4f51(0x283)},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x24f1)},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1550),'params':{'includeAll':_0x4f4f51(0x1104)}},'sendNotification':{'isArray':![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94['baseUrl']+'api/notifications/'}}),_0x59cd94[_0x4f4f51(0x815)]=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x18e4),{'id':'@id'},{'update':{'method':'put'},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/whatsapp/accounts/describe'},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/whatsapp/accounts/:id/clone','params':{'includeAll':_0x4f4f51(0x1104)}},'addDisposition':{'isArray':![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94['baseUrl']+_0x4f4f51(0x17ad)},'getDispositions':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x17ad)},'removeDispositions':{'isArray':![],'method':_0x4f4f51(0x1fac),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x17ad)},'addAnswer':{'isArray':![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/whatsapp/accounts/:id/canned_answers'},'getAnswers':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x14bb)},'removeAnswers':{'isArray':![],'method':_0x4f4f51(0x1fac),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x14bb)},'addAgents':{'isArray':!![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94['baseUrl']+_0x4f4f51(0x1f26)},'removeAgents':{'isArray':![],'method':_0x4f4f51(0x1fac),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1f26)},'getAgents':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1f26)},'addApplications':{'isArray':![],'method':'post','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x2302)},'getApplications':{'isArray':![],'method':'get','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x2302)},'notify':{'isArray':![],'method':'post','url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/whatsapp/accounts/:id/notify'},'send':{'isArray':![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94['baseUrl']+_0x4f4f51(0x21f2)}}),_0x59cd94[_0x4f4f51(0x88f)]=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x167c),{'id':_0x4f4f51(0x283)},{'update':{'method':'put'},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1db7)},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94['baseUrl']+'api/whatsapp/applications/:id/clone','params':{'includeAll':_0x4f4f51(0x1104)}}}),_0x59cd94[_0x4f4f51(0x257a)]=_0x5d61f2(_0x59cd94['baseUrl']+_0x4f4f51(0x1f1b),{'id':'@id'},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':'get','url':_0x59cd94['baseUrl']+_0x4f4f51(0x13b9)},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/whatsapp/interactions/:id/clone','params':{'includeAll':_0x4f4f51(0x1104)}},'addMessage':{'isArray':![],'method':'post','url':_0x59cd94['baseUrl']+_0x4f4f51(0x565)},'getMessages':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94['baseUrl']+'api/whatsapp/interactions/:id/messages'},'addTags':{'isArray':![],'method':'post','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x2907)},'removeTags':{'isArray':![],'method':'delete','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x2907)},'download':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1842),'responseType':_0x4f4f51(0x265f),'cache':![],'transformResponse':function(_0x350d69,_0x33fcdb){const _0x282d5c=_0x4f4f51,_0x2412db=_0x33fcdb();return{'type':_0x2412db['content-type'],'length':_0x2412db[_0x282d5c(0xdb5)],'buffer':_0x350d69};}}}),_0x59cd94[_0x4f4f51(0x812)]=_0x5d61f2(_0x59cd94['baseUrl']+_0x4f4f51(0x1bbc),{'id':_0x4f4f51(0x283)},{'update':{'method':'put'},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94['baseUrl']+_0x4f4f51(0x223e)},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x4ba),'params':{'includeAll':_0x4f4f51(0x1104)}},'accept':{'isArray':![],'method':'put','url':_0x59cd94['baseUrl']+_0x4f4f51(0x228d)},'reject':{'isArray':![],'method':_0x4f4f51(0x17b7),'url':_0x59cd94['baseUrl']+'api/whatsapp/messages/:id/reject'},'status':{'isArray':![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/whatsapp/messages/:id/status'}}),_0x59cd94[_0x4f4f51(0x448)]=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0xaef),{'id':'@id'},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/whatsapp/reports/queue/describe'},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94['baseUrl']+'api/whatsapp/reports/queue/:id/clone','params':{'includeAll':_0x4f4f51(0x1104)}}}),_0x59cd94[_0x4f4f51(0xa2a)]=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1b99),{'id':_0x4f4f51(0x283)},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':'get','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1de0)},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x2948),'params':{'includeAll':'@includeAll'}}}),_0x59cd94[_0x4f4f51(0x1b3b)]=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0xbb3),{'id':_0x4f4f51(0x283)},{'update':{'method':'put'},'describe':{'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x1f0e)},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x22c9),'params':{'includeAll':_0x4f4f51(0x1104)}},'getMembers':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x2809)},'getTeams':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/whatsapp/queues/:id/teams'},'addTeams':{'isArray':!![],'method':'post','url':_0x59cd94['baseUrl']+_0x4f4f51(0x159e)},'removeTeams':{'isArray':![],'method':'delete','url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/whatsapp/queues/:id/teams'},'addAgents':{'isArray':!![],'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x17a3)},'removeAgents':{'isArray':![],'method':'delete','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x17a3)},'getAgents':{'isArray':![],'method':_0x4f4f51(0x16b4),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x17a3)}}),_0x59cd94[_0x4f4f51(0x605)]=_0x5d61f2(_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x2901),{'id':_0x4f4f51(0x283)},{'update':{'method':_0x4f4f51(0x17b7)},'describe':{'method':'get','url':_0x59cd94[_0x4f4f51(0x1b1f)]+_0x4f4f51(0x279a)},'clone':{'method':_0x4f4f51(0x1daf),'url':_0x59cd94[_0x4f4f51(0x1b1f)]+'api/cloudProviders/:id/clone','params':{'includeAll':_0x4f4f51(0x1104)}}}),_0x59cd94;}const _0x17141b=_0x376edd;;_0x18e3bf[_0x313a4d(0x11c2)]=[_0x313a4d(0x24d4),_0x313a4d(0x695),_0x313a4d(0x12df)];function _0x18e3bf(_0xedb226,_0x10a764,_0x4cf1bb){const _0x21ae26=_0x313a4d;_0x4cf1bb[_0x21ae26(0x270c)]({'position':_0x21ae26(0x420),'sound':![],'html':!![],'theme':'material'}),_0xedb226[_0x21ae26(0x949)](_0x21ae26(0x15cb),{'urlTemplate':'{part}/i18n/{lang}.json'}),_0xedb226['preferredLanguage']('en'),_0x10a764[_0x21ae26(0x15bf)](_0x21ae26(0x1bd9)),_0xedb226[_0x21ae26(0x1aaa)](null);}const _0x3b1600=_0x18e3bf;;_0x503b35[_0x313a4d(0x11c2)]=[_0x313a4d(0x1053),_0x313a4d(0x214b),_0x313a4d(0x23df),_0x313a4d(0x247f),_0x313a4d(0x1fe4)];function _0x503b35(_0x32470e,_0x1294b3,_0x138219,_0x5c4a0d,_0x2373ec){const _0x5dbc4e=_0x313a4d,_0x405cab=this;_0x405cab['themes']=_0x32470e[_0x5dbc4e(0x122e)],_0x405cab[_0x5dbc4e(0x26cc)]=_0x5dbc4e(0x1666);const _0x1bbecc=['ar','fa','he'],_0x5df568=_0x138219[_0x5dbc4e(0x16b4)](_0x5dbc4e(0x8d6));_0x5df568&&(_0x1294b3['use'](_0x5df568),_0x1bbecc[_0x5dbc4e(0x172b)](_0x5df568)>=0x0&&_0x5c4a0d['setting'][_0x5dbc4e(0x16b4)]({'id':0x1})['$promise'][_0x5dbc4e(0x146b)](function(_0x13ba23){const _0x179495=_0x5dbc4e;_0x13ba23&&_0x13ba23[_0x179495(0x2929)]&&(_0x405cab[_0x179495(0x26cc)]=_0x179495(0xad5));})['catch'](function(_0x19e565){const _0x3200fc=_0x5dbc4e;_0x19e565&&_0x2373ec[_0x3200fc(0x1980)]({'title':_0x3200fc(0x13e3),'msg':_0x19e565[_0x3200fc(0x524)]?_0x19e565['data'][_0x3200fc(0x7fd)]||_0x19e565[_0x3200fc(0x7fd)]||_0x19e565:_0x19e565[_0x3200fc(0x7fd)]||_0x19e565});}));}const _0xabe46b=_0x503b35;;_0x2e3f54[_0x313a4d(0x11c2)]=[_0x313a4d(0x214b)],_0x2311a0[_0x313a4d(0x11c2)]=['$filter',_0x313a4d(0x214b)];function _0x2311a0(_0x317d08,_0x14546e){return function(_0x16f676){const _0x375f66=a0_0x3bb9,_0x3254eb=new Date(),_0x103cb8=new Date(_0x16f676);if(_0x103cb8[_0x375f66(0xec3)]()===_0x3254eb['getDate']()&&_0x103cb8['getMonth']()===_0x3254eb['getMonth']()&&_0x103cb8[_0x375f66(0x1d3)]()===_0x3254eb[_0x375f66(0x1d3)]())return _0x317d08(_0x375f66(0x1a10))(_0x103cb8['getTime'](),_0x375f66(0x269f));if(_0x103cb8[_0x375f66(0xec3)]()===_0x3254eb[_0x375f66(0xec3)]()-0x1&&_0x103cb8[_0x375f66(0x2185)]()===_0x3254eb[_0x375f66(0x2185)]()&&_0x103cb8[_0x375f66(0x1d3)]()===_0x3254eb['getFullYear']())return _0x14546e[_0x375f66(0xde)](_0x375f66(0x16fc))+'\x20'+_0x317d08(_0x375f66(0x1a10))(_0x103cb8[_0x375f66(0x188f)](),_0x375f66(0x269f));return _0x317d08(_0x375f66(0x1a10))(_0x103cb8['getTime'](),_0x375f66(0x1d79));};}function _0x32ac7e(){return function(_0x3e4d18,_0x704072,_0x538fc4){const _0x25fc5c={};let _0xe9f734=0x0,_0x5ec722;for(_0x5ec722 in _0x3e4d18){_0xe9f734>=_0x538fc4&&(_0x25fc5c[_0x5ec722]=_0x3e4d18[_0x5ec722]);if(++_0xe9f734===_0x538fc4+_0x704072)break;}return _0x25fc5c;};}function _0x364b4a(){const _0x5884e5=_0x313a4d,_0x515aa0=[{'value':_0x5884e5(0x21aa)},{'value':_0x5884e5(0x1ac5)},{'value':_0x5884e5(0x48f)},{'value':'apr'},{'value':_0x5884e5(0x1e99)},{'value':_0x5884e5(0x1eca)},{'value':_0x5884e5(0x445)},{'value':'aug'},{'value':'sep'},{'value':_0x5884e5(0x1190)},{'value':_0x5884e5(0x12ed)},{'value':'dec'}],_0x3338a8=[{'value':'1'},{'value':'2'},{'value':'3'},{'value':'4'},{'value':'5'},{'value':'6'},{'value':'7'},{'value':'8'},{'value':'9'},{'value':'10'},{'value':'11'},{'value':'12'}],_0x31267b=[{'value':_0x5884e5(0xd66)},{'value':_0x5884e5(0x1b95)},{'value':_0x5884e5(0x1a1a)},{'value':_0x5884e5(0x26ea)},{'value':_0x5884e5(0x2230)},{'value':_0x5884e5(0x1748)},{'value':_0x5884e5(0x826)}],_0x196088=[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 _0x515aa0;},'getMonthNumber':function(){return _0x3338a8;},'getDaysOfWeek':function(){return _0x31267b;},'getDaysOfMonth':function(){return _0x196088;}};}function _0x2e3f54(_0x32477c){const _0x275dba=_0x313a4d;return{'Today':_0x32477c[_0x275dba(0xde)](_0x275dba(0x96f)),'Yesterday':_0x32477c[_0x275dba(0xde)](_0x275dba(0x16fc)),'This\x20Week':_0x32477c[_0x275dba(0xde)]('DASHBOARDS.THIS_WEEK'),'Last\x20Week':_0x32477c[_0x275dba(0xde)](_0x275dba(0xe68)),'This\x20Month':_0x32477c[_0x275dba(0xde)](_0x275dba(0x22db)),'Last\x20Month':_0x32477c[_0x275dba(0xde)](_0x275dba(0xf86)),'This\x20Year':_0x32477c[_0x275dba(0xde)](_0x275dba(0x83c)),'Last\x20Year':_0x32477c[_0x275dba(0xde)](_0x275dba(0x1846)),'January':_0x32477c[_0x275dba(0xde)](_0x275dba(0x1bc)),'February':_0x32477c[_0x275dba(0xde)](_0x275dba(0x2561)),'March':_0x32477c['instant']('DASHBOARDS.MARCH'),'April':_0x32477c['instant'](_0x275dba(0x2701)),'May':_0x32477c['instant'](_0x275dba(0x1d7b)),'June':_0x32477c[_0x275dba(0xde)](_0x275dba(0x848)),'July':_0x32477c[_0x275dba(0xde)](_0x275dba(0x1413)),'August':_0x32477c[_0x275dba(0xde)]('DASHBOARDS.AUGUST'),'September':_0x32477c[_0x275dba(0xde)]('DASHBOARDS.SEPTEMBER'),'October':_0x32477c[_0x275dba(0xde)](_0x275dba(0x1721)),'November':_0x32477c[_0x275dba(0xde)](_0x275dba(0x23a5)),'December':_0x32477c[_0x275dba(0xde)](_0x275dba(0x210b)),'Mon':_0x32477c[_0x275dba(0xde)](_0x275dba(0xc1c)),'Tue':_0x32477c[_0x275dba(0xde)](_0x275dba(0x115b)),'Wed':_0x32477c[_0x275dba(0xde)](_0x275dba(0x199d)),'Thu':_0x32477c[_0x275dba(0xde)](_0x275dba(0x16ab)),'Fri':_0x32477c[_0x275dba(0xde)](_0x275dba(0x1d0d)),'Sat':_0x32477c['instant'](_0x275dba(0x1fa3)),'Sun':_0x32477c['instant'](_0x275dba(0xe45))};}function _0x5c1c49(){return{'enqueue':function(_0x250cdf){const _0x30136c=a0_0x3bb9;this[_0x30136c(0x2537)]=this[_0x30136c(0x2537)]?this['tail'][_0x30136c(0x1ec6)](_0x250cdf):_0x250cdf();}};};const _0x21a2e4=_0x4acfac['p']+_0x313a4d(0x6ab);;;const _0x31c894=_0x4acfac['p']+_0x313a4d(0x4db);;const _0x1c1df9=_0x4acfac['p']+'src/js/modules/navigation/layouts/vertical-navigation/navigation.html/navigation.html';;const _0x2d9fae=_0x4acfac['p']+_0x313a4d(0x55f);;;const _0x397d35=_0x4acfac['p']+_0x313a4d(0xa38);;;const _0x236ab9=_0x4acfac['p']+'src/js/modules/footer/layouts/vertical-navigation/footer.html/footer.html';;;const _0x24da40=_0x4acfac['p']+_0x313a4d(0x1465);;_0x37718d[_0x313a4d(0x11c2)]=[_0x313a4d(0x921),_0x313a4d(0x677),_0x313a4d(0x1eb5)];function _0x37718d(_0x319697,_0x4e3016,_0xf6667e){const _0x4c1f5a=_0x313a4d;_0xf6667e[_0x4c1f5a(0xc3c)](!![]),_0x4e3016['otherwise'](_0x4c1f5a(0x1a8a));let _0x19f471;angular[_0x4c1f5a(0x24f2)]([_0x4c1f5a(0x1633)])[_0x4c1f5a(0x1e21)]([_0x4c1f5a(0x23df),function(_0x59d42f){_0x19f471=_0x59d42f;}]);const _0x95447e=_0x19f471[_0x4c1f5a(0x16b4)](_0x4c1f5a(0x1151))||'verticalNavigation',_0x5a2b66={'verticalNavigation':{'main':_0x28613b,'toolbar':_0x21a2e4,'navigation':_0x1c1df9,'header':_0x397d35,'footer':_0x236ab9},'verticalNavigationFullwidthToolbar':{'main':_0xf74b74,'toolbar':'','navigation':_0x1c1df9},'verticalNavigationFullwidthToolbar2':{'main':_0x4bd0ac,'toolbar':'','navigation':_0x2d9fae},'horizontalNavigation':{'main':_0x2a13c5,'toolbar':'','navigation':_0x31c894},'contentOnly':{'main':_0x31e320,'toolbar':'','navigation':''},'contentWithToolbar':{'main':_0x49ff6b,'toolbar':'','navigation':''}};_0x319697['state'](_0x4c1f5a(0x1873),{'abstract':!![],'views':{'main@':{'templateUrl':_0x5a2b66[_0x95447e]['main'],'controller':'MainController\x20as\x20vm'},'toolbar@app':{'templateUrl':_0x5a2b66[_0x95447e][_0x4c1f5a(0x1f81)],'controller':_0x4c1f5a(0x20dc)},'navigation@app':{'templateUrl':_0x5a2b66[_0x95447e][_0x4c1f5a(0x145c)],'controller':_0x4c1f5a(0x200b)},'quickPanel@app':{'templateUrl':_0x24da40,'controller':'QuickPanelController\x20as\x20vm'},'header@app':{'templateUrl':_0x5a2b66[_0x95447e][_0x4c1f5a(0x41f)],'controller':_0x4c1f5a(0x66e)},'footer@app':{'templateUrl':_0x5a2b66[_0x95447e][_0x4c1f5a(0x473)],'controller':_0x4c1f5a(0x914)}},'resolve':{'license':[_0x4c1f5a(0x362),function(_0x39ce23){const _0x3f8148=_0x4c1f5a;return _0x39ce23[_0x3f8148(0x2922)](_0x3f8148(0x1d2));}],'setting':[_0x4c1f5a(0x362),function(_0x895993){const _0xfd8487=_0x4c1f5a;return _0x895993[_0xfd8487(0x2922)](_0xfd8487(0x20b),{'id':0x1});}]}});}const _0x32076e=_0x37718d;;_0xa33493['$inject']=[_0x313a4d(0x141e),_0x313a4d(0xc5f)];function _0xa33493(_0x20f292,_0x1fe2b0){const _0x4ff3c4=_0x313a4d;_0x20f292[_0x4ff3c4(0x1420)]({},_0x1fe2b0['showLoadingIndicator']),_0x20f292[_0x4ff3c4(0x3c1)]({},_0x1fe2b0[_0x4ff3c4(0x1cc)]);}const _0x3aedd6=_0xa33493;var _0x5b8173=_0x4acfac(0x15ef);;_0x3a92c6[_0x313a4d(0x11c2)]=[_0x313a4d(0x1fc2),'Auth'];function _0x3a92c6(_0x68f886,_0x47c215){let _0xd9231d;function _0x21fdf4(){const _0x5a8a37=a0_0x3bb9,_0xbba664=!![]?window['io']:0x0,_0x146508={'query':_0x5a8a37(0x1f2f)+_0x47c215['getCurrentUser']()['id'],'transports':[_0x5a8a37(0x14a7),_0x5a8a37(0x1b0b)]};_0xd9231d=!![]?_0xbba664(_0x146508):0x0;}return{'connect':_0x21fdf4,'on':function(_0x2117a0,_0x1bda81){_0x1bda81=_0x1bda81||angular['noop'],!_0xd9231d&&_0x21fdf4(),_0xd9231d['on'](_0x2117a0,function(){const _0xd77ba7=a0_0x3bb9,_0xf7175=arguments;_0x68f886[_0xd77ba7(0x6fc)](function(){const _0x2efdb8=_0xd77ba7;_0x1bda81[_0x2efdb8(0x1c3c)](_0xd9231d,_0xf7175);});});},'onWithoutApply':function(_0xc5df7e,_0xbc147c){_0xbc147c=_0xbc147c||angular['noop'],!_0xd9231d&&_0x21fdf4(),_0xd9231d['on'](_0xc5df7e,function(){const _0x371462=a0_0x3bb9;_0xbc147c[_0x371462(0x1c3c)](_0xd9231d,arguments);});},'emit':function(_0x2570ac,_0x15f6ed,_0x47694d){const _0x2663cd=a0_0x3bb9;_0x47694d=_0x47694d||angular[_0x2663cd(0x309)],!_0xd9231d&&_0x21fdf4(),_0xd9231d[_0x2663cd(0x165a)](_0x2570ac,_0x15f6ed,function(){const _0x390a12=arguments;_0x68f886['$apply'](function(){const _0x4a215e=a0_0x3bb9;_0x47694d[_0x4a215e(0x1c3c)](_0xd9231d,_0x390a12);});});},'removeAllListeners':function(_0x141d40){const _0x31fbf8=a0_0x3bb9;!_0xd9231d&&_0x21fdf4(),_0xd9231d[_0x31fbf8(0x1c5f)](_0x141d40);},'removeListener':function(_0x26d008,_0x573d10){!_0xd9231d&&_0x21fdf4(),_0xd9231d['removeListener'](_0x26d008,_0x573d10);},'disconnect':function(){const _0x2b7c54=a0_0x3bb9;!_0xd9231d&&_0x21fdf4(),_0xd9231d[_0x2b7c54(0x194a)]();}};}const _0x3daa89=_0x3a92c6;;_0x3acbf7[_0x313a4d(0x11c2)]=['$scope',_0x313a4d(0x1fc2),_0x313a4d(0x214b),_0x313a4d(0x1f9a),_0x313a4d(0x2161),'Auth','toasty',_0x313a4d(0x2690),_0x313a4d(0x247f),_0x313a4d(0x15b9)];function _0x3acbf7(_0x2fc36c,_0x573ef7,_0x4ff74c,_0x2218af,_0x1df849,_0x4f4300,_0x19ca9e,_0x134e48,_0x417528,_0x5cd43c){const _0x3f4ccb=_0x313a4d,_0x952ac9=this;_0x19ca9e['clear']();function _0x156f3a(){const _0x343c3e=a0_0x3bb9;return _0x4f4300[_0x343c3e(0xb12)]()&&_0x4f4300[_0x343c3e(0x23e0)]('agent');}_0x952ac9['isAgent']=_0x156f3a;function _0x14b8c3(_0x5bcf5c,_0xdb7bb2){const _0x588736=a0_0x3bb9;return{'id':_0x5bcf5c,'title':_0xdb7bb2[_0x588736(0x19eb)]||_0x588736(0x19f9),'state':_0x588736(0x993),'stateParams':_0xdb7bb2,'weight':0x2,'hidden':function(){const _0x23ce00=_0x588736;return _0x4f4300['hasRole'](_0x23ce00(0x1755))||!_0x4f4300[_0x23ce00(0x2434)](_0x5bcf5c)&&!_0x4f4300['hasRole'](_0x23ce00(0x174b));}};}function _0x4a0ad2(_0x1daa49,_0x3a3b82){const _0x42a463=a0_0x3bb9;return{'id':_0x1daa49,'title':_0x3a3b82[_0x42a463(0x19eb)]||_0x42a463(0x19f9),'state':_0x42a463(0x9ce),'stateParams':_0x3a3b82,'weight':0x2,'hidden':function(){const _0x2ac702=_0x42a463;return _0x4f4300['hasRole'](_0x2ac702(0x1755))||!_0x4f4300[_0x2ac702(0x2434)](_0x1daa49)&&!_0x4f4300[_0x2ac702(0x23e0)](_0x2ac702(0x174b));}};}function _0x4c81d9(_0x8238f9,_0x1a9138){const _0x5b0251=a0_0x3bb9,_0x4b0a26={'user':_0x3f65c0()[_0x5b0251(0x40e)](_0x4f4300[_0x5b0251(0xb12)](),['id',_0x5b0251(0x19eb),'fullname',_0x5b0251(0x1a2b),_0x5b0251(0xfb0),'internal',_0x5b0251(0x72e)])};_0x1a9138[_0x5b0251(0xcd9)]=_0x4cbf1a()['render'](_0x1a9138['agentUrl'],_0x4b0a26),_0x1df849['saveItem']('apps.home.plugin_'+_0x8238f9,{'id':_0x8238f9,'title':_0x1a9138[_0x5b0251(0x19eb)],'translate':_0x1a9138['name'],'state':'plugin_'+_0x1a9138['id'],'stateParams':_0x1a9138,'view':_0x5b0251(0x5f5),'icon':_0x1a9138['icon'],'weight':0xc,'hidden':function(){return!_0x4f4300['hasPermission'](_0x8238f9);}});}_0x2218af['saveItem'](_0x3f4ccb(0x8b0),{'title':'APPS','group':!![],'weight':0x1,'hidden':function(){const _0x5b49e8=_0x3f4ccb;return _0x4f4300[_0x5b49e8(0x23e0)](_0x5b49e8(0x1755));}}),_0x417528[_0x3f4ccb(0x11b7)][_0x3f4ccb(0x16b4)]()[_0x3f4ccb(0x2945)][_0x3f4ccb(0x146b)](function(_0x3b73d1){const _0x340c54=_0x3f4ccb;_0x952ac9[_0x340c54(0x11b7)]=_0x3b73d1&&_0x3b73d1['current']?_0x3b73d1[_0x340c54(0x2d7)]:_0x340c54(0x2088);})[_0x3f4ccb(0x129e)](function(){const _0x3a2556=_0x3f4ccb;_0x952ac9[_0x3a2556(0x11b7)]='UNKNOWN';})[_0x3f4ccb(0x1ec6)](function(){const _0x3b1978=_0x3f4ccb;_0x2218af['saveItem'](_0x3b1978(0x11b7),{'title':_0x3b1978(0x1876)+_0x952ac9[_0x3b1978(0x11b7)],'group':!![],'weight':0x2,'hidden':function(){const _0x324db2=_0x3b1978;return _0x4f4300[_0x324db2(0x23e0)](_0x324db2(0x1755));}});});function _0x16df52(_0x4b98c2){const _0x578ef5=_0x3f4ccb;return _0x3f65c0()['map'](_0x4b98c2[_0x578ef5(0x20d0)],function(_0x9d0dd4){return _0x9d0dd4['id'];});}_0x4f4300[_0x3f4ccb(0x1369)]()&&(_0x134e48[_0x3f4ccb(0xece)]&&_0x19ca9e[_0x3f4ccb(0x195d)]({'msg':_0x4ff74c[_0x3f4ccb(0xde)]('DASHBOARDS.LICENSE_EXPIRE_REMAINING_DAYS'),'showClose':!![],'timeout':![]}),_0x417528[_0x3f4ccb(0x130)][_0x3f4ccb(0x16b4)]()['$promise']['then'](function(_0x4d2386){const _0x64a3cd=_0x3f4ccb;let _0x1f5f96=0x0;for(let _0x38f079=0x0;_0x38f079<_0x4d2386['rows'][_0x64a3cd(0x402)];_0x38f079+=0x1){_0x1f5f96=0x1869f+_0x4d2386[_0x64a3cd(0x19c7)][_0x38f079]['id'],_0x2218af[_0x64a3cd(0x150e)](_0x64a3cd(0x1c77)+_0x1f5f96,_0x14b8c3(_0x1f5f96,_0x4d2386['rows'][_0x38f079]));}}),_0x417528[_0x3f4ccb(0x5f5)][_0x3f4ccb(0x16b4)]({'active':!![]})[_0x3f4ccb(0x2945)][_0x3f4ccb(0x146b)](function(_0x5baa13){const _0x7a46d3=_0x3f4ccb;let _0x3a2c33=0x0;if(_0x5baa13[_0x7a46d3(0x51c)]){const _0x5c0531=_0x3f65c0()[_0x7a46d3(0x1dd6)](_0x5baa13[_0x7a46d3(0x19c7)],function(_0x2d1706){const _0x20ba4d=_0x7a46d3;return _0x2d1706[_0x20ba4d(0x25c9)]!='never'&&_0x2d1706[_0x20ba4d(0x25c9)]!=_0x20ba4d(0x1a94);});if(_0x5c0531[_0x7a46d3(0x402)]>0x0){_0x2218af['saveItem']('apps.plugins',{'id':0x76c,'title':_0x7a46d3(0x40f),'translate':_0x7a46d3(0x5b2),'icon':_0x7a46d3(0x1205),'permissions':{'hidden':!![]},'weight':0x11,'hidden':function(){const _0x4605f5=_0x7a46d3;return _0x4f4300[_0x4605f5(0x23e0)](_0x4605f5(0x1755))||!_0x4f4300[_0x4605f5(0xff0)](_0x16df52(this))&&!_0x4f4300[_0x4605f5(0x23e0)](_0x4605f5(0x174b));}});for(let _0x119e2f=0x0;_0x119e2f<_0x5c0531['length'];_0x119e2f+=0x1){_0x3a2c33=0x15b38+_0x5c0531[_0x119e2f]['id'],_0x2218af['saveItem']('apps.plugins.plugin_'+_0x3a2c33,_0x4a0ad2(_0x3a2c33,_0x5c0531[_0x119e2f]));}_0x2218af[_0x7a46d3(0x28fa)]();}const _0x5d5d33=_0x3f65c0()[_0x7a46d3(0x1dd6)](_0x5baa13[_0x7a46d3(0x19c7)],function(_0x547bb8){const _0x4be3b6=_0x7a46d3;return _0x547bb8[_0x4be3b6(0x25c9)]!=_0x4be3b6(0x6d2)&&_0x547bb8['sidebar']!=_0x4be3b6(0x2497);});if(_0x5d5d33['length']>0x0)for(let _0x304929=0x0;_0x304929<_0x5d5d33['length'];_0x304929+=0x1){_0x3a2c33=0x15b38+_0x5d5d33[_0x304929]['id'],_0x4c81d9(_0x3a2c33,_0x5d5d33[_0x304929]);}}})),_0x134e48[_0x3f4ccb(0x1802)]&&!_0x5cd43c['defaultPageTitle']&&_0x5cd43c[_0x3f4ccb(0x13f5)]&&angular[_0x3f4ccb(0x1853)]('#pageTitle')[_0x3f4ccb(0x1931)](_0x5cd43c['pageTitle']),_0x2218af['saveItem'](_0x3f4ccb(0x17d3),{'id':0x64,'title':_0x3f4ccb(0x11e8),'translate':'DASHBOARDS.DASHBOARDS','icon':_0x3f4ccb(0x1f94),'weight':0x2,'hidden':function(){const _0x411398=_0x3f4ccb;return _0x4f4300['hasRole'](_0x411398(0x1755))||!_0x4f4300[_0x411398(0xff0)](_0x16df52(this))&&!_0x4f4300[_0x411398(0x23e0)](_0x411398(0x174b));}}),_0x2218af[_0x3f4ccb(0x150e)]('apps.dashboards.general',{'id':0x65,'title':_0x3f4ccb(0x41a),'route':'','translate':'DASHBOARDS.GENERAL','state':_0x3f4ccb(0x285e),'weight':0x1,'hidden':function(){const _0xb72004=_0x3f4ccb;return _0x4f4300['hasRole']('agent')||!_0x4f4300[_0xb72004(0x2434)](0x65)&&!_0x4f4300[_0xb72004(0x23e0)](_0xb72004(0x174b));}}),_0x2218af[_0x3f4ccb(0x150e)](_0x3f4ccb(0x813),{'id':0xc8,'title':_0x3f4ccb(0x838),'translate':_0x3f4ccb(0x1735),'icon':_0x3f4ccb(0x1c49),'weight':0x3,'hidden':function(){const _0x2515a0=_0x3f4ccb;return _0x4f4300['hasRole'](_0x2515a0(0x1755))||!_0x4f4300[_0x2515a0(0xff0)](_0x16df52(this))&&!_0x4f4300['hasRole']('admin');}}),_0x2218af[_0x3f4ccb(0x150e)](_0x3f4ccb(0xe79),{'id':0xc9,'title':_0x3f4ccb(0x3c4),'route':_0x3f4ccb(0xe7b),'translate':_0x3f4ccb(0x17fe),'state':_0x3f4ccb(0x201d),'weight':0x1,'permissions':{'hidden':!![]},'hidden':function(){const _0xb2e006=_0x3f4ccb;return _0x4f4300['hasRole']('agent')||_0x4f4300['hasRole']('user')||!_0x4f4300[_0xb2e006(0x2434)](0xc9)&&!_0x4f4300[_0xb2e006(0x23e0)](_0xb2e006(0x174b));}}),_0x2218af[_0x3f4ccb(0x150e)](_0x3f4ccb(0x2112),{'id':0xca,'title':'Agents','route':_0x3f4ccb(0xe7b),'translate':'APP.AGENTS','state':_0x3f4ccb(0x2312),'weight':0x1,'hidden':function(){const _0x58624e=_0x3f4ccb;return _0x4f4300[_0x58624e(0x23e0)](_0x58624e(0x1755))||!_0x4f4300['hasPermission'](0xca)&&!_0x4f4300['hasRole'](_0x58624e(0x174b));}}),_0x2218af[_0x3f4ccb(0x150e)](_0x3f4ccb(0x15a9),{'id':0xcb,'title':'Telephones','route':_0x3f4ccb(0xe7b),'translate':_0x3f4ccb(0x1b31),'state':_0x3f4ccb(0xa79),'weight':0x1,'hidden':function(){const _0x2d3811=_0x3f4ccb;return _0x4f4300[_0x2d3811(0x23e0)]('agent')||!_0x4f4300['hasPermission'](0xcb)&&!_0x4f4300['hasRole'](_0x2d3811(0x174b));}}),_0x2218af['saveItem']('apps.staff.teams',{'id':0xcc,'title':_0x3f4ccb(0x21ae),'route':_0x3f4ccb(0x23f1),'translate':_0x3f4ccb(0x1a3d),'state':_0x3f4ccb(0x17bb),'weight':0x1,'hidden':function(){const _0x5576b5=_0x3f4ccb;return _0x4f4300[_0x5576b5(0x23e0)](_0x5576b5(0x1755))||!_0x4f4300[_0x5576b5(0x2434)](0xcc)&&!_0x4f4300[_0x5576b5(0x23e0)](_0x5576b5(0x174b));}}),_0x2218af['saveItem'](_0x3f4ccb(0xf06),{'id':0xcd,'title':_0x3f4ccb(0x1a0c),'route':_0x3f4ccb(0x26b6),'translate':'STAFF.USERPROFILES','state':_0x3f4ccb(0x2804),'weight':0x1,'permissions':{'hidden':!![]},'hidden':function(){const _0x4b8da2=_0x3f4ccb;return _0x4f4300['hasRole'](_0x4b8da2(0x1755))||!_0x4f4300['hasPermission'](0xcd)&&!_0x4f4300[_0x4b8da2(0x23e0)](_0x4b8da2(0x174b));}}),_0x2218af[_0x3f4ccb(0x150e)]('apps.contactmanager',{'id':0x12c,'title':_0x3f4ccb(0x1624),'translate':'CONTACTMANAGER.CONTACTMANAGER','icon':'icon-account-circle','weight':0x4,'license':'cm','hidden':function(){const _0x3eea9b=_0x3f4ccb;return!_0x134e48['cm']||_0x4f4300[_0x3eea9b(0x23e0)](_0x3eea9b(0x1755))||!_0x4f4300['hasChildrenPermissions'](_0x16df52(this))&&!_0x4f4300['hasRole']('admin');}}),_0x2218af[_0x3f4ccb(0x150e)](_0x3f4ccb(0x1a3c),{'id':0x12d,'title':_0x3f4ccb(0x174f),'route':_0x3f4ccb(0xf03),'translate':'CONTACTMANAGER.LISTS','state':_0x3f4ccb(0x26ec),'weight':0x2,'hidden':function(){const _0x295d9c=_0x3f4ccb;return _0x4f4300[_0x295d9c(0x23e0)](_0x295d9c(0x1755))||!_0x4f4300[_0x295d9c(0x2434)](0x12d)&&!_0x4f4300[_0x295d9c(0x23e0)](_0x295d9c(0x174b));}}),_0x2218af[_0x3f4ccb(0x150e)](_0x3f4ccb(0x2750),{'id':0x12e,'title':_0x3f4ccb(0x1a5e),'route':_0x3f4ccb(0x134d),'translate':_0x3f4ccb(0x1763),'state':_0x3f4ccb(0xd99),'weight':0x3,'hidden':function(){const _0x3158ce=_0x3f4ccb;return _0x4f4300[_0x3158ce(0x23e0)]('agent')||!_0x4f4300[_0x3158ce(0x2434)](0x12e)&&!_0x4f4300[_0x3158ce(0x23e0)]('admin');}}),_0x2218af[_0x3f4ccb(0x150e)](_0x3f4ccb(0x13b),{'id':0x130,'title':_0x3f4ccb(0x1b8f),'route':_0x3f4ccb(0x14a9),'translate':_0x3f4ccb(0x1a0a),'state':'app.contactmanager.globalCustomFields','weight':0x4,'permissions':{'association':![]},'hidden':function(){const _0xa5040d=_0x3f4ccb;return _0x4f4300[_0xa5040d(0x23e0)]('agent')||!_0x4f4300[_0xa5040d(0x2434)](0x130)&&!_0x4f4300['hasRole']('admin');}}),_0x2218af[_0x3f4ccb(0x150e)]('apps.contactmanager.contacts',{'id':0x12f,'title':_0x3f4ccb(0x1efa),'route':'','translate':_0x3f4ccb(0x1a0b),'state':_0x3f4ccb(0x23fa),'weight':0x1,'permissions':{'association':![]},'hidden':function(){const _0x3dd728=_0x3f4ccb;return _0x4f4300[_0x3dd728(0x23e0)](_0x3dd728(0x1755))||!_0x4f4300[_0x3dd728(0x2434)](0x12f)&&!_0x4f4300['hasRole'](_0x3dd728(0x174b));}}),_0x2218af[_0x3f4ccb(0x150e)](_0x3f4ccb(0x297),{'id':0x190,'title':_0x3f4ccb(0x127d),'translate':_0x3f4ccb(0x127b),'icon':_0x3f4ccb(0x165b),'weight':0x5,'license':_0x3f4ccb(0xe6),'hidden':function(){const _0x5db029=_0x3f4ccb;return!_0x134e48[_0x5db029(0xe6)]||_0x4f4300[_0x5db029(0x23e0)](_0x5db029(0x1755))||!_0x4f4300[_0x5db029(0xff0)](_0x16df52(this))&&!_0x4f4300[_0x5db029(0x23e0)]('admin');}}),_0x2218af['saveItem'](_0x3f4ccb(0x1691),{'id':0x191,'title':_0x3f4ccb(0x507),'route':_0x3f4ccb(0x1446),'translate':_0x3f4ccb(0x2758),'state':'app.voice.voiceQueues','weight':0x1,'channel':_0x3f4ccb(0xe6),'hidden':function(){const _0x1802db=_0x3f4ccb;return _0x4f4300[_0x1802db(0x23e0)]('agent')||!_0x4f4300[_0x1802db(0x2434)](0x191)&&!_0x4f4300['hasRole']('admin');}}),_0x2218af['saveItem'](_0x3f4ccb(0x67a),{'id':0x192,'title':_0x3f4ccb(0x109a),'route':'voiceExtension','translate':'VOICE.INBOUNDROUTES','state':'app.voice.inboundroutes','weight':0x1,'hidden':function(){const _0x178f51=_0x3f4ccb;return _0x4f4300['hasRole'](_0x178f51(0x1755))||!_0x4f4300[_0x178f51(0x2434)](0x192)&&!_0x4f4300[_0x178f51(0x23e0)](_0x178f51(0x174b));}}),_0x2218af[_0x3f4ccb(0x150e)](_0x3f4ccb(0xe47),{'id':0x193,'title':_0x3f4ccb(0x1c80),'route':_0x3f4ccb(0xd47),'translate':'VOICE.OUTBOUNDROUTES','state':'app.voice.outboundroutes','weight':0x1,'hidden':function(){const _0x35ab05=_0x3f4ccb;return _0x4f4300[_0x35ab05(0x23e0)](_0x35ab05(0x1755))||!_0x4f4300[_0x35ab05(0x2434)](0x193)&&!_0x4f4300['hasRole'](_0x35ab05(0x174b));}}),_0x2218af['saveItem'](_0x3f4ccb(0x287b),{'id':0x194,'title':_0x3f4ccb(0xa2b),'route':_0x3f4ccb(0xd47),'translate':_0x3f4ccb(0x1f38),'state':'app.voice.internalroutes','weight':0x1,'hidden':function(){const _0x5d84d2=_0x3f4ccb;return _0x4f4300[_0x5d84d2(0x23e0)](_0x5d84d2(0x1755))||!_0x4f4300[_0x5d84d2(0x2434)](0x194)&&!_0x4f4300[_0x5d84d2(0x23e0)](_0x5d84d2(0x174b));}}),_0x2218af[_0x3f4ccb(0x150e)]('apps.voice.contexts',{'id':0x195,'title':'Contexts','route':_0x3f4ccb(0x1b82),'translate':'VOICE.CONTEXTS','state':_0x3f4ccb(0x214d),'weight':0x1,'hidden':function(){const _0xfe47eb=_0x3f4ccb;return _0x4f4300[_0xfe47eb(0x23e0)](_0xfe47eb(0x1755))||!_0x4f4300[_0xfe47eb(0x2434)](0x195)&&!_0x4f4300[_0xfe47eb(0x23e0)](_0xfe47eb(0x174b));}}),_0x2218af[_0x3f4ccb(0x150e)]('apps.voice.voicemails',{'id':0x196,'title':_0x3f4ccb(0x1efe),'route':_0x3f4ccb(0xe8c),'translate':'VOICE.VOICEMAILS','state':'app.voice.voicemails','weight':0x1,'hidden':function(){const _0x10fc61=_0x3f4ccb;return _0x4f4300['hasRole'](_0x10fc61(0x1755))||!_0x4f4300['hasPermission'](0x196)&&!_0x4f4300['hasRole']('admin');}}),_0x2218af[_0x3f4ccb(0x150e)](_0x3f4ccb(0x3e0),{'id':0x197,'title':'MusicOnHolds','route':_0x3f4ccb(0x7bd),'translate':_0x3f4ccb(0x883),'state':_0x3f4ccb(0x1dd8),'weight':0x1,'hidden':function(){const _0x5d76b7=_0x3f4ccb;return _0x4f4300[_0x5d76b7(0x23e0)](_0x5d76b7(0x1755))||!_0x4f4300[_0x5d76b7(0x2434)](0x197)&&!_0x4f4300[_0x5d76b7(0x23e0)]('admin');}}),_0x2218af[_0x3f4ccb(0x150e)](_0x3f4ccb(0xb91),{'id':0x198,'title':_0x3f4ccb(0xb19),'route':_0x3f4ccb(0x1688),'translate':_0x3f4ccb(0x20a4),'state':'app.voice.voiceRecordings','weight':0x1,'permissions':{'association':![],'loading':!![]},'hidden':function(){const _0x39cdfe=_0x3f4ccb;return _0x4f4300[_0x39cdfe(0x23e0)]('agent')||!_0x4f4300[_0x39cdfe(0x2434)](0x198)&&!_0x4f4300[_0x39cdfe(0x23e0)](_0x39cdfe(0x174b));}}),_0x2218af[_0x3f4ccb(0x150e)]('apps.voice.chanSpies',{'id':0x199,'title':_0x3f4ccb(0x1665),'route':_0x3f4ccb(0x15e8),'translate':_0x3f4ccb(0x430),'state':_0x3f4ccb(0x1b4b),'weight':0x1,'hidden':function(){const _0x482554=_0x3f4ccb;return _0x4f4300[_0x482554(0x23e0)](_0x482554(0x1755))||!_0x4f4300['hasPermission'](0x199)&&!_0x4f4300[_0x482554(0x23e0)](_0x482554(0x174b));}}),_0x2218af[_0x3f4ccb(0x150e)](_0x3f4ccb(0x1c00),{'id':0x19a,'title':_0x3f4ccb(0x8cf),'route':_0x3f4ccb(0xc0f),'translate':'VOICE.VOICEPREFIXES','state':_0x3f4ccb(0x17c8),'weight':0x1,'hidden':function(){const _0x7d33d8=_0x3f4ccb;return _0x4f4300[_0x7d33d8(0x23e0)](_0x7d33d8(0x1755))||!_0x4f4300['hasPermission'](0x19a)&&!_0x4f4300[_0x7d33d8(0x23e0)](_0x7d33d8(0x174b));}}),_0x2218af[_0x3f4ccb(0x150e)](_0x3f4ccb(0x1d58),{'id':0x19b,'title':_0x3f4ccb(0x15ab),'route':'','translate':'VOICE.REALTIME','state':_0x3f4ccb(0x17fd),'weight':0x1,'permissions':{'association':![],'crud':![]},'hidden':function(){const _0x12feb4=_0x3f4ccb;return _0x4f4300['hasRole'](_0x12feb4(0x1755))||!_0x4f4300[_0x12feb4(0x2434)](0x19b)&&!_0x4f4300[_0x12feb4(0x23e0)](_0x12feb4(0x174b));}}),_0x2218af[_0x3f4ccb(0x150e)](_0x3f4ccb(0x1a38),{'id':0x1f4,'title':'Chat','translate':_0x3f4ccb(0x266a),'icon':_0x3f4ccb(0x1bed),'weight':0x6,'license':_0x3f4ccb(0xa7f),'hidden':function(){const _0x17992e=_0x3f4ccb;return!_0x134e48[_0x17992e(0xa7f)]||_0x4f4300['hasRole'](_0x17992e(0x1755))||!_0x4f4300['hasChildrenPermissions'](_0x16df52(this))&&!_0x4f4300['hasRole'](_0x17992e(0x174b));}}),_0x2218af[_0x3f4ccb(0x150e)](_0x3f4ccb(0x164c),{'id':0x1f5,'title':_0x3f4ccb(0x1d54),'route':_0x3f4ccb(0x16f8),'translate':_0x3f4ccb(0x1146),'state':_0x3f4ccb(0x1ce1),'weight':0x1,'channel':_0x3f4ccb(0xa7f),'hidden':function(){const _0x5e0ebd=_0x3f4ccb;return _0x4f4300[_0x5e0ebd(0x23e0)]('agent')||!_0x4f4300['hasPermission'](0x1f5)&&!_0x4f4300[_0x5e0ebd(0x23e0)](_0x5e0ebd(0x174b));}}),_0x2218af[_0x3f4ccb(0x150e)]('apps.chat.chatWebsites',{'id':0x1f6,'title':_0x3f4ccb(0x274c),'route':_0x3f4ccb(0x189e),'translate':'CHAT.CHATWEBSITES','state':_0x3f4ccb(0x21f),'weight':0x1,'channel':'chat','hidden':function(){const _0x1fc7ae=_0x3f4ccb;return _0x4f4300[_0x1fc7ae(0x23e0)]('agent')||!_0x4f4300['hasPermission'](0x1f6)&&!_0x4f4300[_0x1fc7ae(0x23e0)](_0x1fc7ae(0x174b));}}),_0x2218af['saveItem'](_0x3f4ccb(0x21d0),{'id':0x1fe,'title':'Realtime','route':'','translate':_0x3f4ccb(0xe6b),'state':_0x3f4ccb(0x284e),'weight':0x1,'permissions':{'association':![],'crud':![]},'hidden':function(){const _0x5877d0=_0x3f4ccb;return _0x4f4300['hasRole'](_0x5877d0(0x1755))||!_0x4f4300[_0x5877d0(0x2434)](0x1fe)&&!_0x4f4300['hasRole']('admin');}}),_0x2218af[_0x3f4ccb(0x150e)](_0x3f4ccb(0x12b0),{'id':0x258,'title':_0x3f4ccb(0x3b1),'translate':_0x3f4ccb(0x11a1),'icon':_0x3f4ccb(0x1c3d),'weight':0x7,'license':_0x3f4ccb(0x56b),'hidden':function(){const _0x207dd5=_0x3f4ccb;return!_0x134e48[_0x207dd5(0x56b)]||_0x4f4300[_0x207dd5(0x23e0)](_0x207dd5(0x1755))||!_0x4f4300[_0x207dd5(0xff0)](_0x16df52(this))&&!_0x4f4300[_0x207dd5(0x23e0)]('admin');}}),_0x2218af['saveItem']('apps.mail.mailQueues',{'id':0x259,'title':_0x3f4ccb(0xf4d),'route':_0x3f4ccb(0x101c),'translate':_0x3f4ccb(0xb93),'state':_0x3f4ccb(0x1263),'weight':0x1,'channel':_0x3f4ccb(0x56b),'hidden':function(){const _0x50470d=_0x3f4ccb;return _0x4f4300[_0x50470d(0x23e0)](_0x50470d(0x1755))||!_0x4f4300[_0x50470d(0x2434)](0x259)&&!_0x4f4300[_0x50470d(0x23e0)]('admin');}}),_0x2218af[_0x3f4ccb(0x150e)]('apps.mail.mailAccounts',{'id':0x25a,'title':_0x3f4ccb(0xbf0),'route':'mailAccount','translate':_0x3f4ccb(0x2091),'state':'app.mail.mailAccounts','weight':0x1,'channel':_0x3f4ccb(0x56b),'hidden':function(){const _0x2942c8=_0x3f4ccb;return _0x4f4300[_0x2942c8(0x23e0)](_0x2942c8(0x1755))||!_0x4f4300[_0x2942c8(0x2434)](0x25a)&&!_0x4f4300['hasRole'](_0x2942c8(0x174b));}}),_0x2218af[_0x3f4ccb(0x150e)]('apps.mail.mailSubtatuses',{'id':0x25b,'title':_0x3f4ccb(0x2857),'route':_0x3f4ccb(0x2036),'translate':'MAIL.MAILSUBSTATUSES','state':_0x3f4ccb(0x1379),'weight':0x1,'channel':_0x3f4ccb(0x56b),'permissions':{'association':![]},'hidden':function(){const _0x4986f4=_0x3f4ccb;return _0x4f4300[_0x4986f4(0x23e0)](_0x4986f4(0x1755))||!_0x4f4300['hasPermission'](0x25b)&&!_0x4f4300[_0x4986f4(0x23e0)](_0x4986f4(0x174b));}}),_0x2218af['saveItem'](_0x3f4ccb(0x17c7),{'id':0x262,'title':_0x3f4ccb(0x15ab),'route':'','translate':'MAIL.REALTIME','state':_0x3f4ccb(0x2795),'weight':0x1,'permissions':{'association':![],'crud':![]},'hidden':function(){const _0xedb578=_0x3f4ccb;return _0x4f4300[_0xedb578(0x23e0)](_0xedb578(0x1755))||!_0x4f4300[_0xedb578(0x2434)](0x262)&&!_0x4f4300['hasRole'](_0xedb578(0x174b));}}),_0x2218af[_0x3f4ccb(0x150e)](_0x3f4ccb(0x20aa),{'id':0x2bc,'title':_0x3f4ccb(0x10f8),'translate':'SMS.SMS','icon':_0x3f4ccb(0x1580),'weight':0x8,'license':_0x3f4ccb(0x25ca),'hidden':function(){const _0x4f848c=_0x3f4ccb;return!_0x134e48[_0x4f848c(0x25ca)]||_0x4f4300[_0x4f848c(0x23e0)](_0x4f848c(0x1755))||!_0x4f4300[_0x4f848c(0xff0)](_0x16df52(this))&&!_0x4f4300['hasRole'](_0x4f848c(0x174b));}}),_0x2218af[_0x3f4ccb(0x150e)]('apps.sms.smsQueues',{'id':0x2bd,'title':_0x3f4ccb(0xe3),'route':'smsQueue','translate':'SMS.SMSQUEUES','state':_0x3f4ccb(0x68f),'weight':0x1,'channel':_0x3f4ccb(0x929),'hidden':function(){const _0x496eb5=_0x3f4ccb;return _0x4f4300['hasRole'](_0x496eb5(0x1755))||!_0x4f4300['hasPermission'](0x2bd)&&!_0x4f4300['hasRole'](_0x496eb5(0x174b));}}),_0x2218af['saveItem'](_0x3f4ccb(0xd1b),{'id':0x2be,'title':_0x3f4ccb(0xda3),'route':_0x3f4ccb(0x2209),'translate':'SMS.SMSACCOUNTS','state':_0x3f4ccb(0x51a),'weight':0x1,'channel':'sms','hidden':function(){const _0x51e479=_0x3f4ccb;return _0x4f4300['hasRole'](_0x51e479(0x1755))||!_0x4f4300['hasPermission'](0x2be)&&!_0x4f4300[_0x51e479(0x23e0)](_0x51e479(0x174b));}}),_0x2218af[_0x3f4ccb(0x150e)]('apps.sms.realtime',{'id':0x2c6,'title':_0x3f4ccb(0x15ab),'route':'','translate':'SMS.REALTIME','state':_0x3f4ccb(0xe81),'weight':0x1,'permissions':{'association':![],'crud':![]},'hidden':function(){const _0x2a2f7b=_0x3f4ccb;return _0x4f4300[_0x2a2f7b(0x23e0)](_0x2a2f7b(0x1755))||!_0x4f4300[_0x2a2f7b(0x2434)](0x2c6)&&!_0x4f4300[_0x2a2f7b(0x23e0)](_0x2a2f7b(0x174b));}}),_0x2218af[_0x3f4ccb(0x150e)](_0x3f4ccb(0x2324),{'id':0x320,'title':_0x3f4ccb(0x12e0),'translate':_0x3f4ccb(0x8a6),'icon':_0x3f4ccb(0x9b8),'weight':0x9,'license':_0x3f4ccb(0x7d9),'hidden':function(){const _0x22b808=_0x3f4ccb;return!_0x134e48['openchannel']||_0x4f4300[_0x22b808(0x23e0)](_0x22b808(0x1755))||!_0x4f4300[_0x22b808(0xff0)](_0x16df52(this))&&!_0x4f4300[_0x22b808(0x23e0)](_0x22b808(0x174b));}}),_0x2218af[_0x3f4ccb(0x150e)]('apps.openchannel.openchannelQueues',{'id':0x321,'title':'OpenchannelQueues','route':_0x3f4ccb(0x2755),'translate':_0x3f4ccb(0x1ca5),'state':_0x3f4ccb(0x18ff),'weight':0x1,'channel':_0x3f4ccb(0x8de),'hidden':function(){const _0x5a3cea=_0x3f4ccb;return _0x4f4300[_0x5a3cea(0x23e0)]('agent')||!_0x4f4300[_0x5a3cea(0x2434)](0x321)&&!_0x4f4300[_0x5a3cea(0x23e0)]('admin');}}),_0x2218af[_0x3f4ccb(0x150e)]('apps.openchannel.openchannelAccounts',{'id':0x322,'title':_0x3f4ccb(0x5f9),'route':'openchannelAccount','translate':_0x3f4ccb(0x2424),'state':_0x3f4ccb(0xc7d),'weight':0x1,'channel':_0x3f4ccb(0x8de),'hidden':function(){const _0x13cbf2=_0x3f4ccb;return _0x4f4300[_0x13cbf2(0x23e0)]('agent')||!_0x4f4300[_0x13cbf2(0x2434)](0x322)&&!_0x4f4300[_0x13cbf2(0x23e0)]('admin');}}),_0x2218af[_0x3f4ccb(0x150e)](_0x3f4ccb(0x1a63),{'id':0x32a,'title':'Realtime','route':'','translate':_0x3f4ccb(0x955),'state':_0x3f4ccb(0x13c8),'weight':0x1,'permissions':{'association':![],'crud':![]},'hidden':function(){const _0x53401c=_0x3f4ccb;return _0x4f4300['hasRole']('agent')||!_0x4f4300['hasPermission'](0x32a)&&!_0x4f4300[_0x53401c(0x23e0)]('admin');}}),_0x2218af['saveItem'](_0x3f4ccb(0x265a),{'id':0x384,'title':'Fax','translate':_0x3f4ccb(0x23c1),'icon':'icon-deskphone','weight':0xa,'license':_0x3f4ccb(0x22d9),'hidden':function(){const _0x4126df=_0x3f4ccb;return!_0x134e48[_0x4126df(0x22d9)]||_0x4f4300[_0x4126df(0x23e0)](_0x4126df(0x1755))||!_0x4f4300['hasChildrenPermissions'](_0x16df52(this))&&!_0x4f4300[_0x4126df(0x23e0)](_0x4126df(0x174b));}}),_0x2218af[_0x3f4ccb(0x150e)](_0x3f4ccb(0xb2c),{'id':0x385,'title':'FaxQueues','route':_0x3f4ccb(0x999),'translate':_0x3f4ccb(0x1faf),'state':_0x3f4ccb(0xb01),'weight':0x1,'channel':_0x3f4ccb(0x22d9),'hidden':function(){const _0x315ef2=_0x3f4ccb;return _0x4f4300['hasRole'](_0x315ef2(0x1755))||!_0x4f4300['hasPermission'](0x385)&&!_0x4f4300[_0x315ef2(0x23e0)](_0x315ef2(0x174b));}}),_0x2218af[_0x3f4ccb(0x150e)]('apps.fax.faxAccounts',{'id':0x386,'title':'FaxAccounts','route':_0x3f4ccb(0x178),'translate':'FAX.FAXACCOUNTS','state':_0x3f4ccb(0x2078),'weight':0x1,'channel':_0x3f4ccb(0x22d9),'hidden':function(){const _0xc82239=_0x3f4ccb;return _0x4f4300[_0xc82239(0x23e0)](_0xc82239(0x1755))||!_0x4f4300[_0xc82239(0x2434)](0x386)&&!_0x4f4300['hasRole']('admin');}}),_0x2218af[_0x3f4ccb(0x150e)]('apps.fax.realtime',{'id':0x38e,'title':_0x3f4ccb(0x15ab),'route':'','translate':_0x3f4ccb(0x247a),'state':_0x3f4ccb(0xbec),'weight':0x1,'permissions':{'association':![],'crud':![]},'hidden':function(){const _0x23900d=_0x3f4ccb;return _0x4f4300[_0x23900d(0x23e0)](_0x23900d(0x1755))||!_0x4f4300['hasPermission'](0x38e)&&!_0x4f4300[_0x23900d(0x23e0)](_0x23900d(0x174b));}}),_0x2218af[_0x3f4ccb(0x150e)](_0x3f4ccb(0xd00),{'id':0x3e8,'title':_0x3f4ccb(0x18f0),'translate':'TOOLS.TOOLS','icon':'icon-auto-fix','weight':0xf,'hidden':function(){const _0x3565a4=_0x3f4ccb;return _0x4f4300[_0x3565a4(0x23e0)](_0x3565a4(0x1755))||!_0x4f4300[_0x3565a4(0xff0)](_0x16df52(this))&&!_0x4f4300['hasRole']('admin');}}),_0x2218af[_0x3f4ccb(0x150e)]('apps.tools.cannedAnswers',{'id':0x3e9,'title':_0x3f4ccb(0x16c4),'route':'cannedAnswer','translate':_0x3f4ccb(0x213e),'state':_0x3f4ccb(0x1f7c),'weight':0x1,'hidden':function(){const _0x5f3f3a=_0x3f4ccb;return _0x4f4300[_0x5f3f3a(0x23e0)](_0x5f3f3a(0x1755))||!_0x4f4300[_0x5f3f3a(0x2434)](0x3e9)&&!_0x4f4300[_0x5f3f3a(0x23e0)](_0x5f3f3a(0x174b));}}),_0x2218af[_0x3f4ccb(0x150e)](_0x3f4ccb(0x1cb),{'id':0x3eb,'title':_0x3f4ccb(0x907),'route':'dashboard','translate':_0x3f4ccb(0x1cce),'state':'app.tools.customDashboards','weight':0x3,'hidden':function(){const _0x3fe638=_0x3f4ccb;return _0x4f4300['hasRole']('agent')||!_0x4f4300[_0x3fe638(0x2434)](0x3eb)&&!_0x4f4300[_0x3fe638(0x23e0)]('admin');}}),_0x2218af[_0x3f4ccb(0x150e)](_0x3f4ccb(0x2381),{'id':0x3ec,'title':_0x3f4ccb(0x162f),'route':'interval','translate':_0x3f4ccb(0x1f69),'state':_0x3f4ccb(0x2378),'weight':0x4,'hidden':function(){const _0x2b71b4=_0x3f4ccb;return _0x4f4300[_0x2b71b4(0x23e0)]('agent')||!_0x4f4300[_0x2b71b4(0x2434)](0x3ec)&&!_0x4f4300[_0x2b71b4(0x23e0)](_0x2b71b4(0x174b));}}),_0x2218af[_0x3f4ccb(0x150e)](_0x3f4ccb(0x946),{'id':0x3ed,'title':_0x3f4ccb(0x197),'route':_0x3f4ccb(0x1e3e),'translate':_0x3f4ccb(0x24b9),'state':_0x3f4ccb(0x179e),'weight':0x5,'hidden':function(){const _0x4fd568=_0x3f4ccb;return _0x4f4300['hasRole'](_0x4fd568(0x1755))||!_0x4f4300[_0x4fd568(0x2434)](0x3ed)&&!_0x4f4300[_0x4fd568(0x23e0)](_0x4fd568(0x174b));}}),_0x2218af[_0x3f4ccb(0x150e)]('apps.tools.schedules',{'id':0x3ee,'title':'Scheduler','route':_0x3f4ccb(0x4bf),'translate':_0x3f4ccb(0x55c),'state':_0x3f4ccb(0x1578),'weight':0x6,'hidden':function(){const _0x7a7053=_0x3f4ccb;return _0x4f4300[_0x7a7053(0x23e0)](_0x7a7053(0x1755))||!_0x4f4300[_0x7a7053(0x2434)](0x3ee)&&!_0x4f4300[_0x7a7053(0x23e0)]('admin');}}),_0x2218af[_0x3f4ccb(0x150e)](_0x3f4ccb(0x1c8e),{'id':0x3ef,'title':_0x3f4ccb(0x175f),'route':'sound','translate':_0x3f4ccb(0x2ee),'state':_0x3f4ccb(0x90a),'weight':0x7,'hidden':function(){return _0x4f4300['hasRole']('agent')||!_0x4f4300['hasPermission'](0x3ef)&&!_0x4f4300['hasRole']('admin');}}),_0x2218af[_0x3f4ccb(0x150e)](_0x3f4ccb(0xcf8),{'id':0x3f0,'title':_0x3f4ccb(0x2331),'route':'tag','translate':_0x3f4ccb(0x9f4),'state':'app.tools.tags','weight':0x8,'hidden':function(){const _0x3a9634=_0x3f4ccb;return _0x4f4300[_0x3a9634(0x23e0)]('agent')||!_0x4f4300[_0x3a9634(0x2434)](0x3f0)&&!_0x4f4300[_0x3a9634(0x23e0)](_0x3a9634(0x174b));}}),_0x2218af[_0x3f4ccb(0x150e)](_0x3f4ccb(0x2f4),{'id':0x3f1,'title':_0x3f4ccb(0x7ff),'route':_0x3f4ccb(0x1928),'translate':_0x3f4ccb(0x1525),'state':_0x3f4ccb(0x2252),'weight':0x9,'hidden':function(){const _0x531b93=_0x3f4ccb;return _0x4f4300[_0x531b93(0x23e0)]('agent')||!_0x4f4300[_0x531b93(0x2434)](0x3f1)&&!_0x4f4300[_0x531b93(0x23e0)](_0x531b93(0x174b));}}),_0x2218af[_0x3f4ccb(0x150e)]('apps.tools.trunks',{'id':0x3f3,'title':'Trunks','route':_0x3f4ccb(0x279f),'translate':_0x3f4ccb(0x1e91),'state':'app.tools.trunks','weight':0xb,'hidden':function(){const _0xfa1658=_0x3f4ccb;return _0x4f4300[_0xfa1658(0x23e0)]('agent')||!_0x4f4300[_0xfa1658(0x2434)](0x3f3)&&!_0x4f4300['hasRole']('admin');}}),_0x2218af[_0x3f4ccb(0x150e)](_0x3f4ccb(0x13e4),{'id':0x3f4,'title':'Variables','route':_0x3f4ccb(0x212),'translate':'TOOLS.VARIABLES','state':_0x3f4ccb(0x280),'weight':0xc,'hidden':function(){const _0x1bf75b=_0x3f4ccb;return _0x4f4300[_0x1bf75b(0x23e0)](_0x1bf75b(0x1755))||!_0x4f4300[_0x1bf75b(0x2434)](0x3f4)&&!_0x4f4300[_0x1bf75b(0x23e0)](_0x1bf75b(0x174b));}}),_0x2218af[_0x3f4ccb(0x150e)]('apps.tools.dispositions',{'id':0x3ea,'title':_0x3f4ccb(0x1754),'route':_0x3f4ccb(0x9e1),'translate':_0x3f4ccb(0x3ed),'state':_0x3f4ccb(0x2f5),'weight':0x2,'hidden':function(){const _0xe32ae=_0x3f4ccb;return _0x4f4300['hasRole']('agent')||!_0x4f4300['hasPermission'](0x3ea)&&!_0x4f4300[_0xe32ae(0x23e0)]('admin');}}),_0x2218af[_0x3f4ccb(0x150e)](_0x3f4ccb(0xf9a),{'id':0x3f2,'title':_0x3f4ccb(0x471),'route':'','translate':_0x3f4ccb(0x1c88),'state':_0x3f4ccb(0x719),'weight':0xa,'hidden':function(){const _0x429edf=_0x3f4ccb;return _0x4f4300['hasRole'](_0x429edf(0x1755))||!_0x4f4300['hasPermission'](0x3f2)&&!_0x4f4300[_0x429edf(0x23e0)](_0x429edf(0x174b));}}),_0x2218af[_0x3f4ccb(0x150e)](_0x3f4ccb(0x972),{'id':0x44c,'title':_0x3f4ccb(0x22cc),'translate':_0x3f4ccb(0x4aa),'icon':_0x3f4ccb(0x1913),'weight':0xd,'license':_0x3f4ccb(0xe6),'hidden':function(){const _0x4e3bd1=_0x3f4ccb;return!_0x134e48['voice']||_0x4f4300[_0x4e3bd1(0x23e0)](_0x4e3bd1(0x1755))||!_0x4f4300[_0x4e3bd1(0xff0)](_0x16df52(this))&&!_0x4f4300['hasRole'](_0x4e3bd1(0x174b));}}),_0x2218af[_0x3f4ccb(0x150e)](_0x3f4ccb(0x1e51),{'id':0x44d,'title':_0x3f4ccb(0xa4d),'route':'squareOdbc','translate':'CALLYSQUARE.ODBC','state':_0x3f4ccb(0xa1f),'weight':0x2,'hidden':function(){const _0x59dd90=_0x3f4ccb;return _0x4f4300[_0x59dd90(0x23e0)](_0x59dd90(0x1755))||!_0x4f4300['hasPermission'](0x44d)&&!_0x4f4300[_0x59dd90(0x23e0)](_0x59dd90(0x174b));}}),_0x2218af['saveItem'](_0x3f4ccb(0x1b1a),{'id':0x44e,'title':_0x3f4ccb(0x10e3),'route':_0x3f4ccb(0x2222),'translate':_0x3f4ccb(0x2849),'state':'app.callysquare.squareRecordings','weight':0x3,'permissions':{'association':![],'loading':!![]},'hidden':function(){const _0x62d2f0=_0x3f4ccb;return _0x4f4300[_0x62d2f0(0x23e0)]('agent')||!_0x4f4300[_0x62d2f0(0x2434)](0x44e)&&!_0x4f4300['hasRole'](_0x62d2f0(0x174b));}}),_0x2218af[_0x3f4ccb(0x150e)](_0x3f4ccb(0xade),{'id':0x44f,'title':_0x3f4ccb(0x1ea),'route':_0x3f4ccb(0x9b1),'translate':_0x3f4ccb(0x124e),'state':_0x3f4ccb(0x14d0),'weight':0x1,'hidden':function(){const _0x4db0d4=_0x3f4ccb;return _0x4f4300[_0x4db0d4(0x23e0)](_0x4db0d4(0x1755))||!_0x4f4300[_0x4db0d4(0x2434)](0x44f)&&!_0x4f4300['hasRole'](_0x4db0d4(0x174b));}}),_0x2218af[_0x3f4ccb(0x150e)](_0x3f4ccb(0x168),{'id':0x4b0,'title':_0x3f4ccb(0x15d5),'translate':_0x3f4ccb(0x26ed),'icon':_0x3f4ccb(0x9fd),'weight':0x10,'hidden':function(){const _0x359061=_0x3f4ccb;return _0x4f4300['hasRole']('agent')||!_0x4f4300[_0x359061(0xff0)](_0x16df52(this))&&!_0x4f4300[_0x359061(0x23e0)](_0x359061(0x174b));}}),_0x2218af['saveItem'](_0x3f4ccb(0x1a6f),{'id':0x4b1,'title':'Metrics','route':'analyticMetric','translate':'ANALYTICS.METRICS','state':'app.analytics.metrics','weight':0x3,'hidden':function(){const _0x35fc4e=_0x3f4ccb;return _0x4f4300[_0x35fc4e(0x23e0)](_0x35fc4e(0x1755))||!_0x4f4300[_0x35fc4e(0x2434)](0x4b1)&&!_0x4f4300[_0x35fc4e(0x23e0)](_0x35fc4e(0x174b));}}),_0x2218af[_0x3f4ccb(0x150e)]('apps.analytics.extractedReports',{'id':0x4b2,'title':_0x3f4ccb(0x1d35),'route':_0x3f4ccb(0xc5d),'translate':'ANALYTICS.EXTRACTEDREPORTS','state':_0x3f4ccb(0x8fb),'weight':0x2,'permissions':{'association':![],'loading':!![]},'hidden':function(){const _0x43d3d0=_0x3f4ccb;return _0x4f4300['hasRole'](_0x43d3d0(0x1755))||!_0x4f4300[_0x43d3d0(0x2434)](0x4b2)&&!_0x4f4300[_0x43d3d0(0x23e0)](_0x43d3d0(0x174b));}}),_0x2218af[_0x3f4ccb(0x150e)]('apps.analytics.reports',{'id':0x4b3,'title':_0x3f4ccb(0xc20),'route':'','translate':_0x3f4ccb(0x2a0),'state':_0x3f4ccb(0x25c0),'weight':0x1,'hidden':function(){const _0x124ae4=_0x3f4ccb;return _0x4f4300[_0x124ae4(0x23e0)](_0x124ae4(0x1755))||!_0x4f4300['hasPermission'](0x4b3)&&!_0x4f4300[_0x124ae4(0x23e0)](_0x124ae4(0x174b));}}),_0x2218af[_0x3f4ccb(0x150e)](_0x3f4ccb(0x1ca8),{'id':0x514,'title':_0x3f4ccb(0x1e43),'translate':_0x3f4ccb(0x253f),'icon':_0x3f4ccb(0x10b4),'weight':0x11,'hidden':function(){const _0x2c70c3=_0x3f4ccb;return _0x4f4300[_0x2c70c3(0x23e0)]('agent')||!_0x4f4300['hasChildrenPermissions'](_0x16df52(this))&&!_0x4f4300[_0x2c70c3(0x23e0)](_0x2c70c3(0x174b));}}),_0x2218af[_0x3f4ccb(0x150e)](_0x3f4ccb(0xdc1),{'id':0x515,'title':_0x3f4ccb(0x1fc),'route':'intZendeskAccount','translate':_0x3f4ccb(0x2060),'state':_0x3f4ccb(0xbd4),'weight':0x1,'permissions':{'association':![],'loading':!![]},'hidden':function(){const _0x401bab=_0x3f4ccb;return _0x4f4300['hasRole'](_0x401bab(0x1755))||!_0x4f4300[_0x401bab(0x2434)](0x515)&&!_0x4f4300[_0x401bab(0x23e0)]('admin');}}),_0x2218af[_0x3f4ccb(0x150e)](_0x3f4ccb(0x20d7),{'id':0x516,'title':_0x3f4ccb(0x2938),'route':'intSalesforceAccount','translate':_0x3f4ccb(0x794),'state':_0x3f4ccb(0x991),'weight':0x2,'permissions':{'association':![],'loading':!![]},'hidden':function(){const _0x1d654a=_0x3f4ccb;return _0x4f4300[_0x1d654a(0x23e0)]('agent')||!_0x4f4300['hasPermission'](0x516)&&!_0x4f4300[_0x1d654a(0x23e0)](_0x1d654a(0x174b));}}),_0x2218af[_0x3f4ccb(0x150e)](_0x3f4ccb(0x1130),{'id':0x517,'title':_0x3f4ccb(0x207),'route':'intFreshdeskAccount','translate':'INTEGRATIONS.FRESHDESKACCOUNTS','state':_0x3f4ccb(0x229d),'weight':0x3,'permissions':{'association':![],'loading':!![]},'hidden':function(){const _0x2c0861=_0x3f4ccb;return _0x4f4300[_0x2c0861(0x23e0)](_0x2c0861(0x1755))||!_0x4f4300['hasPermission'](0x517)&&!_0x4f4300['hasRole']('admin');}}),_0x2218af[_0x3f4ccb(0x150e)](_0x3f4ccb(0x24e1),{'id':0x519,'title':_0x3f4ccb(0x12f0),'route':'intSugarcrmAccount','translate':_0x3f4ccb(0x10a9),'state':_0x3f4ccb(0x289c),'weight':0x4,'permissions':{'association':![],'loading':!![]},'hidden':function(){const _0x2bcaab=_0x3f4ccb;return _0x4f4300[_0x2bcaab(0x23e0)](_0x2bcaab(0x1755))||!_0x4f4300['hasPermission'](0x519)&&!_0x4f4300[_0x2bcaab(0x23e0)](_0x2bcaab(0x174b));}}),_0x2218af[_0x3f4ccb(0x150e)](_0x3f4ccb(0x19bf),{'id':0x51a,'title':_0x3f4ccb(0xecc),'route':'intDeskAccount','translate':_0x3f4ccb(0x1d19),'state':_0x3f4ccb(0x1df8),'weight':0x5,'permissions':{'association':![],'loading':!![]},'hidden':function(){const _0x23db3b=_0x3f4ccb;return _0x4f4300[_0x23db3b(0x23e0)](_0x23db3b(0x1755))||!_0x4f4300[_0x23db3b(0x2434)](0x51a)&&!_0x4f4300[_0x23db3b(0x23e0)](_0x23db3b(0x174b));}}),_0x2218af['saveItem'](_0x3f4ccb(0xe98),{'id':0x51b,'title':'ZohoAccounts','route':'intZohoAccount','translate':_0x3f4ccb(0xac2),'state':_0x3f4ccb(0x17b3),'weight':0x6,'permissions':{'association':![],'loading':!![]},'hidden':function(){const _0x29f95b=_0x3f4ccb;return _0x4f4300[_0x29f95b(0x23e0)](_0x29f95b(0x1755))||!_0x4f4300[_0x29f95b(0x2434)](0x51b)&&!_0x4f4300[_0x29f95b(0x23e0)](_0x29f95b(0x174b));}}),_0x2218af[_0x3f4ccb(0x150e)](_0x3f4ccb(0x2020),{'id':0x51c,'title':_0x3f4ccb(0xdbf),'route':_0x3f4ccb(0xf8d),'translate':'INTEGRATIONS.VTIGERACCOUNTS','state':'app.integrations.vtigerAccounts','weight':0x7,'permissions':{'association':![],'loading':!![]},'hidden':function(){const _0x556c5c=_0x3f4ccb;return _0x4f4300[_0x556c5c(0x23e0)](_0x556c5c(0x1755))||!_0x4f4300[_0x556c5c(0x2434)](0x51c)&&!_0x4f4300['hasRole']('admin');}}),_0x2218af[_0x3f4ccb(0x150e)](_0x3f4ccb(0x24ac),{'id':0x51d,'title':_0x3f4ccb(0x47d),'route':_0x3f4ccb(0xdb4),'translate':_0x3f4ccb(0x259),'state':_0x3f4ccb(0x1881),'weight':0x8,'permissions':{'association':![],'loading':!![]},'hidden':function(){const _0x4dd971=_0x3f4ccb;return _0x4f4300[_0x4dd971(0x23e0)](_0x4dd971(0x1755))||!_0x4f4300[_0x4dd971(0x2434)](0x51d)&&!_0x4f4300[_0x4dd971(0x23e0)](_0x4dd971(0x174b));}}),_0x2218af[_0x3f4ccb(0x150e)]('apps.integrations.servicenowAccounts',{'id':0x51e,'title':'ServicenowAccounts','route':_0x3f4ccb(0xbd9),'translate':_0x3f4ccb(0x9bf),'state':'app.integrations.servicenowAccounts','weight':0x9,'permissions':{'association':![],'loading':!![]},'hidden':function(){const _0x336058=_0x3f4ccb;return _0x4f4300[_0x336058(0x23e0)](_0x336058(0x1755))||!_0x4f4300['hasPermission'](0x51e)&&!_0x4f4300[_0x336058(0x23e0)](_0x336058(0x174b));}}),_0x2218af['saveItem'](_0x3f4ccb(0xf50),{'id':0x518,'title':'FreshsalesAccounts','route':_0x3f4ccb(0x219f),'translate':'INTEGRATIONS.FRESHSALESACCOUNTS','state':_0x3f4ccb(0x21f9),'weight':0xa,'permissions':{'association':![],'loading':!![]},'hidden':function(){const _0xebb866=_0x3f4ccb;return _0x4f4300[_0xebb866(0x23e0)](_0xebb866(0x1755))||!_0x4f4300[_0xebb866(0x2434)](0x518)&&!_0x4f4300[_0xebb866(0x23e0)]('admin');}}),_0x2218af[_0x3f4ccb(0x150e)]('apps.settings',{'id':0x578,'title':_0x3f4ccb(0x24f4),'translate':_0x3f4ccb(0x22b5),'icon':'icon-cog','weight':0x14,'permissions':{'hidden':!![]},'hidden':function(){const _0x1e89f3=_0x3f4ccb;return _0x4f4300[_0x1e89f3(0x23e0)](_0x1e89f3(0x1755))||!_0x4f4300['hasPermission'](0x578)&&!_0x4f4300[_0x1e89f3(0x23e0)](_0x1e89f3(0x174b))||_0x4f4300[_0x1e89f3(0x23e0)](_0x1e89f3(0x174b))&&!_0x4f4300['getCurrentUser']()[_0x1e89f3(0x1da6)];}}),_0x2218af[_0x3f4ccb(0x150e)](_0x3f4ccb(0x1bda),{'id':0x579,'title':_0x3f4ccb(0x41a),'route':_0x3f4ccb(0x15b9),'translate':_0x3f4ccb(0x18ef),'state':_0x3f4ccb(0x1e1),'weight':0x1,'hidden':function(){const _0x4ad056=_0x3f4ccb;return _0x4f4300[_0x4ad056(0x23e0)](_0x4ad056(0x1755))||!_0x4f4300[_0x4ad056(0x2434)](0x578)&&!_0x4f4300[_0x4ad056(0x23e0)](_0x4ad056(0x174b));}}),_0x2218af[_0x3f4ccb(0x150e)](_0x3f4ccb(0x1b7c),{'id':0x57a,'title':'Smtp','route':'mailAccount','translate':_0x3f4ccb(0x2153),'state':_0x3f4ccb(0x1174),'weight':0x1,'hidden':function(){const _0x31fc73=_0x3f4ccb;return _0x4f4300[_0x31fc73(0x23e0)]('agent')||!_0x4f4300[_0x31fc73(0x2434)](0x578)&&!_0x4f4300[_0x31fc73(0x23e0)]('admin');}}),_0x2218af[_0x3f4ccb(0x150e)](_0x3f4ccb(0x17c2),{'id':0x57b,'title':_0x3f4ccb(0xfd5),'route':'network','translate':_0x3f4ccb(0x1191),'state':_0x3f4ccb(0xe1c),'weight':0x1,'hidden':function(){const _0xdd483d=_0x3f4ccb;return _0x4f4300[_0xdd483d(0x23e0)](_0xdd483d(0x1755))||!_0x4f4300[_0xdd483d(0x2434)](0x578)&&!_0x4f4300[_0xdd483d(0x23e0)](_0xdd483d(0x174b));}}),_0x2218af[_0x3f4ccb(0x150e)]('apps.settings.customizations',{'id':0x57f,'title':_0x3f4ccb(0x12a0),'route':_0x3f4ccb(0x15b9),'translate':_0x3f4ccb(0x238b),'state':_0x3f4ccb(0xd74),'weight':0x1,'hidden':function(){const _0x51941a=_0x3f4ccb;return!_0x134e48[_0x51941a(0x1802)]||_0x4f4300[_0x51941a(0x23e0)](_0x51941a(0x1755))||!_0x4f4300['hasPermission'](0x578)&&!_0x4f4300['hasRole'](_0x51941a(0x174b));}}),_0x2218af['saveItem'](_0x3f4ccb(0x1136),{'id':0x580,'title':_0x3f4ccb(0x27aa),'route':_0x3f4ccb(0x605),'translate':_0x3f4ccb(0x1c98),'state':_0x3f4ccb(0x2004),'weight':0x1,'hidden':function(){const _0x7c5ca6=_0x3f4ccb;return!_0x134e48['ai']||_0x4f4300[_0x7c5ca6(0x23e0)](_0x7c5ca6(0x1755))||!_0x4f4300[_0x7c5ca6(0x2434)](0x578)&&!_0x4f4300[_0x7c5ca6(0x23e0)](_0x7c5ca6(0x174b));}}),_0x2218af[_0x3f4ccb(0x150e)]('apps.settings.updates',{'id':0x57c,'title':_0x3f4ccb(0x18eb),'route':'','translate':_0x3f4ccb(0x415),'state':_0x3f4ccb(0x259e),'weight':0x1,'hidden':function(){const _0xc0ab2=_0x3f4ccb;return!_0x134e48[_0xc0ab2(0x18e1)]||_0x4f4300['hasRole'](_0xc0ab2(0x1755))||!_0x4f4300[_0xc0ab2(0x2434)](0x578)&&!_0x4f4300[_0xc0ab2(0x23e0)]('admin');}}),_0x2218af['saveItem'](_0x3f4ccb(0x7b5),{'id':0x57d,'title':_0x3f4ccb(0x1dd9),'route':'','translate':'SETTINGS.LICENSE','state':_0x3f4ccb(0x198b),'weight':0x1,'hidden':function(){const _0x346ed8=_0x3f4ccb;return _0x4f4300[_0x346ed8(0x23e0)](_0x346ed8(0x1755))||!_0x4f4300[_0x346ed8(0x2434)](0x578)&&!_0x4f4300['hasRole'](_0x346ed8(0x174b));}}),_0x2218af['saveItem']('apps.settings.system',{'id':0x57e,'title':'System','route':'','translate':_0x3f4ccb(0x1110),'state':_0x3f4ccb(0x1c74),'weight':0x1,'hidden':function(){const _0x319c66=_0x3f4ccb;return _0x4f4300['hasRole'](_0x319c66(0x1755))||!_0x4f4300['hasPermission'](0x578)&&!_0x4f4300['hasRole'](_0x319c66(0x174b));}}),_0x2218af[_0x3f4ccb(0x150e)](_0x3f4ccb(0x22f4),{'id':0x5dc,'title':_0x3f4ccb(0x1fdf),'translate':_0x3f4ccb(0x1abb),'icon':'icon-fire','weight':0x5,'license':_0x3f4ccb(0x2842),'hidden':function(){const _0x3070a3=_0x3f4ccb;return!_0x134e48[_0x3070a3(0x2842)]||_0x4f4300[_0x3070a3(0x23e0)](_0x3070a3(0x1755))||!_0x4f4300[_0x3070a3(0xff0)](_0x16df52(this))&&!_0x4f4300[_0x3070a3(0x23e0)](_0x3070a3(0x174b));}}),_0x2218af[_0x3f4ccb(0x150e)](_0x3f4ccb(0x756),{'id':0x5dd,'title':_0x3f4ccb(0x15d6),'route':_0x3f4ccb(0x1446),'translate':_0x3f4ccb(0x224),'state':'app.motiondialer.queueCampaigns','weight':0x1,'channel':'bull','hidden':function(){const _0x29cd45=_0x3f4ccb;return _0x4f4300[_0x29cd45(0x23e0)](_0x29cd45(0x1755))||!_0x4f4300['hasPermission'](0x5dd)&&!_0x4f4300[_0x29cd45(0x23e0)](_0x29cd45(0x174b));}}),_0x2218af[_0x3f4ccb(0x150e)]('apps.motiondialer.ivrCampaigns',{'id':0x5de,'title':_0x3f4ccb(0x27f9),'route':_0x3f4ccb(0x8dc),'translate':_0x3f4ccb(0x1cac),'state':'app.motiondialer.ivrCampaigns','weight':0x1,'hidden':function(){const _0xc2b0df=_0x3f4ccb;return _0x4f4300[_0xc2b0df(0x23e0)](_0xc2b0df(0x1755))||!_0x4f4300[_0xc2b0df(0x2434)](0x5de)&&!_0x4f4300[_0xc2b0df(0x23e0)](_0xc2b0df(0x174b));}}),_0x2218af['saveItem'](_0x3f4ccb(0x15b2),{'id':0x5e6,'title':_0x3f4ccb(0x15ab),'route':'','translate':'MOTIONDIALER.REALTIME','state':_0x3f4ccb(0x595),'weight':0x1,'permissions':{'association':![],'crud':![]},'hidden':function(){const _0x506a2e=_0x3f4ccb;return _0x4f4300[_0x506a2e(0x23e0)]('agent')||!_0x4f4300['hasPermission'](0x5e6)&&!_0x4f4300[_0x506a2e(0x23e0)](_0x506a2e(0x174b));}}),_0x2218af['saveItem'](_0x3f4ccb(0x154e),{'id':0x640,'title':_0x3f4ccb(0x22ab),'translate':_0x3f4ccb(0xab9),'icon':_0x3f4ccb(0x2057),'weight':0x15,'permissions':{'association':![]},'hidden':function(){const _0x2aa05b=_0x3f4ccb;return _0x4f4300[_0x2aa05b(0x23e0)](_0x2aa05b(0x1755))||!_0x4f4300['hasPermission'](0x640)&&!_0x4f4300[_0x2aa05b(0x23e0)](_0x2aa05b(0x174b));}}),_0x2218af[_0x3f4ccb(0x150e)](_0x3f4ccb(0x26b0),{'id':0x641,'title':_0x3f4ccb(0x20d9),'route':'','translate':_0x3f4ccb(0x25fb),'state':_0x3f4ccb(0x2542),'weight':0x1,'hidden':function(){const _0x4364fc=_0x3f4ccb;return _0x4f4300[_0x4364fc(0x23e0)](_0x4364fc(0x1755))||!_0x4f4300['hasPermission'](0x640)&&!_0x4f4300['hasRole'](_0x4364fc(0x174b));}}),_0x2218af['saveItem'](_0x3f4ccb(0x267b),{'id':0x6a4,'title':_0x3f4ccb(0x1640),'translate':'JSCRIPTY.JSCRIPTY','icon':'icon-script','weight':0xe,'license':_0x3f4ccb(0x1640),'hidden':function(){const _0x1d025a=_0x3f4ccb;return!_0x134e48['jscripty']||_0x4f4300[_0x1d025a(0x23e0)](_0x1d025a(0x1755))||!_0x4f4300[_0x1d025a(0xff0)](_0x16df52(this))&&!_0x4f4300[_0x1d025a(0x23e0)](_0x1d025a(0x174b));}}),_0x2218af['saveItem'](_0x3f4ccb(0xf0c),{'id':0x6a5,'title':_0x3f4ccb(0x1ea),'route':'jscriptyProject','translate':_0x3f4ccb(0xf4b),'state':_0x3f4ccb(0x19a2),'weight':0x1,'hidden':function(){const _0x562fea=_0x3f4ccb;return _0x4f4300[_0x562fea(0x23e0)](_0x562fea(0x1755))||!_0x4f4300[_0x562fea(0x2434)](0x6a5)&&!_0x4f4300[_0x562fea(0x23e0)](_0x562fea(0x174b));}}),_0x2218af['saveItem']('apps.marketplace',{'id':0x708,'title':_0x3f4ccb(0xa3f),'translate':'MARKETPLACE.MARKETPLACE','icon':_0x3f4ccb(0x23d9),'weight':0x12,'hidden':function(){const _0x901a90=_0x3f4ccb;return _0x4f4300['hasRole']('agent')||!_0x4f4300['hasChildrenPermissions'](_0x16df52(this))&&!_0x4f4300[_0x901a90(0x23e0)](_0x901a90(0x174b));}}),_0x2218af['saveItem'](_0x3f4ccb(0x19a5),{'id':0x709,'title':_0x3f4ccb(0x40f),'route':_0x3f4ccb(0x5f5),'translate':_0x3f4ccb(0x231e),'state':_0x3f4ccb(0x2923),'weight':0x1,'hidden':function(){const _0x31dca8=_0x3f4ccb;return _0x4f4300[_0x31dca8(0x23e0)](_0x31dca8(0x1755))||!_0x4f4300[_0x31dca8(0x2434)](0x709)&&!_0x4f4300[_0x31dca8(0x23e0)](_0x31dca8(0x174b));}}),_0x2218af[_0x3f4ccb(0x150e)](_0x3f4ccb(0x2365),{'id':0x7d0,'title':_0x3f4ccb(0x1ed2),'translate':_0x3f4ccb(0x2024),'icon':_0x3f4ccb(0xeea),'weight':0xc,'license':_0x3f4ccb(0x1ca2),'hidden':function(){const _0x43592c=_0x3f4ccb;return!_0x134e48[_0x43592c(0x1ca2)]||_0x4f4300[_0x43592c(0x23e0)]('agent')||!_0x4f4300[_0x43592c(0xff0)](_0x16df52(this))&&!_0x4f4300[_0x43592c(0x23e0)](_0x43592c(0x174b));}}),_0x2218af[_0x3f4ccb(0x150e)](_0x3f4ccb(0xaec),{'id':0x7d1,'title':_0x3f4ccb(0x17a8),'route':'screenRecording','translate':_0x3f4ccb(0xfc7),'state':_0x3f4ccb(0x1b25),'weight':0x1,'permissions':{'association':![],'loading':!![]},'hidden':function(){const _0x2840a6=_0x3f4ccb;return _0x4f4300[_0x2840a6(0x23e0)](_0x2840a6(0x1755))||!_0x4f4300[_0x2840a6(0x2434)](0x7d1)&&!_0x4f4300[_0x2840a6(0x23e0)](_0x2840a6(0x174b));}}),_0x2218af['saveItem'](_0x3f4ccb(0x150),{'id':0x834,'title':_0x3f4ccb(0x113a),'translate':_0x3f4ccb(0x7ee),'icon':'icon-whatsapp','weight':0xb,'license':'whatsapp','hidden':function(){const _0x325b6b=_0x3f4ccb;return!_0x134e48[_0x325b6b(0xff9)]||_0x4f4300[_0x325b6b(0x23e0)](_0x325b6b(0x1755))||!_0x4f4300[_0x325b6b(0xff0)](_0x16df52(this))&&!_0x4f4300[_0x325b6b(0x23e0)](_0x325b6b(0x174b));}}),_0x2218af['saveItem'](_0x3f4ccb(0xee6),{'id':0x835,'title':_0x3f4ccb(0xef),'route':_0x3f4ccb(0x1b3b),'translate':'WHATSAPP.WHATSAPPQUEUES','state':_0x3f4ccb(0x262e),'weight':0x1,'channel':_0x3f4ccb(0xff9),'hidden':function(){const _0x567925=_0x3f4ccb;return _0x4f4300[_0x567925(0x23e0)]('agent')||!_0x4f4300[_0x567925(0x2434)](0x835)&&!_0x4f4300[_0x567925(0x23e0)](_0x567925(0x174b));}}),_0x2218af[_0x3f4ccb(0x150e)](_0x3f4ccb(0x1c2d),{'id':0x836,'title':_0x3f4ccb(0xc7c),'route':'whatsappAccount','translate':'WHATSAPP.WHATSAPPACCOUNTS','state':_0x3f4ccb(0x5cd),'weight':0x1,'channel':_0x3f4ccb(0xff9),'hidden':function(){const _0x3bc040=_0x3f4ccb;return _0x4f4300[_0x3bc040(0x23e0)](_0x3bc040(0x1755))||!_0x4f4300[_0x3bc040(0x2434)](0x836)&&!_0x4f4300[_0x3bc040(0x23e0)](_0x3bc040(0x174b));}}),_0x2218af[_0x3f4ccb(0x150e)]('apps.whatsapp.realtime',{'id':0x83e,'title':'Realtime','route':'','translate':'APP.REALTIME','state':_0x3f4ccb(0x2829),'weight':0x1,'permissions':{'association':![],'crud':![]},'hidden':function(){const _0x24b5fd=_0x3f4ccb;return _0x4f4300[_0x24b5fd(0x23e0)](_0x24b5fd(0x1755))||!_0x4f4300[_0x24b5fd(0x2434)](0x83e)&&!_0x4f4300['hasRole']('admin');}}),_0x2218af[_0x3f4ccb(0x28fa)](),_0x1df849[_0x3f4ccb(0x150e)](_0x3f4ccb(0x8b0),{'title':_0x3f4ccb(0x26b7),'group':!![],'weight':0x1}),_0x1df849[_0x3f4ccb(0x150e)](_0x3f4ccb(0x1c43),{'id':0x64,'title':'Home','translate':_0x3f4ccb(0x2370),'icon':'icon-home','weight':0x1}),_0x1df849['saveItem'](_0x3f4ccb(0x24ee),{'id':0x65,'title':'Dashboard','translate':_0x3f4ccb(0x19bc),'state':_0x3f4ccb(0x130),'view':_0x3f4ccb(0x130),'icon':_0x3f4ccb(0x1f94),'iconClass':_0x3f4ccb(0x271f),'weight':0x1,'hidden':function(){const _0x6fb0c=_0x3f4ccb;return!_0x4f4300[_0x6fb0c(0x2434)](0x65);}}),_0x1df849[_0x3f4ccb(0x150e)](_0x3f4ccb(0x2272),{'id':0x66,'title':'Contacts','translate':_0x3f4ccb(0x1811),'state':_0x3f4ccb(0x1471),'view':_0x3f4ccb(0x1471),'icon':_0x3f4ccb(0x130a),'iconClass':_0x3f4ccb(0x245c),'weight':0x2,'hidden':function(){const _0x49a10f=_0x3f4ccb;return!_0x134e48['cm']||!_0x4f4300[_0x49a10f(0x2434)](0x66);}}),_0x1df849[_0x3f4ccb(0x150e)](_0x3f4ccb(0x590),{'id':0x67,'title':_0x3f4ccb(0x1efa),'translate':'DASHBOARDS.MYCONTACTS','state':_0x3f4ccb(0x14e6),'view':'mycontacts','icon':_0x3f4ccb(0x1c49),'iconClass':_0x3f4ccb(0x245c),'weight':0x3,'hidden':function(){const _0x23aa76=_0x3f4ccb;return!_0x134e48['cm']||!_0x4f4300[_0x23aa76(0x2434)](0x67);}}),_0x1df849[_0x3f4ccb(0x150e)]('apps.home.scheduled',{'id':0x71,'title':_0x3f4ccb(0x759),'translate':_0x3f4ccb(0x17b2),'state':_0x3f4ccb(0x10dc),'view':_0x3f4ccb(0x10dc),'icon':'icon-calendar-clock','iconClass':_0x3f4ccb(0x1214),'weight':0x3,'hidden':function(){const _0x463593=_0x3f4ccb;return!_0x134e48[_0x463593(0x2842)]||!_0x4f4300[_0x463593(0x2434)](0x71);}}),_0x1df849['saveItem'](_0x3f4ccb(0x1a1),{'id':0x6e,'title':_0x3f4ccb(0x127d),'translate':_0x3f4ccb(0x16ae),'state':_0x3f4ccb(0xe6),'view':_0x3f4ccb(0xe6),'icon':'icon-phone','iconClass':_0x3f4ccb(0x5fe),'weight':0x4,'hidden':function(){const _0x1e8965=_0x3f4ccb;return!_0x134e48[_0x1e8965(0xe6)]||!_0x4f4300['hasPermission'](0x6e);}}),_0x1df849['saveItem'](_0x3f4ccb(0x2128),{'id':0x6f,'title':_0x3f4ccb(0x1933),'translate':_0x3f4ccb(0x14fe),'state':_0x3f4ccb(0x521),'view':'abandoned','icon':_0x3f4ccb(0x28c4),'iconClass':_0x3f4ccb(0x2602),'weight':0x5,'hidden':function(){const _0x2355d7=_0x3f4ccb;return!_0x134e48[_0x2355d7(0xe6)]||!_0x4f4300[_0x2355d7(0x2434)](0x6f);}}),_0x1df849[_0x3f4ccb(0x150e)](_0x3f4ccb(0x15d9),{'id':0x68,'title':_0x3f4ccb(0xd72),'translate':'DASHBOARDS.RECORDINGS','state':_0x3f4ccb(0x1f8d),'view':'recordings','icon':_0x3f4ccb(0x1096),'iconClass':_0x3f4ccb(0x1da5),'weight':0x6,'hidden':function(){const _0xf7746e=_0x3f4ccb;return!_0x134e48['voice']||!_0x4f4300[_0xf7746e(0x2434)](0x68);}}),_0x1df849[_0x3f4ccb(0x150e)](_0x3f4ccb(0x1fd5),{'id':0x69,'title':_0x3f4ccb(0x712),'translate':'DASHBOARDS.CHAT','state':_0x3f4ccb(0xa7f),'view':_0x3f4ccb(0xa7f),'icon':_0x3f4ccb(0x1bed),'iconClass':_0x3f4ccb(0x1290),'weight':0x7,'hidden':function(){const _0x332bab=_0x3f4ccb;return!_0x134e48['chat']||!_0x4f4300[_0x332bab(0x2434)](0x69);}}),_0x1df849[_0x3f4ccb(0x150e)](_0x3f4ccb(0x1ef8),{'id':0x6a,'title':_0x3f4ccb(0x3b1),'translate':_0x3f4ccb(0x2934),'state':_0x3f4ccb(0x56b),'view':'mail','icon':_0x3f4ccb(0x1c3d),'iconClass':_0x3f4ccb(0xa78),'weight':0x8,'hidden':function(){const _0x3e4fd9=_0x3f4ccb;return!_0x134e48[_0x3e4fd9(0x56b)]||!_0x4f4300[_0x3e4fd9(0x2434)](0x6a);}}),_0x1df849[_0x3f4ccb(0x150e)](_0x3f4ccb(0x1155),{'id':0x6b,'title':_0x3f4ccb(0x10f8),'translate':_0x3f4ccb(0x797),'state':_0x3f4ccb(0x929),'view':_0x3f4ccb(0x929),'icon':_0x3f4ccb(0x1580),'iconClass':_0x3f4ccb(0x1879),'weight':0x9,'hidden':function(){const _0x16fb9e=_0x3f4ccb;return!_0x134e48[_0x16fb9e(0x25ca)]||!_0x4f4300[_0x16fb9e(0x2434)](0x6b);}}),_0x1df849[_0x3f4ccb(0x150e)](_0x3f4ccb(0x204f),{'id':0x6c,'title':'Openchannel','translate':_0x3f4ccb(0x189c),'state':_0x3f4ccb(0x7d9),'view':_0x3f4ccb(0x7d9),'icon':_0x3f4ccb(0x9b8),'iconClass':_0x3f4ccb(0x1d73),'weight':0xa,'hidden':function(){const _0x26301d=_0x3f4ccb;return!_0x134e48[_0x26301d(0x7d9)]||!_0x4f4300[_0x26301d(0x2434)](0x6c);}}),_0x1df849['saveItem'](_0x3f4ccb(0x16d0),{'id':0x6d,'title':_0x3f4ccb(0xe86),'translate':_0x3f4ccb(0x8fc),'state':_0x3f4ccb(0x22d9),'view':_0x3f4ccb(0x22d9),'icon':_0x3f4ccb(0xc0e),'iconClass':_0x3f4ccb(0x141d),'weight':0xb,'hidden':function(){const _0x45ab56=_0x3f4ccb;return!_0x134e48[_0x45ab56(0x22d9)]||!_0x4f4300[_0x45ab56(0x2434)](0x6d);}}),_0x1df849['saveItem'](_0x3f4ccb(0x1c8c),{'id':0x72,'title':_0x3f4ccb(0x113a),'translate':_0x3f4ccb(0xc06),'state':_0x3f4ccb(0xff9),'view':_0x3f4ccb(0xff9),'icon':_0x3f4ccb(0x28bf),'iconClass':_0x3f4ccb(0xfdd),'weight':0xc,'hidden':function(){const _0x94e602=_0x3f4ccb;return!_0x134e48[_0x94e602(0xff9)]||!_0x4f4300[_0x94e602(0x2434)](0x72);}}),_0x2fc36c[_0x3f4ccb(0x16ad)](_0x3f4ccb(0x1787),function(_0x3419b4){const _0x58c437=_0x3f4ccb;_0x3419b4[_0x58c437(0x139d)][_0x58c437(0x1132)]===_0x2fc36c[_0x58c437(0x1132)]&&_0x573ef7[_0x58c437(0x25a4)](_0x58c437(0x26ab));});}const _0x3f7ec7=_0x3acbf7;;const _0x238e6f=['angular-toasty',_0x313a4d(0x283b),_0x313a4d(0x2513),'app.navigation',_0x313a4d(0x10a4),_0x313a4d(0xe87),_0x313a4d(0x197b),'app.footer',_0x313a4d(0x2843),'app.staff',_0x313a4d(0x1d7a),_0x313a4d(0x2494),_0x313a4d(0x1f22),_0x313a4d(0x19d5),_0x313a4d(0x6c1),'app.openchannel',_0x313a4d(0x28d9),_0x313a4d(0xe84),_0x313a4d(0xea4),_0x313a4d(0x1925),_0x313a4d(0x112b),'app.settings',_0x313a4d(0x234d),_0x313a4d(0x23ba),'app.jscripty',_0x313a4d(0x9f8),_0x313a4d(0xa59),_0x313a4d(0x5dc),_0x313a4d(0x678),_0x313a4d(0x14a4),_0x313a4d(0x1348),_0x313a4d(0x247d),'app.errors'];angular['module']('motion',_0x238e6f)[_0x313a4d(0x1750)](_0x313a4d(0x247f),_0x17141b)[_0x313a4d(0x989)](_0x3b1600)[_0x313a4d(0x28f0)](_0x313a4d(0x1372),_0xabe46b)[_0x313a4d(0x1dd6)]('limitObjectFromTo',_0x32ac7e)[_0x313a4d(0x1dd6)](_0x313a4d(0x93b),_0x2311a0)[_0x313a4d(0x1750)](_0x313a4d(0x15f6),_0x364b4a)[_0x313a4d(0x1750)](_0x313a4d(0x1768),_0x2e3f54)[_0x313a4d(0x1750)](_0x313a4d(0x2dc),_0x5c1c49)[_0x313a4d(0x989)](_0x32076e)[_0x313a4d(0x1caa)](_0x3aedd6)[_0x313a4d(0x1750)](_0x313a4d(0x279d),_0x3daa89)['controller'](_0x313a4d(0xda4),_0x3f7ec7);},0x1a2c:(_0x2e5cce,_0x408bee,_0x1f72bf)=>{const _0x3e9e0c=a0_0x54e64e;var _0x42c3ad={'./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 _0x2f50d6(_0x1bfdfe){var _0x3f9aaa=_0x212162(_0x1bfdfe);return _0x1f72bf(_0x3f9aaa);}function _0x212162(_0x70af61){const _0x27ed78=a0_0x3bb9;if(!_0x1f72bf['o'](_0x42c3ad,_0x70af61)){var _0x21dea9=new Error(_0x27ed78(0xc0d)+_0x70af61+'\x27');_0x21dea9[_0x27ed78(0x2148)]=_0x27ed78(0x3dd);throw _0x21dea9;}return _0x42c3ad[_0x70af61];}_0x2f50d6[_0x3e9e0c(0x627)]=function _0x3959c2(){return Object['keys'](_0x42c3ad);},_0x2f50d6[_0x3e9e0c(0x2922)]=_0x212162,_0x2e5cce[_0x3e9e0c(0x102c)]=_0x2f50d6,_0x2f50d6['id']=0x1a2c;},0x1666:_0x530686=>{const _0x5c1941=a0_0x54e64e;'use strict';_0x530686[_0x5c1941(0x102c)]=angular;}},0x0,[[0x2069,0x29a,0x301]]]); \ No newline at end of file diff --git a/public/app-8cbb67fa2749772666de.js b/public/app-8cbb67fa2749772666de.js deleted file mode 100644 index 5180469..0000000 --- a/public/app-8cbb67fa2749772666de.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_0x24de=['always','US\x20West\x20(Oregon)','SalesforceConfiguration\x20deleted!','Clickatell','deleteOpenchannelAccountInteraction','src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/gotop/dialog.html/dialog.html','deleteIntervalInterval','Input','SYSTEM:GET_LISTS','sortable','ap-northeast-1','chatWebsite@get','FAX.FAX','intZendeskAccount','$emit','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20zohoConfiguration?','blue-300-fg\x20icon-phone-outgoing','reserved','DeskAccountsController','src/js/modules/main/apps/motiondialer/views/ivrCampaigns/create/dialog.html/dialog.html','variable_id','TOOLS.NOTIFICATIONS.CONDITIONS_DELETE_MESSAGE','Options','globalCustomFields','src/js/modules/main/apps/voice/views/outboundroutes/outboundroutes.html/outboundroutes.html','deselectOpenchannelAccounts','onUpdateChatQueue','setScrollEl','IvrCampaignblacklistaddController','VOICE.VOICERECORDINGS','src/js/modules/main/apps/tools/views/schedules/schedules.html/schedules.html','priority','FreshsalesConfiguration\x20properly\x20saved!','smsTransferReport','api/sounds/describe','outboundQueues','50\x20100\x20200\x20A100','isBefore','SugarcrmAccounts','STAFF.PERMISSIONS_SECTION_TITLE','SmsQueuesController','AllCondition\x20properly\x20created','src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/close/dialog.html/dialog.html','deselectReports','attachment','EditOpenchannelAccountAppdialogflowDialogController','CreateOrEditFreshdeskAccountItemDialogController','VOICE.INBOUNDROUTES','channelStatusOut','endDate','The\x20context\x20will\x20be\x20deleted.','Delete\x20MailSubstatus','Canadian\x20English\x20Female','RECALLME','priorities','track','awsLexRegion','blurCollapse','addFields','selectedFaxAccountInteractions','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20project?','onRemoveFaxQueueChannel','msMasonry:relayout','APP.CANT_DOWNLOAD_THIS_FILE','exportSelectedSalesforceAccounts','Substatus','/smtps','/whatsapp','amber','saveSmsAccount','autocomplete','Europe/Zaporozhye','api/integrations/freshdesk/configurations/:id/tags','controlsList','$transitions','customField','arraydirectmedia','EditInternalAppvoicemailDialogController','\x27very\x27','passwordPattern','addNewFreshsalesConfiguration','selectedDeskConfiguration','TOOLS.NOTIFICATIONS.ACTION_SAVED_SUCCESS_TITLE','api/openchannel/interactions/:id','SYSTEM:GETfaxQueue','getMailAccountInteractions','api.smsAccount.update','deleteSelectedWhatsappAccounts','/callysquare','api/whatsapp/queues/:id/members','exportSelectedMusicOnHolds','resetViewer','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20metrics?','addNewProject','customizations','ListCustomFieldsController','api.squareRecording.save','DASHBOARDS.OPENED','euritalianfemale','Chinese\x20Male','No\x20resources\x20enabled','Abandoned','selectedTrunks','src/js/modules/main/apps/integrations/views/vtigerAccounts/edit/view.html/view.html','onWithoutApply','Asia/Yerevan','VOICE.EDIT_MUSICONHOLD','Service\x20worker\x20registration\x20failed','src/js/modules/main/apps/integrations/views/sugarcrmAccounts/edit/view.html/view.html','_interactions:remove','removeListener','delete\x20userProfile','isDisabled','DASHBOARDS.DASHBOARDS','SquareRecording\x20properly\x20saved!','readAsText','Dashboards','Europe/Stockholm','About','deleteSalesforceAccount','Catalan\x20(Spain)','readOnly','Status\x20properly\x20changed\x20to:\x20','The\x20sound\x20will\x20be\x20deleted.','Pacific/Wake','selectedMailAccountApps','OpenchannelAccountId','icon-script','createdAt,updatedAt,id,name,type,active,description,icon,sidebar,path,adminUrl,agentUrl,scriptName,scriptPath,version','toJSON','Africa/Accra','getSmsQueues','app/main/apps/contactmanager','TriggersController\x20as\x20vm','app.chat.realtime.agents','Afrikaans','src/js/modules/core/directives/ms-phonebar/prefix/dialog.html/dialog.html','installplugin','init','speed','refer','paramDefaults','app.tools.trunks.edit','client_email','api/fax/interactions/:id/messages','selectedPauses','smsInteraction','The\x20tag\x20will\x20be\x20deleted.','saveDraft','selectedResultIndex','Africa/Monrovia','Voice','call_id','443','downloadSmsInteraction','src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/noop/dialog.html/dialog.html','sat','Russell','api/cm/hopper_final/campaign/countAttributes/:id','Util','QueueCampaign\x20properly\x20cloned','loadShortcuts','SYSTEM:GETmusiconholds','api/sms/accounts/describe','file','Swahili','messagesAlignment','SugarcrmAccountsController','-copy','US\x20Money','SmtpController','InternalRoute\x20properly\x20created','HMAC','src/js/modules/main/apps/voice/views/outboundroutes/edit/view.html/view.html','Vitoria','Would\x20you\x20like\x20to\x20update\x20your\x20system?','removed','openMailDraft','monthNumber','Not\x20defined','InboundRoute\x20updated!','Atlantic/Cape_Verde','^msWidget','AdvancedSearchController','api/plugins/:id/clone','CreateOrEditFreshdeskConfigurationDialogController','UserVoiceQueue','api.staff.save','\x27booked\x27','ms-widget','callbackurl:\x22','selectAllReports','BookedProgressive','api.trigger.save','delete\x20item','chat_queue_waiting_interaction:save','tools','api.intZendeskAccount.save','transferNumber','Italian\x20(Italy)\x20/\x20Finnish\x20(Finland)','api/openchannel/accounts/:id/send','\x2712000\x27','removeUsers','api.intZendeskConfiguration.save','\x20will\x20be\x20deleted.','motion2.home.','SYSTEM:DELETEscreenRecording','TOOLS.NEW_TEMPLATE','api.disposition.update','onRemoveUserMailQueue','SYSTEM:ADDTAGS','sugarcrmAccounts','items','$log','queryResult','ProjectspermissionaddController','currentStepNumber','Whatsapp\x20Report\x20Transfer','eu-west-3','app/main/apps/analytics','preload','template_id','onSaveOutbound','delete\x20customFields','gotoQueueCampaigns','addNewFaxQueue','api.userProfile.delete','English\x20(UK)','createOrEditChatWebsiteChatCannedAnswer','field,alias,function,format,groupBy,orderBy,custom,MetricId','QueueCampaignsController','MailCannedAnswer\x20properly\x20deleted!','runtranscribesentimentSelectedVoiceRecordings','api.mailSubstatus.save','The\x20internalroute\x20will\x20be\x20deleted.','msWidgetBack','erlangBusyFactor','STAFF.NEW_USERPROFILE','Delete\x20General','startMonitor','stringify','Telugu\x20(India)','goToTrunk','motion2.home.mycontacts:','saveUserProfile','The\x20voicePrefix\x20will\x20be\x20deleted.','\x274800\x27','MohSound\x20properly\x20saved!','MetricsController','ngBindHtmlUnsafe','plugin_','Tags\x20has\x20been\x20set!','reject','delete\x20trunk','SYSTEM:GETopenchannelAccounts','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20chatCannedAnswer?','rpcChatQueues','apps.motiondialer.ivrCampaigns','X-callback-url:\x20','\x27fax_messages\x27','createOrEditPlugin','/voiceRecordings','yearsS','addNewVoiceRecording','setBaseUrl','/salesforceAccounts','campaigntype','order','PERMISSIONS','Australia/Melbourne','api/analytics/metrics/:id','adminUrl','treeCustomInstance','\x27sv\x27','ZohoConfiguration\x20properly\x20created','openchannelMessage:save','vm.options.isOpen','allowedItems','runtranscribesentimentruntranscribesentiment','Timeout','intDeskField','Vertical\x20Navigation','Team\x20properly\x20saved!','getScrollEl','GlobalCustomField\x20properly\x20deleted!','desk','api/fax/interactions/describe','\x2727\x27','saveAction','gotoDeskAccounts','src/js/modules/main/apps/integrations/views/zohoAccounts/zohoAccounts.html/zohoAccounts.html','MOTIONDIALER.IVRCAMPAIGNS','openedAt','exportSelectedSquareRecordings','password','webrtc','HOUR\x20(','deleteSelectedOpenchannelAccounts','MailAccount\x20updated!','WHATSAPP.NEW_WHATSAPPACCOUNT','api/square/odbc/describe','TOOLS.TAGS','all','dddd','app.chat.chatQueues','Jacek\x20(Polish,\x20Male)','Agentchange_avatarController','cannedAnswer','SYSTEM:GETcmList','MOTIONDIALER.NEW_QUEUECAMPAIGN','\x27nl\x27','noauth','showLastMessage','+10:30','userpic','src/js/modules/core/directives/ms-widget-engine/ms-widget-engine.html/ms-widget-engine.html','America/Nassau','restart','Process\x20stopped!','createOrEditDynamics365Configuration','id,fullname,role','savechanSpy','variablesById','-name','varPath','Latvian\x20(Latvia)','id,firstName,lastName,phone,email','/fax','api.screenRecording.delete','MailQueueteamaddController','realm','CannedAnswer\x20properly\x20created','api/variables/:id/clone','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20zendeskAccounts?','arraysendrpid','Justin','deselectMetrics','SYSTEM:DELETEanalyticExtractedReport','ZohoAccounts','msTimelineItem','changeLanguage','addNewSalesforceConfiguration','DASHBOARDS.HOME','Indian/Reunion','onMessageUpdate','app.voice.chanSpies','\x27us-west-2\x27','src/js/modules/main/apps/tools/views/intervals/edit/apps/interval/dialog.html/dialog.html','Email\x20Report\x20Transfer','api/cloudProviders/:id','MusicOnHoldsController','getProjectSessions','Delete\x20MailQueue','Delete\x20SugarcrmAccount','variable','Miguel','CustomDashboard\x20properly\x20created','Moldavian','DESCRIBE_CM_CONTACTS','deleteSelectedOpenchannelAccountInteractions','onSaveOpenchannelQueueChannel','chooseFromList','mailAccountInteractions','show','deleteSelectedTriggerAnyConditions','commitDate','Edit_permission','Malayalam\x20(India)','selectedFreshsalesAccounts','api/integrations/freshsales/accounts/:id/clone','setCurrentUser','deleteSelectedMusicOnHolds','cookieAlertOnClose','Fields\x20saved!','api/voice/extensions/describe','src/js/modules/main/apps/voice/views/voicePrefixes/create/dialog.html/dialog.html','TOOLBAR.WEBRTC_LICENSE_NOT_ENABELD','api/integrations/freshsales/fields/:id','VOICE.SELECT_TYPE','dateFilterLocalizationFactory','api/whatsapp/queues/:id/users','Pause\x20properly\x20saved!','grey-fg\x20icon-minus-circle','ServicenowAccountController','mailQueues','src/js/modules/main/apps/mail/views/mailAccounts/mailAccounts.html/mailAccounts.html','api/sms/queues/:id/teams','allCondition','You\x20can\x27t\x20remove\x20an\x20outbound\x20route\x20associated\x20to\x20an\x20out\x20prefix','getSenders','globalStatusTime','prototype','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20whatsappQueues?','\x20has\x20been\x20updated!','\x27loose\x27','sms_queue:save','GET_INTERVAL','group','apps.voice.outboundroutes','deleteFaxAccount','id,name,type','app.chat.chatQueues.edit','deleteInboundRoute','api/trunks/:id/clone','freshdeskAccounts','rpcSmsQueuesWaitingInteractions','\x27integrationTab\x27','\x27force_rport\x27','section','playrecording','SYSTEM:GETjscriptyProject','api/cm/custom_fields/:id','Indonesian','api.chatProactiveAction.save','IvrCampaigns','SquareRecordingsController\x20as\x20vm','Spanish\x20(Colombia)','shortTime','mailApplication','chchinesefemale','unreadMessages','America/Bahia_Banderas','virtual','SYSTEM:DELETEanalyticMetric','yes','Playback','setLockedItem','src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/agent/dialog.html/dialog.html','mailTransferReport','\x27voice_recordings\x27','Conchita\x20(Spanish,\x20Castilian,\x20Female)','selectedIndex','expandAnimation','createdAt,updatedAt,id,role,fullname,name,email,password,description,autointernal,internal,voicemail,transport,nat,allow,callerid,context,callgroup,pickupgroup,videosupport,encryption,phone,mobile','createOrEditSquareRecording','-11:00','newSalesforceAccount','attachments','ProjectcloneController','MouseOver','amber-A200','hue-3','api.intFreshsalesConfiguration.update','SchedulesController\x20as\x20vm','VoiceQueuesController','DASHBOARDS.SELECT_ACCOUNT','List\x20properly\x20created!','Trunk','api.squareRecording.update','Dashboard','Canadian\x20French\x20Male','Process\x20restarted!','msFormWizard','api/integrations/salesforce/fields/describe','onSaveUserOpenchannelQueue','app.tools.sounds','api.user.save','AbandonedCallsVoiceRealtimeController\x20as\x20vm','dashboardSections','Fax\x20Messages','currentReport','rpc@getFaxAccounts','ShowMessageInfoDialogController','WHATSAPPACCOUNT:SEND','deleteZendeskConfiguration','rpc@getMailQueues','Punjabi','Giorgio\x20(Italian,\x20Male)','ListagentaddController','mail_queue_waiting_interaction:remove','SYSTEM:GETsounds','rpcWhatsappQueuesWaitingInteractions','api/attachments/describe','start','QueueId','apply','The\x20interval\x20will\x20be\x20deleted.','api/integrations/zendesk/accounts/:id/fields','iframe','exportSelectedChatWebsiteProactiveActions','mailQueue@get','app.sms.realtime','SYSTEM:DELETEsound','newMailCannedAnswer','Camino','faxQueue@get','apps.tools.pauses','onInteractionOpen','-03:30','Pacific/Niue','speaker','api/users/:id/openchannel_interactions','CDR(type)=outbound','lastMessage','FAX.REALTIME','api/integrations/salesforce/fields/:id','arrayattach','promise','delete\x20voicemail','api/chat/queues/:id/members','FreshsalesAccountController\x20as\x20vm','callStatuses','api/voice/queues/:id/hopper_histories','isJsonString','Tag\x20properly\x20saved!','newChatCannedAnswer','DASHBOARDS.DISABLED','icon-help','api/templates/:id','app.mail.mailQueues.edit','$mdColorPalette','utc','DENIED','newFreshdeskAccount','api/integrations/dynamics365/accounts/:id','deleteDynamics365Account','/integrations','getHopperBlacks','APP.RECALLME','api/rpc/agents','api/settings/:id/clone','saveSound','api/voice/queues/:id/clone','CreateOrEditCustomFieldDialogController','You\x20must\x20have\x20at\x20least\x20one\x20theme\x20named\x20\x22default\x22','/assets/images/theme-options/horizontal-nav.jpg','onReferCallback\x20->\x20session,\x20textContent,\x20position,\x20delay','dd\x20MMM\x20yyyy','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20cloudProviders?','IS\x20NULL','injector','apps.integrations.vtigerAccounts','EditFaxAccountAppqueueDialogController','CAMPAIGN\x20NOT\x20ACTIVE','CreateOrEditGlobalCustomFieldDialogController','OPENCHANNEL.NEW_OPENCHANNELACCOUNT','icon-account-multiple','selectedDeskAccounts','app.voice.voiceQueues.edit','The\x20faxAccount\x20will\x20be\x20deleted.','monitors','copydialog','scheduledat','/projects','arrayannounce_position','AgentHomeOpenchannelController','createdAt,updatedAt,id,name,description,table,conditions,joins','addNewPause','twchinesefemale','api/openchannel/messages/:id/reject','dynamics365','SYSTEM:GET_REPORTS','chatCannedAnswers','delete\x20application','-starttime','phoneBarAutoAnswer','selectContact','deleteGlobalCustomField','Error','srcObject','Oromo','api/whatsapp/interactions/:id/clone','deleteOdbc','delete\x20hopperBlacks','\x20properly\x20hangup!','Africa/Ndjamena','INTEGRATIONS.NEW_FRESHDESKACCOUNT','ProjectController\x20as\x20vm','America/Tegucigalpa','api.mailSubstatus.update','ANALYTICS.METRICS','onInteractionSave','CustomReports','registerForm','\x27cm_hopper_history\x27','src/js/modules/toolbar/layouts/vertical-navigation/toolbar.html/toolbar.html','APP.WRONG_EXTENSION','selectAllFaxAccounts','es-PR','current','exportSelectedTelephones','callback','\x20not\x20found','api/rpc/fax/queues/:id/notify','treeDefaultEvents','position','green-300-fg\x20icon-phone-in-talk','DASHBOARDS.CLOSED','msDatepickerFixConfig','ringing','apps.home.abandoned','selectedTriggerActions','A100','api/schedules/:id/clone','globalCustomField','vm.voiceQueue.joinempty.length\x20===\x201\x20&&\x20vm.voiceQueue.joinempty[0]\x20===\x20\x27invalid\x27','America/Belem','SmsAccountInteractionsController','UK\x20English\x20Female','Europe/Paris','Call\x20properly\x20handled!','UserMailAccount','savePassword','api/chat/websites/:id/applications','eurczechfemale','deleteSelectedSubjects','Tajik','mailQueueReport','splice','newZohoAccount','src/js/modules/quick-panel/tabs/groups/info/dialog.html/dialog.html','api/rpc/outbound/channels','Chinese\x20(Hong\x20Kong)','GlobalCustomFields','GeneralsController','globalDispositions','onSaveMailQueue','toISOString','selectAllServicenowAccounts','Metric\x20properly\x20saved!','QueuesMotionDialerRealtimeController\x20as\x20vm','contact_import_error','onSubmit','newContext','MAIL.MAILQUEUES','api/jscripty/projects/describe','apps.tools.cannedAnswers','mar','page','ar-PS','EditSmsAccountAppagentDialogController','api/square/recordings/:id/download','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20agent?','apps.help.about','saveContact','getMailQueuesWaitingInteractions','TOOLS.NOTIFICATIONS.TRIGGER_DELETE_MESSAGE','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20telephones?','api/dashboards/items/:id/clone','saveServicenowConfiguration','PREVIEW','api/pauses/:id','api/tags/:id/clone','every','body','freshdeskConfiguration','securePassword','showTooltip','gotoSmsAccounts','en-NG','PluginController','\x27yes\x27','EditWhatsappAccountApptagDialogController','api/cm/lists/:id/fields','jscriptyAnswerReport','Gwineth','newProject','blue-300-fg\x20icon-phone-incoming','treeCustomData','api/users/describe','allResourcesEnabled','ChatWebsiteScriptController','arrayecm','api/voice/queues/describe','The\x20whatsappQueue\x20will\x20be\x20deleted.','English','api.analyticMetric.save','app.staff.teams','noanswer','icon-heart','deleteOpenchannelQueuesWaitingInteractions','chatCapacity','msNavigationHorizontalNode','createOrEditVariable','WEBSITES','msScrollConfig','api/analytics/extracted_reports/:id/download','createOrEditChatQueue','TOOLS.NOTIFICATIONS.ACTION_DELETED_SUCCESS_TITLE','APP.ALL_TEAMS','ProjectId','Interaction:update','src/js/modules/main/apps/jscripty/views/projects/create/dialog.html/dialog.html','getApiObject','api/mail/queues/:id/clone','showMenu','Asia/Irkutsk','$interval','getMetricName','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','getDispositions','gotoZendeskAccounts','router','getScheduledCalls','api.voiceContext.delete','eu-west-1','collapseAnimation','delete\x20offlineMessage','selectedWhatsappAccounts','newMailQueue','api.intFreshsalesAccount.update','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20node?','SYSTEM:GET_FAXACCOUNTS','voicePause','projectId','rpc@getMailAccounts','Norwegian','Asia\x20Pacific\x20(Seoul)','attrSerie','\x2741\x27','src/js/modules/main/apps/openchannel/views/openchannelQueues/edit/view.html/view.html','en-IN','step','exportSelectedVoicemailMessages','Whatsapp\x20Report\x20Queue','America/Glace_Bay','dialstatus','mailSubtatuses','chatMessage','src/js/modules/main/apps/integrations/views/zendeskAccounts/edit/zendeskConfigurations/dialog.html/dialog.html','outboundReCallsDay','getCannedAnswers','ChineseTraditional','createOrEditUser','api/users/:id/scheduled_calls','getColorByItem','squareReportDetail','SettingsController','onUpdateWhatsappInteraction','Delete\x20Template','deleteWhatsappAccount','fax_queue:save','Indonesian\x20(Indonesia)','DASHBOARDS.JULY','Delete\x20FaxAccount','Antarctica/DumontDUrville','showInteraction','api/integrations/vtiger/configurations/:id','openSettings','msMasonryController','.txt','src/js/modules/core/directives/ms-stepper/templates/horizontal/horizontal.html/horizontal.html','api.voiceMail.delete','deleteSelectedChatWebsiteProactiveActions','STAFF.NOTIFICATIONS.PERMISSIONS_ENABLED_ALL_SUCCESS_MESSAGE','api.agent.save','oldPassword','src/js/modules/main/apps/voice/views/internalroutes/edit/apps/queue/dialog.html/dialog.html','Label','msNavigation::stateMatched','SMS.REALTIME','FaxAccountsController\x20as\x20vm','OPENCHANNEL.EDIT_','closeOnClick','testtestOdbc','int','src/js/modules/main/apps/voice/views/internalroutes/edit/apps/hangup/dialog.html/dialog.html','es-CO','found','view','cmHopperHistory','xmd-contactid','delete\x20hopperHistories','deleteSelectedMusicOnHoldMohSounds','SYSTEM:UPDATEanalyticTreeReport','themes','pickerPosition','selectedSquareRecordings','ShowOfflineMessageOfflineMessageDialogController','analytics','DeskConfiguration\x20properly\x20saved!','b:\x20Only\x20spy\x20on\x20channels\x20involved\x20in\x20a\x20bridged\x20call.','MailSubstatus\x20properly\x20deleted!','handleMouseenter','deleteFaxQueue','error','api/rpc/chat/queues/waitinginteractions','api.intServicenowConfiguration.update','pick','save','api/voice/dials/reports/describe','Squared','\x27whatsapp_interactions\x27','IS_NOT_AMONG','exportSelectedDispositions','/plugin/:id','selectedMailAccounts','dayOfWeekTo','voiceRecording','America/Yellowknife','lastOut','src/js/modules/main/apps/motiondialer/views/queueCampaigns/edit/agentadd/agentadd.html/agentadd.html','deleteContact','aws_secret_access_key','countbusyretry','app.help.about','id,alias','exists','selectedMailShowDetails','JSCRIPTY.ALL_SURVEY_DATA_WILL_BE_LOST','DEFAULT','dialPredictiveIntervalMaxThreshold','globalStatusFilter','Vertical\x20Navigation\x20with\x20Fullwidth\x20Toolbar\x202','DASHBOARDS.SAT','src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/gotop/dialog.html/dialog.html','app.fax.faxAccounts.edit','AgentHomeSmsController','dialogFlowLanguage','delete\x20Teams','seconds','api/integrations/freshsales/fields/describe','whatsappQueue:remove','api.plugin.save','deleteChatQueue','faxInteraction','api/integrations/zoho/configurations/:id/subjects','src/js/modules/core/theme-options/theme-options.html/theme-options.html','saveAgents','user_has_mail_interactions:remove','MohSound\x20properly\x20deleted!','DASHBOARDS.ENABLED','limitCalls','rpc@getTrunks','Anonymous','nolimit','src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/agi/dialog.html/dialog.html','The\x20telephone\x20will\x20be\x20deleted.','VoicemailController','TemplatesController\x20as\x20vm','newDynamics365Configuration','closed\x20===\x200','pow','sms_queue_waiting_interaction:save','src/js/modules/main/apps/settings/views/license/request/dialog.html/dialog.html','/api/chat/websites/:id/customer_avatar','fullPath','removeLists','selectedSalesforceAccounts','TriggerAllId','vm_pb','ZohoConfiguration\x20properly\x20deleted!','US\x20English\x20Female','api/cm/contacts/upload','app.errors.error-500','mwFormBuilder','SYSTEM:DELETEteam','Dial','setHours','Default','-05:00','draftManager','newZohoConfiguration','{{\x20name\x20}}\x20<{{\x20email\x20}}>','api/integrations/freshdesk/accounts/:id/configurations','squareRecordings','changePassword','CreateOrEditZohoAccountDialogController','deleteAgent','SYSTEM:GETfaxAccounts','motion.shortcuts','MsTimerController','ParentId','\x27clicksend\x27','QUEUE_NAME','Delete\x20MailAccount','api/analytics/default_reports/:id/query','apps.plugins','Validation\x20error','faxInteraction:update','EditOpenchannelAccountAppgotopDialogController','home.whatsapp','src/js/modules/main/apps/voice/views/internalroutes/edit/view.html/view.html','Amharic\x20(Ethiopia)','noop','block','endOf','api/integrations/zendesk/configurations/:id','addNewItem','Europe/Simferopol','api/integrations/zendesk/configurations/describe','\x27s\x27','microphoneId','Vietnamese\x20(Vietnam)','newVtigerAccount','third','selectedVoiceRecordings','apiName','getValues','\x27newTab\x27','Pacific/Port_Moresby','hasModulePermissions','callCallback\x20->\x20url,\x20params','STAFF.NOTIFICATIONS.PERMISSIONS_SAVED_SUCCESS_TITLE','src/js/modules/main/apps/voice/views/contexts/create/dialog.html/dialog.html','zh-TW','EditSmsAccountApptagDialogController','api.intDynamics365Configuration.save','Lao\x20(Laos)','CreateOrEditDashboardItemDialogController','TOOLS.UPLOAD_SOUND','ml-IN','api/integrations/desk/accounts/:id','IS_GREATER_THAN','msFontFamily','SYSTEM:DESCRIBE_CM_CONTACT','api/schedules/:id','deleteSelectedDynamics365Accounts','app.chat.chatWebsites.edit','CustomizationlogoController','ms-stepper-step','selectAllTrunks','api/integrations/sugarcrm/accounts/:id','ANALYTICS.NO_METRIC_FOUND','\x27externip\x27','newGeneral','api/fax/interactions/:id/tags','gotoProjects','scrollWidth','selectedZohoAccounts','saveFreshsalesAccount','usersMap','serviceWorker','screenRecording@get','-03:00','{part}/i18n/{lang}.json','FreshdeskAccountConfigurationsController','hidden','\x2716\x27','$lte','getTrunks','motion.newsAlertHide:','api/integrations/zendesk/configurations/:id/tags','createOrEditMetric','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','sr-RS','CustomDashboardcloneController','openchannelInteractionTags:save','src/js/modules/main/apps/contactmanager/views/lists/edit/view.html/view.html','Highest','CONTACTMANAGER.COMPANIES','imagesLoaded','selectAllMusicOnHolds','The\x20chatProactiveAction\x20will\x20be\x20deleted.','api/mail/accounts/:id/interactions','voice_outbound_channel:remove','app.fax','isReschedule','referAttended\x20->\x20session','icon-radiobox-marked','selectedVtigerConfiguration','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20openchannelAccounts?','getTeams','USERPROFILE:GETRESOURCES(','TOOLBAR.POLISH','api/mail/substatuses/:id','phoneBarEnableRecording','whatsappInteraction:save','api/integrations/freshsales/configurations/describe','IS_LESS_THAN_OR_EQUAL_TO','UserProfile\x20updated!','api.voiceMusicOnHold.save','spychatInteraction','getMonthName','exportSelectedAiTools','#FFC107','sessions','src/js/modules/main/apps/tools/views/trunks/trunks.html/trunks.html','queryChannels','ANALYTICS.NEW_METRIC','SYSTEM:GETuserProfile','SalesforceAccount\x20updated!','api/rpc/mail/queues','onSaveVoiceQueue','savescreenRecording','api/fax/applications/describe','angular-cron-jobs','refreshContacts','America/North_Dakota/New_Salem','selectAllQueueCampaigns','delete\x20CannedAnswers','GlobalCustomFieldsController','TOOLBAR.DANISH','app.tools.intervals.edit','EditOpenchannelAccountAppnoopDialogController','ChatInteractionId','displayCannedAnswerInput','mail.mailAccounts','currentUser','analyticTreeReport','isArray','selectedExtractedReports','reportType','EditChatWebsiteAppamazonlexDialogController','SYSTEM:GETintServicenowAccount','America/Argentina/San_Luis','vm.voiceQueue.leavewhenempty.length\x20===\x201\x20&&\x20vm.voiceQueue.leavewhenempty[0]\x20===\x20\x27paused\x27','Atlantic/Faroe','selectedPalette',',${EXTEN},','api/triggers/:id/all_conditions','gotoUsers','What\x20would\x20you\x20name\x20your\x20tag?','Round\x20Robin','maxdigit','tls','Pacific/Kwajalein','Asia/Pontianak','DELETE','enter','Tonga','api/rpc/openchannel/queues/waitinginteractions','cmCustomField@get','FaxQueue\x20updated!','code','api/whatsapp/queues/:id/teams','onFaxMessageSave','DASHBOARDS.DECEMBER','SYSTEM:GET_CONTEXTS','newWhatsappCannedAnswer','SMS.EDIT_SMSACCOUNT','scriptName','src/js/modules/main/apps/voice/views/realtime/queue_params/view.html/view.html','chatTransferReport','api/cm/companies/:id/contacts','src/js/modules/main/apps/staff/views/teams/create/dialog.html/dialog.html','newPause','multiBarChart','French','isStepValid','icon-server-plus','selectSession\x20->\x20session','api/cm/hopper/preview','UserWhatsappAccount','es-NI','CHAT.EDIT_CHATQUEUE','api/automations/:id/conditions','addApi','app.openchannel.openchannelQueues','msRandomClass','getIvrCampaignHopperFinals','SYSTEM:GET_TRUNKS','Jscripty\x20can\x27t\x20open\x20the\x20contact','getHeader','/voice','selectedOpenchannelAccounts','production','mailInteractions','api/cm/companies/describe','api/whatsapp/reports/transfer/:id','ChatWebsites','rpc@getWhatsappQueues','\x2717\x27','chatInternalMessage:save','hopperBlack','id,name,enabled,includeAll,autoAssociation,crudPermissions','canTransfer','onSaveUserWhatsappQueue','Announce_Overrides','properties','addNewDeskConfiguration','getQueues','voicemailMessages','onRemoveUserOpenchannelQueue','sr-ME','api.voiceChanSpy.delete','allowDelete','Report\x20properly\x20saved!','selectAllScreenRecordings','EditSmsAccountAppnoopDialogController','api.trunk.save','minDateRange','Asia/Gaza','onLogout','src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/dialogflow/dialog.html/dialog.html','\x27xlsx\x27','IvrCampaignsMotionDialerRealtimeController','DASHBOARDS.ATTENTION','newIndex','arrayencryption','toggleAll','api.plugin.update','cutdigits','\x27--\x27','German\x20(Germany)','Asia/Anadyr','motion2.user:','api/migrations/:id','DefaultReportId','ComposeFaxInteractionDialogController','\x27b\x27','app/main/apps/dashboards/views/general/agent/home/abandoned/dispose/dialog.html','selectedFreshdeskConfiguration','red-300-fg\x20icon-phone-hangup','MailSubstatuses','emit','src/js/modules/main/apps/fax/views/realtime/queues/view.html/view.html','EditOpenchannelAccountAppqueueDialogController','\x27ulaw\x27','api.action.save','api/users/:id/login','api/users/:id/teams','api/whatsapp/messages/:id/accept','gotoFreshsalesAccounts','SYSTEM:GET_VOICEQUEUES','addNewDisposition','America/Costa_Rica','api.whatsappQueue.delete','ngMaterialDateRangePicker','TagId','hasSectionPermissions','addNewMailCannedAnswer','NotFoundError','closest','UserDashboardGeneralController','getTriggerAnyConditions','vm.voiceQueue.joinempty.length\x20===\x201\x20&&\x20vm.voiceQueue.joinempty[0]\x20===\x20\x27wrapup\x27','newDeskConfiguration','cancelInterval','Messages','Network\x20properly\x20deleted!','$locationProvider','SYSTEM:UPDATEcontact','VOICE.EDIT_OUTBOUNDROUTE','EditOpenchannelAccountAppsystemDialogController','downloadfile2','CreateOrEditGeneralDialogController','There\x20has\x20been\x20an\x20error\x20while\x20trying\x20to\x20save\x20your\x20survey\x20session!','Report\x20downloaded!','Africa/Maputo','dateStart','createOrEditSugarcrmConfiguration','deselectProjects','match','servicenowConfiguration','lastLoginAt','Europe/Madrid','EditMailAccountAppagentDialogController','requestSucceeded','src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/amazonlex/dialog.html/dialog.html','Variable\x20properly\x20deleted!','Chat\x20Offline\x20Messages','md.data.table','deviceId','api/chat/websites/:id/dispositions','app/main/apps/openchannel','eurdanishfemale','selectedFaxAccountApps','optionalStep','AgentHomeVoiceController','retrieveUser','wasUserInPause','authenticate','network','xAnswerMode','deleteAction','Delete_permission','id,mailbox','chanSpy\x20properly\x20saved!','internalroutes','ms-navigation-horizontal','app.fax.realtime.agents','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20companies?','createdAt,updatedAt,id,appdata,type,exten,context,recordingFormat,cutdigits,description','gsm','api/voice/agents/reports/:id','selectedSmsAccountApps','api.interval.update','Incoming','\x22\x20is\x20not\x20defined\x20in\x20the\x20api\x20service!','selectedMode','Arabic\x20(Jordan)','User\x20updated!','EditAppintervalDialogController','ProjectsController','-07:00','none','Are\x20you\x20sure\x20want\x20to\x20run\x20the\x20schedule?','EditInboundAppagiDialogController','downloadChatInteraction','Busy','whatsappQueue:save','trim','delete\x20Sounds','whatsappStatusTime','GROUP_CONCAT\x20(','mailAccount@get','ms-navigation-horizontal-node','api/mail/messages/:id/clone','SalesforceAccount','isEstablished','vm.voiceQueue.joinempty.length\x20===\x201\x20\x20&&\x20vm.voiceQueue.joinempty[0]\x20===\x20\x27no\x27','vm.detailForm.$pristine','MailAccountActionsController','Rejected','Ukrainian\x20(Ukraine)','api/templates/describe','CannedAnswersController\x20as\x20vm','selectAllSalesforceAccounts','300\x20400','Japanese\x20Male','MailRealtimeController','onRemove','dnd','createOrEditQueueCampaignHopper','agreement','AgentsWhatsappRealtimeController','\x27basic\x27','isHidden','xx-klingon','WhatsappAccountsController\x20as\x20vm','SYSTEM:GET_SECTIONS_PERMISSIONS','listSelected','uniqueIdentifier','saveLists','UserController\x20as\x20vm','Description\x20has\x20been\x20deleted!','loginOauth','list_id','app.analytics.reports.edit','ScreenRecordings','api/integrations/sugarcrm/configurations/:id/subjects','zendeskConfigurations','InternalRoutesController','$valid','voiceExtension','showSmsInteraction','CannedAnswer','addQueues','src/js/modules/main/apps/whatsapp/views/whatsappAccounts/whatsappAccounts.html/whatsappAccounts.html','progress','retry','forIn','templateSettings','exportSelectedChanSpies','Project\x20properly\x20created','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20faxQueues?','src/js/modules/main/apps/contactmanager/views/contacts/contacts.html/contacts.html','web','AbandonedCallsMotionDialerRealtimeController','newCustomDashboard','apps.home.mail','userProfile@get','AVG','api/users/:id/mail_interactions','$setDirty','WhatsappQueue\x20properly\x20created','500','pause_id','SmsAccounts','CustomDashboard','getIntervals','assignTo','\x20has\x20been\x20deleted!','openchannelQueueReport','100','timer-clear','src/js/modules/navigation/layouts/vertical-navigation-fullwidth-toolbar-2/navigation.html/navigation.html','app/core/directives/ms-phonebar/sounds/incoming-call.ogg','selectedPlugins','channelStatus','-10:00','Realtime','gotoLists','America/Fort_Nelson','edit','selectedLanguage','America/Cancun','Left\x20Join','Europe/Gibraltar','icon-hangouts','api/sms/accounts/:id/canned_answers','ngAria','openchannelInteraction@get','Pacific/Marquesas','Select','api.rpc.notify','createObjectURL','Telephones','saveTrigger','squareOdbc@get','home.mycontacts','DASHBOARDS.ACCEPT_ELSEWHERE','outboundrouteid=','Spanish\x20(Spain)','selectedOutboundRoutes','stopMonitor','md-background-bg\x20md-hue-3','deselectMailAccounts','lime-A700','isJabraEnabled','random','/internalroutes','app.integrations.deskAccounts.edit','General\x20properly\x20deleted!','app.integrations.freshsalesAccounts','delete\x20Contacts','voiceRecordings','toJson','apps.home.mycontacts','EditWhatsappAccountAppqueueDialogController','src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/goto/dialog.html/dialog.html','getFaxAccounts','navigator','$mdTheming','Karl','JscriptyProjectController','timezone','CONTACTMANAGER.EDIT_GLOBALCUSTOMFIELD','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20description?','UserMailDashboardGeneralController','notification:remove','Vertical\x20Navigation\x20with\x20Fullwidth\x20Toolbar','\x27).style.display=\x27block\x27;\x20this.parentNode.removeChild(this)\x22>See\x20MoreDescription','Hungarian\x20(Hungary)','monitor','MailAccounts','selectedVoicemailMessages','chatInteractionDownload','QueueParamsVoiceRealtimeController\x20as\x20vm','api.intSalesforceAccount.update','isStepNumberValid','src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/autoreply/dialog.html/dialog.html','reply','createdAt,updatedAt,id,name,description,createdAt,formData,enableUncompleteSave','journey','delete\x20FaxAccounts','RESETPASSWORD.PASSWORD_RESET_MESSAGE','createdAt,updatedAt,id,name,key,token,replyUri,ListId,waitForTheAssignedAgent,mapKey,description,receiveUri,notificationSound,notificationShake,notificationTemplate','/jscripty','HANGUPCAUSE_1','app.voice.realtime.queue_params','$destroy\x20event\x20fired','UserProfilesController\x20as\x20vm','arraydialOrderByScheduledAt','startPredictive','PrefixDialogController','app.chat.realtime.queues','D\x20MMM\x20YYYY','api/auth/local/user/:token','queueCampaignHoppers','/chatQueues','.zip','/api/settings/1/favicon','APP.INFO','api.intDeskConfiguration.update','VtigerConfiguration\x20properly\x20created','America/Winnipeg','countBy','gotoServicenowAccounts','total','newQueueCampaign','Agents','arraydialCheckDuplicateType','ANALYTICS.REPORTS','user@getLists','bot',';font-size:','Pacific/Norfolk','api.intZohoConfiguration.delete','Unlicensed','motionConfigProvider','America/Grand_Turk','\x27connectel\x27','DISPOSITION_DELETE_MESSAGE_CHILDREN','TOOLS.TRIGGERS','loginSSO','showPredictiveQueueCampaignInfo','Subject\x20has\x20been\x20deleted!','moveContactsIvrCampaignHopperFinal','hopperFinal\x20#','login','Asia/Novosibirsk','exten','User\x20properly\x20saved!','More','freshdesk','msWidgetEngine','exportSelectedIntervals','DASHBOARDS.DASHBOARD','selectAllWhatsappAccounts','remote-audio','OpenchannelAccountController\x20as\x20vm','SmsQueueagentaddController','plainBody','api/integrations/zendesk/configurations/:id/subjects','SYSTEM:GETwhatsappAccounts','src/js/modules/main/apps/contactmanager/views/companies/create/dialog.html/dialog.html','rpcVoiceQueuesChannelsTmp','FaxAccount\x20updated!','Project\x20has\x20been\x20','month','TOOLBAR.FINNISH','Field\x20deleted!','rpc','faxQueues','collapseOnBlur','WhatsappAccount\x20properly\x20created','sms','.draggable','angucomplete-alt','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20cannedAnswers?','api/sms/reports/queue/:id','SYSTEM:DELETEsquareOdbc','selectAllExtractedReports','interaction','api/analytics/custom_reports/:id','data','SalesforceAccountConfigurationsController','memberReport','getSections','actions','\x27text\x27','hasRole','14400','Import\x20process\x20failed!','es-VE','api/campaigns/:id/hopper_black','ended','deleteSelectedIntervalIntervals','Tag\x20name','MOTIONDIALER.NEW_HOPPER','$destroy','mohSounds','msNav::collapse','arraydialPredictiveOptimization','WhatsappQueueteamaddController','Supported\x20extensions:\x20','motion.selectedTheme','src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/system/dialog.html/dialog.html','apps.fax.faxQueues','EditWhatsappAccountAppautoreplyDialogController','Openchannel\x20Queues','clearFilter','app.voice.realtime.trunks','PausesController','Template\x20properly\x20deleted!','\x27right\x27','interval','delete\x20hopperHistory','api.network.delete','||FIELD||OLD||NEW||\x0a','showIncompleteSubmitButton','CDR(tag)=','IS\x20NOT\x20EMPTY','api/mail/interactions/:id','IS_AMONG','app.staff.userProfiles','api/fax/interactions/:id','$substring','InternalRouteController','createOrEditChatWebsiteChatProactiveAction','app.settings','EditChatWebsiteAppgotopDialogController','widgets','The\x20voiceQueue\x20will\x20be\x20deleted.','wav','deselectLists','deleteUserProfile','api/jscripty/projects/:id/answers','jpg','getSugarcrmAccounts','addNewHopper','filterByTags','api.chatWebsite.save','api/cm/hopper_final/checkContactHopper','Interval\x20updated!','ta-MY','jscriptyProject@get','TOOLS.EDIT_TEMPLATE','exportSelectedChatQueues','\x27website_alias\x27','getDeskConfiguration','selectedZohoConfiguration','red-300-fg\x20icon-phone-in-talk','emojioneArea','user_has_whatsapp_interactions:remove','Swedish','api/voice/mails/messages/describe','pm2@get','src/js/modules/main/apps/voice/views/realtime/outbound_calls/view.html/view.html','isString','app.integrations.servicenowAccounts','Europe/Bucharest','TOOLS.NOTIFICATIONS.TRIGGER_DELETE_TITLE','SYSTEM:GET_TREE_REPORT_STRUCTURE','Dynamics365AccountsController\x20as\x20vm','\x27always\x27','chatCurrentCapacity','config','newPlugin','#content','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','Australia/Hobart','getMusicOnHoldMohSounds','icon-clock','preview','The\x20faxQueue\x20will\x20be\x20deleted.','editWhatsappAccountApp','selectedChatWebsiteInteractions','saveDeskAccount','Vitoria\x20(Portuguese,\x20Brazilian,\x20Female)','src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/view.html/view.html','deleteMailSubstatus','deleteconfirm','_interactions:save','gotoVoiceQueues','SYSTEM:GETsmsAccount','motion2.home.mail:','zohoAccount','ispeechTtsLanguage','_self','Arabic\x20(Tunisia)','Asia/Kolkata','operator','apps.tools.trunks','delete\x20hopperFinal','MOTIONDIALER.REALTIME','api/whatsapp/accounts/:id/notify','addNewMailQueue','apps.staff.telephones','includes','api/screen/recordings/describe','Arguments','selectedScheduler','smsPause','\x27en\x27','deleteConfirm','IvrCampaignHopperBlacksController','\x27E\x27','api/voice/prefixes/:id','src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/noop/dialog.html/dialog.html','\x27da\x27','proactive','Spanish\x20(Mexico)','msNavigation','Attached\x20pm2\x20process\x20successfully\x20stopped','SYSTEM:DELETEinterval','api/fax/messages/:id/accept','selectAllLists','Openchannel\x20Report\x20Transfer','getInstallInfo','DeskAccounts','TelephonechangepasswordController','updateLayoutStyle','\x27hours\x27','Voicemail\x20properly\x20created','API:','sw-TZ','ServicenowAccountsController\x20as\x20vm','api/fax/applications/:id/clone','app.analytics','apps.video.screenRecordings','cf_','api/integrations/zoho/accounts/:id','selectedInternalRoutes','app/main/apps/mail','voiceCalls','areaText','boolean','Indian/Kerguelen','DASHBOARDS.WED','\x27CN\x27','originalMessage','isStepHidden','deletePause','TOOLS.NOTIFICATIONS.TRIGGERS_DELETED_SUCCESS_TITLE','CSV\x20import\x20process\x20stopped!','treeDefaultData','ZendeskAccount\x20properly\x20saved!','onTransfer','api/rpc/voice/queues/channels/:uniqueid','getHistories','red-300-fg\x20icon-close-circle','top-right','CONTACTMANAGER.NEW_COMPANY','Boxed','api/integrations/freshdesk/fields/:id','api/rpc/campaigns','One\x20Time','canScroll','\x20properly\x20redirect!','previousContact','api/rpc/voice/queues/channels/:uniqueid/redirect/:exten','api/integrations/servicenow/accounts/describe','.eml','app.integrations.zendeskAccounts','UNIX_TIMESTAMP','\x27sms_messages\x27','$viewContentAnimationEnded','SYSTEM:DELETEintDynamics365Account','status_code','sms-interaction','app.plugins','app.settings.customizations','src/js/modules/main/apps/integrations/views/servicenowAccounts/edit/view.html/view.html','chatCannedAnswer','TOOLS.NEW_TRUNK','delete\x20QueueCampaigns','Delete\x20Dynamics365Account','The\x20license\x20has\x20been\x20updated!','America/North_Dakota/Center','update','deleteSelectedTriggerAllConditions','addNewUserProfile','Agent\x20Report','\x27gsm\x27','MailQueueId','image','api.contacts.save','addNewDynamics365Configuration','saveTag','STAFF.EDIT_TEAM','voiceMail.mailbox','CHAT.EDIT_CHATWEBSITE','VOICE.REALTIME','CompanyId','api.fax.account','api/voice/calls/reports/describe','Smtp\x20properly\x20deleted!','develop','composeOpenchannelInteraction','src/js/modules/main/apps/tools/views/schedules/create/dialog.html/dialog.html','','reLayout','JSCRIPTY.NEW_PROJECT','America/Martinique','updating','/api/auth/','userVoiceQueue:remove','Lucky\x20day','downloadMessage','FaxAccountInteractionsController','Pacific/Efate','app.staff.telephones.edit','api/templates/:id/clone','onDispositionChange','SYSTEM:DELETEmailQueue','\x27B\x27','CreateOrEditvoicePrefixDialogController','motion2.home.whatsapp:','allowedStandardFields','app.tools','api.intSalesforceConfiguration.delete','VoiceQueue\x20properly\x20saved!','#262933','api/mail/messages/:id/download','$cookies','icon-tile-four','api/voice/prefixes/:id/users','.csv','apps.mail.mailQueues','cell','api/openchannel/accounts/:id/notify','onMessageSave','Australian\x20English','getFreshdeskAccounts','api/cm/contacts/upload/:id','api.cmCustomField.delete','onSaveOpenchannelQueue','setAgentCapacity','api/teams/:id/users','api/sms/accounts/:id/applications','\x272400\x27','loadNextPage','saveSquareRecording','originator','CreateOrEditSugarcrmAccountItemDialogController','calleridname','/chatWebsites','getChatWebsiteProactiveActions','Mail','interpolate','$rootScope','VoiceQueue\x20updated!','MusicOnHoldController','api/integrations/salesforce/accounts/:id/configurations','\x27adminOnly\x27','Asia/Seoul','telephone:save','Dora\x20(Icelandic,\x20Female)','arrayreportholdtime','pt\x22>','address','arraytype','end','api.intSalesforceAccount.save','src/js/modules/main/apps/marketplace/views/plugins/create/dialog.html/dialog.html','interactions','font,colorbutton,autogrow,autoembed,autocorrect,googlethisterm,pastebase64','applyTo','api/square/odbc/:id','rpcOpenchannelQueues','newscreenRecording','webkitHidden','createOrEditSound','warn','\x277200\x27','/about','SalesforceAccounts','model','exportSelectedZendeskAccounts','edited','api/cm/lists/:id/users','SYSTEM:GET_INTERVALS','Position','FaxAccount\x20properly\x20deleted!','deletePlugin','api.squareProject.save','intZendeskConfiguration','src/js/modules/main/apps/callysquare/views/projects/edit/view.html/view.html','Kendra\x20(English,\x20US,\x20Female)','onRemoveMailQueue','treeCtrl:\x20error\x20from\x20js\x20tree\x20-\x20','getIvrCampaignHopperHistories','api/teams/:id/queues','Templates','faxMessage:save','createdAt,updatedAt,id,field,alias,function,format,groupBy,orderBy,custom,MetricId','Smtp\x20properly\x20verified','openInteraction','src/js/modules/main/apps/mail/views/mailQueues/edit/agentadd/agentadd.html/agentadd.html','America/Godthab','LicenseController','src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/interval/dialog.html/dialog.html','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20salesforceConfiguration?','api/users/:id/pause','isLockedOpen','webtransfer','dialPredictiveIntervalMinThreshold','Antarctica/Troll','URI','outboundDropCallsDayCallersExit','whatsappAccountInteractions','CONTAINS','pieChart','voiceMusicOnHoldDownload','loading','app.integrations.sugarcrmAccounts','deskAccount','secondLevelDisposition','root','HELP.ABOUT','union','INTEGRATIONS.NEW_ZOHOCONFIGURATION','SugarcrmAccount\x20updated!','AllCondition\x20properly\x20saved!','vm.query','SquareRecordingsController','ChatWebsiteController\x20as\x20vm','api/users/:id/queues','AgentsChatRealtimeController\x20as\x20vm','STAFF.PERMISSIONS_SELECTED_RESOURCES','permissionId','EditFaxAccountAppgotopDialogController','#5c616f','EditInternalAppagiDialogController','apps.staff.userProfiles','src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/queue/dialog.html/dialog.html','isIntegrationDisabled','TagInteractionDialogController','MsTabScrollController','ProjectBuilderController','English\x20(United\x20States)','@token','deleteDynamics365Configuration','api/notifications/:id/clone','SMS\x20Report\x20Queue','OpenchannelAccount\x20properly\x20created','SAVE','HopperFinal\x20deleted!','E:\x20Exit\x20when\x20the\x20spied-on\x20channel\x20hangs\x20up.','SETTINGS.EDIT_SMTP','bind','Owner','api/system/process/:pid/kill','WHATSAPP.WHATSAPPQUEUES','api.openchannelAccount.update','apps.integrations.freshsalesAccounts','src/js/modules/login/login.html/login.html','Restore\x20Contact','Hungarian','filename','api/integrations/dynamics365/accounts/describe','getNotifications','app.callysquare.projects.edit','times','Metrics','api.intServicenowAccount.update','magicline','registerStep','api.telephone.changePassword','src/js/modules/main/apps/mail/views/mailAccounts/create/dialog.html/dialog.html','api.openchannelMessage.accept','membersByKeys','Call_Status','substring','CustomField\x20properly\x20saved!','EditoutboundApp','preferredLanguage','app.mail.realtime.agents','setUserStatus','ar-SA','src/js/modules/main/apps/integrations/views/salesforceAccounts/edit/configurations/dialog.html/dialog.html','addNewMailSubstatus','\x27o\x27','CreateOrEditMusicOnHoldDialogController','\x27whatsapp_messages\x27','OpenchannelAccountActionsController','externaldial','DeskAccount\x20properly\x20saved!','setFoldedOpen','deselectZendeskAccounts','/cannedAnswers','stopplugin','Resource\x20\x22','report_agent','Latin','EditFaxAccountAppintervalDialogController','src/js/modules/main/apps/tools/views/cannedAnswers/create/dialog.html/dialog.html','editMailAccountApp','The\x20max\x20allowed\x20size\x20is\x20','forwardTemplate','src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/interval/dialog.html/dialog.html','TOOLS.EDIT_ALLCONDITION','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20outboundroutes?','src/js/modules/main/apps/chat/views/chatWebsites/chatWebsites.html/chatWebsites.html','src/js/modules/main/apps/motiondialer/views/realtime/agents/view.html/view.html','selectAllChatWebsites','apps.callysquare.projects','Polish\x20(Poland)','api/whatsapp/accounts/:id/applications','Russian\x20Female','SYSTEM:GET_APIKEY','saveShortcuts','gotoNextStep','complete','','Swedish\x20(Sweden)','incident','ms-navigation-folded-open','api/triggers/:id','unknown','Chantal','Yahoo','Delete\x20Contact','IntervalId','Hausa','Geraint','app.quick-panel','Save\x20draft','CreateOrEditActionDialogController','DASHBOARDS.TUE','api/voice/queues/:id/teams','api/pauses/describe','FaxAccounts','removeJoin','saveSmsQueue','queueAdd','voiceQueuesSelected','msMasonry:relayoutStarted','src/js/modules/main/apps/contactmanager/views/lists/edit/customFields/dialog.html/dialog.html','createOrEditVtigerAccount','Pause','api/openchannel/queues/:id','api.agent.changePassword','CreateOrEditFaxQueueDialogController','app.contactmanager.companies','QueueCampaignHopperStatisticsController','api.intZohoAccount.save','api/cdr/:id/clone','uniqueid,calleridnum,statedesc,starttime,disposition,secondDisposition,thirdDisposition','whatsappAccountApps','deleteSelectedWhatsappAccountWhatsappCannedAnswers','To\x20is\x20mandatory','List\x20','addNewSugarcrmAccount','TriggerController\x20as\x20vm','joinAt','api/integrations/vtiger/accounts/:id','shortinfo','SYSTEM:DELETEchatQueue','\x27h264\x27','openchannelQueue@get','deleteVtigerConfiguration','getFormats','api.condition.save','SETTINGS.CUSTOMIZATIONS','dialogFlowV2Language','src/js/modules/main/apps/voice/views/internalroutes/edit/apps/externaldial/dialog.html/dialog.html','VoiceQueue','getSelectedVariable','Tahoma,Geneva,sans-serif','CALLYSQUARE.PROJECTS','createdAt,updatedAt,id,name,basename,savename,type,startDate,endDate,status,output,reportId,reportType','Estonian','apps.voice.chanSpies','America/Argentina/Tucuman','motion2.home.recordings:','Ricardo','/assets/images/theme-options/vertical-nav-with-full-toolbar-2.jpg','test','deleteSelectedMailAccountApps','chatInteraction','euritalianmale','SYSTEM:DELETEschedule','GlobalCustomField\x20properly\x20saved!','deselectInternalRoutes','intZohoConfiguration','\x27pai\x27','Justin\x20(English,\x20US,\x20Male)','head','MailQueuesController\x20as\x20vm','api.chatAccounts.account','SYSTEM:DELETEplugin','addNewSchedule','apps.contactmanager.companies','copy','msClickToCall','ndassistant_url','MxGraphUpdateInfoController','children_d','selectedWhatsappAccountApps','Agent','composeFaxInteraction','exportSelectedWhatsappQueues','UserFaxAccount','addNewZendeskAccount','AgentsChatRealtimeController','ar-BH','showMessageInfo','MOTIONDIALER.CLONE_QUEUECAMPAIGN','Europe/Amsterdam','TOOLBAR.SWEDISH','Projects','checkContactHopper','getPlugins','src/js/modules/main/apps/voice/views/internalroutes/edit/apps/set/dialog.html/dialog.html','ZendeskConfiguration\x20deleted!','finals','api/mail/interactions/:id/download','CreateOrEditCompanyDialogController','JscriptyProjectController\x20as\x20vm','permissions','ANALYTICS.REMOVE','api/chat/internal/messages/:id/clone','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20whatsappCannedAnswers?','api/mail/messages/:id/reject','Europe/Kaliningrad','Asia/Macau','Dynamics365Accounts','pid','chatMessage:update','sumHoldTime','newchanSpy','id,name','onLogin','ar-OM','listOrder','openDraft','delete\x20Lists','added','clickOutsideToClose','CreateOrEditChatCannedAnswerDialogController','Asia/Hong_Kong','There\x20is\x20a\x20call\x20that\x20hasn\x27t\x20been\x20disposed\x20yet.','app/login','createdAt,updatedAt,uniqueid,ContactId,calleridnum,calleridname,statedesc,countcongestionretry,countbusyretry,countnoanswerretry,countnosuchnumberretry,countdropretry,countabandonedretry,countmachineretry,countagentrejectretry,countglobal,scheduledat,starttime,responsetime,endtime,disposition,ListId,UserId,VoiceQueueId,CampaignId,recallme,deleted,campaign','src/js/modules/main/apps/contactmanager/views/companies/companies.html/companies.html','Internal','deleteSelectedCannedAnswers','src/js/modules/main/apps/fax/views/realtime/accounts/view.html/view.html','outboundOriginateFailureCallsDay','ZohoConfiguration\x20properly\x20saved!','FAX.EDIT_','\x27tls\x27','DEFAULT\x20PAUSE','api.intDynamics365Account.save','hhours','Chat\x20Interaction','Integrations','\x27shortinfo\x27','api/chat/proactive_actions/describe','QueueCallsVoiceRealtimeController\x20as\x20vm','formats','selectedDescriptions','*|\x0a','api/integrations/freshsales/configurations/:id','','between','app.video','amaflags','api.analyticExtractedReport.save','Interval\x20properly\x20created','Radio\x20Buttons','question','WhatsappQueue\x20properly\x20saved!','/sms','membername','IvrCampaignController\x20as\x20vm','api.sms.account','isNaN','src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/gotoif/dialog.html/dialog.html','-interaction','editXML','not_inuse','TriggerAllConditionsController','SYSTEM:GETsmsAccounts','api.setting.update','editstate','listCustomFields','newFreshsalesAccount','deselectVtigerAccounts','ProjectSessionsController','api.openchannel.account','temporarilyIgnoreMouseEvents','UserController','integrations/servicenow/configurations/:id/descriptions','settings','\x20will\x20be\x20uninstalled.','FaxAccountController\x20as\x20vm','getCompanies','apps.settings.updates','downloadOpenchannelInteraction','SoundsController\x20as\x20vm','api/whatsapp/queues/describe','Korean\x20(South\x20Korea)','general','FaxAccountsRealtimeController','vtiger','resume','SYSTEM:DELETEopenchannelAccount','remotePlayer','EditSmsAccountApp','ms-form-wizard','onMultiselectSelection','CANCEL','AgentsFaxRealtimeController\x20as\x20vm','ServicenowAccounts','apps.staff','testtestintegrationaccount','avgTalkTime','chatGroup:remove','bull','SETTINGS.SMTP','\x27null\x27','voiceDialReportColumns','Error\x20initializing\x20Jabra\x20integration','onChangeAutoAssociation','delete\x20WhatsappQueues','\x27unavailable\x27','userProfileId','Invalid\x20extension:\x20','ORDER\x20BY\x20','Cancel','SYSTEM:GET_FIELDS','\x272\x27','QUICKPANEL.NEW_INTERNAL_MESSAGE','^msNavigationNode','deleteQueueCampaignHopperFinal','ringGroup','The\x20status\x20will\x20be\x20changed\x20to:\x20','zoho','vm.voiceQueue.joinempty.length\x20===\x201\x20&&\x20vm.voiceQueue.joinempty[0]\x20===\x20\x27loose\x27','TOOLS.NEW_DASHBOARDITEM','placed','faxCapacity','campaigns','transfer','awsPollyVoice','src/js/modules/main/apps/contactmanager/views/contacts/merge/dialog.html/dialog.html','api.chatWebsite.delete','New_Tab','globalStatus','Delete\x20ExtractedReport','apps.callysquare.squareRecordings','apps.tools','MotionDialerRealtimeController\x20as\x20vm','mouseEventIgnoreTimeout','Asia/Brunei','EditMailAccountApptagDialogController','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20chatWebsites?','lastAssignedTo','api/integrations/freshdesk/accounts/describe','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20freshsalesAccounts?','The\x20deskAccount\x20will\x20be\x20deleted.','src/js/modules/errors/404/error-404.html/error-404.html','createdAt,updatedAt,id,Contact.firstName','addNewOutboundRoute','OutboundRoute\x20properly\x20deleted!','VoicePrefixesController','\x27quarters\x27','delete\x20VoiceQueues','api/integrations/vtiger/accounts/:id/clone','delete\x20hopperFinals','SYSTEM:GET_TEMPLATES','api/mail/messages/describe','addSections','freshdeskAccount','#353a48','=msNavigationHorizontalNode','mobileBarActive','api.intZohoAccount.update','selectedCompany','setMinutes','chat_queue:save','addNewWhatsappAccount','apps.whatsapp','\x27pt-BR\x27','UserTeam','transcribeStatus','CreateOrEditListDialogController','VOICE.VOICEQUEUES','SMS.SMS','MailAccountDispositionsController','call','transferHook\x20->\x20payload','identity','getContactsCsv','setOrientation','newNetwork','series','answeredAt','Delete\x20Report','off','Project\x20','app.integrations.dynamics365Accounts','MOTIONDIALER.EDIT_IVRCAMPAIGN','api/cm/hopper_final/voice/queue/countAttributes/:id','gotoif','callerId','Error\x20retrieving\x20user\x20profile\x20permissions','\x270\x27','smsAccountSmsCannedAnswers','\x27infobip\x27','direction','UserMailQueue','Europe/Sofia','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20servicenowAccounts?','\x27fr-CA\x27','onFieldSelection','quickFilters','createOrEditInboundRoute','detectBrowser','\x20DESC)','DASHBOARDS.MAY','AgentHomeDashboardBullController','delete\x20chanSpy','SMS\x20Interaction','delete\x20chatCannedAnswers','use','deselectIvrCampaigns','Outlook365','openchannelApplication','app.voice.voiceRecordings','api/userProfile/resources/:id/clone','\x20will\x20be\x20overwritten\x20by\x20the\x20fields\x20of\x20the\x20contact\x20#','firstLastDayMonth','app.motiondialer.ivrCampaigns','falsepriority','MAIL.MAILSUBSTATUSES','composeWhatsappInteraction','#21467e','navigation','rpc@getVoiceQueues','ms-navigation','ChatCannedAnswer\x20properly\x20deleted!','CloudProvider\x20properly\x20created','MailAccountsRealtimeController\x20as\x20vm','HH:mm:ss','isRunning','globalCustomFieldForm','transferLastMessage','\x20has\x20been\x20created!','ms-nav-toggle-items','src/js/modules/main/apps/chat/views/realtime/queues/view.html/view.html','getSalesforceConfiguration','Corsican','selectedQueueCampaignHopperHistories','app.openchannel.realtime.queues','erlangAbandonmentRate','contexts','TOOLS.NOTIFICATIONS.ACTIONS_DELETED_SUCCESS_TITLE','smtps','Tags','app/core/directives/ms-phonebar/sounds/outgoing-call.ogg','openchannel_queue:save','survey','UploadSoundDialogController','SmsAccountId','msApi::resolveStart','squareOdbc','Outbound\x20Call','Type\x20the\x20file\x20name.','exportSelectedIntervalIntervals','ivrCampaignHopperBlacks','ZohoAccountController','chanSpy','replace','secondDisposition','apps.home.recordings','api/integrations/zendesk/fields/:id','google_cloud_tts_text_type','results','STAFF.NEW_TELEPHONE','sms_queue_waiting_interaction:remove','online','exportSelectedOpenchannelQueues','Marketplace','CustomField\x20properly\x20deleted!','MailQueue\x20properly\x20saved!','timer-stopped','msMasonryItem:startReLayout','jstree','America/Nome','FaxQueuesController','amd','api/openchannel/queues/:id/clone','monthsS','America/Argentina/Ushuaia','QueueCampaignHopperFinalsController','X-CID:\x20','assigned','CreateOrEditContactDialogController','toggleMobileBar','-06:00','selectedSalesforceConfiguration','api/jscripty/sessions/reports/:id/questions','addAllCondition','TeamsController','app.voice.internalroutes.edit','lang','grey-A400-bg','deselectSquareRecordings','api/chat/groups/:id/clone','zendesk','CALLERID(all)=','selectAllZohoAccounts','revokeObjectURL','src/js/modules/main/apps/sms/views/smsAccounts/smsAccounts.html/smsAccounts.html','TOOLS.EDIT_SCHEDULE','
    \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Call\x20from:\x20','Georgian','api.voiceContext.save','vm.query.filter','api/openchannel/interactions/:id/clone','newServicenowConfiguration','zendeskAccounts','treeCustomEvents','createOrEditAgent','first','app.tools.schedules','DASHBOARDS.SELECT_AGENT','Telephone\x20updated!','FreshsalesAccount\x20properly\x20created','\x27random\x27','app.voice.musiconholds.edit','es-BO','Marlene\x20(German,\x20Female)','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20hopperBlack?','\x27fax_queues\x27','SquareRecording','changepassworddialog','\x27once\x27','DASHBOARDS.THU','+07:00','whatsappQueuesTotal','saveDisposition','intDeskConfiguration','fontColor','SYSTEM:GET_CLOUDPROVIDERS','Scheduler','deleteCompany','uninstall\x20plugin','deleteOpenchannelAccountOpenchannelCannedAnswer','api/openchannel/reports/transfer/:id','WHATSAPP.EDIT_WHATSAPPCANNEDANSWER','hasMicrophone','Asia\x20Pacific\x20(Mumbai)','VOICE.NEW_MUSICONHOLD','\x27agent_alias\x27','src/js/modules/main/apps/chat/views/chatWebsites/edit/agentadd/agentadd.html/agentadd.html','Years','TOOLS.NOTIFICATIONS.','Dialer\x20Hopper\x20Logs','Europe/Chisinau','AgentHomePluginsController','voice_outbound:save','deselectTriggers','Macedonian','info','MetricId','Czech\x20(Czech\x20Republic)','Delete\x20Pause','arraytrustrpid','INTEGRATIONS.EDIT_ZENDESKCONFIGURATION','delete\x20internalroute','MailAccountController','FaxQueue\x20properly\x20saved!','Australia/Darwin','outboundDropCallsDayTimeout','The\x20servicenowAccount\x20will\x20be\x20deleted.','LicenseController\x20as\x20vm','VoiceRecordingSentimentStatisticsController','DASHBOARDS.MON','OpenchannelQueuesController\x20as\x20vm','unshift','api/chat/interactions/:id/close','app/main/apps/settings','api/integrations/servicenow/accounts/:id/fields','EditInboundApp','/variables','api.action.delete','Campaigns','VOICE.NEW_VOICERECORDING','removeQueues','importContacts','zh-HK','addNewInternalRoute','animate','stun','tree','Contact\x20Relation\x20Update','treeCustomConfig','api/fax/messages/:id','browserGroupId','GET_PROJECT','selectedMailAccountInteractions','api.voiceQueue.clone','recordingFormat','src/js/modules/main/apps/integrations/views/freshsalesAccounts/create/dialog.html/dialog.html','onplay','otherwise','MsThemeOptionsController','Extension','api/openchannel/reports/queue/:id/clone','deleteSelectedAgents','callysquare','Asia/Shanghai','customFields','Trunk\x20updated!','UserProfile\x20properly\x20deleted!','allowEdit','CompaniesController','new','ZendeskConfiguration\x20properly\x20deleted!','src/js/modules/main/apps/analytics/views/metrics/metrics.html/metrics.html','Subject','api.project.delete','debug','motion2.','loose','api.voiceMusicOnHold.update','deletedAt','getArrayErrors','-08:00','green-300-fg\x20icon-phone-hangup','Swahili\x20(Kenya)','api/sms/accounts/:id/interactions','closeTab','dialActive','Upload\x20error','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20salesforceAccounts?','agent\x20updated!','QueuesFaxRealtimeController\x20as\x20vm','queueCampaigns','api/triggers/:id/any_conditions','\x27weeks\x27','smsMessage:update','CreateOrEditIntervalDialogController','src/js/modules/main/apps/voice/views/voiceQueues/create/dialog.html/dialog.html','The\x20whatsappCannedAnswer\x20will\x20be\x20deleted.','windowWidth','selectedODBC','deleteProject','Sindhi','icon-home','faxAccountApps','selectedSugarcrmConfiguration','selectAllVtigerAccounts','\x20will\x20be\x20restored.','https://www.xcally.com/bar/phonebar/autoupdater.xml','encodeURIComponent','patchConference','api/chat/interactions/:id/clone','getQueueCampaigns','api/screen/recordings/:id/clone','reportFields','id,name,dialPrefix','app.sms.smsQueues.edit','app.mail.realtime','selectedListCustomFields','messages','VOICE.NEW_VOICEPREFIX','Arabic\x20(Iraq)','api.team.delete','SYSTEM:DELETEreportsByParents','currentPath','getHopperFinals','faxStatus','g729','screenRecording\x20properly\x20saved!','GlobalCustomField\x20properly\x20created','error-404','+01:00','sugarcrmAccount','saveSugarcrmConfiguration','app.openchannel.realtime','KEY_CODE','vm.search','CDR','XCALLY-MOTION-PROGRESS=0','scrollLeft','deleteFreshdeskConfiguration','api.intFreshsalesAccount.delete','api/schedules/:id/run','extravar','src/js/modules/main/apps/motiondialer/views/queueCampaigns/edit/teamadd/teamadd.html/teamadd.html','selectedField','Arial,Helvetica,sans-serif','mailQueuesTotal','onValueChange','+04:00','VoiceRecording\x20properly\x20saved!','ar-QA','@msUtils.firstLastDayMonth()','resources','XCALLY-MOTION-ANSWER=1','msApi::resolveSuccess','/var/opt/motion2/server/files/sounds/converted/','responsive','mute','
    \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20
    ','getFields','exportSelectedOpenchannelAccounts','PDF','autoClose','api/fax/accounts/:id/users','Interval\x20has\x20been\x20saved!','anyThirdLevelDisposition','addNewSmtp','mmonths','+10:00','api/mail/interactions/:id/messages','app.voice.realtime','headerWhiteLabel','user:agentconnect','api.pause.save','DASHBOARDS.CONTACTS','src/js/modules/main/apps/chat/views/chatWebsites/create/dialog.html/dialog.html','src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/autoreply/dialog.html/dialog.html','Basque','SYSTEM:GET_AGENTS','VtigerAccount\x20properly\x20saved!','SYSTEM:UPDATEBLACKLIST','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20field?','Company\x20properly\x20created','Carmen\x20(Romanian,\x20Female)','EditSmsAccountAppgotopDialogController','id,name,fullname','America/Resolute','\x27number\x27','deselectServicenowAccounts','TOOLBAR.CHINESETRADITIONAL','External','api.cmCompany.update','Delete\x20MusicOnHold','exportSelectedSmsQueues','addNewGeneral','api/voice/agents/reports/describe','plugins','verifySmtp','deletechanSpy','helperClasses','openFolded','getBaseUrl','pause','\x27localnet\x27','responseData','src/js/modules/main/apps/integrations/views/zohoAccounts/create/dialog.html/dialog.html','dropping','voiceChanSpy','isStepCurrent','onIcecandidate\x20->\x20session,\x20data','equals','removeApi','dashboarditem','Asia/Ashgabat','outboundanswerRate','deselectWhatsappAccounts','uniqueid','chunk','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20application?','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20hopperFinals?','openchannelCapacity','TOOLBAR.GERMAN','disposeCall','sendUnpauseOnSubmit','Scheduled\x20Calls','updateCondition','ComposeOpenchannelInteractionDialogController','src/js/modules/main/apps/dashboards/views/general/agent/interaction/tag/dialog.html/dialog.html','absorbEvent','selectedIntervals','Asia/Jakarta','High','InboundRoute\x20properly\x20saved!','closed','ComposeWhatsappInteractionDialogController','QUICKPANEL.MESSENGER_DISABLED','selectedSmsAccountInteractions','saveInternalRoute','isSupported','selectAllDispositions','mwFormUtils','DefaultReports','hasShortcut','voiceQueue:save','src/js/modules/main/apps/voice/views/internalroutes/edit/apps/playback/dialog.html/dialog.html','Asia/Omsk','America/Cambridge_Bay','+09:00','src/js/modules/main/apps/fax/views/realtime/realtime.html/realtime.html','HANGUPCAUSE_17','en-GH','grey-fg\x20icon-phone-hangup','ZendeskAccounts','Spanish\x20(Uruguay)','VOICE.NEW_CHANSPY','WhatsappAccounts','createdAt,updatedAt,id,name,description,table,parent,conditions,joins','OpenchannelAccount\x20updated!','OpenchannelAccountOpenchannelCannedAnswersController','apps.tools.triggers','SYSTEM:DELETEfaxQueue','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20vtigerConfiguration?','api.attachment.delete','-04:00','src/js/modules/auth/services/hotdesk/dialog.html/dialog.html','AgentHomeAbandonedController','msCard::cardTemplateLoaded','Whatsapp\x20Account','apps.tools.intervals','deleteMusicOnHold','selectAllGlobalCustomFields','vm_voice.query.filter','exportcsvcontactsexport','Status','requestFailed','arrayextensionMonitor','selectTagsChanged','Unable\x20to\x20retrieve\x20voice\x20channels','msHorizontalStepper','src/js/modules/main/apps/staff/views/telephones/telephones.html/telephones.html','/customDashboards','createdAt,updatedAt,id,name,phone,vat,fax,companyId,type,website,emailDomain,email,description,sStreet,sPostalCode,sCity,sCountry,street,postalCode,city,country','delete\x20Plugins','getChatWebsiteInteractions','defaultQueues','Integration_Tab','app.login','/login?token&userId','apps.settings.customizations','en-AU','SYSTEM:GETopenchannelQueue','AgentReject','moveIvrCampaignHopperFinal','CreateOrEditDeskAccountItemDialogController','delete\x20project','voiceQueue@get','selectedQueueCampaignHopperFinals','Pacific/Kosrae','statusClass','userChatQueue:save','InternalRoute','en-ZA','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20subject?','/snippet?token=','isAgent','reports','xAxes','resultsLoading','newSugarcrmConfiguration','api.jscriptyProject.save','deleteSelectedOutboundRoutes','deleteServicenowConfiguration','px,','dateTime','VoiceRecordingsController\x20as\x20vm','Freshdesk','Norwegian\x20(Norway)','apiAccountRoute','\x27en-IN\x27','faxQueue:update','onClick','Yoruba','SmsAccount\x20properly\x20deleted!','src/js/modules/main/apps/tools/views/triggers/create/dialog.html/dialog.html','onSaveChannel','deleteChatWebsiteChatProactiveAction','CreateOrEditOpenchannelAccountDialogController','osName','api/version/pull','America/Santarem','UserWhatsappQueue','onSaveChatQueueChannel','lll\x20Z','getTrustedURL','CSV\x20stop\x20import\x20process\x20failed!','MailQueues','api/sms/interactions/:id/download','createOrEditPause','SETTINGS.NEW_SMTP','userSmsQueue:remove','Serbian\x20(Serbia)','createOrEditZohoConfiguration','TOOLS.NOTIFICATIONS.CONDITION_DELETE_TITLE','CreateOrEditUserProfileDialogController','terminate','DASHBOARDS.SELECT_TAG','cmCompany','help','src/js/modules/core/directives/ms-dual-multiselect/ms-dual-multiselect.html/ms-dual-multiselect.html','delete\x20interval','Session\x20save\x20error','Supported\x20extension:\x20','Contact\x20updated!','api/integrations/salesforce/accounts/:id','addTags','app.mail.realtime.accounts','jscriptyProjectSummary_','src/js/modules/main/apps/voice/views/realtime/abandonedcalls/view.html/view.html','src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/interval/dialog.html/dialog.html','getVtigerConfiguration','openContact','Plugin\x20properly\x20saved!','operators','The\x20salesforceAccount\x20will\x20be\x20deleted.','api/version/reset','api/chat/queues/:id','Africa/Tunis','app.sms.smsAccounts.edit','IvrCampaignHoppersController','en-CA','\x20has\x20been\x20cloned!','api.condition.update','src/js/modules/main/apps/tools/views/customDashboards/edit/dashboard/dialog.html/dialog.html','currentTab','api/mail/messages/:id','api/square/recordings/describe','sqlUtil','userFaxQueue:save','whatsapp.whatsappAccounts','squareMessage','deleteSelectedOpenchannelQueues','api/integrations/dynamics365/configurations/:id/clone','zohoConfiguration','CHAT.NEW_CHATWEBSITE','getChanSpies','exportSelectedScheduler','openchannelAccountOpenchannelCannedAnswers','AgentsVoiceRealtimeController','VOICE.MUSICONHOLDS','onUserUpdate','onRemoteTransfer\x20->\x20evt,\x20data','clearDispositionSelection','Rule','app.dashboards.general.dialer','Delete\x20WhatsappCannedAnswer','digit','src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/gotoif/dialog.html/dialog.html','eurgermanmale','src/js/modules/main/apps/staff/views/userProfiles/create/dialog.html/dialog.html','European\x20Danish\x20Female','The\x20freshdeskAccount\x20will\x20be\x20deleted.','gotoWhatsappAccounts','Dynamics365Configuration\x20properly\x20created','createdAt,updatedAt,id,type,value,username,password','api.userProfile.save','CreateOrEditMetricDialogController','firstDayMonth','ms-info-bar-active','/callysquare/projects/','createOrEditWhatsappAccountWhatsappCannedAnswer','DASHBOARDS.THIS_YEAR','/sugarcrmAccounts','lo-LA','onUserCalled','Refer\x20Attended','api.analyticReport.delete','src/js/modules/main/apps/dashboards/views/general/agent/interaction/composeFax/dialog.html/dialog.html','variable@get','Frisian','fromJson','join','input','7200','selectedScreenRecordings','api/intervals/:id/sub_intervals','selectedQueueCampaigns','oldPasswordMatch','hue-1','key','intZohoField','Asia/Colombo','TAB','deleteSelectedIvrCampaigns','app.contactmanager.contacts','pauseTypeFilter','telephoneForm','api/openchannel/reports/queue/:id','api/rpc/chat/queues','app.contactmanager.companies.edit','\x27csv\x27','WHATSAPP.NEW_WHATSAPPCANNEDANSWER','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20servicenowConfiguration?','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','MsStepper','app.tools.variables','api/rpc/sms/queues','AgentBusyFactor','getChatQueues','QueueCampaign\x20properly\x20created','src/js/modules/main/apps/callysquare/views/projects/projects.html/projects.html','STAFF.PERMISSIONS_UNAUTHORIZED_CREATION_MESSAGE','voicemail','createOrEditSmsAccount','\x27invite\x27','The\x20smtp\x20will\x20be\x20deleted.','saveWhatsappCannedAnswer','resolve','deleteSelectedInternalRoutes','HANGUPCAUSE_21','clearConditions','Danish\x20(Denmark)',':id','getProactiveActions','VOICE.NEW_MOHSOUND','selectedVoicePrefixes','CONTACTMANAGER.MERGE_CONTACT','JSCRIPTY.PROJECTS','app.voice.voiceRecordings.edit','Australia/Sydney','The\x20globalCustomField\x20will\x20be\x20deleted.','QUICKPANEL.NEW_CHATGROUP','Restore\x20Contacts','HOUR','api.template.delete','ERROR\x20OPEN\x20INTERACTION','newVoiceQueue','.result','createOrEditOpenchannelAccountOpenchannelCannedAnswer','arraycservice','getSmsAccounts','Maltese','selectedChatWebsites','Smtp','Raveena','mailAccountApp','ProjectViewerController','isOnHold','deleteTag','bn-BD','US\x20City/States','webkitNotification','disabled','ui-sref','newTrigger','AccountId','notes','exportSelectedTemplates','api/sms/applications/:id','ms-nav-toggle','src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/agentadd/agentadd.html/agentadd.html','\x27udp\x27','ms-search-bar-expanded','createdAt,updatedAt,id,name,CustomReportId,DefaultReportId,output,active,startAt,endAt,cron,subtractNumber,subtractUnit,sendMail,MailAccountId,email,cc,bcc,sendIfEmpty,description','#5688d3','vTiger','app.dashboards','thirdLevelDisposition','createdAt,updatedAt,id,name,table,metric,description','src/js/modules/main/apps/jscripty/views/projects/edit/clone/clone.html/clone.html','APP.CANCEL','elementTag','home.fax','IntervalController','templateUrl','projects','notifications','getColorByChannel','apps.staff.users','downloadMailInteraction','src/js/modules/main/apps/integrations/views/freshsalesAccounts/edit/view.html/view.html','Start\x20Date','delete\x20ChatQueues','uploadPlugins','api/integrations/zendesk/accounts/:id/configurations','api/integrations/vtiger/fields/describe','Desk','token','toUpperCase','\x27chat_offline_messages\x27','queueMethod','dashboardItems','\x27report_openchannel_queue\x27','Unable\x20to\x20convert\x20answer','INTEGRATIONS.NEW_VTIGERCONFIGURATION','#275498','-09:30','stateClass','green-A700-fg','SmtpController\x20as\x20vm','api/dashboards/:id/clone','offsetHeight','newSquareRecording','Are\x20you\x20sure\x20want\x20to\x20restore\x20the\x20selected\x20contacts?','api/userProfile/sections/:id','\x27us-east-1\x27','whatsappCurrentCapacity','+12:00','Variables','OpenchannelQueuesController','DASHBOARDS.FEBRUARY','api.voicePrefix.save','SYSTEM:QUEUES_ASSOCIATION','EditMailAccountAppsystemDialogController','chatQueue:update','en-US','SYSTEM:GETinterval','api/integrations/:id/clone','custom','\x20has\x20been\x20reset','ngMessages','isObject','api.faxQueue.update','whatsappInteractions','defer','dialogflowV2_project_id','getByInteraction','DASHBOARDS.SELECT_STATUS','\x0a','onSaveUserMailQueue','src/js/modules/main/apps/staff/views/telephones/create/dialog.html/dialog.html','es-PY','finally','item','Notification\x20API\x20not\x20supported','api/whatsapp/accounts/:id/send','api/chat/offline_messages/:id','rpcAgents','OmniWeb','Yes','Konqueror','SYSTEM:GETintDynamics365Account','Waiting\x20to\x20restart\x20motion...','newWhatsappQueue','\x20has\x20been\x20modified.\x20Closing\x20will\x20lose\x20all\x20changes!','trustAsResourceUrl','Danish','America/Argentina/La_Rioja','toString','api.dashboardItem.save','api/integrations/zoho/fields/describe','name,id','api/voice/recordings/describe','firstLevelDisposition','cmContact@getHopperHistories','blue-fg','MOTIONDIALER.QUEUECAMPAIGNS','api/chat/reports/queue/:id','mailQueue:remove','teal-bg','Polish','Are\x20you\x20sure\x20want\x20to\x20restart\x20the\x20plugin\x20attached\x20process?','European\x20Portuguese\x20Male','Interaction\x20has\x20been\x20closed!','smsQueuesTotal','asterisk','createVidaooSession','deleteSmsAccountInteraction','Korean\x20(Korea)','api.pause.update','WhatsappAccount\x20updated!','setSelectedDate','startTimeAttr','EditInternalAppexternaldialDialogController','\x27pt-PT\x27','\x20selected
    ','deleteInboundRouteApp','xAnswerAfterSec','deleteMailQueue','IntervalIntervalsController','elapsed','api/mail/reports/transfer/:id/clone','VoiceQueueagentaddController','getSubjects','DASHBOARDS.LAST_WEEK','\x27TI\x27','checkbox','Delete\x20Variable','monthFrom','vm.voiceQueue.leavewhenempty.length\x20===\x201\x20&&\x20vm.voiceQueue.leavewhenempty[0]\x20===\x20\x27wrapup\x27','shortcuts','Delete\x20ZohoAccount','textContent','America/Belize','exportSelectedQueueCampaigns','TOOLBAR.CHANGE_LANGUAGE_MESSAGE','localstationid','ispeechAsrLanguage','hold','delete\x20descriptions','deleteSelectedDispositions','desktopNotification','gotoOpenchannelAccounts','CopyReportDialogController','api/integrations/dynamics365/configurations/:id/subjects','SYSTEM:DELETEintDeskAccount','SETTINGS.UPDATE','team','tech','deselectVoiceQueues','CustomDashboardController\x20as\x20vm','removeTeams','icon-cloud-download','Occitan','deleteSelectedReportFields','SMS.SMSQUEUES','api/analytics/custom_reports/describe','newTelephone','userProfiles','\x27info\x27','ukenglishmale','empty','AgentHomeVoiceDetailsController','openchannelQueue:remove','SETTINGS.JIRA_ERROR_MESSAGE','split','queueCampaignHopperFinals','api/fax/messages/:id/download','Contact\x20properly\x20deleted!','DASHBOARDS.CALL_DISPOSED','userMailQueue:save','endTimeAttr','Join','Settings','orange','saveCustomField','European\x20Spanish\x20Male','openchannelInteraction:update','api/cm/hopper_final/:id','America/Asuncion','CONTACT\x20NOT\x20AVAILABLE','UserProfile\x20properly\x20saved!','MailQueue','timer','\x20-\x20','api/openchannel/interactions/:id/messages','userProfile@getResources','api.downloadMessage.get','api/whatsapp/accounts/:id/dispositions','delete\x20CloudProviders','es-UY','moveConfirm','Openchannel\x20Report\x20Queue','node','app.staff.agents.edit','rpcSmsQueues','Persian','openchannel','LocalNET','MOTIONDIALER.SELECT_CAMPAIGN','app.settings.networks','getItems','EditInternalAppinternaldialDialogController','company','app/errors/500','integrations/salesforce/configurations/:id/descriptions','SYSTEM:GETtrunk','createOrEditWidget','VtigerAccountConfigurationsController','isJabraInitialized','crudPermissions','CreateOrEditReportDialogController','app.openchannel.realtime.agents','red-fg','isMobile','Interaction:save','msNavigationHorizontalItem','TOOLBAR.STAY_LOGGED','app.openchannel','ariaLabel','default','alert','onSearchBarCollapse','GET_TEMPLATE','api/license/:id','clear','Thumb','gdpr','Asia/Srednekolymsk','queueaddchannel','pending','SYSTEM:GETANSWERS','icon-auto-fix','id,phone,scheduledat','getAiTools','SYSTEM:GETtags','TelephonesVoiceRealtimeController\x20as\x20vm','en-NZ','src/js/modules/main/apps/voice/views/internalroutes/edit/apps/interval/dialog.html/dialog.html','Pacific/Gambier','newCompany','App\x20deleted!','arrayrecordingFormat','Subject','buttons','app.dashboards.general.voice','+09:30','ringgroup','deleteWhatsappQueuesWaitingInteractions','\x27es-419\x27','ms-widget-back','internalrouteApp','IvrCampaignresetlistController','chatWebsite','getMultiBarChart','hh:mm:ss','faxAccount:save','document','api.trunk.delete','api/square/projects/:id/clone','apps.plugins.plugin_','ReferAttendedDialogController','STAFF.CONFIRM','timelineOptions','CSCTelecom','Wav','createOrEditSchedule','addAccountApplications','null','openchannelQueue:update','app.tools.trunks','isStepDisabled','+05:30','api/sms/interactions/:id/tags','onRemoteCall\x20->\x20evt,\x20data','delete\x20faxAccount','OutboundRoute\x20updated!','gotoMusicOnHolds','INTEGRATIONS.NEW_DYNAMICS365ACCOUNT','Project\x20properly\x20','$translate','id=','error-500','getFolded','unpause','TrunksFaxRealtimeController','SYSTEM:GETlists','#BDBDBD','addJscriptyTab','exportSelectedCannedAnswers','delete\x20InternalRoutes','Variable','newsAlertHide','deselectCustomDashboards','Delete\x20Dynamics365Configuration','UserSmsDashboardGeneralController\x20as\x20vm','getTracks','CreateOrEditWhatsappAccountDialogController','NEVER','calls','America/Atikokan','Member\x20Report','Quarters','icon-checkbox-marked-circle','America/Rio_Branco','deleteServicenowAccount','api/voice/queues/reports/index','get_node','uriLocation','

    ','smsAccountApps','api/sounds/:id','api/sms/reports/transfer/:id/clone','-createdAt','getIvrCampaignHoppers','removeChild','selectedWhatsappAccountWhatsappCannedAnswers','opus','api/pm2/:id','intVtigerField','create_node','TOOLBAR.HEBREW','\x27turn\x27','rgba(','api.interval.delete','/queues','endTime','api.mailQueue.update','applications','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20faxAccounts?','Delete\x20OutboundRoute','err','runtranscribeSelectedVoiceRecordings','delete\x20voicePrefixs','faxInteractionTags:save','getResponseSheetHeaders','refreshAbandonedCalls','dateOfBirth','=template','Notification\x20creating\x20error','user_has_chat_interactions:remove','\x20will\x20be\x20run.','manageResources','get','api.intItem.update','app.voice','api/voice/mails/messages/:id/clone','EditChatWebsiteAppautoreplyDialogController','createOrEditCloudProvider','Asia/Beirut','Send\x20Anyway','app.chat','icon-cart','unionBy','onUpdateOpenchannelInteraction','getChatWebsiteApps','OPENCHANNEL.OPENCHANNELQUEUES','\x27bottom_right\x27','outboundBlacklistCallsDay','src/js/modules/core/directives/ms-click-to-call/ms-click-to-call.html/ms-click-to-call.html','America/Montevideo','WhatsappRealtimeController','Armenian\x20(Armenia)','us-east-1','motion2.home.abandoned.voice.calls:','browserVersion','MailCannedAnswer\x20properly\x20created','Please\x20select\x20a\x20variable','customization','saveTelephone','children','app.header','Explorer','isLoggedIn','Message','mailMessage:update','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20mohSound?','ServicenowAccount\x20properly\x20saved!','newMusicOnHold','getVoiceCalls','api/actions/:id/clone','delete\x20whatsappAccount','msSearchBar','gotoSalesforceAccounts','getReports','AgentHomeMailController','from-voip-provider','\x27user\x27','delete\x20Schedules','src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/agent/dialog.html/dialog.html','SYSTEM:UPDATECMHOPPERFINAL','getServicenowAccounts','mapValues','$endsWith','countContactsIvrCampaignHopperFinal','selectedWhatsappAccountInteractions','api.squareOdbc.delete','delete\x20chatCannedAnswer','MOTIONDIALER.NEW_IVRCAMPAIGN','EditInternalAppgotoDialogController','wechat','VtigerAccounts','mailMessage:save','Linux','apps.motiondialer','Europe/Budapest','STAFF.EDIT_AGENT','contactSearch','top','XCALLY-MOTION-PROGRESS=1','createOrEditInterval','QueueParamsMotionDialerRealtimeController\x20as\x20vm','cmList','/smsAccounts','createdAt,updatedAt,id,filename,projectName,uniqueid,callerid,extension,audio,savePath,format','lastDayMonth','src/js/modules/main/apps/fax/views/faxQueues/edit/view.html/view.html','getMailSubstatuses','onRemoveOpenchannelQueueChannel','src/js/modules/core/directives/ms-phonebar/settings/settings.html/settings.html','INTEGRATIONS.NEW_ZOHOACCOUNT','recordingURL','Always','mailInteraction@get','delete\x20template','getOpenchannelQueuesWaitingInteractions','alternate','selectedChatWebsiteChatCannedAnswers','STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_TITLE','googleSsoEnabled','api/cm/lists/:id/dispositions','STARTS_WITH','editdialog','schedule','Yesterday','Europe/Prague','api.jscriptyProject.delete','api/openchannel/reports/transfer/describe','configuration','delete\x20session','SYSTEM:GETintZohoAccount','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','previousStepInvalid','searchText','functions','QueuesMailRealtimeController\x20as\x20vm','createdAt,updatedAt,id,appdata,type,exten,context,description','api.intServicenowConfiguration.save','src/js/modules/main/apps/settings/views/customizations/customizations.html/customizations.html','English\x20(India)','app.staff.users','translate','getAttachments','api/sms/queues/:id/clone','saveReportField','customDashboard','deselectSmsQueues','PrivateKey','runconfirm','createOrEditVtigerConfiguration','answer','queryHistory.filter','data4','api/integrations/desk/accounts/:id/configurations','getVoiceQueuesPreview','api.whatsappAccount.save','backgroundPalette','GlobalCustomFieldsController\x20as\x20vm','SYSTEM:DELETECONFIGURATIONFIELD','extraData','URL','CreateOrEditMailQueueDialogController','motion.token','SMS.EDIT_SMSQUEUE','selectedQueueCampaignHoppers','moveQueueCampaignHopperFinal','SYSTEM:DELETEcampaign','selectedCustomDashboards','amber-A200-bg','api/cm/custom_fields/:id/clone','apps.dashboards.general','-stamp','getExtractedReports','api/chat/websites/:id/system_avatar','VOICE.INTERNAL','callerID','Fax\x20Account','api/whatsapp/applications/describe','api/intervals/:id','getSessions','SYSTEM:GETvoiceExtension','$translatePartialLoaderProvider','Teams','SquareProjects','windowHeight','Users','differenceWith','ChatQueue\x20properly\x20created','exportSelectedWhatsappAccountInteractions','mwFormViewer','api/jscripty/sessions/reports/:id','fromTemplate','CreateOrEditTemplateDialogController','SYSTEM:queueCampaign.RESETLIST','\x20Contacts\x20selected','IvrCampaignHopperHistoriesController','searchFields','closeDialog','deletescreenRecording','All\x20unfilled\x20values\x20of\x20the\x20contact\x20#','Websites','delete\x20field','SYSTEM:GETcampaign','France\x20(France)','/analytics','File\x20too\x20big','deselectIntervals','api.mailQueue.save','America/Moncton','EditChatWebsiteAppdialogflowDialogController','createOrEditZendeskAccount','api/mail/out_servers/describe','SYSTEM:GETvoiceMail','America/La_Paz','TOOLS.NOTIFICATIONS.DISPOSITION_SAVED_SUCCESS_TITLE','The\x20vtigerConfiguration\x20will\x20be\x20deleted.','inboundrouteApps','newSmsAccount','Time','Interaction\x20deleted!','api/cm/hopper_history/:id','src/js/modules/main/apps/sms/views/smsQueues/edit/teamadd/teamadd.html/teamadd.html','smsInteractionTags:save','channels','src/js/modules/main/apps/integrations/views/deskAccounts/edit/item/dialog.html/dialog.html','Verdana,Geneva,sans-serif','/teams','Spanish\x20(Latin\x20America)','unlicensed','faxAccounts','md-amber-200-bg','api/voice/extensions/:id','ScreenRecordingplayController','offHook','Klingon','app.sms.smsAccounts','700','Dispositions','smsAccount@get','log','deleteInternalRoute','target','Gmail','mail_queue_waiting_interaction:save','','DisposeInteractionDialogController','saveNetwork','dialMethod','newZendeskAccount','addContacts','SalesforceAccount\x20properly\x20tested','Europe/Oslo','hopperBlack\x20#','MarketplacePluginController','icon-console','src/js/modules/main/apps/sms/views/realtime/realtime.html/realtime.html','INTEGRATIONS.EDIT_VTIGERCONFIGURATION','openchannelInteractions','search','bg-BG','answers','save_name','FreshsalesAccountsController\x20as\x20vm','deselectChanSpies','app/main','apps.chat.chatWebsites','downloadInteraction','deleteTriggerAnyCondition','getFaxAccountApps','src/js/modules/main/apps/fax/views/realtime/agents/view.html/view.html','getPieChart','hangup','dashboard:remove','UserProfilesController','TOOLS.PAUSES','lastName','src/js/modules/main/apps/integrations/views/zendeskAccounts/edit/item/dialog.html/dialog.html','/smsQueues','eurgermanfemale','SMS\x20Queues','getInternalRoutes','dateEnd','answer\x20->\x20session','createdAt,updatedAt,id,name,key,token,replyUri,ListId,waitForTheAssignedAgent,mapKey,mandatoryDisposition,mandatoryDispositionPauseId,description,receiveUri,notificationSound,notificationShake,notificationTemplate,queueTransfer,queueTransferTimeout,agentTransfer,agentTransferTimeout','app.jscripty.projects','api.team.update','defaultHeaderWhiteLabel','api/dashboards/:id/items','blur','selectedItemChange','daysOfWeek','Europe/London','Failed\x20to\x20delete\x20the\x20attached\x20pm2\x20process','saveInboundRoute','CustomDashboardController','SugarcrmAccount\x20properly\x20created','STAFF.NOTIFICATIONS.PERMISSIONS_ENABLED_ALL_SUCCESS_MESSAGE_NO_RESOURCES','id,tree','api/users/:id/agents','horizontal','src/js/modules/main/apps/fax/views/faxQueues/edit/agentadd/agentadd.html/agentadd.html','audiooutput','Spanish\x20(United\x20States)','createOrEditServicenowConfiguration','arraysetqueueentryvar','selectedTags','channel','api/analytics/field_reports/:id/create_many','Swahili\x20(Tanzania)','English\x20(Kenya)','DeskAccount\x20properly\x20created','The\x20voiceRecording\x20will\x20be\x20deleted.','cloneProject','CreateOrEditFaxAccountDialogController','src/js/modules/main/apps/integrations/views/vtigerAccounts/edit/configurations/dialog.html/dialog.html','src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/view.html/view.html','vm.selectedCompany','EditInboundAppvoicemailDialogController','newChatQueue','mr-IN','deleteSelectedFields','Sundanese','SYSTEM:DELETEintZendeskAccount','screenRecordings','\x27agentOnly\x27','exportSelectedIvrCampaignHopperBlacks','-02:00','addNewList','Century\x20Gothic,Futura,Didact\x20Gothic,san-serif','OpenchannelQueues','chatInteraction@get','AgentHomeChatController','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20scheduled\x20call?','Tahoma','Context\x20properly\x20saved!','src/js/modules/main/apps/settings/views/updates/updates.html/updates.html','id,name,crudPermissions','src/js/modules/main/apps/integrations/views/freshsalesAccounts/edit/configurations/dialog.html/dialog.html','delete\x20description','getMailInteractions','api/integrations/zoho/accounts/:id/configurations','src/js/modules/main/apps/chat/views/chatWebsites/edit/chatCannedAnswers/dialog.html/dialog.html','\x279600\x27','TOOLS.EDIT_DASHBOARDITEM','src/js/modules/main/apps/voice/views/voiceQueues/edit/agentadd/agentadd.html/agentadd.html','sortBy','faxQueue:save','api.intVtigerConfiguration.delete','api.analyticExtractedReport.delete','delete\x20ServicenowAccounts','\x27zh-CN\x27','sms_account_id','exportSelectedMetrics','integrationTab','src/js/modules/main/apps/fax/views/realtime/trunks/view.html/view.html','/voiceQueues','onSaveOpenchannelInteraction','STAFF.SELECTED_QUEUES_','Gsm','rgb(','Tag\x20properly\x20deleted!','getMailAccountMailCannedAnswers','apps.sms.smsAccounts','Filipino','FaxAccount\x20properly\x20created','days','The\x20musiconhold\x20will\x20be\x20deleted.','getTemplates','CreateOrEditScheduleDialogController','api.intSugarcrmConfiguration.delete','mozNotification','src/js/modules/main/apps/integrations/views/sugarcrmAccounts/create/dialog.html/dialog.html','joins','INTEGRATIONS.EDIT_FRESHSALESACCOUNT','apps.jscripty','Asia/Vladivostok','schedules','TOOLS.NOTIFICATIONS.TRIGGER_SAVED_SUCCESS_TITLE','src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/tag/dialog.html/dialog.html','\x22\x20err:','limit','apps.contactmanager.globalCustomFields','mergeContact','delete\x20deskConfiguration','apps.integrations.servicenowAccounts','mdColorPicker','GET_VARIABLE','motion','\x20has\x20been\x20downloaded!','TrunksController\x20as\x20vm','minutes','api/integrations/salesforce/configurations/:id','src/js/modules/main/apps/tools/views/triggers/edit/allconditions/create/dialog.html/dialog.html','api/integrations/freshsales/accounts/:id/configurations','api/whatsapp/applications/:id','getOrderBy','SYSTEM:GETuser','advancedSearch','dashboards','src/js/modules/main/apps/video/views/screenRecordings/create/dialog.html/dialog.html','):Goto(','gotoTelephones','api/integrations/sugarcrm/accounts/describe','smsCannedAnswer','SIP','APP.WHATSAPP','selectAllVoicePrefixes','destroy','sumDuration','msTimezone','getVariables','ZohoAccountController\x20as\x20vm','CreateOrEditVoicemailDialogController','MohSound\x20deleted!','src/js/modules/main/apps/analytics/views/reports/preview/dialog.html/dialog.html','onRemoveVoiceQueue','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','id,firstName,lastName,email','initialize','delete\x20vtigerAccount','isActive','escape','app.fax.realtime.queues','api/rpc/sms/queues/:id/notify','FAX.NEW_FAXACCOUNT','newTrunk','Pacific/Easter','selectAllIntervals','delete\x20Users','America/Dawson_Creek','queryOptions','user_has_mail_interactions:save','api/rpc/telephones','Naja','\x27openchannel_messages\x27','\x22>','CreateOrEditInternalRouteDialogController','selectedHues','id,phone,scheduledat,recallme,priority,UserId,OwnerId','deskAccounts','removeItem','OpenchannelInteractionId','app/main/apps/jscripty','uploading','QueueCampaignController','MxGraphOpenProjectController','permission','CONTACTMANAGER.NEW_LIST','ReportsController\x20as\x20vm','EditInboundAppintervalDialogController','The\x20screenRecording\x20will\x20be\x20deleted.','useLoader','intFreshsalesAccount','onInternalMessageUpdate','browserName','Message:save','Message\x20has\x20been\x20accepted!','msUtils','secret','/ms-widget-engine.','api/whatsapp/messages/:id/clone','Delete\x20Metric','STAFF.','Interaction\x20properly\x20closed!','paused','IntervalsController\x20as\x20vm','Numbers\x20to\x20999','\x27{{voiceMail.mailbox}}@from-voicemail\x27','filter','api/whatsapp/interactions/:id','Asia/Makassar','deleteSelectedFaxQueues','nextStep','dashboard','level','newFaxQueue','internalrouteApps','loggedIn','IS_LESS_THAN','$mdComponentRegistry','searchResultClick','Error\x20creating\x20queue!','/whatsappAccounts','cmContact@getHoppers','TOOLBAR.WEBRTC_SPEAKER_NOT_AVAILABLE','api/chat/messages/:id/accept','api.template.save','icon-account-circle','Field','unreadMessage','TOOLS.TRUNKS','wrapup','getMinutes','deleteFreshsalesAccount','msBlink','America/Barbados','arraybuffer','api/integrations/salesforce/accounts/:id/clone','Progressive','Antarctica/Mawson','notification','right','WhatsappQueue\x20updated!','showDialpad','voiceCallReport','updateQueue','colors','onSearch','0.12','FreshdeskAccountController\x20as\x20vm','contact','newSound','hiddenCC','s:\x20Skip\x20the\x20playback\x20of\x20the\x20channel\x20type\x20(i.e.\x20SIP,\x20IAX,\x20etc)\x20when\x20speaking\x20the\x20selected\x20channel\x20name.','api.voiceQueue.delete','US\x20West\x20(N.\x20California)','collapsing','Australia/Adelaide','toTrusted','getOpenchannelAccountLabel','analyticMetric','isValid','getInternalRouteApps','TOOLS.NOTIFICATIONS.ACTION_DELETE_TITLE','triggers','Delete\x20CloudProvider','IntervalsController','odbc','selectedColor','refer\x20->\x20session','European\x20Polish\x20Female','api/jscripty/questions/reports/:id','DashboardItem\x20properly\x20deleted!','predictiveIntervalAvgHoldtime','apps.contactmanager.contacts','delete\x20list','INTEGRATIONS.EDIT_ZOHOCONFIGURATION','POST','hangupHook\x20->\x20sessionToHangup','height','ENTER_BR','intSugarcrmAccount','icon-text-to-speech','arrayvideosupport','MARKETPLACE.MARKETPLACE','/telephones','Japanese\x20(Japan)','deleteIvrCampaignHopperHistory','America/Blanc-Sablon','deleteSelectedQueueCampaignHoppers','pound','STAFF.CLONE_USERPROFILE','addNewSalesforceAccount','QueueCampaign\x20updated!','saveOrPublishProject','sa-east-1','exportSelectedListCustomFields','Delete\x20Plugin','2nd','queryJscriptySession','selectedAgents','deleteSelectedFaxAccountInteractions','descriptions','app.marketplace.plugins.edit','America/Detroit','SYSTEM:GETanalyticReport','UserWhatsappDashboardGeneralController\x20as\x20vm','Textarea','api/integrations/sugarcrm/accounts/:id/configurations','$watchGroup','OpenchannelAccountagentaddController','openchannelQueues','selectedZendeskConfiguration','api/fax/accounts/:id/applications','OpenchannelQueueController\x20as\x20vm','id,fullname','auth','currentPage','keys','api/settings/:id/gdpr','createdAt,updatedAt,id,name,strategy,timeout,description','icon-video','saveChatWebsiteApp','apps.home.whatsapp','app.dashboards.general','mailInteraction:save','OpenchannelCannedAnswer\x20properly\x20deleted!','diff','api/voiceQueuesLog/:id','api/cm/custom_fields/describe','Trunk\x20properly\x20cloned','VoicePrefixes','onSaveChatInteraction','serverDateOffset','totalSteps','src/js/modules/main/apps/analytics/views/reports/edit/view.html/view.html','api/users/:id/unpause','Atlantic/Stanley','src/js/modules/main/apps/dashboards/views/general/agent/home/abandoned/dispose/dialog.html/dialog.html','Australia/Lindeman','OdbcsController\x20as\x20vm','odbc_id','toggleFold','SYSTEM:queueCampaign.REMOVELIST','listOrderAsc','APP.USERS','MOTIONDIALER.CLONE_IVRCAMPAIGN','MailQueue\x20properly\x20created','newsAlertOnClose','addNewZohoConfiguration','deleteSelectedMailAccountInteractions','isNumber','api/analytics/tree_reports/:id','VoicemailMessagesController','CHAT.CHATWEBSITES','msNavIsFolded','getApiKey','getReportFields','localStorage','hmac','files','ngModel','delete\x20freshsalesConfiguration','api/integrations/servicenow/fields/:id/clone','set','goToFaxAccount','English\x20(Philippines)','api/integrations/zoho/configurations/:id/descriptions','deleteSmsAccount','requestPermission','getReceivers','VERSION\x20','param','EditChatWebsiteAppnoopDialogController','vm_ac.chatWebsite.remote','TOOLBAR.FRENCH','apps.help','#3470ca','api/voice/queues/:id/blacklists','toggleSidenav','api.tag.update','Admin','messageStatuses','cloneCustomDashboard','Contacts','editDraft','api/automations/:id','src/js/modules/main/apps/integrations/views/vtigerAccounts/edit/item/dialog.html/dialog.html','YYYY-MM-DD','api/cm/hopper_history/describe','chatStatusTime','Scheduled\x20call\x20has\x20been\x20deleted!','id,name,role,context','newDeskAccount','SETTINGS.NEW_NETWORK','api/whatsapp/reports/queue/describe','Spanish\x20(Argentina)','getWhatsappQueuesWaitingInteractions','addNewDashboardItem','selectedIntervalIntervals','arraydelete','src/js/modules/main/apps/video/views/screenRecordings/partialViews/play.html/play.html','createOrEditFaxAccount','countContactsQueueCampaignHopperFinal','CustomField\x20deleted!','unit','api.campaign.save','moveContactsQueueCampaignHopperFinal','whatsapp','chatInternalMessage','addNewDynamics365Account','app/main/apps/dashboards','app.integrations.zohoAccounts','icon-format-text','intervals','multiselect','exportSelectedServicenowAccounts','api.intFreshsalesConfiguration.delete','Attachments','hasClass','api.whatsappAccount.update','round','src/js/modules/core/layouts/vertical-navigation.html/vertical-navigation.html','ar-EG','Atlantic/Bermuda','startTime','app.whatsapp.whatsappQueues','Classic','es-CR','SmsCannedAnswer\x20deleted!','api/mail/accounts/:id/canned_answers','SmsQueue\x20properly\x20created','MAIL.EDIT_','TOOLS.TEMPLATES','INTEGRATIONS.INTEGRATIONS','userIsNotPhonebar','defaultPageTitle','removeApiKey','api/mail/applications/describe','api/integrations/servicenow/configurations/:id/subjects','api/version','IndexController','Europe/Tirane','getMap','bn-IN','deleteSelectedOpenchannelAccountOpenchannelCannedAnswers','Contact\x20properly\x20created','forms','replyAll','Delete\x20Voicemail','Trasfer\x20properly\x20done!','className','ceil','src/js/modules/main/apps/contactmanager/views/contacts/import/import.html/import.html','whatsappAccounts','project.name','home.mail','href','iPad','Telephone\x20properly\x20created','app.integrations.salesforceAccounts.edit','createdAt,updatedAt,id,name,dsn,description','api/rpc/voice/queues/channels/:uniqueid/hangup','webpackChunkmotion_client','whoami','UsersController','America/Guatemala','ComposeMailInteractionDialogController','DisposeAbandonedCallDialogController','agentForm','First','convertDuration','deleteSelectedZendeskAccounts','SYSTEM:GETqueues','CreateOrEditSugarcrmAccountDialogController','WebSocketInterface','userMailQueue:remove','CreateOrEditInboundRouteDialogController','AgentController','Phonebar','Spanish\x20(Venezuela)','dualMultiselectOptions','GET_ODBC','msNav::expandMatchingToggles','ChatQueueagentaddController','src/js/modules/main/apps/tools/views/triggers/edit/view.html/view.html','WhatsappCannedAnswer\x20deleted!','user,admin','deleteExtractedReport','monthDayFrom','OpenchannelAccount','Tamil','arraySmtp.service','pickerModels','Comic\x20Sans\x20MS','api/chat/applications/:id','Delete\x20SquareRecording','SYSTEM:DELETEintFreshsalesAccount','app/main/apps/tools','saveChatGroup','showMailInteraction','ngEmbed','kind','HANGUPCAUSE_41','icon-email','api/analytics/metrics/:id/clone','loop','outboundCongestionCallsDay','ne-NP','id,name,save_name','EditInboundAppringgroupDialogController','VoiceRecordingController\x20as\x20vm','confirmed','ChatProactiveAction\x20properly\x20deleted!','yAxes','Chinese,\x20Cantonese\x20(Traditional,\x20Hong\x20Kong)','Pacific/Chuuk','vm.voiceQueue.leavewhenempty.length\x20===\x201\x20&&\x20vm.voiceQueue.leavewhenempty[0]\x20===\x20\x27yes\x27','app.fax.faxAccounts','\x27opus\x27','#chat-dialog','delete\x20screenRecording','api/integrations/servicenow/configurations/:id','app.errors','project','app.settings.generals','newOpenchannelCannedAnswer','src/js/modules/main/apps/voice/views/internalroutes/edit/apps/custom/dialog.html/dialog.html','DeskAccount\x20updated!','PreviewDialogController','app.tools.dispositions','rpcFaxAccounts','selectedDynamics365Accounts','ANALYTICS.EXTRACTEDREPORTS','agentreject','blue-A700-fg','Fax\x20Report\x20Queue','app/quick-panel','src/js/modules/main/apps/openchannel/views/realtime/queues/view.html/view.html','language','queue_id','deleteSelectedUsers','api/chat/websites/:id/canned_answers','api/integrations/freshdesk/configurations/:id','updateLayoutMode','setupSteps','saved','/whatsappQueues','queueCampaign','rewriteRouting','apps.home.sms','disposedAt','TOOLBAR.ARABIC','whatsappCapacity','America/North_Dakota/Beulah','clonedialog','Contact','autoAssociation','SYSTEM:DELETEvoiceRecording','deleteCannedAnswer','selectedChatQueues','src/js/modules/main/apps/dashboards/views/general/user/mail/user.general.mail.html/user.general.mail.html','createdAt,updatedAt,id,defaultLogo,defaultLoginLogo,defaultFavicon,defaultHeaderWhiteLabel,headerWhiteLabel,defaultPageTitle,pageTitle,defaultPreferred','QuickPanelController\x20as\x20vm','Read','INTEGRATIONS.EDIT_SUGARCRMACCOUNT','mailAccounts','VOICE.DIALER','api.cmList.delete','prop','ms-nav-button','addNewSmsCannedAnswer','src/js/modules/main/apps/staff/views/users/create/dialog.html/dialog.html','newList','userLists','SmsQueues','exportSelectedTriggers','phoneBarDnd','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20queueCampaigns?','onUpdateOpenchannelQueue','queryFinal.filter','ivrCampaignHopperHistories','OpenchannelAccountDispositionsController','saveOpenchannelAccount','UserFaxQueue','src/js/modules/main/apps/mail/views/realtime/queues/view.html/view.html','IvrCampaignHopperStatisticsController','setThemesList','api/integrations/desk/fields/describe','#2e62b1','Asia/Ulaanbaatar','internalroute','jscriptyProject','\x27SIP\x27','api/sms/messages/:id/clone','SYSTEM:GET','The\x20metric\x20will\x20be\x20deleted.','SYSTEM:GETtrunks','On\x20{{\x20date\x20}},\x20at\x20{{\x20time\x20}},\x20{{\x20from\x20}}\x20wrote:','motion.folded','src/js/modules/main/apps/integrations/views/sugarcrmAccounts/sugarcrmAccounts.html/sugarcrmAccounts.html','app.motiondialer.realtime.queue_params','SoundsController','DialogController','src/js/modules/main/apps/tools/views/variables/create/dialog.html/dialog.html','CreateOrEditQueueCampaignDialogController','cmn-Hant-TW','databases','app.callysquare.odbcs','admin','Whatsapp\x20Interaction','penalty','numbersto9','ngclipboard','Not\x20Found','removeTab','\x27switch\x27','api.intZendeskAccount.update','feb','api/integrations/freshdesk/fields/:id/clone','FaxRealtimeController','hours','onVoiceChannelRemove\x20->\x20evt','Delete\x20IvrCampaign','Kyrgyz','selectAllScheduler','api/users/:id/avatar','selectChangedAdvanced','reset','src/js/modules/main/apps/tools/views/customDashboards/customDashboards.html/customDashboards.html','/tags','sendRequest','src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/system/dialog.html/dialog.html','intFreshsalesConfiguration','\x20data','src/js/modules/main/apps/tools/views/pauses/pauses.html/pauses.html','chatInteractions','gotoProcess','General\x20updated!','api/analytics/custom_reports/:id/clone','drop','deleteTemplate','pink','disposition','onLogged','DisposeCallDialogController','autoCreate','squareRecording@get','Browser\x20notifications\x20are\x20not\x20supported\x20by\x20the\x20browser.\x20Normal\x20notifications\x20will\x20be\x20used.','openProject','TOOLS.NOTIFICATIONS.TRIGGERS_DELETE_MESSAGE','chatProactiveAction','src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/gotop/dialog.html/dialog.html','src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/system/dialog.html/dialog.html','api/rpc/voice/channels/:uniqueid/stopmixmonitor','Atlantic/Azores','onUpdateSmsQueue','webcall','src/js/modules/main/apps/motiondialer/views/realtime/ivr_campaigns/view.html/view.html','onSaveUserFaxQueue','Plugin\x20not\x20deleted!','Antarctica/Macquarie','\x27twilio\x27','api/chat/internal/messages/users','apiselect','ChatQueueteamaddController','api/users/:id/lists','angular-toasty','last','api/fax/accounts/:id/dispositions','deselectCompanies','chrome','SYSTEM:DELETEvoiceChanSpy','getLockedItems','The\x20contact\x20is\x20in\x20the\x20hopper','getOpenchannelAccountInteractions','nb-NO','InternalRoutes','EditMailAccountAppqueueDialogController','.html','$compile','delete\x20DeskAccounts','openchannelQueue:save','mailCurrentCapacity','app.motiondialer.realtime','class','ssml','_path','evt','importXML','api.analyticReportField.delete','File\x20name','getApi','IvrCampaigncloneController','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20voiceQueues?','INTEGRATIONS.NEW_VTIGERACCOUNT','closeReportDialog','$httpProvider','deleteMohSound','incoming','\x20ms','allConditions','CreateOrEditNetworkDialogController','America/Noronha','Freshsales','EditInboundAppexternaldialDialogController','deleteTelephone','globalTags','0\x200\x20*\x20*\x20*','getChatInteractions','.ms-nav-button','Are\x20you\x20sure\x20want\x20to\x20restore\x20the\x20contact?','api/integrations/desk/accounts/describe','delete\x20chatProactiveAction','src/js/modules/main/apps/voice/views/internalroutes/edit/apps/voicemail/dialog.html/dialog.html','instant','avgHoldTime','SYSTEM:PAUSEUSER','smsAccountInteractions','SugarcrmConfiguration\x20properly\x20saved!','ERROR\x20REMOVE\x20TAB','Close\x20Contact','id,exten','moveSelectedIvrCampaignHopperFinals','api.chatProactiveAction.update','value','Caller_ID','app.sms.smsQueues','src/js/modules/main/apps/integrations/views/freshdeskAccounts/edit/configurations/dialog.html/dialog.html','api/sms/accounts/:id/clone','STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_MESSAGE','permissionsmanagedialog','\x27SIP/{{user.name}}\x27','Team','api.openchannelAccount.save','INTEGRATIONS.EDIT_DESKACCOUNT','#9ab8e5','CALLYSQUARE.CALLYSQUARE','Asia/Aqtau','expand-animation','showWhatsappInteraction','customFieldForm','gotoPreviousStep','contentWithToolbar','focusOn','onUserVoiceQueue','/sounds','src/js/modules/main/apps/tools/views/cannedAnswers/cannedAnswers.html/cannedAnswers.html','VOICE.EDIT_INBOUNDROUTE','register','provider','3rd','delete\x20hopper','api/rpc/voice/queues','Target','api/openchannel/accounts/:id/canned_answers','motion2.home.chat:','bottom-right','onSaveCampaign','outboundroutes','Campaign','companiesMap','api/conditions/describe','src/js/modules/main/apps/sms/views/realtime/agents/view.html/view.html','The\x20sugarcrmConfiguration\x20will\x20be\x20deleted.','Africa/Nairobi','api/teams/:id','SMS.EDIT_SMSCANNEDANSWER','api.dashboard.save','\x27ringing\x27','N/A','intFreshdeskConfiguration','resetPassword','tcp','api/voice/mohs/:id/sounds/:id2','VoiceMusicOnHoldId','motion.authenticationtype','ngValue','NO\x20QUERY','/odbcs','delete\x20offlineMessages','ChanSpies','blue-grey-A200','newChatProactiveAction','America/Bahia','accent','newCannedAnswer','addAgents','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20variables?','Inactive','gotop','home.chat','The\x20network\x20will\x20be\x20deleted.','Customization\x20properly\x20deleted!','Catalan','setting@get','deselectScheduler','msMasonryItem','Delete\x20VtigerConfiguration','contactInfo','Node\x20Updated','getChatWebsiteLabel','fax.faxAccounts','MsFormWizardController','UserSmsAccount','America/Eirunepe','role','HANGUPCAUSE_16','app.voice.voicemails.edit','$mdThemingProvider','delete\x20user','src/js/modules/core/directives/ms-search-bar/ms-search-bar.html/ms-search-bar.html','newDisposition','/api/settings/1/logo','voice_queue_channel:remove','api/analytics/tree_reports/describe','blue-grey-A200-fg','deleteSound','\x27tcp\x27','campaign@get','ar-AE','api/integrations/sugarcrm/configurations/:id','exportSelectedZohoAccounts','Init\x20error','granted','SYSTEM:GET_VARIABLES','api/chat/queues/:id/clone','SYSTEM:DELETEfaxAccount','selectedProjectSessions','OpenchannelAccountsController\x20as\x20vm','newSugarcrmAccount','analyticExtractedReport','localHold','SYSTEM:GET_TAGS','English\x20(South\x20Africa)','shift','toggle','Asia/Tashkent','ngAnimate','Body','src/js/modules/main/apps/voice/views/internalroutes/edit/apps/internaldial/dialog.html/dialog.html','addNewDeskAccount','pluginId','/video','createdAt,updatedAt,id,name,username,remoteUri,password,serverUrl,description','EditChatWebsiteAppsystemDialogController','rgba','dynamics365Configuration','css','GET_TRUNK','app/main/apps/voice','TOOLS.NOTIFICATIONS.ACTIONS_DELETE_MESSAGE','\x27zh-HK\x27','delete\x20openchannelQueue','src/js/modules/main/apps/voice/views/musiconholds/edit/view.html/view.html','Dynamics365Configuration\x20properly\x20deleted!','+03:00','Auth','selectedSubjects','affectedRows','whatsappCannedAnswers','deleteNetwork','monthTo','popup','-id','src/js/modules/main/apps/openchannel/views/openchannelQueues/create/dialog.html/dialog.html','createOrEditListCustomField','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','SmsAccountSmsCannedAnswersController','CHAT.EDIT_CHATCANNEDANSWER','src/js/modules/main/apps/jscripty/views/projects/projects.html/projects.html','VOICE.VOICEPREFIXES','getExtension','onUpdateVoiceQueue','getLists','selectedTriggerAllConditions','SYSTEM:GETintZendeskAccount','TIMEOUT','intSalesforceAccount','exportSelectedMailQueues','Delete','ar-IQ','The\x20extension\x20','eurnorwegianfemale','steps','\x27WAV\x27','Accept','Delete\x20voicePrefix','msQuickFilter','daysS','appid','src/js/modules/main/apps/dashboards/views/general/user/fax/user.general.fax.html/user.general.fax.html','customerIp','availableOperators','api.team.save','selectedInboundRoutes','Interval\x20properly\x20saved!','sk-SK','selectedTab','onSaveFaxQueue','Montenegrin','INTEGRATIONS.EDIT_VTIGERACCOUNT','$selectedColor','createOrEditFreshsalesAccount','src/js/modules/core/directives/ms-timezone/ms-timezone.html/ms-timezone.html','interactionId','Some\x20resources\x20enabled','toggleHorizontalMobileMenu','EditInternalAppqueueDialogController','deleteAllCondition','deviceInfo','createOrEditProjectSession','src/js/modules/main/apps/dashboards/views/general/user/sms/user.general.sms.html/user.general.sms.html','intSalesforceConfiguration','getServicenowConfiguration','src/js/modules/main/apps/motiondialer/views/realtime/realtime.html/realtime.html','app.staff.agents','uploadPlugin','deleteSmsQueuesWaitingInteractions','SETTINGS.UPDATES','TeamsController\x20as\x20vm',',xX,,,300,,,,,','isPause','America/Caracas','range','Delete\x20ChatProactiveAction','ms-navigation-horizontal-item','Asia/Baku','changePasswordForm','Pacific/Chatham','vm.voiceQueue.joinempty.length\x20===\x201\x20&&\x20vm.voiceQueue.joinempty[0]\x20===\x20\x27yes\x27','addNewInterval','apps.settings.license','formsIncomplete','initializeRealtimeQueue','Macro','=interval','Chat\x20Report\x20Queue','vm.voiceQueue.joinempty.length\x20===\x201\x20&&\x20vm.voiceQueue.joinempty[0]\x20===\x20\x27penalty\x27','getAgentGlobalStatus','api/users/:id/recordings','delete\x20sound','groupBy','/queue_params','STAFF.PERMISSIONS_ALL_RESOURCES','FaxAccount\x20properly\x20saved!','extractedReport','onResultClick','CreateOrEditVtigerAccountDialogController','arrayrole','exportSelectedScreenRecordings','intVtigerAccount@get','\x27chat_interactions\x27','api/analytics/extracted_reports/:id/clone','$stateChangeSuccess','Horizontal\x20Navigation','uniqueid,calleridnum,statedesc,scheduledat,starttime,endtime','hoursS','saveCloudProvider','delete\x20squareRecording','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20odbcs?','teamadddialog','createOrEditChatWebsite','/staff','multipleChoices','MailAccount\x20properly\x20saved!','Warning','api/settings/:id/favicon','then','questions','tag@get','api/rpc/trunks','VoicemailsController\x20as\x20vm','delete\x20smsAccount','getMusicOnHolds','CONTACTMANAGER.EDIT_LIST','voiceMusicOnHold','America/Argentina/Cordoba','src/js/modules/main/apps/voice/views/voicePrefixes/voicePrefixes.html/voicePrefixes.html','api/voice/mails/describe','onCollapse','onSaveWhatsappInteraction','Romanian\x20(Romania)','finishCallback','replyTemplate','statusList','Jscripty\x20Answers','api/integrations/dynamics365/accounts/:id/clone','CreateOrEditVtigerAccountItemDialogController','MetricsController\x20as\x20vm','api/cloudProviders/:id/clone','delete\x20ZohoAccounts','handleKeydown','chatQueue:save','removeClass','basename','Hindi','src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/autoreply/dialog.html/dialog.html','es-MX','OpenchannelCannedAnswer\x20properly\x20created','Preview','notification:send','Are\x20you\x20sure\x20want\x20to\x20reset\x20the\x20list\x20','deselectPlugins','/ivr_campaigns','Nepali\x20(Nepal)','Portuguese\x20(European)','delete\x20smsCannedAnswers','sectionColor','ONLY_IF_OPEN','GET_USER','saveSalesforceAccount','response','api/userProfiles/:id/resources','talking','id,type,uniqueid,tag,starttime,endtime,source,destination,userDisposition,userSecondDisposition,userThirdDisposition,note,duration,billableseconds,answertime','src/js/modules/core/layouts/vertical-navigation-fullwidth-toolbar.html/vertical-navigation-fullwidth-toolbar.html','onRemoveSmsQueueChannel','Disabled','The\x20system\x20request\x20time\x20for\x20the\x20update\x20should\x20be\x20below\x201\x20minute.

    Do\x20you\x20agree\x20the\x20terms\x20of\x20this\x20End\x20User\x20License\x20Agreement?','CreateOrEditSmsCannedAnswerDialogController','getResponseSheetRow','timeoutId','NetworksController','InternalRoutesController\x20as\x20vm','SYSTEM:GETUSERS','newOpenchannelAccount','installing','association','Customer\x20Journey\x20can\x27t\x20open\x20the\x20interaction','Tag\x20properly\x20created','\x27gmail\x27','interval\x20#','ar-DZ','setText','addTeams','onVoiceChannelRemove\x20->\x20\x20key,\x20tab,\x20tab.calls','GET_PAUSE','viber','MsNavigationHorizontalNodeController\x20as\x20vm','api/integrations/vtiger/configurations/:id/fields','createdAt,updatedAt,id,name,html,description','saveFaxQueue','src/js/modules/main/apps/tools/views/triggers/edit/anyconditions/create/dialog.html/dialog.html','\x27onlyIfOpen\x27','delete\x20openchannelAccount','Abandon','arraysort','errors','isApp','api/chat/interactions/:id/vidaoo','gotoTrunks','iPhone','api/cm/contacts/merge','api/integrations/salesforce/configurations/describe','waitImagesLoaded','apps.integrations.sugarcrmAccounts','inuse','comedia','desc','CreateOrEditFreshsalesConfigurationDialogController','Cristiano','SYSTEM:DELETEcmCustomField','Delete\x20Company','openchannelQueue','/api/transfer?number=','Description\x20deleted!','uploadSounds','rpcQueues','api/intervals/describe','session','src/js/modules/main/apps/settings/views/generals/generals.html/generals.html','exportSelectedLists','CreateOrEditMailSubstatusDialogController','newMailAccount','Europe/Luxembourg','app.staff.users.edit','change','Message\x20has\x20been\x20sent!','src/js/modules/main/apps/voice/views/voicemails/create/dialog.html/dialog.html','SugarcrmAccountController','#ffffff','+08:30','TOOLS.CLONE_TRUNK','sl-SI','display','UserSmsQueue','src/js/modules/main/apps/motiondialer/views/realtime/queues/predictive/dialog.html/dialog.html','savePause','dashboardItem','$notIn','Triggers','mandatoryDisposition','\x27users\x27','max-width:\x20500px;','ispeechAsrModel','icon-chart-line','\x27report_whatsapp_transfer\x27','Hotmail','subsections','team@get','+11:00','addNewVariable','selectedQueueCampaignHopperBlacks','saveMusicOnHold','.ogg','ndauth_url','deleteOutboundRoute','api/users/:id/api_key','app/main/apps/fax','src/js/modules/main/apps/sms/views/smsQueues/create/dialog.html/dialog.html','freshsalesAccount','addUsers','saveTeam','TOOLBAR.PERSIAN','Type\x20the\x20target','ms-tab-scroll','deleted','zu-ZA','\x27hotmail\x27','smsQueue','app.integrations.vtigerAccounts','DASHBOARDS.THIS_MONTH','faxApplication','addMessage','deselectOpenchannelQueues','deleteSelectedScheduler','\x27mail_accounts\x27','$[${LEN(${PREFIX-CALLERIDALL})}\x20>\x200]?Set(CALLERID(all)=${PREFIX-CALLERIDALL}):NoOp(No\x20number\x20available)','=viewModel','\x2722\x27','getIvrCampaigns','ms-nav-title','contrast4','globalLists','whatsappInteraction','SYSTEM:DELETEvoiceMail','user:forcelogout','The\x20plugin\x20will\x20be\x20deleted.','available','weeks','ACCOUNTS','Asia/Kuala_Lumpur','dayOfWeekFrom','ToolbarController','stopInterval','difference','openchannelInteractionDownload','ringall','id,name,mapAgentsId,waiting','max','updateConfirm','freshsalesAccounts','getSquareRecordings','voiceContext','sortableTable','onUnhold\x20->\x20session,\x20data','arrayrandom_periodic_announce','nextContact','joinTables','en-GB','SYSTEM:GETcontexts','getCustomFields','apps.integrations.salesforceAccounts','selectedCannedAnswers','APP.FILE_NOT_FOUND','apps.chat','id,name,strategy,type,penalty','VOICE.EDIT_MOHSOUND','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20mailCannedAnswers?','newZendeskConfiguration','deleteSelectedIvrCampaignHoppers','createOrEditIvrCampaignHopper','\x27mail_interactions\x27','src/js/modules/main/apps/voice/views/outboundroutes/edit/apps/outbounddial/dialog.html/dialog.html','integrations/freshsales/configurations/:id/descriptions','SYSTEM:DELETEcannedAnswer','Reset\x20Succesfull','Australia/Eucla','Message\x20properly\x20sent!','offlineMessage','api/auth/local','devices','\x27ja\x27','$viewValue','Nepali','EditFaxAccountAppsystemDialogController','callbackQueue','api/cm/contacts/:id/hopper_histories','Spanish\x20(Chile)','OpenchannelQueueagentaddController','MALE','The\x20outboundroute\x20will\x20be\x20deleted.','api.dashboard.clone','ChanSpiesController\x20as\x20vm','removeSound','\x20ORDER\x20BY\x20','app.whatsapp','api','#c5c6cb','Asia/Riyadh','#4CAF50','api.openchannelQueue.update','leave','DASHBOARDS.SUN','src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/close/dialog.html/dialog.html','api.contact.save','createdAt,updatedAt,id,name,type,username,remoteUri,password,clientId,clientSecret,securityToken,serverUrl,description','api/openchannel/interactions/:id/tags','gotoChatWebsites','src/js/modules/main/apps/dashboards/views/general/agent/interaction/composeMail/dialog.html/dialog.html','api.trigger.delete','src/js/modules/main/apps/motiondialer/views/ivrCampaigns/edit/clone/clone.html/clone.html','rtl','thirdLevel','deleteDeskConfiguration','addNewchanSpy','selectedOpenchannelAccountApps','api/intervals/:id/sub_intervals/create_many','src/js/modules/main/apps/analytics/views/reports/edit/field/dialog.html/dialog.html','QueueCampaign','\x20properly\x20deleted!','AgentHomeScheduledCallsController','\x27voice\x27','deleteMailAccountMailCannedAnswer','onFailed\x20->\x20session,\x20data','id,level,name,description,ParentId,createdAt,updatedAt','Delete\x20Sound','InboundRouteActionsController','setTags','months','getPauses','outboundDropRate','deleteSelectedVoiceQueues','createList','header','ChatWebsiteActionsController','Italian','InboundRouteController','onEnableScreenRecordingByAgentSelection','Would\x20you\x20like\x20to\x20merge\x20your\x20contacs?','registry','cs-CZ','createOrEditFaxQueue','ABANDONED','api/chat/groups/:id','chatWebsiteApps','Session\x20properly\x20created.','arraysmsMethod','$on','deleteSelectedProjects','beep','api/analytics/extracted_reports/:id','WhatsappRealtimeController\x20as\x20vm','size','AgentsSmsRealtimeController\x20as\x20vm','src/js/modules/core/directives/ms-material-color-picker/ms-material-color-picker.html/ms-material-color-picker.html','selectAllSounds','Ewa','Fax\x20Report\x20Transfer','columnName','TOOLS.','getAgentStatus','progresslogin','userAgent','America/Boise','getFaxInteractions','$setViewValue','America/Tijuana','SugarcrmAccount\x20properly\x20saved!','deselectOutboundRoutes','America/Indiana/Tell_City','OpenchannelQueue\x20updated!','MusicOnHold\x20updated!','cdr','pauses','src/js/modules/main/apps/sms/views/smsAccounts/edit/view.html/view.html','ha1','Finnish\x20(Finland)','video','isSearchBarVisible','fromUrl',':8089/ws','gotoFreshdeskAccounts','CannedAnswer\x20properly\x20saved!','microphoneVolume','src/js/modules/main/apps/integrations/views/salesforceAccounts/create/dialog.html/dialog.html','api/integrations/reports/:id/clone','api/cm/lists/:id/clone','CreateOrEditSquareProjectDialogController','conf','templates','MsNavigationController','createOrEditDeskAccount','The\x20project\x20cannot\x20be\x20started','SYSTEM:GET_PAUSES','isNavFoldedOpen','getMessages','voiceContext@get','\x27en-CA\x27','settingsEnabled','List\x20name','freshsalesConfiguration','src/js/modules/main/apps/marketplace/views/plugins/edit/view.html/view.html','ka-GE','/reset/:token','src/js/modules/main/apps/integrations/views/zohoAccounts/edit/configurations/dialog.html/dialog.html','SYSTEM:DELETEopenchannelQueue','voiceAgentReport','\x27es-ES\x27','queueLogin','ivr','Error500Controller\x20as\x20vm','subjects','TOOLBAR.INDONESIAN','delete\x20team','sortByWeight','appendChild','vm.queryFinal.filter','VtigerAccount\x20properly\x20created','SYSTEM:UPDATECONFIGURATIONFIELD','maxTimeUnit','src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/ringgroup/dialog.html/dialog.html','CreateOrEditDeskAccountDialogController','The\x20openchannelQueue\x20will\x20be\x20deleted.','Arabic\x20(Israel)','safari','app.voice.voicemails','MAIL.NEW_MAILSUBSTATUS','SYSTEM:DELETEintServicenowAccount','MailSubstatus\x20properly\x20saved!','openString','confirm','getNavigation','sidebar','voiceQueueReport:update','Streets','\x27openchannel_queues\x27','+13:00','audioinput','api.mailAccount.save','listFields','app.sms','useSanitizeValueStrategy','arraypriority','app.analytics.extractedReports','$templateFactory','msFormWizardForm','Asia/Novokuznetsk','NetworksController\x20as\x20vm','offlineForm','newReport','Numbers\x20to\x209','VOICE.EDIT_CHANSPY','icon-calendar-clock','disableCustomScrollbars','api.voiceMusicOnHold.delete','triggerallConditions','Home','arrayleavewhenempty','CreateOrEditVoiceQueueDialogController','api.mailAccount.update','flash','src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/gotoif/dialog.html/dialog.html','title','published','pt-PT','SMS.NEW_SMSCANNEDANSWER','propertiesList','describeTable','private_key','Failed\x20to\x20retrieve\x20pm2\x20processes','ClientEmail','deleteFaxQueuesWaitingInteractions','IvrCampaign','ContactsController','api/cm/contacts/:id/hopper_finals','api/integrations/dynamics365/fields/describe','disableMdInkRippleOnMobile','SYSTEM:GET_INTERVAL','deleteSelectedChatWebsites','src/js/modules/main/apps/integrations/views/servicenowAccounts/edit/configurations/dialog.html/dialog.html','api/analytics/field_reports/destroy_many','api.intZendeskConfiguration.update','api/users/','color','Delete\x20SalesforceConfiguration','Resource\x20part\x20\x22','gotoPlugins','SYSTEM:GETLISTS','app.integrations.salesforceAccounts','src/js/modules/main/apps/dashboards/views/general/user/openchannel/user.general.openchannel.html/user.general.openchannel.html','deleteDashboardItem','deleteSalesforceConfiguration','getOpenchannelAccountApps','Message\x20not\x20found!','intDynamics365Configuration','jira','starttime','DeskAccountController','deleteSelectedUserProfiles','Joey\x20(English,\x20US,\x20Male)','click','Italian\x20(Italy)','saveSettings','\x27power\x27','Courier\x20New','selectedIvrCampaignHopperBlacks','src/js/modules/main/apps/motiondialer/views/realtime/queue_params/view.html/view.html','isFunction','$http','deleteMailAccountApp','ChatWebsiteofflineFormController','INTEGRATIONS.EDIT_SALESFORCEACCOUNT','src/js/modules/core/layouts/vertical-navigation-fullwidth-toolbar-2.html/vertical-navigation-fullwidth-toolbar-2.html','SmsQueue\x20properly\x20saved!','id,name,description,notes','vm.voiceQueue.leavewhenempty.length\x20===\x201\x20&&\x20vm.voiceQueue.leavewhenempty[0]\x20===\x20\x27unknown\x27','Email\x20field\x20is\x20not\x20valid','MailAccountsController','onDateRangeSelection','cloudProvider','300','Version','user_has_sms_interactions:save','ngResource','msShortcuts','vtigerAccount','VOICE.NEW_VOICEMAIL','deleteSelectedTemplates','toolbar','api/integrations/freshdesk/configurations/:id/clone','deleteSelectedPauses','+08:00','availableStates','\x273\x27','offset','dispositions','app.tools.customDashboards','arrayactionType','api/fax/queues/:id/users','id,name,AccountId','America/Dawson','onRemoveOpenchannelQueue','api.sound.delete','ReportConditionsController','createdAt,updatedAt,ContactId,phone','number','targetChanged','firstName','getFaxQueues','getScreenRecordings','SYSTEM:GET_','\x22resource\x22\x20must\x20be\x20an\x20array\x20and\x20it\x20must\x20follow\x20$resource\x20definition','EditWhatsappAccountAppamazonlexDialogController','has','unknown-browser','interface','callbackUrl','CreateOrEditContextDialogController','actionOptions','copyReport','service','Lucida\x20Sans\x20Unicode','deleteUser','api/integrations/zoho/accounts/:id/fields','trimStart','outboundBusyCallsDay','msInfoBar','FaxQueueId','trunk:save','template','ServicenowConfiguration\x20properly\x20saved!','ngFlow','isUndefined','apps.openchannel.openchannelAccounts','Sundanese\x20(Indonesia)','fresh','Today','US\x20East\x20(N.\x20Virginia)','exportSelectedSounds','record','Delete\x20SmsAccount','Spanish\x20(Honduras)','es-CL','deleteSelectedWhatsappAccountInteractions','CONTACTMANAGER.GLOBALCUSTOMFIELDS','columns','CreateOrEditFreshsalesAccountItemDialogController','exportSelectedQueueCampaignHopperBlacks','chatPause','apps.home','openchannelAccount','PredictiveQueueCampaignDialogController','WhatsappAccountActionsController','src/js/modules/main/apps/tools/views/templates/templates.html/templates.html','startCase','Europe/Minsk','ringingVolume','\x27AU\x27','id,name,internal,fullname','arraytimeoutrestart','newWindow','$stateProvider','mailAccountApps','detailForm','api/campaigns/:id/hopper_finals','\x20attached\x20process\x20will\x20be\x20restarted.','ShowQuestionsSessionDialogController','SYSTEM:GETmailQueue','apps.tools.dispositions','src/js/modules/main/apps/motiondialer/views/queueCampaigns/edit/hoppers/dialog.html/dialog.html','getNetworks','src/js/modules/core/dialogs/advanced-search/dialog.html/dialog.html','api/rpc/voice/queues/preview/:id','CreateOrEditChatWebsiteDialogController','MailQueuesController','modelCtrl','close_all','src/js/modules/main/apps/whatsapp/views/whatsappQueues/whatsappQueues.html/whatsappQueues.html','Error\x20while\x20removing\x20tab','table','undefined','Delete\x20','DASHBOARDS.FRI','English\x20(Australian)','Unable\x20to\x20init\x20media\x20devices','analyticCustomReport','rules','newvoicePrefix','foreground','src/js/modules/core/layouts/content-with-toolbar.html/content-with-toolbar.html','SYSTEM:DELETEjscriptyProject','Custom','America/Cuiaba','TCL:\x20vm.recording[vm.path]','app.openchannel.openchannelAccounts','motion2.home.sms:','exportSelectedInboundRoutes','ivrCampaign','FreshsalesAccountsController','appdata','Editor','app.voice.outboundroutes','WhatsappAccountController','TOOLS.NOTIFICATIONS.CONDITION_SAVED_SUCCESS_TITLE','agents','getZendeskConfiguration','onload','French\x20(Canada)','INTEGRATIONS.DYNAMICS365ACCOUNTS','selectAllTemplates','api/analytics/metrics/describe','createOrEditQueueCampaign','saveVtigerAccount','\x27report_jscripty_questions\x27','APPS','deleteGroup','mwFormResponseUtils','\x27fr\x27','finish','showInfo','/api/chat/websites/:id/logo','medium','api/voice/recordings/:id/download','ckEditorInstance','America/Santa_Isabel','api.intSalesforceAccount.delete','src/js/modules/main/apps/motiondialer/views/ivrCampaigns/ivrCampaigns.html/ivrCampaigns.html','The\x20freshdeskConfiguration\x20will\x20be\x20deleted.','Template\x20properly\x20saved!','api/fax/accounts/updateaccountapplications','QueuesOpenchannelRealtimeController\x20as\x20vm','\x27it\x27','QueueCampaignteamaddController','onHook','fr-FR','OutboundRoute\x20properly\x20created','createOrEditIvrCampaign','secretaccesskey','fr-CA','exportSelectedCompanies','api.faxAccount.update','completed','SYSTEM:RESETLIST','cardTemplateLoaded','Malagasy','blue-300-fg\x20icon-phone-paused','/:id?tab','badges','toasty','createdAt,updatedAt,id,ContactId,phone,countcongestionretry,countbusyretry,countnoanswerretry,countnosuchnumberretry,countdropretry,countabandonedretry,countmachineretry,countagentrejectretry,scheduledat,priority,recallme,UserId','myQueues','api/mail/accounts/:id','CDR(prefix)=${EXTEN:0:','apps.integrations.dynamics365Accounts','INTEGRATIONS.EDIT_DYNAMICS365CONFIGURATION','openchannelCannedAnswers','wholerow','toggleClass','intZohoAccount','deleteChatWebsiteChatCannedAnswer','EditoutboundAppoutbounddialDialogController','WhatsappAccount\x20properly\x20deleted!','America/Argentina/Salta','getCampaigns','AgentsMotionDialerRealtimeController','disconnect','VOICE.VOICEMAILS','\x27e\x27','AllCondition\x20properly\x20deleted!','MsStepperController\x20as\x20MsStepper','Europe/Moscow','api/whatsapp/interactions/describe','translate3d(','VOICE.ALL','MailSubstatus\x20properly\x20created','id,starttime,endtime,membername,projectname','app.voice.inboundroutes.edit','/vtigerAccounts','$mdConstant','gotoWhatsappQueues','api.voiceContext.update','intFreshdeskAccount','apps.analytics.metrics','getZohoConfiguration','getElementById','editInterval','vm.voiceQueue.leavewhenempty.length\x20===\x201\x20&&\x20vm.voiceQueue.leavewhenempty[0]\x20===\x20\x27strict\x27','api/sms/accounts/:id','api/analytics/custom_reports/:id/query','delete\x20Networks','DASHBOARDS.AUGUST','Fields\x20has\x20been\x20saved!','src/js/modules/main/apps/sms/views/smsAccounts/edit/agentadd/agentadd.html/agentadd.html','Hopper\x20properly\x20created','src/js/modules/main/apps/dashboards/views/general/user/dialer/user.general.dialer.html/user.general.dialer.html','Asia/Qatar','campaign','getProjects','QueueCampaignHoppersController','deleteSelectedSugarcrmAccounts','Pause\x20properly\x20deleted!','delete\x20variable','api/dispositions/describe','api/cm/hopper_final/describe','SugarcrmAccount','createOrEditProject','||MailAccountId:=$eq[','delete\x20SalesforceAccounts','FORGOTPASSWORD.LINNK_SENT_MESSAGE','WhatsappAccountId','MusicOnHoldsController\x20as\x20vm','aws_bot_name','onRemoveMailQueueChannel','src/js/modules/main/apps/motiondialer/views/realtime/queue_calls/view.html/view.html','ResetPasswordController','onRemoveUserFaxQueue','nodeType','ServicenowAccountController\x20as\x20vm','contrast2','api/integrations/describe','Inbound','Portuguese\x20(Brazil)','faxQueueReport','\x27strict\x27','deleteSelectedIvrCampaignHopperFinals','whatsappApplication','setToggleItem','app.settings.updates','endtime','apps.home.chat','arraysetqueuevar','Spanish\x20(Panama)','api.analyticMetric.update','voicePrefix\x20properly\x20created','src/js/modules/main/apps/analytics/views/metrics/create/dialog.html/dialog.html','servicenowAccounts','CustomDashboardItemsController','vi-VN','md-hue-3','focusOnclick','data2','getRegisteredPalettes','gotoIntervals','ReportFieldsController','voicePrefixes','Asia/Qyzylorda','TOOLBAR.ITALIAN','api/analytics/default_reports/:id/clone','waiting','src/js/modules/main/apps/integrations/views/salesforceAccounts/salesforceAccounts.html/salesforceAccounts.html','\x2721\x27','AGI','SugarcrmAccountController\x20as\x20vm','src/js/modules/main/apps/tools/views/tags/tags.html/tags.html','selectedSounds','iPod','gotoFaxAccounts','\x27id\x27','Filiz','download','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20lists?','Restored\x20Contact','$element','api.intDeskAccount.save','apps.settings.cloudProviders','api/whatsapp/messages/:id/reject','api/square/projects/describe','checkRange','remove','delete\x20globalCustomField','blue-grey-fg','dispose','createMediaStreamDestination','weight','onChangeSection','deselectVoicePrefixes','isBoolean','deleteSubjectConfirm','Delete\x20Odbc','ALWAYS','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20contacts?','selectAllMetrics','Lists\x20association\x20has\x20been\x20updated!','sourceid','Reports','hiddendigitsnum','pm2','getVoicemailMessages','The\x20allCondition\x20will\x20be\x20deleted.','Asia/Damascus','#9ea1a9','voicePrefixagentaddController','deleteSelectedMailAccountMailCannedAnswers','dialer','uisref','saveTrunk','app/main/apps/staff','addNewOpenchannelAccount','MailQueue\x20properly\x20deleted!','Delete\x20SugarcrmConfiguration','TOOLBAR.ENGLISH','jscriptySessionReport@getQuestions','Carla\x20(Italian,\x20Female)','api/users/:id/fax_interactions','deleteSelectedZohoAccounts','api/chat/websites/:id/proactive_actions','SYSTEM:DELETEtrigger','icon-checkbox-marked-outline','ListController\x20as\x20vm','abandonedCalls','countdownAttr','xx-pirate','\x27agi://127.0.0.1/square,{{project.name}}\x27','AppZone','delete\x20ExtractedReports','whatsappStatus','DASHBOARDS.LICENSE_EXPIRE_REMAINING_DAYS','msSplashScreen::remove','Project','embedOptions','addSquareProjects','getVoiceRecordings','rpcFaxQueues','UserMailDashboardGeneralController\x20as\x20vm','datetime','\x27alpha\x27','getSounds','isAdmin','setPermission','\x27th\x27','mindigit','APP.DELETE','ZendeskAccountsController\x20as\x20vm','EditWhatsappAccountApp','VIDEO.SCREENRECORDINGS','Never','Email\x20Messages','updatedAt','api/cm/hopper_history/:id/clone','host','showFaxInteraction','internalDial','api.voiceChanSpy.update','getBoundingClientRect','vm.selectedTab','Files','SYSTEM:DELETEintSalesforceAccount','newOpenchannelQueue','zendeskAccount','CreateOrEditChatGroupDialogController','9600','onAutocreateSelection','IvrCampaignlistaddController','Belarusian','EditInternalApphangupDialogController','voiceDialReport','agentInternal','delete\x20interaction','autoSelectOperator','EditOpenchannelAccountAppautoreplyDialogController','CreateOrEditSmsAccountDialogController','isLastStep','app.dashboards.general.user','NavigationController','getSalesforceAccounts','selected','api.intSugarcrmAccount.save','internalControl','variable.name','centered','queue','Project\x20properly\x20deleted!','Chinese\x20(Taiwan)','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','answered','SMSACCOUNT:SEND','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20networks?','CreateOrEditSalesforceAccountDialogController','xorWith','chanSpies','campaign:save','rpcOpenchannelQueuesWaitingInteractions','uploadSound','openchannelAccounts','07:00-22:00,*,*,*','onRemoveChatQueueChannel','userWhatsappQueue:remove','mailInteractionDownload','catch','Popup','createOrEditWhatsappQueue','screenRecording','delete\x20freshdeskAccount','UserList','msRecording','vm.password','opt1','levels','Icelandic','api/chat/internal/messages/describe','gotoVoiceRecordings','Fewest\x20Calls','Dynamics365','jun','addNewSquareRecording','FORGOTPASSWORD.LINK_SENT','INTEGRATIONS.EDIT_DESKCONFIGURATION','parseCrudPermissions','dateRangeManager','reschedule','idle','VOICE.NEW_VOICEQUEUE','api/users/:id/whatsapp_interactions','el-GR','\x27es\x27','cross_join','FreshdeskAccount\x20properly\x20created','getFullYear','api/users/:id/logout','JSCRIPTY.CLONE_PROJECT','ms-navigation-item','ms-card','Cross\x20Join','cmCustomField','alreadyExistsTab','America/Danmarkshavn','src/js/modules/main/apps/settings/views/license/update/dialog.html/dialog.html','Queue\x20properly\x20updated!','exportSelectedIvrCampaignHoppers','phone','deleteWhatsappQueue','TOOLS.NOTIFICATIONS.DISPOSITION_DELETED_SUCCESS_TITLE','$promise','apps.staff.agents','xm-mail-content-','SYSTEM:EDITMODALSHOW','Authorization','deleteSugarcrmConfiguration','api.smsAccount.delete','api.intDynamics365Configuration.delete','SYSTEM:DELETEdisposition','deleteSmtp','api/sms/interactions/:id','Key','rpcCampaigns','userOpenchannelQueue:remove','ChatWebsiteagentaddController','1st','ensureSelectedResultIsVisible','append','addNewExtractedReport','Report\x20properly\x20created','getAnyConditions','SYSTEM:DELETEvariable','SMS\x20Messages','updateLicense','src/js/modules/main/apps/video/views/screenRecordings/screenRecordings.html/screenRecordings.html','destconnectedlinenum','api/whatsapp/interactions/:id/messages','app.dashboards.general.whatsapp','isSameOrigin','Pauses','UserFaxDashboardGeneralController\x20as\x20vm','api/voice/transfers/reports/:id','MsNavigationNodeController','faxMessage','wait','motion-client','\x27ASC\x27','telephones','replaceWith','Sesotho','\x22\x20does\x20not\x20exist!\x20Falling\x20back\x20to\x20the\x20\x22default\x22\x20theme.','chatStatus','$stateParams','removeColor','AVG\x20(','googleAsrLanguage','snakeCase','getFlatNavigation','onSelectListSuccess','api/sms/queues/:id/users','\x20properly\x20saved!','MIN','getVoiceChannels','\x27d\x27','addConfiguration','Infobip','saveTeams','INTEGRATIONS.NEW_FRESHDESKCONFIGURATION','api/rpc/chat/queues/:id/notify','chart.js','delete\x20sugarcrmAccount','turn','Tatar','FreshdeskAccount\x20properly\x20deleted!','whatsapp_queue_waiting_interaction:save','/servicenowAccounts','apps.sms','Agent\x20properly\x20created','EditoutboundAppcustomDialogController','api.chatQueue.save','DASHBOARDS.SEPTEMBER','delete\x20mailAccount','STAFF.PERMISSIONS_WARNING_ENABLE_ALL','parent','attrVoiceQueues','app.contactmanager.globalCustomFields','hiddenBCC','channelstatedesc','getWhatsappAccountWhatsappCannedAnswers','The\x20squareRecording\x20will\x20be\x20deleted.','api/integrations/desk/configurations/:id/fields','searchOptions','nodownload','app.callysquare','Delete\x20CannedAnswer','may','api/schedules/describe','INTEGRATIONS.NEW_SERVICENOWACCOUNT','refresh','Whatsapp\x20Messages','app.callysquare.projects','selectedFaxQueues','resourceId','api/analytics/field_reports/describe','The\x20trunk\x20will\x20be\x20deleted.','CreateOrEditDynamics365AccountItemDialogController','ta-SG','Kannada\x20(India)','app.contactmanager','api/chat/websites/:id/interactions','analyticFieldReport','scheduled','English\x20(Great\x20Britain)','msApi::resolveError','=msNavigationNode','newTeam','select_node','restartplugin','api/whatsapp/accounts/:id','secToTime','conditions','delete\x20fields','api/users/:id/whatsapp_accounts','src/js/modules/main/apps/dashboards/views/general/agent/interaction/transfer/dialog.html/dialog.html','Please\x20retry\x20with\x20a\x20new\x20file','The\x20team\x20will\x20be\x20deleted.','user:update','/inboundroutes','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20screenRecordings?','PhoneBar\x20API\x20Error','Indian/Mauritius','onSaveVoiceQueueReport','getVoiceQueuesChannels','src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/tag/dialog.html/dialog.html','src/js/modules/main/apps/whatsapp/views/whatsappQueues/edit/teamadd/teamadd.html/teamadd.html','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20interval?','accept','customDashboards','hopperFinal','chatWebsiteOfflineMessages','Contact\x20properly\x20updated!','SugarcrmAccount\x20properly\x20deleted!','FreshdeskAccountsController','deleteSelectedReports','onSaveChatQueue','api/variables/:id','motionGenerator','app.marketplace','email','automation','ltr','primary','\x27S\x27','api/users/:id/clone','Liv','.wav','agentCapacity','gotogoto','gray','deleteFaxAccountInteraction','saveUser','phoneBarEnableScreenRecordingByAgent','gotoTriggers','Dynamics365AccountConfigurationsController','Delete\x20FreshsalesAccount','Century\x20Gothic','getScheduler','ChatInternalMessageId','insertHtml','eurspanishfemale','FreshsalesAccount\x20properly\x20saved!','SYSTEM:DELETECONFIGURATION','icon','app.mail.mailAccounts','showOnPageHidden','getVoiceQueuesReport','selectedItem','extraOperators','MAIL.EDIT_MAILQUEUE','filteredAgents','userFaxQueue:remove','src/js/modules/main/apps/dashboards/views/general/user/chat/user.general.chat.html/user.general.chat.html','Delete\x20Network','ProjectController','deselectMusicOnHolds','Network\x20properly\x20saved!','America/Thunder_Bay','msMaterialColorPicker','EditInternalAppringgroupDialogController','MAIL.EDIT_MAILCANNEDANSWER','Europe/Andorra','AgentGeneralInteractionController','attr','app.integrations.dynamics365Accounts.edit','read','smsInteractions','gotoUserProfiles','turn:','showChatInteraction','app.dashboards.general.chat','action','AgentHomeContactsController','exportSelectedPauses','replaceTrack','OpenchannelQueue','CreateOrEditSquareRecordingDialogController','CustomDashboard\x20properly\x20saved!','CreateOrEditMailAccountDialogController','api/analytics/field_reports/:id','Schedule\x20properly\x20created','newChatWebsite','arraystrategy','api.squareOdbc.update','app.integrations.freshsalesAccounts.edit','ANSWERED','Delete\x20action','api/cdr/:id','saveFaxAccount','$resolved','ExtractedReports','apps.settings','interaction\x20#','CreateOrEditAllConditionDialogController','whatsapp-interaction','src/js/modules/main/apps/mail/views/realtime/accounts/view.html/view.html','rec','\x27pt\x27','material.components.expansionPanels','apps.sms.realtime','WhatsappQueueController\x20as\x20vm','charAt','scope','deleteList','Metric\x20properly\x20deleted!','Outbound','onComplete','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20hopperHistory?','passwordResetAt','dashboarditemForm','api.whatsappAccount.delete','Mobile\x20','Jabra\x20library\x20correctly\x20initialized\x20and\x20device\x20correctly\x20installed','api.jscriptyProject.update','QueueNotify','IvrCampaignsController','initDeviceInProgress','motion2.home.scheduled:','filterByIds','write','Companies','MailInteractionId','onStart','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','jscripty','capacity','deleteVoicemail','OPENCHANNEL.OPENCHANNELACCOUNTS','deleteSmsQueue','gotoIvrCampaigns','getMailAccountLabel','values','removeShortcut','deleteSelectedVoicePrefixes','smsQueues','app.fax.faxQueues','downloadTranscribe','collapsable','app/main/apps/video','newDashboardItem','api/fax/reports/transfer/:id','\x20has\x20been\x20copied!','disable','mixmonitorid','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20globalCustomFields?','\x27all\x27','America/Bogota','CreateOrEditHopperVoiceQueueIdDialogController','getOutboundRoutes','chat.chatWebsites','MarketplacePluginsController','OfflineMessage\x20deleted!','Ruben','description','lexregion','api.user.update','SYSTEM:GETchatWebsite','DispositionsController\x20as\x20vm','openchannelInteraction','Networks','types','/errors/error-500','Kimberly','saveVoiceRecording','deleteSelectedInboundRouteApps','@includeAll','api/openchannel/applications/:id/clone','.resizable','Asia/Chita','api.campaign.clone','https://','newMohSound','NOBEEP','\x27rrmemory\x27','OutboundRoutesController\x20as\x20vm','Pacific/Fakaofo','Nicole','squareProject','STAFF.NEW_TEAM','INTEGRATIONS.SUGARCRMACCOUNTS','plugin','$in','selectAllTeams','hold\x20->\x20session','\x27IAX\x27','getResponseSheet','VariablesController','category','app.voice.realtime.agents','deleteSelectedIvrCampaignHopperHistories','Hans\x20(German,\x20Male)','Delete\x20UserProfile','app/main/apps/help','Predictive','CreateOrEditTelephoneDialogController','mailStatus','ChatCannedAnswer\x20properly\x20created','userStatus','src/js/modules/main/apps/integrations/views/zohoAccounts/edit/view.html/view.html','isValidCondition','onIntegrationSelection','CreateOrEditSugarcrmConfigurationDialogController','motion2.home.voice:','Android','AgentHomeAbandonedBullController','Pacific/Enderbury','api.pm2.save','ivrCampaignHoppers','#2196f3','delete\x20whatsappCannedAnswer','intZohoAccount@get','SYSTEM:GETPAUSES','app.voice.realtime.queues','\x27leastrecent\x27','grammar','appVersion','api.cannedAnswer.update','Authorization\x20error','UserchangepasswordController','mailbox','squareProject@get','\x20attached\x20process\x20will\x20be\x20stoppped.','api/teams/:id/clone','api/fax/accounts/describe','Afrikaans\x20(South\x20Africa)','://','speakerVolume','api/mail/applications/:id/clone','isValueByCondition','red-300-fg\x20icon-phone-locked','/contactmanager','9888','createOrEditMusicOnHoldMohSound','openchannelQueuesTotal','src/js/modules/main/apps/voice/views/realtime/realtime.html/realtime.html','ContactSelectionController','src/js/modules/core/directives/ms-tab-scroll/ms-tab-scroll.html/ms-tab-scroll.html','Twilio','app.fax.realtime.accounts','SSML','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20openchannelCannedAnswer?','IS_BETWEEN','passwordExpiresDays','exportSelectedTeams','h264','api/integrations/salesforce/configurations/:id/subjects','gt-md','APP.SELECTED_TEAMS','WHATSAPP.WHATSAPPACCOUNTS','$location','api/integrations/dynamics365/configurations/describe','apps.mail','FreshdeskAccount\x20properly\x20tested','VoiceRealtimeController\x20as\x20vm','\x27mouseOver\x27','api/users/:id/openchannel_accounts','Classic+','destcalleridnum','JSCRIPTY.DO_YOU_WANT_TO_RESET_SESSION','Interval\x20properly\x20deleted!','Pacific/Bougainville','List\x20properly\x20created','\x27beepall\x27','VIDEO.NEW_SCREENRECORDING','enumerateDevices','Pacific/Palau','FromId','createOrEditServicenowAccount','ChatWebsitesystemAvatarController','TOOLBAR.DUTCH','whatsappQueueReport','ap-southeast-1','pt-BR','api/openchannel/accounts/:id/clone','app.tools.tags','$[${XCALLY-MOTION-PROGRESS}=0]?Progress','CustomizationlogologinController','Salesforce','src/js/modules/core/directives/ms-shortcuts/ms-shortcuts.html/ms-shortcuts.html','DISPOSITION_DELETE_MESSAGE','addClass','Arabic\x20(United\x20Arab\x20Emirates)','app.fax.faxQueues.edit','src/js/modules/reset/reset.html/reset.html','deleteOpenchannelAccount','api/sms/messages/:id/accept','\x27SIP/{{multipleUsers.name}}\x27','Delete\x20FreshdeskAccount','stop\x20plugin\x20process','\x27wrandom\x27','api/triggers/describe','Whatsapp\x20Queues','Chinese\x20(Simplified)','layoutStyle','mminutes','Disposition','Zulu','/system?tab','SYSTEM:GET_USERS','partial','Allowing\x20disposition\x20for\x20call\x20%s','\x27DADHI\x27','newWhatsappAccount','Penelope','src/js/modules/main/apps/voice/views/internalroutes/edit/apps/agi/dialog.html/dialog.html','nospace','newFreshsalesConfiguration','Europe/Brussels','FaxInteractionId','rtlSupport','selectedContact','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20chanSpies?','src/js/modules/main/apps/settings/views/networks/create/dialog.html/dialog.html','opt2','source','America/Whitehorse','selectedDynamics365Configuration','SYSTEM:DELETEmailAccount','smsCannedAnswers','ENDS_WITH','variables','saveCannedAnswer','\x22\x20style=\x22display:none\x22','src/js/modules/main/apps/voice/views/contexts/contexts.html/contexts.html','Agent\x20properly\x20deleted!','get_parent','TOOLBAR.SOMEONE_LOGGED_YOU_OUT','api/sounds/:id/clone','trigger@get','hasPermission','ASC','\x20will\x20be\x20reset.','Interaction\x20has\x20been\x20tagged!','VoicemailsController','mailCannedAnswer','blacklistadddialog','required','WebReportDialogController','INTEGRATIONS.NEW_FRESHSALESCONFIGURATION','msNavigationService','it-IT','voiceStatus','krkoreanmale','Arabic\x20(Kuwait)','post','cmHopperBlack','VoiceRecording\x20updated!','deselectNetworks','\x22\x20called\x20successfully','assignIn','function','Contact\x20properly\x20merged!','voiceAgentReportColumns','getDynamics365Configuration','CreateOrEditOdbcDialogController','Filiz\x20(Turkish,\x20Female)','contactManager','MsTimelineController','HopperBlack\x20deleted!','apiRoute','VoiceRecordingsController','api/settings/:id/preferred','CKEDITOR','secondLevel','arrayheader_shape','ChangePasswordController','keyCode','\x20has\x20been\x20uninstalled!','AgentqueueaddController','api/networks/describe','EditInternalAppcustomDialogController','LIST:GETCustomFields','putOtherCallsOnHold','TOOLBAR.PORTUGUESE','Checkboxes','api/sms/accounts/:id/send','SYSTEM:DELETEdashboard','FreshdeskAccount','createOrEditchanSpy','ms-target-wrap','ReportController','createOrEditCannedAnswer','recallme','az-AZ','src/js/modules/main/apps/dashboards/views/general/agent/interaction/dispose/dialog.html/dialog.html','HANGUPCAUSE_38','selectedCompanies','sessionId\x20required','api/rpc/mail/queues/:id/notify','rpcTrunks','api/users/:id/sms_interactions','MusicOnHold\x20properly\x20created','trunk_name','\x27ko\x27','hr-HR','createdAt,updatedAt,id,format,value,type,uniqueid,calleridnum,exten,connectedlinenum,queue,rating,audio,transcribestatus,UserId','mailQueue:save','Least\x20Recent','SmsQueueteamaddController','delete\x20dynamics365Account','German','timer-set-countdown','api.trunk.update','IS\x20EMPTY','api/screen/recordings/:id','ZohoAccountsController','Mail\x20Account\x20not\x20deleted!','SYSTEM:GETmailAccounts','id-ID','app.integrations.zohoAccounts.edit','unmute','bodyEl','FaxQueues','deleteReportField','api/mail/interactions/:id/clone','Reject','paragraph','/outboundroutes','selectedOutboundRouteApps','blue-grey-A200-bg','urlForward','secondsS','selectedcrudPermissions','icon-message-text','Africa/Windhoek','$pristine','endOfConversation','CreateOrEditIvrCampaignDialogController','Error\x20creating\x20tag!','\x27outlook365\x27','voice_outbound_channel:save','runsentimentSelectedVoiceRecordings','arraytech','Giorgio','placeholder','api/voice/queues/:id/hopper_finals','fetch','lime-A700-fg','app.motiondialer.realtime.abandonedcalls','contactmanager','advancedQuery','createdAt','mailInteractionTags:save','Phone\x20number','api/intervals/:id/clone','api.intSugarcrmConfiguration.update','addNewInboundRoute','currentXML','elements','eu-west-2','IAX','predictiveIntervalDroppedCallsTimeout','es-GT','api/users/:id/mail_accounts','HH:mm','MailAccount','TOOLBAR.RUSSIAN','white-bg','answerRate','getText','vm_bull.query.filter','arrayannounce_holdtime','deleteSelectedVtigerAccounts','$parsers','outboundroute','AbandonedCallsMotionDialerRealtimeController\x20as\x20vm','License','^msHorizontalStepper','cmHopperFinal','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20descriptions?','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20','protocol','eurdutchfemale','registerMainForm','app.plugins.plugin','newDynamics365Account','getMailQueues','Interlingua','treeReports','Taiwan\x20Chinese\x20Female','cellName','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20messages?','userProfileForm','moveSelectedQueueCampaignHopperFinals','ca-central-1','CloudProvider\x20properly\x20saved!','\x27eu-west-1\x27','flattenDeep','queueCampaignHopperBlacks','es-ES','SETTINGS.AITOOLS','flipped','Draft','CONTACTMANAGER.NEW_CONTACT','id,interval,IntervalId','propertiesExtra','Delete\x20Schedule','deleteOutboundRouteApp','deselectContacts','ODBC','European\x20Czech\x20Female','faxAccount@get','TOOLS.NEW_PAUSE','onSaveMember','$animate','Message:update','pTalking','requestLicense','app/reset','deleteSelectedProjectSessions','getGroupBy','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','users','selectAllTelephones','toNumber','controls','src/js/modules/main/apps/settings/views/cloudProviders/create/dialog.html/dialog.html','European\x20German\x20Male','newReportField','EditSmsAccountAppdialogflowDialogController','isDefined','api/whatsapp/interactions/:id/tags','trigger:bot','INTEGRATIONS.NEW_ZENDESKACCOUNT','sum','mycontacts','stop','ico','PausesController\x20as\x20vm','newSmsQueue','clipboard','OpenchannelAccounts','/motiondialer','api/voice/queues/reports/describe','Pacific/Kiritimati','orderBy','route','api/chat/websites/:id/clone','deleteContext','chatWebsiteChatCannedAnswers','api/users/:id/fax_accounts','Azerbaijani','currentConferenceSessions','deleteSelectedTeams','setNavigationScope','sumBillable','onListSelection','exportSelectedTriggerAllConditions','\x27mail_queues\x27','arrayenvelope','api/jscripty/answers/reports/:id','whatsappTransferReport','fb67be8','InternalRouteActionsController','Spanish\x20(Guatemala)','Azerbaijani\x20(Azerbaijan)','msThemeOptions','Thai','redirectToNumber','FreshdeskAccountsController\x20as\x20vm','src/js/modules/main/apps/contactmanager/views/contacts/duplicate/dialog.html/dialog.html','Australia/Brisbane','remote','Kurdish','googleCloudTtslanguageCode','$timeout','SYSTEM:GET_SOUNDS','exports','VOICE.NEW_OUTBOUNDROUTE','MsNavigationController\x20as\x20vm','FreshdeskConfiguration\x20deleted!','ui.router','api/square/projects/:id/users','TODO\x20legend\x20status\x20+\x20state','aws_access_key_id','saveCallback','basicstyles','vm.voiceQueue.leavewhenempty.length\x20===\x201\x20&&\x20vm.voiceQueue.leavewhenempty[0]\x20===\x20\x27penalty\x27','YES','\x27ap-southeast-2\x27','selectedTableChange','Kazakh','getHoppers','Context','European\x20Finnish\x20Female','I\x20agree','Portuguese\x20(Portugal)','ignoreMouseEvents','api/fax/accounts/addaccountapplications','voiceRecording@get','api/chat/websites/:id/notify','ERROR\x20UPDATE\x20LOCAL\x20TABS','ulaw','ATTACHMENTS:GET','Campaign\x20Without\x20Lists','shouldInterpolate','api/integrations/desk/configurations/:id/subjects','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20hopperHistories?','intVtigerAccount','$formatters','MusicOnHold\x20properly\x20deleted!','/dashboards','deselectExtractedReports','selectAllVoicemails','src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/autoreply/dialog.html/dialog.html','OpenchannelQueueteamaddController','AgentsController','Asia/Taipei','api/integrations/freshdesk/configurations/describe','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','musiconhold','us-east-2','apps.voice.internalroutes','report','api/mail/queues/:id/teams','api.sound.save','America/Scoresbysund','ANALYTICS.CREATE','This\x20Year','addNewAllCondition','bottom_right','connect','system','^msVerticalStepper','omit','hue-2','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20freshdeskConfiguration?','motNotification','Delete\x20User','data3','Malay\x20(Malaysia)','api.intDeskConfiguration.delete','src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/noop/dialog.html/dialog.html','delete\x20node','Interval','selectAll','whatsapp_queue_waiting_interaction:remove','api/automations/describe','soundPlayer','src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/noop/dialog.html/dialog.html','delete\x20sessions','voiceMusicOnHold@get','runtranscriberuntranscribesentiment','Delete\x20Interval','lime-A700-bg','smsQueue:remove','Africa/Algiers','smsInteraction:save','deleteOpenchannelAccountApp','delete\x20mailCannedAnswers','Square\x20ODBC\x20properly\x20tested','addCondition','OutboundRoutesController','inline','deleteTeam','onSaveMailQueueChannel','api/voice/recordings/:id/downloads','isDraft','onUpdateMailInteraction','nameField','accentPalette','icon-deskphone','Russian','api/trunks/describe','saveOpenchannelCannedAnswer','api/cm/hopper_black/:id','onlineForm','defaultEntry','apps.voice.contexts','onPause','api/integrations/zendesk/configurations/:id/clone','getResults','Cannot\x20upload\x20the\x20sound','voiceQueue:update','webbar:originate','createdAt,updatedAt,id,name,mode,directory,application,format,sort','runReport','EditFaxAccountApp','describe','Please\x20save\x20the\x20contact\x20before\x20disposing!','XMLHttpRequest','America/Port-au-Prince','gotorealtimegoto','output','voiceExtension@get','Sms','selectedMailQueues','newFreshdeskConfiguration','intSugarcrmField','agentcalledAt','ListController','rows','\x27report_queue\x27','api.voiceRecording.update','Europe/Rome','VoiceQueueId','Scheduled\x20call','stopUpload','second','Dynamics365Account\x20properly\x20deleted!','\x27no\x27','src/js/modules/main/apps/dashboards/views/general/agent/contact/selection/dialog.html/dialog.html','motionbar','file_id','sms.smsAccounts','openchannelStatus','saveVtigerConfiguration','NoSuchNumber','whatsappQueue:update','stateService','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20extractedReports?','api/integrations/freshdesk/accounts/:id','Node\x20has\x20been\x20updated!','monthName','delete\x20InboundRoutes','api/chat/groups/:id/messages','selectedNetworks','anySecondLevelDisposition','staff','app.motiondialer.realtime.agents','force_rport','api.chatWebsite.update','addAction','/forgot','q:\x20Don\x27t\x20play\x20a\x20beep\x20when\x20beginning\x20to\x20spy\x20on\x20a\x20channel,\x20or\x20speak\x20the\x20selected\x20channel\x20name.','queue.name','hue','tooltipVisible','motion.customTheme','SYSTEM:DELETEtrunk','onChangeList','TagsController\x20as\x20vm','CreateOrEditTrunkDialogController','faxAccount','\x27ru\x27','smsCurrentCapacity','speakerMute','addNewIvrCampaign','getUserMedia','api/rpc/outbound','attrReport','_id','timeRangeTo','browser','src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/playback/dialog.html/dialog.html','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20mohSounds?','api/voiceQueuesLog/describe','EditSmsAccountAppautoreplyDialogController','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20musiconholds?','getMailAccounts','TOOLS.EDIT_SOUND','newMailSubstatus','en-PH','Slovenian\x20(Slovenia)','api/networks/:id','chatGroup','No\x20corresponding\x20process\x20found','analyticDefaultReport','RescheduleCallDialogController','{color}|*','apps.dashboards','deleteWhatsappAccountWhatsappCannedAnswer','customFieldsForm','timer-start','Report\x20properly\x20run!','api/chat/applications/:id/clone','type','delete\x20SmsAccounts','4800','Start\x20Video\x20Call','addNewSound','DASHBOARDS.NOT_ASSIGNED','callNumber','internal','selectedIvrCampaigns','selectAllTags','faxInteraction:save','\x27invalid\x27','collapse','INTEGRATIONS.EDIT_FRESHDESKACCOUNT','MsWidgetEngineController','UserProfilePermissionsController','years','deleteIvrCampaign','selectAllSmsQueues','Delete\x20conditions','\x27report_sms_transfer\x27','ur-IN','ar-MA','Galician\x20(Spain)','addNewMetric','api/integrations/desk/fields/:id','api_key','api/integrations/zendesk/fields/describe','formViewer','None','xorBy','api.schedule.delete','webrtc::settings','400','General\x20properly\x20saved!','Amharic','script','brportuguesefemale','selectedMusicOnHoldMohSounds','$resource','Tatyana\x20(Russian,\x20Female)','\x27auto\x27','strict','motion2.realtime.abandoned.bull.abandonedCalls:','queryHopper.filter','treeConfig','\x27datetime\x27','username','Delete\x20Hopper','openchannelCurrentCapacity','addNewServicenowAccount','api.contact.delete','toUpper','selectAllUsers','CSquare\x20Report','Asia/Samarkand','deleteCustomDashboard','saveZendeskAccount','src/js/modules/main/apps/tools/views/trunks/edit/clone/clone.html/clone.html','quickFilterManager','SYSTEM:GET_SMSACCOUNTS','STAFF.NOTIFICATIONS.PERMISSIONS_SAVED_SUCCESS_MESSAGE','disableGetContact','Video','DASHBOARDS.VOICE','deleteSelectedDescriptions','rpcCalls','\x27report_square\x27','EditMailAccountApp','Smtp\x20updated!','/freshdeskAccounts','localnet','TOOLBAR.WEBRTC_MICROPHONE_NOT_AVAILABLE','FaxAccountId','api/analytics/default_reports/describe','api/triggers/:id/clone','SMS.EDIT_','showOpenchannelInteraction','CannedAnswers','exportSelectedODBC','src/js/modules/main/apps/dashboards/views/general/user/voice/user.general.voice.html/user.general.voice.html','delete\x20zohoAccount','Europe/Samara','selectedIvrCampaignHoppers','mailCannedAnswers','CreateOrEditUserDialogController','intFreshsalesField','selectedChatWebsiteApps','api.intVtigerAccount.update','src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/agent/dialog.html/dialog.html','America/Recife','Atlantic/Reykjavik','Tamil\x20(India)','#3c4252','SETTINGS.EDIT_NETWORK','openchannelCannedAnswer','is-IS','Pacific/Noumea','Brian','selectedGlobalCustomFields','You\x20can\x27t\x20remove\x20service\x20account','api.smsQueue.delete','deleteSelectedChatWebsiteOfflineMessages','outbounddial','marketplace','New\x20Item','app.voice.contexts','Teams\x20association\x20has\x20been\x20updated!','Email\x20Report\x20Queue','FreshsalesAccount','createdAt,updatedAt,id,name,username,remoteUri,apiKey,serverUrl,description','Asia/Kamchatka','ChatQueuesController','OpenchannelAccount\x20properly\x20deleted!','deleteSelectedVoicemails','api/jscripty/answers/reports/describe','terminate\x20->\x20session','Africa/Abidjan','api/triggers/:id/actions','saveExtractedReport','XCALLY-MOTION-ANSWER=0','rpcMailQueues','src/js/modules/main/apps/mail/views/mailQueues/edit/view.html/view.html','\x20has\x20been\x20saved!','src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/openchannelCannedAnswers/dialog.html/dialog.html','TOOLS.NOTIFICATIONS.TRIGGER_DELETED_SUCCESS_TITLE','SYSTEM:DELETEintVtigerAccount','clearSelection','api.cmHopper.save','ZendeskAccountController','$setValidity','isNil','getWhatsappAccounts','accesskeyid','Report\x20deleted!','.mp4','selectedVtigerAccounts','ChatWebsiteProactiveActionsController','Email\x20Queues','getZendeskAccounts','scrollHeight','when','api/integrations/desk/configurations/:id/clone','api/integrations/vtiger/configurations/:id/clone','selectAllVoiceRecordings','setCurrentStep','saveReport','Peer','app.voice.voicePrefixes','Hebrew\x20(Israel)','Asia/Jayapura','zendeskConfiguration','gotocontactsgoto','Uzbek','INTEGRATIONS.FRESHSALESACCOUNTS','FAX.NEW_FAXQUEUE','QueuesVoiceRealtimeController','src/js/modules/main/apps/voice/views/outboundroutes/edit/apps/interval/dialog.html/dialog.html','aws_text_type','question,answer','api/voice/dials/reports/:id','ar-TN','\x27ws\x27','src/js/modules/main/apps/mail/views/mailAccounts/edit/mailCannedAnswers/dialog.html/dialog.html','getActions','\x27files\x27','getCount','delete\x20applications','api.userProfile.clone','sql','authInterceptor','Hopper\x20deleted!','createdAt,updatedAt,id,name,description,username,accessKey,remoteUri,serverUrl','content-type','exportSelectedNetworks','osVersion','OutboundCallsVoiceRealtimeController','SalesforceAccount\x20properly\x20deleted!','CONTACTMANAGER.ERRORS.PHONEBAR_API','VtigerAccount\x20properly\x20deleted!','id,name,IntervalId','interactionsgoto','params','delete\x20metric','Pacific/Galapagos','Asia/Dubai','unPause','api.mailSubstatus.delete','MusicOnHold','TOOLS.NEW_INTERVAL','Arabic\x20(Algeria)','api/whatsapp/accounts/:id/clone','warning','GROUP_CONCAT','api/attachments/:id','ticks','MOTIONDIALER.ALL_LISTS','api/attachments/:id/clone','DASHBOARDS.JUNE','xlsx','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20hoppers?','smsStatusTime','gridster','The\x20dynamics365Account\x20will\x20be\x20deleted.','\x27admin\x27','Jacek','SYSTEM:GEToutboundRoutes','Tags\x20set!','style','Beepall','chatQueuesTotal','EditoutboundAppintervalDialogController','deleteSelectedVoiceRecordings','\x2714400\x27','The\x20zendeskConfiguration\x20will\x20be\x20deleted.','find','getVtigerAccounts','\x27pt-br\x27','ENTER','squareReport','outboundAnswerAgiCallsDay','api/plugins/describe','green-A700-bg','America/St_Johns','queueCampaignHopperHistories','delete\x20outboundroute','showLoadingIndicator','unreadTotalGroupMessages','Command','deleteVoiceQueuesChannels','api/cm/lists/:id','saveSmsCannedAnswer','FAX.FAXACCOUNTS','whatsappAccount@get','api/cm/hopper/:id','The\x20contact\x20will\x20be\x20deleted.','conversationUpdate','api/chat/reports/transfer/:id','onBefore','VIDEO.EDIT_SCREENRECORDING','getZohoAccounts','createOrEditscreenRecording','ANALYTICS.EDIT_METRIC','AgentHomeDashboardMultiChannelSmsController','lastStep','America/Paramaribo','api/fax/queues/describe','ca-ES','id,name,interval,IntervalId','isFirstStep','api/trunks/:id','migration','app.toolbar','udp','@from-voicemail','exportSelectedTriggerActions','intDeskAccount@get','vm.selectedTags','reportRoute','layoutStyles','duplicateContact','Round\x20Robin\x20Memory','uploadComplete','Arabic\x20(Lebanon)','America/Thule','addNewSmsAccount','savePlugin','MOTIONDIALER.EDIT_HOPPER','Telephone\x20properly\x20saved!','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20mailSubtatuses?','/mailQueues','api/analytics/custom_reports/:id/run','networks','Delete\x20SmsQueue','Thai\x20(Thailand)','Times\x20New\x20Roman,Times,serif','DESC','findIndex','Connection\x20succeded!','mailMessage','Weight\x20Random','APP.CLOSE','delete\x20Templates','api.intSugarcrmAccount.update','deleteSelectedTriggers','api.variable.update','api.intDynamics365Account.delete','deselectSounds','System','YYYY-MM-DDTHH:mm:ssZ','msHorizontalStepperStep','selectedTeams','api/square/reports/describe','api/users/:id/prefixes','arrayagentIdentifier','trunks','api/voice/mails/messages/:id','src/js/modules/main/apps/motiondialer/views/queueCampaigns/edit/view.html/view.html','SYSTEM:GETprojects','License\x20Request','APP.SELECTED_USERS','fontFamily','treeDefaultConfig','export','onOperatorChange','removeAllListeners','SYSTEM:GETintDeskAccount','$document','user_has_','jaws','twitter','CustomizationsController','SmsAccount','AEC','CreateOrEditCustomDashboardDialogController','src/js/modules/main/apps/whatsapp/views/whatsappQueues/create/dialog.html/dialog.html','createdAt,updatedAt,id,customer_id,fullname,email,password,mailbox,context,tz,attach,envelope,delete,emailbody,emailsubject,maxsecs,maxmsg','api/sms/accounts/:id/notify','mainForm','onSelectList','Japanese','getWhatsappAccountLabel','is-mobile','dial','TOOLBAR.HINDI','messaging','icon-sitemap','deselectTemplates','targetSelected','deleteMailQueuesWaitingInteractions','MAX','mailInteraction:update','SYSTEM:DELETEintZohoAccount','Would\x20you\x20like\x20to\x20save\x20your\x20survey?','api/voice/calls/reports/:id','usenglishmale','gotoStep','onSaveUserChatQueue','removeSections','FreshdeskConfiguration\x20properly\x20deleted!','selectedChatWebsiteProactiveActions','voiceQueues','$evalAsync','fax_queue_waiting_interaction:remove','src/js/modules/main/apps/mail/views/mailQueues/create/dialog.html/dialog.html','formData','icon-label','shiftKey','UserChatQueue','The\x20mailCannedAnswer\x20will\x20be\x20deleted.','openchannelAccount@get','agentcompleteAt','local','toggleFolded','awsPollyRegion','Message\x20properly\x20rejected!','SETTINGS.NETWORKS','hasDashboardPermissions','Delete\x20VoiceQueue','exportSelectedReports','SYSTEM:GETintFreshsalesAccount','ZendeskAccount','back','DispositionsController','createOrEditSalesforceConfiguration','transferCallback','/freshsalesAccounts','api/voice/queues/:id/users','smsMessage:save','deleteSelectedVoicemailMessages','delete\x20Contexts','participants','ms-shortcuts','+14:00','/settings','deleteQueueCampaignHopperHistory','getQueueCampaignHopperBlacks','beepall','slice','addBlackLists','Once','Africa/Tripoli','id,name,role','src/js/modules/main/apps/voice/views/realtime/agents/view.html/view.html','spyopenchannelInteraction','DASHBOARDS.SELECT_DATE_RANGE','SYSTEM:LISTS_ASSOCIATION','$scope','countnoanswerretry','src/js/modules/main/apps/integrations/views/servicenowAccounts/create/dialog.html/dialog.html','saveOpenchannelAccountApp','EditOpenchannelAccountAppcloseDialogController','addons','message','selectedIvrCampaignHopperFinals','contentOnly','delete\x20mohSounds','Ringall','ms-nav-folded','src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/gotop/dialog.html/dialog.html','api/teams/describe','filterSingleByTags','cmContact','getChatWebsiteOfflineMessages','joinTypes','FaxQueue','api/whatsapp/queues/:id/clone','CONTACTMANAGER.EDIT_CONTACT','displayValue','getAssignedCompanies','CHAT.CHAT','restart\x20plugin\x20process','src/js/modules/main/apps/integrations/views/freshdeskAccounts/freshdeskAccounts.html/freshdeskAccounts.html','attributes','app.motiondialer.realtime.queue_calls','api.faxAccount.save','onReadyEditor','Hangup','command','voiceMail@get','Gwineth\x20(Welsh,\x20Female)','apps.contactmanager.lists','firstStep','api.plugin.delete','Gujarati\x20(India)','Joey','substatus','SYSTEM:ADDFIELDS','ms-masonry-item','Disagree','mailStatusTime','chain','src/js/modules/main/apps/voice/views/voicePrefixes/edit/agentadd/agentadd.html/agentadd.html','MARKETPLACE.PLUGINS','enqueue','src/js/modules/main/apps/staff/views/users/edit/changepassword/changepassword.html/changepassword.html','Zendesk','api/plugins/webhook','deselectVoicemails','api/rpc/openchannel/queues/:id/notify','api.intServicenowAccount.save','arrayallow','onSaveFaxInteraction','Intelepeer','smsQueue@get','api/integrations/servicenow/accounts/:id/clone','autoStart','globalUserLists','toastyConfigProvider','rpc@getAgents','deleteWhatsappAccountApp','saveList','motionBarOptions','#2d323e','voice','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20teams?','api.analyticReport.update','chatInteraction:save','loadedSection','exportSelectedUsers','analyticCustomReport@get','app.tools.triggers','CreateOrEditServicenowAccountDialogController','The\x20mohSound\x20will\x20be\x20deleted.','Arabic\x20(Qatar)','addNewCompany','foreignTableFields','onUpdateChatInteraction','getDateFromString','ticketType','hu-HU','ExternIP','TOOLS.INTERVALS','SYSTEM:DELETEsmsAccount','Report\x20saved!','app.tools.cannedAnswers','plugin@get','src/js/modules/main/apps/voice/views/chanSpies/chanSpies.html/chanSpies.html','CONTACTMANAGER.SELECT_LIST','mandatoryDispositionPause','/mail','selectedInboundRouteApps','Asia/Khandyga','app/core/directives/ms-widget-engine/ms-widget-engine-','searchReport','trigger','addItem','Delete\x20Widget','closeReason','integration','Europe/Helsinki','\x27thumb\x27','webbar:transfer','src/js/modules/main/apps/dashboards/views/general/agent/agent.general.html/agent.general.html','Delete\x20SmsCannedAnswer','+00:00','metric','motionThemes','Tools','VoiceQueue\x20properly\x20deleted!','goalname','src/js/modules/main/apps/voice/views/chanSpies/create/dialog.html/dialog.html','phoneBarEnableSettings','userOpenchannelQueue:save','arraytransport','outboundDial','deleteIvrCampaignHopperFinal','hideStep','selectedFaxAccounts','editCondition','speakerId','hotdesk','apps.integrations.deskAccounts','Sounds','app.chat.realtime','saveGlobalCustomField','You\x20are\x20selecting\x20the\x20list\x20number:\x20','app.integrations.freshdeskAccounts','fileAdded','$broadcast','src/js/modules/core/directives/ms-stepper/templates/vertical/step/vertical-step.html/vertical-step.html','members','downloadfile','api.intVtigerAccount.save','cookieAlertHide','ZendeskAccountsController','addNewOpenchannelQueue','\x27chat_websites\x27','api.condition.delete','\x20properly\x20created','SYSTEM:GETvoiceMusicOnHold','companies','DASHBOARDS.SELECT_DATE','STAFF.EDIT_USERPROFILE','listsCampaign','showWebBar','pickerModel','sort','\x27report_mail_queue\x27','id,field,operator,value,createdAt,updatedAt','Delete\x20disposition','api.intFreshdeskConfiguration.delete','Brazilian\x20Portuguese\x20Female','Male','EditChatWebsiteAppintervalDialogController','Finnish','selectAllOpenchannelAccounts','lastIn','ZendeskAccount\x20properly\x20tested','\x27penalty\x27','chatQueue','createdAt,updatedAt,id,name,service,data2,data1','PALETTES','api.intFreshsalesAccount.save','createdAt,updatedAt,id,name,username,password,email,remoteUri,serverUrl,description','exportSelectedMailAccounts','Queue','connection','api/chat/messages/:id/clone','SYSTEM:GETusers','project_id','de-DE','getUserProfiles','in-right-aligned','width:\x20265px;','SYSTEM:ivrCampaign.REMOVELIST','Delete\x20triggers','America/Yakutat','app.whatsapp.whatsappAccounts.edit','saveWhatsappAccountApp','/deskAccounts','callbackuniqueid','Antarctica/Casey','unmanaged','integrations/freshdesk/configurations/:id/descriptions','src/js/modules/main/apps/mail/views/realtime/realtime.html/realtime.html','pascalprecht.translate','src/js/modules/main/apps/callysquare/views/projects/edit/open/open.html/open.html','CreateOrEditPauseDialogController','EU\x20(Ireland)','app.mail.mailAccounts.edit','CreateOrEditZohoConfigurationDialogController','onChange','api/voiceQueuesLog/:id/clone','Module\x20not\x20included\x20in\x20the\x20license','scales','Romanian','canGoInConference','delete\x20salesforceConfiguration','app.whatsapp.realtime.queues','app.staff','api.voiceQueue.update','getIconByChannel','selectedOpenchannelQueues','src/js/modules/main/apps/integrations/views/zendeskAccounts/edit/view.html/view.html','Pacific/Tongatapu','SYSTEM:DELETEcmCompany','api.voicePrefix.update','field,alias','analyticMetric@get','getConfig','app.auth','\x22\x20target=\x22_self\x22>','Dora','rpc@getCampaigns','VIDEO.VIDEO','playback','api/integrations/servicenow/configurations/:id/clone','ngSanitize','OutboundCallsVoiceRealtimeController\x20as\x20vm','api/integrations/zoho/configurations/:id/clone','EditMailAccountAppautoreplyDialogController','api/users/:id/chat_websites','api.voiceExtension.save','TagsController','deleteSelectedQueueCampaignHopperHistories','\x27zh-TW\x27','saveChatCannedAnswer','api.user.delete','exportSelectedOpenchannelAccountOpenchannelCannedAnswers','selectedList','predictiveIntervalDroppedCallsCallersExit','CreateOrEditCustomizationDialogController','privateKey','src/js/modules/main/apps/integrations/views/dynamics365Accounts/edit/item/dialog.html/dialog.html','deselectWhatsappQueues','startingAllowedItems','scrollTop','/queue_calls','getCustomDashboards','deskConfiguration','-updatedAt','Tamil\x20(Singapore)','collapsed','sound.name','
    ','api/fax/reports/queue/describe','Ring','saveZohoAccount','delete\x20subjects','api/fax/accounts/:id/messages','Esperanto','buttonClicked','api/mail/reports/queue/:id/clone','America/Mazatlan','SYSTEM:GETpauses','api/analytics/field_reports/:id/clone','api/voice/extensions/:id/applications','holdHook\x20->\x20payload','src/js/modules/main/apps/callysquare/views/squareRecordings/squareRecordings.html/squareRecordings.html','context','UserapikeymanagerController','listsMap','motion2.home.openchannel:','exportSelectedVoicePrefixes','apiKey','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20interactions?','Romansh','CONTACTMANAGER.COPY_CONTACT','SYSTEM:GETtrigger','collapse-animation','QuickFilterManager::setPlaceholder','chatOfflineMessage@get','mouseenter','api/chat/websites/:id/customer_avatar','tTxX','selectAllContacts','Priority','Condition','addNewReportField','app.fax.realtime.trunks','Irish','trigger:browser:url','CONTACTMANAGER.LISTS','Asia/Dushanbe','Userchange_avatarController','0px','$mdDialog','Contact\x20properly\x20saved!','RequestLicenseDialogController','separatorKeys','setFolded','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20smsQueues?','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20users?','America/Porto_Velho','penalty\x20','user_has_whatsapp_interactions:save','+06:30','microphone','hasChildren','selectedMailShowSystemMessage','America/Vancouver','whatsappQueue@get','src/js/modules/main/apps/staff/views/teams/edit/agentadd/agentadd.html/agentadd.html','some','createdAt,updatedAt,id,key,value,description','newExtractedReport','AbandonedCallsVoiceRealtimeController','MOTIONDIALER.SELECTED_LISTS','api/sms/accounts/:id/dispositions','selectAllAiTools','parentDisposition','WhatsappAccountsController','welcomemessage','api/chat/queues/:id/users','propertiesDefault','stateRegistry','Reset\x20List','\x27comedia\x27','CreateOrEditServicenowConfigurationDialogController','mailServerOut','onFinish','hopperIds','src/js/modules/main/apps/motiondialer/views/queueCampaigns/queueCampaigns.html/queueCampaigns.html','Celine','deselectODBC','app.voice.outboundroutes.edit','VOICE.INTERNALROUTES','Shona','-message','attrs','api.network.update','getWhatsappAccountApps','xCALLY\x20Motion','EditInboundAppdialDialogController','innerHeight','openchannelCannedAnswer\x20#','Minutes','TOOLS.NOTIFICATIONS.DISPOSITIONS_DELETE_TITLE','SquareProjectId','get_json','SmsInteractionId','columnCount','=endTime','createOrEditExtractedReport','removeItems','querySearch','MsWidgetEngineCounterController','..a','es-HN','/dialer','faxStatusTime','note','api.squareProject.delete','ANALYTICS.NEW_EXTRACTEDREPORT','scroll','delete\x20VoiceRecordings','src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/externaldial/dialog.html/dialog.html','user:save','VOICE.NEW_INBOUNDROUTE','binding','deleteSelectedWhatsappQueues','The\x20mailQueue\x20will\x20be\x20deleted.','api/userProfiles/:id/clone','VOICE.RUNSENTIMENT_VOICERECORDING','apps.home.openchannel','application','focus','api/integrations/vtiger/fields/:id/clone','newCustomField','goTo','SugarcrmAccount\x20properly\x20tested','api.user.createApiKey','api/integrations/sugarcrm/configurations/:id/clone','getFreshdeskConfiguration','usspanishfemale','Edge','light-blue','webbar:answer','currentStep','onUpdateFaxQueue','api.userProfile.update','upload','outboundRoutes','htmlContent','intZendeskField','America/Halifax','src/js/modules/main/apps/callysquare/views/projects/edit/dialog/dialog.html/dialog.html','TOOLS.EDIT_INTERVAL','msNavigation::collapse','voice_queue_channel:save','api/attachments/:id/download','DASHBOARDS.UNTITLED','EDIT_PERMISSION','Error\x20creating\x20company!','Female','ExecIf','TriggerAnyId','cmHopper','vm_dc.query.filter','America/Adak','SYSTEM:GETfaxAccount','America/Curacao','UserSmsDashboardGeneralController','/:id','addNewChatProactiveAction','lastIndexOf','Voicemails','#tab-container','\x27fewestcalls\x27','getODBC','SmsAccount\x20updated!','MIN\x20(','deleteProjectSession','notification:save','||User:=$eq[','MainController\x20as\x20vm','Linear','\x27preview\x27','Times\x20New\x20Roman','Norwegian\x20Bokmal\x20(Norway)','icon-checkbox-blank-circle-outline','CreateOrEditchanSpyDialogController','src/js/modules/main/apps/whatsapp/views/whatsappQueues/edit/agentadd/agentadd.html/agentadd.html','Smtp\x20not\x20verified!\x20Remember\x20to\x20save\x20before\x20to\x20verify!','delete\x20hopperBlack','getSmsAccountLabel','currentSidebarTab','$mdToast','ERROR','api/cm/companies/:id/clone','delete\x20sugarcrmConfiguration','openDialog','checkSectionResources','dec','deleteZohoConfiguration','delete\x20SmsQueues','api.voiceChanSpy.save','findLast','Dynamics365Configuration\x20deleted!','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20hopperFinal?','InternalRoute\x20properly\x20saved!','canDelete','api/analytics/field_reports/create_many','take','\x20and\x20its\x20subnode\x20will\x20be\x20deleted.','DASHBOARDS.LAST_YEAR','api/square/messages/describe','addNewVoicemail','w:\x20Enable\x20whisper\x20mode,\x20so\x20the\x20spying\x20channel\x20can\x20talk\x20to\x20the\x20spied-on\x20channel.','src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/gotop/dialog.html/dialog.html','sw-KE','mailAccount','Contact\x20ID\x20','openchannelAccountInteractions','api.cloudProvider.update','saveSmtp','done','sv-SE','/openchannel','The\x20zendeskAccount\x20will\x20be\x20deleted.','ms-theme-options','selectAllCannedAnswers','getWhatsappAccountInteractions','whatsappQueue','MusicOnHold\x20properly\x20saved!','Armenian','socket','deleteSmsCannedAnswer','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20pauses?','checkboxes','The\x20agent\x20will\x20be\x20deleted.','WhatsappQueueId','Whatsapp','delete\x20Trunks','Delete\x20Context','api/voice/queues/reports/:id','CreateOrEditFreshdeskAccountDialogController','acceptedMessages','app.contactmanager.lists','userProfileSection','md-','API\x20reject\x20message\x20not\x20found:\x20','intVtigerConfiguration','SalesforceAccountsController','startcase','src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/queue/dialog.html/dialog.html','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20interaction?','arraycrudPermissions','getContexts','icon-playlist-plus','sound','createdAt,updatedAt,id,name,VoiceExtensionId,callerIdAll,description','api/cm/hopper_black/:id/clone','The\x20template\x20will\x20be\x20deleted.','Nicole\x20(English,\x20Austrialian,\x20Female)','tag','alwaysWatchTheme','msTimeline','handleKeyboardAction','api/whatsapp/accounts/:id/users','VoicePrefixesController\x20as\x20vm','sender','SquareRecordings','TOOLBAR.SPANISH','content-length','generateApiKey','left','US\x20Spanish\x20Female','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20userProfiles?','failedRows','faxInteraction@get','getWhatsappQueues','src/js/modules/main/apps/fax/views/faxAccounts/edit/view.html/view.html','APP.UNKNOWN','updateAccountApplications','=ngModel','Date','styles','newAction','INTEGRATIONS.NEW_SUGARCRMACCOUNT','createOrEditUserProfile','deselectUserProfiles','\x27report_chat_transfer\x27','deselectDispositions','\x27openchannel_accounts\x27','\x27never\x27','postalCode','createOrEditMailSubstatus','ready','api/cm/contacts/:id/clone','app.staff.userProfiles.edit','src/js/modules/main/apps/staff/views/telephones/edit/view.html/view.html','src/js/modules/main/apps/tools/views/dispositions/create/dialog.html/dialog.html','jscriptySessionReport','location','ru-RU','AgentGeneralJscriptyController','newUser','scriptPath','removeCondition','The\x20array\x20must\x20have\x203\x20or\x204\x20colors.','\x27tr\x27','Chinese\x20(China)','template@get','gotoLastStep','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20deskAccounts?','Dialer\x20Hopper\x20Final','apps.staff.teams','Interaction','Invalid\x20number\x20of\x20arguments\x20supplied\x20in\x20the\x20color\x20array:\x20','closedAt','very','EditSmsAccountAppsystemDialogController','America/Jamaica','intSalesforceAccount@get','getTriggerAllConditions','msNavigationAgentService','selectedSmsAccounts','getSummary','api.voiceQueue.save','Company\x20updated!','src/js/modules/main/apps/callysquare/views/projects/edit/import/import.html/import.html','Cannot\x20upload\x20the\x20plugin','OPENCHANNELACCOUNT:SEND','fonts','MAIL.EDIT_MAILSUBSTATUS','getAgentLabel','EditMailAccountAppintervalDialogController','createOrEditIntervalInterval','outboundrouteApps','id,name,fullname,userpic','$sce','api/chat/websites/describe','newMetric','SYSTEM:DELETEcmList','Twi','ChatWebsite\x20properly\x20deleted!','apps.marketplace','msMaterialColorPickerController','filterByPropIds','','KHOMP','Unknown\x20status','api/chat/messages/:id/reject','createdAt,updatedAt,id,interactionid,channel,format,value,rating,UserId,duration,startedAt,closedAt','getQuestionWithResponseList','queryMessage','AiTools','FooterController','addNewMusicOnHold','Trunk\x20properly\x20saved!','Delete\x20Tag','DASHBOARDS.UNREAD','createdAt,updatedAt,id,name,level,ParentId','api/sms/interactions/:id/messages','Uighur','listadddialog','EditChatWebsiteApp','Asia\x20Pacific\x20(Tokyo)','twilio','/tools','app.whatsapp.realtime','404','getContactLabel','CDR(destination)=','api/chat/groups/:id/members','+05:00','queues','dialogflowV2','app.integrations.freshdeskAccounts.edit','api/fax/accounts/:id/clone','CreateOrEditAgentDialogController','selectAllCustomDashboards','Spanish\x20(Paraguay)','SYSTEM:DELETEsmsQueue','truepriority','src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/amazonlex/dialog.html/dialog.html','motion2.home.fax:','apps.analytics.reports','apps.motiondialer.realtime','composeMailInteraction','xml','src/js/modules/main/apps/callysquare/views/projects/edit/info/info.html/info.html','hideLoadingIndicator','ghost','Unknown','src/js/modules/main/apps/whatsapp/views/realtime/realtime.html/realtime.html','src/js/modules/main/apps/motiondialer/views/queueCampaigns/edit/resetlist/resetlist.html/resetlist.html','languages','audio','/triggers','disposeInteraction','createOrEditTeam','addNewCloudProvider','jscriptySessions','WhatsappQueuesController','AgentsVoiceRealtimeController\x20as\x20vm','ExtractedReportsController\x20as\x20vm','#78a0dc','orange-A700-bg','api.faxQueue.delete','deselectPauses','Delete\x20trigger','CreateOrEditMohSoundDialogController','onUpdateWhatsappQueue','STAFF.NEW_USER','EditWhatsappAccountAppgotopDialogController','black','whatsappQueues','SEC_TO_TIME\x20(','MailQueueagentaddController','The\x20chatCannedAnswer\x20will\x20be\x20deleted.','lastPauseAt','src/js/modules/main/apps/dashboards/views/general/agent/interaction/composeOpenchannel/dialog.html/dialog.html','jabra','delete\x20freshsalesAccount','src/js/modules/main/apps/voice/views/inboundroutes/inboundroutes.html/inboundroutes.html','GET','toDate','api.intZohoConfiguration.save','Fully\x20Enabled','Europe/Copenhagen','scheduledCalls','setAttribute','platform','DASHBOARDS.DRAFT_SAVE_WARNING_MESSAGE','#chat-group-dialog','|{color:red}','trustAsHtml','app.voice.internalroutes','length','SalesforceAccountController\x20as\x20vm','CreateOrEditHopperCampaignIdDialogController','targetEvent','columnWidth','countdownattr','id,name,dialActive','api/chat/queues/:id/teams','TOOLS.NEW_SOUND','api/voice/contexts/describe','exportSelectedContexts','arrayhost','onConnect','Edited','onChangeEnableAllResources','Dynamics365AccountController\x20as\x20vm','The\x20list\x20will\x20be\x20deleted.','id,name,metric,table','getHours','INTEGRATIONS.EDIT_','Delete\x20OpenchannelQueue','SchedulesController','api/integrations/dynamics365/accounts/:id/configurations','ZohoAccount\x20properly\x20tested','selectedContexts','src/js/modules/main/apps/motiondialer/views/queueCampaigns/create/dialog.html/dialog.html','Account','\x27cm_companies\x27','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20sugarcrmConfiguration?','fax-interaction','id,name,color','src/js/modules/main/apps/chat/views/chatQueues/edit/view.html/view.html','Lotte\x20(Dutch,\x20Female)','phoneBarRemoteControlPort','STAFF.EDIT_TELEPHONE','api.mail.account','onExpand','\x27unknown\x27','ivrCampaigns','-09:00','SYSTEM:DELETEvoiceMusicOnHold','addGroup','

    \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Queue:\x20','selectAllWhatsappQueues','originateInProgress','rpcWhatsappQueues','INTEGRATIONS.SERVICENOWACCOUNTS','0.00','api.campaign.delete','api/analytics/tree_reports/:id/clone','WHATSAPP.EDIT_WHATSAPPQUEUE','getDynamics365Accounts','inboundroute','ZohoAccountsController\x20as\x20vm','id,fullname,userpic,internal','Hopper\x20properly\x20saved!','grey-A700-bg','LoginController','api/chat/messages/:id','Plivo','MusicOnHolds','exportSelectedExtractedReports','api/openchannel/queues/:id/users','motion2.home:','pl-PL','deleteChatQueuesWaitingInteractions','intServicenowConfiguration','_blank','\x27report_fax_transfer\x27','msScrollOptions','ChatWebsitelogoController','smsAccountApp','OPENCHANNEL.REALTIME','editHopper','api.cmCompany.save','yue-Hant-HK','createOrEditVoiceQueue','fax_queue_waiting_interaction:save','queryHopper','','ms-stepper','element','app.settings.license','saveMailAccountApp','api.intDeskAccount.update','Delete\x20Trunk','msScroll','app.voice.realtime.telephones','Metric','deleteSelectedContacts','Smtp\x20properly\x20created','top\x20right','deleteFreshsalesConfiguration','excludedOperators','CreateOrEditDynamics365ConfigurationDialogController','CALLYSQUARE.ODBC','Tamil\x20(Sri\x20Lanka)','Oriya','loggedInDb','The\x20mailSubstatus\x20will\x20be\x20deleted.','GoSub','msApi::requestStart','createOrEditVoicemail','src/js/modules/main/apps/chat/views/chatQueues/edit/teamadd/teamadd.html/teamadd.html','ChatGroupController','ZendeskAccount\x20properly\x20created','icon-checkbox-multiple-marked-outline','FaxQueueagentaddController','predictiveIntervalAnsweredCalls','botname','\x27KHOMP\x27','ListId','CreateOrEditSmsQueueDialogController','sessionTarget','buffer','QueueCampaigns','sugarcrmConfiguration','TransferMessageDialogController','api/fax/applications/:id','\x27en-AU\x27','$inject','api.dashboard.update','GotoIfTime','paginate','UserChatWebsite','HANGUPCAUSE_18','PM2\x20process\x20not\x20found!','NotificationController','src/js/modules/main/apps/tools/views/sounds/sounds.html/sounds.html','us-west-2','MsShortcuts.query','inboundroutes','Slovak\x20(Slovakia)','layoutModes','src/js/modules/quick-panel/tabs/groups/create/dialog.html/dialog.html','zoho.com','src/js/modules/main/apps/integrations/views/freshsalesAccounts/freshsalesAccounts.html/freshsalesAccounts.html','preventDefault','getMessagesAlignment','api/mail/applications/:id','pid\x20is\x20unknown','SYSTEM:DELETEuser','api/notifications/:id','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20voicePrefixes?','Europe/Kiev','America/Los_Angeles','^msMasonry','English\x20(Canada)','singular','startsWith','id,phone,scheduledat,priority,recallme,VoiceQueueId,CampaignId,UserId','AgentHomeDashboardVoiceController','SmsRealtimeController','verticalNavigation','getDaysOfMonth','SYSTEM:GETvoiceMails','SalesforceConfiguration\x20properly\x20saved!','width','removeAgents','apps.analytics.extractedReports','Unable\x20to\x20convert\x20question','obj','rule','EditHopperDialogController','America/Campo_Grande','deleteHopper','createOrEditSubject','src/js/modules/main/apps/motiondialer/views/queueCampaigns/edit/listadd/listadd.html/listadd.html','Pacific/Honolulu','deleteListCustomField','DASHBOARDS.RESCHEDULE','/mailSubtatuses','/screenRecordings','dashboard@get','api.intSugarcrmAccount.delete','whatsappPause','excludeFrom','\x27report_mail_transfer\x27','MsPhonebarController','OpenchannelQueue\x20properly\x20deleted!','CDR(routeid)=','VOICE.RUNTRANSCRIBE_VOICERECORDING','ar-LB','whatsappAccountApp','pendingChanges','Chinese,\x20Mandarin\x20(Simplified,\x20Hong\x20Kong)','su-ID','user_has_chat_interactions:save','phoneBarPrefixRequired','Motion\x20License\x20Request','CustomDashboards','0.7','DeskAccount','America/Juneau','src/js/modules/main/apps/tools/views/intervals/create/dialog.html/dialog.html','apps.home.contacts','newCloudProvider','msAdvancedSearch','isStepOptional','AgentsMailRealtimeController\x20as\x20vm','demo','delete\x20voicePrefix','deleteSelectedScreenRecordings','\x27report_member\x27','getTime','APP.AGENTS','api/openchannel/queues/:id/teams','Korean\x20Male','$mdMedia','en-IE','READ_PERMISSION','deleteVoicemailMessage','Carmen','Are\x20you\x20sure\x20want\x20to\x20stop\x20the\x20plugin\x20attached\x20process?','selectedLists','Delete\x20dispositions','Plugin\x20uninstalled!','muted','Netscape','agi','NOT\x20LIKE','Widget\x20has\x20been\x20deleted!','chatInteraction:update','Application_Name','deselectTelephones','import','CustomDashboardsController\x20as\x20vm','Accounts','Chinese\x20(Traditional)','WhatsappAccountController\x20as\x20vm','Spanish','src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/agent/dialog.html/dialog.html','enabled','JSCRIPTY.EDIT_PROJECT','B:\x20Instead\x20of\x20whispering\x20on\x20a\x20single\x20channel\x20barge\x20in\x20on\x20both\x20channels\x20involved\x20in\x20the\x20call.','SYSTEM:MERGE_CONTACT','huhungarianfemale','Star','ms-form-wizard-form','src/js/modules/core/directives/ms-font-family/ms-font-family.html/ms-font-family.html','VOICE.CONTEXTS','MxGraphSaveProjectAsController','ringingId','forgot','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20reports?','selectAllNetworks','red-A700-bg','ZohoAccount','white','ANALYTICS.NEW_REPORT','getSmsInteractions','api/fax/accounts/:id','createOrEditContext','/api/chat/websites/','cmn-Hans-HK','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20templates?','Albanian','newVtigerConfiguration','composeInteraction','deleteOpenchannelCannedAnswer','isCustomField','OwnerId','MailAccountsController\x20as\x20vm','vm.globalCustomField.type','query','getMetrics','app.tools.triggers.edit','Openchannel\x20Messages','GRANTED','2020-11-18T15:35:14.000Z','src/js/modules/main/apps/tools/views/sounds/upload/dialog.html/dialog.html','getClass','ukenglishfemale','Icelandic\x20(Iceland)','app.core','SYSTEM:DELETEwhatsappAccount','-=400','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20smsAccounts?','phoneBarEnableAutomaticScreenRecording','global','applyFilter','app.tools.templates','selectedIvrCampaignHopperHistories','mail_queue:save','offlinemessagesgoto','CustomizationpreferredController','selectedOpenchannelAccountInteractions','icon-fire','\x27select\x27','openchannelInteraction:save','newAgent','now','Error404Controller\x20as\x20vm','msModelType','delete\x20Projects','app.motiondialer','Indian/Christmas','indigo-A100-fg','America/Swift_Current','InteractionId','SYSTEM:UNPAUSEUSER','NONAME','Urdu','toInteger','aug','mailPause','maxDateRange','$lt','background','EditFaxAccountAppcloseDialogController','WhatsappQueues','\x27cm_lists\x27','TeamagentaddController','xmd-cdrtype','onRemoveChatQueue','deleteSelectedMailAccounts','api.voiceRecording.delete','voicePrefix','Hopper\x20properly\x20deleted!','headers','saveMailSubstatus','newItem','faxInteractions','FreshdeskAccounts','api.trigger.update','api/integrations/dynamics365/configurations/:id','EditSmsAccountAppqueueDialogController','cmList@get','pullAllBy','voiceQueuesTotal','src/js/modules/main/apps/fax/views/faxQueues/faxQueues.html/faxQueues.html','inboundQueues','UserProfiles','outerHeight','api/integrations/zendesk/configurations/:id/fields','chatInteractionTags:save','CreateOrEditReportFieldDialogController','selectedInternalRouteApps','recentEmojis','src/js/modules/main/apps/voice/views/inboundroutes/edit/view.html/view.html','${EXTEN}','xmd-voicequeueid','UserVoiceDashboardDialerController\x20as\x20vm','layoutMode','ChatProactiveAction\x20properly\x20saved!','America/Indiana/Vevay','apps.dashboards.custom_','gotoContacts','localizationMap','app.chat.chatWebsites','$[${LEN(${PREFIX-CALLERIDALL})}\x20>\x200]?Set(CALLERID(all)=${PREFIX-CALLERIDALL}):Set(CALLERID(all)=','Spanish\x20(Dominican\x20Republic)','toggleMsNavigationFolded','api/settings/:id/logo_login','api.schedule.save','src/js/modules/main/apps/tools/views/trunks/edit/view.html/view.html','CustomizationfaviconController','api.smsQueue.update','forEach','wide','calleridnum','vm.queueCampaign.dialMethod\x20!==\x20\x27booked\x27','EditWhatsappAccountAppdialogflowDialogController','America/Toronto','endValue','DASHBOARDS.NOVEMBER','salesforceAccounts','clientEmail','deleteCloudProvider','LoginController\x20as\x20vm','api/chat/interactions/:id/messages','TOOLS.VARIABLES','mailSubstatus','America/Indiana/Marengo','addNewTag','counter','DASHBOARDS.TAGS','Lowest','api.action.update','.UNKNOWN','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','app.jscripty','Delete\x20Smtp','failed','InboundRouteController\x20as\x20vm','api/automations/:id/actions','/openchannelAccounts','Delete\x20Customization','enableUncompleteSave','Smtp\x20verified!','dropRate','Are\x20you\x20sure?','apps.mail.mailAccounts','originated','Channel\x20','ngFlowOptions','verticalNavigationFullwidthToolbar2','Recordings','api/fax/accounts/:id/interactions','utcOffset','initDevice','ngPassword','addVoiceQueuesChannels','api.jscriptyProject.clone','api/integrations/reports/describe','cyan-500-fg','','http://127.0.0.1:','api/chat/websites/:id/users','FreshsalesAccount\x20properly\x20deleted!','onUpdateMailQueue','searchInProgress','api/openchannel/accounts/:id/dispositions','America/Ojinaga','registered','selectAllChanSpies','matchType','EU\x20(Paris)','firstLevel','isEmpty','Celine\x20(French,\x20Female)','UserVoiceDashboardGeneralController\x20as\x20vm','TOOLBAR.JAPANESE','allconditions','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20tags?','createOrEditSalesforceAccount','api.setting.save','deleteIvrCampaignHopper','apps.openchannel.openchannelQueues','ms-search-bar','destaccountcode','gotoCustomDashboards','English\x20(Ghana)','saveFaxAccountApp','app.motiondialer.realtime.queues','api/users/:id/password','CannedAnswersController','rpcChatQueuesWaitingInteractions','SYSTEM:DELETEhopper','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20smsCannedAnswers?','SYSTEM:DELETEmailSubstatus','api.schedule.update','Outbound\x20route\x20not\x20deleted!','src/js/modules/main/apps/settings/views/networks/networks.html/networks.html','from-sip','Asia/Tokyo','Schedule','false','deselectFaxQueues','enableSettings','getVoiceQueuesChannelHangup','Message\x20has\x20been\x20rejected!','SYSTEM:GET_MAILACCOUNTS','onFieldChange','DeskConfiguration\x20properly\x20created','UserProfile\x20properly\x20cloned','Your\x20password\x20properly\x20updated','Company\x20properly\x20created!','Medium','onSaveFaxQueueChannel','data5','getDeskAccounts','method','The\x20customField\x20will\x20be\x20deleted.','THEMES','ListDispositionsController','EditWhatsappAccountAppagentDialogController','placeholders','DASHBOARDS.WHATSAPP','queuesMap','deleteSelectedMailSubstatuses','VoiceQueue\x20properly\x20created','statedesc','/errors/error-404','resetForm','America/Indiana/Knox','questionId','\x27SI\x27','mohSound\x20#','createdAt,updatedAt,id,name','deselectVoiceRecordings','preproduction','America/Mexico_City','\x27cm_hopper\x27','src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/close/dialog.html/dialog.html','src/js/modules/main/apps/mail/views/mailSubtatuses/mailSubtatuses.html/mailSubtatuses.html','src/js/modules/main/apps/dashboards/views/general/user/user.general.html/user.general.html','QueuesMailRealtimeController','app.openchannel.openchannelAccounts.edit','api.interval.save','api/integrations/freshsales/accounts/:id/fields','WhatsappInteractionId','api/sms/accounts/:id/users','exportSelectedUserProfiles','SYSTEM:GETVARIABLES','macro','alias','migrations','ActionId','chatApplication','Karl\x20(Icelandic,\x20Male)','\x27linear\x27','Arabic','api/fax/reports/queue/:id','IntervalController\x20as\x20vm','id,uniqueid,calleridnum,statedesc,starttime,disposition','','mapAgentsId','app.dashboards.general.sms','newHopper','@pid','api/integrations/freshsales/configurations/:id/subjects','compact','MailSubstatus','selectAllZendeskAccounts','isBetween','userVoiceQueueRt:save','QueueParamsMotionDialerRealtimeController','OutboundRoutes','SugarCRM','home.openchannel','UsersController\x20as\x20vm','spy','msApi::requestSuccess','America/Argentina/San_Juan','gu-IN','mail','toggleChat','onRemoveUserChatQueue','getRemoteStreams','palettes','populateResults','\x27/var/opt/motion2/server/files/sounds/converted/{{appdata.save_name}}\x27','numbersto99','Japanese\x20Female','webbar:hold','APP.GENERAL','America/Kentucky/Louisville','indexOf','onSaveWhatsappQueue','api/integrations/freshdesk/accounts/:id/clone','WhatsappAccountDispositionsController','Url','FaxQueue\x20properly\x20created','getSugarcrmConfiguration','png','switch','ListsController\x20as\x20vm','whatsappMessage','userId','exportSelectedChatWebsiteOfflineMessages','onSearchBarExpand','SmsQueueId','Win','true','api/voice/extensions/:id/clone','api/mail/accounts/:id/clone','api.disposition.delete','Asia/Yakutsk','APP.REALTIME','QUICKPANEL.WARNING','getHeaderErrors','SYSTEM:DELETEuserProfile','Europe/Warsaw','addNote','api.pause.delete','addNewVoiceQueue','SYSTEM:GET_TEAMS','SYSTEM:DELETEvoiceExtension','OpenchannelQueueId','tab','SYSTEM:GETreport','...','api.screenRecording.update','a..','','he-IL','MailAccount\x20properly\x20deleted!','app.dashboards.general.fax','ctrlMethods','CustomReportId','English\x20(Australia)','gotoOpenchannelQueues','toggleCollapsed','Dynamics365Configuration\x20properly\x20saved!','DASHBOARDS.SELECT_SUBSTATUS','contacts','icon-apps','app.forgot','row','UserOpenchannelAccount','Delete\x20actions','selectedSmsAccountSmsCannedAnswers','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20dynamics365Configuration?','addNewGlobalCustomField','CreateOrEditExtractedReportDialogController','CreateOrEditZohoAccountItemDialogController','routeId','MONITOR_OPTIONS=ab','both','newSmsCannedAnswer','\x20ASC','Agent\x20updated!','smsCannedAnswer\x20#','src/js/modules/main/apps/settings/views/updates/update/dialog.html/dialog.html','IvrCampaign\x20properly\x20cloned','src/js/modules/main/apps/integrations/views/dynamics365Accounts/dynamics365Accounts.html/dynamics365Accounts.html','cloudProvider@get','saveContext','ServicenowAccountsController','msNavFoldService','deleteMetric','DASHBOARDS.SELECT_QUEUE','$watch','delete','deleteSugarcrmAccount','deleteZohoAccount','clone','models','plugin:update','api.voicePrefix.delete','api/voice/mails/:id','app.voice.realtime.queue_calls','UserProfile\x20properly\x20created','src/js/modules/main/apps/integrations/views/zendeskAccounts/zendeskAccounts.html/zendeskAccounts.html','filtered','musiconholds','openchannel-interaction','ckeditor','api.intFreshdeskAccount.update','getChatWebsiteChatCannedAnswers','vm.voiceQueue.joinempty.length\x20===\x201\x20&&\x20vm.voiceQueue.joinempty[0]\x20===\x20\x27paused\x27','sounds','TOOLS.NOTIFICATIONS.CONDITION_CREATED_SUCCESS_TITLE','chatWebsiteInteractions','\x27report_dial\x27','variableName','offlineMessage\x20#','SETTINGS.LICENSE_REQUEST_SENT','api.item.save','customTree','intervalAttr','websocket','MxGraphImportXMLController','src/js/modules/core/layouts/horizontal-navigation.html/horizontal-navigation.html','Website','getVoiceQueues','vm.voiceQueue.leavewhenempty.length\x20===\x201\x20&&\x20vm.voiceQueue.leavewhenempty[0]\x20===\x20\x27invalid\x27','src/js/modules/main/apps/staff/views/agents/edit/changepassword/changepassword.html/changepassword.html','stoppedTime','Error\x20creating\x20list!','loadMore','api/automations/:id/clone','stepInfo','api.user.changePassword','getTriggerActions','src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/interval/dialog.html/dialog.html','addContactTab','api/integrations/desk/configurations/:id/descriptions','SYSTEM:DELETEFIELD','Asia/Oral','openchannelMessage:update','src/js/modules/main/apps/mail/views/mailAccounts/edit/agentadd/agentadd.html/agentadd.html','src/js/modules/quick-panel/quick-panel.html/quick-panel.html','delete\x20intervals','OpenchannelQueueController','addNewServicenowConfiguration','removeAttachment','Chinese,\x20Mandarin\x20(Simplified,\x20China)','concat','api/square/details/reports/:id/clone','api/cm/hopper/opencontacts','chatQueue:remove','deleteQueueCampaignHopper','WHATSAPP.EDIT_WHATSAPPACCOUNT','Delete\x20InboundRoute','motion2.home.contacts:','CSquare\x20Details\x20Report','Slovak','UserOpenchannelQueue','api/fax/reports/queue/:id/clone','Portuguese\x20(Nrazilian)','onClose','api/square/odbc/:id/clone','\x27wav\x27','ServicenowAccount\x20updated!','getJscriptyProjects','Queue\x20Report','selectedMailAccountMailCannedAnswers','salesforceConfiguration','undo','toLowerCase','\x2718\x27','Widget\x20deleted!','APP.NEW_CONTACT','app.analytics.reports','editOpenchannelAccountApp','newTemplate','The\x20zohoAccount\x20will\x20be\x20deleted.','agentAdd','api/plugins','read1stAt','SYSTEM:GETsetting','updateLocalStorage','$gt','GET_COMPANY','CHAT.OFFLINE_MESSAGE','fi-FI','api/jscripty/projects/:id','exportSelectedSmsAccountInteractions','getDescriptions','cmCompany@get','app.motiondialer.queueCampaigns.edit','subject','downloadtranscribefile2','es-DO','PUT','api/voice/queues/:id','api.item.delete','draft','api.voiceRecording.save','api/plugins/:id/download','TOOLS.NOTIFICATIONS.DISPOSITIONS_DELETE_MESSAGE','api/mail/accounts/:id/users','app.integrations.deskAccounts','selectAllVariables','SYSTEM:DELETEtemplate','dashboard:save','SYSTEM:GET_OUTBOUNDROUTES','rpc@getVoiceQueuesChannels','api.intVtigerAccount.delete','\x27nonat\x27','/custom/:id','src/js/modules/main/apps/contactmanager/views/lists/edit/agentadd/agentadd.html/agentadd.html','${EXTEN:','apps.tools.customDashboards','api/userProfile/resources/describe','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20contexts?','fax','European\x20Italian\x20Female','api.voiceMail.save','ToId','api/cm/hopper/describe','America/Santo_Domingo','selectedDisposition','AgentController\x20as\x20vm','communications','CompanyController\x20as\x20vm','STAFF.NOTIFICATIONS.PERMISSIONS_ENABLED_ALL_SUCCESS_TITLE','End\x20of\x20Conversation','VOICE.EDIT_VOICEPREFIX','api.openchannelQueue.save','The\x20project\x20will\x20be\x20deleted.','\x20deleted!','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','This\x20message\x20has\x20no\x20subject.\x20Are\x20you\x20sure\x20you\x20want\x20to\x20send\x20it?','INTEGRATIONS.NEW_FRESHSALESACCOUNT','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20deskConfiguration?','apps.marketplace.plugins','delete\x20chanSpys','DASHBOARDS.ALL','Number','SmsQueue\x20properly\x20deleted!','TOOLBAR.WARNING','api/rpc/whatsapp/queues/waitinginteractions','\x271\x27','api/cm/contacts/:id/tags','SYSTEM:GETopenchannelAccount','Turkish','ChatQueue\x20updated!','state','api.faxAccount.delete','QueueParamsVoiceRealtimeController','selectedReport','The\x20chatQueue\x20will\x20be\x20deleted.','getTags','CreateOrEditChatProactiveActionDialogController','Asia/Rangoon','saveChatWebsite','chanSpy\x20properly\x20deleted!','\x27g729\x27','statusText','keyBy','drafts','close','Delete\x20Project','VtigerAccountController','expanded','api/rpc/fax/queues','prefix','Asia/Singapore','Trunk\x20properly\x20created','The\x20general\x20will\x20be\x20deleted.','src/js/modules/main/apps/tools/views/templates/create/dialog.html/dialog.html','addCall\x20->\x20target,\x20inbound,\x20fullname','America/Rankin_Inlet','chip-disabled','UserVoiceDashboardDialerController','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20freshdeskAccounts?','+02:00','IS_NOT_EQUAL','$window','resizable','congestion','contcts','CreateOrEditSalesforceConfigurationDialogController','dialogflowV2_language','queryHistory','SYSTEM:GETvariables','CONTACTMANAGER.EDIT_COMPANY','intServicenowAccount@get','app.dashboards.custom','msNav::forceCollapse','deep-orange','WhatsappCannedAnswer\x20properly\x20saved!','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20openchannelQueues?','CreateOrEditSoundDialogController','Greek\x20(Greece)','iceCandidateTimeout','The\x20','containerPos','MAIL.NEW_MAILQUEUE','ContactController','newFaxAccount','api/cloudProviders/describe','load','America/Sao_Paulo','chatAccounts','createdAt,updatedAt,id,name,host,zone,clientId,clientSecret,code,refreshToken,serverUrl,description','whatsappCannedAnswer','deleteChatCannedAnswer','day','#ebf1fa','sound@get','api/integrations/salesforce/fields/:id/clone','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20dynamics365Accounts?','user@get','ChatQueueController\x20as\x20vm','api/voice/chanspy/:id/clone','TOOLS.EDIT_CUSTOMDASHBOARD','api/voice/recordings/:id/transcribe','api/integrations/:id','WhatsappQueueagentaddController','saveMetric','Company','IndexFactory','Russell\x20(English,\x20Austrialian,\x20Male)','map','processing','The\x20vtigerAccount\x20will\x20be\x20deleted.','Trunks','api/cm/contacts/:id/jscripty_sessions','rpcVoiceQueues','api/integrations/zendesk/accounts/:id/clone','pause@get','createOrEditFreshdeskConfiguration','VOICE.EDIT_VOICERECORDING','VOICE.INBOUND','api/chat/reports/queue/:id/clone','Africa/Johannesburg','tabs','TCL:\x20\x20path','src/js/modules/main/apps/sms/views/smsQueues/edit/agentadd/agentadd.html/agentadd.html','ANALYTICS.ANALYTICS','$eval','isFormValid','AgentPermissionsController','api/voice/prefixes/describe','faxQueuesTotal','cafrenchfemale','api/whatsapp/messages/:id','app.reset','deleteQueueCampaignHopperBlack','chatWebsiteProactiveActions','openchannel_queue_waiting_interaction:save','DASHBOARDS.ABANDONED','apiResolver','extend','goto','\x27route\x27','The\x20chanSpy\x20will\x20be\x20deleted.','MyBody','dragging','rfc2833','CreateOrEditChatQueueDialogController','api/users/:id/queues_rt','createOrEditOpenchannelAccount','Ukrainian','createdAt,updatedAt,id,name,description','Arabic\x20(State\x20of\x20Palestine)','api.squareOdbc.save','VoiceExtensionId','InternalRoute\x20updated!','EditSmsAccountAppgotoifDialogController','UploadPluginDialogController','api.intVtigerConfiguration.save','createdAt,updatedAt,id,name,interval','/templates','draggable','deselectInboundRoutes','app.help','delete\x20GlobalCustomFields','dialogflowv2','ClickSend','app.marketplace.plugins','src/js/modules/main/apps/callysquare/views/projects/edit/saveAs/saveAs.html/saveAs.html','CreateOrEditDeskConfigurationDialogController','/chat','selectedDispositions','This\x20Week','src/js/modules/main/apps/fax/views/faxAccounts/faxAccounts.html/faxAccounts.html','COUNT\x20(','ANALYTICS.EDIT_EXTRACTEDREPORT','exportSelectedVoiceRecordings','The\x20list\x20is\x20empty','api.cloudProvider.delete','$gte','CreateOrEditDispositionDialogController','api/campaigns/describe','request','Technology/Resource','SYSTEM:GETintFreshdeskAccount','SYSTEM:GETintSalesforceAccount','mohSound','delete\x20MailSubstatuss','\x274\x27','src/js/modules/main/apps/integrations/views/sugarcrmAccounts/edit/configurations/dialog.html/dialog.html','openChannel','OutboundRouteActionsController','api.jscriptyProject.getSummary','onUpdateFaxInteraction','api/mail/accounts/:id/dispositions','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20chatQueues?','Which\x20number\x20do\x20you\x20want\x20transfer\x20the\x20call\x20to?','DASHBOARDS.THIS_WEEK','deleteFieldConfirm','ms-navigation-folded','h-128','Odbc\x20properly\x20deleted!','CreateOrEditServicenowAccountItemDialogController','Trebuchet\x20MS,Helvetica,sans-serif','motion-blue','deleteFreshdeskAccount','deleteSelectedSmsQueues','Request\x20sent!','arrayusereqphone','faxCurrentCapacity','mdPickers','selectedTelephones','shutdown','api/voice/dials/reports/:id/clone','user','vm.voiceQueue.leavewhenempty.length\x20===\x201\x20&&\x20vm.voiceQueue.leavewhenempty[0]\x20===\x20\x27loose\x27','api.dashboard.delete','The\x20freshsalesConfiguration\x20will\x20be\x20deleted.','Maja','subString','Unable\x20to\x20get\x20Html\x20Editor\x20instance','interval_id','Agent\x20logout','pull','saveOutboundRouteApp','SYSTEM:GET_PROJECTS','EditFaxAccountAppagentDialogController','api.openchannelAccount.delete','SYSTEM:DELETEpause','app.whatsapp.whatsappQueues.edit','SYSTEM:GETvoiceQueue','Bengali\x20(Bangladesh)','stopping','saveDynamics365Account','startingSelectedItems','app.contactmanager.contacts.edit','Vietnamese','UserProfilepermissionsmanageController','Outgoing','getInfo','Mathieu','src/js/modules/main/apps/chat/views/chatQueues/edit/agentadd/agentadd.html/agentadd.html','arrayshowWebBar','AgentDashboardGeneralController','CTI\x20URL','ringingMute','countglobal','You\x20are\x20not\x20the\x20owner\x20of\x20the\x20last\x20message!','id,name,fullname,internal','api.smsQueue.save','Days','TOOLS.EDIT_VARIABLE','selectedServicenowConfiguration','api.intFreshdeskAccount.delete','createOrEditInternalRoute','inReplyTo','invoke','addNewTemplate','mwForm.pageEvents.pageCurrentChanged','setConfig','Unable\x20to\x20open\x20the\x20contact','selectAllTriggers','InboundRoutes','delete\x20servicenowAccount','Last','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20plugins?','addTrack','TrunkcloneController','apps.voice.voicePrefixes','exportSelectedQueueCampaignHopperFinals','year','$filter','modules','geEditor','api.pm2.delete','app.dashboards.general.openchannel','selectedZendeskAccounts','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20ivrCampaigns?','cmContact@getJscriptySessions','eurfrenchmale','Interactions','api.analyticFieldReport.update','TOOLS.NOTIFICATIONS.DISPOSITION_DELETE_TITLE','openFromEditor','api/attachments','Customization\x20updated!','Tatyana','apps.voice.inboundroutes','api/dashboards/describe','onSearchFieldsInit','Tamil\x20(Malaysia)','Urdu\x20(Pakistan)','api/integrations/freshsales/accounts/describe','motion2.home.abandoned.bull.calls:','app.voice.inboundroutes','searchTerm','Bengali','selectedTriggerAnyConditions','api/integrations/freshsales/accounts/:id','createOrEditOdbc','agi://127.0.0.1/square,','saveMailCannedAnswer','DeskAccountController\x20as\x20vm','isChecked','paginatedContacts','src/js/modules/main/apps/voice/views/internalroutes/edit/apps/ringgroup/dialog.html/dialog.html','AgentteamaddController','deleteWhatsappCannedAnswer','MSIE','DATE','voiceQueue:remove','idField','src/js/modules/main/apps/tools/views/sounds/create/dialog.html/dialog.html','RESCHEDULE','api/openchannel/queues/describe','Group\x20properly\x20saved!','gotoCompanies','/api/settings/1/logo_login','smsQueue:save','api/integrations/servicenow/fields/describe','SUCCESS','Lists','Jan\x20(Polish,\x20Male)','Type\x20a\x20message','Customization\x20properly\x20created','VoiceRecordingController','EditFaxAccountAppgotoifDialogController','SYSTEM:DELETEsquareRecording','api/migrations/:id/clone','deleteSelectedInternalRouteApps','$onInit','src/js/modules/errors/500/error-500.html/error-500.html','licenseKey','','Basic','Attached\x20pm2\x20process\x20successfully\x20restarted','InboundRoutesController','America/Argentina/Mendoza','DashboardCustomController\x20as\x20vm','CreateOrEditZendeskAccountItemDialogController','intersection','Openchannel','\x20yyyy','delete\x20servicenowConfiguration','api/cm/hopper/:id/clone','analyticExtractedReport@get','Asia\x20Pacific\x20(Singapore)','inband','getVoiceChannels\x20->\x20session','/agents','showFooter','AgentsOpenchannelRealtimeController\x20as\x20vm','app.integrations.sugarcrmAccounts.edit','allowmessenger','TOOLS.NEW_ALLCONDITION','+06:00','ar-IL','European\x20Portuguese\x20Female','AgentsMailRealtimeController','apps.motiondialer.queueCampaigns','faxTransferReport','onRemoveUserSmsQueue','getMembers','$apply','addInteractionTab','apiResolver.resolve\x20requires\x20correct\x20action\x20parameter\x20(ResourceName@methodName)','mailCapacity','account_id','Agents\x20association\x20has\x20been\x20updated!','UserProfileController','treeDefaultInstance','Guarani','analyticTreeReport@get','cm_contacts','api.cannedAnswer.delete','downloadtranscribe','recordings','selectAllFaxQueues','addSound','delete\x20ZendeskAccounts','hideDelay','api/userProfile/sections/describe','deleteSelectedMetrics','/users','api/dashboards/items/describe','src/js/modules/main/apps/integrations/views/dynamics365Accounts/edit/configurations/dialog.html/dialog.html','ngJsTree','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20schedules?','Delete\x20ServicenowConfiguration','startDate','msVerticalStepper','\x20payload','MailAccountId','whatsappAccount','groups','openAdvancedSearch','/avatar','VOICE.OUTBOUND','src/js/modules/main/apps/mail/views/mailAccounts/edit/view.html/view.html','TOOLS.NOTIFICATIONS.CONDITIONS_DELETED_SUCCESS_TITLE','ta-IN','\x27yahoo\x27','api/chat/interactions/:id/my_messages','motion-theme-options','DASHBOARDS.SELECT_READ_UNREAD','/assets/images/theme-options/vertical-nav.jpg','api/integrations/sugarcrm/accounts/:id/fields','fail\x20callbackurl:\x22','path\x20must\x20be\x20a\x20string\x20(eg.\x20`dashboard.project`)','DASHBOARDS.READ','dialerCall','AgentGeneralContactController','multipleUsers','outboundNoSuchCallsDay','createOrEditSmsQueue','exportSelectedMailSubstatuses','api.analyticExtractedReport.update','^msTimeline','AgentHomeDashboardMultiChannelFaxController','user.name','FaxAccountActionsController','es-PA','en-KE','Transfer','api/members/reports/describe','newInternalRoute','api/integrations/freshdesk/configurations/:id/subjects','html-area','delete\x20messages','/dashboards/general','Delete\x20SalesforceAccount','footer','api/mail/interactions/:id/tags','deselectVariables','admin,user','src/js/modules/main/apps/tools/views/tags/create/dialog.html/dialog.html','api/users/whoami','Company\x20name','capitalize','onSaveUserSmsQueue','ContactsController\x20as\x20vm','createOrEditZohoAccount','api.chatGroup.delete','Mozilla','SYSTEM:USERPROFILE.ADDSECTIONS','U(xcally-mixmonitor-context)','addEventListener','openchannelStatusTime','User\x20password\x20properly\x20updated!','/api/originate/','apps.openchannel.realtime','displayName','/metrics','This\x20Month','app.navigation','English\x20(United\x20Kingdom)','icon-phone','ngCsv','src/js/modules/main/apps/callysquare/views/projects/edit/edit/edit.html/edit.html','CreateOrEditscreenRecordingDialogController','api/integrations/desk/configurations/:id','Hangup_Cause','European\x20Catalan\x20Female','api/integrations/salesforce/configurations/:id/clone','g726','delete\x20ChatWebsites','ERROR\x20OPEN\x20CONTACT','countcongestionretry','addCustomField','SYSTEM:GET_VOICEMAILS','api.disposition.save','api.jscripty.account','ZendeskAccount\x20updated!','SystemController\x20as\x20vm','Voicemail\x20properly\x20deleted!','isoWeek','deleteSelectedQueueCampaigns','voiceQueuesLog','msNavigationNode','ChatQueues','OutboundRouteController\x20as\x20vm','src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/autoreply/dialog.html/dialog.html','id,name,parent','\x27report_chat_queue\x27','createOrEditvoicePrefix','UpdateLicenseDialogController','createdAt,updatedAt,id,callerid,duration,audio,stamp,msg_id','Dial\x20Report','chatProactiveAction\x20#','\x20succeded!','delete\x20screenRecordings','date','src/js/modules/main/apps/callysquare/views/odbcs/create/dialog.html/dialog.html','^mdSidenav','motionConfig','intSalesforceField','uselessFields','Delete\x20DeskConfiguration','isMyAccount','showOfflineMessageChatWebsiteOfflineMessage','createdAt,updatedAt,id,name,type,selector,timeout','humanizeDoc','Indian/Maldives','api/cm/contacts/create_many','reload','../../../../../../../assets/images/avatars/customer.png','VOICE.EDIT_','rpcMailQueuesWaitingInteractions','delete\x20openchannelCannedAnswer','delete\x20contact','Amy\x20(English,\x20British,\x20Female)','animateHeightClass','deselectScreenRecordings','api/analytics/default_reports/:id','MAIL.MAIL','MailQueueController\x20as\x20vm','America/Argentina/Catamarca','wav49','exportSelectedIvrCampaignHopperHistories','Schedule\x20properly\x20deleted!','fromKey','MsShortcutsController\x20as\x20MsShortcuts','\x27zoho.eu\x27','saveCustomDashboard','put','CONTACTMANAGER.NEW_HOPPER','generate','selectReport','America/Denver','api/integrations/sugarcrm/configurations/describe','HeaderController\x20as\x20vm','contact:import:','Basque\x20(Spain)','EditOpenchannelAccountApp','$ariaProvider','legend','src/js/modules/main/apps/settings/views/cloudProviders/cloudProviders.html/cloudProviders.html','deselectAgents','api.mailQueue.delete','DASHBOARDS.TODAY','amber-fg','\x27none\x27','Invalid\x20tag\x20name.','Delete\x20FreshdeskConfiguration','arrayringinuse','vtigerAccounts','Audio_Files','&token=','Gecko','QueueCallsMotionDialerRealtimeController\x20as\x20vm','addNewscreenRecording','TOOLBAR.NORWEGIAN','Loading...','onVoiceQueue','GlobalCustomField','Asia/Dili','selectedUsers','motion.layoutStyle','MAIL.NEW_MAILACCOUNT','api/version/fetch','Arabic\x20(Saudi\x20Arabia)','AboutController\x20as\x20vm','Intervals','MohSound\x20properly\x20created','saveCustomization','gosub','UserId','\x20has\x20been\x20run!','allReportsSelected','$setPristine','ChatWebsiteId','teal','Delete\x20VoiceRecording','DASHBOARDS.LAST_MONTH','HopperHistory\x20deleted!','smsAccount','dynamics365Account','targetScope','Astrid','selectAllInternalRoutes','select','getUserDeviceMediaExt','getSmsQueuesWaitingInteractions','addNewChatWebsite','opera','selectAllMailSubstatuses','getItem','src/js/modules/core/directives/ms-phonebar/referAttended/dialog.html/dialog.html','EditWhatsappAccountAppintervalDialogController','grey','/assets/images/theme-options/content-with-toolbar.jpg','port','chatWebsites','EditChatWebsiteAppcloseDialogController','createOrEditSugarcrmAccount','app.voice.realtime.abandonedcalls','exportSelectedVariables','Chrome','servicenow','agentadddialog','context.name','delete\x20inboundroute','sessionConf','QueueCampaign\x20properly\x20deleted!','deleteSelectedOutboundRouteApps','full-height','InteractionDialogController','api/campaigns/:id/blacklists','800','Cristiano\x20(Portuguese,\x20Male)','firstName,lastName,mobile','treeStructure','api/chat/interactions/:id','msDatepickerFix','delete\x20zohoConfiguration','src/js/modules/main/apps/chat/views/realtime/realtime.html/realtime.html','ServicenowConfiguration\x20deleted!','eurfinnishfemale','data:text/json;charset=utf-8,','api.cmCustomField.update','whatsappInteractionTags:save','deselectCannedAnswers','run','api/integrations/zendesk/accounts/:id','Task','STAFF.QUEUEADD_AGENT_','hide','ChatQueue','string','apps.fax','INTEGRATIONS.ZOHOACCOUNTS','/api/jira','isPartialPause','IS\x20NOT\x20NULL','deleteSelectedCustomDashboards','onVoiceExtensionUpdate','api/openchannel/messages/:id/accept','CreateOrEditVoiceRecordingDialogController','unknown-version','Marlene','DASHBOARDS.OVERWRITE','createOrEditDisposition','ngCookies','onNewRTCSession\x20->\x20vm_pb.sessions','id,type,calleridnum,calleridname,queue,queuecallerabandonAt,queuecallerexitAt,queuecallerexitreason,assigned,lastAssignedTo,updatedAt,disposition,secondDisposition,thirdDisposition','hy-AM','deselectTeams','ZendeskAccount\x20properly\x20deleted!','Unable\x20to\x20play\x20autoAnswer\x20notification','Delete\x20screenRecording','intDynamics365Account@get','CHAT.CHATQUEUES','delete\x20whatsappCannedAnswers','api/openchannel/accounts/:id/users','ChatInternalController','No\x20answers\x20available','Please\x20enable\x20browser\x20notifications!','Pacific/Funafuti','icon-audiobook','app.callysquare.squareRecordings','KDE','app/core/directives/ms-phonebar/sounds/dialpad/','onUpdateVoiceQueueReport','busy','onSaveSmsInteraction','unreadTotalMessages','CreateOrEditVariableDialogController','delete\x20WhatsappAccounts','app.voice.voiceQueues','HANGUPCAUSE_27','forgotPassword','selectedServicenowAccounts','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','api.setting.delete','VoiceQueueController\x20as\x20vm','chatCannedAnswer\x20#','ServicenowAccount\x20properly\x20tested','APP.NO','getContacts','forward','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20sessions?','api.cannedAnswer.save','pdf','\x20DESC','api.sound.update','English\x20(Ireland)','Tag','app.settings.smtps','ChatWebsite\x20properly\x20created','\x27centered\x27','api/mail/queues/:id/users','src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/dial/dialog.html/dialog.html','ChatQueueController','add','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20group?','CampaignId','api.intDynamics365Account.update','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20contact?','UserDashboardGeneralController\x20as\x20vm','saveQueueCampaign','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20smsCannedAnswer?','US\x20English\x20Male','NavigationController\x20as\x20vm','g723','uniqBy','trunk@get','radio','jscriptyQuestionReport','API:ERROR','\x20has\x20been\x20','src/js/modules/main/apps/integrations/views/vtigerAccounts/create/dialog.html/dialog.html','version','stream','extraHeaders','api.cmList.save','API\x20accept\x20message\x20not\x20found:\x20','createOrEditZendeskConfiguration','Agent\x20Only','saveVariable','toolbarColor','Mizuki\x20(Japanese,\x20Female)','CreateOrEditWhatsappQueueDialogController','$eq','addNewWhatsappQueue','SYSTEM:GET_QUEUES','setting','deleteSquareRecording','api/chat/applications/describe','TriggersController','app.mail.mailQueues','rpc@getFaxQueues','ap-southeast-2','abandoned','deleteWhatsappAccountInteraction','Opera','controller','hopper\x20#','Telephone\x20password\x20properly\x20updated!','Europe/Lisbon','TOOLBAR.PASSWORD_EXPIRE_REMAINING_DAYS','ko-KR','ContactId','deleteVariable','nl-NL','baseUrl','api/chat/interactions/:id/tags','duplicate','app.jscripty.projects.edit','api/chat/reports/transfer/:id/clone','_XCALLY_MIXMONITOR_FORMAT=','src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/voicemail/dialog.html/dialog.html','valueReplacer','Delete\x20DeskAccount','UNIX_TIMESTAMP\x20(','rounded','projectSessions','userSmsQueue:save','delete\x20scheduled\x20call','European\x20Dutch\x20Female','deleteSelectedSmsAccountSmsCannedAnswers','Bihari','us-west-1','US\x20East\x20(Ohio)','updateView','deleteSelectedSalesforceAccounts','voiceMailMessageDownload','getOpenContacts','SmsAccountsController','hostname','getGlobalCustomFields','msDualMultiselect','createOrEditMailAccountMailCannedAnswer','lists','mouseenter\x20mouseleave','/updates','api.user.removeApiKey','flow','getTriggers','src/js/modules/main/apps/integrations/views/salesforceAccounts/edit/item/dialog.html/dialog.html','All\x20resources\x20enabled','STAFF.USERPROFILES','QueuesChatRealtimeController','src','delete_node','QueueCampaignblacklistaddController','api/square/messages/:id/clone','AgentFullname','DASHBOARDS.','saveIvrCampaign','ap-northeast-2','apps.settings.networks','Georgia','The\x20ivrCampaign\x20will\x20be\x20deleted.','\x27limit\x27','\x27report_sms_queue\x27','/assets/images/theme-options/vertical-nav-with-full-toolbar.jpg','getCurrentUser','UserChatDashboardGeneralController\x20as\x20vm','showQuestionsProjectSession','api/version/restart','api.whatsappQueue.save','theme','pai','QueuesSmsRealtimeController\x20as\x20vm','api.intFreshsalesConfiguration.save','onMultiselectInit','pages','src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/queue/dialog.html/dialog.html','selectAllPlugins','CHAT.EDIT_','apps.callysquare','\x27paused\x27','saveMailAccount','typeWrapper','subtract','predictiveIntervalTotalCalls','Pacific/Pago_Pago','WhatsappAccount','rurussianfemale','api/fax/interactions/:id/clone','opts','FreshsalesAccountController','fil-PH','Plugins','Chinese\x20(Cantonese)','CloudProvider','id,name,level,ParentId','src/js/modules/navigation/layouts/horizontal-navigation/navigation.html/navigation.html','Agreement','\x27report_call\x27','api.intZendeskConfiguration.delete','createOrEditReport','deleteSmsAccountApp','newSchedule','/globalCustomFields','hopper','newRTCSession','pm_id','Calibri,\x20Verdana,\x20Geneva,\x20sans-serif','chatQueueReport','America/Metlakatla','contrast1','{{millis}}','api/chat/interactions/:id/custom_update','You\x20can\x27t\x20reply\x20or\x20send\x20an\x20email.\x20Please\x20contact\x20the\x20administrator!','src/js/modules/main/apps/fax/views/faxQueues/create/dialog.html/dialog.html','saveProject','US\x20Spanish\x20Male','smsStatus','selectedChanSpies','sipcalllinkedid','deleteDeskAccount','Report\x20updated!','api.intVtigerConfiguration.update','integrationReport','America/Manaus','webbar:hangup','createOrEditOpenchannelQueue','api/cm/hopper_final/voice/campaign/moveContacts/:id','openchannelAccountApp','countDown','Atlantic/Madeira','saveProjectAs','Hours','$to','previousStep','autoAnswer','SYSTEM:UPDATEVOICERECORDING','src/js/modules/main/apps/integrations/views/freshdeskAccounts/edit/view.html/view.html','MailAccountInteractionsController','delete\x20agent','CONTACTMANAGER.NEW_CUSTOMFIELD','List','expand','Delete\x20condition','CustomField\x20properly\x20created','api.intServicenowAccount.delete','tr-TR','whatsappInteractionDownload','motion.language','FaxQueueteamaddController','onRemoveUserWhatsappQueue','','attachment_path','Australia/Perth','send','smsMessage','api/mail/accounts/:id/out_servers','Delete\x20CustomDashboard','deleteSelectedWhatsappAccountApps','Notification','replyMessage','isExtra','api.cmHopper.delete','delete\x20mailCannedAnswer','newServicenowAccount','eurturkishmale','clearLockedItems','src/js/modules/core/layouts/content-only.html/content-only.html','createdAt,updatedAt,id,name,type,remoteUri,authType,username,password,serverUrl,description','Project\x20properly\x20cloned','api.intZohoConfiguration.update','Tigrinya','SYSTEM:DELETE_HOPPER','millis','\x27inuse\x27','IvrCampaign\x20properly\x20created','/help','api/users/create_many','delete\x20chatQueue','options','api.mailAccount.delete','createOrEditVoiceRecording','getSmsAccountInteractions','hues','mobile','reLayoutDebounce','deleteSelectedTelephones','ng-sortable','chchinesemale','Swedish\x20Female','disposition@get','agentNotify','api/fax/queues/:id','\x20uploaded\x20successfully','Company\x20properly\x20saved!','webrtc::call','User','TOOLBAR.BRAZILIAN','CreateOrEditOpenchannelCannedAnswerDialogController','Delete\x20MohSound','onInternalMessageSave','SETTINGS.EDIT_CUSTOMIZATION','selectedProjects','sectionId','api/integrations/vtiger/configurations/:id/descriptions','APP.SELECTED_AGENTS','upperFirst','exportSelectedIvrCampaignHopperFinals','Jscripty\x20Sessions','No\x20\x27%s\x27\x20process\x20found','msMaterialColorPickerController\x20as\x20vm','OpenchannelRealtimeController\x20as\x20vm','FooterController\x20as\x20vm','trunk_id','storagePath','pendingCondition','putOtherCallsOnHold\x20->\x20session','delete\x20zendeskAccount','VariablesController\x20as\x20vm','ms-nav-folded\x20ms-nav-folded-open','\x27wss\x27','selectedAiTools','selectedSugarcrmAccounts','CreateOrEditTeamDialogController','selectedFreshsalesConfiguration','api/integrations/zoho/configurations/:id','Congestion','Incoming\x20call\x20from:\x20','scheduleForm','exportSelectedVoiceQueues','AgentsOpenchannelRealtimeController','voiceAccounts','MailAccountMailCannedAnswersController','chatWebsiteApp','api.setting.getDate','INTEGRATIONS.NEW_DESKACCOUNT','_new','\x27en-US\x27','src/js/modules/core/directives/ms-advanced-search/ms-advanced-search.html/ms-advanced-search.html','SugarcrmConfiguration\x20properly\x20created','TOOLS.NEW_CANNEDANSWER','thirdDisposition','api/rpc/fax/queues/waitinginteractions','You\x20can\x27t\x20mark\x20as\x20unread','CreateOrEditSalesforceAccountItemDialogController','DeskAccountConfigurationsController','Australia/Currie','createMediaStreamSource','api/whatsapp/reports/queue/:id/clone','intDynamics365Account','api/userProfile/sections/:id/clone','Mads\x20(Danish,\x20Male)','intFreshsalesAccount@get','saveVoicemail','voiceStatusTime','EditInboundAppqueueDialogController','path','SYSTEM:UPDATECMHOPPERHISTORY','src/js/modules/main/apps/tools/views/variables/variables.html/variables.html','api/cm/contacts/describe','id,name,channel,status,description,createdAt,updatedAt','RunReportDialogController','','SYSTEM:GETTAGS','outboundrouteApp','Legend','delete\x20pause','CONTACTS\x20NOT\x20AVAILABLE.\x20REWINDING\x20THE\x20LIST','createdAt,updatedAt,id,name,username,password,remoteUri,tenantId,clientId,clientSecret,serverUrl,description','Random','The\x20report\x20will\x20be\x20deleted.','autoAnswerDelay','ChatWebsitecustomerAvatarController','\x27predictive\x27','/extractedReports','ProjectID','Excel','Queue:\x20','ivrTotalCallsDays','America/Guayaquil','The\x20queueCampaign\x20will\x20be\x20deleted.','FAX:SEND','faxPause','CreateOrEditZendeskConfigurationDialogController','ProjectAnswersController','api/screen/recordings/:id/download','api/voice/queues/:id/lists','Plugin\x20installed!','HANGUPCAUSE_22','getDate','kn-IN','The\x20voicemail\x20will\x20be\x20deleted.','saveMohSound','OpenchannelCannedAnswer\x20deleted!','getVoicePrefixes','APP.ALL_AGENTS','api/openchannel/messages/describe','RR\x20Memory','api/mail/queues/describe','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20message?','call\x20with\x20session\x20Id\x20','onChangeVisibility','api/userProfiles/:id/sections','voiceMail','INTEGRATIONS.DESKACCOUNTS','api/integrations/sugarcrm/accounts/:id/clone','loadingProgress','$[${XCALLY-MOTION-ANSWER}=0]?Answer','mailQueue','European\x20French\x20Female','exportSelectedProjectSessions','api.chatProactiveAction.delete','$startsWith','flip','deselectFaxAccounts','msCard','cannedAnswers','Safari','allDispositions','denied','intervalIntervals','Korean\x20Female','\x27intelepeer\x27','content','api/voice/mohs/:id/sounds','saveOpenchannelQueue','DASHBOARDS.CHAT','result','outboundRejectCallsDay','Antarctica/Rothera','DASHBOARDS.YESTERDAY','hasIdAnswers','UserProfilecloneController','findBy','CloudProvider\x20properly\x20deleted!','icon-whatsapp','\x27EU\x27','deleteSelectedSquareRecordings','clearAll','WhatsappQueueController','app.integrations.zendeskAccounts.edit','WhatsappAccountagentaddController','SYSTEM:GET_USERPROFILES','mediaConstraints','microphoneMute','tail','api/sms/messages/:id','Last\x20Week','EditSmsAccountAppintervalDialogController','directive','TOOLS.NOTIFICATIONS.TRIGGER_CREATED_SUCCESS_TITLE','The\x20schedule\x20will\x20be\x20deleted.','saveAgent','deleteFaxAccountApp','getOpenchannelAccounts','canSelect','html','delete\x20Group','\x27sw\x27','integrations/dynamics365/configurations/:id/descriptions','600','America/Indiana/Vincennes','msMasonry','delete\x20MusicOnHolds','country','app.video.screenRecordings','ChatWebsiteOfflineMessagesController','Pacific/Guadalcanal','America/Puerto_Rico','LoadingIndicatorService','src/js/modules/main/apps/plugins/views/plugin/plugin.html/plugin.html','Value','\x20is\x20not\x20valid','trigger:contactmanager','TOOLS.NOTIFICATIONS.CONDITION_DELETED_SUCCESS_TITLE','fromNow','No\x20images','mail-interaction','ImportContactsDialogController','Mailbox@Context','api/cm/hopper_black/describe','converted_format','account','\x27whatsapp_queues\x27','Africa/Lagos','Scots\x20Gaelic','arraycallcounter','Trebuchet\x20MS','daysOfMonth','America/Creston','Fwd:','contrast3','VoiceQueueController','open','Message\x20properly\x20accepted!','selectedTemplates','EditChatWebsiteAppgotoifDialogController','stepNumber','create','Asia/Tbilisi','api/fax/queues/:id/members','selectAllSmsAccounts','saveGeneral','selectedOperator','scrollEl','saveDeskConfiguration','list','WHATSAPP.EDIT_','api/mail/accounts/:id/in_servers','&?msTimelineLoadMore','delete\x20FreshsalesAccounts','smsQueue:update','phoneBarExpires','blue-A700','api/voice/queues/reports/:id/clone','session\x20#','msg','AgentGeneralBotController','src/js/modules/main/apps/jscripty/views/projects/edit/sessions/dialog.html/dialog.html','groupId','ExtractedReport\x20properly\x20deleted!','lt-LT','QueuesWhatsappRealtimeController\x20as\x20vm','src/js/modules/main/apps/openchannel/views/openchannelQueues/openchannelQueues.html/openchannelQueues.html','intSugarcrmAccount@get','Europe/Monaco','Salli\x20(English,\x20US,\x20Female)','getOutboundRouteApps','mouseenter\x20touchstart','SYSTEM:GETwhatsappAccount','lv-LV','downloadFaxInteraction','ondevicechange','America/New_York','jabraSession','api/integrations/zendesk/configurations/:id/descriptions','voice_queue:save','delete\x20subject','getFaxAccountInteractions','url','INTEGRATIONS.FRESHDESKACCOUNTS','api.voiceExtension.update','isInProgress','src/js/modules/main/apps/whatsapp/views/realtime/queues/view.html/view.html','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.','Voicemail','render','src/js/modules/main/apps/tools/views/customDashboards/create/dialog.html/dialog.html','saveHopper','Set','\x27hi\x27','/realtime','EditSmsAccountAppamazonlexDialogController','CreateOrEditPluginDialogController','SugarcrmAccountConfigurationsController','api/campaigns/:id/lists','light','src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/system/dialog.html/dialog.html','CreateOrEditFreshsalesAccountDialogController','saveSugarcrmAccount','voicemails','runsentimentruntranscribesentiment','api.cmCustomField.save','outbound','deleteSelectedChanSpies','SYSTEM:DELETEintFreshdeskAccount','md-toolbar','triggerAnyConditions','contactFields','userProfile','getTelephones','orientation','MxGraphDialogController','Chat','MailAccount\x20properly\x20created','deleteChatWebsite','isValidRange','deselectMailQueues','Edit\x20Report\x20Field','WhatsappCannedAnswer\x20properly\x20created','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20offlineMessage?','deleteChatWebsiteInteraction','MsStepperController','selectedReportFields','Pacific/Auckland','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20fields?','salesforceAccount','','Context\x20properly\x20deleted!','Antarctica/Palmer','api.variable.save','api.screenRecording.save','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20mailAccounts?','addNewvoicePrefix','arraymode','smsInteraction:update','odbcs','Template\x20properly\x20created','api.cmHopper.update','assign','canEdit','getVoicemails','api/integrations/servicenow/accounts/:id','Agent\x20password\x20properly\x20updated!','api/rpc/sms/queues/waitinginteractions','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20zohoAccounts?','getDaysOfWeek','images','TelephonesController','deselectTags','Pacific/Wallis','api.cloudProvider.save','Queues\x20association\x20has\x20been\x20updated!','stopped','America/Goose_Bay','api/jscripty/projects/:id/sessions','sessionId','addApplications','text','api.intFreshdeskConfiguration.save','loadLastMessage','deleteSchedule','Delete\x20Agent','apps.mail.mailSubtatuses','WhatsappAccountWhatsappCannedAnswersController','api/integrations/freshsales/configurations/:id/fields','$parent','deleteSelectedSmsAccounts','MsWidgetEngineMultibarChartController','deleteChatProactiveAction','realtime','zh-CN','loading...','Asia/Almaty','deleteQueueCampaign','createOrEditDescription','MAIL.REALTIME','VtigerAccount\x20updated!','whatsappInteraction:update','arraytable','Asia/Dhaka','TOTAL','app.motiondialer.ivrCampaigns.edit','openchannelTransferReport','Turn','cancelUpdateCondition','deselectDynamics365Accounts','time','ChatQueuesController\x20as\x20vm','absolute','saveDialog','ms-target','MergeContactDialogController','Metric\x20properly\x20created','api/chat/interactions/:id/attachment_download','Low','api/jscripty/questions/reports/:id/clone','ChatGroupId','currentconferenceSessions','api.cmList.get','The\x20user\x20will\x20be\x20deleted.','api.analyticFieldReport.save','jpjapanesemale','EditMailAccountAppgotoifDialogController','Pacific/Apia','src/js/modules/core/directives/ms-quick-filter/ms-quick-filter.html/ms-quick-filter.html','api/pauses/:id/clone','api/integrations/servicenow/accounts/:id/configurations','api/dispositions/:id/clone','api.network.save','outboundAbandonRate','orange-bg','English\x20(US)','api.intSalesforceConfiguration.update','angularMaterialFormBuilder','.ms-stepper-step-content','api/users/:id','pauseType','Voicemail\x20properly\x20saved!','deleteSelectedIvrCampaignHopperBlacks','exportSelectedChatWebsites','deselectSalesforceAccounts','icon-fish','SMS.SMSACCOUNTS','saveChatQueue','apps.chat.realtime','MailMessageId','closeFolded','TOOLS.NOTIFICATIONS.TRIGGERS_DELETE_TITLE','whatsappInteraction@get','api/integrations/zoho/configurations/:id/fields','saveVoiceQueue','VOICE.RUNTRANSCRIBESENTIMENT_VOICERECORDING','createTag','deleteItem','newUserProfile','OPENCHANNEL.EDIT_OPENCHANNELCANNEDANSWER','Galician','selectedMusicOnHolds','\x27pl\x27','EditInternalAppintervalDialogController','VtigerAccount\x20properly\x20tested','servicenowAccount','src/js/modules/main/apps/voice/views/voicemails/voicemails.html/voicemails.html','src/js/modules/main/apps/jscripty/views/projects/edit/view.html/view.html','MAILACCOUNT:SEND','outgoing','INTEGRATIONS.EDIT_ZENDESKACCOUNT','WhatsappCannedAnswer\x20properly\x20deleted!','api/chat/interactions/:id/abandon','setActiveItem','contents','createOrEditDynamics365Account','Europe/Tallinn','editedat','trunk','Field\x20has\x20been\x20deleted!','telephone','Motion\x20WebRTC\x20Bar\x200.2.0','setSinkId','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','\x27cm_hopper_final\x27','startOf','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','src/js/modules/main/apps/callysquare/views/projects/create/dialog.html/dialog.html','api/users/:id/sms/interactions','Liv\x20(Norwegian,\x20Female)','deleteVoiceRecording','app.mail','exportSelectedMailAccountMailCannedAnswers','delete\x20company','saveItem','textarea','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','intServicenowAccount','o:\x20Only\x20listen\x20to\x20audio\x20coming\x20from\x20this\x20channel.','limitObjectFromTo','sip_id','deleteSelectedSmsAccountApps','mediaDevices','src/js/modules/main/apps/voice/views/internalroutes/create/dialog.html/dialog.html','active','api/members/reports/:id/clone','exportSelectedProjects','setConditionStatus','msNav::pushToLockedList','hangupHook\x20->\x20payload','markAsUnread','api/users/:id/square_projects','getMonth','src/js/modules/main/apps/openchannel/views/openchannelQueues/edit/agentadd/agentadd.html/agentadd.html','newMail','userForm','ZendeskAccountConfigurationsController','$observe','api/rpc/agents/:id/capacity','apps.fax.realtime','AgentchangepasswordController','European\x20Turkish\x20Female','exportSelectedVoicemails','Dynamics365Account','app.tools.pauses','getChatWebsites','InboundRoute','VoiceRecording\x20properly\x20deleted!','MsThemeOptionsController\x20as\x20vm','calendar','getPreview','invalid','api/analytics/extracted_reports/describe','getFinals','src/js/modules/core/directives/ms-phonebar/ms-phonebar.html/ms-phonebar.html','TOOLS.NEW_TAG','EditMailAccountAppnoopDialogController','exportDate','deselectZohoAccounts','apps.sms.smsQueues','api/users/:id/contacts','down','getObject','ms-nav','accountProperty','Kimberly\x20(English,\x20US,\x20Female)','DASHBOARDS.APRIL','success','api/voice/agents/reports/:id/clone','icon-dots-horizontal','src/js/modules/main/apps/staff/views/userProfiles/edit/view.html/view.html','selectedVoiceQueues','Restored','CreateOrEditTriggerDialogController','user_has_openchannel_interactions:remove','timeRangeFrom','api/fax/queues/:id/teams','app.motiondialer.queueCampaigns','AgentHomeFaxController','OpenchannelAccountController','digits','pcConfig','teams','ms-timeline','expanding','motionPalettes','paginatedInteractions','src/js/modules/main/apps/fax/views/faxQueues/edit/teamadd/teamadd.html/teamadd.html','Fax\x20Queues','Lithuanian\x20(Lithuania)','TOOLBAR.KOREAN','user:called','onhold','Penelope\x20(Spanish,\x20US,\x20Female)','intFreshdeskField','getConfigurations','Jscripty\x20Questions','ChineseSimplified','TOOLBAR.LATVIAN','Conchita','getUsers','hasChildrenPermissions','onaddstream','debounce','Delete\x20Team','INTEGRATIONS.NEW_','src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/agentadd/agentadd.html/agentadd.html','sortableOptions','deleteMailAccount','createdAt,updatedAt,id,name,prefix,options,auth,password,record,recordingFormat,description','
    ','newIvrCampaign','app.settings.system','name.name','ExtractedReport\x20properly\x20created','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20proactive?','Greek','\x20has\x20been\x20done!','saveInterval','TrunksFaxRealtimeController\x20as\x20vm','src/js/modules/main/apps/marketplace/views/plugins/upload/dialog.html/dialog.html','cancel','isObjectLike','src/js/modules/main/apps/chat/views/chatQueues/chatQueues.html/chatQueues.html','selectedItems','substr','endRangeValue','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20whatsappAccounts?','iCab','userProfileResource','\x27friend\x27','SYSTEM:GET_MODULE_PERMISSIONS','Asia/Kathmandu','squareRecording','setItem','blacklist','addLists','app.motiondialer.realtime.ivr_campaigns','intDeskAccount','getRegisteredThemes','folded','readAsDataURL','downloadWhatsappInteraction','api/integrations/zoho/accounts/:id/clone','Bengali\x20(India)','addNewAction','MailAccountagentaddController','mailInteraction','addNewMailAccount','\x27squared\x27','#ms-shortcut-add-menu','deleteOpenchannelQueue','deselectTrunks','htmlToPlaintext','Norwegian\x20(Nynorsk)','EditInboundApphangupDialogController','initialValue','#pageTitle','\x27ringall\x27','onSaveQueue','api/integrations/freshdesk/accounts/:id/fields','en-TZ','faxAccountApp','openchannelAccountApps','deselect_all','api.campaign.update','\x27fax_accounts\x27','Asia/Magadan','deleteReport','FreshdeskAccountController','getSmsAccountSmsCannedAnswers','api/chat/messages/describe','Prefix','src/js/modules/forgot/forgot.html/forgot.html','-01:00','api/mail/queues/:id','The\x20dynamics365Configuration\x20will\x20be\x20deleted.','selectedFreshdeskAccounts','delete\x20cannedAnswer','jabraClicked','Asia\x20Pacific\x20(Sydney)','Sequence','recording','createdAt,updatedAt,id,name,description,crudPermissions','DeskAccount\x20properly\x20tested','g722','api.template.update','telegram','Odbc\x20properly\x20created','boxed','originatePreview','associatedReports','savedAsDraft','googleTtsLanguage','ServicenowConfiguration\x20properly\x20deleted!','rpcFaxQueuesWaitingInteractions','xx-hacker','OdbcsController','/dispositions','deleteSelectedContexts','src/js/modules/main/apps/voice/views/realtime/trunks/view.html/view.html','angucomplete-alt:changeInput','The\x20freshsalesAccount\x20will\x20be\x20deleted.','newOdbc','snakecase','api.intZohoAccount.delete','\x20MMM','JSCRIPTY.JSCRIPTY','selectedUserProfiles','api/integrations/vtiger/accounts/describe','\x27France\x20(France)','Bearer\x20','saveSection','uniq','motion.user:','SIP/','src/js/modules/main/apps/motiondialer/views/ivrCampaigns/edit/listadd/listadd.html/listadd.html','factory','Raveena\x20(English,\x20Indian,\x20Female)','fileSuccess','Project\x20properly\x20saved!','DASHBOARDS.GENERAL','tab-container','VOICE.NEW_INTERNALROUTE','UpdatesController\x20as\x20vm','ms-color-picker-button','SmsAccountController','api\x20preview','src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/interval/dialog.html/dialog.html','prefixes','SUM','CALLYSQUARE.SQUARERECORDINGS','api/openchannel/applications/describe','0.54','api/settings/:id','saveAllCondition','createdAt,updatedAt,id,name,description,dialPrefix','eurfrenchfemale','onTransferCallback\x20->\x20session,\x20textContent,\x20position,\x20delay','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20report?','Report\x20properly\x20copied!','vm_rf.query.filter','getAbandonedCalls','others','EditFaxAccountApptagDialogController','RESETPASSWORD.PASSWORD_RESET','src/js/modules/main/apps/whatsapp/views/whatsappAccounts/create/dialog.html/dialog.html','green-300-fg\x20icon-checkbox-marked-circle','saveCompany','Asia/Karachi','Latvian','TrunksVoiceRealtimeController\x20as\x20vm','saveMailQueue','Geraint\x20(English,\x20Welsh,\x20Male)','\x27DESC\x27','Dynamics365Account\x20properly\x20tested','\x27alaw\x27','arraymessagesAlignment','SYSTEM:GETCONFIGURATION','differenceBy','createdAt,updatedAt,id,save_name,converted_format,audio','TOOLS.CLONE_CUSTOMDASHBOARD','Offline','ja-JP','searchTextChange','am-ET','app.fax.realtime','DASHBOARDS.NONE','enable','DASHBOARDS.ME','app.integrations.vtigerAccounts.edit','SYSTEM:GETwhatsappQueue','api/square/details/reports/describe','Internal\x20Call','userProfileSection@get','tags','TemplatesController','api/chat/reports/transfer/describe','configurations','metrics','module','SSO_LOGIN','Spanish\x20(Puerto\x20Rico)','addNewTelephone','src/js/modules/main/apps/voice/views/internalroutes/edit/apps/dial/dialog.html/dialog.html','addNewNetwork','\x27fr-FR\x27','\x27cm_contacts\x27','api/sms/queues/:id','toggleOptionsSidenav','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20offlineMessages?','createElement','streets','JSCRIPTY.SESSION_RESULTS','deleteDisposition','delete\x20schedule','CreateOrEditZendeskAccountDialogController','api.intServicenowConfiguration.delete','bcc','resetlistdialog','onInit','IvrCampaignController','api/integrations/vtiger/configurations/:id/subjects','Europe/Riga','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20applications?','saveInternalRouteApp','Telephone\x20properly\x20deleted!','getAgents','America/Panama','getAnswers','api.intZendeskAccount.delete','getJscriptySessions','api/chat/proactive_actions/:id/clone','SmsAccountagentaddController','Zulu\x20(South\x20Africa)','addNewTeam','onSaveSmsQueueChannel','api/whatsapp/applications/:id/clone','getOpenchannelAccountOpenchannelCannedAnswers','countdown','Delete\x20ZendeskConfiguration','Right\x20Join','delete\x20OpenchannelAccounts','onChangeReportType','whatsappMessage:update','selectedReports','deleteSelectedPlugins','Chat\x20Messages','api.voiceExtension.delete','America/Argentina/Rio_Gallegos','EditInternalAppdialDialogController','saveFreshdeskAccount','API:GET_COMPANY_SECTION','OutboundRouteController','SugarcrmAccountsController\x20as\x20vm','vtigerConfiguration','webrtc::logout','isHiddenField','SYSTEM:GET_TREEREPORTS','WhatsappAccountInteractionsController','api/integrations/zoho/fields/:id','api.cmList.update','appdata.name','vm_home.sidebar','Phone','ContactController\x20as\x20vm','api/square/messages/:id','isInConference','getSmsAccountApps','mouseOver','showResetButton','fullname','primaryPalette','$get','VOICE.CHANSPIES','api/sms/accounts/:id/status','src/js/modules/main/apps/staff/views/telephones/edit/changepassword/changepassword.html/changepassword.html','api/integrations/desk/fields/:id/clone','\x27timeout\x27','ms-navigation-horizontal-mobile-menu-active','SYSTEM:DELETEwhatsappQueue','api/integrations/reports/:id','Hebrew','Begin\x20forwarded\x20message:

    From:\x20{{\x20from\x20}}
    Subject:\x20{{\x20subject\x20}}
    Date:\x20{{\x20date\x20}},\x20at\x20{{\x20time\x20}}
    To:\x20{{\x20to\x20}}','chatInternalMessage:update','selectedSmsQueues','src/js/modules/main/apps/staff/views/agents/create/dialog.html/dialog.html','editInternalRouteApp','appType','$ne','omniChannels','SYSTEM:DESCRIBE','da-DK','Pacific/Rarotonga','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20chatProactiveAction?','getVoiceQueuesChannelRedirect','/accounts','Javanese','dispositionsValues','integrations','getInboundRouteApps','Korean','SmsCannedAnswer\x20properly\x20deleted!','whatsappAccountWhatsappCannedAnswers','Delete\x20ZendeskAccount','SYSTEM:DELETEcloudProvider','count','respectItemOrder','foreignKey','labels','api/mail/reports/transfer/describe','Ines','Friend','smsAccounts','Courier\x20New,Courier,monospace','hasBlackLists','api/fax/accounts/:id/canned_answers','MailSubstatusesController\x20as\x20vm','UpdatesController','newGlobalCustomField','src/js/modules/main/apps/settings/views/system/system.html/system.html','api/plugins/','IvrCampaignsController\x20as\x20vm','chatQueue@get','Enrique\x20(Spanish,\x20Castilian,\x20Male)'];(function(_0x38beb5,_0x24de2c){const _0xaf0ca0=function(_0x4302ff){while(--_0x4302ff){_0x38beb5['push'](_0x38beb5['shift']());}};_0xaf0ca0(++_0x24de2c);}(a0_0x24de,0xb2));const a0_0xaf0c=function(_0x38beb5,_0x24de2c){_0x38beb5=_0x38beb5-0x0;let _0xaf0ca0=a0_0x24de[_0x38beb5];return _0xaf0ca0;};const _0x501cab=a0_0xaf0c;(self[_0x501cab('0xeb3')]=self[_0x501cab('0xeb3')]||[])['push']([[0x8f],{0x2069:(_0x4302ff,_0x26e379,_0x351988)=>{const _0x21d0f5=_0x501cab;'use strict';var _0x21dfe1=_0x351988(0x304);_0x50c094[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x10b0')];function _0x50c094(_0x2fc095){_0x2fc095['interceptors']['push']('authInterceptor');}const _0x4ce0af=_0x50c094;_0x3195cb['$inject']=['$transitions'];function _0x3195cb(_0x50f14e){const _0x12a5cf=_0x21d0f5,_0x33bbf4={'to':function(_0x11af8f){const _0x28eef0=a0_0xaf0c;return _0x11af8f[_0x28eef0('0x3ce')]===!![];}},_0x569f7a={'to':function(_0x334643){const _0x325237=a0_0xaf0c;return _0x334643[_0x325237('0x1909')]!=='app.login';}},_0x2f95b3={'to':function(_0x18c019){return _0x18c019['permissionId'];}},_0x11d8c0={'to':function(_0x4fee7d){const _0x1160d7=a0_0xaf0c;return _0x4fee7d[_0x1160d7('0x1592')]['name']===_0x1160d7('0xe28');}},_0x59a8a3=function(_0x589cbd){const _0x377df7=a0_0xaf0c,_0x1c74a5=_0x589cbd[_0x377df7('0x160')]()[_0x377df7('0xbaa')](_0x377df7('0x1150')),_0x178438=_0x589cbd[_0x377df7('0x202')]['stateService'];return!_0x1c74a5[_0x377df7('0xbc8')]()?_0x178438['target']('app.login',undefined,{'reload':!![]}):_0x1c74a5[_0x377df7('0x3cc')]()[_0x377df7('0x151d')](function(){const _0x17f565=_0x377df7;return _0x178438[_0x17f565('0xc7a')](_0x17f565('0x97e'),undefined,{'reload':!![]});});},_0xbea0b9=function(_0x5952db){const _0x1d688c=a0_0xaf0c,_0x55b251=_0x5952db['injector']()[_0x1d688c('0xbaa')](_0x1d688c('0x1150')),_0x356bd4=_0x5952db[_0x1d688c('0x202')]['stateService'],_0x4b0b5b=_0x5952db[_0x1d688c('0x246c')]();if(_0x55b251[_0x1d688c('0x4ee')](_0x1d688c('0x18c4'))&&_0x4b0b5b[_0x1d688c('0x1909')]!=_0x1d688c('0xe28'))return _0x356bd4[_0x1d688c('0xc7a')](_0x1d688c('0xe28'),{'redirect':![]},{'reload':!![]});},_0x1323f7=function(_0x2a8a17){const _0x8070a0=a0_0xaf0c,_0x53d178=_0x2a8a17[_0x8070a0('0x160')]()['get'](_0x8070a0('0x1150')),_0x10b820=_0x2a8a17['router'][_0x8070a0('0x19c4')],_0xfb66f3=_0x2a8a17[_0x8070a0('0x246c')]();if(_0x53d178[_0x8070a0('0x4ee')](_0x8070a0('0x21d9'))){if(!_0x53d178[_0x8070a0('0x1709')](_0xfb66f3['permissionId']))return _0x10b820[_0x8070a0('0xc7a')](_0x8070a0('0xe28'),{'redirect':![]},{'reload':!![]});else{const _0x58b374=_0x2a8a17[_0x8070a0('0x1ab3')]()['id']?Number(_0x2a8a17[_0x8070a0('0x1ab3')]()['id']):undefined;if(_0x58b374)return _0x53d178['hasResourcePermission'](_0xfb66f3[_0x8070a0('0x642')],_0x58b374)[_0x8070a0('0x151d')](function(){const _0xe35f85=_0x8070a0;return _0x10b820[_0xe35f85('0xc7a')](_0xfb66f3[_0xe35f85('0x1592')][_0xe35f85('0x1909')],{'redirect':![]},{'reload':!![]});});}}},_0x22421d=function(_0x18c21f){const _0x571246=a0_0xaf0c,_0x3bb3bb=_0x18c21f[_0x571246('0x160')]()['get'](_0x571246('0x1150')),_0x2d2efc=_0x18c21f[_0x571246('0x202')][_0x571246('0x19c4')];if(_0x3bb3bb['hasRole'](_0x571246('0x21d9'))&&!_0x3bb3bb[_0x571246('0x1709')](0x64))return _0x2d2efc['target'](_0x571246('0xe28'),{'redirect':![]},{'reload':!![]});};_0x50f14e[_0x12a5cf('0x1aeb')](_0x33bbf4,_0x59a8a3),_0x50f14e[_0x12a5cf('0x163a')](_0x569f7a,_0xbea0b9),_0x50f14e[_0x12a5cf('0x1cc4')](_0x2f95b3,_0x1323f7),_0x50f14e[_0x12a5cf('0x1cc4')](_0x11d8c0,_0x22421d);}const _0x245442=_0x3195cb;var _0x148b57=_0x351988(0x1956),_0x36f548=_0x351988['n'](_0x148b57),_0x16781b=_0x351988(0x17d),_0x57d4d1=_0x351988['n'](_0x16781b);const _0x5cfe56=_0x351988['p']+_0x21d0f5('0x968');_0x57f840[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1ca2'),'$cookies','$q',_0x21d0f5('0x12a5'),_0x21d0f5('0x2143'),'$document'];function _0x57f840(_0x540511,_0x16a112,_0x190bd7,_0xd5bbde,_0x1dcad4,_0x157419){let _0x539122;const _0x422dfa={'getToken':_0x4b79a6,'getCurrentUser':_0x43baef,'getPermissions':_0xdb50ce,'hasChildrenPermissions':_0x448c54,'hasModulePermissions':_0x5b3d84,'hasModulesPermissions':_0x5abadb,'hasRole':_0x11e314,'hasPermission':_0x4c811a,'hasResourcePermission':_0x36eb37,'hasSectionPermissions':_0x1ddb94,'hasSectionsPermissions':_0x4139cf,'isAgent':_0x4c6977,'isAdmin':_0x32c4de,'isLoggedIn':_0x341fe9,'isTelephone':_0x1d2d00,'isUser':_0x56870b,'login':_0x1b3855,'logout':_0x3b4912,'parseCrudPermissions':_0x647862,'queueLogin':_0x5604e8,'reloadPermissions':_0x22eb0a,'removeCookies':_0x180d00,'retrieveUser':_0x480ce1,'setCurrentUser':_0x40af0b,'getAuthenticationType':_0x5e218f,'loginSSO':_0x1cc3a4};return _0x422dfa;function _0x4b79a6(){const _0x55f4b9=a0_0xaf0c;return _0x16a112[_0x55f4b9('0xbaa')](_0x55f4b9('0xc2b'));}function _0x43baef(){return _0x539122;}function _0x40af0b(_0xe62816){const _0x406568=a0_0xaf0c;_0x539122=_0x36f548()[_0x406568('0x47b')](_0x539122,_0xe62816);}function _0x5604e8(_0x284619){return _0x190bd7(function(_0x1a9343,_0x18c9c8){const _0x10500b=a0_0xaf0c;_0xd5bbde[_0x10500b('0x21d9')][_0x10500b('0x4c4')]({'id':_0x539122['id'],'device':_0x10500b('0x424'),'intrf':_0x284619})['$promise']['then'](function(_0x3d9865){_0x1a9343(_0x3d9865);})[_0x10500b('0x151d')](function(_0x47312b){_0x18c9c8(_0x47312b);});});}function _0x382b5f(){return _0x190bd7(function(_0x10d1a0,_0x5b70d6){const _0x2fa757=a0_0xaf0c;_0xd5bbde[_0x2fa757('0x21d9')][_0x2fa757('0x18f7')]({'id':_0x539122['id'],'device':_0x2fa757('0x424')})['$promise'][_0x2fa757('0x11bf')](function(){_0x10d1a0();})[_0x2fa757('0x151d')](function(_0x5a48f7){_0x5b70d6(_0x5a48f7);});});}function _0x6f3f0c(_0x297ef0){return _0x190bd7(function(_0x13827f,_0x5b18c7){const _0x34c419=a0_0xaf0c,_0x340c20={'online':_0x297ef0,'lastLoginAt':_0x297ef0?_0x57d4d1()()[_0x34c419('0x1826')](_0x34c419('0xfae')):undefined};_0xd5bbde[_0x34c419('0x21d9')]['update']({'id':_0x539122['id']},_0x340c20)[_0x34c419('0x1549')][_0x34c419('0x11bf')](function(_0x17dc2a){_0x13827f(_0x17dc2a);})[_0x34c419('0x151d')](function(_0x135cbf){_0x5b18c7(_0x135cbf);});});}function _0x1b3855(_0x3ee4a1){return _0x190bd7(function(_0xd1aed0,_0x5a67a7){const _0x45266f=a0_0xaf0c;_0xd5bbde[_0x45266f('0xe20')]['local'](_0x3ee4a1)[_0x45266f('0x1549')]['then'](function(_0x3a850a){const _0x3b27ba=_0x45266f;return _0x16a112[_0x3b27ba('0x2318')]('motion.token',_0x3a850a[_0x3b27ba('0xa6e')]),_0xd5bbde['user'][_0x3b27ba('0xbaa')]({'id':_0x3a850a['id']})[_0x3b27ba('0x1549')];})['then'](function(_0x204eaa){const _0x55e232=_0x45266f;_0x539122=_0x204eaa,_0x539122[_0x55e232('0x3bd')]=_0x57d4d1()()['format'](_0x55e232('0xfae')),_0x18b2d4('LOCAL_LOGIN');})[_0x45266f('0x11bf')](function(){const _0x1ab003=_0x45266f;if(_0x4c6977()&&_0x539122[_0x1ab003('0x1c14')]===0x1&&_0x539122[_0x1ab003('0x1bfc')])return _0x540511[_0x1ab003('0xb9')]({'controller':'HotDeskDialogController','controllerAs':'vm','templateUrl':_0x5cfe56,'parent':angular['element'](_0x157419[_0x1ab003('0x1d2')]),'clickOutsideToClose':![],'resolve':{'telephones':['apiResolver',function(_0x344630){const _0x33cf19=_0x1ab003;return _0x344630[_0x33cf19('0xa28')](_0x33cf19('0x2166'),{'fields':'id,fullname,name,internal','role':_0x33cf19('0x2650'),'nolimit':!![]});}]}});})['then'](function(_0x596ce4){const _0x109429=_0x45266f;if(_0x4c6977()&&_0x539122[_0x109429('0x1c14')]!==0x0)return _0x5604e8(_0x596ce4);else{if(_0x32c4de()||_0x56870b())return _0x6f3f0c(!![]);else return;}})[_0x45266f('0x11bf')](function(_0x557c7e){const _0x36d6e8=_0x45266f;_0x539122=_0x36f548()[_0x36d6e8('0x25da')](_0x539122,_0x557c7e),_0xd1aed0();})[_0x45266f('0x151d')](function(_0x2dfc46){_0x5a67a7(_0x2dfc46);});});}function _0x180d00(){const _0x401fb4=a0_0xaf0c;_0x16a112[_0x401fb4('0x14a5')](_0x401fb4('0xc2b')),_0x539122&&(_0x1dcad4['localStorage'][_0x401fb4('0xd98')](_0x401fb4('0x2726')+_0x539122['id']),_0x1dcad4[_0x401fb4('0xe4a')][_0x401fb4('0xd98')](_0x401fb4('0x10ff')),_0x539122=null);}function _0x3b4912(_0x272ffb){return _0x190bd7(function(_0x57f87b,_0x3d2a28){const _0x3c26a0=a0_0xaf0c;_0x272ffb?(_0x180d00(),_0x57f87b()):_0x190bd7[_0x3c26a0('0xa28')]()[_0x3c26a0('0x11bf')](function(){const _0x4f428d=_0x3c26a0;if(_0x4c6977()&&_0x539122[_0x4f428d('0x1c14')]!==0x0)return _0x382b5f();else{if(_0x32c4de()||_0x56870b())return _0x6f3f0c(![]);else return;}})[_0x3c26a0('0x11bf')](function(){_0x180d00(),_0x57f87b();})['catch'](function(_0x2852d4){_0x3d2a28(_0x2852d4);});});}function _0x341fe9(){return _0x4b79a6()?!![]:![];}function _0x4c6977(){const _0x58ccdc=a0_0xaf0c;return _0x539122[_0x58ccdc('0x111d')]===_0x58ccdc('0x18c4');}function _0x32c4de(){const _0x38b24b=a0_0xaf0c;return _0x539122['role']===_0x38b24b('0xf45');}function _0x56870b(){const _0x2abe2d=a0_0xaf0c;return _0x539122[_0x2abe2d('0x111d')]===_0x2abe2d('0x21d9');}function _0x1d2d00(){const _0x5573f3=a0_0xaf0c;return _0x539122[_0x5573f3('0x111d')]===_0x5573f3('0x2650');}function _0x480ce1(){return _0x190bd7(function(_0x3577c0,_0x5456cb){const _0x3aa70e=a0_0xaf0c;_0xd5bbde['user'][_0x3aa70e('0xeb4')]()[_0x3aa70e('0x1549')][_0x3aa70e('0x11bf')](function(_0x5edd94){const _0x3bd0e7=_0x3aa70e;return _0x5edd94[_0x3bd0e7('0x111d')]===_0x3bd0e7('0x21d9')?_0xdb50ce(_0x5edd94['userProfileId'])['then'](function(_0x5ca414){const _0xc189c3=_0x3bd0e7;return _0x5edd94[_0xc189c3('0x715')]=_0x5ca414,_0x5edd94;}):_0x5edd94;})[_0x3aa70e('0x11bf')](function(_0x12f007){_0x539122=_0x12f007,_0x3577c0(_0x539122);})[_0x3aa70e('0x151d')](function(_0x3219e6){_0x5456cb(_0x3219e6);});});}function _0x11e314(_0x2c345d){const _0x110502=a0_0xaf0c;return _0x539122?_0x539122[_0x110502('0x111d')]===_0x2c345d:![];}function _0x4c811a(_0x31e08a){const _0x128e0e=a0_0xaf0c;return _0x539122?_0x36f548()[_0x128e0e('0x55a')](_0x539122[_0x128e0e('0x715')],_0x31e08a):![];}function _0xdb50ce(_0x31128a){let _0x1184fd=[];return _0x190bd7(function(_0x327343,_0x326410){const _0x45c09f=a0_0xaf0c;return!_0x31128a&&_0x327343(_0x1184fd),_0xd5bbde[_0x45c09f('0x25bc')][_0x45c09f('0x4eb')]({'id':_0x31128a})[_0x45c09f('0x1549')][_0x45c09f('0x11bf')](function(_0x4a244d){const _0x43bedb=_0x45c09f;for(let _0x2e5f9f=0x0;_0x2e5f9f<_0x4a244d[_0x43bedb('0x1e22')];_0x2e5f9f++){const _0x57796b=_0x4a244d[_0x2e5f9f];_0x1184fd['push'](_0x57796b[_0x43bedb('0x24b2')]),_0x57796b[_0x43bedb('0x1242')]&&(_0x1184fd=_0x36f548()[_0x43bedb('0x20bf')](_0x1184fd,_0x57796b['subsections']));}return _0x1184fd;})[_0x45c09f('0x11bf')](function(_0x2368d8){_0x327343(_0x2368d8);})[_0x45c09f('0x151d')](function(_0x2d6203){const _0x109f27=_0x45c09f;_0x326410(_0x109f27('0x7d1'),_0x2d6203);});});}function _0x448c54(_0x213967){if(!_0x213967)return![];return _0x36f548()['some'](_0x213967,function(_0x5ed10e){return _0x4c811a(_0x5ed10e);});}function _0x22eb0a(){return _0x190bd7(function(_0x4a7cc1,_0x2753c0){const _0x493391=a0_0xaf0c;_0xdb50ce(_0x539122[_0x493391('0x781')])[_0x493391('0x11bf')](function(_0x1f9c6d){const _0x1e30c2=_0x493391;_0x539122[_0x1e30c2('0x715')]=_0x1f9c6d,_0x4a7cc1();})[_0x493391('0x151d')](function(_0x4e5d0e){_0x2753c0(_0x4e5d0e);});});}function _0x647862(_0x42c5b2){const _0x1b88fa=a0_0xaf0c;return _0x32c4de()?{'readOnly':![],'canEdit':!![],'canDelete':!![]}:!_0x42c5b2?{'readOnly':!![],'canEdit':![],'canDelete':![]}:{'readOnly':_0x36f548()[_0x1b88fa('0x55a')](_0x42c5b2,'r')&&_0x42c5b2[_0x1b88fa('0x1e22')]===0x1?!![]:![],'canEdit':_0x36f548()[_0x1b88fa('0x55a')](_0x42c5b2,'e')?!![]:![],'canDelete':_0x36f548()[_0x1b88fa('0x55a')](_0x42c5b2,'d')?!![]:![]};}function _0x36eb37(_0x2f70cb,_0x5f588b){return _0x190bd7(function(_0x4394f7,_0x3aa363){const _0x296ef8=a0_0xaf0c;return _0xd5bbde[_0x296ef8('0x1d63')]['get']({'userProfileId':_0x539122['userProfileId'],'sectionId':_0x2f70cb})['$promise'][_0x296ef8('0x11bf')](function(_0x3693f2){const _0x52015e=_0x296ef8,_0x5f1f9f=_0x3693f2[_0x52015e('0x19b2')][0x0];if(_0x5f1f9f[_0x52015e('0xf11')])_0x4394f7();else return _0xd5bbde[_0x52015e('0x26d1')]['get']({'sectionId':_0x5f1f9f['id'],'nolimit':!![]})[_0x52015e('0x1549')][_0x52015e('0x11bf')](function(_0x360884){const _0x1de19b=_0x52015e,_0x3fd3c8=_0x360884[_0x1de19b('0x19b2')];_0x36f548()[_0x1de19b('0x1cb3')](_0x3fd3c8,[_0x1de19b('0x15a5'),_0x5f588b])?_0x4394f7():_0x3aa363();});})[_0x296ef8('0x151d')](function(_0x2d169e){const _0x407173=_0x296ef8;_0x3aa363(_0x407173('0x7d1'),_0x2d169e);});});}function _0x1ddb94(_0x42aaca){return _0x190bd7(function(_0x518275,_0x16fa9b){const _0x45ee4f=a0_0xaf0c,_0x102d83={};return _0x22eb0a()['then'](function(){const _0x454104=a0_0xaf0c;_0x36f548()[_0x454104('0x55a')](_0x539122[_0x454104('0x715')],_0x42aaca)&&(_0x102d83[_0x42aaca]=!![]),_0x518275(_0x102d83);})[_0x45ee4f('0x151d')](function(_0x464873){_0x16fa9b(_0x464873);});});}function _0x4139cf(_0x488422){return _0x190bd7(function(_0x1d6b41,_0x43f498){const _0x398f70=a0_0xaf0c,_0x5d378b={};if(_0x32c4de())_0x488422[_0x398f70('0x1f88')](function(_0x1eea3b){_0x5d378b[_0x1eea3b]=!![];}),_0x1d6b41(_0x5d378b);else return _0x22eb0a()[_0x398f70('0x11bf')](function(){const _0x161663=_0x398f70;_0x488422[_0x161663('0x1f88')](function(_0xed30ff){const _0x23c390=_0x161663;_0x36f548()['includes'](_0x539122[_0x23c390('0x715')],_0xed30ff)&&(_0x5d378b[_0xed30ff]=!![]);}),_0x1d6b41(_0x5d378b);})['catch'](function(_0x3fd6f4){_0x43f498(_0x3fd6f4);});});}function _0x5b3d84(_0x52ca47){return _0x190bd7(function(_0x58ee70,_0x35c63c){const _0x3e1b5f=a0_0xaf0c;_0x32c4de()?_0x58ee70(!![]):_0xd5bbde[_0x3e1b5f('0x1d63')][_0x3e1b5f('0xbaa')]({'userProfileId':_0x539122['userProfileId']})[_0x3e1b5f('0x1549')][_0x3e1b5f('0x11bf')](function(_0x2d024b){const _0x49930a=_0x3e1b5f,_0x103e80=_0x2d024b&&_0x2d024b[_0x49930a('0x19b2')]?_0x2d024b[_0x49930a('0x19b2')]:[];if(!_0x36f548()['isEmpty'](_0x103e80)){const _0x18ec53=_0x36f548()[_0x49930a('0xdb4')](_0x103e80,function(_0x1725fd){const _0x504ec8=_0x49930a;return _0x1725fd[_0x504ec8('0x1f0a')];});_0x58ee70(_0x36f548()[_0x49930a('0x1cb3')](_0x18ec53,[_0x49930a('0x167b'),_0x52ca47]));}else _0x58ee70(![]);})['catch'](function(_0x167c00){_0x35c63c(_0x167c00);});});}function _0x5abadb(_0x57fc33){return _0x190bd7(function(_0x346457,_0x3432e6){const _0x5588b2=a0_0xaf0c,_0x54b294={};_0x32c4de()?(_0x57fc33[_0x5588b2('0x1f88')](function(_0xb44f40){_0x54b294[_0xb44f40]=!![];}),_0x346457(_0x54b294)):_0xd5bbde[_0x5588b2('0x1d63')][_0x5588b2('0xbaa')]({'userProfileId':_0x539122[_0x5588b2('0x781')]})['$promise'][_0x5588b2('0x11bf')](function(_0x8f5409){const _0x1a44b6=_0x5588b2,_0x2f610f=_0x8f5409&&_0x8f5409[_0x1a44b6('0x19b2')]?_0x8f5409['rows']:[];if(!_0x36f548()['isEmpty'](_0x2f610f)){const _0x2840f4=_0x36f548()(_0x2f610f)['filter'](function(_0x479382){const _0x21defb=_0x1a44b6;return _0x479382[_0x21defb('0x1f0a')]&&_0x36f548()[_0x21defb('0x55a')](_0x57fc33,_0x479382[_0x21defb('0x167b')]);})['uniqBy'](function(_0x58fdf9){const _0x292999=_0x1a44b6;return _0x58fdf9[_0x292999('0x167b')];})[_0x1a44b6('0x2171')](function(_0x522eb9){const _0x1f76e0=_0x1a44b6;return _0x522eb9[_0x1f76e0('0x167b')];})[_0x1a44b6('0x10cc')]();_0x2840f4[_0x1a44b6('0x1f88')](function(_0x396233){_0x54b294[_0x396233]=!![];}),_0x346457(_0x54b294);}else _0x346457({});})[_0x5588b2('0x151d')](function(_0xa00731){_0x3432e6(_0xa00731);});});}function _0x5e218f(){const _0x264540=a0_0xaf0c;return _0x1dcad4[_0x264540('0xe4a')][_0x264540('0x10ff')]||'NONE';}function _0x18b2d4(_0x699aad){const _0x3d1620=a0_0xaf0c;_0x1dcad4[_0x3d1620('0xe4a')][_0x3d1620('0x10ff')]=_0x699aad;}function _0x1cc3a4(_0x4e290f){const _0x1792ec=a0_0xaf0c;return _0x18b2d4(_0x1792ec('0x2769')),_0x1792ec('0x5c5')+_0x4e290f;}}const _0x1269ab=_0x57f840;_0x39fc41[_0x21d0f5('0x1e9a')]=['$mdDialog',_0x21d0f5('0x156e')];function _0x39fc41(_0x1e327f,_0x1e5a23){const _0x189ecd=_0x21d0f5,_0x29885f=this;function _0x132fac(_0x1d697c){_0x1e327f['hide'](_0x1d697c);}_0x29885f['telephones']=_0x1e5a23,_0x29885f[_0x189ecd('0xc4e')]=_0x132fac,_0x1e5a23[_0x189ecd('0x27d2')]&&(_0x29885f[_0x189ecd('0x1909')]=_0x1e5a23[_0x189ecd('0x19b2')][0x0][_0x189ecd('0x1909')]);}const _0x442fd2=_0x39fc41;_0x439304['$inject']=['$rootScope','$q',_0x21d0f5('0x5d8'),'$injector',_0x21d0f5('0x2884')];function _0x439304(_0x5d7390,_0x53c7d6,_0x561c95,_0x1e79d1,_0x55857d){let _0x1b9f23;return{'request':function(_0x150a25){const _0xe4a468=a0_0xaf0c,_0x2ec30b=_0x561c95[_0xe4a468('0xbaa')](_0xe4a468('0xc2b'));return _0x150a25[_0xe4a468('0x1f61')]=_0x150a25[_0xe4a468('0x1f61')]||{},(![]||_0x55857d[_0xe4a468('0x1565')](_0x150a25[_0xe4a468('0x259e')]))&&_0x2ec30b&&(_0x150a25['headers'][_0xe4a468('0x154d')]=_0xe4a468('0x2723')+_0x2ec30b),_0x150a25;},'responseError':function(_0x4adc5d){const _0x26cdcd=a0_0xaf0c;switch(_0x4adc5d[_0x26cdcd('0xff9')]){case 0x191:_0x561c95['remove'](_0x26cdcd('0xc2b')),(_0x1b9f23||(_0x1b9f23=_0x1e79d1['get'](_0x26cdcd('0xcbc'))))['go']('app.login');break;case 0x194:break;default:break;}return _0x53c7d6['reject'](_0x4adc5d);}};}const _0x168e21=_0x439304;_0x2cf08b[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x2143')];function _0x2cf08b(_0x4238fc){const _0x15c48d={'safeCb':function(_0x1899af){const _0x28ea77=a0_0xaf0c;return angular['isFunction'](_0x1899af)?_0x1899af:angular[_0x28ea77('0x2b8')];},'urlParse':function(_0x17bec9){const _0x191523=a0_0xaf0c,_0x3c7a00=document[_0x191523('0x2773')]('a');return _0x3c7a00[_0x191523('0xead')]=_0x17bec9,_0x3c7a00['host']===''&&(_0x3c7a00[_0x191523('0xead')]=_0x3c7a00['href']),_0x3c7a00;},'isSameOrigin':function(_0x4fa1b2,_0x42c931){const _0x18cace=a0_0xaf0c;return _0x4fa1b2=_0x15c48d[_0x18cace('0x1020')](_0x4fa1b2),_0x42c931=_0x42c931&&[][_0x18cace('0x20bf')](_0x42c931)||[],_0x42c931=_0x42c931[_0x18cace('0x2171')](_0x15c48d[_0x18cace('0x1020')]),_0x42c931[_0x18cace('0x105d')](_0x4238fc[_0x18cace('0x1d9a')]),_0x42c931=_0x42c931[_0x18cace('0xdb4')](function(_0x29df3d){const _0x3e828f=_0x18cace,_0x49027c=_0x4fa1b2[_0x3e828f('0x240c')]===_0x29df3d[_0x3e828f('0x240c')],_0xfafb8=_0x4fa1b2[_0x3e828f('0x1797')]===_0x29df3d[_0x3e828f('0x1797')],_0x389ab8=_0x4fa1b2[_0x3e828f('0x235b')]===_0x29df3d[_0x3e828f('0x235b')]||_0x29df3d[_0x3e828f('0x235b')]===''&&(_0x4fa1b2[_0x3e828f('0x235b')]==='80'||_0x4fa1b2[_0x3e828f('0x235b')]===_0x3e828f('0x287e'));return _0x49027c&&_0xfafb8&&_0x389ab8;}),_0x42c931[_0x18cace('0x1e22')]>=0x1;}};return _0x15c48d;}const _0x4b9d5d=_0x2cf08b;;angular[_0x21d0f5('0x2768')](_0x21d0f5('0x1c56'),[])[_0x21d0f5('0x53a')](_0x4ce0af)['run'](_0x245442)[_0x21d0f5('0x2729')]('Auth',_0x1269ab)['controller']('HotDeskDialogController',_0x442fd2)[_0x21d0f5('0x2729')](_0x21d0f5('0x1aa7'),_0x168e21)['factory'](_0x21d0f5('0x2884'),_0x4b9d5d);var _0x504efb=_0x351988(0xca2),_0x33dde4=_0x351988(0x1e94),_0x160ee9=_0x351988(0x1e80),_0x401277=_0x351988(0x11ee),_0x27ff62=_0x351988(0x36e),_0x4ec382=_0x351988(0x1bdb),_0x17634d=_0x351988(0x1c17),_0x377637=_0x351988(0x813),_0x2c971f=_0x351988(0xdff),_0x33e719=_0x351988(0x251),_0x475a5f=_0x351988(0xdf),_0x250dc9=_0x351988(0x1299),_0x7b9dc8=_0x351988(0x177),_0x1356fe=_0x351988(0x573);function _0x4a40ed(){const _0x4366de=_0x21d0f5;let _0x39e4ad={'disableCustomScrollbars':![],'disableMdInkRippleOnMobile':!![],'disableCustomScrollbarsOnMobile':!![]};function _0xd26ee7(_0x58126a){const _0x58c038=a0_0xaf0c;_0x39e4ad=angular[_0x58c038('0x218f')]({},_0x39e4ad,_0x58126a);}function _0x64ef12(_0x332cf8){const _0x36f8c7=a0_0xaf0c;if(angular[_0x36f8c7('0x13b9')](_0x39e4ad[_0x332cf8]))return![];return _0x39e4ad[_0x332cf8];}function _0x4931c6(_0x1e5f2a,_0x211103){_0x39e4ad[_0x1e5f2a]=_0x211103;}this[_0x4366de('0x27b1')]=function(){const _0x33bf76={'getConfig':_0x64ef12,'setConfig':_0x4931c6};return _0x33bf76;},this[_0x4366de('0x53a')]=_0xd26ee7;}const _0x2742be=_0x4a40ed;_0x2ad27e[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x2322'),'$logProvider','msScrollConfigProvider',_0x21d0f5('0x4ba')];function _0x2ad27e(_0x346374,_0x3c3f1f,_0x5ddb06,_0x561d69){const _0x3f2f0c=_0x21d0f5;_0x3c3f1f['debugEnabled'](!![]),_0x346374[_0x3f2f0c('0x53a')]({'tabindex':![]}),_0x561d69['config']({'disableCustomScrollbars':![],'disableCustomScrollbarsOnMobile':!![],'disableMdInkRippleOnMobile':!![]}),_0x5ddb06[_0x3f2f0c('0x53a')]({'wheelPropagation':!![]});}const _0x4055a4=_0x2ad27e;_0x41aa55[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0xda9'),_0x21d0f5('0x15d1'),_0x21d0f5('0x22fa')];function _0x41aa55(_0x1c62af,_0x3b51c9,_0x41fabe){const _0x2fe294=_0x21d0f5;_0x3b51c9[_0x2fe294('0x231a')]();if(_0x41fabe[_0x2fe294('0x1c55')](_0x2fe294('0x1359'))&&_0x1c62af[_0x2fe294('0xb29')]()){const _0x41885b=angular['element']('body');_0x41885b[_0x2fe294('0x15ff')]('md-no-ink',!![]);}_0x1c62af[_0x2fe294('0xb29')]()&&angular['element'](_0x2fe294('0x254b'))[_0x2fe294('0x16d8')](_0x2fe294('0x1b3f'));const _0x379b37=_0x1c62af['detectBrowser']();if(_0x379b37){const _0x477811=_0x379b37['browser']+'\x20'+_0x379b37[_0x2fe294('0x23d3')]+'\x20'+_0x379b37['os'];angular[_0x2fe294('0x1e73')](_0x2fe294('0x254b'))[_0x2fe294('0x16d8')](_0x477811);}}const _0x151179=_0x41aa55;_0x1c4205['$inject']=[_0x21d0f5('0x2143'),_0x21d0f5('0x1ca2'),_0x21d0f5('0x1150'),_0x21d0f5('0x1360'),'fields',_0x21d0f5('0x24bd')];function _0x1c4205(_0x36fa6d,_0x152e63,_0x49c929,_0x53c397,_0x48e249,_0x3e2607){const _0x529d04=_0x21d0f5,_0x4ee36c=this;_0x4ee36c[_0x529d04('0x32a')]=_0x49c929[_0x529d04('0x2428')](),_0x4ee36c[_0x529d04('0x159a')]={'matchType':'$and','conditions':[],'fields':_0x48e249},_0x4ee36c[_0x529d04('0x23db')]=_0x53c397,_0x4ee36c['onInit']=_0x1e91b9,_0x4ee36c[_0x529d04('0x1f3a')]=_0x49e86c,_0x4ee36c[_0x529d04('0xa2b')]=_0x1e5823,_0x4ee36c['minimize']=_0x1379d9,_0x4ee36c['close']=_0x5937d3;function _0x1e91b9(){const _0x5ec136=_0x529d04;if(_0x3e2607){const _0x550f21=_0x33c0bd();typeof _0x550f21[_0x5ec136('0xd6d')]!=='undefined'&&(_0x4ee36c[_0x5ec136('0x159a')]=_0x36f548()[_0x5ec136('0x47b')](_0x4ee36c[_0x5ec136('0x159a')],_0x550f21[_0x5ec136('0xd6d')]));}}function _0x49e86c(){const _0x19229c=_0x529d04,_0x225663=_0x36f548()['filter'](_0x4ee36c[_0x19229c('0x159a')][_0x19229c('0x15b7')],[_0x19229c('0xa4b'),![]]);let _0x16e488='['+_0x4ee36c[_0x19229c('0x159a')][_0x19229c('0x1fc2')]+']';const _0x5a5817=[];let _0x511a5f='';_0x36f548()(_0x225663)['groupBy'](_0x19229c('0x1909'))[_0x19229c('0x1f88')](function(_0x35f090){const _0x167361=_0x19229c,_0x4ce6b2=_0x35f090[0x0],_0x30dba7=_0x35f090[_0x167361('0x1e22')]>0x1?!![]:![],_0x51394=_0x4ce6b2[_0x167361('0x1f2a')][_0x167361('0x6a3')];if(_0x30dba7){const _0x543c0b=_0x36f548()(_0x35f090)[_0x167361('0x11a5')](function(_0x5b1963){const _0x538d68=_0x167361;return _0x5b1963['query'][_0x538d68('0x553')];})[_0x167361('0xbdb')](function(_0x32495f){const _0x193cd2=_0x167361;return _0x36f548()['chain'](_0x32495f)[_0x193cd2('0x2171')](function(_0x2107c3){const _0x212201=_0x193cd2;return _0x2107c3[_0x212201('0x1f2a')][_0x212201('0x10cc')];})[_0x193cd2('0x17a7')]()[_0x193cd2('0x10cc')]();})[_0x167361('0x10cc')](),_0x4c207d=[];_0x36f548()[_0x167361('0xe22')](_0x543c0b)[_0x167361('0x1f88')](function(_0x1ed86c){const _0x3dc7a9=_0x167361,_0x1f8eda=_0x543c0b[_0x1ed86c];let _0x185d13=_0x1ed86c;_0x36f548()[_0x3dc7a9('0x55a')]([_0x3dc7a9('0x1886'),_0x3dc7a9('0x1675'),_0x3dc7a9('0x1239')],_0x1ed86c)?_0x185d13+='['+_0x1f8eda+']':_0x1f8eda[_0x3dc7a9('0x1f88')](function(_0x1f523f){_0x185d13+='['+_0x1f523f+']';}),_0x4c207d[_0x3dc7a9('0x105d')](_0x185d13);}),_0x511a5f+=_0x51394+':='+_0x4c207d['join'](':=');}else _0x511a5f=_0x51394+':='+_0x4ce6b2['query'][_0x167361('0x553')]+'['+_0x4ce6b2[_0x167361('0x1f2a')][_0x167361('0x10cc')]+']';_0x5a5817[_0x167361('0x105d')](_0x511a5f);}),_0x16e488+=_0x5a5817[_0x19229c('0xa04')]('||'),_0x23b10c(),_0x152e63[_0x19229c('0x237e')](_0x16e488);}function _0x1e5823(){const _0x2cdfd7=_0x529d04;_0x4ee36c['searchOptions'][_0x2cdfd7('0x15b7')]=[],_0x693131();}function _0x1379d9(){_0x23b10c(),_0x152e63['hide']();}function _0x5937d3(){_0x152e63['hide'](![]);}function _0x33c0bd(){const _0x469240=_0x529d04,_0xeb5b55=_0x36fa6d[_0x469240('0xe4a')][_0x469240('0x2356')](_0x469240('0x8ac')+_0x3e2607+':'+_0x4ee36c[_0x469240('0x32a')]['id']);return _0xeb5b55?JSON[_0x469240('0x1850')](_0xeb5b55):{};}function _0x11a333(_0x6d4afb){const _0x4e4a00=_0x529d04;_0x36fa6d[_0x4e4a00('0xe4a')][_0x4e4a00('0x26d6')](_0x4e4a00('0x8ac')+_0x3e2607+':'+_0x4ee36c[_0x4e4a00('0x32a')]['id'],JSON[_0x4e4a00('0x3e')](_0x6d4afb));}function _0x23b10c(){const _0x2fc122=_0x529d04;if(_0x3e2607){const _0xb2db34=_0x33c0bd();_0xb2db34['advancedSearch']=_0x36f548()[_0x2fc122('0x196f')](_0x4ee36c['searchOptions'],'fields'),_0x11a333(_0xb2db34);}}function _0x693131(){const _0x2a3ad4=_0x529d04;if(_0x3e2607){const _0x237c43=_0x33c0bd();delete _0x237c43[_0x2a3ad4('0xd6d')];if(_0x237c43[_0x2a3ad4('0x1f2a')])delete _0x237c43[_0x2a3ad4('0x1f2a')][_0x2a3ad4('0xce2')];_0x11a333(_0x237c43);}}}const _0x43c5c2=_0x1c4205;_0x4ba7d5['$inject']=[_0x21d0f5('0x17f5')];function _0x4ba7d5(_0x3be76b){return{'restrict':'A','link':function(_0x15eec9,_0x485f5f,_0x876395){const _0x3d7ad7=a0_0xaf0c;_0x15eec9[_0x3d7ad7('0x2087')](_0x876395['focusOn'],function(_0x19696b){_0x3be76b(function(){const _0x390b04=a0_0xaf0c;_0x19696b?_0x485f5f[0x0][_0x390b04('0x1cf2')]():_0x485f5f[0x0][_0x390b04('0xd00')]();});});}};}const _0xbd5d23=_0x4ba7d5;var _0x10e560=_0x351988(0x1433),_0x579a30=_0x351988['n'](_0x10e560);_0x3c270a[_0x21d0f5('0x1e9a')]=['$timeout','$q','$interpolate'];function _0x3c270a(_0x82093f,_0x40190e,_0x136835){return{'restrict':'E','compile':function(_0x442220,_0x411c52){const _0x14fcdb=a0_0xaf0c;let _0x38cb74;return!_0x411c52[_0x14fcdb('0x344')]&&(_0x38cb74=_0x442220['html'](),_0x442220[_0x14fcdb('0xaf4')]()),function(_0x54de51,_0x470ce2,_0x1309b7){const _0x1a3975=_0x14fcdb;_0x1309b7['code']&&(_0x38cb74=_0x54de51['$eval'](_0x1309b7[_0x1a3975('0x344')]));const _0x455c3d=_0x54de51[_0x1a3975('0x2182')](_0x1309b7[_0x1a3975('0x1952')]);_0x40190e[_0x1a3975('0x1a8a')](_0x38cb74)[_0x1a3975('0x11bf')](function(_0x13369a){const _0x2acd49=_0x1a3975;if(_0x13369a){_0x455c3d&&(_0x13369a=_0x136835(_0x13369a)(_0x54de51));const _0x4a1f10=angular[_0x2acd49('0x1e73')](_0x2acd49('0x26be'));_0x470ce2[_0x2acd49('0x155a')](_0x4a1f10),_0x82093f(function(){_0x1f0963(_0x13369a,_0x4a1f10);},0x22,![]);}});function _0x1f0963(_0x2d921d,_0x19421b){const _0x30916a=_0x1a3975,_0x5ad15f=_0x19421b[_0x30916a('0x1ad4')](_0x30916a('0x344'));let _0x4bbba1=_0x2d921d[_0x30916a('0xaf8')]('\x0a');_0x4bbba1=_0x4bbba1[_0x30916a('0xdb4')](function(_0x4a1b0b){const _0x7fc9fa=_0x30916a;return _0x4a1b0b[_0x7fc9fa('0x3ec')]()[_0x7fc9fa('0x1e22')];});const _0x4068fb=_0x4bbba1[0x0][_0x30916a('0x3bb')](/^\s*/)[0x0],_0xe56a90=new RegExp('^'+_0x4068fb);_0x4bbba1=_0x4bbba1['map'](function(_0x1dc11b){const _0x2bf174=_0x30916a;return _0x1dc11b[_0x2bf174('0x814')](_0xe56a90,'')[_0x2bf174('0x814')](/\s+$/,'');});const _0x209676=_0x579a30()[_0x30916a('0xf6d')](_0x1309b7[_0x30916a('0xeff')]||_0x1309b7[_0x30916a('0x835')],_0x4bbba1[_0x30916a('0xa04')]('\x0a'),!![]);_0x209676[_0x30916a('0x10cc')]=_0x209676[_0x30916a('0x10cc')]['replace'](/=""<\/span>/gi,'')[_0x30916a('0x814')]('','')['replace'](_0x30916a('0x25ce'),''),_0x5ad15f[_0x30916a('0x155a')](_0x209676['value'])[_0x30916a('0x16d8')](_0x30916a('0xf6d'));}};}};}const _0xc6c838=_0x3c270a,_0x1aa773=_0x351988['p']+_0x21d0f5('0x24d5');_0x674460[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0xb6b'),'$q',_0x21d0f5('0x12a5'),_0x21d0f5('0x142d')];function _0x3e3245(){return{'restrict':'E','scope':{'options':'=','clearFilter':'&'},'controller':_0x674460,'controllerAs':'vm','bindToController':!![],'templateUrl':_0x1aa773};}function _0x674460(_0x16e40a,_0x112911,_0x1dbecb,_0x436b17){const _0x282e02=_0x21d0f5,_0x41bba1=this;_0x41bba1[_0x282e02('0x1174')]=[{'type':'$eq','symbol':'=','translate':'EQUALS','excludeFrom':[_0x282e02('0xe83')]},{'type':'$ne','symbol':'≠','translate':_0x282e02('0x2142'),'excludeFrom':['multiselect']},{'type':'$in','symbol':'∈','translate':_0x282e02('0x50f'),'applyTo':[_0x282e02('0xe83')]},{'type':'$notIn','symbol':'∉','translate':_0x282e02('0x25d'),'applyTo':[_0x282e02('0xe83')]},{'type':_0x282e02('0x512'),'symbol':'⊃','translate':_0x282e02('0x62f'),'applyTo':[_0x282e02('0x25ed')]},{'type':'$startsWith','symbol':_0x282e02('0x2060'),'translate':_0x282e02('0xc02'),'applyTo':[_0x282e02('0x25ed')]},{'type':_0x282e02('0xbdc'),'symbol':_0x282e02('0x1cdf'),'translate':_0x282e02('0x16ff'),'applyTo':[_0x282e02('0x25ed')]},{'type':_0x282e02('0x1f55'),'symbol':'<','translate':_0x282e02('0xdbe'),'applyTo':[_0x282e02('0x22f7'),_0x282e02('0x139e')]},{'type':_0x282e02('0x20e2'),'symbol':'>','translate':_0x282e02('0x2d5'),'applyTo':['date',_0x282e02('0x139e')]},{'type':_0x282e02('0x2ef'),'symbol':'≤','translate':_0x282e02('0x30d'),'applyTo':[_0x282e02('0x22f7'),_0x282e02('0x139e')]},{'type':_0x282e02('0x21b6'),'symbol':'≥','translate':'IS_GREATER_THAN_OR_EQUAL_TO','applyTo':['date',_0x282e02('0x139e')]},{'type':_0x282e02('0x1886'),'symbol':'≬','translate':_0x282e02('0x16b1'),'applyTo':['date',_0x282e02('0x139e')]}],_0x41bba1[_0x282e02('0x9ca')]=_0x41bba1['availableOperators'],_0x41bba1[_0x282e02('0x198a')]=_0xd0f4b,_0x41bba1[_0x282e02('0x1bfa')]=_0xd6fe19,_0x41bba1[_0x282e02('0x941')]=_0x1685e4,_0x41bba1[_0x282e02('0x2608')]=_0x1b6a35,_0x41bba1[_0x282e02('0x266b')]=_0x165661,_0x41bba1[_0x282e02('0x1d9f')]=_0x308d03,_0x41bba1[_0x282e02('0x2c6')]=_0x36bc66,_0x41bba1[_0x282e02('0x1fe7')]=_0x2fdec0,_0x41bba1[_0x282e02('0x1b2d')]=_0x422712,_0x41bba1[_0x282e02('0x8f3')]=_0xe99c95,_0x41bba1[_0x282e02('0x14a4')]=_0xf260e1,_0x41bba1[_0x282e02('0x1d76')]=_0x3b1858;function _0x2fdec0(){const _0x12ec1d=_0x282e02;_0x41bba1[_0x12ec1d('0x10cc')]=undefined,_0x41bba1[_0x12ec1d('0x26ce')]=undefined,_0x41bba1[_0x12ec1d('0xc0e')]=undefined,_0x41bba1[_0x12ec1d('0x1687')]=![],_0x56d276(),_0x41bba1[_0x12ec1d('0x14ff')]=_0x41bba1[_0x12ec1d('0x1174')]['length']===0x1?!![]:![];if(!_0x41bba1[_0x12ec1d('0x14ff')])_0x41bba1[_0x12ec1d('0x257a')]=undefined;}function _0x422712(_0x43f8f4){const _0x16a99b=_0x282e02;_0x41bba1['isValidRange']=!![],_0x41bba1['selectedOperator']&&(_0x43f8f4?_0x43f8f4[_0x16a99b('0x603')]?_0x36f548()[_0x16a99b('0x1271')](_0x41bba1[_0x16a99b('0x257a')][_0x16a99b('0x603')],_0x43f8f4[_0x16a99b('0x603')])[_0x16a99b('0x1e22')]>0x0&&(_0x41bba1[_0x16a99b('0x10cc')]=null):_0x41bba1[_0x16a99b('0x257a')][_0x16a99b('0x603')]&&(_0x41bba1[_0x16a99b('0x10cc')]=null):_0x41bba1[_0x16a99b('0x10cc')]=null,_0x41bba1[_0x16a99b('0x257a')][_0x16a99b('0x19fd')]!=_0x16a99b('0x743')&&(_0x41bba1['endRangeValue']=null),_0x41bba1[_0x16a99b('0x8f0')][_0x16a99b('0x249a')]&&!_0x36f548()[_0x16a99b('0x1fc5')](_0x41bba1[_0x16a99b('0x8f0')][_0x16a99b('0x249a')]['extraOperators'])&&(_0x41bba1[_0x16a99b('0x257a')][_0x16a99b('0x2488')]=_0x36f548()['some'](_0x41bba1[_0x16a99b('0x8f0')][_0x16a99b('0x249a')][_0x16a99b('0x15f0')],function(_0x1dd0b2){const _0x821267=_0x16a99b;return _0x1dd0b2===_0x41bba1[_0x821267('0x257a')][_0x821267('0x19fd')];}))),_0x3c64a0();}function _0xe99c95(){const _0x53e5dc=_0x282e02;if(_0x41bba1[_0x53e5dc('0x257a')]&&_0x41bba1[_0x53e5dc('0x257a')]['type']==='$between'){if(_0x41bba1[_0x53e5dc('0x8f0')][_0x53e5dc('0x19fd')]===_0x53e5dc('0x139e'))_0xf260e1();else _0x41bba1[_0x53e5dc('0x8f0')]['type']==='date'&&(_0x41bba1[_0x53e5dc('0x37d')]=_0x57d4d1()(_0x41bba1[_0x53e5dc('0x10cc')])[_0x53e5dc('0x23c1')](0x1,_0x53e5dc('0x2161')),_0x3c64a0());}else _0x3c64a0();}function _0x56d276(){const _0xfa330e=_0x282e02,_0x15b4f2=_0x41bba1[_0xfa330e('0x8f0')]['options']&&!_0x36f548()[_0xfa330e('0x1fc5')](_0x41bba1[_0xfa330e('0x8f0')][_0xfa330e('0x249a')][_0xfa330e('0x15f0')]),_0x51170f=_0x41bba1['selectedField'][_0xfa330e('0x249a')]&&!_0x36f548()[_0xfa330e('0x1fc5')](_0x41bba1['selectedField']['options'][_0xfa330e('0x1e7f')]);_0x41bba1[_0xfa330e('0x1174')]=_0x36f548()[_0xfa330e('0xdb4')](_0x41bba1[_0xfa330e('0x9ca')],function(_0x2a885c){const _0x549fd3=_0xfa330e,_0x88e57a=!_0x2a885c[_0x549fd3('0x603')]||_0x36f548()[_0x549fd3('0x55a')](_0x2a885c[_0x549fd3('0x603')],_0x41bba1['selectedField'][_0x549fd3('0x19fd')]);_0x2a885c[_0x549fd3('0x2488')]=_0x15b4f2&&_0x36f548()[_0x549fd3('0x1cb3')](_0x41bba1[_0x549fd3('0x8f0')]['options'][_0x549fd3('0x15f0')],function(_0x2702af){const _0x5e91c9=_0x549fd3;return _0x2702af===_0x2a885c[_0x5e91c9('0x19fd')];});const _0x5319f8=_0x36f548()['includes'](_0x2a885c[_0x549fd3('0x1ed2')],_0x41bba1[_0x549fd3('0x8f0')][_0x549fd3('0x19fd')])||_0x51170f&&_0x36f548()['includes'](_0x41bba1[_0x549fd3('0x8f0')]['options'][_0x549fd3('0x1e7f')],_0x2a885c[_0x549fd3('0x19fd')]);if((_0x88e57a||_0x2a885c[_0x549fd3('0x2488')])&&!_0x5319f8)return _0x2a885c;});}function _0x36bc66(){const _0x23b0c6=_0x282e02,_0x48430=angular[_0x23b0c6('0x6fb')](_0x41bba1['selectedField']['options']['route']);if(_0x41bba1[_0x23b0c6('0x8f0')][_0x23b0c6('0x19fd')]===_0x23b0c6('0x282b'))for(let _0x95f0a2=0x0;_0x95f0a2Number(_0x41bba1[_0xe9fc8c('0x10cc')])?!![]:![]:_0x41bba1[_0xe9fc8c('0x25c3')]=!![];else _0x41bba1[_0xe9fc8c('0x8f0')]['type']===_0xe9fc8c('0x22f7')&&(_0x41bba1[_0xe9fc8c('0x1f54')]=_0x57d4d1()(_0x41bba1[_0xe9fc8c('0x26ce')])[_0xe9fc8c('0x243a')](0x1,_0xe9fc8c('0x2161')),_0x41bba1[_0xe9fc8c('0x25c3')]=!![]);_0x3c64a0();}function _0xd0f4b(){const _0x49aeb7=_0x282e02,_0x5729ba=_0x9e6de2();_0x41bba1['options'][_0x49aeb7('0x15b7')][_0x49aeb7('0x105d')](_0x5729ba),_0x8c48ac();}function _0xd6fe19(_0x2298e2){const _0x5af1de=_0x282e02;_0x41bba1[_0x5af1de('0x24be')]=_0x2298e2,_0x41bba1[_0x5af1de('0x24be')][_0x5af1de('0x1acd')]=_0x5af1de('0xc6f'),_0x41bba1[_0x5af1de('0x8f0')]=_0x36f548()[_0x5af1de('0x1ad4')](_0x41bba1['options'][_0x5af1de('0x1067')],[_0x5af1de('0x1909'),_0x41bba1[_0x5af1de('0x24be')]['name']]),_0x56d276(),_0x41bba1[_0x5af1de('0x257a')]=_0x36f548()[_0x5af1de('0x1ad4')](_0x41bba1[_0x5af1de('0x1174')],[_0x5af1de('0x19fd'),_0x41bba1[_0x5af1de('0x24be')][_0x5af1de('0x1f2a')][_0x5af1de('0x553')]]),_0x41bba1[_0x5af1de('0x8f0')]['type']===_0x5af1de('0x22f7')&&typeof _0x41bba1['pendingCondition'][_0x5af1de('0x10cc')]===_0x5af1de('0x2380')?(_0x41bba1['value']=new Date(_0x41bba1[_0x5af1de('0x24be')][_0x5af1de('0x10cc')]),_0x41bba1['minDateRange']=_0x57d4d1()(_0x41bba1[_0x5af1de('0x10cc')])[_0x5af1de('0x23c1')](0x1,'day'),_0x41bba1[_0x5af1de('0x26ce')]=_0x41bba1[_0x5af1de('0x24be')]['endValue']?new Date(_0x41bba1[_0x5af1de('0x24be')][_0x5af1de('0x1f8e')]):undefined):(_0x41bba1['value']=_0x41bba1[_0x5af1de('0x24be')][_0x5af1de('0x10cc')],_0x41bba1[_0x5af1de('0x26ce')]=_0x41bba1['pendingCondition'][_0x5af1de('0x1f8e')]),_0x41bba1['isValidRange']=!![],_0x41bba1['isValidCondition']=!![];}function _0x1685e4(){const _0x5e5d2a=_0x282e02,_0x407326=_0x9e6de2(),_0xba8001=_0x36f548()['findIndex'](_0x41bba1[_0x5e5d2a('0x249a')][_0x5e5d2a('0x15b7')],'style');_0x41bba1[_0x5e5d2a('0x249a')][_0x5e5d2a('0x15b7')]['splice'](_0xba8001,0x1,_0x407326),_0x8c48ac(),_0x41bba1['pendingCondition']['style']=null,_0x41bba1[_0x5e5d2a('0x24be')]=undefined;}function _0x1b6a35(){const _0x4fcfc8=_0x282e02;_0x41bba1[_0x4fcfc8('0x24be')][_0x4fcfc8('0x1acd')]=null,_0x41bba1[_0x4fcfc8('0x24be')]=undefined;}function _0x165661(_0x539bd){const _0xd35825=_0x282e02;_0x539bd['style']=_0x539bd[_0xd35825('0xa4b')]?undefined:_0xd35825('0x213e'),_0x539bd['disabled']=!_0x539bd[_0xd35825('0xa4b')];}function _0x308d03(){const _0x45229a=_0x282e02;if(_0x36f548()[_0x45229a('0x1fc5')](_0x41bba1[_0x45229a('0x249a')]['conditions']))_0x41bba1[_0x45229a('0x502')]();}function _0x3b1858(){const _0x1945ba=_0x282e02;_0x41bba1[_0x1945ba('0x24be')]?_0x1685e4():_0xd0f4b();}function _0x9e6de2(){const _0x4994e9=_0x282e02;return{'name':_0x41bba1[_0x4994e9('0x8f0')]['name'],'operator':_0x16e40a[_0x4994e9('0x10c2')](_0x4994e9('0x241f')+_0x41bba1[_0x4994e9('0x257a')][_0x4994e9('0xc16')]),'value':_0x41bba1['value'],'endValue':_0x41bba1[_0x4994e9('0x26ce')],'displayValue':_0x41350e(_0x41bba1[_0x4994e9('0x10cc')]),'displayEndValue':_0x41350e(_0x41bba1[_0x4994e9('0x26ce')]),'query':{'column':_0x41bba1['selectedField'][_0x4994e9('0x6a3')],'operator':_0x41bba1[_0x4994e9('0x257a')][_0x4994e9('0x19fd')],'value':_0x1bb446()},'disabled':![]};}function _0x41350e(_0x6985a1){const _0x158a06=_0x282e02;let _0x2debea;if(!_0x6985a1)return undefined;switch(_0x41bba1[_0x158a06('0x8f0')][_0x158a06('0x19fd')]){case'date':_0x2debea=_0x57d4d1()(_0x6985a1)[_0x158a06('0x1826')]('YYYY-MM-DD');break;case _0x158a06('0xe83'):{const _0x50417a=_0x36f548()[_0x158a06('0x2171')](_0x6985a1,function(_0x5e4b25){return _0x5e4b25['name'];});_0x2debea=_0x41bba1['selectedOperator'][_0x158a06('0x19fd')]===_0x158a06('0x23de')?_0x50417a['join']('\x20or\x20'):_0x50417a[_0x158a06('0xa04')]('\x20and\x20');}break;case _0x158a06('0x2350'):_0x2debea=_0x6985a1['name'];break;case _0x158a06('0x282b'):_0x2debea=_0x41bba1[_0x158a06('0x257a')][_0x158a06('0x2488')]?_0x6985a1:_0x6985a1[_0x158a06('0x1b95')];break;default:_0x2debea=_0x6985a1;break;}return _0x2debea;}function _0x1bb446(){const _0x2033a7=_0x282e02,_0x3bc26c=_0x41bba1[_0x2033a7('0x10cc')],_0x172762=_0x41bba1[_0x2033a7('0x26ce')];let _0xd8bcef;switch(_0x41bba1['selectedField'][_0x2033a7('0x19fd')]){case'date':{const _0x28fe02=_0x57d4d1()(_0x3bc26c)['utcOffset'](0x0,!![])[_0x2033a7('0x1826')](_0x2033a7('0xe68'));if(_0x41bba1[_0x2033a7('0x257a')][_0x2033a7('0x19fd')]===_0x2033a7('0x1886')){const _0x73471f=_0x57d4d1()(_0x172762)['utcOffset'](0x0,!![])[_0x2033a7('0x1826')](_0x2033a7('0xe68'));_0xd8bcef=[_0x28fe02,_0x73471f];}else _0xd8bcef=_0x28fe02;}break;case _0x2033a7('0x139e'):_0xd8bcef=_0x41bba1[_0x2033a7('0x257a')][_0x2033a7('0x19fd')]===_0x2033a7('0x1886')?[_0x3bc26c,_0x172762]:_0x3bc26c;break;case _0x2033a7('0xe83'):{const _0x360c46=_0x41bba1[_0x2033a7('0x8f0')][_0x2033a7('0x249a')][_0x2033a7('0x485')]||'id';_0xd8bcef=_0x36f548()[_0x2033a7('0x2171')](_0x3bc26c,_0x360c46);}break;case _0x2033a7('0x2350'):_0xd8bcef=_0x3bc26c['id'];break;case _0x2033a7('0x282b'):_0xd8bcef=_0x41bba1[_0x2033a7('0x257a')][_0x2033a7('0x2488')]?_0x3bc26c:_0x3bc26c['id'];break;default:_0xd8bcef=_0x3bc26c;break;}return _0xd8bcef;}function _0x8c48ac(){const _0xae2a43=_0x282e02;_0x41bba1[_0xae2a43('0x10cc')]=null,_0x41bba1['endRangeValue']=null,_0x41bba1[_0xae2a43('0x37d')]=null,_0x41bba1[_0xae2a43('0x1f54')]=null,_0x41bba1[_0xae2a43('0x1687')]=![];}}const _0x4487d8=_0x3e3245;function _0x47a530(){const _0x1ef7e9=_0x21d0f5;return{'restrict':'E','scope':{'templatePath':_0x1ef7e9('0xba5'),'card':_0x1ef7e9('0x1d87'),'vm':_0x1ef7e9('0x1260')},'template':_0x1ef7e9('0x1dc8'),'compile':function(_0x4aa654){const _0x2262f1=_0x1ef7e9;return _0x4aa654[_0x2262f1('0x16d8')]('ms-card'),function _0x24ccc0(_0x3f050c,_0x473f8c){const _0x37c886=_0x2262f1;function _0x3b22f5(){_0x3f050c['$emit']('msCard::cardTemplateLoaded',_0x473f8c);}_0x3f050c[_0x37c886('0x1428')]=_0x3b22f5;};}};}const _0x350015=_0x47a530;;function _0x4e2056(){return{'restrict':'A','link':function(_0x238ebd,_0x5240c5,_0x3b1527){const _0x34b86c=a0_0xaf0c;_0x3b1527[_0x34b86c('0x2675')]('msChipColor',function(_0x24f9d9){const _0x2d4b7e=_0x34b86c,_0x5eae41=_0x5240c5['parent']()[_0x2d4b7e('0x1592')]();!_0x5eae41[_0x2d4b7e('0xe87')](_0x2d4b7e('0x455'))&&_0x5eae41['addClass'](_0x2d4b7e('0x455'));if(!_0x36f548()['isEmpty'](_0x24f9d9))_0x5eae41[_0x2d4b7e('0x16d8')](_0x24f9d9);else{const _0x3d212e=_0x5eae41[0x0][_0x2d4b7e('0xea7')]['split']('\x20'),_0x298d49=_0x3d212e['indexOf'](_0x2d4b7e('0x1487'));_0x3d212e[_0x2d4b7e('0x1e22')]=_0x298d49+0x1,_0x5eae41[0x0]['className']=_0x3d212e['join']('\x20');}});}};}const _0x5b1dbf=_0x4e2056,_0x1fbe17=_0x351988['p']+_0x21d0f5('0xbba'),_0x3af054=_0x351988['p']+_0x21d0f5('0x286d');;function _0x32a49f(){const _0x1da6e3=_0x21d0f5;return{'restrict':'E','scope':{'type':'=','disabled':'=','target':'=','prefix':'=','license':'='},'controller':[_0x1da6e3('0x1b80'),_0x1da6e3('0x5f2'),'$http',_0x1da6e3('0xb6b'),'$document',_0x1da6e3('0x1ca2'),_0x1da6e3('0x1150'),'toasty','api',function(_0x8c5af1,_0x5a4e27,_0x52a02d,_0x4ebf69,_0x5ee4f0,_0x491654,_0x430931,_0x370e3b,_0x53de5b){const _0x5ab3f8=_0x1da6e3;_0x8c5af1['currentUser']=_0x430931[_0x5ab3f8('0x2428')](),_0x8c5af1[_0x5ab3f8('0x1fb')]=function(){const _0x39bce2=_0x5ab3f8;return _0x8c5af1[_0x39bce2('0xc7a')]&&_0x8c5af1[_0x39bce2('0xc7a')][_0x39bce2('0x203c')]('@')<0x0&&_0x8c5af1[_0x39bce2('0xc7a')]!=_0x8c5af1[_0x39bce2('0x32a')][_0x39bce2('0x1a04')]&&_0x8c5af1[_0x39bce2('0xc7a')]!=_0x8c5af1[_0x39bce2('0x32a')]['name']&&(_0x8c5af1[_0x39bce2('0x32a')][_0x39bce2('0x1c14')]==0x0&&_0x8c5af1['currentUser']['phoneBarRemoteControl']||_0x8c5af1[_0x39bce2('0x32a')][_0x39bce2('0x1c14')]==0x2&&_0x8c5af1['license']['webrtc'])&&!_0x8c5af1[_0x39bce2('0xa4b')];};function _0x4d1c5f(_0xe1f1ca){const _0x160597=_0x5ab3f8;return _0x53de5b[_0x160597('0x21d9')][_0x160597('0x250d')]({'id':_0x8c5af1[_0x160597('0x32a')]['id']})[_0x160597('0x1549')]['then'](function(_0x3e0dbd){const _0x2cade2=_0x160597;if(_0x3e0dbd['count'])return _0x491654[_0x2cade2('0xb9')]({'controller':_0x2cade2('0x4a1'),'controllerAs':'vm','templateUrl':_0x3af054,'parent':angular['element'](_0x5ee4f0[_0x2cade2('0x1d2')]),'clickOutsideToClose':!![],'locals':{'prefixes':_0x3e0dbd,'required':_0x8c5af1['currentUser'][_0x2cade2('0x1ede')]}});})['then'](function(_0x2d83ff){const _0x2dffff=_0x160597;if(!_0x8c5af1[_0x2dffff('0x32a')]['phoneBarPrefixRequired']){if(_0x2d83ff&&_0x2d83ff!==-0x1)_0x5b60c6(_0x2d83ff+_0xe1f1ca);else!_0x2d83ff&&_0x5b60c6(_0xe1f1ca);}else _0x2d83ff&&_0x2d83ff!==-0x1&&_0x5b60c6(_0x2d83ff+_0xe1f1ca);});}function _0x5b60c6(_0x18a446){const _0x3ded75=_0x5ab3f8;switch(_0x8c5af1[_0x3ded75('0x32a')]['showWebBar']){case 0x0:return _0x38983b(_0x3ded75('0x1fb9')+(_0x8c5af1[_0x3ded75('0x32a')]['phoneBarRemoteControlPort']||_0x3ded75('0x16a7'))+_0x3ded75('0x22cd')+_0x3ec571(_0x18a446));case 0x2:return _0x5a4e27['$broadcast'](_0x3ded75('0x24aa'),{'target':_0x3ec571(_0x18a446)});default:break;}}_0x8c5af1[_0x5ab3f8('0x7c1')]=function(_0x321aa1){const _0x5049d9=_0x5ab3f8;return _0x8c5af1[_0x5049d9('0x32a')][_0x5049d9('0x1c14')]!==0x2?_0x4d1c5f(_0x321aa1):_0x5b60c6(_0x321aa1);},_0x8c5af1['transfer']=function(_0x2cfbe6){const _0x25545b=_0x5ab3f8;switch(_0x8c5af1[_0x25545b('0x32a')][_0x25545b('0x1c14')]){case 0x0:return _0x38983b('http://127.0.0.1:'+(_0x8c5af1[_0x25545b('0x32a')][_0x25545b('0x1e43')]||'9888')+_0x25545b('0x1220')+_0x3ec571(_0x2cfbe6));case 0x2:_0x5a4e27[_0x25545b('0x1c04')]('webrtc::transfer',{'target':_0x3ec571(_0x2cfbe6)});break;default:break;}};function _0x3ec571(_0x2eb894){const _0xa3a660=_0x5ab3f8;return!_0x36f548()[_0xa3a660('0x1a80')](_0x2eb894)?_0x2eb894[_0xa3a660('0x814')](/[^\w.+#*-]+/g,''):'';}function _0x38983b(_0x2031bc){const _0x28520a=_0x5ab3f8;return _0x52a02d[_0x28520a('0xbaa')](_0x2031bc)['success'](function(){const _0x119147=_0x28520a;_0x370e3b['success']({'title':'Successful\x20call','msg':_0x119147('0x1a6')});})['error'](function(){const _0x3429b2=_0x28520a;_0x370e3b[_0x3429b2('0x255')]({'title':_0x3429b2('0x15c0'),'msg':_0x4ebf69[_0x3429b2('0x10c2')]('CONTACTMANAGER.ERRORS.PHONEBAR_API')});});}}],'templateUrl':_0x1fbe17};}const _0x287494=_0x32a49f;_0x5258a9[_0x21d0f5('0x1e9a')]=['msDatepickerFixConfig'];function _0x81d963(){const _0x33980c=_0x21d0f5;_0x2566a7['$inject']=[_0x33980c('0xc09')];const _0x390050=this;let _0x1ac0ee={'formatter':function(_0x30d444){if(!_0x30d444)return'';return _0x30d444===''?_0x30d444:new Date(_0x30d444);},'parser':function(_0x10fb84){const _0x485504=_0x33980c;if(!_0x10fb84)return'';return _0x57d4d1()(_0x10fb84)[_0x485504('0x23c1')](_0x57d4d1()(_0x10fb84)[_0x485504('0x1fb1')](),'m')[_0x485504('0x1e16')]();}};function _0x2566a7(_0x4a75cc){_0x1ac0ee=angular['extend']({},_0x1ac0ee,_0x4a75cc);}_0x390050['config']=_0x2566a7,_0x390050[_0x33980c('0x27b1')]=function(){return _0x1ac0ee;};}function _0x5258a9(_0xb82403){const _0x104ad7=_0x21d0f5;return{'require':_0x104ad7('0xe4d'),'priority':0x1,'link':function(_0x487f37,_0x2d7a70,_0x1199f4,_0x51e861){const _0x33280e=_0x104ad7;_0x51e861[_0x33280e('0x1956')]['push'](_0xb82403['formatter']),_0x51e861[_0x33280e('0x178f')]['push'](_0xb82403['parser']);}};}_0x296cd1['$inject']=['api'];function _0x296cd1(_0x2cf0cf){return{'restrict':'E','scope':{'id':'=','model':'=','element':'=','title':'=','path':'='},'replace':!![],'link':function(_0x14130a,_0x5e6998){const _0x964c06=a0_0xaf0c;let _0x2832fd=![];const _0x34397d={};_0x34397d['id']=_0x14130a['id'];!_0x36f548()[_0x964c06('0x1a80')](_0x14130a['path'])&&(_0x34397d[_0x964c06('0x24e7')]=_0x14130a[_0x964c06('0x24e7')]);const _0x2d38a3=document[_0x964c06('0x2773')](_0x14130a['element']);_0x2d38a3[_0x964c06('0x1e1b')](_0x964c06('0x2a'),_0x964c06('0x3e6')),_0x2d38a3[_0x964c06('0x1e1b')]('controls',_0x964c06('0x204c')),_0x14130a[_0x964c06('0x1e73')]===_0x964c06('0x1df9')&&_0x2d38a3[_0x964c06('0x1e1b')](_0x964c06('0x1acd'),_0x964c06('0x1c31')),_0x14130a[_0x964c06('0x1e73')]===_0x964c06('0x12f6')&&_0x2d38a3[_0x964c06('0x1e1b')](_0x964c06('0x1acd'),_0x964c06('0x123d')),_0x2d38a3[_0x964c06('0x1e1b')](_0x964c06('0x134b'),_0x14130a[_0x964c06('0x134b')]),_0x2d38a3[_0x964c06('0x1e1b')](_0x964c06('0x241a'),'\x20'),_0x2d38a3[_0x964c06('0x899')]=function(_0x563020){const _0x51fdfa=_0x964c06;!_0x2832fd&&(_0x2832fd=!![],_0x563020[_0x51fdfa('0x1eab')](),_0x2cf0cf[_0x14130a[_0x51fdfa('0x60d')]][_0x51fdfa('0x149c')](_0x34397d)[_0x51fdfa('0x1549')][_0x51fdfa('0x11bf')](function(_0x1676b1){const _0x25fced=_0x51fdfa,_0x416d8e=[_0x1676b1[_0x25fced('0x1e94')]],_0x139202=new Blob(_0x416d8e,{'type':_0x1676b1[_0x25fced('0x19fd')]});_0x2d38a3[_0x25fced('0x1e1b')](_0x25fced('0x19fd'),_0x1676b1[_0x25fced('0x19fd')]),_0x2d38a3[_0x25fced('0x1e1b')](_0x25fced('0x241a'),URL['createObjectURL'](_0x139202)),_0x2d38a3['play']();})[_0x51fdfa('0x151d')](function(_0x5420cb){const _0x383e34=_0x51fdfa;console[_0x383e34('0x255')](_0x5420cb);}));},_0x5e6998[_0x964c06('0x155a')](_0x2d38a3);}};}const _0x45f3bb=_0x296cd1,_0x3179eb=_0x351988['p']+_0x21d0f5('0x9bc');;function _0xade24f(){const _0x4c776a=_0x21d0f5;return{'restrict':'E','scope':{'options':'='},'controller':[_0x4c776a('0x1b80'),function(_0xaad58f){const _0x3558b9=_0x4c776a;_0xaad58f[_0x3558b9('0x36e')]=function(_0x3c6721,_0x4003b2,_0x1aadf0){const _0x2d6da8=_0x3558b9;if(_0x4003b2[_0x2d6da8('0x285e')])return;else{if(typeof _0x3c6721[_0x2d6da8('0xde9')]!==_0x2d6da8('0x13e9')&&_0x3c6721[_0x2d6da8('0xde9')])return _0x1aadf0?_0xaad58f['transfer'](_0x4003b2[_0x2d6da8('0x26cc')],_0x4003b2[_0x2d6da8('0x22')],_0x4003b2[_0x2d6da8('0x26cc')][_0x2d6da8('0x203c')](_0x3c6721),_0x1aadf0):_0xaad58f[_0x2d6da8('0x792')](_0x4003b2[_0x2d6da8('0x22')],_0x4003b2['selectedItems'],_0x4003b2[_0x2d6da8('0x22')][_0x2d6da8('0x203c')](_0x3c6721),_0x1aadf0);}},_0xaad58f[_0x3558b9('0x792')]=function(_0x5e0277,_0x26b7e1,_0x293018,_0xc9c2b1){const _0x5d7300=_0x3558b9;let _0x181cfb=[];if(_0x293018>=0x0)_0x181cfb[_0x5d7300('0x105d')](_0x5e0277[_0x293018]),_0x26b7e1['push'](_0x5e0277[_0x293018]),_0x5e0277[_0x5d7300('0x1ae')](_0x293018,0x1);else{for(let _0xfb2b02=0x0;_0xfb2b02<_0x5e0277[_0x5d7300('0x1e22')];_0xfb2b02++){typeof _0x5e0277[_0xfb2b02]['isValid']!=='undefined'&&_0x5e0277[_0xfb2b02][_0x5d7300('0xde9')]&&_0x26b7e1[_0x5d7300('0x105d')](_0x5e0277[_0xfb2b02]);}for(let _0x358882=_0x5e0277['length']-0x1;_0x358882>=0x0;_0x358882--){_0x5e0277[_0x358882][_0x5d7300('0xde9')]&&_0x5e0277[_0x5d7300('0x1ae')](_0x358882,0x1);}_0x181cfb=_0x26b7e1;}_0xaad58f['options'][_0x5d7300('0x1b6a')]&&_0xaad58f[_0x5d7300('0x249a')]['transferCallback'](_0x181cfb,_0xc9c2b1);},_0xaad58f['getLine']=function(_0x2b221f,_0x268ebd){const _0x43165b=_0x3558b9;let _0x53cc6f='';if(_0x36f548()[_0x43165b('0x1a80')](_0x268ebd))return _0x53cc6f;if(_0x36f548()['isArray'](_0x268ebd)){for(let _0x2f6374=0x0;_0x2f6374<_0x268ebd['length'];_0x2f6374++){_0x53cc6f+='\x20'+(_0x2b221f[_0x268ebd[_0x2f6374]]?_0x2b221f[_0x268ebd[_0x2f6374]]:'');}return _0x53cc6f;}else return _0x2b221f[_0x268ebd]?_0x2b221f[_0x268ebd]:'';};}],'templateUrl':_0x3179eb};}const _0xf815ab=_0xade24f;_0x5e4170['$inject']=[_0x21d0f5('0xb6b')];function _0x5e4170(_0x4fe5c1){const _0x58023b=_0x21d0f5;return{'restrict':'E','replace':!![],'scope':{'onReply':'&','ngModel':'=','ctrlMethods':'=','pickerPosition':'=','search':'=','recentEmojis':'=','placeholder':'='},'template':_0x58023b('0x1fb8'),'link':function(_0x1e0fb3,_0x115894){const _0x163598=_0x58023b,_0x2d971e=_0x115894[_0x163598('0x52c')]({'pickerPosition':_0x1e0fb3[_0x163598('0x24c')],'search':_0x1e0fb3[_0x163598('0xce2')],'recentEmojis':_0x1e0fb3[_0x163598('0x1f74')],'placeholder':_0x4fe5c1['instant'](_0x1e0fb3[_0x163598('0x1772')]||_0x163598('0x2246')),'attributes':{'spellcheck':!![]},'events':{'keypress':function(_0x3d3c71,_0x3d11dd){const _0x431224=_0x163598;_0x1e0fb3[_0x431224('0xe4d')]=this[_0x431224('0x178b')](),_0x1e0fb3['onReply']({'event':_0x3d11dd,'body':this[_0x431224('0x178b')]()});},'emojibtn_click':function(){const _0x8ef30e=_0x163598;_0x1e0fb3[_0x8ef30e('0xe4d')]=this[_0x8ef30e('0x178b')]();}}});_0x1e0fb3[_0x163598('0xe4d')]&&_0x2d971e[0x0][_0x163598('0x52c')][_0x163598('0x1201')](_0x1e0fb3['ngModel']),_0x1e0fb3['internalControl']=_0x1e0fb3['ctrlMethods']||{},_0x1e0fb3[_0x163598('0x1508')]['setText']=function(_0x535815){_0x2d971e[0x0]['emojioneArea']['setText'](_0x535815);},_0x1e0fb3['internalControl']['getText']=function(){const _0x519d34=_0x163598;return _0x2d971e[0x0][_0x519d34('0x52c')]['getText']();},_0x1e0fb3['$watch'](_0x163598('0xe4d'),function(_0x5ec807){const _0x2baf02=_0x163598;!_0x5ec807&&_0x2d971e[0x0][_0x2baf02('0x52c')][_0x2baf02('0x1201')]('');});}};}const _0x4ec7eb=_0x5e4170,_0x3ea835=_0x351988['p']+_0x21d0f5('0x1f11');;function _0x360b03(){const _0x23806c=_0x21d0f5;return{'restrict':'E','scope':{'ngModel':'='},'controller':[_0x23806c('0x1b80'),function(_0x3f8c56){const _0x43f64a=_0x23806c;_0x3f8c56[_0x43f64a('0x1db8')]=[{'option':_0x43f64a('0xfc1'),'value':_0x43f64a('0x8f1')},{'option':_0x43f64a('0x15e4'),'value':_0x43f64a('0xd28')},{'option':'Calibri','value':_0x43f64a('0x2452')},{'option':_0x43f64a('0xed2'),'value':'Comic\x20Sans\x20MS,cursive'},{'option':_0x43f64a('0x1375'),'value':_0x43f64a('0x27da')},{'option':_0x43f64a('0x2423'),'value':'Georgia,serif'},{'option':_0x43f64a('0x13ae'),'value':'Lucida\x20Sans\x20Unicode,Lucida\x20Grande,sans-serif'},{'option':_0x43f64a('0xd2d'),'value':_0x43f64a('0x6e2')},{'option':_0x43f64a('0x1d26'),'value':_0x43f64a('0x1b10')},{'option':_0x43f64a('0x256a'),'value':_0x43f64a('0x21ce')},{'option':_0x43f64a('0xfdb'),'value':_0x43f64a('0xc6a')}];}],'templateUrl':_0x3ea835};}const _0x443445=_0x360b03;function _0x4487b6(){const _0x46ad31=_0x21d0f5,_0x46c95f=this;_0x46c95f[_0x46ad31('0xea3')]=[],_0x46c95f[_0x46ad31('0xfd')]=0x0,_0x46c95f[_0x46ad31('0x18b')]=_0x131c05,_0x46c95f[_0x46ad31('0x246d')]=_0x192696,_0x46c95f[_0x46ad31('0xdb8')]=_0x1a955f,_0x46c95f[_0x46ad31('0x1ba3')]=_0x2af572,_0x46c95f[_0x46ad31('0x1af1')]=_0x2db8a7,_0x46c95f[_0x46ad31('0xe32')]=_0x205f16,_0x46c95f[_0x46ad31('0x1af6')]=_0x501610,_0x46c95f['isLastStep']=_0x58f746,_0x46c95f['currentStepInvalid']=_0x44cf94,_0x46c95f[_0x46ad31('0xc0d')]=_0x2efc1e,_0x46c95f[_0x46ad31('0x119c')]=_0x42eebe,_0x46c95f[_0x46ad31('0x1ffc')]=_0x492e5a;function _0x131c05(_0x2856f4){const _0x4d4785=_0x46ad31;_0x46c95f[_0x4d4785('0xea3')][_0x4d4785('0x105d')](_0x2856f4);}function _0x192696(){const _0x1e4dc1=_0x46ad31;if(_0x501610())return;_0x46c95f[_0x1e4dc1('0xfd')]--;}function _0x1a955f(){if(_0x58f746())return;_0x46c95f['selectedIndex']++;}function _0x2af572(){const _0x54975d=_0x46ad31;_0x46c95f[_0x54975d('0xfd')]=0x0;}function _0x2db8a7(){const _0x15fbb8=_0x46ad31;_0x46c95f[_0x15fbb8('0xfd')]=_0x205f16()-0x1;}function _0x205f16(){const _0x2a2dd1=_0x46ad31;return _0x46c95f[_0x2a2dd1('0xea3')][_0x2a2dd1('0x1e22')];}function _0x501610(){const _0x4b3d37=_0x46ad31;return _0x46c95f[_0x4b3d37('0xfd')]===0x0;}function _0x58f746(){return _0x46c95f['selectedIndex']===_0x205f16()-0x1;}function _0x44cf94(){const _0x346b10=_0x46ad31;return angular[_0x346b10('0x17c8')](_0x46c95f[_0x346b10('0xea3')][_0x46c95f[_0x346b10('0xfd')]])&&_0x46c95f[_0x346b10('0xea3')][_0x46c95f[_0x346b10('0xfd')]][_0x346b10('0xfa6')];}function _0x2efc1e(){const _0x6ceb7c=_0x46ad31;return _0x46c95f[_0x6ceb7c('0xfd')]>0x0&&angular[_0x6ceb7c('0x17c8')](_0x46c95f['forms'][_0x46c95f[_0x6ceb7c('0xfd')]-0x1])&&_0x46c95f[_0x6ceb7c('0xea3')][_0x46c95f[_0x6ceb7c('0xfd')]-0x1][_0x6ceb7c('0xfa6')];}function _0x42eebe(){const _0xe0856e=_0x46ad31;for(let _0x283265=0x0;_0x283265<_0x46c95f['forms'][_0xe0856e('0x1e22')];_0x283265++){if(_0x46c95f[_0xe0856e('0xea3')][_0x283265]['$invalid'])return!![];}return![];}function _0x492e5a(){const _0x52db69=_0x46ad31;_0x46c95f[_0x52db69('0xfd')]=0x0;for(let _0x342ec6=0x0;_0x342ec6<_0x46c95f[_0x52db69('0xea3')][_0x52db69('0x1e22')];_0x342ec6++){_0x46c95f['forms'][_0x342ec6][_0x52db69('0x2345')](),_0x46c95f[_0x52db69('0xea3')][_0x342ec6][_0x52db69('0x1066')]();}}}function _0x26e3a6(){return{'restrict':'E','scope':!![],'controller':'MsFormWizardController\x20as\x20msWizard','compile':function(_0x368423){const _0x1b6151=a0_0xaf0c;return _0x368423[_0x1b6151('0x16d8')](_0x1b6151('0x770')),function _0xd08092(){};}};}function _0x3e7a80(){const _0x317a00=_0x21d0f5;return{'restrict':'A','require':[_0x317a00('0xcc7'),'^msFormWizard'],'compile':function(_0x979fa){const _0x4688f9=_0x317a00;return _0x979fa[_0x4688f9('0x16d8')](_0x4688f9('0x1f10')),function _0x202647(_0x59058f,_0x4c6213,_0x226be7,_0xb037f9){const _0x21e387=_0x4688f9,_0x5c8905=_0xb037f9[0x0],_0x47bb96=_0xb037f9[0x1];_0x47bb96[_0x21e387('0x18b')](_0x5c8905);};}};}const _0x735e7b=_0x351988['p']+_0x21d0f5('0x104f');_0x32c861['$inject']=[_0x21d0f5('0x1b30')];function _0x32c861(_0x407344){return{'restrict':'E','scope':{'onClose':'&'},'transclude':!![],'templateUrl':_0x735e7b,'link':function(_0x43c07b,_0x6e0765){const _0x4d3256=a0_0xaf0c,_0x549e17=_0x407344['find'](_0x4d3256('0x9f7')),_0x4e6fc0=_0x4d3256('0x9f7');_0x549e17[_0x4d3256('0x16d8')](_0x4e6fc0);function _0x3c07ab(){const _0x3611a4=_0x4d3256;_0x549e17['removeClass'](_0x4e6fc0),_0x6e0765['remove'](),_0x43c07b[_0x3611a4('0x20cc')]&&_0x43c07b[_0x3611a4('0x20cc')](),_0x43c07b[_0x3611a4('0x4f7')]();}_0x43c07b['removeInfoBar']=_0x3c07ab;}};}const _0x5e1033=_0x32c861;_0x3b9251['$inject']=[_0x21d0f5('0x17f5')],_0x2a9c3a['$inject']=[_0x21d0f5('0x1b80'),_0x21d0f5('0x2143'),_0x21d0f5('0x1ef2'),_0x21d0f5('0x17f5')];function _0x2a9c3a(_0xabca55,_0xb45c7e,_0x5bc1a0,_0x20c84b){const _0x575ba5=_0x21d0f5,_0x3ae55e=this,_0x2dd314={'columnCount':0x5,'respectItemOrder':![],'reLayoutDebounce':0x190,'responsive':{'md':0x3,'sm':0x2,'xs':0x1}};let _0x25834f=!![];_0x3ae55e[_0x575ba5('0x249a')]=null,_0x3ae55e[_0x575ba5('0x18d0')]=[],_0x3ae55e[_0x575ba5('0x2156')]='',_0x3ae55e['columnWidth']='',_0x3ae55e['items']=[],_0x3ae55e[_0x575ba5('0x5c1')]=_0x81530b,_0x3ae55e['initialize']=_0x551c17,_0x3ae55e[_0x575ba5('0x1216')]=_0x4c8fba;function _0x551c17(){const _0x29ec05=_0x575ba5;_0x3ae55e[_0x29ec05('0x249a')]=!_0x3ae55e['options']?_0x2dd314:angular[_0x29ec05('0x218f')](_0x2dd314,_0x3ae55e[_0x29ec05('0x249a')]),_0x2ba69e();}_0xabca55[_0x575ba5('0x12d8')](_0x575ba5('0x2823'),function(){_0x81530b();});function _0x4c8fba(_0x5b61c7,_0x128e56){const _0x2914af=_0x575ba5;if(typeof imagesLoaded!==_0x2914af('0x13e9')){const _0x40e6ca=_0xb45c7e[_0x2914af('0x2fb')](_0x5b61c7);_0x40e6ca['on'](_0x2914af('0x1d4c'),function(){_0x128e56();});}else _0x128e56();}function _0x2ba69e(){const _0x1faf17=_0x575ba5;_0xabca55[_0x1faf17('0x2087')](function(){const _0x550f22=_0x1faf17;return _0x3ae55e[_0x550f22('0x18d0')][_0x550f22('0x1ebf')]();},function(_0x282ae9,_0x258a42){_0x282ae9!==_0x258a42&&_0x81530b();});}function _0x81530b(){const _0x576c09=_0x575ba5;_0x25834f&&_0x20c84b['cancel'](_0x25834f);_0x25834f=_0x20c84b(function(){const _0x227233=a0_0xaf0c;_0x5912bc(),_0xabca55[_0x227233('0x1c04')]('msMasonry:relayoutFinished');},_0x3ae55e[_0x576c09('0x249a')][_0x576c09('0x24a0')]);function _0x5912bc(){const _0x45f92f=_0x576c09;_0x3ae55e[_0x45f92f('0x2156')]=_0x3ae55e[_0x45f92f('0x18d0')][0x0][_0x45f92f('0x14f0')](),_0x5aaa2f(),_0xabca55[_0x45f92f('0x1c04')](_0x45f92f('0x6c2')),_0x3ae55e[_0x45f92f('0x22')]=_0x3ae55e[_0x45f92f('0x18d0')][_0x45f92f('0x1ad4')](_0x45f92f('0x1ba9'));const _0x46bde5=Array['apply'](null,new Array(_0x3ae55e[_0x45f92f('0x1cd9')]))[_0x45f92f('0x2171')](function(){return 0x0;});for(let _0x423308=0x0;_0x423308<_0x3ae55e['items']['length'];_0x423308++){let _0x43f1f2=_0x3ae55e[_0x45f92f('0x22')][_0x423308],_0x55ba17,_0x1959e1;_0x43f1f2=angular[_0x45f92f('0x1e73')](_0x43f1f2);_0x43f1f2[_0x45f92f('0x1626')]()&&_0x43f1f2[_0x45f92f('0x1626')]()[_0x45f92f('0x1c04')](_0x45f92f('0x822'));_0x43f1f2['css']({'width':_0x3ae55e[_0x45f92f('0x1e26')]});_0x3ae55e[_0x45f92f('0x249a')][_0x45f92f('0x27d3')]?(_0x55ba17=_0x423308%_0x3ae55e[_0x45f92f('0x1cd9')],_0x1959e1=_0x46bde5[_0x55ba17]):(_0x1959e1=Math['min']['apply'](Math,_0x46bde5),_0x55ba17=_0x46bde5['indexOf'](_0x1959e1));_0x46bde5[_0x55ba17]=_0x1959e1+_0x43f1f2[0x0][_0x45f92f('0x14f0')]()[_0x45f92f('0xdfb')];const _0x36bb0c=Math[_0x45f92f('0xe89')](_0x55ba17*_0x3ae55e[_0x45f92f('0x1e26')]),_0x8389c7=_0x1959e1;_0x43f1f2[_0x45f92f('0x1147')]({'transform':_0x45f92f('0x1445')+_0x36bb0c+_0x45f92f('0x998')+_0x8389c7+'px,0px)'}),_0x43f1f2[_0x45f92f('0x16d8')](_0x45f92f('0x78f')),_0x43f1f2[_0x45f92f('0x1626')]()&&_0x43f1f2['scope']()[_0x45f92f('0x1c04')](_0x45f92f('0x1897'));}}}function _0x5aaa2f(){const _0x1529c4=_0x575ba5;_0x3ae55e[_0x1529c4('0x1cd9')]=_0x3ae55e[_0x1529c4('0x249a')][_0x1529c4('0x1cd9')];if(_0x5bc1a0('gt-md'))_0x3ae55e[_0x1529c4('0x1cd9')]=_0x3ae55e['options'][_0x1529c4('0x1cd9')];else{if(_0x5bc1a0('md'))_0x3ae55e[_0x1529c4('0x1cd9')]=_0x3ae55e[_0x1529c4('0x1cd9')]>_0x3ae55e[_0x1529c4('0x249a')][_0x1529c4('0x8fc')]['md']?_0x3ae55e[_0x1529c4('0x249a')][_0x1529c4('0x8fc')]['md']:_0x3ae55e[_0x1529c4('0x1cd9')];else _0x5bc1a0('sm')?_0x3ae55e[_0x1529c4('0x1cd9')]=_0x3ae55e[_0x1529c4('0x1cd9')]>_0x3ae55e[_0x1529c4('0x249a')]['responsive']['sm']?_0x3ae55e[_0x1529c4('0x249a')][_0x1529c4('0x8fc')]['sm']:_0x3ae55e[_0x1529c4('0x1cd9')]:_0x3ae55e[_0x1529c4('0x1cd9')]=_0x3ae55e[_0x1529c4('0x249a')][_0x1529c4('0x8fc')]['xs'];}_0x3ae55e[_0x1529c4('0x1e26')]=_0x3ae55e[_0x1529c4('0x2156')][_0x1529c4('0x1ebf')]/_0x3ae55e[_0x1529c4('0x1cd9')];}}function _0x3b9251(_0x4dfee6){const _0x33379b=_0x21d0f5;return{'restrict':_0x33379b('0x1b36'),'controller':_0x33379b('0x231'),'compile':_0x4621c5};function _0x4621c5(_0xf51e0d,_0x2571c5){return{'pre':function _0x27a21e(_0x36c226,_0x3b090e,_0x1d531b,_0x356770){const _0x3cceb0=a0_0xaf0c;_0x356770[_0x3cceb0('0x249a')]=angular[_0x3cceb0('0xa03')](_0x2571c5[_0x3cceb0('0x249a')]||'{}'),_0x356770['container']=_0xf51e0d;},'post':function _0x488587(_0x105567,_0x1e5ea7,_0x15d229,_0x3cf528){_0x4dfee6(function(){const _0x382a5e=a0_0xaf0c;_0x3cf528[_0x382a5e('0xd82')]();});}};}}function _0x27c324(){const _0x36ab7e=_0x21d0f5;return{'restrict':_0x36ab7e('0x1b36'),'require':_0x36ab7e('0x1eb4'),'priority':0x1,'link':_0x187145};function _0x187145(_0x32a467,_0x2fca19,_0x3904da,_0x407f77){const _0x27ea42=_0x36ab7e;_0x407f77[_0x27ea42('0x1216')](_0x2fca19,function(){const _0x21746f=_0x27ea42;_0x407f77[_0x21746f('0x5c1')]();}),_0x32a467[_0x27ea42('0x12d8')](_0x27ea42('0x1897'),function(){const _0x37244d=_0x27ea42;_0x32a467[_0x37244d('0x2087')](function(){const _0x193338=_0x37244d;return _0x2fca19[_0x193338('0xdfb')]();},function(_0x49a078,_0x540384){const _0x6b2c42=_0x37244d;_0x49a078!==_0x540384&&_0x407f77[_0x6b2c42('0x5c1')]();});}),_0x2fca19['on'](_0x27ea42('0x4f7'),function(){_0x407f77['reLayout']();});}}const _0x3f0874=_0x351988['p']+_0x21d0f5('0x12df');_0x85e31e[_0x21d0f5('0x1e9a')]=['$scope',_0x21d0f5('0x14c'),_0x21d0f5('0x190f'),_0x21d0f5('0x15d1')];function _0x85e31e(_0x2a343a,_0x2801fb,_0x3ff964,_0x14ca33){const _0xcf1ffb=_0x21d0f5,_0x56a6fb=this;_0x56a6fb[_0xcf1ffb('0x2034')]=_0x2801fb,_0x56a6fb[_0xcf1ffb('0x334')]=![],_0x56a6fb['selectedHues']=![],_0x2a343a[_0xcf1ffb('0x117d')]={},_0x56a6fb[_0xcf1ffb('0x1936')]=_0x4c0669,_0x56a6fb['selectColor']=_0x1fac0e,_0x56a6fb[_0xcf1ffb('0x1574')]=_0x473bb4,_0x2a343a[_0xcf1ffb('0x2087')](_0xcf1ffb('0xe4d'),_0x4f4b86);function _0x4c0669(_0x4f2201,_0x3d5c31){const _0x2d820d=_0xcf1ffb;_0x56a6fb[_0x2d820d('0x334')]=_0x4f2201,_0x56a6fb[_0x2d820d('0xd95')]=_0x3d5c31;}function _0x1fac0e(_0x550aa4,_0x354217){const _0x5d8d19=_0xcf1ffb;_0x1b3293(_0x550aa4,_0x354217),_0x1bd73b(),_0x3ff964[_0x5d8d19('0x237e')]();}function _0x473bb4(){const _0x4c8256=_0xcf1ffb;_0x56a6fb[_0x4c8256('0xdf0')]={'palette':'','hue':'','class':''},_0x4c0669(![],![]),_0x1bd73b();}function _0x4f4b86(){const _0xf881d2=_0xcf1ffb;if(!_0x56a6fb['modelCtrl'][_0xf881d2('0x1297')]||_0x56a6fb[_0xf881d2('0x13e4')][_0xf881d2('0x1297')]===''){_0x473bb4();return;}let _0x9160f1,_0x22afd2;if(_0x56a6fb[_0xf881d2('0x1f47')]===_0xf881d2('0x10a4')){const _0x5568f3=_0x56a6fb['modelCtrl']['$viewValue']['split']('-');_0x5568f3['length']>=0x5?(_0x9160f1=_0x5568f3[0x1]+'-'+_0x5568f3[0x2],_0x22afd2=_0x5568f3[0x3]):(_0x9160f1=_0x5568f3[0x1],_0x22afd2=_0x5568f3[0x2]);}else _0x56a6fb['msModelType']===_0xf881d2('0x1ec3')&&(_0x9160f1=_0x56a6fb['modelCtrl'][_0xf881d2('0x1297')]['palette'],_0x22afd2=_0x56a6fb[_0xf881d2('0x13e4')][_0xf881d2('0x1297')][_0xf881d2('0x19d5')]||0x1f4);_0x1b3293(_0x9160f1,_0x22afd2);}function _0x1b3293(_0x5858b6,_0x46cdd0){const _0x2bb743=_0xcf1ffb;_0x56a6fb[_0x2bb743('0xdf0')]={'palette':_0x5858b6,'hue':_0x46cdd0,'class':_0x2bb743('0x1d64')+_0x5858b6+'-'+_0x46cdd0+'-bg','bgColorValue':_0x14ca33[_0x2bb743('0x1145')](_0x56a6fb[_0x2bb743('0x2034')][_0x5858b6][_0x46cdd0]['value']),'fgColorValue':_0x14ca33['rgba'](_0x56a6fb[_0x2bb743('0x2034')][_0x5858b6][_0x46cdd0][_0x2bb743('0x6a2')])},_0x56a6fb[_0x2bb743('0x1f47')]===_0x2bb743('0x1ec3')&&!angular[_0x2bb743('0x932')](_0x56a6fb[_0x2bb743('0xdf0')],_0x56a6fb['modelCtrl'][_0x2bb743('0x1297')])&&_0x1bd73b(),_0x4c0669(_0x5858b6,_0x56a6fb[_0x2bb743('0x2034')][_0x5858b6]),_0x2a343a['$selectedColor']=_0x56a6fb[_0x2bb743('0xdf0')];}function _0x1bd73b(){const _0x5f1134=_0xcf1ffb;if(_0x56a6fb[_0x5f1134('0x1f47')]==='class')_0x56a6fb[_0x5f1134('0x13e4')][_0x5f1134('0x12ea')](_0x56a6fb[_0x5f1134('0xdf0')]['class']);else _0x56a6fb[_0x5f1134('0x1f47')]===_0x5f1134('0x1ec3')&&_0x56a6fb[_0x5f1134('0x13e4')]['$setViewValue'](_0x56a6fb[_0x5f1134('0xdf0')]);}}function _0x5f043b(){const _0x576958=_0x21d0f5;return{'require':[_0x576958('0x15fa'),_0x576958('0xe4d')],'restrict':'E','scope':{'ngModel':'=','msModelType':'@?'},'controller':_0x576958('0x24b9'),'transclude':!![],'templateUrl':_0x3f0874,'link':function(_0x46d8f1,_0xc3dfbb,_0x21295f,_0x516bee,_0x2fdd96){const _0x3767aa=_0x576958,_0x374220=_0x516bee[0x0];_0x374220[_0x3767aa('0x13e4')]=_0x516bee[0x1],_0x374220['msModelType']=_0x46d8f1[_0x3767aa('0x1f47')]||_0x3767aa('0x10a4'),_0x2fdd96(_0x46d8f1,function(_0xd6b818){const _0x15b6ff=_0x3767aa;_0xd6b818=_0xd6b818[_0x15b6ff('0xdb4')](function(_0x4dec6a,_0x388238){const _0x2e202c=_0x15b6ff;return _0x388238[_0x2e202c('0x1471')]===0x1?!![]:![];}),_0xd6b818[_0x15b6ff('0x1e22')]&&_0xc3dfbb[_0x15b6ff('0x1ad4')](_0x15b6ff('0x2731'))[_0x15b6ff('0x156f')](_0xd6b818);});}};}_0x26f531[_0x21d0f5('0x1e9a')]=['$rootScope','$q',_0x21d0f5('0x17b8'),'$state'],_0x4bcdc3[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x5f2'),_0x21d0f5('0xdbf'),'msNavFoldService'],_0x48f578[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b30'),_0x21d0f5('0x5f2'),_0x21d0f5('0x2084')];function _0x136ecd(){let _0x4c4e1e={};const _0x142ec0={'setFoldable':_0xc8cce7,'isNavFoldedOpen':_0x3f048,'toggleFold':_0x1f0840,'openFolded':_0x11f480,'closeFolded':_0xdae4db};return _0x142ec0;function _0xc8cce7(_0x2e3da0,_0x2a0842){_0x4c4e1e={'scope':_0x2e3da0,'element':_0x2a0842};}function _0x3f048(){const _0x4caee8=a0_0xaf0c;return _0x4c4e1e[_0x4caee8('0x1626')][_0x4caee8('0x1307')]();}function _0x1f0840(){const _0xc0fa49=a0_0xaf0c;_0x4c4e1e[_0xc0fa49('0x1626')][_0xc0fa49('0xe3a')]();}function _0x11f480(){const _0x19d3ff=a0_0xaf0c;_0x4c4e1e[_0x19d3ff('0x1626')][_0x19d3ff('0x928')]();}function _0xdae4db(){const _0x171a49=a0_0xaf0c;_0x4c4e1e[_0x171a49('0x1626')][_0x171a49('0x2632')]();}}function _0x48f578(_0x3191fe,_0x56275a,_0x23b3fe){return{'restrict':'A','link':function(_0x3a2f7e,_0x26106c,_0x585737){const _0x3e08aa=a0_0xaf0c;let _0x387882=_0x585737[_0x3e08aa('0xe47')]==='true',_0x295371=![];const _0x11a75d=angular[_0x3e08aa('0x1e73')](_0x3191fe[0x0][_0x3e08aa('0x1d2')]),_0x2adf3d=angular['element'](''),_0x1b89ed=angular[_0x3e08aa('0x1e73')](_0x3e08aa('0x6ab')),_0x4483b6=_0x26106c[_0x3e08aa('0x1592')]();_0x23b3fe['setFoldable'](_0x3a2f7e,_0x26106c,_0x387882);_0x387882?_0x107269():_0x1e23b3();function _0x2a7bc6(){return _0x295371;}function _0x36cf89(){_0x387882=!_0x387882,_0x387882?_0x107269():_0x1e23b3();}function _0x107269(){const _0x513523=_0x3e08aa;_0x11a75d['addClass'](_0x513523('0x1b8b')),_0x56275a[_0x513523('0x1c04')]('msNav::forceCollapse'),_0x26106c[_0x513523('0x1c70')](0x0),_0x4483b6['append'](_0x2adf3d),_0x2adf3d['on']('mouseenter\x20touchstart',function(_0x4987fa){_0x3ab1aa(_0x4987fa),_0x295371=!![];});}function _0x3ab1aa(_0xb873c5){const _0x523d84=_0x3e08aa;angular[_0x523d84('0x17c8')](_0xb873c5)&&_0xb873c5[_0x523d84('0x1eab')](),_0x11a75d['addClass']('ms-nav-folded-open'),_0x56275a[_0x523d84('0x1c04')](_0x523d84('0xec7')),_0x4483b6[_0x523d84('0x1ad4')](_0x2adf3d)['remove'](),_0x4483b6['parent']()[_0x523d84('0x155a')](_0x1b89ed),_0x1b89ed['on'](_0x523d84('0x2593'),function(_0x3d3a02){_0x25b61c(_0x3d3a02),_0x295371=![];});}function _0x25b61c(_0x152066){const _0x5ed0ce=_0x3e08aa;angular[_0x5ed0ce('0x17c8')](_0x152066)&&_0x152066[_0x5ed0ce('0x1eab')](),_0x56275a['$broadcast']('msNav::forceCollapse'),_0x26106c[_0x5ed0ce('0x1c70')](0x0),_0x11a75d[_0x5ed0ce('0x11d9')]('ms-nav-folded-open'),_0x4483b6[_0x5ed0ce('0x1592')]()['find'](_0x1b89ed)[_0x5ed0ce('0x14a5')](),_0x4483b6[_0x5ed0ce('0x155a')](_0x2adf3d),_0x2adf3d['on'](_0x5ed0ce('0x2593'),function(_0x16a0ed){_0x3ab1aa(_0x16a0ed),_0x295371=!![];});}function _0x1e23b3(){const _0x35c928=_0x3e08aa;_0x11a75d[_0x35c928('0x11d9')](_0x35c928('0x24c2')),_0x56275a[_0x35c928('0x1c04')](_0x35c928('0xec7')),_0x26106c[_0x35c928('0x7ca')](_0x35c928('0x2411'));}_0x3a2f7e[_0x3e08aa('0xe3a')]=_0x36cf89,_0x3a2f7e['openFolded']=_0x3ab1aa,_0x3a2f7e[_0x3e08aa('0x2632')]=_0x25b61c,_0x3a2f7e[_0x3e08aa('0x1307')]=_0x2a7bc6,_0x3a2f7e['$on'](_0x3e08aa('0x4f7'),function(){const _0x5d50e4=_0x3e08aa;_0x2adf3d[_0x5d50e4('0x7ca')]('mouseenter\x20touchstart'),_0x1b89ed['off'](_0x5d50e4('0x2593')),_0x26106c[_0x5d50e4('0x7ca')]('mouseenter\x20mouseleave');});}};}function _0x1c0c66(){const _0x30b709=_0x21d0f5,_0x3de8bb=this;let _0x5e6bcd=![];const _0x4a5780=[];let _0x5684c2=[];_0x3de8bb['isDisabled']=_0x1af9ae,_0x3de8bb['enable']=_0x25ce60,_0x3de8bb[_0x30b709('0x164e')]=_0x3048ad,_0x3de8bb[_0x30b709('0x147b')]=_0x78ce8f,_0x3de8bb[_0x30b709('0x1098')]=_0x5a823,_0x3de8bb[_0x30b709('0xf8')]=_0x5a1fc9,_0x3de8bb['clearLockedItems']=_0x2a7b40;function _0x1af9ae(){return _0x5e6bcd;}function _0x3048ad(){_0x5e6bcd=!![];}function _0x25ce60(){_0x5e6bcd=![];}function _0x78ce8f(_0x132741,_0x488463){const _0x3d3642=_0x30b709;_0x4a5780[_0x3d3642('0x105d')]({'element':_0x132741,'scope':_0x488463});}function _0x5a823(){return _0x5684c2;}function _0x5a1fc9(_0x385864,_0x14f329){_0x5684c2['push']({'element':_0x385864,'scope':_0x14f329});}function _0x2a7b40(){_0x5684c2=[];}}function _0x4bcdc3(_0x3e7021,_0x77c9b2,_0x32deba){const _0x3eca3d=_0x21d0f5;return{'restrict':'E','scope':{},'controller':_0x3eca3d('0xf89'),'compile':function(_0x119eec){const _0x7fb16f=_0x3eca3d;return _0x119eec[_0x7fb16f('0x16d8')](_0x7fb16f('0x268f')),function _0x362aae(_0x20eac6){const _0x5eeb9e=_0x7fb16f;_0x3e7021['$broadcast'](_0x5eeb9e('0xec7'));const _0x6bf48d=_0x3e7021[_0x5eeb9e('0x12d8')]('$stateChangeSuccess',function(){const _0x566560=_0x5eeb9e;_0x3e7021[_0x566560('0x1c04')](_0x566560('0xec7')),_0x77c9b2['when'](_0x566560('0x7f1'))[_0x566560('0x11bf')](function(_0x15aba2){const _0x5e9aaa=_0x566560;_0x15aba2[_0x5e9aaa('0x2132')](),_0x32deba['isNavFoldedOpen']()&&_0x32deba[_0x5e9aaa('0x2632')]();});});_0x20eac6[_0x5eeb9e('0x12d8')](_0x5eeb9e('0x4f7'),function(){_0x6bf48d();});};}};}function _0x226e6d(){return{'restrict':'A','compile':function(_0x13a4ca){const _0x4a77eb=a0_0xaf0c;return _0x13a4ca['addClass'](_0x4a77eb('0x1263')),function _0x45274a(){};}};}function _0x395f6e(){return{'restrict':'AE','compile':function(_0x1ebf8c){const _0x564c71=a0_0xaf0c;return _0x1ebf8c[_0x564c71('0x16d8')](_0x564c71('0xf1e')),function _0x4c6611(){};}};}function _0x26f531(_0x1228f9,_0x462baa,_0x57c64b,_0x1d87cc){return{'restrict':'A','require':'^msNav','scope':!![],'compile':function(_0x20bf03,_0x1630ae){const _0x45485a=a0_0xaf0c;return _0x20bf03[_0x45485a('0x16d8')](_0x45485a('0xa52')),angular[_0x45485a('0x13b9')](_0x1630ae[_0x45485a('0x1c76')])&&(_0x1630ae[_0x45485a('0x1c76')]=!![]),_0x20bf03[_0x45485a('0x15ff')]('collapsed',_0x1630ae[_0x45485a('0x1c76')]),function _0x295d01(_0x23191b,_0x2d81b4,_0x5431c9,_0x8fd0f2){const _0xd64aae=_0x45485a,_0x8477b7={'expanded':'expanded','expandAnimation':_0xd64aae('0x10da'),'collapseAnimation':_0xd64aae('0x1c91')},_0x37fbd1=_0x2d81b4[_0xd64aae('0x1ad4')]('a'),_0xdc8516=[],_0x1697f4=/\(.*\)/g;angular[_0xd64aae('0x1f88')](_0x37fbd1,function(_0x121a2e){const _0x2974e4=_0xd64aae;let _0x668dd2=angular[_0x2974e4('0x1e73')](_0x121a2e)['attr'](_0x2974e4('0xa4c'));if(angular[_0x2974e4('0x13b9')](_0x668dd2))return;_0x668dd2=_0x668dd2[_0x2974e4('0x814')](_0x1697f4,''),_0xdc8516[_0x2974e4('0x105d')](_0x668dd2);}),_0x8fd0f2['setToggleItem'](_0x2d81b4,_0x23191b),_0x2d81b4['children']('.ms-nav-button')['on']('click',_0x30fd4c);function _0x30fd4c(){const _0x20394b=_0xd64aae;if(_0x8fd0f2[_0x20394b('0x2855')]())return;_0x8fd0f2[_0x20394b('0x164e')](),_0x3ede0e()?(_0x8fd0f2[_0x20394b('0x248d')](),_0x23191b[_0x20394b('0x27f3')](_0x20394b('0x266c')),_0x1228f9[_0x20394b('0x1c04')](_0x20394b('0x4f9')),_0x19811f()[_0x20394b('0x11bf')](function(){const _0x497e09=_0x20394b;_0x8fd0f2[_0x497e09('0x275c')]();})):_0x23191b[_0x20394b('0x1c04')](_0x20394b('0x214e'));}_0x23191b[_0xd64aae('0x12d8')](_0xd64aae('0x4f7'),function(){const _0x4a466e=_0xd64aae;_0x2d81b4[_0x4a466e('0xbc5')](_0x4a466e('0x10bd'))[_0x4a466e('0x7ca')]('click');}),_0x23191b['$on'](_0xd64aae('0x4f9'),function(){const _0x42134a=_0xd64aae,_0x30cc34=_0x8fd0f2[_0x42134a('0x1098')]();let _0x595ced=![];angular['forEach'](_0x30cc34,function(_0x76bd62){const _0x480a47=_0x42134a;angular[_0x480a47('0x932')](_0x76bd62[_0x480a47('0x1626')],_0x23191b)&&(_0x595ced=!![]);});if(_0x595ced)return;_0x90cda8()[_0x42134a('0x11bf')](function(){const _0x480847=_0x42134a;_0x8fd0f2[_0x480847('0x275c')]();});}),_0x23191b[_0xd64aae('0x12d8')](_0xd64aae('0x214e'),function(){_0x90cda8()['then'](function(){const _0x5cdc04=a0_0xaf0c;_0x8fd0f2[_0x5cdc04('0x275c')]();});}),_0x23191b['$on'](_0xd64aae('0xec7'),function(){const _0x29d393=_0xd64aae,_0x3ab4f7=_0x1d87cc[_0x29d393('0x191')]['name'];let _0x250925=![];angular[_0x29d393('0x1f88')](_0xdc8516,function(_0xee8c2b){_0x3ab4f7===_0xee8c2b&&(_0x250925=!![]);}),_0x250925?_0x19811f():_0x90cda8();}),_0x23191b[_0xd64aae('0x12d8')](_0xd64aae('0x266c'),function(){const _0x1a1876=_0xd64aae;_0x8fd0f2[_0x1a1876('0xf8')](_0x2d81b4,_0x23191b);});function _0x3ede0e(){const _0x57cd31=_0xd64aae;return _0x2d81b4[_0x57cd31('0x15ff')](_0x57cd31('0x1c76'))==='true';}function _0x1c95c4(){return!_0x3ede0e();}function _0x19811f(){const _0x58113b=_0xd64aae,_0x2ad945=_0x462baa[_0x58113b('0xa93')]();if(_0x1c95c4())return _0x2ad945[_0x58113b('0x4a')]({'error':!![]}),_0x2ad945[_0x58113b('0x13f')];_0x2d81b4['attr']('collapsed',![]);const _0x3f4e7e=angular[_0x58113b('0x1e73')](_0x2d81b4[_0x58113b('0x1ad4')](_0x58113b('0x7fc'))[0x0]);_0x3f4e7e[_0x58113b('0x1147')]({'position':_0x58113b('0x260c'),'visibility':_0x58113b('0x2ed'),'display':'block','height':_0x58113b('0xf78')});const _0x150657=_0x3f4e7e[0x0][_0x58113b('0xa7c')];return _0x3f4e7e[_0x58113b('0x1147')]({'position':'','visibility':'','display':'','height':''}),_0x23191b[_0x58113b('0x1b53')](function(){const _0x9ccd40=_0x58113b;_0x57c64b['animate'](_0x3f4e7e,{'display':_0x9ccd40('0x2b9'),'height':_0x9ccd40('0x1ca1')},{'height':_0x150657+'px'},_0x8477b7[_0x9ccd40('0xfe')])[_0x9ccd40('0x11bf')](function(){const _0x184953=_0x9ccd40;_0x3f4e7e[_0x184953('0x16d8')](_0x8477b7[_0x184953('0x2135')]),_0x3f4e7e[_0x184953('0x1147')]({'height':''}),_0x2ad945['resolve']({'success':!![]});});}),_0x2ad945[_0x58113b('0x13f')];}function _0x90cda8(){const _0x1296cb=_0xd64aae,_0x1590cc=_0x462baa[_0x1296cb('0xa93')]();if(_0x3ede0e())return _0x1590cc[_0x1296cb('0x4a')]({'error':!![]}),_0x1590cc['promise'];_0x2d81b4[_0x1296cb('0x15ff')]('collapsed',!![]);const _0x262039=angular['element'](_0x2d81b4[_0x1296cb('0x1ad4')]('ms-nav-toggle-items')[0x0]),_0x243c25=_0x262039[0x0]['offsetHeight'];return _0x23191b[_0x1296cb('0x1b53')](function(){const _0x229f9d=_0x1296cb;_0x57c64b[_0x229f9d('0x88d')](_0x262039,{'height':_0x243c25+'px'},{'height':'0px'},_0x8477b7[_0x229f9d('0x206')])[_0x229f9d('0x11bf')](function(){const _0x23fc1e=_0x229f9d;_0x262039['removeClass'](_0x8477b7[_0x23fc1e('0x2135')]),_0x262039[_0x23fc1e('0x1147')]({'display':'','height':''}),_0x1590cc[_0x23fc1e('0xa28')]({'success':!![]});});}),_0x1590cc[_0x1296cb('0x13f')];}};}};}const _0x38a051=_0x351988['p']+'src/js/modules/core/directives/ms-navigation/templates/horizontal.html/horizontal.html',_0x2cba20=_0x351988['p']+_0x21d0f5('0x1868');_0x432464[_0x21d0f5('0x1e9a')]=['$mdMedia'],_0x2c41e0[_0x21d0f5('0x1e9a')]=['$scope',_0x21d0f5('0x149f'),_0x21d0f5('0x5f2'),'$state','msNavigationService'],_0x5eb7a5[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1713')],_0x5b125e[_0x21d0f5('0x1e9a')]=['$scope',_0x21d0f5('0x149f'),_0x21d0f5('0x5f2'),_0x21d0f5('0x17b8'),'$state',_0x21d0f5('0x1713')],_0x17b1ba[_0x21d0f5('0x1e9a')]=['$rootScope',_0x21d0f5('0x17f5'),_0x21d0f5('0x18fe'),_0x21d0f5('0x1713')],_0x2fc35c['$inject']=[_0x21d0f5('0x1b80'),_0x21d0f5('0x1713')];function _0x4e31b2(){const _0x53152b=_0x21d0f5,_0x3b57e3=angular[_0x53152b('0x160')](['ng'])[_0x53152b('0xbaa')](_0x53152b('0x23'));let _0x327a95=[];const _0xe35145=this;_0xe35145[_0x53152b('0x265e')]=_0x284d91,_0xe35145[_0x53152b('0x2639')]=_0x2e26a3,_0xe35145[_0x53152b('0x131b')]=_0x364024;function _0x284d91(_0x42452b,_0x17abea){const _0x32caae=_0x53152b;if(!angular[_0x32caae('0x532')](_0x42452b)){_0x3b57e3['error'](_0x32caae('0x22a4'));return;}const _0x3ce4e4=_0x42452b[_0x32caae('0xaf8')]('.'),_0x22bba1=_0x3ce4e4[_0x3ce4e4['length']-0x1],_0x54f166=_0x593235(_0x3ce4e4);let _0x145716=![];for(let _0x1d72ed=0x0;_0x1d72ed<_0x54f166['length'];_0x1d72ed++){if(_0x54f166[_0x1d72ed][_0x32caae('0x19e4')]===_0x22bba1){_0x145716=_0x54f166[_0x1d72ed];break;}}_0x145716?(angular[_0x32caae('0x218f')](_0x145716,_0x17abea),_0x145716[_0x32caae('0x14bf')]=_0x3eecf9(_0x145716)):(_0x17abea['children']=[],(angular['isUndefined'](_0x17abea[_0x32caae('0x14aa')])||!angular[_0x32caae('0xe43')](_0x17abea[_0x32caae('0x14aa')]))&&(_0x17abea[_0x32caae('0x14aa')]=0x1),_0x17abea[_0x32caae('0x19e4')]=_0x22bba1,_0x17abea[_0x32caae('0x10a6')]=_0x42452b,_0x17abea[_0x32caae('0x14bf')]=_0x3eecf9(_0x17abea),_0x54f166[_0x32caae('0x105d')](_0x17abea));}function _0x2e26a3(_0x2fdff2){const _0x3ea5d3=_0x53152b;if(!angular[_0x3ea5d3('0x532')](_0x2fdff2)){_0x3b57e3[_0x3ea5d3('0x255')](_0x3ea5d3('0x22a4'));return;}let _0x2326b3=_0x327a95;const _0x8e2093=_0x2fdff2['split']('.');for(let _0x1592b6=0x0;_0x1592b6<_0x8e2093['length'];_0x1592b6++){const _0x820041=_0x8e2093[_0x1592b6];for(let _0x37e0fc=0x0;_0x37e0fc<_0x2326b3[_0x3ea5d3('0x1e22')];_0x37e0fc++){if(_0x2326b3[_0x37e0fc][_0x3ea5d3('0x19e4')]===_0x820041){if(_0x2326b3[_0x37e0fc][_0x3ea5d3('0x10a6')]===_0x2fdff2)return _0x2326b3['splice'](_0x37e0fc,0x1),!![];_0x2326b3=_0x2326b3[_0x37e0fc]['children'];break;}}}return![];}function _0x364024(_0x3ef62c){const _0x509a2b=_0x53152b;!_0x3ef62c&&(_0x3ef62c=_0x327a95,_0x3ef62c[_0x509a2b('0x1c16')](_0x4be184));for(let _0x57ee0b=0x0;_0x57ee0b<_0x3ef62c[_0x509a2b('0x1e22')];_0x57ee0b++){const _0x1c8fca=_0x3ef62c[_0x57ee0b][_0x509a2b('0xbc5')];_0x1c8fca[_0x509a2b('0x1e22')]>0x1&&_0x1c8fca[_0x509a2b('0x1c16')](_0x4be184),_0x1c8fca[_0x509a2b('0x1e22')]>0x0&&_0x364024(_0x1c8fca);}}function _0x593235(_0x1ccb05){const _0x272363=_0x53152b;let _0x7d6121=_0x327a95;if(_0x1ccb05[_0x272363('0x1e22')]===0x1)return _0x7d6121;_0x1ccb05['pop']();for(let _0x50d801=0x0;_0x50d801<_0x1ccb05[_0x272363('0x1e22')];_0x50d801++){const _0x47b72e=_0x1ccb05[_0x50d801];let _0x4580aa=!![];for(let _0x79ad61=0x0;_0x79ad61<_0x7d6121[_0x272363('0x1e22')];_0x79ad61++){if(_0x7d6121[_0x79ad61][_0x272363('0x19e4')]===_0x47b72e){_0x7d6121=_0x7d6121[_0x79ad61][_0x272363('0xbc5')],_0x4580aa=![];break;}}if(_0x4580aa){const _0x3a86ce={'_id':_0x47b72e,'_path':_0x1ccb05['join']('.'),'title':_0x47b72e,'weight':0x1,'children':[]};_0x7d6121[_0x272363('0x105d')](_0x3a86ce),_0x7d6121=_0x3a86ce[_0x272363('0xbc5')];}}return _0x7d6121;}function _0x4be184(_0x9b5b43,_0x4ffbf5){const _0x57bacb=_0x53152b;return parseInt(_0x9b5b43[_0x57bacb('0x14aa')])-parseInt(_0x4ffbf5['weight']);}function _0x3eecf9(_0x24f32d){const _0x3a6d38=_0x53152b;let _0x31214b='';return angular['isDefined'](_0x24f32d[_0x3a6d38('0x2124')])&&(_0x31214b=_0x24f32d['state'],angular[_0x3a6d38('0x17c8')](_0x24f32d[_0x3a6d38('0x191f')])&&angular[_0x3a6d38('0xa90')](_0x24f32d['stateParams'])&&(_0x31214b=_0x31214b+'('+angular[_0x3a6d38('0x460')](_0x24f32d[_0x3a6d38('0x191f')])+')')),_0x31214b;}this['$get']=function(){let _0x4a63ed=null,_0x473d06=null,_0x3d3d47=null,_0x44c1ec=null;const _0x20821b={'saveItem':_0x284d91,'deleteItem':_0x2e26a3,'sort':_0x364024,'clearNavigation':_0x49a2ec,'setActiveItem':_0x4809e2,'getActiveItem':_0xa52200,'getNavigation':_0x34a3d1,'getFlatNavigation':_0x40e287,'setNavigationScope':_0x2e86cd,'setFolded':_0x4ba92,'getFolded':_0x34ce3e,'setFoldedOpen':_0x1c7a67,'getFoldedOpen':_0x298a6e,'toggleFolded':_0x2301f8};return _0x20821b;function _0x49a2ec(){_0x327a95=[],_0x473d06&&(_0x473d06['vm']['navigation']=_0x327a95);}function _0x4809e2(_0x26fffa,_0x304f61){_0x4a63ed={'node':_0x26fffa,'scope':_0x304f61};}function _0xa52200(){return _0x4a63ed;}function _0x34a3d1(_0x38408a){const _0x502302=a0_0xaf0c;if(_0x38408a){for(let _0x3e350e=0x0;_0x3e350e<_0x327a95[_0x502302('0x1e22')];_0x3e350e++){if(_0x327a95[_0x3e350e]['_id']===_0x38408a)return[_0x327a95[_0x3e350e]];}return null;}return _0x327a95;}function _0x40e287(_0x4f63a9){const _0x54f0f1=_0x34a3d1(_0x4f63a9);return _0x16fad5(_0x54f0f1);}function _0x2e86cd(_0x16d315){_0x473d06=_0x16d315;}function _0x4ba92(_0x4984a1){_0x3d3d47=_0x4984a1;}function _0x34ce3e(){return _0x3d3d47;}function _0x1c7a67(_0x39d2e0){_0x44c1ec=_0x39d2e0;}function _0x298a6e(){return _0x44c1ec;}function _0x2301f8(){const _0x3e304e=a0_0xaf0c;_0x473d06[_0x3e304e('0x1b5e')]();}function _0x16fad5(_0x58b812){const _0x3ec2bf=a0_0xaf0c;let _0x466c46=[];for(let _0x23fee1=0x0;_0x23fee1<_0x58b812['length'];_0x23fee1++){const _0x308992=angular['copy'](_0x58b812[_0x23fee1]);_0x308992['children']=[],_0x466c46[_0x3ec2bf('0x105d')](_0x308992),_0x58b812[_0x23fee1][_0x3ec2bf('0xbc5')][_0x3ec2bf('0x1e22')]>0x0&&(_0x466c46=_0x466c46[_0x3ec2bf('0x20bf')](_0x16fad5(_0x58b812[_0x23fee1][_0x3ec2bf('0xbc5')])));}return _0x466c46;}};}function _0x2fc35c(_0x540b5a,_0x177e10){const _0x49c266=_0x21d0f5,_0x21247f=this;_0x540b5a[_0x49c266('0x636')]?_0x21247f['navigation']=_0x177e10['getNavigation'](_0x540b5a[_0x49c266('0x636')]):_0x21247f[_0x49c266('0x7f1')]=_0x177e10['getNavigation']();_0x21247f[_0x49c266('0x1182')]=_0x394042,_0x50ff6a();function _0x50ff6a(){const _0x3575c7=_0x49c266;_0x177e10[_0x3575c7('0x1c16')]();}function _0x394042(){const _0x14af83=_0x49c266;angular[_0x14af83('0x1e73')](_0x14af83('0x1d2'))['toggleClass'](_0x14af83('0x27b7'));}}function _0x17b1ba(_0x2da8d3,_0x2585ca,_0xf4f806,_0x5a780f){const _0x9e05b9=_0x21d0f5;return{'restrict':'E','scope':{'folded':'=','root':'@'},'controller':_0x9e05b9('0x17f9'),'templateUrl':_0x2cba20,'transclude':!![],'compile':function(_0x56da4f){const _0x71c700=_0x9e05b9;return _0x56da4f[_0x71c700('0x16d8')](_0x71c700('0x7f3')),function _0x5035f2(_0x5d4464,_0x557192){const _0x4a20d5=_0x71c700,_0x46bd5a=angular['element'](_0x4a20d5('0x1d2')),_0x52e297=angular[_0x4a20d5('0x1e73')](_0x4a20d5('0x24ed')),_0x3f69f0=angular[_0x4a20d5('0x1e73')](''),_0x52e784=_0xf4f806(_0x4a20d5('0x7f1'));_0x5a780f[_0x4a20d5('0x17e0')](_0x5d4464),_0x1bce36();function _0x1bce36(){const _0x865c1=_0x4a20d5;_0x5a780f[_0x865c1('0xb6e')]()===null&&_0x5a780f[_0x865c1('0x1ca6')](_0x5d4464[_0x865c1('0x26dc')]),_0x5a780f[_0x865c1('0xb6e')]()&&(_0x2585ca(function(){const _0x5e7278=_0x865c1;_0x2da8d3[_0x5e7278('0x1c04')](_0x5e7278('0x1d08'));}),_0x46bd5a['addClass'](_0x865c1('0x21ca')),_0x4e0f49());}_0x5d4464[_0x4a20d5('0x2087')](function(){const _0x2a71dc=_0x4a20d5;return _0x52e784[_0x2a71dc('0x628')]();},function(_0x1af541,_0x16d91c){const _0x36026f=_0x4a20d5;if(angular[_0x36026f('0x13b9')](_0x1af541)||angular[_0x36026f('0x932')](_0x1af541,_0x16d91c))return;const _0x138143=_0x5a780f[_0x36026f('0xb6e')]();if(_0x138143){if(_0x1af541)_0x2da8d3[_0x36026f('0x1c04')](_0x36026f('0x1d08'));else{const _0x974e66=_0x5a780f[_0x36026f('0x1002')]();_0x974e66&&_0x974e66[_0x36026f('0x1626')][_0x36026f('0x27f3')](_0x36026f('0x23b'));}}}),_0x5d4464[_0x4a20d5('0x2087')]('folded',function(_0x4af69c,_0x13dd1f){const _0x5383bb=_0x4a20d5;if(angular[_0x5383bb('0x13b9')](_0x4af69c)||angular['equals'](_0x4af69c,_0x13dd1f))return;_0x47e1d0(_0x4af69c);});function _0x47e1d0(_0x36d2a6){const _0x276a34=_0x4a20d5;_0x5a780f[_0x276a34('0x1ca6')](_0x36d2a6);if(_0x36d2a6)_0x2da8d3[_0x276a34('0x1c04')](_0x276a34('0x1d08')),_0x46bd5a['addClass'](_0x276a34('0x21ca')),_0x4e0f49();else{const _0x2625f0=_0x5a780f[_0x276a34('0x1002')]();_0x2625f0&&_0x2625f0[_0x276a34('0x1626')][_0x276a34('0x27f3')](_0x276a34('0x23b')),_0x46bd5a[_0x276a34('0x11d9')]('ms-navigation-folded\x20ms-navigation-folded-open'),_0x10887d();}}function _0x4e0f49(){const _0x5493d3=_0x4a20d5;_0x557192[_0x5493d3('0x1592')]()['append'](_0x52e297),_0x2585ca(function(){const _0x22121b=_0x5493d3;_0x52e297['on'](_0x22121b('0x2593'),_0x5714bd);});}function _0x18932c(){const _0x2a297a=_0x4a20d5;_0x46bd5a[_0x2a297a('0x1ad4')]('#main')[_0x2a297a('0x155a')](_0x3f69f0),_0x3f69f0['on'](_0x2a297a('0x2593'),_0x34bb30);}function _0x10887d(){const _0x1c4123=_0x4a20d5;_0x3f69f0[_0x1c4123('0x14a5')]();}function _0x5714bd(_0x1a4fa6){const _0x1580dc=_0x4a20d5;_0x1a4fa6&&_0x1a4fa6[_0x1580dc('0x1eab')]();_0x5a780f[_0x1580dc('0x67c')](!![]);const _0x451b4f=_0x5a780f['getActiveItem']();_0x451b4f&&_0x451b4f[_0x1580dc('0x1626')][_0x1580dc('0x27f3')]('msNavigation::stateMatched'),_0x46bd5a[_0x1580dc('0x16d8')](_0x1580dc('0x6ae')),_0x52e297[_0x1580dc('0x14a5')](),_0x18932c();}function _0x34bb30(_0x578795){const _0x2f2369=_0x4a20d5;_0x578795&&_0x578795[_0x2f2369('0x1eab')](),_0x5a780f['setFoldedOpen'](![]),_0x2da8d3['$broadcast'](_0x2f2369('0x1d08')),_0x46bd5a[_0x2f2369('0x11d9')]('ms-navigation-folded-open'),_0x3f69f0[_0x2f2369('0x14a5')](),_0x4e0f49();}_0x5d4464[_0x4a20d5('0x1b5e')]=function(){const _0x9b7bc5=_0x5a780f['getFolded']();_0x47e1d0(!_0x9b7bc5);},_0x5d4464['$on']('$stateChangeStart',function(){const _0x3515af=_0x4a20d5;_0x52e784[_0x3515af('0x2132')]();}),_0x5d4464['$on'](_0x4a20d5('0x4f7'),function(){const _0x499688=_0x4a20d5;_0x3f69f0['off'](_0x499688('0x2593')),_0x52e297[_0x499688('0x7ca')](_0x499688('0x2593'));});};}};}function _0x5b125e(_0x30d41d,_0x19ec22,_0x595354,_0x2ac6cd,_0xcd6554,_0x1166f7){const _0x17495d=_0x21d0f5,_0x1c86ec=this;_0x1c86ec['element']=_0x19ec22,_0x1c86ec[_0x17495d('0xb14')]=_0x30d41d[_0x17495d('0xb14')],_0x1c86ec['hasChildren']=undefined,_0x1c86ec[_0x17495d('0x1c76')]=undefined,_0x1c86ec['collapsable']=undefined,_0x1c86ec[_0x17495d('0xdb')]=undefined,_0x1c86ec[_0x17495d('0x230b')]='animate-height',_0x1c86ec['toggleCollapsed']=_0x4c5766,_0x1c86ec['collapse']=_0x26ac5e,_0x1c86ec['expand']=_0xe0fd13,_0x1c86ec['getClass']=_0x225aa5,_0x1c86ec[_0x17495d('0x406')]=_0x287888,_0x23f8d9();function _0x23f8d9(){const _0x149dee=_0x17495d;_0x1c86ec[_0x149dee('0x1cae')]=_0x1c86ec[_0x149dee('0xb14')][_0x149dee('0xbc5')][_0x149dee('0x1e22')]>0x0,_0x1c86ec[_0x149dee('0xdb')]=!!(angular[_0x149dee('0x17c8')](_0x1c86ec[_0x149dee('0xb14')]['group'])&&_0x1c86ec[_0x149dee('0xb14')][_0x149dee('0xdb')]===!![]);!_0x1c86ec[_0x149dee('0x1cae')]||_0x1c86ec['group']?_0x1c86ec[_0x149dee('0x1649')]=![]:_0x1c86ec[_0x149dee('0x1649')]=!!(angular[_0x149dee('0x13b9')](_0x1c86ec[_0x149dee('0xb14')]['collapsable'])||typeof _0x1c86ec[_0x149dee('0xb14')][_0x149dee('0x1649')]!==_0x149dee('0x580')||_0x1c86ec[_0x149dee('0xb14')]['collapsable']===!![]);!_0x1c86ec[_0x149dee('0x1649')]?_0x1c86ec['collapsed']=![]:_0x1c86ec[_0x149dee('0x1c76')]=!!(angular[_0x149dee('0x13b9')](_0x1c86ec[_0x149dee('0xb14')][_0x149dee('0x1c76')])||typeof _0x1c86ec[_0x149dee('0xb14')][_0x149dee('0x1c76')]!==_0x149dee('0x580')||_0x1c86ec['node'][_0x149dee('0x1c76')]===!![]);if(_0x1c86ec['node']['state']===_0xcd6554[_0x149dee('0x191')][_0x149dee('0x1909')]||_0xcd6554[_0x149dee('0x55a')](_0x1c86ec[_0x149dee('0xb14')]['state'])){if(angular[_0x149dee('0x17c8')](_0x1c86ec[_0x149dee('0xb14')][_0x149dee('0x191f')])&&angular[_0x149dee('0x17c8')](_0xcd6554[_0x149dee('0x1ab3')])&&!angular[_0x149dee('0x932')](_0x1c86ec[_0x149dee('0xb14')][_0x149dee('0x191f')],_0xcd6554['params']))return;_0x30d41d[_0x149dee('0x27f3')](_0x149dee('0x23b')),_0x1166f7['setActiveItem'](_0x1c86ec['node'],_0x30d41d);}_0x30d41d['$on'](_0x149dee('0x23b'),function(){const _0x257cab=_0x149dee;_0x1c86ec[_0x257cab('0x1649')]&&_0x1c86ec[_0x257cab('0x1c76')]&&_0x30d41d[_0x257cab('0x1b53')](function(){_0x1c86ec['collapsed']=![];});}),_0x30d41d[_0x149dee('0x12d8')](_0x149dee('0x1d08'),function(_0x1214f9,_0x75bbc8){const _0x270194=_0x149dee;if(_0x1c86ec['collapsed']||!_0x1c86ec[_0x270194('0x1649')])return;if(angular['isUndefined'](_0x75bbc8))_0x1c86ec[_0x270194('0x1a09')]();else{const _0x51a541=_0x75bbc8[_0x270194('0xaf8')]('.');let _0x3bfdb4=[];const _0x50a60b=_0x1166f7[_0x270194('0x1002')]();_0x50a60b&&(_0x3bfdb4=_0x50a60b['node'][_0x270194('0x10a6')][_0x270194('0xaf8')]('.'));if(_0x51a541[_0x270194('0x203c')](_0x1c86ec[_0x270194('0xb14')][_0x270194('0x19e4')])>-0x1)return;if(_0x3bfdb4['indexOf'](_0x1c86ec[_0x270194('0xb14')][_0x270194('0x19e4')])>-0x1)return;_0x1c86ec[_0x270194('0x1a09')]();}}),_0x30d41d[_0x149dee('0x12d8')](_0x149dee('0x11b1'),function(){const _0x3439d8=_0x149dee;if(_0x1c86ec[_0x3439d8('0xb14')][_0x3439d8('0x2124')]===_0xcd6554[_0x3439d8('0x191')][_0x3439d8('0x1909')]){if(angular[_0x3439d8('0x17c8')](_0x1c86ec['node']['stateParams'])&&angular[_0x3439d8('0x17c8')](_0xcd6554[_0x3439d8('0x1ab3')])&&!angular['equals'](_0x1c86ec[_0x3439d8('0xb14')][_0x3439d8('0x191f')],_0xcd6554['params']))return;_0x1166f7[_0x3439d8('0x2649')](_0x1c86ec[_0x3439d8('0xb14')],_0x30d41d),_0x595354[_0x3439d8('0x1c04')](_0x3439d8('0x1d08'),_0x1c86ec[_0x3439d8('0xb14')][_0x3439d8('0x10a6')]);}if(_0xcd6554[_0x3439d8('0x55a')](_0x1c86ec[_0x3439d8('0xb14')]['state'])){if(angular['isDefined'](_0x1c86ec['node']['stateParams'])&&angular[_0x3439d8('0x17c8')](_0xcd6554[_0x3439d8('0x1ab3')])&&!angular[_0x3439d8('0x932')](_0x1c86ec[_0x3439d8('0xb14')][_0x3439d8('0x191f')],_0xcd6554[_0x3439d8('0x1ab3')]))return;_0x30d41d[_0x3439d8('0x27f3')](_0x3439d8('0x23b'));}});}function _0x4c5766(){const _0x3774b7=_0x17495d;_0x1c86ec[_0x3774b7('0x1c76')]?_0x1c86ec[_0x3774b7('0x2475')]():_0x1c86ec['collapse']();}function _0x26ac5e(){const _0x368b0b=_0x17495d,_0x5ae3e1=_0x1c86ec[_0x368b0b('0x1e73')][_0x368b0b('0xbc5')]('ul'),_0x2e998e=_0x5ae3e1[0x0][_0x368b0b('0xa7c')];_0x30d41d[_0x368b0b('0x1b53')](function(){const _0x3d006b=_0x368b0b;_0x1c86ec['collapsed']=!![],_0x1c86ec[_0x3d006b('0x1e73')]['addClass'](_0x3d006b('0xde4')),_0x2ac6cd[_0x3d006b('0x88d')](_0x5ae3e1,{'display':_0x3d006b('0x2b9'),'height':_0x2e998e+'px'},{'height':_0x3d006b('0x1ca1')},_0x1c86ec[_0x3d006b('0x230b')])[_0x3d006b('0x11bf')](function(){const _0x2d6576=_0x3d006b;_0x5ae3e1[_0x2d6576('0x1147')]({'display':'','height':''}),_0x1c86ec[_0x2d6576('0x1e73')][_0x2d6576('0x11d9')](_0x2d6576('0xde4'));}),_0x30d41d[_0x3d006b('0x1c04')](_0x3d006b('0x1d08'));});}function _0xe0fd13(){const _0x7d312=_0x17495d,_0x58af31=_0x1c86ec['element']['children']('ul');_0x58af31[_0x7d312('0x1147')]({'position':_0x7d312('0x260c'),'visibility':_0x7d312('0x2ed'),'display':_0x7d312('0x2b9'),'height':_0x7d312('0xf78')});const _0x2216ea=_0x58af31[0x0][_0x7d312('0xa7c')];_0x58af31[_0x7d312('0x1147')]({'position':'','visibility':'','display':'','height':''}),_0x30d41d[_0x7d312('0x1b53')](function(){const _0x567dff=_0x7d312;_0x1c86ec[_0x567dff('0x1c76')]=![],_0x1c86ec[_0x567dff('0x1e73')][_0x567dff('0x16d8')](_0x567dff('0x26a4')),_0x2ac6cd[_0x567dff('0x88d')](_0x58af31,{'display':'block','height':_0x567dff('0x1ca1')},{'height':_0x2216ea+'px'},_0x1c86ec[_0x567dff('0x230b')])[_0x567dff('0x11bf')](function(){const _0x34df98=_0x567dff;_0x58af31[_0x34df98('0x1147')]({'height':''}),_0x1c86ec['element']['removeClass'](_0x34df98('0x26a4'));}),_0x595354[_0x567dff('0x1c04')](_0x567dff('0x1d08'),_0x1c86ec['node']['_path']);});}function _0x225aa5(){const _0x412b79=_0x17495d;return _0x1c86ec[_0x412b79('0xb14')][_0x412b79('0x10a4')];}function _0x287888(){const _0x47c3c5=_0x17495d;if(angular['isDefined'](_0x1c86ec[_0x47c3c5('0xb14')][_0x47c3c5('0x2ed')])&&angular[_0x47c3c5('0x1378')](_0x1c86ec[_0x47c3c5('0xb14')]['hidden']))return _0x1c86ec[_0x47c3c5('0xb14')][_0x47c3c5('0x2ed')]();return![];}}function _0x234071(){const _0x554259=_0x21d0f5;return{'restrict':'A','bindToController':{'node':_0x554259('0x15b1')},'controller':'MsNavigationNodeController\x20as\x20vm','compile':function(_0x113eaf){return _0x113eaf['addClass']('ms-navigation-node'),function _0x2a28aa(_0x348fcb,_0x5f546e,_0x4edc5a,_0x5bec77){const _0x424e11=a0_0xaf0c;_0x5f546e[_0x424e11('0x16d8')](_0x5bec77[_0x424e11('0x1f31')]()),_0x5bec77[_0x424e11('0xdb')]&&_0x5f546e[_0x424e11('0x16d8')]('group');};}};}function _0x31572e(){const _0x52e4ad=_0x21d0f5;return{'restrict':'A','require':_0x52e4ad('0x788'),'compile':function(_0x264a0a){const _0x3d231c=_0x52e4ad;return _0x264a0a['addClass'](_0x3d231c('0x153d')),function _0x544e54(_0x457c14,_0x220c51,_0x25b955,_0x4b25a6){const _0x33b5d2=_0x3d231c;_0x4b25a6['collapsable']&&_0x220c51['on']('click',_0x4b25a6[_0x33b5d2('0x2069')]),_0x457c14[_0x33b5d2('0x12d8')](_0x33b5d2('0x4f7'),function(){const _0x4912b0=_0x33b5d2;_0x220c51[_0x4912b0('0x7ca')](_0x4912b0('0x1371'));});};}};}function _0x5eb7a5(_0x138a16){const _0x4f98f3=_0x21d0f5;return{'restrict':'E','scope':{'root':'@'},'controller':_0x4f98f3('0x17f9'),'templateUrl':_0x38a051,'transclude':!![],'compile':function(_0x836e4d){const _0xb2ba8d=_0x4f98f3;return _0x836e4d[_0xb2ba8d('0x16d8')](_0xb2ba8d('0x3d6')),function _0x43f3ae(_0x26bd7f){const _0x21d7ed=_0xb2ba8d;_0x138a16[_0x21d7ed('0x17e0')](_0x26bd7f);};}};}function _0x2c41e0(_0x269e39,_0x184a39,_0x5ee118,_0x13ecdb,_0x3e8652){const _0x578a29=_0x21d0f5,_0x35e197=this;_0x35e197['element']=_0x184a39,_0x35e197[_0x578a29('0xb14')]=_0x269e39[_0x578a29('0xb14')],_0x35e197[_0x578a29('0x1cae')]=undefined,_0x35e197['group']=undefined,_0x35e197[_0x578a29('0x1f31')]=_0x1d578a,_0x1bd75c();function _0x1bd75c(){const _0x6de1d9=_0x578a29;_0x35e197[_0x6de1d9('0xd84')]=![],_0x35e197['hasChildren']=_0x35e197[_0x6de1d9('0xb14')][_0x6de1d9('0xbc5')][_0x6de1d9('0x1e22')]>0x0,_0x35e197[_0x6de1d9('0xdb')]=!!(angular[_0x6de1d9('0x17c8')](_0x35e197[_0x6de1d9('0xb14')][_0x6de1d9('0xdb')])&&_0x35e197[_0x6de1d9('0xb14')][_0x6de1d9('0xdb')]===!![]);if(_0x35e197[_0x6de1d9('0xb14')]['state']===_0x13ecdb[_0x6de1d9('0x191')][_0x6de1d9('0x1909')]||_0x13ecdb['includes'](_0x35e197['node'][_0x6de1d9('0x2124')])){if(angular['isDefined'](_0x35e197[_0x6de1d9('0xb14')]['stateParams'])&&angular[_0x6de1d9('0x17c8')](_0x13ecdb[_0x6de1d9('0x1ab3')])&&!angular[_0x6de1d9('0x932')](_0x35e197['node'][_0x6de1d9('0x191f')],_0x13ecdb[_0x6de1d9('0x1ab3')]))return;_0x269e39['$emit'](_0x6de1d9('0x23b')),_0x3e8652[_0x6de1d9('0x2649')](_0x35e197[_0x6de1d9('0xb14')],_0x269e39);}_0x269e39[_0x6de1d9('0x12d8')](_0x6de1d9('0x23b'),function(){const _0x34f265=_0x6de1d9;_0x35e197[_0x34f265('0x1cae')]&&_0x269e39[_0x34f265('0x1b53')](function(){const _0x1f8299=_0x34f265;_0x35e197[_0x1f8299('0xd84')]=!![];});}),_0x269e39[_0x6de1d9('0x12d8')]('msNavigation::clearActive',function(){const _0x506d81=_0x6de1d9;if(!_0x35e197[_0x506d81('0x1cae')])return;let _0x536c01=[];const _0x432545=_0x3e8652[_0x506d81('0x1002')]();_0x432545&&(_0x536c01=_0x432545['node']['_path'][_0x506d81('0xaf8')]('.')),_0x536c01[_0x506d81('0x203c')](_0x35e197[_0x506d81('0xb14')][_0x506d81('0x19e4')])>-0x1?_0x269e39[_0x506d81('0x1b53')](function(){const _0x2c0eaf=_0x506d81;_0x35e197[_0x2c0eaf('0xd84')]=!![];}):_0x269e39[_0x506d81('0x1b53')](function(){const _0x353588=_0x506d81;_0x35e197[_0x353588('0xd84')]=![];});}),_0x269e39[_0x6de1d9('0x12d8')](_0x6de1d9('0x11b1'),function(){const _0x483956=_0x6de1d9;if(_0x35e197[_0x483956('0xb14')][_0x483956('0x2124')]===_0x13ecdb[_0x483956('0x191')][_0x483956('0x1909')]||_0x13ecdb[_0x483956('0x55a')](_0x35e197[_0x483956('0xb14')][_0x483956('0x2124')])){if(angular[_0x483956('0x17c8')](_0x35e197[_0x483956('0xb14')][_0x483956('0x191f')])&&angular['isDefined'](_0x13ecdb['params'])&&!angular[_0x483956('0x932')](_0x35e197[_0x483956('0xb14')][_0x483956('0x191f')],_0x13ecdb['params']))return;_0x3e8652[_0x483956('0x2649')](_0x35e197[_0x483956('0xb14')],_0x269e39),_0x5ee118['$broadcast']('msNavigation::clearActive');}});}function _0x1d578a(){const _0x820486=_0x578a29;return _0x35e197[_0x820486('0xb14')][_0x820486('0x10a4')];}}function _0x5862ab(){const _0x19dba2=_0x21d0f5;return{'restrict':'A','bindToController':{'node':_0x19dba2('0x7b2')},'controller':_0x19dba2('0x1206'),'compile':function(_0x423c4f){const _0x563bac=_0x19dba2;return _0x423c4f['addClass'](_0x563bac('0x3f1')),function _0x3aebe8(_0x513c63,_0x383944,_0x5cffd8,_0x4a38e0){const _0x2ed8e0=_0x563bac;_0x383944[_0x2ed8e0('0x16d8')](_0x4a38e0[_0x2ed8e0('0x1f31')]()),_0x4a38e0[_0x2ed8e0('0xdb')]&&_0x383944[_0x2ed8e0('0x16d8')](_0x2ed8e0('0xdb'));};}};}function _0x432464(_0x476f43){const _0x4b0715=_0x21d0f5;return{'restrict':'A','require':_0x4b0715('0xf90'),'compile':function(_0x3c2464){const _0x4ab0a6=_0x4b0715;return _0x3c2464[_0x4ab0a6('0x16d8')](_0x4ab0a6('0x1195')),function _0x9b401b(_0x344818,_0x3af247,_0x3094fc,_0x3011ec){_0x3af247['on']('click',_0x305d61);function _0x305d61(){const _0x587ec8=a0_0xaf0c;if(!_0x3011ec[_0x587ec8('0x1cae')]||_0x476f43(_0x587ec8('0x16b6')))return;_0x3af247[_0x587ec8('0x1436')](_0x587ec8('0x2135'));}_0x344818['$on']('$destroy',function(){const _0xed485a=a0_0xaf0c;_0x3af247['off'](_0xed485a('0x1371'));});};}};}const _0x3ca613=_0x351988['p']+_0x21d0f5('0x1884'),_0x1c6154=_0x351988['p']+_0x21d0f5('0x2357'),_0x402855=_0x351988['p']+_0x21d0f5('0xbf6'),_0x30e8e2=_0x351988['p']+_0x21d0f5('0x2686');var _0x1272ec=_0x351988(0x175b),_0x396a2f=_0x351988['n'](_0x1272ec),_0x5e1e3f=_0x351988(0x26ba),_0x27d4aa=_0x351988['n'](_0x5e1e3f);_0x25324b[_0x21d0f5('0x1e9a')]=['$scope',_0x21d0f5('0x1b30'),_0x21d0f5('0x17f5'),_0x21d0f5('0x1fd'),_0x21d0f5('0x1ca2'),_0x21d0f5('0x1d2f'),'$window','$translate',_0x21d0f5('0x1379'),_0x21d0f5('0x142d'),_0x21d0f5('0x12a5'),'motNotification','Auth',_0x21d0f5('0x1d56')];function _0x25324b(_0x415104,_0x68fb43,_0x50efe3,_0x15f559,_0x366f63,_0x1dac41,_0x1b5cb9,_0x528c65,_0x1eaec1,_0x263603,_0x1e7d8f,_0x758b5f,_0x474484,_0x5b2925){const _0x1ac109=_0x21d0f5,_0x597dad=this,_0x2ef2db=window[_0x1ac109('0x1e12')];_0x597dad[_0x1ac109('0x23f4')]=_0x1e7d8f[_0x1ac109('0x23f4')],_0x597dad['conf']=_0x415104['$parent']['vm'][_0x1ac109('0x1301')];const _0x58896b=[_0x1ac109('0x1f14'),'speakerId','microphoneId','ringingVolume',_0x1ac109('0x16a2'),_0x1ac109('0x12fc'),'ringingMute',_0x1ac109('0x19df'),_0x1ac109('0x253f')],_0x592d86=_0x597dad[_0x1ac109('0x1301')]&&JSON[_0x1ac109('0x1850')](_0x1b5cb9[_0x1ac109('0xe4a')][_0x1ac109('0x2356')](_0x1ac109('0x38c')+_0x597dad[_0x1ac109('0x1301')]['id']))||{'webrtc':{'ringingVolume':0.5,'speakerVolume':0.5,'microphoneVolume':0x1,'ringingMute':![],'speakerMute':![],'microphoneMute':![]}};_0x15f559(function(){},0x3e7),_0x597dad[_0x1ac109('0x7d5')]='right',_0x597dad[_0x1ac109('0x3e0')]='md-scale',_0x597dad[_0x1ac109('0xc7a')]='',_0x597dad['showDialpad']=![],_0x597dad[_0x1ac109('0x197d')]=document[_0x1ac109('0x2773')]('audio'),_0x597dad[_0x1ac109('0x76e')]=document[_0x1ac109('0x1451')](_0x597dad['conf']['remotePlayerId']),_0x597dad['soundPlayer'][_0x1ac109('0x1917')]=0x1,_0x597dad[_0x1ac109('0x2366')]={'mediaConstraints':{'audio':!![],'video':![]},'pcConfig':{'iceServers':[]}},_0x597dad[_0x1ac109('0x314')]=[],_0x597dad[_0x1ac109('0xb7e')]=[],_0x597dad['callbackQueue']=[],_0x597dad[_0x1ac109('0x1c48')]=![],_0x597dad[_0x1ac109('0x27ab')]=![],_0x597dad[_0x1ac109('0x17de')]=[],_0x597dad['ua']=new(_0x396a2f())['UA']({'sockets':[new(_0x396a2f())[(_0x1ac109('0xebf'))]('wss://'+_0x597dad[_0x1ac109('0x1301')][_0x1ac109('0x14ec')]+_0x1ac109('0x12f9'))],'uri':new(_0x396a2f())[(_0x1ac109('0x62c'))]('sip',_0x597dad[_0x1ac109('0x1301')]['name'],_0x597dad[_0x1ac109('0x1301')]['host'],0x13c4,null,null)[_0x1ac109('0xaab')](),'authorization_user':_0x597dad[_0x1ac109('0x1301')][_0x1ac109('0x1909')],'ha1':_0x597dad[_0x1ac109('0x1301')][_0x1ac109('0x12f4')],'realm':_0x597dad['conf'][_0x1ac109('0x98')],'user_agent':_0x597dad['conf']['ua'],'session_timers_refresh_method':_0x1ac109('0x1871'),'register_expires':_0x597dad['conf'][_0x1ac109('0x2583')]||0x3c,'register':!![]}),_0x597dad[_0x1ac109('0x1301')]=_0x36f548()[_0x1ac109('0x47b')](_0x592d86['webrtc'],_0x597dad[_0x1ac109('0x1301')]),_0x597dad[_0x1ac109('0x1634')]=![],_0x597dad[_0x1ac109('0x458')]=![],_0x597dad['isJabraInitialized']=![],_0x597dad[_0x1ac109('0x2599')]=null,_0x597dad[_0x1ac109('0x2703')]=![],_0x597dad[_0x1ac109('0x1c7f')]=![],_0x597dad[_0x1ac109('0x1e4e')]=![];function _0x5aa718(){const _0x5c0e76=_0x1ac109;_0x359eed(![]),navigator[_0x5c0e76('0x2666')]['ondevicechange']=function(){const _0x46b8b8=_0x5c0e76;!_0x597dad[_0x46b8b8('0x1634')]&&(_0x597dad['initDeviceInProgress']=!![],_0x2ef2db&&_0x597dad[_0x46b8b8('0xb24')]?_0x2ef2db[_0x46b8b8('0x21d7')]()[_0x46b8b8('0x11bf')](function(){_0x597dad['isJabraInitialized']=![],_0x597dad['isJabraEnabled']=![],_0x359eed(!![]);})['catch'](function(_0x58b659){const _0x4fb37c=_0x46b8b8;console[_0x4fb37c('0x255')]('Unable\x20to\x20shutdown\x20Jabra\x20library',_0x58b659);}):_0x359eed(!![]));};const _0x1393da=[_0x1e7d8f[_0x5c0e76('0x3cf')][_0x5c0e76('0xbaa')]({'type':_0x5c0e76('0x1586'),'nolimit':!![]})[_0x5c0e76('0x1549')],_0x1e7d8f[_0x5c0e76('0x3cf')]['get']({'type':_0x5c0e76('0x88e'),'nolimit':!![]})[_0x5c0e76('0x1549')]];Promise[_0x5c0e76('0x7c')](_0x1393da)[_0x5c0e76('0x11bf')](function(_0xab2ab9){const _0x4fc69d=_0x5c0e76,_0x1e1b90=_0xab2ab9[0x0][_0x4fc69d('0x19b2')],_0x1206c4=_0xab2ab9[0x1][_0x4fc69d('0x19b2')],_0x33e918=[],_0x410054=[];_0x1206c4[_0x4fc69d('0x1f88')](function(_0x1c6748){const _0x4d3f5d=_0x4fc69d;_0x410054['push']('stun:'+_0x1c6748[_0x4d3f5d('0x10cc')]);}),_0x33e918[_0x4fc69d('0x105d')]({'urls':_0x410054}),_0x1e1b90['forEach'](function(_0x497324){const _0x4bd5a5=_0x4fc69d,_0x5d6377={'urls':_0x4bd5a5('0x1604')+_0x497324[_0x4bd5a5('0x10cc')]};_0x497324[_0x4bd5a5('0x1a2c')]&&(_0x5d6377['username']=_0x497324['username']),_0x497324[_0x4bd5a5('0x74')]&&(_0x5d6377['credential']=_0x497324['password']),_0x33e918[_0x4bd5a5('0x105d')](_0x5d6377);}),_0x597dad['sessionConf'][_0x4fc69d('0x26a1')]={'iceServers':_0x33e918};}),this['ua']['on'](_0x5c0e76('0x1fc0'),_0x461374[_0x5c0e76('0x656')](this)),this['ua']['on']('unregistered',_0x1ea38d[_0x5c0e76('0x656')](this)),this['ua']['on'](_0x5c0e76('0x2450'),_0x925ee7[_0x5c0e76('0x656')](this)),_0x5b2925['on']('webbar:originate',_0x57cf48[_0x5c0e76('0x656')](this)),_0x5b2925['on'](_0x5c0e76('0x2464'),_0x3d84c4[_0x5c0e76('0x656')](this)),_0x5b2925['on'](_0x5c0e76('0x1cfd'),_0xefcd75[_0x5c0e76('0x656')](this)),_0x5b2925['on'](_0x5c0e76('0x2039'),_0x36cd88[_0x5c0e76('0x656')](this)),_0x5b2925['on']('webbar:unhold',_0x4b82cd[_0x5c0e76('0x656')](this)),_0x5b2925['on'](_0x5c0e76('0x1be9'),_0x150fb8['bind'](this));}function _0x359eed(_0xdaaa49){const _0x36e7c3=_0x1ac109;let _0x459417,_0x9b7d51,_0x677186;return _0x597dad[_0x36e7c3('0x1634')]=!![],navigator[_0x36e7c3('0x2666')][_0x36e7c3('0x19e1')]({'audio':!![]})[_0x36e7c3('0x11bf')](function(_0x11a37b){const _0x29e6c3=_0x36e7c3;return _0x11a37b[_0x29e6c3('0xb7b')]()[_0x29e6c3('0x1f88')](function(_0xb47d86){const _0xbbf4a3=_0x29e6c3;_0xb47d86[_0xbbf4a3('0x17ce')]();}),navigator[_0x29e6c3('0x2666')][_0x29e6c3('0x16c8')]();})[_0x36e7c3('0x11bf')](function(_0x66f62){const _0x2b2cd2=_0x36e7c3,_0x2c824e=_0x36f548()['filter'](_0x66f62,function(_0x24e486){const _0x12148d=a0_0xaf0c;return _0x24e486[_0x12148d('0xeda')]===_0x12148d('0x1332')&&_0x24e486[_0x12148d('0x3c5')]!==_0x12148d('0xb2f')&&_0x24e486['deviceId']!=='communications';});if(_0x2c824e[_0x2b2cd2('0x1e22')]>0x0){const _0x34b242=_0x36f548()[_0x2b2cd2('0x1ad4')](_0x66f62,function(_0x11b883){const _0xf49d2=_0x2b2cd2;return _0x11b883[_0xf49d2('0x3c5')]===_0xf49d2('0xb2f')&&_0x11b883[_0xf49d2('0xeda')]==='audioinput';});_0x677186=_0x36f548()[_0x2b2cd2('0x1ad4')](_0x2c824e,function(_0x1d4816){const _0x4b0e04=_0x2b2cd2;return _0x1d4816[_0x4b0e04('0x258a')]===_0x34b242[_0x4b0e04('0x258a')];});if(_0x597dad[_0x2b2cd2('0x1301')][_0x2b2cd2('0x2c0')]&&!_0xdaaa49){const _0x52072c=_0x36f548()[_0x2b2cd2('0x1ad4')](_0x2c824e,function(_0x4a1c4c){const _0xf98296=_0x2b2cd2;return _0x4a1c4c['deviceId']===_0x597dad[_0xf98296('0x1301')][_0xf98296('0x2c0')];});_0x52072c&&(_0x677186=_0x52072c);}_0x597dad[_0x2b2cd2('0x1301')]['microphoneId']=_0x677186[_0x2b2cd2('0x3c5')];}else _0x263603[_0x2b2cd2('0x1abd')]({'title':_0x528c65[_0x2b2cd2('0x10c2')](_0x2b2cd2('0x211d')),'msg':_0x528c65[_0x2b2cd2('0x10c2')](_0x2b2cd2('0x1a45')),'clickToClose':!![],'showClose':!![],'shake':![],'timeout':![],'position':_0x2b2cd2('0x10ec')});_0x597dad[_0x2b2cd2('0x1301')][_0x2b2cd2('0x2c0')]?_0x597dad[_0x2b2cd2('0x2366')][_0x2b2cd2('0x253e')]['audio']={'deviceId':_0x597dad[_0x2b2cd2('0x1301')][_0x2b2cd2('0x2c0')]}:_0x597dad[_0x2b2cd2('0x2366')]['mediaConstraints']['audio']=!![];_0x57073d(_0x2b2cd2('0x1cad'),![]);const _0x3413ad=_0x36f548()[_0x2b2cd2('0xdb4')](_0x66f62,function(_0x2bc07f){const _0x5737df=_0x2b2cd2;return _0x2bc07f['kind']===_0x5737df('0xd0d')&&_0x2bc07f[_0x5737df('0x3c5')]!==_0x5737df('0xb2f')&&_0x2bc07f[_0x5737df('0x3c5')]!=='communications';});if(_0x3413ad['length']>0x0){const _0x558892=_0x36f548()[_0x2b2cd2('0x1ad4')](_0x66f62,function(_0x457c6d){const _0x166620=_0x2b2cd2;return _0x457c6d['deviceId']===_0x166620('0xb2f')&&_0x457c6d['kind']===_0x166620('0xd0d');});_0x459417=_0x36f548()[_0x2b2cd2('0x1ad4')](_0x3413ad,function(_0x1ede19){const _0x59d9cd=_0x2b2cd2;return _0x1ede19[_0x59d9cd('0x258a')]===_0x558892[_0x59d9cd('0x258a')];}),_0x9b7d51=_0x459417;if(_0x597dad[_0x2b2cd2('0x1301')][_0x2b2cd2('0x1bfb')]&&!_0xdaaa49){const _0x5e93f2=_0x36f548()[_0x2b2cd2('0x1ad4')](_0x3413ad,function(_0x404f0d){const _0x1e19bd=_0x2b2cd2;return _0x404f0d[_0x1e19bd('0x3c5')]===_0x597dad['conf'][_0x1e19bd('0x1bfb')];});_0x5e93f2&&(_0x9b7d51=_0x5e93f2);}_0x597dad[_0x2b2cd2('0x1301')]['speakerId']=_0x9b7d51[_0x2b2cd2('0x3c5')];if(_0x597dad[_0x2b2cd2('0x1301')][_0x2b2cd2('0x1f14')]&&!_0xdaaa49){const _0x357393=_0x36f548()[_0x2b2cd2('0x1ad4')](_0x3413ad,function(_0x52d249){const _0x5aaa56=_0x2b2cd2;return _0x52d249['deviceId']===_0x597dad[_0x5aaa56('0x1301')][_0x5aaa56('0x1f14')];});_0x357393&&(_0x459417=_0x357393);}_0x597dad[_0x2b2cd2('0x1301')][_0x2b2cd2('0x1f14')]=_0x459417[_0x2b2cd2('0x3c5')];}else _0x263603[_0x2b2cd2('0x1abd')]({'title':_0x528c65['instant'](_0x2b2cd2('0x211d')),'msg':_0x528c65[_0x2b2cd2('0x10c2')](_0x2b2cd2('0xdc4')),'clickToClose':!![],'showClose':!![],'shake':![],'timeout':![],'position':_0x2b2cd2('0x10ec')});return _0x57073d(_0x2b2cd2('0x138'),![]);})[_0x36e7c3('0x11bf')](function(){const _0x5f4394=_0x36e7c3;return _0x57073d(_0x5f4394('0x19b'),![]);})[_0x36e7c3('0x11bf')](function(){const _0x3399f0=_0x36e7c3;if(_0x2ef2db)return _0x2ef2db[_0x3399f0('0x286f')]()[_0x3399f0('0x11bf')](function(){const _0x112948=_0x3399f0;return _0x597dad[_0x112948('0xb24')]=!![],_0x2ef2db[_0x112948('0x56e')]();})[_0x3399f0('0x11bf')](function(){const _0x233b2e=_0x3399f0;return _0x2ef2db[_0x233b2e('0x2351')]();})[_0x3399f0('0x11bf')](function(_0x5de0e5){const _0x5b338a=_0x3399f0;_0x677186&&_0x9b7d51&&_0x459417&&_0x5de0e5&&(_0x36f548()[_0x5b338a('0x55a')]([_0x677186[_0x5b338a('0x258a')],_0x9b7d51[_0x5b338a('0x258a')],_0x459417[_0x5b338a('0x258a')]],_0x5de0e5[_0x5b338a('0x1185')][_0x5b338a('0x893')])&&(console['log'](_0x5b338a('0x1630')),_0x597dad['isJabraEnabled']=!![],_0x2ef2db[_0x5b338a('0x141e')](),_0x2ef2db[_0x5b338a('0x22ca')]('acceptcall',_0xaae6ce[_0x5b338a('0x656')](this)),_0x2ef2db[_0x5b338a('0x22ca')](_0x5b338a('0x8fd'),_0x177d1f[_0x5b338a('0x656')](this)),_0x2ef2db['addEventListener']('unmute',_0xb6f323[_0x5b338a('0x656')](this)),_0x2ef2db['addEventListener'](_0x5b338a('0x1349'),_0xe5c793['bind'](this)),_0x2ef2db[_0x5b338a('0x22ca')]('endcall',_0x47b955[_0x5b338a('0x656')](this))));})[_0x3399f0('0x151d')](function(_0x3a1888){const _0x216d5c=_0x3399f0;console[_0x216d5c('0x609')](_0x216d5c('0x77d'),_0x3a1888);});})[_0x36e7c3('0x151d')](function(_0x1c0681){const _0x3be56f=_0x36e7c3;console[_0x3be56f('0x255')](_0x3be56f('0x13ed'),_0x1c0681),_0x1c0681[_0x3be56f('0x1909')]===_0x3be56f('0x3a6')&&_0x263603[_0x3be56f('0x1abd')]({'title':_0x528c65[_0x3be56f('0x10c2')]('TOOLBAR.WARNING'),'msg':_0x528c65[_0x3be56f('0x10c2')]('TOOLBAR.WEBRTC_AUDIO_DEVICES_NOT_AVAILABLE'),'clickToClose':!![],'showClose':!![],'shake':![],'timeout':![],'position':_0x3be56f('0x10ec')});})[_0x36e7c3('0xa9b')](function(){const _0x5a0dd6=_0x36e7c3;_0x597dad[_0x5a0dd6('0x1634')]=![],_0x5f2312(),_0x27d4aa()[_0x5a0dd6('0x215b')](_0x133421[_0x5a0dd6('0x656')](this));});}function _0xaae6ce(_0x1c064c){const _0x1bec11=_0x1ac109,_0x40fc04=_0x36f548()[_0x1bec11('0x1093')](_0x597dad[_0x1bec11('0x314')]);_0x40fc04?_0x40fc04[_0x1bec11('0x7d5')]==='incoming'&&_0x40fc04[_0x1bec11('0x25a1')]()?_0x597dad['answer'](_0x40fc04):console['error'](_0x1bec11('0xf98'),_0x1c064c):console['error']('Unable\x20to\x20answer\x20the\x20call',_0x1c064c);}function _0x177d1f(){const _0x10695e=_0x1ac109;_0x597dad['conf'][_0x10695e('0x253f')]=!![],_0x57073d('microphone',!![]);}function _0xb6f323(){const _0x6e63f3=_0x1ac109;_0x597dad['conf'][_0x6e63f3('0x253f')]=![],_0x57073d(_0x6e63f3('0x1cad'),!![]);}function _0xe5c793(){const _0x3e63b4=_0x1ac109;_0x597dad['jabraSession']['localHold']?_0x597dad[_0x3e63b4('0x1048')](_0x597dad[_0x3e63b4('0x2599')]):_0x597dad['hold'](_0x597dad[_0x3e63b4('0x2599')]);}function _0x47b955(){const _0xd4e5b8=_0x1ac109;_0x33942f()[_0xd4e5b8('0x11bf')](function(_0x6ac3be){const _0x32ac67=_0xd4e5b8;_0x6ac3be!==null&&_0x597dad[_0x32ac67('0x9b8')](_0x6ac3be);});}function _0x5f2312(){const _0x19f5bf=_0x1ac109;_0x592d86[_0x19f5bf('0x75')]=_0x36f548()[_0x19f5bf('0x258')](_0x597dad['conf'],_0x58896b),_0x1b5cb9['localStorage'][_0x19f5bf('0x26d6')](_0x19f5bf('0x38c')+_0x597dad['conf']['id'],JSON[_0x19f5bf('0x3e')](_0x592d86));}function _0x461374(){const _0x1114c4=_0x1ac109;this[_0x1114c4('0x1fc0')]=!![];}function _0x1ea38d(){const _0x117c16=_0x1ac109;this[_0x117c16('0x1fc0')]=![];}function _0x133421(){const _0x1686b9=_0x1ac109;_0x597dad[_0x1686b9('0x1301')][_0x1686b9('0x863')]=_0x27d4aa()['hasMicrophone'],_0x597dad[_0x1686b9('0x1301')][_0x1686b9('0x100b')]=_0x27d4aa()[_0x1686b9('0x19e6')][_0x1686b9('0x1909')]===_0x1686b9('0x2361')||_0x27d4aa()[_0x1686b9('0x19e6')][_0x1686b9('0x1909')]===_0x1686b9('0x1cfb')||_0x27d4aa()['browser']['name']===_0x1686b9('0x23ea')?_0x27d4aa()[_0x1686b9('0x100b')]:!![],_0x597dad[_0x1686b9('0x1301')][_0x1686b9('0x1015')]=_0x27d4aa()[_0x1686b9('0x1015')],_0x597dad[_0x1686b9('0x1301')]['osName']=_0x27d4aa()[_0x1686b9('0x9a7')],_0x597dad['conf'][_0x1686b9('0x1aac')]=_0x27d4aa()[_0x1686b9('0x1aac')],_0x597dad[_0x1686b9('0x1301')][_0x1686b9('0xda6')]=_0x27d4aa()[_0x1686b9('0x19e6')]['name'],_0x597dad[_0x1686b9('0x1301')][_0x1686b9('0xbc0')]=_0x27d4aa()[_0x1686b9('0x19e6')][_0x1686b9('0x23d3')];if(_0x8e54fa())!_0x597dad[_0x1686b9('0x10e4')]&&_0x597dad['ua'][_0x1686b9('0x127')]();else!_0x597dad['conf'][_0x1686b9('0x17ff')]&&_0x263603[_0x1686b9('0x1abd')]({'title':_0x528c65['instant'](_0x1686b9('0x211d')),'msg':_0x528c65[_0x1686b9('0x10c2')](_0x1686b9('0xc6')),'clickToClose':!![],'showClose':!![],'shake':![],'timeout':![],'position':_0x1686b9('0x10ec')});}function _0x8e54fa(){const _0x165022=_0x1ac109;return _0x597dad[_0x165022('0x1301')][_0x165022('0x17ff')]&&_0x597dad['conf'][_0x165022('0x1015')]&&_0x597dad['conf'][_0x165022('0x863')]&&_0x597dad[_0x165022('0x1301')][_0x165022('0x100b')]&&_0x597dad['conf']['protocol']==='https'&&_0x394f96();}function _0x394f96(){const _0x3535ee=_0x1ac109;return _0x597dad[_0x3535ee('0x1301')]['browserName'][_0x3535ee('0x20d5')]()==='chrome'||_0x597dad['conf'][_0x3535ee('0xda6')][_0x3535ee('0x20d5')]()==='opera'||_0x597dad[_0x3535ee('0x1301')][_0x3535ee('0xda6')][_0x3535ee('0x20d5')]()===_0x3535ee('0x1325');}function _0x925ee7(_0xe74fb2){const _0x27ff78=_0x1ac109;console[_0x27ff78('0x8ab')](_0x27ff78('0x1071'),_0xe74fb2);const _0x50be68=_0xe74fb2['session'];let _0x109cb6=!![],_0x56b347='',_0x53bded=0x0,_0x24e6d7;switch(_0xe74fb2[_0x27ff78('0x5eb')]){case _0x27ff78('0x1b5d'):{_0x50be68[_0x27ff78('0x2645')]=!![],_0x50be68[_0x27ff78('0x1909')]=_0xe74fb2[_0x27ff78('0x21b9')]['ruri'][_0x27ff78('0x21d9')],_0x50be68[_0x27ff78('0x21d9')]=_0xe74fb2[_0x27ff78('0x21b9')][_0x27ff78('0x1928')][_0x27ff78('0x21d9')],_0x3e5837(_0x50be68[_0x27ff78('0x21d9')],![]);const _0x567cb8='X-callback-url';_0x24e6d7=_0x4d6976(_0xe74fb2[_0x27ff78('0x21b9')]['extraHeaders'],_0x567cb8),_0x597dad[_0x27ff78('0x458')]&&(_0x597dad['jabraSession']&&_0x2ef2db[_0x27ff78('0x76c')](),_0x597dad[_0x27ff78('0x2599')]=_0x50be68,_0x2ef2db[_0x27ff78('0xc72')]());}break;case _0x27ff78('0x17f2'):{const _0x1c16ea=_0x474484[_0x27ff78('0x2428')]();if(_0x1c16ea[_0x27ff78('0x20d')]&&_0x1c16ea[_0x27ff78('0xf25')]||_0x597dad[_0x27ff78('0x1e4e')])_0x109cb6=![];else{_0x50be68[_0x27ff78('0x10b2')]=!![],_0x50be68[_0x27ff78('0x1909')]=_0xe74fb2[_0x27ff78('0x21b9')][_0x27ff78('0x18a0')][_0x27ff78('0xf96')],_0x50be68[_0x27ff78('0x21d9')]=_0xe74fb2[_0x27ff78('0x21b9')][_0x27ff78('0x18a0')][_0x27ff78('0xc7f')][_0x27ff78('0x21d9')],_0x56b347=_0xe74fb2[_0x27ff78('0x21b9')][_0x27ff78('0x361')]('X-Answer-Mode')||'',_0x53bded=_0xe74fb2['request']['getHeader']('X-Answer-After')||0x0,_0x3e64e5(_0xe74fb2['session']),_0x3e5837(_0xe74fb2[_0x27ff78('0x1225')][_0x27ff78('0x21d9')],!![]);_0x597dad[_0x27ff78('0x458')]&&_0x2ef2db['ring']();_0x597dad[_0x27ff78('0x1301')][_0x27ff78('0x246e')]&&_0x50efe3(function(){const _0x5471e5=_0x27ff78;_0x50be68['isInProgress']()&&(_0x50be68[_0x5471e5('0x246e')]=!![],_0x5b9fcc(_0x50be68));},_0x597dad[_0x27ff78('0x1301')][_0x27ff78('0x24f6')]?_0x597dad['conf'][_0x27ff78('0x24f6')]*0x3e8:0x0);console[_0x27ff78('0x8ab')](_0x27ff78('0x3d0'),_0x56b347),console['debug'](_0x27ff78('0xac8'),_0x53bded);if(_0x56b347[_0x27ff78('0x20d5')]()==_0x27ff78('0xf78')){const _0x4e30ab=_0x53bded==0x0?0x1f4:_0x53bded*0x3e8;console[_0x27ff78('0x8ab')](_0x27ff78('0x477')+_0x4e30ab+_0x27ff78('0x10b3')),_0x50efe3(function(){const _0xfe6089=_0x27ff78;_0x50be68[_0xfe6089('0x25a1')]()&&(_0x50be68[_0xfe6089('0x246e')]=!![],_0x5b9fcc(_0x50be68));},_0x4e30ab);}}break;}default:}_0x109cb6?(_0x50be68[_0x27ff78('0x287d')]=_0xe74fb2['request'][_0x27ff78('0x287d')],_0x24e6d7&&(_0x597dad[_0x27ff78('0x129a')][_0x50be68[_0x27ff78('0x287d')]]=_0x24e6d7,_0x4a3287(_0x24e6d7,{'call_id':_0x50be68[_0x27ff78('0x287d')]})[_0x27ff78('0x11bf')](function(){const _0x25eb1d=_0x27ff78;console['log'](_0x25eb1d('0xc')+_0x24e6d7+_0x25eb1d('0x171c'));})[_0x27ff78('0x151d')](function(_0x518672){const _0x4a8790=_0x27ff78;console[_0x4a8790('0xc78')](_0x4a8790('0x22a3')+_0x24e6d7+_0x4a8790('0xd5b'),_0x518672);})),_0x50be68[_0x27ff78('0x1c2a')]&&(_0x50be68[_0x27ff78('0x1c2a')][_0x27ff78('0x26b6')]=_0x5b18ab[_0x27ff78('0x656')](this)),_0x50be68['iceCandidateTimeout']=null,_0x50be68['on']('progress',_0x4d30f1[_0x27ff78('0x656')](this,_0x50be68)),_0x50be68['on'](_0x27ff78('0xee4'),_0xee83a3['bind'](this,_0x50be68)),_0x50be68['on'](_0x27ff78('0xadd'),_0x342acf[_0x27ff78('0x656')](this,_0x50be68)),_0x50be68['on'](_0x27ff78('0x1048'),_0x18eead[_0x27ff78('0x656')](this,_0x50be68)),_0x50be68['on'](_0x27ff78('0x4f3'),_0x277765[_0x27ff78('0x656')](this,_0x50be68)),_0x50be68['on'](_0x27ff78('0x1fa1'),_0x374085[_0x27ff78('0x656')](this,_0x50be68)),_0x50be68['on']('icecandidate',_0x2a7606[_0x27ff78('0x656')](this,_0x50be68)),_0x597dad['sessions'][_0x27ff78('0x105d')](_0x50be68),_0x50efe3(function(){const _0x363439=_0x27ff78;_0x415104['$apply'](),console[_0x363439('0x8ab')](_0x363439('0x238f'),_0x597dad[_0x363439('0x314')]);})):_0xd7d06f(_0x50be68,0x1e6);}function _0x3e5837(_0x3aa17e,_0x19c309,_0x3978e4){const _0x24a7aa=_0x1ac109;console[_0x24a7aa('0x8ab')](_0x24a7aa('0x213c'),_0x3aa17e,_0x19c309,_0x3978e4),_0x597dad[_0x24a7aa('0xb7e')][_0x24a7aa('0x880')]({'target':_0x3aa17e,'fullname':_0x3978e4||_0x3aa17e,'inbound':_0x19c309,'time':_0x57d4d1()()[_0x24a7aa('0x1826')](_0x24a7aa('0x1786'))}),_0x597dad[_0x24a7aa('0xb7e')][_0x24a7aa('0x1e22')]>0x32&&_0x597dad['calls'][_0x24a7aa('0xfaa')]();}function _0x3e64e5(_0x2c50c3){const _0x3f2029=_0x1ac109;console[_0x3f2029('0x8ab')]('getNotification\x20->\x20session',_0x2c50c3);const _0x43c08b=_0x2c50c3['name']?_0x2c50c3[_0x3f2029('0x1909')]+'\x20<'+_0x2c50c3[_0x3f2029('0x21d9')]+'>':_0x2c50c3[_0x3f2029('0x21d9')];_0x758b5f[_0x3f2029('0x2575')](_0x3f2029('0x24ca'),_0x43c08b,null,function(){_0x5b9fcc(_0x2c50c3);},function(){_0xd7d06f(_0x2c50c3);})[_0x3f2029('0x11bf')](function(_0xb0bfff){const _0x4a79e3=_0x3f2029;_0x2c50c3[_0x4a79e3('0xdd4')]=_0xb0bfff;})[_0x3f2029('0x151d')](function(_0x4e24fa){const _0x876ef0=_0x3f2029;console[_0x876ef0('0x255')]('Error\x20creating\x20notification\x20for\x20incoming\x20call',_0x4e24fa);});}function _0x5b9fcc(_0x263832){const _0x52732a=_0x1ac109;console[_0x52732a('0x8ab')](_0x52732a('0xcfa'),_0x263832),_0x597dad['conf'][_0x52732a('0x2c0')]?_0x597dad[_0x52732a('0x2366')]['mediaConstraints'][_0x52732a('0x1df9')]={'deviceId':_0x597dad['conf']['microphoneId']}:_0x597dad[_0x52732a('0x2366')][_0x52732a('0x253e')][_0x52732a('0x1df9')]=!![],_0x263832[_0x52732a('0xc1f')](_0x597dad[_0x52732a('0x2366')]),_0x597dad[_0x52732a('0x458')]&&(_0x2ef2db[_0x52732a('0xc72')](),_0x597dad[_0x52732a('0x2599')]=_0x263832);}function _0xd7d06f(_0x30e0b3,_0x606021){const _0x47acec=_0x1ac109;console['debug'](_0x47acec('0x1a71'),_0x30e0b3);const _0x5efd3e={};if(_0x606021)_0x5efd3e[_0x47acec('0x5a0')]=_0x606021;else!_0x30e0b3[_0x47acec('0x3f4')]()&&(_0x5efd3e['status_code']=0x25b);_0x30e0b3[_0x47acec('0x9b8')](_0x5efd3e);if(_0x597dad[_0x47acec('0x458')]){if(_0x597dad[_0x47acec('0x314')][_0x47acec('0x1e22')]===0x0)_0x30e0b3[_0x47acec('0x1137')]&&_0x2ef2db[_0x47acec('0x76c')](),_0x2ef2db[_0x47acec('0x141e')](),_0x597dad['jabraSession']=null;else{const _0x158b48=_0x36f548()[_0x47acec('0x1093')](_0x597dad[_0x47acec('0x314')]);_0x158b48['localHold']?(_0x2ef2db[_0x47acec('0x141e')](),_0x2ef2db[_0x47acec('0xadd')](),_0x597dad[_0x47acec('0x2599')]=_0x158b48):_0x2ef2db[_0x47acec('0xc72')]();}}}function _0x4d30f1(_0x540090,_0x446e25){const _0x5119d8=_0x1ac109;console['debug']('onProgress\x20->\x20session,\x20data',_0x540090,_0x446e25);let _0x569ba7=![];switch(_0x446e25['originator']){case _0x5119d8('0x1b5d'):!this['conf'][_0x5119d8('0x21f8')]&&(this[_0x5119d8('0x197d')]['setAttribute'](_0x5119d8('0x241a'),_0x5119d8('0x438')),_0x569ba7=!![]);break;case _0x5119d8('0x17f2'):this[_0x5119d8('0x1734')](_0x540090),this['soundPlayer'][_0x5119d8('0x1e1b')]('src',_0x5119d8('0x807')),_0x569ba7=!![];break;}_0x597dad[_0x5119d8('0x1e4e')]&&(_0x597dad['originateInProgress']=![]),_0x569ba7&&(this[_0x5119d8('0x197d')][_0x5119d8('0xede')]=_0x5119d8('0xede'),this[_0x5119d8('0x197d')][_0x5119d8('0x185c')]()[_0x5119d8('0x151d')](function(_0x25856f){const _0x321781=_0x5119d8;console[_0x321781('0xc78')](_0x25856f[_0x321781('0x1b86')]);})),_0x356e7e(_0x540090)[_0x5119d8('0x11bf')](function(){const _0x566011=_0x5119d8,_0x14913b=_0x597dad[_0x566011('0x129a')][_0x540090[_0x566011('0x287d')]];_0x14913b&&_0x4a3287(_0x14913b,{'uniqueid':_0x540090[_0x566011('0x938')],'call_id':_0x540090[_0x566011('0x287d')],'number_called':_0x540090['user']})[_0x566011('0x11bf')](function(){const _0x4d33f5=_0x566011;console[_0x4d33f5('0xc78')]('callbackurl:\x22'+_0x14913b+_0x4d33f5('0x171c'));})[_0x566011('0x151d')](function(_0x304e8f){const _0x2ada91=_0x566011;console[_0x2ada91('0xc78')](_0x2ada91('0x22a3')+_0x14913b+_0x2ada91('0xd5b'),_0x304e8f);})[_0x566011('0xa9b')](function(){const _0x10d0da=_0x566011;delete _0x597dad['callbackQueue'][_0x540090[_0x10d0da('0x287d')]];});})[_0x5119d8('0x151d')](function(_0x5d1c3e){const _0x5955f5=_0x5119d8;console[_0x5955f5('0x255')](_0x5955f5('0x975'),_0x5d1c3e);});}function _0x356e7e(_0x125151){const _0x3e26c5=_0x1ac109;return console[_0x3e26c5('0x8ab')](_0x3e26c5('0x225f'),_0x125151),_0x1e7d8f[_0x3e26c5('0x4db')][_0x3e26c5('0x157d')]()[_0x3e26c5('0x1549')][_0x3e26c5('0x11bf')](function(_0x5d09e0){const _0x2ba398=_0x3e26c5,_0x2ddb44=_0x36f548()[_0x2ba398('0x1ad4')](_0x5d09e0[_0x2ba398('0x19b2')],function(_0x2f318c){const _0x3e3f19=_0x2ba398;if(_0x2f318c[_0x3e3f19('0x245e')]===_0x125151['call_id'])return _0x2f318c;if(_0x2f318c['sipcalluniqueid']===_0x125151[_0x3e3f19('0x287d')])return _0x2f318c;return null;});_0x2ddb44&&(_0x125151[_0x2ba398('0x48c')]=_0x2ddb44['monitor'],_0x125151[_0x2ba398('0x938')]=_0x2ddb44[_0x2ba398('0x938')],_0x125151[_0x2ba398('0x16a')]=_0x2ddb44[_0x2ba398('0x16a')]);return;});}function _0xee83a3(_0x11f815,_0x5bdac7){const _0x1f45e4=_0x1ac109;console['debug']('onConfirmed\x20->\x20session,\x20data',_0x11f815,_0x5bdac7);const _0x5a2731=document['getElementById']('div_session_'+_0x11f815['id'][_0x1f45e4('0x26cd')](0x0,0x20));_0x5a2731&&$(_0x5a2731)[_0x1f45e4('0x1626')]()[_0x1f45e4('0x1c04')](_0x1f45e4('0x19fa')),_0x11f815[_0x1f45e4('0xee4')]=!![],_0x5bdac7[_0x1f45e4('0x5eb')]==='remote'&&_0x11f815[_0x1f45e4('0x1c2a')]&&(_0x11f815[_0x1f45e4('0x1c2a')][_0x1f45e4('0x26b6')]=_0x5b18ab['bind'](this),_0x36f548()[_0x1f45e4('0x6f5')](_0x11f815[_0x1f45e4('0x1c2a')][_0x1f45e4('0x2033')]())&&(this[_0x1f45e4('0x76e')][_0x1f45e4('0x17d')]=_0x36f548()['head'](_0x11f815[_0x1f45e4('0x1c2a')]['getRemoteStreams']()),this[_0x1f45e4('0x76e')]['play']())),this[_0x1f45e4('0x197d')][_0x1f45e4('0x92a')](),this[_0x1f45e4('0x197d')][_0x1f45e4('0xede')]=null,this[_0x1f45e4('0x1734')](_0x11f815),_0x11f815[_0x1f45e4('0x246e')]&&(this[_0x1f45e4('0x197d')][_0x1f45e4('0x1e1b')](_0x1f45e4('0x241a'),'app/core/directives/ms-phonebar/sounds/beep.ogg'),this[_0x1f45e4('0x197d')][_0x1f45e4('0x185c')]()[_0x1f45e4('0x151d')](function(_0x113a88){const _0x25cfde=_0x1f45e4;console[_0x25cfde('0xc78')](_0x25cfde('0x2394'),_0x113a88);})),_0x597dad[_0x1f45e4('0x1c48')]=_0x597dad[_0x1f45e4('0x314')][_0x1f45e4('0x1e22')]==0x2,_0x356e7e(_0x11f815)['catch'](function(_0x5ca05a){const _0x590f41=_0x1f45e4;console[_0x590f41('0x255')]('Unable\x20to\x20retrieve\x20voice\x20channels',_0x5ca05a);});}function _0x5b18ab(_0x1ce327){const _0x23fa28=_0x1ac109;console[_0x23fa28('0x8ab')]('onAddstream\x20->\x20data',_0x1ce327),this[_0x23fa28('0x76e')][_0x23fa28('0x17d')]=_0x1ce327[_0x23fa28('0x23d4')],this[_0x23fa28('0x76e')][_0x23fa28('0x185c')]();}function _0x342acf(_0x3fea0d,_0x34dca2){const _0x2bd4a5=_0x1ac109;console[_0x2bd4a5('0x8ab')]('onHold\x20->\x20session,\x20data',_0x3fea0d,_0x34dca2),_0x34dca2['originator']===_0x2bd4a5('0x1b5d')&&(_0x3fea0d[_0x2bd4a5('0x1137')]=!![]);}function _0x18eead(_0x2af078,_0x121515){const _0x5c7850=_0x1ac109;console[_0x5c7850('0x8ab')](_0x5c7850('0x127b'),_0x2af078,_0x121515),_0x121515[_0x5c7850('0x5eb')]===_0x5c7850('0x1b5d')&&(_0x2af078[_0x5c7850('0x1137')]=![]);}function _0x277765(_0x5896a2,_0x13be37){const _0x331b51=_0x1ac109;console[_0x331b51('0x8ab')]('onEnded\x20->\x20session,\x20data',_0x5896a2,_0x13be37);_0x597dad['isInConference']&&(_0x36f548()[_0x331b51('0x55a')](_0x597dad[_0x331b51('0x17de')],_0x5896a2['id'])&&(_0x1ba364(),_0x597dad[_0x331b51('0x1c7f')]=!![]));_0x36f548()['remove'](this[_0x331b51('0x314')],{'id':_0x5896a2['id']});_0x597dad[_0x331b51('0x314')][_0x331b51('0x1e22')]!==0x2&&(_0x597dad[_0x331b51('0x1c48')]=![]);if(_0x597dad[_0x331b51('0x458')]){if(_0x597dad[_0x331b51('0x314')][_0x331b51('0x1e22')]===0x0)_0x5896a2['localHold']&&_0x2ef2db[_0x331b51('0x76c')](),_0x2ef2db[_0x331b51('0x141e')](),_0x597dad['jabraSession']=null;else{const _0xdb633e=_0x36f548()[_0x331b51('0x1093')](_0x597dad['sessions']);_0xdb633e['localHold']?(_0x2ef2db['onHook'](),_0x2ef2db[_0x331b51('0xadd')](),_0x597dad[_0x331b51('0x2599')]=_0xdb633e):_0x2ef2db[_0x331b51('0xc72')]();}}}function _0x1ba364(){const _0x1a499b=_0x1ac109;_0x597dad[_0x1a499b('0x1c48')]=![],_0x597dad[_0x1a499b('0x27ab')]=![],_0x597dad[_0x1a499b('0x2615')]=[];}function _0x374085(_0x1cb56b,_0x591da8){const _0x478647=_0x1ac109;console[_0x478647('0x8ab')](_0x478647('0x12c0'),_0x1cb56b,_0x591da8),this['soundPlayer']['pause'](),this[_0x478647('0x197d')][_0x478647('0xede')]=null;_0x1cb56b[_0x478647('0xdd4')]&&_0x1cb56b[_0x478647('0xdd4')]['close']();_0x597dad[_0x478647('0x27ab')]&&(_0x36f548()['includes'](_0x597dad['currentConferenceSessions'],_0x1cb56b['id'])&&_0x1ba364());_0x597dad[_0x478647('0x1e4e')]&&(_0x597dad[_0x478647('0x1e4e')]=![]);_0x36f548()[_0x478647('0x14a5')](this[_0x478647('0x314')],{'id':_0x1cb56b['id']});_0x597dad[_0x478647('0x314')][_0x478647('0x1e22')]!==0x2&&(_0x597dad[_0x478647('0x1c48')]=![]);if(_0x597dad[_0x478647('0x458')]){if(_0x597dad[_0x478647('0x314')]['length']===0x0)_0x1cb56b[_0x478647('0x1137')]&&_0x2ef2db[_0x478647('0x76c')](),_0x2ef2db['onHook'](),_0x597dad['jabraSession']=null;else{const _0x56ab86=_0x36f548()[_0x478647('0x1093')](_0x597dad[_0x478647('0x314')]);_0x56ab86[_0x478647('0x1137')]?(_0x2ef2db['onHook'](),_0x2ef2db['hold'](),_0x597dad[_0x478647('0x2599')]=_0x56ab86):_0x2ef2db[_0x478647('0xc72')]();}}}function _0x2a7606(_0x5cbd73,_0x315155){const _0x4c1160=_0x1ac109;console[_0x4c1160('0x8ab')](_0x4c1160('0x931'),_0x5cbd73,_0x315155),_0x5cbd73[_0x4c1160('0x2154')]!==null&&clearTimeout(_0x5cbd73['iceCandidateTimeout']),_0x5cbd73[_0x4c1160('0x2154')]=setTimeout(_0x315155[_0x4c1160('0x1d94')],0x1*0x3e8);}function _0x35d726(){const _0x112392=_0x1ac109;_0x597dad[_0x112392('0xdd7')]=![];}function _0x26a76c(_0x2c2a39,_0x41160b){const _0x25baf7=_0x1ac109;let _0x5b0d2f=_0x2c2a39;!_0x597dad[_0x25baf7('0xc7a')]&&(_0x597dad[_0x25baf7('0xc7a')]='');_0x41160b&&(_0x597dad[_0x25baf7('0xc7a')]+=_0x2c2a39,_0x415104[_0x25baf7('0x1c04')](_0x25baf7('0x2719'),_0x25baf7('0x173b'),_0x597dad[_0x25baf7('0xc7a')]));switch(_0x2c2a39){case'*':_0x5b0d2f=_0x25baf7('0xabc');break;case'#':_0x5b0d2f=_0x25baf7('0xe06');break;default:}_0x597dad['conf'][_0x25baf7('0x18f2')]&&(_0x597dad[_0x25baf7('0x197d')][_0x25baf7('0x1e1b')](_0x25baf7('0x241a'),_0x25baf7('0x23a1')+_0x5b0d2f+_0x25baf7('0x1248')),_0x597dad[_0x25baf7('0x197d')]['play']()[_0x25baf7('0x151d')](function(_0x5c4526){const _0x3b5954=_0x25baf7;console[_0x3b5954('0xc78')](_0x5c4526[_0x3b5954('0x1b86')]);}));for(let _0x3a2dea=0x0;_0x3a2dea<_0x597dad['sessions'][_0x25baf7('0x1e22')];_0x3a2dea+=0x1){_0x597dad[_0x25baf7('0x314')][_0x3a2dea][_0x25baf7('0x3f4')]()&&!_0x597dad[_0x25baf7('0x314')][_0x3a2dea][_0x25baf7('0xa46')]()['local']&&_0x597dad[_0x25baf7('0x314')][_0x3a2dea]['sendDTMF'](_0x2c2a39);}}function _0x57073d(_0x2e2629,_0x29799b){const _0x5d0cff=_0x1ac109;switch(_0x2e2629){case'ringing':_0x597dad['soundPlayer'][_0x5d0cff('0x1efb')]=_0x597dad[_0x5d0cff('0x1301')][_0x5d0cff('0x21f8')];_0x597dad[_0x5d0cff('0x1301')]['ringingId']&&_0x597dad[_0x5d0cff('0x197d')][_0x5d0cff('0x2652')](_0x597dad[_0x5d0cff('0x1301')][_0x5d0cff('0x1f14')])[_0x5d0cff('0x11bf')](function(){const _0x3f9244=_0x5d0cff;_0x597dad[_0x3f9244('0x197d')][_0x3f9244('0x1917')]=_0x597dad[_0x3f9244('0x1301')][_0x3f9244('0x13d1')];})['then'](function(){_0x29799b&&_0x5f2312();})[_0x5d0cff('0x151d')](function(_0x12a22c){const _0x2ea3cb=_0x5d0cff;console[_0x2ea3cb('0x870')](_0x12a22c[_0x2ea3cb('0x1b86')],_0x597dad[_0x2ea3cb('0x1301')][_0x2ea3cb('0x1f14')]);});break;case'speaker':_0x597dad[_0x5d0cff('0x76e')][_0x5d0cff('0x1efb')]=_0x597dad['conf']['speakerMute'];_0x597dad[_0x5d0cff('0x1301')][_0x5d0cff('0x1bfb')]&&_0x597dad[_0x5d0cff('0x76e')][_0x5d0cff('0x2652')](_0x597dad[_0x5d0cff('0x1301')][_0x5d0cff('0x1bfb')])[_0x5d0cff('0x11bf')](function(){const _0x41be66=_0x5d0cff;_0x597dad[_0x41be66('0x76e')][_0x41be66('0x1917')]=_0x597dad['conf']['speakerVolume'];})[_0x5d0cff('0x11bf')](function(){_0x29799b&&_0x5f2312();})['catch'](function(_0x104e30){const _0x123d42=_0x5d0cff;console[_0x123d42('0x870')](_0x104e30[_0x123d42('0x1b86')],_0x597dad['conf'][_0x123d42('0x1bfb')]);});break;case _0x5d0cff('0x1cad'):for(let _0x28adea=0x0;_0x28adea<_0x597dad[_0x5d0cff('0x314')][_0x5d0cff('0x1e22')];_0x28adea+=0x1){_0x597dad['conf']['microphoneMute']?_0x597dad[_0x5d0cff('0x314')][_0x28adea][_0x5d0cff('0x8fd')]():_0x597dad[_0x5d0cff('0x314')][_0x28adea][_0x5d0cff('0x175a')]();}_0x2ef2db&&_0x597dad[_0x5d0cff('0x458')]&&(_0x597dad['conf']['microphoneMute']?_0x2ef2db[_0x5d0cff('0x8fd')]():_0x2ef2db[_0x5d0cff('0x175a')]());_0x29799b&&_0x5f2312();break;default:console[_0x5d0cff('0xc78')](_0x5d0cff('0x489'));}}function _0x48a514(_0x3f38cd){const _0xb29030=_0x1ac109;if(!_0x3f38cd)_0x2e1ce6();else/^(\w|\.|\+|#|\*|\(|\)|\s|-)*$/[_0xb29030('0x6eb')](_0x3f38cd)?(_0x597dad[_0xb29030('0xc7a')]=_0x3f38cd,_0x415104[_0xb29030('0x1c04')](_0xb29030('0x2719'),_0xb29030('0x173b'),_0x597dad[_0xb29030('0xc7a')])):_0x597dad[_0xb29030('0xc7a')]?_0x415104[_0xb29030('0x1c04')]('angucomplete-alt:changeInput',_0xb29030('0x173b'),_0x597dad[_0xb29030('0xc7a')]):_0x2e1ce6();}function _0x2e1ce6(){const _0x18e392=_0x1ac109;_0x597dad[_0x18e392('0xc7a')]='',document[_0x18e392('0x1451')]('ms-target')[_0x18e392('0xd00')](),document['getElementById'](_0x18e392('0x260e'))[_0x18e392('0x10cc')]='',_0x415104[_0x18e392('0x1c04')]('angucomplete-alt:clearInput',_0x18e392('0x173b'));}function _0x1c38fc(_0x29c06c){const _0x4f058e=_0x1ac109;_0x29c06c&&(_0x597dad[_0x4f058e('0xc7a')]=_0x29c06c['originalObject'][_0x4f058e('0xc7a')],_0x597dad[_0x4f058e('0x7c1')](),_0x2e1ce6());}function _0x534605(){const _0x2b98b4=_0x1ac109;if(_0x597dad[_0x2b98b4('0xc7a')]&&_0x597dad[_0x2b98b4('0xc7a')]!==_0x597dad[_0x2b98b4('0x1301')][_0x2b98b4('0x1909')]&&_0x597dad[_0x2b98b4('0xc7a')]!==_0x597dad['conf']['internal']){_0x597dad[_0x2b98b4('0x1301')][_0x2b98b4('0x2c0')]?_0x597dad['sessionConf'][_0x2b98b4('0x253e')][_0x2b98b4('0x1df9')]={'deviceId':_0x597dad[_0x2b98b4('0x1301')][_0x2b98b4('0x2c0')]}:_0x597dad[_0x2b98b4('0x2366')][_0x2b98b4('0x253e')]['audio']=!![];let _0x48a58c=_0x597dad[_0x2b98b4('0xc7a')][_0x2b98b4('0x814')](/ /g,'');return _0x48a58c=_0x48a58c['replace'](/\(/g,''),_0x48a58c=_0x48a58c[_0x2b98b4('0x814')](/\)/g,''),_0xcd5bf9(_0x48a58c)['then'](function(_0x2ec3c1){const _0x2a5a0f=_0x2b98b4;_0x2ec3c1&&_0x597dad['ua'][_0x2a5a0f('0x7c1')](_0x2ec3c1,_0x597dad[_0x2a5a0f('0x2366')]);})[_0x2b98b4('0x11bf')](function(){_0x2e1ce6();});}}function _0xcd5bf9(_0x29ef0e){const _0x523c6f=_0x1ac109;return _0x1e7d8f[_0x523c6f('0x21d9')][_0x523c6f('0x250d')]({'id':_0x597dad[_0x523c6f('0x1301')]['id']})['$promise'][_0x523c6f('0x11bf')](function(_0x30cb90){const _0x275770=_0x523c6f;if(_0x30cb90[_0x275770('0x27d2')])return _0x366f63[_0x275770('0xb9')]({'controller':_0x275770('0x4a1'),'controllerAs':'vm','templateUrl':_0x3af054,'parent':angular['element'](_0x68fb43[_0x275770('0x1d2')]),'clickOutsideToClose':!![],'locals':{'prefixes':_0x30cb90,'required':_0x597dad[_0x275770('0x1301')][_0x275770('0x1ede')]}});})[_0x523c6f('0x11bf')](function(_0x3c95d3){const _0x4a5c02=_0x523c6f;if(!_0x597dad[_0x4a5c02('0x1301')][_0x4a5c02('0x1ede')]){if(_0x3c95d3&&_0x3c95d3!==-0x1)return _0x3c95d3+_0x29ef0e;else{if(!_0x3c95d3)return _0x29ef0e;}}else{if(_0x3c95d3&&_0x3c95d3!==-0x1)return _0x3c95d3+_0x29ef0e;}});}function _0x4a642a(_0x4c98fa){const _0x18e736=_0x1ac109;switch(_0x4c98fa['key'][_0x18e736('0x20d5')]()){case'0':case'1':case'2':case'3':case'4':case'5':case'6':case'7':case'8':case'9':case'*':case'#':_0x597dad[_0x18e736('0x19fd')](_0x4c98fa['key']);break;case _0x18e736('0x33f'):_0x597dad[_0x18e736('0x7c1')]();break;default:}}function _0x5e226b(){_0x597dad['showDialpad']=!_0x597dad['showDialpad'];}_0x68fb43[_0x1ac109('0x656')]('keyup',function(_0x41f77f){switch(_0x41f77f['keyCode']){case 0x1b:_0x50efe3(function(){const _0x473965=a0_0xaf0c;_0x597dad[_0x473965('0xdd7')]=![];});break;default:}});function _0x1eb5f7(){const _0x399902=_0x1ac109;_0x597dad[_0x399902('0x27ab')]=!![],_0x597dad[_0x399902('0x1c48')]=![],_0x597dad['currentConferenceSessions'][_0x399902('0x105d')](_0x597dad[_0x399902('0x314')][0x0]['id']),_0x597dad[_0x399902('0x17de')][_0x399902('0x105d')](_0x597dad[_0x399902('0x314')][0x1]['id']);const _0x177fc1=_0x597dad[_0x399902('0x314')][0x0]['connection']['getSenders']()[0x0],_0x499734=_0x597dad[_0x399902('0x314')][0x0][_0x399902('0x1c2a')][_0x399902('0xe56')]()[0x0];_0x499734[_0x399902('0x281c')]['addEventListener'](_0x399902('0x175a'),function(){setTimeout(function(){_0x4e4ace();},0x3e8);},![]);const _0x18eacb=_0x597dad[_0x399902('0x314')][0x1][_0x399902('0x1c2a')][_0x399902('0xd3')]()[0x0],_0x5eceec=_0x597dad[_0x399902('0x314')][0x1][_0x399902('0x1c2a')][_0x399902('0xe56')]()[0x0];_0x5eceec['track'][_0x399902('0x22ca')](_0x399902('0x175a'),function(){setTimeout(function(){_0x4e4ace();},0x3e8);},![]),_0x597dad['sessions'][0x0][_0x399902('0x1048')]({'useUpdate':![]}),_0x597dad[_0x399902('0x314')][0x1]['unhold']({'useUpdate':![]}),_0x499734['track'][_0x399902('0x1f0a')]=!![],_0x5eceec['track']['enabled']=!![];const _0x1f243b=new MediaStream(),_0x3a84b2=new AudioContext();let _0x39ebf7=_0x3a84b2['createMediaStreamDestination'](),_0x4210c8=_0x3a84b2[_0x399902('0x24de')](new MediaStream([_0x5eceec[_0x399902('0x281c')]]));_0x4210c8['connect'](_0x39ebf7),_0x4210c8=_0x3a84b2[_0x399902('0x24de')](new MediaStream([_0x177fc1['track']])),_0x4210c8[_0x399902('0x196c')](_0x39ebf7),_0x177fc1[_0x399902('0x160a')](_0x39ebf7[_0x399902('0x23d4')]['getTracks']()[0x0])[_0x399902('0x11bf')](function(){}),_0x39ebf7=_0x3a84b2[_0x399902('0x14a9')](),_0x4210c8=_0x3a84b2[_0x399902('0x24de')](new MediaStream([_0x499734[_0x399902('0x281c')]])),_0x4210c8[_0x399902('0x196c')](_0x39ebf7),_0x4210c8=_0x3a84b2['createMediaStreamSource'](new MediaStream([_0x18eacb[_0x399902('0x281c')]])),_0x4210c8['connect'](_0x39ebf7),_0x18eacb[_0x399902('0x160a')](_0x39ebf7['stream'][_0x399902('0xb7b')]()[0x0])[_0x399902('0x11bf')](function(){const _0x39c24b=_0x399902;_0x1f243b[_0x39c24b('0x220d')](_0x499734[_0x39c24b('0x281c')]),_0x1f243b[_0x39c24b('0x220d')](_0x5eceec['track']);const _0xc1fdd=document[_0x39c24b('0x1451')](_0x39c24b('0x4ce'));_0xc1fdd[_0x39c24b('0x17d')]=_0x1f243b;const _0x195396=_0xc1fdd[_0x39c24b('0x185c')]();_0x195396!==undefined&&_0x195396['then'](function(){})[_0x39c24b('0x151d')](function(_0x258871){console['log'](_0x258871);});});}function _0x4e4ace(){const _0x870d4c=_0x1ac109;if(_0x597dad[_0x870d4c('0x27ab')]){const _0x49baf7=_0x597dad[_0x870d4c('0x314')][0x0][_0x870d4c('0x1c2a')][_0x870d4c('0xe56')]()[0x0],_0x593995=_0x597dad[_0x870d4c('0x314')][0x1][_0x870d4c('0x1c2a')][_0x870d4c('0xe56')]()[0x0],_0x2ad64d=new MediaStream();_0x2ad64d[_0x870d4c('0x220d')](_0x49baf7[_0x870d4c('0x281c')]),_0x2ad64d['addTrack'](_0x593995['track']);const _0x4581db=document[_0x870d4c('0x1451')](_0x870d4c('0x4ce'));_0x4581db[_0x870d4c('0x17d')]=_0x2ad64d;const _0x4d0be2=_0x4581db['play']();_0x4d0be2!==undefined&&_0x4d0be2[_0x870d4c('0x11bf')](function(){})['catch'](function(_0x5e0d0a){const _0x29b8dc=_0x870d4c;console[_0x29b8dc('0xc78')](_0x5e0d0a);});}}function _0x431269(_0x5e11bc){const _0x352c4e=_0x1ac109;console['debug'](_0x352c4e('0x355'),_0x5e11bc),_0x597dad[_0x352c4e('0x1048')](_0x5e11bc);}function _0x2b0252(_0x38a773){const _0x3be70d=_0x1ac109;console[_0x3be70d('0x8ab')]('unhold\x20->\x20session',_0x38a773),_0x38a773[_0x3be70d('0x1048')]({'useUpdate':![]}),_0x597dad[_0x3be70d('0x1734')](_0x38a773),_0x597dad['isJabraEnabled']&&(_0x2ef2db[_0x3be70d('0xc72')](),_0x2ef2db[_0x3be70d('0x76c')]());}function _0x15cbb4(_0x1a5d27){const _0x32311f=_0x1ac109;console['debug']('record\x20->\x20session',_0x1a5d27),_0x366f63[_0x32311f('0xb9')]({'controller':'RecordDialogController','controllerAs':'vm','templateUrl':_0x3ca613,'parent':angular['element'](_0x68fb43[_0x32311f('0x1d2')]),'clickOutsideToClose':!![],'locals':{'session':_0x1a5d27,'sessions':_0x597dad[_0x32311f('0x314')]}});}function _0x16469f(_0x3fd69f){const _0x26f8f1=_0x1ac109;console[_0x26f8f1('0x8ab')](_0x26f8f1('0x1677'),_0x3fd69f),_0x3fd69f[_0x26f8f1('0xadd')]({'useUpdate':![]}),_0x597dad[_0x26f8f1('0x458')]&&(_0x2ef2db[_0x26f8f1('0xadd')](),_0x2ef2db[_0x26f8f1('0x141e')]());}function _0x353188(_0x267c06){const _0x6101c9=_0x1ac109;console[_0x6101c9('0x8ab')](_0x6101c9('0xdf1'),_0x267c06);const _0x258059=_0x366f63[_0x6101c9('0xff5')]()[_0x6101c9('0x134b')](_0x6101c9('0x22b3'))[_0x6101c9('0xad7')](_0x6101c9('0x1252'))[_0x6101c9('0x1772')](_0x6101c9('0x10e9'))[_0x6101c9('0xb2e')](_0x6101c9('0x10e9'))['ok'](_0x6101c9('0x22b3'))[_0x6101c9('0x26c9')](_0x6101c9('0x784'));_0x366f63[_0x6101c9('0xb9')](_0x258059)[_0x6101c9('0x11bf')](function(_0x5dcc84){return _0xcd5bf9(_0x5dcc84);})[_0x6101c9('0x11bf')](function(_0x4445cb){const _0x30e8cb=_0x6101c9;_0x267c06[_0x30e8cb('0x2871')](_0x4445cb,{'eventHandlers':{'requestSucceeded':_0x423d2f(_0x267c06,_0x30e8cb('0x3c0'),'top\x20right',0xbb8),'requestFailed':_0x423d2f(_0x267c06,_0x30e8cb('0x972'),_0x30e8cb('0x1e7d'),0xbb8)}});});}function _0x423d2f(_0x359b2c,_0x5b8907,_0x48d7fb,_0x50d0c4){const _0x18a295=_0x1ac109;return console[_0x18a295('0x8ab')](_0x18a295('0x15c'),_0x359b2c,_0x5b8907,_0x48d7fb,_0x50d0c4),function(){const _0x565c96=_0x18a295;_0x1dac41[_0x565c96('0xb9')](_0x1dac41['simple']()[_0x565c96('0xad7')](_0x5b8907)[_0x565c96('0x197')](_0x48d7fb)[_0x565c96('0x227f')](_0x50d0c4)),_0xd7d06f(_0x359b2c);};}function _0x388820(_0x3c0e02){const _0x3feecc=_0x1ac109;console[_0x3feecc('0x8ab')](_0x3feecc('0x302'),_0x3c0e02),_0x366f63[_0x3feecc('0xb9')]({'controller':'ReferAttendedDialogController','controllerAs':'vm','templateUrl':_0x1c6154,'parent':angular[_0x3feecc('0x1e73')](_0x68fb43[_0x3feecc('0x1d2')]),'clickOutsideToClose':!![],'locals':{'session':_0x3c0e02,'sessions':_0x36f548()[_0x3feecc('0x4a')](_0x597dad[_0x3feecc('0x314')],{'id':_0x3c0e02['id']}),'isJabraEnabled':_0x597dad[_0x3feecc('0x458')]}});}function _0x19b296(_0x58d78f){const _0x5102f4=_0x1ac109;console[_0x5102f4('0x8ab')](_0x5102f4('0x24bf'),_0x58d78f);if(_0x597dad['sessions'][_0x5102f4('0x1e22')]>0x1)for(let _0x22f693=0x0;_0x22f693<_0x597dad[_0x5102f4('0x314')][_0x5102f4('0x1e22')];_0x22f693+=0x1){_0x597dad[_0x5102f4('0x314')][_0x22f693]['id']!==_0x58d78f['id']&&!_0x597dad[_0x5102f4('0x314')][_0x22f693][_0x5102f4('0xa46')]()['remote']&&_0x597dad[_0x5102f4('0x314')][_0x22f693][_0x5102f4('0xadd')]({'useUpdate':![]});}}function _0x4df8e8(_0x263189){const _0x3ea73e=_0x1ac109;_0x366f63[_0x3ea73e('0xb9')]({'controller':_0x3ea73e('0x225'),'controllerAs':'vm','templateUrl':_0x402855,'parent':angular[_0x3ea73e('0x1e73')](_0x68fb43['body']),'targetEvent':_0x263189,'clickOutsideToClose':!![],'resolve':{'devices':function(){const _0x3df78c=_0x3ea73e;return navigator[_0x3df78c('0x2666')][_0x3df78c('0x16c8')]();}},'locals':{'conf':_0x597dad[_0x3ea73e('0x1301')]}})[_0x3ea73e('0x11bf')](function(_0x1fde69){const _0x1a180f=_0x3ea73e;_0x1fde69&&(_0x597dad[_0x1a180f('0x1301')]=_0x1fde69,!_0x597dad['initDeviceInProgress']&&(_0x597dad['initDeviceInProgress']=!![],_0x2ef2db&&_0x597dad['isJabraInitialized']?_0x2ef2db[_0x1a180f('0x21d7')]()[_0x1a180f('0x11bf')](function(){const _0x335335=_0x1a180f;_0x597dad[_0x335335('0xb24')]=![],_0x597dad[_0x335335('0x458')]=![],_0x359eed(![]);})['catch'](function(_0x559212){const _0x44f572=_0x1a180f;console[_0x44f572('0x255')]('Unable\x20to\x20shutdown\x20Jabra\x20library',_0x559212);}):_0x359eed(![])));});}function _0x5934a1(){const _0x43ee0e=_0x1ac109;_0x597dad['ua'][_0x43ee0e('0x17ce')](),_0x2ef2db&&_0x597dad[_0x43ee0e('0xb24')]&&_0x2ef2db[_0x43ee0e('0x21d7')](),navigator[_0x43ee0e('0x2666')][_0x43ee0e('0x2597')]=function(){};}function _0x223818(_0x3818cf,_0x5a7c5e){const _0x1148e2=_0x1ac109;console[_0x1148e2('0x8ab')](_0x1148e2('0xb65'),_0x3818cf,_0x5a7c5e),_0x5a7c5e[_0x1148e2('0xc7a')]&&(_0x597dad[_0x1148e2('0xc7a')]=_0x5a7c5e[_0x1148e2('0xc7a')],_0x597dad[_0x1148e2('0x7c1')]());}function _0x168ae1(_0x23e523,_0x2827e7){const _0x352151=_0x1ac109;console['debug'](_0x352151('0x9e6'),_0x23e523,_0x2827e7);if(_0x2827e7[_0x352151('0xc7a')])for(let _0x53ce6f=0x0;_0x53ce6f<_0x597dad[_0x352151('0x314')][_0x352151('0x1e22')];_0x53ce6f+=0x1){if(_0x597dad[_0x352151('0x314')][_0x53ce6f][_0x352151('0x3f4')]()&&!_0x597dad['sessions'][_0x53ce6f][_0x352151('0xa46')]()[_0x352151('0x1b5d')])return _0xcd5bf9(_0x2827e7[_0x352151('0xc7a')])[_0x352151('0x11bf')](function(_0x26ffc9){const _0x230009=_0x352151;_0x26ffc9&&_0x597dad['sessions'][_0x53ce6f][_0x230009('0x2871')](_0x26ffc9,{'eventHandlers':{'requestSucceeded':_0x423d2f(_0x597dad[_0x230009('0x314')][_0x53ce6f],_0x230009('0x3c0'),'top\x20right',0xbb8),'requestFailed':_0x423d2f(_0x597dad[_0x230009('0x314')][_0x53ce6f],_0x230009('0x972'),_0x230009('0x1e7d'),0xbb8)}});});}}function _0x33942f(){return new Promise(function(_0x31b6b8){const _0x32bf8a=a0_0xaf0c;let _0x2f44ab=null;for(let _0x1f3d2e=0x0;_0x1f3d2e<_0x597dad[_0x32bf8a('0x314')][_0x32bf8a('0x1e22')];_0x1f3d2e++){!_0x36f548()[_0x32bf8a('0x13a6')](_0x597dad[_0x32bf8a('0x314')][_0x1f3d2e],_0x32bf8a('0x1137'))?_0x2f44ab=_0x597dad[_0x32bf8a('0x314')][_0x1f3d2e]:!_0x597dad[_0x32bf8a('0x314')][_0x1f3d2e][_0x32bf8a('0x1137')]&&(_0x2f44ab=_0x597dad[_0x32bf8a('0x314')][_0x1f3d2e]);}_0x31b6b8(_0x2f44ab);});}function _0x57cf48(_0x2fb458){const _0x4016eb=_0x1ac109;console[_0x4016eb('0x8ab')]('originateHook\x20->\x20payload',_0x2fb458);const _0x3dc970=_0x2fb458[_0x4016eb('0x1a03')],_0x18e5c0=_0x2fb458[_0x4016eb('0x7d0')],_0x2bc73d=_0x2fb458[_0x4016eb('0x13a9')];_0x597dad[_0x4016eb('0x1301')][_0x4016eb('0x2c0')]?_0x597dad[_0x4016eb('0x2366')][_0x4016eb('0x253e')]['audio']={'deviceId':_0x597dad[_0x4016eb('0x1301')][_0x4016eb('0x2c0')]}:_0x597dad[_0x4016eb('0x2366')][_0x4016eb('0x253e')][_0x4016eb('0x1df9')]=!![];let _0x4b66fe=_0x3dc970[_0x4016eb('0x814')](/ /g,'');_0x4b66fe=_0x4b66fe[_0x4016eb('0x814')](/\(/g,''),_0x4b66fe=_0x4b66fe[_0x4016eb('0x814')](/\)/g,'');if(_0x4b66fe){const _0x36cab3=angular[_0x4016eb('0x6fb')](_0x597dad[_0x4016eb('0x2366')]);_0x36cab3[_0x4016eb('0x23d5')]=[],_0x18e5c0&&_0x36cab3[_0x4016eb('0x23d5')][_0x4016eb('0x105d')](_0x4016eb('0x82b')+_0x18e5c0),_0x2bc73d&&_0x36cab3[_0x4016eb('0x23d5')][_0x4016eb('0x105d')](_0x4016eb('0x50')+_0x2bc73d),_0x597dad[_0x4016eb('0x1e4e')]=!![],_0x597dad['ua'][_0x4016eb('0x7c1')](_0x4b66fe,_0x36cab3);}}function _0x3d84c4(_0x5dddf1){const _0x4df43d=_0x1ac109;console[_0x4df43d('0x8ab')](_0x4df43d('0x266d'),_0x5dddf1);let _0x325004=_0x597dad[_0x4df43d('0x314')];if(_0x5dddf1[_0x4df43d('0x25eb')]){_0x325004=[];const _0x6a0c6b=_0x5dddf1[_0x4df43d('0x25eb')];_0x325004[_0x4df43d('0x105d')](_0x194af2(_0x5dddf1[_0x4df43d('0x25eb')]));if(_0x325004[_0x4df43d('0x1e22')]==0x0){console[_0x4df43d('0x609')]('call\x20with\x20session\x20Id\x20'+_0x6a0c6b+_0x4df43d('0x194'));return;}}for(let _0x296d9c=0x0;_0x296d9c<_0x325004[_0x4df43d('0x1e22')];_0x296d9c++){const _0x5055f5=_0x325004[_0x296d9c];console[_0x4df43d('0xc78')](_0x4df43d('0xdfa'),_0x5055f5),_0x597dad[_0x4df43d('0x9b8')](_0x5055f5);}}function _0xefcd75(_0x291e2b){const _0x25805c=_0x1ac109;console[_0x25805c('0x8ab')](_0x25805c('0x2293'),_0x291e2b);let _0x1ac1f3=_0x46217f();if(_0x291e2b['sessionId']){const _0xd0de14=_0x291e2b['sessionId'],_0x268273=_0x194af2(_0x291e2b[_0x25805c('0x25eb')]);if(!_0x268273){console[_0x25805c('0x609')]('call\x20with\x20session\x20Id\x20'+_0xd0de14+_0x25805c('0x194'));return;}_0x1ac1f3=[_0x268273];}for(let _0x46ce76=0x0;_0x46ce76<_0x1ac1f3[_0x25805c('0x1e22')];_0x46ce76++){const _0x299078=_0x1ac1f3[_0x46ce76];_0x597dad[_0x25805c('0xc1f')](_0x299078);}}function _0x46217f(){const _0x181ccf=_0x1ac109,_0x10e68c=_0x36f548()[_0x181ccf('0x1ad4')](_0x597dad[_0x181ccf('0x314')],function(_0x2e2a8d){const _0x3d1314=_0x181ccf;return _0x2e2a8d[_0x3d1314('0x10b2')]&&!_0x2e2a8d[_0x3d1314('0xee4')];});return _0x10e68c;}function _0x36cd88(_0xacb083){const _0xfd5f78=_0x1ac109;console[_0xfd5f78('0x8ab')](_0xfd5f78('0x1c85'),_0xacb083);let _0x55adbf=_0x597dad[_0xfd5f78('0x314')];if(_0xacb083[_0xfd5f78('0x25eb')]){_0x55adbf=[],_0x55adbf[_0xfd5f78('0x105d')](_0x194af2(_0xacb083[_0xfd5f78('0x25eb')]));const _0x2e1789=_0xacb083[_0xfd5f78('0x25eb')];if(_0x55adbf[_0xfd5f78('0x1e22')]==0x0){console['warn']('call\x20with\x20session\x20Id\x20'+_0x2e1789+'\x20not\x20found');return;}}for(let _0x137aef=0x0;_0x137aef<_0x55adbf[_0xfd5f78('0x1e22')];_0x137aef++){const _0x5cc27f=_0x55adbf[_0x137aef];_0x597dad[_0xfd5f78('0xadd')](_0x5cc27f);}}function _0x4b82cd(_0x3482f9){const _0x1e5854=_0x1ac109;console['debug'](_0x1e5854('0x1c85'),_0x3482f9);if(!_0x3482f9[_0x1e5854('0x25eb')]){console[_0x1e5854('0x255')](_0x1e5854('0x1743'));return;}const _0x45c7d6=_0x194af2(_0x3482f9[_0x1e5854('0x25eb')]);if(!_0x45c7d6){const _0x40b73a=_0x3482f9[_0x1e5854('0x25eb')];console[_0x1e5854('0x609')](_0x1e5854('0x2513')+_0x40b73a+_0x1e5854('0x194'));return;}_0x597dad['unhold'](_0x45c7d6);}function _0x150fb8(_0x26beb2){const _0xc5eca4=_0x1ac109;console[_0xc5eca4('0x8ab')](_0xc5eca4('0x7c2'),_0x26beb2);if(!_0x26beb2[_0xc5eca4('0x25eb')]){console[_0xc5eca4('0x255')](_0xc5eca4('0x1743'));return;}if(!_0x26beb2['transferNumber']){console['error']('transferNumber\x20required');return;}const _0xe3147f=_0x194af2(_0x26beb2['sessionId']);if(!_0xe3147f){const _0x443796=_0x26beb2[_0xc5eca4('0x25eb')];console[_0xc5eca4('0x609')](_0xc5eca4('0x2513')+_0x443796+_0xc5eca4('0x194'));return;}_0xe3147f[_0xc5eca4('0x2871')](_0x26beb2[_0xc5eca4('0x14')],{'eventHandlers':{'requestSucceeded':_0x423d2f(_0xe3147f,'requestSucceeded',_0xc5eca4('0x1e7d'),0xbb8),'requestFailed':_0x423d2f(_0xe3147f,_0xc5eca4('0x972'),'top\x20right',0xbb8)}});}function _0x194af2(_0x4a1eeb){console['debug']('findSessionBySessionId\x20->\x20sessionId,\x20vm_pb.sessions',_0x4a1eeb,_0x597dad['sessions']);const _0x52ed45=_0x36f548()['find'](_0x597dad['sessions'],function(_0x100e2c){return _0x100e2c['call_id']==_0x4a1eeb;});return _0x52ed45;}function _0x4a3287(_0x301252,_0x54965a){const _0x4383e4=_0x1ac109;return console[_0x4383e4('0x8ab')](_0x4383e4('0x2ca'),_0x301252,_0x54965a),_0x1eaec1({'url':_0x301252,'method':_0x4383e4('0x1e15'),'params':_0x54965a});}function _0x4d6976(_0x499072,_0x1e894e,_0x2e521c){const _0x36c2e3=_0x1ac109,_0x208dc4=_0x36f548()['find'](_0x499072,function(_0x275ee9){return _0x36f548()['startsWith'](_0x275ee9,_0x1e894e);});if(_0x208dc4)return _0x36f548()[_0x36c2e3('0x3ec')](_0x208dc4[_0x36c2e3('0x814')](_0x1e894e,'')[_0x36c2e3('0x814')](_0x2e521c||':',''));return![];}_0x597dad[_0x1ac109('0x224d')]=_0x5aa718[_0x1ac109('0x656')](this),_0x597dad['type']=_0x26a76c,_0x597dad[_0x1ac109('0x7c1')]=_0x534605,_0x597dad[_0x1ac109('0xadd')]=_0x16469f,_0x597dad[_0x1ac109('0x2871')]=_0x353188,_0x597dad[_0x1ac109('0x13c0')]=_0x15cbb4,_0x597dad['unhold']=_0x2b0252,_0x597dad['answer']=_0x5b9fcc,_0x597dad[_0x1ac109('0x9b8')]=_0xd7d06f,_0x597dad['selectSession']=_0x431269,_0x597dad[_0x1ac109('0x2439')]=_0x4a642a,_0x597dad['toggleDialpad']=_0x5e226b,_0x597dad['referAttended']=_0x388820,_0x597dad['closeDialpad']=_0x35d726,_0x597dad[_0x1ac109('0x1fb2')]=_0x57073d,_0x597dad[_0x1ac109('0x1734')]=_0x19b296,_0x597dad[_0x1ac109('0x139f')]=_0x48a514,_0x597dad[_0x1ac109('0x1b45')]=_0x1c38fc,_0x597dad['start3WayConf']=_0x1eb5f7,_0x597dad[_0x1ac109('0x8cd')]=_0x4e4ace,_0x415104[_0x1ac109('0x12d8')](_0x1ac109('0x1a1d'),_0x4df8e8),_0x415104[_0x1ac109('0x12d8')](_0x1ac109('0x27a0'),_0x5934a1),_0x415104[_0x1ac109('0x12d8')](_0x1ac109('0x24aa'),_0x223818),_0x415104[_0x1ac109('0x12d8')](_0x1ac109('0x18ea'),_0x168ae1),_0x415104[_0x1ac109('0x12d8')]('$destroy',function(){const _0x58f331=_0x1ac109;console['debug'](_0x58f331('0x49d')),_0x5b2925['removeAllListeners'](_0x58f331('0x19a1')),_0x5b2925[_0x58f331('0x1b2e')](_0x58f331('0x2464')),_0x5b2925[_0x58f331('0x1b2e')]('webbar:answer'),_0x5b2925[_0x58f331('0x1b2e')](_0x58f331('0x2039')),_0x5b2925[_0x58f331('0x1b2e')]('webbar:unhold'),_0x5b2925['removeAllListeners'](_0x58f331('0x1be9'));});}function _0x122cf6(){const _0x4df08a=_0x21d0f5;return{'restrict':'E','scope':{'conf':'='},'require':'msPhonebar','controller':_0x4df08a('0x1ed4'),'controllerAs':_0x4df08a('0x296'),'bindToController':!![],'templateUrl':_0x30e8e2};}_0x5f5cbe[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1ca2'),_0x21d0f5('0x2735'),_0x21d0f5('0x1710')];function _0x5f5cbe(_0x52b81c,_0x56aaec,_0x1a36ec){const _0x53be4f=_0x21d0f5,_0x3d5853=this;function _0x30ba28(){const _0x58437f=a0_0xaf0c;_0x52b81c[_0x58437f('0x237e')](_0x3d5853[_0x58437f('0x2137')]);}function _0x110521(_0x23cff0){const _0x45c7fa=a0_0xaf0c;_0x52b81c[_0x45c7fa('0x237e')](_0x23cff0);}_0x3d5853[_0x53be4f('0x2735')]=_0x56aaec,_0x3d5853['required']=_0x1a36ec,_0x3d5853['closeDialog']=_0x110521,_0x3d5853[_0x53be4f('0x7c1')]=_0x30ba28;}const _0x1968b4=_0x5f5cbe;_0xb46608['$inject']=[_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0x12a5'),_0x21d0f5('0x314'),_0x21d0f5('0x1225')],_0x2bfc9b[_0x21d0f5('0x1e9a')]=['$timeout'];function _0x2bfc9b(_0x44aa0e){const _0x2539a4=_0x21d0f5;return{'restrict':'C','controller':[_0x2539a4('0x1b80'),_0x2539a4('0x149f'),function(_0x243c88,_0xde7128){function _0x425bd0(){const _0x58f423=a0_0xaf0c;_0xde7128[_0x58f423('0x1147')](_0x58f423('0x1234'),_0x58f423('0x198c')),_0x44aa0e(_0x5e9573,0x3e8);}function _0x5e9573(){const _0x1c908f=a0_0xaf0c;_0xde7128[_0x1c908f('0x1147')]('display','none'),_0x44aa0e(_0x425bd0,0x3e8);}_0x425bd0();}],'replace':!![]};}function _0xb46608(_0x5af974,_0x328788,_0x1bdcbc,_0x50f040,_0x1dada3){const _0xfcd9b3=_0x21d0f5,_0x8b90e1=this;_0x8b90e1[_0xfcd9b3('0x134b')]='Record',_0x8b90e1[_0xfcd9b3('0x314')]=_0x50f040,_0x8b90e1[_0xfcd9b3('0x1225')]=_0x1dada3,_0x8b90e1[_0xfcd9b3('0xc4e')]=_0x1272b3,_0x8b90e1['addRecording']=_0x495e26,_0x8b90e1[_0xfcd9b3('0x17ce')]=_0x547535,_0x8b90e1[_0xfcd9b3('0x127')]=_0x3140c9;function _0x59aac7(){function _0x6e4b6a(){const _0x349156=a0_0xaf0c;return Math[_0x349156('0x1008')]((0x1+Math['random']())*0x10000)[_0x349156('0xaab')](0x10)[_0x349156('0x66d')](0x1);}return _0x6e4b6a()+_0x6e4b6a()+'-'+_0x6e4b6a()+'-'+_0x6e4b6a()+'-'+_0x6e4b6a()+'-'+_0x6e4b6a()+_0x6e4b6a()+_0x6e4b6a();}function _0x3140c9(_0xe9b804,_0xe47e9d){const _0x39a451=_0xfcd9b3;console[_0x39a451('0xc78')](_0x39a451('0x3d'));const _0x2ed7d9=_0x328788['defer'](),_0x5534e9=_0xe47e9d||_0xe9b804[_0x39a451('0x65f')][_0x39a451('0x814')](/^.*[\\/]/,''),_0x3e899f=_0x5534e9[_0x39a451('0xaf8')]('.')[0x0];return _0x1bdcbc[_0x39a451('0x4db')]['startMonitor']({'uniqueid':_0x8b90e1[_0x39a451('0x1225')][_0x39a451('0x938')],'filename':_0x3e899f,'format':_0x39a451('0x519')})[_0x39a451('0x1549')][_0x39a451('0x11bf')](function(_0x4d17e5){const _0x25c0fc=_0x39a451;_0xe9b804[_0x25c0fc('0x65f')]=_0x3e899f+_0x25c0fc('0x15da'),_0xe9b804['mixmonitorid']=_0x4d17e5[_0x25c0fc('0x164f')],_0xe9b804[_0x25c0fc('0xff9')]=_0x25c0fc('0x1620'),_0x8b90e1[_0x25c0fc('0x1225')][_0x25c0fc('0x48c')]=!![],_0x2ed7d9[_0x25c0fc('0xa28')](_0xe9b804);})[_0x39a451('0x151d')](function(_0x3dddae){_0x2ed7d9['reject'](_0x3dddae);}),_0x2ed7d9['promise'];}function _0x547535(_0x2675f3){const _0x3c6f1a=_0xfcd9b3;return console[_0x3c6f1a('0xc78')](_0x3c6f1a('0x454')),_0x1bdcbc[_0x3c6f1a('0x4db')][_0x3c6f1a('0x454')]({'uniqueid':_0x8b90e1['session'][_0x3c6f1a('0x938')],'mixmonitorid':_0x2675f3[_0x3c6f1a('0x164f')]})['$promise'][_0x3c6f1a('0x11bf')](function(){const _0x23d7d1=_0x3c6f1a;_0x2675f3[_0x23d7d1('0xff9')]=_0x23d7d1('0x92a'),_0x8b90e1[_0x23d7d1('0x1225')][_0x23d7d1('0x48c')]=_0x36f548()['includes'](_0x8b90e1[_0x23d7d1('0x1225')][_0x23d7d1('0x16a')],{'status':_0x23d7d1('0x1620')});})['catch'](function(_0x338948){const _0x1d96e4=_0x3c6f1a;console[_0x1d96e4('0x255')](_0x338948);});}function _0x495e26(){const _0x1b71ca=_0xfcd9b3,_0x1545e2=_0x5af974[_0x1b71ca('0xff5')]({'skipHide':!![]})['title']('Start\x20new\x20recording')[_0x1b71ca('0xad7')](_0x1b71ca('0x80f'))[_0x1b71ca('0x1772')](_0x1b71ca('0x10aa'))[_0x1b71ca('0xb2e')]('File\x20name')[_0x1b71ca('0x26ec')](_0x59aac7())['ok']('Start')['cancel'](_0x1b71ca('0x784'));_0x5af974[_0x1b71ca('0xb9')](_0x1545e2)['then'](function(_0x9f904a){return _0x3140c9({},_0x9f904a);})['then'](function(_0x2f6eaf){const _0x30c88e=_0x1b71ca;_0x8b90e1[_0x30c88e('0x1225')][_0x30c88e('0x16a')][_0x30c88e('0x105d')](_0x2f6eaf);});}function _0x1272b3(){const _0x5de5da=_0xfcd9b3;_0x5af974[_0x5de5da('0x237e')]();}}_0xd6575d[_0x21d0f5('0x1e9a')]=['$mdDialog',_0x21d0f5('0x1d2f'),_0x21d0f5('0x314'),_0x21d0f5('0x1225'),_0x21d0f5('0x458')];function _0xd6575d(_0x4af2a2,_0x241e21,_0x12ca07,_0x43d0c8,_0xf278ab){const _0x4a7b66=_0x21d0f5,_0x20cf42=this,_0x15d1e2=window[_0x4a7b66('0x1e12')];_0x20cf42[_0x4a7b66('0x134b')]=_0x4a7b66('0x9fe'),_0x20cf42[_0x4a7b66('0x314')]=_0x12ca07,_0x20cf42[_0x4a7b66('0x1225')]=_0x43d0c8,_0x20cf42[_0x4a7b66('0x458')]=_0xf278ab,_0x20cf42[_0x4a7b66('0x1e93')]=null;_0x12ca07[_0x4a7b66('0x1e22')]&&(_0x20cf42['target']=_0x12ca07[0x0][_0x4a7b66('0x21d9')]);_0x20cf42['closeDialog']=_0x33f15d,_0x20cf42[_0x4a7b66('0x792')]=_0x450b66;function _0x450b66(){const _0x488045=_0x4a7b66;let _0x814412,_0x2019d0;const _0x338c88=_0x36f548()['find'](_0x12ca07,function(_0x485a7c){const _0x43fa30=a0_0xaf0c;if(_0x485a7c[_0x43fa30('0x21d9')]===_0x20cf42[_0x43fa30('0xc7a')])return _0x485a7c;});_0x338c88[_0x488045('0x2645')]?(_0x814412=_0x338c88,_0x2019d0=_0x20cf42[_0x488045('0x1225')]):(_0x814412=_0x20cf42[_0x488045('0x1225')],_0x2019d0=_0x338c88),_0x2019d0['refer'](_0x814412[_0x488045('0x21d9')],{'replaces':_0x814412,'eventHandlers':{'requestSucceeded':_0x40bee3(_0x43d0c8,_0x488045('0x3c0'),_0x488045('0x1e7d'),0xbb8,_0x20cf42[_0x488045('0x458')]),'requestFailed':_0x40bee3(_0x43d0c8,_0x488045('0x972'),'top\x20right',0xbb8,_0x20cf42['isJabraEnabled'])}});}function _0x40bee3(_0x313d17,_0x449f30,_0x1b1ada,_0x56d3eb,_0x409eaa){const _0x4f96e6=_0x4a7b66;return console[_0x4f96e6('0x8ab')](_0x4f96e6('0x273e'),_0x313d17,_0x449f30,_0x1b1ada,_0x56d3eb),function(){const _0x887fa9=_0x4f96e6;_0x241e21['show'](_0x241e21['simple']()[_0x887fa9('0xad7')](_0x449f30)[_0x887fa9('0x197')](_0x1b1ada)[_0x887fa9('0x227f')](_0x56d3eb)),_0x313d17[_0x887fa9('0x9b8')](),_0x15d1e2&&_0x409eaa&&_0x15d1e2['onHook'](),_0x33f15d();};}function _0x33f15d(_0x2464bf){const _0x1739e0=_0x4a7b66;_0x4af2a2[_0x1739e0('0x237e')](_0x2464bf);}}const _0xdded5=_0xd6575d;_0x51fedb['$inject']=['$mdDialog',_0x21d0f5('0x1301'),_0x21d0f5('0x1295')];function _0x51fedb(_0x569a1e,_0x5a80cf,_0x2573c9){const _0x1a8ac3=_0x21d0f5,_0x54cdad=this;_0x36f548()[_0x1a8ac3('0x14a5')](_0x2573c9,function(_0x434066){const _0x128e22=_0x1a8ac3;return _0x434066[_0x128e22('0xeda')]===_0x128e22('0x1332')&&(_0x434066[_0x128e22('0x3c5')]===_0x128e22('0xb2f')||_0x434066[_0x128e22('0x3c5')]===_0x128e22('0x210c'))||_0x434066[_0x128e22('0xeda')]==='audiooutput'&&(_0x434066[_0x128e22('0x3c5')]==='default'||_0x434066[_0x128e22('0x3c5')]===_0x128e22('0x210c'));}),_0x5a80cf[_0x1a8ac3('0x1f14')]=_0x1dc182(_0x2573c9,_0x1a8ac3('0xd0d'),_0x1a8ac3('0x1f14')),_0x5a80cf[_0x1a8ac3('0x1bfb')]=_0x1dc182(_0x2573c9,'audiooutput',_0x1a8ac3('0x1bfb')),_0x5a80cf[_0x1a8ac3('0x2c0')]=_0x1dc182(_0x2573c9,_0x1a8ac3('0x1332'),_0x1a8ac3('0x2c0')),_0x5a80cf['ringingVolume']=_0x5a80cf['ringingVolume']||0.5,_0x5a80cf[_0x1a8ac3('0x16a2')]=_0x5a80cf[_0x1a8ac3('0x16a2')]||0.5,_0x5a80cf[_0x1a8ac3('0x12fc')]=_0x5a80cf[_0x1a8ac3('0x12fc')]||0x1,_0x5a80cf[_0x1a8ac3('0x21f8')]=_0x5a80cf[_0x1a8ac3('0x21f8')]||![],_0x5a80cf['speakerMute']=_0x5a80cf[_0x1a8ac3('0x19df')]||![],_0x5a80cf['microphoneMute']=_0x5a80cf['microphoneMute']||![],_0x54cdad[_0x1a8ac3('0x1301')]=angular[_0x1a8ac3('0x6fb')](_0x5a80cf),_0x54cdad['devices']=_0x2573c9,_0x54cdad[_0x1a8ac3('0x1373')]=_0x3547dd,_0x54cdad[_0x1a8ac3('0xc4e')]=_0x2c5e22,_0x54cdad[_0x1a8ac3('0xfa2')]=_0x13eaed;function _0x13eaed(){const _0x117f86=_0x1a8ac3;return _0x54cdad['conf']['browserName']['toLowerCase']()===_0x117f86('0x1096')||_0x54cdad[_0x117f86('0x1301')]['browserName'][_0x117f86('0x20d5')]()===_0x117f86('0x2354')||_0x54cdad[_0x117f86('0x1301')][_0x117f86('0xda6')][_0x117f86('0x20d5')]()===_0x117f86('0x1325');}function _0x1dc182(_0x4a8077,_0x7b169,_0x21da77){const _0x2da37e=_0x1a8ac3;let _0x355d30;if(!_0x5a80cf[_0x21da77])_0x355d30=_0x36f548()[_0x2da37e('0x1ad4')](_0x4a8077,function(_0x6bd348){const _0x25ee55=_0x2da37e;return _0x6bd348[_0x25ee55('0xeda')]===_0x7b169;}),_0x355d30&&(_0x5a80cf[_0x21da77]=_0x355d30[_0x2da37e('0x3c5')]);else{_0x355d30=_0x36f548()[_0x2da37e('0x1ad4')](_0x4a8077,function(_0x147315){const _0x5cded4=_0x2da37e;return _0x147315[_0x5cded4('0x3c5')]===_0x5a80cf[_0x21da77];});if(_0x355d30)return _0x355d30['deviceId'];const _0x2b4d26=_0x36f548()[_0x2da37e('0x1b12')](_0x4a8077,function(_0x4b3fd0){return _0x4b3fd0['kind']===_0x7b169;});if(_0x2b4d26>=0x0)return _0x4a8077[_0x2b4d26][_0x2da37e('0x3c5')];}return _0x5a80cf[_0x21da77]||null;}function _0x3547dd(){const _0x261b1c=_0x1a8ac3;_0x569a1e[_0x261b1c('0x237e')](_0x54cdad['conf']);}function _0x2c5e22(){const _0x5793a4=_0x1a8ac3;_0x569a1e[_0x5793a4('0x237e')]();}}const _0x2499d9=_0x51fedb,_0x2d1c09=_0x351988['p']+_0x21d0f5('0x261c');_0x2a6ac4[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x2212'),_0x21d0f5('0xc9')],_0x59113c[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1531'),_0x21d0f5('0x1a38')];function _0x4d8966(){return{'restrict':'E','scope':{'query':'=','filters':'=','search':'&'},'controller':_0x59113c,'controllerAs':'vm','bindToController':!![],'templateUrl':_0x2d1c09};}function _0x59113c(_0x2a9c3b,_0x257720){const _0x17357e=_0x21d0f5,_0x120f7f=this;_0x120f7f[_0x17357e('0xed1')]={},_0x120f7f['placeholders']={},_0x120f7f[_0x17357e('0x1f7e')]=_0x2a9c3b[_0x17357e('0x1f7e')],_0x120f7f[_0x17357e('0x2431')]=_0x196d71,_0x120f7f['onDateRangeInit']=_0x16a191,_0x120f7f[_0x17357e('0x771')]=_0x1cfb75,_0x120f7f[_0x17357e('0x1383')]=_0x5eaa20,_0x120f7f['clearDate']=_0x2c2a76,_0x120f7f[_0x17357e('0x1a7c')]=_0x5fce3a,_0x120f7f[_0x17357e('0x197a')]=_0x18158e;function _0x196d71(_0x32f3c2){_0x3fd0a6(_0x32f3c2);}function _0x16a191(_0x437f96){const _0xbb92ae=_0x17357e,_0x163c2c=_0x437f96[_0xbb92ae('0xa0c')];_0x120f7f[_0xbb92ae('0x1f2a')][_0x163c2c]?_0x120f7f['pickerModels'][_0x163c2c]=_0x2a9c3b[_0xbb92ae('0xac2')](_0x120f7f[_0xbb92ae('0x1f2a')][_0x163c2c]):_0x120f7f[_0xbb92ae('0xed1')][_0x163c2c]={'dateStart':null};}function _0x1cfb75(_0x458ceb){_0x3fd0a6(_0x458ceb),_0x120f7f['search']();}function _0x5eaa20(_0x2ae129){const _0x27e4c9=_0x17357e,_0x128b58=_0x2ae129[_0x27e4c9('0xa0c')];_0x120f7f[_0x27e4c9('0xed1')][_0x128b58][_0x27e4c9('0x3b8')]?_0x120f7f[_0x27e4c9('0x1f2a')][_0x128b58]={'$gte':_0x57d4d1()(_0x120f7f[_0x27e4c9('0xed1')][_0x128b58]['dateStart'])[_0x27e4c9('0x1fb1')](0x0,!![])[_0x27e4c9('0x1826')](),'$lte':_0x57d4d1()(_0x120f7f['pickerModels'][_0x128b58][_0x27e4c9('0xcf9')])[_0x27e4c9('0x1fb1')](0x0,!![])[_0x27e4c9('0x23c1')](0x17,_0x27e4c9('0xf51'))['add'](0x3b,'minutes')[_0x27e4c9('0x23c1')](0x3b,_0x27e4c9('0x278'))['format']()}:_0x120f7f[_0x27e4c9('0x1f2a')][_0x128b58]=undefined,_0x120f7f[_0x27e4c9('0xce2')]();}function _0x2c2a76(_0x3670bb){const _0x137bf0=_0x17357e,_0x322a0d=_0x3670bb[_0x137bf0('0xa0c')];_0x120f7f['pickerModels'][_0x322a0d]={'dateStart':null},delete _0x120f7f[_0x137bf0('0x1f2a')][_0x322a0d],_0x120f7f[_0x137bf0('0xce2')]();}function _0x18158e(_0x461077){const _0x5d5f12=_0x17357e,_0x32416d=_0x461077[_0x5d5f12('0xa0c')],_0x3449d7=_0x461077[_0x5d5f12('0x1100')]||'id';_0x120f7f[_0x5d5f12('0x1f2a')][_0x32416d]=_0x36f548()[_0x5d5f12('0x2171')](_0x461077[_0x5d5f12('0x249a')],_0x3449d7),_0x3fd0a6(_0x461077),_0x120f7f[_0x5d5f12('0xce2')]();}function _0x5fce3a(_0x538948){const _0x563a89=_0x17357e,_0x33a8c4=_0x538948['key'],_0x333bde=_0x538948[_0x563a89('0x1100')]||'id';_0x120f7f[_0x563a89('0x1f2a')][_0x33a8c4]=_0x538948[_0x563a89('0x2539')]===![]?[_0x36f548()[_0x563a89('0x6f5')](_0x538948[_0x563a89('0x249a')])[_0x333bde]]:[],_0x3fd0a6(_0x538948),_0x120f7f[_0x563a89('0xce2')]();}function _0x3fd0a6(_0x437cc5){const _0x2d46c1=_0x17357e,_0x45c54f=_0x437cc5[_0x2d46c1('0xa0c')],_0x4862a7={'param':_0x120f7f['query'][_0x45c54f],'resources':_0x437cc5[_0x2d46c1('0x249a')],'placeholder':_0x437cc5['placeholder'],'ngValue':_0x437cc5[_0x2d46c1('0x1100')]};_0x257720[_0x2d46c1('0xcbe')](_0x4862a7)[_0x2d46c1('0x11bf')](function(_0x5a8dfd){const _0x1a360b=_0x2d46c1;_0x120f7f[_0x1a360b('0x1ff5')][_0x45c54f]=_0x5a8dfd;});}}function _0x2a6ac4(_0x4049b5,_0x1a66bb){const _0x1749be={'localizationMap':_0x1a66bb,'setSelectedDate':_0x402927};function _0x402927(_0x2d8c67){const _0x22e800=a0_0xaf0c,_0x1680e8=new Date(_0x57d4d1()['utc'](_0x2d8c67['$gte'])[_0x22e800('0x1826')](_0x22e800('0xe68'))),_0x38af60=new Date(_0x57d4d1()['utc'](_0x2d8c67[_0x22e800('0x2ef')])[_0x22e800('0x1826')](_0x22e800('0xe68'))),_0x2d3a5d={'dateStart':new Date(_0x1680e8['getFullYear'](),_0x1680e8[_0x22e800('0x2670')](),_0x1680e8[_0x22e800('0x2508')]()),'dateEnd':new Date(_0x38af60['getFullYear'](),_0x38af60[_0x22e800('0x2670')](),_0x38af60[_0x22e800('0x2508')]())};return _0x2d3a5d['selectedTemplateName']=_0x50c61c(_0x2d3a5d),_0x2d3a5d;}function _0x50c61c(_0x2c1811){const _0x3c9bc1=a0_0xaf0c;if(_0x57d4d1()(_0x2c1811['dateStart'])[_0x3c9bc1('0x18ce')](_0x2c1811[_0x3c9bc1('0xcf9')])){if(_0x3f4024(_0x2c1811))return _0x1749be[_0x3c9bc1('0x1f7e')][_0x3c9bc1('0x13bd')];else return _0x52411d(_0x2c1811)?_0x1749be[_0x3c9bc1('0x1f7e')][_0x3c9bc1('0xc05')]:_0x4049b5(_0x3c9bc1('0x22f7'))(_0x2c1811['dateStart'],_0x3c9bc1('0x15d'));}else{if(_0x227816(_0x2c1811))return _0x1749be[_0x3c9bc1('0x1f7e')][_0x3c9bc1('0x21af')];else{if(_0x36b840(_0x2c1811))return _0x1749be[_0x3c9bc1('0x1f7e')][_0x3c9bc1('0x2542')];else{if(_0x47a960(_0x2c1811))return _0x1749be[_0x3c9bc1('0x1f7e')][_0x3c9bc1('0x22d1')];else{if(_0x4562e0(_0x2c1811))return _0x1749be['localizationMap']['Last\x20Month'];else{if(_0x1cd252(_0x2c1811))return _0x1749be[_0x3c9bc1('0x1f7e')][_0x3c9bc1('0x1969')];else return _0x59e658(_0x2c1811)?_0x1749be[_0x3c9bc1('0x1f7e')][_0x3c9bc1('0xfa5')]:_0x4049b5(_0x3c9bc1('0x22f7'))(_0x2c1811[_0x3c9bc1('0x3b8')],'dd'+(_0x2c1811[_0x3c9bc1('0x3b8')]['getMonth']()!==_0x2c1811[_0x3c9bc1('0xcf9')][_0x3c9bc1('0x2670')]()||_0x2c1811[_0x3c9bc1('0x3b8')][_0x3c9bc1('0x153a')]()!==_0x2c1811[_0x3c9bc1('0xcf9')][_0x3c9bc1('0x153a')]()?_0x3c9bc1('0x271e'):'')+(_0x2c1811[_0x3c9bc1('0x3b8')][_0x3c9bc1('0x153a')]()!==_0x2c1811[_0x3c9bc1('0xcf9')][_0x3c9bc1('0x153a')]()?_0x3c9bc1('0x2259'):''))+_0x3c9bc1('0xb0b')+_0x4049b5('date')(_0x2c1811[_0x3c9bc1('0xcf9')],'dd\x20MMM\x20yyyy');}}}}}}function _0x3f4024(_0x1a1aaa){const _0x329a64=a0_0xaf0c;return _0x57d4d1()()['startOf'](_0x329a64('0x2161'))[_0x329a64('0x18ce')](_0x1a1aaa[_0x329a64('0x3b8')]);}function _0x52411d(_0xd76f60){const _0x4356b2=a0_0xaf0c;return _0x57d4d1()()[_0x4356b2('0x243a')](0x1,_0x4356b2('0xd4d'))[_0x4356b2('0x2655')](_0x4356b2('0x2161'))[_0x4356b2('0x18ce')](_0xd76f60['dateStart']);}function _0x227816(_0x17c1ef){const _0x16892b=a0_0xaf0c;return _0x57d4d1()()[_0x16892b('0x2655')](_0x16892b('0x22e7'))['isSame'](_0x17c1ef[_0x16892b('0x3b8')],_0x16892b('0x2161'))&&_0x57d4d1()()[_0x16892b('0x2ba')](_0x16892b('0x22e7'))[_0x16892b('0x18ce')](_0x17c1ef[_0x16892b('0xcf9')],'day');}function _0x36b840(_0x4fed09){const _0x3c4b66=a0_0xaf0c;return _0x57d4d1()()[_0x3c4b66('0x243a')](0x1,'weeks')[_0x3c4b66('0x2655')](_0x3c4b66('0x22e7'))[_0x3c4b66('0x18ce')](_0x4fed09['dateStart'],_0x3c4b66('0x2161'))&&_0x57d4d1()()['subtract'](0x1,_0x3c4b66('0x126b'))[_0x3c4b66('0x2ba')](_0x3c4b66('0x22e7'))[_0x3c4b66('0x18ce')](_0x4fed09[_0x3c4b66('0xcf9')],'day');}function _0x47a960(_0x16add3){const _0x428d1b=a0_0xaf0c;return _0x57d4d1()()['startOf']('month')[_0x428d1b('0x18ce')](_0x16add3[_0x428d1b('0x3b8')],_0x428d1b('0x2161'))&&_0x57d4d1()()[_0x428d1b('0x2ba')](_0x428d1b('0x4d8'))[_0x428d1b('0x18ce')](_0x16add3[_0x428d1b('0xcf9')],'day');}function _0x4562e0(_0x5b89fa){const _0x48111c=a0_0xaf0c;return _0x57d4d1()()[_0x48111c('0x243a')](0x1,_0x48111c('0x12c5'))[_0x48111c('0x2655')](_0x48111c('0x4d8'))[_0x48111c('0x18ce')](_0x5b89fa[_0x48111c('0x3b8')],'day')&&_0x57d4d1()()[_0x48111c('0x243a')](0x1,_0x48111c('0x12c5'))[_0x48111c('0x2ba')](_0x48111c('0x4d8'))[_0x48111c('0x18ce')](_0x5b89fa[_0x48111c('0xcf9')],_0x48111c('0x2161'));}function _0x1cd252(_0xb25360){const _0x564c42=a0_0xaf0c;return _0x57d4d1()()['startOf'](_0x564c42('0x2211'))['isSame'](_0xb25360[_0x564c42('0x3b8')],'day')&&_0x57d4d1()()[_0x564c42('0x2ba')]('year')[_0x564c42('0x18ce')](_0xb25360[_0x564c42('0xcf9')],_0x564c42('0x2161'));}function _0x59e658(_0x8c575e){const _0x2e595e=a0_0xaf0c;return _0x57d4d1()()[_0x2e595e('0x243a')](0x1,_0x2e595e('0x1a0d'))[_0x2e595e('0x2655')]('year')[_0x2e595e('0x18ce')](_0x8c575e[_0x2e595e('0x3b8')],'day')&&_0x57d4d1()()[_0x2e595e('0x243a')](0x1,_0x2e595e('0x1a0d'))[_0x2e595e('0x2ba')](_0x2e595e('0x2211'))['isSame'](_0x8c575e[_0x2e595e('0xcf9')],_0x2e595e('0x2161'));}return _0x1749be;}function _0x45d95a(){return{'restrict':'A','scope':{'msRandomClass':'='},'link':function(_0x38fb7d,_0x9b8c21){const _0x386f75=a0_0xaf0c,_0x22f46a=_0x38fb7d[_0x386f75('0x35d')][Math[_0x386f75('0x1008')](Math['random']()*_0x38fb7d['msRandomClass'][_0x386f75('0x1e22')])];_0x9b8c21[_0x386f75('0x16d8')](_0x22f46a);}};}const _0x479172=_0x45d95a;_0x1752f2[_0x21d0f5('0x1e9a')]=['api'];function _0x1752f2(_0x2ab91c){return{'restrict':'E','scope':{'id':'=','model':'=','download':'='},'replace':!![],'link':function(_0x13e2b3,_0x308982){const _0x24a463=a0_0xaf0c;let _0x2dc5d2=![];const _0x374cd1=document[_0x24a463('0x2773')](_0x24a463('0x1df9'));!_0x13e2b3[_0x24a463('0x149c')]&&_0x374cd1['setAttribute'](_0x24a463('0x282e'),_0x24a463('0x159b')),_0x374cd1['setAttribute'](_0x24a463('0x2a'),'none'),_0x374cd1[_0x24a463('0x1e1b')](_0x24a463('0x17c3'),''),_0x374cd1[_0x24a463('0x1e1b')](_0x24a463('0x1acd'),'width:\x20265px;'),_0x374cd1[_0x24a463('0x1e1b')](_0x24a463('0x241a'),'\x20'),_0x374cd1[_0x24a463('0x899')]=function(_0x56f2a5){const _0x67ece1=_0x24a463;!_0x2dc5d2&&(_0x2dc5d2=!![],_0x56f2a5['preventDefault'](),_0x2ab91c[_0x13e2b3[_0x67ece1('0x60d')]||_0x67ece1('0x262')][_0x67ece1('0x149c')]({'id':_0x13e2b3['id']})[_0x67ece1('0x1549')][_0x67ece1('0x11bf')](function(_0x3a3261){const _0x9d8641=_0x67ece1,_0x32d225=[_0x3a3261[_0x9d8641('0x1e94')]],_0x55bb65=new Blob(_0x32d225,{'type':_0x3a3261[_0x9d8641('0x19fd')]});_0x374cd1[_0x9d8641('0x1e1b')](_0x9d8641('0x19fd'),_0x3a3261[_0x9d8641('0x19fd')]),_0x374cd1[_0x9d8641('0x1e1b')](_0x9d8641('0x241a'),URL[_0x9d8641('0x44b')](_0x55bb65)),_0x374cd1[_0x9d8641('0x185c')]();})[_0x67ece1('0x151d')](function(_0x56ec8d){const _0x10b3d4=_0x67ece1;console[_0x10b3d4('0x255')](_0x56ec8d);}));},_0x308982['append'](_0x374cd1);}};}const _0x4c7626=_0x1752f2;function _0x447f16(){return{'restrict':'A','link':function(_0x2188fb,_0x141d44){const _0xe8d689=a0_0xaf0c,_0x161ce4=angular['element']('');_0x141d44['after'](_0x161ce4),_0x161ce4[_0xe8d689('0x155a')](_0x141d44);}};}const _0x3ead1a=_0x447f16;var _0x1b6533=_0x351988(0x1703),_0x1fc7ab=_0x351988['n'](_0x1b6533);_0xa9e2ed[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x17f5'),'msScrollConfig',_0x21d0f5('0xda9'),_0x21d0f5('0x22fa')];function _0xaf25dd(){const _0x51fc0d=_0x21d0f5;let _0x1a3cb3={'wheelSpeed':0x1,'wheelPropagation':![],'swipePropagation':!![],'minScrollbarLength':null,'maxScrollbarLength':null,'useBothWheelAxes':![],'useKeyboard':!![],'suppressScrollX':![],'suppressScrollY':![],'scrollXMarginOffset':0x0,'scrollYMarginOffset':0x0,'stopPropagationOnClick':!![]};this[_0x51fc0d('0x27b1')]=function(){function _0xd84cc5(){return _0x1a3cb3;}const _0xbaed56={'getConfig':_0xd84cc5};return _0xbaed56;};function _0x3e00db(_0x5ba3af){_0x1a3cb3=angular['extend']({},_0x1a3cb3,_0x5ba3af);}this[_0x51fc0d('0x53a')]=_0x3e00db;}function _0xa9e2ed(_0x41616d,_0x5f4ddc,_0x4eb076,_0x2ebbb7){return{'restrict':'AE','compile':function(_0x2d56c6){const _0x17913d=a0_0xaf0c;if(_0x2ebbb7['getConfig'](_0x17913d('0x1342')))return;if(_0x2ebbb7['getConfig']('disableCustomScrollbarsOnMobile')&&_0x4eb076[_0x17913d('0xb29')]())return;return _0x2d56c6[_0x17913d('0x16d8')]('ms-scroll'),function _0x504192(_0x5ecef2,_0x24de07,_0x55c9fa){const _0x45d00f=_0x17913d;let _0x5afb2d={};_0x55c9fa[_0x45d00f('0x1e78')]&&(_0x5afb2d=_0x5ecef2['$eval'](_0x55c9fa[_0x45d00f('0x1e78')]));_0x5afb2d=angular[_0x45d00f('0x218f')]({},_0x5f4ddc[_0x45d00f('0x1c55')](),_0x5afb2d),_0x1fc7ab()['initialize'](_0x24de07[0x0],_0x5afb2d);function _0x44bba5(){_0x1fc7ab()['update'](_0x24de07[0x0]);}_0x24de07['on'](_0x45d00f('0x1c94'),_0x44bba5),_0x5ecef2[_0x45d00f('0x2087')](function(){const _0x5443d1=_0x45d00f;return _0x24de07['prop'](_0x5443d1('0x1a89'));},function(_0x365b7f,_0x5c2df3){const _0x4492e5=_0x45d00f;if(angular[_0x4492e5('0x13b9')](_0x365b7f)||angular[_0x4492e5('0x932')](_0x365b7f,_0x5c2df3))return;_0x44bba5();}),_0x5ecef2[_0x45d00f('0x2087')](function(){const _0x13c1d3=_0x45d00f;return _0x24de07[_0x13c1d3('0xf1d')](_0x13c1d3('0x2e4'));},function(_0x4a0d2e,_0x3b65b3){const _0x222a03=_0x45d00f;if(angular[_0x222a03('0x13b9')](_0x4a0d2e)||angular[_0x222a03('0x932')](_0x4a0d2e,_0x3b65b3))return;_0x44bba5();}),_0x5ecef2[_0x45d00f('0x12d8')](_0x45d00f('0x4f7'),function(){const _0x55877c=_0x45d00f;_0x24de07['off'](_0x55877c('0x1c94')),_0x1fc7ab()[_0x55877c('0xd77')](_0x24de07[0x0]);});};}};}const _0x47ece6=_0x351988['p']+_0x21d0f5('0x1122');_0x10b7cf[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b30')],_0x13ae57['$inject']=[_0x21d0f5('0x1b80'),_0x21d0f5('0x149f'),_0x21d0f5('0x17f5')];function _0x13ae57(_0x1ff41b,_0x402989,_0x10c4df){const _0x3c6897=_0x21d0f5,_0x10517d=this;_0x10517d[_0x3c6897('0x1c76')]=!![],_0x10517d[_0x3c6897('0x1f2a')]=undefined,_0x10517d['queryOptions']={'debounce':_0x10517d[_0x3c6897('0x26b7')]||0x0};const _0x2af0b6=_0x10517d[_0x3c6897('0x4dd')]&&_0x10517d[_0x3c6897('0x4dd')]==_0x3c6897('0x204c')?!![]:![];_0x10517d['resultsLoading']=![],_0x10517d['results']=null,_0x10517d[_0x3c6897('0x287a')]=0x0,_0x10517d['ignoreMouseEvents']=![],_0x10517d['onInit']=_0x12af1e,_0x10517d['populateResults']=_0x289494,_0x10517d[_0x3c6897('0x2475')]=_0x25ef32,_0x10517d[_0x3c6897('0x1a09')]=_0x32ba26,_0x10517d[_0x3c6897('0x281e')]=_0x46d449,_0x10517d['absorbEvent']=_0x1453d5,_0x10517d[_0x3c6897('0x11d7')]=_0x2efe6a,_0x10517d[_0x3c6897('0x253')]=_0x4e75cd,_0x10517d[_0x3c6897('0x75d')]=_0x42ba76,_0x10517d[_0x3c6897('0x1834')]=_0x14256c,_0x10517d[_0x3c6897('0x1559')]=_0x1814c1;function _0x12af1e(){const _0x5b6fff=_0x3c6897;_0x1ff41b[_0x5b6fff('0x2087')](_0x5b6fff('0x63c'),function(_0x4b3fad,_0x1aab69){const _0x2b423e=_0x5b6fff;if(angular[_0x2b423e('0x13b9')](_0x4b3fad))return;if(angular[_0x2b423e('0x932')](_0x4b3fad,_0x1aab69))return;if(_0x10517d['collapsed']){if(_0x4b3fad)_0x1ff41b[_0x2b423e('0x2475')]();else return;}const _0x3e41cc=_0x1ff41b['$parent'][_0x2b423e('0x2182')](_0x10517d[_0x2b423e('0xddb')],{'query':_0x4b3fad}),_0x405775=angular['isArray'](_0x3e41cc),_0x2447ad=_0x3e41cc&&!!_0x3e41cc[_0x2b423e('0x11bf')];_0x405775&&_0x10517d[_0x2b423e('0x2035')](_0x3e41cc),_0x2447ad&&(_0x10517d[_0x2b423e('0x993')]=!![],_0x3e41cc[_0x2b423e('0x11bf')](function(_0x54cbe){const _0x5644a2=_0x2b423e;_0x10517d[_0x5644a2('0x2035')](_0x54cbe);},function(){const _0x28100c=_0x2b423e;_0x10517d[_0x28100c('0x2035')]([]);})[_0x2b423e('0xa9b')](function(){const _0x1b36e7=_0x2b423e;_0x10517d[_0x1b36e7('0x993')]=![];}));});}function _0x289494(_0x4aa1b2){const _0x53ecb6=_0x3c6897;if(_0x10517d[_0x53ecb6('0x1c76')])return;const _0x6a6b9c=angular[_0x53ecb6('0x32c')](_0x4aa1b2),_0x253723=_0x4aa1b2===null;if(!_0x6a6b9c&&!_0x253723)return;_0x10517d[_0x53ecb6('0x287a')]=0x0,_0x10517d[_0x53ecb6('0x819')]=_0x4aa1b2;}function _0x25ef32(){const _0x56e7a0=_0x3c6897;_0x10517d[_0x56e7a0('0x1c76')]=![],_0x1ff41b[_0x56e7a0('0x2475')](),_0x10517d[_0x56e7a0('0x1e46')]&&angular['isFunction'](_0x10517d[_0x56e7a0('0x1e46')])&&_0x10517d[_0x56e7a0('0x1e46')]();}function _0x32ba26(){const _0x222b36=_0x3c6897;_0x10517d[_0x222b36('0x1f2a')]='',_0x10517d[_0x222b36('0x2035')](null),_0x10517d[_0x222b36('0x1c76')]=!![],_0x1ff41b[_0x222b36('0x1a09')](),_0x10517d[_0x222b36('0x11cb')]&&angular[_0x222b36('0x1378')](_0x10517d['onCollapse'])&&_0x10517d[_0x222b36('0x11cb')]();}function _0x46d449(){const _0xf94b9a=_0x3c6897;if(!_0x2af0b6)return;_0x10517d[_0xf94b9a('0x1a09')]();}function _0x1453d5(_0xd81f27){const _0x2e54e3=_0x3c6897;_0xd81f27[_0x2e54e3('0x1eab')]();}function _0x2efe6a(_0x477fb0){const _0x1648c2=_0x3c6897,_0x56da8e=_0x477fb0['keyCode'],_0xd02233=[0x1b,0x26,0x28];_0xd02233[_0x1648c2('0x203c')](_0x56da8e)>-0x1&&_0x477fb0[_0x1648c2('0x1eab')]();switch(_0x56da8e){case 0xd:if(!_0x10517d[_0x1648c2('0x819')])return;_0x10517d[_0x1648c2('0x1834')](_0x10517d['results'][_0x10517d['selectedResultIndex']]);break;case 0x1b:_0x10517d[_0x1648c2('0x1a09')]();break;case 0x26:_0x10517d[_0x1648c2('0x287a')]-0x1>=0x0&&(_0x10517d[_0x1648c2('0x287a')]--,_0x10517d[_0x1648c2('0x1559')]());break;case 0x28:if(!_0x10517d['results'])return;_0x10517d[_0x1648c2('0x287a')]+0x1<_0x10517d['results'][_0x1648c2('0x1e22')]&&(_0x10517d['selectedResultIndex']++,_0x10517d[_0x1648c2('0x1559')]());break;default:break;}}function _0x4e75cd(_0x40c870){const _0x49dd69=_0x3c6897;if(_0x10517d['ignoreMouseEvents'])return;_0x10517d[_0x49dd69('0x287a')]=_0x40c870;}function _0x42ba76(){const _0x5a73b8=_0x3c6897;_0x10517d[_0x5a73b8('0x194a')]=!![],_0x10c4df['cancel'](_0x10517d[_0x5a73b8('0x79c')]),_0x10517d[_0x5a73b8('0x79c')]=_0x10c4df(function(){const _0x3e9c73=_0x5a73b8;_0x10517d[_0x3e9c73('0x194a')]=![];},0xfa);}function _0x14256c(_0x92b2b9){const _0x33c5bf=_0x3c6897;_0x10517d[_0x33c5bf('0x11aa')]&&_0x10517d[_0x33c5bf('0x11aa')]({'item':_0x92b2b9}),_0x10517d[_0x33c5bf('0x1a09')]();}function _0x1814c1(){const _0x2c126e=_0x3c6897,_0x54c1c4=_0x402989[_0x2c126e('0x1ad4')]('.ms-search-bar-results'),_0x3ececb=angular[_0x2c126e('0x1e73')](_0x54c1c4[_0x2c126e('0x1ad4')](_0x2c126e('0xa3c'))[_0x10517d[_0x2c126e('0x287a')]]);if(_0x54c1c4&&_0x3ececb){const _0x40b608=_0x3ececb[_0x2c126e('0x197')]()['top']-0x8,_0x57af5a=_0x3ececb[_0x2c126e('0x197')]()[_0x2c126e('0xbeb')]+_0x3ececb['outerHeight']()+0x8;_0x10517d[_0x2c126e('0x75d')](),_0x54c1c4[_0x2c126e('0x1c70')]()>_0x40b608&&_0x54c1c4[_0x2c126e('0x1c70')](_0x40b608),_0x57af5a>_0x54c1c4['height']()+_0x54c1c4[_0x2c126e('0x1c70')]()&&_0x54c1c4['scrollTop'](_0x57af5a-_0x54c1c4[_0x2c126e('0xdfb')]());}}}function _0x10b7cf(_0xf1fd05){const _0x12c1d2=_0x21d0f5;return{'restrict':'E','scope':{},'require':_0x12c1d2('0xbd1'),'controller':'MsSearchBarController\x20as\x20vm','bindToController':{'query':'=?','debounce':'=?','direction':'@','iconColor':'@','onSearch':'@','onResultClick':'&?','onExpand':'&?','onCollapse':'&?','collapseOnBlur':'@'},'templateUrl':_0x47ece6,'compile':function(_0x3676de){const _0x506b84=_0x12c1d2;return _0x3676de['addClass'](_0x506b84('0x1fcf')),function _0x2397e8(_0x567de9,_0x27807a){const _0x1182ae=_0x506b84,_0x1aba62=_0xf1fd05[_0x1182ae('0x1ad4')](_0x1182ae('0x1d2'));function _0x404290(){const _0x46c297=_0x1182ae;_0x27807a[_0x46c297('0x16d8')](_0x46c297('0x2135'));if(_0x567de9['vm'][_0x46c297('0x7d5')]===_0x46c297('0x268d')){_0x27807a[_0x46c297('0x16d8')](_0x46c297('0x268d'));const _0x2a17d5=_0x27807a[_0x46c297('0x3a7')]('md-toolbar');if(_0x2a17d5)_0x2a17d5[_0x46c297('0x16d8')]('h-128');}_0x1aba62[_0x46c297('0x16d8')](_0x46c297('0xa55'));}function _0x59476c(){const _0x7a2b13=_0x1182ae;_0x27807a[_0x7a2b13('0x11d9')](_0x7a2b13('0x2135'));if(_0x567de9['vm'][_0x7a2b13('0x7d5')]===_0x7a2b13('0x268d')){_0x27807a[_0x7a2b13('0x11d9')](_0x7a2b13('0x268d'));const _0x359230=_0x27807a[_0x7a2b13('0x3a7')](_0x7a2b13('0x25b9'));if(_0x359230)_0x359230[_0x7a2b13('0x11d9')](_0x7a2b13('0x21cb'));}_0x1aba62[_0x7a2b13('0x11d9')]('ms-search-bar-expanded');}_0x567de9[_0x1182ae('0x1a09')]=_0x59476c,_0x567de9[_0x1182ae('0x2475')]=_0x404290;};}};}const _0x55d938=_0x351988['p']+_0x21d0f5('0x16d6');_0x155c10[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0x5d8'),_0x21d0f5('0x1b30'),_0x21d0f5('0x17f5'),'$q',_0x21d0f5('0x1713')];function _0x155c10(_0x29cf4b,_0xe6cecd,_0xcb840b,_0x226b34,_0x24a3d1,_0x337e94){const _0x4348cf=_0x21d0f5,_0x423056=this;_0x423056['query']='',_0x423056[_0x4348cf('0xd8e')]={'debounce':0x12c},_0x423056['resultsLoading']=![],_0x423056[_0x4348cf('0x287a')]=0x0,_0x423056['ignoreMouseEvents']=![],_0x423056[_0x4348cf('0x7b3')]=![],_0x423056[_0x4348cf('0x819')]=null,_0x423056[_0x4348cf('0xad5')]=[],_0x423056[_0x4348cf('0x26bb')]={'ghostClass':_0x4348cf('0x1df4'),'forceFallback':!![],'fallbackClass':_0x4348cf('0x2194'),'onSort':function(){_0x423056['saveShortcuts']();}};function _0x3fe2a3(){const _0x1b4c22=_0x4348cf;_0x423056[_0x1b4c22('0x2886')]()[_0x1b4c22('0x11bf')](function(_0x265479){const _0x1e1c30=_0x1b4c22;_0x423056[_0x1e1c30('0xad5')]=_0x265479,_0x423056['shortcuts'][_0x1e1c30('0x1e22')]>0x0&&(_0x423056[_0x1e1c30('0x819')]=_0x265479);}),_0x29cf4b['$watch'](_0x1b4c22('0x1ea4'),function(_0x40a28e,_0xd1b34d){const _0x3c790f=_0x1b4c22;if(angular[_0x3c790f('0x13b9')](_0x40a28e))return;if(angular[_0x3c790f('0x932')](_0x40a28e,_0xd1b34d))return;_0x423056['resultsLoading']=!![],_0x423056[_0x3c790f('0x2035')]()[_0x3c790f('0x11bf')](function(_0x3a9e11){const _0x3f34c5=_0x3c790f;_0x423056[_0x3f34c5('0x819')]=_0x3a9e11;},function(){const _0x3dfef4=_0x3c790f;_0x423056[_0x3dfef4('0x819')]=[];})[_0x3c790f('0xa9b')](function(){_0x423056['resultsLoading']=![];});});}function _0x55b2c3(){const _0x3d4ad4=_0x4348cf;let _0x2289fd=[];const _0x26fed5=_0x337e94[_0x3d4ad4('0x1578')](),_0x22ab35=_0x24a3d1['defer']();for(let _0x2fdf26=0x0;_0x2fdf26<_0x26fed5[_0x3d4ad4('0x1e22')];_0x2fdf26++){_0x26fed5[_0x2fdf26][_0x3d4ad4('0x14bf')]&&_0x2289fd[_0x3d4ad4('0x105d')](_0x26fed5[_0x2fdf26]);}if(_0x423056['query']){_0x2289fd=_0x2289fd['filter'](function(_0x38dc21){const _0x4d72ac=_0x3d4ad4;if(_0x38dc21[_0x4d72ac('0x134b')]['toLowerCase']()['includes'](_0x423056[_0x4d72ac('0x1f2a')][_0x4d72ac('0x20d5')]()))return!![];});for(let _0x23fe48=0x0;_0x23fe48<_0x2289fd['length'];_0x23fe48++){_0x2289fd[_0x23fe48]['hasShortcut']=![];for(let _0x25f7f3=0x0;_0x25f7f3<_0x423056[_0x3d4ad4('0xad5')]['length'];_0x25f7f3++){if(_0x423056[_0x3d4ad4('0xad5')][_0x25f7f3]['_id']===_0x2289fd[_0x23fe48][_0x3d4ad4('0x19e4')]){_0x2289fd[_0x23fe48]['hasShortcut']=!![];break;}}}}else _0x423056[_0x3d4ad4('0xad5')]['length']>0x0&&(_0x2289fd=_0x423056['shortcuts']);return _0x423056[_0x3d4ad4('0x287a')]=0x0,_0x226b34(function(){const _0x528304=_0x3d4ad4;_0x22ab35[_0x528304('0xa28')](_0x2289fd);},0xfa),_0x22ab35[_0x3d4ad4('0x13f')];}function _0x3b8598(){const _0x2fe55f=_0x4348cf,_0x48f8a9=_0x24a3d1[_0x2fe55f('0xa93')]();let _0x55c2a0=angular[_0x2fe55f('0xa03')](_0xe6cecd[_0x2fe55f('0xbaa')](_0x2fe55f('0x2aa')));return angular[_0x2fe55f('0x13b9')](_0x55c2a0)&&(_0x55c2a0=[{'title':'Agents','icon':_0x2fe55f('0x166'),'state':'app.staff.agents','weight':0x5,'children':[],'uisref':_0x2fe55f('0x118b'),'hasShortcut':!![]},{'title':_0x2fe55f('0x1792'),'icon':'icon-cog','state':'app.settings.license','weight':0xa,'children':[],'uisref':'app.settings.license','hasShortcut':!![]}],_0xe6cecd[_0x2fe55f('0x2318')](_0x2fe55f('0x2aa'),angular['toJson'](_0x55c2a0))),_0x48f8a9[_0x2fe55f('0xa28')](_0x55c2a0),_0x48f8a9[_0x2fe55f('0x13f')];}function _0x4208a4(){const _0x369f5b=_0x4348cf,_0x1946d2=_0x24a3d1[_0x369f5b('0xa93')]();return _0xe6cecd['put'](_0x369f5b('0x2aa'),angular[_0x369f5b('0x460')](_0x423056[_0x369f5b('0xad5')])),_0x226b34(function(){const _0x170f06=_0x369f5b;_0x1946d2[_0x170f06('0xa28')]({'success':!![]});},0xfa),_0x1946d2[_0x369f5b('0x13f')];}function _0x417a52(_0x109521){const _0x75c2c6=_0x4348cf;_0x109521[_0x75c2c6('0x952')]=!![],_0x423056['shortcuts']['push'](_0x109521),_0x423056[_0x75c2c6('0x693')]();}function _0x3c0636(_0x5c7dee){const _0x353ae8=_0x4348cf;_0x5c7dee[_0x353ae8('0x952')]=![];for(let _0x5b73c9=0x0;_0x5b73c9<_0x423056['shortcuts'][_0x353ae8('0x1e22')];_0x5b73c9++){_0x423056[_0x353ae8('0xad5')][_0x5b73c9][_0x353ae8('0x19e4')]===_0x5c7dee['_id']&&(_0x423056[_0x353ae8('0xad5')][_0x353ae8('0x1ae')](_0x5b73c9,0x1),!_0x423056[_0x353ae8('0x1f2a')]&&(_0x423056[_0x353ae8('0xad5')][_0x353ae8('0x1e22')]===0x0?_0x423056[_0x353ae8('0x819')]=null:_0x5b73c9>=_0x423056['shortcuts'][_0x353ae8('0x1e22')]&&(_0x423056[_0x353ae8('0x287a')]=_0x423056[_0x353ae8('0xad5')][_0x353ae8('0x1e22')]-0x1)));}_0x423056[_0x353ae8('0x693')]();}function _0x287522(_0x37fbec){const _0x1e881c=_0x4348cf;_0x37fbec[_0x1e881c('0x952')]?_0x423056[_0x1e881c('0x1644')](_0x37fbec):_0x423056['addShortcut'](_0x37fbec);}function _0x11f374(_0x150d21){const _0x4a22a3=_0x4348cf;_0x150d21[_0x4a22a3('0x1eab')]();}function _0x107298(_0x143a02){const _0xc51e49=_0x4348cf,_0x4a2be6=_0x143a02[_0xc51e49('0x172e')],_0xceac99=[0x26,0x28];_0xceac99[_0xc51e49('0x203c')](_0x4a2be6)>-0x1&&_0x143a02['preventDefault']();switch(_0x4a2be6){case 0xd:_0x423056[_0xc51e49('0x1834')](_0x423056['results'][_0x423056[_0xc51e49('0x287a')]]);break;case 0x26:_0x423056[_0xc51e49('0x287a')]-0x1>=0x0&&(_0x423056[_0xc51e49('0x287a')]--,_0x423056[_0xc51e49('0x1559')]());break;case 0x28:_0x423056['selectedResultIndex']+0x1<_0x423056['results']['length']&&(_0x423056[_0xc51e49('0x287a')]++,_0x423056[_0xc51e49('0x1559')]());break;default:break;}}function _0x1c5178(_0x5846aa){const _0x380993=_0x4348cf;if(_0x423056[_0x380993('0x194a')])return;_0x423056['selectedResultIndex']=_0x5846aa;}function _0x2d7b48(){const _0xc0050c=_0x4348cf;_0x423056[_0xc0050c('0x194a')]=!![],_0x226b34[_0xc0050c('0x26c9')](_0x423056['mouseEventIgnoreTimeout']),_0x423056[_0xc0050c('0x79c')]=_0x226b34(function(){const _0x565536=_0xc0050c;_0x423056[_0x565536('0x194a')]=![];},0xfa);}function _0x4e7d1f(){const _0x1084c1=_0x4348cf,_0x23a265=_0xcb840b[_0x1084c1('0x1ad4')](_0x1084c1('0x26e6'))[_0x1084c1('0x1ad4')]('.results'),_0x20f924=angular[_0x1084c1('0x1e73')](_0x23a265[_0x1084c1('0x1ad4')]('.result')[_0x423056[_0x1084c1('0x287a')]]);if(_0x23a265&&_0x20f924){const _0x36be1d=_0x20f924[_0x1084c1('0x197')]()[_0x1084c1('0xbeb')]-0x8,_0x191ba7=_0x20f924[_0x1084c1('0x197')]()['top']+_0x20f924[_0x1084c1('0x1f6f')]()+0x8;_0x423056[_0x1084c1('0x75d')](),_0x23a265[_0x1084c1('0x1c70')]()>_0x36be1d&&_0x23a265[_0x1084c1('0x1c70')](_0x36be1d),_0x191ba7>_0x23a265['height']()+_0x23a265[_0x1084c1('0x1c70')]()&&_0x23a265[_0x1084c1('0x1c70')](_0x191ba7-_0x23a265[_0x1084c1('0xdfb')]());}}function _0x2e2a20(){const _0x439fc0=_0x4348cf;_0x423056['mobileBarActive']=!_0x423056[_0x439fc0('0x7b3')];}_0x423056[_0x4348cf('0x2035')]=_0x55b2c3,_0x423056[_0x4348cf('0x2886')]=_0x3b8598,_0x423056[_0x4348cf('0x693')]=_0x4208a4,_0x423056['addShortcut']=_0x417a52,_0x423056[_0x4348cf('0x1644')]=_0x3c0636,_0x423056[_0x4348cf('0x1834')]=_0x287522,_0x423056[_0x4348cf('0x944')]=_0x11f374,_0x423056[_0x4348cf('0x11d7')]=_0x107298,_0x423056[_0x4348cf('0x253')]=_0x1c5178,_0x423056[_0x4348cf('0x75d')]=_0x2d7b48,_0x423056[_0x4348cf('0x1559')]=_0x4e7d1f,_0x423056[_0x4348cf('0x82e')]=_0x2e2a20,_0x3fe2a3();}function _0xcb7431(){const _0x22a355=_0x21d0f5;return{'restrict':'E','scope':{},'require':_0x22a355('0x1389'),'controller':_0x22a355('0x2315'),'bindToController':{},'templateUrl':_0x55d938,'compile':function(_0x1d77e6){const _0x1b13b8=_0x22a355;return _0x1d77e6[_0x1b13b8('0x16d8')](_0x1b13b8('0x1b71')),function _0x1fda99(){};}};}function _0x2188c4(){const _0x12b350=_0x21d0f5;return{'restrict':'A','require':_0x12b350('0x22f9'),'link':function(_0xa47ef9,_0x462068,_0xf98076,_0x3fce1c){const _0x483bb5=_0x12b350;_0xa47ef9[_0x483bb5('0x2087')](function(){const _0x373669=_0x483bb5;return _0x3fce1c[_0x373669('0x1041')]()&&!_0x3fce1c[_0x373669('0x628')]();},function(_0x3a6576){const _0x51aade=_0x483bb5;if(angular[_0x51aade('0x13b9')](_0x3a6576))return;_0x462068[_0x51aade('0x1592')]()[_0x51aade('0x1436')](_0x51aade('0x2369'),_0x3a6576),angular[_0x51aade('0x1e73')](_0x51aade('0x254b'))[_0x51aade('0x1436')]('sidenav-open',_0x3a6576);});}};}const _0x485a31=_0x2188c4;_0x2ee0ae[_0x21d0f5('0x1e9a')]=['$animate'];function _0x2ee0ae(_0x29ff22){return{'restrict':'E','link':function(_0x6971e2,_0x4b2a9f){const _0x2b046a=a0_0xaf0c,_0x246623=_0x6971e2[_0x2b046a('0x12d8')](_0x2b046a('0x14d6'),function(){const _0xfb3228=_0x2b046a;_0x29ff22[_0xfb3228('0x12aa')](_0x4b2a9f)['then'](function(){_0x246623(),_0x6971e2=null,_0x4b2a9f=null;});});}};}const _0x37838a=_0x2ee0ae,_0x55cf8e=_0x351988['p']+_0x21d0f5('0x233'),_0x299ad7=_0x351988['p']+'src/js/modules/core/directives/ms-stepper/templates/vertical/vertical.html/vertical.html',_0x116062=_0x351988['p']+_0x21d0f5('0x1c05');_0x46643b['$inject']=[_0x21d0f5('0x17f5')],_0x514083[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x17f5')];function _0x514083(_0x3546f8){const _0x18e04f=_0x21d0f5,_0x3485e2=this;_0x3485e2[_0x18e04f('0x1b3b')]=undefined,_0x3485e2[_0x18e04f('0x25be')]=_0x18e04f('0xd0b'),_0x3485e2[_0x18e04f('0x116b')]=[],_0x3485e2[_0x18e04f('0x1cfe')]=undefined,_0x3485e2[_0x18e04f('0x26')]=0x1;function _0x1adddc(_0x2ba3df){const _0x63bde6=_0x18e04f;return!(angular[_0x63bde6('0x13b9')](_0x2ba3df)||_0x2ba3df<0x1||_0x2ba3df>_0x3485e2[_0x63bde6('0x116b')][_0x63bde6('0x1e22')]);}function _0x15d7d9(_0x4a4cc1){const _0x30c5e8=_0x18e04f;_0x3485e2[_0x30c5e8('0x25be')]=_0x4a4cc1||_0x30c5e8('0xd0b');}function _0x4ce6cd(_0x3c0139){const _0x3c227e=_0x18e04f;_0x3485e2[_0x3c227e('0x1b3b')]=_0x3c0139;}function _0x371033(){const _0x2d0210=_0x18e04f;_0x3485e2[_0x2d0210('0x1a8e')](0x1);}function _0x5b041c(_0x208d7e){const _0x24ed38=_0x18e04f;if(!_0x1adddc(_0x208d7e))return null;return!!_0x3485e2['steps'][_0x208d7e-0x1]['scope'][_0x24ed38('0x1bf8')];}function _0x1691c0(_0x40a64d,_0x1b216b,_0x1f3be7){const _0x2e09ba=_0x18e04f,_0x3fe92d={'element':_0x40a64d,'scope':_0x1b216b,'form':_0x1f3be7,'stepNumber':_0x1b216b[_0x2e09ba('0x216')]||_0x3485e2[_0x2e09ba('0x116b')][_0x2e09ba('0x1e22')]+0x1,'stepTitle':_0x1b216b[_0x2e09ba('0x190d')],'stepTitleTranslate':_0x1b216b['stepTitleTranslate']};return _0x3485e2[_0x2e09ba('0x116b')][_0x2e09ba('0x105d')](_0x3fe92d),_0x3485e2[_0x2e09ba('0x116b')][_0x2e09ba('0x1c16')](function(_0x4b770d,_0xaa4ce){return _0x4b770d['stepNumber']-_0xaa4ce['stepNumber'];}),_0x3fe92d;}function _0x2d5345(){_0x3485e2['setCurrentStep'](_0x3485e2['currentStepNumber']);}function _0xd6f471(){_0x3546f8(function(){const _0x5834b5=a0_0xaf0c;for(let _0x177d2b=0x0;_0x177d2b<_0x3485e2['steps'][_0x5834b5('0x1e22')];_0x177d2b++){_0x3485e2[_0x5834b5('0x116b')][_0x177d2b][_0x5834b5('0xcc7')][_0x5834b5('0x2345')](),_0x3485e2[_0x5834b5('0x116b')][_0x177d2b]['form'][_0x5834b5('0x1066')]();}_0x3485e2[_0x5834b5('0x1b3b')][_0x5834b5('0x2345')](),_0x3485e2['mainForm']['$setUntouched'](),_0x371033();});}function _0x1161b3(_0xbde470){const _0xdef872=_0x18e04f;if(!_0x1adddc(_0xbde470))return;_0x3485e2['currentStepNumber']=_0xbde470;if(_0x3485e2[_0xdef872('0x25be')]===_0xdef872('0xd0b')){for(let _0xc8c9a4=0x0;_0xc8c9a4<_0x3485e2['steps'][_0xdef872('0x1e22')];_0xc8c9a4++){_0x3485e2[_0xdef872('0x116b')][_0xc8c9a4]['element'][_0xdef872('0x237e')]();}_0x3485e2['steps'][_0x3485e2[_0xdef872('0x26')]-0x1][_0xdef872('0x1e73')][_0xdef872('0xb9')]();}else{if(_0x3485e2['orientation']==='vertical'){for(let _0x3fcc81=0x0;_0x3fcc81<_0x3485e2['steps']['length'];_0x3fcc81++){_0x3485e2[_0xdef872('0x116b')][_0x3fcc81][_0xdef872('0x1e73')][_0xdef872('0x1ad4')](_0xdef872('0x2626'))[_0xdef872('0x237e')]();}_0x3485e2[_0xdef872('0x116b')][_0x3485e2[_0xdef872('0x26')]-0x1][_0xdef872('0x1e73')][_0xdef872('0x1ad4')](_0xdef872('0x2626'))[_0xdef872('0xb9')]();}}}function _0x26fef9(_0x1840af){const _0x2a44f7=_0x18e04f;if(_0x5b041c(_0x1840af))return;_0x3485e2[_0x2a44f7('0x1a8e')](_0x1840af);}function _0x5a9bfb(){const _0x148ea7=_0x18e04f;let _0xa61296=_0x3485e2[_0x148ea7('0x26')]-0x1;for(let _0x680344=_0xa61296;_0x680344>=0x1;_0x680344--){if(!_0x5b041c(_0x680344)){_0xa61296=_0x680344;break;}}_0x3485e2[_0x148ea7('0x1a8e')](_0xa61296);}function _0x8875ff(){const _0x4908c4=_0x18e04f;let _0x1399c1=_0x3485e2[_0x4908c4('0x26')]+0x1;for(let _0x5456a5=_0x1399c1;_0x5456a5<=_0x3485e2[_0x4908c4('0x116b')][_0x4908c4('0x1e22')];_0x5456a5++){if(!_0x5b041c(_0x5456a5)){_0x1399c1=_0x5456a5;break;}}_0x3485e2[_0x4908c4('0x1a8e')](_0x1399c1);}function _0x472a5a(){const _0x169c5e=_0x18e04f;_0x3485e2[_0x169c5e('0x1a8e')](_0x3485e2[_0x169c5e('0x116b')][_0x169c5e('0x1e22')]);}function _0x249063(){const _0x2ef2f3=_0x18e04f;return _0x3485e2[_0x2ef2f3('0x26')]===0x1;}function _0x773df7(){const _0x413d41=_0x18e04f;return _0x3485e2['currentStepNumber']===_0x3485e2[_0x413d41('0x116b')][_0x413d41('0x1e22')];}function _0x17a624(_0x36b20c){if(!_0x1adddc(_0x36b20c))return null;return _0x3485e2['currentStepNumber']===_0x36b20c;}function _0x171a2f(_0xdeefa){const _0xf35671=_0x18e04f;if(!_0x1adddc(_0xdeefa))return null;return _0x3485e2[_0xf35671('0x116b')][_0xdeefa-0x1]['scope'][_0xf35671('0x3ca')];}function _0x17f331(_0x16ace5){const _0x9d03ff=_0x18e04f;if(!_0x1adddc(_0x16ace5))return null;if(_0x171a2f(_0x16ace5))return!![];return _0x3485e2[_0x9d03ff('0x116b')][_0x16ace5-0x1][_0x9d03ff('0xcc7')]['$valid'];}function _0x2bb214(_0x27104b){if(!_0x1adddc(_0x27104b))return null;let _0xdd3393=![];for(let _0x3723c8=0x1;_0x3723c8<_0x27104b;_0x3723c8++){if(!_0x17f331(_0x3723c8)){_0xdd3393=!![];break;}}return _0xdd3393;}function _0x1b70b1(_0x5e7069){const _0xb4aef3=_0x18e04f;return!_0x5b041c(_0x5e7069[_0xb4aef3('0x2574')]);}function _0x112203(){const _0x594f32=_0x18e04f;return _0x3485e2['mainForm'][_0x594f32('0x416')];}_0x3485e2['setOrientation']=_0x15d7d9,_0x3485e2[_0x18e04f('0x1799')]=_0x4ce6cd,_0x3485e2['registerStep']=_0x1691c0,_0x3485e2['setupSteps']=_0x2d5345,_0x3485e2[_0x18e04f('0x1ffc')]=_0xd6f471,_0x3485e2[_0x18e04f('0x1a8e')]=_0x1161b3,_0x3485e2[_0x18e04f('0x1b4d')]=_0x26fef9,_0x3485e2[_0x18e04f('0x10dd')]=_0x5a9bfb,_0x3485e2[_0x18e04f('0x694')]=_0x8875ff,_0x3485e2[_0x18e04f('0x1807')]=_0x371033,_0x3485e2[_0x18e04f('0x1da4')]=_0x472a5a,_0x3485e2[_0x18e04f('0x1af6')]=_0x249063,_0x3485e2[_0x18e04f('0x1502')]=_0x773df7,_0x3485e2[_0x18e04f('0x930')]=_0x17a624,_0x3485e2[_0x18e04f('0xb62')]=_0x2bb214,_0x3485e2[_0x18e04f('0x1ee8')]=_0x171a2f,_0x3485e2[_0x18e04f('0x585')]=_0x5b041c,_0x3485e2['filterHiddenStep']=_0x1b70b1,_0x3485e2[_0x18e04f('0x353')]=_0x17f331,_0x3485e2[_0x18e04f('0x492')]=_0x1adddc,_0x3485e2[_0x18e04f('0x2183')]=_0x112203;}function _0x2322ac(){const _0x1a7c74=_0x21d0f5;return{'restrict':'A','scope':{},'require':[_0x1a7c74('0xcc7'),'msHorizontalStepper'],'priority':0x3e9,'controller':_0x1a7c74('0x1442'),'bindToController':{'model':'=ngModel'},'transclude':!![],'templateUrl':_0x55cf8e,'compile':function(_0x3400a8){const _0x142502=_0x1a7c74;return _0x3400a8[_0x142502('0x16d8')](_0x142502('0x1e72')),function _0x21feea(_0x20922c,_0x27a55d,_0xed9141,_0x25e5d6){const _0x1e7d04=_0x142502,_0x2b0311=_0x25e5d6[0x0],_0x890de4=_0x25e5d6[0x1];_0x890de4[_0x1e7d04('0x7c5')](_0x1e7d04('0xd0b')),_0x890de4[_0x1e7d04('0x1799')](_0x2b0311),_0x890de4[_0x1e7d04('0xf05')]();};}};}function _0x344279(){const _0x357852=_0x21d0f5;return{'restrict':'E','require':[_0x357852('0xcc7'),_0x357852('0x1793')],'priority':0x3e8,'scope':{'step':'=?','stepTitle':'=?','stepTitleTranslate':'=?','optionalStep':'=?','hideStep':'=?'},'compile':function(_0x3fb181){const _0x383ef5=_0x357852;return _0x3fb181[_0x383ef5('0x16d8')](_0x383ef5('0x2dc')),function _0x2b336b(_0x361f01,_0x4a685a,_0x271288,_0x4c3dfe){const _0x4ba35b=_0x383ef5,_0xedbe5c=_0x4c3dfe[0x0],_0x13eda2=_0x4c3dfe[0x1];_0x361f01[_0x4ba35b('0x3ca')]=angular[_0x4ba35b('0x17c8')](_0x271288[_0x4ba35b('0x3ca')]),_0x13eda2[_0x4ba35b('0x667')](_0x4a685a,_0x361f01,_0xedbe5c),_0x4a685a[_0x4ba35b('0x237e')]();};}};}function _0x46643b(_0x49aa7e){const _0x488f36=_0x21d0f5;return{'restrict':'A','scope':{},'require':[_0x488f36('0xcc7'),_0x488f36('0x2289')],'priority':0x3e9,'controller':'MsStepperController\x20as\x20MsStepper','bindToController':{'model':'=ngModel'},'transclude':!![],'templateUrl':_0x299ad7,'compile':function(_0xbf7d3f){const _0x145df3=_0x488f36;return _0xbf7d3f[_0x145df3('0x16d8')]('ms-stepper'),function _0x5963f2(_0x566a7a,_0x537666,_0x320605,_0x81fac8){const _0x35bb90=_0x81fac8[0x0],_0x5aeacf=_0x81fac8[0x1];_0x49aa7e(function(){_0x5aeacf['setOrientation']('vertical'),_0x5aeacf['registerMainForm'](_0x35bb90),_0x5aeacf['setupSteps']();});};}};}function _0x15b5ca(){const _0x4fb078=_0x21d0f5;return{'restrict':'E','require':[_0x4fb078('0xcc7'),_0x4fb078('0x196e')],'priority':0x3e8,'scope':{'step':'=?','stepTitle':'=?','stepTitleTranslate':'=?','optionalStep':'=?','hideStep':'=?'},'transclude':!![],'templateUrl':-_0x116062,'compile':function(_0x1db287){const _0x4ff9c9=_0x4fb078;return _0x1db287[_0x4ff9c9('0x16d8')](_0x4ff9c9('0x2dc')),function _0x1d9783(_0x120160,_0x83be45,_0x88497a,_0x4541b5){const _0x19da43=_0x4ff9c9,_0x35f3d2=_0x4541b5[0x0],_0x3ec7e4=_0x4541b5[0x1];_0x120160['optionalStep']=angular[_0x19da43('0x17c8')](_0x88497a[_0x19da43('0x3ca')]),_0x120160[_0x19da43('0x20af')]=_0x3ec7e4[_0x19da43('0x667')](_0x83be45,_0x120160,_0x35f3d2),_0x120160[_0x19da43('0xa1b')]=_0x3ec7e4,_0x83be45[_0x19da43('0x1ad4')]('.ms-stepper-step-content')[_0x19da43('0x237e')]();};}};}const _0x42c364=_0x351988['p']+_0x21d0f5('0x16ac');;function _0x4e51a2(){const _0x557787=_0x21d0f5,_0x1e8f63=this;_0x1e8f63[_0x557787('0x1903')]=_0x40721c,_0x1e8f63[_0x557787('0x595')]=_0x480a4f;function _0x40721c(_0x1bea43){const _0x319bb6=_0x557787;_0x1bea43=='left'?$(_0x319bb6('0x1d1b'))[_0x319bb6('0x17ce')]()[_0x319bb6('0x88d')]({'scrollLeft':_0x319bb6('0x1f36')},0x3e8):$('#tab-container')['stop']()['animate']({'scrollLeft':'+=400'},0x3e8);}function _0x480a4f(_0x204d6d){const _0x105be9=_0x557787;switch(_0x129c01()){case _0x105be9('0x2079'):return!![];case _0x105be9('0x1d7e'):return _0x204d6d==_0x105be9('0x1d7e')?!![]:![];case _0x105be9('0xdd5'):return _0x204d6d==_0x105be9('0xdd5')?!![]:![];case _0x105be9('0x3e6'):return![];default:return![];}}function _0x129c01(){const _0x5ee6dd=_0x557787,_0x24c7cd=document['getElementById'](_0x5ee6dd('0xca3')),_0x414cc4=document[_0x5ee6dd('0x1451')](_0x5ee6dd('0x272e'));if(_0x414cc4['scrollWidth']>_0x24c7cd[_0x5ee6dd('0x2e4')]&&_0x24c7cd['scrollLeft']==0x0&&_0x414cc4[_0x5ee6dd('0x8ea')]==0x0)return'right';else{if(_0x414cc4[_0x5ee6dd('0x2e4')]>_0x24c7cd['scrollWidth']&&_0x414cc4[_0x5ee6dd('0x8ea')]>_0x24c7cd[_0x5ee6dd('0x8ea')]&&_0x24c7cd[_0x5ee6dd('0x2e4')]+_0x414cc4['scrollLeft']>=_0x414cc4[_0x5ee6dd('0x2e4')])return _0x5ee6dd('0x1d7e');else return _0x414cc4[_0x5ee6dd('0x2e4')]>_0x24c7cd[_0x5ee6dd('0x2e4')]&&_0x414cc4[_0x5ee6dd('0x8ea')]>_0x24c7cd['scrollLeft']&&_0x24c7cd['scrollWidth']+_0x414cc4[_0x5ee6dd('0x8ea')]<_0x414cc4[_0x5ee6dd('0x2e4')]?_0x5ee6dd('0x2079'):_0x5ee6dd('0x3e6');}}}function _0x4877d0(){const _0x5bc9ad=_0x21d0f5;return{'restrict':'E','scope':{},'transclude':!![],'controller':_0x5bc9ad('0x64a'),'controllerAs':'vm','bindToController':!![],'templateUrl':_0x42c364,'compile':function(_0x38987b){const _0x477eb3=_0x5bc9ad;return _0x38987b[_0x477eb3('0x16d8')](_0x477eb3('0x1253')),function _0x4d72c7(){};}};}_0x4f8e12[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x17f5'),'$q'];function _0x428fd6(){const _0x1b7c22=_0x21d0f5,_0x2adcd4=this;_0x2adcd4['scrollEl']=undefined,_0x2adcd4['setScrollEl']=_0x323f0e,_0x2adcd4[_0x1b7c22('0x69')]=_0x2ce4b1;function _0x323f0e(_0x1b2551){const _0x3ac8e1=_0x1b7c22;_0x2adcd4[_0x3ac8e1('0x257b')]=_0x1b2551;}function _0x2ce4b1(){const _0x44940f=_0x1b7c22;return _0x2adcd4[_0x44940f('0x257b')];}}function _0x27dee6(){const _0x193334=_0x21d0f5;return{'scope':{'msTimeline':'=?','loadMore':_0x193334('0x2580')},'controller':_0x193334('0x1725'),'compile':function(_0x41e76a){const _0x4e8dc1=_0x193334;return _0x41e76a['addClass'](_0x4e8dc1('0x26a3')),function _0x525262(_0x2f904b,_0x3e9a20,_0x3be765,_0x197772){const _0x7358d1=_0x4e8dc1,_0x6bb638=angular[_0x7358d1('0x1e73')]('');_0x3e9a20['append'](_0x6bb638);let _0x52e8bd={'scrollEl':'#content'};_0x52e8bd=angular[_0x7358d1('0x218f')](_0x52e8bd,_0x2f904b[_0x7358d1('0x1d75')],{});const _0x43e2e9=angular['element'](_0x52e8bd[_0x7358d1('0x257b')]);_0x197772[_0x7358d1('0x2800')](_0x43e2e9);const _0x38d18c=0x90;_0x194de3();function _0x45739b(){const _0x8779b3=_0x7358d1;_0x43e2e9[_0x8779b3('0x1c70')]()+_0x43e2e9[_0x8779b3('0xdfb')]()+_0x38d18c>_0x6bb638[_0x8779b3('0x197')]()['top']&&(_0x6bb638[_0x8779b3('0x16d8')](_0x8779b3('0xb9')),_0x386457(),_0x2f904b[_0x8779b3('0x20ad')]()[_0x8779b3('0x11bf')](function(){const _0x27c7e1=_0x8779b3;_0x6bb638[_0x27c7e1('0x11d9')](_0x27c7e1('0xb9')),_0x194de3();},function(){const _0x415084=_0x8779b3;_0x6bb638[_0x415084('0x14a5')]();}));}function _0x194de3(){_0x43e2e9['on']('scroll',_0x45739b);}function _0x386457(){const _0x542713=_0x7358d1;_0x43e2e9[_0x542713('0x7ca')](_0x542713('0x1ce6'),_0x45739b);}_0x2f904b[_0x7358d1('0x12d8')](_0x7358d1('0x4f7'),function(){_0x386457();});};}};}function _0x4f8e12(_0x108e67,_0x2ee2b4){const _0x4aa171=_0x21d0f5;return{'scope':!![],'require':_0x4aa171('0x22ad'),'compile':function(_0xb815ef){const _0x2f5a04=_0x4aa171;return _0xb815ef[_0x2f5a04('0x16d8')]('ms-timeline-item')[_0x2f5a04('0x16d8')](_0x2f5a04('0x2ed')),function _0x107c00(_0x2ee30b,_0xfbe43e,_0x2a4261,_0x1c32c){const _0x28e67c=_0x2f5a04,_0xc7d95c=0x48;let _0x243e2d=![],_0x480088=![];const _0x75bfca=_0x1c32c[_0x28e67c('0x69')]();_0x5da7b3();function _0x5da7b3(){const _0x338949=_0x28e67c;_0xfbe43e[_0x338949('0x1ad4')](_0x338949('0x153e'))?_0x2ee30b['$on'](_0x338949('0x96a'),function(_0x425471,_0x5f039e){const _0x98166e=_0x338949,_0x40f133=angular[_0x98166e('0x1e73')](_0x5f039e[0x0]);_0x1be339(_0x40f133)[_0x98166e('0x11bf')](function(){_0x108e67(function(){_0x243e2d=!![];});});}):_0x1be339(_0xfbe43e)[_0x338949('0x11bf')](function(){_0x108e67(function(){_0x243e2d=!![];});}),_0x75bfca['on'](_0x338949('0x1ce6'),_0x24b329),_0x24b329();}const _0x3e18e8=_0x2ee30b['$watch'](function(){return _0x243e2d&&_0x480088;},function(_0x27442a,_0x1bb6c1){const _0x423c7e=_0x28e67c;if(angular[_0x423c7e('0x932')](_0x27442a,_0x1bb6c1))return;_0x27442a&&(_0xfbe43e[_0x423c7e('0x11d9')](_0x423c7e('0x2ed'))[_0x423c7e('0x16d8')](_0x423c7e('0x88d')),_0x3e18e8());},!![]);function _0x1be339(_0x3c0157){const _0x14f1fe=_0x28e67c,_0x4155b0=_0x2ee2b4[_0x14f1fe('0xa93')](),_0x5501b5=_0x3c0157[_0x14f1fe('0x1ad4')]('img');return _0x5501b5[_0x14f1fe('0x1e22')]>0x0?_0x5501b5['on'](_0x14f1fe('0x215b'),function(){const _0x1f10e2=_0x14f1fe;_0x4155b0[_0x1f10e2('0xa28')]('Image\x20is\x20loaded');}):_0x4155b0[_0x14f1fe('0xa28')](_0x14f1fe('0x255f')),_0x4155b0[_0x14f1fe('0x13f')];}function _0x24b329(){const _0x24790a=_0x28e67c;_0x75bfca[_0x24790a('0x1c70')]()+_0x75bfca[_0x24790a('0xdfb')]()>_0xfbe43e[_0x24790a('0x197')]()['top']+_0xc7d95c&&(_0x108e67(function(){_0x480088=!![];}),_0x75bfca[_0x24790a('0x7ca')](_0x24790a('0x1ce6'),_0x24b329));}};}};}_0x57e9b5[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),'$attrs','$element',_0x21d0f5('0x109f'),'$q',_0x21d0f5('0x12a5'),'toasty'];function _0x57e9b5(_0x13ce20,_0x4eb705,_0x10179b,_0x2b479c,_0x371a52,_0x443cfb,_0x1be1a9){const _0x5d79b1=_0x21d0f5;typeof String[_0x5d79b1('0xd5')]['trim']!==_0x5d79b1('0x171e')&&(String[_0x5d79b1('0xd5')]['trim']=function(){return this['replace'](/^\s+|\s+$/g,'');});_0x13ce20[_0x5d79b1('0x1bbb')]=_0x4eb705[_0x5d79b1('0x1bbb')]||_0x4eb705[_0x5d79b1('0xf61')];_0x10179b['html']()['trim']()[_0x5d79b1('0x1e22')]===0x0?_0x10179b[_0x5d79b1('0x155a')](_0x2b479c(_0x5d79b1('0x2456'))(_0x13ce20)):_0x10179b[_0x5d79b1('0x155a')](_0x2b479c(_0x10179b[_0x5d79b1('0x264a')]())(_0x13ce20));_0x13ce20[_0x5d79b1('0x507')]=_0x13ce20[_0x5d79b1('0x20a3')]||0x3e8,_0x13ce20[_0x5d79b1('0xe8d')]=null,_0x13ce20[_0x5d79b1('0xb99')]=null,_0x13ce20[_0x5d79b1('0x11f5')]=null,_0x13ce20[_0x5d79b1('0x278f')]=_0x13ce20[_0x5d79b1('0x14cf')]&&parseInt(_0x13ce20[_0x5d79b1('0x14cf')],0xa)>=0x0?parseInt(_0x13ce20[_0x5d79b1('0x14cf')],0xa):undefined,_0x13ce20[_0x5d79b1('0x7f8')]=![],_0x13ce20[_0x5d79b1('0x2087')](_0x5d79b1('0xac3'),function(_0x42eba0,_0x1000be){const _0x3e904f=_0x5d79b1;_0x42eba0!==_0x1000be&&_0x13ce20[_0x3e904f('0x7f8')]&&_0x13ce20[_0x3e904f('0x127')]();}),_0x13ce20[_0x5d79b1('0x12d8')](_0x5d79b1('0x19fa'),function(){const _0x354b93=_0x5d79b1;_0x13ce20[_0x354b93('0x127')]();}),_0x13ce20[_0x5d79b1('0x12d8')]('timer-resume',function(){const _0x35d77b=_0x5d79b1;_0x13ce20[_0x35d77b('0x76c')]();}),_0x13ce20[_0x5d79b1('0x12d8')]('timer-stop',function(){const _0x3658c1=_0x5d79b1;_0x13ce20[_0x3658c1('0x17ce')]();}),_0x13ce20['$on'](_0x5d79b1('0x436'),function(){const _0x37d637=_0x5d79b1;_0x13ce20[_0x37d637('0xb34')]();}),_0x13ce20[_0x5d79b1('0x12d8')](_0x5d79b1('0x1751'),function(_0x57e625,_0x4709de){_0x13ce20['countdown']=_0x4709de;});function _0x4c1e21(){const _0x5ea51a=_0x5d79b1;_0x13ce20[_0x5ea51a('0x11f5')]&&clearTimeout(_0x13ce20[_0x5ea51a('0x11f5')]);}_0x13ce20[_0x5d79b1('0x127')]=function(){const _0x5e9feb=_0x5d79b1;_0xe91bfc()[_0x5e9feb('0x11bf')](function(_0xc95522){const _0x5a5e08=_0x5e9feb,_0x360e5a=_0x13ce20[_0x5a5e08('0xac3')]?_0x57d4d1()(_0x13ce20['startTimeAttr']):null;!_0x360e5a||_0x360e5a>_0xc95522?_0x13ce20['startTime']=_0xc95522:_0x13ce20[_0x5a5e08('0xe8d')]=_0x360e5a;const _0x268b44=_0x13ce20['endTimeAttr']?_0x57d4d1()(_0x13ce20[_0x5a5e08('0xafe')]):null;!_0x268b44||_0x268b44<_0xc95522?_0x13ce20[_0x5a5e08('0xb99')]=null:_0x13ce20['endTime']=_0x268b44,!_0x13ce20[_0x5a5e08('0x278f')]&&(_0x13ce20[_0x5a5e08('0x278f')]=_0x13ce20[_0x5a5e08('0x14cf')]&&parseInt(_0x13ce20[_0x5a5e08('0x14cf')],0xa)>0x0?parseInt(_0x13ce20[_0x5a5e08('0x1e27')],0xa):undefined),_0x4c1e21(),_0x3e836c(),_0x13ce20[_0x5a5e08('0x7f8')]=!![];})[_0x5e9feb('0x151d')](function(_0x2beb49){const _0x2289cf=_0x5e9feb;_0x1be1a9[_0x2289cf('0x255')]({'title':_0x2beb49[_0x2289cf('0xff9')]?_0x2289cf('0x574')+_0x2beb49[_0x2289cf('0xff9')]+_0x2289cf('0xb0b')+_0x2beb49[_0x2289cf('0x212f')]:_0x2289cf('0x24d1'),'msg':_0x2beb49[_0x2289cf('0x4e8')]?JSON['stringify'](_0x2beb49['data'][_0x2289cf('0x1b86')]):_0x2beb49[_0x2289cf('0xaab')]()});});},_0x10179b[0x0][_0x5d79b1('0x127')]=_0x13ce20[_0x5d79b1('0x127')],_0x13ce20[_0x5d79b1('0x76c')]=function(){const _0x27587d=_0x5d79b1;_0x4c1e21(),_0x13ce20[_0x27587d('0x14cf')]&&(_0x13ce20['countdown']+=0x1),_0x13ce20[_0x27587d('0xe8d')]=_0x4f64b8()[_0x27587d('0xe2b')](_0x57d4d1()(_0x13ce20['stoppedTime'])['diff'](_0x57d4d1()(_0x13ce20[_0x27587d('0xe8d')]))),_0x3e836c(),_0x13ce20[_0x27587d('0x7f8')]=!![];},_0x10179b[0x0][_0x5d79b1('0x76c')]=_0x13ce20['resume'],_0x13ce20['stop']=function(){const _0x224f13=_0x5d79b1;_0x13ce20[_0x224f13('0xb34')](),_0x13ce20[_0x224f13('0x27f3')](_0x224f13('0x821'),{'timeoutId':_0x13ce20[_0x224f13('0x11f5')],'millis':_0x13ce20[_0x224f13('0x2494')],'seconds':_0x13ce20[_0x224f13('0x278')],'minutes':_0x13ce20[_0x224f13('0xd66')],'hours':_0x13ce20['hours'],'days':_0x13ce20[_0x224f13('0xd4d')]});},_0x13ce20[_0x5d79b1('0x92a')]=_0x13ce20[_0x5d79b1('0x17ce')],_0x10179b[0x0][_0x5d79b1('0x17ce')]=_0x13ce20[_0x5d79b1('0x17ce')],_0x10179b[0x0][_0x5d79b1('0x92a')]=_0x13ce20['stop'],_0x13ce20[_0x5d79b1('0xb34')]=function(){const _0x2395ef=_0x5d79b1;_0x13ce20[_0x2395ef('0x20ab')]=_0x4f64b8(),_0x4c1e21(),_0x13ce20[_0x2395ef('0x11f5')]=null,_0x13ce20[_0x2395ef('0x7f8')]=![];},_0x10179b[0x0][_0x5d79b1('0xb34')]=_0x13ce20[_0x5d79b1('0xb34')],_0x10179b[_0x5d79b1('0x656')](_0x5d79b1('0x4f7'),function(){_0x4c1e21(),_0x13ce20['isRunning']=![];});function _0x5e41f9(){const _0x352046=_0x5d79b1;_0x4eb705['startTime']!==undefined&&(_0x13ce20[_0x352046('0x2494')]=_0x4f64b8()[_0x352046('0xe2b')](_0x57d4d1()(_0x13ce20[_0x352046('0xe8d')])));if(!_0x13ce20[_0x352046('0x1320')]||_0x13ce20[_0x352046('0x1320')]==='day')_0x13ce20[_0x352046('0x278')]=Math['floor'](_0x13ce20['millis']/0x3e8%0x3c),_0x13ce20[_0x352046('0xd66')]=Math['floor'](_0x13ce20[_0x352046('0x2494')]/0xea60%0x3c),_0x13ce20['hours']=Math[_0x352046('0x1008')](_0x13ce20[_0x352046('0x2494')]/0x36ee80%0x18),_0x13ce20[_0x352046('0xd4d')]=Math['floor'](_0x13ce20[_0x352046('0x2494')]/0x36ee80/0x18),_0x13ce20[_0x352046('0x12c5')]=0x0,_0x13ce20['years']=0x0;else{if(_0x13ce20[_0x352046('0x1320')]===_0x352046('0x19b9'))_0x13ce20[_0x352046('0x278')]=Math[_0x352046('0x1008')](_0x13ce20[_0x352046('0x2494')]/0x3e8),_0x13ce20['minutes']=0x0,_0x13ce20[_0x352046('0xf51')]=0x0,_0x13ce20[_0x352046('0xd4d')]=0x0,_0x13ce20[_0x352046('0x12c5')]=0x0,_0x13ce20[_0x352046('0x1a0d')]=0x0;else{if(_0x13ce20['maxTimeUnit']==='minute')_0x13ce20[_0x352046('0x278')]=Math[_0x352046('0x1008')](_0x13ce20['millis']/0x3e8%0x3c),_0x13ce20[_0x352046('0xd66')]=Math[_0x352046('0x1008')](_0x13ce20[_0x352046('0x2494')]/0xea60),_0x13ce20[_0x352046('0xf51')]=0x0,_0x13ce20[_0x352046('0xd4d')]=0x0,_0x13ce20['months']=0x0,_0x13ce20[_0x352046('0x1a0d')]=0x0;else{if(_0x13ce20['maxTimeUnit']==='hour')_0x13ce20[_0x352046('0x278')]=Math[_0x352046('0x1008')](_0x13ce20[_0x352046('0x2494')]/0x3e8%0x3c),_0x13ce20[_0x352046('0xd66')]=Math[_0x352046('0x1008')](_0x13ce20[_0x352046('0x2494')]/0xea60%0x3c),_0x13ce20['hours']=Math[_0x352046('0x1008')](_0x13ce20[_0x352046('0x2494')]/0x36ee80),_0x13ce20[_0x352046('0xd4d')]=0x0,_0x13ce20['months']=0x0,_0x13ce20['years']=0x0;else{if(_0x13ce20[_0x352046('0x1320')]===_0x352046('0x4d8'))_0x13ce20[_0x352046('0x278')]=Math[_0x352046('0x1008')](_0x13ce20[_0x352046('0x2494')]/0x3e8%0x3c),_0x13ce20[_0x352046('0xd66')]=Math[_0x352046('0x1008')](_0x13ce20[_0x352046('0x2494')]/0xea60%0x3c),_0x13ce20[_0x352046('0xf51')]=Math[_0x352046('0x1008')](_0x13ce20[_0x352046('0x2494')]/0x36ee80%0x18),_0x13ce20[_0x352046('0xd4d')]=Math[_0x352046('0x1008')](_0x13ce20['millis']/0x36ee80/0x18%0x1e),_0x13ce20[_0x352046('0x12c5')]=Math[_0x352046('0x1008')](_0x13ce20[_0x352046('0x2494')]/0x36ee80/0x18/0x1e),_0x13ce20[_0x352046('0x1a0d')]=0x0;else _0x13ce20[_0x352046('0x1320')]===_0x352046('0x2211')&&(_0x13ce20[_0x352046('0x278')]=Math[_0x352046('0x1008')](_0x13ce20['millis']/0x3e8%0x3c),_0x13ce20[_0x352046('0xd66')]=Math[_0x352046('0x1008')](_0x13ce20[_0x352046('0x2494')]/0xea60%0x3c),_0x13ce20[_0x352046('0xf51')]=Math[_0x352046('0x1008')](_0x13ce20[_0x352046('0x2494')]/0x36ee80%0x18),_0x13ce20[_0x352046('0xd4d')]=Math[_0x352046('0x1008')](_0x13ce20[_0x352046('0x2494')]/0x36ee80/0x18%0x1e),_0x13ce20[_0x352046('0x12c5')]=Math[_0x352046('0x1008')](_0x13ce20['millis']/0x36ee80/0x18/0x1e%0xc),_0x13ce20[_0x352046('0x1a0d')]=Math[_0x352046('0x1008')](_0x13ce20[_0x352046('0x2494')]/0x36ee80/0x18/0x16d));}}}}_0x13ce20[_0x352046('0x1765')]=_0x13ce20[_0x352046('0x278')]===0x1||_0x13ce20[_0x352046('0x278')]===0x0?'':'s',_0x13ce20['minutesS']=_0x13ce20[_0x352046('0xd66')]===0x1||_0x13ce20[_0x352046('0xd66')]===0x0?'':'s',_0x13ce20[_0x352046('0x11b4')]=_0x13ce20[_0x352046('0xf51')]===0x1||_0x13ce20[_0x352046('0xf51')]===0x0?'':'s',_0x13ce20[_0x352046('0x1170')]=_0x13ce20['days']===0x1||_0x13ce20[_0x352046('0xd4d')]===0x0?'':'s',_0x13ce20[_0x352046('0x828')]=_0x13ce20['months']===0x1||_0x13ce20[_0x352046('0x12c5')]===0x0?'':'s',_0x13ce20[_0x352046('0x54')]=_0x13ce20['years']===0x1||_0x13ce20[_0x352046('0x1a0d')]===0x0?'':'s',_0x13ce20['sseconds']=_0x13ce20[_0x352046('0x278')]<0xa?'0'+_0x13ce20[_0x352046('0x278')]:_0x13ce20['seconds'],_0x13ce20[_0x352046('0x16e6')]=_0x13ce20[_0x352046('0xd66')]<0xa?'0'+_0x13ce20['minutes']:_0x13ce20[_0x352046('0xd66')],_0x13ce20[_0x352046('0x738')]=_0x13ce20[_0x352046('0xf51')]<0xa?'0'+_0x13ce20[_0x352046('0xf51')]:_0x13ce20['hours'],_0x13ce20['ddays']=_0x13ce20[_0x352046('0xd4d')]<0xa?'0'+_0x13ce20[_0x352046('0xd4d')]:_0x13ce20['days'],_0x13ce20[_0x352046('0x907')]=_0x13ce20['months']<0xa?'0'+_0x13ce20[_0x352046('0x12c5')]:_0x13ce20['months'],_0x13ce20['yyears']=_0x13ce20[_0x352046('0x1a0d')]<0xa?'0'+_0x13ce20[_0x352046('0x1a0d')]:_0x13ce20[_0x352046('0x1a0d')];}const _0x3e836c=function(){const _0x50c080=_0x5d79b1;_0x13ce20[_0x50c080('0x2494')]=_0x4f64b8()[_0x50c080('0xe2b')](_0x13ce20[_0x50c080('0xe8d')]);let _0x5425ec=_0x13ce20[_0x50c080('0x2494')]%0x3e8;_0x13ce20[_0x50c080('0xafe')]&&(_0x13ce20[_0x50c080('0x2494')]=_0x57d4d1()(_0x13ce20[_0x50c080('0xb99')])[_0x50c080('0xe2b')](_0x4f64b8()),_0x5425ec=_0x13ce20[_0x50c080('0x507')]-_0x13ce20['millis']%0x3e8);_0x13ce20['countdownAttr']&&(_0x13ce20[_0x50c080('0x2494')]=_0x13ce20[_0x50c080('0x278f')]*0x3e8);if(_0x13ce20[_0x50c080('0x2494')]<0x0){_0x13ce20[_0x50c080('0x17ce')](),_0x13ce20[_0x50c080('0x2494')]=0x0,_0x5e41f9();_0x13ce20[_0x50c080('0x11ce')]&&_0x13ce20[_0x50c080('0x2182')](_0x13ce20[_0x50c080('0x11ce')]);return;}_0x5e41f9(),_0x13ce20['timeoutId']=setTimeout(function(){_0x3e836c(),_0x13ce20['$digest']();},_0x13ce20[_0x50c080('0x507')]-_0x5425ec),_0x13ce20[_0x50c080('0x27f3')](_0x50c080('0x18a7'),{'timeoutId':_0x13ce20['timeoutId'],'millis':_0x13ce20[_0x50c080('0x2494')]});if(_0x13ce20[_0x50c080('0x278f')]>0x0)_0x13ce20[_0x50c080('0x278f')]--;else _0x13ce20[_0x50c080('0x278f')]<=0x0&&(_0x13ce20['stop'](),_0x13ce20[_0x50c080('0x11ce')]&&_0x13ce20['$eval'](_0x13ce20[_0x50c080('0x11ce')]));};(_0x13ce20[_0x5d79b1('0x1bbb')]===undefined||_0x13ce20['autoStart']===!![])&&_0x13ce20[_0x5d79b1('0x127')]();function _0x4f64b8(){const _0x2d1f67=_0x5d79b1;return _0x57d4d1()[_0x2d1f67('0x14d')](_0x57d4d1()()[_0x2d1f67('0x1fb1')](_0x13ce20['serverDateOffset']));}function _0xe91bfc(){let _0x49ded0;return _0x371a52(function(_0x1ad84b,_0x43d33e){const _0x2dbfa9=a0_0xaf0c;try{if(_0x13ce20[_0x2dbfa9('0xe31')]){_0x49ded0=_0x4f64b8(),_0x1ad84b(_0x49ded0);return;}_0x443cfb[_0x2dbfa9('0x23e1')]['getDate']()[_0x2dbfa9('0x1549')][_0x2dbfa9('0x11bf')](function(_0x39d4f4){const _0x2bdb1c=_0x2dbfa9;_0x13ce20[_0x2bdb1c('0xe31')]=_0x39d4f4[_0x2bdb1c('0x1393')],_0x49ded0=_0x4f64b8(),_0x1ad84b(_0x49ded0);return;});}catch(_0xa25d6b){_0x43d33e(_0xa25d6b);}});}}function _0x265c15(){const _0x163ed8=_0x21d0f5;return{'restrict':'EA','replace':![],'scope':{'intervalAttr':_0x163ed8('0x119f'),'startTimeAttr':'=startTime','endTimeAttr':_0x163ed8('0x1cda'),'countdownAttr':'=countdown','autoStart':'&autoStart','maxTimeUnit':'='},'controller':_0x163ed8('0x2ab')};}const _0x4e2e6f=_0x351988['p']+_0x21d0f5('0x117f');;function _0x2e1886(){const _0x1c1e8f=_0x21d0f5;return{'restrict':'E','scope':{'ngModel':'='},'controller':[_0x1c1e8f('0x1b80'),function(_0xa4a522){const _0x4f7597=_0x1c1e8f;_0xa4a522[_0x4f7597('0x469')]=[{'name':_0x4f7597('0x15fd'),'utcOffset':0x3c,'offsetStr':_0x4f7597('0x8e2'),'countries':['AD']},{'name':_0x4f7597('0x1ab6'),'utcOffset':0xf0,'offsetStr':_0x4f7597('0x8f4'),'countries':['AE','OM']},{'name':'Asia/Kabul','utcOffset':0x10e,'offsetStr':'+04:30','countries':['AF']},{'name':_0x4f7597('0xe9e'),'utcOffset':0x3c,'offsetStr':'+01:00','countries':['AL']},{'name':_0x4f7597('0x284e'),'utcOffset':0xf0,'offsetStr':_0x4f7597('0x8f4'),'countries':['AM']},{'name':_0x4f7597('0x2530'),'utcOffset':-0xb4,'offsetStr':_0x4f7597('0x2ea'),'countries':['AQ']},{'name':_0x4f7597('0x25d0'),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['AQ']},{'name':_0x4f7597('0xdd3'),'utcOffset':0x12c,'offsetStr':_0x4f7597('0x1de2'),'countries':['AQ']},{'name':_0x4f7597('0x18c5'),'utcOffset':0x1a4,'offsetStr':_0x4f7597('0x857'),'countries':['AQ']},{'name':_0x4f7597('0x1c39'),'utcOffset':0x1e0,'offsetStr':_0x4f7597('0x1390'),'countries':['AQ']},{'name':_0x4f7597('0x18de'),'utcOffset':0x168,'offsetStr':_0x4f7597('0x2266'),'countries':['AQ']},{'name':_0x4f7597('0x22d'),'utcOffset':0x258,'offsetStr':_0x4f7597('0x908'),'countries':['AQ']},{'name':'Antarctica/Syowa','utcOffset':0xb4,'offsetStr':'+03:00','countries':['AQ']},{'name':_0x4f7597('0x62b'),'utcOffset':0x0,'offsetStr':_0x4f7597('0x1bec'),'countries':['AQ']},{'name':'America/Argentina/Buenos_Aires','utcOffset':-0xb4,'offsetStr':_0x4f7597('0x2ea'),'countries':['AR']},{'name':_0x4f7597('0x11c8'),'utcOffset':-0xb4,'offsetStr':_0x4f7597('0x2ea'),'countries':['AR']},{'name':_0x4f7597('0x143b'),'utcOffset':-0xb4,'offsetStr':_0x4f7597('0x2ea'),'countries':['AR']},{'name':'America/Argentina/Jujuy','utcOffset':-0xb4,'offsetStr':_0x4f7597('0x2ea'),'countries':['AR']},{'name':_0x4f7597('0x6e7'),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['AR']},{'name':_0x4f7597('0x2310'),'utcOffset':-0xb4,'offsetStr':_0x4f7597('0x2ea'),'countries':['AR']},{'name':_0x4f7597('0xaaa'),'utcOffset':-0xb4,'offsetStr':_0x4f7597('0x2ea'),'countries':['AR']},{'name':_0x4f7597('0x202e'),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['AR']},{'name':_0x4f7597('0x2254'),'utcOffset':-0xb4,'offsetStr':_0x4f7597('0x2ea'),'countries':['AR']},{'name':_0x4f7597('0x331'),'utcOffset':-0xb4,'offsetStr':_0x4f7597('0x2ea'),'countries':['AR']},{'name':_0x4f7597('0x2799'),'utcOffset':-0xb4,'offsetStr':_0x4f7597('0x2ea'),'countries':['AR']},{'name':_0x4f7597('0x829'),'utcOffset':-0xb4,'offsetStr':_0x4f7597('0x2ea'),'countries':['AR']},{'name':_0x4f7597('0x243c'),'utcOffset':-0x294,'offsetStr':_0x4f7597('0x101'),'countries':['AS','UM']},{'name':'Europe/Vienna','utcOffset':0x3c,'offsetStr':_0x4f7597('0x8e2'),'countries':['AT']},{'name':_0x4f7597('0xf9b'),'utcOffset':0x294,'offsetStr':_0x4f7597('0x1244'),'countries':['AU']},{'name':_0x4f7597('0x108c'),'utcOffset':0x294,'offsetStr':_0x4f7597('0x1244'),'countries':['AU']},{'name':_0x4f7597('0x53e'),'utcOffset':0x294,'offsetStr':_0x4f7597('0x1244'),'countries':['AU']},{'name':_0x4f7597('0x24dd'),'utcOffset':0x294,'offsetStr':_0x4f7597('0x1244'),'countries':['AU']},{'name':_0x4f7597('0x5b'),'utcOffset':0x294,'offsetStr':_0x4f7597('0x1244'),'countries':['AU']},{'name':_0x4f7597('0xa34'),'utcOffset':0x294,'offsetStr':_0x4f7597('0x1244'),'countries':['AU']},{'name':'Australia/Broken_Hill','utcOffset':0x276,'offsetStr':_0x4f7597('0x87'),'countries':['AU']},{'name':_0x4f7597('0x17f1'),'utcOffset':0x258,'offsetStr':'+10:00','countries':['AU']},{'name':_0x4f7597('0xe37'),'utcOffset':0x258,'offsetStr':'+10:00','countries':['AU']},{'name':_0x4f7597('0xde5'),'utcOffset':0x276,'offsetStr':_0x4f7597('0x87'),'countries':['AU']},{'name':_0x4f7597('0x879'),'utcOffset':0x23a,'offsetStr':_0x4f7597('0xb49'),'countries':['AU']},{'name':_0x4f7597('0x2480'),'utcOffset':0x1e0,'offsetStr':'+08:00','countries':['AU']},{'name':_0x4f7597('0x1291'),'utcOffset':0x20d,'offsetStr':'+08:45','countries':['AU']},{'name':_0x4f7597('0x1196'),'utcOffset':0xf0,'offsetStr':_0x4f7597('0x8f4'),'countries':['AZ']},{'name':_0x4f7597('0xdcf'),'utcOffset':-0xf0,'offsetStr':_0x4f7597('0x967'),'countries':['BB']},{'name':_0x4f7597('0x2603'),'utcOffset':0x168,'offsetStr':_0x4f7597('0x2266'),'countries':['BD']},{'name':_0x4f7597('0x16f3'),'utcOffset':0x3c,'offsetStr':_0x4f7597('0x8e2'),'countries':['BE']},{'name':_0x4f7597('0x7d7'),'utcOffset':0x78,'offsetStr':'+02:00','countries':['BG']},{'name':_0x4f7597('0xe8c'),'utcOffset':-0xf0,'offsetStr':_0x4f7597('0x967'),'countries':['BM']},{'name':_0x4f7597('0x79d'),'utcOffset':0x1e0,'offsetStr':_0x4f7597('0x1390'),'countries':['BN']},{'name':_0x4f7597('0xc5e'),'utcOffset':-0xf0,'offsetStr':'-04:00','countries':['BO']},{'name':_0x4f7597('0x10b6'),'utcOffset':-0x78,'offsetStr':'-02:00','countries':['BR']},{'name':_0x4f7597('0x1a2'),'utcOffset':-0xb4,'offsetStr':_0x4f7597('0x2ea'),'countries':['BR']},{'name':'America/Fortaleza','utcOffset':-0xb4,'offsetStr':'-03:00','countries':['BR']},{'name':_0x4f7597('0x1a57'),'utcOffset':-0xb4,'offsetStr':_0x4f7597('0x2ea'),'countries':['BR']},{'name':'America/Araguaina','utcOffset':-0xb4,'offsetStr':_0x4f7597('0x2ea'),'countries':['BR']},{'name':'America/Maceio','utcOffset':-0xb4,'offsetStr':_0x4f7597('0x2ea'),'countries':['BR']},{'name':_0x4f7597('0x1107'),'utcOffset':-0xb4,'offsetStr':_0x4f7597('0x2ea'),'countries':['BR']},{'name':_0x4f7597('0x215c'),'utcOffset':-0x78,'offsetStr':_0x4f7597('0xd26'),'countries':['BR']},{'name':_0x4f7597('0x1ec6'),'utcOffset':-0xb4,'offsetStr':_0x4f7597('0x2ea'),'countries':['BR']},{'name':_0x4f7597('0x13f5'),'utcOffset':-0xb4,'offsetStr':_0x4f7597('0x2ea'),'countries':['BR']},{'name':_0x4f7597('0x9a9'),'utcOffset':-0xb4,'offsetStr':_0x4f7597('0x2ea'),'countries':['BR']},{'name':_0x4f7597('0x1ca9'),'utcOffset':-0xf0,'offsetStr':_0x4f7597('0x967'),'countries':['BR']},{'name':'America/Boa_Vista','utcOffset':-0xf0,'offsetStr':_0x4f7597('0x967'),'countries':['BR']},{'name':_0x4f7597('0x2463'),'utcOffset':-0xf0,'offsetStr':_0x4f7597('0x967'),'countries':['BR']},{'name':_0x4f7597('0x111c'),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['BR']},{'name':_0x4f7597('0xb83'),'utcOffset':-0x12c,'offsetStr':_0x4f7597('0x2a0'),'countries':['BR']},{'name':_0x4f7597('0x8a'),'utcOffset':-0x12c,'offsetStr':_0x4f7597('0x2a0'),'countries':['BS']},{'name':'Asia/Thimphu','utcOffset':0x168,'offsetStr':_0x4f7597('0x2266'),'countries':['BT']},{'name':_0x4f7597('0x13d0'),'utcOffset':0xb4,'offsetStr':'+03:00','countries':['BY']},{'name':_0x4f7597('0xad8'),'utcOffset':-0x168,'offsetStr':_0x4f7597('0x82f'),'countries':['BZ']},{'name':_0x4f7597('0x1adc'),'utcOffset':-0xd2,'offsetStr':_0x4f7597('0x136'),'countries':['CA']},{'name':_0x4f7597('0x1d05'),'utcOffset':-0xf0,'offsetStr':'-04:00','countries':['CA']},{'name':_0x4f7597('0x219'),'utcOffset':-0xf0,'offsetStr':_0x4f7597('0x967'),'countries':['CA']},{'name':_0x4f7597('0xc59'),'utcOffset':-0xf0,'offsetStr':_0x4f7597('0x967'),'countries':['CA']},{'name':_0x4f7597('0x25e9'),'utcOffset':-0xf0,'offsetStr':_0x4f7597('0x967'),'countries':['CA']},{'name':_0x4f7597('0xe04'),'utcOffset':-0xf0,'offsetStr':_0x4f7597('0x967'),'countries':['CA']},{'name':_0x4f7597('0x1f8d'),'utcOffset':-0x12c,'offsetStr':_0x4f7597('0x2a0'),'countries':['CA']},{'name':'America/Nipigon','utcOffset':-0x12c,'offsetStr':_0x4f7597('0x2a0'),'countries':['CA']},{'name':_0x4f7597('0x15f9'),'utcOffset':-0x12c,'offsetStr':_0x4f7597('0x2a0'),'countries':['CA']},{'name':_0x4f7597('0xccc'),'utcOffset':-0x12c,'offsetStr':_0x4f7597('0x2a0'),'countries':['CA']},{'name':'America/Pangnirtung','utcOffset':-0x12c,'offsetStr':'-05:00','countries':['CA']},{'name':_0x4f7597('0x91a'),'utcOffset':-0x168,'offsetStr':_0x4f7597('0x82f'),'countries':['CA']},{'name':_0x4f7597('0xb7f'),'utcOffset':-0x12c,'offsetStr':_0x4f7597('0x2a0'),'countries':['CA']},{'name':_0x4f7597('0x213d'),'utcOffset':-0x168,'offsetStr':_0x4f7597('0x82f'),'countries':['CA']},{'name':_0x4f7597('0x4ac'),'utcOffset':-0x168,'offsetStr':_0x4f7597('0x82f'),'countries':['CA']},{'name':'America/Rainy_River','utcOffset':-0x168,'offsetStr':_0x4f7597('0x82f'),'countries':['CA']},{'name':'America/Regina','utcOffset':-0x168,'offsetStr':_0x4f7597('0x82f'),'countries':['CA']},{'name':_0x4f7597('0x1f4c'),'utcOffset':-0x168,'offsetStr':_0x4f7597('0x82f'),'countries':['CA']},{'name':'America/Edmonton','utcOffset':-0x1a4,'offsetStr':_0x4f7597('0x3e5'),'countries':['CA']},{'name':_0x4f7597('0x956'),'utcOffset':-0x1a4,'offsetStr':_0x4f7597('0x3e5'),'countries':['CA']},{'name':_0x4f7597('0x263'),'utcOffset':-0x1a4,'offsetStr':_0x4f7597('0x3e5'),'countries':['CA']},{'name':'America/Inuvik','utcOffset':-0x1a4,'offsetStr':_0x4f7597('0x3e5'),'countries':['CA']},{'name':_0x4f7597('0x256c'),'utcOffset':-0x1a4,'offsetStr':_0x4f7597('0x3e5'),'countries':['CA']},{'name':_0x4f7597('0xd8d'),'utcOffset':-0x1a4,'offsetStr':_0x4f7597('0x3e5'),'countries':['CA']},{'name':_0x4f7597('0x43e'),'utcOffset':-0x1a4,'offsetStr':_0x4f7597('0x3e5'),'countries':['CA']},{'name':_0x4f7597('0x1cb0'),'utcOffset':-0x1e0,'offsetStr':_0x4f7597('0x8b1'),'countries':['CA']},{'name':_0x4f7597('0x16fb'),'utcOffset':-0x1e0,'offsetStr':_0x4f7597('0x8b1'),'countries':['CA']},{'name':_0x4f7597('0x1399'),'utcOffset':-0x1e0,'offsetStr':_0x4f7597('0x8b1'),'countries':['CA']},{'name':'Indian/Cocos','utcOffset':0x186,'offsetStr':_0x4f7597('0x1cac'),'countries':['CC']},{'name':'Europe/Zurich','utcOffset':0x3c,'offsetStr':_0x4f7597('0x8e2'),'countries':['CH','DE','LI']},{'name':_0x4f7597('0x1a72'),'utcOffset':0x0,'offsetStr':_0x4f7597('0x1bec'),'countries':['CI','BF','GM','GN','ML','MR','SH','SL','SN','ST','TG']},{'name':_0x4f7597('0x27c5'),'utcOffset':-0x258,'offsetStr':_0x4f7597('0x43b'),'countries':['CK']},{'name':'America/Santiago','utcOffset':-0xb4,'offsetStr':'-03:00','countries':['CL']},{'name':_0x4f7597('0xd8a'),'utcOffset':-0x12c,'offsetStr':_0x4f7597('0x2a0'),'countries':['CL']},{'name':_0x4f7597('0x8a0'),'utcOffset':0x1e0,'offsetStr':_0x4f7597('0x1390'),'countries':['CN']},{'name':'Asia/Urumqi','utcOffset':0x168,'offsetStr':_0x4f7597('0x2266'),'countries':['CN']},{'name':_0x4f7597('0x1652'),'utcOffset':-0x12c,'offsetStr':_0x4f7597('0x2a0'),'countries':['CO']},{'name':_0x4f7597('0x3a0'),'utcOffset':-0x168,'offsetStr':_0x4f7597('0x82f'),'countries':['CR']},{'name':'America/Havana','utcOffset':-0x12c,'offsetStr':'-05:00','countries':['CU']},{'name':_0x4f7597('0x3'),'utcOffset':-0x3c,'offsetStr':_0x4f7597('0x26fe'),'countries':['CV']},{'name':_0x4f7597('0x1d15'),'utcOffset':-0xf0,'offsetStr':'-04:00','countries':['CW','AW','BQ','SX']},{'name':_0x4f7597('0x1f4a'),'utcOffset':0x1a4,'offsetStr':'+07:00','countries':['CX']},{'name':'Asia/Nicosia','utcOffset':0x78,'offsetStr':_0x4f7597('0x2141'),'countries':['CY']},{'name':_0x4f7597('0xc06'),'utcOffset':0x3c,'offsetStr':_0x4f7597('0x8e2'),'countries':['CZ','SK']},{'name':'Europe/Berlin','utcOffset':0x3c,'offsetStr':_0x4f7597('0x8e2'),'countries':['DE']},{'name':_0x4f7597('0x1e19'),'utcOffset':0x3c,'offsetStr':_0x4f7597('0x8e2'),'countries':['DK']},{'name':_0x4f7597('0x2109'),'utcOffset':-0xf0,'offsetStr':'-04:00','countries':['DO']},{'name':_0x4f7597('0x1985'),'utcOffset':0x3c,'offsetStr':_0x4f7597('0x8e2'),'countries':['DZ']},{'name':_0x4f7597('0x24fe'),'utcOffset':-0x12c,'offsetStr':_0x4f7597('0x2a0'),'countries':['EC']},{'name':_0x4f7597('0x1ab5'),'utcOffset':-0x168,'offsetStr':_0x4f7597('0x82f'),'countries':['EC']},{'name':_0x4f7597('0x264c'),'utcOffset':0x78,'offsetStr':_0x4f7597('0x2141'),'countries':['EE']},{'name':'Africa/Cairo','utcOffset':0x78,'offsetStr':'+02:00','countries':['EG']},{'name':_0x4f7597('0xca1'),'utcOffset':0x0,'offsetStr':'+00:00','countries':['EH']},{'name':_0x4f7597('0x3be'),'utcOffset':0x3c,'offsetStr':_0x4f7597('0x8e2'),'countries':['ES']},{'name':'Africa/Ceuta','utcOffset':0x3c,'offsetStr':_0x4f7597('0x8e2'),'countries':['ES']},{'name':'Atlantic/Canary','utcOffset':0x0,'offsetStr':_0x4f7597('0x1bec'),'countries':['ES']},{'name':_0x4f7597('0x1be7'),'utcOffset':0x78,'offsetStr':_0x4f7597('0x2141'),'countries':['FI','AX']},{'name':'Pacific/Fiji','utcOffset':0x2d0,'offsetStr':'+12:00','countries':['FJ']},{'name':_0x4f7597('0xe35'),'utcOffset':-0xb4,'offsetStr':_0x4f7597('0x2ea'),'countries':['FK']},{'name':_0x4f7597('0xee8'),'utcOffset':0x258,'offsetStr':_0x4f7597('0x908'),'countries':['FM']},{'name':'Pacific/Pohnpei','utcOffset':0x294,'offsetStr':_0x4f7597('0x1244'),'countries':['FM']},{'name':_0x4f7597('0x989'),'utcOffset':0x294,'offsetStr':_0x4f7597('0x1244'),'countries':['FM']},{'name':_0x4f7597('0x333'),'utcOffset':0x0,'offsetStr':_0x4f7597('0x1bec'),'countries':['FO']},{'name':_0x4f7597('0x1a5'),'utcOffset':0x3c,'offsetStr':_0x4f7597('0x8e2'),'countries':['FR']},{'name':_0x4f7597('0xd03'),'utcOffset':0x0,'offsetStr':_0x4f7597('0x1bec'),'countries':['GB','GG','IM','JE']},{'name':_0x4f7597('0x2576'),'utcOffset':0xf0,'offsetStr':_0x4f7597('0x8f4'),'countries':['GE']},{'name':'America/Cayenne','utcOffset':-0xb4,'offsetStr':_0x4f7597('0x2ea'),'countries':['GF']},{'name':_0x4f7597('0x2867'),'utcOffset':0x0,'offsetStr':'+00:00','countries':['GH']},{'name':_0x4f7597('0x443'),'utcOffset':0x3c,'offsetStr':_0x4f7597('0x8e2'),'countries':['GI']},{'name':_0x4f7597('0x623'),'utcOffset':-0xb4,'offsetStr':_0x4f7597('0x2ea'),'countries':['GL']},{'name':_0x4f7597('0x1542'),'utcOffset':0x0,'offsetStr':_0x4f7597('0x1bec'),'countries':['GL']},{'name':_0x4f7597('0x1967'),'utcOffset':-0x3c,'offsetStr':'-01:00','countries':['GL']},{'name':_0x4f7597('0x1b05'),'utcOffset':-0xf0,'offsetStr':_0x4f7597('0x967'),'countries':['GL']},{'name':_0x4f7597('0xca8'),'utcOffset':0x78,'offsetStr':_0x4f7597('0x2141'),'countries':['GR']},{'name':'Atlantic/South_Georgia','utcOffset':-0x78,'offsetStr':_0x4f7597('0xd26'),'countries':['GS']},{'name':_0x4f7597('0xeb6'),'utcOffset':-0x168,'offsetStr':_0x4f7597('0x82f'),'countries':['GT']},{'name':_0x4f7597('0x182d'),'utcOffset':0x258,'offsetStr':_0x4f7597('0x908'),'countries':['GU','MP']},{'name':'Africa/Bissau','utcOffset':0x0,'offsetStr':_0x4f7597('0x1bec'),'countries':['GW']},{'name':'America/Guyana','utcOffset':-0xf0,'offsetStr':_0x4f7597('0x967'),'countries':['GY']},{'name':_0x4f7597('0x72a'),'utcOffset':0x1e0,'offsetStr':_0x4f7597('0x1390'),'countries':['HK']},{'name':_0x4f7597('0x186'),'utcOffset':-0x168,'offsetStr':_0x4f7597('0x82f'),'countries':['HN']},{'name':_0x4f7597('0x19a8'),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['HT']},{'name':_0x4f7597('0xbe8'),'utcOffset':0x3c,'offsetStr':_0x4f7597('0x8e2'),'countries':['HU']},{'name':_0x4f7597('0x946'),'utcOffset':0x1a4,'offsetStr':'+07:00','countries':['ID']},{'name':_0x4f7597('0x33d'),'utcOffset':0x1a4,'offsetStr':_0x4f7597('0x857'),'countries':['ID']},{'name':_0x4f7597('0xdb6'),'utcOffset':0x1e0,'offsetStr':_0x4f7597('0x1390'),'countries':['ID']},{'name':_0x4f7597('0x1a93'),'utcOffset':0x21c,'offsetStr':'+09:00','countries':['ID']},{'name':'Europe/Dublin','utcOffset':0x0,'offsetStr':_0x4f7597('0x1bec'),'countries':['IE']},{'name':'Asia/Jerusalem','utcOffset':0x78,'offsetStr':'+02:00','countries':['IL']},{'name':_0x4f7597('0x552'),'utcOffset':0x14a,'offsetStr':_0x4f7597('0xb63'),'countries':['IN']},{'name':'Indian/Chagos','utcOffset':0x168,'offsetStr':_0x4f7597('0x2266'),'countries':['IO']},{'name':'Asia/Baghdad','utcOffset':0xb4,'offsetStr':_0x4f7597('0x114f'),'countries':['IQ']},{'name':'Asia/Tehran','utcOffset':0xd2,'offsetStr':'+03:30','countries':['IR']},{'name':_0x4f7597('0x1a58'),'utcOffset':0x0,'offsetStr':_0x4f7597('0x1bec'),'countries':['IS']},{'name':_0x4f7597('0x19b5'),'utcOffset':0x3c,'offsetStr':_0x4f7597('0x8e2'),'countries':['IT','SM','VA']},{'name':_0x4f7597('0x1dad'),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['JM']},{'name':'Asia/Amman','utcOffset':0x78,'offsetStr':'+02:00','countries':['JO']},{'name':_0x4f7597('0x1fdf'),'utcOffset':0x21c,'offsetStr':_0x4f7597('0x957'),'countries':['JP']},{'name':_0x4f7597('0x10f4'),'utcOffset':0xb4,'offsetStr':_0x4f7597('0x114f'),'countries':['KE','DJ','ER','ET','KM','MG','SO','TZ','UG','YT']},{'name':'Asia/Bishkek','utcOffset':0x168,'offsetStr':_0x4f7597('0x2266'),'countries':['KG']},{'name':'Pacific/Tarawa','utcOffset':0x2d0,'offsetStr':_0x4f7597('0xa82'),'countries':['KI']},{'name':_0x4f7597('0x168d'),'utcOffset':0x30c,'offsetStr':_0x4f7597('0x1331'),'countries':['KI']},{'name':_0x4f7597('0x17d6'),'utcOffset':0x348,'offsetStr':_0x4f7597('0x1b72'),'countries':['KI']},{'name':'Asia/Pyongyang','utcOffset':0x1fe,'offsetStr':_0x4f7597('0x1231'),'countries':['KP']},{'name':_0x4f7597('0x5f7'),'utcOffset':0x21c,'offsetStr':_0x4f7597('0x957'),'countries':['KR']},{'name':'America/Cayman','utcOffset':-0x12c,'offsetStr':_0x4f7597('0x2a0'),'countries':['KY']},{'name':_0x4f7597('0x25fc'),'utcOffset':0x168,'offsetStr':'+06:00','countries':['KZ']},{'name':_0x4f7597('0x148e'),'utcOffset':0x168,'offsetStr':_0x4f7597('0x2266'),'countries':['KZ']},{'name':_0x4f7597('0xc9f'),'utcOffset':0x12c,'offsetStr':_0x4f7597('0x1de2'),'countries':['KZ']},{'name':_0x4f7597('0x10d9'),'utcOffset':0x12c,'offsetStr':_0x4f7597('0x1de2'),'countries':['KZ']},{'name':_0x4f7597('0x20b6'),'utcOffset':0x12c,'offsetStr':_0x4f7597('0x1de2'),'countries':['KZ']},{'name':_0x4f7597('0xbb0'),'utcOffset':0x78,'offsetStr':'+02:00','countries':['LB']},{'name':_0x4f7597('0xa0e'),'utcOffset':0x14a,'offsetStr':_0x4f7597('0xb63'),'countries':['LK']},{'name':_0x4f7597('0x287b'),'utcOffset':0x0,'offsetStr':'+00:00','countries':['LR']},{'name':'Europe/Vilnius','utcOffset':0x78,'offsetStr':_0x4f7597('0x2141'),'countries':['LT']},{'name':_0x4f7597('0x122a'),'utcOffset':0x3c,'offsetStr':'+01:00','countries':['LU']},{'name':_0x4f7597('0x277f'),'utcOffset':0x78,'offsetStr':_0x4f7597('0x2141'),'countries':['LV']},{'name':_0x4f7597('0x1b7a'),'utcOffset':0x78,'offsetStr':_0x4f7597('0x2141'),'countries':['LY']},{'name':'Africa/Casablanca','utcOffset':0x0,'offsetStr':_0x4f7597('0x1bec'),'countries':['MA']},{'name':_0x4f7597('0x2590'),'utcOffset':0x3c,'offsetStr':_0x4f7597('0x8e2'),'countries':['MC']},{'name':_0x4f7597('0x86b'),'utcOffset':0x78,'offsetStr':_0x4f7597('0x2141'),'countries':['MD']},{'name':'Pacific/Majuro','utcOffset':0x2d0,'offsetStr':_0x4f7597('0xa82'),'countries':['MH']},{'name':_0x4f7597('0x33c'),'utcOffset':0x2d0,'offsetStr':'+12:00','countries':['MH']},{'name':_0x4f7597('0x212b'),'utcOffset':0x186,'offsetStr':_0x4f7597('0x1cac'),'countries':['MM']},{'name':_0x4f7597('0xf32'),'utcOffset':0x1e0,'offsetStr':_0x4f7597('0x1390'),'countries':['MN']},{'name':'Asia/Hovd','utcOffset':0x1a4,'offsetStr':_0x4f7597('0x857'),'countries':['MN']},{'name':'Asia/Choibalsan','utcOffset':0x1e0,'offsetStr':'+08:00','countries':['MN']},{'name':_0x4f7597('0x71b'),'utcOffset':0x1e0,'offsetStr':_0x4f7597('0x1390'),'countries':['MO']},{'name':_0x4f7597('0x5c3'),'utcOffset':-0xf0,'offsetStr':'-04:00','countries':['MQ']},{'name':'Europe/Malta','utcOffset':0x3c,'offsetStr':_0x4f7597('0x8e2'),'countries':['MT']},{'name':_0x4f7597('0x15c1'),'utcOffset':0xf0,'offsetStr':_0x4f7597('0x8f4'),'countries':['MU']},{'name':_0x4f7597('0x2302'),'utcOffset':0x12c,'offsetStr':'+05:00','countries':['MV']},{'name':_0x4f7597('0x2004'),'utcOffset':-0x168,'offsetStr':_0x4f7597('0x82f'),'countries':['MX']},{'name':_0x4f7597('0x441'),'utcOffset':-0x12c,'offsetStr':_0x4f7597('0x2a0'),'countries':['MX']},{'name':'America/Merida','utcOffset':-0x168,'offsetStr':_0x4f7597('0x82f'),'countries':['MX']},{'name':'America/Monterrey','utcOffset':-0x168,'offsetStr':'-06:00','countries':['MX']},{'name':'America/Matamoros','utcOffset':-0x168,'offsetStr':'-06:00','countries':['MX']},{'name':_0x4f7597('0x1c81'),'utcOffset':-0x1a4,'offsetStr':'-07:00','countries':['MX']},{'name':'America/Chihuahua','utcOffset':-0x1a4,'offsetStr':_0x4f7597('0x3e5'),'countries':['MX']},{'name':_0x4f7597('0x1fbf'),'utcOffset':-0x1a4,'offsetStr':_0x4f7597('0x3e5'),'countries':['MX']},{'name':'America/Hermosillo','utcOffset':-0x1a4,'offsetStr':_0x4f7597('0x3e5'),'countries':['MX']},{'name':_0x4f7597('0x12eb'),'utcOffset':-0x1e0,'offsetStr':_0x4f7597('0x8b1'),'countries':['MX']},{'name':_0x4f7597('0x1415'),'utcOffset':-0x1e0,'offsetStr':_0x4f7597('0x8b1'),'countries':['MX']},{'name':_0x4f7597('0xf3'),'utcOffset':-0x168,'offsetStr':_0x4f7597('0x82f'),'countries':['MX']},{'name':_0x4f7597('0x126d'),'utcOffset':0x1e0,'offsetStr':'+08:00','countries':['MY']},{'name':'Asia/Kuching','utcOffset':0x1e0,'offsetStr':_0x4f7597('0x1390'),'countries':['MY']},{'name':_0x4f7597('0x3b7'),'utcOffset':0x78,'offsetStr':_0x4f7597('0x2141'),'countries':['MZ','BI','BW','CD','MW','RW','ZM','ZW']},{'name':_0x4f7597('0x1768'),'utcOffset':0x78,'offsetStr':'+02:00','countries':['NA']},{'name':_0x4f7597('0x1a5e'),'utcOffset':0x294,'offsetStr':'+11:00','countries':['NC']},{'name':_0x4f7597('0x4b7'),'utcOffset':0x294,'offsetStr':_0x4f7597('0x1244'),'countries':['NF']},{'name':_0x4f7597('0x2567'),'utcOffset':0x3c,'offsetStr':_0x4f7597('0x8e2'),'countries':['NG','AO','BJ','CD','CF','CG','CM','GA','GQ','NE']},{'name':'America/Managua','utcOffset':-0x168,'offsetStr':_0x4f7597('0x82f'),'countries':['NI']},{'name':_0x4f7597('0x70a'),'utcOffset':0x3c,'offsetStr':_0x4f7597('0x8e2'),'countries':['NL']},{'name':_0x4f7597('0xcdb'),'utcOffset':0x3c,'offsetStr':'+01:00','countries':['NO','SJ']},{'name':_0x4f7597('0x26d4'),'utcOffset':0x159,'offsetStr':'+05:45','countries':['NP']},{'name':'Pacific/Nauru','utcOffset':0x2d0,'offsetStr':_0x4f7597('0xa82'),'countries':['NR']},{'name':_0x4f7597('0x137'),'utcOffset':-0x294,'offsetStr':'-11:00','countries':['NU']},{'name':_0x4f7597('0x25cb'),'utcOffset':0x30c,'offsetStr':_0x4f7597('0x1331'),'countries':['NZ','AQ']},{'name':_0x4f7597('0x1198'),'utcOffset':0x339,'offsetStr':'+13:45','countries':['NZ']},{'name':_0x4f7597('0x2784'),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['PA']},{'name':'America/Lima','utcOffset':-0x12c,'offsetStr':_0x4f7597('0x2a0'),'countries':['PE']},{'name':'Pacific/Tahiti','utcOffset':-0x258,'offsetStr':_0x4f7597('0x43b'),'countries':['PF']},{'name':_0x4f7597('0x448'),'utcOffset':-0x23a,'offsetStr':_0x4f7597('0xa77'),'countries':['PF']},{'name':_0x4f7597('0xb42'),'utcOffset':-0x21c,'offsetStr':_0x4f7597('0x1e49'),'countries':['PF']},{'name':_0x4f7597('0x2c8'),'utcOffset':0x258,'offsetStr':_0x4f7597('0x908'),'countries':['PG']},{'name':_0x4f7597('0x16c4'),'utcOffset':0x294,'offsetStr':_0x4f7597('0x1244'),'countries':['PG']},{'name':'Asia/Manila','utcOffset':0x1e0,'offsetStr':_0x4f7597('0x1390'),'countries':['PH']},{'name':_0x4f7597('0x2749'),'utcOffset':0x12c,'offsetStr':_0x4f7597('0x1de2'),'countries':['PK']},{'name':_0x4f7597('0x2055'),'utcOffset':0x3c,'offsetStr':_0x4f7597('0x8e2'),'countries':['PL']},{'name':'America/Miquelon','utcOffset':-0xb4,'offsetStr':_0x4f7597('0x2ea'),'countries':['PM']},{'name':'Pacific/Pitcairn','utcOffset':-0x1e0,'offsetStr':_0x4f7597('0x8b1'),'countries':['PN']},{'name':_0x4f7597('0x2557'),'utcOffset':-0xf0,'offsetStr':_0x4f7597('0x967'),'countries':['PR']},{'name':_0x4f7597('0x37e'),'utcOffset':0x78,'offsetStr':'+02:00','countries':['PS']},{'name':'Asia/Hebron','utcOffset':0x78,'offsetStr':_0x4f7597('0x2141'),'countries':['PS']},{'name':_0x4f7597('0x23ee'),'utcOffset':0x0,'offsetStr':_0x4f7597('0x1bec'),'countries':['PT']},{'name':_0x4f7597('0x2469'),'utcOffset':0x0,'offsetStr':'+00:00','countries':['PT']},{'name':_0x4f7597('0x1086'),'utcOffset':-0x3c,'offsetStr':'-01:00','countries':['PT']},{'name':_0x4f7597('0x16c9'),'utcOffset':0x21c,'offsetStr':_0x4f7597('0x957'),'countries':['PW']},{'name':_0x4f7597('0xb06'),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['PY']},{'name':_0x4f7597('0x145c'),'utcOffset':0xb4,'offsetStr':_0x4f7597('0x114f'),'countries':['QA','BH']},{'name':_0x4f7597('0xa5'),'utcOffset':0xf0,'offsetStr':'+04:00','countries':['RE','TF']},{'name':_0x4f7597('0x534'),'utcOffset':0x78,'offsetStr':_0x4f7597('0x2141'),'countries':['RO']},{'name':'Europe/Belgrade','utcOffset':0x3c,'offsetStr':_0x4f7597('0x8e2'),'countries':['RS','BA','HR','ME','MK','SI']},{'name':_0x4f7597('0x71a'),'utcOffset':0x78,'offsetStr':_0x4f7597('0x2141'),'countries':['RU']},{'name':_0x4f7597('0x1443'),'utcOffset':0xb4,'offsetStr':_0x4f7597('0x114f'),'countries':['RU']},{'name':_0x4f7597('0x2bd'),'utcOffset':0xb4,'offsetStr':_0x4f7597('0x114f'),'countries':['RU']},{'name':'Europe/Volgograd','utcOffset':0xb4,'offsetStr':_0x4f7597('0x114f'),'countries':['RU']},{'name':_0x4f7597('0x1a4f'),'utcOffset':0xf0,'offsetStr':_0x4f7597('0x8f4'),'countries':['RU']},{'name':'Asia/Yekaterinburg','utcOffset':0x12c,'offsetStr':'+05:00','countries':['RU']},{'name':_0x4f7597('0x955'),'utcOffset':0x168,'offsetStr':_0x4f7597('0x2266'),'countries':['RU']},{'name':_0x4f7597('0x4c5'),'utcOffset':0x168,'offsetStr':_0x4f7597('0x2266'),'countries':['RU']},{'name':_0x4f7597('0x133b'),'utcOffset':0x1a4,'offsetStr':_0x4f7597('0x857'),'countries':['RU']},{'name':'Asia/Krasnoyarsk','utcOffset':0x1a4,'offsetStr':_0x4f7597('0x857'),'countries':['RU']},{'name':_0x4f7597('0x1fc'),'utcOffset':0x1e0,'offsetStr':'+08:00','countries':['RU']},{'name':_0x4f7597('0x1668'),'utcOffset':0x1e0,'offsetStr':_0x4f7597('0x1390'),'countries':['RU']},{'name':_0x4f7597('0x2050'),'utcOffset':0x21c,'offsetStr':'+09:00','countries':['RU']},{'name':_0x4f7597('0x1bdf'),'utcOffset':0x21c,'offsetStr':_0x4f7597('0x957'),'countries':['RU']},{'name':_0x4f7597('0xd57'),'utcOffset':0x258,'offsetStr':_0x4f7597('0x908'),'countries':['RU']},{'name':'Asia/Sakhalin','utcOffset':0x258,'offsetStr':_0x4f7597('0x908'),'countries':['RU']},{'name':_0x4f7597('0x18c0'),'utcOffset':0x258,'offsetStr':_0x4f7597('0x908'),'countries':['RU']},{'name':_0x4f7597('0x26f7'),'utcOffset':0x258,'offsetStr':'+10:00','countries':['RU']},{'name':_0x4f7597('0xb37'),'utcOffset':0x294,'offsetStr':_0x4f7597('0x1244'),'countries':['RU']},{'name':_0x4f7597('0x1a6c'),'utcOffset':0x2d0,'offsetStr':_0x4f7597('0xa82'),'countries':['RU']},{'name':_0x4f7597('0x38b'),'utcOffset':0x2d0,'offsetStr':_0x4f7597('0xa82'),'countries':['RU']},{'name':_0x4f7597('0x12a7'),'utcOffset':0xb4,'offsetStr':'+03:00','countries':['SA','KW','YE']},{'name':_0x4f7597('0x2556'),'utcOffset':0x294,'offsetStr':_0x4f7597('0x1244'),'countries':['SB']},{'name':'Indian/Mahe','utcOffset':0xf0,'offsetStr':'+04:00','countries':['SC']},{'name':'Africa/Khartoum','utcOffset':0xb4,'offsetStr':_0x4f7597('0x114f'),'countries':['SD','SS']},{'name':_0x4f7597('0x285a'),'utcOffset':0x3c,'offsetStr':_0x4f7597('0x8e2'),'countries':['SE']},{'name':_0x4f7597('0x2138'),'utcOffset':0x1e0,'offsetStr':_0x4f7597('0x1390'),'countries':['SG']},{'name':_0x4f7597('0x1af2'),'utcOffset':-0xb4,'offsetStr':_0x4f7597('0x2ea'),'countries':['SR']},{'name':'America/El_Salvador','utcOffset':-0x168,'offsetStr':_0x4f7597('0x82f'),'countries':['SV']},{'name':_0x4f7597('0x14ba'),'utcOffset':0x78,'offsetStr':_0x4f7597('0x2141'),'countries':['SY']},{'name':_0x4f7597('0x4bb'),'utcOffset':-0xf0,'offsetStr':_0x4f7597('0x967'),'countries':['TC']},{'name':_0x4f7597('0x183'),'utcOffset':0x3c,'offsetStr':_0x4f7597('0x8e2'),'countries':['TD']},{'name':_0x4f7597('0x581'),'utcOffset':0x12c,'offsetStr':_0x4f7597('0x1de2'),'countries':['TF']},{'name':'Asia/Bangkok','utcOffset':0x1a4,'offsetStr':_0x4f7597('0x857'),'countries':['TH','KH','LA','VN']},{'name':_0x4f7597('0x1c9f'),'utcOffset':0x12c,'offsetStr':_0x4f7597('0x1de2'),'countries':['TJ']},{'name':_0x4f7597('0x166f'),'utcOffset':0x30c,'offsetStr':'+13:00','countries':['TK']},{'name':_0x4f7597('0x2337'),'utcOffset':0x21c,'offsetStr':_0x4f7597('0x957'),'countries':['TL']},{'name':_0x4f7597('0x935'),'utcOffset':0x12c,'offsetStr':'+05:00','countries':['TM']},{'name':_0x4f7597('0x9ce'),'utcOffset':0x3c,'offsetStr':'+01:00','countries':['TN']},{'name':_0x4f7597('0x1c50'),'utcOffset':0x30c,'offsetStr':_0x4f7597('0x1331'),'countries':['TO']},{'name':'Europe/Istanbul','utcOffset':0x78,'offsetStr':_0x4f7597('0x2141'),'countries':['TR']},{'name':'America/Port_of_Spain','utcOffset':-0xf0,'offsetStr':'-04:00','countries':['TT','AG','AI','BL','DM','GD','GP','KN','LC','MF','MS','VC','VG','VI']},{'name':_0x4f7597('0x239d'),'utcOffset':0x2d0,'offsetStr':_0x4f7597('0xa82'),'countries':['TV']},{'name':_0x4f7597('0x195e'),'utcOffset':0x1e0,'offsetStr':_0x4f7597('0x1390'),'countries':['TW']},{'name':_0x4f7597('0x1eb2'),'utcOffset':0x78,'offsetStr':_0x4f7597('0x2141'),'countries':['UA']},{'name':'Europe/Uzhgorod','utcOffset':0x78,'offsetStr':'+02:00','countries':['UA']},{'name':_0x4f7597('0x282c'),'utcOffset':0x78,'offsetStr':_0x4f7597('0x2141'),'countries':['UA']},{'name':_0x4f7597('0x2861'),'utcOffset':0x2d0,'offsetStr':'+12:00','countries':['UM']},{'name':_0x4f7597('0x2598'),'utcOffset':-0x12c,'offsetStr':_0x4f7597('0x2a0'),'countries':['US']},{'name':_0x4f7597('0xe14'),'utcOffset':-0x12c,'offsetStr':_0x4f7597('0x2a0'),'countries':['US']},{'name':_0x4f7597('0x203b'),'utcOffset':-0x12c,'offsetStr':_0x4f7597('0x2a0'),'countries':['US']},{'name':'America/Kentucky/Monticello','utcOffset':-0x12c,'offsetStr':'-05:00','countries':['US']},{'name':'America/Indiana/Indianapolis','utcOffset':-0x12c,'offsetStr':_0x4f7597('0x2a0'),'countries':['US']},{'name':_0x4f7597('0x2550'),'utcOffset':-0x12c,'offsetStr':_0x4f7597('0x2a0'),'countries':['US']},{'name':'America/Indiana/Winamac','utcOffset':-0x12c,'offsetStr':_0x4f7597('0x2a0'),'countries':['US']},{'name':_0x4f7597('0x1f97'),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['US']},{'name':'America/Indiana/Petersburg','utcOffset':-0x12c,'offsetStr':_0x4f7597('0x2a0'),'countries':['US']},{'name':_0x4f7597('0x1f7b'),'utcOffset':-0x12c,'offsetStr':_0x4f7597('0x2a0'),'countries':['US']},{'name':'America/Chicago','utcOffset':-0x168,'offsetStr':'-06:00','countries':['US']},{'name':_0x4f7597('0x12ee'),'utcOffset':-0x168,'offsetStr':_0x4f7597('0x82f'),'countries':['US']},{'name':_0x4f7597('0x1ffd'),'utcOffset':-0x168,'offsetStr':_0x4f7597('0x82f'),'countries':['US']},{'name':'America/Menominee','utcOffset':-0x168,'offsetStr':_0x4f7597('0x82f'),'countries':['US']},{'name':_0x4f7597('0x5aa'),'utcOffset':-0x168,'offsetStr':'-06:00','countries':['US']},{'name':_0x4f7597('0x320'),'utcOffset':-0x168,'offsetStr':_0x4f7597('0x82f'),'countries':['US']},{'name':_0x4f7597('0xf0e'),'utcOffset':-0x168,'offsetStr':_0x4f7597('0x82f'),'countries':['US']},{'name':_0x4f7597('0x231c'),'utcOffset':-0x1a4,'offsetStr':_0x4f7597('0x3e5'),'countries':['US']},{'name':_0x4f7597('0x12e8'),'utcOffset':-0x1a4,'offsetStr':_0x4f7597('0x3e5'),'countries':['US']},{'name':'America/Phoenix','utcOffset':-0x1a4,'offsetStr':'-07:00','countries':['US']},{'name':_0x4f7597('0x1eb3'),'utcOffset':-0x1e0,'offsetStr':_0x4f7597('0x8b1'),'countries':['US']},{'name':_0x4f7597('0x2454'),'utcOffset':-0x1e0,'offsetStr':_0x4f7597('0x8b1'),'countries':['US']},{'name':'America/Anchorage','utcOffset':-0x21c,'offsetStr':_0x4f7597('0x1e49'),'countries':['US']},{'name':_0x4f7597('0x1ee3'),'utcOffset':-0x21c,'offsetStr':_0x4f7597('0x1e49'),'countries':['US']},{'name':'America/Sitka','utcOffset':-0x21c,'offsetStr':_0x4f7597('0x1e49'),'countries':['US']},{'name':_0x4f7597('0x1c34'),'utcOffset':-0x21c,'offsetStr':_0x4f7597('0x1e49'),'countries':['US']},{'name':_0x4f7597('0x824'),'utcOffset':-0x21c,'offsetStr':_0x4f7597('0x1e49'),'countries':['US']},{'name':_0x4f7597('0x1d13'),'utcOffset':-0x258,'offsetStr':_0x4f7597('0x43b'),'countries':['US']},{'name':_0x4f7597('0x1eca'),'utcOffset':-0x258,'offsetStr':_0x4f7597('0x43b'),'countries':['US','UM']},{'name':_0x4f7597('0xbbb'),'utcOffset':-0xb4,'offsetStr':_0x4f7597('0x2ea'),'countries':['UY']},{'name':_0x4f7597('0x1a34'),'utcOffset':0x12c,'offsetStr':_0x4f7597('0x1de2'),'countries':['UZ']},{'name':_0x4f7597('0x113c'),'utcOffset':0x12c,'offsetStr':_0x4f7597('0x1de2'),'countries':['UZ']},{'name':_0x4f7597('0x1192'),'utcOffset':-0x10e,'offsetStr':'-04:30','countries':['VE']},{'name':_0x4f7597('0xfdc'),'utcOffset':0x1a4,'offsetStr':_0x4f7597('0x857'),'countries':['VN']},{'name':_0x4f7597('0x5ca'),'utcOffset':0x294,'offsetStr':_0x4f7597('0x1244'),'countries':['VU']},{'name':_0x4f7597('0x25e5'),'utcOffset':0x2d0,'offsetStr':_0x4f7597('0xa82'),'countries':['WF']},{'name':_0x4f7597('0x261b'),'utcOffset':0x348,'offsetStr':_0x4f7597('0x1b72'),'countries':['WS']},{'name':_0x4f7597('0x217d'),'utcOffset':0x78,'offsetStr':_0x4f7597('0x2141'),'countries':['ZA','LS','SZ']}];}],'templateUrl':_0x4e2e6f};}const _0x67f83=_0x2e1886;;function _0x1d38fe(){const _0x157fae=_0x21d0f5,_0x7b58a0=this;_0x7b58a0[_0x157fae('0xdb4')]=[],_0x7b58a0['filtered']=![],_0x7b58a0['fontSize']=0x14;function _0x5dd9a4(_0x3f221b){const _0x1fd60f=_0x157fae;let _0x2f5dd1=0x0;if(_0x3f221b){_0x7b58a0['fontSize']=_0x3f221b[_0x1fd60f('0x1ccd')][0x2]&&_0x3f221b[_0x1fd60f('0x1ccd')][0x2][_0x1fd60f('0x10cc')]?parseInt(_0x3f221b[_0x1fd60f('0x1ccd')][0x2]['value'])-parseInt(_0x3f221b['attrs'][0x2][_0x1fd60f('0x10cc')])%0x2:0x14;_0x3f221b[_0x1fd60f('0x1ccd')][0x1][_0x1fd60f('0x10cc')]&&_0x3f221b[_0x1fd60f('0x1ccd')][0x1][_0x1fd60f('0x10cc')]['length']?(_0x7b58a0[_0x1fd60f('0x2093')]=!![],_0x7b58a0[_0x1fd60f('0xdb4')]=_0x36f548()[_0x1fd60f('0x2257')](_0x3f221b[_0x1fd60f('0x6c1')],_0x3f221b[_0x1fd60f('0x1ccd')][0x1][_0x1fd60f('0x10cc')])):(_0x7b58a0[_0x1fd60f('0x2093')]=![],_0x7b58a0[_0x1fd60f('0xdb4')]=_0x3f221b[_0x1fd60f('0x6c1')]);for(let _0x494057=0x0;_0x494057<_0x3f221b[_0x1fd60f('0x1b52')][_0x1fd60f('0x19b2')][_0x1fd60f('0x1e22')];_0x494057+=0x1){_0x36f548()[_0x1fd60f('0x55a')](_0x7b58a0[_0x1fd60f('0xdb4')],_0x3f221b['voiceQueues']['rows'][_0x494057]['id'])&&(_0x2f5dd1+=_0x3f221b[_0x1fd60f('0x1b52')][_0x1fd60f('0x19b2')][_0x494057][_0x3f221b['attrs'][0x0][_0x1fd60f('0x10cc')]]?parseInt(_0x3f221b[_0x1fd60f('0x1b52')][_0x1fd60f('0x19b2')][_0x494057][_0x3f221b[_0x1fd60f('0x1ccd')][0x0]['value']]):0x0);}}return _0x2f5dd1;}_0x7b58a0[_0x157fae('0x1aa3')]=_0x5dd9a4;}const _0x36d130=_0x1d38fe;_0x157098['$inject']=[_0x21d0f5('0xb6b')];function _0x157098(_0x43c0a6){const _0x28e391=_0x21d0f5,_0x255645=this;_0x255645[_0x28e391('0xdb4')]=[],_0x255645[_0x28e391('0x2093')]=![],_0x255645['properties']=[],_0x255645[_0x28e391('0x351')]={'labels':[_0x28e391('0x2ae')],'series':[_0x28e391('0x2604')],'data':[[0x32]],'options':{'responsive':!![],'legend':{'display':!![],'fontColor':_0x28e391('0x1690')},'scales':{'xAxes':[{'gridLines':{'display':!![]},'ticks':{'fontColor':_0x28e391('0x1690'),'stepSize':0x1,'beginAtZero':!![]}}],'yAxes':[{'gridLines':{'display':![]},'ticks':{'fontColor':_0x28e391('0x1690')}}]}}};function _0x4da9f3(_0x4de3eb){const _0xbe42fb=_0x28e391;_0x255645[_0xbe42fb('0x371')]=_0x36f548()['map'](_0x36f548()[_0xbe42fb('0xdb4')](_0x4de3eb['attrs'],function(_0x36a1d6){const _0x224e40=_0xbe42fb;return _0x36a1d6[_0x224e40('0x1909')]&&_0x36a1d6['name'][_0x224e40('0x203c')](_0x224e40('0x212'))>=0x0&&_0x36a1d6[_0x224e40('0x10cc')]&&_0x36a1d6[_0x224e40('0x10cc')]!=='null';}),_0xbe42fb('0x10cc'));_0x4de3eb[_0xbe42fb('0x1ccd')][0x3][_0xbe42fb('0x10cc')]&&_0x4de3eb[_0xbe42fb('0x1ccd')][0x3][_0xbe42fb('0x10cc')][_0xbe42fb('0x1e22')]?(_0x255645[_0xbe42fb('0x2093')]=!![],_0x255645[_0xbe42fb('0xdb4')]=_0x36f548()[_0xbe42fb('0x2257')](_0x4de3eb[_0xbe42fb('0x6c1')],_0x4de3eb[_0xbe42fb('0x1ccd')][0x3][_0xbe42fb('0x10cc')])):(_0x255645['filtered']=![],_0x255645[_0xbe42fb('0xdb4')]=_0x4de3eb[_0xbe42fb('0x6c1')]);if(_0x255645[_0xbe42fb('0x351')][_0xbe42fb('0x7c7')][_0xbe42fb('0x1e22')]>_0x255645[_0xbe42fb('0x371')]['length']){const _0x5c7115=_0x255645['multiBarChart'][_0xbe42fb('0x7c7')]['length']-_0x255645[_0xbe42fb('0x371')]['length'];_0x255645[_0xbe42fb('0x351')]['series'][_0xbe42fb('0x1ae')](0x0,_0x5c7115),_0x255645['multiBarChart']['data'][_0xbe42fb('0x1ae')](0x0,_0x5c7115);}for(let _0x487f13=0x0;_0x487f13<_0x255645['properties'][_0xbe42fb('0x1e22')];_0x487f13+=0x1){_0x255645[_0xbe42fb('0x351')]['series'][_0x487f13]=_0x43c0a6['instant'](_0xbe42fb('0x12e4')+_0x255645[_0xbe42fb('0x371')][_0x487f13]['toUpperCase']());_0x36f548()[_0xbe42fb('0x1a80')](_0x255645[_0xbe42fb('0x351')]['data'][_0x487f13])&&(_0x255645[_0xbe42fb('0x351')][_0xbe42fb('0x4e8')][_0x487f13]=[]);if(_0x255645[_0xbe42fb('0x351')][_0xbe42fb('0x27d5')]['length']>_0x255645[_0xbe42fb('0xdb4')]['length']){const _0x1835c6=_0x255645['multiBarChart'][_0xbe42fb('0x27d5')][_0xbe42fb('0x1e22')]-_0x255645[_0xbe42fb('0xdb4')]['length'];_0x255645[_0xbe42fb('0x351')]['labels'][_0xbe42fb('0x1ae')](0x0,_0x1835c6),_0x255645[_0xbe42fb('0x351')][_0xbe42fb('0x4e8')][_0x487f13][_0xbe42fb('0x1ae')](0x0,_0x1835c6);}for(let _0x373a3f=0x0,_0x49e69c=0x0;_0x373a3f<_0x4de3eb[_0xbe42fb('0x1b52')][_0xbe42fb('0x19b2')][_0xbe42fb('0x1e22')];_0x373a3f+=0x1){_0x36f548()[_0xbe42fb('0x55a')](_0x255645['filter'],_0x4de3eb['voiceQueues'][_0xbe42fb('0x19b2')][_0x373a3f]['id'])&&(_0x255645[_0xbe42fb('0x351')][_0xbe42fb('0x27d5')][_0x49e69c]=_0x4de3eb[_0xbe42fb('0x1b52')][_0xbe42fb('0x19b2')][_0x373a3f][_0xbe42fb('0x1909')],_0x255645[_0xbe42fb('0x351')][_0xbe42fb('0x4e8')][_0x487f13][_0x49e69c]=_0x4de3eb[_0xbe42fb('0x1b52')][_0xbe42fb('0x19b2')][_0x373a3f][_0x255645[_0xbe42fb('0x371')][_0x487f13]]?parseInt(_0x4de3eb[_0xbe42fb('0x1b52')][_0xbe42fb('0x19b2')][_0x373a3f][_0x255645[_0xbe42fb('0x371')][_0x487f13]]):0x0,_0x49e69c+=0x1);}}}function _0x5312b3(_0x531cbb){const _0x1ece1a=_0x28e391;_0x255645[_0x1ece1a('0x351')][_0x1ece1a('0x249a')][_0x1ece1a('0x2323')][_0x1ece1a('0x85b')]=_0x531cbb[_0x1ece1a('0x13f1')];for(let _0x12626a=0x0;_0x12626a<_0x255645[_0x1ece1a('0x351')][_0x1ece1a('0x249a')][_0x1ece1a('0x1c46')][_0x1ece1a('0x992')][_0x1ece1a('0x1e22')];_0x12626a+=0x1){_0x255645['multiBarChart']['options'][_0x1ece1a('0x1c46')][_0x1ece1a('0x992')][_0x12626a][_0x1ece1a('0x1ac0')]['fontColor']=_0x531cbb[_0x1ece1a('0x13f1')];}for(let _0x369493=0x0;_0x369493<_0x255645[_0x1ece1a('0x351')][_0x1ece1a('0x249a')]['scales'][_0x1ece1a('0xee6')][_0x1ece1a('0x1e22')];_0x369493+=0x1){_0x255645[_0x1ece1a('0x351')]['options'][_0x1ece1a('0x1c46')]['yAxes'][_0x369493][_0x1ece1a('0x1ac0')][_0x1ece1a('0x85b')]=_0x531cbb[_0x1ece1a('0x13f1')];}}function _0x5efa89(_0x2b312f){const _0x1eda06=_0x28e391;_0x2b312f&&(_0x2b312f[_0x1eda06('0x1ccd')]&&_0x4da9f3(_0x2b312f),_0x2b312f[_0x1eda06('0x13f1')]&&_0x5312b3(_0x2b312f));}_0x255645[_0x28e391('0xb51')]=_0x5efa89;}const _0x59d4fb=_0x157098;_0x5c0963[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0xb6b')];function _0x5c0963(_0x24c4e9){const _0x100544=_0x21d0f5,_0x46190e=this;_0x46190e['filter']=[],_0x46190e[_0x100544('0x2093')]=![],_0x46190e[_0x100544('0x371')]=[],_0x46190e[_0x100544('0x630')]={'labels':[_0x100544('0x1615')],'data':[0x1e],'options':{'responsive':!![],'legend':{'display':!![]}}};function _0x503c6b(_0x241c93){const _0x25dce3=_0x100544;_0x46190e[_0x25dce3('0x371')]=_0x36f548()[_0x25dce3('0x2171')](_0x36f548()[_0x25dce3('0xdb4')](_0x241c93[_0x25dce3('0x1ccd')],function(_0x1ad8a9){const _0x35d0da=_0x25dce3;return _0x1ad8a9[_0x35d0da('0x1909')]&&_0x1ad8a9[_0x35d0da('0x1909')]['indexOf']('attrSerie')>=0x0&&_0x1ad8a9['value']&&_0x1ad8a9[_0x35d0da('0x10cc')]!=='null';}),_0x25dce3('0x10cc'));_0x241c93[_0x25dce3('0x1ccd')][0x3]['value']&&_0x241c93['attrs'][0x3]['value']['length']?(_0x46190e[_0x25dce3('0x2093')]=!![],_0x46190e['filter']=_0x36f548()[_0x25dce3('0x2257')](_0x241c93[_0x25dce3('0x6c1')],_0x241c93[_0x25dce3('0x1ccd')][0x3][_0x25dce3('0x10cc')])):(_0x46190e[_0x25dce3('0x2093')]=![],_0x46190e[_0x25dce3('0xdb4')]=_0x241c93[_0x25dce3('0x6c1')]);if(_0x46190e[_0x25dce3('0x630')]['labels'][_0x25dce3('0x1e22')]>_0x46190e[_0x25dce3('0x371')][_0x25dce3('0x1e22')]){const _0x489055=_0x46190e[_0x25dce3('0x630')][_0x25dce3('0x27d5')]['length']-_0x46190e[_0x25dce3('0x371')][_0x25dce3('0x1e22')];_0x46190e['pieChart'][_0x25dce3('0x27d5')][_0x25dce3('0x1ae')](0x0,_0x489055),_0x46190e[_0x25dce3('0x630')][_0x25dce3('0x4e8')][_0x25dce3('0x1ae')](0x0,_0x489055);}for(let _0x1cc4f2=0x0,_0x25f4cd=0x0;_0x1cc4f2<_0x46190e[_0x25dce3('0x371')][_0x25dce3('0x1e22')];_0x1cc4f2+=0x1){_0x46190e[_0x25dce3('0x630')][_0x25dce3('0x27d5')][_0x1cc4f2]=_0x24c4e9[_0x25dce3('0x10c2')](_0x25dce3('0x12e4')+_0x46190e[_0x25dce3('0x371')][_0x1cc4f2][_0x25dce3('0xa6f')]());for(let _0x235b19=0x0;_0x235b19<_0x241c93[_0x25dce3('0x1b52')][_0x25dce3('0x19b2')][_0x25dce3('0x1e22')];_0x235b19+=0x1){_0x36f548()[_0x25dce3('0x55a')](_0x46190e[_0x25dce3('0xdb4')],_0x241c93[_0x25dce3('0x1b52')][_0x25dce3('0x19b2')][_0x235b19]['id'])&&(_0x25f4cd+=_0x241c93[_0x25dce3('0x1b52')][_0x25dce3('0x19b2')][_0x235b19][_0x46190e[_0x25dce3('0x371')][_0x1cc4f2]]?parseInt(_0x241c93[_0x25dce3('0x1b52')]['rows'][_0x235b19][_0x46190e[_0x25dce3('0x371')][_0x1cc4f2]]):0x0);}_0x46190e[_0x25dce3('0x630')][_0x25dce3('0x4e8')][_0x1cc4f2]=_0x25f4cd,_0x25f4cd=0x0;}}function _0x47bf30(_0x4ed14f){const _0x4dade=_0x100544;_0x46190e['pieChart'][_0x4dade('0x249a')][_0x4dade('0x2323')][_0x4dade('0x85b')]=_0x4ed14f['foreground'];}function _0x1800ac(_0xa62601){const _0x39481a=_0x100544;_0xa62601&&(_0xa62601['attrs']&&_0x503c6b(_0xa62601),_0xa62601[_0x39481a('0x13f1')]&&_0x47bf30(_0xa62601));}_0x46190e[_0x100544('0xcee')]=_0x1800ac;}const _0x282388=_0x5c0963;_0x1f0ef9[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0x17f5'),_0x21d0f5('0x1fd'),_0x21d0f5('0x12a5')];function _0x1f0ef9(_0x2f2215,_0x381d0f,_0x81529a,_0x1470ca){const _0x433c99=_0x21d0f5,_0x57ef93=this;_0x57ef93[_0x433c99('0x2468')]=0x0,_0x57ef93[_0x433c99('0x15a1')]=0x0,_0x57ef93[_0x433c99('0x134b')]='',_0x57ef93[_0x433c99('0x13c6')]=[],_0x57ef93['results']={'rows':[],'count':0x0},_0x57ef93[_0x433c99('0x1f2a')]={'limit':0xa,'page':0x1,'startDate':_0x57d4d1()()[_0x433c99('0x2655')](_0x433c99('0x2161'))[_0x433c99('0x1826')](_0x433c99('0xfae')),'endDate':_0x57d4d1()()[_0x433c99('0x2ba')](_0x433c99('0x2161'))[_0x433c99('0x1826')](_0x433c99('0xfae')),'output':_0x433c99('0x424')},_0x57ef93[_0x433c99('0x277c')]=_0x6398,_0x57ef93[_0x433c99('0x199e')]=_0x13ee87,_0x57ef93['valueReplacer']=_0x3b6c46;function _0x6398(_0x53b401){const _0x375bcd=_0x433c99;_0x53b401&&(_0x53b401['attrs']&&(_0x53b401[_0x375bcd('0x1ccd')][0x0]&&_0x53b401[_0x375bcd('0x1ccd')][0x0][_0x375bcd('0x10cc')]&&(_0x57ef93[_0x375bcd('0x1f2a')]['id']=_0x53b401[_0x375bcd('0x1ccd')][0x0][_0x375bcd('0x10cc')],_0x1470ca[_0x375bcd('0x15ad')][_0x375bcd('0xbaa')]({'fields':_0x375bcd('0x1c53'),'nolimit':!![],'DefaultReportId':_0x53b401[_0x375bcd('0x1ccd')][0x0][_0x375bcd('0x19fd')]==='default'?_0x53b401[_0x375bcd('0x1ccd')][0x0]['value']:undefined,'CustomReportId':_0x53b401['attrs'][0x0][_0x375bcd('0x19fd')]===_0x375bcd('0xa8d')?_0x53b401[_0x375bcd('0x1ccd')][0x0][_0x375bcd('0x10cc')]:undefined})[_0x375bcd('0x1549')][_0x375bcd('0x11bf')](function(_0x123401){const _0x574487=_0x375bcd;_0x123401&&_0x123401[_0x574487('0x19b2')]&&(_0x57ef93['columns']=_0x123401['rows']);switch(_0x53b401[_0x574487('0x1ccd')][0x0]['type']){case _0x574487('0xb2f'):_0x57ef93[_0x574487('0x1aff')]=_0x574487('0x19f4');break;case _0x574487('0xa8d'):_0x57ef93[_0x574487('0x1aff')]=_0x574487('0x13ee');break;}return _0x1470ca[_0x57ef93[_0x574487('0x1aff')]][_0x574487('0xbaa')]({'id':_0x53b401['attrs'][0x0]['value'],'fields':_0x574487('0x721')})[_0x574487('0x1549')];})[_0x375bcd('0x11bf')](function(_0x4a3038){const _0x545c52=_0x375bcd;_0x4a3038&&_0x4a3038['name']&&(_0x57ef93[_0x545c52('0x134b')]=_0x4a3038['name']),_0x13ee87();})[_0x375bcd('0x151d')](function(_0x184a25){const _0x21cba5=_0x375bcd;console[_0x21cba5('0xc78')](_0x184a25);})),_0x53b401[_0x375bcd('0x1ccd')][0x1]&&_0x53b401['attrs'][0x1]['value']&&(_0x57ef93['refresh']=parseInt(_0x53b401[_0x375bcd('0x1ccd')][0x1]['value']),!_0x36f548()[_0x375bcd('0x74f')](_0x57ef93['refresh'])&&_0x57ef93[_0x375bcd('0x15a1')]>0x0?(_0x57ef93[_0x375bcd('0x2468')]=parseInt(_0x53b401[_0x375bcd('0x1ccd')][0x1][_0x375bcd('0x10cc')]),_0x57ef93[_0x375bcd('0x507')]=_0x81529a(function(){_0x57ef93['countDown']-=0x1;},0x3e8,0x0),_0x57ef93[_0x375bcd('0xfbe')]=_0x381d0f(function(){const _0x295637=_0x375bcd;_0x57ef93[_0x295637('0x507')]&&_0x81529a[_0x295637('0x26c9')](_0x57ef93['interval']),_0x6398(_0x53b401);},_0x57ef93[_0x375bcd('0x15a1')]*0x3e8)):(_0x57ef93['interval']&&_0x81529a[_0x375bcd('0x26c9')](_0x57ef93[_0x375bcd('0x507')]),_0x57ef93[_0x375bcd('0xfbe')]&&_0x381d0f['cancel'](_0x57ef93[_0x375bcd('0xfbe')])))));}function _0x2f046(_0xa84014){const _0x2a519d=_0x433c99;_0x57ef93[_0x2a519d('0x819')]=_0xa84014||{'count':0x0,'rows':[]};}function _0x13ee87(){const _0x240734=_0x433c99;_0x57ef93[_0x240734('0x1f2a')][_0x240734('0x1393')]=(_0x57ef93['query'][_0x240734('0x1c2')]-0x1)*_0x57ef93[_0x240734('0x1f2a')][_0x240734('0xd5c')],_0x57ef93[_0x240734('0x13f')]=_0x1470ca[_0x57ef93[_0x240734('0x1aff')]][_0x240734('0x237a')](_0x57ef93[_0x240734('0x1f2a')],_0x2f046)[_0x240734('0x1549')];}function _0x3b6c46(_0x1326b2,_0x38fd9a){const _0x1eab2=_0x433c99;return _0x57d4d1()(_0x38fd9a,_0x1eab2('0x1b1e'),!![])[_0x1eab2('0xde9')]()&&(_0x38fd9a=_0x57d4d1()(_0x38fd9a,'')[_0x1eab2('0x1826')](_0x1eab2('0xfae'))),_0x38fd9a;}_0x2f2215[_0x433c99('0x12d8')](_0x433c99('0x4f7'),function(){const _0x242e8e=_0x433c99;_0x57ef93[_0x242e8e('0x507')]&&_0x81529a[_0x242e8e('0x26c9')](_0x57ef93['interval']),_0x57ef93[_0x242e8e('0xfbe')]&&_0x381d0f[_0x242e8e('0x26c9')](_0x57ef93[_0x242e8e('0xfbe')]);});}const _0x5bc71f=_0x1f0ef9,_0x1c6aa1=_0x351988['p']+_0x21d0f5('0x89');_0x47c05e[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1ca2'),_0x21d0f5('0x1dbf')];function _0x47c05e(_0x4546d3,_0x227540){const _0x39be88=_0x21d0f5,_0x693f2a=this;function _0x205ea9(_0x396de5){const _0x5e1dd9=a0_0xaf0c;return _0x227540[_0x5e1dd9('0xaa8')](_0x396de5);}_0x693f2a[_0x39be88('0x9ad')]=_0x205ea9;}function _0x38db49(){const _0x381871=_0x21d0f5;return{'restrict':'E','scope':{'config':'=?','onEdit':'&?','onDelete':'&?'},'require':_0x381871('0x4ca'),'controller':_0x381871('0x1a0b'),'controllerAs':'vm','bindToController':!![],'templateUrl':_0x1c6aa1};}_0xe7979a['$inject']=['$scope',_0x21d0f5('0x149f')];function _0xe7979a(_0x11a5a1,_0x51c576){const _0x27949a=_0x21d0f5,_0x20a307=this;_0x20a307[_0x27949a('0x17ab')]=![];function _0x4c3a9c(){const _0x19c496=_0x27949a;return angular['isDefined'](_0x11a5a1[_0x19c496('0x18ef')])&&_0x11a5a1[_0x19c496('0x18ef')]===!![];}function _0x52a63e(){const _0xd8f2ee=_0x27949a;if(!_0x4c3a9c())return;_0x20a307[_0xd8f2ee('0x17ab')]=!_0x20a307[_0xd8f2ee('0x17ab')],_0x51c576[_0xd8f2ee('0x1436')](_0xd8f2ee('0x17ab'),_0x20a307[_0xd8f2ee('0x17ab')]);}_0x20a307[_0x27949a('0x2520')]=_0x52a63e;}function _0x3891c3(){return{'restrict':'E','scope':{'flippable':'=?'},'controller':'MsWidgetController','transclude':!![],'compile':function(_0x19426b){const _0x4d249c=a0_0xaf0c;return _0x19426b[_0x4d249c('0x16d8')](_0x4d249c('0xb')),function _0x2880aa(_0x99e293,_0x98543d,_0x11ab04,_0x5b8fbb,_0x249d73){_0x249d73(function(_0x3ef217){const _0x4f6d19=a0_0xaf0c;_0x98543d[_0x4f6d19('0xaf4')](),_0x98543d[_0x4f6d19('0x155a')](_0x3ef217);});};}};}function _0x533d35(){const _0xda49dc=_0x21d0f5;return{'restrict':'E','require':_0xda49dc('0x4'),'transclude':!![],'compile':function(_0x358ea8){const _0x2649d5=_0xda49dc;return _0x358ea8[_0x2649d5('0x16d8')]('ms-widget-front'),function _0xddc645(_0x4f4419,_0x3e04dc,_0xa7f613,_0x236dea,_0x181bf7){const _0x10a174=_0x2649d5;_0x181bf7(function(_0x410247){const _0x182a92=a0_0xaf0c;_0x3e04dc[_0x182a92('0xaf4')](),_0x3e04dc[_0x182a92('0x155a')](_0x410247);}),_0x4f4419['flipWidget']=_0x236dea[_0x10a174('0x2520')];};}};}function _0x4e9315(){return{'restrict':'E','require':'^msWidget','transclude':!![],'compile':function(_0x6f809f){const _0x3802e3=a0_0xaf0c;return _0x6f809f['addClass'](_0x3802e3('0xb4d')),function _0x334794(_0x30ac79,_0x2a09cb,_0x51c396,_0x3dad58,_0x2ec008){_0x2ec008(function(_0x3021ea){const _0x58c716=a0_0xaf0c;_0x2a09cb[_0x58c716('0xaf4')](),_0x2a09cb[_0x58c716('0x155a')](_0x3021ea);}),_0x30ac79['flipWidget']=_0x3dad58['flip'];};}};};const _0x507f19=[[_0x21d0f5('0x10df'),_0xbd5d23,_0x21d0f5('0x2544')],['hljs',_0xc6c838,_0x21d0f5('0x2544')],[_0x21d0f5('0x1ee7'),_0x4487d8,_0x21d0f5('0x2544')],[_0x21d0f5('0x2522'),_0x350015,'directive'],['msChipColor',_0x5b1dbf,_0x21d0f5('0x2544')],[_0x21d0f5('0x6fc'),_0x287494,'directive'],[_0x21d0f5('0x19a'),_0x81d963,_0x21d0f5('0x10e5')],[_0x21d0f5('0x2371'),_0x5258a9,_0x21d0f5('0x2544')],[_0x21d0f5('0x18c3'),_0x45f3bb,_0x21d0f5('0x2544')],[_0x21d0f5('0x240e'),_0xf815ab,_0x21d0f5('0x2544')],['msEmojiArea',_0x4ec7eb,_0x21d0f5('0x2544')],[_0x21d0f5('0x2d6'),_0x443445,_0x21d0f5('0x2544')],[_0x21d0f5('0x111a'),_0x4487b6,_0x21d0f5('0x23eb')],[_0x21d0f5('0x112'),_0x26e3a6,_0x21d0f5('0x2544')],[_0x21d0f5('0x133a'),_0x3e7a80,_0x21d0f5('0x2544')],[_0x21d0f5('0x13b3'),_0x5e1033,_0x21d0f5('0x2544')],[_0x21d0f5('0x231'),_0x2a9c3a,'controller'],[_0x21d0f5('0x2551'),_0x3b9251,'directive'],[_0x21d0f5('0x1114'),_0x27c324,'directive'],[_0x21d0f5('0x1dc6'),_0x85e31e,'controller'],[_0x21d0f5('0x15fa'),_0x5f043b,_0x21d0f5('0x2544')],[_0x21d0f5('0x2084'),_0x136ecd,_0x21d0f5('0x2729')],[_0x21d0f5('0xe47'),_0x48f578,_0x21d0f5('0x2544')],[_0x21d0f5('0xf89'),_0x1c0c66,_0x21d0f5('0x23eb')],['msNav',_0x4bcdc3,_0x21d0f5('0x2544')],['msNavTitle',_0x226e6d,_0x21d0f5('0x2544')],['msNavButton',_0x395f6e,'directive'],[_0x21d0f5('0xcb2'),_0x26f531,_0x21d0f5('0x2544')],[_0x21d0f5('0x1713'),_0x4e31b2,'provider'],[_0x21d0f5('0x1303'),_0x2fc35c,'controller'],[_0x21d0f5('0x568'),_0x17b1ba,_0x21d0f5('0x2544')],[_0x21d0f5('0x1569'),_0x5b125e,_0x21d0f5('0x23eb')],[_0x21d0f5('0x22ea'),_0x234071,_0x21d0f5('0x2544')],[_0x21d0f5('0xfe3'),_0x31572e,'directive'],['msNavigationHorizontal',_0x5eb7a5,'directive'],['MsNavigationHorizontalNodeController',_0x2c41e0,_0x21d0f5('0x23eb')],[_0x21d0f5('0x1ee'),_0x5862ab,_0x21d0f5('0x2544')],[_0x21d0f5('0xb2b'),_0x432464,_0x21d0f5('0x2544')],['MsPhonebarController',_0x25324b,_0x21d0f5('0x23eb')],['msPhonebar',_0x122cf6,_0x21d0f5('0x2544')],['PrefixDialogController',_0x1968b4,_0x21d0f5('0x23eb')],[_0x21d0f5('0xdce'),_0x2bfc9b,_0x21d0f5('0x2544')],[_0x21d0f5('0x1867'),_0xb46608,'controller'],[_0x21d0f5('0xb58'),_0xdded5,_0x21d0f5('0x23eb')],[_0x21d0f5('0x225'),_0x2499d9,_0x21d0f5('0x23eb')],[_0x21d0f5('0x116f'),_0x4d8966,_0x21d0f5('0x2544')],[_0x21d0f5('0x1531'),_0x2a6ac4,_0x21d0f5('0x2729')],[_0x21d0f5('0x35d'),_0x479172,_0x21d0f5('0x2544')],[_0x21d0f5('0x1523'),_0x4c7626,_0x21d0f5('0x2544')],['msResponsiveTable',_0x3ead1a,_0x21d0f5('0x2544')],[_0x21d0f5('0x1f1'),_0xaf25dd,'provider'],[_0x21d0f5('0x1e78'),_0xa9e2ed,_0x21d0f5('0x2544')],['MsSearchBarController',_0x13ae57,'controller'],['msSearchBar',_0x10b7cf,_0x21d0f5('0x2544')],['MsShortcutsController',_0x155c10,_0x21d0f5('0x23eb')],['msShortcuts',_0xcb7431,'directive'],['msSidenavHelper',_0x485a31,_0x21d0f5('0x2544')],['msSplashScreen',_0x37838a,_0x21d0f5('0x2544')],[_0x21d0f5('0x25c9'),_0x514083,'controller'],[_0x21d0f5('0x976'),_0x2322ac,_0x21d0f5('0x2544')],[_0x21d0f5('0x1b1f'),_0x344279,_0x21d0f5('0x2544')],[_0x21d0f5('0x2289'),_0x46643b,_0x21d0f5('0x2544')],['msVerticalStepperStep',_0x15b5ca,'directive'],[_0x21d0f5('0x64a'),_0x4e51a2,_0x21d0f5('0x23eb')],[_0x21d0f5('0x18e1'),_0x4877d0,'directive'],[_0x21d0f5('0x1725'),_0x428fd6,_0x21d0f5('0x23eb')],[_0x21d0f5('0x1d75'),_0x27dee6,'directive'],[_0x21d0f5('0xa1'),_0x4f8e12,'directive'],[_0x21d0f5('0x2ab'),_0x57e9b5,_0x21d0f5('0x23eb')],[_0x21d0f5('0xb0a'),_0x265c15,_0x21d0f5('0x2544')],[_0x21d0f5('0xd79'),_0x67f83,_0x21d0f5('0x2544')],[_0x21d0f5('0x1cde'),_0x36d130,'controller'],[_0x21d0f5('0x25f7'),_0x59d4fb,_0x21d0f5('0x23eb')],['MsWidgetEnginePieChartController',_0x282388,'controller'],['MsWidgetEngineWebReportController',_0x5bc71f,'controller'],['MsWidgetEngineController',_0x47c05e,_0x21d0f5('0x23eb')],['msWidgetEngine',_0x38db49,_0x21d0f5('0x2544')],['MsWidgetController',_0xe7979a,'controller'],[_0x21d0f5('0xfb0'),_0x3891c3,_0x21d0f5('0x2544')],['msWidgetFront',_0x533d35,_0x21d0f5('0x2544')],[_0x21d0f5('0x39'),_0x4e9315,_0x21d0f5('0x2544')]],_0x4f2169=_0x507f19;_0x5ed868[_0x21d0f5('0x1e9a')]=['$q',_0x21d0f5('0xb6b')];function _0x5ed868(_0x13feb6,_0x1558ba){function _0xea3b9a(_0xd0f80e){let _0x392fa0;return _0x13feb6(function(_0x4b2b16){const _0x19225b=a0_0xaf0c;try{if(_0x36f548()[_0x19225b('0x1fc5')](_0xd0f80e[_0x19225b('0x8f8')]))_0x392fa0=_0x1558ba[_0x19225b('0x10c2')]('DASHBOARDS.NONE');else{if(_0x36f548()[_0x19225b('0x1fc5')](_0xd0f80e[_0x19225b('0xe58')]))_0x392fa0=_0xd0f80e[_0x19225b('0x1772')]?_0x1558ba[_0x19225b('0x10c2')](_0xd0f80e[_0x19225b('0x1772')]):_0x1558ba[_0x19225b('0x10c2')]('DASHBOARDS.CHOOSE');else{if(_0xd0f80e[_0x19225b('0xe58')][_0x19225b('0x1e22')]===_0xd0f80e['resources'][_0x19225b('0x1e22')])_0x392fa0=_0x1558ba['instant'](_0x19225b('0x211a'));else{const _0x363995=_0xd0f80e[_0x19225b('0x1100')]||'id';_0x392fa0=_0x36f548()(_0xd0f80e['resources'])['filter'](function(_0x178abc){const _0x39a3ba=_0x19225b;return _0x36f548()[_0x39a3ba('0x55a')](_0xd0f80e[_0x39a3ba('0xe58')],_0x178abc[_0x363995]);})[_0x19225b('0x2171')](_0x19225b('0x1909'))[_0x19225b('0x10cc')]()['join'](',\x20');}}}_0x4b2b16(_0x392fa0);}catch(_0x3810db){console[_0x19225b('0xc78')](_0x19225b('0x1c92'),_0x3810db),_0x4b2b16(null);}});}const _0xec612a={'setPlaceholder':_0xea3b9a};return _0xec612a;}const _0x4e7fc0=_0x5ed868;;function _0x147f52(){return function(_0xef0f66){const _0x588faf=a0_0xaf0c,_0x2783a2=Date[_0x588faf('0x1f45')]()-new Date(_0xef0f66);if(_0x2783a2<0x3c*0x3c*0x3e8)return _0x57d4d1()(_0xef0f66)[_0x588faf('0x255e')]();else{if(_0x2783a2<0x3c*0x3c*0x18*0x3e8)return _0x57d4d1()(_0xef0f66)[_0x588faf('0x1826')](_0x588faf('0x1786'));else return _0x2783a2<0x3c*0x3c*0x18*0x7*0x3e8?_0x57d4d1()(_0xef0f66)['format'](_0x588faf('0x7d')):_0x57d4d1()(_0xef0f66)[_0x588faf('0x2681')]();}};}const _0x426cae=_0x147f52;_0x395dd7[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1dbf')];function _0x395dd7(_0x3d40df){return function(_0x104091){const _0x35c0ec=a0_0xaf0c;return _0x3d40df[_0x35c0ec('0x1e20')](_0x104091);};}function _0x187d29(){return function(_0x3b17b1){const _0x84a76a=a0_0xaf0c;return String(_0x3b17b1)[_0x84a76a('0x814')](/<[^>]+>/gm,'');};}function _0x4504a1(){return function(_0x127264){const _0x3df143=a0_0xaf0c;return!_0x127264?'':_0x127264[_0x3df143('0x814')](/ /g,'');};}function _0xec78db(){return function(_0x147a9f){const _0x4260ae=a0_0xaf0c;if(!_0x147a9f)return;if(_0x147a9f[_0x4260ae('0x19fd')]==='directive')return _0x147a9f[_0x4260ae('0x1909')][_0x4260ae('0x814')](/([A-Z])/g,function(_0x594b79){const _0x4c2bd=_0x4260ae;return'-'+_0x594b79[_0x4c2bd('0x20d5')]();});return _0x147a9f[_0x4260ae('0x1811')]||_0x147a9f['name'];};};function _0x38e238(){return function(_0x48e09b){const _0x20c08d=a0_0xaf0c;if(!_0x48e09b)return'';return _0x36f548()[_0x20c08d('0x22c2')](_0x48e09b);};}const _0x428afc=_0x38e238;function _0x75ec3a(){return function(_0x526997,_0x2a9986){const _0x526791=a0_0xaf0c;if(_0x526997[_0x526791('0x1e22')]===0x0||!_0x2a9986)return _0x526997;if(_0x2a9986[_0x526791('0x1e22')]===0x0)return[];const _0x593f71=[];for(let _0x42e378=0x0;_0x42e378<_0x526997[_0x526791('0x1e22')];_0x42e378++){const _0x50f6ca=_0x526997[_0x42e378];let _0x3c390b=![];for(let _0x5e8480=0x0;_0x5e8480<_0x2a9986[_0x526791('0x1e22')];_0x5e8480++){const _0xb783f3=_0x2a9986[_0x5e8480];if(_0x50f6ca['id']===_0xb783f3){_0x3c390b=!![];break;}}_0x3c390b&&_0x593f71[_0x526791('0x105d')](_0x50f6ca);}return _0x593f71;};}const _0x48e80f=_0x75ec3a;function _0x102683(){return function(_0x38432d,_0x2d8f72,_0x5b6a53){const _0x41128d=a0_0xaf0c;if(_0x38432d[_0x41128d('0x1e22')]===0x0||!_0x5b6a53||_0x5b6a53[_0x41128d('0x1e22')]===0x0)return _0x38432d;const _0xc29cc6=[];for(let _0x18023f=0x0;_0x18023f<_0x38432d['length'];_0x18023f++){const _0x33b5f2=_0x38432d[_0x18023f];let _0x27031e=![];for(let _0x42ac50=0x0;_0x42ac50<_0x5b6a53[_0x41128d('0x1e22')];_0x42ac50++){const _0x26f6ec=_0x5b6a53[_0x42ac50];if(_0x33b5f2[_0x2d8f72][_0x41128d('0x203c')](_0x26f6ec)>-0x1){_0x27031e=!![];break;}}_0x27031e&&_0xc29cc6['push'](_0x33b5f2);}return _0xc29cc6;};}const _0x407c99=_0x102683;;function _0x538cc2(){return function(_0x4c7c1d){const _0x51377e=a0_0xaf0c;if(!_0x4c7c1d)return'';return _0x36f548()[_0x51377e('0x1577')](_0x4c7c1d);};}const _0x56b338=_0x538cc2;;function _0xa24d2a(){return function(_0x50d51f){if(!_0x50d51f)return'';return _0x36f548()['startCase'](_0x50d51f);};}const _0x43fb62=_0xa24d2a;function _0x237754(){return function(_0x1d3316,_0x3a9681){const _0x11c0e0=a0_0xaf0c;if(_0x1d3316[_0x11c0e0('0x1e22')]===0x0||_0x3a9681[_0x11c0e0('0x1e22')]===0x0)return _0x1d3316;const _0x445425=[];return _0x1d3316['forEach'](function(_0x5d4d1a){const _0x58bf90=_0x11c0e0,_0x5693c9=_0x3a9681[_0x58bf90('0x1d1')](function(_0x4d67b3){const _0x51cc82=_0x58bf90;let _0x54d806=![];return _0x5d4d1a[_0x51cc82('0x2763')][_0x51cc82('0x1f88')](function(_0x5902dc){if(_0x5902dc['name']===_0x4d67b3['name']){_0x54d806=!![];return;}}),_0x54d806;});_0x5693c9&&_0x445425[_0x58bf90('0x105d')](_0x5d4d1a);}),_0x445425;};}function _0x1e4c78(){return function(_0x166b46,_0xf8331d){const _0x3c49b5=a0_0xaf0c;if(_0x166b46[_0x3c49b5('0x1e22')]===0x0||_0xf8331d['length']===0x0)return;if(_0x166b46[_0x3c49b5('0x1e22')]<_0xf8331d[_0x3c49b5('0x1e22')])return[];const _0x38dcbc=[],_0x1dca9e=_0xf8331d[_0x3c49b5('0x1d1')](function(_0x1c699d){let _0x35b02c=![];return _0x166b46['forEach'](function(_0x3d7638){const _0x2c4e80=a0_0xaf0c;if(_0x3d7638['name']===_0x1c699d[_0x2c4e80('0x1909')]){_0x35b02c=!![];return;}}),_0x35b02c;});return _0x1dca9e&&_0x38dcbc[_0x3c49b5('0x105d')](_0x166b46),_0x38dcbc;};};class _0x58c67f{constructor(_0x46d576,_0x1c69f6,_0x43ce1d,_0x4333bf){const _0x516303=_0x21d0f5;this['id']=Math['random']()[_0x516303('0xaab')](0x24)[_0x516303('0x66d')](0x2,0xf)+Math[_0x516303('0x459')]()[_0x516303('0xaab')](0x24)[_0x516303('0x66d')](0x2,0xf),this[_0x516303('0x134b')]=_0x46d576,this[_0x516303('0x1d2')]=_0x1c69f6,this[_0x516303('0x15c7')]=_0x43ce1d,this[_0x516303('0x4a')]=_0x4333bf,this[_0x516303('0x2132')]=_0x78c3aa;}}function _0x114d1c(){const _0x3028ae=_0x21d0f5;return!(window['document'][_0x3028ae('0x2ed')]||window[_0x3028ae('0xb54')][_0x3028ae('0x182c')]||window['document'][_0x3028ae('0x607')]);}function _0x296119(){const _0x20752c=_0x21d0f5;return/Chrome/[_0x20752c('0x6eb')](navigator[_0x20752c('0x12e7')])&&/Google Inc/[_0x20752c('0x6eb')](navigator['vendor']);}function _0x78c3aa(){const _0xd1c74f=_0x21d0f5,_0x156627=this;navigator[_0xd1c74f('0x2e8')][_0xd1c74f('0x1d94')][_0xd1c74f('0x11bf')](function(_0x135e44){const _0x122eed=_0xd1c74f;_0x135e44[_0x122eed('0x661')]()['then'](function(_0x2f1e14){const _0x52d927=_0x122eed,_0x41502a=_0x36f548()[_0x52d927('0x1ad4')](_0x2f1e14,function(_0x1aadd8){const _0x3e2ddb=_0x52d927;return _0x1aadd8[_0x3e2ddb('0x4e8')]['id']===_0x156627['id'];});_0x41502a&&_0x41502a[_0x52d927('0x2132')]();});});}function _0x2f9c10(){return{'$get':[_0x28c011]};function _0x28c011(){const _0x2a3584=a0_0xaf0c,_0x179610=[];let _0x13ce36,_0x41e3a;return _0x2a3584('0x2e8')in navigator&&_0x296119()?navigator[_0x2a3584('0x2e8')][_0x2a3584('0x10e4')]('service-worker.js')[_0x2a3584('0x11bf')](function(_0xdb5a01){const _0x1f0ca7=_0x2a3584;_0x13ce36=_0xdb5a01,_0x13ce36[_0x1f0ca7('0x5ab')]();if(_0x13ce36[_0x1f0ca7('0x11fa')])_0x41e3a=_0x13ce36[_0x1f0ca7('0x11fa')];else{if(_0x13ce36['waiting'])_0x41e3a=_0x13ce36[_0x1f0ca7('0x1491')];else _0x13ce36[_0x1f0ca7('0x2668')]&&(_0x41e3a=_0x13ce36['active']);}})[_0x2a3584('0x151d')](function(_0x5b7b41){const _0x46a44b=_0x2a3584;console[_0x46a44b('0x255')](_0x46a44b('0x2850'),_0x5b7b41);}):console[_0x2a3584('0x255')]('Service\x20Worker\x20is\x20not\x20supported'),navigator[_0x2a3584('0x2e8')][_0x2a3584('0x22ca')]('message',function(_0x435c0f){const _0x1d4c9a=_0x2a3584;if(_0x435c0f[_0x1d4c9a('0x16fa')]!==_0x41e3a)return;const _0x3e9d6c=_0x36f548()[_0x1d4c9a('0x1ad4')](_0x179610,{'id':_0x435c0f['data']['id']});if(_0x3e9d6c)switch(_0x435c0f[_0x1d4c9a('0x4e8')][_0x1d4c9a('0x1607')]){case'accept':_0x3e9d6c[_0x1d4c9a('0x15c7')]&&_0x3e9d6c['accept']();break;case'reject':_0x3e9d6c['reject']&&_0x3e9d6c[_0x1d4c9a('0x4a')]();break;default:}}),{'create':function(_0x3f66d6,_0xf9e528,_0x4c6b81,_0x3d55cf,_0x97c66){return new Promise(function(_0x1450da,_0x23bef4){const _0x17bd32=a0_0xaf0c;let _0x43905c;_0x296119()&&!_0x114d1c()?(_0x43905c=new _0x58c67f(_0x3f66d6||'MyTitle',_0xf9e528||_0x17bd32('0x2193'),_0x3d55cf,_0x97c66),_0x179610['push'](_0x43905c),_0x43905c?window[_0x17bd32('0x2486')][_0x17bd32('0xe55')]()[_0x17bd32('0x11bf')](function(_0x4a4f6c){const _0x1565c3=_0x17bd32;if(_0x4a4f6c===_0x1565c3('0x112f'))return _0x13ce36['showNotification'](_0x43905c[_0x1565c3('0x134b')],{'body':_0x43905c['body'],'requireInteraction':!![],'icon':_0x4c6b81||_0x1565c3('0x484'),'data':{'id':_0x43905c['id']},'actions':[{'action':_0x1565c3('0x15c7'),'title':_0x1565c3('0x116d')},{'action':_0x1565c3('0x4a'),'title':_0x1565c3('0x175f')}]});})['then'](function(){_0x1450da(_0x43905c);})[_0x17bd32('0x151d')](function(_0x57ab84){_0x23bef4(_0x57ab84);}):_0x23bef4(new Error(_0x17bd32('0xba6')))):_0x1450da();});}};}}const _0x4b2973=_0x2f9c10;_0x4000e8[_0x21d0f5('0x1e9a')]=['$q',_0x21d0f5('0x23'),'api'];function _0x4000e8(_0x27b25b,_0x4fdb44,_0x315150){const _0x4d1af6={'resolve':_0x542885};return _0x4d1af6;function _0x542885(_0x54176f,_0x4f7957){const _0x51ad20=a0_0xaf0c,_0xdb4842=_0x54176f[_0x51ad20('0xaf8')]('@'),_0x447559=_0xdb4842[0x0],_0x312cff=_0xdb4842[0x1],_0x5eb59d=_0x4f7957||{};if(!_0x447559||!_0x312cff)return _0x4fdb44[_0x51ad20('0x255')](_0x51ad20('0x2270')),![];const _0x86ef02=_0x27b25b['defer'](),_0x177123=_0xbed085(_0x447559);return!_0x177123?(_0x4fdb44[_0x51ad20('0x255')]('Resource\x20\x22'+_0x447559+'\x22\x20is\x20not\x20defined\x20in\x20the\x20api\x20service!'),_0x86ef02['reject'](_0x51ad20('0x680')+_0x447559+_0x51ad20('0x3df'))):_0x177123[_0x312cff](_0x5eb59d,function(_0x1e205b){const _0x37f5e7=_0x51ad20;_0x86ef02[_0x37f5e7('0xa28')](_0x1e205b);},function(_0x4d4870){const _0x9a7fb8=_0x51ad20;_0x86ef02[_0x9a7fb8('0x4a')](_0x4d4870);}),_0x86ef02[_0x51ad20('0x13f')];}function _0xbed085(_0x45e6ff){const _0x3c5a41=a0_0xaf0c,_0x1cecc6=_0x45e6ff[_0x3c5a41('0xaf8')]('.');let _0x5b269d=_0x315150;for(let _0x55e739=0x0;_0x55e739<_0x1cecc6['length'];_0x55e739++){if(angular[_0x3c5a41('0x13b9')](_0x5b269d[_0x1cecc6[_0x55e739]])){_0x4fdb44[_0x3c5a41('0x255')](_0x3c5a41('0x1362')+_0x1cecc6[_0x55e739]+_0x3c5a41('0x1821')),_0x5b269d=![];break;}_0x5b269d=_0x5b269d[_0x1cecc6[_0x55e739]];}if(!_0x5b269d)return![];return _0x5b269d;}}const _0x1cd8b8=_0x4000e8;_0x3eed97['$inject']=[_0x21d0f5('0x5f2')];function _0x3eed97(_0x57f56f){function _0xe002a8(){_0x57f56f['loadingProgress']=!![];}function _0x138b90(){const _0x216d2c=a0_0xaf0c;_0x57f56f[_0x216d2c('0x2519')]=![];}const _0x31244c={'showLoadingIndicator':_0xe002a8,'hideLoadingIndicator':_0x138b90};return _0x31244c;}const _0x4bf449=_0x3eed97;function _0x13f4e6(){const _0x40ad28=_0x21d0f5,_0x4ed643=this,_0x519915=angular[_0x40ad28('0x160')](['ng'])['get'](_0x40ad28('0x23'));let _0x10a93e='';const _0x594a6c=[];_0x4ed643[_0x40ad28('0x56')]=_0x20500a,_0x4ed643[_0x40ad28('0x929')]=_0x1a0af4,_0x4ed643[_0x40ad28('0x1f9')]=_0x28825d,_0x4ed643[_0x40ad28('0x10e4')]=_0x3f9e1f;function _0x20500a(_0x3a3d4f){_0x10a93e=_0x3a3d4f;}function _0x1a0af4(){return _0x10a93e;}function _0x28825d(){return _0x594a6c;}function _0x3f9e1f(_0x32189e,_0x5f1fe0){const _0x117241=_0x40ad28;if(!angular['isString'](_0x32189e)){_0x519915['error']('\x22path\x22\x20must\x20be\x20a\x20string\x20(eg.\x20`dashboard.project`)');return;}if(!angular[_0x117241('0x32c')](_0x5f1fe0)){_0x519915[_0x117241('0x255')](_0x117241('0x13a4'));return;}_0x594a6c[_0x32189e]={'url':_0x10a93e+(_0x5f1fe0[0x0]||''),'paramDefaults':_0x5f1fe0[0x1]||[],'actions':_0x5f1fe0[0x2]||[],'options':_0x5f1fe0[0x3]||{}};}this['$get']=function(_0x4682f9,_0x4be264,_0x584f64,_0x522a94){const _0x20a434={'setBaseUrl':_0x20500a,'getBaseUrl':_0x1a0af4,'register':_0x3f9e1f,'resolve':_0x482df2,'request':_0x4512a0};return _0x20a434;function _0x482df2(_0x5d9e22,_0xa074ed){const _0xdd3c3b=a0_0xaf0c;_0x522a94['$broadcast'](_0xdd3c3b('0x80c'));const _0x4f1ee6=_0x5d9e22['split']('@'),_0x361130=_0x4f1ee6[0x0],_0x34455f=_0x4f1ee6[0x1],_0x3b5a03=_0xa074ed||{};if(!_0x361130||!_0x34455f)return _0x4682f9[_0xdd3c3b('0x255')]('msApi.resolve\x20requires\x20correct\x20action\x20parameter\x20(resourceName@methodName)'),![];const _0x55fb2a=_0x4be264[_0xdd3c3b('0xa93')](),_0x5a3877=_0x594a6c[_0x361130];if(!_0x5a3877)_0x4682f9['error'](_0xdd3c3b('0x680')+_0x361130+_0xdd3c3b('0x3df')),_0x55fb2a[_0xdd3c3b('0x4a')](_0xdd3c3b('0x680')+_0x361130+_0xdd3c3b('0x3df'));else{const _0x229da8=_0x584f64(_0x5a3877[_0xdd3c3b('0x259e')],_0x5a3877['paramDefaults'],_0x5a3877['actions'],_0x5a3877['options']);_0x229da8[_0x34455f](_0x3b5a03,function(_0x4b11ef){const _0x7fe2db=_0xdd3c3b;_0x55fb2a[_0x7fe2db('0xa28')](_0x4b11ef),_0x522a94['$broadcast'](_0x7fe2db('0x8fa'));},function(_0x53acf5){const _0x553d34=_0xdd3c3b;_0x55fb2a[_0x553d34('0x4a')](_0x53acf5),_0x522a94[_0x553d34('0x1c04')](_0x553d34('0x15b0'));});}return _0x55fb2a[_0xdd3c3b('0x13f')];}function _0x4512a0(_0x15637a,_0x222ab8,_0x38113f,_0x213140){const _0x18d3aa=a0_0xaf0c;_0x522a94[_0x18d3aa('0x1c04')](_0x18d3aa('0x1e87'));const _0x2c4a73=_0x15637a[_0x18d3aa('0xaf8')]('@'),_0x61a21f=_0x2c4a73[0x0],_0x5cd780=_0x2c4a73[0x1],_0x37812e=_0x222ab8||{};if(!_0x61a21f||!_0x5cd780)return _0x4682f9[_0x18d3aa('0x255')]('msApi.resolve\x20requires\x20correct\x20action\x20parameter\x20(resourceName@methodName)'),![];const _0x1e7774=_0x4be264[_0x18d3aa('0xa93')](),_0x2f9245=_0x594a6c[_0x61a21f];if(!_0x2f9245)_0x4682f9[_0x18d3aa('0x255')](_0x18d3aa('0x680')+_0x61a21f+_0x18d3aa('0x3df')),_0x1e7774['reject']('Resource\x20\x22'+_0x61a21f+_0x18d3aa('0x3df'));else{const _0x39141c=_0x584f64(_0x2f9245[_0x18d3aa('0x259e')],_0x2f9245[_0x18d3aa('0x2872')],_0x2f9245[_0x18d3aa('0x4ec')],_0x2f9245[_0x18d3aa('0x249a')]);_0x39141c[_0x5cd780](_0x37812e,function(_0x5aaed8){const _0x446787=_0x18d3aa;_0x522a94[_0x446787('0x1c04')](_0x446787('0x202d')),_0x1e7774[_0x446787('0xa28')](_0x5aaed8),angular[_0x446787('0x17c8')](_0x38113f)&&angular[_0x446787('0x1378')](_0x38113f)&&_0x38113f(_0x5aaed8);},function(_0x5d39cd){const _0x4ef485=_0x18d3aa;_0x522a94['$broadcast']('msApi::requestError'),_0x1e7774[_0x4ef485('0x4a')](_0x5d39cd),angular[_0x4ef485('0x17c8')](_0x213140)&&angular['isFunction'](_0x213140)&&_0x213140(_0x5d39cd);});}return _0x1e7774[_0x18d3aa('0x13f')];}};}const _0x1998ef=_0x13f4e6;var _0x1f15cb=_0x351988(0x985),_0x3f3f12=_0x351988['n'](_0x1f15cb);_0xd0e0f2[_0x21d0f5('0x1e9a')]=['$window'];function _0xd0e0f2(_0x19b91d){const _0x47ed87=_0x21d0f5,_0x5c4071=new(_0x3f3f12())(_0x19b91d[_0x47ed87('0x465')][_0x47ed87('0x12e7')]);let _0x424cdd=null;const _0x7d0f0e={'exists':_0x48f0b5,'detectBrowser':_0x493b43,'guidGenerator':_0x210a5d,'isMobile':_0x3104a8,'toggleInArray':_0x4645a9,'firstLastDayMonth':_0x3b75fd};return _0x7d0f0e;function _0x48f0b5(_0x1ee5e0,_0x2444fe){const _0x5c8244=_0x47ed87;return _0x2444fe[_0x5c8244('0x203c')](_0x1ee5e0)>-0x1;}function _0x493b43(){const _0x4aa645=_0x47ed87;if(_0x424cdd)return _0x424cdd;const _0x2863f4=[{'string':_0x19b91d['navigator'][_0x4aa645('0x12e7')],'subString':_0x4aa645('0x1cfb'),'versionSearch':'Edge','identity':_0x4aa645('0x1cfb')},{'string':_0x19b91d[_0x4aa645('0x465')][_0x4aa645('0x12e7')],'subString':_0x4aa645('0x2361'),'identity':_0x4aa645('0x2361')},{'string':_0x19b91d[_0x4aa645('0x465')][_0x4aa645('0x12e7')],'subString':_0x4aa645('0xaa1'),'versionSearch':'OmniWeb/','identity':_0x4aa645('0xaa1')},{'string':_0x19b91d['navigator'][_0x4aa645('0xfc8')],'subString':_0x4aa645('0xc97'),'versionSearch':_0x4aa645('0x1386'),'identity':_0x4aa645('0x2524')},{'prop':_0x19b91d['opera'],'identity':_0x4aa645('0x23ea')},{'string':_0x19b91d[_0x4aa645('0x465')][_0x4aa645('0xfc8')],'subString':_0x4aa645('0x26d0'),'identity':_0x4aa645('0x26d0')},{'string':_0x19b91d['navigator'][_0x4aa645('0xfc8')],'subString':_0x4aa645('0x23a0'),'identity':_0x4aa645('0xaa3')},{'string':_0x19b91d[_0x4aa645('0x465')][_0x4aa645('0x12e7')],'subString':'Firefox','identity':'Firefox'},{'string':_0x19b91d['navigator'][_0x4aa645('0xfc8')],'subString':_0x4aa645('0x132'),'identity':'Camino'},{'string':_0x19b91d[_0x4aa645('0x465')][_0x4aa645('0x12e7')],'subString':_0x4aa645('0x1efc'),'identity':_0x4aa645('0x1efc')},{'string':_0x19b91d[_0x4aa645('0x465')][_0x4aa645('0x12e7')],'subString':_0x4aa645('0x2237'),'identity':'Explorer','versionSearch':'MSIE'},{'string':_0x19b91d[_0x4aa645('0x465')][_0x4aa645('0x12e7')],'subString':'Trident/7','identity':_0x4aa645('0xbc7'),'versionSearch':'rv'},{'string':_0x19b91d[_0x4aa645('0x465')]['userAgent'],'subString':_0x4aa645('0x2330'),'identity':_0x4aa645('0x22c7'),'versionSearch':'rv'},{'string':_0x19b91d[_0x4aa645('0x465')][_0x4aa645('0x12e7')],'subString':'Mozilla','identity':_0x4aa645('0x1efc'),'versionSearch':_0x4aa645('0x22c7')}],_0x224f10=[{'string':_0x19b91d[_0x4aa645('0x465')][_0x4aa645('0x1e1c')],'subString':_0x4aa645('0x204b'),'identity':_0x4aa645('0x1881')},{'string':_0x19b91d[_0x4aa645('0x465')]['platform'],'subString':'Mac','identity':'Mac'},{'string':_0x19b91d['navigator']['platform'],'subString':_0x4aa645('0xbe6'),'identity':_0x4aa645('0xbe6')},{'string':_0x19b91d[_0x4aa645('0x465')][_0x4aa645('0x1e1c')],'subString':_0x4aa645('0x1213'),'identity':'iPhone'},{'string':_0x19b91d[_0x4aa645('0x465')]['platform'],'subString':_0x4aa645('0x1498'),'identity':_0x4aa645('0x1498')},{'string':_0x19b91d[_0x4aa645('0x465')][_0x4aa645('0x1e1c')],'subString':_0x4aa645('0xeae'),'identity':_0x4aa645('0xeae')},{'string':_0x19b91d['navigator'][_0x4aa645('0x1e1c')],'subString':'Android','identity':_0x4aa645('0x168b')}];let _0x5e25f0='';function _0x5c3406(_0x114b06){const _0x17b981=_0x4aa645;for(let _0x3074d2=0x0;_0x3074d2<_0x114b06[_0x17b981('0x1e22')];_0x3074d2++){const _0x56e1fb=_0x114b06[_0x3074d2][_0x17b981('0x2380')],_0xe50172=_0x114b06[_0x3074d2][_0x17b981('0xf1d')];_0x5e25f0=_0x114b06[_0x3074d2]['versionSearch']||_0x114b06[_0x3074d2][_0x17b981('0x7c3')];if(_0x56e1fb){if(_0x56e1fb[_0x17b981('0x203c')](_0x114b06[_0x3074d2][_0x17b981('0x21de')])!==-0x1)return _0x114b06[_0x3074d2][_0x17b981('0x7c3')];}else{if(_0xe50172)return _0x114b06[_0x3074d2][_0x17b981('0x7c3')];}}}function _0x56a8cf(_0x5b3d43){const _0x4b9074=_0x4aa645,_0x54bf73=_0x5b3d43[_0x4b9074('0x203c')](_0x5e25f0);if(_0x54bf73===-0x1)return;return parseInt(_0x5b3d43[_0x4b9074('0x66d')](_0x54bf73+_0x5e25f0[_0x4b9074('0x1e22')]+0x1));}let _0xceeff5=_0x5c3406(_0x2863f4)||_0x4aa645('0x13a7'),_0x4b0c82=_0x56a8cf(_0x19b91d[_0x4aa645('0x465')][_0x4aa645('0x12e7')])||_0x56a8cf(_0x19b91d[_0x4aa645('0x465')][_0x4aa645('0x1697')])||_0x4aa645('0x238a'),_0x1f298d=_0x5c3406(_0x224f10)||'unknown-os';return _0xceeff5=_0xceeff5[_0x4aa645('0x20d5')](),_0x4b0c82=_0xceeff5+'-'+_0x4b0c82,_0x1f298d=_0x1f298d['toLowerCase'](),_0x424cdd={'browser':_0xceeff5,'version':_0x4b0c82,'os':_0x1f298d},_0x424cdd;}function _0x210a5d(){const _0x451376=function(){const _0x2fbe5e=a0_0xaf0c;return((0x1+Math[_0x2fbe5e('0x459')]())*0x10000||0x0)[_0x2fbe5e('0xaab')](0x10)['substring'](0x1);};return _0x451376()+_0x451376()+_0x451376()+_0x451376()+_0x451376()+_0x451376();}function _0x3104a8(){const _0x15809f=_0x47ed87;return _0x5c4071[_0x15809f('0x249f')]();}function _0x4645a9(_0x370e15,_0x23e7f4){const _0x4efc1b=_0x47ed87;_0x23e7f4[_0x4efc1b('0x203c')](_0x370e15)===-0x1?_0x23e7f4[_0x4efc1b('0x105d')](_0x370e15):_0x23e7f4['splice'](_0x23e7f4[_0x4efc1b('0x203c')](_0x370e15),0x1);}function _0x3b75fd(){const _0x3ebe9a=_0x47ed87;return{'$gte':_0x57d4d1()()[_0x3ebe9a('0x2655')](_0x3ebe9a('0x4d8'))[_0x3ebe9a('0x1fb1')](0x0,!![])[_0x3ebe9a('0x1826')](),'$lte':_0x57d4d1()()[_0x3ebe9a('0x2ba')]('month')[_0x3ebe9a('0x1fb1')](0x0,!![])['format']()};}}const _0x5c983a=_0xd0e0f2,_0x35e661=_0x351988['p']+_0x21d0f5('0x27f');_0x4df875[_0x21d0f5('0x1e9a')]=['$mdSidenav'],_0x508801['$inject']=[_0x21d0f5('0x5d8'),_0x21d0f5('0xc94')];function _0x508801(_0x137470,_0x5e35fe){const _0x5d96ea=_0x21d0f5,_0x56d764=this;_0x56d764[_0x5d96ea('0x24b')]=_0x5e35fe[_0x5d96ea('0x24b')],_0x56d764[_0x5d96ea('0x1ea7')]=[{'label':_0x5d96ea('0x591'),'value':_0x5d96ea('0x270d')},{'label':'Wide','value':_0x5d96ea('0x1f89')}],_0x56d764[_0x5d96ea('0x1b00')]=[{'label':_0x5d96ea('0x67'),'value':_0x5d96ea('0x1ebb'),'figure':_0x5d96ea('0x22a1')},{'label':_0x5d96ea('0x46e'),'value':_0x5d96ea('0x18ca'),'figure':_0x5d96ea('0x2427')},{'label':_0x5d96ea('0x271'),'value':_0x5d96ea('0x1fae'),'figure':_0x5d96ea('0x6ea')},{'label':_0x5d96ea('0x11b2'),'value':'horizontalNavigation','figure':_0x5d96ea('0x15b')},{'label':_0x5d96ea('0xf7d'),'value':_0x5d96ea('0x10de'),'figure':_0x5d96ea('0x235a')},{'label':_0x5d96ea('0xfd5'),'value':_0x5d96ea('0x1b88'),'figure':'/assets/images/theme-options/content-only.jpg'}],_0x56d764[_0x5d96ea('0x1f79')]='wide',_0x56d764[_0x5d96ea('0x16e5')]=_0x137470[_0x5d96ea('0xbaa')](_0x5d96ea('0x2339'))||_0x5d96ea('0x1ebb'),_0x56d764[_0x5d96ea('0xfbb')]=_0x56ef84,_0x56d764[_0x5d96ea('0x106c')]=_0x21bf9f,_0x56d764[_0x5d96ea('0xf04')]=_0x41761,_0x56d764[_0x5d96ea('0x571')]=_0x15c566;function _0x56ef84(_0x3f44dd){const _0x15c6f1=_0x5d96ea;_0x5e35fe[_0x15c6f1('0xfbb')](_0x3f44dd);}function _0x21bf9f(){const _0xe91c0f=_0x5d96ea;return _0x5e35fe[_0xe91c0f('0x24b')][_0xe91c0f('0x2668')];}function _0x41761(){const _0x416e5e=_0x5d96ea,_0x22d863=angular[_0x416e5e('0x1e73')]('body');_0x22d863[_0x416e5e('0x1436')](_0x416e5e('0x270d'),_0x56d764[_0x416e5e('0x1f79')]===_0x416e5e('0x270d'));}function _0x15c566(){const _0x369681=_0x5d96ea;_0x137470[_0x369681('0x2318')]('motion.layoutStyle',_0x56d764[_0x369681('0x16e5')]),location[_0x369681('0x2304')]();}}function _0x4df875(_0x5bdf0f){const _0x5f5c42=_0x21d0f5;return{'restrict':'E','scope':{},'controller':_0x5f5c42('0x2680'),'templateUrl':_0x35e661,'compile':function(_0x4e9805){const _0x32229d=_0x5f5c42;return _0x4e9805[_0x32229d('0x16d8')](_0x32229d('0x1d50')),function _0x536445(_0x3d2664){const _0x15037e=_0x32229d;function _0x275609(){const _0x36f161=a0_0xaf0c;_0x5bdf0f(_0x36f161('0x229f'))[_0x36f161('0x113b')]();}_0x3d2664[_0x15037e('0x2771')]=_0x275609;};}};}_0x273825['$inject']=[_0x21d0f5('0x5d8'),_0x21d0f5('0x23'),'motionTheming'];function _0x273825(_0xcd3780,_0x1c5c08,_0x3ae4da){const _0x4cf512={},_0x41f4fb={'generate':_0x465edb,'rgba':_0x3ce78f};return _0x41f4fb;function _0x465edb(){const _0x1af062=a0_0xaf0c,_0x3fe978=angular[_0x1af062('0x6fb')](_0x3ae4da[_0x1af062('0x26db')]()),_0x3e3e0c=angular['copy'](_0x3ae4da[_0x1af062('0x148a')]());angular['forEach'](_0x3fe978,function(_0x490647){const _0x4d7f10=_0x1af062;_0x4cf512[_0x490647['name']]={},angular[_0x4d7f10('0x1f88')](_0x490647[_0x4d7f10('0xdda')],function(_0x4ed371,_0x47bfe0){const _0x3aadb5=_0x4d7f10;_0x4cf512[_0x490647['name']][_0x47bfe0]={'name':_0x4ed371[_0x3aadb5('0x1909')],'levels':{'default':{'color':_0x3ce78f(_0x3e3e0c[_0x4ed371[_0x3aadb5('0x1909')]][_0x4ed371['hues']['default']][_0x3aadb5('0x10cc')]),'contrast1':_0x3ce78f(_0x3e3e0c[_0x4ed371[_0x3aadb5('0x1909')]][_0x4ed371[_0x3aadb5('0x249e')]['default']][_0x3aadb5('0x6a2')],0x1),'contrast2':_0x3ce78f(_0x3e3e0c[_0x4ed371['name']][_0x4ed371[_0x3aadb5('0x249e')]['default']][_0x3aadb5('0x6a2')],0x2),'contrast3':_0x3ce78f(_0x3e3e0c[_0x4ed371[_0x3aadb5('0x1909')]][_0x4ed371[_0x3aadb5('0x249e')][_0x3aadb5('0xb2f')]][_0x3aadb5('0x6a2')],0x3),'contrast4':_0x3ce78f(_0x3e3e0c[_0x4ed371[_0x3aadb5('0x1909')]][_0x4ed371[_0x3aadb5('0x249e')][_0x3aadb5('0xb2f')]]['contrast'],0x4)},'hue1':{'color':_0x3ce78f(_0x3e3e0c[_0x4ed371[_0x3aadb5('0x1909')]][_0x4ed371[_0x3aadb5('0x249e')]['hue-1']][_0x3aadb5('0x10cc')]),'contrast1':_0x3ce78f(_0x3e3e0c[_0x4ed371[_0x3aadb5('0x1909')]][_0x4ed371[_0x3aadb5('0x249e')][_0x3aadb5('0xa0b')]][_0x3aadb5('0x6a2')],0x1),'contrast2':_0x3ce78f(_0x3e3e0c[_0x4ed371[_0x3aadb5('0x1909')]][_0x4ed371[_0x3aadb5('0x249e')][_0x3aadb5('0xa0b')]][_0x3aadb5('0x6a2')],0x2),'contrast3':_0x3ce78f(_0x3e3e0c[_0x4ed371[_0x3aadb5('0x1909')]][_0x4ed371[_0x3aadb5('0x249e')][_0x3aadb5('0xa0b')]][_0x3aadb5('0x6a2')],0x3),'contrast4':_0x3ce78f(_0x3e3e0c[_0x4ed371[_0x3aadb5('0x1909')]][_0x4ed371[_0x3aadb5('0x249e')][_0x3aadb5('0xa0b')]][_0x3aadb5('0x6a2')],0x4)},'hue2':{'color':_0x3ce78f(_0x3e3e0c[_0x4ed371['name']][_0x4ed371[_0x3aadb5('0x249e')][_0x3aadb5('0x1970')]][_0x3aadb5('0x10cc')]),'contrast1':_0x3ce78f(_0x3e3e0c[_0x4ed371[_0x3aadb5('0x1909')]][_0x4ed371[_0x3aadb5('0x249e')][_0x3aadb5('0x1970')]][_0x3aadb5('0x6a2')],0x1),'contrast2':_0x3ce78f(_0x3e3e0c[_0x4ed371['name']][_0x4ed371['hues']['hue-2']]['contrast'],0x2),'contrast3':_0x3ce78f(_0x3e3e0c[_0x4ed371['name']][_0x4ed371['hues'][_0x3aadb5('0x1970')]][_0x3aadb5('0x6a2')],0x3),'contrast4':_0x3ce78f(_0x3e3e0c[_0x4ed371[_0x3aadb5('0x1909')]][_0x4ed371[_0x3aadb5('0x249e')]['hue-2']][_0x3aadb5('0x6a2')],0x4)},'hue3':{'color':_0x3ce78f(_0x3e3e0c[_0x4ed371[_0x3aadb5('0x1909')]][_0x4ed371['hues']['hue-3']][_0x3aadb5('0x10cc')]),'contrast1':_0x3ce78f(_0x3e3e0c[_0x4ed371['name']][_0x4ed371[_0x3aadb5('0x249e')][_0x3aadb5('0x107')]][_0x3aadb5('0x6a2')],0x1),'contrast2':_0x3ce78f(_0x3e3e0c[_0x4ed371['name']][_0x4ed371[_0x3aadb5('0x249e')]['hue-3']][_0x3aadb5('0x6a2')],0x2),'contrast3':_0x3ce78f(_0x3e3e0c[_0x4ed371['name']][_0x4ed371[_0x3aadb5('0x249e')][_0x3aadb5('0x107')]][_0x3aadb5('0x6a2')],0x3),'contrast4':_0x3ce78f(_0x3e3e0c[_0x4ed371['name']][_0x4ed371[_0x3aadb5('0x249e')][_0x3aadb5('0x107')]][_0x3aadb5('0x6a2')],0x4)}}};});}),_0x1f3845(_0x4cf512);let _0xff8b7e={};angular['forEach'](_0x4cf512,function(_0x2a0e15,_0x1f384c){const _0x1c8085=_0x1af062;_0xff8b7e={},_0xff8b7e['@themeName']=_0x1f384c,angular[_0x1c8085('0x1f88')](_0x2a0e15,function(_0x35627b,_0x17a49c){const _0x205bdc=_0x1c8085;angular[_0x205bdc('0x1f88')](_0x35627b[_0x205bdc('0x1526')],function(_0x17e59b,_0x12cd3d){const _0x511775=_0x205bdc;angular[_0x511775('0x1f88')](_0x17e59b,function(_0x36e543,_0x27d1b4){_0xff8b7e['@'+_0x17a49c+_0x327028(_0x12cd3d)+_0x327028(_0x27d1b4)]=_0x36e543;});});}),_0x5afae8(_0xff8b7e);});}function _0x1f3845(_0x185ad5){const _0x1207ce=a0_0xaf0c,_0x327152=angular['copy'](_0x185ad5);angular[_0x1207ce('0x1f88')](_0x327152,function(_0x4a1221){const _0x569361=_0x1207ce;angular[_0x569361('0x1f88')](_0x4a1221,function(_0xab31e3,_0x58c85d){const _0xc0dd77=_0x569361;_0x4a1221[_0x58c85d]=_0xab31e3[_0xc0dd77('0x1526')],_0x4a1221[_0x58c85d]['color']=_0xab31e3[_0xc0dd77('0x1526')][_0xc0dd77('0xb2f')][_0xc0dd77('0x1360')],_0x4a1221[_0x58c85d][_0xc0dd77('0x2455')]=_0xab31e3[_0xc0dd77('0x1526')][_0xc0dd77('0xb2f')][_0xc0dd77('0x2455')],_0x4a1221[_0x58c85d]['contrast2']=_0xab31e3[_0xc0dd77('0x1526')]['default'][_0xc0dd77('0x1473')],_0x4a1221[_0x58c85d][_0xc0dd77('0x256e')]=_0xab31e3[_0xc0dd77('0x1526')][_0xc0dd77('0xb2f')][_0xc0dd77('0x256e')],_0x4a1221[_0x58c85d][_0xc0dd77('0x1264')]=_0xab31e3['levels'][_0xc0dd77('0xb2f')][_0xc0dd77('0x1264')],delete _0x4a1221[_0x58c85d]['default'];});}),_0x3ae4da[_0x1207ce('0xf2f')](_0x327152);const _0x4b5e37=_0xcd3780[_0x1207ce('0xbaa')]('motion.selectedTheme');_0x4b5e37?_0x3ae4da[_0x1207ce('0xfbb')](_0x4b5e37):_0x3ae4da['setActiveTheme'](_0x1207ce('0xb2f'));}function _0x5afae8(_0x39bdd5){const _0x26f70a=a0_0xaf0c,_0x426d4f='/*\x20Content\x20hack\x20because\x20they\x20wont\x20fix\x20*/\x0a/*\x20https://github.com/angular/material/pull/8067\x20*/\x0a[md-theme=\x22@themeName\x22]\x20md-content.md-hue-1,\x0amd-content.md-@themeName-theme.md-hue-1\x20{\x0a\x20\x20\x20\x20color:\x20@backgroundHue1Contrast1;\x0a\x20\x20\x20\x20background-color:\x20@backgroundHue1Color;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20md-content.md-hue-2,\x0amd-content.md-@themeName-theme.md-hue-2\x20{\x0a\x20\x20\x20\x20color:\x20@backgroundHue2Contrast1;\x0a\x20\x20\x20\x20background-color:\x20@backgroundHue2Color;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20md-content.md-hue-3,\x0a\x20md-content.md-@themeName-theme.md-hue-3\x20{\x0a\x20\x20\x20\x20color:\x20@backgroundHue3Contrast1;\x0a\x20\x20\x20\x20background-color:\x20@backgroundHue3Color;\x0a}\x0a\x0a/*\x20Text\x20Colors\x20*/\x0a[md-theme=\x22@themeName\x22]\x20a\x20{\x0a\x20\x20\x20\x20color:\x20@accentDefaultColor;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.secondary-text,\x0a[md-theme=\x22@themeName\x22]\x20.icon\x20{\x0a\x20\x20\x20\x20color:\x20@backgroundDefaultContrast2;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.hint-text,\x0a[md-theme=\x22@themeName\x22]\x20.disabled-text\x20{\x0a\x20\x20\x20\x20color:\x20@backgroundDefaultContrast3;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.fade-text,\x0a[md-theme=\x22@themeName\x22]\x20.divider\x20{\x0a\x20\x20\x20\x20color:\x20@backgroundDefaultContrast4;\x0a}\x0a\x0a/*\x20Primary\x20*/\x0a[md-theme=\x22@themeName\x22]\x20.md-primary-bg\x20{\x0a\x20\x20\x20\x20background-color:\x20@primaryDefaultColor;\x0a\x20\x20\x20\x20color:\x20@primaryDefaultContrast1;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-primary-bg\x20.secondary-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-primary-bg\x20.icon\x20{\x0a\x20\x20\x20\x20color:\x20@primaryDefaultContrast2;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-primary-bg\x20.hint-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-primary-bg\x20.disabled-text\x20{\x0a\x20\x20\x20\x20color:\x20@primaryDefaultContrast3;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-primary-bg\x20.fade-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-primary-bg\x20.divider\x20{\x0a\x20\x20\x20\x20color:\x20@primaryDefaultContrast4;\x0a}\x0a\x0a/*\x20Primary,\x20Hue-1\x20*/\x0a[md-theme=\x22@themeName\x22]\x20.md-primary-bg.md-hue-1\x20{\x0a\x20\x20\x20\x20background-color:\x20@primaryHue1Color;\x0a\x20\x20\x20\x20color:\x20@primaryHue1Contrast1;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-primary-bg.md-hue-1\x20.secondary-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-primary-bg.md-hue-1\x20.icon\x20{\x0a\x20\x20\x20\x20color:\x20@primaryHue1Contrast2;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-primary-bg.md-hue-1\x20.hint-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-primary-bg.md-hue-1\x20.disabled-text\x20{\x0a\x20\x20\x20\x20color:\x20@primaryHue1Contrast3;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-primary-bg.md-hue-1\x20.fade-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-primary-bg.md-hue-1\x20.divider\x20{\x0a\x20\x20\x20\x20color:\x20@primaryHue1Contrast4;\x0a}\x0a\x0a/*\x20Primary,\x20Hue-2\x20*/\x0a[md-theme=\x22@themeName\x22]\x20.md-primary-bg.md-hue-2\x20{\x0a\x20\x20\x20\x20background-color:\x20@primaryHue2Color;\x0a\x20\x20\x20\x20color:\x20@primaryHue2Contrast1;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-primary-bg.md-hue-2\x20.secondary-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-primary-bg.md-hue-2\x20.icon\x20{\x0a\x20\x20\x20\x20color:\x20@primaryHue2Contrast2;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-primary-bg.md-hue-2\x20.hint-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-primary-bg.md-hue-2\x20.disabled-text\x20{\x0a\x20\x20\x20\x20color:\x20@primaryHue2Contrast3;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-primary-bg.md-hue-2\x20.fade-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-primary-bg.md-hue-2\x20.divider\x20{\x0a\x20\x20\x20\x20color:\x20@primaryHue2Contrast4;\x0a}\x0a\x0a/*\x20Primary,\x20Hue-3\x20*/\x0a[md-theme=\x22@themeName\x22]\x20.md-primary-bg.md-hue-3\x20{\x0a\x20\x20\x20\x20background-color:\x20@primaryHue3Color;\x0a\x20\x20\x20\x20color:\x20@primaryHue3Contrast1;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-primary-bg.md-hue-3\x20.secondary-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-primary-bg.md-hue-3\x20.icon\x20{\x0a\x20\x20\x20\x20color:\x20@primaryHue3Contrast1;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-primary-bg.md-hue-3\x20.hint-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-primary-bg.md-hue-3\x20.disabled-text\x20{\x0a\x20\x20\x20\x20color:\x20@primaryHue3Contrast3;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-primary-bg.md-hue-3\x20.fade-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-primary-bg.md-hue-3\x20.divider\x20{\x0a\x20\x20\x20\x20color:\x20@primaryHue3Contrast4;\x0a}\x0a\x0a/*\x20Primary\x20foreground\x20*/\x0a[md-theme=\x22@themeName\x22]\x20.md-primary-fg\x20{\x0a\x20\x20\x20\x20color:\x20@primaryDefaultColor\x20!important;\x0a}\x0a\x0a/*\x20Primary\x20foreground,\x20Hue-1\x20*/\x0a[md-theme=\x22@themeName\x22]\x20.md-primary-fg.md-hue-1\x20{\x0a\x20\x20\x20\x20color:\x20@primaryHue1Color\x20!important;\x0a}\x0a\x0a/*\x20Primary\x20foreground,\x20Hue-2\x20*/\x0a[md-theme=\x22@themeName\x22]\x20.md-primary-fg.md-hue-2\x20{\x0a\x20\x20\x20\x20color:\x20@primaryHue2Color\x20!important;\x0a}\x0a\x0a/*\x20Primary\x20foreground,\x20Hue-3\x20*/\x0a[md-theme=\x22@themeName\x22]\x20.md-primary-fg.md-hue-3\x20{\x0a\x20\x20\x20\x20color:\x20@primaryHue3Color\x20!important;\x0a}\x0a\x0a/*\x20Accent\x20*/\x0a[md-theme=\x22@themeName\x22]\x20.md-accent-bg\x20{\x0a\x20\x20\x20\x20background-color:\x20@accentDefaultColor;\x0a\x20\x20\x20\x20color:\x20@accentDefaultContrast1;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-accent-bg\x20.secondary-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-accent-bg\x20.icon\x20{\x0a\x20\x20\x20\x20color:\x20@accentDefaultContrast2;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-accent-bg\x20.hint-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-accent-bg\x20.disabled-text\x20{\x0a\x20\x20\x20\x20color:\x20@accentDefaultContrast3;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-accent-bg\x20.fade-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-accent-bg\x20.divider\x20{\x0a\x20\x20\x20\x20color:\x20@accentDefaultContrast4;\x0a}\x0a\x0a/*\x20Accent,\x20Hue-1\x20*/\x0a[md-theme=\x22@themeName\x22]\x20.md-accent-bg.md-hue-1\x20{\x0a\x20\x20\x20\x20background-color:\x20@accentHue1Color;\x0a\x20\x20\x20\x20color:\x20@accentHue1Contrast1;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-accent-bg.md-hue-1\x20.secondary-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-accent-bg.md-hue-1\x20.icon\x20{\x0a\x20\x20\x20\x20color:\x20@accentHue1Contrast2;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-accent-bg.md-hue-1\x20.hint-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-accent-bg.md-hue-1\x20.disabled-text\x20{\x0a\x20\x20\x20\x20color:\x20@accentHue1Contrast3;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-accent-bg.md-hue-1\x20.fade-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-accent-bg.md-hue-1\x20.divider\x20{\x0a\x20\x20\x20\x20color:\x20@accentHue1Contrast4;\x0a}\x0a\x0a/*\x20Accent,\x20Hue-2\x20*/\x0a[md-theme=\x22@themeName\x22]\x20.md-accent-bg.md-hue-2\x20{\x0a\x20\x20\x20\x20background-color:\x20@accentHue2Color;\x0a\x20\x20\x20\x20color:\x20@accentHue2Contrast1;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-accent-bg.md-hue-2\x20.secondary-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-accent-bg.md-hue-2\x20.icon\x20{\x0a\x20\x20\x20\x20color:\x20@accentHue2Contrast2;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-accent-bg.md-hue-2\x20.hint-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-accent-bg.md-hue-2\x20.disabled-text\x20{\x0a\x20\x20\x20\x20color:\x20@accentHue2Contrast3;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-accent-bg.md-hue-2\x20.fade-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-accent-bg.md-hue-2\x20.divider\x20{\x0a\x20\x20\x20\x20color:\x20@accentHue2Contrast4;\x0a}\x0a\x0a/*\x20Accent,\x20Hue-3\x20*/\x0a[md-theme=\x22@themeName\x22]\x20.md-accent-bg.md-hue-3\x20{\x0a\x20\x20\x20\x20background-color:\x20@accentHue3Color;\x0a\x20\x20\x20\x20color:\x20@accentHue3Contrast1;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-accent-bg.md-hue-3\x20.secondary-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-accent-bg.md-hue-3\x20.icon\x20{\x0a\x20\x20\x20\x20color:\x20@accentHue3Contrast1;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-accent-bg.md-hue-3\x20.hint-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-accent-bg.md-hue-3\x20.disabled-text\x20{\x0a\x20\x20\x20\x20color:\x20@accentHue3Contrast3;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-accent-bg.md-hue-3\x20.fade-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-accent-bg.md-hue-3\x20.divider\x20{\x0a\x20\x20\x20\x20color:\x20@accentHue3Contrast4;\x0a}\x0a\x0a/*\x20Accent\x20foreground\x20*/\x0a[md-theme=\x22@themeName\x22]\x20.md-accent-fg\x20{\x0a\x20\x20\x20\x20color:\x20@accentDefaultColor\x20!important;\x0a}\x0a\x0a/*\x20Accent\x20foreground,\x20Hue-1\x20*/\x0a[md-theme=\x22@themeName\x22]\x20.md-accent-fg.md-hue-1\x20{\x0a\x20\x20\x20\x20color:\x20@accentHue1Color\x20!important;\x0a}\x0a\x0a/*\x20Accent\x20foreground,\x20Hue-2\x20*/\x0a[md-theme=\x22@themeName\x22]\x20.md-accent-fg.md-hue-2\x20{\x0a\x20\x20\x20\x20color:\x20@accentHue2Color\x20!important;\x0a}\x0a\x0a/*\x20Accent\x20foreground,\x20Hue-3\x20*/\x0a[md-theme=\x22@themeName\x22]\x20.md-accent-fg.md-hue-3\x20{\x0a\x20\x20\x20\x20color:\x20@accentHue3Color\x20!important;\x0a}\x0a\x0a/*\x20Warn\x20*/\x0a[md-theme=\x22@themeName\x22]\x20.md-warn-bg\x20{\x0a\x20\x20\x20\x20background-color:\x20@warnDefaultColor;\x0a\x20\x20\x20\x20color:\x20@warnDefaultContrast1;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-warn-bg\x20.secondary-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-warn-bg\x20.icon\x20{\x0a\x20\x20\x20\x20color:\x20@warnDefaultContrast2;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-warn-bg\x20.hint-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-warn-bg\x20.disabled-text\x20{\x0a\x20\x20\x20\x20color:\x20@warnDefaultContrast3;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-warn-bg\x20.fade-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-warn-bg\x20.divider\x20{\x0a\x20\x20\x20\x20color:\x20@warnDefaultContrast4;\x0a}\x0a\x0a/*\x20Warn,\x20Hue-1\x20*/\x0a[md-theme=\x22@themeName\x22]\x20.md-warn-bg.md-hue-1\x20{\x0a\x20\x20\x20\x20background-color:\x20@warnHue1Color;\x0a\x20\x20\x20\x20color:\x20@warnHue1Contrast1;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-warn-bg.md-hue-1\x20.secondary-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-warn-bg.md-hue-1\x20.icon\x20{\x0a\x20\x20\x20\x20color:\x20@warnHue1Contrast2;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-warn-bg.md-hue-1\x20.hint-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-warn-bg.md-hue-1\x20.disabled-text\x20{\x0a\x20\x20\x20\x20color:\x20@warnHue1Contrast3;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-warn-bg.md-hue-1\x20.fade-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-warn-bg.md-hue-1\x20.divider\x20{\x0a\x20\x20\x20\x20color:\x20@warnHue1Contrast4;\x0a}\x0a\x0a/*\x20Warn,\x20Hue-2\x20*/\x0a[md-theme=\x22@themeName\x22]\x20.md-warn-bg.md-hue-2\x20{\x0a\x20\x20\x20\x20background-color:\x20@warnHue2Color;\x0a\x20\x20\x20\x20color:\x20@warnHue2Contrast1;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-warn-bg.md-hue-2\x20.secondary-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-warn-bg.md-hue-2\x20.icon\x20{\x0a\x20\x20\x20\x20color:\x20@warnHue2Contrast2;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-warn-bg.md-hue-2\x20.hint-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-warn-bg.md-hue-2\x20.disabled-text\x20{\x0a\x20\x20\x20\x20color:\x20@warnHue2Contrast3;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-warn-bg.md-hue-2\x20.fade-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-warn-bg.md-hue-2\x20.divider\x20{\x0a\x20\x20\x20\x20color:\x20@warnHue2Contrast4;\x0a}\x0a\x0a/*\x20Warn,\x20Hue-3\x20*/\x0a[md-theme=\x22@themeName\x22]\x20.md-warn-bg.md-hue-3\x20{\x0a\x20\x20\x20\x20background-color:\x20@warnHue3Color;\x0a\x20\x20\x20\x20color:\x20@warnHue3Contrast1;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-warn-bg.md-hue-3\x20.secondary-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-warn-bg.md-hue-3\x20.icon\x20{\x0a\x20\x20\x20\x20color:\x20@warnHue3Contrast1;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-warn-bg.md-hue-3\x20.hint-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-warn-bg.md-hue-3\x20.disabled-text\x20{\x0a\x20\x20\x20\x20color:\x20@warnHue3Contrast3;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-warn-bg.md-hue-3\x20.fade-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-warn-bg.md-hue-3\x20.divider\x20{\x0a\x20\x20\x20\x20color:\x20@warnHue3Contrast4;\x0a}\x0a\x0a/*\x20Warn\x20foreground\x20*/\x0a[md-theme=\x22@themeName\x22]\x20.md-warn-fg\x20{\x0a\x20\x20\x20\x20color:\x20@warnDefaultColor\x20!important;\x0a}\x0a\x0a/*\x20Warn\x20foreground,\x20Hue-1\x20*/\x0a[md-theme=\x22@themeName\x22]\x20.md-warn-fg.md-hue-1\x20{\x0a\x20\x20\x20\x20color:\x20@warnHue1Color\x20!important;\x0a}\x0a\x0a/*\x20Warn\x20foreground,\x20Hue-2\x20*/\x0a[md-theme=\x22@themeName\x22]\x20.md-warn-fg.md-hue-2\x20{\x0a\x20\x20\x20\x20color:\x20@warnHue2Color\x20!important;\x0a}\x0a\x0a/*\x20Warn\x20foreground,\x20Hue-3\x20*/\x0a[md-theme=\x22@themeName\x22]\x20.md-warn-fg.md-hue-3\x20{\x0a\x20\x20\x20\x20color:\x20@warnHue3Color\x20!important;\x0a}\x0a\x0a/*\x20Background\x20*/\x0a[md-theme=\x22@themeName\x22]\x20.md-background-bg\x20{\x0a\x20\x20\x20\x20background-color:\x20@backgroundDefaultColor;\x0a\x20\x20\x20\x20color:\x20@backgroundDefaultContrast1;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-background-bg\x20.secondary-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-background-bg\x20.icon\x20{\x0a\x20\x20\x20\x20color:\x20@backgroundDefaultContrast2;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-background-bg\x20.hint-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-background-bg\x20.disabled-text\x20{\x0a\x20\x20\x20\x20color:\x20@backgroundDefaultContrast3;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-background-bg\x20.fade-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-background-bg\x20.divider\x20{\x0a\x20\x20\x20\x20color:\x20@backgroundDefaultContrast4;\x0a}\x0a\x0a/*\x20Background,\x20Hue-1\x20*/\x0a[md-theme=\x22@themeName\x22]\x20.md-background-bg.md-hue-1\x20{\x0a\x20\x20\x20\x20background-color:\x20@backgroundHue1Color;\x0a\x20\x20\x20\x20color:\x20@backgroundHue1Contrast1;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-background-bg.md-hue-1\x20.secondary-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-background-bg.md-hue-1\x20.icon\x20{\x0a\x20\x20\x20\x20color:\x20@backgroundHue1Contrast2;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-background-bg.md-hue-1\x20.hint-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-background-bg.md-hue-1\x20.disabled-text\x20{\x0a\x20\x20\x20\x20color:\x20@backgroundHue1Contrast3;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-background-bg.md-hue-1\x20.fade-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-background-bg.md-hue-1\x20.divider\x20{\x0a\x20\x20\x20\x20color:\x20@backgroundHue1Contrast4;\x0a}\x0a\x0a/*\x20Background,\x20Hue-2\x20*/\x0a[md-theme=\x22@themeName\x22]\x20.md-background-bg.md-hue-2\x20{\x0a\x20\x20\x20\x20background-color:\x20@backgroundHue2Color;\x0a\x20\x20\x20\x20color:\x20@backgroundHue2Contrast1;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-background-bg.md-hue-2\x20.secondary-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-background-bg.md-hue-2\x20.icon\x20{\x0a\x20\x20\x20\x20color:\x20@backgroundHue2Contrast2;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-background-bg.md-hue-2\x20.hint-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-background-bg.md-hue-2\x20.disabled-text\x20{\x0a\x20\x20\x20\x20color:\x20@backgroundHue2Contrast3;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-background-bg.md-hue-2\x20.fade-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-background-bg.md-hue-2\x20.divider\x20{\x0a\x20\x20\x20\x20color:\x20@backgroundHue2Contrast4;\x0a}\x0a\x0a/*\x20Background,\x20Hue-3\x20*/\x0a[md-theme=\x22@themeName\x22]\x20.md-background-bg.md-hue-3\x20{\x0a\x20\x20\x20\x20background-color:\x20@backgroundHue3Color;\x0a\x20\x20\x20\x20color:\x20@backgroundHue3Contrast1;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-background-bg.md-hue-3\x20.secondary-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-background-bg.md-hue-3\x20.icon\x20{\x0a\x20\x20\x20\x20color:\x20@backgroundHue3Contrast1;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-background-bg.md-hue-3\x20.hint-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-background-bg.md-hue-3\x20.disabled-text\x20{\x0a\x20\x20\x20\x20color:\x20@backgroundHue3Contrast3;\x0a}\x0a\x0a[md-theme=\x22@themeName\x22]\x20.md-background-bg.md-hue-3\x20.fade-text,\x0a[md-theme=\x22@themeName\x22]\x20.md-background-bg.md-hue-3\x20.divider\x20{\x0a\x20\x20\x20\x20color:\x20@backgroundHue3Contrast4;\x0a}\x0a\x0a/*\x20Background\x20foreground\x20*/\x0a[md-theme=\x22@themeName\x22]\x20.md-background-fg\x20{\x0a\x20\x20\x20\x20color:\x20@backgroundDefaultColor\x20!important;\x0a}\x0a\x0a/*\x20Background\x20foreground,\x20Hue-1\x20*/\x0a[md-theme=\x22@themeName\x22]\x20.md-background-fg.md-hue-1\x20{\x0a\x20\x20\x20\x20color:\x20@backgroundHue1Color\x20!important;\x0a}\x0a\x0a/*\x20Background\x20foreground,\x20Hue-2\x20*/\x0a[md-theme=\x22@themeName\x22]\x20.md-background-fg.md-hue-2\x20{\x0a\x20\x20\x20\x20color:\x20@backgroundHue2Color\x20!important;\x0a}\x0a\x0a/*\x20Background\x20foreground,\x20Hue-3\x20*/\x0a[md-theme=\x22@themeName\x22]\x20.md-background-fg.md-hue-3\x20{\x0a\x20\x20\x20\x20color:\x20@backgroundHue3Color\x20!important;\x0a}',_0xcf46dc=new RegExp(Object[_0x26f70a('0xe22')](_0x39bdd5)['join']('|'),'gi'),_0x290a3d=_0x426d4f['replace'](_0xcf46dc,function(_0x2052b4){return _0x39bdd5[_0x2052b4];}),_0x53afac=angular[_0x26f70a('0x1e73')](_0x26f70a('0x6f5')),_0x9f89=angular['element'](_0x26f70a('0x201c'));_0x9f89[_0x26f70a('0x254b')](_0x290a3d),_0x53afac[_0x26f70a('0x155a')](_0x9f89);}function _0x3ce78f(_0x29ef21,_0x293f19){const _0x264f1e=a0_0xaf0c,_0x41ecb7=_0x293f19||![];_0x29ef21['length']===0x4&&_0x29ef21[0x0]===0xff&&_0x29ef21[0x1]===0xff&&_0x29ef21[0x2]===0xff&&_0x29ef21['splice'](0x3,0x4);_0x41ecb7&&(_0x29ef21=_0x51fe55(_0x29ef21,_0x41ecb7));if(_0x29ef21[_0x264f1e('0x1e22')]===0x3)return _0x264f1e('0xd47')+_0x29ef21[_0x264f1e('0xa04')](',')+')';else{if(_0x29ef21[_0x264f1e('0x1e22')]===0x4)return _0x264f1e('0xb96')+_0x29ef21['join'](',')+')';else _0x1c5c08[_0x264f1e('0x255')](_0x264f1e('0x1da9')+_0x29ef21['length']+'\x0a'+_0x264f1e('0x1da0'));}}function _0x51fe55(_0x1b180b,_0x474526){const _0x2d1520=a0_0xaf0c,_0x54e7e0={'white':{0x1:'1',0x2:_0x2d1520('0x1ee1'),0x3:'0.3',0x4:_0x2d1520('0xddc')},'black':{0x1:'0.87',0x2:_0x2d1520('0x2739'),0x3:_0x2d1520('0x1855'),0x4:'0.12'}};if(_0x1b180b[0x0]===0xff&&_0x1b180b[0x1]===0xff&&_0x1b180b[0x2]===0xff)_0x1b180b[0x3]=_0x54e7e0[_0x2d1520('0x1f1a')][_0x474526];else _0x1b180b[0x0]===0x0&&_0x1b180b[0x1]===0x0&&_0x1b180b[0x2]===0x0&&(_0x1b180b[0x3]=_0x54e7e0[_0x2d1520('0x1e0b')][_0x474526]);return _0x1b180b;}function _0x327028(_0x22fc5d){const _0x642e4d=a0_0xaf0c;return _0x22fc5d[_0x642e4d('0x1625')](0x0)['toUpperCase']()+_0x22fc5d[_0x642e4d('0x1b77')](0x1);}}const _0x49f0da=_0x273825,_0x5014b1=[{'name':_0x21d0f5('0x21cf'),'options':{0x32:_0x21d0f5('0x2162'),0x64:'#c2d4ef',0xc8:_0x21d0f5('0x10d7'),0x12c:_0x21d0f5('0x1e02'),0x190:_0x21d0f5('0xa57'),0x1f4:_0x21d0f5('0xe5d'),0x258:_0x21d0f5('0xf31'),0x2bc:_0x21d0f5('0xa76'),0x320:_0x21d0f5('0x7f0'),0x384:'#1a3865','A100':'#c2d4ef','A200':_0x21d0f5('0x10d7'),'A400':_0x21d0f5('0xa57'),'A700':_0x21d0f5('0xa76'),'contrastDefaultColor':'light','contrastDarkColors':'50\x20100\x20200\x20A100','contrastStrongLightColors':_0x21d0f5('0x3fd')}},{'name':_0x21d0f5('0x18bc'),'options':{0x32:'#ececee',0x64:'#c5c6cb',0xc8:'#9ea1a9',0x12c:'#7d818c',0x190:_0x21d0f5('0x644'),0x1f4:_0x21d0f5('0x1a5a'),0x258:_0x21d0f5('0x7b1'),0x2bc:_0x21d0f5('0x1bc2'),0x320:_0x21d0f5('0x5d6'),0x384:'#1e2129','A100':_0x21d0f5('0x12a6'),'A200':_0x21d0f5('0x14bb'),'A400':'#5c616f','A700':_0x21d0f5('0x1bc2'),'contrastDefaultColor':_0x21d0f5('0x25af'),'contrastDarkColors':_0x21d0f5('0x2809'),'contrastStrongLightColors':_0x21d0f5('0x3fd')}}],_0x5ad8c6=_0x5014b1,_0x10b743={'default':{'primary':{'name':_0x21d0f5('0x18bc'),'hues':{'default':_0x21d0f5('0xc75'),'hue-1':'500','hue-2':_0x21d0f5('0x254f'),'hue-3':'400'}},'accent':{'name':_0x21d0f5('0x1cfc'),'hues':{'default':_0x21d0f5('0x254f'),'hue-1':_0x21d0f5('0x1a1e'),'hue-2':'700','hue-3':_0x21d0f5('0x19e')}},'warn':{'name':'red'},'background':{'name':_0x21d0f5('0x2359'),'hues':{'default':_0x21d0f5('0x19e'),'hue-1':_0x21d0f5('0x19e'),'hue-2':'100','hue-3':'300'}}},'pinkTheme':{'primary':{'name':'blue-grey','hues':{'default':_0x21d0f5('0x236c'),'hue-1':_0x21d0f5('0x254f'),'hue-2':_0x21d0f5('0x1a1e'),'hue-3':_0x21d0f5('0x19e')}},'accent':{'name':_0x21d0f5('0x1079'),'hues':{'default':_0x21d0f5('0x1a1e'),'hue-1':'300','hue-2':_0x21d0f5('0x254f'),'hue-3':_0x21d0f5('0x19e')}},'warn':{'name':'blue'},'background':{'name':_0x21d0f5('0x2359'),'hues':{'default':_0x21d0f5('0x19e'),'hue-1':'A100','hue-2':_0x21d0f5('0x435'),'hue-3':_0x21d0f5('0x1385')}}},'tealTheme':{'primary':{'name':_0x21d0f5('0x21cf'),'hues':{'default':'900','hue-1':'600','hue-2':'500','hue-3':_0x21d0f5('0x19e')}},'accent':{'name':_0x21d0f5('0x2347'),'hues':{'default':_0x21d0f5('0x42d'),'hue-1':'400','hue-2':'600','hue-3':_0x21d0f5('0x19e')}},'warn':{'name':_0x21d0f5('0x214f')},'background':{'name':_0x21d0f5('0x2359'),'hues':{'default':'A100','hue-1':_0x21d0f5('0x19e'),'hue-2':_0x21d0f5('0x435'),'hue-3':_0x21d0f5('0x1385')}}}},_0x516eb6=_0x10b743;_0x6cd80a[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1120'),_0x21d0f5('0x26a5'),_0x21d0f5('0x1bee')];function _0x6cd80a(_0x439fd7,_0x485c9c,_0x3c3c8a){const _0x448338=_0x21d0f5;let _0x34a612;angular[_0x448338('0x160')](['ngCookies'])[_0x448338('0x2203')]([_0x448338('0x5d8'),function(_0x44d32d){_0x34a612=_0x44d32d;}]);const _0x360bc7=_0x34a612[_0x448338('0x268e')](_0x448338('0x19d7'));_0x360bc7&&(_0x3c3c8a[_0x448338('0xa8d')]=_0x360bc7),_0x439fd7[_0x448338('0x1d74')](!![]),angular[_0x448338('0x1f88')](_0x485c9c,function(_0x4978de){const _0x186ef1=_0x448338;_0x439fd7[_0x186ef1('0x1030')](_0x4978de[_0x186ef1('0x1909')],_0x4978de[_0x186ef1('0x249a')]);}),angular[_0x448338('0x1f88')](_0x3c3c8a,function(_0x5a7e9b,_0x2f9c4f){const _0x4bdd6c=_0x448338;_0x439fd7[_0x4bdd6c('0x242d')](_0x2f9c4f)[_0x4bdd6c('0x27b0')](_0x5a7e9b[_0x4bdd6c('0x15d6')][_0x4bdd6c('0x1909')],_0x5a7e9b[_0x4bdd6c('0x15d6')][_0x4bdd6c('0x249e')])[_0x4bdd6c('0x1993')](_0x5a7e9b[_0x4bdd6c('0x1108')][_0x4bdd6c('0x1909')],_0x5a7e9b[_0x4bdd6c('0x1108')]['hues'])['warnPalette'](_0x5a7e9b['warn'][_0x4bdd6c('0x1909')],_0x5a7e9b['warn'][_0x4bdd6c('0x249e')])[_0x4bdd6c('0xc25')](_0x5a7e9b[_0x4bdd6c('0x1f56')]['name'],_0x5a7e9b[_0x4bdd6c('0x1f56')]['hues']);});}const _0x3b8cec=_0x6cd80a;_0x102ac8['$inject']=[_0x21d0f5('0x5d8'),'$log',_0x21d0f5('0x466')];function _0x102ac8(_0x41c749,_0x142c48,_0x5989ed){const _0x67312c={'getRegisteredPalettes':_0x59319c,'getRegisteredThemes':_0x49060d,'setActiveTheme':_0x561fb5,'setThemesList':_0x2801f5,'themes':{'list':{},'active':{'name':'','theme':{}}}};return _0x67312c;function _0x59319c(){const _0x31806a=a0_0xaf0c;return _0x5989ed[_0x31806a('0x1c25')];}function _0x49060d(){const _0x2c4c33=a0_0xaf0c;return _0x5989ed[_0x2c4c33('0x1ff2')];}function _0x561fb5(_0x710277){const _0x32a669=a0_0xaf0c;if(angular[_0x32a669('0x13b9')](_0x67312c[_0x32a669('0x24b')][_0x32a669('0x257d')][_0x710277])){if(angular[_0x32a669('0x13b9')](_0x67312c[_0x32a669('0x24b')][_0x32a669('0x257d')][_0x32a669('0xb2f')])){_0x142c48[_0x32a669('0x255')](_0x32a669('0x15a'));return;}_0x142c48[_0x32a669('0x609')](_0x32a669('0xcb4')+_0x710277+_0x32a669('0x1571')),_0x67312c[_0x32a669('0x24b')][_0x32a669('0x2668')][_0x32a669('0x1909')]=_0x32a669('0xb2f'),_0x67312c[_0x32a669('0x24b')][_0x32a669('0x2668')][_0x32a669('0x242d')]=_0x67312c[_0x32a669('0x24b')][_0x32a669('0x257d')][_0x32a669('0xb2f')],_0x41c749[_0x32a669('0x2318')](_0x32a669('0x4fd'),_0x67312c[_0x32a669('0x24b')][_0x32a669('0x2668')][_0x32a669('0x1909')]);return;}_0x67312c['themes']['active'][_0x32a669('0x1909')]=_0x710277,_0x67312c[_0x32a669('0x24b')][_0x32a669('0x2668')][_0x32a669('0x242d')]=_0x67312c[_0x32a669('0x24b')][_0x32a669('0x257d')][_0x710277],_0x41c749[_0x32a669('0x2318')](_0x32a669('0x4fd'),_0x710277);}function _0x2801f5(_0x385b4c){const _0x3ce2eb=a0_0xaf0c;_0x67312c[_0x3ce2eb('0x24b')]['list']=_0x385b4c;}}const _0x46d82d=_0x102ac8;;let _0x26810a=angular[_0x21d0f5('0x2768')](_0x21d0f5('0x1f34'),['ngAnimate','ngAria',_0x21d0f5('0x238e'),_0x21d0f5('0xa8f'),_0x21d0f5('0x1388'),_0x21d0f5('0x1c5d'),'ngMaterial',_0x21d0f5('0x1c3d'),_0x21d0f5('0x17fb'),'ui.router.state.events',_0x21d0f5('0x1ac7'),_0x21d0f5('0x1922'),_0x21d0f5('0x4e1')])[_0x21d0f5('0x10e5')]('motionConfig',_0x2742be)[_0x21d0f5('0x53a')](_0x4055a4)['run'](_0x151179)[_0x21d0f5('0x23eb')](_0x21d0f5('0x5'),_0x43c5c2);_0x26810a=_0x4f2169['reduce']((_0x588f51,[_0x5047ee,_0xdce60,_0x254b69])=>{const _0x17f217=_0x21d0f5;switch(_0x254b69){case _0x17f217('0x2544'):_0x588f51['directive'](_0x5047ee,_0xdce60);break;case _0x17f217('0x10e5'):_0x588f51[_0x17f217('0x10e5')](_0x5047ee,_0xdce60);break;case _0x17f217('0x23eb'):_0x588f51[_0x17f217('0x23eb')](_0x5047ee,_0xdce60);break;case'factory':_0x588f51[_0x17f217('0x2729')](_0x5047ee,_0xdce60);break;default:break;}return _0x588f51;},_0x26810a),_0x26810a['factory']('quickFilterManager',_0x4e7fc0)[_0x21d0f5('0xdb4')]('altDate',_0x426cae)[_0x21d0f5('0xdb4')](_0x21d0f5('0xde6'),_0x395dd7)['filter'](_0x21d0f5('0x26e9'),_0x187d29)[_0x21d0f5('0xdb4')](_0x21d0f5('0x16f1'),_0x4504a1)[_0x21d0f5('0xdb4')](_0x21d0f5('0x2301'),_0xec78db)['filter']('capitalize',_0x428afc)[_0x21d0f5('0xdb4')](_0x21d0f5('0x1636'),_0x48e80f)[_0x21d0f5('0xdb4')](_0x21d0f5('0x1dc7'),_0x407c99)['filter'](_0x21d0f5('0x271c'),_0x56b338)[_0x21d0f5('0xdb4')](_0x21d0f5('0x1d68'),_0x43fb62)[_0x21d0f5('0xdb4')](_0x21d0f5('0x520'),_0x237754)[_0x21d0f5('0xdb4')](_0x21d0f5('0x1b8e'),_0x1e4c78)[_0x21d0f5('0x10e5')](_0x21d0f5('0x1972'),_0x4b2973)[_0x21d0f5('0x2729')](_0x21d0f5('0x218e'),_0x1cd8b8)['factory'](_0x21d0f5('0x2558'),_0x4bf449)[_0x21d0f5('0x10e5')]('msApi',_0x1998ef)[_0x21d0f5('0x2729')](_0x21d0f5('0xda9'),_0x5c983a)[_0x21d0f5('0x23eb')](_0x21d0f5('0x89b'),_0x508801)[_0x21d0f5('0x2544')](_0x21d0f5('0x17ec'),_0x4df875)[_0x21d0f5('0x2729')](_0x21d0f5('0x15d1'),_0x49f0da)['constant'](_0x21d0f5('0x26a5'),_0x5ad8c6)[_0x21d0f5('0x1063')](_0x21d0f5('0x1bee'),_0x516eb6)[_0x21d0f5('0x53a')](_0x3b8cec)[_0x21d0f5('0x13ad')](_0x21d0f5('0xc94'),_0x46d82d),_0x104371['$inject']=[_0x21d0f5('0x1b80'),_0x21d0f5('0x5d8'),_0x21d0f5('0x23e1'),_0x21d0f5('0x1d56'),_0x21d0f5('0x1713'),_0x21d0f5('0x1150'),'api'];function _0x104371(_0xf2fae0,_0x1d042f,_0x1a9461,_0x10be2d,_0x419d72,_0x1a1506,_0x3bd7ce){const _0x309dc5=_0x21d0f5,_0x561d4c=this;_0x561d4c[_0x309dc5('0x175b')]=angular[_0x309dc5('0x1e73')]('body'),_0x561d4c[_0x309dc5('0x1e67')]={'suppressScrollX':!![]},_0x561d4c['setting']=_0x1a9461,_0x561d4c['baseUrl']=_0x3bd7ce[_0x309dc5('0x23f4')],_0x561d4c[_0x309dc5('0x224d')]=_0x3d029f,_0x561d4c[_0x309dc5('0x1f82')]=_0x49340f,_0x561d4c['getLogo']=_0x2da26a,_0x10be2d['on'](_0x309dc5('0x20f9'),_0x431ebc),_0x10be2d['on'](_0x309dc5('0xf9f'),_0x431ebc),_0x10be2d['on'](_0x309dc5('0xcf0'),_0x50852e),_0x10be2d['on']('plugin:save',_0x10fb10),_0x10be2d['on'](_0x309dc5('0x208d'),_0x10fb10),_0x10be2d['on']('plugin:remove',_0x3bc5b1);function _0x3d029f(){const _0x4b8ab9=_0x309dc5;_0x561d4c['folded']=_0x1d042f[_0x4b8ab9('0xbaa')](_0x4b8ab9('0xf3b'))===_0x4b8ab9('0x204c')||![];}function _0x49340f(){const _0x29e5b1=_0x309dc5;_0x561d4c[_0x29e5b1('0x26dc')]=!_0x561d4c[_0x29e5b1('0x26dc')],_0x1d042f[_0x29e5b1('0x2318')](_0x29e5b1('0xf3b'),_0x561d4c[_0x29e5b1('0x26dc')]);}function _0x2da26a(){const _0x26b807=_0x309dc5;return _0x561d4c[_0x26b807('0x23e1')]['defaultHeaderWhiteLabel']?_0x26b807('0x1cd0'):_0x561d4c['setting']['headerWhiteLabel'];}function _0x431ebc(_0x48f853){const _0x17ef7f=_0x309dc5;if(_0x48f853&&_0x48f853['id']){const _0x5197f7=0x1869f+_0x48f853['id'];_0x419d72[_0x17ef7f('0x265e')](_0x17ef7f('0x1f7c')+_0x5197f7,{'id':_0x5197f7,'title':_0x48f853[_0x17ef7f('0x1909')]||'NONAME','state':_0x17ef7f('0x214d'),'stateParams':_0x48f853,'weight':0x2,'hidden':function(){const _0x1b3d52=_0x17ef7f;return _0x1a1506[_0x1b3d52('0x4ee')](_0x1b3d52('0x18c4'))||!_0x1a1506['hasPermission'](_0x5197f7)&&!_0x1a1506[_0x1b3d52('0x4ee')]('admin');}});}}function _0x50852e(_0x20bee5){const _0x126450=_0x309dc5;if(_0x20bee5&&_0x20bee5['id']){const _0x3d8ed5=0x1869f+_0x20bee5['id'];_0x419d72[_0x126450('0x2639')](_0x126450('0x1f7c')+_0x3d8ed5);}}function _0x10fb10(_0x349486){const _0x222374=_0x309dc5;if(_0x349486&&_0x349486['id']&&_0x349486[_0x222374('0x132d')]!='never'){if(_0x349486[_0x222374('0x2668')]){if(_0x349486[_0x222374('0x132d')]==_0x222374('0x27e5')||_0x349486[_0x222374('0x132d')]==_0x222374('0x18a3')){_0x419d72['saveItem'](_0x222374('0x2b1'),{'id':0x76c,'title':_0x222374('0x2443'),'translate':_0x222374('0xc88'),'icon':_0x222374('0x206d'),'weight':0x11,'hidden':function(){const _0x1bad62=_0x222374;return _0x1a1506['hasRole'](_0x1bad62('0x18c4'))||!_0x1a1506[_0x1bad62('0x1709')](0x76c)&&!_0x1a1506[_0x1bad62('0x4ee')](_0x1bad62('0xf45'));}});const _0x245c37=0x15b38+_0x349486['id'];_0x419d72[_0x222374('0x265e')]('apps.plugins.plugin_'+_0x245c37,{'id':_0x245c37,'title':_0x349486['name']||_0x222374('0x1f4f'),'state':_0x222374('0x179a'),'stateParams':_0x349486,'weight':0x2,'hidden':function(){const _0x47f93e=_0x222374;return _0x1a1506[_0x47f93e('0x4ee')](_0x47f93e('0x18c4'))||!_0x1a1506[_0x47f93e('0x1709')](_0x245c37)&&!_0x1a1506[_0x47f93e('0x4ee')]('admin');}}),_0x419d72[_0x222374('0x1c16')]();}}else{const _0x1cde19=0x15b38+_0x349486['id'];_0x2717e4(0x76c,_0x1cde19)&&(_0x349486['sidebar']=='always'||_0x349486['sidebar']=='adminOnly')&&(_0x419d72[_0x222374('0x2639')]('apps.plugins.plugin_'+_0x1cde19),!_0x2e9973(0x76c)&&_0x419d72[_0x222374('0x265e')]('apps.plugins',{'id':0x76c,'title':_0x222374('0x2443'),'translate':_0x222374('0xc88'),'icon':'icon-apps','weight':0x11,'hidden':function(){return!![];}}));}}}function _0x3bc5b1(_0x39dcfe){const _0x36c6ad=_0x309dc5;if(_0x39dcfe&&_0x39dcfe['id']&&_0x39dcfe['sidebar']!=_0x36c6ad('0xf95')){const _0x13a49b=0x15b38+_0x39dcfe['id'];(_0x39dcfe['sidebar']==_0x36c6ad('0x27e5')||_0x39dcfe[_0x36c6ad('0x132d')]==_0x36c6ad('0x18a3'))&&(_0x419d72[_0x36c6ad('0x2639')]('apps.plugins.plugin_'+_0x13a49b),!_0x2e9973(0x76c)&&_0x419d72['saveItem'](_0x36c6ad('0x2b1'),{'id':0x76c,'title':_0x36c6ad('0x2443'),'translate':_0x36c6ad('0xc88'),'icon':_0x36c6ad('0x206d'),'weight':0x11,'hidden':function(){return!![];}}));}}function _0x2e9973(_0x38e0f3){const _0x2e88a8=_0x309dc5,_0xa56542=_0x419d72[_0x2e88a8('0x132c')](),_0x33b610=_0x36f548()[_0x2e88a8('0x1ad4')](_0xa56542[0x0][_0x2e88a8('0xbc5')],{'id':_0x38e0f3});return _0x33b610&&_0x33b610[_0x2e88a8('0xbc5')][_0x2e88a8('0x1e22')]>0x0?!![]:![];}function _0x2717e4(_0x485bab,_0x12c522){const _0x22028f=_0x309dc5,_0x29afca=_0x419d72['getNavigation'](),_0x210a87=_0x36f548()[_0x22028f('0x1ad4')](_0x29afca[0x0][_0x22028f('0xbc5')],{'id':_0x485bab});if(!_0x210a87)return![];return _0x36f548()[_0x22028f('0x1cb3')](_0x210a87[_0x22028f('0xbc5')],{'id':_0x12c522});}_0xf2fae0[_0x309dc5('0x12d8')]('$stateChangeSuccess',function(){const _0x5ee1da=_0x309dc5;_0x561d4c[_0x5ee1da('0x175b')][_0x5ee1da('0x11d9')]('ms-navigation-horizontal-mobile-menu-active');});}const _0x90cc86=_0x104371;;function _0x5014c3(){}angular[_0x21d0f5('0x2768')]('app.navigation',[])[_0x21d0f5('0x53a')](_0x5014c3)[_0x21d0f5('0x23eb')](_0x21d0f5('0x1504'),_0x90cc86),_0x402965[_0x21d0f5('0x1e9a')]=['$scope',_0x21d0f5('0x1ca2'),'$mdToast',_0x21d0f5('0x12a5'),_0x21d0f5('0x21d9'),_0x21d0f5('0x23e1'),_0x21d0f5('0xf58')];function _0x402965(_0x3e0153,_0x29e22c,_0x3c4a85,_0x2cc6c0,_0x166140,_0x4293d9,_0x40058b){const _0x4382c6=_0x21d0f5,_0x5a843d=this;_0x5a843d['errors']=[],_0x5a843d[_0x4382c6('0x21d9')]=_0x166140,_0x5a843d[_0x4382c6('0x23e1')]=_0x4293d9,_0x5a843d[_0x4382c6('0xf58')]=_0x40058b,_0x5a843d['passwordPattern']=_0x5a843d[_0x4382c6('0x23e1')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x5a843d[_0x4382c6('0x1a8')]=_0x227887,_0x5a843d[_0x4382c6('0xc4e')]=_0x2c4ccd,_0x3e0153['$watch']('vm.password',function(_0x281164){const _0x3697b5=_0x4382c6;!_0x36f548()[_0x3697b5('0x1a80')](_0x5a843d[_0x3697b5('0x238')])&&(_0x281164===_0x5a843d[_0x3697b5('0x238')]?_0x3e0153[_0x3697b5('0x1197')][_0x3697b5('0x74')]['$setValidity'](_0x3697b5('0xa0a'),![]):_0x3e0153[_0x3697b5('0x1197')][_0x3697b5('0x74')][_0x3697b5('0x1a7f')]('oldPasswordMatch',!![]));});function _0x227887(){const _0xcb2abe=_0x4382c6;_0x5a843d[_0xcb2abe('0x120f')]=[],_0x2cc6c0['user'][_0xcb2abe('0x2a6')]({'id':_0x5a843d[_0xcb2abe('0x21d9')]['id']},{'oldPassword':_0x5a843d['oldPassword'],'newPassword':_0x5a843d[_0xcb2abe('0x74')]})['$promise'][_0xcb2abe('0x11bf')](function(){const _0x17c7da=_0xcb2abe;_0x3c4a85[_0x17c7da('0xb9')](_0x3c4a85['simple']()[_0x17c7da('0xad7')](_0x17c7da('0x1fea'))['position']('top\x20right')[_0x17c7da('0x227f')](0x1388)),_0x2c4ccd();})[_0xcb2abe('0x151d')](function(_0x3d84ee){const _0x282b63=_0xcb2abe;console[_0x282b63('0x255')](_0x3d84ee),_0x5a843d[_0x282b63('0x120f')]=_0x3d84ee[_0x282b63('0x4e8')]['errors']&&_0x3d84ee[_0x282b63('0x4e8')][_0x282b63('0x120f')][_0x282b63('0x1e22')]?_0x3d84ee['data']['errors']:[{'message':_0x3d84ee[_0x282b63('0x4e8')][_0x282b63('0x1b86')]||_0x282b63('0x1699'),'type':'api.user.changePassword'}];});}function _0x2c4ccd(){const _0x21780b=_0x4382c6;_0x29e22c[_0x21780b('0x237e')]();}}const _0x45e60e=_0x402965;_0xd028d9[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),'$state','$location','$mdDialog','toasty','api','preview',_0x21d0f5('0x8a1')];function _0xd028d9(_0x12212a,_0xb3a855,_0x517ae0,_0x59487b,_0x1fd23c,_0x3eea14,_0x4c514a,_0x2ae46a){const _0x209c2b=_0x21d0f5,_0x12f253=this;_0x12f253['customFieldsMap']=_0x2ae46a&&_0x2ae46a['rows']?_0x36f548()['mapValues'](_0x36f548()[_0x209c2b('0x2130')](_0x2ae46a[_0x209c2b('0x19b2')],function(_0x1fff97){const _0x3db39a=_0x209c2b;return _0x3db39a('0x57a')+_0x1fff97['id'];}),'name'):{},_0x12f253[_0x209c2b('0x120f')]=[],_0x12f253[_0x209c2b('0x1cc5')]=[],_0x12f253['preview']=_0x4c514a,_0x12f253['originated']=![],_0x12f253[_0x209c2b('0x164e')]=![],_0x12f253[_0x209c2b('0x1a3b')]=![],_0x12f253[_0x209c2b('0x1cc5')][_0x209c2b('0x105d')](_0x12f253[_0x209c2b('0x541')]['id']),_0x12f253[_0x209c2b('0x270e')]=_0x4fcb6e,_0x12f253[_0x209c2b('0xc4e')]=_0x303e91,_0x12f253[_0x209c2b('0x127d')]=_0x42492d,_0x12f253[_0x209c2b('0x597')]=_0x35e589,_0x12f253['getFirstAvailableContact']=_0x49ca18,_0x12f253[_0x209c2b('0x1f26')]=_0x2459b3,_0x12f253[_0x209c2b('0x27a1')]=_0xef880,_0x12f253[_0x209c2b('0x1a80')]=_0xef1ecf;function _0xef1ecf(_0x4f1a33){const _0x2f96d3=_0x209c2b;return _0x36f548()[_0x2f96d3('0x1a80')](_0x4f1a33);}function _0x2459b3(_0x4ee404){const _0x53ecdb=_0x209c2b;return _0x36f548()[_0x53ecdb('0x1eb7')](_0x4ee404,_0x53ecdb('0x57a'));}function _0xef880(_0x22988c){const _0x3e7a08=_0x209c2b;return _0x36f548()[_0x3e7a08('0x55a')]([_0x3e7a08('0x216e'),_0x3e7a08('0x5b9'),'ListId',_0x3e7a08('0x2342'),'createdAt',_0x3e7a08('0x8af'),'id',_0x3e7a08('0x2804'),_0x3e7a08('0x16c'),_0x3e7a08('0x2763'),_0x3e7a08('0x14ea'),'facebook',_0x3e7a08('0x1b33'),_0x3e7a08('0x472'),_0x3e7a08('0xbe3'),_0x3e7a08('0x26a2'),_0x3e7a08('0x1205'),'line',_0x3e7a08('0x270b')],_0x22988c);}function _0x4fcb6e(){const _0x596242=_0x209c2b;_0x12f253[_0x596242('0x1fab')]=!![],_0x12f253[_0x596242('0x164e')]=!![],_0x36f548()[_0x596242('0x1fc5')](_0x12f253[_0x596242('0x541')])?(_0x1fd23c[_0x596242('0x255')]({'title':_0x596242('0xbc9'),'msg':'Contact\x20not\x20available'}),_0x12f253[_0x596242('0x164e')]=![],_0x12f253['hopperIds']=[],_0x303e91(!![])):_0x3eea14[_0x596242('0x4db')][_0x596242('0xc23')]({'id':_0x12f253[_0x596242('0x541')]['id']})[_0x596242('0x1549')]['then'](function(){_0x303e91(!![]);})[_0x596242('0x151d')](function(_0x386667){const _0x47295e=_0x596242;_0x1fd23c[_0x47295e('0x255')]({'title':_0x47295e('0xbc9'),'msg':_0x386667[_0x47295e('0x4e8')]}),_0x303e91(!![]);})[_0x596242('0xa9b')](function(){const _0xc58ba0=_0x596242;_0x12f253[_0xc58ba0('0x164e')]=![],_0x12f253['hopperIds']=[];});}function _0x303e91(_0x125176){const _0x3fd251=_0x209c2b;_0x36f548()[_0x3fd251('0x1a80')](_0x125176)&&_0x3eea14[_0x3fd251('0x1d11')][_0x3fd251('0x5ab')]({'id':_0x12f253[_0x3fd251('0x541')]['id'],'UserId':null}),_0x59487b[_0x3fd251('0x237e')]();}_0x12212a[_0x209c2b('0x12d8')](_0x209c2b('0x4f7'),function(){const _0x27bb76=_0x209c2b;!_0x12f253[_0x27bb76('0x1fab')]&&_0x3eea14[_0x27bb76('0x1d11')][_0x27bb76('0x5ab')]({'id':_0x12f253[_0x27bb76('0x541')]['id'],'UserId':null});});function _0x42492d(){const _0x79a232=_0x209c2b;return _0x12f253[_0x79a232('0x1a3b')]=!![],_0x3eea14[_0x79a232('0x1d11')][_0x79a232('0x2682')]({'hopperIds':_0x12f253[_0x79a232('0x1cc5')],'direction':'next'})['$promise']['then'](function(_0x4754f1){const _0x13334e=_0x79a232;_0x12f253['disableGetContact']=![],!_0x36f548()[_0x13334e('0x1a80')](_0x4754f1)&&!_0x36f548()[_0x13334e('0x1a80')](_0x4754f1[_0x13334e('0x1c29')])&&_0x4754f1['Queue']['dialActive']?(!_0x12f253[_0x13334e('0x1fab')]&&_0x3eea14[_0x13334e('0x1d11')]['update']({'id':_0x12f253['preview']['id'],'UserId':null}),_0x12f253['preview']=_0x4754f1,_0x12f253[_0x13334e('0x1cc5')][_0x13334e('0x105d')](_0x12f253['preview']['id'])):(_0x12f253['hopperIds']=[],_0x59487b[_0x13334e('0x237e')](),_0x1fd23c[_0x13334e('0x870')]({'title':'PREVIEW','msg':'CAMPAIGN\x20NOT\x20ACTIVE'}));})[_0x79a232('0x151d')](function(_0x521000){const _0x46a62a=_0x79a232;_0x12f253[_0x46a62a('0x1a3b')]=![],_0x12f253[_0x46a62a('0x1cc5')]=[];if(_0x521000[_0x46a62a('0xff9')]===0x194)_0x12f253['getFirstAvailableContact']();else{if(_0x521000['data']&&_0x521000['data'][_0x46a62a('0x120f')]&&_0x521000[_0x46a62a('0x4e8')][_0x46a62a('0x120f')]['length']){_0x59487b[_0x46a62a('0x237e')]();for(let _0x79985f=0x0;_0x79985f<_0x521000[_0x46a62a('0x4e8')][_0x46a62a('0x120f')][_0x46a62a('0x1e22')];_0x79985f+=0x1){_0x1fd23c['error']({'title':_0x521000['data'][_0x46a62a('0x120f')][_0x79985f][_0x46a62a('0x19fd')],'msg':_0x521000['data'][_0x46a62a('0x120f')][_0x79985f]['message']});}}else _0x59487b[_0x46a62a('0x237e')](),_0x1fd23c[_0x46a62a('0x255')]({'title':_0x521000['status']?_0x46a62a('0x574')+_0x521000[_0x46a62a('0xff9')]+_0x46a62a('0xb0b')+_0x521000[_0x46a62a('0x212f')]:_0x46a62a('0x2733'),'msg':_0x521000[_0x46a62a('0x4e8')]?JSON[_0x46a62a('0x3e')](_0x521000['data'][_0x46a62a('0x1b86')]):_0x521000['toString']()});}});}function _0x35e589(){const _0x2b5eda=_0x209c2b;_0x12f253[_0x2b5eda('0x1a3b')]=!![];if(_0x12f253[_0x2b5eda('0x1cc5')]['length']>0x1){const _0x2d9288=_0x36f548()['without'](_0x12f253[_0x2b5eda('0x1cc5')],_0x12f253[_0x2b5eda('0x541')]['id']);return _0x3eea14['cmHopper'][_0x2b5eda('0x2682')]({'hopperIds':_0x2d9288,'direction':'prev'})[_0x2b5eda('0x1549')]['then'](function(_0x16d2f5){const _0x315bbd=_0x2b5eda;_0x12f253[_0x315bbd('0x1a3b')]=![],!_0x36f548()[_0x315bbd('0x1a80')](_0x16d2f5)&&!_0x36f548()[_0x315bbd('0x1a80')](_0x16d2f5[_0x315bbd('0x1c29')])&&_0x16d2f5[_0x315bbd('0x1c29')]['dialActive']?(_0x36f548()['remove'](_0x12f253['hopperIds'],function(_0x5db194){const _0x4007e9=_0x315bbd;return _0x5db194==_0x12f253[_0x4007e9('0x541')]['id'];}),!_0x12f253[_0x315bbd('0x1fab')]&&_0x3eea14[_0x315bbd('0x1d11')][_0x315bbd('0x5ab')]({'id':_0x12f253[_0x315bbd('0x541')]['id'],'UserId':null}),_0x12f253[_0x315bbd('0x541')]=_0x16d2f5):(_0x12f253[_0x315bbd('0x1cc5')]=[],_0x59487b[_0x315bbd('0x237e')](),_0x1fd23c['info']({'title':'PREVIEW','msg':_0x315bbd('0x163')}));})[_0x2b5eda('0x151d')](function(_0x61d1d8){const _0x29479e=_0x2b5eda;if(_0x61d1d8['status']===0x194)_0x12f253[_0x29479e('0x1cc5')]=[_0x12f253[_0x29479e('0x541')]['id']],_0x1fd23c[_0x29479e('0x870')]({'title':_0x29479e('0x1ce'),'msg':'PREVIOUS\x20CONTACTS\x20NOT\x20AVAILABLE'});else{if(_0x61d1d8['data']&&_0x61d1d8['data'][_0x29479e('0x120f')]&&_0x61d1d8['data']['errors'][_0x29479e('0x1e22')]){_0x12f253[_0x29479e('0x1cc5')]=[],_0x59487b['hide']();for(let _0x404103=0x0;_0x404103<_0x61d1d8[_0x29479e('0x4e8')]['errors']['length'];_0x404103+=0x1){_0x1fd23c['error']({'title':_0x61d1d8['data']['errors'][_0x404103][_0x29479e('0x19fd')],'msg':_0x61d1d8[_0x29479e('0x4e8')][_0x29479e('0x120f')][_0x404103][_0x29479e('0x1b86')]});}}else _0x12f253['hopperIds']=[],_0x59487b[_0x29479e('0x237e')](),_0x1fd23c[_0x29479e('0x255')]({'title':_0x61d1d8[_0x29479e('0xff9')]?'API:'+_0x61d1d8['status']+_0x29479e('0xb0b')+_0x61d1d8[_0x29479e('0x212f')]:'api\x20preview','msg':_0x61d1d8[_0x29479e('0x4e8')]?JSON['stringify'](_0x61d1d8[_0x29479e('0x4e8')][_0x29479e('0x1b86')]):_0x61d1d8[_0x29479e('0xaab')]()});}});}}function _0x49ca18(){const _0xfd35d2=_0x209c2b;return _0x12f253['disableGetContact']=!![],_0x1fd23c['info']({'title':_0xfd35d2('0x1ce'),'msg':_0xfd35d2('0x24f2')}),_0x3eea14[_0xfd35d2('0x1d11')][_0xfd35d2('0x2682')]({'hopperIds':[_0x12f253[_0xfd35d2('0x541')]['id']],'direction':'next'})[_0xfd35d2('0x1549')][_0xfd35d2('0x11bf')](function(_0x181553){const _0x566234=_0xfd35d2;!_0x36f548()[_0x566234('0x1a80')](_0x181553)&&!_0x36f548()[_0x566234('0x1a80')](_0x181553[_0x566234('0x1c29')])&&_0x181553[_0x566234('0x1c29')][_0x566234('0x8b6')]?(!_0x12f253[_0x566234('0x1fab')]&&_0x3eea14['cmHopper']['update']({'id':_0x12f253['preview']['id'],'UserId':null}),_0x12f253[_0x566234('0x541')]=_0x181553,_0x12f253[_0x566234('0x1cc5')][_0x566234('0x105d')](_0x12f253[_0x566234('0x541')]['id'])):(_0x59487b[_0x566234('0x237e')](),_0x1fd23c[_0x566234('0x870')]({'title':_0x566234('0x1ce'),'msg':_0x566234('0x163')}));})['catch'](function(_0x29d368){const _0xc755a2=_0xfd35d2;_0x59487b[_0xc755a2('0x237e')]();if(_0x29d368[_0xc755a2('0xff9')]===0x194)_0x1fd23c[_0xc755a2('0x870')]({'title':_0xc755a2('0x1ce'),'msg':'CONTACTS\x20NOT\x20AVAILABLE'});else{if(_0x29d368[_0xc755a2('0x4e8')]&&_0x29d368['data']['errors']&&_0x29d368['data']['errors'][_0xc755a2('0x1e22')])for(let _0x3c1b63=0x0;_0x3c1b63<_0x29d368[_0xc755a2('0x4e8')][_0xc755a2('0x120f')][_0xc755a2('0x1e22')];_0x3c1b63+=0x1){_0x1fd23c[_0xc755a2('0x255')]({'title':_0x29d368[_0xc755a2('0x4e8')][_0xc755a2('0x120f')][_0x3c1b63][_0xc755a2('0x19fd')],'msg':_0x29d368[_0xc755a2('0x4e8')][_0xc755a2('0x120f')][_0x3c1b63]['message']});}else _0x1fd23c[_0xc755a2('0x255')]({'title':_0x29d368[_0xc755a2('0xff9')]?_0xc755a2('0x574')+_0x29d368['status']+_0xc755a2('0xb0b')+_0x29d368[_0xc755a2('0x212f')]:_0xc755a2('0x2733'),'msg':_0x29d368['data']?JSON['stringify'](_0x29d368[_0xc755a2('0x4e8')][_0xc755a2('0x1b86')]):_0x29d368[_0xc755a2('0xaab')]()});}})[_0xfd35d2('0xa9b')](function(){const _0x21e434=_0xfd35d2;_0x12f253[_0x21e434('0x1a3b')]=![];});}}const _0x1ce7cb=_0xd028d9,_0x498457=_0x351988['p']+'src/js/modules/toolbar/preview/dialog.html/dialog.html',_0x2752cd=_0x351988['p']+'src/js/modules/toolbar/changepassword/changepassword.html/changepassword.html';_0x4abca1[_0x21d0f5('0x1e9a')]=['$scope',_0x21d0f5('0x5f2'),'$q','$state',_0x21d0f5('0x17f5'),'$location',_0x21d0f5('0x18fe'),_0x21d0f5('0xb6b'),'$mdToast','$window',_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),_0x21d0f5('0x5d8'),'toasty',_0x21d0f5('0x1713'),'Auth',_0x21d0f5('0x1d56'),_0x21d0f5('0x12a5'),_0x21d0f5('0x17ff'),'setting','$interval'];function _0x4abca1(_0x25bb48,_0x47b0c1,_0x41ecd5,_0x4a840f,_0x13ea9b,_0x2ec076,_0x37e173,_0x4a207d,_0x333526,_0x5504ec,_0x1c35b9,_0x1c76b6,_0xeef8ea,_0x48e703,_0x44bc10,_0x546c4e,_0x54642f,_0x4affce,_0x4cf630,_0x122af7,_0xa9ad79){const _0x4aac1b=_0x21d0f5,_0x30653a=this;_0x30653a['voiceQueues']={},_0x30653a['polling']=!![],_0x30653a[_0x4aac1b('0x23f4')]=_0x4affce[_0x4aac1b('0x23f4')];let _0x21d3dd;_0x47b0c1[_0x4aac1b('0x1f39')]={'search':''},_0x30653a[_0x4aac1b('0x12f2')]=[],_0x30653a['license']=_0x4cf630,_0x30653a['currentUser']=_0x546c4e[_0x4aac1b('0x2428')](),_0x30653a[_0x4aac1b('0x23a5')]=0x0,_0x30653a[_0x4aac1b('0x1ae0')]=0x0,_0x30653a[_0x4aac1b('0x2146')]=0x0;_0x30653a[_0x4aac1b('0x32a')][_0x4aac1b('0x111d')]==='agent'&&(_0x21d3dd=_0xa9ad79(_0x573644,0x3a97));_0x30653a['setting']=_0x122af7,_0x30653a[_0x4aac1b('0x175b')]=angular[_0x4aac1b('0x1e73')](_0x4aac1b('0x1d2')),_0x30653a[_0x4aac1b('0x1301')]={'realm':'asterisk','host':_0x2ec076[_0x4aac1b('0x14ec')](),'protocol':_0x2ec076[_0x4aac1b('0x1797')](),'remotePlayerId':'remote-audio','ua':_0x4aac1b('0x2651'),'license':_0x30653a[_0x4aac1b('0x17ff')][_0x4aac1b('0x75')],'phoneBarExpires':_0x30653a[_0x4aac1b('0x32a')][_0x4aac1b('0x2583')],'phoneBarPrefixRequired':_0x30653a['currentUser'][_0x4aac1b('0x1ede')]},_0x30653a['query']={'id':_0x546c4e[_0x4aac1b('0x2428')]()['id'],'fields':_0x4aac1b('0xc81'),'channel':_0x4aac1b('0x1bc3'),'nolimit':!![]},_0x30653a['userStatusOptions']=[{'title':_0x4aac1b('0x18d5'),'icon':_0x4aac1b('0xb82'),'color':_0x4aac1b('0x12a8')},{'title':'Away','icon':_0x4aac1b('0x540'),'color':_0x4aac1b('0x313')},{'title':'Do\x20not\x20Disturb','icon':_0x4aac1b('0x1926'),'color':'#F44336'},{'title':'Invisible','icon':_0x4aac1b('0x1d28'),'color':_0x4aac1b('0xb72')},{'title':_0x4aac1b('0x2756'),'icon':'icon-checkbox-blank-circle-outline','color':'#616161'}],_0x30653a[_0x4aac1b('0x1df8')]={'ar':{'title':_0x4aac1b('0x2018'),'translation':_0x4aac1b('0xf0c'),'code':'ar','flag':'ar'},'da':{'title':_0x4aac1b('0xaa9'),'translation':_0x4aac1b('0x324'),'code':'da','flag':'da'},'de':{'title':_0x4aac1b('0x1750'),'translation':_0x4aac1b('0x93d'),'code':'de','flag':'de'},'en':{'title':_0x4aac1b('0x1e7'),'translation':_0x4aac1b('0x14c5'),'code':'en','flag':'us'},'es':{'title':_0x4aac1b('0x1f08'),'translation':_0x4aac1b('0x1d7b'),'code':'es','flag':'es'},'fa':{'title':_0x4aac1b('0xb17'),'translation':_0x4aac1b('0x1251'),'code':'fa','flag':'fa'},'fi':{'title':_0x4aac1b('0x1c1e'),'translation':_0x4aac1b('0x4d9'),'code':'fi','flag':'fi'},'fr':{'title':_0x4aac1b('0x352'),'translation':_0x4aac1b('0xe5b'),'code':'fr','flag':'fr'},'he':{'title':_0x4aac1b('0x27ba'),'translation':_0x4aac1b('0xb94'),'code':'he','flag':'he'},'hi':{'title':_0x4aac1b('0x11db'),'translation':_0x4aac1b('0x1b41'),'code':'hi','flag':'hi'},'id':{'title':_0x4aac1b('0xea'),'translation':_0x4aac1b('0x1319'),'code':'id','flag':'id'},'it':{'title':_0x4aac1b('0x12cc'),'translation':_0x4aac1b('0x148f'),'code':'it','flag':'it'},'ja':{'title':_0x4aac1b('0x1b3d'),'translation':_0x4aac1b('0x1fc8'),'code':'ja','flag':'ja'},'ko':{'title':_0x4aac1b('0x27cd'),'translation':_0x4aac1b('0x26aa'),'code':'ko','flag':'ko'},'lv':{'title':_0x4aac1b('0x274a'),'translation':_0x4aac1b('0x26b2'),'code':'lv','flag':'lv'},'nl':{'title':_0x4aac1b('0x18fa'),'translation':_0x4aac1b('0x16cd'),'code':'nl','flag':'nl'},'no':{'title':_0x4aac1b('0x210'),'translation':_0x4aac1b('0x2333'),'code':'no','flag':'no'},'pl':{'title':_0x4aac1b('0xab7'),'translation':_0x4aac1b('0x308'),'code':'pl','flag':'pl'},'pt-BR':{'title':'Brazilian','translation':_0x4aac1b('0x24ac'),'code':_0x4aac1b('0x16d0'),'flag':_0x4aac1b('0x16d0')},'pt-PT':{'title':'Portuguese','translation':_0x4aac1b('0x1735'),'code':_0x4aac1b('0x134d'),'flag':'pt-PT'},'ru':{'title':_0x4aac1b('0x1995'),'translation':_0x4aac1b('0x1788'),'code':'ru','flag':'ru'},'sv':{'title':_0x4aac1b('0x52e'),'translation':_0x4aac1b('0x70b'),'code':'sv','flag':'sv'},'tr':{'title':_0x4aac1b('0x2122'),'translation':_0x4aac1b('0x181a'),'code':'tr','flag':'tr'},'zh-CN':{'title':_0x4aac1b('0x26b1'),'translation':'TOOLBAR.CHINESESIMPLIFIED','code':'zh-CN','flag':_0x4aac1b('0x25fa')},'zh-TW':{'title':_0x4aac1b('0x220'),'translation':_0x4aac1b('0x91d'),'code':_0x4aac1b('0x2cd'),'flag':_0x4aac1b('0x2cd')}};const _0x12b468=['ar','fa','he'];_0x30653a[_0x4aac1b('0xe5f')]=_0x426722,_0x30653a[_0x4aac1b('0x18f7')]=_0x546fae,_0x30653a[_0x4aac1b('0xa2')]=_0x1d52c3,_0x30653a[_0x4aac1b('0x672')]=_0x154de9,_0x30653a[_0x4aac1b('0x1182')]=_0x3e8717,_0x30653a[_0x4aac1b('0x1f82')]=_0xda6ea5,_0x30653a[_0x4aac1b('0xce2')]=_0x580913,_0x30653a[_0x4aac1b('0xdc0')]=_0x7589ee,_0x30653a[_0x4aac1b('0x230')]=_0x42304a,_0x30653a['changePassword']=_0x114a67,_0x30653a[_0x4aac1b('0x990')]=_0x4b7342,_0x30653a[_0x4aac1b('0x9e5')]=_0x2ba619,_0x30653a[_0x4aac1b('0x9fd')]=_0x3ec1a0,_0x30653a[_0x4aac1b('0x92a')]=_0x5e0a87,_0x30653a[_0x4aac1b('0xb6f')]=_0x2f6c67,_0x30653a[_0x4aac1b('0x541')]=_0x546334,_0x30653a['getLogo']=_0x37e013,_0x30653a[_0x4aac1b('0xe97')]=_0x94eb22,_0x30653a['onInternalMessageSave']=_0x466133,_0x30653a[_0x4aac1b('0xda5')]=_0x4ea466,_0x30653a['onUserVoiceQueue']=_0xc97206,_0x30653a[_0x4aac1b('0x2335')]=_0x28e83b,_0x45a769(),_0x298aed(),_0x354199();function _0x45a769(){const _0x57b845=_0x4aac1b;_0x30653a[_0x57b845('0x21d9')]=_0x546c4e[_0x57b845('0x2428')](),_0x30653a[_0x57b845('0x1301')][_0x57b845('0x12f4')]=_0x30653a[_0x57b845('0x21d9')]['md5secret'],_0x30653a['conf']['id']=_0x30653a[_0x57b845('0x21d9')]['id'],_0x30653a[_0x57b845('0x1301')][_0x57b845('0x1909')]=_0x30653a['user']['name'],_0x30653a[_0x57b845('0x1301')][_0x57b845('0x27af')]=_0x30653a[_0x57b845('0x21d9')][_0x57b845('0x27af')],_0x30653a['conf'][_0x57b845('0x1a04')]=_0x30653a[_0x57b845('0x21d9')][_0x57b845('0x1a04')],_0x30653a['conf'][_0x57b845('0x2706')]=_0x30653a[_0x57b845('0x21d9')][_0x57b845('0x30a')],_0x30653a[_0x57b845('0x1301')][_0x57b845('0x246e')]=_0x30653a[_0x57b845('0x21d9')][_0x57b845('0x179')],_0x30653a['conf'][_0x57b845('0x1fe3')]=_0x30653a[_0x57b845('0x21d9')][_0x57b845('0x1bf3')],_0x30653a[_0x57b845('0x1301')]['enableDtmfTone']=_0x30653a['user'][_0x57b845('0x102b')],_0x30653a[_0x57b845('0x1301')][_0x57b845('0x24f6')]=_0x30653a[_0x57b845('0x21d9')]['phoneBarAutoAnswerDelay'],_0x30653a[_0x57b845('0x1685')]=_0x30653a['userStatusOptions'][0x0];const _0x5633a3=_0xeef8ea[_0x57b845('0xbaa')](_0x57b845('0x247b'));_0x5633a3&&typeof _0x30653a[_0x57b845('0x1df8')][_0x5633a3]!==_0x57b845('0x13e9')?_0x30653a[_0x57b845('0x440')]=_0x30653a['languages'][_0x5633a3]:_0x30653a[_0x57b845('0x440')]=_0x30653a[_0x57b845('0x1df8')][_0x4a207d[_0x57b845('0x670')]()];_0x4affce[_0x57b845('0x92a')]['get']({'fields':_0x57b845('0x1909'),'nolimit':!![]})[_0x57b845('0x1549')][_0x57b845('0x11bf')](function(_0x3b527d){const _0x6b984c=_0x57b845;_0x30653a[_0x6b984c('0x12f2')]=_0x3b527d[_0x6b984c('0x19b2')]?_0x3b527d[_0x6b984c('0x19b2')]:[];})[_0x57b845('0x151d')](function(_0x5dbb45){const _0xba66eb=_0x57b845;_0x48e703[_0xba66eb('0x255')]({'title':_0x5dbb45[_0xba66eb('0xff9')]?'API:'+_0x5dbb45[_0xba66eb('0xff9')]+_0xba66eb('0xb0b')+_0x5dbb45['statusText']:_0xba66eb('0x1693'),'msg':_0x5dbb45[_0xba66eb('0xff9')]?JSON['stringify'](_0x5dbb45[_0xba66eb('0x4e8')]):_0x5dbb45[_0xba66eb('0xaab')]()});});if(_0x546c4e['getAuthenticationType']()==_0x57b845('0x18fd')){if(_0x30653a[_0x57b845('0x23e1')]['securePassword']){if(!_0x30653a['user'][_0x57b845('0x162c')])_0x114a67(null,!![]);else{const _0x350348=_0x57d4d1()(_0x30653a[_0x57b845('0x21d9')][_0x57b845('0x162c')])[_0x57b845('0x23c1')](_0x30653a[_0x57b845('0x23e1')][_0x57b845('0x16b2')]||0x5a,'day');if(_0x57d4d1()()[_0x57b845('0x104c')](_0x350348))_0x114a67(null,!![]);else _0x57d4d1()()[_0x57b845('0x23c1')](0xf,'day')['isAfter'](_0x350348)&&_0x48e703['warning']({'title':_0x4a207d[_0x57b845('0x10c2')](_0x57b845('0x211d'))+'!','msg':_0x4a207d['instant'](_0x57b845('0x23ef'))+':\x20'+Math[_0x57b845('0xea8')](_0x350348[_0x57b845('0xe2b')](_0x57d4d1()(),'days',!![])),'timeout':0x4e20});}}}}function _0x354199(){const _0x4e6c15=_0x4aac1b;_0x54642f[_0x4e6c15('0x196c')](),_0x54642f['on']('user:update',_0x30653a[_0x4e6c15('0x9e5')]),_0x54642f['on']('user:called',_0x30653a[_0x4e6c15('0x9fd')]),_0x54642f['on'](_0x4e6c15('0x36b'),_0x30653a[_0x4e6c15('0x24af')]),_0x54642f['on'](_0x4e6c15('0x27bc'),_0x30653a[_0x4e6c15('0xda5')]),_0x54642f['on'](_0x4e6c15('0x1929'),_0x30653a[_0x4e6c15('0x10e0')]),_0x54642f['on'](_0x4e6c15('0x953'),_0x30653a[_0x4e6c15('0x2335')]),_0x54642f['on'](_0x4e6c15('0x5c6'),_0x30653a['onUserVoiceQueue']),_0x54642f['on'](_0x4e6c15('0x2239'),_0x30653a['onVoiceQueue']),_0x54642f['on'](_0x4e6c15('0x19a0'),_0x30653a[_0x4e6c15('0x2335')]),_0x54642f['on'](_0x4e6c15('0x1268'),_0x42f6c2),_0x54642f['on'](_0x4e6c15('0x11e0'),_0x3f8260);}function _0x2d88a7(){const _0x3a723a=_0x4aac1b;_0x54642f['removeAllListeners'](_0x3a723a('0x26ab')),_0x54642f['removeAllListeners'](_0x3a723a('0x15bd')),_0x54642f[_0x3a723a('0x1b2e')](_0x3a723a('0x36b')),_0x54642f[_0x3a723a('0x1b2e')](_0x3a723a('0x27bc')),_0x54642f[_0x3a723a('0x1b2e')](_0x3a723a('0x1929')),_0x54642f[_0x3a723a('0x1b2e')]('voiceQueue:save'),_0x54642f[_0x3a723a('0x1b2e')](_0x3a723a('0x5c6')),_0x54642f[_0x3a723a('0x1b2e')](_0x3a723a('0x2239')),_0x54642f[_0x3a723a('0x1b2e')](_0x3a723a('0x19a0')),_0x54642f[_0x3a723a('0x1b2e')]('user:forcelogout'),_0x54642f[_0x3a723a('0x1b2e')](_0x3a723a('0x11e0')),_0x54642f[_0x3a723a('0x143e')]();}function _0x1dadf6(_0x332c6a){const _0x44ec72=_0x4aac1b;_0x30653a[_0x44ec72('0x1b52')]=_0x332c6a?_0x36f548()[_0x44ec72('0x2130')](_0x332c6a[_0x44ec72('0x19b2')]?_0x332c6a[_0x44ec72('0x19b2')]:[],'id'):{};}function _0x298aed(){const _0x488238=_0x4aac1b;_0x30653a[_0x488238('0x13f')]=_0x4affce[_0x488238('0x21d9')]['getQueues'](_0x30653a[_0x488238('0x1f2a')],_0x1dadf6)[_0x488238('0x1549')];}function _0x28e83b(){_0x298aed();}function _0xc97206(_0x230a93){const _0x56e99f=_0x4aac1b;_0x36f548()['toInteger'](_0x230a93[_0x56e99f('0x2342')])===_0x546c4e[_0x56e99f('0x2428')]()['id']&&_0x298aed();}function _0x5e0a87(_0x20f967){const _0x92810f=_0x4aac1b;return _0x4affce[_0x92810f('0x21d9')][_0x92810f('0x92a')]({'id':_0x30653a[_0x92810f('0x21d9')]['id'],'type':_0x20f967||_0x92810f('0x736')})['$promise'][_0x92810f('0x151d')](function(_0x29b4df){const _0x3b404a=_0x92810f;_0x48e703[_0x3b404a('0x255')]({'title':_0x29b4df['status']?_0x3b404a('0x574')+_0x29b4df[_0x3b404a('0xff9')]+'\x20-\x20'+_0x29b4df[_0x3b404a('0x212f')]:_0x3b404a('0x10c4'),'msg':_0x29b4df[_0x3b404a('0xff9')]?JSON[_0x3b404a('0x3e')](_0x29b4df[_0x3b404a('0x4e8')]):_0x29b4df[_0x3b404a('0xaab')]()});});}function _0x2f6c67(){const _0x42a856=_0x4aac1b;return _0x4affce[_0x42a856('0x21d9')][_0x42a856('0xb6f')]({'id':_0x30653a[_0x42a856('0x21d9')]['id']})[_0x42a856('0x1549')]['catch'](function(_0x3cef56){const _0x5d80ec=_0x42a856;_0x48e703[_0x5d80ec('0x255')]({'title':_0x3cef56['status']?_0x5d80ec('0x574')+_0x3cef56['status']+_0x5d80ec('0xb0b')+_0x3cef56['statusText']:_0x5d80ec('0x1f4e'),'msg':_0x3cef56['status']?JSON['stringify'](_0x3cef56[_0x5d80ec('0x4e8')]):_0x3cef56[_0x5d80ec('0xaab')]()});});}function _0x546334(_0x1cfc00){const _0x3c9fdc=_0x4aac1b;return _0x30653a[_0x3c9fdc('0x164e')]=!![],_0x4affce[_0x3c9fdc('0x1d11')][_0x3c9fdc('0x2682')]()[_0x3c9fdc('0x1549')][_0x3c9fdc('0x11bf')](function(_0x2aecab){const _0x746061=_0x3c9fdc;!_0x36f548()[_0x746061('0x1a80')](_0x2aecab)&&!_0x36f548()['isNil'](_0x2aecab['Queue'])&&_0x2aecab[_0x746061('0x1c29')]['dialActive']?_0x1c35b9[_0x746061('0xb9')]({'controller':_0x746061('0xef5'),'controllerAs':'vm','templateUrl':_0x498457,'parent':angular[_0x746061('0x1e73')](_0x1c76b6[_0x746061('0x1d2')]),'targetEvent':_0x1cfc00,'clickOutsideToClose':!![],'locals':{'preview':_0x2aecab},'resolve':{'customFields':['apiResolver',function(_0x46d054){const _0x54e709=_0x746061;return _0x46d054[_0x54e709('0xa28')](_0x54e709('0x342'),{'nolimit':!![]});}]}}):_0x48e703[_0x746061('0x870')]({'title':_0x746061('0x1ce'),'msg':_0x746061('0x163')});})[_0x3c9fdc('0x151d')](function(_0x2cc207){const _0x53a22d=_0x3c9fdc;if(_0x2cc207[_0x53a22d('0xff9')]===0x194)_0x48e703[_0x53a22d('0x870')]({'title':'PREVIEW','msg':_0x53a22d('0xb07')});else{if(_0x2cc207['data']&&_0x2cc207[_0x53a22d('0x4e8')][_0x53a22d('0x120f')]&&_0x2cc207[_0x53a22d('0x4e8')][_0x53a22d('0x120f')]['length']){_0x30653a[_0x53a22d('0x120f')]=_0x2cc207[_0x53a22d('0x4e8')][_0x53a22d('0x120f')]||[{'message':_0x2cc207[_0x53a22d('0xaab')](),'type':_0x53a22d('0x66a')}];for(let _0x57b649=0x0;_0x57b649<_0x2cc207[_0x53a22d('0x4e8')]['errors'][_0x53a22d('0x1e22')];_0x57b649+=0x1){_0x48e703[_0x53a22d('0x255')]({'title':_0x2cc207[_0x53a22d('0x4e8')][_0x53a22d('0x120f')][_0x57b649][_0x53a22d('0x19fd')],'msg':_0x2cc207[_0x53a22d('0x4e8')]['errors'][_0x57b649]['message']});}}else _0x48e703[_0x53a22d('0x255')]({'title':_0x2cc207[_0x53a22d('0xff9')]?_0x53a22d('0x574')+_0x2cc207[_0x53a22d('0xff9')]+_0x53a22d('0xb0b')+_0x2cc207[_0x53a22d('0x212f')]:_0x53a22d('0x66a'),'msg':_0x2cc207['data']?JSON[_0x53a22d('0x3e')](_0x2cc207[_0x53a22d('0x4e8')][_0x53a22d('0x1b86')]):_0x2cc207['toString']()});}})[_0x3c9fdc('0xa9b')](function(){const _0x5ec655=_0x3c9fdc;_0x30653a[_0x5ec655('0x164e')]=![];});}function _0x426722(_0x1e418e){const _0x20f2ac=_0x4aac1b;_0x37e173(_0x1e418e)[_0x20f2ac('0x113b')]();}function _0x94eb22(){const _0x461c35=_0x4aac1b;return _0x30653a['currentUser'][_0x461c35('0x111d')]==='admin'||_0x30653a[_0x461c35('0x32a')][_0x461c35('0x111d')]===_0x461c35('0x21d9')||_0x30653a['currentUser'][_0x461c35('0x111d')]===_0x461c35('0x18c4')&&_0x30653a[_0x461c35('0x32a')]['showWebBar']!==0x0;}_0x4affce[_0x4aac1b('0xe7d')]['get']({'fields':_0x4aac1b('0x16ca'),'ToId':_0x30653a[_0x4aac1b('0x32a')]['id'],'read':![],'nolimit':!![]})[_0x4aac1b('0x1549')][_0x4aac1b('0x11bf')](function(_0x1951b9){const _0x2524e0=_0x4aac1b;_0x30653a[_0x2524e0('0x23a5')]=_0x1951b9['rows'][_0x2524e0('0x1e22')];});function _0x466133(_0x463cd6){const _0x4c2e21=_0x4aac1b;_0x463cd6['ToId']===_0x30653a[_0x4c2e21('0x32a')]['id']&&!_0x463cd6[_0x4c2e21('0x2614')]&&(_0x30653a[_0x4c2e21('0x23a5')]+=0x1),_0x463cd6['ToId']===_0x30653a['currentUser']['id']&&_0x463cd6[_0x4c2e21('0x16ca')]!==_0x30653a[_0x4c2e21('0x32a')]['id']&&!_0x463cd6['read']&&_0x463cd6['ChatGroupId']&&_0x30653a[_0x4c2e21('0x1ae0')]++;}function _0x4ea466(_0x28a2f6){const _0x557485=_0x4aac1b;_0x28a2f6['ToId']===_0x30653a[_0x557485('0x32a')]['id']&&_0x28a2f6[_0x557485('0x1601')]&&_0x30653a[_0x557485('0x23a5')]>0x0&&!_0x28a2f6[_0x557485('0x2614')]&&(_0x30653a['unreadTotalMessages']-=0x1),_0x28a2f6['ToId']===_0x30653a['currentUser']['id']&&_0x28a2f6[_0x557485('0x1601')]&&_0x28a2f6['ChatGroupId']&&_0x30653a['unreadTotalGroupMessages']>0x0&&_0x30653a['unreadTotalGroupMessages']--;}function _0x154de9(_0x59d244){const _0xa096f7=_0x4aac1b;_0x30653a[_0xa096f7('0x1685')]=_0x59d244;}function _0x546fae(_0x4867e9){const _0x46c15b=_0x4aac1b;return _0x2d88a7(),_0x546c4e[_0x46c15b('0x18f7')](_0x4867e9)['then'](function(){const _0x250c01=_0x46c15b;return _0x47b0c1[_0x250c01('0x1c04')]('webrtc::logout'),_0x4a840f['go']('app.login');})['catch'](function(_0x5ba5ce){console['error'](_0x5ba5ce);});}function _0x1d52c3(_0xb5de5c){const _0x4dd389=_0x4aac1b;if(typeof _0x30653a[_0x4dd389('0x1df8')][_0xb5de5c[_0x4dd389('0x344')]]==_0x4dd389('0x13e9')){const _0x5925ca=_0x4dd389('0x25a3');_0x333526[_0x4dd389('0xb9')]({'template':_0x4dd389('0x1e71')+_0x5925ca+'','hideDelay':0x1b58,'position':_0x4dd389('0x1e7d'),'parent':_0x4dd389('0x53c')});return;}_0x30653a['selectedLanguage']=_0xb5de5c,_0xeef8ea[_0x4dd389('0x2318')](_0x4dd389('0x247b'),_0xb5de5c[_0x4dd389('0x344')]),_0x4a207d[_0x4dd389('0x7e4')](_0xb5de5c[_0x4dd389('0x344')]),_0x4a840f[_0x4dd389('0x191')][_0x4dd389('0x1909')]==='app.callysquare.projects.edit'&&_0x5504ec[_0x4dd389('0x1d9a')][_0x4dd389('0x2304')](),_0x12b468['indexOf'](_0xb5de5c['code'])>=0x0?_0x48e703[_0x4dd389('0x870')]({'title':_0x4a207d[_0x4dd389('0x10c2')]('TOOLBAR.CHANGE_LANGUAGE_TITLE'),'msg':_0x4a207d[_0x4dd389('0x10c2')](_0x4dd389('0xada'))}):_0x25bb48[_0x4dd389('0x25f5')]['$parent']['vm'][_0x4dd389('0x7d5')]=_0x4dd389('0x15d5');}function _0x3e8717(){const _0x3af6a4=_0x4aac1b;_0x30653a[_0x3af6a4('0x175b')][_0x3af6a4('0x1436')](_0x3af6a4('0x27b7'));}function _0xda6ea5(){const _0x51997a=_0x4aac1b;_0x44bc10[_0x51997a('0x1b5e')]();}function _0x580913(_0xf0543f){const _0x5c59b8=_0x4aac1b;let _0x5a831c=[];const _0x2cab89=_0x44bc10['getFlatNavigation'](),_0x3b4b1c=_0x41ecd5['defer']();for(let _0x3bb9ff=0x0;_0x3bb9ff<_0x2cab89[_0x5c59b8('0x1e22')];_0x3bb9ff++){_0x2cab89[_0x3bb9ff][_0x5c59b8('0x14bf')]&&_0x5a831c[_0x5c59b8('0x105d')](_0x2cab89[_0x3bb9ff]);}return _0xf0543f&&(_0x5a831c=_0x5a831c[_0x5c59b8('0xdb4')](function(_0x4572f4){const _0x47b8ec=_0x5c59b8;if(_0x4572f4[_0x47b8ec('0x134b')][_0x47b8ec('0x20d5')]()[_0x47b8ec('0x55a')](_0xf0543f[_0x47b8ec('0x20d5')]()))return!![];})),_0x13ea9b(function(){const _0x39b4ca=_0x5c59b8;_0x3b4b1c[_0x39b4ca('0xa28')](_0x5a831c);},0x3e8),_0x3b4b1c['promise'];}function _0x7589ee(_0x47e03d){const _0x3c34b7=_0x4aac1b;_0x47e03d[_0x3c34b7('0x14bf')]&&(_0x47e03d[_0x3c34b7('0x191f')]?_0x4a840f['go'](_0x47e03d[_0x3c34b7('0x2124')],_0x47e03d['stateParams']):_0x4a840f['go'](_0x47e03d['state']));}function _0x42304a(){const _0x587bde=_0x4aac1b;_0x47b0c1[_0x587bde('0x1c04')](_0x587bde('0x1a1d'));}function _0x114a67(_0x525789,_0x403d68){const _0x5d10a6=_0x4aac1b;_0x1c35b9[_0x5d10a6('0xb9')]({'controller':_0x5d10a6('0x172d'),'controllerAs':'vm','templateUrl':_0x2752cd,'parent':angular['element'](_0x1c76b6[_0x5d10a6('0x1d2')]),'targetEvent':_0x525789,'clickOutsideToClose':_0x403d68?![]:!![],'escapeToClose':_0x403d68?![]:!![],'locals':{'user':_0x30653a[_0x5d10a6('0x21d9')],'setting':_0x122af7,'reset':_0x403d68}});}function _0x4b7342(){const _0x970cb9=_0x4aac1b;return _0x546c4e[_0x970cb9('0x2428')]()&&_0x546c4e[_0x970cb9('0x4ee')](_0x970cb9('0x18c4'));}function _0x2ba619(_0x2077a6){const _0x59a80d=_0x4aac1b;if(_0x2077a6['id']===_0x30653a[_0x59a80d('0x21d9')]['id']){if(_0x2077a6['role']===_0x59a80d('0x18c4')&&_0x36f548()[_0x59a80d('0x14ad')](_0x2077a6['online'])&&!_0x2077a6[_0x59a80d('0x81c')]){if(_0x30653a[_0x59a80d('0x21d9')][_0x59a80d('0x1c14')]!==0x0){_0x2d88a7();const _0x57d737=_0x1c35b9[_0x59a80d('0x132b')]()[_0x59a80d('0x134b')](_0x4a207d['instant']('TOOLBAR.WARNING')+'!')['textContent'](_0x4a207d['instant'](_0x59a80d('0x1706')))[_0x59a80d('0xb2e')](_0x4a207d[_0x59a80d('0x10c2')](_0x59a80d('0x211d'))+'!')['ok'](_0x4a207d[_0x59a80d('0x10c2')](_0x59a80d('0xb2c')))[_0x59a80d('0x26c9')]('Logout');_0x1c35b9[_0x59a80d('0xb9')](_0x57d737)[_0x59a80d('0x11bf')](function(){const _0x5c727e=_0x59a80d;return _0x546c4e[_0x5c727e('0x1315')]()[_0x5c727e('0x11bf')](function(){const _0x115b8b=_0x5c727e;_0x354199(),_0x36f548()['merge'](_0x30653a[_0x115b8b('0x21d9')],_0x2077a6),_0x546c4e[_0x115b8b('0xc0')](_0x30653a['user']);});})[_0x59a80d('0x151d')](function(){_0x546fae(!![]);});}else _0x546fae(!![]);}else _0x36f548()[_0x59a80d('0x47b')](_0x30653a[_0x59a80d('0x21d9')],_0x2077a6),_0x546c4e[_0x59a80d('0xc0')](_0x30653a[_0x59a80d('0x21d9')]);}}function _0x3ec1a0(_0xe09550){const _0x42b781=_0x4aac1b;_0x30653a[_0x42b781('0x32a')]['showWebBar']===0x2&&_0x30653a[_0x42b781('0x32a')][_0x42b781('0x111d')]===_0x42b781('0x18c4')&&_0x30653a[_0x42b781('0x32a')]['name']===_0xe09550[_0x42b781('0x74c')]&&_0x48e703['info']({'title':'WebRTC\x20Popup','msg':_0x42b781('0x83f')+_0xe09550['calleridnum']+_0x42b781('0x1e4c')+_0xe09550[_0x42b781('0x150b')]+'

    \x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Extra:\x20'+(_0xe09550[_0x42b781('0x1700')]&&_0xe09550[_0x42b781('0x1700')]['extravar']?_0xe09550[_0x42b781('0x1700')][_0x42b781('0x8ee')]:_0x42b781('0x1'))+_0x42b781('0x8fe'),'showClose':!![],'timeout':0x2710,'html':!![]});}function _0x37e013(){const _0x3048bf=_0x4aac1b;return _0x30653a['setting'][_0x3048bf('0xcfe')]?_0x3048bf('0x1cd0'):_0x30653a[_0x3048bf('0x23e1')][_0x3048bf('0x90b')];}function _0x573644(){const _0x29cfb9=_0x4aac1b;_0x36f548()[_0x29cfb9('0x1cb3')](_0x30653a[_0x29cfb9('0x1b52')],{'dialMethod':_0x29cfb9('0x541'),'dialActive':!![]})&&_0x30653a['license'][_0x29cfb9('0x14be')]&&_0x30653a['polling']?(_0x30653a['polling']=![],_0x4affce[_0x29cfb9('0x1d11')][_0x29cfb9('0x240a')]()[_0x29cfb9('0x1549')][_0x29cfb9('0x11bf')](function(_0x350c7e){const _0x2eda37=_0x29cfb9;_0x350c7e&&_0x36f548()[_0x2eda37('0xe43')](_0x350c7e[_0x2eda37('0x206c')])&&(_0x30653a[_0x2eda37('0x206c')]=_0x350c7e['contacts']);})[_0x29cfb9('0xa9b')](function(){const _0xa19cde=_0x29cfb9;_0x30653a[_0xa19cde('0x47f')]=!![];})):_0x30653a[_0x29cfb9('0x206c')]=0x0;}function _0x4a4b02(){_0x21d3dd&&(_0xa9ad79['cancel'](_0x21d3dd),_0x21d3dd=null);}function _0x42f6c2(_0x17b3eb){const _0x8476e=_0x4aac1b;console[_0x8476e('0x8ab')]('onForceLogout\x20->\x20data',_0x17b3eb);if(_0x30653a[_0x8476e('0x21d9')][_0x8476e('0x1c14')]!==0x0)return _0x2d88a7(),_0x546c4e['logout'](!![])[_0x8476e('0x11bf')](function(){const _0xee3a2e=_0x8476e;_0x47b0c1['$broadcast'](_0xee3a2e('0x27a0')),_0x1c35b9['show'](_0x1c35b9[_0xee3a2e('0xb30')]()[_0xee3a2e('0x1592')](angular[_0xee3a2e('0x1e73')](_0x1c76b6[_0xee3a2e('0x1d2')]))['clickOutsideToClose'](![])['escapeToClose'](![])['title'](_0x4a207d['instant'](_0xee3a2e('0x211d')))['textContent'](_0x4a207d['instant']('TOOLBAR.USER_FORCE_LOGOUT',{'ip':_0x17b3eb['ip']}))['ok']('OK'))[_0xee3a2e('0x11bf')](function(){const _0x4887ae=_0xee3a2e;return _0x4a840f['go'](_0x4887ae('0x97e'));});})[_0x8476e('0x151d')](function(_0x42cdf3){const _0x4ce6b0=_0x8476e;console[_0x4ce6b0('0x255')](_0x42cdf3);});}function _0x3f8260(_0x3779de){const _0x3d5504=_0x4aac1b,_0x393f48=_0x3779de;if(_0x30653a[_0x3d5504('0x32a')]['id']===_0x393f48['recipient']){const _0x1ebae1=_0x4a207d[_0x3d5504('0x10c2')]('TOOLBAR.NOTIFICATION_TITLE',{'sender':_0x393f48[_0x3d5504('0x1d79')]}),_0x2bb7b2=_0x393f48[_0x3d5504('0x1659')]?_0x4a207d[_0x3d5504('0x10c2')]('TOOLBAR.NOTIFICATION_TITLE_RECIPIENT',{'recipient':_0x393f48[_0x3d5504('0x1659')]}):null;_0x48e703[_0x3d5504('0x156b')]({'title':_0x2bb7b2?_0x1ebae1+'\x20'+_0x2bb7b2:_0x1ebae1,'msg':_0x393f48[_0x3d5504('0x252a')],'clickToClose':![],'timeout':![],'sound':_0x393f48[_0x3d5504('0x12da')],'html':!![]});}}_0x25bb48[_0x4aac1b('0x12d8')]('$destroy',function(){const _0x26581d=_0x4aac1b;_0x54642f[_0x26581d('0x1b2e')](_0x26581d('0x26ab')),_0x54642f[_0x26581d('0x1b2e')]('user:update'),_0x54642f['removeAllListeners'](_0x26581d('0x36b')),_0x54642f[_0x26581d('0x1b2e')]('chatInternalMessage:update'),_0x54642f['removeAllListeners'](_0x26581d('0x1929')),_0x54642f[_0x26581d('0x1b2e')](_0x26581d('0x953')),_0x54642f[_0x26581d('0x1b2e')]('userVoiceQueue:remove'),_0x54642f[_0x26581d('0x1b2e')]('voiceQueue:remove'),_0x54642f['removeAllListeners'](_0x26581d('0x19a0')),_0x54642f[_0x26581d('0x1b2e')](_0x26581d('0x1268')),_0x54642f[_0x26581d('0x1b2e')](_0x26581d('0x11e0')),_0x4a4b02();});}const _0x174fba=_0x4abca1;_0x1414bd[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0xc3e')];function _0x1414bd(_0x3edafd){const _0x206419=_0x21d0f5;_0x3edafd[_0x206419('0x471')]('app/toolbar');}angular['module'](_0x21d0f5('0x1af9'),[])['config'](_0x1414bd)[_0x21d0f5('0x23eb')](_0x21d0f5('0x172d'),_0x45e60e)[_0x21d0f5('0x23eb')](_0x21d0f5('0xef5'),_0x1ce7cb)['controller'](_0x21d0f5('0x126f'),_0x174fba),_0x1ef73e[_0x21d0f5('0x1e9a')]=['$scope',_0x21d0f5('0xb6b'),'$q',_0x21d0f5('0x1150'),_0x21d0f5('0x1d56'),_0x21d0f5('0x12a5'),'desktopNotification',_0x21d0f5('0x17ff')];function _0x1ef73e(_0x2cb111,_0x32f7f8,_0xb83b15,_0x2d853f,_0x5dbe2a,_0x22fc89,_0x2a2c77,_0x2927c1){const _0x4869ed=_0x21d0f5,_0x392922=this;_0x392922[_0x4869ed('0x22f7')]=_0x57d4d1()()[_0x4869ed('0x1826')](),_0x392922[_0x4869ed('0x32a')]=_0x2d853f[_0x4869ed('0x2428')](),_0x392922[_0x4869ed('0x17ff')]=_0x2927c1,_0x392922[_0x4869ed('0x23a5')]=0x0,_0x392922[_0x4869ed('0x1ae0')]=0x0,_0x392922[_0x4869ed('0xe97')]=_0x22f5b5,_0x392922[_0x4869ed('0x5df')]=_0x627290,_0x392922['onMessageUpdate']=_0x28376b,_0x5dbe2a['on'](_0x4869ed('0x36b'),_0x392922[_0x4869ed('0x5df')]),_0x5dbe2a['on'](_0x4869ed('0x27bc'),_0x392922['onMessageUpdate']),_0x22fc89['chatInternalMessage'][_0x4869ed('0xbaa')]({'fields':_0x4869ed('0x16ca'),'ToId':_0x392922[_0x4869ed('0x32a')]['id'],'read':![],'nolimit':!![],'ChatGroupId':'null'})[_0x4869ed('0x1549')]['then'](function(_0x3bd0fb){const _0x235907=_0x4869ed;return _0x3bd0fb&&_0x3bd0fb[_0x235907('0x27d2')]&&(_0x392922[_0x235907('0x23a5')]=_0x3bd0fb[_0x235907('0x27d2')]),_0x22fc89[_0x235907('0x21d9')]['getGroups']({'id':_0x392922['currentUser']['id']})[_0x235907('0x1549')];})['then'](function(_0xcff2fa){const _0x174c3c=_0x4869ed,_0x216d48=[],_0x3ff3fe=_0xcff2fa[_0x174c3c('0x19b2')];for(let _0x4c0955=0x0;_0x4c0955<_0x3ff3fe[_0x174c3c('0x1e22')];_0x4c0955++){_0x216d48[_0x174c3c('0x105d')](_0x22fc89[_0x174c3c('0x19f2')][_0x174c3c('0xfce')]({'id':_0x3ff3fe[_0x4c0955]['id']})[_0x174c3c('0x1549')]);}return _0xb83b15[_0x174c3c('0x7c')](_0x216d48);})[_0x4869ed('0x11bf')](function(_0x56d7f2){const _0x189160=_0x4869ed;for(let _0x20ad56=0x0;_0x20ad56<_0x56d7f2[_0x189160('0x1e22')];_0x20ad56++){_0x392922[_0x189160('0x1ae0')]+=_0x56d7f2[_0x20ad56][_0x189160('0x27d2')];}})[_0x4869ed('0x151d')](function(_0x2115d4){const _0x101afc=_0x4869ed;console[_0x101afc('0x255')](_0x2115d4);});function _0x525292(_0x42839d){const _0x4b1404=_0x4869ed,_0x7fd83b={'autoClose':!![],'duration':0xa,'showOnPageHidden':!![],'icon':_0x4b1404('0x135f')+_0x42839d['FromId']+'/avatar','body':_0x42839d[_0x4b1404('0x1d2')]||'','focusOnclick':!![],'closeOnClick':!![]};_0x2a2c77[_0x4b1404('0xb9')](_0x32f7f8[_0x4b1404('0x10c2')](_0x4b1404('0x787')),_0x7fd83b);}function _0x498dd8(_0x10beca){const _0x2c143d=_0x4869ed;_0x2a2c77[_0x2c143d('0x94e')]()?_0x2a2c77[_0x2c143d('0xe55')]()[_0x2c143d('0x11bf')](function(){_0x525292(_0x10beca);},function(_0xee295a){const _0x245d10=_0x2c143d;console[_0x245d10('0x255')](_0x245d10('0x239c'),_0xee295a);}):console[_0x2c143d('0x255')]('Browser\x20notifications\x20are\x20not\x20supported\x20by\x20the\x20browser.\x20Normal\x20notifications\x20will\x20be\x20used.');}function _0x22f5b5(){const _0x4c3ca8=_0x4869ed;return _0x392922[_0x4c3ca8('0x32a')][_0x4c3ca8('0x111d')]===_0x4c3ca8('0xf45')||_0x392922['currentUser'][_0x4c3ca8('0x111d')]===_0x4c3ca8('0x21d9')||_0x392922[_0x4c3ca8('0x32a')][_0x4c3ca8('0x111d')]===_0x4c3ca8('0x18c4')&&_0x392922[_0x4c3ca8('0x32a')][_0x4c3ca8('0x1c14')]!==0x0;}function _0x627290(_0xeb38ae){const _0x276cfa=_0x4869ed;_0xeb38ae[_0x276cfa('0x2107')]===_0x392922[_0x276cfa('0x32a')]['id']&&_0xeb38ae[_0x276cfa('0x16ca')]!==_0x392922[_0x276cfa('0x32a')]['id']&&!_0xeb38ae[_0x276cfa('0x1601')]&&_0xeb38ae[_0x276cfa('0x2614')]&&(_0x392922[_0x276cfa('0x1ae0')]++,_0x498dd8(_0xeb38ae)),_0xeb38ae[_0x276cfa('0x2107')]===_0x392922[_0x276cfa('0x32a')]['id']&&!_0xeb38ae[_0x276cfa('0x2614')]&&(_0x392922[_0x276cfa('0x23a5')]+=0x1,_0x498dd8(_0xeb38ae));}function _0x28376b(_0x2e969f){const _0x478f54=_0x4869ed;_0x2e969f['ToId']===_0x392922[_0x478f54('0x32a')]['id']&&_0x2e969f[_0x478f54('0x1601')]&&_0x392922['unreadTotalMessages']>0x0&&!_0x2e969f[_0x478f54('0x2614')]&&(_0x392922['unreadTotalMessages']-=0x1),_0x2e969f[_0x478f54('0x2107')]==_0x392922[_0x478f54('0x32a')]['id']&&_0x2e969f[_0x478f54('0x16ca')]!==_0x392922['currentUser']['id']&&_0x2e969f[_0x478f54('0x2614')]&&_0x2e969f[_0x478f54('0x1601')]&&(_0x392922['unreadTotalGroupMessages']>0x0&&_0x392922['unreadTotalGroupMessages']--);}_0x2cb111['$on'](_0x4869ed('0x4f7'),function(){const _0x34e4c9=_0x4869ed;_0x5dbe2a['removeAllListeners']('chatInternalMessage:save'),_0x5dbe2a[_0x34e4c9('0x1b2e')](_0x34e4c9('0x27bc'));});}const _0x1916b9=_0x1ef73e;_0x3df09d['$inject']=['$scope',_0x21d0f5('0x142d'),_0x21d0f5('0x12a5'),_0x21d0f5('0x17f5'),_0x21d0f5('0x1150'),_0x21d0f5('0x1d56'),_0x21d0f5('0x18fe'),'$q',_0x21d0f5('0x1fd'),'$translate',_0x21d0f5('0x5f2'),_0x21d0f5('0x1379')];function _0x3df09d(_0x4b730f,_0x551ed4,_0x122038,_0x4d9c64,_0x508abf,_0x54ab22,_0x346167,_0x3c6094,_0x436f91,_0x294d2e,_0x19cd0c,_0x3165d9){const _0x2547ee=_0x21d0f5,_0x266327=this;_0x266327[_0x2547ee('0x32a')]=_0x508abf[_0x2547ee('0x2428')](),_0x266327[_0x2547ee('0x21d9')]=undefined,_0x266327[_0x2547ee('0x17c0')]={'count':0x0,'rows':[]},_0x266327['standardDate']=_0x57d4d1()(0x0)[_0x2547ee('0x1826')](_0x2547ee('0xfae')),_0x266327[_0x2547ee('0xdc9')]={},_0x266327['replyMessage']='',_0x266327[_0x2547ee('0xa4b')]=![],_0x266327['init']=_0x40eb1a,_0x266327[_0x2547ee('0x2031')]=_0x2f45f7,_0x266327[_0x2547ee('0x494')]=_0x56a999,_0x266327[_0x2547ee('0x5df')]=_0x365461,_0x266327[_0x2547ee('0xa6')]=_0x399b50,_0x266327['onUserUpdate']=_0x2cd1e7,_0x266327['webcall']=_0xe1770d,_0x266327[_0x2547ee('0x7c1')]=_0x46cdbd,_0x266327[_0x2547ee('0x792')]=_0x29e3dc,_0x54ab22['on'](_0x2547ee('0x36b'),_0x266327[_0x2547ee('0x5df')]),_0x54ab22['on']('chatInternalMessage:update',_0x266327[_0x2547ee('0xa6')]),_0x54ab22['on'](_0x2547ee('0x15bd'),_0x266327['onUserUpdate']),_0x346167('quick-panel')['onClose'](function(){const _0x38aefe=_0x2547ee;_0x266327[_0x38aefe('0x21d9')]=undefined;}),_0x122038[_0x2547ee('0xe7d')][_0x2547ee('0xbaa')]({'fields':_0x2547ee('0x16ca'),'ToId':_0x266327['currentUser']['id'],'read':![],'nolimit':!![],'ChatGroupId':_0x2547ee('0xb5f')})[_0x2547ee('0x1549')][_0x2547ee('0x11bf')](function(_0x31f4dc){const _0x356efe=_0x2547ee;_0x266327[_0x356efe('0xdc9')]=_0x36f548()[_0x356efe('0x4ad')](_0x31f4dc[_0x356efe('0x19b2')],_0x356efe('0x16ca'));})[_0x2547ee('0x151d')](function(){}),_0x122038[_0x2547ee('0xe7d')][_0x2547ee('0x26b4')]()[_0x2547ee('0x1549')][_0x2547ee('0x11bf')](function(_0x5eecb4){const _0x248bed=_0x2547ee;_0x266327[_0x248bed('0x17c0')]=_0x5eecb4;})[_0x2547ee('0x151d')](function(_0x141204){const _0x4fc041=_0x2547ee;console[_0x4fc041('0x255')](_0x141204);});function _0x40eb1a(_0x2cd126){const _0x3e7e48=_0x2547ee;_0x266327[_0x3e7e48('0x17ff')]=_0x2cd126;}function _0x365461(_0x2d40be){const _0x43b63e=_0x2547ee;if(_0x2d40be[_0x43b63e('0x2107')]===_0x266327[_0x43b63e('0x32a')]['id']&&!_0x2d40be['ChatGroupId']){_0x266327['user']&&_0x266327[_0x43b63e('0x21d9')]['id']===_0x2d40be[_0x43b63e('0x16ca')]?(_0x266327[_0x43b63e('0x21d9')]['messages'][_0x43b63e('0x19b2')][_0x43b63e('0x105d')](_0x2d40be),_0x2b9c1d(0x0),_0x122038[_0x43b63e('0xe7d')][_0x43b63e('0x5ab')]({'id':_0x2d40be['id'],'read':!![]})):_0x266327['unreadMessage'][_0x2d40be[_0x43b63e('0x16ca')]]=_0x266327[_0x43b63e('0xdc9')][_0x2d40be[_0x43b63e('0x16ca')]]?_0x266327[_0x43b63e('0xdc9')][_0x2d40be[_0x43b63e('0x16ca')]]+0x1:0x1;const _0x2cac01=_0x36f548()[_0x43b63e('0x1ad4')](_0x266327[_0x43b63e('0x17c0')][_0x43b63e('0x19b2')],{'id':_0x2d40be['FromId']});_0x2cac01&&(_0x2cac01['lastMessageAt']=_0x2d40be[_0x43b63e('0x1779')],_0x2cac01['lastMessage']=_0x2d40be);}}function _0x399b50(_0x141644){const _0x5d0c05=_0x2547ee;if((_0x141644[_0x5d0c05('0x16ca')]===_0x266327['currentUser']['id']||_0x141644[_0x5d0c05('0x2107')]===_0x266327['currentUser']['id'])&&!_0x141644[_0x5d0c05('0x2614')]){if(_0x266327[_0x5d0c05('0x21d9')]){const _0x367b94=_0x36f548()[_0x5d0c05('0x1ad4')](_0x266327['user'][_0x5d0c05('0x8d6')]['rows'],{'id':_0x141644['id']});_0x367b94&&_0x36f548()[_0x5d0c05('0x47b')](_0x367b94,_0x141644);}const _0xc7a9ae=_0x36f548()[_0x5d0c05('0x1ad4')](_0x266327[_0x5d0c05('0x17c0')][_0x5d0c05('0x19b2')],{'id':_0x266327[_0x5d0c05('0x32a')]['id']===_0x141644[_0x5d0c05('0x16ca')]?_0x141644[_0x5d0c05('0x2107')]:_0x141644[_0x5d0c05('0x16ca')]});_0xc7a9ae&&_0xc7a9ae[_0x5d0c05('0x13b')]&&_0x36f548()['merge'](_0xc7a9ae[_0x5d0c05('0x13b')],_0x141644),_0x141644[_0x5d0c05('0x2107')]===_0x266327[_0x5d0c05('0x32a')]['id']&&(_0x141644[_0x5d0c05('0x1601')]&&_0x266327[_0x5d0c05('0xdc9')][_0x141644[_0x5d0c05('0x16ca')]]>0x0&&(_0x266327['unreadMessage'][_0x141644[_0x5d0c05('0x16ca')]]-=0x1));}}function _0x2cd1e7(_0x3d55b3){const _0x3da58e=_0x2547ee,_0x407ea8=_0x36f548()[_0x3da58e('0x1ad4')](_0x266327['users']['rows'],{'id':_0x3d55b3['id']});_0x407ea8&&(!_0x36f548()['isNil'](_0x3d55b3[_0x3da58e('0x81c')])&&_0x407ea8['online']!==_0x3d55b3[_0x3da58e('0x81c')]&&(_0x407ea8[_0x3da58e('0x81c')]=_0x3d55b3[_0x3da58e('0x81c')]),!_0x36f548()['isNil'](_0x3d55b3[_0x3da58e('0x2264')])&&_0x407ea8[_0x3da58e('0x2264')]!==_0x3d55b3['allowmessenger']&&(_0x407ea8[_0x3da58e('0x2264')]=_0x3d55b3['allowmessenger']));}function _0x2f45f7(_0x120d2e){const _0x2d7b8d=_0x2547ee;if(_0x120d2e){if(!_0x120d2e[_0x2d7b8d('0x2264')]&&_0x120d2e[_0x2d7b8d('0x111d')]===_0x2d7b8d('0x18c4')){_0x551ed4[_0x2d7b8d('0x1abd')]({'title':_0x294d2e['instant'](_0x2d7b8d('0x2052')),'msg':_0x294d2e[_0x2d7b8d('0x10c2')](_0x2d7b8d('0x94b'))}),_0x266327[_0x2d7b8d('0x21d9')]=undefined;return;}_0x266327[_0x2d7b8d('0x21d9')]=_0x120d2e,_0x266327[_0x2d7b8d('0x2487')]='',_0x122038[_0x2d7b8d('0xe7d')][_0x2d7b8d('0xbaa')]({'sort':_0x2d7b8d('0x1779'),'FromId':_0x266327[_0x2d7b8d('0x32a')]['id']+','+_0x120d2e['id'],'ToId':_0x266327[_0x2d7b8d('0x32a')]['id']+','+_0x120d2e['id'],'ChatGroupId':'null'})[_0x2d7b8d('0x1549')][_0x2d7b8d('0x11bf')](function(_0x28d30c){const _0x3f7de4=_0x2d7b8d;if(_0x28d30c&&_0x28d30c['rows']){_0x266327[_0x3f7de4('0x21d9')][_0x3f7de4('0x8d6')]=_0x28d30c;for(let _0x266f6d=0x0;_0x266f6d<_0x266327[_0x3f7de4('0x21d9')][_0x3f7de4('0x8d6')][_0x3f7de4('0x19b2')][_0x3f7de4('0x1e22')];_0x266f6d+=0x1){_0x266327[_0x3f7de4('0x21d9')][_0x3f7de4('0x8d6')]['rows'][_0x266f6d][_0x3f7de4('0x1601')]===![]&&_0x266327[_0x3f7de4('0x21d9')][_0x3f7de4('0x8d6')]['rows'][_0x266f6d][_0x3f7de4('0x2107')]===_0x266327[_0x3f7de4('0x32a')]['id']&&_0x122038[_0x3f7de4('0xe7d')][_0x3f7de4('0x5ab')]({'id':_0x266327[_0x3f7de4('0x21d9')]['messages'][_0x3f7de4('0x19b2')][_0x266f6d]['id'],'read':!![]});}}})[_0x2d7b8d('0xa9b')](function(){_0x2b9c1d(0x0);});}else _0x266327[_0x2d7b8d('0x21d9')]=undefined;}function _0x56a999(){const _0x4e37a4=_0x2547ee;_0x266327[_0x4e37a4('0xa4b')]=!![];if(_0x266327[_0x4e37a4('0x2487')]===''){_0x266327[_0x4e37a4('0xa4b')]=![];return;}const _0x20e122={'FromId':_0x266327[_0x4e37a4('0x32a')]['id'],'ToId':_0x266327['user']['id'],'body':_0x266327[_0x4e37a4('0x2487')],'read':![]};_0x266327[_0x4e37a4('0x2487')]='',_0x122038[_0x4e37a4('0xe7d')][_0x4e37a4('0x259')](_0x20e122)['$promise'][_0x4e37a4('0x11bf')](function(_0x3707fc){const _0x2f2736=_0x4e37a4;_0x266327[_0x2f2736('0x21d9')][_0x2f2736('0x8d6')][_0x2f2736('0x19b2')]['push'](_0x3707fc),_0x266327[_0x2f2736('0x21d9')]['lastMessageAt']=_0x3707fc[_0x2f2736('0x1779')],_0x266327[_0x2f2736('0x21d9')][_0x2f2736('0x13b')]=_0x3707fc,_0x2b9c1d(0x190);})['catch'](function(){})[_0x4e37a4('0xa9b')](function(){_0x266327['disabled']=![];});}function _0x2b9c1d(_0x2614e9){const _0x211397=_0x2547ee,_0x3e9347=angular['element'](_0x211397('0xeec'));_0x4d9c64(function(){const _0x199ce7=_0x211397;_0x3e9347['animate']({'scrollTop':_0x3e9347[0x0][_0x199ce7('0x1a89')]},_0x2614e9);},0x0);}function _0x27358c(_0x3cacd7){const _0x16d515=_0x2547ee;return!_0x36f548()[_0x16d515('0x1a80')](_0x3cacd7)?_0x3cacd7[_0x16d515('0x814')](/[^\w.+#*-]+/g,''):'';}function _0xe1770d(_0x2ba462){const _0x5ccf40=_0x2547ee;_0x19cd0c[_0x5ccf40('0x1c04')](_0x5ccf40('0x24aa'),{'target':_0x27358c(_0x2ba462)});}function _0x46cdbd(_0x38ba08){const _0x5cbce6=_0x2547ee;return _0x352038('http://127.0.0.1:'+(_0x266327[_0x5cbce6('0x21d9')][_0x5cbce6('0x1e43')]||'9888')+_0x5cbce6('0x22cd')+_0x27358c(_0x38ba08));}function _0x29e3dc(_0x21ce01){const _0x141eb0=_0x2547ee;return _0x352038(_0x141eb0('0x1fb9')+(_0x266327[_0x141eb0('0x21d9')][_0x141eb0('0x1e43')]||_0x141eb0('0x16a7'))+_0x141eb0('0x1220')+_0x27358c(_0x21ce01));}function _0x352038(_0x39d6da){const _0x4bbfa2=_0x2547ee;return _0x3165d9[_0x4bbfa2('0xbaa')](_0x39d6da)[_0x4bbfa2('0x2693')](function(){const _0x127372=_0x4bbfa2;_0x551ed4[_0x127372('0x2693')]({'title':'Successful\x20call','msg':'Call\x20properly\x20handled!'});})[_0x4bbfa2('0x255')](function(){const _0x487650=_0x4bbfa2;_0x551ed4[_0x487650('0x255')]({'title':'PhoneBar\x20API\x20Error','msg':_0x294d2e[_0x487650('0x10c2')](_0x487650('0x1aaf'))});});}_0x4b730f[_0x2547ee('0x12d8')](_0x2547ee('0x4f7'),function(){const _0x2765fe=_0x2547ee;_0x54ab22[_0x2765fe('0x1b2e')]('chatInternalMessage:save'),_0x54ab22[_0x2765fe('0x1b2e')]('chatInternalMessage:update'),_0x54ab22[_0x2765fe('0x1b2e')](_0x2765fe('0x15bd'));});}const _0x489b6f=_0x3df09d;_0x2ceb04[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),'$state','$location',_0x21d0f5('0x1ca2'),_0x21d0f5('0x142d'),_0x21d0f5('0x12a5'),'Auth',_0x21d0f5('0xdb'),_0x21d0f5('0x1c06')];function _0x2ceb04(_0x51dcf0,_0x50a295,_0x291cdb,_0x29e1a9,_0x274fc9,_0x5caec3,_0x3bf9e5,_0x23b23d,_0x1b3a6c){const _0x1e0417=_0x21d0f5,_0x276b49=this;_0x276b49['errors']=[],_0x276b49[_0x1e0417('0x134b')]='QUICKPANEL.EDIT_CHATGROUP',_0x276b49[_0x1e0417('0xdb')]=angular[_0x1e0417('0x6fb')](_0x23b23d),_0x276b49['currentUser']=_0x3bf9e5[_0x1e0417('0x2428')](),_0x276b49[_0x1e0417('0x1c06')]=_0x1b3a6c,_0x276b49['newChatGroup']=!![];!_0x276b49[_0x1e0417('0xdb')]&&(_0x276b49['group']={'write':!![],'members':[]},_0x276b49[_0x1e0417('0x134b')]=_0x1e0417('0xa36'));_0x276b49[_0x1e0417('0xed7')]=_0x3bd215,_0x276b49[_0x1e0417('0xc4e')]=_0x5a12a1,_0x276b49[_0x1e0417('0x1cdd')]=_0x40dcad;function _0x17922f(_0x216f26){const _0xe8f28c=_0x1e0417,_0x1ccbdd=_0x216f26[_0xe8f28c('0x20d5')]();return function _0x2aae1b(_0x1e1858){const _0x197bec=_0xe8f28c,_0x2c0488=_0x1e1858[_0x197bec('0x1909')][_0x197bec('0x20d5')]();return _0x2c0488['indexOf'](_0x1ccbdd)!=-0x1;};}function _0x40dcad(_0x49d5d2){const _0x18007f=_0x1e0417;return _0x49d5d2?_0x276b49[_0x18007f('0x1c06')][_0x18007f('0x19b2')]['filter'](_0x17922f(_0x49d5d2)):[];}function _0x3bd215(){const _0x49f03b=_0x1e0417;let _0x56c5f9;return _0x276b49[_0x49f03b('0x120f')]=[],_0x5caec3[_0x49f03b('0x19f2')]['save']({'name':_0x276b49[_0x49f03b('0xdb')][_0x49f03b('0x1909')],'write':_0x276b49[_0x49f03b('0xdb')][_0x49f03b('0x1637')]})['$promise'][_0x49f03b('0x11bf')](function(_0x6d0954){const _0x2a4258=_0x49f03b,_0x23ad71=_0x36f548()[_0x2a4258('0x2171')](_0x276b49[_0x2a4258('0xdb')]['members'],'id');return _0x23ad71[_0x2a4258('0x880')](_0x276b49['currentUser']['id']),_0x56c5f9=_0x6d0954,_0x5caec3[_0x2a4258('0x19f2')][_0x2a4258('0xc92')]({'id':_0x56c5f9['id'],'ids':_0x23ad71})['$promise'];})[_0x49f03b('0x11bf')](function(){const _0x5c3f07=_0x49f03b;_0x274fc9[_0x5c3f07('0x2693')]({'title':_0x5c3f07('0x223e'),'msg':_0x56c5f9[_0x5c3f07('0x1909')]+'\x20has\x20been\x20saved!'}),_0x5a12a1(_0x56c5f9);})['catch'](function(_0x3afb47){const _0x5dcb4d=_0x49f03b;_0x274fc9[_0x5dcb4d('0x255')]({'title':_0x3afb47['status']?_0x5dcb4d('0x574')+_0x3afb47[_0x5dcb4d('0xff9')]+_0x5dcb4d('0xb0b')+_0x3afb47[_0x5dcb4d('0x212f')]:'api.chatQueue.update','msg':_0x3afb47[_0x5dcb4d('0x4e8')]?JSON[_0x5dcb4d('0x3e')](_0x3afb47[_0x5dcb4d('0x4e8')][_0x5dcb4d('0x1b86')]):_0x3afb47[_0x5dcb4d('0xaab')]()});});}function _0x5a12a1(_0x2493b5){const _0x432e9c=_0x1e0417;_0x29e1a9[_0x432e9c('0x237e')](_0x2493b5);}}const _0x4767ce=_0x2ceb04,_0x2f56aa=_0x351988['p']+_0x21d0f5('0x1ea8'),_0xe10ecf=_0x351988['p']+_0x21d0f5('0x1b0');_0x1f7c9a[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0x1b30'),_0x21d0f5('0x17f5'),_0x21d0f5('0x1ca2'),_0x21d0f5('0x18fe'),'$q',_0x21d0f5('0x1150'),_0x21d0f5('0x12a5'),'socket',_0x21d0f5('0x142d')];function _0x1f7c9a(_0x489788,_0x2971dd,_0x57e335,_0x57b7a1,_0x19e051,_0x221038,_0x1ff04c,_0x2aa7a9,_0x3eee62,_0x178229){const _0x2c111f=_0x21d0f5,_0x133fc6=this;_0x133fc6[_0x2c111f('0x32a')]=_0x1ff04c[_0x2c111f('0x2428')](),_0x133fc6[_0x2c111f('0xf9d')]={},_0x133fc6[_0x2c111f('0x2296')]={},_0x133fc6[_0x2c111f('0x1b70')],_0x133fc6['group'],_0x133fc6[_0x2c111f('0x286f')]=_0xa7a45,_0x133fc6[_0x2c111f('0x1b67')]=_0x43daa7,_0x133fc6[_0x2c111f('0x1e4b')]=_0x53fe35,_0x133fc6[_0x2c111f('0x140c')]=_0x1d1c73,_0x133fc6['groupsToArray']=_0x479873,_0x133fc6[_0x2c111f('0x708')]=_0x2bba2c,_0x133fc6[_0x2c111f('0x2031')]=_0x38c0cb,_0x133fc6[_0x2c111f('0x494')]=_0x371b83,_0x3eee62['on']('chatInternalMessage:save',_0x101cd4),_0x3eee62['on']('chatInternalMessage:update',_0x30a1a1),_0x3eee62['on'](_0x2c111f('0x778'),_0x540baa),_0x19e051('quick-panel')['onClose'](_0x43daa7);function _0x540baa(_0xd926ed){const _0xb5e46a=_0x2c111f;_0x133fc6[_0xb5e46a('0x2296')][_0xd926ed['id']]&&delete _0x133fc6[_0xb5e46a('0x2296')][_0xd926ed['id']];}function _0x30a1a1(_0x4cc4ed){const _0x356c5a=_0x2c111f;_0x4cc4ed['ToId']==_0x133fc6[_0x356c5a('0x32a')]['id']&&_0x4cc4ed[_0x356c5a('0x16ca')]!==_0x133fc6['currentUser']['id']&&_0x4cc4ed['ChatGroupId']&&_0x4cc4ed[_0x356c5a('0x1601')]&&(_0x133fc6[_0x356c5a('0x2296')][_0x4cc4ed[_0x356c5a('0x2614')]][_0x356c5a('0xf9d')]>0x0&&_0x133fc6[_0x356c5a('0x2296')][_0x4cc4ed[_0x356c5a('0x2614')]][_0x356c5a('0xf9d')]--,_0x133fc6[_0x356c5a('0xdb')][_0x356c5a('0x8d6')][_0x4cc4ed['id']]&&(_0x133fc6[_0x356c5a('0xdb')][_0x356c5a('0x8d6')][_0x4cc4ed['id']][_0x356c5a('0x1601')]=!![]));}function _0x101cd4(_0x4d712f){const _0x13ffc6=_0x2c111f;if(!_0x133fc6[_0x13ffc6('0xdb')]&&_0x4d712f[_0x13ffc6('0x2107')]===_0x133fc6[_0x13ffc6('0x32a')]['id']&&_0x4d712f[_0x13ffc6('0x16ca')]!==_0x133fc6[_0x13ffc6('0x32a')]['id']&&!_0x4d712f[_0x13ffc6('0x1601')]&&_0x4d712f[_0x13ffc6('0x2614')]){const _0x4e486f=_0x133fc6['groups'][_0x4d712f[_0x13ffc6('0x2614')]];if(_0x4e486f)!_0x4e486f[_0x13ffc6('0xf9d')]&&(_0x4e486f[_0x13ffc6('0xf9d')]=0x0),_0x4e486f[_0x13ffc6('0xf9d')]++;else return _0x2aa7a9['chatGroup'][_0x13ffc6('0xbaa')]({'id':_0x4d712f[_0x13ffc6('0x2614')]})[_0x13ffc6('0x1549')]['then'](function(_0x1f80dc){_0x1f80dc['unreadGroupMessages']=0x1,_0x133fc6['groups'][_0x1f80dc['id']]=_0x1f80dc;});}_0x133fc6[_0x13ffc6('0xdb')]&&_0x4d712f[_0x13ffc6('0x2614')]===_0x133fc6['group']['id']&&_0x4d712f[_0x13ffc6('0x2107')]===_0x133fc6['currentUser']['id']&&_0x2aa7a9[_0x13ffc6('0xe7d')][_0x13ffc6('0x5ab')]({'id':_0x4d712f['id'],'read':!![]})[_0x13ffc6('0x1549')]['then'](function(){_0x4c8aac(_0x4d712f);});}function _0xa7a45(_0x2cb08a){const _0x10995c=_0x2c111f;return _0x133fc6[_0x10995c('0x17ff')]=_0x2cb08a,_0x2aa7a9[_0x10995c('0x21d9')]['getGroups']({'id':_0x133fc6['currentUser']['id']})[_0x10995c('0x1549')][_0x10995c('0x11bf')](function(_0x2147f6){const _0xf5a19b=_0x10995c,_0x280c73=[];for(let _0x37758d=0x0;_0x37758d<_0x2147f6[_0xf5a19b('0x19b2')]['length'];_0x37758d++){_0x2147f6[_0xf5a19b('0x19b2')][_0x37758d][_0xf5a19b('0xf9d')]=0x0,_0x133fc6['groups'][_0x2147f6[_0xf5a19b('0x19b2')][_0x37758d]['id']]=_0x2147f6[_0xf5a19b('0x19b2')][_0x37758d],_0x280c73[_0xf5a19b('0x105d')](_0x2aa7a9[_0xf5a19b('0x19f2')][_0xf5a19b('0xfce')]({'id':_0x2147f6['rows'][_0x37758d]['id']})[_0xf5a19b('0x1549')]);}return _0x221038[_0xf5a19b('0x7c')](_0x280c73);})[_0x10995c('0x11bf')](function(_0x48b329){const _0x2d1e28=_0x10995c;for(let _0x41a0e5=0x0;_0x41a0e5<_0x48b329['length'];_0x41a0e5++){_0x133fc6['groups'][_0x48b329[_0x41a0e5]['id']][_0x2d1e28('0xf9d')]+=_0x48b329[_0x41a0e5]['count'];}})[_0x10995c('0x151d')](function(_0x293f64){const _0x4b741e=_0x10995c;console[_0x4b741e('0x255')](_0x293f64);});}function _0x479873(){const _0x396043=_0x2c111f;return _0x36f548()[_0x396043('0x1643')](_0x133fc6[_0x396043('0x2296')]);}function _0x2bba2c(_0xb7580a,_0x1ef6f1){const _0x23f530=_0x2c111f;_0x57b7a1[_0x23f530('0xb9')]({'controller':_0x23f530('0x11c'),'controllerAs':'vm','templateUrl':_0xe10ecf,'parent':angular[_0x23f530('0x1e73')](_0x2971dd[_0x23f530('0x1d2')]),'targetEvent':_0xb7580a,'clickOutsideToClose':!![],'locals':{'message':_0x1ef6f1},'resolve':{'data':function(){const _0x4c8a1c=_0x23f530,_0x1ea00b={'messages':[]};return _0x2aa7a9[_0x4c8a1c('0xe7d')]['get']({'ChatInternalMessageId':_0x1ef6f1['id']})[_0x4c8a1c('0x1549')][_0x4c8a1c('0x11bf')](function(_0x54f0bb){const _0x15906e=_0x4c8a1c,_0x44075c=[];_0x1ea00b['messages']=_0x54f0bb[_0x15906e('0x19b2')],_0x1ea00b['messages'][_0x15906e('0x880')](_0x1ef6f1);for(let _0x295d44=0x0;_0x295d44<_0x1ea00b['messages'][_0x15906e('0x1e22')];_0x295d44++){_0x44075c[_0x15906e('0x105d')](_0x2aa7a9['user']['get']({'id':_0x1ea00b[_0x15906e('0x8d6')][_0x295d44][_0x15906e('0x2107')],'fields':_0x15906e('0x1dbe')})[_0x15906e('0x1549')]);}return _0x221038[_0x15906e('0x7c')](_0x44075c);})['then'](function(_0x4fa225){const _0x21a1bd=_0x4c8a1c;return _0x1ea00b[_0x21a1bd('0x17c0')]=_0x4fa225,_0x1ea00b;})[_0x4c8a1c('0x151d')](function(_0x103de2){_0x103de2&&console['error'](_0x103de2);});}}})['then'](function(){})[_0x23f530('0x151d')](function(_0x251a97){const _0x43540e=_0x23f530;_0x251a97&&console[_0x43540e('0x255')](_0x251a97['message']);});}function _0x371b83(){const _0x1e1851=_0x2c111f;if(!_0x133fc6['replyMessage'])return;const _0x3a5847={'id':_0x133fc6[_0x1e1851('0xdb')]['id'],'FromId':_0x133fc6['currentUser']['id'],'ToId':_0x133fc6[_0x1e1851('0x32a')]['id'],'body':_0x133fc6['replyMessage'],'read':!![]},_0x4eb579=[];_0x133fc6[_0x1e1851('0x2487')]='',_0x2aa7a9[_0x1e1851('0x19f2')][_0x1e1851('0x125b')](_0x3a5847)[_0x1e1851('0x1549')]['then'](function(_0x80eb40){const _0x3f44bf=_0x1e1851;_0x3a5847['read']=![],_0x3a5847[_0x3f44bf('0x15e6')]=_0x80eb40['id'];for(let _0x21de62=0x0;_0x21de62<_0x133fc6[_0x3f44bf('0xdb')][_0x3f44bf('0x1c06')][_0x3f44bf('0x1e22')];_0x21de62++){_0x133fc6[_0x3f44bf('0xdb')]['members'][_0x21de62]['id']!==_0x133fc6['currentUser']['id']&&(_0x3a5847[_0x3f44bf('0x2107')]=_0x133fc6[_0x3f44bf('0xdb')][_0x3f44bf('0x1c06')][_0x21de62]['id'],_0x4eb579['push'](_0x2aa7a9[_0x3f44bf('0x19f2')][_0x3f44bf('0x125b')](angular[_0x3f44bf('0x6fb')](_0x3a5847))['$promise']));}return _0x221038[_0x3f44bf('0x7c')](_0x4eb579);})['catch'](function(_0x3444fe){const _0x1f3734=_0x1e1851;console[_0x1f3734('0xc78')](_0x3444fe);});}function _0x4c8aac(_0xb95916){const _0x6e3169=_0x2c111f;_0x133fc6[_0x6e3169('0xdb')][_0x6e3169('0x8d6')][_0xb95916['id']]=_0xb95916,_0x362c5a(0x190);}function _0x43daa7(){delete _0x133fc6['group'];}function _0x362c5a(_0x5b2d26){const _0x4c3783=_0x2c111f,_0x2f8abe=angular[_0x4c3783('0x1e73')](_0x4c3783('0x1e1e'));_0x57e335(function(){const _0xb81e57=_0x4c3783;_0x2f8abe['animate']({'scrollTop':_0x2f8abe[0x0][_0xb81e57('0x1a89')]},_0x5b2d26);},0x0);}function _0x38c0cb(_0x2ff59d){const _0x1bd126=_0x2c111f;_0x133fc6['group']={'id':_0x2ff59d['id'],'write':_0x2ff59d[_0x1bd126('0x1637')],'messages':{}},_0x2aa7a9[_0x1bd126('0x19f2')][_0x1bd126('0x226d')]({'id':_0x2ff59d['id'],'fields':_0x1bd126('0x919')})[_0x1bd126('0x1549')][_0x1bd126('0x11bf')](function(_0x2dceab){const _0xe338d4=_0x1bd126;return _0x133fc6[_0xe338d4('0xdb')][_0xe338d4('0x66b')]=_0x36f548()[_0xe338d4('0x2130')](_0x2dceab[_0xe338d4('0x19b2')],'id'),_0x133fc6[_0xe338d4('0xdb')][_0xe338d4('0x1c06')]=_0x36f548()['differenceBy'](_0x2dceab[_0xe338d4('0x19b2')],[{'id':_0x133fc6[_0xe338d4('0x32a')]['id']}],'id'),_0x133fc6[_0xe338d4('0x1b70')]=_0x36f548()[_0xe338d4('0x2171')](_0x133fc6['group'][_0xe338d4('0x1c06')],_0xe338d4('0x27af'))[_0xe338d4('0xa04')](',\x20'),_0x2aa7a9[_0xe338d4('0x19f2')][_0xe338d4('0x1308')]({'id':_0x2ff59d['id'],'nolimit':!![]})[_0xe338d4('0x1549')];})[_0x1bd126('0x11bf')](function(_0x5b0ec6){const _0x1440ff=_0x1bd126,_0x50b8b7=[];let _0x50baaf;for(let _0x421a41=0x0;_0x421a41<_0x5b0ec6[_0x1440ff('0x27d2')];_0x421a41++){_0x5b0ec6[_0x1440ff('0x19b2')][_0x421a41][_0x1440ff('0x2107')]===_0x133fc6['currentUser']['id']&&(_0x50baaf=_0x5b0ec6[_0x1440ff('0x19b2')][_0x421a41],_0x133fc6['group']['messages'][_0x50baaf['id']]=_0x50baaf,_0x5b0ec6[_0x1440ff('0x19b2')][_0x421a41][_0x1440ff('0x2107')]==_0x133fc6['currentUser']['id']&&_0x5b0ec6[_0x1440ff('0x19b2')][_0x421a41][_0x1440ff('0x16ca')]!==_0x133fc6[_0x1440ff('0x32a')]['id']&&!_0x50baaf[_0x1440ff('0x1601')]&&_0x50b8b7[_0x1440ff('0x105d')](_0x2aa7a9['chatInternalMessage'][_0x1440ff('0x5ab')]({'id':_0x50baaf['id'],'read':!![]})));}return _0x221038[_0x1440ff('0x7c')](_0x50b8b7);})['then'](function(){_0x362c5a(0x190);})[_0x1bd126('0x151d')](function(_0x5a8f25){console['error'](_0x5a8f25['message']);});}function _0x1d1c73(_0x48a3c8,_0x37e2ae){const _0x546eb6=_0x2c111f,_0x5f3193=_0x57b7a1[_0x546eb6('0x132b')]()[_0x546eb6('0x134b')](_0x546eb6('0x23c2'))[_0x546eb6('0x1d03')]('Group\x20'+_0x48a3c8[_0x546eb6('0x1909')]+_0x546eb6('0x1c78')+_0x546eb6('0x1a'))[_0x546eb6('0xb2e')](_0x546eb6('0x254c'))[_0x546eb6('0x1e25')](_0x37e2ae)['ok']('OK')['cancel'](_0x546eb6('0x772'));_0x57b7a1[_0x546eb6('0xb9')](_0x5f3193)['then'](function(){const _0x54234d=_0x546eb6;return _0x2aa7a9[_0x54234d('0x19f2')][_0x54234d('0x2088')]({'id':_0x48a3c8['id']})[_0x54234d('0x1549')];})[_0x546eb6('0x11bf')](function(){const _0x12bbcd=_0x546eb6;delete _0x133fc6['groups'][_0x48a3c8['id']],_0x178229[_0x12bbcd('0x2693')]({'title':_0x12bbcd('0xfa0'),'msg':_0x48a3c8[_0x12bbcd('0x1909')]+_0x12bbcd('0x433')});})[_0x546eb6('0x151d')](function(_0x1fc746){const _0x3b6f5e=_0x546eb6;_0x1fc746&&_0x178229[_0x3b6f5e('0x255')]({'title':_0x1fc746[_0x3b6f5e('0xff9')]?_0x3b6f5e('0x574')+_0x1fc746[_0x3b6f5e('0xff9')]+_0x3b6f5e('0xb0b')+_0x1fc746[_0x3b6f5e('0x212f')]:_0x3b6f5e('0x22c6'),'msg':_0x1fc746['data']?JSON[_0x3b6f5e('0x3e')](_0x1fc746[_0x3b6f5e('0x4e8')]['message']):_0x1fc746['toString']()});});}function _0x53fe35(_0x46c5f3,_0xd353b){const _0x4b7dfe=_0x2c111f;_0x57b7a1[_0x4b7dfe('0xb9')]({'controller':_0x4b7dfe('0x14f6'),'controllerAs':'vm','templateUrl':_0x2f56aa,'parent':angular[_0x4b7dfe('0x1e73')](_0x2971dd[_0x4b7dfe('0x1d2')]),'targetEvent':_0xd353b,'clickOutsideToClose':!![],'locals':{'group':_0x46c5f3,'me':_0x133fc6['currentUser'],'license':null,'setting':null},'resolve':{'members':function(){const _0x5de407=_0x4b7dfe;return _0x1ff04c[_0x5de407('0x4ee')](_0x5de407('0xf45'))?_0x2aa7a9[_0x5de407('0x21d9')]['get']({'role':'agent'})[_0x5de407('0x1549')]:_0x2aa7a9[_0x5de407('0x25bc')][_0x5de407('0x228e')]({'id':_0x1ff04c[_0x5de407('0x2428')]()[_0x5de407('0x781')],'section':'Agents','role':'agent'})['$promise'];}}})[_0x4b7dfe('0x11bf')](function(_0x5b1608){const _0x15778a=_0x4b7dfe;_0x5b1608&&(_0x133fc6[_0x15778a('0x2296')][_0x5b1608['id']]=_0x5b1608);})[_0x4b7dfe('0x151d')](function(_0x4259d5){const _0x222a0d=_0x4b7dfe;_0x4259d5&&console[_0x222a0d('0x255')](_0x4259d5[_0x222a0d('0x1b86')]);});}_0x489788[_0x2c111f('0x12d8')]('$destroy',function(){const _0x36d8c3=_0x2c111f;_0x3eee62['removeAllListeners'](_0x36d8c3('0x36b')),_0x3eee62[_0x36d8c3('0x1b2e')](_0x36d8c3('0x27bc')),_0x3eee62[_0x36d8c3('0x1b2e')]('chatGroup:remove');});}const _0x3780cc=_0x1f7c9a;_0x479fa0['$inject']=[_0x21d0f5('0x1b80'),_0x21d0f5('0xcbc'),'$location','$mdDialog',_0x21d0f5('0x142d'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),_0x21d0f5('0x4e8')];function _0x479fa0(_0x789d44,_0x5dea4d,_0x1bebef,_0x3ecc5c,_0x4953e4,_0x374eff,_0x2c3e76,_0x3c3a69){const _0x2c6bd7=_0x21d0f5,_0x3e8c2a=this;_0x3e8c2a[_0x2c6bd7('0x4e8')]=_0x3c3a69,_0x3e8c2a[_0x2c6bd7('0x134b')]='QUICKPANEL.INFO';function _0x1ad630(){const _0x5f3759=_0x2c6bd7;_0x3ecc5c[_0x5f3759('0x237e')]();}_0x3e8c2a[_0x2c6bd7('0xc4e')]=_0x1ad630;}const _0x5086d5=_0x479fa0;_0x2932b7[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0xc3e')];function _0x2932b7(_0xfb85da){const _0x1bfb57=_0x21d0f5;_0xfb85da[_0x1bfb57('0x471')](_0x1bfb57('0xefd'));}angular[_0x21d0f5('0x2768')](_0x21d0f5('0x6b7'),[])[_0x21d0f5('0x53a')](_0x2932b7)[_0x21d0f5('0x23eb')]('QuickPanelController',_0x1916b9)[_0x21d0f5('0x23eb')](_0x21d0f5('0x239a'),_0x489b6f)[_0x21d0f5('0x23eb')](_0x21d0f5('0x14f6'),_0x4767ce)[_0x21d0f5('0x23eb')](_0x21d0f5('0x1e8a'),_0x3780cc)[_0x21d0f5('0x23eb')](_0x21d0f5('0x11c'),_0x5086d5),_0x4f2a45[_0x21d0f5('0x1e9a')]=['Auth',_0x21d0f5('0x5d8')];function _0x4f2a45(_0x3cc255,_0x1e7c8a){const _0x23d2d8=_0x21d0f5,_0x456645=this;function _0x2219b7(){const _0x3b5ca5=a0_0xaf0c;_0x1e7c8a[_0x3b5ca5('0x2318')](_0x3b5ca5('0x2f1')+_0x456645[_0x3b5ca5('0x32a')]['id'],!![]);}_0x456645[_0x23d2d8('0x32a')]=_0x3cc255[_0x23d2d8('0x2428')](),_0x456645[_0x23d2d8('0xb77')]=_0x1e7c8a[_0x23d2d8('0xbaa')](_0x23d2d8('0x2f1')+_0x456645[_0x23d2d8('0x32a')]['id'])||![],_0x456645[_0x23d2d8('0xe40')]=_0x2219b7;}const _0x140372=_0x4f2a45;_0x5c3aef[_0x21d0f5('0x1e9a')]=['$translatePartialLoaderProvider'];function _0x5c3aef(_0x4e391a){const _0x5a25c6=_0x21d0f5;_0x4e391a[_0x5a25c6('0x471')]('app/header');}angular[_0x21d0f5('0x2768')](_0x21d0f5('0xbc6'),[])[_0x21d0f5('0x53a')](_0x5c3aef)[_0x21d0f5('0x23eb')](_0x21d0f5('0x1829'),_0x140372),_0x4217b6[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1150'),_0x21d0f5('0x5d8')];function _0x4217b6(_0xa3bf3c,_0x27e740){const _0x159461=_0x21d0f5,_0x39db3a=this;function _0x2a7fe3(){const _0x274579=a0_0xaf0c;_0x27e740[_0x274579('0x2318')](_0x274579('0x18da')+_0x39db3a[_0x274579('0x32a')]['id'],!![]);}_0x39db3a[_0x159461('0x32a')]=_0xa3bf3c[_0x159461('0x2428')](),_0x39db3a[_0x159461('0x1c09')]=_0x27e740[_0x159461('0xbaa')](_0x159461('0x18da')+_0x39db3a[_0x159461('0x32a')]['id'])||![],_0x39db3a[_0x159461('0xc2')]=_0x2a7fe3;}const _0x12b9ad=_0x4217b6;_0x58e34b[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0xc3e')];function _0x58e34b(_0x2d4596){const _0x1bb588=_0x21d0f5;_0x2d4596[_0x1bb588('0x471')]('app/footer');}angular['module']('app.footer',[])[_0x21d0f5('0x53a')](_0x58e34b)[_0x21d0f5('0x23eb')](_0x21d0f5('0x1dd0'),_0x12b9ad);var _0x5e2aef=_0x351988(0x1cbe),_0xfaf783=_0x351988(0x2303),_0xd4e9f1=_0x351988(0xde6),_0x1e4590=_0x351988(0x321),_0x3b2255=_0x351988(0x1c92),_0x1b3c45=_0x351988(0x2361),_0x39b63d=_0x351988(0xdd5),_0x4c67a1=_0x351988(0x9d6),_0x471ef4=_0x351988(0x20aa),_0x5c3814=_0x351988(0x1ac1),_0x54a824=_0x351988(0x15c3),_0x5b9ecd=_0x351988(0x154a),_0x68b615=_0x351988(0x2154),_0x45f665=_0x351988(0x23a1),_0x61fc20=_0x351988(0xa7c),_0x24d7bf=_0x351988(0x1eaf),_0x2b1ee2=_0x351988(0x444),_0x5ae54d=_0x351988(0x1c4),_0x1467c3=_0x351988(0x121a),_0x26a00f=_0x351988(0x1be),_0x32052d=_0x351988(0xd3e);const _0x4075bb=_0x351988['p']+_0x21d0f5('0x1a4d'),_0x4f483f=_0x351988['p']+_0x21d0f5('0x145b'),_0x2f290f=_0x351988['p']+_0x21d0f5('0x15f4'),_0x4f292e=_0x351988['p']+_0x21d0f5('0xf15'),_0x24c704=_0x351988['p']+_0x21d0f5('0x1187'),_0x2cf804=_0x351988['p']+_0x21d0f5('0x1366'),_0x4e4900=_0x351988['p']+_0x21d0f5('0x1172'),_0x4aa571=_0x351988['p']+'src/js/modules/main/apps/dashboards/views/general/user/whatsapp/user.general.whatsapp.html/user.general.whatsapp.html';_0x3374cd['$inject']=[_0x21d0f5('0x1b80'),_0x21d0f5('0x1d56'),_0x21d0f5('0x1073'),_0x21d0f5('0x235c')];function _0x3374cd(_0x19359a,_0x167071,_0x516377,_0x1e25b6){const _0x2af772=_0x21d0f5,_0x1d75db=this,_0x34cf4c=[];_0x1d75db[_0x2af772('0x53a')]={'format':'hh:mm:ss','unit':'seconds','trim':![]},_0x1d75db[_0x2af772('0x18a2')]={'waiting':0x0,'talking':0x0,'answered':0x0,'abandoned':0x0,'unmanaged':0x0,'sumHoldTime':0x0,'sumBillable':0x0,'total':0x0,'avgHoldTime':_0x2af772('0xf8d'),'avgTalkTime':_0x2af772('0xf8d'),'answerRate':0x0,'abandonRate':0x0},_0x1d75db[_0x2af772('0x235c')]=_0x1e25b6?_0x36f548()[_0x2af772('0x2130')](_0x1e25b6[_0x2af772('0x19b2')]?_0x1e25b6['rows']:[],'id'):{},_0x1d75db[_0x2af772('0xe30')]=_0x201c20,_0x1d75db[_0x2af772('0x1bd0')]=_0x188040,_0x167071['on']('chatInteraction:save',_0x1d75db[_0x2af772('0xe30')]),_0x167071['on']('chatInteraction:update',_0x1d75db[_0x2af772('0x1bd0')]),_0x33a735();function _0x7b69e3(_0x459090,_0x2aff19){const _0x317e07=_0x2af772;!_0x459090[_0x317e07('0x949')]&&!_0x459090['UserId']&&_0x2aff19&&(_0x1d75db[_0x317e07('0x18a2')]['waiting']+=0x1);!_0x459090[_0x317e07('0x949')]&&_0x459090['UserId']&&!_0x36f548()[_0x317e07('0x55a')](_0x34cf4c,_0x459090['id'])&&(_0x1d75db[_0x317e07('0x18a2')][_0x317e07('0x11ed')]+=0x1,_0x34cf4c[_0x317e07('0x105d')](_0x459090['id']),!_0x2aff19&&_0x1d75db['inbound'][_0x317e07('0x1491')]&&(_0x1d75db['inbound']['waiting']-=0x1));if(_0x459090[_0x317e07('0x949')]&&_0x459090[_0x317e07('0x107a')]===_0x317e07('0x23e8'))_0x1d75db[_0x317e07('0x18a2')][_0x317e07('0x23e8')]+=0x1,!_0x2aff19&&_0x1d75db[_0x317e07('0x18a2')][_0x317e07('0x1491')]&&(_0x1d75db['inbound']['waiting']-=0x1);else{if(_0x459090[_0x317e07('0x949')]&&!_0x459090[_0x317e07('0x2342')]&&_0x459090[_0x317e07('0x107a')])_0x1d75db[_0x317e07('0x18a2')][_0x317e07('0x1c3a')]+=0x1,!_0x2aff19&&_0x1d75db[_0x317e07('0x18a2')][_0x317e07('0x1491')]&&(_0x1d75db[_0x317e07('0x18a2')]['waiting']-=0x1);else _0x459090[_0x317e07('0x949')]&&_0x459090[_0x317e07('0x2342')]&&(_0x1d75db['inbound']['sumBillable']+=_0x57d4d1()(_0x459090[_0x317e07('0x1daa')])[_0x317e07('0xe2b')](_0x57d4d1()(_0x459090[_0x317e07('0x20df')]),_0x1d75db[_0x317e07('0x53a')]['unit']),_0x1d75db[_0x317e07('0x18a2')][_0x317e07('0x71f')]+=_0x57d4d1()(_0x459090[_0x317e07('0x20df')])[_0x317e07('0xe2b')](_0x57d4d1()(_0x459090[_0x317e07('0x1779')]),_0x1d75db[_0x317e07('0x53a')][_0x317e07('0xe79')]),_0x1d75db['inbound']['answered']+=0x1,!_0x2aff19&&_0x1d75db[_0x317e07('0x18a2')]['talking']&&(_0x1d75db[_0x317e07('0x18a2')][_0x317e07('0x11ed')]-=0x1));}_0x2aff19&&(_0x1d75db[_0x317e07('0x18a2')][_0x317e07('0x4af')]+=0x1);}function _0x110f5c(){const _0x3249d1=_0x2af772;_0x1d75db[_0x3249d1('0x18a2')]['abandonRate']=Math['round']((_0x1d75db[_0x3249d1('0x18a2')]['abandoned']+_0x1d75db[_0x3249d1('0x18a2')][_0x3249d1('0x1c3a')])/(_0x1d75db[_0x3249d1('0x18a2')]['total']-_0x1d75db[_0x3249d1('0x18a2')][_0x3249d1('0x11ed')]-_0x1d75db[_0x3249d1('0x18a2')][_0x3249d1('0x1491')])*0x64,-0x2),_0x1d75db['inbound']['answerRate']=Math[_0x3249d1('0xe89')](_0x1d75db['inbound'][_0x3249d1('0x150f')]/(_0x1d75db[_0x3249d1('0x18a2')]['total']-_0x1d75db[_0x3249d1('0x18a2')]['talking']-_0x1d75db[_0x3249d1('0x18a2')]['waiting'])*0x64,-0x2),_0x1d75db['inbound']['avgHoldTime']=_0x57d4d1()[_0x3249d1('0x187f')](Math[_0x3249d1('0xe89')](_0x1d75db[_0x3249d1('0x18a2')][_0x3249d1('0x71f')]/_0x1d75db[_0x3249d1('0x18a2')]['answered']),_0x1d75db[_0x3249d1('0x53a')]['unit'])[_0x3249d1('0x1826')](_0x1d75db[_0x3249d1('0x53a')][_0x3249d1('0x1826')],_0x1d75db['config']),_0x1d75db[_0x3249d1('0x18a2')][_0x3249d1('0x777')]=_0x57d4d1()[_0x3249d1('0x187f')](Math[_0x3249d1('0xe89')](_0x1d75db[_0x3249d1('0x18a2')][_0x3249d1('0x17e1')]/_0x1d75db[_0x3249d1('0x18a2')][_0x3249d1('0x150f')]),_0x1d75db[_0x3249d1('0x53a')][_0x3249d1('0xe79')])['format'](_0x1d75db[_0x3249d1('0x53a')][_0x3249d1('0x1826')],_0x1d75db[_0x3249d1('0x53a')]);}function _0x33a735(){const _0x5e029e=_0x2af772;if(Object['keys'](_0x1d75db['chatWebsites'])['length']>0x0)for(let _0x22b841=0x0;_0x22b841<_0x516377[_0x5e029e('0x19b2')]['length'];_0x22b841+=0x1){if(_0x5749c1(_0x516377[_0x5e029e('0x19b2')][_0x22b841])){const _0x1406c1=_0x516377['rows'][_0x22b841];_0x7b69e3(_0x1406c1,!![]),_0x110f5c();}}}function _0x5749c1(_0x4447a6){const _0xd7fbee=_0x2af772;if(_0x36f548()[_0xd7fbee('0x1cb3')](_0x1d75db[_0xd7fbee('0x235c')],{'id':_0x36f548()[_0xd7fbee('0x17c2')](_0x4447a6[_0xd7fbee('0x2346')])}))return!![];return![];}function _0x274cbb(_0xee6fb5){const _0x1013f5=_0x2af772,_0x13db15=_0x57d4d1()()[_0x1013f5('0x1fb1')](0x0,!![])['startOf'](_0x1013f5('0x2161')),_0x5e2b83=_0x57d4d1()()[_0x1013f5('0x1fb1')](0x0,!![])[_0x1013f5('0x2ba')](_0x1013f5('0x2161'));return _0x57d4d1()(_0xee6fb5)['utcOffset'](0x0,!![])[_0x1013f5('0x2025')](_0x13db15,_0x5e2b83);}function _0x201c20(_0x4c8d52){const _0x2f6212=_0x2af772;_0x5749c1(_0x4c8d52)&&_0x274cbb(_0x4c8d52[_0x2f6212('0x1779')])&&(_0x7b69e3(_0x4c8d52,!![]),_0x110f5c());}function _0x188040(_0x1f2569){const _0x1a50c1=_0x2af772;_0x5749c1(_0x1f2569)&&_0x274cbb(_0x1f2569[_0x1a50c1('0x1779')])&&(_0x7b69e3(_0x1f2569,![]),_0x110f5c());}_0x19359a[_0x2af772('0x12d8')]('$destroy',function(){const _0x2c4393=_0x2af772;_0x167071['removeAllListeners'](_0x2c4393('0x1bc6')),_0x167071['removeAllListeners'](_0x2c4393('0x1f00'));});}const _0x4538ab=_0x3374cd;_0x23ec10[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0x1fd'),_0x21d0f5('0x1d56'),_0x21d0f5('0x2808'),'rpcQueues',_0x21d0f5('0x119d'),'initializeRealtimeCampaign',_0x21d0f5('0x1555')];function _0x23ec10(_0x37cecb,_0x32695,_0x17b4e4,_0x3a9dbb,_0x585d52,_0x1af530,_0x91e891,_0x34dc3f){const _0x55916a=_0x21d0f5,_0x391536=this;_0x391536[_0x55916a('0x2808')]=_0x3a9dbb?_0x36f548()[_0x55916a('0x2130')](_0x3a9dbb[_0x55916a('0x19b2')]?_0x3a9dbb[_0x55916a('0x19b2')]:[],'id'):{},_0x391536['rpcQueues']=_0x585d52?_0x36f548()[_0x55916a('0x2130')](_0x585d52['rows']?_0x585d52['rows']:[],'id'):{},_0x391536[_0x55916a('0x1555')]=_0x34dc3f?_0x36f548()[_0x55916a('0x2130')](_0x34dc3f[_0x55916a('0x19b2')]?_0x34dc3f['rows']:[],'id'):{},_0x391536['ivr']={'originated':0x0,'limitCalls':0x0},_0x391536[_0x55916a('0x18a2')]={'waiting':0x0,'talking':0x0,'pTalking':0x0,'answered':0x0,'abandoned':0x0,'unmanaged':0x0,'sumHoldTime':0x0,'sumBillable':0x0,'total':0x0,'avgHoldTime':_0x55916a('0xf8d'),'avgTalkTime':_0x55916a('0xf8d'),'answerRate':0x0,'abandonRate':0x0,'outboundDropCallsDayCallersExit':0x0,'outboundDropCallsDayTimeout':0x0},_0x391536[_0x55916a('0x26ef')]=_0x1390b6,_0x391536[_0x55916a('0x10ed')]=_0x8bc370,_0x17b4e4[_0x55916a('0x284d')]('voice_queue:save',_0x391536[_0x55916a('0x26ef')]),_0x391536[_0x55916a('0x507')]=_0x32695(function(){_0x4c4131(),_0x42762d();},0x3e7),_0x17b4e4[_0x55916a('0x284d')](_0x55916a('0x1515'),_0x391536['onSaveCampaign']),_0x4c4131(),_0x42762d();function _0x4c4131(){const _0x4f868f=_0x55916a;_0x1af530({'queues':_0x391536['outboundQueues'],'rpcQueues':_0x391536[_0x4f868f('0x1223')]})[_0x4f868f('0x11bf')](function(_0x4352b4){const _0x2ded57=_0x4f868f;_0x391536[_0x2ded57('0x18a2')]=_0x4352b4;});}function _0x42762d(){_0x91e891({'rpcCampaigns':_0x391536['rpcCampaigns']})['then'](function(_0x2bd8fb){const _0x254449=a0_0xaf0c;_0x391536[_0x254449('0x1316')]=_0x2bd8fb;});}function _0x1390b6(_0x4bdcbd){const _0x3504b8=_0x55916a;_0x391536[_0x3504b8('0x2808')][_0x4bdcbd['id']]&&(_0x391536[_0x3504b8('0x1223')][_0x4bdcbd['id']]&&(_0x391536[_0x3504b8('0x1223')][_0x4bdcbd['id']]=_0x4bdcbd));}function _0x8bc370(_0x1cb35b){const _0x136675=_0x55916a;_0x391536[_0x136675('0x1555')][_0x1cb35b['id']]&&(_0x391536[_0x136675('0x1555')][_0x1cb35b['id']]=_0x1cb35b);}_0x37cecb[_0x55916a('0x12d8')](_0x55916a('0x4f7'),function(){const _0xb1a869=_0x55916a;_0x17b4e4[_0xb1a869('0x1b2e')](_0xb1a869('0x259b')),_0x17b4e4['removeAllListeners']('campaign:save'),_0x391536[_0xb1a869('0x507')]&&_0x32695['cancel'](_0x391536['interval']);});}const _0x47184e=_0x23ec10;_0x251986[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0x1d56'),_0x21d0f5('0x1f64'),_0x21d0f5('0xc6e')];function _0x251986(_0x439607,_0x42d121,_0x187c19,_0x2d4973){const _0x457859=_0x21d0f5,_0x44af02=this,_0x24b9ba=[];_0x44af02[_0x457859('0x53a')]={'format':_0x457859('0xb52'),'unit':_0x457859('0x278'),'trim':![]},_0x44af02['inbound']={'waiting':0x0,'talking':0x0,'answered':0x0,'abandoned':0x0,'unmanaged':0x0,'sumHoldTime':0x0,'sumBillable':0x0,'total':0x0,'avgHoldTime':'00:00:00','avgTalkTime':_0x457859('0xf8d'),'answerRate':0x0,'abandonRate':0x0},_0x44af02[_0x457859('0xc6e')]=_0x2d4973?_0x36f548()['keyBy'](_0x2d4973[_0x457859('0x19b2')]?_0x2d4973['rows']:[],'id'):{},_0x44af02[_0x457859('0x1bb7')]=_0x4efd1e,_0x44af02[_0x457859('0x21c4')]=_0xe0952f,_0x42d121['on'](_0x457859('0x1a07'),_0x44af02[_0x457859('0x1bb7')]),_0x42d121['on'](_0x457859('0x2b3'),_0x44af02[_0x457859('0x21c4')]),_0x28625c();function _0x7cc493(_0x54adca,_0x34298a){const _0x2cd32b=_0x457859;!_0x54adca[_0x2cd32b('0x949')]&&!_0x54adca[_0x2cd32b('0x2342')]&&_0x34298a&&(_0x44af02[_0x2cd32b('0x18a2')][_0x2cd32b('0x1491')]+=0x1),!_0x54adca['closed']&&_0x54adca['UserId']&&!_0x36f548()[_0x2cd32b('0x55a')](_0x24b9ba,_0x54adca['id'])&&(_0x44af02[_0x2cd32b('0x18a2')]['talking']+=0x1,_0x24b9ba[_0x2cd32b('0x105d')](_0x54adca['id']),!_0x34298a&&_0x44af02[_0x2cd32b('0x18a2')][_0x2cd32b('0x1491')]&&(_0x44af02[_0x2cd32b('0x18a2')][_0x2cd32b('0x1491')]-=0x1)),_0x54adca[_0x2cd32b('0x949')]&&_0x54adca[_0x2cd32b('0x2342')]&&(_0x44af02[_0x2cd32b('0x18a2')][_0x2cd32b('0x17e1')]+=_0x57d4d1()(_0x54adca[_0x2cd32b('0x1daa')])[_0x2cd32b('0xe2b')](_0x57d4d1()(_0x54adca['read1stAt']),_0x44af02['config'][_0x2cd32b('0xe79')]),_0x44af02[_0x2cd32b('0x18a2')][_0x2cd32b('0x71f')]+=_0x57d4d1()(_0x54adca[_0x2cd32b('0x20df')])['diff'](_0x57d4d1()(_0x54adca['createdAt']),_0x44af02['config'][_0x2cd32b('0xe79')]),_0x44af02['inbound']['answered']+=0x1,!_0x34298a&&_0x44af02[_0x2cd32b('0x18a2')][_0x2cd32b('0x11ed')]&&(_0x44af02[_0x2cd32b('0x18a2')][_0x2cd32b('0x11ed')]-=0x1)),_0x54adca[_0x2cd32b('0x949')]&&!_0x54adca[_0x2cd32b('0x2342')]&&(_0x44af02[_0x2cd32b('0x18a2')][_0x2cd32b('0x1c3a')]+=0x1,!_0x34298a&&_0x44af02[_0x2cd32b('0x18a2')][_0x2cd32b('0x1491')]&&(_0x44af02[_0x2cd32b('0x18a2')][_0x2cd32b('0x1491')]-=0x1)),_0x34298a&&(_0x44af02[_0x2cd32b('0x18a2')][_0x2cd32b('0x4af')]+=0x1);}function _0x9a8ca7(){const _0x234629=_0x457859;_0x44af02[_0x234629('0x18a2')][_0x234629('0x1009')]=Math[_0x234629('0xe89')]((_0x44af02[_0x234629('0x18a2')][_0x234629('0x23e8')]+_0x44af02[_0x234629('0x18a2')][_0x234629('0x1c3a')])/(_0x44af02[_0x234629('0x18a2')]['total']-_0x44af02[_0x234629('0x18a2')][_0x234629('0x11ed')]-_0x44af02[_0x234629('0x18a2')][_0x234629('0x1491')])*0x64,-0x2),_0x44af02[_0x234629('0x18a2')][_0x234629('0x178a')]=Math[_0x234629('0xe89')](_0x44af02[_0x234629('0x18a2')][_0x234629('0x150f')]/(_0x44af02[_0x234629('0x18a2')][_0x234629('0x4af')]-_0x44af02['inbound'][_0x234629('0x11ed')]-_0x44af02[_0x234629('0x18a2')][_0x234629('0x1491')])*0x64,-0x2),_0x44af02[_0x234629('0x18a2')][_0x234629('0x10c3')]=_0x57d4d1()[_0x234629('0x187f')](Math[_0x234629('0xe89')](_0x44af02[_0x234629('0x18a2')][_0x234629('0x71f')]/_0x44af02[_0x234629('0x18a2')][_0x234629('0x150f')]),_0x44af02[_0x234629('0x53a')]['unit'])[_0x234629('0x1826')](_0x44af02['config']['format'],_0x44af02[_0x234629('0x53a')]),_0x44af02['inbound'][_0x234629('0x777')]=_0x57d4d1()[_0x234629('0x187f')](Math['round'](_0x44af02['inbound']['sumBillable']/_0x44af02[_0x234629('0x18a2')]['answered']),_0x44af02[_0x234629('0x53a')][_0x234629('0xe79')])[_0x234629('0x1826')](_0x44af02[_0x234629('0x53a')][_0x234629('0x1826')],_0x44af02[_0x234629('0x53a')]);}function _0x28625c(){const _0x4768db=_0x457859;if(Object[_0x4768db('0xe22')](_0x44af02[_0x4768db('0xc6e')])[_0x4768db('0x1e22')]>0x0)for(let _0x29e4c9=0x0;_0x29e4c9<_0x187c19[_0x4768db('0x19b2')][_0x4768db('0x1e22')];_0x29e4c9+=0x1){if(_0x4ff239(_0x187c19[_0x4768db('0x19b2')][_0x29e4c9])){const _0x902130=_0x187c19[_0x4768db('0x19b2')][_0x29e4c9];_0x7cc493(_0x902130,!![]),_0x9a8ca7();}}}function _0x4ff239(_0x4b10b3){const _0x235b22=_0x457859;if(_0x36f548()['some'](_0x44af02['faxAccounts'],{'id':_0x36f548()[_0x235b22('0x17c2')](_0x4b10b3['FaxAccountId'])}))return!![];return![];}function _0x3a0832(_0x4e83b7){const _0x457478=_0x457859,_0x1cacc8=_0x57d4d1()()[_0x457478('0x1fb1')](0x0,!![])[_0x457478('0x2655')](_0x457478('0x2161')),_0x2eeccf=_0x57d4d1()()['utcOffset'](0x0,!![])[_0x457478('0x2ba')](_0x457478('0x2161'));return _0x57d4d1()(_0x4e83b7)[_0x457478('0x1fb1')](0x0,!![])['isBetween'](_0x1cacc8,_0x2eeccf);}function _0x4efd1e(_0x42bd75){const _0x449d4e=_0x457859;_0x4ff239(_0x42bd75)&&_0x3a0832(_0x42bd75[_0x449d4e('0x1779')])&&(_0x7cc493(_0x42bd75,!![]),_0x9a8ca7());}function _0xe0952f(_0xebbf35){const _0x709f6d=_0x457859;_0x4ff239(_0xebbf35)&&_0x3a0832(_0xebbf35[_0x709f6d('0x1779')])&&(_0x7cc493(_0xebbf35,![]),_0x9a8ca7());}_0x439607[_0x457859('0x12d8')]('$destroy',function(){const _0x3ef910=_0x457859;_0x42d121[_0x3ef910('0x1b2e')](_0x3ef910('0x1a07')),_0x42d121[_0x3ef910('0x1b2e')](_0x3ef910('0x2b3'));});}const _0x5a840d=_0x251986;_0x303e4f[_0x21d0f5('0x1e9a')]=['$scope',_0x21d0f5('0x1d56'),_0x21d0f5('0x365'),_0x21d0f5('0xf1a')];function _0x303e4f(_0x31768f,_0x196b9c,_0x302f2c,_0x492649){const _0x38c9cb=_0x21d0f5,_0x84137=this,_0x2bab3a=[];_0x84137[_0x38c9cb('0x53a')]={'format':_0x38c9cb('0xb52'),'unit':_0x38c9cb('0x278'),'trim':![]},_0x84137[_0x38c9cb('0x18a2')]={'waiting':0x0,'talking':0x0,'answered':0x0,'abandoned':0x0,'unmanaged':0x0,'sumHoldTime':0x0,'sumBillable':0x0,'total':0x0,'avgHoldTime':'00:00:00','avgTalkTime':_0x38c9cb('0xf8d'),'answerRate':0x0,'abandonRate':0x0},_0x84137[_0x38c9cb('0xf1a')]=_0x492649?_0x36f548()[_0x38c9cb('0x2130')](_0x492649['rows']?_0x492649['rows']:[],'id'):{},_0x84137['onSaveMailInteraction']=_0x370707,_0x84137[_0x38c9cb('0x1991')]=_0x26ec4e,_0x196b9c['on'](_0x38c9cb('0xe29'),_0x84137[_0x38c9cb('0x1809')]),_0x196b9c['on'](_0x38c9cb('0x1b48'),_0x84137[_0x38c9cb('0x1991')]),_0x1a0c15();function _0x802645(_0x5076d1,_0x167029){const _0x2ce1b4=_0x38c9cb;!_0x5076d1[_0x2ce1b4('0x949')]&&!_0x5076d1['UserId']&&_0x167029&&(_0x84137[_0x2ce1b4('0x18a2')][_0x2ce1b4('0x1491')]+=0x1),!_0x5076d1['closed']&&_0x5076d1[_0x2ce1b4('0x2342')]&&!_0x36f548()[_0x2ce1b4('0x55a')](_0x2bab3a,_0x5076d1['id'])&&(_0x84137[_0x2ce1b4('0x18a2')][_0x2ce1b4('0x11ed')]+=0x1,_0x2bab3a['push'](_0x5076d1['id']),!_0x167029&&_0x84137[_0x2ce1b4('0x18a2')][_0x2ce1b4('0x1491')]&&(_0x84137['inbound'][_0x2ce1b4('0x1491')]-=0x1)),_0x5076d1['closed']&&_0x5076d1[_0x2ce1b4('0x2342')]&&(_0x84137['inbound']['sumBillable']+=_0x57d4d1()(_0x5076d1['closedAt'])[_0x2ce1b4('0xe2b')](_0x57d4d1()(_0x5076d1[_0x2ce1b4('0x20df')]),_0x84137[_0x2ce1b4('0x53a')][_0x2ce1b4('0xe79')]),_0x84137['inbound']['sumHoldTime']+=_0x57d4d1()(_0x5076d1[_0x2ce1b4('0x20df')])[_0x2ce1b4('0xe2b')](_0x57d4d1()(_0x5076d1[_0x2ce1b4('0x1779')]),_0x84137[_0x2ce1b4('0x53a')][_0x2ce1b4('0xe79')]),_0x84137[_0x2ce1b4('0x18a2')][_0x2ce1b4('0x150f')]+=0x1,!_0x167029&&_0x84137[_0x2ce1b4('0x18a2')]['talking']&&(_0x84137[_0x2ce1b4('0x18a2')][_0x2ce1b4('0x11ed')]-=0x1)),_0x5076d1[_0x2ce1b4('0x949')]&&!_0x5076d1['UserId']&&(_0x84137['inbound']['unmanaged']+=0x1,!_0x167029&&_0x84137[_0x2ce1b4('0x18a2')][_0x2ce1b4('0x1491')]&&(_0x84137[_0x2ce1b4('0x18a2')][_0x2ce1b4('0x1491')]-=0x1)),_0x167029&&(_0x84137[_0x2ce1b4('0x18a2')][_0x2ce1b4('0x4af')]+=0x1);}function _0xce0fa5(){const _0x2b5743=_0x38c9cb;_0x84137['inbound'][_0x2b5743('0x1009')]=Math[_0x2b5743('0xe89')]((_0x84137['inbound'][_0x2b5743('0x23e8')]+_0x84137[_0x2b5743('0x18a2')][_0x2b5743('0x1c3a')])/(_0x84137[_0x2b5743('0x18a2')]['total']-_0x84137[_0x2b5743('0x18a2')]['talking']-_0x84137[_0x2b5743('0x18a2')][_0x2b5743('0x1491')])*0x64,-0x2),_0x84137[_0x2b5743('0x18a2')][_0x2b5743('0x178a')]=Math[_0x2b5743('0xe89')](_0x84137[_0x2b5743('0x18a2')]['answered']/(_0x84137[_0x2b5743('0x18a2')][_0x2b5743('0x4af')]-_0x84137['inbound'][_0x2b5743('0x11ed')]-_0x84137[_0x2b5743('0x18a2')][_0x2b5743('0x1491')])*0x64,-0x2),_0x84137['inbound'][_0x2b5743('0x10c3')]=_0x57d4d1()['duration'](Math[_0x2b5743('0xe89')](_0x84137[_0x2b5743('0x18a2')]['sumHoldTime']/_0x84137[_0x2b5743('0x18a2')]['answered']),_0x84137[_0x2b5743('0x53a')][_0x2b5743('0xe79')])[_0x2b5743('0x1826')](_0x84137[_0x2b5743('0x53a')][_0x2b5743('0x1826')],_0x84137[_0x2b5743('0x53a')]),_0x84137[_0x2b5743('0x18a2')][_0x2b5743('0x777')]=_0x57d4d1()[_0x2b5743('0x187f')](Math[_0x2b5743('0xe89')](_0x84137[_0x2b5743('0x18a2')]['sumBillable']/_0x84137[_0x2b5743('0x18a2')][_0x2b5743('0x150f')]),_0x84137[_0x2b5743('0x53a')][_0x2b5743('0xe79')])[_0x2b5743('0x1826')](_0x84137[_0x2b5743('0x53a')][_0x2b5743('0x1826')],_0x84137[_0x2b5743('0x53a')]);}function _0x1a0c15(){const _0x582e47=_0x38c9cb;if(Object[_0x582e47('0xe22')](_0x84137[_0x582e47('0xf1a')])[_0x582e47('0x1e22')]>0x0)for(let _0xb14088=0x0;_0xb14088<_0x302f2c[_0x582e47('0x19b2')][_0x582e47('0x1e22')];_0xb14088+=0x1){if(_0x20a484(_0x302f2c[_0x582e47('0x19b2')][_0xb14088])){const _0x3f50e7=_0x302f2c[_0x582e47('0x19b2')][_0xb14088];_0x802645(_0x3f50e7,!![]),_0xce0fa5();}}}function _0x20a484(_0x5238fc){const _0x550ac1=_0x38c9cb;if(_0x36f548()[_0x550ac1('0x1cb3')](_0x84137[_0x550ac1('0xf1a')],{'id':_0x36f548()[_0x550ac1('0x17c2')](_0x5238fc[_0x550ac1('0x2294')])}))return!![];return![];}function _0x12498b(_0x1ac6df){const _0x1ae5e3=_0x38c9cb,_0x3ed1a1=_0x57d4d1()()[_0x1ae5e3('0x1fb1')](0x0,!![])[_0x1ae5e3('0x2655')](_0x1ae5e3('0x2161')),_0x3f13f6=_0x57d4d1()()[_0x1ae5e3('0x1fb1')](0x0,!![])[_0x1ae5e3('0x2ba')]('day');return _0x57d4d1()(_0x1ac6df)[_0x1ae5e3('0x1fb1')](0x0,!![])['isBetween'](_0x3ed1a1,_0x3f13f6);}function _0x370707(_0xd8217f){const _0x30a157=_0x38c9cb;_0x20a484(_0xd8217f)&&_0x12498b(_0xd8217f[_0x30a157('0x1779')])&&(_0x802645(_0xd8217f,!![]),_0xce0fa5());}function _0x26ec4e(_0x4c0a12){const _0x23a5f4=_0x38c9cb;_0x20a484(_0x4c0a12)&&_0x12498b(_0x4c0a12[_0x23a5f4('0x1779')])&&(_0x802645(_0x4c0a12,![]),_0xce0fa5());}_0x31768f[_0x38c9cb('0x12d8')]('$destroy',function(){const _0x74a88b=_0x38c9cb;_0x196b9c[_0x74a88b('0x1b2e')](_0x74a88b('0xe29')),_0x196b9c[_0x74a88b('0x1b2e')](_0x74a88b('0x1b48'));});}const _0x1a0c42=_0x303e4f;_0x1f65ea[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0x1d56'),_0x21d0f5('0xce1'),'openchannelAccounts'];function _0x1f65ea(_0x22fe3c,_0x3567a7,_0x2a5a24,_0x4dcf9d){const _0x23f6de=_0x21d0f5,_0x2b3210=this,_0x273294=[];_0x2b3210[_0x23f6de('0x53a')]={'format':_0x23f6de('0xb52'),'unit':_0x23f6de('0x278'),'trim':![]},_0x2b3210[_0x23f6de('0x18a2')]={'waiting':0x0,'talking':0x0,'answered':0x0,'abandoned':0x0,'unmanaged':0x0,'sumHoldTime':0x0,'sumBillable':0x0,'total':0x0,'avgHoldTime':_0x23f6de('0xf8d'),'avgTalkTime':'00:00:00','answerRate':0x0,'abandonRate':0x0},_0x2b3210[_0x23f6de('0x1518')]=_0x4dcf9d?_0x36f548()['keyBy'](_0x4dcf9d['rows']?_0x4dcf9d[_0x23f6de('0x19b2')]:[],'id'):{},_0x2b3210[_0x23f6de('0xd44')]=_0x3bc86d,_0x2b3210[_0x23f6de('0xbb5')]=_0x87cd8b,_0x3567a7['on']('openchannelInteraction:save',_0x2b3210[_0x23f6de('0xd44')]),_0x3567a7['on']('openchannelInteraction:update',_0x2b3210[_0x23f6de('0xbb5')]),_0xf2de3f();function _0x2c2ee1(_0xbaf863,_0x2a8eef){const _0x194e18=_0x23f6de;!_0xbaf863[_0x194e18('0x949')]&&!_0xbaf863[_0x194e18('0x2342')]&&_0x2a8eef&&(_0x2b3210[_0x194e18('0x18a2')][_0x194e18('0x1491')]+=0x1),!_0xbaf863['closed']&&_0xbaf863[_0x194e18('0x2342')]&&!_0x36f548()[_0x194e18('0x55a')](_0x273294,_0xbaf863['id'])&&(_0x2b3210[_0x194e18('0x18a2')][_0x194e18('0x11ed')]+=0x1,_0x273294[_0x194e18('0x105d')](_0xbaf863['id']),!_0x2a8eef&&_0x2b3210[_0x194e18('0x18a2')][_0x194e18('0x1491')]&&(_0x2b3210[_0x194e18('0x18a2')][_0x194e18('0x1491')]-=0x1)),_0xbaf863[_0x194e18('0x949')]&&_0xbaf863[_0x194e18('0x2342')]&&(_0x2b3210[_0x194e18('0x18a2')]['sumBillable']+=_0x57d4d1()(_0xbaf863['closedAt'])[_0x194e18('0xe2b')](_0x57d4d1()(_0xbaf863['read1stAt']),_0x2b3210[_0x194e18('0x53a')][_0x194e18('0xe79')]),_0x2b3210[_0x194e18('0x18a2')][_0x194e18('0x71f')]+=_0x57d4d1()(_0xbaf863[_0x194e18('0x20df')])['diff'](_0x57d4d1()(_0xbaf863['createdAt']),_0x2b3210[_0x194e18('0x53a')][_0x194e18('0xe79')]),_0x2b3210['inbound'][_0x194e18('0x150f')]+=0x1,!_0x2a8eef&&_0x2b3210['inbound'][_0x194e18('0x11ed')]&&(_0x2b3210[_0x194e18('0x18a2')]['talking']-=0x1)),_0xbaf863[_0x194e18('0x949')]&&!_0xbaf863['UserId']&&(_0x2b3210[_0x194e18('0x18a2')][_0x194e18('0x1c3a')]+=0x1,!_0x2a8eef&&_0x2b3210[_0x194e18('0x18a2')]['waiting']&&(_0x2b3210[_0x194e18('0x18a2')][_0x194e18('0x1491')]-=0x1)),_0x2a8eef&&(_0x2b3210[_0x194e18('0x18a2')][_0x194e18('0x4af')]+=0x1);}function _0x48a88c(){const _0x10baa0=_0x23f6de;_0x2b3210[_0x10baa0('0x18a2')][_0x10baa0('0x1009')]=Math[_0x10baa0('0xe89')]((_0x2b3210[_0x10baa0('0x18a2')][_0x10baa0('0x23e8')]+_0x2b3210[_0x10baa0('0x18a2')][_0x10baa0('0x1c3a')])/(_0x2b3210[_0x10baa0('0x18a2')][_0x10baa0('0x4af')]-_0x2b3210[_0x10baa0('0x18a2')][_0x10baa0('0x11ed')]-_0x2b3210['inbound'][_0x10baa0('0x1491')])*0x64,-0x2),_0x2b3210[_0x10baa0('0x18a2')][_0x10baa0('0x178a')]=Math[_0x10baa0('0xe89')](_0x2b3210[_0x10baa0('0x18a2')][_0x10baa0('0x150f')]/(_0x2b3210[_0x10baa0('0x18a2')][_0x10baa0('0x4af')]-_0x2b3210[_0x10baa0('0x18a2')][_0x10baa0('0x11ed')]-_0x2b3210['inbound'][_0x10baa0('0x1491')])*0x64,-0x2),_0x2b3210[_0x10baa0('0x18a2')][_0x10baa0('0x10c3')]=_0x57d4d1()['duration'](Math[_0x10baa0('0xe89')](_0x2b3210[_0x10baa0('0x18a2')][_0x10baa0('0x71f')]/_0x2b3210[_0x10baa0('0x18a2')][_0x10baa0('0x150f')]),_0x2b3210[_0x10baa0('0x53a')][_0x10baa0('0xe79')])[_0x10baa0('0x1826')](_0x2b3210[_0x10baa0('0x53a')]['format'],_0x2b3210['config']),_0x2b3210['inbound'][_0x10baa0('0x777')]=_0x57d4d1()[_0x10baa0('0x187f')](Math[_0x10baa0('0xe89')](_0x2b3210['inbound'][_0x10baa0('0x17e1')]/_0x2b3210['inbound']['answered']),_0x2b3210['config'][_0x10baa0('0xe79')])[_0x10baa0('0x1826')](_0x2b3210[_0x10baa0('0x53a')]['format'],_0x2b3210[_0x10baa0('0x53a')]);}function _0xf2de3f(){const _0xf363e7=_0x23f6de;if(Object['keys'](_0x2b3210[_0xf363e7('0x1518')])['length']>0x0)for(let _0x3a3c80=0x0;_0x3a3c80<_0x2a5a24[_0xf363e7('0x19b2')][_0xf363e7('0x1e22')];_0x3a3c80+=0x1){if(_0x521810(_0x2a5a24[_0xf363e7('0x19b2')][_0x3a3c80])){const _0x35e348=_0x2a5a24[_0xf363e7('0x19b2')][_0x3a3c80];_0x2c2ee1(_0x35e348,!![]),_0x48a88c();}}}function _0x521810(_0x339ab8){const _0x44f697=_0x23f6de;if(_0x36f548()['some'](_0x2b3210[_0x44f697('0x1518')],{'id':_0x36f548()[_0x44f697('0x17c2')](_0x339ab8['OpenchannelAccountId'])}))return!![];return![];}function _0x443831(_0x294128){const _0x2a9b23=_0x23f6de,_0x4590f0=_0x57d4d1()()[_0x2a9b23('0x1fb1')](0x0,!![])[_0x2a9b23('0x2655')](_0x2a9b23('0x2161')),_0xd5155b=_0x57d4d1()()[_0x2a9b23('0x1fb1')](0x0,!![])[_0x2a9b23('0x2ba')](_0x2a9b23('0x2161'));return _0x57d4d1()(_0x294128)[_0x2a9b23('0x1fb1')](0x0,!![])[_0x2a9b23('0x2025')](_0x4590f0,_0xd5155b);}function _0x3bc86d(_0x4ca516){const _0x5552da=_0x23f6de;_0x521810(_0x4ca516)&&_0x443831(_0x4ca516[_0x5552da('0x1779')])&&(_0x2c2ee1(_0x4ca516,!![]),_0x48a88c());}function _0x87cd8b(_0x2ef5de){_0x521810(_0x2ef5de)&&_0x443831(_0x2ef5de['createdAt'])&&(_0x2c2ee1(_0x2ef5de,![]),_0x48a88c());}_0x22fe3c[_0x23f6de('0x12d8')](_0x23f6de('0x4f7'),function(){const _0x3186db=_0x23f6de;_0x3567a7[_0x3186db('0x1b2e')](_0x3186db('0x1f43')),_0x3567a7[_0x3186db('0x1b2e')](_0x3186db('0xb04'));});}const _0x56f9dc=_0x1f65ea;_0x2d0eee[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),'socket','smsInteractions',_0x21d0f5('0x27d9')];function _0x2d0eee(_0x4fefe5,_0x21f3cc,_0x13c126,_0x2d53a5){const _0x26c9c5=_0x21d0f5,_0x3706aa=this,_0x14ef82=[];_0x3706aa[_0x26c9c5('0x53a')]={'format':_0x26c9c5('0xb52'),'unit':_0x26c9c5('0x278'),'trim':![]},_0x3706aa['inbound']={'waiting':0x0,'talking':0x0,'answered':0x0,'abandoned':0x0,'unmanaged':0x0,'sumHoldTime':0x0,'sumBillable':0x0,'total':0x0,'avgHoldTime':_0x26c9c5('0xf8d'),'avgTalkTime':'00:00:00','answerRate':0x0,'abandonRate':0x0},_0x3706aa[_0x26c9c5('0x27d9')]=_0x2d53a5?_0x36f548()[_0x26c9c5('0x2130')](_0x2d53a5['rows']?_0x2d53a5[_0x26c9c5('0x19b2')]:[],'id'):{},_0x3706aa[_0x26c9c5('0x23a4')]=_0x4028a4,_0x3706aa['onUpdateSmsInteraction']=_0x42d568,_0x21f3cc['on'](_0x26c9c5('0x1986'),_0x3706aa[_0x26c9c5('0x23a4')]),_0x21f3cc['on'](_0x26c9c5('0x25d6'),_0x3706aa[_0x26c9c5('0x103c')]),_0xd93aad();function _0x54537f(_0x584544,_0x5e7124){const _0x142fa4=_0x26c9c5;!_0x584544[_0x142fa4('0x949')]&&!_0x584544[_0x142fa4('0x2342')]&&_0x5e7124&&(_0x3706aa['inbound']['waiting']+=0x1),!_0x584544[_0x142fa4('0x949')]&&_0x584544[_0x142fa4('0x2342')]&&!_0x36f548()[_0x142fa4('0x55a')](_0x14ef82,_0x584544['id'])&&(_0x3706aa[_0x142fa4('0x18a2')][_0x142fa4('0x11ed')]+=0x1,_0x14ef82[_0x142fa4('0x105d')](_0x584544['id']),!_0x5e7124&&_0x3706aa[_0x142fa4('0x18a2')][_0x142fa4('0x1491')]&&(_0x3706aa[_0x142fa4('0x18a2')][_0x142fa4('0x1491')]-=0x1)),_0x584544['closed']&&_0x584544[_0x142fa4('0x2342')]&&(_0x3706aa['inbound'][_0x142fa4('0x17e1')]+=_0x57d4d1()(_0x584544[_0x142fa4('0x1daa')])['diff'](_0x57d4d1()(_0x584544[_0x142fa4('0x20df')]),_0x3706aa[_0x142fa4('0x53a')][_0x142fa4('0xe79')]),_0x3706aa[_0x142fa4('0x18a2')][_0x142fa4('0x71f')]+=_0x57d4d1()(_0x584544[_0x142fa4('0x20df')])[_0x142fa4('0xe2b')](_0x57d4d1()(_0x584544[_0x142fa4('0x1779')]),_0x3706aa[_0x142fa4('0x53a')][_0x142fa4('0xe79')]),_0x3706aa[_0x142fa4('0x18a2')][_0x142fa4('0x150f')]+=0x1,!_0x5e7124&&_0x3706aa['inbound'][_0x142fa4('0x11ed')]&&(_0x3706aa['inbound'][_0x142fa4('0x11ed')]-=0x1)),_0x584544[_0x142fa4('0x949')]&&!_0x584544[_0x142fa4('0x2342')]&&(_0x3706aa[_0x142fa4('0x18a2')][_0x142fa4('0x1c3a')]+=0x1,!_0x5e7124&&_0x3706aa['inbound'][_0x142fa4('0x1491')]&&(_0x3706aa[_0x142fa4('0x18a2')][_0x142fa4('0x1491')]-=0x1)),_0x5e7124&&(_0x3706aa['inbound'][_0x142fa4('0x4af')]+=0x1);}function _0x8e76bb(){const _0x239d64=_0x26c9c5;_0x3706aa['inbound'][_0x239d64('0x1009')]=Math['round']((_0x3706aa[_0x239d64('0x18a2')][_0x239d64('0x23e8')]+_0x3706aa['inbound'][_0x239d64('0x1c3a')])/(_0x3706aa[_0x239d64('0x18a2')][_0x239d64('0x4af')]-_0x3706aa[_0x239d64('0x18a2')][_0x239d64('0x11ed')]-_0x3706aa[_0x239d64('0x18a2')]['waiting'])*0x64,-0x2),_0x3706aa[_0x239d64('0x18a2')][_0x239d64('0x178a')]=Math['round'](_0x3706aa[_0x239d64('0x18a2')][_0x239d64('0x150f')]/(_0x3706aa['inbound']['total']-_0x3706aa[_0x239d64('0x18a2')][_0x239d64('0x11ed')]-_0x3706aa[_0x239d64('0x18a2')][_0x239d64('0x1491')])*0x64,-0x2),_0x3706aa[_0x239d64('0x18a2')][_0x239d64('0x10c3')]=_0x57d4d1()['duration'](Math[_0x239d64('0xe89')](_0x3706aa[_0x239d64('0x18a2')]['sumHoldTime']/_0x3706aa['inbound'][_0x239d64('0x150f')]),_0x3706aa[_0x239d64('0x53a')]['unit'])['format'](_0x3706aa[_0x239d64('0x53a')][_0x239d64('0x1826')],_0x3706aa[_0x239d64('0x53a')]),_0x3706aa[_0x239d64('0x18a2')][_0x239d64('0x777')]=_0x57d4d1()[_0x239d64('0x187f')](Math[_0x239d64('0xe89')](_0x3706aa[_0x239d64('0x18a2')][_0x239d64('0x17e1')]/_0x3706aa['inbound'][_0x239d64('0x150f')]),_0x3706aa[_0x239d64('0x53a')][_0x239d64('0xe79')])[_0x239d64('0x1826')](_0x3706aa['config'][_0x239d64('0x1826')],_0x3706aa['config']);}function _0xd93aad(){const _0x3e804d=_0x26c9c5;if(Object[_0x3e804d('0xe22')](_0x3706aa[_0x3e804d('0x27d9')])[_0x3e804d('0x1e22')]>0x0)for(let _0x137349=0x0;_0x137349<_0x13c126[_0x3e804d('0x19b2')]['length'];_0x137349+=0x1){if(_0x9df0dc(_0x13c126['rows'][_0x137349])){const _0x513f74=_0x13c126[_0x3e804d('0x19b2')][_0x137349];_0x54537f(_0x513f74,!![]),_0x8e76bb();}}}function _0x9df0dc(_0x57f875){const _0x5e9e16=_0x26c9c5;if(_0x36f548()[_0x5e9e16('0x1cb3')](_0x3706aa['smsAccounts'],{'id':_0x36f548()[_0x5e9e16('0x17c2')](_0x57f875[_0x5e9e16('0x80b')])}))return!![];return![];}function _0x180511(_0x1570ab){const _0x35c8e1=_0x26c9c5,_0x4afc9b=_0x57d4d1()()[_0x35c8e1('0x1fb1')](0x0,!![])['startOf'](_0x35c8e1('0x2161')),_0x3a83bc=_0x57d4d1()()[_0x35c8e1('0x1fb1')](0x0,!![])[_0x35c8e1('0x2ba')](_0x35c8e1('0x2161'));return _0x57d4d1()(_0x1570ab)[_0x35c8e1('0x1fb1')](0x0,!![])[_0x35c8e1('0x2025')](_0x4afc9b,_0x3a83bc);}function _0x4028a4(_0x62779b){const _0x4d2e39=_0x26c9c5;_0x9df0dc(_0x62779b)&&_0x180511(_0x62779b[_0x4d2e39('0x1779')])&&(_0x54537f(_0x62779b,!![]),_0x8e76bb());}function _0x42d568(_0x23de30){const _0x37d052=_0x26c9c5;_0x9df0dc(_0x23de30)&&_0x180511(_0x23de30[_0x37d052('0x1779')])&&(_0x54537f(_0x23de30,![]),_0x8e76bb());}_0x4fefe5[_0x26c9c5('0x12d8')]('$destroy',function(){const _0x4c2ed9=_0x26c9c5;_0x21f3cc[_0x4c2ed9('0x1b2e')](_0x4c2ed9('0x1986')),_0x21f3cc[_0x4c2ed9('0x1b2e')]('smsInteraction:update');});}const _0x36dc1e=_0x2d0eee;_0x3ad69e[_0x21d0f5('0x1e9a')]=['$state',_0x21d0f5('0x1150'),'license'],_0x561520['$inject']=['$q'],_0x15edc4[_0x21d0f5('0x1e9a')]=['$q'];function _0x15edc4(_0x12c3f2){const _0x1eb6fe=[],_0x5598eb=function(){const _0x45c915=a0_0xaf0c,_0xd24ab1=_0x1eb6fe[0x0],_0x3f77f8={'waiting':0x0,'talking':0x0,'pTalking':0x0,'answered':0x0,'abandoned':0x0,'unmanaged':0x0,'sumHoldTime':0x0,'sumBillable':0x0,'total':0x0,'avgHoldTime':_0x45c915('0xf8d'),'avgTalkTime':'00:00:00','answerRate':0x0,'abandonRate':0x0,'originated':0x0,'outboundDropCallsDayCallersExit':0x0,'outboundDropCallsDayTimeout':0x0};_0x36f548()['forIn'](_0xd24ab1[_0x45c915('0x1de3')],function(_0x30bab4,_0x3e3dfe){const _0x296dec=_0x45c915;_0xd24ab1[_0x296dec('0x1223')][_0x3e3dfe]&&(_0x3f77f8[_0x296dec('0x1491')]+=_0xd24ab1['rpcQueues'][_0x3e3dfe][_0x296dec('0x1491')]||0x0,_0x3f77f8[_0x296dec('0x11ed')]+=(_0xd24ab1[_0x296dec('0x1223')][_0x3e3dfe][_0x296dec('0x11ed')]||0x0)+(_0xd24ab1[_0x296dec('0x1223')][_0x3e3dfe][_0x296dec('0x17ba')]||0x0),_0x3f77f8['answered']+=_0xd24ab1[_0x296dec('0x1223')][_0x3e3dfe][_0x296dec('0x150f')]||0x0,_0x3f77f8[_0x296dec('0x23e8')]+=_0xd24ab1[_0x296dec('0x1223')][_0x3e3dfe][_0x296dec('0x23e8')]||0x0,_0x3f77f8['sumHoldTime']+=_0xd24ab1[_0x296dec('0x1223')][_0x3e3dfe][_0x296dec('0x71f')]||0x0,_0x3f77f8['sumBillable']+=_0xd24ab1[_0x296dec('0x1223')][_0x3e3dfe][_0x296dec('0x17e1')]||0x0,_0x3f77f8['total']+=_0xd24ab1[_0x296dec('0x1223')][_0x3e3dfe]['total']||0x0,_0x3f77f8[_0x296dec('0x1fab')]+=_0xd24ab1[_0x296dec('0x1223')][_0x3e3dfe][_0x296dec('0x1fab')]||0x0,_0x3f77f8[_0x296dec('0x62d')]+=_0xd24ab1['rpcQueues'][_0x3e3dfe][_0x296dec('0x62d')]||0x0,_0x3f77f8[_0x296dec('0x87a')]+=_0xd24ab1['rpcQueues'][_0x3e3dfe]['outboundDropCallsDayTimeout']||0x0);});const _0x2d480b=_0x3f77f8[_0x45c915('0x4af')]-_0x3f77f8['answered']-_0x3f77f8[_0x45c915('0x23e8')];_0x3f77f8[_0x45c915('0x1c3a')]=_0x2d480b>0x0?_0x2d480b:0x0,_0x3f77f8[_0x45c915('0x10c3')]=Math[_0x45c915('0xe89')](_0x3f77f8['total']>0x0?_0x3f77f8['sumHoldTime']/_0x3f77f8[_0x45c915('0x4af')]:0x0),_0x3f77f8[_0x45c915('0x10c3')]=new Date(_0x3f77f8[_0x45c915('0x10c3')]*0x3e8)[_0x45c915('0x1b7')]()[_0x45c915('0x26cd')](0xb,0x8),_0x3f77f8[_0x45c915('0x777')]=Math[_0x45c915('0xe89')](_0x3f77f8[_0x45c915('0x150f')]>0x0?_0x3f77f8[_0x45c915('0x17e1')]/_0x3f77f8['answered']:0x0),_0x3f77f8[_0x45c915('0x777')]=new Date(_0x3f77f8['avgTalkTime']*0x3e8)[_0x45c915('0x1b7')]()['substr'](0xb,0x8),_0x3f77f8[_0x45c915('0x178a')]=Math[_0x45c915('0xe89')]((_0x3f77f8[_0x45c915('0x4af')]>0x0?_0x3f77f8['answered']/_0x3f77f8[_0x45c915('0x4af')]*0x64:0x0)*Math[_0x45c915('0x28e')](0xa,0x1))/Math[_0x45c915('0x28e')](0xa,0x1),_0x3f77f8[_0x45c915('0x1009')]=Math['round']((_0x3f77f8[_0x45c915('0x4af')]>0x0?_0x3f77f8['abandoned']/_0x3f77f8['total']*0x64:0x0)*Math['pow'](0xa,0x1))/Math['pow'](0xa,0x1),_0x3f77f8['outboundDropRate']=Math['round']((_0x3f77f8[_0x45c915('0x4af')]>0x0?_0x3f77f8[_0x45c915('0x87a')]/_0x3f77f8[_0x45c915('0x4af')]*0x64:0x0)*Math[_0x45c915('0x28e')](0xa,0x1))/Math[_0x45c915('0x28e')](0xa,0x1),_0x3f77f8[_0x45c915('0x2621')]=Math['round']((_0x3f77f8['total']>0x0?_0x3f77f8[_0x45c915('0x62d')]/_0x3f77f8[_0x45c915('0x4af')]*0x64:0x0)*Math['pow'](0xa,0x1))/Math[_0x45c915('0x28e')](0xa,0x1),_0x3f77f8[_0x45c915('0x936')]=0x64-_0x3f77f8[_0x45c915('0x12c7')]-_0x3f77f8[_0x45c915('0x2621')]>0x0&&(_0x3f77f8[_0x45c915('0x4af')]||0x0>0x0)?0x64-_0x3f77f8[_0x45c915('0x12c7')]-_0x3f77f8[_0x45c915('0x2621')]:0x0,_0x1eb6fe[_0x45c915('0x113a')](),_0xd24ab1[_0x45c915('0xa93')][_0x45c915('0xa28')](_0x3f77f8),_0x1eb6fe[_0x45c915('0x1e22')]>0x0&&_0x5598eb();};return function(_0x41d536){const _0x59d9ee=a0_0xaf0c,_0x1808bd=_0x12c3f2[_0x59d9ee('0xa93')]();return _0x1eb6fe[_0x59d9ee('0x105d')]({'queues':_0x41d536[_0x59d9ee('0x1de3')],'rpcQueues':_0x41d536['rpcQueues'],'defer':_0x1808bd}),_0x1eb6fe[_0x59d9ee('0x1e22')]===0x1&&_0x5598eb(),_0x1808bd['promise'];};}function _0x561520(_0x84675a){const _0x124bf5=[],_0x564975=function(){const _0x4b269e=a0_0xaf0c,_0x50500b=_0x124bf5[0x0],_0x482e7d={'originated':0x0,'limitCalls':0x0};_0x36f548()[_0x4b269e('0x41e')](_0x50500b[_0x4b269e('0x1555')],function(_0x397653,_0x863066){const _0x22c8ed=_0x4b269e;_0x50500b[_0x22c8ed('0x1555')][_0x863066]&&(_0x482e7d[_0x22c8ed('0x1fab')]+=_0x50500b[_0x22c8ed('0x1555')][_0x863066][_0x22c8ed('0x1fab')]||0x0,_0x482e7d[_0x22c8ed('0x284')]+=_0x50500b[_0x22c8ed('0x1555')][_0x863066][_0x22c8ed('0x284')]||0x0);}),_0x124bf5[_0x4b269e('0x113a')](),_0x50500b[_0x4b269e('0xa93')][_0x4b269e('0xa28')](_0x482e7d),_0x124bf5[_0x4b269e('0x1e22')]>0x0&&_0x564975();};return function(_0x58686c){const _0x913b0a=a0_0xaf0c,_0xb4a9ae=_0x84675a['defer']();return _0x124bf5['push']({'rpcCampaigns':_0x58686c[_0x913b0a('0x1555')],'defer':_0xb4a9ae}),_0x124bf5[_0x913b0a('0x1e22')]===0x1&&_0x564975(),_0xb4a9ae[_0x913b0a('0x13f')];};}function _0xa45588(){return function(_0x3a91ca){const _0x1ed204=a0_0xaf0c;return new Date(_0x3a91ca*0x3e8)[_0x1ed204('0x1b7')]()['substr'](0xb,0x8);};}function _0x3ad69e(_0x48f41c,_0x5a808b,_0x2906fb){const _0x350f66=_0x21d0f5,_0x59d1bd=this;_0x59d1bd[_0x350f66('0x17ff')]=_0x2906fb,_0x59d1bd[_0x350f66('0x277c')]=_0x971849;function _0x971849(){const _0x1c8df6=_0x350f66;_0x59d1bd[_0x1c8df6('0x1b62')]=_0x5a808b[_0x1c8df6('0x4ee')](_0x1c8df6('0x21d9'))?_0x5a808b[_0x1c8df6('0x1709')](0x65):!![];if(_0x59d1bd[_0x1c8df6('0x1b62')]){const _0x120766=_0x48f41c[_0x1c8df6('0x191')][_0x1c8df6('0x1909')];switch(_0x120766){case _0x1c8df6('0xe28'):_0x5e706c();break;case _0x1c8df6('0xb48'):_0x59d1bd[_0x1c8df6('0x1179')]=0x0;break;case _0x1c8df6('0x9e9'):_0x59d1bd[_0x1c8df6('0x1179')]=0x1;break;case _0x1c8df6('0x1606'):_0x59d1bd[_0x1c8df6('0x1179')]=0x2;break;case _0x1c8df6('0x1822'):_0x59d1bd[_0x1c8df6('0x1179')]=0x3;break;case _0x1c8df6('0x201e'):_0x59d1bd[_0x1c8df6('0x1179')]=0x4;break;case'app.dashboards.general.openchannel':_0x59d1bd[_0x1c8df6('0x1179')]=0x5;break;case _0x1c8df6('0x2064'):_0x59d1bd[_0x1c8df6('0x1179')]=0x6;break;case _0x1c8df6('0x1564'):_0x59d1bd[_0x1c8df6('0x1179')]=0x7;break;}}}function _0x5e706c(){const _0x2f265b=_0x350f66,_0x4d14a7=[];_0x59d1bd[_0x2f265b('0x17ff')][_0x2f265b('0x1bc3')]&&_0x4d14a7[_0x2f265b('0x105d')]('app.dashboards.general.voice'),_0x59d1bd[_0x2f265b('0x17ff')]['dialer']&&_0x4d14a7[_0x2f265b('0x105d')](_0x2f265b('0x9e9')),_0x59d1bd[_0x2f265b('0x17ff')][_0x2f265b('0x1800')]&&_0x4d14a7[_0x2f265b('0x105d')]('app.dashboards.general.chat'),_0x59d1bd[_0x2f265b('0x17ff')][_0x2f265b('0x2030')]&&_0x4d14a7[_0x2f265b('0x105d')](_0x2f265b('0x1822')),_0x59d1bd['license']['messaging']&&_0x4d14a7[_0x2f265b('0x105d')](_0x2f265b('0x201e')),_0x59d1bd[_0x2f265b('0x17ff')][_0x2f265b('0xb18')]&&_0x4d14a7[_0x2f265b('0x105d')](_0x2f265b('0x2216')),_0x59d1bd[_0x2f265b('0x17ff')][_0x2f265b('0x2104')]&&_0x4d14a7[_0x2f265b('0x105d')](_0x2f265b('0x2064')),_0x59d1bd[_0x2f265b('0x17ff')][_0x2f265b('0xe7c')]&&_0x4d14a7[_0x2f265b('0x105d')](_0x2f265b('0x1564'));if(_0x4d14a7[_0x2f265b('0x1e22')]>0x0)_0x48f41c['go'](_0x36f548()[_0x2f265b('0x848')](_0x4d14a7));}}_0x2fa86e[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0x1d56'),_0x21d0f5('0x1f6d'),_0x21d0f5('0x1223'),_0x21d0f5('0x25b6'),'initializeRealtimeQueue'];function _0x2fa86e(_0xc8bc99,_0x272c8e,_0x20488a,_0x29c63a,_0x8d075a,_0x5219b1){const _0x50d23a=_0x21d0f5,_0x277eba=this;_0x277eba[_0x50d23a('0x1f6d')]=_0x20488a?_0x36f548()[_0x50d23a('0x2130')](_0x20488a[_0x50d23a('0x19b2')]?_0x20488a[_0x50d23a('0x19b2')]:[],'id'):{},_0x277eba['rpcQueues']=_0x29c63a?_0x36f548()[_0x50d23a('0x2130')](_0x29c63a['rows']?_0x29c63a[_0x50d23a('0x19b2')]:[],'id'):{},_0x277eba['inbound']={'waiting':0x0,'talking':0x0,'answered':0x0,'abandoned':0x0,'unmanaged':0x0,'sumHoldTime':0x0,'sumBillable':0x0,'total':0x0,'avgHoldTime':_0x50d23a('0xf8d'),'avgTalkTime':'00:00:00','answerRate':0x0,'abandonRate':0x0},_0x277eba[_0x50d23a('0x25b6')]=_0x8d075a||{'answered':0x0,'sumBillable':0x0,'sumDuration':0x0,'sumHoldTime':0x0,'total':0x0},_0x277eba[_0x50d23a('0x26ef')]=_0x22ca05,_0x277eba[_0x50d23a('0x2c')]=_0x5cd606,_0x272c8e['on']('voice_queue:save',_0x277eba[_0x50d23a('0x26ef')]),_0x272c8e['on'](_0x50d23a('0x86d'),_0x277eba[_0x50d23a('0x2c')]),_0x1a6009();function _0x1a6009(){const _0x11bcfc=_0x50d23a;_0x5219b1({'queues':_0x277eba[_0x11bcfc('0x1f6d')],'rpcQueues':_0x277eba['rpcQueues']})[_0x11bcfc('0x11bf')](function(_0x1948e9){const _0x5c6867=_0x11bcfc;_0x277eba[_0x5c6867('0x18a2')]=_0x1948e9;});}function _0x22ca05(_0x1d08c6){const _0x5803b5=_0x50d23a;_0x277eba['inboundQueues'][_0x1d08c6['id']]&&(_0x277eba[_0x5803b5('0x1223')][_0x1d08c6['id']]&&(_0x277eba[_0x5803b5('0x1223')][_0x1d08c6['id']]=_0x1d08c6,_0x1a6009()));}function _0x5cd606(_0x388823){const _0x15a337=_0x50d23a;_0x277eba[_0x15a337('0x25b6')]=_0x388823;}_0xc8bc99[_0x50d23a('0x12d8')](_0x50d23a('0x4f7'),function(){const _0x415c1c=_0x50d23a;_0x272c8e[_0x415c1c('0x1b2e')](_0x415c1c('0x259b')),_0x272c8e[_0x415c1c('0x1b2e')](_0x415c1c('0x86d'));});}const _0x23085c=_0x2fa86e;_0x114f5b[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),'socket','whatsappInteractions','whatsappAccounts'];function _0x114f5b(_0x2e73cf,_0x150d59,_0x1f988d,_0x413836){const _0x16ad25=_0x21d0f5,_0x2aa911=this,_0x506aad=[];_0x2aa911[_0x16ad25('0x53a')]={'format':_0x16ad25('0xb52'),'unit':_0x16ad25('0x278'),'trim':![]},_0x2aa911[_0x16ad25('0x18a2')]={'waiting':0x0,'talking':0x0,'answered':0x0,'abandoned':0x0,'unmanaged':0x0,'sumHoldTime':0x0,'sumBillable':0x0,'total':0x0,'avgHoldTime':'00:00:00','avgTalkTime':_0x16ad25('0xf8d'),'answerRate':0x0,'abandonRate':0x0},_0x2aa911[_0x16ad25('0xeaa')]=_0x413836?_0x36f548()[_0x16ad25('0x2130')](_0x413836[_0x16ad25('0x19b2')]?_0x413836[_0x16ad25('0x19b2')]:[],'id'):{},_0x2aa911[_0x16ad25('0x11cc')]=_0x274d56,_0x2aa911[_0x16ad25('0x226')]=_0x132433,_0x150d59['on'](_0x16ad25('0x30b'),_0x2aa911[_0x16ad25('0x11cc')]),_0x150d59['on'](_0x16ad25('0x2601'),_0x2aa911[_0x16ad25('0x226')]),_0x4acf82();function _0x1e7ef4(_0x4ac673,_0x1855e5){const _0x3f360e=_0x16ad25;!_0x4ac673['closed']&&!_0x4ac673[_0x3f360e('0x2342')]&&_0x1855e5&&(_0x2aa911[_0x3f360e('0x18a2')][_0x3f360e('0x1491')]+=0x1),!_0x4ac673[_0x3f360e('0x949')]&&_0x4ac673['UserId']&&!_0x36f548()[_0x3f360e('0x55a')](_0x506aad,_0x4ac673['id'])&&(_0x2aa911[_0x3f360e('0x18a2')][_0x3f360e('0x11ed')]+=0x1,_0x506aad['push'](_0x4ac673['id']),!_0x1855e5&&_0x2aa911[_0x3f360e('0x18a2')][_0x3f360e('0x1491')]&&(_0x2aa911[_0x3f360e('0x18a2')][_0x3f360e('0x1491')]-=0x1)),_0x4ac673['closed']&&_0x4ac673[_0x3f360e('0x2342')]&&(_0x2aa911[_0x3f360e('0x18a2')][_0x3f360e('0x17e1')]+=_0x57d4d1()(_0x4ac673[_0x3f360e('0x1daa')])[_0x3f360e('0xe2b')](_0x57d4d1()(_0x4ac673[_0x3f360e('0x20df')]),_0x2aa911[_0x3f360e('0x53a')][_0x3f360e('0xe79')]),_0x2aa911['inbound'][_0x3f360e('0x71f')]+=_0x57d4d1()(_0x4ac673[_0x3f360e('0x20df')])['diff'](_0x57d4d1()(_0x4ac673[_0x3f360e('0x1779')]),_0x2aa911[_0x3f360e('0x53a')][_0x3f360e('0xe79')]),_0x2aa911[_0x3f360e('0x18a2')][_0x3f360e('0x150f')]+=0x1,!_0x1855e5&&_0x2aa911[_0x3f360e('0x18a2')]['talking']&&(_0x2aa911[_0x3f360e('0x18a2')]['talking']-=0x1)),_0x4ac673[_0x3f360e('0x949')]&&!_0x4ac673[_0x3f360e('0x2342')]&&(_0x2aa911[_0x3f360e('0x18a2')][_0x3f360e('0x1c3a')]+=0x1,!_0x1855e5&&_0x2aa911[_0x3f360e('0x18a2')][_0x3f360e('0x1491')]&&(_0x2aa911[_0x3f360e('0x18a2')][_0x3f360e('0x1491')]-=0x1)),_0x1855e5&&(_0x2aa911[_0x3f360e('0x18a2')][_0x3f360e('0x4af')]+=0x1);}function _0x35be24(){const _0x556173=_0x16ad25;_0x2aa911[_0x556173('0x18a2')][_0x556173('0x1009')]=Math['round']((_0x2aa911['inbound'][_0x556173('0x23e8')]+_0x2aa911[_0x556173('0x18a2')][_0x556173('0x1c3a')])/(_0x2aa911[_0x556173('0x18a2')][_0x556173('0x4af')]-_0x2aa911[_0x556173('0x18a2')][_0x556173('0x11ed')]-_0x2aa911[_0x556173('0x18a2')]['waiting'])*0x64,-0x2),_0x2aa911[_0x556173('0x18a2')]['answerRate']=Math[_0x556173('0xe89')](_0x2aa911[_0x556173('0x18a2')]['answered']/(_0x2aa911[_0x556173('0x18a2')][_0x556173('0x4af')]-_0x2aa911['inbound'][_0x556173('0x11ed')]-_0x2aa911[_0x556173('0x18a2')][_0x556173('0x1491')])*0x64,-0x2),_0x2aa911[_0x556173('0x18a2')]['avgHoldTime']=_0x57d4d1()[_0x556173('0x187f')](Math[_0x556173('0xe89')](_0x2aa911[_0x556173('0x18a2')][_0x556173('0x71f')]/_0x2aa911[_0x556173('0x18a2')][_0x556173('0x150f')]),_0x2aa911[_0x556173('0x53a')][_0x556173('0xe79')])[_0x556173('0x1826')](_0x2aa911[_0x556173('0x53a')]['format'],_0x2aa911[_0x556173('0x53a')]),_0x2aa911[_0x556173('0x18a2')][_0x556173('0x777')]=_0x57d4d1()['duration'](Math[_0x556173('0xe89')](_0x2aa911[_0x556173('0x18a2')][_0x556173('0x17e1')]/_0x2aa911['inbound'][_0x556173('0x150f')]),_0x2aa911[_0x556173('0x53a')][_0x556173('0xe79')])[_0x556173('0x1826')](_0x2aa911[_0x556173('0x53a')][_0x556173('0x1826')],_0x2aa911['config']);}function _0x4acf82(){const _0x3e1a89=_0x16ad25;if(Object[_0x3e1a89('0xe22')](_0x2aa911[_0x3e1a89('0xeaa')])['length']>0x0)for(let _0x1d158f=0x0;_0x1d158f<_0x1f988d[_0x3e1a89('0x19b2')][_0x3e1a89('0x1e22')];_0x1d158f+=0x1){if(_0x4c7621(_0x1f988d['rows'][_0x1d158f])){const _0x1b5af9=_0x1f988d[_0x3e1a89('0x19b2')][_0x1d158f];_0x1e7ef4(_0x1b5af9,!![]),_0x35be24();}}}function _0x4c7621(_0x3382bb){const _0x2d9827=_0x16ad25;if(_0x36f548()[_0x2d9827('0x1cb3')](_0x2aa911[_0x2d9827('0xeaa')],{'id':_0x36f548()[_0x2d9827('0x17c2')](_0x3382bb[_0x2d9827('0x146a')])}))return!![];return![];}function _0x14a592(_0x19c375){const _0x51ed4b=_0x16ad25,_0x1f106a=_0x57d4d1()()['utcOffset'](0x0,!![])[_0x51ed4b('0x2655')](_0x51ed4b('0x2161')),_0x7efc7=_0x57d4d1()()[_0x51ed4b('0x1fb1')](0x0,!![])[_0x51ed4b('0x2ba')]('day');return _0x57d4d1()(_0x19c375)['utcOffset'](0x0,!![])[_0x51ed4b('0x2025')](_0x1f106a,_0x7efc7);}function _0x274d56(_0x8043eb){const _0x80fecd=_0x16ad25;_0x4c7621(_0x8043eb)&&_0x14a592(_0x8043eb[_0x80fecd('0x1779')])&&(_0x1e7ef4(_0x8043eb,!![]),_0x35be24());}function _0x132433(_0x24c9cb){const _0x1f2ec0=_0x16ad25;_0x4c7621(_0x24c9cb)&&_0x14a592(_0x24c9cb[_0x1f2ec0('0x1779')])&&(_0x1e7ef4(_0x24c9cb,![]),_0x35be24());}_0x2e73cf[_0x16ad25('0x12d8')]('$destroy',function(){const _0x30e095=_0x16ad25;_0x150d59['removeAllListeners'](_0x30e095('0x30b')),_0x150d59[_0x30e095('0x1b2e')](_0x30e095('0x2601'));});}const _0x59e8e1=_0x114f5b;_0x73b7c8[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x13d6')];function _0x73b7c8(_0x547996){const _0x3140c6=_0x21d0f5;_0x547996[_0x3140c6('0x2124')]('app.dashboards.general.voice',{'url':'/voice','data':{'selectedTab':0x0},'views':{'voice':{'templateUrl':_0x4075bb,'controller':_0x3140c6('0x1fc7')}},'resolve':{'rpcQueues':[_0x3140c6('0x218e'),function(_0xd90457){const _0x1b80d4=_0x3140c6;return _0xd90457['resolve'](_0x1b80d4('0x7f2'));}],'inboundQueues':['apiResolver',_0x3140c6('0x1150'),function(_0x17f782,_0x48d206){const _0xa82795=_0x3140c6;return _0x48d206[_0xa82795('0x4ee')](_0xa82795('0xf45'))?_0x17f782[_0xa82795('0xa28')](_0xa82795('0x987'),{'fields':_0xa82795('0x721'),'type':'inbound','nolimit':!![]}):_0x17f782[_0xa82795('0xa28')](_0xa82795('0xb0d'),{'id':_0x48d206[_0xa82795('0x2428')]()[_0xa82795('0x781')],'section':_0xa82795('0xc85'),'fields':_0xa82795('0x721'),'type':_0xa82795('0x18a2'),'channel':_0xa82795('0x1bc3'),'nolimit':!![]});}],'outbound':['apiResolver',function(_0x4a8cd2){const _0x358fb2=_0x3140c6;return _0x4a8cd2[_0x358fb2('0xa28')]('rpc@getOutbound');}]},'authenticate':!![],'bodyClass':'dashboards'})[_0x3140c6('0x2124')]('app.dashboards.general.dialer',{'url':_0x3140c6('0x1ce1'),'data':{'selectedTab':0x1},'views':{'dialer':{'templateUrl':_0x4f483f,'controller':_0x3140c6('0x1f78')}},'resolve':{'rpcQueues':['apiResolver',function(_0x4a7ce2){const _0x196a2a=_0x3140c6;return _0x4a7ce2['resolve'](_0x196a2a('0x7f2'));}],'outboundQueues':['apiResolver',_0x3140c6('0x1150'),function(_0x405992,_0xf05cfc){const _0x5ea046=_0x3140c6;return _0xf05cfc[_0x5ea046('0x4ee')](_0x5ea046('0xf45'))?_0x405992['resolve'](_0x5ea046('0x987'),{'fields':_0x5ea046('0x721'),'type':_0x5ea046('0x25b6'),'nolimit':!![]}):_0x405992[_0x5ea046('0xa28')]('userProfile@getResources',{'id':_0xf05cfc['getCurrentUser']()[_0x5ea046('0x781')],'section':'QueueCampaigns','fields':_0x5ea046('0x721'),'type':_0x5ea046('0x25b6'),'channel':_0x5ea046('0x1bc3'),'nolimit':!![]});}],'rpcCampaigns':[_0x3140c6('0x218e'),function(_0xda858c){const _0x642b7a=_0x3140c6;return _0xda858c[_0x642b7a('0xa28')](_0x642b7a('0x1c59'));}]},'authenticate':!![],'bodyClass':'dashboards'})[_0x3140c6('0x2124')](_0x3140c6('0x1606'),{'url':_0x3140c6('0x21ad'),'data':{'selectedTab':0x2},'views':{'chat':{'templateUrl':_0x2f290f,'controller':_0x3140c6('0x2429')}},'resolve':{'chatInteractions':[_0x3140c6('0x218e'),function(_0x12a0be){const _0x6f2bfb=_0x3140c6;return _0x12a0be['resolve'](_0x6f2bfb('0xd2a'),{'createdAt':{'$gte':_0x57d4d1()()[_0x6f2bfb('0x2655')](_0x6f2bfb('0x2161'))['utcOffset'](0x0,!![])[_0x6f2bfb('0x1826')](),'$lte':_0x57d4d1()()[_0x6f2bfb('0x2ba')]('day')[_0x6f2bfb('0x1fb1')](0x0,!![])[_0x6f2bfb('0x1826')]()},'nolimit':!![]});}],'chatWebsites':[_0x3140c6('0x218e'),_0x3140c6('0x1150'),function(_0x4a9b5a,_0x56d918){const _0x11066a=_0x3140c6;return _0x56d918['hasRole']('admin')?_0x4a9b5a[_0x11066a('0xa28')](_0x11066a('0x27f0'),{'fields':_0x11066a('0x2660'),'sort':_0x11066a('0x1c74'),'limit':0xa,'offset':0x0}):_0x4a9b5a[_0x11066a('0xa28')](_0x11066a('0xb0d'),{'id':_0x56d918['getCurrentUser']()['userProfileId'],'section':_0x11066a('0x368'),'fields':_0x11066a('0x2660'),'sort':_0x11066a('0x1c74'),'limit':0xa,'offset':0x0});}]},'authenticate':!![],'bodyClass':_0x3140c6('0xd6e')})[_0x3140c6('0x2124')](_0x3140c6('0x1822'),{'url':_0x3140c6('0x1bdd'),'data':{'selectedTab':0x3},'views':{'mail':{'templateUrl':_0x4f292e,'controller':_0x3140c6('0x14dc')}},'resolve':{'mailInteractions':['apiResolver',function(_0x539198){const _0x39db8b=_0x3140c6;return _0x539198['resolve'](_0x39db8b('0xbfa'),{'createdAt':{'$gte':_0x57d4d1()()[_0x39db8b('0x2655')](_0x39db8b('0x2161'))[_0x39db8b('0x1fb1')](0x0,!![])[_0x39db8b('0x1826')](),'$lte':_0x57d4d1()()['endOf'](_0x39db8b('0x2161'))[_0x39db8b('0x1fb1')](0x0,!![])['format']()},'nolimit':!![]});}],'mailAccounts':[_0x3140c6('0x218e'),_0x3140c6('0x1150'),function(_0x3980f0,_0x5d5abe){const _0x4a4c25=_0x3140c6;return _0x5d5abe[_0x4a4c25('0x4ee')](_0x4a4c25('0xf45'))?_0x3980f0[_0x4a4c25('0xa28')](_0x4a4c25('0x3f0'),{'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':_0x4a4c25('0x1c74'),'limit':0xa,'offset':0x0}):_0x3980f0[_0x4a4c25('0xa28')](_0x4a4c25('0xb0d'),{'id':_0x5d5abe['getCurrentUser']()[_0x4a4c25('0x781')],'section':_0x4a4c25('0x48d'),'fields':_0x4a4c25('0xc90'),'sort':_0x4a4c25('0x1c74'),'limit':0xa,'offset':0x0});}]},'authenticate':!![],'bodyClass':'dashboards'})[_0x3140c6('0x2124')](_0x3140c6('0x201e'),{'url':_0x3140c6('0x74b'),'data':{'selectedTab':0x4},'views':{'sms':{'templateUrl':_0x24c704,'controller':_0x3140c6('0xb7a')}},'resolve':{'smsInteractions':[_0x3140c6('0x218e'),function(_0x2f4ea1){const _0x317e61=_0x3140c6;return _0x2f4ea1['resolve']('smsInteraction@get',{'createdAt':{'$gte':_0x57d4d1()()['startOf']('day')[_0x317e61('0x1fb1')](0x0,!![])[_0x317e61('0x1826')](),'$lte':_0x57d4d1()()['endOf']('day')[_0x317e61('0x1fb1')](0x0,!![])['format']()},'nolimit':!![]});}],'smsAccounts':[_0x3140c6('0x218e'),_0x3140c6('0x1150'),function(_0x41dc45,_0xefb299){const _0x230763=_0x3140c6;return _0xefb299[_0x230763('0x4ee')]('admin')?_0x41dc45[_0x230763('0xa28')](_0x230763('0xc77'),{'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}):_0x41dc45[_0x230763('0xa28')]('userProfile@getResources',{'id':_0xefb299[_0x230763('0x2428')]()[_0x230763('0x781')],'section':_0x230763('0x42f'),'fields':_0x230763('0x115a'),'sort':_0x230763('0x1c74'),'limit':0xa,'offset':0x0});}]},'authenticate':!![],'bodyClass':_0x3140c6('0xd6e')})['state'](_0x3140c6('0x2216'),{'url':_0x3140c6('0x1d4e'),'data':{'selectedTab':0x5},'views':{'openchannel':{'templateUrl':_0x2cf804,'controller':_0x3140c6('0xf64')}},'resolve':{'openchannelInteractions':[_0x3140c6('0x218e'),function(_0x43520a){const _0x5bd09a=_0x3140c6;return _0x43520a[_0x5bd09a('0xa28')](_0x5bd09a('0x447'),{'createdAt':{'$gte':_0x57d4d1()()[_0x5bd09a('0x2655')]('day')['utcOffset'](0x0,!![])[_0x5bd09a('0x1826')](),'$lte':_0x57d4d1()()[_0x5bd09a('0x2ba')](_0x5bd09a('0x2161'))[_0x5bd09a('0x1fb1')](0x0,!![])['format']()},'nolimit':!![]});}],'openchannelAccounts':['apiResolver',_0x3140c6('0x1150'),function(_0x1efe0c,_0x55ef32){const _0x554843=_0x3140c6;return _0x55ef32[_0x554843('0x4ee')](_0x554843('0xf45'))?_0x1efe0c[_0x554843('0xa28')](_0x554843('0x1b5b'),{'fields':_0x554843('0x499'),'sort':'-updatedAt','nolimit':!![]}):_0x1efe0c[_0x554843('0xa28')](_0x554843('0xb0d'),{'id':_0x55ef32['getCurrentUser']()[_0x554843('0x781')],'section':_0x554843('0x17d3'),'fields':_0x554843('0x499'),'sort':_0x554843('0x1c74'),'nolimit':!![]});}]},'authenticate':!![],'bodyClass':_0x3140c6('0xd6e')})[_0x3140c6('0x2124')](_0x3140c6('0x2064'),{'url':_0x3140c6('0x95'),'data':{'selectedTab':0x6},'views':{'fax':{'templateUrl':_0x4e4900,'controller':_0x3140c6('0x1567')}},'resolve':{'faxInteractions':[_0x3140c6('0x218e'),function(_0x292e14){const _0x4fc5ec=_0x3140c6;return _0x292e14[_0x4fc5ec('0xa28')](_0x4fc5ec('0x1d82'),{'createdAt':{'$gte':_0x57d4d1()()[_0x4fc5ec('0x2655')]('day')[_0x4fc5ec('0x1fb1')](0x0,!![])[_0x4fc5ec('0x1826')](),'$lte':_0x57d4d1()()[_0x4fc5ec('0x2ba')]('day')[_0x4fc5ec('0x1fb1')](0x0,!![])['format']()},'nolimit':!![]});}],'faxAccounts':[_0x3140c6('0x218e'),'Auth',function(_0x10decd,_0x157650){const _0x211f2e=_0x3140c6;return _0x157650['hasRole']('admin')?_0x10decd[_0x211f2e('0xa28')](_0x211f2e('0x17b5'),{'fields':_0x211f2e('0x2653'),'sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x10decd['resolve']('userProfile@getResources',{'id':_0x157650['getCurrentUser']()['userProfileId'],'section':_0x211f2e('0x6bd'),'fields':_0x211f2e('0x2653'),'sort':_0x211f2e('0x1c74'),'limit':0xa,'offset':0x0});}]},'authenticate':!![],'bodyClass':_0x3140c6('0xd6e')})['state'](_0x3140c6('0x1564'),{'url':_0x3140c6('0x2828'),'data':{'selectedTab':0x7},'views':{'whatsapp':{'templateUrl':_0x4aa571,'controller':_0x3140c6('0xe16')}},'resolve':{'whatsappInteractions':[_0x3140c6('0x218e'),function(_0x2c12e6){const _0x33a5ca=_0x3140c6;return _0x2c12e6[_0x33a5ca('0xa28')](_0x33a5ca('0x2634'),{'createdAt':{'$gte':_0x57d4d1()()[_0x33a5ca('0x2655')](_0x33a5ca('0x2161'))[_0x33a5ca('0x1fb1')](0x0,!![])[_0x33a5ca('0x1826')](),'$lte':_0x57d4d1()()[_0x33a5ca('0x2ba')](_0x33a5ca('0x2161'))['utcOffset'](0x0,!![])[_0x33a5ca('0x1826')]()},'nolimit':!![]});}],'whatsappAccounts':[_0x3140c6('0x218e'),_0x3140c6('0x1150'),function(_0xc811eb,_0x248995){const _0x38135e=_0x3140c6;return _0x248995[_0x38135e('0x4ee')]('admin')?_0xc811eb[_0x38135e('0xa28')](_0x38135e('0x1ae6'),{'fields':_0x38135e('0x1960'),'sort':_0x38135e('0x1c74'),'limit':0xa,'offset':0x0}):_0xc811eb[_0x38135e('0xa28')](_0x38135e('0xb0d'),{'id':_0x248995[_0x38135e('0x2428')]()[_0x38135e('0x781')],'section':_0x38135e('0x95f'),'fields':_0x38135e('0x1960'),'sort':_0x38135e('0x1c74'),'limit':0xa,'offset':0x0});}]},'authenticate':!![],'bodyClass':'dashboards'});}angular[_0x21d0f5('0x2768')](_0x21d0f5('0x1503'),[])[_0x21d0f5('0x53a')](_0x73b7c8)[_0x21d0f5('0x23eb')]('UserChatDashboardGeneralController',_0x4538ab)[_0x21d0f5('0x23eb')](_0x21d0f5('0x213f'),_0x47184e)['controller']('UserFaxDashboardGeneralController',_0x5a840d)[_0x21d0f5('0x23eb')](_0x21d0f5('0x46c'),_0x1a0c42)[_0x21d0f5('0x23eb')]('UserOpenchannelDashboardGeneralController',_0x56f9dc)[_0x21d0f5('0x23eb')](_0x21d0f5('0x1d16'),_0x36dc1e)[_0x21d0f5('0xdb4')](_0x21d0f5('0x15b6'),_0xa45588)['factory']('initializeRealtimeQueue',_0x15edc4)[_0x21d0f5('0x2729')]('initializeRealtimeCampaign',_0x561520)[_0x21d0f5('0x23eb')](_0x21d0f5('0x3a8'),_0x3ad69e)['controller']('UserVoiceDashboardGeneralController',_0x23085c)[_0x21d0f5('0x23eb')](_0x21d0f5('0xcc0'),_0x59e8e1);const _0x35815a=_0x351988['p']+_0x21d0f5('0x1740'),_0x39b004=_0x351988['p']+_0x21d0f5('0x19bc');var _0x5e3c94=_0x351988(0x1d2),_0x1e5096=_0x351988['n'](_0x5e3c94);_0x5ee1b7[_0x21d0f5('0x1e9a')]=['$rootScope',_0x21d0f5('0xb6b'),_0x21d0f5('0x2143'),_0x21d0f5('0x1150')],_0x31f88f[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),'$timeout','$mdDialog',_0x21d0f5('0x2143'),_0x21d0f5('0xb6b'),_0x21d0f5('0x1b30'),'Auth',_0x21d0f5('0x12a5'),'socket',_0x21d0f5('0x142d'),'globalUserLists','globalLists',_0x21d0f5('0x1052'),'globalTags','license',_0x21d0f5('0x23e1'),_0x21d0f5('0xae0'),_0x21d0f5('0xda9')];function _0x31f88f(_0x45d9f0,_0xf26e90,_0x2ac6f9,_0x39ac66,_0x5d8a76,_0x41b170,_0x123d81,_0x2a08f6,_0x12e773,_0x4a26c9,_0x4d6348,_0xdce934,_0x46d452,_0x3fcabb,_0x23b80d,_0x5d0090,_0x3f1e57,_0x5baa3a){const _0x3c630b=_0x21d0f5,_0x3c028a=this;_0x3c028a[_0x3c630b('0x17ff')]=_0x23b80d,_0x3c028a[_0x3c630b('0x23e1')]=_0x5d0090,_0x3c028a[_0x3c630b('0x7dd')]=_0x5baa3a[_0x3c630b('0x7dd')](),_0x3c028a['user']=_0x123d81['getCurrentUser'](),_0x3c028a[_0x3c630b('0x9d5')]=0x0,_0x3c028a[_0x3c630b('0xa63')]={},_0x3c028a[_0x3c630b('0x217e')]={},_0x3c028a[_0x3c630b('0x15db')]={},_0x3c028a['globalUserLists']=_0x4d6348||{'count':0x0,'rows':[]},_0x3c028a['globalLists']=_0xdce934||{'count':0x0,'rows':[]},_0x3c028a[_0x3c630b('0x1052')]=_0x46d452||{'count':0x0,'rows':[]},_0x3c028a[_0x3c630b('0x10ba')]=_0x3fcabb||{'count':0x0,'rows':[]},_0x3c028a['onClickTab']=_0x28f9b8,_0x3c028a['isActiveTab']=_0x5f2e65,_0x3c028a[_0x3c630b('0x1541')]=_0x4464ba,_0x3c028a[_0x3c630b('0x20b3')]=_0x76d398,_0x3c028a['addInteractionTab']=_0x11ea71,_0x3c028a[_0x3c630b('0x18a9')]=_0x4895e2,_0x3c028a[_0x3c630b('0xf4b')]=_0x546c7e,_0x3c028a[_0x3c630b('0x20e1')]=_0x5ca474,_0x3c028a[_0x3c630b('0x8b5')]=_0x188e06,_0x12e773['on'](_0x3c630b('0x255c'),_0x5c2ff4),_0x12e773['on']('trigger:jscripty',_0x47a985),_0x12e773['on'](_0x3c630b('0x17ca'),_0xc8ce5c),_0x12e773['on']('trigger:browser:url',_0x6381a8),_0x12e773['on'](_0x3c630b('0xfd0'),_0x1e28c3),_0x12e773['on']('notification:save',_0x3132d0),_0x12e773['on'](_0x3c630b('0x46d'),_0x17823b),_0x12e773['on'](_0x3c630b('0x1125'),_0x3fa886),_0x12e773['on']('voice_outbound_channel:remove',_0x3fa886),_0xa609d2();function _0xa609d2(){const _0x513c2b=_0x3c630b;let _0x5e51fa=_0x39ac66[_0x513c2b('0xe4a')]['getItem'](_0x513c2b('0x38c')+_0x3c028a[_0x513c2b('0x21d9')]['id']);if(_0x5e51fa)try{_0x5e51fa=JSON[_0x513c2b('0x1850')](_0x5e51fa),_0x3c028a['tabs']=_0x5e51fa['tabs']?_0x5e51fa[_0x513c2b('0x217e')]:{},_0x3c028a['currentTab']=_0x5e51fa[_0x513c2b('0x9d5')]?_0x5e51fa['currentTab']:0x0,_0x36f51e(_0x3c028a['tabs'][_0x3c028a[_0x513c2b('0x9d5')]]);}catch(_0x38691e){console[_0x513c2b('0x255')](_0x38691e);}}function _0x5ca474(_0x501d7b){const _0x57c41d=_0x3c630b,_0xd89f90={};for(const _0x2641e5 in _0x3c028a[_0x57c41d('0x217e')]){typeof _0x3c028a['tabs'][_0x2641e5]!==_0x57c41d('0x13e9')&&(_0xd89f90[_0x2641e5]=_0x36f548()[_0x57c41d('0x258')](_0x3c028a[_0x57c41d('0x217e')][_0x2641e5],['type',_0x57c41d('0x134b'),_0x57c41d('0xd12'),_0x57c41d('0x15eb'),'color',_0x57c41d('0x107d'),'id',_0x57c41d('0xf06'),_0x57c41d('0x142c')]),!_0x36f548()[_0x57c41d('0x1a80')](_0x3c028a[_0x57c41d('0x217e')][_0x2641e5][_0x57c41d('0xdde')])&&(_0xd89f90[_0x2641e5][_0x57c41d('0xdde')]=_0x36f548()[_0x57c41d('0x258')](_0x3c028a['tabs'][_0x2641e5][_0x57c41d('0xdde')],['id','ListId'])),!_0x36f548()[_0x57c41d('0x1a80')](_0x3c028a[_0x57c41d('0x217e')][_0x2641e5]['calls'])&&(_0xd89f90[_0x2641e5]['calls']=_0x3c028a[_0x57c41d('0x217e')][_0x2641e5][_0x57c41d('0xb7e')]),_0x3c028a[_0x57c41d('0x217e')][_0x2641e5]['interaction']&&(_0xd89f90[_0x2641e5][_0x57c41d('0x4e6')]=_0x36f548()['pick'](_0x3c028a[_0x57c41d('0x217e')][_0x2641e5][_0x57c41d('0x4e6')],['id',_0x57c41d('0x2863'),_0x57c41d('0x2294'),_0x57c41d('0x2346'),_0x57c41d('0x1a46'),_0x57c41d('0x80b'),'WhatsappAccountId',_0x57c41d('0x949'),_0x57c41d('0x20f1')])));}let _0x443d14=JSON[_0x57c41d('0x1850')](_0x39ac66[_0x57c41d('0xe4a')]['getItem'](_0x57c41d('0x38c')+_0x3c028a[_0x57c41d('0x21d9')]['id']));_0x443d14?(_0x443d14[_0x57c41d('0x217e')]=_0xd89f90,_0x443d14[_0x57c41d('0x9d5')]=_0x3c028a[_0x57c41d('0x9d5')]):_0x443d14={'tabs':_0xd89f90,'currentTab':_0x3c028a[_0x57c41d('0x9d5')]},_0x39ac66[_0x57c41d('0xe4a')][_0x57c41d('0x26d6')](_0x57c41d('0x38c')+_0x3c028a[_0x57c41d('0x21d9')]['id'],JSON['stringify'](_0x443d14)),_0x501d7b&&_0x36f51e(_0x501d7b);}function _0x36f51e(_0x3626aa){const _0x3d8058=_0x3c630b;if(_0x36f548()[_0x3d8058('0x1a80')](_0x3626aa)||_0x3626aa&&_0x3626aa[_0x3d8058('0x19fd')]===_0x3d8058('0x4e6')){const _0x1054c8={'id':_0x3c028a[_0x3d8058('0x21d9')]['id'],'online':!![],'capacity':{'mail':0x0,'fax':0x0,'sms':0x0,'whatsapp':0x0,'openchannel':0x0,'chat':0x0},'interaction':{'mail':[],'fax':[],'sms':[],'whatsapp':[],'openchannel':[],'chat':[]}};for(const _0x87e30a in _0x3c028a['tabs']){typeof _0x3c028a[_0x3d8058('0x217e')][_0x87e30a]!=='undefined'&&(typeof _0x1054c8[_0x3d8058('0x163d')][_0x3c028a['tabs'][_0x87e30a]['channel']]!==_0x3d8058('0x13e9')&&_0x3c028a[_0x3d8058('0x217e')][_0x87e30a]['interaction']&&!_0x3c028a[_0x3d8058('0x217e')][_0x87e30a]['interaction'][_0x3d8058('0x949')]&&(_0x1054c8[_0x3d8058('0x163d')][_0x3c028a[_0x3d8058('0x217e')][_0x87e30a]['channel']]+=0x1,_0x1054c8[_0x3d8058('0x4e6')][_0x3c028a[_0x3d8058('0x217e')][_0x87e30a]['channel']]['push'](_0x3c028a[_0x3d8058('0x217e')][_0x87e30a]['interaction']['id'])));}if(!_0x36f548()['isEqual'](_0x3c028a['agentCapacity'],_0x1054c8[_0x3d8058('0x163d')]))return _0x3c028a['agentCapacity']=_0x1054c8['capacity'],_0x2a08f6['rpc'][_0x3d8058('0x5e5')](_0x1054c8);}}function _0x188e06(_0xbe2edb){const _0x1ab6f7=_0x3c630b;let _0x1997b8=![];const _0x30c750=_0x2ac6f9[_0x1ab6f7('0x132b')]()[_0x1ab6f7('0x134b')](_0xbe2edb[_0x1ab6f7('0x19fd')]===_0x1ab6f7('0x4e6')?_0x1ab6f7('0x1937'):'Are\x20you\x20sure\x20want\x20to\x20close\x20the\x20'+_0xbe2edb['type']+'?')[_0x1ab6f7('0xad7')](_0xbe2edb['type']===_0x1ab6f7('0x4e6')?'':'The\x20'+_0xbe2edb[_0x1ab6f7('0x19fd')]+_0x1ab6f7('0xaa7'))[_0x1ab6f7('0xb2e')](_0x1ab6f7('0x10c8'))['ok'](_0xbe2edb['type']===_0x1ab6f7('0x4e6')?_0x1ab6f7('0x1941'):'OK')[_0x1ab6f7('0x26c9')](_0xbe2edb[_0x1ab6f7('0x19fd')]===_0x1ab6f7('0x4e6')?'NO':_0x1ab6f7('0x772'));if(_0xbe2edb[_0x1ab6f7('0xf06')]){let _0x11aecb=![];_0x36f548()[_0x1ab6f7('0x1f88')](_0xbe2edb['calls'],function(_0x2b796e){_0x2b796e['mandatoryDisposition']&&(_0x11aecb=!![]);});if(_0xbe2edb[_0x1ab6f7('0x19fd')]===_0x1ab6f7('0xdde')&&_0xbe2edb['calls'][_0x1ab6f7('0x1e22')]>0x0){let _0x33f091=undefined;if(_0x11aecb)_0x33f091=_0x2ac6f9[_0x1ab6f7('0xb30')]()[_0x1ab6f7('0x134b')](_0x1ab6f7('0x11bd'))[_0x1ab6f7('0xad7')]('There\x20is\x20a\x20call\x20that\x20hasn\x27t\x20been\x20disposed\x20yet.')['ok']('OK'),_0x2ac6f9[_0x1ab6f7('0xb9')](_0x33f091)[_0x1ab6f7('0xa9b')](function(){_0x33f091=undefined;});else return _0x30c750['_options'][_0x1ab6f7('0xad7')]=_0x1ab6f7('0x72b'),_0x2ac6f9[_0x1ab6f7('0xb9')](_0x30c750)['then'](function(){_0x546c7e(_0xbe2edb);});}else _0x546c7e(_0xbe2edb);}else{const _0x33be09=_0x3c028a['user'][_0x1ab6f7('0x20d')]||_0x3c028a[_0x1ab6f7('0x21d9')]['chatPause']||_0x3c028a[_0x1ab6f7('0x21d9')][_0x1ab6f7('0x1f53')]||_0x3c028a[_0x1ab6f7('0x21d9')][_0x1ab6f7('0xfc0')]||_0x3c028a[_0x1ab6f7('0x21d9')][_0x1ab6f7('0x2501')];return _0x1997b8=![],_0xbe2edb[_0x1ab6f7('0x19fd')]===_0x1ab6f7('0x4e6')&&(_0x1997b8=_0xbe2edb[_0x1ab6f7('0x4e6')][_0x1ab6f7('0x1e3c')]['mandatoryDisposition']),_0x2ac6f9['show'](_0x30c750)[_0x1ab6f7('0x11bf')](function(){const _0x22478e=_0x1ab6f7;_0xbe2edb[_0x22478e('0x19fd')]===_0x22478e('0x4e6')&&_0x2ac6f9['show']({'controller':_0x22478e('0xcd5'),'controllerAs':'vm','templateUrl':_0x35815a,'parent':angular[_0x22478e('0x1e73')](_0x41b170[_0x22478e('0x1d2')]),'onRemoving':function(){const _0x23e116=_0x22478e;_0x3c028a[_0x23e116('0x21d9')]&&_0x1997b8&&!_0x33be09&&_0x2a08f6['user'][_0x23e116('0xb6f')]({'id':_0x3c028a[_0x23e116('0x21d9')]['id']})[_0x23e116('0x1549')][_0x23e116('0x151d')](function(_0x3d31bb){const _0x4ae37f=_0x23e116;console[_0x4ae37f('0x255')](_0x3d31bb);});},'clickOutsideToClose':!_0x1997b8,'escapeToClose':!_0x1997b8,'locals':{'user':_0x3c028a[_0x22478e('0x21d9')],'channel':_0xbe2edb[_0x22478e('0xd12')],'interaction':_0xbe2edb['interaction']}}),_0x546c7e(_0xbe2edb);})['catch'](function(){const _0x82cdf7=_0x1ab6f7;_0xbe2edb['type']===_0x82cdf7('0x4e6')&&_0x546c7e(_0xbe2edb);});}}function _0x48a6a5(_0x43a709){const _0xeaec6e=_0x3c630b;if(_0x43a709[_0xeaec6e('0xd12')]&&_0x43a709[_0xeaec6e('0x4e6')])return _0x2a08f6[_0xeaec6e('0x21d9')][_0xeaec6e('0x14a5')+_0x36f548()['upperFirst'](_0x43a709['channel'])+'Interactions']({'id':_0x3c028a['user']['id'],'ids':[_0x43a709[_0xeaec6e('0x4e6')]['id']]})[_0xeaec6e('0x1549')][_0xeaec6e('0x151d')](function(_0x43effa){const _0x18838a=_0xeaec6e;console[_0x18838a('0x255')](_0x43effa);});}function _0x546c7e(_0x221cf7){const _0x383ea4=_0x3c630b;if(_0x3c028a[_0x383ea4('0x217e')][_0x221cf7['id']]){_0x48a6a5(_0x3c028a[_0x383ea4('0x217e')][_0x221cf7['id']]),delete _0x3c028a[_0x383ea4('0x217e')][_0x221cf7['id']],_0x3c028a[_0x383ea4('0x9d5')]=0x0,_0x5ca474(_0x221cf7);if(_0x221cf7[_0x383ea4('0x19fd')]===_0x383ea4('0x4e6'))return _0x2a08f6[_0x221cf7[_0x383ea4('0xd12')]+'Interaction'][_0x383ea4('0xbaa')]({'id':_0x221cf7[_0x383ea4('0x4e6')]['id']})[_0x383ea4('0x1549')][_0x383ea4('0x11bf')](function(_0x53dda3){const _0x3622c1=_0x383ea4;return _0x2a08f6[_0x3622c1('0x21d9')][_0x3622c1('0x14a5')+_0x36f548()['upperFirst'](_0x221cf7[_0x3622c1('0xd12')])+_0x3622c1('0x221b')]({'id':_0x3c028a[_0x3622c1('0x21d9')]['id'],'ids':[_0x53dda3['id']]})[_0x3622c1('0x1549')];})['catch'](function(_0x213aea){const _0x42ba2f=_0x383ea4;console[_0x42ba2f('0x255')](_0x213aea);});}}function _0x4895e2(_0x57b67f){const _0x2b60b8=_0x3c630b;_0x57b67f['id']=_0x36f548()[_0x2b60b8('0x459')](0x2540be400),_0x57b67f[_0x2b60b8('0x72')]=new Date(),_0x57b67f[_0x2b60b8('0xf06')]=![],_0x57b67f[_0x2b60b8('0x142c')]=0x0,_0x3c028a[_0x2b60b8('0x217e')][_0x57b67f['id']]=_0x57b67f,_0x3c028a[_0x2b60b8('0x9d5')]=_0x57b67f['id'],_0x5ca474(_0x57b67f);}function _0x5f2e65(_0x222886){const _0x43d25d=_0x3c630b;return _0x222886===_0x3c028a[_0x43d25d('0x9d5')];}function _0x28f9b8(_0x42769d){const _0x15552c=_0x3c630b;_0x3c028a[_0x15552c('0x9d5')]=_0x42769d,_0x5ca474(_0x3c028a[_0x15552c('0x217e')][_0x42769d]);}function _0x4464ba(_0x2f1f3e){const _0xa714d4=_0x3c630b;return _0x36f548()[_0xa714d4('0x1ad4')](_0x3c028a[_0xa714d4('0x217e')],function(_0xa1085d){const _0x532345=_0xa714d4;return _0xa1085d['type']===_0x532345('0x4e6')&&_0xa1085d['interaction']&&_0xa1085d['interaction']['id']==_0x2f1f3e[_0x532345('0x1180')]&&_0xa1085d['channel']==_0x2f1f3e[_0x532345('0xd12')];});}function _0x1287b7(_0x4ea091){const _0x56d28f=_0x3c630b;let _0x146b58='';if(_0x4ea091){if(_0x4ea091['firstName']||_0x4ea091[_0x56d28f('0xcf3')])_0x4ea091[_0x56d28f('0x13a0')]&&(_0x146b58+=_0x4ea091[_0x56d28f('0x13a0')]+'\x20'),_0x4ea091['lastName']&&(_0x146b58+=_0x4ea091[_0x56d28f('0xcf3')]);else _0x4ea091[_0x56d28f('0x1546')]&&(_0x146b58=_0x4ea091[_0x56d28f('0x1546')]);}return _0x146b58;}function _0x43c3a4(_0x57b278){const _0x53b9a5=_0x3c630b;switch(_0x57b278){case'chat':return'icon-hangouts';case _0x53b9a5('0x2030'):return _0x53b9a5('0xedc');case _0x53b9a5('0x4df'):return _0x53b9a5('0x1767');case'openchannel':return _0x53b9a5('0x1817');case _0x53b9a5('0x2104'):return _0x53b9a5('0x1994');case _0x53b9a5('0xe7c'):return'icon-whatsapp';default:return _0x53b9a5('0x444');}}function _0x57c3fa(_0x2e07d4){const _0x2276bb=_0x3c630b;switch(_0x2e07d4){case _0x2276bb('0x1800'):return _0x2276bb('0x1017');case _0x2276bb('0x2030'):return _0x2276bb('0x2347');case _0x2276bb('0x4df'):return _0x2276bb('0xb01');case _0x2276bb('0xb18'):return'amber-A200';case'fax':return'blue-grey-A200';case _0x2276bb('0xe7c'):return _0x2276bb('0x457');default:return _0x2276bb('0x2359');}}function _0x76d398(_0x3d61cd,_0x10dc97){const _0x1afd35=_0x3c630b,_0x4fd92d={'type':_0x1afd35('0xdde'),'title':_0x3d61cd?_0x1287b7(_0x3d61cd):_0x5d8a76[_0x1afd35('0x10c2')](_0x1afd35('0x20d8')),'icon':'icon-account-circle','color':'red','contact':_0x3d61cd,'calls':_0x10dc97?[_0x10dc97]:[],'autoCreate':_0x10dc97?_0x10dc97[_0x1afd35('0x107d')]:0x0};if(_0x10dc97){if(_0x10dc97[_0x1afd35('0x1f5b')]&&_0x10dc97['xmd-cdrtype']===_0x1afd35('0x14be'))_0x10dc97['answeredAt']=_0x10dc97[_0x1afd35('0x19b0')]?_0x57d4d1()(_0x10dc97[_0x1afd35('0x19b0')],_0x1afd35('0xfae'))[_0x1afd35('0x1e16')]():new Date();else{if(_0x10dc97[_0x1afd35('0x938')]){const _0x451bd6=_0x10dc97['uniqueid'][_0x1afd35('0xaf8')]('.')[0x0];_0x10dc97[_0x1afd35('0x7c8')]=_0x451bd6?new Date(parseInt(_0x451bd6)*0x3e8):new Date();}}(_0x10dc97[_0x1afd35('0x1b5c')]||_0x10dc97[_0x1afd35('0x147d')])&&_0x50f70e(_0x10dc97);}if(_0x3d61cd){const _0x4a7a96=_0x36f548()['find'](_0x3c028a[_0x1afd35('0x217e')],function(_0x195900){const _0x2f57b3=_0x1afd35;if(_0x195900[_0x2f57b3('0xdde')]&&_0x195900[_0x2f57b3('0xdde')]['id'])return _0x195900[_0x2f57b3('0x19fd')]===_0x2f57b3('0xdde')&&_0x195900[_0x2f57b3('0xdde')]&&_0x195900[_0x2f57b3('0xdde')]['id']==_0x3d61cd['id'];return _0x195900[_0x2f57b3('0x19fd')]===_0x2f57b3('0xdde')&&_0x195900[_0x2f57b3('0xdde')]&&_0x195900[_0x2f57b3('0xdde')]['phone']==_0x3d61cd[_0x2f57b3('0x1546')];});if(_0x4a7a96){if(_0x10dc97)return _0x2a08f6['voiceCallReport']['get']({'uniqueid':_0x10dc97[_0x1afd35('0x938')]})[_0x1afd35('0x1549')][_0x1afd35('0x11bf')](function(_0x275566){const _0x4b16db=_0x1afd35;_0x275566&&_0x275566[_0x4b16db('0x19b2')][_0x4b16db('0x1e22')]>0x0&&(_0x10dc97[_0x4b16db('0xf0b')]=_0x36f548()[_0x4b16db('0x848')](_0x275566[_0x4b16db('0x19b2')])['endtime']);if(_0x4a7a96['calls']){const _0x1acd76=_0x36f548()[_0x4b16db('0x1ad4')](_0x4a7a96['calls'],function(_0x517dcc){const _0x41025e=_0x4b16db;return _0x517dcc[_0x41025e('0x938')]===_0x10dc97[_0x41025e('0x938')];});!_0x1acd76&&_0x4a7a96[_0x4b16db('0xb7e')][_0x4b16db('0x105d')](_0x10dc97);}else _0x4a7a96['calls']=[_0x10dc97];_0x3c028a[_0x4b16db('0x9d5')]=_0x4a7a96['id'];});}else{if(_0x3d61cd[_0x1afd35('0x1e91')])return _0x2a08f6[_0x1afd35('0x107a')][_0x1afd35('0xbaa')]({'ListId':_0x3d61cd[_0x1afd35('0x1e91')]})[_0x1afd35('0x1549')][_0x1afd35('0x11bf')](function(_0x221297){const _0x1f6aab=_0x1afd35;return _0x4fd92d['dispositions']=_0x221297,_0x2a08f6[_0x1f6aab('0xbef')][_0x1f6aab('0x1281')]({'id':_0x3d61cd[_0x1f6aab('0x1e91')]})[_0x1f6aab('0x1549')];})[_0x1afd35('0x11bf')](function(_0x221541){const _0x52a7e2=_0x1afd35;_0x4fd92d[_0x52a7e2('0x8a1')]=_0x221541;})[_0x1afd35('0x151d')](_0x156ceb())[_0x1afd35('0xa9b')](function(){_0x4895e2(_0x4fd92d);});else _0x4895e2(_0x4fd92d);}}else _0x4895e2(_0x4fd92d);}function _0x11ea71(_0x48d276,_0x3bad39){const _0x2941fa=_0x3c630b;let _0x4ef295=_0x36f548()[_0x2941fa('0x1ad4')](_0x3c028a[_0x2941fa('0x217e')],function(_0xd20009){const _0x245a6c=_0x2941fa;return _0xd20009[_0x245a6c('0x19fd')]===_0x245a6c('0x4e6')&&_0xd20009[_0x245a6c('0x4e6')]&&_0xd20009['interaction']['id']===_0x3bad39['id']&&_0xd20009[_0x245a6c('0xd12')]===_0x48d276;});_0x4ef295?(_0x4ef295[_0x2941fa('0x1990')]=_0x3bad39[_0x2941fa('0x1990')]||![],_0x3c028a[_0x2941fa('0x9d5')]=_0x4ef295['id']):(_0x4ef295={'type':_0x2941fa('0x4e6'),'title':_0x48d276?_0x48d276[_0x2941fa('0xa6f')]():_0x2941fa('0xb18'),'icon':_0x43c3a4(_0x48d276),'color':_0x57c3fa(_0x48d276),'channel':_0x48d276,'interaction':_0x3bad39,'isDraft':_0x3bad39[_0x2941fa('0x1990')]||![]},_0x4895e2(_0x4ef295));}function _0x3ba50f(_0xd41197){const _0x110701=_0x3c630b,_0x2fb23a={'autoClose':!![],'duration':0xa,'showOnPageHidden':!![],'icon':_0x110701('0x2305'),'body':_0xd41197[_0x110701('0x150b')]?_0x110701('0x24fc')+_0xd41197['queue']:'','focusOnclick':!![],'closeOnClick':!![]};_0x3f1e57['show'](_0xd41197['title'],_0x2fb23a);}function _0x2263d0(_0x884c47){const _0x5b92ce=_0x3c630b;_0x3f1e57[_0x5b92ce('0x94e')]()?_0x3f1e57[_0x5b92ce('0xe55')]()[_0x5b92ce('0x11bf')](function(){_0x3ba50f(_0x884c47);},function(_0x25eec6){const _0x14f701=_0x5b92ce;console[_0x14f701('0x255')](_0x14f701('0x239c'),_0x25eec6);}):console['error'](_0x5b92ce('0x107f'));}function _0x3132d0(_0xeb50da){const _0x4b325e=_0x3c630b;if(_0xeb50da&&_0xeb50da[_0x4b325e('0x938')]){_0x2263d0(_0xeb50da);const _0x56aebe=_0x4464ba(_0xeb50da);if(_0x56aebe){if(_0x2a08f6[_0xeb50da[_0x4b325e('0xd12')]+'Message'])return _0x3c028a[_0x4b325e('0x9d5')]!==_0x56aebe['id']&&(_0x56aebe['badges']+=0x1),_0x2a08f6[_0xeb50da[_0x4b325e('0xd12')]+'Message']['accept']({'id':_0xeb50da['id'],'UserId':_0x3c028a[_0x4b325e('0x21d9')]['id']})[_0x4b325e('0x1549')]['catch'](_0x156ceb());}else _0x4a26c9[_0x4b325e('0x156b')]({'title':_0xeb50da[_0x4b325e('0x134b')],'msg':_0xeb50da[_0x4b325e('0x2587')]||'','showClose':![],'clickToClose':![],'timeout':![],'sound':_0xeb50da[_0x4b325e('0x1d6e')],'html':!![],'shake':_0xeb50da['shake']||![],'onAdd':function(){const _0x428fe7=_0x4b325e;_0x3c028a[_0x428fe7('0xa63')][_0xeb50da['uniqueid']]=this['id'];},'onAccept':function(){const _0x16c509=_0x4b325e;_0x17823b(_0xeb50da);if(_0x2a08f6[_0xeb50da['channel']+'Message'])return _0x2a08f6[_0xeb50da[_0x16c509('0xd12')]+'Message'][_0x16c509('0x15c7')]({'id':_0xeb50da['id'],'UserId':_0x3c028a[_0x16c509('0x21d9')]['id'],'manual':!![]})[_0x16c509('0x1549')][_0x16c509('0x11bf')](function(_0x8bc978){const _0x1e17bd=_0x16c509;_0x11ea71(_0x8bc978[_0x1e17bd('0xd12')],_0x8bc978['interaction']),_0x4a26c9[_0x1e17bd('0x2693')]({'title':'Message\x20properly\x20accepted!','msg':_0x1e17bd('0xda8')});})[_0x16c509('0x151d')](_0x156ceb());},'onReject':function(){const _0x20d380=_0x4b325e;_0x17823b(_0xeb50da);if(_0x2a08f6[_0xeb50da[_0x20d380('0xd12')]+'Message'])return _0x2a08f6[_0xeb50da[_0x20d380('0xd12')]+_0x20d380('0xbc9')][_0x20d380('0x4a')]({'id':_0xeb50da['id'],'UserId':_0x3c028a[_0x20d380('0x21d9')]['id']})[_0x20d380('0x1549')]['then'](function(){const _0x4e6a0a=_0x20d380;_0x4a26c9['success']({'title':_0x4e6a0a('0x1b60'),'msg':_0x4e6a0a('0x1fe5')});})['catch'](_0x156ceb());}});}}function _0x17823b(_0x6b8264){const _0x1d3350=_0x3c630b;_0x6b8264&&_0x6b8264[_0x1d3350('0x938')]&&(_0x3c028a[_0x1d3350('0xa63')][_0x6b8264[_0x1d3350('0x938')]]&&(_0x4a26c9[_0x1d3350('0xb34')](_0x3c028a['notifications'][_0x6b8264[_0x1d3350('0x938')]]),delete _0x3c028a[_0x1d3350('0xa63')][_0x6b8264[_0x1d3350('0x938')]]));}function _0x5c2ff4(_0x223dec){const _0x196e7b=_0x3c630b;if(!_0x223dec[_0x196e7b('0x206c')]){_0x76d398(_0x223dec[_0x196e7b('0xdde')],_0x223dec[_0x196e7b('0x10a7')]);return;}_0x2ac6f9['show']({'controller':_0x196e7b('0x16ab'),'controllerAs':'vm','templateUrl':_0x39b004,'parent':angular[_0x196e7b('0x1e73')](_0x41b170[_0x196e7b('0x1d2')]),'locals':{'contacts':_0x223dec[_0x196e7b('0x206c')],'callNumber':_0x223dec['evt'][_0x196e7b('0x2077')]?_0x223dec[_0x196e7b('0x10a7')][_0x196e7b('0x16c1')]:_0x223dec[_0x196e7b('0x10a7')][_0x196e7b('0x1f8a')]}})[_0x196e7b('0x11bf')](function(_0x24b0b9){_0x76d398(_0x24b0b9,_0x223dec['evt']);});}function _0x47a985(_0x4c13ff){const _0x47be77=_0x3c630b;return _0x2a08f6[_0x47be77('0xf34')][_0x47be77('0xbaa')]({'id':_0x4c13ff[_0x47be77('0x1f6')]})[_0x47be77('0x1549')][_0x47be77('0x11bf')](function(_0x127a46){const _0x45bcf9=_0x47be77;if(_0x127a46){if(_0x36f548()['isUndefined'](_0x4c13ff[_0x45bcf9('0x247')])){try{_0x127a46['formData']=_0x1e5096()[_0x45bcf9('0x25a5')](_0x127a46['formData'],_0x36f548()['merge'](_0x4c13ff,{'user':_0x3c028a[_0x45bcf9('0x21d9')]}));}catch(_0x9e7f82){console[_0x45bcf9('0x255')](_0x9e7f82);}_0x4895e2({'type':'jscripty','title':_0x127a46[_0x45bcf9('0x1909')],'icon':_0x45bcf9('0x2864'),'color':'grey','project':_0x127a46,'call':_0x4c13ff});}else return _0x2a08f6[_0x45bcf9('0x1b8f')]['get']({'id':_0x4c13ff[_0x45bcf9('0x247')]})[_0x45bcf9('0x1549')][_0x45bcf9('0x11bf')](function(_0x919ce5){const _0x4b4754=_0x45bcf9;try{_0x127a46[_0x4b4754('0x1b56')]=_0x1e5096()['render'](_0x127a46[_0x4b4754('0x1b56')],_0x36f548()[_0x4b4754('0x47b')](_0x4c13ff,{'user':_0x3c028a[_0x4b4754('0x21d9')],'contact':_0x919ce5}));}catch(_0x4eec8c){console[_0x4b4754('0x255')](_0x4eec8c);}_0x4895e2({'type':_0x4b4754('0x163c'),'title':_0x127a46['name'],'icon':'icon-script','color':'grey','project':_0x127a46,'call':_0x4c13ff,'contact':_0x919ce5});})[_0x45bcf9('0x151d')](_0x156ceb());}})[_0x47be77('0x151d')](_0x156ceb());}function _0x6381a8(_0xe0ab63){const _0x1942a3=_0x3c630b;if(_0xe0ab63&&_0xe0ab63[_0x1942a3('0xc7f')]){_0xe0ab63[_0x1942a3('0xc7f')]=_0x36f548()['replace'](_0xe0ab63['uri'],'<%3B',''),_0xe0ab63[_0x1942a3('0xc7f')]=_0x36f548()[_0x1942a3('0x814')](_0xe0ab63[_0x1942a3('0xc7f')],'=>%3B=','');if(_0xe0ab63[_0x1942a3('0xb87')])switch(_0xe0ab63['uriLocation']){case'0':_0x39ac66['open'](_0xe0ab63[_0x1942a3('0xc7f')]);break;case'1':_0x39ac66[_0x1942a3('0x2570')](_0xe0ab63[_0x1942a3('0xc7f')],'_blank','width='+(_0xe0ab63[_0x1942a3('0x8c2')]||_0x1942a3('0x236c'))+',height='+_0xe0ab63[_0x1942a3('0xc41')]||0x0);break;case'2':{const _0x32d947={'type':_0x1942a3('0x12c'),'title':_0xe0ab63[_0x1942a3('0xc7f')],'icon':_0x1942a3('0x1817'),'color':_0x1942a3('0x1065'),'src':_0xe0ab63[_0x1942a3('0xc7f')]};_0x4895e2(_0x32d947);}break;default:_0x39ac66['open'](_0xe0ab63[_0x1942a3('0xc7f')]);}else _0x39ac66[_0x1942a3('0x2570')](_0xe0ab63[_0x1942a3('0xc7f')]);}}function _0x1e28c3(_0x105771){const _0x83f66=_0x3c630b;_0x105771&&_0x105771[_0x83f66('0x254b')]&&_0x4895e2({'type':_0x83f66('0x1156'),'title':_0x105771[_0x83f66('0x1f8a')]||'popup','icon':'icon-tablet','color':_0x83f66('0x2359'),'html':_0x105771[_0x83f66('0x254b')]});}function _0xc8ce5c(_0xb65443){const _0x7d73db=_0x3c630b,_0x395ad6=_0xb65443[_0x7d73db('0x5ed')]&&_0xb65443['calleridname']!==_0x7d73db('0xcd4')?_0xb65443[_0x7d73db('0x5ed')]:_0xb65443[_0x7d73db('0x1f8a')],_0x3b3b00=_0xb65443[_0x7d73db('0x1f8a')];return _0x2a08f6['squareMessage'][_0x7d73db('0xbaa')]({'fields':'id','limit':0x1,'offset':0x0,'uniqueid':_0xb65443[_0x7d73db('0x938')]})[_0x7d73db('0x1549')]['then'](function(_0x151632){const _0x5f2cfd=_0x7d73db;_0x151632[_0x5f2cfd('0x27d2')]&&_0x4895e2({'type':_0x5f2cfd('0x4b5'),'title':_0x395ad6+'\x20<'+_0x3b3b00+'>','icon':'fas\x20fa-robot','color':_0x5f2cfd('0x1079'),'data':{'uniqueid':_0xb65443[_0x5f2cfd('0x938')]}});});}function _0x3fa886(_0x3aaa36){const _0x3d6ea7=_0x3c630b;console[_0x3d6ea7('0x8ab')](_0x3d6ea7('0xf52'),_0x3aaa36);for(const _0x283549 in _0x3c028a[_0x3d6ea7('0x217e')]){if(typeof _0x3c028a[_0x3d6ea7('0x217e')][_0x283549]!=='undefined'){const _0xc40084=_0x3c028a[_0x3d6ea7('0x217e')][_0x283549];if(_0xc40084[_0x3d6ea7('0xb7e')]){console[_0x3d6ea7('0x8ab')](_0x3d6ea7('0x1203'),_0x283549,_0xc40084,_0xc40084[_0x3d6ea7('0xb7e')]);const _0x50f9cd=_0x36f548()['findIndex'](_0xc40084[_0x3d6ea7('0xb7e')],function(_0x43b71a){const _0x39e491=_0x3d6ea7;return _0x43b71a[_0x39e491('0x938')]===_0x3aaa36[_0x39e491('0x938')];});_0x50f9cd>=0x0&&!_0xc40084[_0x3d6ea7('0xb7e')][_0x50f9cd]['disposedAt']?(console['debug'](_0x3d6ea7('0x16ec'),_0x3aaa36[_0x3d6ea7('0x938')]),_0x50f70e(_0xc40084[_0x3d6ea7('0xb7e')][_0x50f9cd])):console[_0x3d6ea7('0x8ab')]('Call\x20%s\x20not\x20found\x20or\x20already\x20completed',_0x3aaa36[_0x3d6ea7('0x938')]),_0x3c028a[_0x3d6ea7('0xdde')]&&_0x3c028a['contact']['id']&&_0xf26e90(_0x3f9c85(_0x3aaa36['uniqueid'],_0x3c028a['contact']['id'],_0xc40084),0x3e8);}}}_0x5ca474();}function _0x3f9c85(_0x16e220,_0x6c3a56,_0x3e4312){return function(){const _0x26d75=a0_0xaf0c,_0x369043=_0x36f548()['find'](_0x3e4312[_0x26d75('0xb7e')],function(_0x2e2ee3){const _0x3a108c=_0x26d75;return _0x2e2ee3[_0x3a108c('0x938')]===_0x16e220;});if(_0x369043)return _0x2a08f6[_0x26d75('0xdd8')][_0x26d75('0x5ab')]({'id':_0x16e220,'ContactId':_0x6c3a56})[_0x26d75('0x1549')][_0x26d75('0x151d')](function(_0x19c548){const _0x3bc50b=_0x26d75;console[_0x3bc50b('0x255')](_0x19c548);});};}function _0x50f70e(_0x4e9b91){const _0x33533d=_0x3c630b;_0x4e9b91[_0x33533d('0xf0b')]=new Date();}function _0x156ceb(){return function(_0xbee70c){const _0x26610b=a0_0xaf0c;if(_0xbee70c[_0x26610b('0xff9')]===0x194)_0x4a26c9[_0x26610b('0x1abd')]({'title':_0x5d8a76['instant'](_0x26610b('0x383')),'msg':_0x5d8a76[_0x26610b('0x10c2')]('DASHBOARDS.ACCEPT_ELSEWHERE')});else{if(_0xbee70c[_0x26610b('0x4e8')]&&_0xbee70c['data'][_0x26610b('0x120f')]&&_0xbee70c['data']['errors']['length']){_0x3c028a['errors']=_0xbee70c['data']['errors']||[{'message':_0xbee70c[_0x26610b('0xaab')](),'type':'api.openchannelMessage.accept'}];for(let _0x7a5524=0x0;_0x7a5524<_0xbee70c[_0x26610b('0x4e8')][_0x26610b('0x120f')]['length'];_0x7a5524+=0x1){_0x4a26c9['error']({'title':_0xbee70c[_0x26610b('0x4e8')][_0x26610b('0x120f')][_0x7a5524][_0x26610b('0x19fd')],'msg':_0xbee70c['data'][_0x26610b('0x120f')][_0x7a5524][_0x26610b('0x1b86')]});}}else _0x4a26c9[_0x26610b('0x255')]({'title':_0xbee70c[_0x26610b('0xff9')]?'API:'+_0xbee70c[_0x26610b('0xff9')]+_0x26610b('0xb0b')+_0xbee70c[_0x26610b('0x212f')]:_0x26610b('0x66a'),'msg':_0xbee70c[_0x26610b('0x4e8')]?JSON['stringify'](_0xbee70c[_0x26610b('0x4e8')][_0x26610b('0x1b86')]):_0xbee70c[_0x26610b('0xaab')]()});}};}_0x45d9f0[_0x3c630b('0x12d8')](_0x3c630b('0x4f7'),function(){const _0x510108=_0x3c630b;for(const _0x35e64c in _0x3c028a['notifications']){typeof _0x3c028a[_0x510108('0xa63')][_0x35e64c]!==_0x510108('0x13e9')&&_0x17823b({'uniqueid':_0x35e64c});}_0x12e773[_0x510108('0x1b2e')](_0x510108('0x255c')),_0x12e773['removeAllListeners']('trigger:jscripty'),_0x12e773[_0x510108('0x1b2e')](_0x510108('0x1c9d')),_0x12e773['removeAllListeners'](_0x510108('0xfd0')),_0x12e773[_0x510108('0x1b2e')](_0x510108('0x1d21')),_0x12e773[_0x510108('0x1b2e')](_0x510108('0x46d')),_0x12e773[_0x510108('0x1b2e')](_0x510108('0x1125')),_0x12e773['removeAllListeners'](_0x510108('0x2ff'));});}function _0x5ee1b7(_0x35f7e9,_0x5847e0,_0x71a225,_0xf7455e){const _0x212584=_0x21d0f5,_0x13d739={};let _0xd9a51a={},_0x5bac9a={},_0x4ac71d={};_0x13d739['init']=function(){const _0x2ae7c3=a0_0xaf0c;_0x13d739[_0x2ae7c3('0x2131')]=_0x16d450();},_0x13d739[_0x212584('0xa95')]=function(_0x2b2037){const _0x3eea6d=_0x212584;return _0x13d739[_0x3eea6d('0x2131')]=_0x16d450(),_0x36f548()[_0x3eea6d('0x1ad4')](_0x36f548()[_0x3eea6d('0x1643')](_0x13d739[_0x3eea6d('0x2131')]),function(_0x59be71){const _0x4b6564=_0x3eea6d;return _0x59be71[_0x4b6564('0x4e6')]&&_0x59be71[_0x4b6564('0x4e6')]['id']===_0x2b2037;});},_0x13d739[_0x212584('0xfb9')]=function(_0x39a8cc){const _0x2ad4e5=_0x212584;_0x13d739[_0x2ad4e5('0x2131')]=_0x16d450();const _0x3936f4=_0x36f548()['find'](_0x36f548()[_0x2ad4e5('0x1643')](_0x13d739['drafts']),function(_0x5a09be){const _0x31ebda=_0x2ad4e5;return _0x5a09be[_0x31ebda('0x4e6')]&&_0x5a09be[_0x31ebda('0x4e6')]['id']===_0x39a8cc;});_0x3936f4&&(delete _0x13d739[_0x2ad4e5('0x2131')][_0x3936f4['id']],_0x39ce83());},_0x13d739[_0x212584('0x23c1')]=function(_0x5d196a){const _0x5ae4df=_0x212584;_0x13d739[_0x5ae4df('0x2131')]=_0x16d450();let _0x5ea396=_0x5847e0[_0x5ae4df('0x10c2')](_0x5ae4df('0x1d0b'));if(_0x5d196a[_0x5ae4df('0xdde')])_0x5ea396=_0x5d196a['contact']['firstName']||_0x5d196a[_0x5ae4df('0xdde')][_0x5ae4df('0x15d3')];else!_0x36f548()[_0x5ae4df('0x1fc5')](_0x5d196a[_0x5ae4df('0x1b86')][_0x5ae4df('0x20eb')])&&(_0x5ea396=_0x5d196a[_0x5ae4df('0x1b86')][_0x5ae4df('0x20eb')]);const _0x44d213={'type':_0x5ae4df('0x20f1'),'title':_0x5d196a[_0x5ae4df('0x2565')]['key']+'\x20-\x20'+_0x5ea396,'channel':_0x5d196a[_0x5ae4df('0xd12')],'content':_0x5d196a['message'],'account':_0x5d196a[_0x5ae4df('0x2565')],'interaction':_0x5d196a[_0x5ae4df('0x4e6')],'id':_0x36f548()[_0x5ae4df('0x459')](0x2540be400),'openedAt':new Date(),'saved':![]};_0x13d739['drafts'][_0x44d213['id']]=_0x44d213,_0x39ce83();},_0x13d739[_0x212584('0x5ab')]=function(_0x58d3f0){const _0x386ec5=_0x212584;_0x13d739[_0x386ec5('0x2131')]=_0x16d450();const _0x49d9d6=_0x13d739[_0x386ec5('0x2131')][_0x58d3f0['id']];_0x49d9d6&&(_0x49d9d6[_0x386ec5('0x252a')]=_0x58d3f0[_0x386ec5('0x1b86')],_0x13d739[_0x386ec5('0x2131')][_0x58d3f0['id']]=_0x49d9d6,_0x39ce83());},_0x13d739['open']=function(_0x4cbae9){const _0x1019ff=_0x212584;_0x13d739[_0x1019ff('0x2131')]=_0x16d450();const _0x3f0c87=_0x13d739['drafts'][_0x4cbae9];_0x3f0c87&&_0x35f7e9[_0x1019ff('0x1c04')](_0x1019ff('0x2570')+_0x36f548()[_0x1019ff('0x13cf')](_0x5bac9a)+_0x1019ff('0x17ac'),_0x3f0c87);},_0x13d739[_0x212584('0x14a5')]=function(_0x55c829){const _0x255156=_0x212584;_0x13d739[_0x255156('0x2131')]=_0x16d450(),_0x13d739['drafts'][_0x55c829]&&(delete _0x13d739['drafts'][_0x55c829],_0x39ce83());};function _0x16d450(){const _0x2aa0e2=_0x212584;_0xd9a51a=_0xf7455e[_0x2aa0e2('0x2428')]();const _0x313108=_0x71a225[_0x2aa0e2('0xe4a')][_0x2aa0e2('0x2356')](_0x2aa0e2('0x1e61')+_0xd9a51a['id']);_0x313108?_0x5bac9a=JSON[_0x2aa0e2('0x1850')](_0x313108)['currentSidebarTab']:_0x5bac9a=_0x2aa0e2('0xdb9');_0x4ac71d=_0x71a225[_0x2aa0e2('0xe4a')]['getItem'](_0x2aa0e2('0x1b')+_0x5bac9a+':'+_0xd9a51a['id']);if(_0x4ac71d){const _0x5544c1=JSON['parse'](_0x4ac71d);!_0x5544c1[_0x2aa0e2('0x2131')]&&(_0x5544c1['drafts']={}),_0x4ac71d=_0x5544c1;}else _0x4ac71d={'drafts':{}};return _0x4ac71d[_0x2aa0e2('0x2131')];}function _0x39ce83(){const _0xbc890d=_0x212584;_0x36f548()[_0xbc890d('0x1fc5')](_0x13d739[_0xbc890d('0x2131')])?delete _0x4ac71d[_0xbc890d('0x2131')]:_0x4ac71d['drafts']=_0x13d739[_0xbc890d('0x2131')],_0x71a225[_0xbc890d('0xe4a')][_0xbc890d('0x26d6')](_0xbc890d('0x1b')+_0x5bac9a+':'+_0xd9a51a['id'],JSON['stringify'](_0x4ac71d));}return _0x13d739;}function _0x494f89(){const _0xbc777a=_0x21d0f5,_0x302a17={'autoClose':!![],'duration':0x5,'showOnPageHidden':![]};return{'config':_0x2527b7,'$get':['$q',_0xbc777a('0x17f5'),_0xbc777a('0x2143'),'PERMISSIONS',_0x912a7b]};function _0x2527b7(_0x3c04bc){const _0x364701=_0xbc777a;for(const _0x2f7299 in _0x3c04bc){typeof _0x302a17[_0x2f7299]!==_0x364701('0x13e9')&&typeof _0x3c04bc[_0x2f7299]!==_0x364701('0x13e9')&&(_0x302a17[_0x2f7299]=_0x3c04bc[_0x2f7299]);}}function _0x912a7b(_0x26482d,_0x4f310a,_0x33e6a3,_0x379a60){const _0x4ec96e=_0xbc777a,_0x30e89e=_0x33e6a3[_0x4ec96e('0x2486')]||_0x33e6a3[_0x4ec96e('0xd52')]||_0x33e6a3[_0x4ec96e('0xa4a')],_0x5a57fe={'isSupported':_0xedffee,'currentPermission':_0x472596,'requestPermission':_0x22431b,'show':_0x93cf51,'permissions':{'default':_0x379a60[_0x4ec96e('0x26e')],'granted':_0x379a60[_0x4ec96e('0x1f2e')],'denied':_0x379a60[_0x4ec96e('0x14e')]}};return _0x5a57fe;function _0xedffee(){const _0x153ba0=_0x4ec96e;return!(typeof _0x30e89e===_0x153ba0('0x13e9'));}function _0x472596(){const _0x5155c1=_0x4ec96e;return(_0x30e89e||{})[_0x5155c1('0xd9e')];}function _0x22431b(){const _0x4ff4a6=_0x4ec96e;if(!_0xedffee())return _0x26482d[_0x4ff4a6('0x4a')](_0x4ff4a6('0xa9d'));const _0x2d8653=_0x26482d[_0x4ff4a6('0xa93')]();return Promise[_0x4ff4a6('0xa28')](_0x30e89e[_0x4ff4a6('0xe55')])==_0x30e89e[_0x4ff4a6('0xe55')]?_0x30e89e[_0x4ff4a6('0xe55')]()[_0x4ff4a6('0x11bf')](function(_0x544bbc){const _0x503053=_0x4ff4a6;_0x379a60[_0x503053('0x1f2e')]===_0x544bbc?_0x2d8653[_0x503053('0xa28')](_0x544bbc):_0x2d8653['reject'](_0x544bbc);}):_0x30e89e[_0x4ff4a6('0xe55')](function(_0x15b0f8){const _0x94a1f9=_0x4ff4a6;_0x379a60[_0x94a1f9('0x1f2e')]===_0x15b0f8?_0x2d8653[_0x94a1f9('0xa28')](_0x15b0f8):_0x2d8653[_0x94a1f9('0x4a')](_0x15b0f8);}),_0x2d8653[_0x4ff4a6('0x13f')];}function _0x93cf51(_0x1d4587,_0xadce36){const _0x26ede7=_0x4ec96e;_0xadce36=_0xadce36||{};if(!_0xedffee()||!_0x45bcc2(_0x1d4587,_0xadce36)||_0x1b4e3e(_0xadce36[_0x26ede7('0x15ed')])||_0x472596()!==_0x379a60[_0x26ede7('0x1f2e')])return;const _0x22a514=new _0x30e89e(_0x1d4587,_0xadce36),_0xdcfda=_0xadce36[_0x26ede7('0x187f')]||_0x302a17[_0x26ede7('0x187f')],_0x2deea0=_0xadce36[_0x26ede7('0x902')]===undefined?_0x302a17[_0x26ede7('0x902')]:_0xadce36['autoClose'];_0x22a514['onclick']=function(){const _0x454a0b=_0x26ede7;_0xadce36[_0x454a0b('0x9a0')]&&_0xadce36[_0x454a0b('0x9a0')](),_0xadce36[_0x454a0b('0x1488')]&&window['focus'](),_0xadce36[_0x454a0b('0x23f')]&&_0x22a514[_0x454a0b('0x2132')]();};if(_0x2deea0)_0x18ead3(_0x22a514,_0xdcfda);return _0x22a514;}function _0x45bcc2(_0x52f540,_0x4b1367){const _0x21b2d7=_0x4ec96e,_0x530896=angular[_0x21b2d7('0x532')](_0x52f540),_0x434678=!_0x4b1367['onClick']||angular[_0x21b2d7('0x1378')](_0x4b1367[_0x21b2d7('0x9a0')]);return _0x530896&&_0x434678;}function _0x1b4e3e(_0x440af5){const _0xd552ea=_0x4ec96e;if(!_0x440af5&&!_0x302a17[_0xd552ea('0x15ed')])return;return!(window[_0xd552ea('0xb54')][_0xd552ea('0x2ed')]||window[_0xd552ea('0xb54')][_0xd552ea('0x182c')]||window[_0xd552ea('0xb54')]['webkitHidden']);}function _0x18ead3(_0x49621f,_0x11b404){const _0x5e5a21=_0x4ec96e,_0x393869=_0x11b404*0x3e8;_0x4f310a(_0x49621f[_0x5e5a21('0x2132')][_0x5e5a21('0x656')](_0x49621f),_0x393869,![]);}}}function _0x38bc33(){const _0x4a177f=_0x21d0f5,_0x3c0ce9=angular['injector'](['ng'])[_0x4a177f('0xbaa')](_0x4a177f('0x23')),_0x4c562c=[],_0x5e1081=this;_0x5e1081[_0x4a177f('0x265e')]=_0x4723ad,_0x5e1081[_0x4a177f('0x2639')]=_0x5b3f6e;function _0x4723ad(_0x2b842a,_0x393bac){const _0x5b3e61=_0x4a177f;if(!angular[_0x5b3e61('0x532')](_0x2b842a)){_0x3c0ce9[_0x5b3e61('0x255')]('path\x20must\x20be\x20a\x20string\x20(eg.\x20`dashboard.project`)');return;}const _0x3db566=_0x2b842a[_0x5b3e61('0xaf8')]('.'),_0x54bc9d=_0x3db566[_0x3db566[_0x5b3e61('0x1e22')]-0x1],_0x575c63=_0x370cde(_0x3db566);let _0x2b720b=![];for(let _0xe6ad9d=0x0;_0xe6ad9d<_0x575c63[_0x5b3e61('0x1e22')];_0xe6ad9d++){if(_0x575c63[_0xe6ad9d][_0x5b3e61('0x19e4')]===_0x54bc9d){_0x2b720b=_0x575c63[_0xe6ad9d];break;}}_0x2b720b?(angular[_0x5b3e61('0x218f')](_0x2b720b,_0x393bac),_0x2b720b['uisref']=_0x3b0518(_0x2b720b)):(_0x393bac['children']=[],(angular['isUndefined'](_0x393bac[_0x5b3e61('0x14aa')])||!angular[_0x5b3e61('0xe43')](_0x393bac[_0x5b3e61('0x14aa')]))&&(_0x393bac[_0x5b3e61('0x14aa')]=0x1),_0x393bac[_0x5b3e61('0x19e4')]=_0x54bc9d,_0x393bac[_0x5b3e61('0x10a6')]=_0x2b842a,_0x393bac[_0x5b3e61('0x14bf')]=_0x3b0518(_0x393bac),_0x575c63[_0x5b3e61('0x105d')](_0x393bac));}function _0x5b3f6e(_0x35b422){const _0x5383da=_0x4a177f;if(!angular[_0x5383da('0x532')](_0x35b422)){_0x3c0ce9['error']('path\x20must\x20be\x20a\x20string\x20(eg.\x20`dashboard.project`)');return;}let _0x5841b2=_0x4c562c;const _0x368d91=_0x35b422['split']('.');for(let _0x3326c7=0x0;_0x3326c7<_0x368d91[_0x5383da('0x1e22')];_0x3326c7++){const _0x4d9a22=_0x368d91[_0x3326c7];for(let _0xfb78ee=0x0;_0xfb78ee<_0x5841b2['length'];_0xfb78ee++){if(_0x5841b2[_0xfb78ee][_0x5383da('0x19e4')]===_0x4d9a22){if(_0x5841b2[_0xfb78ee][_0x5383da('0x10a6')]===_0x35b422)return _0x5841b2['splice'](_0xfb78ee,0x1),!![];_0x5841b2=_0x5841b2[_0xfb78ee][_0x5383da('0xbc5')];break;}}}return![];}function _0x370cde(_0x195126){const _0x119b5b=_0x4a177f;let _0x10c5da=_0x4c562c;if(_0x195126['length']===0x1)return _0x10c5da;_0x195126[_0x119b5b('0xfaa')]();for(let _0x4e514e=0x0;_0x4e514e<_0x195126['length'];_0x4e514e++){const _0x22b92a=_0x195126[_0x4e514e];let _0x1be2fe=!![];for(let _0x4439d6=0x0;_0x4439d6<_0x10c5da[_0x119b5b('0x1e22')];_0x4439d6++){if(_0x10c5da[_0x4439d6]['_id']===_0x22b92a){_0x10c5da=_0x10c5da[_0x4439d6]['children'],_0x1be2fe=![];break;}}if(_0x1be2fe){const _0x492c15={'_id':_0x22b92a,'_path':_0x195126[_0x119b5b('0xa04')]('.'),'title':_0x22b92a,'weight':0x1,'children':[]};_0x10c5da[_0x119b5b('0x105d')](_0x492c15),_0x10c5da=_0x492c15[_0x119b5b('0xbc5')];}}return _0x10c5da;}function _0x3b0518(_0x1059a6){const _0x5232fc=_0x4a177f;let _0x3ff134='';return angular['isDefined'](_0x1059a6[_0x5232fc('0x2124')])&&(_0x3ff134=_0x1059a6['state'],angular[_0x5232fc('0x17c8')](_0x1059a6['stateParams'])&&angular[_0x5232fc('0xa90')](_0x1059a6['stateParams'])&&(_0x3ff134=_0x3ff134+'('+angular[_0x5232fc('0x460')](_0x1059a6['stateParams'])+')')),_0x3ff134;}this['$get']=function(){const _0x5eb9e6={'saveItem':_0x4723ad,'getNavigation':_0x1c92db};return _0x5eb9e6;function _0x1c92db(_0x18f324){const _0xabf210=a0_0xaf0c;if(_0x18f324){for(let _0x3b6799=0x0;_0x3b6799<_0x4c562c[_0xabf210('0x1e22')];_0x3b6799++){if(_0x4c562c[_0x3b6799][_0xabf210('0x19e4')]===_0x18f324)return[_0x4c562c[_0x3b6799]];}return null;}return _0x4c562c;}};}const _0xd0ffd4={'DEFAULT':'default','GRANTED':_0x21d0f5('0x112f'),'DENIED':_0x21d0f5('0x2526')};_0x329d9b[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x12a5')];function _0x329d9b(_0x267add){const _0x97b606=_0x21d0f5,_0x46319b=this;_0x46319b[_0x97b606('0x23e1')]={},_0x46319b[_0x97b606('0x8d6')]={'count':0x0,'rows':[]},_0x46319b[_0x97b606('0x22e')]=![];function _0x3e85b2(_0x9bbdb4,_0x3d2393){const _0x1b72a6=_0x97b606;_0x46319b['setting']=_0x3d2393,_0x46319b[_0x1b72a6('0x205c')]=_0x9bbdb4,_0x46319b['tab'][_0x1b72a6('0xf06')]=!![];if(_0x46319b[_0x1b72a6('0x205c')]&&_0x46319b['tab'][_0x1b72a6('0x4e8')]&&_0x46319b[_0x1b72a6('0x205c')]['data'][_0x1b72a6('0x938')])return _0x267add[_0x1b72a6('0x9db')][_0x1b72a6('0xbaa')]({'uniqueid':_0x46319b['tab'][_0x1b72a6('0x4e8')][_0x1b72a6('0x938')]})['$promise']['then'](function(_0x31f2bb){_0x46319b['messages']=_0x31f2bb;})[_0x1b72a6('0xa9b')](function(){_0x46319b['showInteraction']=!![];});else _0x46319b[_0x1b72a6('0x22e')]=!![];}function _0x1d91e9(_0xd71a18){const _0x566085=_0x97b606;switch(_0x46319b['setting']['messagesAlignment']){case'left':if(_0xd71a18[_0x566085('0x7d5')]=='in')return _0xd71a18['direction'];return _0x566085('0x1930');case _0x566085('0xdd5'):if(_0xd71a18[_0x566085('0x7d5')]=='in')return _0x566085('0x1c30');return _0xd71a18[_0x566085('0x7d5')];default:return _0xd71a18[_0x566085('0x7d5')];}}_0x46319b[_0x97b606('0x286f')]=_0x3e85b2,_0x46319b[_0x97b606('0x1eac')]=_0x1d91e9;}const _0x33e3bd=_0x329d9b,_0x492638=_0x351988['p']+_0x21d0f5('0x17f0'),_0x33f96f=_0x351988['p']+_0x21d0f5('0x794'),_0x4e4d72=_0x351988['p']+'src/js/modules/main/apps/dashboards/views/general/agent/contact/dispose/dialog.html/dialog.html',_0x14e130=_0x351988['p']+_0x21d0f5('0xa00'),_0x342084=_0x351988['p']+_0x21d0f5('0x12b1'),_0xac735f=_0x351988['p']+_0x21d0f5('0x1e11'),_0x495d17=_0x351988['p']+'src/js/modules/main/apps/dashboards/views/general/agent/interaction/composeSms/dialog.html/dialog.html',_0x4e375f=_0x351988['p']+_0x21d0f5('0x1004');_0x1be901[_0x21d0f5('0x1e9a')]=['$mdDialog',_0x21d0f5('0x1b30'),_0x21d0f5('0x17f5'),_0x21d0f5('0x1b80'),'$q',_0x21d0f5('0x12a5'),'toasty',_0x21d0f5('0x1150'),_0x21d0f5('0xb6b'),_0x21d0f5('0xda9')];const _0x2b90df={'fax':_0x14e130,'mail':_0x342084,'openchannel':_0xac735f,'sms':_0x495d17,'whatsapp':_0x4e375f};function _0x1be901(_0x302939,_0x4b0f54,_0x724300,_0x219f54,_0x4e0468,_0x3ed8b1,_0x5de811,_0xf63642,_0x1cef4a,_0x3b8e9d){const _0x5abd6a=_0x21d0f5,_0x83f21a=this;_0x83f21a['user']=_0xf63642[_0x5abd6a('0x2428')](),_0x83f21a[_0x5abd6a('0x7dd')]=_0x3b8e9d[_0x5abd6a('0x7dd')](),_0x83f21a[_0x5abd6a('0x496')]=[],_0x83f21a[_0x5abd6a('0x1e70')]={'fields':_0x5abd6a('0xb3c'),'sort':'-updatedAt','limit':0xa,'page':0x1},_0x83f21a['queryFinal']={'fields':_0x5abd6a('0x6cd'),'sort':_0x5abd6a('0x1c74'),'limit':0xa,'page':0x1},_0x83f21a[_0x5abd6a('0x2149')]={'fields':_0x5abd6a('0x11b3'),'sort':_0x5abd6a('0x1c74'),'limit':0xa,'page':0x1},_0x83f21a[_0x5abd6a('0xc8d')]={'rows':[],'count':0x0},_0x83f21a[_0x5abd6a('0x711')]={'rows':[],'count':0x0},_0x83f21a[_0x5abd6a('0x103b')]={'rows':[],'count':0x0},_0x83f21a[_0x5abd6a('0x9f6')]=new Date(_0x57d4d1()()[_0x5abd6a('0x2655')](_0x5abd6a('0x4d8'))[_0x5abd6a('0x243a')](0x1,_0x5abd6a('0x278'))['utcOffset'](0x0,!![])['format']()),_0x83f21a[_0x5abd6a('0xbf2')]=new Date(_0x57d4d1()()[_0x5abd6a('0x2ba')](_0x5abd6a('0x4d8'))[_0x5abd6a('0x243a')](0x1,'day')['utcOffset'](0x0,!![])[_0x5abd6a('0x1826')]()),_0x83f21a['addNewContact']=_0x27f9c4,_0x83f21a['saveContact']=_0x33a92d,_0x83f21a[_0x5abd6a('0x1281')]=_0x422356,_0x83f21a[_0x5abd6a('0x7c1')]=_0x219f54[_0x5abd6a('0x25f5')]['vm'][_0x5abd6a('0x7c1')],_0x83f21a[_0x5abd6a('0x93e')]=_0x2beb73,_0x83f21a[_0x5abd6a('0x1b01')]=_0x2ad7d7,_0x83f21a['mergeContact']=_0x1bfbff,_0x83f21a[_0x5abd6a('0x1bd1')]=_0x3090f2,_0x83f21a[_0x5abd6a('0xb73')]=_0x3168c6,_0x83f21a['getHoppers']=_0x59fe17,_0x83f21a['getFinals']=_0x4aff32,_0x83f21a[_0x5abd6a('0x58d')]=_0x1fdedb,_0x83f21a[_0x5abd6a('0x20d0')]=_0x59957e,_0x83f21a[_0x5abd6a('0x19ec')]=_0x1e22ee,_0x83f21a[_0x5abd6a('0x464')]=_0x3905a0,_0x83f21a[_0x5abd6a('0xa3f')]=_0x162aa3,_0x83f21a[_0x5abd6a('0x1a81')]=_0x165978,_0x83f21a['getOpenchannelAccounts']=_0x42d201,_0x83f21a[_0x5abd6a('0x267d')]=_0x48c534,_0x83f21a[_0x5abd6a('0x1161')]=_0x39f50,_0x83f21a[_0x5abd6a('0x1f24')]=_0xe4950,_0x83f21a[_0x5abd6a('0x286f')]=_0xdfa6f0,_0x83f21a[_0x5abd6a('0x1709')]=_0x2e4a94,_0x83f21a['openInteraction']=_0xbb6ecc,_0x83f21a[_0x5abd6a('0x223')]=_0xcfc637,_0x83f21a[_0x5abd6a('0x22fe')]=_0x1a8542,_0x83f21a[_0x5abd6a('0x20d0')]();function _0x1a8542(_0x4a92f1){const _0x2f233c=_0x5abd6a;if(_0x4a92f1[_0x2f233c('0x1a46')])return _0x36f548()[_0x2f233c('0x55a')](_0x36f548()[_0x2f233c('0x2171')](_0x83f21a[_0x2f233c('0xc6e')]?_0x83f21a[_0x2f233c('0xc6e')]['rows']:[],'id'),_0x4a92f1[_0x2f233c('0x1a46')]);else{if(_0x4a92f1['OpenchannelAccountId'])return _0x36f548()[_0x2f233c('0x55a')](_0x36f548()[_0x2f233c('0x2171')](_0x83f21a['openchannelAccounts']?_0x83f21a['openchannelAccounts'][_0x2f233c('0x19b2')]:[],'id'),_0x4a92f1[_0x2f233c('0x2863')]);else{if(_0x4a92f1[_0x2f233c('0x80b')])return _0x36f548()['includes'](_0x36f548()['map'](_0x83f21a[_0x2f233c('0x27d9')]?_0x83f21a[_0x2f233c('0x27d9')]['rows']:[],'id'),_0x4a92f1['SmsAccountId']);else{if(_0x4a92f1[_0x2f233c('0x146a')])return _0x36f548()[_0x2f233c('0x55a')](_0x36f548()[_0x2f233c('0x2171')](_0x83f21a[_0x2f233c('0xeaa')]?_0x83f21a[_0x2f233c('0xeaa')][_0x2f233c('0x19b2')]:[],'id'),_0x4a92f1[_0x2f233c('0x146a')]);else{if(_0x4a92f1[_0x2f233c('0x2294')])return _0x36f548()[_0x2f233c('0x55a')](_0x36f548()['map'](_0x83f21a[_0x2f233c('0xf1a')]?_0x83f21a[_0x2f233c('0xf1a')]['rows']:[],'id'),_0x4a92f1[_0x2f233c('0x2294')]);else{if(_0x4a92f1[_0x2f233c('0x2346')])return _0x36f548()['includes'](_0x36f548()[_0x2f233c('0x2171')](_0x83f21a[_0x2f233c('0x215d')]?_0x83f21a[_0x2f233c('0x215d')]['rows']:[],'id'),_0x4a92f1[_0x2f233c('0x2346')]);else{if(_0x4a92f1[_0x2f233c('0x745')])return!![];}}}}}}return![];}function _0xbb6ecc(_0x2f24e7,_0x1930e7){const _0x444a8c=_0x5abd6a;try{if(_0x1930e7[_0x444a8c('0x2294')])return _0x219f54['$parent'][_0x444a8c('0x25f5')][_0x444a8c('0x25f5')]['vm'][_0x444a8c('0x226f')](_0x444a8c('0x2030'),_0x1930e7);else{if(_0x1930e7[_0x444a8c('0x2346')])return _0x219f54['$parent']['$parent']['$parent']['vm'][_0x444a8c('0x226f')](_0x444a8c('0x1800'),_0x1930e7);else{if(_0x1930e7[_0x444a8c('0x80b')])return _0x219f54[_0x444a8c('0x25f5')][_0x444a8c('0x25f5')][_0x444a8c('0x25f5')]['vm'][_0x444a8c('0x226f')](_0x444a8c('0x4df'),_0x1930e7);else{if(_0x1930e7[_0x444a8c('0x146a')])return _0x219f54[_0x444a8c('0x25f5')][_0x444a8c('0x25f5')]['$parent']['vm'][_0x444a8c('0x226f')](_0x444a8c('0xe7c'),_0x1930e7);else{if(_0x1930e7[_0x444a8c('0x2863')])return _0x219f54['$parent'][_0x444a8c('0x25f5')][_0x444a8c('0x25f5')]['vm'][_0x444a8c('0x226f')](_0x444a8c('0xb18'),_0x1930e7);else{if(_0x1930e7[_0x444a8c('0x1a46')])return _0x219f54[_0x444a8c('0x25f5')]['$parent']['$parent']['vm'][_0x444a8c('0x226f')]('fax',_0x1930e7);}}}}}}catch(_0x64e2b3){_0x5de811['error']({'title':_0x444a8c('0xa3a'),'msg':_0x444a8c('0x11fc')});}}function _0x29175d(_0xfe29c2){const _0x2627ca=_0x5abd6a;if(!_0xfe29c2[_0x2627ca('0x107a')])return'('+_0x1cef4a[_0x2627ca('0x10c2')](_0x2627ca('0x104b'))+')';const _0x2f8c3d=_0x36f548()['compact']([_0xfe29c2[_0x2627ca('0x107a')],_0xfe29c2['secondDisposition'],_0xfe29c2[_0x2627ca('0x24d8')]]);return'('+_0x2f8c3d[_0x2627ca('0xa04')](_0x2627ca('0xb0b'))+')';}function _0x42a3cb(_0x30b82e){const _0x32c2b6=_0x5abd6a;_0x30b82e&&_0x30b82e[_0x32c2b6('0x27d2')]&&_0x30b82e['rows'][_0x32c2b6('0x1e22')]&&(_0x83f21a[_0x32c2b6('0x496')]=_0x36f548()['concat'](_0x83f21a[_0x32c2b6('0x496')],_0x30b82e[_0x32c2b6('0x19b2')]),_0x83f21a[_0x32c2b6('0x496')][_0x32c2b6('0x1f88')](function(_0x53f945){const _0x9f1d8=_0x32c2b6;_0x53f945[_0x9f1d8('0x27ca')]=_0x29175d(_0x53f945);}));}function _0x150d69(_0x74b0f){const _0x1ef9c5=_0x5abd6a,_0x13b377=[_0x1ef9c5('0x2030'),_0x1ef9c5('0x1800'),_0x1ef9c5('0x4df'),_0x1ef9c5('0xb18'),_0x1ef9c5('0x2104'),_0x1ef9c5('0xe7c')];if(_0x74b0f&&_0x74b0f['id']){for(let _0x45e1e9=0x0;_0x45e1e9<_0x13b377[_0x1ef9c5('0x1e22')];_0x45e1e9++){_0x3ed8b1[_0x13b377[_0x45e1e9]+_0x1ef9c5('0x1da8')][_0x1ef9c5('0xbaa')]({'ContactId':_0x74b0f['id'],'journey':!![],'includeAll':!![]})[_0x1ef9c5('0x1549')][_0x1ef9c5('0x11bf')](_0x42a3cb);}_0x3ed8b1['voiceCallReport'][_0x1ef9c5('0xbaa')]({'ContactId':_0x74b0f['id'],'includeAll':!![]})['$promise']['then'](_0x42a3cb)[_0x1ef9c5('0x151d')](function(_0x2713c0){const _0x44fd2e=_0x1ef9c5;console[_0x44fd2e('0x255')](_0x2713c0);});}}function _0x46a55e(_0x44b88a){const _0x45c18e=_0x5abd6a;switch(_0x44b88a){case _0x45c18e('0x1800'):return _0x45c18e('0x1017');case _0x45c18e('0x2030'):return _0x45c18e('0x2347');case _0x45c18e('0x4df'):return'orange';case _0x45c18e('0xb18'):return'amber-A200';case _0x45c18e('0x2104'):return'blue-grey-A200';case _0x45c18e('0xe7c'):return'lime-A700';default:return _0x45c18e('0x2584');}}function _0xcfc637(_0x50a475){const _0x2adedc=_0x5abd6a;let _0x30dbd4='';if(_0x50a475['FaxAccountId'])_0x30dbd4=_0x2adedc('0x2104');else{if(_0x50a475[_0x2adedc('0x2863')])_0x30dbd4=_0x2adedc('0xb18');else{if(_0x50a475[_0x2adedc('0x80b')])_0x30dbd4=_0x2adedc('0x4df');else{if(_0x50a475[_0x2adedc('0x146a')])_0x30dbd4=_0x2adedc('0xe7c');else{if(_0x50a475['MailAccountId'])_0x30dbd4=_0x2adedc('0x2030');else{if(_0x50a475['ChatWebsiteId'])_0x30dbd4=_0x2adedc('0x1800');else _0x50a475[_0x2adedc('0x745')]&&(_0x30dbd4=_0x2adedc('0x1bc3'));}}}}}return _0x46a55e(_0x30dbd4);}function _0xdfa6f0(_0x5242f8,_0x55dbbe){const _0x52de53=_0x5abd6a;return _0x83f21a[_0x52de53('0x205c')]=_0x5242f8,_0x219f54[_0x52de53('0xe19')]([_0x52de53('0x3f6'),'vm.customFieldsForm.$pristine'],function(_0x1162cb){const _0x3dc7ec=_0x52de53;_0x83f21a[_0x3dc7ec('0x205c')][_0x3dc7ec('0xf06')]=_0x1162cb[0x0]&&_0x1162cb[0x1];}),_0x83f21a[_0x52de53('0x17ff')]=_0x55dbbe,_0x83f21a[_0x52de53('0xdde')]=_0x83f21a['tab'][_0x52de53('0xdde')],_0x83f21a[_0x52de53('0x1005')]=![],_0x83f21a[_0x52de53('0x9d5')]=0x0,_0x3ed8b1[_0x52de53('0x21d9')][_0x52de53('0xbaa')]({'fields':_0x52de53('0xe1f'),'nolimit':!![]})[_0x52de53('0x1549')][_0x52de53('0x11bf')](function(_0x246e46){const _0xfd8f46=_0x52de53;_0x83f21a[_0xfd8f46('0x17c0')]=_0x246e46||{'count':0x0,'rows':[]},_0x83f21a[_0xfd8f46('0x2e7')]=_0x36f548()[_0xfd8f46('0xbdb')](_0x36f548()[_0xfd8f46('0x2130')](_0x83f21a[_0xfd8f46('0x17c0')][_0xfd8f46('0x19b2')],'id'),_0xfd8f46('0x27af'));return;})[_0x52de53('0x11bf')](function(){const _0x44edab=_0x52de53,_0x2b1f95=[];for(let _0x3dad07=0x0;_0x3dad07<_0x83f21a['tab'][_0x44edab('0xb7e')][_0x44edab('0x1e22')];_0x3dad07++){const _0x43acf4=_0x83f21a[_0x44edab('0x205c')]['calls'][_0x3dad07];_0x2b1f95[_0x44edab('0x105d')](_0x3ed8b1['voiceCallReport'][_0x44edab('0xbaa')]({'uniqueid':_0x43acf4[_0x44edab('0x938')]})[_0x44edab('0x1549')][_0x44edab('0x11bf')](function(_0x2899a3){const _0x45ae30=_0x44edab;_0x2899a3&&_0x2899a3[_0x45ae30('0x19b2')]['length']>0x0&&(_0x43acf4[_0x45ae30('0xf0b')]=_0x36f548()[_0x45ae30('0x848')](_0x2899a3[_0x45ae30('0x19b2')])[_0x45ae30('0x147d')]);return;}));}return _0x4e0468[_0x44edab('0x7c')](_0x2b1f95);})[_0x52de53('0x11bf')](function(){const _0x47ec8e=_0x52de53;if(_0x83f21a[_0x47ec8e('0xdde')]&&_0x83f21a[_0x47ec8e('0xdde')]['id']){const _0x352d0c={'id':_0x83f21a['contact']['id'],'ListId':_0x83f21a[_0x47ec8e('0xdde')][_0x47ec8e('0x1e91')],'limit':0x1,'offset':0x0,'sort':_0x47ec8e('0x1c74')};return _0x3ed8b1[_0x47ec8e('0x1b8f')]['get'](_0x352d0c)[_0x47ec8e('0x1549')]['then'](function(_0x3e3e50){const _0x72f173=_0x47ec8e;return _0x83f21a[_0x72f173('0xdde')]=_0x3e3e50,_0x83f21a[_0x72f173('0x205c')]['contact']=_0x3e3e50,_0x3ed8b1[_0x72f173('0x21d9')][_0x72f173('0xcd9')]({'id':_0x83f21a[_0x72f173('0x21d9')]['id'],'ids':[_0x83f21a[_0x72f173('0xdde')]['id']]});})[_0x47ec8e('0x11bf')](function(){const _0x4c0723=_0x47ec8e;if(_0x83f21a[_0x4c0723('0xdde')][_0x4c0723('0x1e91')])return _0x3ed8b1[_0x4c0723('0x107a')][_0x4c0723('0xbaa')]({'ListId':_0x83f21a['contact']['ListId']})['$promise'][_0x4c0723('0x11bf')](function(_0x34caeb){const _0x565975=_0x4c0723;return _0x83f21a[_0x565975('0x205c')][_0x565975('0x1394')]=_0x34caeb,_0x3ed8b1['cmList'][_0x565975('0x1281')]({'id':_0x83f21a['contact']['ListId']})[_0x565975('0x1549')];})[_0x4c0723('0x11bf')](function(_0x291193){const _0x39136d=_0x4c0723;_0x83f21a[_0x39136d('0x205c')][_0x39136d('0x8a1')]=_0x291193;return;});return;})['then'](function(){const _0x32b4e8=_0x47ec8e;try{_0x83f21a[_0x32b4e8('0x205c')][_0x32b4e8('0xf22')]=_0x219f54[_0x32b4e8('0x25f5')][_0x32b4e8('0x25f5')]['$parent']['vm'][_0x32b4e8('0x1bbc')],_0x83f21a[_0x32b4e8('0x205c')][_0x32b4e8('0x2410')]=_0x219f54['$parent']['$parent'][_0x32b4e8('0x25f5')]['vm'][_0x32b4e8('0x1265')],_0x83f21a[_0x32b4e8('0x205c')]['companies']=_0x219f54['$parent'][_0x32b4e8('0x25f5')][_0x32b4e8('0x25f5')]['vm'][_0x32b4e8('0x1052')],_0x83f21a[_0x32b4e8('0x205c')]['tags']=_0x219f54['$parent'][_0x32b4e8('0x25f5')]['$parent']['vm'][_0x32b4e8('0x10ba')],_0x83f21a[_0x32b4e8('0x205c')][_0x32b4e8('0x107d')]=0x0,_0x83f21a['contact'][_0x32b4e8('0x1e91')]&&(_0x83f21a[_0x32b4e8('0x205c')][_0x32b4e8('0xf22')][_0x32b4e8('0x19b2')]=_0x36f548()[_0x32b4e8('0xbb4')](_0x83f21a[_0x32b4e8('0x205c')][_0x32b4e8('0xf22')]['rows'],_0x36f548()['filter'](_0x83f21a[_0x32b4e8('0x205c')][_0x32b4e8('0x2410')][_0x32b4e8('0x19b2')],{'id':_0x83f21a[_0x32b4e8('0xdde')][_0x32b4e8('0x1e91')]}),'id'),_0x83f21a['list']=_0x36f548()[_0x32b4e8('0x1ad4')](_0x83f21a[_0x32b4e8('0x205c')][_0x32b4e8('0xf22')][_0x32b4e8('0x19b2')],{'id':_0x83f21a[_0x32b4e8('0xdde')][_0x32b4e8('0x1e91')]}));}catch(_0x454951){}_0x83f21a[_0x32b4e8('0x1945')](),_0x83f21a['getFinals'](),_0x83f21a[_0x32b4e8('0x58d')](),_0x83f21a[_0x32b4e8('0x19ec')](),_0x83f21a[_0x32b4e8('0x464')](),_0x83f21a[_0x32b4e8('0xa3f')](),_0x83f21a[_0x32b4e8('0x1a81')](),_0x83f21a['getOpenchannelAccounts'](),_0x83f21a[_0x32b4e8('0x267d')](),_0x83f21a['getLists']();return;})[_0x47ec8e('0x11bf')](function(){const _0x30618f=_0x47ec8e;return _0x3ed8b1[_0x30618f('0x1b8f')]['getTags']({'id':_0x83f21a[_0x30618f('0xdde')]['id']})[_0x30618f('0x1549')][_0x30618f('0x11bf')](function(_0x387b5c){const _0x50e462=_0x30618f;_0x83f21a[_0x50e462('0x205c')]['Tags']=_0x36f548()[_0x50e462('0x2171')](_0x387b5c['rows'],'id');return;});});}else{_0x83f21a[_0x47ec8e('0x1005')]=!![];if(_0x5242f8[_0x47ec8e('0x107d')])return console['log'](_0x47ec8e('0x107d')),_0x83f21a['addNewContact']();return;}})[_0x52de53('0x11bf')](_0x150d69(_0x83f21a[_0x52de53('0xdde')]));}function _0xe4950(_0x204ea6,_0x1a222e,_0x40601c,_0x4177ec){const _0x10ada6=_0x5abd6a,_0x414186=_0x1a222e[_0x10ada6('0x20d5')]();_0x302939[_0x10ada6('0xb9')]({'controller':'Compose'+_0x1a222e+_0x10ada6('0x236a'),'controllerAs':'vm','templateUrl':_0x2b90df[_0x414186],'parent':angular[_0x10ada6('0x1e73')](_0x4b0f54[_0x10ada6('0x1d2')]),'clickOutsideToClose':![],'locals':{'account':_0x40601c,'message':{'to':_0x414186==_0x10ada6('0x2030')?_0x4177ec:_0x4177ec[_0x10ada6('0xaf8')](',')},'type':_0x10ada6('0x8a6'),'interaction':{'Contact':_0x83f21a['contact']}},'fullscreen':!![]})[_0x10ada6('0x11bf')](function(_0x12e142){const _0x39d189=_0x10ada6;return _0x3ed8b1[_0x414186+_0x39d189('0x1e3c')][_0x39d189('0x2481')]({'id':_0x40601c['id']},_0x12e142)[_0x39d189('0x1549')]['then'](function(_0x5935eb){const _0xd9113e=_0x39d189;if(_0x1a222e===_0xd9113e('0x5f0')){const _0x539bbf=_0x5935eb;if(_0x539bbf&&_0x539bbf['Messages']&&_0x539bbf['Messages'][_0xd9113e('0x1e22')]){if(_0x12e142[_0xd9113e('0x103')]&&_0x12e142['attachments'][_0xd9113e('0x1e22')])for(let _0x46bd14=0x0;_0x46bd14<_0x12e142[_0xd9113e('0x103')]['length'];_0x46bd14+=0x1){_0x3ed8b1['attachment'][_0xd9113e('0x5ab')]({'id':_0x12e142[_0xd9113e('0x103')][_0x46bd14]['id']},{'MailMessageId':_0x36f548()[_0xd9113e('0x6f5')](_0x539bbf['Messages'])['id']});}_0x5de811[_0xd9113e('0x2693')]({'title':_0xd9113e('0x1292'),'msg':'Message\x20has\x20been\x20sent!'});if(_0x539bbf['closed']){_0x539bbf[_0xd9113e('0x107a')]=null;const _0x94546e=!_0x40601c[_0xd9113e('0x123b')],_0x390eaf=_0x83f21a[_0xd9113e('0x21d9')][_0xd9113e('0x20d')]||_0x83f21a['user'][_0xd9113e('0x13c9')]||_0x83f21a[_0xd9113e('0x21d9')][_0xd9113e('0x1f53')]||_0x83f21a[_0xd9113e('0x21d9')]['openchannelPause']||_0x83f21a[_0xd9113e('0x21d9')]['faxPause'];_0x302939['show']({'controller':'DisposeInteractionDialogController','controllerAs':'vm','templateUrl':_0x35815a,'parent':angular[_0xd9113e('0x1e73')](_0x4b0f54[_0xd9113e('0x1d2')]),'onRemoving':function(){const _0x1307fc=_0xd9113e;_0x83f21a['user']&&_0x40601c[_0x1307fc('0x123b')]&&!_0x390eaf&&_0x3ed8b1[_0x1307fc('0x21d9')][_0x1307fc('0xb6f')]({'id':_0x83f21a[_0x1307fc('0x21d9')]['id']})[_0x1307fc('0x1549')][_0x1307fc('0x151d')](function(_0xf7f461){const _0x298c46=_0x1307fc;console[_0x298c46('0x255')](_0xf7f461);});},'clickOutsideToClose':_0x94546e,'escapeToClose':_0x94546e,'locals':{'user':_0x83f21a[_0xd9113e('0x21d9')],'channel':'mail','interaction':_0x539bbf}});}else _0x219f54['$parent']['vm'][_0xd9113e('0x226f')](_0xd9113e('0x2030'),_0x539bbf);}}else _0x5de811[_0xd9113e('0x2693')]({'title':_0xd9113e('0x1292'),'msg':_0xd9113e('0x122d')}),_0x219f54['$parent']['vm'][_0xd9113e('0x226f')](_0x414186,_0x5935eb);})['catch'](function(_0x14b344){const _0x43a31b=_0x39d189;if(_0x14b344[_0x43a31b('0x4e8')]&&_0x14b344[_0x43a31b('0x4e8')][_0x43a31b('0x120f')]&&_0x14b344[_0x43a31b('0x4e8')][_0x43a31b('0x120f')][_0x43a31b('0x1e22')])for(let _0x4310e6=0x0;_0x4310e6<_0x14b344[_0x43a31b('0x4e8')]['errors'][_0x43a31b('0x1e22')];_0x4310e6+=0x1){_0x5de811[_0x43a31b('0x255')]({'title':_0x14b344['data'][_0x43a31b('0x120f')][_0x4310e6][_0x43a31b('0x19fd')],'msg':_0x14b344['data'][_0x43a31b('0x120f')][_0x4310e6]['message']});}else _0x414186==='fax'?_0x5de811['error']({'title':_0x43a31b('0x2500'),'msg':_0x14b344[_0x43a31b('0x4e8')]?JSON[_0x43a31b('0x3e')](_0x14b344[_0x43a31b('0x4e8')]):_0x14b344[_0x43a31b('0x1b86')]||_0x14b344['toString']()}):_0x5de811[_0x43a31b('0x255')]({'title':_0x14b344[_0x43a31b('0xff9')]?_0x43a31b('0x574')+_0x14b344['status']+_0x43a31b('0xb0b')+_0x14b344[_0x43a31b('0x212f')]:_0x1a222e[_0x43a31b('0xa6f')]()+'ACCOUNT:SEND','msg':_0x14b344['data']?JSON[_0x43a31b('0x3e')](_0x14b344[_0x43a31b('0x4e8')][_0x43a31b('0x1b86')]):_0x14b344[_0x43a31b('0x1b86')]||_0x14b344[_0x43a31b('0xaab')]()});});});}function _0x27f9c4(){const _0x21fdad=_0x5abd6a;_0x83f21a[_0x21fdad('0x120f')]=[],_0x3ed8b1['cmContact'][_0x21fdad('0x259')](_0x83f21a[_0x21fdad('0xdde')])[_0x21fdad('0x1549')][_0x21fdad('0x11bf')](function(_0x366e46){const _0x280c8d=_0x21fdad;return _0x83f21a[_0x280c8d('0xdde')]['id']=_0x366e46['id'],_0x83f21a[_0x280c8d('0x1005')]=![],_0x83f21a[_0x280c8d('0x205c')][_0x280c8d('0x134b')]=_0x366e46[_0x280c8d('0x13a0')]||_0x366e46['phone'],_0x83f21a['tab']['contact']=_0x83f21a[_0x280c8d('0xdde')],_0x3ed8b1[_0x280c8d('0x21d9')][_0x280c8d('0xcd9')]({'id':_0xf63642[_0x280c8d('0x2428')]()['id'],'ids':[_0x366e46['id']]});})['then'](function(){const _0x51ad86=_0x21fdad;_0x83f21a[_0x51ad86('0x13d8')][_0x51ad86('0x1769')]=!![],_0x83f21a['customFieldsForm'][_0x51ad86('0x1769')]=!![],_0x5de811['success']({'title':_0x51ad86('0xea2'),'msg':_0x83f21a['contact']['firstName']?_0x83f21a['contact'][_0x51ad86('0x13a0')]+_0x51ad86('0x7fb'):''});})[_0x21fdad('0x11bf')](function(){const _0x48eba4=_0x21fdad;return _0x3ed8b1[_0x48eba4('0x1b8f')]['setTags']({'id':_0x83f21a[_0x48eba4('0xdde')]['id'],'ids':_0x83f21a['tab'][_0x48eba4('0x806')]})[_0x48eba4('0x1549')];})['catch'](function(_0xd88f89){const _0x32e8aa=_0x21fdad;if(_0xd88f89['data']&&_0xd88f89[_0x32e8aa('0x4e8')][_0x32e8aa('0x120f')]&&_0xd88f89[_0x32e8aa('0x4e8')][_0x32e8aa('0x120f')]['length']){_0x83f21a[_0x32e8aa('0x120f')]=_0xd88f89[_0x32e8aa('0x4e8')][_0x32e8aa('0x120f')]||[{'message':_0xd88f89[_0x32e8aa('0xaab')](),'type':_0x32e8aa('0x12ad')}];for(let _0x1f50ca=0x0;_0x1f50ca<_0xd88f89['data']['errors']['length'];_0x1f50ca+=0x1){_0x5de811[_0x32e8aa('0x255')]({'title':_0xd88f89[_0x32e8aa('0x4e8')]['errors'][_0x1f50ca]['type'],'msg':_0xd88f89['data'][_0x32e8aa('0x120f')][_0x1f50ca][_0x32e8aa('0x1b86')]});}}else _0x5de811['error']({'title':_0xd88f89[_0x32e8aa('0xff9')]?_0x32e8aa('0x574')+_0xd88f89[_0x32e8aa('0xff9')]+_0x32e8aa('0xb0b')+_0xd88f89['statusText']:_0x32e8aa('0x12ad'),'msg':_0xd88f89['data']?JSON['stringify'](_0xd88f89[_0x32e8aa('0x4e8')][_0x32e8aa('0x1b86')]):_0xd88f89['toString']()});});}function _0x33a92d(){const _0x24c11a=_0x5abd6a;_0x83f21a['errors']=[],_0x3ed8b1['cmContact']['update']({'id':_0x83f21a[_0x24c11a('0xdde')]['id']},_0x83f21a[_0x24c11a('0xdde')])[_0x24c11a('0x1549')][_0x24c11a('0x11bf')](function(_0x360d21){const _0x24010b=_0x24c11a;return _0x83f21a[_0x24010b('0x205c')][_0x24010b('0x134b')]=_0x360d21['firstName']||_0x360d21[_0x24010b('0x1546')],_0x83f21a['tab'][_0x24010b('0xdde')]=_0x83f21a[_0x24010b('0xdde')],_0x219f54['$parent']['vm'][_0x24010b('0x20e1')](),_0x3ed8b1['user'][_0x24010b('0xcd9')]({'id':_0xf63642[_0x24010b('0x2428')]()['id'],'ids':[_0x360d21['id']]});})[_0x24c11a('0x11bf')](function(){const _0x370fc1=_0x24c11a;return _0x3ed8b1[_0x370fc1('0x1b8f')][_0x370fc1('0x12c4')]({'id':_0x83f21a[_0x370fc1('0xdde')]['id'],'ids':_0x83f21a[_0x370fc1('0x205c')]['Tags']})[_0x370fc1('0x1549')];})[_0x24c11a('0x11bf')](function(){const _0x18adc7=_0x24c11a;_0x83f21a[_0x18adc7('0x13d8')][_0x18adc7('0x1769')]=!![],_0x83f21a[_0x18adc7('0x19f9')]['$pristine']=!![],_0x5de811[_0x18adc7('0x2693')]({'title':_0x18adc7('0x15cb'),'msg':_0x83f21a[_0x18adc7('0xdde')][_0x18adc7('0x1909')]?_0x83f21a[_0x18adc7('0xdde')][_0x18adc7('0x1909')]+'\x20has\x20been\x20updated!':''});})['catch'](function(_0x5be3c4){const _0x3bb159=_0x24c11a;if(_0x5be3c4['data']&&_0x5be3c4[_0x3bb159('0x4e8')][_0x3bb159('0x120f')]&&_0x5be3c4[_0x3bb159('0x4e8')][_0x3bb159('0x120f')][_0x3bb159('0x1e22')]){_0x83f21a[_0x3bb159('0x120f')]=_0x5be3c4['data'][_0x3bb159('0x120f')]||[{'message':_0x5be3c4[_0x3bb159('0xaab')](),'type':_0x3bb159('0x12ad')}];for(let _0x312cd4=0x0;_0x312cd4<_0x5be3c4[_0x3bb159('0x4e8')][_0x3bb159('0x120f')]['length'];_0x312cd4+=0x1){_0x5de811['error']({'title':_0x5be3c4[_0x3bb159('0x4e8')]['errors'][_0x312cd4]['type'],'msg':_0x5be3c4[_0x3bb159('0x4e8')]['errors'][_0x312cd4]['message']});}}else _0x5de811[_0x3bb159('0x255')]({'title':_0x5be3c4[_0x3bb159('0xff9')]?_0x3bb159('0x574')+_0x5be3c4[_0x3bb159('0xff9')]+'\x20-\x20'+_0x5be3c4[_0x3bb159('0x212f')]:'api.contact.save','msg':_0x5be3c4['data']?JSON['stringify'](_0x5be3c4[_0x3bb159('0x4e8')][_0x3bb159('0x1b86')]):_0x5be3c4[_0x3bb159('0xaab')]()});});}_0x219f54[_0x5abd6a('0x2087')](_0x5abd6a('0x9d5'),function(){const _0x6d537e=_0x5abd6a;_0x83f21a[_0x6d537e('0x9d5')]===0x1&&(_0x83f21a[_0x6d537e('0x1945')](),_0x83f21a[_0x6d537e('0x2685')](),_0x83f21a[_0x6d537e('0x58d')]());});let _0x821470=!![],_0x3446a3=0x1;_0x219f54['$watch'](_0x5abd6a('0x1a29'),function(_0x58faad,_0x2bf9e1){const _0x560d97=_0x5abd6a;_0x821470?_0x724300(function(){_0x821470=![];}):(!_0x2bf9e1&&(_0x3446a3=_0x83f21a[_0x560d97('0x1e70')][_0x560d97('0x1c2')]),_0x58faad!==_0x2bf9e1&&(_0x83f21a[_0x560d97('0x1e70')][_0x560d97('0x1c2')]=0x1),!_0x58faad&&(_0x83f21a[_0x560d97('0x1e70')][_0x560d97('0x1c2')]=_0x3446a3),_0x83f21a[_0x560d97('0x1945')]());}),_0x219f54[_0x5abd6a('0x2087')](_0x5abd6a('0xf28'),function(_0x3b2deb,_0x404b15){const _0x22cfeb=_0x5abd6a;_0x821470?_0x724300(function(){_0x821470=![];}):(!_0x404b15&&(_0x3446a3=_0x83f21a['queryFinal']['page']),_0x3b2deb!==_0x404b15&&(_0x83f21a[_0x22cfeb('0x475')][_0x22cfeb('0x1c2')]=0x1),!_0x3b2deb&&(_0x83f21a['queryFinal'][_0x22cfeb('0x1c2')]=_0x3446a3),_0x83f21a[_0x22cfeb('0x2685')]());}),_0x219f54[_0x5abd6a('0x2087')](_0x5abd6a('0xc20'),function(_0x12ffc7,_0x104369){const _0x35bf2f=_0x5abd6a;_0x821470?_0x724300(function(){_0x821470=![];}):(!_0x104369&&(_0x3446a3=_0x83f21a[_0x35bf2f('0x2149')][_0x35bf2f('0x1c2')]),_0x12ffc7!==_0x104369&&(_0x83f21a[_0x35bf2f('0x2149')][_0x35bf2f('0x1c2')]=0x1),!_0x12ffc7&&(_0x83f21a[_0x35bf2f('0x2149')][_0x35bf2f('0x1c2')]=_0x3446a3),_0x83f21a[_0x35bf2f('0x58d')]());});function _0x3648fc(_0x415695){return function(_0x124f6c){_0x83f21a[_0x415695]=_0x124f6c||{'count':0x0,'rows':[]};};}function _0x59fe17(){const _0xb1a94e=_0x5abd6a;_0x83f21a[_0xb1a94e('0xdde')]&&_0x83f21a[_0xb1a94e('0xdde')]['id']&&(_0x83f21a['queryHopper'][_0xb1a94e('0x23f1')]=_0x83f21a[_0xb1a94e('0xdde')]['id'],_0x83f21a[_0xb1a94e('0x1e70')][_0xb1a94e('0x1393')]=(_0x83f21a[_0xb1a94e('0x1e70')][_0xb1a94e('0x1c2')]-0x1)*_0x83f21a[_0xb1a94e('0x1e70')]['limit'],_0x83f21a[_0xb1a94e('0x13f')]=_0x3ed8b1['cmHopper'][_0xb1a94e('0xbaa')](_0x83f21a[_0xb1a94e('0x1e70')],_0x3648fc(_0xb1a94e('0xc8d')))[_0xb1a94e('0x1549')]);}function _0x4aff32(){const _0x48ef0e=_0x5abd6a;_0x83f21a[_0x48ef0e('0xdde')]&&_0x83f21a[_0x48ef0e('0xdde')]['id']&&(_0x83f21a['queryFinal'][_0x48ef0e('0x23f1')]=_0x83f21a[_0x48ef0e('0xdde')]['id'],_0x83f21a[_0x48ef0e('0x475')][_0x48ef0e('0x1393')]=(_0x83f21a['queryFinal']['page']-0x1)*_0x83f21a[_0x48ef0e('0x475')][_0x48ef0e('0xd5c')],_0x83f21a['promise']=_0x3ed8b1[_0x48ef0e('0x1794')][_0x48ef0e('0xbaa')](_0x83f21a[_0x48ef0e('0x475')],_0x3648fc(_0x48ef0e('0x711')))[_0x48ef0e('0x1549')]);}function _0x1fdedb(){const _0x99f5a1=_0x5abd6a;_0x83f21a[_0x99f5a1('0xdde')]&&_0x83f21a['contact']['id']&&(_0x83f21a[_0x99f5a1('0x2149')][_0x99f5a1('0x23f1')]=_0x83f21a[_0x99f5a1('0xdde')]['id'],_0x83f21a['queryHistory']['offset']=(_0x83f21a[_0x99f5a1('0x2149')]['page']-0x1)*_0x83f21a[_0x99f5a1('0x2149')][_0x99f5a1('0xd5c')],_0x83f21a[_0x99f5a1('0x13f')]=_0x3ed8b1[_0x99f5a1('0x246')][_0x99f5a1('0xbaa')](_0x83f21a[_0x99f5a1('0x2149')],_0x3648fc(_0x99f5a1('0x103b')))[_0x99f5a1('0x1549')]);}function _0x59957e(){const _0x2afdb9=_0x5abd6a;_0x3ed8b1[_0x2afdb9('0xf34')][_0x2afdb9('0xbaa')]({'fields':_0x2afdb9('0x495'),'sort':_0x2afdb9('0x1c74'),'nolimit':!![]})[_0x2afdb9('0x1549')][_0x2afdb9('0x11bf')](function(_0x5636d0){_0x83f21a['jscriptyProjects']=_0x5636d0||{'count':0x0,'rows':[]};})['catch'](function(_0x4075fe){const _0x39be69=_0x2afdb9;if(_0x4075fe['data']&&_0x4075fe[_0x39be69('0x4e8')][_0x39be69('0x120f')]&&_0x4075fe[_0x39be69('0x4e8')]['errors'][_0x39be69('0x1e22')]){_0x83f21a[_0x39be69('0x120f')]=_0x4075fe[_0x39be69('0x4e8')][_0x39be69('0x120f')]||[{'message':_0x4075fe[_0x39be69('0xaab')](),'type':_0x39be69('0x22e3')}];for(let _0x54d609=0x0;_0x54d609<_0x4075fe[_0x39be69('0x4e8')]['errors'][_0x39be69('0x1e22')];_0x54d609+=0x1){_0x5de811['error']({'title':_0x4075fe[_0x39be69('0x4e8')][_0x39be69('0x120f')][_0x54d609][_0x39be69('0x19fd')],'msg':_0x4075fe['data'][_0x39be69('0x120f')][_0x54d609]['message']});}}else _0x5de811[_0x39be69('0x255')]({'title':_0x4075fe[_0x39be69('0xff9')]?_0x39be69('0x574')+_0x4075fe['status']+'\x20-\x20'+_0x4075fe[_0x39be69('0x212f')]:'api.jscripty.account','msg':_0x4075fe[_0x39be69('0x4e8')]?JSON['stringify'](_0x4075fe[_0x39be69('0x4e8')][_0x39be69('0x1b86')]):_0x4075fe[_0x39be69('0xaab')]()});});}function _0x1e22ee(){const _0x492d2a=_0x5abd6a;_0x3ed8b1[_0x492d2a('0x21d9')][_0x492d2a('0x19ec')]({'id':_0x83f21a['user']['id'],'nolimit':!![]})[_0x492d2a('0x1549')][_0x492d2a('0x11bf')](function(_0xc1dc62){_0x83f21a['mailAccounts']=_0xc1dc62||{'count':0x0,'rows':[]};})[_0x492d2a('0x151d')](function(_0x5190b2){const _0x1c2361=_0x492d2a;if(_0x5190b2[_0x1c2361('0x4e8')]&&_0x5190b2['data'][_0x1c2361('0x120f')]&&_0x5190b2[_0x1c2361('0x4e8')][_0x1c2361('0x120f')]['length']){_0x83f21a[_0x1c2361('0x120f')]=_0x5190b2[_0x1c2361('0x4e8')]['errors']||[{'message':_0x5190b2[_0x1c2361('0xaab')](),'type':_0x1c2361('0x1e45')}];for(let _0x20c073=0x0;_0x20c073<_0x5190b2[_0x1c2361('0x4e8')][_0x1c2361('0x120f')][_0x1c2361('0x1e22')];_0x20c073+=0x1){_0x5de811['error']({'title':_0x5190b2[_0x1c2361('0x4e8')][_0x1c2361('0x120f')][_0x20c073][_0x1c2361('0x19fd')],'msg':_0x5190b2[_0x1c2361('0x4e8')][_0x1c2361('0x120f')][_0x20c073][_0x1c2361('0x1b86')]});}}else _0x5de811[_0x1c2361('0x255')]({'title':_0x5190b2[_0x1c2361('0xff9')]?_0x1c2361('0x574')+_0x5190b2[_0x1c2361('0xff9')]+_0x1c2361('0xb0b')+_0x5190b2[_0x1c2361('0x212f')]:'api.mail.account','msg':_0x5190b2[_0x1c2361('0x4e8')]?JSON[_0x1c2361('0x3e')](_0x5190b2['data'][_0x1c2361('0x1b86')]):_0x5190b2[_0x1c2361('0xaab')]()});});}function _0x3905a0(){const _0x332633=_0x5abd6a;_0x3ed8b1[_0x332633('0x21d9')][_0x332633('0x464')]({'id':_0x83f21a[_0x332633('0x21d9')]['id'],'nolimit':!![]})[_0x332633('0x1549')][_0x332633('0x11bf')](function(_0x3170a0){const _0x3a7e91=_0x332633;_0x83f21a[_0x3a7e91('0xc6e')]=_0x3170a0||{'count':0x0,'rows':[]};})['catch'](function(_0x512acd){const _0x34debd=_0x332633;if(_0x512acd[_0x34debd('0x4e8')]&&_0x512acd[_0x34debd('0x4e8')][_0x34debd('0x120f')]&&_0x512acd[_0x34debd('0x4e8')][_0x34debd('0x120f')][_0x34debd('0x1e22')]){_0x83f21a[_0x34debd('0x120f')]=_0x512acd[_0x34debd('0x4e8')][_0x34debd('0x120f')]||[{'message':_0x512acd[_0x34debd('0xaab')](),'type':'api.fax.account'}];for(let _0x32b610=0x0;_0x32b610<_0x512acd[_0x34debd('0x4e8')]['errors'][_0x34debd('0x1e22')];_0x32b610+=0x1){_0x5de811[_0x34debd('0x255')]({'title':_0x512acd[_0x34debd('0x4e8')][_0x34debd('0x120f')][_0x32b610]['type'],'msg':_0x512acd[_0x34debd('0x4e8')]['errors'][_0x32b610][_0x34debd('0x1b86')]});}}else _0x5de811[_0x34debd('0x255')]({'title':_0x512acd[_0x34debd('0xff9')]?_0x34debd('0x574')+_0x512acd[_0x34debd('0xff9')]+_0x34debd('0xb0b')+_0x512acd[_0x34debd('0x212f')]:_0x34debd('0x5ba'),'msg':_0x512acd[_0x34debd('0x4e8')]?JSON[_0x34debd('0x3e')](_0x512acd[_0x34debd('0x4e8')][_0x34debd('0x1b86')]):_0x512acd[_0x34debd('0xaab')]()});});}function _0x162aa3(){const _0x492639=_0x5abd6a;_0x3ed8b1[_0x492639('0x21d9')][_0x492639('0xa3f')]({'id':_0x83f21a['user']['id'],'nolimit':!![]})[_0x492639('0x1549')]['then'](function(_0x2e1ebe){const _0x469505=_0x492639;_0x83f21a[_0x469505('0x27d9')]=_0x2e1ebe||{'count':0x0,'rows':[]};})['catch'](function(_0x6a0a10){const _0x4138b7=_0x492639;if(_0x6a0a10['data']&&_0x6a0a10['data'][_0x4138b7('0x120f')]&&_0x6a0a10[_0x4138b7('0x4e8')][_0x4138b7('0x120f')][_0x4138b7('0x1e22')]){_0x83f21a[_0x4138b7('0x120f')]=_0x6a0a10[_0x4138b7('0x4e8')]['errors']||[{'message':_0x6a0a10['toString'](),'type':_0x4138b7('0x74e')}];for(let _0x57dddd=0x0;_0x57dddd<_0x6a0a10[_0x4138b7('0x4e8')]['errors'][_0x4138b7('0x1e22')];_0x57dddd+=0x1){_0x5de811[_0x4138b7('0x255')]({'title':_0x6a0a10['data'][_0x4138b7('0x120f')][_0x57dddd][_0x4138b7('0x19fd')],'msg':_0x6a0a10[_0x4138b7('0x4e8')][_0x4138b7('0x120f')][_0x57dddd]['message']});}}else _0x5de811[_0x4138b7('0x255')]({'title':_0x6a0a10['status']?_0x4138b7('0x574')+_0x6a0a10['status']+'\x20-\x20'+_0x6a0a10['statusText']:_0x4138b7('0x74e'),'msg':_0x6a0a10[_0x4138b7('0x4e8')]?JSON[_0x4138b7('0x3e')](_0x6a0a10[_0x4138b7('0x4e8')][_0x4138b7('0x1b86')]):_0x6a0a10['toString']()});});}function _0x165978(){const _0x1ec69b=_0x5abd6a;_0x3ed8b1[_0x1ec69b('0x21d9')][_0x1ec69b('0x1a81')]({'id':_0x83f21a[_0x1ec69b('0x21d9')]['id'],'nolimit':!![]})['$promise'][_0x1ec69b('0x11bf')](function(_0x440db4){const _0x5ae26e=_0x1ec69b;_0x83f21a[_0x5ae26e('0xeaa')]=_0x440db4||{'count':0x0,'rows':[]};})['catch'](function(_0x4897d2){const _0x420985=_0x1ec69b;if(_0x4897d2[_0x420985('0x4e8')]&&_0x4897d2[_0x420985('0x4e8')][_0x420985('0x120f')]&&_0x4897d2[_0x420985('0x4e8')][_0x420985('0x120f')]['length']){_0x83f21a[_0x420985('0x120f')]=_0x4897d2[_0x420985('0x4e8')][_0x420985('0x120f')]||[{'message':_0x4897d2[_0x420985('0xaab')](),'type':'api.whatsapp.account'}];for(let _0x5e472d=0x0;_0x5e472d<_0x4897d2[_0x420985('0x4e8')][_0x420985('0x120f')][_0x420985('0x1e22')];_0x5e472d+=0x1){_0x5de811['error']({'title':_0x4897d2[_0x420985('0x4e8')][_0x420985('0x120f')][_0x5e472d]['type'],'msg':_0x4897d2[_0x420985('0x4e8')][_0x420985('0x120f')][_0x5e472d]['message']});}}else _0x5de811[_0x420985('0x255')]({'title':_0x4897d2[_0x420985('0xff9')]?_0x420985('0x574')+_0x4897d2[_0x420985('0xff9')]+'\x20-\x20'+_0x4897d2[_0x420985('0x212f')]:'api.whatsapp.account','msg':_0x4897d2['data']?JSON['stringify'](_0x4897d2[_0x420985('0x4e8')][_0x420985('0x1b86')]):_0x4897d2['toString']()});});}function _0x42d201(){const _0xeb4a67=_0x5abd6a;_0x3ed8b1['user'][_0xeb4a67('0x2549')]({'id':_0x83f21a[_0xeb4a67('0x21d9')]['id'],'nolimit':!![]})[_0xeb4a67('0x1549')]['then'](function(_0x59e968){const _0x17c753=_0xeb4a67;_0x83f21a[_0x17c753('0x1518')]=_0x59e968||{'count':0x0,'rows':[]};})['catch'](function(_0x5868a0){const _0x3d6db6=_0xeb4a67;if(_0x5868a0['data']&&_0x5868a0[_0x3d6db6('0x4e8')][_0x3d6db6('0x120f')]&&_0x5868a0['data'][_0x3d6db6('0x120f')][_0x3d6db6('0x1e22')]){_0x83f21a['errors']=_0x5868a0[_0x3d6db6('0x4e8')][_0x3d6db6('0x120f')]||[{'message':_0x5868a0[_0x3d6db6('0xaab')](),'type':_0x3d6db6('0x75c')}];for(let _0x467fe3=0x0;_0x467fe3<_0x5868a0[_0x3d6db6('0x4e8')][_0x3d6db6('0x120f')][_0x3d6db6('0x1e22')];_0x467fe3+=0x1){_0x5de811[_0x3d6db6('0x255')]({'title':_0x5868a0[_0x3d6db6('0x4e8')][_0x3d6db6('0x120f')][_0x467fe3][_0x3d6db6('0x19fd')],'msg':_0x5868a0['data'][_0x3d6db6('0x120f')][_0x467fe3][_0x3d6db6('0x1b86')]});}}else _0x5de811[_0x3d6db6('0x255')]({'title':_0x5868a0['status']?'API:'+_0x5868a0[_0x3d6db6('0xff9')]+_0x3d6db6('0xb0b')+_0x5868a0[_0x3d6db6('0x212f')]:_0x3d6db6('0x75c'),'msg':_0x5868a0[_0x3d6db6('0x4e8')]?JSON['stringify'](_0x5868a0[_0x3d6db6('0x4e8')][_0x3d6db6('0x1b86')]):_0x5868a0[_0x3d6db6('0xaab')]()});});}function _0x48c534(){const _0x229d5d=_0x5abd6a;_0x3ed8b1['user'][_0x229d5d('0x267d')]({'id':_0x83f21a[_0x229d5d('0x21d9')]['id'],'nolimit':!![]})['$promise']['then'](function(_0x1ae1a5){const _0x484cc4=_0x229d5d;_0x83f21a[_0x484cc4('0x215d')]=_0x1ae1a5||{'count':0x0,'rows':[]};})[_0x229d5d('0x151d')](function(_0x18b3cf){const _0x380168=_0x229d5d;if(_0x18b3cf[_0x380168('0x4e8')]&&_0x18b3cf[_0x380168('0x4e8')][_0x380168('0x120f')]&&_0x18b3cf[_0x380168('0x4e8')][_0x380168('0x120f')][_0x380168('0x1e22')]){_0x83f21a[_0x380168('0x120f')]=_0x18b3cf['data'][_0x380168('0x120f')]||[{'message':_0x18b3cf[_0x380168('0xaab')](),'type':_0x380168('0x6f7')}];for(let _0xb478d8=0x0;_0xb478d8<_0x18b3cf[_0x380168('0x4e8')]['errors'][_0x380168('0x1e22')];_0xb478d8+=0x1){_0x5de811[_0x380168('0x255')]({'title':_0x18b3cf[_0x380168('0x4e8')]['errors'][_0xb478d8]['type'],'msg':_0x18b3cf['data'][_0x380168('0x120f')][_0xb478d8]['message']});}}else _0x5de811[_0x380168('0x255')]({'title':_0x18b3cf[_0x380168('0xff9')]?_0x380168('0x574')+_0x18b3cf[_0x380168('0xff9')]+'\x20-\x20'+_0x18b3cf[_0x380168('0x212f')]:'api.chatAccounts.account','msg':_0x18b3cf[_0x380168('0x4e8')]?JSON['stringify'](_0x18b3cf[_0x380168('0x4e8')][_0x380168('0x1b86')]):_0x18b3cf[_0x380168('0xaab')]()});});}function _0x39f50(){const _0x3997a7=_0x5abd6a;_0x3ed8b1[_0x3997a7('0x21d9')]['getLists']({'id':_0x83f21a['user']['id'],'nolimit':!![]})['$promise'][_0x3997a7('0x11bf')](function(_0x43f084){_0x83f21a['lists']=_0x43f084||{'count':0x0,'rows':[]};})[_0x3997a7('0x151d')](function(_0x2b6f8f){const _0x25f189=_0x3997a7;if(_0x2b6f8f[_0x25f189('0x4e8')]&&_0x2b6f8f[_0x25f189('0x4e8')][_0x25f189('0x120f')]&&_0x2b6f8f['data'][_0x25f189('0x120f')][_0x25f189('0x1e22')]){_0x83f21a[_0x25f189('0x120f')]=_0x2b6f8f[_0x25f189('0x4e8')][_0x25f189('0x120f')]||[{'message':_0x2b6f8f[_0x25f189('0xaab')](),'type':'api.cm.lists'}];for(let _0x344b0b=0x0;_0x344b0b<_0x2b6f8f[_0x25f189('0x4e8')][_0x25f189('0x120f')]['length'];_0x344b0b+=0x1){_0x5de811[_0x25f189('0x255')]({'title':_0x2b6f8f[_0x25f189('0x4e8')][_0x25f189('0x120f')][_0x344b0b][_0x25f189('0x19fd')],'msg':_0x2b6f8f[_0x25f189('0x4e8')][_0x25f189('0x120f')][_0x344b0b][_0x25f189('0x1b86')]});}}else _0x5de811[_0x25f189('0x255')]({'title':_0x2b6f8f[_0x25f189('0xff9')]?_0x25f189('0x574')+_0x2b6f8f[_0x25f189('0xff9')]+'\x20-\x20'+_0x2b6f8f[_0x25f189('0x212f')]:'api.cm.lists','msg':_0x2b6f8f[_0x25f189('0x4e8')]?JSON['stringify'](_0x2b6f8f['data']['message']):_0x2b6f8f['toString']()});});}function _0x2ad7d7(_0x2cb217){const _0x4786a5=_0x5abd6a;_0x302939[_0x4786a5('0xb9')]({'controller':_0x4786a5('0xfd8'),'controllerAs':'vm','templateUrl':_0x492638,'parent':angular['element'](_0x4b0f54[_0x4786a5('0x1d2')]),'targetEvent':_0x2cb217,'clickOutsideToClose':!![],'resolve':{'contact':[_0x4786a5('0x218e'),function(_0x159995){const _0x47dd34=_0x4786a5;return _0x159995[_0x47dd34('0xa28')](_0x47dd34('0x1923'),{'id':_0x83f21a['contact']['id']});}],'lists':[_0x4786a5('0x218e'),function(_0xf72a21){const _0x2cc6ee=_0x4786a5;return _0xf72a21[_0x2cc6ee('0xa28')](_0x2cc6ee('0x4b4'),{'id':_0xf63642['getCurrentUser']()['id'],'fields':_0x2cc6ee('0x721')});}]},'locals':{'contacts':[]}});}function _0x1bfbff(_0x39f376){const _0x1ba9ba=_0x5abd6a;_0x302939[_0x1ba9ba('0xb9')]({'controller':_0x1ba9ba('0x260f'),'controllerAs':'vm','templateUrl':_0x33f96f,'parent':angular['element'](_0x4b0f54[_0x1ba9ba('0x1d2')]),'targetEvent':_0x39f376,'clickOutsideToClose':!![],'resolve':{'contact':['apiResolver',function(_0x10cc78){const _0x155697=_0x1ba9ba;return _0x10cc78['resolve'](_0x155697('0x1923'),{'id':_0x83f21a[_0x155697('0xdde')]['id']});}],'lists':[_0x1ba9ba('0x218e'),function(_0x1562f7){const _0x45ca32=_0x1ba9ba;return _0x1562f7[_0x45ca32('0xa28')](_0x45ca32('0x4b4'),{'id':_0xf63642[_0x45ca32('0x2428')]()['id'],'fields':'id,name'});}]},'locals':{'contacts':[]}})[_0x1ba9ba('0x11bf')](function(_0x5daa7b){const _0x5db343=_0x1ba9ba;if(_0x5daa7b){for(const _0x4c7b2e in _0x219f54[_0x5db343('0x25f5')][_0x5db343('0x25f5')][_0x5db343('0x25f5')]['vm'][_0x5db343('0x217e')]){if(typeof _0x219f54['$parent'][_0x5db343('0x25f5')][_0x5db343('0x25f5')]['vm'][_0x5db343('0x217e')][_0x4c7b2e]!==_0x5db343('0x13e9')){const _0x4ec93f=_0x219f54[_0x5db343('0x25f5')][_0x5db343('0x25f5')][_0x5db343('0x25f5')]['vm']['tabs'][_0x4c7b2e];_0x4ec93f&&_0x4ec93f[_0x5db343('0xdde')]&&(_0x5daa7b[_0x5db343('0x18a0')]&&_0x5daa7b[_0x5db343('0x18a0')]['id']&&_0x5daa7b[_0x5db343('0x18a0')]['id']===_0x4ec93f[_0x5db343('0xdde')]['id']&&_0x219f54[_0x5db343('0x25f5')][_0x5db343('0x25f5')][_0x5db343('0x25f5')]['vm'][_0x5db343('0xf4b')](_0x4ec93f),_0x5daa7b['to']&&_0x5daa7b['to']['id']&&_0x5daa7b['to']['id']===_0x4ec93f[_0x5db343('0xdde')]['id']&&_0x219f54[_0x5db343('0x25f5')][_0x5db343('0x25f5')]['$parent']['vm'][_0x5db343('0xf4b')](_0x4ec93f));}}_0x5daa7b['new']&&_0x219f54[_0x5db343('0x25f5')][_0x5db343('0x25f5')][_0x5db343('0x25f5')]['vm'][_0x5db343('0x20b3')](_0x5daa7b[_0x5db343('0x8a6')]);}});}function _0x2beb73(_0x2e11e8,_0x22fd1f){const _0x8eca43=_0x5abd6a;if(_0x83f21a['newContact']){_0x5de811['error']({'title':'ATTENTION','msg':_0x8eca43('0x19a6')});return;}_0x302939[_0x8eca43('0xb9')]({'controller':_0x8eca43('0x107c'),'controllerAs':'vm','templateUrl':_0x4e4d72,'parent':angular[_0x8eca43('0x1e73')](_0x4b0f54[_0x8eca43('0x1d2')]),'targetEvent':_0x22fd1f,'clickOutsideToClose':!_0x22fd1f[_0x8eca43('0x123b')],'escapeToClose':!_0x22fd1f[_0x8eca43('0x123b')],'resolve':{'globalDispositions':[_0x8eca43('0x218e'),function(_0x45a92c){const _0x194531=_0x8eca43;return _0x45a92c[_0x194531('0xa28')](_0x194531('0x24a5'),{'MailAccountId':_0x194531('0xb5f'),'FaxAccountId':'null','SmsAccountId':_0x194531('0xb5f'),'WhatsappAccountId':_0x194531('0xb5f'),'OpenchannelAccountId':'null','ChatWebsiteId':'null','ListId':'null'});}]},'onRemoving':function(){const _0x3cb7d9=_0x8eca43;_0x83f21a[_0x3cb7d9('0x21d9')]&&_0x22fd1f[_0x3cb7d9('0x123b')]&&_0x3ed8b1['user']['unpause']({'id':_0x83f21a[_0x3cb7d9('0x21d9')]['id']})[_0x3cb7d9('0x1549')][_0x3cb7d9('0x151d')](function(_0x1af446){const _0x41c90c=_0x3cb7d9;console[_0x41c90c('0x255')](_0x1af446);});},'locals':{'dispositions':_0x83f21a[_0x8eca43('0x205c')][_0x8eca43('0x1394')],'contact':_0x83f21a['contact'],'call':_0x22fd1f}})[_0x8eca43('0x11bf')](function(_0x520bb0){const _0x4a9314=_0x8eca43;if(_0x520bb0){if(_0x520bb0==='BLACKLIST')_0x5de811[_0x4a9314('0x2693')]({'title':_0x1cef4a['instant'](_0x4a9314('0x4a9')),'msg':_0x1cef4a[_0x4a9314('0x10c2')]('DASHBOARDS.CALL_DISPOSED')+'\x20'+_0x520bb0});else{if(_0x520bb0===_0x4a9314('0x281a')||_0x520bb0===_0x4a9314('0x223c')){}else _0x5de811[_0x4a9314('0x2693')]({'title':_0x1cef4a[_0x4a9314('0x10c2')](_0x4a9314('0x4a9')),'msg':_0x1cef4a[_0x4a9314('0x10c2')]('DASHBOARDS.CALL_SAVED')});}}for(const _0x3c3113 in _0x219f54[_0x4a9314('0x25f5')][_0x4a9314('0x25f5')][_0x4a9314('0x25f5')]['vm'][_0x4a9314('0x217e')]){if(typeof _0x219f54['$parent'][_0x4a9314('0x25f5')]['$parent']['vm'][_0x4a9314('0x217e')][_0x3c3113]!==_0x4a9314('0x13e9')){const _0x119ea9=_0x219f54[_0x4a9314('0x25f5')]['$parent'][_0x4a9314('0x25f5')]['vm']['tabs'][_0x3c3113];_0x36f548()[_0x4a9314('0x14a5')](_0x119ea9[_0x4a9314('0xb7e')],function(_0x557077){const _0x369156=_0x4a9314;return _0x557077[_0x369156('0x938')]===_0x22fd1f['uniqueid'];});}}_0x219f54[_0x4a9314('0x25f5')]['vm'][_0x4a9314('0x20e1')]();});}function _0x422356(_0x224867){const _0x2154a0=_0x5abd6a;return _0x3ed8b1[_0x2154a0('0xbef')][_0x2154a0('0x1281')]({'id':_0x224867})[_0x2154a0('0x1549')]['then'](function(_0x557040){const _0x12451d=_0x2154a0;_0x83f21a[_0x12451d('0x205c')][_0x12451d('0x8a1')]=_0x557040;})[_0x2154a0('0x151d')](function(_0x51bd29){const _0x53cde0=_0x2154a0;_0x5de811['error']({'title':_0x51bd29[_0x53cde0('0xff9')]?'API:'+_0x51bd29[_0x53cde0('0xff9')]+_0x53cde0('0xb0b')+_0x51bd29[_0x53cde0('0x212f')]:_0x53cde0('0x1733'),'msg':_0x51bd29['data']?JSON[_0x53cde0('0x3e')](_0x51bd29[_0x53cde0('0x4e8')]):_0x51bd29[_0x53cde0('0xaab')]()});});}function _0x3090f2(_0x4ce352){return _0x4ce352===null?undefined:new Date(_0x4ce352);}function _0x3168c6(_0x482ec1){const _0x3bcd48=_0x5abd6a;try{_0x482ec1[_0x3bcd48('0x1b56')]=_0x1e5096()[_0x3bcd48('0x25a5')](_0x482ec1[_0x3bcd48('0x1b56')],{'contact':_0x83f21a[_0x3bcd48('0xdde')],'user':_0x83f21a['user']});}catch(_0x4dc3ea){console[_0x3bcd48('0x255')](_0x4dc3ea);}try{_0x219f54['$parent'][_0x3bcd48('0x25f5')][_0x3bcd48('0x25f5')]['vm']['addTab']({'type':_0x3bcd48('0x163c'),'title':_0x482ec1['name'],'icon':'icon-script','color':_0x3bcd48('0x2359'),'project':_0x482ec1,'contact':_0x83f21a['contact']});}catch(_0x5c1203){_0x5de811[_0x3bcd48('0x255')]({'title':'ERROR\x20OPENING\x20JSCRIPTY\x20PROJECT','msg':_0x3bcd48('0x1305')+JSON['stringify'](_0x5c1203)});}}function _0x2e4a94(_0x2a52be){const _0x11b41a=_0x5abd6a;return _0xf63642[_0x11b41a('0x1709')](_0x2a52be);}_0x219f54['$on']('$destroy',function(){});}const _0x3b4392=_0x1be901;_0x54d71f[_0x21d0f5('0x1e9a')]=['$mdDialog','$q',_0x21d0f5('0x142d'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1394'),_0x21d0f5('0x1b5'),_0x21d0f5('0x7c1'),_0x21d0f5('0xdde'),_0x21d0f5('0x1150'),_0x21d0f5('0xb6b')];function _0x54d71f(_0x1ae01f,_0x4ac9d3,_0x34b688,_0x16acb7,_0x115c41,_0x3104a2,_0x1d082d,_0x320c26,_0x7fe12e,_0x200e06){const _0x394ee2=_0x21d0f5,_0x394cf7=this;_0x394cf7[_0x394ee2('0x301')]=![],_0x394cf7[_0x394ee2('0x173e')]=![],_0x394cf7[_0x394ee2('0xf08')]=undefined,_0x394cf7['queueCampaigns']={'count':0x0,'rows':[]},_0x394cf7[_0x394ee2('0x1394')]=_0x115c41[_0x394ee2('0x19b2')],_0x394cf7[_0x394ee2('0x1b5')]=_0x3104a2[_0x394ee2('0x19b2')],_0x394cf7['contact']=_0x320c26,_0x394cf7[_0x394ee2('0x7c1')]=_0x1d082d,_0x394cf7[_0x394ee2('0x1ce3')]=_0x394cf7[_0x394ee2('0x7c1')][_0x394ee2('0x1ce3')]||undefined,_0x394cf7[_0x394ee2('0x22a6')]=![],_0x394cf7['hasBlackLists']=![],_0x394cf7[_0x394ee2('0x244f')]={'minDate':new Date(),'dateTime':new Date()};_0x394cf7[_0x394ee2('0x7c1')]&&_0x394cf7['call'][_0x394ee2('0x1700')]&&_0x394cf7[_0x394ee2('0x7c1')][_0x394ee2('0x1700')]['xmd-voicequeueid']?(_0x394cf7[_0x394ee2('0x22a6')]=!![],_0x16acb7[_0x394ee2('0x1043')][_0x394ee2('0x228c')]({'id':_0x394cf7[_0x394ee2('0x7c1')][_0x394ee2('0x1700')][_0x394ee2('0x1f77')]})[_0x394ee2('0x1549')][_0x394ee2('0x11bf')](function(_0x52c892){const _0x36c938=_0x394ee2;_0x52c892&&_0x52c892[_0x36c938('0x19b2')]&&_0x52c892['rows'][_0x36c938('0x1e22')]>0x0&&(_0x394cf7[_0x36c938('0x27db')]=!![]);})[_0x394ee2('0x151d')](function(_0x429a1c){const _0x42fd6e=_0x394ee2;_0x34b688[_0x42fd6e('0x255')]({'title':_0x429a1c['status']?_0x42fd6e('0x574')+_0x429a1c[_0x42fd6e('0xff9')]+'\x20-\x20'+_0x429a1c[_0x42fd6e('0x212f')]:'api.voiceQueue.getBlackLists','msg':_0x429a1c[_0x42fd6e('0x4e8')]?JSON['stringify'](_0x429a1c[_0x42fd6e('0x4e8')]):_0x429a1c[_0x42fd6e('0xaab')]()});})):_0x16acb7[_0x394ee2('0x21d9')][_0x394ee2('0x373')]({'id':_0x7fe12e['getCurrentUser']()['id'],'fields':_0x394ee2('0x1e28'),'channel':'voice','type':'outbound','nolimit':!![]})['$promise']['then'](function(_0x207f1a){const _0x101d46=_0x394ee2;_0x394cf7[_0x101d46('0x8bb')]=_0x207f1a||{'count':0x0,'rows':[]};})[_0x394ee2('0x151d')](function(_0x516340){const _0x145800=_0x394ee2;console[_0x145800('0x255')](_0x516340);});_0x394cf7[_0x394ee2('0x5cd')]=_0x3fdcff,_0x394cf7[_0x394ee2('0x9e7')]=_0x2d9e28,_0x394cf7['saveDisposition']=_0x35d335,_0x394cf7[_0x394ee2('0xc4e')]=_0x66c7fd,_0x394cf7['saveReschedule']=_0x529eb5;function _0x3fdcff(_0x5df445){const _0x404c25=_0x394ee2,_0x334909=_0x36f548()['unionBy'](_0x394cf7[_0x404c25('0x1394')],_0x394cf7[_0x404c25('0x1b5')],'id');switch(_0x5df445){case _0x404c25('0x848'):_0x394cf7[_0x404c25('0x210a')]=_0x394cf7['firstLevelDisposition'],_0x394cf7[_0x404c25('0x19cc')]=_0x36f548()[_0x404c25('0x1cb3')](_0x334909,[_0x404c25('0x2ac'),_0x394cf7['firstLevelDisposition']['id']]),_0x394cf7[_0x404c25('0x635')]=undefined,_0x394cf7['thirdLevelDisposition']=undefined,_0x394cf7[_0x404c25('0x905')]=![];break;case _0x404c25('0x19b9'):_0x394cf7[_0x404c25('0x210a')]=_0x394cf7['secondLevelDisposition'],_0x394cf7['anyThirdLevelDisposition']=_0x36f548()[_0x404c25('0x1cb3')](_0x334909,[_0x404c25('0x2ac'),_0x394cf7[_0x404c25('0x635')]['id']]);break;case'third':_0x394cf7[_0x404c25('0x210a')]=_0x394cf7[_0x404c25('0xa5a')];break;}}function _0x2d9e28(_0x19f946){const _0xf42e74=_0x394ee2;if(_0x19f946==='second')_0x394cf7[_0xf42e74('0x635')]=undefined,_0x394cf7[_0xf42e74('0xa5a')]=undefined,_0x394cf7[_0xf42e74('0x210a')]=_0x394cf7['firstLevelDisposition'];else _0x19f946==='third'&&(_0x394cf7[_0xf42e74('0xa5a')]=undefined,_0x394cf7[_0xf42e74('0x210a')]=_0x394cf7[_0xf42e74('0x635')]);}function _0x581bce(){const _0x5d0082=_0x394ee2,_0x11b890=_0x394cf7[_0x5d0082('0x210a')]?_0x394cf7['selectedDisposition']['name'][_0x5d0082('0x20d5')]():undefined;return{'id':_0x394cf7[_0x5d0082('0x7c1')]['uniqueid'],'disposition':_0x394cf7[_0x5d0082('0xab0')]?_0x394cf7[_0x5d0082('0xab0')][_0x5d0082('0x1909')]:null,'secondDisposition':_0x394cf7[_0x5d0082('0x635')]?_0x394cf7[_0x5d0082('0x635')][_0x5d0082('0x1909')]:null,'thirdDisposition':_0x394cf7[_0x5d0082('0xa5a')]?_0x394cf7[_0x5d0082('0xa5a')][_0x5d0082('0x1909')]:null,'dispositionat':_0x57d4d1()(),'amd':_0x11b890===_0x5d0082('0x826'),'fax':_0x11b890===_0x5d0082('0x2104'),'blacklist':_0x11b890===_0x5d0082('0x26d7'),'recallme':_0x11b890===_0x5d0082('0x173e'),'UserId':_0x11b890===_0x5d0082('0x173e')?_0x7fe12e[_0x5d0082('0x2428')]()['id']:null,'OwnerId':_0x7fe12e[_0x5d0082('0x2428')]()['id']};}function _0xe4786(){const _0x5c9392=_0x394ee2;return _0x16acb7[_0x5c9392('0xdd8')]['update']({'id':_0x394cf7[_0x5c9392('0x7c1')][_0x5c9392('0x938')],'userDisposition':_0x394cf7[_0x5c9392('0xab0')]?_0x394cf7[_0x5c9392('0xab0')]['name']:null,'userSecondDisposition':_0x394cf7[_0x5c9392('0x635')]?_0x394cf7[_0x5c9392('0x635')][_0x5c9392('0x1909')]:null,'userThirdDisposition':_0x394cf7['thirdLevelDisposition']?_0x394cf7['thirdLevelDisposition'][_0x5c9392('0x1909')]:null,'note':_0x394cf7['note'],'UserId':_0x7fe12e[_0x5c9392('0x2428')]()['id'],'ContactId':_0x394cf7[_0x5c9392('0xdde')]['id']})[_0x5c9392('0x1549')][_0x5c9392('0x151d')](function(_0x451855){const _0x530ed0=_0x5c9392;_0x34b688[_0x530ed0('0x255')]({'title':_0x451855[_0x530ed0('0xff9')]?_0x530ed0('0x574')+_0x451855[_0x530ed0('0xff9')]+'\x20-\x20'+_0x451855[_0x530ed0('0x212f')]:'SYSTEM:UPDATEVOICECALLREPORT','msg':_0x451855[_0x530ed0('0x4e8')]?JSON[_0x530ed0('0x3e')](_0x451855[_0x530ed0('0x4e8')]):_0x451855[_0x530ed0('0xaab')]()});});}function _0x2ae34a(){const _0x54b0a2=_0x394ee2;return _0x16acb7['voiceRecording']['get']({'uniqueid':_0x394cf7[_0x54b0a2('0x7c1')][_0x54b0a2('0x938')]})[_0x54b0a2('0x1549')][_0x54b0a2('0x11bf')](function(_0x15451f){const _0x1426f4=_0x54b0a2;if(_0x15451f)for(let _0x3355d8=0x0;_0x3355d8<_0x15451f['rows']['length'];_0x3355d8+=0x1){_0x16acb7[_0x1426f4('0x262')]['update']({'id':_0x15451f[_0x1426f4('0x19b2')][_0x3355d8]['id'],'userDisposition':_0x394cf7[_0x1426f4('0xab0')]?_0x394cf7['firstLevelDisposition'][_0x1426f4('0x1909')]:null,'userSecondDisposition':_0x394cf7[_0x1426f4('0x635')]?_0x394cf7['secondLevelDisposition']['name']:null,'userThirdDisposition':_0x394cf7['thirdLevelDisposition']?_0x394cf7['thirdLevelDisposition'][_0x1426f4('0x1909')]:null})[_0x1426f4('0x1549')][_0x1426f4('0x151d')](function(_0x1f9cc3){const _0x5e2f0e=_0x1426f4;_0x34b688[_0x5e2f0e('0x255')]({'title':_0x1f9cc3[_0x5e2f0e('0xff9')]?'API:'+_0x1f9cc3[_0x5e2f0e('0xff9')]+_0x5e2f0e('0xb0b')+_0x1f9cc3[_0x5e2f0e('0x212f')]:_0x5e2f0e('0x246f'),'msg':_0x1f9cc3[_0x5e2f0e('0x4e8')]?JSON[_0x5e2f0e('0x3e')](_0x1f9cc3['data']):_0x1f9cc3['toString']()});});}})['catch'](function(_0x5987c6){const _0x4bb55b=_0x54b0a2;_0x34b688['error']({'title':_0x5987c6['status']?_0x4bb55b('0x574')+_0x5987c6[_0x4bb55b('0xff9')]+'\x20-\x20'+_0x5987c6[_0x4bb55b('0x212f')]:'SYSTEM:UPDATEVOICERECORDING','msg':_0x5987c6[_0x4bb55b('0x4e8')]?JSON[_0x4bb55b('0x3e')](_0x5987c6[_0x4bb55b('0x4e8')]):_0x5987c6['toString']()});});}function _0x4dfc84(){const _0x588b39=_0x394ee2;return _0x16acb7[_0x588b39('0x1794')]['update'](_0x581bce())[_0x588b39('0x1549')][_0x588b39('0x151d')](function(_0x29015a){const _0x1d7cc6=_0x588b39;_0x34b688['error']({'title':_0x29015a['status']?'API:'+_0x29015a['status']+'\x20-\x20'+_0x29015a[_0x1d7cc6('0x212f')]:_0x1d7cc6('0xbd9'),'msg':_0x29015a[_0x1d7cc6('0x4e8')]?JSON[_0x1d7cc6('0x3e')](_0x29015a['data']):_0x29015a[_0x1d7cc6('0xaab')]()});});}function _0x126048(){const _0x10c614=_0x394ee2;return _0x16acb7[_0x10c614('0x246')]['update'](_0x581bce())['$promise'][_0x10c614('0x151d')](function(_0x151dae){const _0x13bab9=_0x10c614;_0x34b688[_0x13bab9('0x255')]({'title':_0x151dae['status']?_0x13bab9('0x574')+_0x151dae[_0x13bab9('0xff9')]+_0x13bab9('0xb0b')+_0x151dae[_0x13bab9('0x212f')]:_0x13bab9('0x24e8'),'msg':_0x151dae[_0x13bab9('0x4e8')]?JSON[_0x13bab9('0x3e')](_0x151dae[_0x13bab9('0x4e8')]):_0x151dae[_0x13bab9('0xaab')]()});});}function _0x529143(_0x9f6464){const _0x548332=_0x394ee2;if(_0x9f6464)return _0x16acb7[_0x548332('0x1043')][_0x548332('0x228c')]({'id':_0x9f6464,'type':_0x548332('0x25b6'),'fields':'id'})['$promise']['then'](function(_0x4884fb){const _0x5aec7e=_0x548332,_0x42485d=[];if(_0x4884fb&&_0x4884fb[_0x5aec7e('0x27d2')]>0x0){for(let _0x2ccc76=0x0;_0x2ccc76<_0x4884fb['rows']['length'];_0x2ccc76+=0x1){const _0x32bca0=angular[_0x5aec7e('0x6fb')](_0x394cf7[_0x5aec7e('0xdde')]);delete _0x32bca0['id'],_0x32bca0['ListId']=_0x4884fb[_0x5aec7e('0x19b2')][_0x2ccc76]['id'],_0x42485d[_0x5aec7e('0x105d')](_0x16acb7['cmContact'][_0x5aec7e('0x259')](_0x32bca0)['$promise']);}return _0x4ac9d3[_0x5aec7e('0x7c')](_0x42485d);}_0x34b688[_0x5aec7e('0x2693')]({'title':_0x200e06[_0x5aec7e('0x10c2')](_0x5aec7e('0x4a9')),'msg':_0x200e06['instant']('DASHBOARDS.NOTAVAILABLE')+'\x20'+_0x394cf7[_0x5aec7e('0x210a')]}),_0x394cf7[_0x5aec7e('0x210a')]=undefined;return;})[_0x548332('0x11bf')](function(_0x4faa7b){const _0x44c927=_0x548332;_0x4faa7b&&_0x1ae01f[_0x44c927('0x237e')](_0x394cf7[_0x44c927('0x210a')]?_0x394cf7[_0x44c927('0x210a')][_0x44c927('0x1909')]['toUpperCase']():'');})[_0x548332('0x151d')](function(_0x1a816e){const _0x4fd0b3=_0x548332;_0x34b688['error']({'title':_0x1a816e[_0x4fd0b3('0xff9')]?'API:'+_0x1a816e[_0x4fd0b3('0xff9')]+_0x4fd0b3('0xb0b')+_0x1a816e[_0x4fd0b3('0x212f')]:_0x4fd0b3('0x914'),'msg':_0x1a816e['data']?JSON[_0x4fd0b3('0x3e')](_0x1a816e[_0x4fd0b3('0x4e8')]):_0x1a816e[_0x4fd0b3('0xaab')]()}),_0x1ae01f[_0x4fd0b3('0x237e')](_0x394cf7[_0x4fd0b3('0x210a')]?_0x394cf7[_0x4fd0b3('0x210a')][_0x4fd0b3('0x1909')]['toUpperCase']():'');});}function _0x35d335(_0x356fdd){const _0x105022=_0x394ee2;_0x394cf7[_0x105022('0x210a')]=_0x36f548()[_0x105022('0x1a80')](_0x356fdd)?_0x394cf7[_0x105022('0x210a')]:{'name':_0x356fdd};_0x356fdd&&(_0x394cf7[_0x105022('0xab0')]=_0x394cf7[_0x105022('0x210a')]);_0x394cf7[_0x105022('0x7c1')][_0x105022('0x1ce3')]=_0x394cf7[_0x105022('0x1ce3')],_0xe4786(),_0x2ae34a();_0x394cf7[_0x105022('0x22a6')]&&(_0x4dfc84(),_0x126048());if(!_0x36f548()[_0x105022('0x1a80')](_0x394cf7[_0x105022('0x210a')]))switch(_0x394cf7['selectedDisposition'][_0x105022('0x1909')][_0x105022('0x20d5')]()){case _0x105022('0x26d7'):_0x394cf7[_0x105022('0x7c1')]&&_0x394cf7[_0x105022('0x7c1')][_0x105022('0x1700')]&&_0x394cf7[_0x105022('0x7c1')][_0x105022('0x1700')][_0x105022('0x1f77')]&&_0x529143(_0x394cf7[_0x105022('0x7c1')]['variables'][_0x105022('0x1f77')]);break;case _0x105022('0x1532'):_0x394cf7[_0x105022('0x301')]=!![],_0x394cf7[_0x105022('0x173e')]=![];break;case _0x105022('0x173e'):_0x394cf7[_0x105022('0x301')]=!![],_0x394cf7[_0x105022('0x173e')]=!![];break;default:_0x1ae01f['hide'](_0x394cf7[_0x105022('0x210a')]?_0x394cf7[_0x105022('0x210a')]['name'][_0x105022('0xa6f')]():'');}else _0x1ae01f[_0x105022('0x237e')](_0x394cf7['selectedDisposition']?_0x394cf7['selectedDisposition'][_0x105022('0x1909')][_0x105022('0xa6f')]():'');}function _0x66c7fd(){const _0x4fa1d6=_0x394ee2;_0x1ae01f[_0x4fa1d6('0x26c9')]();}function _0x529eb5(){const _0x16c42c=_0x394ee2;return _0x394cf7['disable']=!![],_0x16acb7['cmHopper'][_0x16c42c('0x259')]({'phone':_0x394cf7[_0x16c42c('0xdde')][_0x16c42c('0x1546')],'UserId':_0x394cf7['recallme']?_0x7fe12e[_0x16c42c('0x2428')]()['id']:null,'ContactId':_0x394cf7[_0x16c42c('0xdde')]['id'],'ListId':_0x394cf7[_0x16c42c('0xdde')][_0x16c42c('0x1e91')],'VoiceQueueId':_0x394cf7[_0x16c42c('0x22a6')]?Number(_0x394cf7[_0x16c42c('0x7c1')][_0x16c42c('0x1f77')]):_0x394cf7['queueCampaign']?_0x394cf7['queueCampaign']['id']:null,'scheduledat':_0x57d4d1()(_0x394cf7[_0x16c42c('0x244f')]['dateTime'])['format']('YYYY-MM-DD\x20HH:mm:ss'),'priority':0x3,'recallme':_0x394cf7[_0x16c42c('0x173e')],'OwnerId':_0x7fe12e[_0x16c42c('0x2428')]()['id']})[_0x16c42c('0x1549')][_0x16c42c('0x11bf')](function(){const _0x3d24b3=_0x16c42c;_0x394cf7['dialerCall']&&_0x16acb7['cmHopperFinal']['update']({'id':_0x394cf7[_0x3d24b3('0x7c1')][_0x3d24b3('0x938')],'rescheduled':!![],'rescheduledat':_0x57d4d1()(_0x394cf7[_0x3d24b3('0x244f')][_0x3d24b3('0x999')])[_0x3d24b3('0x1826')](_0x3d24b3('0xfae')),'recallme':_0x394cf7[_0x3d24b3('0x173e')]})['$promise'][_0x3d24b3('0x151d')](function(_0x1053d8){console['log'](_0x1053d8);});})[_0x16c42c('0x11bf')](function(){const _0x3c60e6=_0x16c42c;_0x34b688[_0x3c60e6('0x2693')]({'title':_0x200e06[_0x3c60e6('0x10c2')](_0x3c60e6('0x4a9')),'msg':_0x200e06['instant'](_0x3c60e6('0xafc'))+'\x20'+(_0x394cf7[_0x3c60e6('0x173e')]?_0x200e06['instant'](_0x3c60e6('0x154')):_0x200e06[_0x3c60e6('0x10c2')](_0x3c60e6('0x1ecc')))});})['catch'](function(){const _0x5d361b=_0x16c42c;_0x1ae01f[_0x5d361b('0x237e')](_0x394cf7['selectedDisposition']?_0x394cf7[_0x5d361b('0x210a')][_0x5d361b('0x1909')][_0x5d361b('0xa6f')]():'');})[_0x16c42c('0xa9b')](function(){const _0x436ad7=_0x16c42c;_0x394cf7[_0x436ad7('0x164e')]=![],_0x1ae01f[_0x436ad7('0x237e')](_0x394cf7['selectedDisposition']?_0x394cf7[_0x436ad7('0x210a')]['name'][_0x436ad7('0xa6f')]():'');});}}const _0x5ebf2c=_0x54d71f;_0x11966d[_0x21d0f5('0x1e9a')]=['$scope',_0x21d0f5('0xcbc'),_0x21d0f5('0x16b9'),'$mdDialog',_0x21d0f5('0x17f5'),_0x21d0f5('0x142d'),_0x21d0f5('0x12a5'),'contact',_0x21d0f5('0x7c1'),_0x21d0f5('0x1150'),_0x21d0f5('0x173e'),_0x21d0f5('0xb6b')];function _0x11966d(_0xf3ba06,_0x1a9391,_0x5bab5d,_0x4cfeef,_0x210684,_0x3d5f70,_0x1cc5ce,_0x535cf5,_0x5d7925,_0x2d66d6,_0x4f33cb,_0x1134ec){const _0x7cb430=_0x21d0f5,_0x1e7bd2=this;_0x1e7bd2['call']=_0x5d7925,_0x1e7bd2['contact']=_0x535cf5,_0x1e7bd2[_0x7cb430('0x244f')]={'minDate':new Date(),'dateTime':new Date()};function _0x49e9fc(){const _0x4d0351=_0x7cb430;return _0x1e7bd2[_0x4d0351('0x164e')]=!![],_0x1cc5ce['cmHopper']['save']({'phone':_0x1e7bd2[_0x4d0351('0xdde')][_0x4d0351('0x1546')],'UserId':_0x4f33cb?_0x2d66d6[_0x4d0351('0x2428')]()['id']:null,'ContactId':_0x1e7bd2[_0x4d0351('0xdde')]['id'],'ListId':_0x1e7bd2[_0x4d0351('0xdde')]['ListId'],'VoiceQueueId':Number(_0x1e7bd2[_0x4d0351('0x7c1')]['xmd-voicequeueid']),'scheduledat':_0x57d4d1()(_0x1e7bd2[_0x4d0351('0x244f')][_0x4d0351('0x999')])[_0x4d0351('0x1826')](_0x4d0351('0xfae')),'priority':0x3,'recallme':_0x4f33cb,'OwnerId':_0x2d66d6[_0x4d0351('0x2428')]()['id']})[_0x4d0351('0x1549')]['then'](function(){const _0x4af26a=_0x4d0351;_0x1cc5ce['cmHopperFinal']['update']({'id':_0x1e7bd2['call']['uniqueid'],'rescheduled':!![],'rescheduledat':_0x57d4d1()(_0x1e7bd2['hopper']['dateTime'])[_0x4af26a('0x1826')](_0x4af26a('0xfae')),'recallme':_0x4f33cb})['$promise'];})[_0x4d0351('0x11bf')](function(){const _0xc67e30=_0x4d0351;_0x3d5f70[_0xc67e30('0x2693')]({'title':_0x1134ec[_0xc67e30('0x10c2')]('APP.INFO'),'msg':_0x1134ec[_0xc67e30('0x10c2')](_0xc67e30('0xafc'))+'\x20'+(_0x4f33cb?_0x1134ec['instant'](_0xc67e30('0x154')):_0x1134ec['instant'](_0xc67e30('0x1ecc')))}),_0x4cfeef[_0xc67e30('0x237e')]();})[_0x4d0351('0x151d')](function(_0x21a7a2){const _0x4e92f4=_0x4d0351;_0x4cfeef[_0x4e92f4('0x26c9')](_0x21a7a2);})[_0x4d0351('0xa9b')](function(){const _0x21d831=_0x4d0351;_0x1e7bd2[_0x21d831('0x164e')]=![];});}function _0x193408(){const _0x2a7283=_0x7cb430;_0x4cfeef[_0x2a7283('0x26c9')]();}_0x1e7bd2[_0x7cb430('0xc4e')]=_0x193408,_0x1e7bd2[_0x7cb430('0x260d')]=_0x49e9fc;}const _0x3dbaee=_0x11966d;_0x219a35[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1ca2'),'$translate',_0x21d0f5('0x12a5'),_0x21d0f5('0x206c'),'callNumber',_0x21d0f5('0x142d')];function _0x219a35(_0x16710e,_0x2d9c99,_0x9f1398,_0x753b55,_0x5702e8,_0x27f57a){const _0x5bd2e5=_0x21d0f5,_0x269a1f=this;_0x269a1f['callNumber']=_0x5702e8,_0x269a1f['page']=0x1;function _0x1a4c47(){const _0x2c24e5=a0_0xaf0c;_0x9f1398['cmList']['get']({'fields':_0x2c24e5('0x721'),'nolimit':!![]})['$promise'][_0x2c24e5('0x11bf')](function(_0x4e36b3){const _0x311ccd=_0x2c24e5;_0x269a1f[_0x311ccd('0x2410')]=_0x36f548()[_0x311ccd('0x1bac')](_0x4e36b3[_0x311ccd('0x19b2')])[_0x311ccd('0x2130')]('id')[_0x311ccd('0xbdb')](_0x311ccd('0x1909'))[_0x311ccd('0x10cc')](),_0x9f1398[_0x311ccd('0x1540')][_0x311ccd('0xbaa')]({'fields':_0x311ccd('0x26a'),'nolimit':!![]})[_0x311ccd('0x1549')][_0x311ccd('0x11bf')](function(_0x725a9f){const _0x4b9443=_0x311ccd;_0x269a1f[_0x4b9443('0x8a1')]=_0x725a9f[_0x4b9443('0x19b2')],_0x269a1f[_0x4b9443('0x206c')]=_0x36f548()[_0x4b9443('0x2171')](_0x753b55,function(_0x3ed8bb){const _0x5cd40e=_0x4b9443;return Object[_0x5cd40e('0xe22')](_0x3ed8bb)[_0x5cd40e('0x1f88')](function(_0x93eaf2){const _0x397ad7=_0x5cd40e;if(Number(_0x3ed8bb[_0x93eaf2])===Number(_0x269a1f[_0x397ad7('0x1a03')])){if(_0x93eaf2[_0x397ad7('0x1eb7')](_0x397ad7('0x57a'))){const _0x2330da=_0x36f548()[_0x397ad7('0x1ad4')](_0x269a1f[_0x397ad7('0x8a1')],['id',Number(_0x36f548()[_0x397ad7('0x13b1')](_0x93eaf2,_0x397ad7('0x57a')))]);_0x3ed8bb[_0x397ad7('0x1014')]=_0x2330da?_0x2330da[_0x397ad7('0x2012')]:_0x2d9c99[_0x397ad7('0x10c2')]('APP.UNKNOWN');}else _0x3ed8bb[_0x397ad7('0x1014')]=_0x93eaf2;}}),_0x3ed8bb;});});})[_0x2c24e5('0x11bf')](function(){const _0x302f18=_0x2c24e5;_0x269a1f[_0x302f18('0x2233')]=_0x36f548()[_0x302f18('0x939')](_0x753b55,0x4);})[_0x2c24e5('0x151d')](function(_0x11b024){const _0x270670=_0x2c24e5;_0x27f57a[_0x270670('0x255')]({'title':_0x11b024[_0x270670('0xff9')]?'API:'+_0x11b024['status']+_0x270670('0xb0b')+_0x11b024[_0x270670('0x212f')]:_0x270670('0x2616'),'msg':_0x11b024['data']?JSON[_0x270670('0x3e')](_0x11b024['data']['message']):_0x11b024[_0x270670('0xaab')]()});});}function _0x5ed0ac(){const _0x21da6f=a0_0xaf0c;_0x16710e[_0x21da6f('0x237e')](_0x269a1f[_0x21da6f('0x16f6')]);}_0x269a1f[_0x5bd2e5('0x277c')]=_0x1a4c47,_0x269a1f[_0x5bd2e5('0x17a')]=_0x5ed0ac;}const _0xe15395=_0x219a35;_0x1ee7ea[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),'$interval'];function _0x1ee7ea(_0x2d0444,_0x29d185){const _0x5135ad=_0x21d0f5;let _0x1e5ce8=_0x29d185(function(){},0x3e7);_0x2d0444[_0x5135ad('0x12d8')](_0x5135ad('0x4f7'),function(){const _0x255b1d=_0x5135ad;_0x1e5ce8&&(_0x29d185[_0x255b1d('0x26c9')](_0x1e5ce8),_0x1e5ce8=null);});}const _0x4dc563=_0x1ee7ea;_0x599c06[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0x17f5'),_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),_0x21d0f5('0x2143'),_0x21d0f5('0xb6b'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),_0x21d0f5('0x1d56')];function _0x599c06(_0x5cb27e,_0x4cd1e4,_0x10b845,_0x49f3d4,_0x372296,_0xeee66f,_0x1c22fc,_0x367433,_0x6a8440){const _0x7fa266=_0x21d0f5,_0x19a120=this;_0x19a120[_0x7fa266('0x1d5')]=![],_0x19a120['refresh']=!![],_0x19a120['disable']=[],_0x19a120[_0x7fa266('0x1394')]={'count':0x0,'rows':[]},_0x19a120[_0x7fa266('0x32a')]=_0x367433['getCurrentUser'](),_0x19a120[_0x7fa266('0x1de3')]={},_0x19a120[_0x7fa266('0x14ce')]={'count':0x0,'rows':[]},_0x19a120[_0x7fa266('0x1f2a')]={'fields':_0x7fa266('0x2390'),'type':_0x7fa266('0x25b6'),'queuecallerexitreason':_0x7fa266('0x1164')+','+_0x7fa266('0x12d3'),'sort':_0x7fa266('0x1c74'),'limit':0xa,'page':0x1},_0x19a120[_0x7fa266('0x2742')]=_0x17942b,_0x19a120[_0x7fa266('0xba3')]=_0x15676a,_0x19a120[_0x7fa266('0x277c')]=_0x187d04,_0x19a120[_0x7fa266('0x27f6')]=_0x4a5d66,_0x19a120[_0x7fa266('0x14a8')]=_0x4c2409,_0x19a120['call']=_0x5cb27e[_0x7fa266('0x25f5')][_0x7fa266('0x25f5')]['$parent'][_0x7fa266('0x25f5')]['vm'][_0x7fa266('0x7c1')],_0x19a120[_0x7fa266('0x792')]=_0x5cb27e[_0x7fa266('0x25f5')][_0x7fa266('0x25f5')][_0x7fa266('0x25f5')][_0x7fa266('0x25f5')]['vm'][_0x7fa266('0x792')],_0x19a120[_0x7fa266('0x1088')]=_0x5cb27e[_0x7fa266('0x25f5')][_0x7fa266('0x25f5')][_0x7fa266('0x25f5')]['$parent']['vm'][_0x7fa266('0x1088')],_0x19a120['webtransfer']=_0x5cb27e[_0x7fa266('0x25f5')][_0x7fa266('0x25f5')][_0x7fa266('0x25f5')][_0x7fa266('0x25f5')]['vm'][_0x7fa266('0x629')],_0x19a120[_0x7fa266('0xb31')]=_0x42b6cf,_0x19a120['onSearchBarExpand']=_0x3b4f0f,_0x6a8440[_0x7fa266('0x284d')]('voiceQueueReport:save',_0x53c78e),_0x6a8440[_0x7fa266('0x284d')](_0x7fa266('0x132e'),_0x2add3e),_0x187d04();function _0x187d04(){const _0x329912=_0x7fa266;return _0x1c22fc[_0x329912('0x107a')][_0x329912('0xbaa')]({'MailAccountId':'null','FaxAccountId':'null','SmsAccountId':_0x329912('0xb5f'),'WhatsappAccountId':_0x329912('0xb5f'),'OpenchannelAccountId':_0x329912('0xb5f'),'ChatWebsiteId':_0x329912('0xb5f')})['$promise'][_0x329912('0x11bf')](function(_0x1723c0){const _0x276d5c=_0x329912;return _0x19a120[_0x276d5c('0x1394')]=_0x1723c0?_0x1723c0[_0x276d5c('0x19b2')]:[],_0x1c22fc[_0x276d5c('0x21d9')][_0x276d5c('0x373')]({'id':_0x367433['getCurrentUser']()['id'],'fields':'id,name','channel':_0x276d5c('0x1bc3'),'type':_0x276d5c('0x25b6'),'nolimit':!![]})[_0x276d5c('0x1549')];})['then'](function(_0x1fa72d){const _0x27eeae=_0x329912;_0x19a120[_0x27eeae('0x1de3')]=_0x1fa72d||{'count':0x0,'rows':[]},_0x19a120[_0x27eeae('0x1ff7')]=_0x36f548()['mapValues'](_0x36f548()[_0x27eeae('0x2130')](_0x19a120[_0x27eeae('0x1de3')][_0x27eeae('0x19b2')],_0x27eeae('0x1909')),'name'),_0x19a120[_0x27eeae('0x97c')]=_0x19a120['queues'][_0x27eeae('0x19b2')]?_0x36f548()[_0x27eeae('0x2171')](_0x19a120[_0x27eeae('0x1de3')][_0x27eeae('0x19b2')],_0x27eeae('0x1909'))[_0x27eeae('0xa04')](','):undefined;})[_0x329912('0x11bf')](function(){const _0x62c596=_0x329912;_0x19a120[_0x62c596('0x7db')]=_0x63004e();})['catch'](function(_0x2d1086){const _0x2b9ff7=_0x329912;console[_0x2b9ff7('0xc78')](_0x2d1086);})[_0x329912('0xa9b')](function(){const _0x494b29=_0x329912;let _0x512fcf=_0x372296['localStorage']['getItem'](_0x494b29('0x2228')+_0x19a120[_0x494b29('0x32a')]['id']);if(_0x512fcf)_0x512fcf=JSON[_0x494b29('0x1850')](_0x512fcf),_0x512fcf[_0x494b29('0x1f2a')]&&(_0x19a120[_0x494b29('0x1f2a')]=_0x36f548()['merge'](_0x512fcf[_0x494b29('0x1f2a')],_0x36f548()[_0x494b29('0x196f')](_0x19a120[_0x494b29('0x1f2a')],[_0x494b29('0x1c16'),_0x494b29('0xd5c'),_0x494b29('0x1c2')])),_0x19a120[_0x494b29('0x1f2a')]=_0x36f548()[_0x494b29('0x196f')](_0x19a120[_0x494b29('0x1f2a')],_0x494b29('0xdb4')));else{const _0x4d9a1d={'$gte':_0x57d4d1()()[_0x494b29('0x2655')](_0x494b29('0x4d8'))['utcOffset'](0x0,!![])['format'](),'$lte':_0x57d4d1()()[_0x494b29('0x2ba')](_0x494b29('0x4d8'))['utcOffset'](0x0,!![])[_0x494b29('0x1826')]()};_0x19a120['query']['createdAt']=_0x4d9a1d;}_0x19a120[_0x494b29('0x12f7')]=_0x19a120[_0x494b29('0x1f2a')][_0x494b29('0xdb4')]?!![]:![],_0x19a120[_0x494b29('0x2742')]();});}function _0x63004e(){const _0x27b5ec=_0x7fa266;return[{'name':'Start\x20Date','key':_0x27b5ec('0x1779'),'type':'date','label':_0x27b5ec('0x1c11')},{'name':_0x27b5ec('0x701'),'key':_0x27b5ec('0x2342'),'type':_0x27b5ec('0x2350'),'label':_0x27b5ec('0x84a'),'customOptions':[{'value':_0x19a120[_0x27b5ec('0x32a')]['id'],'translate':_0x27b5ec('0x275d')},{'value':_0x27b5ec('0x77b'),'translate':_0x27b5ec('0x1a02')},{'value':undefined,'translate':'DASHBOARDS.ALL'}]},{'name':'Campaign','key':_0x27b5ec('0x150b'),'type':_0x27b5ec('0xe83'),'label':_0x27b5ec('0x180c'),'options':_0x19a120[_0x27b5ec('0x1de3')][_0x27b5ec('0x19b2')],'ngValue':_0x27b5ec('0x1909'),'clearAll':![]}];}function _0x17942b(){const _0x368c1b=_0x7fa266;_0x19a120[_0x368c1b('0x1f2a')][_0x368c1b('0x150b')]=_0x19a120['query'][_0x368c1b('0x150b')]||_0x19a120[_0x368c1b('0x97c')][_0x368c1b('0xaf8')](','),_0x19a120[_0x368c1b('0x1f2a')]['offset']=(_0x19a120[_0x368c1b('0x1f2a')]['page']-0x1)*_0x19a120[_0x368c1b('0x1f2a')][_0x368c1b('0xd5c')];const _0x1f6c0e={'query':_0x19a120[_0x368c1b('0x1f2a')]};_0x372296[_0x368c1b('0xe4a')][_0x368c1b('0x26d6')](_0x368c1b('0x2228')+_0x19a120[_0x368c1b('0x32a')]['id'],JSON[_0x368c1b('0x3e')](_0x1f6c0e)),_0x19a120['promise']=_0x1c22fc[_0x368c1b('0xfad')][_0x368c1b('0x15ee')](_0x19a120['query'],_0x3ba3fc)[_0x368c1b('0x1549')];}function _0x3ba3fc(_0x580a95){const _0x22614a=_0x7fa266;_0x19a120[_0x22614a('0x14ce')]=_0x580a95||{'count':0x0,'rows':[]},_0x19a120[_0x22614a('0x15a1')]=!![];}function _0x4c2409(_0x5f20b1){const _0x2b5e02=_0x7fa266;_0x10b845['show']({'controller':_0x2b5e02('0xeb8'),'controllerAs':'vm','templateUrl':'app/main/apps/dashboards/views/general/agent/home/abandoned/dispose/dialog.html','parent':angular[_0x2b5e02('0x1e73')](_0x49f3d4[_0x2b5e02('0x1d2')]),'targetEvent':_0x5f20b1,'resolve':{'globalDispositions':[_0x2b5e02('0x218e'),function(_0x309ce5){const _0x1d02d4=_0x2b5e02;return _0x309ce5[_0x1d02d4('0xa28')]('disposition@get',{'MailAccountId':'null','FaxAccountId':_0x1d02d4('0xb5f'),'SmsAccountId':_0x1d02d4('0xb5f'),'WhatsappAccountId':_0x1d02d4('0xb5f'),'OpenchannelAccountId':_0x1d02d4('0xb5f'),'ChatWebsiteId':_0x1d02d4('0xb5f'),'ListId':_0x1d02d4('0xb5f')});}]},'locals':{'dispositions':_0x19a120[_0x2b5e02('0x1394')],'call':_0x5f20b1}})[_0x2b5e02('0x11bf')](function(_0xc7a11e){const _0xa6e176=_0x2b5e02;if(_0xc7a11e){_0x19a120[_0xa6e176('0x164e')][_0x5f20b1['id']]=!![];const _0x43f8b5={'id':_0x5f20b1['id'],'lastAssignedTo':_0x5f20b1[_0xa6e176('0x82c')]?_0x19a120['currentUser'][_0xa6e176('0x1909')]:null,'assigned':_0x5f20b1[_0xa6e176('0x82c')],'disposition':_0xc7a11e[_0xa6e176('0x1fc4')]||null,'secondDisposition':_0xc7a11e[_0xa6e176('0x172b')]||null,'thirdDisposition':_0xc7a11e['thirdLevel']||null};_0x1c22fc[_0xa6e176('0xfad')]['update'](_0x43f8b5)[_0xa6e176('0x1549')][_0xa6e176('0x151d')](function(_0x4db243){console['log'](_0x4db243);})['finally'](function(){const _0x392100=_0xa6e176;_0x19a120[_0x392100('0x164e')][_0x5f20b1['id']]=![];});}});}function _0x42b6cf(){const _0x2bb464=_0x7fa266;_0x19a120[_0x2bb464('0x1f2a')]['filter']=undefined,_0x19a120[_0x2bb464('0x12f7')]=![];}function _0x3b4f0f(){_0x19a120['isSearchBarVisible']=!![];}let _0x569a41=!![],_0x22d133=0x1;_0x5cb27e[_0x7fa266('0x2087')](_0x7fa266('0x178c'),function(_0x480905,_0x176e4c){const _0x507c87=_0x7fa266;_0x569a41?_0x4cd1e4(function(){_0x569a41=![];}):(!_0x176e4c&&(_0x22d133=_0x19a120[_0x507c87('0x1f2a')]['page']),_0x480905!==_0x176e4c&&(_0x19a120[_0x507c87('0x1f2a')][_0x507c87('0x1c2')]=0x1),!_0x480905&&(_0x19a120[_0x507c87('0x1f2a')][_0x507c87('0x1c2')]=_0x22d133),_0x19a120[_0x507c87('0x2742')]());});function _0x15676a(){const _0x59cf3c=_0x7fa266;_0x19a120['showTooltip']=![],_0x19a120[_0x59cf3c('0x2742')]();}function _0x4a5d66(_0x3ec7a8){const _0x29054c=_0x7fa266;_0x3ec7a8&&(_0x19a120[_0x29054c('0x164e')][_0x3ec7a8['id']]=!![],_0x1c22fc['voiceQueueReport'][_0x29054c('0x5ab')]({'id':_0x3ec7a8['id'],'lastAssignedTo':_0x3ec7a8[_0x29054c('0x82c')]?_0x19a120[_0x29054c('0x32a')][_0x29054c('0x1909')]:null,'assigned':_0x3ec7a8[_0x29054c('0x82c')]})['$promise'][_0x29054c('0x151d')](function(_0x3d2cc5){const _0x29e0bf=_0x29054c;console[_0x29e0bf('0xc78')](_0x3d2cc5);})[_0x29054c('0xa9b')](function(){const _0x16410b=_0x29054c;_0x19a120[_0x16410b('0x164e')][_0x3ec7a8['id']]=![];}));}function _0x53c78e(_0x2ca3b3){const _0x149d20=_0x7fa266;_0x19a120[_0x149d20('0x1ff7')]&&_0x2ca3b3[_0x149d20('0x19fd')]===_0x149d20('0x25b6')&&_0x19a120['queuesMap'][_0x2ca3b3[_0x149d20('0x150b')]]&&(_0x19a120[_0x149d20('0x1d5')]=!![]);}function _0x2add3e(_0x2b432a){const _0x1687fc=_0x7fa266;if(_0x2b432a){const _0x5b51c3=_0x36f548()['findIndex'](_0x19a120[_0x1687fc('0x14ce')][_0x1687fc('0x19b2')],['id',_0x2b432a['id']]);_0x5b51c3>=0x0&&_0x36f548()[_0x1687fc('0x47b')](_0x19a120[_0x1687fc('0x14ce')][_0x1687fc('0x19b2')][_0x5b51c3],_0x2b432a);}}_0x5cb27e[_0x7fa266('0x12d8')](_0x7fa266('0x4f7'),function(){const _0x2c6a09=_0x7fa266;_0x6a8440[_0x2c6a09('0x1b2e')](_0x2c6a09('0xfe4')),_0x6a8440['removeAllListeners'](_0x2c6a09('0x132e'));});}const _0x27723d=_0x599c06;_0x4e2f23['$inject']=[_0x21d0f5('0x1ca2'),_0x21d0f5('0x1394'),_0x21d0f5('0x1b5'),_0x21d0f5('0x7c1')];function _0x4e2f23(_0x558d05,_0x17bc32,_0x1ea9a7,_0x514f60){const _0x294c9d=_0x21d0f5,_0x58a8cc=this;_0x58a8cc[_0x294c9d('0x1394')]=_0x17bc32[_0x294c9d('0x19b2')],_0x58a8cc[_0x294c9d('0x1b5')]=_0x1ea9a7[_0x294c9d('0x19b2')],_0x58a8cc[_0x294c9d('0x7c1')]=_0x514f60,_0x58a8cc[_0x294c9d('0x1ce3')]=_0x58a8cc[_0x294c9d('0x7c1')][_0x294c9d('0x1ce3')]||undefined,_0x58a8cc[_0x294c9d('0x5cd')]=_0x9cc575,_0x58a8cc[_0x294c9d('0x9e7')]=_0x1e0340,_0x58a8cc[_0x294c9d('0x859')]=_0x12318b,_0x58a8cc[_0x294c9d('0xc4e')]=_0x20727f;function _0x9cc575(_0x477657){const _0x4d0a5e=_0x294c9d,_0x422780=_0x36f548()['unionBy'](_0x58a8cc[_0x4d0a5e('0x1394')],_0x58a8cc[_0x4d0a5e('0x1b5')],'id');switch(_0x477657){case _0x4d0a5e('0x848'):_0x58a8cc[_0x4d0a5e('0x210a')]=_0x58a8cc[_0x4d0a5e('0xab0')],_0x58a8cc[_0x4d0a5e('0x19cc')]=_0x36f548()[_0x4d0a5e('0x1cb3')](_0x422780,[_0x4d0a5e('0x2ac'),_0x58a8cc['firstLevelDisposition']['id']]),_0x58a8cc[_0x4d0a5e('0x635')]=undefined,_0x58a8cc['thirdLevelDisposition']=undefined,_0x58a8cc['anyThirdLevelDisposition']=![];break;case _0x4d0a5e('0x19b9'):_0x58a8cc[_0x4d0a5e('0x210a')]=_0x58a8cc[_0x4d0a5e('0x635')],_0x58a8cc[_0x4d0a5e('0x905')]=_0x36f548()['some'](_0x422780,[_0x4d0a5e('0x2ac'),_0x58a8cc['secondLevelDisposition']['id']]);break;case _0x4d0a5e('0x2c3'):_0x58a8cc[_0x4d0a5e('0x210a')]=_0x58a8cc[_0x4d0a5e('0xa5a')];break;}}function _0x1e0340(_0x262338){const _0x5b2898=_0x294c9d;if(_0x262338===_0x5b2898('0x19b9'))_0x58a8cc[_0x5b2898('0x635')]=undefined,_0x58a8cc[_0x5b2898('0xa5a')]=undefined,_0x58a8cc[_0x5b2898('0x210a')]=_0x58a8cc['firstLevelDisposition'];else _0x262338===_0x5b2898('0x2c3')&&(_0x58a8cc[_0x5b2898('0xa5a')]=undefined,_0x58a8cc[_0x5b2898('0x210a')]=_0x58a8cc[_0x5b2898('0x635')]);}function _0x12318b(){const _0x311ea0=_0x294c9d;_0x58a8cc[_0x311ea0('0x7c1')]['note']=_0x58a8cc[_0x311ea0('0x1ce3')];const _0x4928aa={'firstLevel':_0x58a8cc[_0x311ea0('0xab0')]?_0x58a8cc[_0x311ea0('0xab0')]['name']:undefined,'secondLevel':_0x58a8cc[_0x311ea0('0x635')]?_0x58a8cc[_0x311ea0('0x635')][_0x311ea0('0x1909')]:undefined,'thirdLevel':_0x58a8cc[_0x311ea0('0xa5a')]?_0x58a8cc[_0x311ea0('0xa5a')][_0x311ea0('0x1909')]:undefined};_0x558d05['hide'](_0x4928aa);}function _0x20727f(){const _0x5a5cff=_0x294c9d;_0x558d05[_0x5a5cff('0x26c9')]();}}const _0xeae16c=_0x4e2f23;_0x2d3d08[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0x17f5'),'$mdDialog','$document',_0x21d0f5('0x2143'),'$translate','api','Auth',_0x21d0f5('0x1d56')];function _0x2d3d08(_0x5a5617,_0x4144b1,_0x4e5ef2,_0x3b71c3,_0x2b233b,_0x252306,_0x33575e,_0x292f26,_0x2324be){const _0x19af21=_0x21d0f5,_0x39d8a9=this;_0x39d8a9[_0x19af21('0x1d5')]=![],_0x39d8a9[_0x19af21('0x15a1')]=!![],_0x39d8a9[_0x19af21('0x164e')]=[],_0x39d8a9[_0x19af21('0x1394')]={'count':0x0,'rows':[]},_0x39d8a9[_0x19af21('0x32a')]=_0x292f26[_0x19af21('0x2428')](),_0x39d8a9[_0x19af21('0x1de3')]={},_0x39d8a9[_0x19af21('0x14ce')]={'count':0x0,'rows':[]},_0x39d8a9[_0x19af21('0x1f2a')]={'fields':_0x19af21('0x2390'),'type':_0x19af21('0x18a2'),'queuecallerexitreason':_0x19af21('0x1164')+','+'ABANDONED','sort':_0x19af21('0x1c74'),'limit':0xa,'page':0x1},_0x39d8a9[_0x19af21('0x2742')]=_0x4f0f9d,_0x39d8a9[_0x19af21('0xba3')]=_0x5e06a0,_0x39d8a9[_0x19af21('0x277c')]=_0x35c219,_0x39d8a9[_0x19af21('0x27f6')]=_0x19629b,_0x39d8a9['dispose']=_0x4bcc5c,_0x39d8a9[_0x19af21('0x7c1')]=_0x5a5617[_0x19af21('0x25f5')]['$parent'][_0x19af21('0x25f5')][_0x19af21('0x25f5')]['vm']['call'],_0x39d8a9['transfer']=_0x5a5617[_0x19af21('0x25f5')][_0x19af21('0x25f5')][_0x19af21('0x25f5')][_0x19af21('0x25f5')]['vm']['transfer'],_0x39d8a9['webcall']=_0x5a5617[_0x19af21('0x25f5')][_0x19af21('0x25f5')][_0x19af21('0x25f5')][_0x19af21('0x25f5')]['vm'][_0x19af21('0x1088')],_0x39d8a9['webtransfer']=_0x5a5617[_0x19af21('0x25f5')][_0x19af21('0x25f5')][_0x19af21('0x25f5')]['$parent']['vm'][_0x19af21('0x629')],_0x39d8a9['onSearchBarCollapse']=_0x41a08,_0x39d8a9['onSearchBarExpand']=_0x51ce33,_0x2324be['onWithoutApply']('voiceQueueReport:save',_0x3064ec),_0x2324be[_0x19af21('0x284d')](_0x19af21('0x132e'),_0x1fe197),_0x35c219();function _0x35c219(){const _0x404d40=_0x19af21;return _0x33575e[_0x404d40('0x107a')][_0x404d40('0xbaa')]({'MailAccountId':'null','FaxAccountId':'null','SmsAccountId':_0x404d40('0xb5f'),'WhatsappAccountId':_0x404d40('0xb5f'),'OpenchannelAccountId':_0x404d40('0xb5f'),'ChatWebsiteId':'null'})[_0x404d40('0x1549')][_0x404d40('0x11bf')](function(_0xf52ecc){const _0x463e7d=_0x404d40;return _0x39d8a9['dispositions']=_0xf52ecc?_0xf52ecc['rows']:[],_0x33575e['user']['getQueues']({'id':_0x292f26[_0x463e7d('0x2428')]()['id'],'fields':_0x463e7d('0x721'),'channel':_0x463e7d('0x1bc3'),'type':_0x463e7d('0x18a2'),'nolimit':!![]})['$promise'];})['then'](function(_0x34f970){const _0x3e99bd=_0x404d40;_0x39d8a9[_0x3e99bd('0x1de3')]=_0x34f970||{'count':0x0,'rows':[]},_0x39d8a9[_0x3e99bd('0x1ff7')]=_0x36f548()['mapValues'](_0x36f548()[_0x3e99bd('0x2130')](_0x39d8a9[_0x3e99bd('0x1de3')][_0x3e99bd('0x19b2')],_0x3e99bd('0x1909')),_0x3e99bd('0x1909')),_0x39d8a9[_0x3e99bd('0x97c')]=_0x39d8a9['queues'][_0x3e99bd('0x19b2')]?_0x36f548()[_0x3e99bd('0x2171')](_0x39d8a9[_0x3e99bd('0x1de3')][_0x3e99bd('0x19b2')],_0x3e99bd('0x1909'))['join'](','):undefined;})[_0x404d40('0x11bf')](function(){const _0x5e164c=_0x404d40;_0x39d8a9[_0x5e164c('0x7db')]=_0x2ef255();})['catch'](function(_0x4d74d9){console['log'](_0x4d74d9);})[_0x404d40('0xa9b')](function(){const _0x295966=_0x404d40;let _0x51f113=_0x2b233b[_0x295966('0xe4a')]['getItem'](_0x295966('0xbbf')+_0x39d8a9[_0x295966('0x32a')]['id']);if(_0x51f113)_0x51f113=JSON[_0x295966('0x1850')](_0x51f113),_0x51f113[_0x295966('0x1f2a')]&&(_0x39d8a9['query']=_0x36f548()[_0x295966('0x47b')](_0x51f113[_0x295966('0x1f2a')],_0x36f548()[_0x295966('0x196f')](_0x39d8a9[_0x295966('0x1f2a')],['sort',_0x295966('0xd5c'),_0x295966('0x1c2')])),_0x39d8a9['query']=_0x36f548()[_0x295966('0x196f')](_0x39d8a9[_0x295966('0x1f2a')],_0x295966('0xdb4')));else{const _0x252e7={'$gte':_0x57d4d1()()[_0x295966('0x2655')](_0x295966('0x4d8'))[_0x295966('0x1fb1')](0x0,!![])[_0x295966('0x1826')](),'$lte':_0x57d4d1()()[_0x295966('0x2ba')](_0x295966('0x4d8'))[_0x295966('0x1fb1')](0x0,!![])[_0x295966('0x1826')]()};_0x39d8a9[_0x295966('0x1f2a')][_0x295966('0x1779')]=_0x252e7;}_0x39d8a9[_0x295966('0x12f7')]=_0x39d8a9['query'][_0x295966('0xdb4')]?!![]:![],_0x39d8a9[_0x295966('0x2742')]();});}function _0x2ef255(){const _0xc1574b=_0x19af21;return[{'name':_0xc1574b('0xa68'),'key':_0xc1574b('0x1779'),'type':_0xc1574b('0x22f7'),'label':_0xc1574b('0x1c11')},{'name':_0xc1574b('0x701'),'key':'UserId','type':_0xc1574b('0x2350'),'label':_0xc1574b('0x84a'),'customOptions':[{'value':_0x39d8a9['currentUser']['id'],'translate':_0xc1574b('0x275d')},{'value':'\x27null\x27','translate':_0xc1574b('0x1a02')},{'value':undefined,'translate':'DASHBOARDS.ALL'}]},{'name':'Campaign','key':_0xc1574b('0x150b'),'type':_0xc1574b('0xe83'),'label':_0xc1574b('0x2086'),'options':_0x39d8a9['queues'][_0xc1574b('0x19b2')],'ngValue':_0xc1574b('0x1909'),'clearAll':![]}];}function _0x4f0f9d(){const _0x32d04c=_0x19af21;_0x39d8a9[_0x32d04c('0x1f2a')][_0x32d04c('0x150b')]=_0x39d8a9[_0x32d04c('0x1f2a')][_0x32d04c('0x150b')]||_0x39d8a9[_0x32d04c('0x97c')][_0x32d04c('0xaf8')](','),_0x39d8a9[_0x32d04c('0x1f2a')]['offset']=(_0x39d8a9['query'][_0x32d04c('0x1c2')]-0x1)*_0x39d8a9[_0x32d04c('0x1f2a')]['limit'];const _0x148778={'query':_0x39d8a9[_0x32d04c('0x1f2a')]};_0x2b233b[_0x32d04c('0xe4a')][_0x32d04c('0x26d6')](_0x32d04c('0xbbf')+_0x39d8a9[_0x32d04c('0x32a')]['id'],JSON[_0x32d04c('0x3e')](_0x148778)),_0x39d8a9[_0x32d04c('0x13f')]=_0x33575e[_0x32d04c('0xfad')]['getVoiceQueuesReport'](_0x39d8a9[_0x32d04c('0x1f2a')],_0x1c8005)['$promise'];}function _0x1c8005(_0x3d9499){const _0xc00f4e=_0x19af21;_0x39d8a9[_0xc00f4e('0x14ce')]=_0x3d9499||{'count':0x0,'rows':[]},_0x39d8a9[_0xc00f4e('0x15a1')]=!![];}function _0x4bcc5c(_0x3af524){const _0x10f17f=_0x19af21;_0x4e5ef2[_0x10f17f('0xb9')]({'controller':_0x10f17f('0xeb8'),'controllerAs':'vm','templateUrl':_0x10f17f('0x391'),'parent':angular[_0x10f17f('0x1e73')](_0x3b71c3[_0x10f17f('0x1d2')]),'targetEvent':_0x3af524,'resolve':{'globalDispositions':[_0x10f17f('0x218e'),function(_0x17ca35){const _0x1398ee=_0x10f17f;return _0x17ca35[_0x1398ee('0xa28')](_0x1398ee('0x24a5'),{'MailAccountId':_0x1398ee('0xb5f'),'FaxAccountId':_0x1398ee('0xb5f'),'SmsAccountId':_0x1398ee('0xb5f'),'WhatsappAccountId':_0x1398ee('0xb5f'),'OpenchannelAccountId':'null','ChatWebsiteId':_0x1398ee('0xb5f'),'ListId':_0x1398ee('0xb5f')});}]},'locals':{'dispositions':_0x39d8a9[_0x10f17f('0x1394')],'call':_0x3af524}})[_0x10f17f('0x11bf')](function(_0x58bb86){const _0x2c7356=_0x10f17f;if(_0x58bb86){_0x39d8a9[_0x2c7356('0x164e')][_0x3af524['id']]=!![];const _0x2b186d={'id':_0x3af524['id'],'lastAssignedTo':_0x3af524[_0x2c7356('0x82c')]?_0x39d8a9[_0x2c7356('0x32a')]['name']:null,'assigned':_0x3af524[_0x2c7356('0x82c')],'disposition':_0x58bb86[_0x2c7356('0x1fc4')]||null,'secondDisposition':_0x58bb86[_0x2c7356('0x172b')]||null,'thirdDisposition':_0x58bb86[_0x2c7356('0x12b5')]||null};_0x33575e[_0x2c7356('0xfad')][_0x2c7356('0x5ab')](_0x2b186d)[_0x2c7356('0x1549')][_0x2c7356('0x151d')](function(_0x17354d){const _0x446c0f=_0x2c7356;console[_0x446c0f('0xc78')](_0x17354d);})[_0x2c7356('0xa9b')](function(){const _0x3d4ba7=_0x2c7356;_0x39d8a9[_0x3d4ba7('0x164e')][_0x3af524['id']]=![];});}});}function _0x41a08(){const _0x3ee2cb=_0x19af21;_0x39d8a9[_0x3ee2cb('0x1f2a')]['filter']=undefined,_0x39d8a9[_0x3ee2cb('0x12f7')]=![];}function _0x51ce33(){const _0x45a7ab=_0x19af21;_0x39d8a9[_0x45a7ab('0x12f7')]=!![];}let _0x1ed5dd=!![],_0x9718f1=0x1;_0x5a5617[_0x19af21('0x2087')](_0x19af21('0x96f'),function(_0xb673ee,_0x2ac9ba){const _0x5f4eac=_0x19af21;_0x1ed5dd?_0x4144b1(function(){_0x1ed5dd=![];}):(!_0x2ac9ba&&(_0x9718f1=_0x39d8a9[_0x5f4eac('0x1f2a')][_0x5f4eac('0x1c2')]),_0xb673ee!==_0x2ac9ba&&(_0x39d8a9[_0x5f4eac('0x1f2a')]['page']=0x1),!_0xb673ee&&(_0x39d8a9['query'][_0x5f4eac('0x1c2')]=_0x9718f1),_0x39d8a9[_0x5f4eac('0x2742')]());});function _0x5e06a0(){const _0x15858e=_0x19af21;_0x39d8a9[_0x15858e('0x1d5')]=![],_0x39d8a9[_0x15858e('0x2742')]();}function _0x19629b(_0x525f2c){const _0x36aa16=_0x19af21;_0x525f2c&&(_0x39d8a9[_0x36aa16('0x164e')][_0x525f2c['id']]=!![],_0x33575e[_0x36aa16('0xfad')]['update']({'id':_0x525f2c['id'],'lastAssignedTo':_0x525f2c[_0x36aa16('0x82c')]?_0x39d8a9[_0x36aa16('0x32a')][_0x36aa16('0x1909')]:null,'assigned':_0x525f2c['assigned']})[_0x36aa16('0x1549')][_0x36aa16('0x151d')](function(_0x570f34){const _0xc897f7=_0x36aa16;console[_0xc897f7('0xc78')](_0x570f34);})[_0x36aa16('0xa9b')](function(){const _0x885689=_0x36aa16;_0x39d8a9[_0x885689('0x164e')][_0x525f2c['id']]=![];}));}function _0x3064ec(_0x22b0c5){const _0x32a72a=_0x19af21;_0x39d8a9['queuesMap']&&_0x22b0c5[_0x32a72a('0x19fd')]==='inbound'&&_0x39d8a9[_0x32a72a('0x1ff7')][_0x22b0c5[_0x32a72a('0x150b')]]&&(_0x39d8a9[_0x32a72a('0x1d5')]=!![]);}function _0x1fe197(_0x288062){const _0x3ee472=_0x19af21;if(_0x288062){const _0xbae1d5=_0x36f548()['findIndex'](_0x39d8a9[_0x3ee472('0x14ce')][_0x3ee472('0x19b2')],['id',_0x288062['id']]);_0xbae1d5>=0x0&&_0x36f548()[_0x3ee472('0x47b')](_0x39d8a9[_0x3ee472('0x14ce')][_0x3ee472('0x19b2')][_0xbae1d5],_0x288062);}}_0x5a5617['$on']('$destroy',function(){const _0x5f0ca3=_0x19af21;_0x2324be['removeAllListeners'](_0x5f0ca3('0xfe4')),_0x2324be[_0x5f0ca3('0x1b2e')](_0x5f0ca3('0x132e'));});}const _0x151075=_0x2d3d08;_0x8fe571[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0x2143'),_0x21d0f5('0x1150'),_0x21d0f5('0x1db0'),_0x21d0f5('0x2a1')];function _0x8fe571(_0x22baa5,_0x42ebb2,_0x3525e8,_0x10c42c,_0x1acb9e){const _0x16db1c=_0x21d0f5,_0x308c93=this;_0x308c93['user']=_0x3525e8['getCurrentUser'](),_0x308c93[_0x16db1c('0x17ff')]={},_0x308c93[_0x16db1c('0x1674')]={},_0x308c93[_0x16db1c('0x23e1')]={},_0x308c93[_0x16db1c('0x132d')]=_0x16db1c('0xdb9'),_0x308c93[_0x16db1c('0x2a1')]=_0x1acb9e,_0x308c93[_0x16db1c('0x7f1')]=_0x10c42c['getNavigation'](),_0x308c93[_0x16db1c('0x20b3')]=_0x22baa5[_0x16db1c('0x25f5')]['vm'][_0x16db1c('0x20b3')],_0x308c93[_0x16db1c('0x226f')]=_0x22baa5[_0x16db1c('0x25f5')]['vm'][_0x16db1c('0x226f')],_0x308c93[_0x16db1c('0x286f')]=_0x1a7dc6,_0x308c93['changeSidebarTab']=_0x1f2ce0,_0x308c93[_0x16db1c('0x1709')]=_0x372d4c;function _0x1a7dc6(_0x2d50c0,_0x45f4ab){const _0x51f4e7=_0x16db1c;_0x308c93[_0x51f4e7('0x17ff')]=_0x2d50c0,_0x308c93['setting']=_0x45f4ab;let _0x443360=_0x42ebb2[_0x51f4e7('0xe4a')]['getItem']('motion2.home:'+_0x308c93[_0x51f4e7('0x21d9')]['id']);if(_0x443360){try{_0x443360=JSON['parse'](_0x443360),_0x308c93[_0x51f4e7('0x132d')]=_0x443360[_0x51f4e7('0x1d2e')]?_0x443360['currentSidebarTab']:_0x51f4e7('0xdb9');}catch(_0x183538){console['error'](_0x183538),_0x308c93[_0x51f4e7('0x132d')]=_0x51f4e7('0xdb9');}_0x308c93[_0x51f4e7('0x132d')]==='mail'&&_0x308c93[_0x51f4e7('0x2a1')][_0x51f4e7('0x286f')]();}}function _0x372d4c(_0x3944be){const _0x3d89d4=_0x16db1c;return _0x3525e8[_0x3d89d4('0x1709')](_0x3944be);}function _0x1f2ce0(_0x193c67){const _0x3f48f2=_0x16db1c;_0x308c93[_0x3f48f2('0x132d')]=_0x193c67[_0x3f48f2('0x245')],_0x308c93[_0x3f48f2('0x132d')]===_0x3f48f2('0x1674')&&(_0x308c93[_0x3f48f2('0x1674')]=_0x193c67['stateParams'],_0x308c93[_0x3f48f2('0x1141')]=_0x193c67['id'],_0x22baa5['$broadcast']('pluginUpdated',{'plugin':_0x308c93['plugin']})),_0x42ebb2[_0x3f48f2('0xe4a')][_0x3f48f2('0x26d6')](_0x3f48f2('0x1e61')+_0x308c93[_0x3f48f2('0x21d9')]['id'],JSON[_0x3f48f2('0x3e')]({'currentSidebarTab':_0x193c67['view']}));}_0x22baa5['$watch'](_0x16db1c('0x27a7'),function(_0xd5a4ba){const _0x16d67b=_0x16db1c;_0xd5a4ba===_0x16d67b('0x2030')?_0x308c93[_0x16d67b('0x2a1')][_0x16d67b('0x286f')]():_0x308c93[_0x16d67b('0x2a1')][_0x16d67b('0x2131')]={};});}const _0x14217c=_0x8fe571,_0x19602a=_0x351988['p']+_0x21d0f5('0x13e0');_0x2bbc46[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0x17f5'),_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),_0x21d0f5('0x2143'),'$translate',_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),_0x21d0f5('0x1d56'),'toasty'];function _0x2bbc46(_0x493e32,_0x464c2d,_0x21a3f3,_0x1bccb8,_0x52b507,_0x53d7a9,_0xeb5bdf,_0x48c3b2,_0x57f4b8,_0x309005){const _0x5a5bdb=_0x21d0f5,_0x41c5a1=this;_0x41c5a1[_0x5a5bdb('0x21d9')]=_0x48c3b2[_0x5a5bdb('0x2428')](),_0x41c5a1['license']={},_0x41c5a1['setting']={},_0x41c5a1['tags']={'count':0x0,'rows':[]},_0x41c5a1[_0x5a5bdb('0x1073')]={'count':0x0,'rows':[]},_0x41c5a1[_0x5a5bdb('0x1f2a')]={'includeAll':!![],'sort':'-updatedAt','limit':0xa,'page':0x1,'read':null,'closed':null},_0x41c5a1['advancedSearch']={'fields':[{'name':'Id','column':'id','type':_0x5a5bdb('0x139e')},{'name':_0x5a5bdb('0xf10'),'column':_0x5a5bdb('0xf10'),'type':_0x5a5bdb('0x282b'),'options':{'searchFields':[_0x5a5bdb('0x13a0'),_0x5a5bdb('0xcf3'),'email'],'route':{'model':_0x5a5bdb('0x1b8f'),'action':'get','params':{'fields':_0x5a5bdb('0xd81'),'Contact':_0x5a5bdb('0xfda'),'nolimit':!![]}},'extraOperators':[_0x5a5bdb('0x512')],'excludedOperators':['$ne']}},{'name':'Body','column':_0x5a5bdb('0x1d2'),'type':_0x5a5bdb('0x25ed'),'options':{'excludedOperators':[_0x5a5bdb('0x23de'),'$ne']}},{'name':'Status','column':_0x5a5bdb('0x949'),'type':_0x5a5bdb('0x2350'),'values':[{'id':0x0,'translate':_0x5a5bdb('0x2846')},{'id':0x1,'translate':'DASHBOARDS.CLOSED'}],'options':{'excludedOperators':['$ne']}},{'name':'Customer\x20Ip','column':_0x5a5bdb('0x1173'),'type':_0x5a5bdb('0x25ed'),'options':{'excludedOperators':[_0x5a5bdb('0x23de'),_0x5a5bdb('0x27c1'),_0x5a5bdb('0x251f'),_0x5a5bdb('0xbdc')]}},{'name':_0x5a5bdb('0x701'),'column':'User','type':_0x5a5bdb('0x282b'),'options':{'table':'i','route':{'model':_0x5a5bdb('0x21d9'),'action':'get','params':{'role':_0x5a5bdb('0x18c4'),'fields':'id,name,fullname','nolimit':!![]}},'searchFields':['fullname',_0x5a5bdb('0x1909')],'extraOperators':[_0x5a5bdb('0x512')],'excludedOperators':[_0x5a5bdb('0x27c1')]}},{'name':'Website','column':_0x5a5bdb('0x2346'),'type':_0x5a5bdb('0xe83'),'options':{'route':{'model':'user','action':_0x5a5bdb('0x267d'),'params':{'id':_0x41c5a1['user']['id'],'nolimit':!![]}}}},{'name':'Tags','column':_0x5a5bdb('0x23ba'),'type':_0x5a5bdb('0xe83'),'options':{'route':{'model':_0x5a5bdb('0x1d73'),'action':_0x5a5bdb('0xbaa'),'params':{'nolimit':!![]}},'excludedOperators':[_0x5a5bdb('0x1239')]}},{'name':_0x5a5bdb('0xa68'),'column':'createdAt','type':'date','options':{'excludedOperators':[_0x5a5bdb('0x27c1')]}},{'name':_0x5a5bdb('0xf18'),'column':_0x5a5bdb('0xf2'),'type':_0x5a5bdb('0x2350'),'values':[{'id':0x1,'translate':_0x5a5bdb('0x22a5')},{'id':0x0,'translate':'DASHBOARDS.UNREAD'}],'options':{'excludedOperators':[_0x5a5bdb('0x27c1')]}}]},_0x41c5a1['sectionColor']=_0x5a5bdb('0x1017'),_0x41c5a1[_0x5a5bdb('0x277c')]=_0x432dca,_0x41c5a1[_0x5a5bdb('0x2693')]=_0x5bbab2,_0x41c5a1[_0x5a5bdb('0x10bc')]=_0xc1baa5,_0x41c5a1[_0x5a5bdb('0x1605')]=_0x3248d4,_0x41c5a1[_0x5a5bdb('0x3e9')]=_0x47b159,_0x41c5a1[_0x5a5bdb('0x1dfb')]=_0x5ad81f,_0x41c5a1[_0x5a5bdb('0x1ddf')]=_0xd1ca1d,_0x41c5a1[_0x5a5bdb('0x1dba')]=_0x28a344,_0x41c5a1[_0x5a5bdb('0x1118')]=_0x235b3c,_0x41c5a1[_0x5a5bdb('0xb31')]=_0x1ad9a8,_0x41c5a1[_0x5a5bdb('0x2049')]=_0x2d607f,_0x41c5a1[_0x5a5bdb('0x2297')]=_0x3d0636;function _0x432dca(_0x3e93e9,_0xaa0088){const _0x3ecddf=_0x5a5bdb;return _0x41c5a1[_0x3ecddf('0x17ff')]=_0x3e93e9,_0x41c5a1[_0x3ecddf('0x23e1')]=_0xaa0088,_0xeb5bdf[_0x3ecddf('0x21d9')][_0x3ecddf('0xbaa')+_0x36f548()[_0x3ecddf('0x24b5')]('ChatWebsites')]({'id':_0x41c5a1[_0x3ecddf('0x21d9')]['id'],'nolimit':!![]})['$promise'][_0x3ecddf('0x11bf')](function(_0x29eb79){const _0x3038e3=_0x3ecddf;return _0x41c5a1['chatAccounts']=_0x29eb79||{'count':0x0,'rows':[]},_0xeb5bdf[_0x3038e3('0x1d73')][_0x3038e3('0xbaa')]()[_0x3038e3('0x1549')];})[_0x3ecddf('0x11bf')](function(_0xa1346e){const _0x293a7a=_0x3ecddf;_0x41c5a1[_0x293a7a('0x2763')]=_0xa1346e||{'count':0x0,'rows':[]};})[_0x3ecddf('0x11bf')](function(){const _0x50e789=_0x3ecddf;_0x41c5a1[_0x50e789('0x7db')]=_0x429747();})['catch'](function(_0x422f98){const _0x4faa60=_0x3ecddf;console[_0x4faa60('0x255')](_0x422f98);})[_0x3ecddf('0xa9b')](function(){const _0x32c17b=_0x3ecddf;let _0x245b00=_0x52b507[_0x32c17b('0xe4a')][_0x32c17b('0x2356')]('motion2.home.chat:'+_0x41c5a1[_0x32c17b('0x21d9')]['id']);if(_0x245b00)try{_0x245b00=JSON[_0x32c17b('0x1850')](_0x245b00);if(_0x245b00[_0x32c17b('0x1f2a')]){_0x41c5a1[_0x32c17b('0x1f2a')]=_0x36f548()[_0x32c17b('0x47b')](_0x41c5a1[_0x32c17b('0x1f2a')],_0x245b00[_0x32c17b('0x1f2a')]);if(_0x36f548()[_0x32c17b('0x1fc5')](_0x41c5a1[_0x32c17b('0x215d')][_0x32c17b('0x19b2')]))_0x41c5a1['query']['ChatWebsiteId']=[];else _0x36f548()[_0x32c17b('0x1fc5')](_0x41c5a1[_0x32c17b('0x1f2a')][_0x32c17b('0x2346')])&&(_0x41c5a1[_0x32c17b('0x1f2a')][_0x32c17b('0x2346')]=_0x36f548()(_0x41c5a1[_0x32c17b('0x215d')]['rows'])['map']('id')['take']()[_0x32c17b('0x10cc')]());_0x41c5a1['query'][_0x32c17b('0x1c16')]&&_0x41c5a1['query']['sort'][_0x32c17b('0x203c')](_0x32c17b('0x13b'))>=0x0&&(_0x41c5a1['query']=_0x36f548()[_0x32c17b('0x196f')](_0x41c5a1['query'],_0x32c17b('0x1c16'))),_0x41c5a1[_0x32c17b('0x1f2a')][_0x32c17b('0xc83')]=!![],_0x41c5a1['isSearchBarVisible']=_0x41c5a1[_0x32c17b('0x1f2a')][_0x32c17b('0xdb4')]?!![]:![];}}catch(_0x2d71b){console[_0x32c17b('0x255')](_0x2d71b);}else{const _0x4a9e51={'$gte':_0x57d4d1()()[_0x32c17b('0x2655')]('month')[_0x32c17b('0x1fb1')](0x0,!![])[_0x32c17b('0x1826')](),'$lte':_0x57d4d1()()['endOf'](_0x32c17b('0x4d8'))[_0x32c17b('0x1fb1')](0x0,!![])['format']()},_0xf5740f={'ChatWebsiteId':_0x36f548()[_0x32c17b('0x2171')](_0x41c5a1['chatAccounts']['rows'],'id'),'createdAt':_0x4a9e51};_0x41c5a1['query']=_0x36f548()[_0x32c17b('0x47b')](_0x41c5a1[_0x32c17b('0x1f2a')],_0xf5740f);}_0x57f4b8['on'](_0x32c17b('0x1bc6'),_0xa664a6),_0x57f4b8['on']('chatInteraction:update',_0xa664a6),_0x57f4b8['on'](_0x32c17b('0x1f71'),_0x527f96),_0x57f4b8['on'](_0x32c17b('0x487'),_0x1659b9),_0x57f4b8['on'](_0x32c17b('0x71e'),_0x1659b9),_0x57f4b8['on'](_0x32c17b('0x1edd'),_0x57e128),_0x57f4b8['on'](_0x32c17b('0xba7'),_0x3ee0bb),_0xc1baa5(_0x41c5a1[_0x32c17b('0x1f2a')][_0x32c17b('0x1c2')]);});}function _0x429747(){const _0x49e6dc=_0x5a5bdb;return[{'name':_0x49e6dc('0xa68'),'key':_0x49e6dc('0x1779'),'type':_0x49e6dc('0x22f7'),'label':_0x49e6dc('0x1c11')},{'name':_0x49e6dc('0x3ad'),'key':_0x49e6dc('0x1601'),'type':_0x49e6dc('0x2350'),'label':_0x49e6dc('0x22a0'),'customOptions':[{'value':0x0,'translate':_0x49e6dc('0x1dd4')},{'value':0x1,'translate':_0x49e6dc('0x22a5')},{'value':null,'translate':_0x49e6dc('0x211a')}]},{'name':_0x49e6dc('0x971'),'key':_0x49e6dc('0x949'),'type':_0x49e6dc('0x2350'),'label':_0x49e6dc('0xa96'),'customOptions':[{'value':0x0,'translate':'DASHBOARDS.OPENED'},{'value':0x1,'translate':_0x49e6dc('0x199')},{'value':null,'translate':_0x49e6dc('0x211a')}]},{'name':_0x49e6dc('0x20a7'),'key':'ChatWebsiteId','type':_0x49e6dc('0xe83'),'label':_0x49e6dc('0x10b'),'options':_0x41c5a1['chatAccounts'][_0x49e6dc('0x19b2')],'clearAll':![]},{'name':_0x49e6dc('0x701'),'key':'UserId','type':_0x49e6dc('0x2350'),'label':_0x49e6dc('0x84a'),'customOptions':[{'value':_0x41c5a1['user']['id'],'translate':_0x49e6dc('0x275d')},{'value':_0x49e6dc('0xb5f'),'translate':'DASHBOARDS.NOT_ASSIGNED'},{'value':undefined,'translate':_0x49e6dc('0x211a')}]},{'name':_0x49e6dc('0x23ba'),'key':_0x49e6dc('0x1d73'),'type':_0x49e6dc('0xe83'),'label':_0x49e6dc('0x9b9'),'options':_0x41c5a1['tags']['rows'],'placeholder':_0x49e6dc('0x1f9a')}];}function _0x5bbab2(_0x38f27b){const _0x2d8181=_0x5a5bdb;_0x41c5a1[_0x2d8181('0x1fbd')]=![],_0x41c5a1['chatInteractions']=_0x38f27b||{'count':0x0,'rows':[]};for(let _0x45b6a4=0x0;_0x45b6a4<_0x41c5a1['chatInteractions'][_0x2d8181('0x19b2')][_0x2d8181('0x1e22')];_0x45b6a4+=0x1){_0xd1ca1d(_0x41c5a1[_0x2d8181('0x1073')][_0x2d8181('0x19b2')][_0x45b6a4]);}}function _0xc1baa5(_0x5115c9){const _0x20e59a=_0x5a5bdb;_0x41c5a1[_0x20e59a('0x1fbd')]=!![];!_0x5115c9&&(_0x41c5a1[_0x20e59a('0x1f2a')][_0x20e59a('0x1c2')]=0x1);_0x41c5a1[_0x20e59a('0x1f2a')][_0x20e59a('0x1393')]=(_0x41c5a1[_0x20e59a('0x1f2a')][_0x20e59a('0x1c2')]-0x1)*_0x41c5a1['query']['limit'];let _0x94a83a=_0x52b507[_0x20e59a('0xe4a')][_0x20e59a('0x2356')](_0x20e59a('0x10eb')+_0x41c5a1[_0x20e59a('0x21d9')]['id']);_0x94a83a=_0x94a83a?JSON['parse'](_0x94a83a):{},_0x94a83a[_0x20e59a('0x1f2a')]=_0x41c5a1[_0x20e59a('0x1f2a')],_0x52b507[_0x20e59a('0xe4a')][_0x20e59a('0x26d6')](_0x20e59a('0x10eb')+_0x41c5a1[_0x20e59a('0x21d9')]['id'],JSON[_0x20e59a('0x3e')](_0x94a83a)),_0x41c5a1['promise']=_0xeb5bdf[_0x20e59a('0x6ed')][_0x20e59a('0xbaa')](_0x41c5a1[_0x20e59a('0x1f2a')],_0x5bbab2)[_0x20e59a('0x1549')];}function _0x3248d4(_0x2fe4c9,_0x1c805a){const _0x29ec43=_0x5a5bdb;_0x493e32[_0x29ec43('0x25f5')]['vm'][_0x29ec43('0x226f')](_0x29ec43('0x1800'),_0x1c805a);}function _0x47b159(_0x5f55bb,_0x462ff4,_0x312bc7){const _0x4d2c83=_0x5a5bdb;_0xeb5bdf['chatInteraction']['download']({'id':_0x462ff4['id'],'attachments':_0x312bc7})[_0x4d2c83('0x1549')][_0x4d2c83('0x11bf')](function(_0x585bfe){const _0x500300=_0x4d2c83,_0x4ebdfc=[_0x585bfe[_0x500300('0x1e94')]],_0x20abbe=_0x500300('0x101c')+_0x462ff4['id']+_0x500300('0x4a7'),_0x28f5b4=new Blob(_0x4ebdfc,{'type':_0x585bfe[_0x500300('0x19fd')]}),_0x5a36f3=window[_0x500300('0xb54')][_0x500300('0x2773')]('a');_0x5a36f3[_0x500300('0x1e1b')](_0x500300('0xead'),URL[_0x500300('0x44b')](_0x28f5b4)),_0x5a36f3[_0x500300('0x1e1b')](_0x500300('0x149c'),_0x20abbe),document[_0x500300('0x1d2')][_0x500300('0x131c')](_0x5a36f3),_0x5a36f3[_0x500300('0x1371')]();})['catch'](function(_0x5701ab){const _0xe66537=_0x4d2c83;if(_0x5701ab[_0xe66537('0x4e8')]&&_0x5701ab[_0xe66537('0x4e8')][_0xe66537('0x120f')]&&_0x5701ab['data'][_0xe66537('0x120f')][_0xe66537('0x1e22')])for(let _0x41230e=0x0;_0x41230e<_0x5701ab[_0xe66537('0x4e8')][_0xe66537('0x120f')]['length'];_0x41230e+=0x1){_0x309005['error']({'title':_0x5701ab[_0xe66537('0x4e8')][_0xe66537('0x120f')][_0x41230e][_0xe66537('0x19fd')],'msg':_0x5701ab['data'][_0xe66537('0x120f')][_0x41230e][_0xe66537('0x1b86')]});}else _0x309005[_0xe66537('0x255')]({'title':_0x5701ab[_0xe66537('0xff9')]?_0xe66537('0x574')+_0x5701ab['status']+_0xe66537('0xb0b')+_0x5701ab[_0xe66537('0x212f')]:_0xe66537('0x3e9'),'msg':_0x5701ab['data']?JSON[_0xe66537('0x3e')](_0x5701ab[_0xe66537('0x4e8')][_0xe66537('0x1b86')]):_0x5701ab[_0xe66537('0xaab')]()});});}function _0x5ad81f(_0x5a61ee,_0x416030){const _0x32bc76=_0x5a5bdb,_0x35bbff=_0x41c5a1['user'][_0x32bc76('0x20d')]||_0x41c5a1['user'][_0x32bc76('0x13c9')]||_0x41c5a1[_0x32bc76('0x21d9')][_0x32bc76('0x1f53')]||_0x41c5a1[_0x32bc76('0x21d9')][_0x32bc76('0xfc0')]||_0x41c5a1[_0x32bc76('0x21d9')]['faxPause'],_0x143641=!_0x416030[_0x32bc76('0x1e3c')][_0x32bc76('0x123b')];_0x21a3f3['show']({'controller':_0x32bc76('0xcd5'),'controllerAs':'vm','templateUrl':_0x35815a,'parent':angular['element'](_0x1bccb8[_0x32bc76('0x1d2')]),'clickOutsideToClose':_0x143641,'escapeToClose':_0x143641,'onRemoving':function(){const _0x4320c2=_0x32bc76;_0x41c5a1[_0x4320c2('0x21d9')]&&_0x416030[_0x4320c2('0x1e3c')]['mandatoryDisposition']&&!_0x35bbff&&_0xeb5bdf[_0x4320c2('0x21d9')]['unpause']({'id':_0x41c5a1[_0x4320c2('0x21d9')]['id']})['$promise'][_0x4320c2('0x151d')](function(_0xc5c73a){const _0x37e59e=_0x4320c2;console[_0x37e59e('0x255')](_0xc5c73a);});},'locals':{'user':_0x41c5a1[_0x32bc76('0x21d9')],'channel':_0x32bc76('0x1800'),'interaction':_0x416030}});}function _0xd1ca1d(_0x4d2418){const _0x5a3a74=_0x5a5bdb;_0x4d2418[_0x5a3a74('0xf10')]?_0x4d2418['contactName']=(_0x4d2418[_0x5a3a74('0xf10')][_0x5a3a74('0x13a0')]||'')+'\x20'+(_0x4d2418[_0x5a3a74('0xf10')][_0x5a3a74('0xcf3')]||''):_0x4d2418[_0x5a3a74('0xca9')]=_0x53d7a9[_0x5a3a74('0x10c2')](_0x5a3a74('0x1d85'));}function _0x28a344(_0x21e8b6){const _0x7af195=_0x5a5bdb;if(_0x21e8b6[_0x7af195('0x2342')])return _0x21e8b6[_0x7af195('0x2342')]===_0x41c5a1[_0x7af195('0x21d9')]['id']?_0x53d7a9[_0x7af195('0x10c2')](_0x7af195('0x275d')):_0x21e8b6[_0x7af195('0x657')][_0x7af195('0x27af')]+'\x20<'+_0x21e8b6['Owner'][_0x7af195('0x1a04')]+'>';return _0x53d7a9[_0x7af195('0x10c2')](_0x7af195('0x1a02'));}function _0x235b3c(_0x1f0d58){const _0x137168=_0x5a5bdb;if(_0x1f0d58['Account'])return _0x1f0d58[_0x137168('0x1e3c')][_0x137168('0xa0c')];return _0x53d7a9[_0x137168('0x10c2')]('APP.UNKNOWN');}function _0x57e128(_0x53b376){const _0x28d10c=_0x5a5bdb;let _0x214523;const _0x4a932d=_0x36f548()[_0x28d10c('0x1ad4')](_0x41c5a1[_0x28d10c('0x1073')]['rows'],{'id':_0x53b376[_0x28d10c('0x327')]});_0x4a932d&&_0x4a932d['Users']&&(_0x214523=_0x36f548()[_0x28d10c('0x1ad4')](_0x4a932d['Users'],{'id':_0x53b376[_0x28d10c('0x2342')]}),!_0x214523&&_0x4a932d[_0x28d10c('0xc42')]['push']({'id':_0x53b376[_0x28d10c('0x2342')]}));}function _0x3ee0bb(_0x51060e){const _0x17b015=_0x5a5bdb,_0x897e8=_0x36f548()[_0x17b015('0x1ad4')](_0x41c5a1[_0x17b015('0x1073')]['rows'],{'id':_0x51060e[_0x17b015('0x327')]});_0x897e8&&_0x897e8[_0x17b015('0xc42')]&&_0x36f548()[_0x17b015('0x14a5')](_0x897e8[_0x17b015('0xc42')],{'id':_0x51060e[_0x17b015('0x2342')]});}function _0xa664a6(_0x4b7fb7){const _0x538cb1=_0x5a5bdb;if(_0x4b7fb7){const _0x553f5e=_0x36f548()['find'](_0x41c5a1['chatInteractions'][_0x538cb1('0x19b2')],{'id':_0x4b7fb7['id']});if(_0x553f5e){_0x553f5e['Users']=[];_0x4b7fb7[_0x538cb1('0x949')]&&(_0x553f5e[_0x538cb1('0xf2')]=0x0);if(_0x41c5a1[_0x538cb1('0x1f2a')][_0x538cb1('0x1c16')]){const _0x5cac64=_0x36f548()[_0x538cb1('0x1eb7')](_0x41c5a1[_0x538cb1('0x1f2a')][_0x538cb1('0x1c16')],'-')?_0x538cb1('0x121a'):_0x538cb1('0x1875');_0x41c5a1[_0x538cb1('0x1073')][_0x538cb1('0x19b2')]=_0x36f548()[_0x538cb1('0x17d7')](_0x41c5a1[_0x538cb1('0x1073')]['rows'],_0x36f548()[_0x538cb1('0x13b1')](_0x41c5a1['query'][_0x538cb1('0x1c16')],'-'),_0x5cac64);}_0x36f548()[_0x538cb1('0x47b')](_0x553f5e,_0x36f548()['pick'](_0x4b7fb7,_0x36f548()[_0x538cb1('0xe22')](_0x553f5e)));}else _0xc1baa5(_0x41c5a1['query'][_0x538cb1('0x1c2')]);}}function _0x527f96(_0x5ee63f){const _0x2eaafa=_0x5a5bdb;if(_0x5ee63f){const _0x547de3=_0x36f548()[_0x2eaafa('0x1ad4')](_0x41c5a1[_0x2eaafa('0x1073')][_0x2eaafa('0x19b2')],{'id':_0x5ee63f['id']});_0x547de3&&(_0x547de3['Tags']=_0x5ee63f[_0x2eaafa('0x2763')]||[],_0x36f548()['merge'](_0x547de3,_0x36f548()['pick'](_0x5ee63f,_0x36f548()['keys'](_0x547de3))));}}function _0x1659b9(_0xedde4e){const _0x63eb41=_0x5a5bdb;if(_0xedde4e&&!_0xedde4e[_0x63eb41('0xdaa')]){const _0x12f527=_0x36f548()['find'](_0x41c5a1[_0x63eb41('0x1073')][_0x63eb41('0x19b2')],{'id':_0xedde4e['ChatInteractionId']});if(_0x12f527){const _0x6f2330=_0x36f548()[_0x63eb41('0x1ad4')](_0x12f527[_0x63eb41('0x3ad')],{'id':_0xedde4e['id']});_0x6f2330?_0x36f548()[_0x63eb41('0x47b')](_0x6f2330,_0x36f548()[_0x63eb41('0x258')](_0xedde4e,_0x36f548()[_0x63eb41('0xe22')](_0x6f2330))):(_0x36f548()['isNil'](_0x12f527[_0x63eb41('0x3ad')])&&(_0x12f527['Messages']={'count':0x0}),!_0xedde4e['read']&&(_0x12f527['Messages']['count']+=0x1));}}}function _0x1ad9a8(){const _0x1083f8=_0x5a5bdb;_0x41c5a1[_0x1083f8('0x12f7')]=![];}function _0x2d607f(){const _0x32f1a8=_0x5a5bdb;_0x41c5a1[_0x32f1a8('0x12f7')]=!![];}function _0x3d0636(){const _0x299668=_0x5a5bdb;_0x41c5a1[_0x299668('0x12f7')]=![],_0x21a3f3[_0x299668('0xb9')]({'controller':'AdvancedSearchController','controllerAs':'vm','templateUrl':_0x19602a,'parent':angular[_0x299668('0x1e73')](_0x1bccb8['body']),'clickOutsideToClose':![],'locals':{'color':_0x41c5a1['sectionColor'],'fields':_0x41c5a1[_0x299668('0xd6d')]['fields'],'storagePath':_0x299668('0x110e')},'fullscreen':!![]})[_0x299668('0x11bf')](function(_0x55def5){const _0x2b0e60=_0x299668;_0x41c5a1['query'][_0x2b0e60('0xce2')]=_0x55def5===![]?undefined:_0x55def5;if(_0x41c5a1['query']['search']||_0x55def5===![])_0xc1baa5();})[_0x299668('0x151d')](function(_0x21bb7f){const _0x4cbacd=_0x299668;_0x309005[_0x4cbacd('0x255')]({'title':_0x4cbacd('0x1d30'),'msg':_0x21bb7f[_0x4cbacd('0x4e8')]?JSON['stringify'](_0x21bb7f[_0x4cbacd('0x4e8')][_0x4cbacd('0x1b86')]):_0x21bb7f[_0x4cbacd('0xaab')]()});});}let _0x550ce6=!![],_0x5bf566=0x1;_0x493e32['$watch']('vm.query.filter',function(_0x2160f0,_0x478ffa){const _0x52d89c=_0x5a5bdb;_0x550ce6?_0x464c2d(function(){_0x550ce6=![];}):(!_0x478ffa&&(_0x5bf566=_0x41c5a1[_0x52d89c('0x1f2a')]['page']),_0x2160f0!==_0x478ffa&&(_0x41c5a1[_0x52d89c('0x1f2a')][_0x52d89c('0x1c2')]=0x1),!_0x2160f0&&(_0x41c5a1['query'][_0x52d89c('0x1c2')]=_0x5bf566),_0xc1baa5(_0x41c5a1[_0x52d89c('0x1f2a')][_0x52d89c('0x1c2')]));}),_0x493e32[_0x5a5bdb('0x12d8')](_0x5a5bdb('0x4f7'),function(){const _0x10a203=_0x5a5bdb;_0x57f4b8[_0x10a203('0x1b2e')]('chatMessage:save'),_0x57f4b8[_0x10a203('0x1b2e')](_0x10a203('0x71e')),_0x57f4b8['removeAllListeners']('chatInteraction:save'),_0x57f4b8['removeAllListeners'](_0x10a203('0x1f71')),_0x57f4b8['removeAllListeners'](_0x10a203('0x1f00')),_0x57f4b8[_0x10a203('0x1b2e')](_0x10a203('0x1edd')),_0x57f4b8['removeAllListeners'](_0x10a203('0xba7'));});}const _0x45e7d7=_0x2bbc46;_0x3593af[_0x21d0f5('0x1e9a')]=['$document',_0x21d0f5('0x1b80'),_0x21d0f5('0x17f5'),_0x21d0f5('0x1ca2'),_0x21d0f5('0x2143'),_0x21d0f5('0x1150'),_0x21d0f5('0x12a5'),_0x21d0f5('0x142d')];function _0x3593af(_0x160ccd,_0x5f5973,_0x5a1e21,_0x502496,_0xe12ea0,_0x3aba98,_0x43784c,_0x1e9637){const _0x4a19de=_0x21d0f5,_0x5c819e=this;_0x5c819e['currentUser']=_0x3aba98[_0x4a19de('0x2428')](),_0x5c819e['lists']={},_0x5c819e[_0x4a19de('0x206c')]={'count':0x0,'rows':[]},_0x5c819e['tags']={'count':0x0,'rows':[]},_0x5c819e[_0x4a19de('0x1f2a')]={'includeAll':!![],'sort':_0x4a19de('0x1c74'),'limit':0xa,'page':0x1},_0x5c819e[_0x4a19de('0xd6d')]={'fields':[]},_0x5c819e[_0x4a19de('0x11e7')]=_0x4a19de('0x1878'),_0x5c819e['getContacts']=_0x3ac844,_0x5c819e[_0x4a19de('0x31f')]=_0x38f002,_0x5c819e[_0x4a19de('0xd5e')]=_0x22bf5c,_0x5c819e[_0x4a19de('0x1b01')]=_0x2c4565,_0x5c819e[_0x4a19de('0x9c8')]=_0x968cff,_0x5c819e[_0x4a19de('0x7c1')]=_0x5f5973[_0x4a19de('0x25f5')]['vm'][_0x4a19de('0x7c1')],_0x5c819e[_0x4a19de('0x277c')]=_0x2ac436,_0x5c819e[_0x4a19de('0xb31')]=_0x43b629,_0x5c819e[_0x4a19de('0x2049')]=_0x37e8ad,_0x5c819e[_0x4a19de('0x2297')]=_0x690019;function _0x2ac436(){const _0x4de115=_0x4a19de;_0x43784c['user'][_0x4de115('0x1161')]({'id':_0x5c819e['currentUser']['id'],'fields':_0x4de115('0x8d2'),'sort':_0x4de115('0x1909'),'nolimit':!![]})['$promise']['then'](function(_0x565f5f){const _0xac15d3=_0x4de115;return _0x5c819e['lists']=_0x565f5f||{'count':0x0,'rows':[]},_0x5c819e[_0xac15d3('0x1c89')]=_0x36f548()[_0xac15d3('0x2130')](_0x5c819e['lists'][_0xac15d3('0x19b2')],'id'),_0x43784c['tag'][_0xac15d3('0xbaa')]()[_0xac15d3('0x1549')];})['then'](function(_0x373d12){const _0x255e5b=_0x4de115;_0x5c819e[_0x255e5b('0x2763')]=_0x373d12||{'count':0x0,'rows':[]};})[_0x4de115('0x11bf')](function(){const _0x4b18da=_0x4de115;_0x5c819e[_0x4b18da('0x7db')]=_0x20cb96();})[_0x4de115('0x151d')](function(_0x570e24){console['error'](_0x570e24);})[_0x4de115('0xa9b')](function(){const _0x31a0c0=_0x4de115;let _0x5b1295=_0xe12ea0[_0x31a0c0('0xe4a')][_0x31a0c0('0x2356')](_0x31a0c0('0x20c6')+_0x5c819e['currentUser']['id']);if(_0x5b1295)try{_0x5b1295=JSON[_0x31a0c0('0x1850')](_0x5b1295);if(_0x5b1295[_0x31a0c0('0x1f2a')]){_0x5c819e[_0x31a0c0('0x1f2a')]=_0x36f548()[_0x31a0c0('0x47b')](_0x5c819e[_0x31a0c0('0x1f2a')],_0x5b1295[_0x31a0c0('0x1f2a')]);if(_0x36f548()['isEmpty'](_0x5c819e[_0x31a0c0('0x2410')]['rows']))_0x5c819e[_0x31a0c0('0x1f2a')][_0x31a0c0('0x1e91')]=[];else _0x36f548()['isEmpty'](_0x5c819e[_0x31a0c0('0x1f2a')][_0x31a0c0('0x1e91')])&&(_0x5c819e[_0x31a0c0('0x1f2a')][_0x31a0c0('0x1e91')]=_0x36f548()(_0x5c819e[_0x31a0c0('0x2410')][_0x31a0c0('0x19b2')])['map']('id')[_0x31a0c0('0x1d3f')]()['value']());}}catch(_0x540984){console[_0x31a0c0('0xc78')](_0x540984);}else _0x5c819e['query'][_0x31a0c0('0x1e91')]=_0x36f548()[_0x31a0c0('0x2171')](_0x5c819e[_0x31a0c0('0x2410')][_0x31a0c0('0x19b2')],'id');_0x5c819e[_0x31a0c0('0x12f7')]=_0x5c819e[_0x31a0c0('0x1f2a')][_0x31a0c0('0xdb4')]?!![]:![],_0x3ac844();});}function _0x20cb96(){const _0x16071e=_0x4a19de;return[{'name':_0x16071e('0x2474'),'key':_0x16071e('0x1e91'),'type':'multiselect','label':'CONTACTMANAGER.SELECT_LIST','options':_0x5c819e['lists'][_0x16071e('0x19b2')],'clearAll':![]},{'name':_0x16071e('0x23ba'),'key':_0x16071e('0x1d73'),'type':_0x16071e('0xe83'),'label':_0x16071e('0x9b9'),'options':_0x5c819e[_0x16071e('0x2763')]['rows'],'placeholder':_0x16071e('0x1f9a')}];}function _0x12812d(_0x33b5e8){const _0x371e07=_0x4a19de;_0x5c819e[_0x371e07('0x1fbd')]=![],_0x5c819e['contacts']=_0x33b5e8||{'count':0x0,'rows':[]};}function _0x3ac844(_0x4393e9){const _0x24bbe2=_0x4a19de;_0x5c819e[_0x24bbe2('0x1fbd')]=!![],_0x33840b();!_0x4393e9&&(_0x5c819e['query']['page']=0x1);_0x5c819e['query']['offset']=(_0x5c819e[_0x24bbe2('0x1f2a')][_0x24bbe2('0x1c2')]-0x1)*_0x5c819e[_0x24bbe2('0x1f2a')][_0x24bbe2('0xd5c')];let _0x4ceedf=_0xe12ea0['localStorage'][_0x24bbe2('0x2356')](_0x24bbe2('0x20c6')+_0x5c819e[_0x24bbe2('0x32a')]['id']);_0x4ceedf=_0x4ceedf?JSON[_0x24bbe2('0x1850')](_0x4ceedf):{},_0x4ceedf[_0x24bbe2('0x1f2a')]=_0x5c819e[_0x24bbe2('0x1f2a')],_0xe12ea0[_0x24bbe2('0xe4a')]['setItem'](_0x24bbe2('0x20c6')+_0x5c819e['currentUser']['id'],JSON['stringify'](_0x4ceedf)),_0x5c819e[_0x24bbe2('0x13f')]=_0x43784c[_0x24bbe2('0x1b8f')][_0x24bbe2('0xbaa')](_0x5c819e[_0x24bbe2('0x1f2a')],_0x12812d)['$promise'];}function _0x968cff(_0x426688){const _0x25ce86=_0x4a19de;return _0x43784c[_0x25ce86('0x1b8f')][_0x25ce86('0xbaa')]({'id':_0x426688})[_0x25ce86('0x1549')][_0x25ce86('0x11bf')](function(_0x49b010){const _0x8644e8=_0x25ce86;_0x5f5973[_0x8644e8('0x25f5')]['vm'][_0x8644e8('0x20b3')](_0x49b010);});}function _0x38f002(){_0x3ac844();}function _0x2c4565(_0x31c446,_0x3e7f22){const _0x1d47d9=_0x4a19de;_0x502496['show']({'controller':_0x1d47d9('0xfd8'),'controllerAs':'vm','templateUrl':_0x492638,'parent':angular[_0x1d47d9('0x1e73')](_0x160ccd['body']),'targetEvent':_0x31c446,'clickOutsideToClose':!![],'resolve':{'contact':['apiResolver',function(_0x56f41d){const _0x312a7e=_0x1d47d9;return _0x56f41d[_0x312a7e('0xa28')]('cmContact@get',{'id':_0x3e7f22['id']});}],'lists':['apiResolver',function(_0x1df3c6){const _0x8d9192=_0x1d47d9;return _0x1df3c6[_0x8d9192('0xa28')](_0x8d9192('0x4b4'),{'id':_0x5c819e['currentUser']['id'],'fields':'id,name'});}]},'locals':{'contacts':_0x5c819e[_0x1d47d9('0x206c')][_0x1d47d9('0x19b2')]}});}function _0x22bf5c(_0x58ccf4,_0x230963){const _0xa34ed8=_0x4a19de;_0x502496[_0xa34ed8('0xb9')]({'controller':'MergeContactDialogController','controllerAs':'vm','templateUrl':_0x33f96f,'parent':angular['element'](_0x160ccd[_0xa34ed8('0x1d2')]),'targetEvent':_0x58ccf4,'clickOutsideToClose':!![],'resolve':{'contact':[_0xa34ed8('0x218e'),function(_0x35107c){const _0x540f37=_0xa34ed8;return _0x35107c['resolve'](_0x540f37('0x1923'),{'id':_0x230963['id']});}],'lists':[_0xa34ed8('0x218e'),function(_0x1cdaa6){const _0x46cd10=_0xa34ed8;return _0x1cdaa6['resolve'](_0x46cd10('0x4b4'),{'id':_0x5c819e['currentUser']['id'],'fields':_0x46cd10('0x721')});}]},'locals':{'contacts':_0x5c819e[_0xa34ed8('0x206c')][_0xa34ed8('0x19b2')]}});}function _0x43b629(){_0x5c819e['isSearchBarVisible']=![];}function _0x37e8ad(){const _0x1b28e2=_0x4a19de;_0x5c819e[_0x1b28e2('0x12f7')]=!![];}function _0x33840b(){const _0x4aea40=_0x4a19de;return _0x43784c['cmContact'][_0x4aea40('0x19a5')]({'id':_0x5c819e['query'][_0x4aea40('0x1e91')]})[_0x4aea40('0x1549')][_0x4aea40('0x11bf')](function(_0x65e13f){const _0x9e1a0f=_0x4aea40;return _0x36f548()(_0x65e13f[_0x9e1a0f('0x2866')]())[_0x9e1a0f('0x196f')]('UserId')[_0x9e1a0f('0x1643')]()[_0x9e1a0f('0x2171')](function(_0x510cf1){return _0x41a9a7(_0x510cf1);})[_0x9e1a0f('0x10cc')]();})[_0x4aea40('0x11bf')](function(_0x106740){const _0x3dac7a=_0x4aea40;_0x5c819e['advancedSearch'][_0x3dac7a('0x1067')]=_0x106740;const _0x8bf3d8={'name':_0x3dac7a('0x806'),'column':_0x3dac7a('0x23ba'),'type':_0x3dac7a('0xe83'),'options':{'route':{'model':_0x3dac7a('0x1d73'),'action':_0x3dac7a('0xbaa'),'params':{'nolimit':!![]}},'excludedOperators':[_0x3dac7a('0x1239')]}};let _0x2b8f31=_0x36f548()[_0x3dac7a('0x1b12')](_0x106740,function(_0x4ce60c){const _0x1ad865=_0x3dac7a;return _0x36f548()['startsWith'](_0x4ce60c[_0x1ad865('0x6a3')],_0x1ad865('0x57a'));})||_0x106740[_0x3dac7a('0x1e22')]-0x1;if(_0x2b8f31<0x0)_0x2b8f31=_0x106740['length'];_0x5c819e[_0x3dac7a('0xd6d')][_0x3dac7a('0x1067')]['splice'](_0x2b8f31,0x0,_0x8bf3d8);})[_0x4aea40('0x151d')](function(_0x2ed43d){const _0xc65fb7=_0x4aea40;_0x1e9637[_0xc65fb7('0x255')]({'title':_0x2ed43d[_0xc65fb7('0xff9')]?'API:'+_0x2ed43d['status']+_0xc65fb7('0xb0b')+_0x2ed43d[_0xc65fb7('0x212f')]:_0xc65fb7('0xb4'),'msg':_0x2ed43d[_0xc65fb7('0x4e8')]?JSON[_0xc65fb7('0x3e')](_0x2ed43d['data'][_0xc65fb7('0x1b86')]):_0x2ed43d[_0xc65fb7('0xaab')]()});});}function _0x41a9a7(_0x19c7c9){const _0x16f118=_0x4a19de,_0x556d67={'name':_0x36f548()[_0x16f118('0x13cf')](_0x19c7c9[_0x16f118('0x22cf')]),'column':_0x19c7c9[_0x16f118('0x12e3')],'options':{}};if(_0x19c7c9[_0x16f118('0xa8d')])switch(_0x19c7c9['custom'][_0x16f118('0x19fd')]){case'text':_0x556d67[_0x16f118('0x19fd')]=_0x16f118('0x25ed');break;case _0x16f118('0x2350'):_0x556d67[_0x16f118('0x19fd')]=_0x16f118('0xe83'),_0x556d67[_0x16f118('0x1643')]=_0x36f548()[_0x16f118('0x2171')](JSON[_0x16f118('0x1850')](_0x19c7c9['custom']['values']),function(_0x4d9689,_0x25a5b9){const _0x22c4e4=_0x16f118;return{'id':_0x25a5b9,'name':_0x4d9689[_0x22c4e4('0x10cc')],'value':_0x4d9689[_0x22c4e4('0x10cc')]};}),_0x556d67[_0x16f118('0x249a')][_0x16f118('0x485')]='name';break;case'switch':_0x556d67[_0x16f118('0x19fd')]=_0x16f118('0x2350'),_0x556d67['values']=[{'id':0x1,'translate':_0x16f118('0x283')},{'id':0x0,'translate':_0x16f118('0x148')}],_0x556d67[_0x16f118('0x249a')]['excludedOperators']=[_0x16f118('0x27c1')];break;case _0x16f118('0x139e'):_0x556d67[_0x16f118('0x19fd')]=_0x16f118('0x139e');break;case'datetime':_0x556d67[_0x16f118('0x19fd')]=_0x16f118('0x22f7');break;}else switch(_0x19c7c9[_0x16f118('0x12e3')]){case _0x16f118('0xba4'):_0x556d67[_0x16f118('0x19fd')]=_0x16f118('0x22f7');break;case'CompanyId':_0x556d67[_0x16f118('0x1909')]=_0x16f118('0x216e'),_0x556d67[_0x16f118('0x19fd')]=_0x16f118('0x282b'),_0x556d67['options']['route']={'model':'cmCompany','action':'get','params':{'fields':_0x16f118('0x721'),'nolimit':!![]}},_0x556d67[_0x16f118('0x249a')]['searchFields']=[_0x16f118('0x1909')],_0x556d67[_0x16f118('0x249a')][_0x16f118('0x1e7f')]=[_0x16f118('0x27c1')];break;case _0x16f118('0x1e91'):_0x556d67['name']=_0x16f118('0x2474'),_0x556d67[_0x16f118('0x19fd')]='autocomplete',_0x556d67[_0x16f118('0x249a')][_0x16f118('0x17d8')]={'model':_0x16f118('0x21d9'),'action':_0x16f118('0x1161'),'params':{'id':_0x5c819e[_0x16f118('0x32a')]['id'],'fields':_0x16f118('0x721'),'nolimit':!![]}},_0x556d67[_0x16f118('0x249a')]['searchFields']=[_0x16f118('0x1909')],_0x556d67[_0x16f118('0x249a')][_0x16f118('0x1e7f')]=[_0x16f118('0x27c1')];break;default:if(_0x36f548()[_0x16f118('0x55a')](_0x19c7c9[_0x16f118('0x19fd')][_0x16f118('0x20d5')](),_0x16f118('0x241')))_0x556d67['type']=_0x16f118('0x139e');else _0x36f548()[_0x16f118('0x55a')](_0x19c7c9[_0x16f118('0x19fd')][_0x16f118('0x20d5')](),'date')?_0x556d67['type']='date':_0x556d67['type']=_0x16f118('0x25ed');break;}return _0x556d67;}function _0x690019(){const _0x269f70=_0x4a19de;_0x5c819e[_0x269f70('0x12f7')]=![],_0x502496[_0x269f70('0xb9')]({'controller':_0x269f70('0x5'),'controllerAs':'vm','templateUrl':_0x19602a,'parent':angular[_0x269f70('0x1e73')](_0x160ccd[_0x269f70('0x1d2')]),'clickOutsideToClose':![],'locals':{'color':_0x5c819e[_0x269f70('0x11e7')],'fields':_0x5c819e[_0x269f70('0xd6d')][_0x269f70('0x1067')],'storagePath':'home.contacts'},'fullscreen':!![]})[_0x269f70('0x11bf')](function(_0x15335a){const _0x5d1225=_0x269f70;_0x5c819e[_0x5d1225('0x1f2a')][_0x5d1225('0xce2')]=_0x15335a===![]?undefined:_0x15335a;if(_0x5c819e[_0x5d1225('0x1f2a')]['search']||_0x15335a===![])_0x3ac844();})[_0x269f70('0x151d')](function(_0x57d97a){const _0x3f464f=_0x269f70;_0x1e9637[_0x3f464f('0x255')]({'title':_0x3f464f('0x1d30'),'msg':_0x57d97a[_0x3f464f('0x4e8')]?JSON[_0x3f464f('0x3e')](_0x57d97a['data'][_0x3f464f('0x1b86')]):_0x57d97a[_0x3f464f('0xaab')]()});});}let _0x49cfc9=!![],_0xfbd251=0x1;_0x5f5973[_0x4a19de('0x2087')](_0x4a19de('0x842'),function(_0xcd96f7,_0x3bc951){const _0x18d44f=_0x4a19de;_0x49cfc9?_0x5a1e21(function(){_0x49cfc9=![];}):(!_0x3bc951&&(_0xfbd251=_0x5c819e[_0x18d44f('0x1f2a')][_0x18d44f('0x1c2')]),_0xcd96f7!==_0x3bc951&&(_0x5c819e[_0x18d44f('0x1f2a')][_0x18d44f('0x1c2')]=0x1),!_0xcd96f7&&(_0x5c819e[_0x18d44f('0x1f2a')]['page']=_0xfbd251),_0x3ac844());});}const _0x156998=_0x3593af;_0xe7954b[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0x1fd')];function _0xe7954b(_0x1905da,_0x17ed7d){const _0x3436b6=_0x21d0f5;let _0x4ad4b8=_0x17ed7d(function(){},0x3e7);_0x1905da[_0x3436b6('0x12d8')](_0x3436b6('0x4f7'),function(){_0x4ad4b8&&(_0x17ed7d['cancel'](_0x4ad4b8),_0x4ad4b8=null);});}const _0x2783d8=_0xe7954b;_0x5a7c97[_0x21d0f5('0x1e9a')]=['$scope',_0x21d0f5('0x17f5'),_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),_0x21d0f5('0x2143'),_0x21d0f5('0xb6b'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),'socket'];function _0x5a7c97(_0x10a130,_0x35c888,_0x265a54,_0x17ec2e,_0x1d4ce9,_0x52e896,_0x2dbe62,_0x4bfb72,_0x1346a7){const _0x17ef74=_0x21d0f5,_0xfb335=this,_0x3a06b6=[_0x17ef74('0x19fd'),_0x17ef74('0x1491'),'dialMethod','dialActive'];_0xfb335[_0x17ef74('0x1b52')]={},_0xfb335[_0x17ef74('0x1f6b')]=0x0,_0xfb335[_0x17ef74('0x2176')]={},_0xfb335['getVoiceQueues']={},_0xfb335[_0x17ef74('0x101e')]={},_0xfb335[_0x17ef74('0x1fb4')]={},_0xfb335['deleteVoiceQueuesChannels']=[],_0xfb335['load']=!![],_0xfb335[_0x17ef74('0x1f2a')]={'id':_0x4bfb72['getCurrentUser']()['id'],'fields':'id,name,type,dialMethod,dialActive','channel':_0x17ef74('0x1bc3'),'type':_0x17ef74('0x25b6'),'limit':0xa,'page':0x1},_0xfb335['queryChannels']={'limit':0xa,'page':0x1},_0xfb335[_0x17ef74('0x2693')]=_0x383c7b,_0xfb335[_0x17ef74('0x20a8')]=_0x4810a0,_0xfb335['getSize']=_0x54754a,_0xfb335[_0x17ef74('0x26ef')]=_0x2d9fce,_0xfb335[_0x17ef74('0x9a4')]=_0x51ca5b,_0xfb335[_0x17ef74('0x10e0')]=_0x1bba55,_0xfb335['onSaveVoiceQueue']=_0x18ced8,_0xfb335[_0x17ef74('0x1160')]=_0x34d2f5,_0xfb335['onRemoveVoiceQueue']=_0x257a06,_0x1346a7[_0x17ef74('0x284d')]('voice_queue:save',_0xfb335[_0x17ef74('0x26ef')]),_0x1346a7[_0x17ef74('0x284d')](_0x17ef74('0x1d09'),_0xfb335[_0x17ef74('0x9a4')]),_0x1346a7[_0x17ef74('0x284d')](_0x17ef74('0x1929'),_0xfb335[_0x17ef74('0x10e0')]),_0x1346a7[_0x17ef74('0x284d')](_0x17ef74('0x5c6'),_0xfb335['onUserVoiceQueue']),_0x1346a7[_0x17ef74('0x284d')](_0x17ef74('0x953'),_0xfb335[_0x17ef74('0x31b')]),_0x1346a7[_0x17ef74('0x284d')](_0x17ef74('0x2239'),_0xfb335[_0x17ef74('0xd7f')]),_0x1346a7[_0x17ef74('0x284d')](_0x17ef74('0x19a0'),_0xfb335[_0x17ef74('0x1160')]),_0x2dbe62['rpc']['getVoiceQueues']()[_0x17ef74('0x1549')][_0x17ef74('0x11bf')](function(_0x12faab){const _0x1efc2d=_0x17ef74;return _0xfb335[_0x1efc2d('0x2176')]=_0x12faab?_0x36f548()[_0x1efc2d('0x2130')](_0x12faab[_0x1efc2d('0x19b2')]?_0x12faab['rows']:[],'id'):{},_0x2dbe62['rpc'][_0x1efc2d('0x15c3')]()[_0x1efc2d('0x1549')];})[_0x17ef74('0x11bf')](function(_0xfba56d){const _0x4e3aac=_0x17ef74;_0xfb335[_0x4e3aac('0x101e')]=_0xfba56d?_0x36f548()[_0x4e3aac('0x2130')](_0xfba56d[_0x4e3aac('0x19b2')]?_0x36f548()[_0x4e3aac('0xdb4')](_0xfba56d['rows'],{'type':'outbound','queuecallerleaveAt':null}):[],'uniqueid'):{};})['catch'](function(_0x3bea4d){const _0x28a0c2=_0x17ef74;console[_0x28a0c2('0x255')](_0x3bea4d);})[_0x17ef74('0xa9b')](function(){const _0x3a97a4=_0x17ef74;_0x36f548()[_0x3a97a4('0x47b')](_0xfb335[_0x3a97a4('0x101e')],_0xfb335[_0x3a97a4('0x1fb4')]);for(let _0x1cf68f=0x0;_0x1cf68f<_0xfb335[_0x3a97a4('0x1ae2')]['length'];_0x1cf68f+=0x1){delete _0xfb335['rpcVoiceQueuesChannels'][_0xfb335[_0x3a97a4('0x1ae2')][_0x1cf68f]];}_0xfb335[_0x3a97a4('0x215b')]=![],_0xfb335[_0x3a97a4('0x1fb4')]={},_0xfb335['deleteVoiceQueuesChannels']=[],_0xfb335[_0x3a97a4('0x20a8')]();});function _0x383c7b(_0x15792d){const _0x2c020b=_0x17ef74;_0xfb335[_0x2c020b('0x1f6b')]=_0x15792d[_0x2c020b('0x27d2')]?_0x15792d[_0x2c020b('0x27d2')]:0x0,_0xfb335['voiceQueues']=_0x15792d?_0x36f548()[_0x2c020b('0x2130')](_0x15792d[_0x2c020b('0x19b2')]?_0x15792d[_0x2c020b('0x19b2')]:[],'id'):{},_0x1ad2be();}function _0x4810a0(){const _0x12c02d=_0x17ef74;_0xfb335[_0x12c02d('0x1f2a')]['offset']=(_0xfb335['query'][_0x12c02d('0x1c2')]-0x1)*_0xfb335['query']['limit'],_0xfb335[_0x12c02d('0x13f')]=_0x2dbe62['user']['getQueues'](_0xfb335[_0x12c02d('0x1f2a')],_0x383c7b)['$promise'];}let _0x164ca2=!![],_0x486bab=0x1;_0x10a130[_0x17ef74('0x2087')](_0x17ef74('0x1d12'),function(_0x44014c,_0x569946){const _0x4a5545=_0x17ef74;_0x164ca2?_0x35c888(function(){_0x164ca2=![];}):(!_0x569946&&(_0x486bab=_0xfb335[_0x4a5545('0x1f2a')][_0x4a5545('0x1c2')]),_0x44014c!==_0x569946&&(_0xfb335[_0x4a5545('0x1f2a')][_0x4a5545('0x1c2')]=0x1),!_0x44014c&&(_0xfb335[_0x4a5545('0x1f2a')][_0x4a5545('0x1c2')]=_0x486bab),_0xfb335[_0x4a5545('0x20a8')]());});function _0x54754a(_0xe25739){return _0x36f548()['size'](_0xe25739);}function _0x1ad2be(){const _0xfedc9=_0x17ef74;_0x36f548()[_0xfedc9('0x41e')](_0xfb335[_0xfedc9('0x1b52')],function(_0x274b76,_0x67dd53){const _0x4d60fc=_0xfedc9;_0xfb335[_0x4d60fc('0x2176')][_0x67dd53]&&(_0xfb335[_0x4d60fc('0x1b52')][_0x67dd53][_0x4d60fc('0x1491')]=_0xfb335['rpcVoiceQueues'][_0x67dd53]['waiting']||0x0);});}function _0x2d9fce(_0x6740f6){const _0x5c17bd=_0x17ef74;_0xfb335[_0x5c17bd('0x1b52')][_0x6740f6['id']]&&(_0xfb335['rpcVoiceQueues'][_0x6740f6['id']]&&(_0xfb335[_0x5c17bd('0x2176')][_0x6740f6['id']]=_0x6740f6,_0x36f548()[_0x5c17bd('0x47b')](_0xfb335[_0x5c17bd('0x1b52')][_0x6740f6['id']],_0x36f548()[_0x5c17bd('0x258')](_0x6740f6,_0x3a06b6))));}function _0x51ca5b(_0x5d795a){const _0xff2c54=_0x17ef74;_0x5d795a['type']===_0xff2c54('0x25b6')&&(_0x5d795a[_0xff2c54('0x18bf')]?(delete _0xfb335[_0xff2c54('0x101e')][_0x5d795a[_0xff2c54('0x938')]],_0xfb335[_0xff2c54('0x215b')]&&_0xfb335['deleteVoiceQueuesChannels'][_0xff2c54('0x105d')](_0x5d795a[_0xff2c54('0x938')])):(_0xfb335[_0xff2c54('0x101e')][_0x5d795a['uniqueid']]=_0x5d795a,_0xfb335[_0xff2c54('0x215b')]&&(_0xfb335['addVoiceQueuesChannels'][_0x5d795a[_0xff2c54('0x938')]]=_0x5d795a)));}function _0x18ced8(_0x103c16){const _0x10dc1c=_0x17ef74;!_0x36f548()['isNil'](_0x103c16)&&(_0xfb335[_0x10dc1c('0x2176')][_0x103c16['id']]=_0x36f548()['pick'](_0x103c16,_0x3a06b6));}function _0x34d2f5(_0x25b702){const _0x2f818a=_0x17ef74;!_0x36f548()[_0x2f818a('0x1a80')](_0x25b702)&&(_0xfb335[_0x2f818a('0x2176')][_0x25b702['id']]&&_0x36f548()[_0x2f818a('0x47b')](_0xfb335['rpcVoiceQueues'][_0x25b702['id']],_0x36f548()['pick'](_0x25b702,_0x3a06b6)),_0xfb335[_0x2f818a('0x1b52')][_0x25b702['id']]&&_0x36f548()[_0x2f818a('0x47b')](_0xfb335[_0x2f818a('0x1b52')][_0x25b702['id']],_0x36f548()[_0x2f818a('0x258')](_0x25b702,_0x3a06b6)));}function _0x257a06(_0x48d31c){const _0x6f0631=_0x17ef74;!_0x36f548()[_0x6f0631('0x1a80')](_0x48d31c)&&(delete _0xfb335[_0x6f0631('0x2176')][_0x48d31c['id']],delete _0xfb335[_0x6f0631('0x1b52')][_0x48d31c['id']]);}function _0x1bba55(_0x1b4890){const _0x26e560=_0x17ef74;_0x36f548()[_0x26e560('0x1f51')](_0x1b4890[_0x26e560('0x2342')])===_0x4bfb72[_0x26e560('0x2428')]()['id']&&_0xfb335[_0x26e560('0x20a8')]();}_0x10a130[_0x17ef74('0x12d8')](_0x17ef74('0x4f7'),function(){const _0x2b50fe=_0x17ef74;_0x1346a7[_0x2b50fe('0x1b2e')](_0x2b50fe('0x259b')),_0x1346a7[_0x2b50fe('0x1b2e')](_0x2b50fe('0x1d09')),_0x1346a7[_0x2b50fe('0x1b2e')](_0x2b50fe('0x1929')),_0x1346a7[_0x2b50fe('0x1b2e')](_0x2b50fe('0x5c6')),_0x1346a7['removeAllListeners'](_0x2b50fe('0x953')),_0x1346a7[_0x2b50fe('0x1b2e')](_0x2b50fe('0x19a0')),_0x1346a7[_0x2b50fe('0x1b2e')](_0x2b50fe('0x2239'));});}const _0x10eb2b=_0x5a7c97;_0x3efe80[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0x17f5'),'$mdDialog',_0x21d0f5('0x1b30'),'$window','$translate',_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),_0x21d0f5('0x1d56')];function _0x3efe80(_0x58c37f,_0x1c595c,_0x27de19,_0x290d4e,_0x3d1ff6,_0x16e6f1,_0x40c1d0,_0x11a229,_0x4d0da5){const _0x3683d6=_0x21d0f5,_0x563e59=this,_0x4dffc8=['id',_0x3683d6('0x1909'),_0x3683d6('0x201d'),'waiting'];let _0x44bb7a=!![];_0x563e59[_0x3683d6('0x18cc')]={},_0x563e59[_0x3683d6('0x1acf')]=0x0,_0x563e59[_0x3683d6('0x4e')]={},_0x563e59[_0x3683d6('0x26a6')]=[],_0x563e59['deleteChatQueuesWaitingInteractions']=[],_0x563e59[_0x3683d6('0x1fd7')]={},_0x563e59['query']={'id':_0x11a229[_0x3683d6('0x2428')]()['id'],'channel':_0x3683d6('0x1800'),'fields':_0x3683d6('0x1274'),'limit':0xa,'page':0x1},_0x563e59[_0x3683d6('0x316')]={'limit':0xa,'page':0x1},_0x563e59[_0x3683d6('0x2693')]=_0x2df730,_0x563e59[_0x3683d6('0xa1f')]=_0x38e53,_0x563e59[_0x3683d6('0x1885')]=_0x3241ed,_0x563e59[_0x3683d6('0xa64')]=_0x1b272b,_0x563e59[_0x3683d6('0x1e9d')]=_0x55d65b,_0x563e59[_0x3683d6('0x26ef')]=_0x2e21f2,_0x563e59[_0x3683d6('0x15cf')]=_0x4f37c1,_0x563e59[_0x3683d6('0x27ff')]=_0x31a9fe,_0x563e59[_0x3683d6('0x1f5c')]=_0x53c9db,_0x563e59[_0x3683d6('0x1b4e')]=_0x383e95,_0x563e59[_0x3683d6('0x2032')]=_0x44d42d,_0x563e59['onSaveChatQueueChannel']=_0x5ecd2b,_0x563e59[_0x3683d6('0x151a')]=_0x3302e3,_0x4d0da5['onWithoutApply'](_0x3683d6('0x7b7'),_0x563e59[_0x3683d6('0x26ef')]),_0x4d0da5[_0x3683d6('0x284d')](_0x3683d6('0x11d8'),_0x563e59[_0x3683d6('0x15cf')]),_0x4d0da5[_0x3683d6('0x284d')](_0x3683d6('0xa89'),_0x563e59[_0x3683d6('0x27ff')]),_0x4d0da5[_0x3683d6('0x284d')](_0x3683d6('0x20c2'),_0x563e59[_0x3683d6('0x1f5c')]),_0x4d0da5[_0x3683d6('0x284d')](_0x3683d6('0x98b'),_0x563e59[_0x3683d6('0x1b4e')]),_0x4d0da5[_0x3683d6('0x284d')]('userChatQueue:remove',_0x563e59[_0x3683d6('0x2032')]),_0x4d0da5[_0x3683d6('0x284d')](_0x3683d6('0x11'),_0x563e59[_0x3683d6('0x9ab')]),_0x4d0da5[_0x3683d6('0x284d')]('chat_queue_waiting_interaction:remove',_0x563e59[_0x3683d6('0x151a')]),_0x40c1d0['rpc'][_0x3683d6('0xa1f')]()['$promise'][_0x3683d6('0x11bf')](function(_0x3ef6cd){const _0x53026b=_0x3683d6;_0x563e59[_0x53026b('0x4e')]=_0x3ef6cd?_0x36f548()['keyBy'](_0x3ef6cd['rows']?_0x3ef6cd['rows']:[],'id'):{};})[_0x3683d6('0x11bf')](function(){const _0x342834=_0x3683d6;return _0x40c1d0['user'][_0x342834('0x373')]({'id':_0x11a229['getCurrentUser']()['id'],'channel':'chat'})[_0x342834('0x1549')];})['then'](function(_0x514929){const _0x56029f=_0x3683d6;return _0x563e59[_0x56029f('0x142f')]=_0x514929[_0x56029f('0x19b2')],_0x40c1d0[_0x56029f('0x4db')]['getChatQueuesWaitingInteractions']()['$promise'];})['then'](function(_0x3a5daa){const _0x264190=_0x3683d6,_0x1dbff4=_0x36f548()[_0x264190('0xdb4')](_0x3a5daa[_0x264190('0x19b2')],function(_0x4b0ce7){const _0x5d3f3f=_0x264190;return _0x36f548()[_0x5d3f3f('0x55a')](_0x563e59['myQueues'],{'id':_0x4b0ce7[_0x5d3f3f('0xf00')]});});_0x3a5daa[_0x264190('0x19b2')]=_0x1dbff4,_0x3a5daa[_0x264190('0x27d2')]=_0x1dbff4['length'],_0x36f548()[_0x264190('0x47b')](_0x563e59[_0x264190('0x1fd7')],_0x3a5daa?_0x36f548()[_0x264190('0x2130')](_0x3a5daa[_0x264190('0x19b2')]?_0x3a5daa[_0x264190('0x19b2')]:[],'id'):{});})[_0x3683d6('0x151d')](function(_0x460d3f){const _0xc3f179=_0x3683d6;console[_0xc3f179('0x255')](_0x460d3f);})[_0x3683d6('0xa9b')](function(){const _0x418729=_0x3683d6;for(let _0x4082e8=0x0;_0x4082e8<_0x563e59[_0x418729('0x1e63')][_0x418729('0x1e22')];_0x4082e8+=0x1){delete _0x563e59[_0x418729('0x1fd7')][_0x563e59[_0x418729('0x1e63')][_0x4082e8]];}_0x44bb7a=![],_0x563e59[_0x418729('0x1e63')]=[],_0x38e53(),_0x55d65b();});function _0x55d65b(){const _0x162a19=_0x3683d6,_0x575c91=(_0x563e59[_0x162a19('0x316')]['page']-0x1)*_0x563e59['queryChannels'][_0x162a19('0xd5c')];_0x563e59[_0x162a19('0x26a6')]=_0x36f548()[_0x162a19('0x17d7')](_0x563e59[_0x162a19('0x1fd7')],[_0x162a19('0x6d4')],[_0x162a19('0x121a')]),_0x563e59[_0x162a19('0x601')]=_0x36f548()['drop'](_0x563e59[_0x162a19('0x26a6')],_0x575c91)['slice'](0x0,_0x563e59['queryChannels'][_0x162a19('0xd5c')]);}function _0x2df730(_0x355bc7){const _0x55285d=_0x3683d6;_0x563e59[_0x55285d('0x1acf')]=_0x355bc7[_0x55285d('0x27d2')]?_0x355bc7['count']:0x0,_0x563e59[_0x55285d('0x18cc')]=_0x355bc7?_0x36f548()[_0x55285d('0x2130')](_0x355bc7[_0x55285d('0x19b2')]?_0x355bc7['rows']:[],'id'):{},_0x29ed4b();}function _0x38e53(){const _0x4d3c53=_0x3683d6;_0x563e59[_0x4d3c53('0x1f2a')][_0x4d3c53('0x1393')]=(_0x563e59[_0x4d3c53('0x1f2a')][_0x4d3c53('0x1c2')]-0x1)*_0x563e59[_0x4d3c53('0x1f2a')]['limit'],_0x563e59[_0x4d3c53('0x13f')]=_0x40c1d0['user']['getQueues'](_0x563e59['query'],_0x2df730)[_0x4d3c53('0x1549')];}let _0x192588=!![],_0x428d33=0x1;_0x58c37f['$watch']('vm_dc.query.filter',function(_0x37651d,_0x252b7a){const _0x575e1b=_0x3683d6;_0x192588?_0x1c595c(function(){_0x192588=![];}):(!_0x252b7a&&(_0x428d33=_0x563e59[_0x575e1b('0x1f2a')][_0x575e1b('0x1c2')]),_0x37651d!==_0x252b7a&&(_0x563e59[_0x575e1b('0x1f2a')][_0x575e1b('0x1c2')]=0x1),!_0x37651d&&(_0x563e59[_0x575e1b('0x1f2a')][_0x575e1b('0x1c2')]=_0x428d33),_0x563e59[_0x575e1b('0xa1f')]());});function _0x3241ed(_0x5be598){const _0x45b0dd=_0x3683d6;return _0x36f548()[_0x45b0dd('0x12dd')](_0x5be598);}function _0x29ed4b(){const _0x1ee7e9=_0x3683d6;_0x36f548()['forIn'](_0x563e59[_0x1ee7e9('0x18cc')],function(_0x12d05a,_0x56c972){const _0x23c873=_0x1ee7e9;_0x563e59[_0x23c873('0x4e')][_0x56c972]&&(_0x563e59[_0x23c873('0x18cc')][_0x56c972]['waiting']=_0x563e59[_0x23c873('0x4e')][_0x56c972]['waiting']||0x0);});}function _0x2e21f2(_0x4b617c){const _0x3fbc44=_0x3683d6;_0x563e59['chatQueues'][_0x4b617c['id']]&&(_0x563e59['rpcChatQueues'][_0x4b617c['id']]&&(_0x36f548()[_0x3fbc44('0x47b')](_0x563e59[_0x3fbc44('0x4e')][_0x4b617c['id']],_0x36f548()[_0x3fbc44('0x258')](_0x4b617c,_0x4dffc8)),_0x36f548()[_0x3fbc44('0x47b')](_0x563e59[_0x3fbc44('0x18cc')][_0x4b617c['id']],_0x36f548()[_0x3fbc44('0x258')](_0x4b617c,_0x4dffc8))));}function _0x4f37c1(_0x3e020d){const _0x4ad80e=_0x3683d6;!_0x36f548()[_0x4ad80e('0x1a80')](_0x3e020d)&&(_0x563e59['rpcChatQueues'][_0x3e020d['id']]=_0x36f548()['pick'](_0x3e020d,_0x4dffc8));}function _0x31a9fe(_0xcba85b){const _0x273edd=_0x3683d6;!_0x36f548()[_0x273edd('0x1a80')](_0xcba85b)&&(_0x563e59[_0x273edd('0x4e')][_0xcba85b['id']]&&_0x36f548()['merge'](_0x563e59[_0x273edd('0x4e')][_0xcba85b['id']],_0x36f548()[_0x273edd('0x258')](_0xcba85b,_0x4dffc8)),_0x563e59[_0x273edd('0x18cc')][_0xcba85b['id']]&&_0x36f548()['merge'](_0x563e59[_0x273edd('0x18cc')][_0xcba85b['id']],_0x36f548()['pick'](_0xcba85b,_0x4dffc8)));}function _0x53c9db(_0x15bee0){const _0x2ae19e=_0x3683d6;!_0x36f548()[_0x2ae19e('0x1a80')](_0x15bee0)&&(delete _0x563e59[_0x2ae19e('0x4e')][_0x15bee0['id']],delete _0x563e59['chatQueues'][_0x15bee0['id']]);}function _0x383e95(_0x25e96b){const _0x1d5dd5=_0x3683d6;_0x36f548()['toInteger'](_0x25e96b[_0x1d5dd5('0x2342')])===_0x11a229[_0x1d5dd5('0x2428')]()['id']&&_0x563e59[_0x1d5dd5('0xa1f')]();}function _0x44d42d(_0x160045){const _0x4961e4=_0x3683d6;_0x36f548()[_0x4961e4('0x1f51')](_0x160045[_0x4961e4('0x2342')])===_0x11a229['getCurrentUser']()['id']&&_0x563e59['getChatQueues']();}function _0x5ecd2b(_0x136b72){const _0x25882b=_0x3683d6;_0x563e59[_0x25882b('0x18cc')][_0x136b72[_0x25882b('0xf00')]]&&(_0x563e59['rpcChatQueuesWaitingInteractions'][_0x136b72['id']]=_0x136b72,_0x55d65b());}function _0x3302e3(_0x5a9eed){const _0x50ff92=_0x3683d6;delete _0x563e59['rpcChatQueuesWaitingInteractions'][_0x5a9eed['id']],_0x44bb7a&&_0x563e59['deleteChatQueuesWaitingInteractions'][_0x50ff92('0x105d')](_0x5a9eed['id']),_0x55d65b();}function _0x1b272b(_0xefe856){const _0x147a15=_0x3683d6;switch(_0xefe856){case'chat':return _0x147a15('0x1adb');case _0x147a15('0x2030'):return _0x147a15('0xab6');case _0x147a15('0x4df'):return'orange-bg';case _0x147a15('0xe7c'):return _0x147a15('0x1983');case'openchannel':return _0x147a15('0xc31');case _0x147a15('0x2104'):return _0x147a15('0x1763');default:return _0x147a15('0x1789');}}_0x58c37f[_0x3683d6('0x12d8')](_0x3683d6('0x4f7'),function(){const _0x50b7e3=_0x3683d6;_0x4d0da5[_0x50b7e3('0x1b2e')](_0x50b7e3('0x7b7')),_0x4d0da5[_0x50b7e3('0x1b2e')](_0x50b7e3('0x11d8')),_0x4d0da5['removeAllListeners'](_0x50b7e3('0xa89')),_0x4d0da5[_0x50b7e3('0x1b2e')](_0x50b7e3('0x20c2')),_0x4d0da5[_0x50b7e3('0x1b2e')](_0x50b7e3('0x98b')),_0x4d0da5['removeAllListeners']('userChatQueue:remove'),_0x4d0da5[_0x50b7e3('0x1b2e')](_0x50b7e3('0x11')),_0x4d0da5[_0x50b7e3('0x1b2e')]('chat_queue_waiting_interaction:remove');});}const _0x544765=_0x3efe80;_0x890fb[_0x21d0f5('0x1e9a')]=['$scope',_0x21d0f5('0x17f5'),_0x21d0f5('0x1ca2'),'$document',_0x21d0f5('0x2143'),_0x21d0f5('0xb6b'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),_0x21d0f5('0x1d56')];function _0x890fb(_0x1c1753,_0x4fd4b2,_0x236dac,_0x14ab2b,_0x56002f,_0x34971b,_0x5452d7,_0x4b0d5f,_0x2c45b0){const _0x35f7ec=_0x21d0f5,_0x32b45a=this,_0x2e2518=['id',_0x35f7ec('0x1909'),'mapAgentsId',_0x35f7ec('0x1491')];let _0x259025=!![];_0x32b45a[_0x35f7ec('0x4dc')]={},_0x32b45a[_0x35f7ec('0x2186')]=0x0,_0x32b45a['rpcFaxQueues']={},_0x32b45a['paginatedInteractions']=[],_0x32b45a[_0x35f7ec('0x1354')]=[],_0x32b45a['rpcFaxQueuesWaitingInteractions']={},_0x32b45a[_0x35f7ec('0x1f2a')]={'id':_0x4b0d5f[_0x35f7ec('0x2428')]()['id'],'channel':_0x35f7ec('0x2104'),'fields':_0x35f7ec('0x1274'),'limit':0xa,'page':0x1},_0x32b45a['queryChannels']={'limit':0xa,'page':0x1},_0x32b45a[_0x35f7ec('0x2693')]=_0x598163,_0x32b45a[_0x35f7ec('0x13a1')]=_0x30c1ad,_0x32b45a['getSize']=_0x1c517f,_0x32b45a[_0x35f7ec('0xa64')]=_0x39e0ba,_0x32b45a[_0x35f7ec('0x1e9d')]=_0x3e4442,_0x32b45a[_0x35f7ec('0x26ef')]=_0x561c2a,_0x32b45a[_0x35f7ec('0x117a')]=_0x6e665e,_0x32b45a[_0x35f7ec('0x1cff')]=_0x594cb1,_0x32b45a['onRemoveFaxQueue']=_0x50bb03,_0x32b45a[_0x35f7ec('0x108a')]=_0x49da83,_0x32b45a[_0x35f7ec('0x1470')]=_0xe841d2,_0x32b45a[_0x35f7ec('0x1fed')]=_0xaff7c4,_0x32b45a['onRemoveFaxQueueChannel']=_0xf8b08f,_0x2c45b0['onWithoutApply'](_0x35f7ec('0x229'),_0x32b45a[_0x35f7ec('0x26ef')]),_0x2c45b0[_0x35f7ec('0x284d')](_0x35f7ec('0xd3a'),_0x32b45a[_0x35f7ec('0x117a')]),_0x2c45b0[_0x35f7ec('0x284d')](_0x35f7ec('0x99f'),_0x32b45a[_0x35f7ec('0x1cff')]),_0x2c45b0[_0x35f7ec('0x284d')]('faxQueue:remove',_0x32b45a['onRemoveFaxQueue']),_0x2c45b0['onWithoutApply'](_0x35f7ec('0x9d9'),_0x32b45a[_0x35f7ec('0x108a')]),_0x2c45b0[_0x35f7ec('0x284d')](_0x35f7ec('0x15f3'),_0x32b45a[_0x35f7ec('0x1470')]),_0x2c45b0[_0x35f7ec('0x284d')](_0x35f7ec('0x1e6f'),_0x32b45a['onSaveFaxQueueChannel']),_0x2c45b0['onWithoutApply'](_0x35f7ec('0x1b54'),_0x32b45a[_0x35f7ec('0x2822')]),_0x5452d7[_0x35f7ec('0x4db')][_0x35f7ec('0x13a1')]()['$promise'][_0x35f7ec('0x11bf')](function(_0x4b1261){const _0x315b14=_0x35f7ec;_0x32b45a[_0x315b14('0x14db')]=_0x4b1261?_0x36f548()[_0x315b14('0x2130')](_0x4b1261[_0x315b14('0x19b2')]?_0x4b1261[_0x315b14('0x19b2')]:[],'id'):{};})[_0x35f7ec('0x11bf')](function(){const _0x2ff448=_0x35f7ec;return _0x5452d7[_0x2ff448('0x21d9')]['getQueues']({'id':_0x4b0d5f[_0x2ff448('0x2428')]()['id'],'channel':'fax'})['$promise'];})[_0x35f7ec('0x11bf')](function(_0x4904b2){const _0x4e7bb1=_0x35f7ec;return _0x32b45a['myQueues']=_0x4904b2[_0x4e7bb1('0x19b2')],_0x5452d7[_0x4e7bb1('0x4db')][_0x4e7bb1('0x18b4')]()[_0x4e7bb1('0x1549')];})[_0x35f7ec('0x11bf')](function(_0x2141e8){const _0x548d00=_0x35f7ec,_0x36054b=_0x36f548()[_0x548d00('0xdb4')](_0x2141e8['rows'],function(_0x4459a3){const _0x5a0f61=_0x548d00;return _0x36f548()[_0x5a0f61('0x55a')](_0x32b45a[_0x5a0f61('0x142f')],{'id':_0x4459a3[_0x5a0f61('0xf00')]});});_0x2141e8['rows']=_0x36054b,_0x2141e8['count']=_0x36054b[_0x548d00('0x1e22')],_0x36f548()[_0x548d00('0x47b')](_0x32b45a[_0x548d00('0x2713')],_0x2141e8?_0x36f548()['keyBy'](_0x2141e8[_0x548d00('0x19b2')]?_0x2141e8['rows']:[],'id'):{});})[_0x35f7ec('0x151d')](function(_0x11802e){const _0x46e2d1=_0x35f7ec;console[_0x46e2d1('0x255')](_0x11802e);})['finally'](function(){const _0x2114a2=_0x35f7ec;for(let _0x222b45=0x0;_0x222b45<_0x32b45a[_0x2114a2('0x1354')][_0x2114a2('0x1e22')];_0x222b45+=0x1){delete _0x32b45a[_0x2114a2('0x2713')][_0x32b45a[_0x2114a2('0x1354')][_0x222b45]];}_0x259025=![],_0x32b45a['deleteFaxQueuesWaitingInteractions']=[],_0x30c1ad(),_0x3e4442();});function _0x3e4442(){const _0x237ffe=_0x35f7ec,_0x218519=(_0x32b45a['queryChannels'][_0x237ffe('0x1c2')]-0x1)*_0x32b45a[_0x237ffe('0x316')]['limit'];_0x32b45a[_0x237ffe('0x26a6')]=_0x36f548()[_0x237ffe('0x17d7')](_0x32b45a[_0x237ffe('0x2713')],['joinAt'],[_0x237ffe('0x121a')]),_0x32b45a[_0x237ffe('0x601')]=_0x36f548()['drop'](_0x32b45a[_0x237ffe('0x26a6')],_0x218519)[_0x237ffe('0x1b77')](0x0,_0x32b45a[_0x237ffe('0x316')][_0x237ffe('0xd5c')]);}function _0x598163(_0x3e9579){const _0x1ec1c1=_0x35f7ec;_0x32b45a[_0x1ec1c1('0x2186')]=_0x3e9579[_0x1ec1c1('0x27d2')]?_0x3e9579[_0x1ec1c1('0x27d2')]:0x0,_0x32b45a[_0x1ec1c1('0x4dc')]=_0x3e9579?_0x36f548()['keyBy'](_0x3e9579[_0x1ec1c1('0x19b2')]?_0x3e9579[_0x1ec1c1('0x19b2')]:[],'id'):{},_0x279082();}function _0x30c1ad(){const _0x4e422d=_0x35f7ec;_0x32b45a[_0x4e422d('0x1f2a')]['offset']=(_0x32b45a['query'][_0x4e422d('0x1c2')]-0x1)*_0x32b45a[_0x4e422d('0x1f2a')][_0x4e422d('0xd5c')],_0x32b45a[_0x4e422d('0x13f')]=_0x5452d7['user'][_0x4e422d('0x373')](_0x32b45a[_0x4e422d('0x1f2a')],_0x598163)[_0x4e422d('0x1549')];}let _0x4c419c=!![],_0x287f12=0x1;_0x1c1753[_0x35f7ec('0x2087')](_0x35f7ec('0x1d12'),function(_0x5a05e4,_0x47829f){const _0x5c01f9=_0x35f7ec;_0x4c419c?_0x4fd4b2(function(){_0x4c419c=![];}):(!_0x47829f&&(_0x287f12=_0x32b45a[_0x5c01f9('0x1f2a')][_0x5c01f9('0x1c2')]),_0x5a05e4!==_0x47829f&&(_0x32b45a[_0x5c01f9('0x1f2a')]['page']=0x1),!_0x5a05e4&&(_0x32b45a[_0x5c01f9('0x1f2a')][_0x5c01f9('0x1c2')]=_0x287f12),_0x32b45a[_0x5c01f9('0x13a1')]());});function _0x1c517f(_0x54a622){const _0x4f33db=_0x35f7ec;return _0x36f548()[_0x4f33db('0x12dd')](_0x54a622);}function _0x279082(){const _0xfd9a7c=_0x35f7ec;_0x36f548()[_0xfd9a7c('0x41e')](_0x32b45a[_0xfd9a7c('0x4dc')],function(_0x47eef0,_0x1e7065){const _0x205ed9=_0xfd9a7c;_0x32b45a[_0x205ed9('0x14db')][_0x1e7065]&&(_0x32b45a[_0x205ed9('0x4dc')][_0x1e7065]['waiting']=_0x32b45a['rpcFaxQueues'][_0x1e7065]['waiting']||0x0);});}function _0x561c2a(_0x232819){const _0x191b38=_0x35f7ec;_0x32b45a[_0x191b38('0x4dc')][_0x232819['id']]&&(_0x32b45a['rpcFaxQueues'][_0x232819['id']]&&(_0x36f548()[_0x191b38('0x47b')](_0x32b45a[_0x191b38('0x14db')][_0x232819['id']],_0x36f548()['pick'](_0x232819,_0x2e2518)),_0x36f548()['merge'](_0x32b45a[_0x191b38('0x4dc')][_0x232819['id']],_0x36f548()['pick'](_0x232819,_0x2e2518))));}function _0x6e665e(_0x2bcb3c){const _0x36f4e1=_0x35f7ec;!_0x36f548()[_0x36f4e1('0x1a80')](_0x2bcb3c)&&(_0x32b45a['rpcFaxQueues'][_0x2bcb3c['id']]=_0x36f548()[_0x36f4e1('0x258')](_0x2bcb3c,_0x2e2518));}function _0x594cb1(_0xa3ac25){const _0x468d23=_0x35f7ec;!_0x36f548()[_0x468d23('0x1a80')](_0xa3ac25)&&(_0x32b45a[_0x468d23('0x14db')][_0xa3ac25['id']]&&_0x36f548()[_0x468d23('0x47b')](_0x32b45a[_0x468d23('0x14db')][_0xa3ac25['id']],_0x36f548()['pick'](_0xa3ac25,_0x2e2518)),_0x32b45a[_0x468d23('0x4dc')][_0xa3ac25['id']]&&_0x36f548()[_0x468d23('0x47b')](_0x32b45a[_0x468d23('0x4dc')][_0xa3ac25['id']],_0x36f548()[_0x468d23('0x258')](_0xa3ac25,_0x2e2518)));}function _0x50bb03(_0x3145dc){const _0x5b4c63=_0x35f7ec;!_0x36f548()['isNil'](_0x3145dc)&&(delete _0x32b45a['rpcFaxQueues'][_0x3145dc['id']],delete _0x32b45a[_0x5b4c63('0x4dc')][_0x3145dc['id']]);}function _0x49da83(_0x2ba712){const _0x5a715=_0x35f7ec;_0x36f548()[_0x5a715('0x1f51')](_0x2ba712[_0x5a715('0x2342')])===_0x4b0d5f[_0x5a715('0x2428')]()['id']&&_0x32b45a[_0x5a715('0x13a1')]();}function _0xe841d2(_0x1faf89){const _0x23c7a1=_0x35f7ec;_0x36f548()[_0x23c7a1('0x1f51')](_0x1faf89[_0x23c7a1('0x2342')])===_0x4b0d5f[_0x23c7a1('0x2428')]()['id']&&_0x32b45a[_0x23c7a1('0x13a1')]();}function _0xaff7c4(_0x36ca79){const _0x4d9b98=_0x35f7ec;_0x32b45a[_0x4d9b98('0x4dc')][_0x36ca79[_0x4d9b98('0xf00')]]&&(_0x32b45a[_0x4d9b98('0x2713')][_0x36ca79['id']]=_0x36ca79,_0x3e4442());}function _0xf8b08f(_0x2ef2d5){const _0x37cde1=_0x35f7ec;delete _0x32b45a[_0x37cde1('0x2713')][_0x2ef2d5['id']],_0x259025&&_0x32b45a[_0x37cde1('0x1354')][_0x37cde1('0x105d')](_0x2ef2d5['id']),_0x3e4442();}function _0x39e0ba(_0x2c2898){const _0x3c7407=_0x35f7ec;switch(_0x2c2898){case _0x3c7407('0x1800'):return'green-A700-bg';case'mail':return _0x3c7407('0xab6');case _0x3c7407('0x4df'):return _0x3c7407('0x2622');case'whatsapp':return _0x3c7407('0x1983');case _0x3c7407('0xb18'):return'amber-A200-bg';case _0x3c7407('0x2104'):return _0x3c7407('0x1763');default:return _0x3c7407('0x1789');}}_0x1c1753[_0x35f7ec('0x12d8')](_0x35f7ec('0x4f7'),function(){const _0x3301c9=_0x35f7ec;_0x2c45b0[_0x3301c9('0x1b2e')](_0x3301c9('0x229')),_0x2c45b0[_0x3301c9('0x1b2e')](_0x3301c9('0xd3a')),_0x2c45b0['removeAllListeners'](_0x3301c9('0x99f')),_0x2c45b0['removeAllListeners'](_0x3301c9('0xfde')),_0x2c45b0[_0x3301c9('0x1b2e')]('userFaxQueue:save'),_0x2c45b0[_0x3301c9('0x1b2e')]('userFaxQueue:remove'),_0x2c45b0['removeAllListeners'](_0x3301c9('0x1e6f')),_0x2c45b0['removeAllListeners'](_0x3301c9('0x1b54'));});}const _0x22945b=_0x890fb;_0x1423bc[_0x21d0f5('0x1e9a')]=['$scope',_0x21d0f5('0x17f5'),_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),_0x21d0f5('0x2143'),_0x21d0f5('0xb6b'),'api',_0x21d0f5('0x1150'),_0x21d0f5('0x1d56')];function _0x1423bc(_0x33ba46,_0x45852c,_0x1aa63f,_0x59d3aa,_0x15e9eb,_0x3c723b,_0x39b17f,_0x164daa,_0x55974a){const _0x161bf3=_0x21d0f5,_0x13daf3=this,_0x3d88fb=['id',_0x161bf3('0x1909'),_0x161bf3('0x201d'),_0x161bf3('0x1491')];let _0x4172ae=!![];_0x13daf3[_0x161bf3('0xce')]={},_0x13daf3['mailQueuesTotal']=0x0,_0x13daf3['rpcMailQueues']={},_0x13daf3[_0x161bf3('0x26a6')]=[],_0x13daf3[_0x161bf3('0x1b46')]=[],_0x13daf3[_0x161bf3('0x2307')]={},_0x13daf3[_0x161bf3('0x1f2a')]={'id':_0x164daa['getCurrentUser']()['id'],'channel':_0x161bf3('0x2030'),'fields':_0x161bf3('0x1274'),'limit':0xa,'page':0x1},_0x13daf3[_0x161bf3('0x316')]={'limit':0xa,'page':0x1},_0x13daf3['success']=_0x1d0ed3,_0x13daf3['getMailQueues']=_0x21fdf5,_0x13daf3['getSize']=_0x5b71bc,_0x13daf3[_0x161bf3('0xa64')]=_0x4b4828,_0x13daf3[_0x161bf3('0x1e9d')]=_0x6a372b,_0x13daf3['onSaveQueue']=_0x1a9d50,_0x13daf3[_0x161bf3('0x1b6')]=_0xda4efc,_0x13daf3[_0x161bf3('0x1fbc')]=_0x4861bb,_0x13daf3[_0x161bf3('0x619')]=_0xba8376,_0x13daf3[_0x161bf3('0xa98')]=_0x4b1f8e,_0x13daf3['onRemoveUserMailQueue']=_0x31a00f,_0x13daf3[_0x161bf3('0x198e')]=_0x3ee3fd,_0x13daf3[_0x161bf3('0x146d')]=_0xcbde86,_0x55974a['onWithoutApply']('mail_queue:save',_0x13daf3[_0x161bf3('0x26ef')]),_0x55974a[_0x161bf3('0x284d')](_0x161bf3('0x174c'),_0x13daf3[_0x161bf3('0x1b6')]),_0x55974a['onWithoutApply'](_0x161bf3('0x1045'),_0x13daf3[_0x161bf3('0x1fbc')]),_0x55974a[_0x161bf3('0x284d')](_0x161bf3('0xab5'),_0x13daf3[_0x161bf3('0x619')]),_0x55974a[_0x161bf3('0x284d')]('userMailQueue:save',_0x13daf3[_0x161bf3('0xa98')]),_0x55974a[_0x161bf3('0x284d')](_0x161bf3('0xec0'),_0x13daf3[_0x161bf3('0x1f')]),_0x55974a[_0x161bf3('0x284d')]('mail_queue_waiting_interaction:save',_0x13daf3[_0x161bf3('0x198e')]),_0x55974a[_0x161bf3('0x284d')](_0x161bf3('0x123'),_0x13daf3[_0x161bf3('0x146d')]),_0x39b17f['rpc'][_0x161bf3('0x179c')]()[_0x161bf3('0x1549')][_0x161bf3('0x11bf')](function(_0x19962e){const _0x165054=_0x161bf3;_0x13daf3[_0x165054('0x1a76')]=_0x19962e?_0x36f548()[_0x165054('0x2130')](_0x19962e[_0x165054('0x19b2')]?_0x19962e[_0x165054('0x19b2')]:[],'id'):{};})['then'](function(){const _0x4a3c5c=_0x161bf3;return _0x39b17f[_0x4a3c5c('0x21d9')][_0x4a3c5c('0x373')]({'id':_0x164daa[_0x4a3c5c('0x2428')]()['id'],'channel':_0x4a3c5c('0x2030')})[_0x4a3c5c('0x1549')];})[_0x161bf3('0x11bf')](function(_0x488a96){const _0x5302db=_0x161bf3;return _0x13daf3[_0x5302db('0x142f')]=_0x488a96[_0x5302db('0x19b2')],_0x39b17f[_0x5302db('0x4db')][_0x5302db('0x1c9')]()[_0x5302db('0x1549')];})[_0x161bf3('0x11bf')](function(_0xe084d){const _0x5c58bf=_0x161bf3,_0x2bc32a=_0x36f548()[_0x5c58bf('0xdb4')](_0xe084d[_0x5c58bf('0x19b2')],function(_0x4781ed){const _0x5aefb0=_0x5c58bf;return _0x36f548()[_0x5aefb0('0x55a')](_0x13daf3[_0x5aefb0('0x142f')],{'id':_0x4781ed['queue_id']});});_0xe084d['rows']=_0x2bc32a,_0xe084d[_0x5c58bf('0x27d2')]=_0x2bc32a[_0x5c58bf('0x1e22')],_0x36f548()[_0x5c58bf('0x47b')](_0x13daf3[_0x5c58bf('0x2307')],_0xe084d?_0x36f548()[_0x5c58bf('0x2130')](_0xe084d['rows']?_0xe084d['rows']:[],'id'):{});})[_0x161bf3('0x151d')](function(_0x37c1ed){console['error'](_0x37c1ed);})[_0x161bf3('0xa9b')](function(){const _0x128015=_0x161bf3;for(let _0x54affc=0x0;_0x54affc<_0x13daf3['deleteMailQueuesWaitingInteractions'][_0x128015('0x1e22')];_0x54affc+=0x1){delete _0x13daf3[_0x128015('0x2307')][_0x13daf3[_0x128015('0x1b46')][_0x54affc]];}_0x4172ae=![],_0x13daf3[_0x128015('0x1b46')]=[],_0x21fdf5(),_0x6a372b();});function _0x6a372b(){const _0x3f6f1a=_0x161bf3,_0x133460=(_0x13daf3[_0x3f6f1a('0x316')]['page']-0x1)*_0x13daf3[_0x3f6f1a('0x316')][_0x3f6f1a('0xd5c')];_0x13daf3[_0x3f6f1a('0x26a6')]=_0x36f548()[_0x3f6f1a('0x17d7')](_0x13daf3['rpcMailQueuesWaitingInteractions'],[_0x3f6f1a('0x6d4')],['desc']),_0x13daf3[_0x3f6f1a('0x601')]=_0x36f548()[_0x3f6f1a('0x1077')](_0x13daf3[_0x3f6f1a('0x26a6')],_0x133460)[_0x3f6f1a('0x1b77')](0x0,_0x13daf3['queryChannels'][_0x3f6f1a('0xd5c')]);}function _0x1d0ed3(_0x17c042){const _0x500b6a=_0x161bf3;_0x13daf3[_0x500b6a('0x8f2')]=_0x17c042[_0x500b6a('0x27d2')]?_0x17c042[_0x500b6a('0x27d2')]:0x0,_0x13daf3[_0x500b6a('0xce')]=_0x17c042?_0x36f548()[_0x500b6a('0x2130')](_0x17c042['rows']?_0x17c042['rows']:[],'id'):{},_0x35d107();}function _0x21fdf5(){const _0x5b8139=_0x161bf3;_0x13daf3[_0x5b8139('0x1f2a')][_0x5b8139('0x1393')]=(_0x13daf3[_0x5b8139('0x1f2a')]['page']-0x1)*_0x13daf3['query'][_0x5b8139('0xd5c')],_0x13daf3[_0x5b8139('0x13f')]=_0x39b17f[_0x5b8139('0x21d9')][_0x5b8139('0x373')](_0x13daf3['query'],_0x1d0ed3)[_0x5b8139('0x1549')];}let _0x3b1ba8=!![],_0x29b839=0x1;_0x33ba46[_0x161bf3('0x2087')](_0x161bf3('0x1d12'),function(_0x498e5d,_0x315456){const _0x7865b=_0x161bf3;_0x3b1ba8?_0x45852c(function(){_0x3b1ba8=![];}):(!_0x315456&&(_0x29b839=_0x13daf3[_0x7865b('0x1f2a')][_0x7865b('0x1c2')]),_0x498e5d!==_0x315456&&(_0x13daf3[_0x7865b('0x1f2a')][_0x7865b('0x1c2')]=0x1),!_0x498e5d&&(_0x13daf3[_0x7865b('0x1f2a')]['page']=_0x29b839),_0x13daf3[_0x7865b('0x179c')]());});function _0x5b71bc(_0x79f997){return _0x36f548()['size'](_0x79f997);}function _0x35d107(){const _0x4f9ff7=_0x161bf3;_0x36f548()[_0x4f9ff7('0x41e')](_0x13daf3['mailQueues'],function(_0xafeca0,_0x5027cd){const _0x44c085=_0x4f9ff7;_0x13daf3[_0x44c085('0x1a76')][_0x5027cd]&&(_0x13daf3['mailQueues'][_0x5027cd][_0x44c085('0x1491')]=_0x13daf3[_0x44c085('0x1a76')][_0x5027cd][_0x44c085('0x1491')]||0x0);});}function _0x1a9d50(_0x392cc2){const _0x1d463d=_0x161bf3;_0x13daf3[_0x1d463d('0xce')][_0x392cc2['id']]&&(_0x13daf3[_0x1d463d('0x1a76')][_0x392cc2['id']]&&(_0x36f548()['merge'](_0x13daf3[_0x1d463d('0x1a76')][_0x392cc2['id']],_0x36f548()[_0x1d463d('0x258')](_0x392cc2,_0x3d88fb)),_0x36f548()['merge'](_0x13daf3['mailQueues'][_0x392cc2['id']],_0x36f548()[_0x1d463d('0x258')](_0x392cc2,_0x3d88fb))));}function _0xda4efc(_0x38c2a3){const _0x77e4b4=_0x161bf3;!_0x36f548()[_0x77e4b4('0x1a80')](_0x38c2a3)&&(_0x13daf3[_0x77e4b4('0x1a76')][_0x38c2a3['id']]=_0x36f548()[_0x77e4b4('0x258')](_0x38c2a3,_0x3d88fb));}function _0x4861bb(_0x1f38e){const _0x45c0da=_0x161bf3;!_0x36f548()[_0x45c0da('0x1a80')](_0x1f38e)&&(_0x13daf3['rpcMailQueues'][_0x1f38e['id']]&&_0x36f548()[_0x45c0da('0x47b')](_0x13daf3[_0x45c0da('0x1a76')][_0x1f38e['id']],_0x36f548()[_0x45c0da('0x258')](_0x1f38e,_0x3d88fb)),_0x13daf3['mailQueues'][_0x1f38e['id']]&&_0x36f548()[_0x45c0da('0x47b')](_0x13daf3[_0x45c0da('0xce')][_0x1f38e['id']],_0x36f548()['pick'](_0x1f38e,_0x3d88fb)));}function _0xba8376(_0x120aa5){const _0x164978=_0x161bf3;!_0x36f548()[_0x164978('0x1a80')](_0x120aa5)&&(delete _0x13daf3['rpcMailQueues'][_0x120aa5['id']],delete _0x13daf3[_0x164978('0xce')][_0x120aa5['id']]);}function _0x4b1f8e(_0x2e12e9){const _0x3351fb=_0x161bf3;_0x36f548()[_0x3351fb('0x1f51')](_0x2e12e9[_0x3351fb('0x2342')])===_0x164daa[_0x3351fb('0x2428')]()['id']&&_0x13daf3['getMailQueues']();}function _0x31a00f(_0x2f50c2){const _0x5e1b56=_0x161bf3;_0x36f548()[_0x5e1b56('0x1f51')](_0x2f50c2[_0x5e1b56('0x2342')])===_0x164daa[_0x5e1b56('0x2428')]()['id']&&_0x13daf3['getMailQueues']();}function _0x3ee3fd(_0xba27a7){const _0x1eb7f7=_0x161bf3;_0x13daf3[_0x1eb7f7('0xce')][_0xba27a7['queue_id']]&&(_0x13daf3[_0x1eb7f7('0x2307')][_0xba27a7['id']]=_0xba27a7,_0x6a372b());}function _0xcbde86(_0x36d53b){const _0x127c7e=_0x161bf3;delete _0x13daf3[_0x127c7e('0x2307')][_0x36d53b['id']],_0x4172ae&&_0x13daf3[_0x127c7e('0x1b46')][_0x127c7e('0x105d')](_0x36d53b['id']),_0x6a372b();}function _0x4b4828(_0x579ae3){const _0x409683=_0x161bf3;switch(_0x579ae3){case _0x409683('0x1800'):return _0x409683('0x1adb');case _0x409683('0x2030'):return _0x409683('0xab6');case _0x409683('0x4df'):return'orange-bg';case _0x409683('0xe7c'):return'lime-A700-bg';case _0x409683('0xb18'):return'amber-A200-bg';case _0x409683('0x2104'):return _0x409683('0x1763');default:return _0x409683('0x1789');}}_0x33ba46[_0x161bf3('0x12d8')](_0x161bf3('0x4f7'),function(){const _0x3007b7=_0x161bf3;_0x55974a['removeAllListeners'](_0x3007b7('0x1f3d')),_0x55974a[_0x3007b7('0x1b2e')]('mailQueue:save'),_0x55974a[_0x3007b7('0x1b2e')]('mailQueue:update'),_0x55974a['removeAllListeners'](_0x3007b7('0xab5')),_0x55974a[_0x3007b7('0x1b2e')]('userMailQueue:save'),_0x55974a[_0x3007b7('0x1b2e')](_0x3007b7('0xec0')),_0x55974a[_0x3007b7('0x1b2e')](_0x3007b7('0xc7c')),_0x55974a[_0x3007b7('0x1b2e')](_0x3007b7('0x123'));});}const _0x425a60=_0x1423bc;_0x5e7717[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),'$timeout','$mdDialog',_0x21d0f5('0x1b30'),_0x21d0f5('0x2143'),'$translate','api',_0x21d0f5('0x1150'),_0x21d0f5('0x1d56')];function _0x5e7717(_0x11d6f1,_0x4e1161,_0x1dc70c,_0x199f71,_0x4ed020,_0x348b67,_0x429966,_0x4753f2,_0x5ec652){const _0x498a01=_0x21d0f5,_0x39b91b=this,_0x488dec=['id',_0x498a01('0x1909'),'mapAgentsId',_0x498a01('0x1491')];let _0x32ada0=!![];_0x39b91b[_0x498a01('0xe1b')]={},_0x39b91b[_0x498a01('0x16a9')]=0x0,_0x39b91b[_0x498a01('0x605')]={},_0x39b91b[_0x498a01('0x26a6')]=[],_0x39b91b['deleteOpenchannelQueuesWaitingInteractions']=[],_0x39b91b['rpcOpenchannelQueuesWaitingInteractions']={},_0x39b91b[_0x498a01('0x1f2a')]={'id':_0x4753f2['getCurrentUser']()['id'],'channel':_0x498a01('0xb18'),'fields':_0x498a01('0x1274'),'limit':0xa,'page':0x1},_0x39b91b[_0x498a01('0x316')]={'limit':0xa,'page':0x1},_0x39b91b[_0x498a01('0x2693')]=_0x201c8e,_0x39b91b[_0x498a01('0x474')]=_0x118ce1,_0x39b91b['getSize']=_0x565daf,_0x39b91b[_0x498a01('0xa64')]=_0x2770ce,_0x39b91b['paginate']=_0x4e27ff,_0x39b91b[_0x498a01('0x26ef')]=_0x4a9fff,_0x39b91b[_0x498a01('0x5e4')]=_0x1f8f03,_0x39b91b[_0x498a01('0xf27')]=_0x334581,_0x39b91b[_0x498a01('0x139a')]=_0x2fa9a1,_0x39b91b[_0x498a01('0x114')]=_0x1c3919,_0x39b91b[_0x498a01('0x375')]=_0x29bb41,_0x39b91b[_0x498a01('0xb6')]=_0x467481,_0x39b91b[_0x498a01('0xbf5')]=_0x4a19ff,_0x5ec652['onWithoutApply']('openchannel_queue:save',_0x39b91b['onSaveQueue']),_0x5ec652[_0x498a01('0x284d')](_0x498a01('0x10a1'),_0x39b91b['onSaveOpenchannelQueue']),_0x5ec652[_0x498a01('0x284d')](_0x498a01('0xb60'),_0x39b91b['onUpdateOpenchannelQueue']),_0x5ec652['onWithoutApply'](_0x498a01('0xaf6'),_0x39b91b[_0x498a01('0x139a')]),_0x5ec652[_0x498a01('0x284d')]('userOpenchannelQueue:save',_0x39b91b[_0x498a01('0x114')]),_0x5ec652[_0x498a01('0x284d')](_0x498a01('0x1556'),_0x39b91b['onRemoveUserOpenchannelQueue']),_0x5ec652[_0x498a01('0x284d')]('openchannel_queue_waiting_interaction:save',_0x39b91b['onSaveOpenchannelQueueChannel']),_0x5ec652[_0x498a01('0x284d')]('openchannel_queue_waiting_interaction:remove',_0x39b91b[_0x498a01('0xbf5')]),_0x429966[_0x498a01('0x4db')][_0x498a01('0x474')]()[_0x498a01('0x1549')]['then'](function(_0x37a539){const _0x4521e2=_0x498a01;_0x39b91b[_0x4521e2('0x605')]=_0x37a539?_0x36f548()[_0x4521e2('0x2130')](_0x37a539[_0x4521e2('0x19b2')]?_0x37a539[_0x4521e2('0x19b2')]:[],'id'):{};})['then'](function(){const _0x235a98=_0x498a01;return _0x429966[_0x235a98('0x21d9')][_0x235a98('0x373')]({'id':_0x4753f2[_0x235a98('0x2428')]()['id'],'channel':_0x235a98('0xb18')})['$promise'];})['then'](function(_0x29da7f){const _0xb4a03e=_0x498a01;return _0x39b91b['myQueues']=_0x29da7f['rows'],_0x429966['rpc'][_0xb4a03e('0xbfc')]()[_0xb4a03e('0x1549')];})[_0x498a01('0x11bf')](function(_0x27ae98){const _0x533afb=_0x498a01,_0x45097c=_0x36f548()[_0x533afb('0xdb4')](_0x27ae98[_0x533afb('0x19b2')],function(_0x3ade1e){const _0x5a189b=_0x533afb;return _0x36f548()['includes'](_0x39b91b['myQueues'],{'id':_0x3ade1e[_0x5a189b('0xf00')]});});_0x27ae98[_0x533afb('0x19b2')]=_0x45097c,_0x27ae98[_0x533afb('0x27d2')]=_0x45097c[_0x533afb('0x1e22')],_0x36f548()[_0x533afb('0x47b')](_0x39b91b['rpcOpenchannelQueuesWaitingInteractions'],_0x27ae98?_0x36f548()[_0x533afb('0x2130')](_0x27ae98[_0x533afb('0x19b2')]?_0x27ae98[_0x533afb('0x19b2')]:[],'id'):{});})[_0x498a01('0x151d')](function(_0x413a81){const _0x392d56=_0x498a01;console[_0x392d56('0x255')](_0x413a81);})[_0x498a01('0xa9b')](function(){const _0x14c9c4=_0x498a01;for(let _0x537e5f=0x0;_0x537e5f<_0x39b91b[_0x14c9c4('0x1ec')][_0x14c9c4('0x1e22')];_0x537e5f+=0x1){delete _0x39b91b[_0x14c9c4('0x1516')][_0x39b91b[_0x14c9c4('0x1ec')][_0x537e5f]];}_0x32ada0=![],_0x39b91b[_0x14c9c4('0x1ec')]=[],_0x118ce1(),_0x4e27ff();});function _0x4e27ff(){const _0x1650b3=_0x498a01,_0x303bc1=(_0x39b91b[_0x1650b3('0x316')][_0x1650b3('0x1c2')]-0x1)*_0x39b91b[_0x1650b3('0x316')][_0x1650b3('0xd5c')];_0x39b91b['paginatedInteractions']=_0x36f548()['orderBy'](_0x39b91b[_0x1650b3('0x1516')],[_0x1650b3('0x6d4')],[_0x1650b3('0x121a')]),_0x39b91b[_0x1650b3('0x601')]=_0x36f548()[_0x1650b3('0x1077')](_0x39b91b['paginatedInteractions'],_0x303bc1)[_0x1650b3('0x1b77')](0x0,_0x39b91b[_0x1650b3('0x316')][_0x1650b3('0xd5c')]);}function _0x201c8e(_0x2f6407){const _0x83a5d2=_0x498a01;_0x39b91b[_0x83a5d2('0x16a9')]=_0x2f6407[_0x83a5d2('0x27d2')]?_0x2f6407['count']:0x0,_0x39b91b[_0x83a5d2('0xe1b')]=_0x2f6407?_0x36f548()[_0x83a5d2('0x2130')](_0x2f6407[_0x83a5d2('0x19b2')]?_0x2f6407[_0x83a5d2('0x19b2')]:[],'id'):{},_0x5dfdfe();}function _0x118ce1(){const _0x2667e0=_0x498a01;_0x39b91b[_0x2667e0('0x1f2a')][_0x2667e0('0x1393')]=(_0x39b91b[_0x2667e0('0x1f2a')][_0x2667e0('0x1c2')]-0x1)*_0x39b91b[_0x2667e0('0x1f2a')][_0x2667e0('0xd5c')],_0x39b91b[_0x2667e0('0x13f')]=_0x429966[_0x2667e0('0x21d9')]['getQueues'](_0x39b91b['query'],_0x201c8e)[_0x2667e0('0x1549')];}let _0xd95769=!![],_0x4e63e1=0x1;_0x11d6f1[_0x498a01('0x2087')](_0x498a01('0x1d12'),function(_0x1806fb,_0x3cfe5f){const _0x5a84ab=_0x498a01;_0xd95769?_0x4e1161(function(){_0xd95769=![];}):(!_0x3cfe5f&&(_0x4e63e1=_0x39b91b[_0x5a84ab('0x1f2a')][_0x5a84ab('0x1c2')]),_0x1806fb!==_0x3cfe5f&&(_0x39b91b[_0x5a84ab('0x1f2a')]['page']=0x1),!_0x1806fb&&(_0x39b91b[_0x5a84ab('0x1f2a')][_0x5a84ab('0x1c2')]=_0x4e63e1),_0x39b91b[_0x5a84ab('0x474')]());});function _0x565daf(_0x33700b){return _0x36f548()['size'](_0x33700b);}function _0x5dfdfe(){const _0x1a6628=_0x498a01;_0x36f548()[_0x1a6628('0x41e')](_0x39b91b['openchannelQueues'],function(_0x39f33d,_0x5a652b){const _0x39cc56=_0x1a6628;_0x39b91b[_0x39cc56('0x605')][_0x5a652b]&&(_0x39b91b[_0x39cc56('0xe1b')][_0x5a652b]['waiting']=_0x39b91b[_0x39cc56('0x605')][_0x5a652b]['waiting']||0x0);});}function _0x4a9fff(_0x43bd97){const _0x23e373=_0x498a01;_0x39b91b[_0x23e373('0xe1b')][_0x43bd97['id']]&&(_0x39b91b[_0x23e373('0x605')][_0x43bd97['id']]&&(_0x36f548()[_0x23e373('0x47b')](_0x39b91b[_0x23e373('0x605')][_0x43bd97['id']],_0x36f548()[_0x23e373('0x258')](_0x43bd97,_0x488dec)),_0x36f548()[_0x23e373('0x47b')](_0x39b91b[_0x23e373('0xe1b')][_0x43bd97['id']],_0x36f548()[_0x23e373('0x258')](_0x43bd97,_0x488dec))));}function _0x1f8f03(_0x39180b){const _0x2e0b9c=_0x498a01;!_0x36f548()[_0x2e0b9c('0x1a80')](_0x39180b)&&(_0x39b91b['rpcOpenchannelQueues'][_0x39180b['id']]=_0x36f548()[_0x2e0b9c('0x258')](_0x39180b,_0x488dec));}function _0x334581(_0x5872b6){const _0x4091cb=_0x498a01;!_0x36f548()[_0x4091cb('0x1a80')](_0x5872b6)&&(_0x39b91b[_0x4091cb('0x605')][_0x5872b6['id']]&&_0x36f548()[_0x4091cb('0x47b')](_0x39b91b[_0x4091cb('0x605')][_0x5872b6['id']],_0x36f548()[_0x4091cb('0x258')](_0x5872b6,_0x488dec)),_0x39b91b[_0x4091cb('0xe1b')][_0x5872b6['id']]&&_0x36f548()[_0x4091cb('0x47b')](_0x39b91b[_0x4091cb('0xe1b')][_0x5872b6['id']],_0x36f548()[_0x4091cb('0x258')](_0x5872b6,_0x488dec)));}function _0x2fa9a1(_0xc4140f){const _0x272fd9=_0x498a01;!_0x36f548()['isNil'](_0xc4140f)&&(delete _0x39b91b['rpcOpenchannelQueues'][_0xc4140f['id']],delete _0x39b91b[_0x272fd9('0xe1b')][_0xc4140f['id']]);}function _0x1c3919(_0x1d062d){const _0x67eff6=_0x498a01;_0x36f548()[_0x67eff6('0x1f51')](_0x1d062d[_0x67eff6('0x2342')])===_0x4753f2[_0x67eff6('0x2428')]()['id']&&_0x39b91b[_0x67eff6('0x474')]();}function _0x29bb41(_0x15eb3d){const _0x283596=_0x498a01;_0x36f548()[_0x283596('0x1f51')](_0x15eb3d[_0x283596('0x2342')])===_0x4753f2[_0x283596('0x2428')]()['id']&&_0x39b91b[_0x283596('0x474')]();}function _0x467481(_0xb70690){const _0x1b78a9=_0x498a01;_0x39b91b['openchannelQueues'][_0xb70690[_0x1b78a9('0xf00')]]&&(_0x39b91b[_0x1b78a9('0x1516')][_0xb70690['id']]=_0xb70690,_0x4e27ff());}function _0x4a19ff(_0x4bfad1){const _0x2481a8=_0x498a01;delete _0x39b91b[_0x2481a8('0x1516')][_0x4bfad1['id']],_0x32ada0&&_0x39b91b['deleteOpenchannelQueuesWaitingInteractions']['push'](_0x4bfad1['id']),_0x4e27ff();}function _0x2770ce(_0x348e2e){const _0x174d8e=_0x498a01;switch(_0x348e2e){case _0x174d8e('0x1800'):return'green-A700-bg';case'mail':return _0x174d8e('0xab6');case _0x174d8e('0x4df'):return'orange-bg';case'whatsapp':return _0x174d8e('0x1983');case'openchannel':return _0x174d8e('0xc31');case _0x174d8e('0x2104'):return _0x174d8e('0x1763');default:return'white-bg';}}_0x11d6f1[_0x498a01('0x12d8')]('$destroy',function(){const _0xa467c4=_0x498a01;_0x5ec652[_0xa467c4('0x1b2e')](_0xa467c4('0x808')),_0x5ec652[_0xa467c4('0x1b2e')](_0xa467c4('0x10a1')),_0x5ec652[_0xa467c4('0x1b2e')](_0xa467c4('0xb60')),_0x5ec652['removeAllListeners']('openchannelQueue:remove'),_0x5ec652[_0xa467c4('0x1b2e')](_0xa467c4('0x1bf4')),_0x5ec652[_0xa467c4('0x1b2e')](_0xa467c4('0x1556')),_0x5ec652[_0xa467c4('0x1b2e')](_0xa467c4('0x218c')),_0x5ec652[_0xa467c4('0x1b2e')](_0xa467c4('0xca6'));});}const _0x131684=_0x5e7717;_0x8d574a[_0x21d0f5('0x1e9a')]=['$scope',_0x21d0f5('0x17f5'),_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),_0x21d0f5('0x2143'),_0x21d0f5('0xb6b'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),_0x21d0f5('0x1d56')];function _0x8d574a(_0x3b71fa,_0x508621,_0x542f2e,_0x576290,_0x23b919,_0x3d713f,_0x25d531,_0x5856b5,_0x548f38){const _0x2cd468=_0x21d0f5,_0x46241f=this,_0x2d5ee1=['id','name',_0x2cd468('0x201d'),_0x2cd468('0x1491')];let _0x1c5e6d=!![];_0x46241f[_0x2cd468('0x1646')]={},_0x46241f[_0x2cd468('0xabb')]=0x0,_0x46241f[_0x2cd468('0xb16')]={},_0x46241f[_0x2cd468('0x26a6')]=[],_0x46241f['deleteSmsQueuesWaitingInteractions']=[],_0x46241f[_0x2cd468('0xe3')]={},_0x46241f[_0x2cd468('0x1f2a')]={'id':_0x5856b5[_0x2cd468('0x2428')]()['id'],'channel':'sms','fields':_0x2cd468('0x1274'),'limit':0xa,'page':0x1},_0x46241f[_0x2cd468('0x316')]={'limit':0xa,'page':0x1},_0x46241f[_0x2cd468('0x2693')]=_0x39008f,_0x46241f[_0x2cd468('0x2868')]=_0x1fd540,_0x46241f[_0x2cd468('0x1885')]=_0x11c4f5,_0x46241f[_0x2cd468('0xa64')]=_0x17837d,_0x46241f['paginate']=_0x479314,_0x46241f[_0x2cd468('0x26ef')]=_0x2ceae8,_0x46241f[_0x2cd468('0x1896')]=_0x98494e,_0x46241f[_0x2cd468('0x1087')]=_0x1f4f84,_0x46241f[_0x2cd468('0x1915')]=_0x1e7824,_0x46241f[_0x2cd468('0x22c3')]=_0x21ffea,_0x46241f['onRemoveUserSmsQueue']=_0x9c20d6,_0x46241f[_0x2cd468('0x278c')]=_0x2b6098,_0x46241f[_0x2cd468('0x11f0')]=_0xf77670,_0x548f38['onWithoutApply'](_0x2cd468('0xd9'),_0x46241f[_0x2cd468('0x26ef')]),_0x548f38[_0x2cd468('0x284d')](_0x2cd468('0x2241'),_0x46241f[_0x2cd468('0x1896')]),_0x548f38[_0x2cd468('0x284d')](_0x2cd468('0x2582'),_0x46241f[_0x2cd468('0x1087')]),_0x548f38[_0x2cd468('0x284d')](_0x2cd468('0x1984'),_0x46241f[_0x2cd468('0x1915')]),_0x548f38[_0x2cd468('0x284d')]('userSmsQueue:save',_0x46241f[_0x2cd468('0x22c3')]),_0x548f38['onWithoutApply']('userSmsQueue:remove',_0x46241f[_0x2cd468('0x226c')]),_0x548f38[_0x2cd468('0x284d')](_0x2cd468('0x28f'),_0x46241f[_0x2cd468('0x278c')]),_0x548f38[_0x2cd468('0x284d')]('sms_queue_waiting_interaction:remove',_0x46241f[_0x2cd468('0x11f0')]),_0x25d531[_0x2cd468('0x4db')][_0x2cd468('0x2868')]()[_0x2cd468('0x1549')]['then'](function(_0x3ff5ed){const _0x1c2874=_0x2cd468;_0x46241f[_0x1c2874('0xb16')]=_0x3ff5ed?_0x36f548()[_0x1c2874('0x2130')](_0x3ff5ed[_0x1c2874('0x19b2')]?_0x3ff5ed[_0x1c2874('0x19b2')]:[],'id'):{};})[_0x2cd468('0x11bf')](function(){const _0xc2acb9=_0x2cd468;return _0x25d531[_0xc2acb9('0x21d9')][_0xc2acb9('0x373')]({'id':_0x5856b5[_0xc2acb9('0x2428')]()['id'],'channel':_0xc2acb9('0x4df')})[_0xc2acb9('0x1549')];})['then'](function(_0x12e7ad){const _0xee2db3=_0x2cd468;return _0x46241f[_0xee2db3('0x142f')]=_0x12e7ad[_0xee2db3('0x19b2')],_0x25d531[_0xee2db3('0x4db')][_0xee2db3('0x2352')]()[_0xee2db3('0x1549')];})['then'](function(_0x239219){const _0x4a14b0=_0x2cd468,_0x387248=_0x36f548()[_0x4a14b0('0xdb4')](_0x239219[_0x4a14b0('0x19b2')],function(_0x57e532){const _0x1b2883=_0x4a14b0;return _0x36f548()[_0x1b2883('0x55a')](_0x46241f[_0x1b2883('0x142f')],{'id':_0x57e532[_0x1b2883('0xf00')]});});_0x239219[_0x4a14b0('0x19b2')]=_0x387248,_0x239219['count']=_0x387248[_0x4a14b0('0x1e22')],_0x36f548()[_0x4a14b0('0x47b')](_0x46241f['rpcSmsQueuesWaitingInteractions'],_0x239219?_0x36f548()[_0x4a14b0('0x2130')](_0x239219[_0x4a14b0('0x19b2')]?_0x239219[_0x4a14b0('0x19b2')]:[],'id'):{});})[_0x2cd468('0x151d')](function(_0x37cadd){const _0x5b6051=_0x2cd468;console[_0x5b6051('0x255')](_0x37cadd);})[_0x2cd468('0xa9b')](function(){const _0x33779a=_0x2cd468;for(let _0xb3f7a7=0x0;_0xb3f7a7<_0x46241f[_0x33779a('0x118d')][_0x33779a('0x1e22')];_0xb3f7a7+=0x1){delete _0x46241f[_0x33779a('0xe3')][_0x46241f[_0x33779a('0x118d')][_0xb3f7a7]];}_0x1c5e6d=![],_0x46241f[_0x33779a('0x118d')]=[],_0x1fd540(),_0x479314();});function _0x479314(){const _0x5e3c5d=_0x2cd468,_0x39aca6=(_0x46241f[_0x5e3c5d('0x316')][_0x5e3c5d('0x1c2')]-0x1)*_0x46241f[_0x5e3c5d('0x316')][_0x5e3c5d('0xd5c')];_0x46241f[_0x5e3c5d('0x26a6')]=_0x36f548()[_0x5e3c5d('0x17d7')](_0x46241f[_0x5e3c5d('0xe3')],['joinAt'],[_0x5e3c5d('0x121a')]),_0x46241f[_0x5e3c5d('0x601')]=_0x36f548()[_0x5e3c5d('0x1077')](_0x46241f[_0x5e3c5d('0x26a6')],_0x39aca6)[_0x5e3c5d('0x1b77')](0x0,_0x46241f[_0x5e3c5d('0x316')][_0x5e3c5d('0xd5c')]);}function _0x39008f(_0x397b86){const _0xc9e085=_0x2cd468;_0x46241f[_0xc9e085('0xabb')]=_0x397b86[_0xc9e085('0x27d2')]?_0x397b86[_0xc9e085('0x27d2')]:0x0,_0x46241f[_0xc9e085('0x1646')]=_0x397b86?_0x36f548()['keyBy'](_0x397b86[_0xc9e085('0x19b2')]?_0x397b86[_0xc9e085('0x19b2')]:[],'id'):{},_0x5636a8();}function _0x1fd540(){const _0x547ac3=_0x2cd468;_0x46241f[_0x547ac3('0x1f2a')]['offset']=(_0x46241f[_0x547ac3('0x1f2a')][_0x547ac3('0x1c2')]-0x1)*_0x46241f[_0x547ac3('0x1f2a')]['limit'],_0x46241f[_0x547ac3('0x13f')]=_0x25d531[_0x547ac3('0x21d9')][_0x547ac3('0x373')](_0x46241f['query'],_0x39008f)[_0x547ac3('0x1549')];}let _0x26e63d=!![],_0x1e3969=0x1;_0x3b71fa['$watch']('vm_dc.query.filter',function(_0x2b71ff,_0x45a7ba){const _0x2d777c=_0x2cd468;_0x26e63d?_0x508621(function(){_0x26e63d=![];}):(!_0x45a7ba&&(_0x1e3969=_0x46241f[_0x2d777c('0x1f2a')][_0x2d777c('0x1c2')]),_0x2b71ff!==_0x45a7ba&&(_0x46241f[_0x2d777c('0x1f2a')][_0x2d777c('0x1c2')]=0x1),!_0x2b71ff&&(_0x46241f[_0x2d777c('0x1f2a')][_0x2d777c('0x1c2')]=_0x1e3969),_0x46241f[_0x2d777c('0x2868')]());});function _0x11c4f5(_0x412138){const _0x1ed7f6=_0x2cd468;return _0x36f548()[_0x1ed7f6('0x12dd')](_0x412138);}function _0x5636a8(){const _0x277f2d=_0x2cd468;_0x36f548()[_0x277f2d('0x41e')](_0x46241f['smsQueues'],function(_0x49bf75,_0x4b7e90){const _0x55d8b1=_0x277f2d;_0x46241f[_0x55d8b1('0xb16')][_0x4b7e90]&&(_0x46241f[_0x55d8b1('0x1646')][_0x4b7e90][_0x55d8b1('0x1491')]=_0x46241f[_0x55d8b1('0xb16')][_0x4b7e90]['waiting']||0x0);});}function _0x2ceae8(_0x34ff8b){const _0x1827b8=_0x2cd468;_0x46241f[_0x1827b8('0x1646')][_0x34ff8b['id']]&&(_0x46241f[_0x1827b8('0xb16')][_0x34ff8b['id']]&&(_0x36f548()[_0x1827b8('0x47b')](_0x46241f['rpcSmsQueues'][_0x34ff8b['id']],_0x36f548()[_0x1827b8('0x258')](_0x34ff8b,_0x2d5ee1)),_0x36f548()[_0x1827b8('0x47b')](_0x46241f[_0x1827b8('0x1646')][_0x34ff8b['id']],_0x36f548()['pick'](_0x34ff8b,_0x2d5ee1))));}function _0x98494e(_0x196023){const _0x1b3f09=_0x2cd468;!_0x36f548()[_0x1b3f09('0x1a80')](_0x196023)&&(_0x46241f[_0x1b3f09('0xb16')][_0x196023['id']]=_0x36f548()[_0x1b3f09('0x258')](_0x196023,_0x2d5ee1));}function _0x1f4f84(_0x4ad549){const _0x44da5=_0x2cd468;!_0x36f548()[_0x44da5('0x1a80')](_0x4ad549)&&(_0x46241f[_0x44da5('0xb16')][_0x4ad549['id']]&&_0x36f548()[_0x44da5('0x47b')](_0x46241f[_0x44da5('0xb16')][_0x4ad549['id']],_0x36f548()['pick'](_0x4ad549,_0x2d5ee1)),_0x46241f[_0x44da5('0x1646')][_0x4ad549['id']]&&_0x36f548()[_0x44da5('0x47b')](_0x46241f[_0x44da5('0x1646')][_0x4ad549['id']],_0x36f548()[_0x44da5('0x258')](_0x4ad549,_0x2d5ee1)));}function _0x1e7824(_0x4d9a4d){const _0x527391=_0x2cd468;!_0x36f548()[_0x527391('0x1a80')](_0x4d9a4d)&&(delete _0x46241f[_0x527391('0xb16')][_0x4d9a4d['id']],delete _0x46241f[_0x527391('0x1646')][_0x4d9a4d['id']]);}function _0x21ffea(_0xaee9eb){const _0x55c031=_0x2cd468;_0x36f548()[_0x55c031('0x1f51')](_0xaee9eb['UserId'])===_0x5856b5[_0x55c031('0x2428')]()['id']&&_0x46241f[_0x55c031('0x2868')]();}function _0x9c20d6(_0x3971ea){const _0x422c76=_0x2cd468;_0x36f548()[_0x422c76('0x1f51')](_0x3971ea['UserId'])===_0x5856b5[_0x422c76('0x2428')]()['id']&&_0x46241f[_0x422c76('0x2868')]();}function _0x2b6098(_0x34020a){const _0x4d16d8=_0x2cd468;_0x46241f[_0x4d16d8('0x1646')][_0x34020a[_0x4d16d8('0xf00')]]&&(_0x46241f[_0x4d16d8('0xe3')][_0x34020a['id']]=_0x34020a,_0x479314());}function _0xf77670(_0x3d6cd7){const _0x582a0b=_0x2cd468;delete _0x46241f[_0x582a0b('0xe3')][_0x3d6cd7['id']],_0x1c5e6d&&_0x46241f[_0x582a0b('0x118d')][_0x582a0b('0x105d')](_0x3d6cd7['id']),_0x479314();}function _0x17837d(_0x150840){const _0x41ccef=_0x2cd468;switch(_0x150840){case _0x41ccef('0x1800'):return'green-A700-bg';case _0x41ccef('0x2030'):return _0x41ccef('0xab6');case'sms':return _0x41ccef('0x2622');case'whatsapp':return _0x41ccef('0x1983');case _0x41ccef('0xb18'):return _0x41ccef('0xc31');case'fax':return _0x41ccef('0x1763');default:return _0x41ccef('0x1789');}}_0x3b71fa['$on']('$destroy',function(){const _0xe90227=_0x2cd468;_0x548f38['removeAllListeners']('sms_queue:save'),_0x548f38[_0xe90227('0x1b2e')]('smsQueue:save'),_0x548f38[_0xe90227('0x1b2e')](_0xe90227('0x2582')),_0x548f38[_0xe90227('0x1b2e')](_0xe90227('0x1984')),_0x548f38[_0xe90227('0x1b2e')]('userSmsQueue:save'),_0x548f38[_0xe90227('0x1b2e')]('userSmsQueue:remove'),_0x548f38[_0xe90227('0x1b2e')](_0xe90227('0x28f')),_0x548f38[_0xe90227('0x1b2e')](_0xe90227('0x81b'));});}const _0x19ec12=_0x8d574a;_0x4f2afd['$inject']=[_0x21d0f5('0x1b80'),_0x21d0f5('0x17f5'),_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),_0x21d0f5('0x2143'),'$translate',_0x21d0f5('0x12a5'),'Auth',_0x21d0f5('0x1d56')];function _0x4f2afd(_0x2a156a,_0x1998c2,_0x2ac9d2,_0x2a0e67,_0x1ead6f,_0x2c2801,_0x2a2ba0,_0x4a1725,_0x5c3856){const _0x1ec66d=_0x21d0f5,_0x504dfb=this,_0x4fe3e6=[_0x1ec66d('0x19fd'),'waiting',_0x1ec66d('0xcd7'),_0x1ec66d('0x8b6')];_0x504dfb[_0x1ec66d('0x1b52')]={},_0x504dfb['voiceQueuesTotal']=0x0,_0x504dfb['rpcVoiceQueues']={},_0x504dfb[_0x1ec66d('0x20a8')]={},_0x504dfb[_0x1ec66d('0x101e')]={},_0x504dfb['addVoiceQueuesChannels']={},_0x504dfb[_0x1ec66d('0x1ae2')]=[],_0x504dfb[_0x1ec66d('0x215b')]=!![],_0x504dfb['query']={'id':_0x4a1725[_0x1ec66d('0x2428')]()['id'],'fields':_0x1ec66d('0xc81'),'channel':_0x1ec66d('0x1bc3'),'type':'inbound','limit':0xa,'page':0x1},_0x504dfb[_0x1ec66d('0x316')]={'limit':0xa,'page':0x1},_0x504dfb[_0x1ec66d('0x2693')]=_0x43ec81,_0x504dfb['getVoiceQueues']=_0x4b5ae1,_0x504dfb[_0x1ec66d('0x1885')]=_0x3b56c0,_0x504dfb[_0x1ec66d('0x26ef')]=_0x55d02d,_0x504dfb['onSaveChannel']=_0x581afd,_0x504dfb[_0x1ec66d('0x10e0')]=_0xccf839,_0x504dfb[_0x1ec66d('0x31b')]=_0x3da468,_0x504dfb[_0x1ec66d('0x1160')]=_0x4f5eb6,_0x504dfb['onRemoveVoiceQueue']=_0x51d4b1,_0x5c3856['onWithoutApply']('voice_queue:save',_0x504dfb[_0x1ec66d('0x26ef')]),_0x5c3856[_0x1ec66d('0x284d')](_0x1ec66d('0x1d09'),_0x504dfb[_0x1ec66d('0x9a4')]),_0x5c3856[_0x1ec66d('0x284d')](_0x1ec66d('0x1929'),_0x504dfb[_0x1ec66d('0x10e0')]),_0x5c3856[_0x1ec66d('0x284d')](_0x1ec66d('0x5c6'),_0x504dfb[_0x1ec66d('0x10e0')]),_0x5c3856['onWithoutApply']('voiceQueue:save',_0x504dfb[_0x1ec66d('0x31b')]),_0x5c3856[_0x1ec66d('0x284d')](_0x1ec66d('0x2239'),_0x504dfb[_0x1ec66d('0xd7f')]),_0x5c3856[_0x1ec66d('0x284d')](_0x1ec66d('0x19a0'),_0x504dfb[_0x1ec66d('0x1160')]),_0x2a2ba0[_0x1ec66d('0x21d9')][_0x1ec66d('0x373')](_0x504dfb['query'])[_0x1ec66d('0x1549')][_0x1ec66d('0x11bf')](function(_0x12f158){const _0x2a5c14=_0x1ec66d;return _0x504dfb[_0x2a5c14('0x142f')]=_0x12f158,_0x2a2ba0[_0x2a5c14('0x4db')]['getVoiceQueues']()[_0x2a5c14('0x1549')];})[_0x1ec66d('0x11bf')](function(_0x4c57bc){const _0x22c494=_0x1ec66d,_0x458ff6=_0x4c57bc[_0x22c494('0x19b2')],_0xf7a437=_0x36f548()[_0x22c494('0x2130')](_0x458ff6,'id');for(let _0x4dba8c=0x0;_0x4dba8c<_0x504dfb['myQueues']['count'];_0x4dba8c++){const _0x280be1=_0x504dfb[_0x22c494('0x142f')]['rows'][_0x4dba8c];_0x504dfb[_0x22c494('0x2176')][_0x280be1['id']]=_0xf7a437[_0x280be1['id']];}return _0x2a2ba0[_0x22c494('0x4db')][_0x22c494('0x15c3')]()[_0x22c494('0x1549')];})['then'](function(_0x10e01c){const _0xedb1d7=_0x1ec66d;_0x504dfb[_0xedb1d7('0x101e')]=_0x10e01c?_0x36f548()[_0xedb1d7('0x2130')](_0x10e01c[_0xedb1d7('0x19b2')]?_0x36f548()[_0xedb1d7('0xdb4')](_0x10e01c[_0xedb1d7('0x19b2')],function(_0x4ffd36){const _0x2973bc=_0xedb1d7;if(_0x4ffd36[_0x2973bc('0x19fd')]===_0x2973bc('0x18a2')&&!_0x4ffd36[_0x2973bc('0x18bf')]&&_0x36f548()[_0x2973bc('0x1ad4')](_0x504dfb[_0x2973bc('0x142f')][_0x2973bc('0x19b2')],{'name':_0x4ffd36['queue']}))return!![];return![];}):[],_0xedb1d7('0x938')):{};})[_0x1ec66d('0x151d')](function(_0x2a651b){const _0x23867d=_0x1ec66d;console[_0x23867d('0x255')](_0x2a651b);})[_0x1ec66d('0xa9b')](function(){const _0x37757e=_0x1ec66d;_0x36f548()[_0x37757e('0x47b')](_0x504dfb[_0x37757e('0x101e')],_0x504dfb[_0x37757e('0x1fb4')]);for(let _0x278d31=0x0;_0x278d31<_0x504dfb[_0x37757e('0x1ae2')][_0x37757e('0x1e22')];_0x278d31+=0x1){delete _0x504dfb['rpcVoiceQueuesChannels'][_0x504dfb[_0x37757e('0x1ae2')][_0x278d31]];}_0x504dfb[_0x37757e('0x215b')]=![],_0x504dfb[_0x37757e('0x1fb4')]={},_0x504dfb[_0x37757e('0x1ae2')]=[],_0x504dfb[_0x37757e('0x20a8')]();});function _0x43ec81(_0x381f68){const _0x20b166=_0x1ec66d;_0x504dfb[_0x20b166('0x1f6b')]=_0x381f68[_0x20b166('0x27d2')]?_0x381f68['count']:0x0,_0x504dfb['voiceQueues']=_0x381f68?_0x36f548()['keyBy'](_0x381f68[_0x20b166('0x19b2')]?_0x381f68['rows']:[],'id'):{},_0x55dd10();}function _0x4b5ae1(){const _0x9bdae7=_0x1ec66d;_0x504dfb[_0x9bdae7('0x1f2a')][_0x9bdae7('0x1393')]=(_0x504dfb[_0x9bdae7('0x1f2a')][_0x9bdae7('0x1c2')]-0x1)*_0x504dfb['query'][_0x9bdae7('0xd5c')],_0x504dfb[_0x9bdae7('0x13f')]=_0x2a2ba0[_0x9bdae7('0x21d9')][_0x9bdae7('0x373')](_0x504dfb[_0x9bdae7('0x1f2a')],_0x43ec81)[_0x9bdae7('0x1549')];}let _0x3f8c82=!![],_0x5b0d9f=0x1;_0x2a156a[_0x1ec66d('0x2087')]('vm_dc.query.filter',function(_0x344a31,_0x3fbb8b){const _0x3d2301=_0x1ec66d;_0x3f8c82?_0x1998c2(function(){_0x3f8c82=![];}):(!_0x3fbb8b&&(_0x5b0d9f=_0x504dfb[_0x3d2301('0x1f2a')]['page']),_0x344a31!==_0x3fbb8b&&(_0x504dfb[_0x3d2301('0x1f2a')]['page']=0x1),!_0x344a31&&(_0x504dfb['query']['page']=_0x5b0d9f),_0x504dfb[_0x3d2301('0x20a8')]());});function _0x3b56c0(_0x13f75e){const _0x247879=_0x1ec66d;return _0x36f548()[_0x247879('0x12dd')](_0x13f75e);}function _0x55dd10(){const _0x372e35=_0x1ec66d;_0x36f548()['forIn'](_0x504dfb[_0x372e35('0x1b52')],function(_0x33130d,_0xb38230){const _0x1d9b27=_0x372e35;_0x504dfb[_0x1d9b27('0x2176')][_0xb38230]&&(_0x504dfb[_0x1d9b27('0x1b52')][_0xb38230][_0x1d9b27('0x1491')]=_0x504dfb['rpcVoiceQueues'][_0xb38230][_0x1d9b27('0x1491')]||0x0);});}function _0x55d02d(_0x475976){const _0xd4971e=_0x1ec66d;_0x504dfb[_0xd4971e('0x1b52')][_0x475976['id']]&&(_0x504dfb['rpcVoiceQueues'][_0x475976['id']]&&(_0x504dfb['rpcVoiceQueues'][_0x475976['id']]=_0x475976,_0x36f548()[_0xd4971e('0x47b')](_0x504dfb[_0xd4971e('0x1b52')][_0x475976['id']],_0x36f548()[_0xd4971e('0x258')](_0x475976,_0x4fe3e6))));}function _0x581afd(_0x1f2b52){const _0x404dd7=_0x1ec66d;_0x1f2b52[_0x404dd7('0x19fd')]===_0x404dd7('0x18a2')&&(_0x1f2b52[_0x404dd7('0x18bf')]?(delete _0x504dfb[_0x404dd7('0x101e')][_0x1f2b52[_0x404dd7('0x938')]],_0x504dfb[_0x404dd7('0x215b')]&&_0x504dfb[_0x404dd7('0x1ae2')]['push'](_0x1f2b52[_0x404dd7('0x938')])):(_0x504dfb[_0x404dd7('0x101e')][_0x1f2b52[_0x404dd7('0x938')]]=_0x1f2b52,_0x504dfb[_0x404dd7('0x215b')]&&(_0x504dfb[_0x404dd7('0x1fb4')][_0x1f2b52[_0x404dd7('0x938')]]=_0x1f2b52)));}function _0x3da468(_0x365736){const _0x3238bc=_0x1ec66d;!_0x36f548()['isNil'](_0x365736)&&(_0x504dfb[_0x3238bc('0x2176')][_0x365736['id']]=_0x36f548()[_0x3238bc('0x258')](_0x365736,_0x4fe3e6));}function _0x4f5eb6(_0x87e236){const _0x188283=_0x1ec66d;!_0x36f548()[_0x188283('0x1a80')](_0x87e236)&&(_0x504dfb['rpcVoiceQueues'][_0x87e236['id']]&&_0x36f548()[_0x188283('0x47b')](_0x504dfb[_0x188283('0x2176')][_0x87e236['id']],_0x36f548()[_0x188283('0x258')](_0x87e236,_0x4fe3e6)),_0x504dfb[_0x188283('0x1b52')][_0x87e236['id']]&&_0x36f548()[_0x188283('0x47b')](_0x504dfb[_0x188283('0x1b52')][_0x87e236['id']],_0x36f548()['pick'](_0x87e236,_0x4fe3e6)));}function _0x51d4b1(_0x4d8183){const _0x43295c=_0x1ec66d;!_0x36f548()[_0x43295c('0x1a80')](_0x4d8183)&&(delete _0x504dfb['rpcVoiceQueues'][_0x4d8183['id']],delete _0x504dfb[_0x43295c('0x1b52')][_0x4d8183['id']]);}function _0xccf839(_0x10e88f){const _0x1c2e91=_0x1ec66d;_0x36f548()[_0x1c2e91('0x1f51')](_0x10e88f[_0x1c2e91('0x2342')])===_0x4a1725[_0x1c2e91('0x2428')]()['id']&&_0x504dfb['getVoiceQueues']();}_0x2a156a[_0x1ec66d('0x12d8')](_0x1ec66d('0x4f7'),function(){const _0x5837b7=_0x1ec66d;_0x5c3856['removeAllListeners'](_0x5837b7('0x259b')),_0x5c3856[_0x5837b7('0x1b2e')](_0x5837b7('0x1d09')),_0x5c3856[_0x5837b7('0x1b2e')]('userVoiceQueue:save'),_0x5c3856[_0x5837b7('0x1b2e')](_0x5837b7('0x5c6')),_0x5c3856[_0x5837b7('0x1b2e')]('voiceQueue:save'),_0x5c3856[_0x5837b7('0x1b2e')](_0x5837b7('0x19a0')),_0x5c3856[_0x5837b7('0x1b2e')](_0x5837b7('0x2239'));});}const _0x2a3122=_0x4f2afd;_0x2f5440[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0x17f5'),_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),_0x21d0f5('0x2143'),_0x21d0f5('0xb6b'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),'socket'];function _0x2f5440(_0x575217,_0x1b8086,_0x2055c2,_0x28e63d,_0x52a268,_0x1ee750,_0x559e5f,_0x10c718,_0x32dce4){const _0x1f132b=_0x21d0f5,_0x332924=this,_0x28a806=['id',_0x1f132b('0x1909'),'mapAgentsId','waiting'];let _0x16b6f8=!![];_0x332924[_0x1f132b('0x1e0c')]={},_0x332924['whatsappQueuesTotal']=0x0,_0x332924[_0x1f132b('0x1e4f')]={},_0x332924[_0x1f132b('0x26a6')]=[],_0x332924['deleteWhatsappQueuesWaitingInteractions']=[],_0x332924[_0x1f132b('0x125')]={},_0x332924['query']={'id':_0x10c718[_0x1f132b('0x2428')]()['id'],'channel':'whatsapp','fields':_0x1f132b('0x1274'),'limit':0xa,'page':0x1},_0x332924[_0x1f132b('0x316')]={'limit':0xa,'page':0x1},_0x332924[_0x1f132b('0x2693')]=_0x2ffa19,_0x332924[_0x1f132b('0x1d83')]=_0x51e286,_0x332924[_0x1f132b('0x1885')]=_0x22a79e,_0x332924[_0x1f132b('0xa64')]=_0x56a550,_0x332924[_0x1f132b('0x1e9d')]=_0x8ff825,_0x332924[_0x1f132b('0x26ef')]=_0x392f1c,_0x332924[_0x1f132b('0x203d')]=_0x499061,_0x332924[_0x1f132b('0x1e08')]=_0x34a116,_0x332924['onRemoveWhatsappQueue']=_0x48aa66,_0x332924[_0x1f132b('0x36f')]=_0x4fdf11,_0x332924[_0x1f132b('0x247d')]=_0x5291de,_0x332924[_0x1f132b('0x187d')]=_0x37aeda,_0x332924['onRemoveWhatsappQueueChannel']=_0x5cff89,_0x32dce4[_0x1f132b('0x284d')](_0x1f132b('0x2290'),_0x332924[_0x1f132b('0x26ef')]),_0x32dce4[_0x1f132b('0x284d')](_0x1f132b('0x3eb'),_0x332924[_0x1f132b('0x203d')]),_0x32dce4[_0x1f132b('0x284d')]('whatsappQueue:update',_0x332924[_0x1f132b('0x1e08')]),_0x32dce4[_0x1f132b('0x284d')](_0x1f132b('0x27a'),_0x332924['onRemoveWhatsappQueue']),_0x32dce4[_0x1f132b('0x284d')](_0x1f132b('0x1861'),_0x332924[_0x1f132b('0x36f')]),_0x32dce4[_0x1f132b('0x284d')]('userWhatsappQueue:remove',_0x332924[_0x1f132b('0x247d')]),_0x32dce4[_0x1f132b('0x284d')](_0x1f132b('0x1589'),_0x332924[_0x1f132b('0x187d')]),_0x32dce4[_0x1f132b('0x284d')](_0x1f132b('0x197b'),_0x332924[_0x1f132b('0x2291')]),_0x559e5f['rpc'][_0x1f132b('0x1d83')]()[_0x1f132b('0x1549')][_0x1f132b('0x11bf')](function(_0x43451c){const _0x21a0bd=_0x1f132b;_0x332924[_0x21a0bd('0x1e4f')]=_0x43451c?_0x36f548()[_0x21a0bd('0x2130')](_0x43451c[_0x21a0bd('0x19b2')]?_0x43451c[_0x21a0bd('0x19b2')]:[],'id'):{};})['then'](function(){const _0x25783d=_0x1f132b;return _0x559e5f[_0x25783d('0x21d9')][_0x25783d('0x373')]({'id':_0x10c718[_0x25783d('0x2428')]()['id'],'channel':_0x25783d('0xe7c')})[_0x25783d('0x1549')];})[_0x1f132b('0x11bf')](function(_0x181ae4){const _0x4e7e8b=_0x1f132b;return _0x332924[_0x4e7e8b('0x142f')]=_0x181ae4['rows'],_0x559e5f[_0x4e7e8b('0x4db')][_0x4e7e8b('0xe71')]()['$promise'];})['then'](function(_0x391fcc){const _0x30e91a=_0x1f132b,_0x270d1a=_0x36f548()[_0x30e91a('0xdb4')](_0x391fcc['rows'],function(_0x185164){const _0x2b8f79=_0x30e91a;return _0x36f548()[_0x2b8f79('0x55a')](_0x332924['myQueues'],{'id':_0x185164[_0x2b8f79('0xf00')]});});_0x391fcc[_0x30e91a('0x19b2')]=_0x270d1a,_0x391fcc['count']=_0x270d1a[_0x30e91a('0x1e22')],_0x36f548()[_0x30e91a('0x47b')](_0x332924[_0x30e91a('0x125')],_0x391fcc?_0x36f548()[_0x30e91a('0x2130')](_0x391fcc[_0x30e91a('0x19b2')]?_0x391fcc['rows']:[],'id'):{});})[_0x1f132b('0x151d')](function(_0x6a93e7){const _0x2bff01=_0x1f132b;console[_0x2bff01('0x255')](_0x6a93e7);})[_0x1f132b('0xa9b')](function(){const _0xf7c3ad=_0x1f132b;for(let _0x2d4d10=0x0;_0x2d4d10<_0x332924[_0xf7c3ad('0xb4b')]['length'];_0x2d4d10+=0x1){delete _0x332924[_0xf7c3ad('0x125')][_0x332924['deleteWhatsappQueuesWaitingInteractions'][_0x2d4d10]];}_0x16b6f8=![],_0x332924[_0xf7c3ad('0xb4b')]=[],_0x51e286(),_0x8ff825();});function _0x8ff825(){const _0x373cb7=_0x1f132b,_0x132821=(_0x332924['queryChannels'][_0x373cb7('0x1c2')]-0x1)*_0x332924[_0x373cb7('0x316')]['limit'];_0x332924[_0x373cb7('0x26a6')]=_0x36f548()['orderBy'](_0x332924[_0x373cb7('0x125')],[_0x373cb7('0x6d4')],[_0x373cb7('0x121a')]),_0x332924[_0x373cb7('0x601')]=_0x36f548()['drop'](_0x332924[_0x373cb7('0x26a6')],_0x132821)[_0x373cb7('0x1b77')](0x0,_0x332924['queryChannels'][_0x373cb7('0xd5c')]);}function _0x2ffa19(_0x17589d){const _0x63ec3e=_0x1f132b;_0x332924[_0x63ec3e('0x858')]=_0x17589d[_0x63ec3e('0x27d2')]?_0x17589d[_0x63ec3e('0x27d2')]:0x0,_0x332924[_0x63ec3e('0x1e0c')]=_0x17589d?_0x36f548()['keyBy'](_0x17589d[_0x63ec3e('0x19b2')]?_0x17589d[_0x63ec3e('0x19b2')]:[],'id'):{},_0x4c8f87();}function _0x51e286(){const _0x34ec15=_0x1f132b;_0x332924[_0x34ec15('0x1f2a')][_0x34ec15('0x1393')]=(_0x332924[_0x34ec15('0x1f2a')][_0x34ec15('0x1c2')]-0x1)*_0x332924[_0x34ec15('0x1f2a')][_0x34ec15('0xd5c')],_0x332924['promise']=_0x559e5f['user'][_0x34ec15('0x373')](_0x332924[_0x34ec15('0x1f2a')],_0x2ffa19)[_0x34ec15('0x1549')];}let _0x237ab4=!![],_0x2a8fd0=0x1;_0x575217['$watch'](_0x1f132b('0x1d12'),function(_0x2b1311,_0x5c8c05){const _0x109ec6=_0x1f132b;_0x237ab4?_0x1b8086(function(){_0x237ab4=![];}):(!_0x5c8c05&&(_0x2a8fd0=_0x332924['query']['page']),_0x2b1311!==_0x5c8c05&&(_0x332924[_0x109ec6('0x1f2a')][_0x109ec6('0x1c2')]=0x1),!_0x2b1311&&(_0x332924[_0x109ec6('0x1f2a')][_0x109ec6('0x1c2')]=_0x2a8fd0),_0x332924[_0x109ec6('0x1d83')]());});function _0x22a79e(_0x440497){const _0x5f4992=_0x1f132b;return _0x36f548()[_0x5f4992('0x12dd')](_0x440497);}function _0x4c8f87(){const _0x557115=_0x1f132b;_0x36f548()[_0x557115('0x41e')](_0x332924[_0x557115('0x1e0c')],function(_0x23d599,_0x2740d8){const _0xad49ef=_0x557115;_0x332924[_0xad49ef('0x1e4f')][_0x2740d8]&&(_0x332924['whatsappQueues'][_0x2740d8]['waiting']=_0x332924[_0xad49ef('0x1e4f')][_0x2740d8]['waiting']||0x0);});}function _0x392f1c(_0x15906a){const _0x5a899a=_0x1f132b;_0x332924[_0x5a899a('0x1e0c')][_0x15906a['id']]&&(_0x332924[_0x5a899a('0x1e4f')][_0x15906a['id']]&&(_0x36f548()[_0x5a899a('0x47b')](_0x332924['rpcWhatsappQueues'][_0x15906a['id']],_0x36f548()[_0x5a899a('0x258')](_0x15906a,_0x28a806)),_0x36f548()[_0x5a899a('0x47b')](_0x332924[_0x5a899a('0x1e0c')][_0x15906a['id']],_0x36f548()[_0x5a899a('0x258')](_0x15906a,_0x28a806))));}function _0x499061(_0x4d27bc){const _0x165437=_0x1f132b;!_0x36f548()['isNil'](_0x4d27bc)&&(_0x332924[_0x165437('0x1e4f')][_0x4d27bc['id']]=_0x36f548()[_0x165437('0x258')](_0x4d27bc,_0x28a806));}function _0x34a116(_0x44faf4){const _0x3e8462=_0x1f132b;!_0x36f548()[_0x3e8462('0x1a80')](_0x44faf4)&&(_0x332924[_0x3e8462('0x1e4f')][_0x44faf4['id']]&&_0x36f548()[_0x3e8462('0x47b')](_0x332924[_0x3e8462('0x1e4f')][_0x44faf4['id']],_0x36f548()[_0x3e8462('0x258')](_0x44faf4,_0x28a806)),_0x332924[_0x3e8462('0x1e0c')][_0x44faf4['id']]&&_0x36f548()['merge'](_0x332924[_0x3e8462('0x1e0c')][_0x44faf4['id']],_0x36f548()[_0x3e8462('0x258')](_0x44faf4,_0x28a806)));}function _0x48aa66(_0x28440c){const _0xd2e410=_0x1f132b;!_0x36f548()[_0xd2e410('0x1a80')](_0x28440c)&&(delete _0x332924['rpcWhatsappQueues'][_0x28440c['id']],delete _0x332924[_0xd2e410('0x1e0c')][_0x28440c['id']]);}function _0x4fdf11(_0x4e2206){const _0xd7cb63=_0x1f132b;_0x36f548()[_0xd7cb63('0x1f51')](_0x4e2206[_0xd7cb63('0x2342')])===_0x10c718[_0xd7cb63('0x2428')]()['id']&&_0x332924['getWhatsappQueues']();}function _0x5291de(_0x557e12){const _0x1bc02c=_0x1f132b;_0x36f548()[_0x1bc02c('0x1f51')](_0x557e12[_0x1bc02c('0x2342')])===_0x10c718[_0x1bc02c('0x2428')]()['id']&&_0x332924[_0x1bc02c('0x1d83')]();}function _0x37aeda(_0x2cfa4e){const _0x46b8b3=_0x1f132b;_0x332924[_0x46b8b3('0x1e0c')][_0x2cfa4e[_0x46b8b3('0xf00')]]&&(_0x332924[_0x46b8b3('0x125')][_0x2cfa4e['id']]=_0x2cfa4e,_0x8ff825());}function _0x5cff89(_0x56bff6){const _0x27df13=_0x1f132b;delete _0x332924[_0x27df13('0x125')][_0x56bff6['id']],_0x16b6f8&&_0x332924[_0x27df13('0xb4b')][_0x27df13('0x105d')](_0x56bff6['id']),_0x8ff825();}function _0x56a550(_0x3a67c1){const _0x11e775=_0x1f132b;switch(_0x3a67c1){case _0x11e775('0x1800'):return _0x11e775('0x1adb');case _0x11e775('0x2030'):return _0x11e775('0xab6');case'sms':return'orange-bg';case _0x11e775('0xe7c'):return'lime-A700-bg';case _0x11e775('0xb18'):return _0x11e775('0xc31');case'fax':return _0x11e775('0x1763');default:return'white-bg';}}_0x575217['$on'](_0x1f132b('0x4f7'),function(){const _0x54ac2d=_0x1f132b;_0x32dce4[_0x54ac2d('0x1b2e')](_0x54ac2d('0x2290')),_0x32dce4[_0x54ac2d('0x1b2e')](_0x54ac2d('0x3eb')),_0x32dce4[_0x54ac2d('0x1b2e')](_0x54ac2d('0x19c3')),_0x32dce4[_0x54ac2d('0x1b2e')](_0x54ac2d('0x27a')),_0x32dce4[_0x54ac2d('0x1b2e')]('userWhatsappQueue:save'),_0x32dce4[_0x54ac2d('0x1b2e')](_0x54ac2d('0x151b')),_0x32dce4[_0x54ac2d('0x1b2e')](_0x54ac2d('0x1589')),_0x32dce4[_0x54ac2d('0x1b2e')](_0x54ac2d('0x197b'));});}const _0x3407f8=_0x2f5440;_0x18f59f[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0x17f5'),'$mdDialog','$document',_0x21d0f5('0x2143'),_0x21d0f5('0xb6b'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),_0x21d0f5('0x1d56'),_0x21d0f5('0x142d'),_0x21d0f5('0x2a1')];function _0x18f59f(_0x35b460,_0x15a55e,_0x42e848,_0x3095e2,_0x34aaab,_0x566124,_0x2140e5,_0x2f8f2c,_0x246c1b,_0x2c06cb,_0x50a734){const _0x43d0c4=_0x21d0f5,_0x42785a=this;_0x42785a[_0x43d0c4('0x21d9')]=_0x2f8f2c[_0x43d0c4('0x2428')](),_0x42785a[_0x43d0c4('0x17ff')]={},_0x42785a[_0x43d0c4('0x23e1')]={},_0x42785a[_0x43d0c4('0x2763')]={'count':0x0,'rows':[]},_0x42785a[_0x43d0c4('0x1f64')]={'count':0x0,'rows':[]},_0x42785a['query']={'includeAll':!![],'sort':_0x43d0c4('0x1c74'),'limit':0xa,'page':0x1,'read':null,'closed':null},_0x42785a[_0x43d0c4('0xd6d')]={'fields':[{'name':'Id','column':'id','type':_0x43d0c4('0x139e')},{'name':'Contact','column':_0x43d0c4('0xf10'),'type':_0x43d0c4('0x282b'),'options':{'searchFields':[_0x43d0c4('0x13a0'),_0x43d0c4('0xcf3'),_0x43d0c4('0x15d3')],'route':{'model':_0x43d0c4('0x1b8f'),'action':_0x43d0c4('0xbaa'),'params':{'fields':_0x43d0c4('0xd81'),'Contact':_0x43d0c4('0xfda'),'nolimit':!![]}},'extraOperators':[_0x43d0c4('0x512')],'excludedOperators':[_0x43d0c4('0x27c1')]}},{'name':_0x43d0c4('0x113e'),'column':_0x43d0c4('0x1d2'),'type':_0x43d0c4('0x25ed'),'options':{'excludedOperators':[_0x43d0c4('0x23de'),_0x43d0c4('0x27c1')]}},{'name':_0x43d0c4('0x971'),'column':'closed','type':_0x43d0c4('0x2350'),'values':[{'id':0x0,'translate':_0x43d0c4('0x2846')},{'id':0x1,'translate':_0x43d0c4('0x199')}],'options':{'excludedOperators':[_0x43d0c4('0x27c1')]}},{'name':_0x43d0c4('0x701'),'column':_0x43d0c4('0x24ab'),'type':'autocomplete','options':{'table':'i','route':{'model':_0x43d0c4('0x21d9'),'action':_0x43d0c4('0xbaa'),'params':{'role':_0x43d0c4('0x18c4'),'fields':'id,name,fullname','nolimit':!![]}},'searchFields':['fullname',_0x43d0c4('0x1909')],'extraOperators':[_0x43d0c4('0x512')],'excludedOperators':['$ne']}},{'name':'Account','column':_0x43d0c4('0x1a46'),'type':'multiselect','options':{'route':{'model':'user','action':_0x43d0c4('0x464'),'params':{'id':_0x42785a[_0x43d0c4('0x21d9')]['id'],'nolimit':!![]}}}},{'name':_0x43d0c4('0x806'),'column':_0x43d0c4('0x23ba'),'type':_0x43d0c4('0xe83'),'options':{'route':{'model':_0x43d0c4('0x1d73'),'action':_0x43d0c4('0xbaa'),'params':{'nolimit':!![]}},'excludedOperators':[_0x43d0c4('0x1239')]}},{'name':_0x43d0c4('0xa68'),'column':_0x43d0c4('0x1779'),'type':'date','options':{'excludedOperators':[_0x43d0c4('0x27c1')]}},{'name':_0x43d0c4('0xf18'),'column':_0x43d0c4('0xf2'),'type':_0x43d0c4('0x2350'),'values':[{'id':0x1,'translate':_0x43d0c4('0x22a5')},{'id':0x0,'translate':_0x43d0c4('0x1dd4')}],'options':{'excludedOperators':['$ne']}}]},_0x42785a[_0x43d0c4('0x11e7')]='blue-grey',_0x42785a['onInit']=_0x47c475,_0x42785a['success']=_0x4099fa,_0x42785a[_0x43d0c4('0x12e9')]=_0x42970e,_0x42785a[_0x43d0c4('0x14ed')]=_0x286725,_0x42785a[_0x43d0c4('0x2596')]=_0x287fdd,_0x42785a['disposeInteraction']=_0x589967,_0x42785a[_0x43d0c4('0x1ddf')]=_0x4279d6,_0x42785a[_0x43d0c4('0x1dba')]=_0xdca166,_0x42785a['getFaxAccountLabel']=_0x2f28ba,_0x42785a['composeFaxInteraction']=_0x244ec6,_0x42785a[_0x43d0c4('0xb31')]=_0x162617,_0x42785a[_0x43d0c4('0x2049')]=_0x4f130d,_0x42785a[_0x43d0c4('0x2297')]=_0x25733d;function _0x47c475(_0x4a1873,_0x3776d9){const _0x1111c1=_0x43d0c4;return _0x42785a[_0x1111c1('0x17ff')]=_0x4a1873,_0x42785a[_0x1111c1('0x23e1')]=_0x3776d9,_0x2140e5['user'][_0x1111c1('0xbaa')+_0x36f548()[_0x1111c1('0x24b5')]('faxAccounts')]({'id':_0x42785a['user']['id'],'nolimit':!![]})[_0x1111c1('0x1549')]['then'](function(_0x49653e){const _0x3a9e23=_0x1111c1;return _0x42785a[_0x3a9e23('0xc6e')]=_0x49653e||{'count':0x0,'rows':[]},_0x2140e5[_0x3a9e23('0x1d73')][_0x3a9e23('0xbaa')]()[_0x3a9e23('0x1549')];})[_0x1111c1('0x11bf')](function(_0x1086bc){const _0x47ca31=_0x1111c1;_0x42785a[_0x47ca31('0x2763')]=_0x1086bc||{'count':0x0,'rows':[]};})[_0x1111c1('0x11bf')](function(){const _0x870170=_0x1111c1;_0x42785a[_0x870170('0x7db')]=_0x349ff1();})[_0x1111c1('0x151d')](function(_0x37e545){const _0xeebf46=_0x1111c1;console[_0xeebf46('0x255')](_0x37e545);})[_0x1111c1('0xa9b')](function(){const _0x5356a1=_0x1111c1;let _0x5b1fce=_0x34aaab['localStorage'][_0x5356a1('0x2356')]('motion2.home.fax:'+_0x42785a['user']['id']);if(_0x5b1fce)try{_0x5b1fce=JSON[_0x5356a1('0x1850')](_0x5b1fce);if(_0x5b1fce[_0x5356a1('0x1f2a')]){_0x42785a[_0x5356a1('0x1f2a')]=_0x36f548()[_0x5356a1('0x47b')](_0x42785a[_0x5356a1('0x1f2a')],_0x5b1fce[_0x5356a1('0x1f2a')]);if(_0x36f548()[_0x5356a1('0x1fc5')](_0x42785a[_0x5356a1('0xc6e')][_0x5356a1('0x19b2')]))_0x42785a[_0x5356a1('0x1f2a')]['FaxAccountId']=[];else _0x36f548()['isEmpty'](_0x42785a['query'][_0x5356a1('0x1a46')])&&(_0x42785a[_0x5356a1('0x1f2a')][_0x5356a1('0x1a46')]=_0x36f548()(_0x42785a['faxAccounts'][_0x5356a1('0x19b2')])[_0x5356a1('0x2171')]('id')[_0x5356a1('0x1d3f')]()[_0x5356a1('0x10cc')]());_0x42785a[_0x5356a1('0x1f2a')]['sort']&&_0x42785a[_0x5356a1('0x1f2a')][_0x5356a1('0x1c16')][_0x5356a1('0x203c')](_0x5356a1('0x13b'))>=0x0&&(_0x42785a[_0x5356a1('0x1f2a')]=_0x36f548()[_0x5356a1('0x196f')](_0x42785a[_0x5356a1('0x1f2a')],_0x5356a1('0x1c16'))),_0x42785a[_0x5356a1('0x1f2a')][_0x5356a1('0xc83')]=!![],_0x42785a[_0x5356a1('0x12f7')]=_0x42785a[_0x5356a1('0x1f2a')][_0x5356a1('0xdb4')]?!![]:![];}}catch(_0x4ffdc6){console[_0x5356a1('0x255')](_0x4ffdc6);}else{const _0x27944f={'$gte':_0x57d4d1()()[_0x5356a1('0x2655')](_0x5356a1('0x4d8'))['utcOffset'](0x0,!![])[_0x5356a1('0x1826')](),'$lte':_0x57d4d1()()[_0x5356a1('0x2ba')](_0x5356a1('0x4d8'))[_0x5356a1('0x1fb1')](0x0,!![])[_0x5356a1('0x1826')]()},_0x4aee8c={'FaxAccountId':_0x36f548()[_0x5356a1('0x2171')](_0x42785a[_0x5356a1('0xc6e')][_0x5356a1('0x19b2')],'id'),'createdAt':_0x27944f};_0x42785a['query']=_0x36f548()['merge'](_0x42785a['query'],_0x4aee8c);}_0x246c1b['on'](_0x5356a1('0x1a07'),_0x2bfa1a),_0x246c1b['on']('faxInteraction:update',_0x2bfa1a),_0x246c1b['on'](_0x5356a1('0xba1'),_0x158f2b),_0x246c1b['on'](_0x5356a1('0x61e'),_0x104541),_0x246c1b['on'](_0x5356a1('0x1046'),_0x104541),_0x246c1b['on']('user_has_fax_interactions:save',_0x3ad974),_0x246c1b['on'](_0x5356a1('0x1028'),_0x9c16eb),_0x42970e(_0x42785a[_0x5356a1('0x1f2a')][_0x5356a1('0x1c2')]);});}function _0x349ff1(){const _0x4f9681=_0x43d0c4;return[{'name':'Start\x20Date','key':_0x4f9681('0x1779'),'type':'date','label':_0x4f9681('0x1c11')},{'name':_0x4f9681('0x3ad'),'key':_0x4f9681('0x1601'),'type':'select','label':_0x4f9681('0x22a0'),'customOptions':[{'value':0x0,'translate':_0x4f9681('0x1dd4')},{'value':0x1,'translate':_0x4f9681('0x22a5')},{'value':null,'translate':_0x4f9681('0x211a')}]},{'name':'Status','key':'closed','type':_0x4f9681('0x2350'),'label':_0x4f9681('0xa96'),'customOptions':[{'value':0x0,'translate':_0x4f9681('0x2846')},{'value':0x1,'translate':_0x4f9681('0x199')},{'value':null,'translate':_0x4f9681('0x211a')}]},{'name':_0x4f9681('0x1e3c'),'key':_0x4f9681('0x1a46'),'type':'multiselect','label':_0x4f9681('0x10b'),'options':_0x42785a['faxAccounts']['rows'],'clearAll':![]},{'name':_0x4f9681('0x701'),'key':_0x4f9681('0x2342'),'type':_0x4f9681('0x2350'),'label':_0x4f9681('0x84a'),'customOptions':[{'value':_0x42785a[_0x4f9681('0x21d9')]['id'],'translate':_0x4f9681('0x275d')},{'value':_0x4f9681('0xb5f'),'translate':'DASHBOARDS.NOT_ASSIGNED'},{'value':undefined,'translate':_0x4f9681('0x211a')}]},{'name':_0x4f9681('0x23ba'),'key':_0x4f9681('0x1d73'),'type':_0x4f9681('0xe83'),'label':'DASHBOARDS.SELECT_TAG','options':_0x42785a['tags']['rows'],'placeholder':'DASHBOARDS.TAGS'}];}function _0x4099fa(_0x46fe15){const _0x3daaeb=_0x43d0c4;_0x42785a[_0x3daaeb('0x1fbd')]=![],_0x42785a[_0x3daaeb('0x1f64')]=_0x46fe15||{'count':0x0,'rows':[]};for(let _0x93a284=0x0;_0x93a284<_0x42785a[_0x3daaeb('0x1f64')][_0x3daaeb('0x19b2')][_0x3daaeb('0x1e22')];_0x93a284+=0x1){_0x4279d6(_0x42785a['faxInteractions']['rows'][_0x93a284]);}}function _0x42970e(_0x780a07){const _0x3c7d88=_0x43d0c4;_0x42785a[_0x3c7d88('0x1fbd')]=!![];!_0x780a07&&(_0x42785a[_0x3c7d88('0x1f2a')][_0x3c7d88('0x1c2')]=0x1);_0x42785a[_0x3c7d88('0x1f2a')][_0x3c7d88('0x1393')]=(_0x42785a['query'][_0x3c7d88('0x1c2')]-0x1)*_0x42785a[_0x3c7d88('0x1f2a')][_0x3c7d88('0xd5c')];let _0x4cdcac=_0x34aaab[_0x3c7d88('0xe4a')][_0x3c7d88('0x2356')](_0x3c7d88('0x1ded')+_0x42785a[_0x3c7d88('0x21d9')]['id']);_0x4cdcac=_0x4cdcac?JSON['parse'](_0x4cdcac):{},_0x4cdcac[_0x3c7d88('0x1f2a')]=_0x42785a['query'],_0x34aaab[_0x3c7d88('0xe4a')][_0x3c7d88('0x26d6')]('motion2.home.fax:'+_0x42785a[_0x3c7d88('0x21d9')]['id'],JSON[_0x3c7d88('0x3e')](_0x4cdcac)),_0x42785a[_0x3c7d88('0x13f')]=_0x2140e5[_0x3c7d88('0x27d')][_0x3c7d88('0xbaa')](_0x42785a[_0x3c7d88('0x1f2a')],_0x4099fa)[_0x3c7d88('0x1549')];}function _0x286725(_0x397f2f,_0x14b019){const _0x8fd051=_0x43d0c4;_0x35b460[_0x8fd051('0x25f5')]['vm'][_0x8fd051('0x226f')](_0x8fd051('0x2104'),_0x14b019);}function _0x287fdd(_0x110342,_0x4b416b,_0xc94a4b){const _0x4d5900=_0x43d0c4;_0x2140e5[_0x4d5900('0x27d')][_0x4d5900('0x149c')]({'id':_0x4b416b['id'],'attachments':_0xc94a4b})['$promise'][_0x4d5900('0x11bf')](function(_0x4c8058){const _0x5a979a=_0x4d5900,_0x402706=[_0x4c8058[_0x5a979a('0x1e94')]],_0x3c6d7f=_0x5a979a('0x1e3f')+_0x4b416b['id']+_0x5a979a('0x4a7'),_0xfadda4=new Blob(_0x402706,{'type':_0x4c8058[_0x5a979a('0x19fd')]}),_0x310960=window[_0x5a979a('0xb54')][_0x5a979a('0x2773')]('a');_0x310960[_0x5a979a('0x1e1b')](_0x5a979a('0xead'),URL[_0x5a979a('0x44b')](_0xfadda4)),_0x310960[_0x5a979a('0x1e1b')](_0x5a979a('0x149c'),_0x3c6d7f),document[_0x5a979a('0x1d2')][_0x5a979a('0x131c')](_0x310960),_0x310960[_0x5a979a('0x1371')]();})['catch'](function(_0x62a7a2){const _0x50b791=_0x4d5900;if(_0x62a7a2[_0x50b791('0x4e8')]&&_0x62a7a2['data'][_0x50b791('0x120f')]&&_0x62a7a2['data'][_0x50b791('0x120f')][_0x50b791('0x1e22')])for(let _0x525754=0x0;_0x525754<_0x62a7a2['data']['errors'][_0x50b791('0x1e22')];_0x525754+=0x1){_0x2c06cb['error']({'title':_0x62a7a2[_0x50b791('0x4e8')][_0x50b791('0x120f')][_0x525754]['type'],'msg':_0x62a7a2[_0x50b791('0x4e8')]['errors'][_0x525754][_0x50b791('0x1b86')]});}else _0x2c06cb['error']({'title':_0x62a7a2[_0x50b791('0xff9')]?_0x50b791('0x574')+_0x62a7a2[_0x50b791('0xff9')]+_0x50b791('0xb0b')+_0x62a7a2[_0x50b791('0x212f')]:_0x50b791('0x2596'),'msg':_0x62a7a2[_0x50b791('0x4e8')]?JSON['stringify'](_0x62a7a2[_0x50b791('0x4e8')][_0x50b791('0x1b86')]):_0x62a7a2[_0x50b791('0xaab')]()});});}function _0x589967(_0x3b3ef2,_0x34c761){const _0x1a2663=_0x43d0c4,_0x5bf5c=_0x42785a[_0x1a2663('0x21d9')]['voicePause']||_0x42785a['user'][_0x1a2663('0x13c9')]||_0x42785a[_0x1a2663('0x21d9')][_0x1a2663('0x1f53')]||_0x42785a[_0x1a2663('0x21d9')]['openchannelPause']||_0x42785a[_0x1a2663('0x21d9')]['faxPause'],_0x1ebfb5=!_0x34c761[_0x1a2663('0x1e3c')]['mandatoryDisposition'];_0x42e848[_0x1a2663('0xb9')]({'controller':_0x1a2663('0xcd5'),'controllerAs':'vm','templateUrl':_0x35815a,'parent':angular[_0x1a2663('0x1e73')](_0x3095e2[_0x1a2663('0x1d2')]),'clickOutsideToClose':_0x1ebfb5,'escapeToClose':_0x1ebfb5,'onRemoving':function(){const _0x4f3b9b=_0x1a2663;_0x42785a['user']&&_0x34c761[_0x4f3b9b('0x1e3c')][_0x4f3b9b('0x123b')]&&!_0x5bf5c&&_0x2140e5[_0x4f3b9b('0x21d9')][_0x4f3b9b('0xb6f')]({'id':_0x42785a[_0x4f3b9b('0x21d9')]['id']})[_0x4f3b9b('0x1549')][_0x4f3b9b('0x151d')](function(_0x112bd2){console['error'](_0x112bd2);});},'locals':{'user':_0x42785a[_0x1a2663('0x21d9')],'channel':_0x1a2663('0x2104'),'interaction':_0x34c761}});}function _0x4279d6(_0x4c9bd2){const _0x487ac9=_0x43d0c4;_0x4c9bd2[_0x487ac9('0xf10')]?(_0x4c9bd2[_0x487ac9('0xca9')]=(_0x4c9bd2[_0x487ac9('0xf10')][_0x487ac9('0x13a0')]||'')+'\x20'+(_0x4c9bd2[_0x487ac9('0xf10')][_0x487ac9('0xcf3')]||''),_0x4c9bd2[_0x487ac9('0x1116')]=_0x4c9bd2[_0x487ac9('0xf10')]['fax']):_0x4c9bd2[_0x487ac9('0xca9')]=_0x566124['instant'](_0x487ac9('0x1d85'));}function _0xdca166(_0x27f519){const _0x33c0f6=_0x43d0c4;if(_0x27f519[_0x33c0f6('0x2342')])return _0x27f519[_0x33c0f6('0x2342')]===_0x42785a[_0x33c0f6('0x21d9')]['id']?_0x566124[_0x33c0f6('0x10c2')](_0x33c0f6('0x275d')):_0x27f519[_0x33c0f6('0x657')][_0x33c0f6('0x27af')]+'\x20<'+_0x27f519[_0x33c0f6('0x657')]['internal']+'>';return _0x566124['instant'](_0x33c0f6('0x1a02'));}function _0x2f28ba(_0x3771a4){const _0xf24c77=_0x43d0c4;if(_0x3771a4[_0xf24c77('0x1e3c')])return _0x3771a4['Account']['key'];return _0x566124['instant'](_0xf24c77('0x1d85'));}function _0x244ec6(_0x106458,_0x35d203){const _0x42ccdf=_0x43d0c4;_0x42e848[_0x42ccdf('0xb9')]({'controller':'ComposeFaxInteractionDialogController','controllerAs':'vm','templateUrl':_0x14e130,'parent':angular[_0x42ccdf('0x1e73')](_0x3095e2[_0x42ccdf('0x1d2')]),'clickOutsideToClose':![],'locals':{'account':_0x35d203,'message':{},'type':_0x42ccdf('0x8a6'),'interaction':{}},'fullscreen':!![]})[_0x42ccdf('0x11bf')](function(_0x470a19){const _0x54742c=_0x42ccdf;if(_0x470a19){if(_0x470a19[_0x54742c('0x1b86')]&&_0x470a19[_0x54742c('0x1b86')][_0x54742c('0x2710')]){const _0x2f826d={'channel':'fax','account':_0x35d203,'message':_0x470a19['message'],'contact':_0x470a19[_0x54742c('0xdde')]};_0x50a734[_0x54742c('0x23c1')](_0x2f826d);}else{const _0x4d731e=_0x470a19;return _0x2140e5[_0x54742c('0x19dc')][_0x54742c('0x2481')]({'id':_0x35d203['id']},_0x4d731e)[_0x54742c('0x1549')][_0x54742c('0x11bf')](function(_0x2da07a){const _0xd0330f=_0x54742c;_0x2c06cb['success']({'title':'Message\x20properly\x20sent!','msg':_0xd0330f('0x122d')}),_0x35b460[_0xd0330f('0x25f5')]['vm'][_0xd0330f('0x226f')]('fax',_0x2da07a);})['catch'](function(_0x5aea41){const _0x15a1ab=_0x54742c;if(_0x5aea41[_0x15a1ab('0x4e8')]&&_0x5aea41[_0x15a1ab('0x4e8')][_0x15a1ab('0x120f')]&&_0x5aea41[_0x15a1ab('0x4e8')][_0x15a1ab('0x120f')][_0x15a1ab('0x1e22')])for(let _0x176226=0x0;_0x176226<_0x5aea41[_0x15a1ab('0x4e8')][_0x15a1ab('0x120f')][_0x15a1ab('0x1e22')];_0x176226++){_0x2c06cb[_0x15a1ab('0x255')]({'title':_0x5aea41[_0x15a1ab('0x4e8')][_0x15a1ab('0x120f')][_0x176226][_0x15a1ab('0x19fd')],'msg':_0x5aea41[_0x15a1ab('0x4e8')]['errors'][_0x176226][_0x15a1ab('0x1b86')]});}else _0x2c06cb[_0x15a1ab('0x255')]({'title':_0x15a1ab('0x2500'),'msg':_0x5aea41[_0x15a1ab('0x4e8')]?JSON[_0x15a1ab('0x3e')](_0x5aea41[_0x15a1ab('0x4e8')]):_0x5aea41[_0x15a1ab('0x1b86')]||_0x5aea41[_0x15a1ab('0xaab')]()});});}}});}function _0x3ad974(_0x216ed2){const _0x107f56=_0x43d0c4;let _0xf0f5f9;const _0x4bffe2=_0x36f548()[_0x107f56('0x1ad4')](_0x42785a[_0x107f56('0x1f64')]['rows'],{'id':_0x216ed2['FaxInteractionId']});_0x4bffe2&&_0x4bffe2[_0x107f56('0xc42')]&&(_0xf0f5f9=_0x36f548()['find'](_0x4bffe2[_0x107f56('0xc42')],{'id':_0x216ed2['UserId']}),!_0xf0f5f9&&_0x4bffe2['Users'][_0x107f56('0x105d')]({'id':_0x216ed2[_0x107f56('0x2342')]}));}function _0x9c16eb(_0x57461c){const _0x586ac3=_0x43d0c4,_0x21d651=_0x36f548()[_0x586ac3('0x1ad4')](_0x42785a[_0x586ac3('0x1f64')][_0x586ac3('0x19b2')],{'id':_0x57461c[_0x586ac3('0x16f4')]});_0x21d651&&_0x21d651[_0x586ac3('0xc42')]&&_0x36f548()[_0x586ac3('0x14a5')](_0x21d651[_0x586ac3('0xc42')],{'id':_0x57461c[_0x586ac3('0x2342')]});}function _0x2bfa1a(_0x59679c){const _0x1f5a67=_0x43d0c4;if(_0x59679c){const _0x23f544=_0x36f548()[_0x1f5a67('0x1ad4')](_0x42785a['faxInteractions'][_0x1f5a67('0x19b2')],{'id':_0x59679c['id']});if(_0x23f544){_0x23f544['Users']=[];_0x59679c['closed']&&(_0x23f544[_0x1f5a67('0xf2')]=0x0);if(_0x42785a[_0x1f5a67('0x1f2a')][_0x1f5a67('0x1c16')]){const _0x231a16=_0x36f548()[_0x1f5a67('0x1eb7')](_0x42785a[_0x1f5a67('0x1f2a')][_0x1f5a67('0x1c16')],'-')?_0x1f5a67('0x121a'):'asc';_0x42785a[_0x1f5a67('0x1f64')][_0x1f5a67('0x19b2')]=_0x36f548()[_0x1f5a67('0x17d7')](_0x42785a[_0x1f5a67('0x1f64')][_0x1f5a67('0x19b2')],_0x36f548()[_0x1f5a67('0x13b1')](_0x42785a[_0x1f5a67('0x1f2a')][_0x1f5a67('0x1c16')],'-'),_0x231a16);}_0x36f548()[_0x1f5a67('0x47b')](_0x23f544,_0x36f548()['pick'](_0x59679c,_0x36f548()[_0x1f5a67('0xe22')](_0x23f544)));}else _0x42970e(_0x42785a[_0x1f5a67('0x1f2a')][_0x1f5a67('0x1c2')]);}}function _0x158f2b(_0x59fe26){const _0x5a0c9d=_0x43d0c4;if(_0x59fe26){const _0x4bec3b=_0x36f548()[_0x5a0c9d('0x1ad4')](_0x42785a[_0x5a0c9d('0x1f64')]['rows'],{'id':_0x59fe26['id']});_0x4bec3b&&(_0x4bec3b[_0x5a0c9d('0x806')]=_0x59fe26['tags']||[],_0x36f548()[_0x5a0c9d('0x47b')](_0x4bec3b,_0x36f548()[_0x5a0c9d('0x258')](_0x59fe26,_0x36f548()[_0x5a0c9d('0xe22')](_0x4bec3b))));}}function _0x104541(_0x54ed37){const _0x5cec39=_0x43d0c4;if(_0x54ed37&&!_0x54ed37[_0x5cec39('0xdaa')]){const _0x19aad7=_0x36f548()[_0x5cec39('0x1ad4')](_0x42785a[_0x5cec39('0x1f64')]['rows'],{'id':_0x54ed37[_0x5cec39('0x16f4')]});if(_0x19aad7){const _0x3eecfe=_0x36f548()[_0x5cec39('0x1ad4')](_0x19aad7[_0x5cec39('0x3ad')],{'id':_0x54ed37['id']});_0x3eecfe?_0x36f548()['merge'](_0x3eecfe,_0x36f548()['pick'](_0x54ed37,_0x36f548()['keys'](_0x3eecfe))):(_0x36f548()[_0x5cec39('0x1a80')](_0x19aad7[_0x5cec39('0x3ad')])&&(_0x19aad7[_0x5cec39('0x3ad')]={'count':0x0}),!_0x54ed37[_0x5cec39('0x1601')]&&(_0x19aad7[_0x5cec39('0x3ad')]['count']+=0x1));}}}function _0x162617(){const _0x499d03=_0x43d0c4;_0x42785a[_0x499d03('0x12f7')]=![];}function _0x4f130d(){const _0x5b7853=_0x43d0c4;_0x42785a[_0x5b7853('0x12f7')]=!![];}function _0x25733d(){const _0x53f6b4=_0x43d0c4;_0x42785a['isSearchBarVisible']=![],_0x42e848[_0x53f6b4('0xb9')]({'controller':_0x53f6b4('0x5'),'controllerAs':'vm','templateUrl':_0x19602a,'parent':angular[_0x53f6b4('0x1e73')](_0x3095e2[_0x53f6b4('0x1d2')]),'clickOutsideToClose':![],'locals':{'color':_0x42785a[_0x53f6b4('0x11e7')],'fields':_0x42785a[_0x53f6b4('0xd6d')][_0x53f6b4('0x1067')],'storagePath':_0x53f6b4('0xa5f')},'fullscreen':!![]})[_0x53f6b4('0x11bf')](function(_0x4cc84c){const _0x275aec=_0x53f6b4;_0x42785a[_0x275aec('0x1f2a')][_0x275aec('0xce2')]=_0x4cc84c===![]?undefined:_0x4cc84c;if(_0x42785a[_0x275aec('0x1f2a')][_0x275aec('0xce2')]||_0x4cc84c===![])_0x42970e();})[_0x53f6b4('0x151d')](function(_0x4a1ee1){const _0x498f52=_0x53f6b4;_0x2c06cb[_0x498f52('0x255')]({'title':'ERROR','msg':_0x4a1ee1[_0x498f52('0x4e8')]?JSON['stringify'](_0x4a1ee1[_0x498f52('0x4e8')]['message']):_0x4a1ee1[_0x498f52('0xaab')]()});});}let _0x53829b=!![],_0x4030e8=0x1;_0x35b460['$watch'](_0x43d0c4('0x842'),function(_0x1a2051,_0x4bcb2e){const _0x14abc5=_0x43d0c4;_0x53829b?_0x15a55e(function(){_0x53829b=![];}):(!_0x4bcb2e&&(_0x4030e8=_0x42785a[_0x14abc5('0x1f2a')][_0x14abc5('0x1c2')]),_0x1a2051!==_0x4bcb2e&&(_0x42785a['query'][_0x14abc5('0x1c2')]=0x1),!_0x1a2051&&(_0x42785a[_0x14abc5('0x1f2a')][_0x14abc5('0x1c2')]=_0x4030e8),_0x42970e(_0x42785a[_0x14abc5('0x1f2a')][_0x14abc5('0x1c2')]));}),_0x35b460[_0x43d0c4('0x12d8')]('$destroy',function(){const _0x21aaac=_0x43d0c4;_0x246c1b[_0x21aaac('0x1b2e')](_0x21aaac('0x61e')),_0x246c1b[_0x21aaac('0x1b2e')](_0x21aaac('0x1046')),_0x246c1b[_0x21aaac('0x1b2e')]('faxInteraction:save'),_0x246c1b[_0x21aaac('0x1b2e')](_0x21aaac('0xba1')),_0x246c1b[_0x21aaac('0x1b2e')]('faxInteraction:update'),_0x246c1b[_0x21aaac('0x1b2e')]('user_has_fax_interactions:save'),_0x246c1b[_0x21aaac('0x1b2e')]('user_has_fax_interactions:remove');});}const _0x200546=_0x18f59f;_0x516451['$inject']=[_0x21d0f5('0x1b80'),_0x21d0f5('0x17f5'),_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),_0x21d0f5('0x2143'),_0x21d0f5('0xb6b'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),'socket',_0x21d0f5('0x142d'),_0x21d0f5('0x2a1')];function _0x516451(_0x2b2407,_0x524906,_0x4e76c8,_0x49d877,_0x50b0c3,_0xf9cf5f,_0x118def,_0x2de1b8,_0x5bc5b9,_0xedb66c,_0xf261c8){const _0x8b0843=_0x21d0f5,_0x253509=this;_0x253509['user']=_0x2de1b8[_0x8b0843('0x2428')](),_0x253509['license']={},_0x253509[_0x8b0843('0x23e1')]={},_0x253509[_0x8b0843('0x2763')]={'count':0x0,'rows':[]},_0x253509[_0x8b0843('0x365')]={'count':0x0,'rows':[]},_0x253509[_0x8b0843('0x1f2a')]={'includeAll':!![],'sort':_0x8b0843('0x1c74'),'limit':0xa,'page':0x1,'read':null,'closed':null},_0x253509[_0x8b0843('0xd6d')]={'fields':[{'name':'Id','column':'id','type':'number'},{'name':'Contact','column':_0x8b0843('0xf10'),'type':'autocomplete','options':{'searchFields':[_0x8b0843('0x13a0'),'lastName',_0x8b0843('0x15d3')],'route':{'model':_0x8b0843('0x1b8f'),'action':_0x8b0843('0xbaa'),'params':{'fields':_0x8b0843('0xd81'),'Contact':'@autocomplete','nolimit':!![]}},'extraOperators':[_0x8b0843('0x512')],'excludedOperators':[_0x8b0843('0x27c1')]}},{'name':'Subject','column':'subject','type':'text','options':{'excludedOperators':[_0x8b0843('0x23de'),_0x8b0843('0x27c1')]}},{'name':_0x8b0843('0x113e'),'column':_0x8b0843('0x4d1'),'type':_0x8b0843('0x25ed'),'options':{'excludedOperators':['$eq',_0x8b0843('0x27c1')]}},{'name':_0x8b0843('0x971'),'column':_0x8b0843('0x949'),'type':_0x8b0843('0x2350'),'values':[{'id':0x0,'translate':'DASHBOARDS.OPENED'},{'id':0x1,'translate':'DASHBOARDS.CLOSED'}],'options':{'excludedOperators':[_0x8b0843('0x27c1')]}},{'name':_0x8b0843('0x2826'),'column':_0x8b0843('0x1ba7'),'type':_0x8b0843('0xe83'),'options':{'field':_0x8b0843('0x1909'),'route':{'model':_0x8b0843('0x1f96'),'action':'get','params':{'nolimit':!![]}},'excludedOperators':[_0x8b0843('0x1239')]}},{'name':_0x8b0843('0x701'),'column':_0x8b0843('0x24ab'),'type':_0x8b0843('0x282b'),'options':{'table':'i','route':{'model':_0x8b0843('0x21d9'),'action':_0x8b0843('0xbaa'),'params':{'role':_0x8b0843('0x18c4'),'fields':_0x8b0843('0x919'),'nolimit':!![]}},'searchFields':['fullname',_0x8b0843('0x1909')],'extraOperators':[_0x8b0843('0x512')],'excludedOperators':[_0x8b0843('0x27c1')]}},{'name':'Account','column':_0x8b0843('0x2294'),'type':_0x8b0843('0xe83'),'options':{'route':{'model':_0x8b0843('0x21d9'),'action':_0x8b0843('0x19ec'),'params':{'id':_0x253509['user']['id'],'nolimit':!![]}}}},{'name':_0x8b0843('0x806'),'column':_0x8b0843('0x23ba'),'type':'multiselect','options':{'route':{'model':_0x8b0843('0x1d73'),'action':_0x8b0843('0xbaa'),'params':{'nolimit':!![]}},'excludedOperators':[_0x8b0843('0x1239')]}},{'name':_0x8b0843('0xa68'),'column':_0x8b0843('0x1779'),'type':_0x8b0843('0x22f7'),'options':{'excludedOperators':['$ne']}},{'name':_0x8b0843('0xf18'),'column':_0x8b0843('0xf2'),'type':_0x8b0843('0x2350'),'values':[{'id':0x1,'translate':_0x8b0843('0x22a5')},{'id':0x0,'translate':_0x8b0843('0x1dd4')}],'options':{'excludedOperators':[_0x8b0843('0x27c1')]}}]},_0x253509[_0x8b0843('0x11e7')]=_0x8b0843('0x2347'),_0x253509[_0x8b0843('0x277c')]=_0x2874ea,_0x253509[_0x8b0843('0x2693')]=_0x4eaf82,_0x253509[_0x8b0843('0xd33')]=_0x1f6b36,_0x253509[_0x8b0843('0xed8')]=_0x3106c1,_0x253509[_0x8b0843('0xa66')]=_0x4c88b5,_0x253509['disposeInteraction']=_0x58fca0,_0x253509[_0x8b0843('0x1ddf')]=_0x48313b,_0x253509['getAgentLabel']=_0xf2f8e5,_0x253509[_0x8b0843('0x1642')]=_0x19a36f,_0x253509['composeMailInteraction']=_0x1dcce5,_0x253509[_0x8b0843('0xb31')]=_0x5c99e8,_0x253509[_0x8b0843('0x2049')]=_0x2900a6,_0x253509[_0x8b0843('0x2297')]=_0x40a0a3,_0x2b2407[_0x8b0843('0x12d8')](_0x8b0843('0x2896'),_0x596249);function _0x2874ea(_0x2ebc38,_0x7f8ee){const _0x594f69=_0x8b0843;return _0x253509[_0x594f69('0x17ff')]=_0x2ebc38,_0x253509[_0x594f69('0x23e1')]=_0x7f8ee,_0x118def['user']['get'+_0x36f548()[_0x594f69('0x24b5')](_0x594f69('0xf1a'))]({'id':_0x253509[_0x594f69('0x21d9')]['id'],'nolimit':!![]})[_0x594f69('0x1549')][_0x594f69('0x11bf')](function(_0x59bdc2){const _0x4cf179=_0x594f69;return _0x253509[_0x4cf179('0xf1a')]=_0x59bdc2||{'count':0x0,'rows':[]},_0x118def[_0x4cf179('0x1d73')][_0x4cf179('0xbaa')]()[_0x4cf179('0x1549')];})[_0x594f69('0x11bf')](function(_0x216385){const _0x31e64d=_0x594f69;_0x253509[_0x31e64d('0x2763')]=_0x216385||{'count':0x0,'rows':[]};})[_0x594f69('0x11bf')](function(){const _0x3cdf12=_0x594f69;return _0x118def[_0x3cdf12('0x1f96')][_0x3cdf12('0xbaa')]({'nolimit':!![]})[_0x3cdf12('0x1549')];})[_0x594f69('0x11bf')](function(_0x3b16a2){const _0x1a0f2a=_0x594f69;_0x253509[_0x1a0f2a('0x483')]=_0x3b16a2||{'count':0x0,'rows':[]};})[_0x594f69('0x11bf')](function(){const _0x21ad60=_0x594f69;_0x253509[_0x21ad60('0x7db')]=_0x2059a8();})[_0x594f69('0x151d')](function(_0x466301){const _0x4d37fb=_0x594f69;console[_0x4d37fb('0x255')](_0x466301);})[_0x594f69('0xa9b')](function(){const _0x3e6635=_0x594f69;let _0x27e4fa=_0x50b0c3[_0x3e6635('0xe4a')][_0x3e6635('0x2356')](_0x3e6635('0x54d')+_0x253509['user']['id']);if(_0x27e4fa)try{_0x27e4fa=JSON[_0x3e6635('0x1850')](_0x27e4fa);if(_0x27e4fa['query']){_0x253509[_0x3e6635('0x1f2a')]=_0x36f548()['merge'](_0x253509[_0x3e6635('0x1f2a')],_0x27e4fa[_0x3e6635('0x1f2a')]);if(_0x36f548()[_0x3e6635('0x1fc5')](_0x253509[_0x3e6635('0xf1a')][_0x3e6635('0x19b2')]))_0x253509['query']['MailAccountId']=[];else _0x36f548()['isEmpty'](_0x253509[_0x3e6635('0x1f2a')][_0x3e6635('0x2294')])&&(_0x253509[_0x3e6635('0x1f2a')]['MailAccountId']=_0x36f548()(_0x253509[_0x3e6635('0xf1a')][_0x3e6635('0x19b2')])[_0x3e6635('0x2171')]('id')['take']()[_0x3e6635('0x10cc')]());_0x253509[_0x3e6635('0x1f2a')][_0x3e6635('0x1c16')]&&_0x253509['query'][_0x3e6635('0x1c16')]['indexOf'](_0x3e6635('0x13b'))>=0x0&&(_0x253509[_0x3e6635('0x1f2a')]=_0x36f548()['omit'](_0x253509['query'],_0x3e6635('0x1c16'))),_0x253509[_0x3e6635('0x1f2a')][_0x3e6635('0xc83')]=!![],_0x253509[_0x3e6635('0x12f7')]=_0x253509[_0x3e6635('0x1f2a')]['filter']?!![]:![];}}catch(_0xd43953){console['error'](_0xd43953);}else{const _0x12ee24={'$gte':_0x57d4d1()()['startOf'](_0x3e6635('0x4d8'))['utcOffset'](0x0,!![])['format'](),'$lte':_0x57d4d1()()[_0x3e6635('0x2ba')](_0x3e6635('0x4d8'))[_0x3e6635('0x1fb1')](0x0,!![])['format']()},_0xaee721={'MailAccountId':_0x36f548()['map'](_0x253509[_0x3e6635('0xf1a')]['rows'],'id'),'createdAt':_0x12ee24};_0x253509[_0x3e6635('0x1f2a')]=_0x36f548()[_0x3e6635('0x47b')](_0x253509[_0x3e6635('0x1f2a')],_0xaee721);}_0x5bc5b9['on'](_0x3e6635('0xe29'),_0x2a824b),_0x5bc5b9['on'](_0x3e6635('0x1b48'),_0x2a824b),_0x5bc5b9['on']('mailInteractionTags:save',_0x30257b),_0x5bc5b9['on'](_0x3e6635('0xbe5'),_0x99835a),_0x5bc5b9['on']('mailMessage:update',_0x99835a),_0x5bc5b9['on'](_0x3e6635('0xd8f'),_0x4d1567),_0x5bc5b9['on'](_0x3e6635('0x281'),_0x516aa2),_0x1f6b36(_0x253509[_0x3e6635('0x1f2a')]['page']);});}function _0x2059a8(){const _0x43e4ee=_0x8b0843;return[{'name':_0x43e4ee('0xa68'),'key':_0x43e4ee('0x1779'),'type':_0x43e4ee('0x22f7'),'label':_0x43e4ee('0x1c11')},{'name':'Messages','key':_0x43e4ee('0x1601'),'type':_0x43e4ee('0x2350'),'label':'DASHBOARDS.SELECT_READ_UNREAD','customOptions':[{'value':0x0,'translate':'DASHBOARDS.UNREAD'},{'value':0x1,'translate':'DASHBOARDS.READ'},{'value':null,'translate':'DASHBOARDS.ALL'}]},{'name':_0x43e4ee('0x971'),'key':_0x43e4ee('0x949'),'type':_0x43e4ee('0x2350'),'label':_0x43e4ee('0xa96'),'customOptions':[{'value':0x0,'translate':'DASHBOARDS.OPENED'},{'value':0x1,'translate':'DASHBOARDS.CLOSED'},{'value':null,'translate':_0x43e4ee('0x211a')}]},{'name':_0x43e4ee('0x2826'),'key':_0x43e4ee('0x1ba7'),'type':_0x43e4ee('0x2350'),'label':_0x43e4ee('0x206b'),'options':_0x253509[_0x43e4ee('0x483')][_0x43e4ee('0x19b2')],'customOptions':[{'value':_0x43e4ee('0xb5f'),'translate':_0x43e4ee('0x275b')},{'value':undefined,'translate':_0x43e4ee('0x211a')}],'ngValue':_0x43e4ee('0x1909'),'ngIf':_0x43e4ee('0x28d')},{'name':'Account','key':_0x43e4ee('0x2294'),'type':_0x43e4ee('0xe83'),'label':_0x43e4ee('0x10b'),'options':_0x253509[_0x43e4ee('0xf1a')][_0x43e4ee('0x19b2')],'clearAll':![]},{'name':_0x43e4ee('0x701'),'key':_0x43e4ee('0x2342'),'type':'select','label':_0x43e4ee('0x84a'),'customOptions':[{'value':_0x253509['user']['id'],'translate':'DASHBOARDS.ME'},{'value':_0x43e4ee('0xb5f'),'translate':_0x43e4ee('0x1a02')},{'value':undefined,'translate':'DASHBOARDS.ALL'}]},{'name':_0x43e4ee('0x23ba'),'key':_0x43e4ee('0x1d73'),'type':_0x43e4ee('0xe83'),'label':_0x43e4ee('0x9b9'),'options':_0x253509[_0x43e4ee('0x2763')][_0x43e4ee('0x19b2')],'placeholder':_0x43e4ee('0x1f9a')}];}function _0x4eaf82(_0x3c7d31){const _0x593d8d=_0x8b0843;_0x253509[_0x593d8d('0x1fbd')]=![],_0x253509['mailInteractions']=_0x3c7d31||{'count':0x0,'rows':[]};for(let _0xafed3e=0x0;_0xafed3e<_0x253509[_0x593d8d('0x365')][_0x593d8d('0x19b2')][_0x593d8d('0x1e22')];_0xafed3e+=0x1){_0x48313b(_0x253509['mailInteractions'][_0x593d8d('0x19b2')][_0xafed3e]);}}function _0x1f6b36(_0x4d32c9){const _0x3b7c4b=_0x8b0843;_0x253509[_0x3b7c4b('0x1fbd')]=!![];!_0x4d32c9&&(_0x253509[_0x3b7c4b('0x1f2a')]['page']=0x1);_0x253509[_0x3b7c4b('0x1f2a')][_0x3b7c4b('0x1393')]=(_0x253509['query']['page']-0x1)*_0x253509[_0x3b7c4b('0x1f2a')]['limit'];let _0x4a96bb=_0x50b0c3[_0x3b7c4b('0xe4a')][_0x3b7c4b('0x2356')](_0x3b7c4b('0x54d')+_0x253509['user']['id']);_0x4a96bb=_0x4a96bb?JSON[_0x3b7c4b('0x1850')](_0x4a96bb):{},_0x4a96bb['query']=_0x253509[_0x3b7c4b('0x1f2a')],_0x50b0c3[_0x3b7c4b('0xe4a')][_0x3b7c4b('0x26d6')](_0x3b7c4b('0x54d')+_0x253509[_0x3b7c4b('0x21d9')]['id'],JSON[_0x3b7c4b('0x3e')](_0x4a96bb)),_0x253509[_0x3b7c4b('0x13f')]=_0x118def[_0x3b7c4b('0x26e3')][_0x3b7c4b('0xbaa')](_0x253509['query'],_0x4eaf82)['$promise'];}function _0x3106c1(_0x71f781,_0x39b27e){const _0x45bd5c=_0x8b0843;_0x2b2407[_0x45bd5c('0x25f5')]['vm']['addInteractionTab'](_0x45bd5c('0x2030'),_0x39b27e);}function _0x4c88b5(_0x4201b0,_0x5ae202,_0x53d215){const _0x217297=_0x8b0843;_0x118def[_0x217297('0x26e3')][_0x217297('0x149c')]({'id':_0x5ae202['id'],'attachments':_0x53d215})[_0x217297('0x1549')][_0x217297('0x11bf')](function(_0x1e4f44){const _0x42d62d=_0x217297,_0x468a21=[_0x1e4f44[_0x42d62d('0x1e94')]],_0x3321e8=_0x42d62d('0x2560')+_0x5ae202['id']+_0x42d62d('0x4a7'),_0x5c7399=new Blob(_0x468a21,{'type':_0x1e4f44[_0x42d62d('0x19fd')]}),_0x3b280d=window[_0x42d62d('0xb54')][_0x42d62d('0x2773')]('a');_0x3b280d[_0x42d62d('0x1e1b')](_0x42d62d('0xead'),URL[_0x42d62d('0x44b')](_0x5c7399)),_0x3b280d[_0x42d62d('0x1e1b')](_0x42d62d('0x149c'),_0x3321e8),document[_0x42d62d('0x1d2')][_0x42d62d('0x131c')](_0x3b280d),_0x3b280d[_0x42d62d('0x1371')]();})['catch'](function(_0x489fd6){const _0x382021=_0x217297;if(_0x489fd6[_0x382021('0x4e8')]&&_0x489fd6[_0x382021('0x4e8')][_0x382021('0x120f')]&&_0x489fd6[_0x382021('0x4e8')][_0x382021('0x120f')][_0x382021('0x1e22')])for(let _0x26ca67=0x0;_0x26ca67<_0x489fd6[_0x382021('0x4e8')][_0x382021('0x120f')][_0x382021('0x1e22')];_0x26ca67+=0x1){_0xedb66c[_0x382021('0x255')]({'title':_0x489fd6[_0x382021('0x4e8')][_0x382021('0x120f')][_0x26ca67][_0x382021('0x19fd')],'msg':_0x489fd6[_0x382021('0x4e8')][_0x382021('0x120f')][_0x26ca67][_0x382021('0x1b86')]});}else _0xedb66c['error']({'title':_0x489fd6['status']?'API:'+_0x489fd6[_0x382021('0xff9')]+'\x20-\x20'+_0x489fd6[_0x382021('0x212f')]:'downloadMailInteraction','msg':_0x489fd6['data']?JSON[_0x382021('0x3e')](_0x489fd6['data'][_0x382021('0x1b86')]):_0x489fd6[_0x382021('0xaab')]()});});}function _0x58fca0(_0xfef875,_0x3e2391){const _0x1c8494=_0x8b0843,_0x26a36a=_0x253509[_0x1c8494('0x21d9')][_0x1c8494('0x20d')]||_0x253509[_0x1c8494('0x21d9')][_0x1c8494('0x13c9')]||_0x253509['user'][_0x1c8494('0x1f53')]||_0x253509[_0x1c8494('0x21d9')][_0x1c8494('0xfc0')]||_0x253509[_0x1c8494('0x21d9')][_0x1c8494('0x2501')],_0x434e9f=!_0x3e2391['Account']['mandatoryDisposition'];_0x4e76c8['show']({'controller':_0x1c8494('0xcd5'),'controllerAs':'vm','templateUrl':_0x35815a,'parent':angular[_0x1c8494('0x1e73')](_0x49d877[_0x1c8494('0x1d2')]),'clickOutsideToClose':_0x434e9f,'escapeToClose':_0x434e9f,'onRemoving':function(){const _0x54e224=_0x1c8494;_0x253509[_0x54e224('0x21d9')]&&_0x3e2391[_0x54e224('0x1e3c')]['mandatoryDisposition']&&!_0x26a36a&&_0x118def['user'][_0x54e224('0xb6f')]({'id':_0x253509['user']['id']})[_0x54e224('0x1549')][_0x54e224('0x151d')](function(_0x319b2c){console['error'](_0x319b2c);});},'locals':{'user':_0x253509[_0x1c8494('0x21d9')],'channel':'mail','interaction':_0x3e2391}});}function _0x48313b(_0x1963e7){const _0x565019=_0x8b0843;if(!_0x36f548()[_0x565019('0x1fc5')](_0x1963e7['to'])&&_0x1963e7[_0x565019('0x1e3c')]&&!_0x36f548()[_0x565019('0x55a')](_0x1963e7['to'],_0x1963e7[_0x565019('0x1e3c')]['email']))_0x1963e7['contactName']=_0x1963e7['to'][_0x565019('0xaf8')]('\x20<')[0x0],_0x1963e7[_0x565019('0x1116')]=_0x1963e7['to'][_0x565019('0xaf8')]('<')[_0x565019('0xfaa')]()[_0x565019('0xaf8')]('>')[0x0];else _0x1963e7['Contact']?(_0x1963e7['contactName']=(_0x1963e7[_0x565019('0xf10')]['firstName']||'')+'\x20'+(_0x1963e7[_0x565019('0xf10')][_0x565019('0xcf3')]||''),_0x1963e7['contactInfo']=_0x1963e7[_0x565019('0xf10')][_0x565019('0x15d3')]||''):_0x1963e7[_0x565019('0xca9')]=_0xf9cf5f[_0x565019('0x10c2')](_0x565019('0x1d85'));}function _0xf2f8e5(_0x269f26){const _0x9dbb3c=_0x8b0843;if(_0x269f26[_0x9dbb3c('0x2342')])return _0x269f26[_0x9dbb3c('0x2342')]===_0x253509[_0x9dbb3c('0x21d9')]['id']?_0xf9cf5f[_0x9dbb3c('0x10c2')]('DASHBOARDS.ME'):_0x269f26[_0x9dbb3c('0x657')][_0x9dbb3c('0x27af')]+'\x20<'+_0x269f26['Owner'][_0x9dbb3c('0x1a04')]+'>';return _0xf9cf5f['instant']('DASHBOARDS.NOT_ASSIGNED');}function _0x19a36f(_0x13c080){const _0x2887aa=_0x8b0843;if(_0x13c080[_0x2887aa('0x1e3c')])return _0x13c080[_0x2887aa('0x1e3c')]['key'];return _0xf9cf5f[_0x2887aa('0x10c2')]('APP.UNKNOWN');}function _0x596249(_0xe534a9,_0x28c168){const _0x993a61=_0x8b0843;_0x28c168[_0x993a61('0x4e6')]?(_0x28c168['interaction'][_0x993a61('0x1990')]=!![],_0x3106c1(null,_0x28c168[_0x993a61('0x4e6')])):_0x4e76c8[_0x993a61('0xb9')]({'controller':_0x993a61('0xeb7'),'controllerAs':'vm','templateUrl':_0x342084,'parent':angular['element'](_0x49d877[_0x993a61('0x1d2')]),'clickOutsideToClose':![],'locals':{'account':_0x28c168[_0x993a61('0x2565')],'message':_0x28c168[_0x993a61('0x252a')],'type':_0x993a61('0x20f1'),'interaction':{}},'fullscreen':!![]})[_0x993a61('0x11bf')](function(_0x553d58){const _0x12a8c0=_0x993a61;if(_0x553d58){if(_0x553d58[_0x12a8c0('0x1b86')]&&_0x553d58[_0x12a8c0('0x1b86')][_0x12a8c0('0x2710')]){const _0x291310={'id':_0x28c168['id'],'channel':_0x12a8c0('0x2030'),'account':_0x553d58['account'],'message':_0x553d58[_0x12a8c0('0x1b86')]};_0xf261c8[_0x12a8c0('0x5ab')](_0x291310);}else{const _0x49d110=_0x553d58;return _0x118def[_0x12a8c0('0x1d47')][_0x12a8c0('0x2481')]({'id':_0x28c168['account']['id']},_0x49d110)[_0x12a8c0('0x1549')]['then'](function(_0x2b8167){const _0x5abf21=_0x12a8c0;_0xf261c8[_0x5abf21('0x14a5')](_0x28c168['id']);if(_0x2b8167&&_0x2b8167['Messages']&&_0x2b8167[_0x5abf21('0x3ad')][_0x5abf21('0x1e22')]){if(_0x49d110['attachments']&&_0x49d110[_0x5abf21('0x103')][_0x5abf21('0x1e22')])for(let _0x1bf590=0x0;_0x1bf590<_0x49d110[_0x5abf21('0x103')][_0x5abf21('0x1e22')];_0x1bf590+=0x1){_0x118def[_0x5abf21('0x2811')][_0x5abf21('0x5ab')]({'id':_0x49d110[_0x5abf21('0x103')][_0x1bf590]['id']},{'MailMessageId':_0x36f548()[_0x5abf21('0x6f5')](_0x2b8167[_0x5abf21('0x3ad')])['id']});}_0xedb66c[_0x5abf21('0x2693')]({'title':_0x5abf21('0x1292'),'msg':_0x5abf21('0x122d')});if(_0x2b8167[_0x5abf21('0x949')]){_0x2b8167['disposition']=null;const _0x18647c=!_0x28c168['account'][_0x5abf21('0x123b')],_0xe3641a=_0x253509[_0x5abf21('0x21d9')]['voicePause']||_0x253509[_0x5abf21('0x21d9')][_0x5abf21('0x13c9')]||_0x253509['user'][_0x5abf21('0x1f53')]||_0x253509[_0x5abf21('0x21d9')]['openchannelPause']||_0x253509['user']['faxPause'];_0x4e76c8[_0x5abf21('0xb9')]({'controller':_0x5abf21('0xcd5'),'controllerAs':'vm','templateUrl':_0x35815a,'parent':angular[_0x5abf21('0x1e73')](_0x49d877[_0x5abf21('0x1d2')]),'onRemoving':function(){const _0x3db52f=_0x5abf21;_0x253509[_0x3db52f('0x21d9')]&&_0x28c168[_0x3db52f('0x2565')][_0x3db52f('0x123b')]&&!_0xe3641a&&_0x118def[_0x3db52f('0x21d9')][_0x3db52f('0xb6f')]({'id':_0x253509[_0x3db52f('0x21d9')]['id']})['$promise'][_0x3db52f('0x151d')](function(_0x37fcf6){const _0x36be9a=_0x3db52f;console[_0x36be9a('0x255')](_0x37fcf6);});},'clickOutsideToClose':_0x18647c,'escapeToClose':_0x18647c,'locals':{'user':_0x253509[_0x5abf21('0x21d9')],'channel':_0x5abf21('0x2030'),'interaction':_0x2b8167}});}else _0x2b2407[_0x5abf21('0x25f5')]['vm'][_0x5abf21('0x226f')](_0x5abf21('0x2030'),_0x2b8167);}})[_0x12a8c0('0x151d')](function(_0x24d287){const _0x2cccb5=_0x12a8c0;if(_0x24d287[_0x2cccb5('0x4e8')]&&_0x24d287[_0x2cccb5('0x4e8')][_0x2cccb5('0x120f')]&&_0x24d287[_0x2cccb5('0x4e8')][_0x2cccb5('0x120f')]['length'])for(let _0x28c43f=0x0;_0x28c43f<_0x24d287[_0x2cccb5('0x4e8')][_0x2cccb5('0x120f')][_0x2cccb5('0x1e22')];_0x28c43f++){_0xedb66c['error']({'title':_0x24d287[_0x2cccb5('0x4e8')][_0x2cccb5('0x120f')][_0x28c43f][_0x2cccb5('0x19fd')],'msg':_0x24d287[_0x2cccb5('0x4e8')][_0x2cccb5('0x120f')][_0x28c43f][_0x2cccb5('0x1b86')]});}else _0xedb66c[_0x2cccb5('0x255')]({'title':_0x24d287[_0x2cccb5('0xff9')]?_0x2cccb5('0x574')+_0x24d287[_0x2cccb5('0xff9')]+_0x2cccb5('0xb0b')+_0x24d287['statusText']:_0x2cccb5('0x2644'),'msg':_0x24d287[_0x2cccb5('0x4e8')]?JSON[_0x2cccb5('0x3e')](_0x24d287[_0x2cccb5('0x4e8')][_0x2cccb5('0x1b86')]):_0x24d287[_0x2cccb5('0x1b86')]||_0x24d287[_0x2cccb5('0xaab')]()});});}}});}function _0x1dcce5(_0x8920cd,_0x982ce7){const _0xc24b29=_0x8b0843;_0x4e76c8[_0xc24b29('0xb9')]({'controller':_0xc24b29('0xeb7'),'controllerAs':'vm','templateUrl':_0x342084,'parent':angular[_0xc24b29('0x1e73')](_0x49d877[_0xc24b29('0x1d2')]),'clickOutsideToClose':![],'locals':{'account':_0x982ce7,'message':{},'type':_0xc24b29('0x8a6'),'interaction':{}},'fullscreen':!![]})[_0xc24b29('0x11bf')](function(_0x19f927){const _0x442d50=_0xc24b29;if(_0x19f927){if(_0x19f927[_0x442d50('0x1b86')]&&_0x19f927['message']['savedAsDraft']){const _0x380cac={'channel':_0x442d50('0x2030'),'account':_0x982ce7,'message':_0x19f927[_0x442d50('0x1b86')],'contact':_0x19f927[_0x442d50('0xdde')]};_0xf261c8[_0x442d50('0x23c1')](_0x380cac);}else{const _0xc0ce37=_0x19f927;return _0x118def['mailAccount'][_0x442d50('0x2481')]({'id':_0x982ce7['id']},_0xc0ce37)[_0x442d50('0x1549')][_0x442d50('0x11bf')](function(_0x22aa27){const _0x12f99e=_0x442d50;if(_0x22aa27&&_0x22aa27[_0x12f99e('0x3ad')]&&_0x22aa27['Messages'][_0x12f99e('0x1e22')]){if(_0xc0ce37[_0x12f99e('0x103')]&&_0xc0ce37[_0x12f99e('0x103')]['length'])for(let _0x58925f=0x0;_0x58925f<_0xc0ce37[_0x12f99e('0x103')]['length'];_0x58925f+=0x1){_0x118def[_0x12f99e('0x2811')][_0x12f99e('0x5ab')]({'id':_0xc0ce37[_0x12f99e('0x103')][_0x58925f]['id']},{'MailMessageId':_0x36f548()[_0x12f99e('0x6f5')](_0x22aa27['Messages'])['id']});}_0xedb66c[_0x12f99e('0x2693')]({'title':'Message\x20properly\x20sent!','msg':'Message\x20has\x20been\x20sent!'});if(_0x22aa27[_0x12f99e('0x949')]){_0x22aa27[_0x12f99e('0x107a')]=null;const _0x3ffd1c=!_0x982ce7[_0x12f99e('0x123b')],_0x598fbb=_0x253509[_0x12f99e('0x21d9')][_0x12f99e('0x20d')]||_0x253509[_0x12f99e('0x21d9')][_0x12f99e('0x13c9')]||_0x253509['user'][_0x12f99e('0x1f53')]||_0x253509[_0x12f99e('0x21d9')]['openchannelPause']||_0x253509['user'][_0x12f99e('0x2501')];_0x4e76c8['show']({'controller':_0x12f99e('0xcd5'),'controllerAs':'vm','templateUrl':_0x35815a,'parent':angular['element'](_0x49d877[_0x12f99e('0x1d2')]),'onRemoving':function(){const _0x1e31b4=_0x12f99e;_0x253509['user']&&_0x982ce7[_0x1e31b4('0x123b')]&&!_0x598fbb&&_0x118def[_0x1e31b4('0x21d9')][_0x1e31b4('0xb6f')]({'id':_0x253509['user']['id']})[_0x1e31b4('0x1549')][_0x1e31b4('0x151d')](function(_0x13ec8b){const _0x22d477=_0x1e31b4;console[_0x22d477('0x255')](_0x13ec8b);});},'clickOutsideToClose':_0x3ffd1c,'escapeToClose':_0x3ffd1c,'locals':{'user':_0x253509[_0x12f99e('0x21d9')],'channel':_0x12f99e('0x2030'),'interaction':_0x22aa27}});}else _0x2b2407[_0x12f99e('0x25f5')]['vm'][_0x12f99e('0x226f')]('mail',_0x22aa27);}})[_0x442d50('0x151d')](function(_0xa2a2a7){const _0x5d244b=_0x442d50;if(_0xa2a2a7[_0x5d244b('0x4e8')]&&_0xa2a2a7['data']['errors']&&_0xa2a2a7[_0x5d244b('0x4e8')][_0x5d244b('0x120f')][_0x5d244b('0x1e22')])for(let _0x459fec=0x0;_0x459fec<_0xa2a2a7[_0x5d244b('0x4e8')][_0x5d244b('0x120f')][_0x5d244b('0x1e22')];_0x459fec++){_0xedb66c[_0x5d244b('0x255')]({'title':_0xa2a2a7[_0x5d244b('0x4e8')][_0x5d244b('0x120f')][_0x459fec][_0x5d244b('0x19fd')],'msg':_0xa2a2a7[_0x5d244b('0x4e8')][_0x5d244b('0x120f')][_0x459fec][_0x5d244b('0x1b86')]});}else _0xedb66c[_0x5d244b('0x255')]({'title':_0xa2a2a7[_0x5d244b('0xff9')]?_0x5d244b('0x574')+_0xa2a2a7['status']+'\x20-\x20'+_0xa2a2a7[_0x5d244b('0x212f')]:_0x5d244b('0x2644'),'msg':_0xa2a2a7[_0x5d244b('0x4e8')]?JSON['stringify'](_0xa2a2a7[_0x5d244b('0x4e8')][_0x5d244b('0x1b86')]):_0xa2a2a7[_0x5d244b('0x1b86')]||_0xa2a2a7[_0x5d244b('0xaab')]()});});}}});}function _0x4d1567(_0x20befc){const _0xc86391=_0x8b0843;let _0x3bb77f;const _0x1819e2=_0x36f548()[_0xc86391('0x1ad4')](_0x253509[_0xc86391('0x365')][_0xc86391('0x19b2')],{'id':_0x20befc[_0xc86391('0x1639')]});_0x1819e2&&_0x1819e2['Users']&&(_0x3bb77f=_0x36f548()['find'](_0x1819e2['Users'],{'id':_0x20befc[_0xc86391('0x2342')]}),!_0x3bb77f&&_0x1819e2[_0xc86391('0xc42')][_0xc86391('0x105d')]({'id':_0x20befc[_0xc86391('0x2342')]}));}function _0x516aa2(_0x418c96){const _0xff5c64=_0x8b0843,_0x336577=_0x36f548()['find'](_0x253509[_0xff5c64('0x365')][_0xff5c64('0x19b2')],{'id':_0x418c96['MailInteractionId']});_0x336577&&_0x336577[_0xff5c64('0xc42')]&&_0x36f548()['remove'](_0x336577[_0xff5c64('0xc42')],{'id':_0x418c96['UserId']});}function _0x2a824b(_0xfb9173){const _0x5cac21=_0x8b0843;if(_0xfb9173){const _0x48b92a=_0x36f548()[_0x5cac21('0x1ad4')](_0x253509[_0x5cac21('0x365')][_0x5cac21('0x19b2')],{'id':_0xfb9173['id']});if(_0x48b92a){_0x48b92a[_0x5cac21('0xc42')]=[];_0xfb9173[_0x5cac21('0x949')]&&(_0x48b92a['unreadMessages']=0x0);if(_0x253509[_0x5cac21('0x1f2a')]['sort']){const _0x17c51a=_0x36f548()[_0x5cac21('0x1eb7')](_0x253509[_0x5cac21('0x1f2a')][_0x5cac21('0x1c16')],'-')?'desc':_0x5cac21('0x1875');_0x253509[_0x5cac21('0x365')][_0x5cac21('0x19b2')]=_0x36f548()[_0x5cac21('0x17d7')](_0x253509[_0x5cac21('0x365')][_0x5cac21('0x19b2')],_0x36f548()[_0x5cac21('0x13b1')](_0x253509['query'][_0x5cac21('0x1c16')],'-'),_0x17c51a);}_0x36f548()['merge'](_0x48b92a,_0x36f548()['pick'](_0xfb9173,_0x36f548()['keys'](_0x48b92a)));}else _0x1f6b36(_0x253509[_0x5cac21('0x1f2a')][_0x5cac21('0x1c2')]);}}function _0x30257b(_0x39bbae){const _0x19a820=_0x8b0843;if(_0x39bbae){const _0x41363f=_0x36f548()['find'](_0x253509[_0x19a820('0x365')][_0x19a820('0x19b2')],{'id':_0x39bbae['id']});_0x41363f&&(_0x41363f[_0x19a820('0x806')]=_0x39bbae[_0x19a820('0x2763')]||[],_0x36f548()[_0x19a820('0x47b')](_0x41363f,_0x36f548()[_0x19a820('0x258')](_0x39bbae,_0x36f548()[_0x19a820('0xe22')](_0x41363f))));}}function _0x99835a(_0x485fdb){const _0x5a7e1b=_0x8b0843;if(_0x485fdb&&!_0x485fdb[_0x5a7e1b('0xdaa')]){const _0x3e16ef=_0x36f548()[_0x5a7e1b('0x1ad4')](_0x253509[_0x5a7e1b('0x365')][_0x5a7e1b('0x19b2')],{'id':_0x485fdb[_0x5a7e1b('0x1639')]});if(_0x3e16ef){const _0x15b9eb=_0x36f548()[_0x5a7e1b('0x1ad4')](_0x3e16ef[_0x5a7e1b('0x3ad')],{'id':_0x485fdb['id']});_0x15b9eb?_0x36f548()['merge'](_0x15b9eb,_0x36f548()[_0x5a7e1b('0x258')](_0x485fdb,_0x36f548()[_0x5a7e1b('0xe22')](_0x15b9eb))):(_0x36f548()['isNil'](_0x3e16ef[_0x5a7e1b('0x3ad')])&&(_0x3e16ef[_0x5a7e1b('0x3ad')]={'count':0x0}),!_0x485fdb['read']&&(_0x3e16ef[_0x5a7e1b('0x3ad')][_0x5a7e1b('0x27d2')]+=0x1));}}}function _0x5c99e8(){const _0x8c62d6=_0x8b0843;_0x253509[_0x8c62d6('0x12f7')]=![];}function _0x2900a6(){const _0x2c0a81=_0x8b0843;_0x253509[_0x2c0a81('0x12f7')]=!![];}function _0x40a0a3(){const _0x1e5451=_0x8b0843;_0x253509[_0x1e5451('0x12f7')]=![],_0x4e76c8[_0x1e5451('0xb9')]({'controller':_0x1e5451('0x5'),'controllerAs':'vm','templateUrl':_0x19602a,'parent':angular[_0x1e5451('0x1e73')](_0x49d877[_0x1e5451('0x1d2')]),'clickOutsideToClose':![],'locals':{'color':_0x253509[_0x1e5451('0x11e7')],'fields':_0x253509[_0x1e5451('0xd6d')][_0x1e5451('0x1067')],'storagePath':_0x1e5451('0xeac')},'fullscreen':!![]})[_0x1e5451('0x11bf')](function(_0x47d165){const _0x578b61=_0x1e5451;_0x253509[_0x578b61('0x1f2a')][_0x578b61('0xce2')]=_0x47d165===![]?undefined:_0x47d165;if(_0x253509['query'][_0x578b61('0xce2')]||_0x47d165===![])_0x1f6b36();})[_0x1e5451('0x151d')](function(_0x8391d4){const _0x3b28b6=_0x1e5451;_0xedb66c[_0x3b28b6('0x255')]({'title':_0x3b28b6('0x1d30'),'msg':_0x8391d4['data']?JSON[_0x3b28b6('0x3e')](_0x8391d4[_0x3b28b6('0x4e8')][_0x3b28b6('0x1b86')]):_0x8391d4[_0x3b28b6('0xaab')]()});});}let _0xfe67e0=!![],_0x129d62=0x1;_0x2b2407[_0x8b0843('0x2087')](_0x8b0843('0x842'),function(_0x5925e3,_0x5dd229){const _0x5701fa=_0x8b0843;_0xfe67e0?_0x524906(function(){_0xfe67e0=![];}):(!_0x5dd229&&(_0x129d62=_0x253509['query']['page']),_0x5925e3!==_0x5dd229&&(_0x253509[_0x5701fa('0x1f2a')][_0x5701fa('0x1c2')]=0x1),!_0x5925e3&&(_0x253509[_0x5701fa('0x1f2a')][_0x5701fa('0x1c2')]=_0x129d62),_0x1f6b36(_0x253509[_0x5701fa('0x1f2a')][_0x5701fa('0x1c2')]));}),_0x2b2407[_0x8b0843('0x12d8')](_0x8b0843('0x4f7'),function(){const _0x25821b=_0x8b0843;_0x5bc5b9['removeAllListeners'](_0x25821b('0xbe5')),_0x5bc5b9['removeAllListeners'](_0x25821b('0xbca')),_0x5bc5b9[_0x25821b('0x1b2e')](_0x25821b('0xe29')),_0x5bc5b9[_0x25821b('0x1b2e')](_0x25821b('0x177a')),_0x5bc5b9[_0x25821b('0x1b2e')]('mailInteraction:update'),_0x5bc5b9['removeAllListeners'](_0x25821b('0xd8f')),_0x5bc5b9['removeAllListeners'](_0x25821b('0x281'));});}const _0x342bc0=_0x516451;_0x1874e0[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b30'),'$scope','$timeout',_0x21d0f5('0x1ca2'),_0x21d0f5('0x1150'),_0x21d0f5('0x12a5'),_0x21d0f5('0x2143'),_0x21d0f5('0x142d')];function _0x1874e0(_0x43ea55,_0x1046d0,_0x5b5d58,_0x714f7d,_0x4a6f91,_0x3e63ca,_0x520f45,_0x41fa6f){const _0xfc4dbc=_0x21d0f5,_0x969360=this;_0x969360['currentUser']=_0x4a6f91['getCurrentUser'](),_0x969360[_0xfc4dbc('0x2410')]={},_0x969360[_0xfc4dbc('0x206c')]={'count':0x0,'rows':[]},_0x969360['tags']={'count':0x0,'rows':[]},_0x969360[_0xfc4dbc('0x1f2a')]={'includeAll':!![],'id':_0x969360[_0xfc4dbc('0x32a')]['id'],'sort':_0xfc4dbc('0x1c74'),'limit':0xa,'page':0x1},_0x969360[_0xfc4dbc('0xd6d')]={'fields':[]},_0x969360[_0xfc4dbc('0x11e7')]='red',_0x969360[_0xfc4dbc('0x23b2')]=_0x2fbd28,_0x969360[_0xfc4dbc('0x31f')]=_0x5bb780,_0x969360[_0xfc4dbc('0xd5e')]=_0x26755d,_0x969360[_0xfc4dbc('0x1b01')]=_0x378461,_0x969360['openContact']=_0x3a2f5c,_0x969360['call']=_0x1046d0['$parent']['vm'][_0xfc4dbc('0x7c1')],_0x969360[_0xfc4dbc('0x277c')]=_0x5e9f13,_0x969360[_0xfc4dbc('0xb31')]=_0x46fded,_0x969360[_0xfc4dbc('0x2049')]=_0x4ccb69,_0x969360['openAdvancedSearch']=_0x130cd9;function _0x5e9f13(){const _0x33bf69=_0xfc4dbc;_0x3e63ca['cmList'][_0x33bf69('0xbaa')]({'fields':_0x33bf69('0x8d2'),'sort':'name','nolimit':!![]})[_0x33bf69('0x1549')][_0x33bf69('0x11bf')](function(_0x37609f){const _0x281279=_0x33bf69;return _0x969360[_0x281279('0x2410')]=_0x37609f||{'count':0x0,'rows':[]},_0x969360[_0x281279('0x1c89')]=_0x36f548()['keyBy'](_0x969360[_0x281279('0x2410')][_0x281279('0x19b2')],'id'),_0x3e63ca[_0x281279('0x1d73')][_0x281279('0xbaa')]()[_0x281279('0x1549')];})[_0x33bf69('0x11bf')](function(_0x1f8271){const _0x467388=_0x33bf69;_0x969360[_0x467388('0x2763')]=_0x1f8271||{'count':0x0,'rows':[]};})[_0x33bf69('0x11bf')](function(){const _0x470f46=_0x33bf69;_0x969360[_0x470f46('0x7db')]=_0x293b54();})[_0x33bf69('0x151d')](function(_0x127ccf){const _0x4870a0=_0x33bf69;console[_0x4870a0('0x255')](_0x127ccf);})[_0x33bf69('0xa9b')](function(){const _0x47cdd9=_0x33bf69;let _0x58ede7=_0x520f45[_0x47cdd9('0xe4a')][_0x47cdd9('0x2356')](_0x47cdd9('0x41')+_0x969360['currentUser']['id']);if(_0x58ede7)try{_0x58ede7=JSON[_0x47cdd9('0x1850')](_0x58ede7);if(_0x58ede7['query']){_0x969360[_0x47cdd9('0x1f2a')]=_0x36f548()[_0x47cdd9('0x47b')](_0x969360['query'],_0x58ede7[_0x47cdd9('0x1f2a')]);if(_0x36f548()[_0x47cdd9('0x1fc5')](_0x969360[_0x47cdd9('0x2410')][_0x47cdd9('0x19b2')]))_0x969360[_0x47cdd9('0x1f2a')][_0x47cdd9('0x1e91')]=[];else _0x36f548()[_0x47cdd9('0x1fc5')](_0x969360[_0x47cdd9('0x1f2a')][_0x47cdd9('0x1e91')])&&(_0x969360[_0x47cdd9('0x1f2a')][_0x47cdd9('0x1e91')]=_0x36f548()(_0x969360[_0x47cdd9('0x2410')]['rows'])['map']('id')[_0x47cdd9('0x1d3f')]()[_0x47cdd9('0x10cc')]());}}catch(_0x54c66c){console['error'](_0x54c66c);}else _0x969360['query'][_0x47cdd9('0x1e91')]=_0x36f548()[_0x47cdd9('0x2171')](_0x969360['lists'][_0x47cdd9('0x19b2')],'id');_0x969360[_0x47cdd9('0x12f7')]=_0x969360[_0x47cdd9('0x1f2a')][_0x47cdd9('0xdb4')]?!![]:![],_0x2fbd28();});}function _0x293b54(){const _0x3ba34d=_0xfc4dbc;return[{'name':_0x3ba34d('0x2474'),'key':_0x3ba34d('0x1e91'),'type':_0x3ba34d('0xe83'),'label':_0x3ba34d('0x1bdb'),'options':_0x969360['lists'][_0x3ba34d('0x19b2')],'clearAll':![]},{'name':_0x3ba34d('0x23ba'),'key':_0x3ba34d('0x1d73'),'type':'multiselect','label':_0x3ba34d('0x9b9'),'options':_0x969360[_0x3ba34d('0x2763')][_0x3ba34d('0x19b2')],'placeholder':_0x3ba34d('0x1f9a')}];}function _0x1c6f5b(_0x1fcc10){const _0x2437f0=_0xfc4dbc;_0x969360['searchInProgress']=![],_0x969360[_0x2437f0('0x206c')]=_0x1fcc10||{'count':0x0,'rows':[]};}function _0x2fbd28(_0x497927){const _0x260752=_0xfc4dbc;_0x969360[_0x260752('0x1fbd')]=!![],_0x595e14();!_0x497927&&(_0x969360[_0x260752('0x1f2a')][_0x260752('0x1c2')]=0x1);_0x969360[_0x260752('0x1f2a')][_0x260752('0x1393')]=(_0x969360[_0x260752('0x1f2a')]['page']-0x1)*_0x969360[_0x260752('0x1f2a')][_0x260752('0xd5c')];let _0x297ab1=_0x520f45[_0x260752('0xe4a')][_0x260752('0x2356')](_0x260752('0x41')+_0x969360[_0x260752('0x32a')]['id']);_0x297ab1=_0x297ab1?JSON[_0x260752('0x1850')](_0x297ab1):{},_0x297ab1[_0x260752('0x1f2a')]=_0x969360[_0x260752('0x1f2a')],_0x520f45[_0x260752('0xe4a')]['setItem'](_0x260752('0x41')+_0x969360[_0x260752('0x32a')]['id'],JSON[_0x260752('0x3e')](_0x297ab1));if(_0x969360['query']['search'])_0x969360[_0x260752('0x1778')]=_0x36f548()[_0x260752('0x196f')](_0x969360[_0x260752('0x1f2a')],'id');_0x969360['promise']=_0x969360[_0x260752('0x1f2a')][_0x260752('0xce2')]?_0x3e63ca[_0x260752('0x1b8f')][_0x260752('0xbaa')](_0x969360[_0x260752('0x1778')],_0x1c6f5b)[_0x260752('0x1549')]:_0x3e63ca[_0x260752('0x21d9')][_0x260752('0x23b2')](_0x969360['query'],_0x1c6f5b)[_0x260752('0x1549')];}function _0x3a2f5c(_0x44f8d6,_0x4bcef8){const _0x41ff05=_0xfc4dbc;_0x1046d0[_0x41ff05('0x25f5')]['vm']['addContactTab'](_0x4bcef8);}function _0x5bb780(){_0x2fbd28();}function _0x378461(_0x3d653b,_0xdda2ef){const _0x379eab=_0xfc4dbc;_0x714f7d[_0x379eab('0xb9')]({'controller':_0x379eab('0xfd8'),'controllerAs':'vm','templateUrl':_0x492638,'parent':angular[_0x379eab('0x1e73')](_0x43ea55[_0x379eab('0x1d2')]),'targetEvent':_0x3d653b,'clickOutsideToClose':!![],'resolve':{'contact':['apiResolver',function(_0x466070){const _0x578498=_0x379eab;return _0x466070['resolve'](_0x578498('0x1923'),{'id':_0xdda2ef['id']});}],'lists':[_0x379eab('0x218e'),function(_0x1be2eb){const _0x3b702d=_0x379eab;return _0x1be2eb['resolve'](_0x3b702d('0x4b4'),{'id':_0x969360[_0x3b702d('0x32a')]['id'],'fields':_0x3b702d('0x721')});}]},'locals':{'contacts':_0x969360['contacts']['rows']}});}function _0x26755d(_0x23db9c,_0x6f04e){const _0x158739=_0xfc4dbc;_0x714f7d[_0x158739('0xb9')]({'controller':_0x158739('0x260f'),'controllerAs':'vm','templateUrl':_0x33f96f,'parent':angular['element'](_0x43ea55[_0x158739('0x1d2')]),'targetEvent':_0x23db9c,'clickOutsideToClose':!![],'resolve':{'contact':[_0x158739('0x218e'),function(_0x53fcab){const _0x4f8e9f=_0x158739;return _0x53fcab[_0x4f8e9f('0xa28')]('cmContact@get',{'id':_0x6f04e['id']});}],'lists':[_0x158739('0x218e'),function(_0xd782e4){const _0x22bb46=_0x158739;return _0xd782e4[_0x22bb46('0xa28')]('user@getLists',{'id':_0x969360[_0x22bb46('0x32a')]['id'],'fields':'id,name'});}]},'locals':{'contacts':_0x969360[_0x158739('0x206c')][_0x158739('0x19b2')]}});}function _0x46fded(){_0x969360['isSearchBarVisible']=![];}function _0x4ccb69(){const _0x443b22=_0xfc4dbc;_0x969360[_0x443b22('0x12f7')]=!![];}function _0x595e14(){const _0x374307=_0xfc4dbc;return _0x3e63ca['cmContact'][_0x374307('0x19a5')]({'id':_0x969360[_0x374307('0x1f2a')][_0x374307('0x1e91')]})[_0x374307('0x1549')]['then'](function(_0x40b0d3){const _0x1b4928=_0x374307;return _0x36f548()(_0x40b0d3['toJSON']())[_0x1b4928('0x196f')](_0x1b4928('0x2342'))[_0x1b4928('0x1643')]()[_0x1b4928('0x2171')](function(_0x15bcdf){return _0x1f4429(_0x15bcdf);})['value']();})['then'](function(_0x1d48fc){const _0x5690ac=_0x374307;_0x969360['advancedSearch'][_0x5690ac('0x1067')]=_0x1d48fc;const _0x25432f={'name':_0x5690ac('0x806'),'column':_0x5690ac('0x23ba'),'type':_0x5690ac('0xe83'),'options':{'route':{'model':_0x5690ac('0x1d73'),'action':_0x5690ac('0xbaa'),'params':{'nolimit':!![]}},'excludedOperators':['$notIn']}};let _0x41ea7d=_0x36f548()[_0x5690ac('0x1b12')](_0x1d48fc,function(_0x3d6139){const _0x500291=_0x5690ac;return _0x36f548()[_0x500291('0x1eb7')](_0x3d6139[_0x500291('0x6a3')],_0x500291('0x57a'));})||_0x1d48fc[_0x5690ac('0x1e22')]-0x1;if(_0x41ea7d<0x0)_0x41ea7d=_0x1d48fc[_0x5690ac('0x1e22')];_0x969360['advancedSearch']['fields'][_0x5690ac('0x1ae')](_0x41ea7d,0x0,_0x25432f);})['catch'](function(_0xc7f72c){const _0x559422=_0x374307;_0x41fa6f[_0x559422('0x255')]({'title':_0xc7f72c[_0x559422('0xff9')]?_0x559422('0x574')+_0xc7f72c[_0x559422('0xff9')]+'\x20-\x20'+_0xc7f72c[_0x559422('0x212f')]:'DESCRIBE_CM_CONTACTS','msg':_0xc7f72c[_0x559422('0x4e8')]?JSON[_0x559422('0x3e')](_0xc7f72c[_0x559422('0x4e8')]['message']):_0xc7f72c[_0x559422('0xaab')]()});});}function _0x1f4429(_0x749c4d){const _0x1598bb=_0xfc4dbc,_0x208c15={'name':_0x36f548()[_0x1598bb('0x13cf')](_0x749c4d[_0x1598bb('0x22cf')]),'column':_0x749c4d['columnName'],'options':{}};if(_0x749c4d['custom'])switch(_0x749c4d[_0x1598bb('0xa8d')][_0x1598bb('0x19fd')]){case _0x1598bb('0x25ed'):_0x208c15['type']=_0x1598bb('0x25ed');break;case _0x1598bb('0x2350'):_0x208c15['type']=_0x1598bb('0xe83'),_0x208c15['values']=_0x36f548()[_0x1598bb('0x2171')](JSON[_0x1598bb('0x1850')](_0x749c4d[_0x1598bb('0xa8d')][_0x1598bb('0x1643')]),function(_0xd5ad2a,_0x27bd49){const _0x145f24=_0x1598bb;return{'id':_0x27bd49,'name':_0xd5ad2a[_0x145f24('0x10cc')],'value':_0xd5ad2a['value']};}),_0x208c15[_0x1598bb('0x249a')]['field']=_0x1598bb('0x1909');break;case _0x1598bb('0x2044'):_0x208c15['type']=_0x1598bb('0x2350'),_0x208c15[_0x1598bb('0x1643')]=[{'id':0x1,'translate':_0x1598bb('0x283')},{'id':0x0,'translate':_0x1598bb('0x148')}],_0x208c15[_0x1598bb('0x249a')]['excludedOperators']=[_0x1598bb('0x27c1')];break;case _0x1598bb('0x139e'):_0x208c15['type']=_0x1598bb('0x139e');break;case _0x1598bb('0x14dd'):_0x208c15[_0x1598bb('0x19fd')]=_0x1598bb('0x22f7');break;}else switch(_0x749c4d[_0x1598bb('0x12e3')]){case _0x1598bb('0xba4'):_0x208c15[_0x1598bb('0x19fd')]=_0x1598bb('0x22f7');break;case _0x1598bb('0x5b9'):_0x208c15[_0x1598bb('0x1909')]=_0x1598bb('0x216e'),_0x208c15['type']=_0x1598bb('0x282b'),_0x208c15['options'][_0x1598bb('0x17d8')]={'model':'cmCompany','action':_0x1598bb('0xbaa'),'params':{'fields':_0x1598bb('0x721'),'nolimit':!![]}},_0x208c15[_0x1598bb('0x249a')][_0x1598bb('0xc4d')]=[_0x1598bb('0x1909')],_0x208c15[_0x1598bb('0x249a')][_0x1598bb('0x1e7f')]=[_0x1598bb('0x27c1')];break;case _0x1598bb('0x1e91'):_0x208c15[_0x1598bb('0x1909')]=_0x1598bb('0x2474'),_0x208c15[_0x1598bb('0x19fd')]=_0x1598bb('0x282b'),_0x208c15['options']['route']={'model':_0x1598bb('0x21d9'),'action':_0x1598bb('0x1161'),'params':{'id':_0x969360['currentUser']['id'],'fields':_0x1598bb('0x721'),'nolimit':!![]}},_0x208c15['options'][_0x1598bb('0xc4d')]=[_0x1598bb('0x1909')],_0x208c15[_0x1598bb('0x249a')][_0x1598bb('0x1e7f')]=[_0x1598bb('0x27c1')];break;default:if(_0x36f548()[_0x1598bb('0x55a')](_0x749c4d['type']['toLowerCase'](),_0x1598bb('0x241')))_0x208c15[_0x1598bb('0x19fd')]=_0x1598bb('0x139e');else _0x36f548()['includes'](_0x749c4d[_0x1598bb('0x19fd')]['toLowerCase'](),_0x1598bb('0x22f7'))?_0x208c15[_0x1598bb('0x19fd')]=_0x1598bb('0x22f7'):_0x208c15['type']='text';break;}return _0x208c15;}function _0x130cd9(){const _0x5d6d2d=_0xfc4dbc;_0x969360[_0x5d6d2d('0x12f7')]=![],_0x714f7d['show']({'controller':_0x5d6d2d('0x5'),'controllerAs':'vm','templateUrl':_0x19602a,'parent':angular[_0x5d6d2d('0x1e73')](_0x43ea55[_0x5d6d2d('0x1d2')]),'clickOutsideToClose':![],'locals':{'color':_0x969360[_0x5d6d2d('0x11e7')],'fields':_0x969360[_0x5d6d2d('0xd6d')][_0x5d6d2d('0x1067')],'storagePath':_0x5d6d2d('0x44f')},'fullscreen':!![]})['then'](function(_0x2206f6){const _0x1328cb=_0x5d6d2d;_0x969360[_0x1328cb('0x1f2a')][_0x1328cb('0xce2')]=_0x2206f6===![]?undefined:_0x2206f6;if(_0x2206f6===![])_0x2fbd28();else _0x969360[_0x1328cb('0x1f2a')][_0x1328cb('0xce2')]&&(_0x969360['query'][_0x1328cb('0xce2')]+=_0x1328cb('0x1d22')+_0x969360['currentUser']['id']+']',_0x2fbd28());})[_0x5d6d2d('0x151d')](function(_0x275811){const _0x259d03=_0x5d6d2d;_0x41fa6f[_0x259d03('0x255')]({'title':_0x259d03('0x1d30'),'msg':_0x275811[_0x259d03('0x4e8')]?JSON[_0x259d03('0x3e')](_0x275811[_0x259d03('0x4e8')][_0x259d03('0x1b86')]):_0x275811['toString']()});});}let _0x12925e=!![],_0x17f704=0x1;_0x1046d0[_0xfc4dbc('0x2087')](_0xfc4dbc('0x842'),function(_0xf84a55,_0x507a3f){const _0x361e48=_0xfc4dbc;_0x12925e?_0x5b5d58(function(){_0x12925e=![];}):(!_0x507a3f&&(_0x17f704=_0x969360[_0x361e48('0x1f2a')]['page']),_0xf84a55!==_0x507a3f&&(_0x969360[_0x361e48('0x1f2a')]['page']=0x1),!_0xf84a55&&(_0x969360['query'][_0x361e48('0x1c2')]=_0x17f704),_0x2fbd28());});}const _0x31e784=_0x1874e0;_0x3313dd[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0x17f5'),_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),_0x21d0f5('0x2143'),_0x21d0f5('0xb6b'),_0x21d0f5('0x12a5'),'Auth','socket','toasty',_0x21d0f5('0x2a1')];function _0x3313dd(_0x4f1fc7,_0x4d9a27,_0x2943c1,_0x1c3501,_0x13823b,_0x2037c4,_0x229801,_0x5381cb,_0x388b2f,_0xe61efa,_0x25042c){const _0xec0778=_0x21d0f5,_0x50c633=this;_0x50c633[_0xec0778('0x21d9')]=_0x5381cb[_0xec0778('0x2428')](),_0x50c633['license']={},_0x50c633[_0xec0778('0x23e1')]={},_0x50c633['tags']={'count':0x0,'rows':[]},_0x50c633['openchannelInteractions']={'count':0x0,'rows':[]},_0x50c633[_0xec0778('0x1f2a')]={'includeAll':!![],'sort':_0xec0778('0x1c74'),'limit':0xa,'page':0x1,'read':null,'closed':null},_0x50c633[_0xec0778('0xd6d')]={'fields':[{'name':'Id','column':'id','type':_0xec0778('0x139e')},{'name':_0xec0778('0xf10'),'column':_0xec0778('0xf10'),'type':'autocomplete','options':{'searchFields':['firstName','lastName',_0xec0778('0x15d3')],'route':{'model':_0xec0778('0x1b8f'),'action':_0xec0778('0xbaa'),'params':{'fields':'id,firstName,lastName,email','Contact':_0xec0778('0xfda'),'nolimit':!![]}},'extraOperators':[_0xec0778('0x512')],'excludedOperators':[_0xec0778('0x27c1')]}},{'name':_0xec0778('0x113e'),'column':_0xec0778('0x1d2'),'type':_0xec0778('0x25ed'),'options':{'excludedOperators':[_0xec0778('0x23de'),_0xec0778('0x27c1')]}},{'name':'Status','column':'closed','type':_0xec0778('0x2350'),'values':[{'id':0x0,'translate':'DASHBOARDS.OPENED'},{'id':0x1,'translate':_0xec0778('0x199')}],'options':{'excludedOperators':[_0xec0778('0x27c1')]}},{'name':'Agent','column':_0xec0778('0x24ab'),'type':_0xec0778('0x282b'),'options':{'table':'i','route':{'model':_0xec0778('0x21d9'),'action':_0xec0778('0xbaa'),'params':{'role':_0xec0778('0x18c4'),'fields':_0xec0778('0x919'),'nolimit':!![]}},'searchFields':['fullname',_0xec0778('0x1909')],'extraOperators':[_0xec0778('0x512')],'excludedOperators':[_0xec0778('0x27c1')]}},{'name':_0xec0778('0x1e3c'),'column':_0xec0778('0x2863'),'type':_0xec0778('0xe83'),'options':{'route':{'model':_0xec0778('0x21d9'),'action':_0xec0778('0x2549'),'params':{'id':_0x50c633['user']['id'],'nolimit':!![]}}}},{'name':_0xec0778('0x806'),'column':_0xec0778('0x23ba'),'type':_0xec0778('0xe83'),'options':{'route':{'model':_0xec0778('0x1d73'),'action':_0xec0778('0xbaa'),'params':{'nolimit':!![]}},'excludedOperators':['$notIn']}},{'name':_0xec0778('0xa68'),'column':_0xec0778('0x1779'),'type':_0xec0778('0x22f7'),'options':{'excludedOperators':[_0xec0778('0x27c1')]}},{'name':_0xec0778('0xf18'),'column':_0xec0778('0xf2'),'type':_0xec0778('0x2350'),'values':[{'id':0x1,'translate':'DASHBOARDS.READ'},{'id':0x0,'translate':_0xec0778('0x1dd4')}],'options':{'excludedOperators':[_0xec0778('0x27c1')]}}]},_0x50c633[_0xec0778('0x11e7')]=_0xec0778('0x2829'),_0x50c633['onInit']=_0x153461,_0x50c633[_0xec0778('0x2693')]=_0x38bda1,_0x50c633['getOpenchannelInteractions']=_0x270368,_0x50c633[_0xec0778('0x1a4a')]=_0x5cf48c,_0x50c633['downloadOpenchannelInteraction']=_0x258899,_0x50c633[_0xec0778('0x1dfb')]=_0x5829e6,_0x50c633[_0xec0778('0x1ddf')]=_0x31fcf6,_0x50c633[_0xec0778('0x1dba')]=_0x43e109,_0x50c633[_0xec0778('0xde7')]=_0x3a5801,_0x50c633[_0xec0778('0x5be')]=_0x52a4ad,_0x50c633[_0xec0778('0xb31')]=_0x2e1dda,_0x50c633[_0xec0778('0x2049')]=_0x4425b3,_0x50c633['openAdvancedSearch']=_0x3ef5bf;function _0x153461(_0x5dd1b7,_0x3adef7){const _0x35e6ed=_0xec0778;return _0x50c633[_0x35e6ed('0x17ff')]=_0x5dd1b7,_0x50c633[_0x35e6ed('0x23e1')]=_0x3adef7,_0x229801[_0x35e6ed('0x21d9')][_0x35e6ed('0xbaa')+_0x36f548()[_0x35e6ed('0x24b5')]('openchannelAccounts')]({'id':_0x50c633[_0x35e6ed('0x21d9')]['id'],'nolimit':!![]})['$promise'][_0x35e6ed('0x11bf')](function(_0x3ed8a4){const _0x26399a=_0x35e6ed;return _0x50c633[_0x26399a('0x1518')]=_0x3ed8a4||{'count':0x0,'rows':[]},_0x229801[_0x26399a('0x1d73')][_0x26399a('0xbaa')]()['$promise'];})[_0x35e6ed('0x11bf')](function(_0x38efd4){const _0x5900bb=_0x35e6ed;_0x50c633[_0x5900bb('0x2763')]=_0x38efd4||{'count':0x0,'rows':[]};})[_0x35e6ed('0x11bf')](function(){const _0x587215=_0x35e6ed;_0x50c633[_0x587215('0x7db')]=_0x753c36();})[_0x35e6ed('0x151d')](function(_0x350568){const _0x536b3d=_0x35e6ed;console[_0x536b3d('0x255')](_0x350568);})[_0x35e6ed('0xa9b')](function(){const _0x5b3fa1=_0x35e6ed;let _0x45b33e=_0x13823b['localStorage'][_0x5b3fa1('0x2356')](_0x5b3fa1('0x1c8a')+_0x50c633[_0x5b3fa1('0x21d9')]['id']);if(_0x45b33e)try{_0x45b33e=JSON[_0x5b3fa1('0x1850')](_0x45b33e);if(_0x45b33e['query']){_0x50c633[_0x5b3fa1('0x1f2a')]=_0x36f548()[_0x5b3fa1('0x47b')](_0x50c633[_0x5b3fa1('0x1f2a')],_0x45b33e[_0x5b3fa1('0x1f2a')]);if(_0x36f548()[_0x5b3fa1('0x1fc5')](_0x50c633[_0x5b3fa1('0x1518')]['rows']))_0x50c633['query'][_0x5b3fa1('0x2863')]=[];else _0x36f548()[_0x5b3fa1('0x1fc5')](_0x50c633[_0x5b3fa1('0x1f2a')][_0x5b3fa1('0x2863')])&&(_0x50c633[_0x5b3fa1('0x1f2a')]['OpenchannelAccountId']=_0x36f548()(_0x50c633[_0x5b3fa1('0x1518')][_0x5b3fa1('0x19b2')])[_0x5b3fa1('0x2171')]('id')[_0x5b3fa1('0x1d3f')]()[_0x5b3fa1('0x10cc')]());_0x50c633[_0x5b3fa1('0x1f2a')][_0x5b3fa1('0x1c16')]&&_0x50c633[_0x5b3fa1('0x1f2a')]['sort'][_0x5b3fa1('0x203c')](_0x5b3fa1('0x13b'))>=0x0&&(_0x50c633[_0x5b3fa1('0x1f2a')]=_0x36f548()[_0x5b3fa1('0x196f')](_0x50c633[_0x5b3fa1('0x1f2a')],_0x5b3fa1('0x1c16'))),_0x50c633[_0x5b3fa1('0x1f2a')]['includeAll']=!![],_0x50c633[_0x5b3fa1('0x12f7')]=_0x50c633[_0x5b3fa1('0x1f2a')]['filter']?!![]:![];}}catch(_0x4e919a){console[_0x5b3fa1('0x255')](_0x4e919a);}else{const _0x57365e={'$gte':_0x57d4d1()()[_0x5b3fa1('0x2655')](_0x5b3fa1('0x4d8'))[_0x5b3fa1('0x1fb1')](0x0,!![])[_0x5b3fa1('0x1826')](),'$lte':_0x57d4d1()()[_0x5b3fa1('0x2ba')](_0x5b3fa1('0x4d8'))[_0x5b3fa1('0x1fb1')](0x0,!![])[_0x5b3fa1('0x1826')]()},_0x4dee87={'OpenchannelAccountId':_0x36f548()[_0x5b3fa1('0x2171')](_0x50c633['openchannelAccounts']['rows'],'id'),'createdAt':_0x57365e};_0x50c633[_0x5b3fa1('0x1f2a')]=_0x36f548()['merge'](_0x50c633['query'],_0x4dee87);}_0x388b2f['on']('openchannelInteraction:save',_0x10a702),_0x388b2f['on'](_0x5b3fa1('0xb04'),_0x10a702),_0x388b2f['on'](_0x5b3fa1('0x2f7'),_0x1c9bb7),_0x388b2f['on'](_0x5b3fa1('0x61'),_0x4b9c12),_0x388b2f['on'](_0x5b3fa1('0x20b7'),_0x4b9c12),_0x388b2f['on'](_0x5b3fa1('0x185f'),_0x3efa4e),_0x388b2f['on'](_0x5b3fa1('0x269a'),_0x45afae),_0x270368(_0x50c633[_0x5b3fa1('0x1f2a')][_0x5b3fa1('0x1c2')]);});}function _0x753c36(){const _0x112e47=_0xec0778;return[{'name':_0x112e47('0xa68'),'key':_0x112e47('0x1779'),'type':_0x112e47('0x22f7'),'label':_0x112e47('0x1c11')},{'name':_0x112e47('0x3ad'),'key':'read','type':_0x112e47('0x2350'),'label':'DASHBOARDS.SELECT_READ_UNREAD','customOptions':[{'value':0x0,'translate':_0x112e47('0x1dd4')},{'value':0x1,'translate':_0x112e47('0x22a5')},{'value':null,'translate':_0x112e47('0x211a')}]},{'name':_0x112e47('0x971'),'key':'closed','type':_0x112e47('0x2350'),'label':_0x112e47('0xa96'),'customOptions':[{'value':0x0,'translate':'DASHBOARDS.OPENED'},{'value':0x1,'translate':'DASHBOARDS.CLOSED'},{'value':null,'translate':_0x112e47('0x211a')}]},{'name':'Account','key':_0x112e47('0x2863'),'type':_0x112e47('0xe83'),'label':_0x112e47('0x10b'),'options':_0x50c633[_0x112e47('0x1518')][_0x112e47('0x19b2')],'clearAll':![]},{'name':_0x112e47('0x701'),'key':_0x112e47('0x2342'),'type':_0x112e47('0x2350'),'label':_0x112e47('0x84a'),'customOptions':[{'value':_0x50c633[_0x112e47('0x21d9')]['id'],'translate':_0x112e47('0x275d')},{'value':_0x112e47('0xb5f'),'translate':_0x112e47('0x1a02')},{'value':undefined,'translate':'DASHBOARDS.ALL'}]},{'name':'Tag','key':_0x112e47('0x1d73'),'type':'multiselect','label':'DASHBOARDS.SELECT_TAG','options':_0x50c633['tags'][_0x112e47('0x19b2')],'placeholder':'DASHBOARDS.TAGS'}];}function _0x38bda1(_0x25f2cb){const _0x25eda2=_0xec0778;_0x50c633[_0x25eda2('0x1fbd')]=![],_0x50c633[_0x25eda2('0xce1')]=_0x25f2cb||{'count':0x0,'rows':[]};for(let _0x193a80=0x0;_0x193a80<_0x50c633['openchannelInteractions'][_0x25eda2('0x19b2')][_0x25eda2('0x1e22')];_0x193a80+=0x1){_0x31fcf6(_0x50c633[_0x25eda2('0xce1')][_0x25eda2('0x19b2')][_0x193a80]);}}function _0x270368(_0x209ed3){const _0x1b9ee2=_0xec0778;_0x50c633[_0x1b9ee2('0x1fbd')]=!![];!_0x209ed3&&(_0x50c633['query'][_0x1b9ee2('0x1c2')]=0x1);_0x50c633[_0x1b9ee2('0x1f2a')][_0x1b9ee2('0x1393')]=(_0x50c633['query'][_0x1b9ee2('0x1c2')]-0x1)*_0x50c633[_0x1b9ee2('0x1f2a')]['limit'];let _0x23ddd8=_0x13823b[_0x1b9ee2('0xe4a')]['getItem'](_0x1b9ee2('0x1c8a')+_0x50c633['user']['id']);_0x23ddd8=_0x23ddd8?JSON[_0x1b9ee2('0x1850')](_0x23ddd8):{},_0x23ddd8[_0x1b9ee2('0x1f2a')]=_0x50c633[_0x1b9ee2('0x1f2a')],_0x13823b[_0x1b9ee2('0xe4a')]['setItem'](_0x1b9ee2('0x1c8a')+_0x50c633[_0x1b9ee2('0x21d9')]['id'],JSON[_0x1b9ee2('0x3e')](_0x23ddd8)),_0x50c633[_0x1b9ee2('0x13f')]=_0x229801[_0x1b9ee2('0x165e')]['get'](_0x50c633['query'],_0x38bda1)[_0x1b9ee2('0x1549')];}function _0x5cf48c(_0xaefd9e,_0x50b70f){const _0x59346a=_0xec0778;_0x4f1fc7[_0x59346a('0x25f5')]['vm']['addInteractionTab'](_0x59346a('0xb18'),_0x50b70f);}function _0x258899(_0x4753ae,_0x3160c7,_0x1e76a1){const _0xeff176=_0xec0778;_0x229801['openchannelInteraction'][_0xeff176('0x149c')]({'id':_0x3160c7['id'],'attachments':_0x1e76a1})['$promise'][_0xeff176('0x11bf')](function(_0x3e6955){const _0x4dc8c0=_0xeff176,_0x22b1da=[_0x3e6955[_0x4dc8c0('0x1e94')]],_0x4fe2ae=_0x4dc8c0('0x2095')+_0x3160c7['id']+'.zip',_0x4fcd8c=new Blob(_0x22b1da,{'type':_0x3e6955['type']}),_0x582000=window['document'][_0x4dc8c0('0x2773')]('a');_0x582000[_0x4dc8c0('0x1e1b')](_0x4dc8c0('0xead'),URL[_0x4dc8c0('0x44b')](_0x4fcd8c)),_0x582000['setAttribute'](_0x4dc8c0('0x149c'),_0x4fe2ae),document[_0x4dc8c0('0x1d2')][_0x4dc8c0('0x131c')](_0x582000),_0x582000[_0x4dc8c0('0x1371')]();})[_0xeff176('0x151d')](function(_0x5092ab){const _0x17895a=_0xeff176;if(_0x5092ab[_0x17895a('0x4e8')]&&_0x5092ab['data']['errors']&&_0x5092ab[_0x17895a('0x4e8')]['errors'][_0x17895a('0x1e22')])for(let _0x3b3f60=0x0;_0x3b3f60<_0x5092ab[_0x17895a('0x4e8')][_0x17895a('0x120f')][_0x17895a('0x1e22')];_0x3b3f60+=0x1){_0xe61efa[_0x17895a('0x255')]({'title':_0x5092ab[_0x17895a('0x4e8')]['errors'][_0x3b3f60][_0x17895a('0x19fd')],'msg':_0x5092ab[_0x17895a('0x4e8')][_0x17895a('0x120f')][_0x3b3f60]['message']});}else _0xe61efa[_0x17895a('0x255')]({'title':_0x5092ab[_0x17895a('0xff9')]?_0x17895a('0x574')+_0x5092ab[_0x17895a('0xff9')]+_0x17895a('0xb0b')+_0x5092ab[_0x17895a('0x212f')]:_0x17895a('0x765'),'msg':_0x5092ab[_0x17895a('0x4e8')]?JSON[_0x17895a('0x3e')](_0x5092ab[_0x17895a('0x4e8')]['message']):_0x5092ab[_0x17895a('0xaab')]()});});}function _0x5829e6(_0x5c13be,_0x98c7f6){const _0x102a3f=_0xec0778,_0xb095f4=_0x50c633[_0x102a3f('0x21d9')]['voicePause']||_0x50c633[_0x102a3f('0x21d9')]['chatPause']||_0x50c633[_0x102a3f('0x21d9')][_0x102a3f('0x1f53')]||_0x50c633[_0x102a3f('0x21d9')][_0x102a3f('0xfc0')]||_0x50c633[_0x102a3f('0x21d9')][_0x102a3f('0x2501')],_0xc30ea1=!_0x98c7f6[_0x102a3f('0x1e3c')][_0x102a3f('0x123b')];_0x2943c1[_0x102a3f('0xb9')]({'controller':_0x102a3f('0xcd5'),'controllerAs':'vm','templateUrl':_0x35815a,'parent':angular[_0x102a3f('0x1e73')](_0x1c3501[_0x102a3f('0x1d2')]),'clickOutsideToClose':_0xc30ea1,'escapeToClose':_0xc30ea1,'onRemoving':function(){const _0x17aca9=_0x102a3f;_0x50c633[_0x17aca9('0x21d9')]&&_0x98c7f6[_0x17aca9('0x1e3c')]['mandatoryDisposition']&&!_0xb095f4&&_0x229801[_0x17aca9('0x21d9')][_0x17aca9('0xb6f')]({'id':_0x50c633['user']['id']})[_0x17aca9('0x1549')][_0x17aca9('0x151d')](function(_0x46abca){const _0x3533bb=_0x17aca9;console[_0x3533bb('0x255')](_0x46abca);});},'locals':{'user':_0x50c633[_0x102a3f('0x21d9')],'channel':_0x102a3f('0xb18'),'interaction':_0x98c7f6}});}function _0x31fcf6(_0x156283){const _0x3c09f5=_0xec0778;if(_0x156283[_0x3c09f5('0x18a0')])_0x156283[_0x3c09f5('0xca9')]=_0x156283[_0x3c09f5('0x18a0')];else _0x156283[_0x3c09f5('0xf10')]?_0x156283[_0x3c09f5('0xca9')]=(_0x156283['Contact'][_0x3c09f5('0x13a0')]||'')+'\x20'+(_0x156283[_0x3c09f5('0xf10')][_0x3c09f5('0xcf3')]||''):_0x156283[_0x3c09f5('0xca9')]=_0x2037c4[_0x3c09f5('0x10c2')](_0x3c09f5('0x1d85'));}function _0x43e109(_0x84fda5){const _0x4a15c9=_0xec0778;if(_0x84fda5[_0x4a15c9('0x2342')])return _0x84fda5[_0x4a15c9('0x2342')]===_0x50c633[_0x4a15c9('0x21d9')]['id']?_0x2037c4['instant'](_0x4a15c9('0x275d')):_0x84fda5[_0x4a15c9('0x657')][_0x4a15c9('0x27af')]+'\x20<'+_0x84fda5[_0x4a15c9('0x657')]['internal']+'>';return _0x2037c4['instant'](_0x4a15c9('0x1a02'));}function _0x3a5801(_0x9b01f8){const _0x54b3f0=_0xec0778;if(_0x9b01f8['Account'])return _0x9b01f8[_0x54b3f0('0x1e3c')][_0x54b3f0('0xa0c')];return _0x2037c4[_0x54b3f0('0x10c2')]('APP.UNKNOWN');}function _0x52a4ad(_0x3c0f06,_0x4e7363){const _0x1ca5d7=_0xec0778;_0x2943c1[_0x1ca5d7('0xb9')]({'controller':_0x1ca5d7('0x942'),'controllerAs':'vm','templateUrl':_0xac735f,'parent':angular[_0x1ca5d7('0x1e73')](_0x1c3501['body']),'clickOutsideToClose':![],'locals':{'account':_0x4e7363,'message':{},'type':'new','interaction':{}},'fullscreen':!![]})[_0x1ca5d7('0x11bf')](function(_0xa833bc){const _0x3f85c9=_0x1ca5d7;if(_0xa833bc){if(_0xa833bc[_0x3f85c9('0x1b86')]&&_0xa833bc[_0x3f85c9('0x1b86')][_0x3f85c9('0x2710')]){const _0x48ac0a={'channel':'openchannel','account':_0x4e7363,'message':_0xa833bc[_0x3f85c9('0x1b86')],'contact':_0xa833bc['contact']};_0x25042c[_0x3f85c9('0x23c1')](_0x48ac0a);}else{const _0x2c05f8=_0xa833bc;return _0x229801[_0x3f85c9('0x13cb')][_0x3f85c9('0x2481')]({'id':_0x4e7363['id']},_0x2c05f8)[_0x3f85c9('0x1549')][_0x3f85c9('0x11bf')](function(_0x3b219a){const _0x213814=_0x3f85c9;_0xe61efa[_0x213814('0x2693')]({'title':_0x213814('0x1292'),'msg':'Message\x20has\x20been\x20sent!'}),_0x4f1fc7['$parent']['vm'][_0x213814('0x226f')](_0x213814('0xb18'),_0x3b219a);})['catch'](function(_0xdbea18){const _0x1119ce=_0x3f85c9;if(_0xdbea18[_0x1119ce('0x4e8')]&&_0xdbea18[_0x1119ce('0x4e8')][_0x1119ce('0x120f')]&&_0xdbea18[_0x1119ce('0x4e8')]['errors'][_0x1119ce('0x1e22')])for(let _0x3530fc=0x0;_0x3530fc<_0xdbea18[_0x1119ce('0x4e8')][_0x1119ce('0x120f')][_0x1119ce('0x1e22')];_0x3530fc++){_0xe61efa['error']({'title':_0xdbea18[_0x1119ce('0x4e8')][_0x1119ce('0x120f')][_0x3530fc][_0x1119ce('0x19fd')],'msg':_0xdbea18[_0x1119ce('0x4e8')][_0x1119ce('0x120f')][_0x3530fc][_0x1119ce('0x1b86')]});}else _0xe61efa[_0x1119ce('0x255')]({'title':_0xdbea18[_0x1119ce('0xff9')]?_0x1119ce('0x574')+_0xdbea18[_0x1119ce('0xff9')]+_0x1119ce('0xb0b')+_0xdbea18['statusText']:_0x1119ce('0x1db7'),'msg':_0xdbea18[_0x1119ce('0x4e8')]?JSON[_0x1119ce('0x3e')](_0xdbea18[_0x1119ce('0x4e8')][_0x1119ce('0x1b86')]):_0xdbea18[_0x1119ce('0x1b86')]||_0xdbea18['toString']()});});}}});}function _0x3efa4e(_0x2eb00f){const _0x53b264=_0xec0778;let _0x3c8ac6;const _0x590869=_0x36f548()[_0x53b264('0x1ad4')](_0x50c633[_0x53b264('0xce1')][_0x53b264('0x19b2')],{'id':_0x2eb00f[_0x53b264('0xd99')]});_0x590869&&_0x590869[_0x53b264('0xc42')]&&(_0x3c8ac6=_0x36f548()['find'](_0x590869[_0x53b264('0xc42')],{'id':_0x2eb00f[_0x53b264('0x2342')]}),!_0x3c8ac6&&_0x590869['Users'][_0x53b264('0x105d')]({'id':_0x2eb00f[_0x53b264('0x2342')]}));}function _0x45afae(_0x16a65e){const _0x100f06=_0xec0778,_0x484695=_0x36f548()[_0x100f06('0x1ad4')](_0x50c633[_0x100f06('0xce1')][_0x100f06('0x19b2')],{'id':_0x16a65e[_0x100f06('0xd99')]});_0x484695&&_0x484695[_0x100f06('0xc42')]&&_0x36f548()[_0x100f06('0x14a5')](_0x484695[_0x100f06('0xc42')],{'id':_0x16a65e[_0x100f06('0x2342')]});}function _0x10a702(_0x1b2bb7){const _0x5e2c4e=_0xec0778;if(_0x1b2bb7){const _0x54e688=_0x36f548()['find'](_0x50c633[_0x5e2c4e('0xce1')][_0x5e2c4e('0x19b2')],{'id':_0x1b2bb7['id']});if(_0x54e688){_0x54e688[_0x5e2c4e('0xc42')]=[];_0x1b2bb7[_0x5e2c4e('0x949')]&&(_0x54e688[_0x5e2c4e('0xf2')]=0x0);if(_0x50c633[_0x5e2c4e('0x1f2a')]['sort']){const _0xdf526a=_0x36f548()[_0x5e2c4e('0x1eb7')](_0x50c633['query']['sort'],'-')?_0x5e2c4e('0x121a'):_0x5e2c4e('0x1875');_0x50c633['openchannelInteractions'][_0x5e2c4e('0x19b2')]=_0x36f548()[_0x5e2c4e('0x17d7')](_0x50c633[_0x5e2c4e('0xce1')][_0x5e2c4e('0x19b2')],_0x36f548()[_0x5e2c4e('0x13b1')](_0x50c633[_0x5e2c4e('0x1f2a')]['sort'],'-'),_0xdf526a);}_0x36f548()['merge'](_0x54e688,_0x36f548()[_0x5e2c4e('0x258')](_0x1b2bb7,_0x36f548()[_0x5e2c4e('0xe22')](_0x54e688)));}else _0x270368(_0x50c633['query']['page']);}}function _0x1c9bb7(_0x5ad1c2){const _0x5c1c7f=_0xec0778;if(_0x5ad1c2){const _0x5ddd61=_0x36f548()['find'](_0x50c633['openchannelInteractions'][_0x5c1c7f('0x19b2')],{'id':_0x5ad1c2['id']});_0x5ddd61&&(_0x5ddd61[_0x5c1c7f('0x806')]=_0x5ad1c2['tags']||[],_0x36f548()['merge'](_0x5ddd61,_0x36f548()[_0x5c1c7f('0x258')](_0x5ad1c2,_0x36f548()['keys'](_0x5ddd61))));}}function _0x4b9c12(_0x558c81){const _0x59cdae=_0xec0778;if(_0x558c81&&!_0x558c81[_0x59cdae('0xdaa')]){const _0x3ae807=_0x36f548()[_0x59cdae('0x1ad4')](_0x50c633[_0x59cdae('0xce1')]['rows'],{'id':_0x558c81[_0x59cdae('0xd99')]});if(_0x3ae807){const _0x4cb977=_0x36f548()[_0x59cdae('0x1ad4')](_0x3ae807['Messages'],{'id':_0x558c81['id']});_0x4cb977?_0x36f548()[_0x59cdae('0x47b')](_0x4cb977,_0x36f548()['pick'](_0x558c81,_0x36f548()[_0x59cdae('0xe22')](_0x4cb977))):(_0x36f548()[_0x59cdae('0x1a80')](_0x3ae807[_0x59cdae('0x3ad')])&&(_0x3ae807[_0x59cdae('0x3ad')]={'count':0x0}),!_0x558c81[_0x59cdae('0x1601')]&&(_0x3ae807[_0x59cdae('0x3ad')][_0x59cdae('0x27d2')]+=0x1));}}}function _0x2e1dda(){const _0x538c99=_0xec0778;_0x50c633[_0x538c99('0x12f7')]=![];}function _0x4425b3(){const _0x2f54c3=_0xec0778;_0x50c633[_0x2f54c3('0x12f7')]=!![];}function _0x3ef5bf(){const _0x4e074c=_0xec0778;_0x50c633[_0x4e074c('0x12f7')]=![],_0x2943c1[_0x4e074c('0xb9')]({'controller':_0x4e074c('0x5'),'controllerAs':'vm','templateUrl':_0x19602a,'parent':angular['element'](_0x1c3501[_0x4e074c('0x1d2')]),'clickOutsideToClose':![],'locals':{'color':_0x50c633[_0x4e074c('0x11e7')],'fields':_0x50c633[_0x4e074c('0xd6d')][_0x4e074c('0x1067')],'storagePath':_0x4e074c('0x202a')},'fullscreen':!![]})[_0x4e074c('0x11bf')](function(_0x46eaf1){const _0x2705f8=_0x4e074c;_0x50c633[_0x2705f8('0x1f2a')]['search']=_0x46eaf1===![]?undefined:_0x46eaf1;if(_0x50c633[_0x2705f8('0x1f2a')]['search']||_0x46eaf1===![])_0x270368();})[_0x4e074c('0x151d')](function(_0x4275b8){const _0x2d16a6=_0x4e074c;_0xe61efa[_0x2d16a6('0x255')]({'title':_0x2d16a6('0x1d30'),'msg':_0x4275b8[_0x2d16a6('0x4e8')]?JSON[_0x2d16a6('0x3e')](_0x4275b8['data'][_0x2d16a6('0x1b86')]):_0x4275b8[_0x2d16a6('0xaab')]()});});}let _0x53f00b=!![],_0xfcc7d0=0x1;_0x4f1fc7[_0xec0778('0x2087')](_0xec0778('0x842'),function(_0x5cc660,_0x57d554){const _0x3cefff=_0xec0778;_0x53f00b?_0x4d9a27(function(){_0x53f00b=![];}):(!_0x57d554&&(_0xfcc7d0=_0x50c633[_0x3cefff('0x1f2a')][_0x3cefff('0x1c2')]),_0x5cc660!==_0x57d554&&(_0x50c633[_0x3cefff('0x1f2a')][_0x3cefff('0x1c2')]=0x1),!_0x5cc660&&(_0x50c633[_0x3cefff('0x1f2a')][_0x3cefff('0x1c2')]=_0xfcc7d0),_0x270368(_0x50c633[_0x3cefff('0x1f2a')][_0x3cefff('0x1c2')]));}),_0x4f1fc7[_0xec0778('0x12d8')](_0xec0778('0x4f7'),function(){const _0x2dd002=_0xec0778;_0x388b2f[_0x2dd002('0x1b2e')](_0x2dd002('0x61')),_0x388b2f[_0x2dd002('0x1b2e')](_0x2dd002('0x20b7')),_0x388b2f[_0x2dd002('0x1b2e')](_0x2dd002('0x1f43')),_0x388b2f['removeAllListeners'](_0x2dd002('0x2f7')),_0x388b2f[_0x2dd002('0x1b2e')]('openchannelInteraction:update'),_0x388b2f['removeAllListeners']('user_has_openchannel_interactions:save'),_0x388b2f[_0x2dd002('0x1b2e')](_0x2dd002('0x269a'));});}const _0x29843c=_0x3313dd;_0x4c71e2[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b30'),'$scope','$timeout','$mdDialog',_0x21d0f5('0x1573'),'$sce',_0x21d0f5('0x1150')];function _0x4c71e2(_0x386deb,_0x5a2165,_0x4d0ff4,_0x5b7957,_0x135fa3,_0x4d6399,_0x5e165b){const _0x482bdf=_0x21d0f5,_0x2be095=this;_0x2be095['currentUser']=_0x5e165b[_0x482bdf('0x2428')](),_0x2be095[_0x482bdf('0x1674')]={};function _0x26f9cb(_0x872ccf,_0x244839,_0x49d37a){const _0x5c9e50=_0x482bdf;_0x2be095[_0x5c9e50('0x17ff')]=_0x872ccf,_0x2be095[_0x5c9e50('0x23e1')]=_0x244839,_0x2be095['plugin']=_0x49d37a;}function _0x454ea3(){const _0x17d969=_0x482bdf;return _0x4d6399['trustAsResourceUrl'](_0x2be095[_0x17d969('0x1674')][_0x17d969('0x193a')]);}_0x5a2165[_0x482bdf('0x12d8')](_0x482bdf('0xf6b'),function(_0x4fe8ef,_0x2a80da){const _0x503079=_0x482bdf;_0x2be095['plugin']=_0x2a80da[_0x503079('0x1674')];}),_0x2be095[_0x482bdf('0x277c')]=_0x26f9cb,_0x2be095[_0x482bdf('0x9ad')]=_0x454ea3,_0x26f9cb();}const _0x3ef7e2=_0x4c71e2;_0x14c215[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0x2143'),_0x21d0f5('0x17f5'),_0x21d0f5('0x12a5'),_0x21d0f5('0x142d'),'Auth'];function _0x14c215(_0x18c9e0,_0x1b8bcd,_0x123dd1,_0x5acb3d,_0x313037,_0x3d5f8e){const _0x226601=_0x21d0f5,_0x165935=this;_0x165935[_0x226601('0x32a')]=_0x3d5f8e[_0x226601('0x2428')](),_0x165935[_0x226601('0x45f')]={},_0x165935[_0x226601('0x13e8')]=_0x226601('0x45f'),_0x165935['query']={'UserId':_0x165935[_0x226601('0x32a')]['id'],'fields':'createdAt,updatedAt,id,format,value,type,uniqueid,calleridnum,exten,connectedlinenum,queue,rating,audio,transcribeStatus,UserId','sort':_0x226601('0x1c74'),'limit':0xa,'page':0x1,'type':null},_0x165935[_0x226601('0x1c07')]=_0x411265,_0x165935[_0x226601('0x227a')]=_0x2b5e3b,_0x165935[_0x226601('0x2693')]=_0x931831,_0x165935[_0x226601('0x14da')]=_0x19e40a,_0x165935[_0x226601('0x277c')]=_0x1ba0bd,_0x165935[_0x226601('0xb31')]=_0xa7f8de,_0x165935[_0x226601('0x2049')]=_0x187e57;function _0x1ba0bd(){const _0x4bf8c0=_0x226601;_0x165935['quickFilters']=_0x3af6c6();let _0xbcd345=_0x1b8bcd[_0x4bf8c0('0xe4a')][_0x4bf8c0('0x2356')](_0x4bf8c0('0x6e8')+_0x165935[_0x4bf8c0('0x32a')]['id']);if(_0xbcd345)try{_0xbcd345=JSON[_0x4bf8c0('0x1850')](_0xbcd345),_0xbcd345['query']&&(_0x165935[_0x4bf8c0('0x1f2a')]=_0x36f548()[_0x4bf8c0('0x196f')](_0xbcd345[_0x4bf8c0('0x1f2a')],[_0x4bf8c0('0xdb4'),'id']),_0x165935[_0x4bf8c0('0x1f2a')][_0x4bf8c0('0x1067')]=_0x4bf8c0('0x174b'),_0x165935['query'][_0x4bf8c0('0x2342')]=_0x165935[_0x4bf8c0('0x32a')]['id']);}catch(_0x11ee68){console['error'](_0x11ee68);}else{const _0x3fc432={'$gte':_0x57d4d1()()['startOf'](_0x4bf8c0('0x4d8'))[_0x4bf8c0('0x1fb1')](0x0,!![])[_0x4bf8c0('0x1826')](),'$lte':_0x57d4d1()()['endOf']('month')[_0x4bf8c0('0x1fb1')](0x0,!![])[_0x4bf8c0('0x1826')]()};_0x165935[_0x4bf8c0('0x1f2a')]['createdAt']=_0x3fc432;}_0x165935[_0x4bf8c0('0x12f7')]=_0x165935[_0x4bf8c0('0x1f2a')][_0x4bf8c0('0xdb4')]?!![]:![],_0x165935['getVoiceRecordings']();}function _0x411265(_0x1b0ce6){const _0x1946ba=_0x226601;return _0x5acb3d[_0x1946ba('0x262')]['download']({'id':_0x1b0ce6['id'],'exists':!![]})[_0x1946ba('0x1549')][_0x1946ba('0x11bf')](function(_0x3c88cc){const _0x5cd756=_0x1946ba,_0x24d578=[_0x3c88cc[_0x5cd756('0x1e94')]],_0x32df88=new Blob(_0x24d578,{'type':_0x3c88cc[_0x5cd756('0x19fd')]}),_0xefba05=window['document'][_0x5cd756('0x2773')]('a');_0xefba05[_0x5cd756('0x1e1b')](_0x5cd756('0xead'),URL['createObjectURL'](_0x32df88)),_0xefba05['setAttribute']('download',_0x1b0ce6[_0x5cd756('0x938')]+_0x1b0ce6[_0x5cd756('0x1826')]),_0xefba05['click']();})[_0x1946ba('0x151d')](function(_0x5abeea){const _0x2857c7=_0x1946ba;_0x313037[_0x2857c7('0x255')]({'title':_0x5abeea[_0x2857c7('0xff9')]?_0x2857c7('0x574')+_0x5abeea[_0x2857c7('0xff9')]+_0x2857c7('0xb0b')+_0x5abeea['statusText']:_0x2857c7('0x478'),'msg':_0x5abeea[_0x2857c7('0x4e8')]?JSON[_0x2857c7('0x3e')](_0x5abeea[_0x2857c7('0x4e8')]):_0x5abeea['toString']()});});}function _0x2b5e3b(_0x265458){const _0x39a73b=_0x226601;return _0x5acb3d[_0x39a73b('0x262')][_0x39a73b('0x1648')]({'id':_0x265458['id']})['$promise']['then'](function(_0x1365bc){const _0x349bc5=_0x39a73b,_0x125e9c=[_0x1365bc[_0x349bc5('0x1e94')]];let _0x3fc239='download';const _0x5703e5=new Blob(_0x125e9c,{'type':_0x1365bc['type']});_0x3fc239=_0x265458[_0x349bc5('0x938')];const _0x9c0120=window[_0x349bc5('0xb54')][_0x349bc5('0x2773')]('a');_0x9c0120[_0x349bc5('0x1e1b')](_0x349bc5('0xead'),URL['createObjectURL'](_0x5703e5)),_0x9c0120[_0x349bc5('0x1e1b')](_0x349bc5('0x149c'),_0x3fc239),document[_0x349bc5('0x1d2')][_0x349bc5('0x131c')](_0x9c0120),_0x9c0120[_0x349bc5('0x1371')]();})[_0x39a73b('0x151d')](function(_0x5364e3){const _0x364d84=_0x39a73b;_0x313037['error']({'title':_0x5364e3[_0x364d84('0xff9')]?'API:'+_0x5364e3['status']+_0x364d84('0xb0b')+_0x5364e3['statusText']:'SYSTEM:GETvoiceRecording','msg':_0x5364e3[_0x364d84('0x4e8')]?JSON[_0x364d84('0x3e')](_0x5364e3[_0x364d84('0x4e8')]):_0x5364e3[_0x364d84('0xaab')]()});});}function _0x3af6c6(){const _0x402f25=_0x226601;return[{'name':_0x402f25('0xa68'),'key':'createdAt','type':'date','label':_0x402f25('0x1c11')},{'name':'Type','key':_0x402f25('0x19fd'),'type':_0x402f25('0x2350'),'label':_0x402f25('0xc8'),'customOptions':[{'value':_0x402f25('0x1a04'),'translate':_0x402f25('0xc37')},{'value':_0x402f25('0x18a2'),'translate':'VOICE.INBOUND'},{'value':_0x402f25('0x25b6'),'translate':_0x402f25('0x2299')},{'value':_0x402f25('0x14be'),'translate':_0x402f25('0xf1b')},{'value':null,'translate':_0x402f25('0x1446')}]}];}function _0x931831(_0x2f6825){const _0x18fc3f=_0x226601;_0x165935[_0x18fc3f('0x1fbd')]=![],_0x165935[_0x18fc3f('0x45f')]=_0x2f6825||{'count':0x0,'rows':[]};}function _0x19e40a(){const _0x1f8bcc=_0x226601;_0x165935[_0x1f8bcc('0x1fbd')]=!![],_0x165935['query'][_0x1f8bcc('0x1393')]=(_0x165935[_0x1f8bcc('0x1f2a')]['page']-0x1)*_0x165935['query'][_0x1f8bcc('0xd5c')];const _0x5b657f={'query':_0x165935[_0x1f8bcc('0x1f2a')]};_0x1b8bcd[_0x1f8bcc('0xe4a')][_0x1f8bcc('0x26d6')](_0x1f8bcc('0x6e8')+_0x165935[_0x1f8bcc('0x32a')]['id'],JSON['stringify'](_0x5b657f)),_0x165935[_0x1f8bcc('0x13f')]=_0x5acb3d[_0x1f8bcc('0x262')]['get'](_0x165935[_0x1f8bcc('0x1f2a')],_0x931831)[_0x1f8bcc('0x1549')];}function _0xa7f8de(){const _0x4566bd=_0x226601;_0x165935[_0x4566bd('0x1f2a')][_0x4566bd('0xdb4')]=undefined,_0x165935[_0x4566bd('0x12f7')]=![];}function _0x187e57(){const _0x48eecf=_0x226601;_0x165935[_0x48eecf('0x12f7')]=!![];}let _0x205d73=!![],_0x21446d=0x1;_0x18c9e0[_0x226601('0x2087')](_0x226601('0x842'),function(_0x23265b,_0xf88e19){const _0x5c6fca=_0x226601;_0x205d73?_0x123dd1(function(){_0x205d73=![];}):(!_0xf88e19&&(_0x21446d=_0x165935[_0x5c6fca('0x1f2a')][_0x5c6fca('0x1c2')]),_0x23265b!==_0xf88e19&&(_0x165935[_0x5c6fca('0x1f2a')][_0x5c6fca('0x1c2')]=0x1),!_0x23265b&&(_0x165935[_0x5c6fca('0x1f2a')][_0x5c6fca('0x1c2')]=_0x21446d),_0x165935[_0x5c6fca('0x14da')]());});}const _0x45a7dc=_0x14c215,_0x5368d2=_0x351988['p']+_0x21d0f5('0x13de');_0x902936[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0x2143'),'$timeout',_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),_0x21d0f5('0x142d'),_0x21d0f5('0x12a5'),'Auth'];function _0x902936(_0x507c2a,_0x50aea5,_0xe393fc,_0x47cde7,_0x23c043,_0xfe88ec,_0x102b55,_0x866eef){const _0x234b46=_0x21d0f5,_0x3f8ce3=this;_0x3f8ce3[_0x234b46('0x32a')]=_0x866eef[_0x234b46('0x2428')](),_0x3f8ce3[_0x234b46('0x281b')]=[_0x234b46('0x1f9b'),'Low',_0x234b46('0x1fec'),'High',_0x234b46('0x2f9')],_0x3f8ce3['crudPermissions']={'readOnly':![],'canEdit':!![],'canDelete':!![]},_0x3f8ce3[_0x234b46('0x1e1a')]={},_0x3f8ce3[_0x234b46('0x1f2a')]={'id':_0x3f8ce3[_0x234b46('0x32a')]['id'],'fields':_0x234b46('0xd96'),'sort':_0x234b46('0x16c'),'limit':0xa,'page':0x1},_0x3f8ce3[_0x234b46('0x8bb')]={'rows':[],'count':0x0},_0x3f8ce3[_0x234b46('0x2693')]=_0x122e84,_0x3f8ce3[_0x234b46('0x203')]=_0x5d0799,_0x3f8ce3[_0x234b46('0x277c')]=_0x1ab5bf,_0x3f8ce3['isDateBeforeToday']=_0x4df384,_0x3f8ce3[_0x234b46('0x402')]=_0x54e7f9,_0x3f8ce3['deleteConfirm']=_0x1eafec;function _0x1ab5bf(){const _0x139459=_0x234b46;_0x102b55[_0x139459('0x21d9')][_0x139459('0x373')]({'id':_0x866eef[_0x139459('0x2428')]()['id'],'fields':'id,name','channel':'voice','type':_0x139459('0x25b6'),'nolimit':!![]})[_0x139459('0x1549')][_0x139459('0x11bf')](function(_0x53807d){_0x3f8ce3['queueCampaigns']=_0x53807d||{'count':0x0,'rows':[]};})[_0x139459('0x11bf')](function(){_0x3f8ce3['quickFilters']=_0x753762();})[_0x139459('0x151d')](function(_0x22be72){const _0x960510=_0x139459;console[_0x960510('0x255')](_0x22be72);})[_0x139459('0xa9b')](function(){const _0x38123e=_0x139459;let _0x1932ad=_0x50aea5['localStorage']['getItem'](_0x38123e('0x1635')+_0x3f8ce3[_0x38123e('0x32a')]['id']);if(_0x1932ad)try{_0x1932ad=JSON[_0x38123e('0x1850')](_0x1932ad),_0x1932ad[_0x38123e('0x1f2a')]&&(_0x3f8ce3[_0x38123e('0x1f2a')]=_0x36f548()['omit'](_0x1932ad[_0x38123e('0x1f2a')],[_0x38123e('0xdb4')]));}catch(_0x16f915){console[_0x38123e('0x255')](_0x16f915);}else{const _0x351959={'$gte':_0x57d4d1()()[_0x38123e('0x2655')](_0x38123e('0x4d8'))[_0x38123e('0x1fb1')](0x0,!![])[_0x38123e('0x1826')](),'$lte':_0x57d4d1()()[_0x38123e('0x2ba')]('month')[_0x38123e('0x1fb1')](0x0,!![])[_0x38123e('0x1826')]()};_0x3f8ce3[_0x38123e('0x1f2a')][_0x38123e('0x1779')]=_0x351959;}_0x3f8ce3[_0x38123e('0x203')]();});}function _0x122e84(_0x281505){const _0x18499b=_0x234b46;_0x3f8ce3[_0x18499b('0x1fbd')]=![],_0x3f8ce3[_0x18499b('0x1e1a')]=_0x281505||{'count':0x0,'rows':[]};}function _0x753762(){const _0x947b61=_0x234b46;return[{'name':_0x947b61('0xa68'),'key':'createdAt','type':_0x947b61('0x22f7'),'label':_0x947b61('0x1c11')},{'name':_0x947b61('0x887'),'key':'VoiceQueueId','type':_0x947b61('0xe83'),'label':_0x947b61('0xb1a'),'options':_0x3f8ce3[_0x947b61('0x8bb')]['rows']}];}function _0x5d0799(){const _0x1a822b=_0x234b46;_0x3f8ce3[_0x1a822b('0x1fbd')]=!![],_0x3f8ce3[_0x1a822b('0x1f2a')]['id']=_0x3f8ce3['currentUser']['id'],_0x3f8ce3['query'][_0x1a822b('0xc83')]=!![],_0x3f8ce3[_0x1a822b('0x1f2a')]['offset']=(_0x3f8ce3[_0x1a822b('0x1f2a')][_0x1a822b('0x1c2')]-0x1)*_0x3f8ce3[_0x1a822b('0x1f2a')][_0x1a822b('0xd5c')];const _0x154a6c={'query':_0x3f8ce3[_0x1a822b('0x1f2a')]};_0x50aea5[_0x1a822b('0xe4a')][_0x1a822b('0x26d6')]('motion2.home.scheduled:'+_0x3f8ce3['currentUser']['id'],JSON['stringify'](_0x154a6c)),_0x3f8ce3[_0x1a822b('0x13f')]=_0x102b55[_0x1a822b('0x21d9')][_0x1a822b('0x203')](_0x3f8ce3[_0x1a822b('0x1f2a')],_0x122e84)[_0x1a822b('0x1549')];}function _0x54e7f9(_0x3ea7f3,_0x528e7c){const _0x4754cf=_0x234b46;_0x47cde7['show']({'controller':_0x4754cf('0x1653'),'controllerAs':'vm','templateUrl':_0x5368d2,'parent':angular['element'](_0x23c043[_0x4754cf('0x1d2')]),'targetEvent':_0x3ea7f3,'clickOutsideToClose':!![],'locals':{'queueCampaign':null,'hopper':_0x528e7c,'hoppers':_0x3f8ce3[_0x4754cf('0x1e1a')][_0x4754cf('0x19b2')],'license':null,'setting':null,'crudPermissions':_0x3f8ce3[_0x4754cf('0xb25')]}});}function _0x19b16d(_0x3da7d6){const _0x1c4e9d=_0x234b46;_0x102b55['cmHopper'][_0x1c4e9d('0x2088')]({'id':_0x3da7d6['id']})[_0x1c4e9d('0x1549')][_0x1c4e9d('0x11bf')](function(){const _0xd9b038=_0x1c4e9d;_0x36f548()[_0xd9b038('0x14a5')](_0x3f8ce3['scheduledCalls']['rows'],{'id':_0x3da7d6['id']}),_0x3f8ce3[_0xd9b038('0x1e1a')]['count']-=0x1,!_0x3f8ce3[_0xd9b038('0x1e1a')][_0xd9b038('0x19b2')]['length']&&_0x3f8ce3[_0xd9b038('0x203')](),_0xfe88ec[_0xd9b038('0x2693')]({'title':'Scheduled\x20call\x20deleted!','msg':_0x3da7d6['name']?_0xd9b038('0xe6b'):''});})['catch'](function(_0x8c0d89){const _0x59b428=_0x1c4e9d;if(_0x8c0d89['data']&&_0x8c0d89[_0x59b428('0x4e8')][_0x59b428('0x120f')]&&_0x8c0d89[_0x59b428('0x4e8')][_0x59b428('0x120f')][_0x59b428('0x1e22')]){_0x3f8ce3[_0x59b428('0x120f')]=_0x8c0d89[_0x59b428('0x4e8')][_0x59b428('0x120f')]||[{'message':_0x8c0d89[_0x59b428('0xaab')](),'type':_0x59b428('0x2493')}];for(let _0x485648=0x0;_0x485648<_0x8c0d89[_0x59b428('0x4e8')][_0x59b428('0x120f')][_0x59b428('0x1e22')];_0x485648++){_0xfe88ec[_0x59b428('0x255')]({'title':_0x8c0d89['data'][_0x59b428('0x120f')][_0x485648][_0x59b428('0x19fd')],'msg':_0x8c0d89['data'][_0x59b428('0x120f')][_0x485648][_0x59b428('0x1b86')]});}}else _0xfe88ec[_0x59b428('0x255')]({'title':_0x8c0d89['status']?_0x59b428('0x574')+_0x8c0d89[_0x59b428('0xff9')]+_0x59b428('0xb0b')+_0x8c0d89[_0x59b428('0x212f')]:_0x59b428('0x2493'),'msg':_0x8c0d89[_0x59b428('0x4e8')]?JSON[_0x59b428('0x3e')](_0x8c0d89['data'][_0x59b428('0x1b86')]):_0x8c0d89['message']||_0x8c0d89['toString']()});});}function _0x1eafec(_0x28d59e,_0x10189e){const _0x2a7e47=_0x234b46,_0x59af74=_0x47cde7[_0x2a7e47('0x132b')]()[_0x2a7e47('0x134b')](_0x2a7e47('0xd2c'))['htmlContent'](_0x2a7e47('0x19b7')+_0x2a7e47('0x1a'))[_0x2a7e47('0xb2e')](_0x2a7e47('0x2401'))[_0x2a7e47('0x1e25')](_0x10189e)['ok']('OK')['cancel'](_0x2a7e47('0x772'));_0x47cde7[_0x2a7e47('0xb9')](_0x59af74)['then'](function(){_0x19b16d(_0x28d59e);},function(){const _0x489f83=_0x2a7e47;console[_0x489f83('0xc78')]('CANCEL');});}function _0x4df384(_0xc63b5){const _0x9dd827=_0x234b46;return _0x57d4d1()(_0xc63b5)[_0x9dd827('0x280a')](_0x57d4d1()());}let _0x33019b=!![],_0x2280b0=0x1;_0x507c2a['$watch'](_0x234b46('0x842'),function(_0x5e7d41,_0xc3a7f1){const _0x43a0fc=_0x234b46;_0x33019b?_0xe393fc(function(){_0x33019b=![];}):(!_0xc3a7f1&&(_0x2280b0=_0x3f8ce3['query'][_0x43a0fc('0x1c2')]),_0x5e7d41!==_0xc3a7f1&&(_0x3f8ce3[_0x43a0fc('0x1f2a')][_0x43a0fc('0x1c2')]=0x1),!_0x5e7d41&&(_0x3f8ce3[_0x43a0fc('0x1f2a')][_0x43a0fc('0x1c2')]=_0x2280b0),_0x3f8ce3[_0x43a0fc('0x203')]());});}const _0x86f42e=_0x902936;_0x297428[_0x21d0f5('0x1e9a')]=['$scope',_0x21d0f5('0x17f5'),'$mdDialog',_0x21d0f5('0x1b30'),_0x21d0f5('0x2143'),'$translate',_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),_0x21d0f5('0x1d56'),_0x21d0f5('0x142d'),_0x21d0f5('0x2a1')];function _0x297428(_0x214343,_0x37cb58,_0x514c73,_0x33d6c6,_0x5d5a72,_0xe07a15,_0x503423,_0x33baec,_0x2684f6,_0x4ab63f,_0xcae806){const _0x951d85=_0x21d0f5,_0x48dd37=this;_0x48dd37['user']=_0x33baec[_0x951d85('0x2428')](),_0x48dd37['license']={},_0x48dd37['setting']={},_0x48dd37[_0x951d85('0x2763')]={'count':0x0,'rows':[]},_0x48dd37['smsInteractions']={'count':0x0,'rows':[]},_0x48dd37['query']={'includeAll':!![],'sort':_0x951d85('0x1c74'),'limit':0xa,'page':0x1,'read':null,'closed':null},_0x48dd37[_0x951d85('0xd6d')]={'fields':[{'name':'Id','column':'id','type':_0x951d85('0x139e')},{'name':'Contact','column':_0x951d85('0xf10'),'type':_0x951d85('0x282b'),'options':{'searchFields':[_0x951d85('0x13a0'),_0x951d85('0xcf3'),_0x951d85('0x15d3')],'route':{'model':_0x951d85('0x1b8f'),'action':'get','params':{'fields':_0x951d85('0xd81'),'Contact':_0x951d85('0xfda'),'nolimit':!![]}},'extraOperators':['$substring'],'excludedOperators':['$ne']}},{'name':_0x951d85('0x113e'),'column':_0x951d85('0x1d2'),'type':_0x951d85('0x25ed'),'options':{'excludedOperators':[_0x951d85('0x23de'),_0x951d85('0x27c1')]}},{'name':_0x951d85('0x971'),'column':_0x951d85('0x949'),'type':_0x951d85('0x2350'),'values':[{'id':0x0,'translate':_0x951d85('0x2846')},{'id':0x1,'translate':_0x951d85('0x199')}],'options':{'excludedOperators':[_0x951d85('0x27c1')]}},{'name':_0x951d85('0x701'),'column':_0x951d85('0x24ab'),'type':_0x951d85('0x282b'),'options':{'table':'i','route':{'model':_0x951d85('0x21d9'),'action':_0x951d85('0xbaa'),'params':{'role':_0x951d85('0x18c4'),'fields':_0x951d85('0x919'),'nolimit':!![]}},'searchFields':[_0x951d85('0x27af'),'name'],'extraOperators':['$substring'],'excludedOperators':[_0x951d85('0x27c1')]}},{'name':_0x951d85('0x1e3c'),'column':_0x951d85('0x80b'),'type':'multiselect','options':{'route':{'model':_0x951d85('0x21d9'),'action':_0x951d85('0xa3f'),'params':{'id':_0x48dd37['user']['id'],'nolimit':!![]}}}},{'name':_0x951d85('0x806'),'column':_0x951d85('0x23ba'),'type':_0x951d85('0xe83'),'options':{'route':{'model':_0x951d85('0x1d73'),'action':_0x951d85('0xbaa'),'params':{'nolimit':!![]}},'excludedOperators':['$notIn']}},{'name':_0x951d85('0xa68'),'column':_0x951d85('0x1779'),'type':'date','options':{'excludedOperators':[_0x951d85('0x27c1')]}},{'name':_0x951d85('0xf18'),'column':_0x951d85('0xf2'),'type':_0x951d85('0x2350'),'values':[{'id':0x1,'translate':_0x951d85('0x22a5')},{'id':0x0,'translate':'DASHBOARDS.UNREAD'}],'options':{'excludedOperators':[_0x951d85('0x27c1')]}}]},_0x48dd37['sectionColor']=_0x951d85('0xb01'),_0x48dd37['onInit']=_0x26af24,_0x48dd37[_0x951d85('0x2693')]=_0x543a81,_0x48dd37[_0x951d85('0x1f1c')]=_0x5c3c22,_0x48dd37[_0x951d85('0x418')]=_0x20fbb4,_0x48dd37[_0x951d85('0x287f')]=_0x5ddc62,_0x48dd37[_0x951d85('0x1dfb')]=_0x2a0010,_0x48dd37['getContactLabel']=_0x48b5eb,_0x48dd37[_0x951d85('0x1dba')]=_0x263c63,_0x48dd37[_0x951d85('0x1d2d')]=_0x5b5b64,_0x48dd37['composeSmsInteraction']=_0x35e883,_0x48dd37['onSearchBarCollapse']=_0xce4313,_0x48dd37[_0x951d85('0x2049')]=_0x44e6d7,_0x48dd37[_0x951d85('0x2297')]=_0x51923d;function _0x26af24(_0x368580,_0x2dd80a){const _0x1fb827=_0x951d85;return _0x48dd37[_0x1fb827('0x17ff')]=_0x368580,_0x48dd37[_0x1fb827('0x23e1')]=_0x2dd80a,_0x503423[_0x1fb827('0x21d9')][_0x1fb827('0xbaa')+_0x36f548()[_0x1fb827('0x24b5')](_0x1fb827('0x27d9'))]({'id':_0x48dd37[_0x1fb827('0x21d9')]['id'],'nolimit':!![]})['$promise'][_0x1fb827('0x11bf')](function(_0x213833){const _0x60a812=_0x1fb827;return _0x48dd37[_0x60a812('0x27d9')]=_0x213833||{'count':0x0,'rows':[]},_0x503423[_0x60a812('0x1d73')][_0x60a812('0xbaa')]()['$promise'];})[_0x1fb827('0x11bf')](function(_0x16261f){const _0x27010e=_0x1fb827;_0x48dd37[_0x27010e('0x2763')]=_0x16261f||{'count':0x0,'rows':[]};})[_0x1fb827('0x11bf')](function(){const _0x5a1b1d=_0x1fb827;_0x48dd37[_0x5a1b1d('0x7db')]=_0x58abe5();})[_0x1fb827('0x151d')](function(_0x4116eb){const _0x575f6e=_0x1fb827;console[_0x575f6e('0x255')](_0x4116eb);})[_0x1fb827('0xa9b')](function(){const _0x54dc07=_0x1fb827;let _0x4c6280=_0x5d5a72[_0x54dc07('0xe4a')]['getItem']('motion2.home.sms:'+_0x48dd37[_0x54dc07('0x21d9')]['id']);if(_0x4c6280)try{_0x4c6280=JSON[_0x54dc07('0x1850')](_0x4c6280);if(_0x4c6280[_0x54dc07('0x1f2a')]){_0x48dd37[_0x54dc07('0x1f2a')]=_0x36f548()[_0x54dc07('0x47b')](_0x48dd37['query'],_0x4c6280[_0x54dc07('0x1f2a')]);if(_0x36f548()[_0x54dc07('0x1fc5')](_0x48dd37['smsAccounts'][_0x54dc07('0x19b2')]))_0x48dd37[_0x54dc07('0x1f2a')][_0x54dc07('0x80b')]=[];else _0x36f548()[_0x54dc07('0x1fc5')](_0x48dd37[_0x54dc07('0x1f2a')][_0x54dc07('0x80b')])&&(_0x48dd37[_0x54dc07('0x1f2a')][_0x54dc07('0x80b')]=_0x36f548()(_0x48dd37[_0x54dc07('0x27d9')][_0x54dc07('0x19b2')])[_0x54dc07('0x2171')]('id')[_0x54dc07('0x1d3f')]()[_0x54dc07('0x10cc')]());_0x48dd37[_0x54dc07('0x1f2a')][_0x54dc07('0x1c16')]&&_0x48dd37[_0x54dc07('0x1f2a')][_0x54dc07('0x1c16')][_0x54dc07('0x203c')](_0x54dc07('0x13b'))>=0x0&&(_0x48dd37[_0x54dc07('0x1f2a')]=_0x36f548()[_0x54dc07('0x196f')](_0x48dd37[_0x54dc07('0x1f2a')],_0x54dc07('0x1c16'))),_0x48dd37[_0x54dc07('0x1f2a')][_0x54dc07('0xc83')]=!![],_0x48dd37['isSearchBarVisible']=_0x48dd37['query']['filter']?!![]:![];}}catch(_0x38c4a2){console['error'](_0x38c4a2);}else{const _0x238901={'$gte':_0x57d4d1()()[_0x54dc07('0x2655')](_0x54dc07('0x4d8'))[_0x54dc07('0x1fb1')](0x0,!![])[_0x54dc07('0x1826')](),'$lte':_0x57d4d1()()[_0x54dc07('0x2ba')](_0x54dc07('0x4d8'))['utcOffset'](0x0,!![])[_0x54dc07('0x1826')]()},_0x18ba60={'SmsAccountId':_0x36f548()['map'](_0x48dd37[_0x54dc07('0x27d9')][_0x54dc07('0x19b2')],'id'),'createdAt':_0x238901};_0x48dd37['query']=_0x36f548()[_0x54dc07('0x47b')](_0x48dd37['query'],_0x18ba60);}_0x2684f6['on'](_0x54dc07('0x1986'),_0x46cabd),_0x2684f6['on']('smsInteraction:update',_0x46cabd),_0x2684f6['on'](_0x54dc07('0xc67'),_0x3e0c22),_0x2684f6['on']('smsMessage:save',_0xc3be40),_0x2684f6['on']('smsMessage:update',_0xc3be40),_0x2684f6['on'](_0x54dc07('0x1387'),_0x22df6d),_0x2684f6['on']('user_has_sms_interactions:remove',_0x3ec6df),_0x5c3c22(_0x48dd37['query'][_0x54dc07('0x1c2')]);});}function _0x58abe5(){const _0x544e67=_0x951d85;return[{'name':_0x544e67('0xa68'),'key':_0x544e67('0x1779'),'type':_0x544e67('0x22f7'),'label':_0x544e67('0x1c11')},{'name':_0x544e67('0x3ad'),'key':_0x544e67('0x1601'),'type':_0x544e67('0x2350'),'label':_0x544e67('0x22a0'),'customOptions':[{'value':0x0,'translate':_0x544e67('0x1dd4')},{'value':0x1,'translate':_0x544e67('0x22a5')},{'value':null,'translate':'DASHBOARDS.ALL'}]},{'name':'Status','key':_0x544e67('0x949'),'type':'select','label':_0x544e67('0xa96'),'customOptions':[{'value':0x0,'translate':_0x544e67('0x2846')},{'value':0x1,'translate':_0x544e67('0x199')},{'value':null,'translate':'DASHBOARDS.ALL'}]},{'name':'Account','key':_0x544e67('0x80b'),'type':_0x544e67('0xe83'),'label':_0x544e67('0x10b'),'options':_0x48dd37[_0x544e67('0x27d9')]['rows'],'clearAll':![]},{'name':_0x544e67('0x701'),'key':_0x544e67('0x2342'),'type':'select','label':'DASHBOARDS.SELECT_AGENT','customOptions':[{'value':_0x48dd37[_0x544e67('0x21d9')]['id'],'translate':_0x544e67('0x275d')},{'value':_0x544e67('0xb5f'),'translate':_0x544e67('0x1a02')},{'value':undefined,'translate':'DASHBOARDS.ALL'}]},{'name':'Tag','key':_0x544e67('0x1d73'),'type':_0x544e67('0xe83'),'label':_0x544e67('0x9b9'),'options':_0x48dd37[_0x544e67('0x2763')]['rows'],'placeholder':'DASHBOARDS.TAGS'}];}function _0x543a81(_0x466649){const _0x48b828=_0x951d85;_0x48dd37[_0x48b828('0x1fbd')]=![],_0x48dd37[_0x48b828('0x1602')]=_0x466649||{'count':0x0,'rows':[]};for(let _0x401029=0x0;_0x401029<_0x48dd37[_0x48b828('0x1602')][_0x48b828('0x19b2')]['length'];_0x401029+=0x1){_0x48b5eb(_0x48dd37[_0x48b828('0x1602')][_0x48b828('0x19b2')][_0x401029]);}}function _0x5c3c22(_0x2289af){const _0x324fb9=_0x951d85;_0x48dd37[_0x324fb9('0x1fbd')]=!![];!_0x2289af&&(_0x48dd37[_0x324fb9('0x1f2a')][_0x324fb9('0x1c2')]=0x1);_0x48dd37['query'][_0x324fb9('0x1393')]=(_0x48dd37[_0x324fb9('0x1f2a')][_0x324fb9('0x1c2')]-0x1)*_0x48dd37[_0x324fb9('0x1f2a')][_0x324fb9('0xd5c')];let _0x3f4f2f=_0x5d5a72[_0x324fb9('0xe4a')][_0x324fb9('0x2356')](_0x324fb9('0x13f8')+_0x48dd37[_0x324fb9('0x21d9')]['id']);_0x3f4f2f=_0x3f4f2f?JSON[_0x324fb9('0x1850')](_0x3f4f2f):{},_0x3f4f2f['query']=_0x48dd37['query'],_0x5d5a72['localStorage'][_0x324fb9('0x26d6')](_0x324fb9('0x13f8')+_0x48dd37[_0x324fb9('0x21d9')]['id'],JSON['stringify'](_0x3f4f2f)),_0x48dd37[_0x324fb9('0x13f')]=_0x503423['smsInteraction']['get'](_0x48dd37[_0x324fb9('0x1f2a')],_0x543a81)[_0x324fb9('0x1549')];}function _0x20fbb4(_0x2833dd,_0x1f2f91){const _0x4b01ce=_0x951d85;_0x214343['$parent']['vm']['addInteractionTab'](_0x4b01ce('0x4df'),_0x1f2f91);}function _0x5ddc62(_0x486a89,_0x4a16f2,_0x111974){const _0x3cefd5=_0x951d85;_0x503423['smsInteraction'][_0x3cefd5('0x149c')]({'id':_0x4a16f2['id'],'attachments':_0x111974})[_0x3cefd5('0x1549')][_0x3cefd5('0x11bf')](function(_0x44ebcd){const _0x5534b5=_0x3cefd5,_0x276e35=[_0x44ebcd[_0x5534b5('0x1e94')]],_0x43b667=_0x5534b5('0x5a1')+_0x4a16f2['id']+_0x5534b5('0x4a7'),_0x45001c=new Blob(_0x276e35,{'type':_0x44ebcd[_0x5534b5('0x19fd')]}),_0x5da523=window[_0x5534b5('0xb54')][_0x5534b5('0x2773')]('a');_0x5da523[_0x5534b5('0x1e1b')]('href',URL['createObjectURL'](_0x45001c)),_0x5da523[_0x5534b5('0x1e1b')](_0x5534b5('0x149c'),_0x43b667),document[_0x5534b5('0x1d2')][_0x5534b5('0x131c')](_0x5da523),_0x5da523[_0x5534b5('0x1371')]();})[_0x3cefd5('0x151d')](function(_0x40708a){const _0x35f050=_0x3cefd5;if(_0x40708a[_0x35f050('0x4e8')]&&_0x40708a[_0x35f050('0x4e8')][_0x35f050('0x120f')]&&_0x40708a[_0x35f050('0x4e8')][_0x35f050('0x120f')][_0x35f050('0x1e22')])for(let _0x5ed047=0x0;_0x5ed047<_0x40708a[_0x35f050('0x4e8')][_0x35f050('0x120f')][_0x35f050('0x1e22')];_0x5ed047+=0x1){_0x4ab63f[_0x35f050('0x255')]({'title':_0x40708a['data']['errors'][_0x5ed047][_0x35f050('0x19fd')],'msg':_0x40708a[_0x35f050('0x4e8')][_0x35f050('0x120f')][_0x5ed047]['message']});}else _0x4ab63f['error']({'title':_0x40708a[_0x35f050('0xff9')]?_0x35f050('0x574')+_0x40708a[_0x35f050('0xff9')]+_0x35f050('0xb0b')+_0x40708a['statusText']:'downloadSmsInteraction','msg':_0x40708a['data']?JSON[_0x35f050('0x3e')](_0x40708a['data']['message']):_0x40708a['toString']()});});}function _0x2a0010(_0x5a26ad,_0x2d4190){const _0xce1fbc=_0x951d85,_0xf1bdb0=_0x48dd37['user']['voicePause']||_0x48dd37[_0xce1fbc('0x21d9')][_0xce1fbc('0x13c9')]||_0x48dd37[_0xce1fbc('0x21d9')][_0xce1fbc('0x1f53')]||_0x48dd37[_0xce1fbc('0x21d9')][_0xce1fbc('0xfc0')]||_0x48dd37['user'][_0xce1fbc('0x2501')],_0x53d389=!_0x2d4190[_0xce1fbc('0x1e3c')][_0xce1fbc('0x123b')];_0x514c73['show']({'controller':_0xce1fbc('0xcd5'),'controllerAs':'vm','templateUrl':_0x35815a,'parent':angular['element'](_0x33d6c6[_0xce1fbc('0x1d2')]),'clickOutsideToClose':_0x53d389,'escapeToClose':_0x53d389,'onRemoving':function(){const _0x518508=_0xce1fbc;_0x48dd37[_0x518508('0x21d9')]&&_0x2d4190[_0x518508('0x1e3c')][_0x518508('0x123b')]&&!_0xf1bdb0&&_0x503423[_0x518508('0x21d9')][_0x518508('0xb6f')]({'id':_0x48dd37[_0x518508('0x21d9')]['id']})[_0x518508('0x1549')][_0x518508('0x151d')](function(_0x2d11cf){const _0x5a9cd3=_0x518508;console[_0x5a9cd3('0x255')](_0x2d11cf);});},'locals':{'user':_0x48dd37[_0xce1fbc('0x21d9')],'channel':_0xce1fbc('0x4df'),'interaction':_0x2d4190}});}function _0x48b5eb(_0x5c80e7){const _0x598052=_0x951d85;_0x5c80e7['Contact']?(_0x5c80e7[_0x598052('0xca9')]=(_0x5c80e7[_0x598052('0xf10')][_0x598052('0x13a0')]||'')+'\x20'+(_0x5c80e7[_0x598052('0xf10')][_0x598052('0xcf3')]||''),_0x5c80e7[_0x598052('0x1116')]=_0x5c80e7[_0x598052('0xf10')][_0x598052('0x249f')]):_0x5c80e7[_0x598052('0xca9')]=_0xe07a15[_0x598052('0x10c2')](_0x598052('0x1d85'));}function _0x263c63(_0x6fca7e){const _0x1fac43=_0x951d85;if(_0x6fca7e[_0x1fac43('0x2342')])return _0x6fca7e[_0x1fac43('0x2342')]===_0x48dd37[_0x1fac43('0x21d9')]['id']?_0xe07a15[_0x1fac43('0x10c2')](_0x1fac43('0x275d')):_0x6fca7e['Owner']['fullname']+'\x20<'+_0x6fca7e['Owner'][_0x1fac43('0x1a04')]+'>';return _0xe07a15['instant']('DASHBOARDS.NOT_ASSIGNED');}function _0x5b5b64(_0x258cd8){const _0x1575e2=_0x951d85;if(_0x258cd8[_0x1575e2('0x1e3c')])return _0x258cd8[_0x1575e2('0x1e3c')][_0x1575e2('0xa0c')];return _0xe07a15[_0x1575e2('0x10c2')](_0x1575e2('0x1d85'));}function _0x35e883(_0x4a0753,_0x152ba4){const _0x304dc1=_0x951d85;_0x514c73[_0x304dc1('0xb9')]({'controller':_0x304dc1('0x1042'),'controllerAs':'vm','templateUrl':_0x495d17,'parent':angular[_0x304dc1('0x1e73')](_0x33d6c6[_0x304dc1('0x1d2')]),'clickOutsideToClose':![],'locals':{'account':_0x152ba4,'message':{},'type':_0x304dc1('0x8a6'),'interaction':{}},'fullscreen':!![]})[_0x304dc1('0x11bf')](function(_0x154b11){const _0xcc1284=_0x304dc1;if(_0x154b11){if(_0x154b11[_0xcc1284('0x1b86')]&&_0x154b11[_0xcc1284('0x1b86')][_0xcc1284('0x2710')]){const _0x5c3734={'channel':_0xcc1284('0x4df'),'account':_0x152ba4,'message':_0x154b11[_0xcc1284('0x1b86')],'contact':_0x154b11['contact']};_0xcae806[_0xcc1284('0x23c1')](_0x5c3734);}else{const _0x49c5f1=_0x154b11;return _0x503423['smsAccount'][_0xcc1284('0x2481')]({'id':_0x152ba4['id']},_0x49c5f1)['$promise'][_0xcc1284('0x11bf')](function(_0x5a4b1c){const _0x2c2bc9=_0xcc1284;_0x4ab63f[_0x2c2bc9('0x2693')]({'title':_0x2c2bc9('0x1292'),'msg':_0x2c2bc9('0x122d')}),_0x214343[_0x2c2bc9('0x25f5')]['vm'][_0x2c2bc9('0x226f')](_0x2c2bc9('0x4df'),_0x5a4b1c);})[_0xcc1284('0x151d')](function(_0x4ba271){const _0x37a93b=_0xcc1284;if(_0x4ba271['data']&&_0x4ba271[_0x37a93b('0x4e8')][_0x37a93b('0x120f')]&&_0x4ba271[_0x37a93b('0x4e8')]['errors']['length'])for(let _0x45bab1=0x0;_0x45bab1<_0x4ba271['data'][_0x37a93b('0x120f')]['length'];_0x45bab1++){_0x4ab63f['error']({'title':_0x4ba271['data'][_0x37a93b('0x120f')][_0x45bab1][_0x37a93b('0x19fd')],'msg':_0x4ba271[_0x37a93b('0x4e8')][_0x37a93b('0x120f')][_0x45bab1][_0x37a93b('0x1b86')]});}else _0x4ab63f[_0x37a93b('0x255')]({'title':_0x4ba271[_0x37a93b('0xff9')]?_0x37a93b('0x574')+_0x4ba271[_0x37a93b('0xff9')]+'\x20-\x20'+_0x4ba271[_0x37a93b('0x212f')]:_0x37a93b('0x1510'),'msg':_0x4ba271[_0x37a93b('0x4e8')]?JSON[_0x37a93b('0x3e')](_0x4ba271[_0x37a93b('0x4e8')][_0x37a93b('0x1b86')]):_0x4ba271[_0x37a93b('0x1b86')]||_0x4ba271[_0x37a93b('0xaab')]()});});}}});}function _0x22df6d(_0x5e9ece){const _0xff0708=_0x951d85;let _0x1ca270;const _0x26e43a=_0x36f548()[_0xff0708('0x1ad4')](_0x48dd37['smsInteractions'][_0xff0708('0x19b2')],{'id':_0x5e9ece['SmsInteractionId']});_0x26e43a&&_0x26e43a[_0xff0708('0xc42')]&&(_0x1ca270=_0x36f548()[_0xff0708('0x1ad4')](_0x26e43a['Users'],{'id':_0x5e9ece['UserId']}),!_0x1ca270&&_0x26e43a['Users'][_0xff0708('0x105d')]({'id':_0x5e9ece[_0xff0708('0x2342')]}));}function _0x3ec6df(_0x18001e){const _0x481872=_0x951d85,_0x127836=_0x36f548()[_0x481872('0x1ad4')](_0x48dd37[_0x481872('0x1602')][_0x481872('0x19b2')],{'id':_0x18001e[_0x481872('0x1cd8')]});_0x127836&&_0x127836['Users']&&_0x36f548()[_0x481872('0x14a5')](_0x127836[_0x481872('0xc42')],{'id':_0x18001e[_0x481872('0x2342')]});}function _0x46cabd(_0xb960ee){const _0x32f99c=_0x951d85;if(_0xb960ee){const _0x28f59d=_0x36f548()[_0x32f99c('0x1ad4')](_0x48dd37[_0x32f99c('0x1602')][_0x32f99c('0x19b2')],{'id':_0xb960ee['id']});if(_0x28f59d){_0x28f59d[_0x32f99c('0xc42')]=[];_0xb960ee[_0x32f99c('0x949')]&&(_0x28f59d[_0x32f99c('0xf2')]=0x0);if(_0x48dd37[_0x32f99c('0x1f2a')]['sort']){const _0x133ed2=_0x36f548()[_0x32f99c('0x1eb7')](_0x48dd37[_0x32f99c('0x1f2a')][_0x32f99c('0x1c16')],'-')?_0x32f99c('0x121a'):'asc';_0x48dd37['smsInteractions']['rows']=_0x36f548()[_0x32f99c('0x17d7')](_0x48dd37[_0x32f99c('0x1602')][_0x32f99c('0x19b2')],_0x36f548()['trimStart'](_0x48dd37[_0x32f99c('0x1f2a')][_0x32f99c('0x1c16')],'-'),_0x133ed2);}_0x36f548()[_0x32f99c('0x47b')](_0x28f59d,_0x36f548()['pick'](_0xb960ee,_0x36f548()[_0x32f99c('0xe22')](_0x28f59d)));}else _0x5c3c22(_0x48dd37['query']['page']);}}function _0x3e0c22(_0x398ef7){const _0x5997fa=_0x951d85;if(_0x398ef7){const _0x12b4f1=_0x36f548()[_0x5997fa('0x1ad4')](_0x48dd37[_0x5997fa('0x1602')][_0x5997fa('0x19b2')],{'id':_0x398ef7['id']});_0x12b4f1&&(_0x12b4f1[_0x5997fa('0x806')]=_0x398ef7[_0x5997fa('0x2763')]||[],_0x36f548()[_0x5997fa('0x47b')](_0x12b4f1,_0x36f548()[_0x5997fa('0x258')](_0x398ef7,_0x36f548()['keys'](_0x12b4f1))));}}function _0xc3be40(_0x4b8a66){const _0x8f547e=_0x951d85;if(_0x4b8a66&&!_0x4b8a66['secret']){const _0x34135a=_0x36f548()['find'](_0x48dd37[_0x8f547e('0x1602')]['rows'],{'id':_0x4b8a66[_0x8f547e('0x1cd8')]});if(_0x34135a){const _0x6e38a1=_0x36f548()['find'](_0x34135a['Messages'],{'id':_0x4b8a66['id']});_0x6e38a1?_0x36f548()['merge'](_0x6e38a1,_0x36f548()[_0x8f547e('0x258')](_0x4b8a66,_0x36f548()[_0x8f547e('0xe22')](_0x6e38a1))):(_0x36f548()['isNil'](_0x34135a[_0x8f547e('0x3ad')])&&(_0x34135a[_0x8f547e('0x3ad')]={'count':0x0}),!_0x4b8a66['read']&&(_0x34135a[_0x8f547e('0x3ad')]['count']+=0x1));}}}function _0xce4313(){const _0x501b27=_0x951d85;_0x48dd37[_0x501b27('0x12f7')]=![];}function _0x44e6d7(){_0x48dd37['isSearchBarVisible']=!![];}function _0x51923d(){const _0x3b085c=_0x951d85;_0x48dd37[_0x3b085c('0x12f7')]=![],_0x514c73[_0x3b085c('0xb9')]({'controller':_0x3b085c('0x5'),'controllerAs':'vm','templateUrl':_0x19602a,'parent':angular[_0x3b085c('0x1e73')](_0x33d6c6['body']),'clickOutsideToClose':![],'locals':{'color':_0x48dd37[_0x3b085c('0x11e7')],'fields':_0x48dd37[_0x3b085c('0xd6d')][_0x3b085c('0x1067')],'storagePath':'home.sms'},'fullscreen':!![]})[_0x3b085c('0x11bf')](function(_0x5cd62e){const _0x5d12b=_0x3b085c;_0x48dd37[_0x5d12b('0x1f2a')][_0x5d12b('0xce2')]=_0x5cd62e===![]?undefined:_0x5cd62e;if(_0x48dd37[_0x5d12b('0x1f2a')][_0x5d12b('0xce2')]||_0x5cd62e===![])_0x5c3c22();})[_0x3b085c('0x151d')](function(_0x5947ca){const _0x141d97=_0x3b085c;_0x4ab63f[_0x141d97('0x255')]({'title':_0x141d97('0x1d30'),'msg':_0x5947ca['data']?JSON['stringify'](_0x5947ca[_0x141d97('0x4e8')][_0x141d97('0x1b86')]):_0x5947ca[_0x141d97('0xaab')]()});});}let _0x56b1de=!![],_0x3f32bf=0x1;_0x214343[_0x951d85('0x2087')](_0x951d85('0x842'),function(_0x194fd4,_0x7ee447){const _0x491b37=_0x951d85;_0x56b1de?_0x37cb58(function(){_0x56b1de=![];}):(!_0x7ee447&&(_0x3f32bf=_0x48dd37[_0x491b37('0x1f2a')]['page']),_0x194fd4!==_0x7ee447&&(_0x48dd37['query']['page']=0x1),!_0x194fd4&&(_0x48dd37[_0x491b37('0x1f2a')][_0x491b37('0x1c2')]=_0x3f32bf),_0x5c3c22(_0x48dd37[_0x491b37('0x1f2a')][_0x491b37('0x1c2')]));}),_0x214343[_0x951d85('0x12d8')](_0x951d85('0x4f7'),function(){const _0x2249fa=_0x951d85;_0x2684f6['removeAllListeners'](_0x2249fa('0x1b6d')),_0x2684f6[_0x2249fa('0x1b2e')](_0x2249fa('0x8be')),_0x2684f6['removeAllListeners']('smsInteraction:save'),_0x2684f6[_0x2249fa('0x1b2e')](_0x2249fa('0xc67')),_0x2684f6[_0x2249fa('0x1b2e')](_0x2249fa('0x25d6')),_0x2684f6[_0x2249fa('0x1b2e')](_0x2249fa('0x1387')),_0x2684f6[_0x2249fa('0x1b2e')]('user_has_sms_interactions:remove');});}const _0x5971d8=_0x297428,_0x2dbf2d=_0x351988['p']+_0x21d0f5('0x191d');_0x19ce6c[_0x21d0f5('0x1e9a')]=['$mdDialog',_0x21d0f5('0x1b30'),_0x21d0f5('0x12a5'),'toasty','Auth',_0x21d0f5('0x2143'),_0x21d0f5('0x1b80'),_0x21d0f5('0x17f5')];function _0x19ce6c(_0x3df19f,_0x1f8501,_0x283039,_0x1c01b4,_0x377525,_0x2f0c1b,_0xdcc158,_0x8fc485){const _0x5be68a=_0x21d0f5,_0x4970be=this;_0x4970be['currentUser']=_0x377525[_0x5be68a('0x2428')](),_0x4970be[_0x5be68a('0x57e')]={},_0x4970be[_0x5be68a('0x13e8')]=_0x5be68a('0x57e'),_0x4970be[_0x5be68a('0x1f2a')]={'UserId':_0x4970be[_0x5be68a('0x32a')]['id'],'fields':_0x5be68a('0x11ee'),'sort':_0x5be68a('0x1c74'),'limit':0xa,'page':0x1,'type':null},_0x4970be[_0x5be68a('0x2693')]=_0x5786cf,_0x4970be[_0x5be68a('0xbce')]=_0x31a14f,_0x4970be['onInit']=_0x50ef2c,_0x4970be['showDetails']=_0x3b37dd,_0x4970be[_0x5be68a('0xb31')]=_0x584230,_0x4970be[_0x5be68a('0x2049')]=_0x4e2b51;function _0x50ef2c(){const _0x50380f=_0x5be68a;return _0x283039[_0x50380f('0x1d73')][_0x50380f('0xbaa')]()['$promise'][_0x50380f('0x11bf')](function(_0x4fff17){_0x4970be['tags']=_0x4fff17||{'count':0x0,'rows':[]};})[_0x50380f('0x11bf')](function(){const _0x3b0871=_0x50380f;_0x4970be[_0x3b0871('0x7db')]=_0x29b54c();})[_0x50380f('0x151d')](function(_0x36996d){const _0x335d4d=_0x50380f;_0x1c01b4[_0x335d4d('0x255')]({'title':_0x335d4d('0x112e'),'msg':_0x36996d['data']?JSON[_0x335d4d('0x3e')](_0x36996d['data'][_0x335d4d('0x1b86')]):_0x36996d[_0x335d4d('0x1b86')]||_0x36996d[_0x335d4d('0xaab')]()}),_0x4970be[_0x335d4d('0x2763')]={'count':0x0,'rows':[]};})[_0x50380f('0xa9b')](function(){const _0x160d91=_0x50380f;let _0x186539=_0x2f0c1b[_0x160d91('0xe4a')][_0x160d91('0x2356')]('motion2.home.voice:'+_0x4970be[_0x160d91('0x32a')]['id']);if(_0x186539)try{_0x186539=JSON[_0x160d91('0x1850')](_0x186539),_0x186539[_0x160d91('0x1f2a')]&&(_0x4970be['query']=_0x36f548()[_0x160d91('0x196f')](_0x186539[_0x160d91('0x1f2a')],_0x160d91('0xdb4')));}catch(_0x4b49e1){console[_0x160d91('0x255')](_0x4b49e1);}else{const _0x4f23a4={'$gte':_0x57d4d1()()[_0x160d91('0x2655')]('month')['utcOffset'](0x0,!![])[_0x160d91('0x1826')](),'$lte':_0x57d4d1()()[_0x160d91('0x2ba')](_0x160d91('0x4d8'))['utcOffset'](0x0,!![])[_0x160d91('0x1826')]()};_0x4970be[_0x160d91('0x1f2a')]['createdAt']=_0x4f23a4;}_0x31a14f();});}function _0x29b54c(){const _0x33f1eb=_0x5be68a;return[{'name':'Start\x20Date','key':'createdAt','type':_0x33f1eb('0x22f7'),'label':'DASHBOARDS.SELECT_DATE'},{'name':'Type','key':_0x33f1eb('0x19fd'),'type':_0x33f1eb('0x2350'),'label':'VOICE.SELECT_TYPE','customOptions':[{'value':_0x33f1eb('0x1a04'),'translate':'VOICE.INTERNAL'},{'value':_0x33f1eb('0x18a2'),'translate':_0x33f1eb('0x217b')},{'value':'outbound','translate':_0x33f1eb('0x2299')},{'value':'dialer','translate':_0x33f1eb('0xf1b')},{'value':null,'translate':_0x33f1eb('0x1446')}]}];}function _0x5786cf(_0x24c769){const _0x4252db=_0x5be68a;_0x4970be[_0x4252db('0x1fbd')]=![],_0x4970be[_0x4252db('0x57e')]=_0x24c769||{'count':0x0,'rows':[]};}function _0x31a14f(){const _0x24d93d=_0x5be68a;_0x4970be['searchInProgress']=!![],_0x4970be['query'][_0x24d93d('0x1393')]=(_0x4970be[_0x24d93d('0x1f2a')][_0x24d93d('0x1c2')]-0x1)*_0x4970be[_0x24d93d('0x1f2a')][_0x24d93d('0xd5c')];const _0x5442af={'query':_0x4970be[_0x24d93d('0x1f2a')]};_0x2f0c1b[_0x24d93d('0xe4a')]['setItem'](_0x24d93d('0x168a')+_0x4970be[_0x24d93d('0x32a')]['id'],JSON[_0x24d93d('0x3e')](_0x5442af)),_0x4970be[_0x24d93d('0x13f')]=_0x283039['voiceCallReport']['get'](_0x4970be[_0x24d93d('0x1f2a')],_0x5786cf)[_0x24d93d('0x1549')];}function _0x3b37dd(_0x4675e7){const _0x52e0ae=_0x5be68a;_0x3df19f[_0x52e0ae('0xb9')]({'controller':_0x52e0ae('0xaf5'),'controllerAs':'vm','templateUrl':_0x2dbf2d,'parent':angular[_0x52e0ae('0x1e73')](_0x1f8501['body']),'clickOutsideToClose':!![],'locals':{'call':_0x4675e7}});}function _0x584230(){const _0xc2d7f2=_0x5be68a;_0x4970be['query'][_0xc2d7f2('0xdb4')]=undefined,_0x4970be[_0xc2d7f2('0x12f7')]=![];}function _0x4e2b51(){const _0xe84643=_0x5be68a;_0x4970be[_0xe84643('0x12f7')]=!![];}let _0x2f8653=!![],_0x117692=0x1;_0xdcc158[_0x5be68a('0x2087')](_0x5be68a('0x842'),function(_0x153ff0,_0x59ba39){const _0x45de0b=_0x5be68a;_0x2f8653?_0x8fc485(function(){_0x2f8653=![];}):(!_0x59ba39&&(_0x117692=_0x4970be[_0x45de0b('0x1f2a')][_0x45de0b('0x1c2')]),_0x153ff0!==_0x59ba39&&(_0x4970be['query'][_0x45de0b('0x1c2')]=0x1),!_0x153ff0&&(_0x4970be[_0x45de0b('0x1f2a')][_0x45de0b('0x1c2')]=_0x117692),_0x4970be[_0x45de0b('0xbce')]());});}const _0x35a24a=_0x19ce6c;_0x19fc33[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1ca2'),_0x21d0f5('0x7c1')];function _0x19fc33(_0x391f7b,_0x456f43){const _0x224cb6=_0x21d0f5,_0x77a995=this;_0x77a995[_0x224cb6('0x7c1')]=_0x456f43;function _0x12c04d(){const _0x36b97f=_0x224cb6;_0x391f7b[_0x36b97f('0x237e')]();}_0x77a995[_0x224cb6('0xc4e')]=_0x12c04d;}const _0x59565b=_0x19fc33;_0x23ef12[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0x17f5'),_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),_0x21d0f5('0x2143'),_0x21d0f5('0xb6b'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),_0x21d0f5('0x1d56'),_0x21d0f5('0x142d'),'draftManager'];function _0x23ef12(_0x507a44,_0x1bedec,_0x116345,_0x4aff79,_0x1c11f4,_0x3257cf,_0x5575b4,_0x5a440f,_0x178f65,_0xc039e,_0x274a95){const _0x47a83d=_0x21d0f5,_0xd80436=this;_0xd80436['user']=_0x5a440f[_0x47a83d('0x2428')](),_0xd80436[_0x47a83d('0x17ff')]={},_0xd80436['setting']={},_0xd80436['tags']={'count':0x0,'rows':[]},_0xd80436[_0x47a83d('0xa92')]={'count':0x0,'rows':[]},_0xd80436[_0x47a83d('0x1f2a')]={'includeAll':!![],'sort':'-updatedAt','limit':0xa,'page':0x1,'read':null,'closed':null},_0xd80436[_0x47a83d('0xd6d')]={'fields':[{'name':'Id','column':'id','type':_0x47a83d('0x139e')},{'name':'Contact','column':_0x47a83d('0xf10'),'type':_0x47a83d('0x282b'),'options':{'searchFields':[_0x47a83d('0x13a0'),_0x47a83d('0xcf3'),_0x47a83d('0x15d3')],'route':{'model':_0x47a83d('0x1b8f'),'action':'get','params':{'fields':_0x47a83d('0xd81'),'Contact':_0x47a83d('0xfda'),'nolimit':!![]}},'extraOperators':[_0x47a83d('0x512')],'excludedOperators':[_0x47a83d('0x27c1')]}},{'name':_0x47a83d('0x113e'),'column':'body','type':_0x47a83d('0x25ed'),'options':{'excludedOperators':[_0x47a83d('0x23de'),'$ne']}},{'name':_0x47a83d('0x971'),'column':_0x47a83d('0x949'),'type':'select','values':[{'id':0x0,'translate':_0x47a83d('0x2846')},{'id':0x1,'translate':'DASHBOARDS.CLOSED'}],'options':{'excludedOperators':[_0x47a83d('0x27c1')]}},{'name':_0x47a83d('0x701'),'column':_0x47a83d('0x24ab'),'type':_0x47a83d('0x282b'),'options':{'table':'i','route':{'model':'user','action':_0x47a83d('0xbaa'),'params':{'role':_0x47a83d('0x18c4'),'fields':_0x47a83d('0x919'),'nolimit':!![]}},'searchFields':[_0x47a83d('0x27af'),_0x47a83d('0x1909')],'extraOperators':['$substring'],'excludedOperators':[_0x47a83d('0x27c1')]}},{'name':_0x47a83d('0x1e3c'),'column':_0x47a83d('0x146a'),'type':_0x47a83d('0xe83'),'options':{'route':{'model':_0x47a83d('0x21d9'),'action':'getWhatsappAccounts','params':{'id':_0xd80436[_0x47a83d('0x21d9')]['id'],'nolimit':!![]}}}},{'name':_0x47a83d('0x806'),'column':_0x47a83d('0x23ba'),'type':_0x47a83d('0xe83'),'options':{'route':{'model':_0x47a83d('0x1d73'),'action':'get','params':{'nolimit':!![]}},'excludedOperators':[_0x47a83d('0x1239')]}},{'name':_0x47a83d('0xa68'),'column':'createdAt','type':_0x47a83d('0x22f7'),'options':{'excludedOperators':[_0x47a83d('0x27c1')]}},{'name':_0x47a83d('0xf18'),'column':_0x47a83d('0xf2'),'type':'select','values':[{'id':0x1,'translate':'DASHBOARDS.READ'},{'id':0x0,'translate':_0x47a83d('0x1dd4')}],'options':{'excludedOperators':[_0x47a83d('0x27c1')]}}]},_0xd80436[_0x47a83d('0x11e7')]='lime-A700',_0xd80436[_0x47a83d('0x277c')]=_0xba96db,_0xd80436[_0x47a83d('0x2693')]=_0x30dd18,_0xd80436['getWhatsappInteractions']=_0x48de1f,_0xd80436[_0x47a83d('0x10db')]=_0x492339,_0xd80436[_0x47a83d('0x26de')]=_0xe6701b,_0xd80436['disposeInteraction']=_0x20ff1a,_0xd80436[_0x47a83d('0x1ddf')]=_0x58103b,_0xd80436[_0x47a83d('0x1dba')]=_0x50bab2,_0xd80436[_0x47a83d('0x1b3e')]=_0xb7253d,_0xd80436[_0x47a83d('0x7ef')]=_0x46acd2,_0xd80436['onSearchBarCollapse']=_0x2b86e5,_0xd80436[_0x47a83d('0x2049')]=_0x4214f8,_0xd80436[_0x47a83d('0x2297')]=_0x287135;function _0xba96db(_0x566847,_0x4530a5){const _0x2d4086=_0x47a83d;return _0xd80436['license']=_0x566847,_0xd80436['setting']=_0x4530a5,_0x5575b4[_0x2d4086('0x21d9')][_0x2d4086('0xbaa')+_0x36f548()[_0x2d4086('0x24b5')](_0x2d4086('0xeaa'))]({'id':_0xd80436['user']['id'],'nolimit':!![]})[_0x2d4086('0x1549')][_0x2d4086('0x11bf')](function(_0x49f86f){const _0xa9da44=_0x2d4086;return _0xd80436[_0xa9da44('0xeaa')]=_0x49f86f||{'count':0x0,'rows':[]},_0x5575b4[_0xa9da44('0x1d73')]['get']()[_0xa9da44('0x1549')];})[_0x2d4086('0x11bf')](function(_0x2bb5b1){const _0x390eb3=_0x2d4086;_0xd80436[_0x390eb3('0x2763')]=_0x2bb5b1||{'count':0x0,'rows':[]};})['then'](function(){_0xd80436['quickFilters']=_0x5e6fff();})[_0x2d4086('0x151d')](function(_0x238130){const _0x5c6ac3=_0x2d4086;console[_0x5c6ac3('0x255')](_0x238130);})[_0x2d4086('0xa9b')](function(){const _0x568091=_0x2d4086;let _0x5436e3=_0x1c11f4[_0x568091('0xe4a')][_0x568091('0x2356')](_0x568091('0x5d1')+_0xd80436[_0x568091('0x21d9')]['id']);if(_0x5436e3)try{_0x5436e3=JSON['parse'](_0x5436e3);if(_0x5436e3['query']){_0xd80436[_0x568091('0x1f2a')]=_0x36f548()[_0x568091('0x47b')](_0xd80436[_0x568091('0x1f2a')],_0x5436e3['query']);if(_0x36f548()['isEmpty'](_0xd80436[_0x568091('0xeaa')][_0x568091('0x19b2')]))_0xd80436[_0x568091('0x1f2a')]['WhatsappAccountId']=[];else _0x36f548()[_0x568091('0x1fc5')](_0xd80436[_0x568091('0x1f2a')]['WhatsappAccountId'])&&(_0xd80436['query'][_0x568091('0x146a')]=_0x36f548()(_0xd80436[_0x568091('0xeaa')][_0x568091('0x19b2')])[_0x568091('0x2171')]('id')[_0x568091('0x1d3f')]()[_0x568091('0x10cc')]());_0xd80436[_0x568091('0x1f2a')][_0x568091('0x1c16')]&&_0xd80436['query']['sort']['indexOf'](_0x568091('0x13b'))>=0x0&&(_0xd80436[_0x568091('0x1f2a')]=_0x36f548()[_0x568091('0x196f')](_0xd80436[_0x568091('0x1f2a')],_0x568091('0x1c16'))),_0xd80436[_0x568091('0x1f2a')]['includeAll']=!![],_0xd80436[_0x568091('0x12f7')]=_0xd80436['query'][_0x568091('0xdb4')]?!![]:![];}}catch(_0x49f063){console[_0x568091('0x255')](_0x49f063);}else{const _0x3da38e={'$gte':_0x57d4d1()()['startOf']('month')[_0x568091('0x1fb1')](0x0,!![])[_0x568091('0x1826')](),'$lte':_0x57d4d1()()[_0x568091('0x2ba')](_0x568091('0x4d8'))[_0x568091('0x1fb1')](0x0,!![])[_0x568091('0x1826')]()},_0x2129c7={'WhatsappAccountId':_0x36f548()[_0x568091('0x2171')](_0xd80436[_0x568091('0xeaa')][_0x568091('0x19b2')],'id'),'createdAt':_0x3da38e};_0xd80436[_0x568091('0x1f2a')]=_0x36f548()[_0x568091('0x47b')](_0xd80436[_0x568091('0x1f2a')],_0x2129c7);}_0x178f65['on'](_0x568091('0x30b'),_0x5739da),_0x178f65['on'](_0x568091('0x2601'),_0x5739da),_0x178f65['on'](_0x568091('0x2378'),_0x49cd3a),_0x178f65['on'](_0x568091('0xccf'),_0x1d0eb2),_0x178f65['on'](_0x568091('0x2794'),_0x1d0eb2),_0x178f65['on'](_0x568091('0x1cab'),_0x3fa2cc),_0x178f65['on']('user_has_whatsapp_interactions:remove',_0x25232e),_0x48de1f(_0xd80436[_0x568091('0x1f2a')][_0x568091('0x1c2')]);});}function _0x5e6fff(){const _0x3481d4=_0x47a83d;return[{'name':_0x3481d4('0xa68'),'key':'createdAt','type':'date','label':_0x3481d4('0x1c11')},{'name':_0x3481d4('0x3ad'),'key':_0x3481d4('0x1601'),'type':_0x3481d4('0x2350'),'label':_0x3481d4('0x22a0'),'customOptions':[{'value':0x0,'translate':_0x3481d4('0x1dd4')},{'value':0x1,'translate':_0x3481d4('0x22a5')},{'value':null,'translate':_0x3481d4('0x211a')}]},{'name':'Status','key':_0x3481d4('0x949'),'type':_0x3481d4('0x2350'),'label':'DASHBOARDS.SELECT_STATUS','customOptions':[{'value':0x0,'translate':_0x3481d4('0x2846')},{'value':0x1,'translate':_0x3481d4('0x199')},{'value':null,'translate':_0x3481d4('0x211a')}]},{'name':_0x3481d4('0x1e3c'),'key':_0x3481d4('0x146a'),'type':_0x3481d4('0xe83'),'label':_0x3481d4('0x10b'),'options':_0xd80436['whatsappAccounts'][_0x3481d4('0x19b2')],'clearAll':![]},{'name':_0x3481d4('0x701'),'key':_0x3481d4('0x2342'),'type':_0x3481d4('0x2350'),'label':_0x3481d4('0x84a'),'customOptions':[{'value':_0xd80436[_0x3481d4('0x21d9')]['id'],'translate':_0x3481d4('0x275d')},{'value':_0x3481d4('0xb5f'),'translate':'DASHBOARDS.NOT_ASSIGNED'},{'value':undefined,'translate':_0x3481d4('0x211a')}]},{'name':'Tag','key':_0x3481d4('0x1d73'),'type':_0x3481d4('0xe83'),'label':'DASHBOARDS.SELECT_TAG','options':_0xd80436[_0x3481d4('0x2763')][_0x3481d4('0x19b2')],'placeholder':'DASHBOARDS.TAGS'}];}function _0x30dd18(_0xb5d47f){const _0xde7378=_0x47a83d;_0xd80436[_0xde7378('0x1fbd')]=![],_0xd80436[_0xde7378('0xa92')]=_0xb5d47f||{'count':0x0,'rows':[]};for(let _0x361839=0x0;_0x361839<_0xd80436[_0xde7378('0xa92')][_0xde7378('0x19b2')][_0xde7378('0x1e22')];_0x361839+=0x1){_0x58103b(_0xd80436['whatsappInteractions'][_0xde7378('0x19b2')][_0x361839]);}}function _0x48de1f(_0x14292d){const _0x294fab=_0x47a83d;_0xd80436[_0x294fab('0x1fbd')]=!![];!_0x14292d&&(_0xd80436['query'][_0x294fab('0x1c2')]=0x1);_0xd80436['query'][_0x294fab('0x1393')]=(_0xd80436[_0x294fab('0x1f2a')][_0x294fab('0x1c2')]-0x1)*_0xd80436[_0x294fab('0x1f2a')][_0x294fab('0xd5c')];let _0x23f162=_0x1c11f4['localStorage'][_0x294fab('0x2356')](_0x294fab('0x5d1')+_0xd80436['user']['id']);_0x23f162=_0x23f162?JSON[_0x294fab('0x1850')](_0x23f162):{},_0x23f162['query']=_0xd80436[_0x294fab('0x1f2a')],_0x1c11f4['localStorage']['setItem'](_0x294fab('0x5d1')+_0xd80436[_0x294fab('0x21d9')]['id'],JSON['stringify'](_0x23f162)),_0xd80436['promise']=_0x5575b4['whatsappInteraction'][_0x294fab('0xbaa')](_0xd80436[_0x294fab('0x1f2a')],_0x30dd18)[_0x294fab('0x1549')];}function _0x492339(_0x4762fd,_0x1e3c46){const _0x398b3e=_0x47a83d;_0x507a44[_0x398b3e('0x25f5')]['vm'][_0x398b3e('0x226f')](_0x398b3e('0xe7c'),_0x1e3c46);}function _0xe6701b(_0x3bb46e,_0x252c9f,_0x5aa108){const _0x305e5d=_0x47a83d;_0x5575b4['whatsappInteraction'][_0x305e5d('0x149c')]({'id':_0x252c9f['id'],'attachments':_0x5aa108})[_0x305e5d('0x1549')][_0x305e5d('0x11bf')](function(_0x2807d8){const _0x551222=_0x305e5d,_0x482676=[_0x2807d8[_0x551222('0x1e94')]],_0x203c99=_0x551222('0x161e')+_0x252c9f['id']+'.zip',_0x47ec54=new Blob(_0x482676,{'type':_0x2807d8[_0x551222('0x19fd')]}),_0x86dbd2=window[_0x551222('0xb54')][_0x551222('0x2773')]('a');_0x86dbd2[_0x551222('0x1e1b')](_0x551222('0xead'),URL[_0x551222('0x44b')](_0x47ec54)),_0x86dbd2['setAttribute']('download',_0x203c99),document[_0x551222('0x1d2')][_0x551222('0x131c')](_0x86dbd2),_0x86dbd2['click']();})[_0x305e5d('0x151d')](function(_0x2d7413){const _0x51997e=_0x305e5d;if(_0x2d7413[_0x51997e('0x4e8')]&&_0x2d7413['data'][_0x51997e('0x120f')]&&_0x2d7413[_0x51997e('0x4e8')][_0x51997e('0x120f')][_0x51997e('0x1e22')])for(let _0x3429c5=0x0;_0x3429c5<_0x2d7413['data'][_0x51997e('0x120f')][_0x51997e('0x1e22')];_0x3429c5+=0x1){_0xc039e[_0x51997e('0x255')]({'title':_0x2d7413[_0x51997e('0x4e8')]['errors'][_0x3429c5][_0x51997e('0x19fd')],'msg':_0x2d7413[_0x51997e('0x4e8')][_0x51997e('0x120f')][_0x3429c5][_0x51997e('0x1b86')]});}else _0xc039e[_0x51997e('0x255')]({'title':_0x2d7413['status']?'API:'+_0x2d7413[_0x51997e('0xff9')]+_0x51997e('0xb0b')+_0x2d7413[_0x51997e('0x212f')]:_0x51997e('0x26de'),'msg':_0x2d7413[_0x51997e('0x4e8')]?JSON[_0x51997e('0x3e')](_0x2d7413['data'][_0x51997e('0x1b86')]):_0x2d7413[_0x51997e('0xaab')]()});});}function _0x20ff1a(_0x4ed725,_0x38880f){const _0x3d16d6=_0x47a83d,_0x3dd6cd=_0xd80436[_0x3d16d6('0x21d9')][_0x3d16d6('0x20d')]||_0xd80436[_0x3d16d6('0x21d9')][_0x3d16d6('0x13c9')]||_0xd80436['user'][_0x3d16d6('0x1f53')]||_0xd80436[_0x3d16d6('0x21d9')][_0x3d16d6('0xfc0')]||_0xd80436[_0x3d16d6('0x21d9')][_0x3d16d6('0x2501')],_0x1396d9=!_0x38880f[_0x3d16d6('0x1e3c')][_0x3d16d6('0x123b')];_0x116345['show']({'controller':'DisposeInteractionDialogController','controllerAs':'vm','templateUrl':_0x35815a,'parent':angular[_0x3d16d6('0x1e73')](_0x4aff79[_0x3d16d6('0x1d2')]),'clickOutsideToClose':_0x1396d9,'escapeToClose':_0x1396d9,'onRemoving':function(){const _0x34ce09=_0x3d16d6;_0xd80436[_0x34ce09('0x21d9')]&&_0x38880f[_0x34ce09('0x1e3c')]['mandatoryDisposition']&&!_0x3dd6cd&&_0x5575b4[_0x34ce09('0x21d9')][_0x34ce09('0xb6f')]({'id':_0xd80436[_0x34ce09('0x21d9')]['id']})[_0x34ce09('0x1549')][_0x34ce09('0x151d')](function(_0x52b18e){const _0x5e3c9e=_0x34ce09;console[_0x5e3c9e('0x255')](_0x52b18e);});},'locals':{'user':_0xd80436[_0x3d16d6('0x21d9')],'channel':'whatsapp','interaction':_0x38880f}});}function _0x58103b(_0x32cc2d){const _0x555108=_0x47a83d;_0x32cc2d[_0x555108('0xf10')]?(_0x32cc2d[_0x555108('0xca9')]=(_0x32cc2d[_0x555108('0xf10')][_0x555108('0x13a0')]||'')+'\x20'+(_0x32cc2d[_0x555108('0xf10')]['lastName']||''),_0x32cc2d['contactInfo']=_0x32cc2d['Contact']['mobile']):_0x32cc2d[_0x555108('0xca9')]=_0x3257cf['instant'](_0x555108('0x1d85'));}function _0x50bab2(_0x489dc2){const _0x3b0a6c=_0x47a83d;if(_0x489dc2[_0x3b0a6c('0x2342')])return _0x489dc2[_0x3b0a6c('0x2342')]===_0xd80436['user']['id']?_0x3257cf[_0x3b0a6c('0x10c2')]('DASHBOARDS.ME'):_0x489dc2[_0x3b0a6c('0x657')][_0x3b0a6c('0x27af')]+'\x20<'+_0x489dc2[_0x3b0a6c('0x657')][_0x3b0a6c('0x1a04')]+'>';return _0x3257cf[_0x3b0a6c('0x10c2')]('DASHBOARDS.NOT_ASSIGNED');}function _0xb7253d(_0x273a63){const _0x2bd0aa=_0x47a83d;if(_0x273a63[_0x2bd0aa('0x1e3c')])return _0x273a63['Account'][_0x2bd0aa('0xa0c')];return _0x3257cf[_0x2bd0aa('0x10c2')](_0x2bd0aa('0x1d85'));}function _0x46acd2(_0x1b7d90,_0x52a921){const _0x4b5b53=_0x47a83d;_0x116345[_0x4b5b53('0xb9')]({'controller':_0x4b5b53('0x94a'),'controllerAs':'vm','templateUrl':_0x4e375f,'parent':angular['element'](_0x4aff79['body']),'clickOutsideToClose':![],'locals':{'account':_0x52a921,'message':{},'type':_0x4b5b53('0x8a6'),'interaction':{}},'fullscreen':!![]})[_0x4b5b53('0x11bf')](function(_0x190aac){const _0x300c3d=_0x4b5b53;if(_0x190aac){if(_0x190aac[_0x300c3d('0x1b86')]&&_0x190aac[_0x300c3d('0x1b86')][_0x300c3d('0x2710')]){const _0xc34e92={'channel':'whatsapp','account':_0x52a921,'message':_0x190aac[_0x300c3d('0x1b86')],'contact':_0x190aac['contact']};_0x274a95[_0x300c3d('0x23c1')](_0xc34e92);}else{const _0x14a26c=_0x190aac;return _0x5575b4[_0x300c3d('0x2295')]['send']({'id':_0x52a921['id']},_0x14a26c)[_0x300c3d('0x1549')][_0x300c3d('0x11bf')](function(_0x2f9509){const _0x2a0670=_0x300c3d;_0xc039e[_0x2a0670('0x2693')]({'title':'Message\x20properly\x20sent!','msg':_0x2a0670('0x122d')}),_0x507a44[_0x2a0670('0x25f5')]['vm'][_0x2a0670('0x226f')](_0x2a0670('0xe7c'),_0x2f9509);})[_0x300c3d('0x151d')](function(_0x8fc682){const _0x16090f=_0x300c3d;if(_0x8fc682[_0x16090f('0x4e8')]&&_0x8fc682['data'][_0x16090f('0x120f')]&&_0x8fc682[_0x16090f('0x4e8')]['errors'][_0x16090f('0x1e22')])for(let _0x1b5b6b=0x0;_0x1b5b6b<_0x8fc682[_0x16090f('0x4e8')][_0x16090f('0x120f')]['length'];_0x1b5b6b++){_0xc039e[_0x16090f('0x255')]({'title':_0x8fc682[_0x16090f('0x4e8')][_0x16090f('0x120f')][_0x1b5b6b]['type'],'msg':_0x8fc682[_0x16090f('0x4e8')][_0x16090f('0x120f')][_0x1b5b6b]['message']});}else _0xc039e[_0x16090f('0x255')]({'title':_0x8fc682[_0x16090f('0xff9')]?_0x16090f('0x574')+_0x8fc682[_0x16090f('0xff9')]+_0x16090f('0xb0b')+_0x8fc682[_0x16090f('0x212f')]:_0x16090f('0x11d'),'msg':_0x8fc682[_0x16090f('0x4e8')]?JSON[_0x16090f('0x3e')](_0x8fc682[_0x16090f('0x4e8')][_0x16090f('0x1b86')]):_0x8fc682[_0x16090f('0x1b86')]||_0x8fc682[_0x16090f('0xaab')]()});});}}});}function _0x3fa2cc(_0x4db07a){const _0x420628=_0x47a83d;let _0x35f1a2;const _0x9a068=_0x36f548()[_0x420628('0x1ad4')](_0xd80436[_0x420628('0xa92')][_0x420628('0x19b2')],{'id':_0x4db07a[_0x420628('0x200d')]});_0x9a068&&_0x9a068['Users']&&(_0x35f1a2=_0x36f548()['find'](_0x9a068[_0x420628('0xc42')],{'id':_0x4db07a[_0x420628('0x2342')]}),!_0x35f1a2&&_0x9a068[_0x420628('0xc42')][_0x420628('0x105d')]({'id':_0x4db07a[_0x420628('0x2342')]}));}function _0x25232e(_0x441980){const _0x3e9b67=_0x47a83d,_0x44bc3a=_0x36f548()[_0x3e9b67('0x1ad4')](_0xd80436[_0x3e9b67('0xa92')]['rows'],{'id':_0x441980[_0x3e9b67('0x200d')]});_0x44bc3a&&_0x44bc3a[_0x3e9b67('0xc42')]&&_0x36f548()[_0x3e9b67('0x14a5')](_0x44bc3a[_0x3e9b67('0xc42')],{'id':_0x441980[_0x3e9b67('0x2342')]});}function _0x5739da(_0x250102){const _0x54fb48=_0x47a83d;if(_0x250102){const _0x1a4ddb=_0x36f548()[_0x54fb48('0x1ad4')](_0xd80436['whatsappInteractions'][_0x54fb48('0x19b2')],{'id':_0x250102['id']});if(_0x1a4ddb){_0x1a4ddb[_0x54fb48('0xc42')]=[];_0x250102['closed']&&(_0x1a4ddb[_0x54fb48('0xf2')]=0x0);if(_0xd80436[_0x54fb48('0x1f2a')][_0x54fb48('0x1c16')]){const _0x4af1ca=_0x36f548()[_0x54fb48('0x1eb7')](_0xd80436['query'][_0x54fb48('0x1c16')],'-')?_0x54fb48('0x121a'):_0x54fb48('0x1875');_0xd80436[_0x54fb48('0xa92')][_0x54fb48('0x19b2')]=_0x36f548()['orderBy'](_0xd80436[_0x54fb48('0xa92')][_0x54fb48('0x19b2')],_0x36f548()[_0x54fb48('0x13b1')](_0xd80436['query'][_0x54fb48('0x1c16')],'-'),_0x4af1ca);}_0x36f548()[_0x54fb48('0x47b')](_0x1a4ddb,_0x36f548()[_0x54fb48('0x258')](_0x250102,_0x36f548()['keys'](_0x1a4ddb)));}else _0x48de1f(_0xd80436[_0x54fb48('0x1f2a')]['page']);}}function _0x49cd3a(_0x9ef02e){const _0x574935=_0x47a83d;if(_0x9ef02e){const _0x5082e1=_0x36f548()[_0x574935('0x1ad4')](_0xd80436[_0x574935('0xa92')][_0x574935('0x19b2')],{'id':_0x9ef02e['id']});_0x5082e1&&(_0x5082e1[_0x574935('0x806')]=_0x9ef02e[_0x574935('0x2763')]||[],_0x36f548()[_0x574935('0x47b')](_0x5082e1,_0x36f548()[_0x574935('0x258')](_0x9ef02e,_0x36f548()['keys'](_0x5082e1))));}}function _0x1d0eb2(_0x895e6d){const _0x59e44a=_0x47a83d;if(_0x895e6d&&!_0x895e6d[_0x59e44a('0xdaa')]){const _0x108242=_0x36f548()['find'](_0xd80436[_0x59e44a('0xa92')][_0x59e44a('0x19b2')],{'id':_0x895e6d[_0x59e44a('0x200d')]});if(_0x108242){const _0x393032=_0x36f548()['find'](_0x108242[_0x59e44a('0x3ad')],{'id':_0x895e6d['id']});_0x393032?_0x36f548()[_0x59e44a('0x47b')](_0x393032,_0x36f548()['pick'](_0x895e6d,_0x36f548()['keys'](_0x393032))):(_0x36f548()['isNil'](_0x108242[_0x59e44a('0x3ad')])&&(_0x108242[_0x59e44a('0x3ad')]={'count':0x0}),!_0x895e6d[_0x59e44a('0x1601')]&&(_0x108242[_0x59e44a('0x3ad')]['count']+=0x1));}}}function _0x2b86e5(){const _0xc271ea=_0x47a83d;_0xd80436[_0xc271ea('0x12f7')]=![];}function _0x4214f8(){const _0xed9328=_0x47a83d;_0xd80436[_0xed9328('0x12f7')]=!![];}function _0x287135(){const _0x3798ac=_0x47a83d;_0xd80436['isSearchBarVisible']=![],_0x116345['show']({'controller':_0x3798ac('0x5'),'controllerAs':'vm','templateUrl':_0x19602a,'parent':angular[_0x3798ac('0x1e73')](_0x4aff79[_0x3798ac('0x1d2')]),'clickOutsideToClose':![],'locals':{'color':_0xd80436[_0x3798ac('0x11e7')],'fields':_0xd80436[_0x3798ac('0xd6d')][_0x3798ac('0x1067')],'storagePath':_0x3798ac('0x2b5')},'fullscreen':!![]})[_0x3798ac('0x11bf')](function(_0x4c4d91){const _0x24b899=_0x3798ac;_0xd80436[_0x24b899('0x1f2a')][_0x24b899('0xce2')]=_0x4c4d91===![]?undefined:_0x4c4d91;if(_0xd80436[_0x24b899('0x1f2a')][_0x24b899('0xce2')]||_0x4c4d91===![])_0x48de1f();})[_0x3798ac('0x151d')](function(_0x3fcf24){const _0x216baf=_0x3798ac;_0xc039e[_0x216baf('0x255')]({'title':'ERROR','msg':_0x3fcf24[_0x216baf('0x4e8')]?JSON[_0x216baf('0x3e')](_0x3fcf24['data'][_0x216baf('0x1b86')]):_0x3fcf24['toString']()});});}let _0x44f3f4=!![],_0xf09b7d=0x1;_0x507a44['$watch'](_0x47a83d('0x842'),function(_0x482027,_0x43aadc){const _0x56b5d8=_0x47a83d;_0x44f3f4?_0x1bedec(function(){_0x44f3f4=![];}):(!_0x43aadc&&(_0xf09b7d=_0xd80436[_0x56b5d8('0x1f2a')][_0x56b5d8('0x1c2')]),_0x482027!==_0x43aadc&&(_0xd80436[_0x56b5d8('0x1f2a')]['page']=0x1),!_0x482027&&(_0xd80436[_0x56b5d8('0x1f2a')][_0x56b5d8('0x1c2')]=_0xf09b7d),_0x48de1f(_0xd80436[_0x56b5d8('0x1f2a')][_0x56b5d8('0x1c2')]));}),_0x507a44[_0x47a83d('0x12d8')](_0x47a83d('0x4f7'),function(){const _0x1e74f0=_0x47a83d;_0x178f65[_0x1e74f0('0x1b2e')](_0x1e74f0('0xccf')),_0x178f65[_0x1e74f0('0x1b2e')](_0x1e74f0('0x2794')),_0x178f65[_0x1e74f0('0x1b2e')]('whatsappInteraction:save'),_0x178f65[_0x1e74f0('0x1b2e')](_0x1e74f0('0x2378')),_0x178f65['removeAllListeners'](_0x1e74f0('0x2601')),_0x178f65[_0x1e74f0('0x1b2e')](_0x1e74f0('0x1cab')),_0x178f65[_0x1e74f0('0x1b2e')](_0x1e74f0('0x52d'));});}const _0x456389=_0x23ef12;_0x2d1f62[_0x21d0f5('0x1e9a')]=['$scope','$sce'];function _0x2d1f62(_0x1b6519,_0x26bf30){const _0x457719=_0x21d0f5,_0x4fabba=this;_0x4fabba[_0x457719('0x23e1')]={},_0x4fabba['messages']={'count':0x0,'rows':[]},_0x4fabba[_0x457719('0x22e')]=![];function _0x1d1515(_0x2dcf90,_0x2a1b7d){const _0x296ee7=_0x457719;_0x4fabba[_0x296ee7('0x23e1')]=_0x2a1b7d,_0x4fabba[_0x296ee7('0x205c')]=_0x2dcf90,_0x4fabba[_0x296ee7('0x205c')][_0x296ee7('0xf06')]=!![];}function _0x54fcac(){const _0x5e8646=_0x457719;return _0x26bf30[_0x5e8646('0xaa8')](_0x4fabba[_0x5e8646('0x205c')][_0x5e8646('0x241a')]);}_0x4fabba[_0x457719('0x286f')]=_0x1d1515,_0x4fabba['getTrustedURL']=_0x54fcac;}const _0x2b9bb3=_0x2d1f62,_0x8564f3=_0x351988['p']+_0x21d0f5('0x943'),_0x1c31b6=_0x351988['p']+_0x21d0f5('0x15ba');_0x32d639[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1dbf')],_0x222a75[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x5d8'),_0x21d0f5('0x17f5'),'$document',_0x21d0f5('0x1b80'),_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0x16b9'),_0x21d0f5('0xb6b'),_0x21d0f5('0x12a5'),_0x21d0f5('0x142d'),_0x21d0f5('0x1150'),_0x21d0f5('0x1d56'),_0x21d0f5('0xda9'),_0x21d0f5('0x2a1')];function _0x222a75(_0x14c820,_0x3716c5,_0x34669b,_0x552fea,_0x449bef,_0x1cc575,_0x3f60d8,_0x406827,_0x5179b1,_0x488a16,_0x176d82,_0x3b8c46,_0x1dee55,_0x354a85){const _0x5d73ea=_0x21d0f5,_0x303ab7=this,_0x4895ed=0x19,_0x578a0a=_0x4895ed*0x400*0x400;_0x303ab7[_0x5d73ea('0x2261')]=![],_0x303ab7[_0x5d73ea('0x22e')]=![],_0x303ab7[_0x5d73ea('0x21d9')]=_0x176d82['getCurrentUser'](),_0x303ab7[_0x5d73ea('0x7dd')]=_0x1dee55[_0x5d73ea('0x7dd')](),_0x303ab7[_0x5d73ea('0x496')]=[],_0x303ab7['acceptedMessages']=[],_0x303ab7[_0x5d73ea('0x27c2')]=['mail',_0x5d73ea('0x1800'),_0x5d73ea('0x4df'),'openchannel',_0x5d73ea('0x2104'),_0x5d73ea('0xe7c')],_0x303ab7[_0x5d73ea('0x1fad')]={'target':_0x5d73ea('0x221f'),'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x578a0a,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x303ab7[_0x5d73ea('0x13b8')]={'flow':{}},_0x303ab7[_0x5d73ea('0x26c')]={},_0x303ab7[_0x5d73ea('0x1caf')]={},_0x303ab7[_0x5d73ea('0x23e1')]={},_0x303ab7[_0x5d73ea('0x2065')]={},_0x303ab7[_0x5d73ea('0x14d8')]={'fontSmiley':!![],'sanitizeHtml':!![],'emoji':!![],'link':!![],'linkTarget':_0x5d73ea('0x1e65')},_0x303ab7[_0x5d73ea('0x9f6')]=new Date(_0x57d4d1()()[_0x5d73ea('0x2655')](_0x5d73ea('0x4d8'))['subtract'](0x1,_0x5d73ea('0x278'))[_0x5d73ea('0x1fb1')](0x0,!![])[_0x5d73ea('0x1826')]()),_0x303ab7['lastDayMonth']=new Date(_0x57d4d1()()[_0x5d73ea('0x2ba')]('month')[_0x5d73ea('0x243a')](0x1,_0x5d73ea('0x2161'))[_0x5d73ea('0x1fb1')](0x0,!![])['format']()),_0x303ab7['init']=_0x5418ce,_0x303ab7['getLabelByMessage']=_0x5f53d4,_0x303ab7['openContact']=_0x347f1c,_0x303ab7[_0x5d73ea('0x621')]=_0x15b23b,_0x303ab7[_0x5d73ea('0x1dfb')]=_0x36b542,_0x303ab7['tagInteraction']=_0x207b08,_0x303ab7[_0x5d73ea('0x1df0')]=_0x3577ca,_0x303ab7[_0x5d73ea('0x702')]=_0x934d8a,_0x303ab7['composeSmsInteraction']=_0x429342,_0x303ab7[_0x5d73ea('0x7ef')]=_0x903df5,_0x303ab7[_0x5d73ea('0x7fa')]=_0x161a91,_0x303ab7[_0x5d73ea('0x5c8')]=_0x4f79e3,_0x303ab7[_0x5d73ea('0xcea')]=_0x3d87ba,_0x303ab7[_0x5d73ea('0x725')]=_0x65a78c,_0x303ab7['createVidaooSession']=_0x1ca80b,_0x303ab7[_0x5d73ea('0x19ec')]=_0x454824,_0x303ab7[_0x5d73ea('0x464')]=_0x5e3778,_0x303ab7[_0x5d73ea('0xa3f')]=_0x2ab541,_0x303ab7[_0x5d73ea('0x1a81')]=_0xec13a4,_0x303ab7[_0x5d73ea('0x2549')]=_0x114ed1,_0x303ab7[_0x5d73ea('0x267d')]=_0x29c22b,_0x303ab7[_0x5d73ea('0x1161')]=_0x153aba,_0x303ab7[_0x5d73ea('0x494')]=_0x199586,_0x303ab7[_0x5d73ea('0x1d01')]=_0x1d4482,_0x303ab7['fileAdded']=_0x3e98e4,_0x303ab7[_0x5d73ea('0x272b')]=_0xbfd118,_0x303ab7[_0x5d73ea('0x5df')]=_0x39e0a0,_0x303ab7['onInteractionSave']=_0x230e00,_0x303ab7['searchTextChange']=_0x4e09a0,_0x303ab7[_0x5d73ea('0xd01')]=_0x3d32d6,_0x303ab7[_0x5d73ea('0x1c4d')]=_0x1b655d,_0x303ab7['getColorByChannel']=_0x56c157,_0x303ab7[_0x5d73ea('0x223')]=_0xc280e0,_0x303ab7[_0x5d73ea('0x1eac')]=_0x4359cb,_0x303ab7[_0x5d73ea('0x328')]=![],_0x303ab7['changeDisplayCannedAnswerInputValue']=_0x9ece04,_0x303ab7['setAs']=_0x48f013,_0x303ab7[_0x5d73ea('0x266e')]=_0x22845a,_0x303ab7['isMyAccount']=_0x49aab,_0x303ab7[_0x5d73ea('0xc17')]=_0x583183,_0x303ab7['getAttachment']=_0x5ada43,_0x303ab7[_0x5d73ea('0x26e9')]=_0x558296,_0x303ab7[_0x5d73ea('0x135')]=_0xc8859d,_0x303ab7['onInteractionClose']=_0x49e989,_0x303ab7[_0x5d73ea('0x5e9')]=_0xf86ed3,_0x303ab7[_0x5d73ea('0xb5a')]={'scrollEl':_0x5d73ea('0x192e')};function _0x29c22b(){const _0x400cea=_0x5d73ea;_0x5179b1[_0x400cea('0x21d9')][_0x400cea('0x267d')]({'id':_0x303ab7['user']['id'],'nolimit':!![]})[_0x400cea('0x1549')][_0x400cea('0x11bf')](function(_0x4aaec1){const _0x2b672b=_0x400cea;_0x303ab7[_0x2b672b('0x215d')]=_0x4aaec1||{'count':0x0,'rows':[]};});}function _0x153aba(){const _0x3356be=_0x5d73ea;_0x5179b1['user'][_0x3356be('0x1161')]({'id':_0x303ab7[_0x3356be('0x21d9')]['id'],'nolimit':!![]})['$promise'][_0x3356be('0x11bf')](function(_0x4e3e91){const _0x16aebf=_0x3356be;_0x303ab7[_0x16aebf('0x24ce')]=_0x4e3e91||{'count':0x0,'rows':[]};});}function _0x114ed1(){const _0x3a389e=_0x5d73ea;_0x5179b1['user'][_0x3a389e('0x2549')]({'id':_0x303ab7[_0x3a389e('0x21d9')]['id'],'nolimit':!![]})['$promise'][_0x3a389e('0x11bf')](function(_0x142322){const _0x567b9e=_0x3a389e;_0x303ab7[_0x567b9e('0x1518')]=_0x142322||{'count':0x0,'rows':[]};})[_0x3a389e('0x151d')](function(_0x5afc17){const _0x3ac152=_0x3a389e;if(_0x5afc17[_0x3ac152('0x4e8')]&&_0x5afc17['data'][_0x3ac152('0x120f')]&&_0x5afc17[_0x3ac152('0x4e8')][_0x3ac152('0x120f')]['length']){_0x303ab7[_0x3ac152('0x120f')]=_0x5afc17[_0x3ac152('0x4e8')]['errors']||[{'message':_0x5afc17[_0x3ac152('0xaab')](),'type':_0x3ac152('0x1e45')}];for(let _0x4bb801=0x0;_0x4bb801<_0x5afc17[_0x3ac152('0x4e8')][_0x3ac152('0x120f')]['length'];_0x4bb801+=0x1){_0x488a16[_0x3ac152('0x255')]({'title':_0x5afc17[_0x3ac152('0x4e8')][_0x3ac152('0x120f')][_0x4bb801][_0x3ac152('0x19fd')],'msg':_0x5afc17[_0x3ac152('0x4e8')][_0x3ac152('0x120f')][_0x4bb801][_0x3ac152('0x1b86')]});}}else _0x488a16[_0x3ac152('0x255')]({'title':_0x5afc17[_0x3ac152('0xff9')]?_0x3ac152('0x574')+_0x5afc17['status']+_0x3ac152('0xb0b')+_0x5afc17['statusText']:_0x3ac152('0x1e45'),'msg':_0x5afc17[_0x3ac152('0x4e8')]?JSON[_0x3ac152('0x3e')](_0x5afc17['data'][_0x3ac152('0x1b86')]):_0x5afc17[_0x3ac152('0xaab')]()});});}function _0x454824(){const _0x5ec08d=_0x5d73ea;_0x5179b1[_0x5ec08d('0x21d9')]['getMailAccounts']({'id':_0x303ab7[_0x5ec08d('0x21d9')]['id'],'nolimit':!![]})[_0x5ec08d('0x1549')]['then'](function(_0x374d4a){const _0x255dd4=_0x5ec08d;_0x303ab7[_0x255dd4('0xf1a')]=_0x374d4a||{'count':0x0,'rows':[]};});}function _0x5e3778(){const _0x2a6513=_0x5d73ea;_0x5179b1[_0x2a6513('0x21d9')][_0x2a6513('0x464')]({'id':_0x303ab7[_0x2a6513('0x21d9')]['id'],'nolimit':!![]})[_0x2a6513('0x1549')][_0x2a6513('0x11bf')](function(_0x3c1da4){const _0x2d6bd1=_0x2a6513;_0x303ab7[_0x2d6bd1('0xc6e')]=_0x3c1da4||{'count':0x0,'rows':[]};});}function _0x2ab541(){const _0x5f4f02=_0x5d73ea;_0x5179b1[_0x5f4f02('0x21d9')]['getSmsAccounts']({'id':_0x303ab7['user']['id'],'nolimit':!![]})[_0x5f4f02('0x1549')]['then'](function(_0x324f4f){const _0x183e98=_0x5f4f02;_0x303ab7[_0x183e98('0x27d9')]=_0x324f4f||{'count':0x0,'rows':[]};});}function _0xec13a4(){const _0x3af9c2=_0x5d73ea;_0x5179b1[_0x3af9c2('0x21d9')]['getWhatsappAccounts']({'id':_0x303ab7['user']['id'],'nolimit':!![]})[_0x3af9c2('0x1549')][_0x3af9c2('0x11bf')](function(_0x42d9c4){const _0x5a212e=_0x3af9c2;_0x303ab7[_0x5a212e('0xeaa')]=_0x42d9c4||{'count':0x0,'rows':[]};});}function _0xf86ed3(){const _0x246162=_0x5d73ea,_0x3cdda3=_0x1cc575[_0x246162('0xa93')]();if(_0x303ab7['queryMessage'])return _0x303ab7['queryMessage']['offset']=_0x303ab7[_0x246162('0x8d6')][_0x246162('0x19b2')][_0x246162('0x1e22')],_0x5179b1[_0x303ab7[_0x246162('0x205c')]['channel']+_0x246162('0x1da8')]['getMessages'](_0x303ab7[_0x246162('0x1dce')])[_0x246162('0x1549')][_0x246162('0x11bf')](function(_0x43ea3b){const _0x1a2ac9=_0x246162;for(let _0x244481=0x0;_0x244481<_0x43ea3b[_0x1a2ac9('0x19b2')][_0x1a2ac9('0x1e22')];_0x244481+=0x1){_0x303ab7[_0x1a2ac9('0x8d6')][_0x1a2ac9('0x19b2')][_0x1a2ac9('0x105d')](_0x43ea3b[_0x1a2ac9('0x19b2')][_0x244481]),!_0x303ab7[_0x1a2ac9('0x4e6')][_0x1a2ac9('0x949')]&&_0x43ea3b['rows'][_0x244481][_0x1a2ac9('0x7d5')]==='in'&&!_0x43ea3b['rows'][_0x244481][_0x1a2ac9('0x1601')]&&(_0x5179b1[_0x303ab7[_0x1a2ac9('0x205c')]['channel']+'Message'][_0x1a2ac9('0x15c7')]({'id':_0x43ea3b['rows'][_0x244481]['id'],'UserId':_0x303ab7[_0x1a2ac9('0x21d9')]['id']}),_0x303ab7[_0x1a2ac9('0x1d61')][_0x1a2ac9('0x105d')](_0x43ea3b[_0x1a2ac9('0x19b2')][_0x244481]['id']));}return _0x3cdda3[_0x1a2ac9('0xa28')](_0x43ea3b);})[_0x246162('0x151d')](function(_0x2089e3){const _0x1160af=_0x246162;return _0x3cdda3[_0x1160af('0x4a')](_0x2089e3);});return _0x3cdda3[_0x246162('0x4a')]();}function _0x5418ce(_0x247555,_0x253806){const _0xd2eddf=_0x5d73ea;_0x303ab7[_0xd2eddf('0x205c')]=_0x247555,_0x303ab7[_0xd2eddf('0x205c')][_0xd2eddf('0xf06')]=!![],_0x303ab7[_0xd2eddf('0x205c')][_0xd2eddf('0x142c')]=0x0,_0x303ab7[_0xd2eddf('0x23e1')]=_0x253806||{},_0x303ab7[_0xd2eddf('0x205c')]&&_0x303ab7[_0xd2eddf('0x205c')][_0xd2eddf('0xd12')]&&_0x303ab7['tab'][_0xd2eddf('0x4e6')]&&(_0x303ab7[_0xd2eddf('0x4e6')]=_0x303ab7[_0xd2eddf('0x205c')]['interaction'],_0x5179b1[_0x303ab7['tab']['channel']+'Interaction'][_0xd2eddf('0xbaa')]({'id':_0x303ab7[_0xd2eddf('0x205c')][_0xd2eddf('0x4e6')]['id'],'includeAll':!![]})[_0xd2eddf('0x1549')][_0xd2eddf('0x11bf')](function(_0x287418){const _0x4a43fd=_0xd2eddf;return _0x287418&&(_0x303ab7['interaction']=_0x287418,_0x303ab7[_0x4a43fd('0x205c')][_0x4a43fd('0x4e6')]=_0x287418),_0x303ab7['tab'][_0x4a43fd('0xf06')]=_0x303ab7[_0x4a43fd('0x4e6')][_0x4a43fd('0x949')],_0x303ab7[_0x4a43fd('0x1dce')]={'id':_0x303ab7['interaction']['id'],'includeAll':!![]},_0x303ab7[_0x4a43fd('0x205c')][_0x4a43fd('0xd12')]===_0x4a43fd('0x2030')?(_0x303ab7[_0x4a43fd('0x1dce')][_0x4a43fd('0x1c16')]=_0x4a43fd('0x1157'),_0x303ab7['queryMessage'][_0x4a43fd('0x1393')]=0x0,_0x303ab7['queryMessage']['limit']=0x3):(_0x303ab7[_0x4a43fd('0x1dce')][_0x4a43fd('0x1c16')]='id',_0x303ab7['queryMessage'][_0x4a43fd('0x287')]=!![]),_0x5179b1[_0x303ab7[_0x4a43fd('0x205c')][_0x4a43fd('0xd12')]+_0x4a43fd('0x1da8')][_0x4a43fd('0x1308')](_0x303ab7[_0x4a43fd('0x1dce')])['$promise'];})['then'](function(_0x317728){const _0x27811b=_0xd2eddf;return _0x303ab7[_0x27811b('0x8d6')]=_0x317728||{'count':0x0,'rows':[]},_0x5179b1[_0x303ab7[_0x27811b('0x205c')][_0x27811b('0xd12')]===_0x27811b('0x1800')?_0x27811b('0xb50'):_0x303ab7[_0x27811b('0x205c')]['channel']+_0x27811b('0x1e3c')]['get']({'id':_0x303ab7[_0x27811b('0x4e6')][_0x303ab7[_0x27811b('0x205c')]['channel']==='chat'?_0x27811b('0x2346'):_0x36f548()['capitalize'](_0x303ab7[_0x27811b('0x205c')][_0x27811b('0xd12')])+_0x27811b('0xa4e')]})[_0x27811b('0x1549')];})[_0xd2eddf('0x11bf')](function(_0x77fec){const _0x59b821=_0xd2eddf;_0x303ab7[_0x59b821('0x2565')]=_0x77fec,_0x303ab7[_0x59b821('0x205c')]['title']=_0x303ab7[_0x59b821('0x2565')][_0x59b821('0xa0c')]||_0x303ab7[_0x59b821('0x2565')][_0x59b821('0x1909')];if(_0x303ab7[_0x59b821('0x4e6')][_0x59b821('0x23f1')])return _0x5179b1[_0x59b821('0x1b8f')]['get']({'id':_0x303ab7['interaction'][_0x59b821('0x23f1')]})[_0x59b821('0x1549')];})[_0xd2eddf('0x11bf')](function(_0x5e19be){const _0x226c6e=_0xd2eddf;return _0x5e19be&&(_0x303ab7[_0x226c6e('0xdde')]=_0x5e19be),_0x303ab7[_0x226c6e('0x22e')]=!![],_0x303ab7[_0x226c6e('0xdde')]?(_0x27d965(_0x303ab7[_0x226c6e('0xdde')]),_0x303ab7[_0x226c6e('0x205c')][_0x226c6e('0x134b')]+=_0x226c6e('0xb0b')+_0x303ab7[_0x226c6e('0xdde')][_0x226c6e('0x13a0')]):_0x303ab7['tab'][_0x226c6e('0x134b')]+=_0x226c6e('0xb0b')+_0x406827['instant'](_0x303ab7[_0x226c6e('0x205c')][_0x226c6e('0xd12')]['toUpperCase']()+_0x226c6e('0x1f9d')),_0x5179b1[_0x226c6e('0x21d9')][_0x226c6e('0xbaa')]({'fields':_0x226c6e('0xe1f'),'nolimit':!![]})[_0x226c6e('0x1549')];})['then'](function(_0x4aaa2e){const _0x579046=_0xd2eddf;_0x303ab7['users']=_0x4aaa2e||{'count':0x0,'rows':[]},_0x303ab7[_0x579046('0x2e7')]=_0x36f548()['mapValues'](_0x36f548()[_0x579046('0x2130')](_0x303ab7['users'][_0x579046('0x19b2')],'id'),_0x579046('0x27af'));})[_0xd2eddf('0x11bf')](function(){const _0x4a2fdc=_0xd2eddf;if(_0x303ab7[_0x4a2fdc('0x205c')]['channel']&&_0x303ab7[_0x4a2fdc('0x4e6')])return _0x5179b1[_0x4a2fdc('0x21d9')][_0x4a2fdc('0x23c1')+_0x36f548()[_0x4a2fdc('0x24b5')](_0x303ab7[_0x4a2fdc('0x205c')][_0x4a2fdc('0xd12')])+_0x4a2fdc('0x221b')]({'id':_0x303ab7['user']['id'],'ids':[_0x303ab7['interaction']['id']]});})[_0xd2eddf('0x11bf')](function(){const _0x540531=_0xd2eddf;return _0x5179b1[_0x540531('0x1f96')][_0x540531('0xbaa')]({'sort':_0x540531('0x1909'),'nolimit':!![]})['$promise'];})[_0xd2eddf('0x11bf')](function(_0x14b22b){const _0x4b3540=_0xd2eddf;_0x303ab7[_0x4b3540('0x483')]=_0x14b22b||{'count':0x0,'rows':[]};})[_0xd2eddf('0x11bf')](function(){const _0x42bac5=_0xd2eddf;return _0x303ab7[_0x42bac5('0x19ec')]();})[_0xd2eddf('0x11bf')](function(){return _0x303ab7['getFaxAccounts']();})['then'](function(){const _0x12e0d4=_0xd2eddf;return _0x303ab7[_0x12e0d4('0xa3f')]();})[_0xd2eddf('0x11bf')](function(){const _0x26ab84=_0xd2eddf;return _0x303ab7[_0x26ab84('0x1a81')]();})[_0xd2eddf('0x11bf')](function(){const _0x3c2519=_0xd2eddf;return _0x303ab7[_0x3c2519('0x2549')]();})[_0xd2eddf('0x11bf')](function(){return _0x303ab7['getChatWebsites']();})[_0xd2eddf('0x11bf')](function(){return _0x303ab7['getLists']();})[_0xd2eddf('0x151d')](function(){const _0x55be25=_0xd2eddf;_0x303ab7[_0x55be25('0x22e')]=!![];})[_0xd2eddf('0xa9b')](function(){const _0x148efe=_0xd2eddf;_0x429a56(),_0x166995(),_0x3b8c46['on'](_0x303ab7[_0x148efe('0x205c')][_0x148efe('0xd12')]+_0x148efe('0xda7'),_0x303ab7[_0x148efe('0x5df')]),_0x3b8c46['on'](_0x303ab7['tab']['channel']+_0x148efe('0x17b9'),_0x303ab7[_0x148efe('0x5df')]),_0x3b8c46['on'](_0x303ab7[_0x148efe('0x205c')][_0x148efe('0xd12')]+_0x148efe('0xb2a'),_0x303ab7['onInteractionSave']),_0x3b8c46['on'](_0x303ab7[_0x148efe('0x205c')][_0x148efe('0xd12')]+_0x148efe('0x1f7'),_0x303ab7[_0x148efe('0x189')]),_0x3b8c46['on'](_0x148efe('0x1b31')+_0x303ab7[_0x148efe('0x205c')][_0x148efe('0xd12')]+_0x148efe('0x54a'),_0x303ab7[_0x148efe('0x135')]),_0x3b8c46['on'](_0x148efe('0x1b31')+_0x303ab7['tab'][_0x148efe('0xd12')]+_0x148efe('0x2852'),_0x303ab7['onInteractionClose']),_0x303ab7[_0x148efe('0x205c')][_0x148efe('0x57f')]=_0x303ab7[_0x148efe('0x205c')][_0x148efe('0x57f')]?_0x303ab7[_0x148efe('0x205c')]['areaText']:'',_0x303ab7[_0x148efe('0x2261')]=!![],_0x303ab7[_0x148efe('0x205c')][_0x148efe('0xd12')]==='mail'&&(_0x303ab7['draft']=_0x354a85[_0x148efe('0xa95')](_0x303ab7[_0x148efe('0x205c')]['interaction']['id']),_0x303ab7[_0x148efe('0x205c')][_0x148efe('0x1990')]&&(_0x303ab7[_0x148efe('0x205c')][_0x148efe('0x4e6')][_0x148efe('0x949')]?(_0x354a85[_0x148efe('0xfb9')](_0x303ab7[_0x148efe('0x205c')][_0x148efe('0x4e6')]['id']),_0x303ab7[_0x148efe('0x20f1')]=null):_0x65a78c()));}));}function _0x49aab(_0x31decd){const _0x470282=_0x5d73ea;if(_0x31decd[_0x470282('0x1a46')])return _0x36f548()['includes'](_0x36f548()[_0x470282('0x2171')](_0x303ab7[_0x470282('0xc6e')]?_0x303ab7[_0x470282('0xc6e')]['rows']:[],'id'),_0x31decd[_0x470282('0x1a46')]);else{if(_0x31decd[_0x470282('0x2863')])return _0x36f548()[_0x470282('0x55a')](_0x36f548()[_0x470282('0x2171')](_0x303ab7[_0x470282('0x1518')]?_0x303ab7[_0x470282('0x1518')][_0x470282('0x19b2')]:[],'id'),_0x31decd[_0x470282('0x2863')]);else{if(_0x31decd[_0x470282('0x80b')])return _0x36f548()[_0x470282('0x55a')](_0x36f548()[_0x470282('0x2171')](_0x303ab7[_0x470282('0x27d9')]?_0x303ab7[_0x470282('0x27d9')][_0x470282('0x19b2')]:[],'id'),_0x31decd[_0x470282('0x80b')]);else{if(_0x31decd['WhatsappAccountId'])return _0x36f548()[_0x470282('0x55a')](_0x36f548()[_0x470282('0x2171')](_0x303ab7[_0x470282('0xeaa')]?_0x303ab7[_0x470282('0xeaa')][_0x470282('0x19b2')]:[],'id'),_0x31decd[_0x470282('0x146a')]);else{if(_0x31decd[_0x470282('0x2294')])return _0x36f548()[_0x470282('0x55a')](_0x36f548()[_0x470282('0x2171')](_0x303ab7[_0x470282('0xf1a')]?_0x303ab7['mailAccounts']['rows']:[],'id'),_0x31decd[_0x470282('0x2294')]);else{if(_0x31decd[_0x470282('0x2346')])return _0x36f548()[_0x470282('0x55a')](_0x36f548()[_0x470282('0x2171')](_0x303ab7['chatAccounts']?_0x303ab7['chatAccounts'][_0x470282('0x19b2')]:[],'id'),_0x31decd[_0x470282('0x2346')]);else{if(_0x31decd[_0x470282('0x745')])return!![];}}}}}}return![];}function _0xc8859d(_0x4d0474){const _0x44212d=_0x5d73ea;let _0xe6bf52;_0x303ab7[_0x44212d('0x4e6')]['id']==_0x4d0474[_0x36f548()[_0x44212d('0x24b5')](_0x303ab7['tab']['channel'])+'InteractionId']&&(_0x303ab7['interaction'][_0x44212d('0xc42')]&&(_0xe6bf52=_0x36f548()[_0x44212d('0x1ad4')](_0x303ab7[_0x44212d('0x4e6')][_0x44212d('0xc42')],{'id':_0x4d0474[_0x44212d('0x2342')]})),!_0xe6bf52&&_0x303ab7[_0x44212d('0x4e6')][_0x44212d('0xc42')][_0x44212d('0x105d')]({'id':_0x4d0474[_0x44212d('0x2342')]}));}function _0x49e989(_0x4744a8){const _0x4ba57e=_0x5d73ea;_0x303ab7[_0x4ba57e('0x4e6')]['id']==_0x4744a8[_0x36f548()[_0x4ba57e('0x24b5')](_0x303ab7[_0x4ba57e('0x205c')]['channel'])+'InteractionId']&&(_0x303ab7[_0x4ba57e('0x4e6')][_0x4ba57e('0xc42')]&&_0x36f548()[_0x4ba57e('0x14a5')](_0x303ab7[_0x4ba57e('0x4e6')][_0x4ba57e('0xc42')],{'id':_0x4744a8['UserId']}));}function _0x3d32d6(_0xc62d74){const _0x50b64e=_0x5d73ea;if(_0xc62d74){try{_0x36f548()[_0x50b64e('0x41f')]['interpolate']=/{{([\s\S]+?)}}/g;const _0x5196cb=_0x36f548()[_0x50b64e('0x13b6')](_0xc62d74['value']),_0x24f1ea={'user':_0x303ab7[_0x50b64e('0x21d9')],'account':_0x303ab7[_0x50b64e('0x2565')],'interaction':_0x303ab7['interaction'],'contact':_0x303ab7['interaction']&&_0x303ab7[_0x50b64e('0x4e6')][_0x50b64e('0xf10')]?_0x303ab7[_0x50b64e('0x4e6')][_0x50b64e('0xf10')]:{}};_0x303ab7[_0x50b64e('0x205c')][_0x50b64e('0x57f')]+='\x20'+_0x5196cb(_0x24f1ea),_0x303ab7[_0x50b64e('0x2065')][_0x50b64e('0x1201')](_0x303ab7[_0x50b64e('0x205c')][_0x50b64e('0x57f')]);}catch(_0x37c1fe){_0x303ab7[_0x50b64e('0x205c')][_0x50b64e('0x57f')]+='\x20'+_0xc62d74[_0x50b64e('0x10cc')],_0x303ab7['ctrlMethods']['setText'](_0x303ab7['tab'][_0x50b64e('0x57f')]);}_0x303ab7[_0x50b64e('0x15ef')]=null,_0x303ab7['changeDisplayCannedAnswerInputValue']();}}function _0x4e09a0(_0x4beea9){const _0x389baf=_0x5d73ea,_0x5bcb5a=_0x1cc575[_0x389baf('0xa93')]();let _0x56f367=[];const _0x44dcc3={},_0x3ffbab=_0x303ab7[_0x389baf('0x205c')][_0x389baf('0xd12')]===_0x389baf('0x1800')?_0x389baf('0x2346'):_0x36f548()[_0x389baf('0x22c2')](_0x303ab7[_0x389baf('0x205c')][_0x389baf('0xd12')])+_0x389baf('0xa4e');return _0x44dcc3[_0x389baf('0xdb4')]=_0x4beea9,_0x44dcc3[_0x3ffbab]=_0x303ab7['account']['id'],_0x5179b1[_0x389baf('0x81')][_0x389baf('0xbaa')](_0x44dcc3)[_0x389baf('0x1549')]['then'](function(_0xf2a1e3){const _0x239dff=_0x389baf;return _0x56f367=_0x36f548()[_0x239dff('0x20bf')](_0x56f367,_0xf2a1e3[_0x239dff('0x19b2')]),_0x5179b1['cannedAnswer'][_0x239dff('0xbaa')]({'filter':_0x4beea9})[_0x239dff('0x1549')];})['then'](function(_0x23757f){const _0x57545c=_0x389baf;_0x56f367=_0x36f548()[_0x57545c('0x20bf')](_0x56f367,_0x36f548()[_0x57545c('0xdb4')](_0x23757f[_0x57545c('0x19b2')],function(_0x26d2a4){const _0x4f7eba=_0x57545c;return!_0x26d2a4[_0x4f7eba('0x2294')]&&!_0x26d2a4[_0x4f7eba('0x1a46')]&&!_0x26d2a4[_0x4f7eba('0x80b')]&&!_0x26d2a4[_0x4f7eba('0x146a')]&&!_0x26d2a4[_0x4f7eba('0x2863')]&&!_0x26d2a4[_0x4f7eba('0x2346')];})),_0x5bcb5a['resolve'](_0x56f367);})[_0x389baf('0x151d')](function(_0xf6be2a){const _0x15ddd2=_0x389baf;_0x5bcb5a[_0x15ddd2('0x4a')](_0xf6be2a);}),_0x5bcb5a[_0x389baf('0x13f')];}function _0x347f1c(_0x580518,_0x6b4f1b){const _0x5c7c48=_0x5d73ea;try{_0x303ab7[_0x5c7c48('0x205c')]&&!_0x303ab7[_0x5c7c48('0x205c')][_0x5c7c48('0x202c')]&&_0x552fea[_0x5c7c48('0x25f5')]['$parent'][_0x5c7c48('0x25f5')]['vm']['addContactTab'](_0x6b4f1b||_0x303ab7[_0x5c7c48('0xdde')]);}catch(_0x4110a9){_0x488a16['error']({'title':_0x5c7c48('0x22de'),'msg':_0x5c7c48('0x2207')});}}function _0x15b23b(_0x271cf4,_0x4e8b6d){const _0x4adeaa=_0x5d73ea;try{if(_0x4e8b6d[_0x4adeaa('0x2294')])return _0x552fea[_0x4adeaa('0x25f5')][_0x4adeaa('0x25f5')]['$parent']['vm'][_0x4adeaa('0x226f')](_0x4adeaa('0x2030'),_0x4e8b6d);else{if(_0x4e8b6d[_0x4adeaa('0x2346')])return _0x552fea[_0x4adeaa('0x25f5')][_0x4adeaa('0x25f5')][_0x4adeaa('0x25f5')]['vm']['addInteractionTab'](_0x4adeaa('0x1800'),_0x4e8b6d);else{if(_0x4e8b6d[_0x4adeaa('0x80b')])return _0x552fea['$parent']['$parent'][_0x4adeaa('0x25f5')]['vm']['addInteractionTab'](_0x4adeaa('0x4df'),_0x4e8b6d);else{if(_0x4e8b6d[_0x4adeaa('0x146a')])return _0x552fea[_0x4adeaa('0x25f5')][_0x4adeaa('0x25f5')][_0x4adeaa('0x25f5')]['vm'][_0x4adeaa('0x226f')](_0x4adeaa('0xe7c'),_0x4e8b6d);else{if(_0x4e8b6d[_0x4adeaa('0x2863')])return _0x552fea['$parent'][_0x4adeaa('0x25f5')][_0x4adeaa('0x25f5')]['vm'][_0x4adeaa('0x226f')](_0x4adeaa('0xb18'),_0x4e8b6d);else{if(_0x4e8b6d[_0x4adeaa('0x1a46')])return _0x552fea[_0x4adeaa('0x25f5')][_0x4adeaa('0x25f5')][_0x4adeaa('0x25f5')]['vm']['addInteractionTab'](_0x4adeaa('0x2104'),_0x4e8b6d);}}}}}}catch(_0x6be36d){_0x488a16[_0x4adeaa('0x255')]({'title':_0x4adeaa('0xa3a'),'msg':_0x4adeaa('0x11fc')});}}function _0x207b08(){const _0x3b2579=_0x5d73ea;_0x449bef[_0x3b2579('0xb9')]({'controller':_0x3b2579('0x649'),'controllerAs':'vm','templateUrl':_0x8564f3,'parent':angular['element'](_0x34669b[_0x3b2579('0x1d2')]),'clickOutsideToClose':!![],'skipHide':Boolean(_0x303ab7[_0x3b2579('0x205c')][_0x3b2579('0x202c')]),'resolve':{'tags':['apiResolver',function(_0x4e7ea3){const _0x371760=_0x3b2579;return _0x4e7ea3['resolve'](_0x371760('0x11c1'),{'sort':'name','nolimit':!![],'fields':_0x371760('0x1e40')});}]},'locals':{'channel':_0x303ab7[_0x3b2579('0x205c')][_0x3b2579('0xd12')],'interaction':_0x303ab7[_0x3b2579('0x205c')][_0x3b2579('0x4e6')]}});}function _0x36b542(){const _0x2bc5d0=_0x5d73ea,_0x34860a=_0x303ab7[_0x2bc5d0('0x21d9')][_0x2bc5d0('0x20d')]||_0x303ab7['user'][_0x2bc5d0('0x13c9')]||_0x303ab7[_0x2bc5d0('0x21d9')][_0x2bc5d0('0x1f53')]||_0x303ab7['user'][_0x2bc5d0('0xfc0')]||_0x303ab7[_0x2bc5d0('0x21d9')][_0x2bc5d0('0x2501')],_0x15309a=!_0x303ab7[_0x2bc5d0('0x205c')][_0x2bc5d0('0x4e6')]['Account']['mandatoryDisposition'];_0x449bef[_0x2bc5d0('0xb9')]({'controller':_0x2bc5d0('0xcd5'),'controllerAs':'vm','templateUrl':_0x35815a,'parent':angular[_0x2bc5d0('0x1e73')](_0x34669b['body']),'clickOutsideToClose':_0x15309a,'escapeToClose':_0x15309a,'onRemoving':function(){const _0x79324f=_0x2bc5d0;_0x303ab7[_0x79324f('0x21d9')]&&_0x303ab7[_0x79324f('0x4e6')][_0x79324f('0x1e3c')]['mandatoryDisposition']&&!_0x34860a&&_0x5179b1[_0x79324f('0x21d9')][_0x79324f('0xb6f')]({'id':_0x303ab7[_0x79324f('0x21d9')]['id']})['$promise'][_0x79324f('0x151d')](function(_0x34468a){const _0x39497=_0x79324f;console[_0x39497('0x255')](_0x34468a);});},'locals':{'user':_0x303ab7[_0x2bc5d0('0x21d9')],'channel':_0x303ab7[_0x2bc5d0('0x205c')][_0x2bc5d0('0xd12')],'interaction':_0x303ab7[_0x2bc5d0('0x205c')]['interaction']}})[_0x2bc5d0('0x11bf')](function(_0x3fdbcf){const _0x414e4e=_0x2bc5d0;_0x303ab7[_0x414e4e('0x205c')][_0x414e4e('0xf06')]=Boolean(_0x3fdbcf),_0x3fdbcf&&_0x552fea['$parent'][_0x414e4e('0x25f5')][_0x414e4e('0x25f5')]['vm']['closeTab'](_0x303ab7[_0x414e4e('0x205c')]);});}function _0x4f4c65(_0x5a7b95,_0x488a30){const _0x3bec8b=_0x5d73ea;_0x303ab7[_0x3bec8b('0x205c')][_0x3bec8b('0x1b86')]=_0x488a30,_0x449bef[_0x3bec8b('0xb9')]({'controller':_0x3bec8b('0xeb7'),'controllerAs':'vm','templateUrl':_0x342084,'parent':angular['element'](_0x34669b[_0x3bec8b('0x1d2')]),'clickOutsideToClose':![],'locals':{'account':_0x303ab7[_0x3bec8b('0x2565')],'message':_0x303ab7[_0x3bec8b('0x205c')][_0x3bec8b('0x1b86')],'type':_0x5a7b95,'interaction':_0x303ab7['interaction']},'fullscreen':!![],'skipHide':Boolean(_0x303ab7[_0x3bec8b('0x205c')][_0x3bec8b('0x202c')])})['then'](function(_0xd984c1){const _0x35af0a=_0x3bec8b;if(_0xd984c1){if(_0xd984c1[_0x35af0a('0x1b86')]&&_0xd984c1[_0x35af0a('0x1b86')][_0x35af0a('0x2710')])_0x303ab7[_0x35af0a('0x20f1')]?_0x354a85[_0x35af0a('0x5ab')]({'id':_0x303ab7['draft']['id'],'channel':'mail','account':_0x303ab7[_0x35af0a('0x2565')],'message':_0xd984c1[_0x35af0a('0x1b86')],'contact':_0x303ab7[_0x35af0a('0xdde')],'interaction':_0x303ab7[_0x35af0a('0x4e6')]}):_0x354a85[_0x35af0a('0x23c1')]({'channel':'mail','account':_0x303ab7['account'],'message':_0xd984c1[_0x35af0a('0x1b86')],'contact':_0x303ab7[_0x35af0a('0xdde')],'interaction':_0x303ab7[_0x35af0a('0x4e6')]}),_0x303ab7[_0x35af0a('0x20f1')]=_0x354a85[_0x35af0a('0xa95')](_0x303ab7[_0x35af0a('0x205c')][_0x35af0a('0x4e6')]['id']);else{const _0x3fb78f=_0xd984c1;_0x3fb78f&&_0x1ad6e1(_0x3fb78f),_0x3fb78f[_0x35af0a('0x1da8')]&&_0x303ab7[_0x35af0a('0x4e6')]&&_0x303ab7['interaction']['id']&&(_0x3fb78f['Interaction']['id']=_0x303ab7['interaction']['id'],_0x5179b1['mailInteraction'][_0x35af0a('0x5ab')](_0x3fb78f[_0x35af0a('0x1da8')])[_0x35af0a('0x1549')]['then'](function(_0x11a970){const _0x142e16=_0x35af0a;if(_0x11a970&&_0x11a970['closed'])_0x303ab7['tab'][_0x142e16('0xf06')]=!![],_0x303ab7[_0x142e16('0x4e6')][_0x142e16('0x949')]=!![],_0x36b542();else _0x3fb78f[_0x142e16('0x1da8')][_0x142e16('0x1ba7')]!==null&&(_0x303ab7[_0x142e16('0x205c')][_0x142e16('0xf06')]=!![],_0x303ab7[_0x142e16('0x205c')][_0x142e16('0x4e6')]['substatus']=_0x3fb78f[_0x142e16('0x1da8')][_0x142e16('0x1ba7')],_0x552fea['$parent'][_0x142e16('0x25f5')][_0x142e16('0x25f5')]['vm'][_0x142e16('0x8b5')](_0x303ab7[_0x142e16('0x205c')]));})[_0x35af0a('0x151d')](function(_0x5c99c3){const _0x33b6be=_0x35af0a;console[_0x33b6be('0x255')](_0x5c99c3);}));}}})[_0x3bec8b('0xa9b')](function(){const _0x360674=_0x3bec8b;_0x303ab7[_0x360674('0x205c')][_0x360674('0x1990')]=![];});}function _0x3577ca(_0x5ea5ea,_0x4b40cd){const _0x35cce9=_0x5d73ea;if(_0x4b40cd['inReplyTo']){const _0xca03d7=_0x36f548()[_0x35cce9('0x1ad4')](_0x303ab7[_0x35cce9('0x8d6')][_0x35cce9('0x19b2')],{'messageId':_0x4b40cd[_0x35cce9('0x2202')]});if(_0xca03d7)_0x4f4c65(_0x5ea5ea,_0xca03d7);else return _0x5179b1[_0x35cce9('0x1b14')][_0x35cce9('0xbaa')]({'messageId':_0x4b40cd['inReplyTo']})[_0x35cce9('0x1549')][_0x35cce9('0x11bf')](function(_0x215a1b){const _0x3b3405=_0x35cce9;_0x4f4c65(_0x5ea5ea,_0x215a1b&&_0x215a1b[_0x3b3405('0x27d2')]?_0x215a1b[_0x3b3405('0x19b2')][0x0]:undefined);})['catch'](function(_0x32d23e){const _0x428e77=_0x35cce9;console[_0x428e77('0x255')](_0x32d23e),_0x4f4c65(_0x5ea5ea,undefined);});}else _0x4f4c65(_0x5ea5ea,_0x4b40cd);}function _0x934d8a(_0x17dfb0){const _0x1195b7=_0x5d73ea,_0x30f5e3={'to':[]};_0x30f5e3['to'][_0x1195b7('0x105d')](_0x303ab7[_0x1195b7('0xdde')]['fax']),_0x449bef[_0x1195b7('0xb9')]({'controller':_0x1195b7('0x38f'),'controllerAs':'vm','templateUrl':_0x14e130,'parent':angular['element'](_0x34669b[_0x1195b7('0x1d2')]),'clickOutsideToClose':![],'locals':{'account':_0x303ab7[_0x1195b7('0x2565')],'message':_0x30f5e3,'type':_0x17dfb0},'fullscreen':!![]})[_0x1195b7('0x11bf')](function(_0x254e1b){const _0x5cddd5=_0x1195b7;return _0x5179b1[_0x5cddd5('0x19dc')][_0x5cddd5('0x2481')]({'id':_0x303ab7[_0x5cddd5('0x2565')]['id']},_0x254e1b)[_0x5cddd5('0x1549')][_0x5cddd5('0x11bf')](function(_0x3b8386){const _0x2c01cf=_0x5cddd5;_0x488a16[_0x2c01cf('0x2693')]({'title':'Message\x20properly\x20sent!','msg':_0x2c01cf('0x122d')}),_0x552fea['$parent']['vm'][_0x2c01cf('0x226f')](_0x2c01cf('0x2104'),_0x3b8386);})[_0x5cddd5('0x151d')](function(_0x39d493){const _0x4b0809=_0x5cddd5;if(_0x39d493[_0x4b0809('0x4e8')]&&_0x39d493['data'][_0x4b0809('0x120f')]&&_0x39d493[_0x4b0809('0x4e8')][_0x4b0809('0x120f')][_0x4b0809('0x1e22')])for(let _0x32a50a=0x0;_0x32a50a<_0x39d493[_0x4b0809('0x4e8')][_0x4b0809('0x120f')][_0x4b0809('0x1e22')];_0x32a50a++){_0x488a16[_0x4b0809('0x255')]({'title':_0x39d493[_0x4b0809('0x4e8')][_0x4b0809('0x120f')][_0x32a50a]['type'],'msg':_0x39d493[_0x4b0809('0x4e8')]['errors'][_0x32a50a]['message']});}else _0x488a16[_0x4b0809('0x255')]({'title':'FAX:SEND','msg':_0x39d493['data']?JSON[_0x4b0809('0x3e')](_0x39d493[_0x4b0809('0x4e8')]):_0x39d493[_0x4b0809('0x1b86')]||_0x39d493[_0x4b0809('0xaab')]()});});});}function _0x429342(_0x1838ed,_0x2ffc58){const _0x274f06=_0x5d73ea;_0x449bef[_0x274f06('0xb9')]({'controller':_0x274f06('0x1042'),'controllerAs':'vm','templateUrl':_0x495d17,'parent':angular[_0x274f06('0x1e73')](_0x34669b[_0x274f06('0x1d2')]),'clickOutsideToClose':![],'locals':{'account':_0x303ab7[_0x274f06('0x2565')],'message':_0x2ffc58,'type':_0x1838ed},'fullscreen':!![],'skipHide':Boolean(_0x303ab7[_0x274f06('0x205c')][_0x274f06('0x202c')])})[_0x274f06('0x11bf')](function(_0x3fcb6b){_0x3fcb6b&&_0x1ad6e1(_0x3fcb6b);});}function _0x903df5(_0x5d3299,_0x19c117){const _0x24366e=_0x5d73ea;_0x449bef[_0x24366e('0xb9')]({'controller':_0x24366e('0x94a'),'controllerAs':'vm','templateUrl':_0x4e375f,'parent':angular['element'](_0x34669b[_0x24366e('0x1d2')]),'clickOutsideToClose':![],'locals':{'account':_0x303ab7[_0x24366e('0x2565')],'message':_0x19c117,'type':_0x5d3299},'fullscreen':!![],'skipHide':Boolean(_0x303ab7[_0x24366e('0x205c')]['spy'])})[_0x24366e('0x11bf')](function(_0x1579ff){_0x1579ff&&_0x1ad6e1(_0x1579ff);});}function _0x161a91(){const _0x393674=_0x5d73ea;if(_0x303ab7['interaction']){const _0x48839f=_0x36f548()[_0x393674('0x1d39')](_0x303ab7[_0x393674('0x8d6')]['rows'],function(_0xe96290){const _0x161b57=_0x393674;return _0xe96290[_0x161b57('0x7d5')]==='in';});_0x48839f?_0x449bef[_0x393674('0xb9')]({'controller':'TransferMessageDialogController','controllerAs':'vm','templateUrl':_0x1c31b6,'parent':angular[_0x393674('0x1e73')](_0x34669b['body']),'clickOutsideToClose':![],'locals':{'account':_0x303ab7[_0x393674('0x2565')],'interaction':_0x303ab7[_0x393674('0x4e6')],'message':_0x48839f,'channel':_0x303ab7[_0x393674('0x205c')]['channel']}})[_0x393674('0x11bf')](function(_0x41d4e6){const _0x5712d6=_0x393674;_0x303ab7['tab'][_0x5712d6('0xf06')]=Boolean(_0x41d4e6),_0x41d4e6&&_0x552fea[_0x5712d6('0x25f5')]['$parent']['$parent']['vm'][_0x5712d6('0x8b5')](_0x303ab7[_0x5712d6('0x205c')]);}):_0x488a16[_0x393674('0x255')]({'title':'Invalid\x20transfer','msg':_0x393674('0x136a')});}}function _0x4012f4(_0x18a61e){const _0x172f70=_0x5d73ea,_0xf29cce={},_0x2e3604=_0x303ab7[_0x172f70('0x205c')][_0x172f70('0xd12')]==='chat'?_0x172f70('0x2346'):_0x36f548()[_0x172f70('0x22c2')](_0x303ab7[_0x172f70('0x205c')][_0x172f70('0xd12')])+'AccountId';return _0xf29cce[_0x2e3604]=_0x303ab7[_0x172f70('0x4e6')][_0x2e3604][_0x172f70('0xaab')](),_0xf29cce[_0x36f548()[_0x172f70('0x22c2')](_0x303ab7[_0x172f70('0x205c')][_0x172f70('0xd12')])+_0x172f70('0x1f4d')]=_0x303ab7[_0x172f70('0x4e6')]['id'],(_0x303ab7[_0x172f70('0x205c')][_0x172f70('0xd12')]===_0x172f70('0x4df')||_0x303ab7[_0x172f70('0x205c')][_0x172f70('0xd12')]===_0x172f70('0xe7c'))&&(_0xf29cce[_0x172f70('0x1546')]=_0x303ab7[_0x172f70('0x4e6')][_0x172f70('0x1546')]),_0x18a61e&&(_0xf29cce[_0x172f70('0x2342')]=_0x303ab7['user']['id'],_0xf29cce[_0x172f70('0x23f1')]=_0x303ab7[_0x172f70('0x4e6')][_0x172f70('0x23f1')],_0xf29cce[_0x172f70('0x1d2')]=_0x18a61e),_0xf29cce;}function _0x3e98e4(_0xa36da9){const _0x52ab7a=_0x5d73ea;if(_0xa36da9['size']>_0x578a0a)return _0x488a16[_0x52ab7a('0x255')]({'title':_0x52ab7a('0xc56'),'msg':_0x52ab7a('0x686')+_0x4895ed+'MB'}),![];return!![];}function _0xbfd118(_0x560cd5,_0x473c4a){const _0x462a7c=_0x5d73ea,_0xae62e7=JSON['parse'](_0x473c4a);let _0x100eb8=_0xae62e7[_0x462a7c('0x1909')];_0x303ab7[_0x462a7c('0x205c')][_0x462a7c('0xd12')]==='chat'&&(_0x100eb8=_0x462a7c('0xf5e')+(_0x303ab7[_0x462a7c('0x2565')][_0x462a7c('0x17f2')]?_0x303ab7[_0x462a7c('0x2565')][_0x462a7c('0x17f2')]:_0x3f60d8['protocol']()+_0x462a7c('0x16a1')+_0x3f60d8[_0x462a7c('0x14ec')]())+'/api/chat/interactions/'+_0x303ab7[_0x462a7c('0x4e6')]['id']+'/attachment_download?attachId='+_0xae62e7['id']+_0x462a7c('0x232f')+_0x303ab7[_0x462a7c('0x2565')][_0x462a7c('0xa6e')]+_0x462a7c('0x1c57')+_0xae62e7[_0x462a7c('0x1909')]+'
    '),_0x1ad6e1({'body':_0x100eb8,'AttachmentId':_0xae62e7['id']});}function _0x1d4482(){const _0x10a117=_0x5d73ea;_0x303ab7[_0x10a117('0x13b8')][_0x10a117('0x2414')]['opts'][_0x10a117('0x1f61')]={'X-Requested-With':'XMLHttpRequest','Authorization':_0x10a117('0x2723')+_0x14c820['get'](_0x10a117('0xc2b'))},_0x303ab7['ngFlow'][_0x10a117('0x2414')][_0x10a117('0x1d01')]();}function _0x199586(_0x5762c8,_0x4bd4ee){const _0x3bf773=_0x5d73ea;if(_0x5762c8&&_0x5762c8[_0x3bf773('0x172e')]===0xd&&_0x5762c8[_0x3bf773('0x1b58')])return;if(_0x5762c8&&_0x5762c8['keyCode']!==0xd)return;if(_0x4bd4ee['trim']()==='')return;_0x1ad6e1(_0x4012f4(_0x4bd4ee[_0x3bf773('0x814')](/\n$/,'')));}function _0x166995(){const _0x14c53c=_0x5d73ea;_0x303ab7[_0x14c53c('0x205c')]['channel']!==_0x14c53c('0x2030')&&_0x3716c5(function(){const _0xda4985=_0x14c53c,_0x3f2fbf=angular[_0xda4985('0x1e73')](_0x34669b[_0xda4985('0x1ad4')]('md-content[name*=\x27interaction-content-'+_0x303ab7[_0xda4985('0x205c')]['id']+'\x27]'));_0x3f2fbf&&_0x3f2fbf[0x0]&&(_0x3f2fbf[0x0][_0xda4985('0x1c70')]=_0x3f2fbf[0x0]['scrollHeight']);},0x0);}function _0x5f53d4(_0x1aaf16){const _0x45105e=_0x5d73ea,_0x2c294a=_0x45105e('0x25fb');if(_0x1aaf16){if(_0x1aaf16[_0x45105e('0x7d5')]==='in')return _0x1aaf16[_0x45105e('0xf10')]?_0x1aaf16[_0x45105e('0xf10')][_0x45105e('0x13a0')]||_0x45105e('0x286'):_0x2c294a;else{if(_0x1aaf16[_0x45105e('0x2342')])return _0x303ab7[_0x45105e('0x2e7')]?_0x303ab7[_0x45105e('0x2e7')][_0x1aaf16[_0x45105e('0x2342')]]:_0x2c294a;}return _0x45105e('0x1b1d')||0x0;}}function _0x4f79e3(_0x36e155,_0x306624){const _0x88a4c7=_0x5d73ea;_0x303ab7[_0x88a4c7('0x205c')][_0x88a4c7('0xd12')]&&_0x36e155['id']&&_0x5179b1[_0x303ab7[_0x88a4c7('0x205c')][_0x88a4c7('0xd12')]+'Message'][_0x88a4c7('0x149c')]({'id':_0x36e155['id'],'attachments':_0x306624})['$promise']['then'](function(_0x122191){const _0x4719b8=_0x88a4c7,_0x4c178a=[_0x122191[_0x4719b8('0x1e94')]];let _0x37aa5a=_0x4719b8('0x149c');const _0x2c070c=new Blob(_0x4c178a,{'type':_0x122191['type']});_0x37aa5a=_0x303ab7[_0x4719b8('0x205c')][_0x4719b8('0xd12')]+_0x4719b8('0x1ccc')+_0x36e155['id']+_0x4719b8('0x59a');const _0x362e98=window[_0x4719b8('0xb54')][_0x4719b8('0x2773')]('a');_0x362e98['setAttribute'](_0x4719b8('0xead'),URL[_0x4719b8('0x44b')](_0x2c070c)),_0x362e98[_0x4719b8('0x1e1b')](_0x4719b8('0x149c'),_0x37aa5a),document[_0x4719b8('0x1d2')]['appendChild'](_0x362e98),_0x362e98[_0x4719b8('0x1371')]();})[_0x88a4c7('0x151d')](function(_0x4026a9){const _0x417656=_0x88a4c7;if(_0x4026a9[_0x417656('0x4e8')]&&_0x4026a9[_0x417656('0x4e8')]['errors']&&_0x4026a9['data'][_0x417656('0x120f')]['length'])for(let _0x193d6d=0x0;_0x193d6d<_0x4026a9[_0x417656('0x4e8')]['errors'][_0x417656('0x1e22')];_0x193d6d+=0x1){_0x488a16[_0x417656('0x255')]({'title':_0x4026a9[_0x417656('0x4e8')][_0x417656('0x120f')][_0x193d6d][_0x417656('0x19fd')],'msg':_0x4026a9[_0x417656('0x4e8')][_0x417656('0x120f')][_0x193d6d]['message']});}else _0x488a16[_0x417656('0x255')]({'title':_0x4026a9['status']?_0x417656('0x574')+_0x4026a9[_0x417656('0xff9')]+_0x417656('0xb0b')+_0x4026a9['statusText']:_0x417656('0xb0e'),'msg':_0x4026a9[_0x417656('0x4e8')]?JSON[_0x417656('0x3e')](_0x4026a9[_0x417656('0x4e8')][_0x417656('0x1b86')]):_0x4026a9[_0x417656('0xaab')]()});});}function _0x3d87ba(_0x164122,_0x2e0681){const _0x17272c=_0x5d73ea;_0x303ab7[_0x17272c('0x205c')][_0x17272c('0xd12')]&&_0x164122['id']&&_0x5179b1[_0x303ab7[_0x17272c('0x205c')]['channel']+_0x17272c('0x1da8')][_0x17272c('0x149c')]({'id':_0x164122['id'],'attachments':_0x2e0681})[_0x17272c('0x1549')][_0x17272c('0x11bf')](function(_0x1fd6d0){const _0x2244c1=_0x17272c,_0x78abc4=[_0x1fd6d0['buffer']],_0x4df50a=_0x303ab7[_0x2244c1('0x205c')][_0x2244c1('0xd12')]+_0x2244c1('0x751')+_0x164122['id']+_0x2244c1('0x4a7'),_0x243b0b=new Blob(_0x78abc4,{'type':_0x1fd6d0[_0x2244c1('0x19fd')]}),_0x41e072=window[_0x2244c1('0xb54')][_0x2244c1('0x2773')]('a');_0x41e072[_0x2244c1('0x1e1b')](_0x2244c1('0xead'),URL[_0x2244c1('0x44b')](_0x243b0b)),_0x41e072[_0x2244c1('0x1e1b')](_0x2244c1('0x149c'),_0x4df50a),document['body']['appendChild'](_0x41e072),_0x41e072[_0x2244c1('0x1371')]();})['catch'](function(_0x2e1af8){const _0xce6a69=_0x17272c;if(_0x2e1af8[_0xce6a69('0x4e8')]&&_0x2e1af8[_0xce6a69('0x4e8')][_0xce6a69('0x120f')]&&_0x2e1af8['data'][_0xce6a69('0x120f')][_0xce6a69('0x1e22')])for(let _0x58c0e1=0x0;_0x58c0e1<_0x2e1af8['data'][_0xce6a69('0x120f')][_0xce6a69('0x1e22')];_0x58c0e1+=0x1){_0x488a16[_0xce6a69('0x255')]({'title':_0x2e1af8[_0xce6a69('0x4e8')][_0xce6a69('0x120f')][_0x58c0e1][_0xce6a69('0x19fd')],'msg':_0x2e1af8[_0xce6a69('0x4e8')][_0xce6a69('0x120f')][_0x58c0e1]['message']});}else _0x488a16[_0xce6a69('0x255')]({'title':_0x2e1af8[_0xce6a69('0xff9')]?'API:'+_0x2e1af8[_0xce6a69('0xff9')]+_0xce6a69('0xb0b')+_0x2e1af8[_0xce6a69('0x212f')]:'api.inteactionMessage.get','msg':_0x2e1af8[_0xce6a69('0x4e8')]?JSON[_0xce6a69('0x3e')](_0x2e1af8[_0xce6a69('0x4e8')][_0xce6a69('0x1b86')]):_0x2e1af8[_0xce6a69('0xaab')]()});});}function _0x1ad6e1(_0x2dd1bd){const _0x2b206c=_0x5d73ea;if(_0x2dd1bd)return _0x2dd1bd[_0x303ab7['tab'][_0x2b206c('0xd12')]===_0x2b206c('0x1800')?'ChatWebsiteId':_0x36f548()[_0x2b206c('0x22c2')](_0x303ab7[_0x2b206c('0x205c')]['channel'])+_0x2b206c('0xa4e')]=_0x303ab7['interaction'][_0x303ab7[_0x2b206c('0x205c')][_0x2b206c('0xd12')]===_0x2b206c('0x1800')?_0x2b206c('0x2346'):_0x36f548()[_0x2b206c('0x22c2')](_0x303ab7[_0x2b206c('0x205c')]['channel'])+_0x2b206c('0xa4e')],_0x2dd1bd[_0x36f548()[_0x2b206c('0x22c2')](_0x303ab7[_0x2b206c('0x205c')]['channel'])+_0x2b206c('0x1f4d')]=_0x303ab7[_0x2b206c('0x4e6')]['id'],_0x2dd1bd[_0x2b206c('0x2342')]=_0x303ab7[_0x2b206c('0x21d9')]['id'],_0x2dd1bd[_0x2b206c('0x23f1')]=_0x303ab7[_0x2b206c('0x4e6')][_0x2b206c('0x23f1')],_0x2dd1bd[_0x2b206c('0x7d5')]='out',_0x2dd1bd[_0x2b206c('0xdaa')]=Boolean(_0x303ab7['tab'][_0x2b206c('0x202c')]||_0x2dd1bd['secret']),_0x5179b1[_0x303ab7[_0x2b206c('0x205c')][_0x2b206c('0xd12')]+_0x2b206c('0xbc9')][_0x2b206c('0x259')](_0x2dd1bd)['$promise'][_0x2b206c('0x11bf')](function(_0x561c0a){const _0x16ec67=_0x2b206c;if(_0x561c0a&&_0x561c0a['id']){if(!_0x36f548()['isEmpty'](_0x2dd1bd[_0x16ec67('0x103')])){const _0x37bb28=[];for(let _0x4ebe4f=0x0;_0x4ebe4f<_0x2dd1bd[_0x16ec67('0x103')][_0x16ec67('0x1e22')];_0x4ebe4f++){const _0x52a770=_0x2dd1bd['attachments'][_0x4ebe4f];_0x52a770[_0x16ec67('0x2631')]?_0x37bb28['push'](_0x5179b1[_0x16ec67('0x2811')][_0x16ec67('0x208b')]({'id':_0x52a770['id']},{'name':_0x52a770['name'],'basename':_0x52a770[_0x16ec67('0x11da')],'type':_0x52a770['type'],'MailMessageId':_0x561c0a['id']})[_0x16ec67('0x1549')]):_0x37bb28[_0x16ec67('0x105d')](_0x5179b1[_0x16ec67('0x2811')][_0x16ec67('0x5ab')]({'id':_0x52a770['id']},{'MailMessageId':_0x561c0a['id']})['$promise']);}return _0x1cc575[_0x16ec67('0x7c')](_0x37bb28);}}})[_0x2b206c('0x151d')](function(_0x39db8f){const _0x2d8873=_0x2b206c;_0x488a16['error']({'title':_0x39db8f[_0x2d8873('0xff9')]?_0x2d8873('0x574')+_0x39db8f[_0x2d8873('0xff9')]+'\x20-\x20'+_0x39db8f[_0x2d8873('0x212f')]:_0x2d8873('0x18ee'),'msg':_0x39db8f[_0x2d8873('0x4e8')]?JSON[_0x2d8873('0x3e')](_0x39db8f[_0x2d8873('0x4e8')]):_0x39db8f['toString']()});})[_0x2b206c('0xa9b')](function(){const _0x4e9132=_0x2b206c;_0x303ab7[_0x4e9132('0x205c')][_0x4e9132('0xd12')]===_0x4e9132('0x2030')&&(_0x2dd1bd[_0x4e9132('0x1990')]&&(_0x354a85['removeByInteraction'](_0x303ab7['interaction']['id']),_0x303ab7['draft']=null)),_0x303ab7[_0x4e9132('0x205c')][_0x4e9132('0x57f')]='',_0x166995();});}function _0x48f013(_0xb139d){const _0x58f741=_0x5d73ea;_0x303ab7['tab'][_0x58f741('0xd12')]&&_0x303ab7['interaction']&&_0x303ab7[_0x58f741('0x4e6')]['id']&&_0x5179b1[_0x303ab7[_0x58f741('0x205c')][_0x58f741('0xd12')]+_0x58f741('0x1da8')][_0x58f741('0x5ab')]({'id':_0x303ab7['interaction']['id'],'substatus':_0xb139d})[_0x58f741('0x1549')]['catch'](function(_0x173a57){const _0x252e9d=_0x58f741;console[_0x252e9d('0x255')](_0x173a57);});}function _0x22845a(){const _0x4613db=_0x5d73ea;if(_0x303ab7[_0x4613db('0x205c')]['channel']&&_0x303ab7[_0x4613db('0x4e6')]&&_0x303ab7[_0x4613db('0x4e6')]['id']){if(_0x303ab7[_0x4613db('0x1d61')]['length'])for(let _0x4f4546=0x0;_0x4f4546<_0x303ab7[_0x4613db('0x1d61')][_0x4613db('0x1e22')];_0x4f4546+=0x1){_0x5179b1[_0x303ab7[_0x4613db('0x205c')][_0x4613db('0xd12')]+_0x4613db('0xbc9')][_0x4613db('0x5ab')]({'id':_0x303ab7['acceptedMessages'][_0x4f4546],'read':![],'UserId':null});}else for(let _0x619ce3=0x0;_0x619ce3<_0x303ab7[_0x4613db('0x8d6')][_0x4613db('0x19b2')][_0x4613db('0x1e22')];_0x619ce3+=0x1){if(_0x303ab7[_0x4613db('0x8d6')][_0x4613db('0x19b2')][_0x619ce3][_0x4613db('0x7d5')]==='in'){_0x303ab7[_0x4613db('0x8d6')][_0x4613db('0x19b2')][_0x619ce3][_0x4613db('0x2342')]===_0x303ab7[_0x4613db('0x21d9')]['id']?_0x5179b1[_0x303ab7['tab'][_0x4613db('0xd12')]+_0x4613db('0xbc9')][_0x4613db('0x5ab')]({'id':_0x303ab7[_0x4613db('0x8d6')][_0x4613db('0x19b2')][_0x619ce3]['id'],'read':![],'UserId':null}):_0x488a16[_0x4613db('0x255')]({'title':_0x4613db('0x24da'),'msg':_0x4613db('0x21fa')});break;}}}_0x303ab7['tab'][_0x4613db('0xf06')]=!![],_0x552fea[_0x4613db('0x25f5')][_0x4613db('0x25f5')][_0x4613db('0x25f5')]['vm'][_0x4613db('0x8b5')](_0x303ab7[_0x4613db('0x205c')]);}function _0x230e00(_0x114930){const _0x51c89e=_0x5d73ea;if(_0x114930&&_0x303ab7['interaction']['id']!==_0x114930['id'])return;_0x114930[_0x51c89e('0x949')]&&(_0x303ab7[_0x51c89e('0x205c')][_0x51c89e('0xf06')]=!![]),_0x36f548()[_0x51c89e('0x47b')](_0x303ab7[_0x51c89e('0x4e6')],_0x114930);}function _0x39e0a0(_0x20d759){const _0x3c7a02=_0x5d73ea;if(_0x20d759&&_0x303ab7[_0x3c7a02('0x4e6')]['id']!=_0x20d759[_0x36f548()[_0x3c7a02('0x22c2')](_0x303ab7[_0x3c7a02('0x205c')][_0x3c7a02('0xd12')])+_0x3c7a02('0x1f4d')])return;let _0x3719ff=![];_0x303ab7[_0x3c7a02('0x8d6')]?_0x3719ff=_0x36f548()[_0x3c7a02('0x1ad4')](_0x303ab7['messages']['rows'],{'id':_0x20d759['id']}):_0x303ab7[_0x3c7a02('0x8d6')]={'rows':[],'count':0x0},_0x3719ff?_0x36f548()[_0x3c7a02('0x47b')](_0x3719ff,_0x20d759):(_0x303ab7['tab'][_0x3c7a02('0xd12')]===_0x3c7a02('0x2030')?_0x303ab7[_0x3c7a02('0x8d6')]['rows']['unshift'](_0x20d759):_0x303ab7[_0x3c7a02('0x8d6')][_0x3c7a02('0x19b2')][_0x3c7a02('0x105d')](_0x20d759),_0x166995());}function _0x1b655d(_0x415c69){const _0x2da793=_0x5d73ea;switch(_0x415c69){case _0x2da793('0x1800'):return'icon-hangouts';case'mail':return'icon-email';case _0x2da793('0x4df'):return'icon-message-text';case _0x2da793('0xe7c'):return _0x2da793('0x2536');case _0x2da793('0xb18'):return _0x2da793('0x1817');case _0x2da793('0x2104'):return _0x2da793('0x1994');default:return'icon-hangouts';}}function _0x56c157(_0x15bfab){const _0x31d42d=_0x5d73ea;switch(_0x15bfab){case _0x31d42d('0x1800'):return _0x31d42d('0x1017');case _0x31d42d('0x2030'):return _0x31d42d('0x2347');case _0x31d42d('0x4df'):return'orange';case _0x31d42d('0xb18'):return'amber-A200';case _0x31d42d('0x2104'):return _0x31d42d('0x1105');case _0x31d42d('0xe7c'):return _0x31d42d('0x457');default:return _0x31d42d('0x2584');}}function _0xc280e0(_0x3ab5e0){const _0x226625=_0x5d73ea;let _0x3e01de='';if(_0x3ab5e0[_0x226625('0x1a46')])_0x3e01de=_0x226625('0x2104');else{if(_0x3ab5e0[_0x226625('0x2863')])_0x3e01de=_0x226625('0xb18');else{if(_0x3ab5e0[_0x226625('0x80b')])_0x3e01de=_0x226625('0x4df');else{if(_0x3ab5e0[_0x226625('0x146a')])_0x3e01de=_0x226625('0xe7c');else{if(_0x3ab5e0[_0x226625('0x2294')])_0x3e01de=_0x226625('0x2030');else{if(_0x3ab5e0[_0x226625('0x2346')])_0x3e01de=_0x226625('0x1800');else _0x3ab5e0[_0x226625('0x745')]&&(_0x3e01de=_0x226625('0x1bc3'));}}}}}return _0x56c157(_0x3e01de);}function _0x4359cb(_0x16bd91){const _0x41c67a=_0x5d73ea;if(_0x16bd91[_0x41c67a('0xdaa')]&&_0x303ab7[_0x41c67a('0x21d9')]['id']!=_0x16bd91[_0x41c67a('0x2342')])return'in';switch(_0x303ab7[_0x41c67a('0x23e1')][_0x41c67a('0x288b')]){case _0x41c67a('0x1d7e'):if(_0x16bd91[_0x41c67a('0x7d5')]=='in')return _0x16bd91[_0x41c67a('0x7d5')];return'out-left-aligned';case _0x41c67a('0xdd5'):if(_0x16bd91['direction']=='in')return _0x41c67a('0x1c30');return _0x16bd91[_0x41c67a('0x7d5')];default:return _0x16bd91[_0x41c67a('0x7d5')];}}function _0x9ece04(){const _0x246d1f=_0x5d73ea;_0x303ab7[_0x246d1f('0x328')]=!_0x303ab7[_0x246d1f('0x328')];}function _0x583183(_0x2a1d2b){const _0x1030e9=_0x5d73ea;return _0x5179b1[_0x1030e9('0x2811')]['get']({'MailMessageId':_0x2a1d2b['id']})[_0x1030e9('0x1549')][_0x1030e9('0x11bf')](function(_0xc97f03){const _0x30662b=_0x1030e9;_0xc97f03&&_0xc97f03[_0x30662b('0x19b2')]&&(_0x2a1d2b[_0x30662b('0x103')]=_0xc97f03[_0x30662b('0x19b2')]);})[_0x1030e9('0x151d')](function(_0x55b85f){const _0x2572ec=_0x1030e9;_0x488a16['error']({'title':_0x55b85f[_0x2572ec('0xff9')]?_0x2572ec('0x574')+_0x55b85f['status']+'\x20-\x20'+_0x55b85f[_0x2572ec('0x212f')]:_0x2572ec('0x1950'),'msg':_0x55b85f[_0x2572ec('0x4e8')]?JSON[_0x2572ec('0x3e')](_0x55b85f[_0x2572ec('0x4e8')]):_0x55b85f[_0x2572ec('0xaab')]()});});}function _0x5ada43(_0x1f9cd7){const _0x1e2fa2=_0x5d73ea;return _0x5179b1[_0x1e2fa2('0x2811')][_0x1e2fa2('0x149c')]({'id':_0x1f9cd7['id']})['$promise'][_0x1e2fa2('0x11bf')](function(_0x428cda){const _0x5cccea=_0x1e2fa2;if(_0x428cda){const _0x4199ad=new Blob([_0x428cda[_0x5cccea('0x1e94')]],{'type':_0x428cda[_0x5cccea('0x19fd')]}),_0x20c648=document['createElement']('a'),_0x4f7ad7=window['URL'][_0x5cccea('0x44b')](_0x4199ad);_0x20c648[_0x5cccea('0xead')]=_0x4f7ad7,_0x20c648[_0x5cccea('0xc7a')]='_self',_0x20c648['download']=_0x1f9cd7[_0x5cccea('0x1909')],document[_0x5cccea('0x1d2')][_0x5cccea('0x131c')](_0x20c648),_0x20c648[_0x5cccea('0x1371')](),setTimeout(function(){const _0xcbeb62=_0x5cccea;document[_0xcbeb62('0x1d2')][_0xcbeb62('0xb8e')](_0x20c648),window[_0xcbeb62('0xc29')][_0xcbeb62('0x83c')](_0x4f7ad7);},0x64);}})[_0x1e2fa2('0x151d')](function(_0x5ccede){const _0x13e8a6=_0x1e2fa2;_0x488a16[_0x13e8a6('0x255')]({'title':_0x5ccede[_0x13e8a6('0xff9')]?_0x13e8a6('0x574')+_0x5ccede['status']+'\x20-\x20'+_0x5ccede[_0x13e8a6('0x212f')]:_0x13e8a6('0x1950'),'msg':_0x5ccede[_0x13e8a6('0x4e8')]?JSON[_0x13e8a6('0x3e')](_0x5ccede[_0x13e8a6('0x4e8')]):_0x5ccede['toString']()});});}function _0x429a56(){const _0x2ab638=_0x5d73ea;if(!_0x303ab7[_0x2ab638('0x205c')]['spy']&&!_0x303ab7['interaction'][_0x2ab638('0x949')])for(let _0x235e7d=0x0;_0x235e7d<_0x303ab7[_0x2ab638('0x8d6')][_0x2ab638('0x19b2')][_0x2ab638('0x1e22')];_0x235e7d+=0x1){_0x303ab7[_0x2ab638('0x8d6')][_0x2ab638('0x19b2')][_0x235e7d][_0x2ab638('0x7d5')]==='in'&&!_0x303ab7[_0x2ab638('0x8d6')]['rows'][_0x235e7d][_0x2ab638('0x1601')]&&(_0x5179b1[_0x303ab7['tab'][_0x2ab638('0xd12')]+_0x2ab638('0xbc9')][_0x2ab638('0x15c7')]({'id':_0x303ab7[_0x2ab638('0x8d6')]['rows'][_0x235e7d]['id'],'UserId':_0x303ab7[_0x2ab638('0x21d9')]['id']}),_0x303ab7[_0x2ab638('0x1d61')][_0x2ab638('0x105d')](_0x303ab7['messages'][_0x2ab638('0x19b2')][_0x235e7d]['id']));}}function _0x405950(_0x5356cb){const _0x562c84=_0x5d73ea;if(!_0x5356cb[_0x562c84('0x107a')])return'('+_0x406827[_0x562c84('0x10c2')](_0x562c84('0x104b'))+')';const _0x2a757d=_0x36f548()['compact']([_0x5356cb[_0x562c84('0x107a')],_0x5356cb[_0x562c84('0x815')],_0x5356cb['thirdDisposition']]);return'('+_0x2a757d['join'](_0x562c84('0xb0b'))+')';}function _0x4a24dc(_0x4649fe){const _0x290352=_0x5d73ea;_0x4649fe&&_0x4649fe[_0x290352('0x27d2')]&&_0x4649fe[_0x290352('0x19b2')][_0x290352('0x1e22')]&&(_0x303ab7[_0x290352('0x496')]=_0x36f548()['concat'](_0x303ab7[_0x290352('0x496')],_0x4649fe[_0x290352('0x19b2')]),_0x303ab7[_0x290352('0x496')][_0x290352('0x1f88')](function(_0xb4bc78){const _0x487ab4=_0x290352;_0xb4bc78[_0x487ab4('0x27ca')]=_0x405950(_0xb4bc78);}));}function _0x27d965(_0x1eb62e){const _0x5d9f8b=_0x5d73ea;if(_0x1eb62e&&_0x1eb62e['id']){for(let _0x27b6e8=0x0;_0x27b6e8<_0x303ab7[_0x5d9f8b('0x27c2')]['length'];_0x27b6e8++){_0x5179b1[_0x303ab7[_0x5d9f8b('0x27c2')][_0x27b6e8]+'Interaction'][_0x5d9f8b('0xbaa')]({'ContactId':_0x1eb62e['id'],'journey':!![],'includeAll':!![]})['$promise']['then'](_0x4a24dc);}_0x5179b1[_0x5d9f8b('0xdd8')][_0x5d9f8b('0xbaa')]({'ContactId':_0x1eb62e['id'],'includeAll':!![]})[_0x5d9f8b('0x1549')][_0x5d9f8b('0x11bf')](_0x4a24dc);}}function _0x558296(_0x286a7e){const _0x223fa4=_0x5d73ea;return _0x286a7e?String(_0x286a7e)[_0x223fa4('0x814')](/<[^>]+>/gm,''):'';}function _0x65a78c(_0x2d22d3){const _0x71a968=_0x5d73ea;switch(_0x303ab7[_0x71a968('0x205c')][_0x71a968('0xd12')]){case _0x71a968('0x2030'):_0x303ab7[_0x71a968('0x20f1')]['content'][_0x71a968('0x584')]=_0x2d22d3?_0x36f548()[_0x71a968('0x1ad4')](_0x303ab7[_0x71a968('0x4e6')]['Messages'],['id',_0x2d22d3]):_0x303ab7[_0x71a968('0x4e6')][_0x71a968('0x3ad')][_0x303ab7[_0x71a968('0x4e6')][_0x71a968('0x3ad')][_0x71a968('0x1e22')]-0x1],_0x4f4c65(_0x303ab7[_0x71a968('0x20f1')][_0x71a968('0x19fd')],_0x303ab7[_0x71a968('0x20f1')][_0x71a968('0x252a')]);break;case'fax':break;case'openchannel':break;case _0x71a968('0x4df'):break;case'whatsapp':break;}}_0x552fea[_0x5d73ea('0x12d8')](_0x5d73ea('0x4f7'),function(){const _0x207580=_0x5d73ea;_0x3b8c46['removeAllListeners'](_0x303ab7['tab'][_0x207580('0xd12')]+_0x207580('0xda7')),_0x3b8c46[_0x207580('0x1b2e')](_0x303ab7[_0x207580('0x205c')][_0x207580('0xd12')]+_0x207580('0x17b9')),_0x3b8c46[_0x207580('0x1b2e')](_0x303ab7[_0x207580('0x205c')][_0x207580('0xd12')]+'Interaction:save'),_0x3b8c46[_0x207580('0x1b2e')](_0x303ab7[_0x207580('0x205c')][_0x207580('0xd12')]+_0x207580('0x1f7')),_0x3b8c46[_0x207580('0x1b2e')](_0x207580('0x1b31')+_0x303ab7[_0x207580('0x205c')][_0x207580('0xd12')]+_0x207580('0x54a')),_0x3b8c46[_0x207580('0x1b2e')]('user_has_'+_0x303ab7['tab'][_0x207580('0xd12')]+_0x207580('0x2852'));});function _0x1ca80b(_0x16a2b3){const _0x4e5315=_0x5d73ea,_0x524e74={'id':_0x16a2b3['id']};return _0x5179b1[_0x4e5315('0x6ed')][_0x4e5315('0xabd')](_0x524e74)[_0x4e5315('0x1549')][_0x4e5315('0x11bf')](function(){const _0x379f0e=_0x4e5315;_0x488a16['success']({'title':_0x379f0e('0x1a00'),'msg':_0x379f0e('0x12d6')});})[_0x4e5315('0x151d')](function(){const _0x566111=_0x4e5315;_0x488a16[_0x566111('0x255')]({'title':_0x566111('0x1a00'),'msg':'Unable\x20to\x20create\x20session!'});});}}function _0x32d639(_0xd02c6a){return{'scope':{'ngBindHtmlUnsafe':'='},'template':'','link':function(_0x3f4d6a){const _0x582bf7=a0_0xaf0c;function _0x356bf7(){const _0x49bf1f=a0_0xaf0c,_0x402614=_0x49bf1f('0x154b')+Math[_0x49bf1f('0x1008')](Math[_0x49bf1f('0x459')]()*0x270f+0x1);return _0x49bf1f('0x17fd')+_0x402614+_0x49bf1f('0x46f')+_0x402614+_0x49bf1f('0x1702');}_0x3f4d6a[_0x582bf7('0x2407')]=function(){const _0x403c8b=_0x582bf7,_0x268d64=_0x36f548()['replace'](_0x3f4d6a[_0x403c8b('0x47')],'_0x3a5e2f)return _0x169968[_0x5e6a10('0x255')]({'title':'File\x20too\x20big','msg':_0x5e6a10('0x686')+_0x9ce757+'MB'}),![];return!![];}function _0x49a4c0(_0x4f1af4,_0x163cdf){const _0x3126d7=_0x3984d2;try{_0x163cdf=JSON[_0x3126d7('0x1850')](_0x163cdf),_0x163cdf[_0x3126d7('0x12dd')]=_0x4f1af4[_0x3126d7('0x12dd')],_0x2ea926['message'][_0x3126d7('0x103')]['push'](_0x163cdf);}catch(_0x130737){console[_0x3126d7('0x255')](_0x130737);}}function _0x430a09(_0x5ac427){const _0x5acd68=_0x3984d2;let _0x1b9550='';return _0x5ac427['firstName']&&_0x5ac427[_0x5acd68('0x13a0')]!==_0x5ac427[_0x5acd68('0x2104')]&&(_0x1b9550+=_0x5ac427[_0x5acd68('0x13a0')]+'\x20'),_0x5ac427[_0x5acd68('0xcf3')]&&_0x5ac427[_0x5acd68('0xcf3')]!==_0x5ac427['fax']&&(_0x1b9550+=_0x5ac427[_0x5acd68('0xcf3')]+'\x20'),_0x1b9550+='<'+_0x5ac427[_0x5acd68('0x2104')]+'>';}function _0x4b11ae(_0x57335c){const _0x475fdb=_0x3984d2,_0x870e8b=_0x57335c;if(_0x36f548()[_0x475fdb('0xa90')](_0x57335c))return _0x57335c[_0x475fdb('0x2104')];if(_0x31871a(_0x870e8b))return _0x870e8b;return _0x169968[_0x475fdb('0x255')]('Fax\x20'+_0x870e8b+'\x20is\x20not\x20valid'),null;}function _0x31871a(_0x527dfb){const _0x4d1e8f=/[&/\\#,()$~%.'":;*?<>{}\s\\|a-zA-Z\pS!òàùè…_§°çéì-]/;return!_0x4d1e8f['test'](_0x527dfb);}function _0x2cf93d(_0xaa37b9){const _0xe2aef6=_0x3984d2;return _0x415e37&&_0x415e37['ListId']?_0x3a4df2[_0xe2aef6('0x1b8f')][_0xe2aef6('0xbaa')]({'ListId':_0x415e37[_0xe2aef6('0x1e91')],'nolimit':!![],'filter':_0xaa37b9,'fields':'firstName,lastName,fax'})[_0xe2aef6('0x1549')][_0xe2aef6('0x11bf')](function(_0x3ff2b3){const _0xf2d5f6=_0xe2aef6;return _0x3ff2b3[_0xf2d5f6('0x19b2')];}):[];}function _0x1aa014(){const _0x586435=_0x3984d2;_0x56e523[_0x586435('0x20f1')]=_0x2ea926[_0x586435('0x1b86')],_0x42b24d[_0x586435('0x26c9')]();}}const _0x5cb5fc=_0x4c1f67;_0x21615f[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x5d8'),_0x21d0f5('0x2143'),_0x21d0f5('0x1ca2'),_0x21d0f5('0x144b'),'$translate',_0x21d0f5('0x2565'),_0x21d0f5('0x1b86'),'type','api',_0x21d0f5('0x142d'),'$q',_0x21d0f5('0x1150'),_0x21d0f5('0x4e6'),_0x21d0f5('0x2a1')];function _0x21615f(_0x2422ac,_0x42cfd7,_0x1e1b3c,_0x5eb61f,_0x3e5170,_0x803e24,_0x11fb2f,_0x3a66fb,_0x2408a9,_0x4488ab,_0x404f2a,_0x4dbcba,_0xa3b67f,_0x4b425c){const _0x1badbe=_0x21d0f5,_0x5d4676=this,_0x17dfa4=0x19,_0x524d78=_0x17dfa4*0x400*0x400;_0x5d4676['currentUser']=_0x4dbcba[_0x1badbe('0x2428')](),_0x5d4676[_0x1badbe('0xdaa')]=_0x3a66fb===_0x1badbe('0x1ce3')?!![]:![],_0x5d4676[_0x1badbe('0xde0')]=!![],_0x5d4676[_0x1badbe('0x1595')]=!![],_0x5d4676[_0x1badbe('0x925')]=!![],_0x5d4676['errors']=[],_0x5d4676['separatorKeys']=[_0x5eb61f[_0x1badbe('0x8e6')][_0x1badbe('0x1ad7')],_0x5eb61f[_0x1badbe('0x8e6')][_0x1badbe('0xfc9')],_0x5eb61f[_0x1badbe('0x8e6')][_0x1badbe('0xa0f')]],_0x5d4676[_0x1badbe('0x2758')]=_0x5bb7cd,_0x5d4676[_0x1badbe('0xd01')]=_0x440faf,_0x5d4676[_0x1badbe('0x1b9d')]=_0x5ced1a,_0x36f548()[_0x1badbe('0x41f')]['interpolate']=/{{([\s\S]+?)}}/g,_0x5d4676[_0x1badbe('0xc48')]=_0x36f548()['template'](_0x1badbe('0x2a3')),_0x5d4676[_0x1badbe('0x11cf')]=_0x36f548()['template'](_0x1badbe('0xf3a')),_0x5d4676[_0x1badbe('0x687')]=_0x36f548()[_0x1badbe('0x13b6')](_0x1badbe('0x27bb')),_0x5d4676[_0x1badbe('0x1b86')]={'from':_0x5d4676[_0x1badbe('0xc48')]({'name':_0x803e24[_0x1badbe('0x1909')],'email':_0x803e24[_0x1badbe('0x15d3')]||_0x803e24['Smtp'][_0x1badbe('0x21d9')]}),'to':[],'cc':[],'bcc':[],'body':_0x3b1efd(),'type':_0x3a66fb,'attachments':[],'showLastMessage':!![]},_0x5d4676[_0x1badbe('0x20f1')]=null,_0x5d4676[_0x1badbe('0x2096')]={'skin':'office2013','startupFocus':!![],'language':'en','allowedContent':!![],'extraPlugins':_0x1badbe('0x602'),'toolbarGroups':[{'name':_0x1badbe('0x1d89'),'groups':['styles']},{'name':_0x1badbe('0x17d2'),'groups':[_0x1badbe('0x20d4')]},{'name':_0x1badbe('0xdda'),'groups':[_0x1badbe('0xdda')]},{'name':_0x1badbe('0x193f'),'groups':[_0x1badbe('0x193f')]},{'name':_0x1badbe('0x1760'),'groups':[_0x1badbe('0x257d'),'indent','align']}],'autoGrow_onStartup':!![],'autoGrow_minHeight':_0x5d4676[_0x1badbe('0xdaa')]?0xa0:0x12c,'autoGrow_maxHeight':_0x42cfd7[_0x1badbe('0x1cd2')]-0x190,'autocorrect_enabled':!![],'disableNativeSpellChecker':![],'enterMode':window[_0x1badbe('0x172a')][_0x1badbe('0xdfc')],'font_defaultLabel':_0x803e24[_0x1badbe('0x1b2a')]?_0x803e24[_0x1badbe('0x1b2a')]['split'](',')[0x0]:_0x1badbe('0xfc1'),'fontSize_defaultLabel':_0x803e24[_0x1badbe('0xc9c')]||'12','removePlugins':_0x1badbe('0x666')};const _0x19ad8a=[];for(let _0x58d35c=0x8;_0x58d35c<=0x48;_0x58d35c++){_0x19ad8a[_0x1badbe('0x105d')](_0x58d35c+'/'+_0x58d35c+'pt');}_0x5d4676[_0x1badbe('0x2096')]['fontSize_sizes']=_0x19ad8a[_0x1badbe('0xa04')](';'),_0x5d4676['ngFlowOptions']={'target':'api/attachments','singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x524d78,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x5d4676[_0x1badbe('0x13b8')]={'flow':{}},_0x5d4676[_0x1badbe('0x494')]=_0x5e4deb,_0x5d4676[_0x1badbe('0x2672')]=_0x2184db,_0x5d4676[_0x1badbe('0x23b3')]=_0x193d3d,_0x5d4676[_0x1badbe('0xe65')]=_0xbf633b,_0x5d4676['send']=_0x50c31e,_0x5d4676[_0x1badbe('0x1ce3')]=_0x2b5df2,_0x5d4676['addNote']=_0x22eebc,_0x5d4676['upload']=_0x14654c,_0x5d4676[_0x1badbe('0x272b')]=_0x44867d,_0x5d4676[_0x1badbe('0x20bd')]=_0x4e03a1,_0x5d4676['fileAdded']=_0x2b52b1,_0x5d4676[_0x1badbe('0x698')]=_0x34417d,_0x5d4676['contactSearch']=_0x463a74,_0x5d4676['transformContact']=_0x250a9d,_0x5d4676[_0x1badbe('0x2879')]=_0x62e8ef,_0x5d4676[_0x1badbe('0xc4e')]=_0x2b18ba,_0x5d4676[_0x1badbe('0x25ef')]=_0x2deb85;switch(_0x3a66fb){case'reply':_0x5d4676[_0x1badbe('0x494')](![]);break;case _0x1badbe('0xea4'):_0x5d4676[_0x1badbe('0x494')](!![]);break;case _0x1badbe('0x23b3'):_0x5d4676['forward']();break;case _0x1badbe('0x20f1'):_0x5d4676[_0x1badbe('0xe65')]();break;case _0x1badbe('0x8a6'):_0x5d4676['newMail']();break;case _0x1badbe('0x1ce3'):_0x5d4676['note']();break;}_0x2408a9['mailSubstatus'][_0x1badbe('0xbaa')]({'nolimit':!![]})[_0x1badbe('0x1549')][_0x1badbe('0x11bf')](function(_0x3da428){const _0x515aac=_0x1badbe;_0x5d4676[_0x515aac('0x483')]=_0x3da428||{'count':0x0,'rows':[]};})[_0x1badbe('0x151d')](function(_0x1f58b4){const _0x5b68a0=_0x1badbe;console[_0x5b68a0('0x255')](_0x1f58b4);});!_0x5d4676['secret']&&_0x435c91();function _0x5e4deb(_0x29346d){const _0xfb518a=_0x1badbe;angular[_0xfb518a('0x17c8')](_0x11fb2f)&&(_0x5d4676[_0xfb518a('0x1b86')][_0xfb518a('0x19fd')]=_0xfb518a('0x494'),_0x5d4676[_0xfb518a('0x1b86')]['to']=_0x11fb2f[_0xfb518a('0x7d5')]==='in'?_0x11fb2f[_0xfb518a('0x18a0')][_0xfb518a('0xaf8')](','):_0x11fb2f['to'][_0xfb518a('0xaf8')](','),_0x5d4676[_0xfb518a('0x1b86')]['subject']=_0x36f548()[_0xfb518a('0x1eb7')](_0x11fb2f[_0xfb518a('0x20eb')],'Re:')?_0x11fb2f[_0xfb518a('0x20eb')]:'Re:\x20'+_0x11fb2f[_0xfb518a('0x20eb')],_0x5d4676[_0xfb518a('0x1b86')][_0xfb518a('0x2202')]=_0x11fb2f['messageId'],_0x5d4676[_0xfb518a('0x1b86')][_0xfb518a('0x1d2')]=_0x3b1efd(),_0x5d4676[_0xfb518a('0x1b86')]['attachments']=[],_0x29346d&&_0x11fb2f['cc']&&(_0x5d4676[_0xfb518a('0xde0')]=![],_0x5d4676[_0xfb518a('0x1b86')]['cc']=_0x11fb2f['cc']['split'](',')),_0x5d4676['message'][_0xfb518a('0x86')]=![]);}function _0x2184db(){const _0x5f328f=_0x1badbe;angular[_0x5f328f('0x17c8')](_0x11fb2f)&&(_0x5d4676['message'][_0x5f328f('0x19fd')]='new',_0x5d4676['message']['to']=_0x11fb2f['to']?_0x11fb2f['to'][_0x5f328f('0xaf8')](','):[]);}function _0xbf633b(){const _0x5c3e01=_0x1badbe;_0x5d4676[_0x5c3e01('0x1990')]=!![],angular[_0x5c3e01('0x17c8')](_0x11fb2f)&&(_0x11fb2f['savedAsDraft']=![],_0x5d4676[_0x5c3e01('0x1b86')]=angular[_0x5c3e01('0x6fb')](_0x11fb2f),!_0x36f548()['isEmpty'](_0x5d4676[_0x5c3e01('0x1b86')]['cc'])&&(_0x5d4676[_0x5c3e01('0xde0')]=![]),!_0x36f548()['isEmpty'](_0x5d4676[_0x5c3e01('0x1b86')][_0x5c3e01('0x277a')])&&(_0x5d4676[_0x5c3e01('0x1595')]=![]));}function _0x193d3d(){const _0x1a7bf2=_0x1badbe;if(angular[_0x1a7bf2('0x17c8')](_0x11fb2f)){_0x5d4676[_0x1a7bf2('0x1b86')][_0x1a7bf2('0x19fd')]=_0x1a7bf2('0x23b3'),_0x5d4676[_0x1a7bf2('0x1b86')][_0x1a7bf2('0x20eb')]=_0x36f548()['startsWith'](_0x11fb2f[_0x1a7bf2('0x20eb')],_0x1a7bf2('0x256d'))?_0x11fb2f[_0x1a7bf2('0x20eb')]:'Fwd:\x20'+_0x11fb2f['subject'],_0x5d4676[_0x1a7bf2('0x1b86')]['body']=_0x3b1efd();if(_0x11fb2f[_0x1a7bf2('0xe86')]&&_0x11fb2f[_0x1a7bf2('0xe86')]['length'])for(let _0xed144f=0x0;_0xed144f<_0x11fb2f[_0x1a7bf2('0xe86')]['length'];_0xed144f++){_0x5d4676[_0x1a7bf2('0x1b86')][_0x1a7bf2('0x103')][_0x1a7bf2('0x105d')](_0x11fb2f['Attachments'][_0xed144f]);}_0x5d4676[_0x1a7bf2('0x1b86')][_0x1a7bf2('0x86')]=![];}}function _0x2b5df2(){const _0x531d22=_0x1badbe;_0x5d4676['type']=_0x531d22('0x1ce3'),_0x5d4676[_0x531d22('0xdaa')]=!![],_0x5d4676[_0x531d22('0x1b86')]['body']='

    ';}function _0x58cc4a(_0x67073b,_0x16edf2){const _0xfaecb7=_0x1badbe,_0x5ab2db={'from':_0x5d4676['message'][_0xfaecb7('0x18a0')],'to':_0x5d4676[_0xfaecb7('0x1b86')]['to']['join'](','),'cc':_0x5d4676[_0xfaecb7('0x1b86')]['cc'][_0xfaecb7('0xa04')](','),'bcc':_0x5d4676['message'][_0xfaecb7('0x277a')][_0xfaecb7('0xa04')](','),'subject':_0x5d4676[_0xfaecb7('0x1b86')][_0xfaecb7('0x20eb')],'body':_0x5d4676[_0xfaecb7('0x1b86')][_0xfaecb7('0x86')]?_0x5d4676[_0xfaecb7('0x1b86')][_0xfaecb7('0x1d2')]:_0x5d4676['message']['body']+_0x1c4021(_0x5d4676[_0xfaecb7('0x1b86')][_0xfaecb7('0x19fd')]),'inReplyTo':_0x5d4676[_0xfaecb7('0x1b86')]['inReplyTo'],'attach':_0x5d4676[_0xfaecb7('0x1b86')]['attachments'][_0xfaecb7('0x1e22')],'attachments':_0x5d4676['message'][_0xfaecb7('0x103')],'Interaction':{'lastMsgDirection':_0xfaecb7('0xfb3'),'lastMsgBody':_0x5d4676[_0xfaecb7('0x1b86')][_0xfaecb7('0x1d2')],'substatus':_0x16edf2},'isDraft':_0x5d4676['isDraft']};_0x5ab2db['html']=_0xfaecb7('0x5c0')+_0x36f548()[_0xfaecb7('0x814')](_0x5ab2db[_0xfaecb7('0x1d2')],_0xfaecb7('0x696'),_0xfaecb7('0xc7d'))+'',_0x67073b&&(_0x5ab2db[_0xfaecb7('0x1da8')]['closed']=!![]),_0x1e1b3c[_0xfaecb7('0x237e')](_0x5ab2db);}function _0x50c31e(_0x1aba06,_0x1cec57,_0x57a44f){const _0x18c6d8=_0x1badbe;if(_0x5d4676[_0x18c6d8('0x1b86')]['to']&&_0x5d4676['message'][_0x18c6d8('0x1d2')]){if(_0x5d4676[_0x18c6d8('0x1b86')]['to'][_0x18c6d8('0x1e22')]){if(_0x36f548()[_0x18c6d8('0x1fc5')](_0x5d4676[_0x18c6d8('0x1b86')][_0x18c6d8('0x20eb')])){const _0x5ef2fc=_0x1e1b3c[_0x18c6d8('0x132b')]({'skipHide':!![]})[_0x18c6d8('0x134b')]('Warning')['textContent'](_0x18c6d8('0x2115'))['ariaLabel'](_0x18c6d8('0x11bd'))['targetEvent'](_0x1aba06)['ok'](_0x18c6d8('0xbb1'))[_0x18c6d8('0x26c9')](_0x18c6d8('0x784'));_0x1e1b3c['show'](_0x5ef2fc)[_0x18c6d8('0x11bf')](function(){_0x58cc4a(_0x1cec57,_0x57a44f);});}else _0x58cc4a(_0x1cec57,_0x57a44f);}else _0x4488ab[_0x18c6d8('0x255')](_0x18c6d8('0x6d0'));}}function _0x22eebc(){const _0x1dd888=_0x1badbe;_0x5d4676[_0x1dd888('0x1b86')][_0x1dd888('0x1d2')]&&_0x1e1b3c[_0x1dd888('0x237e')]({'secret':!![],'body':_0x5d4676[_0x1dd888('0x1b86')]['body'],'attach':_0x5d4676[_0x1dd888('0x1b86')][_0x1dd888('0x103')][_0x1dd888('0x1e22')],'attachments':_0x5d4676[_0x1dd888('0x1b86')]['attachments']});}function _0x440faf(_0x5825d7){const _0x2b9c4f=_0x1badbe;if(_0x5825d7&&_0x5825d7[_0x2b9c4f('0x10cc')]&&_0x5d4676[_0x2b9c4f('0x1414')])try{const _0x3bae62=_0x36f548()[_0x2b9c4f('0x13b6')](_0x5825d7['value']),_0x276707={'user':_0x5d4676['currentUser'],'account':_0x803e24,'interaction':_0xa3b67f,'contact':_0xa3b67f&&_0xa3b67f['Contact']?_0xa3b67f[_0x2b9c4f('0xf10')]:{}};_0x5d4676[_0x2b9c4f('0x1414')][_0x2b9c4f('0x15e7')](_0x3bae62(_0x276707));}catch(_0x125abf){console['error'](_0x125abf),_0x5d4676[_0x2b9c4f('0x1414')][_0x2b9c4f('0x15e7')](_0x5825d7[_0x2b9c4f('0x10cc')]);}document['getElementById']('html-area')[_0x2b9c4f('0x1cf2')](),_0x5d4676[_0x2b9c4f('0x15ef')]=null;}function _0x5bb7cd(_0x2d036a){const _0x51d55a=_0x1badbe,_0x142bc1=_0x404f2a['defer']();let _0x391dd2=[];return _0x2408a9['cannedAnswer']['get']({'filter':_0x2d036a,'MailAccountId':_0x803e24['id']})[_0x51d55a('0x1549')]['then'](function(_0x265b62){const _0x31555=_0x51d55a;return _0x391dd2=_0x36f548()[_0x31555('0x20bf')](_0x391dd2,_0x265b62['rows']),_0x2408a9[_0x31555('0x81')][_0x31555('0xbaa')]({'filter':_0x2d036a})[_0x31555('0x1549')];})[_0x51d55a('0x11bf')](function(_0x4ef668){const _0x5ee928=_0x51d55a;_0x391dd2=_0x36f548()[_0x5ee928('0x20bf')](_0x391dd2,_0x36f548()[_0x5ee928('0xdb4')](_0x4ef668[_0x5ee928('0x19b2')],function(_0x107a3b){const _0x20792b=_0x5ee928;return!_0x107a3b[_0x20792b('0x2294')]&&!_0x107a3b[_0x20792b('0x1a46')]&&!_0x107a3b[_0x20792b('0x80b')]&&!_0x107a3b['WhatsappAccountId']&&!_0x107a3b[_0x20792b('0x2863')]&&!_0x107a3b[_0x20792b('0x2346')];})),_0x142bc1[_0x5ee928('0xa28')](_0x391dd2);})[_0x51d55a('0x151d')](function(_0x26e5bb){const _0x13ccec=_0x51d55a;_0x142bc1[_0x13ccec('0x4a')](_0x26e5bb);}),_0x142bc1[_0x51d55a('0x13f')];}function _0x5ced1a(){const _0x240045=_0x1badbe;try{_0x5d4676[_0x240045('0x1414')]=window[_0x240045('0x172a')]['instances'][_0x240045('0x22b7')];}catch(_0x28c249){console['error'](_0x240045('0x21df'),_0x28c249);}}function _0x435c91(){const _0x39cead=_0x1badbe;return _0x2408a9[_0x39cead('0x1d47')][_0x39cead('0x925')]({'id':_0x803e24['id']})['$promise'][_0x39cead('0x151d')](function(_0x595a9d){const _0x37f867=_0x39cead;_0x5d4676[_0x37f867('0x925')]=![],_0x5d4676[_0x37f867('0x120f')][_0x37f867('0x105d')]({'message':_0x595a9d[_0x37f867('0x4e8')],'type':_0x595a9d['status']}),_0x5d4676['errors'][_0x37f867('0x105d')]({'message':_0x37f867('0x2458'),'type':'500'});});}function _0x2b52b1(_0x205d32){const _0x1a7626=_0x1badbe;if(_0x205d32[_0x1a7626('0x12dd')]>_0x524d78)return _0x4488ab[_0x1a7626('0x255')]({'title':_0x1a7626('0xc56'),'msg':_0x1a7626('0x686')+_0x17dfa4+'MB'}),![];return!![];}function _0x14654c(){const _0x18603e=_0x1badbe;_0x5d4676[_0x18603e('0x13b8')][_0x18603e('0x2414')][_0x18603e('0x2440')]['headers']={'X-Requested-With':_0x18603e('0x19a7'),'Authorization':_0x18603e('0x2723')+_0x2422ac['get'](_0x18603e('0xc2b'))},_0x5d4676[_0x18603e('0x13b8')][_0x18603e('0x2414')][_0x18603e('0x1d01')]();}function _0x44867d(_0x40f212,_0x6cea8a){const _0x485b95=_0x1badbe;try{_0x6cea8a=JSON[_0x485b95('0x1850')](_0x6cea8a),_0x6cea8a[_0x485b95('0x12dd')]=_0x40f212['size'],_0x5d4676[_0x485b95('0x1b86')]['attachments'][_0x485b95('0x105d')](_0x6cea8a);}catch(_0x44a5d4){console[_0x485b95('0x255')](_0x44a5d4);}}function _0x4e03a1(_0x246bcc){const _0x3da8eb=_0x1badbe;_0x5d4676[_0x3da8eb('0x1b86')][_0x3da8eb('0x103')]=_0x36f548()['reject'](_0x5d4676[_0x3da8eb('0x1b86')]['attachments'],{'id':_0x246bcc['id']}),!_0x246bcc[_0x3da8eb('0x2631')]&&_0x2408a9[_0x3da8eb('0x2811')]['delete']({'id':_0x246bcc['id']})[_0x3da8eb('0x1549')][_0x3da8eb('0x151d')](function(_0xbf9cb){const _0x2d3f0e=_0x3da8eb;_0x4488ab[_0x2d3f0e('0x255')]({'title':_0xbf9cb[_0x2d3f0e('0xff9')]?_0x2d3f0e('0x574')+_0xbf9cb[_0x2d3f0e('0xff9')]+_0x2d3f0e('0xb0b')+_0xbf9cb[_0x2d3f0e('0x212f')]:_0x2d3f0e('0x966'),'msg':_0xbf9cb['data']?JSON['stringify'](_0xbf9cb[_0x2d3f0e('0x4e8')][_0x2d3f0e('0x1b86')]):_0xbf9cb['toString']()});});}function _0x34417d(_0x1eb8aa){const _0x5ecb3e=_0x1badbe;let _0x28df60='';return _0x1eb8aa[_0x5ecb3e('0x13a0')]&&_0x1eb8aa[_0x5ecb3e('0x13a0')]!==_0x1eb8aa[_0x5ecb3e('0x15d3')]&&(_0x28df60+=_0x1eb8aa[_0x5ecb3e('0x13a0')]+'\x20'),_0x1eb8aa[_0x5ecb3e('0xcf3')]&&_0x1eb8aa[_0x5ecb3e('0xcf3')]!==_0x1eb8aa[_0x5ecb3e('0x15d3')]&&(_0x28df60+=_0x1eb8aa[_0x5ecb3e('0xcf3')]+'\x20'),_0x28df60+='<'+_0x1eb8aa[_0x5ecb3e('0x15d3')]+'>';}function _0x250a9d(_0x42f4dc,_0x313f61){const _0x320305=_0x1badbe;if(_0x36f548()[_0x320305('0xa90')](_0x42f4dc))return _0x5d4676[_0x320305('0xdde')]=_0x42f4dc,_0x42f4dc[_0x320305('0x15d3')];if(_0x36f548()[_0x320305('0x532')](_0x42f4dc)){if(_0x174086(_0x42f4dc))return _0x5d4676[_0x320305('0xdde')]={'email':_0x42f4dc},_0x42f4dc;else{const _0x3d03e7=_0x42f4dc[_0x320305('0xaf8')](',');for(let _0x4693de=0x0;_0x4693de<_0x3d03e7['length'];_0x4693de+=0x1){_0x174086(_0x3d03e7[_0x4693de])?_0x36f548()[_0x320305('0x32c')](_0x313f61)&&_0x36f548()[_0x320305('0x203c')](_0x313f61,_0x3d03e7[_0x4693de])<0x0&&_0x313f61[_0x320305('0x105d')](_0x3d03e7[_0x4693de]):_0x4488ab[_0x320305('0x255')]('Email\x20'+_0x3d03e7[_0x4693de]+'\x20is\x20not\x20valid');}return _0x5d4676[_0x320305('0xdde')]={'email':_0x42f4dc[_0x320305('0xaf8')](',')[0x0]},null;}}return _0x4488ab[_0x320305('0x255')](_0x320305('0x1381')),null;}function _0x463a74(_0x47e39e){const _0x582968=_0x1badbe;return _0x803e24&&_0x803e24[_0x582968('0x1e91')]?_0x2408a9['cmContact'][_0x582968('0xbaa')]({'ListId':_0x803e24['ListId'],'nolimit':!![],'filter':_0x47e39e,'fields':'firstName,lastName,email'})['$promise'][_0x582968('0x11bf')](function(_0x2c4229){const _0x4a1fc0=_0x582968;return _0x2c4229[_0x4a1fc0('0x19b2')];}):[];}function _0x62e8ef(){const _0xd98fa4=_0x1badbe;_0x5d4676[_0xd98fa4('0x1b86')][_0xd98fa4('0x2710')]=!![],_0x5d4676[_0xd98fa4('0x20f1')]=_0x4b425c['getByInteraction'](_0xa3b67f['id']);const _0x4942e2={'account':_0x803e24,'message':_0x5d4676[_0xd98fa4('0x1b86')],'contact':_0x5d4676[_0xd98fa4('0xdde')],'interaction':_0xa3b67f};if(_0x5d4676[_0xd98fa4('0x20f1')]&&!_0x5d4676[_0xd98fa4('0x1990')]){const _0xcd82ac=_0x1e1b3c[_0xd98fa4('0x132b')]({'skipHide':!![]})[_0xd98fa4('0x134b')](_0x3e5170['instant']('DASHBOARDS.DRAFT_SAVE_WARNING_TITLE'))[_0xd98fa4('0x252a')](_0x3e5170['instant'](_0xd98fa4('0x1e1d')))[_0xd98fa4('0xb2e')](_0xd98fa4('0x6b8'))['ok'](_0x3e5170[_0xd98fa4('0x10c2')](_0xd98fa4('0x238c')))['cancel'](_0x3e5170[_0xd98fa4('0x10c2')]('APP.CANCEL'));_0x1e1b3c[_0xd98fa4('0xb9')](_0xcd82ac)[_0xd98fa4('0x11bf')](function(){const _0xd09b6e=_0xd98fa4;_0x1e1b3c[_0xd09b6e('0x237e')](_0x4942e2);});}else _0x1e1b3c[_0xd98fa4('0x237e')](_0x4942e2);}function _0x2b18ba(){const _0x1e92d7=_0x1badbe;_0x1e1b3c[_0x1e92d7('0x26c9')]();}function _0x174086(_0x2fd5c7){const _0x492a85=_0x1badbe,_0x10c68f=/^(([^<>()[\]\\.,;:\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 _0x10c68f[_0x492a85('0x6eb')](_0x2fd5c7);}function _0x8fac78(_0xfd39db){const _0xf24cb2=_0x1badbe,_0x4916e5=/]*>([^]*)<\/body/m,_0x340a73=_0xfd39db[_0xf24cb2('0x3bb')](_0x4916e5);if(_0x340a73)return _0x340a73[0x1];return _0xfd39db;}function _0x2b0849(){const _0x327548=_0x1badbe;if(_0x36f548()[_0x327548('0x1a80')](_0x803e24[_0x327548('0x13b6')]))return'';try{const _0x2987be=_0x36f548()[_0x327548('0x13b6')](_0x803e24[_0x327548('0x13b6')]),_0x5afcd8={'user':_0x5d4676[_0x327548('0x32a')],'account':_0x803e24,'interaction':_0xa3b67f,'contact':_0xa3b67f&&_0xa3b67f[_0x327548('0xf10')]?_0xa3b67f[_0x327548('0xf10')]:{}};return _0x2987be(_0x5afcd8);}catch(_0x174a4d){return console['error'](_0x174a4d),'';}}function _0x3b1efd(){const _0x3c3053=_0x1badbe;return _0x3c3053('0x228a')+_0x803e24[_0x3c3053('0x1b2a')]+_0x3c3053('0x4b6')+_0x803e24[_0x3c3053('0xc9c')]+_0x3c3053('0x5fb')+_0x2b0849()+_0x3c3053('0x742');}function _0x1c4021(_0x52bb7c){const _0x50aa50=_0x1badbe;let _0xc1efc3=_0x50aa50('0x2250');switch(_0x52bb7c){case'reply':case _0x50aa50('0xea4'):_0xc1efc3+=_0x5d4676[_0x50aa50('0x11cf')]({'date':_0x57d4d1()(_0x11fb2f['createdAt'])[_0x50aa50('0x1826')](_0x50aa50('0x4a3'))||'','time':_0x57d4d1()(_0x11fb2f[_0x50aa50('0x1779')])['format']('HH:mm')||'','from':_0x36f548()[_0x50aa50('0xd85')](_0x11fb2f[_0x50aa50('0x18a0')])||''});break;case'forward':_0xc1efc3+=_0x5d4676[_0x50aa50('0x687')]({'date':_0x57d4d1()(_0x11fb2f[_0x50aa50('0x1779')])[_0x50aa50('0x1826')]('D\x20MMM\x20YYYY')||'','time':_0x57d4d1()(_0x11fb2f[_0x50aa50('0x1779')])[_0x50aa50('0x1826')](_0x50aa50('0x1786'))||'','from':_0x36f548()[_0x50aa50('0xd85')](_0x11fb2f[_0x50aa50('0x18a0')])||'','to':_0x36f548()[_0x50aa50('0xd85')](_0x11fb2f['to'])||'','subject':_0x36f548()['escape'](_0x11fb2f['subject'])||''});break;}const _0x40aee2=_0x5d4676[_0x50aa50('0x1b86')]['showLastMessage']&&_0x11fb2f[_0x50aa50('0x584')]?_0x11fb2f[_0x50aa50('0x584')][_0x50aa50('0x1d2')]:_0x11fb2f[_0x50aa50('0x1d2')];return _0xc1efc3+=_0x50aa50('0xb88'),_0xc1efc3+=_0x8fac78(_0x40aee2?_0x36f548()[_0x50aa50('0x814')](_0x40aee2,_0x50aa50('0x696'),_0x50aa50('0xc7d')):''),_0xc1efc3+=_0x50aa50('0x247e'),_0x52bb7c?_0xc1efc3:'';}function _0x2deb85(){const _0x5dffb2=_0x1badbe;_0x5d4676[_0x5dffb2('0x1b86')][_0x5dffb2('0x1d2')]+=_0x1c4021(_0x5d4676[_0x5dffb2('0x1b86')][_0x5dffb2('0x19fd')]);}}const _0x44f844=_0x21615f;_0x182c31['$inject']=[_0x21d0f5('0x5d8'),_0x21d0f5('0x17f5'),'$window',_0x21d0f5('0x1ca2'),_0x21d0f5('0x144b'),_0x21d0f5('0x2565'),'message',_0x21d0f5('0x19fd'),'api',_0x21d0f5('0x142d'),'$q',_0x21d0f5('0xb6b'),'Auth'];function _0x182c31(_0x200b0b,_0x35c55c,_0x346f75,_0x4334eb,_0x55bebb,_0x1090a9,_0x5b4cbc,_0x23edaf,_0x41ff6b,_0x4ad78c,_0x1e80e8,_0x3e4d8c,_0x3b3b7f){const _0x4b12e2=_0x21d0f5,_0x546b78=this;_0x546b78[_0x4b12e2('0x32a')]=_0x3b3b7f[_0x4b12e2('0x2428')](),_0x546b78[_0x4b12e2('0x120f')]=[],_0x546b78[_0x4b12e2('0x1ca5')]=[_0x55bebb[_0x4b12e2('0x8e6')][_0x4b12e2('0x1ad7')],_0x55bebb['KEY_CODE']['COMMA'],_0x55bebb[_0x4b12e2('0x8e6')][_0x4b12e2('0xa0f')]],_0x546b78[_0x4b12e2('0x2758')]=_0x21e772,_0x546b78[_0x4b12e2('0xd01')]=_0x1bce08,_0x546b78[_0x4b12e2('0x1ce3')]=_0x5839b0,_0x546b78[_0x4b12e2('0x2056')]=_0x4014aa,_0x546b78[_0x4b12e2('0x2065')]={},_0x546b78[_0x4b12e2('0x1b86')]={'from':_0x1090a9[_0x4b12e2('0x1546')],'to':_0x36f548()[_0x4b12e2('0x1a80')](_0x5b4cbc['to'])||_0x36f548()[_0x4b12e2('0x1fc5')](_0x5b4cbc['to'])?[]:_0x5b4cbc['to'],'body':''},_0x546b78[_0x4b12e2('0x2481')]=_0x454066,_0x546b78[_0x4b12e2('0x698')]=_0x459976,_0x546b78[_0x4b12e2('0xc4e')]=_0x1dc306,_0x546b78[_0x4b12e2('0xbea')]=_0x20f3f1,_0x546b78[_0x4b12e2('0xcc2')]=_0x228c9c;switch(_0x23edaf){case _0x4b12e2('0x1ce3'):_0x546b78[_0x4b12e2('0x1ce3')]();break;}function _0x2a16d0(_0x135e1f){const _0x490f81=_0x4b12e2;_0x4334eb['hide']({'to':_0x546b78['message']['to'][_0x490f81('0xa04')](','),'body':_0x135e1f});}function _0x454066(){const _0x28e563=_0x4b12e2;_0x546b78[_0x28e563('0x1b86')]['to']&&_0x546b78['message'][_0x28e563('0x1d2')]&&(_0x546b78[_0x28e563('0x1b86')]['to'][_0x28e563('0x1e22')]?_0x2a16d0(_0x546b78[_0x28e563('0x1b86')]['body']):_0x4ad78c[_0x28e563('0x255')](_0x28e563('0x6d0')));}function _0x1bce08(_0x23b3ae){const _0x4faea7=_0x4b12e2;if(_0x23b3ae){try{_0x36f548()[_0x4faea7('0x41f')]['interpolate']=/{{([\s\S]+?)}}/g;const _0x4ad453=_0x36f548()[_0x4faea7('0x13b6')](_0x23b3ae['value']),_0x5ca388={'user':_0x546b78[_0x4faea7('0x32a')],'account':_0x1090a9};_0x546b78[_0x4faea7('0x1b86')][_0x4faea7('0x1d2')]+='\x20'+_0x4ad453(_0x5ca388),_0x546b78[_0x4faea7('0x2065')][_0x4faea7('0x1201')](_0x546b78[_0x4faea7('0x1b86')][_0x4faea7('0x1d2')]);}catch(_0x19e79d){_0x546b78[_0x4faea7('0x1b86')]['body']+='\x20'+_0x23b3ae[_0x4faea7('0x10cc')],_0x546b78[_0x4faea7('0x2065')][_0x4faea7('0x1201')](_0x546b78['message'][_0x4faea7('0x1d2')]);}_0x546b78[_0x4faea7('0x15ef')]=null;}}function _0x21e772(_0x14459f){const _0x45827c=_0x4b12e2,_0x273e2b=_0x1e80e8[_0x45827c('0xa93')]();let _0x225133=[];return _0x41ff6b[_0x45827c('0x81')]['get']({'filter':_0x14459f,'OpenchannelAccountId':_0x1090a9['id']})[_0x45827c('0x1549')]['then'](function(_0xdc9bec){const _0x585f68=_0x45827c;return _0x225133=_0x36f548()[_0x585f68('0x20bf')](_0x225133,_0xdc9bec[_0x585f68('0x19b2')]),_0x41ff6b[_0x585f68('0x81')][_0x585f68('0xbaa')]({'filter':_0x14459f})[_0x585f68('0x1549')];})['then'](function(_0x5bd447){const _0x577740=_0x45827c;_0x225133=_0x36f548()[_0x577740('0x20bf')](_0x225133,_0x36f548()[_0x577740('0xdb4')](_0x5bd447['rows'],function(_0x252442){const _0x5403e7=_0x577740;return!_0x252442['MailAccountId']&&!_0x252442['FaxAccountId']&&!_0x252442[_0x5403e7('0x80b')]&&!_0x252442[_0x5403e7('0x146a')]&&!_0x252442[_0x5403e7('0x2863')]&&!_0x252442[_0x5403e7('0x2346')];})),_0x273e2b['resolve'](_0x225133);})['catch'](function(_0x356674){const _0x5ed1f8=_0x45827c;_0x273e2b[_0x5ed1f8('0x4a')](_0x356674);}),_0x273e2b[_0x45827c('0x13f')];}function _0x459976(_0x3b9ecf){const _0x4ab11f=_0x4b12e2;let _0x196269='';return _0x3b9ecf[_0x4ab11f('0x13a0')]&&_0x3b9ecf['firstName']!==_0x3b9ecf[_0x1090a9['mapKey']]&&(_0x196269+=_0x3b9ecf[_0x4ab11f('0x13a0')]+'\x20'),_0x3b9ecf[_0x4ab11f('0xcf3')]&&_0x3b9ecf[_0x4ab11f('0xcf3')]!==_0x3b9ecf[_0x1090a9[_0x4ab11f('0x18d1')]]&&(_0x196269+=_0x3b9ecf[_0x4ab11f('0xcf3')]+'\x20'),_0x196269+='<'+_0x3b9ecf[_0x1090a9['mapKey']]+'>';}function _0x228c9c(_0x1e0ac4){const _0x5ab5ca=_0x4b12e2,_0x1af5e0=_0x1e0ac4;if(_0x36f548()[_0x5ab5ca('0xa90')](_0x1af5e0))return _0x1e0ac4[_0x1090a9[_0x5ab5ca('0x18d1')]];return _0x1af5e0;}function _0x20f3f1(_0x2e4d0){const _0x5ac764=_0x4b12e2;if(_0x1090a9&&_0x1090a9[_0x5ac764('0x1e91')]){let _0x113390='firstName,lastName,phone,mobile';return _0x1090a9[_0x5ac764('0x18d1')]&&(_0x113390+=','+_0x1090a9['mapKey']),_0x41ff6b[_0x5ac764('0x1b8f')]['get']({'ListId':_0x1090a9[_0x5ac764('0x1e91')],'nolimit':!![],'filter':_0x2e4d0,'fields':_0x113390})[_0x5ac764('0x1549')][_0x5ac764('0x11bf')](function(_0x3e05f1){const _0x500f5e=_0x5ac764;return _0x3e05f1[_0x500f5e('0x19b2')];});}return[];}function _0x1dc306(){const _0x430e10=_0x4b12e2;_0x4334eb[_0x430e10('0x26c9')]();}function _0x5839b0(){_0x546b78['secret']=!![];}function _0x4014aa(){const _0x29c699=_0x4b12e2;_0x546b78['message'][_0x29c699('0x1d2')]&&_0x4334eb[_0x29c699('0x237e')]({'secret':!![],'body':_0x546b78[_0x29c699('0x1b86')][_0x29c699('0x1d2')]});}}const _0x30cdfd=_0x182c31;_0x186a32['$inject']=['$cookies','$timeout',_0x21d0f5('0x2143'),_0x21d0f5('0x1ca2'),_0x21d0f5('0x144b'),_0x21d0f5('0x2565'),_0x21d0f5('0x1b86'),'type',_0x21d0f5('0x12a5'),_0x21d0f5('0x142d'),'$q',_0x21d0f5('0xb6b'),'Auth'];function _0x186a32(_0x50de6d,_0x14379b,_0x1cd793,_0xef935e,_0x4d4cfc,_0x4085c2,_0x2de417,_0x123b60,_0x594d6c,_0x31db78,_0x7adec8,_0x393eb6,_0x50b7e5){const _0x4d0141=_0x21d0f5,_0x366e0d=this;_0x366e0d[_0x4d0141('0x32a')]=_0x50b7e5['getCurrentUser'](),_0x366e0d[_0x4d0141('0x120f')]=[],_0x366e0d['separatorKeys']=[_0x4d4cfc[_0x4d0141('0x8e6')][_0x4d0141('0x1ad7')],_0x4d4cfc[_0x4d0141('0x8e6')][_0x4d0141('0xfc9')],_0x4d4cfc[_0x4d0141('0x8e6')][_0x4d0141('0xa0f')]],_0x366e0d['searchTextChange']=_0x3f9156,_0x366e0d[_0x4d0141('0xd01')]=_0x3d1dc9,_0x366e0d[_0x4d0141('0x1ce3')]=_0x154acb,_0x366e0d[_0x4d0141('0x2056')]=_0x179b2b,_0x366e0d[_0x4d0141('0x2065')]={},_0x366e0d[_0x4d0141('0x1b86')]={'from':_0x4085c2[_0x4d0141('0x1546')],'to':_0x36f548()[_0x4d0141('0x1a80')](_0x2de417['to'])||_0x36f548()[_0x4d0141('0x1fc5')](_0x2de417['to'])?[]:_0x2de417['to'],'body':''},_0x366e0d['send']=_0x2fe45c,_0x366e0d['getContact']=_0x4f4b66,_0x366e0d[_0x4d0141('0xc4e')]=_0x2894e5,_0x366e0d['contactSearch']=_0x46e62b,_0x366e0d[_0x4d0141('0xcc2')]=_0x21644a;switch(_0x123b60){case'note':_0x366e0d[_0x4d0141('0x1ce3')]();break;}function _0x21a19a(_0x24ff0a){const _0x12392d=_0x4d0141;_0xef935e[_0x12392d('0x237e')]({'to':_0x366e0d[_0x12392d('0x1b86')]['to'][_0x12392d('0xa04')](','),'body':_0x24ff0a});}function _0x2fe45c(){const _0x3d50c5=_0x4d0141;_0x366e0d[_0x3d50c5('0x1b86')]['to']&&_0x366e0d[_0x3d50c5('0x1b86')]['body']&&(_0x366e0d['message']['to'][_0x3d50c5('0x1e22')]?_0x21a19a(_0x366e0d[_0x3d50c5('0x1b86')][_0x3d50c5('0x1d2')]):_0x31db78[_0x3d50c5('0x255')]('To\x20is\x20mandatory'));}function _0x3d1dc9(_0x300e67){const _0x53821f=_0x4d0141;if(_0x300e67){try{_0x36f548()['templateSettings']['interpolate']=/{{([\s\S]+?)}}/g;const _0x2a970c=_0x36f548()[_0x53821f('0x13b6')](_0x300e67[_0x53821f('0x10cc')]),_0x67f2cf={'user':_0x366e0d[_0x53821f('0x32a')],'account':_0x4085c2};_0x366e0d[_0x53821f('0x1b86')][_0x53821f('0x1d2')]+='\x20'+_0x2a970c(_0x67f2cf),_0x366e0d['ctrlMethods'][_0x53821f('0x1201')](_0x366e0d[_0x53821f('0x1b86')][_0x53821f('0x1d2')]);}catch(_0x530792){_0x366e0d[_0x53821f('0x1b86')][_0x53821f('0x1d2')]+='\x20'+_0x300e67[_0x53821f('0x10cc')],_0x366e0d[_0x53821f('0x2065')]['setText'](_0x366e0d[_0x53821f('0x1b86')][_0x53821f('0x1d2')]);}_0x366e0d[_0x53821f('0x15ef')]=null;}}function _0x3f9156(_0x447fb0){const _0x5707fb=_0x4d0141,_0x3fd59f=_0x7adec8[_0x5707fb('0xa93')]();let _0x37146d=[];return _0x594d6c['cannedAnswer'][_0x5707fb('0xbaa')]({'filter':_0x447fb0,'SmsAccountId':_0x4085c2['id']})['$promise'][_0x5707fb('0x11bf')](function(_0x301bfc){const _0x108347=_0x5707fb;return _0x37146d=_0x36f548()[_0x108347('0x20bf')](_0x37146d,_0x301bfc['rows']),_0x594d6c[_0x108347('0x81')][_0x108347('0xbaa')]({'filter':_0x447fb0})['$promise'];})[_0x5707fb('0x11bf')](function(_0x3a4224){const _0x1330f6=_0x5707fb;_0x37146d=_0x36f548()[_0x1330f6('0x20bf')](_0x37146d,_0x36f548()['filter'](_0x3a4224[_0x1330f6('0x19b2')],function(_0x29135a){const _0x559c17=_0x1330f6;return!_0x29135a[_0x559c17('0x2294')]&&!_0x29135a[_0x559c17('0x1a46')]&&!_0x29135a[_0x559c17('0x80b')]&&!_0x29135a[_0x559c17('0x2863')]&&!_0x29135a['ChatWebsiteId'];})),_0x3fd59f[_0x1330f6('0xa28')](_0x37146d);})[_0x5707fb('0x151d')](function(_0x402304){const _0x419bee=_0x5707fb;_0x3fd59f[_0x419bee('0x4a')](_0x402304);}),_0x3fd59f['promise'];}function _0x4f4b66(_0x5e9a69){const _0x21837d=_0x4d0141;let _0x31993a='';return _0x5e9a69[_0x21837d('0x13a0')]&&_0x5e9a69[_0x21837d('0x13a0')]!==_0x5e9a69[_0x21837d('0x249f')]&&(_0x31993a+=_0x5e9a69[_0x21837d('0x13a0')]+'\x20'),_0x5e9a69[_0x21837d('0xcf3')]&&_0x5e9a69[_0x21837d('0xcf3')]!==_0x5e9a69[_0x21837d('0x249f')]&&(_0x31993a+=_0x5e9a69[_0x21837d('0xcf3')]+'\x20'),_0x31993a+='<'+_0x5e9a69['mobile']+'>';}function _0x21644a(_0x493f4d){const _0x49b460=_0x4d0141,_0x2c0ab8=_0x493f4d;if(_0x36f548()[_0x49b460('0xa90')](_0x2c0ab8))return _0x493f4d[_0x49b460('0x249f')];if(_0x317619(_0x2c0ab8))return _0x2c0ab8;return _0x31db78[_0x49b460('0x255')]('Mobile\x20'+_0x2c0ab8+_0x49b460('0x255b')),null;}function _0x46e62b(_0x4a0eeb){const _0x4dde94=_0x4d0141;if(_0x4085c2&&_0x4085c2[_0x4dde94('0x1e91')])return _0x594d6c[_0x4dde94('0x1b8f')][_0x4dde94('0xbaa')]({'ListId':_0x4085c2[_0x4dde94('0x1e91')],'nolimit':!![],'filter':_0x4a0eeb,'fields':'firstName,lastName,mobile'})[_0x4dde94('0x1549')][_0x4dde94('0x11bf')](function(_0x6b0e63){const _0x183f6f=_0x4dde94;return _0x6b0e63[_0x183f6f('0x19b2')];});return[];}function _0x2894e5(){const _0x28a415=_0x4d0141;_0xef935e[_0x28a415('0x26c9')]();}function _0x317619(_0x2f17c7){const _0x4b3843=/^(\+|\d)[0-9]{7,16}$/;return _0x4b3843['test'](_0x2f17c7);}function _0x154acb(){const _0xe9d53e=_0x4d0141;_0x366e0d[_0xe9d53e('0xdaa')]=!![];}function _0x179b2b(){const _0x4b4c0d=_0x4d0141;_0x366e0d['message']['body']&&_0xef935e['hide']({'secret':!![],'body':_0x366e0d[_0x4b4c0d('0x1b86')][_0x4b4c0d('0x1d2')]});}}const _0x217aba=_0x186a32;_0x6a0ab9[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x5d8'),_0x21d0f5('0x17f5'),_0x21d0f5('0x2143'),_0x21d0f5('0x1ca2'),_0x21d0f5('0x144b'),_0x21d0f5('0x2565'),_0x21d0f5('0x1b86'),_0x21d0f5('0x19fd'),_0x21d0f5('0x12a5'),_0x21d0f5('0x142d'),'$q',_0x21d0f5('0xb6b'),_0x21d0f5('0x1150')];function _0x6a0ab9(_0xf20a39,_0x4b8fea,_0x2e23b6,_0x2f296e,_0x2617b0,_0x20f8b0,_0x37db49,_0x5a1b50,_0x395464,_0x358db9,_0x3d1949,_0x32a140,_0x25317b){const _0x338f63=_0x21d0f5,_0x2ef63c=this;_0x2ef63c[_0x338f63('0x32a')]=_0x25317b[_0x338f63('0x2428')](),_0x2ef63c[_0x338f63('0x120f')]=[],_0x2ef63c[_0x338f63('0x1ca5')]=[_0x2617b0['KEY_CODE'][_0x338f63('0x1ad7')],_0x2617b0[_0x338f63('0x8e6')][_0x338f63('0xfc9')],_0x2617b0[_0x338f63('0x8e6')][_0x338f63('0xa0f')]],_0x2ef63c[_0x338f63('0x2758')]=_0x5c297b,_0x2ef63c['selectedItemChange']=_0x1f8e3b,_0x2ef63c[_0x338f63('0x1ce3')]=_0x3708da,_0x2ef63c[_0x338f63('0x2056')]=_0x50cec0,_0x2ef63c[_0x338f63('0x2065')]={},_0x2ef63c[_0x338f63('0x1b86')]={'from':_0x20f8b0[_0x338f63('0x1546')],'to':_0x36f548()[_0x338f63('0x1a80')](_0x37db49['to'])||_0x36f548()[_0x338f63('0x1fc5')](_0x37db49['to'])?[]:_0x37db49['to'],'body':''},_0x2ef63c[_0x338f63('0x2481')]=_0x22ec4d,_0x2ef63c[_0x338f63('0x698')]=_0x5d6596,_0x2ef63c['closeDialog']=_0x4ba8b3,_0x2ef63c['contactSearch']=_0x109c48,_0x2ef63c['transformContact']=_0x2ae7c1;switch(_0x5a1b50){case _0x338f63('0x1ce3'):_0x2ef63c['note']();break;}function _0x4dddf8(_0x8fbeca){const _0xc0dcc0=_0x338f63;_0x2f296e[_0xc0dcc0('0x237e')]({'to':_0x2ef63c['message']['to'][_0xc0dcc0('0xa04')](','),'body':_0x8fbeca});}function _0x22ec4d(){const _0x95ded1=_0x338f63;_0x2ef63c[_0x95ded1('0x1b86')]['to']&&_0x2ef63c[_0x95ded1('0x1b86')]['body']&&(_0x2ef63c[_0x95ded1('0x1b86')]['to'][_0x95ded1('0x1e22')]?_0x4dddf8(_0x2ef63c['message']['body']):_0x358db9['error'](_0x95ded1('0x6d0')));}function _0x1f8e3b(_0x4b20d3){const _0x5df4b9=_0x338f63;if(_0x4b20d3){try{_0x36f548()['templateSettings'][_0x5df4b9('0x5f1')]=/{{([\s\S]+?)}}/g;const _0x3fbc6f=_0x36f548()[_0x5df4b9('0x13b6')](_0x4b20d3[_0x5df4b9('0x10cc')]),_0x47a944={'user':_0x2ef63c['currentUser'],'account':_0x20f8b0};_0x2ef63c[_0x5df4b9('0x1b86')][_0x5df4b9('0x1d2')]+='\x20'+_0x3fbc6f(_0x47a944),_0x2ef63c[_0x5df4b9('0x2065')][_0x5df4b9('0x1201')](_0x2ef63c[_0x5df4b9('0x1b86')][_0x5df4b9('0x1d2')]);}catch(_0x3215e0){_0x2ef63c[_0x5df4b9('0x1b86')]['body']+='\x20'+_0x4b20d3[_0x5df4b9('0x10cc')],_0x2ef63c[_0x5df4b9('0x2065')][_0x5df4b9('0x1201')](_0x2ef63c[_0x5df4b9('0x1b86')][_0x5df4b9('0x1d2')]);}_0x2ef63c[_0x5df4b9('0x15ef')]=null;}}function _0x5c297b(_0x532eac){const _0x456df0=_0x338f63,_0x1b992d=_0x3d1949['defer']();let _0x3d9d37=[];return _0x395464['cannedAnswer'][_0x456df0('0xbaa')]({'filter':_0x532eac,'WhatsappAccountId':_0x20f8b0['id']})[_0x456df0('0x1549')][_0x456df0('0x11bf')](function(_0xb67bef){const _0x14e4cd=_0x456df0;return _0x3d9d37=_0x36f548()[_0x14e4cd('0x20bf')](_0x3d9d37,_0xb67bef[_0x14e4cd('0x19b2')]),_0x395464[_0x14e4cd('0x81')][_0x14e4cd('0xbaa')]({'filter':_0x532eac})[_0x14e4cd('0x1549')];})[_0x456df0('0x11bf')](function(_0x466bee){const _0x425a48=_0x456df0;_0x3d9d37=_0x36f548()[_0x425a48('0x20bf')](_0x3d9d37,_0x36f548()['filter'](_0x466bee[_0x425a48('0x19b2')],function(_0x1c784){const _0x5911bb=_0x425a48;return!_0x1c784[_0x5911bb('0x2294')]&&!_0x1c784[_0x5911bb('0x1a46')]&&!_0x1c784[_0x5911bb('0x146a')]&&!_0x1c784[_0x5911bb('0x2863')]&&!_0x1c784[_0x5911bb('0x2346')];})),_0x1b992d['resolve'](_0x3d9d37);})['catch'](function(_0x4d545f){const _0x45b466=_0x456df0;_0x1b992d[_0x45b466('0x4a')](_0x4d545f);}),_0x1b992d[_0x456df0('0x13f')];}function _0x5d6596(_0x429f54){const _0x29d53a=_0x338f63;let _0x2495ea='';return _0x429f54['firstName']&&_0x429f54[_0x29d53a('0x13a0')]!==_0x429f54[_0x29d53a('0x249f')]&&(_0x2495ea+=_0x429f54[_0x29d53a('0x13a0')]+'\x20'),_0x429f54[_0x29d53a('0xcf3')]&&_0x429f54[_0x29d53a('0xcf3')]!==_0x429f54[_0x29d53a('0x249f')]&&(_0x2495ea+=_0x429f54[_0x29d53a('0xcf3')]+'\x20'),_0x2495ea+='<'+_0x429f54[_0x29d53a('0x249f')]+'>';}function _0x2ae7c1(_0x55cb53){const _0x4344d6=_0x338f63,_0x3f7764=_0x55cb53;if(_0x36f548()[_0x4344d6('0xa90')](_0x3f7764))return _0x55cb53[_0x4344d6('0x249f')];if(_0xde7043(_0x3f7764))return _0x3f7764;return _0x358db9[_0x4344d6('0x255')](_0x4344d6('0x162f')+_0x3f7764+_0x4344d6('0x255b')),null;}function _0x109c48(_0x4683e1){const _0x52d26a=_0x338f63;if(_0x20f8b0&&_0x20f8b0['ListId'])return _0x395464['cmContact'][_0x52d26a('0xbaa')]({'ListId':_0x20f8b0[_0x52d26a('0x1e91')],'nolimit':!![],'filter':_0x4683e1,'fields':_0x52d26a('0x236e')})[_0x52d26a('0x1549')]['then'](function(_0x47e1e8){const _0x902cd6=_0x52d26a;return _0x47e1e8[_0x902cd6('0x19b2')];});return[];}function _0x4ba8b3(){const _0x1a80ff=_0x338f63;_0x2f296e[_0x1a80ff('0x26c9')]();}function _0xde7043(_0x5afe6d){const _0x4f5d84=_0x338f63,_0x2b284c=/^(\+|\d)[0-9]{7,16}$/;return _0x2b284c[_0x4f5d84('0x6eb')](_0x5afe6d);}function _0x3708da(){_0x2ef63c['secret']=!![];}function _0x50cec0(){const _0x455531=_0x338f63;_0x2ef63c[_0x455531('0x1b86')]['body']&&_0x2f296e[_0x455531('0x237e')]({'secret':!![],'body':_0x2ef63c[_0x455531('0x1b86')][_0x455531('0x1d2')]});}}const _0x291ec7=_0x6a0ab9;_0xd270d3[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1ca2'),_0x21d0f5('0x142d'),'api',_0x21d0f5('0x4e6'),_0x21d0f5('0xd12'),_0x21d0f5('0x21d9'),'draftManager'];function _0xd270d3(_0x4f81de,_0x3db156,_0x5cf349,_0x4211d4,_0x55f3c7,_0x339bbf,_0x2598e5){const _0x13e803=_0x21d0f5,_0x7e62bb=this;_0x7e62bb[_0x13e803('0x120f')]=[],_0x7e62bb['dispositions']=[],_0x7e62bb[_0x13e803('0x4e6')]=angular[_0x13e803('0x6fb')](_0x4211d4);!_0x7e62bb[_0x13e803('0x4e6')]['disposition']&&(_0x7e62bb[_0x13e803('0x4e6')][_0x13e803('0x107a')]=null);_0x7e62bb[_0x13e803('0xd12')]=_0x55f3c7,_0x7e62bb[_0x13e803('0x1727')]=_0x7e62bb['channel']+_0x13e803('0x1da8'),_0x7e62bb['apiAccountRoute']=_0x7e62bb[_0x13e803('0xd12')]+(_0x7e62bb[_0x13e803('0xd12')]===_0x13e803('0x1800')?_0x13e803('0x20a7'):_0x13e803('0x1e3c')),_0x7e62bb[_0x13e803('0x2690')]=_0x36f548()['capitalize'](_0x7e62bb[_0x13e803('0xd12')])+(_0x7e62bb[_0x13e803('0xd12')]===_0x13e803('0x1800')?_0x13e803('0x20a7'):'Account')+'Id',_0x7e62bb[_0x13e803('0xab0')]=null,_0x7e62bb['mandatoryDisposition']=![],_0x7e62bb[_0x13e803('0x1bdc')]='',_0x7e62bb[_0x13e803('0x3cd')]=_0x339bbf[_0x13e803('0x20d')]||_0x339bbf['chatPause']||_0x339bbf[_0x13e803('0x1f53')]||_0x339bbf[_0x13e803('0xfc0')]||_0x339bbf['faxPause'],_0x7e62bb[_0x13e803('0x5cd')]=_0x118a0f,_0x7e62bb[_0x13e803('0x9e7')]=_0x5d8e35,_0x7e62bb[_0x13e803('0x859')]=_0x132c07,_0x7e62bb[_0x13e803('0xc4e')]=_0x25cc10;function _0x134ed3(){const _0x5148d6=_0x13e803;let _0x160107=[];const _0x3565bd={'fields':_0x5148d6('0x2446'),'sort':'name','nolimit':!![]};_0x3565bd[_0x7e62bb[_0x5148d6('0x2690')]]=_0x4211d4[_0x7e62bb[_0x5148d6('0x2690')]],_0x5cf349[_0x7e62bb[_0x5148d6('0x99d')]][_0x5148d6('0xbaa')]({'id':_0x4211d4[_0x7e62bb[_0x5148d6('0x2690')]]})[_0x5148d6('0x1549')][_0x5148d6('0x11bf')](function(_0x418aba){const _0x4b0cd6=_0x5148d6;return _0x7e62bb[_0x4b0cd6('0x123b')]=_0x418aba[_0x4b0cd6('0x123b')],_0x7e62bb[_0x4b0cd6('0x123b')]&&(_0x7e62bb['mandatoryDispositionPause']=_0x418aba['mandatoryDispositionPause']['name']),_0x5cf349[_0x4b0cd6('0x107a')][_0x4b0cd6('0xbaa')](_0x3565bd)[_0x4b0cd6('0x1549')];})[_0x5148d6('0x11bf')](function(_0x451587){const _0x390576=_0x5148d6;return _0x451587[_0x390576('0x19b2')][_0x390576('0x1e22')]&&(_0x160107=_0x36f548()[_0x390576('0x20bf')](_0x160107,_0x451587[_0x390576('0x19b2')])),_0x5cf349[_0x390576('0x107a')][_0x390576('0xbaa')]({'MailAccountId':_0x390576('0xb5f'),'FaxAccountId':_0x390576('0xb5f'),'SmsAccountId':_0x390576('0xb5f'),'WhatsappAccountId':_0x390576('0xb5f'),'OpenchannelAccountId':_0x390576('0xb5f'),'ChatWebsiteId':_0x390576('0xb5f'),'ListId':_0x390576('0xb5f')})[_0x390576('0x1549')];})[_0x5148d6('0x11bf')](function(_0x23b4c9){const _0x2bf310=_0x5148d6;_0x23b4c9[_0x2bf310('0x19b2')][_0x2bf310('0x1e22')]&&(_0x160107=_0x36f548()[_0x2bf310('0x20bf')](_0x160107,_0x23b4c9[_0x2bf310('0x19b2')]));})[_0x5148d6('0x151d')](function(_0x5a5897){const _0x1a8420=_0x5148d6;console[_0x1a8420('0x255')](_0x5a5897);})[_0x5148d6('0xa9b')](function(){const _0x4976df=_0x5148d6;_0x7e62bb['dispositions']=_0x36f548()[_0x4976df('0x17d7')](_0x160107,[_0x4976df('0x1909')],[_0x4976df('0x1875')]),_0x49524f();});}function _0x49524f(){const _0xc018bf=_0x13e803;_0x7e62bb['mandatoryDisposition']&&!_0x7e62bb[_0xc018bf('0x3cd')]&&_0x5cf349[_0xc018bf('0x21d9')][_0xc018bf('0x92a')]({'id':_0x339bbf['id'],'type':_0x7e62bb[_0xc018bf('0x1bdc')]||_0xc018bf('0x736')})[_0xc018bf('0x1549')][_0xc018bf('0x11bf')](function(){})['catch'](function(_0x424601){const _0x54710e=_0xc018bf;console[_0x54710e('0x255')](_0x424601);});}function _0x118a0f(_0x2f7154){const _0x2108b7=_0x13e803;if(_0x2f7154===_0x2108b7('0x848')){_0x7e62bb[_0x2108b7('0x19cc')]=_0x7e62bb['firstLevelDisposition']?_0x36f548()[_0x2108b7('0x1cb3')](_0x7e62bb[_0x2108b7('0x1394')],[_0x2108b7('0x2ac'),_0x7e62bb['firstLevelDisposition']['id']]):![];if(!_0x7e62bb[_0x2108b7('0xab0')])_0x7e62bb[_0x2108b7('0x635')]=undefined;}else _0x2f7154==='second'&&(_0x7e62bb[_0x2108b7('0x905')]=_0x36f548()[_0x2108b7('0x1cb3')](_0x7e62bb[_0x2108b7('0x1394')],[_0x2108b7('0x2ac'),_0x7e62bb[_0x2108b7('0x635')]['id']]));}function _0x5d8e35(_0x1b6587){const _0x5eb386=_0x13e803;if(_0x1b6587===_0x5eb386('0x19b9'))_0x7e62bb['secondLevelDisposition']=undefined,_0x7e62bb[_0x5eb386('0xa5a')]=undefined;else _0x1b6587==='third'&&(_0x7e62bb[_0x5eb386('0xa5a')]=undefined);}function _0x132c07(){const _0x5e2c15=_0x13e803;_0x7e62bb[_0x5e2c15('0x120f')]=[],_0x7e62bb['interaction'][_0x5e2c15('0x2342')]=_0x339bbf['id'],_0x7e62bb[_0x5e2c15('0x4e6')][_0x5e2c15('0x949')]=!![],_0x7e62bb[_0x5e2c15('0x4e6')][_0x5e2c15('0x1be5')]=_0x5e2c15('0x18c4'),_0x7e62bb[_0x5e2c15('0x4e6')]['disposition']=_0x7e62bb[_0x5e2c15('0xab0')]?_0x7e62bb['firstLevelDisposition'][_0x5e2c15('0x1909')]:null,_0x7e62bb[_0x5e2c15('0x4e6')]['secondDisposition']=_0x7e62bb[_0x5e2c15('0x635')]?_0x7e62bb['secondLevelDisposition'][_0x5e2c15('0x1909')]:undefined,_0x7e62bb[_0x5e2c15('0x4e6')]['thirdDisposition']=_0x7e62bb[_0x5e2c15('0xa5a')]?_0x7e62bb[_0x5e2c15('0xa5a')][_0x5e2c15('0x1909')]:undefined,_0x5cf349[_0x7e62bb[_0x5e2c15('0x1727')]]?_0x5cf349[_0x7e62bb[_0x5e2c15('0x1727')]][_0x5e2c15('0x5ab')](_0x36f548()[_0x5e2c15('0x258')](_0x7e62bb[_0x5e2c15('0x4e6')],['MailAccountId',_0x5e2c15('0x1a46'),_0x5e2c15('0x80b'),_0x5e2c15('0x146a'),_0x5e2c15('0x2346'),_0x5e2c15('0x2863'),_0x5e2c15('0x949'),_0x5e2c15('0x1be5'),'disposition',_0x5e2c15('0x815'),_0x5e2c15('0x24d8'),'id',_0x5e2c15('0x1ce3'),_0x5e2c15('0x2342')]))[_0x5e2c15('0x1549')][_0x5e2c15('0x11bf')](function(_0x46a559){const _0x1d64b5=_0x5e2c15;_0x7e62bb[_0x1d64b5('0x4e6')]=_0x46a559,_0x7e62bb[_0x1d64b5('0xd12')]===_0x1d64b5('0x2030')&&_0x2598e5[_0x1d64b5('0xfb9')](_0x7e62bb['interaction']['id']),_0x3db156[_0x1d64b5('0x2693')]({'title':_0x1d64b5('0xdaf'),'msg':_0x1d64b5('0xaba')});})['then'](function(){_0x25cc10(!![]);})['catch'](function(_0x30a274){const _0x2fc77e=_0x5e2c15;if(_0x30a274[_0x2fc77e('0x4e8')]&&_0x30a274[_0x2fc77e('0x4e8')]['errors']&&_0x30a274[_0x2fc77e('0x4e8')][_0x2fc77e('0x120f')]['length']){_0x7e62bb[_0x2fc77e('0x120f')]=_0x30a274['data'][_0x2fc77e('0x120f')]||[{'message':_0x30a274['toString'](),'type':'api.variable.update'}];for(let _0x218b3c=0x0;_0x218b3c<_0x30a274[_0x2fc77e('0x4e8')][_0x2fc77e('0x120f')][_0x2fc77e('0x1e22')];_0x218b3c++){_0x3db156[_0x2fc77e('0x255')]({'title':_0x30a274['data'][_0x2fc77e('0x120f')][_0x218b3c]['type'],'msg':_0x30a274[_0x2fc77e('0x4e8')][_0x2fc77e('0x120f')][_0x218b3c][_0x2fc77e('0x1b86')]});}}else _0x3db156[_0x2fc77e('0x255')]({'title':_0x30a274['status']?_0x2fc77e('0x574')+_0x30a274['status']+'\x20-\x20'+_0x30a274[_0x2fc77e('0x212f')]:_0x2fc77e('0x1b1a'),'msg':_0x30a274['data']?JSON[_0x2fc77e('0x3e')](_0x30a274['data']['message']):_0x30a274[_0x2fc77e('0xaab')]()});}):_0x25cc10(![]);}function _0x25cc10(_0x5cdbcc){const _0x32d3bf=_0x13e803;_0x4f81de[_0x32d3bf('0x237e')](_0x5cdbcc);}_0x134ed3();}const _0x226f73=_0xd270d3;_0xbf681f[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1ca2'),_0x21d0f5('0x142d'),_0x21d0f5('0x12a5'),_0x21d0f5('0x4e6'),_0x21d0f5('0xd12'),_0x21d0f5('0x2763')];function _0xbf681f(_0x43b908,_0x3ea384,_0x19d650,_0x30c890,_0xf3f5db,_0x550eaf){const _0x50e0a0=_0x21d0f5,_0x38435e=this;_0x38435e[_0x50e0a0('0x120f')]=[],_0x38435e[_0x50e0a0('0x2763')]=_0x550eaf,_0x38435e['interaction']=angular[_0x50e0a0('0x6fb')](_0x30c890),_0x38435e[_0x50e0a0('0x4e6')][_0x50e0a0('0x806')]=_0x36f548()[_0x50e0a0('0x2171')](_0x38435e['interaction'][_0x50e0a0('0x806')],function(_0x1b9669){const _0x1eada9=_0x50e0a0;return{'id':_0x1b9669['id'],'name':_0x1b9669[_0x1eada9('0x1909')],'color':_0x1b9669[_0x1eada9('0x1360')]};}),_0x38435e['channel']=_0xf3f5db,_0x38435e['autocompleteRequireMatch']=!![],_0x38435e[_0x50e0a0('0x5b4')]=_0x55e0ea,_0x38435e['closeDialog']=_0x12e296,_0x38435e[_0x50e0a0('0x1727')]=_0x38435e['channel']+_0x50e0a0('0x1da8');function _0x55e0ea(){const _0x2c2e94=_0x50e0a0;_0x38435e[_0x2c2e94('0x120f')]=[];if(_0x19d650[_0x38435e['apiRoute']])return _0x19d650[_0x38435e['apiRoute']][_0x2c2e94('0x9c2')]({'id':_0x38435e[_0x2c2e94('0x4e6')]['id'],'ids':_0x36f548()[_0x2c2e94('0x2171')](_0x38435e[_0x2c2e94('0x4e6')][_0x2c2e94('0x806')],'id')})[_0x2c2e94('0x1549')]['then'](function(){const _0x42689a=_0x2c2e94;_0x3ea384['success']({'title':'Interaction\x20properly\x20tagged!','msg':_0x42689a('0x170c')}),_0x30c890[_0x42689a('0x806')]=_0x38435e['interaction'][_0x42689a('0x806')],_0x12e296(!![]);})[_0x2c2e94('0x151d')](function(_0x2c74e8){const _0x38b61f=_0x2c2e94;if(_0x2c74e8[_0x38b61f('0x4e8')]&&_0x2c74e8[_0x38b61f('0x4e8')]['errors']&&_0x2c74e8[_0x38b61f('0x4e8')][_0x38b61f('0x120f')][_0x38b61f('0x1e22')])for(let _0x5c3fc0=0x0;_0x5c3fc0<_0x2c74e8[_0x38b61f('0x4e8')][_0x38b61f('0x120f')]['length'];_0x5c3fc0+=0x1){_0x3ea384[_0x38b61f('0x255')]({'title':_0x2c74e8[_0x38b61f('0x4e8')]['errors'][_0x5c3fc0][_0x38b61f('0x19fd')],'msg':_0x2c74e8[_0x38b61f('0x4e8')][_0x38b61f('0x120f')][_0x5c3fc0][_0x38b61f('0x1b86')]});}else _0x3ea384[_0x38b61f('0x255')]({'title':_0x2c74e8[_0x38b61f('0xff9')]?_0x38b61f('0x574')+_0x2c74e8[_0x38b61f('0xff9')]+_0x38b61f('0xb0b')+_0x2c74e8['statusText']:'api.variable.update','msg':_0x2c74e8['data']?JSON[_0x38b61f('0x3e')](_0x2c74e8[_0x38b61f('0x4e8')]['message']):_0x2c74e8['toString']()});});else _0x12e296(![]);}function _0x12e296(_0x23a868){const _0x5a50dc=_0x50e0a0;_0x43b908[_0x5a50dc('0x237e')](_0x23a868);}}const _0x131b1a=_0xbf681f;_0x4226e2[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1ca2'),_0x21d0f5('0x17f5'),_0x21d0f5('0x1150'),_0x21d0f5('0x12a5'),_0x21d0f5('0x142d'),_0x21d0f5('0xd12'),_0x21d0f5('0x1b86'),_0x21d0f5('0x2565')];function _0x4226e2(_0x1cf811,_0xf07bc0,_0x4872fd,_0x4c5fb7,_0x43e848,_0x42a350,_0x1927cf,_0x3a6429){const _0x5dc170=_0x21d0f5,_0x3e7472=this;_0x3e7472[_0x5dc170('0x32a')]=_0x4872fd['getCurrentUser'](),_0x3e7472[_0x5dc170('0xd12')]=_0x42a350[_0x5dc170('0x20d5')](),_0x3e7472[_0x5dc170('0x1b86')]=_0x1927cf,_0x3e7472[_0x5dc170('0x2565')]=_0x3a6429,_0x3e7472['transfer']={'id':0x0,'type':_0x5dc170('0x150b')},_0x3e7472[_0x5dc170('0x1de3')]={'count':0x0,'rows':[]},_0x3e7472['agents']=_0x3e7472['queues'],_0x3e7472['queueMethod']=_0x3e7472[_0x5dc170('0xd12')]+_0x5dc170('0x1c29'),_0x3e7472[_0x5dc170('0x180e')]=_0x3e7472[_0x5dc170('0xd12')]+_0x5dc170('0x1632'),_0x3e7472[_0x5dc170('0x58b')]=_0x2039a2,_0x3e7472[_0x5dc170('0xc4e')]=_0x44d44a,_0x3e7472['init']=_0x1d8fb5,_0x3e7472[_0x5dc170('0x286f')]();function _0x1d8fb5(){const _0x1d1dd3=_0x5dc170;return _0x4c5fb7[_0x1d1dd3('0x21d9')][_0x1d1dd3('0xbaa')]({'fields':'id,name','role':'agent','sort':_0x1d1dd3('0x1909'),'nolimit':!![]})[_0x1d1dd3('0x1549')][_0x1d1dd3('0x11bf')](function(_0x29041e){const _0x17da11=_0x1d1dd3;return _0x3e7472[_0x17da11('0x1401')]=_0x29041e||{'count':0x0,'rows':[]},_0x4c5fb7[_0x3e7472[_0x17da11('0xa71')]]['get']({'fields':'id,name','sort':_0x17da11('0x1909'),'nolimit':!![]})[_0x17da11('0x1549')];})['then'](function(_0x3f48b5){const _0x30af80=_0x1d1dd3;_0x3e7472[_0x30af80('0x1de3')]=_0x3f48b5||{'count':0x0,'rows':[]};})[_0x1d1dd3('0x151d')](function(_0x3c1c42){const _0x22ea4f=_0x1d1dd3;console[_0x22ea4f('0x255')](_0x3c1c42);});}function _0x44d44a(_0x2e120d){_0x1cf811['hide'](_0x2e120d);}function _0x2039a2(){_0x44d44a(!![]),_0xf07bc0(function(){const _0x2dd99d=a0_0xaf0c;return _0x4c5fb7[_0x2dd99d('0x4db')][_0x3e7472[_0x2dd99d('0x792')]['type']===_0x2dd99d('0x18c4')?_0x2dd99d('0x24a6'):_0x3e7472[_0x2dd99d('0x180e')]]({'id':_0x3e7472[_0x2dd99d('0x792')]['id'],'messageId':_0x3e7472[_0x2dd99d('0x1b86')]['id'],'channel':_0x3e7472[_0x2dd99d('0xd12')]})['$promise'][_0x2dd99d('0x11bf')](function(){const _0x7c55b2=_0x2dd99d;_0x43e848[_0x7c55b2('0x2693')]({'title':_0x7c55b2('0xea6'),'msg':'Transfer\x20'+_0x3e7472[_0x7c55b2('0x792')][_0x7c55b2('0x19fd')]+_0x7c55b2('0x26c5')});})[_0x2dd99d('0x151d')](function(_0x525fa6){const _0x560d5f=_0x2dd99d;if(_0x525fa6[_0x560d5f('0x4e8')]&&_0x525fa6[_0x560d5f('0x4e8')][_0x560d5f('0x120f')]&&_0x525fa6[_0x560d5f('0x4e8')][_0x560d5f('0x120f')]['length']){_0x3e7472[_0x560d5f('0x120f')]=_0x525fa6[_0x560d5f('0x4e8')][_0x560d5f('0x120f')]||[{'message':_0x525fa6[_0x560d5f('0xaab')](),'type':_0x560d5f('0x44a')}];for(let _0x53ac45=0x0;_0x53ac45<_0x525fa6[_0x560d5f('0x4e8')][_0x560d5f('0x120f')][_0x560d5f('0x1e22')];_0x53ac45++){_0x43e848[_0x560d5f('0x255')]({'title':_0x525fa6[_0x560d5f('0x4e8')][_0x560d5f('0x120f')][_0x53ac45][_0x560d5f('0x19fd')],'msg':_0x525fa6[_0x560d5f('0x4e8')]['errors'][_0x53ac45][_0x560d5f('0x1b86')]});}}else _0x43e848[_0x560d5f('0x255')]({'title':_0x525fa6[_0x560d5f('0xff9')]?'API:'+_0x525fa6[_0x560d5f('0xff9')]+'\x20-\x20'+_0x525fa6[_0x560d5f('0x212f')]:_0x560d5f('0x44a'),'msg':_0x525fa6[_0x560d5f('0x4e8')]?JSON[_0x560d5f('0x3e')](_0x525fa6[_0x560d5f('0x4e8')]['message']):_0x525fa6['toString']()});});},0x1388);}}const _0x232e69=_0x4226e2;_0x4fe526[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),'$q','$mdDialog',_0x21d0f5('0x140d'),'api',_0x21d0f5('0x142d'),_0x21d0f5('0x1150'),'$translate',_0x21d0f5('0x5f2'),_0x21d0f5('0x17f5'),_0x21d0f5('0xda9')];function _0x4fe526(_0x5cf1e0,_0x42a91d,_0x33d02a,_0x69be0d,_0x5e587b,_0x5ca91c,_0x115120,_0x14a905,_0x3d687e,_0x5bd4cb,_0x181e2f){const _0x3cf289=_0x21d0f5,_0x1290d8=this;_0x1290d8[_0x3cf289('0x1a19')]={},_0x1290d8[_0x3cf289('0x27ae')]=!![],_0x1290d8[_0x3cf289('0x50b')]=![],_0x1290d8[_0x3cf289('0x7dd')]=_0x181e2f[_0x3cf289('0x7dd')](),_0x1290d8[_0x3cf289('0x1bc')]=_0x1bb12c,_0x1290d8[_0x3cf289('0x9c8')]=_0x4c5a07,_0x1290d8[_0x3cf289('0x145')]=_0x22b2f2,_0x1290d8[_0x3cf289('0x1679')]=_0x135962,_0x1290d8[_0x3cf289('0x11f4')]=_0x9942c3,_0x1290d8[_0x3cf289('0xba2')]=_0x4000b1,_0x1290d8[_0x3cf289('0x1dcd')]=_0x1ebfeb,_0x1290d8[_0x3cf289('0x286f')]=_0x1ff49a,_0x1290d8[_0x3cf289('0x2840')]=function(_0x376153){const _0x45cdb5=_0x3cf289;if(_0x1290d8[_0x45cdb5('0x1a19')][_0x45cdb5('0xf58')]){const _0xee25c4=_0x33d02a[_0x45cdb5('0x132b')]()[_0x45cdb5('0x134b')](_0x14a905[_0x45cdb5('0x10c2')](_0x45cdb5('0x16c2')))[_0x45cdb5('0x252a')](_0x14a905[_0x45cdb5('0x10c2')](_0x45cdb5('0x26d')))[_0x45cdb5('0xad7')]('')['ariaLabel'](_0x45cdb5('0x809'))['targetEvent'](_0x376153)['ok'](_0x14a905[_0x45cdb5('0x10c2')](_0x45cdb5('0x228f')))[_0x45cdb5('0x26c9')](_0x14a905['instant'](_0x45cdb5('0x23b1')));_0x33d02a[_0x45cdb5('0xb9')](_0xee25c4)[_0x45cdb5('0x11bf')](function(){const _0x41ef9e=_0x45cdb5;_0x1290d8['showIncompleteSubmitButton']=![],_0x1290d8[_0x41ef9e('0xef0')][_0x41ef9e('0xe21')]=undefined,_0x462f9b(),_0x1290d8[_0x41ef9e('0x1a19')][_0x41ef9e('0xf58')]();});}};function _0x462f9b(){const _0x962797=_0x3cf289;try{_0x5cf1e0['$parent'][_0x962797('0x25f5')][_0x962797('0x25f5')]['vm'][_0x962797('0x20e1')]();}catch(_0x2c14c4){_0x5ca91c['error']({'title':_0x962797('0x194e'),'msg':_0x962797('0xc9a')});}}function _0x1ff49a(_0x203a40){const _0x5445bd=_0x3cf289;_0x1290d8[_0x5445bd('0x205c')]=_0x203a40;if(_0x1290d8['tab']){_0x1290d8[_0x5445bd('0x7c1')]=_0x1290d8[_0x5445bd('0x205c')]['call'],_0x1290d8[_0x5445bd('0x136d')]=_0x1290d8['tab'][_0x5445bd('0x72')],_0x1290d8[_0x5445bd('0xdde')]=_0x1290d8[_0x5445bd('0x205c')][_0x5445bd('0xdde')],_0x1290d8[_0x5445bd('0xef0')]=_0x1290d8[_0x5445bd('0x205c')][_0x5445bd('0xef0')];if(_0x1290d8[_0x5445bd('0xef0')]){if(_0x36f548()[_0x5445bd('0x26ca')](_0x1290d8[_0x5445bd('0xef0')]['formData'])){}else _0x1290d8[_0x5445bd('0x145')](_0x1290d8[_0x5445bd('0xef0')][_0x5445bd('0x1b56')])?_0x1290d8['project']['formData']=JSON['parse'](_0x1290d8[_0x5445bd('0xef0')][_0x5445bd('0x1b56')]):_0x1290d8['project'][_0x5445bd('0x1b56')]=undefined;_0x1290d8[_0x5445bd('0xef0')][_0x5445bd('0x92c')]=_0x1290d8[_0x5445bd('0xef0')][_0x5445bd('0x92c')]||{},_0x1290d8[_0x5445bd('0xef0')][_0x5445bd('0xe21')]!==undefined&&_0x5bd4cb(function(){const _0x46f7f0=_0x5445bd;_0x3d687e[_0x46f7f0('0x1c04')]('mwForm.pageEvents.changePage',{'page':_0x1290d8[_0x46f7f0('0xef0')][_0x46f7f0('0xe21')]});}),_0x5cf1e0[_0x5445bd('0x12d8')](_0x5445bd('0x2205'),function(_0x592fa5,_0x30aadd){const _0x2b634f=_0x5445bd;if(_0x30aadd[_0x2b634f('0xe21')]){_0x1290d8[_0x2b634f('0xef0')][_0x2b634f('0xe21')]=_0x30aadd[_0x2b634f('0xe21')][_0x2b634f('0x139e')]-0x1,_0x462f9b();_0x1290d8[_0x2b634f('0xef0')][_0x2b634f('0x1fa6')]&&(_0x30aadd[_0x2b634f('0xe21')][_0x2b634f('0x139e')]>=0x1&&_0x30aadd[_0x2b634f('0xe21')][_0x2b634f('0x139e')]<_0x1290d8[_0x2b634f('0xef0')]['formData']['pages'][_0x2b634f('0x1e22')]?_0x1290d8[_0x2b634f('0x50b')]=!![]:_0x1290d8[_0x2b634f('0x50b')]=![]);if(_0x1290d8['project']['formData']&&_0x1290d8[_0x2b634f('0xef0')][_0x2b634f('0x1b56')][_0x2b634f('0x2432')])for(let _0x3a95e6=0x0,_0x1e24f4=_0x1290d8['project'][_0x2b634f('0x1b56')][_0x2b634f('0x2432')][_0x2b634f('0x1e22')];_0x3a95e6<_0x1e24f4;_0x3a95e6++){if(_0x30aadd[_0x2b634f('0xe21')][_0x2b634f('0x139e')]<_0x3a95e6+0x1&&_0x1290d8[_0x2b634f('0xef0')][_0x2b634f('0x1b56')][_0x2b634f('0x2432')][_0x3a95e6][_0x2b634f('0x1780')])for(let _0x38e382=0x0,_0x5588af=_0x1290d8[_0x2b634f('0xef0')][_0x2b634f('0x1b56')][_0x2b634f('0x2432')][_0x3a95e6]['elements'][_0x2b634f('0x1e22')];_0x38e382<_0x5588af;_0x38e382++){_0x1290d8[_0x2b634f('0xef0')]['formData'][_0x2b634f('0x2432')][_0x3a95e6][_0x2b634f('0x1780')][_0x38e382][_0x2b634f('0x19fd')]==='question'&&_0x1290d8[_0x2b634f('0xef0')]['formData']['pages'][_0x3a95e6][_0x2b634f('0x1780')][_0x38e382][_0x2b634f('0x749')]&&delete _0x1290d8[_0x2b634f('0xef0')]['responseData'][_0x1290d8[_0x2b634f('0xef0')]['formData'][_0x2b634f('0x2432')][_0x3a95e6][_0x2b634f('0x1780')][_0x38e382]['question']['id']];}}}});}}}function _0x22b2f2(_0x22fa5b){const _0x34e935=_0x3cf289;if(_0x36f548()[_0x34e935('0x1a80')](_0x22fa5b))return![];try{JSON[_0x34e935('0x1850')](_0x22fa5b);}catch(_0x1ba95b){return![];}return!![];}function _0x4c5a07(_0x5a9492,_0x19933b){const _0x196633=_0x3cf289;try{_0x5cf1e0['$parent'][_0x196633('0x25f5')]['$parent']['vm'][_0x196633('0x20b3')](_0x19933b);}catch(_0x70084d){_0x5ca91c[_0x196633('0x255')]({'title':_0x196633('0x22de'),'msg':_0x196633('0x360')});}}function _0x6bee58(_0xe2372){const _0x44295b=_0x3cf289,_0x2561ae=_0x42a91d[_0x44295b('0xa93')]();return _0x1290d8[_0x44295b('0xef0')][_0x44295b('0x93f')]?_0x5e587b[_0x44295b('0x21d9')][_0x44295b('0xb6f')]({'id':_0xe2372['id']})['$promise'][_0x44295b('0x11bf')](function(){const _0x107ebd=_0x44295b;_0x2561ae[_0x107ebd('0xa28')]();})[_0x44295b('0x151d')](function(){const _0x1267e5=_0x44295b;console[_0x1267e5('0xc78')](_0x1267e5('0xb9e')),_0x2561ae['resolve']();}):_0x2561ae[_0x44295b('0xa28')](),_0x2561ae[_0x44295b('0x13f')];}function _0x53d13b(_0x146c10,_0x1c4b2a){const _0x39a177=_0x3cf289,_0x1f8ff8=[],_0x1b80dc=[],_0x33d670=_0x115120['getCurrentUser']();_0x6bee58(_0x33d670)[_0x39a177('0x11bf')](function(){const _0x2c805d=_0x39a177;return _0x5e587b['jscriptySessionReport'][_0x2c805d('0x259')]({'starttime':_0x1290d8[_0x2c805d('0x136d')],'membername':_0x1290d8[_0x2c805d('0x7c1')]&&_0x1290d8[_0x2c805d('0x7c1')][_0x2c805d('0x74c')]?_0x1290d8[_0x2c805d('0x7c1')][_0x2c805d('0x74c')]:_0x33d670[_0x2c805d('0x1909')],'calleridname':_0x1290d8[_0x2c805d('0x7c1')]&&_0x1290d8['call'][_0x2c805d('0x5ed')]?_0x1290d8[_0x2c805d('0x7c1')][_0x2c805d('0x5ed')]:undefined,'calleridnum':_0x1290d8[_0x2c805d('0x7c1')]&&_0x1290d8['call']['calleridnum']?_0x1290d8['call'][_0x2c805d('0x1f8a')]:undefined,'queue':_0x1290d8[_0x2c805d('0x7c1')]&&_0x1290d8[_0x2c805d('0x7c1')][_0x2c805d('0x150b')]?_0x1290d8[_0x2c805d('0x7c1')][_0x2c805d('0x150b')]:undefined,'uniqueid':_0x1290d8[_0x2c805d('0x7c1')]&&_0x1290d8[_0x2c805d('0x7c1')][_0x2c805d('0x938')]?_0x1290d8['call']['uniqueid']:undefined,'VoiceQueueId':_0x1290d8[_0x2c805d('0x7c1')]&&_0x1290d8[_0x2c805d('0x7c1')][_0x2c805d('0x1f77')]?_0x1290d8[_0x2c805d('0x7c1')][_0x2c805d('0x1f77')]:undefined,'ProjectId':_0x1290d8[_0x2c805d('0xef0')]&&_0x1290d8['project']['id']?_0x1290d8[_0x2c805d('0xef0')]['id']:undefined,'projectname':_0x1290d8[_0x2c805d('0xef0')]&&_0x1290d8['project'][_0x2c805d('0x1909')]?_0x1290d8[_0x2c805d('0xef0')][_0x2c805d('0x1909')]:undefined,'ContactId':_0x1290d8[_0x2c805d('0xdde')]&&_0x1290d8['contact']['id']?_0x1290d8[_0x2c805d('0xdde')]['id']:undefined,'completed':_0x1c4b2a})[_0x2c805d('0x1549')];})[_0x39a177('0x11bf')](function(_0x46d8ce){const _0x2f5046=_0x39a177;if(_0x46d8ce){const _0x5f4d77=_0x1290d8[_0x2f5046('0xba2')](),_0x5ce566=_0x1290d8[_0x2f5046('0x11f4')](),_0x34f566=_0x1290d8[_0x2f5046('0x1dcd')]();for(let _0x5d908f=0x0;_0x5d908f<_0x5f4d77['length'];_0x5d908f+=0x1){if(!_0x36f548()[_0x2f5046('0x1fc5')](String(_0x5ce566[_0x5d908f]))){try{_0x1f8ff8['push'](_0x5e587b[_0x2f5046('0x23cf')][_0x2f5046('0x259')]({'question':_0x5f4d77[_0x5d908f],'answer':_0x34f566[_0x5d908f][_0x2f5046('0x19fd')]===_0x2f5046('0x22f7')?_0x57d4d1()(String(_0x5ce566[_0x5d908f]))[_0x2f5046('0x1826')]('YYYY-MM-DD'):_0x34f566[_0x5d908f]['type']==='time'?_0x57d4d1()(String(_0x5ce566[_0x5d908f]))[_0x2f5046('0x1826')](_0x2f5046('0x1786')):String(_0x5ce566[_0x5d908f]),'questionId':_0x34f566[_0x5d908f]['id'],'membername':_0x1290d8[_0x2f5046('0x7c1')]&&_0x1290d8[_0x2f5046('0x7c1')][_0x2f5046('0x74c')]?_0x1290d8[_0x2f5046('0x7c1')]['membername']:_0x33d670[_0x2f5046('0x1909')],'calleridname':_0x1290d8[_0x2f5046('0x7c1')]&&_0x1290d8[_0x2f5046('0x7c1')]['calleridname']?_0x1290d8[_0x2f5046('0x7c1')][_0x2f5046('0x5ed')]:undefined,'calleridnum':_0x1290d8[_0x2f5046('0x7c1')]&&_0x1290d8[_0x2f5046('0x7c1')][_0x2f5046('0x1f8a')]?_0x1290d8[_0x2f5046('0x7c1')][_0x2f5046('0x1f8a')]:undefined,'queue':_0x1290d8[_0x2f5046('0x7c1')]&&_0x1290d8[_0x2f5046('0x7c1')][_0x2f5046('0x150b')]?_0x1290d8['call'][_0x2f5046('0x150b')]:undefined,'uniqueid':_0x1290d8[_0x2f5046('0x7c1')]&&_0x1290d8[_0x2f5046('0x7c1')][_0x2f5046('0x938')]?_0x1290d8[_0x2f5046('0x7c1')][_0x2f5046('0x938')]:undefined,'SessionId':_0x46d8ce['id'],'ProjectId':_0x1290d8[_0x2f5046('0xef0')]['id'],'projectname':_0x1290d8[_0x2f5046('0xef0')][_0x2f5046('0x1909')]}));}catch(_0x1fad94){console[_0x2f5046('0x255')](_0x2f5046('0x1ec2'),_0x1fad94);}const _0x1072ec=String(_0x5ce566[_0x5d908f])[_0x2f5046('0xaf8')](';');for(let _0x5663bd=0x0;_0x5663bd<_0x1072ec[_0x2f5046('0x1e22')];_0x5663bd+=0x1){const _0x4331b2=_0x1072ec[_0x5663bd][_0x2f5046('0x3ec')]();try{_0x1b80dc['push'](_0x5e587b['jscriptyAnswerReport']['save']({'question':_0x5f4d77[_0x5d908f],'questionId':_0x34f566[_0x5d908f]['id'],'answer':_0x34f566[_0x5d908f][_0x2f5046('0x19fd')]===_0x2f5046('0x22f7')?_0x57d4d1()(_0x4331b2)[_0x2f5046('0x1826')]('YYYY-MM-DD'):_0x34f566[_0x5d908f]['type']==='time'?_0x57d4d1()(_0x4331b2)[_0x2f5046('0x1826')](_0x2f5046('0x1786')):_0x4331b2,'membername':_0x1290d8['call']&&_0x1290d8[_0x2f5046('0x7c1')]['membername']?_0x1290d8[_0x2f5046('0x7c1')]['membername']:_0x33d670['name'],'calleridname':_0x1290d8[_0x2f5046('0x7c1')]&&_0x1290d8[_0x2f5046('0x7c1')][_0x2f5046('0x5ed')]?_0x1290d8['call'][_0x2f5046('0x5ed')]:undefined,'calleridnum':_0x1290d8[_0x2f5046('0x7c1')]&&_0x1290d8[_0x2f5046('0x7c1')][_0x2f5046('0x1f8a')]?_0x1290d8[_0x2f5046('0x7c1')][_0x2f5046('0x1f8a')]:undefined,'queue':_0x1290d8[_0x2f5046('0x7c1')]&&_0x1290d8['call'][_0x2f5046('0x150b')]?_0x1290d8[_0x2f5046('0x7c1')][_0x2f5046('0x150b')]:undefined,'uniqueid':_0x1290d8['call']&&_0x1290d8['call'][_0x2f5046('0x938')]?_0x1290d8['call'][_0x2f5046('0x938')]:undefined,'SessionId':_0x46d8ce['id'],'ProjectId':_0x1290d8[_0x2f5046('0xef0')]['id'],'projectname':_0x1290d8[_0x2f5046('0xef0')][_0x2f5046('0x1909')]}));}catch(_0x4adaae){console[_0x2f5046('0x255')](_0x2f5046('0xa74'),_0x4adaae);}}}}}return _0x42a91d[_0x2f5046('0x7c')](_0x1f8ff8)[_0x2f5046('0x11bf')](function(){const _0xc2a7f=_0x2f5046;return _0x42a91d['all'](_0x1b80dc)[_0xc2a7f('0x11bf')](function(){return _0x46d8ce;});});})[_0x39a177('0x11bf')](function(_0x2900b5){const _0x58b737=_0x39a177;_0x2900b5?_0x146c10[_0x58b737('0xa28')](!![]):_0x146c10[_0x58b737('0x4a')]();})['catch'](function(_0x2b00d6){const _0x31a16c=_0x39a177;if(_0x2b00d6['data']&&_0x2b00d6[_0x31a16c('0x4e8')]['errors']&&_0x2b00d6[_0x31a16c('0x4e8')][_0x31a16c('0x120f')][_0x31a16c('0x1e22')]){_0x1290d8[_0x31a16c('0x120f')]=_0x2b00d6['data'][_0x31a16c('0x120f')]||[{'message':_0x2b00d6['toString'](),'type':_0x31a16c('0x12ad')}];for(let _0x126d8c=0x0;_0x126d8c<_0x2b00d6[_0x31a16c('0x4e8')][_0x31a16c('0x120f')][_0x31a16c('0x1e22')];_0x126d8c+=0x1){_0x5ca91c[_0x31a16c('0x255')]({'title':_0x2b00d6[_0x31a16c('0x4e8')][_0x31a16c('0x120f')][_0x126d8c][_0x31a16c('0x19fd')],'msg':_0x2b00d6[_0x31a16c('0x4e8')][_0x31a16c('0x120f')][_0x126d8c][_0x31a16c('0x1b86')]});}}else _0x5ca91c[_0x31a16c('0x255')]({'title':_0x2b00d6['status']?_0x31a16c('0x574')+_0x2b00d6[_0x31a16c('0xff9')]+'\x20-\x20'+_0x2b00d6['statusText']:'api.contact.save','msg':_0x2b00d6[_0x31a16c('0x4e8')]?JSON['stringify'](_0x2b00d6[_0x31a16c('0x4e8')][_0x31a16c('0x1b86')]):_0x2b00d6[_0x31a16c('0xaab')]()});_0x146c10[_0x31a16c('0x4a')]();});}function _0x819f6(_0xb1f895){const _0x15857d=_0x3cf289;try{_0x5cf1e0[_0x15857d('0x25f5')][_0x15857d('0x25f5')][_0x15857d('0x25f5')]['vm'][_0x15857d('0xf4b')](_0xb1f895);}catch(_0x18e77f){_0x5ca91c[_0x15857d('0x255')]({'title':_0x15857d('0x10c7'),'msg':_0x15857d('0x13e7')});}}function _0x1bb12c(_0x4b0387,_0x1c5054){const _0x149582=_0x3cf289,_0x150fb2=_0x42a91d['defer']();if(_0x1c5054){const _0x1ca3b9=_0x33d02a[_0x149582('0x132b')]()['title'](_0x149582('0x1b4a'))[_0x149582('0xad7')]('')[_0x149582('0xb2e')](_0x149582('0x809'))['targetEvent'](_0x4b0387)['ok'](_0x149582('0x1941'))[_0x149582('0x26c9')]('NO');_0x33d02a[_0x149582('0xb9')](_0x1ca3b9)['then'](function(){_0x53d13b(_0x150fb2,![]);},function(){const _0x1258cc=_0x149582;_0x150fb2[_0x1258cc('0xa28')]();});}else _0x53d13b(_0x150fb2,!![]);return _0x150fb2[_0x149582('0x13f')][_0x149582('0x11bf')](function(_0x596fc2){const _0x39b7f1=_0x149582;_0x596fc2&&(_0x5ca91c[_0x39b7f1('0x2693')]({'title':'Session\x20saved','msg':'Your\x20survey\x20session\x20has\x20been\x20properly\x20saved!'}),_0x819f6(_0x1290d8[_0x39b7f1('0x205c')]));})['catch'](function(){const _0x330ad4=_0x149582;_0x5ca91c[_0x330ad4('0x255')]({'title':_0x330ad4('0x9be'),'msg':_0x330ad4('0x3b5')});});}function _0x135962(){const _0x4a5a57=_0x3cf289;return _0x69be0d[_0x4a5a57('0x1679')](_0x1290d8['project'][_0x4a5a57('0x1b56')],_0x1290d8[_0x4a5a57('0xef0')]['responseData'],![]);}function _0x9942c3(){const _0x974b59=_0x3cf289;return _0x69be0d[_0x974b59('0x11f4')](_0x1290d8['project'][_0x974b59('0x1b56')],_0x1290d8[_0x974b59('0xef0')][_0x974b59('0x92c')]);}function _0x4000b1(){const _0x3c33a9=_0x3cf289;return _0x69be0d[_0x3c33a9('0xba2')](_0x1290d8['project'][_0x3c33a9('0x1b56')],![]);}function _0x1ebfeb(){const _0xc8d2e3=_0x3cf289;return _0x69be0d[_0xc8d2e3('0x1dcd')](_0x1290d8[_0xc8d2e3('0xef0')][_0xc8d2e3('0x1b56')],_0x1290d8['project'][_0xc8d2e3('0x92c')]);}}const _0x59466f=_0x4fe526;_0x161164['$inject']=[_0x21d0f5('0xb6b'),'toasty','notification','api',_0x21d0f5('0x1150')];function _0x161164(_0x2a454e,_0x33d42e,_0x3796af,_0x28bd16,_0x2a83ed){const _0x3d21ea=_0x21d0f5,_0x207edb=this;_0x207edb[_0x3d21ea('0xdd4')]=_0x3796af,_0x207edb[_0x3d21ea('0x21d9')]=_0x2a83ed[_0x3d21ea('0x2428')]();function _0x49edbc(){return function(_0x2ba10c){const _0x12e87e=a0_0xaf0c;if(_0x2ba10c[_0x12e87e('0xff9')]===0x194)_0x33d42e[_0x12e87e('0x870')]({'title':_0x2a454e[_0x12e87e('0x10c2')](_0x12e87e('0x383')),'msg':_0x2a454e[_0x12e87e('0x10c2')](_0x12e87e('0x450'))});else{if(_0x2ba10c[_0x12e87e('0x4e8')]&&_0x2ba10c['data'][_0x12e87e('0x120f')]&&_0x2ba10c['data']['errors'][_0x12e87e('0x1e22')]){_0x207edb[_0x12e87e('0x120f')]=_0x2ba10c[_0x12e87e('0x4e8')][_0x12e87e('0x120f')]||[{'message':_0x2ba10c[_0x12e87e('0xaab')](),'type':_0x12e87e('0x66a')}];for(let _0x1ff659=0x0;_0x1ff659<_0x2ba10c[_0x12e87e('0x4e8')]['errors'][_0x12e87e('0x1e22')];_0x1ff659+=0x1){_0x33d42e['error']({'title':_0x2ba10c[_0x12e87e('0x4e8')][_0x12e87e('0x120f')][_0x1ff659][_0x12e87e('0x19fd')],'msg':_0x2ba10c['data'][_0x12e87e('0x120f')][_0x1ff659]['message']});}}else _0x33d42e[_0x12e87e('0x255')]({'title':_0x2ba10c[_0x12e87e('0xff9')]?_0x12e87e('0x574')+_0x2ba10c[_0x12e87e('0xff9')]+'\x20-\x20'+_0x2ba10c[_0x12e87e('0x212f')]:_0x12e87e('0x66a'),'msg':_0x2ba10c['data']?JSON[_0x12e87e('0x3e')](_0x2ba10c[_0x12e87e('0x4e8')]['message']):_0x2ba10c[_0x12e87e('0xaab')]()});}};}function _0x2cc6af(){const _0x148e04=_0x3d21ea;if(_0x28bd16[_0x207edb['notification']['channel']+_0x148e04('0xbc9')])return _0x28bd16[_0x207edb[_0x148e04('0xdd4')][_0x148e04('0xd12')]+_0x148e04('0xbc9')]['accept']({'id':_0x207edb[_0x148e04('0xdd4')]['id'],'UserId':_0x207edb[_0x148e04('0x21d9')]['id'],'manual':!![]})[_0x148e04('0x1549')][_0x148e04('0x11bf')](function(){const _0x464b33=_0x148e04;_0x33d42e[_0x464b33('0x2693')]({'title':_0x464b33('0x2571'),'msg':_0x464b33('0xda8')});})[_0x148e04('0x151d')](_0x49edbc());else _0x33d42e[_0x148e04('0x255')]({'title':'API:ERROR','msg':_0x148e04('0x23d7')+_0x207edb[_0x148e04('0xdd4')][_0x148e04('0xd12')]+_0x148e04('0xbc9')});}function _0x3b110e(){const _0x39b446=_0x3d21ea;if(_0x28bd16[_0x207edb[_0x39b446('0xdd4')][_0x39b446('0xd12')]+_0x39b446('0xbc9')])return _0x28bd16[_0x207edb['notification'][_0x39b446('0xd12')]+'Message']['reject']({'id':_0x207edb[_0x39b446('0xdd4')]['id'],'UserId':_0x207edb[_0x39b446('0x21d9')]['id']})[_0x39b446('0x1549')]['then'](function(){const _0x1ae5db=_0x39b446;_0x33d42e[_0x1ae5db('0x2693')]({'title':_0x1ae5db('0x1b60'),'msg':'Message\x20has\x20been\x20rejected!'});})[_0x39b446('0x151d')](_0x49edbc());else _0x33d42e[_0x39b446('0x255')]({'title':_0x39b446('0x23d0'),'msg':_0x39b446('0x1d65')+_0x207edb['notification']['channel']+_0x39b446('0xbc9')});}_0x207edb[_0x3d21ea('0x15c7')]=_0x2cc6af,_0x207edb[_0x3d21ea('0x4a')]=_0x3b110e;}const _0x4d6e21=_0x161164;function _0x23f3ee(){const _0x530eab=this;function _0x9a9545(_0x4c3526){const _0x30d34a=a0_0xaf0c;_0x530eab[_0x30d34a('0x205c')]=_0x4c3526,_0x530eab['tab']&&(_0x530eab[_0x30d34a('0x205c')][_0x30d34a('0xf06')]=!![],_0x530eab['html']=_0x530eab[_0x30d34a('0x205c')][_0x30d34a('0x254b')]);}_0x530eab['init']=_0x9a9545;}const _0x51185b=_0x23f3ee,_0x23902c=_0x351988['p']+_0x21d0f5('0x2008'),_0x1d7a5b=_0x351988['p']+_0x21d0f5('0x1bea');_0x199020[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x13d6')];function _0x199020(_0x4be6e1){const _0x9471e4=_0x21d0f5;_0x4be6e1[_0x9471e4('0x2124')](_0x9471e4('0xe28'),{'url':'/general','views':{'content@app':{'templateProvider':[_0x9471e4('0x1573'),_0x9471e4('0x1339'),'Auth',function(_0xd69e45,_0x193d51,_0x1d1c42){const _0x457984=_0x9471e4;return _0x1d1c42['isAgent']()?_0x193d51[_0x457984('0x12f8')](_0x1d7a5b,_0xd69e45):_0x193d51['fromUrl'](_0x23902c,_0xd69e45);}],'controllerProvider':[_0x9471e4('0x1150'),function(_0x52c580){const _0x2dd864=_0x9471e4;return _0x52c580['isAgent']()?'AgentDashboardGeneralController\x20as\x20vm':_0x2dd864('0x23c6');}]}},'resolve':{'globalUserLists':[_0x9471e4('0x218e'),_0x9471e4('0x1150'),function(_0x5097b6,_0x5cde7c){const _0x22741c=_0x9471e4;return _0x5097b6['resolve'](_0x22741c('0x4b4'),{'id':_0x5cde7c[_0x22741c('0x2428')]()['id'],'sort':_0x22741c('0x1909'),'nolimit':!![]});}],'globalLists':[_0x9471e4('0x218e'),function(_0x2551af){const _0xa39f38=_0x9471e4;return _0x2551af['resolve']('cmList@get',{'sort':_0xa39f38('0x1909'),'nolimit':!![]});}],'globalTags':[_0x9471e4('0x218e'),function(_0x14aef6){const _0x4fa7f7=_0x9471e4;return _0x14aef6[_0x4fa7f7('0xa28')](_0x4fa7f7('0x11c1'),{'sort':_0x4fa7f7('0x1909'),'nolimit':!![]});}],'globalCompanies':['apiResolver',function(_0x42e605){const _0x577355=_0x9471e4;return _0x42e605[_0x577355('0xa28')]('cmCompany@get',{'sort':'name','nolimit':!![]});}]},'authenticate':!![],'bodyClass':_0x9471e4('0xd6e')});}angular[_0x21d0f5('0x2768')](_0x21d0f5('0xe28'),[_0x21d0f5('0x3a2'),_0x21d0f5('0x1503')])['config'](_0x199020)['controller'](_0x21d0f5('0x21f6'),_0x31f88f)[_0x21d0f5('0x2729')]('draftManager',_0x5ee1b7)[_0x21d0f5('0x10e5')](_0x21d0f5('0xae0'),_0x494f89)[_0x21d0f5('0x10e5')](_0x21d0f5('0x1db0'),_0x38bc33)[_0x21d0f5('0x1063')](_0x21d0f5('0x5a'),_0xd0ffd4)['controller'](_0x21d0f5('0x2588'),_0x33e3bd)[_0x21d0f5('0x23eb')](_0x21d0f5('0x22a7'),_0x3b4392)[_0x21d0f5('0x23eb')](_0x21d0f5('0x107c'),_0x5ebf2c)[_0x21d0f5('0x23eb')](_0x21d0f5('0x19f5'),_0x3dbaee)[_0x21d0f5('0x23eb')](_0x21d0f5('0x16ab'),_0xe15395)['controller'](_0x21d0f5('0x969'),_0x4dc563)[_0x21d0f5('0x23eb')](_0x21d0f5('0x168c'),_0x27723d)[_0x21d0f5('0x23eb')](_0x21d0f5('0xeb8'),_0xeae16c)['controller']('AgentHomeAbandonedVoiceController',_0x151075)[_0x21d0f5('0x23eb')]('AgentGeneralHomeController',_0x14217c)[_0x21d0f5('0x23eb')](_0x21d0f5('0xd2b'),_0x45e7d7)[_0x21d0f5('0x23eb')](_0x21d0f5('0x1608'),_0x156998)[_0x21d0f5('0x23eb')]('AgentHomeDashboardController',_0x2783d8)[_0x21d0f5('0x23eb')](_0x21d0f5('0x7e0'),_0x10eb2b)[_0x21d0f5('0x23eb')]('AgentHomeDashboardMultiChannelChatController',_0x544765)['controller'](_0x21d0f5('0x22ae'),_0x22945b)[_0x21d0f5('0x23eb')](_0x21d0f5('0xffc'),_0x425a60)[_0x21d0f5('0x23eb')]('AgentHomeDashboardMultiChannelOpenchannelController',_0x131684)['controller'](_0x21d0f5('0x1af0'),_0x19ec12)[_0x21d0f5('0x23eb')](_0x21d0f5('0x1eb9'),_0x2a3122)[_0x21d0f5('0x23eb')]('AgentHomeDashboardMultiChannelWhatsappController',_0x3407f8)[_0x21d0f5('0x23eb')](_0x21d0f5('0x269e'),_0x200546)['controller'](_0x21d0f5('0xbd4'),_0x342bc0)[_0x21d0f5('0x23eb')]('AgentHomeMyContactsController',_0x31e784)[_0x21d0f5('0x23eb')](_0x21d0f5('0x16f'),_0x29843c)[_0x21d0f5('0x23eb')](_0x21d0f5('0x86c'),_0x3ef7e2)[_0x21d0f5('0x23eb')]('AgentHomeRecordingsController',_0x45a7dc)[_0x21d0f5('0x23eb')](_0x21d0f5('0x12bd'),_0x86f42e)[_0x21d0f5('0x23eb')](_0x21d0f5('0x275'),_0x5971d8)[_0x21d0f5('0x23eb')](_0x21d0f5('0x3cb'),_0x35a24a)[_0x21d0f5('0x23eb')](_0x21d0f5('0xaf5'),_0x59565b)[_0x21d0f5('0x23eb')](_0x21d0f5('0xff6'),_0x456389)[_0x21d0f5('0x23eb')]('AgentGeneralIframeController',_0x2b9bb3)['directive'](_0x21d0f5('0x47'),_0x32d639)[_0x21d0f5('0xdb4')]('getChannelByItem',_0x1fd6e8)['controller'](_0x21d0f5('0x15fe'),_0x222a75)[_0x21d0f5('0x2729')]('Emojis',_0x22cb56)[_0x21d0f5('0x23eb')](_0x21d0f5('0x38f'),_0x5cb5fc)[_0x21d0f5('0x23eb')]('ComposeMailInteractionDialogController',_0x44f844)[_0x21d0f5('0x23eb')](_0x21d0f5('0x942'),_0x30cdfd)[_0x21d0f5('0x23eb')](_0x21d0f5('0x1042'),_0x217aba)[_0x21d0f5('0x23eb')](_0x21d0f5('0x94a'),_0x291ec7)['controller']('DisposeInteractionDialogController',_0x226f73)[_0x21d0f5('0x23eb')](_0x21d0f5('0x649'),_0x131b1a)[_0x21d0f5('0x23eb')](_0x21d0f5('0x1e97'),_0x232e69)['controller'](_0x21d0f5('0x1d9c'),_0x59466f)[_0x21d0f5('0x23eb')](_0x21d0f5('0x1ea1'),_0x4d6e21)[_0x21d0f5('0x23eb')]('AgentGeneralPopupController',_0x51185b);const _0x381081=_0x351988['p']+'src/js/modules/main/apps/dashboards/views/custom/custom.html/custom.html';_0x2a7a81[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0xcbc'),_0x21d0f5('0x1fd'),_0x21d0f5('0x1b80'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1d56'),_0x21d0f5('0x1150'),_0x21d0f5('0x1b52'),_0x21d0f5('0x25bc'),_0x21d0f5('0x1d63')];function _0x2a7a81(_0x2f94e6,_0x3bbd1b,_0x294802,_0x34cddf,_0x3f60bd,_0x3c942b,_0x1b94fa,_0x1714ad,_0x72f630){const _0x3940dd=_0x21d0f5,_0x53b5c9=this;_0x53b5c9['currentUser']=_0x3c942b[_0x3940dd('0x2428')](),_0x53b5c9['userProfile']=_0x1714ad,_0x53b5c9[_0x3940dd('0x1d63')]=_0x72f630&&_0x72f630[_0x3940dd('0x27d2')]==0x1?_0x72f630[_0x3940dd('0x19b2')][0x0]:null,_0x53b5c9['crudPermissions']=_0x3c942b[_0x3940dd('0x1530')](_0x53b5c9['userProfileSection']?_0x53b5c9[_0x3940dd('0x1d63')][_0x3940dd('0xb25')]:null),_0x53b5c9['customDashboard']={},_0x53b5c9['voiceQueues']=_0x1b94fa&&_0x1b94fa[_0x3940dd('0x27d2')]?_0x1b94fa:{'count':0x0,'rows':[]},_0x53b5c9[_0x3940dd('0x6c1')]=_0x1b94fa&&_0x1b94fa[_0x3940dd('0x27d2')]?_0x36f548()['map'](_0x1b94fa[_0x3940dd('0x19b2')],'id'):[],_0x53b5c9['interval']=_0x3bbd1b(function(){},0x3e8),_0x53b5c9['onChangeVoiceQueues']=_0x1eaa43,_0x53b5c9['goToEdit']=_0x1823a2,_0x3f60bd[_0x3940dd('0x284d')](_0x3940dd('0x259b'),_0x4debf3),_0x34cddf[_0x3940dd('0xdb9')]['get']({'id':_0x2f94e6[_0x3940dd('0x1ab3')]['id']})[_0x3940dd('0x1549')][_0x3940dd('0x11bf')](function(_0x1a72f4){const _0x4e26f7=_0x3940dd;if(_0x1a72f4)return _0x53b5c9[_0x4e26f7('0xc1a')]=_0x1a72f4,_0x53b5c9[_0x4e26f7('0xc1a')][_0x4e26f7('0x517')]=[],_0x53b5c9[_0x4e26f7('0xc1a')][_0x4e26f7('0x541')]=!![],_0x53b5c9[_0x4e26f7('0xc1a')][_0x4e26f7('0x21a4')]={'enabled':![]},_0x53b5c9[_0x4e26f7('0xc1a')][_0x4e26f7('0x2144')]={'enabled':![]},_0x34cddf[_0x4e26f7('0xdb9')][_0x4e26f7('0xb1c')]({'id':_0x53b5c9[_0x4e26f7('0xc1a')]['id']})[_0x4e26f7('0x1549')];})[_0x3940dd('0x11bf')](function(_0x3abfb0){const _0x4a1de1=_0x3940dd;if(_0x3abfb0&&_0x3abfb0[_0x4a1de1('0x27d2')]&&_0x3abfb0[_0x4a1de1('0x19b2')])for(let _0x287b32=0x0;_0x287b32<_0x3abfb0[_0x4a1de1('0x19b2')][_0x4a1de1('0x1e22')];_0x287b32+=0x1){_0x3abfb0[_0x4a1de1('0x19b2')][_0x287b32]['templateUrl']=_0x4a1de1('0x1be0')+_0x3abfb0[_0x4a1de1('0x19b2')][_0x287b32][_0x4a1de1('0x19fd')]+_0x4a1de1('0xdab')+_0x3abfb0[_0x4a1de1('0x19b2')][_0x287b32][_0x4a1de1('0x19fd')]+_0x4a1de1('0x109e'),_0x3abfb0['rows'][_0x287b32][_0x4a1de1('0x1b52')]=_0x53b5c9[_0x4a1de1('0x1b52')],_0x3abfb0[_0x4a1de1('0x19b2')][_0x287b32]['voiceQueuesSelected']=_0x53b5c9['voiceQueuesSelected'],_0x53b5c9['customDashboard'][_0x4a1de1('0x517')]['push'](_0x3abfb0[_0x4a1de1('0x19b2')][_0x287b32]);}})[_0x3940dd('0x151d')](function(){const _0x573585=_0x3940dd;_0x53b5c9[_0x573585('0xc1a')]=undefined;});function _0x4debf3(_0x29f818){const _0x312175=_0x3940dd,_0x54e58=_0x36f548()[_0x312175('0x1ad4')](_0x53b5c9[_0x312175('0x1b52')][_0x312175('0x19b2')],{'id':_0x29f818['id']});_0x54e58&&_0x36f548()[_0x312175('0x47b')](_0x54e58,_0x36f548()[_0x312175('0x258')](_0x29f818,_0x36f548()[_0x312175('0xe22')](_0x54e58)));}function _0x1eaa43(){const _0x96c4f0=_0x3940dd;for(let _0x14ae78=0x0;_0x14ae78<_0x53b5c9[_0x96c4f0('0xc1a')][_0x96c4f0('0x517')][_0x96c4f0('0x1e22')];_0x14ae78+=0x1){_0x53b5c9['customDashboard'][_0x96c4f0('0x517')][_0x14ae78][_0x96c4f0('0x6c1')]=_0x53b5c9[_0x96c4f0('0x6c1')];}}function _0x1823a2(){const _0x4e9bc9=_0x3940dd;_0x2f94e6['go']('app.tools.customDashboards.edit',{'id':_0x53b5c9[_0x4e9bc9('0xc1a')]['id'],'tab':0x1});}_0x294802['$on']('$destroy',function(){const _0x26b244=_0x3940dd;_0x3f60bd[_0x26b244('0x1b2e')](_0x26b244('0x259b')),_0x53b5c9[_0x26b244('0x507')]&&_0x3bbd1b[_0x26b244('0x26c9')](_0x53b5c9[_0x26b244('0x507')]);});}const _0x6ff3de=_0x2a7a81;_0x5559c3[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x13d6')];function _0x5559c3(_0x4ac71e){const _0x4b86e4=_0x21d0f5;_0x4ac71e[_0x4b86e4('0x2124')](_0x4b86e4('0x214d'),{'url':_0x4b86e4('0x20fe'),'views':{'content@app':{'templateUrl':_0x381081,'controller':_0x4b86e4('0x2255')}},'resolve':{'voiceQueues':[_0x4b86e4('0x218e'),_0x4b86e4('0x1150'),function(_0x150f17,_0x5d3c14){const _0x502c56=_0x4b86e4;let _0x58dfbe;const _0x3a4450=_0x5d3c14[_0x502c56('0x4ee')](_0x502c56('0xf45'))?_0x150f17[_0x502c56('0xa28')](_0x502c56('0x987'),{'fields':_0x502c56('0x721'),'nolimit':!![]}):_0x150f17[_0x502c56('0xa28')](_0x502c56('0xb0d'),{'id':_0x5d3c14[_0x502c56('0x2428')]()[_0x502c56('0x781')],'section':_0x502c56('0xc85'),'mergeResources':!![],'fields':_0x502c56('0x721'),'channel':_0x502c56('0x1bc3'),'nolimit':!![]});return _0x3a4450[_0x502c56('0x11bf')](function(_0xa2a89f){const _0x290409=_0x502c56;return _0x58dfbe=_0xa2a89f,_0x150f17[_0x290409('0xa28')]('rpc@getVoiceQueues');})[_0x502c56('0x11bf')](function(_0x5cb7db){const _0x3bd104=_0x502c56;if(_0x5cb7db)for(let _0x2f9078=0x0,_0x441aba;_0x2f9078<_0x5cb7db[_0x3bd104('0x19b2')]['length'];_0x2f9078+=0x1){_0x441aba=_0x36f548()[_0x3bd104('0x1ad4')](_0x58dfbe[_0x3bd104('0x19b2')],{'id':_0x5cb7db['rows'][_0x2f9078]['id']}),_0x441aba&&_0x36f548()['merge'](_0x441aba,_0x36f548()['pick'](_0x5cb7db[_0x3bd104('0x19b2')][_0x2f9078],[_0x3bd104('0x1491'),'total',_0x3bd104('0x11ed'),_0x3bd104('0x150f'),_0x3bd104('0x1c3a'),_0x3bd104('0x23e8')]));}return _0x58dfbe;});}],'userProfile':['apiResolver',_0x4b86e4('0x1150'),function(_0x2042ac,_0x35e163){const _0x5f1374=_0x4b86e4;return _0x2042ac[_0x5f1374('0xa28')](_0x5f1374('0x428'),{'fields':_0x5f1374('0xd30'),'id':_0x35e163[_0x5f1374('0x2428')]()[_0x5f1374('0x781')]});}],'userProfileSection':[_0x4b86e4('0x218e'),_0x4b86e4('0x1150'),function(_0x9fb075,_0x5c3a92){const _0x59b201=_0x4b86e4;return _0x9fb075[_0x59b201('0xa28')]('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x5c3a92[_0x59b201('0x2428')]()[_0x59b201('0x781')],'sectionId':0x64});}]},'authenticate':!![],'bodyClass':_0x4b86e4('0xd6e')});}angular[_0x21d0f5('0x2768')](_0x21d0f5('0x214d'),[])[_0x21d0f5('0x53a')](_0x5559c3)[_0x21d0f5('0x23eb')]('DashboardCustomController',_0x6ff3de),_0xba0b6b[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x13d6'),_0x21d0f5('0xc3e')];function _0xba0b6b(_0x169543,_0x4b8f1f){const _0x1cb28b=_0x21d0f5;_0x169543['state'](_0x1cb28b('0xa59'),{'abstract':!![],'url':_0x1cb28b('0x1958')}),_0x4b8f1f[_0x1cb28b('0x471')](_0x1cb28b('0xe7f'));}angular[_0x21d0f5('0x2768')](_0x21d0f5('0xa59'),[_0x21d0f5('0x22d5'),_0x21d0f5('0x1fb3'),_0x21d0f5('0x3c4'),_0x21d0f5('0x2414'),_0x21d0f5('0xd61'),_0x21d0f5('0x2096'),_0x21d0f5('0x24a2'),'ngAria',_0x21d0f5('0x113d'),_0x21d0f5('0x21d5'),_0x21d0f5('0x29b'),'mwFormViewer',_0x21d0f5('0x950'),_0x21d0f5('0xf49'),_0x21d0f5('0x31e'),_0x21d0f5('0xed9'),_0x21d0f5('0x2625'),'material.components.expansionPanels',_0x21d0f5('0x1584'),_0x21d0f5('0xf7f'),_0x21d0f5('0xe28'),_0x21d0f5('0x214d')])[_0x21d0f5('0x53a')](_0xba0b6b);const _0x43ea8c=_0x351988['p']+'src/js/modules/main/apps/staff/views/agents/edit/teamadd/teamadd.html/teamadd.html',_0x1013da=_0x351988['p']+_0x21d0f5('0x27be');_0x26aafa['$inject']=[_0x21d0f5('0x1b80'),'$window',_0x21d0f5('0xcbc'),_0x21d0f5('0x18fe'),'$mdDialog',_0x21d0f5('0x1b30'),'$timeout',_0x21d0f5('0xb6b'),_0x21d0f5('0x1401'),_0x21d0f5('0x25bc'),'userProfileSection',_0x21d0f5('0x12a5'),_0x21d0f5('0xda9'),_0x21d0f5('0x142d'),'Auth','license',_0x21d0f5('0x23e1')];function _0x26aafa(_0x2a4bfb,_0x3931c0,_0x42ee53,_0x5d6040,_0x12cd13,_0x567a90,_0x1a3411,_0x4f34fd,_0x44ab4d,_0x19f64c,_0x451215,_0x3b0a7f,_0x394630,_0x18a9c1,_0x3951bb,_0x2217e4,_0x2187cf){const _0xc19aee=_0x21d0f5,_0x328fb4=this;_0x328fb4[_0xc19aee('0x17ff')]=_0x2217e4,_0x328fb4[_0xc19aee('0x23e1')]=_0x2187cf,_0x328fb4[_0xc19aee('0x32a')]=_0x3951bb[_0xc19aee('0x2428')](),_0x328fb4[_0xc19aee('0x1401')]=_0x44ab4d||{'count':0x0,'rows':[]},_0x328fb4[_0xc19aee('0x25bc')]=_0x19f64c,_0x328fb4[_0xc19aee('0x1d63')]=_0x451215&&_0x451215[_0xc19aee('0x27d2')]==0x1?_0x451215[_0xc19aee('0x19b2')][0x0]:null,_0x328fb4[_0xc19aee('0xb25')]=_0x3951bb[_0xc19aee('0x1530')](_0x328fb4[_0xc19aee('0x1d63')]?_0x328fb4['userProfileSection']['crudPermissions']:null),_0x328fb4[_0xc19aee('0x13e8')]=_0xc19aee('0x1401'),_0x328fb4[_0xc19aee('0x724')]='',_0x328fb4[_0xc19aee('0xe3c')]=null,_0x328fb4[_0xc19aee('0xe10')]=[],_0x328fb4['query']={'fields':_0xc19aee('0xc0c'),'role':_0xc19aee('0x18c4'),'sort':_0xc19aee('0x1c74'),'limit':0xa,'page':0x1},_0x328fb4[_0xc19aee('0x21f5')]=_0x36f548()[_0xc19aee('0x2130')]([{'option':_0xc19aee('0xec3'),'value':'0'},{'option':_0xc19aee('0x91e'),'value':'1'},{'option':'WebRTC','value':'2'}],function(_0x58cb56){const _0x121601=_0xc19aee;return _0x36f548()[_0x121601('0x814')](_0x58cb56[_0x121601('0x10cc')],new RegExp('\x27','g'),'');}),_0x328fb4[_0xc19aee('0x1bf5')]=_0x36f548()['keyBy']([{'option':_0xc19aee('0x1afa'),'value':_0xc19aee('0xa54')},{'option':_0xc19aee('0x10fc'),'value':_0xc19aee('0x1129')},{'option':'ws','value':_0xc19aee('0x1a9f'),'ngIf':'vm.agent.showWebBar\x20==\x201'},{'option':'wss','value':'\x27wss\x27','ngIf':_0xc19aee('0x1010')},{'option':'tls','value':_0xc19aee('0x735'),'ngIf':_0xc19aee('0x1010')}],function(_0x42d765){return _0x36f548()['replace'](_0x42d765['value'],new RegExp('\x27','g'),'');}),_0x328fb4[_0xc19aee('0x192f')]=_0x36f548()[_0xc19aee('0x2130')]([{'option':_0xc19aee('0x19cf'),'value':_0xc19aee('0xe5')},{'option':_0xc19aee('0x1219'),'value':_0xc19aee('0x1cc1')},{'option':_0xc19aee('0xf6'),'value':'\x27yes\x27'},{'option':'no','value':_0xc19aee('0x19bb')},{'option':'never','value':_0xc19aee('0x1d91')},{'option':_0xc19aee('0x17d8'),'value':_0xc19aee('0x2191')}],function(_0x501abf){const _0x99ad5c=_0xc19aee;return _0x36f548()['replace'](_0x501abf[_0x99ad5c('0x10cc')],new RegExp('\x27','g'),'');}),_0x328fb4['arraytype']=_0x36f548()[_0xc19aee('0x2130')]([{'option':'Friend','value':_0xc19aee('0x26d2')},{'option':'User','value':_0xc19aee('0xbd6')},{'option':_0xc19aee('0x1a90'),'value':'\x27peer\x27'}],function(_0x5affe7){const _0x93dd0a=_0xc19aee;return _0x36f548()[_0x93dd0a('0x814')](_0x5affe7['value'],new RegExp('\x27','g'),'');}),_0x328fb4[_0xc19aee('0x1bb6')]=_0x36f548()[_0xc19aee('0x2130')]([{'option':_0xc19aee('0x194f'),'value':'\x27ulaw\x27'},{'option':'alaw','value':_0xc19aee('0x2750')},{'option':'gsm','value':'\x27gsm\x27'},{'option':_0xc19aee('0x2709'),'value':_0xc19aee('0x18e0')},{'option':_0xc19aee('0x8de'),'value':_0xc19aee('0x212e')},{'option':_0xc19aee('0xb90'),'value':_0xc19aee('0xeeb')},{'option':_0xc19aee('0x16b4'),'value':_0xc19aee('0x6d8')}],function(_0xd44219){const _0x5edf26=_0xc19aee;return _0x36f548()[_0x5edf26('0x814')](_0xd44219[_0x5edf26('0x10cc')],new RegExp('\x27','g'),'');}),_0x328fb4[_0xc19aee('0xdff')]=_0x36f548()['keyBy']([{'option':_0xc19aee('0xaa2'),'value':'\x27yes\x27'},{'option':'No','value':_0xc19aee('0x19bb')},{'option':_0xc19aee('0xbf9'),'value':_0xc19aee('0x538')}],function(_0x481ce5){const _0x5dd99e=_0xc19aee;return _0x36f548()['replace'](_0x481ce5[_0x5dd99e('0x10cc')],new RegExp('\x27','g'),'');}),_0x328fb4[_0xc19aee('0x973')]=_0x36f548()[_0xc19aee('0x2130')]([{'option':'Inactive','value':'\x27\x27'},{'option':_0xc19aee('0x519'),'value':_0xc19aee('0x20ce')},{'option':'wav49','value':'\x27WAV\x27'},{'option':'gsm','value':_0xc19aee('0x5af')}],function(_0x3e5f78){const _0x3490cb=_0xc19aee;return _0x36f548()[_0x3490cb('0x814')](_0x3e5f78[_0x3490cb('0x10cc')],new RegExp('\x27','g'),'');}),_0x328fb4[_0xc19aee('0x757')]=_0x19a3bd,_0x328fb4[_0xc19aee('0x11b8')]=_0x1ce259,_0x328fb4[_0xc19aee('0x549')]=_0x2b712e,_0x328fb4['success']=_0x2c8784,_0x328fb4[_0xc19aee('0x2783')]=_0x245df6,_0x328fb4[_0xc19aee('0x847')]=_0x4e57be,_0x328fb4[_0xc19aee('0x2a8')]=_0x5b02b4,_0x328fb4[_0xc19aee('0x1888')]=_0x3b81d5,_0x328fb4[_0xc19aee('0x89e')]=_0x4ab083,_0x328fb4[_0xc19aee('0x2325')]=_0x966f83,_0x328fb4['selectAllAgents']=_0x317df4;function _0x19a3bd(_0x2beec8){const _0x22b170=_0xc19aee;_0x42ee53['go'](_0x22b170('0xb15'),{'id':_0x2beec8['id'],'agent':_0x2beec8,'crudPermissions':_0x328fb4[_0x22b170('0xb25')]});}function _0x1ce259(_0x2e8f66,_0x4c67c6){const _0xd95888=_0xc19aee;_0x12cd13['show']({'controller':_0xd95888('0x2235'),'controllerAs':'vm','templateUrl':_0x43ea8c,'parent':angular['element'](_0x567a90[_0xd95888('0x1d2')]),'targetEvent':_0x4c67c6,'clickOutsideToClose':!![],'locals':{'agent':_0x2e8f66,'agents':_0x328fb4[_0xd95888('0x1401')]?_0x328fb4[_0xd95888('0x1401')][_0xd95888('0x19b2')]:[],'crudPermissions':_0x328fb4[_0xd95888('0xb25')]}});}function _0x2b712e(_0x44fe2a,_0x4e81ea){const _0x47dae1=_0xc19aee,_0x38e77f=_0x12cd13[_0x47dae1('0x132b')]()[_0x47dae1('0x134b')](_0x47dae1('0x1796')+_0x36f548()[_0x47dae1('0x13cf')](_0x47dae1('0x18c4'))+'?')[_0x47dae1('0x1d03')](_0x47dae1('0x2061')+(_0x44fe2a[_0x47dae1('0x1909')]||_0x47dae1('0x18c4'))+'
    '+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x47dae1('0x2472'))[_0x47dae1('0x1e25')](_0x4e81ea)['ok']('OK')[_0x47dae1('0x26c9')](_0x47dae1('0x772'));_0x12cd13[_0x47dae1('0xb9')](_0x38e77f)[_0x47dae1('0x11bf')](function(){_0x5b02b4(_0x44fe2a);},function(){const _0x1d85e8=_0x47dae1;console[_0x1d85e8('0xc78')](_0x1d85e8('0x772'));});}let _0x4441d4=!![],_0x119a87=0x1;_0x2a4bfb[_0xc19aee('0x2087')]('vm.query.filter',function(_0x298096,_0x1f489c){const _0x223f0a=_0xc19aee;_0x4441d4?_0x1a3411(function(){_0x4441d4=![];}):(!_0x1f489c&&(_0x119a87=_0x328fb4[_0x223f0a('0x1f2a')]['page']),_0x298096!==_0x1f489c&&(_0x328fb4['query'][_0x223f0a('0x1c2')]=0x1),!_0x298096&&(_0x328fb4[_0x223f0a('0x1f2a')][_0x223f0a('0x1c2')]=_0x119a87),_0x328fb4[_0x223f0a('0x2783')]());});function _0x2c8784(_0x44e8fb){const _0x43f4b5=_0xc19aee;_0x328fb4[_0x43f4b5('0x1401')]=_0x44e8fb||{'count':0x0,'rows':[]};}function _0x245df6(){const _0x4d6f75=_0xc19aee;_0x328fb4['query']['offset']=(_0x328fb4[_0x4d6f75('0x1f2a')]['page']-0x1)*_0x328fb4[_0x4d6f75('0x1f2a')]['limit'],_0x3951bb['hasRole']('admin')?_0x328fb4['promise']=_0x3b0a7f[_0x4d6f75('0x21d9')]['get'](_0x328fb4['query'],_0x2c8784)[_0x4d6f75('0x1549')]:(_0x328fb4['query']['id']=_0x328fb4['userProfile']['id'],_0x328fb4[_0x4d6f75('0x1f2a')][_0x4d6f75('0xe6')]='Agents',_0x328fb4['promise']=_0x3b0a7f[_0x4d6f75('0x25bc')][_0x4d6f75('0x228e')](_0x328fb4[_0x4d6f75('0x1f2a')],_0x2c8784)[_0x4d6f75('0x1549')]);}function _0x4e57be(_0x15cb2d,_0x10ee74){const _0x2f549f=_0xc19aee;_0x12cd13[_0x2f549f('0xb9')]({'controller':_0x2f549f('0x1de7'),'controllerAs':'vm','templateUrl':_0x1013da,'parent':angular[_0x2f549f('0x1e73')](_0x567a90['body']),'targetEvent':_0x15cb2d,'clickOutsideToClose':!![],'locals':{'agent':_0x10ee74,'agents':_0x328fb4['agents'][_0x2f549f('0x19b2')],'license':_0x328fb4[_0x2f549f('0x17ff')],'setting':_0x328fb4['setting'],'crudPermissions':_0x328fb4[_0x2f549f('0xb25')]}});}function _0x5b02b4(_0x15b411){const _0x57ff49=_0xc19aee;_0x3b0a7f[_0x57ff49('0x21d9')]['delete']({'id':_0x15b411['id']})['$promise'][_0x57ff49('0x11bf')](function(){const _0xca9607=_0x57ff49;_0x36f548()[_0xca9607('0x14a5')](_0x328fb4[_0xca9607('0x1401')]['rows'],{'id':_0x15b411['id']}),_0x328fb4[_0xca9607('0x1401')][_0xca9607('0x27d2')]-=0x1,!_0x328fb4[_0xca9607('0x1401')][_0xca9607('0x19b2')]['length']&&_0x328fb4[_0xca9607('0x2783')](),_0x18a9c1['success']({'title':_0x36f548()[_0xca9607('0x13cf')]('Agent')+_0xca9607('0x2113'),'msg':_0x15b411[_0xca9607('0x1909')]?_0x15b411[_0xca9607('0x1909')]+_0xca9607('0x433'):''});})[_0x57ff49('0x151d')](function(_0x2682f1){const _0x2fe53d=_0x57ff49;if(_0x2682f1[_0x2fe53d('0x4e8')]&&_0x2682f1[_0x2fe53d('0x4e8')][_0x2fe53d('0x120f')]&&_0x2682f1[_0x2fe53d('0x4e8')]['errors']['length']){_0x328fb4[_0x2fe53d('0x120f')]=_0x2682f1[_0x2fe53d('0x4e8')][_0x2fe53d('0x120f')]||[{'message':_0x2682f1[_0x2fe53d('0xaab')](),'type':_0x2fe53d('0x1eaf')}];for(let _0x46ff7a=0x0;_0x46ff7a<_0x2682f1[_0x2fe53d('0x4e8')][_0x2fe53d('0x120f')][_0x2fe53d('0x1e22')];_0x46ff7a++){_0x18a9c1['error']({'title':_0x2682f1[_0x2fe53d('0x4e8')][_0x2fe53d('0x120f')][_0x46ff7a]['type'],'msg':_0x2682f1[_0x2fe53d('0x4e8')]['errors'][_0x46ff7a][_0x2fe53d('0x1b86')]});}}else _0x18a9c1[_0x2fe53d('0x255')]({'title':_0x2682f1[_0x2fe53d('0xff9')]?'API:'+_0x2682f1['status']+_0x2fe53d('0xb0b')+_0x2682f1[_0x2fe53d('0x212f')]:_0x2fe53d('0x1eaf'),'msg':_0x2682f1['data']?JSON['stringify'](_0x2682f1[_0x2fe53d('0x4e8')][_0x2fe53d('0x1b86')]):_0x2682f1[_0x2fe53d('0x1b86')]||_0x2682f1['toString']()});});}function _0x3b81d5(){const _0x442410=_0xc19aee,_0x25ae65=angular[_0x442410('0x6fb')](_0x328fb4[_0x442410('0xe10')]);return _0x328fb4['selectedAgents']=[],_0x25ae65;}function _0x4ab083(_0xd00bfc){const _0x460ceb=_0xc19aee,_0x22aaab=_0x12cd13[_0x460ceb('0x132b')]()[_0x460ceb('0x134b')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20agents?')['htmlContent'](_0x460ceb('0x2061')+_0x328fb4[_0x460ceb('0xe10')][_0x460ceb('0x1e22')]+_0x460ceb('0xac6')+_0x460ceb('0x1a'))[_0x460ceb('0xb2e')]('delete\x20Agents')[_0x460ceb('0x1e25')](_0xd00bfc)['ok']('OK')['cancel'](_0x460ceb('0x772'));_0x12cd13[_0x460ceb('0xb9')](_0x22aaab)[_0x460ceb('0x11bf')](function(){const _0x46c24f=_0x460ceb;_0x328fb4['selectedAgents'][_0x46c24f('0x1f88')](function(_0x5051bc){_0x5b02b4(_0x5051bc);}),_0x328fb4['selectedAgents']=[];});}function _0x966f83(){const _0x30e498=_0xc19aee;_0x328fb4[_0x30e498('0xe10')]=[];}function _0x317df4(){const _0x213a59=_0xc19aee;_0x328fb4[_0x213a59('0xe10')]=_0x328fb4[_0x213a59('0x1401')][_0x213a59('0x19b2')];}}const _0x4a89fa=_0x26aafa;_0x3c9a29[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),'$state',_0x21d0f5('0x16b9'),_0x21d0f5('0x1ca2'),'$q','$translate',_0x21d0f5('0x142d'),_0x21d0f5('0x1401'),'agent',_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),'license',_0x21d0f5('0x23e1'),'crudPermissions'];function _0x3c9a29(_0x37beff,_0x29585e,_0x1cf437,_0x209b6d,_0x48a6d6,_0x2da11a,_0x4b716a,_0x5e25c8,_0x1a96c5,_0x56d864,_0x508620,_0x519e11,_0x123754,_0x481b81){const _0x20d2b8=_0x21d0f5,_0x1b375f=this;_0x1b375f[_0x20d2b8('0x32a')]=_0x508620['getCurrentUser'](),_0x1b375f[_0x20d2b8('0x120f')]=[],_0x1b375f[_0x20d2b8('0x23e1')]=_0x123754,_0x1b375f[_0x20d2b8('0x17ff')]=_0x519e11,_0x1b375f[_0x20d2b8('0xb25')]=_0x481b81,_0x1b375f[_0x20d2b8('0x2c9')]={},_0x1b375f[_0x20d2b8('0x2834')]=_0x1b375f[_0x20d2b8('0x23e1')]&&_0x1b375f[_0x20d2b8('0x23e1')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1b375f[_0x20d2b8('0x134b')]=_0x20d2b8('0xbe9'),_0x1b375f[_0x20d2b8('0x18c4')]=angular['copy'](_0x1a96c5),_0x1b375f[_0x20d2b8('0x1401')]=_0x5e25c8,_0x1b375f[_0x20d2b8('0x1f44')]=![];!_0x1b375f['agent']&&(_0x1b375f[_0x20d2b8('0x18c4')]={'role':_0x20d2b8('0x18c4'),'showWebBar':'0','autointernal':!![],'type':_0x20d2b8('0xfed'),'context':'from-sip','phoneBarRemoteControl':!![],'phoneBarRemoteControlPort':0x26a0,'allowmessenger':!![]},_0x1b375f['title']='STAFF.NEW_AGENT',_0x1b375f['newAgent']=!![]);_0x1b375f['addNewAgent']=_0x551079,_0x1b375f['saveAgent']=_0x2b4001,_0x1b375f[_0x20d2b8('0x2a8')]=_0x5e9ee2,_0x1b375f[_0x20d2b8('0x1bd1')]=_0x173e81,_0x1b375f['closeDialog']=_0x1a0811;function _0x551079(){const _0x14f7d8=_0x20d2b8;_0x1b375f[_0x14f7d8('0x120f')]=[],_0x56d864[_0x14f7d8('0x21d9')][_0x14f7d8('0x259')](_0x1b375f[_0x14f7d8('0x18c4')])[_0x14f7d8('0x1549')][_0x14f7d8('0x11bf')](function(_0x35f612){const _0x4d255a=_0x14f7d8;_0x1b375f[_0x4d255a('0x1401')][_0x4d255a('0x880')](_0x35f612[_0x4d255a('0x2866')]()),_0x4b716a[_0x4d255a('0x2693')]({'title':_0x4d255a('0x158c'),'msg':_0x1b375f[_0x4d255a('0x18c4')][_0x4d255a('0x1909')]?_0x1b375f[_0x4d255a('0x18c4')][_0x4d255a('0x1909')]+_0x4d255a('0x7fb'):''}),_0x1a0811(_0x35f612);})[_0x14f7d8('0x151d')](function(_0x2eddea){const _0x18afbf=_0x14f7d8;if(_0x2eddea[_0x18afbf('0x4e8')]&&_0x2eddea[_0x18afbf('0x4e8')][_0x18afbf('0x120f')]&&_0x2eddea['data'][_0x18afbf('0x120f')][_0x18afbf('0x1e22')]){_0x1b375f[_0x18afbf('0x120f')]=_0x2eddea[_0x18afbf('0x4e8')][_0x18afbf('0x120f')]||[{'message':_0x2eddea['toString'](),'type':_0x18afbf('0x116')}];for(let _0x889027=0x0;_0x889027<_0x2eddea[_0x18afbf('0x4e8')]['errors'][_0x18afbf('0x1e22')];_0x889027+=0x1){_0x4b716a['error']({'title':_0x2eddea[_0x18afbf('0x4e8')]['errors'][_0x889027][_0x18afbf('0x19fd')],'msg':_0x2eddea[_0x18afbf('0x4e8')][_0x18afbf('0x120f')][_0x889027][_0x18afbf('0x1b86')]});}}else _0x4b716a['error']({'title':_0x2eddea[_0x18afbf('0xff9')]?_0x18afbf('0x574')+_0x2eddea[_0x18afbf('0xff9')]+_0x18afbf('0xb0b')+_0x2eddea[_0x18afbf('0x212f')]:_0x18afbf('0x116'),'msg':_0x2eddea[_0x18afbf('0x4e8')]?JSON['stringify'](_0x2eddea['data'][_0x18afbf('0x1b86')]):_0x2eddea['toString']()});});}function _0x2b4001(){const _0x1e93a6=_0x20d2b8;_0x1b375f[_0x1e93a6('0x120f')]=[],_0x56d864[_0x1e93a6('0x21d9')]['update']({'id':_0x1b375f['agent']['id']},_0x1b375f['agent'])['$promise'][_0x1e93a6('0x11bf')](function(_0x2bfa0a){const _0x5bca9d=_0x1e93a6,_0x1283ed=_0x36f548()['find'](_0x1b375f[_0x5bca9d('0x1401')],{'id':_0x2bfa0a['id']});_0x1283ed&&_0x36f548()[_0x5bca9d('0x47b')](_0x1283ed,_0x36f548()[_0x5bca9d('0x258')](_0x2bfa0a['toJSON'](),_0x36f548()[_0x5bca9d('0xe22')](_0x1283ed))),_0x4b716a[_0x5bca9d('0x2693')]({'title':'Agent\x20properly\x20saved!','msg':_0x1b375f['agent'][_0x5bca9d('0x1909')]?_0x1b375f[_0x5bca9d('0x18c4')]['name']+_0x5bca9d('0x1a78'):''}),_0x1a0811(_0x2bfa0a);})[_0x1e93a6('0x151d')](function(_0x2a0c8f){const _0x17b557=_0x1e93a6;if(_0x2a0c8f[_0x17b557('0x4e8')]&&_0x2a0c8f[_0x17b557('0x4e8')][_0x17b557('0x120f')]&&_0x2a0c8f[_0x17b557('0x4e8')][_0x17b557('0x120f')][_0x17b557('0x1e22')]){_0x1b375f[_0x17b557('0x120f')]=_0x2a0c8f['data'][_0x17b557('0x120f')]||[{'message':_0x2a0c8f['toString'](),'type':_0x17b557('0x165b')}];for(let _0x3be65d=0x0;_0x3be65d<_0x2a0c8f[_0x17b557('0x4e8')][_0x17b557('0x120f')][_0x17b557('0x1e22')];_0x3be65d++){_0x4b716a[_0x17b557('0x255')]({'title':_0x2a0c8f[_0x17b557('0x4e8')][_0x17b557('0x120f')][_0x3be65d][_0x17b557('0x19fd')],'msg':_0x2a0c8f[_0x17b557('0x4e8')]['errors'][_0x3be65d][_0x17b557('0x1b86')]});}}else _0x4b716a[_0x17b557('0x255')]({'title':_0x2a0c8f['status']?_0x17b557('0x574')+_0x2a0c8f[_0x17b557('0xff9')]+_0x17b557('0xb0b')+_0x2a0c8f[_0x17b557('0x212f')]:'api.user.update','msg':_0x2a0c8f[_0x17b557('0x4e8')]?JSON[_0x17b557('0x3e')](_0x2a0c8f[_0x17b557('0x4e8')]['message']):_0x2a0c8f['toString']()});});}function _0x5e9ee2(_0x5ed1d8){const _0x2413c5=_0x20d2b8;_0x1b375f[_0x2413c5('0x120f')]=[];const _0x1414f7=_0x209b6d[_0x2413c5('0x132b')]()['title'](_0x2413c5('0x1fa9'))[_0x2413c5('0x252a')](_0x2413c5('0x1d5a'))[_0x2413c5('0xb2e')](_0x2413c5('0x25f1'))['ok'](_0x2413c5('0x1167'))[_0x2413c5('0x26c9')](_0x2413c5('0x784'))[_0x2413c5('0x1e25')](_0x5ed1d8);_0x209b6d[_0x2413c5('0xb9')](_0x1414f7)[_0x2413c5('0x11bf')](function(){const _0x2b0cb2=_0x2413c5;_0x56d864['user'][_0x2b0cb2('0x2088')]({'id':_0x1b375f['agent']['id']})[_0x2b0cb2('0x1549')][_0x2b0cb2('0x11bf')](function(){const _0x5243f8=_0x2b0cb2;_0x36f548()[_0x5243f8('0x14a5')](_0x1b375f['agents'],{'id':_0x1b375f[_0x5243f8('0x18c4')]['id']}),_0x4b716a[_0x5243f8('0x2693')]({'title':_0x5243f8('0x1704'),'msg':(_0x1b375f[_0x5243f8('0x18c4')][_0x5243f8('0x1909')]||_0x5243f8('0x18c4'))+'\x20has\x20been\x20deleted!'}),_0x1a0811(_0x1b375f['agent']);})[_0x2b0cb2('0x151d')](function(_0x2f91f3){const _0xf10ba=_0x2b0cb2;if(_0x2f91f3[_0xf10ba('0x4e8')]&&_0x2f91f3['data'][_0xf10ba('0x120f')]&&_0x2f91f3[_0xf10ba('0x4e8')]['errors']['length']){_0x1b375f[_0xf10ba('0x120f')]=_0x2f91f3['data'][_0xf10ba('0x120f')]||[{'message':_0x2f91f3[_0xf10ba('0xaab')](),'type':_0xf10ba('0x1c67')}];for(let _0x340d51=0x0;_0x340d51<_0x2f91f3[_0xf10ba('0x4e8')][_0xf10ba('0x120f')][_0xf10ba('0x1e22')];_0x340d51++){_0x4b716a[_0xf10ba('0x255')]({'title':_0x2f91f3['data'][_0xf10ba('0x120f')][_0x340d51][_0xf10ba('0x19fd')],'msg':_0x2f91f3[_0xf10ba('0x4e8')][_0xf10ba('0x120f')][_0x340d51][_0xf10ba('0x1b86')]});}}else _0x4b716a[_0xf10ba('0x255')]({'title':_0x2f91f3[_0xf10ba('0xff9')]?_0xf10ba('0x574')+_0x2f91f3['status']+_0xf10ba('0xb0b')+_0x2f91f3['statusText']:_0xf10ba('0x1c67'),'msg':_0x2f91f3[_0xf10ba('0x4e8')]?JSON[_0xf10ba('0x3e')](_0x2f91f3[_0xf10ba('0x4e8')][_0xf10ba('0x1b86')]):_0x2f91f3[_0xf10ba('0x1b86')]||_0x2f91f3['toString']()});});},function(){});}function _0x173e81(_0x1dfb1b){return _0x1dfb1b===null?undefined:new Date(_0x1dfb1b);}function _0x1a0811(_0x260179){const _0x55106d=_0x20d2b8;_0x209b6d[_0x55106d('0x237e')](_0x260179);}}const _0x5221ae=_0x3c9a29;_0x15bf8f[_0x21d0f5('0x1e9a')]=['$cookies','toasty'];function _0x15bf8f(_0x3769b2,_0x4c1fdc){const _0x56e9c7=_0x21d0f5,_0x479b0a=this,_0x164fcd=0x8,_0x2181d1=_0x164fcd*0x400*0x400;_0x479b0a[_0x56e9c7('0x18c4')]={},_0x479b0a[_0x56e9c7('0xb25')],_0x479b0a[_0x56e9c7('0x1fad')]={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x2181d1,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x479b0a[_0x56e9c7('0x13b8')]={'flow':{}},_0x479b0a[_0x56e9c7('0x92e')]=![],_0x479b0a[_0x56e9c7('0x1c03')]=_0x39f025,_0x479b0a[_0x56e9c7('0x1d01')]=_0x47e831,_0x479b0a[_0x56e9c7('0x272b')]=_0x16cb6a,_0x479b0a['init']=_0x25ea37;function _0x25ea37(_0x4e42fd,_0x499b3d){const _0x59b71d=_0x56e9c7;_0x479b0a[_0x59b71d('0x18c4')]=angular[_0x59b71d('0x6fb')](_0x4e42fd),_0x479b0a[_0x59b71d('0xb25')]=typeof _0x499b3d!=='undefined'?_0x499b3d:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x479b0a['ngFlowOptions'][_0x59b71d('0xc7a')]=_0x59b71d('0x135f')+_0x479b0a[_0x59b71d('0x18c4')]['id']+_0x59b71d('0x2298'),_0x479b0a[_0x59b71d('0x18c4')][_0x59b71d('0x25e2')]=[];}function _0x39f025(_0x3c3719){const _0x5f4f68=_0x56e9c7,_0x5ced77=[_0x5f4f68('0x2043'),_0x5f4f68('0x51d')];if(!_0x36f548()[_0x5f4f68('0x55a')](_0x5ced77,_0x3c3719[_0x5f4f68('0x115f')]()))return _0x4c1fdc[_0x5f4f68('0x255')]({'title':_0x5f4f68('0x782')+_0x3c3719[_0x5f4f68('0x115f')](),'msg':_0x5f4f68('0x9bf')+_0x5ced77[_0x5f4f68('0xa04')]()}),![];if(_0x3c3719['size']>_0x2181d1)return _0x4c1fdc[_0x5f4f68('0x255')]({'title':_0x5f4f68('0xc56'),'msg':_0x5f4f68('0x686')+_0x164fcd+'MB'}),![];const _0xc559c3={'id':_0x3c3719['uniqueIdentifier'],'file':_0x3c3719,'type':'uploading'};return _0x479b0a[_0x5f4f68('0x18c4')][_0x5f4f68('0x25e2')][_0x5f4f68('0x880')](_0xc559c3),!![];}function _0x47e831(){const _0x4dfe5a=_0x56e9c7;_0x479b0a[_0x4dfe5a('0x13b8')][_0x4dfe5a('0x2414')][_0x4dfe5a('0x2440')]['headers']={'X-Requested-With':_0x4dfe5a('0x19a7'),'Authorization':_0x4dfe5a('0x2723')+_0x3769b2['get'](_0x4dfe5a('0xc2b'))},_0x479b0a[_0x4dfe5a('0x13b8')][_0x4dfe5a('0x2414')][_0x4dfe5a('0x1d01')]();}function _0x16cb6a(_0x5dc4bf){const _0x573ccd=_0x56e9c7;angular[_0x573ccd('0x1f88')](_0x479b0a[_0x573ccd('0x18c4')][_0x573ccd('0x25e2')],function(_0x9bcd94){const _0x1a8239=_0x573ccd;if(_0x9bcd94['id']===_0x5dc4bf[_0x1a8239('0x40b')]){const _0x47762f=new FileReader();_0x47762f['readAsDataURL'](_0x9bcd94[_0x1a8239('0x2889')][_0x1a8239('0x2889')]),_0x47762f[_0x1a8239('0x1403')]=function(_0x227440){const _0x1f8b11=_0x1a8239;_0x9bcd94[_0x1f8b11('0x259e')]=_0x227440['target']['result'];},_0x9bcd94[_0x1a8239('0x19fd')]='image';}});}}const _0x4ea9ca=_0x15bf8f;_0x3e944e[_0x21d0f5('0x1e9a')]=['$scope',_0x21d0f5('0x1ca2'),_0x21d0f5('0x142d'),_0x21d0f5('0x12a5'),'agent','setting','Auth'];function _0x3e944e(_0x79255b,_0x50eb21,_0x34e239,_0x42a508,_0x218b9d,_0x5ab335,_0x85cdb2){const _0x3f7195=_0x21d0f5,_0x16ab24=this;_0x16ab24[_0x3f7195('0x32a')]=_0x85cdb2[_0x3f7195('0x2428')](),_0x16ab24[_0x3f7195('0x120f')]=[],_0x16ab24[_0x3f7195('0x23e1')]=_0x5ab335,_0x16ab24[_0x3f7195('0x2834')]=_0x16ab24[_0x3f7195('0x23e1')][_0x3f7195('0x1d4')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x16ab24[_0x3f7195('0x18c4')]=_0x218b9d,_0x16ab24[_0x3f7195('0x74')]='',_0x16ab24[_0x3f7195('0x238')]='',_0x16ab24[_0x3f7195('0x1a8')]=_0x443ff6,_0x16ab24['closeDialog']=_0x8bbb9b,_0x79255b['$watch'](_0x3f7195('0x1524'),function(_0x3d0b49){const _0x10fbf4=_0x3f7195;!_0x36f548()[_0x10fbf4('0x1a80')](_0x16ab24['oldPassword'])&&(_0x3d0b49===_0x16ab24[_0x10fbf4('0x238')]?_0x79255b['agentForm'][_0x10fbf4('0x74')][_0x10fbf4('0x1a7f')](_0x10fbf4('0xa0a'),![]):_0x79255b[_0x10fbf4('0xeb9')][_0x10fbf4('0x74')][_0x10fbf4('0x1a7f')](_0x10fbf4('0xa0a'),!![]));});function _0x443ff6(){const _0x360747=_0x3f7195;_0x16ab24[_0x360747('0x120f')]=[];const _0x40a961={'id':_0x16ab24['agent']['id'],'newPassword':_0x16ab24[_0x360747('0x74')]};_0x16ab24[_0x360747('0x32a')]['id']==_0x16ab24[_0x360747('0x18c4')]['id']&&(_0x40a961[_0x360747('0x238')]=_0x16ab24[_0x360747('0x238')]),_0x42a508['user'][_0x360747('0x2a6')](_0x40a961)[_0x360747('0x1549')][_0x360747('0x11bf')](function(){const _0x560aab=_0x360747;_0x34e239[_0x560aab('0x2693')]({'title':_0x560aab('0x25de')}),_0x8bbb9b();})['catch'](function(_0x23c6ff){const _0x2b5784=_0x360747;_0x34e239['error']({'title':_0x23c6ff[_0x2b5784('0xff9')]?_0x2b5784('0x574')+_0x23c6ff[_0x2b5784('0xff9')]+_0x2b5784('0xb0b')+_0x23c6ff['statusText']:_0x2b5784('0x237'),'msg':_0x23c6ff[_0x2b5784('0x4e8')]?JSON[_0x2b5784('0x3e')](_0x23c6ff['data'][_0x2b5784('0x1b86')]):_0x23c6ff[_0x2b5784('0xaab')]()}),_0x16ab24[_0x2b5784('0x120f')]=_0x23c6ff['data'][_0x2b5784('0x120f')]||[{'message':_0x23c6ff[_0x2b5784('0xaab')](),'type':_0x2b5784('0x6c7')}];});}function _0x8bbb9b(){_0x50eb21['hide']();}}const _0x201a04=_0x3e944e;_0x42765d[_0x21d0f5('0x1e9a')]=['$document',_0x21d0f5('0x1ca2'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1db0'),_0x21d0f5('0x142d')];function _0x42765d(_0xe3beb6,_0x1489a4,_0x4d5626,_0x940cff,_0x4dc0f8){const _0x94718d=_0x21d0f5,_0x15d6b9=this;_0x15d6b9[_0x94718d('0x18c4')]={},_0x15d6b9[_0x94718d('0x7f1')]=_0x940cff[_0x94718d('0x132c')](),_0x15d6b9[_0x94718d('0xb25')],_0x15d6b9[_0x94718d('0x286f')]=_0x4de4ac,_0x15d6b9[_0x94718d('0x1c43')]=_0x2db9e8;function _0x4de4ac(_0x2a8805,_0x3a6cdd){const _0x2cfd1b=_0x94718d;_0x15d6b9[_0x2cfd1b('0x18c4')]=_0x2a8805,_0x15d6b9['crudPermissions']=typeof _0x3a6cdd!==_0x2cfd1b('0x13e9')?_0x3a6cdd:{'readOnly':!![],'canEdit':![],'canDelete':![]};}function _0x2db9e8(_0x2535c4,_0x48be39){const _0x194b87=_0x94718d,_0x1e55be=_0x48be39||_0x2535c4;if(_0x1e55be[_0x194b87('0x1f0a')]){if(_0x48be39)_0x48be39['enabled']=!![],_0x15d6b9[_0x194b87('0x18c4')]['permissions'][_0x194b87('0x105d')](_0x48be39['id']);else for(let _0x2986a8=0x0;_0x2986a8<_0x2535c4[_0x194b87('0xbc5')]['length'];_0x2986a8++){_0x2535c4[_0x194b87('0xbc5')][_0x2986a8]['enabled']=!![],_0x15d6b9[_0x194b87('0x18c4')][_0x194b87('0x715')]['push'](_0x2535c4['children'][_0x2986a8]['id']);}_0x2535c4[_0x194b87('0x1f0a')]=!![],_0x15d6b9[_0x194b87('0x18c4')][_0x194b87('0x715')][_0x194b87('0x105d')](_0x2535c4['id']);}else{if(_0x48be39)_0x48be39[_0x194b87('0x1f0a')]=![],_0x36f548()[_0x194b87('0x14a5')](_0x15d6b9[_0x194b87('0x18c4')]['permissions'],function(_0x4c3765){return _0x48be39['id']===_0x4c3765;}),_0x36f548()[_0x194b87('0xdb4')](_0x2535c4[_0x194b87('0xbc5')],{'enabled':![]})['length']===_0x2535c4[_0x194b87('0xbc5')]['length']&&(_0x2535c4['enabled']=![],_0x36f548()[_0x194b87('0x14a5')](_0x15d6b9[_0x194b87('0x18c4')]['permissions'],function(_0x4b4dce){return _0x2535c4['id']===_0x4b4dce;}));else{_0x2535c4[_0x194b87('0x1f0a')]=![],_0x36f548()[_0x194b87('0x14a5')](_0x15d6b9[_0x194b87('0x18c4')][_0x194b87('0x715')],function(_0x354bff){return _0x2535c4['id']===_0x354bff;});for(let _0x19f32b=0x0;_0x19f32b<_0x2535c4[_0x194b87('0xbc5')][_0x194b87('0x1e22')];_0x19f32b++){_0x2535c4[_0x194b87('0xbc5')][_0x19f32b]['enabled']=![],_0x36f548()[_0x194b87('0x14a5')](_0x15d6b9['agent'][_0x194b87('0x715')],function(_0x3a1f93){return _0x2535c4['children'][_0x19f32b]['id']===_0x3a1f93;});}}}return _0x4d5626['user'][_0x194b87('0x5ab')]({'id':_0x15d6b9[_0x194b87('0x18c4')]['id'],'permissions':_0x36f548()[_0x194b87('0x2725')](_0x15d6b9[_0x194b87('0x18c4')][_0x194b87('0x715')])})['$promise'][_0x194b87('0x11bf')](function(){const _0x26db36=_0x194b87;_0x4dc0f8['success']({'title':_0x26db36('0x8b9'),'msg':_0x15d6b9[_0x26db36('0x18c4')][_0x26db36('0x1909')]?_0x15d6b9[_0x26db36('0x18c4')][_0x26db36('0x1909')]+_0x26db36('0xd7'):''});})['catch'](function(_0xfb7d2c){const _0x515f16=_0x194b87;console[_0x515f16('0x255')](_0xfb7d2c);});}}const _0x2220bf=_0x42765d;_0x3fce98[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1ca2'),'$q','toasty',_0x21d0f5('0x12a5'),_0x21d0f5('0x18c4'),_0x21d0f5('0xd12'),_0x21d0f5('0x7d5'),_0x21d0f5('0xb6b'),_0x21d0f5('0x1150'),_0x21d0f5('0xb25')];function _0x3fce98(_0x1ef7cf,_0x1ea720,_0x3ba4cd,_0x5f1ea0,_0x348ee1,_0xb77572,_0x55614c,_0x4a3750,_0x25ee60,_0x3fcac0){const _0x25d2ed=_0x21d0f5,_0x132663=this;_0x132663[_0x25d2ed('0x32a')]=_0x25ee60[_0x25d2ed('0x2428')](),_0x132663[_0x25d2ed('0x18c4')]=_0x348ee1,_0x132663['crudPermissions']=_0x3fcac0,_0x132663['penalty']=0x0,_0x132663[_0x25d2ed('0xd12')]=_0xb77572,_0x132663[_0x25d2ed('0x7d5')]=_0x55614c,_0x132663['apiName']=_0x132663[_0x25d2ed('0xd12')]+_0x25d2ed('0x1c29'),_0x132663['title']=_0x4a3750[_0x25d2ed('0x10c2')](_0x25d2ed('0x237d')+_0x132663[_0x25d2ed('0xd12')][_0x25d2ed('0xa6f')]()+'_'+_0x132663[_0x25d2ed('0x7d5')][_0x25d2ed('0xa6f')]()),_0x132663[_0x25d2ed('0x22')]=[],_0x132663[_0x25d2ed('0x63')]=[],_0x132663[_0x25d2ed('0x26cc')]=[],_0x132663[_0x25d2ed('0x1c6f')]=[],_0x132663['startingSelectedItems']=[],_0x132663['pendingChanges']=![],_0x132663['dualMultiselectOptions']={'readOnly':!_0x132663['crudPermissions'][_0x25d2ed('0x25db')],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x25d2ed('0x1909'),'line1':_0x25d2ed('0x1909'),'line2':_0x25d2ed('0x19fd'),'line3':_0x132663[_0x25d2ed('0xd12')]===_0x25d2ed('0x1bc3')?_0x25d2ed('0xf47'):'','labelAll':_0x4a3750[_0x25d2ed('0x10c2')]('STAFF.ALL_QUEUES_'+_0x132663[_0x25d2ed('0xd12')][_0x25d2ed('0xa6f')]()+'_'+_0x132663[_0x25d2ed('0x7d5')][_0x25d2ed('0xa6f')]()),'labelSelected':_0x4a3750[_0x25d2ed('0x10c2')](_0x25d2ed('0xd45')+_0x132663[_0x25d2ed('0xd12')]['toUpperCase']()+'_'+_0x132663[_0x25d2ed('0x7d5')][_0x25d2ed('0xa6f')]()),'transferCallback':function(_0x2bcc82,_0x5f4071){const _0x4ba300=_0x25d2ed;_0x5f4071?_0x2bcc82[_0x4ba300('0x1f88')](function(_0x183b05){const _0x563e70=_0x4ba300;_0x183b05[_0x563e70('0xf47')]=undefined;}):_0x2bcc82[_0x4ba300('0x1f88')](function(_0x145297){const _0xec5f0b=_0x4ba300;_0x145297[_0xec5f0b('0xf47')]='penalty\x20'+_0x132663[_0xec5f0b('0xf47')];});const _0x41de99=_0x36f548()['xorWith'](_0x132663[_0x4ba300('0x21ed')],_0x132663[_0x4ba300('0x26cc')],function(_0x599738,_0x567934){const _0xf71bf0=_0x4ba300;return _0x599738['id']===_0x567934['id']&&_0x599738[_0xf71bf0('0xf47')]===_0x567934[_0xf71bf0('0xf47')];});_0x132663[_0x4ba300('0x1eda')]=_0x36f548()[_0x4ba300('0x1fc5')](_0x41de99)?![]:!![];}},_0x132663[_0x25d2ed('0x277c')]=_0x580519,_0x132663['saveQueues']=_0x168e67,_0x132663[_0x25d2ed('0xc4e')]=_0x5b7386;function _0x580519(){const _0x5a50a9=_0x25d2ed;return _0x25ee60[_0x5a50a9('0x4ee')]('admin')?_0xdb25e9()[_0x5a50a9('0x151d')](function(_0x2578de){const _0x402d8a=_0x5a50a9;_0x3ba4cd[_0x402d8a('0x255')]({'title':_0x2578de[_0x402d8a('0xff9')]?_0x402d8a('0x574')+_0x2578de[_0x402d8a('0xff9')]+_0x402d8a('0xb0b')+_0x2578de[_0x402d8a('0x212f')]:_0x402d8a('0x23e0'),'msg':_0x2578de[_0x402d8a('0xff9')]?JSON[_0x402d8a('0x3e')](_0x2578de['data']):_0x2578de['toString']()});}):_0x568535()[_0x5a50a9('0x11bf')](function(_0x2cbac){const _0x5a5c6e=_0x5a50a9;return _0x132663[_0x5a5c6e('0xe6')]=_0x2cbac,_0xdb25e9();})[_0x5a50a9('0x151d')](function(_0x513c4a){const _0x4175ce=_0x5a50a9;_0x3ba4cd['error']({'title':_0x513c4a[_0x4175ce('0xff9')]?_0x4175ce('0x574')+_0x513c4a[_0x4175ce('0xff9')]+'\x20-\x20'+_0x513c4a[_0x4175ce('0x212f')]:'SYSTEM:GET_QUEUES','msg':_0x513c4a[_0x4175ce('0xff9')]?JSON[_0x4175ce('0x3e')](_0x513c4a['data']):_0x513c4a['toString']()});});}function _0x568535(){return _0x1ea720(function(_0x594206,_0x12d1b6){const _0x3c46bc=a0_0xaf0c;let _0x21a4ec;switch(_0x132663[_0x3c46bc('0xd12')]){case _0x3c46bc('0x1bc3'):switch(_0x132663[_0x3c46bc('0x7d5')]){case _0x3c46bc('0x18a2'):_0x21a4ec=_0x3c46bc('0xc85');break;case _0x3c46bc('0x25b6'):_0x21a4ec=_0x3c46bc('0x1e95');break;}break;case _0x3c46bc('0x1800'):_0x21a4ec=_0x3c46bc('0x22eb');break;case _0x3c46bc('0x2030'):_0x21a4ec=_0x3c46bc('0x9af');break;case _0x3c46bc('0x4df'):_0x21a4ec=_0x3c46bc('0xf23');break;case _0x3c46bc('0xb18'):_0x21a4ec=_0x3c46bc('0xd29');break;case _0x3c46bc('0x2104'):_0x21a4ec='FaxQueues';break;}_0x5f1ea0[_0x3c46bc('0x1d63')][_0x3c46bc('0xbaa')]({'userProfileId':_0x132663['currentUser'][_0x3c46bc('0x781')],'name':_0x21a4ec})[_0x3c46bc('0x1549')]['then'](function(_0x388a81){const _0x6ef5e6=_0x3c46bc,_0xf979fa=_0x388a81&&_0x388a81[_0x6ef5e6('0x19b2')]?_0x388a81[_0x6ef5e6('0x19b2')][0x0]:null;_0x594206(_0xf979fa);})[_0x3c46bc('0x151d')](function(_0x53ed32){_0x12d1b6(_0x53ed32);});});}function _0xdb25e9(){return _0x1ea720(function(_0x44a1da,_0x155097){const _0x560709=a0_0xaf0c;return _0x485cbb()[_0x560709('0x11bf')](function(_0x3ca05c){const _0x2f02ca=_0x560709;return _0x132663['items']=_0x3ca05c[_0x2f02ca('0x19b2')]?_0x3ca05c['rows']:[],_0x25ee60[_0x2f02ca('0x4ee')]('admin')?_0x3ca05c:_0x132663[_0x2f02ca('0xe6')]?_0x132663[_0x2f02ca('0xe6')][_0x2f02ca('0xf11')]?_0x3ca05c:_0x24152a():null;})[_0x560709('0x11bf')](function(_0x1a0d97){const _0x5e1bba=_0x560709,_0x422977=_0x1a0d97&&_0x1a0d97[_0x5e1bba('0x19b2')]?_0x1a0d97[_0x5e1bba('0x19b2')]:[];return _0x132663['allowedItems']=_0x36f548()[_0x5e1bba('0x2171')](_0x422977,function(_0x213d07){const _0x316945=_0x5e1bba;return _0x36f548()[_0x316945('0x1ad4')](_0x132663[_0x316945('0x22')],{'id':_0x25ee60[_0x316945('0x4ee')](_0x316945('0xf45'))||_0x132663[_0x316945('0xe6')][_0x316945('0xf11')]?_0x213d07['id']:_0x213d07[_0x316945('0x15a5')]});}),_0x132663['startingAllowedItems']=angular[_0x5e1bba('0x6fb')](_0x132663[_0x5e1bba('0x63')]),_0x132663[_0x5e1bba('0x22')]['forEach'](function(_0x19e047){const _0x3854bd=_0x5e1bba,_0x27686d=_0x36f548()['find'](_0x132663['allowedItems'],{'id':_0x19e047['id']});_0x25ee60['hasRole'](_0x3854bd('0xf45'))?_0x19e047[_0x3854bd('0xde9')]=!![]:_0x19e047['isValid']=typeof _0x27686d!==_0x3854bd('0x13e9')?!![]:![];}),_0x493b81();})['then'](function(_0x28a203){const _0x1f0662=_0x560709,_0x3ed782=_0x28a203&&_0x28a203['rows']?_0x28a203[_0x1f0662('0x19b2')]:[];_0x132663[_0x1f0662('0x26cc')]=_0x36f548()[_0x1f0662('0x2171')](_0x3ed782,function(_0x102c7e){const _0x393ec6=_0x1f0662,_0xbed735=_0x36f548()['find'](_0x132663[_0x393ec6('0x22')],{'id':_0x102c7e['id']});return _0x132663[_0x393ec6('0xd12')]==='voice'&&(_0xbed735[_0x393ec6('0xf47')]=typeof _0xbed735!==_0x393ec6('0x13e9')&&typeof _0x102c7e[_0x393ec6('0x8')]!=='undefined'?'penalty\x20'+_0x102c7e[_0x393ec6('0x8')][_0x393ec6('0xf47')]:'penalty\x20'+0x0),_0xbed735;}),_0x132663['startingSelectedItems']=angular[_0x1f0662('0x6fb')](_0x132663[_0x1f0662('0x26cc')]),_0x132663[_0x1f0662('0xec5')]['selectedItems']=_0x132663[_0x1f0662('0x26cc')],_0x132663['dualMultiselectOptions'][_0x1f0662('0x22')]=_0x36f548()[_0x1f0662('0x2753')](_0x132663[_0x1f0662('0x63')],_0x132663[_0x1f0662('0xec5')]['selectedItems'],'id'),_0x44a1da();})[_0x560709('0x151d')](function(_0x5f25ca){_0x155097(_0x5f25ca);});});}function _0x24152a(){return _0x1ea720(function(_0x1bbd69,_0x3a294d){const _0x4ea833=a0_0xaf0c;return _0x5f1ea0[_0x4ea833('0x26d1')][_0x4ea833('0xbaa')]({'sectionId':_0x132663['section']['id'],'nolimit':!![]})[_0x4ea833('0x1549')][_0x4ea833('0x11bf')](function(_0x5be8a2){_0x1bbd69(_0x5be8a2);})[_0x4ea833('0x151d')](function(_0x36c185){_0x3a294d(_0x36c185);});});}function _0x493b81(){return _0x1ea720(function(_0x219adc,_0x2c1355){const _0x473271=a0_0xaf0c;return _0x5f1ea0[_0x473271('0x21d9')][_0x473271('0x373')]({'id':_0x132663['agent']['id'],'fields':_0x473271('0x1286'),'nolimit':!![],'type':_0x132663[_0x473271('0x7d5')],'channel':_0x132663[_0x473271('0xd12')]})[_0x473271('0x1549')][_0x473271('0x11bf')](function(_0x7edcaf){_0x219adc(_0x7edcaf);})['catch'](function(_0xd40c4a){_0x2c1355(_0xd40c4a);});});}function _0x485cbb(){return _0x1ea720(function(_0x194164,_0x1cb053){const _0x36b753=a0_0xaf0c;return _0x5f1ea0[_0x132663[_0x36b753('0x2c5')]]['get']({'fields':_0x36b753('0x18d2'),'channel':_0x132663[_0x36b753('0xd12')]==='bull'?'voice':_0x132663[_0x36b753('0xd12')],'type':_0x132663[_0x36b753('0x7d5')],'nolimit':!![]})[_0x36b753('0x1549')][_0x36b753('0x11bf')](function(_0xc999b6){_0x194164(_0xc999b6);})[_0x36b753('0x151d')](function(_0xfaa44d){_0x1cb053(_0xfaa44d);});});}function _0x3c4d04(_0x4e6f0f){return _0x1ea720(function(_0x4278f7,_0x2173ac){const _0x15d026=a0_0xaf0c;if(_0x36f548()['isEmpty'](_0x4e6f0f))_0x4278f7();else{if(_0x132663[_0x15d026('0xd12')]===_0x15d026('0x1bc3')){const _0x1cbd50=[],_0x3a3a1b=_0x36f548()[_0x15d026('0x11a5')](_0x4e6f0f,_0x15d026('0xf47'));for(let _0x280b03=0x0;_0x280b03':'',_0xb52610;}),_0x544475[_0x251bad('0x21ed')]=angular[_0x251bad('0x6fb')](_0x544475[_0x251bad('0x26cc')]),_0x544475['dualMultiselectOptions'][_0x251bad('0x26cc')]=_0x544475['selectedItems'],_0x544475[_0x251bad('0xec5')][_0x251bad('0x22')]=_0x36f548()[_0x251bad('0x2753')](_0x544475[_0x251bad('0x63')],_0x544475[_0x251bad('0xec5')][_0x251bad('0x26cc')],'id'),_0x528337();})[_0x111fce('0x151d')](function(_0x908167){_0xdcf8f0(_0x908167);});});}function _0x5ae8bc(){return _0x32407b(function(_0xf8aa69,_0x3c9c47){const _0x2b5657=a0_0xaf0c;return _0x4e500e[_0x2b5657('0x26d1')][_0x2b5657('0xbaa')]({'sectionId':_0x544475[_0x2b5657('0xe6')]['id'],'nolimit':!![]})[_0x2b5657('0x1549')][_0x2b5657('0x11bf')](function(_0x46fc30){_0xf8aa69(_0x46fc30);})[_0x2b5657('0x151d')](function(_0x384449){_0x3c9c47(_0x384449);});});}function _0x1a1ea8(){return _0x32407b(function(_0x502cd3,_0x184aa6){const _0x4cb17a=a0_0xaf0c;return _0x4e500e['team']['getAgents']({'id':_0x544475[_0x4cb17a('0xae6')]['id'],'fields':_0x4cb17a('0x13d3'),'nolimit':!![],'role':_0x4cb17a('0x18c4')})[_0x4cb17a('0x1549')]['then'](function(_0x525e24){_0x502cd3(_0x525e24);})['catch'](function(_0x55e051){_0x184aa6(_0x55e051);});});}function _0x1ba07c(){return _0x32407b(function(_0x10a412,_0x50f7df){const _0x1c1cec=a0_0xaf0c;return _0x4e500e[_0x1c1cec('0x21d9')][_0x1c1cec('0xbaa')]({'fields':_0x1c1cec('0x13d3'),'nolimit':!![],'role':_0x1c1cec('0x18c4')})[_0x1c1cec('0x1549')][_0x1c1cec('0x11bf')](function(_0x5f2bf9){_0x10a412(_0x5f2bf9);})['catch'](function(_0x3e5f99){_0x50f7df(_0x3e5f99);});});}function _0x22d6f0(_0x4e77b6){return _0x32407b(function(_0x124055,_0x1fb15b){const _0x2c0eb2=a0_0xaf0c;_0x36f548()[_0x2c0eb2('0x1fc5')](_0x4e77b6)?_0x124055():_0x4e500e[_0x2c0eb2('0xae6')][_0x2c0eb2('0x110a')]({'id':_0x544475['team']['id'],'ids':_0x36f548()['map'](_0x4e77b6,'id')})['$promise'][_0x2c0eb2('0x11bf')](function(){_0x124055();})['catch'](function(_0x17051b){_0x1fb15b(_0x17051b);});});}function _0x38c1bd(_0x32db9a){return _0x32407b(function(_0x128d2b,_0x585ec4){const _0x19cecc=a0_0xaf0c;_0x36f548()[_0x19cecc('0x1fc5')](_0x32db9a)?_0x128d2b():_0x4e500e[_0x19cecc('0xae6')][_0x19cecc('0x1ec0')]({'id':_0x544475[_0x19cecc('0xae6')]['id'],'ids':_0x36f548()[_0x19cecc('0x2171')](_0x32db9a,'id')})[_0x19cecc('0x1549')][_0x19cecc('0x11bf')](function(){_0x128d2b();})[_0x19cecc('0x151d')](function(_0x161f37){_0x585ec4(_0x161f37);});});}function _0x402d85(){const _0x25bb16=_0x4a35d6,_0x440dfa=_0x36f548()[_0x25bb16('0x2753')](_0x544475['startingSelectedItems'],_0x544475[_0x25bb16('0x26cc')],'id'),_0x561462=_0x36f548()[_0x25bb16('0x2753')](_0x544475['selectedItems'],_0x544475['startingSelectedItems'],'id');return _0x38c1bd(_0x440dfa)[_0x25bb16('0x11bf')](function(){return _0x22d6f0(_0x561462);})[_0x25bb16('0x11bf')](function(){const _0x49e01b=_0x25bb16;_0x544475['pendingChanges']=![],_0x544475[_0x49e01b('0x1c6f')]=angular[_0x49e01b('0x6fb')](_0x544475[_0x49e01b('0x63')]),_0x544475[_0x49e01b('0x21ed')]=angular[_0x49e01b('0x6fb')](_0x544475[_0x49e01b('0x26cc')]),_0x5161a7[_0x49e01b('0x2693')]({'title':_0x49e01b('0x2243'),'msg':_0x49e01b('0x2273')});})[_0x25bb16('0x151d')](function(_0x15b880){const _0xdf9a25=_0x25bb16;_0x5161a7[_0xdf9a25('0x255')]({'title':_0x15b880[_0xdf9a25('0xff9')]?_0xdf9a25('0x574')+_0x15b880['status']+'\x20-\x20'+_0x15b880[_0xdf9a25('0x212f')]:_0xdf9a25('0x1b7f'),'msg':_0x15b880[_0xdf9a25('0xff9')]?JSON['stringify'](_0x15b880[_0xdf9a25('0x4e8')]):_0x15b880['toString']()});});}function _0x112aa3(){const _0x3530a8=_0x4a35d6;_0x1965ff[_0x3530a8('0x237e')]();}}const _0x440a89=_0x41ad5f,_0x456bf9=_0x351988['p']+_0x21d0f5('0x34f'),_0x20a613=_0x351988['p']+_0x21d0f5('0x1cb2');_0xb133ed['$inject']=['$scope',_0x21d0f5('0x2143'),_0x21d0f5('0xcbc'),_0x21d0f5('0x18fe'),_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),_0x21d0f5('0x17f5'),'$translate',_0x21d0f5('0x26a2'),_0x21d0f5('0x25bc'),_0x21d0f5('0x1d63'),'api',_0x21d0f5('0xda9'),_0x21d0f5('0x142d'),_0x21d0f5('0x1150'),_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1')];function _0xb133ed(_0x45d945,_0xeae19d,_0x1d194f,_0x3ab068,_0x3d46c8,_0x2e1220,_0x3f1d93,_0x3a8c3d,_0x4c7e5d,_0x1ed011,_0x21e3c6,_0x5d9a32,_0x9e0cdd,_0x4563ce,_0x286818,_0x3ba289,_0x5da84e){const _0x4bfa5f=_0x21d0f5,_0x59c712=this;_0x59c712['license']=_0x3ba289,_0x59c712[_0x4bfa5f('0x23e1')]=_0x5da84e,_0x59c712[_0x4bfa5f('0x32a')]=_0x286818['getCurrentUser'](),_0x59c712['teams']=_0x4c7e5d||{'count':0x0,'rows':[]},_0x59c712['userProfile']=_0x1ed011,_0x59c712['userProfileSection']=_0x21e3c6&&_0x21e3c6[_0x4bfa5f('0x27d2')]==0x1?_0x21e3c6[_0x4bfa5f('0x19b2')][0x0]:null,_0x59c712[_0x4bfa5f('0xb25')]=_0x286818['parseCrudPermissions'](_0x59c712['userProfileSection']?_0x59c712[_0x4bfa5f('0x1d63')][_0x4bfa5f('0xb25')]:null),_0x59c712[_0x4bfa5f('0x13e8')]=_0x4bfa5f('0x26a2'),_0x59c712[_0x4bfa5f('0x724')]='',_0x59c712[_0x4bfa5f('0xe3c')]=null,_0x59c712[_0x4bfa5f('0x1b20')]=[],_0x59c712[_0x4bfa5f('0x1f2a')]={'fields':'createdAt,updatedAt,id,name,description','sort':_0x4bfa5f('0x1c74'),'limit':0xa,'page':0x1},_0x59c712[_0x4bfa5f('0xc03')]=_0x5db219,_0x59c712['agentadddialog']=_0x2d72ee,_0x59c712[_0x4bfa5f('0x549')]=_0x1e9f00,_0x59c712[_0x4bfa5f('0x2693')]=_0x57a285,_0x59c712[_0x4bfa5f('0x306')]=_0x1ffc87,_0x59c712[_0x4bfa5f('0x1dfc')]=_0x3cd7a7,_0x59c712['deleteTeam']=_0x4e93be,_0x59c712[_0x4bfa5f('0x16b3')]=_0x32f4d7,_0x59c712[_0x4bfa5f('0x17df')]=_0x479dbe,_0x59c712[_0x4bfa5f('0x2392')]=_0x471ec5,_0x59c712[_0x4bfa5f('0x1676')]=_0x858ae9;function _0x5db219(_0x2bf9f7,_0x2da969){const _0x7bfb4b=_0x4bfa5f;_0x3d46c8[_0x7bfb4b('0xb9')]({'controller':_0x7bfb4b('0x24c6'),'controllerAs':'vm','templateUrl':_0x456bf9,'parent':angular[_0x7bfb4b('0x1e73')](_0x2e1220[_0x7bfb4b('0x1d2')]),'targetEvent':_0x2da969,'clickOutsideToClose':!![],'locals':{'team':_0x2bf9f7,'teams':_0x59c712['teams'][_0x7bfb4b('0x19b2')],'license':_0x59c712[_0x7bfb4b('0x17ff')],'setting':null,'crudPermissions':_0x59c712['crudPermissions']}});}function _0x2d72ee(_0x3bddfe,_0xa00192){const _0x485fcc=_0x4bfa5f;_0x3d46c8[_0x485fcc('0xb9')]({'controller':_0x485fcc('0x1f5a'),'controllerAs':'vm','templateUrl':_0x20a613,'parent':angular[_0x485fcc('0x1e73')](_0x2e1220[_0x485fcc('0x1d2')]),'targetEvent':_0xa00192,'clickOutsideToClose':!![],'locals':{'team':_0x3bddfe,'teams':_0x59c712[_0x485fcc('0x26a2')]?_0x59c712[_0x485fcc('0x26a2')][_0x485fcc('0x19b2')]:[],'crudPermissions':_0x59c712[_0x485fcc('0xb25')],'realtime':![]}});}function _0x1e9f00(_0x5e2e75,_0x3b846d){const _0x35d71d=_0x4bfa5f,_0x4652ce=_0x3d46c8[_0x35d71d('0x132b')]()['title'](_0x35d71d('0x1796')+_0x36f548()[_0x35d71d('0x13cf')](_0x35d71d('0xae6'))+'?')[_0x35d71d('0x1d03')](_0x35d71d('0x2061')+(_0x5e2e75['name']||'team')+_0x35d71d('0x1c78')+_0x35d71d('0x1a'))['ariaLabel'](_0x35d71d('0x131a'))[_0x35d71d('0x1e25')](_0x3b846d)['ok']('OK')[_0x35d71d('0x26c9')]('CANCEL');_0x3d46c8[_0x35d71d('0xb9')](_0x4652ce)[_0x35d71d('0x11bf')](function(){_0x4e93be(_0x5e2e75);},function(){console['log']('CANCEL');});}let _0x17ec07=!![],_0x4322fb=0x1;_0x45d945[_0x4bfa5f('0x2087')]('vm.query.filter',function(_0x193ba7,_0xff7c2b){const _0x3d0f27=_0x4bfa5f;_0x17ec07?_0x3f1d93(function(){_0x17ec07=![];}):(!_0xff7c2b&&(_0x4322fb=_0x59c712[_0x3d0f27('0x1f2a')][_0x3d0f27('0x1c2')]),_0x193ba7!==_0xff7c2b&&(_0x59c712[_0x3d0f27('0x1f2a')]['page']=0x1),!_0x193ba7&&(_0x59c712['query'][_0x3d0f27('0x1c2')]=_0x4322fb),_0x59c712[_0x3d0f27('0x306')]());});function _0x57a285(_0x370a62){const _0x3a8f38=_0x4bfa5f;_0x59c712[_0x3a8f38('0x26a2')]=_0x370a62||{'count':0x0,'rows':[]};}function _0x1ffc87(){const _0x2499c9=_0x4bfa5f;_0x59c712[_0x2499c9('0x1f2a')][_0x2499c9('0x1393')]=(_0x59c712[_0x2499c9('0x1f2a')][_0x2499c9('0x1c2')]-0x1)*_0x59c712[_0x2499c9('0x1f2a')][_0x2499c9('0xd5c')],_0x286818[_0x2499c9('0x4ee')](_0x2499c9('0xf45'))?_0x59c712[_0x2499c9('0x13f')]=_0x5d9a32[_0x2499c9('0xae6')][_0x2499c9('0xbaa')](_0x59c712[_0x2499c9('0x1f2a')],_0x57a285)[_0x2499c9('0x1549')]:(_0x59c712[_0x2499c9('0x1f2a')]['id']=_0x59c712[_0x2499c9('0x25bc')]['id'],_0x59c712[_0x2499c9('0x1f2a')][_0x2499c9('0xe6')]=_0x2499c9('0xc3f'),_0x59c712['promise']=_0x5d9a32[_0x2499c9('0x25bc')][_0x2499c9('0x228e')](_0x59c712[_0x2499c9('0x1f2a')],_0x57a285)[_0x2499c9('0x1549')]);}function _0x3cd7a7(_0x54403f,_0x4e88b3){const _0x3a4174=_0x4bfa5f;_0x3d46c8['show']({'controller':'CreateOrEditTeamDialogController','controllerAs':'vm','templateUrl':_0x456bf9,'parent':angular['element'](_0x2e1220[_0x3a4174('0x1d2')]),'targetEvent':_0x54403f,'clickOutsideToClose':!![],'locals':{'team':_0x4e88b3,'teams':_0x59c712[_0x3a4174('0x26a2')][_0x3a4174('0x19b2')],'license':_0x59c712['license'],'setting':_0x59c712[_0x3a4174('0x23e1')],'crudPermissions':_0x59c712[_0x3a4174('0xb25')]}});}function _0x4e93be(_0x527000){const _0x242dd2=_0x4bfa5f;_0x5d9a32[_0x242dd2('0xae6')][_0x242dd2('0x2088')]({'id':_0x527000['id']})[_0x242dd2('0x1549')][_0x242dd2('0x11bf')](function(){const _0x14838a=_0x242dd2;_0x36f548()[_0x14838a('0x14a5')](_0x59c712[_0x14838a('0x26a2')]['rows'],{'id':_0x527000['id']}),_0x59c712[_0x14838a('0x26a2')][_0x14838a('0x27d2')]-=0x1,!_0x59c712['teams'][_0x14838a('0x19b2')][_0x14838a('0x1e22')]&&_0x59c712[_0x14838a('0x306')](),_0x4563ce[_0x14838a('0x2693')]({'title':_0x36f548()[_0x14838a('0x13cf')](_0x14838a('0x10d4'))+_0x14838a('0x2113'),'msg':_0x527000[_0x14838a('0x1909')]?_0x527000[_0x14838a('0x1909')]+_0x14838a('0x433'):''});})[_0x242dd2('0x151d')](function(_0x5b3eaf){const _0x284a39=_0x242dd2;if(_0x5b3eaf[_0x284a39('0x4e8')]&&_0x5b3eaf[_0x284a39('0x4e8')][_0x284a39('0x120f')]&&_0x5b3eaf[_0x284a39('0x4e8')]['errors'][_0x284a39('0x1e22')]){_0x59c712[_0x284a39('0x120f')]=_0x5b3eaf['data'][_0x284a39('0x120f')]||[{'message':_0x5b3eaf['toString'](),'type':_0x284a39('0x29c')}];for(let _0x28a83d=0x0;_0x28a83d<_0x5b3eaf['data']['errors']['length'];_0x28a83d++){_0x4563ce[_0x284a39('0x255')]({'title':_0x5b3eaf['data'][_0x284a39('0x120f')][_0x28a83d][_0x284a39('0x19fd')],'msg':_0x5b3eaf['data'][_0x284a39('0x120f')][_0x28a83d][_0x284a39('0x1b86')]});}}else _0x4563ce['error']({'title':_0x5b3eaf[_0x284a39('0xff9')]?'API:'+_0x5b3eaf[_0x284a39('0xff9')]+_0x284a39('0xb0b')+_0x5b3eaf[_0x284a39('0x212f')]:_0x284a39('0x29c'),'msg':_0x5b3eaf[_0x284a39('0x4e8')]?JSON[_0x284a39('0x3e')](_0x5b3eaf[_0x284a39('0x4e8')]['message']):_0x5b3eaf[_0x284a39('0x1b86')]||_0x5b3eaf['toString']()});});}function _0x32f4d7(){const _0x33b6c6=_0x4bfa5f,_0x13eaba=angular[_0x33b6c6('0x6fb')](_0x59c712['selectedTeams']);return _0x59c712['selectedTeams']=[],_0x13eaba;}function _0x479dbe(_0x5a0990){const _0x3ee2b2=_0x4bfa5f,_0x68edb5=_0x3d46c8['confirm']()[_0x3ee2b2('0x134b')](_0x3ee2b2('0x1bc4'))[_0x3ee2b2('0x1d03')](_0x3ee2b2('0x2061')+_0x59c712['selectedTeams'][_0x3ee2b2('0x1e22')]+_0x3ee2b2('0xac6')+'\x20will\x20be\x20deleted.')[_0x3ee2b2('0xb2e')](_0x3ee2b2('0x277'))['targetEvent'](_0x5a0990)['ok']('OK')['cancel'](_0x3ee2b2('0x772'));_0x3d46c8[_0x3ee2b2('0xb9')](_0x68edb5)[_0x3ee2b2('0x11bf')](function(){const _0x3bcd63=_0x3ee2b2;_0x59c712[_0x3bcd63('0x1b20')][_0x3bcd63('0x1f88')](function(_0x3baaed){_0x4e93be(_0x3baaed);}),_0x59c712[_0x3bcd63('0x1b20')]=[];});}function _0x471ec5(){_0x59c712['selectedTeams']=[];}function _0x858ae9(){const _0x567d15=_0x4bfa5f;_0x59c712[_0x567d15('0x1b20')]=_0x59c712[_0x567d15('0x26a2')][_0x567d15('0x19b2')];}}const _0x3e4e65=_0xb133ed;_0x549098[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),'$state',_0x21d0f5('0x16b9'),_0x21d0f5('0x1ca2'),'$q','$translate',_0x21d0f5('0x142d'),'telephones',_0x21d0f5('0x2650'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1'),_0x21d0f5('0xb25')];function _0x549098(_0x3d98a9,_0x44807e,_0x554c87,_0x2ec78c,_0x5e2b43,_0x37cf1a,_0xb70f85,_0x1f4a54,_0x1a3dda,_0x4f33ea,_0x27cf62,_0x4a84c3,_0x299815,_0x30ed4f){const _0x63757d=_0x21d0f5,_0x28bc2f=this;_0x28bc2f[_0x63757d('0x32a')]=_0x27cf62['getCurrentUser'](),_0x28bc2f['errors']=[],_0x28bc2f['setting']=_0x299815,_0x28bc2f[_0x63757d('0x17ff')]=_0x4a84c3,_0x28bc2f[_0x63757d('0xb25')]=_0x30ed4f,_0x28bc2f[_0x63757d('0x2c9')]={},_0x28bc2f['passwordPattern']=_0x28bc2f['setting']&&_0x28bc2f[_0x63757d('0x23e1')][_0x63757d('0x1d4')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x28bc2f[_0x63757d('0x134b')]=_0x63757d('0x1e44'),_0x28bc2f['telephone']=angular['copy'](_0x1a3dda),_0x28bc2f[_0x63757d('0x156e')]=_0x1f4a54,_0x28bc2f[_0x63757d('0xaf0')]=![];!_0x28bc2f['telephone']&&(_0x28bc2f['telephone']={'role':_0x63757d('0x2650'),'autointernal':!![],'context':_0x63757d('0x1fde')},_0x28bc2f[_0x63757d('0x134b')]=_0x63757d('0x81a'),_0x28bc2f[_0x63757d('0xaf0')]=!![]);_0x28bc2f[_0x63757d('0x276b')]=_0x338605,_0x28bc2f[_0x63757d('0xbc4')]=_0x5b13b6,_0x28bc2f[_0x63757d('0x10b9')]=_0x3bb4b7,_0x28bc2f[_0x63757d('0x1bd1')]=_0x1fb8d6,_0x28bc2f['closeDialog']=_0xb2fa87;function _0x338605(){const _0x2c8f2e=_0x63757d;_0x28bc2f[_0x2c8f2e('0x120f')]=[],_0x4f33ea[_0x2c8f2e('0x21d9')][_0x2c8f2e('0x259')](_0x28bc2f[_0x2c8f2e('0x2650')])[_0x2c8f2e('0x1549')][_0x2c8f2e('0x11bf')](function(_0xa0fefb){const _0x3b3f8e=_0x2c8f2e;_0x28bc2f[_0x3b3f8e('0x156e')][_0x3b3f8e('0x880')](_0xa0fefb['toJSON']()),_0xb70f85['success']({'title':_0x3b3f8e('0xeaf'),'msg':_0x28bc2f['telephone'][_0x3b3f8e('0x1909')]?_0x28bc2f['telephone']['name']+_0x3b3f8e('0x7fb'):''}),_0xb2fa87(_0xa0fefb);})[_0x2c8f2e('0x151d')](function(_0x19893a){const _0x3979a6=_0x2c8f2e;if(_0x19893a['data']&&_0x19893a[_0x3979a6('0x4e8')][_0x3979a6('0x120f')]&&_0x19893a[_0x3979a6('0x4e8')][_0x3979a6('0x120f')]['length']){_0x28bc2f['errors']=_0x19893a['data'][_0x3979a6('0x120f')]||[{'message':_0x19893a['toString'](),'type':'api.user.save'}];for(let _0x514cde=0x0;_0x514cde<_0x19893a[_0x3979a6('0x4e8')]['errors'][_0x3979a6('0x1e22')];_0x514cde+=0x1){_0xb70f85[_0x3979a6('0x255')]({'title':_0x19893a['data'][_0x3979a6('0x120f')][_0x514cde][_0x3979a6('0x19fd')],'msg':_0x19893a[_0x3979a6('0x4e8')][_0x3979a6('0x120f')][_0x514cde][_0x3979a6('0x1b86')]});}}else _0xb70f85[_0x3979a6('0x255')]({'title':_0x19893a[_0x3979a6('0xff9')]?_0x3979a6('0x574')+_0x19893a[_0x3979a6('0xff9')]+_0x3979a6('0xb0b')+_0x19893a[_0x3979a6('0x212f')]:_0x3979a6('0x116'),'msg':_0x19893a[_0x3979a6('0x4e8')]?JSON[_0x3979a6('0x3e')](_0x19893a['data']['message']):_0x19893a[_0x3979a6('0xaab')]()});});}function _0x5b13b6(){const _0x4da55e=_0x63757d;_0x28bc2f[_0x4da55e('0x120f')]=[],_0x4f33ea[_0x4da55e('0x21d9')]['update']({'id':_0x28bc2f[_0x4da55e('0x2650')]['id']},_0x28bc2f[_0x4da55e('0x2650')])[_0x4da55e('0x1549')][_0x4da55e('0x11bf')](function(_0x1c8a0c){const _0x11e152=_0x4da55e,_0xb7fff7=_0x36f548()[_0x11e152('0x1ad4')](_0x28bc2f['telephones'],{'id':_0x1c8a0c['id']});_0xb7fff7&&_0x36f548()[_0x11e152('0x47b')](_0xb7fff7,_0x36f548()[_0x11e152('0x258')](_0x1c8a0c[_0x11e152('0x2866')](),_0x36f548()['keys'](_0xb7fff7))),_0xb70f85[_0x11e152('0x2693')]({'title':_0x11e152('0x1b09'),'msg':_0x28bc2f['telephone'][_0x11e152('0x1909')]?_0x28bc2f['telephone'][_0x11e152('0x1909')]+'\x20has\x20been\x20saved!':''}),_0xb2fa87(_0x1c8a0c);})[_0x4da55e('0x151d')](function(_0x2828aa){const _0x3cbe4f=_0x4da55e;if(_0x2828aa[_0x3cbe4f('0x4e8')]&&_0x2828aa['data'][_0x3cbe4f('0x120f')]&&_0x2828aa[_0x3cbe4f('0x4e8')][_0x3cbe4f('0x120f')][_0x3cbe4f('0x1e22')]){_0x28bc2f[_0x3cbe4f('0x120f')]=_0x2828aa[_0x3cbe4f('0x4e8')][_0x3cbe4f('0x120f')]||[{'message':_0x2828aa[_0x3cbe4f('0xaab')](),'type':_0x3cbe4f('0x165b')}];for(let _0x19650a=0x0;_0x19650a<_0x2828aa[_0x3cbe4f('0x4e8')][_0x3cbe4f('0x120f')]['length'];_0x19650a++){_0xb70f85['error']({'title':_0x2828aa[_0x3cbe4f('0x4e8')]['errors'][_0x19650a][_0x3cbe4f('0x19fd')],'msg':_0x2828aa[_0x3cbe4f('0x4e8')]['errors'][_0x19650a]['message']});}}else _0xb70f85['error']({'title':_0x2828aa['status']?_0x3cbe4f('0x574')+_0x2828aa['status']+_0x3cbe4f('0xb0b')+_0x2828aa['statusText']:_0x3cbe4f('0x165b'),'msg':_0x2828aa[_0x3cbe4f('0x4e8')]?JSON[_0x3cbe4f('0x3e')](_0x2828aa[_0x3cbe4f('0x4e8')][_0x3cbe4f('0x1b86')]):_0x2828aa[_0x3cbe4f('0xaab')]()});});}function _0x3bb4b7(_0xeea1fe){const _0x38ff7f=_0x63757d;_0x28bc2f[_0x38ff7f('0x120f')]=[];const _0xf60f6d=_0x2ec78c[_0x38ff7f('0x132b')]()[_0x38ff7f('0x134b')](_0x38ff7f('0x1fa9'))[_0x38ff7f('0x252a')](_0x38ff7f('0x289'))[_0x38ff7f('0xb2e')]('Delete\x20Telephone')['ok'](_0x38ff7f('0x1167'))[_0x38ff7f('0x26c9')]('Cancel')[_0x38ff7f('0x1e25')](_0xeea1fe);_0x2ec78c['show'](_0xf60f6d)[_0x38ff7f('0x11bf')](function(){const _0x3ca544=_0x38ff7f;_0x4f33ea[_0x3ca544('0x21d9')][_0x3ca544('0x2088')]({'id':_0x28bc2f[_0x3ca544('0x2650')]['id']})[_0x3ca544('0x1549')]['then'](function(){const _0x12c189=_0x3ca544;_0x36f548()['remove'](_0x28bc2f[_0x12c189('0x156e')],{'id':_0x28bc2f[_0x12c189('0x2650')]['id']}),_0xb70f85[_0x12c189('0x2693')]({'title':_0x12c189('0x2782'),'msg':(_0x28bc2f[_0x12c189('0x2650')][_0x12c189('0x1909')]||_0x12c189('0x2650'))+_0x12c189('0x433')}),_0xb2fa87(_0x28bc2f[_0x12c189('0x2650')]);})[_0x3ca544('0x151d')](function(_0xf8fb3e){const _0x45f8b3=_0x3ca544;if(_0xf8fb3e[_0x45f8b3('0x4e8')]&&_0xf8fb3e[_0x45f8b3('0x4e8')][_0x45f8b3('0x120f')]&&_0xf8fb3e[_0x45f8b3('0x4e8')]['errors']['length']){_0x28bc2f[_0x45f8b3('0x120f')]=_0xf8fb3e[_0x45f8b3('0x4e8')][_0x45f8b3('0x120f')]||[{'message':_0xf8fb3e[_0x45f8b3('0xaab')](),'type':'api.user.delete'}];for(let _0xc4e1b9=0x0;_0xc4e1b9<_0xf8fb3e[_0x45f8b3('0x4e8')][_0x45f8b3('0x120f')][_0x45f8b3('0x1e22')];_0xc4e1b9++){_0xb70f85[_0x45f8b3('0x255')]({'title':_0xf8fb3e[_0x45f8b3('0x4e8')][_0x45f8b3('0x120f')][_0xc4e1b9][_0x45f8b3('0x19fd')],'msg':_0xf8fb3e['data'][_0x45f8b3('0x120f')][_0xc4e1b9][_0x45f8b3('0x1b86')]});}}else _0xb70f85['error']({'title':_0xf8fb3e[_0x45f8b3('0xff9')]?_0x45f8b3('0x574')+_0xf8fb3e[_0x45f8b3('0xff9')]+_0x45f8b3('0xb0b')+_0xf8fb3e[_0x45f8b3('0x212f')]:_0x45f8b3('0x1c67'),'msg':_0xf8fb3e[_0x45f8b3('0x4e8')]?JSON['stringify'](_0xf8fb3e['data'][_0x45f8b3('0x1b86')]):_0xf8fb3e[_0x45f8b3('0x1b86')]||_0xf8fb3e['toString']()});});},function(){});}function _0x1fb8d6(_0x3af7d0){return _0x3af7d0===null?undefined:new Date(_0x3af7d0);}function _0xb2fa87(_0x16f77d){const _0x3fc7ed=_0x63757d;_0x2ec78c[_0x3fc7ed('0x237e')](_0x16f77d);}}const _0x31b239=_0x549098;_0x55101a['$inject']=[_0x21d0f5('0x1b80'),_0x21d0f5('0x1ca2'),_0x21d0f5('0x142d'),_0x21d0f5('0x12a5'),_0x21d0f5('0x2650'),'setting',_0x21d0f5('0x1150')];function _0x55101a(_0x1798d6,_0x230a79,_0x5b8f70,_0x397aa7,_0x223980,_0x2cd149,_0x3c5b47){const _0x5c0bd7=_0x21d0f5,_0x4528b2=this;_0x4528b2[_0x5c0bd7('0x32a')]=_0x3c5b47[_0x5c0bd7('0x2428')](),_0x4528b2['errors']=[],_0x4528b2['setting']=_0x2cd149,_0x4528b2[_0x5c0bd7('0x2834')]=_0x4528b2[_0x5c0bd7('0x23e1')][_0x5c0bd7('0x1d4')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x4528b2[_0x5c0bd7('0x2650')]=_0x223980,_0x4528b2[_0x5c0bd7('0x74')]='',_0x4528b2[_0x5c0bd7('0x238')]='',_0x4528b2[_0x5c0bd7('0x1a8')]=_0x247fe7,_0x4528b2[_0x5c0bd7('0xc4e')]=_0x2ba958,_0x1798d6[_0x5c0bd7('0x2087')]('vm.password',function(_0x42bea8){const _0x42b17f=_0x5c0bd7;!_0x36f548()[_0x42b17f('0x1a80')](_0x4528b2[_0x42b17f('0x238')])&&(_0x42bea8===_0x4528b2[_0x42b17f('0x238')]?_0x1798d6['telephoneForm'][_0x42b17f('0x74')][_0x42b17f('0x1a7f')](_0x42b17f('0xa0a'),![]):_0x1798d6[_0x42b17f('0xa13')][_0x42b17f('0x74')][_0x42b17f('0x1a7f')]('oldPasswordMatch',!![]));});function _0x247fe7(){const _0x19f6a5=_0x5c0bd7;_0x4528b2[_0x19f6a5('0x120f')]=[];const _0x551124={'id':_0x4528b2[_0x19f6a5('0x2650')]['id'],'newPassword':_0x4528b2[_0x19f6a5('0x74')]};_0x4528b2[_0x19f6a5('0x32a')]['id']==_0x4528b2['telephone']['id']&&(_0x551124[_0x19f6a5('0x238')]=_0x4528b2['oldPassword']),_0x397aa7[_0x19f6a5('0x21d9')][_0x19f6a5('0x2a6')](_0x551124)[_0x19f6a5('0x1549')][_0x19f6a5('0x11bf')](function(){const _0x5cadbd=_0x19f6a5;_0x5b8f70['success']({'title':_0x5cadbd('0x23ed')}),_0x2ba958();})['catch'](function(_0x19e57a){const _0x1d249f=_0x19f6a5;_0x5b8f70[_0x1d249f('0x255')]({'title':_0x19e57a[_0x1d249f('0xff9')]?_0x1d249f('0x574')+_0x19e57a['status']+_0x1d249f('0xb0b')+_0x19e57a[_0x1d249f('0x212f')]:'api.telephone.save','msg':_0x19e57a[_0x1d249f('0x4e8')]?JSON[_0x1d249f('0x3e')](_0x19e57a[_0x1d249f('0x4e8')]['message']):_0x19e57a[_0x1d249f('0xaab')]()}),_0x4528b2[_0x1d249f('0x120f')]=_0x19e57a[_0x1d249f('0x4e8')][_0x1d249f('0x120f')]||[{'message':_0x19e57a[_0x1d249f('0xaab')](),'type':_0x1d249f('0x668')}];});}function _0x2ba958(){const _0x15456f=_0x5c0bd7;_0x230a79[_0x15456f('0x237e')]();}}const _0x26ecd2=_0x55101a,_0x5c294f=_0x351988['p']+_0x21d0f5('0x27b4');_0x202688['$inject']=[_0x21d0f5('0xcbc'),_0x21d0f5('0x16b9'),_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),'$translate',_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1'),'api','toasty',_0x21d0f5('0x1150'),_0x21d0f5('0x2650'),_0x21d0f5('0x1d63')];function _0x202688(_0x2269b8,_0x127570,_0x268a17,_0x4dc921,_0x3dfa58,_0x9cb6d0,_0x4bc0a4,_0x2772c8,_0x29be35,_0x58903f,_0x2a2ec7,_0x46c7e3){const _0x17f1cc=_0x21d0f5,_0x1903b3=this;_0x1903b3[_0x17f1cc('0x32a')]=_0x58903f['getCurrentUser'](),_0x1903b3[_0x17f1cc('0x17ff')]=_0x9cb6d0,_0x1903b3['setting']=_0x4bc0a4,_0x1903b3['passwordPattern']=_0x1903b3[_0x17f1cc('0x23e1')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1903b3[_0x17f1cc('0x1d9a')]=_0x127570[_0x17f1cc('0x1797')]()+_0x17f1cc('0x16a1')+_0x127570[_0x17f1cc('0x14ec')](),_0x1903b3['telephone']=_0x2a2ec7||_0x2269b8['params'][_0x17f1cc('0x2650')]||{},_0x1903b3['userProfileSection']=_0x46c7e3&&_0x46c7e3['count']==0x1?_0x46c7e3[_0x17f1cc('0x19b2')][0x0]:null,_0x1903b3[_0x17f1cc('0xb25')]=_0x58903f[_0x17f1cc('0x1530')](_0x1903b3['userProfileSection']?_0x1903b3[_0x17f1cc('0x1d63')][_0x17f1cc('0xb25')]:null),_0x1903b3['hasModulePermissions']={},_0x1903b3['selectedTab']=_0x2269b8[_0x17f1cc('0x1ab3')][_0x17f1cc('0x205c')]||0x0,_0x1903b3[_0x17f1cc('0x854')]=_0x46cd9a,_0x1903b3['alert']=_0x29be35[_0x17f1cc('0x870')],_0x1903b3[_0x17f1cc('0xd71')]=_0x594991,_0x1903b3['saveTelephone']=_0x409e83,_0x58903f[_0x17f1cc('0x4ee')](_0x17f1cc('0xf45'))?_0x2772c8['voiceContext'][_0x17f1cc('0xbaa')]({'fields':_0x17f1cc('0x721'),'sort':'name'})[_0x17f1cc('0x1549')][_0x17f1cc('0x11bf')](function(_0x419114){const _0x410d56=_0x17f1cc;_0x1903b3['contexts']=_0x419114[_0x410d56('0x19b2')]||[];})[_0x17f1cc('0x151d')](function(_0x3fabd6){const _0x31c0f5=_0x17f1cc;_0x29be35[_0x31c0f5('0x255')]({'title':_0x3fabd6[_0x31c0f5('0xff9')]?_0x31c0f5('0x574')+_0x3fabd6[_0x31c0f5('0xff9')]+_0x31c0f5('0xb0b')+_0x3fabd6[_0x31c0f5('0x212f')]:'SYSTEM:GET_CONTEXTS','msg':_0x3fabd6[_0x31c0f5('0x4e8')]?JSON[_0x31c0f5('0x3e')](_0x3fabd6[_0x31c0f5('0x4e8')]):_0x3fabd6['toString']()});}):_0x2772c8['voiceContext'][_0x17f1cc('0xbaa')]({'fields':'id,name','sort':_0x17f1cc('0x1909')})[_0x17f1cc('0x1549')][_0x17f1cc('0x11bf')](function(_0x5c8ffc){const _0x4b63df=_0x17f1cc;_0x1903b3[_0x4b63df('0x803')]=_0x5c8ffc['rows']||[];})[_0x17f1cc('0x11bf')](function(){const _0x4b5381=_0x17f1cc;return _0x2772c8[_0x4b5381('0x1d63')][_0x4b5381('0xbaa')]({'userProfileId':_0x1903b3[_0x4b5381('0x32a')][_0x4b5381('0x781')],'sectionId':0x195})[_0x4b5381('0x1549')];})[_0x17f1cc('0x11bf')](function(_0x4d5675){const _0x2367e9=_0x17f1cc,_0x328712=_0x4d5675&&_0x4d5675['rows']?_0x4d5675['rows'][0x0]:null;if(!_0x328712)return _0x2772c8[_0x2367e9('0x1279')][_0x2367e9('0xbaa')]({'fields':'id,name','sort':_0x2367e9('0x1909'),'defaultEntry':0x1})[_0x2367e9('0x1549')][_0x2367e9('0x11bf')](function(_0x233f14){const _0x4d7b14=_0x2367e9;_0x1903b3[_0x4d7b14('0x803')]=_0x233f14['rows']||[];});else{if(!_0x328712[_0x2367e9('0xf11')])return _0x2772c8['userProfileResource'][_0x2367e9('0xbaa')]({'sectionId':_0x328712['id']})[_0x2367e9('0x1549')][_0x2367e9('0x11bf')](function(_0x308bb0){const _0x7bcba0=_0x2367e9,_0x1b1d87=_0x36f548()[_0x7bcba0('0x2171')](_0x308bb0[_0x7bcba0('0x19b2')],function(_0x520b95){const _0x2d1768=_0x7bcba0;return _0x36f548()['find'](_0x1903b3[_0x2d1768('0x803')],{'id':_0x520b95['resourceId']});});let _0x23d4ed=null;_0x1903b3[_0x7bcba0('0x2650')]&&(_0x23d4ed=_0x36f548()[_0x7bcba0('0x1ad4')](_0x1903b3[_0x7bcba0('0x803')],{'name':_0x1903b3[_0x7bcba0('0x2650')][_0x7bcba0('0x1c87')]}));if(_0x23d4ed&&!_0x36f548()[_0x7bcba0('0x1cb3')](_0x1b1d87,['id',_0x23d4ed['id']])){const _0x38ee5f=_0x36f548()[_0x7bcba0('0x1ad4')](_0x1903b3[_0x7bcba0('0x803')],{'id':_0x23d4ed['id']});_0x38ee5f[_0x7bcba0('0x254a')]=![],_0x1b1d87[_0x7bcba0('0x105d')](_0x38ee5f);}_0x1903b3[_0x7bcba0('0x803')]=_0x1b1d87;});}})[_0x17f1cc('0x151d')](function(_0x5dc35f){const _0x11992d=_0x17f1cc;_0x29be35[_0x11992d('0x255')]({'title':_0x5dc35f[_0x11992d('0xff9')]?_0x11992d('0x574')+_0x5dc35f['status']+_0x11992d('0xb0b')+_0x5dc35f[_0x11992d('0x212f')]:_0x11992d('0x1280'),'msg':_0x5dc35f[_0x11992d('0x4e8')]?JSON['stringify'](_0x5dc35f[_0x11992d('0x4e8')]):_0x5dc35f[_0x11992d('0xaab')]()});});function _0x46cd9a(_0x48fac4,_0x577ba1){const _0x15f94c=_0x17f1cc;_0x268a17[_0x15f94c('0xb9')]({'controller':_0x15f94c('0x570'),'controllerAs':'vm','templateUrl':_0x5c294f,'parent':angular[_0x15f94c('0x1e73')](_0x4dc921[_0x15f94c('0x1d2')]),'targetEvent':_0x577ba1,'clickOutsideToClose':!![],'locals':{'telephone':_0x48fac4,'setting':_0x4bc0a4,'telephones':_0x1903b3[_0x15f94c('0x156e')]?_0x1903b3[_0x15f94c('0x156e')][_0x15f94c('0x19b2')]:[],'crudPermissions':_0x1903b3['crudPermissions']}});}function _0x594991(){const _0x25c4ab=_0x17f1cc;_0x2269b8['go']('app.staff.telephones',{},{'reload':_0x25c4ab('0x1895')});}function _0x409e83(){const _0x31e39f=_0x17f1cc;_0x2772c8[_0x31e39f('0x21d9')][_0x31e39f('0x5ab')]({'id':_0x1903b3[_0x31e39f('0x2650')]['id']},_0x1903b3[_0x31e39f('0x2650')])[_0x31e39f('0x1549')][_0x31e39f('0x11bf')](function(){const _0xa37d94=_0x31e39f;_0x29be35[_0xa37d94('0x2693')]({'title':_0xa37d94('0x84b'),'msg':_0x1903b3[_0xa37d94('0x2650')][_0xa37d94('0x1909')]?_0x1903b3[_0xa37d94('0x2650')][_0xa37d94('0x1909')]+_0xa37d94('0xd7'):''});})['catch'](function(_0x28d2ca){const _0x42c164=_0x31e39f;_0x29be35[_0x42c164('0x255')]({'title':_0x28d2ca[_0x42c164('0xff9')]?_0x42c164('0x574')+_0x28d2ca[_0x42c164('0xff9')]+_0x42c164('0xb0b')+_0x28d2ca['statusText']:_0x42c164('0xd6c'),'msg':_0x28d2ca[_0x42c164('0x4e8')]?JSON['stringify'](_0x28d2ca[_0x42c164('0x4e8')]):_0x28d2ca[_0x42c164('0xaab')]()});});}}const _0x57886a=_0x202688,_0x22cc1a=_0x351988['p']+_0x21d0f5('0xa99');_0xdab57b[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),'$window',_0x21d0f5('0xcbc'),_0x21d0f5('0x18fe'),_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),_0x21d0f5('0x17f5'),_0x21d0f5('0xb6b'),_0x21d0f5('0x156e'),'userProfile',_0x21d0f5('0x1d63'),'api',_0x21d0f5('0xda9'),_0x21d0f5('0x142d'),_0x21d0f5('0x1150'),_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1')];function _0xdab57b(_0x535f74,_0x114aca,_0x5788e1,_0x3fa64f,_0x2ff688,_0x529e7b,_0x5aa297,_0x3aa23b,_0x612680,_0x2c5dd3,_0x2eb8dd,_0x4a2839,_0x26792b,_0x3d1a98,_0x2c42e1,_0xdfb25,_0x5a350b){const _0xb3eb39=_0x21d0f5,_0x389fb5=this;_0x389fb5[_0xb3eb39('0x17ff')]=_0xdfb25,_0x389fb5['setting']=_0x5a350b,_0x389fb5[_0xb3eb39('0x32a')]=_0x2c42e1[_0xb3eb39('0x2428')](),_0x389fb5[_0xb3eb39('0x156e')]=_0x612680||{'count':0x0,'rows':[]},_0x389fb5['userProfile']=_0x2c5dd3,_0x389fb5[_0xb3eb39('0x1d63')]=_0x2eb8dd&&_0x2eb8dd['count']==0x1?_0x2eb8dd[_0xb3eb39('0x19b2')][0x0]:null,_0x389fb5[_0xb3eb39('0xb25')]=_0x2c42e1[_0xb3eb39('0x1530')](_0x389fb5['userProfileSection']?_0x389fb5[_0xb3eb39('0x1d63')][_0xb3eb39('0xb25')]:null),_0x389fb5[_0xb3eb39('0x13e8')]=_0xb3eb39('0x156e'),_0x389fb5['listOrder']='',_0x389fb5[_0xb3eb39('0xe3c')]=null,_0x389fb5['selectedTelephones']=[],_0x389fb5[_0xb3eb39('0x1f2a')]={'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':_0xb3eb39('0x2650'),'sort':_0xb3eb39('0x1c74'),'limit':0xa,'page':0x1},_0x389fb5[_0xb3eb39('0x1bf5')]=_0x36f548()['keyBy']([{'option':_0xb3eb39('0x1afa'),'value':_0xb3eb39('0xa54')},{'option':_0xb3eb39('0x10fc'),'value':_0xb3eb39('0x1129')},{'option':'ws','value':_0xb3eb39('0x1a9f')},{'option':_0xb3eb39('0x18a8'),'value':_0xb3eb39('0x24c3')},{'option':'tls','value':_0xb3eb39('0x735')}],function(_0x43af0e){const _0x2c47cb=_0xb3eb39;return _0x36f548()[_0x2c47cb('0x814')](_0x43af0e[_0x2c47cb('0x10cc')],new RegExp('\x27','g'),'');}),_0x389fb5[_0xb3eb39('0x192f')]=_0x36f548()[_0xb3eb39('0x2130')]([{'option':_0xb3eb39('0x19cf'),'value':_0xb3eb39('0xe5')},{'option':_0xb3eb39('0x1219'),'value':_0xb3eb39('0x1cc1')},{'option':_0xb3eb39('0xf6'),'value':_0xb3eb39('0x1d9')},{'option':'no','value':'\x27no\x27'},{'option':_0xb3eb39('0xf95'),'value':_0xb3eb39('0x1d91')},{'option':'route','value':'\x27route\x27'}],function(_0x279146){const _0x2edd4d=_0xb3eb39;return _0x36f548()['replace'](_0x279146[_0x2edd4d('0x10cc')],new RegExp('\x27','g'),'');}),_0x389fb5[_0xb3eb39('0x1bb6')]=_0x36f548()[_0xb3eb39('0x2130')]([{'option':_0xb3eb39('0x194f'),'value':_0xb3eb39('0x398')},{'option':_0xb3eb39('0x6a0'),'value':_0xb3eb39('0x2750')},{'option':_0xb3eb39('0x3da'),'value':_0xb3eb39('0x5af')},{'option':_0xb3eb39('0x2709'),'value':_0xb3eb39('0x18e0')},{'option':_0xb3eb39('0x8de'),'value':_0xb3eb39('0x212e')},{'option':'opus','value':_0xb3eb39('0xeeb')},{'option':_0xb3eb39('0x16b4'),'value':'\x27h264\x27'}],function(_0xaee3a){const _0x294424=_0xb3eb39;return _0x36f548()[_0x294424('0x814')](_0xaee3a['value'],new RegExp('\x27','g'),'');}),_0x389fb5[_0xb3eb39('0xdff')]=_0x36f548()[_0xb3eb39('0x2130')]([{'option':_0xb3eb39('0xaa2'),'value':_0xb3eb39('0x1d9')},{'option':'No','value':'\x27no\x27'},{'option':_0xb3eb39('0xbf9'),'value':_0xb3eb39('0x538')}],function(_0x26d9b7){const _0x147327=_0xb3eb39;return _0x36f548()['replace'](_0x26d9b7[_0x147327('0x10cc')],new RegExp('\x27','g'),'');}),_0x389fb5[_0xb3eb39('0x385')]=_0x36f548()['keyBy']([{'option':_0xb3eb39('0xf6'),'value':_0xb3eb39('0x1d9')},{'option':'no','value':_0xb3eb39('0x19bb')}],function(_0x88d166){const _0x1f1661=_0xb3eb39;return _0x36f548()[_0x1f1661('0x814')](_0x88d166[_0x1f1661('0x10cc')],new RegExp('\x27','g'),'');}),_0x389fb5[_0xb3eb39('0x757')]=_0x1a8671,_0x389fb5[_0xb3eb39('0x549')]=_0xd9408f,_0x389fb5[_0xb3eb39('0x2693')]=_0x186a1b,_0x389fb5[_0xb3eb39('0x25bd')]=_0x31568a,_0x389fb5[_0xb3eb39('0xf74')]=_0x41d489,_0x389fb5[_0xb3eb39('0x10b9')]=_0xbb39cd,_0x389fb5[_0xb3eb39('0x192')]=_0x230536,_0x389fb5[_0xb3eb39('0x24a1')]=_0x1ec527,_0x389fb5[_0xb3eb39('0x1f02')]=_0x47bc3f,_0x389fb5[_0xb3eb39('0x17c1')]=_0x1257eb;function _0x1a8671(_0x358b97){const _0x50c082=_0xb3eb39;_0x5788e1['go']('app.staff.telephones.edit',{'id':_0x358b97['id'],'telephone':_0x358b97,'crudPermissions':_0x389fb5[_0x50c082('0xb25')]});}function _0xd9408f(_0x141154,_0xf89f73){const _0x87f0d1=_0xb3eb39,_0x106270=_0x2ff688['confirm']()['title'](_0x87f0d1('0x1796')+_0x36f548()['startCase'](_0x87f0d1('0x2650'))+'?')['htmlContent'](_0x87f0d1('0x2061')+(_0x141154[_0x87f0d1('0x1909')]||_0x87f0d1('0x2650'))+_0x87f0d1('0x1c78')+_0x87f0d1('0x1a'))[_0x87f0d1('0xb2e')]('delete\x20telephone')[_0x87f0d1('0x1e25')](_0xf89f73)['ok']('OK')[_0x87f0d1('0x26c9')]('CANCEL');_0x2ff688[_0x87f0d1('0xb9')](_0x106270)['then'](function(){_0xbb39cd(_0x141154);},function(){const _0x34eea7=_0x87f0d1;console[_0x34eea7('0xc78')](_0x34eea7('0x772'));});}let _0x4e422f=!![],_0x11571b=0x1;_0x535f74[_0xb3eb39('0x2087')]('vm.query.filter',function(_0x3d408e,_0x205001){const _0x3b6ce3=_0xb3eb39;_0x4e422f?_0x5aa297(function(){_0x4e422f=![];}):(!_0x205001&&(_0x11571b=_0x389fb5['query'][_0x3b6ce3('0x1c2')]),_0x3d408e!==_0x205001&&(_0x389fb5[_0x3b6ce3('0x1f2a')]['page']=0x1),!_0x3d408e&&(_0x389fb5['query'][_0x3b6ce3('0x1c2')]=_0x11571b),_0x389fb5['getTelephones']());});function _0x186a1b(_0x124441){const _0x4251a6=_0xb3eb39;_0x389fb5[_0x4251a6('0x156e')]=_0x124441||{'count':0x0,'rows':[]};}function _0x31568a(){const _0x409bb6=_0xb3eb39;_0x389fb5[_0x409bb6('0x1f2a')][_0x409bb6('0x1393')]=(_0x389fb5[_0x409bb6('0x1f2a')][_0x409bb6('0x1c2')]-0x1)*_0x389fb5[_0x409bb6('0x1f2a')][_0x409bb6('0xd5c')],_0x2c42e1[_0x409bb6('0x4ee')]('admin')?_0x389fb5[_0x409bb6('0x13f')]=_0x4a2839[_0x409bb6('0x21d9')][_0x409bb6('0xbaa')](_0x389fb5[_0x409bb6('0x1f2a')],_0x186a1b)[_0x409bb6('0x1549')]:(_0x389fb5[_0x409bb6('0x1f2a')]['id']=_0x389fb5[_0x409bb6('0x25bc')]['id'],_0x389fb5[_0x409bb6('0x1f2a')]['section']=_0x409bb6('0x44c'),_0x389fb5[_0x409bb6('0x13f')]=_0x4a2839['userProfile'][_0x409bb6('0x228e')](_0x389fb5[_0x409bb6('0x1f2a')],_0x186a1b)[_0x409bb6('0x1549')]);}function _0x41d489(_0x4dfc6c,_0x721406){const _0x44af4e=_0xb3eb39;_0x2ff688[_0x44af4e('0xb9')]({'controller':_0x44af4e('0x1682'),'controllerAs':'vm','templateUrl':_0x22cc1a,'parent':angular['element'](_0x529e7b[_0x44af4e('0x1d2')]),'targetEvent':_0x4dfc6c,'clickOutsideToClose':!![],'locals':{'telephone':_0x721406,'telephones':_0x389fb5[_0x44af4e('0x156e')][_0x44af4e('0x19b2')],'license':_0x389fb5[_0x44af4e('0x17ff')],'setting':_0x389fb5[_0x44af4e('0x23e1')],'crudPermissions':_0x389fb5['crudPermissions']}});}function _0xbb39cd(_0x50f573){const _0x11d388=_0xb3eb39;_0x4a2839['user']['delete']({'id':_0x50f573['id']})[_0x11d388('0x1549')][_0x11d388('0x11bf')](function(){const _0x397a93=_0x11d388;_0x36f548()['remove'](_0x389fb5[_0x397a93('0x156e')][_0x397a93('0x19b2')],{'id':_0x50f573['id']}),_0x389fb5[_0x397a93('0x156e')][_0x397a93('0x27d2')]-=0x1,!_0x389fb5[_0x397a93('0x156e')][_0x397a93('0x19b2')]['length']&&_0x389fb5[_0x397a93('0x25bd')](),_0x3d1a98['success']({'title':_0x36f548()[_0x397a93('0x13cf')](_0x397a93('0x193b'))+_0x397a93('0x2113'),'msg':_0x50f573[_0x397a93('0x1909')]?_0x50f573[_0x397a93('0x1909')]+_0x397a93('0x433'):''});})['catch'](function(_0x983f61){const _0x45c2ef=_0x11d388;if(_0x983f61[_0x45c2ef('0x4e8')]&&_0x983f61['data'][_0x45c2ef('0x120f')]&&_0x983f61[_0x45c2ef('0x4e8')]['errors']['length']){_0x389fb5['errors']=_0x983f61['data'][_0x45c2ef('0x120f')]||[{'message':_0x983f61[_0x45c2ef('0xaab')](),'type':'SYSTEM:DELETEuser'}];for(let _0x17c814=0x0;_0x17c814<_0x983f61[_0x45c2ef('0x4e8')][_0x45c2ef('0x120f')]['length'];_0x17c814++){_0x3d1a98[_0x45c2ef('0x255')]({'title':_0x983f61[_0x45c2ef('0x4e8')][_0x45c2ef('0x120f')][_0x17c814][_0x45c2ef('0x19fd')],'msg':_0x983f61[_0x45c2ef('0x4e8')][_0x45c2ef('0x120f')][_0x17c814][_0x45c2ef('0x1b86')]});}}else _0x3d1a98[_0x45c2ef('0x255')]({'title':_0x983f61[_0x45c2ef('0xff9')]?_0x45c2ef('0x574')+_0x983f61[_0x45c2ef('0xff9')]+_0x45c2ef('0xb0b')+_0x983f61['statusText']:_0x45c2ef('0x1eaf'),'msg':_0x983f61[_0x45c2ef('0x4e8')]?JSON[_0x45c2ef('0x3e')](_0x983f61[_0x45c2ef('0x4e8')][_0x45c2ef('0x1b86')]):_0x983f61[_0x45c2ef('0x1b86')]||_0x983f61[_0x45c2ef('0xaab')]()});});}function _0x230536(){const _0x548aa0=angular['copy'](_0x389fb5['selectedTelephones']);return _0x389fb5['selectedTelephones']=[],_0x548aa0;}function _0x1ec527(_0x1280fa){const _0x48ca1c=_0xb3eb39,_0x4d0709=_0x2ff688[_0x48ca1c('0x132b')]()[_0x48ca1c('0x134b')](_0x48ca1c('0x1cb'))[_0x48ca1c('0x1d03')](_0x48ca1c('0x2061')+_0x389fb5[_0x48ca1c('0x21d6')][_0x48ca1c('0x1e22')]+_0x48ca1c('0xac6')+_0x48ca1c('0x1a'))[_0x48ca1c('0xb2e')](_0x48ca1c('0xff3'))[_0x48ca1c('0x1e25')](_0x1280fa)['ok']('OK')['cancel'](_0x48ca1c('0x772'));_0x2ff688['show'](_0x4d0709)[_0x48ca1c('0x11bf')](function(){const _0x523c05=_0x48ca1c;_0x389fb5['selectedTelephones'][_0x523c05('0x1f88')](function(_0x3a9aee){_0xbb39cd(_0x3a9aee);}),_0x389fb5[_0x523c05('0x21d6')]=[];});}function _0x47bc3f(){const _0x5cdefd=_0xb3eb39;_0x389fb5[_0x5cdefd('0x21d6')]=[];}function _0x1257eb(){_0x389fb5['selectedTelephones']=_0x389fb5['telephones']['rows'];}}const _0x4101d9=_0xdab57b;_0x2e247b['$inject']=[_0x21d0f5('0x1b80'),_0x21d0f5('0xcbc'),_0x21d0f5('0x16b9'),_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0xb6b'),_0x21d0f5('0x142d'),_0x21d0f5('0xaf1'),_0x21d0f5('0x25bc'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),_0x21d0f5('0x17ff'),'setting','crudPermissions'];function _0x2e247b(_0x1ce6ee,_0x42fd07,_0x12e9b6,_0x2840fb,_0x3dffb9,_0x4cdb3c,_0x3704df,_0x58912e,_0xdd8141,_0x23fac6,_0x6f4ed9,_0x9b94fc,_0xd80780,_0x3e88c1){const _0x6f32f=_0x21d0f5,_0x59ce0f=this;_0x59ce0f['currentUser']=_0x6f4ed9['getCurrentUser'](),_0x59ce0f[_0x6f32f('0x120f')]=[],_0x59ce0f[_0x6f32f('0x23e1')]=_0xd80780,_0x59ce0f[_0x6f32f('0x17ff')]=_0x9b94fc,_0x59ce0f[_0x6f32f('0xb25')]=_0x3e88c1,_0x59ce0f['hasModulePermissions']={},_0x59ce0f['passwordPattern']=_0x59ce0f[_0x6f32f('0x23e1')]&&_0x59ce0f['setting'][_0x6f32f('0x1d4')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x59ce0f[_0x6f32f('0x134b')]=_0x6f32f('0x1c12'),_0x59ce0f[_0x6f32f('0x25bc')]=angular[_0x6f32f('0x6fb')](_0xdd8141),_0x59ce0f['userProfiles']=_0x58912e,_0x59ce0f['newUserProfile']=![];!_0x59ce0f[_0x6f32f('0x25bc')]&&(_0x59ce0f[_0x6f32f('0x25bc')]={'crudPermissions':['r']},_0x59ce0f[_0x6f32f('0x134b')]=_0x6f32f('0x3b'),_0x59ce0f['newUserProfile']=!![]);_0x59ce0f[_0x6f32f('0x5ad')]=_0x363de3,_0x59ce0f[_0x6f32f('0x42')]=_0x9fae69,_0x59ce0f[_0x6f32f('0x51b')]=_0xd221e1,_0x59ce0f[_0x6f32f('0x1bd1')]=_0x5626f5,_0x59ce0f[_0x6f32f('0xc4e')]=_0x1926ab;function _0x363de3(){const _0x1b8ab5=_0x6f32f;_0x59ce0f[_0x1b8ab5('0x120f')]=[],_0x23fac6[_0x1b8ab5('0x25bc')]['save'](_0x59ce0f[_0x1b8ab5('0x25bc')])[_0x1b8ab5('0x1549')][_0x1b8ab5('0x11bf')](function(_0x46c09a){const _0x168ed1=_0x1b8ab5;_0x302340(_0x46c09a),_0x59ce0f[_0x168ed1('0xaf1')]['unshift'](_0x46c09a['toJSON']()),_0x3704df[_0x168ed1('0x2693')]({'title':_0x168ed1('0x2091'),'msg':_0x59ce0f[_0x168ed1('0x25bc')]['name']?_0x59ce0f['userProfile']['name']+_0x168ed1('0x7fb'):''}),_0x1926ab(_0x46c09a);})['catch'](function(_0x508fb9){const _0x25fc3e=_0x1b8ab5;if(_0x508fb9[_0x25fc3e('0x4e8')]&&_0x508fb9[_0x25fc3e('0x4e8')]['errors']&&_0x508fb9['data'][_0x25fc3e('0x120f')][_0x25fc3e('0x1e22')]){_0x59ce0f[_0x25fc3e('0x120f')]=_0x508fb9[_0x25fc3e('0x4e8')][_0x25fc3e('0x120f')]||[{'message':_0x508fb9[_0x25fc3e('0xaab')](),'type':_0x25fc3e('0x9f4')}];for(let _0x1dacb3=0x0;_0x1dacb3<_0x508fb9[_0x25fc3e('0x4e8')][_0x25fc3e('0x120f')][_0x25fc3e('0x1e22')];_0x1dacb3+=0x1){_0x3704df[_0x25fc3e('0x255')]({'title':_0x508fb9['data'][_0x25fc3e('0x120f')][_0x1dacb3]['type'],'msg':_0x508fb9['data']['errors'][_0x1dacb3][_0x25fc3e('0x1b86')]});}}else _0x3704df['error']({'title':_0x508fb9['status']?_0x25fc3e('0x574')+_0x508fb9[_0x25fc3e('0xff9')]+'\x20-\x20'+_0x508fb9[_0x25fc3e('0x212f')]:_0x25fc3e('0x9f4'),'msg':_0x508fb9['data']?JSON[_0x25fc3e('0x3e')](_0x508fb9[_0x25fc3e('0x4e8')][_0x25fc3e('0x1b86')]):_0x508fb9['toString']()});});}function _0x9fae69(){const _0x3cebfd=_0x6f32f;_0x59ce0f[_0x3cebfd('0x120f')]=[],_0x23fac6[_0x3cebfd('0x25bc')][_0x3cebfd('0x5ab')]({'id':_0x59ce0f[_0x3cebfd('0x25bc')]['id']},_0x59ce0f[_0x3cebfd('0x25bc')])[_0x3cebfd('0x1549')]['then'](function(_0x2408f4){const _0x2c31c1=_0x3cebfd,_0x14a6e5=_0x36f548()[_0x2c31c1('0x1ad4')](_0x59ce0f['userProfiles'],{'id':_0x2408f4['id']});_0x14a6e5&&_0x36f548()[_0x2c31c1('0x47b')](_0x14a6e5,_0x36f548()[_0x2c31c1('0x258')](_0x2408f4[_0x2c31c1('0x2866')](),_0x36f548()['keys'](_0x14a6e5))),_0x3704df[_0x2c31c1('0x2693')]({'title':_0x2c31c1('0xb08'),'msg':_0x59ce0f[_0x2c31c1('0x25bc')][_0x2c31c1('0x1909')]?_0x59ce0f[_0x2c31c1('0x25bc')][_0x2c31c1('0x1909')]+_0x2c31c1('0x1a78'):''}),_0x1926ab(_0x2408f4);})[_0x3cebfd('0x151d')](function(_0x549a4f){const _0x415ca9=_0x3cebfd;if(_0x549a4f[_0x415ca9('0x4e8')]&&_0x549a4f['data'][_0x415ca9('0x120f')]&&_0x549a4f['data']['errors'][_0x415ca9('0x1e22')]){_0x59ce0f[_0x415ca9('0x120f')]=_0x549a4f[_0x415ca9('0x4e8')][_0x415ca9('0x120f')]||[{'message':_0x549a4f[_0x415ca9('0xaab')](),'type':'api.userProfile.update'}];for(let _0x16c1ef=0x0;_0x16c1ef<_0x549a4f['data'][_0x415ca9('0x120f')]['length'];_0x16c1ef++){_0x3704df[_0x415ca9('0x255')]({'title':_0x549a4f[_0x415ca9('0x4e8')][_0x415ca9('0x120f')][_0x16c1ef][_0x415ca9('0x19fd')],'msg':_0x549a4f[_0x415ca9('0x4e8')][_0x415ca9('0x120f')][_0x16c1ef]['message']});}}else _0x3704df[_0x415ca9('0x255')]({'title':_0x549a4f[_0x415ca9('0xff9')]?_0x415ca9('0x574')+_0x549a4f['status']+_0x415ca9('0xb0b')+_0x549a4f['statusText']:_0x415ca9('0x1d00'),'msg':_0x549a4f[_0x415ca9('0x4e8')]?JSON[_0x415ca9('0x3e')](_0x549a4f[_0x415ca9('0x4e8')][_0x415ca9('0x1b86')]):_0x549a4f[_0x415ca9('0xaab')]()});});}function _0xd221e1(_0xd51b2){const _0xfc7a86=_0x6f32f;_0x59ce0f[_0xfc7a86('0x120f')]=[];const _0x177db8=_0x2840fb[_0xfc7a86('0x132b')]()[_0xfc7a86('0x134b')](_0xfc7a86('0x1fa9'))[_0xfc7a86('0x252a')]('The\x20userProfile\x20will\x20be\x20deleted.')[_0xfc7a86('0xb2e')](_0xfc7a86('0x167f'))['ok']('Delete')[_0xfc7a86('0x26c9')](_0xfc7a86('0x784'))[_0xfc7a86('0x1e25')](_0xd51b2);_0x2840fb['show'](_0x177db8)[_0xfc7a86('0x11bf')](function(){const _0x2bc947=_0xfc7a86;_0x23fac6[_0x2bc947('0x25bc')]['delete']({'id':_0x59ce0f[_0x2bc947('0x25bc')]['id']})[_0x2bc947('0x1549')][_0x2bc947('0x11bf')](function(){const _0x480a1d=_0x2bc947;_0x36f548()['remove'](_0x59ce0f[_0x480a1d('0xaf1')],{'id':_0x59ce0f[_0x480a1d('0x25bc')]['id']}),_0x3704df[_0x480a1d('0x2693')]({'title':_0x480a1d('0x8a3'),'msg':(_0x59ce0f[_0x480a1d('0x25bc')][_0x480a1d('0x1909')]||_0x480a1d('0x25bc'))+_0x480a1d('0x433')}),_0x1926ab(_0x59ce0f['userProfile']);})['catch'](function(_0x3148bd){const _0x4c8802=_0x2bc947;if(_0x3148bd[_0x4c8802('0x4e8')]&&_0x3148bd[_0x4c8802('0x4e8')][_0x4c8802('0x120f')]&&_0x3148bd[_0x4c8802('0x4e8')]['errors']['length']){_0x59ce0f[_0x4c8802('0x120f')]=_0x3148bd['data'][_0x4c8802('0x120f')]||[{'message':_0x3148bd[_0x4c8802('0xaab')](),'type':'api.userProfile.delete'}];for(let _0xf72476=0x0;_0xf72476<_0x3148bd[_0x4c8802('0x4e8')][_0x4c8802('0x120f')][_0x4c8802('0x1e22')];_0xf72476++){_0x3704df[_0x4c8802('0x255')]({'title':_0x3148bd[_0x4c8802('0x4e8')][_0x4c8802('0x120f')][_0xf72476][_0x4c8802('0x19fd')],'msg':_0x3148bd[_0x4c8802('0x4e8')][_0x4c8802('0x120f')][_0xf72476][_0x4c8802('0x1b86')]});}}else _0x3704df['error']({'title':_0x3148bd[_0x4c8802('0xff9')]?'API:'+_0x3148bd[_0x4c8802('0xff9')]+_0x4c8802('0xb0b')+_0x3148bd['statusText']:_0x4c8802('0x30'),'msg':_0x3148bd['data']?JSON[_0x4c8802('0x3e')](_0x3148bd['data'][_0x4c8802('0x1b86')]):_0x3148bd[_0x4c8802('0x1b86')]||_0x3148bd[_0x4c8802('0xaab')]()});});},function(){});}function _0x302340(_0x2b1880){const _0x2f8b85=_0x6f32f,_0x59ac92=[];_0x2b1880[_0x2f8b85('0xb25')]['forEach'](function(_0xe9d8d8){const _0x2cd6e0=_0x2f8b85;let _0x429492;switch(_0xe9d8d8){case'r':_0x429492=_0x2cd6e0('0x1ef4');break;case'e':_0x429492=_0x2cd6e0('0x1d0c');break;case'd':_0x429492=_0x2cd6e0('0xcac');break;}_0x59ac92[_0x2cd6e0('0x105d')](_0x4cdb3c[_0x2cd6e0('0x10c2')](_0x2cd6e0('0xdae')+_0x429492));}),_0x2b1880[_0x2f8b85('0x1766')]=_0x59ac92[_0x2f8b85('0xa04')](',\x20');}function _0x5626f5(_0x15ee63){return _0x15ee63===null?undefined:new Date(_0x15ee63);}function _0x1926ab(_0x11179b){const _0x2d3c38=_0x6f32f;_0x2840fb[_0x2d3c38('0x237e')](_0x11179b);}}const _0x3fadfe=_0x2e247b;_0x1b4f0e['$inject']=['$mdDialog',_0x21d0f5('0xcbc'),_0x21d0f5('0x142d'),_0x21d0f5('0x12a5'),_0x21d0f5('0x25bc'),'userProfiles',_0x21d0f5('0xb6b')];function _0x1b4f0e(_0x19dfa8,_0x310ca2,_0x5a2e35,_0x851042,_0x731408,_0x45f62c,_0x2ff61e){const _0x53016a=_0x21d0f5,_0x52d11c=this;_0x52d11c[_0x53016a('0x263a')]=!![],_0x52d11c['userProfile']=angular[_0x53016a('0x6fb')](_0x731408),_0x52d11c[_0x53016a('0xaf1')]=_0x45f62c,_0x52d11c[_0x53016a('0x134b')]=_0x2ff61e[_0x53016a('0x10c2')](_0x53016a('0xe07'));_0x731408&&_0x731408['name']&&(_0x52d11c[_0x53016a('0x134b')]+=':\x20'+_0x731408[_0x53016a('0x1909')]);_0x52d11c['cloneUserProfile']=_0x11c0c3,_0x52d11c[_0x53016a('0xc4e')]=_0x3a4ebe;function _0x11c0c3(){const _0x54c73b=_0x53016a;return _0x851042[_0x54c73b('0x25bc')]['clone']({'id':_0x731408['id']},_0x52d11c[_0x54c73b('0x25bc')])[_0x54c73b('0x1549')][_0x54c73b('0x11bf')](function(_0x46d066){const _0x19c288=_0x54c73b;_0x2dadfc(_0x46d066),_0x52d11c['userProfiles'][_0x19c288('0x880')](_0x46d066[_0x19c288('0x2866')]()),_0x5a2e35[_0x19c288('0x2693')]({'title':_0x19c288('0x1fe9'),'msg':_0x52d11c[_0x19c288('0x25bc')][_0x19c288('0x1909')]?_0x52d11c[_0x19c288('0x25bc')]['name']+_0x19c288('0x9d2'):''}),_0x310ca2['go'](_0x19c288('0x1d96'),{'id':_0x46d066['id']}),_0x3a4ebe(_0x46d066);})[_0x54c73b('0x151d')](function(_0x9a27b3){const _0x17accb=_0x54c73b;if(_0x9a27b3[_0x17accb('0x4e8')]&&_0x9a27b3[_0x17accb('0x4e8')]['errors']&&_0x9a27b3[_0x17accb('0x4e8')][_0x17accb('0x120f')]['length']){_0x52d11c['errors']=_0x9a27b3['data'][_0x17accb('0x120f')]||[{'message':_0x9a27b3[_0x17accb('0xaab')](),'type':_0x17accb('0x1aa5')}];for(let _0x48e629=0x0;_0x48e629<_0x9a27b3[_0x17accb('0x4e8')]['errors'][_0x17accb('0x1e22')];_0x48e629+=0x1){_0x5a2e35[_0x17accb('0x255')]({'title':_0x9a27b3[_0x17accb('0x4e8')][_0x17accb('0x120f')][_0x48e629][_0x17accb('0x19fd')],'msg':_0x9a27b3[_0x17accb('0x4e8')][_0x17accb('0x120f')][_0x48e629][_0x17accb('0x1b86')]});}}else _0x5a2e35['error']({'title':_0x9a27b3[_0x17accb('0xff9')]?_0x17accb('0x574')+_0x9a27b3[_0x17accb('0xff9')]+'\x20-\x20'+_0x9a27b3[_0x17accb('0x212f')]:_0x17accb('0x1aa5'),'msg':_0x9a27b3['data']?JSON[_0x17accb('0x3e')](_0x9a27b3[_0x17accb('0x4e8')][_0x17accb('0x1b86')]):_0x9a27b3[_0x17accb('0xaab')]()});});}function _0x2dadfc(_0x5210fb){const _0x58c84c=_0x53016a,_0x1d7b2c=[];_0x5210fb['crudPermissions'][_0x58c84c('0x1f88')](function(_0x2bb52e){const _0x46cc47=_0x58c84c;let _0x1b8af1;switch(_0x2bb52e){case'r':_0x1b8af1=_0x46cc47('0x1ef4');break;case'e':_0x1b8af1=_0x46cc47('0x1d0c');break;case'd':_0x1b8af1=_0x46cc47('0xcac');break;}_0x1d7b2c[_0x46cc47('0x105d')](_0x2ff61e[_0x46cc47('0x10c2')](_0x46cc47('0xdae')+_0x1b8af1));}),_0x5210fb[_0x58c84c('0x1766')]=_0x1d7b2c[_0x58c84c('0xa04')](',\x20');}function _0x3a4ebe(_0x2337d6){const _0x2832b5=_0x53016a;_0x19dfa8[_0x2832b5('0x237e')](_0x2337d6);}}const _0x250366=_0x1b4f0e,_0x517416=_0x351988['p']+'src/js/modules/main/apps/staff/views/userProfiles/edit/permissionsmanage/permissionsmanage.html/permissionsmanage.html';_0x5f0a41[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b30'),'$mdDialog',_0x21d0f5('0xb6b'),'$q','api',_0x21d0f5('0x1713'),_0x21d0f5('0x1150'),_0x21d0f5('0x142d')];function _0x5f0a41(_0x3732f3,_0x54d75f,_0x10f2c6,_0x5c1629,_0x5bc47f,_0x51f079,_0x1db734,_0x11e3b9){const _0x2c0f7b=_0x21d0f5,_0x15e99b=this;_0x15e99b[_0x2c0f7b('0x25bc')]={},_0x15e99b[_0x2c0f7b('0x17ff')]={},_0x15e99b[_0x2c0f7b('0x7f1')]=_0x51f079['getNavigation'](),_0x15e99b[_0x2c0f7b('0x2213')]=_0x15e99b[_0x2c0f7b('0x7f1')][0x0]['children'],_0x15e99b[_0x2c0f7b('0x11d0')]=[{'id':0x0,'name':_0x2c0f7b('0x1e18'),'color':_0x2c0f7b('0x1adb'),'info':_0x2c0f7b('0x2417'),'tag':_0x2c0f7b('0xcc6')},{'id':0x1,'name':_0x2c0f7b('0x1032'),'color':_0x2c0f7b('0x1e03'),'info':_0x2c0f7b('0x1181'),'tag':'partial'},{'id':0x2,'name':_0x2c0f7b('0x11f1'),'color':_0x2c0f7b('0x836'),'info':_0x2c0f7b('0x2849'),'tag':_0x2c0f7b('0xa4b')},{'id':0x3,'name':_0x2c0f7b('0x4b9'),'color':_0x2c0f7b('0x1f18'),'info':_0x2c0f7b('0x1c45'),'tag':'unlicensed'},{'id':0x4,'name':_0x2c0f7b('0x1df5'),'color':_0x2c0f7b('0x1e5a'),'info':_0x2c0f7b('0x1dca'),'tag':'unknown'}],_0x15e99b[_0x2c0f7b('0x118')]=[{'title':_0x2c0f7b('0x2859'),'translate':_0x2c0f7b('0x2856'),'id':0x64}],_0x15e99b[_0x2c0f7b('0x286f')]=_0x3e224b,_0x15e99b[_0x2c0f7b('0x1e30')]=_0x1f81ae,_0x15e99b[_0x2c0f7b('0xba9')]=_0x2c39ff,_0x15e99b[_0x2c0f7b('0x1d34')]=_0x27c8ea;function _0x3e224b(_0x575363,_0x5f3972){const _0x360d80=_0x2c0f7b;_0x15e99b[_0x360d80('0x25bc')]=_0x575363,_0x15e99b['license']=_0x5f3972;}function _0x1f81ae(_0x4db7ff){const _0x21ec71=_0x2c0f7b,_0x5ef7ff=typeof _0x4db7ff[_0x21ec71('0x715')]!=='undefined'&&!_0x4db7ff[_0x21ec71('0x715')][_0x21ec71('0x11fb')]?!![]:![],_0x47c776=_0x4db7ff['title']===_0x21ec71('0x81e')?_0x21ec71('0x14d2'):_0x4db7ff[_0x21ec71('0x134b')];if(_0x4db7ff[_0x21ec71('0xff9')][_0x21ec71('0x1909')]!==_0x21ec71('0x1e18')){const _0x11ecd3=[];if(!_0x5ef7ff){const _0x560e32=_0x54d75f['confirm']({'skipHide':!![]})[_0x21ec71('0x134b')]('Warning')[_0x21ec71('0xad7')](_0x10f2c6['instant'](_0x21ec71('0x1591'),{'sectionName':_0x10f2c6[_0x21ec71('0x10c2')](_0x4db7ff[_0x21ec71('0xc16')])}))[_0x21ec71('0xb2e')](_0x21ec71('0x11bd'))['ok'](_0x10f2c6[_0x21ec71('0x10c2')](_0x21ec71('0xb59')))[_0x21ec71('0x26c9')](_0x10f2c6[_0x21ec71('0x10c2')](_0x21ec71('0xa5d')));_0x54d75f[_0x21ec71('0xb9')](_0x560e32)[_0x21ec71('0x11bf')](function(){const _0x546966=_0x21ec71;switch(_0x47c776){case _0x546966('0x2859'):_0x36f548()[_0x546966('0x2171')](_0x15e99b['dashboardSections'],function(_0x26bb02){const _0x27146d=_0x546966;_0x11ecd3[_0x27146d('0x105d')]({'category':_0x47c776,'sectionId':_0x26bb02['id'],'name':_0x26bb02[_0x27146d('0x134b')],'enabled':!![],'autoAssociation':!![],'crudPermissions':_0x36f548()[_0x27146d('0x2171')](_0x15e99b[_0x27146d('0x25bc')][_0x27146d('0xb25')])['join']('')});});break;default:_0x36f548()['map'](_0x4db7ff[_0x546966('0xbc5')],function(_0x112795){const _0xeb3563=_0x546966,_0xec04d3=typeof _0x112795['permissions']!=_0xeb3563('0x13e9')&&_0x112795[_0xeb3563('0x715')][_0xeb3563('0x2ed')]?!![]:![];if(!_0xec04d3){let _0x39f207=_0x112795[_0xeb3563('0x134b')];switch(_0x47c776){case'CallySquare':_0x39f207=_0x39f207===_0xeb3563('0x70c')?_0xeb3563('0xc40'):_0x39f207;break;}_0x11ecd3['push']({'category':_0x47c776,'sectionId':_0x112795['id'],'name':_0x39f207,'enabled':!![],'autoAssociation':!![],'crudPermissions':_0x36f548()[_0xeb3563('0x2171')](_0x15e99b[_0xeb3563('0x25bc')][_0xeb3563('0xb25')])[_0xeb3563('0xa04')]('')});}});break;}return _0x5bc47f[_0x546966('0x25bc')][_0x546966('0x7af')]({'id':_0x15e99b['userProfile']['id']},_0x11ecd3)[_0x546966('0x1549')]['then'](function(){const _0x1f6014=_0x546966;_0x4db7ff[_0x1f6014('0xff9')]=_0x2ced75(_0x4db7ff,'full'),_0x11e3b9[_0x1f6014('0x2693')]({'title':_0x10f2c6[_0x1f6014('0x10c2')](_0x1f6014('0x210e'),{'sectionName':_0x10f2c6[_0x1f6014('0x10c2')](_0x4db7ff[_0x1f6014('0xc16')]),'userProfileName':_0x15e99b['userProfile'][_0x1f6014('0x1909')]}),'msg':_0x10f2c6['instant'](_0x1f6014('0x236'),{'sectionName':_0x10f2c6[_0x1f6014('0x10c2')](_0x4db7ff[_0x1f6014('0xc16')]),'userProfileName':_0x15e99b[_0x1f6014('0x25bc')][_0x1f6014('0x1909')]})});});})['catch'](function(_0x3b2338){const _0x21622e=_0x21ec71;_0x3b2338?_0x11e3b9[_0x21622e('0x255')]({'title':_0x3b2338[_0x21622e('0xff9')]?'API:'+_0x3b2338[_0x21622e('0xff9')]+'\x20-\x20'+_0x3b2338[_0x21622e('0x212f')]:_0x21622e('0x22c8'),'msg':_0x3b2338[_0x21622e('0xff9')]?JSON[_0x21622e('0x3e')](_0x3b2338[_0x21622e('0x4e8')]):_0x3b2338[_0x21622e('0xaab')]()}):_0x4db7ff[_0x21622e('0xff9')]=_0x2ced75(_0x4db7ff,_0x4db7ff[_0x21622e('0xff9')][_0x21622e('0x1d73')]);});}else return _0x11ecd3['push']({'category':_0x47c776,'sectionId':_0x4db7ff['id'],'name':_0x47c776,'enabled':!![],'crudPermissions':_0x21ec71('0x1878')}),_0x5bc47f['userProfile'][_0x21ec71('0x7af')]({'id':_0x15e99b[_0x21ec71('0x25bc')]['id']},_0x11ecd3)[_0x21ec71('0x1549')][_0x21ec71('0x11bf')](function(){const _0x33294d=_0x21ec71;_0x4db7ff[_0x33294d('0xff9')]=_0x2ced75(_0x4db7ff,_0x33294d('0xcc6')),_0x11e3b9[_0x33294d('0x2693')]({'title':_0x10f2c6['instant'](_0x33294d('0x210e'),{'sectionName':_0x10f2c6[_0x33294d('0x10c2')](_0x4db7ff[_0x33294d('0xc16')]),'userProfileName':_0x15e99b['userProfile'][_0x33294d('0x1909')]}),'msg':_0x10f2c6[_0x33294d('0x10c2')](_0x33294d('0xd08'),{'sectionName':_0x10f2c6['instant'](_0x4db7ff['translate']),'userProfileName':_0x15e99b['userProfile'][_0x33294d('0x1909')]})});})[_0x21ec71('0x151d')](function(_0x311d05){const _0x53f17e=_0x21ec71;_0x11e3b9[_0x53f17e('0x255')]({'title':_0x311d05[_0x53f17e('0xff9')]?_0x53f17e('0x574')+_0x311d05['status']+_0x53f17e('0xb0b')+_0x311d05[_0x53f17e('0x212f')]:_0x53f17e('0x22c8'),'msg':_0x311d05[_0x53f17e('0xff9')]?JSON[_0x53f17e('0x3e')](_0x311d05[_0x53f17e('0x4e8')]):_0x311d05[_0x53f17e('0xaab')]()});});}else{if(_0x4db7ff['status'][_0x21ec71('0x1909')]===_0x21ec71('0x1e18')){_0x4db7ff[_0x21ec71('0xff9')]=_0x2ced75(_0x4db7ff,'disabled');let _0x5dcb9b=[];switch(_0x47c776){case _0x21ec71('0xb00'):case'Help':_0x5dcb9b=[_0x4db7ff['id']];break;case'Dashboards':_0x5dcb9b=_0x36f548()[_0x21ec71('0x2171')](_0x15e99b['dashboardSections'],function(_0x1bda00){return _0x1bda00['id'];});break;default:_0x5dcb9b=_0x36f548()[_0x21ec71('0x2171')](_0x4db7ff[_0x21ec71('0xbc5')],function(_0x4c926f){return _0x4c926f['id'];});break;}return _0x5bc47f['userProfile'][_0x21ec71('0x1b4f')]({'id':_0x15e99b[_0x21ec71('0x25bc')]['id'],'ids':_0x5dcb9b})[_0x21ec71('0x1549')]['then'](function(){const _0x1670a9=_0x21ec71;_0x11e3b9[_0x1670a9('0x2693')]({'title':_0x10f2c6['instant'](_0x1670a9('0x1912'),{'sectionName':_0x10f2c6['instant'](_0x4db7ff['translate']),'userProfileName':_0x15e99b[_0x1670a9('0x25bc')]['name']}),'msg':_0x10f2c6[_0x1670a9('0x10c2')]('STAFF.NOTIFICATIONS.PERMISSIONS_DISABLED_ALL_SUCCESS_MESSAGE',{'sectionName':_0x10f2c6[_0x1670a9('0x10c2')](_0x4db7ff['translate']),'userProfileName':_0x15e99b[_0x1670a9('0x25bc')][_0x1670a9('0x1909')]})});})[_0x21ec71('0x151d')](function(_0x48a1d5){const _0x21b82b=_0x21ec71;_0x11e3b9[_0x21b82b('0x255')]({'title':_0x48a1d5[_0x21b82b('0xff9')]?_0x21b82b('0x574')+_0x48a1d5['status']+_0x21b82b('0xb0b')+_0x48a1d5['statusText']:'SYSTEM:USERPROFILE.REMOVESECTIONS','msg':_0x48a1d5['status']?JSON[_0x21b82b('0x3e')](_0x48a1d5[_0x21b82b('0x4e8')]):_0x48a1d5[_0x21b82b('0xaab')]()});});}}}function _0x2c39ff(_0x2de458,_0x3c5890){const _0x1d123e=_0x2c0f7b,_0x5a51c0=_0x54d75f['show']({'controller':_0x1d123e('0x21f0'),'controllerAs':'vm','templateUrl':_0x517416,'parent':angular['element'](_0x3732f3[_0x1d123e('0x1d2')]),'targetEvent':_0x3c5890,'clickOutsideToClose':![],'locals':{'userProfile':_0x15e99b[_0x1d123e('0x25bc')],'userProfiles':[],'section':_0x2de458}});_0x5a51c0[_0x1d123e('0x11bf')](function(){_0x27c8ea(_0x2de458);});}function _0x2ced75(_0x267fb4,_0x2b710a){const _0xf53b5c=_0x2c0f7b;_0x267fb4[_0xf53b5c('0x1e2')]=_0x20ce49(_0x2b710a);switch(_0x2b710a){case'full':return _0x36f548()[_0xf53b5c('0x1ad4')](_0x15e99b['statusList'],[_0xf53b5c('0x1d73'),_0xf53b5c('0xcc6')]);case _0xf53b5c('0x16eb'):return _0x36f548()[_0xf53b5c('0x1ad4')](_0x15e99b['statusList'],[_0xf53b5c('0x1d73'),_0xf53b5c('0x16eb')]);case _0xf53b5c('0xa4b'):return _0x36f548()[_0xf53b5c('0x1ad4')](_0x15e99b[_0xf53b5c('0x11d0')],[_0xf53b5c('0x1d73'),_0xf53b5c('0xa4b')]);case _0xf53b5c('0xc6d'):return _0x36f548()[_0xf53b5c('0x1ad4')](_0x15e99b['statusList'],[_0xf53b5c('0x1d73'),'unlicensed']);case _0xf53b5c('0x6b0'):return _0x36f548()[_0xf53b5c('0x1ad4')](_0x15e99b[_0xf53b5c('0x11d0')],[_0xf53b5c('0x1d73'),_0xf53b5c('0x6b0')]);default:return _0x36f548()[_0xf53b5c('0x1ad4')](_0x15e99b['statusList'],[_0xf53b5c('0x1d73'),_0xf53b5c('0x6b0')]);}}function _0x537bb0(_0x398d62){return _0x5c1629(function(_0x42c3fa,_0x36ddd1){const _0x2c5af3=a0_0xaf0c,_0x53cf25=typeof _0x398d62['channel']!==_0x2c5af3('0x13e9')&&_0x36f548()['includes'](_0x398d62[_0x2c5af3('0x17d8')],_0x2c5af3('0x1c29'));_0x53cf25?_0x3a64a2(_0x398d62)['then'](function(_0x1b981e){_0x42c3fa(_0x1b981e);})[_0x2c5af3('0x151d')](function(_0x551de7){_0x36ddd1(_0x551de7);}):_0x5564c8(_0x398d62)[_0x2c5af3('0x11bf')](function(_0x2366eb){_0x42c3fa(_0x2366eb);})['catch'](function(_0xd281b3){_0x36ddd1(_0xd281b3);});});}function _0x3a64a2(_0x59959f){return _0x5c1629(function(_0x2987b7,_0x4f642e){const _0x1fa246=a0_0xaf0c,_0xc418a1=typeof _0x59959f[_0x1fa246('0xd12')]!==_0x1fa246('0x13e9')&&_0x59959f[_0x1fa246('0xd12')]===_0x1fa246('0x779')?_0x1fa246('0x25b6'):_0x1fa246('0x18a2');return _0x5bc47f[_0x59959f[_0x1fa246('0x17d8')]][_0x1fa246('0xbaa')]({'fields':_0x1fa246('0x18d2'),'channel':_0x59959f['channel']===_0x1fa246('0x779')?_0x1fa246('0x1bc3'):_0x59959f[_0x1fa246('0xd12')],'type':_0xc418a1,'nolimit':!![]})[_0x1fa246('0x1549')][_0x1fa246('0x11bf')](function(_0x14bc09){_0x2987b7(_0x14bc09);})['catch'](function(_0x16d0b0){_0x4f642e(_0x16d0b0);});});}function _0x5564c8(_0x2f44b1){return _0x5c1629(function(_0x46ff84,_0x11e5a7){const _0x259e71=a0_0xaf0c;let _0x5f2b60,_0x362f9f,_0x2d63db=![],_0x36a9f1=![];switch(_0x2f44b1[_0x259e71('0x17d8')]){case _0x259e71('0x417'):switch(_0x2f44b1[_0x259e71('0x134b')]){case _0x259e71('0x2209'):_0x5f2b60=_0x259e71('0x18a2');break;case _0x259e71('0x2028'):_0x5f2b60=_0x259e71('0x25b6');break;case _0x259e71('0x109c'):_0x5f2b60=_0x259e71('0x1a04');break;}break;case'interval':_0x2d63db=!![];break;case'disposition':_0x36a9f1=!![];break;case _0x259e71('0x21d9'):switch(_0x2f44b1[_0x259e71('0x134b')]){case _0x259e71('0x4b1'):_0x362f9f='agent';break;case _0x259e71('0x44c'):_0x362f9f='telephone';break;case'Users':_0x362f9f='user';break;}break;}if(_0x2f44b1[_0x259e71('0x134b')]==='Reports'){if(_0x2f44b1['reportType'])switch(_0x2f44b1[_0x259e71('0x32e')]){case'default':_0x2f44b1[_0x259e71('0x17d8')]=_0x259e71('0x19f4');break;case _0x259e71('0xa8d'):_0x2f44b1['route']=_0x259e71('0x13ee');break;}else return _0x5bc47f[_0x259e71('0x19f4')]['get']({'nolimit':!![]})[_0x259e71('0x1549')][_0x259e71('0x11bf')](function(_0x2226a5){const _0x3be96c=_0x259e71;_0x5bc47f['analyticCustomReport']['get']({'nolimit':!![]})['$promise'][_0x3be96c('0x11bf')](function(_0xf08409){const _0x4ca40c=_0x3be96c,_0x2ffd81=_0x36f548()[_0x4ca40c('0x638')](_0x2226a5[_0x4ca40c('0x19b2')],_0xf08409[_0x4ca40c('0x19b2')]);_0x46ff84({'count':_0x2ffd81[_0x4ca40c('0x1e22')],'rows':_0x2ffd81[_0x4ca40c('0x19b2')]});});})[_0x259e71('0x151d')](function(_0x128891){_0x11e5a7(_0x128891);});}return _0x5bc47f[_0x2f44b1[_0x259e71('0x17d8')]][_0x259e71('0xbaa')]({'role':_0x362f9f?_0x362f9f:undefined,'type':_0x5f2b60?_0x5f2b60:undefined,'VoiceExtensionId':_0x5f2b60?_0x259e71('0xb5f'):undefined,'IntervalId':_0x2d63db?'null':undefined,'MailAccountId':_0x36a9f1?'null':undefined,'FaxAccountId':_0x36a9f1?_0x259e71('0xb5f'):undefined,'SmsAccountId':_0x36a9f1?_0x259e71('0xb5f'):undefined,'OpenchannelAccountId':_0x36a9f1?'null':undefined,'ChatWebsiteId':_0x36a9f1?_0x259e71('0xb5f'):undefined,'WhatsappAccountId':_0x36a9f1?_0x259e71('0xb5f'):undefined,'ListId':_0x36a9f1?_0x259e71('0xb5f'):undefined,'nolimit':!![]})['$promise'][_0x259e71('0x11bf')](function(_0x2cd520){_0x46ff84(_0x2cd520);})['catch'](function(_0x4fc7ba){_0x11e5a7(_0x4fc7ba);});});}function _0x35d82f(_0x5b9dcb,_0xa1e61d){return _0x5c1629(function(_0x5cf1bc,_0x5f1c09){const _0x595c51=a0_0xaf0c;_0x5bc47f['userProfileResource'][_0x595c51('0xbaa')]({'sectionId':_0xa1e61d})['$promise'][_0x595c51('0x11bf')](function(_0x36c1c9){const _0x2e8f58=_0x595c51;return _0x537bb0(_0x5b9dcb)[_0x2e8f58('0x11bf')](function(_0x1a4639){const _0x4fa4db=_0x2e8f58;return _0x36f548()[_0x4fa4db('0x2753')](_0x36c1c9['rows'],_0x1a4639[_0x4fa4db('0x19b2')],'id');});})[_0x595c51('0x11bf')](function(_0x17907b){const _0x5c2a53=_0x595c51;_0x36f548()[_0x5c2a53('0x1fc5')](_0x17907b)?_0x5cf1bc():_0x5f1c09();})[_0x595c51('0x151d')](function(_0x3fcf31){_0x5f1c09(_0x3fcf31);});});}function _0x3c76e7(_0x4bb43d,_0x4468b1,_0x1fca65){const _0x2d7761=_0x2c0f7b,_0xbca442=_0x4bb43d&&_0x4bb43d[_0x2d7761('0x1e22')]>0x0?_0x4bb43d[0x0]:null;if(!_0xbca442)return _0x1fca65;const _0x405013=_0x36f548()[_0x2d7761('0x1ad4')](_0x4468b1,[_0x2d7761('0x24b2'),_0xbca442['id']]);if(_0x405013)return _0x4468b1=_0x36f548()[_0x2d7761('0x14a5')](_0x4468b1,['sectionId',_0xbca442['id']]),_0x35d82f(_0xbca442,_0x405013['id'])[_0x2d7761('0x11bf')](function(){return _0x1fca65='full',_0x3c76e7(_0x4bb43d['shift'](),_0x4468b1,_0x1fca65);})[_0x2d7761('0x151d')](function(_0x439860){return _0x5c1629['reject'](_0x439860);});}function _0x27c8ea(_0x26a77b){const _0xcb0d63=_0x2c0f7b,_0x1571e5=_0x26a77b['title']==='Marketplace'?'AppZone':_0x26a77b[_0xcb0d63('0x134b')];if(!_0x15e99b['license']){_0x26a77b[_0xcb0d63('0xff9')]=_0x2ced75(_0x26a77b,'unknown');return;}typeof _0x26a77b[_0xcb0d63('0x715')]!==_0xcb0d63('0x13e9')&&!_0x26a77b[_0xcb0d63('0x715')][_0xcb0d63('0x11fb')]?_0x5bc47f[_0xcb0d63('0x1d63')][_0xcb0d63('0xbaa')]({'userProfileId':_0x15e99b['userProfile']['id'],'sectionId':_0x26a77b['id']})['$promise'][_0xcb0d63('0x11bf')](function(_0x150183){const _0xac4c5=_0xcb0d63,_0x570420=_0x150183&&_0x150183['rows']['length']===0x1?_0x150183[_0xac4c5('0x19b2')][0x0]:null,_0x5d6a10=_0x570420?_0xac4c5('0xcc6'):'disabled';_0x26a77b['status']=_0x2ced75(_0x26a77b,_0x5d6a10);}):typeof _0x26a77b[_0xcb0d63('0x17ff')]!==_0xcb0d63('0x13e9')&&!_0x15e99b[_0xcb0d63('0x17ff')][_0x26a77b['license']]?_0x26a77b[_0xcb0d63('0xff9')]=_0x2ced75(_0x26a77b,_0xcb0d63('0xc6d')):_0x5bc47f[_0xcb0d63('0x1d63')][_0xcb0d63('0xbaa')]({'userProfileId':_0x15e99b[_0xcb0d63('0x25bc')]['id'],'category':_0x1571e5})['$promise']['then'](function(_0x28b7c0){const _0xba6991=_0xcb0d63,_0x15f97b=_0x28b7c0&&_0x28b7c0[_0xba6991('0x19b2')]&&_0x28b7c0[_0xba6991('0x19b2')][_0xba6991('0x1e22')]>0x0?_0x28b7c0[_0xba6991('0x19b2')]:[];if(_0x26a77b[_0xba6991('0x134b')]===_0xba6991('0x2859'))return _0x36f548()['isEmpty'](_0x15f97b)?_0xba6991('0xa4b'):_0x15f97b[0x0][_0xba6991('0xf11')]?_0xba6991('0xcc6'):_0x5bc47f['userProfileResource']['get']({'sectionId':_0x15f97b[0x0]['id'],'resourceId':0x65})[_0xba6991('0x1549')][_0xba6991('0x11bf')](function(_0x390082){const _0x35a1a9=_0xba6991,_0x41e03=_0x390082&&_0x390082['rows']?_0x390082[_0x35a1a9('0x19b2')][0x0]:null;return _0x41e03?'full':'partial';});else{const _0x49dbe2=_0x36f548()[_0xba6991('0xdb4')](_0x26a77b[_0xba6991('0xbc5')],function(_0x1c03f1){const _0x1e610c=_0xba6991;return typeof _0x1c03f1[_0x1e610c('0x715')]!==_0x1e610c('0x13e9')&&_0x1c03f1[_0x1e610c('0x715')]['hidden']?undefined:_0x1c03f1;});if(_0x15f97b[_0xba6991('0x1e22')]===_0x49dbe2[_0xba6991('0x1e22')]){if(_0x36f548()[_0xba6991('0x1d1')](_0x15f97b,['autoAssociation',!![]]))return _0xba6991('0xcc6');else{const _0x35c519=_0x36f548()[_0xba6991('0xdb4')](_0x49dbe2,function(_0x4d4c40){const _0x18daee=_0xba6991;return typeof _0x4d4c40[_0x18daee('0x715')]!==_0x18daee('0x13e9')&&!_0x4d4c40['permissions'][_0x18daee('0x11fb')]?undefined:_0x4d4c40;});return _0x3c76e7(_0x35c519,_0x15f97b,_0xba6991('0x16eb'));}}else return _0x15f97b[_0xba6991('0x1e22')]===0x0?_0xba6991('0xa4b'):_0xba6991('0x16eb');}})[_0xcb0d63('0x11bf')](function(_0x8be5e5){const _0x575872=_0xcb0d63;_0x26a77b[_0x575872('0xff9')]=_0x2ced75(_0x26a77b,_0x8be5e5);})[_0xcb0d63('0x151d')](function(_0x2d3997){const _0x391e88=_0xcb0d63,_0x167252=_0x2d3997?_0x391e88('0x6b0'):_0x391e88('0x16eb');_0x26a77b[_0x391e88('0xff9')]=_0x2ced75(_0x26a77b,_0x167252),_0x2d3997&&_0x11e3b9['error']({'title':_0x2d3997[_0x391e88('0xff9')]?_0x391e88('0x574')+_0x2d3997['status']+_0x391e88('0xb0b')+_0x2d3997['statusText']:_0x391e88('0x307')+_0x1571e5[_0x391e88('0xa6f')]()+')','msg':_0x2d3997[_0x391e88('0xff9')]?JSON[_0x391e88('0x3e')](_0x2d3997[_0x391e88('0x4e8')]):_0x2d3997[_0x391e88('0xaab')]()});});}function _0x20ce49(_0x2dcbf3){const _0x4dceac=_0x2c0f7b;return _0x2dcbf3===_0x4dceac('0xcc6')?!![]:![];}}const _0x4cca35=_0x5f0a41;_0x360dd4[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0x142d'),'api',_0x21d0f5('0x25bc'),_0x21d0f5('0xaf1'),_0x21d0f5('0xb6b'),_0x21d0f5('0x1150'),_0x21d0f5('0xe6')];function _0x360dd4(_0x307fe6,_0x9f6d1d,_0x19f3d3,_0x246449,_0x1e0b30,_0x474130,_0x3149d7,_0x586a3a,_0x828286,_0x36ad49){const _0x40d429=_0x21d0f5,_0x20dfb1=this;_0x20dfb1[_0x40d429('0x25bc')]=_0x474130,_0x20dfb1[_0x40d429('0xf47')]=0x0,_0x20dfb1[_0x40d429('0xe6')]=angular[_0x40d429('0x6fb')](_0x36ad49),_0x20dfb1[_0x40d429('0x134b')]=_0x586a3a[_0x40d429('0x10c2')](_0x40d429('0x280c'),{'sectionName':_0x586a3a[_0x40d429('0x10c2')](_0x20dfb1[_0x40d429('0xe6')][_0x40d429('0xc16')])}),_0x20dfb1['items']=[],_0x20dfb1['selectedItems']=[],_0x20dfb1[_0x40d429('0x1242')]=_0x36f548()[_0x40d429('0xdb4')](_0x20dfb1[_0x40d429('0xe6')][_0x40d429('0xbc5')],function(_0x154f8d){const _0x2f4b5b=_0x40d429;return typeof _0x154f8d[_0x2f4b5b('0x715')]!=_0x2f4b5b('0x13e9')&&_0x154f8d[_0x2f4b5b('0x715')][_0x2f4b5b('0x2ed')]?undefined:_0x154f8d;}),_0x20dfb1[_0x40d429('0x118')]=[{'title':_0x40d429('0x2859'),'translate':_0x40d429('0x2856'),'id':0x64}],_0x20dfb1[_0x40d429('0xa72')]=[];_0x20dfb1[_0x40d429('0xe6')]['title']===_0x40d429('0x2859')&&(_0x20dfb1[_0x40d429('0xa72')]=_0x20dfb1[_0x40d429('0x1242')],_0x20dfb1[_0x40d429('0x1242')]=_0x20dfb1[_0x40d429('0x118')]);_0x20dfb1[_0x40d429('0x1039')]=null,_0x20dfb1[_0x40d429('0x1bc7')]=null,_0x20dfb1['allReportsSelected']=[],_0x20dfb1[_0x40d429('0xc4e')]=_0xa07fb6,_0x20dfb1[_0x40d429('0x14ab')]=_0x1aad53,_0x20dfb1[_0x40d429('0x2514')]=_0x4c0b2e,_0x20dfb1[_0x40d429('0x77e')]=_0x38828a,_0x20dfb1[_0x40d429('0x2793')]=_0x371428,_0x20dfb1[_0x40d429('0x14e1')]=_0x5a12e8,_0x20dfb1[_0x40d429('0x2724')]=_0xdd869d,_0x20dfb1[_0x40d429('0xec5')]={'readOnly':![],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x40d429('0x1909'),'line1':_0x40d429('0x1909'),'line2':'','line3':'','line4':_0x40d429('0x292'),'labelAll':_0x586a3a['instant'](_0x40d429('0x11a7')),'labelSelected':_0x586a3a[_0x40d429('0x10c2')](_0x40d429('0x641')),'labelSearch':_0x586a3a[_0x40d429('0x10c2')]('STAFF.PERMISSIONS_PLACEHOLDER_SEARCH'),'transferCallback':function(_0x380539,_0x429abe){const _0x59be8f=_0x40d429;_0xe5a859(!![]),_0x429abe?(_0x20dfb1[_0x59be8f('0x1039')][_0x59be8f('0x26cc')]=_0x36f548()[_0x59be8f('0x1f6a')](_0x20dfb1[_0x59be8f('0x1039')][_0x59be8f('0x26cc')],_0x380539,'id'),_0x20dfb1[_0x59be8f('0x1039')]['autoAssociation']=![]):_0x20dfb1[_0x59be8f('0x1039')]['selectedItems']=_0x36f548()[_0x59be8f('0xbb4')](_0x20dfb1[_0x59be8f('0x1039')][_0x59be8f('0x26cc')],_0x380539,'id'),_0x20dfb1[_0x59be8f('0x1039')]['title']===_0x59be8f('0x14b5')&&_0x55e799();}};function _0x20045a(){return _0x19f3d3(function(_0x1a46e7,_0x197f02){const _0x9cca97=a0_0xaf0c,_0x35455e=typeof _0x20dfb1[_0x9cca97('0x1039')][_0x9cca97('0xd12')]!==_0x9cca97('0x13e9')&&_0x20dfb1[_0x9cca97('0x1039')][_0x9cca97('0xd12')]===_0x9cca97('0x779')?_0x9cca97('0x25b6'):'inbound';return _0x1e0b30[_0x20dfb1[_0x9cca97('0x1039')]['route']][_0x9cca97('0xbaa')]({'fields':_0x9cca97('0x18d2'),'channel':_0x20dfb1['selectedSection'][_0x9cca97('0xd12')]===_0x9cca97('0x779')?'voice':_0x20dfb1[_0x9cca97('0x1039')][_0x9cca97('0xd12')],'type':_0x35455e,'nolimit':!![]})[_0x9cca97('0x1549')][_0x9cca97('0x11bf')](function(_0x2de60e){_0x1a46e7(_0x2de60e);})[_0x9cca97('0x151d')](function(_0xf4d325){_0x197f02(_0xf4d325);});});}function _0x5f37ae(){return _0x19f3d3(function(_0x375474,_0x1335ea){const _0x52008d=a0_0xaf0c;let _0x19ff04,_0x54f7ab,_0xed88e6=![],_0x1a732d=![];if(_0x20dfb1[_0x52008d('0x1039')][_0x52008d('0x17d8')]===_0x52008d('0x417'))switch(_0x20dfb1['selectedSection'][_0x52008d('0x134b')]){case _0x52008d('0x2209'):_0x19ff04=_0x52008d('0x18a2');break;case _0x52008d('0x2028'):_0x19ff04=_0x52008d('0x25b6');break;case'InternalRoutes':_0x19ff04=_0x52008d('0x1a04');break;}if(_0x20dfb1[_0x52008d('0x1039')][_0x52008d('0x17d8')]===_0x52008d('0x21d9'))switch(_0x20dfb1[_0x52008d('0x1039')][_0x52008d('0x134b')]){case'Agents':_0x54f7ab=_0x52008d('0x18c4');break;case _0x52008d('0x44c'):_0x54f7ab=_0x52008d('0x2650');break;case _0x52008d('0xc42'):_0x54f7ab=_0x52008d('0x21d9');break;}_0x20dfb1[_0x52008d('0x1039')]['route']===_0x52008d('0x507')&&(_0xed88e6=!![]);_0x20dfb1[_0x52008d('0x1039')]['route']===_0x52008d('0x107a')&&(_0x1a732d=!![]);_0x20dfb1[_0x52008d('0x1039')][_0x52008d('0x134b')]==='Reports'&&(_0x20dfb1[_0x52008d('0x1039')][_0x52008d('0x17d8')]=_0x20dfb1[_0x52008d('0x1039')]['reportType']===_0x52008d('0xb2f')?'analyticDefaultReport':'analyticCustomReport');if(_0x20dfb1['selectedSection'][_0x52008d('0x134b')]==='Dashboards')_0x375474({'count':0x1,'rows':[{'id':0x65,'name':_0x586a3a[_0x52008d('0x10c2')](_0x52008d('0x203a'))}]});else return _0x1e0b30[_0x20dfb1[_0x52008d('0x1039')][_0x52008d('0x17d8')]]['get']({'role':_0x54f7ab?_0x54f7ab:undefined,'type':_0x19ff04?_0x19ff04:undefined,'VoiceExtensionId':_0x19ff04?'null':undefined,'IntervalId':_0xed88e6?_0x52008d('0xb5f'):undefined,'MailAccountId':_0x1a732d?'null':undefined,'FaxAccountId':_0x1a732d?'null':undefined,'SmsAccountId':_0x1a732d?_0x52008d('0xb5f'):undefined,'OpenchannelAccountId':_0x1a732d?_0x52008d('0xb5f'):undefined,'ChatWebsiteId':_0x1a732d?_0x52008d('0xb5f'):undefined,'WhatsappAccountId':_0x1a732d?_0x52008d('0xb5f'):undefined,'ListId':_0x1a732d?_0x52008d('0xb5f'):undefined,'nolimit':!![]})[_0x52008d('0x1549')][_0x52008d('0x11bf')](function(_0x3cd95e){_0x375474(_0x3cd95e);})[_0x52008d('0x151d')](function(_0x508ad0){_0x1335ea(_0x508ad0);});});}function _0x2224d6(){const _0x42ee93=_0x40d429,_0x476d17=typeof _0x20dfb1[_0x42ee93('0x1039')][_0x42ee93('0xb39')]!=_0x42ee93('0x13e9')?_0x20dfb1[_0x42ee93('0x1039')][_0x42ee93('0xb39')]:![];return _0x19f3d3(function(_0x1b7893,_0x3a74e0){const _0x590081=_0x42ee93;_0x1e0b30[_0x590081('0x1d63')]['get']({'userProfileId':_0x20dfb1[_0x590081('0x25bc')]['id'],'sectionId':_0x20dfb1[_0x590081('0x1039')]['id']})['$promise']['then'](function(_0x1ab006){const _0x454ccc=_0x590081,_0x7207a4=_0x1ab006&&_0x1ab006['rows']?_0x1ab006[_0x454ccc('0x19b2')][0x0]:null;!_0x476d17&&(_0x20dfb1[_0x454ccc('0x1039')][_0x454ccc('0x1f0a')]=_0x7207a4?!!_0x7207a4[_0x454ccc('0x1f0a')]:![],_0x20dfb1[_0x454ccc('0x1039')]['autoAssociation']=_0x7207a4?!!_0x7207a4[_0x454ccc('0xf11')]:![],_0x20dfb1[_0x454ccc('0x1039')][_0x454ccc('0xb25')]=_0x7207a4?_0x2b7ecc(_0x7207a4[_0x454ccc('0xb25')]):_0x2b7ecc(_0x20dfb1['userProfile'][_0x454ccc('0xb25')])),_0x1b7893(_0x7207a4);})[_0x590081('0x151d')](function(_0x68eb9e){_0x3a74e0(_0x68eb9e);});});}function _0x4dc6b4(){return _0x19f3d3(function(_0x14557f,_0x55fb28){const _0x131f9b=a0_0xaf0c;!_0x20dfb1[_0x131f9b('0x1bc7')]?_0x14557f(null):_0x1e0b30[_0x131f9b('0x26d1')]['get']({'sectionId':_0x20dfb1['loadedSection']['id'],'nolimit':!![]})[_0x131f9b('0x1549')][_0x131f9b('0x11bf')](function(_0x56039b){_0x14557f(_0x56039b);})[_0x131f9b('0x151d')](function(_0x2705eb){_0x55fb28(_0x2705eb);});});}function _0x4e6797(){return _0x19f3d3(function(_0xbe6246,_0x19802e){const _0x3af393=a0_0xaf0c,_0x3d30c9=typeof _0x20dfb1['selectedSection'][_0x3af393('0xd12')]!=='undefined'&&_0x36f548()['includes'](_0x20dfb1[_0x3af393('0x1039')][_0x3af393('0x17d8')],_0x3af393('0x1c29'));_0x3d30c9?_0x20045a()['then'](function(_0x5372f0){_0xbe6246(_0x5372f0);})['catch'](function(_0x2a6489){_0x19802e(_0x2a6489);}):_0x5f37ae()[_0x3af393('0x11bf')](function(_0x2a7371){_0xbe6246(_0x2a7371);})[_0x3af393('0x151d')](function(_0x3c1efa){_0x19802e(_0x3c1efa);});});}function _0x4d6b8f(){const _0x1b9283=_0x40d429,_0x522ce9=typeof _0x20dfb1[_0x1b9283('0x1039')][_0x1b9283('0xb39')]!='undefined'?_0x20dfb1[_0x1b9283('0x1039')][_0x1b9283('0xb39')]:![];let _0x36aa80=[];return _0x4dc6b4()[_0x1b9283('0x11bf')](function(_0x1cb1d4){const _0xe66bbc=_0x1b9283;return _0x36aa80=_0x1cb1d4&&_0x1cb1d4[_0xe66bbc('0x19b2')]?_0x1cb1d4[_0xe66bbc('0x19b2')]:[],_0x20dfb1[_0xe66bbc('0x1039')]['title']==='Reports'&&(_0x20dfb1[_0xe66bbc('0x270f')]=!_0x20dfb1[_0xe66bbc('0x270f')]?_0x36aa80:_0x20dfb1[_0xe66bbc('0x270f')],_0x36aa80=_0x43fbac(_0x20dfb1['associatedReports'])),typeof _0x20dfb1[_0xe66bbc('0x1039')][_0xe66bbc('0x715')]!==_0xe66bbc('0x13e9')&&!_0x20dfb1[_0xe66bbc('0x1039')][_0xe66bbc('0x715')][_0xe66bbc('0x11fb')]?{'rows':[]}:_0x4e6797();})['then'](function(_0x35a9ed){const _0x4d8f9b=_0x1b9283;_0x20dfb1[_0x4d8f9b('0x22')]=_0x35a9ed['rows']?_0x36f548()[_0x4d8f9b('0x2171')](_0x35a9ed['rows'],function(_0x557cab){const _0x52ec59=_0x4d8f9b;return _0x20dfb1['selectedSection'][_0x52ec59('0x134b')]==='Reports'&&(_0x557cab[_0x52ec59('0x292')]=_0x42a735(_0x557cab['parent'])['replace']('\x20','_')),_0x557cab['isValid']=!![],_0x557cab;}):[];!_0x522ce9&&(_0x20dfb1[_0x4d8f9b('0x1039')][_0x4d8f9b('0x26cc')]=_0x36f548()[_0x4d8f9b('0x2171')](_0x36aa80,function(_0x2e7b24){const _0x2d6277=_0x4d8f9b;return _0x36f548()[_0x2d6277('0x1ad4')](_0x20dfb1['items'],{'id':_0x2e7b24[_0x2d6277('0x15a5')]});}));const _0x30848a=_0x36f548()[_0x4d8f9b('0x2753')](_0x20dfb1['selectedSection'][_0x4d8f9b('0x26cc')],_0x20dfb1[_0x4d8f9b('0x22')],'id');!_0x36f548()[_0x4d8f9b('0x1fc5')](_0x30848a)&&(_0x20dfb1['selectedSection'][_0x4d8f9b('0x26cc')]=_0x36f548()[_0x4d8f9b('0x1f6a')](_0x20dfb1['selectedSection'][_0x4d8f9b('0x26cc')],_0x30848a,'id'));let _0x190a0e;switch(_0x20dfb1[_0x4d8f9b('0x1039')][_0x4d8f9b('0x134b')]){case _0x4d8f9b('0xfcb'):_0x20dfb1[_0x4d8f9b('0x1039')][_0x4d8f9b('0x26cc')]=_0x36f548()[_0x4d8f9b('0xdb4')](_0x20dfb1[_0x4d8f9b('0x22')],function(_0x2c0ec4){const _0x1e9650=_0x4d8f9b;if(_0x2c0ec4['defaultEntry'])return _0x2c0ec4['isValid']=![],_0x2c0ec4;else{const _0x4d078a=_0x36f548()['find'](_0x36aa80,{'resourceId':_0x2c0ec4['id']});if(typeof _0x4d078a!==_0x1e9650('0x13e9'))return _0x2c0ec4[_0x1e9650('0xde9')]=!![],_0x2c0ec4;}});break;case _0x4d8f9b('0x1e5e'):_0x20dfb1[_0x4d8f9b('0x1039')][_0x4d8f9b('0x26cc')]=_0x36f548()[_0x4d8f9b('0xdb4')](_0x20dfb1[_0x4d8f9b('0x22')],function(_0x4cf277){const _0x75fccc=_0x4d8f9b;if(_0x4cf277[_0x75fccc('0x199a')])return _0x4cf277[_0x75fccc('0xde9')]=![],_0x4cf277;else{const _0x3f1ee9=_0x36f548()['find'](_0x36aa80,{'resourceId':_0x4cf277['id']});if(typeof _0x3f1ee9!==_0x75fccc('0x13e9'))return _0x4cf277[_0x75fccc('0xde9')]=!![],_0x4cf277;}});break;case'Reports':_0x190a0e=_0x7c20cc(_0x20dfb1['allReportsSelected']),_0x20dfb1[_0x4d8f9b('0x1039')][_0x4d8f9b('0x26cc')]=_0x3339dc(_0x20dfb1['selectedSection']['selectedItems']),_0x20dfb1[_0x4d8f9b('0x1039')][_0x4d8f9b('0x26cc')]=_0x36f548()[_0x4d8f9b('0xbb4')](_0x20dfb1[_0x4d8f9b('0x1039')][_0x4d8f9b('0x26cc')],_0x190a0e,'id');break;}_0x20dfb1['dualMultiselectOptions'][_0x4d8f9b('0x26cc')]=_0x20dfb1[_0x4d8f9b('0x1039')]['selectedItems'],_0x20dfb1[_0x4d8f9b('0xec5')]['items']=_0x36f548()['differenceBy'](_0x20dfb1[_0x4d8f9b('0x22')],_0x20dfb1[_0x4d8f9b('0xec5')][_0x4d8f9b('0x26cc')],'id');})[_0x1b9283('0x151d')](function(_0x2c12ab){const _0x21182a=_0x1b9283;_0x246449[_0x21182a('0x255')]({'title':_0x2c12ab['status']?_0x21182a('0x574')+_0x2c12ab[_0x21182a('0xff9')]+_0x21182a('0xb0b')+_0x2c12ab[_0x21182a('0x212f')]:'SYSTEM:GET'+_0x20dfb1['selectedSection']['title'][_0x21182a('0xa6f')](),'msg':_0x2c12ab['status']?JSON[_0x21182a('0x3e')](_0x2c12ab[_0x21182a('0x4e8')]):_0x2c12ab[_0x21182a('0xaab')]()});});}function _0x1aad53(){const _0x589adb=_0x40d429;return _0x2224d6()[_0x589adb('0x11bf')](function(_0x396b0c){const _0x398aba=_0x589adb;_0x20dfb1[_0x398aba('0x1bc7')]=_0x396b0c;if(_0x20dfb1[_0x398aba('0x1039')][_0x398aba('0x134b')]==='Reports')return _0x7645a3()[_0x398aba('0x11bf')](function(){const _0x1af8b8=_0x398aba;if(!_0x20dfb1[_0x1af8b8('0x1039')][_0x1af8b8('0x32e')])return _0x4dc6b4()[_0x1af8b8('0x11bf')](function(_0x1d286d){const _0x1f9ffc=_0x1af8b8;_0x20dfb1[_0x1f9ffc('0x2344')]=_0x1d286d?_0x36f548()[_0x1f9ffc('0x2171')](_0x1d286d['rows'],function(_0x5b7079){const _0x3637fd=_0x1f9ffc;return{'id':_0x5b7079[_0x3637fd('0x15a5')],'name':_0x5b7079['name'],'type':_0x5b7079[_0x3637fd('0x19fd')]};}):[];});})[_0x398aba('0x151d')](function(_0x37d44f){const _0x2bb1df=_0x398aba;_0x246449[_0x2bb1df('0x255')]({'title':_0x37d44f[_0x2bb1df('0xff9')]?_0x2bb1df('0x574')+_0x37d44f[_0x2bb1df('0xff9')]+_0x2bb1df('0xb0b')+_0x37d44f[_0x2bb1df('0x212f')]:_0x2bb1df('0x536'),'msg':_0x37d44f[_0x2bb1df('0x4e8')]?JSON[_0x2bb1df('0x3e')](_0x37d44f[_0x2bb1df('0x4e8')]):_0x37d44f[_0x2bb1df('0xaab')]()});});else _0x4d6b8f();})[_0x589adb('0x151d')](function(_0x4e316c){const _0x3efeb7=_0x589adb;_0x246449[_0x3efeb7('0x255')]({'title':_0x4e316c[_0x3efeb7('0xff9')]?_0x3efeb7('0x574')+_0x4e316c[_0x3efeb7('0xff9')]+'\x20-\x20'+_0x4e316c[_0x3efeb7('0x212f')]:_0x3efeb7('0xf37')+_0x20dfb1['selectedSection'][_0x3efeb7('0x134b')][_0x3efeb7('0xa6f')](),'msg':_0x4e316c[_0x3efeb7('0xff9')]?JSON[_0x3efeb7('0x3e')](_0x4e316c[_0x3efeb7('0x4e8')]):_0x4e316c[_0x3efeb7('0xaab')]()});});}function _0x2b7ecc(_0x2910a9){const _0x35b774=_0x40d429;return _0x2910a9&&(_0x20dfb1[_0x35b774('0x1039')][_0x35b774('0x8a4')]=_0x36f548()['includes'](_0x2910a9,'e')?!![]:![],_0x20dfb1['selectedSection'][_0x35b774('0x378')]=_0x36f548()[_0x35b774('0x55a')](_0x2910a9,'d')?!![]:![]),_0x31050c();}function _0x31050c(){const _0x37d7fa=_0x40d429,_0x3e4de8=['r'];if(_0x20dfb1['selectedSection'][_0x37d7fa('0x8a4')])_0x3e4de8[_0x37d7fa('0x105d')]('e');else{const _0x42cf0b=_0x36f548()['indexOf'](_0x3e4de8,['e']);_0x42cf0b>0x0&&_0x20dfb1[_0x37d7fa('0x1039')][_0x37d7fa('0xb25')][_0x37d7fa('0x814')]('e','');}if(_0x20dfb1[_0x37d7fa('0x1039')][_0x37d7fa('0x378')])_0x3e4de8[_0x37d7fa('0x105d')]('d');else{const _0xbf7502=_0x36f548()[_0x37d7fa('0x203c')](_0x3e4de8,['d']);_0xbf7502>0x0&&_0x20dfb1[_0x37d7fa('0x1039')]['crudPermissions'][_0x37d7fa('0x814')]('d','');}return _0x3e4de8;}function _0x4c0b2e(){const _0x488ed4=_0x40d429;_0x20dfb1[_0x488ed4('0x1039')][_0x488ed4('0x1f0a')]=!_0x20dfb1[_0x488ed4('0x1039')]['enabled'],_0xe5a859(!![]);}function _0x38828a(){const _0x3fbc86=_0x40d429;if(!_0x20dfb1[_0x3fbc86('0x1039')][_0x3fbc86('0xf11')]){const _0x44b315=[];for(let _0x1ee9b4=0x0;_0x1ee9b4<_0x20dfb1[_0x3fbc86('0xec5')][_0x3fbc86('0x22')][_0x3fbc86('0x1e22')];_0x1ee9b4++){_0x44b315[_0x3fbc86('0x105d')](_0x20dfb1[_0x3fbc86('0xec5')][_0x3fbc86('0x22')][_0x1ee9b4]),_0x20dfb1[_0x3fbc86('0xec5')][_0x3fbc86('0x26cc')][_0x3fbc86('0x105d')](_0x20dfb1[_0x3fbc86('0xec5')]['items'][_0x1ee9b4]);}_0x20dfb1['dualMultiselectOptions'][_0x3fbc86('0x22')]=[],_0x20dfb1['dualMultiselectOptions'][_0x3fbc86('0x1b6a')](_0x44b315,![]);}_0xe5a859(!![]);}function _0x371428(){const _0x460e2e=_0x40d429;_0x20dfb1[_0x460e2e('0x236f')]=_0x340f76(),_0x20dfb1[_0x460e2e('0x1039')][_0x460e2e('0x26cc')]&&(_0x20dfb1[_0x460e2e('0x2344')]=_0x3339dc(_0x20dfb1[_0x460e2e('0x2344')]),_0x55e799()),_0x4d6b8f();}function _0x5a12e8(_0x4a9dd1){const _0x407b16=_0x40d429;if(_0x4a9dd1===_0x407b16('0x43f'))_0x20dfb1[_0x407b16('0x1039')][_0x407b16('0x8a4')]=!_0x20dfb1[_0x407b16('0x1039')][_0x407b16('0x8a4')];else _0x4a9dd1==='delete'&&(_0x20dfb1[_0x407b16('0x1039')]['allowDelete']=!_0x20dfb1[_0x407b16('0x1039')]['allowDelete']);_0x20dfb1[_0x407b16('0x1039')][_0x407b16('0xb25')]=_0x2b7ecc(),_0xe5a859(!![]);}function _0xdd869d(){const _0x217d1f=_0x40d429,_0x1610cf=_0x20dfb1['section'][_0x217d1f('0x134b')]==='Marketplace'?'AppZone':_0x20dfb1[_0x217d1f('0xe6')][_0x217d1f('0x134b')],_0x2d17bd=_0x36f548()(_0x20dfb1[_0x217d1f('0x1242')])['filter']({'pending':!![]})[_0x217d1f('0x2171')](function(_0x17f66c){const _0x37169b=_0x217d1f,_0x2ffc92=_0x1610cf==='CallySquare'&&_0x17f66c[_0x37169b('0x134b')]===_0x37169b('0x70c')?_0x37169b('0xc40'):_0x17f66c[_0x37169b('0x134b')],_0x910931=_0x2ffc92==='Reports'?_0x20dfb1[_0x37169b('0x2344')]:_0x17f66c[_0x37169b('0x26cc')];return _0x1610cf==='Integrations'&&(_0x17f66c[_0x37169b('0xf11')]=!![]),{'category':_0x1610cf,'sectionId':_0x17f66c['id'],'name':_0x2ffc92,'enabled':_0x17f66c[_0x37169b('0x1f0a')],'autoAssociation':_0x17f66c[_0x37169b('0xf11')],'crudPermissions':_0x36f548()['map'](_0x17f66c[_0x37169b('0xb25')])[_0x37169b('0xa04')](''),'Resources':_0x36f548()[_0x37169b('0x2171')](_0x910931,function(_0x26d6c4){const _0x1257ab=_0x37169b;return{'name':_0x26d6c4[_0x1257ab('0x1909')],'resourceId':_0x26d6c4['id'],'type':_0x130d24(_0x2ffc92,_0x26d6c4)};})};})[_0x217d1f('0x10cc')]();return _0x1e0b30[_0x217d1f('0x25bc')][_0x217d1f('0x7af')]({'id':_0x20dfb1[_0x217d1f('0x25bc')]['id']},_0x2d17bd)[_0x217d1f('0x1549')][_0x217d1f('0x11bf')](function(){const _0x59ea7b=_0x217d1f;_0x20dfb1[_0x59ea7b('0x1242')][_0x59ea7b('0x1f88')](function(_0x49ea09){const _0x2b08d1=_0x59ea7b;_0x49ea09[_0x2b08d1('0xb39')]=undefined;}),_0x20dfb1['associatedReports']=null,_0x2c45eb(),_0x20dfb1['selectedSection'][_0x59ea7b('0x134b')]===_0x59ea7b('0x14b5')&&!_0x20dfb1[_0x59ea7b('0x1039')][_0x59ea7b('0x32e')]&&_0x307fe6[_0x59ea7b('0x17a2')][_0x59ea7b('0x2345')](),_0x246449[_0x59ea7b('0x2693')]({'title':_0x586a3a[_0x59ea7b('0x10c2')](_0x59ea7b('0x2cb'),{'sectionName':_0x586a3a[_0x59ea7b('0x10c2')](_0x1610cf[_0x59ea7b('0xc16')])}),'msg':_0x586a3a[_0x59ea7b('0x10c2')](_0x59ea7b('0x1a3a'))});})[_0x217d1f('0x11bf')](function(){return _0x2224d6()['then'](function(_0x2181bc){const _0x364218=a0_0xaf0c;_0x20dfb1[_0x364218('0x1bc7')]=_0x2181bc;});})['catch'](function(_0x39a5d4){const _0xbdc558=_0x217d1f;_0x246449['error']({'title':_0x39a5d4[_0xbdc558('0xff9')]?'API:'+_0x39a5d4[_0xbdc558('0xff9')]+_0xbdc558('0xb0b')+_0x39a5d4[_0xbdc558('0x212f')]:_0xbdc558('0x22c8'),'msg':_0x39a5d4['status']?JSON['stringify'](_0x39a5d4['data']):_0x39a5d4[_0xbdc558('0xaab')]()});});}function _0xe5a859(_0x392562){const _0x773dd1=_0x40d429,_0x18051a=_0x36f548()[_0x773dd1('0x1b12')](_0x20dfb1['subsections'],function(_0x2ae1c3){const _0x1eff8c=_0x773dd1;return _0x2ae1c3['id']==_0x20dfb1[_0x1eff8c('0x1039')]['id'];});_0x20dfb1[_0x773dd1('0x1242')][_0x18051a][_0x773dd1('0xb39')]=_0x392562,_0x2c45eb();}function _0x2c45eb(){const _0xd87beb=_0x40d429;return _0x20dfb1[_0xd87beb('0x1eda')]=_0x36f548()[_0xd87beb('0x1cb3')](_0x20dfb1[_0xd87beb('0x1242')],[_0xd87beb('0xb39'),!![]]);}function _0x340f76(){const _0x5738c7=_0x40d429;let _0xa7831e={};return _0x20dfb1[_0x5738c7('0x1039')][_0x5738c7('0x32e')]===_0x5738c7('0xb2f')?_0xa7831e=_0x20dfb1[_0x5738c7('0x179e')][0x0]?angular['fromJson'](_0x20dfb1[_0x5738c7('0x179e')][0x0]['tree']):[]:_0xa7831e=_0x20dfb1[_0x5738c7('0x179e')][0x1]?angular['fromJson'](_0x20dfb1[_0x5738c7('0x179e')][0x1][_0x5738c7('0x88f')]):[],_0xa7831e;}function _0x7645a3(){return _0x19f3d3(function(_0x100c56,_0x275253){const _0x5474b0=a0_0xaf0c;_0x1e0b30[_0x5474b0('0x32b')][_0x5474b0('0xbaa')]({})[_0x5474b0('0x1549')]['then'](function(_0x1e628c){const _0x161910=_0x5474b0;_0x20dfb1[_0x161910('0x179e')]=_0x1e628c[_0x161910('0x19b2')]||[],_0x100c56(_0x20dfb1[_0x161910('0x179e')]);})[_0x5474b0('0x151d')](function(_0x425fa1){_0x275253(_0x425fa1);});});}function _0x42a735(_0x5073b6){const _0x3ddb0b=_0x40d429;let _0x595064=_0x20dfb1[_0x3ddb0b('0x236f')][0x0][_0x3ddb0b('0x25ed')];return _0x595064=_0x205758(_0x595064,_0x5073b6,_0x20dfb1[_0x3ddb0b('0x236f')][0x0]),_0x595064;}function _0x205758(_0x47e604,_0x196095,_0x4e0b82){const _0x56bfc4=_0x40d429;if(_0x4e0b82&&!_0x36f548()['isEmpty'](_0x4e0b82[_0x56bfc4('0xbc5')]))_0x4e0b82=_0x36f548()[_0x56bfc4('0x1ad4')](_0x4e0b82[_0x56bfc4('0xbc5')],function(_0xe6119c){return _0x36f548()['includes'](_0x196095,_0xe6119c['id'])?_0xe6119c:undefined;}),_0x47e604+=_0x4e0b82?'/'+_0x4e0b82['text']:'';else return _0x47e604;return _0x205758(_0x47e604,_0x196095,_0x4e0b82);}function _0x43fbac(_0x4c7745){const _0x461ef0=_0x40d429;return _0x36f548()[_0x461ef0('0xdb4')](_0x4c7745,{'type':_0x20dfb1['selectedSection'][_0x461ef0('0x32e')]===_0x461ef0('0xb2f')?'DefaultReports':_0x461ef0('0x18a')});}function _0x7c20cc(_0x495264){const _0x2179b0=_0x40d429;return _0x36f548()[_0x2179b0('0xdb4')](_0x495264,function(_0x3f20f7){const _0x466257=_0x2179b0;return _0x36f548()['startsWith'](_0x3f20f7[_0x466257('0x1592')],_0x20dfb1[_0x466257('0x1039')][_0x466257('0x32e')]===_0x466257('0xb2f')?_0x466257('0xd63'):_0x466257('0xa8d'));});}function _0x3339dc(_0x302170){const _0x1b1142=_0x40d429;return _0x36f548()[_0x1b1142('0x14a5')](_0x302170,function(_0x3ecc9b){const _0x4820cc=_0x1b1142;return _0x36f548()['startsWith'](_0x3ecc9b[_0x4820cc('0x1592')],_0x20dfb1[_0x4820cc('0x1039')][_0x4820cc('0x32e')]===_0x4820cc('0xb2f')?'motion':_0x4820cc('0xa8d'));});}function _0x55e799(){const _0x2b1f66=_0x40d429;_0x36f548()[_0x2b1f66('0x1fc5')](_0x20dfb1[_0x2b1f66('0x1039')][_0x2b1f66('0x26cc')])?_0x20dfb1['allReportsSelected']=_0x36f548()[_0x2b1f66('0x14a5')](_0x20dfb1[_0x2b1f66('0x2344')],function(_0xa94c90){const _0x328f4f=_0x2b1f66;return _0xa94c90[_0x328f4f('0x19fd')]===(_0x20dfb1[_0x328f4f('0x1039')][_0x328f4f('0x32e')]===_0x328f4f('0xb2f')?'CustomReports':'DefaultReports');}):_0x20dfb1[_0x2b1f66('0x1039')]['selectedItems'][_0x2b1f66('0x1f88')](function(_0x3560d0){const _0x2bee83=_0x2b1f66,_0x130753=_0x36f548()[_0x2bee83('0x1cb3')](_0x20dfb1[_0x2bee83('0x2344')],{'id':_0x3560d0['id'],'parent':_0x3560d0['parent']});!_0x130753&&_0x20dfb1[_0x2bee83('0x2344')]['push'](_0x3560d0);});}function _0x130d24(_0xcd0b6c,_0x4a7fde){const _0x992785=_0x40d429;if(_0xcd0b6c==='Reports'){if(_0x4a7fde[_0x992785('0x1592')]){const _0x57636f=_0x36f548()[_0x992785('0x1eb7')](_0x4a7fde[_0x992785('0x1592')],_0x992785('0xd63'))?_0x992785('0x29f'):_0x992785('0x13f4');return _0x57636f+_0xcd0b6c;}else return _0x4a7fde[_0x992785('0x19fd')];}return _0xcd0b6c;}function _0xa07fb6(_0x2e7f3b){const _0x48c5c6=_0x40d429;if(_0x20dfb1[_0x48c5c6('0x1eda')]){const _0x4a5099=_0x9f6d1d[_0x48c5c6('0x132b')]({'skipHide':!![]})[_0x48c5c6('0x134b')](_0x48c5c6('0x11bd'))['textContent'](_0x586a3a['instant']('STAFF.PERMISSIONS_WARNING_CLOSE'))[_0x48c5c6('0xb2e')]('Warning')[_0x48c5c6('0x1e25')](_0x2e7f3b)['ok'](_0x586a3a[_0x48c5c6('0x10c2')](_0x48c5c6('0x1b16')))[_0x48c5c6('0x26c9')](_0x586a3a[_0x48c5c6('0x10c2')](_0x48c5c6('0xa5d')));_0x9f6d1d['show'](_0x4a5099)['then'](function(){const _0x1bb813=_0x48c5c6;_0x9f6d1d[_0x1bb813('0x237e')]();});}else _0x9f6d1d[_0x48c5c6('0x237e')]();}}const _0x181f3f=_0x360dd4,_0x4cee71=_0x351988['p']+'src/js/modules/main/apps/staff/views/userProfiles/edit/clone/clone.html/clone.html';_0x3ac927[_0x21d0f5('0x1e9a')]=['$state',_0x21d0f5('0x16b9'),_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),'$translate',_0x21d0f5('0x17ff'),'setting',_0x21d0f5('0x12a5'),_0x21d0f5('0x142d'),_0x21d0f5('0x1150'),_0x21d0f5('0x25bc'),_0x21d0f5('0x1d63')];function _0x3ac927(_0x51d689,_0x132922,_0x34a99a,_0x56ea94,_0x51a58d,_0x5d1156,_0x26909d,_0x1464a8,_0x541308,_0x5392bd,_0x31e6e7,_0x5c3c40){const _0x567cf5=_0x21d0f5,_0x775ed5=this;_0x775ed5['currentUser']=_0x5392bd[_0x567cf5('0x2428')](),_0x775ed5['license']=_0x5d1156,_0x775ed5[_0x567cf5('0x23e1')]=_0x26909d,_0x775ed5[_0x567cf5('0x2834')]=_0x775ed5[_0x567cf5('0x23e1')][_0x567cf5('0x1d4')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x775ed5[_0x567cf5('0x1d9a')]=_0x132922[_0x567cf5('0x1797')]()+_0x567cf5('0x16a1')+_0x132922['host'](),_0x775ed5[_0x567cf5('0x25bc')]=_0x31e6e7||_0x51d689['params'][_0x567cf5('0x25bc')]||{},_0x775ed5[_0x567cf5('0x1d63')]=_0x5c3c40&&_0x5c3c40['count']==0x1?_0x5c3c40[_0x567cf5('0x19b2')][0x0]:null,_0x775ed5[_0x567cf5('0xb25')]=_0x5392bd[_0x567cf5('0x1530')](_0x775ed5[_0x567cf5('0x1d63')]?_0x775ed5[_0x567cf5('0x1d63')][_0x567cf5('0xb25')]:null),_0x775ed5['hasModulePermissions']={},_0x775ed5['selectedTab']=_0x51d689[_0x567cf5('0x1ab3')][_0x567cf5('0x205c')]||0x0,_0x775ed5[_0x567cf5('0x10d2')]=_0x12e04c,_0x775ed5['clonedialog']=_0xa79adf,_0x775ed5[_0x567cf5('0xb30')]=_0x541308[_0x567cf5('0x870')],_0x775ed5[_0x567cf5('0x1603')]=_0x45e7e0,_0x775ed5['saveUserProfile']=_0x497e3a;function _0x12e04c(_0x564147,_0x2cbd20){const _0x16fbea=_0x567cf5;_0x34a99a['show']({'controller':_0x16fbea('0x21f0'),'controllerAs':'vm','templateUrl':_0x517416,'parent':angular[_0x16fbea('0x1e73')](_0x56ea94[_0x16fbea('0x1d2')]),'targetEvent':_0x2cbd20,'clickOutsideToClose':!![],'locals':{'userProfile':_0x564147,'userProfiles':_0x775ed5[_0x16fbea('0xaf1')]?_0x775ed5['userProfiles']['rows']:[],'crudPermissions':_0x775ed5[_0x16fbea('0xb25')]}});}function _0xa79adf(_0x3e4da8,_0x3b9ed0){const _0x4f2b6e=_0x567cf5;_0x34a99a[_0x4f2b6e('0xb9')]({'controller':_0x4f2b6e('0x2533'),'controllerAs':'vm','templateUrl':_0x4cee71,'parent':angular[_0x4f2b6e('0x1e73')](_0x56ea94[_0x4f2b6e('0x1d2')]),'targetEvent':_0x3b9ed0,'clickOutsideToClose':!![],'locals':{'userProfile':_0x3e4da8,'userProfiles':_0x775ed5[_0x4f2b6e('0xaf1')]?_0x775ed5[_0x4f2b6e('0xaf1')][_0x4f2b6e('0x19b2')]:[],'crudPermissions':_0x775ed5[_0x4f2b6e('0xb25')]}});}function _0x45e7e0(){const _0x320ea=_0x567cf5;_0x51d689['go'](_0x320ea('0x510'),{},{'reload':_0x320ea('0x510')});}function _0x497e3a(){const _0x191566=_0x567cf5;_0x1464a8['userProfile'][_0x191566('0x5ab')]({'id':_0x775ed5[_0x191566('0x25bc')]['id']},_0x775ed5[_0x191566('0x25bc')])[_0x191566('0x1549')][_0x191566('0x11bf')](function(){const _0x79f62=_0x191566;_0x541308[_0x79f62('0x2693')]({'title':_0x79f62('0x30e'),'msg':_0x775ed5[_0x79f62('0x25bc')][_0x79f62('0x1909')]?_0x775ed5[_0x79f62('0x25bc')]['name']+_0x79f62('0xd7'):''});})[_0x191566('0x151d')](function(_0x11791c){const _0x1a7d18=_0x191566;_0x541308[_0x1a7d18('0x255')]({'title':_0x11791c[_0x1a7d18('0xff9')]?'API:'+_0x11791c[_0x1a7d18('0xff9')]+'\x20-\x20'+_0x11791c[_0x1a7d18('0x212f')]:_0x1a7d18('0x318'),'msg':_0x11791c[_0x1a7d18('0x4e8')]?JSON[_0x1a7d18('0x3e')](_0x11791c['data']):_0x11791c[_0x1a7d18('0xaab')]()});});}}const _0x2e484d=_0x3ac927,_0x415420=_0x351988['p']+_0x21d0f5('0x9ee');_0xa30bb[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0x2143'),_0x21d0f5('0xcbc'),_0x21d0f5('0x18fe'),_0x21d0f5('0x1ca2'),'$document','$timeout',_0x21d0f5('0xb6b'),_0x21d0f5('0xaf1'),'userProfile','userProfileSection',_0x21d0f5('0x12a5'),_0x21d0f5('0xda9'),_0x21d0f5('0x142d'),_0x21d0f5('0x1150'),_0x21d0f5('0x17ff'),'setting'];function _0xa30bb(_0x12427b,_0x4e4009,_0x5b302a,_0x185885,_0x1bc954,_0x357893,_0x24bd2e,_0x236eb8,_0x463344,_0x17a8e8,_0x249786,_0x2ca18b,_0x11e0b9,_0x1b9b53,_0x9c06fb,_0x5bfccb,_0x2aeaa9){const _0x2f8db0=_0x21d0f5,_0x46d6cf=this;_0x46d6cf[_0x2f8db0('0x17ff')]=_0x5bfccb,_0x46d6cf[_0x2f8db0('0x23e1')]=_0x2aeaa9,_0x46d6cf['currentUser']=_0x9c06fb['getCurrentUser'](),_0x46d6cf[_0x2f8db0('0xaf1')]=_0x463344||{'count':0x0,'rows':[]},_0x46d6cf['userProfile']=_0x17a8e8,_0x46d6cf[_0x2f8db0('0x1d63')]=_0x249786&&_0x249786['count']==0x1?_0x249786[_0x2f8db0('0x19b2')][0x0]:null,_0x46d6cf[_0x2f8db0('0xb25')]=_0x9c06fb[_0x2f8db0('0x1530')](_0x46d6cf[_0x2f8db0('0x1d63')]?_0x46d6cf[_0x2f8db0('0x1d63')]['crudPermissions']:null),_0x46d6cf[_0x2f8db0('0x13e8')]=_0x2f8db0('0xaf1'),_0x46d6cf[_0x2f8db0('0x724')]='',_0x46d6cf[_0x2f8db0('0xe3c')]=null,_0x46d6cf['selectedUserProfiles']=[],_0x46d6cf[_0x2f8db0('0x1f2a')]={'fields':_0x2f8db0('0x2707'),'sort':_0x2f8db0('0x1c74'),'limit':0xa,'page':0x1},_0x46d6cf[_0x2f8db0('0x1d6b')]=_0x36f548()[_0x2f8db0('0x2130')]([{'option':'Read_permission','value':'\x27r\x27','disabled':!![]},{'option':_0x2f8db0('0xbc'),'value':_0x2f8db0('0x1440')},{'option':_0x2f8db0('0x3d2'),'value':_0x2f8db0('0x157e')}],function(_0x2fdd09){const _0x556086=_0x2f8db0;return _0x36f548()[_0x556086('0x814')](_0x2fdd09[_0x556086('0x10cc')],new RegExp('\x27','g'),'');});_0x46d6cf[_0x2f8db0('0xaf1')]&&_0x46d6cf['userProfiles'][_0x2f8db0('0x27d2')]>0x0&&_0x46d6cf['userProfiles'][_0x2f8db0('0x19b2')][_0x2f8db0('0x1f88')](function(_0x23624a){const _0x48e203=_0x2f8db0,_0x615057=[];_0x23624a[_0x48e203('0xb25')][_0x48e203('0x1f88')](function(_0x57bc31){_0x615057['push'](_0x46d6cf['arraycrudPermissions'][_0x57bc31]['option']);});const _0x26f9be=[];_0x615057[_0x48e203('0x1f88')](function(_0x2775f4){const _0x787d75=_0x48e203;_0x26f9be[_0x787d75('0x105d')](_0x236eb8[_0x787d75('0x10c2')](_0x787d75('0xdae')+_0x2775f4['toUpperCase']()));}),_0x23624a[_0x48e203('0x1766')]=_0x26f9be[_0x48e203('0xa04')](',\x20');});_0x46d6cf['editstate']=_0x182cc0,_0x46d6cf['clonedialog']=_0x3b396c,_0x46d6cf['deleteconfirm']=_0x4f21e8,_0x46d6cf[_0x2f8db0('0x2693')]=_0x2a5ea3,_0x46d6cf[_0x2f8db0('0x1c2f')]=_0x379344,_0x46d6cf[_0x2f8db0('0x1d8c')]=_0x4b23a1,_0x46d6cf[_0x2f8db0('0x51b')]=_0x32f0f0,_0x46d6cf[_0x2f8db0('0x200f')]=_0x109544,_0x46d6cf[_0x2f8db0('0x136f')]=_0x285c78,_0x46d6cf[_0x2f8db0('0x1d8d')]=_0x2bb278,_0x46d6cf[_0x2f8db0('0x479')]=_0x1f1659;function _0x182cc0(_0x2f78b1){const _0x237001=_0x2f8db0;_0x5b302a['go'](_0x237001('0x1d96'),{'id':_0x2f78b1['id'],'userProfile':_0x2f78b1,'crudPermissions':_0x46d6cf['crudPermissions']});}function _0x3b396c(_0x383e7f,_0xa4a534){const _0x565741=_0x2f8db0;_0x1bc954['show']({'controller':'UserProfilecloneController','controllerAs':'vm','templateUrl':_0x4cee71,'parent':angular['element'](_0x357893['body']),'targetEvent':_0xa4a534,'clickOutsideToClose':!![],'locals':{'userProfile':_0x383e7f,'userProfiles':_0x46d6cf['userProfiles']?_0x46d6cf['userProfiles']['rows']:[],'crudPermissions':_0x46d6cf[_0x565741('0xb25')]}});}function _0x4f21e8(_0x5e17a9,_0xc9a7cc){const _0x54c96b=_0x2f8db0,_0x42747c=_0x1bc954[_0x54c96b('0x132b')]()[_0x54c96b('0x134b')](_0x54c96b('0x1796')+_0x36f548()[_0x54c96b('0x13cf')]('userProfile')+'?')[_0x54c96b('0x1d03')](_0x54c96b('0x2061')+(_0x5e17a9[_0x54c96b('0x1909')]||_0x54c96b('0x25bc'))+'
    '+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x54c96b('0x2854'))['targetEvent'](_0xc9a7cc)['ok']('OK')['cancel'](_0x54c96b('0x772'));_0x1bc954['show'](_0x42747c)[_0x54c96b('0x11bf')](function(){_0x32f0f0(_0x5e17a9);},function(){const _0x4707cb=_0x54c96b;console[_0x4707cb('0xc78')](_0x4707cb('0x772'));});}let _0x4da322=!![],_0x2ad3a7=0x1;_0x12427b[_0x2f8db0('0x2087')](_0x2f8db0('0x842'),function(_0x4fa5b8,_0x5607a7){const _0x3dc1a9=_0x2f8db0;_0x4da322?_0x24bd2e(function(){_0x4da322=![];}):(!_0x5607a7&&(_0x2ad3a7=_0x46d6cf[_0x3dc1a9('0x1f2a')][_0x3dc1a9('0x1c2')]),_0x4fa5b8!==_0x5607a7&&(_0x46d6cf[_0x3dc1a9('0x1f2a')][_0x3dc1a9('0x1c2')]=0x1),!_0x4fa5b8&&(_0x46d6cf[_0x3dc1a9('0x1f2a')][_0x3dc1a9('0x1c2')]=_0x2ad3a7),_0x46d6cf[_0x3dc1a9('0x1c2f')]());});function _0x2a5ea3(_0x21bcd9){const _0x2f8422=_0x2f8db0;_0x46d6cf[_0x2f8422('0xaf1')]=_0x21bcd9||{'count':0x0,'rows':[]};}function _0x379344(){const _0x5a616f=_0x2f8db0;_0x46d6cf['query'][_0x5a616f('0x1393')]=(_0x46d6cf[_0x5a616f('0x1f2a')][_0x5a616f('0x1c2')]-0x1)*_0x46d6cf['query'][_0x5a616f('0xd5c')],_0x9c06fb[_0x5a616f('0x4ee')](_0x5a616f('0xf45'))?_0x46d6cf[_0x5a616f('0x13f')]=_0x2ca18b['userProfile']['get'](_0x46d6cf['query'],_0x2a5ea3)[_0x5a616f('0x1549')]:(_0x46d6cf[_0x5a616f('0x1f2a')]['id']=_0x46d6cf[_0x5a616f('0x25bc')]['id'],_0x46d6cf[_0x5a616f('0x1f2a')]['section']=_0x5a616f('0x1f6e'),_0x46d6cf[_0x5a616f('0x13f')]=_0x2ca18b[_0x5a616f('0x25bc')][_0x5a616f('0x228e')](_0x46d6cf[_0x5a616f('0x1f2a')],_0x2a5ea3)[_0x5a616f('0x1549')]);}function _0x4b23a1(_0x2886f9,_0x55edef){const _0x1471dd=_0x2f8db0;_0x1bc954[_0x1471dd('0xb9')]({'controller':_0x1471dd('0x9b7'),'controllerAs':'vm','templateUrl':_0x415420,'parent':angular[_0x1471dd('0x1e73')](_0x357893['body']),'targetEvent':_0x2886f9,'clickOutsideToClose':!![],'locals':{'userProfile':_0x55edef,'userProfiles':_0x46d6cf['userProfiles'][_0x1471dd('0x19b2')],'license':_0x46d6cf['license'],'setting':_0x46d6cf[_0x1471dd('0x23e1')],'crudPermissions':_0x46d6cf[_0x1471dd('0xb25')]}});}function _0x32f0f0(_0x1c228f){const _0x495b35=_0x2f8db0;_0x2ca18b[_0x495b35('0x25bc')][_0x495b35('0x2088')]({'id':_0x1c228f['id']})[_0x495b35('0x1549')]['then'](function(){const _0x1a441e=_0x495b35;_0x36f548()[_0x1a441e('0x14a5')](_0x46d6cf['userProfiles'][_0x1a441e('0x19b2')],{'id':_0x1c228f['id']}),_0x46d6cf[_0x1a441e('0xaf1')][_0x1a441e('0x27d2')]-=0x1,!_0x46d6cf['userProfiles'][_0x1a441e('0x19b2')][_0x1a441e('0x1e22')]&&_0x46d6cf[_0x1a441e('0x1c2f')](),_0x1b9b53[_0x1a441e('0x2693')]({'title':_0x36f548()[_0x1a441e('0x13cf')]('UserProfile')+_0x1a441e('0x2113'),'msg':_0x1c228f[_0x1a441e('0x1909')]?_0x1c228f[_0x1a441e('0x1909')]+'\x20has\x20been\x20deleted!':''});})[_0x495b35('0x151d')](function(_0x2bef2a){const _0x18f071=_0x495b35;if(_0x2bef2a[_0x18f071('0x4e8')]&&_0x2bef2a[_0x18f071('0x4e8')]['errors']&&_0x2bef2a[_0x18f071('0x4e8')][_0x18f071('0x120f')][_0x18f071('0x1e22')]){_0x46d6cf['errors']=_0x2bef2a['data'][_0x18f071('0x120f')]||[{'message':_0x2bef2a[_0x18f071('0xaab')](),'type':'SYSTEM:DELETEuserProfile'}];for(let _0x3e66dd=0x0;_0x3e66dd<_0x2bef2a[_0x18f071('0x4e8')][_0x18f071('0x120f')][_0x18f071('0x1e22')];_0x3e66dd++){_0x1b9b53[_0x18f071('0x255')]({'title':_0x2bef2a[_0x18f071('0x4e8')]['errors'][_0x3e66dd][_0x18f071('0x19fd')],'msg':_0x2bef2a[_0x18f071('0x4e8')][_0x18f071('0x120f')][_0x3e66dd]['message']});}}else _0x1b9b53[_0x18f071('0x255')]({'title':_0x2bef2a['status']?_0x18f071('0x574')+_0x2bef2a[_0x18f071('0xff9')]+_0x18f071('0xb0b')+_0x2bef2a[_0x18f071('0x212f')]:_0x18f071('0x2054'),'msg':_0x2bef2a['data']?JSON[_0x18f071('0x3e')](_0x2bef2a[_0x18f071('0x4e8')][_0x18f071('0x1b86')]):_0x2bef2a[_0x18f071('0x1b86')]||_0x2bef2a['toString']()});});}function _0x109544(){const _0x386178=_0x2f8db0,_0x3cf748=angular[_0x386178('0x6fb')](_0x46d6cf[_0x386178('0x2720')]);return _0x46d6cf[_0x386178('0x2720')]=[],_0x3cf748;}function _0x285c78(_0xb84c65){const _0x7c55bd=_0x2f8db0,_0xfa49cc=_0x1bc954[_0x7c55bd('0x132b')]()[_0x7c55bd('0x134b')](_0x7c55bd('0x1d80'))[_0x7c55bd('0x1d03')](_0x7c55bd('0x2061')+_0x46d6cf['selectedUserProfiles'][_0x7c55bd('0x1e22')]+_0x7c55bd('0xac6')+'\x20will\x20be\x20deleted.')[_0x7c55bd('0xb2e')]('delete\x20UserProfiles')['targetEvent'](_0xb84c65)['ok']('OK')[_0x7c55bd('0x26c9')]('CANCEL');_0x1bc954['show'](_0xfa49cc)['then'](function(){const _0xfa2e94=_0x7c55bd;_0x46d6cf[_0xfa2e94('0x2720')][_0xfa2e94('0x1f88')](function(_0x4d35a3){_0x32f0f0(_0x4d35a3);}),_0x46d6cf[_0xfa2e94('0x2720')]=[];});}function _0x2bb278(){const _0x589b09=_0x2f8db0;_0x46d6cf[_0x589b09('0x2720')]=[];}function _0x1f1659(){const _0x1a3f94=_0x2f8db0;_0x46d6cf[_0x1a3f94('0x2720')]=_0x46d6cf[_0x1a3f94('0xaf1')]['rows'];}}const _0x51d2c3=_0xa30bb;_0x239950[_0x21d0f5('0x1e9a')]=['$scope',_0x21d0f5('0xcbc'),_0x21d0f5('0x16b9'),_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0xb6b'),_0x21d0f5('0x142d'),_0x21d0f5('0x17c0'),_0x21d0f5('0x21d9'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1'),_0x21d0f5('0xb25')];function _0x239950(_0x57d37b,_0x207319,_0x2932d2,_0x18b985,_0x510b05,_0x551b51,_0x5bb3a0,_0x594f4e,_0x139870,_0x26dee5,_0x1c7da8,_0x43307d,_0x323354,_0x11d30c){const _0x41d94b=_0x21d0f5,_0x2ee939=this;_0x2ee939[_0x41d94b('0x32a')]=_0x1c7da8[_0x41d94b('0x2428')](),_0x2ee939[_0x41d94b('0x120f')]=[],_0x2ee939[_0x41d94b('0x23e1')]=_0x323354,_0x2ee939['license']=_0x43307d,_0x2ee939[_0x41d94b('0xb25')]=_0x11d30c,_0x2ee939[_0x41d94b('0x2c9')]={},_0x2ee939['passwordPattern']=_0x2ee939[_0x41d94b('0x23e1')]&&_0x2ee939[_0x41d94b('0x23e1')][_0x41d94b('0x1d4')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2ee939[_0x41d94b('0x134b')]='STAFF.EDIT_USER',_0x2ee939[_0x41d94b('0x21d9')]=angular[_0x41d94b('0x6fb')](_0x139870),_0x2ee939[_0x41d94b('0x17c0')]=_0x594f4e,_0x2ee939[_0x41d94b('0x1d9d')]=![];!_0x2ee939['user']&&(_0x2ee939[_0x41d94b('0x21d9')]={'role':_0x41d94b('0x21d9'),'autointernal':!![],'context':_0x41d94b('0x1fde')},_0x2ee939[_0x41d94b('0x134b')]=_0x41d94b('0x1e09'),_0x2ee939[_0x41d94b('0x1d9d')]=!![]);_0x2ee939['addNewUser']=_0x18236d,_0x2ee939[_0x41d94b('0x15df')]=_0x3965c3,_0x2ee939[_0x41d94b('0x13af')]=_0x346d9a,_0x2ee939['getDateFromString']=_0x2d056b,_0x2ee939['closeDialog']=_0x59ea33,_0x26dee5[_0x41d94b('0x25bc')]['get']({'fields':_0x41d94b('0x721'),'sort':_0x41d94b('0x1909')})[_0x41d94b('0x1549')][_0x41d94b('0x11bf')](function(_0x5adb94){const _0x249e30=_0x41d94b;_0x2ee939[_0x249e30('0xaf1')]=_0x5adb94[_0x249e30('0x19b2')]||[];})[_0x41d94b('0x151d')](function(_0x1539f7){const _0x17ec79=_0x41d94b;_0x5bb3a0[_0x17ec79('0x255')]({'title':_0x1539f7[_0x17ec79('0xff9')]?_0x17ec79('0x574')+_0x1539f7['status']+_0x17ec79('0xb0b')+_0x1539f7[_0x17ec79('0x212f')]:'SYSTEM:GET_USERPROFILES','msg':_0x1539f7[_0x17ec79('0x4e8')]?JSON[_0x17ec79('0x3e')](_0x1539f7['data']):_0x1539f7['toString']()});});function _0x18236d(){const _0x1c0931=_0x41d94b;_0x2ee939[_0x1c0931('0x120f')]=[],_0x26dee5[_0x1c0931('0x21d9')][_0x1c0931('0x259')](_0x2ee939['user'])[_0x1c0931('0x1549')][_0x1c0931('0x11bf')](function(_0x52449f){const _0x5f4b1d=_0x1c0931;_0x2ee939['users'][_0x5f4b1d('0x880')](_0x52449f['toJSON']()),_0x5bb3a0[_0x5f4b1d('0x2693')]({'title':'User\x20properly\x20created','msg':_0x2ee939[_0x5f4b1d('0x21d9')][_0x5f4b1d('0x1909')]?_0x2ee939[_0x5f4b1d('0x21d9')][_0x5f4b1d('0x1909')]+'\x20has\x20been\x20created!':''}),_0x59ea33(_0x52449f);})['catch'](function(_0x52f06a){const _0x7a6b21=_0x1c0931;if(_0x52f06a[_0x7a6b21('0x4e8')]&&_0x52f06a[_0x7a6b21('0x4e8')][_0x7a6b21('0x120f')]&&_0x52f06a[_0x7a6b21('0x4e8')][_0x7a6b21('0x120f')]['length']){_0x2ee939[_0x7a6b21('0x120f')]=_0x52f06a[_0x7a6b21('0x4e8')][_0x7a6b21('0x120f')]||[{'message':_0x52f06a['toString'](),'type':'api.user.save'}];for(let _0x433506=0x0;_0x433506<_0x52f06a[_0x7a6b21('0x4e8')][_0x7a6b21('0x120f')]['length'];_0x433506+=0x1){_0x5bb3a0[_0x7a6b21('0x255')]({'title':_0x52f06a[_0x7a6b21('0x4e8')][_0x7a6b21('0x120f')][_0x433506][_0x7a6b21('0x19fd')],'msg':_0x52f06a[_0x7a6b21('0x4e8')]['errors'][_0x433506]['message']});}}else _0x5bb3a0[_0x7a6b21('0x255')]({'title':_0x52f06a[_0x7a6b21('0xff9')]?_0x7a6b21('0x574')+_0x52f06a[_0x7a6b21('0xff9')]+_0x7a6b21('0xb0b')+_0x52f06a[_0x7a6b21('0x212f')]:_0x7a6b21('0x116'),'msg':_0x52f06a['data']?JSON[_0x7a6b21('0x3e')](_0x52f06a[_0x7a6b21('0x4e8')][_0x7a6b21('0x1b86')]):_0x52f06a[_0x7a6b21('0xaab')]()});});}function _0x3965c3(){const _0x246ef9=_0x41d94b;_0x2ee939['errors']=[],_0x26dee5[_0x246ef9('0x21d9')]['update']({'id':_0x2ee939['user']['id']},_0x2ee939[_0x246ef9('0x21d9')])[_0x246ef9('0x1549')][_0x246ef9('0x11bf')](function(_0x4a2614){const _0x4556aa=_0x246ef9,_0x15d14a=_0x36f548()[_0x4556aa('0x1ad4')](_0x2ee939[_0x4556aa('0x17c0')],{'id':_0x4a2614['id']});_0x15d14a&&_0x36f548()[_0x4556aa('0x47b')](_0x15d14a,_0x36f548()[_0x4556aa('0x258')](_0x4a2614['toJSON'](),_0x36f548()['keys'](_0x15d14a))),_0x5bb3a0[_0x4556aa('0x2693')]({'title':_0x4556aa('0x4c7'),'msg':_0x2ee939[_0x4556aa('0x21d9')][_0x4556aa('0x1909')]?_0x2ee939[_0x4556aa('0x21d9')][_0x4556aa('0x1909')]+_0x4556aa('0x1a78'):''}),_0x59ea33(_0x4a2614);})[_0x246ef9('0x151d')](function(_0x122df9){const _0x40ef6a=_0x246ef9;if(_0x122df9[_0x40ef6a('0x4e8')]&&_0x122df9[_0x40ef6a('0x4e8')][_0x40ef6a('0x120f')]&&_0x122df9['data'][_0x40ef6a('0x120f')][_0x40ef6a('0x1e22')]){_0x2ee939['errors']=_0x122df9[_0x40ef6a('0x4e8')][_0x40ef6a('0x120f')]||[{'message':_0x122df9[_0x40ef6a('0xaab')](),'type':'api.user.update'}];for(let _0x2e38e0=0x0;_0x2e38e0<_0x122df9['data'][_0x40ef6a('0x120f')][_0x40ef6a('0x1e22')];_0x2e38e0++){_0x5bb3a0[_0x40ef6a('0x255')]({'title':_0x122df9[_0x40ef6a('0x4e8')][_0x40ef6a('0x120f')][_0x2e38e0][_0x40ef6a('0x19fd')],'msg':_0x122df9[_0x40ef6a('0x4e8')][_0x40ef6a('0x120f')][_0x2e38e0]['message']});}}else _0x5bb3a0[_0x40ef6a('0x255')]({'title':_0x122df9[_0x40ef6a('0xff9')]?_0x40ef6a('0x574')+_0x122df9[_0x40ef6a('0xff9')]+_0x40ef6a('0xb0b')+_0x122df9[_0x40ef6a('0x212f')]:'api.user.update','msg':_0x122df9['data']?JSON[_0x40ef6a('0x3e')](_0x122df9['data'][_0x40ef6a('0x1b86')]):_0x122df9['toString']()});});}function _0x346d9a(_0x379ac0){const _0x4d684c=_0x41d94b,_0x5ec007=_0x1c7da8[_0x4d684c('0x2428')]();if(_0x5ec007['id']===_0x2ee939[_0x4d684c('0x21d9')]['id'])return _0x5bb3a0[_0x4d684c('0x255')]({'title':_0x4d684c('0xfe2'),'msg':'You\x20can\x27t\x20remove\x20yourself'});_0x2ee939[_0x4d684c('0x120f')]=[];const _0x26e015=_0x18b985[_0x4d684c('0x132b')]()[_0x4d684c('0x134b')](_0x4d684c('0x1fa9'))[_0x4d684c('0x252a')](_0x4d684c('0x2617'))['ariaLabel'](_0x4d684c('0x1973'))['ok'](_0x4d684c('0x1167'))['cancel'](_0x4d684c('0x784'))[_0x4d684c('0x1e25')](_0x379ac0);_0x18b985[_0x4d684c('0xb9')](_0x26e015)[_0x4d684c('0x11bf')](function(){const _0x472a70=_0x4d684c;_0x26dee5[_0x472a70('0x21d9')][_0x472a70('0x2088')]({'id':_0x2ee939[_0x472a70('0x21d9')]['id']})[_0x472a70('0x1549')][_0x472a70('0x11bf')](function(){const _0x2acbb9=_0x472a70;_0x36f548()[_0x2acbb9('0x14a5')](_0x2ee939[_0x2acbb9('0x17c0')],{'id':_0x2ee939[_0x2acbb9('0x21d9')]['id']}),_0x5bb3a0[_0x2acbb9('0x2693')]({'title':'User\x20properly\x20deleted!','msg':(_0x2ee939[_0x2acbb9('0x21d9')]['name']||_0x2acbb9('0x21d9'))+_0x2acbb9('0x433')}),_0x59ea33(_0x2ee939['user']);})[_0x472a70('0x151d')](function(_0x478c4a){const _0x2d7a8b=_0x472a70;if(_0x478c4a[_0x2d7a8b('0x4e8')]&&_0x478c4a['data'][_0x2d7a8b('0x120f')]&&_0x478c4a['data']['errors'][_0x2d7a8b('0x1e22')]){_0x2ee939[_0x2d7a8b('0x120f')]=_0x478c4a[_0x2d7a8b('0x4e8')][_0x2d7a8b('0x120f')]||[{'message':_0x478c4a[_0x2d7a8b('0xaab')](),'type':_0x2d7a8b('0x1c67')}];for(let _0x61dc4c=0x0;_0x61dc4c<_0x478c4a[_0x2d7a8b('0x4e8')][_0x2d7a8b('0x120f')][_0x2d7a8b('0x1e22')];_0x61dc4c++){_0x5bb3a0[_0x2d7a8b('0x255')]({'title':_0x478c4a[_0x2d7a8b('0x4e8')]['errors'][_0x61dc4c][_0x2d7a8b('0x19fd')],'msg':_0x478c4a['data']['errors'][_0x61dc4c][_0x2d7a8b('0x1b86')]});}}else _0x5bb3a0['error']({'title':_0x478c4a['status']?_0x2d7a8b('0x574')+_0x478c4a[_0x2d7a8b('0xff9')]+_0x2d7a8b('0xb0b')+_0x478c4a[_0x2d7a8b('0x212f')]:_0x2d7a8b('0x1c67'),'msg':_0x478c4a[_0x2d7a8b('0x4e8')]?JSON['stringify'](_0x478c4a['data'][_0x2d7a8b('0x1b86')]):_0x478c4a['message']||_0x478c4a[_0x2d7a8b('0xaab')]()});});},function(){});}function _0x2d056b(_0x3627aa){return _0x3627aa===null?undefined:new Date(_0x3627aa);}function _0x59ea33(_0x3bb3ac){_0x18b985['hide'](_0x3bb3ac);}}const _0x35d5b5=_0x239950;_0x19c513[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1ca2'),_0x21d0f5('0x142d'),'api','user',_0x21d0f5('0x1150')];function _0x19c513(_0x20311a,_0xc357c,_0x32d227,_0x324fcb,_0x31a157){const _0x4e1a9d=_0x21d0f5,_0x88bf96=this;_0x88bf96[_0x4e1a9d('0x32a')]=_0x31a157[_0x4e1a9d('0x2428')](),_0x88bf96[_0x4e1a9d('0x120f')]=[],_0x88bf96[_0x4e1a9d('0x21d9')]=_0x324fcb,_0x88bf96[_0x4e1a9d('0x1d7d')]=_0x220f4b,_0x88bf96[_0x4e1a9d('0xe99')]=_0x168fda,_0x88bf96[_0x4e1a9d('0xc4e')]=_0x101c67;function _0x220f4b(){const _0xe29d41=_0x4e1a9d;_0x88bf96[_0xe29d41('0x120f')]=[],_0x32d227[_0xe29d41('0x21d9')]['createApiKey']({'id':_0x88bf96[_0xe29d41('0x21d9')]['id']})['$promise'][_0xe29d41('0x11bf')](function(_0x2e078c){const _0x335fb9=_0xe29d41;_0x88bf96[_0x335fb9('0x21d9')][_0x335fb9('0x1c8c')]=_0x2e078c[_0x335fb9('0x1a17')]||_0x335fb9('0x10f9'),_0xc357c[_0x335fb9('0x2693')]({'title':'User\x20API\x20key\x20updated!'}),_0x101c67();})['catch'](function(_0x14ebd5){const _0x21f4f5=_0xe29d41;_0xc357c[_0x21f4f5('0x255')]({'title':_0x14ebd5[_0x21f4f5('0xff9')]?_0x21f4f5('0x574')+_0x14ebd5[_0x21f4f5('0xff9')]+_0x21f4f5('0xb0b')+_0x14ebd5[_0x21f4f5('0x212f')]:'api.user.createApiKey','msg':_0x14ebd5[_0x21f4f5('0x4e8')]?JSON[_0x21f4f5('0x3e')](_0x14ebd5[_0x21f4f5('0x4e8')][_0x21f4f5('0x1b86')]):_0x14ebd5['toString']()}),_0x88bf96['errors']=_0x14ebd5[_0x21f4f5('0x4e8')][_0x21f4f5('0x120f')]||[{'message':_0x14ebd5[_0x21f4f5('0xaab')](),'type':_0x21f4f5('0x1cf7')}];});}function _0x168fda(){const _0x383db2=_0x4e1a9d;_0x88bf96['errors']=[],_0x32d227[_0x383db2('0x21d9')][_0x383db2('0xe99')]({'id':_0x88bf96['user']['id']})[_0x383db2('0x1549')][_0x383db2('0x11bf')](function(){const _0x312c9d=_0x383db2;_0x88bf96['user']['apiKey']=_0x312c9d('0x10f9'),_0xc357c[_0x312c9d('0x2693')]({'title':'User\x20API\x20key\x20removed!'}),_0x101c67();})['catch'](function(_0x5d8665){const _0x5dcf1f=_0x383db2;_0xc357c[_0x5dcf1f('0x255')]({'title':_0x5d8665['status']?_0x5dcf1f('0x574')+_0x5d8665[_0x5dcf1f('0xff9')]+_0x5dcf1f('0xb0b')+_0x5d8665[_0x5dcf1f('0x212f')]:_0x5dcf1f('0x2413'),'msg':_0x5d8665[_0x5dcf1f('0x4e8')]?JSON[_0x5dcf1f('0x3e')](_0x5d8665[_0x5dcf1f('0x4e8')][_0x5dcf1f('0x1b86')]):_0x5d8665[_0x5dcf1f('0xaab')]()}),_0x88bf96[_0x5dcf1f('0x120f')]=_0x5d8665['data'][_0x5dcf1f('0x120f')]||[{'message':_0x5d8665[_0x5dcf1f('0xaab')](),'type':_0x5dcf1f('0x2413')}];});}function _0x101c67(){const _0x510df1=_0x4e1a9d;_0x20311a[_0x510df1('0x237e')]();}}const _0x161962=_0x19c513;_0x9c977[_0x21d0f5('0x1e9a')]=['$cookies','toasty'];function _0x9c977(_0x566558,_0x13f517){const _0x143702=_0x21d0f5,_0x2cda92=this,_0x1c554a=0x8,_0x243983=_0x1c554a*0x400*0x400;_0x2cda92[_0x143702('0x21d9')]={},_0x2cda92['crudPermissions'],_0x2cda92[_0x143702('0x1fad')]={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x243983,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x2cda92[_0x143702('0x13b8')]={'flow':{}},_0x2cda92[_0x143702('0x92e')]=![],_0x2cda92[_0x143702('0x1c03')]=_0x48d613,_0x2cda92[_0x143702('0x1d01')]=_0x4b909a,_0x2cda92[_0x143702('0x272b')]=_0x476c78,_0x2cda92['init']=_0xc64ab9;function _0xc64ab9(_0x18c993,_0x2f0c3c){const _0x572576=_0x143702;_0x2cda92['user']=angular[_0x572576('0x6fb')](_0x18c993),_0x2cda92[_0x572576('0xb25')]=typeof _0x2f0c3c!==_0x572576('0x13e9')?_0x2f0c3c:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x2cda92[_0x572576('0x1fad')][_0x572576('0xc7a')]=_0x572576('0x135f')+_0x2cda92[_0x572576('0x21d9')]['id']+_0x572576('0x2298'),_0x2cda92[_0x572576('0x21d9')]['images']=[];}function _0x48d613(_0x4300eb){const _0x1c7efd=_0x143702,_0x17732e=[_0x1c7efd('0x2043'),'jpg'];if(!_0x36f548()['includes'](_0x17732e,_0x4300eb[_0x1c7efd('0x115f')]()))return _0x13f517[_0x1c7efd('0x255')]({'title':'Invalid\x20extension:\x20'+_0x4300eb[_0x1c7efd('0x115f')](),'msg':'Supported\x20extension:\x20'+_0x17732e[_0x1c7efd('0xa04')]()}),![];if(_0x4300eb['size']>_0x243983)return _0x13f517[_0x1c7efd('0x255')]({'title':'File\x20too\x20big','msg':_0x1c7efd('0x686')+_0x1c554a+'MB'}),![];const _0x5806f0={'id':_0x4300eb[_0x1c7efd('0x40b')],'file':_0x4300eb,'type':'uploading'};return _0x2cda92[_0x1c7efd('0x21d9')]['images'][_0x1c7efd('0x880')](_0x5806f0),!![];}function _0x4b909a(){const _0xd15527=_0x143702;_0x2cda92['ngFlow'][_0xd15527('0x2414')][_0xd15527('0x2440')][_0xd15527('0x1f61')]={'X-Requested-With':_0xd15527('0x19a7'),'Authorization':'Bearer\x20'+_0x566558[_0xd15527('0xbaa')](_0xd15527('0xc2b'))},_0x2cda92[_0xd15527('0x13b8')]['flow'][_0xd15527('0x1d01')]();}function _0x476c78(_0x204dd5){const _0x17c69c=_0x143702;angular['forEach'](_0x2cda92[_0x17c69c('0x21d9')][_0x17c69c('0x25e2')],function(_0x582031){const _0x55dc07=_0x17c69c;if(_0x582031['id']===_0x204dd5['uniqueIdentifier']){const _0x191588=new FileReader();_0x191588[_0x55dc07('0x26dd')](_0x582031['file'][_0x55dc07('0x2889')]),_0x191588[_0x55dc07('0x1403')]=function(_0x5e744a){const _0x109d1c=_0x55dc07;_0x582031[_0x109d1c('0x259e')]=_0x5e744a[_0x109d1c('0xc7a')][_0x109d1c('0x252e')];},_0x582031['type']=_0x55dc07('0x5b1');}});}}const _0x35908f=_0x9c977;_0x59b634[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),'$mdDialog','toasty',_0x21d0f5('0x12a5'),'user','setting','Auth'];function _0x59b634(_0x263a73,_0x35594d,_0xf86c6f,_0x3b1f6a,_0x43684d,_0x2f84f9,_0x5af485){const _0x33ffca=_0x21d0f5,_0x10d6dd=this;_0x10d6dd['currentUser']=_0x5af485[_0x33ffca('0x2428')](),_0x10d6dd[_0x33ffca('0x120f')]=[],_0x10d6dd[_0x33ffca('0x23e1')]=_0x2f84f9,_0x10d6dd[_0x33ffca('0x2834')]=_0x10d6dd[_0x33ffca('0x23e1')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x10d6dd[_0x33ffca('0x21d9')]=_0x43684d,_0x10d6dd[_0x33ffca('0x74')]='',_0x10d6dd[_0x33ffca('0x238')]='',_0x10d6dd[_0x33ffca('0x1a8')]=_0x1edcb8,_0x10d6dd['closeDialog']=_0x2782cf,_0x263a73['$watch'](_0x33ffca('0x1524'),function(_0x59c0e0){const _0x4ec1cc=_0x33ffca;!_0x36f548()[_0x4ec1cc('0x1a80')](_0x10d6dd[_0x4ec1cc('0x238')])&&(_0x59c0e0===_0x10d6dd['oldPassword']?_0x263a73[_0x4ec1cc('0x2673')][_0x4ec1cc('0x74')][_0x4ec1cc('0x1a7f')](_0x4ec1cc('0xa0a'),![]):_0x263a73[_0x4ec1cc('0x2673')][_0x4ec1cc('0x74')]['$setValidity']('oldPasswordMatch',!![]));});function _0x1edcb8(){const _0x16fac0=_0x33ffca;_0x10d6dd[_0x16fac0('0x120f')]=[];const _0x500cfa={'id':_0x10d6dd[_0x16fac0('0x21d9')]['id'],'newPassword':_0x10d6dd['password']};_0x10d6dd[_0x16fac0('0x32a')]['id']==_0x10d6dd[_0x16fac0('0x21d9')]['id']&&(_0x500cfa[_0x16fac0('0x238')]=_0x10d6dd[_0x16fac0('0x238')]),_0x3b1f6a['user'][_0x16fac0('0x2a6')](_0x500cfa)[_0x16fac0('0x1549')][_0x16fac0('0x11bf')](function(){const _0x15e682=_0x16fac0;_0xf86c6f[_0x15e682('0x2693')]({'title':_0x15e682('0x22cc')}),_0x2782cf();})[_0x16fac0('0x151d')](function(_0x6a54f5){const _0x26928f=_0x16fac0;_0xf86c6f[_0x26928f('0x255')]({'title':_0x6a54f5[_0x26928f('0xff9')]?_0x26928f('0x574')+_0x6a54f5[_0x26928f('0xff9')]+'\x20-\x20'+_0x6a54f5[_0x26928f('0x212f')]:'api.user.save','msg':_0x6a54f5['data']?JSON[_0x26928f('0x3e')](_0x6a54f5[_0x26928f('0x4e8')][_0x26928f('0x1b86')]):_0x6a54f5['toString']()}),_0x10d6dd[_0x26928f('0x120f')]=_0x6a54f5['data']['errors']||[{'message':_0x6a54f5[_0x26928f('0xaab')](),'type':_0x26928f('0x20b0')}];});}function _0x2782cf(){_0x35594d['hide']();}}const _0x94a711=_0x59b634,_0xd96495=_0x351988['p']+'src/js/modules/main/apps/staff/views/users/edit/apikeymanager/apikeymanager.html/apikeymanager.html',_0x23b4b9=_0x351988['p']+_0x21d0f5('0x1bb0');_0x5aad11['$inject']=[_0x21d0f5('0xcbc'),_0x21d0f5('0x16b9'),_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),_0x21d0f5('0xb6b'),_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1'),_0x21d0f5('0x12a5'),_0x21d0f5('0x142d'),_0x21d0f5('0x1150'),'user',_0x21d0f5('0x1d63')];function _0x5aad11(_0x3dfccc,_0x3e9ced,_0x20da6b,_0x444c0a,_0x493064,_0x53029e,_0x43fb69,_0x45d049,_0x26aa65,_0x5d0851,_0x386f80,_0x4df28c){const _0x2fe6c9=_0x21d0f5,_0x8d3f2b=this;_0x8d3f2b[_0x2fe6c9('0x32a')]=_0x5d0851[_0x2fe6c9('0x2428')](),_0x8d3f2b['license']=_0x53029e,_0x8d3f2b[_0x2fe6c9('0x23e1')]=_0x43fb69,_0x8d3f2b[_0x2fe6c9('0x2834')]=_0x8d3f2b[_0x2fe6c9('0x23e1')][_0x2fe6c9('0x1d4')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x8d3f2b[_0x2fe6c9('0x1d9a')]=_0x3e9ced[_0x2fe6c9('0x1797')]()+_0x2fe6c9('0x16a1')+_0x3e9ced['host'](),_0x8d3f2b[_0x2fe6c9('0x21d9')]=_0x386f80||_0x3dfccc[_0x2fe6c9('0x1ab3')][_0x2fe6c9('0x21d9')]||{},_0x8d3f2b['userProfileSection']=_0x4df28c&&_0x4df28c['count']==0x1?_0x4df28c['rows'][0x0]:null,_0x8d3f2b[_0x2fe6c9('0xb25')]=_0x5d0851['parseCrudPermissions'](_0x8d3f2b[_0x2fe6c9('0x1d63')]?_0x8d3f2b[_0x2fe6c9('0x1d63')][_0x2fe6c9('0xb25')]:null),_0x8d3f2b[_0x2fe6c9('0x2c9')]={},_0x8d3f2b['selectedTab']=_0x3dfccc[_0x2fe6c9('0x1ab3')]['tab']||0x0,_0x8d3f2b['apikeymanagerdialog']=_0x3fdfa7,_0x8d3f2b[_0x2fe6c9('0x854')]=_0x51e4af,_0x8d3f2b[_0x2fe6c9('0xb30')]=_0x26aa65[_0x2fe6c9('0x870')],_0x8d3f2b[_0x2fe6c9('0x337')]=_0x4e2667,_0x8d3f2b['saveUser']=_0x5b7063,_0x45d049[_0x2fe6c9('0x1279')][_0x2fe6c9('0xbaa')]({'fields':'id,name','sort':_0x2fe6c9('0x1909')})['$promise'][_0x2fe6c9('0x11bf')](function(_0x254bf9){const _0x30ba39=_0x2fe6c9;_0x8d3f2b[_0x30ba39('0x803')]=_0x254bf9[_0x30ba39('0x19b2')]||[];})[_0x2fe6c9('0x151d')](function(_0xf4a881){const _0x5756f8=_0x2fe6c9;_0x26aa65[_0x5756f8('0x255')]({'title':_0xf4a881[_0x5756f8('0xff9')]?_0x5756f8('0x574')+_0xf4a881[_0x5756f8('0xff9')]+_0x5756f8('0xb0b')+_0xf4a881[_0x5756f8('0x212f')]:'SYSTEM:GET_CONTEXTS','msg':_0xf4a881['data']?JSON[_0x5756f8('0x3e')](_0xf4a881[_0x5756f8('0x4e8')]):_0xf4a881[_0x5756f8('0xaab')]()});}),_0x45d049['userProfile'][_0x2fe6c9('0xbaa')]({'fields':_0x2fe6c9('0x721'),'sort':_0x2fe6c9('0x1909')})[_0x2fe6c9('0x1549')][_0x2fe6c9('0x11bf')](function(_0x3831da){const _0x1cb143=_0x2fe6c9;_0x8d3f2b[_0x1cb143('0xaf1')]=_0x3831da[_0x1cb143('0x19b2')]||[];})[_0x2fe6c9('0x151d')](function(_0x258ff6){const _0x1c4b74=_0x2fe6c9;_0x26aa65[_0x1c4b74('0x255')]({'title':_0x258ff6[_0x1c4b74('0xff9')]?_0x1c4b74('0x574')+_0x258ff6[_0x1c4b74('0xff9')]+_0x1c4b74('0xb0b')+_0x258ff6[_0x1c4b74('0x212f')]:_0x1c4b74('0x253d'),'msg':_0x258ff6[_0x1c4b74('0x4e8')]?JSON['stringify'](_0x258ff6[_0x1c4b74('0x4e8')]):_0x258ff6[_0x1c4b74('0xaab')]()});}),_0x45d049[_0x2fe6c9('0x21d9')][_0x2fe6c9('0xe48')]({'id':_0x8d3f2b[_0x2fe6c9('0x21d9')]['id']})[_0x2fe6c9('0x1549')]['then'](function(_0x413982){const _0x2b00bc=_0x2fe6c9;_0x8d3f2b[_0x2b00bc('0x21d9')][_0x2b00bc('0x1c8c')]=_0x413982['api_key']?_0x413982[_0x2b00bc('0x1a17')]:'N/A';})[_0x2fe6c9('0x151d')](function(_0x527ee5){const _0x1b94a0=_0x2fe6c9;_0x26aa65[_0x1b94a0('0x255')]({'title':_0x527ee5[_0x1b94a0('0xff9')]?_0x1b94a0('0x574')+_0x527ee5[_0x1b94a0('0xff9')]+_0x1b94a0('0xb0b')+_0x527ee5[_0x1b94a0('0x212f')]:_0x1b94a0('0x692'),'msg':_0x527ee5[_0x1b94a0('0x4e8')]?JSON[_0x1b94a0('0x3e')](_0x527ee5[_0x1b94a0('0x4e8')]):_0x527ee5[_0x1b94a0('0xaab')]()});});function _0x3fdfa7(_0x556620,_0x5c7db4){const _0x19dfb9=_0x2fe6c9;_0x20da6b[_0x19dfb9('0xb9')]({'controller':_0x19dfb9('0x1c88'),'controllerAs':'vm','templateUrl':_0xd96495,'parent':angular['element'](_0x444c0a[_0x19dfb9('0x1d2')]),'targetEvent':_0x5c7db4,'clickOutsideToClose':!![],'locals':{'user':_0x556620,'users':_0x8d3f2b[_0x19dfb9('0x17c0')]?_0x8d3f2b['users']['rows']:[],'crudPermissions':_0x8d3f2b['crudPermissions']}});}function _0x51e4af(_0x5d13e8,_0x39734a){const _0x5465e6=_0x2fe6c9;_0x20da6b[_0x5465e6('0xb9')]({'controller':_0x5465e6('0x169a'),'controllerAs':'vm','templateUrl':_0x23b4b9,'parent':angular[_0x5465e6('0x1e73')](_0x444c0a['body']),'targetEvent':_0x39734a,'clickOutsideToClose':!![],'locals':{'user':_0x5d13e8,'setting':_0x43fb69,'users':_0x8d3f2b['users']?_0x8d3f2b['users'][_0x5465e6('0x19b2')]:[],'crudPermissions':_0x8d3f2b[_0x5465e6('0xb25')]}});}function _0x4e2667(){const _0x103ca8=_0x2fe6c9;_0x3dfccc['go']('app.staff.users',{},{'reload':_0x103ca8('0xc15')});}function _0x5b7063(){const _0x10ecca=_0x2fe6c9;_0x8d3f2b[_0x10ecca('0x21d9')]=_0x36f548()[_0x10ecca('0x196f')](_0x8d3f2b[_0x10ecca('0x21d9')],_0x10ecca('0x88')),_0x45d049[_0x10ecca('0x21d9')][_0x10ecca('0x5ab')]({'id':_0x8d3f2b[_0x10ecca('0x21d9')]['id']},_0x8d3f2b[_0x10ecca('0x21d9')])[_0x10ecca('0x1549')][_0x10ecca('0x11bf')](function(){const _0x481e02=_0x10ecca;_0x26aa65['success']({'title':_0x481e02('0x3e2'),'msg':_0x8d3f2b[_0x481e02('0x21d9')]['name']?_0x8d3f2b[_0x481e02('0x21d9')][_0x481e02('0x1909')]+'\x20has\x20been\x20updated!':''});})['catch'](function(_0x4e0ce1){const _0x20c974=_0x10ecca;_0x26aa65[_0x20c974('0x255')]({'title':_0x4e0ce1[_0x20c974('0xff9')]?_0x20c974('0x574')+_0x4e0ce1['status']+'\x20-\x20'+_0x4e0ce1[_0x20c974('0x212f')]:_0x20c974('0xd6c'),'msg':_0x4e0ce1[_0x20c974('0x4e8')]?JSON[_0x20c974('0x3e')](_0x4e0ce1[_0x20c974('0x4e8')]):_0x4e0ce1[_0x20c974('0xaab')]()});});}}const _0x224708=_0x5aad11,_0x2ae064=_0x351988['p']+_0x21d0f5('0xf20');_0x534f5d[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0x2143'),_0x21d0f5('0xcbc'),_0x21d0f5('0x18fe'),_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),_0x21d0f5('0x17f5'),_0x21d0f5('0xb6b'),_0x21d0f5('0x17c0'),'userProfile','userProfileSection','api',_0x21d0f5('0xda9'),_0x21d0f5('0x142d'),'Auth','license',_0x21d0f5('0x23e1')];function _0x534f5d(_0x425453,_0x51494e,_0x1bbf7b,_0x34d943,_0x5aed3e,_0x466f37,_0x249bbe,_0x52c134,_0x2d61c1,_0x55b9a2,_0x2775aa,_0x44a6b1,_0x3eeeca,_0x221106,_0x4ff32b,_0x413355,_0x412b00){const _0xfddef9=_0x21d0f5,_0x483e89=this;_0x483e89[_0xfddef9('0x17ff')]=_0x413355,_0x483e89[_0xfddef9('0x23e1')]=_0x412b00,_0x483e89[_0xfddef9('0x32a')]=_0x4ff32b[_0xfddef9('0x2428')](),_0x483e89['users']=_0x2d61c1||{'count':0x0,'rows':[]},_0x483e89[_0xfddef9('0x25bc')]=_0x55b9a2,_0x483e89['userProfileSection']=_0x2775aa&&_0x2775aa[_0xfddef9('0x27d2')]==0x1?_0x2775aa[_0xfddef9('0x19b2')][0x0]:null,_0x483e89[_0xfddef9('0xb25')]=_0x4ff32b[_0xfddef9('0x1530')](_0x483e89['userProfileSection']?_0x483e89[_0xfddef9('0x1d63')]['crudPermissions']:null),_0x483e89[_0xfddef9('0x13e8')]=_0xfddef9('0x17c0'),_0x483e89[_0xfddef9('0x724')]='',_0x483e89[_0xfddef9('0xe3c')]=null,_0x483e89[_0xfddef9('0x2338')]=[],_0x483e89[_0xfddef9('0x1f2a')]={'fields':_0xfddef9('0x53d'),'role':_0xfddef9('0x22be'),'sort':'-updatedAt','limit':0xa,'page':0x1},_0x483e89[_0xfddef9('0x11ac')]=_0x36f548()[_0xfddef9('0x2130')]([{'option':_0xfddef9('0xe61'),'value':_0xfddef9('0x1ac9')},{'option':_0xfddef9('0x24ab'),'value':_0xfddef9('0xbd6')}],function(_0x5e7a84){const _0x47c9a0=_0xfddef9;return _0x36f548()['replace'](_0x5e7a84[_0x47c9a0('0x10cc')],new RegExp('\x27','g'),'');}),_0x483e89[_0xfddef9('0x1bf5')]=_0x36f548()['keyBy']([{'option':_0xfddef9('0x1afa'),'value':_0xfddef9('0xa54')},{'option':'tcp','value':_0xfddef9('0x1129')},{'option':'ws','value':'\x27ws\x27'},{'option':_0xfddef9('0x18a8'),'value':_0xfddef9('0x24c3')},{'option':_0xfddef9('0x33b'),'value':_0xfddef9('0x735')}],function(_0x3796e7){const _0x36f9b3=_0xfddef9;return _0x36f548()[_0x36f9b3('0x814')](_0x3796e7[_0x36f9b3('0x10cc')],new RegExp('\x27','g'),'');}),_0x483e89[_0xfddef9('0x192f')]=_0x36f548()[_0xfddef9('0x2130')]([{'option':'force_rport','value':_0xfddef9('0xe5')},{'option':_0xfddef9('0x1219'),'value':'\x27comedia\x27'},{'option':_0xfddef9('0xf6'),'value':_0xfddef9('0x1d9')},{'option':'no','value':_0xfddef9('0x19bb')},{'option':'never','value':'\x27never\x27'},{'option':_0xfddef9('0x17d8'),'value':'\x27route\x27'}],function(_0x2e8d91){const _0xb8a504=_0xfddef9;return _0x36f548()[_0xb8a504('0x814')](_0x2e8d91['value'],new RegExp('\x27','g'),'');}),_0x483e89[_0xfddef9('0x1bb6')]=_0x36f548()[_0xfddef9('0x2130')]([{'option':'ulaw','value':_0xfddef9('0x398')},{'option':_0xfddef9('0x6a0'),'value':'\x27alaw\x27'},{'option':_0xfddef9('0x3da'),'value':_0xfddef9('0x5af')},{'option':_0xfddef9('0x2709'),'value':_0xfddef9('0x18e0')},{'option':'g729','value':'\x27g729\x27'},{'option':_0xfddef9('0xb90'),'value':_0xfddef9('0xeeb')},{'option':_0xfddef9('0x16b4'),'value':_0xfddef9('0x6d8')}],function(_0x2602f2){const _0x4dd142=_0xfddef9;return _0x36f548()[_0x4dd142('0x814')](_0x2602f2['value'],new RegExp('\x27','g'),'');}),_0x483e89['arrayvideosupport']=_0x36f548()[_0xfddef9('0x2130')]([{'option':_0xfddef9('0xaa2'),'value':'\x27yes\x27'},{'option':'No','value':'\x27no\x27'},{'option':_0xfddef9('0xbf9'),'value':_0xfddef9('0x538')}],function(_0x4cf796){const _0x47ff6c=_0xfddef9;return _0x36f548()['replace'](_0x4cf796[_0x47ff6c('0x10cc')],new RegExp('\x27','g'),'');}),_0x483e89['editstate']=_0x2d90db,_0x483e89[_0xfddef9('0x549')]=_0x22d4bc,_0x483e89[_0xfddef9('0x2693')]=_0x56b92c,_0x483e89[_0xfddef9('0x26b4')]=_0x58666a,_0x483e89[_0xfddef9('0x221')]=_0xdaca,_0x483e89[_0xfddef9('0x13af')]=_0x410f66,_0x483e89[_0xfddef9('0x1bc8')]=_0x2d83f4,_0x483e89[_0xfddef9('0xf01')]=_0x5e5744,_0x483e89[_0xfddef9('0x1879')]=_0x1a6365,_0x483e89[_0xfddef9('0x1a32')]=_0x55b1c6,_0x44a6b1[_0xfddef9('0x25bc')][_0xfddef9('0xbaa')]({'fields':_0xfddef9('0x721'),'sort':_0xfddef9('0x1909')})['$promise'][_0xfddef9('0x11bf')](function(_0x5e1c2e){const _0x49d403=_0xfddef9;_0x483e89[_0x49d403('0xaf1')]=_0x5e1c2e['rows']||[];})['catch'](function(_0x4e4ad2){const _0x4d68b9=_0xfddef9;_0x221106[_0x4d68b9('0x255')]({'title':_0x4e4ad2['status']?'API:'+_0x4e4ad2['status']+'\x20-\x20'+_0x4e4ad2[_0x4d68b9('0x212f')]:_0x4d68b9('0x253d'),'msg':_0x4e4ad2[_0x4d68b9('0x4e8')]?JSON['stringify'](_0x4e4ad2[_0x4d68b9('0x4e8')]):_0x4e4ad2[_0x4d68b9('0xaab')]()});});function _0x2d90db(_0x46c88e){const _0x63809=_0xfddef9;_0x1bbf7b['go'](_0x63809('0x122b'),{'id':_0x46c88e['id'],'user':_0x46c88e,'crudPermissions':_0x483e89[_0x63809('0xb25')]});}function _0x22d4bc(_0x2c57bd,_0x214232){const _0x40e8f8=_0xfddef9,_0x328048=_0x5aed3e['confirm']()[_0x40e8f8('0x134b')](_0x40e8f8('0x1796')+_0x36f548()[_0x40e8f8('0x13cf')](_0x40e8f8('0x21d9'))+'?')[_0x40e8f8('0x1d03')](''+(_0x2c57bd[_0x40e8f8('0x1909')]||_0x40e8f8('0x21d9'))+_0x40e8f8('0x1c78')+_0x40e8f8('0x1a'))[_0x40e8f8('0xb2e')](_0x40e8f8('0x1121'))[_0x40e8f8('0x1e25')](_0x214232)['ok']('OK')[_0x40e8f8('0x26c9')](_0x40e8f8('0x772'));_0x5aed3e[_0x40e8f8('0xb9')](_0x328048)[_0x40e8f8('0x11bf')](function(){_0x410f66(_0x2c57bd);},function(){const _0x54fc8a=_0x40e8f8;console[_0x54fc8a('0xc78')](_0x54fc8a('0x772'));});}let _0x4db4a8=!![],_0x436df1=0x1;_0x425453[_0xfddef9('0x2087')](_0xfddef9('0x842'),function(_0x17a219,_0x8a7662){const _0x50a68c=_0xfddef9;_0x4db4a8?_0x249bbe(function(){_0x4db4a8=![];}):(!_0x8a7662&&(_0x436df1=_0x483e89[_0x50a68c('0x1f2a')][_0x50a68c('0x1c2')]),_0x17a219!==_0x8a7662&&(_0x483e89[_0x50a68c('0x1f2a')][_0x50a68c('0x1c2')]=0x1),!_0x17a219&&(_0x483e89[_0x50a68c('0x1f2a')]['page']=_0x436df1),_0x483e89[_0x50a68c('0x26b4')]());});function _0x56b92c(_0x3c8d48){const _0x2af0a6=_0xfddef9;_0x483e89[_0x2af0a6('0x17c0')]=_0x3c8d48||{'count':0x0,'rows':[]};}function _0x58666a(){const _0x3ff87=_0xfddef9;_0x483e89[_0x3ff87('0x1f2a')][_0x3ff87('0x1393')]=(_0x483e89[_0x3ff87('0x1f2a')][_0x3ff87('0x1c2')]-0x1)*_0x483e89[_0x3ff87('0x1f2a')][_0x3ff87('0xd5c')],_0x4ff32b[_0x3ff87('0x4ee')](_0x3ff87('0xf45'))?_0x483e89[_0x3ff87('0x13f')]=_0x44a6b1[_0x3ff87('0x21d9')][_0x3ff87('0xbaa')](_0x483e89[_0x3ff87('0x1f2a')],_0x56b92c)['$promise']:(_0x483e89[_0x3ff87('0x1f2a')]['id']=_0x483e89['userProfile']['id'],_0x483e89['query'][_0x3ff87('0xe6')]=_0x3ff87('0xc42'),_0x483e89['promise']=_0x44a6b1[_0x3ff87('0x25bc')][_0x3ff87('0x228e')](_0x483e89[_0x3ff87('0x1f2a')],_0x56b92c)['$promise']);}function _0xdaca(_0x21bcf4,_0x23c338){const _0x3faa9c=_0xfddef9;_0x5aed3e[_0x3faa9c('0xb9')]({'controller':_0x3faa9c('0x1a52'),'controllerAs':'vm','templateUrl':_0x2ae064,'parent':angular[_0x3faa9c('0x1e73')](_0x466f37[_0x3faa9c('0x1d2')]),'targetEvent':_0x21bcf4,'clickOutsideToClose':!![],'locals':{'user':_0x23c338,'users':_0x483e89[_0x3faa9c('0x17c0')][_0x3faa9c('0x19b2')],'license':_0x483e89['license'],'setting':_0x483e89['setting'],'crudPermissions':_0x483e89['crudPermissions']}});}function _0x410f66(_0x445ddb){const _0x25861b=_0xfddef9;_0x44a6b1[_0x25861b('0x21d9')][_0x25861b('0x2088')]({'id':_0x445ddb['id']})[_0x25861b('0x1549')][_0x25861b('0x11bf')](function(){const _0x23bc6d=_0x25861b;_0x36f548()[_0x23bc6d('0x14a5')](_0x483e89[_0x23bc6d('0x17c0')][_0x23bc6d('0x19b2')],{'id':_0x445ddb['id']}),_0x483e89[_0x23bc6d('0x17c0')][_0x23bc6d('0x27d2')]-=0x1,!_0x483e89[_0x23bc6d('0x17c0')][_0x23bc6d('0x19b2')]['length']&&_0x483e89[_0x23bc6d('0x26b4')](),_0x221106[_0x23bc6d('0x2693')]({'title':_0x36f548()['startCase']('User')+_0x23bc6d('0x2113'),'msg':_0x445ddb['name']?_0x445ddb[_0x23bc6d('0x1909')]+_0x23bc6d('0x433'):''});})[_0x25861b('0x151d')](function(_0xd2a359){const _0x160741=_0x25861b;if(_0xd2a359[_0x160741('0x4e8')]&&_0xd2a359[_0x160741('0x4e8')]['errors']&&_0xd2a359['data'][_0x160741('0x120f')]['length']){_0x483e89[_0x160741('0x120f')]=_0xd2a359[_0x160741('0x4e8')][_0x160741('0x120f')]||[{'message':_0xd2a359[_0x160741('0xaab')](),'type':_0x160741('0x1eaf')}];for(let _0x5167cd=0x0;_0x5167cd<_0xd2a359[_0x160741('0x4e8')]['errors'][_0x160741('0x1e22')];_0x5167cd++){_0x221106['error']({'title':_0xd2a359['data'][_0x160741('0x120f')][_0x5167cd]['type'],'msg':_0xd2a359[_0x160741('0x4e8')][_0x160741('0x120f')][_0x5167cd][_0x160741('0x1b86')]});}}else _0x221106[_0x160741('0x255')]({'title':_0xd2a359['status']?'API:'+_0xd2a359[_0x160741('0xff9')]+_0x160741('0xb0b')+_0xd2a359[_0x160741('0x212f')]:'SYSTEM:DELETEuser','msg':_0xd2a359[_0x160741('0x4e8')]?JSON[_0x160741('0x3e')](_0xd2a359[_0x160741('0x4e8')][_0x160741('0x1b86')]):_0xd2a359['message']||_0xd2a359[_0x160741('0xaab')]()});});}function _0x2d83f4(){const _0x1a7691=_0xfddef9,_0x3d8da4=angular[_0x1a7691('0x6fb')](_0x483e89['selectedUsers']);return _0x483e89['selectedUsers']=[],_0x3d8da4;}function _0x5e5744(_0x11c6c3){const _0x5ce9e1=_0xfddef9,_0x51e274=_0x5aed3e[_0x5ce9e1('0x132b')]()['title'](_0x5ce9e1('0x1ca8'))[_0x5ce9e1('0x1d03')](_0x5ce9e1('0x2061')+_0x483e89['selectedUsers'][_0x5ce9e1('0x1e22')]+_0x5ce9e1('0xac6')+'\x20will\x20be\x20deleted.')[_0x5ce9e1('0xb2e')](_0x5ce9e1('0xd8c'))[_0x5ce9e1('0x1e25')](_0x11c6c3)['ok']('OK')[_0x5ce9e1('0x26c9')](_0x5ce9e1('0x772'));_0x5aed3e['show'](_0x51e274)[_0x5ce9e1('0x11bf')](function(){const _0x1ffc8e=_0x5ce9e1;_0x483e89[_0x1ffc8e('0x2338')][_0x1ffc8e('0x1f88')](function(_0x58066b){_0x410f66(_0x58066b);}),_0x483e89[_0x1ffc8e('0x2338')]=[];});}function _0x1a6365(){const _0x3c0946=_0xfddef9;_0x483e89[_0x3c0946('0x2338')]=[];}function _0x55b1c6(){const _0x50fe91=_0xfddef9;_0x483e89[_0x50fe91('0x2338')]=_0x483e89['users'][_0x50fe91('0x19b2')];}}const _0x4c8796=_0x534f5d,_0x503c69=_0x351988['p']+'src/js/modules/main/apps/staff/views/users/users.html/users.html',_0x6c2d4c=_0x351988['p']+_0x21d0f5('0x228d'),_0xaa23d8=_0x351988['p']+'src/js/modules/main/apps/staff/views/agents/agents.html/agents.html',_0x3189d4=_0x351988['p']+'src/js/modules/main/apps/staff/views/agents/edit/view.html/view.html',_0x40160c=_0x351988['p']+_0x21d0f5('0x977'),_0x30a00d=_0x351988['p']+_0x21d0f5('0x1d97'),_0x158895=_0x351988['p']+'src/js/modules/main/apps/staff/views/teams/teams.html/teams.html',_0x58d3ff=_0x351988['p']+'src/js/modules/main/apps/staff/views/userProfiles/userProfiles.html/userProfiles.html',_0x5acc89=_0x351988['p']+_0x21d0f5('0x2696');_0x26bf6f[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x13d6'),_0x21d0f5('0xc3e')];function _0x26bf6f(_0x46537f,_0x56c22a){const _0x1dcc42=_0x21d0f5;_0x46537f[_0x1dcc42('0x2124')](_0x1dcc42('0x1c4b'),{'abstract':!![],'url':_0x1dcc42('0x11ba')})[_0x1dcc42('0x2124')](_0x1dcc42('0xc15'),{'url':_0x1dcc42('0x2282'),'views':{'content@app':{'templateUrl':_0x503c69,'controller':_0x1dcc42('0x202b')}},'resolve':{'users':['apiResolver',function(_0x3cfe74){const _0x3e6340=_0x1dcc42;return _0x3cfe74[_0x3e6340('0xa28')]('user@get',{'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':_0x3e6340('0x22be'),'sort':_0x3e6340('0x1c74'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x1dcc42('0x218e'),_0x1dcc42('0x1150'),function(_0x4dcf54,_0x250276){const _0x647bcd=_0x1dcc42;return _0x250276['hasRole'](_0x647bcd('0xf45'))?null:_0x4dcf54[_0x647bcd('0xa28')](_0x647bcd('0x428'),{'fields':'id,name,crudPermissions','id':_0x250276[_0x647bcd('0x2428')]()[_0x647bcd('0x781')]});}],'userProfileSection':[_0x1dcc42('0x218e'),_0x1dcc42('0x1150'),function(_0x2d5267,_0x5774df){const _0x12905b=_0x1dcc42;return _0x5774df['hasRole']('admin')?null:_0x2d5267[_0x12905b('0xa28')](_0x12905b('0x2762'),{'fields':_0x12905b('0x36d'),'userProfileId':_0x5774df[_0x12905b('0x2428')]()['userProfileId'],'sectionId':0xc9});}]},'authenticate':!![],'permissionId':0xc9,'bodyClass':_0x1dcc42('0x19cd')})[_0x1dcc42('0x2124')](_0x1dcc42('0x122b'),{'url':'/:id?tab','params':{'user':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x6c2d4c,'controller':_0x1dcc42('0x40d')}},'resolve':{'user':[_0x1dcc42('0x218e'),_0x1dcc42('0x1573'),function(_0x498d29,_0x327173){const _0x453b6a=_0x1dcc42;return _0x498d29[_0x453b6a('0xa28')](_0x453b6a('0x2166'),{'fields':_0x453b6a('0x53d'),'id':_0x327173['id']});}],'userProfileSection':[_0x1dcc42('0x218e'),_0x1dcc42('0x1150'),function(_0x2e039f,_0x52f5e9){const _0x1005c9=_0x1dcc42;return _0x2e039f[_0x1005c9('0xa28')]('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x52f5e9[_0x1005c9('0x2428')]()[_0x1005c9('0x781')],'sectionId':0xc9});}]},'authenticate':!![],'permissionId':0xc9,'bodyClass':'staff'})[_0x1dcc42('0x2124')]('app.staff.agents',{'url':_0x1dcc42('0x2260'),'views':{'content@app':{'templateUrl':_0xaa23d8,'controller':'AgentsController\x20as\x20vm'}},'resolve':{'agents':[_0x1dcc42('0x218e'),_0x1dcc42('0x1150'),function(_0xf09811,_0x4b9ea3){const _0x134e55=_0x1dcc42;return _0x4b9ea3['hasRole'](_0x134e55('0xf45'))?_0xf09811['resolve'](_0x134e55('0x2166'),{'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':_0x134e55('0x18c4'),'sort':'-updatedAt','limit':0xa,'offset':0x0}):_0xf09811[_0x134e55('0xa28')](_0x134e55('0xb0d'),{'id':_0x4b9ea3['getCurrentUser']()[_0x134e55('0x781')],'section':'Agents','fields':_0x134e55('0xc0c'),'role':_0x134e55('0x18c4'),'sort':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x1dcc42('0x1150'),function(_0x2dc47c,_0x3f299b){const _0x387109=_0x1dcc42;return _0x3f299b[_0x387109('0x4ee')](_0x387109('0xf45'))?null:_0x2dc47c['resolve']('userProfile@get',{'fields':'id,name,crudPermissions','id':_0x3f299b[_0x387109('0x2428')]()['userProfileId']});}],'userProfileSection':[_0x1dcc42('0x218e'),_0x1dcc42('0x1150'),function(_0x474d56,_0x146576){const _0x49b89a=_0x1dcc42;return _0x146576[_0x49b89a('0x4ee')](_0x49b89a('0xf45'))?null:_0x474d56[_0x49b89a('0xa28')](_0x49b89a('0x2762'),{'fields':_0x49b89a('0x36d'),'userProfileId':_0x146576[_0x49b89a('0x2428')]()[_0x49b89a('0x781')],'sectionId':0xca});}]},'authenticate':!![],'permissionId':0xca,'bodyClass':_0x1dcc42('0x19cd')})['state'](_0x1dcc42('0xb15'),{'url':'/:id?tab','params':{'agent':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x3189d4,'controller':_0x1dcc42('0x210b')}},'resolve':{'agent':[_0x1dcc42('0x218e'),'$stateParams',function(_0x547f85,_0x1249f3){const _0x25e858=_0x1dcc42;return _0x547f85[_0x25e858('0xa28')](_0x25e858('0x2166'),{'fields':_0x25e858('0xc0c'),'id':_0x1249f3['id']});}],'userProfileSection':['apiResolver','Auth',function(_0x9f6616,_0x578971){const _0x12775f=_0x1dcc42;return _0x9f6616[_0x12775f('0xa28')](_0x12775f('0x2762'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x578971['getCurrentUser']()[_0x12775f('0x781')],'sectionId':0xca});}]},'authenticate':!![],'permissionId':0xca,'bodyClass':_0x1dcc42('0x19cd')})['state'](_0x1dcc42('0x1895'),{'url':_0x1dcc42('0xe01'),'views':{'content@app':{'templateUrl':_0x40160c,'controller':'TelephonesController\x20as\x20vm'}},'resolve':{'telephones':[_0x1dcc42('0x218e'),_0x1dcc42('0x1150'),function(_0x3c037a,_0x3de202){const _0x1704e1=_0x1dcc42;return _0x3de202[_0x1704e1('0x4ee')](_0x1704e1('0xf45'))?_0x3c037a[_0x1704e1('0xa28')](_0x1704e1('0x2166'),{'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':_0x1704e1('0x2650'),'sort':_0x1704e1('0x1c74'),'limit':0xa,'offset':0x0}):_0x3c037a['resolve'](_0x1704e1('0xb0d'),{'id':_0x3de202[_0x1704e1('0x2428')]()['userProfileId'],'section':_0x1704e1('0x44c'),'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':_0x1704e1('0x2650'),'sort':_0x1704e1('0x1c74'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x1dcc42('0x218e'),'Auth',function(_0x5afb95,_0x355d21){const _0x26b0ae=_0x1dcc42;return _0x355d21['hasRole'](_0x26b0ae('0xf45'))?null:_0x5afb95[_0x26b0ae('0xa28')](_0x26b0ae('0x428'),{'fields':'id,name,crudPermissions','id':_0x355d21[_0x26b0ae('0x2428')]()[_0x26b0ae('0x781')]});}],'userProfileSection':[_0x1dcc42('0x218e'),'Auth',function(_0x35319b,_0x4fcb8c){const _0x34de29=_0x1dcc42;return _0x4fcb8c[_0x34de29('0x4ee')](_0x34de29('0xf45'))?null:_0x35319b[_0x34de29('0xa28')](_0x34de29('0x2762'),{'fields':_0x34de29('0x36d'),'userProfileId':_0x4fcb8c[_0x34de29('0x2428')]()['userProfileId'],'sectionId':0xcb});}]},'authenticate':!![],'permissionId':0xcb,'bodyClass':_0x1dcc42('0x19cd')})[_0x1dcc42('0x2124')](_0x1dcc42('0x5cb'),{'url':'/:id?tab','params':{'telephone':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x30a00d,'controller':'TelephoneController\x20as\x20vm'}},'resolve':{'telephone':['apiResolver','$stateParams',function(_0x2fea66,_0x211916){const _0x52cbfe=_0x1dcc42;return _0x2fea66[_0x52cbfe('0xa28')](_0x52cbfe('0x2166'),{'fields':_0x52cbfe('0xff'),'id':_0x211916['id']});}],'userProfileSection':[_0x1dcc42('0x218e'),_0x1dcc42('0x1150'),function(_0x3c929c,_0x48c98e){const _0x45e93c=_0x1dcc42;return _0x3c929c['resolve'](_0x45e93c('0x2762'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x48c98e[_0x45e93c('0x2428')]()[_0x45e93c('0x781')],'sectionId':0xcb});}]},'authenticate':!![],'permissionId':0xcb,'bodyClass':'staff'})[_0x1dcc42('0x2124')](_0x1dcc42('0x1e9'),{'url':_0x1dcc42('0xc6b'),'views':{'content@app':{'templateUrl':_0x158895,'controller':_0x1dcc42('0x118f')}},'resolve':{'teams':[_0x1dcc42('0x218e'),'Auth',function(_0x3bf440,_0x501d2f){const _0x30ba41=_0x1dcc42;return _0x501d2f[_0x30ba41('0x4ee')]('admin')?_0x3bf440[_0x30ba41('0xa28')](_0x30ba41('0x1243'),{'fields':'createdAt,updatedAt,id,name,description','sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x3bf440[_0x30ba41('0xa28')](_0x30ba41('0xb0d'),{'id':_0x501d2f[_0x30ba41('0x2428')]()[_0x30ba41('0x781')],'section':_0x30ba41('0xc3f'),'fields':'createdAt,updatedAt,id,name,description','sort':_0x30ba41('0x1c74'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x1dcc42('0x218e'),_0x1dcc42('0x1150'),function(_0x2441f8,_0x3bbe7b){const _0x396739=_0x1dcc42;return _0x3bbe7b[_0x396739('0x4ee')]('admin')?null:_0x2441f8[_0x396739('0xa28')](_0x396739('0x428'),{'fields':_0x396739('0xd30'),'id':_0x3bbe7b[_0x396739('0x2428')]()[_0x396739('0x781')]});}],'userProfileSection':[_0x1dcc42('0x218e'),_0x1dcc42('0x1150'),function(_0x128b42,_0x6cc05c){const _0x134353=_0x1dcc42;return _0x6cc05c['hasRole'](_0x134353('0xf45'))?null:_0x128b42[_0x134353('0xa28')](_0x134353('0x2762'),{'fields':_0x134353('0x36d'),'userProfileId':_0x6cc05c[_0x134353('0x2428')]()[_0x134353('0x781')],'sectionId':0xcc});}]},'authenticate':!![],'permissionId':0xcc,'bodyClass':'staff'})[_0x1dcc42('0x2124')](_0x1dcc42('0x510'),{'url':'/userProfiles','views':{'content@app':{'templateUrl':_0x58d3ff,'controller':_0x1dcc42('0x49e')}},'resolve':{'userProfiles':['apiResolver',function(_0x5c0d59){const _0x23b872=_0x1dcc42;return _0x5c0d59[_0x23b872('0xa28')]('userProfile@get',{'fields':_0x23b872('0x2707'),'sort':_0x23b872('0x1c74'),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x1dcc42('0x1150'),function(_0x4bfaf4,_0x366dac){const _0x1b08e1=_0x1dcc42;return _0x366dac['hasRole'](_0x1b08e1('0xf45'))?null:_0x4bfaf4['resolve'](_0x1b08e1('0x428'),{'fields':'id,name,crudPermissions','id':_0x366dac[_0x1b08e1('0x2428')]()[_0x1b08e1('0x781')]});}],'userProfileSection':['apiResolver',_0x1dcc42('0x1150'),function(_0x451964,_0x12550a){const _0x5d5b43=_0x1dcc42;return _0x12550a[_0x5d5b43('0x4ee')](_0x5d5b43('0xf45'))?null:_0x451964[_0x5d5b43('0xa28')](_0x5d5b43('0x2762'),{'fields':_0x5d5b43('0x36d'),'userProfileId':_0x12550a['getCurrentUser']()[_0x5d5b43('0x781')],'sectionId':0xcd});}]},'authenticate':!![],'permissionId':0xcd,'bodyClass':'staff'})['state']('app.staff.userProfiles.edit',{'url':_0x1dcc42('0x142b'),'params':{'userProfile':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x5acc89,'controller':_0x1dcc42('0x69d')}},'resolve':{'userProfile':['apiResolver',_0x1dcc42('0x1573'),function(_0x5ab600,_0xae1fc4){const _0x20d341=_0x1dcc42;return _0x5ab600[_0x20d341('0xa28')](_0x20d341('0x428'),{'fields':_0x20d341('0x2707'),'id':_0xae1fc4['id']});}],'userProfileSection':[_0x1dcc42('0x218e'),_0x1dcc42('0x1150'),function(_0x4a1523,_0x540b6d){const _0x4ada21=_0x1dcc42;return _0x4a1523[_0x4ada21('0xa28')](_0x4ada21('0x2762'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x540b6d[_0x4ada21('0x2428')]()[_0x4ada21('0x781')],'sectionId':0xcd});}]},'authenticate':!![],'permissionId':0xcd,'bodyClass':_0x1dcc42('0x19cd')}),_0x56c22a[_0x1dcc42('0x471')](_0x1dcc42('0x14c1'));}angular['module'](_0x21d0f5('0x1c4b'),['ngCsv','ngPassword',_0x21d0f5('0x3c4'),_0x21d0f5('0x2414'),_0x21d0f5('0xd61'),'ckeditor','ng-sortable','ngAria',_0x21d0f5('0x113d'),_0x21d0f5('0x21d5'),_0x21d0f5('0x29b'),'mwFormViewer','mwFormUtils',_0x21d0f5('0xf49'),'angular-cron-jobs',_0x21d0f5('0xed9'),'angularMaterialFormBuilder','material.components.expansionPanels',_0x21d0f5('0x1584'),_0x21d0f5('0xf7f')])[_0x21d0f5('0x53a')](_0x26bf6f)['controller'](_0x21d0f5('0x195d'),_0x4a89fa)[_0x21d0f5('0x23eb')]('CreateOrEditAgentDialogController',_0x5221ae)[_0x21d0f5('0x23eb')](_0x21d0f5('0x80'),_0x4ea9ca)[_0x21d0f5('0x23eb')](_0x21d0f5('0x2678'),_0x201a04)[_0x21d0f5('0x23eb')](_0x21d0f5('0x2184'),_0x2220bf)[_0x21d0f5('0x23eb')]('AgentqueueaddController',_0x7ca5f5)[_0x21d0f5('0x23eb')](_0x21d0f5('0x2235'),_0x260e9b)[_0x21d0f5('0x23eb')](_0x21d0f5('0xec2'),_0x12e496)['controller']('CreateOrEditTeamDialogController',_0x4256d9)['controller'](_0x21d0f5('0x1f5a'),_0x440a89)[_0x21d0f5('0x23eb')](_0x21d0f5('0x833'),_0x3e4e65)['controller'](_0x21d0f5('0x1682'),_0x31b239)['controller'](_0x21d0f5('0x570'),_0x26ecd2)[_0x21d0f5('0x23eb')](_0x21d0f5('0x1819'),_0x57886a)[_0x21d0f5('0x23eb')](_0x21d0f5('0x25e3'),_0x4101d9)[_0x21d0f5('0x23eb')](_0x21d0f5('0x9b7'),_0x3fadfe)[_0x21d0f5('0x23eb')]('UserProfilecloneController',_0x250366)['controller'](_0x21d0f5('0x1a0c'),_0x4cca35)['controller'](_0x21d0f5('0x21f0'),_0x181f3f)[_0x21d0f5('0x23eb')](_0x21d0f5('0x2274'),_0x2e484d)['controller'](_0x21d0f5('0xcf1'),_0x51d2c3)[_0x21d0f5('0x23eb')](_0x21d0f5('0x1a52'),_0x35d5b5)[_0x21d0f5('0x23eb')]('UserapikeymanagerController',_0x161962)[_0x21d0f5('0x23eb')](_0x21d0f5('0x1ca0'),_0x35908f)[_0x21d0f5('0x23eb')](_0x21d0f5('0x169a'),_0x94a711)[_0x21d0f5('0x23eb')](_0x21d0f5('0x75e'),_0x224708)[_0x21d0f5('0x23eb')](_0x21d0f5('0xeb5'),_0x4c8796);const _0xd1b006=_0x351988['p']+_0x21d0f5('0xea9'),_0xbefb03=_0x351988['p']+'src/js/modules/main/apps/contactmanager/views/contacts/create/dialog.html/dialog.html';_0x172cb9['$inject']=[_0x21d0f5('0x1b80'),_0x21d0f5('0x1b30'),_0x21d0f5('0x17f5'),'$state',_0x21d0f5('0x1573'),_0x21d0f5('0x1ca2'),'$q','userProfile','userProfileSection','api',_0x21d0f5('0x206c'),_0x21d0f5('0x2410'),'listsMap',_0x21d0f5('0x1c10'),_0x21d0f5('0x10f0'),'tags',_0x21d0f5('0x142d'),_0x21d0f5('0x1150'),_0x21d0f5('0x17ff')];function _0x172cb9(_0xebc673,_0x10228a,_0x16128e,_0x49ec1b,_0x2e16a2,_0x5da1be,_0x192ad1,_0xa5884d,_0x114552,_0x29ea93,_0x2e09da,_0x3d6c85,_0x14f827,_0x4a743a,_0x73613f,_0x27b394,_0x57f737,_0x4aea76,_0x19d7e0){const _0xa73f9b=_0x21d0f5,_0x1f7a72=this;_0x1f7a72[_0xa73f9b('0x23f4')]=_0x29ea93[_0xa73f9b('0x23f4')],_0x1f7a72[_0xa73f9b('0x32a')]=_0x4aea76['getCurrentUser'](),_0x1f7a72[_0xa73f9b('0x17ff')]=_0x19d7e0,_0x1f7a72[_0xa73f9b('0x25bc')]=_0xa5884d,_0x1f7a72[_0xa73f9b('0x1d63')]=_0x114552&&_0x114552[_0xa73f9b('0x27d2')]==0x1?_0x114552[_0xa73f9b('0x19b2')][0x0]:null,_0x1f7a72[_0xa73f9b('0xb25')]=_0x4aea76[_0xa73f9b('0x1530')](_0x1f7a72[_0xa73f9b('0x1d63')]?_0x1f7a72[_0xa73f9b('0x1d63')]['crudPermissions']:null);const _0x463456=0x3c,_0x55e906=_0x463456*0x400*0x400;_0x1f7a72[_0xa73f9b('0x1fad')]={'target':_0x1f7a72[_0xa73f9b('0x23f4')]+_0xa73f9b('0x299'),'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x55e906,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x1f7a72[_0xa73f9b('0x206c')]=_0x2e09da||{'count':0x0,'rows':[]},_0x1f7a72[_0xa73f9b('0x249a')]={'hidden':![],'hover':![],'isOpen':![]},_0x1f7a72['table']=_0xa73f9b('0x2278'),_0x1f7a72[_0xa73f9b('0xf75')]=[],_0x1f7a72['lists']=_0x3d6c85||{'rows':[],'count':0x0},_0x1f7a72['companies']=_0x4a743a||{'rows':[],'count':0x0},_0x1f7a72[_0xa73f9b('0x2763')]=_0x27b394||{'rows':[],'count':0x0},_0x1f7a72[_0xa73f9b('0x1c89')]=_0x14f827,_0x1f7a72[_0xa73f9b('0x10f0')]=_0x73613f,_0x1f7a72['selectedTags']=[],_0x1f7a72[_0xa73f9b('0x1c69')]=null,_0x1f7a72[_0xa73f9b('0x7b5')]=null,_0x1f7a72['query']=_0x36f548()[_0xa73f9b('0x47b')]({'includeAll':!![],'sort':_0xa73f9b('0x1c74'),'limit':0xa,'offset':0x0,'page':0x1},_0x2e16a2),_0x1f7a72[_0xa73f9b('0xc03')]=_0x493b2a,_0x1f7a72['deleteconfirm']=_0x5793f7,_0x1f7a72[_0xa73f9b('0x2693')]=_0x21557c,_0x1f7a72['getContacts']=_0x1f376b,_0x1f7a72[_0xa73f9b('0x1b96')]=_0x430a56,_0x1f7a72[_0xa73f9b('0xd5e')]=_0x1f07d2,_0x1f7a72[_0xa73f9b('0x1b01')]=_0x4801a1,_0x1f7a72['createOrEditContact']=_0x31a174,_0x1f7a72['deleteContact']=_0x4f760f,_0x1f7a72['exportSelectedContacts']=_0x6ff80e,_0x1f7a72[_0xa73f9b('0x1e7b')]=_0x339237,_0x1f7a72[_0xa73f9b('0x17b2')]=_0x30705c,_0x1f7a72[_0xa73f9b('0x1c97')]=_0xfb4b5f,_0x1f7a72[_0xa73f9b('0x2638')]=_0x2fdf8b,_0x1f7a72[_0xa73f9b('0x12c9')]=_0x2abbed,_0x1f7a72['createCompany']=_0x48b1dd,_0x1f7a72[_0xa73f9b('0x88a')]=_0x486994,_0x1f7a72[_0xa73f9b('0x1709')]=_0x3fc11a,_0x1f7a72[_0xa73f9b('0x1c03')]=_0x21d11d;_0x49ec1b['params'][_0xa73f9b('0x1e91')]&&(_0x1f7a72[_0xa73f9b('0x1c69')]=_0x49ec1b[_0xa73f9b('0x1ab3')]['ListId']);_0x49ec1b[_0xa73f9b('0x1ab3')][_0xa73f9b('0x5b9')]&&(_0x1f7a72[_0xa73f9b('0x7b5')]=_0x49ec1b['params'][_0xa73f9b('0x5b9')]);_0xebc673[_0xa73f9b('0x2087')](_0xa73f9b('0x62'),function(_0x656db8){const _0xd81d62=_0xa73f9b;_0x656db8?_0x16128e(function(){const _0x1e8551=a0_0xaf0c;_0xebc673[_0x1e8551('0x19d6')]=_0x1f7a72[_0x1e8551('0x249a')][_0x1e8551('0x1041')];},0x258):_0xebc673['tooltipVisible']=_0x1f7a72[_0xd81d62('0x249a')]['isOpen'];});function _0x430a56(){const _0x27c1ff=_0xa73f9b;if(!_0x4aea76[_0x27c1ff('0x4ee')](_0x27c1ff('0xf45'))){const _0x4e5abd=_0x36f548()(_0x1f7a72['contacts'][_0x27c1ff('0x19b2')])['map'](function(_0x307aa8){const _0x3db234=_0x27c1ff;return{'id':_0x307aa8[_0x3db234('0x5b9')]};})[_0x27c1ff('0x23cc')]('id')['filter'](function(_0x4e56d3){return _0x4e56d3['id']&&_0x4e56d3['id']>0x0;})[_0x27c1ff('0x1f6a')](_0x1f7a72[_0x27c1ff('0x1c10')][_0x27c1ff('0x19b2')],'id')['value']();if(!_0x36f548()['isEmpty'](_0x4e5abd)){const _0x310389=[];_0x4e5abd[_0x27c1ff('0x1f88')](function(_0x4a910c){const _0x327893=_0x27c1ff;_0x310389[_0x327893('0x105d')](_0x29ea93[_0x327893('0x9ba')][_0x327893('0xbaa')]({'id':_0x4a910c['id'],'fields':_0x327893('0x721')})['$promise']);}),_0x192ad1['all'](_0x310389)[_0x27c1ff('0x11bf')](function(_0x5a11b4){const _0x10c25d=_0x27c1ff;_0x5a11b4[_0x10c25d('0x1f88')](function(_0x481302){const _0x17b950=_0x10c25d,_0x4d76ee=_0x481302[_0x17b950('0x2866')]();_0x4d76ee[_0x17b950('0x254a')]=![],_0x1f7a72['companies'][_0x17b950('0x19b2')][_0x17b950('0x105d')](_0x4d76ee);const _0x347aae={};_0x347aae[_0x4d76ee['id']]=_0x4d76ee['name'],_0x1f7a72[_0x17b950('0x10f0')]=_0x36f548()[_0x17b950('0x171d')](_0x1f7a72[_0x17b950('0x10f0')],_0x347aae);});})[_0x27c1ff('0x151d')](function(_0x10654c){const _0x508911=_0x27c1ff;_0x57f737[_0x508911('0x255')]({'title':_0x10654c[_0x508911('0xff9')]?_0x508911('0x574')+_0x10654c[_0x508911('0xff9')]+_0x508911('0xb0b')+_0x10654c['statusText']:_0x508911('0x20e3'),'msg':_0x10654c[_0x508911('0x4e8')]?JSON[_0x508911('0x3e')](_0x10654c[_0x508911('0x4e8')][_0x508911('0x1b86')]):_0x10654c[_0x508911('0xaab')]()});});}}}function _0x2abbed(_0x476bb8){const _0x26cd61=_0xa73f9b,_0x1a97dc=_0x5da1be['prompt']()[_0x26cd61('0x134b')]('What\x20would\x20you\x20name\x20your\x20list?')['placeholder'](_0x26cd61('0x130c'))[_0x26cd61('0xb2e')](_0x26cd61('0x130c'))[_0x26cd61('0x1e25')](_0x476bb8)['ok']('Ok')['cancel'](_0x26cd61('0x784'));return _0x5da1be[_0x26cd61('0xb9')](_0x1a97dc)[_0x26cd61('0x11bf')](function(_0x3346b2){const _0x2db9d6=_0x26cd61;if(_0x3346b2)return _0x29ea93[_0x2db9d6('0xbef')][_0x2db9d6('0x259')]({'name':_0x3346b2});else _0x57f737[_0x2db9d6('0x255')]({'title':_0x2db9d6('0x20ac'),'msg':'Invalid\x20list\x20name.'});})[_0x26cd61('0x11bf')](function(_0x367f4c){const _0x33b0c4=_0x26cd61;_0x367f4c&&(_0x1f7a72[_0x33b0c4('0x2410')][_0x33b0c4('0x19b2')][_0x33b0c4('0x105d')](_0x367f4c),_0x57f737[_0x33b0c4('0x2693')]({'title':_0x33b0c4('0x10c'),'msg':_0x367f4c['name']?_0x367f4c[_0x33b0c4('0x1909')]+_0x33b0c4('0x7fb'):''}));});}function _0x3fc11a(){const _0xa997b5=_0xa73f9b;return _0x4aea76[_0xa997b5('0x1709')](0x12f)||_0x4aea76[_0xa997b5('0x4ee')](_0xa997b5('0xf45'));}function _0x48b1dd(_0x329244){const _0x342304=_0xa73f9b,_0xc293ca=_0x5da1be[_0x342304('0xff5')]()[_0x342304('0x134b')]('What\x20would\x20you\x20name\x20your\x20company?')[_0x342304('0x1772')](_0x342304('0x22c1'))[_0x342304('0xb2e')](_0x342304('0x22c1'))[_0x342304('0x1e25')](_0x329244)['ok']('Ok')[_0x342304('0x26c9')]('Cancel');return _0x5da1be['show'](_0xc293ca)[_0x342304('0x11bf')](function(_0x3bd44f){const _0xf7be06=_0x342304;if(_0x3bd44f)return _0x29ea93['cmCompany']['save']({'name':_0x3bd44f});else _0x57f737[_0xf7be06('0x255')]({'title':_0xf7be06('0x1d0d'),'msg':'Invalid\x20company\x20name.'});})[_0x342304('0x11bf')](function(_0x53d1c8){const _0x2da2ed=_0x342304;_0x53d1c8&&(_0x1f7a72[_0x2da2ed('0x1c10')]['rows'][_0x2da2ed('0x105d')](_0x53d1c8),_0x57f737[_0x2da2ed('0x2693')]({'title':_0x2da2ed('0x1feb'),'msg':_0x53d1c8[_0x2da2ed('0x1909')]?_0x53d1c8['name']+_0x2da2ed('0x7fb'):''}));});}function _0x2fdf8b(_0x1f0cd8){const _0x2d9316=_0xa73f9b,_0x416ab8=_0x5da1be['prompt']()['title'](_0x2d9316('0x338'))[_0x2d9316('0x1772')](_0x2d9316('0x4f5'))[_0x2d9316('0xb2e')](_0x2d9316('0x4f5'))[_0x2d9316('0x1e25')](_0x1f0cd8)['ok']('Ok')[_0x2d9316('0x26c9')](_0x2d9316('0x784'));return _0x5da1be[_0x2d9316('0xb9')](_0x416ab8)['then'](function(_0x5ce454){const _0x1d8d31=_0x2d9316;if(_0x5ce454)return _0x29ea93[_0x1d8d31('0x1d73')][_0x1d8d31('0x259')]({'name':_0x5ce454});else _0x57f737[_0x1d8d31('0x255')]({'title':_0x1d8d31('0x176c'),'msg':_0x1d8d31('0x232a')});})['then'](function(_0x164b27){const _0x5eea4a=_0x2d9316;_0x164b27&&(_0x1f7a72[_0x5eea4a('0x2763')][_0x5eea4a('0x19b2')][_0x5eea4a('0x105d')](_0x164b27),_0x57f737[_0x5eea4a('0x2693')]({'title':'Tag\x20properly\x20created!','msg':_0x164b27[_0x5eea4a('0x1d73')]?_0x164b27['name']+_0x5eea4a('0x7fb'):''}));});}function _0x486994(_0x573523,_0x45ae51){const _0x43c316=_0xa73f9b,_0x10c6fd=JSON['parse'](_0x45ae51);_0x5da1be['show']({'controller':_0x43c316('0x2561'),'controllerAs':'vm','templateUrl':_0xd1b006,'parent':angular[_0x43c316('0x1e73')](_0x10228a[_0x43c316('0x1d2')]),'clickOutsideToClose':![],'locals':{'lists':_0x3d6c85,'companies':_0x4a743a,'file':_0x10c6fd[_0x43c316('0x2889')],'fields':_0x10c6fd[_0x43c316('0x1067')],'license':_0x1f7a72['license']}})[_0x43c316('0x11bf')](function(){const _0x4fa452=_0x43c316;_0x1f7a72[_0x4fa452('0x23b2')]();})[_0x43c316('0x151d')](function(){console['error']();});}function _0x493b2a(_0x37362a){const _0xc7f1ec=_0xa73f9b;_0x49ec1b['go'](_0xc7f1ec('0x21ee'),{'id':_0x37362a['id'],'crudPermissions':_0x1f7a72['crudPermissions']});}function _0x5793f7(_0x3205e4,_0x62d24e){const _0x4acde4=_0xa73f9b,_0x420359=_0x5da1be[_0x4acde4('0x132b')]()[_0x4acde4('0x134b')](_0x4acde4('0x23c5'))[_0x4acde4('0x1d03')](''+(_0x3205e4[_0x4acde4('0x13a0')]||_0x3205e4[_0x4acde4('0x15d3')]||_0x3205e4[_0x4acde4('0x1546')]||_0x4acde4('0xf10'))+_0x4acde4('0x1c78')+'\x20will\x20be\x20deleted.')[_0x4acde4('0xb2e')](_0x4acde4('0x2309'))['targetEvent'](_0x62d24e)['ok']('OK')[_0x4acde4('0x26c9')](_0x4acde4('0x772'));_0x5da1be[_0x4acde4('0xb9')](_0x420359)[_0x4acde4('0x11bf')](function(){_0x4f760f(_0x3205e4);});}function _0x21d11d(_0x59decc){const _0x5b919b=_0xa73f9b,_0x14a799=['csv'];if(!_0x36f548()[_0x5b919b('0x55a')](_0x14a799,_0x59decc[_0x5b919b('0x115f')]()))return _0x57f737[_0x5b919b('0x255')]({'title':_0x5b919b('0x782')+_0x59decc[_0x5b919b('0x115f')](),'msg':_0x5b919b('0x9bf')+_0x14a799[_0x5b919b('0xa04')]()}),![];if(_0x59decc[_0x5b919b('0x12dd')]>_0x55e906)return _0x57f737[_0x5b919b('0x255')]({'title':'File\x20too\x20big','msg':_0x5b919b('0x686')+_0x463456+'MB'}),![];return!![];}let _0x37d1f4=!![],_0x44f84d=0x1;_0xebc673[_0xa73f9b('0x2087')]('vm.query.filter',function(_0x57816f,_0x262b21){const _0x267d79=_0xa73f9b;_0x37d1f4?_0x16128e(function(){_0x37d1f4=![];}):(!_0x262b21&&(_0x44f84d=_0x1f7a72['query'][_0x267d79('0x1c2')]),_0x57816f!==_0x262b21&&(_0x1f7a72[_0x267d79('0x1f2a')][_0x267d79('0x1c2')]=0x1),!_0x57816f&&(_0x1f7a72[_0x267d79('0x1f2a')]['page']=_0x44f84d),_0x1f7a72[_0x267d79('0x23b2')]());},!![]),_0xebc673['$watch']('vm.selectedList',function(_0x11c693,_0x2b591c){const _0x53822f=_0xa73f9b;_0x11c693!==_0x2b591c&&(_0x1f7a72[_0x53822f('0x1f2a')]['ListId']=_0x1f7a72[_0x53822f('0x1c69')]||undefined,_0x1f7a72['getContacts']());}),_0xebc673[_0xa73f9b('0x2087')](_0xa73f9b('0xd1c'),function(_0x459eef,_0x970cca){const _0x3af4a5=_0xa73f9b;_0x459eef!==_0x970cca&&(_0x1f7a72[_0x3af4a5('0x1f2a')][_0x3af4a5('0x5b9')]=_0x1f7a72['selectedCompany']||undefined,_0x1f7a72[_0x3af4a5('0x23b2')]());}),_0xebc673['$watch'](_0xa73f9b('0x1afe'),function(_0x2ce22a,_0x3adab0){const _0x279692=_0xa73f9b;(_0x2ce22a['length']||_0x3adab0['length'])&&_0x1f7a72[_0x279692('0x23b2')]();});function _0x21557c(_0x3de435){_0x1f7a72['contacts']=_0x3de435||{'count':0x0,'rows':[]};}function _0x1f376b(){const _0x446dc4=_0xa73f9b;_0x1f7a72[_0x446dc4('0x1f2a')][_0x446dc4('0x1393')]=(_0x1f7a72[_0x446dc4('0x1f2a')][_0x446dc4('0x1c2')]-0x1)*_0x1f7a72['query'][_0x446dc4('0xd5c')],_0x4aea76[_0x446dc4('0x4ee')](_0x446dc4('0xf45'))?_0x1f7a72[_0x446dc4('0x13f')]=_0x29ea93[_0x446dc4('0x1b8f')][_0x446dc4('0xbaa')](_0x1f7a72[_0x446dc4('0x1f2a')],_0x21557c)[_0x446dc4('0x1549')]:(_0x1f7a72['query']['id']=_0x1f7a72[_0x446dc4('0x25bc')]['id'],_0x1f7a72['query'][_0x446dc4('0x1e91')]=!_0x1f7a72['query']['ListId']?_0x36f548()[_0x446dc4('0x2171')](_0x1f7a72[_0x446dc4('0x2410')][_0x446dc4('0x19b2')],'id'):_0x1f7a72[_0x446dc4('0x1f2a')]['ListId'],_0x1f7a72['query'][_0x446dc4('0x5b9')]=!_0x1f7a72[_0x446dc4('0x1f2a')]['CompanyId']?_0x36f548()(_0x1f7a72[_0x446dc4('0x1c10')][_0x446dc4('0x19b2')])[_0x446dc4('0xdb4')]({'canSelect':undefined})[_0x446dc4('0x2171')]('id')[_0x446dc4('0x10cc')]():_0x1f7a72[_0x446dc4('0x1f2a')][_0x446dc4('0x5b9')],_0x1f7a72[_0x446dc4('0x1f2a')]['section']=_0x446dc4('0xe64'),_0x1f7a72[_0x446dc4('0x13f')]=_0x29ea93[_0x446dc4('0x25bc')][_0x446dc4('0x228e')](_0x1f7a72[_0x446dc4('0x1f2a')],_0x21557c)[_0x446dc4('0x1549')]);}function _0x31a174(_0x24513c,_0x3da109){const _0x18dbcf=_0xa73f9b;_0x3da109&&_0x3da109[_0x18dbcf('0xba4')]&&(_0x3da109['dateOfBirth']=new Date(_0x3da109[_0x18dbcf('0xba4')])),_0x5da1be[_0x18dbcf('0xb9')]({'controller':_0x18dbcf('0x82d'),'controllerAs':'vm','templateUrl':_0xbefb03,'parent':angular['element'](_0x10228a[_0x18dbcf('0x1d2')]),'targetEvent':_0x24513c,'clickOutsideToClose':!![],'locals':{'ListId':_0x1f7a72[_0x18dbcf('0x1f2a')][_0x18dbcf('0x1e91')]||_0x49ec1b['params'][_0x18dbcf('0x1e91')],'CompanyId':_0x1f7a72[_0x18dbcf('0x1f2a')][_0x18dbcf('0x5b9')]||_0x49ec1b[_0x18dbcf('0x1ab3')][_0x18dbcf('0x5b9')],'contact':_0x3da109,'contacts':_0x1f7a72[_0x18dbcf('0x206c')][_0x18dbcf('0x19b2')],'companies':_0x1f7a72['companies'],'lists':_0x1f7a72[_0x18dbcf('0x2410')],'setting':null,'crudPermissions':_0x1f7a72[_0x18dbcf('0xb25')]}});}function _0x4801a1(_0x35dc86,_0x4d7bf3){const _0x570360=_0xa73f9b;_0x5da1be[_0x570360('0xb9')]({'controller':_0x570360('0xfd8'),'controllerAs':'vm','templateUrl':_0x492638,'parent':angular['element'](_0x10228a[_0x570360('0x1d2')]),'targetEvent':_0x35dc86,'clickOutsideToClose':!![],'resolve':{'contact':['apiResolver',function(_0x5dc9f6){const _0x3fe105=_0x570360;return _0x5dc9f6[_0x3fe105('0xa28')]('cmContact@get',{'id':_0x4d7bf3['id']});}],'lists':[_0x570360('0x218e'),_0x570360('0x1150'),function(_0x48cb5a,_0xf8f91f){const _0x47ef53=_0x570360;return _0xf8f91f['hasRole'](_0x47ef53('0xf45'))?_0x48cb5a['resolve'](_0x47ef53('0x1f69'),{'fields':'id,name','nolimit':!![]}):_0x48cb5a[_0x47ef53('0xa28')](_0x47ef53('0xb0d'),{'id':_0xf8f91f['getCurrentUser']()[_0x47ef53('0x781')],'section':_0x47ef53('0x2244'),'fields':'id,name','nolimit':!![]});}]},'locals':{'contacts':_0x1f7a72[_0x570360('0x206c')][_0x570360('0x19b2')]}});}function _0x1f07d2(_0xac253f,_0x543931){_0x5da1be['show']({'controller':'MergeContactDialogController','controllerAs':'vm','templateUrl':_0x33f96f,'parent':angular['element'](_0x10228a['body']),'targetEvent':_0xac253f,'clickOutsideToClose':!![],'resolve':{'contact':['apiResolver',function(_0x2d8137){const _0x432f62=a0_0xaf0c;return _0x2d8137[_0x432f62('0xa28')](_0x432f62('0x1923'),{'id':_0x543931['id']});}],'lists':['apiResolver','Auth',function(_0x27909c,_0x3366e3){const _0x3056c4=a0_0xaf0c;return _0x3366e3[_0x3056c4('0x4ee')](_0x3056c4('0xf45'))?_0x27909c[_0x3056c4('0xa28')](_0x3056c4('0x1f69'),{'fields':_0x3056c4('0x721'),'nolimit':!![]}):_0x27909c['resolve'](_0x3056c4('0xb0d'),{'id':_0x3366e3[_0x3056c4('0x2428')]()[_0x3056c4('0x781')],'section':_0x3056c4('0x2244'),'fields':_0x3056c4('0x721'),'nolimit':!![]});}]},'locals':{'contacts':_0x1f7a72['contacts']['rows']}});}function _0x4f760f(_0x41e125){const _0x38d4b1=_0xa73f9b;_0x29ea93[_0x38d4b1('0x1b8f')][_0x38d4b1('0x2088')]({'id':_0x41e125['id']})[_0x38d4b1('0x1549')][_0x38d4b1('0x11bf')](function(){const _0x4e7b68=_0x38d4b1;_0x36f548()[_0x4e7b68('0x14a5')](_0x1f7a72[_0x4e7b68('0x206c')]['rows'],{'id':_0x41e125['id']}),_0x1f7a72['contacts'][_0x4e7b68('0x27d2')]-=0x1,!_0x1f7a72[_0x4e7b68('0x206c')]['rows'][_0x4e7b68('0x1e22')]&&_0x1f7a72[_0x4e7b68('0x23b2')](),_0x57f737[_0x4e7b68('0x2693')]({'title':'Contact\x20deleted!','msg':_0x41e125[_0x4e7b68('0x1909')]?_0x41e125[_0x4e7b68('0x1909')]+'\x20has\x20been\x20deleted!':''});})[_0x38d4b1('0x151d')](function(_0x15b90f){const _0x42dfdc=_0x38d4b1;if(_0x15b90f[_0x42dfdc('0x4e8')]&&_0x15b90f['data'][_0x42dfdc('0x120f')]&&_0x15b90f['data'][_0x42dfdc('0x120f')][_0x42dfdc('0x1e22')]){_0x1f7a72[_0x42dfdc('0x120f')]=_0x15b90f[_0x42dfdc('0x4e8')][_0x42dfdc('0x120f')]||[{'message':_0x15b90f['toString'](),'type':_0x42dfdc('0x1a30')}];for(let _0x5753df=0x0;_0x5753df<_0x15b90f[_0x42dfdc('0x4e8')][_0x42dfdc('0x120f')]['length'];_0x5753df++){_0x57f737[_0x42dfdc('0x255')]({'title':_0x15b90f[_0x42dfdc('0x4e8')][_0x42dfdc('0x120f')][_0x5753df][_0x42dfdc('0x19fd')],'msg':_0x15b90f[_0x42dfdc('0x4e8')]['errors'][_0x5753df][_0x42dfdc('0x1b86')]});}}else _0x57f737[_0x42dfdc('0x255')]({'title':_0x15b90f[_0x42dfdc('0xff9')]?_0x42dfdc('0x574')+_0x15b90f[_0x42dfdc('0xff9')]+_0x42dfdc('0xb0b')+_0x15b90f[_0x42dfdc('0x212f')]:_0x42dfdc('0x1a30'),'msg':_0x15b90f[_0x42dfdc('0x4e8')]?JSON['stringify'](_0x15b90f[_0x42dfdc('0x4e8')][_0x42dfdc('0x1b86')]):_0x15b90f[_0x42dfdc('0x1b86')]||_0x15b90f['toString']()});});}function _0x6ff80e(){const _0x33c4e9=_0xa73f9b,_0x5b3fda=angular['copy'](_0x1f7a72[_0x33c4e9('0xf75')]);return _0x1f7a72['selectedContacts']=[],_0x5b3fda;}function _0x339237(_0x2e669a){const _0x5ef0cc=_0xa73f9b,_0x451fce=_0x5da1be[_0x5ef0cc('0x132b')]()[_0x5ef0cc('0x134b')](_0x5ef0cc('0x14b1'))['htmlContent'](_0x5ef0cc('0x2061')+_0x1f7a72['selectedContacts']['length']+_0x5ef0cc('0xac6')+_0x5ef0cc('0x1a'))['ariaLabel'](_0x5ef0cc('0x45e'))[_0x5ef0cc('0x1e25')](_0x2e669a)['ok']('OK')[_0x5ef0cc('0x26c9')]('CANCEL');_0x5da1be['show'](_0x451fce)[_0x5ef0cc('0x11bf')](function(){const _0x3fd6ed=_0x5ef0cc;_0x1f7a72[_0x3fd6ed('0xf75')][_0x3fd6ed('0x1f88')](function(_0x52cb9a){_0x4f760f(_0x52cb9a);}),_0x1f7a72[_0x3fd6ed('0xf75')]=[];});}function _0x30705c(){const _0x3a1fdd=_0xa73f9b;_0x1f7a72[_0x3a1fdd('0xf75')]=[];}function _0xfb4b5f(){const _0x49c6de=_0xa73f9b;_0x1f7a72[_0x49c6de('0xf75')]=_0x1f7a72[_0x49c6de('0x206c')]['rows'];}}const _0x52d391=_0x172cb9;_0x3e145d[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1ca2'),_0x21d0f5('0x142d'),_0x21d0f5('0x206c'),'lists',_0x21d0f5('0x1c10'),_0x21d0f5('0xdde'),'ListId',_0x21d0f5('0x5b9'),'api',_0x21d0f5('0xb25')];function _0x3e145d(_0x3c1451,_0x32de65,_0x468dc8,_0x234fde,_0x4277f1,_0x5c2915,_0x4d8dcd,_0x34a061,_0x3a3964,_0x12c088){const _0x4fd7c5=_0x21d0f5,_0x330d48=this;_0x330d48[_0x4fd7c5('0x120f')]=[],_0x330d48[_0x4fd7c5('0x134b')]=_0x4fd7c5('0x1b94'),_0x330d48[_0x4fd7c5('0xb25')]=_0x12c088,_0x330d48[_0x4fd7c5('0xdde')]=angular[_0x4fd7c5('0x6fb')](_0x5c2915),_0x330d48['contacts']=_0x468dc8||{'rows':[],'count':0x0},_0x330d48[_0x4fd7c5('0x2410')]=_0x234fde||{'rows':[],'count':0x0},_0x330d48['companies']=_0x4277f1||{'rows':[],'count':0x0},_0x330d48[_0x4fd7c5('0x8a1')]={'rows':[],'count':0x0},_0x330d48[_0x4fd7c5('0x1005')]=![];!_0x330d48[_0x4fd7c5('0xdde')]?(_0x330d48[_0x4fd7c5('0xdde')]={'ListId':_0x4d8dcd?parseInt(_0x4d8dcd,0xa):undefined,'CompanyId':_0x34a061?parseInt(_0x34a061,0xa):undefined},_0x330d48[_0x4fd7c5('0x134b')]=_0x4fd7c5('0x17ad'),_0x330d48[_0x4fd7c5('0x1005')]=!![]):(delete _0x330d48['contact']['List'],_0x330d48[_0x4fd7c5('0x1e91')]=_0x330d48[_0x4fd7c5('0xdde')][_0x4fd7c5('0x1e91')]||undefined);_0x330d48[_0x4fd7c5('0x1892')]=_0x63eb8c,_0x330d48[_0x4fd7c5('0x1c8')]=_0x193624,_0x330d48[_0x4fd7c5('0x266')]=_0x191d58,_0x330d48[_0x4fd7c5('0xc4e')]=_0x26a8e6,_0x330d48[_0x4fd7c5('0x1281')]=_0x944380,_0x330d48[_0x4fd7c5('0x1bd1')]=_0x570d17;function _0x63eb8c(){const _0x349b43=_0x4fd7c5;_0x330d48[_0x349b43('0x120f')]=[],_0x3a3964[_0x349b43('0x1b8f')][_0x349b43('0x259')](_0x330d48['contact'])[_0x349b43('0x1549')][_0x349b43('0x11bf')](function(_0x49962a){const _0x56664f=_0x349b43;_0x330d48[_0x56664f('0x206c')][_0x56664f('0x880')](_0x49962a),_0x32de65[_0x56664f('0x2693')]({'title':_0x56664f('0xea2'),'msg':_0x330d48[_0x56664f('0xdde')][_0x56664f('0x1909')]?_0x330d48['contact'][_0x56664f('0x1909')]+_0x56664f('0x7fb'):''}),_0x26a8e6();})[_0x349b43('0x151d')](function(_0x26d74a){const _0x4486da=_0x349b43;if(_0x26d74a[_0x4486da('0x4e8')]&&_0x26d74a['data'][_0x4486da('0x120f')]&&_0x26d74a[_0x4486da('0x4e8')][_0x4486da('0x120f')][_0x4486da('0x1e22')]){_0x330d48['errors']=_0x26d74a['data'][_0x4486da('0x120f')]||[{'message':_0x26d74a[_0x4486da('0xaab')](),'type':_0x4486da('0x116')}];for(let _0x38a43f=0x0;_0x38a43f<_0x26d74a[_0x4486da('0x4e8')]['errors'][_0x4486da('0x1e22')];_0x38a43f++){_0x32de65['error']({'title':_0x26d74a[_0x4486da('0x4e8')]['errors'][_0x38a43f]['type'],'msg':_0x26d74a[_0x4486da('0x4e8')][_0x4486da('0x120f')][_0x38a43f][_0x4486da('0x1b86')]});}}else _0x32de65[_0x4486da('0x255')]({'title':_0x26d74a[_0x4486da('0xff9')]?_0x4486da('0x574')+_0x26d74a[_0x4486da('0xff9')]+_0x4486da('0xb0b')+_0x26d74a[_0x4486da('0x212f')]:_0x4486da('0x5b2'),'msg':_0x26d74a[_0x4486da('0x4e8')]?JSON[_0x4486da('0x3e')](_0x26d74a[_0x4486da('0x4e8')][_0x4486da('0x1b86')]):_0x26d74a[_0x4486da('0xaab')]()});});}function _0x193624(){const _0xe71e81=_0x4fd7c5;_0x330d48[_0xe71e81('0x120f')]=[],_0x3a3964['cmContact']['update']({'id':_0x330d48['contact']['id']},_0x330d48[_0xe71e81('0xdde')])['$promise']['then'](function(_0xb4dc11){const _0x4ce119=_0xe71e81,_0x1bf677=_0x36f548()['find'](_0x330d48[_0x4ce119('0x206c')],{'id':_0xb4dc11['id']});_0x1bf677&&_0x36f548()[_0x4ce119('0x47b')](_0x1bf677,_0xb4dc11),_0x32de65['success']({'title':_0x4ce119('0x1ca3'),'msg':_0x330d48[_0x4ce119('0xdde')][_0x4ce119('0x1909')]?_0x330d48['contact'][_0x4ce119('0x1909')]+_0x4ce119('0x1a78'):''}),_0x26a8e6();})[_0xe71e81('0x151d')](function(_0x447212){const _0x288f35=_0xe71e81;if(_0x447212[_0x288f35('0x4e8')]&&_0x447212[_0x288f35('0x4e8')][_0x288f35('0x120f')]&&_0x447212['data'][_0x288f35('0x120f')][_0x288f35('0x1e22')]){_0x330d48['errors']=_0x447212[_0x288f35('0x4e8')][_0x288f35('0x120f')]||[{'message':_0x447212[_0x288f35('0xaab')](),'type':_0x288f35('0xf87')}];for(let _0x70299a=0x0;_0x70299a<_0x447212[_0x288f35('0x4e8')][_0x288f35('0x120f')]['length'];_0x70299a++){_0x32de65[_0x288f35('0x255')]({'title':_0x447212['data'][_0x288f35('0x120f')][_0x70299a][_0x288f35('0x19fd')],'msg':_0x447212[_0x288f35('0x4e8')][_0x288f35('0x120f')][_0x70299a][_0x288f35('0x1b86')]});}}else _0x32de65[_0x288f35('0x255')]({'title':_0x447212['status']?_0x288f35('0x574')+_0x447212[_0x288f35('0xff9')]+_0x288f35('0xb0b')+_0x447212[_0x288f35('0x212f')]:_0x288f35('0xf87'),'msg':_0x447212[_0x288f35('0x4e8')]?JSON[_0x288f35('0x3e')](_0x447212['data'][_0x288f35('0x1b86')]):_0x447212[_0x288f35('0xaab')]()});});}function _0x944380(_0x5885b9){const _0x5377eb=_0x4fd7c5;if(_0x5885b9)return _0x3a3964[_0x5377eb('0xbef')]['getCustomFields']({'id':_0x5885b9})['$promise'][_0x5377eb('0x11bf')](function(_0x3fa7d5){const _0x2865f1=_0x5377eb;if(_0x3fa7d5){_0x330d48[_0x2865f1('0x8a1')]=_0x3fa7d5;const _0x4fb35d=_0x36f548()[_0x2865f1('0x2171')](_0x330d48[_0x2865f1('0x8a1')][_0x2865f1('0x19b2')],function(_0x10e486){const _0x362698=_0x2865f1;return _0x362698('0x57a')+_0x10e486['id'];});_0x3a3964[_0x2865f1('0x1b8f')][_0x2865f1('0xbaa')]({'id':_0x330d48[_0x2865f1('0xdde')]['id'],'attributes':_0x4fb35d,'raw':!![]})[_0x2865f1('0x1549')][_0x2865f1('0x11bf')](function(_0x1948fa){const _0x4601d3=_0x2865f1;_0x330d48[_0x4601d3('0xdde')]=_0x36f548()[_0x4601d3('0x47b')](_0x330d48[_0x4601d3('0xdde')],_0x1948fa);});}})[_0x5377eb('0x151d')](function(_0x555235){console['error'](_0x555235);});else _0x330d48['customFields']={'rows':[],'count':0x0};}function _0x191d58(_0x285923){const _0x48bdc8=_0x4fd7c5;_0x330d48[_0x48bdc8('0x120f')]=[];const _0x3e93ee=_0x3c1451[_0x48bdc8('0x132b')]()['title'](_0x48bdc8('0x1fa9'))['content'](_0x48bdc8('0x1ae8'))['ariaLabel'](_0x48bdc8('0x6b3'))['ok'](_0x48bdc8('0x1167'))[_0x48bdc8('0x26c9')](_0x48bdc8('0x784'))['targetEvent'](_0x285923);_0x3c1451[_0x48bdc8('0xb9')](_0x3e93ee)['then'](function(){const _0x14f9a9=_0x48bdc8;_0x3a3964[_0x14f9a9('0x1b8f')]['delete']({'id':_0x330d48['contact']['id']})[_0x14f9a9('0x1549')][_0x14f9a9('0x11bf')](function(){const _0x91f47c=_0x14f9a9;_0x36f548()[_0x91f47c('0x14a5')](_0x330d48[_0x91f47c('0x206c')],{'id':_0x330d48['contact']['id']}),_0x32de65[_0x91f47c('0x2693')]({'title':_0x91f47c('0xafb'),'msg':_0x330d48[_0x91f47c('0xdde')][_0x91f47c('0x1909')]?_0x330d48[_0x91f47c('0xdde')][_0x91f47c('0x1909')]+_0x91f47c('0x433'):''}),_0x26a8e6();})[_0x14f9a9('0x151d')](function(_0x364f71){const _0x36ac3a=_0x14f9a9;console[_0x36ac3a('0x255')](_0x364f71),_0x330d48[_0x36ac3a('0x120f')]=_0x364f71[_0x36ac3a('0x4e8')][_0x36ac3a('0x120f')]||[{'message':_0x364f71[_0x36ac3a('0xaab')](),'type':_0x36ac3a('0x1a30')}];});},function(){});}function _0x570d17(_0x43841a){return _0x43841a===null?undefined:new Date(_0x43841a);}function _0x26a8e6(){_0x3c1451['hide']();}}const _0x242b94=_0x3e145d;_0x5d851a[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1ca2'),_0x21d0f5('0x142d'),_0x21d0f5('0xdde'),_0x21d0f5('0x206c'),_0x21d0f5('0x2410'),'api'];function _0x5d851a(_0xbd6cad,_0x35eecb,_0x5f945,_0x5e5748,_0x228666,_0x300693){const _0x2b7ddb=_0x21d0f5,_0x216930=this;_0x216930[_0x2b7ddb('0x120f')]=[],_0x216930[_0x2b7ddb('0x134b')]=_0x2b7ddb('0x1c8f'),_0x216930[_0x2b7ddb('0xdde')]=angular[_0x2b7ddb('0x6fb')](_0x5f945),_0x216930['lists']=_0x228666||{'rows':[],'count':0x0},_0x216930[_0x2b7ddb('0x1892')]=_0x155700,_0x216930[_0x2b7ddb('0xc4e')]=_0x1442de;function _0x155700(){const _0x37fdb8=_0x2b7ddb;_0x216930[_0x37fdb8('0x120f')]=[],delete _0x216930['contact']['id'],_0x216930['contact'][_0x37fdb8('0x2763')]&&!_0x216930[_0x37fdb8('0xdde')]['tags'][_0x37fdb8('0x1e22')]&&delete _0x216930['contact']['tags'],_0x300693['cmContact'][_0x37fdb8('0x259')](_0x216930['contact'])[_0x37fdb8('0x1549')][_0x37fdb8('0x11bf')](function(_0x2391cc){const _0x24d802=_0x37fdb8;_0x5e5748[_0x24d802('0x880')](_0x2391cc),_0x35eecb['success']({'title':_0x24d802('0xea2'),'msg':_0x216930[_0x24d802('0xdde')][_0x24d802('0x1909')]?_0x216930['contact'][_0x24d802('0x1909')]+_0x24d802('0x7fb'):''}),_0x1442de();})[_0x37fdb8('0x151d')](function(_0x5c087d){const _0x5ee4ea=_0x37fdb8;console[_0x5ee4ea('0x255')](_0x5c087d),_0x216930['errors']=_0x5c087d[_0x5ee4ea('0x4e8')][_0x5ee4ea('0x120f')]||[{'message':_0x5c087d['toString'](),'type':_0x5ee4ea('0x12ad')}];});}function _0x1442de(){const _0x315d20=_0x2b7ddb;_0xbd6cad[_0x315d20('0x237e')]();}}const _0x495361=_0x5d851a;_0x160632[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0xcbc'),'$location',_0x21d0f5('0x1ca2'),_0x21d0f5('0x142d'),_0x21d0f5('0xc8d'),_0x21d0f5('0x244f'),'api',_0x21d0f5('0xb25')];function _0x160632(_0x443162,_0x1d3328,_0x3eb07c,_0x1af8ae,_0x3fe90b,_0x236b0c,_0x596578,_0x4da577,_0x3bb136){const _0x55e5bb=_0x21d0f5,_0x388c28=this;_0x388c28['errors']=[],_0x388c28[_0x55e5bb('0x134b')]='CONTACTMANAGER.EDIT_HOPPER',_0x388c28[_0x55e5bb('0x244f')]=angular[_0x55e5bb('0x6fb')](_0x596578),_0x388c28[_0x55e5bb('0xc8d')]=_0x236b0c,_0x388c28[_0x55e5bb('0x201f')]=![],_0x388c28['crudPermissions']=_0x3bb136;!_0x388c28[_0x55e5bb('0x244f')]&&(_0x388c28[_0x55e5bb('0x244f')]={},_0x388c28[_0x55e5bb('0x134b')]=_0x55e5bb('0x2319'),_0x388c28[_0x55e5bb('0x201f')]=!![]);_0x388c28[_0x55e5bb('0x25a7')]=_0x4d1e4c,_0x388c28[_0x55e5bb('0x1bd1')]=_0x39ce03,_0x388c28['closeDialog']=_0x2cbdd2;function _0x4d1e4c(){const _0x39552a=_0x55e5bb;_0x388c28[_0x39552a('0x120f')]=[],_0x4da577[_0x39552a('0x1d11')][_0x39552a('0x5ab')]({'id':_0x388c28['hopper']['id']},_0x388c28['hopper'])['$promise'][_0x39552a('0x11bf')](function(_0x7b272a){const _0x3a788c=_0x39552a,_0x46cf0b=_0x36f548()[_0x3a788c('0x1ad4')](_0x388c28[_0x3a788c('0xc8d')],{'id':_0x7b272a['id']});_0x46cf0b&&_0x36f548()[_0x3a788c('0x47b')](_0x46cf0b,_0x7b272a),_0x3fe90b['success']({'title':'Hopper\x20properly\x20saved!','msg':_0x388c28[_0x3a788c('0x244f')]['name']?_0x388c28['hopper'][_0x3a788c('0x1909')]+_0x3a788c('0x1a78'):''}),_0x2cbdd2(_0x7b272a);})[_0x39552a('0x151d')](function(_0x155296){const _0x33d9c7=_0x39552a;console['error'](_0x155296),_0x388c28[_0x33d9c7('0x120f')]=_0x155296[_0x33d9c7('0x4e8')][_0x33d9c7('0x120f')]||[{'message':_0x155296[_0x33d9c7('0xaab')](),'type':'api.cmHopper.update'}];});}function _0x39ce03(_0x2d1a9b){return _0x2d1a9b===null?undefined:new Date(_0x2d1a9b);}function _0x2cbdd2(_0x11b10a){_0x1af8ae['hide'](_0x11b10a);}}const _0x8cd4d6=_0x160632,_0x4f93d4=_0x351988['p']+'src/js/modules/main/apps/motiondialer/views/ivrCampaigns/edit/hoppers/dialog.html/dialog.html';_0x355e37[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0x17f5'),_0x21d0f5('0xcbc'),_0x21d0f5('0x1b30'),_0x21d0f5('0x1ca2'),_0x21d0f5('0xb6b'),_0x21d0f5('0x142d'),_0x21d0f5('0x12a5'),_0x21d0f5('0xdde'),_0x21d0f5('0xc8d'),'finals','histories',_0x21d0f5('0x206c'),'companies','lists',_0x21d0f5('0x8a1'),_0x21d0f5('0x2763'),'jscriptySessions',_0x21d0f5('0x17ff'),'Auth','userProfileSection'];function _0x355e37(_0x2abdec,_0x53097d,_0x314881,_0x4496d5,_0x41ae95,_0x4dba64,_0x32f4b1,_0x12ec5c,_0x4f68c2,_0x16f8a9,_0x383749,_0x281426,_0x552ad7,_0x8b7686,_0x38949a,_0x12b534,_0x33232e,_0x29a7d9,_0x404960,_0x128d0a,_0x3f6749){const _0x3f83e5=_0x21d0f5,_0x51463b=this;_0x51463b[_0x3f83e5('0x32a')]=_0x128d0a[_0x3f83e5('0x2428')](),_0x51463b['license']=_0x404960,_0x51463b['journey']=[],_0x51463b['contact']=_0x4f68c2||{},_0x51463b['hoppers']=_0x16f8a9||{'rows':[],'count':0x0},_0x51463b[_0x3f83e5('0x711')]=_0x383749||{'rows':[],'count':0x0},_0x51463b[_0x3f83e5('0x103b')]=_0x281426||{'rows':[],'count':0x0},_0x51463b[_0x3f83e5('0x1c10')]=_0x8b7686||{'rows':[],'count':0x0},_0x51463b[_0x3f83e5('0x2410')]=_0x38949a||{'rows':[],'count':0x0},_0x51463b['customFields']=_0x12b534||{'rows':[],'count':0x0},_0x51463b[_0x3f83e5('0x2763')]=_0x33232e||{'rows':[],'count':0x0},_0x51463b[_0x3f83e5('0x1dfe')]=_0x29a7d9||{'rows':[],'count':0x0},_0x51463b[_0x3f83e5('0xb5a')]={'scrollEl':'#interaction-content'},_0x51463b[_0x3f83e5('0x9f6')]=new Date(_0x57d4d1()()['startOf'](_0x3f83e5('0x4d8'))[_0x3f83e5('0x243a')](0x1,'seconds')[_0x3f83e5('0x1fb1')](0x0,!![])[_0x3f83e5('0x1826')]()),_0x51463b[_0x3f83e5('0xbf2')]=new Date(_0x57d4d1()()['endOf'](_0x3f83e5('0x4d8'))['subtract'](0x1,_0x3f83e5('0x2161'))[_0x3f83e5('0x1fb1')](0x0,!![])['format']()),_0x51463b[_0x3f83e5('0x1d63')]=_0x3f6749&&_0x3f6749[_0x3f83e5('0x27d2')]==0x1?_0x3f6749['rows'][0x0]:null,_0x51463b['crudPermissions']=_0x128d0a['parseCrudPermissions'](_0x51463b[_0x3f83e5('0x1d63')]?_0x51463b[_0x3f83e5('0x1d63')]['crudPermissions']:null),_0x51463b[_0x3f83e5('0x1337')]=_0x36f548()[_0x3f83e5('0x2130')]([{'option':_0x3f83e5('0x2f9'),'value':_0x3f83e5('0x21bf')},{'option':_0x3f83e5('0x947'),'value':'\x273\x27'},{'option':_0x3f83e5('0x1fec'),'value':_0x3f83e5('0x786')},{'option':_0x3f83e5('0x2612'),'value':_0x3f83e5('0x211f')},{'option':_0x3f83e5('0x1f9b'),'value':_0x3f83e5('0x7d2')}],function(_0x5f4c7a){const _0xa7aa25=_0x3f83e5;return _0x36f548()[_0xa7aa25('0x814')](_0x5f4c7a[_0xa7aa25('0x10cc')],new RegExp('\x27','g'),'');}),_0x51463b[_0x3f83e5('0x1e70')]={'fields':_0x3f83e5('0x1eb8'),'sort':_0x3f83e5('0x1c74'),'limit':0xa,'page':0x1},_0x51463b[_0x3f83e5('0x475')]={'fields':'id,uniqueid,calleridnum,statedesc,starttime,disposition','sort':_0x3f83e5('0x1157'),'limit':0xa,'page':0x1},_0x51463b[_0x3f83e5('0x2149')]={'fields':'id,uniqueid,calleridnum,statedesc,scheduledat,starttime,endtime','sort':_0x3f83e5('0x1157'),'limit':0xa,'page':0x1},_0x51463b['queryJscriptySession']={'fields':_0x3f83e5('0x1448'),'sort':'-starttime','limit':0xa,'page':0x1},_0x51463b[_0x3f83e5('0x1179')]=_0x314881['params'][_0x3f83e5('0x205c')]||0x0,_0x51463b[_0x3f83e5('0x277c')]=_0x31dee6,_0x51463b[_0x3f83e5('0x1f7d')]=_0x51c9b3,_0x51463b[_0x3f83e5('0x1b01')]=_0x3413be,_0x51463b[_0x3f83e5('0x1c8')]=_0x5483ed,_0x51463b['editCompany']=_0x334974,_0x51463b[_0x3f83e5('0x1b3c')]=_0x1b0752,_0x51463b[_0x3f83e5('0x1579')]=_0x2b4372,_0x51463b[_0x3f83e5('0x1bd1')]=_0xda8ad,_0x51463b['getHoppers']=_0x283ddb,_0x51463b[_0x3f83e5('0x2685')]=_0x55309b,_0x51463b[_0x3f83e5('0x58d')]=_0x2be22c,_0x51463b[_0x3f83e5('0x2787')]=_0x4ca44e,_0x51463b[_0x3f83e5('0x549')]=_0xb78c0f,_0x51463b[_0x3f83e5('0x1e6b')]=_0x28dfaa,_0x51463b['createOrEditIvrCampaignHopper']=_0x12de93,_0x51463b[_0x3f83e5('0x223')]=_0x585fc8;let _0xd2f46c=!![],_0x5ffd9c=0x1;_0x2abdec[_0x3f83e5('0x2087')]('vm.queryHopper.filter',function(_0x20a350,_0x28c04d){const _0x58c2f0=_0x3f83e5;_0xd2f46c?_0x53097d(function(){_0xd2f46c=![];}):(!_0x28c04d&&(_0x5ffd9c=_0x51463b[_0x58c2f0('0x1e70')]['page']),_0x20a350!==_0x28c04d&&(_0x51463b['queryHopper'][_0x58c2f0('0x1c2')]=0x1),!_0x20a350&&(_0x51463b['queryHopper']['page']=_0x5ffd9c),_0x51463b[_0x58c2f0('0x1945')]());}),_0x2abdec[_0x3f83e5('0x2087')](_0x3f83e5('0x131d'),function(_0x1ec827,_0x104530){const _0x297a97=_0x3f83e5;_0xd2f46c?_0x53097d(function(){_0xd2f46c=![];}):(!_0x104530&&(_0x5ffd9c=_0x51463b['queryFinal'][_0x297a97('0x1c2')]),_0x1ec827!==_0x104530&&(_0x51463b[_0x297a97('0x475')][_0x297a97('0x1c2')]=0x1),!_0x1ec827&&(_0x51463b[_0x297a97('0x475')][_0x297a97('0x1c2')]=_0x5ffd9c),_0x51463b[_0x297a97('0x2685')]());}),_0x2abdec[_0x3f83e5('0x2087')](_0x3f83e5('0x185a'),function(_0x2264c6,_0x378d0e){const _0x508a5b=_0x3f83e5;_0xd2f46c?_0x53097d(function(){_0xd2f46c=![];}):(!_0x378d0e&&(_0x5ffd9c=_0x51463b['queryHistory'][_0x508a5b('0x1c2')]),_0x2264c6!==_0x378d0e&&(_0x51463b[_0x508a5b('0x2149')][_0x508a5b('0x1c2')]=0x1),!_0x2264c6&&(_0x51463b[_0x508a5b('0x2149')][_0x508a5b('0x1c2')]=_0x5ffd9c),_0x51463b[_0x508a5b('0x58d')]());});function _0x19f559(_0x47059e){const _0x4b0fc0=_0x3f83e5;switch(_0x47059e){case _0x4b0fc0('0x1800'):return _0x4b0fc0('0x1017');case _0x4b0fc0('0x2030'):return _0x4b0fc0('0x2347');case _0x4b0fc0('0x4df'):return _0x4b0fc0('0xb01');case _0x4b0fc0('0xb18'):return _0x4b0fc0('0x106');case _0x4b0fc0('0x2104'):return _0x4b0fc0('0x1105');case _0x4b0fc0('0xe7c'):return'lime-A700';default:return _0x4b0fc0('0x2584');}}function _0x585fc8(_0x47da88){const _0x51f56b=_0x3f83e5;let _0x3a5e59='';if(_0x47da88[_0x51f56b('0x1a46')])_0x3a5e59=_0x51f56b('0x2104');else{if(_0x47da88[_0x51f56b('0x2863')])_0x3a5e59=_0x51f56b('0xb18');else{if(_0x47da88[_0x51f56b('0x80b')])_0x3a5e59=_0x51f56b('0x4df');else{if(_0x47da88[_0x51f56b('0x2294')])_0x3a5e59=_0x51f56b('0x2030');else{if(_0x47da88[_0x51f56b('0x2346')])_0x3a5e59=_0x51f56b('0x1800');else _0x47da88[_0x51f56b('0x745')]&&(_0x3a5e59='voice');}}}}return _0x19f559(_0x3a5e59);}function _0x5468a7(_0x2a11ea){return function(_0x59db34){_0x51463b[_0x2a11ea]=_0x59db34||{'count':0x0,'rows':[]};};}function _0x31dee6(){const _0x29ba28=_0x3f83e5;return!_0x128d0a['hasRole'](_0x29ba28('0xf45'))&&(_0x4bbf06(),_0x541228()),_0x12ec5c[_0x29ba28('0x21d9')][_0x29ba28('0xbaa')]({'fields':_0x29ba28('0xe1f'),'nolimit':!![]})[_0x29ba28('0x1549')]['then'](function(_0x529822){const _0x36b222=_0x29ba28;_0x51463b[_0x36b222('0x17c0')]=_0x529822||{'count':0x0,'rows':[]},_0x51463b[_0x36b222('0x2e7')]=_0x36f548()['mapValues'](_0x36f548()[_0x36b222('0x2130')](_0x51463b[_0x36b222('0x17c0')]['rows'],'id'),'fullname'),_0x51463b['Tags']=_0x36f548()[_0x36b222('0x2171')](_0x51463b['contact'][_0x36b222('0x806')],'id');})[_0x29ba28('0x11bf')](_0x49209(_0x4f68c2));}function _0x4bbf06(){const _0x38cfe7=_0x3f83e5,_0x68d1d3=_0x36f548()['some'](_0x51463b[_0x38cfe7('0x1c10')][_0x38cfe7('0x19b2')],{'id':_0x51463b['contact'][_0x38cfe7('0x5b9')]});if(!_0x68d1d3)return _0x12ec5c[_0x38cfe7('0x9ba')][_0x38cfe7('0xbaa')]({'id':_0x51463b[_0x38cfe7('0xdde')][_0x38cfe7('0x5b9')],'fields':_0x38cfe7('0x721')})[_0x38cfe7('0x1549')][_0x38cfe7('0x11bf')](function(_0x5712d2){const _0x23d73c=_0x38cfe7,_0x1dffa9=_0x5712d2['toJSON']();_0x1dffa9[_0x23d73c('0x254a')]=![],_0x51463b[_0x23d73c('0x1c10')][_0x23d73c('0x19b2')][_0x23d73c('0x105d')](_0x1dffa9);})['catch'](function(_0x33a2b5){const _0x344e2a=_0x38cfe7;_0x32f4b1['error']({'title':_0x33a2b5['status']?_0x344e2a('0x574')+_0x33a2b5[_0x344e2a('0xff9')]+_0x344e2a('0xb0b')+_0x33a2b5[_0x344e2a('0x212f')]:_0x344e2a('0x20e3'),'msg':_0x33a2b5[_0x344e2a('0x4e8')]?JSON[_0x344e2a('0x3e')](_0x33a2b5[_0x344e2a('0x4e8')][_0x344e2a('0x1b86')]):_0x33a2b5[_0x344e2a('0xaab')]()});});}function _0x541228(){const _0x36f4ee=_0x3f83e5,_0x5b9f84=_0x36f548()[_0x36f4ee('0x2171')](_0x51463b['contact'][_0x36f4ee('0x806')],function(_0x27d0d6){return{'id':_0x27d0d6['id'],'name':_0x27d0d6['name']};});if(!_0x36f548()[_0x36f4ee('0x1fc5')](_0x5b9f84))for(let _0x407fa5=0x0;_0x407fa5<_0x5b9f84[_0x36f4ee('0x1e22')];_0x407fa5++){!_0x36f548()['some'](_0x51463b[_0x36f4ee('0x2763')][_0x36f4ee('0x19b2')],{'id':_0x5b9f84['id']})&&(_0x5b9f84[_0x407fa5][_0x36f4ee('0x254a')]=![],_0x51463b[_0x36f4ee('0x2763')][_0x36f4ee('0x19b2')][_0x36f4ee('0x105d')](_0x5b9f84[_0x407fa5]));}}function _0x1f9bc2(_0x29ca00){const _0x5f34da=_0x3f83e5;if(!_0x29ca00[_0x5f34da('0x107a')])return'('+_0x4dba64[_0x5f34da('0x10c2')](_0x5f34da('0x104b'))+')';const _0x3f705c=_0x36f548()[_0x5f34da('0x2022')]([_0x29ca00[_0x5f34da('0x107a')],_0x29ca00[_0x5f34da('0x815')],_0x29ca00[_0x5f34da('0x24d8')]]);return'('+_0x3f705c[_0x5f34da('0xa04')]('\x20-\x20')+')';}function _0x55ad5f(_0x58af87){const _0x3e3bea=_0x3f83e5;_0x58af87&&_0x58af87[_0x3e3bea('0x27d2')]&&_0x58af87[_0x3e3bea('0x19b2')][_0x3e3bea('0x1e22')]&&(_0x51463b[_0x3e3bea('0x496')]=_0x36f548()[_0x3e3bea('0x20bf')](_0x51463b['journey'],_0x58af87[_0x3e3bea('0x19b2')]),_0x51463b[_0x3e3bea('0x496')]['forEach'](function(_0x1e70dd){const _0xf9cffa=_0x3e3bea;_0x1e70dd[_0xf9cffa('0x27ca')]=_0x1f9bc2(_0x1e70dd);}));}function _0x49209(_0x447e26){const _0x4f69b3=_0x3f83e5,_0xe3561a=[_0x4f69b3('0x2030'),'chat',_0x4f69b3('0x4df'),_0x4f69b3('0xb18'),_0x4f69b3('0x2104')];if(_0x447e26&&_0x447e26['id']){for(let _0x281600=0x0;_0x281600<_0xe3561a[_0x4f69b3('0x1e22')];_0x281600++){_0x12ec5c[_0xe3561a[_0x281600]+_0x4f69b3('0x1da8')][_0x4f69b3('0xbaa')]({'ContactId':_0x447e26['id'],'includeAll':!![]})['$promise'][_0x4f69b3('0x11bf')](_0x55ad5f);}_0x12ec5c[_0x4f69b3('0xdd8')][_0x4f69b3('0xbaa')]({'ContactId':_0x447e26['id'],'includeAll':!![]})[_0x4f69b3('0x1549')][_0x4f69b3('0x11bf')](_0x55ad5f)[_0x4f69b3('0x151d')](function(_0x274c14){const _0x756142=_0x4f69b3;console[_0x756142('0x255')](_0x274c14);});}}function _0x28dfaa(_0x229c39,_0x26a411){const _0x5b4e24=_0x3f83e5;_0x41ae95[_0x5b4e24('0xb9')]({'controller':_0x5b4e24('0x1653'),'controllerAs':'vm','templateUrl':_0x5368d2,'parent':angular['element'](_0x4496d5[_0x5b4e24('0x1d2')]),'targetEvent':_0x229c39,'clickOutsideToClose':!![],'locals':{'hopper':_0x26a411,'hoppers':_0x51463b[_0x5b4e24('0xc8d')]['rows'],'license':null,'setting':null,'crudPermissions':_0x51463b['crudPermissions']}});}function _0x12de93(_0x2d43e5,_0x1ca8e2){const _0x2e17be=_0x3f83e5;_0x41ae95[_0x2e17be('0xb9')]({'controller':_0x2e17be('0x1e24'),'controllerAs':'vm','templateUrl':_0x4f93d4,'parent':angular[_0x2e17be('0x1e73')](_0x4496d5['body']),'targetEvent':_0x2d43e5,'clickOutsideToClose':!![],'locals':{'hopper':_0x1ca8e2,'hoppers':_0x51463b[_0x2e17be('0xc8d')][_0x2e17be('0x19b2')],'license':null,'setting':null,'crudPermissions':_0x51463b[_0x2e17be('0xb25')]}});}function _0xb78c0f(_0x4607a9,_0x3095f4){const _0x50b6d4=_0x3f83e5,_0x421ec7=_0x41ae95['confirm']()['title'](_0x50b6d4('0x1c6'))[_0x50b6d4('0x1d03')](_0x50b6d4('0x2061')+(_0x4607a9[_0x50b6d4('0x1546')]||_0x50b6d4('0x244f'))+_0x50b6d4('0x1c78')+_0x50b6d4('0x1a'))[_0x50b6d4('0xb2e')](_0x50b6d4('0x10e7'))['targetEvent'](_0x3095f4)['ok']('OK')[_0x50b6d4('0x26c9')](_0x50b6d4('0x772'));_0x41ae95[_0x50b6d4('0xb9')](_0x421ec7)[_0x50b6d4('0x11bf')](function(){_0x5837a1(_0x4607a9);},function(){const _0x1d021c=_0x50b6d4;console[_0x1d021c('0xc78')](_0x1d021c('0x772'));});}function _0x5837a1(_0x533ded){const _0x48b390=_0x3f83e5;return _0x12ec5c[_0x48b390('0x1d11')][_0x48b390('0x2088')]({'id':_0x533ded['id']})[_0x48b390('0x1549')][_0x48b390('0x11bf')](function(){const _0x3f01ce=_0x48b390;_0x36f548()[_0x3f01ce('0x14a5')](_0x51463b['hoppers'][_0x3f01ce('0x19b2')],{'id':_0x533ded['id']}),_0x51463b[_0x3f01ce('0xc8d')][_0x3f01ce('0x27d2')]--,!_0x51463b[_0x3f01ce('0xc8d')][_0x3f01ce('0x19b2')][_0x3f01ce('0x1e22')]&&_0x51463b['getHoppers'](),_0x32f4b1['success']({'title':'Hopper\x20deleted!','msg':_0x533ded[_0x3f01ce('0x1546')]?_0x533ded[_0x3f01ce('0x1546')]+_0x3f01ce('0x433'):''});})[_0x48b390('0x151d')](function(_0x2f1aed){const _0x2d3f99=_0x48b390;_0x32f4b1[_0x2d3f99('0x255')]({'title':_0x2f1aed[_0x2d3f99('0xff9')]?'API:'+_0x2f1aed[_0x2d3f99('0xff9')]+_0x2d3f99('0xb0b')+_0x2f1aed[_0x2d3f99('0x212f')]:_0x2d3f99('0x1fd8'),'msg':_0x2f1aed[_0x2d3f99('0x4e8')]?JSON[_0x2d3f99('0x3e')](_0x2f1aed[_0x2d3f99('0x4e8')]):_0x2f1aed[_0x2d3f99('0xaab')]()});});}function _0x283ddb(){const _0x33e8a1=_0x3f83e5;_0x51463b[_0x33e8a1('0x1e70')][_0x33e8a1('0x1393')]=(_0x51463b[_0x33e8a1('0x1e70')][_0x33e8a1('0x1c2')]-0x1)*_0x51463b['queryHopper'][_0x33e8a1('0xd5c')],_0x51463b[_0x33e8a1('0x1e70')]['id']=_0x51463b[_0x33e8a1('0xdde')]['id'],_0x51463b[_0x33e8a1('0x13f')]=_0x12ec5c['cmContact']['getHoppers'](_0x51463b['queryHopper'],_0x5468a7(_0x33e8a1('0xc8d')))[_0x33e8a1('0x1549')];}function _0x55309b(){const _0x27e76b=_0x3f83e5;_0x51463b['queryFinal'][_0x27e76b('0x1393')]=(_0x51463b[_0x27e76b('0x475')][_0x27e76b('0x1c2')]-0x1)*_0x51463b[_0x27e76b('0x475')][_0x27e76b('0xd5c')],_0x51463b[_0x27e76b('0x475')]['id']=_0x51463b['contact']['id'],_0x51463b[_0x27e76b('0x13f')]=_0x12ec5c[_0x27e76b('0x1b8f')]['getHopperFinals'](_0x51463b[_0x27e76b('0x475')],_0x5468a7(_0x27e76b('0x711')))[_0x27e76b('0x1549')];}function _0x2be22c(){const _0x57444d=_0x3f83e5;_0x51463b[_0x57444d('0x2149')][_0x57444d('0x1393')]=(_0x51463b['queryHistory'][_0x57444d('0x1c2')]-0x1)*_0x51463b[_0x57444d('0x2149')]['limit'],_0x51463b['queryHistory']['id']=_0x51463b[_0x57444d('0xdde')]['id'],_0x51463b['promise']=_0x12ec5c[_0x57444d('0x1b8f')][_0x57444d('0xf6f')](_0x51463b[_0x57444d('0x2149')],_0x5468a7(_0x57444d('0x103b')))[_0x57444d('0x1549')];}function _0x4ca44e(){const _0x4d2a50=_0x3f83e5;_0x51463b[_0x4d2a50('0xe0f')]['offset']=(_0x51463b['queryJscriptySession'][_0x4d2a50('0x1c2')]-0x1)*_0x51463b[_0x4d2a50('0xe0f')][_0x4d2a50('0xd5c')],_0x51463b[_0x4d2a50('0xe0f')]['id']=_0x51463b[_0x4d2a50('0xdde')]['id'],_0x51463b[_0x4d2a50('0x13f')]=_0x12ec5c[_0x4d2a50('0x1b8f')]['getJscriptySessions'](_0x51463b[_0x4d2a50('0xe0f')],_0x5468a7(_0x4d2a50('0x1dfe')))[_0x4d2a50('0x1549')];}function _0x1b0752(_0x177af3){const _0x74ca12=_0x3f83e5;if(_0x51463b[_0x74ca12('0xdde')][_0x74ca12('0x1e91')]){const _0x549166=_0x41ae95['confirm']()[_0x74ca12('0x134b')](_0x74ca12('0x1c01')+_0x51463b['contact'][_0x74ca12('0x1e91')])[_0x74ca12('0xad7')]('Warning!\x20You\x20won\x27t\x20select\x20a\x20different\x20list\x20for\x20the\x20contact\x20'+_0x51463b[_0x74ca12('0xdde')][_0x74ca12('0x13a0')]||0x0||0x0)['targetEvent'](_0x177af3)['ok']('Ok')[_0x74ca12('0x26c9')](_0x74ca12('0x784'));return _0x41ae95[_0x74ca12('0xb9')](_0x549166)[_0x74ca12('0x11bf')](_0x51463b[_0x74ca12('0x1579')])['catch'](function(){const _0x3e0156=_0x74ca12;_0x51463b[_0x3e0156('0xdde')][_0x3e0156('0x1e91')]=null;});}}function _0x2b4372(){const _0x3bd442=_0x3f83e5;return _0x12ec5c[_0x3bd442('0xbef')][_0x3bd442('0x1281')]({'id':_0x51463b[_0x3bd442('0xdde')]['ListId']})['$promise'][_0x3bd442('0x11bf')](function(_0x10ded9){const _0x5c9fbd=_0x3bd442;_0x51463b[_0x5c9fbd('0x8a1')]=_0x10ded9||{'rows':[],'count':0x0};})[_0x3bd442('0x151d')](function(_0x3e3df2){console['error'](_0x3e3df2);});}function _0x5e74d9(){const _0x36243c=_0x3f83e5;return _0x12ec5c[_0x36243c('0x1d63')]['get']({'userProfileId':_0x51463b[_0x36243c('0x32a')][_0x36243c('0x781')],'sectionId':0x12e})['$promise'][_0x36243c('0x11bf')](function(_0x29707c){const _0x2fb322=_0x36243c,_0x3f3992=_0x29707c[_0x2fb322('0x19b2')]?_0x29707c[_0x2fb322('0x19b2')][0x0]:null;return _0x128d0a[_0x2fb322('0x1530')](_0x3f3992?_0x3f3992['crudPermissions']:null);})[_0x36243c('0x151d')](function(_0x24be63){const _0x1588d1=_0x36243c;_0x32f4b1[_0x1588d1('0x255')]({'title':_0x24be63[_0x1588d1('0xff9')]?_0x1588d1('0x574')+_0x24be63[_0x1588d1('0xff9')]+_0x1588d1('0xb0b')+_0x24be63['statusText']:_0x1588d1('0x279c'),'msg':_0x24be63[_0x1588d1('0x4e8')]?JSON[_0x1588d1('0x3e')](_0x24be63[_0x1588d1('0x4e8')]):_0x24be63[_0x1588d1('0xaab')]()});});}function _0x334974(_0x5ed21a,_0x240998){const _0x99c217=_0x3f83e5,_0x46002c=_0x36f548()[_0x99c217('0x1ad4')](_0x51463b['companies'][_0x99c217('0x19b2')],{'id':_0x240998});_0x41ae95['show']({'controller':_0x99c217('0x713'),'controllerAs':'vm','templateUrl':_0xbefb03,'parent':angular[_0x99c217('0x1e73')](_0x4496d5[_0x99c217('0x1d2')]),'targetEvent':_0x5ed21a,'clickOutsideToClose':!![],'locals':{'companies':[],'license':null,'setting':null,'crudPermissions':_0x46002c[_0x99c217('0x254a')]===![]?{'readOnly':!![],'canEdit':![],'canDelete':![]}:_0x5e74d9()},'resolve':{'company':[_0x99c217('0x218e'),function(_0x187e24){return _0x187e24['resolve']('cmCompany@get',{'id':_0x240998});}]}});}function _0x3413be(_0x194cbc){const _0x2fb4d6=_0x3f83e5;_0x41ae95[_0x2fb4d6('0xb9')]({'controller':_0x2fb4d6('0xfd8'),'controllerAs':'vm','templateUrl':_0x492638,'parent':angular[_0x2fb4d6('0x1e73')](_0x4496d5[_0x2fb4d6('0x1d2')]),'targetEvent':_0x194cbc,'clickOutsideToClose':!![],'resolve':{'lists':[_0x2fb4d6('0x218e'),'Auth',function(_0x4932e9,_0x32b8fa){const _0x3be998=_0x2fb4d6;return _0x32b8fa[_0x3be998('0x4ee')]('admin')?_0x4932e9['resolve']('cmList@get',{'fields':_0x3be998('0x721')}):_0x4932e9[_0x3be998('0xa28')](_0x3be998('0xb0d'),{'id':_0x51463b[_0x3be998('0x32a')][_0x3be998('0x781')],'section':_0x3be998('0x2244'),'fields':_0x3be998('0x721')});}]},'locals':{'contacts':_0x552ad7[_0x2fb4d6('0x19b2')],'contact':_0x4f68c2}});}function _0x5483ed(){const _0x3aff88=_0x3f83e5;_0x12ec5c[_0x3aff88('0x1b8f')]['update']({'id':_0x51463b[_0x3aff88('0xdde')]['id']},_0x51463b[_0x3aff88('0xdde')])[_0x3aff88('0x1549')][_0x3aff88('0x11bf')](function(){const _0x4ec8e9=_0x3aff88;_0x32f4b1[_0x4ec8e9('0x2693')]({'title':_0x4ec8e9('0x9c0'),'msg':_0x51463b['contact'][_0x4ec8e9('0x1909')]?_0x51463b[_0x4ec8e9('0xdde')][_0x4ec8e9('0x1909')]+_0x4ec8e9('0xd7'):''});})[_0x3aff88('0x11bf')](function(){const _0x22234b=_0x3aff88;return _0x12ec5c[_0x22234b('0x1b8f')][_0x22234b('0x12c4')]({'id':_0x51463b['contact']['id'],'ids':_0x51463b['Tags']})[_0x22234b('0x1549')];})['catch'](function(_0x15da5c){const _0x59bfb7=_0x3aff88;_0x32f4b1[_0x59bfb7('0x255')]({'title':_0x15da5c[_0x59bfb7('0xff9')]?_0x59bfb7('0x574')+_0x15da5c[_0x59bfb7('0xff9')]+_0x59bfb7('0xb0b')+_0x15da5c[_0x59bfb7('0x212f')]:_0x59bfb7('0x3b0'),'msg':_0x15da5c['data']?JSON[_0x59bfb7('0x3e')](_0x15da5c[_0x59bfb7('0x4e8')]):_0x15da5c[_0x59bfb7('0xaab')]()});});}function _0xda8ad(_0x293ca2){return _0x293ca2===null?undefined:new Date(_0x293ca2);}function _0x51c9b3(){const _0x3cf9aa=_0x3f83e5;_0x314881['go'](_0x3cf9aa('0xa11'),{},{'reload':!![],'notify':!![]});}}const _0xab4aa2=_0x355e37;_0x2b0e37[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x5d8'),_0x21d0f5('0x1ca2'),_0x21d0f5('0x1fd'),'$q',_0x21d0f5('0x17f5'),_0x21d0f5('0x2410'),_0x21d0f5('0x1c10'),_0x21d0f5('0x142d'),_0x21d0f5('0x12a5'),'socket',_0x21d0f5('0x1b80'),'file','fields',_0x21d0f5('0x17ff')];function _0x2b0e37(_0x3f3054,_0x3de14a,_0x4b1123,_0x28e6ae,_0x54b444,_0x67bd15,_0x33852d,_0x1a761e,_0x4e300e,_0x30f01b,_0x2fd407,_0x1f13a0,_0x445e55,_0x1a9b34){const _0x236e3d=_0x21d0f5,_0x2dfbdb=this;_0x2dfbdb[_0x236e3d('0x2172')]=![],_0x2dfbdb[_0x236e3d('0x21eb')]=!![],_0x2dfbdb[_0x236e3d('0x17ff')]=_0x1a9b34,_0x2dfbdb[_0x236e3d('0x71d')]=0x0,_0x2dfbdb['result']={'finish':![],'rows':0x0,'affectedRows':0x0,'failedRows':0x0,'duplicatedRows':0x0,'errors':[]},_0x2dfbdb['contactFields']=[{'key':_0x236e3d('0x13a0'),'required':!![]},{'key':_0x236e3d('0xcf3'),'required':![]},{'key':_0x236e3d('0x1546'),'required':!![]},{'key':_0x236e3d('0x249f'),'required':![]},{'key':_0x236e3d('0x15d3'),'required':![]},{'key':'dateOfBirth','required':![]},{'key':_0x236e3d('0x2553'),'required':![]},{'key':_0x236e3d('0x104a'),'required':![]},{'key':_0x236e3d('0x1059'),'required':![]},{'key':_0x236e3d('0x1d92'),'required':![]},{'key':'fax','required':![]}],_0x2dfbdb['motionBullFields']=[{'key':_0x236e3d('0x2342'),'required':![]},{'key':'scheduledat','required':![]},{'key':_0x236e3d('0x2804'),'required':![]}],_0x2dfbdb[_0x236e3d('0x1ceb')]={},_0x2dfbdb[_0x236e3d('0x23f6')]=[],_0x2dfbdb['lists']=_0x67bd15||{'rows':[],'count':0x0},_0x2dfbdb[_0x236e3d('0x1c10')]=_0x33852d||{'rows':[],'count':0x0},_0x2dfbdb[_0x236e3d('0x8a1')]={'rows':[],'count':0x0},_0x2dfbdb[_0x236e3d('0x1067')]=_0x445e55||[],_0x2dfbdb['closeDialog']=_0x2d2613,_0x2dfbdb[_0x236e3d('0x19d9')]=_0x349df8,_0x2dfbdb[_0x236e3d('0x18e5')]=_0x29dd02,_0x2dfbdb[_0x236e3d('0x2053')]=_0x30b1e6,_0x2dfbdb[_0x236e3d('0x8b0')]=_0x46edb2,_0x2dfbdb[_0x236e3d('0x19b8')]=_0x19960a;const _0x5dbc34=_0x57d4d1()()[_0x236e3d('0x18ba')]();_0x30f01b['on'](_0x236e3d('0x231f')+_0x5dbc34,_0x3f6557);function _0x349df8(){const _0x5a6b2e=_0x236e3d;return _0x4e300e[_0x5a6b2e('0xbef')]['getCustomFields']({'id':_0x2dfbdb[_0x5a6b2e('0x1e91')]})['$promise'][_0x5a6b2e('0x11bf')](function(_0x391b45){_0x2dfbdb['customFields']=_0x391b45;})[_0x5a6b2e('0x151d')](function(_0x3ae543){const _0x5a5132=_0x5a6b2e;console[_0x5a5132('0x255')](_0x3ae543);});}function _0x29dd02(){const _0x3f6157=_0x236e3d;_0x2dfbdb[_0x3f6157('0x2172')]=_0x57d4d1()(),_0x4e300e[_0x3f6157('0x1b8f')][_0x3f6157('0x1f03')]({'id':_0x1f13a0['filename'],'binding':_0x2dfbdb[_0x3f6157('0x1ceb')],'ListId':_0x2dfbdb[_0x3f6157('0x1e91')],'CompanyId':_0x2dfbdb[_0x3f6157('0x5b9')],'duplicates':_0x2dfbdb['duplicates'],'socket_timestamp':_0x5dbc34})[_0x3f6157('0x1549')]['then'](function(_0x317b7f){const _0x5cfa57=_0x3f6157;_0x2dfbdb[_0x5cfa57('0x21eb')]=![],_0x317b7f&&_0x317b7f[_0x5cfa57('0x71d')]&&(_0x2dfbdb[_0x5cfa57('0x71d')]=_0x317b7f[_0x5cfa57('0x71d')]);})[_0x3f6157('0x151d')](function(){const _0x3ff582=_0x3f6157;_0x2dfbdb[_0x3ff582('0x2172')]=![],_0x1a761e[_0x3ff582('0x255')]({'title':_0x3ff582('0x4f0'),'msg':_0x3ff582('0x15bb')});});}function _0x3f6557(_0x259b2b){_0x54b444(function(){const _0x4aee26=a0_0xaf0c;_0x2dfbdb[_0x4aee26('0x252e')][_0x4aee26('0x19b2')]=_0x259b2b[_0x4aee26('0x19b2')];if(_0x259b2b['errors'])for(let _0x356823=0x0;_0x356823<_0x259b2b[_0x4aee26('0x120f')]['length'];_0x356823++){_0x2dfbdb[_0x4aee26('0x252e')][_0x4aee26('0x120f')]['push'](_0x259b2b[_0x4aee26('0x120f')][_0x356823]);}if(_0x259b2b[_0x4aee26('0x140f')]){_0x2dfbdb[_0x4aee26('0x252e')][_0x4aee26('0x140f')]=!![],_0x2dfbdb[_0x4aee26('0x252e')][_0x4aee26('0x1152')]=_0x259b2b['affectedRows'],_0x2dfbdb['result'][_0x4aee26('0x1d81')]=_0x2dfbdb[_0x4aee26('0x252e')][_0x4aee26('0x120f')][_0x4aee26('0x1e22')];const _0x5a929b=_0x2dfbdb[_0x4aee26('0x252e')][_0x4aee26('0x19b2')]-_0x2dfbdb[_0x4aee26('0x252e')][_0x4aee26('0x1152')]-_0x2dfbdb[_0x4aee26('0x252e')][_0x4aee26('0x120f')]['length'];_0x5a929b&&_0x5a929b>0x0&&(_0x2dfbdb['duplicates'][_0x4aee26('0x1e22')]?_0x2dfbdb[_0x4aee26('0x252e')]['duplicatedRows']=_0x5a929b:_0x2dfbdb['result'][_0x4aee26('0x1d81')]+=_0x5a929b),_0x2dfbdb[_0x4aee26('0x252e')][_0x4aee26('0xacb')]=_0x57d4d1()()[_0x4aee26('0xe2b')](_0x2dfbdb[_0x4aee26('0x2172')],'seconds');}});}function _0x30b1e6(){const _0x219aca=_0x236e3d,_0x5b0c75=_0x445e55;return _0x5b0c75['push'](_0x219aca('0x1bb')),_0x5b0c75;}function _0x46edb2(){const _0xdd680a=_0x236e3d,_0xeb67ec=[];for(let _0x5b2b61=0x0;_0x5b2b61<_0x2dfbdb[_0xdd680a('0x252e')][_0xdd680a('0x120f')][_0xdd680a('0x1e22')];_0x5b2b61+=0x1){const _0x241d22=_0x2dfbdb[_0xdd680a('0x252e')][_0xdd680a('0x120f')][_0x5b2b61][_0xdd680a('0x206f')];_0x241d22['contact_import_error']=_0x2dfbdb[_0xdd680a('0x252e')]['errors'][_0x5b2b61]['message'],_0xeb67ec['push'](_0x241d22);}return _0xeb67ec;}function _0x19960a(){const _0xb99aeb=_0x236e3d;_0x2dfbdb['stopping']=!![];if(_0x2dfbdb[_0xb99aeb('0x71d')])return _0x4e300e[_0xb99aeb('0x196d')]['killProcess']({'pid':_0x2dfbdb['pid']})['$promise']['then'](function(){const _0x295305=_0xb99aeb;_0x1a761e[_0x295305('0x2693')]({'title':_0x295305('0x588'),'msg':'Import\x20has\x20been\x20stopped!'});})[_0xb99aeb('0x151d')](function(){const _0x14877d=_0xb99aeb;_0x1a761e[_0x14877d('0x255')]({'title':_0x14877d('0x9ae'),'msg':_0x14877d('0x1eae')});});}_0x2fd407['$on'](_0x236e3d('0x4f7'),function(){const _0x1e70d3=_0x236e3d;_0x30f01b[_0x1e70d3('0x1b2e')](_0x1e70d3('0x231f')+_0x5dbc34);});function _0x2d2613(){const _0x320746=_0x236e3d;_0x30f01b['removeAllListeners'](_0x320746('0x231f')+_0x5dbc34),_0x3de14a['hide']();}}const _0x38bb5a=_0x2b0e37;_0x4166ac[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b80'),_0x21d0f5('0x142d'),_0x21d0f5('0xdde'),_0x21d0f5('0x206c'),_0x21d0f5('0x2410'),_0x21d0f5('0x12a5')];function _0x4166ac(_0x141d2f,_0x3ec5cf,_0x41d73e,_0x3aeffa,_0x1f303b,_0x3405dc,_0x2d5314){const _0x25533a=_0x21d0f5,_0x5d5880=this;_0x5d5880[_0x25533a('0x120f')]=[],_0x5d5880['title']=_0x25533a('0xa31'),_0x5d5880[_0x25533a('0xdde')]=angular[_0x25533a('0x6fb')](_0x3aeffa),_0x5d5880['lists']=_0x3405dc||[],_0x5d5880[_0x25533a('0x122c')]=function(){const _0x1fd1ac=_0x25533a;_0x5d5880[_0x1fd1ac('0x222a')]?_0x2d5314[_0x1fd1ac('0x1b8f')][_0x1fd1ac('0xbaa')]({'fields':_0x1fd1ac('0x94'),'filter':_0x5d5880[_0x1fd1ac('0x222a')],'ListId':_0x3aeffa['ListId']})['$promise'][_0x1fd1ac('0x11bf')](function(_0x29dc8a){const _0x32adff=_0x1fd1ac;_0x5d5880[_0x32adff('0x206c')]=_0x29dc8a[_0x32adff('0x19b2')];})['catch'](function(_0x51a68a){const _0x50f0b6=_0x1fd1ac;console[_0x50f0b6('0x255')](_0x51a68a);}):_0x5d5880[_0x1fd1ac('0x206c')]=[];},_0x5d5880[_0x25533a('0x182f')]=_0x235dfe,_0x5d5880['closeDialog']=_0x183e0e;function _0x235dfe(_0x47ef14,_0x1678c0,_0x1fa045){const _0x28888b=_0x25533a,_0x2dde07=_0x141d2f[_0x28888b('0x132b')]({'skipHide':!![]})[_0x28888b('0x134b')](_0x28888b('0x12cf'))[_0x28888b('0xad7')](_0x28888b('0xc50')+_0x1fa045['id']+_0x28888b('0x7ea')+_0x1678c0['id']+'.')[_0x28888b('0x1e25')](_0x47ef14)['ok']('Ok')[_0x28888b('0x26c9')]('Cancel');_0x141d2f[_0x28888b('0xb9')](_0x2dde07)['then'](function(){const _0x3f4072=_0x28888b;return _0x2d5314[_0x3f4072('0x1b8f')]['merge']({'to':_0x1fa045['id'],'from':_0x1678c0['id']})[_0x3f4072('0x1549')];})[_0x28888b('0x11bf')](function(_0x5457c7){const _0x509542=_0x28888b;_0x141d2f['hide']({'new':_0x5457c7,'to':_0x1fa045,'from':_0x1678c0}),_0x36f548()[_0x509542('0x14a5')](_0x1f303b,{'id':_0x1fa045['id']}),_0x36f548()[_0x509542('0x14a5')](_0x1f303b,{'id':_0x1678c0['id']}),_0x1f303b[_0x509542('0x880')](_0x5457c7);})['then'](function(){const _0x569519=_0x28888b;_0x41d73e[_0x569519('0x2693')]({'title':_0x569519('0x171f')});})[_0x28888b('0x151d')](function(_0x343d2f){const _0x5557eb=_0x28888b;_0x343d2f&&_0x343d2f[_0x5557eb('0xff9')]&&_0x41d73e[_0x5557eb('0x255')]({'title':_0x343d2f[_0x5557eb('0xff9')]?_0x5557eb('0x574')+_0x343d2f[_0x5557eb('0xff9')]+_0x5557eb('0xb0b')+_0x343d2f[_0x5557eb('0x212f')]:_0x5557eb('0x1f0d'),'msg':_0x343d2f[_0x5557eb('0x4e8')]?JSON[_0x5557eb('0x3e')](_0x343d2f[_0x5557eb('0x4e8')]):_0x343d2f[_0x5557eb('0xaab')]()});});}function _0x183e0e(){const _0x368ddf=_0x25533a;_0x141d2f[_0x368ddf('0x237e')]();}}const _0x5510e0=_0x4166ac,_0x4ea5db=_0x351988['p']+_0x21d0f5('0x423'),_0x46237b=_0x351988['p']+'src/js/modules/main/apps/contactmanager/views/contacts/edit/view.html/view.html';_0x3ce983[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x13d6')];function _0x3ce983(_0x47541d){const _0x4d9c00=_0x21d0f5;_0x47541d['state']('app.contactmanager.contacts',{'url':'/contacts?ListId&CompanyId','views':{'content@app':{'templateUrl':_0x4ea5db,'controller':_0x4d9c00('0x22c4')}},'resolve':{'contacts':[_0x4d9c00('0x218e'),_0x4d9c00('0x1150'),'$stateParams',function(_0xc673dd,_0x5b4af4,_0x749e51){const _0x4565d7=_0x4d9c00;return _0x5b4af4[_0x4565d7('0x4ee')](_0x4565d7('0xf45'))?_0xc673dd[_0x4565d7('0xa28')]('cmContact@get',_0x36f548()[_0x4565d7('0x47b')]({'includeAll':!![],'sort':_0x4565d7('0x1c74'),'limit':0xa,'offset':0x0},_0x749e51)):_0xc673dd[_0x4565d7('0xa28')](_0x4565d7('0xb0d'),_0x36f548()['merge']({'id':_0x5b4af4[_0x4565d7('0x2428')]()[_0x4565d7('0x781')],'section':'Contacts','includeAll':!![],'sort':_0x4565d7('0x1c74'),'limit':0xa,'offset':0x0},_0x749e51));}],'lists':[_0x4d9c00('0x218e'),_0x4d9c00('0x1150'),function(_0x66634d,_0xeb61f6){const _0x3b9b0c=_0x4d9c00;return _0xeb61f6['hasRole']('admin')?_0x66634d[_0x3b9b0c('0xa28')](_0x3b9b0c('0x1f69'),{'fields':_0x3b9b0c('0x721'),'sort':_0x3b9b0c('0x1909'),'nolimit':!![]}):_0x66634d['resolve'](_0x3b9b0c('0xb0d'),{'id':_0xeb61f6[_0x3b9b0c('0x2428')]()[_0x3b9b0c('0x781')],'section':_0x3b9b0c('0x2244'),'fields':_0x3b9b0c('0x721'),'sort':'-updatedAt','nolimit':!![]});}],'listsMap':[_0x4d9c00('0x2410'),function(_0x4f7abf){const _0xc48125=_0x4d9c00,_0x45f0a7={};for(let _0x394d71=0x0;_0x394d71<_0x4f7abf[_0xc48125('0x19b2')][_0xc48125('0x1e22')];_0x394d71++){_0x45f0a7[_0x4f7abf[_0xc48125('0x19b2')][_0x394d71]['id']]=_0x4f7abf[_0xc48125('0x19b2')][_0x394d71][_0xc48125('0x1909')];}return _0x45f0a7;}],'companies':[_0x4d9c00('0x218e'),_0x4d9c00('0x1150'),function(_0x445741,_0xe4b9ed){const _0x322fac=_0x4d9c00;return _0xe4b9ed[_0x322fac('0x4ee')](_0x322fac('0xf45'))?_0x445741[_0x322fac('0xa28')](_0x322fac('0x20e9'),{'fields':_0x322fac('0x721'),'sort':'name','nolimit':!![]}):_0x445741[_0x322fac('0xa28')](_0x322fac('0xb0d'),{'id':_0xe4b9ed[_0x322fac('0x2428')]()[_0x322fac('0x781')],'section':_0x322fac('0x1638'),'fields':_0x322fac('0x721'),'sort':_0x322fac('0x1909'),'nolimit':!![]});}],'companiesMap':[_0x4d9c00('0x1c10'),function(_0x3fd0cc){const _0x24aef3=_0x4d9c00,_0x3edad7={};for(let _0x27a777=0x0;_0x27a777<_0x3fd0cc[_0x24aef3('0x19b2')][_0x24aef3('0x1e22')];_0x27a777++){_0x3edad7[_0x3fd0cc[_0x24aef3('0x19b2')][_0x27a777]['id']]=_0x3fd0cc[_0x24aef3('0x19b2')][_0x27a777][_0x24aef3('0x1909')];}return _0x3edad7;}],'tags':['apiResolver',_0x4d9c00('0x1150'),function(_0x41ceb4,_0xc2d319){const _0x523f2d=_0x4d9c00;return _0xc2d319['hasRole'](_0x523f2d('0xf45'))?_0x41ceb4['resolve'](_0x523f2d('0x11c1'),{'fields':_0x523f2d('0x721'),'sort':_0x523f2d('0x1909'),'nolimit':!![]}):_0x41ceb4[_0x523f2d('0xa28')](_0x523f2d('0xb0d'),{'id':_0xc2d319[_0x523f2d('0x2428')]()[_0x523f2d('0x781')],'section':_0x523f2d('0x806'),'fields':_0x523f2d('0x721'),'sort':'name','nolimit':!![]});}],'userProfile':[_0x4d9c00('0x218e'),'Auth',function(_0x55a042,_0x309091){const _0x35927c=_0x4d9c00;return _0x55a042[_0x35927c('0xa28')](_0x35927c('0x428'),{'fields':_0x35927c('0xd30'),'id':_0x309091[_0x35927c('0x2428')]()[_0x35927c('0x781')]});}],'userProfileSection':['apiResolver','Auth',function(_0x233a05,_0x3b4d21){const _0x1b7999=_0x4d9c00;return _0x233a05[_0x1b7999('0xa28')](_0x1b7999('0x2762'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x3b4d21[_0x1b7999('0x2428')]()[_0x1b7999('0x781')],'sectionId':0x12f});}]},'authenticate':!![],'permissionId':0x12f,'bodyClass':'contactmanager'})[_0x4d9c00('0x2124')](_0x4d9c00('0x21ee'),{'url':_0x4d9c00('0x142b'),'params':{'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x46237b,'controller':_0x4d9c00('0x27a9')}},'resolve':{'contact':[_0x4d9c00('0x218e'),_0x4d9c00('0x1573'),function(_0x25457d,_0x4a3c34){const _0x1fb395=_0x4d9c00;return _0x25457d[_0x1fb395('0xa28')]('cmContact@get',{'id':_0x4a3c34['id']})[_0x1fb395('0x11bf')](function(_0x2e5076){const _0xda5ac7=_0x1fb395;return _0x2e5076['dateOfBirth']&&(_0x2e5076['dateOfBirth']=new Date(_0x2e5076[_0xda5ac7('0xba4')])),_0x2e5076;})[_0x1fb395('0x151d')](function(_0x8b1c41){console['error'](_0x8b1c41);});}],'hoppers':[_0x4d9c00('0x218e'),_0x4d9c00('0x1573'),function(_0x513be4,_0x1e03a8){const _0x3cd014=_0x4d9c00;return _0x513be4[_0x3cd014('0xa28')](_0x3cd014('0xdc3'),{'id':_0x1e03a8['id'],'fields':'id,phone,scheduledat,priority,recallme,VoiceQueueId,CampaignId,UserId','sort':_0x3cd014('0x1c74'),'limit':0xa,'offset':0x0});}],'finals':[_0x4d9c00('0x218e'),_0x4d9c00('0x1573'),function(_0x47e47a,_0x40dc8c){const _0x250ee3=_0x4d9c00;return _0x47e47a[_0x250ee3('0xa28')]('cmContact@getHopperFinals',{'id':_0x40dc8c['id'],'fields':_0x250ee3('0x201b'),'sort':'-updatedAt','limit':0xa,'offset':0x0});}],'histories':[_0x4d9c00('0x218e'),_0x4d9c00('0x1573'),function(_0x47419c,_0x2ebcdd){const _0x5a2183=_0x4d9c00;return _0x47419c['resolve'](_0x5a2183('0xab1'),{'id':_0x2ebcdd['id'],'fields':'id,uniqueid,calleridnum,statedesc,scheduledat,starttime,endtime','sort':'-updatedAt','limit':0xa,'offset':0x0});}],'jscriptySessions':[_0x4d9c00('0x218e'),'$stateParams',function(_0x13a0f0,_0x7f8ec){const _0x42db56=_0x4d9c00;return _0x13a0f0[_0x42db56('0xa28')](_0x42db56('0x2219'),{'id':_0x7f8ec['id'],'fields':_0x42db56('0x1448'),'sort':_0x42db56('0x178'),'limit':0xa,'offset':0x0});}],'companies':['apiResolver','Auth',function(_0x670878,_0x250710){const _0x3ddf8b=_0x4d9c00;return _0x250710[_0x3ddf8b('0x4ee')](_0x3ddf8b('0xf45'))?_0x670878[_0x3ddf8b('0xa28')](_0x3ddf8b('0x20e9')):_0x670878[_0x3ddf8b('0xa28')](_0x3ddf8b('0xb0d'),{'id':_0x250710['getCurrentUser']()[_0x3ddf8b('0x781')],'section':_0x3ddf8b('0x1638')});}],'lists':[_0x4d9c00('0x218e'),_0x4d9c00('0x1150'),function(_0x50ac7d,_0x41d5d0){const _0x54cb56=_0x4d9c00;return _0x41d5d0['hasRole']('admin')?_0x50ac7d[_0x54cb56('0xa28')](_0x54cb56('0x1f69'),{'fields':_0x54cb56('0x721'),'sort':_0x54cb56('0x1c74'),'nolimit':!![]}):_0x50ac7d[_0x54cb56('0xa28')](_0x54cb56('0xb0d'),{'id':_0x41d5d0[_0x54cb56('0x2428')]()[_0x54cb56('0x781')],'section':'Lists','fields':_0x54cb56('0x721'),'sort':_0x54cb56('0x1c74'),'nolimit':!![]});}],'customFields':['apiResolver',_0x4d9c00('0xdde'),function(_0x5737d3,_0x169d66){const _0xb6fd9a=_0x4d9c00;return _0x169d66[_0xb6fd9a('0x1e91')]?_0x5737d3[_0xb6fd9a('0xa28')]('cmList@getCustomFields',{'id':_0x169d66[_0xb6fd9a('0x1e91')]}):null;}],'tags':[_0x4d9c00('0x218e'),_0x4d9c00('0x1150'),function(_0x1b55f6,_0x571cc1){const _0x5c5cc9=_0x4d9c00;return _0x571cc1[_0x5c5cc9('0x4ee')]('admin')?_0x1b55f6[_0x5c5cc9('0xa28')](_0x5c5cc9('0x11c1')):_0x1b55f6[_0x5c5cc9('0xa28')](_0x5c5cc9('0xb0d'),{'id':_0x571cc1[_0x5c5cc9('0x2428')]()['userProfileId'],'section':'Tags'});}],'userProfileSection':['apiResolver',_0x4d9c00('0x1150'),function(_0x2e48f3,_0x53d9b9){const _0x45d6bb=_0x4d9c00;return _0x2e48f3[_0x45d6bb('0xa28')](_0x45d6bb('0x2762'),{'fields':_0x45d6bb('0x36d'),'userProfileId':_0x53d9b9[_0x45d6bb('0x2428')]()[_0x45d6bb('0x781')],'sectionId':0x12f});}]},'authenticate':!![],'permissionId':0x12f,'bodyClass':'contactmanager'});}angular['module'](_0x21d0f5('0xa11'),[])[_0x21d0f5('0x53a')](_0x3ce983)['controller'](_0x21d0f5('0x1356'),_0x52d391)[_0x21d0f5('0x23eb')]('CreateOrEditContactDialogController',_0x242b94)[_0x21d0f5('0x23eb')](_0x21d0f5('0xfd8'),_0x495361)[_0x21d0f5('0x23eb')](_0x21d0f5('0x1ec5'),_0x8cd4d6)['controller'](_0x21d0f5('0x2158'),_0xab4aa2)[_0x21d0f5('0x23eb')]('ImportContactsDialogController',_0x38bb5a)['controller'](_0x21d0f5('0x260f'),_0x5510e0);const _0x43e9e6=_0x351988['p']+_0x21d0f5('0x4d4');_0x172259['$inject']=[_0x21d0f5('0x1b80'),_0x21d0f5('0x2143'),_0x21d0f5('0xcbc'),_0x21d0f5('0x18fe'),'$mdDialog',_0x21d0f5('0x1b30'),_0x21d0f5('0x17f5'),_0x21d0f5('0xb6b'),_0x21d0f5('0x1c10'),_0x21d0f5('0x25bc'),_0x21d0f5('0x1d63'),_0x21d0f5('0x12a5'),'msUtils','toasty',_0x21d0f5('0x1150'),_0x21d0f5('0x17ff'),'setting'];function _0x172259(_0x19a08e,_0x3b5b36,_0x39c622,_0x5a15af,_0x109b51,_0x47306a,_0x309bbc,_0x42b277,_0x23d059,_0x264add,_0x460314,_0x477424,_0x2c94c9,_0x1a2a5e,_0x64274,_0x3b454a,_0x43a19c){const _0x16a29b=_0x21d0f5,_0x3eb1b2=this;_0x3eb1b2[_0x16a29b('0x17ff')]=_0x3b454a,_0x3eb1b2['setting']=_0x43a19c,_0x3eb1b2[_0x16a29b('0x32a')]=_0x64274[_0x16a29b('0x2428')](),_0x3eb1b2['companies']=_0x23d059||{'count':0x0,'rows':[]},_0x3eb1b2[_0x16a29b('0x25bc')]=_0x264add,_0x3eb1b2['userProfileSection']=_0x460314&&_0x460314[_0x16a29b('0x27d2')]==0x1?_0x460314[_0x16a29b('0x19b2')][0x0]:null,_0x3eb1b2[_0x16a29b('0xb25')]=_0x64274['parseCrudPermissions'](_0x3eb1b2[_0x16a29b('0x1d63')]?_0x3eb1b2[_0x16a29b('0x1d63')]['crudPermissions']:null),_0x3eb1b2[_0x16a29b('0x13e8')]='companies',_0x3eb1b2[_0x16a29b('0x724')]='',_0x3eb1b2['listOrderAsc']=null,_0x3eb1b2[_0x16a29b('0x1742')]=[],_0x3eb1b2[_0x16a29b('0x1f2a')]={'fields':_0x16a29b('0x979'),'sort':_0x16a29b('0x1c74'),'limit':0xa,'page':0x1},_0x3eb1b2[_0x16a29b('0x757')]=_0xe2bf8a,_0x3eb1b2[_0x16a29b('0x1a95')]=_0x309293,_0x3eb1b2[_0x16a29b('0x549')]=_0x546f70,_0x3eb1b2[_0x16a29b('0x2693')]=_0x38ddc8,_0x3eb1b2[_0x16a29b('0x763')]=_0x2ea544,_0x3eb1b2[_0x16a29b('0x189b')]=_0xd62ce2,_0x3eb1b2[_0x16a29b('0x85e')]=_0x2c4d1c,_0x3eb1b2[_0x16a29b('0x1424')]=_0x685101,_0x3eb1b2['deleteSelectedCompanies']=_0x524b39,_0x3eb1b2[_0x16a29b('0x1095')]=_0xbdf260,_0x3eb1b2[_0x16a29b('0xf72')]=_0x2602df;function _0xe2bf8a(_0x1f8a67){const _0x3c9189=_0x16a29b;_0x39c622['go'](_0x3c9189('0xa16'),{'id':_0x1f8a67['id'],'company':_0x1f8a67,'crudPermissions':_0x3eb1b2[_0x3c9189('0xb25')]});}function _0x309293(_0x397dd5){const _0x3a2b1b=_0x16a29b;if(_0x64274[_0x3a2b1b('0x4ee')](_0x3a2b1b('0xf45')))_0x39c622['go'](_0x3a2b1b('0xa11'),{'CompanyId':_0x397dd5['id']});else return _0x477424['userProfileSection'][_0x3a2b1b('0xbaa')]({'userProfileId':_0x64274[_0x3a2b1b('0x2428')]()['userProfileId'],'sectionId':0x12f})['$promise']['then'](function(_0x2f309b){const _0x5cf783=_0x3a2b1b,_0x30dfdf=_0x2f309b&&_0x2f309b[_0x5cf783('0x19b2')]?_0x2f309b[_0x5cf783('0x19b2')][0x0]:null;_0x30dfdf&&_0x30dfdf[_0x5cf783('0x1f0a')]?_0x39c622['go'](_0x5cf783('0xa11'),{'CompanyId':_0x397dd5['id']}):_0x1a2a5e[_0x5cf783('0x870')]({'title':_0x42b277[_0x5cf783('0x10c2')](_0x5cf783('0xbff')),'msg':_0x42b277[_0x5cf783('0x10c2')](_0x5cf783('0x10d1'))});})['catch'](function(_0x518ef9){const _0x2f7a5d=_0x3a2b1b;_0x1a2a5e['error']({'title':_0x518ef9[_0x2f7a5d('0xff9')]?'API:'+_0x518ef9[_0x2f7a5d('0xff9')]+_0x2f7a5d('0xb0b')+_0x518ef9[_0x2f7a5d('0x212f')]:_0x2f7a5d('0x1011'),'msg':_0x518ef9[_0x2f7a5d('0xff9')]?JSON['stringify'](_0x518ef9[_0x2f7a5d('0x4e8')]):_0x518ef9[_0x2f7a5d('0xaab')]()});});}function _0x546f70(_0x254630,_0x46db9a){const _0x5c5f2f=_0x16a29b,_0xd7cf21=_0x109b51['confirm']()[_0x5c5f2f('0x134b')](_0x5c5f2f('0x1796')+_0x36f548()[_0x5c5f2f('0x13cf')](_0x5c5f2f('0xb1e'))+'?')[_0x5c5f2f('0x1d03')](_0x5c5f2f('0x2061')+(_0x254630[_0x5c5f2f('0x1909')]||_0x5c5f2f('0xb1e'))+_0x5c5f2f('0x1c78')+'\x20will\x20be\x20deleted.')[_0x5c5f2f('0xb2e')](_0x5c5f2f('0x265d'))[_0x5c5f2f('0x1e25')](_0x46db9a)['ok']('OK')[_0x5c5f2f('0x26c9')](_0x5c5f2f('0x772'));_0x109b51[_0x5c5f2f('0xb9')](_0xd7cf21)[_0x5c5f2f('0x11bf')](function(){_0x2c4d1c(_0x254630);},function(){const _0x2833d3=_0x5c5f2f;console[_0x2833d3('0xc78')](_0x2833d3('0x772'));});}let _0x3a7678=!![],_0xcb8f57=0x1;_0x19a08e['$watch'](_0x16a29b('0x842'),function(_0x5c3da6,_0x273872){const _0x3008ec=_0x16a29b;_0x3a7678?_0x309bbc(function(){_0x3a7678=![];}):(!_0x273872&&(_0xcb8f57=_0x3eb1b2['query'][_0x3008ec('0x1c2')]),_0x5c3da6!==_0x273872&&(_0x3eb1b2[_0x3008ec('0x1f2a')]['page']=0x1),!_0x5c3da6&&(_0x3eb1b2['query']['page']=_0xcb8f57),_0x3eb1b2[_0x3008ec('0x763')]());});function _0x38ddc8(_0x10f7f3){_0x3eb1b2['companies']=_0x10f7f3||{'count':0x0,'rows':[]};}function _0x2ea544(){const _0x52cf4d=_0x16a29b;_0x3eb1b2[_0x52cf4d('0x1f2a')]['offset']=(_0x3eb1b2['query'][_0x52cf4d('0x1c2')]-0x1)*_0x3eb1b2['query']['limit'],_0x64274[_0x52cf4d('0x4ee')](_0x52cf4d('0xf45'))?_0x3eb1b2[_0x52cf4d('0x13f')]=_0x477424['cmCompany'][_0x52cf4d('0xbaa')](_0x3eb1b2[_0x52cf4d('0x1f2a')],_0x38ddc8)[_0x52cf4d('0x1549')]:(_0x3eb1b2[_0x52cf4d('0x1f2a')]['id']=_0x3eb1b2['userProfile']['id'],_0x3eb1b2[_0x52cf4d('0x1f2a')][_0x52cf4d('0xe6')]=_0x52cf4d('0x1638'),_0x3eb1b2[_0x52cf4d('0x13f')]=_0x477424[_0x52cf4d('0x25bc')][_0x52cf4d('0x228e')](_0x3eb1b2[_0x52cf4d('0x1f2a')],_0x38ddc8)[_0x52cf4d('0x1549')]);}function _0xd62ce2(_0x5e9899,_0x5abe58){const _0x5d56ea=_0x16a29b;_0x109b51[_0x5d56ea('0xb9')]({'controller':_0x5d56ea('0x713'),'controllerAs':'vm','templateUrl':_0x43e9e6,'parent':angular[_0x5d56ea('0x1e73')](_0x47306a[_0x5d56ea('0x1d2')]),'targetEvent':_0x5e9899,'clickOutsideToClose':!![],'locals':{'company':_0x5abe58,'companies':_0x3eb1b2[_0x5d56ea('0x1c10')][_0x5d56ea('0x19b2')],'license':_0x3eb1b2[_0x5d56ea('0x17ff')],'setting':_0x3eb1b2[_0x5d56ea('0x23e1')],'crudPermissions':_0x3eb1b2[_0x5d56ea('0xb25')]}});}function _0x2c4d1c(_0x5da59c){const _0x13a2fd=_0x16a29b;_0x477424[_0x13a2fd('0x9ba')]['delete']({'id':_0x5da59c['id']})[_0x13a2fd('0x1549')][_0x13a2fd('0x11bf')](function(){const _0xca1e34=_0x13a2fd;_0x36f548()[_0xca1e34('0x14a5')](_0x3eb1b2[_0xca1e34('0x1c10')][_0xca1e34('0x19b2')],{'id':_0x5da59c['id']}),_0x3eb1b2[_0xca1e34('0x1c10')][_0xca1e34('0x27d2')]-=0x1,!_0x3eb1b2[_0xca1e34('0x1c10')][_0xca1e34('0x19b2')][_0xca1e34('0x1e22')]&&_0x3eb1b2[_0xca1e34('0x763')](),_0x1a2a5e[_0xca1e34('0x2693')]({'title':_0x36f548()[_0xca1e34('0x13cf')](_0xca1e34('0x216e'))+_0xca1e34('0x2113'),'msg':_0x5da59c[_0xca1e34('0x1909')]?_0x5da59c[_0xca1e34('0x1909')]+_0xca1e34('0x433'):''});})['catch'](function(_0x1b5276){const _0x35d2f2=_0x13a2fd;if(_0x1b5276[_0x35d2f2('0x4e8')]&&_0x1b5276[_0x35d2f2('0x4e8')][_0x35d2f2('0x120f')]&&_0x1b5276[_0x35d2f2('0x4e8')]['errors']['length']){_0x3eb1b2[_0x35d2f2('0x120f')]=_0x1b5276[_0x35d2f2('0x4e8')]['errors']||[{'message':_0x1b5276[_0x35d2f2('0xaab')](),'type':_0x35d2f2('0x1c51')}];for(let _0x123b6f=0x0;_0x123b6f<_0x1b5276['data']['errors'][_0x35d2f2('0x1e22')];_0x123b6f++){_0x1a2a5e[_0x35d2f2('0x255')]({'title':_0x1b5276['data'][_0x35d2f2('0x120f')][_0x123b6f][_0x35d2f2('0x19fd')],'msg':_0x1b5276[_0x35d2f2('0x4e8')][_0x35d2f2('0x120f')][_0x123b6f][_0x35d2f2('0x1b86')]});}}else _0x1a2a5e['error']({'title':_0x1b5276[_0x35d2f2('0xff9')]?'API:'+_0x1b5276[_0x35d2f2('0xff9')]+'\x20-\x20'+_0x1b5276[_0x35d2f2('0x212f')]:'SYSTEM:DELETEcmCompany','msg':_0x1b5276[_0x35d2f2('0x4e8')]?JSON[_0x35d2f2('0x3e')](_0x1b5276[_0x35d2f2('0x4e8')][_0x35d2f2('0x1b86')]):_0x1b5276[_0x35d2f2('0x1b86')]||_0x1b5276[_0x35d2f2('0xaab')]()});});}function _0x685101(){const _0x2e9388=_0x16a29b,_0x101129=angular[_0x2e9388('0x6fb')](_0x3eb1b2[_0x2e9388('0x1742')]);return _0x3eb1b2[_0x2e9388('0x1742')]=[],_0x101129;}function _0x524b39(_0x24b29a){const _0x42a448=_0x16a29b,_0x26e10c=_0x109b51[_0x42a448('0x132b')]()[_0x42a448('0x134b')](_0x42a448('0x3d8'))[_0x42a448('0x1d03')](''+_0x3eb1b2['selectedCompanies']['length']+_0x42a448('0xac6')+_0x42a448('0x1a'))[_0x42a448('0xb2e')]('delete\x20Companys')[_0x42a448('0x1e25')](_0x24b29a)['ok']('OK')[_0x42a448('0x26c9')](_0x42a448('0x772'));_0x109b51[_0x42a448('0xb9')](_0x26e10c)['then'](function(){const _0x1714c5=_0x42a448;_0x3eb1b2[_0x1714c5('0x1742')]['forEach'](function(_0x425a6f){_0x2c4d1c(_0x425a6f);}),_0x3eb1b2['selectedCompanies']=[];});}function _0xbdf260(){const _0x25c550=_0x16a29b;_0x3eb1b2[_0x25c550('0x1742')]=[];}function _0x2602df(){const _0x23a5f9=_0x16a29b;_0x3eb1b2[_0x23a5f9('0x1742')]=_0x3eb1b2[_0x23a5f9('0x1c10')][_0x23a5f9('0x19b2')];}}const _0x3513b5=_0x172259;_0xdac2f9[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0xcbc'),_0x21d0f5('0x16b9'),_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0xb6b'),_0x21d0f5('0x142d'),_0x21d0f5('0x1c10'),'company',_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),'license','setting','crudPermissions'];function _0xdac2f9(_0x15fe8e,_0x4ae6d7,_0x4a1163,_0x22e943,_0x44667d,_0x1e4bb1,_0x13ce99,_0x19504e,_0x22c61e,_0x45df92,_0xc42d1,_0x4e150f,_0x558ea4,_0x29617c){const _0x1adc7e=_0x21d0f5,_0x132da3=this;_0x132da3[_0x1adc7e('0x32a')]=_0xc42d1[_0x1adc7e('0x2428')](),_0x132da3['errors']=[],_0x132da3['setting']=_0x558ea4,_0x132da3[_0x1adc7e('0x17ff')]=_0x4e150f,_0x132da3[_0x1adc7e('0xb25')]=_0x29617c,_0x132da3[_0x1adc7e('0x2c9')]={},_0x132da3[_0x1adc7e('0x2834')]=_0x132da3['setting']&&_0x132da3[_0x1adc7e('0x23e1')][_0x1adc7e('0x1d4')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x132da3[_0x1adc7e('0x134b')]=_0x1adc7e('0x214b'),_0x132da3['company']=angular[_0x1adc7e('0x6fb')](_0x22c61e),_0x132da3['companies']=_0x19504e,_0x132da3['newCompany']=![];!_0x132da3[_0x1adc7e('0xb1e')]&&(_0x132da3[_0x1adc7e('0xb1e')]={},_0x132da3[_0x1adc7e('0x134b')]=_0x1adc7e('0x590'),_0x132da3[_0x1adc7e('0xb43')]=!![]);_0x132da3[_0x1adc7e('0x1bce')]=_0x57666f,_0x132da3[_0x1adc7e('0x2748')]=_0x409d6c,_0x132da3['deleteCompany']=_0x5bd066,_0x132da3[_0x1adc7e('0x1bd1')]=_0x3705b0,_0x132da3['closeDialog']=_0x1ef1dd;function _0x57666f(){const _0x4df561=_0x1adc7e;_0x132da3[_0x4df561('0x120f')]=[],_0x45df92[_0x4df561('0x9ba')][_0x4df561('0x259')](_0x132da3[_0x4df561('0xb1e')])['$promise'][_0x4df561('0x11bf')](function(_0x5ef305){const _0xba1dee=_0x4df561;_0x132da3['companies'][_0xba1dee('0x880')](_0x5ef305[_0xba1dee('0x2866')]()),_0x13ce99[_0xba1dee('0x2693')]({'title':_0xba1dee('0x916'),'msg':_0x132da3['company'][_0xba1dee('0x1909')]?_0x132da3[_0xba1dee('0xb1e')][_0xba1dee('0x1909')]+_0xba1dee('0x7fb'):''}),_0x1ef1dd(_0x5ef305);})[_0x4df561('0x151d')](function(_0xffddc3){const _0x2a1664=_0x4df561;if(_0xffddc3[_0x2a1664('0x4e8')]&&_0xffddc3['data'][_0x2a1664('0x120f')]&&_0xffddc3[_0x2a1664('0x4e8')]['errors'][_0x2a1664('0x1e22')]){_0x132da3['errors']=_0xffddc3[_0x2a1664('0x4e8')][_0x2a1664('0x120f')]||[{'message':_0xffddc3['toString'](),'type':'api.cmCompany.save'}];for(let _0x5589d6=0x0;_0x5589d6<_0xffddc3[_0x2a1664('0x4e8')]['errors'][_0x2a1664('0x1e22')];_0x5589d6+=0x1){_0x13ce99['error']({'title':_0xffddc3[_0x2a1664('0x4e8')][_0x2a1664('0x120f')][_0x5589d6][_0x2a1664('0x19fd')],'msg':_0xffddc3[_0x2a1664('0x4e8')]['errors'][_0x5589d6]['message']});}}else _0x13ce99[_0x2a1664('0x255')]({'title':_0xffddc3[_0x2a1664('0xff9')]?_0x2a1664('0x574')+_0xffddc3[_0x2a1664('0xff9')]+_0x2a1664('0xb0b')+_0xffddc3[_0x2a1664('0x212f')]:_0x2a1664('0x1e6c'),'msg':_0xffddc3[_0x2a1664('0x4e8')]?JSON[_0x2a1664('0x3e')](_0xffddc3[_0x2a1664('0x4e8')][_0x2a1664('0x1b86')]):_0xffddc3[_0x2a1664('0xaab')]()});});}function _0x409d6c(){const _0x30ff3b=_0x1adc7e;_0x132da3['errors']=[],_0x45df92[_0x30ff3b('0x9ba')][_0x30ff3b('0x5ab')]({'id':_0x132da3[_0x30ff3b('0xb1e')]['id']},_0x132da3['company'])[_0x30ff3b('0x1549')][_0x30ff3b('0x11bf')](function(_0x39dbe8){const _0x10ce95=_0x30ff3b,_0x27b809=_0x36f548()[_0x10ce95('0x1ad4')](_0x132da3['companies'],{'id':_0x39dbe8['id']});_0x27b809&&_0x36f548()[_0x10ce95('0x47b')](_0x27b809,_0x36f548()[_0x10ce95('0x258')](_0x39dbe8[_0x10ce95('0x2866')](),_0x36f548()[_0x10ce95('0xe22')](_0x27b809))),_0x13ce99[_0x10ce95('0x2693')]({'title':_0x10ce95('0x24a9'),'msg':_0x132da3[_0x10ce95('0xb1e')]['name']?_0x132da3[_0x10ce95('0xb1e')][_0x10ce95('0x1909')]+_0x10ce95('0x1a78'):''}),_0x1ef1dd(_0x39dbe8);})[_0x30ff3b('0x151d')](function(_0x13640c){const _0x52e80c=_0x30ff3b;if(_0x13640c[_0x52e80c('0x4e8')]&&_0x13640c[_0x52e80c('0x4e8')][_0x52e80c('0x120f')]&&_0x13640c[_0x52e80c('0x4e8')][_0x52e80c('0x120f')][_0x52e80c('0x1e22')]){_0x132da3[_0x52e80c('0x120f')]=_0x13640c[_0x52e80c('0x4e8')][_0x52e80c('0x120f')]||[{'message':_0x13640c[_0x52e80c('0xaab')](),'type':_0x52e80c('0x91f')}];for(let _0x450128=0x0;_0x450128<_0x13640c[_0x52e80c('0x4e8')][_0x52e80c('0x120f')][_0x52e80c('0x1e22')];_0x450128++){_0x13ce99['error']({'title':_0x13640c[_0x52e80c('0x4e8')][_0x52e80c('0x120f')][_0x450128][_0x52e80c('0x19fd')],'msg':_0x13640c['data'][_0x52e80c('0x120f')][_0x450128]['message']});}}else _0x13ce99['error']({'title':_0x13640c[_0x52e80c('0xff9')]?_0x52e80c('0x574')+_0x13640c['status']+_0x52e80c('0xb0b')+_0x13640c['statusText']:_0x52e80c('0x91f'),'msg':_0x13640c[_0x52e80c('0x4e8')]?JSON['stringify'](_0x13640c['data'][_0x52e80c('0x1b86')]):_0x13640c[_0x52e80c('0xaab')]()});});}function _0x5bd066(_0x25e6ed){const _0x1875e2=_0x1adc7e;_0x132da3[_0x1875e2('0x120f')]=[];const _0x2c737a=_0x22e943['confirm']()[_0x1875e2('0x134b')](_0x1875e2('0x1fa9'))[_0x1875e2('0x252a')](_0x1875e2('0x18f4'))['ariaLabel'](_0x1875e2('0x121e'))['ok'](_0x1875e2('0x1167'))[_0x1875e2('0x26c9')](_0x1875e2('0x784'))[_0x1875e2('0x1e25')](_0x25e6ed);_0x22e943[_0x1875e2('0xb9')](_0x2c737a)[_0x1875e2('0x11bf')](function(){const _0x2642b6=_0x1875e2;_0x45df92[_0x2642b6('0x9ba')]['delete']({'id':_0x132da3[_0x2642b6('0xb1e')]['id']})[_0x2642b6('0x1549')][_0x2642b6('0x11bf')](function(){const _0x105bf8=_0x2642b6;_0x36f548()[_0x105bf8('0x14a5')](_0x132da3[_0x105bf8('0x1c10')],{'id':_0x132da3[_0x105bf8('0xb1e')]['id']}),_0x13ce99['success']({'title':'Company\x20properly\x20deleted!','msg':(_0x132da3[_0x105bf8('0xb1e')][_0x105bf8('0x1909')]||_0x105bf8('0xb1e'))+_0x105bf8('0x433')}),_0x1ef1dd(_0x132da3[_0x105bf8('0xb1e')]);})[_0x2642b6('0x151d')](function(_0x1f0978){const _0x252806=_0x2642b6;if(_0x1f0978['data']&&_0x1f0978['data']['errors']&&_0x1f0978[_0x252806('0x4e8')][_0x252806('0x120f')][_0x252806('0x1e22')]){_0x132da3[_0x252806('0x120f')]=_0x1f0978[_0x252806('0x4e8')][_0x252806('0x120f')]||[{'message':_0x1f0978['toString'](),'type':'api.cmCompany.delete'}];for(let _0x39ae8b=0x0;_0x39ae8b<_0x1f0978[_0x252806('0x4e8')][_0x252806('0x120f')][_0x252806('0x1e22')];_0x39ae8b++){_0x13ce99[_0x252806('0x255')]({'title':_0x1f0978['data'][_0x252806('0x120f')][_0x39ae8b]['type'],'msg':_0x1f0978[_0x252806('0x4e8')][_0x252806('0x120f')][_0x39ae8b][_0x252806('0x1b86')]});}}else _0x13ce99[_0x252806('0x255')]({'title':_0x1f0978['status']?_0x252806('0x574')+_0x1f0978[_0x252806('0xff9')]+_0x252806('0xb0b')+_0x1f0978[_0x252806('0x212f')]:'api.cmCompany.delete','msg':_0x1f0978['data']?JSON[_0x252806('0x3e')](_0x1f0978['data']['message']):_0x1f0978['message']||_0x1f0978[_0x252806('0xaab')]()});});},function(){});}function _0x3705b0(_0xcf22e0){return _0xcf22e0===null?undefined:new Date(_0xcf22e0);}function _0x1ef1dd(_0x23c655){const _0x29601a=_0x1adc7e;_0x22e943[_0x29601a('0x237e')](_0x23c655);}}const _0x547f00=_0xdac2f9;_0x4331ee['$inject']=[_0x21d0f5('0xcbc'),_0x21d0f5('0x16b9'),_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),_0x21d0f5('0xb6b'),'license',_0x21d0f5('0x23e1'),'api',_0x21d0f5('0x142d'),_0x21d0f5('0x1150'),'company',_0x21d0f5('0x1d63')];function _0x4331ee(_0x250017,_0x4982cb,_0x325923,_0x3f02a3,_0x1a3be1,_0x296053,_0x8296c6,_0x263248,_0x511c45,_0x310d82,_0x2fed40,_0x3db35d){const _0x38818e=_0x21d0f5,_0x1e6c84=this;_0x1e6c84[_0x38818e('0x32a')]=_0x310d82['getCurrentUser'](),_0x1e6c84[_0x38818e('0x17ff')]=_0x296053,_0x1e6c84['setting']=_0x8296c6,_0x1e6c84[_0x38818e('0x2834')]=_0x1e6c84[_0x38818e('0x23e1')][_0x38818e('0x1d4')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1e6c84[_0x38818e('0x1d9a')]=_0x4982cb[_0x38818e('0x1797')]()+'://'+_0x4982cb['host'](),_0x1e6c84[_0x38818e('0xb1e')]=_0x2fed40||_0x250017[_0x38818e('0x1ab3')][_0x38818e('0xb1e')]||{},_0x1e6c84[_0x38818e('0x1d63')]=_0x3db35d&&_0x3db35d[_0x38818e('0x27d2')]==0x1?_0x3db35d[_0x38818e('0x19b2')][0x0]:null,_0x1e6c84['crudPermissions']=_0x310d82['parseCrudPermissions'](_0x1e6c84[_0x38818e('0x1d63')]?_0x1e6c84['userProfileSection'][_0x38818e('0xb25')]:null),_0x1e6c84['hasModulePermissions']={},_0x1e6c84[_0x38818e('0x1179')]=_0x250017[_0x38818e('0x1ab3')][_0x38818e('0x205c')]||0x0,_0x1e6c84[_0x38818e('0x15dc')]=_0x1b0265,_0x1e6c84['alert']=_0x511c45[_0x38818e('0x870')],_0x1e6c84[_0x38818e('0x223f')]=_0xe70383,_0x1e6c84['saveCompany']=_0x2b15c5;function _0x1b0265(_0xdf22e9){const _0x35c5ea=_0x38818e;if(_0x310d82['hasRole']('admin'))_0x250017['go'](_0x35c5ea('0xa11'),{'CompanyId':_0xdf22e9['id']});else return _0x263248[_0x35c5ea('0x1d63')][_0x35c5ea('0xbaa')]({'userProfileId':_0x310d82['getCurrentUser']()['userProfileId'],'sectionId':0x12f})[_0x35c5ea('0x1549')][_0x35c5ea('0x11bf')](function(_0x4f7d30){const _0x31c51b=_0x35c5ea,_0x1ff434=_0x4f7d30&&_0x4f7d30['rows']?_0x4f7d30['rows'][0x0]:null;_0x1ff434&&_0x1ff434[_0x31c51b('0x1f0a')]?_0x250017['go'](_0x31c51b('0xa11'),{'CompanyId':_0xdf22e9['id']}):_0x511c45[_0x31c51b('0x870')]({'title':_0x1a3be1[_0x31c51b('0x10c2')](_0x31c51b('0xbff')),'msg':_0x1a3be1[_0x31c51b('0x10c2')](_0x31c51b('0x10d1'))});})[_0x35c5ea('0x151d')](function(_0x21fa18){const _0x467b53=_0x35c5ea;_0x511c45[_0x467b53('0x255')]({'title':_0x21fa18[_0x467b53('0xff9')]?_0x467b53('0x574')+_0x21fa18[_0x467b53('0xff9')]+'\x20-\x20'+_0x21fa18[_0x467b53('0x212f')]:'USERPROFILE:GET_SECTION','msg':_0x21fa18['status']?JSON[_0x467b53('0x3e')](_0x21fa18[_0x467b53('0x4e8')]):_0x21fa18[_0x467b53('0xaab')]()});});}function _0xe70383(){const _0x4ce8b6=_0x38818e;_0x250017['go'](_0x4ce8b6('0x6c9'),{},{'reload':_0x4ce8b6('0x6c9')});}function _0x2b15c5(){const _0x9d006f=_0x38818e;_0x263248['cmCompany'][_0x9d006f('0x5ab')]({'id':_0x1e6c84[_0x9d006f('0xb1e')]['id']},_0x1e6c84[_0x9d006f('0xb1e')])[_0x9d006f('0x1549')][_0x9d006f('0x11bf')](function(){const _0x31ac80=_0x9d006f;_0x511c45[_0x31ac80('0x2693')]({'title':_0x31ac80('0x1db4'),'msg':_0x1e6c84['company']['name']?_0x1e6c84[_0x31ac80('0xb1e')][_0x31ac80('0x1909')]+'\x20has\x20been\x20updated!':''});})['catch'](function(_0x44a5e0){const _0xd806d1=_0x9d006f;_0x511c45['error']({'title':_0x44a5e0[_0xd806d1('0xff9')]?_0xd806d1('0x574')+_0x44a5e0[_0xd806d1('0xff9')]+_0xd806d1('0xb0b')+_0x44a5e0[_0xd806d1('0x212f')]:'SYSTEM:GETcmCompany','msg':_0x44a5e0[_0xd806d1('0x4e8')]?JSON[_0xd806d1('0x3e')](_0x44a5e0[_0xd806d1('0x4e8')]):_0x44a5e0[_0xd806d1('0xaab')]()});});}}const _0x2e2e8f=_0x4331ee;_0x490749[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0xcbc'),'$location',_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0xb6b'),'toasty',_0x21d0f5('0x27fc'),_0x21d0f5('0x1a0'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1'),_0x21d0f5('0xb25')];function _0x490749(_0x3f3ad0,_0x513433,_0x598dd7,_0x4a0279,_0x400b7a,_0x162db0,_0x2e71bb,_0x37e9c5,_0x3426af,_0x12b5ba,_0x1042c2,_0x54a36e,_0x59d529,_0x90423e){const _0x6d8e78=_0x21d0f5,_0x50bd58=this;_0x50bd58['currentUser']=_0x1042c2['getCurrentUser'](),_0x50bd58[_0x6d8e78('0x120f')]=[],_0x50bd58[_0x6d8e78('0x23e1')]=_0x59d529,_0x50bd58[_0x6d8e78('0x17ff')]=_0x54a36e,_0x50bd58[_0x6d8e78('0xb25')]=_0x90423e,_0x50bd58[_0x6d8e78('0x2c9')]={},_0x50bd58[_0x6d8e78('0x2834')]=_0x50bd58['setting']&&_0x50bd58[_0x6d8e78('0x23e1')][_0x6d8e78('0x1d4')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x50bd58[_0x6d8e78('0x134b')]=_0x6d8e78('0x46a'),_0x50bd58['sortable']={'animation':0x320,'sort':!![],'onSort':function(){const _0x5aeb78=_0x6d8e78;_0x3f3ad0[_0x5aeb78('0x7f9')][_0x5aeb78('0x1769')]=![];}},_0x50bd58['globalCustomField']=_0x3426af,_0x50bd58['globalCustomFields']=_0x37e9c5,_0x50bd58['newGlobalCustomField']=![];!_0x50bd58[_0x6d8e78('0x1a0')]&&(_0x50bd58['globalCustomField']={'type':_0x6d8e78('0x25ed'),'actionType':'voice'},_0x50bd58['title']='CONTACTMANAGER.NEW_GLOBALCUSTOMFIELD',_0x50bd58[_0x6d8e78('0x27df')]=!![]);_0x3f3ad0[_0x6d8e78('0x2087')](_0x6d8e78('0x1f29'),function(_0x419f70,_0x1559ba){const _0x456ed2=_0x6d8e78;if(_0x419f70!==_0x1559ba)switch(_0x419f70){case _0x456ed2('0x25ed'):_0x50bd58[_0x456ed2('0x1a0')][_0x456ed2('0x1643')]='';break;case _0x456ed2('0x2350'):_0x50bd58[_0x456ed2('0x1a0')][_0x456ed2('0x1643')]=[];break;default:}}),_0x50bd58[_0x6d8e78('0x2074')]=_0x23f634,_0x50bd58[_0x6d8e78('0x1c00')]=_0xf600e9,_0x50bd58[_0x6d8e78('0x17b')]=_0x1949a8,_0x50bd58['getDateFromString']=_0xd11ae8,_0x50bd58[_0x6d8e78('0x1be3')]=_0x8d109a,_0x50bd58[_0x6d8e78('0xd98')]=_0x2db6f6,_0x50bd58[_0x6d8e78('0x1cdc')]=_0x467f76,_0x50bd58[_0x6d8e78('0xc4e')]=_0x2b9c6b;function _0x8d109a(_0x159257){const _0x5739db=_0x6d8e78;_0x159257[_0x5739db('0x105d')]({'value':_0x5739db('0x1a66')}),_0x3f3ad0[_0x5739db('0x7f9')][_0x5739db('0x1769')]=![];}function _0x2db6f6(_0x487ec5,_0x563e14){const _0x315d46=_0x6d8e78;_0x487ec5[_0x315d46('0x1ae')](_0x563e14,0x1),_0x3f3ad0[_0x315d46('0x7f9')]['$pristine']=![];}function _0x467f76(_0x2446b2){const _0x1f0898=_0x6d8e78,_0x3ddc7e=_0x2446b2['length'];for(let _0x56d652=0x0;_0x56d652<_0x3ddc7e;_0x56d652++){_0x2446b2[_0x1f0898('0x1ae')](0x0,0x1);}_0x3f3ad0[_0x1f0898('0x7f9')][_0x1f0898('0x1769')]=![];}function _0x23f634(){const _0x4e0ebb=_0x6d8e78;_0x50bd58[_0x4e0ebb('0x120f')]=[],_0x12b5ba[_0x4e0ebb('0x1540')][_0x4e0ebb('0x259')](_0x50bd58[_0x4e0ebb('0x1a0')])['$promise'][_0x4e0ebb('0x11bf')](function(_0x190878){const _0x42546e=_0x4e0ebb;_0x50bd58[_0x42546e('0x27fc')]['unshift'](_0x190878[_0x42546e('0x2866')]()),_0x2e71bb['success']({'title':_0x42546e('0x8e0'),'msg':_0x50bd58['globalCustomField'][_0x42546e('0x1909')]?_0x50bd58[_0x42546e('0x1a0')][_0x42546e('0x1909')]+_0x42546e('0x7fb'):''}),_0x2b9c6b(_0x190878);})[_0x4e0ebb('0x151d')](function(_0x121bc7){const _0x17c5a5=_0x4e0ebb;if(_0x121bc7[_0x17c5a5('0x4e8')]&&_0x121bc7[_0x17c5a5('0x4e8')]['errors']&&_0x121bc7[_0x17c5a5('0x4e8')][_0x17c5a5('0x120f')][_0x17c5a5('0x1e22')]){_0x50bd58[_0x17c5a5('0x120f')]=_0x121bc7[_0x17c5a5('0x4e8')][_0x17c5a5('0x120f')]||[{'message':_0x121bc7[_0x17c5a5('0xaab')](),'type':_0x17c5a5('0x25b5')}];for(let _0x2790de=0x0;_0x2790de<_0x121bc7[_0x17c5a5('0x4e8')][_0x17c5a5('0x120f')][_0x17c5a5('0x1e22')];_0x2790de+=0x1){_0x2e71bb[_0x17c5a5('0x255')]({'title':_0x121bc7[_0x17c5a5('0x4e8')]['errors'][_0x2790de][_0x17c5a5('0x19fd')],'msg':_0x121bc7[_0x17c5a5('0x4e8')][_0x17c5a5('0x120f')][_0x2790de][_0x17c5a5('0x1b86')]});}}else _0x2e71bb['error']({'title':_0x121bc7[_0x17c5a5('0xff9')]?'API:'+_0x121bc7['status']+'\x20-\x20'+_0x121bc7[_0x17c5a5('0x212f')]:_0x17c5a5('0x25b5'),'msg':_0x121bc7[_0x17c5a5('0x4e8')]?JSON[_0x17c5a5('0x3e')](_0x121bc7[_0x17c5a5('0x4e8')]['message']):_0x121bc7[_0x17c5a5('0xaab')]()});});}function _0xf600e9(){const _0x463636=_0x6d8e78;_0x50bd58[_0x463636('0x120f')]=[],_0x12b5ba[_0x463636('0x1540')][_0x463636('0x5ab')]({'id':_0x50bd58[_0x463636('0x1a0')]['id']},_0x50bd58[_0x463636('0x1a0')])[_0x463636('0x1549')][_0x463636('0x11bf')](function(_0x37f768){const _0x339897=_0x463636,_0x1fb9d2=_0x36f548()[_0x339897('0x1ad4')](_0x50bd58[_0x339897('0x27fc')],{'id':_0x37f768['id']});_0x1fb9d2&&_0x36f548()[_0x339897('0x47b')](_0x1fb9d2,_0x36f548()[_0x339897('0x258')](_0x37f768[_0x339897('0x2866')](),_0x36f548()[_0x339897('0xe22')](_0x1fb9d2))),_0x2e71bb[_0x339897('0x2693')]({'title':_0x339897('0x6f0'),'msg':_0x50bd58['globalCustomField'][_0x339897('0x1909')]?_0x50bd58['globalCustomField'][_0x339897('0x1909')]+_0x339897('0x1a78'):''}),_0x2b9c6b(_0x37f768);})[_0x463636('0x151d')](function(_0x26afaf){const _0x54b7b8=_0x463636;if(_0x26afaf[_0x54b7b8('0x4e8')]&&_0x26afaf['data'][_0x54b7b8('0x120f')]&&_0x26afaf[_0x54b7b8('0x4e8')][_0x54b7b8('0x120f')][_0x54b7b8('0x1e22')]){_0x50bd58[_0x54b7b8('0x120f')]=_0x26afaf[_0x54b7b8('0x4e8')][_0x54b7b8('0x120f')]||[{'message':_0x26afaf[_0x54b7b8('0xaab')](),'type':_0x54b7b8('0x2377')}];for(let _0x1fb203=0x0;_0x1fb203<_0x26afaf['data'][_0x54b7b8('0x120f')][_0x54b7b8('0x1e22')];_0x1fb203++){_0x2e71bb['error']({'title':_0x26afaf[_0x54b7b8('0x4e8')][_0x54b7b8('0x120f')][_0x1fb203][_0x54b7b8('0x19fd')],'msg':_0x26afaf[_0x54b7b8('0x4e8')][_0x54b7b8('0x120f')][_0x1fb203][_0x54b7b8('0x1b86')]});}}else _0x2e71bb[_0x54b7b8('0x255')]({'title':_0x26afaf[_0x54b7b8('0xff9')]?_0x54b7b8('0x574')+_0x26afaf[_0x54b7b8('0xff9')]+_0x54b7b8('0xb0b')+_0x26afaf[_0x54b7b8('0x212f')]:_0x54b7b8('0x2377'),'msg':_0x26afaf[_0x54b7b8('0x4e8')]?JSON['stringify'](_0x26afaf[_0x54b7b8('0x4e8')][_0x54b7b8('0x1b86')]):_0x26afaf[_0x54b7b8('0xaab')]()});});}function _0x1949a8(_0x270f0a){const _0x4a029d=_0x6d8e78;_0x50bd58[_0x4a029d('0x120f')]=[];const _0x17d4ab=_0x4a0279[_0x4a029d('0x132b')]()[_0x4a029d('0x134b')](_0x4a029d('0x1fa9'))['content'](_0x4a029d('0xa35'))['ariaLabel'](_0x4a029d('0x480'))['ok'](_0x4a029d('0x1167'))['cancel']('Cancel')['targetEvent'](_0x270f0a);_0x4a0279['show'](_0x17d4ab)[_0x4a029d('0x11bf')](function(){const _0x161ca2=_0x4a029d;_0x12b5ba[_0x161ca2('0x1540')][_0x161ca2('0x2088')]({'id':_0x50bd58['globalCustomField']['id']})[_0x161ca2('0x1549')][_0x161ca2('0x11bf')](function(){const _0x4d09df=_0x161ca2;_0x36f548()[_0x4d09df('0x14a5')](_0x50bd58[_0x4d09df('0x27fc')],{'id':_0x50bd58[_0x4d09df('0x1a0')]['id']}),_0x2e71bb[_0x4d09df('0x2693')]({'title':_0x4d09df('0x6a'),'msg':(_0x50bd58['globalCustomField']['name']||'globalCustomField')+_0x4d09df('0x433')}),_0x2b9c6b(_0x50bd58[_0x4d09df('0x1a0')]);})['catch'](function(_0x2c7f46){const _0x278012=_0x161ca2;if(_0x2c7f46[_0x278012('0x4e8')]&&_0x2c7f46[_0x278012('0x4e8')][_0x278012('0x120f')]&&_0x2c7f46[_0x278012('0x4e8')][_0x278012('0x120f')][_0x278012('0x1e22')]){_0x50bd58[_0x278012('0x120f')]=_0x2c7f46[_0x278012('0x4e8')][_0x278012('0x120f')]||[{'message':_0x2c7f46['toString'](),'type':'api.cmCustomField.delete'}];for(let _0x407d2a=0x0;_0x407d2a<_0x2c7f46['data'][_0x278012('0x120f')]['length'];_0x407d2a++){_0x2e71bb[_0x278012('0x255')]({'title':_0x2c7f46[_0x278012('0x4e8')][_0x278012('0x120f')][_0x407d2a][_0x278012('0x19fd')],'msg':_0x2c7f46['data'][_0x278012('0x120f')][_0x407d2a][_0x278012('0x1b86')]});}}else _0x2e71bb['error']({'title':_0x2c7f46[_0x278012('0xff9')]?_0x278012('0x574')+_0x2c7f46[_0x278012('0xff9')]+_0x278012('0xb0b')+_0x2c7f46['statusText']:_0x278012('0x5e3'),'msg':_0x2c7f46[_0x278012('0x4e8')]?JSON[_0x278012('0x3e')](_0x2c7f46[_0x278012('0x4e8')][_0x278012('0x1b86')]):_0x2c7f46[_0x278012('0x1b86')]||_0x2c7f46[_0x278012('0xaab')]()});});},function(){});}function _0xd11ae8(_0x60f264){return _0x60f264===null?undefined:new Date(_0x60f264);}function _0x2b9c6b(_0x3f0d10){const _0xe0bcbf=_0x6d8e78;_0x4a0279[_0xe0bcbf('0x237e')](_0x3f0d10);}}const _0x3aec2d=_0x490749,_0x381e96=_0x351988['p']+'src/js/modules/main/apps/contactmanager/views/globalCustomFields/create/dialog.html/dialog.html';_0x24545d['$inject']=[_0x21d0f5('0x1b80'),_0x21d0f5('0x2143'),_0x21d0f5('0xcbc'),'$mdSidenav','$mdDialog',_0x21d0f5('0x1b30'),_0x21d0f5('0x17f5'),_0x21d0f5('0xb6b'),_0x21d0f5('0x27fc'),'userProfile',_0x21d0f5('0x1d63'),_0x21d0f5('0x12a5'),_0x21d0f5('0xda9'),_0x21d0f5('0x142d'),_0x21d0f5('0x1150'),'license',_0x21d0f5('0x23e1')];function _0x24545d(_0x3df984,_0x486c41,_0x2caedd,_0x3f901e,_0x180992,_0x33512d,_0x76f24d,_0x4cb070,_0x48596b,_0x3effb1,_0x5454cd,_0x1e18e4,_0x4cceed,_0x2e2251,_0x3778dd,_0x23e9c5,_0x42aed5){const _0x35e2cc=_0x21d0f5,_0x4cd75e=this;_0x4cd75e[_0x35e2cc('0x17ff')]=_0x23e9c5,_0x4cd75e[_0x35e2cc('0x23e1')]=_0x42aed5,_0x4cd75e[_0x35e2cc('0x32a')]=_0x3778dd[_0x35e2cc('0x2428')](),_0x4cd75e[_0x35e2cc('0x27fc')]=_0x48596b||{'count':0x0,'rows':[]},_0x4cd75e[_0x35e2cc('0x25bc')]=_0x3effb1,_0x4cd75e[_0x35e2cc('0x1d63')]=_0x5454cd&&_0x5454cd[_0x35e2cc('0x27d2')]==0x1?_0x5454cd[_0x35e2cc('0x19b2')][0x0]:null,_0x4cd75e[_0x35e2cc('0xb25')]=_0x3778dd[_0x35e2cc('0x1530')](_0x4cd75e['userProfileSection']?_0x4cd75e[_0x35e2cc('0x1d63')]['crudPermissions']:null),_0x4cd75e[_0x35e2cc('0x13e8')]=_0x35e2cc('0x27fc'),_0x4cd75e['listOrder']='',_0x4cd75e[_0x35e2cc('0xe3c')]=null,_0x4cd75e[_0x35e2cc('0x1a60')]=[],_0x4cd75e[_0x35e2cc('0x1f2a')]={'fields':'createdAt,updatedAt,id,alias,type,values,required,clickToAction,actionType','sort':'-updatedAt','ListId':_0x35e2cc('0xb5f'),'limit':0xa,'page':0x1},_0x4cd75e[_0x35e2cc('0x5fd')]=_0x36f548()['keyBy']([{'option':'Text','value':_0x35e2cc('0x4ed')},{'option':_0x35e2cc('0x449'),'value':_0x35e2cc('0x1f42')},{'option':'Number','value':_0x35e2cc('0x91b')},{'option':_0x35e2cc('0x102e'),'value':_0x35e2cc('0xf4c')},{'option':_0x35e2cc('0xfbc'),'value':_0x35e2cc('0x1a2b')}],function(_0x10153a){const _0x1538f0=_0x35e2cc;return _0x36f548()['replace'](_0x10153a[_0x1538f0('0x10cc')],new RegExp('\x27','g'),'');}),_0x4cd75e['arrayactionType']=_0x36f548()[_0x35e2cc('0x2130')]([{'option':'Voice','value':_0x35e2cc('0x12be')}],function(_0x40f254){return _0x36f548()['replace'](_0x40f254['value'],new RegExp('\x27','g'),'');}),_0x4cd75e[_0x35e2cc('0xc03')]=_0x427469,_0x4cd75e[_0x35e2cc('0x549')]=_0x24e763,_0x4cd75e[_0x35e2cc('0x2693')]=_0x7f6540,_0x4cd75e[_0x35e2cc('0x240d')]=_0x2008c7,_0x4cd75e['createOrEditGlobalCustomField']=_0xb59822,_0x4cd75e[_0x35e2cc('0x17b')]=_0x54efc0,_0x4cd75e['exportSelectedGlobalCustomFields']=_0x528d5f,_0x4cd75e['deleteSelectedGlobalCustomFields']=_0x3ae78f,_0x4cd75e['deselectGlobalCustomFields']=_0x4a4c2c,_0x4cd75e[_0x35e2cc('0x96e')]=_0xac918d;function _0x427469(_0x4eec9c,_0x242e76){const _0x69e47b=_0x35e2cc;_0x180992[_0x69e47b('0xb9')]({'controller':'CreateOrEditGlobalCustomFieldDialogController','controllerAs':'vm','templateUrl':_0x381e96,'parent':angular['element'](_0x33512d[_0x69e47b('0x1d2')]),'targetEvent':_0x242e76,'clickOutsideToClose':!![],'locals':{'globalCustomField':_0x4eec9c,'globalCustomFields':_0x4cd75e[_0x69e47b('0x27fc')][_0x69e47b('0x19b2')],'license':_0x4cd75e[_0x69e47b('0x17ff')],'setting':null,'crudPermissions':_0x4cd75e[_0x69e47b('0xb25')]}});}function _0x24e763(_0x462e39,_0x4e859b){const _0x5d439d=_0x35e2cc,_0x3d0de2=_0x180992[_0x5d439d('0x132b')]()[_0x5d439d('0x134b')](_0x5d439d('0x1796')+_0x36f548()[_0x5d439d('0x13cf')](_0x5d439d('0x1a0'))+'?')[_0x5d439d('0x1d03')](_0x5d439d('0x2061')+(_0x462e39[_0x5d439d('0x1909')]||_0x5d439d('0x1a0'))+''+_0x5d439d('0x1a'))[_0x5d439d('0xb2e')](_0x5d439d('0x14a6'))[_0x5d439d('0x1e25')](_0x4e859b)['ok']('OK')[_0x5d439d('0x26c9')](_0x5d439d('0x772'));_0x180992[_0x5d439d('0xb9')](_0x3d0de2)['then'](function(){_0x54efc0(_0x462e39);},function(){const _0x276af3=_0x5d439d;console[_0x276af3('0xc78')]('CANCEL');});}let _0x5d4d07=!![],_0xdb5422=0x1;_0x3df984[_0x35e2cc('0x2087')]('vm.query.filter',function(_0x499f7a,_0x3ed3b1){const _0xda8754=_0x35e2cc;_0x5d4d07?_0x76f24d(function(){_0x5d4d07=![];}):(!_0x3ed3b1&&(_0xdb5422=_0x4cd75e[_0xda8754('0x1f2a')][_0xda8754('0x1c2')]),_0x499f7a!==_0x3ed3b1&&(_0x4cd75e[_0xda8754('0x1f2a')][_0xda8754('0x1c2')]=0x1),!_0x499f7a&&(_0x4cd75e[_0xda8754('0x1f2a')][_0xda8754('0x1c2')]=_0xdb5422),_0x4cd75e[_0xda8754('0x240d')]());});function _0x7f6540(_0x416a55){const _0x3dc391=_0x35e2cc;_0x4cd75e[_0x3dc391('0x27fc')]=_0x416a55||{'count':0x0,'rows':[]};}function _0x2008c7(){const _0x4d3567=_0x35e2cc;_0x4cd75e[_0x4d3567('0x1f2a')][_0x4d3567('0x1393')]=(_0x4cd75e[_0x4d3567('0x1f2a')][_0x4d3567('0x1c2')]-0x1)*_0x4cd75e[_0x4d3567('0x1f2a')][_0x4d3567('0xd5c')],_0x3778dd['hasRole']('admin')?_0x4cd75e[_0x4d3567('0x13f')]=_0x1e18e4['cmCustomField'][_0x4d3567('0xbaa')](_0x4cd75e[_0x4d3567('0x1f2a')],_0x7f6540)[_0x4d3567('0x1549')]:(_0x4cd75e[_0x4d3567('0x1f2a')]['id']=_0x4cd75e[_0x4d3567('0x25bc')]['id'],_0x4cd75e[_0x4d3567('0x1f2a')][_0x4d3567('0xe6')]=_0x4d3567('0x1b3'),_0x4cd75e['promise']=_0x1e18e4[_0x4d3567('0x25bc')][_0x4d3567('0x228e')](_0x4cd75e['query'],_0x7f6540)[_0x4d3567('0x1549')]);}function _0xb59822(_0x5e9a16,_0x5c10a6){const _0x3c7da1=_0x35e2cc;_0x180992[_0x3c7da1('0xb9')]({'controller':'CreateOrEditGlobalCustomFieldDialogController','controllerAs':'vm','templateUrl':_0x381e96,'parent':angular[_0x3c7da1('0x1e73')](_0x33512d[_0x3c7da1('0x1d2')]),'targetEvent':_0x5e9a16,'clickOutsideToClose':!![],'locals':{'globalCustomField':_0x5c10a6,'globalCustomFields':_0x4cd75e[_0x3c7da1('0x27fc')][_0x3c7da1('0x19b2')],'license':_0x4cd75e[_0x3c7da1('0x17ff')],'setting':_0x4cd75e[_0x3c7da1('0x23e1')],'crudPermissions':_0x4cd75e[_0x3c7da1('0xb25')]}});}function _0x54efc0(_0x14b68d){const _0x5101ca=_0x35e2cc;_0x1e18e4[_0x5101ca('0x1540')][_0x5101ca('0x2088')]({'id':_0x14b68d['id']})['$promise'][_0x5101ca('0x11bf')](function(){const _0x3c674a=_0x5101ca;_0x36f548()[_0x3c674a('0x14a5')](_0x4cd75e[_0x3c674a('0x27fc')]['rows'],{'id':_0x14b68d['id']}),_0x4cd75e['globalCustomFields'][_0x3c674a('0x27d2')]-=0x1,!_0x4cd75e[_0x3c674a('0x27fc')][_0x3c674a('0x19b2')][_0x3c674a('0x1e22')]&&_0x4cd75e[_0x3c674a('0x240d')](),_0x2e2251[_0x3c674a('0x2693')]({'title':_0x36f548()[_0x3c674a('0x13cf')](_0x3c674a('0x2336'))+_0x3c674a('0x2113'),'msg':_0x14b68d[_0x3c674a('0x1909')]?_0x14b68d['name']+_0x3c674a('0x433'):''});})[_0x5101ca('0x151d')](function(_0x33c2ec){const _0x3ff9e5=_0x5101ca;if(_0x33c2ec['data']&&_0x33c2ec[_0x3ff9e5('0x4e8')][_0x3ff9e5('0x120f')]&&_0x33c2ec[_0x3ff9e5('0x4e8')][_0x3ff9e5('0x120f')][_0x3ff9e5('0x1e22')]){_0x4cd75e['errors']=_0x33c2ec[_0x3ff9e5('0x4e8')]['errors']||[{'message':_0x33c2ec[_0x3ff9e5('0xaab')](),'type':'SYSTEM:DELETEcmCustomField'}];for(let _0x3e40c3=0x0;_0x3e40c3<_0x33c2ec['data'][_0x3ff9e5('0x120f')][_0x3ff9e5('0x1e22')];_0x3e40c3++){_0x2e2251[_0x3ff9e5('0x255')]({'title':_0x33c2ec[_0x3ff9e5('0x4e8')]['errors'][_0x3e40c3][_0x3ff9e5('0x19fd')],'msg':_0x33c2ec[_0x3ff9e5('0x4e8')][_0x3ff9e5('0x120f')][_0x3e40c3][_0x3ff9e5('0x1b86')]});}}else _0x2e2251['error']({'title':_0x33c2ec['status']?'API:'+_0x33c2ec[_0x3ff9e5('0xff9')]+'\x20-\x20'+_0x33c2ec[_0x3ff9e5('0x212f')]:_0x3ff9e5('0x121d'),'msg':_0x33c2ec['data']?JSON[_0x3ff9e5('0x3e')](_0x33c2ec[_0x3ff9e5('0x4e8')]['message']):_0x33c2ec[_0x3ff9e5('0x1b86')]||_0x33c2ec['toString']()});});}function _0x528d5f(){const _0xf60d5e=_0x35e2cc,_0x434c2d=angular[_0xf60d5e('0x6fb')](_0x4cd75e[_0xf60d5e('0x1a60')]);return _0x4cd75e[_0xf60d5e('0x1a60')]=[],_0x434c2d;}function _0x3ae78f(_0x4288ae){const _0x1d06d2=_0x35e2cc,_0x41efee=_0x180992[_0x1d06d2('0x132b')]()['title'](_0x1d06d2('0x1650'))[_0x1d06d2('0x1d03')](_0x1d06d2('0x2061')+_0x4cd75e[_0x1d06d2('0x1a60')]['length']+_0x1d06d2('0xac6')+_0x1d06d2('0x1a'))[_0x1d06d2('0xb2e')](_0x1d06d2('0x21a7'))[_0x1d06d2('0x1e25')](_0x4288ae)['ok']('OK')[_0x1d06d2('0x26c9')](_0x1d06d2('0x772'));_0x180992[_0x1d06d2('0xb9')](_0x41efee)[_0x1d06d2('0x11bf')](function(){const _0x5b5740=_0x1d06d2;_0x4cd75e['selectedGlobalCustomFields']['forEach'](function(_0x408800){_0x54efc0(_0x408800);}),_0x4cd75e[_0x5b5740('0x1a60')]=[];});}function _0x4a4c2c(){const _0x326511=_0x35e2cc;_0x4cd75e[_0x326511('0x1a60')]=[];}function _0xac918d(){const _0x2a1552=_0x35e2cc;_0x4cd75e[_0x2a1552('0x1a60')]=_0x4cd75e[_0x2a1552('0x27fc')][_0x2a1552('0x19b2')];}}const _0x2cba7e=_0x24545d;_0x4f5678[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0xcbc'),'$location',_0x21d0f5('0x1ca2'),'$q','$translate','toasty','lists','list',_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1'),_0x21d0f5('0xb25')];function _0x4f5678(_0x1289dd,_0x3f3830,_0x423dbb,_0x1b1537,_0xabf457,_0x38ae95,_0x290b16,_0x2edf49,_0xd0aea2,_0x53bb56,_0x1ca157,_0x1cc503,_0x1b4a42,_0x373183){const _0xea5edc=_0x21d0f5,_0x54d33c=this;_0x54d33c['currentUser']=_0x1ca157[_0xea5edc('0x2428')](),_0x54d33c[_0xea5edc('0x120f')]=[],_0x54d33c[_0xea5edc('0x23e1')]=_0x1b4a42,_0x54d33c['license']=_0x1cc503,_0x54d33c[_0xea5edc('0xb25')]=_0x373183,_0x54d33c[_0xea5edc('0x2c9')]={},_0x54d33c[_0xea5edc('0x2834')]=_0x54d33c[_0xea5edc('0x23e1')]&&_0x54d33c['setting'][_0xea5edc('0x1d4')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x54d33c[_0xea5edc('0x134b')]=_0xea5edc('0x11c6'),_0x54d33c[_0xea5edc('0x257d')]=angular[_0xea5edc('0x6fb')](_0xd0aea2),_0x54d33c[_0xea5edc('0x2410')]=_0x2edf49,_0x54d33c[_0xea5edc('0xf21')]=![];!_0x54d33c[_0xea5edc('0x257d')]&&(_0x54d33c['list']={},_0x54d33c[_0xea5edc('0x134b')]=_0xea5edc('0xd9f'),_0x54d33c[_0xea5edc('0xf21')]=!![]);_0x54d33c[_0xea5edc('0xd27')]=_0x460aa7,_0x54d33c[_0xea5edc('0x1bc0')]=_0x3743bd,_0x54d33c[_0xea5edc('0x1627')]=_0x2b1e43,_0x54d33c[_0xea5edc('0x1bd1')]=_0x3165ee,_0x54d33c[_0xea5edc('0xc4e')]=_0x2ac201;function _0x460aa7(){const _0x490e6c=_0xea5edc;_0x54d33c[_0x490e6c('0x120f')]=[],_0x53bb56[_0x490e6c('0xbef')][_0x490e6c('0x259')](_0x54d33c[_0x490e6c('0x257d')])['$promise'][_0x490e6c('0x11bf')](function(_0x533aec){const _0x376804=_0x490e6c;_0x54d33c[_0x376804('0x2410')][_0x376804('0x880')](_0x533aec['toJSON']()),_0x290b16[_0x376804('0x2693')]({'title':_0x376804('0x16c5'),'msg':_0x54d33c[_0x376804('0x257d')][_0x376804('0x1909')]?_0x54d33c[_0x376804('0x257d')][_0x376804('0x1909')]+'\x20has\x20been\x20created!':''}),_0x2ac201(_0x533aec);})[_0x490e6c('0x151d')](function(_0x2a893a){const _0x4ff151=_0x490e6c;if(_0x2a893a['data']&&_0x2a893a[_0x4ff151('0x4e8')][_0x4ff151('0x120f')]&&_0x2a893a[_0x4ff151('0x4e8')]['errors'][_0x4ff151('0x1e22')]){_0x54d33c[_0x4ff151('0x120f')]=_0x2a893a[_0x4ff151('0x4e8')][_0x4ff151('0x120f')]||[{'message':_0x2a893a[_0x4ff151('0xaab')](),'type':_0x4ff151('0x23d6')}];for(let _0x66bbf3=0x0;_0x66bbf3<_0x2a893a[_0x4ff151('0x4e8')][_0x4ff151('0x120f')][_0x4ff151('0x1e22')];_0x66bbf3+=0x1){_0x290b16[_0x4ff151('0x255')]({'title':_0x2a893a[_0x4ff151('0x4e8')][_0x4ff151('0x120f')][_0x66bbf3][_0x4ff151('0x19fd')],'msg':_0x2a893a[_0x4ff151('0x4e8')][_0x4ff151('0x120f')][_0x66bbf3][_0x4ff151('0x1b86')]});}}else _0x290b16['error']({'title':_0x2a893a[_0x4ff151('0xff9')]?_0x4ff151('0x574')+_0x2a893a[_0x4ff151('0xff9')]+_0x4ff151('0xb0b')+_0x2a893a[_0x4ff151('0x212f')]:_0x4ff151('0x23d6'),'msg':_0x2a893a[_0x4ff151('0x4e8')]?JSON[_0x4ff151('0x3e')](_0x2a893a[_0x4ff151('0x4e8')]['message']):_0x2a893a[_0x4ff151('0xaab')]()});});}function _0x3743bd(){const _0x31fea1=_0xea5edc;_0x54d33c[_0x31fea1('0x120f')]=[],_0x53bb56[_0x31fea1('0xbef')][_0x31fea1('0x5ab')]({'id':_0x54d33c[_0x31fea1('0x257d')]['id']},_0x54d33c[_0x31fea1('0x257d')])[_0x31fea1('0x1549')][_0x31fea1('0x11bf')](function(_0x4f8f8b){const _0x1b441f=_0x31fea1,_0x2b002f=_0x36f548()[_0x1b441f('0x1ad4')](_0x54d33c[_0x1b441f('0x2410')],{'id':_0x4f8f8b['id']});_0x2b002f&&_0x36f548()[_0x1b441f('0x47b')](_0x2b002f,_0x36f548()[_0x1b441f('0x258')](_0x4f8f8b[_0x1b441f('0x2866')](),_0x36f548()[_0x1b441f('0xe22')](_0x2b002f))),_0x290b16['success']({'title':'List\x20properly\x20saved!','msg':_0x54d33c['list'][_0x1b441f('0x1909')]?_0x54d33c[_0x1b441f('0x257d')][_0x1b441f('0x1909')]+_0x1b441f('0x1a78'):''}),_0x2ac201(_0x4f8f8b);})[_0x31fea1('0x151d')](function(_0x51fb4f){const _0x28a85b=_0x31fea1;if(_0x51fb4f['data']&&_0x51fb4f['data'][_0x28a85b('0x120f')]&&_0x51fb4f[_0x28a85b('0x4e8')][_0x28a85b('0x120f')][_0x28a85b('0x1e22')]){_0x54d33c[_0x28a85b('0x120f')]=_0x51fb4f[_0x28a85b('0x4e8')][_0x28a85b('0x120f')]||[{'message':_0x51fb4f[_0x28a85b('0xaab')](),'type':_0x28a85b('0x27a5')}];for(let _0x9fce3f=0x0;_0x9fce3f<_0x51fb4f[_0x28a85b('0x4e8')][_0x28a85b('0x120f')][_0x28a85b('0x1e22')];_0x9fce3f++){_0x290b16[_0x28a85b('0x255')]({'title':_0x51fb4f[_0x28a85b('0x4e8')][_0x28a85b('0x120f')][_0x9fce3f][_0x28a85b('0x19fd')],'msg':_0x51fb4f['data'][_0x28a85b('0x120f')][_0x9fce3f][_0x28a85b('0x1b86')]});}}else _0x290b16[_0x28a85b('0x255')]({'title':_0x51fb4f['status']?_0x28a85b('0x574')+_0x51fb4f['status']+_0x28a85b('0xb0b')+_0x51fb4f['statusText']:_0x28a85b('0x27a5'),'msg':_0x51fb4f['data']?JSON[_0x28a85b('0x3e')](_0x51fb4f[_0x28a85b('0x4e8')][_0x28a85b('0x1b86')]):_0x51fb4f[_0x28a85b('0xaab')]()});});}function _0x2b1e43(_0x31504e){const _0x203c55=_0xea5edc;_0x54d33c[_0x203c55('0x120f')]=[];const _0x4574fc=_0x1b1537[_0x203c55('0x132b')]()[_0x203c55('0x134b')]('Are\x20you\x20sure?')[_0x203c55('0x252a')](_0x203c55('0x1e32'))[_0x203c55('0xb2e')]('Delete\x20List')['ok'](_0x203c55('0x1167'))[_0x203c55('0x26c9')](_0x203c55('0x784'))[_0x203c55('0x1e25')](_0x31504e);_0x1b1537['show'](_0x4574fc)[_0x203c55('0x11bf')](function(){const _0x2eea93=_0x203c55;_0x53bb56[_0x2eea93('0xbef')]['delete']({'id':_0x54d33c[_0x2eea93('0x257d')]['id']})['$promise'][_0x2eea93('0x11bf')](function(){const _0x185e46=_0x2eea93;_0x36f548()[_0x185e46('0x14a5')](_0x54d33c[_0x185e46('0x2410')],{'id':_0x54d33c[_0x185e46('0x257d')]['id']}),_0x290b16[_0x185e46('0x2693')]({'title':'List\x20properly\x20deleted!','msg':(_0x54d33c['list'][_0x185e46('0x1909')]||'list')+_0x185e46('0x433')}),_0x2ac201(_0x54d33c[_0x185e46('0x257d')]);})['catch'](function(_0x5ea0b7){const _0x38cf7e=_0x2eea93;if(_0x5ea0b7['data']&&_0x5ea0b7[_0x38cf7e('0x4e8')][_0x38cf7e('0x120f')]&&_0x5ea0b7[_0x38cf7e('0x4e8')][_0x38cf7e('0x120f')][_0x38cf7e('0x1e22')]){_0x54d33c[_0x38cf7e('0x120f')]=_0x5ea0b7[_0x38cf7e('0x4e8')][_0x38cf7e('0x120f')]||[{'message':_0x5ea0b7[_0x38cf7e('0xaab')](),'type':_0x38cf7e('0xf1c')}];for(let _0x40069b=0x0;_0x40069b<_0x5ea0b7[_0x38cf7e('0x4e8')]['errors'][_0x38cf7e('0x1e22')];_0x40069b++){_0x290b16['error']({'title':_0x5ea0b7[_0x38cf7e('0x4e8')]['errors'][_0x40069b][_0x38cf7e('0x19fd')],'msg':_0x5ea0b7['data'][_0x38cf7e('0x120f')][_0x40069b][_0x38cf7e('0x1b86')]});}}else _0x290b16['error']({'title':_0x5ea0b7['status']?'API:'+_0x5ea0b7['status']+_0x38cf7e('0xb0b')+_0x5ea0b7[_0x38cf7e('0x212f')]:_0x38cf7e('0xf1c'),'msg':_0x5ea0b7[_0x38cf7e('0x4e8')]?JSON['stringify'](_0x5ea0b7['data'][_0x38cf7e('0x1b86')]):_0x5ea0b7[_0x38cf7e('0x1b86')]||_0x5ea0b7['toString']()});});},function(){});}function _0x3165ee(_0x4a9636){return _0x4a9636===null?undefined:new Date(_0x4a9636);}function _0x2ac201(_0x27dc10){_0x1b1537['hide'](_0x27dc10);}}const _0x446a66=_0x4f5678;_0x1e6e80['$inject']=[_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0x142d'),_0x21d0f5('0x12a5'),'list',_0x21d0f5('0x2410'),_0x21d0f5('0x25f9'),_0x21d0f5('0xb6b'),_0x21d0f5('0x1150'),_0x21d0f5('0xb25')];function _0x1e6e80(_0x32040a,_0x38cf00,_0x111588,_0x36d2c8,_0x1801d4,_0x11b87c,_0xbc276a,_0x33dae3,_0x4a3968,_0x529607){const _0x1c06c0=_0x21d0f5,_0x37680b=this;_0x37680b[_0x1c06c0('0x32a')]=_0x4a3968[_0x1c06c0('0x2428')](),_0x37680b[_0x1c06c0('0x257d')]=_0x1801d4,_0x37680b[_0x1c06c0('0xb25')]=_0x529607,_0x37680b['realtime']=_0xbc276a,_0x37680b['items']=[],_0x37680b[_0x1c06c0('0x63')]=[],_0x37680b[_0x1c06c0('0x26cc')]=[],_0x37680b[_0x1c06c0('0x1c6f')]=[],_0x37680b[_0x1c06c0('0x21ed')]=[],_0x37680b['pendingChanges']=![],_0x37680b[_0x1c06c0('0x277c')]=_0x78f554,_0x37680b[_0x1c06c0('0x280')]=_0x480a24,_0x37680b[_0x1c06c0('0xc4e')]=_0x12cebc,_0x37680b['dualMultiselectOptions']={'readOnly':!_0x37680b[_0x1c06c0('0xb25')][_0x1c06c0('0x25db')],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x1c06c0('0x1909'),'line1':_0x1c06c0('0x27af'),'line2':[_0x1c06c0('0x1909'),_0x1c06c0('0x1a04')],'line3':'','labelAll':_0x33dae3[_0x1c06c0('0x10c2')]('APP.ALL_AGENTS'),'labelSelected':_0x33dae3[_0x1c06c0('0x10c2')]('APP.SELECTED_AGENTS'),'transferCallback':function(){const _0x570249=_0x1c06c0,_0xa6f20a=_0x36f548()['xorBy'](_0x37680b[_0x570249('0x21ed')],_0x37680b[_0x570249('0x26cc')],'id');_0x37680b[_0x570249('0x1eda')]=_0x36f548()['isEmpty'](_0xa6f20a)?![]:!![];}};function _0x78f554(){const _0x599fc5=_0x1c06c0;return _0x4a3968['hasRole']('admin')?_0x532894()[_0x599fc5('0x151d')](function(_0x5b4a09){const _0x419285=_0x599fc5;_0x111588[_0x419285('0x255')]({'title':_0x5b4a09['status']?_0x419285('0x574')+_0x5b4a09[_0x419285('0xff9')]+_0x419285('0xb0b')+_0x5b4a09[_0x419285('0x212f')]:_0x419285('0x912'),'msg':_0x5b4a09[_0x419285('0xff9')]?JSON['stringify'](_0x5b4a09[_0x419285('0x4e8')]):_0x5b4a09['toString']()});}):_0x531420()[_0x599fc5('0x11bf')](function(_0x1efab4){const _0x2eecf5=_0x599fc5;return _0x37680b[_0x2eecf5('0xe6')]=_0x1efab4,_0x532894();})[_0x599fc5('0x151d')](function(_0x474570){const _0x46bfe1=_0x599fc5;_0x111588[_0x46bfe1('0x255')]({'title':_0x474570[_0x46bfe1('0xff9')]?_0x46bfe1('0x574')+_0x474570[_0x46bfe1('0xff9')]+_0x46bfe1('0xb0b')+_0x474570['statusText']:_0x46bfe1('0x912'),'msg':_0x474570['status']?JSON[_0x46bfe1('0x3e')](_0x474570[_0x46bfe1('0x4e8')]):_0x474570[_0x46bfe1('0xaab')]()});});}function _0x531420(){return _0x38cf00(function(_0x493ba8,_0x37c411){const _0x99d72a=a0_0xaf0c;_0x36d2c8['userProfileSection'][_0x99d72a('0xbaa')]({'userProfileId':_0x37680b[_0x99d72a('0x32a')]['userProfileId'],'name':_0x99d72a('0x4b1')})['$promise'][_0x99d72a('0x11bf')](function(_0x59237a){const _0x30a9ca=_0x99d72a,_0x103715=_0x59237a&&_0x59237a[_0x30a9ca('0x19b2')]?_0x59237a[_0x30a9ca('0x19b2')][0x0]:null;_0x493ba8(_0x103715);})['catch'](function(_0x16bbe4){_0x37c411(_0x16bbe4);});});}function _0x532894(){return _0x38cf00(function(_0x4eddca,_0x1b4a4f){const _0x1d9e1e=a0_0xaf0c;return _0x44aec5()[_0x1d9e1e('0x11bf')](function(_0x1ce33e){const _0x32da6c=_0x1d9e1e;return _0x37680b[_0x32da6c('0x22')]=_0x1ce33e[_0x32da6c('0x19b2')]?_0x1ce33e['rows']:[],_0x4a3968[_0x32da6c('0x4ee')]('admin')?_0x1ce33e:_0x37680b[_0x32da6c('0xe6')]?_0x37680b[_0x32da6c('0xe6')][_0x32da6c('0xf11')]?_0x1ce33e:_0xba035d():null;})[_0x1d9e1e('0x11bf')](function(_0x49d1bb){const _0x2ab95a=_0x1d9e1e,_0x1ab8c0=_0x49d1bb&&_0x49d1bb[_0x2ab95a('0x19b2')]?_0x49d1bb[_0x2ab95a('0x19b2')]:[];return _0x37680b['allowedItems']=_0x36f548()[_0x2ab95a('0x2171')](_0x1ab8c0,function(_0x6ffe8){const _0x301e88=_0x2ab95a;return _0x36f548()[_0x301e88('0x1ad4')](_0x37680b[_0x301e88('0x22')],{'id':_0x4a3968[_0x301e88('0x4ee')](_0x301e88('0xf45'))||_0x37680b['section'][_0x301e88('0xf11')]?_0x6ffe8['id']:_0x6ffe8[_0x301e88('0x15a5')]});}),_0x37680b[_0x2ab95a('0x1c6f')]=angular[_0x2ab95a('0x6fb')](_0x37680b['allowedItems']),_0x37680b[_0x2ab95a('0x22')][_0x2ab95a('0x1f88')](function(_0x2ff5f7){const _0x4ea600=_0x2ab95a,_0x2f866f=_0x36f548()[_0x4ea600('0x1ad4')](_0x37680b[_0x4ea600('0x63')],{'id':_0x2ff5f7['id']});_0x4a3968[_0x4ea600('0x4ee')](_0x4ea600('0xf45'))?_0x2ff5f7[_0x4ea600('0xde9')]=!![]:_0x2ff5f7['isValid']=typeof _0x2f866f!==_0x4ea600('0x13e9')?!![]:![];}),_0x341cf8();})[_0x1d9e1e('0x11bf')](function(_0x478548){const _0x5569fd=_0x1d9e1e,_0x5f3c8c=_0x478548&&_0x478548[_0x5569fd('0x19b2')]?_0x478548['rows']:[];_0x37680b[_0x5569fd('0x26cc')]=_0x36f548()['map'](_0x5f3c8c,function(_0x216c91){const _0x29926a=_0x5569fd,_0x5788b3=_0x36f548()['find'](_0x37680b[_0x29926a('0x22')],{'id':_0x216c91['id']});return _0x5788b3[_0x29926a('0xf47')]=_0x216c91[_0x29926a('0x1522')]?_0x29926a('0x1caa')+_0x216c91[_0x29926a('0x1522')]['penalty']:'',_0x5788b3[_0x29926a('0x1a04')]=typeof _0x216c91[_0x29926a('0x1a04')]!==_0x29926a('0x13e9')?'<'+_0x216c91['internal']+'>':'',_0x5788b3;}),_0x37680b[_0x5569fd('0x21ed')]=angular[_0x5569fd('0x6fb')](_0x37680b[_0x5569fd('0x26cc')]),_0x37680b['dualMultiselectOptions'][_0x5569fd('0x26cc')]=_0x37680b[_0x5569fd('0x26cc')],_0x37680b['dualMultiselectOptions']['items']=_0x36f548()[_0x5569fd('0x2753')](_0x37680b[_0x5569fd('0x63')],_0x37680b[_0x5569fd('0xec5')][_0x5569fd('0x26cc')],'id'),_0x4eddca();})[_0x1d9e1e('0x151d')](function(_0x9f98bb){_0x1b4a4f(_0x9f98bb);});});}function _0xba035d(){return _0x38cf00(function(_0x19af8e,_0x8895e){const _0x4ce00c=a0_0xaf0c;return _0x36d2c8[_0x4ce00c('0x26d1')][_0x4ce00c('0xbaa')]({'sectionId':_0x37680b[_0x4ce00c('0xe6')]['id'],'nolimit':!![]})[_0x4ce00c('0x1549')][_0x4ce00c('0x11bf')](function(_0x4521e1){_0x19af8e(_0x4521e1);})[_0x4ce00c('0x151d')](function(_0x29df8f){_0x8895e(_0x29df8f);});});}function _0x341cf8(){return _0x38cf00(function(_0x4ebcd9,_0x3e705b){const _0x5497fa=a0_0xaf0c;return _0x36d2c8['cmList'][_0x5497fa('0x2783')]({'id':_0x37680b[_0x5497fa('0x257d')]['id'],'fields':_0x5497fa('0x13d3'),'nolimit':!![],'role':_0x5497fa('0x18c4')})['$promise'][_0x5497fa('0x11bf')](function(_0x1593b6){_0x4ebcd9(_0x1593b6);})[_0x5497fa('0x151d')](function(_0x15d3bd){_0x3e705b(_0x15d3bd);});});}function _0x44aec5(){return _0x38cf00(function(_0x1a5629,_0x8c1396){const _0x4b06ae=a0_0xaf0c;return _0x36d2c8[_0x4b06ae('0x21d9')][_0x4b06ae('0xbaa')]({'fields':_0x4b06ae('0x13d3'),'nolimit':!![],'role':_0x4b06ae('0x18c4')})[_0x4b06ae('0x1549')][_0x4b06ae('0x11bf')](function(_0x32c543){_0x1a5629(_0x32c543);})[_0x4b06ae('0x151d')](function(_0x4774fc){_0x8c1396(_0x4774fc);});});}function _0x4145c5(_0x1f7d9b){return _0x38cf00(function(_0x10fef0,_0x3982fe){const _0x7624a8=a0_0xaf0c;_0x36f548()[_0x7624a8('0x1fc5')](_0x1f7d9b)?_0x10fef0():_0x36d2c8[_0x7624a8('0xbef')]['addAgents']({'id':_0x37680b[_0x7624a8('0x257d')]['id'],'ids':_0x36f548()[_0x7624a8('0x2171')](_0x1f7d9b,'id')})[_0x7624a8('0x1549')][_0x7624a8('0x11bf')](function(){_0x10fef0();})[_0x7624a8('0x151d')](function(_0x36b47b){_0x3982fe(_0x36b47b);});});}function _0xb0b8be(_0x40b475){return _0x38cf00(function(_0x86f67f,_0x4c1bdd){const _0x200dcb=a0_0xaf0c;_0x36f548()[_0x200dcb('0x1fc5')](_0x40b475)?_0x86f67f():_0x36d2c8[_0x200dcb('0xbef')][_0x200dcb('0x1ec0')]({'id':_0x37680b[_0x200dcb('0x257d')]['id'],'ids':_0x36f548()[_0x200dcb('0x2171')](_0x40b475,'id')})[_0x200dcb('0x1549')][_0x200dcb('0x11bf')](function(){_0x86f67f();})['catch'](function(_0x381dda){_0x4c1bdd(_0x381dda);});});}function _0x480a24(){const _0x7b67ac=_0x1c06c0,_0x438183=_0x36f548()[_0x7b67ac('0x2753')](_0x37680b[_0x7b67ac('0x21ed')],_0x37680b['selectedItems'],'id'),_0x39c5c9=_0x36f548()['differenceBy'](_0x37680b[_0x7b67ac('0x26cc')],_0x37680b[_0x7b67ac('0x21ed')],'id');return _0xb0b8be(_0x438183)[_0x7b67ac('0x11bf')](function(){return _0x4145c5(_0x39c5c9);})[_0x7b67ac('0x11bf')](function(){const _0x529882=_0x7b67ac;_0x37680b[_0x529882('0x1eda')]=![],_0x37680b['startingAllowedItems']=angular['copy'](_0x37680b['allowedItems']),_0x37680b[_0x529882('0x21ed')]=angular[_0x529882('0x6fb')](_0x37680b[_0x529882('0x26cc')]),_0x111588[_0x529882('0x2693')]({'title':_0x529882('0x2243'),'msg':_0x529882('0x2273')});})[_0x7b67ac('0x151d')](function(_0xc7380a){const _0x3c469b=_0x7b67ac;_0x111588[_0x3c469b('0x255')]({'title':_0xc7380a[_0x3c469b('0xff9')]?'API:'+_0xc7380a[_0x3c469b('0xff9')]+_0x3c469b('0xb0b')+_0xc7380a[_0x3c469b('0x212f')]:_0x3c469b('0x1b7f'),'msg':_0xc7380a['status']?JSON[_0x3c469b('0x3e')](_0xc7380a[_0x3c469b('0x4e8')]):_0xc7380a[_0x3c469b('0xaab')]()});});}function _0x12cebc(){_0x32040a['hide']();}}const _0x3b22d8=_0x1e6e80,_0x2d7dd7=_0x351988['p']+_0x21d0f5('0x6c3');_0x1895b5[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x5d8'),_0x21d0f5('0x1b80'),_0x21d0f5('0xcbc'),'$q','$translate',_0x21d0f5('0x17f5'),'$mdDialog','$document',_0x21d0f5('0x142d'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150')];function _0x1895b5(_0x40f341,_0xa7dd5a,_0x580182,_0x418c9f,_0x25fa51,_0x5b581a,_0x4c45bb,_0x147a2c,_0x106102,_0x8d894d,_0x370499){const _0x4ac25f=_0x21d0f5,_0x51d497=this;_0x51d497[_0x4ac25f('0x32a')]=_0x370499[_0x4ac25f('0x2428')](),_0x51d497[_0x4ac25f('0x257d')]={},_0x51d497[_0x4ac25f('0x758')]={'count':0x0,'rows':[]},_0x51d497[_0x4ac25f('0x8d5')]=[],_0x51d497[_0x4ac25f('0xb25')],_0x51d497[_0x4ac25f('0x1f2a')]={'fields':'createdAt,updatedAt,id,alias,type,values,required,clickToAction,actionType','limit':0xa,'page':0x1},_0x51d497[_0x4ac25f('0x5fd')]=_0x36f548()['keyBy']([{'option':_0x4ac25f('0x1823'),'value':_0x4ac25f('0x4ed')},{'option':'Select','value':_0x4ac25f('0x1f42')},{'option':_0x4ac25f('0x211b'),'value':'\x27number\x27'},{'option':_0x4ac25f('0x102e'),'value':_0x4ac25f('0xf4c')},{'option':_0x4ac25f('0xfbc'),'value':'\x27datetime\x27'}],function(_0x41a96f){const _0x929d09=_0x4ac25f;return _0x36f548()[_0x929d09('0x814')](_0x41a96f[_0x929d09('0x10cc')],new RegExp('\x27','g'),'');}),_0x51d497[_0x4ac25f('0x1396')]=_0x36f548()[_0x4ac25f('0x2130')]([{'option':'Voice','value':'\x27voice\x27'}],function(_0x5d6378){const _0x30c621=_0x4ac25f;return _0x36f548()[_0x30c621('0x814')](_0x5d6378['value'],new RegExp('\x27','g'),'');}),_0x51d497['init']=_0x4e188f,_0x51d497[_0x4ac25f('0x560')]=_0x4ee502,_0x51d497[_0x4ac25f('0x2693')]=_0x2edc43,_0x51d497['getListCustomFields']=_0x6b23fd,_0x51d497[_0x4ac25f('0x1159')]=_0x4fcbf6,_0x51d497[_0x4ac25f('0xe0c')]=_0xf72b72,_0x51d497[_0x4ac25f('0x1ecb')]=_0x4899f3,_0x51d497['deleteSelectedListCustomFields']=_0x3f08e3;function _0x4e188f(_0x2d2667,_0x4d324e){const _0x52d726=_0x4ac25f;_0x51d497['list']=_0x2d2667,_0x51d497[_0x52d726('0xb25')]=typeof _0x4d324e!=='undefined'?_0x4d324e:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x51d497[_0x52d726('0x1f2a')]['ListId']=_0x51d497['list']['id'],_0x51d497[_0x52d726('0x1f2a')]['id']=_0x51d497[_0x52d726('0x257d')]['id'],_0x6b23fd();}function _0x4ee502(_0x437e41,_0x276724){const _0x321199=_0x4ac25f,_0x2fead1=_0x4c45bb[_0x321199('0x132b')]()[_0x321199('0x134b')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20customField?')[_0x321199('0x1d03')](_0x321199('0x2061')+(_0x437e41[_0x321199('0x1909')]||_0x437e41['id']&&_0x36f548()[_0x321199('0x24b5')]('customField\x20#')+_0x437e41['id']||_0x321199('0x2830'))+_0x321199('0x1c78')+'\x20will\x20be\x20deleted.')[_0x321199('0xb2e')]('delete\x20customField')['targetEvent'](_0x276724)['ok']('OK')[_0x321199('0x26c9')]('CANCEL');_0x4c45bb[_0x321199('0xb9')](_0x2fead1)['then'](function(){_0x4899f3(_0x437e41);},function(){const _0x689b32=_0x321199;console[_0x689b32('0xc78')](_0x689b32('0x772'));});}function _0x2edc43(_0x1f38bb){const _0x1402dc=_0x4ac25f;_0x51d497[_0x1402dc('0x758')]=_0x1f38bb||{'count':0x0,'rows':[]};}function _0x6b23fd(){const _0x38ae34=_0x4ac25f;_0x51d497[_0x38ae34('0x1f2a')][_0x38ae34('0x1393')]=(_0x51d497[_0x38ae34('0x1f2a')][_0x38ae34('0x1c2')]-0x1)*_0x51d497['query'][_0x38ae34('0xd5c')],_0x51d497[_0x38ae34('0x13f')]=_0x8d894d[_0x38ae34('0xbef')][_0x38ae34('0x1281')](_0x51d497[_0x38ae34('0x1f2a')],_0x2edc43)[_0x38ae34('0x1549')];}function _0x4fcbf6(_0x2ff4ac,_0x5625b0){const _0x1127c4=_0x4ac25f;_0x4c45bb[_0x1127c4('0xb9')]({'controller':_0x1127c4('0x159'),'controllerAs':'vm','templateUrl':_0x2d7dd7,'parent':angular[_0x1127c4('0x1e73')](_0x147a2c[_0x1127c4('0x1d2')]),'targetEvent':_0x2ff4ac,'clickOutsideToClose':!![],'locals':{'list':_0x51d497[_0x1127c4('0x257d')],'customField':_0x5625b0,'customFields':_0x51d497[_0x1127c4('0x758')][_0x1127c4('0x19b2')],'license':null,'setting':null,'crudPermissions':_0x51d497[_0x1127c4('0xb25')]}});}function _0x4899f3(_0x2ed0fd){const _0x42dac6=_0x4ac25f;_0x8d894d[_0x42dac6('0x1540')]['delete']({'id':_0x2ed0fd['id']})['$promise']['then'](function(){const _0x990654=_0x42dac6;_0x36f548()[_0x990654('0x14a5')](_0x51d497[_0x990654('0x758')][_0x990654('0x19b2')],{'id':_0x2ed0fd['id']}),_0x51d497['listCustomFields'][_0x990654('0x27d2')]-=0x1,!_0x51d497['listCustomFields']['rows'][_0x990654('0x1e22')]&&_0x6b23fd(),_0x106102[_0x990654('0x2693')]({'title':_0x990654('0xe78'),'msg':_0x2ed0fd[_0x990654('0x1909')]?_0x2ed0fd[_0x990654('0x1909')]+'\x20has\x20been\x20deleted!':''});})['catch'](function(_0x3007b1){const _0x5af914=_0x42dac6;if(_0x3007b1[_0x5af914('0x4e8')]&&_0x3007b1[_0x5af914('0x4e8')][_0x5af914('0x120f')]&&_0x3007b1[_0x5af914('0x4e8')][_0x5af914('0x120f')]['length']){_0x51d497[_0x5af914('0x120f')]=_0x3007b1[_0x5af914('0x4e8')][_0x5af914('0x120f')]||[{'message':_0x3007b1[_0x5af914('0xaab')](),'type':'SYSTEM:GETcmList'}];for(let _0x4a7ff0=0x0;_0x4a7ff0<_0x3007b1[_0x5af914('0x4e8')][_0x5af914('0x120f')][_0x5af914('0x1e22')];_0x4a7ff0++){_0x106102[_0x5af914('0x255')]({'title':_0x3007b1[_0x5af914('0x4e8')][_0x5af914('0x120f')][_0x4a7ff0][_0x5af914('0x19fd')],'msg':_0x3007b1[_0x5af914('0x4e8')][_0x5af914('0x120f')][_0x4a7ff0][_0x5af914('0x1b86')]});}}else _0x106102['error']({'title':_0x3007b1[_0x5af914('0xff9')]?_0x5af914('0x574')+_0x3007b1[_0x5af914('0xff9')]+_0x5af914('0xb0b')+_0x3007b1[_0x5af914('0x212f')]:_0x5af914('0x82'),'msg':_0x3007b1[_0x5af914('0x4e8')]?JSON[_0x5af914('0x3e')](_0x3007b1[_0x5af914('0x4e8')][_0x5af914('0x1b86')]):_0x3007b1[_0x5af914('0x1b86')]||_0x3007b1[_0x5af914('0xaab')]()});});}function _0xf72b72(){const _0x36661c=_0x4ac25f,_0x2fe598=angular[_0x36661c('0x6fb')](_0x51d497[_0x36661c('0x8d5')]);return _0x51d497[_0x36661c('0x8d5')]=[],_0x2fe598;}function _0x3f08e3(_0x3ff713){const _0x2f7897=_0x4ac25f,_0x353119=_0x4c45bb['confirm']()[_0x2f7897('0x134b')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20customFields?')['htmlContent'](_0x2f7897('0x2061')+_0x51d497[_0x2f7897('0x8d5')][_0x2f7897('0x1e22')]+'\x20selected'+_0x2f7897('0x1a'))[_0x2f7897('0xb2e')](_0x2f7897('0x2d'))[_0x2f7897('0x1e25')](_0x3ff713)['ok']('OK')['cancel'](_0x2f7897('0x772'));_0x4c45bb[_0x2f7897('0xb9')](_0x353119)[_0x2f7897('0x11bf')](function(){const _0x4b6eb7=_0x2f7897;_0x51d497['selectedListCustomFields'][_0x4b6eb7('0x1f88')](function(_0x3bea04){_0x4899f3(_0x3bea04);}),_0x51d497[_0x4b6eb7('0x8d5')]=[];});}let _0x175aa3=!![],_0x128a4d=0x1;_0xa7dd5a[_0x4ac25f('0x2087')](_0x4ac25f('0x1d12'),function(_0x591824,_0x2cb785){const _0x3df308=_0x4ac25f;_0x175aa3?_0x5b581a(function(){_0x175aa3=![];}):(!_0x2cb785&&(_0x128a4d=_0x51d497[_0x3df308('0x1f2a')]['page']),_0x591824!==_0x2cb785&&(_0x51d497[_0x3df308('0x1f2a')][_0x3df308('0x1c2')]=0x1),!_0x591824&&(_0x51d497[_0x3df308('0x1f2a')][_0x3df308('0x1c2')]=_0x128a4d),_0x6b23fd());});}const _0x31f6e8=_0x1895b5;_0x47c441[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0xcbc'),_0x21d0f5('0x16b9'),_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0xb6b'),_0x21d0f5('0x142d'),'customFields',_0x21d0f5('0x2830'),'api',_0x21d0f5('0x1150'),'license',_0x21d0f5('0x23e1'),'crudPermissions'];function _0x47c441(_0x27c9c4,_0xd2d948,_0x457ebc,_0x57c7d3,_0x15f453,_0x338231,_0x2d1b4e,_0x306ea2,_0xf973a4,_0x55deeb,_0x15ea50,_0x3d6a25,_0x2a6213,_0x4f9d91){const _0x56c73b=_0x21d0f5,_0x2aaffd=this;_0x2aaffd[_0x56c73b('0x32a')]=_0x15ea50[_0x56c73b('0x2428')](),_0x2aaffd[_0x56c73b('0x120f')]=[],_0x2aaffd[_0x56c73b('0x23e1')]=_0x2a6213,_0x2aaffd[_0x56c73b('0x17ff')]=_0x3d6a25,_0x2aaffd[_0x56c73b('0xb25')]=_0x4f9d91,_0x2aaffd['hasModulePermissions']={},_0x2aaffd[_0x56c73b('0x2834')]=_0x2aaffd[_0x56c73b('0x23e1')]&&_0x2aaffd[_0x56c73b('0x23e1')][_0x56c73b('0x1d4')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2aaffd[_0x56c73b('0x134b')]='CONTACTMANAGER.EDIT_CUSTOMFIELD',_0x2aaffd[_0x56c73b('0x27ee')]={'animation':0x320,'sort':!![],'onSort':function(){const _0xf168d5=_0x56c73b;_0x27c9c4['customFieldForm'][_0xf168d5('0x1769')]=![];}},_0x2aaffd[_0x56c73b('0x2830')]=_0xf973a4,_0x2aaffd['customFields']=_0x306ea2,_0x2aaffd[_0x56c73b('0x1cf4')]=![];!_0x2aaffd[_0x56c73b('0x2830')]&&(_0x2aaffd['customField']={'type':_0x56c73b('0x25ed'),'actionType':_0x56c73b('0x1bc3')},_0x2aaffd[_0x56c73b('0x134b')]=_0x56c73b('0x2473'),_0x2aaffd[_0x56c73b('0x1cf4')]=!![]);_0xd2d948['params']['id']&&(_0x2aaffd[_0x56c73b('0x2830')][_0x56c73b('0x1e91')]=_0xd2d948[_0x56c73b('0x1ab3')]['id']);_0x27c9c4[_0x56c73b('0x2087')]('vm.customField.type',function(_0x3cfc45,_0x362a74){const _0x19ac6e=_0x56c73b;if(_0x3cfc45!==_0x362a74)switch(_0x3cfc45){case _0x19ac6e('0x25ed'):_0x2aaffd['customField']['values']='';break;case _0x19ac6e('0x2350'):_0x2aaffd[_0x19ac6e('0x2830')][_0x19ac6e('0x1643')]=[];break;default:}}),_0x2aaffd['addNewCustomField']=_0x9a1943,_0x2aaffd[_0x56c73b('0xb02')]=_0x38f744,_0x2aaffd['deleteCustomField']=_0x2bb5d7,_0x2aaffd[_0x56c73b('0x1bd1')]=_0x1250b1,_0x2aaffd[_0x56c73b('0x1be3')]=_0x436492,_0x2aaffd[_0x56c73b('0xd98')]=_0x15a081,_0x2aaffd['removeItems']=_0x154527,_0x2aaffd[_0x56c73b('0xc4e')]=_0xa88d1d;function _0x436492(_0xd5ea9a){const _0x1e5daf=_0x56c73b;_0xd5ea9a[_0x1e5daf('0x105d')]({'value':'New\x20Item'}),_0x27c9c4[_0x1e5daf('0x10dc')][_0x1e5daf('0x1769')]=![];}function _0x15a081(_0x5bac29,_0xe431a2){const _0x28d2c1=_0x56c73b;_0x5bac29[_0x28d2c1('0x1ae')](_0xe431a2,0x1),_0x27c9c4[_0x28d2c1('0x10dc')][_0x28d2c1('0x1769')]=![];}function _0x154527(_0x2dc05c){const _0x46eb97=_0x56c73b,_0x4de5c2=_0x2dc05c['length'];for(let _0x341bc6=0x0;_0x341bc6<_0x4de5c2;_0x341bc6++){_0x2dc05c['splice'](0x0,0x1);}_0x27c9c4[_0x46eb97('0x10dc')][_0x46eb97('0x1769')]=![];}function _0x9a1943(){const _0x55cb92=_0x56c73b;_0x2aaffd[_0x55cb92('0x120f')]=[],_0x55deeb[_0x55cb92('0xbef')][_0x55cb92('0x22e0')]({'id':_0xd2d948[_0x55cb92('0x1ab3')]['id']},_0x2aaffd['customField'])['$promise'][_0x55cb92('0x11bf')](function(_0x3ff623){const _0x5b6008=_0x55cb92;_0x2aaffd[_0x5b6008('0x8a1')][_0x5b6008('0x880')](_0x3ff623['toJSON']()),_0x2d1b4e[_0x5b6008('0x2693')]({'title':_0x5b6008('0x2477'),'msg':_0x2aaffd[_0x5b6008('0x2830')]['name']?_0x2aaffd[_0x5b6008('0x2830')][_0x5b6008('0x1909')]+'\x20has\x20been\x20created!':''}),_0xa88d1d(_0x3ff623);})['catch'](function(_0x2f1f3b){const _0x1a6680=_0x55cb92;if(_0x2f1f3b[_0x1a6680('0x4e8')]&&_0x2f1f3b['data']['errors']&&_0x2f1f3b[_0x1a6680('0x4e8')][_0x1a6680('0x120f')][_0x1a6680('0x1e22')]){_0x2aaffd['errors']=_0x2f1f3b[_0x1a6680('0x4e8')][_0x1a6680('0x120f')]||[{'message':_0x2f1f3b[_0x1a6680('0xaab')](),'type':_0x1a6680('0x25b5')}];for(let _0x3ec6a7=0x0;_0x3ec6a7<_0x2f1f3b[_0x1a6680('0x4e8')][_0x1a6680('0x120f')]['length'];_0x3ec6a7+=0x1){_0x2d1b4e[_0x1a6680('0x255')]({'title':_0x2f1f3b[_0x1a6680('0x4e8')][_0x1a6680('0x120f')][_0x3ec6a7][_0x1a6680('0x19fd')],'msg':_0x2f1f3b[_0x1a6680('0x4e8')][_0x1a6680('0x120f')][_0x3ec6a7][_0x1a6680('0x1b86')]});}}else _0x2d1b4e[_0x1a6680('0x255')]({'title':_0x2f1f3b['status']?'API:'+_0x2f1f3b[_0x1a6680('0xff9')]+'\x20-\x20'+_0x2f1f3b[_0x1a6680('0x212f')]:_0x1a6680('0x25b5'),'msg':_0x2f1f3b['data']?JSON[_0x1a6680('0x3e')](_0x2f1f3b[_0x1a6680('0x4e8')][_0x1a6680('0x1b86')]):_0x2f1f3b[_0x1a6680('0xaab')]()});});}function _0x38f744(){const _0xb51e1c=_0x56c73b;_0x2aaffd[_0xb51e1c('0x120f')]=[],_0x55deeb[_0xb51e1c('0x1540')][_0xb51e1c('0x5ab')]({'id':_0x2aaffd[_0xb51e1c('0x2830')]['id']},_0x2aaffd[_0xb51e1c('0x2830')])[_0xb51e1c('0x1549')][_0xb51e1c('0x11bf')](function(_0x2e0521){const _0x18344e=_0xb51e1c,_0x102028=_0x36f548()['find'](_0x2aaffd[_0x18344e('0x8a1')],{'id':_0x2e0521['id']});_0x102028&&_0x36f548()[_0x18344e('0x47b')](_0x102028,_0x36f548()[_0x18344e('0x258')](_0x2e0521[_0x18344e('0x2866')](),_0x36f548()[_0x18344e('0xe22')](_0x102028))),_0x2d1b4e[_0x18344e('0x2693')]({'title':_0x18344e('0x66e'),'msg':_0x2aaffd[_0x18344e('0x2830')]['name']?_0x2aaffd[_0x18344e('0x2830')]['name']+_0x18344e('0x1a78'):''}),_0xa88d1d(_0x2e0521);})['catch'](function(_0x2bb282){const _0x4756ab=_0xb51e1c;if(_0x2bb282[_0x4756ab('0x4e8')]&&_0x2bb282[_0x4756ab('0x4e8')][_0x4756ab('0x120f')]&&_0x2bb282[_0x4756ab('0x4e8')][_0x4756ab('0x120f')][_0x4756ab('0x1e22')]){_0x2aaffd['errors']=_0x2bb282[_0x4756ab('0x4e8')]['errors']||[{'message':_0x2bb282['toString'](),'type':'api.cmCustomField.update'}];for(let _0x24d6f7=0x0;_0x24d6f7<_0x2bb282[_0x4756ab('0x4e8')][_0x4756ab('0x120f')][_0x4756ab('0x1e22')];_0x24d6f7++){_0x2d1b4e[_0x4756ab('0x255')]({'title':_0x2bb282[_0x4756ab('0x4e8')][_0x4756ab('0x120f')][_0x24d6f7][_0x4756ab('0x19fd')],'msg':_0x2bb282['data'][_0x4756ab('0x120f')][_0x24d6f7][_0x4756ab('0x1b86')]});}}else _0x2d1b4e['error']({'title':_0x2bb282[_0x4756ab('0xff9')]?_0x4756ab('0x574')+_0x2bb282[_0x4756ab('0xff9')]+'\x20-\x20'+_0x2bb282[_0x4756ab('0x212f')]:'api.cmCustomField.update','msg':_0x2bb282['data']?JSON['stringify'](_0x2bb282[_0x4756ab('0x4e8')]['message']):_0x2bb282['toString']()});});}function _0x2bb5d7(_0x44dc69){const _0x3a9f70=_0x56c73b;_0x2aaffd[_0x3a9f70('0x120f')]=[];const _0x1e6ba3=_0x57c7d3[_0x3a9f70('0x132b')]()[_0x3a9f70('0x134b')]('Are\x20you\x20sure?')['content'](_0x3a9f70('0x1ff1'))[_0x3a9f70('0xb2e')]('Delete\x20CustomField')['ok'](_0x3a9f70('0x1167'))[_0x3a9f70('0x26c9')](_0x3a9f70('0x784'))[_0x3a9f70('0x1e25')](_0x44dc69);_0x57c7d3[_0x3a9f70('0xb9')](_0x1e6ba3)[_0x3a9f70('0x11bf')](function(){const _0x5a0744=_0x3a9f70;_0x55deeb[_0x5a0744('0x1540')][_0x5a0744('0x2088')]({'id':_0x2aaffd['customField']['id']})['$promise'][_0x5a0744('0x11bf')](function(){const _0x31985c=_0x5a0744;_0x36f548()[_0x31985c('0x14a5')](_0x2aaffd[_0x31985c('0x8a1')],{'id':_0x2aaffd[_0x31985c('0x2830')]['id']}),_0x2d1b4e[_0x31985c('0x2693')]({'title':_0x31985c('0x81f'),'msg':(_0x2aaffd[_0x31985c('0x2830')][_0x31985c('0x1909')]||_0x31985c('0x2830'))+_0x31985c('0x433')}),_0xa88d1d(_0x2aaffd[_0x31985c('0x2830')]);})[_0x5a0744('0x151d')](function(_0x31bbbe){const _0x558287=_0x5a0744;if(_0x31bbbe['data']&&_0x31bbbe[_0x558287('0x4e8')]['errors']&&_0x31bbbe[_0x558287('0x4e8')][_0x558287('0x120f')][_0x558287('0x1e22')]){_0x2aaffd[_0x558287('0x120f')]=_0x31bbbe[_0x558287('0x4e8')][_0x558287('0x120f')]||[{'message':_0x31bbbe[_0x558287('0xaab')](),'type':_0x558287('0x5e3')}];for(let _0x2de789=0x0;_0x2de789<_0x31bbbe[_0x558287('0x4e8')][_0x558287('0x120f')][_0x558287('0x1e22')];_0x2de789++){_0x2d1b4e[_0x558287('0x255')]({'title':_0x31bbbe[_0x558287('0x4e8')]['errors'][_0x2de789][_0x558287('0x19fd')],'msg':_0x31bbbe['data'][_0x558287('0x120f')][_0x2de789][_0x558287('0x1b86')]});}}else _0x2d1b4e['error']({'title':_0x31bbbe[_0x558287('0xff9')]?_0x558287('0x574')+_0x31bbbe[_0x558287('0xff9')]+_0x558287('0xb0b')+_0x31bbbe[_0x558287('0x212f')]:_0x558287('0x5e3'),'msg':_0x31bbbe['data']?JSON[_0x558287('0x3e')](_0x31bbbe[_0x558287('0x4e8')][_0x558287('0x1b86')]):_0x31bbbe['message']||_0x31bbbe[_0x558287('0xaab')]()});});},function(){});}function _0x1250b1(_0x37126c){return _0x37126c===null?undefined:new Date(_0x37126c);}function _0xa88d1d(_0x28419c){_0x57c7d3['hide'](_0x28419c);}}const _0x5495df=_0x47c441,_0x55690e=_0x351988['p']+_0x21d0f5('0x20ff');_0x3d4d29[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0xcbc'),_0x21d0f5('0x16b9'),_0x21d0f5('0x1ca2'),'$document','$translate','license',_0x21d0f5('0x23e1'),_0x21d0f5('0x12a5'),_0x21d0f5('0x142d'),_0x21d0f5('0x1150'),_0x21d0f5('0x257d'),_0x21d0f5('0x1d63')];function _0x3d4d29(_0x456107,_0x540c0c,_0x81f9f0,_0x5c5120,_0x4d7d45,_0xa42ab7,_0x3d0cc0,_0x27f88c,_0x24d788,_0x3d3af9,_0x53708a,_0x3876f4){const _0x1df60c=_0x21d0f5,_0x53e08d=this;_0x53e08d[_0x1df60c('0x32a')]=_0x3d3af9[_0x1df60c('0x2428')](),_0x53e08d[_0x1df60c('0x17ff')]=_0xa42ab7,_0x53e08d[_0x1df60c('0x23e1')]=_0x3d0cc0,_0x53e08d[_0x1df60c('0x2834')]=_0x53e08d[_0x1df60c('0x23e1')][_0x1df60c('0x1d4')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x53e08d[_0x1df60c('0x1d9a')]=_0x540c0c[_0x1df60c('0x1797')]()+'://'+_0x540c0c[_0x1df60c('0x14ec')](),_0x53e08d['list']=_0x53708a||_0x456107['params'][_0x1df60c('0x257d')]||{},_0x53e08d[_0x1df60c('0x1d63')]=_0x3876f4&&_0x3876f4['count']==0x1?_0x3876f4[_0x1df60c('0x19b2')][0x0]:null,_0x53e08d['crudPermissions']=_0x3d3af9['parseCrudPermissions'](_0x53e08d['userProfileSection']?_0x53e08d[_0x1df60c('0x1d63')]['crudPermissions']:null),_0x53e08d[_0x1df60c('0x2c9')]={},_0x53e08d[_0x1df60c('0x1179')]=_0x456107[_0x1df60c('0x1ab3')][_0x1df60c('0x205c')]||0x0,_0x53e08d['gotogoto']=_0x51c3d3,_0x53e08d[_0x1df60c('0x2363')]=_0x254bd9,_0x53e08d[_0x1df60c('0xb30')]=_0x24d788[_0x1df60c('0x870')],_0x53e08d[_0x1df60c('0x43d')]=_0x277048,_0x53e08d[_0x1df60c('0x1bc0')]=_0x59d6d9;function _0x51c3d3(_0x53b0b4){const _0x4a98d0=_0x1df60c;if(_0x3d3af9[_0x4a98d0('0x4ee')](_0x4a98d0('0xf45')))_0x456107['go'](_0x4a98d0('0xa11'),{'ListId':_0x53b0b4['id']});else return _0x27f88c[_0x4a98d0('0x1d63')][_0x4a98d0('0xbaa')]({'userProfileId':_0x3d3af9[_0x4a98d0('0x2428')]()[_0x4a98d0('0x781')],'sectionId':0x12f})['$promise'][_0x4a98d0('0x11bf')](function(_0x1ac0b5){const _0x4af05=_0x4a98d0,_0x7bb520=_0x1ac0b5&&_0x1ac0b5['rows']?_0x1ac0b5['rows'][0x0]:null;_0x7bb520&&_0x7bb520[_0x4af05('0x1f0a')]?_0x456107['go'](_0x4af05('0xa11'),{'ListId':_0x53b0b4['id']}):_0x24d788['info']({'title':_0x4d7d45[_0x4af05('0x10c2')]('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_TITLE'),'msg':_0x4d7d45['instant'](_0x4af05('0x10d1'))});})[_0x4a98d0('0x151d')](function(_0x21036a){const _0x5cd613=_0x4a98d0;_0x24d788[_0x5cd613('0x255')]({'title':_0x21036a['status']?'API:'+_0x21036a['status']+_0x5cd613('0xb0b')+_0x21036a[_0x5cd613('0x212f')]:_0x5cd613('0x1011'),'msg':_0x21036a[_0x5cd613('0xff9')]?JSON[_0x5cd613('0x3e')](_0x21036a[_0x5cd613('0x4e8')]):_0x21036a[_0x5cd613('0xaab')]()});});}function _0x254bd9(_0x3bc0b7,_0x5e0618){const _0x181cde=_0x1df60c;_0x81f9f0[_0x181cde('0xb9')]({'controller':_0x181cde('0x122'),'controllerAs':'vm','templateUrl':_0x55690e,'parent':angular['element'](_0x5c5120[_0x181cde('0x1d2')]),'targetEvent':_0x5e0618,'clickOutsideToClose':!![],'locals':{'list':_0x3bc0b7,'lists':_0x53e08d[_0x181cde('0x2410')]?_0x53e08d[_0x181cde('0x2410')][_0x181cde('0x19b2')]:[],'crudPermissions':_0x53e08d[_0x181cde('0xb25')],'realtime':![]}});}function _0x277048(){const _0x1a1ff1=_0x1df60c;_0x456107['go']('app.contactmanager.lists',{},{'reload':_0x1a1ff1('0x1d62')});}function _0x59d6d9(){const _0x15e16f=_0x1df60c;_0x27f88c[_0x15e16f('0xbef')][_0x15e16f('0x5ab')]({'id':_0x53e08d[_0x15e16f('0x257d')]['id']},_0x53e08d[_0x15e16f('0x257d')])[_0x15e16f('0x1549')]['then'](function(){const _0x4e0800=_0x15e16f;_0x24d788[_0x4e0800('0x2693')]({'title':'List\x20updated!','msg':_0x53e08d[_0x4e0800('0x257d')]['name']?_0x53e08d[_0x4e0800('0x257d')][_0x4e0800('0x1909')]+_0x4e0800('0xd7'):''});})[_0x15e16f('0x151d')](function(_0x12c5b4){const _0x249b51=_0x15e16f;_0x24d788[_0x249b51('0x255')]({'title':_0x12c5b4['status']?_0x249b51('0x574')+_0x12c5b4[_0x249b51('0xff9')]+_0x249b51('0xb0b')+_0x12c5b4['statusText']:_0x249b51('0x82'),'msg':_0x12c5b4[_0x249b51('0x4e8')]?JSON[_0x249b51('0x3e')](_0x12c5b4['data']):_0x12c5b4[_0x249b51('0xaab')]()});});}}const _0x437a2f=_0x3d4d29,_0xd803cc=_0x351988['p']+_0x21d0f5('0x1d98');_0x460048[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0x2143'),_0x21d0f5('0xcbc'),_0x21d0f5('0x18fe'),_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),'$timeout',_0x21d0f5('0xb6b'),'api',_0x21d0f5('0x142d'),'Auth'];function _0x460048(_0x13bda1,_0x4ed5bb,_0x216a6e,_0x25d055,_0x3b909c,_0x11c279,_0x429a6c,_0x5269fa,_0xfae52d,_0x396f95,_0xa2b882){const _0x2d7d8b=_0x21d0f5,_0xb2a7c0=this;_0xb2a7c0[_0x2d7d8b('0x32a')]=_0xa2b882[_0x2d7d8b('0x2428')](),_0xb2a7c0[_0x2d7d8b('0x1394')]={'count':0x0,'rows':[]},_0xb2a7c0['selectedDispositions']=[],_0xb2a7c0['crudPermissions'],_0xb2a7c0[_0x2d7d8b('0x1526')]={'first':_0x2d7d8b('0x1558'),'second':'2nd','third':_0x2d7d8b('0x10e6')},_0xb2a7c0['query']={'fields':'id,level,name,description,ParentId,createdAt,updatedAt','sort':'-updatedAt','limit':0xa,'page':0x1},_0xb2a7c0[_0x2d7d8b('0x286f')]=_0x2fcc6b,_0xb2a7c0[_0x2d7d8b('0x560')]=_0xbb844e,_0xb2a7c0[_0x2d7d8b('0x2693')]=_0x4cdc4d,_0xb2a7c0[_0x2d7d8b('0x200')]=_0x40d2d0,_0xb2a7c0[_0x2d7d8b('0x238d')]=_0x4ee4d9,_0xb2a7c0[_0x2d7d8b('0x2776')]=_0x442bf5,_0xb2a7c0[_0x2d7d8b('0x25e')]=_0x58600e,_0xb2a7c0[_0x2d7d8b('0xadf')]=_0x818389,_0xb2a7c0[_0x2d7d8b('0x1d8f')]=_0x39911b,_0xb2a7c0['selectAllDispositions']=_0x37b9a6;function _0x2fcc6b(_0x1c6002,_0x120fc9){const _0x5bafd8=_0x2d7d8b;_0xb2a7c0[_0x5bafd8('0x257d')]=_0x1c6002||{},_0xb2a7c0['crudPermissions']=typeof _0x120fc9!==_0x5bafd8('0x13e9')?_0x120fc9:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0xb2a7c0['query']['ListId']=_0xb2a7c0[_0x5bafd8('0x257d')]['id'],_0xb2a7c0['query']['id']=_0xb2a7c0[_0x5bafd8('0x257d')]['id'],_0x40d2d0();}function _0x4ee4d9(_0x45e9f5,_0x3a1832){const _0x1c7571=_0x2d7d8b;_0x3b909c['show']({'controller':'CreateOrEditDispositionDialogController','controllerAs':'vm','templateUrl':_0xd803cc,'parent':angular[_0x1c7571('0x1e73')](_0x11c279[_0x1c7571('0x1d2')]),'targetEvent':_0x45e9f5,'clickOutsideToClose':!![],'locals':{'disposition':_0x3a1832,'dispositions':_0xb2a7c0[_0x1c7571('0x1394')]['rows'],'model':{'id':_0xb2a7c0[_0x1c7571('0x257d')]['id'],'field':_0x1c7571('0x1e91')},'license':null,'setting':null,'crudPermissions':_0xb2a7c0[_0x1c7571('0xb25')]}})[_0x1c7571('0x11bf')](function(_0x5dd58a){if(_0x5dd58a)_0x40d2d0();});}function _0xbb844e(_0x2f2de1,_0x517a9a){const _0x7c701=_0x2d7d8b,_0x375aef=_0x36f548()[_0x7c701('0x1cb3')](_0xb2a7c0[_0x7c701('0x1394')]['rows'],[_0x7c701('0x2ac'),_0x2f2de1['id']]),_0x76fb90=_0x3b909c[_0x7c701('0x132b')]()[_0x7c701('0x134b')](_0x5269fa['instant'](_0x7c701('0x221d')))['content'](_0x5269fa[_0x7c701('0x10c2')](_0x7c701('0x869')+(_0x375aef?_0x7c701('0x4bd'):_0x7c701('0x16d7')),{'name':_0x2f2de1[_0x7c701('0x1909')]}))[_0x7c701('0xb2e')](_0x7c701('0x1c19'))[_0x7c701('0x1e25')](_0x517a9a)['ok']('OK')['cancel'](_0x5269fa[_0x7c701('0x10c2')]('APP.CANCEL'));_0x3b909c[_0x7c701('0xb9')](_0x76fb90)[_0x7c701('0x11bf')](function(){_0x442bf5(_0x2f2de1);});}function _0x4cdc4d(_0x531637){const _0x59e24c=_0x2d7d8b;_0xb2a7c0[_0x59e24c('0x1394')]=_0x531637||{'count':0x0,'rows':[]};}function _0x40d2d0(){const _0xe54f71=_0x2d7d8b;_0xb2a7c0['query'][_0xe54f71('0x1393')]=(_0xb2a7c0[_0xe54f71('0x1f2a')]['page']-0x1)*_0xb2a7c0['query'][_0xe54f71('0xd5c')],_0xb2a7c0[_0xe54f71('0x13f')]=_0xfae52d[_0xe54f71('0xbef')][_0xe54f71('0x200')](_0xb2a7c0[_0xe54f71('0x1f2a')],_0x4cdc4d)[_0xe54f71('0x1549')];}function _0x442bf5(_0x37c955){const _0x572eea=_0x2d7d8b;_0xfae52d['disposition']['delete']({'id':_0x37c955['id']})[_0x572eea('0x1549')][_0x572eea('0x11bf')](function(){const _0x589a55=_0x572eea;_0x40d2d0(),_0x396f95['success']({'title':_0x5269fa[_0x589a55('0x10c2')](_0x589a55('0x1548'))});})[_0x572eea('0x151d')](function(_0x10d337){const _0x484980=_0x572eea;if(_0x10d337[_0x484980('0x4e8')]&&_0x10d337[_0x484980('0x4e8')][_0x484980('0x120f')]&&_0x10d337[_0x484980('0x4e8')][_0x484980('0x120f')][_0x484980('0x1e22')]){_0xb2a7c0[_0x484980('0x120f')]=_0x10d337[_0x484980('0x4e8')]['errors']||[{'message':_0x10d337[_0x484980('0xaab')](),'type':_0x484980('0x1551')}];for(let _0xc6b356=0x0;_0xc6b356<_0x10d337[_0x484980('0x4e8')][_0x484980('0x120f')]['length'];_0xc6b356++){_0x396f95[_0x484980('0x255')]({'title':_0x10d337[_0x484980('0x4e8')][_0x484980('0x120f')][_0xc6b356]['type'],'msg':_0x10d337[_0x484980('0x4e8')][_0x484980('0x120f')][_0xc6b356][_0x484980('0x1b86')]});}}else _0x396f95[_0x484980('0x255')]({'title':_0x10d337[_0x484980('0xff9')]?'API:'+_0x10d337['status']+_0x484980('0xb0b')+_0x10d337[_0x484980('0x212f')]:'SYSTEM:DELETEdisposition','msg':_0x10d337[_0x484980('0x4e8')]?JSON[_0x484980('0x3e')](_0x10d337[_0x484980('0x4e8')][_0x484980('0x1b86')]):_0x10d337[_0x484980('0x1b86')]||_0x10d337['toString']()});});}function _0x58600e(){const _0x5170d2=_0x2d7d8b,_0x2e4854=angular['copy'](_0xb2a7c0['selectedDispositions']);return _0xb2a7c0[_0x5170d2('0x21ae')]=[],_0x2e4854;}function _0x818389(_0x1f1f85){const _0x562269=_0x2d7d8b,_0x2fdc4e=_0x3b909c[_0x562269('0x132b')]()[_0x562269('0x134b')](_0x5269fa[_0x562269('0x10c2')](_0x562269('0x1cd5')))[_0x562269('0x252a')](_0x5269fa[_0x562269('0x10c2')]('TOOLS.NOTIFICATIONS.DISPOSITIONS_DELETE_MESSAGE',{'total':_0xb2a7c0[_0x562269('0x21ae')][_0x562269('0x1e22')]}))[_0x562269('0xb2e')]('Delete\x20dispositions')[_0x562269('0x1e25')](_0x1f1f85)['ok']('OK')[_0x562269('0x26c9')](_0x5269fa[_0x562269('0x10c2')](_0x562269('0xa5d')));_0x3b909c['show'](_0x2fdc4e)[_0x562269('0x11bf')](function(){const _0x46ae21=_0x562269;_0xb2a7c0[_0x46ae21('0x21ae')][_0x46ae21('0x1f88')](function(_0x2e8dc4){_0x442bf5(_0x2e8dc4);}),_0xb2a7c0[_0x46ae21('0x21ae')]=[];});}function _0x39911b(){const _0x8b192e=_0x2d7d8b;_0xb2a7c0[_0x8b192e('0x21ae')]=[];}function _0x37b9a6(){const _0x170503=_0x2d7d8b;_0xb2a7c0[_0x170503('0x21ae')]=_0xb2a7c0['dispositions']['rows'];}let _0x2ae949=!![],_0x3e53aa=0x1;_0x13bda1['$watch']('vm_dc.query.filter',function(_0x5f2fb0,_0x43a805){const _0x202069=_0x2d7d8b;_0x2ae949?_0x429a6c(function(){_0x2ae949=![];}):(!_0x43a805&&(_0x3e53aa=_0xb2a7c0[_0x202069('0x1f2a')][_0x202069('0x1c2')]),_0x5f2fb0!==_0x43a805&&(_0xb2a7c0[_0x202069('0x1f2a')][_0x202069('0x1c2')]=0x1),!_0x5f2fb0&&(_0xb2a7c0[_0x202069('0x1f2a')]['page']=_0x3e53aa),_0x40d2d0());});}const _0x4ac344=_0x460048,_0x52e4b6=_0x351988['p']+'src/js/modules/main/apps/contactmanager/views/lists/create/dialog.html/dialog.html';_0xee2ec0['$inject']=['$scope',_0x21d0f5('0x2143'),_0x21d0f5('0xcbc'),_0x21d0f5('0x18fe'),_0x21d0f5('0x1ca2'),'$document',_0x21d0f5('0x17f5'),'$translate',_0x21d0f5('0x2410'),'userProfile',_0x21d0f5('0x1d63'),'api','msUtils',_0x21d0f5('0x142d'),_0x21d0f5('0x1150'),'license',_0x21d0f5('0x23e1')];function _0xee2ec0(_0x3593a3,_0xa9f6f0,_0x5b117b,_0x3aa20c,_0x461928,_0x4d0ab7,_0x496053,_0x2f3e4b,_0x43a143,_0x2bdd60,_0x5a3ae5,_0x46d5c8,_0x3a70ed,_0x5549a7,_0x423e15,_0x312851,_0x3be970){const _0x66836b=_0x21d0f5,_0x179aad=this;_0x179aad[_0x66836b('0x17ff')]=_0x312851,_0x179aad[_0x66836b('0x23e1')]=_0x3be970,_0x179aad[_0x66836b('0x32a')]=_0x423e15[_0x66836b('0x2428')](),_0x179aad['lists']=_0x43a143||{'count':0x0,'rows':[]},_0x179aad[_0x66836b('0x25bc')]=_0x2bdd60,_0x179aad[_0x66836b('0x1d63')]=_0x5a3ae5&&_0x5a3ae5[_0x66836b('0x27d2')]==0x1?_0x5a3ae5[_0x66836b('0x19b2')][0x0]:null,_0x179aad[_0x66836b('0xb25')]=_0x423e15[_0x66836b('0x1530')](_0x179aad[_0x66836b('0x1d63')]?_0x179aad['userProfileSection'][_0x66836b('0xb25')]:null),_0x179aad[_0x66836b('0x13e8')]='lists',_0x179aad[_0x66836b('0x724')]='',_0x179aad[_0x66836b('0xe3c')]=null,_0x179aad[_0x66836b('0x1ef8')]=[],_0x179aad[_0x66836b('0x1f2a')]={'fields':'createdAt,updatedAt,id,name,description,dialPrefix','sort':_0x66836b('0x1c74'),'limit':0xa,'page':0x1},_0x179aad['editstate']=_0x511125,_0x179aad['gotocontactsgoto']=_0x41fb02,_0x179aad[_0x66836b('0x970')]=_0x28703d,_0x179aad[_0x66836b('0x2363')]=_0x21c0eb,_0x179aad[_0x66836b('0x549')]=_0x1756e0,_0x179aad[_0x66836b('0x2693')]=_0x2a7f06,_0x179aad['getLists']=_0x54abea,_0x179aad['createOrEditList']=_0x38fcea,_0x179aad[_0x66836b('0x1627')]=_0x18ee16,_0x179aad[_0x66836b('0x1227')]=_0x17cb4b,_0x179aad[_0x66836b('0xfd1')]=_0x5eb64e,_0x179aad[_0x66836b('0x51a')]=_0x205f20,_0x179aad[_0x66836b('0x56c')]=_0x2db0e3;function _0x511125(_0x24c440){const _0x1661fd=_0x66836b;_0x5b117b['go']('app.contactmanager.lists.edit',{'id':_0x24c440['id'],'list':_0x24c440,'crudPermissions':_0x179aad[_0x1661fd('0xb25')]});}function _0x41fb02(_0x55ea90){const _0x308275=_0x66836b;if(_0x423e15[_0x308275('0x4ee')](_0x308275('0xf45')))_0x5b117b['go'](_0x308275('0xa11'),{'ListId':_0x55ea90['id']});else return _0x46d5c8[_0x308275('0x1d63')][_0x308275('0xbaa')]({'userProfileId':_0x423e15[_0x308275('0x2428')]()[_0x308275('0x781')],'sectionId':0x12f})[_0x308275('0x1549')][_0x308275('0x11bf')](function(_0x1ddeb3){const _0x1e24c1=_0x308275,_0xc52112=_0x1ddeb3&&_0x1ddeb3[_0x1e24c1('0x19b2')]?_0x1ddeb3['rows'][0x0]:null;_0xc52112&&_0xc52112[_0x1e24c1('0x1f0a')]?_0x5b117b['go']('app.contactmanager.contacts',{'ListId':_0x55ea90['id']}):_0x5549a7['info']({'title':_0x2f3e4b[_0x1e24c1('0x10c2')](_0x1e24c1('0xbff')),'msg':_0x2f3e4b[_0x1e24c1('0x10c2')](_0x1e24c1('0x10d1'))});})[_0x308275('0x151d')](function(_0x54a91f){const _0x435a85=_0x308275;_0x5549a7[_0x435a85('0x255')]({'title':_0x54a91f[_0x435a85('0xff9')]?_0x435a85('0x574')+_0x54a91f['status']+_0x435a85('0xb0b')+_0x54a91f['statusText']:_0x435a85('0x1011'),'msg':_0x54a91f['status']?JSON['stringify'](_0x54a91f['data']):_0x54a91f[_0x435a85('0xaab')]()});});}function _0x28703d(_0x11614f){const _0x4f29ce=_0x66836b;return _0x46d5c8[_0x4f29ce('0xbef')][_0x4f29ce('0x7c4')]({'id':_0x11614f['id'],'nolimit':!![]})[_0x4f29ce('0x1549')]['then'](function(_0x27cae1){const _0x227e27=_0x4f29ce;if(typeof _0x27cae1[_0x227e27('0x1e22')]!=='undefined'){const _0x200806=[_0x27cae1[_0x227e27('0x1e94')]],_0x2f2916=new Blob(_0x200806,{'type':_0x27cae1[_0x227e27('0x19fd')]}),_0x57c583=window[_0x227e27('0xb54')][_0x227e27('0x2773')]('a');_0x57c583[_0x227e27('0x1e1b')](_0x227e27('0xead'),URL[_0x227e27('0x44b')](_0x2f2916)),_0x57c583[_0x227e27('0x1e1b')](_0x227e27('0x149c'),_0x227e27('0x1846')+_0x11614f['id']+_0x227e27('0x5db')),_0x57c583[_0x227e27('0x1371')]();}else _0x5549a7[_0x227e27('0x870')]({'title':_0x227e27('0x18aa'),'msg':_0x227e27('0x21b4')});})[_0x4f29ce('0x151d')](function(_0x282df2){const _0xcdea50=_0x4f29ce;_0x5549a7[_0xcdea50('0x255')]({'title':_0x282df2[_0xcdea50('0xff9')]?_0xcdea50('0x574')+_0x282df2[_0xcdea50('0xff9')]+'\x20-\x20'+_0x282df2[_0xcdea50('0x212f')]:'SYSTEM:GETcmList','msg':_0x282df2[_0xcdea50('0x4e8')]?JSON['stringify'](_0x282df2[_0xcdea50('0x4e8')]):_0x282df2['toString']()});});}function _0x21c0eb(_0x4973a2,_0x5342ab){const _0x515a47=_0x66836b;_0x461928['show']({'controller':_0x515a47('0x122'),'controllerAs':'vm','templateUrl':_0x55690e,'parent':angular[_0x515a47('0x1e73')](_0x4d0ab7[_0x515a47('0x1d2')]),'targetEvent':_0x5342ab,'clickOutsideToClose':!![],'locals':{'list':_0x4973a2,'lists':_0x179aad[_0x515a47('0x2410')]?_0x179aad[_0x515a47('0x2410')]['rows']:[],'crudPermissions':_0x179aad[_0x515a47('0xb25')],'realtime':![]}});}function _0x1756e0(_0x1852f7,_0x1f0a11){const _0x4e8c7d=_0x66836b,_0x471ddf=_0x461928[_0x4e8c7d('0x132b')]()['title'](_0x4e8c7d('0x1796')+_0x36f548()[_0x4e8c7d('0x13cf')](_0x4e8c7d('0x257d'))+'?')[_0x4e8c7d('0x1d03')](_0x4e8c7d('0x2061')+(_0x1852f7[_0x4e8c7d('0x1909')]||_0x4e8c7d('0x257d'))+_0x4e8c7d('0x1c78')+_0x4e8c7d('0x1a'))[_0x4e8c7d('0xb2e')](_0x4e8c7d('0xdf7'))['targetEvent'](_0x1f0a11)['ok']('OK')['cancel']('CANCEL');_0x461928['show'](_0x471ddf)[_0x4e8c7d('0x11bf')](function(){_0x18ee16(_0x1852f7);},function(){console['log']('CANCEL');});}let _0x561fe5=!![],_0x1264bb=0x1;_0x3593a3[_0x66836b('0x2087')]('vm.query.filter',function(_0x15dd8d,_0x579b11){const _0x51fada=_0x66836b;_0x561fe5?_0x496053(function(){_0x561fe5=![];}):(!_0x579b11&&(_0x1264bb=_0x179aad[_0x51fada('0x1f2a')][_0x51fada('0x1c2')]),_0x15dd8d!==_0x579b11&&(_0x179aad['query'][_0x51fada('0x1c2')]=0x1),!_0x15dd8d&&(_0x179aad[_0x51fada('0x1f2a')]['page']=_0x1264bb),_0x179aad['getLists']());});function _0x2a7f06(_0x37da43){const _0x46ffd9=_0x66836b;_0x179aad[_0x46ffd9('0x2410')]=_0x37da43||{'count':0x0,'rows':[]};}function _0x54abea(){const _0x304a2b=_0x66836b;_0x179aad[_0x304a2b('0x1f2a')][_0x304a2b('0x1393')]=(_0x179aad[_0x304a2b('0x1f2a')][_0x304a2b('0x1c2')]-0x1)*_0x179aad[_0x304a2b('0x1f2a')][_0x304a2b('0xd5c')],_0x423e15[_0x304a2b('0x4ee')]('admin')?_0x179aad[_0x304a2b('0x13f')]=_0x46d5c8[_0x304a2b('0xbef')]['get'](_0x179aad[_0x304a2b('0x1f2a')],_0x2a7f06)[_0x304a2b('0x1549')]:(_0x179aad['query']['id']=_0x179aad[_0x304a2b('0x25bc')]['id'],_0x179aad[_0x304a2b('0x1f2a')][_0x304a2b('0xe6')]=_0x304a2b('0x2244'),_0x179aad[_0x304a2b('0x13f')]=_0x46d5c8[_0x304a2b('0x25bc')]['getResources'](_0x179aad['query'],_0x2a7f06)['$promise']);}function _0x38fcea(_0x1b0905,_0x108205){const _0x272e66=_0x66836b;_0x461928[_0x272e66('0xb9')]({'controller':_0x272e66('0x7bd'),'controllerAs':'vm','templateUrl':_0x52e4b6,'parent':angular[_0x272e66('0x1e73')](_0x4d0ab7['body']),'targetEvent':_0x1b0905,'clickOutsideToClose':!![],'locals':{'list':_0x108205,'lists':_0x179aad[_0x272e66('0x2410')]['rows'],'license':_0x179aad[_0x272e66('0x17ff')],'setting':_0x179aad[_0x272e66('0x23e1')],'crudPermissions':_0x179aad[_0x272e66('0xb25')]}});}function _0x18ee16(_0x4b855f){const _0xe3017a=_0x66836b;_0x46d5c8['cmList'][_0xe3017a('0x2088')]({'id':_0x4b855f['id']})['$promise'][_0xe3017a('0x11bf')](function(){const _0x1fe5e3=_0xe3017a;_0x36f548()[_0x1fe5e3('0x14a5')](_0x179aad['lists'][_0x1fe5e3('0x19b2')],{'id':_0x4b855f['id']}),_0x179aad[_0x1fe5e3('0x2410')][_0x1fe5e3('0x27d2')]-=0x1,!_0x179aad[_0x1fe5e3('0x2410')][_0x1fe5e3('0x19b2')][_0x1fe5e3('0x1e22')]&&_0x179aad[_0x1fe5e3('0x1161')](),_0x5549a7['success']({'title':_0x36f548()[_0x1fe5e3('0x13cf')](_0x1fe5e3('0x2474'))+_0x1fe5e3('0x2113'),'msg':_0x4b855f['name']?_0x4b855f[_0x1fe5e3('0x1909')]+_0x1fe5e3('0x433'):''});})[_0xe3017a('0x151d')](function(_0x1e0cc0){const _0x44d19a=_0xe3017a;if(_0x1e0cc0['data']&&_0x1e0cc0[_0x44d19a('0x4e8')]['errors']&&_0x1e0cc0[_0x44d19a('0x4e8')][_0x44d19a('0x120f')][_0x44d19a('0x1e22')]){_0x179aad['errors']=_0x1e0cc0[_0x44d19a('0x4e8')][_0x44d19a('0x120f')]||[{'message':_0x1e0cc0[_0x44d19a('0xaab')](),'type':_0x44d19a('0x1dc2')}];for(let _0x2e1811=0x0;_0x2e1811<_0x1e0cc0[_0x44d19a('0x4e8')][_0x44d19a('0x120f')][_0x44d19a('0x1e22')];_0x2e1811++){_0x5549a7['error']({'title':_0x1e0cc0['data']['errors'][_0x2e1811][_0x44d19a('0x19fd')],'msg':_0x1e0cc0[_0x44d19a('0x4e8')][_0x44d19a('0x120f')][_0x2e1811][_0x44d19a('0x1b86')]});}}else _0x5549a7[_0x44d19a('0x255')]({'title':_0x1e0cc0['status']?_0x44d19a('0x574')+_0x1e0cc0[_0x44d19a('0xff9')]+_0x44d19a('0xb0b')+_0x1e0cc0[_0x44d19a('0x212f')]:_0x44d19a('0x1dc2'),'msg':_0x1e0cc0[_0x44d19a('0x4e8')]?JSON[_0x44d19a('0x3e')](_0x1e0cc0['data'][_0x44d19a('0x1b86')]):_0x1e0cc0['message']||_0x1e0cc0[_0x44d19a('0xaab')]()});});}function _0x17cb4b(){const _0x5641a3=_0x66836b,_0xfb774b=angular[_0x5641a3('0x6fb')](_0x179aad['selectedLists']);return _0x179aad[_0x5641a3('0x1ef8')]=[],_0xfb774b;}function _0x5eb64e(_0x49b770){const _0x41c6b8=_0x66836b,_0x3b522b=_0x461928['confirm']()[_0x41c6b8('0x134b')](_0x41c6b8('0x149d'))[_0x41c6b8('0x1d03')](_0x41c6b8('0x2061')+_0x179aad['selectedLists'][_0x41c6b8('0x1e22')]+_0x41c6b8('0xac6')+_0x41c6b8('0x1a'))['ariaLabel'](_0x41c6b8('0x726'))['targetEvent'](_0x49b770)['ok']('OK')[_0x41c6b8('0x26c9')](_0x41c6b8('0x772'));_0x461928['show'](_0x3b522b)[_0x41c6b8('0x11bf')](function(){const _0x404df5=_0x41c6b8;_0x179aad['selectedLists'][_0x404df5('0x1f88')](function(_0x50e087){_0x18ee16(_0x50e087);}),_0x179aad[_0x404df5('0x1ef8')]=[];});}function _0x205f20(){const _0x251945=_0x66836b;_0x179aad[_0x251945('0x1ef8')]=[];}function _0x2db0e3(){const _0x2cdfd1=_0x66836b;_0x179aad[_0x2cdfd1('0x1ef8')]=_0x179aad[_0x2cdfd1('0x2410')]['rows'];}}const _0x5cf5e7=_0xee2ec0,_0x143e34=_0x351988['p']+'src/js/modules/main/apps/contactmanager/views/lists/lists.html/lists.html',_0x131926=_0x351988['p']+_0x21d0f5('0x2f8'),_0x4f3106=_0x351988['p']+_0x21d0f5('0x72e'),_0x474e41=_0x351988['p']+'src/js/modules/main/apps/contactmanager/views/companies/edit/view.html/view.html',_0x495d37=_0x351988['p']+'src/js/modules/main/apps/contactmanager/views/globalCustomFields/globalCustomFields.html/globalCustomFields.html';_0x52f8a9[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x13d6'),_0x21d0f5('0xc3e')];function _0x52f8a9(_0x2c3e9f,_0x202738){const _0x43a7a7=_0x21d0f5;_0x2c3e9f[_0x43a7a7('0x2124')](_0x43a7a7('0x15ab'),{'abstract':!![],'url':_0x43a7a7('0x16a6')})['state']('app.contactmanager.lists',{'url':'/lists','views':{'content@app':{'templateUrl':_0x143e34,'controller':_0x43a7a7('0x2045')}},'resolve':{'lists':['apiResolver',_0x43a7a7('0x1150'),function(_0x387a81,_0xe276a3){const _0x215f0d=_0x43a7a7;return _0xe276a3[_0x215f0d('0x4ee')](_0x215f0d('0xf45'))?_0x387a81[_0x215f0d('0xa28')](_0x215f0d('0x1f69'),{'fields':_0x215f0d('0x273c'),'sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x387a81[_0x215f0d('0xa28')](_0x215f0d('0xb0d'),{'id':_0xe276a3[_0x215f0d('0x2428')]()[_0x215f0d('0x781')],'section':'Lists','fields':_0x215f0d('0x273c'),'sort':_0x215f0d('0x1c74'),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver','Auth',function(_0x303f71,_0x576dc8){const _0x37d33c=_0x43a7a7;return _0x576dc8[_0x37d33c('0x4ee')](_0x37d33c('0xf45'))?null:_0x303f71['resolve'](_0x37d33c('0x428'),{'fields':'id,name,crudPermissions','id':_0x576dc8[_0x37d33c('0x2428')]()['userProfileId']});}],'userProfileSection':[_0x43a7a7('0x218e'),_0x43a7a7('0x1150'),function(_0x11ac69,_0xa48889){const _0x481276=_0x43a7a7;return _0xa48889[_0x481276('0x4ee')](_0x481276('0xf45'))?null:_0x11ac69[_0x481276('0xa28')](_0x481276('0x2762'),{'fields':_0x481276('0x36d'),'userProfileId':_0xa48889[_0x481276('0x2428')]()['userProfileId'],'sectionId':0x12d});}]},'authenticate':!![],'permissionId':0x12d,'bodyClass':_0x43a7a7('0x1777')})[_0x43a7a7('0x2124')]('app.contactmanager.lists.edit',{'url':'/:id?tab','params':{'list':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x131926,'controller':_0x43a7a7('0x14cd')}},'resolve':{'list':[_0x43a7a7('0x218e'),_0x43a7a7('0x1573'),function(_0x4682cf,_0x35b225){const _0x414132=_0x43a7a7;return _0x4682cf['resolve'](_0x414132('0x1f69'),{'fields':_0x414132('0x273c'),'id':_0x35b225['id']});}],'userProfileSection':[_0x43a7a7('0x218e'),_0x43a7a7('0x1150'),function(_0x12fa04,_0x5b1e23){const _0x14df16=_0x43a7a7;return _0x12fa04['resolve'](_0x14df16('0x2762'),{'fields':_0x14df16('0x36d'),'userProfileId':_0x5b1e23[_0x14df16('0x2428')]()[_0x14df16('0x781')],'sectionId':0x12d});}]},'authenticate':!![],'permissionId':0x12d,'bodyClass':_0x43a7a7('0x1777')})[_0x43a7a7('0x2124')](_0x43a7a7('0x6c9'),{'url':'/companies','views':{'content@app':{'templateUrl':_0x4f3106,'controller':'CompaniesController\x20as\x20vm'}},'resolve':{'companies':[_0x43a7a7('0x218e'),'Auth',function(_0x3962ae,_0x2355d4){const _0x40242d=_0x43a7a7;return _0x2355d4[_0x40242d('0x4ee')]('admin')?_0x3962ae[_0x40242d('0xa28')](_0x40242d('0x20e9'),{'fields':_0x40242d('0x979'),'sort':_0x40242d('0x1c74'),'limit':0xa,'offset':0x0}):_0x3962ae['resolve'](_0x40242d('0xb0d'),{'id':_0x2355d4[_0x40242d('0x2428')]()[_0x40242d('0x781')],'section':_0x40242d('0x1638'),'fields':_0x40242d('0x979'),'sort':_0x40242d('0x1c74'),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver','Auth',function(_0x1aaa79,_0x44501d){const _0x41f583=_0x43a7a7;return _0x44501d[_0x41f583('0x4ee')](_0x41f583('0xf45'))?null:_0x1aaa79[_0x41f583('0xa28')](_0x41f583('0x428'),{'fields':_0x41f583('0xd30'),'id':_0x44501d[_0x41f583('0x2428')]()['userProfileId']});}],'userProfileSection':[_0x43a7a7('0x218e'),_0x43a7a7('0x1150'),function(_0x383c98,_0xb31f3){const _0x878afc=_0x43a7a7;return _0xb31f3['hasRole'](_0x878afc('0xf45'))?null:_0x383c98[_0x878afc('0xa28')](_0x878afc('0x2762'),{'fields':_0x878afc('0x36d'),'userProfileId':_0xb31f3['getCurrentUser']()[_0x878afc('0x781')],'sectionId':0x12e});}]},'authenticate':!![],'permissionId':0x12e,'bodyClass':_0x43a7a7('0x1777')})[_0x43a7a7('0x2124')](_0x43a7a7('0xa16'),{'url':_0x43a7a7('0x142b'),'params':{'company':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x474e41,'controller':_0x43a7a7('0x210d')}},'resolve':{'company':['apiResolver',_0x43a7a7('0x1573'),function(_0x451efd,_0x34eb27){const _0x5b9169=_0x43a7a7;return _0x451efd[_0x5b9169('0xa28')]('cmCompany@get',{'fields':_0x5b9169('0x979'),'id':_0x34eb27['id']});}],'userProfileSection':[_0x43a7a7('0x218e'),'Auth',function(_0x19997e,_0x3d7f84){const _0x349496=_0x43a7a7;return _0x19997e[_0x349496('0xa28')](_0x349496('0x2762'),{'fields':_0x349496('0x36d'),'userProfileId':_0x3d7f84[_0x349496('0x2428')]()['userProfileId'],'sectionId':0x12e});}]},'authenticate':!![],'permissionId':0x12e,'bodyClass':_0x43a7a7('0x1777')})[_0x43a7a7('0x2124')](_0x43a7a7('0x1594'),{'url':_0x43a7a7('0x244e'),'views':{'content@app':{'templateUrl':_0x495d37,'controller':_0x43a7a7('0xc26')}},'resolve':{'globalCustomFields':[_0x43a7a7('0x218e'),function(_0x3012a4){const _0x593bd4=_0x43a7a7;return _0x3012a4[_0x593bd4('0xa28')](_0x593bd4('0x342'),{'fields':'createdAt,updatedAt,id,alias,type,values,required,clickToAction,actionType','sort':_0x593bd4('0x1c74'),'ListId':_0x593bd4('0xb5f'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x43a7a7('0x218e'),_0x43a7a7('0x1150'),function(_0x2970fc,_0x361ea7){const _0x75a9a6=_0x43a7a7;return _0x361ea7[_0x75a9a6('0x4ee')](_0x75a9a6('0xf45'))?null:_0x2970fc[_0x75a9a6('0xa28')](_0x75a9a6('0x428'),{'fields':_0x75a9a6('0xd30'),'id':_0x361ea7[_0x75a9a6('0x2428')]()[_0x75a9a6('0x781')]});}],'userProfileSection':[_0x43a7a7('0x218e'),'Auth',function(_0x4bada2,_0x5d7455){const _0x6315ca=_0x43a7a7;return _0x5d7455[_0x6315ca('0x4ee')](_0x6315ca('0xf45'))?null:_0x4bada2[_0x6315ca('0xa28')](_0x6315ca('0x2762'),{'fields':_0x6315ca('0x36d'),'userProfileId':_0x5d7455[_0x6315ca('0x2428')]()['userProfileId'],'sectionId':0x130});}]},'authenticate':!![],'permissionId':0x130,'bodyClass':'contactmanager'}),_0x202738[_0x43a7a7('0x471')](_0x43a7a7('0x2869'));}angular['module'](_0x21d0f5('0x15ab'),[_0x21d0f5('0x22d5'),'ngPassword',_0x21d0f5('0x3c4'),_0x21d0f5('0x2414'),'mdColorPicker',_0x21d0f5('0x2096'),_0x21d0f5('0x24a2'),_0x21d0f5('0x446'),_0x21d0f5('0x113d'),_0x21d0f5('0x21d5'),_0x21d0f5('0x29b'),_0x21d0f5('0xc46'),_0x21d0f5('0x950'),'ngclipboard',_0x21d0f5('0x31e'),_0x21d0f5('0xed9'),_0x21d0f5('0x2625'),_0x21d0f5('0x1622'),_0x21d0f5('0x1584'),_0x21d0f5('0xf7f'),'app.contactmanager.contacts'])[_0x21d0f5('0x53a')](_0x52f8a9)[_0x21d0f5('0x23eb')](_0x21d0f5('0x8a5'),_0x3513b5)['controller'](_0x21d0f5('0x713'),_0x547f00)['controller'](_0x21d0f5('0x1934'),_0x2e2e8f)[_0x21d0f5('0x23eb')](_0x21d0f5('0x164'),_0x3aec2d)[_0x21d0f5('0x23eb')](_0x21d0f5('0x323'),_0x2cba7e)[_0x21d0f5('0x23eb')](_0x21d0f5('0x7bd'),_0x446a66)[_0x21d0f5('0x23eb')](_0x21d0f5('0x122'),_0x3b22d8)[_0x21d0f5('0x23eb')](_0x21d0f5('0x2844'),_0x31f6e8)[_0x21d0f5('0x23eb')](_0x21d0f5('0x159'),_0x5495df)[_0x21d0f5('0x23eb')](_0x21d0f5('0x19b1'),_0x437a2f)[_0x21d0f5('0x23eb')](_0x21d0f5('0x1ff3'),_0x4ac344)[_0x21d0f5('0x23eb')](_0x21d0f5('0x1890'),_0x5cf5e7),_0x4280ab['$inject']=[_0x21d0f5('0x1b80'),_0x21d0f5('0x17f5'),'$mdDialog',_0x21d0f5('0x1b30'),_0x21d0f5('0x2143'),_0x21d0f5('0xb6b'),_0x21d0f5('0x12a5'),_0x21d0f5('0x25bc'),_0x21d0f5('0x1d63'),_0x21d0f5('0x1150'),_0x21d0f5('0x1d56'),_0x21d0f5('0x142d'),_0x21d0f5('0x1401'),_0x21d0f5('0x1394')];function _0x4280ab(_0x1d1d07,_0x39ac54,_0x2c56f3,_0xf368fe,_0x229b5c,_0xdd9aef,_0xdc7942,_0x1cf3a8,_0x28cb8f,_0x56fdea,_0x364a76,_0x1ab8ac,_0x19a63a,_0x53b2b7){const _0xee4836=_0x21d0f5,_0x399e74=this;_0x399e74['currentUser']=_0x56fdea[_0xee4836('0x2428')](),_0x399e74[_0xee4836('0x1401')]=_0x19a63a?_0x19a63a:[],_0x399e74[_0xee4836('0x1394')]=_0x53b2b7,_0x399e74[_0xee4836('0x14ce')]={'count':0x0,'rows':[]},_0x399e74[_0xee4836('0x1d5')]=![],_0x399e74['refresh']=!![],_0x399e74[_0xee4836('0x25bc')]=_0x1cf3a8,_0x399e74[_0xee4836('0x1d63')]=_0x28cb8f&&_0x28cb8f[_0xee4836('0x27d2')]==0x1?_0x28cb8f['rows'][0x0]:null,_0x399e74[_0xee4836('0xb25')]=_0x56fdea['parseCrudPermissions'](_0x399e74['userProfileSection']?_0x399e74[_0xee4836('0x1d63')][_0xee4836('0xb25')]:null),_0x399e74[_0xee4836('0x1f2a')]={'fields':_0xee4836('0x2390'),'type':_0xee4836('0x18a2'),'queuecallerexitreason':_0xee4836('0x1164')+','+_0xee4836('0x12d3'),'sort':_0xee4836('0x1c74'),'limit':0xa,'page':0x1},_0x399e74[_0xee4836('0x2742')]=_0x53c99e,_0x399e74['refreshAbandonedCalls']=_0x5793e5,_0x399e74[_0xee4836('0x432')]=_0xa6eab5,_0x399e74[_0xee4836('0x14a8')]=_0x1c5338,_0x399e74[_0xee4836('0x15c2')]=_0x3f4860,_0x399e74[_0xee4836('0x23a2')]=_0xe41f82,_0x364a76[_0xee4836('0x284d')]('voiceQueueReport:save',_0x399e74[_0xee4836('0x15c2')]),_0x364a76['on'](_0xee4836('0x132e'),_0x399e74[_0xee4836('0x23a2')]),_0x7a5fd9();function _0x7a5fd9(){const _0x3a602c=_0xee4836;let _0x23d667=_0x229b5c[_0x3a602c('0xe4a')]['getItem'](_0x3a602c('0xc8e')+_0x399e74[_0x3a602c('0x32a')]['id']);if(_0x23d667)_0x23d667=JSON['parse'](_0x23d667),_0x23d667&&_0x23d667[_0x3a602c('0x1f2a')]&&(_0x399e74['query']=_0x36f548()[_0x3a602c('0x47b')](_0x23d667[_0x3a602c('0x1f2a')],_0x36f548()[_0x3a602c('0x196f')](_0x399e74['query'],['sort',_0x3a602c('0xd5c'),_0x3a602c('0x1c2')])),_0x399e74[_0x3a602c('0x1f2a')]=_0x36f548()[_0x3a602c('0x196f')](_0x399e74[_0x3a602c('0x1f2a')],'filter'));else{const _0x5e72b3={'$gte':_0x57d4d1()()[_0x3a602c('0x2655')](_0x3a602c('0x4d8'))[_0x3a602c('0x1fb1')](0x0,!![])[_0x3a602c('0x1826')](),'$lte':_0x57d4d1()()['endOf'](_0x3a602c('0x4d8'))['utcOffset'](0x0,!![])[_0x3a602c('0x1826')]()};_0x399e74['query'][_0x3a602c('0x1779')]=_0x5e72b3;}_0x56fdea[_0x3a602c('0x4ee')](_0x3a602c('0xf45'))?_0xdc7942[_0x3a602c('0x21d9')][_0x3a602c('0x373')]({'id':_0x56fdea[_0x3a602c('0x2428')]()['id'],'fields':_0x3a602c('0x721'),'channel':_0x3a602c('0x1bc3'),'type':_0x3a602c('0x18a2'),'nolimit':!![]})[_0x3a602c('0x1549')][_0x3a602c('0x11bf')](function(_0x11732f){const _0x48c29b=_0x3a602c;_0x399e74[_0x48c29b('0x1de3')]=_0x11732f||{'count':0x0,'rows':[]},_0x399e74['queuesMap']=_0x36f548()['mapValues'](_0x36f548()[_0x48c29b('0x2130')](_0x399e74[_0x48c29b('0x1de3')][_0x48c29b('0x19b2')],_0x48c29b('0x1909')),'name');})[_0x3a602c('0x151d')](function(_0x2d7d63){const _0x3197b8=_0x3a602c;console[_0x3197b8('0x255')](_0x2d7d63);})[_0x3a602c('0xa9b')](function(){const _0x4754b3=_0x3a602c;_0x399e74[_0x4754b3('0x7db')]=_0xad87f(),_0x399e74[_0x4754b3('0x2742')]();}):_0xdc7942[_0x3a602c('0x25bc')][_0x3a602c('0x228e')]({'id':_0x399e74[_0x3a602c('0x32a')][_0x3a602c('0x781')],'section':'VoiceQueues','channel':'voice','type':_0x3a602c('0x18a2'),'sort':_0x3a602c('0x1c74'),'nolimit':!![]})['$promise'][_0x3a602c('0x11bf')](function(_0x784a92){const _0x118356=_0x3a602c;_0x399e74[_0x118356('0x1de3')]=_0x784a92||{'count':0x0,'rows':[]},_0x399e74[_0x118356('0x1ff7')]=_0x36f548()[_0x118356('0xbdb')](_0x36f548()['keyBy'](_0x399e74[_0x118356('0x1de3')][_0x118356('0x19b2')],_0x118356('0x1909')),_0x118356('0x1909'));})['catch'](function(_0x59b8e4){const _0x1e8ba4=_0x3a602c;console[_0x1e8ba4('0x255')](_0x59b8e4);})[_0x3a602c('0xa9b')](function(){const _0x5e9f4f=_0x3a602c;_0x399e74[_0x5e9f4f('0x7db')]=_0xad87f(),_0x399e74[_0x5e9f4f('0x2742')]();});}function _0xad87f(){const _0x57e5ac=_0xee4836;return[{'name':_0x57e5ac('0xa68'),'key':_0x57e5ac('0x1779'),'type':_0x57e5ac('0x22f7'),'label':'DASHBOARDS.SELECT_DATE'},{'name':_0x57e5ac('0x701'),'key':'lastAssignedTo','type':'select','label':_0x57e5ac('0x84a'),'options':_0x399e74[_0x57e5ac('0x1401')][_0x57e5ac('0x19b2')],'customOptions':[{'value':_0x57e5ac('0x77b'),'translate':_0x57e5ac('0x1a02')},{'value':undefined,'translate':'DASHBOARDS.ALL'}]},{'name':_0x57e5ac('0x10ef'),'key':_0x57e5ac('0x150b'),'type':_0x57e5ac('0xe83'),'label':_0x57e5ac('0x180c'),'options':_0x399e74['queues'][_0x57e5ac('0x19b2')]}];}function _0x53c99e(){const _0xec9186=_0xee4836;_0x399e74[_0xec9186('0x15a1')]=![],_0x399e74[_0xec9186('0x1de3')]['count']>0x0?(_0x399e74['query'][_0xec9186('0x150b')]=_0x399e74[_0xec9186('0x1de3')][_0xec9186('0x27d2')]===0x1?_0x399e74['queues']['rows'][0x0]['name']:_0x399e74[_0xec9186('0x1f2a')][_0xec9186('0x150b')],_0x399e74['query'][_0xec9186('0x1393')]=(_0x399e74[_0xec9186('0x1f2a')][_0xec9186('0x1c2')]-0x1)*_0x399e74['query'][_0xec9186('0xd5c')],_0x229b5c[_0xec9186('0xe4a')][_0xec9186('0x26d6')](_0xec9186('0xc8e')+_0x399e74['currentUser']['id'],JSON[_0xec9186('0x3e')]({'query':_0x36f548()[_0xec9186('0x196f')](_0x399e74[_0xec9186('0x1f2a')],_0xec9186('0x150b'))})),_0x399e74[_0xec9186('0x13f')]=_0xdc7942[_0xec9186('0xfad')][_0xec9186('0x15ee')](_0x399e74['query'],_0x1b4912)[_0xec9186('0x1549')]):_0x1b4912(null);}function _0x1b4912(_0x1b38a9){const _0xff911a=_0xee4836;_0x399e74[_0xff911a('0x14ce')]=_0x1b38a9||{'count':0x0,'rows':[]},_0x399e74[_0xff911a('0x15a1')]=!![];}function _0x5793e5(){const _0x5292d6=_0xee4836;_0x399e74[_0x5292d6('0x1d5')]=![],_0x399e74[_0x5292d6('0x2742')]();}function _0x3f4860(_0x497fe9){const _0x53468a=_0xee4836,_0x164aee=_0x53468a('0x18a2');_0x497fe9&&_0x399e74[_0x53468a('0x1ff7')]&&_0x399e74[_0x53468a('0x1f2a')][_0x53468a('0x19fd')]===_0x164aee&&_0x399e74[_0x53468a('0x1ff7')][_0x497fe9[_0x53468a('0x150b')]]&&(_0x399e74[_0x53468a('0x1d5')]=!![]);}function _0xe41f82(_0x3f42af){const _0x5057a7=_0xee4836;if(_0x3f42af){const _0x2f6699=_0x36f548()[_0x5057a7('0x1b12')](_0x399e74[_0x5057a7('0x14ce')][_0x5057a7('0x19b2')],['id',_0x3f42af['id']]);_0x2f6699>=0x0&&_0x36f548()[_0x5057a7('0x47b')](_0x399e74[_0x5057a7('0x14ce')][_0x5057a7('0x19b2')][_0x2f6699],_0x3f42af);}}function _0xa6eab5(_0x12a6c2,_0x2c8a67){const _0x2d460c=_0xee4836;_0x12a6c2&&_0xdc7942[_0x2d460c('0xfad')][_0x2d460c('0x5ab')]({'id':_0x12a6c2['id'],'lastAssignedTo':_0x2c8a67?_0x2c8a67[_0x2d460c('0x1909')]:null,'assigned':_0x2c8a67?!![]:![]})[_0x2d460c('0x1549')][_0x2d460c('0x151d')](function(_0x50b4e3){const _0x32ecc7=_0x2d460c;console[_0x32ecc7('0xc78')](_0x50b4e3);});}function _0x1c5338(_0x535850){const _0x28d5c2=_0xee4836;_0x2c56f3['show']({'controller':_0x28d5c2('0xeb8'),'controllerAs':'vm','templateUrl':_0x28d5c2('0x391'),'parent':angular[_0x28d5c2('0x1e73')](_0xf368fe[_0x28d5c2('0x1d2')]),'targetEvent':_0x535850,'resolve':{'globalDispositions':[_0x28d5c2('0x218e'),function(_0x33a098){const _0x3b47cf=_0x28d5c2;return _0x33a098['resolve']('disposition@get',{'MailAccountId':_0x3b47cf('0xb5f'),'FaxAccountId':_0x3b47cf('0xb5f'),'SmsAccountId':_0x3b47cf('0xb5f'),'WhatsappAccountId':_0x3b47cf('0xb5f'),'OpenchannelAccountId':_0x3b47cf('0xb5f'),'ChatWebsiteId':_0x3b47cf('0xb5f'),'ListId':_0x3b47cf('0xb5f')});}]},'locals':{'dispositions':_0x399e74[_0x28d5c2('0x1394')],'call':_0x535850}})[_0x28d5c2('0x11bf')](function(_0x502578){const _0x288c05=_0x28d5c2;if(_0x502578){const _0x311b8f={'id':_0x535850['id'],'disposition':_0x502578[_0x288c05('0x1fc4')]||null,'secondDisposition':_0x502578[_0x288c05('0x172b')]||null,'thirdDisposition':_0x502578['thirdLevel']||null};_0xdc7942[_0x288c05('0xfad')][_0x288c05('0x5ab')](_0x311b8f)[_0x288c05('0x1549')][_0x288c05('0x151d')](function(_0x505e8e){console['log'](_0x505e8e);});}});}let _0x5b7c23=!![],_0x2e8a08=0x1;_0x1d1d07[_0xee4836('0x2087')](_0xee4836('0x842'),function(_0x415fcd,_0x5b8506){const _0x10f991=_0xee4836;_0x5b7c23?_0x39ac54(function(){_0x5b7c23=![];}):(!_0x5b8506&&(_0x2e8a08=_0x399e74[_0x10f991('0x1f2a')]['page']),_0x415fcd!==_0x5b8506&&(_0x399e74['query']['page']=0x1),!_0x415fcd&&(_0x399e74[_0x10f991('0x1f2a')][_0x10f991('0x1c2')]=_0x2e8a08),_0x399e74[_0x10f991('0x2742')]());}),_0x1d1d07[_0xee4836('0x12d8')](_0xee4836('0x4f7'),function(){const _0x4cd839=_0xee4836;_0x364a76['removeAllListeners'](_0x4cd839('0xfe4')),_0x364a76[_0x4cd839('0x1b2e')](_0x4cd839('0x132e'));});}const _0x4a5ecc=_0x4280ab;_0x3f1813[_0x21d0f5('0x1e9a')]=['$scope','$q',_0x21d0f5('0x17f5'),'$mdDialog',_0x21d0f5('0x1b30'),_0x21d0f5('0x2212'),_0x21d0f5('0x12f2'),_0x21d0f5('0x1401'),_0x21d0f5('0xaa0'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1d56'),_0x21d0f5('0x142d'),_0x21d0f5('0x927'),'userProfile','userProfileSection',_0x21d0f5('0x1150'),'license',_0x21d0f5('0x1fd')];function _0x3f1813(_0x139a02,_0x210b00,_0x5155cf,_0x74949b,_0x264920,_0x22987e,_0x7bcb89,_0x2ba00d,_0x298d0b,_0x4fc1ca,_0x1be074,_0x3388bf,_0x24e4d2,_0x3acc78,_0x1cd7a3,_0x171afb,_0x4c4944,_0x124aa5){const _0x18b2cc=_0x21d0f5,_0x3a530a=this,_0x3663bf=[_0x18b2cc('0x88'),_0x18b2cc('0x81c'),_0x18b2cc('0x3bd'),'lastPauseAt',_0x18b2cc('0x2628'),_0x18b2cc('0x1e10'),_0x18b2cc('0x1a04'),_0x18b2cc('0x5fc'),_0x18b2cc('0x13c9'),'openchannelPause','mailPause',_0x18b2cc('0x55e'),'whatsappPause',_0x18b2cc('0x2501'),'voicePause',_0x18b2cc('0x1ed'),_0x18b2cc('0x93c'),_0x18b2cc('0x2271'),_0x18b2cc('0xcc5'),_0x18b2cc('0xf0d'),'faxCapacity',_0x18b2cc('0x539'),_0x18b2cc('0x1a2e'),'mailCurrentCapacity',_0x18b2cc('0x19de'),_0x18b2cc('0xa81'),_0x18b2cc('0x21d4'),_0x18b2cc('0x1572'),_0x18b2cc('0x19c0'),_0x18b2cc('0x1683'),_0x18b2cc('0x245c'),_0x18b2cc('0x14d4'),'faxStatus',_0x18b2cc('0x1715'),_0x18b2cc('0xe6a'),'openchannelStatusTime',_0x18b2cc('0x1bab'),_0x18b2cc('0x1ac6'),_0x18b2cc('0x3ee'),'faxStatusTime',_0x18b2cc('0x24e5'),_0x18b2cc('0x150b'),_0x18b2cc('0x1562'),_0x18b2cc('0xcb7'),_0x18b2cc('0x15e0'),_0x18b2cc('0x1f38')],_0x543089=[_0x18b2cc('0x13c9'),_0x18b2cc('0xfc0'),'mailPause',_0x18b2cc('0x55e'),_0x18b2cc('0x1ed1'),_0x18b2cc('0x2501'),_0x18b2cc('0x20d'),'online'];_0x3a530a[_0x18b2cc('0x32a')]=_0x171afb[_0x18b2cc('0x2428')](),_0x3a530a[_0x18b2cc('0x1391')]=[_0x18b2cc('0x19b'),_0x18b2cc('0x1218'),_0x18b2cc('0x23a3'),_0x18b2cc('0x26ac'),_0x18b2cc('0x753')],_0x3a530a[_0x18b2cc('0x12f2')]=_0x7bcb89||{'count':0x0,'rows':[]},_0x3a530a[_0x18b2cc('0x17ff')]=_0x4c4944,_0x3a530a[_0x18b2cc('0x25bc')]=_0x3acc78,_0x3a530a[_0x18b2cc('0x1d63')]=_0x1cd7a3&&_0x1cd7a3[_0x18b2cc('0x27d2')]==0x1?_0x1cd7a3['rows'][0x0]:null,_0x3a530a[_0x18b2cc('0xb25')]=_0x171afb[_0x18b2cc('0x1530')](_0x3a530a[_0x18b2cc('0x1d63')]?_0x3a530a[_0x18b2cc('0x1d63')]['crudPermissions']:null),_0x3a530a[_0x18b2cc('0x1401')]=_0x2ba00d?_0x36f548()[_0x18b2cc('0x2130')](_0x2ba00d['rows']?_0x2ba00d[_0x18b2cc('0x19b2')]:[],'id'):{},_0x3a530a[_0x18b2cc('0xaa0')]=_0x298d0b?_0x36f548()[_0x18b2cc('0x2130')](_0x298d0b['rows']?_0x298d0b['rows']:[],'id'):{},_0x3a530a[_0x18b2cc('0x18bd')]={},_0x3a530a[_0x18b2cc('0x215b')]=![],_0x3a530a[_0x18b2cc('0x59')]=[],_0x3a530a['agentInternal']={};for(const _0x3f7f05 in _0x3a530a['agents']){typeof _0x3a530a[_0x18b2cc('0x1401')][_0x3f7f05]!==_0x18b2cc('0x13e9')&&(_0x3a530a[_0x18b2cc('0x1401')][_0x3f7f05]['init']=!![]);}_0x3a530a[_0x18b2cc('0x1f2a')]={'limit':0xa,'page':0x1,'order':_0x18b2cc('0x27af'),'globalStatusFilter':'','pauseTypeFilter':''},_0x3a530a[_0x18b2cc('0x18f7')]=_0x524af0,_0x3a530a['queueAdd']=_0x1a2165,_0x3a530a[_0x18b2cc('0x92a')]=_0x52dd7e,_0x3a530a[_0x18b2cc('0x1ab7')]=_0x5ae3a9,_0x3a530a[_0x18b2cc('0x1410')]=_0x58c205,_0x3a530a[_0x18b2cc('0x12e5')]=_0x197022,_0x3a530a[_0x18b2cc('0x11a2')]=_0x4b35c4,_0x3a530a[_0x18b2cc('0x1191')]=_0x22aa6a,_0x3a530a[_0x18b2cc('0x1869')]=_0xdc2779,_0x3a530a['isPartialPause']=_0x127d7a,_0x3a530a[_0x18b2cc('0xc8f')]=_0x5863a9,_0x3a530a['onUpdate']=_0x290aea,_0x3a530a[_0x18b2cc('0x277c')]=_0x29004f,_0x3a530a[_0x18b2cc('0x1e2e')]=_0xc05051,_0x3a530a['onComplete']=_0x4f642c,_0x3a530a[_0x18b2cc('0x1520')]=_0x4fb027,_0x1be074['on']('user:save',_0x3a530a[_0x18b2cc('0xc8f')]),_0x1be074['on'](_0x18b2cc('0x15bd'),_0x3a530a['onUpdate']),_0x1be074['on']('user:agentconnect',_0x3a530a[_0x18b2cc('0x1e2e')]),_0x1be074['on'](_0x18b2cc('0xffb'),_0x3a530a[_0x18b2cc('0x162a')]),_0x29004f();let _0x2e8462=_0x124aa5(function(){const _0x51f482=_0x18b2cc;_0x3a530a[_0x51f482('0x215b')]&&(_0x3a530a['load']=![],_0x29004f());},0x3e7);function _0x29004f(){const _0x3130c6=_0x18b2cc;_0x3a530a[_0x3130c6('0x215b')]=![];const _0x3cd0a2=_0x210b00['defer']();_0x3a530a['promise']=_0x3cd0a2[_0x3130c6('0x13f')],_0x3a530a[_0x3130c6('0x15f2')]=[],_0x3a530a['order']=[],_0x36f548()[_0x3130c6('0x41e')](_0x3a530a['agents'],function(_0x58e7d0,_0x3d38ab){const _0x334209=_0x3130c6;_0x3a530a['rpcAgents'][_0x3d38ab]&&_0x36f548()[_0x334209('0x47b')](_0x58e7d0,_0x36f548()['pick'](_0x36f548()[_0x334209('0x196f')](_0x3a530a[_0x334209('0xaa0')][_0x3d38ab],_0x543089),_0x3663bf)),_0x4b35c4(_0x58e7d0),_0x58e7d0[_0x334209('0x81c')]?(_0x3a530a['filteredAgents'][_0x334209('0x105d')](_0x58e7d0),_0x3a530a['agentInternal'][_0x58e7d0[_0x334209('0x1a04')]]=_0x3d38ab):_0x58e7d0['globalStatusTime']=_0x36f548()[_0x334209('0x17c2')](_0x57d4d1()()['format']('x'));});_0x3a530a[_0x3130c6('0x1f2a')][_0x3130c6('0x270')]&&_0x36f548()['remove'](_0x3a530a[_0x3130c6('0x15f2')],function(_0xd018f4){const _0x26508a=_0x3130c6;return _0xd018f4[_0x26508a('0x797')]!==_0x3a530a[_0x26508a('0x1f2a')]['globalStatusFilter'];});_0x3a530a['query'][_0x3130c6('0xa12')]&&_0x36f548()['remove'](_0x3a530a[_0x3130c6('0x15f2')],function(_0x203949){const _0x399773=_0x3130c6;return _0x203949[_0x399773('0x2628')]!==_0x3a530a[_0x399773('0x1f2a')][_0x399773('0xa12')];});_0x3a530a[_0x3130c6('0x1f2a')][_0x3130c6('0xdb4')]&&_0x36f548()[_0x3130c6('0x14a5')](_0x3a530a[_0x3130c6('0x15f2')],function(_0x370cae){const _0x1f469c=_0x3130c6;return _0x370cae[_0x1f469c('0x27af')][_0x1f469c('0x20d5')]()[_0x1f469c('0x203c')](_0x3a530a[_0x1f469c('0x1f2a')][_0x1f469c('0xdb4')]['toLowerCase']())<0x0;});_0x3a530a[_0x3130c6('0x15f2')]=_0x59db9c(_0x3a530a[_0x3130c6('0x15f2')]);const _0x2aa2d4=(_0x3a530a['query'][_0x3130c6('0x1c2')]-0x1)*_0x3a530a[_0x3130c6('0x1f2a')]['limit'];_0x3a530a['paginatedAgents']=_0x36f548()[_0x3130c6('0x1077')](_0x3a530a['filteredAgents'],_0x2aa2d4)['slice'](0x0,_0x3a530a[_0x3130c6('0x1f2a')][_0x3130c6('0xd5c')]);for(let _0x21fd01=0x0;_0x21fd01<_0x3a530a['paginatedAgents'][_0x3130c6('0x1e22')];_0x21fd01+=0x1){_0x3a530a[_0x3130c6('0x59')]['push'](_0x3a530a['paginatedAgents'][_0x21fd01]['id']);}_0x3cd0a2[_0x3130c6('0xa28')](),_0x3a530a['load']=!![];}function _0x5863a9(_0x521c87){const _0x43aad2=_0x18b2cc;_0x3a530a['agents'][_0x521c87['id']]&&(_0x36f548()[_0x43aad2('0x47b')](_0x3a530a['agents'][_0x521c87['id']],_0x36f548()[_0x43aad2('0x258')](_0x36f548()[_0x43aad2('0x196f')](_0x521c87,_0x543089),_0x3663bf)),_0x36f548()[_0x43aad2('0x47b')](_0x3a530a[_0x43aad2('0xaa0')][_0x521c87['id']],_0x36f548()['pick'](_0x36f548()[_0x43aad2('0x196f')](_0x521c87,_0x543089),_0x3663bf)),_0x4b35c4(_0x3a530a[_0x43aad2('0x1401')][_0x521c87['id']]));}function _0x290aea(_0xcecc85){const _0x1ff556=_0x18b2cc;_0x3a530a[_0x1ff556('0x1401')][_0xcecc85['id']]&&(_0x36f548()[_0x1ff556('0x47b')](_0x3a530a[_0x1ff556('0x1401')][_0xcecc85['id']],_0x36f548()[_0x1ff556('0x258')](_0xcecc85,_0x3663bf)),_0x36f548()[_0x1ff556('0x47b')](_0x3a530a[_0x1ff556('0xaa0')][_0xcecc85['id']],_0x36f548()[_0x1ff556('0x258')](_0xcecc85,_0x3663bf)),_0xcecc85['lastPauseAt']&&(_0x3a530a[_0x1ff556('0x1401')][_0xcecc85['id']][_0x1ff556('0xd4')]=_0xcecc85[_0x1ff556('0x1e10')],_0x3a530a[_0x1ff556('0xaa0')][_0xcecc85['id']]['globalStatusTime']=_0xcecc85[_0x1ff556('0x1e10')]),_0x4b35c4(_0x3a530a[_0x1ff556('0x1401')][_0xcecc85['id']]));}function _0xc05051(_0x1265ff){const _0x4a3ef8=_0x18b2cc;_0x3a530a[_0x4a3ef8('0x1401')][_0x3a530a[_0x4a3ef8('0x14fd')][_0x1265ff[_0x4a3ef8('0x1fd0')]]]&&(_0x36f548()[_0x4a3ef8('0x47b')](_0x3a530a['agents'][_0x3a530a[_0x4a3ef8('0x14fd')][_0x1265ff['destaccountcode']]],_0x36f548()[_0x4a3ef8('0x258')](_0x1265ff,['queue','destconnectedlinenum'])),_0x36f548()['merge'](_0x3a530a[_0x4a3ef8('0xaa0')][_0x3a530a[_0x4a3ef8('0x14fd')][_0x1265ff['destaccountcode']]],_0x36f548()[_0x4a3ef8('0x258')](_0x1265ff,[_0x4a3ef8('0x150b'),_0x4a3ef8('0x1562')])));}function _0x4f642c(_0x46bb28){const _0x60d732=_0x18b2cc;_0x3a530a['agents'][_0x3a530a[_0x60d732('0x14fd')][_0x46bb28[_0x60d732('0x1fd0')]]]&&(_0x3a530a['agents'][_0x3a530a[_0x60d732('0x14fd')][_0x46bb28[_0x60d732('0x1fd0')]]]=_0x36f548()[_0x60d732('0x196f')](_0x3a530a[_0x60d732('0x1401')][_0x3a530a[_0x60d732('0x14fd')][_0x46bb28[_0x60d732('0x1fd0')]]],[_0x60d732('0x150b'),_0x60d732('0x1562')]),_0x3a530a[_0x60d732('0xaa0')][_0x3a530a[_0x60d732('0x14fd')][_0x46bb28['destaccountcode']]]=_0x36f548()[_0x60d732('0x196f')](_0x3a530a['rpcAgents'][_0x3a530a[_0x60d732('0x14fd')][_0x46bb28[_0x60d732('0x1fd0')]]],[_0x60d732('0x150b'),_0x60d732('0x1562')]));}function _0x524af0(_0x5f0102){const _0x4b8244=_0x18b2cc;return _0x4fc1ca[_0x4b8244('0x21d9')][_0x4b8244('0x18f7')]({'id':_0x5f0102['id'],'device':_0x4b8244('0x25f9'),'agent_id':_0x5f0102['id'],'agent_name':_0x5f0102['name']})[_0x4b8244('0x1549')][_0x4b8244('0x11bf')](function(){const _0x5f1ea7=_0x4b8244;_0x3388bf[_0x5f1ea7('0x2693')]({'title':_0x5f1ea7('0x21e1'),'msg':_0x5f0102[_0x5f1ea7('0x27af')]+_0x5f1ea7('0xf73')}),_0x3a530a[_0x5f1ea7('0x1401')][_0x5f0102['id']]&&(_0x3a530a[_0x5f1ea7('0x1401')][_0x5f0102['id']]['online']=![]),_0x3a530a['rpcAgents'][_0x5f0102['id']]&&(_0x3a530a[_0x5f1ea7('0xaa0')][_0x5f0102['id']][_0x5f1ea7('0x81c')]=![]),_0x29004f();})[_0x4b8244('0x151d')](function(_0x1daf38){const _0x331b84=_0x4b8244;_0x3388bf[_0x331b84('0x255')]({'title':_0x1daf38[_0x331b84('0xff9')]?_0x331b84('0x574')+_0x1daf38[_0x331b84('0xff9')]+_0x331b84('0xb0b')+_0x1daf38['statusText']:_0x331b84('0x9'),'msg':_0x1daf38[_0x331b84('0x4e8')]?JSON[_0x331b84('0x3e')](_0x1daf38[_0x331b84('0x4e8')][_0x331b84('0x1b86')]):_0x1daf38['toString']()});});}function _0x52dd7e(_0x2c58da,_0x128566){const _0x234f69=_0x18b2cc;return _0x4fc1ca[_0x234f69('0x21d9')][_0x234f69('0x92a')]({'id':_0x2c58da['id'],'type':_0x128566})[_0x234f69('0x1549')][_0x234f69('0x11bf')](function(_0x4aa113){const _0x33947d=_0x234f69;_0x3a530a[_0x33947d('0x1401')][_0x2c58da['id']]&&_0x36f548()[_0x33947d('0x47b')](_0x3a530a[_0x33947d('0x1401')][_0x2c58da['id']],_0x36f548()[_0x33947d('0x258')](_0x4aa113,_0x3663bf)),_0x3a530a[_0x33947d('0xaa0')][_0x2c58da['id']]&&_0x36f548()[_0x33947d('0x47b')](_0x3a530a['rpcAgents'][_0x2c58da['id']],_0x36f548()[_0x33947d('0x258')](_0x4aa113,_0x3663bf)),_0x4b35c4(_0x3a530a[_0x33947d('0x1401')][_0x2c58da['id']]);})[_0x234f69('0x151d')](function(_0x5ecbbb){const _0x419f47=_0x234f69;_0x3388bf[_0x419f47('0x255')]({'title':_0x5ecbbb[_0x419f47('0xff9')]?'API:'+_0x5ecbbb[_0x419f47('0xff9')]+'\x20-\x20'+_0x5ecbbb[_0x419f47('0x212f')]:_0x419f47('0x9'),'msg':_0x5ecbbb['data']?JSON[_0x419f47('0x3e')](_0x5ecbbb['data'][_0x419f47('0x1b86')]):_0x5ecbbb[_0x419f47('0xaab')]()});});}function _0x5ae3a9(_0x5e5d64){const _0x220bb4=_0x18b2cc;return _0x4fc1ca[_0x220bb4('0x21d9')][_0x220bb4('0xb6f')]({'id':_0x5e5d64['id']})['$promise']['then'](function(_0x371d4d){const _0x2acab5=_0x220bb4;_0x3a530a[_0x2acab5('0x1401')][_0x5e5d64['id']]&&_0x36f548()[_0x2acab5('0x47b')](_0x3a530a[_0x2acab5('0x1401')][_0x5e5d64['id']],_0x36f548()[_0x2acab5('0x258')](_0x371d4d,_0x3663bf)),_0x3a530a[_0x2acab5('0xaa0')][_0x5e5d64['id']]&&_0x36f548()[_0x2acab5('0x47b')](_0x3a530a[_0x2acab5('0xaa0')][_0x5e5d64['id']],_0x36f548()[_0x2acab5('0x258')](_0x371d4d,_0x3663bf)),_0x4b35c4(_0x3a530a['agents'][_0x5e5d64['id']]);})[_0x220bb4('0x151d')](function(_0x2ab5d4){const _0x512c42=_0x220bb4;_0x3388bf[_0x512c42('0x255')]({'title':_0x2ab5d4[_0x512c42('0xff9')]?_0x512c42('0x574')+_0x2ab5d4['status']+_0x512c42('0xb0b')+_0x2ab5d4[_0x512c42('0x212f')]:_0x512c42('0x9'),'msg':_0x2ab5d4[_0x512c42('0x4e8')]?JSON['stringify'](_0x2ab5d4[_0x512c42('0x4e8')][_0x512c42('0x1b86')]):_0x2ab5d4[_0x512c42('0xaab')]()});});}function _0x58c205(_0x95fc05){const _0x8e2642=_0x18b2cc;_0x74949b[_0x8e2642('0xb9')](_0x74949b[_0x8e2642('0xb30')]()[_0x8e2642('0x728')](!![])[_0x8e2642('0x134b')](_0x8e2642('0x24f0'))[_0x8e2642('0x1d03')](_0x8e2642('0x193c'))['ok']('Ok')[_0x8e2642('0x1e25')](_0x95fc05));}function _0x1a2165(_0x37b3b7,_0x3ad6f8){const _0x5a7b31=_0x18b2cc;_0x74949b['show']({'controller':'AgentqueueaddController','controllerAs':'vm','templateUrl':_0x43dcce,'parent':angular['element'](_0x264920['body']),'targetEvent':_0x3ad6f8,'clickOutsideToClose':!![],'locals':{'agent':_0x37b3b7,'agents':[],'channel':_0x5a7b31('0x1bc3'),'direction':_0x5a7b31('0x18a2'),'crudPermissions':_0x3a530a['crudPermissions']}});}function _0x22aa6a(_0x1216c6){const _0x46bf61=_0x18b2cc;return _0x1216c6===_0x46bf61('0x92a')||_0x1216c6===_0x46bf61('0x1050');}function _0xdc2779(_0x55351a){const _0xb81ba4=_0x18b2cc;return _0x55351a===_0xb81ba4('0x92a');}function _0x127d7a(_0x58db53){const _0x36f4f0=_0x18b2cc;return _0x58db53===_0x36f4f0('0x1050');}function _0x277214(_0x564037){const _0x9404b6=_0x18b2cc;return _0x564037===_0x9404b6('0x1533')||_0x564037===_0x9404b6('0x6b0')||_0x564037===_0x9404b6('0x181f')||_0x564037==='ringing'||_0x36f548()['isNil'](_0x564037);}function _0x197022(_0x2eecc3,_0x12aaaf){const _0x525360=_0x18b2cc;if(_0x12aaaf==='voice'){if(_0x2eecc3[_0x12aaaf+'Status']!==_0x525360('0x1533'))return _0x2eecc3[_0x12aaaf+_0x525360('0x971')];if(_0x2eecc3[_0x12aaaf+_0x525360('0x6c5')])return _0x2eecc3[_0x12aaaf+'Status']='pause',_0x525360('0x92a');return _0x525360('0x1533');}else{if(_0x2eecc3[_0x12aaaf+'Pause'])return _0x2eecc3[_0x12aaaf+'Status']=_0x525360('0x92a'),'pause';return _0x2eecc3[_0x12aaaf+_0x525360('0x971')];}}function _0x4b35c4(_0x4243b9){const _0x2d9f00=_0x18b2cc;let _0x1dcccb=_0x2d9f00('0x6b0');if(_0x36f548()[_0x2d9f00('0x1d1')]([_0x197022(_0x4243b9,_0x2d9f00('0x1bc3')),_0x197022(_0x4243b9,'chat'),_0x197022(_0x4243b9,'mail'),_0x197022(_0x4243b9,_0x2d9f00('0xb18')),_0x197022(_0x4243b9,'sms'),_0x197022(_0x4243b9,_0x2d9f00('0xe7c')),_0x197022(_0x4243b9,_0x2d9f00('0x2104'))],_0x22aa6a))_0x1dcccb=_0x2d9f00('0x92a');else{if(_0x36f548()['some']([_0x197022(_0x4243b9,_0x2d9f00('0x1bc3')),_0x197022(_0x4243b9,'chat'),_0x197022(_0x4243b9,_0x2d9f00('0x2030')),_0x197022(_0x4243b9,'openchannel'),_0x197022(_0x4243b9,_0x2d9f00('0x4df')),_0x197022(_0x4243b9,_0x2d9f00('0xe7c')),_0x197022(_0x4243b9,_0x2d9f00('0x2104'))],_0x22aa6a))_0x1dcccb=_0x2d9f00('0x1050');else _0x36f548()['every']([_0x197022(_0x4243b9,_0x2d9f00('0x1bc3')),_0x197022(_0x4243b9,'chat'),_0x197022(_0x4243b9,_0x2d9f00('0x2030')),_0x197022(_0x4243b9,'openchannel'),_0x197022(_0x4243b9,_0x2d9f00('0x4df')),_0x197022(_0x4243b9,_0x2d9f00('0xe7c')),_0x197022(_0x4243b9,_0x2d9f00('0x2104'))],_0x277214)?_0x1dcccb=_0x2d9f00('0x1533'):_0x1dcccb=_0x2d9f00('0x23a3');}_0x4243b9['globalStatus']!==_0x1dcccb&&(_0x4243b9[_0x2d9f00('0x797')]=_0x1dcccb,_0x4243b9[_0x2d9f00('0x286f')]?(_0x4243b9[_0x2d9f00('0x286f')]=![],_0x4243b9[_0x2d9f00('0xd4')]=_0x22aa6a(_0x1dcccb)?_0x36f548()[_0x2d9f00('0x17c2')](_0x57d4d1()(_0x4243b9[_0x2d9f00('0x1e10')])['format']('x')):_0x36f548()['max']([_0x4243b9['voiceStatusTime'],_0x4243b9[_0x2d9f00('0xe6a')],_0x4243b9[_0x2d9f00('0x1bab')],_0x4243b9[_0x2d9f00('0x1ac6')],_0x4243b9[_0x2d9f00('0x3ee')],_0x4243b9[_0x2d9f00('0x22cb')],_0x4243b9[_0x2d9f00('0x1ce2')]])):_0x4243b9[_0x2d9f00('0xd4')]=_0x36f548()['toNumber'](_0x57d4d1()()[_0x2d9f00('0x1826')]('x')));}function _0x59db9c(_0x9b7e28){const _0x5d2e3f=_0x18b2cc,_0xc99605=_0x36f548()['startsWith'](_0x3a530a['query'][_0x5d2e3f('0x59')],'-')?'desc':_0x5d2e3f('0x1875');return _0x36f548()['orderBy'](_0x9b7e28,[_0x3a530a[_0x5d2e3f('0x1f2a')]['order'][_0x5d2e3f('0x814')]('-','')],[_0xc99605]);}function _0x1b7f82(){const _0x50f13f=_0x18b2cc;_0x2e8462&&(_0x124aa5[_0x50f13f('0x26c9')](_0x2e8462),_0x2e8462=null);}function _0x4fb027(_0x467b7b,_0x3a85a2){const _0x29c210=_0x18b2cc;return _0x4fc1ca['user'][_0x29c210('0x5ab')]({'id':_0x467b7b['id']},{'screenrecording':_0x3a85a2})[_0x29c210('0x1549')]['catch'](function(_0x97e5aa){const _0x4d56c1=_0x29c210;_0x3388bf[_0x4d56c1('0x255')]({'title':_0x97e5aa[_0x4d56c1('0xff9')]?'API:'+_0x97e5aa[_0x4d56c1('0xff9')]+_0x4d56c1('0xb0b')+_0x97e5aa[_0x4d56c1('0x212f')]:_0x4d56c1('0x165b'),'msg':_0x97e5aa['data']?JSON['stringify'](_0x97e5aa[_0x4d56c1('0x4e8')][_0x4d56c1('0x1b86')]):_0x97e5aa[_0x4d56c1('0xaab')]()});});}_0x139a02[_0x18b2cc('0x12d8')](_0x18b2cc('0x4f7'),function(){const _0x6bb6b5=_0x18b2cc;_0x1be074[_0x6bb6b5('0x1b2e')]('user:save'),_0x1be074[_0x6bb6b5('0x1b2e')]('user:update'),_0x1be074[_0x6bb6b5('0x1b2e')](_0x6bb6b5('0x90c')),_0x1be074[_0x6bb6b5('0x1b2e')]('user:agentcomplete'),_0x1b7f82();});}const _0x132dea=_0x3f1813;_0x515642[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0x17f5'),_0x21d0f5('0x12a5'),'socket',_0x21d0f5('0x1a3f'),'helperClasses'];function _0x515642(_0x3b0e3e,_0x2c2f9e,_0x737953,_0x5cd0ac,_0x351f53,_0x141795){const _0x20a296=_0x21d0f5,_0x28994f=this;_0x28994f[_0x20a296('0xb7e')]=_0x351f53||{'rows':[],'count':0x0},_0x28994f[_0x20a296('0x1f2a')]={'limit':0xa,'page':0x1},_0x28994f[_0x20a296('0x43a')]=_0x141795[_0x20a296('0x2815')],_0x5cd0ac['on']('voice_outbound_channel:save',_0x28994f['onSave']),_0x5cd0ac['on'](_0x20a296('0x2ff'),_0x28994f[_0x20a296('0x400')]);function _0x350a16(_0x165897){const _0x5a0157=_0x20a296,_0x1fe59d=_0x36f548()[_0x5a0157('0x1ad4')](_0x28994f[_0x5a0157('0xb7e')]['rows'],{'channel':_0x165897[_0x5a0157('0xd12')]});_0x165897[_0x5a0157('0x1596')]=_0x165897[_0x5a0157('0x21a')]?'up':'ring';if(_0x1fe59d)_0x36f548()[_0x5a0157('0x47b')](_0x1fe59d,_0x165897);else _0x165897[_0x5a0157('0xd12')]&&_0x28994f[_0x5a0157('0xb7e')][_0x5a0157('0x19b2')][_0x5a0157('0x105d')](_0x165897);}function _0x292713(_0x4cd03a){const _0x470cdf=_0x20a296,_0x56fda5=_0x36f548()[_0x470cdf('0x1b12')](_0x28994f[_0x470cdf('0xb7e')][_0x470cdf('0x19b2')],{'channel':_0x4cd03a[_0x470cdf('0xd12')]});_0x56fda5>=0x0&&(_0x28994f[_0x470cdf('0xb7e')][_0x470cdf('0x19b2')][_0x56fda5][_0x470cdf('0xff9')]=_0x470cdf('0xcef')),_0x2c2f9e(function(){const _0x4b5558=_0x470cdf;_0x28994f['calls'][_0x4b5558('0x19b2')][_0x4b5558('0x1ae')](_0x56fda5,0x1);},0x1388);}_0x3b0e3e[_0x20a296('0x12d8')](_0x20a296('0x4f7'),function(){const _0x52de9a=_0x20a296;_0x5cd0ac[_0x52de9a('0x1b2e')](_0x52de9a('0x176e')),_0x5cd0ac[_0x52de9a('0x1b2e')](_0x52de9a('0x2ff'));}),_0x28994f[_0x20a296('0xc8f')]=_0x350a16,_0x28994f[_0x20a296('0x400')]=_0x292713;}const _0x252071=_0x515642;_0x251287['$inject']=['$scope',_0x21d0f5('0x17f5'),_0x21d0f5('0x1ca2'),_0x21d0f5('0x1401'),'queues','rpcVoiceQueuesChannels',_0x21d0f5('0x12a5'),_0x21d0f5('0x1d56'),_0x21d0f5('0x927'),_0x21d0f5('0x142d'),'userProfile',_0x21d0f5('0x1d63'),'Auth'];function _0x251287(_0xa37c32,_0x123948,_0x701bff,_0x2e4c62,_0x27693b,_0x3a965a,_0xc43260,_0x2d1ba2,_0x47eccb,_0x2be16f,_0x41bc68,_0x4b59be,_0x14b21f){const _0x24cafa=_0x21d0f5,_0x1f8566=this;_0x1f8566[_0x24cafa('0x32a')]=_0x14b21f['getCurrentUser'](),_0x1f8566['agents']=_0x2e4c62||{'count':0x0,'rows':[]},_0x1f8566[_0x24cafa('0x1de3')]=_0x27693b?_0x36f548()['keyBy'](_0x27693b[_0x24cafa('0x19b2')]?_0x27693b[_0x24cafa('0x19b2')]:[],_0x24cafa('0x1909')):{},_0x1f8566[_0x24cafa('0x4d5')]=_0x3a965a?_0x36f548()[_0x24cafa('0x2130')](_0x3a965a['rows']?_0x36f548()[_0x24cafa('0xdb4')](_0x3a965a['rows'],{'type':'inbound'}):[],_0x24cafa('0x938')):{},_0x1f8566[_0x24cafa('0x101e')]={},_0x1f8566[_0x24cafa('0x25bc')]=_0x41bc68,_0x1f8566[_0x24cafa('0x1d63')]=_0x4b59be&&_0x4b59be[_0x24cafa('0x27d2')]==0x1?_0x4b59be[_0x24cafa('0x19b2')][0x0]:null,_0x1f8566[_0x24cafa('0xb25')]=_0x14b21f['parseCrudPermissions'](_0x1f8566[_0x24cafa('0x1d63')]?_0x1f8566['userProfileSection'][_0x24cafa('0xb25')]:null),_0x1f8566[_0x24cafa('0x316')]={'limit':0xa,'page':0x1},_0x1f8566['getSize']=_0x41bf2a,_0x1f8566[_0x24cafa('0x224d')]=_0xbecd25,_0x1f8566['onSave']=_0x1e9cff,_0x1f8566[_0x24cafa('0x400')]=_0x272178,_0x1f8566['hangup']=_0x59ca6c,_0x1f8566[_0x24cafa('0x181c')]=_0x39c2c6,_0x1f8566[_0x24cafa('0x17ee')]=_0x2944cb,_0x2d1ba2['on'](_0x24cafa('0x1d09'),_0x1f8566['onSave']),_0x2d1ba2['on']('voice_queue_channel:remove',_0x1f8566[_0x24cafa('0x400')]);function _0x41bf2a(_0x134710){const _0x4e9c3b=_0x24cafa;return _0x36f548()[_0x4e9c3b('0x12dd')](_0x134710);}function _0xbecd25(){const _0x118b24=_0x24cafa;_0x36f548()['forIn'](_0x1f8566[_0x118b24('0x4d5')],function(_0x3345d1,_0x65d8a){const _0x238a3e=_0x118b24;_0x36f548()[_0x238a3e('0x1ad4')](_0x1f8566['queues'],{'name':_0x3345d1['name']})&&(_0x1f8566[_0x238a3e('0x101e')][_0x65d8a]=_0x3345d1);});}function _0x1e9cff(_0x99f892){const _0x46e02e=_0x24cafa;_0x99f892[_0x46e02e('0x19fd')]===_0x46e02e('0x18a2')&&(_0x36f548()['find'](_0x1f8566['queues'],{'name':_0x99f892[_0x46e02e('0x1909')]})&&(_0x1f8566['rpcVoiceQueuesChannels'][_0x99f892['uniqueid']]=_0x99f892));}function _0x272178(_0x1eb642){const _0x52828d=_0x24cafa;_0x1f8566[_0x52828d('0x101e')][_0x1eb642[_0x52828d('0x938')]]&&delete _0x1f8566['rpcVoiceQueuesChannels'][_0x1eb642['uniqueid']];}function _0x59ca6c(_0x42b98a){const _0x48b556=_0x24cafa;return _0xc43260[_0x48b556('0x4db')][_0x48b556('0x1fe4')]({'uniqueid':_0x42b98a})[_0x48b556('0x1549')][_0x48b556('0x11bf')](function(_0x439aa1){const _0x58836e=_0x48b556;_0x2be16f[_0x58836e('0x2693')]({'title':_0x58836e('0x1fac')+_0x42b98a+_0x58836e('0x182'),'msg':_0x439aa1[_0x58836e('0x1b86')]||''});})[_0x48b556('0x151d')](function(_0x5063ed){const _0x3b460a=_0x48b556;_0x2be16f[_0x3b460a('0x255')]({'title':_0x5063ed[_0x3b460a('0xff9')]+_0x3b460a('0xb0b')+_0x5063ed[_0x3b460a('0x212f')],'msg':JSON[_0x3b460a('0x3e')](_0x5063ed[_0x3b460a('0x4e8')])||_0x5063ed['message']['join']('\x20')});});}function _0x39c2c6(_0x2a9ffd,_0x296e77,_0x51fe02){return _0xc43260['rpc']['getVoiceQueuesChannelRedirect']({'uniqueid':_0x2a9ffd,'exten':_0x296e77,'context':_0x51fe02})['$promise']['then'](function(_0x3f039a){const _0x59f978=a0_0xaf0c;_0x2be16f[_0x59f978('0x2693')]({'title':_0x59f978('0x1fac')+_0x2a9ffd+'\x20properly\x20redirect!','msg':_0x3f039a['message']||''});})['catch'](function(_0x4bbe33){const _0x25f7fa=a0_0xaf0c;_0x2be16f[_0x25f7fa('0x255')]({'title':_0x4bbe33[_0x25f7fa('0xff9')]+'\x20-\x20'+_0x4bbe33[_0x25f7fa('0x212f')],'msg':JSON[_0x25f7fa('0x3e')](_0x4bbe33[_0x25f7fa('0x4e8')])||_0x4bbe33[_0x25f7fa('0x1b86')][_0x25f7fa('0xa04')]('\x20')});});}function _0x2944cb(_0x2a82f0,_0x119c08){const _0xd51f02=_0x24cafa,_0x30cc27=_0x701bff['prompt']()['title'](_0xd51f02('0x21c7'))[_0xd51f02('0x1772')](_0xd51f02('0x211b'))['targetEvent'](_0x2a82f0)['ok']('Ok')[_0xd51f02('0x26c9')](_0xd51f02('0x784'));return _0x701bff[_0xd51f02('0xb9')](_0x30cc27)[_0xd51f02('0x11bf')](function(_0x27634d){const _0x55ab9f=_0xd51f02;return _0xc43260[_0x55ab9f('0x4db')]['getVoiceQueuesChannelRedirect']({'uniqueid':_0x119c08,'exten':_0x27634d})['$promise'];})[_0xd51f02('0x11bf')](function(_0x9da8ba){const _0x3308d1=_0xd51f02;_0x2be16f[_0x3308d1('0x2693')]({'title':'Channel\x20'+_0x119c08+_0x3308d1('0x596'),'msg':_0x9da8ba[_0x3308d1('0x1b86')]||''});})[_0xd51f02('0x151d')](function(_0x4d8666){const _0x4e2bb4=_0xd51f02;_0x2be16f[_0x4e2bb4('0x255')]({'title':_0x4d8666[_0x4e2bb4('0xff9')]+_0x4e2bb4('0xb0b')+_0x4d8666[_0x4e2bb4('0x212f')],'msg':JSON[_0x4e2bb4('0x3e')](_0x4d8666[_0x4e2bb4('0x4e8')])||_0x4d8666['message']['join']('\x20')});});}_0xa37c32[_0x24cafa('0x12d8')](_0x24cafa('0x4f7'),function(){const _0x54fdd3=_0x24cafa;_0x2d1ba2['removeAllListeners'](_0x54fdd3('0x1d09')),_0x2d1ba2[_0x54fdd3('0x1b2e')](_0x54fdd3('0x1125'));});}const _0x2b9809=_0x251287;_0x4647ed[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0x17f5'),_0x21d0f5('0x1fd'),_0x21d0f5('0x1de3'),_0x21d0f5('0x1223'),'api','socket',_0x21d0f5('0x25bc'),_0x21d0f5('0x1d63'),_0x21d0f5('0x1150')];function _0x4647ed(_0x23a9ae,_0x53fc09,_0x338b82,_0x43258e,_0x30ab2e,_0x18eecd,_0x5f6fe6,_0x5cae91,_0x48b084,_0x3c3443){const _0x30d02a=_0x21d0f5,_0x1698de=this,_0x390b70=[_0x30d02a('0x4af'),_0x30d02a('0x150f'),_0x30d02a('0x1c3a'),_0x30d02a('0x23e8'),_0x30d02a('0x71f'),_0x30d02a('0xd78'),_0x30d02a('0x17e1')];_0x1698de[_0x30d02a('0x27d2')]=_0x43258e[_0x30d02a('0x27d2')],_0x1698de[_0x30d02a('0x1de3')]=_0x43258e?_0x36f548()[_0x30d02a('0x2130')](_0x43258e['rows']?_0x43258e[_0x30d02a('0x19b2')]:[],'id'):{},_0x1698de[_0x30d02a('0x1223')]=_0x30ab2e?_0x36f548()[_0x30d02a('0x2130')](_0x30ab2e[_0x30d02a('0x19b2')]?_0x30ab2e[_0x30d02a('0x19b2')]:[],'id'):{},_0x1698de['userProfile']=_0x5cae91,_0x1698de[_0x30d02a('0x1d63')]=_0x48b084&&_0x48b084[_0x30d02a('0x27d2')]==0x1?_0x48b084[_0x30d02a('0x19b2')][0x0]:null,_0x1698de['crudPermissions']=_0x3c3443['parseCrudPermissions'](_0x1698de['userProfileSection']?_0x1698de[_0x30d02a('0x1d63')][_0x30d02a('0xb25')]:null);_0x3c3443[_0x30d02a('0x4ee')](_0x30d02a('0xf45'))?_0x1698de[_0x30d02a('0x1f2a')]={'type':'inbound','fields':_0x30d02a('0x721'),'sort':_0x30d02a('0x1c74'),'limit':0xa,'page':0x1}:_0x1698de[_0x30d02a('0x1f2a')]={'id':_0x3c3443['getCurrentUser']()['id'],'channel':_0x30d02a('0x1bc3'),'type':_0x30d02a('0x18a2'),'fields':'id,name','sort':_0x30d02a('0x1c74'),'limit':0xa,'page':0x1};_0x1698de['success']=_0x580654,_0x1698de[_0x30d02a('0x373')]=_0x5eead6,_0x1698de[_0x30d02a('0xc8f')]=_0xcf8a45,_0x1698de[_0x30d02a('0x224d')]=_0x49b2f1,_0x5f6fe6['onWithoutApply'](_0x30d02a('0x259b'),_0x1698de[_0x30d02a('0xc8f')]),_0x1698de['interval']=_0x338b82(function(){},0x3e7);function _0x49b2f1(){const _0x49a528=_0x30d02a;_0x36f548()['forIn'](_0x1698de[_0x49a528('0x1de3')],function(_0x23ab1a,_0x5dc880){const _0x255482=_0x49a528;_0x1698de[_0x255482('0x1223')][_0x5dc880]&&_0x36f548()[_0x255482('0x47b')](_0x23ab1a,_0x36f548()[_0x255482('0x258')](_0x1698de[_0x255482('0x1223')][_0x5dc880],_0x390b70));});}function _0xcf8a45(_0x1e8a9b){const _0x17e44a=_0x30d02a;_0x1698de['queues'][_0x1e8a9b['id']]&&_0x36f548()[_0x17e44a('0x47b')](_0x1698de[_0x17e44a('0x1de3')][_0x1e8a9b['id']],_0x36f548()[_0x17e44a('0x258')](_0x1e8a9b,_0x390b70));}let _0x142048=!![],_0xeccef8=0x1;_0x23a9ae[_0x30d02a('0x2087')](_0x30d02a('0x842'),function(_0x4007c0,_0x5d5c9e){const _0x2141e4=_0x30d02a;_0x142048?_0x53fc09(function(){_0x142048=![];}):(!_0x5d5c9e&&(_0xeccef8=_0x1698de['query'][_0x2141e4('0x1c2')]),_0x4007c0!==_0x5d5c9e&&(_0x1698de[_0x2141e4('0x1f2a')]['page']=0x1),!_0x4007c0&&(_0x1698de['query']['page']=_0xeccef8),_0x1698de['getQueues']());});function _0x580654(_0xd6d68e){const _0x4b0573=_0x30d02a;_0x1698de[_0x4b0573('0x27d2')]=_0xd6d68e[_0x4b0573('0x27d2')],_0x1698de['queues']=_0xd6d68e?_0x36f548()['keyBy'](_0xd6d68e[_0x4b0573('0x19b2')]?_0xd6d68e[_0x4b0573('0x19b2')]:[],'id'):{},_0x49b2f1();}function _0x5eead6(){const _0x2780a0=_0x30d02a;_0x1698de[_0x2780a0('0x1f2a')][_0x2780a0('0x1393')]=(_0x1698de[_0x2780a0('0x1f2a')][_0x2780a0('0x1c2')]-0x1)*_0x1698de[_0x2780a0('0x1f2a')][_0x2780a0('0xd5c')],_0x3c3443[_0x2780a0('0x4ee')](_0x2780a0('0xf45'))?_0x1698de[_0x2780a0('0x13f')]=_0x18eecd[_0x2780a0('0x1043')][_0x2780a0('0xbaa')](_0x1698de[_0x2780a0('0x1f2a')],_0x580654)['$promise']:(_0x1698de['query']['id']=_0x1698de[_0x2780a0('0x25bc')]['id'],_0x1698de[_0x2780a0('0x1f2a')][_0x2780a0('0xe6')]=_0x2780a0('0xc85'),_0x1698de['promise']=_0x18eecd[_0x2780a0('0x25bc')][_0x2780a0('0x228e')](_0x1698de[_0x2780a0('0x1f2a')],_0x580654)[_0x2780a0('0x1549')]);}_0x23a9ae[_0x30d02a('0x12d8')](_0x30d02a('0x4f7'),function(){const _0x56fe39=_0x30d02a;_0x5f6fe6[_0x56fe39('0x1b2e')](_0x56fe39('0x259b')),_0x1698de[_0x56fe39('0x507')]&&_0x338b82[_0x56fe39('0x26c9')](_0x1698de[_0x56fe39('0x507')]);});}const _0x49a31c=_0x4647ed,_0x24a713=_0x351988['p']+_0x21d0f5('0x8c0'),_0x3b45c8=_0x351988['p']+_0x21d0f5('0xd38');_0xb93a7c[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0x17f5'),_0x21d0f5('0x1ca2'),'$q','$document','$interval',_0x21d0f5('0x1de3'),_0x21d0f5('0x1223'),'api',_0x21d0f5('0x1d56'),_0x21d0f5('0x142d'),_0x21d0f5('0x25bc'),_0x21d0f5('0x1d63'),_0x21d0f5('0x1150')];function _0xb93a7c(_0x2418ac,_0x38acc,_0x4914bc,_0x569e79,_0x18c875,_0x953dad,_0x50eda4,_0x3ab61a,_0x56e3a7,_0xa4f785,_0x34b925,_0x50f7c7,_0x369247,_0x29154e){const _0x309f0e=_0x21d0f5,_0x4c8766=this,_0x3cd486=['loggedIn','available',_0x309f0e('0x1491'),_0x309f0e('0x11ed'),_0x309f0e('0x17ba'),'originated',_0x309f0e('0x1b86'),_0x309f0e('0x8b6'),'dialMethod','Trunk','paused'];_0x4c8766['currentUser']=_0x29154e[_0x309f0e('0x2428')](),_0x4c8766[_0x309f0e('0x27d2')]=_0x50eda4['count']?_0x50eda4[_0x309f0e('0x27d2')]:0x0,_0x4c8766['queues']=_0x50eda4?_0x36f548()[_0x309f0e('0x2130')](_0x50eda4[_0x309f0e('0x19b2')]?_0x50eda4[_0x309f0e('0x19b2')]:[],'id'):{},_0x4c8766[_0x309f0e('0x1223')]=_0x3ab61a?_0x36f548()['keyBy'](_0x3ab61a[_0x309f0e('0x19b2')]?_0x3ab61a[_0x309f0e('0x19b2')]:[],'id'):{},_0x4c8766[_0x309f0e('0x25bc')]=_0x50f7c7,_0x4c8766[_0x309f0e('0x1d63')]=_0x369247&&_0x369247['count']==0x1?_0x369247['rows'][0x0]:null,_0x4c8766[_0x309f0e('0xb25')]=_0x29154e['parseCrudPermissions'](_0x4c8766[_0x309f0e('0x1d63')]?_0x4c8766[_0x309f0e('0x1d63')][_0x309f0e('0xb25')]:null);_0x29154e[_0x309f0e('0x4ee')](_0x309f0e('0xf45'))?_0x4c8766['query']={'type':_0x309f0e('0x18a2'),'sort':_0x309f0e('0x1c74'),'limit':0xa,'page':0x1}:_0x4c8766[_0x309f0e('0x1f2a')]={'id':_0x4c8766[_0x309f0e('0x32a')]['id'],'channel':_0x309f0e('0x1bc3'),'type':_0x309f0e('0x18a2'),'sort':_0x309f0e('0x1c74'),'limit':0xa,'page':0x1};_0x4c8766[_0x309f0e('0x2693')]=_0x5c93b7,_0x4c8766[_0x309f0e('0x373')]=_0x1e94ff,_0x4c8766[_0x309f0e('0x1e6e')]=_0x1a1b22,_0x4c8766['agentAdd']=_0x3b6b47,_0x4c8766['updateQueue']=_0x507478,_0x4c8766[_0x309f0e('0xc8f')]=_0x3771af,_0x4c8766['onPause']=_0x4797d7,_0x4c8766[_0x309f0e('0x722')]=_0x25667f,_0x4c8766[_0x309f0e('0x37f')]=_0x29327b,_0x4c8766['$onInit']=_0x22d3e8,_0x4c8766[_0x309f0e('0x59')]=[],_0x36f548()['forIn'](_0x4c8766['queues'],function(_0x3c0730){const _0x600f86=_0x309f0e;_0x4c8766[_0x600f86('0x59')][_0x600f86('0x105d')](_0x3c0730['id']);}),_0xa4f785[_0x309f0e('0x284d')]('voice_queue:save',_0x4c8766[_0x309f0e('0xc8f')]),_0x4c8766['interval']=_0x953dad(function(){},0x3e7),_0xa4f785['on'](_0x309f0e('0x15bd'),_0x4c8766[_0x309f0e('0x199c')]),_0xa4f785['on']('userVoiceQueue:remove',_0x4c8766[_0x309f0e('0x37f')]),_0xa4f785['on'](_0x309f0e('0x1929'),_0x4c8766[_0x309f0e('0x722')]);function _0x22d3e8(){const _0x295621=_0x309f0e,_0x3ee5c4=[];return _0x36f548()[_0x295621('0x41e')](_0x4c8766[_0x295621('0x1de3')],function(_0x355861,_0xff414b){const _0x149055=_0x295621;_0x355861['paused']=0x0,_0x355861['loggedInDb']=0x0,_0x4c8766[_0x149055('0x1de3')][_0xff414b][_0x149055('0x1401')]={},_0x3ee5c4[_0x149055('0x105d')](_0x56e3a7[_0x149055('0x1043')][_0x149055('0x226d')]({'id':_0xff414b})['$promise']),_0x4c8766[_0x149055('0x1223')][_0xff414b]&&_0x36f548()['merge'](_0x355861,_0x36f548()[_0x149055('0x258')](_0x4c8766['rpcQueues'][_0xff414b],_0x3cd486));}),_0x569e79[_0x295621('0x7c')](_0x3ee5c4)[_0x295621('0x11bf')](function(_0x342afa){const _0x3ead3f=_0x295621;for(let _0x2ca717=0x0;_0x2ca717<_0x342afa[_0x3ead3f('0x1e22')];_0x2ca717+=0x1){for(let _0x1e4667=0x0;_0x1e4667<_0x342afa[_0x2ca717]['rows'][_0x3ead3f('0x1e22')];_0x1e4667++){_0x342afa[_0x2ca717]['rows'][_0x1e4667][_0x3ead3f('0xdb0')]&&_0x4c8766[_0x3ead3f('0x1de3')][_0x342afa[_0x2ca717][_0x3ead3f('0x19b2')][_0x1e4667][_0x3ead3f('0x19b6')]][_0x3ead3f('0xdb0')]++,_0x4c8766[_0x3ead3f('0x1de3')][_0x342afa[_0x2ca717][_0x3ead3f('0x19b2')][_0x1e4667][_0x3ead3f('0x19b6')]][_0x3ead3f('0x1e84')]++,_0x4c8766['queues'][_0x342afa[_0x2ca717][_0x3ead3f('0x19b2')][_0x1e4667]['VoiceQueueId']]['agents'][_0x342afa[_0x2ca717][_0x3ead3f('0x19b2')][_0x1e4667][_0x3ead3f('0x2342')]]=_0x342afa[_0x2ca717]['rows'][_0x1e4667][_0x3ead3f('0x19b6')];}}})[_0x295621('0x151d')](function(_0x2f71b9){const _0x30a86d=_0x295621;console[_0x30a86d('0x255')](_0x2f71b9);});}function _0x3771af(_0x5def54){const _0x3de34f=_0x309f0e;_0x4c8766[_0x3de34f('0x1de3')][_0x5def54['id']]&&_0x36f548()[_0x3de34f('0x47b')](_0x4c8766[_0x3de34f('0x1de3')][_0x5def54['id']],_0x36f548()[_0x3de34f('0x258')](_0x5def54,_0x3cd486));}function _0x4797d7(_0x1cc137){const _0x3b585b=_0x309f0e;console[_0x3b585b('0xc78')]('onPause',_0x1cc137);if(_0x1cc137[_0x3b585b('0x20d')])_0x36f548()[_0x3b585b('0x41e')](_0x4c8766['queues'],function(_0x2ced3f){const _0x4313c9=_0x3b585b;_0x2ced3f[_0x4313c9('0x1401')][_0x1cc137['id']]&&(_0x2ced3f[_0x4313c9('0xdb0')]+=0x1,console['log']('pause'));});else!_0x1cc137['voicePause']&&_0x36f548()[_0x3b585b('0x41e')](_0x4c8766[_0x3b585b('0x1de3')],function(_0x42286e){const _0x15c24b=_0x3b585b;_0x42286e[_0x15c24b('0x1401')][_0x1cc137['id']]&&(_0x42286e[_0x15c24b('0xdb0')]>0x0&&(_0x42286e[_0x15c24b('0xdb0')]-=0x1,console['log'](_0x15c24b('0xb6f'))));});}function _0x25667f(_0x496a80){const _0x3ea9c4=_0x309f0e;console[_0x3ea9c4('0xc78')](_0x3ea9c4('0x107b'),_0x496a80),_0x4c8766[_0x3ea9c4('0x1de3')][_0x496a80[_0x3ea9c4('0x19b6')]]&&(_0x4c8766[_0x3ea9c4('0x1de3')][_0x496a80[_0x3ea9c4('0x19b6')]]['loggedInDb']+=0x1,_0x4c8766[_0x3ea9c4('0x1de3')][_0x496a80[_0x3ea9c4('0x19b6')]][_0x3ea9c4('0x1401')][_0x496a80[_0x3ea9c4('0x2342')]]=_0x496a80['VoiceQueueId']);}function _0x29327b(_0x45640e){const _0xb68a7a=_0x309f0e;console[_0xb68a7a('0xc78')](_0xb68a7a('0x37f'),_0x45640e),_0x4c8766['queues'][_0x45640e[_0xb68a7a('0x19b6')]]&&_0x4c8766['queues'][_0x45640e[_0xb68a7a('0x19b6')]][_0xb68a7a('0x1e84')]>0x0&&(_0x4c8766[_0xb68a7a('0x1de3')][_0x45640e[_0xb68a7a('0x19b6')]][_0xb68a7a('0x1e84')]-=0x1,delete _0x4c8766[_0xb68a7a('0x1de3')][_0x45640e['VoiceQueueId']][_0xb68a7a('0x1401')][_0x45640e[_0xb68a7a('0x2342')]]);}let _0x322087=!![],_0x2d7c2c=0x1;_0x2418ac[_0x309f0e('0x2087')](_0x309f0e('0x842'),function(_0x55bc5c,_0x1faa1a){const _0x49bf01=_0x309f0e;_0x322087?_0x38acc(function(){_0x322087=![];}):(!_0x1faa1a&&(_0x2d7c2c=_0x4c8766['query'][_0x49bf01('0x1c2')]),_0x55bc5c!==_0x1faa1a&&(_0x4c8766[_0x49bf01('0x1f2a')][_0x49bf01('0x1c2')]=0x1),!_0x55bc5c&&(_0x4c8766['query'][_0x49bf01('0x1c2')]=_0x2d7c2c),_0x4c8766['getQueues']());});function _0x5c93b7(_0x151bb9){const _0x1df7c3=_0x309f0e;_0x4c8766[_0x1df7c3('0x27d2')]=_0x151bb9[_0x1df7c3('0x27d2')],_0x4c8766[_0x1df7c3('0x1de3')]=_0x151bb9?_0x36f548()[_0x1df7c3('0x2130')](_0x151bb9[_0x1df7c3('0x19b2')]?_0x151bb9[_0x1df7c3('0x19b2')]:[],'id'):{};if(_0x151bb9['rows']){_0x4c8766['order']=[];for(let _0x552eb0=0x0;_0x552eb0<_0x151bb9[_0x1df7c3('0x19b2')][_0x1df7c3('0x1e22')];_0x552eb0++){_0x4c8766[_0x1df7c3('0x59')][_0x1df7c3('0x105d')](_0x151bb9[_0x1df7c3('0x19b2')][_0x552eb0]['id']);}}_0x22d3e8();}function _0x1e94ff(){const _0x3dbbe9=_0x309f0e;_0x4c8766[_0x3dbbe9('0x1f2a')][_0x3dbbe9('0x1393')]=(_0x4c8766[_0x3dbbe9('0x1f2a')][_0x3dbbe9('0x1c2')]-0x1)*_0x4c8766[_0x3dbbe9('0x1f2a')]['limit'],_0x29154e['hasRole'](_0x3dbbe9('0xf45'))?_0x4c8766['promise']=_0x56e3a7['voiceQueue'][_0x3dbbe9('0xbaa')](_0x4c8766[_0x3dbbe9('0x1f2a')],_0x5c93b7)[_0x3dbbe9('0x1549')]:(_0x4c8766[_0x3dbbe9('0x1f2a')]['id']=_0x4c8766[_0x3dbbe9('0x25bc')]['id'],_0x4c8766[_0x3dbbe9('0x1f2a')][_0x3dbbe9('0xe6')]='VoiceQueues',_0x4c8766[_0x3dbbe9('0x13f')]=_0x56e3a7[_0x3dbbe9('0x25bc')][_0x3dbbe9('0x228e')](_0x4c8766[_0x3dbbe9('0x1f2a')],_0x5c93b7)[_0x3dbbe9('0x1549')]);}function _0x1a1b22(_0x3efc61,_0x4ef451){const _0x1547e8=_0x309f0e;_0x4914bc['show']({'controller':_0x1547e8('0x1347'),'controllerAs':'vm','templateUrl':_0x24a713,'parent':angular['element'](_0x18c875[_0x1547e8('0x1d2')]),'targetEvent':_0x3efc61,'clickOutsideToClose':!![],'locals':{'voiceQueue':_0x4ef451,'voiceQueues':_0x36f548()[_0x1547e8('0x1643')](_0x4c8766['queues']),'license':null,'setting':null,'crudPermissions':_0x4c8766[_0x1547e8('0xb25')]}});}function _0x3b6b47(_0x232c65,_0x3d0398){const _0x262413=_0x309f0e;_0x4914bc[_0x262413('0xb9')]({'controller':'VoiceQueueagentaddController','controllerAs':'vm','templateUrl':_0x3b45c8,'parent':angular[_0x262413('0x1e73')](_0x18c875[_0x262413('0x1d2')]),'targetEvent':_0x232c65,'clickOutsideToClose':!![],'locals':{'voiceQueue':_0x3d0398,'voiceQueues':_0x4c8766[_0x262413('0x1de3')]?_0x4c8766[_0x262413('0x1de3')][_0x262413('0x19b2')]:[],'realtime':!![],'crudPermissions':_0x4c8766[_0x262413('0xb25')]}});}function _0x507478(_0x331d5d){const _0x114f53=_0x309f0e;return _0x56e3a7['voiceQueue'][_0x114f53('0x5ab')](_0x331d5d)['$promise']['then'](function(){const _0x2e9823=_0x114f53;_0x34b925[_0x2e9823('0x2693')]({'title':_0x2e9823('0x1544'),'msg':_0x331d5d[_0x2e9823('0x1909')]?_0x331d5d[_0x2e9823('0x1909')]+_0x2e9823('0xd7'):''});})[_0x114f53('0x151d')](function(_0x762d99){const _0x5866e3=_0x114f53;_0x34b925['error']({'title':_0x5866e3('0xdc1'),'msg':_0x762d99[_0x5866e3('0x1b86')]});});}_0x2418ac[_0x309f0e('0x12d8')](_0x309f0e('0x4f7'),function(){const _0x4dc22e=_0x309f0e;_0xa4f785[_0x4dc22e('0x1b2e')](_0x4dc22e('0x259b')),_0x4c8766[_0x4dc22e('0x507')]&&_0x953dad['cancel'](_0x4c8766['interval']),_0xa4f785[_0x4dc22e('0x1b2e')]('user:update'),_0xa4f785['removeAllListeners']('userVoiceQueue:remove'),_0xa4f785['removeAllListeners'](_0x4dc22e('0x1929'));});}const _0x4cb1b4=_0xb93a7c;function _0x405dc4(){const _0x16bd50=_0x21d0f5;return{'status':{'registered':'green-300-fg\x20icon-checkbox-marked-circle','unregistered':'red-300-fg\x20icon-close-circle','lagged':'red-300-fg\x20icon-close-circle','reachable':_0x16bd50('0x2747'),'unreachable':_0x16bd50('0x58e'),'unknown':_0x16bd50('0xcc')},'state':{'unknown':_0x16bd50('0x95b'),'not_inuse':'green-300-fg\x20icon-phone-hangup','inuse':_0x16bd50('0x52b'),'busy':_0x16bd50('0x16a5'),'invalid':_0x16bd50('0x95b'),'unavailable':_0x16bd50('0x95b'),'ringing':'blue-300-fg\x20icon-phone-incoming','ringinuse':_0x16bd50('0x1df'),'onhold':_0x16bd50('0x142a')},'channelStatus':{'ring':'blue-300-fg\x20icon-phone-incoming','up':_0x16bd50('0x198'),'hangup':_0x16bd50('0x393')},'channelStatusOut':{'ring':_0x16bd50('0x27f5'),'up':'green-300-fg\x20icon-phone-in-talk','hangup':_0x16bd50('0x393')}};}const _0x1244af=_0x405dc4;_0x169659[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0xcbc'),_0x21d0f5('0x1d56')];function _0x169659(_0x3acb3e,_0x5208fb,_0x1af74e){const _0x28ec4d=_0x21d0f5,_0x28e0bd=this;_0x1af74e[_0x28ec4d('0x143e')](),_0x1af74e[_0x28ec4d('0x196c')](),_0x28e0bd[_0x28ec4d('0x1179')]=0x0;switch(_0x5208fb[_0x28ec4d('0x191')][_0x28ec4d('0x1909')]){case'app.voice.realtime.agents':_0x28e0bd[_0x28ec4d('0x1179')]=0x0;break;case _0x28ec4d('0x1e79'):_0x28e0bd[_0x28ec4d('0x1179')]=0x1;break;case _0x28ec4d('0x503'):_0x28e0bd[_0x28ec4d('0x1179')]=0x2;break;case _0x28ec4d('0x1694'):_0x28e0bd[_0x28ec4d('0x1179')]=0x3;break;case _0x28ec4d('0x2090'):_0x28e0bd[_0x28ec4d('0x1179')]=0x4;break;case _0x28ec4d('0x235f'):_0x28e0bd[_0x28ec4d('0x1179')]=0x5;break;case _0x28ec4d('0x49c'):_0x28e0bd[_0x28ec4d('0x1179')]=0x6;break;case _0x28ec4d('0x186f'):_0x28e0bd[_0x28ec4d('0x1179')]=0x7;break;default:_0x28e0bd[_0x28ec4d('0x1179')]=0x0,_0x5208fb['go']('app.voice.realtime.agents');}_0x3acb3e[_0x28ec4d('0x2087')]('vm.selectedTab',function(_0x1dd402,_0xd3fcd0){const _0x4223f9=_0x28ec4d;if(_0x1dd402!==_0xd3fcd0)switch(_0x1dd402){case 0x0:_0x5208fb['go']('app.voice.realtime.agents');break;case 0x1:_0x5208fb['go'](_0x4223f9('0x1e79'));break;case 0x2:_0x5208fb['go'](_0x4223f9('0x503'));break;case 0x3:_0x5208fb['go'](_0x4223f9('0x1694'));break;case 0x4:_0x5208fb['go'](_0x4223f9('0x2090'));break;case 0x5:_0x5208fb['go'](_0x4223f9('0x235f'));break;case 0x6:_0x5208fb['go']('app.voice.realtime.queue_params');break;case 0x7:_0x5208fb['go'](_0x4223f9('0x186f'));break;default:_0x5208fb['go'](_0x4223f9('0x167c'));}});}const _0x159072=_0x169659;_0x145511['$inject']=[_0x21d0f5('0x1b80'),_0x21d0f5('0x17f5'),_0x21d0f5('0x1ca2'),_0x21d0f5('0x156e'),_0x21d0f5('0xf9a'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1d56'),_0x21d0f5('0x927'),_0x21d0f5('0x25bc'),_0x21d0f5('0x1d63'),_0x21d0f5('0x1150')];function _0x145511(_0x59678c,_0x3ddec8,_0x13a24e,_0x19a55b,_0x1cce12,_0x18ee39,_0x1473f0,_0x43d713,_0x1ae019,_0x1a475b,_0x59e1b9){const _0x26a841=_0x21d0f5,_0x559c6c=this,_0x43020c=[_0x26a841('0x27af'),_0x26a841('0x1a04'),_0x26a841('0x2124'),_0x26a841('0xff9')];_0x559c6c[_0x26a841('0x27d2')]=_0x19a55b[_0x26a841('0x27d2')],_0x559c6c[_0x26a841('0x1b9a')]=[_0x26a841('0x27af'),'internal',_0x26a841('0x2124'),_0x26a841('0xff9'),_0x26a841('0x5fc')],_0x559c6c[_0x26a841('0x156e')]=_0x19a55b?_0x36f548()[_0x26a841('0x2130')](_0x19a55b[_0x26a841('0x19b2')]?_0x19a55b['rows']:[],'id'):{},_0x559c6c['rpcTelephones']=_0x1cce12?_0x36f548()[_0x26a841('0x2130')](_0x1cce12[_0x26a841('0x19b2')]?_0x1cce12[_0x26a841('0x19b2')]:[],'id'):{},_0x559c6c[_0x26a841('0x25bc')]=_0x1ae019,_0x559c6c[_0x26a841('0x1d63')]=_0x1a475b&&_0x1a475b[_0x26a841('0x27d2')]==0x1?_0x1a475b[_0x26a841('0x19b2')][0x0]:null,_0x559c6c[_0x26a841('0xb25')]=_0x59e1b9[_0x26a841('0x1530')](_0x559c6c[_0x26a841('0x1d63')]?_0x559c6c[_0x26a841('0x1d63')][_0x26a841('0xb25')]:null),_0x559c6c[_0x26a841('0x1f2a')]={'fields':'id,fullname,internal','role':_0x26a841('0x2650'),'sort':'-updatedAt','limit':0xa,'page':0x1},_0x559c6c[_0x26a841('0x98a')]=_0x43d713[_0x26a841('0xff9')],_0x559c6c[_0x26a841('0xa78')]=_0x43d713[_0x26a841('0x2124')],_0x559c6c[_0x26a841('0x2693')]=_0x231891,_0x559c6c[_0x26a841('0x224d')]=_0x34b65a,_0x559c6c['showInfo']=_0x2cade9,_0x559c6c[_0x26a841('0x25bd')]=_0x200167,_0x559c6c[_0x26a841('0xc8f')]=_0x5796af,_0x1473f0['on'](_0x26a841('0x5f8'),_0x559c6c['onSave']);function _0x34b65a(){const _0x3f9071=_0x26a841;_0x36f548()['forIn'](_0x559c6c[_0x3f9071('0x156e')],function(_0x4cf53d,_0xa92453){const _0x530a2c=_0x3f9071;_0x559c6c[_0x530a2c('0xf9a')][_0xa92453]&&_0x36f548()[_0x530a2c('0x47b')](_0x4cf53d,_0x36f548()[_0x530a2c('0x258')](_0x559c6c[_0x530a2c('0xf9a')][_0xa92453],_0x43020c));});}function _0x2cade9(_0x1d2245){const _0x3a8ead=_0x26a841;_0x13a24e[_0x3a8ead('0xb9')](_0x13a24e['alert']()['clickOutsideToClose'](!![])[_0x3a8ead('0x134b')](_0x3a8ead('0x24f0'))[_0x3a8ead('0x1d03')](_0x3a8ead('0x193c'))['ok']('Ok')[_0x3a8ead('0x1e25')](_0x1d2245));}function _0x5796af(_0x1ed312){const _0x4d6f09=_0x26a841;_0x559c6c[_0x4d6f09('0x156e')][_0x1ed312['id']]&&_0x36f548()['merge'](_0x559c6c[_0x4d6f09('0x156e')][_0x1ed312['id']],_0x36f548()[_0x4d6f09('0x258')](_0x1ed312,_0x43020c));}let _0x1508fe=!![],_0x22f63e=0x1;_0x59678c[_0x26a841('0x2087')](_0x26a841('0x842'),function(_0x235099,_0x1276b4){const _0x3c843d=_0x26a841;_0x1508fe?_0x3ddec8(function(){_0x1508fe=![];}):(!_0x1276b4&&(_0x22f63e=_0x559c6c[_0x3c843d('0x1f2a')]['page']),_0x235099!==_0x1276b4&&(_0x559c6c[_0x3c843d('0x1f2a')][_0x3c843d('0x1c2')]=0x1),!_0x235099&&(_0x559c6c['query']['page']=_0x22f63e),_0x559c6c['getTelephones']());});function _0x231891(_0x198a75){const _0x2558a7=_0x26a841;_0x559c6c[_0x2558a7('0x156e')]=_0x198a75?_0x36f548()[_0x2558a7('0x2130')](_0x198a75[_0x2558a7('0x19b2')]?_0x198a75[_0x2558a7('0x19b2')]:[],'id'):{},_0x34b65a();}function _0x200167(){const _0x1c5d86=_0x26a841;_0x559c6c[_0x1c5d86('0x1f2a')][_0x1c5d86('0x1393')]=(_0x559c6c[_0x1c5d86('0x1f2a')][_0x1c5d86('0x1c2')]-0x1)*_0x559c6c['query'][_0x1c5d86('0xd5c')],_0x59e1b9['hasRole']('admin')?_0x559c6c[_0x1c5d86('0x13f')]=_0x18ee39[_0x1c5d86('0x21d9')][_0x1c5d86('0xbaa')](_0x559c6c['query'],_0x231891)[_0x1c5d86('0x1549')]:(_0x559c6c['query']['id']=_0x559c6c[_0x1c5d86('0x25bc')]['id'],_0x559c6c[_0x1c5d86('0x1f2a')][_0x1c5d86('0xe6')]='Telephones',_0x559c6c[_0x1c5d86('0x13f')]=_0x18ee39[_0x1c5d86('0x25bc')][_0x1c5d86('0x228e')](_0x559c6c[_0x1c5d86('0x1f2a')],_0x231891)[_0x1c5d86('0x1549')]);}_0x59678c[_0x26a841('0x12d8')](_0x26a841('0x4f7'),function(){const _0x1c1d80=_0x26a841;_0x1473f0[_0x1c1d80('0x1b2e')]('telephone:save');});}const _0x33bd15=_0x145511;_0x565269['$inject']=[_0x21d0f5('0x1b80'),_0x21d0f5('0x17f5'),_0x21d0f5('0x1ca2'),'trunks',_0x21d0f5('0x1745'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1d56'),_0x21d0f5('0x927'),_0x21d0f5('0xcbc'),'userProfile',_0x21d0f5('0x1d63'),_0x21d0f5('0x1150')];function _0x565269(_0x23fb37,_0x65a161,_0x4a9f97,_0x1f8387,_0x2b9a96,_0x5049fd,_0x565094,_0x554e95,_0x11b253,_0x530286,_0x33f344,_0xbee149){const _0x107f84=_0x21d0f5,_0x1686ba=this,_0x46ef32=[_0x107f84('0xff9'),_0x107f84('0x1cbf'),_0x107f84('0x12d0'),_0x107f84('0x14ec'),'port',_0x107f84('0x1a04'),_0x107f84('0x2124'),_0x107f84('0xff9')];_0x1686ba['currentUser']=_0xbee149[_0x107f84('0x2428')](),_0x1686ba[_0x107f84('0x27d2')]=_0x1f8387['count'],_0x1686ba[_0x107f84('0x1b24')]=_0x1f8387?_0x1f8387[_0x107f84('0x19b2')]:[],_0x1686ba[_0x107f84('0x1745')]=_0x2b9a96?_0x2b9a96['rows']?_0x2b9a96[_0x107f84('0x19b2')]:[]:[],_0x1686ba[_0x107f84('0x1f2a')]={'fields':'id,name','active':!![],'sort':_0x107f84('0x1c74'),'limit':0xa,'page':0x1},_0x1686ba[_0x107f84('0x98a')]=_0x554e95[_0x107f84('0xff9')],_0x1686ba[_0x107f84('0xa78')]=_0x554e95[_0x107f84('0x2124')],_0x1686ba[_0x107f84('0x25bc')]=_0x530286,_0x1686ba['userProfileSection']=_0x33f344&&_0x33f344[_0x107f84('0x27d2')]==0x1?_0x33f344[_0x107f84('0x19b2')][0x0]:null,_0x1686ba[_0x107f84('0xb25')]=_0xbee149[_0x107f84('0x1530')](_0x1686ba[_0x107f84('0x1d63')]?_0x1686ba[_0x107f84('0x1d63')]['crudPermissions']:null),_0x1686ba[_0x107f84('0x2693')]=_0x42db71,_0x1686ba['$onInit']=_0x10ed0f,_0x1686ba[_0x107f84('0x1410')]=_0x535efe,_0x1686ba[_0x107f84('0x2f0')]=_0x1fe113,_0x1686ba[_0x107f84('0x40')]=_0x4ac0c6,_0x1686ba[_0x107f84('0xc8f')]=_0x26e0e6,_0x565094['on'](_0x107f84('0x13b5'),_0x1686ba[_0x107f84('0xc8f')]);function _0x10ed0f(){const _0x27e125=_0x107f84;let _0x386685;for(let _0x31a742=0x0;_0x31a742<_0x1686ba[_0x27e125('0x1b24')][_0x27e125('0x1e22')];_0x31a742+=0x1){_0x386685=_0x36f548()[_0x27e125('0x1b12')](_0x1686ba[_0x27e125('0x1745')],['id',_0x1686ba[_0x27e125('0x1b24')][_0x31a742]['id']]),_0x386685>=0x0&&_0x36f548()['merge'](_0x1686ba[_0x27e125('0x1b24')][_0x31a742],_0x36f548()[_0x27e125('0x258')](_0x1686ba['rpcTrunks'][_0x386685],_0x46ef32));}}function _0x535efe(_0xfff932){const _0xc5914e=_0x107f84;_0x4a9f97[_0xc5914e('0xb9')](_0x4a9f97[_0xc5914e('0xb30')]()[_0xc5914e('0x728')](!![])[_0xc5914e('0x134b')]('Legend')[_0xc5914e('0x1d03')](_0xc5914e('0x193c'))['ok']('Ok')['targetEvent'](_0xfff932));}function _0x509052(_0x55fc93,_0x39f433,_0x2835a0){const _0x41c15e=_0x107f84;_0x39f433>=0x0&&_0x36f548()[_0x41c15e('0x47b')](_0x55fc93[_0x39f433],_0x36f548()[_0x41c15e('0x258')](_0x2835a0,_0x46ef32));}function _0x26e0e6(_0x3c1f1d){const _0x4b2a7c=_0x107f84,_0x4e1d6d=_0x36f548()[_0x4b2a7c('0x1b12')](_0x1686ba[_0x4b2a7c('0x1b24')],['id',_0x3c1f1d['id']]),_0x3aa735=_0x36f548()[_0x4b2a7c('0x1b12')](_0x1686ba[_0x4b2a7c('0x1745')],['id',_0x3c1f1d['id']]);_0x509052(_0x1686ba[_0x4b2a7c('0x1b24')],_0x4e1d6d,_0x3c1f1d),_0x509052(_0x1686ba['rpcTrunks'],_0x3aa735,_0x3c1f1d);}let _0xb211e9=!![],_0x334742=0x1;_0x23fb37[_0x107f84('0x2087')]('vm.query.filter',function(_0x14d4cb,_0x501caf){const _0x173680=_0x107f84;_0xb211e9?_0x65a161(function(){_0xb211e9=![];}):(!_0x501caf&&(_0x334742=_0x1686ba[_0x173680('0x1f2a')][_0x173680('0x1c2')]),_0x14d4cb!==_0x501caf&&(_0x1686ba['query'][_0x173680('0x1c2')]=0x1),!_0x14d4cb&&(_0x1686ba['query'][_0x173680('0x1c2')]=_0x334742),_0x1686ba[_0x173680('0x2f0')]());});function _0x42db71(_0xb64e96){const _0x5078a1=_0x107f84;_0x1686ba['count']=_0xb64e96[_0x5078a1('0x27d2')],_0x1686ba[_0x5078a1('0x1b24')]=_0xb64e96?_0xb64e96[_0x5078a1('0x19b2')]?_0xb64e96['rows']:[]:[],_0x10ed0f();}function _0x1fe113(){const _0x1ee797=_0x107f84;_0x1686ba['query'][_0x1ee797('0x1393')]=(_0x1686ba[_0x1ee797('0x1f2a')]['page']-0x1)*_0x1686ba[_0x1ee797('0x1f2a')][_0x1ee797('0xd5c')],_0xbee149[_0x1ee797('0x4ee')](_0x1ee797('0xf45'))?_0x1686ba[_0x1ee797('0x13f')]=_0x5049fd[_0x1ee797('0x264e')][_0x1ee797('0xbaa')](_0x1686ba[_0x1ee797('0x1f2a')],_0x42db71)[_0x1ee797('0x1549')]:(_0x1686ba[_0x1ee797('0x1f2a')]['id']=_0x1686ba['userProfile']['id'],_0x1686ba['query'][_0x1ee797('0xe6')]=_0x1ee797('0x2174'),_0x1686ba[_0x1ee797('0x13f')]=_0x5049fd[_0x1ee797('0x25bc')]['getResources'](_0x1686ba[_0x1ee797('0x1f2a')],_0x42db71)[_0x1ee797('0x1549')]);}_0x23fb37[_0x107f84('0x12d8')](_0x107f84('0x4f7'),function(){const _0xa9fb72=_0x107f84;_0x565094[_0xa9fb72('0x1b2e')]('trunk:save');});function _0x4ac0c6(_0x5ac5d1,_0x527693){_0x11b253['go']('app.tools.trunks.edit',{'id':_0x527693['id']});}}const _0x450091=_0x565269,_0x28ca6b=_0x351988['p']+_0x21d0f5('0x16aa'),_0x5ac804=_0x351988['p']+_0x21d0f5('0x1b7c'),_0x56173b=_0x351988['p']+'src/js/modules/main/apps/voice/views/realtime/telephones/view.html/view.html',_0x2f9025=_0x351988['p']+_0x21d0f5('0x2718'),_0x452d2e=_0x351988['p']+'src/js/modules/main/apps/voice/views/realtime/queues/view.html/view.html',_0x479c55=_0x351988['p']+'src/js/modules/main/apps/voice/views/realtime/queue_calls/view.html/view.html',_0x1425ba=_0x351988['p']+_0x21d0f5('0x9c5'),_0x4ebda5=_0x351988['p']+_0x21d0f5('0x34c'),_0x4a7551=_0x351988['p']+_0x21d0f5('0x531');_0x4704ec[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x13d6')];function _0x4704ec(_0x4fc019){const _0x479f72=_0x21d0f5;_0x4fc019[_0x479f72('0x2124')](_0x479f72('0x90a'),{'url':_0x479f72('0x25aa'),'views':{'content@app':{'templateUrl':_0x28ca6b,'controller':_0x479f72('0x16bd')}},'resolve':{'userProfile':['apiResolver',_0x479f72('0x1150'),function(_0x5b8a74,_0x1aa288){const _0x3449ac=_0x479f72;return _0x1aa288[_0x3449ac('0x4ee')](_0x3449ac('0xf45'))?null:_0x5b8a74['resolve'](_0x3449ac('0x428'),{'fields':_0x3449ac('0xd30'),'id':_0x1aa288[_0x3449ac('0x2428')]()[_0x3449ac('0x781')]});}],'userProfileSection':['apiResolver',_0x479f72('0x1150'),function(_0x194918,_0xca2f84){const _0x5aeccf=_0x479f72;return _0xca2f84[_0x5aeccf('0x4ee')]('admin')?null:_0x194918['resolve']('userProfileSection@get',{'fields':_0x5aeccf('0x36d'),'userProfileId':_0xca2f84[_0x5aeccf('0x2428')]()[_0x5aeccf('0x781')],'sectionId':0x19b});}]},'authenticate':!![],'permissionId':0x19b})[_0x479f72('0x2124')](_0x479f72('0x167c'),{'url':_0x479f72('0x2260'),'controller':_0x479f72('0x1e00'),'templateUrl':_0x5ac804,'resolve':{'pauses':[_0x479f72('0x218e'),function(_0x28c55c){const _0x48961e=_0x479f72;return _0x28c55c[_0x48961e('0xa28')]('pause@get',{'nolimit':!![]});}],'agents':[_0x479f72('0x218e'),_0x479f72('0x1150'),function(_0x5d4ce6,_0x5cbfbf){const _0x13371c=_0x479f72;return _0x5cbfbf[_0x13371c('0x4ee')](_0x13371c('0xf45'))?_0x5d4ce6['resolve'](_0x13371c('0x2166'),{'fields':_0x13371c('0xd80'),'role':_0x13371c('0x18c4'),'sort':_0x13371c('0x27af'),'nolimit':!![]}):_0x5d4ce6[_0x13371c('0xa28')](_0x13371c('0xb0d'),{'id':_0x5cbfbf[_0x13371c('0x2428')]()[_0x13371c('0x781')],'section':_0x13371c('0x4b1'),'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':_0x13371c('0x27af'),'nolimit':!![]});}],'userProfile':['apiResolver',_0x479f72('0x1150'),function(_0x57cd18,_0xe9cd5a){const _0x2332be=_0x479f72;return _0xe9cd5a[_0x2332be('0x4ee')](_0x2332be('0xf45'))?null:_0x57cd18['resolve'](_0x2332be('0x428'),{'fields':_0x2332be('0xd30'),'id':_0xe9cd5a[_0x2332be('0x2428')]()[_0x2332be('0x781')]});}],'userProfileSection':[_0x479f72('0x218e'),_0x479f72('0x1150'),function(_0x593c1b,_0x31eb15){const _0x4c23b3=_0x479f72;return _0x31eb15[_0x4c23b3('0x4ee')](_0x4c23b3('0xf45'))?null:_0x593c1b[_0x4c23b3('0xa28')](_0x4c23b3('0x2762'),{'fields':_0x4c23b3('0x36d'),'userProfileId':_0x31eb15[_0x4c23b3('0x2428')]()['userProfileId'],'sectionId':0xca});}],'rpcAgents':['apiResolver',function(_0xa3d07a){const _0x5e23bb=_0x479f72;return _0xa3d07a[_0x5e23bb('0xa28')](_0x5e23bb('0x1bbe'));}]},'authenticate':!![],'permissionId':0x19b})[_0x479f72('0x2124')](_0x479f72('0x1e79'),{'url':_0x479f72('0xe01'),'controller':_0x479f72('0xb3f'),'templateUrl':_0x56173b,'resolve':{'telephones':[_0x479f72('0x218e'),_0x479f72('0x1150'),function(_0xaf5f6e,_0x45e8ea){const _0x5b6c71=_0x479f72;return _0x45e8ea['hasRole'](_0x5b6c71('0xf45'))?_0xaf5f6e[_0x5b6c71('0xa28')](_0x5b6c71('0x2166'),{'fields':_0x5b6c71('0x1e58'),'role':'telephone','sort':_0x5b6c71('0x1c74'),'limit':0xa,'offset':0x0}):_0xaf5f6e['resolve'](_0x5b6c71('0xb0d'),{'id':_0x45e8ea[_0x5b6c71('0x2428')]()[_0x5b6c71('0x781')],'section':'Telephones','fields':_0x5b6c71('0x1e58'),'role':'telephone','sort':_0x5b6c71('0x1c74'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x479f72('0x218e'),_0x479f72('0x1150'),function(_0x353b6e,_0x22f77b){const _0x35f702=_0x479f72;return _0x22f77b[_0x35f702('0x4ee')]('admin')?null:_0x353b6e[_0x35f702('0xa28')](_0x35f702('0x428'),{'fields':_0x35f702('0xd30'),'id':_0x22f77b['getCurrentUser']()[_0x35f702('0x781')]});}],'userProfileSection':[_0x479f72('0x218e'),_0x479f72('0x1150'),function(_0x4d62db,_0x16285e){const _0x383f95=_0x479f72;return _0x16285e['hasRole'](_0x383f95('0xf45'))?null:_0x4d62db[_0x383f95('0xa28')]('userProfileSection@get',{'fields':_0x383f95('0x36d'),'userProfileId':_0x16285e[_0x383f95('0x2428')]()[_0x383f95('0x781')],'sectionId':0xcb});}],'rpcTelephones':[_0x479f72('0x218e'),function(_0x357aed){const _0x467c12=_0x479f72;return _0x357aed[_0x467c12('0xa28')]('rpc@getTelephones');}]},'authenticate':!![],'permissionId':0x19b})[_0x479f72('0x2124')]('app.voice.realtime.trunks',{'url':_0x479f72('0x47a'),'controller':_0x479f72('0x274b'),'templateUrl':_0x2f9025,'resolve':{'trunks':['apiResolver',_0x479f72('0x1150'),function(_0x4b26f1,_0xc2759d){const _0x8adfe1=_0x479f72;return _0xc2759d[_0x8adfe1('0x4ee')]('admin')?_0x4b26f1[_0x8adfe1('0xa28')](_0x8adfe1('0x23cd'),{'fields':_0x8adfe1('0x721'),'active':!![],'sort':_0x8adfe1('0x1c74'),'limit':0xa,'offset':0x0}):_0x4b26f1['resolve']('userProfile@getResources',{'id':_0xc2759d['getCurrentUser']()[_0x8adfe1('0x781')],'section':_0x8adfe1('0x2174'),'fields':'id,name','active':!![],'sort':_0x8adfe1('0x1c74'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x479f72('0x218e'),_0x479f72('0x1150'),function(_0x559822,_0x5daf83){const _0x8d226e=_0x479f72;return _0x5daf83[_0x8d226e('0x4ee')](_0x8d226e('0xf45'))?null:_0x559822['resolve'](_0x8d226e('0x428'),{'fields':_0x8d226e('0xd30'),'id':_0x5daf83[_0x8d226e('0x2428')]()[_0x8d226e('0x781')]});}],'userProfileSection':['apiResolver',_0x479f72('0x1150'),function(_0x1921b6,_0x369d5a){const _0x11fc9c=_0x479f72;return _0x369d5a['hasRole']('admin')?null:_0x1921b6[_0x11fc9c('0xa28')](_0x11fc9c('0x2762'),{'fields':_0x11fc9c('0x36d'),'userProfileId':_0x369d5a[_0x11fc9c('0x2428')]()[_0x11fc9c('0x781')],'sectionId':0x3f3});}],'rpcTrunks':['apiResolver',function(_0x3ab143){const _0x1617bf=_0x479f72;return _0x3ab143[_0x1617bf('0xa28')]('rpc@getTrunks');}]},'authenticate':!![],'permissionId':0x19b})[_0x479f72('0x2124')]('app.voice.realtime.queues',{'url':_0x479f72('0xb98'),'controller':'QueuesVoiceRealtimeController\x20as\x20vm','templateUrl':_0x452d2e,'resolve':{'queues':[_0x479f72('0x218e'),_0x479f72('0x1150'),function(_0xa46f09,_0x1822c2){const _0x47b8ee=_0x479f72;return _0x1822c2[_0x47b8ee('0x4ee')](_0x47b8ee('0xf45'))?_0xa46f09[_0x47b8ee('0xa28')](_0x47b8ee('0x987'),{'type':'inbound','sort':_0x47b8ee('0x1c74'),'limit':0xa,'offset':0x0}):_0xa46f09[_0x47b8ee('0xa28')](_0x47b8ee('0xb0d'),{'id':_0x1822c2[_0x47b8ee('0x2428')]()[_0x47b8ee('0x781')],'section':_0x47b8ee('0xc85'),'channel':_0x47b8ee('0x1bc3'),'type':_0x47b8ee('0x18a2'),'sort':'-updatedAt','limit':0xa,'page':0x1});}],'userProfile':['apiResolver',_0x479f72('0x1150'),function(_0x191a4a,_0x1e4162){const _0x4e2784=_0x479f72;return _0x1e4162[_0x4e2784('0x4ee')](_0x4e2784('0xf45'))?null:_0x191a4a[_0x4e2784('0xa28')](_0x4e2784('0x428'),{'fields':_0x4e2784('0xd30'),'id':_0x1e4162[_0x4e2784('0x2428')]()['userProfileId']});}],'userProfileSection':[_0x479f72('0x218e'),'Auth',function(_0x1ce9cd,_0x1b495b){const _0x26f740=_0x479f72;return _0x1b495b[_0x26f740('0x4ee')]('admin')?null:_0x1ce9cd[_0x26f740('0xa28')]('userProfileSection@get',{'fields':_0x26f740('0x36d'),'userProfileId':_0x1b495b['getCurrentUser']()[_0x26f740('0x781')],'sectionId':0x191});}],'rpcQueues':[_0x479f72('0x218e'),function(_0x28d2f1){const _0x528f0c=_0x479f72;return _0x28d2f1[_0x528f0c('0xa28')](_0x528f0c('0x7f2'));}]},'authenticate':!![],'permissionId':0x19b})[_0x479f72('0x2124')](_0x479f72('0x2090'),{'url':'/queue_calls','controller':_0x479f72('0x73d'),'templateUrl':_0x479c55,'resolve':{'agents':[_0x479f72('0x218e'),_0x479f72('0x1150'),function(_0x57ce2f,_0x21050a){const _0x1dbccb=_0x479f72;return _0x21050a[_0x1dbccb('0x4ee')](_0x1dbccb('0xf45'))?_0x57ce2f['resolve'](_0x1dbccb('0x2166'),{'fields':_0x1dbccb('0xe6c'),'role':_0x1dbccb('0x18c4'),'nolimit':!![]}):_0x57ce2f['resolve'](_0x1dbccb('0xb0d'),{'id':_0x21050a[_0x1dbccb('0x2428')]()['userProfileId'],'section':_0x1dbccb('0x4b1'),'fields':_0x1dbccb('0xe6c'),'role':_0x1dbccb('0x18c4'),'nolimit':!![]});}],'queues':[_0x479f72('0x218e'),'Auth',function(_0x3507fd,_0x4a79e1){const _0x1d4592=_0x479f72;return _0x4a79e1['hasRole'](_0x1d4592('0xf45'))?_0x3507fd['resolve']('voiceQueue@get',{'type':_0x1d4592('0x18a2'),'sort':'-updatedAt','nolimit':!![]}):_0x3507fd['resolve']('userProfile@getResources',{'id':_0x4a79e1['getCurrentUser']()[_0x1d4592('0x781')],'section':'VoiceQueues','channel':_0x1d4592('0x1bc3'),'type':_0x1d4592('0x18a2'),'sort':_0x1d4592('0x1c74'),'nolimit':!![]});}],'userProfile':[_0x479f72('0x218e'),_0x479f72('0x1150'),function(_0x51edd7,_0x177c4f){const _0x53f963=_0x479f72;return _0x177c4f['hasRole'](_0x53f963('0xf45'))?null:_0x51edd7[_0x53f963('0xa28')](_0x53f963('0x428'),{'fields':'id,name,crudPermissions','id':_0x177c4f[_0x53f963('0x2428')]()[_0x53f963('0x781')]});}],'userProfileSection':[_0x479f72('0x218e'),_0x479f72('0x1150'),function(_0x2b6e0a,_0x5d32f5){const _0x5561f0=_0x479f72;return _0x5d32f5[_0x5561f0('0x4ee')](_0x5561f0('0xf45'))?null:_0x2b6e0a[_0x5561f0('0xa28')]('userProfileSection@get',{'fields':_0x5561f0('0x36d'),'userProfileId':_0x5d32f5[_0x5561f0('0x2428')]()[_0x5561f0('0x781')],'sectionId':0x191});}],'rpcVoiceQueuesChannels':[_0x479f72('0x218e'),function(_0x30efb6){const _0x56336b=_0x479f72;return _0x30efb6['resolve'](_0x56336b('0x20fb'));}]},'authenticate':!![],'permissionId':0x19b})[_0x479f72('0x2124')](_0x479f72('0x235f'),{'url':'/abandonedcalls','controller':_0x479f72('0x117'),'templateUrl':_0x1425ba,'resolve':{'agents':[_0x479f72('0x218e'),_0x479f72('0x1150'),function(_0x5a8ab7,_0x14311d){const _0x2a13eb=_0x479f72;return _0x14311d['hasRole']('admin')?_0x5a8ab7[_0x2a13eb('0xa28')](_0x2a13eb('0x2166'),{'fields':_0x2a13eb('0xe6c'),'role':_0x2a13eb('0x18c4'),'nolimit':!![]}):_0x5a8ab7['resolve']('userProfile@getResources',{'id':_0x14311d['getCurrentUser']()[_0x2a13eb('0x781')],'section':_0x2a13eb('0x4b1'),'fields':'id,name,role,context','role':_0x2a13eb('0x18c4'),'nolimit':!![]});}],'queues':['apiResolver',_0x479f72('0x1150'),function(_0x54d4aa,_0x217b09){const _0x37a260=_0x479f72;return _0x217b09[_0x37a260('0x4ee')](_0x37a260('0xf45'))?_0x54d4aa['resolve'](_0x37a260('0x987'),{'type':_0x37a260('0x18a2'),'sort':_0x37a260('0x1c74'),'nolimit':!![]}):_0x54d4aa[_0x37a260('0xa28')]('userProfile@getResources',{'id':_0x217b09['getCurrentUser']()[_0x37a260('0x781')],'section':'VoiceQueues','channel':_0x37a260('0x1bc3'),'type':_0x37a260('0x18a2'),'sort':_0x37a260('0x1c74'),'nolimit':!![]});}],'dispositions':[_0x479f72('0x218e'),_0x479f72('0x1150'),function(_0x25100f,_0x1f9a6f){const _0x2dfe69=_0x479f72;return _0x1f9a6f['hasRole']('admin')?_0x25100f[_0x2dfe69('0xa28')](_0x2dfe69('0x24a5'),{'fields':_0x2dfe69('0x1dd5'),'sort':_0x2dfe69('0x1c74'),'MailAccountId':_0x2dfe69('0xb5f'),'FaxAccountId':_0x2dfe69('0xb5f'),'SmsAccountId':'null','WhatsappAccountId':_0x2dfe69('0xb5f'),'OpenchannelAccountId':_0x2dfe69('0xb5f'),'ChatWebsiteId':_0x2dfe69('0xb5f'),'ListId':_0x2dfe69('0xb5f'),'nolimit':!![]}):_0x25100f[_0x2dfe69('0xa28')](_0x2dfe69('0xb0d'),{'id':_0x1f9a6f[_0x2dfe69('0x2428')]()[_0x2dfe69('0x781')],'section':_0x2dfe69('0xc76'),'fields':_0x2dfe69('0x2001'),'sort':_0x2dfe69('0x1c74'),'MailAccountId':_0x2dfe69('0xb5f'),'FaxAccountId':_0x2dfe69('0xb5f'),'SmsAccountId':'null','WhatsappAccountId':'null','OpenchannelAccountId':'null','ChatWebsiteId':_0x2dfe69('0xb5f'),'ListId':'null','nolimit':!![]});}],'userProfile':[_0x479f72('0x218e'),_0x479f72('0x1150'),function(_0x482eef,_0x312110){const _0x543c19=_0x479f72;return _0x312110['hasRole'](_0x543c19('0xf45'))?null:_0x482eef[_0x543c19('0xa28')](_0x543c19('0x428'),{'fields':'id,name,crudPermissions','id':_0x312110[_0x543c19('0x2428')]()[_0x543c19('0x781')]});}],'userProfileSection':[_0x479f72('0x218e'),_0x479f72('0x1150'),function(_0x48d837,_0x23953f){const _0x63fc38=_0x479f72;return _0x23953f[_0x63fc38('0x4ee')]('admin')?null:_0x48d837['resolve'](_0x63fc38('0x2762'),{'fields':_0x63fc38('0x36d'),'userProfileId':_0x23953f[_0x63fc38('0x2428')]()[_0x63fc38('0x781')],'sectionId':0x191});}]},'authenticate':!![],'permissionId':0x19b})['state'](_0x479f72('0x49c'),{'url':_0x479f72('0x11a6'),'controller':_0x479f72('0x490'),'templateUrl':_0x4ebda5,'resolve':{'queues':[_0x479f72('0x218e'),_0x479f72('0x1150'),function(_0x305b23,_0xbd224c){const _0x189200=_0x479f72;return _0xbd224c['hasRole']('admin')?_0x305b23[_0x189200('0xa28')](_0x189200('0x987'),{'type':_0x189200('0x18a2'),'fields':_0x189200('0x721'),'sort':_0x189200('0x1c74'),'limit':0xa,'offset':0x0}):_0x305b23[_0x189200('0xa28')](_0x189200('0xb0d'),{'id':_0xbd224c[_0x189200('0x2428')]()[_0x189200('0x781')],'section':_0x189200('0xc85'),'channel':_0x189200('0x1bc3'),'type':_0x189200('0x18a2'),'sort':_0x189200('0x1c74'),'nolimit':!![]});}],'userProfile':['apiResolver',_0x479f72('0x1150'),function(_0x40a13c,_0x27d25e){const _0x1fcdfa=_0x479f72;return _0x27d25e['hasRole'](_0x1fcdfa('0xf45'))?null:_0x40a13c[_0x1fcdfa('0xa28')](_0x1fcdfa('0x428'),{'fields':_0x1fcdfa('0xd30'),'id':_0x27d25e[_0x1fcdfa('0x2428')]()['userProfileId']});}],'userProfileSection':[_0x479f72('0x218e'),_0x479f72('0x1150'),function(_0x240a40,_0x4df819){const _0x25d09a=_0x479f72;return _0x4df819[_0x25d09a('0x4ee')](_0x25d09a('0xf45'))?null:_0x240a40[_0x25d09a('0xa28')]('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x4df819[_0x25d09a('0x2428')]()[_0x25d09a('0x781')],'sectionId':0x191});}],'rpcQueues':[_0x479f72('0x218e'),function(_0x47f45d){const _0x49b891=_0x479f72;return _0x47f45d[_0x49b891('0xa28')](_0x49b891('0x7f2'));}]},'authenticate':!![],'permissionId':0x19b})['state'](_0x479f72('0x186f'),{'url':'/outbound_calls','controller':_0x479f72('0x1c5e'),'templateUrl':_0x4a7551,'resolve':{'rpcCalls':['apiResolver',function(_0x3649d5){const _0x207c83=_0x479f72;return _0x3649d5[_0x207c83('0xa28')]('rpc@getOutboundChannels');}]},'authenticate':!![],'permissionId':0x19b});}angular['module'](_0x21d0f5('0x90a'),[])[_0x21d0f5('0x53a')](_0x4704ec)[_0x21d0f5('0x23eb')](_0x21d0f5('0x1cb6'),_0x4a5ecc)[_0x21d0f5('0x23eb')](_0x21d0f5('0x9e3'),_0x132dea)['controller'](_0x21d0f5('0x1aad'),_0x252071)[_0x21d0f5('0x23eb')]('QueueCallsVoiceRealtimeController',_0x2b9809)['controller'](_0x21d0f5('0x2126'),_0x49a31c)['controller'](_0x21d0f5('0x1a99'),_0x4cb1b4)[_0x21d0f5('0x2729')](_0x21d0f5('0x927'),_0x1244af)[_0x21d0f5('0x23eb')]('VoiceRealtimeController',_0x159072)[_0x21d0f5('0x23eb')]('TelephonesVoiceRealtimeController',_0x33bd15)[_0x21d0f5('0x23eb')]('TrunksVoiceRealtimeController',_0x450091);const _0x1ea273=_0x351988['p']+_0x21d0f5('0x1bf2');_0x36774f[_0x21d0f5('0x1e9a')]=['$scope','$window',_0x21d0f5('0xcbc'),_0x21d0f5('0x18fe'),'$mdDialog',_0x21d0f5('0x1b30'),_0x21d0f5('0x17f5'),_0x21d0f5('0xb6b'),_0x21d0f5('0x1514'),_0x21d0f5('0x25bc'),_0x21d0f5('0x1d63'),'api',_0x21d0f5('0xda9'),'toasty',_0x21d0f5('0x1150'),_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1')];function _0x36774f(_0x54eeb0,_0x5b699a,_0x11048e,_0x4c0c6d,_0x54451f,_0x3e0b60,_0x3cbaea,_0x482514,_0x30d32a,_0x43cfdf,_0x51529e,_0x41c2c4,_0x54d287,_0x1ca2c0,_0x1b38b8,_0x44c862,_0x263523){const _0x408009=_0x21d0f5,_0x132724=this;_0x132724[_0x408009('0x17ff')]=_0x44c862,_0x132724[_0x408009('0x23e1')]=_0x263523,_0x132724[_0x408009('0x32a')]=_0x1b38b8[_0x408009('0x2428')](),_0x132724['chanSpies']=_0x30d32a||{'count':0x0,'rows':[]},_0x132724['userProfile']=_0x43cfdf,_0x132724[_0x408009('0x1d63')]=_0x51529e&&_0x51529e['count']==0x1?_0x51529e['rows'][0x0]:null,_0x132724[_0x408009('0xb25')]=_0x1b38b8[_0x408009('0x1530')](_0x132724[_0x408009('0x1d63')]?_0x132724[_0x408009('0x1d63')][_0x408009('0xb25')]:null),_0x132724['table']='chanSpies',_0x132724[_0x408009('0x724')]='',_0x132724['listOrderAsc']=null,_0x132724[_0x408009('0x245d')]=[],_0x132724['query']={'fields':'createdAt,updatedAt,id,name,prefix,options,auth,password,record,recordingFormat,description','sort':'-updatedAt','limit':0xa,'page':0x1},_0x132724[_0x408009('0xf80')]=_0x36f548()['keyBy']([{'option':_0x408009('0x251'),'value':_0x408009('0x390')},{'option':_0x408009('0x1f0c'),'value':_0x408009('0x5cf')},{'option':_0x408009('0x654'),'value':_0x408009('0x562')},{'option':_0x408009('0x2662'),'value':_0x408009('0x676')},{'option':_0x408009('0x19d3'),'value':'\x27q\x27'},{'option':_0x408009('0xde1'),'value':_0x408009('0x2bf')},{'option':_0x408009('0xcb6'),'value':_0x408009('0x15d7')},{'option':_0x408009('0x1d44'),'value':'\x27w\x27'},{'option':'W:\x20Enable\x20private\x20whisper\x20mode,\x20so\x20the\x20spying\x20channel\x20can\x20talk\x20to\x20the\x20spied-on\x20channel\x20but\x20cannot\x20listen\x20to\x20that\x20channel.','value':'\x27W\x27'}],function(_0x4411ea){const _0x41f440=_0x408009;return _0x36f548()[_0x41f440('0x814')](_0x4411ea[_0x41f440('0x10cc')],new RegExp('\x27','g'),'');}),_0x132724['arrayrecordingFormat']=_0x36f548()[_0x408009('0x2130')]([{'option':_0x408009('0x519'),'value':'\x27wav\x27'},{'option':_0x408009('0x3da'),'value':_0x408009('0x5af')},{'option':_0x408009('0x2311'),'value':'\x27WAV\x27'}],function(_0x3acf8b){const _0x4f2995=_0x408009;return _0x36f548()[_0x4f2995('0x814')](_0x3acf8b['value'],new RegExp('\x27','g'),'');}),_0x132724[_0x408009('0xc03')]=_0x26dcdc,_0x132724['deleteconfirm']=_0x471efc,_0x132724['success']=_0x21a0cc,_0x132724[_0x408009('0x9e0')]=_0xe51453,_0x132724[_0x408009('0x173a')]=_0x540049,_0x132724['deletechanSpy']=_0x3d17fe,_0x132724[_0x408009('0x420')]=_0x2f0079,_0x132724[_0x408009('0x25b7')]=_0xbc155e,_0x132724[_0x408009('0xce7')]=_0x355030,_0x132724[_0x408009('0x1fc1')]=_0x1c4f34;function _0x26dcdc(_0x4f49bc,_0x27441e){const _0x5acb9f=_0x408009;_0x54451f['show']({'controller':_0x5acb9f('0x1d29'),'controllerAs':'vm','templateUrl':_0x1ea273,'parent':angular[_0x5acb9f('0x1e73')](_0x3e0b60[_0x5acb9f('0x1d2')]),'targetEvent':_0x27441e,'clickOutsideToClose':!![],'locals':{'chanSpy':_0x4f49bc,'chanSpies':_0x132724[_0x5acb9f('0x1514')][_0x5acb9f('0x19b2')],'license':_0x132724[_0x5acb9f('0x17ff')],'setting':null,'crudPermissions':_0x132724['crudPermissions']}});}function _0x471efc(_0x1f4b58,_0x57eb62){const _0x4c8fe5=_0x408009,_0x44ef18=_0x54451f[_0x4c8fe5('0x132b')]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x36f548()[_0x4c8fe5('0x13cf')]('chanSpy')+'?')[_0x4c8fe5('0x1d03')](_0x4c8fe5('0x2061')+(_0x1f4b58[_0x4c8fe5('0x1909')]||_0x4c8fe5('0x813'))+_0x4c8fe5('0x1c78')+_0x4c8fe5('0x1a'))[_0x4c8fe5('0xb2e')](_0x4c8fe5('0x7e1'))[_0x4c8fe5('0x1e25')](_0x57eb62)['ok']('OK')[_0x4c8fe5('0x26c9')](_0x4c8fe5('0x772'));_0x54451f[_0x4c8fe5('0xb9')](_0x44ef18)[_0x4c8fe5('0x11bf')](function(){_0x3d17fe(_0x1f4b58);},function(){const _0x639a15=_0x4c8fe5;console[_0x639a15('0xc78')]('CANCEL');});}let _0x4d6d9d=!![],_0x3f04e0=0x1;_0x54eeb0[_0x408009('0x2087')](_0x408009('0x842'),function(_0x597a0c,_0x3316f0){const _0x1aaab0=_0x408009;_0x4d6d9d?_0x3cbaea(function(){_0x4d6d9d=![];}):(!_0x3316f0&&(_0x3f04e0=_0x132724[_0x1aaab0('0x1f2a')]['page']),_0x597a0c!==_0x3316f0&&(_0x132724[_0x1aaab0('0x1f2a')][_0x1aaab0('0x1c2')]=0x1),!_0x597a0c&&(_0x132724[_0x1aaab0('0x1f2a')][_0x1aaab0('0x1c2')]=_0x3f04e0),_0x132724[_0x1aaab0('0x9e0')]());});function _0x21a0cc(_0x2f2685){const _0x5b3f9c=_0x408009;_0x132724[_0x5b3f9c('0x1514')]=_0x2f2685||{'count':0x0,'rows':[]};}function _0xe51453(){const _0x52fbd6=_0x408009;_0x132724[_0x52fbd6('0x1f2a')]['offset']=(_0x132724['query'][_0x52fbd6('0x1c2')]-0x1)*_0x132724[_0x52fbd6('0x1f2a')]['limit'],_0x1b38b8[_0x52fbd6('0x4ee')](_0x52fbd6('0xf45'))?_0x132724[_0x52fbd6('0x13f')]=_0x41c2c4['voiceChanSpy'][_0x52fbd6('0xbaa')](_0x132724[_0x52fbd6('0x1f2a')],_0x21a0cc)[_0x52fbd6('0x1549')]:(_0x132724[_0x52fbd6('0x1f2a')]['id']=_0x132724['userProfile']['id'],_0x132724[_0x52fbd6('0x1f2a')]['section']=_0x52fbd6('0x1104'),_0x132724[_0x52fbd6('0x13f')]=_0x41c2c4[_0x52fbd6('0x25bc')][_0x52fbd6('0x228e')](_0x132724[_0x52fbd6('0x1f2a')],_0x21a0cc)[_0x52fbd6('0x1549')]);}function _0x540049(_0x3a12eb,_0x5a1c55){const _0x431069=_0x408009;_0x54451f[_0x431069('0xb9')]({'controller':_0x431069('0x1d29'),'controllerAs':'vm','templateUrl':_0x1ea273,'parent':angular[_0x431069('0x1e73')](_0x3e0b60['body']),'targetEvent':_0x3a12eb,'clickOutsideToClose':!![],'locals':{'chanSpy':_0x5a1c55,'chanSpies':_0x132724[_0x431069('0x1514')][_0x431069('0x19b2')],'license':_0x132724[_0x431069('0x17ff')],'setting':_0x132724[_0x431069('0x23e1')],'crudPermissions':_0x132724['crudPermissions']}});}function _0x3d17fe(_0x362354){const _0x25e1e9=_0x408009;_0x41c2c4[_0x25e1e9('0x92f')][_0x25e1e9('0x2088')]({'id':_0x362354['id']})[_0x25e1e9('0x1549')][_0x25e1e9('0x11bf')](function(){const _0x5a30af=_0x25e1e9;_0x36f548()[_0x5a30af('0x14a5')](_0x132724[_0x5a30af('0x1514')][_0x5a30af('0x19b2')],{'id':_0x362354['id']}),_0x132724['chanSpies'][_0x5a30af('0x27d2')]-=0x1,!_0x132724[_0x5a30af('0x1514')]['rows'][_0x5a30af('0x1e22')]&&_0x132724['getChanSpies'](),_0x1ca2c0[_0x5a30af('0x2693')]({'title':_0x36f548()[_0x5a30af('0x13cf')]('chanSpy')+_0x5a30af('0x2113'),'msg':_0x362354['name']?_0x362354[_0x5a30af('0x1909')]+_0x5a30af('0x433'):''});})[_0x25e1e9('0x151d')](function(_0x3f0364){const _0x42760d=_0x25e1e9;if(_0x3f0364['data']&&_0x3f0364[_0x42760d('0x4e8')][_0x42760d('0x120f')]&&_0x3f0364[_0x42760d('0x4e8')]['errors'][_0x42760d('0x1e22')]){_0x132724[_0x42760d('0x120f')]=_0x3f0364[_0x42760d('0x4e8')]['errors']||[{'message':_0x3f0364[_0x42760d('0xaab')](),'type':_0x42760d('0x1097')}];for(let _0x95c0c=0x0;_0x95c0c<_0x3f0364[_0x42760d('0x4e8')]['errors'][_0x42760d('0x1e22')];_0x95c0c++){_0x1ca2c0['error']({'title':_0x3f0364[_0x42760d('0x4e8')][_0x42760d('0x120f')][_0x95c0c][_0x42760d('0x19fd')],'msg':_0x3f0364['data']['errors'][_0x95c0c][_0x42760d('0x1b86')]});}}else _0x1ca2c0[_0x42760d('0x255')]({'title':_0x3f0364[_0x42760d('0xff9')]?'API:'+_0x3f0364[_0x42760d('0xff9')]+_0x42760d('0xb0b')+_0x3f0364[_0x42760d('0x212f')]:_0x42760d('0x1097'),'msg':_0x3f0364[_0x42760d('0x4e8')]?JSON[_0x42760d('0x3e')](_0x3f0364[_0x42760d('0x4e8')][_0x42760d('0x1b86')]):_0x3f0364[_0x42760d('0x1b86')]||_0x3f0364[_0x42760d('0xaab')]()});});}function _0x2f0079(){const _0x30d86c=_0x408009,_0x40866e=angular[_0x30d86c('0x6fb')](_0x132724[_0x30d86c('0x245d')]);return _0x132724[_0x30d86c('0x245d')]=[],_0x40866e;}function _0xbc155e(_0x2ca745){const _0x59ba03=_0x408009,_0x123f5d=_0x54451f[_0x59ba03('0x132b')]()[_0x59ba03('0x134b')](_0x59ba03('0x16f7'))['htmlContent'](_0x59ba03('0x2061')+_0x132724[_0x59ba03('0x245d')][_0x59ba03('0x1e22')]+_0x59ba03('0xac6')+_0x59ba03('0x1a'))['ariaLabel'](_0x59ba03('0x2119'))[_0x59ba03('0x1e25')](_0x2ca745)['ok']('OK')['cancel'](_0x59ba03('0x772'));_0x54451f['show'](_0x123f5d)[_0x59ba03('0x11bf')](function(){const _0x53c24f=_0x59ba03;_0x132724[_0x53c24f('0x245d')][_0x53c24f('0x1f88')](function(_0x311bc2){_0x3d17fe(_0x311bc2);}),_0x132724[_0x53c24f('0x245d')]=[];});}function _0x355030(){const _0x2a8c78=_0x408009;_0x132724[_0x2a8c78('0x245d')]=[];}function _0x1c4f34(){const _0x53a165=_0x408009;_0x132724[_0x53a165('0x245d')]=_0x132724['chanSpies'][_0x53a165('0x19b2')];}}const _0x1952ea=_0x36774f;_0x54c6f9['$inject']=[_0x21d0f5('0x1b80'),_0x21d0f5('0xcbc'),'$location',_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0xb6b'),_0x21d0f5('0x142d'),_0x21d0f5('0x1514'),_0x21d0f5('0x813'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),_0x21d0f5('0x17ff'),'setting',_0x21d0f5('0xb25')];function _0x54c6f9(_0x539a7d,_0x29628f,_0x5527ca,_0x3abca3,_0x2c100b,_0x475849,_0xb6f317,_0x74ca85,_0x4e5fcf,_0x5e24d0,_0x2d2709,_0x5244d8,_0x407c2f,_0x146a3d){const _0x28241b=_0x21d0f5,_0x3c52e4=this;_0x3c52e4[_0x28241b('0x32a')]=_0x2d2709[_0x28241b('0x2428')](),_0x3c52e4[_0x28241b('0x120f')]=[],_0x3c52e4[_0x28241b('0x23e1')]=_0x407c2f,_0x3c52e4[_0x28241b('0x17ff')]=_0x5244d8,_0x3c52e4[_0x28241b('0xb25')]=_0x146a3d,_0x3c52e4[_0x28241b('0x2c9')]={},_0x3c52e4[_0x28241b('0x2834')]=_0x3c52e4[_0x28241b('0x23e1')]&&_0x3c52e4[_0x28241b('0x23e1')][_0x28241b('0x1d4')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3c52e4[_0x28241b('0x134b')]=_0x28241b('0x1340'),_0x3c52e4[_0x28241b('0x813')]=angular['copy'](_0x4e5fcf),_0x3c52e4['chanSpies']=_0x74ca85,_0x3c52e4[_0x28241b('0x720')]=![];!_0x3c52e4[_0x28241b('0x813')]&&(_0x3c52e4['chanSpy']={'recordingFormat':'wav'},_0x3c52e4[_0x28241b('0x134b')]=_0x28241b('0x95e'),_0x3c52e4['newchanSpy']=!![]);_0x3c52e4[_0x28241b('0x12b7')]=_0x37a453,_0x3c52e4[_0x28241b('0x8f')]=_0x31fbab,_0x3c52e4[_0x28241b('0x926')]=_0x65d6f9,_0x3c52e4[_0x28241b('0x1bd1')]=_0x4cddbe,_0x3c52e4['closeDialog']=_0x294408;function _0x37a453(){const _0x5052bf=_0x28241b;_0x3c52e4[_0x5052bf('0x120f')]=[],_0x5e24d0[_0x5052bf('0x92f')][_0x5052bf('0x259')](_0x3c52e4[_0x5052bf('0x813')])['$promise'][_0x5052bf('0x11bf')](function(_0x2e8f9d){const _0x4af9f6=_0x5052bf;_0x3c52e4[_0x4af9f6('0x1514')]['unshift'](_0x2e8f9d['toJSON']()),_0xb6f317[_0x4af9f6('0x2693')]({'title':'chanSpy\x20properly\x20created','msg':_0x3c52e4['chanSpy']['name']?_0x3c52e4['chanSpy'][_0x4af9f6('0x1909')]+_0x4af9f6('0x7fb'):''}),_0x294408(_0x2e8f9d);})[_0x5052bf('0x151d')](function(_0x358a10){const _0x52353e=_0x5052bf;if(_0x358a10[_0x52353e('0x4e8')]&&_0x358a10['data'][_0x52353e('0x120f')]&&_0x358a10[_0x52353e('0x4e8')][_0x52353e('0x120f')][_0x52353e('0x1e22')]){_0x3c52e4[_0x52353e('0x120f')]=_0x358a10[_0x52353e('0x4e8')][_0x52353e('0x120f')]||[{'message':_0x358a10['toString'](),'type':_0x52353e('0x1d38')}];for(let _0x1fb8ee=0x0;_0x1fb8ee<_0x358a10['data']['errors'][_0x52353e('0x1e22')];_0x1fb8ee+=0x1){_0xb6f317[_0x52353e('0x255')]({'title':_0x358a10[_0x52353e('0x4e8')]['errors'][_0x1fb8ee][_0x52353e('0x19fd')],'msg':_0x358a10[_0x52353e('0x4e8')][_0x52353e('0x120f')][_0x1fb8ee][_0x52353e('0x1b86')]});}}else _0xb6f317[_0x52353e('0x255')]({'title':_0x358a10['status']?_0x52353e('0x574')+_0x358a10[_0x52353e('0xff9')]+'\x20-\x20'+_0x358a10[_0x52353e('0x212f')]:_0x52353e('0x1d38'),'msg':_0x358a10[_0x52353e('0x4e8')]?JSON[_0x52353e('0x3e')](_0x358a10[_0x52353e('0x4e8')][_0x52353e('0x1b86')]):_0x358a10[_0x52353e('0xaab')]()});});}function _0x31fbab(){const _0x409a4d=_0x28241b;_0x3c52e4[_0x409a4d('0x120f')]=[],_0x5e24d0['voiceChanSpy']['update']({'id':_0x3c52e4['chanSpy']['id']},_0x3c52e4[_0x409a4d('0x813')])['$promise']['then'](function(_0xd5eaa1){const _0x2a0558=_0x409a4d,_0x3619af=_0x36f548()[_0x2a0558('0x1ad4')](_0x3c52e4[_0x2a0558('0x1514')],{'id':_0xd5eaa1['id']});_0x3619af&&_0x36f548()['merge'](_0x3619af,_0x36f548()[_0x2a0558('0x258')](_0xd5eaa1['toJSON'](),_0x36f548()[_0x2a0558('0xe22')](_0x3619af))),_0xb6f317['success']({'title':_0x2a0558('0x3d4'),'msg':_0x3c52e4[_0x2a0558('0x813')]['name']?_0x3c52e4[_0x2a0558('0x813')][_0x2a0558('0x1909')]+_0x2a0558('0x1a78'):''}),_0x294408(_0xd5eaa1);})['catch'](function(_0x992f5b){const _0x26474f=_0x409a4d;if(_0x992f5b[_0x26474f('0x4e8')]&&_0x992f5b['data'][_0x26474f('0x120f')]&&_0x992f5b['data'][_0x26474f('0x120f')][_0x26474f('0x1e22')]){_0x3c52e4[_0x26474f('0x120f')]=_0x992f5b[_0x26474f('0x4e8')][_0x26474f('0x120f')]||[{'message':_0x992f5b['toString'](),'type':'api.voiceChanSpy.update'}];for(let _0x361561=0x0;_0x361561<_0x992f5b[_0x26474f('0x4e8')][_0x26474f('0x120f')][_0x26474f('0x1e22')];_0x361561++){_0xb6f317[_0x26474f('0x255')]({'title':_0x992f5b['data'][_0x26474f('0x120f')][_0x361561][_0x26474f('0x19fd')],'msg':_0x992f5b[_0x26474f('0x4e8')]['errors'][_0x361561][_0x26474f('0x1b86')]});}}else _0xb6f317[_0x26474f('0x255')]({'title':_0x992f5b[_0x26474f('0xff9')]?_0x26474f('0x574')+_0x992f5b['status']+_0x26474f('0xb0b')+_0x992f5b['statusText']:_0x26474f('0x14ef'),'msg':_0x992f5b['data']?JSON[_0x26474f('0x3e')](_0x992f5b['data']['message']):_0x992f5b['toString']()});});}function _0x65d6f9(_0x3d110d){const _0x389638=_0x28241b;_0x3c52e4['errors']=[];const _0x41df74=_0x3abca3['confirm']()[_0x389638('0x134b')](_0x389638('0x1fa9'))[_0x389638('0x252a')](_0x389638('0x2192'))['ariaLabel'](_0x389638('0xf70'))['ok'](_0x389638('0x1167'))['cancel'](_0x389638('0x784'))[_0x389638('0x1e25')](_0x3d110d);_0x3abca3[_0x389638('0xb9')](_0x41df74)['then'](function(){const _0x3393d3=_0x389638;_0x5e24d0[_0x3393d3('0x92f')][_0x3393d3('0x2088')]({'id':_0x3c52e4[_0x3393d3('0x813')]['id']})[_0x3393d3('0x1549')]['then'](function(){const _0x32da9d=_0x3393d3;_0x36f548()[_0x32da9d('0x14a5')](_0x3c52e4[_0x32da9d('0x1514')],{'id':_0x3c52e4[_0x32da9d('0x813')]['id']}),_0xb6f317['success']({'title':_0x32da9d('0x212d'),'msg':(_0x3c52e4['chanSpy'][_0x32da9d('0x1909')]||_0x32da9d('0x813'))+'\x20has\x20been\x20deleted!'}),_0x294408(_0x3c52e4['chanSpy']);})[_0x3393d3('0x151d')](function(_0x375eb1){const _0x48445=_0x3393d3;if(_0x375eb1['data']&&_0x375eb1[_0x48445('0x4e8')][_0x48445('0x120f')]&&_0x375eb1[_0x48445('0x4e8')][_0x48445('0x120f')]['length']){_0x3c52e4['errors']=_0x375eb1[_0x48445('0x4e8')][_0x48445('0x120f')]||[{'message':_0x375eb1[_0x48445('0xaab')](),'type':'api.voiceChanSpy.delete'}];for(let _0x147673=0x0;_0x147673<_0x375eb1[_0x48445('0x4e8')]['errors'][_0x48445('0x1e22')];_0x147673++){_0xb6f317[_0x48445('0x255')]({'title':_0x375eb1[_0x48445('0x4e8')][_0x48445('0x120f')][_0x147673]['type'],'msg':_0x375eb1[_0x48445('0x4e8')][_0x48445('0x120f')][_0x147673]['message']});}}else _0xb6f317[_0x48445('0x255')]({'title':_0x375eb1[_0x48445('0xff9')]?_0x48445('0x574')+_0x375eb1[_0x48445('0xff9')]+_0x48445('0xb0b')+_0x375eb1[_0x48445('0x212f')]:_0x48445('0x377'),'msg':_0x375eb1[_0x48445('0x4e8')]?JSON[_0x48445('0x3e')](_0x375eb1[_0x48445('0x4e8')][_0x48445('0x1b86')]):_0x375eb1[_0x48445('0x1b86')]||_0x375eb1[_0x48445('0xaab')]()});});},function(){});}function _0x4cddbe(_0xc957ca){return _0xc957ca===null?undefined:new Date(_0xc957ca);}function _0x294408(_0x222295){const _0x3b18fd=_0x28241b;_0x3abca3[_0x3b18fd('0x237e')](_0x222295);}}const _0x553890=_0x54c6f9,_0x47e24e=_0x351988['p']+_0x21d0f5('0x2cc');_0x22e221[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0x2143'),'$state',_0x21d0f5('0x18fe'),_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),'$timeout','$translate',_0x21d0f5('0x803'),_0x21d0f5('0x25bc'),_0x21d0f5('0x1d63'),'api',_0x21d0f5('0xda9'),_0x21d0f5('0x142d'),'Auth','license',_0x21d0f5('0x23e1')];function _0x22e221(_0x3c7737,_0x3cea1e,_0x10e907,_0x3839b2,_0x1df0a3,_0x1bb45f,_0x5587b9,_0x3ee3f3,_0x3fbfcc,_0x370308,_0x82e68c,_0x508cb1,_0x2465f0,_0x4e3f83,_0x58c008,_0x4ca7c7,_0xf82b78){const _0x556166=_0x21d0f5,_0x3e49f6=this;_0x3e49f6[_0x556166('0x17ff')]=_0x4ca7c7,_0x3e49f6[_0x556166('0x23e1')]=_0xf82b78,_0x3e49f6['currentUser']=_0x58c008[_0x556166('0x2428')](),_0x3e49f6['contexts']=_0x3fbfcc||{'count':0x0,'rows':[]},_0x3e49f6[_0x556166('0x25bc')]=_0x370308,_0x3e49f6[_0x556166('0x1d63')]=_0x82e68c&&_0x82e68c[_0x556166('0x27d2')]==0x1?_0x82e68c['rows'][0x0]:null,_0x3e49f6[_0x556166('0xb25')]=_0x58c008[_0x556166('0x1530')](_0x3e49f6[_0x556166('0x1d63')]?_0x3e49f6[_0x556166('0x1d63')][_0x556166('0xb25')]:null),_0x3e49f6['table']=_0x556166('0x803'),_0x3e49f6[_0x556166('0x724')]='',_0x3e49f6[_0x556166('0xe3c')]=null,_0x3e49f6[_0x556166('0x1e3a')]=[],_0x3e49f6[_0x556166('0x1f2a')]={'fields':_0x556166('0x219a'),'sort':'-updatedAt','defaultEntry':_0x556166('0x1fe1'),'limit':0xa,'page':0x1},_0x3e49f6[_0x556166('0xc03')]=_0x5a391f,_0x3e49f6[_0x556166('0x549')]=_0x607c20,_0x3e49f6['success']=_0x45904c,_0x3e49f6[_0x556166('0x1d6c')]=_0x287168,_0x3e49f6[_0x556166('0x1f1e')]=_0x44bc36,_0x3e49f6[_0x556166('0x17da')]=_0xad5b48,_0x3e49f6[_0x556166('0x1e2c')]=_0x41984b,_0x3e49f6[_0x556166('0x2717')]=_0x531eae,_0x3e49f6['deselectContexts']=_0x427421,_0x3e49f6[_0x556166('0x6a7')]=_0x4c62de;function _0x5a391f(_0x240862,_0x5198dc){const _0x1a192b=_0x556166;_0x1df0a3['show']({'controller':'CreateOrEditContextDialogController','controllerAs':'vm','templateUrl':_0x47e24e,'parent':angular[_0x1a192b('0x1e73')](_0x1bb45f[_0x1a192b('0x1d2')]),'targetEvent':_0x5198dc,'clickOutsideToClose':!![],'locals':{'context':_0x240862,'contexts':_0x3e49f6['contexts'][_0x1a192b('0x19b2')],'license':_0x3e49f6['license'],'setting':null,'crudPermissions':_0x3e49f6[_0x1a192b('0xb25')]}});}function _0x607c20(_0x575a38,_0x1fd399){const _0x3d3599=_0x556166,_0x3ae0e2=_0x1df0a3['confirm']()[_0x3d3599('0x134b')](_0x3d3599('0x1796')+_0x36f548()['startCase']('context')+'?')[_0x3d3599('0x1d03')](_0x3d3599('0x2061')+(_0x575a38[_0x3d3599('0x1909')]||'context')+''+'\x20will\x20be\x20deleted.')[_0x3d3599('0xb2e')]('delete\x20context')[_0x3d3599('0x1e25')](_0x1fd399)['ok']('OK')[_0x3d3599('0x26c9')](_0x3d3599('0x772'));_0x1df0a3[_0x3d3599('0xb9')](_0x3ae0e2)[_0x3d3599('0x11bf')](function(){_0xad5b48(_0x575a38);},function(){console['log']('CANCEL');});}let _0x4cba30=!![],_0x4a9029=0x1;_0x3c7737[_0x556166('0x2087')](_0x556166('0x842'),function(_0x44cdc7,_0x4c063f){const _0x2e8ae0=_0x556166;_0x4cba30?_0x5587b9(function(){_0x4cba30=![];}):(!_0x4c063f&&(_0x4a9029=_0x3e49f6['query'][_0x2e8ae0('0x1c2')]),_0x44cdc7!==_0x4c063f&&(_0x3e49f6[_0x2e8ae0('0x1f2a')][_0x2e8ae0('0x1c2')]=0x1),!_0x44cdc7&&(_0x3e49f6['query'][_0x2e8ae0('0x1c2')]=_0x4a9029),_0x3e49f6['getContexts']());});function _0x45904c(_0x276f40){_0x3e49f6['contexts']=_0x276f40||{'count':0x0,'rows':[]};}function _0x287168(){const _0x12a305=_0x556166;_0x3e49f6[_0x12a305('0x1f2a')][_0x12a305('0x1393')]=(_0x3e49f6[_0x12a305('0x1f2a')]['page']-0x1)*_0x3e49f6['query'][_0x12a305('0xd5c')],_0x58c008[_0x12a305('0x4ee')](_0x12a305('0xf45'))?_0x3e49f6[_0x12a305('0x13f')]=_0x508cb1['voiceContext']['get'](_0x3e49f6['query'],_0x45904c)[_0x12a305('0x1549')]:(_0x3e49f6['query']['id']=_0x3e49f6[_0x12a305('0x25bc')]['id'],_0x3e49f6[_0x12a305('0x1f2a')][_0x12a305('0xe6')]=_0x12a305('0xfcb'),_0x3e49f6['promise']=_0x508cb1[_0x12a305('0x25bc')][_0x12a305('0x228e')](_0x3e49f6[_0x12a305('0x1f2a')],_0x45904c)[_0x12a305('0x1549')]);}function _0x44bc36(_0x2062f7,_0x2ac802){const _0x1172dd=_0x556166;_0x1df0a3[_0x1172dd('0xb9')]({'controller':_0x1172dd('0x13aa'),'controllerAs':'vm','templateUrl':_0x47e24e,'parent':angular[_0x1172dd('0x1e73')](_0x1bb45f[_0x1172dd('0x1d2')]),'targetEvent':_0x2062f7,'clickOutsideToClose':!![],'locals':{'context':_0x2ac802,'contexts':_0x3e49f6[_0x1172dd('0x803')]['rows'],'license':_0x3e49f6[_0x1172dd('0x17ff')],'setting':_0x3e49f6[_0x1172dd('0x23e1')],'crudPermissions':_0x3e49f6[_0x1172dd('0xb25')]}});}function _0xad5b48(_0xb2ffa){const _0x1dc92e=_0x556166;_0x508cb1['voiceContext']['delete']({'id':_0xb2ffa['id']})['$promise'][_0x1dc92e('0x11bf')](function(){const _0x390441=_0x1dc92e;_0x36f548()[_0x390441('0x14a5')](_0x3e49f6[_0x390441('0x803')][_0x390441('0x19b2')],{'id':_0xb2ffa['id']}),_0x3e49f6[_0x390441('0x803')][_0x390441('0x27d2')]-=0x1,!_0x3e49f6[_0x390441('0x803')][_0x390441('0x19b2')]['length']&&_0x3e49f6[_0x390441('0x1d6c')](),_0x4e3f83[_0x390441('0x2693')]({'title':_0x36f548()['startCase'](_0x390441('0x1946'))+'\x20deleted!','msg':_0xb2ffa[_0x390441('0x1909')]?_0xb2ffa[_0x390441('0x1909')]+_0x390441('0x433'):''});})[_0x1dc92e('0x151d')](function(_0x2db5dc){const _0x52a90b=_0x1dc92e;if(_0x2db5dc['data']&&_0x2db5dc[_0x52a90b('0x4e8')][_0x52a90b('0x120f')]&&_0x2db5dc[_0x52a90b('0x4e8')]['errors']['length']){_0x3e49f6[_0x52a90b('0x120f')]=_0x2db5dc[_0x52a90b('0x4e8')][_0x52a90b('0x120f')]||[{'message':_0x2db5dc['toString'](),'type':'SYSTEM:DELETEvoiceContext'}];for(let _0x216f8d=0x0;_0x216f8d<_0x2db5dc[_0x52a90b('0x4e8')][_0x52a90b('0x120f')][_0x52a90b('0x1e22')];_0x216f8d++){_0x4e3f83[_0x52a90b('0x255')]({'title':_0x2db5dc[_0x52a90b('0x4e8')][_0x52a90b('0x120f')][_0x216f8d][_0x52a90b('0x19fd')],'msg':_0x2db5dc['data']['errors'][_0x216f8d][_0x52a90b('0x1b86')]});}}else _0x4e3f83[_0x52a90b('0x255')]({'title':_0x2db5dc['status']?'API:'+_0x2db5dc['status']+'\x20-\x20'+_0x2db5dc[_0x52a90b('0x212f')]:'SYSTEM:DELETEvoiceContext','msg':_0x2db5dc[_0x52a90b('0x4e8')]?JSON[_0x52a90b('0x3e')](_0x2db5dc[_0x52a90b('0x4e8')][_0x52a90b('0x1b86')]):_0x2db5dc['message']||_0x2db5dc[_0x52a90b('0xaab')]()});});}function _0x41984b(){const _0x24a8da=_0x556166,_0x4aeef1=angular['copy'](_0x3e49f6['selectedContexts']);return _0x3e49f6[_0x24a8da('0x1e3a')]=[],_0x4aeef1;}function _0x531eae(_0x11c43d){const _0x2adf1c=_0x556166,_0xd67c8e=_0x1df0a3['confirm']()[_0x2adf1c('0x134b')](_0x2adf1c('0x2103'))[_0x2adf1c('0x1d03')](_0x2adf1c('0x2061')+_0x3e49f6[_0x2adf1c('0x1e3a')][_0x2adf1c('0x1e22')]+_0x2adf1c('0xac6')+_0x2adf1c('0x1a'))[_0x2adf1c('0xb2e')](_0x2adf1c('0x1b6f'))[_0x2adf1c('0x1e25')](_0x11c43d)['ok']('OK')[_0x2adf1c('0x26c9')](_0x2adf1c('0x772'));_0x1df0a3[_0x2adf1c('0xb9')](_0xd67c8e)['then'](function(){const _0x562a69=_0x2adf1c;_0x3e49f6[_0x562a69('0x1e3a')]['forEach'](function(_0x4a0b92){_0xad5b48(_0x4a0b92);}),_0x3e49f6[_0x562a69('0x1e3a')]=[];});}function _0x427421(){_0x3e49f6['selectedContexts']=[];}function _0x4c62de(){const _0x246c78=_0x556166;_0x3e49f6[_0x246c78('0x1e3a')]=_0x3e49f6[_0x246c78('0x803')][_0x246c78('0x19b2')];}}const _0x151088=_0x22e221;_0xdb8ab4[_0x21d0f5('0x1e9a')]=['$scope','$state',_0x21d0f5('0x16b9'),_0x21d0f5('0x1ca2'),'$q','$translate',_0x21d0f5('0x142d'),_0x21d0f5('0x803'),_0x21d0f5('0x1c87'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),_0x21d0f5('0x17ff'),'setting',_0x21d0f5('0xb25')];function _0xdb8ab4(_0x57f07e,_0x24e7f4,_0x410db7,_0x4533fc,_0x5df0ab,_0x9209d6,_0x4f28a2,_0x23bcfa,_0x19e005,_0x47d489,_0x4988ec,_0x570ab0,_0x5c4847,_0x5019d6){const _0x3aba4b=_0x21d0f5,_0xcb4a7c=this;_0xcb4a7c['currentUser']=_0x4988ec[_0x3aba4b('0x2428')](),_0xcb4a7c['errors']=[],_0xcb4a7c['setting']=_0x5c4847,_0xcb4a7c[_0x3aba4b('0x17ff')]=_0x570ab0,_0xcb4a7c[_0x3aba4b('0xb25')]=_0x5019d6,_0xcb4a7c[_0x3aba4b('0x2c9')]={},_0xcb4a7c[_0x3aba4b('0x2834')]=_0xcb4a7c[_0x3aba4b('0x23e1')]&&_0xcb4a7c[_0x3aba4b('0x23e1')][_0x3aba4b('0x1d4')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0xcb4a7c[_0x3aba4b('0x134b')]='VOICE.EDIT_CONTEXT',_0xcb4a7c[_0x3aba4b('0x1c87')]=angular[_0x3aba4b('0x6fb')](_0x19e005),_0xcb4a7c['contexts']=_0x23bcfa,_0xcb4a7c[_0x3aba4b('0x1bd')]=![];!_0xcb4a7c['context']&&(_0xcb4a7c[_0x3aba4b('0x1c87')]={},_0xcb4a7c['title']='VOICE.NEW_CONTEXT',_0xcb4a7c[_0x3aba4b('0x1bd')]=!![]);_0xcb4a7c['addNewContext']=_0x577050,_0xcb4a7c[_0x3aba4b('0x2082')]=_0x424fae,_0xcb4a7c[_0x3aba4b('0x17da')]=_0x4b0c46,_0xcb4a7c[_0x3aba4b('0x1bd1')]=_0x117e6c,_0xcb4a7c['closeDialog']=_0x3ccaa9;function _0x577050(){const _0x11bb24=_0x3aba4b;_0xcb4a7c[_0x11bb24('0x120f')]=[],_0x47d489[_0x11bb24('0x1279')]['save'](_0xcb4a7c[_0x11bb24('0x1c87')])[_0x11bb24('0x1549')][_0x11bb24('0x11bf')](function(_0x1dc9aa){const _0x5d4c18=_0x11bb24;_0xcb4a7c[_0x5d4c18('0x803')][_0x5d4c18('0x880')](_0x1dc9aa[_0x5d4c18('0x2866')]()),_0x4f28a2[_0x5d4c18('0x2693')]({'title':_0x5d4c18('0x1813'),'msg':_0xcb4a7c[_0x5d4c18('0x1c87')][_0x5d4c18('0x1909')]?_0xcb4a7c[_0x5d4c18('0x1c87')]['name']+'\x20has\x20been\x20created!':''}),_0x3ccaa9(_0x1dc9aa);})[_0x11bb24('0x151d')](function(_0x3afd5d){const _0x4aeb1e=_0x11bb24;if(_0x3afd5d['data']&&_0x3afd5d[_0x4aeb1e('0x4e8')][_0x4aeb1e('0x120f')]&&_0x3afd5d[_0x4aeb1e('0x4e8')][_0x4aeb1e('0x120f')][_0x4aeb1e('0x1e22')]){_0xcb4a7c['errors']=_0x3afd5d['data'][_0x4aeb1e('0x120f')]||[{'message':_0x3afd5d['toString'](),'type':_0x4aeb1e('0x841')}];for(let _0x5d2d20=0x0;_0x5d2d20<_0x3afd5d[_0x4aeb1e('0x4e8')][_0x4aeb1e('0x120f')][_0x4aeb1e('0x1e22')];_0x5d2d20+=0x1){_0x4f28a2[_0x4aeb1e('0x255')]({'title':_0x3afd5d[_0x4aeb1e('0x4e8')][_0x4aeb1e('0x120f')][_0x5d2d20][_0x4aeb1e('0x19fd')],'msg':_0x3afd5d[_0x4aeb1e('0x4e8')][_0x4aeb1e('0x120f')][_0x5d2d20][_0x4aeb1e('0x1b86')]});}}else _0x4f28a2['error']({'title':_0x3afd5d[_0x4aeb1e('0xff9')]?'API:'+_0x3afd5d[_0x4aeb1e('0xff9')]+'\x20-\x20'+_0x3afd5d[_0x4aeb1e('0x212f')]:'api.voiceContext.save','msg':_0x3afd5d['data']?JSON['stringify'](_0x3afd5d[_0x4aeb1e('0x4e8')][_0x4aeb1e('0x1b86')]):_0x3afd5d[_0x4aeb1e('0xaab')]()});});}function _0x424fae(){const _0x4e391d=_0x3aba4b;_0xcb4a7c[_0x4e391d('0x120f')]=[],_0x47d489[_0x4e391d('0x1279')][_0x4e391d('0x5ab')]({'id':_0xcb4a7c[_0x4e391d('0x1c87')]['id']},_0xcb4a7c['context'])['$promise'][_0x4e391d('0x11bf')](function(_0x5195b7){const _0x400137=_0x4e391d,_0x4282d9=_0x36f548()[_0x400137('0x1ad4')](_0xcb4a7c[_0x400137('0x803')],{'id':_0x5195b7['id']});_0x4282d9&&_0x36f548()[_0x400137('0x47b')](_0x4282d9,_0x36f548()[_0x400137('0x258')](_0x5195b7['toJSON'](),_0x36f548()[_0x400137('0xe22')](_0x4282d9))),_0x4f28a2[_0x400137('0x2693')]({'title':_0x400137('0xd2e'),'msg':_0xcb4a7c[_0x400137('0x1c87')]['name']?_0xcb4a7c[_0x400137('0x1c87')][_0x400137('0x1909')]+_0x400137('0x1a78'):''}),_0x3ccaa9(_0x5195b7);})[_0x4e391d('0x151d')](function(_0x3082b0){const _0x3936dc=_0x4e391d;if(_0x3082b0[_0x3936dc('0x4e8')]&&_0x3082b0['data'][_0x3936dc('0x120f')]&&_0x3082b0[_0x3936dc('0x4e8')][_0x3936dc('0x120f')]['length']){_0xcb4a7c[_0x3936dc('0x120f')]=_0x3082b0[_0x3936dc('0x4e8')]['errors']||[{'message':_0x3082b0['toString'](),'type':_0x3936dc('0x144d')}];for(let _0x5b6150=0x0;_0x5b6150<_0x3082b0['data']['errors'][_0x3936dc('0x1e22')];_0x5b6150++){_0x4f28a2[_0x3936dc('0x255')]({'title':_0x3082b0[_0x3936dc('0x4e8')][_0x3936dc('0x120f')][_0x5b6150][_0x3936dc('0x19fd')],'msg':_0x3082b0[_0x3936dc('0x4e8')]['errors'][_0x5b6150][_0x3936dc('0x1b86')]});}}else _0x4f28a2[_0x3936dc('0x255')]({'title':_0x3082b0[_0x3936dc('0xff9')]?_0x3936dc('0x574')+_0x3082b0[_0x3936dc('0xff9')]+'\x20-\x20'+_0x3082b0[_0x3936dc('0x212f')]:_0x3936dc('0x144d'),'msg':_0x3082b0['data']?JSON[_0x3936dc('0x3e')](_0x3082b0[_0x3936dc('0x4e8')]['message']):_0x3082b0[_0x3936dc('0xaab')]()});});}function _0x4b0c46(_0x27de89){const _0x38a60c=_0x3aba4b;_0xcb4a7c['errors']=[];const _0x2a0c74=_0x4533fc[_0x38a60c('0x132b')]()[_0x38a60c('0x134b')](_0x38a60c('0x1fa9'))[_0x38a60c('0x252a')](_0x38a60c('0x2817'))[_0x38a60c('0xb2e')](_0x38a60c('0x1d5e'))['ok'](_0x38a60c('0x1167'))[_0x38a60c('0x26c9')](_0x38a60c('0x784'))[_0x38a60c('0x1e25')](_0x27de89);_0x4533fc['show'](_0x2a0c74)[_0x38a60c('0x11bf')](function(){const _0x7646f=_0x38a60c;_0x47d489[_0x7646f('0x1279')][_0x7646f('0x2088')]({'id':_0xcb4a7c['context']['id']})[_0x7646f('0x1549')][_0x7646f('0x11bf')](function(){const _0x3af9c0=_0x7646f;_0x36f548()[_0x3af9c0('0x14a5')](_0xcb4a7c[_0x3af9c0('0x803')],{'id':_0xcb4a7c['context']['id']}),_0x4f28a2[_0x3af9c0('0x2693')]({'title':_0x3af9c0('0x25cf'),'msg':(_0xcb4a7c[_0x3af9c0('0x1c87')]['name']||_0x3af9c0('0x1c87'))+_0x3af9c0('0x433')}),_0x3ccaa9(_0xcb4a7c[_0x3af9c0('0x1c87')]);})[_0x7646f('0x151d')](function(_0x3f9335){const _0x8bc286=_0x7646f;if(_0x3f9335[_0x8bc286('0x4e8')]&&_0x3f9335[_0x8bc286('0x4e8')][_0x8bc286('0x120f')]&&_0x3f9335[_0x8bc286('0x4e8')]['errors'][_0x8bc286('0x1e22')]){_0xcb4a7c[_0x8bc286('0x120f')]=_0x3f9335[_0x8bc286('0x4e8')][_0x8bc286('0x120f')]||[{'message':_0x3f9335[_0x8bc286('0xaab')](),'type':_0x8bc286('0x204')}];for(let _0x11e9f3=0x0;_0x11e9f3<_0x3f9335[_0x8bc286('0x4e8')][_0x8bc286('0x120f')][_0x8bc286('0x1e22')];_0x11e9f3++){_0x4f28a2['error']({'title':_0x3f9335['data']['errors'][_0x11e9f3][_0x8bc286('0x19fd')],'msg':_0x3f9335[_0x8bc286('0x4e8')]['errors'][_0x11e9f3][_0x8bc286('0x1b86')]});}}else _0x4f28a2['error']({'title':_0x3f9335[_0x8bc286('0xff9')]?_0x8bc286('0x574')+_0x3f9335['status']+_0x8bc286('0xb0b')+_0x3f9335['statusText']:_0x8bc286('0x204'),'msg':_0x3f9335['data']?JSON[_0x8bc286('0x3e')](_0x3f9335[_0x8bc286('0x4e8')]['message']):_0x3f9335[_0x8bc286('0x1b86')]||_0x3f9335[_0x8bc286('0xaab')]()});});},function(){});}function _0x117e6c(_0x11481d){return _0x11481d===null?undefined:new Date(_0x11481d);}function _0x3ccaa9(_0x15f4d2){const _0x3bc882=_0x3aba4b;_0x4533fc[_0x3bc882('0x237e')](_0x15f4d2);}}const _0x859761=_0xdb8ab4;_0x10914e['$inject']=[_0x21d0f5('0x1b80'),_0x21d0f5('0xcbc'),_0x21d0f5('0x16b9'),_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0xb6b'),_0x21d0f5('0x142d'),_0x21d0f5('0x1ea5'),'inboundroute',_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1'),'crudPermissions'];function _0x10914e(_0x18e649,_0x4383eb,_0x5e8443,_0x3f085b,_0x1d2ae5,_0x4106b6,_0x18cc7a,_0x5466e4,_0x1d495b,_0x4b6afa,_0x521b0b,_0x5e5bca,_0x52f8ad,_0x5d1acd){const _0x4c41d8=_0x21d0f5,_0x3c1402=this;_0x3c1402['currentUser']=_0x521b0b[_0x4c41d8('0x2428')](),_0x3c1402[_0x4c41d8('0x120f')]=[],_0x3c1402[_0x4c41d8('0x23e1')]=_0x52f8ad,_0x3c1402[_0x4c41d8('0x17ff')]=_0x5e5bca,_0x3c1402[_0x4c41d8('0xb25')]=_0x5d1acd,_0x3c1402[_0x4c41d8('0x2c9')]={},_0x3c1402[_0x4c41d8('0x2834')]=_0x3c1402[_0x4c41d8('0x23e1')]&&_0x3c1402['setting'][_0x4c41d8('0x1d4')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3c1402[_0x4c41d8('0x134b')]=_0x4c41d8('0x10e3'),_0x3c1402[_0x4c41d8('0x1e56')]=angular[_0x4c41d8('0x6fb')](_0x1d495b),_0x3c1402[_0x4c41d8('0x1ea5')]=_0x5466e4,_0x3c1402[_0x4c41d8('0xc9e')]=![];!_0x3c1402['inboundroute']&&(_0x3c1402[_0x4c41d8('0x1e56')]={'appdata':'Inbound\x20Call','type':'inbound','context':_0x4c41d8('0xbd5')},_0x3c1402['title']=_0x4c41d8('0x1cea'),_0x3c1402['newInboundRoute']=!![]);_0x3c1402[_0x4c41d8('0x177e')]=_0x5a6336,_0x3c1402[_0x4c41d8('0xd05')]=_0x30140b,_0x3c1402[_0x4c41d8('0xe0')]=_0xc433df,_0x3c1402[_0x4c41d8('0x1bd1')]=_0x1d199f,_0x3c1402['closeDialog']=_0x477650,_0x521b0b[_0x4c41d8('0x4ee')](_0x4c41d8('0xf45'))?_0x4b6afa['voiceContext'][_0x4c41d8('0xbaa')]({'fields':'id,name','sort':_0x4c41d8('0x1909'),'nolimit':_0x4c41d8('0x204c')})[_0x4c41d8('0x1549')]['then'](function(_0x24d6a7){const _0x752eaa=_0x4c41d8;_0x3c1402[_0x752eaa('0x803')]=_0x24d6a7[_0x752eaa('0x19b2')]||[];})[_0x4c41d8('0x151d')](function(_0x134bed){const _0x5d339e=_0x4c41d8;_0x18cc7a[_0x5d339e('0x255')]({'title':_0x134bed[_0x5d339e('0xff9')]?_0x5d339e('0x574')+_0x134bed['status']+_0x5d339e('0xb0b')+_0x134bed[_0x5d339e('0x212f')]:'SYSTEM:GET_CONTEXTS','msg':_0x134bed[_0x5d339e('0x4e8')]?JSON[_0x5d339e('0x3e')](_0x134bed[_0x5d339e('0x4e8')]):_0x134bed[_0x5d339e('0xaab')]()});}):_0x4b6afa[_0x4c41d8('0x1279')][_0x4c41d8('0xbaa')]({'fields':_0x4c41d8('0x721'),'sort':_0x4c41d8('0x1909'),'nolimit':_0x4c41d8('0x204c')})[_0x4c41d8('0x1549')][_0x4c41d8('0x11bf')](function(_0x2761eb){const _0x11e92f=_0x4c41d8;_0x3c1402[_0x11e92f('0x803')]=_0x2761eb['rows']||[];})['then'](function(){const _0x5eaff7=_0x4c41d8;return _0x4b6afa['userProfileSection']['get']({'userProfileId':_0x3c1402[_0x5eaff7('0x32a')][_0x5eaff7('0x781')],'sectionId':0x195})['$promise'];})['then'](function(_0x3e50ce){const _0x3af845=_0x4c41d8,_0x4e9d5b=_0x3e50ce&&_0x3e50ce[_0x3af845('0x19b2')]?_0x3e50ce['rows'][0x0]:null;if(!_0x4e9d5b)return _0x4b6afa[_0x3af845('0x1279')][_0x3af845('0xbaa')]({'fields':_0x3af845('0x721'),'sort':'name','nolimit':_0x3af845('0x204c'),'defaultEntry':0x1})[_0x3af845('0x1549')]['then'](function(_0x19c4b4){const _0x223650=_0x3af845;_0x3c1402['contexts']=_0x19c4b4[_0x223650('0x19b2')]||[];});else{if(!_0x4e9d5b[_0x3af845('0xf11')])return _0x4b6afa['userProfileResource'][_0x3af845('0xbaa')]({'sectionId':_0x4e9d5b['id']})[_0x3af845('0x1549')]['then'](function(_0x40853f){const _0x4129b1=_0x3af845,_0xaf31e2=_0x36f548()[_0x4129b1('0x2171')](_0x40853f[_0x4129b1('0x19b2')],function(_0xfc7fca){const _0xc5e874=_0x4129b1;return _0x36f548()[_0xc5e874('0x1ad4')](_0x3c1402[_0xc5e874('0x803')],{'id':_0xfc7fca['resourceId']});});let _0x4b5ba8=null;_0x3c1402[_0x4129b1('0x1e56')]&&(_0x4b5ba8=_0x36f548()[_0x4129b1('0x1ad4')](_0x3c1402[_0x4129b1('0x803')],{'name':_0x3c1402[_0x4129b1('0x1e56')][_0x4129b1('0x1c87')]}));if(_0x4b5ba8&&!_0x36f548()[_0x4129b1('0x1cb3')](_0xaf31e2,['id',_0x4b5ba8['id']])){const _0x4c1d8d=_0x36f548()[_0x4129b1('0x1ad4')](_0x3c1402[_0x4129b1('0x803')],{'id':_0x4b5ba8['id']});_0x4c1d8d[_0x4129b1('0x254a')]=![],_0xaf31e2[_0x4129b1('0x105d')](_0x4c1d8d);}_0x3c1402[_0x4129b1('0x803')]=_0xaf31e2;});}})['catch'](function(_0x187eb0){const _0x19ae45=_0x4c41d8;_0x18cc7a['error']({'title':_0x187eb0[_0x19ae45('0xff9')]?_0x19ae45('0x574')+_0x187eb0['status']+_0x19ae45('0xb0b')+_0x187eb0[_0x19ae45('0x212f')]:_0x19ae45('0x1280'),'msg':_0x187eb0[_0x19ae45('0x4e8')]?JSON[_0x19ae45('0x3e')](_0x187eb0[_0x19ae45('0x4e8')]):_0x187eb0[_0x19ae45('0xaab')]()});});function _0x5a6336(){const _0x20333e=_0x4c41d8;_0x3c1402[_0x20333e('0x120f')]=[],_0x4b6afa['voiceExtension'][_0x20333e('0x259')](_0x3c1402['inboundroute'])[_0x20333e('0x1549')]['then'](function(_0x43dc30){const _0x556ffd=_0x20333e;_0x3c1402['inboundroutes'][_0x556ffd('0x880')](_0x43dc30['toJSON']()),_0x18cc7a[_0x556ffd('0x2693')]({'title':'InboundRoute\x20properly\x20created','msg':_0x3c1402[_0x556ffd('0x1e56')][_0x556ffd('0x1909')]?_0x3c1402['inboundroute'][_0x556ffd('0x1909')]+'\x20has\x20been\x20created!':''}),_0x477650(_0x43dc30);})[_0x20333e('0x151d')](function(_0x4e1ae8){const _0x575dce=_0x20333e;if(_0x4e1ae8[_0x575dce('0x4e8')]&&_0x4e1ae8[_0x575dce('0x4e8')][_0x575dce('0x120f')]&&_0x4e1ae8[_0x575dce('0x4e8')][_0x575dce('0x120f')][_0x575dce('0x1e22')]){_0x3c1402[_0x575dce('0x120f')]=_0x4e1ae8['data'][_0x575dce('0x120f')]||[{'message':_0x4e1ae8['toString'](),'type':'api.voiceExtension.save'}];for(let _0x1251be=0x0;_0x1251be<_0x4e1ae8[_0x575dce('0x4e8')]['errors'][_0x575dce('0x1e22')];_0x1251be+=0x1){_0x18cc7a['error']({'title':_0x4e1ae8[_0x575dce('0x4e8')][_0x575dce('0x120f')][_0x1251be][_0x575dce('0x19fd')],'msg':_0x4e1ae8['data'][_0x575dce('0x120f')][_0x1251be][_0x575dce('0x1b86')]});}}else _0x18cc7a[_0x575dce('0x255')]({'title':_0x4e1ae8[_0x575dce('0xff9')]?_0x575dce('0x574')+_0x4e1ae8[_0x575dce('0xff9')]+_0x575dce('0xb0b')+_0x4e1ae8[_0x575dce('0x212f')]:_0x575dce('0x1c62'),'msg':_0x4e1ae8[_0x575dce('0x4e8')]?JSON[_0x575dce('0x3e')](_0x4e1ae8[_0x575dce('0x4e8')][_0x575dce('0x1b86')]):_0x4e1ae8[_0x575dce('0xaab')]()});});}function _0x30140b(){const _0x29637c=_0x4c41d8;_0x3c1402[_0x29637c('0x120f')]=[],_0x4b6afa[_0x29637c('0x417')][_0x29637c('0x5ab')]({'id':_0x3c1402[_0x29637c('0x1e56')]['id']},_0x3c1402[_0x29637c('0x1e56')])['$promise']['then'](function(_0x123c84){const _0x5c5b32=_0x29637c,_0x9005ab=_0x36f548()[_0x5c5b32('0x1ad4')](_0x3c1402[_0x5c5b32('0x1ea5')],{'id':_0x123c84['id']});_0x9005ab&&_0x36f548()['merge'](_0x9005ab,_0x36f548()[_0x5c5b32('0x258')](_0x123c84[_0x5c5b32('0x2866')](),_0x36f548()[_0x5c5b32('0xe22')](_0x9005ab))),_0x18cc7a[_0x5c5b32('0x2693')]({'title':_0x5c5b32('0x948'),'msg':_0x3c1402[_0x5c5b32('0x1e56')]['name']?_0x3c1402[_0x5c5b32('0x1e56')]['name']+_0x5c5b32('0x1a78'):''}),_0x477650(_0x123c84);})[_0x29637c('0x151d')](function(_0x386937){const _0x545552=_0x29637c;if(_0x386937[_0x545552('0x4e8')]&&_0x386937[_0x545552('0x4e8')][_0x545552('0x120f')]&&_0x386937[_0x545552('0x4e8')][_0x545552('0x120f')]['length']){_0x3c1402[_0x545552('0x120f')]=_0x386937['data']['errors']||[{'message':_0x386937['toString'](),'type':'api.voiceExtension.update'}];for(let _0x457f0a=0x0;_0x457f0a<_0x386937[_0x545552('0x4e8')][_0x545552('0x120f')][_0x545552('0x1e22')];_0x457f0a++){_0x18cc7a['error']({'title':_0x386937[_0x545552('0x4e8')][_0x545552('0x120f')][_0x457f0a]['type'],'msg':_0x386937[_0x545552('0x4e8')][_0x545552('0x120f')][_0x457f0a][_0x545552('0x1b86')]});}}else _0x18cc7a[_0x545552('0x255')]({'title':_0x386937['status']?_0x545552('0x574')+_0x386937[_0x545552('0xff9')]+'\x20-\x20'+_0x386937['statusText']:_0x545552('0x25a0'),'msg':_0x386937[_0x545552('0x4e8')]?JSON[_0x545552('0x3e')](_0x386937[_0x545552('0x4e8')]['message']):_0x386937[_0x545552('0xaab')]()});});}function _0xc433df(_0xbc3160){const _0x18449c=_0x4c41d8;_0x3c1402[_0x18449c('0x120f')]=[];const _0x1d1c56=_0x3f085b[_0x18449c('0x132b')]()[_0x18449c('0x134b')](_0x18449c('0x1fa9'))[_0x18449c('0x252a')]('The\x20inboundroute\x20will\x20be\x20deleted.')[_0x18449c('0xb2e')](_0x18449c('0x20c5'))['ok'](_0x18449c('0x1167'))['cancel'](_0x18449c('0x784'))[_0x18449c('0x1e25')](_0xbc3160);_0x3f085b[_0x18449c('0xb9')](_0x1d1c56)[_0x18449c('0x11bf')](function(){const _0x2ac83c=_0x18449c;_0x4b6afa['voiceExtension'][_0x2ac83c('0x2088')]({'id':_0x3c1402[_0x2ac83c('0x1e56')]['id']})[_0x2ac83c('0x1549')]['then'](function(){const _0x582f20=_0x2ac83c;_0x36f548()[_0x582f20('0x14a5')](_0x3c1402[_0x582f20('0x1ea5')],{'id':_0x3c1402[_0x582f20('0x1e56')]['id']}),_0x18cc7a[_0x582f20('0x2693')]({'title':'InboundRoute\x20properly\x20deleted!','msg':(_0x3c1402[_0x582f20('0x1e56')][_0x582f20('0x1909')]||_0x582f20('0x1e56'))+_0x582f20('0x433')}),_0x477650(_0x3c1402['inboundroute']);})[_0x2ac83c('0x151d')](function(_0x94a5b2){const _0xb70cf7=_0x2ac83c;if(_0x94a5b2[_0xb70cf7('0x4e8')]&&_0x94a5b2[_0xb70cf7('0x4e8')][_0xb70cf7('0x120f')]&&_0x94a5b2['data'][_0xb70cf7('0x120f')][_0xb70cf7('0x1e22')]){_0x3c1402['errors']=_0x94a5b2[_0xb70cf7('0x4e8')][_0xb70cf7('0x120f')]||[{'message':_0x94a5b2[_0xb70cf7('0xaab')](),'type':_0xb70cf7('0x2798')}];for(let _0x4e15e6=0x0;_0x4e15e6<_0x94a5b2[_0xb70cf7('0x4e8')][_0xb70cf7('0x120f')][_0xb70cf7('0x1e22')];_0x4e15e6++){_0x18cc7a[_0xb70cf7('0x255')]({'title':_0x94a5b2[_0xb70cf7('0x4e8')][_0xb70cf7('0x120f')][_0x4e15e6][_0xb70cf7('0x19fd')],'msg':_0x94a5b2[_0xb70cf7('0x4e8')]['errors'][_0x4e15e6]['message']});}}else _0x18cc7a['error']({'title':_0x94a5b2['status']?'API:'+_0x94a5b2[_0xb70cf7('0xff9')]+_0xb70cf7('0xb0b')+_0x94a5b2[_0xb70cf7('0x212f')]:'api.voiceExtension.delete','msg':_0x94a5b2['data']?JSON[_0xb70cf7('0x3e')](_0x94a5b2[_0xb70cf7('0x4e8')][_0xb70cf7('0x1b86')]):_0x94a5b2['message']||_0x94a5b2[_0xb70cf7('0xaab')]()});});},function(){});}function _0x1d199f(_0x2a778a){return _0x2a778a===null?undefined:new Date(_0x2a778a);}function _0x477650(_0x2d8a8d){const _0x3639e9=_0x4c41d8;_0x3f085b[_0x3639e9('0x237e')](_0x2d8a8d);}}const _0x22df20=_0x10914e,_0x437b5c=_0x351988['p']+_0x21d0f5('0x288'),_0x25464c=_0x351988['p']+'src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/custom/dialog.html/dialog.html',_0x285dcf=_0x351988['p']+_0x21d0f5('0x23bf'),_0x53df16=_0x351988['p']+_0x21d0f5('0x1ce8'),_0x232484=_0x351988['p']+_0x21d0f5('0x463'),_0x30d6cc=_0x351988['p']+'src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/hangup/dialog.html/dialog.html',_0xb3b135=_0x351988['p']+_0x21d0f5('0xfdf'),_0x1a6acf=_0x351988['p']+'src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/interval/dialog.html/dialog.html',_0x515367=_0x351988['p']+_0x21d0f5('0x19e7'),_0x4f3082=_0x351988['p']+'src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/queue/dialog.html/dialog.html',_0x3bf38a=_0x351988['p']+_0x21d0f5('0x1321'),_0x23d637=_0x351988['p']+'src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/set/dialog.html/dialog.html',_0x577d4a=_0x351988['p']+_0x21d0f5('0x23fa');_0xcab725[_0x21d0f5('0x1e9a')]=['api',_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),'toasty',_0x21d0f5('0x1150')];const _0x88d732={'agi':_0x437b5c,'custom':_0x25464c,'dial':_0x285dcf,'externaldial':_0x53df16,'goto':_0x232484,'hangup':_0x30d6cc,'internaldial':_0xb3b135,'interval':_0x1a6acf,'playback':_0x515367,'queue':_0x4f3082,'ringgroup':_0x3bf38a,'set':_0x23d637,'voicemail':_0x577d4a};function _0xcab725(_0x4acb5f,_0x17b6c1,_0x5bc0ca,_0xc963b7,_0x5ba11e){const _0x432fe7=_0x21d0f5,_0x569b7a=this;_0x569b7a[_0x432fe7('0x32a')]=_0x5ba11e[_0x432fe7('0x2428')](),_0x569b7a['inboundroute']={},_0x569b7a[_0x432fe7('0xc61')]={'count':0x0,'rows':[]},_0x569b7a[_0x432fe7('0x1bde')]=[],_0x569b7a[_0x432fe7('0xb25')],_0x569b7a[_0x432fe7('0x1f2a')]={'sort':_0x432fe7('0x2804')},_0x569b7a['apps']=_0x36f548()[_0x432fe7('0x4a')](_0x36f548()[_0x432fe7('0xd39')]([{'app':_0x432fe7('0x1979'),'appType':_0x432fe7('0x507'),'types':[_0x432fe7('0x27e5'),'custom',_0x432fe7('0x257d')],'fields':[],'isApp':![]},{'app':_0x432fe7('0x1c29'),'appType':_0x432fe7('0x150b'),'context':'from-voip-provider','type':_0x432fe7('0x1475'),'appdata':_0x432fe7('0x1190'),'icon':_0x432fe7('0x206d'),'options':'xX','interval':_0x432fe7('0x1830'),'answer':!![],'isApp':!![],'extraApi':[{'name':_0x432fe7('0x209a'),'field':{'name':_0x432fe7('0x1d6e'),'key':_0x432fe7('0xce5'),'prefix':'/var/opt/motion2/server/files/sounds/converted/'},'route':_0x432fe7('0x1d6e'),'filters':{'fields':'id,name,save_name','sort':'name','nolimit':!![]},'permissions':{'section':0x3ef}},{'name':'queues','field':{'name':_0x432fe7('0x150b'),'key':'name'},'route':'voiceQueue','filters':{'type':'inbound','fields':_0x432fe7('0xde'),'sort':_0x432fe7('0x1909'),'nolimit':!![]},'permissions':{'section':0x191}}],'fields':[{'title':_0x432fe7('0x1c29'),'name':_0x432fe7('0x150b'),'type':_0x432fe7('0x108f'),'values':'queues','value':_0x432fe7('0x19d4'),'option':'queue.name','required':!![],'param':0x0},{'title':_0x432fe7('0x27fb'),'name':_0x432fe7('0x249a'),'type':'text','param':0x1},{'title':_0x432fe7('0x2040'),'name':_0x432fe7('0xc29'),'type':_0x432fe7('0x25ed'),'param':0x2},{'title':_0x432fe7('0x370'),'name':'sound','type':_0x432fe7('0x108f'),'values':_0x432fe7('0x209a'),'value':'\x27/var/opt/motion2/server/files/sounds/converted/{{sound.save_name}}\x27','option':_0x432fe7('0x1c77'),'defaultValues':[{'value':'\x27\x27','option':_0x432fe7('0x1a1a')}],'param':0x3},{'title':_0x432fe7('0x65'),'name':'timeout','type':'number','min':0x0,'param':0x4},{'title':'Agi','name':_0x432fe7('0x1efd'),'type':_0x432fe7('0x25ed'),'param':0x5},{'title':'Macro','name':'macro','type':'text','param':0x6},{'title':_0x432fe7('0x1e86'),'name':'gosub','type':_0x432fe7('0x25ed'),'param':0x7},{'title':_0x432fe7('0x9e8'),'name':'rule','type':_0x432fe7('0x25ed'),'param':0x8},{'title':_0x432fe7('0x612'),'name':_0x432fe7('0x197'),'type':_0x432fe7('0x139e'),'min':0x0,'param':0x9},{'title':_0x432fe7('0x182b'),'name':_0x432fe7('0xc1f'),'type':_0x432fe7('0x2044'),'general':!![]}]},{'app':_0x432fe7('0xf7'),'appType':_0x432fe7('0x1c5b'),'context':_0x432fe7('0xbd5'),'type':_0x432fe7('0x1475'),'icon':_0x432fe7('0x206d'),'interval':_0x432fe7('0x1830'),'answer':!![],'isApp':!![],'extraApi':[{'name':_0x432fe7('0x209a'),'field':{'name':_0x432fe7('0x1d6e'),'key':_0x432fe7('0xce5'),'prefix':_0x432fe7('0x8fb')},'route':_0x432fe7('0x1d6e'),'filters':{'fields':_0x432fe7('0xee1'),'sort':'name','nolimit':!![]},'permissions':{'section':0x3ef}}],'fields':[{'title':_0x432fe7('0x232e'),'name':_0x432fe7('0x13fc'),'type':_0x432fe7('0x108f'),'values':_0x432fe7('0x209a'),'value':_0x432fe7('0x2036'),'option':_0x432fe7('0x27a6'),'required':!![],'param':0x0},{'title':'Options','name':'options','type':_0x432fe7('0x25ed'),'param':0x1},{'title':_0x432fe7('0x182b'),'name':_0x432fe7('0xc1f'),'type':_0x432fe7('0x2044'),'general':!![]}]},{'app':'Dial','appType':_0x432fe7('0x1b40'),'context':_0x432fe7('0xbd5'),'type':_0x432fe7('0x1475'),'icon':_0x432fe7('0x206d'),'interval':'*,*,*,*','options':'xX','isApp':!![],'fields':[{'title':_0x432fe7('0x21ba'),'name':_0x432fe7('0xae7'),'type':_0x432fe7('0x25ed'),'required':!![],'param':0x0},{'title':'Timeout','name':'timeout','type':_0x432fe7('0x139e'),'min':0x0,'param':0x1},{'title':_0x432fe7('0x27fb'),'name':_0x432fe7('0x249a'),'type':_0x432fe7('0x25ed'),'param':0x2},{'title':'Url','name':_0x432fe7('0x259e'),'type':'text','param':0x3}]},{'app':_0x432fe7('0x29d'),'appType':'internalDial','context':_0x432fe7('0xbd5'),'type':_0x432fe7('0x1475'),'icon':'icon-apps','interval':'*,*,*,*','options':'xX','isApp':!![],'extraApi':[{'name':_0x432fe7('0x17c0'),'field':{'name':_0x432fe7('0x21d9'),'key':'name','prefix':_0x432fe7('0x2727')},'route':_0x432fe7('0x21d9'),'filters':{'fields':_0x432fe7('0x1b7b'),'sort':_0x432fe7('0x1909'),'nolimit':!![]},'permissions':{'sections':[{'id':0xca,'role':_0x432fe7('0x18c4')},{'id':0xcb,'role':_0x432fe7('0x2650')}]}}],'fields':[{'title':_0x432fe7('0x24ab'),'name':_0x432fe7('0x21d9'),'type':'apiselect','values':_0x432fe7('0x17c0'),'value':_0x432fe7('0x10d3'),'option':_0x432fe7('0x22af'),'required':!![],'param':0x0},{'title':'Timeout','name':_0x432fe7('0xfbe'),'type':_0x432fe7('0x139e'),'min':0x0,'param':0x1},{'title':_0x432fe7('0x27fb'),'name':_0x432fe7('0x249a'),'type':_0x432fe7('0x25ed'),'param':0x2},{'title':'Url','name':'url','type':_0x432fe7('0x25ed'),'param':0x3}]},{'app':_0x432fe7('0x29d'),'appType':'externalDial','context':_0x432fe7('0xbd5'),'type':_0x432fe7('0x18a2'),'icon':'icon-apps','interval':_0x432fe7('0x1830'),'options':'xX','isApp':!![],'extraApi':[{'name':_0x432fe7('0x1b24'),'field':{'name':_0x432fe7('0x264e'),'key':_0x432fe7('0x1909')},'route':_0x432fe7('0x264e'),'filters':{'fields':_0x432fe7('0x721'),'sort':_0x432fe7('0x1909'),'nolimit':!![]},'permissions':{'section':0x3f3}}],'fields':[{'title':_0x432fe7('0x10d'),'name':_0x432fe7('0x264e'),'type':_0x432fe7('0x108f'),'values':_0x432fe7('0x1b24'),'value':_0x432fe7('0x1872'),'option':_0x432fe7('0x1872'),'required':!![],'param':0x0},{'title':_0x432fe7('0x27a8'),'name':'phone','required':!![],'type':_0x432fe7('0x25ed')},{'title':_0x432fe7('0x65'),'name':_0x432fe7('0xfbe'),'type':_0x432fe7('0x139e'),'min':0x0,'param':0x1},{'title':_0x432fe7('0x27fb'),'name':'options','type':_0x432fe7('0x25ed'),'param':0x2},{'title':_0x432fe7('0x2040'),'name':_0x432fe7('0x259e'),'type':_0x432fe7('0x25ed'),'param':0x3}]},{'app':_0x432fe7('0x29d'),'appType':_0x432fe7('0x78a'),'context':_0x432fe7('0xbd5'),'type':_0x432fe7('0x18a2'),'icon':_0x432fe7('0x206d'),'interval':_0x432fe7('0x1830'),'options':'xX','isApp':!![],'extraApi':[{'name':_0x432fe7('0x17c0'),'field':{'name':_0x432fe7('0x22a8'),'key':'name','prefix':_0x432fe7('0x2727')},'route':_0x432fe7('0x21d9'),'filters':{'fields':_0x432fe7('0x1b7b'),'sort':_0x432fe7('0x1909'),'nolimit':!![]},'permissions':{'sections':[{'id':0xca,'role':_0x432fe7('0x18c4')},{'id':0xcb,'role':_0x432fe7('0x2650')}]}}],'fields':[{'title':'User','name':_0x432fe7('0x22a8'),'type':_0x432fe7('0x108f'),'multiple':!![],'values':_0x432fe7('0x17c0'),'value':_0x432fe7('0x16de'),'option':'multipleUsers.name','required':!![],'param':0x0},{'title':_0x432fe7('0x65'),'name':'timeout','type':_0x432fe7('0x139e'),'min':0x0,'param':0x1},{'title':_0x432fe7('0x27fb'),'name':'options','type':'text','param':0x2},{'title':_0x432fe7('0x2040'),'name':'url','type':_0x432fe7('0x25ed'),'param':0x3}]},{'app':_0x432fe7('0x1494'),'alias':'CallySquare','appType':_0x432fe7('0x1efd'),'context':_0x432fe7('0xbd5'),'type':_0x432fe7('0x18a2'),'icon':_0x432fe7('0x206d'),'interval':_0x432fe7('0x1830'),'isApp':!![],'extraApi':[{'name':_0x432fe7('0xa62'),'field':{'name':'project','key':_0x432fe7('0x1909'),'prefix':_0x432fe7('0x222f')},'route':_0x432fe7('0x1671'),'filters':{'fields':'id,name','sort':'name','nolimit':!![]},'permissions':{'section':0x44f}}],'fields':[{'title':'Project','name':_0x432fe7('0xef0'),'type':_0x432fe7('0x108f'),'values':'projects','value':_0x432fe7('0x14d1'),'option':_0x432fe7('0xeab'),'required':!![],'param':0x0}]},{'app':_0x432fe7('0x2190'),'appType':'goTo','context':_0x432fe7('0xbd5'),'type':_0x432fe7('0x1475'),'icon':'icon-apps','interval':'*,*,*,*','isApp':!![],'extraApi':[{'name':'contexts','field':{'name':'context','key':_0x432fe7('0x1909')},'route':_0x432fe7('0x1279'),'filters':{'fields':_0x432fe7('0x721'),'sort':'name','nolimit':!![]},'permissions':{'section':0x195}}],'fields':[{'title':'Context','name':_0x432fe7('0x1c87'),'type':_0x432fe7('0x108f'),'values':_0x432fe7('0x803'),'value':'context.name','option':_0x432fe7('0x2364'),'required':!![],'param':0x0},{'title':_0x432fe7('0x89c'),'name':_0x432fe7('0xf91'),'type':_0x432fe7('0x25ed'),'required':!![],'param':0x1},{'title':_0x432fe7('0x1c98'),'name':_0x432fe7('0x2804'),'type':_0x432fe7('0x25ed'),'required':!![],'param':0x2}]},{'app':'hangup','appType':_0x432fe7('0xcef'),'context':_0x432fe7('0xbd5'),'type':'Inbound','icon':_0x432fe7('0x206d'),'interval':_0x432fe7('0x1830'),'isApp':!![],'fields':[{'title':_0x432fe7('0x22d9'),'name':'appdata','type':_0x432fe7('0x2350'),'param':0x0,'values':[{'option':_0x432fe7('0x49b'),'value':_0x432fe7('0x211f')},{'option':_0x432fe7('0x111e'),'value':'\x2716\x27'},{'option':_0x432fe7('0x959'),'value':_0x432fe7('0x36a')},{'option':_0x432fe7('0x1e9f'),'value':'\x2718\x27'},{'option':_0x432fe7('0xa2a'),'value':_0x432fe7('0x1493')},{'option':'HANGUPCAUSE_22','value':_0x432fe7('0x1261')},{'option':'HANGUPCAUSE_27','value':_0x432fe7('0x6d')},{'option':_0x432fe7('0x1741'),'value':_0x432fe7('0xfbd')},{'option':_0x432fe7('0xedb'),'value':_0x432fe7('0x213')}],'translate':!![],'required':!![],'general':!![]}]},{'app':_0x432fe7('0x25a8'),'appType':_0x432fe7('0xe50'),'context':_0x432fe7('0xbd5'),'type':'Inbound','separator':'=','icon':_0x432fe7('0x206d'),'interval':'*,*,*,*','extraApi':[{'name':_0x432fe7('0x1700'),'field':{'name':'name','key':_0x432fe7('0x1909')},'route':_0x432fe7('0xb0'),'filters':{'fields':_0x432fe7('0x721'),'sort':_0x432fe7('0x1909'),'nolimit':!![]},'permissions':{'section':0x3f4}}],'isApp':!![],'fields':[{'title':_0x432fe7('0xb76'),'name':_0x432fe7('0x1909'),'type':_0x432fe7('0x108f'),'values':_0x432fe7('0x1700'),'value':_0x432fe7('0x26c1'),'option':'name.name','required':!![],'param':0x0},{'title':_0x432fe7('0x255a'),'name':_0x432fe7('0x10cc'),'type':'text','required':!![],'param':0x1}]},{'app':null,'appType':'custom','icon':_0x432fe7('0x206d'),'type':_0x432fe7('0x1475'),'interval':_0x432fe7('0x1830'),'isApp':!![],'fields':[{'title':_0x432fe7('0x1f01'),'name':_0x432fe7('0x18f5'),'type':_0x432fe7('0x25ed'),'required':!![],'param':0x0},{'title':_0x432fe7('0x55c'),'name':_0x432fe7('0x13fc'),'type':'text','param':0x1}]},{'app':_0x432fe7('0x25a4'),'appType':'voicemail','context':_0x432fe7('0xbd5'),'icon':_0x432fe7('0x206d'),'type':'Inbound','interval':_0x432fe7('0x1830'),'isApp':!![],'extraApi':[{'name':_0x432fe7('0xffe'),'field':{'name':_0x432fe7('0x2516'),'key':_0x432fe7('0x169b'),'suffix':_0x432fe7('0x1afb')},'route':_0x432fe7('0x2516'),'filters':{'fields':_0x432fe7('0x3d3'),'sort':_0x432fe7('0x169b'),'nolimit':!![]},'permissions':{'section':0x196}}],'fields':[{'title':_0x432fe7('0x2562'),'name':'voiceMail','type':'apiselect','values':_0x432fe7('0xffe'),'value':_0x432fe7('0xdb3'),'option':_0x432fe7('0x5b6'),'required':!![],'param':0x0},{'title':_0x432fe7('0x27fb'),'name':'options','type':_0x432fe7('0x25ed'),'param':0x1}]}],[_0x432fe7('0x18f5')]),{'isApp':![]}),_0x569b7a[_0x432fe7('0x257d')]={'group':{'name':_0x432fe7('0x1525'),'pull':'clone'},'animation':0x64,'sort':![]},_0x569b7a[_0x432fe7('0xb9b')]={'group':{'name':_0x432fe7('0x16f9'),'put':'opt1'},'animation':0x64,'onAdd':function(_0x131b70){_0x51d123(_0x131b70,_0x131b70['newIndex']);},'onSort':function(){_0x599ac1();}},_0x569b7a[_0x432fe7('0x286f')]=_0x2bba27,_0x569b7a[_0x432fe7('0x560')]=_0x14ad16,_0x569b7a['getInboundRouteApps']=_0x5d4e58,_0x569b7a['editInboundRouteApp']=_0x51d123,_0x569b7a[_0x432fe7('0x1452')]=_0x3b428d,_0x569b7a[_0x432fe7('0xac7')]=_0x1180d7,_0x569b7a[_0x432fe7('0x1664')]=_0x245ec5,_0x569b7a['rewriteRouting']=_0x599ac1,_0x569b7a[_0x432fe7('0x431')]=_0x578fc5;function _0x2bba27(_0x1f0b6f,_0x14a189){const _0x544ef6=_0x432fe7;_0x569b7a['inboundroute']=_0x1f0b6f,_0x569b7a[_0x544ef6('0xb25')]=typeof _0x14a189!==_0x544ef6('0x13e9')?_0x14a189:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x569b7a[_0x544ef6('0xb9b')][_0x544ef6('0xa4b')]=!_0x569b7a[_0x544ef6('0xb25')][_0x544ef6('0x25db')]?!![]:![],_0x569b7a[_0x544ef6('0x1f2a')]['VoiceExtensionId']=_0x1f0b6f['id'],_0x569b7a['query'][_0x544ef6('0x1210')]=!![],_0x569b7a[_0x544ef6('0x1f2a')][_0x544ef6('0x287')]=!![],_0x569b7a[_0x544ef6('0x27cc')](),_0x569b7a[_0x544ef6('0x431')]();}function _0x14ad16(_0x38d0e4,_0x56a4b2,_0x4da273){const _0x5327d3=_0x432fe7,_0x539255=_0x17b6c1['confirm']()['title'](_0x5327d3('0x93a'))[_0x5327d3('0x1d03')](_0x5327d3('0x2061')+_0x38d0e4[_0x5327d3('0x18f5')]+_0x5327d3('0x1c78')+_0x5327d3('0x1a'))[_0x5327d3('0xb2e')](_0x5327d3('0x177'))[_0x5327d3('0x1e25')](_0x4da273)['ok']('OK')[_0x5327d3('0x26c9')](_0x5327d3('0x772'));_0x17b6c1[_0x5327d3('0xb9')](_0x539255)[_0x5327d3('0x11bf')](function(){const _0x4a23b3=_0x5327d3;_0x569b7a[_0x4a23b3('0xc61')][_0x4a23b3('0x19b2')][_0x4a23b3('0x1ae')](_0x56a4b2,0x1),_0x599ac1();},function(){const _0x57880c=_0x5327d3;console[_0x57880c('0xc78')](_0x57880c('0x772'));});}function _0x51d123(_0x40fd4b,_0x5e759a){const _0x2befc4=_0x432fe7;if(_0x569b7a[_0x2befc4('0xc61')]['rows'][_0x2befc4('0x1e22')]){const _0xb9e3f0=_0x569b7a[_0x2befc4('0xc61')][_0x2befc4('0x19b2')][_0x5e759a]?_0x569b7a['inboundrouteApps'][_0x2befc4('0x19b2')][_0x5e759a]:_0x569b7a[_0x2befc4('0xc61')][_0x2befc4('0x19b2')][0x0],_0x47dd26=(_0xb9e3f0[_0x2befc4('0x27c0')]||_0xb9e3f0[_0x2befc4('0x18f5')])['toLowerCase']();_0x17b6c1[_0x2befc4('0xb9')]({'controller':_0x2befc4('0x884')+_0x47dd26+_0x2befc4('0xf3f'),'controllerAs':'vm','templateUrl':_0x88d732[_0x47dd26],'parent':angular[_0x2befc4('0x1e73')](_0x5bc0ca[_0x2befc4('0x1d2')]),'targetEvent':_0x40fd4b,'clickOutsideToClose':!![],'locals':{'inboundrouteApp':_0xb9e3f0,'inboundroute':_0x569b7a[_0x2befc4('0x1e56')],'crudPermissions':_0x569b7a[_0x2befc4('0xb25')]}})[_0x2befc4('0x11bf')](function(_0x3de065){const _0x294d1c=_0x2befc4;_0x3de065&&(_0x3de065['id']?_0x569b7a[_0x294d1c('0xc61')][_0x294d1c('0x19b2')][_0x5e759a]=_0x3de065:_0x569b7a['inboundrouteApps'][_0x294d1c('0x19b2')][_0x294d1c('0x1ae')](_0x5e759a,0x0,_0x3de065),_0x599ac1());})[_0x2befc4('0x151d')](function(_0x398d60){const _0xa5638e=_0x2befc4;_0x398d60&&_0xc963b7['error']({'title':_0x398d60[_0xa5638e('0xff9')]?_0xa5638e('0x574')+_0x398d60[_0xa5638e('0xff9')]+_0xa5638e('0xb0b')+_0x398d60[_0xa5638e('0x212f')]:_0xa5638e('0x154c'),'msg':_0x398d60[_0xa5638e('0x4e8')]?JSON[_0xa5638e('0x3e')](_0x398d60['data']):_0x398d60[_0xa5638e('0xaab')]()});});}}function _0x3b428d(_0xfdeb6b,_0x3eb943){const _0x27ba29=_0x432fe7;if(_0x569b7a[_0x27ba29('0xc61')]['rows']['length']){const _0x26aacc=_0x569b7a[_0x27ba29('0xc61')]['rows'][_0x3eb943]?_0x569b7a[_0x27ba29('0xc61')][_0x27ba29('0x19b2')][_0x3eb943]:_0x569b7a[_0x27ba29('0xc61')][_0x27ba29('0x19b2')][0x0];_0x17b6c1[_0x27ba29('0xb9')]({'controller':_0x27ba29('0xda1'),'controllerAs':'vm','templateUrl':_0x1a6acf,'parent':angular[_0x27ba29('0x1e73')](_0x5bc0ca['body']),'targetEvent':_0xfdeb6b,'clickOutsideToClose':!![],'locals':{'interval':{'interval':_0x26aacc[_0x27ba29('0x507')],'IntervalId':_0x26aacc[_0x27ba29('0x6b4')],'application':!![]},'intervals':[],'crudPermissions':_0x569b7a[_0x27ba29('0xb25')]}})[_0x27ba29('0x11bf')](function(_0x3a0b45){const _0x122eaa=_0x27ba29;_0x3a0b45&&(_0x26aacc['interval']=_0x3a0b45['interval']||_0x122eaa('0x1830'),_0x26aacc[_0x122eaa('0x6b4')]=_0x3a0b45[_0x122eaa('0x6b4')]||null,_0x599ac1());});}}function _0x599ac1(){const _0x2cc9b7=_0x432fe7,_0x310ae0=[_0x2cc9b7('0x150b'),_0x2cc9b7('0x1c5b')];let _0x3271c0=0x2,_0x31f473=[];_0x31f473[_0x2cc9b7('0x105d')]({'type':_0x2cc9b7('0x18a2'),'app':_0x2cc9b7('0x25a8'),'appdata':'CDR(type)=inbound','context':_0x569b7a[_0x2cc9b7('0x1e56')][_0x2cc9b7('0x1c87')],'exten':_0x569b7a[_0x2cc9b7('0x1e56')][_0x2cc9b7('0x4c6')],'priority':_0x3271c0++,'VoiceExtensionId':_0x569b7a['inboundroute']['id']}),_0x31f473[_0x2cc9b7('0x105d')]({'type':_0x2cc9b7('0x18a2'),'app':_0x2cc9b7('0x25a8'),'appdata':_0x2cc9b7('0x1a75'),'context':_0x569b7a[_0x2cc9b7('0x1e56')][_0x2cc9b7('0x1c87')],'exten':_0x569b7a[_0x2cc9b7('0x1e56')][_0x2cc9b7('0x4c6')],'priority':_0x3271c0++,'VoiceExtensionId':_0x569b7a[_0x2cc9b7('0x1e56')]['id']}),_0x31f473[_0x2cc9b7('0x105d')]({'type':_0x2cc9b7('0x18a2'),'app':_0x2cc9b7('0x25a8'),'appdata':_0x2cc9b7('0x8e9'),'context':_0x569b7a[_0x2cc9b7('0x1e56')][_0x2cc9b7('0x1c87')],'exten':_0x569b7a[_0x2cc9b7('0x1e56')]['exten'],'priority':_0x3271c0++,'VoiceExtensionId':_0x569b7a[_0x2cc9b7('0x1e56')]['id']}),_0x31f473[_0x2cc9b7('0x105d')]({'type':_0x2cc9b7('0x18a2'),'app':_0x2cc9b7('0x25a8'),'appdata':_0x2cc9b7('0x2078'),'context':_0x569b7a[_0x2cc9b7('0x1e56')][_0x2cc9b7('0x1c87')],'exten':_0x569b7a[_0x2cc9b7('0x1e56')]['exten'],'priority':_0x3271c0++,'VoiceExtensionId':_0x569b7a['inboundroute']['id']});for(let _0x4415a1=0x0,_0x2da487=0x0;_0x4415a1<_0x569b7a[_0x2cc9b7('0xc61')][_0x2cc9b7('0x19b2')][_0x2cc9b7('0x1e22')];_0x4415a1++,_0x2da487=0x0){const _0x4b5af9=_0x569b7a[_0x2cc9b7('0xc61')][_0x2cc9b7('0x19b2')][_0x4415a1],_0x5aaab9=[],_0x4baeef=[];_0x4b5af9['intervals']=_0x4b5af9[_0x2cc9b7('0x507')]!==_0x2cc9b7('0x1830')?[_0x4b5af9[_0x2cc9b7('0x507')]]:_0x4b5af9[_0x2cc9b7('0x6b4')]?_0x36f548()[_0x2cc9b7('0x2171')](_0x36f548()[_0x2cc9b7('0xdb4')](_0x569b7a[_0x2cc9b7('0xe82')][_0x2cc9b7('0x19b2')],{'IntervalId':_0x4b5af9['IntervalId']}),_0x2cc9b7('0x507')):[],_0x4b5af9[_0x2cc9b7('0x1c87')]=_0x569b7a[_0x2cc9b7('0x1e56')][_0x2cc9b7('0x1c87')],_0x4b5af9['exten']=_0x569b7a[_0x2cc9b7('0x1e56')]['exten'];_0x4b5af9[_0x2cc9b7('0x19fd')]&&(_0x4b5af9['type']=_0x4b5af9['type'][_0x2cc9b7('0x20d5')]());typeof _0x4b5af9['answer']!=='undefined'&&(_0x310ae0[_0x2cc9b7('0x55a')](_0x4b5af9[_0x2cc9b7('0x18f5')][_0x2cc9b7('0x20d5')]())&&_0x4b5af9['appType']!==_0x2cc9b7('0xa8d')&&(_0x4b5af9[_0x2cc9b7('0xc1f')]?(_0x5aaab9['push']({'type':_0x4b5af9['type'][_0x2cc9b7('0x20d5')](),'app':'ExecIf','appdata':_0x2cc9b7('0x251a'),'context':_0x569b7a['inboundroute'][_0x2cc9b7('0x1c87')],'exten':_0x569b7a[_0x2cc9b7('0x1e56')][_0x2cc9b7('0x4c6')],'priority':_0x4b5af9[_0x2cc9b7('0xe82')][_0x2cc9b7('0x1e22')]+_0x3271c0+_0x2da487++,'VoiceExtensionId':_0x569b7a[_0x2cc9b7('0x1e56')]['id']}),_0x5aaab9[_0x2cc9b7('0x105d')]({'type':_0x4b5af9[_0x2cc9b7('0x19fd')][_0x2cc9b7('0x20d5')](),'app':_0x2cc9b7('0x25a8'),'appdata':_0x2cc9b7('0x8f9'),'context':_0x569b7a['inboundroute']['context'],'exten':_0x569b7a[_0x2cc9b7('0x1e56')][_0x2cc9b7('0x4c6')],'priority':_0x4b5af9[_0x2cc9b7('0xe82')][_0x2cc9b7('0x1e22')]+_0x3271c0+_0x2da487++,'VoiceExtensionId':_0x569b7a[_0x2cc9b7('0x1e56')]['id']})):(_0x5aaab9[_0x2cc9b7('0x105d')]({'type':_0x4b5af9[_0x2cc9b7('0x19fd')][_0x2cc9b7('0x20d5')](),'app':'ExecIf','appdata':_0x2cc9b7('0x16d3'),'context':_0x569b7a['inboundroute']['context'],'exten':_0x569b7a[_0x2cc9b7('0x1e56')][_0x2cc9b7('0x4c6')],'priority':_0x4b5af9[_0x2cc9b7('0xe82')]['length']+_0x3271c0+_0x2da487++,'VoiceExtensionId':_0x569b7a[_0x2cc9b7('0x1e56')]['id']}),_0x5aaab9[_0x2cc9b7('0x105d')]({'type':_0x4b5af9['type'][_0x2cc9b7('0x20d5')](),'app':_0x2cc9b7('0x25a8'),'appdata':_0x2cc9b7('0xbec'),'context':_0x569b7a['inboundroute'][_0x2cc9b7('0x1c87')],'exten':_0x569b7a[_0x2cc9b7('0x1e56')][_0x2cc9b7('0x4c6')],'priority':_0x4b5af9['intervals'][_0x2cc9b7('0x1e22')]+_0x3271c0+_0x2da487++,'VoiceExtensionId':_0x569b7a[_0x2cc9b7('0x1e56')]['id']}))));for(let _0x4a3734=0x0;_0x4a3734<_0x4b5af9[_0x2cc9b7('0xe82')][_0x2cc9b7('0x1e22')];_0x4a3734++){const _0x76924f=_0x3271c0+_0x4b5af9[_0x2cc9b7('0xe82')]['length'],_0x764745=_0x4a3734===_0x4b5af9['intervals']['length']-0x1?_0x3271c0+_0x5aaab9[_0x2cc9b7('0x1e22')]+_0x4baeef[_0x2cc9b7('0x1e22')]+0x2:_0x3271c0+_0x4a3734+0x1;_0x5aaab9[_0x2cc9b7('0x1ae')](_0x4a3734,0x0,{'type':_0x2cc9b7('0x18a2'),'app':'GotoIfTime','appdata':_0x4b5af9[_0x2cc9b7('0xe82')][_0x4a3734]+'?'+_0x569b7a['inboundroute']['context']+_0x2cc9b7('0x335')+_0x76924f+':'+_0x569b7a[_0x2cc9b7('0x1e56')][_0x2cc9b7('0x1c87')]+',${EXTEN},'+_0x764745,'exten':_0x569b7a[_0x2cc9b7('0x1e56')][_0x2cc9b7('0x4c6')],'context':_0x569b7a[_0x2cc9b7('0x1e56')][_0x2cc9b7('0x1c87')],'priority':_0x3271c0+_0x4a3734,'VoiceExtensionId':_0x569b7a[_0x2cc9b7('0x1e56')]['id']});}_0x4b5af9[_0x2cc9b7('0x2804')]=_0x5aaab9['length']?_0x36f548()['last'](_0x5aaab9)['priority']+0x1:_0x3271c0,_0x3271c0=(_0x4baeef['length']?_0x36f548()['last'](_0x4baeef)[_0x2cc9b7('0x2804')]:_0x4b5af9[_0x2cc9b7('0x2804')])+0x1,_0x31f473=_0x36f548()[_0x2cc9b7('0x20bf')](_0x31f473,_0x5aaab9,[_0x4b5af9],_0x4baeef);}_0x31f473[_0x2cc9b7('0x105d')]({'type':_0x2cc9b7('0x18a2'),'app':_0x2cc9b7('0x1b9e'),'exten':_0x569b7a[_0x2cc9b7('0x1e56')][_0x2cc9b7('0x4c6')],'context':_0x569b7a[_0x2cc9b7('0x1e56')][_0x2cc9b7('0x1c87')],'priority':_0x3271c0,'VoiceExtensionId':_0x569b7a[_0x2cc9b7('0x1e56')]['id']}),_0x4acb5f[_0x2cc9b7('0x417')]['addApplications']({'id':_0x569b7a[_0x2cc9b7('0x1e56')]['id']},_0x36f548()[_0x2cc9b7('0xd39')](_0x31f473,_0x2cc9b7('0x2804')))[_0x2cc9b7('0x1549')]['then'](function(_0x3f0418){const _0x42e991=_0x2cc9b7;_0x569b7a[_0x42e991('0xc61')][_0x42e991('0x19b2')]=_0x3f0418[_0x42e991('0x19b2')];})['catch'](function(_0x22bbf3){const _0x795498=_0x2cc9b7;console[_0x795498('0x255')](_0x22bbf3);});}function _0x1d4948(_0x5d6689){const _0x5454f8=_0x432fe7;_0x569b7a[_0x5454f8('0xc61')]=_0x5d6689||{'count':0x0,'rows':[]};}function _0x578fc5(){const _0x3e5c87=_0x432fe7;return _0x4acb5f[_0x3e5c87('0x507')]['get']({'fields':_0x3e5c87('0x17ae')})[_0x3e5c87('0x1549')][_0x3e5c87('0x11bf')](function(_0x320bdd){const _0x5ea330=_0x3e5c87;_0x569b7a[_0x5ea330('0xe82')]=_0x320bdd;})[_0x3e5c87('0x151d')](function(_0x3a3063){const _0x460014=_0x3e5c87;console[_0x460014('0x255')](_0x3a3063);});}function _0x5d4e58(){const _0xf30049=_0x432fe7;_0x569b7a[_0xf30049('0x13f')]=_0x4acb5f[_0xf30049('0x417')][_0xf30049('0xbaa')](_0x569b7a['query'],_0x1d4948)['$promise'];}function _0x1180d7(_0x33be71){const _0x578406=_0x432fe7;_0x36f548()[_0x578406('0x14a5')](_0x569b7a['inboundrouteApps'][_0x578406('0x19b2')],{'id':_0x33be71['id']}),_0x599ac1(),_0xc963b7[_0x578406('0x2693')]({'title':_0x578406('0xb44'),'msg':_0x33be71[_0x578406('0x18f5')]?_0x33be71[_0x578406('0x18f5')]+_0x578406('0x433'):''});}function _0x245ec5(_0x3b51d1){const _0x5e6a73=_0x432fe7,_0x1a395d=_0x17b6c1[_0x5e6a73('0x132b')]()[_0x5e6a73('0x134b')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20applications?')[_0x5e6a73('0x1d03')](_0x5e6a73('0x2061')+_0x569b7a[_0x5e6a73('0x1bde')][_0x5e6a73('0x1e22')]+_0x5e6a73('0xac6')+'\x20will\x20be\x20deleted.')['ariaLabel']('delete\x20applications')[_0x5e6a73('0x1e25')](_0x3b51d1)['ok']('OK')[_0x5e6a73('0x26c9')](_0x5e6a73('0x772'));_0x17b6c1[_0x5e6a73('0xb9')](_0x1a395d)['then'](function(){const _0x4a1150=_0x5e6a73;_0x569b7a[_0x4a1150('0x1bde')][_0x4a1150('0x1f88')](function(_0x201c0d){const _0x4fec6f=_0x4a1150;_0x36f548()['remove'](_0x569b7a[_0x4fec6f('0xc61')][_0x4fec6f('0x19b2')],{'id':_0x201c0d['id']});}),_0x569b7a[_0x4a1150('0x1bde')]=[],_0x599ac1();});}}const _0x3b1d91=_0xcab725;_0x256070['$inject']=['$mdDialog','$q','toasty',_0x21d0f5('0xfa8'),_0x21d0f5('0x1e56'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),_0x21d0f5('0xb25')];function _0x256070(_0xeb7365,_0x6583eb,_0x2f7faa,_0x57f68e,_0x3999ed,_0x28154a,_0x454a56,_0x443f55){const _0x17558e=_0x21d0f5,_0x2dce0a=this;_0x2dce0a[_0x17558e('0x32a')]=_0x454a56[_0x17558e('0x2428')](),_0x2dce0a[_0x17558e('0x120f')]=[],_0x2dce0a[_0x17558e('0x134b')]='VOICE.EDIT_'+(_0x57f68e['appType']||_0x57f68e['app'])[_0x17558e('0xa6f')](),_0x2dce0a[_0x17558e('0x1efd')]=angular[_0x17558e('0x6fb')](_0x57f68e),_0x2dce0a[_0x17558e('0xb25')]=_0x443f55,_0x2dce0a[_0x17558e('0x2c9')]={};if(_0x2dce0a['agi'][_0x17558e('0x13fc')])switch(_0x2dce0a[_0x17558e('0x1efd')]['appType']?_0x2dce0a[_0x17558e('0x1efd')][_0x17558e('0x27c0')][_0x17558e('0x20d5')]():_0x2dce0a[_0x17558e('0x1efd')][_0x17558e('0x18f5')][_0x17558e('0x20d5')]()){case'custom':break;case'dialogflow':{const _0x3f0aa3=_0x2dce0a['agi'][_0x17558e('0x13fc')]['split'](',');_0x2dce0a[_0x17558e('0x1efd')][_0x17558e('0xa0c')]=_0x3f0aa3[0x0],_0x2dce0a['agi'][_0x17558e('0xeff')]=_0x3f0aa3[0x1],_0x2dce0a[_0x17558e('0x1efd')][_0x17558e('0x1cbc')]=_0x3f0aa3[_0x17558e('0x1b77')](0x2,_0x3f0aa3[_0x17558e('0x1e22')])[_0x17558e('0xa04')](',');}break;case _0x17558e('0x21a8'):{const _0x3124d0=_0x2dce0a['agi'][_0x17558e('0x13fc')][_0x17558e('0xaf8')](',');_0x2dce0a[_0x17558e('0x1efd')][_0x17558e('0x20e')]=_0x3124d0[0x0],_0x2dce0a[_0x17558e('0x1efd')]['clientEmail']=_0x3124d0[0x1],_0x2dce0a['agi'][_0x17558e('0x1c6c')]=_0x3124d0[0x2],_0x2dce0a['agi'][_0x17558e('0xeff')]=_0x3124d0[0x3],_0x2dce0a['agi'][_0x17558e('0x1cbc')]=_0x3124d0[_0x17558e('0x1b77')](0x4,_0x3124d0[_0x17558e('0x1e22')])[_0x17558e('0xa04')](',');}break;case _0x17558e('0x102c'):{const _0x44183d=_0x2dce0a[_0x17558e('0x1efd')]['appdata'][_0x17558e('0xaf8')](',');_0x2dce0a[_0x17558e('0x1efd')]['accesskeyid']=_0x44183d[0x0],_0x2dce0a[_0x17558e('0x1efd')]['secretaccesskey']=_0x44183d[0x1],_0x2dce0a[_0x17558e('0x1efd')][_0x17558e('0x165a')]=_0x44183d[0x2],_0x2dce0a[_0x17558e('0x1efd')]['botname']=_0x44183d[0x3],_0x2dce0a[_0x17558e('0x1efd')][_0x17558e('0x1cbc')]=_0x44183d['slice'](0x4,_0x44183d[_0x17558e('0x1e22')])[_0x17558e('0xa04')](',');}break;case _0x17558e('0x187b'):{const _0x16afbc=_0x2dce0a[_0x17558e('0x1efd')][_0x17558e('0x13fc')][_0x17558e('0xaf8')](',');_0x2dce0a[_0x17558e('0x1efd')][_0x17558e('0x663')]=isNaN(_0x16afbc[0x0])?_0x16afbc[0x0]:parseInt(_0x16afbc[0x0],0xa),_0x2dce0a['agi'][_0x17558e('0x25ed')]=_0x16afbc[_0x17558e('0x1b77')](0x1,_0x16afbc[_0x17558e('0x1e22')])[_0x17558e('0xa04')](',');}break;case _0x17558e('0x1b86'):_0x2dce0a[_0x17558e('0x1efd')][_0x17558e('0x25ed')]=_0x2dce0a[_0x17558e('0x1efd')][_0x17558e('0x13fc')];break;case _0x17558e('0xe50'):_0x2dce0a[_0x17558e('0x1efd')][_0x17558e('0x1909')]=_0x2dce0a[_0x17558e('0x1efd')][_0x17558e('0x13fc')][_0x17558e('0xaf8')]('=')[0x0],_0x2dce0a['agi'][_0x17558e('0x10cc')]=_0x2dce0a[_0x17558e('0x1efd')][_0x17558e('0x13fc')][_0x17558e('0xaf8')]('=')[0x1];break;case _0x17558e('0x1efd'):_0x2dce0a['agi'][_0x17558e('0xef0')]=_0x2dce0a[_0x17558e('0x1efd')][_0x17558e('0x13fc')];break;default:{const _0x2895d5=_0x2dce0a['agi']['appdata'][_0x17558e('0xaf8')](',');_0x2dce0a[_0x17558e('0x1efd')][_0x17558e('0xef0')]=_0x36f548()[_0x17558e('0x1fc5')](_0x2895d5[0x0])?_0x2895d5[0x0]:isNaN(_0x2895d5[0x0])?_0x2895d5[0x0]:parseInt(_0x2895d5[0x0],0xa);}break;}else{}_0x2dce0a['agi'][_0x17558e('0x19fd')]&&_0x2dce0a[_0x17558e('0x1efd')][_0x17558e('0x19fd')][_0x17558e('0x20d5')]()===_0x17558e('0x25b6')&&_0x2dce0a[_0x17558e('0x1efd')][_0x17558e('0x27c0')][_0x17558e('0x20d5')]()==='outbounddial'&&(_0x2dce0a[_0x17558e('0x1efd')][_0x17558e('0x2137')]=_0x2dce0a[_0x17558e('0x1efd')][_0x17558e('0x1546')]?_0x2dce0a[_0x17558e('0x1efd')][_0x17558e('0x1546')]['split']('$')[0x0]:undefined,_0x2dce0a[_0x17558e('0x1efd')]['callerId']=_0x2dce0a['agi'][_0x17558e('0xc38')]?'CALLERID(all)='+_0x2dce0a[_0x17558e('0x1efd')][_0x17558e('0xc38')]:undefined);_0x2dce0a[_0x17558e('0x1051')]=_0x216666,_0x2dce0a[_0x17558e('0xc4e')]=_0x582471,_0x454a56['hasRole'](_0x17558e('0xf45'))?_0x28154a['squareProject']['get']({'fields':_0x17558e('0x721'),'sort':_0x17558e('0x1909'),'nolimit':_0x17558e('0x204c')})[_0x17558e('0x1549')]['then'](function(_0x14de09){const _0x150961=_0x17558e;_0x2dce0a['projects']=_0x14de09[_0x150961('0x19b2')]||[];})['catch'](function(_0x5e09cb){const _0x4d5b12=_0x17558e;_0x2f7faa[_0x4d5b12('0x255')]({'title':_0x5e09cb['status']?_0x4d5b12('0x574')+_0x5e09cb[_0x4d5b12('0xff9')]+_0x4d5b12('0xb0b')+_0x5e09cb[_0x4d5b12('0x212f')]:'SYSTEM:GET_PROJECTS','msg':_0x5e09cb[_0x4d5b12('0x4e8')]?JSON[_0x4d5b12('0x3e')](_0x5e09cb['data']):_0x5e09cb[_0x4d5b12('0xaab')]()});}):_0x28154a['squareProject'][_0x17558e('0xbaa')]({'fields':_0x17558e('0x721'),'sort':_0x17558e('0x1909'),'nolimit':_0x17558e('0x204c')})['$promise']['then'](function(_0x5bf347){const _0x1f772d=_0x17558e;_0x2dce0a['projects']=_0x5bf347[_0x1f772d('0x19b2')]||[];})[_0x17558e('0x11bf')](function(){const _0x1d71f9=_0x17558e;return _0x28154a[_0x1d71f9('0x1d63')][_0x1d71f9('0xbaa')]({'userProfileId':_0x2dce0a[_0x1d71f9('0x32a')][_0x1d71f9('0x781')],'sectionId':0x44f})[_0x1d71f9('0x1549')];})[_0x17558e('0x11bf')](function(_0x4f51cb){const _0x7f631f=_0x17558e,_0x549b55=_0x4f51cb&&_0x4f51cb[_0x7f631f('0x19b2')]?_0x4f51cb[_0x7f631f('0x19b2')][0x0]:null;if(!_0x549b55){const _0x23e02b=[];let _0x4fa1c9=null;_0x2dce0a[_0x7f631f('0x1efd')]&&(_0x4fa1c9=_0x36f548()['find'](_0x2dce0a[_0x7f631f('0xa62')],{'name':_0x2dce0a[_0x7f631f('0x1efd')]['project']}));for(let _0x168450=0x0;_0x168450<_0x2dce0a[_0x7f631f('0xa62')][_0x7f631f('0x1e22')];_0x168450++){_0x4fa1c9&&_0x2dce0a[_0x7f631f('0xa62')][_0x168450]['id']===_0x4fa1c9['id']&&(_0x2dce0a[_0x7f631f('0xa62')][_0x168450][_0x7f631f('0x254a')]=![],_0x23e02b[_0x7f631f('0x105d')](_0x2dce0a[_0x7f631f('0xa62')][_0x168450]));}_0x2dce0a[_0x7f631f('0xa62')]=_0x23e02b;}else{if(!_0x549b55[_0x7f631f('0xf11')])return _0x28154a['userProfileResource'][_0x7f631f('0xbaa')]({'sectionId':_0x549b55['id']})[_0x7f631f('0x1549')]['then'](function(_0x4fc38f){const _0x286cbb=_0x7f631f,_0x173aab=_0x36f548()['map'](_0x4fc38f[_0x286cbb('0x19b2')],function(_0x49134b){const _0x199133=_0x286cbb;return _0x36f548()[_0x199133('0x1ad4')](_0x2dce0a[_0x199133('0xa62')],{'id':_0x49134b[_0x199133('0x15a5')]});});let _0x4d2507=null;_0x2dce0a['agi']&&(_0x4d2507=_0x36f548()[_0x286cbb('0x1ad4')](_0x2dce0a[_0x286cbb('0xa62')],{'name':_0x2dce0a[_0x286cbb('0x1efd')][_0x286cbb('0xef0')]}));if(_0x4d2507&&!_0x36f548()[_0x286cbb('0x1cb3')](_0x173aab,['id',_0x4d2507['id']])){const _0x44b219=_0x36f548()[_0x286cbb('0x1ad4')](_0x2dce0a[_0x286cbb('0xa62')],{'id':_0x4d2507['id']});_0x44b219['canSelect']=![],_0x173aab[_0x286cbb('0x105d')](_0x44b219);}_0x2dce0a[_0x286cbb('0xa62')]=_0x173aab;});}})['catch'](function(_0x3af92f){const _0x5885b5=_0x17558e;_0x2f7faa[_0x5885b5('0x255')]({'title':_0x3af92f['status']?_0x5885b5('0x574')+_0x3af92f[_0x5885b5('0xff9')]+_0x5885b5('0xb0b')+_0x3af92f[_0x5885b5('0x212f')]:_0x5885b5('0x1b27'),'msg':_0x3af92f[_0x5885b5('0x4e8')]?JSON['stringify'](_0x3af92f[_0x5885b5('0x4e8')]):_0x3af92f[_0x5885b5('0xaab')]()});});function _0x216666(){const _0x224680=_0x17558e;_0x2dce0a[_0x224680('0x120f')]=[];const _0x18e5a3=[];_0x2dce0a[_0x224680('0x1efd')][_0x224680('0x19fd')]&&_0x2dce0a[_0x224680('0x1efd')][_0x224680('0x19fd')][_0x224680('0x20d5')]()===_0x224680('0x25b6')&&_0x2dce0a['agi'][_0x224680('0x27c0')]==='outboundDial'&&(_0x2dce0a['agi'][_0x224680('0x1546')]=_0x3999ed[_0x224680('0x388')]?(_0x2dce0a[_0x224680('0x1efd')][_0x224680('0x2137')]||'')+_0x224680('0x2100')+_0x3999ed[_0x224680('0x388')]+'}':(_0x2dce0a[_0x224680('0x1efd')][_0x224680('0x2137')]||'')+_0x224680('0x1f76'),_0x3999ed[_0x224680('0x897')]!=='none'?_0x2dce0a[_0x224680('0x1efd')]['options'][_0x224680('0x203c')](_0x224680('0x22c9'))<0x0&&(_0x2dce0a[_0x224680('0x1efd')][_0x224680('0x249a')]+=_0x224680('0x22c9')):_0x2dce0a['agi'][_0x224680('0x249a')]=_0x2dce0a[_0x224680('0x1efd')][_0x224680('0x249a')]['replace']('U(xcally-mixmonitor-context)',''));if(_0x2dce0a['agi']['appType']&&_0x2dce0a[_0x224680('0x1efd')]['appType']===_0x224680('0xa8d')){}else switch((_0x2dce0a[_0x224680('0x1efd')]['app']||_0x2dce0a[_0x224680('0x1efd')][_0x224680('0x27c0')])[_0x224680('0x20d5')]()){case _0x224680('0xe50'):_0x2dce0a['agi']['appdata']=_0x2dce0a['agi']['name']+'='+_0x2dce0a[_0x224680('0x1efd')][_0x224680('0x10cc')];break;case _0x224680('0xa8d'):break;default:_0x18e5a3[0x0]=_0x2dce0a[_0x224680('0x1efd')][_0x224680('0xef0')],_0x2dce0a[_0x224680('0x1efd')][_0x224680('0x13fc')]=_0x18e5a3[_0x224680('0xa04')](',');}_0x582471(_0x2dce0a['agi']);}function _0x582471(_0x13850b){const _0x1d3672=_0x17558e;_0xeb7365[_0x1d3672('0x237e')](_0x13850b);}}const _0x3752b9=_0x256070;_0xebb424['$inject']=['$mdDialog','$q',_0x21d0f5('0x142d'),_0x21d0f5('0xfa8'),_0x21d0f5('0x1e56'),_0x21d0f5('0x12a5'),'Auth',_0x21d0f5('0xb25')];function _0xebb424(_0x39f12d,_0x532f79,_0x13898f,_0x4658b9,_0x13bc7a,_0xe22843,_0x55de0b,_0xa3ecda){const _0xa5bf1c=_0x21d0f5,_0x2d5015=this;_0x2d5015['currentUser']=_0x55de0b['getCurrentUser'](),_0x2d5015[_0xa5bf1c('0x120f')]=[],_0x2d5015[_0xa5bf1c('0x134b')]=_0xa5bf1c('0x2306')+(_0x4658b9['appType']||_0x4658b9[_0xa5bf1c('0x18f5')])[_0xa5bf1c('0xa6f')](),_0x2d5015[_0xa5bf1c('0xa8d')]=angular[_0xa5bf1c('0x6fb')](_0x4658b9),_0x2d5015[_0xa5bf1c('0xb25')]=_0xa3ecda,_0x2d5015[_0xa5bf1c('0x2c9')]={};if(_0x2d5015[_0xa5bf1c('0xa8d')][_0xa5bf1c('0x13fc')])switch(_0x2d5015[_0xa5bf1c('0xa8d')][_0xa5bf1c('0x27c0')]?_0x2d5015['custom']['appType'][_0xa5bf1c('0x20d5')]():_0x2d5015[_0xa5bf1c('0xa8d')][_0xa5bf1c('0x18f5')][_0xa5bf1c('0x20d5')]()){case'custom':break;case _0xa5bf1c('0x185e'):{const _0xf2e82c=_0x2d5015['custom'][_0xa5bf1c('0x13fc')][_0xa5bf1c('0xaf8')](',');_0x2d5015[_0xa5bf1c('0xa8d')][_0xa5bf1c('0xa0c')]=_0xf2e82c[0x0],_0x2d5015['custom'][_0xa5bf1c('0xeff')]=_0xf2e82c[0x1],_0x2d5015['custom'][_0xa5bf1c('0x1cbc')]=_0xf2e82c['slice'](0x2,_0xf2e82c[_0xa5bf1c('0x1e22')])[_0xa5bf1c('0xa04')](',');}break;case _0xa5bf1c('0x21a8'):{const _0x12cde5=_0x2d5015[_0xa5bf1c('0xa8d')][_0xa5bf1c('0x13fc')][_0xa5bf1c('0xaf8')](',');_0x2d5015[_0xa5bf1c('0xa8d')][_0xa5bf1c('0x20e')]=_0x12cde5[0x0],_0x2d5015[_0xa5bf1c('0xa8d')]['clientEmail']=_0x12cde5[0x1],_0x2d5015[_0xa5bf1c('0xa8d')][_0xa5bf1c('0x1c6c')]=_0x12cde5[0x2],_0x2d5015[_0xa5bf1c('0xa8d')][_0xa5bf1c('0xeff')]=_0x12cde5[0x3],_0x2d5015[_0xa5bf1c('0xa8d')]['welcomemessage']=_0x12cde5[_0xa5bf1c('0x1b77')](0x4,_0x12cde5[_0xa5bf1c('0x1e22')])['join'](',');}break;case _0xa5bf1c('0x102c'):{const _0x2340d3=_0x2d5015[_0xa5bf1c('0xa8d')][_0xa5bf1c('0x13fc')][_0xa5bf1c('0xaf8')](',');_0x2d5015['custom'][_0xa5bf1c('0x1a82')]=_0x2340d3[0x0],_0x2d5015['custom']['secretaccesskey']=_0x2340d3[0x1],_0x2d5015[_0xa5bf1c('0xa8d')][_0xa5bf1c('0x165a')]=_0x2340d3[0x2],_0x2d5015[_0xa5bf1c('0xa8d')]['botname']=_0x2340d3[0x3],_0x2d5015['custom'][_0xa5bf1c('0x1cbc')]=_0x2340d3[_0xa5bf1c('0x1b77')](0x4,_0x2340d3[_0xa5bf1c('0x1e22')])[_0xa5bf1c('0xa04')](',');}break;case _0xa5bf1c('0x187b'):{const _0x20e11a=_0x2d5015[_0xa5bf1c('0xa8d')]['appdata'][_0xa5bf1c('0xaf8')](',');_0x2d5015[_0xa5bf1c('0xa8d')][_0xa5bf1c('0x663')]=isNaN(_0x20e11a[0x0])?_0x20e11a[0x0]:parseInt(_0x20e11a[0x0],0xa),_0x2d5015[_0xa5bf1c('0xa8d')][_0xa5bf1c('0x25ed')]=_0x20e11a[_0xa5bf1c('0x1b77')](0x1,_0x20e11a[_0xa5bf1c('0x1e22')])[_0xa5bf1c('0xa04')](',');}break;case _0xa5bf1c('0x1b86'):_0x2d5015['custom']['text']=_0x2d5015[_0xa5bf1c('0xa8d')]['appdata'];break;case _0xa5bf1c('0xe50'):_0x2d5015[_0xa5bf1c('0xa8d')][_0xa5bf1c('0x1909')]=_0x2d5015[_0xa5bf1c('0xa8d')][_0xa5bf1c('0x13fc')][_0xa5bf1c('0xaf8')]('=')[0x0],_0x2d5015[_0xa5bf1c('0xa8d')][_0xa5bf1c('0x10cc')]=_0x2d5015[_0xa5bf1c('0xa8d')][_0xa5bf1c('0x13fc')]['split']('=')[0x1];break;case _0xa5bf1c('0x1efd'):_0x2d5015['custom']['project']=_0x2d5015[_0xa5bf1c('0xa8d')][_0xa5bf1c('0x13fc')];break;default:{const _0x546a5c=_0x2d5015[_0xa5bf1c('0xa8d')][_0xa5bf1c('0x13fc')]['split'](',');_0x2d5015['custom'][_0xa5bf1c('0x18f5')]=_0x36f548()[_0xa5bf1c('0x1fc5')](_0x546a5c[0x0])?_0x546a5c[0x0]:isNaN(_0x546a5c[0x0])?_0x546a5c[0x0]:parseInt(_0x546a5c[0x0],0xa),_0x2d5015[_0xa5bf1c('0xa8d')]['appdata']=_0x36f548()[_0xa5bf1c('0x1fc5')](_0x546a5c[0x1])?_0x546a5c[0x1]:isNaN(_0x546a5c[0x1])?_0x546a5c[0x1]:parseInt(_0x546a5c[0x1],0xa);}break;}else{}_0x2d5015[_0xa5bf1c('0xa8d')]['type']&&_0x2d5015['custom'][_0xa5bf1c('0x19fd')][_0xa5bf1c('0x20d5')]()===_0xa5bf1c('0x25b6')&&_0x2d5015['custom'][_0xa5bf1c('0x27c0')][_0xa5bf1c('0x20d5')]()===_0xa5bf1c('0x1a64')&&(_0x2d5015[_0xa5bf1c('0xa8d')][_0xa5bf1c('0x2137')]=_0x2d5015[_0xa5bf1c('0xa8d')][_0xa5bf1c('0x1546')]?_0x2d5015[_0xa5bf1c('0xa8d')]['phone'][_0xa5bf1c('0xaf8')]('$')[0x0]:undefined,_0x2d5015['custom'][_0xa5bf1c('0x7d0')]=_0x2d5015[_0xa5bf1c('0xa8d')][_0xa5bf1c('0xc38')]?'CALLERID(all)='+_0x2d5015[_0xa5bf1c('0xa8d')][_0xa5bf1c('0xc38')]:undefined);_0x2d5015[_0xa5bf1c('0x1051')]=_0x2a45f2,_0x2d5015['closeDialog']=_0x485d54;function _0x2a45f2(){const _0x3121c2=_0xa5bf1c;_0x2d5015[_0x3121c2('0x120f')]=[];const _0x30adb1=[];_0x2d5015[_0x3121c2('0xa8d')]['type']&&_0x2d5015[_0x3121c2('0xa8d')][_0x3121c2('0x19fd')]['toLowerCase']()===_0x3121c2('0x25b6')&&_0x2d5015['custom']['appType']===_0x3121c2('0x1bf6')&&(_0x2d5015[_0x3121c2('0xa8d')]['phone']=_0x13bc7a[_0x3121c2('0x388')]?(_0x2d5015[_0x3121c2('0xa8d')][_0x3121c2('0x2137')]||'')+_0x3121c2('0x2100')+_0x13bc7a[_0x3121c2('0x388')]+'}':(_0x2d5015[_0x3121c2('0xa8d')][_0x3121c2('0x2137')]||'')+_0x3121c2('0x1f76'),_0x13bc7a[_0x3121c2('0x897')]!=='none'?_0x2d5015[_0x3121c2('0xa8d')][_0x3121c2('0x249a')][_0x3121c2('0x203c')](_0x3121c2('0x22c9'))<0x0&&(_0x2d5015[_0x3121c2('0xa8d')][_0x3121c2('0x249a')]+='U(xcally-mixmonitor-context)'):_0x2d5015[_0x3121c2('0xa8d')][_0x3121c2('0x249a')]=_0x2d5015[_0x3121c2('0xa8d')][_0x3121c2('0x249a')]['replace']('U(xcally-mixmonitor-context)',''));if(_0x2d5015[_0x3121c2('0xa8d')][_0x3121c2('0x27c0')]&&_0x2d5015[_0x3121c2('0xa8d')][_0x3121c2('0x27c0')]==='custom'){}else switch((_0x2d5015[_0x3121c2('0xa8d')][_0x3121c2('0x18f5')]||_0x2d5015[_0x3121c2('0xa8d')][_0x3121c2('0x27c0')])[_0x3121c2('0x20d5')]()){case _0x3121c2('0xe50'):_0x2d5015[_0x3121c2('0xa8d')][_0x3121c2('0x13fc')]=_0x2d5015[_0x3121c2('0xa8d')][_0x3121c2('0x1909')]+'='+_0x2d5015[_0x3121c2('0xa8d')][_0x3121c2('0x10cc')];break;case _0x3121c2('0xa8d'):break;default:_0x30adb1[0x0]=_0x2d5015[_0x3121c2('0xa8d')]['app'],_0x30adb1[0x1]=_0x2d5015[_0x3121c2('0xa8d')][_0x3121c2('0x13fc')],_0x2d5015[_0x3121c2('0xa8d')]['appdata']=_0x30adb1[_0x3121c2('0xa04')](',');}_0x485d54(_0x2d5015[_0x3121c2('0xa8d')]);}function _0x485d54(_0x449dbc){const _0x8caaf6=_0xa5bf1c;_0x39f12d[_0x8caaf6('0x237e')](_0x449dbc);}}const _0x290e70=_0xebb424;_0x101a03[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1ca2'),'$q','toasty',_0x21d0f5('0xfa8'),_0x21d0f5('0x1e56'),_0x21d0f5('0x12a5'),'Auth',_0x21d0f5('0xb25')];function _0x101a03(_0x301227,_0x4bd62e,_0x49263a,_0x4db927,_0x349225,_0x14686b,_0x30d884,_0x5aefdc){const _0x50d30e=_0x21d0f5,_0x34f780=this;_0x34f780[_0x50d30e('0x32a')]=_0x30d884[_0x50d30e('0x2428')](),_0x34f780[_0x50d30e('0x120f')]=[],_0x34f780[_0x50d30e('0x134b')]='VOICE.EDIT_'+(_0x4db927[_0x50d30e('0x27c0')]||_0x4db927[_0x50d30e('0x18f5')])[_0x50d30e('0xa6f')](),_0x34f780['dial']=angular[_0x50d30e('0x6fb')](_0x4db927),_0x34f780[_0x50d30e('0xb25')]=_0x5aefdc,_0x34f780['hasModulePermissions']={};if(_0x34f780[_0x50d30e('0x1b40')][_0x50d30e('0x13fc')])switch(_0x34f780['dial'][_0x50d30e('0x27c0')]?_0x34f780[_0x50d30e('0x1b40')][_0x50d30e('0x27c0')][_0x50d30e('0x20d5')]():_0x34f780[_0x50d30e('0x1b40')][_0x50d30e('0x18f5')][_0x50d30e('0x20d5')]()){case _0x50d30e('0xa8d'):break;case _0x50d30e('0x185e'):{const _0x1bdbdc=_0x34f780[_0x50d30e('0x1b40')][_0x50d30e('0x13fc')][_0x50d30e('0xaf8')](',');_0x34f780['dial'][_0x50d30e('0xa0c')]=_0x1bdbdc[0x0],_0x34f780[_0x50d30e('0x1b40')][_0x50d30e('0xeff')]=_0x1bdbdc[0x1],_0x34f780[_0x50d30e('0x1b40')][_0x50d30e('0x1cbc')]=_0x1bdbdc[_0x50d30e('0x1b77')](0x2,_0x1bdbdc['length'])[_0x50d30e('0xa04')](',');}break;case _0x50d30e('0x21a8'):{const _0x516b24=_0x34f780[_0x50d30e('0x1b40')][_0x50d30e('0x13fc')][_0x50d30e('0xaf8')](',');_0x34f780[_0x50d30e('0x1b40')][_0x50d30e('0x20e')]=_0x516b24[0x0],_0x34f780['dial']['clientEmail']=_0x516b24[0x1],_0x34f780[_0x50d30e('0x1b40')][_0x50d30e('0x1c6c')]=_0x516b24[0x2],_0x34f780[_0x50d30e('0x1b40')]['language']=_0x516b24[0x3],_0x34f780[_0x50d30e('0x1b40')]['welcomemessage']=_0x516b24[_0x50d30e('0x1b77')](0x4,_0x516b24[_0x50d30e('0x1e22')])[_0x50d30e('0xa04')](',');}break;case _0x50d30e('0x102c'):{const _0x2d146d=_0x34f780['dial'][_0x50d30e('0x13fc')][_0x50d30e('0xaf8')](',');_0x34f780[_0x50d30e('0x1b40')][_0x50d30e('0x1a82')]=_0x2d146d[0x0],_0x34f780['dial'][_0x50d30e('0x1422')]=_0x2d146d[0x1],_0x34f780[_0x50d30e('0x1b40')][_0x50d30e('0x165a')]=_0x2d146d[0x2],_0x34f780[_0x50d30e('0x1b40')]['botname']=_0x2d146d[0x3],_0x34f780[_0x50d30e('0x1b40')][_0x50d30e('0x1cbc')]=_0x2d146d['slice'](0x4,_0x2d146d[_0x50d30e('0x1e22')])[_0x50d30e('0xa04')](',');}break;case _0x50d30e('0x187b'):{const _0x5e8fd7=_0x34f780['dial'][_0x50d30e('0x13fc')][_0x50d30e('0xaf8')](',');_0x34f780[_0x50d30e('0x1b40')][_0x50d30e('0x663')]=isNaN(_0x5e8fd7[0x0])?_0x5e8fd7[0x0]:parseInt(_0x5e8fd7[0x0],0xa),_0x34f780[_0x50d30e('0x1b40')][_0x50d30e('0x25ed')]=_0x5e8fd7[_0x50d30e('0x1b77')](0x1,_0x5e8fd7[_0x50d30e('0x1e22')])[_0x50d30e('0xa04')](',');}break;case _0x50d30e('0x1b86'):_0x34f780[_0x50d30e('0x1b40')][_0x50d30e('0x25ed')]=_0x34f780[_0x50d30e('0x1b40')]['appdata'];break;case'set':_0x34f780[_0x50d30e('0x1b40')][_0x50d30e('0x1909')]=_0x34f780[_0x50d30e('0x1b40')][_0x50d30e('0x13fc')][_0x50d30e('0xaf8')]('=')[0x0],_0x34f780[_0x50d30e('0x1b40')][_0x50d30e('0x10cc')]=_0x34f780[_0x50d30e('0x1b40')]['appdata']['split']('=')[0x1];break;case _0x50d30e('0x1efd'):_0x34f780[_0x50d30e('0x1b40')][_0x50d30e('0xef0')]=_0x34f780['dial']['appdata'];break;default:{const _0x583107=_0x34f780[_0x50d30e('0x1b40')][_0x50d30e('0x13fc')][_0x50d30e('0xaf8')](',');_0x34f780['dial'][_0x50d30e('0xae7')]=_0x36f548()[_0x50d30e('0x1fc5')](_0x583107[0x0])?_0x583107[0x0]:isNaN(_0x583107[0x0])?_0x583107[0x0]:parseInt(_0x583107[0x0],0xa),_0x34f780[_0x50d30e('0x1b40')][_0x50d30e('0xfbe')]=_0x36f548()[_0x50d30e('0x1fc5')](_0x583107[0x1])?_0x583107[0x1]:isNaN(_0x583107[0x1])?_0x583107[0x1]:parseInt(_0x583107[0x1],0xa),_0x34f780[_0x50d30e('0x1b40')]['options']=_0x36f548()['isEmpty'](_0x583107[0x2])?_0x583107[0x2]:isNaN(_0x583107[0x2])?_0x583107[0x2]:parseInt(_0x583107[0x2],0xa),_0x34f780[_0x50d30e('0x1b40')]['url']=_0x36f548()[_0x50d30e('0x1fc5')](_0x583107[0x3])?_0x583107[0x3]:isNaN(_0x583107[0x3])?_0x583107[0x3]:parseInt(_0x583107[0x3],0xa);}break;}else{}_0x34f780[_0x50d30e('0x1b40')][_0x50d30e('0x19fd')]&&_0x34f780[_0x50d30e('0x1b40')][_0x50d30e('0x19fd')]['toLowerCase']()===_0x50d30e('0x25b6')&&_0x34f780[_0x50d30e('0x1b40')][_0x50d30e('0x27c0')][_0x50d30e('0x20d5')]()===_0x50d30e('0x1a64')&&(_0x34f780[_0x50d30e('0x1b40')][_0x50d30e('0x2137')]=_0x34f780[_0x50d30e('0x1b40')][_0x50d30e('0x1546')]?_0x34f780[_0x50d30e('0x1b40')][_0x50d30e('0x1546')]['split']('$')[0x0]:undefined,_0x34f780[_0x50d30e('0x1b40')][_0x50d30e('0x7d0')]=_0x34f780[_0x50d30e('0x1b40')][_0x50d30e('0xc38')]?'CALLERID(all)='+_0x34f780['dial'][_0x50d30e('0xc38')]:undefined);_0x34f780[_0x50d30e('0x1051')]=_0x201f2e,_0x34f780[_0x50d30e('0xc4e')]=_0x1ccd19;function _0x201f2e(){const _0x258260=_0x50d30e;_0x34f780[_0x258260('0x120f')]=[];const _0x42e57f=[];_0x34f780[_0x258260('0x1b40')]['type']&&_0x34f780[_0x258260('0x1b40')]['type'][_0x258260('0x20d5')]()===_0x258260('0x25b6')&&_0x34f780[_0x258260('0x1b40')][_0x258260('0x27c0')]==='outboundDial'&&(_0x34f780[_0x258260('0x1b40')][_0x258260('0x1546')]=_0x349225['cutdigits']?(_0x34f780['dial']['prefix']||'')+_0x258260('0x2100')+_0x349225[_0x258260('0x388')]+'}':(_0x34f780[_0x258260('0x1b40')][_0x258260('0x2137')]||'')+_0x258260('0x1f76'),_0x349225[_0x258260('0x897')]!==_0x258260('0x3e6')?_0x34f780[_0x258260('0x1b40')][_0x258260('0x249a')][_0x258260('0x203c')](_0x258260('0x22c9'))<0x0&&(_0x34f780[_0x258260('0x1b40')][_0x258260('0x249a')]+=_0x258260('0x22c9')):_0x34f780['dial']['options']=_0x34f780[_0x258260('0x1b40')][_0x258260('0x249a')][_0x258260('0x814')](_0x258260('0x22c9'),''));if(_0x34f780[_0x258260('0x1b40')][_0x258260('0x27c0')]&&_0x34f780[_0x258260('0x1b40')][_0x258260('0x27c0')]===_0x258260('0xa8d')){}else switch((_0x34f780['dial'][_0x258260('0x18f5')]||_0x34f780[_0x258260('0x1b40')][_0x258260('0x27c0')])['toLowerCase']()){case _0x258260('0xe50'):_0x34f780[_0x258260('0x1b40')][_0x258260('0x13fc')]=_0x34f780[_0x258260('0x1b40')][_0x258260('0x1909')]+'='+_0x34f780[_0x258260('0x1b40')][_0x258260('0x10cc')];break;case'custom':break;default:_0x42e57f[0x0]=_0x34f780[_0x258260('0x1b40')][_0x258260('0xae7')],_0x42e57f[0x1]=_0x34f780[_0x258260('0x1b40')][_0x258260('0xfbe')],_0x42e57f[0x2]=_0x34f780['dial'][_0x258260('0x249a')],_0x42e57f[0x3]=_0x34f780[_0x258260('0x1b40')][_0x258260('0x259e')],_0x34f780[_0x258260('0x1b40')][_0x258260('0x13fc')]=_0x42e57f['join'](',');}_0x1ccd19(_0x34f780[_0x258260('0x1b40')]);}function _0x1ccd19(_0x54050b){const _0x3f481e=_0x50d30e;_0x301227[_0x3f481e('0x237e')](_0x54050b);}}const _0x3b00d3=_0x101a03;_0x35c683['$inject']=['$mdDialog','$q',_0x21d0f5('0x142d'),_0x21d0f5('0xfa8'),'inboundroute','api',_0x21d0f5('0x1150'),_0x21d0f5('0xb25')];function _0x35c683(_0x239934,_0x134b95,_0x2de274,_0x397934,_0x1094a5,_0x48325a,_0x3626b6,_0x4105ae){const _0x4c5f34=_0x21d0f5,_0x94a7f4=this;_0x94a7f4[_0x4c5f34('0x32a')]=_0x3626b6[_0x4c5f34('0x2428')](),_0x94a7f4['errors']=[],_0x94a7f4[_0x4c5f34('0x134b')]='VOICE.EDIT_'+(_0x397934[_0x4c5f34('0x27c0')]||_0x397934[_0x4c5f34('0x18f5')])[_0x4c5f34('0xa6f')](),_0x94a7f4[_0x4c5f34('0x67a')]=angular[_0x4c5f34('0x6fb')](_0x397934),_0x94a7f4[_0x4c5f34('0xb25')]=_0x4105ae,_0x94a7f4[_0x4c5f34('0x2c9')]={};if(_0x94a7f4[_0x4c5f34('0x67a')][_0x4c5f34('0x13fc')])switch(_0x94a7f4[_0x4c5f34('0x67a')][_0x4c5f34('0x27c0')]?_0x94a7f4[_0x4c5f34('0x67a')][_0x4c5f34('0x27c0')][_0x4c5f34('0x20d5')]():_0x94a7f4[_0x4c5f34('0x67a')][_0x4c5f34('0x18f5')][_0x4c5f34('0x20d5')]()){case _0x4c5f34('0xa8d'):break;case'dialogflow':{const _0xac6ad7=_0x94a7f4['externaldial']['appdata']['split'](',');_0x94a7f4[_0x4c5f34('0x67a')][_0x4c5f34('0xa0c')]=_0xac6ad7[0x0],_0x94a7f4[_0x4c5f34('0x67a')]['language']=_0xac6ad7[0x1],_0x94a7f4[_0x4c5f34('0x67a')][_0x4c5f34('0x1cbc')]=_0xac6ad7[_0x4c5f34('0x1b77')](0x2,_0xac6ad7[_0x4c5f34('0x1e22')])['join'](',');}break;case _0x4c5f34('0x21a8'):{const _0x2a7480=_0x94a7f4[_0x4c5f34('0x67a')][_0x4c5f34('0x13fc')][_0x4c5f34('0xaf8')](',');_0x94a7f4[_0x4c5f34('0x67a')][_0x4c5f34('0x20e')]=_0x2a7480[0x0],_0x94a7f4[_0x4c5f34('0x67a')][_0x4c5f34('0x1f91')]=_0x2a7480[0x1],_0x94a7f4['externaldial']['privateKey']=_0x2a7480[0x2],_0x94a7f4[_0x4c5f34('0x67a')][_0x4c5f34('0xeff')]=_0x2a7480[0x3],_0x94a7f4['externaldial']['welcomemessage']=_0x2a7480['slice'](0x4,_0x2a7480['length'])[_0x4c5f34('0xa04')](',');}break;case _0x4c5f34('0x102c'):{const _0x3214ea=_0x94a7f4[_0x4c5f34('0x67a')][_0x4c5f34('0x13fc')][_0x4c5f34('0xaf8')](',');_0x94a7f4['externaldial'][_0x4c5f34('0x1a82')]=_0x3214ea[0x0],_0x94a7f4[_0x4c5f34('0x67a')][_0x4c5f34('0x1422')]=_0x3214ea[0x1],_0x94a7f4[_0x4c5f34('0x67a')]['lexregion']=_0x3214ea[0x2],_0x94a7f4['externaldial'][_0x4c5f34('0x1e8f')]=_0x3214ea[0x3],_0x94a7f4['externaldial'][_0x4c5f34('0x1cbc')]=_0x3214ea[_0x4c5f34('0x1b77')](0x4,_0x3214ea[_0x4c5f34('0x1e22')])[_0x4c5f34('0xa04')](',');}break;case _0x4c5f34('0x187b'):{const _0x58c864=_0x94a7f4[_0x4c5f34('0x67a')][_0x4c5f34('0x13fc')]['split'](',');_0x94a7f4[_0x4c5f34('0x67a')][_0x4c5f34('0x663')]=isNaN(_0x58c864[0x0])?_0x58c864[0x0]:parseInt(_0x58c864[0x0],0xa),_0x94a7f4[_0x4c5f34('0x67a')]['text']=_0x58c864[_0x4c5f34('0x1b77')](0x1,_0x58c864['length'])[_0x4c5f34('0xa04')](',');}break;case _0x4c5f34('0x1b86'):_0x94a7f4['externaldial'][_0x4c5f34('0x25ed')]=_0x94a7f4['externaldial'][_0x4c5f34('0x13fc')];break;case _0x4c5f34('0xe50'):_0x94a7f4[_0x4c5f34('0x67a')][_0x4c5f34('0x1909')]=_0x94a7f4['externaldial'][_0x4c5f34('0x13fc')][_0x4c5f34('0xaf8')]('=')[0x0],_0x94a7f4['externaldial'][_0x4c5f34('0x10cc')]=_0x94a7f4['externaldial'][_0x4c5f34('0x13fc')][_0x4c5f34('0xaf8')]('=')[0x1];break;case'agi':_0x94a7f4[_0x4c5f34('0x67a')][_0x4c5f34('0xef0')]=_0x94a7f4[_0x4c5f34('0x67a')]['appdata'];break;default:{const _0x5d852b=_0x94a7f4[_0x4c5f34('0x67a')][_0x4c5f34('0x13fc')]['split'](',');_0x94a7f4['externaldial'][_0x4c5f34('0x264e')]=_0x5d852b[0x0][_0x4c5f34('0xaf8')]('/')[0x1],_0x94a7f4[_0x4c5f34('0x67a')][_0x4c5f34('0x1546')]=_0x5d852b[0x0][_0x4c5f34('0xaf8')]('/')[0x2],_0x94a7f4[_0x4c5f34('0x67a')][_0x4c5f34('0xfbe')]=_0x36f548()[_0x4c5f34('0x1fc5')](_0x5d852b[0x1])?_0x5d852b[0x1]:isNaN(_0x5d852b[0x1])?_0x5d852b[0x1]:parseInt(_0x5d852b[0x1],0xa),_0x94a7f4[_0x4c5f34('0x67a')][_0x4c5f34('0x249a')]=_0x36f548()[_0x4c5f34('0x1fc5')](_0x5d852b[0x2])?_0x5d852b[0x2]:isNaN(_0x5d852b[0x2])?_0x5d852b[0x2]:parseInt(_0x5d852b[0x2],0xa),_0x94a7f4['externaldial'][_0x4c5f34('0x259e')]=_0x36f548()[_0x4c5f34('0x1fc5')](_0x5d852b[0x3])?_0x5d852b[0x3]:isNaN(_0x5d852b[0x3])?_0x5d852b[0x3]:parseInt(_0x5d852b[0x3],0xa);}break;}else{}_0x94a7f4[_0x4c5f34('0x67a')][_0x4c5f34('0x19fd')]&&_0x94a7f4[_0x4c5f34('0x67a')][_0x4c5f34('0x19fd')][_0x4c5f34('0x20d5')]()===_0x4c5f34('0x25b6')&&_0x94a7f4[_0x4c5f34('0x67a')][_0x4c5f34('0x27c0')][_0x4c5f34('0x20d5')]()==='outbounddial'&&(_0x94a7f4[_0x4c5f34('0x67a')]['prefix']=_0x94a7f4[_0x4c5f34('0x67a')]['phone']?_0x94a7f4[_0x4c5f34('0x67a')][_0x4c5f34('0x1546')][_0x4c5f34('0xaf8')]('$')[0x0]:undefined,_0x94a7f4['externaldial']['callerId']=_0x94a7f4[_0x4c5f34('0x67a')][_0x4c5f34('0xc38')]?_0x4c5f34('0x83a')+_0x94a7f4[_0x4c5f34('0x67a')][_0x4c5f34('0xc38')]:undefined);_0x94a7f4[_0x4c5f34('0x1051')]=_0x357434,_0x94a7f4[_0x4c5f34('0xc4e')]=_0x596a8c,_0x3626b6[_0x4c5f34('0x4ee')](_0x4c5f34('0xf45'))?_0x48325a[_0x4c5f34('0x264e')]['get']({'fields':_0x4c5f34('0x721'),'sort':_0x4c5f34('0x1909'),'nolimit':'true'})[_0x4c5f34('0x1549')][_0x4c5f34('0x11bf')](function(_0x429ccd){const _0x176320=_0x4c5f34;_0x94a7f4[_0x176320('0x1b24')]=_0x429ccd['rows']||[];})[_0x4c5f34('0x151d')](function(_0x1b7b9e){const _0x56a384=_0x4c5f34;_0x2de274['error']({'title':_0x1b7b9e[_0x56a384('0xff9')]?_0x56a384('0x574')+_0x1b7b9e[_0x56a384('0xff9')]+_0x56a384('0xb0b')+_0x1b7b9e[_0x56a384('0x212f')]:_0x56a384('0x35f'),'msg':_0x1b7b9e[_0x56a384('0x4e8')]?JSON['stringify'](_0x1b7b9e['data']):_0x1b7b9e[_0x56a384('0xaab')]()});}):_0x48325a[_0x4c5f34('0x264e')][_0x4c5f34('0xbaa')]({'fields':_0x4c5f34('0x721'),'sort':_0x4c5f34('0x1909'),'nolimit':'true'})[_0x4c5f34('0x1549')]['then'](function(_0x2280fc){const _0x534d37=_0x4c5f34;_0x94a7f4[_0x534d37('0x1b24')]=_0x2280fc[_0x534d37('0x19b2')]||[];})[_0x4c5f34('0x11bf')](function(){const _0x4f97ff=_0x4c5f34;return _0x48325a[_0x4f97ff('0x1d63')]['get']({'userProfileId':_0x94a7f4['currentUser'][_0x4f97ff('0x781')],'sectionId':0x3f3})['$promise'];})['then'](function(_0x2c9974){const _0x28d79e=_0x4c5f34,_0x3302b0=_0x2c9974&&_0x2c9974[_0x28d79e('0x19b2')]?_0x2c9974['rows'][0x0]:null;if(!_0x3302b0){const _0x460327=[];let _0x338a11=null;_0x94a7f4['externaldial']&&(_0x338a11=_0x36f548()[_0x28d79e('0x1ad4')](_0x94a7f4[_0x28d79e('0x1b24')],{'name':_0x94a7f4[_0x28d79e('0x67a')][_0x28d79e('0x264e')]}));for(let _0x468b38=0x0;_0x468b38<_0x94a7f4[_0x28d79e('0x1b24')]['length'];_0x468b38++){_0x338a11&&_0x94a7f4[_0x28d79e('0x1b24')][_0x468b38]['id']===_0x338a11['id']&&(_0x94a7f4[_0x28d79e('0x1b24')][_0x468b38][_0x28d79e('0x254a')]=![],_0x460327[_0x28d79e('0x105d')](_0x94a7f4[_0x28d79e('0x1b24')][_0x468b38]));}_0x94a7f4[_0x28d79e('0x1b24')]=_0x460327;}else{if(!_0x3302b0['autoAssociation'])return _0x48325a['userProfileResource'][_0x28d79e('0xbaa')]({'sectionId':_0x3302b0['id']})[_0x28d79e('0x1549')][_0x28d79e('0x11bf')](function(_0x4f406b){const _0x4c7c14=_0x28d79e,_0x3913fe=_0x36f548()['map'](_0x4f406b[_0x4c7c14('0x19b2')],function(_0x4c466b){const _0x3e6ddf=_0x4c7c14;return _0x36f548()[_0x3e6ddf('0x1ad4')](_0x94a7f4['trunks'],{'id':_0x4c466b[_0x3e6ddf('0x15a5')]});});let _0x1a2426=null;_0x94a7f4[_0x4c7c14('0x67a')]&&(_0x1a2426=_0x36f548()[_0x4c7c14('0x1ad4')](_0x94a7f4[_0x4c7c14('0x1b24')],{'name':_0x94a7f4['externaldial'][_0x4c7c14('0x264e')]}));if(_0x1a2426&&!_0x36f548()[_0x4c7c14('0x1cb3')](_0x3913fe,['id',_0x1a2426['id']])){const _0x3508b0=_0x36f548()[_0x4c7c14('0x1ad4')](_0x94a7f4[_0x4c7c14('0x1b24')],{'id':_0x1a2426['id']});_0x3508b0[_0x4c7c14('0x254a')]=![],_0x3913fe[_0x4c7c14('0x105d')](_0x3508b0);}_0x94a7f4[_0x4c7c14('0x1b24')]=_0x3913fe;});}})[_0x4c5f34('0x151d')](function(_0x3fcc5b){const _0x4cf43d=_0x4c5f34;_0x2de274['error']({'title':_0x3fcc5b['status']?'API:'+_0x3fcc5b['status']+_0x4cf43d('0xb0b')+_0x3fcc5b['statusText']:_0x4cf43d('0xf39'),'msg':_0x3fcc5b[_0x4cf43d('0x4e8')]?JSON['stringify'](_0x3fcc5b[_0x4cf43d('0x4e8')]):_0x3fcc5b[_0x4cf43d('0xaab')]()});});function _0x357434(){const _0x47a4bc=_0x4c5f34;_0x94a7f4[_0x47a4bc('0x120f')]=[];const _0x2314f=[];_0x94a7f4[_0x47a4bc('0x67a')]['type']&&_0x94a7f4[_0x47a4bc('0x67a')][_0x47a4bc('0x19fd')][_0x47a4bc('0x20d5')]()===_0x47a4bc('0x25b6')&&_0x94a7f4['externaldial'][_0x47a4bc('0x27c0')]===_0x47a4bc('0x1bf6')&&(_0x94a7f4[_0x47a4bc('0x67a')][_0x47a4bc('0x1546')]=_0x1094a5[_0x47a4bc('0x388')]?(_0x94a7f4[_0x47a4bc('0x67a')][_0x47a4bc('0x2137')]||'')+_0x47a4bc('0x2100')+_0x1094a5[_0x47a4bc('0x388')]+'}':(_0x94a7f4[_0x47a4bc('0x67a')][_0x47a4bc('0x2137')]||'')+'${EXTEN}',_0x1094a5[_0x47a4bc('0x897')]!==_0x47a4bc('0x3e6')?_0x94a7f4[_0x47a4bc('0x67a')][_0x47a4bc('0x249a')]['indexOf']('U(xcally-mixmonitor-context)')<0x0&&(_0x94a7f4[_0x47a4bc('0x67a')][_0x47a4bc('0x249a')]+=_0x47a4bc('0x22c9')):_0x94a7f4[_0x47a4bc('0x67a')][_0x47a4bc('0x249a')]=_0x94a7f4[_0x47a4bc('0x67a')][_0x47a4bc('0x249a')][_0x47a4bc('0x814')]('U(xcally-mixmonitor-context)',''));if(_0x94a7f4[_0x47a4bc('0x67a')][_0x47a4bc('0x27c0')]&&_0x94a7f4[_0x47a4bc('0x67a')][_0x47a4bc('0x27c0')]===_0x47a4bc('0xa8d')){}else switch((_0x94a7f4['externaldial'][_0x47a4bc('0x18f5')]||_0x94a7f4[_0x47a4bc('0x67a')][_0x47a4bc('0x27c0')])[_0x47a4bc('0x20d5')]()){case _0x47a4bc('0xe50'):_0x94a7f4[_0x47a4bc('0x67a')][_0x47a4bc('0x13fc')]=_0x94a7f4[_0x47a4bc('0x67a')][_0x47a4bc('0x1909')]+'='+_0x94a7f4['externaldial'][_0x47a4bc('0x10cc')];break;case _0x47a4bc('0xa8d'):break;default:_0x2314f[0x0]=[_0x47a4bc('0xd74'),_0x94a7f4[_0x47a4bc('0x67a')][_0x47a4bc('0x264e')],_0x94a7f4[_0x47a4bc('0x67a')][_0x47a4bc('0x1546')]][_0x47a4bc('0xa04')]('/'),_0x2314f[0x1]=_0x94a7f4['externaldial'][_0x47a4bc('0xfbe')],_0x2314f[0x2]=_0x94a7f4['externaldial'][_0x47a4bc('0x249a')],_0x2314f[0x3]=_0x94a7f4['externaldial']['url'],_0x94a7f4[_0x47a4bc('0x67a')][_0x47a4bc('0x13fc')]=_0x2314f['join'](',');}_0x596a8c(_0x94a7f4[_0x47a4bc('0x67a')]);}function _0x596a8c(_0x37e423){const _0x8fd102=_0x4c5f34;_0x239934[_0x8fd102('0x237e')](_0x37e423);}}const _0x315cae=_0x35c683;_0x45ed42[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0x142d'),_0x21d0f5('0xfa8'),'inboundroute',_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),_0x21d0f5('0xb25')];function _0x45ed42(_0x4ea4c8,_0x5c1aa3,_0x2ce1be,_0x287583,_0x303024,_0x41eff0,_0x2ae016,_0x260416){const _0x1b818d=_0x21d0f5,_0x591080=this;_0x591080[_0x1b818d('0x32a')]=_0x2ae016[_0x1b818d('0x2428')](),_0x591080[_0x1b818d('0x120f')]=[],_0x591080[_0x1b818d('0x134b')]=_0x1b818d('0x2306')+(_0x287583[_0x1b818d('0x27c0')]||_0x287583[_0x1b818d('0x18f5')])[_0x1b818d('0xa6f')](),_0x591080[_0x1b818d('0x2190')]=angular[_0x1b818d('0x6fb')](_0x287583),_0x591080[_0x1b818d('0xb25')]=_0x260416,_0x591080[_0x1b818d('0x2c9')]={};if(_0x591080[_0x1b818d('0x2190')][_0x1b818d('0x13fc')])switch(_0x591080[_0x1b818d('0x2190')]['appType']?_0x591080['goto'][_0x1b818d('0x27c0')]['toLowerCase']():_0x591080[_0x1b818d('0x2190')]['app'][_0x1b818d('0x20d5')]()){case'custom':break;case _0x1b818d('0x185e'):{const _0x4fb92a=_0x591080['goto'][_0x1b818d('0x13fc')][_0x1b818d('0xaf8')](',');_0x591080['goto']['key']=_0x4fb92a[0x0],_0x591080['goto'][_0x1b818d('0xeff')]=_0x4fb92a[0x1],_0x591080[_0x1b818d('0x2190')][_0x1b818d('0x1cbc')]=_0x4fb92a[_0x1b818d('0x1b77')](0x2,_0x4fb92a[_0x1b818d('0x1e22')])['join'](',');}break;case _0x1b818d('0x21a8'):{const _0x5a9407=_0x591080[_0x1b818d('0x2190')][_0x1b818d('0x13fc')][_0x1b818d('0xaf8')](',');_0x591080[_0x1b818d('0x2190')][_0x1b818d('0x20e')]=_0x5a9407[0x0],_0x591080[_0x1b818d('0x2190')][_0x1b818d('0x1f91')]=_0x5a9407[0x1],_0x591080[_0x1b818d('0x2190')][_0x1b818d('0x1c6c')]=_0x5a9407[0x2],_0x591080[_0x1b818d('0x2190')][_0x1b818d('0xeff')]=_0x5a9407[0x3],_0x591080[_0x1b818d('0x2190')][_0x1b818d('0x1cbc')]=_0x5a9407[_0x1b818d('0x1b77')](0x4,_0x5a9407['length'])[_0x1b818d('0xa04')](',');}break;case _0x1b818d('0x102c'):{const _0xf19920=_0x591080[_0x1b818d('0x2190')]['appdata'][_0x1b818d('0xaf8')](',');_0x591080[_0x1b818d('0x2190')][_0x1b818d('0x1a82')]=_0xf19920[0x0],_0x591080[_0x1b818d('0x2190')][_0x1b818d('0x1422')]=_0xf19920[0x1],_0x591080['goto'][_0x1b818d('0x165a')]=_0xf19920[0x2],_0x591080[_0x1b818d('0x2190')][_0x1b818d('0x1e8f')]=_0xf19920[0x3],_0x591080[_0x1b818d('0x2190')][_0x1b818d('0x1cbc')]=_0xf19920[_0x1b818d('0x1b77')](0x4,_0xf19920[_0x1b818d('0x1e22')])[_0x1b818d('0xa04')](',');}break;case _0x1b818d('0x187b'):{const _0x4dfa7c=_0x591080['goto'][_0x1b818d('0x13fc')][_0x1b818d('0xaf8')](',');_0x591080[_0x1b818d('0x2190')][_0x1b818d('0x663')]=isNaN(_0x4dfa7c[0x0])?_0x4dfa7c[0x0]:parseInt(_0x4dfa7c[0x0],0xa),_0x591080[_0x1b818d('0x2190')][_0x1b818d('0x25ed')]=_0x4dfa7c[_0x1b818d('0x1b77')](0x1,_0x4dfa7c[_0x1b818d('0x1e22')])[_0x1b818d('0xa04')](',');}break;case _0x1b818d('0x1b86'):_0x591080['goto']['text']=_0x591080[_0x1b818d('0x2190')][_0x1b818d('0x13fc')];break;case _0x1b818d('0xe50'):_0x591080[_0x1b818d('0x2190')][_0x1b818d('0x1909')]=_0x591080[_0x1b818d('0x2190')]['appdata'][_0x1b818d('0xaf8')]('=')[0x0],_0x591080[_0x1b818d('0x2190')][_0x1b818d('0x10cc')]=_0x591080[_0x1b818d('0x2190')][_0x1b818d('0x13fc')][_0x1b818d('0xaf8')]('=')[0x1];break;case _0x1b818d('0x1efd'):_0x591080[_0x1b818d('0x2190')][_0x1b818d('0xef0')]=_0x591080[_0x1b818d('0x2190')][_0x1b818d('0x13fc')];break;default:{const _0x2856b1=_0x591080[_0x1b818d('0x2190')][_0x1b818d('0x13fc')][_0x1b818d('0xaf8')](',');_0x591080['goto'][_0x1b818d('0x1c87')]=_0x36f548()['isEmpty'](_0x2856b1[0x0])?_0x2856b1[0x0]:isNaN(_0x2856b1[0x0])?_0x2856b1[0x0]:parseInt(_0x2856b1[0x0],0xa),_0x591080[_0x1b818d('0x2190')][_0x1b818d('0xf91')]=_0x36f548()[_0x1b818d('0x1fc5')](_0x2856b1[0x1])?_0x2856b1[0x1]:isNaN(_0x2856b1[0x1])?_0x2856b1[0x1]:parseInt(_0x2856b1[0x1],0xa),_0x591080[_0x1b818d('0x2190')][_0x1b818d('0x2804')]=_0x36f548()[_0x1b818d('0x1fc5')](_0x2856b1[0x2])?_0x2856b1[0x2]:isNaN(_0x2856b1[0x2])?_0x2856b1[0x2]:parseInt(_0x2856b1[0x2],0xa);}break;}else{}_0x591080[_0x1b818d('0x2190')][_0x1b818d('0x19fd')]&&_0x591080[_0x1b818d('0x2190')][_0x1b818d('0x19fd')][_0x1b818d('0x20d5')]()===_0x1b818d('0x25b6')&&_0x591080[_0x1b818d('0x2190')]['appType'][_0x1b818d('0x20d5')]()===_0x1b818d('0x1a64')&&(_0x591080[_0x1b818d('0x2190')][_0x1b818d('0x2137')]=_0x591080[_0x1b818d('0x2190')][_0x1b818d('0x1546')]?_0x591080[_0x1b818d('0x2190')][_0x1b818d('0x1546')][_0x1b818d('0xaf8')]('$')[0x0]:undefined,_0x591080[_0x1b818d('0x2190')][_0x1b818d('0x7d0')]=_0x591080[_0x1b818d('0x2190')][_0x1b818d('0xc38')]?'CALLERID(all)='+_0x591080[_0x1b818d('0x2190')][_0x1b818d('0xc38')]:undefined);_0x591080[_0x1b818d('0x1051')]=_0x2704fb,_0x591080[_0x1b818d('0xc4e')]=_0xc5e196,_0x2ae016[_0x1b818d('0x4ee')](_0x1b818d('0xf45'))?_0x41eff0[_0x1b818d('0x1279')][_0x1b818d('0xbaa')]({'fields':_0x1b818d('0x721'),'sort':'name','nolimit':_0x1b818d('0x204c')})[_0x1b818d('0x1549')]['then'](function(_0x254af7){const _0x2ccb1d=_0x1b818d;_0x591080[_0x2ccb1d('0x803')]=_0x254af7[_0x2ccb1d('0x19b2')]||[];})['catch'](function(_0x27fa85){const _0x4734ba=_0x1b818d;_0x2ce1be[_0x4734ba('0x255')]({'title':_0x27fa85[_0x4734ba('0xff9')]?'API:'+_0x27fa85['status']+_0x4734ba('0xb0b')+_0x27fa85[_0x4734ba('0x212f')]:_0x4734ba('0x348'),'msg':_0x27fa85[_0x4734ba('0x4e8')]?JSON[_0x4734ba('0x3e')](_0x27fa85[_0x4734ba('0x4e8')]):_0x27fa85[_0x4734ba('0xaab')]()});}):_0x41eff0[_0x1b818d('0x1279')][_0x1b818d('0xbaa')]({'fields':'id,name','sort':_0x1b818d('0x1909'),'nolimit':_0x1b818d('0x204c')})[_0x1b818d('0x1549')][_0x1b818d('0x11bf')](function(_0x154f83){const _0x1d2549=_0x1b818d;_0x591080[_0x1d2549('0x803')]=_0x154f83['rows']||[];})[_0x1b818d('0x11bf')](function(){const _0x3600d1=_0x1b818d;return _0x41eff0[_0x3600d1('0x1d63')]['get']({'userProfileId':_0x591080['currentUser'][_0x3600d1('0x781')],'sectionId':0x195})['$promise'];})[_0x1b818d('0x11bf')](function(_0x274dba){const _0x342591=_0x1b818d,_0x5e9bfb=_0x274dba&&_0x274dba[_0x342591('0x19b2')]?_0x274dba[_0x342591('0x19b2')][0x0]:null;if(!_0x5e9bfb)return _0x41eff0[_0x342591('0x1279')][_0x342591('0xbaa')]({'fields':'id,name','sort':_0x342591('0x1909'),'nolimit':_0x342591('0x204c'),'defaultEntry':0x1})[_0x342591('0x1549')]['then'](function(_0xb9bee4){const _0x23f1c9=_0x342591;_0x591080[_0x23f1c9('0x803')]=_0xb9bee4[_0x23f1c9('0x19b2')]||[];});else{if(!_0x5e9bfb[_0x342591('0xf11')])return _0x41eff0['userProfileResource'][_0x342591('0xbaa')]({'sectionId':_0x5e9bfb['id']})['$promise'][_0x342591('0x11bf')](function(_0x215d7b){const _0x17da20=_0x342591,_0x5ab62e=_0x36f548()[_0x17da20('0x2171')](_0x215d7b[_0x17da20('0x19b2')],function(_0x27eab0){const _0x334455=_0x17da20;return _0x36f548()[_0x334455('0x1ad4')](_0x591080[_0x334455('0x803')],{'id':_0x27eab0[_0x334455('0x15a5')]});});let _0x5af085=null;_0x591080[_0x17da20('0x2190')]&&(_0x5af085=_0x36f548()[_0x17da20('0x1ad4')](_0x591080[_0x17da20('0x803')],{'name':_0x591080[_0x17da20('0x2190')][_0x17da20('0x1c87')]}));if(_0x5af085&&!_0x36f548()[_0x17da20('0x1cb3')](_0x5ab62e,['id',_0x5af085['id']])){const _0x9f95a5=_0x36f548()[_0x17da20('0x1ad4')](_0x591080[_0x17da20('0x803')],{'id':_0x5af085['id']});_0x9f95a5[_0x17da20('0x254a')]=![],_0x5ab62e[_0x17da20('0x105d')](_0x9f95a5);}_0x591080[_0x17da20('0x803')]=_0x5ab62e;});}})[_0x1b818d('0x151d')](function(_0x254ecd){const _0x42d27e=_0x1b818d;_0x2ce1be[_0x42d27e('0x255')]({'title':_0x254ecd[_0x42d27e('0xff9')]?_0x42d27e('0x574')+_0x254ecd[_0x42d27e('0xff9')]+_0x42d27e('0xb0b')+_0x254ecd[_0x42d27e('0x212f')]:_0x42d27e('0x1280'),'msg':_0x254ecd['data']?JSON[_0x42d27e('0x3e')](_0x254ecd[_0x42d27e('0x4e8')]):_0x254ecd[_0x42d27e('0xaab')]()});});function _0x2704fb(){const _0x1e61d4=_0x1b818d;_0x591080['errors']=[];const _0x2fdacb=[];_0x591080[_0x1e61d4('0x2190')]['type']&&_0x591080[_0x1e61d4('0x2190')]['type'][_0x1e61d4('0x20d5')]()===_0x1e61d4('0x25b6')&&_0x591080['goto'][_0x1e61d4('0x27c0')]==='outboundDial'&&(_0x591080['goto'][_0x1e61d4('0x1546')]=_0x303024[_0x1e61d4('0x388')]?(_0x591080[_0x1e61d4('0x2190')][_0x1e61d4('0x2137')]||'')+_0x1e61d4('0x2100')+_0x303024[_0x1e61d4('0x388')]+'}':(_0x591080[_0x1e61d4('0x2190')][_0x1e61d4('0x2137')]||'')+_0x1e61d4('0x1f76'),_0x303024[_0x1e61d4('0x897')]!=='none'?_0x591080[_0x1e61d4('0x2190')][_0x1e61d4('0x249a')]['indexOf'](_0x1e61d4('0x22c9'))<0x0&&(_0x591080[_0x1e61d4('0x2190')]['options']+=_0x1e61d4('0x22c9')):_0x591080[_0x1e61d4('0x2190')][_0x1e61d4('0x249a')]=_0x591080[_0x1e61d4('0x2190')][_0x1e61d4('0x249a')][_0x1e61d4('0x814')](_0x1e61d4('0x22c9'),''));if(_0x591080[_0x1e61d4('0x2190')][_0x1e61d4('0x27c0')]&&_0x591080[_0x1e61d4('0x2190')][_0x1e61d4('0x27c0')]==='custom'){}else switch((_0x591080[_0x1e61d4('0x2190')]['app']||_0x591080[_0x1e61d4('0x2190')]['appType'])[_0x1e61d4('0x20d5')]()){case _0x1e61d4('0xe50'):_0x591080['goto'][_0x1e61d4('0x13fc')]=_0x591080[_0x1e61d4('0x2190')][_0x1e61d4('0x1909')]+'='+_0x591080[_0x1e61d4('0x2190')]['value'];break;case _0x1e61d4('0xa8d'):break;default:_0x2fdacb[0x0]=_0x591080[_0x1e61d4('0x2190')][_0x1e61d4('0x1c87')],_0x2fdacb[0x1]=_0x591080[_0x1e61d4('0x2190')]['extension'],_0x2fdacb[0x2]=_0x591080['goto'][_0x1e61d4('0x2804')],_0x591080[_0x1e61d4('0x2190')]['appdata']=_0x2fdacb[_0x1e61d4('0xa04')](',');}_0xc5e196(_0x591080[_0x1e61d4('0x2190')]);}function _0xc5e196(_0x4c3cef){_0x4ea4c8['hide'](_0x4c3cef);}}const _0x526a2f=_0x45ed42;_0x59b10f[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0x142d'),_0x21d0f5('0xfa8'),'inboundroute','api',_0x21d0f5('0x1150'),_0x21d0f5('0xb25')];function _0x59b10f(_0x260b41,_0x45b8d1,_0x10fc9a,_0x1f8739,_0x2e5cf8,_0x496877,_0x7d5ca4,_0x44551e){const _0x544985=_0x21d0f5,_0x7c349=this;_0x7c349[_0x544985('0x32a')]=_0x7d5ca4[_0x544985('0x2428')](),_0x7c349[_0x544985('0x120f')]=[],_0x7c349['title']=_0x544985('0x2306')+(_0x1f8739[_0x544985('0x27c0')]||_0x1f8739[_0x544985('0x18f5')])['toUpperCase'](),_0x7c349[_0x544985('0xcef')]=angular[_0x544985('0x6fb')](_0x1f8739),_0x7c349[_0x544985('0xb25')]=_0x44551e,_0x7c349['hasModulePermissions']={};if(_0x7c349[_0x544985('0xcef')][_0x544985('0x13fc')])switch(_0x7c349[_0x544985('0xcef')][_0x544985('0x27c0')]?_0x7c349['hangup'][_0x544985('0x27c0')][_0x544985('0x20d5')]():_0x7c349[_0x544985('0xcef')]['app'][_0x544985('0x20d5')]()){case _0x544985('0xa8d'):break;case _0x544985('0x185e'):{const _0x407b53=_0x7c349[_0x544985('0xcef')][_0x544985('0x13fc')][_0x544985('0xaf8')](',');_0x7c349[_0x544985('0xcef')][_0x544985('0xa0c')]=_0x407b53[0x0],_0x7c349[_0x544985('0xcef')]['language']=_0x407b53[0x1],_0x7c349[_0x544985('0xcef')]['welcomemessage']=_0x407b53[_0x544985('0x1b77')](0x2,_0x407b53['length'])['join'](',');}break;case _0x544985('0x21a8'):{const _0x378ece=_0x7c349['hangup'][_0x544985('0x13fc')][_0x544985('0xaf8')](',');_0x7c349[_0x544985('0xcef')][_0x544985('0x20e')]=_0x378ece[0x0],_0x7c349[_0x544985('0xcef')]['clientEmail']=_0x378ece[0x1],_0x7c349['hangup'][_0x544985('0x1c6c')]=_0x378ece[0x2],_0x7c349['hangup'][_0x544985('0xeff')]=_0x378ece[0x3],_0x7c349['hangup'][_0x544985('0x1cbc')]=_0x378ece[_0x544985('0x1b77')](0x4,_0x378ece[_0x544985('0x1e22')])[_0x544985('0xa04')](',');}break;case _0x544985('0x102c'):{const _0x515328=_0x7c349[_0x544985('0xcef')][_0x544985('0x13fc')][_0x544985('0xaf8')](',');_0x7c349['hangup'][_0x544985('0x1a82')]=_0x515328[0x0],_0x7c349[_0x544985('0xcef')][_0x544985('0x1422')]=_0x515328[0x1],_0x7c349[_0x544985('0xcef')][_0x544985('0x165a')]=_0x515328[0x2],_0x7c349['hangup']['botname']=_0x515328[0x3],_0x7c349['hangup']['welcomemessage']=_0x515328['slice'](0x4,_0x515328[_0x544985('0x1e22')])['join'](',');}break;case'autoreply':{const _0x24d551=_0x7c349[_0x544985('0xcef')][_0x544985('0x13fc')][_0x544985('0xaf8')](',');_0x7c349[_0x544985('0xcef')][_0x544985('0x663')]=isNaN(_0x24d551[0x0])?_0x24d551[0x0]:parseInt(_0x24d551[0x0],0xa),_0x7c349[_0x544985('0xcef')][_0x544985('0x25ed')]=_0x24d551[_0x544985('0x1b77')](0x1,_0x24d551[_0x544985('0x1e22')])[_0x544985('0xa04')](',');}break;case _0x544985('0x1b86'):_0x7c349[_0x544985('0xcef')]['text']=_0x7c349['hangup'][_0x544985('0x13fc')];break;case'set':_0x7c349[_0x544985('0xcef')][_0x544985('0x1909')]=_0x7c349['hangup']['appdata'][_0x544985('0xaf8')]('=')[0x0],_0x7c349['hangup'][_0x544985('0x10cc')]=_0x7c349[_0x544985('0xcef')][_0x544985('0x13fc')]['split']('=')[0x1];break;case _0x544985('0x1efd'):_0x7c349[_0x544985('0xcef')][_0x544985('0xef0')]=_0x7c349[_0x544985('0xcef')][_0x544985('0x13fc')];break;default:{const _0x61b0a5=_0x7c349[_0x544985('0xcef')][_0x544985('0x13fc')]['split'](',');_0x7c349[_0x544985('0xcef')][_0x544985('0x13fc')]=_0x36f548()[_0x544985('0x1fc5')](_0x61b0a5[0x0])?_0x61b0a5[0x0]:isNaN(_0x61b0a5[0x0])?_0x61b0a5[0x0]:parseInt(_0x61b0a5[0x0],0xa);}break;}else{}_0x7c349[_0x544985('0xcef')]['type']&&_0x7c349['hangup'][_0x544985('0x19fd')][_0x544985('0x20d5')]()===_0x544985('0x25b6')&&_0x7c349['hangup'][_0x544985('0x27c0')][_0x544985('0x20d5')]()==='outbounddial'&&(_0x7c349[_0x544985('0xcef')]['prefix']=_0x7c349[_0x544985('0xcef')][_0x544985('0x1546')]?_0x7c349[_0x544985('0xcef')][_0x544985('0x1546')][_0x544985('0xaf8')]('$')[0x0]:undefined,_0x7c349['hangup']['callerId']=_0x7c349[_0x544985('0xcef')]['callerID']?_0x544985('0x83a')+_0x7c349[_0x544985('0xcef')]['callerID']:undefined);_0x7c349[_0x544985('0x1051')]=_0x27e383,_0x7c349[_0x544985('0xc4e')]=_0x3a7201;function _0x27e383(){const _0x34916f=_0x544985;_0x7c349[_0x34916f('0x120f')]=[];const _0x137b91=[];_0x7c349[_0x34916f('0xcef')][_0x34916f('0x19fd')]&&_0x7c349[_0x34916f('0xcef')][_0x34916f('0x19fd')][_0x34916f('0x20d5')]()===_0x34916f('0x25b6')&&_0x7c349[_0x34916f('0xcef')][_0x34916f('0x27c0')]===_0x34916f('0x1bf6')&&(_0x7c349[_0x34916f('0xcef')][_0x34916f('0x1546')]=_0x2e5cf8['cutdigits']?(_0x7c349[_0x34916f('0xcef')][_0x34916f('0x2137')]||'')+'${EXTEN:'+_0x2e5cf8[_0x34916f('0x388')]+'}':(_0x7c349[_0x34916f('0xcef')][_0x34916f('0x2137')]||'')+_0x34916f('0x1f76'),_0x2e5cf8[_0x34916f('0x897')]!==_0x34916f('0x3e6')?_0x7c349['hangup'][_0x34916f('0x249a')]['indexOf'](_0x34916f('0x22c9'))<0x0&&(_0x7c349[_0x34916f('0xcef')][_0x34916f('0x249a')]+=_0x34916f('0x22c9')):_0x7c349['hangup'][_0x34916f('0x249a')]=_0x7c349[_0x34916f('0xcef')][_0x34916f('0x249a')][_0x34916f('0x814')]('U(xcally-mixmonitor-context)',''));if(_0x7c349['hangup'][_0x34916f('0x27c0')]&&_0x7c349['hangup']['appType']===_0x34916f('0xa8d')){}else switch((_0x7c349[_0x34916f('0xcef')][_0x34916f('0x18f5')]||_0x7c349['hangup'][_0x34916f('0x27c0')])[_0x34916f('0x20d5')]()){case _0x34916f('0xe50'):_0x7c349[_0x34916f('0xcef')][_0x34916f('0x13fc')]=_0x7c349['hangup']['name']+'='+_0x7c349[_0x34916f('0xcef')]['value'];break;case _0x34916f('0xa8d'):break;default:_0x137b91[0x0]=_0x7c349[_0x34916f('0xcef')][_0x34916f('0x13fc')],_0x7c349[_0x34916f('0xcef')]['appdata']=_0x137b91[_0x34916f('0xa04')](',');}_0x3a7201(_0x7c349['hangup']);}function _0x3a7201(_0x35669d){const _0x5148c4=_0x544985;_0x260b41[_0x5148c4('0x237e')](_0x35669d);}}const _0x9c2a1c=_0x59b10f;_0x5e5d57[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0x142d'),'inboundrouteApp',_0x21d0f5('0x1e56'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),_0x21d0f5('0xb25')];function _0x5e5d57(_0x3d6b7f,_0x4b04dc,_0x16e324,_0x3c43dc,_0x564937,_0x22c757,_0x4a1805,_0x54932d){const _0x4f34a3=_0x21d0f5,_0x42a7f8=this;_0x42a7f8[_0x4f34a3('0x32a')]=_0x4a1805[_0x4f34a3('0x2428')](),_0x42a7f8[_0x4f34a3('0x120f')]=[],_0x42a7f8['title']=_0x4f34a3('0x2306')+(_0x3c43dc['appType']||_0x3c43dc[_0x4f34a3('0x18f5')])[_0x4f34a3('0xa6f')](),_0x42a7f8[_0x4f34a3('0xffd')]=angular[_0x4f34a3('0x6fb')](_0x3c43dc),_0x42a7f8[_0x4f34a3('0xb25')]=_0x54932d,_0x42a7f8['hasModulePermissions']={};if(_0x42a7f8[_0x4f34a3('0xffd')]['appdata'])switch(_0x42a7f8['internaldial'][_0x4f34a3('0x27c0')]?_0x42a7f8[_0x4f34a3('0xffd')][_0x4f34a3('0x27c0')][_0x4f34a3('0x20d5')]():_0x42a7f8[_0x4f34a3('0xffd')][_0x4f34a3('0x18f5')][_0x4f34a3('0x20d5')]()){case _0x4f34a3('0xa8d'):break;case _0x4f34a3('0x185e'):{const _0x5d9e94=_0x42a7f8[_0x4f34a3('0xffd')][_0x4f34a3('0x13fc')][_0x4f34a3('0xaf8')](',');_0x42a7f8[_0x4f34a3('0xffd')][_0x4f34a3('0xa0c')]=_0x5d9e94[0x0],_0x42a7f8[_0x4f34a3('0xffd')][_0x4f34a3('0xeff')]=_0x5d9e94[0x1],_0x42a7f8[_0x4f34a3('0xffd')][_0x4f34a3('0x1cbc')]=_0x5d9e94[_0x4f34a3('0x1b77')](0x2,_0x5d9e94[_0x4f34a3('0x1e22')])[_0x4f34a3('0xa04')](',');}break;case _0x4f34a3('0x21a8'):{const _0x14b437=_0x42a7f8['internaldial']['appdata'][_0x4f34a3('0xaf8')](',');_0x42a7f8[_0x4f34a3('0xffd')][_0x4f34a3('0x20e')]=_0x14b437[0x0],_0x42a7f8[_0x4f34a3('0xffd')]['clientEmail']=_0x14b437[0x1],_0x42a7f8[_0x4f34a3('0xffd')][_0x4f34a3('0x1c6c')]=_0x14b437[0x2],_0x42a7f8[_0x4f34a3('0xffd')][_0x4f34a3('0xeff')]=_0x14b437[0x3],_0x42a7f8[_0x4f34a3('0xffd')][_0x4f34a3('0x1cbc')]=_0x14b437[_0x4f34a3('0x1b77')](0x4,_0x14b437[_0x4f34a3('0x1e22')])[_0x4f34a3('0xa04')](',');}break;case _0x4f34a3('0x102c'):{const _0x38ac07=_0x42a7f8[_0x4f34a3('0xffd')][_0x4f34a3('0x13fc')][_0x4f34a3('0xaf8')](',');_0x42a7f8[_0x4f34a3('0xffd')]['accesskeyid']=_0x38ac07[0x0],_0x42a7f8[_0x4f34a3('0xffd')][_0x4f34a3('0x1422')]=_0x38ac07[0x1],_0x42a7f8['internaldial'][_0x4f34a3('0x165a')]=_0x38ac07[0x2],_0x42a7f8[_0x4f34a3('0xffd')][_0x4f34a3('0x1e8f')]=_0x38ac07[0x3],_0x42a7f8['internaldial']['welcomemessage']=_0x38ac07[_0x4f34a3('0x1b77')](0x4,_0x38ac07['length'])[_0x4f34a3('0xa04')](',');}break;case _0x4f34a3('0x187b'):{const _0x193409=_0x42a7f8['internaldial'][_0x4f34a3('0x13fc')][_0x4f34a3('0xaf8')](',');_0x42a7f8[_0x4f34a3('0xffd')][_0x4f34a3('0x663')]=isNaN(_0x193409[0x0])?_0x193409[0x0]:parseInt(_0x193409[0x0],0xa),_0x42a7f8[_0x4f34a3('0xffd')][_0x4f34a3('0x25ed')]=_0x193409[_0x4f34a3('0x1b77')](0x1,_0x193409[_0x4f34a3('0x1e22')])[_0x4f34a3('0xa04')](',');}break;case _0x4f34a3('0x1b86'):_0x42a7f8[_0x4f34a3('0xffd')][_0x4f34a3('0x25ed')]=_0x42a7f8[_0x4f34a3('0xffd')][_0x4f34a3('0x13fc')];break;case _0x4f34a3('0xe50'):_0x42a7f8[_0x4f34a3('0xffd')][_0x4f34a3('0x1909')]=_0x42a7f8[_0x4f34a3('0xffd')][_0x4f34a3('0x13fc')]['split']('=')[0x0],_0x42a7f8[_0x4f34a3('0xffd')][_0x4f34a3('0x10cc')]=_0x42a7f8[_0x4f34a3('0xffd')][_0x4f34a3('0x13fc')][_0x4f34a3('0xaf8')]('=')[0x1];break;case'agi':_0x42a7f8[_0x4f34a3('0xffd')][_0x4f34a3('0xef0')]=_0x42a7f8['internaldial'][_0x4f34a3('0x13fc')];break;default:{const _0x5b837a=_0x42a7f8['internaldial'][_0x4f34a3('0x13fc')][_0x4f34a3('0xaf8')](',');_0x42a7f8['internaldial'][_0x4f34a3('0x21d9')]=_0x36f548()[_0x4f34a3('0x1fc5')](_0x5b837a[0x0])?_0x5b837a[0x0]:isNaN(_0x5b837a[0x0])?_0x5b837a[0x0]:parseInt(_0x5b837a[0x0],0xa),_0x42a7f8[_0x4f34a3('0xffd')][_0x4f34a3('0xfbe')]=_0x36f548()[_0x4f34a3('0x1fc5')](_0x5b837a[0x1])?_0x5b837a[0x1]:isNaN(_0x5b837a[0x1])?_0x5b837a[0x1]:parseInt(_0x5b837a[0x1],0xa),_0x42a7f8[_0x4f34a3('0xffd')][_0x4f34a3('0x249a')]=_0x36f548()[_0x4f34a3('0x1fc5')](_0x5b837a[0x2])?_0x5b837a[0x2]:isNaN(_0x5b837a[0x2])?_0x5b837a[0x2]:parseInt(_0x5b837a[0x2],0xa),_0x42a7f8[_0x4f34a3('0xffd')][_0x4f34a3('0x259e')]=_0x36f548()[_0x4f34a3('0x1fc5')](_0x5b837a[0x3])?_0x5b837a[0x3]:isNaN(_0x5b837a[0x3])?_0x5b837a[0x3]:parseInt(_0x5b837a[0x3],0xa);}break;}else{}_0x42a7f8['internaldial'][_0x4f34a3('0x19fd')]&&_0x42a7f8[_0x4f34a3('0xffd')][_0x4f34a3('0x19fd')]['toLowerCase']()===_0x4f34a3('0x25b6')&&_0x42a7f8[_0x4f34a3('0xffd')][_0x4f34a3('0x27c0')][_0x4f34a3('0x20d5')]()==='outbounddial'&&(_0x42a7f8['internaldial']['prefix']=_0x42a7f8[_0x4f34a3('0xffd')][_0x4f34a3('0x1546')]?_0x42a7f8['internaldial'][_0x4f34a3('0x1546')][_0x4f34a3('0xaf8')]('$')[0x0]:undefined,_0x42a7f8['internaldial']['callerId']=_0x42a7f8[_0x4f34a3('0xffd')][_0x4f34a3('0xc38')]?_0x4f34a3('0x83a')+_0x42a7f8[_0x4f34a3('0xffd')]['callerID']:undefined);_0x42a7f8[_0x4f34a3('0x1051')]=_0x2c6060,_0x42a7f8[_0x4f34a3('0xc4e')]=_0x109e01;const _0xa7e993=[{'id':0xca,'role':_0x4f34a3('0x18c4')},{'id':0xcb,'role':_0x4f34a3('0x2650')}];let _0x3697c3=null;_0x4a1805[_0x4f34a3('0x4ee')](_0x4f34a3('0xf45'))?_0x22c757[_0x4f34a3('0x21d9')][_0x4f34a3('0xbaa')]({'fields':_0x4f34a3('0x1b7b'),'sort':_0x4f34a3('0x1909'),'nolimit':_0x4f34a3('0x204c')})[_0x4f34a3('0x1549')][_0x4f34a3('0x11bf')](function(_0x1e867b){const _0x294924=_0x4f34a3;_0x42a7f8[_0x294924('0x17c0')]=_0x1e867b[_0x294924('0x19b2')]||[];})['catch'](function(_0x494911){const _0x514f31=_0x4f34a3;_0x16e324[_0x514f31('0x255')]({'title':_0x494911[_0x514f31('0xff9')]?_0x514f31('0x574')+_0x494911[_0x514f31('0xff9')]+_0x514f31('0xb0b')+_0x494911[_0x514f31('0x212f')]:_0x514f31('0x16ea'),'msg':_0x494911[_0x514f31('0x4e8')]?JSON[_0x514f31('0x3e')](_0x494911[_0x514f31('0x4e8')]):_0x494911['toString']()});}):_0x22c757[_0x4f34a3('0x21d9')][_0x4f34a3('0xbaa')]({'fields':_0x4f34a3('0x1b7b'),'sort':_0x4f34a3('0x1909'),'nolimit':_0x4f34a3('0x204c')})['$promise'][_0x4f34a3('0x11bf')](function(_0x42f4ab){const _0x2c62ed=_0x4f34a3;_0x3697c3=_0x42f4ab[_0x2c62ed('0x19b2')]||[];})['then'](function(){const _0x3a5e6c=_0x4f34a3,_0x9072fe=[];for(let _0x3fb729=0x0;_0x3fb729<_0xa7e993['length'];_0x3fb729++){_0x9072fe[_0x3a5e6c('0x105d')](_0x22c757[_0x3a5e6c('0x1d63')]['get']({'userProfileId':_0x42a7f8[_0x3a5e6c('0x32a')]['userProfileId'],'sectionId':_0xa7e993[_0x3fb729]['id']})['$promise']);}return _0x4b04dc['all'](_0x9072fe);})[_0x4f34a3('0x11bf')](function(_0x30fcad){const _0x4a1605=_0x4f34a3,_0x2ad657=_0x36f548()['map'](_0x30fcad,function(_0x2e9132){const _0x20df7=a0_0xaf0c;return _0x2e9132&&_0x2e9132[_0x20df7('0x19b2')]?_0x2e9132[_0x20df7('0x19b2')][0x0]:null;}),_0x2b554d=[];for(let _0x3291fb=0x0;_0x3291fb<_0xa7e993[_0x4a1605('0x1e22')];_0x3291fb++){const _0x45fc25=_0x36f548()[_0x4a1605('0x1ad4')](_0x2ad657,[_0x4a1605('0x24b2'),_0xa7e993[_0x3291fb]['id']]);if(_0x45fc25){if(!_0x45fc25[_0x4a1605('0xf11')])_0x2b554d[_0x4a1605('0x105d')](_0x22c757['userProfileResource'][_0x4a1605('0xbaa')]({'sectionId':_0x45fc25['id']})[_0x4a1605('0x1549')]);else{const _0x165711=[];_0x3697c3['forEach'](function(_0x3c94b5){const _0x13eff3=_0x4a1605;_0x3c94b5[_0x13eff3('0x111d')]===_0xa7e993[_0x3291fb][_0x13eff3('0x111d')]&&_0x165711[_0x13eff3('0x105d')](_0x3c94b5);}),_0x2b554d[_0x4a1605('0x105d')]({'rows':_0x165711,'count':_0x165711[_0x4a1605('0x1e22')]});}}}return _0x4b04dc[_0x4a1605('0x7c')](_0x2b554d);})[_0x4f34a3('0x11bf')](function(_0x2012be){const _0x2e56be=_0x4f34a3,_0x10c48b=[];let _0x41413a=null;_0x42a7f8[_0x2e56be('0xffd')]&&(_0x41413a=_0x36f548()['find'](_0x3697c3,{'name':_0x42a7f8['internaldial'][_0x2e56be('0x21d9')]}));for(let _0x4a0495=0x0;_0x4a0495<_0x2012be[_0x2e56be('0x1e22')];_0x4a0495++){const _0x2283a5=_0x2012be[_0x4a0495][_0x2e56be('0x19b2')]||[];_0x2283a5[_0x2e56be('0x1f88')](function(_0x3cbc88){const _0xf0d043=_0x2e56be;_0x10c48b[_0xf0d043('0x105d')](_0x3cbc88);});}_0x41413a&&!_0x36f548()['some'](_0x10c48b,[_0x2e56be('0x15a5'),_0x41413a['id']])&&_0x3697c3['forEach'](function(_0x6dd4a9){const _0x263106=_0x2e56be;_0x6dd4a9['id']===_0x41413a['id']&&(_0x6dd4a9['canSelect']=![],_0x10c48b[_0x263106('0x105d')](_0x6dd4a9));}),_0x42a7f8['users']=_0x10c48b;})['catch'](function(_0x17f9fc){const _0x573e39=_0x4f34a3;_0x16e324[_0x573e39('0x255')]({'title':_0x17f9fc[_0x573e39('0xff9')]?_0x573e39('0x574')+_0x17f9fc[_0x573e39('0xff9')]+'\x20-\x20'+_0x17f9fc[_0x573e39('0x212f')]:_0x573e39('0x1c2c'),'msg':_0x17f9fc[_0x573e39('0x4e8')]?JSON[_0x573e39('0x3e')](_0x17f9fc['data']):_0x17f9fc[_0x573e39('0xaab')]()});});function _0x2c6060(){const _0x5bd957=_0x4f34a3;_0x42a7f8[_0x5bd957('0x120f')]=[];const _0x3a3791=[];_0x42a7f8['internaldial'][_0x5bd957('0x19fd')]&&_0x42a7f8[_0x5bd957('0xffd')][_0x5bd957('0x19fd')][_0x5bd957('0x20d5')]()===_0x5bd957('0x25b6')&&_0x42a7f8[_0x5bd957('0xffd')][_0x5bd957('0x27c0')]===_0x5bd957('0x1bf6')&&(_0x42a7f8[_0x5bd957('0xffd')][_0x5bd957('0x1546')]=_0x564937[_0x5bd957('0x388')]?(_0x42a7f8['internaldial'][_0x5bd957('0x2137')]||'')+'${EXTEN:'+_0x564937[_0x5bd957('0x388')]+'}':(_0x42a7f8[_0x5bd957('0xffd')][_0x5bd957('0x2137')]||'')+_0x5bd957('0x1f76'),_0x564937['recordingFormat']!==_0x5bd957('0x3e6')?_0x42a7f8['internaldial'][_0x5bd957('0x249a')][_0x5bd957('0x203c')]('U(xcally-mixmonitor-context)')<0x0&&(_0x42a7f8[_0x5bd957('0xffd')][_0x5bd957('0x249a')]+=_0x5bd957('0x22c9')):_0x42a7f8['internaldial'][_0x5bd957('0x249a')]=_0x42a7f8[_0x5bd957('0xffd')][_0x5bd957('0x249a')]['replace'](_0x5bd957('0x22c9'),''));if(_0x42a7f8[_0x5bd957('0xffd')][_0x5bd957('0x27c0')]&&_0x42a7f8[_0x5bd957('0xffd')][_0x5bd957('0x27c0')]===_0x5bd957('0xa8d')){}else switch((_0x42a7f8[_0x5bd957('0xffd')][_0x5bd957('0x18f5')]||_0x42a7f8[_0x5bd957('0xffd')]['appType'])[_0x5bd957('0x20d5')]()){case _0x5bd957('0xe50'):_0x42a7f8['internaldial']['appdata']=_0x42a7f8['internaldial'][_0x5bd957('0x1909')]+'='+_0x42a7f8[_0x5bd957('0xffd')][_0x5bd957('0x10cc')];break;case _0x5bd957('0xa8d'):break;default:_0x3a3791[0x0]=_0x42a7f8[_0x5bd957('0xffd')][_0x5bd957('0x21d9')],_0x3a3791[0x1]=_0x42a7f8[_0x5bd957('0xffd')][_0x5bd957('0xfbe')],_0x3a3791[0x2]=_0x42a7f8[_0x5bd957('0xffd')][_0x5bd957('0x249a')],_0x3a3791[0x3]=_0x42a7f8[_0x5bd957('0xffd')][_0x5bd957('0x259e')],_0x42a7f8[_0x5bd957('0xffd')][_0x5bd957('0x13fc')]=_0x3a3791[_0x5bd957('0xa04')](',');}_0x109e01(_0x42a7f8['internaldial']);}function _0x109e01(_0x434c28){_0x3d6b7f['hide'](_0x434c28);}}const _0xf21d26=_0x5e5d57;_0x5bc72d[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0xcbc'),_0x21d0f5('0x1ca2'),_0x21d0f5('0x1d2f'),_0x21d0f5('0x216f'),_0x21d0f5('0x507'),'intervals',_0x21d0f5('0x142d'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),_0x21d0f5('0xb25')];function _0x5bc72d(_0x550919,_0x3d6d65,_0x439d05,_0x4676ce,_0x3b0c36,_0x36309a,_0x1c025d,_0x184d98,_0x109074,_0xabee11){const _0x3421ed=_0x21d0f5,_0x1cf726=this;_0x1cf726[_0x3421ed('0x32a')]=_0x109074[_0x3421ed('0x2428')](),_0x1cf726[_0x3421ed('0x120f')]=[],_0x1cf726[_0x3421ed('0x134b')]=_0x3421ed('0x1d07'),_0x1cf726[_0x3421ed('0x507')]=angular[_0x3421ed('0x6fb')](_0x3b0c36),_0x1cf726[_0x3421ed('0xe82')]=_0x36309a,_0x1cf726[_0x3421ed('0x18cf')]=![],_0x1cf726[_0x3421ed('0x1660')]=[_0x3421ed('0x27e5'),_0x3421ed('0xa8d'),'list'],_0x1cf726[_0x3421ed('0xb25')]=_0xabee11,_0x1cf726[_0x3421ed('0xd02')]=_0x4676ce['getDaysOfWeek'](),_0x1cf726[_0x3421ed('0x0')]=_0x4676ce[_0x3421ed('0xf7a')](),_0x1cf726[_0x3421ed('0x19c8')]=_0x4676ce[_0x3421ed('0x311')](),_0x1cf726[_0x3421ed('0x256b')]=_0x4676ce['getDaysOfMonth']();if(!_0x1cf726[_0x3421ed('0x507')])_0x1cf726[_0x3421ed('0x507')]={'interval':_0x3421ed('0x1830')},_0x1cf726[_0x3421ed('0x19fd')]='always',_0x1cf726[_0x3421ed('0x134b')]=_0x3421ed('0x1aba'),_0x1cf726[_0x3421ed('0x18cf')]=!![];else{if(_0x1cf726[_0x3421ed('0x507')][_0x3421ed('0x507')]!==_0x3421ed('0x1830')){_0x1cf726[_0x3421ed('0x19fd')]=_0x3421ed('0xa8d');const _0x528023=_0x1cf726[_0x3421ed('0x507')][_0x3421ed('0x507')][_0x3421ed('0xaf8')](','),_0x1fbb50=_0x528023[0x0],_0xcd08a7=_0x528023[0x1],_0x347c83=_0x528023[0x2],_0x15744e=_0x528023[0x3];if(_0x1fbb50!=='*'){const _0x5eaeab=_0x1fbb50[_0x3421ed('0xaf8')]('-')[0x0],_0x3ceb86=_0x1fbb50[_0x3421ed('0xaf8')]('-')[0x1];let _0xd2c7d0;_0xd2c7d0=new Date(),_0xd2c7d0['setHours'](Number(_0x5eaeab['split'](':')[0x0])),_0xd2c7d0[_0x3421ed('0x7b6')](Number(_0x5eaeab[_0x3421ed('0xaf8')](':')[0x1])),_0x1cf726[_0x3421ed('0x269b')]=_0xd2c7d0,_0xd2c7d0=new Date(),_0xd2c7d0[_0x3421ed('0x29e')](Number(_0x3ceb86[_0x3421ed('0xaf8')](':')[0x0])),_0xd2c7d0[_0x3421ed('0x7b6')](Number(_0x3ceb86[_0x3421ed('0xaf8')](':')[0x1])),_0x1cf726[_0x3421ed('0x19e5')]=_0xd2c7d0;}_0xcd08a7!=='*'&&(_0x1cf726[_0x3421ed('0x126e')]=_0xcd08a7['split']('-')[0x0],_0x1cf726['dayOfWeekTo']=_0xcd08a7[_0x3421ed('0xaf8')]('-')[0x1]),_0x347c83!=='*'&&(_0x1cf726[_0x3421ed('0xecd')]=_0x347c83['split']('-')[0x0],_0x1cf726[_0x3421ed('0x1883')]=_0x347c83[_0x3421ed('0xaf8')]('-')[0x1]),_0x15744e!=='*'&&(_0x1cf726[_0x3421ed('0xad3')]=_0x15744e[_0x3421ed('0xaf8')]('-')[0x0],_0x1cf726['monthTo']=_0x15744e[_0x3421ed('0xaf8')]('-')[0x1]);}else _0x1cf726[_0x3421ed('0x19fd')]='always';}_0x550919[_0x3421ed('0x1ab3')]['id']&&!_0x1cf726['interval'][_0x3421ed('0x1cf1')]&&(_0x1cf726[_0x3421ed('0x507')][_0x3421ed('0x6b4')]=_0x550919['params']['id']);_0x1cf726['interval']['IntervalId']&&_0x1cf726['interval'][_0x3421ed('0x1cf1')]&&(_0x1cf726[_0x3421ed('0x19fd')]=_0x3421ed('0x257d'));_0x1cf726[_0x3421ed('0x119a')]=_0x3a0032,_0x1cf726[_0x3421ed('0x26c6')]=_0x9a3a08,_0x1cf726[_0x3421ed('0xc4e')]=_0x14e777;_0x1cf726[_0x3421ed('0x507')][_0x3421ed('0x1cf1')]&&(_0x109074[_0x3421ed('0x4ee')](_0x3421ed('0xf45'))?_0x184d98[_0x3421ed('0x507')][_0x3421ed('0xbaa')]({'fields':'id,name,interval,IntervalId','IntervalId':_0x3421ed('0xb5f'),'nolimit':!![]})['$promise']['then'](function(_0x79d53c){const _0x33a26c=_0x3421ed;_0x1cf726[_0x33a26c('0xe82')]=_0x79d53c[_0x33a26c('0x19b2')]||[];})[_0x3421ed('0x151d')](function(_0x6552d5){const _0x1dceaa=_0x3421ed;_0x1c025d[_0x1dceaa('0x255')]({'title':_0x6552d5[_0x1dceaa('0xff9')]?'API:'+_0x6552d5[_0x1dceaa('0xff9')]+_0x1dceaa('0xb0b')+_0x6552d5[_0x1dceaa('0x212f')]:_0x1dceaa('0x611'),'msg':_0x6552d5[_0x1dceaa('0x4e8')]?JSON[_0x1dceaa('0x3e')](_0x6552d5[_0x1dceaa('0x4e8')]):_0x6552d5[_0x1dceaa('0xaab')]()});}):_0x184d98[_0x3421ed('0x507')][_0x3421ed('0xbaa')]({'fields':_0x3421ed('0x1af5'),'IntervalId':'null','nolimit':!![]})[_0x3421ed('0x1549')]['then'](function(_0x438cdf){const _0x5b54b2=_0x3421ed;_0x1cf726[_0x5b54b2('0xe82')]=_0x438cdf[_0x5b54b2('0x19b2')]||[];})['then'](function(){const _0x5153e1=_0x3421ed;return _0x184d98[_0x5153e1('0x1d63')]['get']({'userProfileId':_0x1cf726[_0x5153e1('0x32a')]['userProfileId'],'sectionId':0x3ec})[_0x5153e1('0x1549')];})['then'](function(_0x45b1ac){const _0x502638=_0x3421ed,_0x226486=_0x45b1ac&&_0x45b1ac['rows']?_0x45b1ac[_0x502638('0x19b2')][0x0]:null;if(!_0x226486)_0x1cf726[_0x502638('0xe82')]=[];else{if(!_0x226486[_0x502638('0xf11')])return _0x184d98[_0x502638('0x26d1')]['get']({'sectionId':_0x226486['id']})['$promise'][_0x502638('0x11bf')](function(_0x46e96c){const _0x4938af=_0x502638,_0x4d729c=_0x46e96c&&_0x46e96c['rows']?_0x46e96c[_0x4938af('0x19b2')]:[],_0xcc2c9c=[];let _0x4c30cd=null;_0x1cf726['interval']&&(_0x4c30cd=_0x36f548()[_0x4938af('0x1ad4')](_0x1cf726[_0x4938af('0xe82')],{'name':_0x1cf726[_0x4938af('0x507')][_0x4938af('0x6b4')]})),_0x4c30cd&&!_0x36f548()[_0x4938af('0x1cb3')](_0x4d729c,[_0x4938af('0x15a5'),_0x4c30cd['id']])&&_0x1cf726[_0x4938af('0xe82')]['forEach'](function(_0x7bd74f){_0x7bd74f['id']===_0x4c30cd['id']&&(_0x7bd74f['canSelect']=![],_0xcc2c9c['push'](_0x7bd74f));}),_0x1cf726[_0x4938af('0xe82')]=_0xcc2c9c;});}})['catch'](function(_0x306b51){const _0x19b5fd=_0x3421ed;_0x1c025d[_0x19b5fd('0x255')]({'title':_0x306b51[_0x19b5fd('0xff9')]?_0x19b5fd('0x574')+_0x306b51[_0x19b5fd('0xff9')]+'\x20-\x20'+_0x306b51[_0x19b5fd('0x212f')]:_0x19b5fd('0x611'),'msg':_0x306b51[_0x19b5fd('0x4e8')]?JSON[_0x19b5fd('0x3e')](_0x306b51[_0x19b5fd('0x4e8')]):_0x306b51[_0x19b5fd('0xaab')]()});}));function _0x4b2257(){const _0x9e9c30=_0x3421ed;switch(_0x1cf726['type']){case _0x9e9c30('0x27e5'):case'list':return'*,*,*,*';case _0x9e9c30('0xa8d'):{const _0x38d879=[];if(_0x1cf726[_0x9e9c30('0x269b')]!=='*'&&_0x1cf726['timeRangeFrom']&&_0x1cf726[_0x9e9c30('0x19e5')]){const _0xefcfb=(_0x1cf726[_0x9e9c30('0x269b')][_0x9e9c30('0x1e34')]()<0xa?'0':'')+_0x1cf726['timeRangeFrom'][_0x9e9c30('0x1e34')]()+':'+((_0x1cf726[_0x9e9c30('0x269b')][_0x9e9c30('0xdcc')]()<0xa?'0':'')+_0x1cf726[_0x9e9c30('0x269b')]['getMinutes']()),_0x21f93c=(_0x1cf726[_0x9e9c30('0x19e5')][_0x9e9c30('0x1e34')]()<0xa?'0':'')+_0x1cf726[_0x9e9c30('0x19e5')][_0x9e9c30('0x1e34')]()+':'+((_0x1cf726[_0x9e9c30('0x19e5')][_0x9e9c30('0xdcc')]()<0xa?'0':'')+_0x1cf726['timeRangeTo'][_0x9e9c30('0xdcc')]());_0x38d879[_0x9e9c30('0x105d')](_0xefcfb+'-'+_0x21f93c);}else _0x38d879[_0x9e9c30('0x105d')]('*');return _0x1cf726[_0x9e9c30('0x126e')]?_0x1cf726['dayOfWeekTo']?_0x38d879[_0x9e9c30('0x105d')](_0x1cf726['dayOfWeekFrom']+'-'+_0x1cf726['dayOfWeekTo']):_0x38d879[_0x9e9c30('0x105d')](_0x1cf726[_0x9e9c30('0x126e')]):_0x38d879['push']('*'),_0x1cf726['monthDayFrom']?_0x1cf726[_0x9e9c30('0x1883')]?_0x38d879[_0x9e9c30('0x105d')](_0x1cf726[_0x9e9c30('0xecd')]+'-'+_0x1cf726[_0x9e9c30('0x1883')]):_0x38d879[_0x9e9c30('0x105d')](_0x1cf726[_0x9e9c30('0xecd')]):_0x38d879[_0x9e9c30('0x105d')]('*'),_0x1cf726[_0x9e9c30('0xad3')]?_0x1cf726[_0x9e9c30('0x1155')]?_0x38d879[_0x9e9c30('0x105d')](_0x1cf726['monthFrom']+'-'+_0x1cf726[_0x9e9c30('0x1155')]):_0x38d879[_0x9e9c30('0x105d')](_0x1cf726[_0x9e9c30('0xad3')]):_0x38d879[_0x9e9c30('0x105d')]('*'),_0x38d879[_0x9e9c30('0xa04')]();}}}function _0x3a0032(){const _0x4dc1bf=_0x3421ed;_0x1cf726[_0x4dc1bf('0x120f')]=[],_0x1cf726[_0x4dc1bf('0x507')][_0x4dc1bf('0x507')]=_0x4b2257(),_0x184d98[_0x4dc1bf('0x507')][_0x4dc1bf('0x259')](_0x1cf726[_0x4dc1bf('0x507')])['$promise'][_0x4dc1bf('0x11bf')](function(_0x4fdded){const _0xde72f7=_0x4dc1bf;_0x1cf726[_0xde72f7('0xe82')][_0xde72f7('0x105d')](_0x4fdded),_0x1c025d[_0xde72f7('0x2693')]({'title':'Interval\x20properly\x20created','msg':_0x1cf726[_0xde72f7('0x507')][_0xde72f7('0x1909')]?_0x1cf726[_0xde72f7('0x507')][_0xde72f7('0x1909')]+_0xde72f7('0x7fb'):''}),_0x14e777();})[_0x4dc1bf('0x151d')](function(_0x753267){const _0x123e6b=_0x4dc1bf;console[_0x123e6b('0x255')](_0x753267),_0x1cf726[_0x123e6b('0x120f')]=_0x753267['data'][_0x123e6b('0x120f')]||[{'message':_0x753267[_0x123e6b('0xaab')](),'type':'api.interval.save'}];});}function _0x9a3a08(){const _0xf24757=_0x3421ed;_0x1cf726[_0xf24757('0x120f')]=[],_0x1cf726[_0xf24757('0x507')][_0xf24757('0x507')]=_0x4b2257(),_0x1cf726[_0xf24757('0x507')][_0xf24757('0x1cf1')]?(_0x1cf726[_0xf24757('0x19fd')]!==_0xf24757('0x257d')&&(_0x1cf726[_0xf24757('0x507')]['IntervalId']=null),_0x14e777(_0x1cf726['interval'])):_0x184d98[_0xf24757('0x507')][_0xf24757('0x5ab')]({'id':_0x1cf726['interval']['id']},_0x1cf726[_0xf24757('0x507')])['$promise'][_0xf24757('0x11bf')](function(_0x13cd29){const _0x4a7da3=_0xf24757,_0x4cef85=_0x36f548()[_0x4a7da3('0x1ad4')](_0x1cf726[_0x4a7da3('0xe82')],{'id':_0x13cd29['id']});_0x4cef85&&_0x36f548()['merge'](_0x4cef85,_0x13cd29),_0x1c025d[_0x4a7da3('0x2693')]({'title':_0x4a7da3('0x1177'),'msg':_0x4a7da3('0x904')}),_0x14e777();})[_0xf24757('0x151d')](function(_0x1cc889){const _0x1f1269=_0xf24757;console[_0x1f1269('0x255')](_0x1cc889),_0x1cf726[_0x1f1269('0x120f')]=_0x1cc889[_0x1f1269('0x4e8')][_0x1f1269('0x120f')]||[{'message':_0x1cc889[_0x1f1269('0xaab')](),'type':_0x1f1269('0x3dd')}];});}function _0x14e777(_0x55f43b){const _0x4fd856=_0x3421ed;_0x3d6d65[_0x4fd856('0x237e')](_0x55f43b);}}const _0x3f07c0=_0x5bc72d;_0x131088['$inject']=['$mdDialog','$q','toasty','inboundrouteApp',_0x21d0f5('0x1e56'),'api',_0x21d0f5('0x1150'),_0x21d0f5('0xb25')];function _0x131088(_0x2ce5c6,_0x4d0cfa,_0x3e10e3,_0x792c5d,_0x12cc74,_0x4277cc,_0x1bc9cb,_0x2decd4){const _0x5f4cf3=_0x21d0f5,_0x18bbad=this;_0x18bbad[_0x5f4cf3('0x32a')]=_0x1bc9cb[_0x5f4cf3('0x2428')](),_0x18bbad[_0x5f4cf3('0x120f')]=[],_0x18bbad[_0x5f4cf3('0x134b')]=_0x5f4cf3('0x2306')+(_0x792c5d['appType']||_0x792c5d[_0x5f4cf3('0x18f5')])['toUpperCase'](),_0x18bbad['playback']=angular[_0x5f4cf3('0x6fb')](_0x792c5d),_0x18bbad[_0x5f4cf3('0xb25')]=_0x2decd4,_0x18bbad[_0x5f4cf3('0x2c9')]={};if(_0x18bbad['playback'][_0x5f4cf3('0x13fc')])switch(_0x18bbad[_0x5f4cf3('0x1c5b')][_0x5f4cf3('0x27c0')]?_0x18bbad[_0x5f4cf3('0x1c5b')][_0x5f4cf3('0x27c0')][_0x5f4cf3('0x20d5')]():_0x18bbad[_0x5f4cf3('0x1c5b')][_0x5f4cf3('0x18f5')][_0x5f4cf3('0x20d5')]()){case _0x5f4cf3('0xa8d'):break;case _0x5f4cf3('0x185e'):{const _0x119095=_0x18bbad['playback'][_0x5f4cf3('0x13fc')][_0x5f4cf3('0xaf8')](',');_0x18bbad[_0x5f4cf3('0x1c5b')]['key']=_0x119095[0x0],_0x18bbad['playback']['language']=_0x119095[0x1],_0x18bbad[_0x5f4cf3('0x1c5b')][_0x5f4cf3('0x1cbc')]=_0x119095[_0x5f4cf3('0x1b77')](0x2,_0x119095[_0x5f4cf3('0x1e22')])[_0x5f4cf3('0xa04')](',');}break;case _0x5f4cf3('0x21a8'):{const _0x1437bc=_0x18bbad[_0x5f4cf3('0x1c5b')]['appdata'][_0x5f4cf3('0xaf8')](',');_0x18bbad[_0x5f4cf3('0x1c5b')]['projectId']=_0x1437bc[0x0],_0x18bbad[_0x5f4cf3('0x1c5b')][_0x5f4cf3('0x1f91')]=_0x1437bc[0x1],_0x18bbad['playback'][_0x5f4cf3('0x1c6c')]=_0x1437bc[0x2],_0x18bbad['playback'][_0x5f4cf3('0xeff')]=_0x1437bc[0x3],_0x18bbad[_0x5f4cf3('0x1c5b')]['welcomemessage']=_0x1437bc[_0x5f4cf3('0x1b77')](0x4,_0x1437bc['length'])['join'](',');}break;case _0x5f4cf3('0x102c'):{const _0x4ec083=_0x18bbad[_0x5f4cf3('0x1c5b')][_0x5f4cf3('0x13fc')][_0x5f4cf3('0xaf8')](',');_0x18bbad[_0x5f4cf3('0x1c5b')][_0x5f4cf3('0x1a82')]=_0x4ec083[0x0],_0x18bbad[_0x5f4cf3('0x1c5b')][_0x5f4cf3('0x1422')]=_0x4ec083[0x1],_0x18bbad[_0x5f4cf3('0x1c5b')]['lexregion']=_0x4ec083[0x2],_0x18bbad[_0x5f4cf3('0x1c5b')][_0x5f4cf3('0x1e8f')]=_0x4ec083[0x3],_0x18bbad[_0x5f4cf3('0x1c5b')][_0x5f4cf3('0x1cbc')]=_0x4ec083[_0x5f4cf3('0x1b77')](0x4,_0x4ec083['length'])[_0x5f4cf3('0xa04')](',');}break;case'autoreply':{const _0x5e67d9=_0x18bbad[_0x5f4cf3('0x1c5b')][_0x5f4cf3('0x13fc')][_0x5f4cf3('0xaf8')](',');_0x18bbad['playback'][_0x5f4cf3('0x663')]=isNaN(_0x5e67d9[0x0])?_0x5e67d9[0x0]:parseInt(_0x5e67d9[0x0],0xa),_0x18bbad[_0x5f4cf3('0x1c5b')][_0x5f4cf3('0x25ed')]=_0x5e67d9[_0x5f4cf3('0x1b77')](0x1,_0x5e67d9['length'])['join'](',');}break;case _0x5f4cf3('0x1b86'):_0x18bbad[_0x5f4cf3('0x1c5b')]['text']=_0x18bbad[_0x5f4cf3('0x1c5b')][_0x5f4cf3('0x13fc')];break;case _0x5f4cf3('0xe50'):_0x18bbad[_0x5f4cf3('0x1c5b')][_0x5f4cf3('0x1909')]=_0x18bbad[_0x5f4cf3('0x1c5b')][_0x5f4cf3('0x13fc')][_0x5f4cf3('0xaf8')]('=')[0x0],_0x18bbad[_0x5f4cf3('0x1c5b')][_0x5f4cf3('0x10cc')]=_0x18bbad['playback'][_0x5f4cf3('0x13fc')]['split']('=')[0x1];break;case _0x5f4cf3('0x1efd'):_0x18bbad['playback'][_0x5f4cf3('0xef0')]=_0x18bbad[_0x5f4cf3('0x1c5b')][_0x5f4cf3('0x13fc')];break;default:{const _0x1bb2bf=_0x18bbad['playback']['appdata']['split'](',');_0x18bbad['playback'][_0x5f4cf3('0x13fc')]=_0x36f548()[_0x5f4cf3('0x1fc5')](_0x1bb2bf[0x0])?_0x1bb2bf[0x0]:isNaN(_0x1bb2bf[0x0])?_0x1bb2bf[0x0]:parseInt(_0x1bb2bf[0x0],0xa),_0x18bbad[_0x5f4cf3('0x1c5b')]['options']=_0x36f548()['isEmpty'](_0x1bb2bf[0x1])?_0x1bb2bf[0x1]:isNaN(_0x1bb2bf[0x1])?_0x1bb2bf[0x1]:parseInt(_0x1bb2bf[0x1],0xa);}break;}else{}_0x18bbad[_0x5f4cf3('0x1c5b')][_0x5f4cf3('0x19fd')]&&_0x18bbad['playback'][_0x5f4cf3('0x19fd')][_0x5f4cf3('0x20d5')]()==='outbound'&&_0x18bbad['playback'][_0x5f4cf3('0x27c0')][_0x5f4cf3('0x20d5')]()===_0x5f4cf3('0x1a64')&&(_0x18bbad[_0x5f4cf3('0x1c5b')][_0x5f4cf3('0x2137')]=_0x18bbad[_0x5f4cf3('0x1c5b')][_0x5f4cf3('0x1546')]?_0x18bbad['playback'][_0x5f4cf3('0x1546')]['split']('$')[0x0]:undefined,_0x18bbad[_0x5f4cf3('0x1c5b')][_0x5f4cf3('0x7d0')]=_0x18bbad[_0x5f4cf3('0x1c5b')][_0x5f4cf3('0xc38')]?_0x5f4cf3('0x83a')+_0x18bbad[_0x5f4cf3('0x1c5b')][_0x5f4cf3('0xc38')]:undefined);_0x18bbad[_0x5f4cf3('0x1051')]=_0x46faed,_0x18bbad[_0x5f4cf3('0xc4e')]=_0x5d9ad7,_0x1bc9cb[_0x5f4cf3('0x4ee')](_0x5f4cf3('0xf45'))?_0x4277cc[_0x5f4cf3('0x1d6e')][_0x5f4cf3('0xbaa')]({'fields':_0x5f4cf3('0xee1'),'sort':_0x5f4cf3('0x1909'),'nolimit':_0x5f4cf3('0x204c')})['$promise'][_0x5f4cf3('0x11bf')](function(_0x213d80){const _0x4d9daa=_0x5f4cf3;_0x18bbad['sounds']=_0x213d80[_0x4d9daa('0x19b2')]||[];})[_0x5f4cf3('0x151d')](function(_0xf95356){const _0x4ece0a=_0x5f4cf3;_0x3e10e3[_0x4ece0a('0x255')]({'title':_0xf95356[_0x4ece0a('0xff9')]?'API:'+_0xf95356[_0x4ece0a('0xff9')]+_0x4ece0a('0xb0b')+_0xf95356['statusText']:_0x4ece0a('0x17f6'),'msg':_0xf95356['data']?JSON[_0x4ece0a('0x3e')](_0xf95356['data']):_0xf95356[_0x4ece0a('0xaab')]()});}):_0x4277cc['sound'][_0x5f4cf3('0xbaa')]({'fields':_0x5f4cf3('0xee1'),'sort':_0x5f4cf3('0x1909'),'nolimit':_0x5f4cf3('0x204c')})[_0x5f4cf3('0x1549')][_0x5f4cf3('0x11bf')](function(_0x470b5c){const _0x2f9ffa=_0x5f4cf3;_0x18bbad['sounds']=_0x470b5c[_0x2f9ffa('0x19b2')]||[];})[_0x5f4cf3('0x11bf')](function(){const _0x556ebb=_0x5f4cf3;return _0x4277cc[_0x556ebb('0x1d63')]['get']({'userProfileId':_0x18bbad[_0x556ebb('0x32a')][_0x556ebb('0x781')],'sectionId':0x3ef})['$promise'];})[_0x5f4cf3('0x11bf')](function(_0x55e54a){const _0x188506=_0x5f4cf3,_0x225632=_0x55e54a&&_0x55e54a['rows']?_0x55e54a[_0x188506('0x19b2')][0x0]:null;if(!_0x225632){const _0x301188=[];let _0x26b122=null;_0x18bbad[_0x188506('0x1c5b')]&&(_0x26b122=_0x36f548()['find'](_0x18bbad['sounds'],{'save_name':_0x18bbad[_0x188506('0x1c5b')][_0x188506('0x1d6e')]}));for(let _0x4a8d61=0x0;_0x4a8d61<_0x18bbad[_0x188506('0x209a')][_0x188506('0x1e22')];_0x4a8d61++){_0x26b122&&_0x18bbad[_0x188506('0x209a')][_0x4a8d61]['id']===_0x26b122['id']&&(_0x18bbad[_0x188506('0x209a')][_0x4a8d61]['canSelect']=![],_0x301188[_0x188506('0x105d')](_0x18bbad[_0x188506('0x209a')][_0x4a8d61]));}_0x18bbad[_0x188506('0x209a')]=_0x301188;}else{if(!_0x225632[_0x188506('0xf11')])return _0x4277cc[_0x188506('0x26d1')][_0x188506('0xbaa')]({'sectionId':_0x225632['id']})[_0x188506('0x1549')][_0x188506('0x11bf')](function(_0x516fff){const _0x4ab70e=_0x188506,_0x18109c=_0x36f548()[_0x4ab70e('0x2171')](_0x516fff[_0x4ab70e('0x19b2')],function(_0x290a43){const _0x519022=_0x4ab70e;return _0x36f548()[_0x519022('0x1ad4')](_0x18bbad['sounds'],{'id':_0x290a43[_0x519022('0x15a5')]});});let _0x5c92c2=null;_0x18bbad[_0x4ab70e('0x1c5b')]&&(_0x5c92c2=_0x36f548()[_0x4ab70e('0x1ad4')](_0x18bbad[_0x4ab70e('0x209a')],{'save_name':_0x18bbad['playback']['sound']}));if(_0x5c92c2&&!_0x36f548()['some'](_0x18109c,['id',_0x5c92c2['id']])){const _0x37c93d=_0x36f548()['find'](_0x18bbad[_0x4ab70e('0x209a')],{'id':_0x5c92c2['id']});_0x37c93d['canSelect']=![],_0x18109c[_0x4ab70e('0x105d')](_0x37c93d);}_0x18bbad[_0x4ab70e('0x209a')]=_0x18109c;});}})[_0x5f4cf3('0x151d')](function(_0x3e4eb7){const _0x23b270=_0x5f4cf3;_0x3e10e3[_0x23b270('0x255')]({'title':_0x3e4eb7[_0x23b270('0xff9')]?_0x23b270('0x574')+_0x3e4eb7['status']+'\x20-\x20'+_0x3e4eb7[_0x23b270('0x212f')]:_0x23b270('0x124'),'msg':_0x3e4eb7[_0x23b270('0x4e8')]?JSON[_0x23b270('0x3e')](_0x3e4eb7[_0x23b270('0x4e8')]):_0x3e4eb7[_0x23b270('0xaab')]()});});function _0x46faed(){const _0x275a77=_0x5f4cf3;_0x18bbad[_0x275a77('0x120f')]=[];const _0x58b4c6=[];_0x18bbad[_0x275a77('0x1c5b')][_0x275a77('0x19fd')]&&_0x18bbad[_0x275a77('0x1c5b')]['type'][_0x275a77('0x20d5')]()===_0x275a77('0x25b6')&&_0x18bbad[_0x275a77('0x1c5b')][_0x275a77('0x27c0')]===_0x275a77('0x1bf6')&&(_0x18bbad[_0x275a77('0x1c5b')]['phone']=_0x12cc74[_0x275a77('0x388')]?(_0x18bbad['playback']['prefix']||'')+'${EXTEN:'+_0x12cc74[_0x275a77('0x388')]+'}':(_0x18bbad[_0x275a77('0x1c5b')][_0x275a77('0x2137')]||'')+_0x275a77('0x1f76'),_0x12cc74[_0x275a77('0x897')]!==_0x275a77('0x3e6')?_0x18bbad['playback']['options'][_0x275a77('0x203c')](_0x275a77('0x22c9'))<0x0&&(_0x18bbad['playback']['options']+=_0x275a77('0x22c9')):_0x18bbad[_0x275a77('0x1c5b')][_0x275a77('0x249a')]=_0x18bbad[_0x275a77('0x1c5b')][_0x275a77('0x249a')][_0x275a77('0x814')](_0x275a77('0x22c9'),''));if(_0x18bbad[_0x275a77('0x1c5b')][_0x275a77('0x27c0')]&&_0x18bbad[_0x275a77('0x1c5b')][_0x275a77('0x27c0')]===_0x275a77('0xa8d')){}else switch((_0x18bbad['playback'][_0x275a77('0x18f5')]||_0x18bbad[_0x275a77('0x1c5b')]['appType'])[_0x275a77('0x20d5')]()){case _0x275a77('0xe50'):_0x18bbad[_0x275a77('0x1c5b')][_0x275a77('0x13fc')]=_0x18bbad[_0x275a77('0x1c5b')][_0x275a77('0x1909')]+'='+_0x18bbad[_0x275a77('0x1c5b')][_0x275a77('0x10cc')];break;case _0x275a77('0xa8d'):break;default:_0x58b4c6[0x0]=_0x18bbad[_0x275a77('0x1c5b')]['appdata'],_0x58b4c6[0x1]=_0x18bbad['playback'][_0x275a77('0x249a')],_0x18bbad[_0x275a77('0x1c5b')][_0x275a77('0x13fc')]=_0x58b4c6[_0x275a77('0xa04')](',');}_0x5d9ad7(_0x18bbad['playback']);}function _0x5d9ad7(_0x34446c){const _0x54fe31=_0x5f4cf3;_0x2ce5c6[_0x54fe31('0x237e')](_0x34446c);}}const _0x2916f1=_0x131088;_0xc725c2[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0x142d'),_0x21d0f5('0xfa8'),_0x21d0f5('0x1e56'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),_0x21d0f5('0xb25')];function _0xc725c2(_0x29b6e4,_0x1a027a,_0x2aa3f6,_0x57b862,_0x30abeb,_0x468721,_0x3a9685,_0x2647c9){const _0xf58fb8=_0x21d0f5,_0x351810=this;_0x351810[_0xf58fb8('0x32a')]=_0x3a9685[_0xf58fb8('0x2428')](),_0x351810['errors']=[],_0x351810[_0xf58fb8('0x134b')]=_0xf58fb8('0x2306')+(_0x57b862[_0xf58fb8('0x27c0')]||_0x57b862[_0xf58fb8('0x18f5')])[_0xf58fb8('0xa6f')](),_0x351810['queue']=angular[_0xf58fb8('0x6fb')](_0x57b862),_0x351810[_0xf58fb8('0xb25')]=_0x2647c9,_0x351810[_0xf58fb8('0x2c9')]={};if(_0x351810['queue']['appdata'])switch(_0x351810['queue'][_0xf58fb8('0x27c0')]?_0x351810[_0xf58fb8('0x150b')][_0xf58fb8('0x27c0')][_0xf58fb8('0x20d5')]():_0x351810['queue'][_0xf58fb8('0x18f5')][_0xf58fb8('0x20d5')]()){case _0xf58fb8('0xa8d'):break;case _0xf58fb8('0x185e'):{const _0x4ef84b=_0x351810[_0xf58fb8('0x150b')][_0xf58fb8('0x13fc')][_0xf58fb8('0xaf8')](',');_0x351810[_0xf58fb8('0x150b')]['key']=_0x4ef84b[0x0],_0x351810[_0xf58fb8('0x150b')][_0xf58fb8('0xeff')]=_0x4ef84b[0x1],_0x351810[_0xf58fb8('0x150b')][_0xf58fb8('0x1cbc')]=_0x4ef84b['slice'](0x2,_0x4ef84b['length'])[_0xf58fb8('0xa04')](',');}break;case _0xf58fb8('0x21a8'):{const _0x302a12=_0x351810['queue']['appdata'][_0xf58fb8('0xaf8')](',');_0x351810[_0xf58fb8('0x150b')][_0xf58fb8('0x20e')]=_0x302a12[0x0],_0x351810[_0xf58fb8('0x150b')][_0xf58fb8('0x1f91')]=_0x302a12[0x1],_0x351810[_0xf58fb8('0x150b')][_0xf58fb8('0x1c6c')]=_0x302a12[0x2],_0x351810[_0xf58fb8('0x150b')][_0xf58fb8('0xeff')]=_0x302a12[0x3],_0x351810[_0xf58fb8('0x150b')][_0xf58fb8('0x1cbc')]=_0x302a12[_0xf58fb8('0x1b77')](0x4,_0x302a12['length'])['join'](',');}break;case _0xf58fb8('0x102c'):{const _0x54f77b=_0x351810[_0xf58fb8('0x150b')][_0xf58fb8('0x13fc')][_0xf58fb8('0xaf8')](',');_0x351810[_0xf58fb8('0x150b')][_0xf58fb8('0x1a82')]=_0x54f77b[0x0],_0x351810['queue']['secretaccesskey']=_0x54f77b[0x1],_0x351810[_0xf58fb8('0x150b')][_0xf58fb8('0x165a')]=_0x54f77b[0x2],_0x351810['queue'][_0xf58fb8('0x1e8f')]=_0x54f77b[0x3],_0x351810[_0xf58fb8('0x150b')][_0xf58fb8('0x1cbc')]=_0x54f77b[_0xf58fb8('0x1b77')](0x4,_0x54f77b['length'])[_0xf58fb8('0xa04')](',');}break;case _0xf58fb8('0x187b'):{const _0x5b5d59=_0x351810[_0xf58fb8('0x150b')][_0xf58fb8('0x13fc')][_0xf58fb8('0xaf8')](',');_0x351810[_0xf58fb8('0x150b')][_0xf58fb8('0x663')]=isNaN(_0x5b5d59[0x0])?_0x5b5d59[0x0]:parseInt(_0x5b5d59[0x0],0xa),_0x351810['queue']['text']=_0x5b5d59[_0xf58fb8('0x1b77')](0x1,_0x5b5d59['length'])[_0xf58fb8('0xa04')](',');}break;case'message':_0x351810['queue']['text']=_0x351810[_0xf58fb8('0x150b')][_0xf58fb8('0x13fc')];break;case'set':_0x351810[_0xf58fb8('0x150b')][_0xf58fb8('0x1909')]=_0x351810['queue'][_0xf58fb8('0x13fc')][_0xf58fb8('0xaf8')]('=')[0x0],_0x351810['queue'][_0xf58fb8('0x10cc')]=_0x351810[_0xf58fb8('0x150b')]['appdata'][_0xf58fb8('0xaf8')]('=')[0x1];break;case'agi':_0x351810['queue'][_0xf58fb8('0xef0')]=_0x351810['queue'][_0xf58fb8('0x13fc')];break;default:{const _0x3d1d34=_0x351810[_0xf58fb8('0x150b')][_0xf58fb8('0x13fc')]['split'](',');_0x351810[_0xf58fb8('0x150b')][_0xf58fb8('0x150b')]=_0x36f548()[_0xf58fb8('0x1fc5')](_0x3d1d34[0x0])?_0x3d1d34[0x0]:isNaN(_0x3d1d34[0x0])?_0x3d1d34[0x0]:parseInt(_0x3d1d34[0x0],0xa),_0x351810[_0xf58fb8('0x150b')][_0xf58fb8('0x249a')]=_0x36f548()['isEmpty'](_0x3d1d34[0x1])?_0x3d1d34[0x1]:isNaN(_0x3d1d34[0x1])?_0x3d1d34[0x1]:parseInt(_0x3d1d34[0x1],0xa),_0x351810[_0xf58fb8('0x150b')][_0xf58fb8('0xc29')]=_0x36f548()[_0xf58fb8('0x1fc5')](_0x3d1d34[0x2])?_0x3d1d34[0x2]:isNaN(_0x3d1d34[0x2])?_0x3d1d34[0x2]:parseInt(_0x3d1d34[0x2],0xa),_0x351810[_0xf58fb8('0x150b')][_0xf58fb8('0x1d6e')]=_0x36f548()[_0xf58fb8('0x1fc5')](_0x3d1d34[0x3])?_0x3d1d34[0x3]:isNaN(_0x3d1d34[0x3])?_0x3d1d34[0x3]:parseInt(_0x3d1d34[0x3],0xa),_0x351810['queue'][_0xf58fb8('0xfbe')]=_0x36f548()['isEmpty'](_0x3d1d34[0x4])?_0x3d1d34[0x4]:isNaN(_0x3d1d34[0x4])?_0x3d1d34[0x4]:parseInt(_0x3d1d34[0x4],0xa),_0x351810[_0xf58fb8('0x150b')][_0xf58fb8('0x1efd')]=_0x36f548()['isEmpty'](_0x3d1d34[0x5])?_0x3d1d34[0x5]:isNaN(_0x3d1d34[0x5])?_0x3d1d34[0x5]:parseInt(_0x3d1d34[0x5],0xa),_0x351810['queue'][_0xf58fb8('0x2011')]=_0x36f548()[_0xf58fb8('0x1fc5')](_0x3d1d34[0x6])?_0x3d1d34[0x6]:isNaN(_0x3d1d34[0x6])?_0x3d1d34[0x6]:parseInt(_0x3d1d34[0x6],0xa),_0x351810[_0xf58fb8('0x150b')][_0xf58fb8('0x2341')]=_0x36f548()[_0xf58fb8('0x1fc5')](_0x3d1d34[0x7])?_0x3d1d34[0x7]:isNaN(_0x3d1d34[0x7])?_0x3d1d34[0x7]:parseInt(_0x3d1d34[0x7],0xa),_0x351810[_0xf58fb8('0x150b')][_0xf58fb8('0x1ec4')]=_0x36f548()[_0xf58fb8('0x1fc5')](_0x3d1d34[0x8])?_0x3d1d34[0x8]:isNaN(_0x3d1d34[0x8])?_0x3d1d34[0x8]:parseInt(_0x3d1d34[0x8],0xa),_0x351810[_0xf58fb8('0x150b')][_0xf58fb8('0x197')]=_0x36f548()[_0xf58fb8('0x1fc5')](_0x3d1d34[0x9])?_0x3d1d34[0x9]:isNaN(_0x3d1d34[0x9])?_0x3d1d34[0x9]:parseInt(_0x3d1d34[0x9],0xa);}break;}else{}_0x351810[_0xf58fb8('0x150b')][_0xf58fb8('0x19fd')]&&_0x351810['queue'][_0xf58fb8('0x19fd')][_0xf58fb8('0x20d5')]()===_0xf58fb8('0x25b6')&&_0x351810[_0xf58fb8('0x150b')][_0xf58fb8('0x27c0')][_0xf58fb8('0x20d5')]()==='outbounddial'&&(_0x351810[_0xf58fb8('0x150b')][_0xf58fb8('0x2137')]=_0x351810['queue']['phone']?_0x351810[_0xf58fb8('0x150b')][_0xf58fb8('0x1546')]['split']('$')[0x0]:undefined,_0x351810['queue'][_0xf58fb8('0x7d0')]=_0x351810['queue'][_0xf58fb8('0xc38')]?_0xf58fb8('0x83a')+_0x351810[_0xf58fb8('0x150b')][_0xf58fb8('0xc38')]:undefined);_0x351810[_0xf58fb8('0x1051')]=_0x26e343,_0x351810['closeDialog']=_0x469f41,_0x3a9685[_0xf58fb8('0x4ee')]('admin')?_0x468721['sound']['get']({'fields':_0xf58fb8('0xee1'),'sort':_0xf58fb8('0x1909'),'nolimit':_0xf58fb8('0x204c')})[_0xf58fb8('0x1549')][_0xf58fb8('0x11bf')](function(_0x313277){const _0x47ac4d=_0xf58fb8;_0x351810[_0x47ac4d('0x209a')]=_0x313277[_0x47ac4d('0x19b2')]||[];})[_0xf58fb8('0x151d')](function(_0x340445){const _0x4aad0d=_0xf58fb8;_0x2aa3f6[_0x4aad0d('0x255')]({'title':_0x340445[_0x4aad0d('0xff9')]?_0x4aad0d('0x574')+_0x340445[_0x4aad0d('0xff9')]+_0x4aad0d('0xb0b')+_0x340445['statusText']:_0x4aad0d('0x17f6'),'msg':_0x340445[_0x4aad0d('0x4e8')]?JSON['stringify'](_0x340445['data']):_0x340445['toString']()});}):_0x468721['sound'][_0xf58fb8('0xbaa')]({'fields':_0xf58fb8('0xee1'),'sort':'name','nolimit':'true'})[_0xf58fb8('0x1549')]['then'](function(_0x259346){const _0x542ed3=_0xf58fb8;_0x351810[_0x542ed3('0x209a')]=_0x259346[_0x542ed3('0x19b2')]||[];})[_0xf58fb8('0x11bf')](function(){const _0x2fd792=_0xf58fb8;return _0x468721[_0x2fd792('0x1d63')][_0x2fd792('0xbaa')]({'userProfileId':_0x351810[_0x2fd792('0x32a')][_0x2fd792('0x781')],'sectionId':0x3ef})[_0x2fd792('0x1549')];})[_0xf58fb8('0x11bf')](function(_0x5397b6){const _0x3e5788=_0xf58fb8,_0x19b570=_0x5397b6&&_0x5397b6[_0x3e5788('0x19b2')]?_0x5397b6[_0x3e5788('0x19b2')][0x0]:null;if(!_0x19b570){const _0xb15d27=[];let _0x59614a=null;_0x351810[_0x3e5788('0x150b')]&&(_0x59614a=_0x36f548()['find'](_0x351810[_0x3e5788('0x209a')],{'save_name':_0x351810[_0x3e5788('0x150b')][_0x3e5788('0x1d6e')]}));for(let _0x2d9b9b=0x0;_0x2d9b9b<_0x351810[_0x3e5788('0x209a')][_0x3e5788('0x1e22')];_0x2d9b9b++){_0x59614a&&_0x351810['sounds'][_0x2d9b9b]['id']===_0x59614a['id']&&(_0x351810[_0x3e5788('0x209a')][_0x2d9b9b]['canSelect']=![],_0xb15d27[_0x3e5788('0x105d')](_0x351810[_0x3e5788('0x209a')][_0x2d9b9b]));}_0x351810[_0x3e5788('0x209a')]=_0xb15d27;}else{if(!_0x19b570[_0x3e5788('0xf11')])return _0x468721[_0x3e5788('0x26d1')][_0x3e5788('0xbaa')]({'sectionId':_0x19b570['id']})['$promise'][_0x3e5788('0x11bf')](function(_0x4d096e){const _0x37599b=_0x3e5788,_0x166526=_0x36f548()[_0x37599b('0x2171')](_0x4d096e[_0x37599b('0x19b2')],function(_0x2133f3){const _0x565719=_0x37599b;return _0x36f548()[_0x565719('0x1ad4')](_0x351810[_0x565719('0x209a')],{'id':_0x2133f3[_0x565719('0x15a5')]});});let _0x13ad5a=null;_0x351810[_0x37599b('0x150b')]&&(_0x13ad5a=_0x36f548()[_0x37599b('0x1ad4')](_0x351810[_0x37599b('0x209a')],{'save_name':_0x351810['queue']['sound']}));if(_0x13ad5a&&!_0x36f548()[_0x37599b('0x1cb3')](_0x166526,['id',_0x13ad5a['id']])){const _0x3e1e5d=_0x36f548()['find'](_0x351810[_0x37599b('0x209a')],{'id':_0x13ad5a['id']});_0x3e1e5d[_0x37599b('0x254a')]=![],_0x166526[_0x37599b('0x105d')](_0x3e1e5d);}_0x351810[_0x37599b('0x209a')]=_0x166526;});}})['catch'](function(_0x4b2751){const _0x42f654=_0xf58fb8;_0x2aa3f6[_0x42f654('0x255')]({'title':_0x4b2751[_0x42f654('0xff9')]?_0x42f654('0x574')+_0x4b2751[_0x42f654('0xff9')]+_0x42f654('0xb0b')+_0x4b2751[_0x42f654('0x212f')]:'SYSTEM:GETsounds','msg':_0x4b2751['data']?JSON['stringify'](_0x4b2751['data']):_0x4b2751[_0x42f654('0xaab')]()});}),_0x3a9685[_0xf58fb8('0x4ee')](_0xf58fb8('0xf45'))?_0x468721[_0xf58fb8('0x1043')][_0xf58fb8('0xbaa')]({'type':_0xf58fb8('0x18a2'),'fields':_0xf58fb8('0xde'),'sort':_0xf58fb8('0x1909'),'nolimit':'true'})[_0xf58fb8('0x1549')]['then'](function(_0x2b954a){const _0x9b5586=_0xf58fb8;_0x351810[_0x9b5586('0x1de3')]=_0x2b954a[_0x9b5586('0x19b2')]||[];})[_0xf58fb8('0x151d')](function(_0x632b63){const _0x16d6f4=_0xf58fb8;_0x2aa3f6[_0x16d6f4('0x255')]({'title':_0x632b63[_0x16d6f4('0xff9')]?_0x16d6f4('0x574')+_0x632b63[_0x16d6f4('0xff9')]+_0x16d6f4('0xb0b')+_0x632b63[_0x16d6f4('0x212f')]:_0x16d6f4('0x23e0'),'msg':_0x632b63['data']?JSON['stringify'](_0x632b63[_0x16d6f4('0x4e8')]):_0x632b63['toString']()});}):_0x468721[_0xf58fb8('0x1043')][_0xf58fb8('0xbaa')]({'type':'inbound','fields':_0xf58fb8('0xde'),'sort':'name','nolimit':_0xf58fb8('0x204c')})[_0xf58fb8('0x1549')]['then'](function(_0x5a17a2){const _0xe9129f=_0xf58fb8;_0x351810[_0xe9129f('0x1de3')]=_0x5a17a2[_0xe9129f('0x19b2')]||[];})[_0xf58fb8('0x11bf')](function(){const _0x487e2c=_0xf58fb8;return _0x468721['userProfileSection'][_0x487e2c('0xbaa')]({'userProfileId':_0x351810[_0x487e2c('0x32a')]['userProfileId'],'sectionId':0x191})[_0x487e2c('0x1549')];})[_0xf58fb8('0x11bf')](function(_0x548a5c){const _0x1da086=_0xf58fb8,_0x1d39a6=_0x548a5c&&_0x548a5c[_0x1da086('0x19b2')]?_0x548a5c[_0x1da086('0x19b2')][0x0]:null;if(!_0x1d39a6){const _0x4ce7ba=[];let _0x5f11aa=null;_0x351810[_0x1da086('0x150b')]&&(_0x5f11aa=_0x36f548()['find'](_0x351810[_0x1da086('0x1de3')],{'name':_0x351810[_0x1da086('0x150b')][_0x1da086('0x150b')]}));for(let _0x3b0cdb=0x0;_0x3b0cdb<_0x351810[_0x1da086('0x1de3')][_0x1da086('0x1e22')];_0x3b0cdb++){_0x5f11aa&&_0x351810[_0x1da086('0x1de3')][_0x3b0cdb]['id']===_0x5f11aa['id']&&(_0x351810[_0x1da086('0x1de3')][_0x3b0cdb]['canSelect']=![],_0x4ce7ba[_0x1da086('0x105d')](_0x351810['queues'][_0x3b0cdb]));}_0x351810['queues']=_0x4ce7ba;}else{if(!_0x1d39a6[_0x1da086('0xf11')])return _0x468721['userProfileResource'][_0x1da086('0xbaa')]({'sectionId':_0x1d39a6['id']})[_0x1da086('0x1549')][_0x1da086('0x11bf')](function(_0x4cba5c){const _0x53ff64=_0x1da086,_0x58628c=_0x36f548()[_0x53ff64('0x2171')](_0x4cba5c[_0x53ff64('0x19b2')],function(_0x54de4e){const _0x55ac7d=_0x53ff64;return _0x36f548()[_0x55ac7d('0x1ad4')](_0x351810['queues'],{'id':_0x54de4e[_0x55ac7d('0x15a5')]});});let _0x2d397c=null;_0x351810[_0x53ff64('0x150b')]&&(_0x2d397c=_0x36f548()[_0x53ff64('0x1ad4')](_0x351810[_0x53ff64('0x1de3')],{'name':_0x351810[_0x53ff64('0x150b')]['queue']}));if(_0x2d397c&&!_0x36f548()[_0x53ff64('0x1cb3')](_0x58628c,['id',_0x2d397c['id']])){const _0x3c75ec=_0x36f548()[_0x53ff64('0x1ad4')](_0x351810['queues'],{'id':_0x2d397c['id']});_0x3c75ec[_0x53ff64('0x254a')]=![],_0x58628c[_0x53ff64('0x105d')](_0x3c75ec);}_0x351810['queues']=_0x58628c;});}})[_0xf58fb8('0x151d')](function(_0x3aaa99){const _0x3c017d=_0xf58fb8;_0x2aa3f6[_0x3c017d('0x255')]({'title':_0x3aaa99[_0x3c017d('0xff9')]?_0x3c017d('0x574')+_0x3aaa99[_0x3c017d('0xff9')]+_0x3c017d('0xb0b')+_0x3aaa99[_0x3c017d('0x212f')]:_0x3c017d('0xebd'),'msg':_0x3aaa99[_0x3c017d('0x4e8')]?JSON[_0x3c017d('0x3e')](_0x3aaa99[_0x3c017d('0x4e8')]):_0x3aaa99[_0x3c017d('0xaab')]()});});function _0x26e343(){const _0x560358=_0xf58fb8;_0x351810['errors']=[];const _0x53d59e=[];_0x351810[_0x560358('0x150b')][_0x560358('0x19fd')]&&_0x351810['queue'][_0x560358('0x19fd')][_0x560358('0x20d5')]()===_0x560358('0x25b6')&&_0x351810[_0x560358('0x150b')]['appType']===_0x560358('0x1bf6')&&(_0x351810[_0x560358('0x150b')][_0x560358('0x1546')]=_0x30abeb['cutdigits']?(_0x351810[_0x560358('0x150b')][_0x560358('0x2137')]||'')+_0x560358('0x2100')+_0x30abeb[_0x560358('0x388')]+'}':(_0x351810[_0x560358('0x150b')]['prefix']||'')+'${EXTEN}',_0x30abeb[_0x560358('0x897')]!==_0x560358('0x3e6')?_0x351810[_0x560358('0x150b')][_0x560358('0x249a')][_0x560358('0x203c')]('U(xcally-mixmonitor-context)')<0x0&&(_0x351810[_0x560358('0x150b')]['options']+=_0x560358('0x22c9')):_0x351810['queue']['options']=_0x351810[_0x560358('0x150b')][_0x560358('0x249a')][_0x560358('0x814')](_0x560358('0x22c9'),''));if(_0x351810[_0x560358('0x150b')]['appType']&&_0x351810[_0x560358('0x150b')][_0x560358('0x27c0')]===_0x560358('0xa8d')){}else switch((_0x351810['queue']['app']||_0x351810['queue'][_0x560358('0x27c0')])[_0x560358('0x20d5')]()){case _0x560358('0xe50'):_0x351810['queue'][_0x560358('0x13fc')]=_0x351810['queue']['name']+'='+_0x351810['queue'][_0x560358('0x10cc')];break;case _0x560358('0xa8d'):break;default:_0x53d59e[0x0]=_0x351810[_0x560358('0x150b')]['queue'],_0x53d59e[0x1]=_0x351810[_0x560358('0x150b')]['options'],_0x53d59e[0x2]=_0x351810[_0x560358('0x150b')]['URL'],_0x53d59e[0x3]=_0x351810[_0x560358('0x150b')][_0x560358('0x1d6e')],_0x53d59e[0x4]=_0x351810[_0x560358('0x150b')][_0x560358('0xfbe')],_0x53d59e[0x5]=_0x351810['queue'][_0x560358('0x1efd')],_0x53d59e[0x6]=_0x351810[_0x560358('0x150b')]['macro'],_0x53d59e[0x7]=_0x351810[_0x560358('0x150b')][_0x560358('0x2341')],_0x53d59e[0x8]=_0x351810[_0x560358('0x150b')][_0x560358('0x1ec4')],_0x53d59e[0x9]=_0x351810[_0x560358('0x150b')][_0x560358('0x197')],_0x351810[_0x560358('0x150b')][_0x560358('0x13fc')]=_0x53d59e[_0x560358('0xa04')](',');}_0x469f41(_0x351810['queue']);}function _0x469f41(_0x4794ab){_0x29b6e4['hide'](_0x4794ab);}}const _0x388a0f=_0xc725c2;_0x11202e[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0x142d'),'inboundrouteApp',_0x21d0f5('0x1e56'),'api',_0x21d0f5('0x1150'),'crudPermissions'];function _0x11202e(_0x44171e,_0x5cd8e2,_0x76477f,_0x16038d,_0x1efecc,_0x383810,_0x3f321f,_0x11a906){const _0x3ec4ca=_0x21d0f5,_0x3cd02e=this;_0x3cd02e['currentUser']=_0x3f321f[_0x3ec4ca('0x2428')](),_0x3cd02e[_0x3ec4ca('0x120f')]=[],_0x3cd02e['title']=_0x3ec4ca('0x2306')+(_0x16038d[_0x3ec4ca('0x27c0')]||_0x16038d[_0x3ec4ca('0x18f5')])[_0x3ec4ca('0xa6f')](),_0x3cd02e['ringgroup']=angular[_0x3ec4ca('0x6fb')](_0x16038d),_0x3cd02e[_0x3ec4ca('0xb25')]=_0x11a906,_0x3cd02e[_0x3ec4ca('0x2c9')]={};if(_0x3cd02e[_0x3ec4ca('0xb4a')][_0x3ec4ca('0x13fc')])switch(_0x3cd02e[_0x3ec4ca('0xb4a')][_0x3ec4ca('0x27c0')]?_0x3cd02e['ringgroup']['appType'][_0x3ec4ca('0x20d5')]():_0x3cd02e[_0x3ec4ca('0xb4a')][_0x3ec4ca('0x18f5')][_0x3ec4ca('0x20d5')]()){case _0x3ec4ca('0xa8d'):break;case'dialogflow':{const _0x393780=_0x3cd02e[_0x3ec4ca('0xb4a')]['appdata'][_0x3ec4ca('0xaf8')](',');_0x3cd02e[_0x3ec4ca('0xb4a')][_0x3ec4ca('0xa0c')]=_0x393780[0x0],_0x3cd02e['ringgroup']['language']=_0x393780[0x1],_0x3cd02e['ringgroup'][_0x3ec4ca('0x1cbc')]=_0x393780[_0x3ec4ca('0x1b77')](0x2,_0x393780['length'])['join'](',');}break;case _0x3ec4ca('0x21a8'):{const _0x303970=_0x3cd02e[_0x3ec4ca('0xb4a')][_0x3ec4ca('0x13fc')][_0x3ec4ca('0xaf8')](',');_0x3cd02e[_0x3ec4ca('0xb4a')][_0x3ec4ca('0x20e')]=_0x303970[0x0],_0x3cd02e[_0x3ec4ca('0xb4a')][_0x3ec4ca('0x1f91')]=_0x303970[0x1],_0x3cd02e[_0x3ec4ca('0xb4a')]['privateKey']=_0x303970[0x2],_0x3cd02e['ringgroup']['language']=_0x303970[0x3],_0x3cd02e['ringgroup'][_0x3ec4ca('0x1cbc')]=_0x303970[_0x3ec4ca('0x1b77')](0x4,_0x303970['length'])[_0x3ec4ca('0xa04')](',');}break;case _0x3ec4ca('0x102c'):{const _0x513077=_0x3cd02e[_0x3ec4ca('0xb4a')][_0x3ec4ca('0x13fc')]['split'](',');_0x3cd02e[_0x3ec4ca('0xb4a')][_0x3ec4ca('0x1a82')]=_0x513077[0x0],_0x3cd02e[_0x3ec4ca('0xb4a')][_0x3ec4ca('0x1422')]=_0x513077[0x1],_0x3cd02e['ringgroup'][_0x3ec4ca('0x165a')]=_0x513077[0x2],_0x3cd02e[_0x3ec4ca('0xb4a')][_0x3ec4ca('0x1e8f')]=_0x513077[0x3],_0x3cd02e[_0x3ec4ca('0xb4a')][_0x3ec4ca('0x1cbc')]=_0x513077[_0x3ec4ca('0x1b77')](0x4,_0x513077[_0x3ec4ca('0x1e22')])[_0x3ec4ca('0xa04')](',');}break;case'autoreply':{const _0x3d3fa1=_0x3cd02e[_0x3ec4ca('0xb4a')][_0x3ec4ca('0x13fc')][_0x3ec4ca('0xaf8')](',');_0x3cd02e[_0x3ec4ca('0xb4a')][_0x3ec4ca('0x663')]=isNaN(_0x3d3fa1[0x0])?_0x3d3fa1[0x0]:parseInt(_0x3d3fa1[0x0],0xa),_0x3cd02e[_0x3ec4ca('0xb4a')][_0x3ec4ca('0x25ed')]=_0x3d3fa1[_0x3ec4ca('0x1b77')](0x1,_0x3d3fa1[_0x3ec4ca('0x1e22')])[_0x3ec4ca('0xa04')](',');}break;case _0x3ec4ca('0x1b86'):_0x3cd02e[_0x3ec4ca('0xb4a')][_0x3ec4ca('0x25ed')]=_0x3cd02e[_0x3ec4ca('0xb4a')][_0x3ec4ca('0x13fc')];break;case _0x3ec4ca('0xe50'):_0x3cd02e[_0x3ec4ca('0xb4a')][_0x3ec4ca('0x1909')]=_0x3cd02e[_0x3ec4ca('0xb4a')][_0x3ec4ca('0x13fc')][_0x3ec4ca('0xaf8')]('=')[0x0],_0x3cd02e[_0x3ec4ca('0xb4a')][_0x3ec4ca('0x10cc')]=_0x3cd02e[_0x3ec4ca('0xb4a')][_0x3ec4ca('0x13fc')][_0x3ec4ca('0xaf8')]('=')[0x1];break;case _0x3ec4ca('0x1efd'):_0x3cd02e[_0x3ec4ca('0xb4a')][_0x3ec4ca('0xef0')]=_0x3cd02e['ringgroup']['appdata'];break;default:{const _0x2c6cbd=_0x3cd02e[_0x3ec4ca('0xb4a')]['appdata'][_0x3ec4ca('0xaf8')](',');_0x3cd02e['ringgroup'][_0x3ec4ca('0x22a8')]=_0x2c6cbd[0x0][_0x3ec4ca('0xaf8')]('&'),_0x3cd02e[_0x3ec4ca('0xb4a')][_0x3ec4ca('0xfbe')]=_0x36f548()['isEmpty'](_0x2c6cbd[0x1])?_0x2c6cbd[0x1]:isNaN(_0x2c6cbd[0x1])?_0x2c6cbd[0x1]:parseInt(_0x2c6cbd[0x1],0xa),_0x3cd02e[_0x3ec4ca('0xb4a')][_0x3ec4ca('0x249a')]=_0x36f548()[_0x3ec4ca('0x1fc5')](_0x2c6cbd[0x2])?_0x2c6cbd[0x2]:isNaN(_0x2c6cbd[0x2])?_0x2c6cbd[0x2]:parseInt(_0x2c6cbd[0x2],0xa),_0x3cd02e[_0x3ec4ca('0xb4a')][_0x3ec4ca('0x259e')]=_0x36f548()[_0x3ec4ca('0x1fc5')](_0x2c6cbd[0x3])?_0x2c6cbd[0x3]:isNaN(_0x2c6cbd[0x3])?_0x2c6cbd[0x3]:parseInt(_0x2c6cbd[0x3],0xa);}break;}else{}_0x3cd02e[_0x3ec4ca('0xb4a')][_0x3ec4ca('0x19fd')]&&_0x3cd02e[_0x3ec4ca('0xb4a')][_0x3ec4ca('0x19fd')]['toLowerCase']()===_0x3ec4ca('0x25b6')&&_0x3cd02e[_0x3ec4ca('0xb4a')][_0x3ec4ca('0x27c0')]['toLowerCase']()===_0x3ec4ca('0x1a64')&&(_0x3cd02e[_0x3ec4ca('0xb4a')][_0x3ec4ca('0x2137')]=_0x3cd02e[_0x3ec4ca('0xb4a')][_0x3ec4ca('0x1546')]?_0x3cd02e[_0x3ec4ca('0xb4a')][_0x3ec4ca('0x1546')][_0x3ec4ca('0xaf8')]('$')[0x0]:undefined,_0x3cd02e[_0x3ec4ca('0xb4a')][_0x3ec4ca('0x7d0')]=_0x3cd02e['ringgroup']['callerID']?_0x3ec4ca('0x83a')+_0x3cd02e[_0x3ec4ca('0xb4a')][_0x3ec4ca('0xc38')]:undefined);_0x3cd02e[_0x3ec4ca('0x1051')]=_0x574840,_0x3cd02e[_0x3ec4ca('0xc4e')]=_0x131b90;const _0x24cf50=[{'id':0xca,'role':_0x3ec4ca('0x18c4')},{'id':0xcb,'role':_0x3ec4ca('0x2650')}];let _0xd4ef1e=null;_0x3f321f['hasRole'](_0x3ec4ca('0xf45'))?_0x383810[_0x3ec4ca('0x21d9')][_0x3ec4ca('0xbaa')]({'fields':_0x3ec4ca('0x1b7b'),'sort':'name','nolimit':_0x3ec4ca('0x204c')})[_0x3ec4ca('0x1549')]['then'](function(_0x2cf5ab){const _0x1afc94=_0x3ec4ca;_0x3cd02e[_0x1afc94('0x17c0')]=_0x2cf5ab[_0x1afc94('0x19b2')]||[];})[_0x3ec4ca('0x151d')](function(_0xa9ebf2){const _0xe0f074=_0x3ec4ca;_0x76477f[_0xe0f074('0x255')]({'title':_0xa9ebf2['status']?_0xe0f074('0x574')+_0xa9ebf2[_0xe0f074('0xff9')]+'\x20-\x20'+_0xa9ebf2[_0xe0f074('0x212f')]:_0xe0f074('0x16ea'),'msg':_0xa9ebf2[_0xe0f074('0x4e8')]?JSON[_0xe0f074('0x3e')](_0xa9ebf2[_0xe0f074('0x4e8')]):_0xa9ebf2[_0xe0f074('0xaab')]()});}):_0x383810[_0x3ec4ca('0x21d9')][_0x3ec4ca('0xbaa')]({'fields':_0x3ec4ca('0x1b7b'),'sort':_0x3ec4ca('0x1909'),'nolimit':'true'})[_0x3ec4ca('0x1549')][_0x3ec4ca('0x11bf')](function(_0x891675){_0xd4ef1e=_0x891675['rows']||[];})[_0x3ec4ca('0x11bf')](function(){const _0x3b9097=_0x3ec4ca,_0x14a0a0=[];for(let _0x2c5296=0x0;_0x2c5296<_0x24cf50[_0x3b9097('0x1e22')];_0x2c5296++){_0x14a0a0['push'](_0x383810[_0x3b9097('0x1d63')]['get']({'userProfileId':_0x3cd02e[_0x3b9097('0x32a')][_0x3b9097('0x781')],'sectionId':_0x24cf50[_0x2c5296]['id']})[_0x3b9097('0x1549')]);}return _0x5cd8e2[_0x3b9097('0x7c')](_0x14a0a0);})[_0x3ec4ca('0x11bf')](function(_0x5470fb){const _0xb4825e=_0x3ec4ca,_0x26272f=_0x36f548()['map'](_0x5470fb,function(_0xb05aee){const _0x45ab3c=a0_0xaf0c;return _0xb05aee&&_0xb05aee['rows']?_0xb05aee[_0x45ab3c('0x19b2')][0x0]:null;}),_0x794dbb=[];for(let _0x7be498=0x0;_0x7be498<_0x24cf50[_0xb4825e('0x1e22')];_0x7be498++){const _0x2284a8=_0x36f548()[_0xb4825e('0x1ad4')](_0x26272f,[_0xb4825e('0x24b2'),_0x24cf50[_0x7be498]['id']]);if(_0x2284a8){if(!_0x2284a8[_0xb4825e('0xf11')])_0x794dbb[_0xb4825e('0x105d')](_0x383810[_0xb4825e('0x26d1')]['get']({'sectionId':_0x2284a8['id']})[_0xb4825e('0x1549')]);else{const _0x172dbb=[];_0xd4ef1e[_0xb4825e('0x1f88')](function(_0x2cb4a2){const _0xd5b661=_0xb4825e;_0x2cb4a2[_0xd5b661('0x111d')]===_0x24cf50[_0x7be498][_0xd5b661('0x111d')]&&_0x172dbb['push'](_0x2cb4a2);}),_0x794dbb['push']({'rows':_0x172dbb,'count':_0x172dbb['length']});}}}return _0x5cd8e2[_0xb4825e('0x7c')](_0x794dbb);})[_0x3ec4ca('0x11bf')](function(_0x46a652){const _0x256a4a=_0x3ec4ca,_0x24449a=[];let _0x4a6bd8=null;_0x3cd02e['ringgroup']&&(_0x4a6bd8=_0x36f548()['find'](_0xd4ef1e,{'name':_0x3cd02e[_0x256a4a('0xb4a')][_0x256a4a('0x22a8')]}));for(let _0x29423c=0x0;_0x29423c<_0x46a652['length'];_0x29423c++){const _0x56bf5b=_0x46a652[_0x29423c][_0x256a4a('0x19b2')]||[];_0x56bf5b[_0x256a4a('0x1f88')](function(_0x5be542){const _0x2d0fd0=_0x256a4a;_0x24449a[_0x2d0fd0('0x105d')](_0x5be542);});}_0x4a6bd8&&!_0x36f548()[_0x256a4a('0x1cb3')](_0x24449a,[_0x256a4a('0x15a5'),_0x4a6bd8['id']])&&_0xd4ef1e[_0x256a4a('0x1f88')](function(_0x2ed492){const _0x30f360=_0x256a4a;_0x2ed492['id']===_0x4a6bd8['id']&&(_0x2ed492['canSelect']=![],_0x24449a[_0x30f360('0x105d')](_0x2ed492));}),_0x3cd02e[_0x256a4a('0x17c0')]=_0x24449a;})[_0x3ec4ca('0x151d')](function(_0x34e2ff){const _0x52dfc3=_0x3ec4ca;_0x76477f['error']({'title':_0x34e2ff[_0x52dfc3('0xff9')]?_0x52dfc3('0x574')+_0x34e2ff[_0x52dfc3('0xff9')]+_0x52dfc3('0xb0b')+_0x34e2ff[_0x52dfc3('0x212f')]:_0x52dfc3('0x1c2c'),'msg':_0x34e2ff[_0x52dfc3('0x4e8')]?JSON[_0x52dfc3('0x3e')](_0x34e2ff[_0x52dfc3('0x4e8')]):_0x34e2ff[_0x52dfc3('0xaab')]()});});function _0x574840(){const _0x31cee3=_0x3ec4ca;_0x3cd02e[_0x31cee3('0x120f')]=[];const _0x400cf3=[];_0x3cd02e['ringgroup'][_0x31cee3('0x19fd')]&&_0x3cd02e[_0x31cee3('0xb4a')]['type']['toLowerCase']()===_0x31cee3('0x25b6')&&_0x3cd02e['ringgroup'][_0x31cee3('0x27c0')]===_0x31cee3('0x1bf6')&&(_0x3cd02e[_0x31cee3('0xb4a')][_0x31cee3('0x1546')]=_0x1efecc[_0x31cee3('0x388')]?(_0x3cd02e[_0x31cee3('0xb4a')][_0x31cee3('0x2137')]||'')+_0x31cee3('0x2100')+_0x1efecc[_0x31cee3('0x388')]+'}':(_0x3cd02e[_0x31cee3('0xb4a')][_0x31cee3('0x2137')]||'')+_0x31cee3('0x1f76'),_0x1efecc[_0x31cee3('0x897')]!=='none'?_0x3cd02e[_0x31cee3('0xb4a')][_0x31cee3('0x249a')][_0x31cee3('0x203c')]('U(xcally-mixmonitor-context)')<0x0&&(_0x3cd02e[_0x31cee3('0xb4a')]['options']+=_0x31cee3('0x22c9')):_0x3cd02e['ringgroup'][_0x31cee3('0x249a')]=_0x3cd02e['ringgroup'][_0x31cee3('0x249a')]['replace']('U(xcally-mixmonitor-context)',''));if(_0x3cd02e[_0x31cee3('0xb4a')][_0x31cee3('0x27c0')]&&_0x3cd02e[_0x31cee3('0xb4a')]['appType']==='custom'){}else switch((_0x3cd02e[_0x31cee3('0xb4a')]['app']||_0x3cd02e[_0x31cee3('0xb4a')][_0x31cee3('0x27c0')])['toLowerCase']()){case _0x31cee3('0xe50'):_0x3cd02e[_0x31cee3('0xb4a')][_0x31cee3('0x13fc')]=_0x3cd02e[_0x31cee3('0xb4a')][_0x31cee3('0x1909')]+'='+_0x3cd02e[_0x31cee3('0xb4a')][_0x31cee3('0x10cc')];break;case _0x31cee3('0xa8d'):break;default:_0x400cf3[0x0]=_0x3cd02e['ringgroup'][_0x31cee3('0x22a8')][_0x31cee3('0xa04')]('&'),_0x400cf3[0x1]=_0x3cd02e['ringgroup'][_0x31cee3('0xfbe')],_0x400cf3[0x2]=_0x3cd02e[_0x31cee3('0xb4a')][_0x31cee3('0x249a')],_0x400cf3[0x3]=_0x3cd02e[_0x31cee3('0xb4a')][_0x31cee3('0x259e')],_0x3cd02e[_0x31cee3('0xb4a')][_0x31cee3('0x13fc')]=_0x400cf3[_0x31cee3('0xa04')](',');}_0x131b90(_0x3cd02e['ringgroup']);}function _0x131b90(_0x1697b0){const _0x2f141b=_0x3ec4ca;_0x44171e[_0x2f141b('0x237e')](_0x1697b0);}}const _0x32094b=_0x11202e;_0xb23f47['$inject']=[_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0x142d'),_0x21d0f5('0xfa8'),_0x21d0f5('0x1e56'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),_0x21d0f5('0xb25')];function _0xb23f47(_0x396715,_0x2fbc46,_0x4e9846,_0x4949a7,_0x449311,_0x1af34a,_0xb1b343,_0x3df4a1){const _0x12cbe3=_0x21d0f5,_0x5c0316=this;_0x5c0316[_0x12cbe3('0x32a')]=_0xb1b343['getCurrentUser'](),_0x5c0316[_0x12cbe3('0x120f')]=[],_0x5c0316[_0x12cbe3('0x134b')]=_0x12cbe3('0x2306')+(_0x4949a7['appType']||_0x4949a7[_0x12cbe3('0x18f5')])[_0x12cbe3('0xa6f')](),_0x5c0316[_0x12cbe3('0xe50')]=angular['copy'](_0x4949a7),_0x5c0316[_0x12cbe3('0xb25')]=_0x3df4a1,_0x5c0316[_0x12cbe3('0x2c9')]={};if(_0x5c0316[_0x12cbe3('0xe50')]['appdata'])switch(_0x5c0316['set'][_0x12cbe3('0x27c0')]?_0x5c0316[_0x12cbe3('0xe50')][_0x12cbe3('0x27c0')][_0x12cbe3('0x20d5')]():_0x5c0316[_0x12cbe3('0xe50')][_0x12cbe3('0x18f5')][_0x12cbe3('0x20d5')]()){case _0x12cbe3('0xa8d'):break;case _0x12cbe3('0x185e'):{const _0xc8cda=_0x5c0316[_0x12cbe3('0xe50')]['appdata'][_0x12cbe3('0xaf8')](',');_0x5c0316[_0x12cbe3('0xe50')]['key']=_0xc8cda[0x0],_0x5c0316[_0x12cbe3('0xe50')][_0x12cbe3('0xeff')]=_0xc8cda[0x1],_0x5c0316[_0x12cbe3('0xe50')]['welcomemessage']=_0xc8cda['slice'](0x2,_0xc8cda[_0x12cbe3('0x1e22')])[_0x12cbe3('0xa04')](',');}break;case _0x12cbe3('0x21a8'):{const _0x2ff307=_0x5c0316[_0x12cbe3('0xe50')]['appdata'][_0x12cbe3('0xaf8')](',');_0x5c0316['set']['projectId']=_0x2ff307[0x0],_0x5c0316[_0x12cbe3('0xe50')][_0x12cbe3('0x1f91')]=_0x2ff307[0x1],_0x5c0316[_0x12cbe3('0xe50')]['privateKey']=_0x2ff307[0x2],_0x5c0316[_0x12cbe3('0xe50')]['language']=_0x2ff307[0x3],_0x5c0316['set']['welcomemessage']=_0x2ff307[_0x12cbe3('0x1b77')](0x4,_0x2ff307[_0x12cbe3('0x1e22')])[_0x12cbe3('0xa04')](',');}break;case _0x12cbe3('0x102c'):{const _0x2e8a3b=_0x5c0316[_0x12cbe3('0xe50')][_0x12cbe3('0x13fc')][_0x12cbe3('0xaf8')](',');_0x5c0316[_0x12cbe3('0xe50')]['accesskeyid']=_0x2e8a3b[0x0],_0x5c0316[_0x12cbe3('0xe50')][_0x12cbe3('0x1422')]=_0x2e8a3b[0x1],_0x5c0316['set'][_0x12cbe3('0x165a')]=_0x2e8a3b[0x2],_0x5c0316[_0x12cbe3('0xe50')][_0x12cbe3('0x1e8f')]=_0x2e8a3b[0x3],_0x5c0316[_0x12cbe3('0xe50')][_0x12cbe3('0x1cbc')]=_0x2e8a3b[_0x12cbe3('0x1b77')](0x4,_0x2e8a3b[_0x12cbe3('0x1e22')])[_0x12cbe3('0xa04')](',');}break;case _0x12cbe3('0x187b'):{const _0x55c7a3=_0x5c0316[_0x12cbe3('0xe50')][_0x12cbe3('0x13fc')][_0x12cbe3('0xaf8')](',');_0x5c0316[_0x12cbe3('0xe50')][_0x12cbe3('0x663')]=isNaN(_0x55c7a3[0x0])?_0x55c7a3[0x0]:parseInt(_0x55c7a3[0x0],0xa),_0x5c0316[_0x12cbe3('0xe50')][_0x12cbe3('0x25ed')]=_0x55c7a3[_0x12cbe3('0x1b77')](0x1,_0x55c7a3[_0x12cbe3('0x1e22')])[_0x12cbe3('0xa04')](',');}break;case _0x12cbe3('0x1b86'):_0x5c0316['set']['text']=_0x5c0316[_0x12cbe3('0xe50')][_0x12cbe3('0x13fc')];break;case'set':_0x5c0316[_0x12cbe3('0xe50')][_0x12cbe3('0x1909')]=_0x5c0316['set'][_0x12cbe3('0x13fc')]['split']('=')[0x0],_0x5c0316[_0x12cbe3('0xe50')][_0x12cbe3('0x10cc')]=_0x5c0316['set'][_0x12cbe3('0x13fc')][_0x12cbe3('0xaf8')]('=')[0x1];break;case _0x12cbe3('0x1efd'):_0x5c0316[_0x12cbe3('0xe50')][_0x12cbe3('0xef0')]=_0x5c0316[_0x12cbe3('0xe50')][_0x12cbe3('0x13fc')];break;default:{const _0x366169=_0x5c0316[_0x12cbe3('0xe50')][_0x12cbe3('0x13fc')][_0x12cbe3('0xaf8')]('=');_0x5c0316[_0x12cbe3('0xe50')][_0x12cbe3('0x1909')]=_0x36f548()['isEmpty'](_0x366169[0x0])?_0x366169[0x0]:isNaN(_0x366169[0x0])?_0x366169[0x0]:parseInt(_0x366169[0x0],0xa),_0x5c0316['set'][_0x12cbe3('0x10cc')]=_0x36f548()[_0x12cbe3('0x1fc5')](_0x366169[0x1])?_0x366169[0x1]:isNaN(_0x366169[0x1])?_0x366169[0x1]:parseInt(_0x366169[0x1],0xa);}break;}else{}_0x5c0316[_0x12cbe3('0xe50')]['type']&&_0x5c0316[_0x12cbe3('0xe50')]['type'][_0x12cbe3('0x20d5')]()===_0x12cbe3('0x25b6')&&_0x5c0316[_0x12cbe3('0xe50')][_0x12cbe3('0x27c0')][_0x12cbe3('0x20d5')]()===_0x12cbe3('0x1a64')&&(_0x5c0316[_0x12cbe3('0xe50')]['prefix']=_0x5c0316['set'][_0x12cbe3('0x1546')]?_0x5c0316[_0x12cbe3('0xe50')]['phone'][_0x12cbe3('0xaf8')]('$')[0x0]:undefined,_0x5c0316[_0x12cbe3('0xe50')][_0x12cbe3('0x7d0')]=_0x5c0316[_0x12cbe3('0xe50')][_0x12cbe3('0xc38')]?_0x12cbe3('0x83a')+_0x5c0316[_0x12cbe3('0xe50')]['callerID']:undefined);_0x5c0316[_0x12cbe3('0x1051')]=_0x29b1fa,_0x5c0316[_0x12cbe3('0xc4e')]=_0x5a618b,_0xb1b343[_0x12cbe3('0x4ee')](_0x12cbe3('0xf45'))?_0x1af34a['variable']['get']({'fields':_0x12cbe3('0x721'),'sort':_0x12cbe3('0x1909'),'nolimit':_0x12cbe3('0x204c')})[_0x12cbe3('0x1549')][_0x12cbe3('0x11bf')](function(_0x96f6af){const _0x741bbc=_0x12cbe3;_0x5c0316[_0x741bbc('0x1700')]=_0x96f6af[_0x741bbc('0x19b2')]||[];})['catch'](function(_0x19640a){const _0x2927be=_0x12cbe3;_0x4e9846[_0x2927be('0x255')]({'title':_0x19640a[_0x2927be('0xff9')]?_0x2927be('0x574')+_0x19640a[_0x2927be('0xff9')]+_0x2927be('0xb0b')+_0x19640a[_0x2927be('0x212f')]:_0x2927be('0x1130'),'msg':_0x19640a[_0x2927be('0x4e8')]?JSON[_0x2927be('0x3e')](_0x19640a[_0x2927be('0x4e8')]):_0x19640a[_0x2927be('0xaab')]()});}):_0x1af34a[_0x12cbe3('0xb0')]['get']({'fields':_0x12cbe3('0x721'),'sort':_0x12cbe3('0x1909'),'nolimit':'true'})[_0x12cbe3('0x1549')][_0x12cbe3('0x11bf')](function(_0x44de60){const _0x2a0bae=_0x12cbe3;_0x5c0316[_0x2a0bae('0x1700')]=_0x44de60['rows']||[];})[_0x12cbe3('0x11bf')](function(){const _0x4db91e=_0x12cbe3;return _0x1af34a[_0x4db91e('0x1d63')][_0x4db91e('0xbaa')]({'userProfileId':_0x5c0316[_0x4db91e('0x32a')][_0x4db91e('0x781')],'sectionId':0x3f4})[_0x4db91e('0x1549')];})[_0x12cbe3('0x11bf')](function(_0x1bbe91){const _0x1c2181=_0x12cbe3,_0xfe1095=_0x1bbe91&&_0x1bbe91[_0x1c2181('0x19b2')]?_0x1bbe91[_0x1c2181('0x19b2')][0x0]:null;if(!_0xfe1095){const _0x46a3f8=[];let _0x4934fc=null;_0x5c0316[_0x1c2181('0xe50')]&&(_0x4934fc=_0x36f548()[_0x1c2181('0x1ad4')](_0x5c0316['variables'],{'name':_0x5c0316['set'][_0x1c2181('0x1909')]}));for(let _0xd52049=0x0;_0xd52049<_0x5c0316[_0x1c2181('0x1700')][_0x1c2181('0x1e22')];_0xd52049++){_0x4934fc&&_0x5c0316[_0x1c2181('0x1700')][_0xd52049]['id']===_0x4934fc['id']&&(_0x5c0316[_0x1c2181('0x1700')][_0xd52049][_0x1c2181('0x254a')]=![],_0x46a3f8['push'](_0x5c0316[_0x1c2181('0x1700')][_0xd52049]));}_0x5c0316[_0x1c2181('0x1700')]=_0x46a3f8;}else{if(!_0xfe1095['autoAssociation'])return _0x1af34a[_0x1c2181('0x26d1')][_0x1c2181('0xbaa')]({'sectionId':_0xfe1095['id']})[_0x1c2181('0x1549')]['then'](function(_0x4b7b87){const _0x3a3634=_0x1c2181,_0x2a1795=_0x36f548()[_0x3a3634('0x2171')](_0x4b7b87[_0x3a3634('0x19b2')],function(_0x1c0ec4){const _0x27a699=_0x3a3634;return _0x36f548()['find'](_0x5c0316['variables'],{'id':_0x1c0ec4[_0x27a699('0x15a5')]});});let _0x78a287=null;_0x5c0316[_0x3a3634('0xe50')]&&(_0x78a287=_0x36f548()[_0x3a3634('0x1ad4')](_0x5c0316[_0x3a3634('0x1700')],{'name':_0x5c0316[_0x3a3634('0xe50')][_0x3a3634('0x1909')]}));if(_0x78a287&&!_0x36f548()[_0x3a3634('0x1cb3')](_0x2a1795,['id',_0x78a287['id']])){const _0x27948d=_0x36f548()['find'](_0x5c0316[_0x3a3634('0x1700')],{'id':_0x78a287['id']});_0x27948d['canSelect']=![],_0x2a1795[_0x3a3634('0x105d')](_0x27948d);}_0x5c0316['variables']=_0x2a1795;});}})['catch'](function(_0x447bf1){const _0x4d43f8=_0x12cbe3;_0x4e9846[_0x4d43f8('0x255')]({'title':_0x447bf1[_0x4d43f8('0xff9')]?'API:'+_0x447bf1[_0x4d43f8('0xff9')]+_0x4d43f8('0xb0b')+_0x447bf1['statusText']:'SYSTEM:GETvariables','msg':_0x447bf1['data']?JSON[_0x4d43f8('0x3e')](_0x447bf1[_0x4d43f8('0x4e8')]):_0x447bf1[_0x4d43f8('0xaab')]()});});function _0x29b1fa(){const _0x201b44=_0x12cbe3;_0x5c0316['errors']=[];const _0x49f28f=[];_0x5c0316[_0x201b44('0xe50')]['type']&&_0x5c0316[_0x201b44('0xe50')][_0x201b44('0x19fd')][_0x201b44('0x20d5')]()==='outbound'&&_0x5c0316[_0x201b44('0xe50')][_0x201b44('0x27c0')]===_0x201b44('0x1bf6')&&(_0x5c0316[_0x201b44('0xe50')]['phone']=_0x449311['cutdigits']?(_0x5c0316[_0x201b44('0xe50')][_0x201b44('0x2137')]||'')+_0x201b44('0x2100')+_0x449311[_0x201b44('0x388')]+'}':(_0x5c0316[_0x201b44('0xe50')][_0x201b44('0x2137')]||'')+_0x201b44('0x1f76'),_0x449311[_0x201b44('0x897')]!==_0x201b44('0x3e6')?_0x5c0316[_0x201b44('0xe50')][_0x201b44('0x249a')][_0x201b44('0x203c')](_0x201b44('0x22c9'))<0x0&&(_0x5c0316[_0x201b44('0xe50')]['options']+=_0x201b44('0x22c9')):_0x5c0316['set'][_0x201b44('0x249a')]=_0x5c0316['set']['options'][_0x201b44('0x814')]('U(xcally-mixmonitor-context)',''));if(_0x5c0316[_0x201b44('0xe50')]['appType']&&_0x5c0316[_0x201b44('0xe50')][_0x201b44('0x27c0')]===_0x201b44('0xa8d')){}else switch((_0x5c0316['set'][_0x201b44('0x18f5')]||_0x5c0316[_0x201b44('0xe50')][_0x201b44('0x27c0')])[_0x201b44('0x20d5')]()){case _0x201b44('0xe50'):_0x5c0316[_0x201b44('0xe50')][_0x201b44('0x13fc')]=_0x5c0316[_0x201b44('0xe50')][_0x201b44('0x1909')]+'='+_0x5c0316['set'][_0x201b44('0x10cc')];break;case _0x201b44('0xa8d'):break;default:_0x49f28f[0x0]=_0x5c0316[_0x201b44('0xe50')][_0x201b44('0x1909')],_0x49f28f[0x1]=_0x5c0316['set']['value'],_0x5c0316[_0x201b44('0xe50')][_0x201b44('0x13fc')]=_0x49f28f[_0x201b44('0xa04')]('=');}_0x5a618b(_0x5c0316['set']);}function _0x5a618b(_0x319020){const _0x7cfa3d=_0x12cbe3;_0x396715[_0x7cfa3d('0x237e')](_0x319020);}}const _0x239347=_0xb23f47;_0x36b5df[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0x142d'),_0x21d0f5('0xfa8'),_0x21d0f5('0x1e56'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),'crudPermissions'];function _0x36b5df(_0x261e51,_0x20d7f2,_0x2882fb,_0x3f38b7,_0x468759,_0x3c2d20,_0x260079,_0x583bc5){const _0x1fdf84=_0x21d0f5,_0x1c1541=this;_0x1c1541[_0x1fdf84('0x32a')]=_0x260079[_0x1fdf84('0x2428')](),_0x1c1541[_0x1fdf84('0x120f')]=[],_0x1c1541[_0x1fdf84('0x134b')]=_0x1fdf84('0x2306')+(_0x3f38b7['appType']||_0x3f38b7[_0x1fdf84('0x18f5')])[_0x1fdf84('0xa6f')](),_0x1c1541[_0x1fdf84('0xa23')]=angular[_0x1fdf84('0x6fb')](_0x3f38b7),_0x1c1541[_0x1fdf84('0xb25')]=_0x583bc5,_0x1c1541['hasModulePermissions']={};if(_0x1c1541[_0x1fdf84('0xa23')][_0x1fdf84('0x13fc')])switch(_0x1c1541[_0x1fdf84('0xa23')]['appType']?_0x1c1541['voicemail']['appType'][_0x1fdf84('0x20d5')]():_0x1c1541[_0x1fdf84('0xa23')][_0x1fdf84('0x18f5')]['toLowerCase']()){case _0x1fdf84('0xa8d'):break;case _0x1fdf84('0x185e'):{const _0x4d24ce=_0x1c1541[_0x1fdf84('0xa23')][_0x1fdf84('0x13fc')][_0x1fdf84('0xaf8')](',');_0x1c1541[_0x1fdf84('0xa23')]['key']=_0x4d24ce[0x0],_0x1c1541[_0x1fdf84('0xa23')][_0x1fdf84('0xeff')]=_0x4d24ce[0x1],_0x1c1541['voicemail'][_0x1fdf84('0x1cbc')]=_0x4d24ce['slice'](0x2,_0x4d24ce[_0x1fdf84('0x1e22')])[_0x1fdf84('0xa04')](',');}break;case _0x1fdf84('0x21a8'):{const _0x32241b=_0x1c1541[_0x1fdf84('0xa23')][_0x1fdf84('0x13fc')]['split'](',');_0x1c1541[_0x1fdf84('0xa23')][_0x1fdf84('0x20e')]=_0x32241b[0x0],_0x1c1541[_0x1fdf84('0xa23')]['clientEmail']=_0x32241b[0x1],_0x1c1541[_0x1fdf84('0xa23')][_0x1fdf84('0x1c6c')]=_0x32241b[0x2],_0x1c1541[_0x1fdf84('0xa23')]['language']=_0x32241b[0x3],_0x1c1541[_0x1fdf84('0xa23')][_0x1fdf84('0x1cbc')]=_0x32241b[_0x1fdf84('0x1b77')](0x4,_0x32241b[_0x1fdf84('0x1e22')])[_0x1fdf84('0xa04')](',');}break;case _0x1fdf84('0x102c'):{const _0x24949b=_0x1c1541[_0x1fdf84('0xa23')][_0x1fdf84('0x13fc')][_0x1fdf84('0xaf8')](',');_0x1c1541[_0x1fdf84('0xa23')][_0x1fdf84('0x1a82')]=_0x24949b[0x0],_0x1c1541[_0x1fdf84('0xa23')][_0x1fdf84('0x1422')]=_0x24949b[0x1],_0x1c1541[_0x1fdf84('0xa23')][_0x1fdf84('0x165a')]=_0x24949b[0x2],_0x1c1541[_0x1fdf84('0xa23')][_0x1fdf84('0x1e8f')]=_0x24949b[0x3],_0x1c1541[_0x1fdf84('0xa23')][_0x1fdf84('0x1cbc')]=_0x24949b['slice'](0x4,_0x24949b[_0x1fdf84('0x1e22')])[_0x1fdf84('0xa04')](',');}break;case _0x1fdf84('0x187b'):{const _0x51113c=_0x1c1541[_0x1fdf84('0xa23')]['appdata'][_0x1fdf84('0xaf8')](',');_0x1c1541[_0x1fdf84('0xa23')][_0x1fdf84('0x663')]=isNaN(_0x51113c[0x0])?_0x51113c[0x0]:parseInt(_0x51113c[0x0],0xa),_0x1c1541[_0x1fdf84('0xa23')][_0x1fdf84('0x25ed')]=_0x51113c[_0x1fdf84('0x1b77')](0x1,_0x51113c[_0x1fdf84('0x1e22')])[_0x1fdf84('0xa04')](',');}break;case _0x1fdf84('0x1b86'):_0x1c1541[_0x1fdf84('0xa23')][_0x1fdf84('0x25ed')]=_0x1c1541[_0x1fdf84('0xa23')]['appdata'];break;case _0x1fdf84('0xe50'):_0x1c1541[_0x1fdf84('0xa23')][_0x1fdf84('0x1909')]=_0x1c1541[_0x1fdf84('0xa23')][_0x1fdf84('0x13fc')]['split']('=')[0x0],_0x1c1541[_0x1fdf84('0xa23')][_0x1fdf84('0x10cc')]=_0x1c1541[_0x1fdf84('0xa23')]['appdata'][_0x1fdf84('0xaf8')]('=')[0x1];break;case _0x1fdf84('0x1efd'):_0x1c1541[_0x1fdf84('0xa23')]['project']=_0x1c1541['voicemail'][_0x1fdf84('0x13fc')];break;default:{const _0x4f8639=_0x1c1541[_0x1fdf84('0xa23')][_0x1fdf84('0x13fc')]['split'](',');_0x1c1541[_0x1fdf84('0xa23')][_0x1fdf84('0x2516')]=_0x36f548()[_0x1fdf84('0x1fc5')](_0x4f8639[0x0])?_0x4f8639[0x0]:isNaN(_0x4f8639[0x0])?_0x4f8639[0x0]:parseInt(_0x4f8639[0x0],0xa),_0x1c1541[_0x1fdf84('0xa23')]['options']=_0x36f548()[_0x1fdf84('0x1fc5')](_0x4f8639[0x1])?_0x4f8639[0x1]:isNaN(_0x4f8639[0x1])?_0x4f8639[0x1]:parseInt(_0x4f8639[0x1],0xa);}break;}else{}_0x1c1541[_0x1fdf84('0xa23')][_0x1fdf84('0x19fd')]&&_0x1c1541[_0x1fdf84('0xa23')][_0x1fdf84('0x19fd')][_0x1fdf84('0x20d5')]()==='outbound'&&_0x1c1541[_0x1fdf84('0xa23')][_0x1fdf84('0x27c0')][_0x1fdf84('0x20d5')]()===_0x1fdf84('0x1a64')&&(_0x1c1541['voicemail'][_0x1fdf84('0x2137')]=_0x1c1541[_0x1fdf84('0xa23')]['phone']?_0x1c1541[_0x1fdf84('0xa23')][_0x1fdf84('0x1546')][_0x1fdf84('0xaf8')]('$')[0x0]:undefined,_0x1c1541[_0x1fdf84('0xa23')][_0x1fdf84('0x7d0')]=_0x1c1541[_0x1fdf84('0xa23')][_0x1fdf84('0xc38')]?_0x1fdf84('0x83a')+_0x1c1541['voicemail']['callerID']:undefined);_0x1c1541[_0x1fdf84('0x1051')]=_0x16efe4,_0x1c1541['closeDialog']=_0x397805,_0x260079['hasRole']('admin')?_0x3c2d20[_0x1fdf84('0x2516')][_0x1fdf84('0xbaa')]({'fields':_0x1fdf84('0x3d3'),'sort':_0x1fdf84('0x169b'),'nolimit':_0x1fdf84('0x204c')})[_0x1fdf84('0x1549')][_0x1fdf84('0x11bf')](function(_0x31b75c){_0x1c1541['voiceMails']=_0x31b75c['rows']||[];})[_0x1fdf84('0x151d')](function(_0x5c77e9){const _0x2a9ceb=_0x1fdf84;_0x2882fb['error']({'title':_0x5c77e9[_0x2a9ceb('0xff9')]?_0x2a9ceb('0x574')+_0x5c77e9['status']+_0x2a9ceb('0xb0b')+_0x5c77e9[_0x2a9ceb('0x212f')]:_0x2a9ceb('0x22e1'),'msg':_0x5c77e9[_0x2a9ceb('0x4e8')]?JSON[_0x2a9ceb('0x3e')](_0x5c77e9[_0x2a9ceb('0x4e8')]):_0x5c77e9[_0x2a9ceb('0xaab')]()});}):_0x3c2d20['voiceMail'][_0x1fdf84('0xbaa')]({'fields':_0x1fdf84('0x3d3'),'sort':_0x1fdf84('0x169b'),'nolimit':_0x1fdf84('0x204c')})[_0x1fdf84('0x1549')][_0x1fdf84('0x11bf')](function(_0x19b549){const _0x181920=_0x1fdf84;_0x1c1541[_0x181920('0xffe')]=_0x19b549[_0x181920('0x19b2')]||[];})['then'](function(){const _0x16a279=_0x1fdf84;return _0x3c2d20['userProfileSection'][_0x16a279('0xbaa')]({'userProfileId':_0x1c1541['currentUser'][_0x16a279('0x781')],'sectionId':0x196})[_0x16a279('0x1549')];})['then'](function(_0x1929de){const _0xda92a1=_0x1fdf84,_0x2ad90c=_0x1929de&&_0x1929de[_0xda92a1('0x19b2')]?_0x1929de[_0xda92a1('0x19b2')][0x0]:null;if(!_0x2ad90c){const _0x49f423=[];let _0x172593=null;_0x1c1541[_0xda92a1('0xa23')]&&(_0x172593=_0x36f548()[_0xda92a1('0x1ad4')](_0x1c1541['voiceMails'],{'mailbox':_0x1c1541['voicemail'][_0xda92a1('0x2516')]}));for(let _0x53515e=0x0;_0x53515e<_0x1c1541[_0xda92a1('0xffe')][_0xda92a1('0x1e22')];_0x53515e++){_0x172593&&_0x1c1541[_0xda92a1('0xffe')][_0x53515e]['id']===_0x172593['id']&&(_0x1c1541['voiceMails'][_0x53515e]['canSelect']=![],_0x49f423[_0xda92a1('0x105d')](_0x1c1541[_0xda92a1('0xffe')][_0x53515e]));}_0x1c1541['voiceMails']=_0x49f423;}else{if(!_0x2ad90c['autoAssociation'])return _0x3c2d20['userProfileResource'][_0xda92a1('0xbaa')]({'sectionId':_0x2ad90c['id']})[_0xda92a1('0x1549')]['then'](function(_0x4821d2){const _0x413e71=_0xda92a1,_0x22e15e=_0x36f548()[_0x413e71('0x2171')](_0x4821d2[_0x413e71('0x19b2')],function(_0x3a6a2f){const _0x10675b=_0x413e71;return _0x36f548()[_0x10675b('0x1ad4')](_0x1c1541[_0x10675b('0xffe')],{'id':_0x3a6a2f[_0x10675b('0x15a5')]});});let _0x5ed144=null;_0x1c1541[_0x413e71('0xa23')]&&(_0x5ed144=_0x36f548()[_0x413e71('0x1ad4')](_0x1c1541['voiceMails'],{'mailbox':_0x1c1541['voicemail'][_0x413e71('0x2516')]}));if(_0x5ed144&&!_0x36f548()[_0x413e71('0x1cb3')](_0x22e15e,['id',_0x5ed144['id']])){const _0xe5cfea=_0x36f548()['find'](_0x1c1541[_0x413e71('0xffe')],{'id':_0x5ed144['id']});_0xe5cfea[_0x413e71('0x254a')]=![],_0x22e15e['push'](_0xe5cfea);}_0x1c1541[_0x413e71('0xffe')]=_0x22e15e;});}})[_0x1fdf84('0x151d')](function(_0x54c1ad){const _0x381fb9=_0x1fdf84;_0x2882fb['error']({'title':_0x54c1ad[_0x381fb9('0xff9')]?_0x381fb9('0x574')+_0x54c1ad[_0x381fb9('0xff9')]+_0x381fb9('0xb0b')+_0x54c1ad['statusText']:_0x381fb9('0x1ebd'),'msg':_0x54c1ad['data']?JSON[_0x381fb9('0x3e')](_0x54c1ad[_0x381fb9('0x4e8')]):_0x54c1ad[_0x381fb9('0xaab')]()});});function _0x16efe4(){const _0x3fc7de=_0x1fdf84;_0x1c1541['errors']=[];const _0x54affe=[];_0x1c1541['voicemail']['type']&&_0x1c1541[_0x3fc7de('0xa23')]['type'][_0x3fc7de('0x20d5')]()===_0x3fc7de('0x25b6')&&_0x1c1541[_0x3fc7de('0xa23')]['appType']===_0x3fc7de('0x1bf6')&&(_0x1c1541[_0x3fc7de('0xa23')][_0x3fc7de('0x1546')]=_0x468759['cutdigits']?(_0x1c1541[_0x3fc7de('0xa23')][_0x3fc7de('0x2137')]||'')+'${EXTEN:'+_0x468759[_0x3fc7de('0x388')]+'}':(_0x1c1541['voicemail'][_0x3fc7de('0x2137')]||'')+'${EXTEN}',_0x468759['recordingFormat']!==_0x3fc7de('0x3e6')?_0x1c1541['voicemail'][_0x3fc7de('0x249a')][_0x3fc7de('0x203c')](_0x3fc7de('0x22c9'))<0x0&&(_0x1c1541[_0x3fc7de('0xa23')][_0x3fc7de('0x249a')]+=_0x3fc7de('0x22c9')):_0x1c1541[_0x3fc7de('0xa23')]['options']=_0x1c1541[_0x3fc7de('0xa23')][_0x3fc7de('0x249a')]['replace'](_0x3fc7de('0x22c9'),''));if(_0x1c1541[_0x3fc7de('0xa23')][_0x3fc7de('0x27c0')]&&_0x1c1541[_0x3fc7de('0xa23')][_0x3fc7de('0x27c0')]===_0x3fc7de('0xa8d')){}else switch((_0x1c1541['voicemail'][_0x3fc7de('0x18f5')]||_0x1c1541[_0x3fc7de('0xa23')][_0x3fc7de('0x27c0')])[_0x3fc7de('0x20d5')]()){case _0x3fc7de('0xe50'):_0x1c1541[_0x3fc7de('0xa23')][_0x3fc7de('0x13fc')]=_0x1c1541[_0x3fc7de('0xa23')][_0x3fc7de('0x1909')]+'='+_0x1c1541['voicemail'][_0x3fc7de('0x10cc')];break;case _0x3fc7de('0xa8d'):break;default:_0x54affe[0x0]=_0x1c1541[_0x3fc7de('0xa23')][_0x3fc7de('0x2516')],_0x54affe[0x1]=_0x1c1541[_0x3fc7de('0xa23')]['options'],_0x1c1541[_0x3fc7de('0xa23')][_0x3fc7de('0x13fc')]=_0x54affe[_0x3fc7de('0xa04')](',');}_0x397805(_0x1c1541[_0x3fc7de('0xa23')]);}function _0x397805(_0x2f0fb6){const _0x143f61=_0x1fdf84;_0x261e51[_0x143f61('0x237e')](_0x2f0fb6);}}const _0x3d5dd4=_0x36b5df;_0x24658e[_0x21d0f5('0x1e9a')]=['$state',_0x21d0f5('0x16b9'),_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),_0x21d0f5('0xb6b'),'license',_0x21d0f5('0x23e1'),'api','toasty',_0x21d0f5('0x1150'),_0x21d0f5('0x1e56'),_0x21d0f5('0x1d63')];function _0x24658e(_0x297f89,_0x18c11b,_0x3f02f2,_0x4e8e25,_0x3ff318,_0x136fd8,_0x324b2a,_0x76deb9,_0x750504,_0x4d9757,_0x2776f5,_0x33c77b){const _0x4d722a=_0x21d0f5,_0x2ca8eb=this;_0x2ca8eb[_0x4d722a('0x32a')]=_0x4d9757[_0x4d722a('0x2428')](),_0x2ca8eb[_0x4d722a('0x17ff')]=_0x136fd8,_0x2ca8eb[_0x4d722a('0x23e1')]=_0x324b2a,_0x2ca8eb['passwordPattern']=_0x2ca8eb['setting'][_0x4d722a('0x1d4')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2ca8eb[_0x4d722a('0x1d9a')]=_0x18c11b['protocol']()+'://'+_0x18c11b['host'](),_0x2ca8eb['inboundroute']=_0x2776f5||_0x297f89[_0x4d722a('0x1ab3')][_0x4d722a('0x1e56')]||{},_0x2ca8eb['userProfileSection']=_0x33c77b&&_0x33c77b[_0x4d722a('0x27d2')]==0x1?_0x33c77b[_0x4d722a('0x19b2')][0x0]:null,_0x2ca8eb['crudPermissions']=_0x4d9757['parseCrudPermissions'](_0x2ca8eb[_0x4d722a('0x1d63')]?_0x2ca8eb[_0x4d722a('0x1d63')][_0x4d722a('0xb25')]:null),_0x2ca8eb[_0x4d722a('0x2c9')]={},_0x2ca8eb[_0x4d722a('0x1179')]=_0x297f89[_0x4d722a('0x1ab3')][_0x4d722a('0x205c')]||0x0,_0x2ca8eb[_0x4d722a('0xb30')]=_0x750504[_0x4d722a('0x870')],_0x2ca8eb['gotoInboundRoutes']=_0x530f73,_0x2ca8eb[_0x4d722a('0xd05')]=_0x3643ee,_0x4d9757['hasRole'](_0x4d722a('0xf45'))?_0x76deb9[_0x4d722a('0x1279')]['get']({'fields':'id,name','sort':'name','nolimit':_0x4d722a('0x204c')})[_0x4d722a('0x1549')][_0x4d722a('0x11bf')](function(_0x272e9b){const _0x4de17=_0x4d722a;_0x2ca8eb[_0x4de17('0x803')]=_0x272e9b[_0x4de17('0x19b2')]||[];})[_0x4d722a('0x151d')](function(_0x2046b3){const _0x39431e=_0x4d722a;_0x750504[_0x39431e('0x255')]({'title':_0x2046b3['status']?_0x39431e('0x574')+_0x2046b3[_0x39431e('0xff9')]+'\x20-\x20'+_0x2046b3[_0x39431e('0x212f')]:_0x39431e('0x348'),'msg':_0x2046b3[_0x39431e('0x4e8')]?JSON['stringify'](_0x2046b3['data']):_0x2046b3[_0x39431e('0xaab')]()});}):_0x76deb9[_0x4d722a('0x1279')][_0x4d722a('0xbaa')]({'fields':_0x4d722a('0x721'),'sort':_0x4d722a('0x1909'),'nolimit':_0x4d722a('0x204c')})[_0x4d722a('0x1549')][_0x4d722a('0x11bf')](function(_0x2a8c08){const _0x170b74=_0x4d722a;_0x2ca8eb[_0x170b74('0x803')]=_0x2a8c08['rows']||[];})[_0x4d722a('0x11bf')](function(){const _0x3542bc=_0x4d722a;return _0x76deb9['userProfileSection'][_0x3542bc('0xbaa')]({'userProfileId':_0x2ca8eb[_0x3542bc('0x32a')][_0x3542bc('0x781')],'sectionId':0x195})[_0x3542bc('0x1549')];})[_0x4d722a('0x11bf')](function(_0x5880aa){const _0x16b47b=_0x4d722a,_0x5a2f68=_0x5880aa&&_0x5880aa[_0x16b47b('0x19b2')]?_0x5880aa['rows'][0x0]:null;if(!_0x5a2f68)return _0x76deb9[_0x16b47b('0x1279')]['get']({'fields':_0x16b47b('0x721'),'sort':'name','nolimit':_0x16b47b('0x204c'),'defaultEntry':0x1})[_0x16b47b('0x1549')][_0x16b47b('0x11bf')](function(_0x3bd557){const _0x8b8fba=_0x16b47b;_0x2ca8eb[_0x8b8fba('0x803')]=_0x3bd557[_0x8b8fba('0x19b2')]||[];});else{if(!_0x5a2f68[_0x16b47b('0xf11')])return _0x76deb9[_0x16b47b('0x26d1')][_0x16b47b('0xbaa')]({'sectionId':_0x5a2f68['id']})[_0x16b47b('0x1549')]['then'](function(_0x7e4cff){const _0x45b29f=_0x16b47b,_0x41907e=_0x36f548()[_0x45b29f('0x2171')](_0x7e4cff['rows'],function(_0x24a585){const _0x505a82=_0x45b29f;return _0x36f548()[_0x505a82('0x1ad4')](_0x2ca8eb[_0x505a82('0x803')],{'id':_0x24a585['resourceId']});});let _0x2c95d9=null;_0x2ca8eb[_0x45b29f('0x1e56')]&&(_0x2c95d9=_0x36f548()[_0x45b29f('0x1ad4')](_0x2ca8eb['contexts'],{'name':_0x2ca8eb[_0x45b29f('0x1e56')][_0x45b29f('0x1c87')]}));if(_0x2c95d9&&!_0x36f548()['some'](_0x41907e,['id',_0x2c95d9['id']])){const _0x498967=_0x36f548()[_0x45b29f('0x1ad4')](_0x2ca8eb[_0x45b29f('0x803')],{'id':_0x2c95d9['id']});_0x498967[_0x45b29f('0x254a')]=![],_0x41907e[_0x45b29f('0x105d')](_0x498967);}_0x2ca8eb[_0x45b29f('0x803')]=_0x41907e;});}})[_0x4d722a('0x151d')](function(_0xab061a){const _0xd2594c=_0x4d722a;_0x750504[_0xd2594c('0x255')]({'title':_0xab061a['status']?'API:'+_0xab061a[_0xd2594c('0xff9')]+_0xd2594c('0xb0b')+_0xab061a['statusText']:'SYSTEM:GETcontexts','msg':_0xab061a[_0xd2594c('0x4e8')]?JSON[_0xd2594c('0x3e')](_0xab061a[_0xd2594c('0x4e8')]):_0xab061a[_0xd2594c('0xaab')]()});});function _0x530f73(){const _0x3b6e90=_0x4d722a;_0x297f89['go'](_0x3b6e90('0x2229'),{},{'reload':'app.voice.inboundroutes'});}function _0x3643ee(){const _0x3d875a=_0x4d722a;_0x76deb9[_0x3d875a('0x417')][_0x3d875a('0x5ab')]({'id':_0x2ca8eb[_0x3d875a('0x1e56')]['id']},_0x2ca8eb[_0x3d875a('0x1e56')])[_0x3d875a('0x1549')][_0x3d875a('0x11bf')](function(){const _0x37c09f=_0x3d875a;_0x750504[_0x37c09f('0x2693')]({'title':_0x37c09f('0x2'),'msg':_0x2ca8eb['inboundroute'][_0x37c09f('0x1909')]?_0x2ca8eb[_0x37c09f('0x1e56')][_0x37c09f('0x1909')]+_0x37c09f('0xd7'):''});})['catch'](function(_0x5399a7){const _0x2b8295=_0x3d875a;_0x750504[_0x2b8295('0x255')]({'title':_0x5399a7[_0x2b8295('0xff9')]?_0x2b8295('0x574')+_0x5399a7[_0x2b8295('0xff9')]+'\x20-\x20'+_0x5399a7[_0x2b8295('0x212f')]:_0x2b8295('0xc3d'),'msg':_0x5399a7['data']?JSON['stringify'](_0x5399a7[_0x2b8295('0x4e8')]):_0x5399a7['toString']()});});}}const _0x5256dc=_0x24658e,_0x4a8e5c=_0x351988['p']+'src/js/modules/main/apps/voice/views/inboundroutes/create/dialog.html/dialog.html';_0x5bd605[_0x21d0f5('0x1e9a')]=['$scope',_0x21d0f5('0x2143'),_0x21d0f5('0xcbc'),_0x21d0f5('0x18fe'),_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),_0x21d0f5('0x17f5'),_0x21d0f5('0xb6b'),_0x21d0f5('0x1ea5'),_0x21d0f5('0x25bc'),_0x21d0f5('0x1d63'),_0x21d0f5('0x12a5'),_0x21d0f5('0xda9'),'toasty',_0x21d0f5('0x1150'),_0x21d0f5('0x17ff'),'setting'];function _0x5bd605(_0x195755,_0xc9e2f3,_0x1c2037,_0x3ecfcf,_0x3b4753,_0x1bd16b,_0x1c9123,_0x4a4d39,_0x38d026,_0x23338d,_0x1de8c3,_0x257330,_0x300d79,_0x4a8bfc,_0x1377e9,_0x2b06d4,_0x4ac64d){const _0x443676=_0x21d0f5,_0x19cc98=this;_0x19cc98[_0x443676('0x17ff')]=_0x2b06d4,_0x19cc98[_0x443676('0x23e1')]=_0x4ac64d,_0x19cc98['currentUser']=_0x1377e9[_0x443676('0x2428')](),_0x19cc98['inboundroutes']=_0x38d026||{'count':0x0,'rows':[]},_0x19cc98['userProfile']=_0x23338d,_0x19cc98[_0x443676('0x1d63')]=_0x1de8c3&&_0x1de8c3['count']==0x1?_0x1de8c3[_0x443676('0x19b2')][0x0]:null,_0x19cc98[_0x443676('0xb25')]=_0x1377e9[_0x443676('0x1530')](_0x19cc98[_0x443676('0x1d63')]?_0x19cc98[_0x443676('0x1d63')][_0x443676('0xb25')]:null),_0x19cc98['table']=_0x443676('0x1ea5'),_0x19cc98[_0x443676('0x724')]='',_0x19cc98[_0x443676('0xe3c')]=null,_0x19cc98['selectedInboundRoutes']=[],_0x19cc98[_0x443676('0x1f2a')]={'fields':_0x443676('0xc11'),'type':_0x443676('0x18a2'),'sort':_0x443676('0x1c74'),'VoiceExtensionId':_0x443676('0xb5f'),'limit':0xa,'page':0x1},_0x19cc98[_0x443676('0x757')]=_0x5a3b33,_0x19cc98[_0x443676('0x549')]=_0x14f210,_0x19cc98['success']=_0xc344a8,_0x19cc98['getInboundRoutes']=_0x1e1797,_0x19cc98[_0x443676('0x7dc')]=_0x11e0ab,_0x19cc98[_0x443676('0xe0')]=_0x115754,_0x19cc98[_0x443676('0x13f9')]=_0x1fd808,_0x19cc98['deleteSelectedInboundRoutes']=_0x5d35c2,_0x19cc98[_0x443676('0x21a5')]=_0x259600,_0x19cc98['selectAllInboundRoutes']=_0x2c86b6,_0x1377e9[_0x443676('0x4ee')](_0x443676('0xf45'))?_0x257330['voiceContext']['get']({'fields':_0x443676('0x721'),'sort':'name','nolimit':_0x443676('0x204c')})[_0x443676('0x1549')][_0x443676('0x11bf')](function(_0x1d2aca){const _0x213765=_0x443676;_0x19cc98[_0x213765('0x803')]=_0x1d2aca['rows']||[];})[_0x443676('0x151d')](function(_0x520ac4){const _0x156954=_0x443676;_0x4a8bfc[_0x156954('0x255')]({'title':_0x520ac4['status']?_0x156954('0x574')+_0x520ac4[_0x156954('0xff9')]+_0x156954('0xb0b')+_0x520ac4['statusText']:_0x156954('0x348'),'msg':_0x520ac4['data']?JSON[_0x156954('0x3e')](_0x520ac4[_0x156954('0x4e8')]):_0x520ac4[_0x156954('0xaab')]()});}):_0x257330[_0x443676('0x1279')][_0x443676('0xbaa')]({'fields':_0x443676('0x721'),'sort':_0x443676('0x1909'),'nolimit':'true'})[_0x443676('0x1549')][_0x443676('0x11bf')](function(_0x566759){const _0x28305f=_0x443676;_0x19cc98[_0x28305f('0x803')]=_0x566759[_0x28305f('0x19b2')]||[];})[_0x443676('0x11bf')](function(){const _0x45e60d=_0x443676;return _0x257330[_0x45e60d('0x1d63')][_0x45e60d('0xbaa')]({'userProfileId':_0x19cc98['currentUser'][_0x45e60d('0x781')],'sectionId':0x195})[_0x45e60d('0x1549')];})[_0x443676('0x11bf')](function(_0x9c088f){const _0x37c885=_0x443676,_0x3308e8=_0x9c088f&&_0x9c088f[_0x37c885('0x19b2')]?_0x9c088f[_0x37c885('0x19b2')][0x0]:null;if(!_0x3308e8)return _0x257330['voiceContext'][_0x37c885('0xbaa')]({'fields':'id,name','sort':_0x37c885('0x1909'),'nolimit':_0x37c885('0x204c'),'defaultEntry':0x1})[_0x37c885('0x1549')]['then'](function(_0xda9d2){const _0x11f5a0=_0x37c885;_0x19cc98[_0x11f5a0('0x803')]=_0xda9d2['rows']||[];});else{if(!_0x3308e8[_0x37c885('0xf11')])return _0x257330[_0x37c885('0x26d1')][_0x37c885('0xbaa')]({'sectionId':_0x3308e8['id']})[_0x37c885('0x1549')][_0x37c885('0x11bf')](function(_0x13d038){const _0x32f5d4=_0x37c885,_0x20fc9e=_0x36f548()[_0x32f5d4('0x2171')](_0x13d038[_0x32f5d4('0x19b2')],function(_0x4bc574){const _0x3c6ebb=_0x32f5d4;return _0x36f548()[_0x3c6ebb('0x1ad4')](_0x19cc98[_0x3c6ebb('0x803')],{'id':_0x4bc574[_0x3c6ebb('0x15a5')]});});let _0x45da68=null;_0x19cc98[_0x32f5d4('0x1e56')]&&(_0x45da68=_0x36f548()[_0x32f5d4('0x1ad4')](_0x19cc98['contexts'],{'name':_0x19cc98[_0x32f5d4('0x1e56')][_0x32f5d4('0x1c87')]}));if(_0x45da68&&!_0x36f548()[_0x32f5d4('0x1cb3')](_0x20fc9e,['id',_0x45da68['id']])){const _0x381f3c=_0x36f548()[_0x32f5d4('0x1ad4')](_0x19cc98[_0x32f5d4('0x803')],{'id':_0x45da68['id']});_0x381f3c['canSelect']=![],_0x20fc9e[_0x32f5d4('0x105d')](_0x381f3c);}_0x19cc98[_0x32f5d4('0x803')]=_0x20fc9e;});}})[_0x443676('0x151d')](function(_0x10db72){const _0xeb0926=_0x443676;_0x4a8bfc[_0xeb0926('0x255')]({'title':_0x10db72[_0xeb0926('0xff9')]?'API:'+_0x10db72['status']+_0xeb0926('0xb0b')+_0x10db72['statusText']:'SYSTEM:GETcontexts','msg':_0x10db72[_0xeb0926('0x4e8')]?JSON[_0xeb0926('0x3e')](_0x10db72[_0xeb0926('0x4e8')]):_0x10db72[_0xeb0926('0xaab')]()});});function _0x5a3b33(_0x3b2460){const _0x3646f3=_0x443676;_0x1c2037['go'](_0x3646f3('0x1449'),{'id':_0x3b2460['id'],'inboundroute':_0x3b2460,'crudPermissions':_0x19cc98[_0x3646f3('0xb25')]});}function _0x14f210(_0xc22f64,_0x5be1c7){const _0xedfe5b=_0x443676,_0x48ab84=_0x3b4753[_0xedfe5b('0x132b')]()[_0xedfe5b('0x134b')](_0xedfe5b('0x1796')+_0x36f548()['startCase'](_0xedfe5b('0x1e56'))+'?')[_0xedfe5b('0x1d03')](_0xedfe5b('0x2061')+(_0xc22f64[_0xedfe5b('0x1909')]||_0xedfe5b('0x1e56'))+_0xedfe5b('0x1c78')+'\x20will\x20be\x20deleted.')[_0xedfe5b('0xb2e')](_0xedfe5b('0x2365'))[_0xedfe5b('0x1e25')](_0x5be1c7)['ok']('OK')[_0xedfe5b('0x26c9')](_0xedfe5b('0x772'));_0x3b4753[_0xedfe5b('0xb9')](_0x48ab84)[_0xedfe5b('0x11bf')](function(){_0x115754(_0xc22f64);},function(){const _0x3d3a24=_0xedfe5b;console['log'](_0x3d3a24('0x772'));});}let _0x24b5f7=!![],_0x5233ed=0x1;_0x195755[_0x443676('0x2087')](_0x443676('0x842'),function(_0x52b4be,_0x4bca3f){const _0x3a6a1a=_0x443676;_0x24b5f7?_0x1c9123(function(){_0x24b5f7=![];}):(!_0x4bca3f&&(_0x5233ed=_0x19cc98[_0x3a6a1a('0x1f2a')][_0x3a6a1a('0x1c2')]),_0x52b4be!==_0x4bca3f&&(_0x19cc98['query'][_0x3a6a1a('0x1c2')]=0x1),!_0x52b4be&&(_0x19cc98[_0x3a6a1a('0x1f2a')][_0x3a6a1a('0x1c2')]=_0x5233ed),_0x19cc98[_0x3a6a1a('0x1038')]());});function _0xc344a8(_0x3e43b2){const _0x2fe217=_0x443676;_0x19cc98[_0x2fe217('0x1ea5')]=_0x3e43b2||{'count':0x0,'rows':[]};}function _0x1e1797(){const _0x2a785f=_0x443676;_0x19cc98['query'][_0x2a785f('0x1393')]=(_0x19cc98['query'][_0x2a785f('0x1c2')]-0x1)*_0x19cc98[_0x2a785f('0x1f2a')]['limit'],_0x1377e9['hasRole'](_0x2a785f('0xf45'))?_0x19cc98[_0x2a785f('0x13f')]=_0x257330[_0x2a785f('0x417')][_0x2a785f('0xbaa')](_0x19cc98[_0x2a785f('0x1f2a')],_0xc344a8)[_0x2a785f('0x1549')]:(_0x19cc98[_0x2a785f('0x1f2a')]['id']=_0x19cc98[_0x2a785f('0x25bc')]['id'],_0x19cc98[_0x2a785f('0x1f2a')][_0x2a785f('0xe6')]=_0x2a785f('0x2209'),_0x19cc98['promise']=_0x257330[_0x2a785f('0x25bc')][_0x2a785f('0x228e')](_0x19cc98[_0x2a785f('0x1f2a')],_0xc344a8)[_0x2a785f('0x1549')]);}function _0x11e0ab(_0x47570a,_0x4d5072){const _0x395293=_0x443676;_0x3b4753['show']({'controller':_0x395293('0xec1'),'controllerAs':'vm','templateUrl':_0x4a8e5c,'parent':angular[_0x395293('0x1e73')](_0x1bd16b[_0x395293('0x1d2')]),'targetEvent':_0x47570a,'clickOutsideToClose':!![],'locals':{'inboundroute':_0x4d5072,'inboundroutes':_0x19cc98[_0x395293('0x1ea5')][_0x395293('0x19b2')],'license':_0x19cc98['license'],'setting':_0x19cc98[_0x395293('0x23e1')],'crudPermissions':_0x19cc98[_0x395293('0xb25')]}});}function _0x115754(_0x2439ef){const _0x1f57c5=_0x443676;_0x257330[_0x1f57c5('0x417')][_0x1f57c5('0x2088')]({'id':_0x2439ef['id']})[_0x1f57c5('0x1549')][_0x1f57c5('0x11bf')](function(){const _0x1e1c15=_0x1f57c5;_0x36f548()['remove'](_0x19cc98[_0x1e1c15('0x1ea5')][_0x1e1c15('0x19b2')],{'id':_0x2439ef['id']}),_0x19cc98['inboundroutes'][_0x1e1c15('0x27d2')]-=0x1,!_0x19cc98[_0x1e1c15('0x1ea5')][_0x1e1c15('0x19b2')][_0x1e1c15('0x1e22')]&&_0x19cc98[_0x1e1c15('0x1038')](),_0x4a8bfc[_0x1e1c15('0x2693')]({'title':_0x36f548()[_0x1e1c15('0x13cf')](_0x1e1c15('0x267e'))+_0x1e1c15('0x2113'),'msg':_0x2439ef[_0x1e1c15('0x1909')]?_0x2439ef[_0x1e1c15('0x1909')]+_0x1e1c15('0x433'):''});})[_0x1f57c5('0x151d')](function(_0x228b87){const _0x4c5880=_0x1f57c5;if(_0x228b87[_0x4c5880('0x4e8')]&&_0x228b87[_0x4c5880('0x4e8')][_0x4c5880('0x120f')]&&_0x228b87[_0x4c5880('0x4e8')][_0x4c5880('0x120f')][_0x4c5880('0x1e22')]){_0x19cc98['errors']=_0x228b87[_0x4c5880('0x4e8')]['errors']||[{'message':_0x228b87[_0x4c5880('0xaab')](),'type':_0x4c5880('0x205a')}];for(let _0x5c8148=0x0;_0x5c8148<_0x228b87[_0x4c5880('0x4e8')]['errors'][_0x4c5880('0x1e22')];_0x5c8148++){_0x4a8bfc[_0x4c5880('0x255')]({'title':_0x228b87[_0x4c5880('0x4e8')][_0x4c5880('0x120f')][_0x5c8148][_0x4c5880('0x19fd')],'msg':_0x228b87[_0x4c5880('0x4e8')][_0x4c5880('0x120f')][_0x5c8148][_0x4c5880('0x1b86')]});}}else _0x4a8bfc[_0x4c5880('0x255')]({'title':_0x228b87['status']?'API:'+_0x228b87[_0x4c5880('0xff9')]+'\x20-\x20'+_0x228b87[_0x4c5880('0x212f')]:'SYSTEM:DELETEvoiceExtension','msg':_0x228b87[_0x4c5880('0x4e8')]?JSON[_0x4c5880('0x3e')](_0x228b87['data'][_0x4c5880('0x1b86')]):_0x228b87[_0x4c5880('0x1b86')]||_0x228b87[_0x4c5880('0xaab')]()});});}function _0x1fd808(){const _0x37d120=_0x443676,_0x2b1529=angular[_0x37d120('0x6fb')](_0x19cc98[_0x37d120('0x1176')]);return _0x19cc98['selectedInboundRoutes']=[],_0x2b1529;}function _0x5d35c2(_0xc65a2a){const _0x162479=_0x443676,_0x247ed4=_0x3b4753[_0x162479('0x132b')]()[_0x162479('0x134b')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20inboundroutes?')[_0x162479('0x1d03')](_0x162479('0x2061')+_0x19cc98[_0x162479('0x1176')]['length']+_0x162479('0xac6')+_0x162479('0x1a'))[_0x162479('0xb2e')](_0x162479('0x19c9'))['targetEvent'](_0xc65a2a)['ok']('OK')[_0x162479('0x26c9')]('CANCEL');_0x3b4753[_0x162479('0xb9')](_0x247ed4)['then'](function(){const _0xa5f3c2=_0x162479;_0x19cc98[_0xa5f3c2('0x1176')][_0xa5f3c2('0x1f88')](function(_0x1ab2d9){_0x115754(_0x1ab2d9);}),_0x19cc98[_0xa5f3c2('0x1176')]=[];});}function _0x259600(){_0x19cc98['selectedInboundRoutes']=[];}function _0x2c86b6(){const _0x5d505e=_0x443676;_0x19cc98[_0x5d505e('0x1176')]=_0x19cc98[_0x5d505e('0x1ea5')][_0x5d505e('0x19b2')];}}const _0x1a4d7c=_0x5bd605;_0x2407b5[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0xcbc'),_0x21d0f5('0x16b9'),_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0xb6b'),_0x21d0f5('0x142d'),_0x21d0f5('0x3d5'),_0x21d0f5('0xf33'),_0x21d0f5('0x12a5'),'Auth',_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1'),_0x21d0f5('0xb25')];function _0x2407b5(_0x2c8490,_0x5053ae,_0x34c59a,_0x3cec9b,_0x39127c,_0x5a4beb,_0x274711,_0x2c4d69,_0x4bfd54,_0x165258,_0x4a8f32,_0x324cb9,_0x1de5c6,_0x5eb803){const _0x1d3265=_0x21d0f5,_0x500fff=this;_0x500fff[_0x1d3265('0x32a')]=_0x4a8f32[_0x1d3265('0x2428')](),_0x500fff[_0x1d3265('0x120f')]=[],_0x500fff[_0x1d3265('0x23e1')]=_0x1de5c6,_0x500fff[_0x1d3265('0x17ff')]=_0x324cb9,_0x500fff[_0x1d3265('0xb25')]=_0x5eb803,_0x500fff['hasModulePermissions']={},_0x500fff['passwordPattern']=_0x500fff[_0x1d3265('0x23e1')]&&_0x500fff[_0x1d3265('0x23e1')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x500fff[_0x1d3265('0x134b')]='VOICE.EDIT_INTERNALROUTE',_0x500fff[_0x1d3265('0xf33')]=angular['copy'](_0x4bfd54),_0x500fff['internalroutes']=_0x2c4d69,_0x500fff[_0x1d3265('0x22b5')]=![];!_0x500fff[_0x1d3265('0xf33')]&&(_0x500fff[_0x1d3265('0xf33')]={'appdata':_0x1d3265('0x2761'),'type':_0x1d3265('0x1a04'),'context':_0x1d3265('0x1fde')},_0x500fff['title']=_0x1d3265('0x272f'),_0x500fff[_0x1d3265('0x22b5')]=!![]);_0x500fff[_0x1d3265('0x88c')]=_0x11e3c4,_0x500fff['saveInternalRoute']=_0x3d0b90,_0x500fff[_0x1d3265('0xc79')]=_0x72e48d,_0x500fff[_0x1d3265('0x1bd1')]=_0x49f57a,_0x500fff[_0x1d3265('0xc4e')]=_0xcb8b3b,_0x4a8f32[_0x1d3265('0x4ee')](_0x1d3265('0xf45'))?_0x165258[_0x1d3265('0x1279')][_0x1d3265('0xbaa')]({'fields':_0x1d3265('0x721'),'sort':_0x1d3265('0x1909'),'nolimit':_0x1d3265('0x204c')})['$promise'][_0x1d3265('0x11bf')](function(_0x2ab08e){const _0x113ba9=_0x1d3265;_0x500fff[_0x113ba9('0x803')]=_0x2ab08e[_0x113ba9('0x19b2')]||[];})[_0x1d3265('0x151d')](function(_0x58ec6b){const _0x590b30=_0x1d3265;_0x274711[_0x590b30('0x255')]({'title':_0x58ec6b['status']?'API:'+_0x58ec6b[_0x590b30('0xff9')]+_0x590b30('0xb0b')+_0x58ec6b[_0x590b30('0x212f')]:_0x590b30('0x348'),'msg':_0x58ec6b[_0x590b30('0x4e8')]?JSON[_0x590b30('0x3e')](_0x58ec6b[_0x590b30('0x4e8')]):_0x58ec6b[_0x590b30('0xaab')]()});}):_0x165258['voiceContext'][_0x1d3265('0xbaa')]({'fields':'id,name','sort':_0x1d3265('0x1909'),'nolimit':_0x1d3265('0x204c')})[_0x1d3265('0x1549')][_0x1d3265('0x11bf')](function(_0x42b337){const _0x1a1ebd=_0x1d3265;_0x500fff[_0x1a1ebd('0x803')]=_0x42b337[_0x1a1ebd('0x19b2')]||[];})[_0x1d3265('0x11bf')](function(){const _0x3791a1=_0x1d3265;return _0x165258[_0x3791a1('0x1d63')][_0x3791a1('0xbaa')]({'userProfileId':_0x500fff[_0x3791a1('0x32a')][_0x3791a1('0x781')],'sectionId':0x195})[_0x3791a1('0x1549')];})['then'](function(_0x47ef13){const _0x467d99=_0x1d3265,_0x442e8a=_0x47ef13&&_0x47ef13[_0x467d99('0x19b2')]?_0x47ef13[_0x467d99('0x19b2')][0x0]:null;if(!_0x442e8a)return _0x165258[_0x467d99('0x1279')]['get']({'fields':_0x467d99('0x721'),'sort':'name','nolimit':_0x467d99('0x204c'),'defaultEntry':0x1})['$promise'][_0x467d99('0x11bf')](function(_0x5c3649){_0x500fff['contexts']=_0x5c3649['rows']||[];});else{if(!_0x442e8a[_0x467d99('0xf11')])return _0x165258[_0x467d99('0x26d1')][_0x467d99('0xbaa')]({'sectionId':_0x442e8a['id']})['$promise']['then'](function(_0x3d29ca){const _0x4edd42=_0x467d99,_0x5cdf44=_0x36f548()[_0x4edd42('0x2171')](_0x3d29ca['rows'],function(_0x47f175){const _0x50756e=_0x4edd42;return _0x36f548()[_0x50756e('0x1ad4')](_0x500fff['contexts'],{'id':_0x47f175[_0x50756e('0x15a5')]});});let _0x390589=null;_0x500fff[_0x4edd42('0xf33')]&&(_0x390589=_0x36f548()[_0x4edd42('0x1ad4')](_0x500fff[_0x4edd42('0x803')],{'name':_0x500fff[_0x4edd42('0xf33')]['context']}));if(_0x390589&&!_0x36f548()[_0x4edd42('0x1cb3')](_0x5cdf44,['id',_0x390589['id']])){const _0x3b496d=_0x36f548()[_0x4edd42('0x1ad4')](_0x500fff[_0x4edd42('0x803')],{'id':_0x390589['id']});_0x3b496d[_0x4edd42('0x254a')]=![],_0x5cdf44[_0x4edd42('0x105d')](_0x3b496d);}_0x500fff['contexts']=_0x5cdf44;});}})[_0x1d3265('0x151d')](function(_0xea3ef1){const _0x6fee95=_0x1d3265;_0x274711['error']({'title':_0xea3ef1[_0x6fee95('0xff9')]?_0x6fee95('0x574')+_0xea3ef1[_0x6fee95('0xff9')]+_0x6fee95('0xb0b')+_0xea3ef1[_0x6fee95('0x212f')]:'SYSTEM:GETcontexts','msg':_0xea3ef1[_0x6fee95('0x4e8')]?JSON[_0x6fee95('0x3e')](_0xea3ef1[_0x6fee95('0x4e8')]):_0xea3ef1[_0x6fee95('0xaab')]()});});function _0x11e3c4(){const _0x3e504f=_0x1d3265;_0x500fff[_0x3e504f('0x120f')]=[],_0x165258[_0x3e504f('0x417')][_0x3e504f('0x259')](_0x500fff['internalroute'])['$promise'][_0x3e504f('0x11bf')](function(_0x212b89){const _0x4092e3=_0x3e504f;_0x500fff['internalroutes'][_0x4092e3('0x880')](_0x212b89[_0x4092e3('0x2866')]()),_0x274711['success']({'title':_0x4092e3('0x2890'),'msg':_0x500fff[_0x4092e3('0xf33')][_0x4092e3('0x1909')]?_0x500fff[_0x4092e3('0xf33')][_0x4092e3('0x1909')]+'\x20has\x20been\x20created!':''}),_0xcb8b3b(_0x212b89);})[_0x3e504f('0x151d')](function(_0x184119){const _0x10ab67=_0x3e504f;if(_0x184119[_0x10ab67('0x4e8')]&&_0x184119[_0x10ab67('0x4e8')][_0x10ab67('0x120f')]&&_0x184119[_0x10ab67('0x4e8')][_0x10ab67('0x120f')][_0x10ab67('0x1e22')]){_0x500fff[_0x10ab67('0x120f')]=_0x184119['data']['errors']||[{'message':_0x184119[_0x10ab67('0xaab')](),'type':'api.voiceExtension.save'}];for(let _0x14157f=0x0;_0x14157f<_0x184119['data'][_0x10ab67('0x120f')][_0x10ab67('0x1e22')];_0x14157f+=0x1){_0x274711[_0x10ab67('0x255')]({'title':_0x184119[_0x10ab67('0x4e8')][_0x10ab67('0x120f')][_0x14157f][_0x10ab67('0x19fd')],'msg':_0x184119['data'][_0x10ab67('0x120f')][_0x14157f]['message']});}}else _0x274711['error']({'title':_0x184119[_0x10ab67('0xff9')]?_0x10ab67('0x574')+_0x184119[_0x10ab67('0xff9')]+_0x10ab67('0xb0b')+_0x184119[_0x10ab67('0x212f')]:_0x10ab67('0x1c62'),'msg':_0x184119[_0x10ab67('0x4e8')]?JSON['stringify'](_0x184119[_0x10ab67('0x4e8')][_0x10ab67('0x1b86')]):_0x184119[_0x10ab67('0xaab')]()});});}function _0x3d0b90(){const _0x21cc38=_0x1d3265;_0x500fff['errors']=[],_0x165258['voiceExtension'][_0x21cc38('0x5ab')]({'id':_0x500fff['internalroute']['id']},_0x500fff[_0x21cc38('0xf33')])['$promise'][_0x21cc38('0x11bf')](function(_0x319369){const _0xf1ff74=_0x21cc38,_0x3a838a=_0x36f548()[_0xf1ff74('0x1ad4')](_0x500fff['internalroutes'],{'id':_0x319369['id']});_0x3a838a&&_0x36f548()[_0xf1ff74('0x47b')](_0x3a838a,_0x36f548()[_0xf1ff74('0x258')](_0x319369[_0xf1ff74('0x2866')](),_0x36f548()[_0xf1ff74('0xe22')](_0x3a838a))),_0x274711['success']({'title':_0xf1ff74('0x1d3c'),'msg':_0x500fff[_0xf1ff74('0xf33')]['name']?_0x500fff[_0xf1ff74('0xf33')][_0xf1ff74('0x1909')]+'\x20has\x20been\x20saved!':''}),_0xcb8b3b(_0x319369);})[_0x21cc38('0x151d')](function(_0x1dca0c){const _0x541c92=_0x21cc38;if(_0x1dca0c[_0x541c92('0x4e8')]&&_0x1dca0c['data'][_0x541c92('0x120f')]&&_0x1dca0c['data'][_0x541c92('0x120f')][_0x541c92('0x1e22')]){_0x500fff[_0x541c92('0x120f')]=_0x1dca0c['data'][_0x541c92('0x120f')]||[{'message':_0x1dca0c[_0x541c92('0xaab')](),'type':_0x541c92('0x25a0')}];for(let _0x3df437=0x0;_0x3df437<_0x1dca0c[_0x541c92('0x4e8')][_0x541c92('0x120f')][_0x541c92('0x1e22')];_0x3df437++){_0x274711[_0x541c92('0x255')]({'title':_0x1dca0c['data'][_0x541c92('0x120f')][_0x3df437][_0x541c92('0x19fd')],'msg':_0x1dca0c[_0x541c92('0x4e8')]['errors'][_0x3df437][_0x541c92('0x1b86')]});}}else _0x274711[_0x541c92('0x255')]({'title':_0x1dca0c[_0x541c92('0xff9')]?_0x541c92('0x574')+_0x1dca0c[_0x541c92('0xff9')]+'\x20-\x20'+_0x1dca0c[_0x541c92('0x212f')]:_0x541c92('0x25a0'),'msg':_0x1dca0c['data']?JSON[_0x541c92('0x3e')](_0x1dca0c[_0x541c92('0x4e8')]['message']):_0x1dca0c[_0x541c92('0xaab')]()});});}function _0x72e48d(_0x3c5d34){const _0x5855ee=_0x1d3265;_0x500fff['errors']=[];const _0x31150b=_0x3cec9b[_0x5855ee('0x132b')]()['title']('Are\x20you\x20sure?')['content'](_0x5855ee('0x38'))[_0x5855ee('0xb2e')]('Delete\x20InternalRoute')['ok'](_0x5855ee('0x1167'))[_0x5855ee('0x26c9')](_0x5855ee('0x784'))['targetEvent'](_0x3c5d34);_0x3cec9b[_0x5855ee('0xb9')](_0x31150b)[_0x5855ee('0x11bf')](function(){const _0x4d95d9=_0x5855ee;_0x165258[_0x4d95d9('0x417')][_0x4d95d9('0x2088')]({'id':_0x500fff[_0x4d95d9('0xf33')]['id']})['$promise']['then'](function(){const _0x235e08=_0x4d95d9;_0x36f548()[_0x235e08('0x14a5')](_0x500fff[_0x235e08('0x3d5')],{'id':_0x500fff[_0x235e08('0xf33')]['id']}),_0x274711[_0x235e08('0x2693')]({'title':'InternalRoute\x20properly\x20deleted!','msg':(_0x500fff[_0x235e08('0xf33')][_0x235e08('0x1909')]||'internalroute')+_0x235e08('0x433')}),_0xcb8b3b(_0x500fff[_0x235e08('0xf33')]);})[_0x4d95d9('0x151d')](function(_0x3b2895){const _0x2410f5=_0x4d95d9;if(_0x3b2895[_0x2410f5('0x4e8')]&&_0x3b2895[_0x2410f5('0x4e8')][_0x2410f5('0x120f')]&&_0x3b2895[_0x2410f5('0x4e8')][_0x2410f5('0x120f')]['length']){_0x500fff[_0x2410f5('0x120f')]=_0x3b2895[_0x2410f5('0x4e8')][_0x2410f5('0x120f')]||[{'message':_0x3b2895[_0x2410f5('0xaab')](),'type':_0x2410f5('0x2798')}];for(let _0xf4d214=0x0;_0xf4d214<_0x3b2895[_0x2410f5('0x4e8')][_0x2410f5('0x120f')][_0x2410f5('0x1e22')];_0xf4d214++){_0x274711[_0x2410f5('0x255')]({'title':_0x3b2895[_0x2410f5('0x4e8')][_0x2410f5('0x120f')][_0xf4d214][_0x2410f5('0x19fd')],'msg':_0x3b2895[_0x2410f5('0x4e8')][_0x2410f5('0x120f')][_0xf4d214]['message']});}}else _0x274711[_0x2410f5('0x255')]({'title':_0x3b2895[_0x2410f5('0xff9')]?_0x2410f5('0x574')+_0x3b2895[_0x2410f5('0xff9')]+'\x20-\x20'+_0x3b2895[_0x2410f5('0x212f')]:_0x2410f5('0x2798'),'msg':_0x3b2895['data']?JSON[_0x2410f5('0x3e')](_0x3b2895[_0x2410f5('0x4e8')][_0x2410f5('0x1b86')]):_0x3b2895[_0x2410f5('0x1b86')]||_0x3b2895[_0x2410f5('0xaab')]()});});},function(){});}function _0x49f57a(_0x202338){return _0x202338===null?undefined:new Date(_0x202338);}function _0xcb8b3b(_0x42319f){const _0x119200=_0x1d3265;_0x3cec9b[_0x119200('0x237e')](_0x42319f);}}const _0x1871c4=_0x2407b5,_0x11977d=_0x351988['p']+_0x21d0f5('0x16f0'),_0x32f21f=_0x351988['p']+_0x21d0f5('0xef3'),_0x1cb5e4=_0x351988['p']+_0x21d0f5('0x276c'),_0x3b3e27=_0x351988['p']+_0x21d0f5('0x6df'),_0x331ee4=_0x351988['p']+'src/js/modules/main/apps/voice/views/internalroutes/edit/apps/goto/dialog.html/dialog.html',_0x14f047=_0x351988['p']+_0x21d0f5('0x242'),_0xc699d6=_0x351988['p']+_0x21d0f5('0x113f'),_0x2d3aa8=_0x351988['p']+_0x21d0f5('0xb41'),_0x3a86e2=_0x351988['p']+_0x21d0f5('0x954'),_0x55f3f0=_0x351988['p']+_0x21d0f5('0x239'),_0xad8e4=_0x351988['p']+_0x21d0f5('0x2234'),_0x277d73=_0x351988['p']+_0x21d0f5('0x70f'),_0x3838ad=_0x351988['p']+_0x21d0f5('0x10c1');_0x1317f4[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x12a5'),_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),_0x21d0f5('0x142d'),_0x21d0f5('0x1150')];const _0x313406={'agi':_0x11977d,'custom':_0x32f21f,'dial':_0x1cb5e4,'externaldial':_0x3b3e27,'goto':_0x331ee4,'hangup':_0x14f047,'internaldial':_0xc699d6,'interval':_0x2d3aa8,'playback':_0x3a86e2,'queue':_0x55f3f0,'ringgroup':_0xad8e4,'set':_0x277d73,'voicemail':_0x3838ad};function _0x1317f4(_0x59ba22,_0x415b18,_0x37e86b,_0x4c4b25,_0x4da8a8){const _0x4840ce=_0x21d0f5,_0xd69c1f=this;_0xd69c1f[_0x4840ce('0x32a')]=_0x4da8a8[_0x4840ce('0x2428')](),_0xd69c1f[_0x4840ce('0xf33')]={},_0xd69c1f[_0x4840ce('0xdbc')]={'count':0x0,'rows':[]},_0xd69c1f['selectedInternalRouteApps']=[],_0xd69c1f['crudPermissions'],_0xd69c1f['query']={'sort':_0x4840ce('0x2804')},_0xd69c1f[_0x4840ce('0x1812')]=_0x36f548()[_0x4840ce('0x4a')](_0x36f548()['sortBy']([{'app':_0x4840ce('0x1979'),'appType':_0x4840ce('0x507'),'type':_0x4840ce('0x72f'),'types':[_0x4840ce('0x27e5'),_0x4840ce('0xa8d'),_0x4840ce('0x257d')],'fields':[],'isApp':![]},{'app':_0x4840ce('0x1c29'),'appType':_0x4840ce('0x150b'),'context':'from-sip','type':'Internal','options':'xX','appdata':',xX,,,300,,,,,','icon':_0x4840ce('0x206d'),'interval':_0x4840ce('0x1830'),'answer':!![],'isApp':!![],'extraApi':[{'name':_0x4840ce('0x209a'),'field':{'name':_0x4840ce('0x1d6e'),'key':_0x4840ce('0xce5'),'prefix':'/var/opt/motion2/server/files/sounds/converted/'},'route':_0x4840ce('0x1d6e'),'filters':{'fields':_0x4840ce('0xee1'),'sort':_0x4840ce('0x1909'),'nolimit':!![]},'permissions':{'section':0x3ef}},{'name':'queues','field':{'name':_0x4840ce('0x150b'),'key':'name'},'route':'voiceQueue','filters':{'type':_0x4840ce('0x18a2'),'fields':_0x4840ce('0xde'),'sort':_0x4840ce('0x1909'),'nolimit':!![]},'permissions':{'section':0x191}}],'fields':[{'title':_0x4840ce('0x1c29'),'name':'queue','type':_0x4840ce('0x108f'),'values':_0x4840ce('0x1de3'),'value':'queue.name','option':_0x4840ce('0x19d4'),'required':!![],'param':0x0},{'title':'Options','name':_0x4840ce('0x249a'),'type':_0x4840ce('0x25ed'),'param':0x1},{'title':_0x4840ce('0x2040'),'name':_0x4840ce('0xc29'),'type':_0x4840ce('0x25ed'),'param':0x2},{'title':_0x4840ce('0x370'),'name':_0x4840ce('0x1d6e'),'type':'apiselect','values':_0x4840ce('0x209a'),'value':_0x4840ce('0x1026'),'option':_0x4840ce('0x1c77'),'defaultValues':[{'value':'\x27\x27','option':'None'}],'param':0x3},{'title':_0x4840ce('0x65'),'name':_0x4840ce('0xfbe'),'type':_0x4840ce('0x139e'),'min':0x0,'param':0x4},{'title':'Agi','name':_0x4840ce('0x1efd'),'type':_0x4840ce('0x25ed'),'param':0x5},{'title':_0x4840ce('0x119e'),'name':'macro','type':_0x4840ce('0x25ed'),'param':0x6},{'title':_0x4840ce('0x1e86'),'name':_0x4840ce('0x2341'),'type':_0x4840ce('0x25ed'),'param':0x7},{'title':'Rule','name':_0x4840ce('0x1ec4'),'type':_0x4840ce('0x25ed'),'param':0x8},{'title':_0x4840ce('0x612'),'name':_0x4840ce('0x197'),'type':_0x4840ce('0x139e'),'min':0x0,'param':0x9},{'title':_0x4840ce('0x182b'),'name':'answer','type':'switch','general':!![]}]},{'app':_0x4840ce('0xf7'),'appType':_0x4840ce('0x1c5b'),'context':'from-sip','type':_0x4840ce('0x72f'),'icon':'icon-apps','interval':'*,*,*,*','answer':!![],'isApp':!![],'extraApi':[{'name':_0x4840ce('0x209a'),'field':{'name':_0x4840ce('0x13fc'),'key':_0x4840ce('0xce5'),'prefix':_0x4840ce('0x8fb')},'route':_0x4840ce('0x1d6e'),'filters':{'fields':'id,name,save_name','sort':_0x4840ce('0x1909'),'nolimit':!![]},'permissions':{'section':0x3ef}}],'fields':[{'title':_0x4840ce('0x232e'),'name':_0x4840ce('0x13fc'),'type':'apiselect','values':_0x4840ce('0x209a'),'value':_0x4840ce('0x2036'),'option':'appdata.name','required':!![],'param':0x0},{'title':'Options','name':'options','type':_0x4840ce('0x25ed'),'param':0x1},{'title':_0x4840ce('0x182b'),'name':_0x4840ce('0xc1f'),'type':_0x4840ce('0x2044'),'general':!![]}]},{'app':_0x4840ce('0x29d'),'appType':'dial','context':'from-sip','type':_0x4840ce('0x72f'),'icon':_0x4840ce('0x206d'),'options':'xX','interval':_0x4840ce('0x1830'),'isApp':!![],'fields':[{'title':_0x4840ce('0x21ba'),'name':'tech','type':_0x4840ce('0x25ed'),'required':!![],'param':0x0},{'title':_0x4840ce('0x65'),'name':_0x4840ce('0xfbe'),'type':_0x4840ce('0x139e'),'min':0x0,'param':0x1},{'title':'Options','name':_0x4840ce('0x249a'),'type':_0x4840ce('0x25ed'),'param':0x2},{'title':'Url','name':_0x4840ce('0x259e'),'type':_0x4840ce('0x25ed'),'param':0x3}]},{'app':_0x4840ce('0x29d'),'appType':_0x4840ce('0x14ee'),'context':_0x4840ce('0x1fde'),'type':_0x4840ce('0x72f'),'icon':_0x4840ce('0x206d'),'options':'xX','interval':_0x4840ce('0x1830'),'isApp':!![],'extraApi':[{'name':'users','field':{'name':_0x4840ce('0x21d9'),'key':_0x4840ce('0x1909'),'prefix':_0x4840ce('0x2727')},'route':_0x4840ce('0x21d9'),'filters':{'fields':_0x4840ce('0x1b7b'),'sort':_0x4840ce('0x1909'),'nolimit':!![]},'permissions':{'sections':[{'id':0xca,'role':_0x4840ce('0x18c4')},{'id':0xcb,'role':_0x4840ce('0x2650')}]}}],'fields':[{'title':_0x4840ce('0x24ab'),'name':'user','type':_0x4840ce('0x108f'),'values':_0x4840ce('0x17c0'),'value':_0x4840ce('0x10d3'),'option':_0x4840ce('0x22af'),'required':!![],'param':0x0},{'title':_0x4840ce('0x65'),'name':_0x4840ce('0xfbe'),'type':_0x4840ce('0x139e'),'min':0x0,'param':0x1},{'title':'Options','name':_0x4840ce('0x249a'),'type':'text','param':0x2},{'title':'Url','name':_0x4840ce('0x259e'),'type':'text','param':0x3}]},{'app':'Dial','appType':_0x4840ce('0x1899'),'context':'from-sip','type':_0x4840ce('0x72f'),'icon':_0x4840ce('0x206d'),'interval':'*,*,*,*','options':'xX','isApp':!![],'extraApi':[{'name':_0x4840ce('0x1b24'),'field':{'name':_0x4840ce('0x264e'),'key':_0x4840ce('0x1909')},'route':_0x4840ce('0x264e'),'filters':{'fields':_0x4840ce('0x721'),'sort':_0x4840ce('0x1909'),'nolimit':!![]},'permissions':{'section':0x3f3}}],'fields':[{'title':'Trunk','name':'trunk','type':'apiselect','values':_0x4840ce('0x1b24'),'value':'trunk.name','option':_0x4840ce('0x1872'),'required':!![],'param':0x0},{'title':'Phone','name':_0x4840ce('0x1546'),'type':_0x4840ce('0x25ed')},{'title':_0x4840ce('0x65'),'name':_0x4840ce('0xfbe'),'type':_0x4840ce('0x139e'),'min':0x0,'param':0x1},{'title':_0x4840ce('0x27fb'),'name':'options','type':_0x4840ce('0x25ed'),'param':0x2},{'title':'Url','name':'url','type':_0x4840ce('0x25ed'),'param':0x3}]},{'app':_0x4840ce('0x29d'),'appType':_0x4840ce('0x78a'),'context':'from-sip','type':_0x4840ce('0x72f'),'icon':'icon-apps','interval':_0x4840ce('0x1830'),'options':'xX','isApp':!![],'extraApi':[{'name':_0x4840ce('0x17c0'),'field':{'name':'multipleUsers','key':'name','prefix':_0x4840ce('0x2727')},'route':_0x4840ce('0x21d9'),'filters':{'fields':_0x4840ce('0x1b7b'),'sort':_0x4840ce('0x1909'),'nolimit':!![]},'permissions':{'sections':[{'id':0xca,'role':_0x4840ce('0x18c4')},{'id':0xcb,'role':_0x4840ce('0x2650')}]}}],'fields':[{'title':'User','name':_0x4840ce('0x22a8'),'type':_0x4840ce('0x108f'),'multiple':!![],'values':_0x4840ce('0x17c0'),'value':'\x27SIP/{{multipleUsers.name}}\x27','option':'multipleUsers.name','required':!![],'param':0x0},{'title':_0x4840ce('0x65'),'name':_0x4840ce('0xfbe'),'type':'number','min':0x0,'param':0x1},{'title':_0x4840ce('0x27fb'),'name':_0x4840ce('0x249a'),'type':_0x4840ce('0x25ed'),'param':0x2},{'title':_0x4840ce('0x2040'),'name':'url','type':_0x4840ce('0x25ed'),'param':0x3}]},{'app':_0x4840ce('0x1494'),'alias':_0x4840ce('0x1901'),'appType':'agi','context':_0x4840ce('0x1fde'),'type':_0x4840ce('0x72f'),'icon':_0x4840ce('0x206d'),'interval':_0x4840ce('0x1830'),'isApp':!![],'extraApi':[{'name':_0x4840ce('0xa62'),'field':{'name':_0x4840ce('0xef0'),'key':_0x4840ce('0x1909'),'prefix':_0x4840ce('0x222f')},'route':_0x4840ce('0x1671'),'filters':{'fields':_0x4840ce('0x721'),'sort':_0x4840ce('0x1909'),'nolimit':!![]},'permissions':{'section':0x44f}}],'fields':[{'title':_0x4840ce('0x14d7'),'name':_0x4840ce('0xef0'),'type':_0x4840ce('0x108f'),'values':_0x4840ce('0xa62'),'value':'\x27agi://127.0.0.1/square,{{project.name}}\x27','option':'project.name','required':!![],'param':0x0}]},{'app':_0x4840ce('0x2190'),'appType':_0x4840ce('0x1cf5'),'context':_0x4840ce('0x1fde'),'type':'Internal','icon':_0x4840ce('0x206d'),'interval':_0x4840ce('0x1830'),'isApp':!![],'extraApi':[{'name':_0x4840ce('0x803'),'field':{'name':_0x4840ce('0x1c87'),'key':_0x4840ce('0x1909')},'route':_0x4840ce('0x1279'),'filters':{'fields':_0x4840ce('0x721'),'sort':_0x4840ce('0x1909'),'nolimit':!![]},'permissions':{'section':0x195}}],'fields':[{'title':_0x4840ce('0x1946'),'name':'context','type':_0x4840ce('0x108f'),'values':_0x4840ce('0x803'),'value':_0x4840ce('0x2364'),'option':'context.name','required':!![],'param':0x0},{'title':_0x4840ce('0x89c'),'name':'extension','type':'text','required':!![],'param':0x1},{'title':_0x4840ce('0x1c98'),'name':'priority','type':'text','required':!![],'param':0x2}]},{'app':'hangup','appType':'hangup','context':_0x4840ce('0x1fde'),'type':'Internal','icon':_0x4840ce('0x206d'),'interval':_0x4840ce('0x1830'),'isApp':!![],'fields':[{'title':'Hangup_Cause','name':_0x4840ce('0x13fc'),'type':_0x4840ce('0x2350'),'param':0x0,'values':[{'option':_0x4840ce('0x49b'),'value':'\x271\x27'},{'option':'HANGUPCAUSE_16','value':_0x4840ce('0x2ee')},{'option':_0x4840ce('0x959'),'value':_0x4840ce('0x36a')},{'option':_0x4840ce('0x1e9f'),'value':_0x4840ce('0x20d6')},{'option':_0x4840ce('0xa2a'),'value':'\x2721\x27'},{'option':_0x4840ce('0x2507'),'value':'\x2722\x27'},{'option':_0x4840ce('0x23a9'),'value':_0x4840ce('0x6d')},{'option':'HANGUPCAUSE_38','value':_0x4840ce('0xfbd')},{'option':_0x4840ce('0xedb'),'value':_0x4840ce('0x213')}],'translate':!![],'required':!![],'general':!![]}]},{'app':_0x4840ce('0x25a8'),'appType':_0x4840ce('0xe50'),'context':_0x4840ce('0x1fde'),'type':_0x4840ce('0x72f'),'separator':'=','icon':_0x4840ce('0x206d'),'interval':_0x4840ce('0x1830'),'extraApi':[{'name':_0x4840ce('0x1700'),'field':{'name':_0x4840ce('0x1909'),'key':_0x4840ce('0x1909')},'route':_0x4840ce('0xb0'),'filters':{'fields':_0x4840ce('0x721'),'sort':_0x4840ce('0x1909'),'nolimit':!![]},'permissions':{'section':0x3f4}}],'isApp':!![],'fields':[{'title':'Variable','name':'name','type':_0x4840ce('0x108f'),'values':'variables','value':'name.name','option':_0x4840ce('0x26c1'),'required':!![],'param':0x0},{'title':_0x4840ce('0x255a'),'name':'value','type':_0x4840ce('0x25ed'),'required':!![],'param':0x1}]},{'app':null,'appType':_0x4840ce('0xa8d'),'icon':'icon-apps','type':_0x4840ce('0x72f'),'interval':'*,*,*,*','isApp':!![],'fields':[{'title':_0x4840ce('0x1f01'),'name':_0x4840ce('0x18f5'),'type':_0x4840ce('0x25ed'),'required':!![],'param':0x0},{'title':_0x4840ce('0x55c'),'name':_0x4840ce('0x13fc'),'type':'text','param':0x1}]},{'app':_0x4840ce('0x25a4'),'appType':_0x4840ce('0xa23'),'context':_0x4840ce('0x1fde'),'icon':'icon-apps','type':'Internal','interval':_0x4840ce('0x1830'),'isApp':!![],'extraApi':[{'name':_0x4840ce('0xffe'),'field':{'name':_0x4840ce('0x2516'),'key':_0x4840ce('0x169b'),'suffix':_0x4840ce('0x1afb')},'route':_0x4840ce('0x2516'),'filters':{'fields':_0x4840ce('0x3d3'),'sort':_0x4840ce('0x169b'),'nolimit':!![]},'permissions':{'section':0x196}}],'fields':[{'title':'Mailbox@Context','name':_0x4840ce('0x2516'),'type':_0x4840ce('0x108f'),'values':_0x4840ce('0xffe'),'value':_0x4840ce('0xdb3'),'option':_0x4840ce('0x5b6'),'required':!![],'param':0x0},{'title':_0x4840ce('0x27fb'),'name':_0x4840ce('0x249a'),'type':'text','param':0x1}]}],[_0x4840ce('0x18f5')]),{'isApp':![]}),_0xd69c1f[_0x4840ce('0x257d')]={'group':{'name':'opt1','pull':_0x4840ce('0x208b')},'animation':0x64,'sort':![]},_0xd69c1f[_0x4840ce('0xb9b')]={'group':{'name':_0x4840ce('0x16f9'),'put':_0x4840ce('0x1525')},'animation':0x64,'onAdd':function(_0x574f7b){_0x114453(_0x574f7b,_0x574f7b['newIndex']);},'onSort':function(){_0x1acc66();}},_0xd69c1f[_0x4840ce('0x286f')]=_0x38752b,_0xd69c1f['deleteConfirm']=_0x45c852,_0xd69c1f['getInternalRouteApps']=_0xbcfa6,_0xd69c1f[_0x4840ce('0x27bf')]=_0x114453,_0xd69c1f[_0x4840ce('0x1452')]=_0x15fb53,_0xd69c1f['deleteInternalRouteApp']=_0x1984c7,_0xd69c1f[_0x4840ce('0x224c')]=_0x4e6d89,_0xd69c1f[_0x4840ce('0xf09')]=_0x1acc66,_0xd69c1f[_0x4840ce('0x431')]=_0x437af6;function _0x38752b(_0x562bfd,_0x30ad03){const _0x8d5bac=_0x4840ce;_0xd69c1f[_0x8d5bac('0xf33')]=_0x562bfd,_0xd69c1f[_0x8d5bac('0xb25')]=typeof _0x30ad03!==_0x8d5bac('0x13e9')?_0x30ad03:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0xd69c1f[_0x8d5bac('0xb9b')][_0x8d5bac('0xa4b')]=!_0xd69c1f[_0x8d5bac('0xb25')][_0x8d5bac('0x25db')]?!![]:![],_0xd69c1f[_0x8d5bac('0x1f2a')][_0x8d5bac('0x219d')]=_0x562bfd['id'],_0xd69c1f['query'][_0x8d5bac('0x1210')]=!![],_0xd69c1f[_0x8d5bac('0x1f2a')][_0x8d5bac('0x287')]=!![],_0xd69c1f[_0x8d5bac('0xdea')](),_0xd69c1f['getIntervals']();}function _0x45c852(_0x10d4f8,_0x302b84,_0x6bb1e5){const _0x16c483=_0x4840ce,_0x2b1d49=_0x415b18[_0x16c483('0x132b')]()[_0x16c483('0x134b')](_0x16c483('0x93a'))[_0x16c483('0x1d03')](_0x16c483('0x2061')+_0x10d4f8[_0x16c483('0x18f5')]+_0x16c483('0x1c78')+_0x16c483('0x1a'))['ariaLabel'](_0x16c483('0x177'))[_0x16c483('0x1e25')](_0x6bb1e5)['ok']('OK')[_0x16c483('0x26c9')](_0x16c483('0x772'));_0x415b18[_0x16c483('0xb9')](_0x2b1d49)[_0x16c483('0x11bf')](function(){const _0x3a9f55=_0x16c483;_0xd69c1f['internalrouteApps'][_0x3a9f55('0x19b2')][_0x3a9f55('0x1ae')](_0x302b84,0x1),_0x1acc66();},function(){const _0x1ef6be=_0x16c483;console[_0x1ef6be('0xc78')]('CANCEL');});}function _0x114453(_0x270fc8,_0x202358){const _0x1d6e09=_0x4840ce;if(_0xd69c1f[_0x1d6e09('0xdbc')][_0x1d6e09('0x19b2')][_0x1d6e09('0x1e22')]){const _0x36cca9=_0xd69c1f['internalrouteApps']['rows'][_0x202358]?_0xd69c1f[_0x1d6e09('0xdbc')][_0x1d6e09('0x19b2')][_0x202358]:_0xd69c1f['internalrouteApps'][_0x1d6e09('0x19b2')][0x0],_0xfa58d8=(_0x36cca9['appType']||_0x36cca9[_0x1d6e09('0x18f5')])[_0x1d6e09('0x20d5')]();_0x415b18['show']({'controller':'EditInternalApp'+_0xfa58d8+_0x1d6e09('0xf3f'),'controllerAs':'vm','templateUrl':_0x313406[_0xfa58d8],'parent':angular[_0x1d6e09('0x1e73')](_0x37e86b['body']),'targetEvent':_0x270fc8,'clickOutsideToClose':!![],'locals':{'internalrouteApp':_0x36cca9,'internalroute':_0xd69c1f[_0x1d6e09('0xf33')],'crudPermissions':_0xd69c1f[_0x1d6e09('0xb25')]}})['then'](function(_0x4e2d45){const _0x35cf49=_0x1d6e09;_0x4e2d45&&(_0x4e2d45['id']?_0xd69c1f[_0x35cf49('0xdbc')][_0x35cf49('0x19b2')][_0x202358]=_0x4e2d45:_0xd69c1f[_0x35cf49('0xdbc')][_0x35cf49('0x19b2')][_0x35cf49('0x1ae')](_0x202358,0x0,_0x4e2d45),_0x1acc66());})[_0x1d6e09('0x151d')](function(_0x91ddd7){const _0x5b6e7b=_0x1d6e09;_0x91ddd7&&_0x4c4b25['error']({'title':_0x91ddd7[_0x5b6e7b('0xff9')]?_0x5b6e7b('0x574')+_0x91ddd7['status']+_0x5b6e7b('0xb0b')+_0x91ddd7[_0x5b6e7b('0x212f')]:_0x5b6e7b('0x154c'),'msg':_0x91ddd7[_0x5b6e7b('0x4e8')]?JSON[_0x5b6e7b('0x3e')](_0x91ddd7[_0x5b6e7b('0x4e8')]):_0x91ddd7[_0x5b6e7b('0xaab')]()});});}}function _0x15fb53(_0xbe0253,_0xf672ca){const _0x2fb9b1=_0x4840ce;if(_0xd69c1f[_0x2fb9b1('0xdbc')][_0x2fb9b1('0x19b2')][_0x2fb9b1('0x1e22')]){const _0x3537da=_0xd69c1f[_0x2fb9b1('0xdbc')][_0x2fb9b1('0x19b2')][_0xf672ca]?_0xd69c1f[_0x2fb9b1('0xdbc')]['rows'][_0xf672ca]:_0xd69c1f[_0x2fb9b1('0xdbc')]['rows'][0x0];_0x415b18[_0x2fb9b1('0xb9')]({'controller':'EditInternalAppintervalDialogController','controllerAs':'vm','templateUrl':_0x2d3aa8,'parent':angular[_0x2fb9b1('0x1e73')](_0x37e86b[_0x2fb9b1('0x1d2')]),'targetEvent':_0xbe0253,'clickOutsideToClose':!![],'locals':{'interval':{'interval':_0x3537da[_0x2fb9b1('0x507')],'IntervalId':_0x3537da['IntervalId'],'application':!![]},'intervals':[],'crudPermissions':_0xd69c1f[_0x2fb9b1('0xb25')]}})[_0x2fb9b1('0x11bf')](function(_0x332275){const _0x1ab8f7=_0x2fb9b1;_0x332275&&(_0x3537da[_0x1ab8f7('0x507')]=_0x332275['interval']||_0x1ab8f7('0x1830'),_0x3537da[_0x1ab8f7('0x6b4')]=_0x332275['IntervalId']||null,_0x1acc66());});}}function _0x1acc66(){const _0x3a4bc0=_0x4840ce,_0x40a704=[_0x3a4bc0('0x150b'),'playback'];let _0x49f9b4=0x2,_0x304128=[];_0x304128[_0x3a4bc0('0x105d')]({'type':_0x3a4bc0('0x1a04'),'app':_0x3a4bc0('0x25a8'),'appdata':_0x3a4bc0('0x18f9'),'context':_0xd69c1f[_0x3a4bc0('0xf33')][_0x3a4bc0('0x1c87')],'exten':_0xd69c1f[_0x3a4bc0('0xf33')][_0x3a4bc0('0x4c6')],'priority':_0x49f9b4++,'VoiceExtensionId':_0xd69c1f['internalroute']['id']}),_0x304128[_0x3a4bc0('0x105d')]({'type':'internal','app':_0x3a4bc0('0x25a8'),'appdata':'XCALLY-MOTION-ANSWER=0','context':_0xd69c1f[_0x3a4bc0('0xf33')][_0x3a4bc0('0x1c87')],'exten':_0xd69c1f[_0x3a4bc0('0xf33')][_0x3a4bc0('0x4c6')],'priority':_0x49f9b4++,'VoiceExtensionId':_0xd69c1f[_0x3a4bc0('0xf33')]['id']}),_0x304128[_0x3a4bc0('0x105d')]({'type':_0x3a4bc0('0x1a04'),'app':_0x3a4bc0('0x25a8'),'appdata':'XCALLY-MOTION-PROGRESS=0','context':_0xd69c1f['internalroute']['context'],'exten':_0xd69c1f[_0x3a4bc0('0xf33')][_0x3a4bc0('0x4c6')],'priority':_0x49f9b4++,'VoiceExtensionId':_0xd69c1f[_0x3a4bc0('0xf33')]['id']}),_0x304128[_0x3a4bc0('0x105d')]({'type':_0x3a4bc0('0x1a04'),'app':_0x3a4bc0('0x25a8'),'appdata':_0x3a4bc0('0x2078'),'context':_0xd69c1f[_0x3a4bc0('0xf33')]['context'],'exten':_0xd69c1f['internalroute'][_0x3a4bc0('0x4c6')],'priority':_0x49f9b4++,'VoiceExtensionId':_0xd69c1f[_0x3a4bc0('0xf33')]['id']});for(let _0xacda62=0x0,_0x4baea6=0x0;_0xacda62<_0xd69c1f[_0x3a4bc0('0xdbc')][_0x3a4bc0('0x19b2')]['length'];_0xacda62++,_0x4baea6=0x0){const _0x4151a1=_0xd69c1f[_0x3a4bc0('0xdbc')]['rows'][_0xacda62],_0x264849=[],_0x3d4182=[];_0x4151a1['intervals']=_0x4151a1[_0x3a4bc0('0x507')]!==_0x3a4bc0('0x1830')?[_0x4151a1[_0x3a4bc0('0x507')]]:_0x4151a1[_0x3a4bc0('0x6b4')]?_0x36f548()[_0x3a4bc0('0x2171')](_0x36f548()['filter'](_0xd69c1f['intervals']['rows'],{'IntervalId':_0x4151a1[_0x3a4bc0('0x6b4')]}),_0x3a4bc0('0x507')):[],_0x4151a1[_0x3a4bc0('0x1c87')]=_0xd69c1f[_0x3a4bc0('0xf33')][_0x3a4bc0('0x1c87')],_0x4151a1[_0x3a4bc0('0x4c6')]=_0xd69c1f[_0x3a4bc0('0xf33')]['exten'];_0x4151a1[_0x3a4bc0('0x19fd')]&&(_0x4151a1[_0x3a4bc0('0x19fd')]=_0x4151a1['type'][_0x3a4bc0('0x20d5')]());typeof _0x4151a1[_0x3a4bc0('0xc1f')]!==_0x3a4bc0('0x13e9')&&(_0x40a704['includes'](_0x4151a1['app'][_0x3a4bc0('0x20d5')]())&&_0x4151a1[_0x3a4bc0('0x27c0')]!==_0x3a4bc0('0xa8d')&&(_0x4151a1[_0x3a4bc0('0xc1f')]?(_0x264849[_0x3a4bc0('0x105d')]({'type':_0x4151a1[_0x3a4bc0('0x19fd')][_0x3a4bc0('0x20d5')](),'app':'ExecIf','appdata':_0x3a4bc0('0x251a'),'context':_0xd69c1f[_0x3a4bc0('0xf33')][_0x3a4bc0('0x1c87')],'exten':_0xd69c1f[_0x3a4bc0('0xf33')][_0x3a4bc0('0x4c6')],'priority':_0x4151a1[_0x3a4bc0('0xe82')]['length']+_0x49f9b4+_0x4baea6++,'VoiceExtensionId':_0xd69c1f[_0x3a4bc0('0xf33')]['id']}),_0x264849[_0x3a4bc0('0x105d')]({'type':_0x4151a1['type'][_0x3a4bc0('0x20d5')](),'app':_0x3a4bc0('0x25a8'),'appdata':_0x3a4bc0('0x8f9'),'context':_0xd69c1f[_0x3a4bc0('0xf33')][_0x3a4bc0('0x1c87')],'exten':_0xd69c1f[_0x3a4bc0('0xf33')]['exten'],'priority':_0x4151a1['intervals'][_0x3a4bc0('0x1e22')]+_0x49f9b4+_0x4baea6++,'VoiceExtensionId':_0xd69c1f[_0x3a4bc0('0xf33')]['id']})):(_0x264849[_0x3a4bc0('0x105d')]({'type':_0x4151a1[_0x3a4bc0('0x19fd')][_0x3a4bc0('0x20d5')](),'app':_0x3a4bc0('0x1d0f'),'appdata':_0x3a4bc0('0x16d3'),'context':_0xd69c1f['internalroute'][_0x3a4bc0('0x1c87')],'exten':_0xd69c1f['internalroute'][_0x3a4bc0('0x4c6')],'priority':_0x4151a1['intervals'][_0x3a4bc0('0x1e22')]+_0x49f9b4+_0x4baea6++,'VoiceExtensionId':_0xd69c1f['internalroute']['id']}),_0x264849[_0x3a4bc0('0x105d')]({'type':_0x4151a1['type'][_0x3a4bc0('0x20d5')](),'app':_0x3a4bc0('0x25a8'),'appdata':_0x3a4bc0('0xbec'),'context':_0xd69c1f[_0x3a4bc0('0xf33')][_0x3a4bc0('0x1c87')],'exten':_0xd69c1f[_0x3a4bc0('0xf33')][_0x3a4bc0('0x4c6')],'priority':_0x4151a1['intervals'][_0x3a4bc0('0x1e22')]+_0x49f9b4+_0x4baea6++,'VoiceExtensionId':_0xd69c1f[_0x3a4bc0('0xf33')]['id']}))));for(let _0x5a94f2=0x0;_0x5a94f2<_0x4151a1[_0x3a4bc0('0xe82')][_0x3a4bc0('0x1e22')];_0x5a94f2++){const _0x4b9f04=_0x49f9b4+_0x4151a1['intervals'][_0x3a4bc0('0x1e22')],_0x1ffd70=_0x5a94f2===_0x4151a1[_0x3a4bc0('0xe82')]['length']-0x1?_0x49f9b4+_0x264849[_0x3a4bc0('0x1e22')]+_0x3d4182[_0x3a4bc0('0x1e22')]+0x2:_0x49f9b4+_0x5a94f2+0x1;_0x264849[_0x3a4bc0('0x1ae')](_0x5a94f2,0x0,{'type':_0x3a4bc0('0x1a04'),'app':'GotoIfTime','appdata':_0x4151a1[_0x3a4bc0('0xe82')][_0x5a94f2]+'?'+_0xd69c1f[_0x3a4bc0('0xf33')]['context']+_0x3a4bc0('0x335')+_0x4b9f04+':'+_0xd69c1f[_0x3a4bc0('0xf33')][_0x3a4bc0('0x1c87')]+_0x3a4bc0('0x335')+_0x1ffd70,'exten':_0xd69c1f[_0x3a4bc0('0xf33')]['exten'],'context':_0xd69c1f[_0x3a4bc0('0xf33')]['context'],'priority':_0x49f9b4+_0x5a94f2,'VoiceExtensionId':_0xd69c1f[_0x3a4bc0('0xf33')]['id']});}_0x4151a1[_0x3a4bc0('0x2804')]=_0x264849[_0x3a4bc0('0x1e22')]?_0x36f548()[_0x3a4bc0('0x1093')](_0x264849)['priority']+0x1:_0x49f9b4,_0x49f9b4=(_0x3d4182['length']?_0x36f548()[_0x3a4bc0('0x1093')](_0x3d4182)[_0x3a4bc0('0x2804')]:_0x4151a1[_0x3a4bc0('0x2804')])+0x1,_0x304128=_0x36f548()[_0x3a4bc0('0x20bf')](_0x304128,_0x264849,[_0x4151a1],_0x3d4182);}_0x304128[_0x3a4bc0('0x105d')]({'type':_0x3a4bc0('0x1a04'),'app':'Hangup','exten':_0xd69c1f[_0x3a4bc0('0xf33')]['exten'],'context':_0xd69c1f[_0x3a4bc0('0xf33')][_0x3a4bc0('0x1c87')],'priority':_0x49f9b4,'VoiceExtensionId':_0xd69c1f['internalroute']['id']}),_0x59ba22[_0x3a4bc0('0x417')]['addApplications']({'id':_0xd69c1f[_0x3a4bc0('0xf33')]['id']},_0x36f548()[_0x3a4bc0('0xd39')](_0x304128,_0x3a4bc0('0x2804')))[_0x3a4bc0('0x1549')]['then'](function(_0x35c1ea){const _0x388abb=_0x3a4bc0;_0xd69c1f[_0x388abb('0xdbc')][_0x388abb('0x19b2')]=_0x35c1ea[_0x388abb('0x19b2')];})[_0x3a4bc0('0x151d')](function(_0x15348f){const _0x1e983b=_0x3a4bc0;console[_0x1e983b('0x255')](_0x15348f);});}function _0x1eac96(_0x7520b7){const _0x313466=_0x4840ce;_0xd69c1f[_0x313466('0xdbc')]=_0x7520b7||{'count':0x0,'rows':[]};}function _0x437af6(){const _0x444edf=_0x4840ce;return _0x59ba22[_0x444edf('0x507')][_0x444edf('0xbaa')]({'fields':_0x444edf('0x17ae')})[_0x444edf('0x1549')][_0x444edf('0x11bf')](function(_0x5677e8){const _0x4128f6=_0x444edf;_0xd69c1f[_0x4128f6('0xe82')]=_0x5677e8;})[_0x444edf('0x151d')](function(_0x287dc1){const _0x71af38=_0x444edf;console[_0x71af38('0x255')](_0x287dc1);});}function _0xbcfa6(){const _0xba5e2e=_0x4840ce;_0xd69c1f['promise']=_0x59ba22[_0xba5e2e('0x417')][_0xba5e2e('0xbaa')](_0xd69c1f[_0xba5e2e('0x1f2a')],_0x1eac96)[_0xba5e2e('0x1549')];}function _0x1984c7(_0x57768f){const _0x4e8e35=_0x4840ce;_0x36f548()[_0x4e8e35('0x14a5')](_0xd69c1f[_0x4e8e35('0xdbc')]['rows'],{'id':_0x57768f['id']}),_0x1acc66(),_0x4c4b25['success']({'title':_0x4e8e35('0xb44'),'msg':_0x57768f[_0x4e8e35('0x18f5')]?_0x57768f[_0x4e8e35('0x18f5')]+'\x20has\x20been\x20deleted!':''});}function _0x4e6d89(_0xeb6c90){const _0x22529e=_0x4840ce,_0x30f461=_0x415b18['confirm']()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20applications?')[_0x22529e('0x1d03')](_0x22529e('0x2061')+_0xd69c1f[_0x22529e('0x1f73')]['length']+_0x22529e('0xac6')+_0x22529e('0x1a'))['ariaLabel'](_0x22529e('0x1aa4'))[_0x22529e('0x1e25')](_0xeb6c90)['ok']('OK')[_0x22529e('0x26c9')](_0x22529e('0x772'));_0x415b18['show'](_0x30f461)[_0x22529e('0x11bf')](function(){const _0x1883bb=_0x22529e;_0xd69c1f[_0x1883bb('0x1f73')][_0x1883bb('0x1f88')](function(_0x4031fd){const _0x197d4f=_0x1883bb;_0x36f548()['remove'](_0xd69c1f[_0x197d4f('0xdbc')][_0x197d4f('0x19b2')],{'id':_0x4031fd['id']});}),_0xd69c1f['selectedInternalRouteApps']=[],_0x1acc66();});}}const _0x4ba909=_0x1317f4;_0x3180a4['$inject']=[_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0x142d'),_0x21d0f5('0xb4e'),_0x21d0f5('0xf33'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),'crudPermissions'];function _0x3180a4(_0x3eadbe,_0x5418b6,_0xde1505,_0x263962,_0x1db0bc,_0x1d8ffe,_0x348ff3,_0x1758da){const _0x3b1492=_0x21d0f5,_0x57981e=this;_0x57981e[_0x3b1492('0x32a')]=_0x348ff3['getCurrentUser'](),_0x57981e['errors']=[],_0x57981e['title']=_0x3b1492('0x2306')+(_0x263962[_0x3b1492('0x27c0')]||_0x263962[_0x3b1492('0x18f5')])[_0x3b1492('0xa6f')](),_0x57981e['agi']=angular['copy'](_0x263962),_0x57981e['crudPermissions']=_0x1758da,_0x57981e['hasModulePermissions']={};if(_0x57981e[_0x3b1492('0x1efd')][_0x3b1492('0x13fc')])switch(_0x57981e[_0x3b1492('0x1efd')][_0x3b1492('0x27c0')]?_0x57981e[_0x3b1492('0x1efd')][_0x3b1492('0x27c0')]['toLowerCase']():_0x57981e['agi'][_0x3b1492('0x18f5')][_0x3b1492('0x20d5')]()){case'custom':break;case _0x3b1492('0x185e'):{const _0x29126f=_0x57981e[_0x3b1492('0x1efd')][_0x3b1492('0x13fc')][_0x3b1492('0xaf8')](',');_0x57981e[_0x3b1492('0x1efd')][_0x3b1492('0xa0c')]=_0x29126f[0x0],_0x57981e[_0x3b1492('0x1efd')][_0x3b1492('0xeff')]=_0x29126f[0x1],_0x57981e[_0x3b1492('0x1efd')][_0x3b1492('0x1cbc')]=_0x29126f['slice'](0x2,_0x29126f[_0x3b1492('0x1e22')])[_0x3b1492('0xa04')](',');}break;case'dialogflowv2':{const _0x322ded=_0x57981e[_0x3b1492('0x1efd')][_0x3b1492('0x13fc')][_0x3b1492('0xaf8')](',');_0x57981e[_0x3b1492('0x1efd')][_0x3b1492('0x20e')]=_0x322ded[0x0],_0x57981e[_0x3b1492('0x1efd')][_0x3b1492('0x1f91')]=_0x322ded[0x1],_0x57981e['agi'][_0x3b1492('0x1c6c')]=_0x322ded[0x2],_0x57981e[_0x3b1492('0x1efd')][_0x3b1492('0xeff')]=_0x322ded[0x3],_0x57981e[_0x3b1492('0x1efd')][_0x3b1492('0x1cbc')]=_0x322ded[_0x3b1492('0x1b77')](0x4,_0x322ded[_0x3b1492('0x1e22')])[_0x3b1492('0xa04')](',');}break;case'amazonlex':{const _0x76bd9f=_0x57981e[_0x3b1492('0x1efd')]['appdata'][_0x3b1492('0xaf8')](',');_0x57981e[_0x3b1492('0x1efd')][_0x3b1492('0x1a82')]=_0x76bd9f[0x0],_0x57981e[_0x3b1492('0x1efd')][_0x3b1492('0x1422')]=_0x76bd9f[0x1],_0x57981e[_0x3b1492('0x1efd')][_0x3b1492('0x165a')]=_0x76bd9f[0x2],_0x57981e['agi'][_0x3b1492('0x1e8f')]=_0x76bd9f[0x3],_0x57981e[_0x3b1492('0x1efd')]['welcomemessage']=_0x76bd9f[_0x3b1492('0x1b77')](0x4,_0x76bd9f[_0x3b1492('0x1e22')])[_0x3b1492('0xa04')](',');}break;case _0x3b1492('0x187b'):{const _0x50db95=_0x57981e[_0x3b1492('0x1efd')]['appdata'][_0x3b1492('0xaf8')](',');_0x57981e[_0x3b1492('0x1efd')][_0x3b1492('0x663')]=isNaN(_0x50db95[0x0])?_0x50db95[0x0]:parseInt(_0x50db95[0x0],0xa),_0x57981e[_0x3b1492('0x1efd')][_0x3b1492('0x25ed')]=_0x50db95[_0x3b1492('0x1b77')](0x1,_0x50db95[_0x3b1492('0x1e22')])[_0x3b1492('0xa04')](',');}break;case _0x3b1492('0x1b86'):_0x57981e[_0x3b1492('0x1efd')][_0x3b1492('0x25ed')]=_0x57981e['agi'][_0x3b1492('0x13fc')];break;case _0x3b1492('0xe50'):_0x57981e['agi'][_0x3b1492('0x1909')]=_0x57981e[_0x3b1492('0x1efd')][_0x3b1492('0x13fc')][_0x3b1492('0xaf8')]('=')[0x0],_0x57981e[_0x3b1492('0x1efd')][_0x3b1492('0x10cc')]=_0x57981e['agi'][_0x3b1492('0x13fc')][_0x3b1492('0xaf8')]('=')[0x1];break;case'agi':_0x57981e[_0x3b1492('0x1efd')]['project']=_0x57981e['agi'][_0x3b1492('0x13fc')];break;default:{const _0x5a716f=_0x57981e[_0x3b1492('0x1efd')]['appdata']['split'](',');_0x57981e[_0x3b1492('0x1efd')][_0x3b1492('0xef0')]=_0x36f548()[_0x3b1492('0x1fc5')](_0x5a716f[0x0])?_0x5a716f[0x0]:isNaN(_0x5a716f[0x0])?_0x5a716f[0x0]:parseInt(_0x5a716f[0x0],0xa);}break;}else{}_0x57981e[_0x3b1492('0x1efd')][_0x3b1492('0x19fd')]&&_0x57981e[_0x3b1492('0x1efd')][_0x3b1492('0x19fd')][_0x3b1492('0x20d5')]()===_0x3b1492('0x25b6')&&_0x57981e[_0x3b1492('0x1efd')][_0x3b1492('0x27c0')][_0x3b1492('0x20d5')]()===_0x3b1492('0x1a64')&&(_0x57981e[_0x3b1492('0x1efd')]['prefix']=_0x57981e['agi']['phone']?_0x57981e['agi'][_0x3b1492('0x1546')]['split']('$')[0x0]:undefined,_0x57981e[_0x3b1492('0x1efd')][_0x3b1492('0x7d0')]=_0x57981e[_0x3b1492('0x1efd')][_0x3b1492('0xc38')]?_0x3b1492('0x83a')+_0x57981e['agi'][_0x3b1492('0xc38')]:undefined);_0x57981e[_0x3b1492('0x2781')]=_0x33de37,_0x57981e[_0x3b1492('0xc4e')]=_0xbf84b6,_0x348ff3['hasRole']('admin')?_0x1d8ffe['squareProject'][_0x3b1492('0xbaa')]({'fields':_0x3b1492('0x721'),'sort':_0x3b1492('0x1909'),'nolimit':_0x3b1492('0x204c')})[_0x3b1492('0x1549')]['then'](function(_0x37f79b){const _0x230f56=_0x3b1492;_0x57981e['projects']=_0x37f79b[_0x230f56('0x19b2')]||[];})[_0x3b1492('0x151d')](function(_0x4851dc){const _0x3469bf=_0x3b1492;_0xde1505[_0x3469bf('0x255')]({'title':_0x4851dc[_0x3469bf('0xff9')]?_0x3469bf('0x574')+_0x4851dc['status']+_0x3469bf('0xb0b')+_0x4851dc[_0x3469bf('0x212f')]:_0x3469bf('0x21e4'),'msg':_0x4851dc[_0x3469bf('0x4e8')]?JSON[_0x3469bf('0x3e')](_0x4851dc[_0x3469bf('0x4e8')]):_0x4851dc[_0x3469bf('0xaab')]()});}):_0x1d8ffe[_0x3b1492('0x1671')][_0x3b1492('0xbaa')]({'fields':'id,name','sort':_0x3b1492('0x1909'),'nolimit':_0x3b1492('0x204c')})[_0x3b1492('0x1549')][_0x3b1492('0x11bf')](function(_0x268145){const _0x225916=_0x3b1492;_0x57981e[_0x225916('0xa62')]=_0x268145[_0x225916('0x19b2')]||[];})[_0x3b1492('0x11bf')](function(){const _0x1f26de=_0x3b1492;return _0x1d8ffe[_0x1f26de('0x1d63')]['get']({'userProfileId':_0x57981e[_0x1f26de('0x32a')][_0x1f26de('0x781')],'sectionId':0x44f})['$promise'];})[_0x3b1492('0x11bf')](function(_0x5e7325){const _0x3ccdbf=_0x3b1492,_0x365b22=_0x5e7325&&_0x5e7325[_0x3ccdbf('0x19b2')]?_0x5e7325['rows'][0x0]:null;if(!_0x365b22){const _0x235de7=[];let _0x559bd9=null;_0x57981e[_0x3ccdbf('0x1efd')]&&(_0x559bd9=_0x36f548()[_0x3ccdbf('0x1ad4')](_0x57981e[_0x3ccdbf('0xa62')],{'name':_0x57981e[_0x3ccdbf('0x1efd')]['project']}));for(let _0x104898=0x0;_0x104898<_0x57981e[_0x3ccdbf('0xa62')][_0x3ccdbf('0x1e22')];_0x104898++){_0x559bd9&&_0x57981e[_0x3ccdbf('0xa62')][_0x104898]['id']===_0x559bd9['id']&&(_0x57981e[_0x3ccdbf('0xa62')][_0x104898][_0x3ccdbf('0x254a')]=![],_0x235de7[_0x3ccdbf('0x105d')](_0x57981e[_0x3ccdbf('0xa62')][_0x104898]));}_0x57981e['projects']=_0x235de7;}else{if(!_0x365b22[_0x3ccdbf('0xf11')])return _0x1d8ffe[_0x3ccdbf('0x26d1')][_0x3ccdbf('0xbaa')]({'sectionId':_0x365b22['id']})[_0x3ccdbf('0x1549')][_0x3ccdbf('0x11bf')](function(_0x9e1450){const _0x242e61=_0x3ccdbf,_0x354456=_0x36f548()['map'](_0x9e1450[_0x242e61('0x19b2')],function(_0x50ce58){const _0x2d6bb0=_0x242e61;return _0x36f548()[_0x2d6bb0('0x1ad4')](_0x57981e[_0x2d6bb0('0xa62')],{'id':_0x50ce58[_0x2d6bb0('0x15a5')]});});let _0x5bfead=null;_0x57981e[_0x242e61('0x1efd')]&&(_0x5bfead=_0x36f548()['find'](_0x57981e[_0x242e61('0xa62')],{'name':_0x57981e['agi'][_0x242e61('0xef0')]}));if(_0x5bfead&&!_0x36f548()[_0x242e61('0x1cb3')](_0x354456,['id',_0x5bfead['id']])){const _0x23f7dc=_0x36f548()['find'](_0x57981e[_0x242e61('0xa62')],{'id':_0x5bfead['id']});_0x23f7dc[_0x242e61('0x254a')]=![],_0x354456[_0x242e61('0x105d')](_0x23f7dc);}_0x57981e[_0x242e61('0xa62')]=_0x354456;});}})[_0x3b1492('0x151d')](function(_0x557464){const _0x363339=_0x3b1492;_0xde1505[_0x363339('0x255')]({'title':_0x557464[_0x363339('0xff9')]?_0x363339('0x574')+_0x557464[_0x363339('0xff9')]+_0x363339('0xb0b')+_0x557464[_0x363339('0x212f')]:'SYSTEM:GETprojects','msg':_0x557464[_0x363339('0x4e8')]?JSON[_0x363339('0x3e')](_0x557464[_0x363339('0x4e8')]):_0x557464['toString']()});});function _0x33de37(){const _0x234a8d=_0x3b1492;_0x57981e[_0x234a8d('0x120f')]=[];const _0x2e753a=[];_0x57981e['agi'][_0x234a8d('0x19fd')]&&_0x57981e[_0x234a8d('0x1efd')][_0x234a8d('0x19fd')][_0x234a8d('0x20d5')]()===_0x234a8d('0x25b6')&&_0x57981e[_0x234a8d('0x1efd')]['appType']==='outboundDial'&&(_0x57981e['agi']['phone']=_0x1db0bc[_0x234a8d('0x388')]?(_0x57981e[_0x234a8d('0x1efd')]['prefix']||'')+_0x234a8d('0x2100')+_0x1db0bc[_0x234a8d('0x388')]+'}':(_0x57981e[_0x234a8d('0x1efd')]['prefix']||'')+_0x234a8d('0x1f76'),_0x1db0bc['recordingFormat']!==_0x234a8d('0x3e6')?_0x57981e[_0x234a8d('0x1efd')][_0x234a8d('0x249a')][_0x234a8d('0x203c')]('U(xcally-mixmonitor-context)')<0x0&&(_0x57981e[_0x234a8d('0x1efd')][_0x234a8d('0x249a')]+=_0x234a8d('0x22c9')):_0x57981e[_0x234a8d('0x1efd')][_0x234a8d('0x249a')]=_0x57981e['agi'][_0x234a8d('0x249a')]['replace'](_0x234a8d('0x22c9'),''));if(_0x57981e[_0x234a8d('0x1efd')][_0x234a8d('0x27c0')]&&_0x57981e[_0x234a8d('0x1efd')]['appType']===_0x234a8d('0xa8d')){}else switch((_0x57981e[_0x234a8d('0x1efd')][_0x234a8d('0x18f5')]||_0x57981e[_0x234a8d('0x1efd')]['appType'])[_0x234a8d('0x20d5')]()){case _0x234a8d('0xe50'):_0x57981e[_0x234a8d('0x1efd')][_0x234a8d('0x13fc')]=_0x57981e[_0x234a8d('0x1efd')][_0x234a8d('0x1909')]+'='+_0x57981e[_0x234a8d('0x1efd')]['value'];break;case _0x234a8d('0xa8d'):break;default:_0x2e753a[0x0]=_0x57981e[_0x234a8d('0x1efd')]['project'],_0x57981e[_0x234a8d('0x1efd')][_0x234a8d('0x13fc')]=_0x2e753a[_0x234a8d('0xa04')](',');}_0xbf84b6(_0x57981e[_0x234a8d('0x1efd')]);}function _0xbf84b6(_0x4b5ce6){const _0x1f6f74=_0x3b1492;_0x3eadbe[_0x1f6f74('0x237e')](_0x4b5ce6);}}const _0x47d365=_0x3180a4;_0x578294[_0x21d0f5('0x1e9a')]=['$mdDialog','$q',_0x21d0f5('0x142d'),'internalrouteApp',_0x21d0f5('0xf33'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),_0x21d0f5('0xb25')];function _0x578294(_0x37d266,_0x2166e0,_0x18f9f5,_0x5775b5,_0x4a0d5b,_0x45c751,_0x4d31af,_0x14ab05){const _0x432dbf=_0x21d0f5,_0xd2efbf=this;_0xd2efbf[_0x432dbf('0x32a')]=_0x4d31af[_0x432dbf('0x2428')](),_0xd2efbf['errors']=[],_0xd2efbf['title']=_0x432dbf('0x2306')+(_0x5775b5['appType']||_0x5775b5['app'])[_0x432dbf('0xa6f')](),_0xd2efbf[_0x432dbf('0xa8d')]=angular[_0x432dbf('0x6fb')](_0x5775b5),_0xd2efbf[_0x432dbf('0xb25')]=_0x14ab05,_0xd2efbf[_0x432dbf('0x2c9')]={};if(_0xd2efbf[_0x432dbf('0xa8d')][_0x432dbf('0x13fc')])switch(_0xd2efbf[_0x432dbf('0xa8d')][_0x432dbf('0x27c0')]?_0xd2efbf[_0x432dbf('0xa8d')][_0x432dbf('0x27c0')][_0x432dbf('0x20d5')]():_0xd2efbf[_0x432dbf('0xa8d')][_0x432dbf('0x18f5')]['toLowerCase']()){case _0x432dbf('0xa8d'):break;case'dialogflow':{const _0x5a7e93=_0xd2efbf[_0x432dbf('0xa8d')][_0x432dbf('0x13fc')]['split'](',');_0xd2efbf[_0x432dbf('0xa8d')][_0x432dbf('0xa0c')]=_0x5a7e93[0x0],_0xd2efbf['custom'][_0x432dbf('0xeff')]=_0x5a7e93[0x1],_0xd2efbf[_0x432dbf('0xa8d')][_0x432dbf('0x1cbc')]=_0x5a7e93[_0x432dbf('0x1b77')](0x2,_0x5a7e93[_0x432dbf('0x1e22')])[_0x432dbf('0xa04')](',');}break;case'dialogflowv2':{const _0x50563f=_0xd2efbf['custom']['appdata']['split'](',');_0xd2efbf['custom']['projectId']=_0x50563f[0x0],_0xd2efbf['custom'][_0x432dbf('0x1f91')]=_0x50563f[0x1],_0xd2efbf[_0x432dbf('0xa8d')]['privateKey']=_0x50563f[0x2],_0xd2efbf[_0x432dbf('0xa8d')][_0x432dbf('0xeff')]=_0x50563f[0x3],_0xd2efbf[_0x432dbf('0xa8d')][_0x432dbf('0x1cbc')]=_0x50563f['slice'](0x4,_0x50563f[_0x432dbf('0x1e22')])[_0x432dbf('0xa04')](',');}break;case _0x432dbf('0x102c'):{const _0x3c8a45=_0xd2efbf['custom'][_0x432dbf('0x13fc')][_0x432dbf('0xaf8')](',');_0xd2efbf[_0x432dbf('0xa8d')][_0x432dbf('0x1a82')]=_0x3c8a45[0x0],_0xd2efbf[_0x432dbf('0xa8d')][_0x432dbf('0x1422')]=_0x3c8a45[0x1],_0xd2efbf['custom'][_0x432dbf('0x165a')]=_0x3c8a45[0x2],_0xd2efbf[_0x432dbf('0xa8d')][_0x432dbf('0x1e8f')]=_0x3c8a45[0x3],_0xd2efbf[_0x432dbf('0xa8d')][_0x432dbf('0x1cbc')]=_0x3c8a45[_0x432dbf('0x1b77')](0x4,_0x3c8a45[_0x432dbf('0x1e22')])[_0x432dbf('0xa04')](',');}break;case'autoreply':{const _0x1da24d=_0xd2efbf[_0x432dbf('0xa8d')][_0x432dbf('0x13fc')][_0x432dbf('0xaf8')](',');_0xd2efbf[_0x432dbf('0xa8d')]['times']=isNaN(_0x1da24d[0x0])?_0x1da24d[0x0]:parseInt(_0x1da24d[0x0],0xa),_0xd2efbf[_0x432dbf('0xa8d')][_0x432dbf('0x25ed')]=_0x1da24d['slice'](0x1,_0x1da24d[_0x432dbf('0x1e22')])['join'](',');}break;case _0x432dbf('0x1b86'):_0xd2efbf[_0x432dbf('0xa8d')][_0x432dbf('0x25ed')]=_0xd2efbf[_0x432dbf('0xa8d')][_0x432dbf('0x13fc')];break;case _0x432dbf('0xe50'):_0xd2efbf['custom'][_0x432dbf('0x1909')]=_0xd2efbf[_0x432dbf('0xa8d')][_0x432dbf('0x13fc')]['split']('=')[0x0],_0xd2efbf[_0x432dbf('0xa8d')][_0x432dbf('0x10cc')]=_0xd2efbf['custom']['appdata']['split']('=')[0x1];break;case _0x432dbf('0x1efd'):_0xd2efbf[_0x432dbf('0xa8d')][_0x432dbf('0xef0')]=_0xd2efbf[_0x432dbf('0xa8d')]['appdata'];break;default:{const _0x4052f9=_0xd2efbf['custom']['appdata'][_0x432dbf('0xaf8')](',');_0xd2efbf[_0x432dbf('0xa8d')][_0x432dbf('0x18f5')]=_0x36f548()[_0x432dbf('0x1fc5')](_0x4052f9[0x0])?_0x4052f9[0x0]:isNaN(_0x4052f9[0x0])?_0x4052f9[0x0]:parseInt(_0x4052f9[0x0],0xa),_0xd2efbf[_0x432dbf('0xa8d')][_0x432dbf('0x13fc')]=_0x36f548()[_0x432dbf('0x1fc5')](_0x4052f9[0x1])?_0x4052f9[0x1]:isNaN(_0x4052f9[0x1])?_0x4052f9[0x1]:parseInt(_0x4052f9[0x1],0xa);}break;}else{}_0xd2efbf['custom']['type']&&_0xd2efbf[_0x432dbf('0xa8d')][_0x432dbf('0x19fd')][_0x432dbf('0x20d5')]()===_0x432dbf('0x25b6')&&_0xd2efbf[_0x432dbf('0xa8d')][_0x432dbf('0x27c0')]['toLowerCase']()===_0x432dbf('0x1a64')&&(_0xd2efbf['custom'][_0x432dbf('0x2137')]=_0xd2efbf[_0x432dbf('0xa8d')][_0x432dbf('0x1546')]?_0xd2efbf[_0x432dbf('0xa8d')][_0x432dbf('0x1546')][_0x432dbf('0xaf8')]('$')[0x0]:undefined,_0xd2efbf[_0x432dbf('0xa8d')]['callerId']=_0xd2efbf[_0x432dbf('0xa8d')][_0x432dbf('0xc38')]?_0x432dbf('0x83a')+_0xd2efbf['custom'][_0x432dbf('0xc38')]:undefined);_0xd2efbf[_0x432dbf('0x2781')]=_0x4d3191,_0xd2efbf[_0x432dbf('0xc4e')]=_0x118bfd;function _0x4d3191(){const _0x4b1396=_0x432dbf;_0xd2efbf[_0x4b1396('0x120f')]=[];const _0x862c5c=[];_0xd2efbf[_0x4b1396('0xa8d')][_0x4b1396('0x19fd')]&&_0xd2efbf[_0x4b1396('0xa8d')][_0x4b1396('0x19fd')]['toLowerCase']()===_0x4b1396('0x25b6')&&_0xd2efbf[_0x4b1396('0xa8d')][_0x4b1396('0x27c0')]==='outboundDial'&&(_0xd2efbf['custom'][_0x4b1396('0x1546')]=_0x4a0d5b[_0x4b1396('0x388')]?(_0xd2efbf[_0x4b1396('0xa8d')][_0x4b1396('0x2137')]||'')+_0x4b1396('0x2100')+_0x4a0d5b[_0x4b1396('0x388')]+'}':(_0xd2efbf[_0x4b1396('0xa8d')][_0x4b1396('0x2137')]||'')+_0x4b1396('0x1f76'),_0x4a0d5b[_0x4b1396('0x897')]!==_0x4b1396('0x3e6')?_0xd2efbf[_0x4b1396('0xa8d')][_0x4b1396('0x249a')]['indexOf'](_0x4b1396('0x22c9'))<0x0&&(_0xd2efbf[_0x4b1396('0xa8d')][_0x4b1396('0x249a')]+=_0x4b1396('0x22c9')):_0xd2efbf['custom'][_0x4b1396('0x249a')]=_0xd2efbf['custom'][_0x4b1396('0x249a')]['replace'](_0x4b1396('0x22c9'),''));if(_0xd2efbf[_0x4b1396('0xa8d')][_0x4b1396('0x27c0')]&&_0xd2efbf[_0x4b1396('0xa8d')]['appType']===_0x4b1396('0xa8d')){}else switch((_0xd2efbf[_0x4b1396('0xa8d')][_0x4b1396('0x18f5')]||_0xd2efbf[_0x4b1396('0xa8d')][_0x4b1396('0x27c0')])[_0x4b1396('0x20d5')]()){case'set':_0xd2efbf[_0x4b1396('0xa8d')][_0x4b1396('0x13fc')]=_0xd2efbf[_0x4b1396('0xa8d')][_0x4b1396('0x1909')]+'='+_0xd2efbf['custom'][_0x4b1396('0x10cc')];break;case _0x4b1396('0xa8d'):break;default:_0x862c5c[0x0]=_0xd2efbf[_0x4b1396('0xa8d')]['app'],_0x862c5c[0x1]=_0xd2efbf[_0x4b1396('0xa8d')]['appdata'],_0xd2efbf['custom']['appdata']=_0x862c5c[_0x4b1396('0xa04')](',');}_0x118bfd(_0xd2efbf[_0x4b1396('0xa8d')]);}function _0x118bfd(_0x1a9102){const _0x31b498=_0x432dbf;_0x37d266[_0x31b498('0x237e')](_0x1a9102);}}const _0x10638b=_0x578294;_0x13a9a5['$inject']=['$mdDialog','$q',_0x21d0f5('0x142d'),_0x21d0f5('0xb4e'),_0x21d0f5('0xf33'),_0x21d0f5('0x12a5'),'Auth','crudPermissions'];function _0x13a9a5(_0x974645,_0x5bb2cc,_0x13e9d9,_0x41febd,_0x16af1b,_0x586d19,_0x411499,_0x136e67){const _0x443096=_0x21d0f5,_0x403842=this;_0x403842[_0x443096('0x32a')]=_0x411499[_0x443096('0x2428')](),_0x403842[_0x443096('0x120f')]=[],_0x403842[_0x443096('0x134b')]=_0x443096('0x2306')+(_0x41febd['appType']||_0x41febd[_0x443096('0x18f5')])[_0x443096('0xa6f')](),_0x403842[_0x443096('0x1b40')]=angular[_0x443096('0x6fb')](_0x41febd),_0x403842['crudPermissions']=_0x136e67,_0x403842[_0x443096('0x2c9')]={};if(_0x403842[_0x443096('0x1b40')][_0x443096('0x13fc')])switch(_0x403842[_0x443096('0x1b40')][_0x443096('0x27c0')]?_0x403842[_0x443096('0x1b40')][_0x443096('0x27c0')]['toLowerCase']():_0x403842['dial'][_0x443096('0x18f5')]['toLowerCase']()){case'custom':break;case _0x443096('0x185e'):{const _0x5e4d63=_0x403842[_0x443096('0x1b40')]['appdata'][_0x443096('0xaf8')](',');_0x403842[_0x443096('0x1b40')][_0x443096('0xa0c')]=_0x5e4d63[0x0],_0x403842[_0x443096('0x1b40')]['language']=_0x5e4d63[0x1],_0x403842[_0x443096('0x1b40')][_0x443096('0x1cbc')]=_0x5e4d63[_0x443096('0x1b77')](0x2,_0x5e4d63['length'])[_0x443096('0xa04')](',');}break;case _0x443096('0x21a8'):{const _0x23ef13=_0x403842[_0x443096('0x1b40')][_0x443096('0x13fc')][_0x443096('0xaf8')](',');_0x403842[_0x443096('0x1b40')][_0x443096('0x20e')]=_0x23ef13[0x0],_0x403842['dial'][_0x443096('0x1f91')]=_0x23ef13[0x1],_0x403842[_0x443096('0x1b40')][_0x443096('0x1c6c')]=_0x23ef13[0x2],_0x403842[_0x443096('0x1b40')][_0x443096('0xeff')]=_0x23ef13[0x3],_0x403842[_0x443096('0x1b40')]['welcomemessage']=_0x23ef13[_0x443096('0x1b77')](0x4,_0x23ef13[_0x443096('0x1e22')])[_0x443096('0xa04')](',');}break;case'amazonlex':{const _0xabae07=_0x403842[_0x443096('0x1b40')][_0x443096('0x13fc')][_0x443096('0xaf8')](',');_0x403842[_0x443096('0x1b40')]['accesskeyid']=_0xabae07[0x0],_0x403842['dial'][_0x443096('0x1422')]=_0xabae07[0x1],_0x403842[_0x443096('0x1b40')]['lexregion']=_0xabae07[0x2],_0x403842[_0x443096('0x1b40')][_0x443096('0x1e8f')]=_0xabae07[0x3],_0x403842[_0x443096('0x1b40')]['welcomemessage']=_0xabae07[_0x443096('0x1b77')](0x4,_0xabae07[_0x443096('0x1e22')])[_0x443096('0xa04')](',');}break;case'autoreply':{const _0x12aa57=_0x403842[_0x443096('0x1b40')][_0x443096('0x13fc')]['split'](',');_0x403842[_0x443096('0x1b40')][_0x443096('0x663')]=isNaN(_0x12aa57[0x0])?_0x12aa57[0x0]:parseInt(_0x12aa57[0x0],0xa),_0x403842[_0x443096('0x1b40')][_0x443096('0x25ed')]=_0x12aa57[_0x443096('0x1b77')](0x1,_0x12aa57[_0x443096('0x1e22')])[_0x443096('0xa04')](',');}break;case _0x443096('0x1b86'):_0x403842[_0x443096('0x1b40')][_0x443096('0x25ed')]=_0x403842['dial'][_0x443096('0x13fc')];break;case'set':_0x403842['dial'][_0x443096('0x1909')]=_0x403842[_0x443096('0x1b40')]['appdata'][_0x443096('0xaf8')]('=')[0x0],_0x403842[_0x443096('0x1b40')]['value']=_0x403842[_0x443096('0x1b40')][_0x443096('0x13fc')][_0x443096('0xaf8')]('=')[0x1];break;case _0x443096('0x1efd'):_0x403842[_0x443096('0x1b40')]['project']=_0x403842[_0x443096('0x1b40')][_0x443096('0x13fc')];break;default:{const _0x2b2c33=_0x403842['dial']['appdata'][_0x443096('0xaf8')](',');_0x403842[_0x443096('0x1b40')][_0x443096('0xae7')]=_0x36f548()[_0x443096('0x1fc5')](_0x2b2c33[0x0])?_0x2b2c33[0x0]:isNaN(_0x2b2c33[0x0])?_0x2b2c33[0x0]:parseInt(_0x2b2c33[0x0],0xa),_0x403842[_0x443096('0x1b40')]['timeout']=_0x36f548()[_0x443096('0x1fc5')](_0x2b2c33[0x1])?_0x2b2c33[0x1]:isNaN(_0x2b2c33[0x1])?_0x2b2c33[0x1]:parseInt(_0x2b2c33[0x1],0xa),_0x403842['dial'][_0x443096('0x249a')]=_0x36f548()[_0x443096('0x1fc5')](_0x2b2c33[0x2])?_0x2b2c33[0x2]:isNaN(_0x2b2c33[0x2])?_0x2b2c33[0x2]:parseInt(_0x2b2c33[0x2],0xa),_0x403842[_0x443096('0x1b40')][_0x443096('0x259e')]=_0x36f548()[_0x443096('0x1fc5')](_0x2b2c33[0x3])?_0x2b2c33[0x3]:isNaN(_0x2b2c33[0x3])?_0x2b2c33[0x3]:parseInt(_0x2b2c33[0x3],0xa);}break;}else{}_0x403842['dial'][_0x443096('0x19fd')]&&_0x403842[_0x443096('0x1b40')][_0x443096('0x19fd')][_0x443096('0x20d5')]()===_0x443096('0x25b6')&&_0x403842[_0x443096('0x1b40')]['appType'][_0x443096('0x20d5')]()==='outbounddial'&&(_0x403842[_0x443096('0x1b40')]['prefix']=_0x403842[_0x443096('0x1b40')][_0x443096('0x1546')]?_0x403842[_0x443096('0x1b40')][_0x443096('0x1546')][_0x443096('0xaf8')]('$')[0x0]:undefined,_0x403842[_0x443096('0x1b40')][_0x443096('0x7d0')]=_0x403842[_0x443096('0x1b40')][_0x443096('0xc38')]?'CALLERID(all)='+_0x403842[_0x443096('0x1b40')][_0x443096('0xc38')]:undefined);_0x403842['saveInternalRouteApp']=_0x2693c1,_0x403842[_0x443096('0xc4e')]=_0x4866df;function _0x2693c1(){const _0x50a4e1=_0x443096;_0x403842['errors']=[];const _0x47a24f=[];_0x403842[_0x50a4e1('0x1b40')]['type']&&_0x403842[_0x50a4e1('0x1b40')][_0x50a4e1('0x19fd')]['toLowerCase']()===_0x50a4e1('0x25b6')&&_0x403842[_0x50a4e1('0x1b40')][_0x50a4e1('0x27c0')]===_0x50a4e1('0x1bf6')&&(_0x403842['dial']['phone']=_0x16af1b[_0x50a4e1('0x388')]?(_0x403842[_0x50a4e1('0x1b40')][_0x50a4e1('0x2137')]||'')+'${EXTEN:'+_0x16af1b[_0x50a4e1('0x388')]+'}':(_0x403842[_0x50a4e1('0x1b40')][_0x50a4e1('0x2137')]||'')+'${EXTEN}',_0x16af1b[_0x50a4e1('0x897')]!=='none'?_0x403842['dial']['options'][_0x50a4e1('0x203c')]('U(xcally-mixmonitor-context)')<0x0&&(_0x403842[_0x50a4e1('0x1b40')][_0x50a4e1('0x249a')]+=_0x50a4e1('0x22c9')):_0x403842[_0x50a4e1('0x1b40')][_0x50a4e1('0x249a')]=_0x403842[_0x50a4e1('0x1b40')][_0x50a4e1('0x249a')][_0x50a4e1('0x814')](_0x50a4e1('0x22c9'),''));if(_0x403842[_0x50a4e1('0x1b40')]['appType']&&_0x403842['dial'][_0x50a4e1('0x27c0')]===_0x50a4e1('0xa8d')){}else switch((_0x403842['dial'][_0x50a4e1('0x18f5')]||_0x403842['dial'][_0x50a4e1('0x27c0')])[_0x50a4e1('0x20d5')]()){case'set':_0x403842[_0x50a4e1('0x1b40')][_0x50a4e1('0x13fc')]=_0x403842[_0x50a4e1('0x1b40')][_0x50a4e1('0x1909')]+'='+_0x403842[_0x50a4e1('0x1b40')][_0x50a4e1('0x10cc')];break;case _0x50a4e1('0xa8d'):break;default:_0x47a24f[0x0]=_0x403842[_0x50a4e1('0x1b40')]['tech'],_0x47a24f[0x1]=_0x403842[_0x50a4e1('0x1b40')][_0x50a4e1('0xfbe')],_0x47a24f[0x2]=_0x403842[_0x50a4e1('0x1b40')][_0x50a4e1('0x249a')],_0x47a24f[0x3]=_0x403842['dial'][_0x50a4e1('0x259e')],_0x403842[_0x50a4e1('0x1b40')][_0x50a4e1('0x13fc')]=_0x47a24f[_0x50a4e1('0xa04')](',');}_0x4866df(_0x403842[_0x50a4e1('0x1b40')]);}function _0x4866df(_0x5da0e9){const _0x366dbc=_0x443096;_0x974645[_0x366dbc('0x237e')](_0x5da0e9);}}const _0x340044=_0x13a9a5;_0x2d6ea2['$inject']=[_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0x142d'),_0x21d0f5('0xb4e'),_0x21d0f5('0xf33'),_0x21d0f5('0x12a5'),'Auth',_0x21d0f5('0xb25')];function _0x2d6ea2(_0x5b2136,_0x3cf7aa,_0x2374e7,_0x3a35fa,_0x29674a,_0x825415,_0x5c5be5,_0x18bfd5){const _0xdde36c=_0x21d0f5,_0x4bd344=this;_0x4bd344[_0xdde36c('0x32a')]=_0x5c5be5[_0xdde36c('0x2428')](),_0x4bd344['errors']=[],_0x4bd344['title']=_0xdde36c('0x2306')+(_0x3a35fa[_0xdde36c('0x27c0')]||_0x3a35fa[_0xdde36c('0x18f5')])[_0xdde36c('0xa6f')](),_0x4bd344[_0xdde36c('0x67a')]=angular['copy'](_0x3a35fa),_0x4bd344['crudPermissions']=_0x18bfd5,_0x4bd344[_0xdde36c('0x2c9')]={};if(_0x4bd344[_0xdde36c('0x67a')][_0xdde36c('0x13fc')])switch(_0x4bd344['externaldial'][_0xdde36c('0x27c0')]?_0x4bd344['externaldial'][_0xdde36c('0x27c0')][_0xdde36c('0x20d5')]():_0x4bd344['externaldial']['app'][_0xdde36c('0x20d5')]()){case _0xdde36c('0xa8d'):break;case _0xdde36c('0x185e'):{const _0x206423=_0x4bd344[_0xdde36c('0x67a')][_0xdde36c('0x13fc')][_0xdde36c('0xaf8')](',');_0x4bd344[_0xdde36c('0x67a')]['key']=_0x206423[0x0],_0x4bd344[_0xdde36c('0x67a')][_0xdde36c('0xeff')]=_0x206423[0x1],_0x4bd344['externaldial'][_0xdde36c('0x1cbc')]=_0x206423[_0xdde36c('0x1b77')](0x2,_0x206423['length'])[_0xdde36c('0xa04')](',');}break;case _0xdde36c('0x21a8'):{const _0x4cf338=_0x4bd344[_0xdde36c('0x67a')][_0xdde36c('0x13fc')][_0xdde36c('0xaf8')](',');_0x4bd344[_0xdde36c('0x67a')][_0xdde36c('0x20e')]=_0x4cf338[0x0],_0x4bd344['externaldial']['clientEmail']=_0x4cf338[0x1],_0x4bd344[_0xdde36c('0x67a')][_0xdde36c('0x1c6c')]=_0x4cf338[0x2],_0x4bd344[_0xdde36c('0x67a')][_0xdde36c('0xeff')]=_0x4cf338[0x3],_0x4bd344[_0xdde36c('0x67a')]['welcomemessage']=_0x4cf338[_0xdde36c('0x1b77')](0x4,_0x4cf338[_0xdde36c('0x1e22')])[_0xdde36c('0xa04')](',');}break;case'amazonlex':{const _0x5413c7=_0x4bd344[_0xdde36c('0x67a')][_0xdde36c('0x13fc')][_0xdde36c('0xaf8')](',');_0x4bd344['externaldial'][_0xdde36c('0x1a82')]=_0x5413c7[0x0],_0x4bd344[_0xdde36c('0x67a')]['secretaccesskey']=_0x5413c7[0x1],_0x4bd344['externaldial'][_0xdde36c('0x165a')]=_0x5413c7[0x2],_0x4bd344[_0xdde36c('0x67a')][_0xdde36c('0x1e8f')]=_0x5413c7[0x3],_0x4bd344[_0xdde36c('0x67a')][_0xdde36c('0x1cbc')]=_0x5413c7[_0xdde36c('0x1b77')](0x4,_0x5413c7[_0xdde36c('0x1e22')])[_0xdde36c('0xa04')](',');}break;case _0xdde36c('0x187b'):{const _0x469164=_0x4bd344['externaldial'][_0xdde36c('0x13fc')][_0xdde36c('0xaf8')](',');_0x4bd344[_0xdde36c('0x67a')]['times']=isNaN(_0x469164[0x0])?_0x469164[0x0]:parseInt(_0x469164[0x0],0xa),_0x4bd344[_0xdde36c('0x67a')][_0xdde36c('0x25ed')]=_0x469164['slice'](0x1,_0x469164[_0xdde36c('0x1e22')])[_0xdde36c('0xa04')](',');}break;case'message':_0x4bd344[_0xdde36c('0x67a')]['text']=_0x4bd344[_0xdde36c('0x67a')]['appdata'];break;case'set':_0x4bd344[_0xdde36c('0x67a')][_0xdde36c('0x1909')]=_0x4bd344['externaldial'][_0xdde36c('0x13fc')][_0xdde36c('0xaf8')]('=')[0x0],_0x4bd344['externaldial'][_0xdde36c('0x10cc')]=_0x4bd344[_0xdde36c('0x67a')][_0xdde36c('0x13fc')]['split']('=')[0x1];break;case _0xdde36c('0x1efd'):_0x4bd344['externaldial']['project']=_0x4bd344[_0xdde36c('0x67a')][_0xdde36c('0x13fc')];break;default:{const _0x4e9165=_0x4bd344[_0xdde36c('0x67a')][_0xdde36c('0x13fc')][_0xdde36c('0xaf8')](',');_0x4bd344[_0xdde36c('0x67a')][_0xdde36c('0x264e')]=_0x4e9165[0x0][_0xdde36c('0xaf8')]('/')[0x1],_0x4bd344[_0xdde36c('0x67a')][_0xdde36c('0x1546')]=_0x4e9165[0x0][_0xdde36c('0xaf8')]('/')[0x2],_0x4bd344[_0xdde36c('0x67a')][_0xdde36c('0xfbe')]=_0x36f548()[_0xdde36c('0x1fc5')](_0x4e9165[0x1])?_0x4e9165[0x1]:isNaN(_0x4e9165[0x1])?_0x4e9165[0x1]:parseInt(_0x4e9165[0x1],0xa),_0x4bd344[_0xdde36c('0x67a')][_0xdde36c('0x249a')]=_0x36f548()[_0xdde36c('0x1fc5')](_0x4e9165[0x2])?_0x4e9165[0x2]:isNaN(_0x4e9165[0x2])?_0x4e9165[0x2]:parseInt(_0x4e9165[0x2],0xa),_0x4bd344['externaldial'][_0xdde36c('0x259e')]=_0x36f548()[_0xdde36c('0x1fc5')](_0x4e9165[0x3])?_0x4e9165[0x3]:isNaN(_0x4e9165[0x3])?_0x4e9165[0x3]:parseInt(_0x4e9165[0x3],0xa);}break;}else{}_0x4bd344[_0xdde36c('0x67a')]['type']&&_0x4bd344[_0xdde36c('0x67a')]['type'][_0xdde36c('0x20d5')]()===_0xdde36c('0x25b6')&&_0x4bd344[_0xdde36c('0x67a')][_0xdde36c('0x27c0')][_0xdde36c('0x20d5')]()===_0xdde36c('0x1a64')&&(_0x4bd344[_0xdde36c('0x67a')][_0xdde36c('0x2137')]=_0x4bd344['externaldial'][_0xdde36c('0x1546')]?_0x4bd344['externaldial']['phone'][_0xdde36c('0xaf8')]('$')[0x0]:undefined,_0x4bd344[_0xdde36c('0x67a')][_0xdde36c('0x7d0')]=_0x4bd344[_0xdde36c('0x67a')]['callerID']?'CALLERID(all)='+_0x4bd344['externaldial'][_0xdde36c('0xc38')]:undefined);_0x4bd344[_0xdde36c('0x2781')]=_0x4ecaa2,_0x4bd344[_0xdde36c('0xc4e')]=_0x7c5cd5,_0x5c5be5[_0xdde36c('0x4ee')]('admin')?_0x825415['trunk'][_0xdde36c('0xbaa')]({'fields':_0xdde36c('0x721'),'sort':_0xdde36c('0x1909'),'nolimit':'true'})['$promise'][_0xdde36c('0x11bf')](function(_0x370d7b){const _0x381b75=_0xdde36c;_0x4bd344[_0x381b75('0x1b24')]=_0x370d7b['rows']||[];})['catch'](function(_0x27c581){const _0x1d3699=_0xdde36c;_0x2374e7[_0x1d3699('0x255')]({'title':_0x27c581[_0x1d3699('0xff9')]?_0x1d3699('0x574')+_0x27c581[_0x1d3699('0xff9')]+_0x1d3699('0xb0b')+_0x27c581[_0x1d3699('0x212f')]:'SYSTEM:GET_TRUNKS','msg':_0x27c581[_0x1d3699('0x4e8')]?JSON[_0x1d3699('0x3e')](_0x27c581[_0x1d3699('0x4e8')]):_0x27c581['toString']()});}):_0x825415['trunk'][_0xdde36c('0xbaa')]({'fields':_0xdde36c('0x721'),'sort':_0xdde36c('0x1909'),'nolimit':_0xdde36c('0x204c')})[_0xdde36c('0x1549')][_0xdde36c('0x11bf')](function(_0x536e41){const _0x3d503b=_0xdde36c;_0x4bd344[_0x3d503b('0x1b24')]=_0x536e41[_0x3d503b('0x19b2')]||[];})[_0xdde36c('0x11bf')](function(){const _0x32b3b2=_0xdde36c;return _0x825415[_0x32b3b2('0x1d63')]['get']({'userProfileId':_0x4bd344[_0x32b3b2('0x32a')]['userProfileId'],'sectionId':0x3f3})['$promise'];})['then'](function(_0x3207d3){const _0x70d701=_0xdde36c,_0x758f08=_0x3207d3&&_0x3207d3[_0x70d701('0x19b2')]?_0x3207d3[_0x70d701('0x19b2')][0x0]:null;if(!_0x758f08){const _0x4be76d=[];let _0x328f50=null;_0x4bd344[_0x70d701('0x67a')]&&(_0x328f50=_0x36f548()[_0x70d701('0x1ad4')](_0x4bd344['trunks'],{'name':_0x4bd344[_0x70d701('0x67a')]['trunk']}));for(let _0x2fa5fe=0x0;_0x2fa5fe<_0x4bd344['trunks'][_0x70d701('0x1e22')];_0x2fa5fe++){_0x328f50&&_0x4bd344[_0x70d701('0x1b24')][_0x2fa5fe]['id']===_0x328f50['id']&&(_0x4bd344[_0x70d701('0x1b24')][_0x2fa5fe][_0x70d701('0x254a')]=![],_0x4be76d[_0x70d701('0x105d')](_0x4bd344[_0x70d701('0x1b24')][_0x2fa5fe]));}_0x4bd344[_0x70d701('0x1b24')]=_0x4be76d;}else{if(!_0x758f08[_0x70d701('0xf11')])return _0x825415[_0x70d701('0x26d1')][_0x70d701('0xbaa')]({'sectionId':_0x758f08['id']})[_0x70d701('0x1549')][_0x70d701('0x11bf')](function(_0x585f32){const _0x1f6570=_0x70d701,_0x5da924=_0x36f548()[_0x1f6570('0x2171')](_0x585f32[_0x1f6570('0x19b2')],function(_0x3c5939){const _0x39d815=_0x1f6570;return _0x36f548()['find'](_0x4bd344[_0x39d815('0x1b24')],{'id':_0x3c5939[_0x39d815('0x15a5')]});});let _0x5b1106=null;_0x4bd344[_0x1f6570('0x67a')]&&(_0x5b1106=_0x36f548()['find'](_0x4bd344[_0x1f6570('0x1b24')],{'name':_0x4bd344['externaldial'][_0x1f6570('0x264e')]}));if(_0x5b1106&&!_0x36f548()[_0x1f6570('0x1cb3')](_0x5da924,['id',_0x5b1106['id']])){const _0x361b5b=_0x36f548()[_0x1f6570('0x1ad4')](_0x4bd344[_0x1f6570('0x1b24')],{'id':_0x5b1106['id']});_0x361b5b[_0x1f6570('0x254a')]=![],_0x5da924[_0x1f6570('0x105d')](_0x361b5b);}_0x4bd344['trunks']=_0x5da924;});}})[_0xdde36c('0x151d')](function(_0x2452ee){const _0x12486b=_0xdde36c;_0x2374e7[_0x12486b('0x255')]({'title':_0x2452ee[_0x12486b('0xff9')]?_0x12486b('0x574')+_0x2452ee[_0x12486b('0xff9')]+_0x12486b('0xb0b')+_0x2452ee[_0x12486b('0x212f')]:_0x12486b('0xf39'),'msg':_0x2452ee['data']?JSON[_0x12486b('0x3e')](_0x2452ee[_0x12486b('0x4e8')]):_0x2452ee['toString']()});});function _0x4ecaa2(){const _0x1a04ca=_0xdde36c;_0x4bd344[_0x1a04ca('0x120f')]=[];const _0x2d0dc1=[];_0x4bd344[_0x1a04ca('0x67a')]['type']&&_0x4bd344[_0x1a04ca('0x67a')][_0x1a04ca('0x19fd')]['toLowerCase']()===_0x1a04ca('0x25b6')&&_0x4bd344[_0x1a04ca('0x67a')][_0x1a04ca('0x27c0')]===_0x1a04ca('0x1bf6')&&(_0x4bd344['externaldial'][_0x1a04ca('0x1546')]=_0x29674a[_0x1a04ca('0x388')]?(_0x4bd344[_0x1a04ca('0x67a')][_0x1a04ca('0x2137')]||'')+_0x1a04ca('0x2100')+_0x29674a[_0x1a04ca('0x388')]+'}':(_0x4bd344[_0x1a04ca('0x67a')][_0x1a04ca('0x2137')]||'')+'${EXTEN}',_0x29674a['recordingFormat']!==_0x1a04ca('0x3e6')?_0x4bd344['externaldial'][_0x1a04ca('0x249a')][_0x1a04ca('0x203c')](_0x1a04ca('0x22c9'))<0x0&&(_0x4bd344[_0x1a04ca('0x67a')]['options']+=_0x1a04ca('0x22c9')):_0x4bd344[_0x1a04ca('0x67a')][_0x1a04ca('0x249a')]=_0x4bd344['externaldial'][_0x1a04ca('0x249a')][_0x1a04ca('0x814')](_0x1a04ca('0x22c9'),''));if(_0x4bd344[_0x1a04ca('0x67a')][_0x1a04ca('0x27c0')]&&_0x4bd344['externaldial'][_0x1a04ca('0x27c0')]===_0x1a04ca('0xa8d')){}else switch((_0x4bd344[_0x1a04ca('0x67a')][_0x1a04ca('0x18f5')]||_0x4bd344[_0x1a04ca('0x67a')][_0x1a04ca('0x27c0')])['toLowerCase']()){case _0x1a04ca('0xe50'):_0x4bd344[_0x1a04ca('0x67a')][_0x1a04ca('0x13fc')]=_0x4bd344[_0x1a04ca('0x67a')][_0x1a04ca('0x1909')]+'='+_0x4bd344[_0x1a04ca('0x67a')][_0x1a04ca('0x10cc')];break;case _0x1a04ca('0xa8d'):break;default:_0x2d0dc1[0x0]=['SIP',_0x4bd344[_0x1a04ca('0x67a')]['trunk'],_0x4bd344[_0x1a04ca('0x67a')][_0x1a04ca('0x1546')]][_0x1a04ca('0xa04')]('/'),_0x2d0dc1[0x1]=_0x4bd344[_0x1a04ca('0x67a')][_0x1a04ca('0xfbe')],_0x2d0dc1[0x2]=_0x4bd344[_0x1a04ca('0x67a')][_0x1a04ca('0x249a')],_0x2d0dc1[0x3]=_0x4bd344['externaldial'][_0x1a04ca('0x259e')],_0x4bd344[_0x1a04ca('0x67a')][_0x1a04ca('0x13fc')]=_0x2d0dc1[_0x1a04ca('0xa04')](',');}_0x7c5cd5(_0x4bd344[_0x1a04ca('0x67a')]);}function _0x7c5cd5(_0x4974b8){const _0x13840e=_0xdde36c;_0x5b2136[_0x13840e('0x237e')](_0x4974b8);}}const _0xa6f5a4=_0x2d6ea2;_0x5bf2dc['$inject']=['$mdDialog','$q','toasty',_0x21d0f5('0xb4e'),_0x21d0f5('0xf33'),'api','Auth',_0x21d0f5('0xb25')];function _0x5bf2dc(_0x4da091,_0x5f4f8e,_0x3fb3e2,_0x3795d9,_0x13a583,_0x1bf95d,_0x5dd829,_0x17f86a){const _0x105e6a=_0x21d0f5,_0x28f451=this;_0x28f451[_0x105e6a('0x32a')]=_0x5dd829[_0x105e6a('0x2428')](),_0x28f451[_0x105e6a('0x120f')]=[],_0x28f451[_0x105e6a('0x134b')]=_0x105e6a('0x2306')+(_0x3795d9['appType']||_0x3795d9[_0x105e6a('0x18f5')])[_0x105e6a('0xa6f')](),_0x28f451[_0x105e6a('0x2190')]=angular[_0x105e6a('0x6fb')](_0x3795d9),_0x28f451[_0x105e6a('0xb25')]=_0x17f86a,_0x28f451[_0x105e6a('0x2c9')]={};if(_0x28f451[_0x105e6a('0x2190')][_0x105e6a('0x13fc')])switch(_0x28f451[_0x105e6a('0x2190')][_0x105e6a('0x27c0')]?_0x28f451['goto'][_0x105e6a('0x27c0')][_0x105e6a('0x20d5')]():_0x28f451[_0x105e6a('0x2190')]['app'][_0x105e6a('0x20d5')]()){case'custom':break;case'dialogflow':{const _0x29ae67=_0x28f451[_0x105e6a('0x2190')]['appdata'][_0x105e6a('0xaf8')](',');_0x28f451[_0x105e6a('0x2190')][_0x105e6a('0xa0c')]=_0x29ae67[0x0],_0x28f451[_0x105e6a('0x2190')][_0x105e6a('0xeff')]=_0x29ae67[0x1],_0x28f451[_0x105e6a('0x2190')][_0x105e6a('0x1cbc')]=_0x29ae67[_0x105e6a('0x1b77')](0x2,_0x29ae67[_0x105e6a('0x1e22')])['join'](',');}break;case _0x105e6a('0x21a8'):{const _0x5aff0f=_0x28f451['goto'][_0x105e6a('0x13fc')][_0x105e6a('0xaf8')](',');_0x28f451[_0x105e6a('0x2190')][_0x105e6a('0x20e')]=_0x5aff0f[0x0],_0x28f451['goto'][_0x105e6a('0x1f91')]=_0x5aff0f[0x1],_0x28f451[_0x105e6a('0x2190')][_0x105e6a('0x1c6c')]=_0x5aff0f[0x2],_0x28f451['goto']['language']=_0x5aff0f[0x3],_0x28f451[_0x105e6a('0x2190')]['welcomemessage']=_0x5aff0f[_0x105e6a('0x1b77')](0x4,_0x5aff0f[_0x105e6a('0x1e22')])['join'](',');}break;case _0x105e6a('0x102c'):{const _0x44e7a4=_0x28f451[_0x105e6a('0x2190')]['appdata'][_0x105e6a('0xaf8')](',');_0x28f451[_0x105e6a('0x2190')][_0x105e6a('0x1a82')]=_0x44e7a4[0x0],_0x28f451[_0x105e6a('0x2190')][_0x105e6a('0x1422')]=_0x44e7a4[0x1],_0x28f451[_0x105e6a('0x2190')][_0x105e6a('0x165a')]=_0x44e7a4[0x2],_0x28f451[_0x105e6a('0x2190')][_0x105e6a('0x1e8f')]=_0x44e7a4[0x3],_0x28f451[_0x105e6a('0x2190')][_0x105e6a('0x1cbc')]=_0x44e7a4[_0x105e6a('0x1b77')](0x4,_0x44e7a4[_0x105e6a('0x1e22')])[_0x105e6a('0xa04')](',');}break;case _0x105e6a('0x187b'):{const _0x26f55b=_0x28f451[_0x105e6a('0x2190')][_0x105e6a('0x13fc')]['split'](',');_0x28f451['goto'][_0x105e6a('0x663')]=isNaN(_0x26f55b[0x0])?_0x26f55b[0x0]:parseInt(_0x26f55b[0x0],0xa),_0x28f451['goto'][_0x105e6a('0x25ed')]=_0x26f55b[_0x105e6a('0x1b77')](0x1,_0x26f55b[_0x105e6a('0x1e22')])['join'](',');}break;case _0x105e6a('0x1b86'):_0x28f451[_0x105e6a('0x2190')][_0x105e6a('0x25ed')]=_0x28f451[_0x105e6a('0x2190')]['appdata'];break;case _0x105e6a('0xe50'):_0x28f451['goto'][_0x105e6a('0x1909')]=_0x28f451[_0x105e6a('0x2190')][_0x105e6a('0x13fc')][_0x105e6a('0xaf8')]('=')[0x0],_0x28f451[_0x105e6a('0x2190')][_0x105e6a('0x10cc')]=_0x28f451['goto']['appdata'][_0x105e6a('0xaf8')]('=')[0x1];break;case'agi':_0x28f451['goto'][_0x105e6a('0xef0')]=_0x28f451['goto'][_0x105e6a('0x13fc')];break;default:{const _0x599452=_0x28f451[_0x105e6a('0x2190')]['appdata'][_0x105e6a('0xaf8')](',');_0x28f451[_0x105e6a('0x2190')]['context']=_0x36f548()[_0x105e6a('0x1fc5')](_0x599452[0x0])?_0x599452[0x0]:isNaN(_0x599452[0x0])?_0x599452[0x0]:parseInt(_0x599452[0x0],0xa),_0x28f451[_0x105e6a('0x2190')][_0x105e6a('0xf91')]=_0x36f548()[_0x105e6a('0x1fc5')](_0x599452[0x1])?_0x599452[0x1]:isNaN(_0x599452[0x1])?_0x599452[0x1]:parseInt(_0x599452[0x1],0xa),_0x28f451['goto'][_0x105e6a('0x2804')]=_0x36f548()[_0x105e6a('0x1fc5')](_0x599452[0x2])?_0x599452[0x2]:isNaN(_0x599452[0x2])?_0x599452[0x2]:parseInt(_0x599452[0x2],0xa);}break;}else{}_0x28f451[_0x105e6a('0x2190')][_0x105e6a('0x19fd')]&&_0x28f451[_0x105e6a('0x2190')][_0x105e6a('0x19fd')][_0x105e6a('0x20d5')]()===_0x105e6a('0x25b6')&&_0x28f451['goto'][_0x105e6a('0x27c0')]['toLowerCase']()===_0x105e6a('0x1a64')&&(_0x28f451[_0x105e6a('0x2190')][_0x105e6a('0x2137')]=_0x28f451['goto'][_0x105e6a('0x1546')]?_0x28f451[_0x105e6a('0x2190')][_0x105e6a('0x1546')][_0x105e6a('0xaf8')]('$')[0x0]:undefined,_0x28f451[_0x105e6a('0x2190')][_0x105e6a('0x7d0')]=_0x28f451[_0x105e6a('0x2190')]['callerID']?_0x105e6a('0x83a')+_0x28f451['goto'][_0x105e6a('0xc38')]:undefined);_0x28f451[_0x105e6a('0x2781')]=_0x9174f9,_0x28f451[_0x105e6a('0xc4e')]=_0x49240c,_0x5dd829[_0x105e6a('0x4ee')](_0x105e6a('0xf45'))?_0x1bf95d[_0x105e6a('0x1279')][_0x105e6a('0xbaa')]({'fields':_0x105e6a('0x721'),'sort':_0x105e6a('0x1909'),'nolimit':_0x105e6a('0x204c')})['$promise'][_0x105e6a('0x11bf')](function(_0x6a3905){const _0x49482d=_0x105e6a;_0x28f451[_0x49482d('0x803')]=_0x6a3905['rows']||[];})[_0x105e6a('0x151d')](function(_0x49f2fa){const _0x5b7a75=_0x105e6a;_0x3fb3e2[_0x5b7a75('0x255')]({'title':_0x49f2fa['status']?_0x5b7a75('0x574')+_0x49f2fa[_0x5b7a75('0xff9')]+_0x5b7a75('0xb0b')+_0x49f2fa[_0x5b7a75('0x212f')]:_0x5b7a75('0x348'),'msg':_0x49f2fa['data']?JSON[_0x5b7a75('0x3e')](_0x49f2fa[_0x5b7a75('0x4e8')]):_0x49f2fa[_0x5b7a75('0xaab')]()});}):_0x1bf95d[_0x105e6a('0x1279')][_0x105e6a('0xbaa')]({'fields':_0x105e6a('0x721'),'sort':'name','nolimit':'true'})[_0x105e6a('0x1549')][_0x105e6a('0x11bf')](function(_0x3e9f68){const _0x2e5a73=_0x105e6a;_0x28f451[_0x2e5a73('0x803')]=_0x3e9f68['rows']||[];})[_0x105e6a('0x11bf')](function(){const _0x5eeff4=_0x105e6a;return _0x1bf95d[_0x5eeff4('0x1d63')][_0x5eeff4('0xbaa')]({'userProfileId':_0x28f451[_0x5eeff4('0x32a')]['userProfileId'],'sectionId':0x195})[_0x5eeff4('0x1549')];})[_0x105e6a('0x11bf')](function(_0x49fc32){const _0x5d40ef=_0x105e6a,_0x127309=_0x49fc32&&_0x49fc32[_0x5d40ef('0x19b2')]?_0x49fc32[_0x5d40ef('0x19b2')][0x0]:null;if(!_0x127309)return _0x1bf95d['voiceContext'][_0x5d40ef('0xbaa')]({'fields':'id,name','sort':_0x5d40ef('0x1909'),'nolimit':'true','defaultEntry':0x1})[_0x5d40ef('0x1549')][_0x5d40ef('0x11bf')](function(_0x4112f8){const _0xa96218=_0x5d40ef;_0x28f451['contexts']=_0x4112f8[_0xa96218('0x19b2')]||[];});else{if(!_0x127309[_0x5d40ef('0xf11')])return _0x1bf95d[_0x5d40ef('0x26d1')][_0x5d40ef('0xbaa')]({'sectionId':_0x127309['id']})['$promise'][_0x5d40ef('0x11bf')](function(_0x35ee31){const _0x38ed46=_0x5d40ef,_0x48f7c8=_0x36f548()[_0x38ed46('0x2171')](_0x35ee31[_0x38ed46('0x19b2')],function(_0x5ecf51){const _0x32c1a8=_0x38ed46;return _0x36f548()[_0x32c1a8('0x1ad4')](_0x28f451[_0x32c1a8('0x803')],{'id':_0x5ecf51['resourceId']});});let _0x32dfbb=null;_0x28f451[_0x38ed46('0x2190')]&&(_0x32dfbb=_0x36f548()[_0x38ed46('0x1ad4')](_0x28f451[_0x38ed46('0x803')],{'name':_0x28f451[_0x38ed46('0x2190')][_0x38ed46('0x1c87')]}));if(_0x32dfbb&&!_0x36f548()[_0x38ed46('0x1cb3')](_0x48f7c8,['id',_0x32dfbb['id']])){const _0x525a57=_0x36f548()['find'](_0x28f451['contexts'],{'id':_0x32dfbb['id']});_0x525a57[_0x38ed46('0x254a')]=![],_0x48f7c8[_0x38ed46('0x105d')](_0x525a57);}_0x28f451[_0x38ed46('0x803')]=_0x48f7c8;});}})['catch'](function(_0x4f4462){const _0x5c4851=_0x105e6a;_0x3fb3e2[_0x5c4851('0x255')]({'title':_0x4f4462[_0x5c4851('0xff9')]?_0x5c4851('0x574')+_0x4f4462['status']+'\x20-\x20'+_0x4f4462[_0x5c4851('0x212f')]:_0x5c4851('0x1280'),'msg':_0x4f4462[_0x5c4851('0x4e8')]?JSON[_0x5c4851('0x3e')](_0x4f4462[_0x5c4851('0x4e8')]):_0x4f4462[_0x5c4851('0xaab')]()});});function _0x9174f9(){const _0x386567=_0x105e6a;_0x28f451['errors']=[];const _0x146b51=[];_0x28f451[_0x386567('0x2190')]['type']&&_0x28f451['goto']['type'][_0x386567('0x20d5')]()===_0x386567('0x25b6')&&_0x28f451['goto'][_0x386567('0x27c0')]===_0x386567('0x1bf6')&&(_0x28f451[_0x386567('0x2190')]['phone']=_0x13a583[_0x386567('0x388')]?(_0x28f451[_0x386567('0x2190')][_0x386567('0x2137')]||'')+_0x386567('0x2100')+_0x13a583['cutdigits']+'}':(_0x28f451['goto'][_0x386567('0x2137')]||'')+_0x386567('0x1f76'),_0x13a583['recordingFormat']!==_0x386567('0x3e6')?_0x28f451[_0x386567('0x2190')]['options']['indexOf']('U(xcally-mixmonitor-context)')<0x0&&(_0x28f451[_0x386567('0x2190')][_0x386567('0x249a')]+=_0x386567('0x22c9')):_0x28f451['goto']['options']=_0x28f451['goto']['options'][_0x386567('0x814')](_0x386567('0x22c9'),''));if(_0x28f451[_0x386567('0x2190')][_0x386567('0x27c0')]&&_0x28f451['goto'][_0x386567('0x27c0')]===_0x386567('0xa8d')){}else switch((_0x28f451[_0x386567('0x2190')][_0x386567('0x18f5')]||_0x28f451[_0x386567('0x2190')]['appType'])['toLowerCase']()){case _0x386567('0xe50'):_0x28f451[_0x386567('0x2190')]['appdata']=_0x28f451[_0x386567('0x2190')][_0x386567('0x1909')]+'='+_0x28f451[_0x386567('0x2190')]['value'];break;case _0x386567('0xa8d'):break;default:_0x146b51[0x0]=_0x28f451[_0x386567('0x2190')]['context'],_0x146b51[0x1]=_0x28f451['goto']['extension'],_0x146b51[0x2]=_0x28f451[_0x386567('0x2190')][_0x386567('0x2804')],_0x28f451[_0x386567('0x2190')][_0x386567('0x13fc')]=_0x146b51[_0x386567('0xa04')](',');}_0x49240c(_0x28f451[_0x386567('0x2190')]);}function _0x49240c(_0x3e0764){_0x4da091['hide'](_0x3e0764);}}const _0x5334d1=_0x5bf2dc;_0x490f58[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0x142d'),_0x21d0f5('0xb4e'),'internalroute',_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),_0x21d0f5('0xb25')];function _0x490f58(_0x1625f7,_0x21792d,_0x230093,_0x3bd31a,_0x4c4aeb,_0x59e140,_0xecf48a,_0x108264){const _0x407078=_0x21d0f5,_0x33caa2=this;_0x33caa2[_0x407078('0x32a')]=_0xecf48a['getCurrentUser'](),_0x33caa2[_0x407078('0x120f')]=[],_0x33caa2['title']=_0x407078('0x2306')+(_0x3bd31a[_0x407078('0x27c0')]||_0x3bd31a[_0x407078('0x18f5')])[_0x407078('0xa6f')](),_0x33caa2[_0x407078('0xcef')]=angular[_0x407078('0x6fb')](_0x3bd31a),_0x33caa2[_0x407078('0xb25')]=_0x108264,_0x33caa2[_0x407078('0x2c9')]={};if(_0x33caa2[_0x407078('0xcef')][_0x407078('0x13fc')])switch(_0x33caa2['hangup'][_0x407078('0x27c0')]?_0x33caa2[_0x407078('0xcef')][_0x407078('0x27c0')][_0x407078('0x20d5')]():_0x33caa2[_0x407078('0xcef')][_0x407078('0x18f5')]['toLowerCase']()){case _0x407078('0xa8d'):break;case _0x407078('0x185e'):{const _0x5251fe=_0x33caa2[_0x407078('0xcef')][_0x407078('0x13fc')][_0x407078('0xaf8')](',');_0x33caa2[_0x407078('0xcef')]['key']=_0x5251fe[0x0],_0x33caa2[_0x407078('0xcef')][_0x407078('0xeff')]=_0x5251fe[0x1],_0x33caa2[_0x407078('0xcef')][_0x407078('0x1cbc')]=_0x5251fe[_0x407078('0x1b77')](0x2,_0x5251fe[_0x407078('0x1e22')])[_0x407078('0xa04')](',');}break;case _0x407078('0x21a8'):{const _0x3efdd2=_0x33caa2[_0x407078('0xcef')][_0x407078('0x13fc')]['split'](',');_0x33caa2[_0x407078('0xcef')][_0x407078('0x20e')]=_0x3efdd2[0x0],_0x33caa2[_0x407078('0xcef')][_0x407078('0x1f91')]=_0x3efdd2[0x1],_0x33caa2[_0x407078('0xcef')][_0x407078('0x1c6c')]=_0x3efdd2[0x2],_0x33caa2['hangup'][_0x407078('0xeff')]=_0x3efdd2[0x3],_0x33caa2['hangup'][_0x407078('0x1cbc')]=_0x3efdd2[_0x407078('0x1b77')](0x4,_0x3efdd2['length'])['join'](',');}break;case _0x407078('0x102c'):{const _0x4c755d=_0x33caa2[_0x407078('0xcef')][_0x407078('0x13fc')]['split'](',');_0x33caa2[_0x407078('0xcef')][_0x407078('0x1a82')]=_0x4c755d[0x0],_0x33caa2['hangup'][_0x407078('0x1422')]=_0x4c755d[0x1],_0x33caa2[_0x407078('0xcef')]['lexregion']=_0x4c755d[0x2],_0x33caa2[_0x407078('0xcef')]['botname']=_0x4c755d[0x3],_0x33caa2[_0x407078('0xcef')]['welcomemessage']=_0x4c755d['slice'](0x4,_0x4c755d['length'])['join'](',');}break;case'autoreply':{const _0xea8365=_0x33caa2['hangup']['appdata'][_0x407078('0xaf8')](',');_0x33caa2['hangup'][_0x407078('0x663')]=isNaN(_0xea8365[0x0])?_0xea8365[0x0]:parseInt(_0xea8365[0x0],0xa),_0x33caa2[_0x407078('0xcef')][_0x407078('0x25ed')]=_0xea8365[_0x407078('0x1b77')](0x1,_0xea8365[_0x407078('0x1e22')])[_0x407078('0xa04')](',');}break;case _0x407078('0x1b86'):_0x33caa2[_0x407078('0xcef')][_0x407078('0x25ed')]=_0x33caa2[_0x407078('0xcef')][_0x407078('0x13fc')];break;case _0x407078('0xe50'):_0x33caa2[_0x407078('0xcef')]['name']=_0x33caa2['hangup'][_0x407078('0x13fc')]['split']('=')[0x0],_0x33caa2[_0x407078('0xcef')]['value']=_0x33caa2['hangup'][_0x407078('0x13fc')][_0x407078('0xaf8')]('=')[0x1];break;case _0x407078('0x1efd'):_0x33caa2[_0x407078('0xcef')][_0x407078('0xef0')]=_0x33caa2['hangup'][_0x407078('0x13fc')];break;default:{const _0x570fc5=_0x33caa2[_0x407078('0xcef')][_0x407078('0x13fc')][_0x407078('0xaf8')](',');_0x33caa2[_0x407078('0xcef')]['appdata']=_0x36f548()[_0x407078('0x1fc5')](_0x570fc5[0x0])?_0x570fc5[0x0]:isNaN(_0x570fc5[0x0])?_0x570fc5[0x0]:parseInt(_0x570fc5[0x0],0xa);}break;}else{}_0x33caa2[_0x407078('0xcef')]['type']&&_0x33caa2[_0x407078('0xcef')][_0x407078('0x19fd')][_0x407078('0x20d5')]()==='outbound'&&_0x33caa2[_0x407078('0xcef')][_0x407078('0x27c0')][_0x407078('0x20d5')]()===_0x407078('0x1a64')&&(_0x33caa2['hangup'][_0x407078('0x2137')]=_0x33caa2['hangup'][_0x407078('0x1546')]?_0x33caa2['hangup']['phone'][_0x407078('0xaf8')]('$')[0x0]:undefined,_0x33caa2[_0x407078('0xcef')]['callerId']=_0x33caa2[_0x407078('0xcef')]['callerID']?_0x407078('0x83a')+_0x33caa2[_0x407078('0xcef')][_0x407078('0xc38')]:undefined);_0x33caa2[_0x407078('0x2781')]=_0x262800,_0x33caa2[_0x407078('0xc4e')]=_0x4d6d38;function _0x262800(){const _0x3a19a8=_0x407078;_0x33caa2[_0x3a19a8('0x120f')]=[];const _0x461e83=[];_0x33caa2[_0x3a19a8('0xcef')]['type']&&_0x33caa2[_0x3a19a8('0xcef')][_0x3a19a8('0x19fd')]['toLowerCase']()===_0x3a19a8('0x25b6')&&_0x33caa2['hangup'][_0x3a19a8('0x27c0')]==='outboundDial'&&(_0x33caa2[_0x3a19a8('0xcef')][_0x3a19a8('0x1546')]=_0x4c4aeb[_0x3a19a8('0x388')]?(_0x33caa2[_0x3a19a8('0xcef')][_0x3a19a8('0x2137')]||'')+'${EXTEN:'+_0x4c4aeb[_0x3a19a8('0x388')]+'}':(_0x33caa2[_0x3a19a8('0xcef')][_0x3a19a8('0x2137')]||'')+'${EXTEN}',_0x4c4aeb[_0x3a19a8('0x897')]!==_0x3a19a8('0x3e6')?_0x33caa2[_0x3a19a8('0xcef')][_0x3a19a8('0x249a')][_0x3a19a8('0x203c')](_0x3a19a8('0x22c9'))<0x0&&(_0x33caa2['hangup'][_0x3a19a8('0x249a')]+=_0x3a19a8('0x22c9')):_0x33caa2[_0x3a19a8('0xcef')][_0x3a19a8('0x249a')]=_0x33caa2[_0x3a19a8('0xcef')][_0x3a19a8('0x249a')][_0x3a19a8('0x814')]('U(xcally-mixmonitor-context)',''));if(_0x33caa2[_0x3a19a8('0xcef')][_0x3a19a8('0x27c0')]&&_0x33caa2[_0x3a19a8('0xcef')][_0x3a19a8('0x27c0')]===_0x3a19a8('0xa8d')){}else switch((_0x33caa2['hangup'][_0x3a19a8('0x18f5')]||_0x33caa2[_0x3a19a8('0xcef')][_0x3a19a8('0x27c0')])[_0x3a19a8('0x20d5')]()){case _0x3a19a8('0xe50'):_0x33caa2[_0x3a19a8('0xcef')][_0x3a19a8('0x13fc')]=_0x33caa2[_0x3a19a8('0xcef')][_0x3a19a8('0x1909')]+'='+_0x33caa2[_0x3a19a8('0xcef')][_0x3a19a8('0x10cc')];break;case'custom':break;default:_0x461e83[0x0]=_0x33caa2[_0x3a19a8('0xcef')][_0x3a19a8('0x13fc')],_0x33caa2['hangup'][_0x3a19a8('0x13fc')]=_0x461e83['join'](',');}_0x4d6d38(_0x33caa2[_0x3a19a8('0xcef')]);}function _0x4d6d38(_0x56ca30){const _0x2a6216=_0x407078;_0x1625f7[_0x2a6216('0x237e')](_0x56ca30);}}const _0x5506d4=_0x490f58;_0x1a70d8[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0x142d'),_0x21d0f5('0xb4e'),_0x21d0f5('0xf33'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),'crudPermissions'];function _0x1a70d8(_0x56de10,_0x5a7bb9,_0x219140,_0x426981,_0x505c5d,_0x232e12,_0x438c17,_0x8c40d3){const _0x5cb7dd=_0x21d0f5,_0xb7c5db=this;_0xb7c5db[_0x5cb7dd('0x32a')]=_0x438c17['getCurrentUser'](),_0xb7c5db['errors']=[],_0xb7c5db[_0x5cb7dd('0x134b')]=_0x5cb7dd('0x2306')+(_0x426981[_0x5cb7dd('0x27c0')]||_0x426981[_0x5cb7dd('0x18f5')])[_0x5cb7dd('0xa6f')](),_0xb7c5db[_0x5cb7dd('0xffd')]=angular[_0x5cb7dd('0x6fb')](_0x426981),_0xb7c5db[_0x5cb7dd('0xb25')]=_0x8c40d3,_0xb7c5db['hasModulePermissions']={};if(_0xb7c5db['internaldial'][_0x5cb7dd('0x13fc')])switch(_0xb7c5db[_0x5cb7dd('0xffd')][_0x5cb7dd('0x27c0')]?_0xb7c5db[_0x5cb7dd('0xffd')][_0x5cb7dd('0x27c0')][_0x5cb7dd('0x20d5')]():_0xb7c5db[_0x5cb7dd('0xffd')]['app'][_0x5cb7dd('0x20d5')]()){case _0x5cb7dd('0xa8d'):break;case _0x5cb7dd('0x185e'):{const _0x2ed72f=_0xb7c5db[_0x5cb7dd('0xffd')]['appdata']['split'](',');_0xb7c5db[_0x5cb7dd('0xffd')][_0x5cb7dd('0xa0c')]=_0x2ed72f[0x0],_0xb7c5db[_0x5cb7dd('0xffd')][_0x5cb7dd('0xeff')]=_0x2ed72f[0x1],_0xb7c5db['internaldial']['welcomemessage']=_0x2ed72f[_0x5cb7dd('0x1b77')](0x2,_0x2ed72f[_0x5cb7dd('0x1e22')])['join'](',');}break;case _0x5cb7dd('0x21a8'):{const _0x2282b0=_0xb7c5db[_0x5cb7dd('0xffd')][_0x5cb7dd('0x13fc')]['split'](',');_0xb7c5db[_0x5cb7dd('0xffd')][_0x5cb7dd('0x20e')]=_0x2282b0[0x0],_0xb7c5db[_0x5cb7dd('0xffd')]['clientEmail']=_0x2282b0[0x1],_0xb7c5db[_0x5cb7dd('0xffd')][_0x5cb7dd('0x1c6c')]=_0x2282b0[0x2],_0xb7c5db[_0x5cb7dd('0xffd')][_0x5cb7dd('0xeff')]=_0x2282b0[0x3],_0xb7c5db[_0x5cb7dd('0xffd')][_0x5cb7dd('0x1cbc')]=_0x2282b0[_0x5cb7dd('0x1b77')](0x4,_0x2282b0[_0x5cb7dd('0x1e22')])[_0x5cb7dd('0xa04')](',');}break;case _0x5cb7dd('0x102c'):{const _0x5b908d=_0xb7c5db['internaldial'][_0x5cb7dd('0x13fc')][_0x5cb7dd('0xaf8')](',');_0xb7c5db[_0x5cb7dd('0xffd')][_0x5cb7dd('0x1a82')]=_0x5b908d[0x0],_0xb7c5db[_0x5cb7dd('0xffd')][_0x5cb7dd('0x1422')]=_0x5b908d[0x1],_0xb7c5db[_0x5cb7dd('0xffd')][_0x5cb7dd('0x165a')]=_0x5b908d[0x2],_0xb7c5db[_0x5cb7dd('0xffd')][_0x5cb7dd('0x1e8f')]=_0x5b908d[0x3],_0xb7c5db['internaldial'][_0x5cb7dd('0x1cbc')]=_0x5b908d[_0x5cb7dd('0x1b77')](0x4,_0x5b908d['length'])[_0x5cb7dd('0xa04')](',');}break;case _0x5cb7dd('0x187b'):{const _0x2a6c19=_0xb7c5db[_0x5cb7dd('0xffd')][_0x5cb7dd('0x13fc')]['split'](',');_0xb7c5db[_0x5cb7dd('0xffd')][_0x5cb7dd('0x663')]=isNaN(_0x2a6c19[0x0])?_0x2a6c19[0x0]:parseInt(_0x2a6c19[0x0],0xa),_0xb7c5db[_0x5cb7dd('0xffd')][_0x5cb7dd('0x25ed')]=_0x2a6c19[_0x5cb7dd('0x1b77')](0x1,_0x2a6c19[_0x5cb7dd('0x1e22')])[_0x5cb7dd('0xa04')](',');}break;case _0x5cb7dd('0x1b86'):_0xb7c5db['internaldial'][_0x5cb7dd('0x25ed')]=_0xb7c5db[_0x5cb7dd('0xffd')][_0x5cb7dd('0x13fc')];break;case _0x5cb7dd('0xe50'):_0xb7c5db[_0x5cb7dd('0xffd')][_0x5cb7dd('0x1909')]=_0xb7c5db['internaldial'][_0x5cb7dd('0x13fc')]['split']('=')[0x0],_0xb7c5db[_0x5cb7dd('0xffd')][_0x5cb7dd('0x10cc')]=_0xb7c5db[_0x5cb7dd('0xffd')][_0x5cb7dd('0x13fc')][_0x5cb7dd('0xaf8')]('=')[0x1];break;case _0x5cb7dd('0x1efd'):_0xb7c5db[_0x5cb7dd('0xffd')][_0x5cb7dd('0xef0')]=_0xb7c5db[_0x5cb7dd('0xffd')][_0x5cb7dd('0x13fc')];break;default:{const _0x4c2737=_0xb7c5db['internaldial']['appdata'][_0x5cb7dd('0xaf8')](',');_0xb7c5db[_0x5cb7dd('0xffd')][_0x5cb7dd('0x21d9')]=_0x36f548()[_0x5cb7dd('0x1fc5')](_0x4c2737[0x0])?_0x4c2737[0x0]:isNaN(_0x4c2737[0x0])?_0x4c2737[0x0]:parseInt(_0x4c2737[0x0],0xa),_0xb7c5db['internaldial'][_0x5cb7dd('0xfbe')]=_0x36f548()[_0x5cb7dd('0x1fc5')](_0x4c2737[0x1])?_0x4c2737[0x1]:isNaN(_0x4c2737[0x1])?_0x4c2737[0x1]:parseInt(_0x4c2737[0x1],0xa),_0xb7c5db[_0x5cb7dd('0xffd')][_0x5cb7dd('0x249a')]=_0x36f548()[_0x5cb7dd('0x1fc5')](_0x4c2737[0x2])?_0x4c2737[0x2]:isNaN(_0x4c2737[0x2])?_0x4c2737[0x2]:parseInt(_0x4c2737[0x2],0xa),_0xb7c5db[_0x5cb7dd('0xffd')][_0x5cb7dd('0x259e')]=_0x36f548()[_0x5cb7dd('0x1fc5')](_0x4c2737[0x3])?_0x4c2737[0x3]:isNaN(_0x4c2737[0x3])?_0x4c2737[0x3]:parseInt(_0x4c2737[0x3],0xa);}break;}else{}_0xb7c5db['internaldial']['type']&&_0xb7c5db[_0x5cb7dd('0xffd')]['type'][_0x5cb7dd('0x20d5')]()==='outbound'&&_0xb7c5db[_0x5cb7dd('0xffd')][_0x5cb7dd('0x27c0')][_0x5cb7dd('0x20d5')]()===_0x5cb7dd('0x1a64')&&(_0xb7c5db['internaldial']['prefix']=_0xb7c5db[_0x5cb7dd('0xffd')][_0x5cb7dd('0x1546')]?_0xb7c5db['internaldial']['phone']['split']('$')[0x0]:undefined,_0xb7c5db[_0x5cb7dd('0xffd')][_0x5cb7dd('0x7d0')]=_0xb7c5db['internaldial'][_0x5cb7dd('0xc38')]?_0x5cb7dd('0x83a')+_0xb7c5db['internaldial']['callerID']:undefined);_0xb7c5db[_0x5cb7dd('0x2781')]=_0x279619,_0xb7c5db[_0x5cb7dd('0xc4e')]=_0x51e32e;const _0x25815d=[{'id':0xca,'role':_0x5cb7dd('0x18c4')},{'id':0xcb,'role':_0x5cb7dd('0x2650')}];let _0xc5109e=null;_0x438c17[_0x5cb7dd('0x4ee')]('admin')?_0x232e12[_0x5cb7dd('0x21d9')][_0x5cb7dd('0xbaa')]({'fields':_0x5cb7dd('0x1b7b'),'sort':_0x5cb7dd('0x1909'),'nolimit':_0x5cb7dd('0x204c')})[_0x5cb7dd('0x1549')][_0x5cb7dd('0x11bf')](function(_0x3e5f2e){const _0x131e5d=_0x5cb7dd;_0xb7c5db[_0x131e5d('0x17c0')]=_0x3e5f2e[_0x131e5d('0x19b2')]||[];})[_0x5cb7dd('0x151d')](function(_0x244d0e){const _0x44b267=_0x5cb7dd;_0x219140[_0x44b267('0x255')]({'title':_0x244d0e[_0x44b267('0xff9')]?'API:'+_0x244d0e[_0x44b267('0xff9')]+_0x44b267('0xb0b')+_0x244d0e[_0x44b267('0x212f')]:_0x44b267('0x16ea'),'msg':_0x244d0e[_0x44b267('0x4e8')]?JSON[_0x44b267('0x3e')](_0x244d0e[_0x44b267('0x4e8')]):_0x244d0e['toString']()});}):_0x232e12[_0x5cb7dd('0x21d9')][_0x5cb7dd('0xbaa')]({'fields':'id,name,role','sort':'name','nolimit':_0x5cb7dd('0x204c')})['$promise'][_0x5cb7dd('0x11bf')](function(_0x70793b){const _0x56fe44=_0x5cb7dd;_0xc5109e=_0x70793b[_0x56fe44('0x19b2')]||[];})[_0x5cb7dd('0x11bf')](function(){const _0x343120=_0x5cb7dd,_0x51efdd=[];for(let _0x129dea=0x0;_0x129dea<_0x25815d[_0x343120('0x1e22')];_0x129dea++){_0x51efdd['push'](_0x232e12['userProfileSection'][_0x343120('0xbaa')]({'userProfileId':_0xb7c5db[_0x343120('0x32a')][_0x343120('0x781')],'sectionId':_0x25815d[_0x129dea]['id']})[_0x343120('0x1549')]);}return _0x5a7bb9[_0x343120('0x7c')](_0x51efdd);})[_0x5cb7dd('0x11bf')](function(_0x3b92f1){const _0x228270=_0x5cb7dd,_0x5c4da0=_0x36f548()[_0x228270('0x2171')](_0x3b92f1,function(_0x5f2eee){const _0x3f8e9a=_0x228270;return _0x5f2eee&&_0x5f2eee[_0x3f8e9a('0x19b2')]?_0x5f2eee[_0x3f8e9a('0x19b2')][0x0]:null;}),_0xa31afc=[];for(let _0x3d7c77=0x0;_0x3d7c77<_0x25815d[_0x228270('0x1e22')];_0x3d7c77++){const _0x5ee1be=_0x36f548()[_0x228270('0x1ad4')](_0x5c4da0,[_0x228270('0x24b2'),_0x25815d[_0x3d7c77]['id']]);if(_0x5ee1be){if(!_0x5ee1be[_0x228270('0xf11')])_0xa31afc[_0x228270('0x105d')](_0x232e12[_0x228270('0x26d1')][_0x228270('0xbaa')]({'sectionId':_0x5ee1be['id']})[_0x228270('0x1549')]);else{const _0x45ccfa=[];_0xc5109e[_0x228270('0x1f88')](function(_0x4762bb){const _0x45b16b=_0x228270;_0x4762bb[_0x45b16b('0x111d')]===_0x25815d[_0x3d7c77][_0x45b16b('0x111d')]&&_0x45ccfa[_0x45b16b('0x105d')](_0x4762bb);}),_0xa31afc['push']({'rows':_0x45ccfa,'count':_0x45ccfa['length']});}}}return _0x5a7bb9[_0x228270('0x7c')](_0xa31afc);})[_0x5cb7dd('0x11bf')](function(_0x350801){const _0x4715cb=_0x5cb7dd,_0x2b2677=[];let _0x18a1f9=null;_0xb7c5db[_0x4715cb('0xffd')]&&(_0x18a1f9=_0x36f548()[_0x4715cb('0x1ad4')](_0xc5109e,{'name':_0xb7c5db[_0x4715cb('0xffd')]['user']}));for(let _0x5c47ff=0x0;_0x5c47ff<_0x350801[_0x4715cb('0x1e22')];_0x5c47ff++){const _0x362383=_0x350801[_0x5c47ff][_0x4715cb('0x19b2')]||[];_0x362383[_0x4715cb('0x1f88')](function(_0x216f82){const _0x4766f1=_0x4715cb;_0x2b2677[_0x4766f1('0x105d')](_0x216f82);});}_0x18a1f9&&!_0x36f548()[_0x4715cb('0x1cb3')](_0x2b2677,[_0x4715cb('0x15a5'),_0x18a1f9['id']])&&_0xc5109e[_0x4715cb('0x1f88')](function(_0x63ba3){const _0x488e14=_0x4715cb;_0x63ba3['id']===_0x18a1f9['id']&&(_0x63ba3['canSelect']=![],_0x2b2677[_0x488e14('0x105d')](_0x63ba3));}),_0xb7c5db[_0x4715cb('0x17c0')]=_0x2b2677;})['catch'](function(_0x39c084){const _0x4d3f9d=_0x5cb7dd;_0x219140['error']({'title':_0x39c084['status']?_0x4d3f9d('0x574')+_0x39c084['status']+_0x4d3f9d('0xb0b')+_0x39c084[_0x4d3f9d('0x212f')]:_0x4d3f9d('0x1c2c'),'msg':_0x39c084[_0x4d3f9d('0x4e8')]?JSON[_0x4d3f9d('0x3e')](_0x39c084['data']):_0x39c084[_0x4d3f9d('0xaab')]()});});function _0x279619(){const _0xa64b6f=_0x5cb7dd;_0xb7c5db[_0xa64b6f('0x120f')]=[];const _0x537407=[];_0xb7c5db[_0xa64b6f('0xffd')][_0xa64b6f('0x19fd')]&&_0xb7c5db['internaldial'][_0xa64b6f('0x19fd')][_0xa64b6f('0x20d5')]()===_0xa64b6f('0x25b6')&&_0xb7c5db['internaldial'][_0xa64b6f('0x27c0')]===_0xa64b6f('0x1bf6')&&(_0xb7c5db[_0xa64b6f('0xffd')][_0xa64b6f('0x1546')]=_0x505c5d['cutdigits']?(_0xb7c5db[_0xa64b6f('0xffd')][_0xa64b6f('0x2137')]||'')+_0xa64b6f('0x2100')+_0x505c5d[_0xa64b6f('0x388')]+'}':(_0xb7c5db['internaldial'][_0xa64b6f('0x2137')]||'')+_0xa64b6f('0x1f76'),_0x505c5d[_0xa64b6f('0x897')]!==_0xa64b6f('0x3e6')?_0xb7c5db[_0xa64b6f('0xffd')][_0xa64b6f('0x249a')][_0xa64b6f('0x203c')](_0xa64b6f('0x22c9'))<0x0&&(_0xb7c5db['internaldial'][_0xa64b6f('0x249a')]+=_0xa64b6f('0x22c9')):_0xb7c5db[_0xa64b6f('0xffd')]['options']=_0xb7c5db[_0xa64b6f('0xffd')]['options'][_0xa64b6f('0x814')]('U(xcally-mixmonitor-context)',''));if(_0xb7c5db['internaldial']['appType']&&_0xb7c5db[_0xa64b6f('0xffd')][_0xa64b6f('0x27c0')]===_0xa64b6f('0xa8d')){}else switch((_0xb7c5db[_0xa64b6f('0xffd')]['app']||_0xb7c5db[_0xa64b6f('0xffd')]['appType'])[_0xa64b6f('0x20d5')]()){case'set':_0xb7c5db[_0xa64b6f('0xffd')]['appdata']=_0xb7c5db[_0xa64b6f('0xffd')][_0xa64b6f('0x1909')]+'='+_0xb7c5db[_0xa64b6f('0xffd')][_0xa64b6f('0x10cc')];break;case'custom':break;default:_0x537407[0x0]=_0xb7c5db[_0xa64b6f('0xffd')][_0xa64b6f('0x21d9')],_0x537407[0x1]=_0xb7c5db[_0xa64b6f('0xffd')][_0xa64b6f('0xfbe')],_0x537407[0x2]=_0xb7c5db[_0xa64b6f('0xffd')]['options'],_0x537407[0x3]=_0xb7c5db[_0xa64b6f('0xffd')][_0xa64b6f('0x259e')],_0xb7c5db['internaldial']['appdata']=_0x537407['join'](',');}_0x51e32e(_0xb7c5db[_0xa64b6f('0xffd')]);}function _0x51e32e(_0x3b18f8){const _0x2dc554=_0x5cb7dd;_0x56de10[_0x2dc554('0x237e')](_0x3b18f8);}}const _0x44d1ba=_0x1a70d8;_0x4652bd['$inject']=[_0x21d0f5('0xcbc'),'$mdDialog','$mdToast','IndexFactory','interval',_0x21d0f5('0xe82'),_0x21d0f5('0x142d'),_0x21d0f5('0x12a5'),'Auth',_0x21d0f5('0xb25')];function _0x4652bd(_0x3d4b89,_0x3c8377,_0x185077,_0x366540,_0x4ceb83,_0x5a692f,_0x274c47,_0x1bffcc,_0x2af3e6,_0x164289){const _0x4ae296=_0x21d0f5,_0x1e7df6=this;_0x1e7df6[_0x4ae296('0x32a')]=_0x2af3e6['getCurrentUser'](),_0x1e7df6[_0x4ae296('0x120f')]=[],_0x1e7df6[_0x4ae296('0x134b')]=_0x4ae296('0x1d07'),_0x1e7df6['interval']=angular[_0x4ae296('0x6fb')](_0x4ceb83),_0x1e7df6['intervals']=_0x5a692f,_0x1e7df6[_0x4ae296('0x18cf')]=![],_0x1e7df6[_0x4ae296('0x1660')]=['always',_0x4ae296('0xa8d'),_0x4ae296('0x257d')],_0x1e7df6[_0x4ae296('0xb25')]=_0x164289,_0x1e7df6[_0x4ae296('0xd02')]=_0x366540['getDaysOfWeek'](),_0x1e7df6[_0x4ae296('0x0')]=_0x366540[_0x4ae296('0xf7a')](),_0x1e7df6['monthName']=_0x366540['getMonthName'](),_0x1e7df6[_0x4ae296('0x256b')]=_0x366540[_0x4ae296('0x1ebc')]();if(!_0x1e7df6[_0x4ae296('0x507')])_0x1e7df6[_0x4ae296('0x507')]={'interval':_0x4ae296('0x1830')},_0x1e7df6[_0x4ae296('0x19fd')]=_0x4ae296('0x27e5'),_0x1e7df6['title']=_0x4ae296('0x1aba'),_0x1e7df6[_0x4ae296('0x18cf')]=!![];else{if(_0x1e7df6[_0x4ae296('0x507')][_0x4ae296('0x507')]!==_0x4ae296('0x1830')){_0x1e7df6[_0x4ae296('0x19fd')]=_0x4ae296('0xa8d');const _0x386c73=_0x1e7df6['interval'][_0x4ae296('0x507')][_0x4ae296('0xaf8')](','),_0x117590=_0x386c73[0x0],_0x24c4c3=_0x386c73[0x1],_0x592af6=_0x386c73[0x2],_0x4dc359=_0x386c73[0x3];if(_0x117590!=='*'){const _0x12318e=_0x117590['split']('-')[0x0],_0x22055a=_0x117590[_0x4ae296('0xaf8')]('-')[0x1];let _0x354d6b;_0x354d6b=new Date(),_0x354d6b['setHours'](Number(_0x12318e['split'](':')[0x0])),_0x354d6b[_0x4ae296('0x7b6')](Number(_0x12318e[_0x4ae296('0xaf8')](':')[0x1])),_0x1e7df6[_0x4ae296('0x269b')]=_0x354d6b,_0x354d6b=new Date(),_0x354d6b[_0x4ae296('0x29e')](Number(_0x22055a['split'](':')[0x0])),_0x354d6b[_0x4ae296('0x7b6')](Number(_0x22055a['split'](':')[0x1])),_0x1e7df6[_0x4ae296('0x19e5')]=_0x354d6b;}_0x24c4c3!=='*'&&(_0x1e7df6['dayOfWeekFrom']=_0x24c4c3['split']('-')[0x0],_0x1e7df6['dayOfWeekTo']=_0x24c4c3[_0x4ae296('0xaf8')]('-')[0x1]),_0x592af6!=='*'&&(_0x1e7df6[_0x4ae296('0xecd')]=_0x592af6[_0x4ae296('0xaf8')]('-')[0x0],_0x1e7df6[_0x4ae296('0x1883')]=_0x592af6[_0x4ae296('0xaf8')]('-')[0x1]),_0x4dc359!=='*'&&(_0x1e7df6[_0x4ae296('0xad3')]=_0x4dc359[_0x4ae296('0xaf8')]('-')[0x0],_0x1e7df6[_0x4ae296('0x1155')]=_0x4dc359['split']('-')[0x1]);}else _0x1e7df6[_0x4ae296('0x19fd')]=_0x4ae296('0x27e5');}_0x3d4b89[_0x4ae296('0x1ab3')]['id']&&!_0x1e7df6[_0x4ae296('0x507')][_0x4ae296('0x1cf1')]&&(_0x1e7df6[_0x4ae296('0x507')][_0x4ae296('0x6b4')]=_0x3d4b89[_0x4ae296('0x1ab3')]['id']);_0x1e7df6[_0x4ae296('0x507')]['IntervalId']&&_0x1e7df6['interval'][_0x4ae296('0x1cf1')]&&(_0x1e7df6[_0x4ae296('0x19fd')]=_0x4ae296('0x257d'));_0x1e7df6[_0x4ae296('0x119a')]=_0x2423ab,_0x1e7df6['saveInterval']=_0x86567c,_0x1e7df6[_0x4ae296('0xc4e')]=_0x3944ba;_0x1e7df6[_0x4ae296('0x507')]['application']&&(_0x2af3e6[_0x4ae296('0x4ee')]('admin')?_0x1bffcc[_0x4ae296('0x507')]['get']({'fields':'id,name,interval,IntervalId','IntervalId':_0x4ae296('0xb5f'),'nolimit':!![]})[_0x4ae296('0x1549')]['then'](function(_0x2eb77d){const _0x36603e=_0x4ae296;_0x1e7df6['intervals']=_0x2eb77d[_0x36603e('0x19b2')]||[];})[_0x4ae296('0x151d')](function(_0x1308c6){const _0x53d8f8=_0x4ae296;_0x274c47[_0x53d8f8('0x255')]({'title':_0x1308c6[_0x53d8f8('0xff9')]?'API:'+_0x1308c6[_0x53d8f8('0xff9')]+_0x53d8f8('0xb0b')+_0x1308c6[_0x53d8f8('0x212f')]:_0x53d8f8('0x611'),'msg':_0x1308c6[_0x53d8f8('0x4e8')]?JSON[_0x53d8f8('0x3e')](_0x1308c6[_0x53d8f8('0x4e8')]):_0x1308c6[_0x53d8f8('0xaab')]()});}):_0x1bffcc[_0x4ae296('0x507')]['get']({'fields':_0x4ae296('0x1af5'),'IntervalId':_0x4ae296('0xb5f'),'nolimit':!![]})[_0x4ae296('0x1549')][_0x4ae296('0x11bf')](function(_0x17930e){const _0x43205c=_0x4ae296;_0x1e7df6[_0x43205c('0xe82')]=_0x17930e['rows']||[];})[_0x4ae296('0x11bf')](function(){const _0x16d3c7=_0x4ae296;return _0x1bffcc[_0x16d3c7('0x1d63')][_0x16d3c7('0xbaa')]({'userProfileId':_0x1e7df6[_0x16d3c7('0x32a')][_0x16d3c7('0x781')],'sectionId':0x3ec})[_0x16d3c7('0x1549')];})['then'](function(_0x1aa9c5){const _0x268666=_0x4ae296,_0x1382ae=_0x1aa9c5&&_0x1aa9c5[_0x268666('0x19b2')]?_0x1aa9c5['rows'][0x0]:null;if(!_0x1382ae)_0x1e7df6[_0x268666('0xe82')]=[];else{if(!_0x1382ae[_0x268666('0xf11')])return _0x1bffcc['userProfileResource'][_0x268666('0xbaa')]({'sectionId':_0x1382ae['id']})['$promise'][_0x268666('0x11bf')](function(_0x334e30){const _0x32de36=_0x268666,_0x2739ce=_0x334e30&&_0x334e30[_0x32de36('0x19b2')]?_0x334e30[_0x32de36('0x19b2')]:[],_0x244fd2=[];let _0x33a538=null;_0x1e7df6['interval']&&(_0x33a538=_0x36f548()['find'](_0x1e7df6[_0x32de36('0xe82')],{'name':_0x1e7df6[_0x32de36('0x507')][_0x32de36('0x6b4')]})),_0x33a538&&!_0x36f548()[_0x32de36('0x1cb3')](_0x2739ce,['resourceId',_0x33a538['id']])&&_0x1e7df6['intervals'][_0x32de36('0x1f88')](function(_0x38a3d9){const _0x428521=_0x32de36;_0x38a3d9['id']===_0x33a538['id']&&(_0x38a3d9['canSelect']=![],_0x244fd2[_0x428521('0x105d')](_0x38a3d9));}),_0x1e7df6[_0x32de36('0xe82')]=_0x244fd2;});}})['catch'](function(_0x367e7a){const _0x4559c1=_0x4ae296;_0x274c47[_0x4559c1('0x255')]({'title':_0x367e7a[_0x4559c1('0xff9')]?_0x4559c1('0x574')+_0x367e7a[_0x4559c1('0xff9')]+_0x4559c1('0xb0b')+_0x367e7a[_0x4559c1('0x212f')]:_0x4559c1('0x611'),'msg':_0x367e7a[_0x4559c1('0x4e8')]?JSON['stringify'](_0x367e7a['data']):_0x367e7a['toString']()});}));function _0xbb78b4(){const _0x2c1c06=_0x4ae296;switch(_0x1e7df6['type']){case'always':case _0x2c1c06('0x257d'):return _0x2c1c06('0x1830');case'custom':{const _0x59b4b2=[];if(_0x1e7df6[_0x2c1c06('0x269b')]!=='*'&&_0x1e7df6[_0x2c1c06('0x269b')]&&_0x1e7df6[_0x2c1c06('0x19e5')]){const _0x59743f=(_0x1e7df6[_0x2c1c06('0x269b')][_0x2c1c06('0x1e34')]()<0xa?'0':'')+_0x1e7df6[_0x2c1c06('0x269b')][_0x2c1c06('0x1e34')]()+':'+((_0x1e7df6[_0x2c1c06('0x269b')][_0x2c1c06('0xdcc')]()<0xa?'0':'')+_0x1e7df6['timeRangeFrom'][_0x2c1c06('0xdcc')]()),_0x4d75a9=(_0x1e7df6[_0x2c1c06('0x19e5')][_0x2c1c06('0x1e34')]()<0xa?'0':'')+_0x1e7df6[_0x2c1c06('0x19e5')]['getHours']()+':'+((_0x1e7df6[_0x2c1c06('0x19e5')]['getMinutes']()<0xa?'0':'')+_0x1e7df6[_0x2c1c06('0x19e5')][_0x2c1c06('0xdcc')]());_0x59b4b2[_0x2c1c06('0x105d')](_0x59743f+'-'+_0x4d75a9);}else _0x59b4b2[_0x2c1c06('0x105d')]('*');return _0x1e7df6[_0x2c1c06('0x126e')]?_0x1e7df6[_0x2c1c06('0x261')]?_0x59b4b2[_0x2c1c06('0x105d')](_0x1e7df6[_0x2c1c06('0x126e')]+'-'+_0x1e7df6[_0x2c1c06('0x261')]):_0x59b4b2[_0x2c1c06('0x105d')](_0x1e7df6[_0x2c1c06('0x126e')]):_0x59b4b2[_0x2c1c06('0x105d')]('*'),_0x1e7df6[_0x2c1c06('0xecd')]?_0x1e7df6[_0x2c1c06('0x1883')]?_0x59b4b2[_0x2c1c06('0x105d')](_0x1e7df6[_0x2c1c06('0xecd')]+'-'+_0x1e7df6['monthDayTo']):_0x59b4b2[_0x2c1c06('0x105d')](_0x1e7df6[_0x2c1c06('0xecd')]):_0x59b4b2[_0x2c1c06('0x105d')]('*'),_0x1e7df6[_0x2c1c06('0xad3')]?_0x1e7df6[_0x2c1c06('0x1155')]?_0x59b4b2['push'](_0x1e7df6[_0x2c1c06('0xad3')]+'-'+_0x1e7df6[_0x2c1c06('0x1155')]):_0x59b4b2[_0x2c1c06('0x105d')](_0x1e7df6[_0x2c1c06('0xad3')]):_0x59b4b2[_0x2c1c06('0x105d')]('*'),_0x59b4b2['join']();}}}function _0x2423ab(){const _0x4f2c0c=_0x4ae296;_0x1e7df6[_0x4f2c0c('0x120f')]=[],_0x1e7df6['interval'][_0x4f2c0c('0x507')]=_0xbb78b4(),_0x1bffcc[_0x4f2c0c('0x507')][_0x4f2c0c('0x259')](_0x1e7df6[_0x4f2c0c('0x507')])['$promise'][_0x4f2c0c('0x11bf')](function(_0x191944){const _0x2e2657=_0x4f2c0c;_0x1e7df6[_0x2e2657('0xe82')]['push'](_0x191944),_0x274c47[_0x2e2657('0x2693')]({'title':_0x2e2657('0x747'),'msg':_0x1e7df6[_0x2e2657('0x507')]['name']?_0x1e7df6[_0x2e2657('0x507')][_0x2e2657('0x1909')]+_0x2e2657('0x7fb'):''}),_0x3944ba();})[_0x4f2c0c('0x151d')](function(_0x4911a2){const _0x411629=_0x4f2c0c;console[_0x411629('0x255')](_0x4911a2),_0x1e7df6[_0x411629('0x120f')]=_0x4911a2[_0x411629('0x4e8')][_0x411629('0x120f')]||[{'message':_0x4911a2[_0x411629('0xaab')](),'type':_0x411629('0x200b')}];});}function _0x86567c(){const _0x5342b8=_0x4ae296;_0x1e7df6[_0x5342b8('0x120f')]=[],_0x1e7df6[_0x5342b8('0x507')][_0x5342b8('0x507')]=_0xbb78b4(),_0x1e7df6['interval'][_0x5342b8('0x1cf1')]?(_0x1e7df6['type']!==_0x5342b8('0x257d')&&(_0x1e7df6['interval'][_0x5342b8('0x6b4')]=null),_0x3944ba(_0x1e7df6[_0x5342b8('0x507')])):_0x1bffcc[_0x5342b8('0x507')]['update']({'id':_0x1e7df6[_0x5342b8('0x507')]['id']},_0x1e7df6[_0x5342b8('0x507')])[_0x5342b8('0x1549')][_0x5342b8('0x11bf')](function(_0x4779de){const _0x41b632=_0x5342b8,_0x5b1d43=_0x36f548()[_0x41b632('0x1ad4')](_0x1e7df6['intervals'],{'id':_0x4779de['id']});_0x5b1d43&&_0x36f548()[_0x41b632('0x47b')](_0x5b1d43,_0x4779de),_0x274c47['success']({'title':_0x41b632('0x1177'),'msg':_0x41b632('0x904')}),_0x3944ba();})[_0x5342b8('0x151d')](function(_0x566a62){const _0x394138=_0x5342b8;console[_0x394138('0x255')](_0x566a62),_0x1e7df6[_0x394138('0x120f')]=_0x566a62[_0x394138('0x4e8')][_0x394138('0x120f')]||[{'message':_0x566a62[_0x394138('0xaab')](),'type':_0x394138('0x3dd')}];});}function _0x3944ba(_0x12fa54){_0x3c8377['hide'](_0x12fa54);}}const _0x5696c9=_0x4652bd;_0x4dcc19[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0x142d'),'internalrouteApp',_0x21d0f5('0xf33'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),'crudPermissions'];function _0x4dcc19(_0x1e5044,_0x46a270,_0x159e7f,_0x496712,_0x200952,_0x23e4e3,_0x1f0df3,_0x302f5c){const _0x323454=_0x21d0f5,_0x3ea446=this;_0x3ea446[_0x323454('0x32a')]=_0x1f0df3[_0x323454('0x2428')](),_0x3ea446[_0x323454('0x120f')]=[],_0x3ea446[_0x323454('0x134b')]='VOICE.EDIT_'+(_0x496712['appType']||_0x496712['app'])[_0x323454('0xa6f')](),_0x3ea446[_0x323454('0x1c5b')]=angular['copy'](_0x496712),_0x3ea446['crudPermissions']=_0x302f5c,_0x3ea446[_0x323454('0x2c9')]={};if(_0x3ea446[_0x323454('0x1c5b')][_0x323454('0x13fc')])switch(_0x3ea446[_0x323454('0x1c5b')][_0x323454('0x27c0')]?_0x3ea446[_0x323454('0x1c5b')][_0x323454('0x27c0')][_0x323454('0x20d5')]():_0x3ea446[_0x323454('0x1c5b')][_0x323454('0x18f5')]['toLowerCase']()){case _0x323454('0xa8d'):break;case _0x323454('0x185e'):{const _0x27bd5f=_0x3ea446[_0x323454('0x1c5b')][_0x323454('0x13fc')][_0x323454('0xaf8')](',');_0x3ea446[_0x323454('0x1c5b')][_0x323454('0xa0c')]=_0x27bd5f[0x0],_0x3ea446['playback'][_0x323454('0xeff')]=_0x27bd5f[0x1],_0x3ea446['playback'][_0x323454('0x1cbc')]=_0x27bd5f[_0x323454('0x1b77')](0x2,_0x27bd5f[_0x323454('0x1e22')])[_0x323454('0xa04')](',');}break;case _0x323454('0x21a8'):{const _0x541a34=_0x3ea446[_0x323454('0x1c5b')][_0x323454('0x13fc')][_0x323454('0xaf8')](',');_0x3ea446['playback']['projectId']=_0x541a34[0x0],_0x3ea446['playback']['clientEmail']=_0x541a34[0x1],_0x3ea446[_0x323454('0x1c5b')][_0x323454('0x1c6c')]=_0x541a34[0x2],_0x3ea446['playback']['language']=_0x541a34[0x3],_0x3ea446[_0x323454('0x1c5b')][_0x323454('0x1cbc')]=_0x541a34[_0x323454('0x1b77')](0x4,_0x541a34[_0x323454('0x1e22')])['join'](',');}break;case _0x323454('0x102c'):{const _0x21889f=_0x3ea446[_0x323454('0x1c5b')][_0x323454('0x13fc')][_0x323454('0xaf8')](',');_0x3ea446[_0x323454('0x1c5b')]['accesskeyid']=_0x21889f[0x0],_0x3ea446[_0x323454('0x1c5b')][_0x323454('0x1422')]=_0x21889f[0x1],_0x3ea446['playback'][_0x323454('0x165a')]=_0x21889f[0x2],_0x3ea446['playback']['botname']=_0x21889f[0x3],_0x3ea446[_0x323454('0x1c5b')][_0x323454('0x1cbc')]=_0x21889f[_0x323454('0x1b77')](0x4,_0x21889f['length'])['join'](',');}break;case _0x323454('0x187b'):{const _0x3fdd04=_0x3ea446[_0x323454('0x1c5b')][_0x323454('0x13fc')][_0x323454('0xaf8')](',');_0x3ea446[_0x323454('0x1c5b')]['times']=isNaN(_0x3fdd04[0x0])?_0x3fdd04[0x0]:parseInt(_0x3fdd04[0x0],0xa),_0x3ea446[_0x323454('0x1c5b')][_0x323454('0x25ed')]=_0x3fdd04[_0x323454('0x1b77')](0x1,_0x3fdd04[_0x323454('0x1e22')])['join'](',');}break;case _0x323454('0x1b86'):_0x3ea446[_0x323454('0x1c5b')][_0x323454('0x25ed')]=_0x3ea446[_0x323454('0x1c5b')]['appdata'];break;case _0x323454('0xe50'):_0x3ea446[_0x323454('0x1c5b')][_0x323454('0x1909')]=_0x3ea446[_0x323454('0x1c5b')][_0x323454('0x13fc')][_0x323454('0xaf8')]('=')[0x0],_0x3ea446[_0x323454('0x1c5b')][_0x323454('0x10cc')]=_0x3ea446[_0x323454('0x1c5b')][_0x323454('0x13fc')][_0x323454('0xaf8')]('=')[0x1];break;case _0x323454('0x1efd'):_0x3ea446[_0x323454('0x1c5b')][_0x323454('0xef0')]=_0x3ea446[_0x323454('0x1c5b')][_0x323454('0x13fc')];break;default:{const _0x23f854=_0x3ea446[_0x323454('0x1c5b')][_0x323454('0x13fc')][_0x323454('0xaf8')](',');_0x3ea446[_0x323454('0x1c5b')][_0x323454('0x13fc')]=_0x36f548()['isEmpty'](_0x23f854[0x0])?_0x23f854[0x0]:isNaN(_0x23f854[0x0])?_0x23f854[0x0]:parseInt(_0x23f854[0x0],0xa),_0x3ea446[_0x323454('0x1c5b')]['options']=_0x36f548()['isEmpty'](_0x23f854[0x1])?_0x23f854[0x1]:isNaN(_0x23f854[0x1])?_0x23f854[0x1]:parseInt(_0x23f854[0x1],0xa);}break;}else{}_0x3ea446[_0x323454('0x1c5b')][_0x323454('0x19fd')]&&_0x3ea446['playback'][_0x323454('0x19fd')][_0x323454('0x20d5')]()===_0x323454('0x25b6')&&_0x3ea446[_0x323454('0x1c5b')]['appType'][_0x323454('0x20d5')]()===_0x323454('0x1a64')&&(_0x3ea446['playback']['prefix']=_0x3ea446['playback'][_0x323454('0x1546')]?_0x3ea446[_0x323454('0x1c5b')][_0x323454('0x1546')][_0x323454('0xaf8')]('$')[0x0]:undefined,_0x3ea446[_0x323454('0x1c5b')][_0x323454('0x7d0')]=_0x3ea446['playback'][_0x323454('0xc38')]?_0x323454('0x83a')+_0x3ea446[_0x323454('0x1c5b')][_0x323454('0xc38')]:undefined);_0x3ea446[_0x323454('0x2781')]=_0x36fed3,_0x3ea446['closeDialog']=_0x128473,_0x1f0df3[_0x323454('0x4ee')](_0x323454('0xf45'))?_0x23e4e3['sound']['get']({'fields':'id,name,save_name','sort':_0x323454('0x1909'),'nolimit':_0x323454('0x204c')})[_0x323454('0x1549')][_0x323454('0x11bf')](function(_0x392bc7){_0x3ea446['sounds']=_0x392bc7['rows']||[];})[_0x323454('0x151d')](function(_0x44c3c3){const _0x483669=_0x323454;_0x159e7f['error']({'title':_0x44c3c3[_0x483669('0xff9')]?_0x483669('0x574')+_0x44c3c3[_0x483669('0xff9')]+_0x483669('0xb0b')+_0x44c3c3[_0x483669('0x212f')]:'SYSTEM:GET_SOUNDS','msg':_0x44c3c3['data']?JSON['stringify'](_0x44c3c3[_0x483669('0x4e8')]):_0x44c3c3[_0x483669('0xaab')]()});}):_0x23e4e3[_0x323454('0x1d6e')][_0x323454('0xbaa')]({'fields':'id,name,save_name','sort':_0x323454('0x1909'),'nolimit':_0x323454('0x204c')})[_0x323454('0x1549')]['then'](function(_0x4be96d){const _0x47abd6=_0x323454;_0x3ea446[_0x47abd6('0x209a')]=_0x4be96d[_0x47abd6('0x19b2')]||[];})[_0x323454('0x11bf')](function(){const _0x206fff=_0x323454;return _0x23e4e3[_0x206fff('0x1d63')][_0x206fff('0xbaa')]({'userProfileId':_0x3ea446[_0x206fff('0x32a')][_0x206fff('0x781')],'sectionId':0x3ef})['$promise'];})[_0x323454('0x11bf')](function(_0x5be615){const _0x859a43=_0x323454,_0x4e0274=_0x5be615&&_0x5be615[_0x859a43('0x19b2')]?_0x5be615[_0x859a43('0x19b2')][0x0]:null;if(!_0x4e0274){const _0x691940=[];let _0x41711f=null;_0x3ea446[_0x859a43('0x1c5b')]&&(_0x41711f=_0x36f548()[_0x859a43('0x1ad4')](_0x3ea446[_0x859a43('0x209a')],{'save_name':_0x3ea446[_0x859a43('0x1c5b')]['appdata']}));for(let _0x173a91=0x0;_0x173a91<_0x3ea446[_0x859a43('0x209a')]['length'];_0x173a91++){_0x41711f&&_0x3ea446['sounds'][_0x173a91]['id']===_0x41711f['id']&&(_0x3ea446[_0x859a43('0x209a')][_0x173a91][_0x859a43('0x254a')]=![],_0x691940['push'](_0x3ea446[_0x859a43('0x209a')][_0x173a91]));}_0x3ea446[_0x859a43('0x209a')]=_0x691940;}else{if(!_0x4e0274['autoAssociation'])return _0x23e4e3['userProfileResource'][_0x859a43('0xbaa')]({'sectionId':_0x4e0274['id']})[_0x859a43('0x1549')][_0x859a43('0x11bf')](function(_0x14d25d){const _0x1b2f56=_0x859a43,_0x3f6bc8=_0x36f548()[_0x1b2f56('0x2171')](_0x14d25d['rows'],function(_0xedbcb0){const _0x1ff85a=_0x1b2f56;return _0x36f548()[_0x1ff85a('0x1ad4')](_0x3ea446[_0x1ff85a('0x209a')],{'id':_0xedbcb0[_0x1ff85a('0x15a5')]});});let _0x506de4=null;_0x3ea446['playback']&&(_0x506de4=_0x36f548()['find'](_0x3ea446[_0x1b2f56('0x209a')],{'save_name':_0x3ea446['playback'][_0x1b2f56('0x13fc')]}));if(_0x506de4&&!_0x36f548()['some'](_0x3f6bc8,['id',_0x506de4['id']])){const _0x4684f9=_0x36f548()['find'](_0x3ea446[_0x1b2f56('0x209a')],{'id':_0x506de4['id']});_0x4684f9[_0x1b2f56('0x254a')]=![],_0x3f6bc8[_0x1b2f56('0x105d')](_0x4684f9);}_0x3ea446[_0x1b2f56('0x209a')]=_0x3f6bc8;});}})[_0x323454('0x151d')](function(_0x59f887){const _0x5bf67f=_0x323454;_0x159e7f[_0x5bf67f('0x255')]({'title':_0x59f887[_0x5bf67f('0xff9')]?_0x5bf67f('0x574')+_0x59f887[_0x5bf67f('0xff9')]+_0x5bf67f('0xb0b')+_0x59f887['statusText']:_0x5bf67f('0x124'),'msg':_0x59f887[_0x5bf67f('0x4e8')]?JSON['stringify'](_0x59f887[_0x5bf67f('0x4e8')]):_0x59f887['toString']()});});function _0x36fed3(){const _0x425a88=_0x323454;_0x3ea446[_0x425a88('0x120f')]=[];const _0x2c4af5=[];_0x3ea446['playback'][_0x425a88('0x19fd')]&&_0x3ea446[_0x425a88('0x1c5b')][_0x425a88('0x19fd')][_0x425a88('0x20d5')]()===_0x425a88('0x25b6')&&_0x3ea446[_0x425a88('0x1c5b')][_0x425a88('0x27c0')]==='outboundDial'&&(_0x3ea446['playback'][_0x425a88('0x1546')]=_0x200952[_0x425a88('0x388')]?(_0x3ea446[_0x425a88('0x1c5b')][_0x425a88('0x2137')]||'')+_0x425a88('0x2100')+_0x200952[_0x425a88('0x388')]+'}':(_0x3ea446['playback'][_0x425a88('0x2137')]||'')+'${EXTEN}',_0x200952['recordingFormat']!==_0x425a88('0x3e6')?_0x3ea446[_0x425a88('0x1c5b')][_0x425a88('0x249a')]['indexOf']('U(xcally-mixmonitor-context)')<0x0&&(_0x3ea446['playback'][_0x425a88('0x249a')]+='U(xcally-mixmonitor-context)'):_0x3ea446[_0x425a88('0x1c5b')][_0x425a88('0x249a')]=_0x3ea446[_0x425a88('0x1c5b')][_0x425a88('0x249a')][_0x425a88('0x814')](_0x425a88('0x22c9'),''));if(_0x3ea446[_0x425a88('0x1c5b')][_0x425a88('0x27c0')]&&_0x3ea446[_0x425a88('0x1c5b')]['appType']==='custom'){}else switch((_0x3ea446[_0x425a88('0x1c5b')]['app']||_0x3ea446[_0x425a88('0x1c5b')][_0x425a88('0x27c0')])[_0x425a88('0x20d5')]()){case _0x425a88('0xe50'):_0x3ea446[_0x425a88('0x1c5b')][_0x425a88('0x13fc')]=_0x3ea446['playback'][_0x425a88('0x1909')]+'='+_0x3ea446[_0x425a88('0x1c5b')][_0x425a88('0x10cc')];break;case _0x425a88('0xa8d'):break;default:_0x2c4af5[0x0]=_0x3ea446['playback'][_0x425a88('0x13fc')],_0x2c4af5[0x1]=_0x3ea446[_0x425a88('0x1c5b')]['options'],_0x3ea446[_0x425a88('0x1c5b')][_0x425a88('0x13fc')]=_0x2c4af5['join'](',');}_0x128473(_0x3ea446[_0x425a88('0x1c5b')]);}function _0x128473(_0x80a6cc){_0x1e5044['hide'](_0x80a6cc);}}const _0x36c77f=_0x4dcc19;_0x2fc7fb['$inject']=[_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0x142d'),_0x21d0f5('0xb4e'),_0x21d0f5('0xf33'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),_0x21d0f5('0xb25')];function _0x2fc7fb(_0x205d72,_0x134571,_0x4db34f,_0x514fb8,_0x1bd219,_0x327cc2,_0x6d0b66,_0x13f9cb){const _0x577497=_0x21d0f5,_0x13ced0=this;_0x13ced0['currentUser']=_0x6d0b66['getCurrentUser'](),_0x13ced0[_0x577497('0x120f')]=[],_0x13ced0['title']=_0x577497('0x2306')+(_0x514fb8[_0x577497('0x27c0')]||_0x514fb8[_0x577497('0x18f5')])[_0x577497('0xa6f')](),_0x13ced0['queue']=angular['copy'](_0x514fb8),_0x13ced0[_0x577497('0xb25')]=_0x13f9cb,_0x13ced0['hasModulePermissions']={};if(_0x13ced0[_0x577497('0x150b')]['appdata'])switch(_0x13ced0[_0x577497('0x150b')]['appType']?_0x13ced0['queue']['appType'][_0x577497('0x20d5')]():_0x13ced0[_0x577497('0x150b')][_0x577497('0x18f5')][_0x577497('0x20d5')]()){case _0x577497('0xa8d'):break;case _0x577497('0x185e'):{const _0x2494f9=_0x13ced0[_0x577497('0x150b')][_0x577497('0x13fc')][_0x577497('0xaf8')](',');_0x13ced0[_0x577497('0x150b')]['key']=_0x2494f9[0x0],_0x13ced0[_0x577497('0x150b')][_0x577497('0xeff')]=_0x2494f9[0x1],_0x13ced0[_0x577497('0x150b')][_0x577497('0x1cbc')]=_0x2494f9[_0x577497('0x1b77')](0x2,_0x2494f9[_0x577497('0x1e22')])[_0x577497('0xa04')](',');}break;case'dialogflowv2':{const _0x4ee5ff=_0x13ced0['queue'][_0x577497('0x13fc')][_0x577497('0xaf8')](',');_0x13ced0[_0x577497('0x150b')][_0x577497('0x20e')]=_0x4ee5ff[0x0],_0x13ced0[_0x577497('0x150b')]['clientEmail']=_0x4ee5ff[0x1],_0x13ced0[_0x577497('0x150b')][_0x577497('0x1c6c')]=_0x4ee5ff[0x2],_0x13ced0['queue']['language']=_0x4ee5ff[0x3],_0x13ced0[_0x577497('0x150b')][_0x577497('0x1cbc')]=_0x4ee5ff['slice'](0x4,_0x4ee5ff['length'])[_0x577497('0xa04')](',');}break;case'amazonlex':{const _0x1bbfe4=_0x13ced0['queue'][_0x577497('0x13fc')][_0x577497('0xaf8')](',');_0x13ced0['queue'][_0x577497('0x1a82')]=_0x1bbfe4[0x0],_0x13ced0[_0x577497('0x150b')][_0x577497('0x1422')]=_0x1bbfe4[0x1],_0x13ced0[_0x577497('0x150b')][_0x577497('0x165a')]=_0x1bbfe4[0x2],_0x13ced0['queue']['botname']=_0x1bbfe4[0x3],_0x13ced0[_0x577497('0x150b')]['welcomemessage']=_0x1bbfe4['slice'](0x4,_0x1bbfe4[_0x577497('0x1e22')])[_0x577497('0xa04')](',');}break;case _0x577497('0x187b'):{const _0x4e471e=_0x13ced0[_0x577497('0x150b')][_0x577497('0x13fc')]['split'](',');_0x13ced0['queue']['times']=isNaN(_0x4e471e[0x0])?_0x4e471e[0x0]:parseInt(_0x4e471e[0x0],0xa),_0x13ced0[_0x577497('0x150b')][_0x577497('0x25ed')]=_0x4e471e[_0x577497('0x1b77')](0x1,_0x4e471e[_0x577497('0x1e22')])[_0x577497('0xa04')](',');}break;case _0x577497('0x1b86'):_0x13ced0[_0x577497('0x150b')][_0x577497('0x25ed')]=_0x13ced0[_0x577497('0x150b')]['appdata'];break;case'set':_0x13ced0[_0x577497('0x150b')][_0x577497('0x1909')]=_0x13ced0['queue']['appdata'][_0x577497('0xaf8')]('=')[0x0],_0x13ced0[_0x577497('0x150b')][_0x577497('0x10cc')]=_0x13ced0['queue'][_0x577497('0x13fc')][_0x577497('0xaf8')]('=')[0x1];break;case _0x577497('0x1efd'):_0x13ced0[_0x577497('0x150b')]['project']=_0x13ced0[_0x577497('0x150b')][_0x577497('0x13fc')];break;default:{const _0x5a635e=_0x13ced0['queue'][_0x577497('0x13fc')]['split'](',');_0x13ced0['queue'][_0x577497('0x150b')]=_0x36f548()['isEmpty'](_0x5a635e[0x0])?_0x5a635e[0x0]:isNaN(_0x5a635e[0x0])?_0x5a635e[0x0]:parseInt(_0x5a635e[0x0],0xa),_0x13ced0['queue'][_0x577497('0x249a')]=_0x36f548()[_0x577497('0x1fc5')](_0x5a635e[0x1])?_0x5a635e[0x1]:isNaN(_0x5a635e[0x1])?_0x5a635e[0x1]:parseInt(_0x5a635e[0x1],0xa),_0x13ced0[_0x577497('0x150b')][_0x577497('0xc29')]=_0x36f548()[_0x577497('0x1fc5')](_0x5a635e[0x2])?_0x5a635e[0x2]:isNaN(_0x5a635e[0x2])?_0x5a635e[0x2]:parseInt(_0x5a635e[0x2],0xa),_0x13ced0[_0x577497('0x150b')][_0x577497('0x1d6e')]=_0x36f548()[_0x577497('0x1fc5')](_0x5a635e[0x3])?_0x5a635e[0x3]:isNaN(_0x5a635e[0x3])?_0x5a635e[0x3]:parseInt(_0x5a635e[0x3],0xa),_0x13ced0[_0x577497('0x150b')]['timeout']=_0x36f548()[_0x577497('0x1fc5')](_0x5a635e[0x4])?_0x5a635e[0x4]:isNaN(_0x5a635e[0x4])?_0x5a635e[0x4]:parseInt(_0x5a635e[0x4],0xa),_0x13ced0[_0x577497('0x150b')][_0x577497('0x1efd')]=_0x36f548()[_0x577497('0x1fc5')](_0x5a635e[0x5])?_0x5a635e[0x5]:isNaN(_0x5a635e[0x5])?_0x5a635e[0x5]:parseInt(_0x5a635e[0x5],0xa),_0x13ced0[_0x577497('0x150b')][_0x577497('0x2011')]=_0x36f548()['isEmpty'](_0x5a635e[0x6])?_0x5a635e[0x6]:isNaN(_0x5a635e[0x6])?_0x5a635e[0x6]:parseInt(_0x5a635e[0x6],0xa),_0x13ced0[_0x577497('0x150b')][_0x577497('0x2341')]=_0x36f548()['isEmpty'](_0x5a635e[0x7])?_0x5a635e[0x7]:isNaN(_0x5a635e[0x7])?_0x5a635e[0x7]:parseInt(_0x5a635e[0x7],0xa),_0x13ced0['queue']['rule']=_0x36f548()[_0x577497('0x1fc5')](_0x5a635e[0x8])?_0x5a635e[0x8]:isNaN(_0x5a635e[0x8])?_0x5a635e[0x8]:parseInt(_0x5a635e[0x8],0xa),_0x13ced0[_0x577497('0x150b')]['position']=_0x36f548()['isEmpty'](_0x5a635e[0x9])?_0x5a635e[0x9]:isNaN(_0x5a635e[0x9])?_0x5a635e[0x9]:parseInt(_0x5a635e[0x9],0xa);}break;}else{}_0x13ced0[_0x577497('0x150b')][_0x577497('0x19fd')]&&_0x13ced0[_0x577497('0x150b')][_0x577497('0x19fd')][_0x577497('0x20d5')]()===_0x577497('0x25b6')&&_0x13ced0[_0x577497('0x150b')]['appType'][_0x577497('0x20d5')]()===_0x577497('0x1a64')&&(_0x13ced0['queue'][_0x577497('0x2137')]=_0x13ced0['queue'][_0x577497('0x1546')]?_0x13ced0[_0x577497('0x150b')][_0x577497('0x1546')][_0x577497('0xaf8')]('$')[0x0]:undefined,_0x13ced0[_0x577497('0x150b')][_0x577497('0x7d0')]=_0x13ced0['queue'][_0x577497('0xc38')]?'CALLERID(all)='+_0x13ced0[_0x577497('0x150b')][_0x577497('0xc38')]:undefined);_0x13ced0[_0x577497('0x2781')]=_0xe0c5e3,_0x13ced0[_0x577497('0xc4e')]=_0x408a43,_0x6d0b66[_0x577497('0x4ee')](_0x577497('0xf45'))?_0x327cc2['sound'][_0x577497('0xbaa')]({'fields':_0x577497('0xee1'),'sort':_0x577497('0x1909'),'nolimit':_0x577497('0x204c')})[_0x577497('0x1549')]['then'](function(_0x235a85){_0x13ced0['sounds']=_0x235a85['rows']||[];})[_0x577497('0x151d')](function(_0x4b6009){const _0xfe4fc6=_0x577497;_0x4db34f['error']({'title':_0x4b6009['status']?'API:'+_0x4b6009[_0xfe4fc6('0xff9')]+'\x20-\x20'+_0x4b6009[_0xfe4fc6('0x212f')]:_0xfe4fc6('0x17f6'),'msg':_0x4b6009['data']?JSON[_0xfe4fc6('0x3e')](_0x4b6009['data']):_0x4b6009[_0xfe4fc6('0xaab')]()});}):_0x327cc2[_0x577497('0x1d6e')][_0x577497('0xbaa')]({'fields':_0x577497('0xee1'),'sort':'name','nolimit':_0x577497('0x204c')})[_0x577497('0x1549')][_0x577497('0x11bf')](function(_0x424c21){const _0x38df64=_0x577497;_0x13ced0[_0x38df64('0x209a')]=_0x424c21['rows']||[];})[_0x577497('0x11bf')](function(){const _0x3cce56=_0x577497;return _0x327cc2[_0x3cce56('0x1d63')]['get']({'userProfileId':_0x13ced0['currentUser'][_0x3cce56('0x781')],'sectionId':0x3ef})[_0x3cce56('0x1549')];})[_0x577497('0x11bf')](function(_0x3cc664){const _0x77408a=_0x577497,_0x13557e=_0x3cc664&&_0x3cc664[_0x77408a('0x19b2')]?_0x3cc664[_0x77408a('0x19b2')][0x0]:null;if(!_0x13557e){const _0x4823bd=[];let _0x5952e6=null;_0x13ced0[_0x77408a('0x150b')]&&(_0x5952e6=_0x36f548()[_0x77408a('0x1ad4')](_0x13ced0[_0x77408a('0x209a')],{'save_name':_0x13ced0[_0x77408a('0x150b')][_0x77408a('0x1d6e')]}));for(let _0x1bcc89=0x0;_0x1bcc89<_0x13ced0['sounds'][_0x77408a('0x1e22')];_0x1bcc89++){_0x5952e6&&_0x13ced0['sounds'][_0x1bcc89]['id']===_0x5952e6['id']&&(_0x13ced0[_0x77408a('0x209a')][_0x1bcc89]['canSelect']=![],_0x4823bd[_0x77408a('0x105d')](_0x13ced0[_0x77408a('0x209a')][_0x1bcc89]));}_0x13ced0[_0x77408a('0x209a')]=_0x4823bd;}else{if(!_0x13557e[_0x77408a('0xf11')])return _0x327cc2[_0x77408a('0x26d1')][_0x77408a('0xbaa')]({'sectionId':_0x13557e['id']})['$promise'][_0x77408a('0x11bf')](function(_0x17d532){const _0xc998de=_0x77408a,_0x5c2e17=_0x36f548()[_0xc998de('0x2171')](_0x17d532['rows'],function(_0x503b80){const _0x9fa05=_0xc998de;return _0x36f548()[_0x9fa05('0x1ad4')](_0x13ced0['sounds'],{'id':_0x503b80['resourceId']});});let _0x3114f2=null;_0x13ced0['queue']&&(_0x3114f2=_0x36f548()['find'](_0x13ced0[_0xc998de('0x209a')],{'save_name':_0x13ced0[_0xc998de('0x150b')]['sound']}));if(_0x3114f2&&!_0x36f548()[_0xc998de('0x1cb3')](_0x5c2e17,['id',_0x3114f2['id']])){const _0x18c035=_0x36f548()[_0xc998de('0x1ad4')](_0x13ced0[_0xc998de('0x209a')],{'id':_0x3114f2['id']});_0x18c035[_0xc998de('0x254a')]=![],_0x5c2e17[_0xc998de('0x105d')](_0x18c035);}_0x13ced0['sounds']=_0x5c2e17;});}})[_0x577497('0x151d')](function(_0x3cb4ed){const _0x1d1ac5=_0x577497;_0x4db34f[_0x1d1ac5('0x255')]({'title':_0x3cb4ed[_0x1d1ac5('0xff9')]?'API:'+_0x3cb4ed['status']+_0x1d1ac5('0xb0b')+_0x3cb4ed[_0x1d1ac5('0x212f')]:_0x1d1ac5('0x124'),'msg':_0x3cb4ed[_0x1d1ac5('0x4e8')]?JSON[_0x1d1ac5('0x3e')](_0x3cb4ed['data']):_0x3cb4ed[_0x1d1ac5('0xaab')]()});}),_0x6d0b66[_0x577497('0x4ee')](_0x577497('0xf45'))?_0x327cc2[_0x577497('0x1043')][_0x577497('0xbaa')]({'type':_0x577497('0x18a2'),'fields':'id,name,type','sort':'name','nolimit':_0x577497('0x204c')})[_0x577497('0x1549')][_0x577497('0x11bf')](function(_0x534264){const _0x33649d=_0x577497;_0x13ced0[_0x33649d('0x1de3')]=_0x534264[_0x33649d('0x19b2')]||[];})[_0x577497('0x151d')](function(_0x2cb420){const _0x4bd590=_0x577497;_0x4db34f[_0x4bd590('0x255')]({'title':_0x2cb420[_0x4bd590('0xff9')]?'API:'+_0x2cb420[_0x4bd590('0xff9')]+_0x4bd590('0xb0b')+_0x2cb420[_0x4bd590('0x212f')]:_0x4bd590('0x23e0'),'msg':_0x2cb420['data']?JSON[_0x4bd590('0x3e')](_0x2cb420['data']):_0x2cb420[_0x4bd590('0xaab')]()});}):_0x327cc2[_0x577497('0x1043')]['get']({'type':'inbound','fields':'id,name,type','sort':_0x577497('0x1909'),'nolimit':_0x577497('0x204c')})[_0x577497('0x1549')][_0x577497('0x11bf')](function(_0x193084){const _0x218ebb=_0x577497;_0x13ced0[_0x218ebb('0x1de3')]=_0x193084[_0x218ebb('0x19b2')]||[];})[_0x577497('0x11bf')](function(){const _0x55df04=_0x577497;return _0x327cc2[_0x55df04('0x1d63')][_0x55df04('0xbaa')]({'userProfileId':_0x13ced0[_0x55df04('0x32a')][_0x55df04('0x781')],'sectionId':0x191})[_0x55df04('0x1549')];})[_0x577497('0x11bf')](function(_0x5a6689){const _0x335e2c=_0x577497,_0x901f4b=_0x5a6689&&_0x5a6689[_0x335e2c('0x19b2')]?_0x5a6689[_0x335e2c('0x19b2')][0x0]:null;if(!_0x901f4b){const _0x1b39e4=[];let _0x2e2024=null;_0x13ced0[_0x335e2c('0x150b')]&&(_0x2e2024=_0x36f548()[_0x335e2c('0x1ad4')](_0x13ced0['queues'],{'name':_0x13ced0[_0x335e2c('0x150b')][_0x335e2c('0x150b')]}));for(let _0x87b30e=0x0;_0x87b30e<_0x13ced0['queues'][_0x335e2c('0x1e22')];_0x87b30e++){_0x2e2024&&_0x13ced0[_0x335e2c('0x1de3')][_0x87b30e]['id']===_0x2e2024['id']&&(_0x13ced0['queues'][_0x87b30e][_0x335e2c('0x254a')]=![],_0x1b39e4[_0x335e2c('0x105d')](_0x13ced0[_0x335e2c('0x1de3')][_0x87b30e]));}_0x13ced0[_0x335e2c('0x1de3')]=_0x1b39e4;}else{if(!_0x901f4b['autoAssociation'])return _0x327cc2[_0x335e2c('0x26d1')]['get']({'sectionId':_0x901f4b['id']})['$promise'][_0x335e2c('0x11bf')](function(_0x39c7ec){const _0x439067=_0x335e2c,_0x5a24f2=_0x36f548()[_0x439067('0x2171')](_0x39c7ec[_0x439067('0x19b2')],function(_0x5a990a){const _0x3e9dae=_0x439067;return _0x36f548()[_0x3e9dae('0x1ad4')](_0x13ced0[_0x3e9dae('0x1de3')],{'id':_0x5a990a[_0x3e9dae('0x15a5')]});});let _0x41ada6=null;_0x13ced0[_0x439067('0x150b')]&&(_0x41ada6=_0x36f548()[_0x439067('0x1ad4')](_0x13ced0[_0x439067('0x1de3')],{'name':_0x13ced0[_0x439067('0x150b')][_0x439067('0x150b')]}));if(_0x41ada6&&!_0x36f548()[_0x439067('0x1cb3')](_0x5a24f2,['id',_0x41ada6['id']])){const _0x3f102a=_0x36f548()[_0x439067('0x1ad4')](_0x13ced0[_0x439067('0x1de3')],{'id':_0x41ada6['id']});_0x3f102a[_0x439067('0x254a')]=![],_0x5a24f2[_0x439067('0x105d')](_0x3f102a);}_0x13ced0[_0x439067('0x1de3')]=_0x5a24f2;});}})[_0x577497('0x151d')](function(_0x12316e){const _0x46815f=_0x577497;_0x4db34f[_0x46815f('0x255')]({'title':_0x12316e[_0x46815f('0xff9')]?_0x46815f('0x574')+_0x12316e['status']+'\x20-\x20'+_0x12316e[_0x46815f('0x212f')]:'SYSTEM:GETqueues','msg':_0x12316e[_0x46815f('0x4e8')]?JSON[_0x46815f('0x3e')](_0x12316e[_0x46815f('0x4e8')]):_0x12316e[_0x46815f('0xaab')]()});});function _0xe0c5e3(){const _0xa7bc5b=_0x577497;_0x13ced0['errors']=[];const _0x27109c=[];_0x13ced0[_0xa7bc5b('0x150b')][_0xa7bc5b('0x19fd')]&&_0x13ced0['queue']['type']['toLowerCase']()==='outbound'&&_0x13ced0[_0xa7bc5b('0x150b')][_0xa7bc5b('0x27c0')]===_0xa7bc5b('0x1bf6')&&(_0x13ced0[_0xa7bc5b('0x150b')]['phone']=_0x1bd219[_0xa7bc5b('0x388')]?(_0x13ced0['queue'][_0xa7bc5b('0x2137')]||'')+_0xa7bc5b('0x2100')+_0x1bd219[_0xa7bc5b('0x388')]+'}':(_0x13ced0[_0xa7bc5b('0x150b')][_0xa7bc5b('0x2137')]||'')+_0xa7bc5b('0x1f76'),_0x1bd219['recordingFormat']!==_0xa7bc5b('0x3e6')?_0x13ced0[_0xa7bc5b('0x150b')]['options'][_0xa7bc5b('0x203c')](_0xa7bc5b('0x22c9'))<0x0&&(_0x13ced0[_0xa7bc5b('0x150b')][_0xa7bc5b('0x249a')]+='U(xcally-mixmonitor-context)'):_0x13ced0[_0xa7bc5b('0x150b')][_0xa7bc5b('0x249a')]=_0x13ced0[_0xa7bc5b('0x150b')][_0xa7bc5b('0x249a')][_0xa7bc5b('0x814')](_0xa7bc5b('0x22c9'),''));if(_0x13ced0[_0xa7bc5b('0x150b')][_0xa7bc5b('0x27c0')]&&_0x13ced0[_0xa7bc5b('0x150b')][_0xa7bc5b('0x27c0')]===_0xa7bc5b('0xa8d')){}else switch((_0x13ced0[_0xa7bc5b('0x150b')][_0xa7bc5b('0x18f5')]||_0x13ced0['queue']['appType'])[_0xa7bc5b('0x20d5')]()){case _0xa7bc5b('0xe50'):_0x13ced0[_0xa7bc5b('0x150b')][_0xa7bc5b('0x13fc')]=_0x13ced0[_0xa7bc5b('0x150b')][_0xa7bc5b('0x1909')]+'='+_0x13ced0['queue'][_0xa7bc5b('0x10cc')];break;case'custom':break;default:_0x27109c[0x0]=_0x13ced0['queue'][_0xa7bc5b('0x150b')],_0x27109c[0x1]=_0x13ced0[_0xa7bc5b('0x150b')][_0xa7bc5b('0x249a')],_0x27109c[0x2]=_0x13ced0['queue'][_0xa7bc5b('0xc29')],_0x27109c[0x3]=_0x13ced0['queue']['sound'],_0x27109c[0x4]=_0x13ced0['queue'][_0xa7bc5b('0xfbe')],_0x27109c[0x5]=_0x13ced0[_0xa7bc5b('0x150b')]['agi'],_0x27109c[0x6]=_0x13ced0[_0xa7bc5b('0x150b')][_0xa7bc5b('0x2011')],_0x27109c[0x7]=_0x13ced0[_0xa7bc5b('0x150b')]['gosub'],_0x27109c[0x8]=_0x13ced0['queue'][_0xa7bc5b('0x1ec4')],_0x27109c[0x9]=_0x13ced0[_0xa7bc5b('0x150b')][_0xa7bc5b('0x197')],_0x13ced0[_0xa7bc5b('0x150b')][_0xa7bc5b('0x13fc')]=_0x27109c[_0xa7bc5b('0xa04')](',');}_0x408a43(_0x13ced0[_0xa7bc5b('0x150b')]);}function _0x408a43(_0x358caa){const _0x13dfdd=_0x577497;_0x205d72[_0x13dfdd('0x237e')](_0x358caa);}}const _0x54fed4=_0x2fc7fb;_0x17fad3[_0x21d0f5('0x1e9a')]=['$mdDialog','$q',_0x21d0f5('0x142d'),_0x21d0f5('0xb4e'),_0x21d0f5('0xf33'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),'crudPermissions'];function _0x17fad3(_0xe405d9,_0x1c7f0c,_0x64c06a,_0x13cd71,_0x56fa20,_0x191bfb,_0x41cc10,_0x3912ee){const _0x3ce810=_0x21d0f5,_0x11e2d1=this;_0x11e2d1['currentUser']=_0x41cc10[_0x3ce810('0x2428')](),_0x11e2d1[_0x3ce810('0x120f')]=[],_0x11e2d1[_0x3ce810('0x134b')]=_0x3ce810('0x2306')+(_0x13cd71[_0x3ce810('0x27c0')]||_0x13cd71[_0x3ce810('0x18f5')])['toUpperCase'](),_0x11e2d1['ringgroup']=angular[_0x3ce810('0x6fb')](_0x13cd71),_0x11e2d1['crudPermissions']=_0x3912ee,_0x11e2d1[_0x3ce810('0x2c9')]={};if(_0x11e2d1[_0x3ce810('0xb4a')][_0x3ce810('0x13fc')])switch(_0x11e2d1['ringgroup'][_0x3ce810('0x27c0')]?_0x11e2d1[_0x3ce810('0xb4a')]['appType'][_0x3ce810('0x20d5')]():_0x11e2d1[_0x3ce810('0xb4a')][_0x3ce810('0x18f5')][_0x3ce810('0x20d5')]()){case _0x3ce810('0xa8d'):break;case _0x3ce810('0x185e'):{const _0x3c7916=_0x11e2d1[_0x3ce810('0xb4a')]['appdata'][_0x3ce810('0xaf8')](',');_0x11e2d1[_0x3ce810('0xb4a')]['key']=_0x3c7916[0x0],_0x11e2d1[_0x3ce810('0xb4a')]['language']=_0x3c7916[0x1],_0x11e2d1[_0x3ce810('0xb4a')][_0x3ce810('0x1cbc')]=_0x3c7916['slice'](0x2,_0x3c7916[_0x3ce810('0x1e22')])[_0x3ce810('0xa04')](',');}break;case'dialogflowv2':{const _0x22b3bb=_0x11e2d1[_0x3ce810('0xb4a')][_0x3ce810('0x13fc')][_0x3ce810('0xaf8')](',');_0x11e2d1[_0x3ce810('0xb4a')][_0x3ce810('0x20e')]=_0x22b3bb[0x0],_0x11e2d1[_0x3ce810('0xb4a')][_0x3ce810('0x1f91')]=_0x22b3bb[0x1],_0x11e2d1['ringgroup'][_0x3ce810('0x1c6c')]=_0x22b3bb[0x2],_0x11e2d1[_0x3ce810('0xb4a')]['language']=_0x22b3bb[0x3],_0x11e2d1['ringgroup'][_0x3ce810('0x1cbc')]=_0x22b3bb['slice'](0x4,_0x22b3bb[_0x3ce810('0x1e22')])[_0x3ce810('0xa04')](',');}break;case _0x3ce810('0x102c'):{const _0x352b1d=_0x11e2d1[_0x3ce810('0xb4a')][_0x3ce810('0x13fc')]['split'](',');_0x11e2d1[_0x3ce810('0xb4a')][_0x3ce810('0x1a82')]=_0x352b1d[0x0],_0x11e2d1['ringgroup'][_0x3ce810('0x1422')]=_0x352b1d[0x1],_0x11e2d1[_0x3ce810('0xb4a')][_0x3ce810('0x165a')]=_0x352b1d[0x2],_0x11e2d1[_0x3ce810('0xb4a')][_0x3ce810('0x1e8f')]=_0x352b1d[0x3],_0x11e2d1[_0x3ce810('0xb4a')][_0x3ce810('0x1cbc')]=_0x352b1d[_0x3ce810('0x1b77')](0x4,_0x352b1d[_0x3ce810('0x1e22')])[_0x3ce810('0xa04')](',');}break;case _0x3ce810('0x187b'):{const _0x33eb84=_0x11e2d1[_0x3ce810('0xb4a')][_0x3ce810('0x13fc')][_0x3ce810('0xaf8')](',');_0x11e2d1[_0x3ce810('0xb4a')][_0x3ce810('0x663')]=isNaN(_0x33eb84[0x0])?_0x33eb84[0x0]:parseInt(_0x33eb84[0x0],0xa),_0x11e2d1[_0x3ce810('0xb4a')]['text']=_0x33eb84[_0x3ce810('0x1b77')](0x1,_0x33eb84['length'])[_0x3ce810('0xa04')](',');}break;case'message':_0x11e2d1[_0x3ce810('0xb4a')]['text']=_0x11e2d1[_0x3ce810('0xb4a')]['appdata'];break;case _0x3ce810('0xe50'):_0x11e2d1[_0x3ce810('0xb4a')][_0x3ce810('0x1909')]=_0x11e2d1['ringgroup']['appdata'][_0x3ce810('0xaf8')]('=')[0x0],_0x11e2d1[_0x3ce810('0xb4a')]['value']=_0x11e2d1[_0x3ce810('0xb4a')][_0x3ce810('0x13fc')][_0x3ce810('0xaf8')]('=')[0x1];break;case _0x3ce810('0x1efd'):_0x11e2d1[_0x3ce810('0xb4a')]['project']=_0x11e2d1[_0x3ce810('0xb4a')][_0x3ce810('0x13fc')];break;default:{const _0x5f5d10=_0x11e2d1[_0x3ce810('0xb4a')][_0x3ce810('0x13fc')][_0x3ce810('0xaf8')](',');_0x11e2d1['ringgroup'][_0x3ce810('0x22a8')]=_0x5f5d10[0x0]['split']('&'),_0x11e2d1[_0x3ce810('0xb4a')][_0x3ce810('0xfbe')]=_0x36f548()[_0x3ce810('0x1fc5')](_0x5f5d10[0x1])?_0x5f5d10[0x1]:isNaN(_0x5f5d10[0x1])?_0x5f5d10[0x1]:parseInt(_0x5f5d10[0x1],0xa),_0x11e2d1[_0x3ce810('0xb4a')][_0x3ce810('0x249a')]=_0x36f548()[_0x3ce810('0x1fc5')](_0x5f5d10[0x2])?_0x5f5d10[0x2]:isNaN(_0x5f5d10[0x2])?_0x5f5d10[0x2]:parseInt(_0x5f5d10[0x2],0xa),_0x11e2d1[_0x3ce810('0xb4a')]['url']=_0x36f548()[_0x3ce810('0x1fc5')](_0x5f5d10[0x3])?_0x5f5d10[0x3]:isNaN(_0x5f5d10[0x3])?_0x5f5d10[0x3]:parseInt(_0x5f5d10[0x3],0xa);}break;}else{}_0x11e2d1[_0x3ce810('0xb4a')][_0x3ce810('0x19fd')]&&_0x11e2d1[_0x3ce810('0xb4a')][_0x3ce810('0x19fd')][_0x3ce810('0x20d5')]()===_0x3ce810('0x25b6')&&_0x11e2d1[_0x3ce810('0xb4a')][_0x3ce810('0x27c0')][_0x3ce810('0x20d5')]()==='outbounddial'&&(_0x11e2d1['ringgroup'][_0x3ce810('0x2137')]=_0x11e2d1[_0x3ce810('0xb4a')][_0x3ce810('0x1546')]?_0x11e2d1[_0x3ce810('0xb4a')]['phone'][_0x3ce810('0xaf8')]('$')[0x0]:undefined,_0x11e2d1[_0x3ce810('0xb4a')][_0x3ce810('0x7d0')]=_0x11e2d1['ringgroup'][_0x3ce810('0xc38')]?'CALLERID(all)='+_0x11e2d1[_0x3ce810('0xb4a')][_0x3ce810('0xc38')]:undefined);_0x11e2d1[_0x3ce810('0x2781')]=_0x437b05,_0x11e2d1['closeDialog']=_0x18fd4;const _0x319b1c=[{'id':0xca,'role':_0x3ce810('0x18c4')},{'id':0xcb,'role':_0x3ce810('0x2650')}];let _0x48587e=null;_0x41cc10[_0x3ce810('0x4ee')]('admin')?_0x191bfb[_0x3ce810('0x21d9')][_0x3ce810('0xbaa')]({'fields':_0x3ce810('0x1b7b'),'sort':_0x3ce810('0x1909'),'nolimit':_0x3ce810('0x204c')})[_0x3ce810('0x1549')]['then'](function(_0x388e5b){const _0x5cc9b7=_0x3ce810;_0x11e2d1[_0x5cc9b7('0x17c0')]=_0x388e5b[_0x5cc9b7('0x19b2')]||[];})[_0x3ce810('0x151d')](function(_0x48c9c5){const _0x1ecf62=_0x3ce810;_0x64c06a[_0x1ecf62('0x255')]({'title':_0x48c9c5[_0x1ecf62('0xff9')]?_0x1ecf62('0x574')+_0x48c9c5[_0x1ecf62('0xff9')]+_0x1ecf62('0xb0b')+_0x48c9c5[_0x1ecf62('0x212f')]:'SYSTEM:GET_USERS','msg':_0x48c9c5[_0x1ecf62('0x4e8')]?JSON['stringify'](_0x48c9c5[_0x1ecf62('0x4e8')]):_0x48c9c5[_0x1ecf62('0xaab')]()});}):_0x191bfb['user']['get']({'fields':_0x3ce810('0x1b7b'),'sort':_0x3ce810('0x1909'),'nolimit':_0x3ce810('0x204c')})[_0x3ce810('0x1549')][_0x3ce810('0x11bf')](function(_0x14e1b2){_0x48587e=_0x14e1b2['rows']||[];})[_0x3ce810('0x11bf')](function(){const _0x369e73=_0x3ce810,_0x31bdf4=[];for(let _0x27f729=0x0;_0x27f729<_0x319b1c[_0x369e73('0x1e22')];_0x27f729++){_0x31bdf4[_0x369e73('0x105d')](_0x191bfb[_0x369e73('0x1d63')][_0x369e73('0xbaa')]({'userProfileId':_0x11e2d1[_0x369e73('0x32a')]['userProfileId'],'sectionId':_0x319b1c[_0x27f729]['id']})[_0x369e73('0x1549')]);}return _0x1c7f0c[_0x369e73('0x7c')](_0x31bdf4);})[_0x3ce810('0x11bf')](function(_0x55ad43){const _0x14471b=_0x3ce810,_0x120f10=_0x36f548()[_0x14471b('0x2171')](_0x55ad43,function(_0x139b0b){const _0x16fe90=_0x14471b;return _0x139b0b&&_0x139b0b[_0x16fe90('0x19b2')]?_0x139b0b[_0x16fe90('0x19b2')][0x0]:null;}),_0x5baee3=[];for(let _0x19a483=0x0;_0x19a483<_0x319b1c['length'];_0x19a483++){const _0x43463f=_0x36f548()[_0x14471b('0x1ad4')](_0x120f10,['sectionId',_0x319b1c[_0x19a483]['id']]);if(_0x43463f){if(!_0x43463f[_0x14471b('0xf11')])_0x5baee3[_0x14471b('0x105d')](_0x191bfb[_0x14471b('0x26d1')][_0x14471b('0xbaa')]({'sectionId':_0x43463f['id']})['$promise']);else{const _0x4f5288=[];_0x48587e[_0x14471b('0x1f88')](function(_0x19af81){const _0x441f2d=_0x14471b;_0x19af81[_0x441f2d('0x111d')]===_0x319b1c[_0x19a483][_0x441f2d('0x111d')]&&_0x4f5288[_0x441f2d('0x105d')](_0x19af81);}),_0x5baee3[_0x14471b('0x105d')]({'rows':_0x4f5288,'count':_0x4f5288['length']});}}}return _0x1c7f0c[_0x14471b('0x7c')](_0x5baee3);})['then'](function(_0x6ac23a){const _0x41eb42=_0x3ce810,_0x1a57ef=[];let _0x581d41=null;_0x11e2d1[_0x41eb42('0xb4a')]&&(_0x581d41=_0x36f548()[_0x41eb42('0x1ad4')](_0x48587e,{'name':_0x11e2d1[_0x41eb42('0xb4a')][_0x41eb42('0x22a8')]}));for(let _0x30b41d=0x0;_0x30b41d<_0x6ac23a[_0x41eb42('0x1e22')];_0x30b41d++){const _0x68f3c0=_0x6ac23a[_0x30b41d][_0x41eb42('0x19b2')]||[];_0x68f3c0[_0x41eb42('0x1f88')](function(_0x5802e1){const _0x381359=_0x41eb42;_0x1a57ef[_0x381359('0x105d')](_0x5802e1);});}_0x581d41&&!_0x36f548()[_0x41eb42('0x1cb3')](_0x1a57ef,['resourceId',_0x581d41['id']])&&_0x48587e[_0x41eb42('0x1f88')](function(_0x2c1bee){const _0x5aed32=_0x41eb42;_0x2c1bee['id']===_0x581d41['id']&&(_0x2c1bee[_0x5aed32('0x254a')]=![],_0x1a57ef[_0x5aed32('0x105d')](_0x2c1bee));}),_0x11e2d1['users']=_0x1a57ef;})[_0x3ce810('0x151d')](function(_0x342b30){const _0x2a6310=_0x3ce810;_0x64c06a[_0x2a6310('0x255')]({'title':_0x342b30[_0x2a6310('0xff9')]?_0x2a6310('0x574')+_0x342b30[_0x2a6310('0xff9')]+_0x2a6310('0xb0b')+_0x342b30[_0x2a6310('0x212f')]:_0x2a6310('0x1c2c'),'msg':_0x342b30[_0x2a6310('0x4e8')]?JSON['stringify'](_0x342b30[_0x2a6310('0x4e8')]):_0x342b30['toString']()});});function _0x437b05(){const _0xc9ea8e=_0x3ce810;_0x11e2d1['errors']=[];const _0x423f62=[];_0x11e2d1[_0xc9ea8e('0xb4a')][_0xc9ea8e('0x19fd')]&&_0x11e2d1['ringgroup']['type'][_0xc9ea8e('0x20d5')]()===_0xc9ea8e('0x25b6')&&_0x11e2d1[_0xc9ea8e('0xb4a')][_0xc9ea8e('0x27c0')]===_0xc9ea8e('0x1bf6')&&(_0x11e2d1[_0xc9ea8e('0xb4a')]['phone']=_0x56fa20['cutdigits']?(_0x11e2d1[_0xc9ea8e('0xb4a')]['prefix']||'')+_0xc9ea8e('0x2100')+_0x56fa20[_0xc9ea8e('0x388')]+'}':(_0x11e2d1[_0xc9ea8e('0xb4a')][_0xc9ea8e('0x2137')]||'')+_0xc9ea8e('0x1f76'),_0x56fa20[_0xc9ea8e('0x897')]!==_0xc9ea8e('0x3e6')?_0x11e2d1[_0xc9ea8e('0xb4a')]['options'][_0xc9ea8e('0x203c')]('U(xcally-mixmonitor-context)')<0x0&&(_0x11e2d1[_0xc9ea8e('0xb4a')][_0xc9ea8e('0x249a')]+='U(xcally-mixmonitor-context)'):_0x11e2d1[_0xc9ea8e('0xb4a')][_0xc9ea8e('0x249a')]=_0x11e2d1[_0xc9ea8e('0xb4a')]['options']['replace'](_0xc9ea8e('0x22c9'),''));if(_0x11e2d1[_0xc9ea8e('0xb4a')][_0xc9ea8e('0x27c0')]&&_0x11e2d1[_0xc9ea8e('0xb4a')][_0xc9ea8e('0x27c0')]==='custom'){}else switch((_0x11e2d1['ringgroup'][_0xc9ea8e('0x18f5')]||_0x11e2d1[_0xc9ea8e('0xb4a')]['appType'])[_0xc9ea8e('0x20d5')]()){case _0xc9ea8e('0xe50'):_0x11e2d1[_0xc9ea8e('0xb4a')][_0xc9ea8e('0x13fc')]=_0x11e2d1['ringgroup'][_0xc9ea8e('0x1909')]+'='+_0x11e2d1[_0xc9ea8e('0xb4a')][_0xc9ea8e('0x10cc')];break;case'custom':break;default:_0x423f62[0x0]=_0x11e2d1[_0xc9ea8e('0xb4a')]['multipleUsers'][_0xc9ea8e('0xa04')]('&'),_0x423f62[0x1]=_0x11e2d1[_0xc9ea8e('0xb4a')][_0xc9ea8e('0xfbe')],_0x423f62[0x2]=_0x11e2d1['ringgroup'][_0xc9ea8e('0x249a')],_0x423f62[0x3]=_0x11e2d1[_0xc9ea8e('0xb4a')]['url'],_0x11e2d1[_0xc9ea8e('0xb4a')][_0xc9ea8e('0x13fc')]=_0x423f62[_0xc9ea8e('0xa04')](',');}_0x18fd4(_0x11e2d1[_0xc9ea8e('0xb4a')]);}function _0x18fd4(_0x4c2049){const _0x1414ed=_0x3ce810;_0xe405d9[_0x1414ed('0x237e')](_0x4c2049);}}const _0x108198=_0x17fad3;_0x161d94[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0x142d'),'internalrouteApp',_0x21d0f5('0xf33'),'api',_0x21d0f5('0x1150'),_0x21d0f5('0xb25')];function _0x161d94(_0x3152b4,_0x423c02,_0x16aaa5,_0x116278,_0xfd752,_0x16bc69,_0x586913,_0x2d11a8){const _0x1eeb44=_0x21d0f5,_0x269d77=this;_0x269d77[_0x1eeb44('0x32a')]=_0x586913[_0x1eeb44('0x2428')](),_0x269d77[_0x1eeb44('0x120f')]=[],_0x269d77[_0x1eeb44('0x134b')]=_0x1eeb44('0x2306')+(_0x116278[_0x1eeb44('0x27c0')]||_0x116278[_0x1eeb44('0x18f5')])[_0x1eeb44('0xa6f')](),_0x269d77[_0x1eeb44('0xe50')]=angular[_0x1eeb44('0x6fb')](_0x116278),_0x269d77[_0x1eeb44('0xb25')]=_0x2d11a8,_0x269d77[_0x1eeb44('0x2c9')]={};if(_0x269d77[_0x1eeb44('0xe50')][_0x1eeb44('0x13fc')])switch(_0x269d77[_0x1eeb44('0xe50')][_0x1eeb44('0x27c0')]?_0x269d77[_0x1eeb44('0xe50')][_0x1eeb44('0x27c0')][_0x1eeb44('0x20d5')]():_0x269d77[_0x1eeb44('0xe50')][_0x1eeb44('0x18f5')][_0x1eeb44('0x20d5')]()){case'custom':break;case _0x1eeb44('0x185e'):{const _0xf649eb=_0x269d77['set'][_0x1eeb44('0x13fc')][_0x1eeb44('0xaf8')](',');_0x269d77[_0x1eeb44('0xe50')][_0x1eeb44('0xa0c')]=_0xf649eb[0x0],_0x269d77['set']['language']=_0xf649eb[0x1],_0x269d77[_0x1eeb44('0xe50')][_0x1eeb44('0x1cbc')]=_0xf649eb[_0x1eeb44('0x1b77')](0x2,_0xf649eb[_0x1eeb44('0x1e22')])[_0x1eeb44('0xa04')](',');}break;case'dialogflowv2':{const _0x304714=_0x269d77['set']['appdata'][_0x1eeb44('0xaf8')](',');_0x269d77[_0x1eeb44('0xe50')][_0x1eeb44('0x20e')]=_0x304714[0x0],_0x269d77[_0x1eeb44('0xe50')][_0x1eeb44('0x1f91')]=_0x304714[0x1],_0x269d77['set'][_0x1eeb44('0x1c6c')]=_0x304714[0x2],_0x269d77['set'][_0x1eeb44('0xeff')]=_0x304714[0x3],_0x269d77[_0x1eeb44('0xe50')][_0x1eeb44('0x1cbc')]=_0x304714[_0x1eeb44('0x1b77')](0x4,_0x304714[_0x1eeb44('0x1e22')])[_0x1eeb44('0xa04')](',');}break;case _0x1eeb44('0x102c'):{const _0x20445f=_0x269d77[_0x1eeb44('0xe50')][_0x1eeb44('0x13fc')][_0x1eeb44('0xaf8')](',');_0x269d77[_0x1eeb44('0xe50')]['accesskeyid']=_0x20445f[0x0],_0x269d77[_0x1eeb44('0xe50')][_0x1eeb44('0x1422')]=_0x20445f[0x1],_0x269d77[_0x1eeb44('0xe50')][_0x1eeb44('0x165a')]=_0x20445f[0x2],_0x269d77[_0x1eeb44('0xe50')][_0x1eeb44('0x1e8f')]=_0x20445f[0x3],_0x269d77[_0x1eeb44('0xe50')][_0x1eeb44('0x1cbc')]=_0x20445f[_0x1eeb44('0x1b77')](0x4,_0x20445f[_0x1eeb44('0x1e22')])[_0x1eeb44('0xa04')](',');}break;case _0x1eeb44('0x187b'):{const _0x1ba670=_0x269d77[_0x1eeb44('0xe50')][_0x1eeb44('0x13fc')]['split'](',');_0x269d77[_0x1eeb44('0xe50')][_0x1eeb44('0x663')]=isNaN(_0x1ba670[0x0])?_0x1ba670[0x0]:parseInt(_0x1ba670[0x0],0xa),_0x269d77['set']['text']=_0x1ba670[_0x1eeb44('0x1b77')](0x1,_0x1ba670['length'])[_0x1eeb44('0xa04')](',');}break;case'message':_0x269d77['set']['text']=_0x269d77['set'][_0x1eeb44('0x13fc')];break;case'set':_0x269d77['set'][_0x1eeb44('0x1909')]=_0x269d77[_0x1eeb44('0xe50')]['appdata']['split']('=')[0x0],_0x269d77['set'][_0x1eeb44('0x10cc')]=_0x269d77[_0x1eeb44('0xe50')]['appdata'][_0x1eeb44('0xaf8')]('=')[0x1];break;case'agi':_0x269d77[_0x1eeb44('0xe50')]['project']=_0x269d77[_0x1eeb44('0xe50')][_0x1eeb44('0x13fc')];break;default:{const _0x125a22=_0x269d77['set']['appdata'][_0x1eeb44('0xaf8')]('=');_0x269d77['set'][_0x1eeb44('0x1909')]=_0x36f548()['isEmpty'](_0x125a22[0x0])?_0x125a22[0x0]:isNaN(_0x125a22[0x0])?_0x125a22[0x0]:parseInt(_0x125a22[0x0],0xa),_0x269d77[_0x1eeb44('0xe50')][_0x1eeb44('0x10cc')]=_0x36f548()['isEmpty'](_0x125a22[0x1])?_0x125a22[0x1]:isNaN(_0x125a22[0x1])?_0x125a22[0x1]:parseInt(_0x125a22[0x1],0xa);}break;}else{}_0x269d77[_0x1eeb44('0xe50')][_0x1eeb44('0x19fd')]&&_0x269d77['set'][_0x1eeb44('0x19fd')]['toLowerCase']()===_0x1eeb44('0x25b6')&&_0x269d77[_0x1eeb44('0xe50')][_0x1eeb44('0x27c0')]['toLowerCase']()===_0x1eeb44('0x1a64')&&(_0x269d77['set'][_0x1eeb44('0x2137')]=_0x269d77[_0x1eeb44('0xe50')]['phone']?_0x269d77[_0x1eeb44('0xe50')]['phone'][_0x1eeb44('0xaf8')]('$')[0x0]:undefined,_0x269d77[_0x1eeb44('0xe50')][_0x1eeb44('0x7d0')]=_0x269d77['set'][_0x1eeb44('0xc38')]?_0x1eeb44('0x83a')+_0x269d77['set'][_0x1eeb44('0xc38')]:undefined);_0x269d77['saveInternalRouteApp']=_0x47bbc5,_0x269d77[_0x1eeb44('0xc4e')]=_0x33eb2b,_0x586913[_0x1eeb44('0x4ee')](_0x1eeb44('0xf45'))?_0x16bc69[_0x1eeb44('0xb0')][_0x1eeb44('0xbaa')]({'fields':_0x1eeb44('0x721'),'sort':_0x1eeb44('0x1909'),'nolimit':'true'})[_0x1eeb44('0x1549')][_0x1eeb44('0x11bf')](function(_0x43ecdc){const _0x46e4eb=_0x1eeb44;_0x269d77[_0x46e4eb('0x1700')]=_0x43ecdc[_0x46e4eb('0x19b2')]||[];})['catch'](function(_0x9c65a1){const _0x55bf98=_0x1eeb44;_0x16aaa5[_0x55bf98('0x255')]({'title':_0x9c65a1[_0x55bf98('0xff9')]?_0x55bf98('0x574')+_0x9c65a1[_0x55bf98('0xff9')]+_0x55bf98('0xb0b')+_0x9c65a1[_0x55bf98('0x212f')]:'SYSTEM:GET_VARIABLES','msg':_0x9c65a1[_0x55bf98('0x4e8')]?JSON[_0x55bf98('0x3e')](_0x9c65a1[_0x55bf98('0x4e8')]):_0x9c65a1[_0x55bf98('0xaab')]()});}):_0x16bc69[_0x1eeb44('0xb0')][_0x1eeb44('0xbaa')]({'fields':_0x1eeb44('0x721'),'sort':'name','nolimit':_0x1eeb44('0x204c')})[_0x1eeb44('0x1549')]['then'](function(_0x423db7){const _0x47d725=_0x1eeb44;_0x269d77['variables']=_0x423db7[_0x47d725('0x19b2')]||[];})['then'](function(){const _0x501f85=_0x1eeb44;return _0x16bc69[_0x501f85('0x1d63')]['get']({'userProfileId':_0x269d77['currentUser'][_0x501f85('0x781')],'sectionId':0x3f4})[_0x501f85('0x1549')];})['then'](function(_0x90a5b9){const _0x48e955=_0x1eeb44,_0x3ebbc3=_0x90a5b9&&_0x90a5b9[_0x48e955('0x19b2')]?_0x90a5b9[_0x48e955('0x19b2')][0x0]:null;if(!_0x3ebbc3){const _0x589496=[];let _0x31a700=null;_0x269d77[_0x48e955('0xe50')]&&(_0x31a700=_0x36f548()[_0x48e955('0x1ad4')](_0x269d77[_0x48e955('0x1700')],{'name':_0x269d77[_0x48e955('0xe50')]['name']}));for(let _0x22157c=0x0;_0x22157c<_0x269d77['variables'][_0x48e955('0x1e22')];_0x22157c++){_0x31a700&&_0x269d77[_0x48e955('0x1700')][_0x22157c]['id']===_0x31a700['id']&&(_0x269d77[_0x48e955('0x1700')][_0x22157c]['canSelect']=![],_0x589496[_0x48e955('0x105d')](_0x269d77[_0x48e955('0x1700')][_0x22157c]));}_0x269d77[_0x48e955('0x1700')]=_0x589496;}else{if(!_0x3ebbc3[_0x48e955('0xf11')])return _0x16bc69[_0x48e955('0x26d1')][_0x48e955('0xbaa')]({'sectionId':_0x3ebbc3['id']})[_0x48e955('0x1549')][_0x48e955('0x11bf')](function(_0x6510bc){const _0xdc4f4f=_0x48e955,_0x2de163=_0x36f548()[_0xdc4f4f('0x2171')](_0x6510bc[_0xdc4f4f('0x19b2')],function(_0x1c15ee){const _0x576c36=_0xdc4f4f;return _0x36f548()[_0x576c36('0x1ad4')](_0x269d77[_0x576c36('0x1700')],{'id':_0x1c15ee[_0x576c36('0x15a5')]});});let _0x572039=null;_0x269d77[_0xdc4f4f('0xe50')]&&(_0x572039=_0x36f548()[_0xdc4f4f('0x1ad4')](_0x269d77[_0xdc4f4f('0x1700')],{'name':_0x269d77[_0xdc4f4f('0xe50')][_0xdc4f4f('0x1909')]}));if(_0x572039&&!_0x36f548()[_0xdc4f4f('0x1cb3')](_0x2de163,['id',_0x572039['id']])){const _0x585cf6=_0x36f548()[_0xdc4f4f('0x1ad4')](_0x269d77[_0xdc4f4f('0x1700')],{'id':_0x572039['id']});_0x585cf6[_0xdc4f4f('0x254a')]=![],_0x2de163[_0xdc4f4f('0x105d')](_0x585cf6);}_0x269d77[_0xdc4f4f('0x1700')]=_0x2de163;});}})[_0x1eeb44('0x151d')](function(_0x11403e){const _0x1c021b=_0x1eeb44;_0x16aaa5[_0x1c021b('0x255')]({'title':_0x11403e[_0x1c021b('0xff9')]?_0x1c021b('0x574')+_0x11403e[_0x1c021b('0xff9')]+_0x1c021b('0xb0b')+_0x11403e[_0x1c021b('0x212f')]:_0x1c021b('0x214a'),'msg':_0x11403e['data']?JSON[_0x1c021b('0x3e')](_0x11403e['data']):_0x11403e[_0x1c021b('0xaab')]()});});function _0x47bbc5(){const _0x584592=_0x1eeb44;_0x269d77[_0x584592('0x120f')]=[];const _0x4fe7c2=[];_0x269d77[_0x584592('0xe50')][_0x584592('0x19fd')]&&_0x269d77[_0x584592('0xe50')][_0x584592('0x19fd')]['toLowerCase']()===_0x584592('0x25b6')&&_0x269d77['set']['appType']===_0x584592('0x1bf6')&&(_0x269d77[_0x584592('0xe50')]['phone']=_0xfd752['cutdigits']?(_0x269d77[_0x584592('0xe50')][_0x584592('0x2137')]||'')+_0x584592('0x2100')+_0xfd752[_0x584592('0x388')]+'}':(_0x269d77[_0x584592('0xe50')][_0x584592('0x2137')]||'')+_0x584592('0x1f76'),_0xfd752[_0x584592('0x897')]!==_0x584592('0x3e6')?_0x269d77['set'][_0x584592('0x249a')][_0x584592('0x203c')]('U(xcally-mixmonitor-context)')<0x0&&(_0x269d77[_0x584592('0xe50')][_0x584592('0x249a')]+=_0x584592('0x22c9')):_0x269d77[_0x584592('0xe50')][_0x584592('0x249a')]=_0x269d77[_0x584592('0xe50')][_0x584592('0x249a')]['replace'](_0x584592('0x22c9'),''));if(_0x269d77['set'][_0x584592('0x27c0')]&&_0x269d77[_0x584592('0xe50')][_0x584592('0x27c0')]===_0x584592('0xa8d')){}else switch((_0x269d77[_0x584592('0xe50')][_0x584592('0x18f5')]||_0x269d77[_0x584592('0xe50')][_0x584592('0x27c0')])[_0x584592('0x20d5')]()){case'set':_0x269d77[_0x584592('0xe50')]['appdata']=_0x269d77[_0x584592('0xe50')][_0x584592('0x1909')]+'='+_0x269d77[_0x584592('0xe50')][_0x584592('0x10cc')];break;case _0x584592('0xa8d'):break;default:_0x4fe7c2[0x0]=_0x269d77[_0x584592('0xe50')][_0x584592('0x1909')],_0x4fe7c2[0x1]=_0x269d77[_0x584592('0xe50')][_0x584592('0x10cc')],_0x269d77[_0x584592('0xe50')][_0x584592('0x13fc')]=_0x4fe7c2[_0x584592('0xa04')]('=');}_0x33eb2b(_0x269d77['set']);}function _0x33eb2b(_0x5cef14){const _0x2bf803=_0x1eeb44;_0x3152b4[_0x2bf803('0x237e')](_0x5cef14);}}const _0x116b2a=_0x161d94;_0x37d414[_0x21d0f5('0x1e9a')]=['$mdDialog','$q',_0x21d0f5('0x142d'),_0x21d0f5('0xb4e'),'internalroute',_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),'crudPermissions'];function _0x37d414(_0x546a3a,_0x231428,_0x27f404,_0x3ab88a,_0x1babf8,_0x1e5cae,_0x467f26,_0x105d93){const _0x1583dd=_0x21d0f5,_0x537ebb=this;_0x537ebb[_0x1583dd('0x32a')]=_0x467f26[_0x1583dd('0x2428')](),_0x537ebb[_0x1583dd('0x120f')]=[],_0x537ebb[_0x1583dd('0x134b')]=_0x1583dd('0x2306')+(_0x3ab88a[_0x1583dd('0x27c0')]||_0x3ab88a[_0x1583dd('0x18f5')])[_0x1583dd('0xa6f')](),_0x537ebb[_0x1583dd('0xa23')]=angular['copy'](_0x3ab88a),_0x537ebb['crudPermissions']=_0x105d93,_0x537ebb[_0x1583dd('0x2c9')]={};if(_0x537ebb[_0x1583dd('0xa23')]['appdata'])switch(_0x537ebb[_0x1583dd('0xa23')]['appType']?_0x537ebb[_0x1583dd('0xa23')][_0x1583dd('0x27c0')][_0x1583dd('0x20d5')]():_0x537ebb[_0x1583dd('0xa23')]['app'][_0x1583dd('0x20d5')]()){case _0x1583dd('0xa8d'):break;case'dialogflow':{const _0x208878=_0x537ebb[_0x1583dd('0xa23')][_0x1583dd('0x13fc')][_0x1583dd('0xaf8')](',');_0x537ebb['voicemail'][_0x1583dd('0xa0c')]=_0x208878[0x0],_0x537ebb['voicemail'][_0x1583dd('0xeff')]=_0x208878[0x1],_0x537ebb['voicemail']['welcomemessage']=_0x208878['slice'](0x2,_0x208878[_0x1583dd('0x1e22')])[_0x1583dd('0xa04')](',');}break;case _0x1583dd('0x21a8'):{const _0x462ab9=_0x537ebb[_0x1583dd('0xa23')][_0x1583dd('0x13fc')][_0x1583dd('0xaf8')](',');_0x537ebb['voicemail'][_0x1583dd('0x20e')]=_0x462ab9[0x0],_0x537ebb[_0x1583dd('0xa23')][_0x1583dd('0x1f91')]=_0x462ab9[0x1],_0x537ebb['voicemail']['privateKey']=_0x462ab9[0x2],_0x537ebb['voicemail']['language']=_0x462ab9[0x3],_0x537ebb[_0x1583dd('0xa23')][_0x1583dd('0x1cbc')]=_0x462ab9[_0x1583dd('0x1b77')](0x4,_0x462ab9[_0x1583dd('0x1e22')])['join'](',');}break;case _0x1583dd('0x102c'):{const _0x3c53a2=_0x537ebb[_0x1583dd('0xa23')][_0x1583dd('0x13fc')][_0x1583dd('0xaf8')](',');_0x537ebb[_0x1583dd('0xa23')][_0x1583dd('0x1a82')]=_0x3c53a2[0x0],_0x537ebb[_0x1583dd('0xa23')][_0x1583dd('0x1422')]=_0x3c53a2[0x1],_0x537ebb[_0x1583dd('0xa23')]['lexregion']=_0x3c53a2[0x2],_0x537ebb['voicemail'][_0x1583dd('0x1e8f')]=_0x3c53a2[0x3],_0x537ebb[_0x1583dd('0xa23')][_0x1583dd('0x1cbc')]=_0x3c53a2[_0x1583dd('0x1b77')](0x4,_0x3c53a2[_0x1583dd('0x1e22')])[_0x1583dd('0xa04')](',');}break;case _0x1583dd('0x187b'):{const _0x5e86f8=_0x537ebb[_0x1583dd('0xa23')][_0x1583dd('0x13fc')][_0x1583dd('0xaf8')](',');_0x537ebb[_0x1583dd('0xa23')][_0x1583dd('0x663')]=isNaN(_0x5e86f8[0x0])?_0x5e86f8[0x0]:parseInt(_0x5e86f8[0x0],0xa),_0x537ebb[_0x1583dd('0xa23')][_0x1583dd('0x25ed')]=_0x5e86f8[_0x1583dd('0x1b77')](0x1,_0x5e86f8[_0x1583dd('0x1e22')])[_0x1583dd('0xa04')](',');}break;case _0x1583dd('0x1b86'):_0x537ebb[_0x1583dd('0xa23')][_0x1583dd('0x25ed')]=_0x537ebb['voicemail'][_0x1583dd('0x13fc')];break;case _0x1583dd('0xe50'):_0x537ebb[_0x1583dd('0xa23')][_0x1583dd('0x1909')]=_0x537ebb['voicemail'][_0x1583dd('0x13fc')][_0x1583dd('0xaf8')]('=')[0x0],_0x537ebb['voicemail'][_0x1583dd('0x10cc')]=_0x537ebb[_0x1583dd('0xa23')][_0x1583dd('0x13fc')]['split']('=')[0x1];break;case _0x1583dd('0x1efd'):_0x537ebb[_0x1583dd('0xa23')][_0x1583dd('0xef0')]=_0x537ebb[_0x1583dd('0xa23')][_0x1583dd('0x13fc')];break;default:{const _0x2af90b=_0x537ebb[_0x1583dd('0xa23')][_0x1583dd('0x13fc')]['split'](',');_0x537ebb[_0x1583dd('0xa23')][_0x1583dd('0x2516')]=_0x36f548()[_0x1583dd('0x1fc5')](_0x2af90b[0x0])?_0x2af90b[0x0]:isNaN(_0x2af90b[0x0])?_0x2af90b[0x0]:parseInt(_0x2af90b[0x0],0xa),_0x537ebb[_0x1583dd('0xa23')]['options']=_0x36f548()[_0x1583dd('0x1fc5')](_0x2af90b[0x1])?_0x2af90b[0x1]:isNaN(_0x2af90b[0x1])?_0x2af90b[0x1]:parseInt(_0x2af90b[0x1],0xa);}break;}else{}_0x537ebb[_0x1583dd('0xa23')][_0x1583dd('0x19fd')]&&_0x537ebb[_0x1583dd('0xa23')][_0x1583dd('0x19fd')][_0x1583dd('0x20d5')]()===_0x1583dd('0x25b6')&&_0x537ebb[_0x1583dd('0xa23')][_0x1583dd('0x27c0')]['toLowerCase']()===_0x1583dd('0x1a64')&&(_0x537ebb['voicemail'][_0x1583dd('0x2137')]=_0x537ebb[_0x1583dd('0xa23')][_0x1583dd('0x1546')]?_0x537ebb[_0x1583dd('0xa23')]['phone'][_0x1583dd('0xaf8')]('$')[0x0]:undefined,_0x537ebb['voicemail']['callerId']=_0x537ebb[_0x1583dd('0xa23')][_0x1583dd('0xc38')]?_0x1583dd('0x83a')+_0x537ebb['voicemail'][_0x1583dd('0xc38')]:undefined);_0x537ebb[_0x1583dd('0x2781')]=_0x3a7256,_0x537ebb['closeDialog']=_0x2c3499,_0x467f26[_0x1583dd('0x4ee')](_0x1583dd('0xf45'))?_0x1e5cae[_0x1583dd('0x2516')]['get']({'fields':'id,mailbox','sort':_0x1583dd('0x169b'),'nolimit':_0x1583dd('0x204c')})[_0x1583dd('0x1549')]['then'](function(_0x4d048a){const _0x509f53=_0x1583dd;_0x537ebb[_0x509f53('0xffe')]=_0x4d048a[_0x509f53('0x19b2')]||[];})[_0x1583dd('0x151d')](function(_0x3112a0){const _0x1786b4=_0x1583dd;_0x27f404[_0x1786b4('0x255')]({'title':_0x3112a0[_0x1786b4('0xff9')]?_0x1786b4('0x574')+_0x3112a0['status']+_0x1786b4('0xb0b')+_0x3112a0[_0x1786b4('0x212f')]:_0x1786b4('0x22e1'),'msg':_0x3112a0[_0x1786b4('0x4e8')]?JSON['stringify'](_0x3112a0[_0x1786b4('0x4e8')]):_0x3112a0[_0x1786b4('0xaab')]()});}):_0x1e5cae[_0x1583dd('0x2516')]['get']({'fields':_0x1583dd('0x3d3'),'sort':'mailbox','nolimit':_0x1583dd('0x204c')})['$promise'][_0x1583dd('0x11bf')](function(_0x13c2d){const _0x2997f0=_0x1583dd;_0x537ebb[_0x2997f0('0xffe')]=_0x13c2d[_0x2997f0('0x19b2')]||[];})['then'](function(){const _0x156f24=_0x1583dd;return _0x1e5cae['userProfileSection']['get']({'userProfileId':_0x537ebb[_0x156f24('0x32a')][_0x156f24('0x781')],'sectionId':0x196})[_0x156f24('0x1549')];})[_0x1583dd('0x11bf')](function(_0x1e565c){const _0x5c2d30=_0x1583dd,_0x9c7793=_0x1e565c&&_0x1e565c[_0x5c2d30('0x19b2')]?_0x1e565c[_0x5c2d30('0x19b2')][0x0]:null;if(!_0x9c7793){const _0xe8463=[];let _0x23f2b4=null;_0x537ebb[_0x5c2d30('0xa23')]&&(_0x23f2b4=_0x36f548()['find'](_0x537ebb[_0x5c2d30('0xffe')],{'mailbox':_0x537ebb['voicemail'][_0x5c2d30('0x2516')]}));for(let _0x283bd3=0x0;_0x283bd3<_0x537ebb[_0x5c2d30('0xffe')][_0x5c2d30('0x1e22')];_0x283bd3++){_0x23f2b4&&_0x537ebb[_0x5c2d30('0xffe')][_0x283bd3]['id']===_0x23f2b4['id']&&(_0x537ebb[_0x5c2d30('0xffe')][_0x283bd3]['canSelect']=![],_0xe8463[_0x5c2d30('0x105d')](_0x537ebb[_0x5c2d30('0xffe')][_0x283bd3]));}_0x537ebb['voiceMails']=_0xe8463;}else{if(!_0x9c7793[_0x5c2d30('0xf11')])return _0x1e5cae['userProfileResource'][_0x5c2d30('0xbaa')]({'sectionId':_0x9c7793['id']})[_0x5c2d30('0x1549')][_0x5c2d30('0x11bf')](function(_0x49ae1b){const _0x4fdc50=_0x5c2d30,_0x4d8526=_0x36f548()['map'](_0x49ae1b['rows'],function(_0x18c6d5){const _0x20c1bc=a0_0xaf0c;return _0x36f548()[_0x20c1bc('0x1ad4')](_0x537ebb[_0x20c1bc('0xffe')],{'id':_0x18c6d5['resourceId']});});let _0x331021=null;_0x537ebb['voicemail']&&(_0x331021=_0x36f548()[_0x4fdc50('0x1ad4')](_0x537ebb[_0x4fdc50('0xffe')],{'mailbox':_0x537ebb[_0x4fdc50('0xa23')][_0x4fdc50('0x2516')]}));if(_0x331021&&!_0x36f548()[_0x4fdc50('0x1cb3')](_0x4d8526,['id',_0x331021['id']])){const _0x183e9b=_0x36f548()[_0x4fdc50('0x1ad4')](_0x537ebb[_0x4fdc50('0xffe')],{'id':_0x331021['id']});_0x183e9b[_0x4fdc50('0x254a')]=![],_0x4d8526['push'](_0x183e9b);}_0x537ebb[_0x4fdc50('0xffe')]=_0x4d8526;});}})[_0x1583dd('0x151d')](function(_0x4347c7){const _0x3db569=_0x1583dd;_0x27f404[_0x3db569('0x255')]({'title':_0x4347c7[_0x3db569('0xff9')]?_0x3db569('0x574')+_0x4347c7[_0x3db569('0xff9')]+_0x3db569('0xb0b')+_0x4347c7[_0x3db569('0x212f')]:'SYSTEM:GETvoiceMails','msg':_0x4347c7[_0x3db569('0x4e8')]?JSON[_0x3db569('0x3e')](_0x4347c7[_0x3db569('0x4e8')]):_0x4347c7[_0x3db569('0xaab')]()});});function _0x3a7256(){const _0x27f081=_0x1583dd;_0x537ebb['errors']=[];const _0x1ee36a=[];_0x537ebb['voicemail'][_0x27f081('0x19fd')]&&_0x537ebb[_0x27f081('0xa23')][_0x27f081('0x19fd')][_0x27f081('0x20d5')]()===_0x27f081('0x25b6')&&_0x537ebb[_0x27f081('0xa23')][_0x27f081('0x27c0')]===_0x27f081('0x1bf6')&&(_0x537ebb['voicemail'][_0x27f081('0x1546')]=_0x1babf8['cutdigits']?(_0x537ebb[_0x27f081('0xa23')][_0x27f081('0x2137')]||'')+_0x27f081('0x2100')+_0x1babf8[_0x27f081('0x388')]+'}':(_0x537ebb[_0x27f081('0xa23')][_0x27f081('0x2137')]||'')+'${EXTEN}',_0x1babf8[_0x27f081('0x897')]!=='none'?_0x537ebb[_0x27f081('0xa23')][_0x27f081('0x249a')][_0x27f081('0x203c')](_0x27f081('0x22c9'))<0x0&&(_0x537ebb[_0x27f081('0xa23')]['options']+=_0x27f081('0x22c9')):_0x537ebb[_0x27f081('0xa23')][_0x27f081('0x249a')]=_0x537ebb[_0x27f081('0xa23')]['options'][_0x27f081('0x814')]('U(xcally-mixmonitor-context)',''));if(_0x537ebb[_0x27f081('0xa23')][_0x27f081('0x27c0')]&&_0x537ebb[_0x27f081('0xa23')][_0x27f081('0x27c0')]===_0x27f081('0xa8d')){}else switch((_0x537ebb[_0x27f081('0xa23')][_0x27f081('0x18f5')]||_0x537ebb[_0x27f081('0xa23')]['appType'])[_0x27f081('0x20d5')]()){case _0x27f081('0xe50'):_0x537ebb[_0x27f081('0xa23')][_0x27f081('0x13fc')]=_0x537ebb[_0x27f081('0xa23')][_0x27f081('0x1909')]+'='+_0x537ebb[_0x27f081('0xa23')][_0x27f081('0x10cc')];break;case _0x27f081('0xa8d'):break;default:_0x1ee36a[0x0]=_0x537ebb['voicemail']['voiceMail'],_0x1ee36a[0x1]=_0x537ebb[_0x27f081('0xa23')]['options'],_0x537ebb[_0x27f081('0xa23')][_0x27f081('0x13fc')]=_0x1ee36a[_0x27f081('0xa04')](',');}_0x2c3499(_0x537ebb[_0x27f081('0xa23')]);}function _0x2c3499(_0x1485e0){const _0x46d5d9=_0x1583dd;_0x546a3a[_0x46d5d9('0x237e')](_0x1485e0);}}const _0xd6ae60=_0x37d414;_0x5d0c54[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0xcbc'),_0x21d0f5('0x16b9'),_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),_0x21d0f5('0xb6b'),'license',_0x21d0f5('0x23e1'),'api',_0x21d0f5('0x142d'),_0x21d0f5('0x1150'),_0x21d0f5('0xf33'),_0x21d0f5('0x1d63')];function _0x5d0c54(_0x5c1543,_0x26565c,_0x4fa600,_0x3205dd,_0x2d4e3b,_0x5a7294,_0x20fdbf,_0x359e75,_0x1ae805,_0x10407c,_0x4617b4,_0xa25173){const _0x1c76ee=_0x21d0f5,_0x56c894=this;_0x56c894[_0x1c76ee('0x32a')]=_0x10407c[_0x1c76ee('0x2428')](),_0x56c894[_0x1c76ee('0x17ff')]=_0x5a7294,_0x56c894['setting']=_0x20fdbf,_0x56c894[_0x1c76ee('0x2834')]=_0x56c894['setting'][_0x1c76ee('0x1d4')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x56c894[_0x1c76ee('0x1d9a')]=_0x26565c[_0x1c76ee('0x1797')]()+'://'+_0x26565c[_0x1c76ee('0x14ec')](),_0x56c894[_0x1c76ee('0xf33')]=_0x4617b4||_0x5c1543[_0x1c76ee('0x1ab3')][_0x1c76ee('0xf33')]||{},_0x56c894[_0x1c76ee('0x1d63')]=_0xa25173&&_0xa25173['count']==0x1?_0xa25173[_0x1c76ee('0x19b2')][0x0]:null,_0x56c894['crudPermissions']=_0x10407c[_0x1c76ee('0x1530')](_0x56c894[_0x1c76ee('0x1d63')]?_0x56c894[_0x1c76ee('0x1d63')][_0x1c76ee('0xb25')]:null),_0x56c894[_0x1c76ee('0x2c9')]={},_0x56c894[_0x1c76ee('0x1179')]=_0x5c1543[_0x1c76ee('0x1ab3')][_0x1c76ee('0x205c')]||0x0,_0x56c894['alert']=_0x1ae805[_0x1c76ee('0x870')],_0x56c894[_0x1c76ee('0x1851')]=_0x55389c,_0x56c894[_0x1c76ee('0x94d')]=_0x13ccf5,_0x10407c['hasRole']('admin')?_0x359e75[_0x1c76ee('0x1279')][_0x1c76ee('0xbaa')]({'fields':'id,name','sort':'name','nolimit':_0x1c76ee('0x204c')})[_0x1c76ee('0x1549')]['then'](function(_0x56f7bd){const _0x2b2d5b=_0x1c76ee;_0x56c894[_0x2b2d5b('0x803')]=_0x56f7bd[_0x2b2d5b('0x19b2')]||[];})[_0x1c76ee('0x151d')](function(_0x3d833b){const _0x42962e=_0x1c76ee;_0x1ae805['error']({'title':_0x3d833b[_0x42962e('0xff9')]?_0x42962e('0x574')+_0x3d833b[_0x42962e('0xff9')]+'\x20-\x20'+_0x3d833b[_0x42962e('0x212f')]:_0x42962e('0x348'),'msg':_0x3d833b[_0x42962e('0x4e8')]?JSON[_0x42962e('0x3e')](_0x3d833b[_0x42962e('0x4e8')]):_0x3d833b[_0x42962e('0xaab')]()});}):_0x359e75[_0x1c76ee('0x1279')][_0x1c76ee('0xbaa')]({'fields':_0x1c76ee('0x721'),'sort':_0x1c76ee('0x1909'),'nolimit':'true'})['$promise'][_0x1c76ee('0x11bf')](function(_0x50749b){const _0x3ca427=_0x1c76ee;_0x56c894[_0x3ca427('0x803')]=_0x50749b['rows']||[];})[_0x1c76ee('0x11bf')](function(){const _0x225a3a=_0x1c76ee;return _0x359e75[_0x225a3a('0x1d63')][_0x225a3a('0xbaa')]({'userProfileId':_0x56c894[_0x225a3a('0x32a')][_0x225a3a('0x781')],'sectionId':0x195})[_0x225a3a('0x1549')];})[_0x1c76ee('0x11bf')](function(_0x435ff9){const _0x4e20d2=_0x1c76ee,_0x36c9b1=_0x435ff9&&_0x435ff9['rows']?_0x435ff9[_0x4e20d2('0x19b2')][0x0]:null;if(!_0x36c9b1)return _0x359e75[_0x4e20d2('0x1279')][_0x4e20d2('0xbaa')]({'fields':_0x4e20d2('0x721'),'sort':_0x4e20d2('0x1909'),'nolimit':_0x4e20d2('0x204c'),'defaultEntry':0x1})[_0x4e20d2('0x1549')]['then'](function(_0x37ef25){const _0x1262fd=_0x4e20d2;_0x56c894[_0x1262fd('0x803')]=_0x37ef25[_0x1262fd('0x19b2')]||[];});else{if(!_0x36c9b1[_0x4e20d2('0xf11')])return _0x359e75[_0x4e20d2('0x26d1')][_0x4e20d2('0xbaa')]({'sectionId':_0x36c9b1['id']})[_0x4e20d2('0x1549')][_0x4e20d2('0x11bf')](function(_0x44c16c){const _0x5abd96=_0x4e20d2,_0x1524de=_0x36f548()[_0x5abd96('0x2171')](_0x44c16c['rows'],function(_0x47b2ea){const _0x1184b3=_0x5abd96;return _0x36f548()[_0x1184b3('0x1ad4')](_0x56c894[_0x1184b3('0x803')],{'id':_0x47b2ea[_0x1184b3('0x15a5')]});});let _0x14e52e=null;_0x56c894[_0x5abd96('0xf33')]&&(_0x14e52e=_0x36f548()[_0x5abd96('0x1ad4')](_0x56c894[_0x5abd96('0x803')],{'name':_0x56c894[_0x5abd96('0xf33')]['context']}));if(_0x14e52e&&!_0x36f548()[_0x5abd96('0x1cb3')](_0x1524de,['id',_0x14e52e['id']])){const _0x28b8d2=_0x36f548()[_0x5abd96('0x1ad4')](_0x56c894[_0x5abd96('0x803')],{'id':_0x14e52e['id']});_0x28b8d2[_0x5abd96('0x254a')]=![],_0x1524de[_0x5abd96('0x105d')](_0x28b8d2);}_0x56c894[_0x5abd96('0x803')]=_0x1524de;});}})[_0x1c76ee('0x151d')](function(_0x1e6822){const _0x2599f7=_0x1c76ee;_0x1ae805[_0x2599f7('0x255')]({'title':_0x1e6822[_0x2599f7('0xff9')]?_0x2599f7('0x574')+_0x1e6822[_0x2599f7('0xff9')]+'\x20-\x20'+_0x1e6822[_0x2599f7('0x212f')]:_0x2599f7('0x1280'),'msg':_0x1e6822['data']?JSON[_0x2599f7('0x3e')](_0x1e6822[_0x2599f7('0x4e8')]):_0x1e6822[_0x2599f7('0xaab')]()});});function _0x55389c(){const _0x83db2a=_0x1c76ee;_0x5c1543['go'](_0x83db2a('0x1e21'),{},{'reload':_0x83db2a('0x1e21')});}function _0x13ccf5(){const _0x1d561d=_0x1c76ee;_0x359e75['voiceExtension'][_0x1d561d('0x5ab')]({'id':_0x56c894[_0x1d561d('0xf33')]['id']},_0x56c894[_0x1d561d('0xf33')])[_0x1d561d('0x1549')][_0x1d561d('0x11bf')](function(){const _0x5d0778=_0x1d561d;_0x1ae805[_0x5d0778('0x2693')]({'title':_0x5d0778('0x219e'),'msg':_0x56c894['internalroute'][_0x5d0778('0x1909')]?_0x56c894[_0x5d0778('0xf33')][_0x5d0778('0x1909')]+_0x5d0778('0xd7'):''});})[_0x1d561d('0x151d')](function(_0x13e458){const _0x585c14=_0x1d561d;_0x1ae805[_0x585c14('0x255')]({'title':_0x13e458[_0x585c14('0xff9')]?_0x585c14('0x574')+_0x13e458[_0x585c14('0xff9')]+_0x585c14('0xb0b')+_0x13e458[_0x585c14('0x212f')]:_0x585c14('0xc3d'),'msg':_0x13e458['data']?JSON[_0x585c14('0x3e')](_0x13e458[_0x585c14('0x4e8')]):_0x13e458[_0x585c14('0xaab')]()});});}}const _0x3c3ce4=_0x5d0c54,_0x451f01=_0x351988['p']+_0x21d0f5('0x2667');_0x226be0[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0x2143'),_0x21d0f5('0xcbc'),_0x21d0f5('0x18fe'),_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),_0x21d0f5('0x17f5'),_0x21d0f5('0xb6b'),'internalroutes','userProfile',_0x21d0f5('0x1d63'),_0x21d0f5('0x12a5'),'msUtils',_0x21d0f5('0x142d'),_0x21d0f5('0x1150'),_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1')];function _0x226be0(_0x452c80,_0x31da32,_0xe0753c,_0x42bea2,_0x50cf1c,_0x1b8a42,_0x553d95,_0x58c277,_0x4f9e38,_0x502546,_0x46d83b,_0x4709f8,_0x24c47c,_0x3ade10,_0x395f15,_0x1a57b2,_0x37f038){const _0x2f9c3a=_0x21d0f5,_0x1245ac=this;_0x1245ac[_0x2f9c3a('0x17ff')]=_0x1a57b2,_0x1245ac[_0x2f9c3a('0x23e1')]=_0x37f038,_0x1245ac['currentUser']=_0x395f15[_0x2f9c3a('0x2428')](),_0x1245ac[_0x2f9c3a('0x3d5')]=_0x4f9e38||{'count':0x0,'rows':[]},_0x1245ac[_0x2f9c3a('0x25bc')]=_0x502546,_0x1245ac[_0x2f9c3a('0x1d63')]=_0x46d83b&&_0x46d83b[_0x2f9c3a('0x27d2')]==0x1?_0x46d83b[_0x2f9c3a('0x19b2')][0x0]:null,_0x1245ac['crudPermissions']=_0x395f15['parseCrudPermissions'](_0x1245ac[_0x2f9c3a('0x1d63')]?_0x1245ac[_0x2f9c3a('0x1d63')][_0x2f9c3a('0xb25')]:null),_0x1245ac[_0x2f9c3a('0x13e8')]=_0x2f9c3a('0x3d5'),_0x1245ac[_0x2f9c3a('0x724')]='',_0x1245ac[_0x2f9c3a('0xe3c')]=null,_0x1245ac[_0x2f9c3a('0x57c')]=[],_0x1245ac[_0x2f9c3a('0x1f2a')]={'fields':'createdAt,updatedAt,id,appdata,type,exten,context,description','type':_0x2f9c3a('0x1a04'),'sort':_0x2f9c3a('0x1c74'),'VoiceExtensionId':'null','limit':0xa,'page':0x1},_0x1245ac[_0x2f9c3a('0x757')]=_0x3a3454,_0x1245ac[_0x2f9c3a('0x549')]=_0x534dc1,_0x1245ac[_0x2f9c3a('0x2693')]=_0x3cceb6,_0x1245ac[_0x2f9c3a('0xcf8')]=_0x341bc0,_0x1245ac[_0x2f9c3a('0x2201')]=_0x5e734a,_0x1245ac[_0x2f9c3a('0xc79')]=_0x42096d,_0x1245ac['exportSelectedInternalRoutes']=_0x3d15da,_0x1245ac[_0x2f9c3a('0xa29')]=_0x2e7da1,_0x1245ac[_0x2f9c3a('0x6f1')]=_0x385e3b,_0x1245ac[_0x2f9c3a('0x234f')]=_0x205d28,_0x395f15['hasRole'](_0x2f9c3a('0xf45'))?_0x4709f8[_0x2f9c3a('0x1279')][_0x2f9c3a('0xbaa')]({'fields':'id,name','sort':_0x2f9c3a('0x1909'),'nolimit':_0x2f9c3a('0x204c')})[_0x2f9c3a('0x1549')][_0x2f9c3a('0x11bf')](function(_0x1b7965){const _0x204ed1=_0x2f9c3a;_0x1245ac['contexts']=_0x1b7965[_0x204ed1('0x19b2')]||[];})[_0x2f9c3a('0x151d')](function(_0x26bdd5){const _0x2a75e4=_0x2f9c3a;_0x3ade10[_0x2a75e4('0x255')]({'title':_0x26bdd5[_0x2a75e4('0xff9')]?_0x2a75e4('0x574')+_0x26bdd5['status']+'\x20-\x20'+_0x26bdd5['statusText']:_0x2a75e4('0x348'),'msg':_0x26bdd5[_0x2a75e4('0x4e8')]?JSON[_0x2a75e4('0x3e')](_0x26bdd5[_0x2a75e4('0x4e8')]):_0x26bdd5[_0x2a75e4('0xaab')]()});}):_0x4709f8[_0x2f9c3a('0x1279')][_0x2f9c3a('0xbaa')]({'fields':_0x2f9c3a('0x721'),'sort':_0x2f9c3a('0x1909'),'nolimit':'true'})[_0x2f9c3a('0x1549')][_0x2f9c3a('0x11bf')](function(_0xaee41a){const _0x354450=_0x2f9c3a;_0x1245ac['contexts']=_0xaee41a[_0x354450('0x19b2')]||[];})[_0x2f9c3a('0x11bf')](function(){const _0x34a369=_0x2f9c3a;return _0x4709f8['userProfileSection']['get']({'userProfileId':_0x1245ac[_0x34a369('0x32a')]['userProfileId'],'sectionId':0x195})[_0x34a369('0x1549')];})[_0x2f9c3a('0x11bf')](function(_0x4b8f1e){const _0x1a4b3c=_0x2f9c3a,_0x365cda=_0x4b8f1e&&_0x4b8f1e['rows']?_0x4b8f1e[_0x1a4b3c('0x19b2')][0x0]:null;if(!_0x365cda)return _0x4709f8[_0x1a4b3c('0x1279')][_0x1a4b3c('0xbaa')]({'fields':_0x1a4b3c('0x721'),'sort':'name','nolimit':_0x1a4b3c('0x204c'),'defaultEntry':0x1})[_0x1a4b3c('0x1549')][_0x1a4b3c('0x11bf')](function(_0x402730){const _0x40420a=_0x1a4b3c;_0x1245ac['contexts']=_0x402730[_0x40420a('0x19b2')]||[];});else{if(!_0x365cda['autoAssociation'])return _0x4709f8[_0x1a4b3c('0x26d1')]['get']({'sectionId':_0x365cda['id']})[_0x1a4b3c('0x1549')][_0x1a4b3c('0x11bf')](function(_0x4f84f5){const _0x528cd5=_0x1a4b3c,_0x587378=_0x36f548()['map'](_0x4f84f5[_0x528cd5('0x19b2')],function(_0x56f857){const _0xb535f4=_0x528cd5;return _0x36f548()['find'](_0x1245ac[_0xb535f4('0x803')],{'id':_0x56f857[_0xb535f4('0x15a5')]});});let _0x2f251d=null;_0x1245ac[_0x528cd5('0xf33')]&&(_0x2f251d=_0x36f548()[_0x528cd5('0x1ad4')](_0x1245ac['contexts'],{'name':_0x1245ac[_0x528cd5('0xf33')][_0x528cd5('0x1c87')]}));if(_0x2f251d&&!_0x36f548()['some'](_0x587378,['id',_0x2f251d['id']])){const _0x590ec8=_0x36f548()[_0x528cd5('0x1ad4')](_0x1245ac['contexts'],{'id':_0x2f251d['id']});_0x590ec8[_0x528cd5('0x254a')]=![],_0x587378[_0x528cd5('0x105d')](_0x590ec8);}_0x1245ac[_0x528cd5('0x803')]=_0x587378;});}})[_0x2f9c3a('0x151d')](function(_0x3b8ff2){const _0x15965e=_0x2f9c3a;_0x3ade10[_0x15965e('0x255')]({'title':_0x3b8ff2[_0x15965e('0xff9')]?_0x15965e('0x574')+_0x3b8ff2[_0x15965e('0xff9')]+'\x20-\x20'+_0x3b8ff2['statusText']:_0x15965e('0x1280'),'msg':_0x3b8ff2[_0x15965e('0x4e8')]?JSON[_0x15965e('0x3e')](_0x3b8ff2['data']):_0x3b8ff2[_0x15965e('0xaab')]()});});function _0x3a3454(_0x4a30c8){const _0x33f0d5=_0x2f9c3a;_0xe0753c['go']('app.voice.internalroutes.edit',{'id':_0x4a30c8['id'],'internalroute':_0x4a30c8,'crudPermissions':_0x1245ac[_0x33f0d5('0xb25')]});}function _0x534dc1(_0x20c6fc,_0x1d09c6){const _0x5a5b73=_0x2f9c3a,_0x5740ae=_0x50cf1c[_0x5a5b73('0x132b')]()[_0x5a5b73('0x134b')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x36f548()[_0x5a5b73('0x13cf')]('internalroute')+'?')[_0x5a5b73('0x1d03')](_0x5a5b73('0x2061')+(_0x20c6fc[_0x5a5b73('0x1909')]||_0x5a5b73('0xf33'))+_0x5a5b73('0x1c78')+_0x5a5b73('0x1a'))[_0x5a5b73('0xb2e')](_0x5a5b73('0x876'))[_0x5a5b73('0x1e25')](_0x1d09c6)['ok']('OK')[_0x5a5b73('0x26c9')]('CANCEL');_0x50cf1c[_0x5a5b73('0xb9')](_0x5740ae)[_0x5a5b73('0x11bf')](function(){_0x42096d(_0x20c6fc);},function(){const _0x377e31=_0x5a5b73;console[_0x377e31('0xc78')](_0x377e31('0x772'));});}let _0x4cbcf2=!![],_0x24ffbd=0x1;_0x452c80[_0x2f9c3a('0x2087')](_0x2f9c3a('0x842'),function(_0x689400,_0x3f3261){const _0x3bd514=_0x2f9c3a;_0x4cbcf2?_0x553d95(function(){_0x4cbcf2=![];}):(!_0x3f3261&&(_0x24ffbd=_0x1245ac[_0x3bd514('0x1f2a')][_0x3bd514('0x1c2')]),_0x689400!==_0x3f3261&&(_0x1245ac[_0x3bd514('0x1f2a')][_0x3bd514('0x1c2')]=0x1),!_0x689400&&(_0x1245ac[_0x3bd514('0x1f2a')][_0x3bd514('0x1c2')]=_0x24ffbd),_0x1245ac[_0x3bd514('0xcf8')]());});function _0x3cceb6(_0x488662){_0x1245ac['internalroutes']=_0x488662||{'count':0x0,'rows':[]};}function _0x341bc0(){const _0x2f79e2=_0x2f9c3a;_0x1245ac[_0x2f79e2('0x1f2a')][_0x2f79e2('0x1393')]=(_0x1245ac[_0x2f79e2('0x1f2a')][_0x2f79e2('0x1c2')]-0x1)*_0x1245ac[_0x2f79e2('0x1f2a')][_0x2f79e2('0xd5c')],_0x395f15[_0x2f79e2('0x4ee')](_0x2f79e2('0xf45'))?_0x1245ac[_0x2f79e2('0x13f')]=_0x4709f8[_0x2f79e2('0x417')][_0x2f79e2('0xbaa')](_0x1245ac[_0x2f79e2('0x1f2a')],_0x3cceb6)[_0x2f79e2('0x1549')]:(_0x1245ac[_0x2f79e2('0x1f2a')]['id']=_0x1245ac['userProfile']['id'],_0x1245ac[_0x2f79e2('0x1f2a')]['section']=_0x2f79e2('0x109c'),_0x1245ac['promise']=_0x4709f8['userProfile']['getResources'](_0x1245ac[_0x2f79e2('0x1f2a')],_0x3cceb6)['$promise']);}function _0x5e734a(_0x1af38f,_0x3fa5e2){const _0x4a4855=_0x2f9c3a;_0x50cf1c[_0x4a4855('0xb9')]({'controller':_0x4a4855('0xd94'),'controllerAs':'vm','templateUrl':_0x451f01,'parent':angular[_0x4a4855('0x1e73')](_0x1b8a42[_0x4a4855('0x1d2')]),'targetEvent':_0x1af38f,'clickOutsideToClose':!![],'locals':{'internalroute':_0x3fa5e2,'internalroutes':_0x1245ac[_0x4a4855('0x3d5')]['rows'],'license':_0x1245ac[_0x4a4855('0x17ff')],'setting':_0x1245ac[_0x4a4855('0x23e1')],'crudPermissions':_0x1245ac[_0x4a4855('0xb25')]}});}function _0x42096d(_0x48d435){const _0x5f3ff8=_0x2f9c3a;_0x4709f8[_0x5f3ff8('0x417')][_0x5f3ff8('0x2088')]({'id':_0x48d435['id']})[_0x5f3ff8('0x1549')][_0x5f3ff8('0x11bf')](function(){const _0x2a8ca8=_0x5f3ff8;_0x36f548()[_0x2a8ca8('0x14a5')](_0x1245ac[_0x2a8ca8('0x3d5')][_0x2a8ca8('0x19b2')],{'id':_0x48d435['id']}),_0x1245ac['internalroutes'][_0x2a8ca8('0x27d2')]-=0x1,!_0x1245ac[_0x2a8ca8('0x3d5')][_0x2a8ca8('0x19b2')][_0x2a8ca8('0x1e22')]&&_0x1245ac[_0x2a8ca8('0xcf8')](),_0x3ade10['success']({'title':_0x36f548()[_0x2a8ca8('0x13cf')](_0x2a8ca8('0x98c'))+_0x2a8ca8('0x2113'),'msg':_0x48d435['name']?_0x48d435[_0x2a8ca8('0x1909')]+_0x2a8ca8('0x433'):''});})[_0x5f3ff8('0x151d')](function(_0x11ac97){const _0x1f9a88=_0x5f3ff8;if(_0x11ac97[_0x1f9a88('0x4e8')]&&_0x11ac97['data']['errors']&&_0x11ac97[_0x1f9a88('0x4e8')][_0x1f9a88('0x120f')][_0x1f9a88('0x1e22')]){_0x1245ac[_0x1f9a88('0x120f')]=_0x11ac97[_0x1f9a88('0x4e8')]['errors']||[{'message':_0x11ac97['toString'](),'type':'SYSTEM:DELETEvoiceExtension'}];for(let _0x58e476=0x0;_0x58e476<_0x11ac97[_0x1f9a88('0x4e8')][_0x1f9a88('0x120f')][_0x1f9a88('0x1e22')];_0x58e476++){_0x3ade10['error']({'title':_0x11ac97[_0x1f9a88('0x4e8')][_0x1f9a88('0x120f')][_0x58e476][_0x1f9a88('0x19fd')],'msg':_0x11ac97[_0x1f9a88('0x4e8')]['errors'][_0x58e476]['message']});}}else _0x3ade10[_0x1f9a88('0x255')]({'title':_0x11ac97[_0x1f9a88('0xff9')]?_0x1f9a88('0x574')+_0x11ac97[_0x1f9a88('0xff9')]+'\x20-\x20'+_0x11ac97['statusText']:_0x1f9a88('0x205a'),'msg':_0x11ac97[_0x1f9a88('0x4e8')]?JSON[_0x1f9a88('0x3e')](_0x11ac97['data']['message']):_0x11ac97[_0x1f9a88('0x1b86')]||_0x11ac97['toString']()});});}function _0x3d15da(){const _0x2c352a=_0x2f9c3a,_0x52ff4d=angular[_0x2c352a('0x6fb')](_0x1245ac[_0x2c352a('0x57c')]);return _0x1245ac[_0x2c352a('0x57c')]=[],_0x52ff4d;}function _0x2e7da1(_0x3a0c8a){const _0x1c2799=_0x2f9c3a,_0x2cea86=_0x50cf1c['confirm']()[_0x1c2799('0x134b')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20internalroutes?')[_0x1c2799('0x1d03')](_0x1c2799('0x2061')+_0x1245ac['selectedInternalRoutes'][_0x1c2799('0x1e22')]+_0x1c2799('0xac6')+_0x1c2799('0x1a'))['ariaLabel'](_0x1c2799('0xb75'))['targetEvent'](_0x3a0c8a)['ok']('OK')[_0x1c2799('0x26c9')]('CANCEL');_0x50cf1c[_0x1c2799('0xb9')](_0x2cea86)[_0x1c2799('0x11bf')](function(){const _0x40165b=_0x1c2799;_0x1245ac[_0x40165b('0x57c')][_0x40165b('0x1f88')](function(_0x2da3d8){_0x42096d(_0x2da3d8);}),_0x1245ac[_0x40165b('0x57c')]=[];});}function _0x385e3b(){const _0x5249d0=_0x2f9c3a;_0x1245ac[_0x5249d0('0x57c')]=[];}function _0x205d28(){const _0x1299b7=_0x2f9c3a;_0x1245ac['selectedInternalRoutes']=_0x1245ac['internalroutes'][_0x1299b7('0x19b2')];}}const _0x52e0c6=_0x226be0;_0xa050c8[_0x21d0f5('0x1e9a')]=['$scope',_0x21d0f5('0xcbc'),_0x21d0f5('0x16b9'),_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0xb6b'),_0x21d0f5('0x142d'),_0x21d0f5('0x2094'),_0x21d0f5('0x1961'),'api',_0x21d0f5('0x1150'),_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1'),_0x21d0f5('0xb25')];function _0xa050c8(_0x4204d7,_0x25de08,_0x27c114,_0x3768da,_0x500eef,_0x37e74b,_0x4efeca,_0x4a7134,_0x29bbf5,_0xbef229,_0x41d87e,_0x200dff,_0x14005c,_0x31919e){const _0x248e74=_0x21d0f5,_0x14f2af=this;_0x14f2af['currentUser']=_0x41d87e[_0x248e74('0x2428')](),_0x14f2af['errors']=[],_0x14f2af[_0x248e74('0x23e1')]=_0x14005c,_0x14f2af[_0x248e74('0x17ff')]=_0x200dff,_0x14f2af[_0x248e74('0xb25')]=_0x31919e,_0x14f2af['hasModulePermissions']={},_0x14f2af[_0x248e74('0x2834')]=_0x14f2af[_0x248e74('0x23e1')]&&_0x14f2af[_0x248e74('0x23e1')][_0x248e74('0x1d4')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x14f2af['title']=_0x248e74('0x284f'),_0x14f2af[_0x248e74('0x1961')]=angular[_0x248e74('0x6fb')](_0x29bbf5),_0x14f2af[_0x248e74('0x2094')]=_0x4a7134,_0x14f2af[_0x248e74('0xbcd')]=![];!_0x14f2af[_0x248e74('0x1961')]&&(_0x14f2af[_0x248e74('0x1961')]={'mode':_0x248e74('0xe4c')},_0x14f2af[_0x248e74('0x134b')]=_0x248e74('0x865'),_0x14f2af['newMusicOnHold']=!![]);_0x14f2af[_0x248e74('0x1dd1')]=_0x34d9d4,_0x14f2af[_0x248e74('0x1247')]=_0x598129,_0x14f2af['deleteMusicOnHold']=_0x30206a,_0x14f2af['getDateFromString']=_0x51c47a,_0x14f2af[_0x248e74('0xc4e')]=_0x3d9ea4;function _0x34d9d4(){const _0x2f5fa9=_0x248e74;_0x14f2af[_0x2f5fa9('0x120f')]=[],_0xbef229[_0x2f5fa9('0x11c7')][_0x2f5fa9('0x259')](_0x14f2af[_0x2f5fa9('0x1961')])[_0x2f5fa9('0x1549')][_0x2f5fa9('0x11bf')](function(_0x356506){const _0x280707=_0x2f5fa9;_0x14f2af[_0x280707('0x2094')]['unshift'](_0x356506[_0x280707('0x2866')]()),_0x4efeca['success']({'title':_0x280707('0x1747'),'msg':_0x14f2af[_0x280707('0x1961')][_0x280707('0x1909')]?_0x14f2af['musiconhold'][_0x280707('0x1909')]+'\x20has\x20been\x20created!':''}),_0x3d9ea4(_0x356506);})['catch'](function(_0x3a4465){const _0x30666b=_0x2f5fa9;if(_0x3a4465['data']&&_0x3a4465[_0x30666b('0x4e8')][_0x30666b('0x120f')]&&_0x3a4465[_0x30666b('0x4e8')][_0x30666b('0x120f')]['length']){_0x14f2af[_0x30666b('0x120f')]=_0x3a4465[_0x30666b('0x4e8')][_0x30666b('0x120f')]||[{'message':_0x3a4465[_0x30666b('0xaab')](),'type':_0x30666b('0x30f')}];for(let _0x2bfc69=0x0;_0x2bfc69<_0x3a4465[_0x30666b('0x4e8')]['errors'][_0x30666b('0x1e22')];_0x2bfc69+=0x1){_0x4efeca[_0x30666b('0x255')]({'title':_0x3a4465[_0x30666b('0x4e8')][_0x30666b('0x120f')][_0x2bfc69][_0x30666b('0x19fd')],'msg':_0x3a4465[_0x30666b('0x4e8')][_0x30666b('0x120f')][_0x2bfc69]['message']});}}else _0x4efeca[_0x30666b('0x255')]({'title':_0x3a4465[_0x30666b('0xff9')]?'API:'+_0x3a4465[_0x30666b('0xff9')]+'\x20-\x20'+_0x3a4465[_0x30666b('0x212f')]:_0x30666b('0x30f'),'msg':_0x3a4465[_0x30666b('0x4e8')]?JSON[_0x30666b('0x3e')](_0x3a4465[_0x30666b('0x4e8')][_0x30666b('0x1b86')]):_0x3a4465[_0x30666b('0xaab')]()});});}function _0x598129(){const _0x5dcdf2=_0x248e74;_0x14f2af[_0x5dcdf2('0x120f')]=[],_0xbef229[_0x5dcdf2('0x11c7')]['update']({'id':_0x14f2af['musiconhold']['id']},_0x14f2af[_0x5dcdf2('0x1961')])[_0x5dcdf2('0x1549')][_0x5dcdf2('0x11bf')](function(_0x474fe5){const _0x1da985=_0x5dcdf2,_0x31d12b=_0x36f548()[_0x1da985('0x1ad4')](_0x14f2af[_0x1da985('0x2094')],{'id':_0x474fe5['id']});_0x31d12b&&_0x36f548()['merge'](_0x31d12b,_0x36f548()[_0x1da985('0x258')](_0x474fe5['toJSON'](),_0x36f548()[_0x1da985('0xe22')](_0x31d12b))),_0x4efeca[_0x1da985('0x2693')]({'title':_0x1da985('0x1d54'),'msg':_0x14f2af[_0x1da985('0x1961')][_0x1da985('0x1909')]?_0x14f2af[_0x1da985('0x1961')][_0x1da985('0x1909')]+_0x1da985('0x1a78'):''}),_0x3d9ea4(_0x474fe5);})[_0x5dcdf2('0x151d')](function(_0x3a3dc3){const _0xd9424e=_0x5dcdf2;if(_0x3a3dc3[_0xd9424e('0x4e8')]&&_0x3a3dc3[_0xd9424e('0x4e8')][_0xd9424e('0x120f')]&&_0x3a3dc3[_0xd9424e('0x4e8')][_0xd9424e('0x120f')]['length']){_0x14f2af[_0xd9424e('0x120f')]=_0x3a3dc3['data']['errors']||[{'message':_0x3a3dc3[_0xd9424e('0xaab')](),'type':_0xd9424e('0x8ae')}];for(let _0x25e65d=0x0;_0x25e65d<_0x3a3dc3['data'][_0xd9424e('0x120f')][_0xd9424e('0x1e22')];_0x25e65d++){_0x4efeca[_0xd9424e('0x255')]({'title':_0x3a3dc3['data']['errors'][_0x25e65d][_0xd9424e('0x19fd')],'msg':_0x3a3dc3['data'][_0xd9424e('0x120f')][_0x25e65d][_0xd9424e('0x1b86')]});}}else _0x4efeca['error']({'title':_0x3a3dc3['status']?'API:'+_0x3a3dc3[_0xd9424e('0xff9')]+'\x20-\x20'+_0x3a3dc3[_0xd9424e('0x212f')]:_0xd9424e('0x8ae'),'msg':_0x3a3dc3['data']?JSON['stringify'](_0x3a3dc3['data'][_0xd9424e('0x1b86')]):_0x3a3dc3[_0xd9424e('0xaab')]()});});}function _0x30206a(_0x2a5089){const _0x226528=_0x248e74;_0x14f2af[_0x226528('0x120f')]=[];const _0x1d1484=_0x3768da['confirm']()[_0x226528('0x134b')](_0x226528('0x1fa9'))[_0x226528('0x252a')](_0x226528('0xd4e'))[_0x226528('0xb2e')](_0x226528('0x920'))['ok'](_0x226528('0x1167'))[_0x226528('0x26c9')](_0x226528('0x784'))[_0x226528('0x1e25')](_0x2a5089);_0x3768da[_0x226528('0xb9')](_0x1d1484)['then'](function(){const _0x195c92=_0x226528;_0xbef229['voiceMusicOnHold'][_0x195c92('0x2088')]({'id':_0x14f2af['musiconhold']['id']})[_0x195c92('0x1549')][_0x195c92('0x11bf')](function(){const _0x2bc6ed=_0x195c92;_0x36f548()[_0x2bc6ed('0x14a5')](_0x14f2af['musiconholds'],{'id':_0x14f2af[_0x2bc6ed('0x1961')]['id']}),_0x4efeca['success']({'title':_0x2bc6ed('0x1957'),'msg':(_0x14f2af[_0x2bc6ed('0x1961')][_0x2bc6ed('0x1909')]||'musiconhold')+_0x2bc6ed('0x433')}),_0x3d9ea4(_0x14f2af['musiconhold']);})[_0x195c92('0x151d')](function(_0x125f18){const _0x390dec=_0x195c92;if(_0x125f18['data']&&_0x125f18[_0x390dec('0x4e8')][_0x390dec('0x120f')]&&_0x125f18[_0x390dec('0x4e8')][_0x390dec('0x120f')][_0x390dec('0x1e22')]){_0x14f2af[_0x390dec('0x120f')]=_0x125f18[_0x390dec('0x4e8')][_0x390dec('0x120f')]||[{'message':_0x125f18['toString'](),'type':'api.voiceMusicOnHold.delete'}];for(let _0x2592a2=0x0;_0x2592a2<_0x125f18[_0x390dec('0x4e8')][_0x390dec('0x120f')][_0x390dec('0x1e22')];_0x2592a2++){_0x4efeca['error']({'title':_0x125f18[_0x390dec('0x4e8')][_0x390dec('0x120f')][_0x2592a2][_0x390dec('0x19fd')],'msg':_0x125f18[_0x390dec('0x4e8')]['errors'][_0x2592a2][_0x390dec('0x1b86')]});}}else _0x4efeca[_0x390dec('0x255')]({'title':_0x125f18['status']?'API:'+_0x125f18[_0x390dec('0xff9')]+_0x390dec('0xb0b')+_0x125f18[_0x390dec('0x212f')]:_0x390dec('0x1343'),'msg':_0x125f18[_0x390dec('0x4e8')]?JSON[_0x390dec('0x3e')](_0x125f18[_0x390dec('0x4e8')]['message']):_0x125f18[_0x390dec('0x1b86')]||_0x125f18[_0x390dec('0xaab')]()});});},function(){});}function _0x51c47a(_0x1c00f6){return _0x1c00f6===null?undefined:new Date(_0x1c00f6);}function _0x3d9ea4(_0x33ed15){const _0x37e075=_0x248e74;_0x3768da[_0x37e075('0x237e')](_0x33ed15);}}const _0x2f67dc=_0xa050c8,_0x15b82a=_0x351988['p']+'src/js/modules/main/apps/voice/views/musiconholds/edit/mohSounds/dialog.html/dialog.html';_0x333e16[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x5d8'),'$scope','$state','$q','$translate',_0x21d0f5('0x17f5'),'$mdDialog',_0x21d0f5('0x1b30'),_0x21d0f5('0x142d'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150')];function _0x333e16(_0x2f026a,_0x48cf3b,_0x1b5c2b,_0x27efef,_0x14e140,_0x4f2129,_0x1c2ea5,_0x389e22,_0x3040e2,_0x3e9560,_0x128ecf){const _0xbcc56c=_0x21d0f5,_0x6df3d1=this;_0x6df3d1[_0xbcc56c('0x32a')]=_0x128ecf[_0xbcc56c('0x2428')](),_0x6df3d1[_0xbcc56c('0x1961')]={},_0x6df3d1[_0xbcc56c('0xca2')]={'count':0x0,'rows':[]},_0x6df3d1[_0xbcc56c('0x1a23')]=[],_0x6df3d1[_0xbcc56c('0xb25')],_0x6df3d1['query']={'fields':_0xbcc56c('0x2754'),'limit':0xa,'page':0x1},_0x6df3d1[_0xbcc56c('0x286f')]=_0x555a8d,_0x6df3d1[_0xbcc56c('0x560')]=_0x2ac10a,_0x6df3d1[_0xbcc56c('0x631')]=_0x5a4521,_0x6df3d1['success']=_0x258242,_0x6df3d1[_0xbcc56c('0x53f')]=_0xb623f,_0x6df3d1[_0xbcc56c('0x16a8')]=_0x4a85fc,_0x6df3d1['exportSelectedMusicOnHoldMohSounds']=_0x35fd05,_0x6df3d1['deleteMusicOnHoldMohSound']=_0x1e636e,_0x6df3d1[_0xbcc56c('0x249')]=_0x35bf4c,_0x128ecf[_0xbcc56c('0x4ee')](_0xbcc56c('0xf45'))?_0x3e9560[_0xbcc56c('0x1d6e')][_0xbcc56c('0xbaa')]({'fields':_0xbcc56c('0x721'),'sort':_0xbcc56c('0x1909')})[_0xbcc56c('0x1549')]['then'](function(_0xba8e30){const _0x41db8e=_0xbcc56c;_0x6df3d1['sounds']=_0xba8e30[_0x41db8e('0x19b2')]||[];})[_0xbcc56c('0x151d')](function(_0x3fd481){const _0x154413=_0xbcc56c;_0x3040e2[_0x154413('0x255')]({'title':_0x3fd481[_0x154413('0xff9')]?_0x154413('0x574')+_0x3fd481[_0x154413('0xff9')]+_0x154413('0xb0b')+_0x3fd481[_0x154413('0x212f')]:'SYSTEM:GET_SOUNDS','msg':_0x3fd481[_0x154413('0x4e8')]?JSON[_0x154413('0x3e')](_0x3fd481[_0x154413('0x4e8')]):_0x3fd481[_0x154413('0xaab')]()});}):_0x3e9560[_0xbcc56c('0x1d6e')][_0xbcc56c('0xbaa')]({'fields':_0xbcc56c('0x721'),'sort':_0xbcc56c('0x1909')})['$promise']['then'](function(_0x46e9df){const _0x3770d3=_0xbcc56c;_0x6df3d1[_0x3770d3('0x209a')]=_0x46e9df[_0x3770d3('0x19b2')]||[];})[_0xbcc56c('0x11bf')](function(){const _0x2ea96c=_0xbcc56c;return _0x3e9560['userProfileSection']['get']({'userProfileId':_0x6df3d1[_0x2ea96c('0x32a')]['userProfileId'],'sectionId':0x3ef})[_0x2ea96c('0x1549')];})['then'](function(_0x4e340e){const _0x2453bb=_0xbcc56c,_0x116780=_0x4e340e&&_0x4e340e[_0x2453bb('0x19b2')]?_0x4e340e[_0x2453bb('0x19b2')][0x0]:null;if(!_0x116780){const _0x1b7a02=[];let _0x196c23=null;_0x6df3d1[_0x2453bb('0x1961')]&&(_0x196c23=_0x36f548()['find'](_0x6df3d1['sounds'],{'id':Number(_0x6df3d1[_0x2453bb('0x1961')]['id'])}));for(let _0x30d0a5=0x0;_0x30d0a5<_0x6df3d1[_0x2453bb('0x209a')]['length'];_0x30d0a5++){_0x196c23&&_0x6df3d1[_0x2453bb('0x209a')][_0x30d0a5]['id']===_0x196c23['id']&&(_0x6df3d1[_0x2453bb('0x209a')][_0x30d0a5]['canSelect']=![],_0x1b7a02[_0x2453bb('0x105d')](_0x6df3d1[_0x2453bb('0x209a')][_0x30d0a5]));}_0x6df3d1['sounds']=_0x1b7a02;}else{if(!_0x116780[_0x2453bb('0xf11')])return _0x3e9560['userProfileResource']['get']({'sectionId':_0x116780['id']})['$promise']['then'](function(_0x54b973){const _0x1b8393=_0x2453bb,_0x449cf7=_0x36f548()[_0x1b8393('0x2171')](_0x54b973[_0x1b8393('0x19b2')],function(_0x369158){const _0x579015=_0x1b8393;return _0x36f548()[_0x579015('0x1ad4')](_0x6df3d1['sounds'],{'id':_0x369158['resourceId']});});let _0x411be4=null;_0x6df3d1[_0x1b8393('0x1961')]&&(_0x411be4=_0x36f548()[_0x1b8393('0x1ad4')](_0x6df3d1[_0x1b8393('0x209a')],{'id':Number(_0x6df3d1['musiconhold']['id'])}));if(_0x411be4&&!_0x36f548()[_0x1b8393('0x1cb3')](_0x449cf7,['id',_0x411be4['id']])){const _0x47ba55=_0x36f548()['find'](_0x6df3d1['sounds'],{'id':_0x411be4['id']});_0x47ba55[_0x1b8393('0x254a')]=![],_0x449cf7['push'](_0x47ba55);}_0x6df3d1[_0x1b8393('0x209a')]=_0x449cf7;});}})['catch'](function(_0x4f301d){const _0x1974c8=_0xbcc56c;_0x3040e2[_0x1974c8('0x255')]({'title':_0x4f301d['status']?_0x1974c8('0x574')+_0x4f301d[_0x1974c8('0xff9')]+'\x20-\x20'+_0x4f301d[_0x1974c8('0x212f')]:_0x1974c8('0x124'),'msg':_0x4f301d['data']?JSON[_0x1974c8('0x3e')](_0x4f301d[_0x1974c8('0x4e8')]):_0x4f301d[_0x1974c8('0xaab')]()});});function _0x555a8d(_0x3f3dce,_0x3c74f0){const _0x366824=_0xbcc56c;_0x6df3d1[_0x366824('0x1961')]=_0x3f3dce,_0x6df3d1[_0x366824('0xb25')]=typeof _0x3c74f0!=='undefined'?_0x3c74f0:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x6df3d1[_0x366824('0x1f2a')][_0x366824('0x10fe')]=_0x6df3d1['musiconhold']['id'],_0x6df3d1['query']['id']=_0x6df3d1[_0x366824('0x1961')]['id'],_0xb623f();}function _0x5a4521(_0x472571,_0x4f5c97,_0x2b33e6){const _0x480474=_0xbcc56c;return _0x3e9560['sound']['download']({'id':_0x472571['id'],'exists':!![],'attachments':_0x2b33e6})['$promise'][_0x480474('0x11bf')](function(_0x2de436){const _0x4c52a3=_0x480474,_0x5ac99e=[_0x2de436[_0x4c52a3('0x1e94')]];let _0x415766=_0x4c52a3('0x21bd')+_0x472571['id'];const _0x3a93bc=new Blob(_0x5ac99e,{'type':_0x2de436['type']});_0x415766=_0x472571[_0x4c52a3('0x2564')]?_0x472571['save_name']+'.'+_0x472571[_0x4c52a3('0x2564')]:_0x472571[_0x4c52a3('0xce5')];const _0x3a9984=window[_0x4c52a3('0xb54')][_0x4c52a3('0x2773')]('a');_0x3a9984[_0x4c52a3('0x1e1b')](_0x4c52a3('0xead'),URL['createObjectURL'](_0x3a93bc)),_0x3a9984[_0x4c52a3('0x1e1b')](_0x4c52a3('0x149c'),_0x415766),document[_0x4c52a3('0x1d2')][_0x4c52a3('0x131c')](_0x3a9984),_0x3a9984[_0x4c52a3('0x1371')]();})[_0x480474('0x151d')](function(_0x509caf){const _0x226589=_0x480474;if(_0x509caf['data']&&_0x509caf['data'][_0x226589('0x120f')]&&_0x509caf[_0x226589('0x4e8')][_0x226589('0x120f')]['length'])for(let _0x42acef=0x0;_0x42acef<_0x509caf[_0x226589('0x4e8')]['errors']['length'];_0x42acef+=0x1){_0x3040e2[_0x226589('0x255')]({'title':_0x509caf[_0x226589('0x4e8')][_0x226589('0x120f')][_0x42acef][_0x226589('0x19fd')],'msg':_0x509caf[_0x226589('0x4e8')][_0x226589('0x120f')][_0x42acef][_0x226589('0x1b86')]});}else _0x3040e2['error']({'title':_0x509caf['status']?_0x226589('0x574')+_0x509caf[_0x226589('0xff9')]+_0x226589('0xb0b')+_0x509caf['statusText']:_0x226589('0x30f'),'msg':_0x509caf[_0x226589('0x4e8')]?JSON[_0x226589('0x3e')](_0x509caf['data'][_0x226589('0x1b86')]):_0x509caf['toString']()});});}function _0x2ac10a(_0x5994f2,_0x30f1fc){const _0x3a15e3=_0xbcc56c,_0x120250=_0x1c2ea5[_0x3a15e3('0x132b')]()['title'](_0x3a15e3('0xbcb'))[_0x3a15e3('0x1d03')](''+(_0x5994f2['name']||_0x5994f2['id']&&_0x36f548()[_0x3a15e3('0x24b5')](_0x3a15e3('0x2000'))+_0x5994f2['id']||'mohSound')+''+_0x3a15e3('0x1a'))[_0x3a15e3('0xb2e')](_0x3a15e3('0xf9c'))[_0x3a15e3('0x1e25')](_0x30f1fc)['ok']('OK')[_0x3a15e3('0x26c9')](_0x3a15e3('0x772'));_0x1c2ea5[_0x3a15e3('0xb9')](_0x120250)['then'](function(){_0x1e636e(_0x5994f2);},function(){const _0x29328c=_0x3a15e3;console[_0x29328c('0xc78')]('CANCEL');});}function _0x258242(_0x33b97f){_0x6df3d1['musiconholdMohSounds']=_0x33b97f||{'count':0x0,'rows':[]};}function _0xb623f(){const _0x5ac830=_0xbcc56c;_0x6df3d1[_0x5ac830('0x1f2a')][_0x5ac830('0x1393')]=(_0x6df3d1[_0x5ac830('0x1f2a')][_0x5ac830('0x1c2')]-0x1)*_0x6df3d1[_0x5ac830('0x1f2a')][_0x5ac830('0xd5c')],_0x6df3d1[_0x5ac830('0x13f')]=_0x3e9560[_0x5ac830('0x11c7')]['getSounds'](_0x6df3d1[_0x5ac830('0x1f2a')],_0x258242)[_0x5ac830('0x1549')];}function _0x4a85fc(_0x16bdec,_0x461b12){const _0x485750=_0xbcc56c;_0x1c2ea5[_0x485750('0xb9')]({'controller':'CreateOrEditMohSoundDialogController','controllerAs':'vm','templateUrl':_0x15b82a,'parent':angular['element'](_0x389e22['body']),'targetEvent':_0x16bdec,'clickOutsideToClose':!![],'locals':{'musiconhold':_0x6df3d1['musiconhold'],'mohSound':_0x461b12,'mohSounds':_0x6df3d1[_0x485750('0xca2')][_0x485750('0x19b2')],'license':null,'setting':null,'crudPermissions':_0x6df3d1[_0x485750('0xb25')]}});}function _0x1e636e(_0x30394e){const _0x1e785d=_0xbcc56c;_0x3e9560[_0x1e785d('0x11c7')][_0x1e785d('0x12a2')]({'id':_0x1b5c2b[_0x1e785d('0x1ab3')]['id'],'id2':_0x30394e['id']})[_0x1e785d('0x1549')][_0x1e785d('0x11bf')](function(){const _0x40ffb7=_0x1e785d;_0x36f548()[_0x40ffb7('0x14a5')](_0x6df3d1[_0x40ffb7('0xca2')][_0x40ffb7('0x19b2')],{'id':_0x30394e['id']}),_0x6df3d1[_0x40ffb7('0xca2')][_0x40ffb7('0x27d2')]-=0x1,!_0x6df3d1[_0x40ffb7('0xca2')][_0x40ffb7('0x19b2')][_0x40ffb7('0x1e22')]&&_0xb623f(),_0x3040e2['success']({'title':_0x40ffb7('0xd7d'),'msg':_0x30394e[_0x40ffb7('0x1909')]?_0x30394e[_0x40ffb7('0x1909')]+_0x40ffb7('0x433'):''});})[_0x1e785d('0x151d')](function(_0x2fc0b4){const _0x2414fe=_0x1e785d;if(_0x2fc0b4['data']&&_0x2fc0b4[_0x2414fe('0x4e8')]['errors']&&_0x2fc0b4[_0x2414fe('0x4e8')][_0x2414fe('0x120f')]['length']){_0x6df3d1[_0x2414fe('0x120f')]=_0x2fc0b4[_0x2414fe('0x4e8')]['errors']||[{'message':_0x2fc0b4[_0x2414fe('0xaab')](),'type':'SYSTEM:GETvoiceMusicOnHold'}];for(let _0x31c331=0x0;_0x31c331<_0x2fc0b4[_0x2414fe('0x4e8')][_0x2414fe('0x120f')]['length'];_0x31c331++){_0x3040e2[_0x2414fe('0x255')]({'title':_0x2fc0b4[_0x2414fe('0x4e8')][_0x2414fe('0x120f')][_0x31c331][_0x2414fe('0x19fd')],'msg':_0x2fc0b4['data'][_0x2414fe('0x120f')][_0x31c331]['message']});}}else _0x3040e2[_0x2414fe('0x255')]({'title':_0x2fc0b4[_0x2414fe('0xff9')]?_0x2414fe('0x574')+_0x2fc0b4['status']+_0x2414fe('0xb0b')+_0x2fc0b4[_0x2414fe('0x212f')]:'SYSTEM:GETvoiceMusicOnHold','msg':_0x2fc0b4[_0x2414fe('0x4e8')]?JSON['stringify'](_0x2fc0b4['data'][_0x2414fe('0x1b86')]):_0x2fc0b4['message']||_0x2fc0b4['toString']()});});}function _0x35fd05(){const _0x3ef4ba=_0xbcc56c,_0x458004=angular[_0x3ef4ba('0x6fb')](_0x6df3d1[_0x3ef4ba('0x1a23')]);return _0x6df3d1[_0x3ef4ba('0x1a23')]=[],_0x458004;}function _0x35bf4c(_0x42c18a){const _0x116d08=_0xbcc56c,_0x241570=_0x1c2ea5[_0x116d08('0x132b')]()[_0x116d08('0x134b')](_0x116d08('0x19e8'))[_0x116d08('0x1d03')](_0x116d08('0x2061')+_0x6df3d1[_0x116d08('0x1a23')][_0x116d08('0x1e22')]+_0x116d08('0xac6')+'\x20will\x20be\x20deleted.')[_0x116d08('0xb2e')](_0x116d08('0x1b89'))[_0x116d08('0x1e25')](_0x42c18a)['ok']('OK')[_0x116d08('0x26c9')](_0x116d08('0x772'));_0x1c2ea5['show'](_0x241570)[_0x116d08('0x11bf')](function(){const _0x2274df=_0x116d08;_0x6df3d1[_0x2274df('0x1a23')]['forEach'](function(_0x1128de){_0x1e636e(_0x1128de);}),_0x6df3d1['selectedMusicOnHoldMohSounds']=[];});}let _0x3d79a0=!![],_0x2de735=0x1;_0x48cf3b[_0xbcc56c('0x2087')](_0xbcc56c('0x1d12'),function(_0x3c9116,_0x5904af){const _0x140fef=_0xbcc56c;_0x3d79a0?_0x4f2129(function(){_0x3d79a0=![];}):(!_0x5904af&&(_0x2de735=_0x6df3d1[_0x140fef('0x1f2a')][_0x140fef('0x1c2')]),_0x3c9116!==_0x5904af&&(_0x6df3d1[_0x140fef('0x1f2a')][_0x140fef('0x1c2')]=0x1),!_0x3c9116&&(_0x6df3d1['query'][_0x140fef('0x1c2')]=_0x2de735),_0xb623f());});}const _0x46ace5=_0x333e16;_0xc391b1['$inject']=['$scope',_0x21d0f5('0xcbc'),_0x21d0f5('0x16b9'),_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0xb6b'),_0x21d0f5('0x142d'),_0x21d0f5('0x4f8'),_0x21d0f5('0x21bd'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1'),_0x21d0f5('0xb25')];function _0xc391b1(_0x558e9a,_0x75c096,_0x291c03,_0x19c6f6,_0x47bb53,_0x260b06,_0x5e884e,_0x311f33,_0x1f5b06,_0x522e56,_0x366968,_0x972091,_0x42d8e4,_0x1a83ce){const _0x154b2a=_0x21d0f5,_0x17b633=this;_0x17b633['currentUser']=_0x366968[_0x154b2a('0x2428')](),_0x17b633['errors']=[],_0x17b633[_0x154b2a('0x23e1')]=_0x42d8e4,_0x17b633['license']=_0x972091,_0x17b633[_0x154b2a('0xb25')]=_0x1a83ce,_0x17b633[_0x154b2a('0x2c9')]={},_0x17b633[_0x154b2a('0x2834')]=_0x17b633['setting']&&_0x17b633['setting'][_0x154b2a('0x1d4')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x17b633[_0x154b2a('0x134b')]=_0x154b2a('0x1287'),_0x17b633[_0x154b2a('0x21bd')]=angular['copy'](_0x1f5b06),_0x17b633[_0x154b2a('0x4f8')]=_0x311f33,_0x17b633[_0x154b2a('0x166b')]=![];!_0x17b633[_0x154b2a('0x21bd')]&&(_0x17b633[_0x154b2a('0x21bd')]={},_0x17b633[_0x154b2a('0x134b')]=_0x154b2a('0xa2f'),_0x17b633[_0x154b2a('0x166b')]=!![]);_0x75c096['params']['id']&&(_0x17b633[_0x154b2a('0x21bd')][_0x154b2a('0x10fe')]=_0x75c096[_0x154b2a('0x1ab3')]['id']);_0x17b633['addNewMohSound']=_0x30e6b1,_0x17b633[_0x154b2a('0x250b')]=_0x111590,_0x17b633[_0x154b2a('0x10b1')]=_0x43385b,_0x17b633[_0x154b2a('0x1bd1')]=_0x2aca37,_0x17b633['closeDialog']=_0x522fa3,_0x366968['hasRole'](_0x154b2a('0xf45'))?_0x522e56[_0x154b2a('0x1d6e')][_0x154b2a('0xbaa')]({'fields':'id,name','sort':'name'})['$promise'][_0x154b2a('0x11bf')](function(_0x3316eb){const _0x117681=_0x154b2a;_0x17b633[_0x117681('0x209a')]=_0x3316eb['rows']||[];})['catch'](function(_0x50a3ba){const _0x18a83d=_0x154b2a;_0x5e884e[_0x18a83d('0x255')]({'title':_0x50a3ba[_0x18a83d('0xff9')]?_0x18a83d('0x574')+_0x50a3ba[_0x18a83d('0xff9')]+_0x18a83d('0xb0b')+_0x50a3ba['statusText']:_0x18a83d('0x17f6'),'msg':_0x50a3ba[_0x18a83d('0x4e8')]?JSON[_0x18a83d('0x3e')](_0x50a3ba[_0x18a83d('0x4e8')]):_0x50a3ba[_0x18a83d('0xaab')]()});}):_0x522e56[_0x154b2a('0x1d6e')][_0x154b2a('0xbaa')]({'fields':_0x154b2a('0x721'),'sort':_0x154b2a('0x1909')})['$promise'][_0x154b2a('0x11bf')](function(_0x299171){const _0x42a316=_0x154b2a;_0x17b633[_0x42a316('0x209a')]=_0x299171[_0x42a316('0x19b2')]||[];})['then'](function(){const _0x2bdf1f=_0x154b2a;return _0x522e56['userProfileSection']['get']({'userProfileId':_0x17b633[_0x2bdf1f('0x32a')][_0x2bdf1f('0x781')],'sectionId':0x3ef})[_0x2bdf1f('0x1549')];})[_0x154b2a('0x11bf')](function(_0x95753f){const _0x4185d7=_0x154b2a,_0x103501=_0x95753f&&_0x95753f[_0x4185d7('0x19b2')]?_0x95753f[_0x4185d7('0x19b2')][0x0]:null;if(!_0x103501){const _0xcb81e5=[];let _0x5db532=null;_0x17b633[_0x4185d7('0x21bd')]&&(_0x5db532=_0x36f548()[_0x4185d7('0x1ad4')](_0x17b633['sounds'],{'id':Number(_0x17b633[_0x4185d7('0x21bd')]['id'])}));for(let _0x2e92e2=0x0;_0x2e92e2<_0x17b633[_0x4185d7('0x209a')]['length'];_0x2e92e2++){_0x5db532&&_0x17b633[_0x4185d7('0x209a')][_0x2e92e2]['id']===_0x5db532['id']&&(_0x17b633['sounds'][_0x2e92e2][_0x4185d7('0x254a')]=![],_0xcb81e5[_0x4185d7('0x105d')](_0x17b633[_0x4185d7('0x209a')][_0x2e92e2]));}_0x17b633[_0x4185d7('0x209a')]=_0xcb81e5;}else{if(!_0x103501[_0x4185d7('0xf11')])return _0x522e56[_0x4185d7('0x26d1')][_0x4185d7('0xbaa')]({'sectionId':_0x103501['id']})['$promise'][_0x4185d7('0x11bf')](function(_0x24c834){const _0xe8b61f=_0x4185d7,_0x5f0540=_0x36f548()[_0xe8b61f('0x2171')](_0x24c834[_0xe8b61f('0x19b2')],function(_0x826d58){const _0x22c1b3=_0xe8b61f;return _0x36f548()[_0x22c1b3('0x1ad4')](_0x17b633[_0x22c1b3('0x209a')],{'id':_0x826d58[_0x22c1b3('0x15a5')]});});let _0x182073=null;_0x17b633[_0xe8b61f('0x21bd')]&&(_0x182073=_0x36f548()[_0xe8b61f('0x1ad4')](_0x17b633[_0xe8b61f('0x209a')],{'id':Number(_0x17b633[_0xe8b61f('0x21bd')]['id'])}));if(_0x182073&&!_0x36f548()['some'](_0x5f0540,['id',_0x182073['id']])){const _0x607fbd=_0x36f548()[_0xe8b61f('0x1ad4')](_0x17b633[_0xe8b61f('0x209a')],{'id':_0x182073['id']});_0x607fbd[_0xe8b61f('0x254a')]=![],_0x5f0540[_0xe8b61f('0x105d')](_0x607fbd);}_0x17b633[_0xe8b61f('0x209a')]=_0x5f0540;});}})[_0x154b2a('0x151d')](function(_0x19a9af){const _0x43183a=_0x154b2a;_0x5e884e['error']({'title':_0x19a9af['status']?'API:'+_0x19a9af['status']+'\x20-\x20'+_0x19a9af['statusText']:_0x43183a('0x124'),'msg':_0x19a9af[_0x43183a('0x4e8')]?JSON[_0x43183a('0x3e')](_0x19a9af['data']):_0x19a9af[_0x43183a('0xaab')]()});});function _0x30e6b1(){const _0x54bce7=_0x154b2a;_0x17b633[_0x54bce7('0x120f')]=[],_0x522e56[_0x54bce7('0x11c7')][_0x54bce7('0x227d')]({'id':_0x75c096[_0x54bce7('0x1ab3')]['id']},_0x17b633[_0x54bce7('0x21bd')])[_0x54bce7('0x1549')]['then'](function(_0x52d3d6){const _0x48929d=_0x54bce7;_0x17b633['mohSounds']['unshift'](_0x52d3d6[_0x48929d('0x2866')]()),_0x5e884e[_0x48929d('0x2693')]({'title':_0x48929d('0x233f'),'msg':_0x17b633['mohSound'][_0x48929d('0x1909')]?_0x17b633['mohSound']['name']+_0x48929d('0x7fb'):''}),_0x522fa3(_0x52d3d6);})[_0x54bce7('0x151d')](function(_0xd6373d){const _0x5637bb=_0x54bce7;if(_0xd6373d['data']&&_0xd6373d[_0x5637bb('0x4e8')][_0x5637bb('0x120f')]&&_0xd6373d[_0x5637bb('0x4e8')]['errors']['length']){_0x17b633['errors']=_0xd6373d['data'][_0x5637bb('0x120f')]||[{'message':_0xd6373d[_0x5637bb('0xaab')](),'type':_0x5637bb('0x30f')}];for(let _0x3f9235=0x0;_0x3f9235<_0xd6373d[_0x5637bb('0x4e8')][_0x5637bb('0x120f')][_0x5637bb('0x1e22')];_0x3f9235+=0x1){_0x5e884e[_0x5637bb('0x255')]({'title':_0xd6373d[_0x5637bb('0x4e8')][_0x5637bb('0x120f')][_0x3f9235][_0x5637bb('0x19fd')],'msg':_0xd6373d[_0x5637bb('0x4e8')][_0x5637bb('0x120f')][_0x3f9235][_0x5637bb('0x1b86')]});}}else _0x5e884e[_0x5637bb('0x255')]({'title':_0xd6373d['status']?'API:'+_0xd6373d[_0x5637bb('0xff9')]+_0x5637bb('0xb0b')+_0xd6373d['statusText']:_0x5637bb('0x30f'),'msg':_0xd6373d[_0x5637bb('0x4e8')]?JSON[_0x5637bb('0x3e')](_0xd6373d[_0x5637bb('0x4e8')]['message']):_0xd6373d[_0x5637bb('0xaab')]()});});}function _0x111590(){const _0x549c79=_0x154b2a;_0x17b633[_0x549c79('0x120f')]=[],_0x522e56[_0x549c79('0x11c7')][_0x549c79('0x5ab')]({'id':_0x17b633[_0x549c79('0x21bd')]['id']},_0x17b633['mohSound'])[_0x549c79('0x1549')][_0x549c79('0x11bf')](function(_0xeebd1e){const _0x98dcfd=_0x549c79,_0x1b255c=_0x36f548()[_0x98dcfd('0x1ad4')](_0x17b633[_0x98dcfd('0x4f8')],{'id':_0xeebd1e['id']});_0x1b255c&&_0x36f548()[_0x98dcfd('0x47b')](_0x1b255c,_0x36f548()['pick'](_0xeebd1e[_0x98dcfd('0x2866')](),_0x36f548()[_0x98dcfd('0xe22')](_0x1b255c))),_0x5e884e[_0x98dcfd('0x2693')]({'title':_0x98dcfd('0x45'),'msg':_0x17b633[_0x98dcfd('0x21bd')]['name']?_0x17b633[_0x98dcfd('0x21bd')][_0x98dcfd('0x1909')]+'\x20has\x20been\x20saved!':''}),_0x522fa3(_0xeebd1e);})['catch'](function(_0x1e226e){const _0x1d3bf8=_0x549c79;if(_0x1e226e[_0x1d3bf8('0x4e8')]&&_0x1e226e[_0x1d3bf8('0x4e8')]['errors']&&_0x1e226e[_0x1d3bf8('0x4e8')][_0x1d3bf8('0x120f')][_0x1d3bf8('0x1e22')]){_0x17b633['errors']=_0x1e226e[_0x1d3bf8('0x4e8')][_0x1d3bf8('0x120f')]||[{'message':_0x1e226e[_0x1d3bf8('0xaab')](),'type':_0x1d3bf8('0x8ae')}];for(let _0x3fc0c4=0x0;_0x3fc0c4<_0x1e226e[_0x1d3bf8('0x4e8')]['errors']['length'];_0x3fc0c4++){_0x5e884e[_0x1d3bf8('0x255')]({'title':_0x1e226e['data']['errors'][_0x3fc0c4][_0x1d3bf8('0x19fd')],'msg':_0x1e226e[_0x1d3bf8('0x4e8')]['errors'][_0x3fc0c4][_0x1d3bf8('0x1b86')]});}}else _0x5e884e['error']({'title':_0x1e226e[_0x1d3bf8('0xff9')]?_0x1d3bf8('0x574')+_0x1e226e[_0x1d3bf8('0xff9')]+_0x1d3bf8('0xb0b')+_0x1e226e['statusText']:_0x1d3bf8('0x8ae'),'msg':_0x1e226e[_0x1d3bf8('0x4e8')]?JSON[_0x1d3bf8('0x3e')](_0x1e226e['data'][_0x1d3bf8('0x1b86')]):_0x1e226e[_0x1d3bf8('0xaab')]()});});}function _0x43385b(_0x11b135){const _0x145981=_0x154b2a;_0x17b633[_0x145981('0x120f')]=[];const _0xb0cb96=_0x19c6f6[_0x145981('0x132b')]()[_0x145981('0x134b')]('Are\x20you\x20sure?')[_0x145981('0x252a')](_0x145981('0x1bcc'))[_0x145981('0xb2e')](_0x145981('0x24ae'))['ok'](_0x145981('0x1167'))[_0x145981('0x26c9')](_0x145981('0x784'))['targetEvent'](_0x11b135);_0x19c6f6[_0x145981('0xb9')](_0xb0cb96)[_0x145981('0x11bf')](function(){const _0x524df1=_0x145981;_0x522e56[_0x524df1('0x11c7')][_0x524df1('0x2088')]({'id':_0x17b633[_0x524df1('0x21bd')]['id']})[_0x524df1('0x1549')][_0x524df1('0x11bf')](function(){const _0x10bd4c=_0x524df1;_0x36f548()[_0x10bd4c('0x14a5')](_0x17b633[_0x10bd4c('0x4f8')],{'id':_0x17b633[_0x10bd4c('0x21bd')]['id']}),_0x5e884e[_0x10bd4c('0x2693')]({'title':_0x10bd4c('0x282'),'msg':(_0x17b633[_0x10bd4c('0x21bd')][_0x10bd4c('0x1909')]||_0x10bd4c('0x21bd'))+_0x10bd4c('0x433')}),_0x522fa3(_0x17b633['mohSound']);})[_0x524df1('0x151d')](function(_0x32c9f0){const _0x23bad0=_0x524df1;if(_0x32c9f0[_0x23bad0('0x4e8')]&&_0x32c9f0[_0x23bad0('0x4e8')][_0x23bad0('0x120f')]&&_0x32c9f0[_0x23bad0('0x4e8')][_0x23bad0('0x120f')][_0x23bad0('0x1e22')]){_0x17b633[_0x23bad0('0x120f')]=_0x32c9f0['data'][_0x23bad0('0x120f')]||[{'message':_0x32c9f0[_0x23bad0('0xaab')](),'type':_0x23bad0('0x1343')}];for(let _0x1cd925=0x0;_0x1cd925<_0x32c9f0[_0x23bad0('0x4e8')]['errors'][_0x23bad0('0x1e22')];_0x1cd925++){_0x5e884e['error']({'title':_0x32c9f0[_0x23bad0('0x4e8')][_0x23bad0('0x120f')][_0x1cd925][_0x23bad0('0x19fd')],'msg':_0x32c9f0[_0x23bad0('0x4e8')][_0x23bad0('0x120f')][_0x1cd925][_0x23bad0('0x1b86')]});}}else _0x5e884e[_0x23bad0('0x255')]({'title':_0x32c9f0[_0x23bad0('0xff9')]?_0x23bad0('0x574')+_0x32c9f0['status']+_0x23bad0('0xb0b')+_0x32c9f0[_0x23bad0('0x212f')]:_0x23bad0('0x1343'),'msg':_0x32c9f0['data']?JSON['stringify'](_0x32c9f0[_0x23bad0('0x4e8')][_0x23bad0('0x1b86')]):_0x32c9f0['message']||_0x32c9f0[_0x23bad0('0xaab')]()});});},function(){});}function _0x2aca37(_0x527582){return _0x527582===null?undefined:new Date(_0x527582);}function _0x522fa3(_0x6fe008){const _0x239b4d=_0x154b2a;_0x19c6f6[_0x239b4d('0x237e')](_0x6fe008);}}const _0x185600=_0xc391b1;_0x18d9b6[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0xcbc'),_0x21d0f5('0x16b9'),_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),_0x21d0f5('0xb6b'),_0x21d0f5('0x17ff'),'setting','api',_0x21d0f5('0x142d'),_0x21d0f5('0x1150'),_0x21d0f5('0x1961'),_0x21d0f5('0x1d63')];function _0x18d9b6(_0x1c73fe,_0x328099,_0x3b128f,_0x100766,_0x3b4ed1,_0x10cf9e,_0x3f033a,_0x3b63fe,_0x4b3407,_0x133ae7,_0x2afe48,_0x4cd811){const _0x5548a1=_0x21d0f5,_0x494d31=this;_0x494d31[_0x5548a1('0x32a')]=_0x133ae7[_0x5548a1('0x2428')](),_0x494d31[_0x5548a1('0x17ff')]=_0x10cf9e,_0x494d31[_0x5548a1('0x23e1')]=_0x3f033a,_0x494d31['passwordPattern']=_0x494d31[_0x5548a1('0x23e1')][_0x5548a1('0x1d4')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x494d31[_0x5548a1('0x1d9a')]=_0x328099['protocol']()+_0x5548a1('0x16a1')+_0x328099[_0x5548a1('0x14ec')](),_0x494d31[_0x5548a1('0x1961')]=_0x2afe48||_0x1c73fe[_0x5548a1('0x1ab3')][_0x5548a1('0x1961')]||{},_0x494d31[_0x5548a1('0x1d63')]=_0x4cd811&&_0x4cd811[_0x5548a1('0x27d2')]==0x1?_0x4cd811[_0x5548a1('0x19b2')][0x0]:null,_0x494d31['crudPermissions']=_0x133ae7['parseCrudPermissions'](_0x494d31[_0x5548a1('0x1d63')]?_0x494d31['userProfileSection'][_0x5548a1('0xb25')]:null),_0x494d31[_0x5548a1('0x2c9')]={},_0x494d31[_0x5548a1('0x1179')]=_0x1c73fe[_0x5548a1('0x1ab3')]['tab']||0x0,_0x494d31[_0x5548a1('0xb30')]=_0x4b3407[_0x5548a1('0x870')],_0x494d31[_0x5548a1('0xb68')]=_0xa3c192,_0x494d31[_0x5548a1('0x1247')]=_0x118554;function _0xa3c192(){const _0x3753a4=_0x5548a1;_0x1c73fe['go'](_0x3753a4('0x18af'),{},{'reload':_0x3753a4('0x18af')});}function _0x118554(){const _0x18ca48=_0x5548a1;_0x3b63fe[_0x18ca48('0x11c7')][_0x18ca48('0x5ab')]({'id':_0x494d31[_0x18ca48('0x1961')]['id']},_0x494d31['musiconhold'])['$promise'][_0x18ca48('0x11bf')](function(){const _0x495609=_0x18ca48;_0x4b3407[_0x495609('0x2693')]({'title':_0x495609('0x12f0'),'msg':_0x494d31[_0x495609('0x1961')]['name']?_0x494d31[_0x495609('0x1961')]['name']+_0x495609('0xd7'):''});})[_0x18ca48('0x151d')](function(_0xfd82a4){const _0x2316d3=_0x18ca48;_0x4b3407[_0x2316d3('0x255')]({'title':_0xfd82a4[_0x2316d3('0xff9')]?_0x2316d3('0x574')+_0xfd82a4[_0x2316d3('0xff9')]+'\x20-\x20'+_0xfd82a4[_0x2316d3('0x212f')]:_0x2316d3('0x1c0f'),'msg':_0xfd82a4[_0x2316d3('0x4e8')]?JSON[_0x2316d3('0x3e')](_0xfd82a4[_0x2316d3('0x4e8')]):_0xfd82a4[_0x2316d3('0xaab')]()});});}}const _0x401b25=_0x18d9b6,_0x2a65d1=_0x351988['p']+'src/js/modules/main/apps/voice/views/musiconholds/create/dialog.html/dialog.html';_0x10226c['$inject']=[_0x21d0f5('0x1b80'),'$window',_0x21d0f5('0xcbc'),_0x21d0f5('0x18fe'),_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),_0x21d0f5('0x17f5'),_0x21d0f5('0xb6b'),_0x21d0f5('0x2094'),'userProfile','userProfileSection',_0x21d0f5('0x12a5'),_0x21d0f5('0xda9'),_0x21d0f5('0x142d'),_0x21d0f5('0x1150'),'license',_0x21d0f5('0x23e1')];function _0x10226c(_0x5b431a,_0x4d40bb,_0x1eca6e,_0x45b6cc,_0x5a9b5b,_0x9f909e,_0x297b60,_0x34ab70,_0x2f65b0,_0x5bf0be,_0x30b9d6,_0xa127ac,_0x3f46f8,_0x20b2fe,_0x16bc5f,_0x312714,_0x2e98b5){const _0x46d2db=_0x21d0f5,_0x196172=this;_0x196172[_0x46d2db('0x17ff')]=_0x312714,_0x196172[_0x46d2db('0x23e1')]=_0x2e98b5,_0x196172[_0x46d2db('0x32a')]=_0x16bc5f[_0x46d2db('0x2428')](),_0x196172[_0x46d2db('0x2094')]=_0x2f65b0||{'count':0x0,'rows':[]},_0x196172[_0x46d2db('0x25bc')]=_0x5bf0be,_0x196172['userProfileSection']=_0x30b9d6&&_0x30b9d6[_0x46d2db('0x27d2')]==0x1?_0x30b9d6[_0x46d2db('0x19b2')][0x0]:null,_0x196172[_0x46d2db('0xb25')]=_0x16bc5f['parseCrudPermissions'](_0x196172[_0x46d2db('0x1d63')]?_0x196172[_0x46d2db('0x1d63')][_0x46d2db('0xb25')]:null),_0x196172[_0x46d2db('0x13e8')]='musiconholds',_0x196172['listOrder']='',_0x196172[_0x46d2db('0xe3c')]=null,_0x196172[_0x46d2db('0x263d')]=[],_0x196172[_0x46d2db('0x1f2a')]={'fields':_0x46d2db('0x19a2'),'defaultEntry':_0x46d2db('0x1fe1'),'limit':0xa,'page':0x1},_0x196172[_0x46d2db('0x25d5')]=_0x36f548()[_0x46d2db('0x2130')]([{'option':_0x46d2db('0x14f2'),'value':_0x46d2db('0x1aa2')},{'option':_0x46d2db('0x13f4'),'value':'\x27custom\x27'}],function(_0x4a5ce3){const _0x4ef3d9=_0x46d2db;return _0x36f548()[_0x4ef3d9('0x814')](_0x4a5ce3[_0x4ef3d9('0x10cc')],new RegExp('\x27','g'),'');}),_0x196172[_0x46d2db('0x120e')]=_0x36f548()[_0x46d2db('0x2130')]([{'option':_0x46d2db('0x24f4'),'value':_0x46d2db('0x84d')},{'option':_0x46d2db('0x1000'),'value':_0x46d2db('0x14de')}],function(_0x3ab8d2){const _0x3a6902=_0x46d2db;return _0x36f548()['replace'](_0x3ab8d2[_0x3a6902('0x10cc')],new RegExp('\x27','g'),'');}),_0x196172['editstate']=_0x1d4b53,_0x196172[_0x46d2db('0x549')]=_0x527bcd,_0x196172['success']=_0x58b502,_0x196172[_0x46d2db('0x11c5')]=_0x548d6f,_0x196172['createOrEditMusicOnHold']=_0x799ec0,_0x196172[_0x46d2db('0x96d')]=_0x8b4928,_0x196172[_0x46d2db('0x283f')]=_0x105999,_0x196172[_0x46d2db('0xc1')]=_0x56bcd6,_0x196172[_0x46d2db('0x15f7')]=_0x3dd67a,_0x196172[_0x46d2db('0x2fc')]=_0x31f3ba;function _0x1d4b53(_0xb33b0e){const _0x27a60a=_0x46d2db;_0x1eca6e['go'](_0x27a60a('0x84e'),{'id':_0xb33b0e['id'],'musiconhold':_0xb33b0e,'crudPermissions':_0x196172[_0x27a60a('0xb25')]});}function _0x527bcd(_0x225e77,_0x42e5f1){const _0x4dea2f=_0x46d2db,_0x6d15de=_0x5a9b5b[_0x4dea2f('0x132b')]()[_0x4dea2f('0x134b')](_0x4dea2f('0x1796')+_0x36f548()[_0x4dea2f('0x13cf')](_0x4dea2f('0x1961'))+'?')['htmlContent'](_0x4dea2f('0x2061')+(_0x225e77[_0x4dea2f('0x1909')]||_0x4dea2f('0x1961'))+_0x4dea2f('0x1c78')+'\x20will\x20be\x20deleted.')[_0x4dea2f('0xb2e')]('delete\x20musiconhold')[_0x4dea2f('0x1e25')](_0x42e5f1)['ok']('OK')['cancel']('CANCEL');_0x5a9b5b[_0x4dea2f('0xb9')](_0x6d15de)[_0x4dea2f('0x11bf')](function(){_0x8b4928(_0x225e77);},function(){const _0x42825d=_0x4dea2f;console[_0x42825d('0xc78')](_0x42825d('0x772'));});}let _0x45e78e=!![],_0x35ff8f=0x1;_0x5b431a[_0x46d2db('0x2087')](_0x46d2db('0x842'),function(_0x4becfa,_0x397444){const _0x2c8120=_0x46d2db;_0x45e78e?_0x297b60(function(){_0x45e78e=![];}):(!_0x397444&&(_0x35ff8f=_0x196172[_0x2c8120('0x1f2a')]['page']),_0x4becfa!==_0x397444&&(_0x196172[_0x2c8120('0x1f2a')]['page']=0x1),!_0x4becfa&&(_0x196172[_0x2c8120('0x1f2a')][_0x2c8120('0x1c2')]=_0x35ff8f),_0x196172['getMusicOnHolds']());});function _0x58b502(_0x29ef06){_0x196172['musiconholds']=_0x29ef06||{'count':0x0,'rows':[]};}function _0x548d6f(){const _0x55a65d=_0x46d2db;_0x196172['query'][_0x55a65d('0x1393')]=(_0x196172[_0x55a65d('0x1f2a')][_0x55a65d('0x1c2')]-0x1)*_0x196172[_0x55a65d('0x1f2a')][_0x55a65d('0xd5c')],_0x16bc5f['hasRole'](_0x55a65d('0xf45'))?_0x196172[_0x55a65d('0x13f')]=_0xa127ac[_0x55a65d('0x11c7')][_0x55a65d('0xbaa')](_0x196172['query'],_0x58b502)[_0x55a65d('0x1549')]:(_0x196172[_0x55a65d('0x1f2a')]['id']=_0x196172[_0x55a65d('0x25bc')]['id'],_0x196172[_0x55a65d('0x1f2a')][_0x55a65d('0xe6')]='MusicOnHolds',_0x196172[_0x55a65d('0x13f')]=_0xa127ac[_0x55a65d('0x25bc')][_0x55a65d('0x228e')](_0x196172[_0x55a65d('0x1f2a')],_0x58b502)['$promise']);}function _0x799ec0(_0x2c21f8,_0x3af40e){const _0x2a01dc=_0x46d2db;_0x5a9b5b[_0x2a01dc('0xb9')]({'controller':_0x2a01dc('0x677'),'controllerAs':'vm','templateUrl':_0x2a65d1,'parent':angular[_0x2a01dc('0x1e73')](_0x9f909e[_0x2a01dc('0x1d2')]),'targetEvent':_0x2c21f8,'clickOutsideToClose':!![],'locals':{'musiconhold':_0x3af40e,'musiconholds':_0x196172[_0x2a01dc('0x2094')][_0x2a01dc('0x19b2')],'license':_0x196172[_0x2a01dc('0x17ff')],'setting':_0x196172['setting'],'crudPermissions':_0x196172[_0x2a01dc('0xb25')]}});}function _0x8b4928(_0x4dc2c9){const _0xb7207a=_0x46d2db;_0xa127ac[_0xb7207a('0x11c7')][_0xb7207a('0x2088')]({'id':_0x4dc2c9['id']})[_0xb7207a('0x1549')][_0xb7207a('0x11bf')](function(){const _0x4edd64=_0xb7207a;_0x36f548()[_0x4edd64('0x14a5')](_0x196172['musiconholds']['rows'],{'id':_0x4dc2c9['id']}),_0x196172[_0x4edd64('0x2094')][_0x4edd64('0x27d2')]-=0x1,!_0x196172[_0x4edd64('0x2094')][_0x4edd64('0x19b2')][_0x4edd64('0x1e22')]&&_0x196172[_0x4edd64('0x11c5')](),_0x20b2fe[_0x4edd64('0x2693')]({'title':_0x36f548()[_0x4edd64('0x13cf')](_0x4edd64('0x1ab9'))+_0x4edd64('0x2113'),'msg':_0x4dc2c9[_0x4edd64('0x1909')]?_0x4dc2c9[_0x4edd64('0x1909')]+_0x4edd64('0x433'):''});})[_0xb7207a('0x151d')](function(_0x24c154){const _0x20fa6c=_0xb7207a;if(_0x24c154[_0x20fa6c('0x4e8')]&&_0x24c154['data'][_0x20fa6c('0x120f')]&&_0x24c154[_0x20fa6c('0x4e8')][_0x20fa6c('0x120f')][_0x20fa6c('0x1e22')]){_0x196172['errors']=_0x24c154[_0x20fa6c('0x4e8')][_0x20fa6c('0x120f')]||[{'message':_0x24c154[_0x20fa6c('0xaab')](),'type':_0x20fa6c('0x1e4a')}];for(let _0x17d12d=0x0;_0x17d12d<_0x24c154[_0x20fa6c('0x4e8')][_0x20fa6c('0x120f')][_0x20fa6c('0x1e22')];_0x17d12d++){_0x20b2fe[_0x20fa6c('0x255')]({'title':_0x24c154[_0x20fa6c('0x4e8')]['errors'][_0x17d12d][_0x20fa6c('0x19fd')],'msg':_0x24c154[_0x20fa6c('0x4e8')]['errors'][_0x17d12d][_0x20fa6c('0x1b86')]});}}else _0x20b2fe[_0x20fa6c('0x255')]({'title':_0x24c154['status']?_0x20fa6c('0x574')+_0x24c154[_0x20fa6c('0xff9')]+_0x20fa6c('0xb0b')+_0x24c154['statusText']:_0x20fa6c('0x1e4a'),'msg':_0x24c154[_0x20fa6c('0x4e8')]?JSON[_0x20fa6c('0x3e')](_0x24c154[_0x20fa6c('0x4e8')]['message']):_0x24c154['message']||_0x24c154[_0x20fa6c('0xaab')]()});});}function _0x105999(){const _0x3aab65=_0x46d2db,_0x588b65=angular[_0x3aab65('0x6fb')](_0x196172['selectedMusicOnHolds']);return _0x196172['selectedMusicOnHolds']=[],_0x588b65;}function _0x56bcd6(_0x59b401){const _0x265131=_0x46d2db,_0x4baefb=_0x5a9b5b[_0x265131('0x132b')]()[_0x265131('0x134b')](_0x265131('0x19eb'))[_0x265131('0x1d03')](_0x265131('0x2061')+_0x196172[_0x265131('0x263d')][_0x265131('0x1e22')]+'\x20selected'+_0x265131('0x1a'))[_0x265131('0xb2e')](_0x265131('0x2552'))[_0x265131('0x1e25')](_0x59b401)['ok']('OK')[_0x265131('0x26c9')]('CANCEL');_0x5a9b5b[_0x265131('0xb9')](_0x4baefb)['then'](function(){const _0x7896b0=_0x265131;_0x196172['selectedMusicOnHolds'][_0x7896b0('0x1f88')](function(_0x5089e8){_0x8b4928(_0x5089e8);}),_0x196172['selectedMusicOnHolds']=[];});}function _0x3dd67a(){_0x196172['selectedMusicOnHolds']=[];}function _0x31f3ba(){const _0x566af1=_0x46d2db;_0x196172[_0x566af1('0x263d')]=_0x196172['musiconholds'][_0x566af1('0x19b2')];}}const _0x3a2164=_0x10226c;_0x939b55['$inject']=[_0x21d0f5('0x1b80'),'$state','$location',_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0xb6b'),'toasty',_0x21d0f5('0x10ee'),_0x21d0f5('0x1790'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1'),_0x21d0f5('0xb25')];function _0x939b55(_0x202b67,_0x34fe01,_0x3f286c,_0x1837ed,_0x1cd96d,_0x1f412e,_0x11d4d6,_0x48b1ee,_0x42974b,_0x2560cf,_0x2fa69b,_0x24a07f,_0x4f8891,_0x599abc){const _0x5cd975=_0x21d0f5,_0x27189d=this;_0x27189d[_0x5cd975('0x32a')]=_0x2fa69b[_0x5cd975('0x2428')](),_0x27189d[_0x5cd975('0x120f')]=[],_0x27189d[_0x5cd975('0x23e1')]=_0x4f8891,_0x27189d['license']=_0x24a07f,_0x27189d['crudPermissions']=_0x599abc,_0x27189d['hasModulePermissions']={},_0x27189d[_0x5cd975('0x2834')]=_0x27189d['setting']&&_0x27189d[_0x5cd975('0x23e1')][_0x5cd975('0x1d4')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x27189d[_0x5cd975('0x134b')]=_0x5cd975('0x3b1'),_0x27189d['outboundroute']=angular[_0x5cd975('0x6fb')](_0x42974b),_0x27189d[_0x5cd975('0x10ee')]=_0x48b1ee,_0x27189d['newOutboundRoute']=![],_0x27189d['outboundrouteApps']={'count':0x0,'rows':[]},_0x27189d[_0x5cd975('0x1812')]=_0x36f548()[_0x5cd975('0x4a')](_0x36f548()[_0x5cd975('0xd39')]([{'app':_0x5cd975('0x1979'),'appType':'interval','type':_0x5cd975('0x1629'),'types':[_0x5cd975('0x27e5'),_0x5cd975('0xa8d'),'list'],'fields':[],'isApp':![]},{'app':_0x5cd975('0x29d'),'appType':_0x5cd975('0x1bf6'),'context':_0x5cd975('0x1fde'),'type':_0x5cd975('0x1629'),'icon':_0x5cd975('0x206d'),'interval':_0x5cd975('0x1830'),'options':'xX','isApp':!![],'extraApi':[{'name':_0x5cd975('0x1b24'),'route':_0x5cd975('0x264e'),'filters':{'fields':_0x5cd975('0x1909'),'sort':'name'}},{'name':_0x5cd975('0x2763'),'route':_0x5cd975('0x1d73'),'filters':{'fields':'name','sort':_0x5cd975('0x1909'),'nolimit':!![]}}],'fields':[{'title':_0x5cd975('0x10d'),'name':'trunk','type':'apiselect','values':_0x5cd975('0x1b24'),'value':_0x5cd975('0x1872'),'option':_0x5cd975('0x1872'),'required':!![],'param':0x0},{'title':'Caller_ID','name':_0x5cd975('0xc38'),'type':_0x5cd975('0x25ed'),'ngPattern':'/"(.*)"\x5cs<(.*?)>$/','help':!![]},{'title':_0x5cd975('0x26fc'),'name':_0x5cd975('0x2137'),'type':_0x5cd975('0x25ed')},{'title':_0x5cd975('0x806'),'name':_0x5cd975('0x1d73'),'type':_0x5cd975('0x108f'),'values':_0x5cd975('0x2763'),'value':_0x5cd975('0x6aa'),'option':_0x5cd975('0x6aa'),'defaultValues':[{'value':_0x5cd975('0x389'),'option':_0x5cd975('0x1a1a')}]},{'title':_0x5cd975('0x65'),'name':_0x5cd975('0xfbe'),'type':'number','min':0x0,'param':0x1},{'title':_0x5cd975('0x27fb'),'name':_0x5cd975('0x249a'),'type':'text','param':0x2},{'title':'Url','name':'url','type':'text','param':0x3}]},{'app':null,'type':_0x5cd975('0x1629'),'appType':_0x5cd975('0xa8d'),'icon':'icon-apps','interval':_0x5cd975('0x1830'),'isApp':!![],'fields':[{'title':_0x5cd975('0x1f01'),'name':_0x5cd975('0x18f5'),'type':_0x5cd975('0x25ed'),'required':!![],'param':0x0},{'title':_0x5cd975('0x55c'),'name':_0x5cd975('0x13fc'),'type':_0x5cd975('0x25ed'),'param':0x1}]}],[_0x5cd975('0x18f5')]),{'isApp':![]});!_0x27189d[_0x5cd975('0x1790')]&&(_0x27189d[_0x5cd975('0x1790')]={'appdata':_0x5cd975('0x80e'),'type':_0x5cd975('0x25b6'),'context':_0x5cd975('0x1fde'),'recordingFormat':_0x5cd975('0x3e6')},_0x27189d[_0x5cd975('0x134b')]=_0x5cd975('0x17f8'),_0x27189d['newOutboundRoute']=!![]);_0x27189d[_0x5cd975('0x7a6')]=_0x4b82ba,_0x27189d[_0x5cd975('0xfb7')]=_0x5afeb0,_0x27189d[_0x5cd975('0x124a')]=_0x12d26e,_0x27189d[_0x5cd975('0x1bd1')]=_0x197814,_0x27189d[_0x5cd975('0xf09')]=_0x258157,_0x27189d[_0x5cd975('0xc4e')]=_0x4d0873,_0x2fa69b['hasRole'](_0x5cd975('0xf45'))?_0x2560cf[_0x5cd975('0x1279')][_0x5cd975('0xbaa')]({'fields':_0x5cd975('0x721'),'sort':'name','nolimit':_0x5cd975('0x204c')})[_0x5cd975('0x1549')][_0x5cd975('0x11bf')](function(_0x388b50){const _0x1f4e4d=_0x5cd975;_0x27189d[_0x1f4e4d('0x803')]=_0x388b50['rows']||[];})[_0x5cd975('0x151d')](function(_0x58b1e1){const _0x37cbe0=_0x5cd975;_0x11d4d6['error']({'title':_0x58b1e1['status']?_0x37cbe0('0x574')+_0x58b1e1[_0x37cbe0('0xff9')]+_0x37cbe0('0xb0b')+_0x58b1e1['statusText']:_0x37cbe0('0x348'),'msg':_0x58b1e1[_0x37cbe0('0x4e8')]?JSON[_0x37cbe0('0x3e')](_0x58b1e1['data']):_0x58b1e1[_0x37cbe0('0xaab')]()});}):_0x2560cf[_0x5cd975('0x1279')]['get']({'fields':'id,name','sort':'name','nolimit':'true'})[_0x5cd975('0x1549')]['then'](function(_0x118f58){const _0x180b78=_0x5cd975;_0x27189d[_0x180b78('0x803')]=_0x118f58[_0x180b78('0x19b2')]||[];})[_0x5cd975('0x11bf')](function(){const _0x543dcc=_0x5cd975;return _0x2560cf[_0x543dcc('0x1d63')][_0x543dcc('0xbaa')]({'userProfileId':_0x27189d[_0x543dcc('0x32a')][_0x543dcc('0x781')],'sectionId':0x195})[_0x543dcc('0x1549')];})['then'](function(_0x3cfa05){const _0x1f040f=_0x5cd975,_0x5d1cbc=_0x3cfa05&&_0x3cfa05['rows']?_0x3cfa05['rows'][0x0]:null;if(!_0x5d1cbc)return _0x2560cf[_0x1f040f('0x1279')][_0x1f040f('0xbaa')]({'fields':_0x1f040f('0x721'),'sort':_0x1f040f('0x1909'),'nolimit':_0x1f040f('0x204c'),'defaultEntry':0x1})[_0x1f040f('0x1549')][_0x1f040f('0x11bf')](function(_0x525d39){const _0x4f3cb3=_0x1f040f;_0x27189d[_0x4f3cb3('0x803')]=_0x525d39[_0x4f3cb3('0x19b2')]||[];});else{if(!_0x5d1cbc[_0x1f040f('0xf11')])return _0x2560cf[_0x1f040f('0x26d1')][_0x1f040f('0xbaa')]({'sectionId':_0x5d1cbc['id']})['$promise'][_0x1f040f('0x11bf')](function(_0x1e3dc0){const _0x532aed=_0x1f040f,_0x279351=_0x36f548()[_0x532aed('0x2171')](_0x1e3dc0['rows'],function(_0x178fd5){const _0x198c5d=_0x532aed;return _0x36f548()[_0x198c5d('0x1ad4')](_0x27189d[_0x198c5d('0x803')],{'id':_0x178fd5[_0x198c5d('0x15a5')]});});let _0x384700=null;_0x27189d['outboundroute']&&(_0x384700=_0x36f548()['find'](_0x27189d[_0x532aed('0x803')],{'name':_0x27189d['outboundroute'][_0x532aed('0x1c87')]}));if(_0x384700&&!_0x36f548()[_0x532aed('0x1cb3')](_0x279351,['id',_0x384700['id']])){const _0x9e6a1b=_0x36f548()[_0x532aed('0x1ad4')](_0x27189d[_0x532aed('0x803')],{'id':_0x384700['id']});_0x9e6a1b[_0x532aed('0x254a')]=![],_0x279351[_0x532aed('0x105d')](_0x9e6a1b);}_0x27189d[_0x532aed('0x803')]=_0x279351;});}})[_0x5cd975('0x151d')](function(_0x59c9ba){const _0x17c16e=_0x5cd975;_0x11d4d6[_0x17c16e('0x255')]({'title':_0x59c9ba[_0x17c16e('0xff9')]?_0x17c16e('0x574')+_0x59c9ba['status']+_0x17c16e('0xb0b')+_0x59c9ba['statusText']:_0x17c16e('0x1280'),'msg':_0x59c9ba['data']?JSON[_0x17c16e('0x3e')](_0x59c9ba[_0x17c16e('0x4e8')]):_0x59c9ba['toString']()});});function _0x4b82ba(){const _0x203502=_0x5cd975;_0x27189d[_0x203502('0x120f')]=[],_0x2560cf[_0x203502('0x417')][_0x203502('0x259')](_0x27189d[_0x203502('0x1790')])[_0x203502('0x1549')]['then'](function(_0x44e529){const _0x20644c=_0x203502;_0x27189d[_0x20644c('0x10ee')][_0x20644c('0x880')](_0x44e529[_0x20644c('0x2866')]()),_0x11d4d6[_0x20644c('0x2693')]({'title':_0x20644c('0x1420'),'msg':_0x27189d[_0x20644c('0x1790')][_0x20644c('0x1909')]?_0x27189d[_0x20644c('0x1790')][_0x20644c('0x1909')]+_0x20644c('0x7fb'):''}),_0x4d0873(_0x44e529);})[_0x203502('0x151d')](function(_0x9b4e15){const _0xb2450a=_0x203502;if(_0x9b4e15[_0xb2450a('0x4e8')]&&_0x9b4e15[_0xb2450a('0x4e8')][_0xb2450a('0x120f')]&&_0x9b4e15[_0xb2450a('0x4e8')][_0xb2450a('0x120f')][_0xb2450a('0x1e22')]){_0x27189d[_0xb2450a('0x120f')]=_0x9b4e15[_0xb2450a('0x4e8')]['errors']||[{'message':_0x9b4e15[_0xb2450a('0xaab')](),'type':'api.voiceExtension.save'}];for(let _0x187d4e=0x0;_0x187d4e<_0x9b4e15[_0xb2450a('0x4e8')]['errors'][_0xb2450a('0x1e22')];_0x187d4e+=0x1){_0x11d4d6['error']({'title':_0x9b4e15[_0xb2450a('0x4e8')][_0xb2450a('0x120f')][_0x187d4e]['type'],'msg':_0x9b4e15[_0xb2450a('0x4e8')]['errors'][_0x187d4e][_0xb2450a('0x1b86')]});}}else _0x11d4d6[_0xb2450a('0x255')]({'title':_0x9b4e15[_0xb2450a('0xff9')]?_0xb2450a('0x574')+_0x9b4e15['status']+_0xb2450a('0xb0b')+_0x9b4e15[_0xb2450a('0x212f')]:_0xb2450a('0x1c62'),'msg':_0x9b4e15[_0xb2450a('0x4e8')]?JSON[_0xb2450a('0x3e')](_0x9b4e15[_0xb2450a('0x4e8')][_0xb2450a('0x1b86')]):_0x9b4e15['toString']()});});}function _0x5afeb0(){const _0xe4e72a=_0x5cd975;_0x27189d[_0xe4e72a('0x120f')]=[],_0x2560cf[_0xe4e72a('0x417')][_0xe4e72a('0x5ab')]({'id':_0x27189d[_0xe4e72a('0x1790')]['id']},_0x27189d[_0xe4e72a('0x1790')])['$promise']['then'](function(_0x1a6622){const _0x6d59cb=_0xe4e72a,_0x1dfe23=_0x36f548()['find'](_0x27189d[_0x6d59cb('0x10ee')],{'id':_0x1a6622['id']});_0x1dfe23&&(_0x36f548()[_0x6d59cb('0x47b')](_0x1dfe23,_0x36f548()[_0x6d59cb('0x258')](_0x1a6622[_0x6d59cb('0x2866')](),_0x36f548()[_0x6d59cb('0xe22')](_0x1dfe23))),_0x2560cf[_0x6d59cb('0x417')][_0x6d59cb('0xbaa')]({'sort':_0x6d59cb('0x2804'),'VoiceExtensionId':_0x1dfe23['id'],'isApp':!![],'nolimit':!![]})[_0x6d59cb('0x1549')][_0x6d59cb('0x11bf')](function(_0x39f560){const _0x15b780=_0x6d59cb;_0x27189d[_0x15b780('0x1dbd')]=_0x39f560,_0x258157();})),_0x11d4d6[_0x6d59cb('0x2693')]({'title':'OutboundRoute\x20properly\x20saved!','msg':_0x27189d[_0x6d59cb('0x1790')][_0x6d59cb('0x1909')]?_0x27189d[_0x6d59cb('0x1790')][_0x6d59cb('0x1909')]+_0x6d59cb('0x1a78'):''}),_0x4d0873(_0x1a6622);})[_0xe4e72a('0x151d')](function(_0x2d8f42){const _0x10bdd0=_0xe4e72a;if(_0x2d8f42['data']&&_0x2d8f42['data'][_0x10bdd0('0x120f')]&&_0x2d8f42[_0x10bdd0('0x4e8')]['errors'][_0x10bdd0('0x1e22')]){_0x27189d[_0x10bdd0('0x120f')]=_0x2d8f42[_0x10bdd0('0x4e8')]['errors']||[{'message':_0x2d8f42[_0x10bdd0('0xaab')](),'type':_0x10bdd0('0x25a0')}];for(let _0x21c6fe=0x0;_0x21c6fe<_0x2d8f42[_0x10bdd0('0x4e8')][_0x10bdd0('0x120f')]['length'];_0x21c6fe++){_0x11d4d6[_0x10bdd0('0x255')]({'title':_0x2d8f42['data'][_0x10bdd0('0x120f')][_0x21c6fe][_0x10bdd0('0x19fd')],'msg':_0x2d8f42[_0x10bdd0('0x4e8')][_0x10bdd0('0x120f')][_0x21c6fe][_0x10bdd0('0x1b86')]});}}else _0x11d4d6['error']({'title':_0x2d8f42[_0x10bdd0('0xff9')]?_0x10bdd0('0x574')+_0x2d8f42[_0x10bdd0('0xff9')]+_0x10bdd0('0xb0b')+_0x2d8f42[_0x10bdd0('0x212f')]:_0x10bdd0('0x25a0'),'msg':_0x2d8f42['data']?JSON[_0x10bdd0('0x3e')](_0x2d8f42[_0x10bdd0('0x4e8')][_0x10bdd0('0x1b86')]):_0x2d8f42[_0x10bdd0('0xaab')]()});});}function _0x12d26e(_0xaf9cf3){const _0x11b392=_0x5cd975;_0x2560cf['voicePrefix'][_0x11b392('0xbaa')]({'VoiceExtensionId':_0x42974b['id']})[_0x11b392('0x1549')][_0x11b392('0x11bf')](function(_0x4f8794){const _0x448553=_0x11b392;if(_0x4f8794&&_0x4f8794[_0x448553('0x19b2')]&&_0x4f8794[_0x448553('0x19b2')][_0x448553('0x1e22')]>0x0)return _0x11d4d6[_0x448553('0x255')]({'title':_0x448553('0x1fdc'),'msg':'You\x20can\x27t\x20remove\x20an\x20outbound\x20route\x20associated\x20to\x20an\x20out\x20prefix'});else{_0x27189d[_0x448553('0x120f')]=[];const _0x5998ed=_0x1837ed[_0x448553('0x132b')]()['title'](_0x448553('0x1fa9'))[_0x448553('0x252a')](_0x448553('0x129f'))[_0x448553('0xb2e')](_0x448553('0xb9d'))['ok']('Delete')['cancel'](_0x448553('0x784'))['targetEvent'](_0xaf9cf3);_0x1837ed[_0x448553('0xb9')](_0x5998ed)['then'](function(){const _0x15fa6b=_0x448553;_0x2560cf[_0x15fa6b('0x417')][_0x15fa6b('0x2088')]({'id':_0x27189d[_0x15fa6b('0x1790')]['id']})[_0x15fa6b('0x1549')][_0x15fa6b('0x11bf')](function(){const _0x463388=_0x15fa6b;_0x36f548()[_0x463388('0x14a5')](_0x27189d['outboundroutes'],{'id':_0x27189d[_0x463388('0x1790')]['id']}),_0x11d4d6[_0x463388('0x2693')]({'title':_0x463388('0x7a7'),'msg':(_0x27189d['outboundroute'][_0x463388('0x1909')]||_0x463388('0x1790'))+_0x463388('0x433')}),_0x4d0873(_0x27189d[_0x463388('0x1790')]);})[_0x15fa6b('0x151d')](function(_0x141310){const _0xfc9d69=_0x15fa6b;if(_0x141310[_0xfc9d69('0x4e8')]&&_0x141310[_0xfc9d69('0x4e8')][_0xfc9d69('0x120f')]&&_0x141310[_0xfc9d69('0x4e8')][_0xfc9d69('0x120f')][_0xfc9d69('0x1e22')]){_0x27189d[_0xfc9d69('0x120f')]=_0x141310['data'][_0xfc9d69('0x120f')]||[{'message':_0x141310[_0xfc9d69('0xaab')](),'type':_0xfc9d69('0x2798')}];for(let _0x15a4c4=0x0;_0x15a4c4<_0x141310[_0xfc9d69('0x4e8')]['errors'][_0xfc9d69('0x1e22')];_0x15a4c4++){_0x11d4d6[_0xfc9d69('0x255')]({'title':_0x141310['data'][_0xfc9d69('0x120f')][_0x15a4c4][_0xfc9d69('0x19fd')],'msg':_0x141310[_0xfc9d69('0x4e8')]['errors'][_0x15a4c4][_0xfc9d69('0x1b86')]});}}else _0x11d4d6[_0xfc9d69('0x255')]({'title':_0x141310[_0xfc9d69('0xff9')]?'API:'+_0x141310['status']+'\x20-\x20'+_0x141310[_0xfc9d69('0x212f')]:'api.voiceExtension.delete','msg':_0x141310[_0xfc9d69('0x4e8')]?JSON['stringify'](_0x141310[_0xfc9d69('0x4e8')]['message']):_0x141310[_0xfc9d69('0x1b86')]||_0x141310[_0xfc9d69('0xaab')]()});});},function(){});}});}function _0x258157(){const _0x47ae2c=_0x5cd975;let _0x1b4ab0=0x2,_0x8dc9b9=[];_0x8dc9b9[_0x47ae2c('0x105d')]({'type':_0x47ae2c('0x25b6'),'app':_0x47ae2c('0x25a8'),'appdata':'CDR(type)=outbound','context':_0x27189d['outboundroute'][_0x47ae2c('0x1c87')],'exten':_0x27189d[_0x47ae2c('0x1790')]['exten'],'priority':_0x1b4ab0++,'VoiceExtensionId':_0x27189d[_0x47ae2c('0x1790')]['id']}),_0x8dc9b9[_0x47ae2c('0x105d')]({'type':'outbound','app':_0x47ae2c('0x25a8'),'appdata':_0x47ae2c('0x1de0')+(_0x27189d['outboundroute'][_0x47ae2c('0x388')]?'${EXTEN:'+_0x27189d['outboundroute'][_0x47ae2c('0x388')]+'}':_0x47ae2c('0x1f76')),'context':_0x27189d[_0x47ae2c('0x1790')][_0x47ae2c('0x1c87')],'exten':_0x27189d[_0x47ae2c('0x1790')][_0x47ae2c('0x4c6')],'priority':_0x1b4ab0++,'VoiceExtensionId':_0x27189d['outboundroute']['id']}),_0x8dc9b9[_0x47ae2c('0x105d')]({'type':_0x47ae2c('0x25b6'),'app':_0x47ae2c('0x25a8'),'appdata':_0x47ae2c('0x1a75'),'context':_0x27189d[_0x47ae2c('0x1790')][_0x47ae2c('0x1c87')],'exten':_0x27189d[_0x47ae2c('0x1790')]['exten'],'priority':_0x1b4ab0++,'VoiceExtensionId':_0x27189d[_0x47ae2c('0x1790')]['id']}),_0x8dc9b9[_0x47ae2c('0x105d')]({'type':_0x47ae2c('0x25b6'),'app':'Set','appdata':_0x47ae2c('0x8e9'),'context':_0x27189d[_0x47ae2c('0x1790')][_0x47ae2c('0x1c87')],'exten':_0x27189d[_0x47ae2c('0x1790')][_0x47ae2c('0x4c6')],'priority':_0x1b4ab0++,'VoiceExtensionId':_0x27189d[_0x47ae2c('0x1790')]['id']}),_0x8dc9b9[_0x47ae2c('0x105d')]({'type':'outbound','app':_0x47ae2c('0x25a8'),'appdata':_0x47ae2c('0x2078'),'context':_0x27189d[_0x47ae2c('0x1790')][_0x47ae2c('0x1c87')],'exten':_0x27189d[_0x47ae2c('0x1790')][_0x47ae2c('0x4c6')],'priority':_0x1b4ab0++,'VoiceExtensionId':_0x27189d[_0x47ae2c('0x1790')]['id']}),_0x8dc9b9[_0x47ae2c('0x105d')]({'type':_0x47ae2c('0x25b6'),'app':_0x47ae2c('0x25a8'),'appdata':_0x47ae2c('0x451')+_0x27189d[_0x47ae2c('0x1790')]['id'],'context':_0x27189d[_0x47ae2c('0x1790')][_0x47ae2c('0x1c87')],'exten':_0x27189d[_0x47ae2c('0x1790')]['exten'],'priority':_0x1b4ab0++,'VoiceExtensionId':_0x27189d[_0x47ae2c('0x1790')]['id']});typeof _0x27189d[_0x47ae2c('0x1790')][_0x47ae2c('0x897')]!=='undefined'&&_0x27189d['outboundroute'][_0x47ae2c('0x897')]!==_0x47ae2c('0x3e6')&&(_0x8dc9b9[_0x47ae2c('0x105d')]({'type':_0x47ae2c('0x25b6'),'app':_0x47ae2c('0x25a8'),'appdata':'_XCALLY_MIXMONITOR_UNIQUEID=${UNIQUEID}','context':_0x27189d['outboundroute'][_0x47ae2c('0x1c87')],'exten':_0x27189d[_0x47ae2c('0x1790')][_0x47ae2c('0x4c6')],'priority':_0x1b4ab0++,'VoiceExtensionId':_0x27189d['outboundroute']['id']}),_0x8dc9b9[_0x47ae2c('0x105d')]({'type':_0x47ae2c('0x25b6'),'app':_0x47ae2c('0x25a8'),'appdata':_0x47ae2c('0x23f9')+_0x27189d[_0x47ae2c('0x1790')][_0x47ae2c('0x897')]||0x0,'context':_0x27189d[_0x47ae2c('0x1790')]['context'],'exten':_0x27189d[_0x47ae2c('0x1790')][_0x47ae2c('0x4c6')],'priority':_0x1b4ab0++,'VoiceExtensionId':_0x27189d[_0x47ae2c('0x1790')]['id']}));for(let _0x48b69d=0x0,_0x4df2be=0x0;_0x48b69d<_0x27189d[_0x47ae2c('0x1dbd')][_0x47ae2c('0x19b2')][_0x47ae2c('0x1e22')];_0x48b69d++,_0x4df2be=0x0){const _0x47fc54=_0x27189d[_0x47ae2c('0x1dbd')][_0x47ae2c('0x19b2')][_0x48b69d],_0x6ec072=[],_0x5df793=[];_0x47fc54[_0x47ae2c('0xe82')]=_0x47fc54[_0x47ae2c('0x507')]!==_0x47ae2c('0x1830')?[_0x47fc54[_0x47ae2c('0x507')]]:_0x47fc54[_0x47ae2c('0x6b4')]?_0x36f548()[_0x47ae2c('0x2171')](_0x36f548()[_0x47ae2c('0xdb4')](_0x27189d[_0x47ae2c('0xe82')][_0x47ae2c('0x19b2')],{'IntervalId':_0x47fc54[_0x47ae2c('0x6b4')]}),_0x47ae2c('0x507')):[],_0x47fc54[_0x47ae2c('0x1c87')]=_0x27189d[_0x47ae2c('0x1790')][_0x47ae2c('0x1c87')],_0x47fc54[_0x47ae2c('0x4c6')]=_0x27189d[_0x47ae2c('0x1790')][_0x47ae2c('0x4c6')];_0x47fc54[_0x47ae2c('0x19fd')]&&(_0x47fc54['type']=_0x47fc54[_0x47ae2c('0x19fd')][_0x47ae2c('0x20d5')]());typeof _0x47fc54['tag']!==_0x47ae2c('0x13e9')&&(_0x47fc54[_0x47ae2c('0x1d73')]&&_0x47fc54[_0x47ae2c('0x1d73')]!=='--'&&_0x6ec072['push']({'type':_0x47fc54[_0x47ae2c('0x19fd')][_0x47ae2c('0x20d5')](),'app':'Set','appdata':_0x47ae2c('0x50c')+_0x47fc54[_0x47ae2c('0x1d73')],'context':_0x27189d['outboundroute'][_0x47ae2c('0x1c87')],'exten':_0x27189d[_0x47ae2c('0x1790')][_0x47ae2c('0x4c6')],'priority':_0x47fc54[_0x47ae2c('0xe82')][_0x47ae2c('0x1e22')]+_0x1b4ab0+_0x4df2be++,'VoiceExtensionId':_0x27189d[_0x47ae2c('0x1790')]['id']}));_0x47fc54['callerID']?_0x6ec072['push']({'type':_0x47fc54[_0x47ae2c('0x19fd')][_0x47ae2c('0x20d5')](),'app':_0x47ae2c('0x1d0f'),'appdata':_0x47ae2c('0x1f80')+_0x47fc54[_0x47ae2c('0xc38')]+')','context':_0x27189d[_0x47ae2c('0x1790')]['context'],'exten':_0x27189d[_0x47ae2c('0x1790')][_0x47ae2c('0x4c6')],'priority':_0x47fc54[_0x47ae2c('0xe82')][_0x47ae2c('0x1e22')]+_0x1b4ab0+_0x4df2be++,'VoiceExtensionId':_0x27189d[_0x47ae2c('0x1790')]['id']}):_0x6ec072[_0x47ae2c('0x105d')]({'type':_0x47fc54[_0x47ae2c('0x19fd')][_0x47ae2c('0x20d5')](),'app':_0x47ae2c('0x1d0f'),'appdata':_0x47ae2c('0x125f'),'context':_0x27189d[_0x47ae2c('0x1790')][_0x47ae2c('0x1c87')],'exten':_0x27189d[_0x47ae2c('0x1790')][_0x47ae2c('0x4c6')],'priority':_0x47fc54['intervals'][_0x47ae2c('0x1e22')]+_0x1b4ab0+_0x4df2be++,'VoiceExtensionId':_0x27189d[_0x47ae2c('0x1790')]['id']});for(let _0x312fdd=0x0;_0x312fdd<_0x47fc54[_0x47ae2c('0xe82')]['length'];_0x312fdd++){const _0xd0e0bd=_0x1b4ab0+_0x47fc54['intervals'][_0x47ae2c('0x1e22')],_0x139e60=_0x312fdd===_0x47fc54[_0x47ae2c('0xe82')][_0x47ae2c('0x1e22')]-0x1?_0x1b4ab0+_0x6ec072['length']+_0x5df793[_0x47ae2c('0x1e22')]+0x2:_0x1b4ab0+_0x312fdd+0x1;_0x6ec072[_0x47ae2c('0x1ae')](_0x312fdd,0x0,{'type':_0x47ae2c('0x25b6'),'app':_0x47ae2c('0x1e9c'),'appdata':_0x47fc54['intervals'][_0x312fdd]+'?'+_0x27189d[_0x47ae2c('0x1790')]['context']+_0x47ae2c('0x335')+_0xd0e0bd+':'+_0x27189d['outboundroute'][_0x47ae2c('0x1c87')]+',${EXTEN},'+_0x139e60,'exten':_0x27189d['outboundroute'][_0x47ae2c('0x4c6')],'context':_0x27189d[_0x47ae2c('0x1790')]['context'],'priority':_0x1b4ab0+_0x312fdd,'VoiceExtensionId':_0x27189d[_0x47ae2c('0x1790')]['id']});}if(_0x47fc54[_0x47ae2c('0x27c0')]===_0x47ae2c('0x1bf6')){const _0x2c517c=_0x36f548()[_0x47ae2c('0x1ad4')](_0x27189d[_0x47ae2c('0x1812')],{'appType':'outboundDial'});if(_0x2c517c&&_0x2c517c[_0x47ae2c('0x1067')]){const _0x225323={},_0x2897a9=_0x47fc54['appdata'][_0x47ae2c('0xaf8')](','),_0x35ac2b=[];for(let _0x284eeb=0x0,_0x25e9d9=_0x2c517c['fields'][_0x47ae2c('0x1e22')];_0x284eeb<_0x25e9d9;_0x284eeb++){if(typeof _0x2c517c[_0x47ae2c('0x1067')][_0x284eeb]['param']!=='undefined')switch(_0x2c517c[_0x47ae2c('0x1067')][_0x284eeb][_0x47ae2c('0x1909')]){case'trunk':_0x225323[_0x47ae2c('0x264e')]=_0x2897a9[_0x2c517c[_0x47ae2c('0x1067')][_0x284eeb][_0x47ae2c('0xe58')]][_0x47ae2c('0xaf8')]('/')[0x1],_0x225323[_0x47ae2c('0x1546')]=_0x2897a9[_0x2c517c[_0x47ae2c('0x1067')][_0x284eeb][_0x47ae2c('0xe58')]][_0x47ae2c('0xaf8')]('/')[0x2],_0x225323[_0x47ae2c('0x2137')]=_0x225323[_0x47ae2c('0x1546')]?_0x225323[_0x47ae2c('0x1546')][_0x47ae2c('0xaf8')]('$')[0x0]:undefined,_0x225323['phone']=_0x27189d[_0x47ae2c('0x1790')][_0x47ae2c('0x388')]?(_0x225323[_0x47ae2c('0x2137')]||'')+_0x47ae2c('0x2100')+_0x27189d[_0x47ae2c('0x1790')]['cutdigits']+'}':(_0x225323[_0x47ae2c('0x2137')]||'')+'${EXTEN}',_0x35ac2b[_0x2c517c[_0x47ae2c('0x1067')][_0x284eeb]['param']]=[_0x47ae2c('0xd74'),_0x225323[_0x47ae2c('0x264e')],_0x225323[_0x47ae2c('0x1546')]][_0x47ae2c('0xa04')]('/');break;case _0x47ae2c('0x249a'):_0x225323[_0x47ae2c('0x249a')]=_0x2897a9[_0x2c517c[_0x47ae2c('0x1067')][_0x284eeb][_0x47ae2c('0xe58')]];_0x27189d[_0x47ae2c('0x1790')]['recordingFormat']!==_0x47ae2c('0x3e6')?_0x225323[_0x47ae2c('0x249a')][_0x47ae2c('0x203c')]('U(xcally-mixmonitor-context)')<0x0&&(_0x225323['options']+=_0x47ae2c('0x22c9')):_0x225323['options']=_0x225323[_0x47ae2c('0x249a')][_0x47ae2c('0x814')](_0x47ae2c('0x22c9'),'');_0x35ac2b[_0x2c517c[_0x47ae2c('0x1067')][_0x284eeb][_0x47ae2c('0xe58')]]=_0x225323[_0x47ae2c('0x249a')];break;default:_0x35ac2b[_0x2c517c[_0x47ae2c('0x1067')][_0x284eeb]['param']]=_0x2897a9[_0x2c517c[_0x47ae2c('0x1067')][_0x284eeb][_0x47ae2c('0xe58')]];}}_0x47fc54[_0x47ae2c('0x13fc')]=_0x35ac2b[_0x47ae2c('0xa04')](',');}}_0x47fc54[_0x47ae2c('0x2804')]=_0x6ec072['length']?_0x36f548()[_0x47ae2c('0x1093')](_0x6ec072)[_0x47ae2c('0x2804')]+0x1:_0x1b4ab0,_0x1b4ab0=(_0x5df793[_0x47ae2c('0x1e22')]?_0x36f548()['last'](_0x5df793)[_0x47ae2c('0x2804')]:_0x47fc54[_0x47ae2c('0x2804')])+0x1,_0x8dc9b9=_0x36f548()[_0x47ae2c('0x20bf')](_0x8dc9b9,_0x6ec072,[_0x47fc54],_0x5df793);}_0x8dc9b9[_0x47ae2c('0x105d')]({'type':_0x47ae2c('0x25b6'),'app':_0x47ae2c('0x1b9e'),'exten':_0x27189d[_0x47ae2c('0x1790')][_0x47ae2c('0x4c6')],'context':_0x27189d[_0x47ae2c('0x1790')][_0x47ae2c('0x1c87')],'priority':_0x1b4ab0,'VoiceExtensionId':_0x27189d[_0x47ae2c('0x1790')]['id']}),_0x2560cf[_0x47ae2c('0x417')][_0x47ae2c('0x25ec')]({'id':_0x27189d[_0x47ae2c('0x1790')]['id']},_0x36f548()[_0x47ae2c('0xd39')](_0x8dc9b9,_0x47ae2c('0x2804')))['$promise'][_0x47ae2c('0x11bf')](function(_0x3c2071){_0x27189d['outboundrouteApps']['rows']=_0x3c2071['rows'];})[_0x47ae2c('0x151d')](function(_0x8b4720){const _0xfc2bc8=_0x47ae2c;console[_0xfc2bc8('0x255')](_0x8b4720);});}function _0x197814(_0x2d7c34){return _0x2d7c34===null?undefined:new Date(_0x2d7c34);}function _0x4d0873(_0x13b25e){_0x1837ed['hide'](_0x13b25e);}}const _0x5f713c=_0x939b55,_0x3af475=_0x351988['p']+'src/js/modules/main/apps/voice/views/outboundroutes/edit/apps/custom/dialog.html/dialog.html',_0xf7def9=_0x351988['p']+_0x21d0f5('0x1a9a'),_0x1b3d25=_0x351988['p']+_0x21d0f5('0x128d');_0x57ea51[_0x21d0f5('0x1e9a')]=['api',_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),_0x21d0f5('0x142d'),_0x21d0f5('0x1d56'),_0x21d0f5('0x1b80'),'Auth'];const _0x57c0c1={'custom':_0x3af475,'interval':_0xf7def9,'outbounddial':_0x1b3d25};function _0x57ea51(_0x5b86f2,_0x806152,_0x1ed832,_0x1ad445,_0x49abf8,_0x84d915,_0x2a65ee){const _0x3d4ef3=_0x21d0f5,_0x1b0549=this;_0x1b0549[_0x3d4ef3('0x32a')]=_0x2a65ee[_0x3d4ef3('0x2428')](),_0x1b0549['outboundroute']={},_0x1b0549[_0x3d4ef3('0x1dbd')]={'count':0x0,'rows':[]},_0x1b0549[_0x3d4ef3('0x1762')]=[],_0x1b0549[_0x3d4ef3('0xb25')],_0x1b0549[_0x3d4ef3('0x1f2a')]={'sort':_0x3d4ef3('0x2804')},_0x1b0549['apps']=_0x36f548()[_0x3d4ef3('0x4a')](_0x36f548()[_0x3d4ef3('0xd39')]([{'app':_0x3d4ef3('0x1979'),'appType':_0x3d4ef3('0x507'),'type':'Outbound','types':['always',_0x3d4ef3('0xa8d'),_0x3d4ef3('0x257d')],'fields':[],'isApp':![]},{'app':'Dial','appType':'outboundDial','context':_0x3d4ef3('0x1fde'),'type':_0x3d4ef3('0x1629'),'icon':_0x3d4ef3('0x206d'),'interval':_0x3d4ef3('0x1830'),'options':'xX','isApp':!![],'extraApi':[{'name':_0x3d4ef3('0x1b24'),'field':{'name':_0x3d4ef3('0x264e'),'key':'name'},'route':'trunk','filters':{'fields':_0x3d4ef3('0x721'),'sort':_0x3d4ef3('0x1909'),'nolimit':!![]},'permissions':{'section':0x3f3}},{'name':_0x3d4ef3('0x2763'),'field':{'name':'tag','key':_0x3d4ef3('0x1909')},'route':_0x3d4ef3('0x1d73'),'filters':{'fields':_0x3d4ef3('0x721'),'sort':_0x3d4ef3('0x1909'),'nolimit':!![]},'permissions':{'section':0x3f0}}],'fields':[{'title':_0x3d4ef3('0x10d'),'name':_0x3d4ef3('0x264e'),'type':_0x3d4ef3('0x108f'),'values':_0x3d4ef3('0x1b24'),'value':'trunk.name','option':_0x3d4ef3('0x1872'),'required':!![],'param':0x0},{'title':_0x3d4ef3('0x10cd'),'name':_0x3d4ef3('0xc38'),'type':_0x3d4ef3('0x25ed'),'help':!![]},{'title':_0x3d4ef3('0x26fc'),'name':_0x3d4ef3('0x2137'),'type':_0x3d4ef3('0x25ed')},{'title':'Tags','name':_0x3d4ef3('0x1d73'),'type':_0x3d4ef3('0x108f'),'values':'tags','value':_0x3d4ef3('0x6aa'),'option':_0x3d4ef3('0x6aa'),'defaultValues':[{'value':_0x3d4ef3('0x389'),'option':_0x3d4ef3('0x1a1a')}]},{'title':_0x3d4ef3('0x65'),'name':_0x3d4ef3('0xfbe'),'type':'number','min':0x0,'param':0x1},{'title':_0x3d4ef3('0x27fb'),'name':_0x3d4ef3('0x249a'),'type':'text','param':0x2},{'title':_0x3d4ef3('0x2040'),'name':_0x3d4ef3('0x259e'),'type':_0x3d4ef3('0x25ed'),'param':0x3}]},{'app':null,'type':'Outbound','appType':_0x3d4ef3('0xa8d'),'icon':_0x3d4ef3('0x206d'),'interval':_0x3d4ef3('0x1830'),'isApp':!![],'fields':[{'title':_0x3d4ef3('0x1f01'),'name':_0x3d4ef3('0x18f5'),'type':_0x3d4ef3('0x25ed'),'required':!![],'param':0x0},{'title':_0x3d4ef3('0x55c'),'name':'appdata','type':_0x3d4ef3('0x25ed'),'param':0x1}]}],[_0x3d4ef3('0x18f5')]),{'isApp':![]}),_0x1b0549[_0x3d4ef3('0x257d')]={'group':{'name':'opt1','pull':_0x3d4ef3('0x208b')},'animation':0x64,'sort':![]},_0x1b0549[_0x3d4ef3('0xb9b')]={'group':{'name':_0x3d4ef3('0x16f9'),'put':_0x3d4ef3('0x1525')},'animation':0x64,'onAdd':function(_0x4fd618){_0x476d8b(_0x4fd618,_0x4fd618['newIndex']);},'onSort':function(){_0x5ca439();}},_0x1b0549['init']=_0x294832,_0x1b0549['deleteConfirm']=_0x495a57,_0x1b0549[_0x3d4ef3('0x2592')]=_0x4611f5,_0x1b0549['editOutboundRouteApp']=_0x476d8b,_0x1b0549[_0x3d4ef3('0x1452')]=_0x59497c,_0x1b0549[_0x3d4ef3('0x17b1')]=_0x487179,_0x1b0549[_0x3d4ef3('0x2368')]=_0x388f88,_0x1b0549['rewriteRouting']=_0x5ca439,_0x1b0549[_0x3d4ef3('0x431')]=_0x46c262,_0x1b0549[_0x3d4ef3('0x2387')]=_0x2cc89c;function _0x294832(_0x3d2d8a,_0x106feb){const _0xde4b2c=_0x3d4ef3;_0x1b0549[_0xde4b2c('0x1790')]=_0x3d2d8a,_0x1b0549[_0xde4b2c('0xb25')]=typeof _0x106feb!==_0xde4b2c('0x13e9')?_0x106feb:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x1b0549['applications'][_0xde4b2c('0xa4b')]=!_0x1b0549['crudPermissions']['canEdit']?!![]:![],_0x49abf8['on']('voiceExtension:update',_0x1b0549[_0xde4b2c('0x2387')]),_0x1b0549[_0xde4b2c('0x1f2a')][_0xde4b2c('0x219d')]=_0x3d2d8a['id'],_0x1b0549[_0xde4b2c('0x1f2a')][_0xde4b2c('0x1210')]=!![],_0x1b0549[_0xde4b2c('0x1f2a')][_0xde4b2c('0x287')]=!![],_0x1b0549[_0xde4b2c('0x2592')](),_0x1b0549[_0xde4b2c('0x431')]();}function _0x2cc89c(_0x36bdbf){const _0x4cd052=_0x3d4ef3;_0x36bdbf[_0x4cd052('0x219d')]===_0x1b0549['outboundroute']['id']&&_0x5ca439(!![]);}function _0x495a57(_0x4aab16,_0x55e7e9,_0x3a9cd1){const _0xc8c21e=_0x3d4ef3,_0x80b231=_0x806152['confirm']()[_0xc8c21e('0x134b')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20application?')[_0xc8c21e('0x1d03')](_0xc8c21e('0x2061')+_0x4aab16[_0xc8c21e('0x18f5')]+_0xc8c21e('0x1c78')+_0xc8c21e('0x1a'))[_0xc8c21e('0xb2e')](_0xc8c21e('0x177'))['targetEvent'](_0x3a9cd1)['ok']('OK')[_0xc8c21e('0x26c9')](_0xc8c21e('0x772'));_0x806152[_0xc8c21e('0xb9')](_0x80b231)[_0xc8c21e('0x11bf')](function(){const _0xca4fcf=_0xc8c21e;_0x1b0549[_0xca4fcf('0x1dbd')][_0xca4fcf('0x19b2')][_0xca4fcf('0x1ae')](_0x55e7e9,0x1),_0x5ca439();},function(){const _0x5cb73a=_0xc8c21e;console[_0x5cb73a('0xc78')]('CANCEL');});}function _0x476d8b(_0x537ca5,_0x78b897){const _0xd4d627=_0x3d4ef3;if(_0x1b0549[_0xd4d627('0x1dbd')][_0xd4d627('0x19b2')][_0xd4d627('0x1e22')]){const _0x4b51e5=_0x1b0549[_0xd4d627('0x1dbd')][_0xd4d627('0x19b2')][_0x78b897]?_0x1b0549[_0xd4d627('0x1dbd')][_0xd4d627('0x19b2')][_0x78b897]:_0x1b0549[_0xd4d627('0x1dbd')][_0xd4d627('0x19b2')][0x0],_0x56026e=(_0x4b51e5[_0xd4d627('0x27c0')]||_0x4b51e5['app'])['toLowerCase']();_0x806152[_0xd4d627('0xb9')]({'controller':_0xd4d627('0x66f')+_0x56026e+'DialogController','controllerAs':'vm','templateUrl':_0x57c0c1[_0x56026e],'parent':angular[_0xd4d627('0x1e73')](_0x1ed832['body']),'targetEvent':_0x537ca5,'clickOutsideToClose':!![],'locals':{'outboundrouteApp':_0x4b51e5,'outboundroute':_0x1b0549[_0xd4d627('0x1790')],'crudPermissions':_0x1b0549['crudPermissions']}})[_0xd4d627('0x11bf')](function(_0x4e5388){const _0x6c7c24=_0xd4d627;_0x4e5388&&(_0x4e5388['id']?_0x1b0549['outboundrouteApps'][_0x6c7c24('0x19b2')][_0x78b897]=_0x4e5388:_0x1b0549['outboundrouteApps'][_0x6c7c24('0x19b2')][_0x6c7c24('0x1ae')](_0x78b897,0x0,_0x4e5388),_0x5ca439());})[_0xd4d627('0x151d')](function(_0x75da7c){const _0x37d7f8=_0xd4d627;_0x75da7c&&_0x1ad445[_0x37d7f8('0x255')]({'title':_0x75da7c[_0x37d7f8('0xff9')]?_0x37d7f8('0x574')+_0x75da7c[_0x37d7f8('0xff9')]+_0x37d7f8('0xb0b')+_0x75da7c[_0x37d7f8('0x212f')]:_0x37d7f8('0x154c'),'msg':_0x75da7c[_0x37d7f8('0x4e8')]?JSON[_0x37d7f8('0x3e')](_0x75da7c[_0x37d7f8('0x4e8')]):_0x75da7c[_0x37d7f8('0xaab')]()});});}}function _0x59497c(_0x49315f,_0x2af167){const _0x43b0c9=_0x3d4ef3;if(_0x1b0549['outboundrouteApps'][_0x43b0c9('0x19b2')][_0x43b0c9('0x1e22')]){const _0x446082=_0x1b0549[_0x43b0c9('0x1dbd')][_0x43b0c9('0x19b2')][_0x2af167]?_0x1b0549[_0x43b0c9('0x1dbd')][_0x43b0c9('0x19b2')][_0x2af167]:_0x1b0549[_0x43b0c9('0x1dbd')][_0x43b0c9('0x19b2')][0x0];_0x806152[_0x43b0c9('0xb9')]({'controller':_0x43b0c9('0x1ad0'),'controllerAs':'vm','templateUrl':_0xf7def9,'parent':angular['element'](_0x1ed832['body']),'targetEvent':_0x49315f,'clickOutsideToClose':!![],'locals':{'interval':{'interval':_0x446082['interval'],'IntervalId':_0x446082['IntervalId'],'application':!![]},'intervals':[],'crudPermissions':_0x1b0549[_0x43b0c9('0xb25')]}})['then'](function(_0x26022e){const _0x26d9c8=_0x43b0c9;_0x26022e&&(_0x446082['interval']=_0x26022e['interval']||_0x26d9c8('0x1830'),_0x446082['IntervalId']=_0x26022e[_0x26d9c8('0x6b4')]||null,_0x5ca439());});}}function _0x5ca439(_0x14c00a){const _0xe5188e=_0x3d4ef3;let _0x4ee9d0=0x2,_0x56fc02=[];_0x56fc02['push']({'type':_0xe5188e('0x25b6'),'app':_0xe5188e('0x25a8'),'appdata':_0xe5188e('0x13a'),'context':_0x1b0549[_0xe5188e('0x1790')][_0xe5188e('0x1c87')],'exten':_0x1b0549['outboundroute'][_0xe5188e('0x4c6')],'priority':_0x4ee9d0++,'VoiceExtensionId':_0x1b0549[_0xe5188e('0x1790')]['id']}),_0x56fc02['push']({'type':_0xe5188e('0x25b6'),'app':_0xe5188e('0x25a8'),'appdata':_0xe5188e('0x1de0')+(_0x1b0549[_0xe5188e('0x1790')][_0xe5188e('0x388')]?_0xe5188e('0x2100')+_0x1b0549[_0xe5188e('0x1790')][_0xe5188e('0x388')]+'}':_0xe5188e('0x1f76')),'context':_0x1b0549[_0xe5188e('0x1790')][_0xe5188e('0x1c87')],'exten':_0x1b0549[_0xe5188e('0x1790')][_0xe5188e('0x4c6')],'priority':_0x4ee9d0++,'VoiceExtensionId':_0x1b0549[_0xe5188e('0x1790')]['id']}),_0x56fc02[_0xe5188e('0x105d')]({'type':'outbound','app':_0xe5188e('0x25a8'),'appdata':_0xe5188e('0x1ed6')+_0x1b0549[_0xe5188e('0x1790')]['id'],'context':_0x1b0549[_0xe5188e('0x1790')]['context'],'exten':_0x1b0549['outboundroute'][_0xe5188e('0x4c6')],'priority':_0x4ee9d0++,'VoiceExtensionId':_0x1b0549[_0xe5188e('0x1790')]['id']});const _0x2f0972=_0x4ee9d0++;_0x56fc02[_0xe5188e('0x105d')]({'type':_0xe5188e('0x25b6'),'app':_0xe5188e('0x1d0f'),'appdata':'$[${LEN(${CDR(prefix)})}\x20>\x200]?Goto('+(_0x2f0972+0x2)+_0xe5188e('0xd70')+(_0x2f0972+0x1)+')','context':_0x1b0549[_0xe5188e('0x1790')][_0xe5188e('0x1c87')],'exten':_0x1b0549[_0xe5188e('0x1790')]['exten'],'priority':_0x2f0972,'VoiceExtensionId':_0x1b0549[_0xe5188e('0x1790')]['id']}),_0x56fc02[_0xe5188e('0x105d')]({'type':_0xe5188e('0x25b6'),'app':'Set','appdata':_0x1b0549[_0xe5188e('0x1790')][_0xe5188e('0x388')]?_0xe5188e('0x1431')+_0x1b0549[_0xe5188e('0x1790')][_0xe5188e('0x388')]+'}':_0xe5188e('0x482'),'context':_0x1b0549['outboundroute'][_0xe5188e('0x1c87')],'exten':_0x1b0549[_0xe5188e('0x1790')][_0xe5188e('0x4c6')],'priority':_0x4ee9d0++,'VoiceExtensionId':_0x1b0549[_0xe5188e('0x1790')]['id']}),_0x56fc02[_0xe5188e('0x105d')]({'type':_0xe5188e('0x25b6'),'app':_0xe5188e('0x25a8'),'appdata':_0xe5188e('0x1a75'),'context':_0x1b0549[_0xe5188e('0x1790')][_0xe5188e('0x1c87')],'exten':_0x1b0549['outboundroute'][_0xe5188e('0x4c6')],'priority':_0x4ee9d0++,'VoiceExtensionId':_0x1b0549[_0xe5188e('0x1790')]['id']}),_0x56fc02['push']({'type':_0xe5188e('0x25b6'),'app':'Set','appdata':'XCALLY-MOTION-PROGRESS=0','context':_0x1b0549[_0xe5188e('0x1790')][_0xe5188e('0x1c87')],'exten':_0x1b0549[_0xe5188e('0x1790')][_0xe5188e('0x4c6')],'priority':_0x4ee9d0++,'VoiceExtensionId':_0x1b0549['outboundroute']['id']}),_0x56fc02[_0xe5188e('0x105d')]({'type':_0xe5188e('0x25b6'),'app':_0xe5188e('0x25a8'),'appdata':_0xe5188e('0x2078'),'context':_0x1b0549['outboundroute'][_0xe5188e('0x1c87')],'exten':_0x1b0549['outboundroute']['exten'],'priority':_0x4ee9d0++,'VoiceExtensionId':_0x1b0549[_0xe5188e('0x1790')]['id']}),_0x56fc02[_0xe5188e('0x105d')]({'type':_0xe5188e('0x25b6'),'app':'Set','appdata':'outboundrouteid='+_0x1b0549['outboundroute']['id'],'context':_0x1b0549[_0xe5188e('0x1790')]['context'],'exten':_0x1b0549[_0xe5188e('0x1790')][_0xe5188e('0x4c6')],'priority':_0x4ee9d0++,'VoiceExtensionId':_0x1b0549['outboundroute']['id']});typeof _0x1b0549[_0xe5188e('0x1790')][_0xe5188e('0x897')]==='undefined'&&_0x1b0549[_0xe5188e('0x1790')][_0xe5188e('0x897')]!==_0xe5188e('0x3e6')&&(_0x56fc02[_0xe5188e('0x105d')]({'type':_0xe5188e('0x25b6'),'app':_0xe5188e('0x25a8'),'appdata':_0xe5188e('0x190c'),'context':_0x1b0549[_0xe5188e('0x1790')][_0xe5188e('0x1c87')],'exten':_0x1b0549[_0xe5188e('0x1790')][_0xe5188e('0x4c6')],'priority':_0x4ee9d0++,'VoiceExtensionId':_0x1b0549[_0xe5188e('0x1790')]['id']}),_0x56fc02[_0xe5188e('0x105d')]({'type':_0xe5188e('0x25b6'),'app':_0xe5188e('0x25a8'),'appdata':_0xe5188e('0x23f9')+_0x1b0549[_0xe5188e('0x1790')][_0xe5188e('0x897')]||0x0,'context':_0x1b0549['outboundroute'][_0xe5188e('0x1c87')],'exten':_0x1b0549[_0xe5188e('0x1790')][_0xe5188e('0x4c6')],'priority':_0x4ee9d0++,'VoiceExtensionId':_0x1b0549['outboundroute']['id']}));for(let _0x11f884=0x0,_0x1173a6=0x0;_0x11f884<_0x1b0549[_0xe5188e('0x1dbd')][_0xe5188e('0x19b2')][_0xe5188e('0x1e22')];_0x11f884++,_0x1173a6=0x0){const _0x1dd021=_0x1b0549[_0xe5188e('0x1dbd')][_0xe5188e('0x19b2')][_0x11f884],_0x36d72f=[],_0xdbc5e1=[];_0x1dd021[_0xe5188e('0xe82')]=_0x1dd021[_0xe5188e('0x507')]!==_0xe5188e('0x1830')?[_0x1dd021[_0xe5188e('0x507')]]:_0x1dd021['IntervalId']?_0x36f548()[_0xe5188e('0x2171')](_0x36f548()['filter'](_0x1b0549[_0xe5188e('0xe82')][_0xe5188e('0x19b2')],{'IntervalId':_0x1dd021[_0xe5188e('0x6b4')]}),_0xe5188e('0x507')):[],_0x1dd021[_0xe5188e('0x1c87')]=_0x1b0549[_0xe5188e('0x1790')][_0xe5188e('0x1c87')],_0x1dd021[_0xe5188e('0x4c6')]=_0x1b0549['outboundroute'][_0xe5188e('0x4c6')];_0x1dd021[_0xe5188e('0x19fd')]&&(_0x1dd021['type']=_0x1dd021[_0xe5188e('0x19fd')][_0xe5188e('0x20d5')]());typeof _0x1dd021[_0xe5188e('0x1d73')]!==_0xe5188e('0x13e9')&&(_0x1dd021['tag']&&_0x1dd021[_0xe5188e('0x1d73')]!=='--'&&_0x36d72f[_0xe5188e('0x105d')]({'type':_0x1dd021[_0xe5188e('0x19fd')][_0xe5188e('0x20d5')](),'app':_0xe5188e('0x25a8'),'appdata':_0xe5188e('0x50c')+_0x1dd021[_0xe5188e('0x1d73')],'context':_0x1b0549[_0xe5188e('0x1790')][_0xe5188e('0x1c87')],'exten':_0x1b0549['outboundroute'][_0xe5188e('0x4c6')],'priority':_0x1dd021['intervals'][_0xe5188e('0x1e22')]+_0x4ee9d0+_0x1173a6++,'VoiceExtensionId':_0x1b0549[_0xe5188e('0x1790')]['id']}));_0x1dd021[_0xe5188e('0xc38')]?_0x36d72f[_0xe5188e('0x105d')]({'type':_0x1dd021[_0xe5188e('0x19fd')][_0xe5188e('0x20d5')](),'app':_0xe5188e('0x1d0f'),'appdata':'$[${LEN(${PREFIX-CALLERIDALL})}\x20>\x200]?Set(CALLERID(all)=${PREFIX-CALLERIDALL}):Set(CALLERID(all)='+_0x1dd021[_0xe5188e('0xc38')]+')','context':_0x1b0549[_0xe5188e('0x1790')][_0xe5188e('0x1c87')],'exten':_0x1b0549[_0xe5188e('0x1790')][_0xe5188e('0x4c6')],'priority':_0x1dd021['intervals'][_0xe5188e('0x1e22')]+_0x4ee9d0+_0x1173a6++,'VoiceExtensionId':_0x1b0549[_0xe5188e('0x1790')]['id']}):_0x36d72f[_0xe5188e('0x105d')]({'type':_0x1dd021[_0xe5188e('0x19fd')][_0xe5188e('0x20d5')](),'app':_0xe5188e('0x1d0f'),'appdata':_0xe5188e('0x125f'),'context':_0x1b0549[_0xe5188e('0x1790')][_0xe5188e('0x1c87')],'exten':_0x1b0549['outboundroute'][_0xe5188e('0x4c6')],'priority':_0x1dd021[_0xe5188e('0xe82')][_0xe5188e('0x1e22')]+_0x4ee9d0+_0x1173a6++,'VoiceExtensionId':_0x1b0549['outboundroute']['id']});for(let _0x5f2ab2=0x0;_0x5f2ab2<_0x1dd021['intervals'][_0xe5188e('0x1e22')];_0x5f2ab2++){const _0x1d0a7f=_0x4ee9d0+_0x1dd021[_0xe5188e('0xe82')][_0xe5188e('0x1e22')],_0x4f7d11=_0x5f2ab2===_0x1dd021[_0xe5188e('0xe82')]['length']-0x1?_0x4ee9d0+_0x36d72f[_0xe5188e('0x1e22')]+_0xdbc5e1[_0xe5188e('0x1e22')]+0x2:_0x4ee9d0+_0x5f2ab2+0x1;_0x36d72f[_0xe5188e('0x1ae')](_0x5f2ab2,0x0,{'type':_0xe5188e('0x25b6'),'app':_0xe5188e('0x1e9c'),'appdata':_0x1dd021[_0xe5188e('0xe82')][_0x5f2ab2]+'?'+_0x1b0549[_0xe5188e('0x1790')][_0xe5188e('0x1c87')]+',${EXTEN},'+_0x1d0a7f+':'+_0x1b0549[_0xe5188e('0x1790')][_0xe5188e('0x1c87')]+',${EXTEN},'+_0x4f7d11,'exten':_0x1b0549[_0xe5188e('0x1790')][_0xe5188e('0x4c6')],'context':_0x1b0549[_0xe5188e('0x1790')][_0xe5188e('0x1c87')],'priority':_0x4ee9d0+_0x5f2ab2,'VoiceExtensionId':_0x1b0549[_0xe5188e('0x1790')]['id']});}if(_0x14c00a&&_0x1dd021[_0xe5188e('0x27c0')]===_0xe5188e('0x1bf6')){const _0x3211b8=_0x36f548()[_0xe5188e('0x1ad4')](_0x1b0549[_0xe5188e('0x1812')],{'appType':'outboundDial'});if(_0x3211b8&&_0x3211b8[_0xe5188e('0x1067')]){const _0x440e4d={},_0x30a003=_0x1dd021[_0xe5188e('0x13fc')][_0xe5188e('0xaf8')](','),_0x5e5e80=[];for(let _0x5efd11=0x0,_0x1e8b47=_0x3211b8['fields']['length'];_0x5efd11<_0x1e8b47;_0x5efd11++){if(typeof _0x3211b8['fields'][_0x5efd11][_0xe5188e('0xe58')]!==_0xe5188e('0x13e9'))switch(_0x3211b8[_0xe5188e('0x1067')][_0x5efd11][_0xe5188e('0x1909')]){case _0xe5188e('0x264e'):_0x440e4d[_0xe5188e('0x264e')]=_0x30a003[_0x3211b8[_0xe5188e('0x1067')][_0x5efd11][_0xe5188e('0xe58')]]['split']('/')[0x1],_0x440e4d['phone']=_0x30a003[_0x3211b8[_0xe5188e('0x1067')][_0x5efd11]['param']][_0xe5188e('0xaf8')]('/')[0x2],_0x440e4d[_0xe5188e('0x2137')]=_0x440e4d[_0xe5188e('0x1546')]?_0x440e4d[_0xe5188e('0x1546')]['split']('$')[0x0]:undefined,_0x440e4d[_0xe5188e('0x1546')]=_0x1b0549[_0xe5188e('0x1790')]['cutdigits']?(_0x440e4d[_0xe5188e('0x2137')]||'')+_0xe5188e('0x2100')+_0x1b0549[_0xe5188e('0x1790')][_0xe5188e('0x388')]+'}':(_0x440e4d['prefix']||'')+'${EXTEN}',_0x5e5e80[_0x3211b8[_0xe5188e('0x1067')][_0x5efd11]['param']]=[_0xe5188e('0xd74'),_0x440e4d['trunk'],_0x440e4d[_0xe5188e('0x1546')]]['join']('/');break;case _0xe5188e('0x249a'):_0x440e4d[_0xe5188e('0x249a')]=_0x30a003[_0x3211b8[_0xe5188e('0x1067')][_0x5efd11][_0xe5188e('0xe58')]];_0x1b0549[_0xe5188e('0x1790')][_0xe5188e('0x897')]!==_0xe5188e('0x3e6')?_0x440e4d[_0xe5188e('0x249a')][_0xe5188e('0x203c')](_0xe5188e('0x22c9'))<0x0&&(_0x440e4d['options']+=_0xe5188e('0x22c9')):_0x440e4d[_0xe5188e('0x249a')]=_0x440e4d['options'][_0xe5188e('0x814')]('U(xcally-mixmonitor-context)','');_0x5e5e80[_0x3211b8[_0xe5188e('0x1067')][_0x5efd11][_0xe5188e('0xe58')]]=_0x440e4d[_0xe5188e('0x249a')];break;default:_0x5e5e80[_0x3211b8[_0xe5188e('0x1067')][_0x5efd11]['param']]=_0x30a003[_0x3211b8['fields'][_0x5efd11]['param']];}}_0x1dd021[_0xe5188e('0x13fc')]=_0x5e5e80[_0xe5188e('0xa04')](',');}}_0x1dd021['priority']=_0x36d72f[_0xe5188e('0x1e22')]?_0x36f548()['last'](_0x36d72f)[_0xe5188e('0x2804')]+0x1:_0x4ee9d0,_0x4ee9d0=(_0xdbc5e1['length']?_0x36f548()[_0xe5188e('0x1093')](_0xdbc5e1)[_0xe5188e('0x2804')]:_0x1dd021[_0xe5188e('0x2804')])+0x1,_0x56fc02=_0x36f548()[_0xe5188e('0x20bf')](_0x56fc02,_0x36d72f,[_0x1dd021],_0xdbc5e1);}_0x56fc02[_0xe5188e('0x105d')]({'type':_0xe5188e('0x25b6'),'app':_0xe5188e('0x1b9e'),'exten':_0x1b0549['outboundroute'][_0xe5188e('0x4c6')],'context':_0x1b0549[_0xe5188e('0x1790')]['context'],'priority':_0x4ee9d0,'VoiceExtensionId':_0x1b0549[_0xe5188e('0x1790')]['id']}),_0x5b86f2[_0xe5188e('0x417')][_0xe5188e('0x25ec')]({'id':_0x1b0549[_0xe5188e('0x1790')]['id']},_0x36f548()[_0xe5188e('0xd39')](_0x56fc02,_0xe5188e('0x2804')))[_0xe5188e('0x1549')][_0xe5188e('0x11bf')](function(_0x51b019){const _0x2684d5=_0xe5188e;_0x1b0549[_0x2684d5('0x1dbd')]['rows']=_0x51b019['rows'];})[_0xe5188e('0x151d')](function(_0x2b6d90){const _0x3cff36=_0xe5188e;console[_0x3cff36('0x255')](_0x2b6d90);});}function _0x480097(_0x6a11c3){const _0x275ae2=_0x3d4ef3;_0x1b0549[_0x275ae2('0x1dbd')]=_0x6a11c3||{'count':0x0,'rows':[]};}function _0x46c262(){const _0x4a9c86=_0x3d4ef3;return _0x5b86f2[_0x4a9c86('0x507')][_0x4a9c86('0xbaa')]({'fields':_0x4a9c86('0x17ae')})[_0x4a9c86('0x1549')][_0x4a9c86('0x11bf')](function(_0x1d7073){const _0x3cede0=_0x4a9c86;_0x1b0549[_0x3cede0('0xe82')]=_0x1d7073;})[_0x4a9c86('0x151d')](function(_0x23f4e7){const _0x8f589e=_0x4a9c86;console[_0x8f589e('0x255')](_0x23f4e7);});}function _0x4611f5(){const _0xcc805e=_0x3d4ef3;_0x1b0549[_0xcc805e('0x13f')]=_0x5b86f2[_0xcc805e('0x417')][_0xcc805e('0xbaa')](_0x1b0549[_0xcc805e('0x1f2a')],_0x480097)[_0xcc805e('0x1549')];}function _0x487179(_0x731329){const _0x382572=_0x3d4ef3;_0x36f548()[_0x382572('0x14a5')](_0x1b0549[_0x382572('0x1dbd')][_0x382572('0x19b2')],{'id':_0x731329['id']}),_0x5ca439(),_0x1ad445[_0x382572('0x2693')]({'title':_0x382572('0xb44'),'msg':_0x731329[_0x382572('0x18f5')]?_0x731329[_0x382572('0x18f5')]+_0x382572('0x433'):''});}function _0x388f88(_0x255543){const _0x347e5a=_0x3d4ef3,_0x4ba59a=_0x806152[_0x347e5a('0x132b')]()[_0x347e5a('0x134b')](_0x347e5a('0x2780'))['htmlContent'](''+_0x1b0549[_0x347e5a('0x1762')][_0x347e5a('0x1e22')]+_0x347e5a('0xac6')+'\x20will\x20be\x20deleted.')[_0x347e5a('0xb2e')](_0x347e5a('0x1aa4'))[_0x347e5a('0x1e25')](_0x255543)['ok']('OK')[_0x347e5a('0x26c9')]('CANCEL');_0x806152[_0x347e5a('0xb9')](_0x4ba59a)['then'](function(){const _0x9e982c=_0x347e5a;_0x1b0549[_0x9e982c('0x1762')][_0x9e982c('0x1f88')](function(_0x5d3c06){const _0x170034=_0x9e982c;_0x36f548()[_0x170034('0x14a5')](_0x1b0549[_0x170034('0x1dbd')]['rows'],{'id':_0x5d3c06['id']});}),_0x1b0549[_0x9e982c('0x1762')]=[],_0x5ca439();});}_0x84d915[_0x3d4ef3('0x12d8')](_0x3d4ef3('0x4f7'),function(){const _0x9c0739=_0x3d4ef3;_0x49abf8[_0x9c0739('0x1b2e')]('voiceExtension:update');});}const _0x33b08e=_0x57ea51;_0x5e76db[_0x21d0f5('0x1e9a')]=['$mdDialog','$q',_0x21d0f5('0x142d'),_0x21d0f5('0x24ef'),_0x21d0f5('0x1790'),'api',_0x21d0f5('0x1150'),_0x21d0f5('0xb25')];function _0x5e76db(_0x5734a0,_0x28ebb3,_0x31ada6,_0x42983a,_0x4fa011,_0x4e3b82,_0x179aa8,_0x37c655){const _0x5e1dcc=_0x21d0f5,_0x19e7ac=this;_0x19e7ac[_0x5e1dcc('0x32a')]=_0x179aa8[_0x5e1dcc('0x2428')](),_0x19e7ac[_0x5e1dcc('0x120f')]=[],_0x19e7ac[_0x5e1dcc('0x134b')]=_0x5e1dcc('0x2306')+(_0x42983a[_0x5e1dcc('0x27c0')]||_0x42983a[_0x5e1dcc('0x18f5')])[_0x5e1dcc('0xa6f')](),_0x19e7ac[_0x5e1dcc('0xa8d')]=angular[_0x5e1dcc('0x6fb')](_0x42983a),_0x19e7ac['crudPermissions']=_0x37c655,_0x19e7ac[_0x5e1dcc('0x2c9')]={};if(_0x19e7ac['custom'][_0x5e1dcc('0x13fc')])switch(_0x19e7ac['custom'][_0x5e1dcc('0x27c0')]?_0x19e7ac[_0x5e1dcc('0xa8d')][_0x5e1dcc('0x27c0')][_0x5e1dcc('0x20d5')]():_0x19e7ac[_0x5e1dcc('0xa8d')]['app'][_0x5e1dcc('0x20d5')]()){case _0x5e1dcc('0xa8d'):break;case _0x5e1dcc('0x185e'):{const _0x317906=_0x19e7ac[_0x5e1dcc('0xa8d')][_0x5e1dcc('0x13fc')][_0x5e1dcc('0xaf8')](',');_0x19e7ac[_0x5e1dcc('0xa8d')][_0x5e1dcc('0xa0c')]=_0x317906[0x0],_0x19e7ac[_0x5e1dcc('0xa8d')][_0x5e1dcc('0xeff')]=_0x317906[0x1],_0x19e7ac[_0x5e1dcc('0xa8d')]['welcomemessage']=_0x317906['slice'](0x2,_0x317906[_0x5e1dcc('0x1e22')])['join'](',');}break;case _0x5e1dcc('0x21a8'):{const _0x5b689f=_0x19e7ac[_0x5e1dcc('0xa8d')][_0x5e1dcc('0x13fc')]['split'](',');_0x19e7ac['custom'][_0x5e1dcc('0x20e')]=_0x5b689f[0x0],_0x19e7ac['custom'][_0x5e1dcc('0x1f91')]=_0x5b689f[0x1],_0x19e7ac[_0x5e1dcc('0xa8d')][_0x5e1dcc('0x1c6c')]=_0x5b689f[0x2],_0x19e7ac['custom'][_0x5e1dcc('0xeff')]=_0x5b689f[0x3],_0x19e7ac[_0x5e1dcc('0xa8d')]['welcomemessage']=_0x5b689f[_0x5e1dcc('0x1b77')](0x4,_0x5b689f[_0x5e1dcc('0x1e22')])[_0x5e1dcc('0xa04')](',');}break;case _0x5e1dcc('0x102c'):{const _0x18b6ce=_0x19e7ac[_0x5e1dcc('0xa8d')][_0x5e1dcc('0x13fc')][_0x5e1dcc('0xaf8')](',');_0x19e7ac['custom'][_0x5e1dcc('0x1a82')]=_0x18b6ce[0x0],_0x19e7ac[_0x5e1dcc('0xa8d')][_0x5e1dcc('0x1422')]=_0x18b6ce[0x1],_0x19e7ac[_0x5e1dcc('0xa8d')]['lexregion']=_0x18b6ce[0x2],_0x19e7ac[_0x5e1dcc('0xa8d')][_0x5e1dcc('0x1e8f')]=_0x18b6ce[0x3],_0x19e7ac[_0x5e1dcc('0xa8d')]['welcomemessage']=_0x18b6ce[_0x5e1dcc('0x1b77')](0x4,_0x18b6ce['length'])[_0x5e1dcc('0xa04')](',');}break;case _0x5e1dcc('0x187b'):{const _0x553fd8=_0x19e7ac['custom'][_0x5e1dcc('0x13fc')][_0x5e1dcc('0xaf8')](',');_0x19e7ac['custom'][_0x5e1dcc('0x663')]=isNaN(_0x553fd8[0x0])?_0x553fd8[0x0]:parseInt(_0x553fd8[0x0],0xa),_0x19e7ac[_0x5e1dcc('0xa8d')][_0x5e1dcc('0x25ed')]=_0x553fd8[_0x5e1dcc('0x1b77')](0x1,_0x553fd8[_0x5e1dcc('0x1e22')])['join'](',');}break;case _0x5e1dcc('0x1b86'):_0x19e7ac[_0x5e1dcc('0xa8d')][_0x5e1dcc('0x25ed')]=_0x19e7ac[_0x5e1dcc('0xa8d')]['appdata'];break;case _0x5e1dcc('0xe50'):_0x19e7ac[_0x5e1dcc('0xa8d')][_0x5e1dcc('0x1909')]=_0x19e7ac[_0x5e1dcc('0xa8d')][_0x5e1dcc('0x13fc')][_0x5e1dcc('0xaf8')]('=')[0x0],_0x19e7ac['custom'][_0x5e1dcc('0x10cc')]=_0x19e7ac[_0x5e1dcc('0xa8d')][_0x5e1dcc('0x13fc')][_0x5e1dcc('0xaf8')]('=')[0x1];break;case _0x5e1dcc('0x1efd'):_0x19e7ac[_0x5e1dcc('0xa8d')][_0x5e1dcc('0xef0')]=_0x19e7ac[_0x5e1dcc('0xa8d')][_0x5e1dcc('0x13fc')];break;default:{const _0x46a399=_0x19e7ac['custom'][_0x5e1dcc('0x13fc')][_0x5e1dcc('0xaf8')](',');_0x19e7ac[_0x5e1dcc('0xa8d')]['app']=_0x36f548()[_0x5e1dcc('0x1fc5')](_0x46a399[0x0])?_0x46a399[0x0]:isNaN(_0x46a399[0x0])?_0x46a399[0x0]:parseInt(_0x46a399[0x0],0xa),_0x19e7ac[_0x5e1dcc('0xa8d')][_0x5e1dcc('0x13fc')]=_0x36f548()['isEmpty'](_0x46a399[0x1])?_0x46a399[0x1]:isNaN(_0x46a399[0x1])?_0x46a399[0x1]:parseInt(_0x46a399[0x1],0xa);}break;}else{}_0x19e7ac['custom'][_0x5e1dcc('0x19fd')]&&_0x19e7ac[_0x5e1dcc('0xa8d')]['type'][_0x5e1dcc('0x20d5')]()===_0x5e1dcc('0x25b6')&&_0x19e7ac['custom'][_0x5e1dcc('0x27c0')][_0x5e1dcc('0x20d5')]()===_0x5e1dcc('0x1a64')&&(_0x19e7ac[_0x5e1dcc('0xa8d')][_0x5e1dcc('0x2137')]=_0x19e7ac['custom']['phone']?_0x19e7ac['custom']['phone'][_0x5e1dcc('0xaf8')]('$')[0x0]:undefined,_0x19e7ac['custom'][_0x5e1dcc('0x7d0')]=_0x19e7ac[_0x5e1dcc('0xa8d')][_0x5e1dcc('0xc38')]?'CALLERID(all)='+_0x19e7ac[_0x5e1dcc('0xa8d')][_0x5e1dcc('0xc38')]:undefined);_0x19e7ac['saveOutboundRouteApp']=_0x1be0e8,_0x19e7ac[_0x5e1dcc('0xc4e')]=_0x58d800;function _0x1be0e8(){const _0x117a71=_0x5e1dcc;_0x19e7ac[_0x117a71('0x120f')]=[];const _0x801c38=[];_0x19e7ac[_0x117a71('0xa8d')]['type']&&_0x19e7ac[_0x117a71('0xa8d')][_0x117a71('0x19fd')][_0x117a71('0x20d5')]()===_0x117a71('0x25b6')&&_0x19e7ac[_0x117a71('0xa8d')]['appType']===_0x117a71('0x1bf6')&&(_0x19e7ac['custom'][_0x117a71('0x1546')]=_0x4fa011[_0x117a71('0x388')]?(_0x19e7ac[_0x117a71('0xa8d')]['prefix']||'')+_0x117a71('0x2100')+_0x4fa011[_0x117a71('0x388')]+'}':(_0x19e7ac[_0x117a71('0xa8d')]['prefix']||'')+'${EXTEN}',_0x4fa011[_0x117a71('0x897')]!==_0x117a71('0x3e6')?_0x19e7ac['custom'][_0x117a71('0x249a')][_0x117a71('0x203c')](_0x117a71('0x22c9'))<0x0&&(_0x19e7ac[_0x117a71('0xa8d')][_0x117a71('0x249a')]+='U(xcally-mixmonitor-context)'):_0x19e7ac[_0x117a71('0xa8d')][_0x117a71('0x249a')]=_0x19e7ac[_0x117a71('0xa8d')][_0x117a71('0x249a')][_0x117a71('0x814')]('U(xcally-mixmonitor-context)',''));if(_0x19e7ac['custom'][_0x117a71('0x27c0')]&&_0x19e7ac[_0x117a71('0xa8d')][_0x117a71('0x27c0')]===_0x117a71('0xa8d')){}else switch((_0x19e7ac[_0x117a71('0xa8d')][_0x117a71('0x18f5')]||_0x19e7ac[_0x117a71('0xa8d')]['appType'])['toLowerCase']()){case _0x117a71('0xe50'):_0x19e7ac[_0x117a71('0xa8d')]['appdata']=_0x19e7ac[_0x117a71('0xa8d')]['name']+'='+_0x19e7ac[_0x117a71('0xa8d')][_0x117a71('0x10cc')];break;case _0x117a71('0xa8d'):break;default:_0x801c38[0x0]=_0x19e7ac['custom']['app'],_0x801c38[0x1]=_0x19e7ac[_0x117a71('0xa8d')][_0x117a71('0x13fc')],_0x19e7ac[_0x117a71('0xa8d')][_0x117a71('0x13fc')]=_0x801c38['join'](',');}_0x58d800(_0x19e7ac[_0x117a71('0xa8d')]);}function _0x58d800(_0x3aea0b){const _0x3faf49=_0x5e1dcc;_0x5734a0[_0x3faf49('0x237e')](_0x3aea0b);}}const _0x63afb7=_0x5e76db;_0x4188f0['$inject']=[_0x21d0f5('0xcbc'),_0x21d0f5('0x1ca2'),'$mdToast',_0x21d0f5('0x216f'),_0x21d0f5('0x507'),_0x21d0f5('0xe82'),_0x21d0f5('0x142d'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),_0x21d0f5('0xb25')];function _0x4188f0(_0x1d84ba,_0x2a1cbf,_0x3d897b,_0x2f3984,_0x52752d,_0x5465b2,_0x29d0fc,_0x299303,_0x517010,_0x3ab322){const _0x1d7141=_0x21d0f5,_0x12f620=this;_0x12f620[_0x1d7141('0x32a')]=_0x517010[_0x1d7141('0x2428')](),_0x12f620[_0x1d7141('0x120f')]=[],_0x12f620[_0x1d7141('0x134b')]=_0x1d7141('0x1d07'),_0x12f620[_0x1d7141('0x507')]=angular[_0x1d7141('0x6fb')](_0x52752d),_0x12f620[_0x1d7141('0xe82')]=_0x5465b2,_0x12f620[_0x1d7141('0x18cf')]=![],_0x12f620[_0x1d7141('0x1660')]=['always','custom',_0x1d7141('0x257d')],_0x12f620[_0x1d7141('0xb25')]=_0x3ab322,_0x12f620[_0x1d7141('0xd02')]=_0x2f3984[_0x1d7141('0x25e1')](),_0x12f620[_0x1d7141('0x0')]=_0x2f3984[_0x1d7141('0xf7a')](),_0x12f620[_0x1d7141('0x19c8')]=_0x2f3984['getMonthName'](),_0x12f620[_0x1d7141('0x256b')]=_0x2f3984[_0x1d7141('0x1ebc')]();if(!_0x12f620[_0x1d7141('0x507')])_0x12f620[_0x1d7141('0x507')]={'interval':'*,*,*,*'},_0x12f620['type']=_0x1d7141('0x27e5'),_0x12f620[_0x1d7141('0x134b')]=_0x1d7141('0x1aba'),_0x12f620[_0x1d7141('0x18cf')]=!![];else{if(_0x12f620['interval'][_0x1d7141('0x507')]!==_0x1d7141('0x1830')){_0x12f620[_0x1d7141('0x19fd')]=_0x1d7141('0xa8d');const _0x793230=_0x12f620[_0x1d7141('0x507')][_0x1d7141('0x507')]['split'](','),_0x4b3678=_0x793230[0x0],_0x234c00=_0x793230[0x1],_0x39d85f=_0x793230[0x2],_0x2222cf=_0x793230[0x3];if(_0x4b3678!=='*'){const _0x34cfc2=_0x4b3678[_0x1d7141('0xaf8')]('-')[0x0],_0x7807db=_0x4b3678[_0x1d7141('0xaf8')]('-')[0x1];let _0x4fcf4d;_0x4fcf4d=new Date(),_0x4fcf4d[_0x1d7141('0x29e')](Number(_0x34cfc2[_0x1d7141('0xaf8')](':')[0x0])),_0x4fcf4d[_0x1d7141('0x7b6')](Number(_0x34cfc2[_0x1d7141('0xaf8')](':')[0x1])),_0x12f620['timeRangeFrom']=_0x4fcf4d,_0x4fcf4d=new Date(),_0x4fcf4d[_0x1d7141('0x29e')](Number(_0x7807db[_0x1d7141('0xaf8')](':')[0x0])),_0x4fcf4d['setMinutes'](Number(_0x7807db['split'](':')[0x1])),_0x12f620['timeRangeTo']=_0x4fcf4d;}_0x234c00!=='*'&&(_0x12f620[_0x1d7141('0x126e')]=_0x234c00['split']('-')[0x0],_0x12f620[_0x1d7141('0x261')]=_0x234c00[_0x1d7141('0xaf8')]('-')[0x1]),_0x39d85f!=='*'&&(_0x12f620['monthDayFrom']=_0x39d85f[_0x1d7141('0xaf8')]('-')[0x0],_0x12f620[_0x1d7141('0x1883')]=_0x39d85f[_0x1d7141('0xaf8')]('-')[0x1]),_0x2222cf!=='*'&&(_0x12f620['monthFrom']=_0x2222cf['split']('-')[0x0],_0x12f620[_0x1d7141('0x1155')]=_0x2222cf[_0x1d7141('0xaf8')]('-')[0x1]);}else _0x12f620[_0x1d7141('0x19fd')]=_0x1d7141('0x27e5');}_0x1d84ba[_0x1d7141('0x1ab3')]['id']&&!_0x12f620[_0x1d7141('0x507')][_0x1d7141('0x1cf1')]&&(_0x12f620[_0x1d7141('0x507')][_0x1d7141('0x6b4')]=_0x1d84ba[_0x1d7141('0x1ab3')]['id']);_0x12f620[_0x1d7141('0x507')][_0x1d7141('0x6b4')]&&_0x12f620[_0x1d7141('0x507')][_0x1d7141('0x1cf1')]&&(_0x12f620[_0x1d7141('0x19fd')]='list');_0x12f620[_0x1d7141('0x119a')]=_0x1cae13,_0x12f620['saveInterval']=_0x5df766,_0x12f620[_0x1d7141('0xc4e')]=_0x273ddf;_0x12f620[_0x1d7141('0x507')][_0x1d7141('0x1cf1')]&&(_0x517010[_0x1d7141('0x4ee')](_0x1d7141('0xf45'))?_0x299303[_0x1d7141('0x507')][_0x1d7141('0xbaa')]({'fields':_0x1d7141('0x1af5'),'IntervalId':_0x1d7141('0xb5f'),'nolimit':!![]})['$promise'][_0x1d7141('0x11bf')](function(_0xd7c851){const _0x4fa9e7=_0x1d7141;_0x12f620[_0x4fa9e7('0xe82')]=_0xd7c851[_0x4fa9e7('0x19b2')]||[];})[_0x1d7141('0x151d')](function(_0x29c413){const _0x1709d4=_0x1d7141;_0x29d0fc[_0x1709d4('0x255')]({'title':_0x29c413[_0x1709d4('0xff9')]?'API:'+_0x29c413[_0x1709d4('0xff9')]+_0x1709d4('0xb0b')+_0x29c413[_0x1709d4('0x212f')]:_0x1709d4('0x611'),'msg':_0x29c413[_0x1709d4('0x4e8')]?JSON[_0x1709d4('0x3e')](_0x29c413[_0x1709d4('0x4e8')]):_0x29c413[_0x1709d4('0xaab')]()});}):_0x299303[_0x1d7141('0x507')][_0x1d7141('0xbaa')]({'fields':_0x1d7141('0x1af5'),'IntervalId':'null','nolimit':!![]})[_0x1d7141('0x1549')][_0x1d7141('0x11bf')](function(_0x1b8bd4){const _0x1d3292=_0x1d7141;_0x12f620['intervals']=_0x1b8bd4[_0x1d3292('0x19b2')]||[];})[_0x1d7141('0x11bf')](function(){const _0x4f7a23=_0x1d7141;return _0x299303[_0x4f7a23('0x1d63')]['get']({'userProfileId':_0x12f620[_0x4f7a23('0x32a')][_0x4f7a23('0x781')],'sectionId':0x3ec})['$promise'];})[_0x1d7141('0x11bf')](function(_0x38fed2){const _0x4dfcc9=_0x1d7141,_0x2013e3=_0x38fed2&&_0x38fed2[_0x4dfcc9('0x19b2')]?_0x38fed2['rows'][0x0]:null;if(!_0x2013e3)_0x12f620[_0x4dfcc9('0xe82')]=[];else{if(!_0x2013e3[_0x4dfcc9('0xf11')])return _0x299303[_0x4dfcc9('0x26d1')][_0x4dfcc9('0xbaa')]({'sectionId':_0x2013e3['id']})[_0x4dfcc9('0x1549')][_0x4dfcc9('0x11bf')](function(_0xd598fd){const _0x4ecc2c=_0x4dfcc9,_0x17613c=_0xd598fd&&_0xd598fd[_0x4ecc2c('0x19b2')]?_0xd598fd[_0x4ecc2c('0x19b2')]:[],_0x1d51e6=[];let _0x569f03=null;_0x12f620['interval']&&(_0x569f03=_0x36f548()[_0x4ecc2c('0x1ad4')](_0x12f620[_0x4ecc2c('0xe82')],{'name':_0x12f620[_0x4ecc2c('0x507')][_0x4ecc2c('0x6b4')]})),_0x569f03&&!_0x36f548()[_0x4ecc2c('0x1cb3')](_0x17613c,[_0x4ecc2c('0x15a5'),_0x569f03['id']])&&_0x12f620[_0x4ecc2c('0xe82')][_0x4ecc2c('0x1f88')](function(_0x405d3d){const _0x3b2a12=_0x4ecc2c;_0x405d3d['id']===_0x569f03['id']&&(_0x405d3d[_0x3b2a12('0x254a')]=![],_0x1d51e6[_0x3b2a12('0x105d')](_0x405d3d));}),_0x12f620['intervals']=_0x1d51e6;});}})[_0x1d7141('0x151d')](function(_0x221b03){const _0x7d2f1a=_0x1d7141;_0x29d0fc[_0x7d2f1a('0x255')]({'title':_0x221b03[_0x7d2f1a('0xff9')]?_0x7d2f1a('0x574')+_0x221b03[_0x7d2f1a('0xff9')]+_0x7d2f1a('0xb0b')+_0x221b03['statusText']:_0x7d2f1a('0x611'),'msg':_0x221b03[_0x7d2f1a('0x4e8')]?JSON[_0x7d2f1a('0x3e')](_0x221b03[_0x7d2f1a('0x4e8')]):_0x221b03[_0x7d2f1a('0xaab')]()});}));function _0x5b134d(){const _0x362d63=_0x1d7141;switch(_0x12f620[_0x362d63('0x19fd')]){case _0x362d63('0x27e5'):case _0x362d63('0x257d'):return _0x362d63('0x1830');case _0x362d63('0xa8d'):{const _0x1594cd=[];if(_0x12f620['timeRangeFrom']!=='*'&&_0x12f620['timeRangeFrom']&&_0x12f620[_0x362d63('0x19e5')]){const _0x4a4bda=(_0x12f620[_0x362d63('0x269b')]['getHours']()<0xa?'0':'')+_0x12f620[_0x362d63('0x269b')][_0x362d63('0x1e34')]()+':'+((_0x12f620['timeRangeFrom'][_0x362d63('0xdcc')]()<0xa?'0':'')+_0x12f620[_0x362d63('0x269b')][_0x362d63('0xdcc')]()),_0x36ef0b=(_0x12f620[_0x362d63('0x19e5')][_0x362d63('0x1e34')]()<0xa?'0':'')+_0x12f620[_0x362d63('0x19e5')][_0x362d63('0x1e34')]()+':'+((_0x12f620[_0x362d63('0x19e5')][_0x362d63('0xdcc')]()<0xa?'0':'')+_0x12f620[_0x362d63('0x19e5')]['getMinutes']());_0x1594cd['push'](_0x4a4bda+'-'+_0x36ef0b);}else _0x1594cd[_0x362d63('0x105d')]('*');return _0x12f620[_0x362d63('0x126e')]?_0x12f620[_0x362d63('0x261')]?_0x1594cd[_0x362d63('0x105d')](_0x12f620[_0x362d63('0x126e')]+'-'+_0x12f620['dayOfWeekTo']):_0x1594cd['push'](_0x12f620[_0x362d63('0x126e')]):_0x1594cd[_0x362d63('0x105d')]('*'),_0x12f620[_0x362d63('0xecd')]?_0x12f620[_0x362d63('0x1883')]?_0x1594cd[_0x362d63('0x105d')](_0x12f620[_0x362d63('0xecd')]+'-'+_0x12f620[_0x362d63('0x1883')]):_0x1594cd['push'](_0x12f620[_0x362d63('0xecd')]):_0x1594cd['push']('*'),_0x12f620['monthFrom']?_0x12f620[_0x362d63('0x1155')]?_0x1594cd[_0x362d63('0x105d')](_0x12f620[_0x362d63('0xad3')]+'-'+_0x12f620[_0x362d63('0x1155')]):_0x1594cd[_0x362d63('0x105d')](_0x12f620['monthFrom']):_0x1594cd[_0x362d63('0x105d')]('*'),_0x1594cd[_0x362d63('0xa04')]();}}}function _0x1cae13(){const _0x2205cf=_0x1d7141;_0x12f620[_0x2205cf('0x120f')]=[],_0x12f620[_0x2205cf('0x507')]['interval']=_0x5b134d(),_0x299303[_0x2205cf('0x507')][_0x2205cf('0x259')](_0x12f620[_0x2205cf('0x507')])[_0x2205cf('0x1549')][_0x2205cf('0x11bf')](function(_0x4b17a2){const _0x4cf955=_0x2205cf;_0x12f620[_0x4cf955('0xe82')]['push'](_0x4b17a2),_0x29d0fc['success']({'title':_0x4cf955('0x747'),'msg':_0x12f620[_0x4cf955('0x507')][_0x4cf955('0x1909')]?_0x12f620[_0x4cf955('0x507')][_0x4cf955('0x1909')]+_0x4cf955('0x7fb'):''}),_0x273ddf();})[_0x2205cf('0x151d')](function(_0x120e65){const _0x122945=_0x2205cf;console[_0x122945('0x255')](_0x120e65),_0x12f620['errors']=_0x120e65[_0x122945('0x4e8')][_0x122945('0x120f')]||[{'message':_0x120e65[_0x122945('0xaab')](),'type':'api.interval.save'}];});}function _0x5df766(){const _0x3635c7=_0x1d7141;_0x12f620[_0x3635c7('0x120f')]=[],_0x12f620[_0x3635c7('0x507')][_0x3635c7('0x507')]=_0x5b134d(),_0x12f620['interval']['application']?(_0x12f620[_0x3635c7('0x19fd')]!==_0x3635c7('0x257d')&&(_0x12f620['interval']['IntervalId']=null),_0x273ddf(_0x12f620[_0x3635c7('0x507')])):_0x299303['interval']['update']({'id':_0x12f620[_0x3635c7('0x507')]['id']},_0x12f620[_0x3635c7('0x507')])[_0x3635c7('0x1549')]['then'](function(_0x44ee5b){const _0xde36fc=_0x3635c7,_0x46aa42=_0x36f548()[_0xde36fc('0x1ad4')](_0x12f620[_0xde36fc('0xe82')],{'id':_0x44ee5b['id']});_0x46aa42&&_0x36f548()[_0xde36fc('0x47b')](_0x46aa42,_0x44ee5b),_0x29d0fc[_0xde36fc('0x2693')]({'title':_0xde36fc('0x1177'),'msg':_0xde36fc('0x904')}),_0x273ddf();})[_0x3635c7('0x151d')](function(_0x335c56){const _0x573317=_0x3635c7;console['error'](_0x335c56),_0x12f620[_0x573317('0x120f')]=_0x335c56[_0x573317('0x4e8')][_0x573317('0x120f')]||[{'message':_0x335c56['toString'](),'type':_0x573317('0x3dd')}];});}function _0x273ddf(_0x5d9cbd){const _0x146f77=_0x1d7141;_0x2a1cbf[_0x146f77('0x237e')](_0x5d9cbd);}}const _0x36e1e1=_0x4188f0;_0x133bf2[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1ca2'),'$q','toasty',_0x21d0f5('0x24ef'),'outboundroute',_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),_0x21d0f5('0xb25')];function _0x133bf2(_0x1bb617,_0x4164ff,_0x4b999a,_0x15af23,_0x40ad38,_0x13ec55,_0x207606,_0x457624){const _0x4da01a=_0x21d0f5,_0x7f2eff=this;_0x7f2eff[_0x4da01a('0x32a')]=_0x207606[_0x4da01a('0x2428')](),_0x7f2eff[_0x4da01a('0x120f')]=[],_0x7f2eff['title']=_0x4da01a('0x2306')+(_0x15af23[_0x4da01a('0x27c0')]||_0x15af23[_0x4da01a('0x18f5')])[_0x4da01a('0xa6f')](),_0x7f2eff[_0x4da01a('0x1a64')]=angular[_0x4da01a('0x6fb')](_0x15af23),_0x7f2eff[_0x4da01a('0xb25')]=_0x457624,_0x7f2eff[_0x4da01a('0x2c9')]={};if(_0x7f2eff['outbounddial'][_0x4da01a('0x13fc')])switch(_0x7f2eff['outbounddial'][_0x4da01a('0x27c0')]?_0x7f2eff['outbounddial'][_0x4da01a('0x27c0')][_0x4da01a('0x20d5')]():_0x7f2eff[_0x4da01a('0x1a64')][_0x4da01a('0x18f5')][_0x4da01a('0x20d5')]()){case'custom':break;case'dialogflow':{const _0x572e12=_0x7f2eff['outbounddial']['appdata']['split'](',');_0x7f2eff[_0x4da01a('0x1a64')]['key']=_0x572e12[0x0],_0x7f2eff[_0x4da01a('0x1a64')]['language']=_0x572e12[0x1],_0x7f2eff['outbounddial'][_0x4da01a('0x1cbc')]=_0x572e12[_0x4da01a('0x1b77')](0x2,_0x572e12['length'])[_0x4da01a('0xa04')](',');}break;case _0x4da01a('0x21a8'):{const _0x2f72af=_0x7f2eff[_0x4da01a('0x1a64')][_0x4da01a('0x13fc')][_0x4da01a('0xaf8')](',');_0x7f2eff[_0x4da01a('0x1a64')]['projectId']=_0x2f72af[0x0],_0x7f2eff[_0x4da01a('0x1a64')]['clientEmail']=_0x2f72af[0x1],_0x7f2eff[_0x4da01a('0x1a64')]['privateKey']=_0x2f72af[0x2],_0x7f2eff[_0x4da01a('0x1a64')]['language']=_0x2f72af[0x3],_0x7f2eff['outbounddial'][_0x4da01a('0x1cbc')]=_0x2f72af[_0x4da01a('0x1b77')](0x4,_0x2f72af[_0x4da01a('0x1e22')])[_0x4da01a('0xa04')](',');}break;case _0x4da01a('0x102c'):{const _0x2eb5b3=_0x7f2eff[_0x4da01a('0x1a64')][_0x4da01a('0x13fc')][_0x4da01a('0xaf8')](',');_0x7f2eff[_0x4da01a('0x1a64')][_0x4da01a('0x1a82')]=_0x2eb5b3[0x0],_0x7f2eff[_0x4da01a('0x1a64')][_0x4da01a('0x1422')]=_0x2eb5b3[0x1],_0x7f2eff[_0x4da01a('0x1a64')][_0x4da01a('0x165a')]=_0x2eb5b3[0x2],_0x7f2eff['outbounddial']['botname']=_0x2eb5b3[0x3],_0x7f2eff[_0x4da01a('0x1a64')][_0x4da01a('0x1cbc')]=_0x2eb5b3[_0x4da01a('0x1b77')](0x4,_0x2eb5b3['length'])[_0x4da01a('0xa04')](',');}break;case _0x4da01a('0x187b'):{const _0x3f5fad=_0x7f2eff['outbounddial'][_0x4da01a('0x13fc')]['split'](',');_0x7f2eff[_0x4da01a('0x1a64')][_0x4da01a('0x663')]=isNaN(_0x3f5fad[0x0])?_0x3f5fad[0x0]:parseInt(_0x3f5fad[0x0],0xa),_0x7f2eff['outbounddial'][_0x4da01a('0x25ed')]=_0x3f5fad[_0x4da01a('0x1b77')](0x1,_0x3f5fad[_0x4da01a('0x1e22')])[_0x4da01a('0xa04')](',');}break;case _0x4da01a('0x1b86'):_0x7f2eff[_0x4da01a('0x1a64')]['text']=_0x7f2eff[_0x4da01a('0x1a64')][_0x4da01a('0x13fc')];break;case _0x4da01a('0xe50'):_0x7f2eff[_0x4da01a('0x1a64')]['name']=_0x7f2eff[_0x4da01a('0x1a64')]['appdata']['split']('=')[0x0],_0x7f2eff['outbounddial'][_0x4da01a('0x10cc')]=_0x7f2eff[_0x4da01a('0x1a64')][_0x4da01a('0x13fc')][_0x4da01a('0xaf8')]('=')[0x1];break;case _0x4da01a('0x1efd'):_0x7f2eff[_0x4da01a('0x1a64')]['project']=_0x7f2eff[_0x4da01a('0x1a64')]['appdata'];break;default:{const _0x561329=_0x7f2eff[_0x4da01a('0x1a64')][_0x4da01a('0x13fc')][_0x4da01a('0xaf8')](',');_0x7f2eff[_0x4da01a('0x1a64')][_0x4da01a('0x264e')]=_0x561329[0x0][_0x4da01a('0xaf8')]('/')[0x1],_0x7f2eff['outbounddial'][_0x4da01a('0x1546')]=_0x561329[0x0][_0x4da01a('0xaf8')]('/')[0x2],_0x7f2eff['outbounddial'][_0x4da01a('0xfbe')]=_0x36f548()[_0x4da01a('0x1fc5')](_0x561329[0x1])?_0x561329[0x1]:isNaN(_0x561329[0x1])?_0x561329[0x1]:parseInt(_0x561329[0x1],0xa),_0x7f2eff[_0x4da01a('0x1a64')][_0x4da01a('0x249a')]=_0x36f548()[_0x4da01a('0x1fc5')](_0x561329[0x2])?_0x561329[0x2]:isNaN(_0x561329[0x2])?_0x561329[0x2]:parseInt(_0x561329[0x2],0xa),_0x7f2eff[_0x4da01a('0x1a64')][_0x4da01a('0x259e')]=_0x36f548()[_0x4da01a('0x1fc5')](_0x561329[0x3])?_0x561329[0x3]:isNaN(_0x561329[0x3])?_0x561329[0x3]:parseInt(_0x561329[0x3],0xa);}break;}else{}_0x7f2eff['outbounddial']['type']&&_0x7f2eff['outbounddial'][_0x4da01a('0x19fd')][_0x4da01a('0x20d5')]()===_0x4da01a('0x25b6')&&_0x7f2eff[_0x4da01a('0x1a64')][_0x4da01a('0x27c0')][_0x4da01a('0x20d5')]()===_0x4da01a('0x1a64')&&(_0x7f2eff[_0x4da01a('0x1a64')][_0x4da01a('0x2137')]=_0x7f2eff[_0x4da01a('0x1a64')]['phone']?_0x7f2eff['outbounddial'][_0x4da01a('0x1546')]['split']('$')[0x0]:undefined,_0x7f2eff[_0x4da01a('0x1a64')][_0x4da01a('0x7d0')]=_0x7f2eff[_0x4da01a('0x1a64')][_0x4da01a('0xc38')]?_0x4da01a('0x83a')+_0x7f2eff[_0x4da01a('0x1a64')]['callerID']:undefined);_0x7f2eff[_0x4da01a('0x21e3')]=_0x5d775a,_0x7f2eff[_0x4da01a('0xc4e')]=_0x5803e2,_0x207606[_0x4da01a('0x4ee')](_0x4da01a('0xf45'))?_0x13ec55[_0x4da01a('0x264e')][_0x4da01a('0xbaa')]({'fields':_0x4da01a('0x721'),'sort':_0x4da01a('0x1909'),'nolimit':_0x4da01a('0x204c')})['$promise'][_0x4da01a('0x11bf')](function(_0xae05fb){const _0x5d2cf8=_0x4da01a;_0x7f2eff[_0x5d2cf8('0x1b24')]=_0xae05fb[_0x5d2cf8('0x19b2')]||[];})[_0x4da01a('0x151d')](function(_0x4e58e8){const _0x13bd44=_0x4da01a;_0x4b999a[_0x13bd44('0x255')]({'title':_0x4e58e8[_0x13bd44('0xff9')]?_0x13bd44('0x574')+_0x4e58e8[_0x13bd44('0xff9')]+_0x13bd44('0xb0b')+_0x4e58e8[_0x13bd44('0x212f')]:_0x13bd44('0x35f'),'msg':_0x4e58e8[_0x13bd44('0x4e8')]?JSON[_0x13bd44('0x3e')](_0x4e58e8[_0x13bd44('0x4e8')]):_0x4e58e8[_0x13bd44('0xaab')]()});}):_0x13ec55[_0x4da01a('0x264e')][_0x4da01a('0xbaa')]({'fields':_0x4da01a('0x721'),'sort':_0x4da01a('0x1909'),'nolimit':_0x4da01a('0x204c')})['$promise']['then'](function(_0x62fa59){const _0x231583=_0x4da01a;_0x7f2eff[_0x231583('0x1b24')]=_0x62fa59[_0x231583('0x19b2')]||[];})['then'](function(){const _0xf0f53a=_0x4da01a;return _0x13ec55['userProfileSection'][_0xf0f53a('0xbaa')]({'userProfileId':_0x7f2eff['currentUser'][_0xf0f53a('0x781')],'sectionId':0x3f3})[_0xf0f53a('0x1549')];})['then'](function(_0x1cb6fb){const _0x38cf14=_0x4da01a,_0x3d7117=_0x1cb6fb&&_0x1cb6fb[_0x38cf14('0x19b2')]?_0x1cb6fb[_0x38cf14('0x19b2')][0x0]:null;if(!_0x3d7117){const _0x5d4698=[];let _0x50e01b=null;_0x7f2eff[_0x38cf14('0x1a64')]&&(_0x50e01b=_0x36f548()[_0x38cf14('0x1ad4')](_0x7f2eff[_0x38cf14('0x1b24')],{'name':_0x7f2eff[_0x38cf14('0x1a64')][_0x38cf14('0x264e')]}));for(let _0x5b0174=0x0;_0x5b0174<_0x7f2eff[_0x38cf14('0x1b24')][_0x38cf14('0x1e22')];_0x5b0174++){_0x50e01b&&_0x7f2eff[_0x38cf14('0x1b24')][_0x5b0174]['id']===_0x50e01b['id']&&(_0x7f2eff[_0x38cf14('0x1b24')][_0x5b0174][_0x38cf14('0x254a')]=![],_0x5d4698[_0x38cf14('0x105d')](_0x7f2eff['trunks'][_0x5b0174]));}_0x7f2eff[_0x38cf14('0x1b24')]=_0x5d4698;}else{if(!_0x3d7117[_0x38cf14('0xf11')])return _0x13ec55[_0x38cf14('0x26d1')][_0x38cf14('0xbaa')]({'sectionId':_0x3d7117['id']})['$promise'][_0x38cf14('0x11bf')](function(_0x6942f6){const _0x8e7bac=_0x38cf14,_0x22010b=_0x36f548()[_0x8e7bac('0x2171')](_0x6942f6[_0x8e7bac('0x19b2')],function(_0x3125c4){const _0x42644f=_0x8e7bac;return _0x36f548()[_0x42644f('0x1ad4')](_0x7f2eff['trunks'],{'id':_0x3125c4[_0x42644f('0x15a5')]});});let _0x201fcf=null;_0x7f2eff[_0x8e7bac('0x1a64')]&&(_0x201fcf=_0x36f548()['find'](_0x7f2eff[_0x8e7bac('0x1b24')],{'name':_0x7f2eff['outbounddial'][_0x8e7bac('0x264e')]}));if(_0x201fcf&&!_0x36f548()['some'](_0x22010b,['id',_0x201fcf['id']])){const _0x492786=_0x36f548()['find'](_0x7f2eff[_0x8e7bac('0x1b24')],{'id':_0x201fcf['id']});_0x492786[_0x8e7bac('0x254a')]=![],_0x22010b[_0x8e7bac('0x105d')](_0x492786);}_0x7f2eff[_0x8e7bac('0x1b24')]=_0x22010b;});}})[_0x4da01a('0x151d')](function(_0x3fda69){const _0x53d30d=_0x4da01a;_0x4b999a[_0x53d30d('0x255')]({'title':_0x3fda69[_0x53d30d('0xff9')]?_0x53d30d('0x574')+_0x3fda69['status']+_0x53d30d('0xb0b')+_0x3fda69[_0x53d30d('0x212f')]:_0x53d30d('0xf39'),'msg':_0x3fda69[_0x53d30d('0x4e8')]?JSON[_0x53d30d('0x3e')](_0x3fda69[_0x53d30d('0x4e8')]):_0x3fda69[_0x53d30d('0xaab')]()});}),_0x207606[_0x4da01a('0x4ee')]('admin')?_0x13ec55[_0x4da01a('0x1d73')][_0x4da01a('0xbaa')]({'fields':_0x4da01a('0x721'),'sort':'name','nolimit':'true'})['$promise'][_0x4da01a('0x11bf')](function(_0x4aad5a){const _0x27246a=_0x4da01a;_0x7f2eff[_0x27246a('0x2763')]=_0x4aad5a[_0x27246a('0x19b2')]||[];})[_0x4da01a('0x151d')](function(_0x3c3825){const _0x284788=_0x4da01a;_0x4b999a[_0x284788('0x255')]({'title':_0x3c3825[_0x284788('0xff9')]?_0x284788('0x574')+_0x3c3825[_0x284788('0xff9')]+_0x284788('0xb0b')+_0x3c3825[_0x284788('0x212f')]:_0x284788('0x1138'),'msg':_0x3c3825[_0x284788('0x4e8')]?JSON[_0x284788('0x3e')](_0x3c3825[_0x284788('0x4e8')]):_0x3c3825[_0x284788('0xaab')]()});}):_0x13ec55[_0x4da01a('0x1d73')][_0x4da01a('0xbaa')]({'fields':_0x4da01a('0x721'),'sort':'name','nolimit':_0x4da01a('0x204c')})[_0x4da01a('0x1549')]['then'](function(_0x1a6187){const _0x5ec661=_0x4da01a;_0x7f2eff[_0x5ec661('0x2763')]=_0x1a6187['rows']||[];})[_0x4da01a('0x11bf')](function(){const _0x17896e=_0x4da01a;return _0x13ec55['userProfileSection']['get']({'userProfileId':_0x7f2eff[_0x17896e('0x32a')][_0x17896e('0x781')],'sectionId':0x3f0})[_0x17896e('0x1549')];})['then'](function(_0xc42f0d){const _0xd1e12f=_0x4da01a,_0x4c9643=_0xc42f0d&&_0xc42f0d[_0xd1e12f('0x19b2')]?_0xc42f0d['rows'][0x0]:null;if(!_0x4c9643){const _0x398e44=[];let _0x262414=null;_0x7f2eff['outbounddial']&&(_0x262414=_0x36f548()[_0xd1e12f('0x1ad4')](_0x7f2eff['tags'],{'name':_0x7f2eff[_0xd1e12f('0x1a64')][_0xd1e12f('0x1d73')]}));for(let _0x1b3b6f=0x0;_0x1b3b6f<_0x7f2eff[_0xd1e12f('0x2763')][_0xd1e12f('0x1e22')];_0x1b3b6f++){_0x262414&&_0x7f2eff[_0xd1e12f('0x2763')][_0x1b3b6f]['id']===_0x262414['id']&&(_0x7f2eff['tags'][_0x1b3b6f][_0xd1e12f('0x254a')]=![],_0x398e44['push'](_0x7f2eff[_0xd1e12f('0x2763')][_0x1b3b6f]));}_0x7f2eff['tags']=_0x398e44;}else{if(!_0x4c9643[_0xd1e12f('0xf11')])return _0x13ec55['userProfileResource'][_0xd1e12f('0xbaa')]({'sectionId':_0x4c9643['id']})['$promise'][_0xd1e12f('0x11bf')](function(_0x489392){const _0x4df262=_0xd1e12f,_0xbc213e=_0x36f548()[_0x4df262('0x2171')](_0x489392[_0x4df262('0x19b2')],function(_0x5f454b){const _0xe15ac1=_0x4df262;return _0x36f548()[_0xe15ac1('0x1ad4')](_0x7f2eff[_0xe15ac1('0x2763')],{'id':_0x5f454b[_0xe15ac1('0x15a5')]});});let _0x4fa728=null;_0x7f2eff[_0x4df262('0x1a64')]&&(_0x4fa728=_0x36f548()[_0x4df262('0x1ad4')](_0x7f2eff['tags'],{'name':_0x7f2eff['outbounddial'][_0x4df262('0x1d73')]}));if(_0x4fa728&&!_0x36f548()['some'](_0xbc213e,['id',_0x4fa728['id']])){const _0x1c755d=_0x36f548()[_0x4df262('0x1ad4')](_0x7f2eff[_0x4df262('0x2763')],{'id':_0x4fa728['id']});_0x1c755d[_0x4df262('0x254a')]=![],_0xbc213e[_0x4df262('0x105d')](_0x1c755d);}_0x7f2eff[_0x4df262('0x2763')]=_0xbc213e;});}})['catch'](function(_0x5ebd6e){const _0x25be34=_0x4da01a;_0x4b999a[_0x25be34('0x255')]({'title':_0x5ebd6e[_0x25be34('0xff9')]?_0x25be34('0x574')+_0x5ebd6e[_0x25be34('0xff9')]+'\x20-\x20'+_0x5ebd6e[_0x25be34('0x212f')]:_0x25be34('0xb3e'),'msg':_0x5ebd6e[_0x25be34('0x4e8')]?JSON[_0x25be34('0x3e')](_0x5ebd6e[_0x25be34('0x4e8')]):_0x5ebd6e[_0x25be34('0xaab')]()});});function _0x5d775a(){const _0x5afbe3=_0x4da01a;_0x7f2eff[_0x5afbe3('0x120f')]=[];const _0x2dde2a=[];_0x7f2eff['outbounddial'][_0x5afbe3('0x19fd')]&&_0x7f2eff[_0x5afbe3('0x1a64')][_0x5afbe3('0x19fd')][_0x5afbe3('0x20d5')]()===_0x5afbe3('0x25b6')&&_0x7f2eff['outbounddial'][_0x5afbe3('0x27c0')]==='outboundDial'&&(_0x7f2eff[_0x5afbe3('0x1a64')]['phone']=_0x40ad38[_0x5afbe3('0x388')]?(_0x7f2eff['outbounddial']['prefix']||'')+_0x5afbe3('0x2100')+_0x40ad38['cutdigits']+'}':(_0x7f2eff['outbounddial'][_0x5afbe3('0x2137')]||'')+_0x5afbe3('0x1f76'),_0x40ad38[_0x5afbe3('0x897')]!=='none'?_0x7f2eff[_0x5afbe3('0x1a64')][_0x5afbe3('0x249a')][_0x5afbe3('0x203c')](_0x5afbe3('0x22c9'))<0x0&&(_0x7f2eff[_0x5afbe3('0x1a64')][_0x5afbe3('0x249a')]+=_0x5afbe3('0x22c9')):_0x7f2eff[_0x5afbe3('0x1a64')][_0x5afbe3('0x249a')]=_0x7f2eff[_0x5afbe3('0x1a64')][_0x5afbe3('0x249a')][_0x5afbe3('0x814')](_0x5afbe3('0x22c9'),''));if(_0x7f2eff[_0x5afbe3('0x1a64')][_0x5afbe3('0x27c0')]&&_0x7f2eff[_0x5afbe3('0x1a64')][_0x5afbe3('0x27c0')]===_0x5afbe3('0xa8d')){}else switch((_0x7f2eff[_0x5afbe3('0x1a64')][_0x5afbe3('0x18f5')]||_0x7f2eff[_0x5afbe3('0x1a64')][_0x5afbe3('0x27c0')])[_0x5afbe3('0x20d5')]()){case _0x5afbe3('0xe50'):_0x7f2eff['outbounddial'][_0x5afbe3('0x13fc')]=_0x7f2eff[_0x5afbe3('0x1a64')][_0x5afbe3('0x1909')]+'='+_0x7f2eff[_0x5afbe3('0x1a64')]['value'];break;case _0x5afbe3('0xa8d'):break;default:_0x2dde2a[0x0]=[_0x5afbe3('0xd74'),_0x7f2eff[_0x5afbe3('0x1a64')][_0x5afbe3('0x264e')],_0x7f2eff[_0x5afbe3('0x1a64')][_0x5afbe3('0x1546')]]['join']('/'),_0x2dde2a[0x1]=_0x7f2eff['outbounddial'][_0x5afbe3('0xfbe')],_0x2dde2a[0x2]=_0x7f2eff['outbounddial']['options'],_0x2dde2a[0x3]=_0x7f2eff['outbounddial']['url'],_0x7f2eff[_0x5afbe3('0x1a64')][_0x5afbe3('0x13fc')]=_0x2dde2a[_0x5afbe3('0xa04')](',');}_0x5803e2(_0x7f2eff[_0x5afbe3('0x1a64')]);}function _0x5803e2(_0x402a1b){const _0x356610=_0x4da01a;_0x1bb617[_0x356610('0x237e')](_0x402a1b);}}const _0x28078b=_0x133bf2;_0x398749[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0xcbc'),'$location','$mdDialog',_0x21d0f5('0x1b30'),_0x21d0f5('0xb6b'),_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1'),'api',_0x21d0f5('0x142d'),_0x21d0f5('0x1150'),_0x21d0f5('0x1790'),_0x21d0f5('0x1d63')];function _0x398749(_0x23d609,_0x16ea88,_0x16818c,_0x2d8c93,_0x1592f4,_0x1940dd,_0x3cd9ab,_0x57ad0a,_0x12a008,_0x95fe7,_0x235673,_0x4361fa){const _0x3d73dc=_0x21d0f5,_0x5662e1=this;_0x5662e1[_0x3d73dc('0x32a')]=_0x95fe7[_0x3d73dc('0x2428')](),_0x5662e1[_0x3d73dc('0x17ff')]=_0x1940dd,_0x5662e1[_0x3d73dc('0x23e1')]=_0x3cd9ab,_0x5662e1[_0x3d73dc('0x2834')]=_0x5662e1[_0x3d73dc('0x23e1')][_0x3d73dc('0x1d4')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x5662e1[_0x3d73dc('0x1d9a')]=_0x16ea88[_0x3d73dc('0x1797')]()+_0x3d73dc('0x16a1')+_0x16ea88[_0x3d73dc('0x14ec')](),_0x5662e1[_0x3d73dc('0x1790')]=_0x235673||_0x23d609['params'][_0x3d73dc('0x1790')]||{},_0x5662e1[_0x3d73dc('0x1d63')]=_0x4361fa&&_0x4361fa['count']==0x1?_0x4361fa['rows'][0x0]:null,_0x5662e1['crudPermissions']=_0x95fe7[_0x3d73dc('0x1530')](_0x5662e1[_0x3d73dc('0x1d63')]?_0x5662e1[_0x3d73dc('0x1d63')][_0x3d73dc('0xb25')]:null),_0x5662e1[_0x3d73dc('0x2c9')]={},_0x5662e1['selectedTab']=_0x23d609[_0x3d73dc('0x1ab3')][_0x3d73dc('0x205c')]||0x0,_0x5662e1['alert']=_0x12a008[_0x3d73dc('0x870')],_0x5662e1['gotoOutboundRoutes']=_0x343e74,_0x5662e1[_0x3d73dc('0xfb7')]=_0x3a66c9,_0x95fe7['hasRole'](_0x3d73dc('0xf45'))?_0x57ad0a[_0x3d73dc('0x1279')][_0x3d73dc('0xbaa')]({'fields':_0x3d73dc('0x721'),'sort':_0x3d73dc('0x1909'),'nolimit':_0x3d73dc('0x204c')})['$promise'][_0x3d73dc('0x11bf')](function(_0x11bee8){const _0x446fbc=_0x3d73dc;_0x5662e1[_0x446fbc('0x803')]=_0x11bee8['rows']||[];})['catch'](function(_0x1ce630){const _0x38647d=_0x3d73dc;_0x12a008[_0x38647d('0x255')]({'title':_0x1ce630['status']?_0x38647d('0x574')+_0x1ce630[_0x38647d('0xff9')]+_0x38647d('0xb0b')+_0x1ce630[_0x38647d('0x212f')]:'SYSTEM:GET_CONTEXTS','msg':_0x1ce630[_0x38647d('0x4e8')]?JSON['stringify'](_0x1ce630['data']):_0x1ce630[_0x38647d('0xaab')]()});}):_0x57ad0a[_0x3d73dc('0x1279')][_0x3d73dc('0xbaa')]({'fields':'id,name','sort':_0x3d73dc('0x1909'),'nolimit':'true'})[_0x3d73dc('0x1549')][_0x3d73dc('0x11bf')](function(_0x1ae555){const _0x5b53cc=_0x3d73dc;_0x5662e1[_0x5b53cc('0x803')]=_0x1ae555[_0x5b53cc('0x19b2')]||[];})[_0x3d73dc('0x11bf')](function(){const _0x3370fb=_0x3d73dc;return _0x57ad0a[_0x3370fb('0x1d63')][_0x3370fb('0xbaa')]({'userProfileId':_0x5662e1['currentUser'][_0x3370fb('0x781')],'sectionId':0x195})[_0x3370fb('0x1549')];})[_0x3d73dc('0x11bf')](function(_0x2bdb31){const _0x3b661b=_0x3d73dc,_0x40b9b3=_0x2bdb31&&_0x2bdb31[_0x3b661b('0x19b2')]?_0x2bdb31['rows'][0x0]:null;if(!_0x40b9b3)return _0x57ad0a[_0x3b661b('0x1279')][_0x3b661b('0xbaa')]({'fields':_0x3b661b('0x721'),'sort':_0x3b661b('0x1909'),'nolimit':_0x3b661b('0x204c'),'defaultEntry':0x1})[_0x3b661b('0x1549')]['then'](function(_0x4fa904){const _0xc193a6=_0x3b661b;_0x5662e1[_0xc193a6('0x803')]=_0x4fa904[_0xc193a6('0x19b2')]||[];});else{if(!_0x40b9b3[_0x3b661b('0xf11')])return _0x57ad0a[_0x3b661b('0x26d1')]['get']({'sectionId':_0x40b9b3['id']})[_0x3b661b('0x1549')][_0x3b661b('0x11bf')](function(_0x487573){const _0x3a2136=_0x3b661b,_0x21319e=_0x36f548()[_0x3a2136('0x2171')](_0x487573['rows'],function(_0x597283){const _0xbda98=_0x3a2136;return _0x36f548()[_0xbda98('0x1ad4')](_0x5662e1['contexts'],{'id':_0x597283['resourceId']});});let _0x2f478b=null;_0x5662e1[_0x3a2136('0x1790')]&&(_0x2f478b=_0x36f548()[_0x3a2136('0x1ad4')](_0x5662e1[_0x3a2136('0x803')],{'name':_0x5662e1['outboundroute'][_0x3a2136('0x1c87')]}));if(_0x2f478b&&!_0x36f548()[_0x3a2136('0x1cb3')](_0x21319e,['id',_0x2f478b['id']])){const _0x29d422=_0x36f548()['find'](_0x5662e1[_0x3a2136('0x803')],{'id':_0x2f478b['id']});_0x29d422[_0x3a2136('0x254a')]=![],_0x21319e[_0x3a2136('0x105d')](_0x29d422);}_0x5662e1[_0x3a2136('0x803')]=_0x21319e;});}})['catch'](function(_0x46f236){const _0x246103=_0x3d73dc;_0x12a008['error']({'title':_0x46f236[_0x246103('0xff9')]?_0x246103('0x574')+_0x46f236[_0x246103('0xff9')]+_0x246103('0xb0b')+_0x46f236[_0x246103('0x212f')]:_0x246103('0x1280'),'msg':_0x46f236[_0x246103('0x4e8')]?JSON['stringify'](_0x46f236[_0x246103('0x4e8')]):_0x46f236[_0x246103('0xaab')]()});});function _0x343e74(){const _0x5d6a1d=_0x3d73dc;_0x23d609['go']('app.voice.outboundroutes',{},{'reload':_0x5d6a1d('0x13fe')});}function _0x3a66c9(){const _0x5d9be6=_0x3d73dc;_0x57ad0a[_0x5d9be6('0x417')][_0x5d9be6('0x5ab')]({'id':_0x5662e1[_0x5d9be6('0x1790')]['id']},_0x5662e1[_0x5d9be6('0x1790')])[_0x5d9be6('0x1549')]['then'](function(){const _0x17613b=_0x5d9be6;_0x12a008[_0x17613b('0x2693')]({'title':_0x17613b('0xb67'),'msg':_0x5662e1['outboundroute'][_0x17613b('0x1909')]?_0x5662e1['outboundroute'][_0x17613b('0x1909')]+_0x17613b('0xd7'):''});})[_0x5d9be6('0x151d')](function(_0x1b34c0){const _0x5d7270=_0x5d9be6;_0x12a008[_0x5d7270('0x255')]({'title':_0x1b34c0[_0x5d7270('0xff9')]?_0x5d7270('0x574')+_0x1b34c0[_0x5d7270('0xff9')]+_0x5d7270('0xb0b')+_0x1b34c0['statusText']:_0x5d7270('0xc3d'),'msg':_0x1b34c0['data']?JSON[_0x5d7270('0x3e')](_0x1b34c0[_0x5d7270('0x4e8')]):_0x1b34c0[_0x5d7270('0xaab')]()});});}}const _0x4b04d6=_0x398749,_0xd51230=_0x351988['p']+'src/js/modules/main/apps/voice/views/outboundroutes/create/dialog.html/dialog.html';_0x6fd279[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0x2143'),_0x21d0f5('0xcbc'),'$mdSidenav',_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),_0x21d0f5('0x17f5'),_0x21d0f5('0xb6b'),_0x21d0f5('0x10ee'),_0x21d0f5('0x25bc'),_0x21d0f5('0x1d63'),_0x21d0f5('0x12a5'),_0x21d0f5('0xda9'),_0x21d0f5('0x142d'),_0x21d0f5('0x1150'),_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1')];function _0x6fd279(_0x174dd5,_0x83f78b,_0x394ad1,_0x241dc2,_0x39ee2a,_0x419309,_0x233653,_0x1194ac,_0x4211d7,_0x266814,_0xd9c1be,_0x4beb46,_0x11e384,_0x30dcd4,_0x14e758,_0x107c6f,_0x4ae6cc){const _0x2c1d21=_0x21d0f5,_0x3a2403=this;_0x3a2403['license']=_0x107c6f,_0x3a2403[_0x2c1d21('0x23e1')]=_0x4ae6cc,_0x3a2403[_0x2c1d21('0x32a')]=_0x14e758['getCurrentUser'](),_0x3a2403['outboundroutes']=_0x4211d7||{'count':0x0,'rows':[]},_0x3a2403[_0x2c1d21('0x25bc')]=_0x266814,_0x3a2403['userProfileSection']=_0xd9c1be&&_0xd9c1be[_0x2c1d21('0x27d2')]==0x1?_0xd9c1be[_0x2c1d21('0x19b2')][0x0]:null,_0x3a2403['crudPermissions']=_0x14e758[_0x2c1d21('0x1530')](_0x3a2403[_0x2c1d21('0x1d63')]?_0x3a2403['userProfileSection']['crudPermissions']:null),_0x3a2403[_0x2c1d21('0x13e8')]=_0x2c1d21('0x10ee'),_0x3a2403[_0x2c1d21('0x724')]='',_0x3a2403[_0x2c1d21('0xe3c')]=null,_0x3a2403[_0x2c1d21('0x453')]=[],_0x3a2403[_0x2c1d21('0x1f2a')]={'fields':'createdAt,updatedAt,id,appdata,type,exten,context,recordingFormat,cutdigits,description','type':_0x2c1d21('0x25b6'),'sort':_0x2c1d21('0x1c74'),'VoiceExtensionId':_0x2c1d21('0xb5f'),'limit':0xa,'page':0x1},_0x3a2403[_0x2c1d21('0xb45')]=_0x36f548()[_0x2c1d21('0x2130')]([{'option':_0x2c1d21('0x3e6'),'value':_0x2c1d21('0x2329')},{'option':_0x2c1d21('0x519'),'value':_0x2c1d21('0x20ce')},{'option':'wav49','value':_0x2c1d21('0x116c')},{'option':_0x2c1d21('0x3da'),'value':_0x2c1d21('0x5af')}],function(_0x567891){const _0x2e413e=_0x2c1d21;return _0x36f548()[_0x2e413e('0x814')](_0x567891['value'],new RegExp('\x27','g'),'');}),_0x3a2403['editstate']=_0x9b0352,_0x3a2403[_0x2c1d21('0x549')]=_0x201329,_0x3a2403['success']=_0x2ad30f,_0x3a2403[_0x2c1d21('0x1654')]=_0x3e013d,_0x3a2403['createOrEditOutboundRoute']=_0x59edf4,_0x3a2403[_0x2c1d21('0x124a')]=_0x3cbe93,_0x3a2403[_0x2c1d21('0x18a6')]=_0x58e62f,_0x3a2403[_0x2c1d21('0x996')]=_0x3f8546,_0x3a2403[_0x2c1d21('0x12ed')]=_0x421c85,_0x3a2403['selectAllOutboundRoutes']=_0x4a8c01,_0x14e758[_0x2c1d21('0x4ee')](_0x2c1d21('0xf45'))?_0x4beb46['voiceContext'][_0x2c1d21('0xbaa')]({'fields':_0x2c1d21('0x721'),'sort':_0x2c1d21('0x1909'),'nolimit':'true'})[_0x2c1d21('0x1549')][_0x2c1d21('0x11bf')](function(_0x130511){const _0x36b62c=_0x2c1d21;_0x3a2403['contexts']=_0x130511[_0x36b62c('0x19b2')]||[];})['catch'](function(_0x16a73d){const _0x216654=_0x2c1d21;_0x30dcd4[_0x216654('0x255')]({'title':_0x16a73d[_0x216654('0xff9')]?_0x216654('0x574')+_0x16a73d[_0x216654('0xff9')]+'\x20-\x20'+_0x16a73d[_0x216654('0x212f')]:'SYSTEM:GET_CONTEXTS','msg':_0x16a73d[_0x216654('0x4e8')]?JSON[_0x216654('0x3e')](_0x16a73d[_0x216654('0x4e8')]):_0x16a73d[_0x216654('0xaab')]()});}):_0x4beb46[_0x2c1d21('0x1279')]['get']({'fields':_0x2c1d21('0x721'),'sort':_0x2c1d21('0x1909'),'nolimit':_0x2c1d21('0x204c')})[_0x2c1d21('0x1549')][_0x2c1d21('0x11bf')](function(_0x25b496){const _0x5de664=_0x2c1d21;_0x3a2403[_0x5de664('0x803')]=_0x25b496['rows']||[];})['then'](function(){const _0x34d234=_0x2c1d21;return _0x4beb46[_0x34d234('0x1d63')]['get']({'userProfileId':_0x3a2403[_0x34d234('0x32a')][_0x34d234('0x781')],'sectionId':0x195})['$promise'];})['then'](function(_0x54a29f){const _0x11ec78=_0x2c1d21,_0x506da9=_0x54a29f&&_0x54a29f[_0x11ec78('0x19b2')]?_0x54a29f['rows'][0x0]:null;if(!_0x506da9)return _0x4beb46['voiceContext']['get']({'fields':_0x11ec78('0x721'),'sort':_0x11ec78('0x1909'),'nolimit':_0x11ec78('0x204c'),'defaultEntry':0x1})['$promise']['then'](function(_0x5bb1de){const _0x9c74b2=_0x11ec78;_0x3a2403[_0x9c74b2('0x803')]=_0x5bb1de[_0x9c74b2('0x19b2')]||[];});else{if(!_0x506da9[_0x11ec78('0xf11')])return _0x4beb46[_0x11ec78('0x26d1')][_0x11ec78('0xbaa')]({'sectionId':_0x506da9['id']})[_0x11ec78('0x1549')][_0x11ec78('0x11bf')](function(_0x4291ae){const _0x27add6=_0x11ec78,_0x2ecc5d=_0x36f548()[_0x27add6('0x2171')](_0x4291ae[_0x27add6('0x19b2')],function(_0x2ec159){const _0x3950a3=_0x27add6;return _0x36f548()[_0x3950a3('0x1ad4')](_0x3a2403[_0x3950a3('0x803')],{'id':_0x2ec159[_0x3950a3('0x15a5')]});});let _0x52bb5b=null;_0x3a2403[_0x27add6('0x1790')]&&(_0x52bb5b=_0x36f548()[_0x27add6('0x1ad4')](_0x3a2403[_0x27add6('0x803')],{'name':_0x3a2403['outboundroute'][_0x27add6('0x1c87')]}));if(_0x52bb5b&&!_0x36f548()[_0x27add6('0x1cb3')](_0x2ecc5d,['id',_0x52bb5b['id']])){const _0x476b8b=_0x36f548()['find'](_0x3a2403['contexts'],{'id':_0x52bb5b['id']});_0x476b8b[_0x27add6('0x254a')]=![],_0x2ecc5d[_0x27add6('0x105d')](_0x476b8b);}_0x3a2403[_0x27add6('0x803')]=_0x2ecc5d;});}})['catch'](function(_0x19e06b){const _0x9ffd38=_0x2c1d21;_0x30dcd4['error']({'title':_0x19e06b[_0x9ffd38('0xff9')]?_0x9ffd38('0x574')+_0x19e06b[_0x9ffd38('0xff9')]+_0x9ffd38('0xb0b')+_0x19e06b[_0x9ffd38('0x212f')]:_0x9ffd38('0x1280'),'msg':_0x19e06b[_0x9ffd38('0x4e8')]?JSON[_0x9ffd38('0x3e')](_0x19e06b[_0x9ffd38('0x4e8')]):_0x19e06b[_0x9ffd38('0xaab')]()});});function _0x9b0352(_0x1556b8){const _0x30ac24=_0x2c1d21;_0x394ad1['go']('app.voice.outboundroutes.edit',{'id':_0x1556b8['id'],'outboundroute':_0x1556b8,'crudPermissions':_0x3a2403[_0x30ac24('0xb25')]});}function _0x201329(_0x6bd4dc,_0x573b8d){const _0x55a3f5=_0x2c1d21,_0x4d2276=_0x39ee2a[_0x55a3f5('0x132b')]()[_0x55a3f5('0x134b')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x36f548()[_0x55a3f5('0x13cf')](_0x55a3f5('0x1790'))+'?')['htmlContent'](_0x55a3f5('0x2061')+(_0x6bd4dc[_0x55a3f5('0x1909')]||_0x55a3f5('0x1790'))+''+_0x55a3f5('0x1a'))[_0x55a3f5('0xb2e')](_0x55a3f5('0x1ade'))[_0x55a3f5('0x1e25')](_0x573b8d)['ok']('OK')[_0x55a3f5('0x26c9')](_0x55a3f5('0x772'));_0x39ee2a[_0x55a3f5('0xb9')](_0x4d2276)[_0x55a3f5('0x11bf')](function(){_0x3cbe93(_0x6bd4dc);},function(){const _0x2edd76=_0x55a3f5;console['log'](_0x2edd76('0x772'));});}let _0x3bd8f3=!![],_0x399b5c=0x1;_0x174dd5[_0x2c1d21('0x2087')](_0x2c1d21('0x842'),function(_0x1c7493,_0x5d17a4){const _0x883be6=_0x2c1d21;_0x3bd8f3?_0x233653(function(){_0x3bd8f3=![];}):(!_0x5d17a4&&(_0x399b5c=_0x3a2403['query'][_0x883be6('0x1c2')]),_0x1c7493!==_0x5d17a4&&(_0x3a2403[_0x883be6('0x1f2a')]['page']=0x1),!_0x1c7493&&(_0x3a2403['query'][_0x883be6('0x1c2')]=_0x399b5c),_0x3a2403[_0x883be6('0x1654')]());});function _0x2ad30f(_0x2f8c8c){const _0x34d5ec=_0x2c1d21;_0x3a2403[_0x34d5ec('0x10ee')]=_0x2f8c8c||{'count':0x0,'rows':[]};}function _0x3e013d(){const _0x4f9163=_0x2c1d21;_0x3a2403[_0x4f9163('0x1f2a')][_0x4f9163('0x1393')]=(_0x3a2403[_0x4f9163('0x1f2a')][_0x4f9163('0x1c2')]-0x1)*_0x3a2403[_0x4f9163('0x1f2a')][_0x4f9163('0xd5c')],_0x14e758[_0x4f9163('0x4ee')]('admin')?_0x3a2403[_0x4f9163('0x13f')]=_0x4beb46[_0x4f9163('0x417')][_0x4f9163('0xbaa')](_0x3a2403['query'],_0x2ad30f)[_0x4f9163('0x1549')]:(_0x3a2403[_0x4f9163('0x1f2a')]['id']=_0x3a2403['userProfile']['id'],_0x3a2403[_0x4f9163('0x1f2a')]['section']='OutboundRoutes',_0x3a2403[_0x4f9163('0x13f')]=_0x4beb46[_0x4f9163('0x25bc')][_0x4f9163('0x228e')](_0x3a2403[_0x4f9163('0x1f2a')],_0x2ad30f)[_0x4f9163('0x1549')]);}function _0x59edf4(_0x1ee93c,_0x38bb86){const _0x3ac569=_0x2c1d21;_0x39ee2a[_0x3ac569('0xb9')]({'controller':_0x3ac569('0xf84'),'controllerAs':'vm','templateUrl':_0xd51230,'parent':angular[_0x3ac569('0x1e73')](_0x419309['body']),'targetEvent':_0x1ee93c,'clickOutsideToClose':!![],'locals':{'outboundroute':_0x38bb86,'outboundroutes':_0x3a2403[_0x3ac569('0x10ee')]['rows'],'license':_0x3a2403[_0x3ac569('0x17ff')],'setting':_0x3a2403[_0x3ac569('0x23e1')],'crudPermissions':_0x3a2403[_0x3ac569('0xb25')]}});}function _0x3cbe93(_0x286a59){const _0x110327=_0x2c1d21;_0x4beb46['voicePrefix'][_0x110327('0xbaa')]({'VoiceExtensionId':_0x286a59['id']})[_0x110327('0x1549')][_0x110327('0x11bf')](function(_0x206535){const _0x377ec0=_0x110327;if(_0x206535&&_0x206535[_0x377ec0('0x19b2')]&&_0x206535[_0x377ec0('0x19b2')][_0x377ec0('0x1e22')]>0x0)return _0x30dcd4[_0x377ec0('0x255')]({'title':'Outbound\x20route\x20not\x20deleted!','msg':_0x377ec0('0xd2')});else _0x4beb46['voiceExtension'][_0x377ec0('0x2088')]({'id':_0x286a59['id']})[_0x377ec0('0x1549')][_0x377ec0('0x11bf')](function(){const _0x114cc0=_0x377ec0;_0x36f548()[_0x114cc0('0x14a5')](_0x3a2403[_0x114cc0('0x10ee')][_0x114cc0('0x19b2')],{'id':_0x286a59['id']}),_0x3a2403['outboundroutes']['count']-=0x1,!_0x3a2403[_0x114cc0('0x10ee')][_0x114cc0('0x19b2')][_0x114cc0('0x1e22')]&&_0x3a2403[_0x114cc0('0x1654')](),_0x30dcd4[_0x114cc0('0x2693')]({'title':_0x36f548()[_0x114cc0('0x13cf')](_0x114cc0('0x1918'))+_0x114cc0('0x2113'),'msg':_0x286a59[_0x114cc0('0x1909')]?_0x286a59[_0x114cc0('0x1909')]+_0x114cc0('0x433'):''});})[_0x377ec0('0x151d')](function(_0x1509fa){const _0x5f484=_0x377ec0;if(_0x1509fa[_0x5f484('0x4e8')]&&_0x1509fa['data']['errors']&&_0x1509fa['data'][_0x5f484('0x120f')][_0x5f484('0x1e22')]){_0x3a2403[_0x5f484('0x120f')]=_0x1509fa[_0x5f484('0x4e8')][_0x5f484('0x120f')]||[{'message':_0x1509fa[_0x5f484('0xaab')](),'type':'SYSTEM:DELETEvoiceExtension'}];for(let _0x417c2e=0x0;_0x417c2e<_0x1509fa[_0x5f484('0x4e8')][_0x5f484('0x120f')][_0x5f484('0x1e22')];_0x417c2e++){_0x30dcd4[_0x5f484('0x255')]({'title':_0x1509fa['data'][_0x5f484('0x120f')][_0x417c2e][_0x5f484('0x19fd')],'msg':_0x1509fa[_0x5f484('0x4e8')][_0x5f484('0x120f')][_0x417c2e][_0x5f484('0x1b86')]});}}else _0x30dcd4[_0x5f484('0x255')]({'title':_0x1509fa[_0x5f484('0xff9')]?_0x5f484('0x574')+_0x1509fa['status']+_0x5f484('0xb0b')+_0x1509fa['statusText']:'SYSTEM:DELETEvoiceExtension','msg':_0x1509fa[_0x5f484('0x4e8')]?JSON[_0x5f484('0x3e')](_0x1509fa[_0x5f484('0x4e8')]['message']):_0x1509fa[_0x5f484('0x1b86')]||_0x1509fa[_0x5f484('0xaab')]()});});});}function _0x58e62f(){const _0x565699=_0x2c1d21,_0x259b7b=angular['copy'](_0x3a2403[_0x565699('0x453')]);return _0x3a2403[_0x565699('0x453')]=[],_0x259b7b;}function _0x3f8546(_0x9db079){const _0x41b3c4=_0x2c1d21,_0x36d049=_0x39ee2a[_0x41b3c4('0x132b')]()['title'](_0x41b3c4('0x68a'))[_0x41b3c4('0x1d03')](_0x41b3c4('0x2061')+_0x3a2403[_0x41b3c4('0x453')][_0x41b3c4('0x1e22')]+_0x41b3c4('0xac6')+_0x41b3c4('0x1a'))[_0x41b3c4('0xb2e')](_0x41b3c4('0xfcc'))[_0x41b3c4('0x1e25')](_0x9db079)['ok']('OK')['cancel']('CANCEL');_0x39ee2a[_0x41b3c4('0xb9')](_0x36d049)[_0x41b3c4('0x11bf')](function(){const _0x4ce9a3=_0x41b3c4;_0x3a2403[_0x4ce9a3('0x453')]['forEach'](function(_0x35261b){_0x3cbe93(_0x35261b);}),_0x3a2403['selectedOutboundRoutes']=[];});}function _0x421c85(){const _0x1dbf40=_0x2c1d21;_0x3a2403[_0x1dbf40('0x453')]=[];}function _0x4a8c01(){const _0x307b05=_0x2c1d21;_0x3a2403[_0x307b05('0x453')]=_0x3a2403[_0x307b05('0x10ee')]['rows'];}}const _0x4c98c7=_0x6fd279;_0x54fe2a[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0xcbc'),_0x21d0f5('0x16b9'),_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0xb6b'),_0x21d0f5('0x142d'),_0x21d0f5('0x25b3'),'voicemail',_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1'),_0x21d0f5('0xb25')];function _0x54fe2a(_0x3c8299,_0xb6aaa,_0x29700d,_0x43d13a,_0x12a135,_0x517bb7,_0x14d78a,_0x106c0b,_0x34d42a,_0x44c01c,_0x102601,_0x42ef8b,_0x299a27,_0x3c2bcb){const _0x50f300=_0x21d0f5,_0x177aec=this;_0x177aec[_0x50f300('0x32a')]=_0x102601[_0x50f300('0x2428')](),_0x177aec['errors']=[],_0x177aec[_0x50f300('0x23e1')]=_0x299a27,_0x177aec[_0x50f300('0x17ff')]=_0x42ef8b,_0x177aec[_0x50f300('0xb25')]=_0x3c2bcb,_0x177aec[_0x50f300('0x2c9')]={},_0x177aec['passwordPattern']=_0x177aec['setting']&&_0x177aec[_0x50f300('0x23e1')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x177aec[_0x50f300('0x134b')]='VOICE.EDIT_VOICEMAIL',_0x177aec[_0x50f300('0xa23')]=angular['copy'](_0x34d42a),_0x177aec[_0x50f300('0x25b3')]=_0x106c0b,_0x177aec['newVoicemail']=![];!_0x177aec[_0x50f300('0xa23')]&&(_0x177aec[_0x50f300('0xa23')]={'attach':'no'},_0x177aec[_0x50f300('0x134b')]=_0x50f300('0x138b'),_0x177aec['newVoicemail']=!![]);_0x177aec[_0x50f300('0x1d43')]=_0x221824,_0x177aec[_0x50f300('0x24e4')]=_0x2568c1,_0x177aec[_0x50f300('0x163e')]=_0xa90503,_0x177aec[_0x50f300('0x1bd1')]=_0x237418,_0x177aec[_0x50f300('0xc4e')]=_0xd2dba0;function _0x221824(){const _0x149b39=_0x50f300;_0x177aec[_0x149b39('0x120f')]=[],_0x44c01c[_0x149b39('0x2516')][_0x149b39('0x259')](_0x177aec[_0x149b39('0xa23')])[_0x149b39('0x1549')][_0x149b39('0x11bf')](function(_0x173e18){const _0x1538a4=_0x149b39;_0x177aec[_0x1538a4('0x25b3')][_0x1538a4('0x880')](_0x173e18[_0x1538a4('0x2866')]()),_0x14d78a[_0x1538a4('0x2693')]({'title':_0x1538a4('0x573'),'msg':_0x177aec[_0x1538a4('0xa23')][_0x1538a4('0x1909')]?_0x177aec[_0x1538a4('0xa23')]['name']+_0x1538a4('0x7fb'):''}),_0xd2dba0(_0x173e18);})['catch'](function(_0x3a3610){const _0x2ad9b5=_0x149b39;if(_0x3a3610[_0x2ad9b5('0x4e8')]&&_0x3a3610['data'][_0x2ad9b5('0x120f')]&&_0x3a3610[_0x2ad9b5('0x4e8')][_0x2ad9b5('0x120f')][_0x2ad9b5('0x1e22')]){_0x177aec['errors']=_0x3a3610[_0x2ad9b5('0x4e8')][_0x2ad9b5('0x120f')]||[{'message':_0x3a3610[_0x2ad9b5('0xaab')](),'type':_0x2ad9b5('0x2106')}];for(let _0x50a8bf=0x0;_0x50a8bf<_0x3a3610['data'][_0x2ad9b5('0x120f')][_0x2ad9b5('0x1e22')];_0x50a8bf+=0x1){_0x14d78a['error']({'title':_0x3a3610[_0x2ad9b5('0x4e8')][_0x2ad9b5('0x120f')][_0x50a8bf][_0x2ad9b5('0x19fd')],'msg':_0x3a3610['data']['errors'][_0x50a8bf][_0x2ad9b5('0x1b86')]});}}else _0x14d78a[_0x2ad9b5('0x255')]({'title':_0x3a3610[_0x2ad9b5('0xff9')]?'API:'+_0x3a3610[_0x2ad9b5('0xff9')]+_0x2ad9b5('0xb0b')+_0x3a3610[_0x2ad9b5('0x212f')]:_0x2ad9b5('0x2106'),'msg':_0x3a3610[_0x2ad9b5('0x4e8')]?JSON[_0x2ad9b5('0x3e')](_0x3a3610[_0x2ad9b5('0x4e8')][_0x2ad9b5('0x1b86')]):_0x3a3610['toString']()});});}function _0x2568c1(){const _0x323f92=_0x50f300;_0x177aec[_0x323f92('0x120f')]=[],_0x44c01c['voiceMail'][_0x323f92('0x5ab')]({'id':_0x177aec[_0x323f92('0xa23')]['id']},_0x177aec[_0x323f92('0xa23')])['$promise'][_0x323f92('0x11bf')](function(_0x368a42){const _0x1b08f9=_0x323f92,_0x440e08=_0x36f548()[_0x1b08f9('0x1ad4')](_0x177aec[_0x1b08f9('0x25b3')],{'id':_0x368a42['id']});_0x440e08&&_0x36f548()[_0x1b08f9('0x47b')](_0x440e08,_0x36f548()[_0x1b08f9('0x258')](_0x368a42[_0x1b08f9('0x2866')](),_0x36f548()[_0x1b08f9('0xe22')](_0x440e08))),_0x14d78a['success']({'title':_0x1b08f9('0x2629'),'msg':_0x177aec[_0x1b08f9('0xa23')][_0x1b08f9('0x1909')]?_0x177aec[_0x1b08f9('0xa23')]['name']+_0x1b08f9('0x1a78'):''}),_0xd2dba0(_0x368a42);})['catch'](function(_0x524fdb){const _0x510580=_0x323f92;if(_0x524fdb[_0x510580('0x4e8')]&&_0x524fdb['data'][_0x510580('0x120f')]&&_0x524fdb[_0x510580('0x4e8')][_0x510580('0x120f')]['length']){_0x177aec[_0x510580('0x120f')]=_0x524fdb[_0x510580('0x4e8')][_0x510580('0x120f')]||[{'message':_0x524fdb['toString'](),'type':'api.voiceMail.update'}];for(let _0x48714c=0x0;_0x48714c<_0x524fdb[_0x510580('0x4e8')][_0x510580('0x120f')][_0x510580('0x1e22')];_0x48714c++){_0x14d78a['error']({'title':_0x524fdb[_0x510580('0x4e8')]['errors'][_0x48714c][_0x510580('0x19fd')],'msg':_0x524fdb[_0x510580('0x4e8')][_0x510580('0x120f')][_0x48714c][_0x510580('0x1b86')]});}}else _0x14d78a[_0x510580('0x255')]({'title':_0x524fdb[_0x510580('0xff9')]?_0x510580('0x574')+_0x524fdb['status']+_0x510580('0xb0b')+_0x524fdb[_0x510580('0x212f')]:'api.voiceMail.update','msg':_0x524fdb['data']?JSON[_0x510580('0x3e')](_0x524fdb[_0x510580('0x4e8')][_0x510580('0x1b86')]):_0x524fdb[_0x510580('0xaab')]()});});}function _0xa90503(_0x3c59a4){const _0x41392d=_0x50f300;_0x177aec[_0x41392d('0x120f')]=[];const _0x1608ce=_0x43d13a[_0x41392d('0x132b')]()[_0x41392d('0x134b')](_0x41392d('0x1fa9'))[_0x41392d('0x252a')](_0x41392d('0x250a'))[_0x41392d('0xb2e')](_0x41392d('0xea5'))['ok'](_0x41392d('0x1167'))['cancel']('Cancel')[_0x41392d('0x1e25')](_0x3c59a4);_0x43d13a[_0x41392d('0xb9')](_0x1608ce)[_0x41392d('0x11bf')](function(){const _0x53af29=_0x41392d;_0x44c01c[_0x53af29('0x2516')]['delete']({'id':_0x177aec[_0x53af29('0xa23')]['id']})[_0x53af29('0x1549')][_0x53af29('0x11bf')](function(){const _0x1c1819=_0x53af29;_0x36f548()[_0x1c1819('0x14a5')](_0x177aec[_0x1c1819('0x25b3')],{'id':_0x177aec[_0x1c1819('0xa23')]['id']}),_0x14d78a[_0x1c1819('0x2693')]({'title':_0x1c1819('0x22e6'),'msg':(_0x177aec[_0x1c1819('0xa23')]['name']||_0x1c1819('0xa23'))+'\x20has\x20been\x20deleted!'}),_0xd2dba0(_0x177aec['voicemail']);})[_0x53af29('0x151d')](function(_0x1a821d){const _0x4b2753=_0x53af29;if(_0x1a821d[_0x4b2753('0x4e8')]&&_0x1a821d[_0x4b2753('0x4e8')]['errors']&&_0x1a821d['data'][_0x4b2753('0x120f')][_0x4b2753('0x1e22')]){_0x177aec[_0x4b2753('0x120f')]=_0x1a821d[_0x4b2753('0x4e8')]['errors']||[{'message':_0x1a821d['toString'](),'type':_0x4b2753('0x234')}];for(let _0x3b86a1=0x0;_0x3b86a1<_0x1a821d[_0x4b2753('0x4e8')][_0x4b2753('0x120f')][_0x4b2753('0x1e22')];_0x3b86a1++){_0x14d78a[_0x4b2753('0x255')]({'title':_0x1a821d[_0x4b2753('0x4e8')]['errors'][_0x3b86a1][_0x4b2753('0x19fd')],'msg':_0x1a821d[_0x4b2753('0x4e8')][_0x4b2753('0x120f')][_0x3b86a1][_0x4b2753('0x1b86')]});}}else _0x14d78a[_0x4b2753('0x255')]({'title':_0x1a821d[_0x4b2753('0xff9')]?'API:'+_0x1a821d['status']+_0x4b2753('0xb0b')+_0x1a821d['statusText']:'api.voiceMail.delete','msg':_0x1a821d[_0x4b2753('0x4e8')]?JSON[_0x4b2753('0x3e')](_0x1a821d['data'][_0x4b2753('0x1b86')]):_0x1a821d['message']||_0x1a821d[_0x4b2753('0xaab')]()});});},function(){});}function _0x237418(_0x5f1136){return _0x5f1136===null?undefined:new Date(_0x5f1136);}function _0xd2dba0(_0x17fee0){_0x43d13a['hide'](_0x17fee0);}}const _0x54353c=_0x54fe2a;_0x4ee541[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x5d8'),_0x21d0f5('0x1b80'),_0x21d0f5('0xcbc'),'$q',_0x21d0f5('0xb6b'),_0x21d0f5('0x17f5'),_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),'toasty',_0x21d0f5('0x12a5'),_0x21d0f5('0x1150')];function _0x4ee541(_0x5a6f64,_0x3eac70,_0xa0dc09,_0x4cdae6,_0xf68f8,_0x549522,_0x342922,_0x46424,_0x19fd72,_0x247d6b,_0x55171c){const _0x5784ac=_0x21d0f5,_0x44449e=this;_0x44449e[_0x5784ac('0x32a')]=_0x55171c[_0x5784ac('0x2428')](),_0x44449e[_0x5784ac('0xa23')]={},_0x44449e['voicemailMessages']={'count':0x0,'rows':[]},_0x44449e[_0x5784ac('0x48e')]=[],_0x44449e[_0x5784ac('0xb25')],_0x44449e[_0x5784ac('0x1f2a')]={'fields':_0x5784ac('0x22f2'),'sort':_0x5784ac('0xc34'),'limit':0xa,'page':0x1},_0x44449e[_0x5784ac('0x286f')]=_0xf1e94,_0x44449e['deleteConfirm']=_0x120357,_0x44449e[_0x5784ac('0x2409')]=_0x4ba230,_0x44449e[_0x5784ac('0x2693')]=_0x1b09f6,_0x44449e[_0x5784ac('0x14b8')]=_0x5de3e7,_0x44449e[_0x5784ac('0x217')]=_0x1d0e29,_0x44449e[_0x5784ac('0x1ef5')]=_0x459790,_0x44449e[_0x5784ac('0x1b6e')]=_0x3002e4;function _0xf1e94(_0x1b498c,_0x4108b4){const _0x19ead8=_0x5784ac;_0x44449e[_0x19ead8('0xa23')]=_0x1b498c,_0x44449e[_0x19ead8('0xb25')]=typeof _0x4108b4!==_0x19ead8('0x13e9')?_0x4108b4:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x44449e[_0x19ead8('0x1f2a')]['id']=_0x44449e[_0x19ead8('0xa23')]['id'],_0x5de3e7();}function _0x4ba230(_0x2f1bbe,_0x4f5837,_0x26182c){const _0x206d10=_0x5784ac;return _0x247d6b['voiceMailMessage'][_0x206d10('0x149c')]({'id':_0x2f1bbe['id'],'exists':!![],'attachments':_0x26182c})[_0x206d10('0x1549')]['then'](function(_0x33010c){const _0x556165=_0x206d10,_0x498b95=[_0x33010c[_0x556165('0x1e94')]];let _0x364a35=_0x556165('0x1b86')+_0x2f1bbe['id'];const _0x2c4ebe=new Blob(_0x498b95,{'type':_0x33010c[_0x556165('0x19fd')]});_0x364a35=_0x2f1bbe['msg_id']+_0x556165('0x15da');const _0xb9f3b8=window[_0x556165('0xb54')]['createElement']('a');_0xb9f3b8[_0x556165('0x1e1b')]('href',URL['createObjectURL'](_0x2c4ebe)),_0xb9f3b8[_0x556165('0x1e1b')](_0x556165('0x149c'),_0x364a35),document[_0x556165('0x1d2')][_0x556165('0x131c')](_0xb9f3b8),_0xb9f3b8[_0x556165('0x1371')]();})[_0x206d10('0x151d')](function(_0x34d863){const _0x1129bd=_0x206d10;if(_0x34d863[_0x1129bd('0x4e8')]&&_0x34d863['data'][_0x1129bd('0x120f')]&&_0x34d863[_0x1129bd('0x4e8')][_0x1129bd('0x120f')][_0x1129bd('0x1e22')])for(let _0x10a960=0x0;_0x10a960<_0x34d863[_0x1129bd('0x4e8')][_0x1129bd('0x120f')]['length'];_0x10a960+=0x1){_0x19fd72['error']({'title':_0x34d863[_0x1129bd('0x4e8')][_0x1129bd('0x120f')][_0x10a960]['type'],'msg':_0x34d863[_0x1129bd('0x4e8')][_0x1129bd('0x120f')][_0x10a960][_0x1129bd('0x1b86')]});}else _0x19fd72[_0x1129bd('0x255')]({'title':_0x34d863['status']?_0x1129bd('0x574')+_0x34d863[_0x1129bd('0xff9')]+_0x1129bd('0xb0b')+_0x34d863[_0x1129bd('0x212f')]:_0x1129bd('0x2106'),'msg':_0x34d863[_0x1129bd('0x4e8')]?JSON[_0x1129bd('0x3e')](_0x34d863[_0x1129bd('0x4e8')]['message']):_0x34d863['toString']()});});}function _0x120357(_0x24ce2c,_0x183beb){const _0x1658e5=_0x5784ac,_0x3b6992=_0x342922[_0x1658e5('0x132b')]()['title'](_0x1658e5('0x2512'))[_0x1658e5('0x1d03')](''+(_0x24ce2c[_0x1658e5('0x1909')]||_0x24ce2c['id']&&_0x36f548()[_0x1658e5('0x24b5')]('message\x20#')+_0x24ce2c['id']||_0x1658e5('0x1b86'))+_0x1658e5('0x1c78')+'\x20will\x20be\x20deleted.')[_0x1658e5('0xb2e')]('delete\x20message')[_0x1658e5('0x1e25')](_0x183beb)['ok']('OK')['cancel']('CANCEL');_0x342922['show'](_0x3b6992)[_0x1658e5('0x11bf')](function(){_0x459790(_0x24ce2c);},function(){const _0x406b60=_0x1658e5;console[_0x406b60('0xc78')](_0x406b60('0x772'));});}function _0x1b09f6(_0x4f2adc){_0x44449e['voicemailMessages']=_0x4f2adc||{'count':0x0,'rows':[]};}function _0x5de3e7(){const _0x228585=_0x5784ac;_0x44449e[_0x228585('0x1f2a')][_0x228585('0x1393')]=(_0x44449e[_0x228585('0x1f2a')]['page']-0x1)*_0x44449e['query'][_0x228585('0xd5c')],_0x44449e[_0x228585('0x13f')]=_0x247d6b[_0x228585('0x2516')]['getMessages'](_0x44449e[_0x228585('0x1f2a')],_0x1b09f6)[_0x228585('0x1549')];}function _0x459790(_0x27b372){const _0x28d07e=_0x5784ac;_0x247d6b[_0x28d07e('0x18c6')]['delete']({'id':_0x27b372['id']})[_0x28d07e('0x1549')][_0x28d07e('0x11bf')](function(){const _0x50f532=_0x28d07e;_0x36f548()[_0x50f532('0x14a5')](_0x44449e[_0x50f532('0x374')][_0x50f532('0x19b2')],{'id':_0x27b372['id']}),_0x44449e[_0x50f532('0x374')][_0x50f532('0x27d2')]-=0x1,!_0x44449e[_0x50f532('0x374')]['rows'][_0x50f532('0x1e22')]&&_0x5de3e7(),_0x19fd72[_0x50f532('0x2693')]({'title':'Message\x20deleted!','msg':_0x27b372[_0x50f532('0x1909')]?_0x27b372[_0x50f532('0x1909')]+_0x50f532('0x433'):''});})[_0x28d07e('0x151d')](function(_0x1d8ce7){const _0x499c08=_0x28d07e;if(_0x1d8ce7[_0x499c08('0x4e8')]&&_0x1d8ce7[_0x499c08('0x4e8')][_0x499c08('0x120f')]&&_0x1d8ce7[_0x499c08('0x4e8')][_0x499c08('0x120f')]['length']){_0x44449e['errors']=_0x1d8ce7[_0x499c08('0x4e8')][_0x499c08('0x120f')]||[{'message':_0x1d8ce7['toString'](),'type':'SYSTEM:GETvoiceMail'}];for(let _0x1b00a7=0x0;_0x1b00a7<_0x1d8ce7[_0x499c08('0x4e8')]['errors'][_0x499c08('0x1e22')];_0x1b00a7++){_0x19fd72[_0x499c08('0x255')]({'title':_0x1d8ce7[_0x499c08('0x4e8')][_0x499c08('0x120f')][_0x1b00a7][_0x499c08('0x19fd')],'msg':_0x1d8ce7['data']['errors'][_0x1b00a7]['message']});}}else _0x19fd72['error']({'title':_0x1d8ce7[_0x499c08('0xff9')]?_0x499c08('0x574')+_0x1d8ce7[_0x499c08('0xff9')]+_0x499c08('0xb0b')+_0x1d8ce7[_0x499c08('0x212f')]:_0x499c08('0xc5d'),'msg':_0x1d8ce7[_0x499c08('0x4e8')]?JSON['stringify'](_0x1d8ce7[_0x499c08('0x4e8')]['message']):_0x1d8ce7[_0x499c08('0x1b86')]||_0x1d8ce7[_0x499c08('0xaab')]()});});}function _0x1d0e29(){const _0x4eacbd=_0x5784ac,_0x1b3058=angular['copy'](_0x44449e[_0x4eacbd('0x48e')]);return _0x44449e['selectedVoicemailMessages']=[],_0x1b3058;}function _0x3002e4(_0x218ab5){const _0x5bfa61=_0x5784ac,_0x43b87a=_0x342922[_0x5bfa61('0x132b')]()[_0x5bfa61('0x134b')](_0x5bfa61('0x17a1'))[_0x5bfa61('0x1d03')](_0x5bfa61('0x2061')+_0x44449e[_0x5bfa61('0x48e')]['length']+'\x20selected'+_0x5bfa61('0x1a'))[_0x5bfa61('0xb2e')](_0x5bfa61('0x22b8'))[_0x5bfa61('0x1e25')](_0x218ab5)['ok']('OK')[_0x5bfa61('0x26c9')](_0x5bfa61('0x772'));_0x342922[_0x5bfa61('0xb9')](_0x43b87a)[_0x5bfa61('0x11bf')](function(){const _0x2dbe2a=_0x5bfa61;_0x44449e['selectedVoicemailMessages'][_0x2dbe2a('0x1f88')](function(_0x101c27){_0x459790(_0x101c27);}),_0x44449e['selectedVoicemailMessages']=[];});}let _0x4f1748=!![],_0x43d649=0x1;_0x3eac70[_0x5784ac('0x2087')](_0x5784ac('0x1d12'),function(_0x19ccae,_0x123d49){const _0x3bcdcd=_0x5784ac;_0x4f1748?_0x549522(function(){_0x4f1748=![];}):(!_0x123d49&&(_0x43d649=_0x44449e[_0x3bcdcd('0x1f2a')]['page']),_0x19ccae!==_0x123d49&&(_0x44449e[_0x3bcdcd('0x1f2a')][_0x3bcdcd('0x1c2')]=0x1),!_0x19ccae&&(_0x44449e['query']['page']=_0x43d649),_0x5de3e7());});}const _0x24ce87=_0x4ee541;_0x307f0c[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0xcbc'),_0x21d0f5('0x16b9'),_0x21d0f5('0x1ca2'),'$document',_0x21d0f5('0xb6b'),_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1'),_0x21d0f5('0x12a5'),_0x21d0f5('0x142d'),_0x21d0f5('0x1150'),_0x21d0f5('0xa23'),_0x21d0f5('0x1d63')];function _0x307f0c(_0x11669b,_0x5c0499,_0x7452d4,_0xc682db,_0x3e5162,_0x39b2af,_0x1bbfb8,_0x42327b,_0x4a23e9,_0x5e9f93,_0x2c6eb0,_0x1297b3){const _0x22681a=_0x21d0f5,_0x4dc7da=this;_0x4dc7da['currentUser']=_0x5e9f93[_0x22681a('0x2428')](),_0x4dc7da['license']=_0x39b2af,_0x4dc7da['setting']=_0x1bbfb8,_0x4dc7da[_0x22681a('0x2834')]=_0x4dc7da[_0x22681a('0x23e1')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x4dc7da[_0x22681a('0x1d9a')]=_0x5c0499[_0x22681a('0x1797')]()+_0x22681a('0x16a1')+_0x5c0499[_0x22681a('0x14ec')](),_0x4dc7da[_0x22681a('0xa23')]=_0x2c6eb0||_0x11669b['params'][_0x22681a('0xa23')]||{},_0x4dc7da[_0x22681a('0x1d63')]=_0x1297b3&&_0x1297b3[_0x22681a('0x27d2')]==0x1?_0x1297b3[_0x22681a('0x19b2')][0x0]:null,_0x4dc7da[_0x22681a('0xb25')]=_0x5e9f93[_0x22681a('0x1530')](_0x4dc7da['userProfileSection']?_0x4dc7da[_0x22681a('0x1d63')]['crudPermissions']:null),_0x4dc7da[_0x22681a('0x2c9')]={},_0x4dc7da[_0x22681a('0x1179')]=_0x11669b[_0x22681a('0x1ab3')][_0x22681a('0x205c')]||0x0,_0x4dc7da['alert']=_0x4a23e9[_0x22681a('0x870')],_0x4dc7da['gotoVoicemails']=_0x190e11,_0x4dc7da[_0x22681a('0x24e4')]=_0x2483bd,_0x5e9f93[_0x22681a('0x4ee')](_0x22681a('0xf45'))?_0x42327b['voiceContext'][_0x22681a('0xbaa')]({'fields':'id,name','sort':_0x22681a('0x1909')})[_0x22681a('0x1549')][_0x22681a('0x11bf')](function(_0x10270c){const _0xf4218d=_0x22681a;_0x4dc7da[_0xf4218d('0x803')]=_0x10270c[_0xf4218d('0x19b2')]||[];})[_0x22681a('0x151d')](function(_0x90c410){const _0x3e0d8f=_0x22681a;_0x4a23e9['error']({'title':_0x90c410[_0x3e0d8f('0xff9')]?'API:'+_0x90c410[_0x3e0d8f('0xff9')]+_0x3e0d8f('0xb0b')+_0x90c410[_0x3e0d8f('0x212f')]:_0x3e0d8f('0x348'),'msg':_0x90c410['data']?JSON[_0x3e0d8f('0x3e')](_0x90c410['data']):_0x90c410[_0x3e0d8f('0xaab')]()});}):_0x42327b[_0x22681a('0x1279')][_0x22681a('0xbaa')]({'fields':_0x22681a('0x721'),'sort':_0x22681a('0x1909')})[_0x22681a('0x1549')]['then'](function(_0x51c8ee){const _0x19bcd8=_0x22681a;_0x4dc7da[_0x19bcd8('0x803')]=_0x51c8ee[_0x19bcd8('0x19b2')]||[];})[_0x22681a('0x11bf')](function(){const _0x4559e3=_0x22681a;return _0x42327b[_0x4559e3('0x1d63')][_0x4559e3('0xbaa')]({'userProfileId':_0x4dc7da[_0x4559e3('0x32a')][_0x4559e3('0x781')],'sectionId':0x195})[_0x4559e3('0x1549')];})['then'](function(_0x13d6aa){const _0x306bfc=_0x22681a,_0x1acc5f=_0x13d6aa&&_0x13d6aa[_0x306bfc('0x19b2')]?_0x13d6aa[_0x306bfc('0x19b2')][0x0]:null;if(!_0x1acc5f)return _0x42327b[_0x306bfc('0x1279')][_0x306bfc('0xbaa')]({'fields':_0x306bfc('0x721'),'sort':'name','defaultEntry':0x1})[_0x306bfc('0x1549')]['then'](function(_0x587b07){const _0x5ac799=_0x306bfc;_0x4dc7da[_0x5ac799('0x803')]=_0x587b07[_0x5ac799('0x19b2')]||[];});else{if(!_0x1acc5f[_0x306bfc('0xf11')])return _0x42327b['userProfileResource']['get']({'sectionId':_0x1acc5f['id']})[_0x306bfc('0x1549')][_0x306bfc('0x11bf')](function(_0x4315fe){const _0x531b2c=_0x306bfc,_0x5b923c=_0x36f548()[_0x531b2c('0x2171')](_0x4315fe[_0x531b2c('0x19b2')],function(_0x2a8492){const _0x117b87=_0x531b2c;return _0x36f548()[_0x117b87('0x1ad4')](_0x4dc7da['contexts'],{'id':_0x2a8492[_0x117b87('0x15a5')]});});let _0xf5141d=null;_0x4dc7da[_0x531b2c('0xa23')]&&(_0xf5141d=_0x36f548()[_0x531b2c('0x1ad4')](_0x4dc7da[_0x531b2c('0x803')],{'name':_0x4dc7da[_0x531b2c('0xa23')][_0x531b2c('0x1c87')]}));if(_0xf5141d&&!_0x36f548()[_0x531b2c('0x1cb3')](_0x5b923c,['id',_0xf5141d['id']])){const _0x5c516b=_0x36f548()['find'](_0x4dc7da[_0x531b2c('0x803')],{'id':_0xf5141d['id']});_0x5c516b[_0x531b2c('0x254a')]=![],_0x5b923c[_0x531b2c('0x105d')](_0x5c516b);}_0x4dc7da[_0x531b2c('0x803')]=_0x5b923c;});}})['catch'](function(_0x206a43){const _0x305440=_0x22681a;_0x4a23e9[_0x305440('0x255')]({'title':_0x206a43['status']?'API:'+_0x206a43[_0x305440('0xff9')]+_0x305440('0xb0b')+_0x206a43[_0x305440('0x212f')]:_0x305440('0x1280'),'msg':_0x206a43[_0x305440('0x4e8')]?JSON['stringify'](_0x206a43[_0x305440('0x4e8')]):_0x206a43['toString']()});});function _0x190e11(){const _0x547229=_0x22681a;_0x11669b['go'](_0x547229('0x1326'),{},{'reload':_0x547229('0x1326')});}function _0x2483bd(){const _0x5c7fda=_0x22681a;_0x42327b[_0x5c7fda('0x2516')]['update']({'id':_0x4dc7da[_0x5c7fda('0xa23')]['id']},_0x4dc7da[_0x5c7fda('0xa23')])[_0x5c7fda('0x1549')][_0x5c7fda('0x11bf')](function(){const _0x30cfc6=_0x5c7fda;_0x4a23e9['success']({'title':_0x30cfc6('0x1919'),'msg':_0x4dc7da['voicemail'][_0x30cfc6('0x1909')]?_0x4dc7da['voicemail']['name']+'\x20has\x20been\x20updated!':''});})[_0x5c7fda('0x151d')](function(_0x1145fe){const _0x17adf1=_0x5c7fda;_0x4a23e9[_0x17adf1('0x255')]({'title':_0x1145fe[_0x17adf1('0xff9')]?_0x17adf1('0x574')+_0x1145fe[_0x17adf1('0xff9')]+_0x17adf1('0xb0b')+_0x1145fe['statusText']:_0x17adf1('0xc5d'),'msg':_0x1145fe[_0x17adf1('0x4e8')]?JSON[_0x17adf1('0x3e')](_0x1145fe['data']):_0x1145fe[_0x17adf1('0xaab')]()});});}}const _0x28feaa=_0x307f0c,_0x5832bc=_0x351988['p']+_0x21d0f5('0x122e');_0x59f018[_0x21d0f5('0x1e9a')]=['$scope','$window',_0x21d0f5('0xcbc'),_0x21d0f5('0x18fe'),_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),_0x21d0f5('0x17f5'),_0x21d0f5('0xb6b'),_0x21d0f5('0x25b3'),_0x21d0f5('0x25bc'),_0x21d0f5('0x1d63'),'api',_0x21d0f5('0xda9'),_0x21d0f5('0x142d'),'Auth',_0x21d0f5('0x17ff'),'setting'];function _0x59f018(_0x47180d,_0x11bab3,_0x2e2516,_0x5df8e4,_0x18432d,_0x25996b,_0x79f6f9,_0x314676,_0x48174f,_0x34ee71,_0x8620f0,_0x1f5bcb,_0x5b60ab,_0x2e4c79,_0x5d860a,_0x48ddde,_0xb57c95){const _0x9de3f0=_0x21d0f5,_0x12526d=this;_0x12526d['license']=_0x48ddde,_0x12526d['setting']=_0xb57c95,_0x12526d[_0x9de3f0('0x32a')]=_0x5d860a[_0x9de3f0('0x2428')](),_0x12526d[_0x9de3f0('0x25b3')]=_0x48174f||{'count':0x0,'rows':[]},_0x12526d[_0x9de3f0('0x25bc')]=_0x34ee71,_0x12526d[_0x9de3f0('0x1d63')]=_0x8620f0&&_0x8620f0['count']==0x1?_0x8620f0[_0x9de3f0('0x19b2')][0x0]:null,_0x12526d[_0x9de3f0('0xb25')]=_0x5d860a[_0x9de3f0('0x1530')](_0x12526d[_0x9de3f0('0x1d63')]?_0x12526d[_0x9de3f0('0x1d63')][_0x9de3f0('0xb25')]:null),_0x12526d['table']='voicemails',_0x12526d[_0x9de3f0('0x724')]='',_0x12526d[_0x9de3f0('0xe3c')]=null,_0x12526d['selectedVoicemails']=[],_0x12526d[_0x9de3f0('0x1f2a')]={'fields':_0x9de3f0('0x1b39'),'sort':'-updatedAt','limit':0xa,'page':0x1},_0x12526d[_0x9de3f0('0x13e')]=_0x36f548()['keyBy']([{'option':_0x9de3f0('0xaa2'),'value':_0x9de3f0('0x1d9')},{'option':'No','value':'\x27no\x27'}],function(_0x12b347){const _0x48300d=_0x9de3f0;return _0x36f548()[_0x48300d('0x814')](_0x12b347[_0x48300d('0x10cc')],new RegExp('\x27','g'),'');}),_0x12526d[_0x9de3f0('0x17e5')]=_0x36f548()[_0x9de3f0('0x2130')]([{'option':_0x9de3f0('0xaa2'),'value':_0x9de3f0('0x1d9')},{'option':'No','value':_0x9de3f0('0x19bb')}],function(_0x17fc11){const _0xe436ae=_0x9de3f0;return _0x36f548()[_0xe436ae('0x814')](_0x17fc11[_0xe436ae('0x10cc')],new RegExp('\x27','g'),'');}),_0x12526d[_0x9de3f0('0xe74')]=_0x36f548()['keyBy']([{'option':_0x9de3f0('0xaa2'),'value':_0x9de3f0('0x1d9')},{'option':'No','value':_0x9de3f0('0x19bb')}],function(_0x32138e){const _0x125556=_0x9de3f0;return _0x36f548()['replace'](_0x32138e[_0x125556('0x10cc')],new RegExp('\x27','g'),'');}),_0x12526d['editstate']=_0x36d258,_0x12526d[_0x9de3f0('0x549')]=_0x50964d,_0x12526d['success']=_0xe7bb76,_0x12526d[_0x9de3f0('0x25dc')]=_0x66de2f,_0x12526d[_0x9de3f0('0x1e88')]=_0x4c6966,_0x12526d[_0x9de3f0('0x163e')]=_0x4c61f9,_0x12526d[_0x9de3f0('0x267a')]=_0xc10baa,_0x12526d[_0x9de3f0('0x1a6f')]=_0x5147da,_0x12526d[_0x9de3f0('0x1bb3')]=_0x3d6660,_0x12526d[_0x9de3f0('0x195a')]=_0x3e00fa;function _0x36d258(_0x363fb2){const _0xa8b293=_0x9de3f0;_0x2e2516['go'](_0xa8b293('0x111f'),{'id':_0x363fb2['id'],'voicemail':_0x363fb2,'crudPermissions':_0x12526d['crudPermissions']});}function _0x50964d(_0x145791,_0x4fc8bd){const _0x4882a1=_0x9de3f0,_0x4ed584=_0x18432d[_0x4882a1('0x132b')]()[_0x4882a1('0x134b')](_0x4882a1('0x1796')+_0x36f548()[_0x4882a1('0x13cf')]('voicemail')+'?')[_0x4882a1('0x1d03')](''+(_0x145791[_0x4882a1('0x1909')]||'voicemail')+_0x4882a1('0x1c78')+_0x4882a1('0x1a'))[_0x4882a1('0xb2e')](_0x4882a1('0x140'))['targetEvent'](_0x4fc8bd)['ok']('OK')[_0x4882a1('0x26c9')](_0x4882a1('0x772'));_0x18432d[_0x4882a1('0xb9')](_0x4ed584)['then'](function(){_0x4c61f9(_0x145791);},function(){const _0x1ef548=_0x4882a1;console[_0x1ef548('0xc78')](_0x1ef548('0x772'));});}let _0x45781f=!![],_0x400ac4=0x1;_0x47180d[_0x9de3f0('0x2087')]('vm.query.filter',function(_0x2df35b,_0x3c521e){const _0x2a9615=_0x9de3f0;_0x45781f?_0x79f6f9(function(){_0x45781f=![];}):(!_0x3c521e&&(_0x400ac4=_0x12526d['query'][_0x2a9615('0x1c2')]),_0x2df35b!==_0x3c521e&&(_0x12526d[_0x2a9615('0x1f2a')][_0x2a9615('0x1c2')]=0x1),!_0x2df35b&&(_0x12526d[_0x2a9615('0x1f2a')][_0x2a9615('0x1c2')]=_0x400ac4),_0x12526d[_0x2a9615('0x25dc')]());});function _0xe7bb76(_0x56ccaa){const _0x199723=_0x9de3f0;_0x12526d[_0x199723('0x25b3')]=_0x56ccaa||{'count':0x0,'rows':[]};}function _0x66de2f(){const _0x293bbb=_0x9de3f0;_0x12526d[_0x293bbb('0x1f2a')][_0x293bbb('0x1393')]=(_0x12526d[_0x293bbb('0x1f2a')][_0x293bbb('0x1c2')]-0x1)*_0x12526d[_0x293bbb('0x1f2a')]['limit'],_0x5d860a[_0x293bbb('0x4ee')](_0x293bbb('0xf45'))?_0x12526d[_0x293bbb('0x13f')]=_0x1f5bcb['voiceMail'][_0x293bbb('0xbaa')](_0x12526d[_0x293bbb('0x1f2a')],_0xe7bb76)[_0x293bbb('0x1549')]:(_0x12526d['query']['id']=_0x12526d[_0x293bbb('0x25bc')]['id'],_0x12526d[_0x293bbb('0x1f2a')]['section']=_0x293bbb('0x1d1a'),_0x12526d[_0x293bbb('0x13f')]=_0x1f5bcb[_0x293bbb('0x25bc')][_0x293bbb('0x228e')](_0x12526d[_0x293bbb('0x1f2a')],_0xe7bb76)[_0x293bbb('0x1549')]);}function _0x4c6966(_0x34bc35,_0x20e174){const _0x2035ab=_0x9de3f0;_0x18432d[_0x2035ab('0xb9')]({'controller':_0x2035ab('0xd7c'),'controllerAs':'vm','templateUrl':_0x5832bc,'parent':angular['element'](_0x25996b['body']),'targetEvent':_0x34bc35,'clickOutsideToClose':!![],'locals':{'voicemail':_0x20e174,'voicemails':_0x12526d[_0x2035ab('0x25b3')][_0x2035ab('0x19b2')],'license':_0x12526d[_0x2035ab('0x17ff')],'setting':_0x12526d[_0x2035ab('0x23e1')],'crudPermissions':_0x12526d[_0x2035ab('0xb25')]}});}function _0x4c61f9(_0x5b397c){const _0x1048a3=_0x9de3f0;_0x1f5bcb[_0x1048a3('0x2516')][_0x1048a3('0x2088')]({'id':_0x5b397c['id']})[_0x1048a3('0x1549')][_0x1048a3('0x11bf')](function(){const _0x55d153=_0x1048a3;_0x36f548()[_0x55d153('0x14a5')](_0x12526d[_0x55d153('0x25b3')][_0x55d153('0x19b2')],{'id':_0x5b397c['id']}),_0x12526d[_0x55d153('0x25b3')][_0x55d153('0x27d2')]-=0x1,!_0x12526d[_0x55d153('0x25b3')]['rows'][_0x55d153('0x1e22')]&&_0x12526d[_0x55d153('0x25dc')](),_0x2e4c79[_0x55d153('0x2693')]({'title':_0x36f548()[_0x55d153('0x13cf')]('Voicemail')+_0x55d153('0x2113'),'msg':_0x5b397c[_0x55d153('0x1909')]?_0x5b397c[_0x55d153('0x1909')]+_0x55d153('0x433'):''});})[_0x1048a3('0x151d')](function(_0x1c2f30){const _0xf281ee=_0x1048a3;if(_0x1c2f30[_0xf281ee('0x4e8')]&&_0x1c2f30[_0xf281ee('0x4e8')][_0xf281ee('0x120f')]&&_0x1c2f30[_0xf281ee('0x4e8')][_0xf281ee('0x120f')]['length']){_0x12526d['errors']=_0x1c2f30[_0xf281ee('0x4e8')][_0xf281ee('0x120f')]||[{'message':_0x1c2f30[_0xf281ee('0xaab')](),'type':'SYSTEM:DELETEvoiceMail'}];for(let _0x600358=0x0;_0x600358<_0x1c2f30[_0xf281ee('0x4e8')][_0xf281ee('0x120f')]['length'];_0x600358++){_0x2e4c79[_0xf281ee('0x255')]({'title':_0x1c2f30['data'][_0xf281ee('0x120f')][_0x600358][_0xf281ee('0x19fd')],'msg':_0x1c2f30['data'][_0xf281ee('0x120f')][_0x600358][_0xf281ee('0x1b86')]});}}else _0x2e4c79['error']({'title':_0x1c2f30[_0xf281ee('0xff9')]?'API:'+_0x1c2f30[_0xf281ee('0xff9')]+_0xf281ee('0xb0b')+_0x1c2f30[_0xf281ee('0x212f')]:_0xf281ee('0x1267'),'msg':_0x1c2f30[_0xf281ee('0x4e8')]?JSON[_0xf281ee('0x3e')](_0x1c2f30[_0xf281ee('0x4e8')][_0xf281ee('0x1b86')]):_0x1c2f30[_0xf281ee('0x1b86')]||_0x1c2f30[_0xf281ee('0xaab')]()});});}function _0xc10baa(){const _0x253ab7=_0x9de3f0,_0xb5db06=angular[_0x253ab7('0x6fb')](_0x12526d['selectedVoicemails']);return _0x12526d[_0x253ab7('0x191c')]=[],_0xb5db06;}function _0x5147da(_0x16f252){const _0x147ba1=_0x9de3f0,_0x2c555a=_0x18432d[_0x147ba1('0x132b')]()[_0x147ba1('0x134b')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20voicemails?')['htmlContent'](_0x147ba1('0x2061')+_0x12526d[_0x147ba1('0x191c')][_0x147ba1('0x1e22')]+_0x147ba1('0xac6')+_0x147ba1('0x1a'))[_0x147ba1('0xb2e')]('delete\x20Voicemails')[_0x147ba1('0x1e25')](_0x16f252)['ok']('OK')['cancel'](_0x147ba1('0x772'));_0x18432d[_0x147ba1('0xb9')](_0x2c555a)[_0x147ba1('0x11bf')](function(){const _0x241f64=_0x147ba1;_0x12526d['selectedVoicemails'][_0x241f64('0x1f88')](function(_0xb653c9){_0x4c61f9(_0xb653c9);}),_0x12526d[_0x241f64('0x191c')]=[];});}function _0x3d6660(){_0x12526d['selectedVoicemails']=[];}function _0x3e00fa(){const _0x2902cc=_0x9de3f0;_0x12526d[_0x2902cc('0x191c')]=_0x12526d[_0x2902cc('0x25b3')][_0x2902cc('0x19b2')];}}const _0x1bf1b5=_0x59f018;_0x3792d5[_0x21d0f5('0x1e9a')]=['$scope','$state',_0x21d0f5('0x16b9'),_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0xb6b'),_0x21d0f5('0x142d'),_0x21d0f5('0x148d'),_0x21d0f5('0x1f5f'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1'),'crudPermissions'];function _0x3792d5(_0x2257c0,_0x14d83b,_0x343deb,_0x58bd06,_0x2cb782,_0x2cda96,_0x78dba6,_0x5ab062,_0x919d2,_0x54eb32,_0x2b21d1,_0x1976ad,_0x345564,_0x43da7f){const _0x569cb0=_0x21d0f5,_0xeaf8c5=this;_0xeaf8c5[_0x569cb0('0x32a')]=_0x2b21d1[_0x569cb0('0x2428')](),_0xeaf8c5[_0x569cb0('0x120f')]=[],_0xeaf8c5[_0x569cb0('0x23e1')]=_0x345564,_0xeaf8c5[_0x569cb0('0x17ff')]=_0x1976ad,_0xeaf8c5['crudPermissions']=_0x43da7f,_0xeaf8c5['hasModulePermissions']={},_0xeaf8c5[_0x569cb0('0x2834')]=_0xeaf8c5[_0x569cb0('0x23e1')]&&_0xeaf8c5[_0x569cb0('0x23e1')][_0x569cb0('0x1d4')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0xeaf8c5[_0x569cb0('0x134b')]=_0x569cb0('0x2110'),_0xeaf8c5[_0x569cb0('0x1f5f')]=angular[_0x569cb0('0x6fb')](_0x919d2),_0xeaf8c5['voicePrefixes']=_0x5ab062,_0xeaf8c5['newvoicePrefix']=![];!_0xeaf8c5['voicePrefix']&&(_0xeaf8c5[_0x569cb0('0x1f5f')]={},_0xeaf8c5['title']=_0x569cb0('0x8d7'),_0xeaf8c5[_0x569cb0('0x13f0')]=!![]);_0xeaf8c5[_0x569cb0('0x25d4')]=_0x1ae492,_0xeaf8c5['savevoicePrefix']=_0x63759e,_0xeaf8c5['deletevoicePrefix']=_0x338d9b,_0xeaf8c5[_0x569cb0('0x1bd1')]=_0x142b10,_0xeaf8c5[_0x569cb0('0xc4e')]=_0xe7de7d,_0x2b21d1[_0x569cb0('0x4ee')]('admin')?_0x54eb32[_0x569cb0('0x417')][_0x569cb0('0xbaa')]({'fields':_0x569cb0('0x10c9'),'type':_0x569cb0('0x25b6'),'VoiceExtensionId':_0x569cb0('0xb5f'),'nolimit':_0x569cb0('0x204c')})['$promise'][_0x569cb0('0x11bf')](function(_0x5d2399){const _0x3816d4=_0x569cb0;_0xeaf8c5[_0x3816d4('0x1d02')]=_0x5d2399[_0x3816d4('0x19b2')]||[];})[_0x569cb0('0x151d')](function(_0x3189a7){const _0x22fd5f=_0x569cb0;_0x78dba6[_0x22fd5f('0x255')]({'title':_0x3189a7[_0x22fd5f('0xff9')]?_0x22fd5f('0x574')+_0x3189a7[_0x22fd5f('0xff9')]+_0x22fd5f('0xb0b')+_0x3189a7['statusText']:'SYSTEM:GET_OUTBOUNDROUTES','msg':_0x3189a7[_0x22fd5f('0x4e8')]?JSON[_0x22fd5f('0x3e')](_0x3189a7[_0x22fd5f('0x4e8')]):_0x3189a7[_0x22fd5f('0xaab')]()});}):_0x54eb32['voiceExtension'][_0x569cb0('0xbaa')]({'fields':_0x569cb0('0x10c9'),'type':_0x569cb0('0x25b6'),'VoiceExtensionId':_0x569cb0('0xb5f'),'nolimit':_0x569cb0('0x204c')})[_0x569cb0('0x1549')][_0x569cb0('0x11bf')](function(_0x73a74b){const _0x455278=_0x569cb0;_0xeaf8c5[_0x455278('0x1d02')]=_0x73a74b[_0x455278('0x19b2')]||[];})[_0x569cb0('0x11bf')](function(){const _0x3fbe24=_0x569cb0;return _0x54eb32[_0x3fbe24('0x1d63')]['get']({'userProfileId':_0xeaf8c5['currentUser']['userProfileId'],'sectionId':0x193})['$promise'];})[_0x569cb0('0x11bf')](function(_0x2f9a3c){const _0x17d494=_0x569cb0,_0x1f0108=_0x2f9a3c&&_0x2f9a3c[_0x17d494('0x19b2')]?_0x2f9a3c[_0x17d494('0x19b2')][0x0]:null;if(!_0x1f0108){const _0x2b5fb5=[];let _0x3ff9a9=null;_0xeaf8c5[_0x17d494('0x1f5f')]&&(_0x3ff9a9=_0x36f548()[_0x17d494('0x1ad4')](_0xeaf8c5['outboundRoutes'],{'id':Number(_0xeaf8c5[_0x17d494('0x1f5f')][_0x17d494('0x219d')])}));for(let _0x32e65e=0x0;_0x32e65e<_0xeaf8c5['outboundRoutes'][_0x17d494('0x1e22')];_0x32e65e++){_0x3ff9a9&&_0xeaf8c5[_0x17d494('0x1d02')][_0x32e65e]['id']===_0x3ff9a9['id']&&(_0xeaf8c5[_0x17d494('0x1d02')][_0x32e65e][_0x17d494('0x254a')]=![],_0x2b5fb5[_0x17d494('0x105d')](_0xeaf8c5['outboundRoutes'][_0x32e65e]));}_0xeaf8c5[_0x17d494('0x1d02')]=_0x2b5fb5;}else{if(!_0x1f0108['autoAssociation'])return _0x54eb32[_0x17d494('0x26d1')]['get']({'sectionId':_0x1f0108['id']})['$promise'][_0x17d494('0x11bf')](function(_0x56594e){const _0x2bfe57=_0x17d494,_0x3398a8=_0x36f548()['map'](_0x56594e[_0x2bfe57('0x19b2')],function(_0x41a080){const _0x47c91c=_0x2bfe57;return _0x36f548()[_0x47c91c('0x1ad4')](_0xeaf8c5[_0x47c91c('0x1d02')],{'id':_0x41a080[_0x47c91c('0x15a5')]});});let _0x253d2f=null;_0xeaf8c5['voicePrefix']&&(_0x253d2f=_0x36f548()[_0x2bfe57('0x1ad4')](_0xeaf8c5[_0x2bfe57('0x1d02')],{'id':Number(_0xeaf8c5['voicePrefix']['VoiceExtensionId'])}));if(_0x253d2f&&!_0x36f548()[_0x2bfe57('0x1cb3')](_0x3398a8,['id',_0x253d2f['id']])){const _0x35b1f1=_0x36f548()['find'](_0xeaf8c5[_0x2bfe57('0x1d02')],{'id':_0x253d2f['id']});_0x35b1f1['canSelect']=![],_0x3398a8[_0x2bfe57('0x105d')](_0x35b1f1);}_0xeaf8c5[_0x2bfe57('0x1d02')]=_0x3398a8;});}})[_0x569cb0('0x151d')](function(_0x291c2d){const _0x2d0e27=_0x569cb0;_0x78dba6[_0x2d0e27('0x255')]({'title':_0x291c2d[_0x2d0e27('0xff9')]?_0x2d0e27('0x574')+_0x291c2d['status']+'\x20-\x20'+_0x291c2d[_0x2d0e27('0x212f')]:_0x2d0e27('0x1acb'),'msg':_0x291c2d[_0x2d0e27('0x4e8')]?JSON[_0x2d0e27('0x3e')](_0x291c2d[_0x2d0e27('0x4e8')]):_0x291c2d[_0x2d0e27('0xaab')]()});});function _0x1ae492(){const _0x17ae49=_0x569cb0;_0xeaf8c5['errors']=[],_0x54eb32['voicePrefix'][_0x17ae49('0x259')](_0xeaf8c5['voicePrefix'])[_0x17ae49('0x1549')]['then'](function(_0x20e095){const _0x39ace6=_0x17ae49;_0xeaf8c5['voicePrefixes'][_0x39ace6('0x880')](_0x20e095[_0x39ace6('0x2866')]()),_0x78dba6['success']({'title':_0x39ace6('0x1482'),'msg':_0xeaf8c5['voicePrefix']['name']?_0xeaf8c5[_0x39ace6('0x1f5f')][_0x39ace6('0x1909')]+_0x39ace6('0x7fb'):''}),_0xe7de7d(_0x20e095);})[_0x17ae49('0x151d')](function(_0x547928){const _0x2ddc1a=_0x17ae49;if(_0x547928[_0x2ddc1a('0x4e8')]&&_0x547928[_0x2ddc1a('0x4e8')][_0x2ddc1a('0x120f')]&&_0x547928[_0x2ddc1a('0x4e8')][_0x2ddc1a('0x120f')][_0x2ddc1a('0x1e22')]){_0xeaf8c5[_0x2ddc1a('0x120f')]=_0x547928[_0x2ddc1a('0x4e8')]['errors']||[{'message':_0x547928[_0x2ddc1a('0xaab')](),'type':'api.voicePrefix.save'}];for(let _0x162ce9=0x0;_0x162ce9<_0x547928['data']['errors'][_0x2ddc1a('0x1e22')];_0x162ce9+=0x1){_0x78dba6[_0x2ddc1a('0x255')]({'title':_0x547928['data'][_0x2ddc1a('0x120f')][_0x162ce9][_0x2ddc1a('0x19fd')],'msg':_0x547928[_0x2ddc1a('0x4e8')][_0x2ddc1a('0x120f')][_0x162ce9][_0x2ddc1a('0x1b86')]});}}else _0x78dba6[_0x2ddc1a('0x255')]({'title':_0x547928[_0x2ddc1a('0xff9')]?'API:'+_0x547928[_0x2ddc1a('0xff9')]+_0x2ddc1a('0xb0b')+_0x547928[_0x2ddc1a('0x212f')]:_0x2ddc1a('0xa86'),'msg':_0x547928[_0x2ddc1a('0x4e8')]?JSON['stringify'](_0x547928['data'][_0x2ddc1a('0x1b86')]):_0x547928['toString']()});});}function _0x63759e(){const _0xdeb6b5=_0x569cb0;_0xeaf8c5[_0xdeb6b5('0x120f')]=[],_0x54eb32[_0xdeb6b5('0x1f5f')]['update']({'id':_0xeaf8c5[_0xdeb6b5('0x1f5f')]['id']},_0xeaf8c5['voicePrefix'])['$promise'][_0xdeb6b5('0x11bf')](function(_0x458b97){const _0x4cfb16=_0xdeb6b5,_0x506de0=_0x36f548()[_0x4cfb16('0x1ad4')](_0xeaf8c5[_0x4cfb16('0x148d')],{'id':_0x458b97['id']});_0x506de0&&_0x36f548()[_0x4cfb16('0x47b')](_0x506de0,_0x36f548()[_0x4cfb16('0x258')](_0x458b97[_0x4cfb16('0x2866')](),_0x36f548()[_0x4cfb16('0xe22')](_0x506de0))),_0x78dba6['success']({'title':'voicePrefix\x20properly\x20saved!','msg':_0xeaf8c5['voicePrefix'][_0x4cfb16('0x1909')]?_0xeaf8c5[_0x4cfb16('0x1f5f')]['name']+'\x20has\x20been\x20saved!':''}),_0xe7de7d(_0x458b97);})[_0xdeb6b5('0x151d')](function(_0x2f9d55){const _0x113cbf=_0xdeb6b5;if(_0x2f9d55['data']&&_0x2f9d55['data'][_0x113cbf('0x120f')]&&_0x2f9d55['data']['errors'][_0x113cbf('0x1e22')]){_0xeaf8c5[_0x113cbf('0x120f')]=_0x2f9d55['data'][_0x113cbf('0x120f')]||[{'message':_0x2f9d55[_0x113cbf('0xaab')](),'type':_0x113cbf('0x1c52')}];for(let _0x5af673=0x0;_0x5af673<_0x2f9d55[_0x113cbf('0x4e8')]['errors'][_0x113cbf('0x1e22')];_0x5af673++){_0x78dba6[_0x113cbf('0x255')]({'title':_0x2f9d55[_0x113cbf('0x4e8')][_0x113cbf('0x120f')][_0x5af673][_0x113cbf('0x19fd')],'msg':_0x2f9d55['data'][_0x113cbf('0x120f')][_0x5af673][_0x113cbf('0x1b86')]});}}else _0x78dba6[_0x113cbf('0x255')]({'title':_0x2f9d55[_0x113cbf('0xff9')]?_0x113cbf('0x574')+_0x2f9d55[_0x113cbf('0xff9')]+_0x113cbf('0xb0b')+_0x2f9d55['statusText']:_0x113cbf('0x1c52'),'msg':_0x2f9d55[_0x113cbf('0x4e8')]?JSON[_0x113cbf('0x3e')](_0x2f9d55[_0x113cbf('0x4e8')][_0x113cbf('0x1b86')]):_0x2f9d55[_0x113cbf('0xaab')]()});});}function _0x338d9b(_0x55e323){const _0x3b001d=_0x569cb0;_0xeaf8c5[_0x3b001d('0x120f')]=[];const _0x1646cb=_0x58bd06['confirm']()[_0x3b001d('0x134b')](_0x3b001d('0x1fa9'))[_0x3b001d('0x252a')](_0x3b001d('0x43'))[_0x3b001d('0xb2e')](_0x3b001d('0x116e'))['ok'](_0x3b001d('0x1167'))[_0x3b001d('0x26c9')]('Cancel')[_0x3b001d('0x1e25')](_0x55e323);_0x58bd06[_0x3b001d('0xb9')](_0x1646cb)['then'](function(){const _0x96a3=_0x3b001d;_0x54eb32[_0x96a3('0x1f5f')]['delete']({'id':_0xeaf8c5[_0x96a3('0x1f5f')]['id']})[_0x96a3('0x1549')]['then'](function(){const _0x3bbd24=_0x96a3;_0x36f548()[_0x3bbd24('0x14a5')](_0xeaf8c5[_0x3bbd24('0x148d')],{'id':_0xeaf8c5[_0x3bbd24('0x1f5f')]['id']}),_0x78dba6['success']({'title':'voicePrefix\x20properly\x20deleted!','msg':(_0xeaf8c5[_0x3bbd24('0x1f5f')][_0x3bbd24('0x1909')]||'voicePrefix')+_0x3bbd24('0x433')}),_0xe7de7d(_0xeaf8c5[_0x3bbd24('0x1f5f')]);})['catch'](function(_0x33c60d){const _0x15f18a=_0x96a3;if(_0x33c60d[_0x15f18a('0x4e8')]&&_0x33c60d[_0x15f18a('0x4e8')][_0x15f18a('0x120f')]&&_0x33c60d[_0x15f18a('0x4e8')][_0x15f18a('0x120f')][_0x15f18a('0x1e22')]){_0xeaf8c5[_0x15f18a('0x120f')]=_0x33c60d['data'][_0x15f18a('0x120f')]||[{'message':_0x33c60d[_0x15f18a('0xaab')](),'type':_0x15f18a('0x208e')}];for(let _0x43b365=0x0;_0x43b365<_0x33c60d[_0x15f18a('0x4e8')]['errors']['length'];_0x43b365++){_0x78dba6[_0x15f18a('0x255')]({'title':_0x33c60d[_0x15f18a('0x4e8')][_0x15f18a('0x120f')][_0x43b365][_0x15f18a('0x19fd')],'msg':_0x33c60d['data']['errors'][_0x43b365][_0x15f18a('0x1b86')]});}}else _0x78dba6[_0x15f18a('0x255')]({'title':_0x33c60d[_0x15f18a('0xff9')]?_0x15f18a('0x574')+_0x33c60d[_0x15f18a('0xff9')]+_0x15f18a('0xb0b')+_0x33c60d['statusText']:'api.voicePrefix.delete','msg':_0x33c60d[_0x15f18a('0x4e8')]?JSON[_0x15f18a('0x3e')](_0x33c60d[_0x15f18a('0x4e8')][_0x15f18a('0x1b86')]):_0x33c60d['message']||_0x33c60d[_0x15f18a('0xaab')]()});});},function(){});}function _0x142b10(_0x3d4f3c){return _0x3d4f3c===null?undefined:new Date(_0x3d4f3c);}function _0xe7de7d(_0x2d0031){const _0x4954f0=_0x569cb0;_0x58bd06[_0x4954f0('0x237e')](_0x2d0031);}}const _0x5c2731=_0x3792d5;_0x3bd956[_0x21d0f5('0x1e9a')]=['$mdDialog','$q','toasty','api','voicePrefix',_0x21d0f5('0x148d'),'realtime',_0x21d0f5('0xb6b'),_0x21d0f5('0x1150'),'crudPermissions'];function _0x3bd956(_0x3d48d5,_0x32a422,_0x45cdcf,_0x3d7689,_0xedae1,_0x185969,_0xd1d747,_0x16ca06,_0x1fe2bb,_0x30e993){const _0x200fb9=_0x21d0f5,_0x418cf6=this;_0x418cf6[_0x200fb9('0x32a')]=_0x1fe2bb[_0x200fb9('0x2428')](),_0x418cf6[_0x200fb9('0x1f5f')]=_0xedae1,_0x418cf6[_0x200fb9('0xb25')]=_0x30e993,_0x418cf6[_0x200fb9('0x25f9')]=_0xd1d747,_0x418cf6['items']=[],_0x418cf6[_0x200fb9('0x63')]=[],_0x418cf6[_0x200fb9('0x26cc')]=[],_0x418cf6['startingAllowedItems']=[],_0x418cf6['startingSelectedItems']=[],_0x418cf6[_0x200fb9('0x1eda')]=![],_0x418cf6[_0x200fb9('0x277c')]=_0x51cd65,_0x418cf6['saveAgents']=_0x5dab65,_0x418cf6[_0x200fb9('0xc4e')]=_0x5d04de,_0x418cf6[_0x200fb9('0xec5')]={'readOnly':!_0x418cf6[_0x200fb9('0xb25')][_0x200fb9('0x25db')],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x200fb9('0x1909'),'line1':_0x200fb9('0x27af'),'line2':[_0x200fb9('0x1909'),_0x200fb9('0x1a04')],'line3':'','labelAll':_0x16ca06['instant'](_0x200fb9('0x250e')),'labelSelected':_0x16ca06[_0x200fb9('0x10c2')](_0x200fb9('0x24b4')),'transferCallback':function(){const _0x374c11=_0x200fb9,_0x5ecc81=_0x36f548()[_0x374c11('0x1a1b')](_0x418cf6['startingSelectedItems'],_0x418cf6[_0x374c11('0x26cc')],'id');_0x418cf6[_0x374c11('0x1eda')]=_0x36f548()[_0x374c11('0x1fc5')](_0x5ecc81)?![]:!![];}};function _0x51cd65(){const _0x2eac14=_0x200fb9;return _0x1fe2bb[_0x2eac14('0x4ee')](_0x2eac14('0xf45'))?_0x1b6995()[_0x2eac14('0x151d')](function(_0x2cd2ce){const _0x10ea50=_0x2eac14;_0x45cdcf['error']({'title':_0x2cd2ce[_0x10ea50('0xff9')]?_0x10ea50('0x574')+_0x2cd2ce['status']+_0x10ea50('0xb0b')+_0x2cd2ce[_0x10ea50('0x212f')]:_0x10ea50('0x912'),'msg':_0x2cd2ce[_0x10ea50('0xff9')]?JSON['stringify'](_0x2cd2ce[_0x10ea50('0x4e8')]):_0x2cd2ce[_0x10ea50('0xaab')]()});}):_0x564520()['then'](function(_0x38079f){return _0x418cf6['section']=_0x38079f,_0x1b6995();})['catch'](function(_0x2232d8){const _0x38ee42=_0x2eac14;_0x45cdcf['error']({'title':_0x2232d8[_0x38ee42('0xff9')]?_0x38ee42('0x574')+_0x2232d8['status']+_0x38ee42('0xb0b')+_0x2232d8[_0x38ee42('0x212f')]:_0x38ee42('0x912'),'msg':_0x2232d8[_0x38ee42('0xff9')]?JSON[_0x38ee42('0x3e')](_0x2232d8['data']):_0x2232d8[_0x38ee42('0xaab')]()});});}function _0x564520(){return _0x32a422(function(_0x50dc98,_0x5b2584){const _0x4415cd=a0_0xaf0c;_0x3d7689[_0x4415cd('0x1d63')]['get']({'userProfileId':_0x418cf6[_0x4415cd('0x32a')][_0x4415cd('0x781')],'name':_0x4415cd('0x4b1')})['$promise']['then'](function(_0xca91ed){const _0xed5453=_0x4415cd,_0x5db295=_0xca91ed&&_0xca91ed['rows']?_0xca91ed[_0xed5453('0x19b2')][0x0]:null;_0x50dc98(_0x5db295);})[_0x4415cd('0x151d')](function(_0x31a6e2){_0x5b2584(_0x31a6e2);});});}function _0x1b6995(){return _0x32a422(function(_0x501807,_0x1d3065){const _0xb7c849=a0_0xaf0c;return _0x5df283()[_0xb7c849('0x11bf')](function(_0x41fa8f){const _0x125dbb=_0xb7c849;return _0x418cf6[_0x125dbb('0x22')]=_0x41fa8f[_0x125dbb('0x19b2')]?_0x41fa8f[_0x125dbb('0x19b2')]:[],_0x1fe2bb[_0x125dbb('0x4ee')]('admin')?_0x41fa8f:_0x418cf6[_0x125dbb('0xe6')]?_0x418cf6['section'][_0x125dbb('0xf11')]?_0x41fa8f:_0x20e321():null;})[_0xb7c849('0x11bf')](function(_0x466e4e){const _0xbe0c86=_0xb7c849,_0x194204=_0x466e4e&&_0x466e4e[_0xbe0c86('0x19b2')]?_0x466e4e[_0xbe0c86('0x19b2')]:[];return _0x418cf6['allowedItems']=_0x36f548()[_0xbe0c86('0x2171')](_0x194204,function(_0x3e7928){const _0x54c7f9=_0xbe0c86;return _0x36f548()[_0x54c7f9('0x1ad4')](_0x418cf6[_0x54c7f9('0x22')],{'id':_0x1fe2bb[_0x54c7f9('0x4ee')](_0x54c7f9('0xf45'))||_0x418cf6[_0x54c7f9('0xe6')][_0x54c7f9('0xf11')]?_0x3e7928['id']:_0x3e7928[_0x54c7f9('0x15a5')]});}),_0x418cf6['startingAllowedItems']=angular['copy'](_0x418cf6['allowedItems']),_0x418cf6['items'][_0xbe0c86('0x1f88')](function(_0x465d52){const _0x263437=_0xbe0c86,_0x74f25b=_0x36f548()[_0x263437('0x1ad4')](_0x418cf6[_0x263437('0x63')],{'id':_0x465d52['id']});_0x1fe2bb[_0x263437('0x4ee')]('admin')?_0x465d52[_0x263437('0xde9')]=!![]:_0x465d52[_0x263437('0xde9')]=typeof _0x74f25b!=='undefined'?!![]:![];}),_0x254119();})['then'](function(_0x5efdf6){const _0x5310e2=_0xb7c849,_0x2ca989=_0x5efdf6&&_0x5efdf6[_0x5310e2('0x19b2')]?_0x5efdf6['rows']:[];_0x418cf6['selectedItems']=_0x36f548()[_0x5310e2('0x2171')](_0x2ca989,function(_0x8382e4){const _0x3326dc=_0x5310e2,_0x3ba546=_0x36f548()['find'](_0x418cf6['items'],{'id':_0x8382e4['id']});return _0x3ba546['penalty']=_0x8382e4[_0x3326dc('0x18b3')]?'penalty\x20'+_0x8382e4[_0x3326dc('0x18b3')][_0x3326dc('0xf47')]:'',_0x3ba546[_0x3326dc('0x1a04')]=typeof _0x8382e4[_0x3326dc('0x1a04')]!==_0x3326dc('0x13e9')?'<'+_0x8382e4[_0x3326dc('0x1a04')]+'>':'',_0x3ba546;}),_0x418cf6[_0x5310e2('0x21ed')]=angular[_0x5310e2('0x6fb')](_0x418cf6['selectedItems']),_0x418cf6['dualMultiselectOptions'][_0x5310e2('0x26cc')]=_0x418cf6[_0x5310e2('0x26cc')],_0x418cf6[_0x5310e2('0xec5')][_0x5310e2('0x22')]=_0x36f548()[_0x5310e2('0x2753')](_0x418cf6[_0x5310e2('0x63')],_0x418cf6[_0x5310e2('0xec5')]['selectedItems'],'id'),_0x501807();})['catch'](function(_0x5aea36){_0x1d3065(_0x5aea36);});});}function _0x20e321(){return _0x32a422(function(_0x3af763,_0x7695b1){const _0x30e0b2=a0_0xaf0c;return _0x3d7689[_0x30e0b2('0x26d1')]['get']({'sectionId':_0x418cf6[_0x30e0b2('0xe6')]['id'],'nolimit':!![]})[_0x30e0b2('0x1549')]['then'](function(_0x53d02f){_0x3af763(_0x53d02f);})[_0x30e0b2('0x151d')](function(_0x154ea0){_0x7695b1(_0x154ea0);});});}function _0x254119(){return _0x32a422(function(_0x42ea29,_0x10c5bd){const _0x365450=a0_0xaf0c;return _0x3d7689['voicePrefix'][_0x365450('0x2783')]({'id':_0x418cf6['voicePrefix']['id'],'fields':_0x365450('0x13d3'),'nolimit':!![],'role':_0x365450('0x18c4')})[_0x365450('0x1549')][_0x365450('0x11bf')](function(_0x344515){_0x42ea29(_0x344515);})['catch'](function(_0x3fdc05){_0x10c5bd(_0x3fdc05);});});}function _0x5df283(){return _0x32a422(function(_0x3c836f,_0x339234){const _0x46688e=a0_0xaf0c;return _0x3d7689['user'][_0x46688e('0xbaa')]({'fields':_0x46688e('0x13d3'),'nolimit':!![],'role':'agent'})[_0x46688e('0x1549')][_0x46688e('0x11bf')](function(_0xfb5e0){_0x3c836f(_0xfb5e0);})['catch'](function(_0x5c9e9e){_0x339234(_0x5c9e9e);});});}function _0x34b6e9(_0x686dd8){return _0x32a422(function(_0x3427e7,_0x3099ec){const _0x35a834=a0_0xaf0c;_0x36f548()[_0x35a834('0x1fc5')](_0x686dd8)?_0x3427e7():_0x3d7689[_0x35a834('0x1f5f')]['addAgents']({'id':_0x418cf6['voicePrefix']['id'],'ids':_0x36f548()[_0x35a834('0x2171')](_0x686dd8,'id')})[_0x35a834('0x1549')][_0x35a834('0x11bf')](function(){_0x3427e7();})[_0x35a834('0x151d')](function(_0x437289){_0x3099ec(_0x437289);});});}function _0x50dd07(_0x257bc7){return _0x32a422(function(_0x54b9b6,_0x54836f){const _0xe866dc=a0_0xaf0c;_0x36f548()[_0xe866dc('0x1fc5')](_0x257bc7)?_0x54b9b6():_0x3d7689['voicePrefix'][_0xe866dc('0x1ec0')]({'id':_0x418cf6['voicePrefix']['id'],'ids':_0x36f548()[_0xe866dc('0x2171')](_0x257bc7,'id')})['$promise'][_0xe866dc('0x11bf')](function(){_0x54b9b6();})['catch'](function(_0x5a561f){_0x54836f(_0x5a561f);});});}function _0x5dab65(){const _0x4ca531=_0x200fb9,_0x237458=_0x36f548()['differenceBy'](_0x418cf6[_0x4ca531('0x21ed')],_0x418cf6[_0x4ca531('0x26cc')],'id'),_0x1e441f=_0x36f548()[_0x4ca531('0x2753')](_0x418cf6[_0x4ca531('0x26cc')],_0x418cf6[_0x4ca531('0x21ed')],'id');return _0x50dd07(_0x237458)['then'](function(){return _0x34b6e9(_0x1e441f);})[_0x4ca531('0x11bf')](function(){const _0x173f55=_0x4ca531;_0x418cf6['pendingChanges']=![],_0x418cf6['startingAllowedItems']=angular[_0x173f55('0x6fb')](_0x418cf6['allowedItems']),_0x418cf6[_0x173f55('0x21ed')]=angular[_0x173f55('0x6fb')](_0x418cf6[_0x173f55('0x26cc')]),_0x45cdcf[_0x173f55('0x2693')]({'title':_0x173f55('0x2243'),'msg':_0x173f55('0x2273')});})[_0x4ca531('0x151d')](function(_0x2cfaba){const _0x4bb25f=_0x4ca531;_0x45cdcf[_0x4bb25f('0x255')]({'title':_0x2cfaba['status']?_0x4bb25f('0x574')+_0x2cfaba['status']+_0x4bb25f('0xb0b')+_0x2cfaba['statusText']:'SYSTEM:LISTS_ASSOCIATION','msg':_0x2cfaba[_0x4bb25f('0xff9')]?JSON[_0x4bb25f('0x3e')](_0x2cfaba[_0x4bb25f('0x4e8')]):_0x2cfaba[_0x4bb25f('0xaab')]()});});}function _0x5d04de(){const _0x1b6291=_0x200fb9;_0x3d48d5[_0x1b6291('0x237e')]();}}const _0x4d557f=_0x3bd956,_0x2ef0f0=_0x351988['p']+_0x21d0f5('0xc5'),_0x195a2b=_0x351988['p']+_0x21d0f5('0x1bad');_0x3cec62[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0x2143'),_0x21d0f5('0xcbc'),_0x21d0f5('0x18fe'),_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),_0x21d0f5('0x17f5'),_0x21d0f5('0xb6b'),_0x21d0f5('0x148d'),_0x21d0f5('0x25bc'),_0x21d0f5('0x1d63'),_0x21d0f5('0x12a5'),_0x21d0f5('0xda9'),_0x21d0f5('0x142d'),_0x21d0f5('0x1150'),_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1')];function _0x3cec62(_0x12f15d,_0x3ce1dd,_0x53d8a4,_0x6b206e,_0xc0ae73,_0x3fa042,_0x611ea8,_0x5c68f7,_0x109eb7,_0x366e90,_0x3e0b3f,_0x283144,_0x229dfa,_0x5e6d00,_0x457829,_0x2c9e21,_0x3a4354){const _0x2479dd=_0x21d0f5,_0x31e18b=this;_0x31e18b['license']=_0x2c9e21,_0x31e18b[_0x2479dd('0x23e1')]=_0x3a4354,_0x31e18b[_0x2479dd('0x32a')]=_0x457829[_0x2479dd('0x2428')](),_0x31e18b[_0x2479dd('0x148d')]=_0x109eb7||{'count':0x0,'rows':[]},_0x31e18b[_0x2479dd('0x25bc')]=_0x366e90,_0x31e18b[_0x2479dd('0x1d63')]=_0x3e0b3f&&_0x3e0b3f[_0x2479dd('0x27d2')]==0x1?_0x3e0b3f['rows'][0x0]:null,_0x31e18b[_0x2479dd('0xb25')]=_0x457829[_0x2479dd('0x1530')](_0x31e18b[_0x2479dd('0x1d63')]?_0x31e18b[_0x2479dd('0x1d63')]['crudPermissions']:null),_0x31e18b[_0x2479dd('0x13e8')]=_0x2479dd('0x148d'),_0x31e18b[_0x2479dd('0x724')]='',_0x31e18b[_0x2479dd('0xe3c')]=null,_0x31e18b[_0x2479dd('0xa30')]=[],_0x31e18b['query']={'fields':_0x2479dd('0x1d6f'),'limit':0xa,'page':0x1},_0x31e18b['editdialog']=_0x46cf33,_0x31e18b[_0x2479dd('0x2363')]=_0x14cc51,_0x31e18b[_0x2479dd('0x549')]=_0x2c2836,_0x31e18b[_0x2479dd('0x2693')]=_0x56aa34,_0x31e18b[_0x2479dd('0x250d')]=_0x4de87f,_0x31e18b[_0x2479dd('0x22f0')]=_0x57495b,_0x31e18b['deletevoicePrefix']=_0x4b083a,_0x31e18b[_0x2479dd('0x1c8b')]=_0xfb4700,_0x31e18b[_0x2479dd('0x1645')]=_0x5d3874,_0x31e18b[_0x2479dd('0x14ac')]=_0x74076a,_0x31e18b[_0x2479dd('0xd76')]=_0x556521,_0x457829[_0x2479dd('0x4ee')](_0x2479dd('0xf45'))?_0x283144['voiceExtension'][_0x2479dd('0xbaa')]({'fields':_0x2479dd('0x10c9'),'type':'outbound','VoiceExtensionId':_0x2479dd('0xb5f'),'nolimit':_0x2479dd('0x204c')})[_0x2479dd('0x1549')]['then'](function(_0x2aa4ce){const _0x3baec7=_0x2479dd;_0x31e18b['outboundRoutes']=_0x2aa4ce[_0x3baec7('0x19b2')]||[];})[_0x2479dd('0x151d')](function(_0x1ef943){const _0xb8f397=_0x2479dd;_0x5e6d00[_0xb8f397('0x255')]({'title':_0x1ef943['status']?'API:'+_0x1ef943[_0xb8f397('0xff9')]+'\x20-\x20'+_0x1ef943['statusText']:_0xb8f397('0x20fa'),'msg':_0x1ef943[_0xb8f397('0x4e8')]?JSON['stringify'](_0x1ef943[_0xb8f397('0x4e8')]):_0x1ef943[_0xb8f397('0xaab')]()});}):_0x283144['voiceExtension'][_0x2479dd('0xbaa')]({'fields':'id,exten','type':_0x2479dd('0x25b6'),'VoiceExtensionId':_0x2479dd('0xb5f'),'nolimit':'true'})[_0x2479dd('0x1549')]['then'](function(_0x5e9bde){const _0x475d6e=_0x2479dd;_0x31e18b[_0x475d6e('0x1d02')]=_0x5e9bde['rows']||[];})[_0x2479dd('0x11bf')](function(){const _0x4af97f=_0x2479dd;return _0x283144[_0x4af97f('0x1d63')][_0x4af97f('0xbaa')]({'userProfileId':_0x31e18b[_0x4af97f('0x32a')][_0x4af97f('0x781')],'sectionId':0x193})[_0x4af97f('0x1549')];})[_0x2479dd('0x11bf')](function(_0x7967a0){const _0x53caa4=_0x2479dd,_0x419dcc=_0x7967a0&&_0x7967a0['rows']?_0x7967a0[_0x53caa4('0x19b2')][0x0]:null;if(!_0x419dcc){const _0x5a563d=[];let _0x15eabc=null;_0x31e18b['voicePrefix']&&(_0x15eabc=_0x36f548()['find'](_0x31e18b[_0x53caa4('0x1d02')],{'id':Number(_0x31e18b[_0x53caa4('0x1f5f')]['VoiceExtensionId'])}));for(let _0xc14106=0x0;_0xc14106<_0x31e18b['outboundRoutes'][_0x53caa4('0x1e22')];_0xc14106++){_0x15eabc&&_0x31e18b[_0x53caa4('0x1d02')][_0xc14106]['id']===_0x15eabc['id']&&(_0x31e18b[_0x53caa4('0x1d02')][_0xc14106][_0x53caa4('0x254a')]=![],_0x5a563d['push'](_0x31e18b[_0x53caa4('0x1d02')][_0xc14106]));}_0x31e18b[_0x53caa4('0x1d02')]=_0x5a563d;}else{if(!_0x419dcc['autoAssociation'])return _0x283144[_0x53caa4('0x26d1')]['get']({'sectionId':_0x419dcc['id']})[_0x53caa4('0x1549')]['then'](function(_0x4b727a){const _0x4523d7=_0x53caa4,_0x172d93=_0x36f548()[_0x4523d7('0x2171')](_0x4b727a[_0x4523d7('0x19b2')],function(_0x5dbf85){const _0x3271fc=_0x4523d7;return _0x36f548()['find'](_0x31e18b['outboundRoutes'],{'id':_0x5dbf85[_0x3271fc('0x15a5')]});});let _0x4b0316=null;_0x31e18b[_0x4523d7('0x1f5f')]&&(_0x4b0316=_0x36f548()[_0x4523d7('0x1ad4')](_0x31e18b[_0x4523d7('0x1d02')],{'id':Number(_0x31e18b[_0x4523d7('0x1f5f')][_0x4523d7('0x219d')])}));if(_0x4b0316&&!_0x36f548()[_0x4523d7('0x1cb3')](_0x172d93,['id',_0x4b0316['id']])){const _0x237816=_0x36f548()[_0x4523d7('0x1ad4')](_0x31e18b[_0x4523d7('0x1d02')],{'id':_0x4b0316['id']});_0x237816[_0x4523d7('0x254a')]=![],_0x172d93[_0x4523d7('0x105d')](_0x237816);}_0x31e18b[_0x4523d7('0x1d02')]=_0x172d93;});}})[_0x2479dd('0x151d')](function(_0x49df21){const _0x564324=_0x2479dd;_0x5e6d00[_0x564324('0x255')]({'title':_0x49df21['status']?_0x564324('0x574')+_0x49df21[_0x564324('0xff9')]+_0x564324('0xb0b')+_0x49df21[_0x564324('0x212f')]:'SYSTEM:GEToutboundRoutes','msg':_0x49df21[_0x564324('0x4e8')]?JSON['stringify'](_0x49df21[_0x564324('0x4e8')]):_0x49df21['toString']()});});function _0x46cf33(_0x23e3a3,_0x1bb4be){const _0x446758=_0x2479dd;_0xc0ae73[_0x446758('0xb9')]({'controller':_0x446758('0x5d0'),'controllerAs':'vm','templateUrl':_0x2ef0f0,'parent':angular[_0x446758('0x1e73')](_0x3fa042[_0x446758('0x1d2')]),'targetEvent':_0x1bb4be,'clickOutsideToClose':!![],'locals':{'voicePrefix':_0x23e3a3,'voicePrefixes':_0x31e18b[_0x446758('0x148d')][_0x446758('0x19b2')],'license':_0x31e18b[_0x446758('0x17ff')],'setting':null,'crudPermissions':_0x31e18b[_0x446758('0xb25')]}});}function _0x14cc51(_0x4dbee3,_0x2f855b){const _0x982cea=_0x2479dd;_0xc0ae73[_0x982cea('0xb9')]({'controller':'voicePrefixagentaddController','controllerAs':'vm','templateUrl':_0x195a2b,'parent':angular[_0x982cea('0x1e73')](_0x3fa042[_0x982cea('0x1d2')]),'targetEvent':_0x2f855b,'clickOutsideToClose':!![],'locals':{'voicePrefix':_0x4dbee3,'voicePrefixes':_0x31e18b[_0x982cea('0x148d')]?_0x31e18b[_0x982cea('0x148d')]['rows']:[],'crudPermissions':_0x31e18b['crudPermissions'],'realtime':![]}});}function _0x2c2836(_0x3c4d2e,_0x163b06){const _0x4b6e14=_0x2479dd,_0x43cad4=_0xc0ae73[_0x4b6e14('0x132b')]()[_0x4b6e14('0x134b')](_0x4b6e14('0x1796')+_0x36f548()[_0x4b6e14('0x13cf')]('voicePrefix')+'?')[_0x4b6e14('0x1d03')](_0x4b6e14('0x2061')+(_0x3c4d2e[_0x4b6e14('0x1909')]||_0x4b6e14('0x1f5f'))+_0x4b6e14('0x1c78')+'\x20will\x20be\x20deleted.')[_0x4b6e14('0xb2e')](_0x4b6e14('0x1eeb'))[_0x4b6e14('0x1e25')](_0x163b06)['ok']('OK')[_0x4b6e14('0x26c9')]('CANCEL');_0xc0ae73[_0x4b6e14('0xb9')](_0x43cad4)[_0x4b6e14('0x11bf')](function(){_0x4b083a(_0x3c4d2e);},function(){console['log']('CANCEL');});}let _0x473c67=!![],_0xfaac76=0x1;_0x12f15d[_0x2479dd('0x2087')](_0x2479dd('0x842'),function(_0x1916d3,_0x29accf){const _0xebd21b=_0x2479dd;_0x473c67?_0x611ea8(function(){_0x473c67=![];}):(!_0x29accf&&(_0xfaac76=_0x31e18b[_0xebd21b('0x1f2a')][_0xebd21b('0x1c2')]),_0x1916d3!==_0x29accf&&(_0x31e18b['query'][_0xebd21b('0x1c2')]=0x1),!_0x1916d3&&(_0x31e18b[_0xebd21b('0x1f2a')]['page']=_0xfaac76),_0x31e18b[_0xebd21b('0x250d')]());});function _0x56aa34(_0xd5686a){const _0x3f1f99=_0x2479dd;_0x31e18b[_0x3f1f99('0x148d')]=_0xd5686a||{'count':0x0,'rows':[]};}function _0x4de87f(){const _0x379ebb=_0x2479dd;_0x31e18b['query'][_0x379ebb('0x1393')]=(_0x31e18b['query'][_0x379ebb('0x1c2')]-0x1)*_0x31e18b[_0x379ebb('0x1f2a')][_0x379ebb('0xd5c')],_0x457829[_0x379ebb('0x4ee')](_0x379ebb('0xf45'))?_0x31e18b[_0x379ebb('0x13f')]=_0x283144[_0x379ebb('0x1f5f')][_0x379ebb('0xbaa')](_0x31e18b[_0x379ebb('0x1f2a')],_0x56aa34)[_0x379ebb('0x1549')]:(_0x31e18b['query']['id']=_0x31e18b['userProfile']['id'],_0x31e18b[_0x379ebb('0x1f2a')][_0x379ebb('0xe6')]=_0x379ebb('0xe2f'),_0x31e18b['promise']=_0x283144['userProfile'][_0x379ebb('0x228e')](_0x31e18b['query'],_0x56aa34)[_0x379ebb('0x1549')]);}function _0x57495b(_0x4fe6de,_0x28e43b){const _0x30bc04=_0x2479dd;_0xc0ae73[_0x30bc04('0xb9')]({'controller':'CreateOrEditvoicePrefixDialogController','controllerAs':'vm','templateUrl':_0x2ef0f0,'parent':angular[_0x30bc04('0x1e73')](_0x3fa042[_0x30bc04('0x1d2')]),'targetEvent':_0x4fe6de,'clickOutsideToClose':!![],'locals':{'voicePrefix':_0x28e43b,'voicePrefixes':_0x31e18b['voicePrefixes'][_0x30bc04('0x19b2')],'license':_0x31e18b[_0x30bc04('0x17ff')],'setting':_0x31e18b[_0x30bc04('0x23e1')],'crudPermissions':_0x31e18b['crudPermissions']}});}function _0x4b083a(_0x5aa725){const _0x39ec3a=_0x2479dd;_0x283144[_0x39ec3a('0x1f5f')][_0x39ec3a('0x2088')]({'id':_0x5aa725['id']})[_0x39ec3a('0x1549')][_0x39ec3a('0x11bf')](function(){const _0x59cfcf=_0x39ec3a;_0x36f548()[_0x59cfcf('0x14a5')](_0x31e18b['voicePrefixes']['rows'],{'id':_0x5aa725['id']}),_0x31e18b['voicePrefixes']['count']-=0x1,!_0x31e18b[_0x59cfcf('0x148d')][_0x59cfcf('0x19b2')]['length']&&_0x31e18b[_0x59cfcf('0x250d')](),_0x5e6d00['success']({'title':_0x36f548()[_0x59cfcf('0x13cf')]('voicePrefix')+_0x59cfcf('0x2113'),'msg':_0x5aa725[_0x59cfcf('0x1909')]?_0x5aa725[_0x59cfcf('0x1909')]+'\x20has\x20been\x20deleted!':''});})[_0x39ec3a('0x151d')](function(_0x3220f8){const _0x2bc39f=_0x39ec3a;if(_0x3220f8[_0x2bc39f('0x4e8')]&&_0x3220f8['data'][_0x2bc39f('0x120f')]&&_0x3220f8[_0x2bc39f('0x4e8')][_0x2bc39f('0x120f')][_0x2bc39f('0x1e22')]){_0x31e18b[_0x2bc39f('0x120f')]=_0x3220f8[_0x2bc39f('0x4e8')][_0x2bc39f('0x120f')]||[{'message':_0x3220f8[_0x2bc39f('0xaab')](),'type':_0x2bc39f('0xf62')}];for(let _0x27b152=0x0;_0x27b152<_0x3220f8[_0x2bc39f('0x4e8')][_0x2bc39f('0x120f')][_0x2bc39f('0x1e22')];_0x27b152++){_0x5e6d00[_0x2bc39f('0x255')]({'title':_0x3220f8['data'][_0x2bc39f('0x120f')][_0x27b152][_0x2bc39f('0x19fd')],'msg':_0x3220f8[_0x2bc39f('0x4e8')]['errors'][_0x27b152][_0x2bc39f('0x1b86')]});}}else _0x5e6d00[_0x2bc39f('0x255')]({'title':_0x3220f8[_0x2bc39f('0xff9')]?'API:'+_0x3220f8[_0x2bc39f('0xff9')]+_0x2bc39f('0xb0b')+_0x3220f8[_0x2bc39f('0x212f')]:_0x2bc39f('0xf62'),'msg':_0x3220f8[_0x2bc39f('0x4e8')]?JSON[_0x2bc39f('0x3e')](_0x3220f8[_0x2bc39f('0x4e8')][_0x2bc39f('0x1b86')]):_0x3220f8[_0x2bc39f('0x1b86')]||_0x3220f8['toString']()});});}function _0xfb4700(){const _0x4ef121=_0x2479dd,_0x4a425a=angular['copy'](_0x31e18b[_0x4ef121('0xa30')]);return _0x31e18b[_0x4ef121('0xa30')]=[],_0x4a425a;}function _0x5d3874(_0x49efc8){const _0x115a0a=_0x2479dd,_0x31a8ed=_0xc0ae73['confirm']()['title'](_0x115a0a('0x1eb1'))['htmlContent'](_0x115a0a('0x2061')+_0x31e18b[_0x115a0a('0xa30')]['length']+_0x115a0a('0xac6')+_0x115a0a('0x1a'))['ariaLabel'](_0x115a0a('0xba0'))[_0x115a0a('0x1e25')](_0x49efc8)['ok']('OK')[_0x115a0a('0x26c9')](_0x115a0a('0x772'));_0xc0ae73[_0x115a0a('0xb9')](_0x31a8ed)[_0x115a0a('0x11bf')](function(){const _0x668fa5=_0x115a0a;_0x31e18b[_0x668fa5('0xa30')][_0x668fa5('0x1f88')](function(_0x5df357){_0x4b083a(_0x5df357);}),_0x31e18b['selectedVoicePrefixes']=[];});}function _0x74076a(){_0x31e18b['selectedVoicePrefixes']=[];}function _0x556521(){const _0x5c0686=_0x2479dd;_0x31e18b[_0x5c0686('0xa30')]=_0x31e18b[_0x5c0686('0x148d')][_0x5c0686('0x19b2')];}}const _0x20b4bc=_0x3cec62;_0x39f666[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),'$state',_0x21d0f5('0x16b9'),_0x21d0f5('0x1ca2'),'$q','$translate',_0x21d0f5('0x142d'),'voiceQueues',_0x21d0f5('0x1043'),_0x21d0f5('0x12a5'),'Auth',_0x21d0f5('0x17ff'),'setting',_0x21d0f5('0xb25')];function _0x39f666(_0x1a7d92,_0xa1ffcf,_0x516813,_0x4b0e4a,_0x45719c,_0x170fa4,_0x283df1,_0x2661bf,_0x52afa8,_0x3866fc,_0x5b66e1,_0x44f796,_0x423474,_0x27cc7b){const _0x18c8df=_0x21d0f5,_0x4b20dc=this;_0x4b20dc[_0x18c8df('0x32a')]=_0x5b66e1[_0x18c8df('0x2428')](),_0x4b20dc[_0x18c8df('0x120f')]=[],_0x4b20dc[_0x18c8df('0x23e1')]=_0x423474,_0x4b20dc[_0x18c8df('0x17ff')]=_0x44f796,_0x4b20dc[_0x18c8df('0xb25')]=_0x27cc7b,_0x4b20dc[_0x18c8df('0x2c9')]={},_0x4b20dc[_0x18c8df('0x2834')]=_0x4b20dc['setting']&&_0x4b20dc['setting']['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x4b20dc[_0x18c8df('0x134b')]='VOICE.EDIT_VOICEQUEUE',_0x4b20dc[_0x18c8df('0x1043')]=angular['copy'](_0x52afa8),_0x4b20dc[_0x18c8df('0x1b52')]=_0x2661bf,_0x4b20dc[_0x18c8df('0xa3b')]=![];!_0x4b20dc[_0x18c8df('0x1043')]&&(_0x4b20dc['voiceQueue']={'type':_0x18c8df('0x18a2'),'strategy':_0x18c8df('0x1273'),'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'},_0x4b20dc[_0x18c8df('0x134b')]=_0x18c8df('0x1534'),_0x4b20dc[_0x18c8df('0xa3b')]=!![]);_0x4b20dc[_0x18c8df('0x2058')]=_0x323d29,_0x4b20dc[_0x18c8df('0x2636')]=_0x2d3829,_0x4b20dc['deleteVoiceQueue']=_0x243d88,_0x4b20dc['getDateFromString']=_0x4fe7b2,_0x4b20dc['closeDialog']=_0x12f810;function _0x323d29(){const _0x343a22=_0x18c8df;_0x4b20dc[_0x343a22('0x120f')]=[],_0x3866fc['voiceQueue'][_0x343a22('0x259')](_0x4b20dc[_0x343a22('0x1043')])['$promise'][_0x343a22('0x11bf')](function(_0x3c5285){const _0xa8832c=_0x343a22;_0x4b20dc['voiceQueues'][_0xa8832c('0x880')](_0x3c5285[_0xa8832c('0x2866')]()),_0x283df1[_0xa8832c('0x2693')]({'title':_0xa8832c('0x1ff9'),'msg':_0x4b20dc[_0xa8832c('0x1043')][_0xa8832c('0x1909')]?_0x4b20dc[_0xa8832c('0x1043')][_0xa8832c('0x1909')]+_0xa8832c('0x7fb'):''}),_0x12f810(_0x3c5285);})[_0x343a22('0x151d')](function(_0x46cfdc){const _0x142624=_0x343a22;if(_0x46cfdc['data']&&_0x46cfdc['data']['errors']&&_0x46cfdc[_0x142624('0x4e8')][_0x142624('0x120f')][_0x142624('0x1e22')]){_0x4b20dc[_0x142624('0x120f')]=_0x46cfdc['data']['errors']||[{'message':_0x46cfdc[_0x142624('0xaab')](),'type':_0x142624('0x1db3')}];for(let _0x299208=0x0;_0x299208<_0x46cfdc[_0x142624('0x4e8')][_0x142624('0x120f')][_0x142624('0x1e22')];_0x299208+=0x1){_0x283df1[_0x142624('0x255')]({'title':_0x46cfdc[_0x142624('0x4e8')][_0x142624('0x120f')][_0x299208][_0x142624('0x19fd')],'msg':_0x46cfdc[_0x142624('0x4e8')]['errors'][_0x299208][_0x142624('0x1b86')]});}}else _0x283df1[_0x142624('0x255')]({'title':_0x46cfdc[_0x142624('0xff9')]?'API:'+_0x46cfdc[_0x142624('0xff9')]+'\x20-\x20'+_0x46cfdc[_0x142624('0x212f')]:'api.voiceQueue.save','msg':_0x46cfdc['data']?JSON[_0x142624('0x3e')](_0x46cfdc[_0x142624('0x4e8')][_0x142624('0x1b86')]):_0x46cfdc[_0x142624('0xaab')]()});});}function _0x2d3829(){const _0xaae7c4=_0x18c8df;_0x4b20dc[_0xaae7c4('0x120f')]=[],_0x3866fc[_0xaae7c4('0x1043')]['update']({'id':_0x4b20dc['voiceQueue']['id']},_0x4b20dc[_0xaae7c4('0x1043')])['$promise'][_0xaae7c4('0x11bf')](function(_0x37d278){const _0x1d7f5b=_0xaae7c4,_0x15f02a=_0x36f548()[_0x1d7f5b('0x1ad4')](_0x4b20dc[_0x1d7f5b('0x1b52')],{'id':_0x37d278['id']});_0x15f02a&&_0x36f548()[_0x1d7f5b('0x47b')](_0x15f02a,_0x36f548()['pick'](_0x37d278[_0x1d7f5b('0x2866')](),_0x36f548()['keys'](_0x15f02a))),_0x283df1[_0x1d7f5b('0x2693')]({'title':_0x1d7f5b('0x5d5'),'msg':_0x4b20dc['voiceQueue']['name']?_0x4b20dc[_0x1d7f5b('0x1043')][_0x1d7f5b('0x1909')]+_0x1d7f5b('0x1a78'):''}),_0x12f810(_0x37d278);})[_0xaae7c4('0x151d')](function(_0xba5847){const _0x12b8bc=_0xaae7c4;if(_0xba5847[_0x12b8bc('0x4e8')]&&_0xba5847['data'][_0x12b8bc('0x120f')]&&_0xba5847['data'][_0x12b8bc('0x120f')][_0x12b8bc('0x1e22')]){_0x4b20dc[_0x12b8bc('0x120f')]=_0xba5847[_0x12b8bc('0x4e8')][_0x12b8bc('0x120f')]||[{'message':_0xba5847[_0x12b8bc('0xaab')](),'type':'api.voiceQueue.update'}];for(let _0x16ab1e=0x0;_0x16ab1e<_0xba5847[_0x12b8bc('0x4e8')][_0x12b8bc('0x120f')]['length'];_0x16ab1e++){_0x283df1[_0x12b8bc('0x255')]({'title':_0xba5847['data'][_0x12b8bc('0x120f')][_0x16ab1e][_0x12b8bc('0x19fd')],'msg':_0xba5847[_0x12b8bc('0x4e8')]['errors'][_0x16ab1e][_0x12b8bc('0x1b86')]});}}else _0x283df1[_0x12b8bc('0x255')]({'title':_0xba5847[_0x12b8bc('0xff9')]?_0x12b8bc('0x574')+_0xba5847[_0x12b8bc('0xff9')]+_0x12b8bc('0xb0b')+_0xba5847[_0x12b8bc('0x212f')]:_0x12b8bc('0x1c4c'),'msg':_0xba5847[_0x12b8bc('0x4e8')]?JSON[_0x12b8bc('0x3e')](_0xba5847[_0x12b8bc('0x4e8')][_0x12b8bc('0x1b86')]):_0xba5847[_0x12b8bc('0xaab')]()});});}function _0x243d88(_0x2e4e27){const _0x35f1a6=_0x18c8df;_0x4b20dc[_0x35f1a6('0x120f')]=[];const _0xc3a28f=_0x4b0e4a[_0x35f1a6('0x132b')]()['title'](_0x35f1a6('0x1fa9'))[_0x35f1a6('0x252a')](_0x35f1a6('0x518'))[_0x35f1a6('0xb2e')](_0x35f1a6('0x1b63'))['ok'](_0x35f1a6('0x1167'))[_0x35f1a6('0x26c9')]('Cancel')[_0x35f1a6('0x1e25')](_0x2e4e27);_0x4b0e4a[_0x35f1a6('0xb9')](_0xc3a28f)['then'](function(){const _0x1f8247=_0x35f1a6;_0x3866fc[_0x1f8247('0x1043')][_0x1f8247('0x2088')]({'id':_0x4b20dc['voiceQueue']['id']})[_0x1f8247('0x1549')][_0x1f8247('0x11bf')](function(){const _0x57e90d=_0x1f8247;_0x36f548()[_0x57e90d('0x14a5')](_0x4b20dc[_0x57e90d('0x1b52')],{'id':_0x4b20dc[_0x57e90d('0x1043')]['id']}),_0x283df1[_0x57e90d('0x2693')]({'title':_0x57e90d('0x1bf0'),'msg':(_0x4b20dc[_0x57e90d('0x1043')][_0x57e90d('0x1909')]||'voiceQueue')+_0x57e90d('0x433')}),_0x12f810(_0x4b20dc[_0x57e90d('0x1043')]);})[_0x1f8247('0x151d')](function(_0x51fe10){const _0x52b9bb=_0x1f8247;if(_0x51fe10[_0x52b9bb('0x4e8')]&&_0x51fe10['data']['errors']&&_0x51fe10[_0x52b9bb('0x4e8')][_0x52b9bb('0x120f')][_0x52b9bb('0x1e22')]){_0x4b20dc[_0x52b9bb('0x120f')]=_0x51fe10[_0x52b9bb('0x4e8')][_0x52b9bb('0x120f')]||[{'message':_0x51fe10[_0x52b9bb('0xaab')](),'type':_0x52b9bb('0xde2')}];for(let _0x10729d=0x0;_0x10729d<_0x51fe10['data']['errors'][_0x52b9bb('0x1e22')];_0x10729d++){_0x283df1[_0x52b9bb('0x255')]({'title':_0x51fe10[_0x52b9bb('0x4e8')][_0x52b9bb('0x120f')][_0x10729d]['type'],'msg':_0x51fe10[_0x52b9bb('0x4e8')][_0x52b9bb('0x120f')][_0x10729d][_0x52b9bb('0x1b86')]});}}else _0x283df1[_0x52b9bb('0x255')]({'title':_0x51fe10[_0x52b9bb('0xff9')]?_0x52b9bb('0x574')+_0x51fe10['status']+_0x52b9bb('0xb0b')+_0x51fe10['statusText']:_0x52b9bb('0xde2'),'msg':_0x51fe10[_0x52b9bb('0x4e8')]?JSON[_0x52b9bb('0x3e')](_0x51fe10[_0x52b9bb('0x4e8')][_0x52b9bb('0x1b86')]):_0x51fe10[_0x52b9bb('0x1b86')]||_0x51fe10[_0x52b9bb('0xaab')]()});});},function(){});}function _0x4fe7b2(_0xf423d5){return _0xf423d5===null?undefined:new Date(_0xf423d5);}function _0x12f810(_0x25b67d){const _0x300647=_0x18c8df;_0x4b0e4a[_0x300647('0x237e')](_0x25b67d);}}const _0xdc42fb=_0x39f666;_0x5484c8['$inject']=[_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0x142d'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1043'),_0x21d0f5('0x1b52'),'realtime',_0x21d0f5('0xb6b'),'Auth',_0x21d0f5('0xb25')];function _0x5484c8(_0x197bcf,_0x128efe,_0xcd8536,_0x4350a8,_0x5d6cd5,_0x4528e4,_0x220501,_0x27b906,_0x23f1d3,_0x7378eb){const _0xea70b2=_0x21d0f5,_0x26dbd4=this;_0x26dbd4[_0xea70b2('0x32a')]=_0x23f1d3[_0xea70b2('0x2428')](),_0x26dbd4[_0xea70b2('0x1043')]=_0x5d6cd5,_0x26dbd4[_0xea70b2('0xb25')]=_0x7378eb,_0x26dbd4[_0xea70b2('0xf47')]=0x0,_0x26dbd4['realtime']=_0x220501,_0x26dbd4[_0xea70b2('0x22')]=[],_0x26dbd4[_0xea70b2('0x63')]=[],_0x26dbd4['selectedItems']=[],_0x26dbd4[_0xea70b2('0x1c6f')]=[],_0x26dbd4[_0xea70b2('0x21ed')]=[],_0x26dbd4['pendingChanges']=![],_0x26dbd4[_0xea70b2('0x277c')]=_0x6d4bdc,_0x26dbd4[_0xea70b2('0x280')]=_0x3db02c,_0x26dbd4[_0xea70b2('0xc4e')]=_0x2b0a14,_0x26dbd4[_0xea70b2('0xec5')]={'readOnly':!_0x26dbd4[_0xea70b2('0xb25')]['canEdit'],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0xea70b2('0x1909'),'line1':_0xea70b2('0x27af'),'line2':['name',_0xea70b2('0x1a04')],'line3':_0xea70b2('0xf47'),'labelAll':_0x27b906[_0xea70b2('0x10c2')](_0xea70b2('0x250e')),'labelSelected':_0x27b906[_0xea70b2('0x10c2')](_0xea70b2('0x24b4')),'transferCallback':function(_0x30d961,_0x2552b3){const _0x1c05f6=_0xea70b2;_0x2552b3?_0x30d961[_0x1c05f6('0x1f88')](function(_0xe35b65){const _0x169188=_0x1c05f6;_0xe35b65[_0x169188('0xf47')]=undefined;}):_0x30d961[_0x1c05f6('0x1f88')](function(_0x5002ac){const _0x24731a=_0x1c05f6;_0x5002ac[_0x24731a('0xf47')]=_0x24731a('0x1caa')+_0x26dbd4[_0x24731a('0xf47')];});const _0xc61dfc=_0x36f548()[_0x1c05f6('0x1513')](_0x26dbd4[_0x1c05f6('0x21ed')],_0x26dbd4[_0x1c05f6('0x26cc')],function(_0x3ea534,_0x3dc9e4){const _0x374c51=_0x1c05f6;return _0x3ea534['id']===_0x3dc9e4['id']&&_0x3ea534[_0x374c51('0xf47')]===_0x3dc9e4['penalty'];});_0x26dbd4[_0x1c05f6('0x1eda')]=_0x36f548()[_0x1c05f6('0x1fc5')](_0xc61dfc)?![]:!![];}};function _0x6d4bdc(){const _0x1ab6d0=_0xea70b2;return _0x23f1d3[_0x1ab6d0('0x4ee')](_0x1ab6d0('0xf45'))?_0x1b9c55()[_0x1ab6d0('0x151d')](function(_0x791933){const _0x5841ae=_0x1ab6d0;_0xcd8536[_0x5841ae('0x255')]({'title':_0x791933['status']?_0x5841ae('0x574')+_0x791933['status']+_0x5841ae('0xb0b')+_0x791933[_0x5841ae('0x212f')]:_0x5841ae('0x912'),'msg':_0x791933[_0x5841ae('0xff9')]?JSON[_0x5841ae('0x3e')](_0x791933['data']):_0x791933['toString']()});}):_0xd23e99()['then'](function(_0x81d65f){const _0x348715=_0x1ab6d0;return _0x26dbd4[_0x348715('0xe6')]=_0x81d65f,_0x1b9c55();})[_0x1ab6d0('0x151d')](function(_0xf95839){const _0x211aee=_0x1ab6d0;_0xcd8536[_0x211aee('0x255')]({'title':_0xf95839[_0x211aee('0xff9')]?'API:'+_0xf95839['status']+'\x20-\x20'+_0xf95839[_0x211aee('0x212f')]:_0x211aee('0x912'),'msg':_0xf95839[_0x211aee('0xff9')]?JSON['stringify'](_0xf95839['data']):_0xf95839['toString']()});});}function _0xd23e99(){return _0x128efe(function(_0x5df277,_0x304a58){const _0x3a3b9c=a0_0xaf0c;_0x4350a8[_0x3a3b9c('0x1d63')][_0x3a3b9c('0xbaa')]({'userProfileId':_0x26dbd4[_0x3a3b9c('0x32a')]['userProfileId'],'name':_0x3a3b9c('0x4b1')})['$promise'][_0x3a3b9c('0x11bf')](function(_0x13b443){const _0x2b0dad=_0x3a3b9c,_0x136baa=_0x13b443&&_0x13b443[_0x2b0dad('0x19b2')]?_0x13b443['rows'][0x0]:null;_0x5df277(_0x136baa);})[_0x3a3b9c('0x151d')](function(_0x50563c){_0x304a58(_0x50563c);});});}function _0x1b9c55(){return _0x128efe(function(_0x5dee62,_0x399c41){const _0x1ab64d=a0_0xaf0c;return _0x13ab11()[_0x1ab64d('0x11bf')](function(_0x1a409b){const _0x259252=_0x1ab64d;return _0x26dbd4['items']=_0x1a409b[_0x259252('0x19b2')]?_0x1a409b[_0x259252('0x19b2')]:[],_0x23f1d3[_0x259252('0x4ee')](_0x259252('0xf45'))?_0x1a409b:_0x26dbd4[_0x259252('0xe6')]?_0x26dbd4[_0x259252('0xe6')]['autoAssociation']?_0x1a409b:_0x58fe19():null;})['then'](function(_0x50decf){const _0x3bdacc=_0x1ab64d,_0x38574e=_0x50decf&&_0x50decf['rows']?_0x50decf[_0x3bdacc('0x19b2')]:[];return _0x26dbd4[_0x3bdacc('0x63')]=_0x36f548()['map'](_0x38574e,function(_0x4f739d){const _0x4ec4cb=_0x3bdacc;return _0x36f548()[_0x4ec4cb('0x1ad4')](_0x26dbd4[_0x4ec4cb('0x22')],{'id':_0x23f1d3[_0x4ec4cb('0x4ee')](_0x4ec4cb('0xf45'))||_0x26dbd4[_0x4ec4cb('0xe6')][_0x4ec4cb('0xf11')]?_0x4f739d['id']:_0x4f739d[_0x4ec4cb('0x15a5')]});}),_0x26dbd4[_0x3bdacc('0x1c6f')]=angular['copy'](_0x26dbd4['allowedItems']),_0x26dbd4[_0x3bdacc('0x22')]['forEach'](function(_0x58c17b){const _0x507edf=_0x3bdacc,_0x2ff87e=_0x36f548()[_0x507edf('0x1ad4')](_0x26dbd4['allowedItems'],{'id':_0x58c17b['id']});_0x23f1d3[_0x507edf('0x4ee')](_0x507edf('0xf45'))?_0x58c17b[_0x507edf('0xde9')]=!![]:_0x58c17b[_0x507edf('0xde9')]=typeof _0x2ff87e!==_0x507edf('0x13e9')?!![]:![];}),_0x189836();})[_0x1ab64d('0x11bf')](function(_0xdd89d6){const _0xac964a=_0x1ab64d,_0x24c197=_0xdd89d6&&_0xdd89d6[_0xac964a('0x19b2')]?_0xdd89d6[_0xac964a('0x19b2')]:[];_0x26dbd4['selectedItems']=_0x36f548()[_0xac964a('0x2171')](_0x24c197,function(_0x5d4648){const _0x697493=_0xac964a,_0x291906=_0x36f548()[_0x697493('0x1ad4')](_0x26dbd4[_0x697493('0x22')],{'id':_0x5d4648['id']});return _0x291906[_0x697493('0xf47')]=_0x5d4648[_0x697493('0x8')]?_0x697493('0x1caa')+_0x5d4648[_0x697493('0x8')][_0x697493('0xf47')]:'',_0x291906[_0x697493('0x1a04')]=typeof _0x5d4648[_0x697493('0x1a04')]!==_0x697493('0x13e9')?'<'+_0x5d4648[_0x697493('0x1a04')]+'>':'',_0x291906;}),_0x26dbd4[_0xac964a('0x21ed')]=angular[_0xac964a('0x6fb')](_0x26dbd4[_0xac964a('0x26cc')]),_0x26dbd4[_0xac964a('0xec5')]['selectedItems']=_0x26dbd4[_0xac964a('0x26cc')],_0x26dbd4[_0xac964a('0xec5')]['items']=_0x36f548()[_0xac964a('0x2753')](_0x26dbd4[_0xac964a('0x63')],_0x26dbd4['dualMultiselectOptions'][_0xac964a('0x26cc')],'id'),_0x5dee62();})[_0x1ab64d('0x151d')](function(_0x2d6d51){_0x399c41(_0x2d6d51);});});}function _0x58fe19(){return _0x128efe(function(_0x3546f4,_0x23d8bc){const _0x2f1268=a0_0xaf0c;return _0x4350a8[_0x2f1268('0x26d1')][_0x2f1268('0xbaa')]({'sectionId':_0x26dbd4['section']['id'],'nolimit':!![]})['$promise'][_0x2f1268('0x11bf')](function(_0x2651bd){_0x3546f4(_0x2651bd);})[_0x2f1268('0x151d')](function(_0x363612){_0x23d8bc(_0x363612);});});}function _0x189836(){return _0x128efe(function(_0x39493a,_0x22d426){const _0x5e8687=a0_0xaf0c;return _0x4350a8['voiceQueue'][_0x5e8687('0x2783')]({'id':_0x26dbd4[_0x5e8687('0x1043')]['id'],'fields':_0x5e8687('0x13d3'),'nolimit':!![],'role':_0x5e8687('0x18c4')})[_0x5e8687('0x1549')][_0x5e8687('0x11bf')](function(_0x375b33){_0x39493a(_0x375b33);})[_0x5e8687('0x151d')](function(_0x1e61ef){_0x22d426(_0x1e61ef);});});}function _0x13ab11(){return _0x128efe(function(_0x7f0b2e,_0x429e9a){const _0x137cdd=a0_0xaf0c;return _0x4350a8[_0x137cdd('0x21d9')][_0x137cdd('0xbaa')]({'fields':_0x137cdd('0x13d3'),'nolimit':!![],'role':'agent'})[_0x137cdd('0x1549')]['then'](function(_0x3d3e5b){_0x7f0b2e(_0x3d3e5b);})[_0x137cdd('0x151d')](function(_0x5b0129){_0x429e9a(_0x5b0129);});});}function _0x498271(_0xab6f){return _0x128efe(function(_0x5f19a1,_0x5d16e4){const _0x16cac0=a0_0xaf0c;if(_0x36f548()[_0x16cac0('0x1fc5')](_0xab6f))_0x5f19a1();else{const _0x4b1c3f=[],_0x47de26=_0x36f548()[_0x16cac0('0x11a5')](_0xab6f,_0x16cac0('0xf47'));for(let _0x18ce71=0x0;_0x18ce71'+_0x484cbb[_0x2520e8('0x2697')][_0x2520e8('0x1e22')]+'\x20selected'+_0x2520e8('0x1a'))[_0x2520e8('0xb2e')](_0x2520e8('0x7aa'))[_0x2520e8('0x1e25')](_0x2be25c)['ok']('OK')[_0x2520e8('0x26c9')](_0x2520e8('0x772'));_0x148eda[_0x2520e8('0xb9')](_0x111a6e)['then'](function(){const _0x37e123=_0x2520e8;_0x484cbb[_0x37e123('0x2697')]['forEach'](function(_0x5ecaa2){_0x14d2b5(_0x5ecaa2);}),_0x484cbb[_0x37e123('0x2697')]=[];});}function _0x3b4233(){const _0x39e502=_0x2daf88;_0x484cbb[_0x39e502('0x2697')]=[];}function _0x2a6f53(){_0x484cbb['selectedVoiceQueues']=_0x484cbb['voiceQueues']['rows'];}}const _0x5b07b1=_0x2b7e92;_0x2a832a[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),'$state',_0x21d0f5('0x16b9'),_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0xb6b'),'toasty','voiceRecordings',_0x21d0f5('0x262'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),'license','setting',_0x21d0f5('0xb25')];function _0x2a832a(_0x3bbe99,_0x338ac5,_0x267cec,_0xba4389,_0x43ea35,_0x58c1d0,_0x1622e1,_0x5d7890,_0x2160f3,_0x1e489b,_0x134425,_0x169bfa,_0x38a952,_0x2ddbad){const _0x6eafd8=_0x21d0f5,_0x5e9b05=this;_0x5e9b05[_0x6eafd8('0x32a')]=_0x134425[_0x6eafd8('0x2428')](),_0x5e9b05[_0x6eafd8('0x120f')]=[],_0x5e9b05[_0x6eafd8('0x23e1')]=_0x38a952,_0x5e9b05[_0x6eafd8('0x17ff')]=_0x169bfa,_0x5e9b05[_0x6eafd8('0xb25')]=_0x2ddbad,_0x5e9b05[_0x6eafd8('0x2c9')]={},_0x5e9b05['passwordPattern']=_0x5e9b05['setting']&&_0x5e9b05[_0x6eafd8('0x23e1')][_0x6eafd8('0x1d4')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x5e9b05[_0x6eafd8('0x134b')]=_0x6eafd8('0x217a'),_0x5e9b05[_0x6eafd8('0x262')]=angular[_0x6eafd8('0x6fb')](_0x2160f3),_0x5e9b05[_0x6eafd8('0x45f')]=_0x5d7890,_0x5e9b05['newVoiceRecording']=![];!_0x5e9b05[_0x6eafd8('0x262')]&&(_0x5e9b05[_0x6eafd8('0x262')]={},_0x5e9b05[_0x6eafd8('0x134b')]=_0x6eafd8('0x888'),_0x5e9b05['newVoiceRecording']=!![]);_0x5e9b05[_0x6eafd8('0x55')]=_0x2d6af7,_0x5e9b05[_0x6eafd8('0x1663')]=_0x563dbd,_0x5e9b05[_0x6eafd8('0x265a')]=_0x490ee1,_0x5e9b05[_0x6eafd8('0x1bd1')]=_0x32d112,_0x5e9b05[_0x6eafd8('0xc4e')]=_0x355253;function _0x2d6af7(){const _0x487073=_0x6eafd8;_0x5e9b05[_0x487073('0x120f')]=[],_0x1e489b[_0x487073('0x262')][_0x487073('0x259')](_0x5e9b05[_0x487073('0x262')])[_0x487073('0x1549')][_0x487073('0x11bf')](function(_0x16eb9d){const _0x58dba4=_0x487073;_0x5e9b05[_0x58dba4('0x45f')][_0x58dba4('0x880')](_0x16eb9d[_0x58dba4('0x2866')]()),_0x1622e1[_0x58dba4('0x2693')]({'title':'VoiceRecording\x20properly\x20created','msg':_0x5e9b05[_0x58dba4('0x262')][_0x58dba4('0x1909')]?_0x5e9b05[_0x58dba4('0x262')][_0x58dba4('0x1909')]+_0x58dba4('0x7fb'):''}),_0x355253(_0x16eb9d);})[_0x487073('0x151d')](function(_0x4a02cd){const _0x4b18c8=_0x487073;if(_0x4a02cd[_0x4b18c8('0x4e8')]&&_0x4a02cd[_0x4b18c8('0x4e8')]['errors']&&_0x4a02cd[_0x4b18c8('0x4e8')]['errors'][_0x4b18c8('0x1e22')]){_0x5e9b05['errors']=_0x4a02cd[_0x4b18c8('0x4e8')][_0x4b18c8('0x120f')]||[{'message':_0x4a02cd[_0x4b18c8('0xaab')](),'type':_0x4b18c8('0x20f2')}];for(let _0x351b6d=0x0;_0x351b6d<_0x4a02cd[_0x4b18c8('0x4e8')][_0x4b18c8('0x120f')]['length'];_0x351b6d+=0x1){_0x1622e1[_0x4b18c8('0x255')]({'title':_0x4a02cd['data']['errors'][_0x351b6d][_0x4b18c8('0x19fd')],'msg':_0x4a02cd[_0x4b18c8('0x4e8')][_0x4b18c8('0x120f')][_0x351b6d][_0x4b18c8('0x1b86')]});}}else _0x1622e1[_0x4b18c8('0x255')]({'title':_0x4a02cd[_0x4b18c8('0xff9')]?'API:'+_0x4a02cd[_0x4b18c8('0xff9')]+_0x4b18c8('0xb0b')+_0x4a02cd[_0x4b18c8('0x212f')]:_0x4b18c8('0x20f2'),'msg':_0x4a02cd[_0x4b18c8('0x4e8')]?JSON[_0x4b18c8('0x3e')](_0x4a02cd[_0x4b18c8('0x4e8')]['message']):_0x4a02cd[_0x4b18c8('0xaab')]()});});}function _0x563dbd(){const _0x5974f6=_0x6eafd8;_0x5e9b05[_0x5974f6('0x120f')]=[],_0x1e489b[_0x5974f6('0x262')][_0x5974f6('0x5ab')]({'id':_0x5e9b05[_0x5974f6('0x262')]['id']},_0x5e9b05[_0x5974f6('0x262')])[_0x5974f6('0x1549')]['then'](function(_0x41da75){const _0x331d7e=_0x5974f6,_0xff5261=_0x36f548()['find'](_0x5e9b05[_0x331d7e('0x45f')],{'id':_0x41da75['id']});_0xff5261&&_0x36f548()[_0x331d7e('0x47b')](_0xff5261,_0x36f548()[_0x331d7e('0x258')](_0x41da75[_0x331d7e('0x2866')](),_0x36f548()[_0x331d7e('0xe22')](_0xff5261))),_0x1622e1[_0x331d7e('0x2693')]({'title':_0x331d7e('0x8f5'),'msg':_0x5e9b05['voiceRecording'][_0x331d7e('0x1909')]?_0x5e9b05[_0x331d7e('0x262')][_0x331d7e('0x1909')]+_0x331d7e('0x1a78'):''}),_0x355253(_0x41da75);})[_0x5974f6('0x151d')](function(_0x583cb7){const _0x16d1ed=_0x5974f6;if(_0x583cb7[_0x16d1ed('0x4e8')]&&_0x583cb7[_0x16d1ed('0x4e8')][_0x16d1ed('0x120f')]&&_0x583cb7[_0x16d1ed('0x4e8')][_0x16d1ed('0x120f')]['length']){_0x5e9b05['errors']=_0x583cb7['data'][_0x16d1ed('0x120f')]||[{'message':_0x583cb7[_0x16d1ed('0xaab')](),'type':_0x16d1ed('0x19b4')}];for(let _0x148100=0x0;_0x148100<_0x583cb7['data'][_0x16d1ed('0x120f')][_0x16d1ed('0x1e22')];_0x148100++){_0x1622e1[_0x16d1ed('0x255')]({'title':_0x583cb7['data'][_0x16d1ed('0x120f')][_0x148100][_0x16d1ed('0x19fd')],'msg':_0x583cb7[_0x16d1ed('0x4e8')][_0x16d1ed('0x120f')][_0x148100][_0x16d1ed('0x1b86')]});}}else _0x1622e1[_0x16d1ed('0x255')]({'title':_0x583cb7[_0x16d1ed('0xff9')]?'API:'+_0x583cb7['status']+_0x16d1ed('0xb0b')+_0x583cb7[_0x16d1ed('0x212f')]:'api.voiceRecording.update','msg':_0x583cb7[_0x16d1ed('0x4e8')]?JSON[_0x16d1ed('0x3e')](_0x583cb7['data']['message']):_0x583cb7[_0x16d1ed('0xaab')]()});});}function _0x490ee1(_0x432c47){const _0x12ad74=_0x6eafd8;_0x5e9b05[_0x12ad74('0x120f')]=[];const _0x4d67f9=_0xba4389[_0x12ad74('0x132b')]()['title'](_0x12ad74('0x1fa9'))[_0x12ad74('0x252a')](_0x12ad74('0xd17'))[_0x12ad74('0xb2e')](_0x12ad74('0x2348'))['ok'](_0x12ad74('0x1167'))[_0x12ad74('0x26c9')](_0x12ad74('0x784'))[_0x12ad74('0x1e25')](_0x432c47);_0xba4389[_0x12ad74('0xb9')](_0x4d67f9)[_0x12ad74('0x11bf')](function(){const _0x221253=_0x12ad74;_0x1e489b[_0x221253('0x262')][_0x221253('0x2088')]({'id':_0x5e9b05[_0x221253('0x262')]['id']})[_0x221253('0x1549')]['then'](function(){const _0x2e3bd9=_0x221253;_0x36f548()[_0x2e3bd9('0x14a5')](_0x5e9b05[_0x2e3bd9('0x45f')],{'id':_0x5e9b05[_0x2e3bd9('0x262')]['id']}),_0x1622e1[_0x2e3bd9('0x2693')]({'title':_0x2e3bd9('0x267f'),'msg':(_0x5e9b05[_0x2e3bd9('0x262')][_0x2e3bd9('0x1909')]||_0x2e3bd9('0x262'))+_0x2e3bd9('0x433')}),_0x355253(_0x5e9b05[_0x2e3bd9('0x262')]);})[_0x221253('0x151d')](function(_0x4ea24e){const _0x3e5ec0=_0x221253;if(_0x4ea24e['data']&&_0x4ea24e[_0x3e5ec0('0x4e8')][_0x3e5ec0('0x120f')]&&_0x4ea24e[_0x3e5ec0('0x4e8')][_0x3e5ec0('0x120f')][_0x3e5ec0('0x1e22')]){_0x5e9b05[_0x3e5ec0('0x120f')]=_0x4ea24e[_0x3e5ec0('0x4e8')][_0x3e5ec0('0x120f')]||[{'message':_0x4ea24e[_0x3e5ec0('0xaab')](),'type':'api.voiceRecording.delete'}];for(let _0x2e4be0=0x0;_0x2e4be0<_0x4ea24e['data'][_0x3e5ec0('0x120f')][_0x3e5ec0('0x1e22')];_0x2e4be0++){_0x1622e1[_0x3e5ec0('0x255')]({'title':_0x4ea24e['data']['errors'][_0x2e4be0][_0x3e5ec0('0x19fd')],'msg':_0x4ea24e[_0x3e5ec0('0x4e8')]['errors'][_0x2e4be0][_0x3e5ec0('0x1b86')]});}}else _0x1622e1[_0x3e5ec0('0x255')]({'title':_0x4ea24e[_0x3e5ec0('0xff9')]?'API:'+_0x4ea24e[_0x3e5ec0('0xff9')]+'\x20-\x20'+_0x4ea24e[_0x3e5ec0('0x212f')]:_0x3e5ec0('0x1f5e'),'msg':_0x4ea24e[_0x3e5ec0('0x4e8')]?JSON[_0x3e5ec0('0x3e')](_0x4ea24e['data']['message']):_0x4ea24e[_0x3e5ec0('0x1b86')]||_0x4ea24e[_0x3e5ec0('0xaab')]()});});},function(){});}function _0x32d112(_0x20cae3){return _0x20cae3===null?undefined:new Date(_0x20cae3);}function _0x355253(_0x370690){const _0x210ecc=_0x6eafd8;_0xba4389[_0x210ecc('0x237e')](_0x370690);}}const _0x704045=_0x2a832a;function _0x302892(){const _0x4ac24c=_0x21d0f5,_0x3be96d=this;_0x3be96d[_0x4ac24c('0x262')]={},_0x3be96d[_0x4ac24c('0x286f')]=_0x4c2578;function _0x4c2578(_0x502f5a){_0x3be96d['voiceRecording']=_0x502f5a;}}const _0xb26c01=_0x302892;_0x48640f[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0xcbc'),_0x21d0f5('0x16b9'),_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),_0x21d0f5('0xb6b'),'license',_0x21d0f5('0x23e1'),'api','toasty',_0x21d0f5('0x1150'),_0x21d0f5('0x262'),_0x21d0f5('0x1d63')];function _0x48640f(_0x440e89,_0x505733,_0x1c39ed,_0x330466,_0xb6043a,_0x45b758,_0x4d0a6d,_0x44c50b,_0x4728c3,_0xe68ee9,_0x2da144,_0xb58b67){const _0x24d958=_0x21d0f5,_0x1707cd=this;_0x1707cd['currentUser']=_0xe68ee9['getCurrentUser'](),_0x1707cd[_0x24d958('0x17ff')]=_0x45b758,_0x1707cd[_0x24d958('0x23e1')]=_0x4d0a6d,_0x1707cd['passwordPattern']=_0x1707cd[_0x24d958('0x23e1')][_0x24d958('0x1d4')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1707cd[_0x24d958('0x1d9a')]=_0x505733[_0x24d958('0x1797')]()+_0x24d958('0x16a1')+_0x505733['host'](),_0x1707cd[_0x24d958('0x262')]=_0x2da144||_0x440e89[_0x24d958('0x1ab3')][_0x24d958('0x262')]||{},_0x1707cd['userProfileSection']=_0xb58b67&&_0xb58b67['count']==0x1?_0xb58b67[_0x24d958('0x19b2')][0x0]:null,_0x1707cd['crudPermissions']=_0xe68ee9['parseCrudPermissions'](_0x1707cd[_0x24d958('0x1d63')]?_0x1707cd[_0x24d958('0x1d63')][_0x24d958('0xb25')]:null),_0x1707cd[_0x24d958('0x2c9')]={},_0x1707cd['selectedTab']=_0x440e89[_0x24d958('0x1ab3')][_0x24d958('0x205c')]||0x0,_0x1707cd[_0x24d958('0xb30')]=_0x4728c3[_0x24d958('0x870')],_0x1707cd[_0x24d958('0x1529')]=_0x2cc8b2,_0x1707cd[_0x24d958('0x1663')]=_0x406a93;function _0x2cc8b2(){const _0x1e0485=_0x24d958;_0x440e89['go'](_0x1e0485('0x7e8'),{},{'reload':'app.voice.voiceRecordings'});}function _0x406a93(){const _0x14323f=_0x24d958;_0x44c50b['voiceRecording'][_0x14323f('0x5ab')]({'id':_0x1707cd[_0x14323f('0x262')]['id']},_0x1707cd[_0x14323f('0x262')])[_0x14323f('0x1549')]['then'](function(){const _0x3c636f=_0x14323f;_0x4728c3['success']({'title':_0x3c636f('0x171a'),'msg':_0x1707cd[_0x3c636f('0x262')][_0x3c636f('0x1909')]?_0x1707cd[_0x3c636f('0x262')][_0x3c636f('0x1909')]+'\x20has\x20been\x20updated!':''});})[_0x14323f('0x151d')](function(_0x4cb3c2){const _0x4ad32c=_0x14323f;_0x4728c3[_0x4ad32c('0x255')]({'title':_0x4cb3c2[_0x4ad32c('0xff9')]?'API:'+_0x4cb3c2[_0x4ad32c('0xff9')]+'\x20-\x20'+_0x4cb3c2[_0x4ad32c('0x212f')]:_0x4ad32c('0x478'),'msg':_0x4cb3c2[_0x4ad32c('0x4e8')]?JSON['stringify'](_0x4cb3c2[_0x4ad32c('0x4e8')]):_0x4cb3c2['toString']()});});}}const _0xff9540=_0x48640f,_0x29a7db=_0x351988['p']+'src/js/modules/main/apps/voice/views/voiceRecordings/create/dialog.html/dialog.html';_0x1e1e84['$inject']=['$scope',_0x21d0f5('0x2143'),_0x21d0f5('0xcbc'),_0x21d0f5('0x18fe'),_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),_0x21d0f5('0x17f5'),'$translate',_0x21d0f5('0x45f'),_0x21d0f5('0x25bc'),_0x21d0f5('0x1d63'),_0x21d0f5('0x12a5'),_0x21d0f5('0xda9'),_0x21d0f5('0x142d'),_0x21d0f5('0x1150'),_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1')];function _0x1e1e84(_0x2fd514,_0x54ad03,_0x1cecdd,_0x1cd62f,_0x2bd9f1,_0x3ba4d6,_0x2cdea2,_0x28d446,_0x16d88b,_0x579681,_0x2814f2,_0x1ccdbd,_0x23ae21,_0x48dc2b,_0xc694af,_0x2130bb,_0x2559c3){const _0xbc528f=_0x21d0f5,_0x559b8a=this;_0x559b8a[_0xbc528f('0x17ff')]=_0x2130bb,_0x559b8a[_0xbc528f('0x23e1')]=_0x2559c3,_0x559b8a[_0xbc528f('0x32a')]=_0xc694af[_0xbc528f('0x2428')](),_0x559b8a[_0xbc528f('0x45f')]=_0x16d88b||{'count':0x0,'rows':[]},_0x559b8a[_0xbc528f('0x25bc')]=_0x579681,_0x559b8a['userProfileSection']=_0x2814f2&&_0x2814f2[_0xbc528f('0x27d2')]==0x1?_0x2814f2[_0xbc528f('0x19b2')][0x0]:null,_0x559b8a[_0xbc528f('0xb25')]=_0xc694af[_0xbc528f('0x1530')](_0x559b8a[_0xbc528f('0x1d63')]?_0x559b8a[_0xbc528f('0x1d63')][_0xbc528f('0xb25')]:null),_0x559b8a['table']=_0xbc528f('0x45f'),_0x559b8a[_0xbc528f('0x724')]='',_0x559b8a[_0xbc528f('0xe3c')]=null,_0x559b8a['selectedVoiceRecordings']=[],_0x559b8a[_0xbc528f('0x1f2a')]={'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':_0xbc528f('0x1c74'),'createdAt':_0xbc528f('0x8f7'),'limit':0xa,'page':0x1},_0x559b8a['query'][_0xbc528f('0x1779')]=_0x23ae21[_0xbc528f('0x7eb')](),_0x559b8a[_0xbc528f('0x7db')]=_0xf2d74();function _0xf2d74(){const _0x3c865b=_0xbc528f;return[{'name':_0x3c865b('0xa68'),'key':_0x3c865b('0x1779'),'type':'date','label':_0x3c865b('0x1b7e')}];}_0x559b8a[_0xbc528f('0x757')]=_0x12c33c,_0x559b8a[_0xbc528f('0x1981')]=_0x1b3397,_0x559b8a[_0xbc528f('0x64')]=_0x58257d,_0x559b8a[_0xbc528f('0x25b4')]=_0x28e345,_0x559b8a[_0xbc528f('0x20ec')]=_0x47c1a3,_0x559b8a['downloadfile2']=_0x2ae2b5,_0x559b8a[_0xbc528f('0x549')]=_0x5d5dee,_0x559b8a['success']=_0x24b418,_0x559b8a[_0xbc528f('0x14da')]=_0x317de4,_0x559b8a[_0xbc528f('0x249c')]=_0x37dce5,_0x559b8a[_0xbc528f('0x265a')]=_0x13af0e,_0x559b8a[_0xbc528f('0x21b3')]=_0x620a12,_0x559b8a[_0xbc528f('0x1ad1')]=_0x3b371f,_0x559b8a[_0xbc528f('0x2002')]=_0x3cab48,_0x559b8a[_0xbc528f('0x1a8d')]=_0xa7d27a;function _0x12c33c(_0x1cd932){const _0x19093c=_0xbc528f;_0x1cecdd['go'](_0x19093c('0xa33'),{'id':_0x1cd932['id'],'voiceRecording':_0x1cd932,'crudPermissions':_0x559b8a[_0x19093c('0xb25')]});}_0x559b8a[_0xbc528f('0xb9f')]=_0x3f337b;function _0x1b3397(_0x31c2bd){const _0x1a68cf=_0xbc528f;return _0x1ccdbd[_0x1a68cf('0x262')]['runTranscribe']({'id':_0x31c2bd['id'],'runSentiment':![]})[_0x1a68cf('0x1549')][_0x1a68cf('0x11bf')](function(_0x3fa188){const _0x48fd5c=_0x1a68cf;_0x48dc2b['success']({'title':_0x28d446[_0x48fd5c('0x10c2')](_0x48fd5c('0x1ed7')),'msg':_0x28d446['instant'](_0x48fd5c('0x1ed7'))+_0x48fd5c('0x22f5')}),_0x31c2bd[_0x48fd5c('0x7bc')]=_0x3fa188[_0x48fd5c('0x7bc')];})[_0x1a68cf('0x151d')](function(_0xbdde87){const _0x51997b=_0x1a68cf;_0x48dc2b[_0x51997b('0x255')]({'title':_0x28d446[_0x51997b('0x10c2')](_0x51997b('0x1ed7')),'msg':_0xbdde87[_0x51997b('0x4e8')]?_0xbdde87[_0x51997b('0x4e8')][_0x51997b('0x1b86')]?_0xbdde87[_0x51997b('0x4e8')][_0x51997b('0x1b86')]:JSON[_0x51997b('0x3e')](_0xbdde87[_0x51997b('0x4e8')]):_0xbdde87['toString']()});});}function _0x3f337b(){const _0x22fb91=_0xbc528f;_0x559b8a[_0x22fb91('0x2c4')][_0x22fb91('0x1f88')](function(_0x35c3bc){_0x1b3397(_0x35c3bc);}),_0x559b8a['selectedVoiceRecordings']=[];}_0x559b8a[_0xbc528f('0x36')]=_0x1fd1b9;function _0x58257d(_0x1c01cd){const _0x5c9158=_0xbc528f;return _0x1ccdbd['voiceRecording']['runTranscribe']({'id':_0x1c01cd['id'],'runSentiment':!![]})['$promise'][_0x5c9158('0x11bf')](function(_0x11308f){const _0x3874b6=_0x5c9158;_0x48dc2b[_0x3874b6('0x2693')]({'title':_0x28d446[_0x3874b6('0x10c2')](_0x3874b6('0x2637')),'msg':_0x28d446[_0x3874b6('0x10c2')]('VOICE.RUNTRANSCRIBESENTIMENT_VOICERECORDING')+_0x3874b6('0x22f5')}),_0x1c01cd[_0x3874b6('0x7bc')]=_0x11308f[_0x3874b6('0x7bc')];})[_0x5c9158('0x151d')](function(_0x14c7d2){const _0x2d5474=_0x5c9158;_0x48dc2b['error']({'title':_0x28d446[_0x2d5474('0x10c2')](_0x2d5474('0x2637')),'msg':_0x14c7d2[_0x2d5474('0x4e8')]?_0x14c7d2[_0x2d5474('0x4e8')][_0x2d5474('0x1b86')]?_0x14c7d2[_0x2d5474('0x4e8')][_0x2d5474('0x1b86')]:JSON['stringify'](_0x14c7d2['data']):_0x14c7d2[_0x2d5474('0xaab')]()});});}function _0x1fd1b9(){const _0x3c0530=_0xbc528f;_0x559b8a[_0x3c0530('0x2c4')]['forEach'](function(_0x2db264){_0x58257d(_0x2db264);}),_0x559b8a[_0x3c0530('0x2c4')]=[];}_0x559b8a[_0xbc528f('0x176f')]=_0x85bfb7;function _0x28e345(_0x443e36){const _0x10bba7=_0xbc528f;return _0x1ccdbd[_0x10bba7('0x262')]['runTranscribe']({'id':_0x443e36['id'],'runSentiment':!![]})[_0x10bba7('0x1549')][_0x10bba7('0x11bf')](function(){const _0x501522=_0x10bba7;_0x48dc2b[_0x501522('0x2693')]({'title':_0x28d446[_0x501522('0x10c2')](_0x501522('0x1cef')),'msg':_0x28d446['instant'](_0x501522('0x1cef'))+'\x20succeded!'});})[_0x10bba7('0x151d')](function(_0x4a6a2b){const _0x2e81fa=_0x10bba7;_0x48dc2b[_0x2e81fa('0x255')]({'title':_0x28d446[_0x2e81fa('0x10c2')](_0x2e81fa('0x1cef')),'msg':_0x4a6a2b[_0x2e81fa('0x4e8')]?_0x4a6a2b[_0x2e81fa('0x4e8')][_0x2e81fa('0x1b86')]?_0x4a6a2b[_0x2e81fa('0x4e8')][_0x2e81fa('0x1b86')]:JSON['stringify'](_0x4a6a2b[_0x2e81fa('0x4e8')]):_0x4a6a2b[_0x2e81fa('0xaab')]()});});}function _0x85bfb7(){_0x559b8a['selectedVoiceRecordings']['forEach'](function(_0x564254){_0x28e345(_0x564254);}),_0x559b8a['selectedVoiceRecordings']=[];}function _0x47c1a3(_0x4073ce){const _0x9e4e4a=_0xbc528f;let _0x3110ec=![];const _0x710eed=!_0x36f548()[_0x9e4e4a('0x1a80')](_0x4073ce[_0x9e4e4a('0x1826')])?_0x4073ce[_0x9e4e4a('0x1826')]:_0x4073ce['value'][_0x9e4e4a('0x66d')](_0x4073ce[_0x9e4e4a('0x10cc')]['lastIndexOf']('.'));return _0x3110ec=_0x710eed===_0x9e4e4a('0x1a84')?!![]:![],_0x1ccdbd[_0x9e4e4a('0x262')][_0x9e4e4a('0x1648')]({'id':_0x4073ce['id']})[_0x9e4e4a('0x1549')][_0x9e4e4a('0x11bf')](function(_0xac9d35){const _0x4c045b=_0x9e4e4a,_0x3dae15=[_0xac9d35[_0x4c045b('0x1e94')]];let _0x3dd931=_0x4c045b('0x149c');const _0x4e05a4=new Blob(_0x3dae15,{'type':_0xac9d35['type']});_0x3dd931=_0x4073ce[_0x4c045b('0x938')]+_0x4c045b('0x232');const _0x1b7b9a=window[_0x4c045b('0xb54')]['createElement']('a');_0x1b7b9a[_0x4c045b('0x1e1b')]('href',URL[_0x4c045b('0x44b')](_0x4e05a4)),_0x1b7b9a['setAttribute']('download',_0x3dd931),document[_0x4c045b('0x1d2')][_0x4c045b('0x131c')](_0x1b7b9a),_0x1b7b9a[_0x4c045b('0x1371')]();})[_0x9e4e4a('0x151d')](function(_0x220301){const _0x452787=_0x9e4e4a;if(_0x220301[_0x452787('0x4e8')]&&_0x220301[_0x452787('0x4e8')]['errors']&&_0x220301[_0x452787('0x4e8')][_0x452787('0x120f')]['length'])for(let _0x47a68e=0x0;_0x47a68e<_0x220301[_0x452787('0x4e8')]['errors']['length'];_0x47a68e++){_0x48dc2b[_0x452787('0x255')]({'title':_0x220301['data'][_0x452787('0x120f')][_0x47a68e][_0x452787('0x19fd')],'msg':_0x220301[_0x452787('0x4e8')][_0x452787('0x120f')][_0x47a68e][_0x452787('0x1b86')]});}else{if(String(_0x220301['status'])===_0x452787('0x1dde')&&_0x3110ec===![])_0x48dc2b[_0x452787('0x870')]({'title':_0x28d446[_0x452787('0x10c2')](_0x452787('0x2824')),'msg':_0x28d446[_0x452787('0x10c2')](_0x452787('0x18e'))});else String(_0x220301[_0x452787('0xff9')])===_0x452787('0x1dde')?_0x48dc2b[_0x452787('0x870')]({'title':_0x28d446[_0x452787('0x10c2')](_0x452787('0x2824')),'msg':_0x28d446[_0x452787('0x10c2')]('APP.FILE_NOT_FOUND')}):_0x48dc2b[_0x452787('0x255')]({'title':_0x220301['status']?'API:'+_0x220301[_0x452787('0xff9')]+_0x452787('0xb0b')+_0x220301[_0x452787('0x212f')]:'api.voiceRecording.save','msg':_0x220301[_0x452787('0x4e8')]?JSON[_0x452787('0x3e')](_0x220301['data'][_0x452787('0x1b86')]):_0x220301[_0x452787('0xaab')]()});}});}function _0x186511(_0x236554){const _0x31d66b=_0xbc528f;let _0x3a0c21=_0x236554[_0x31d66b('0x1d19')]('/')>-0x1?_0x236554[_0x31d66b('0x66d')](_0x236554[_0x31d66b('0x1d19')]('/')+0x1):_0x236554[_0x31d66b('0x1d19')]('\x5c')>-0x1?_0x236554[_0x31d66b('0x66d')](_0x236554[_0x31d66b('0x1d19')]('\x5c')+0x1):_0x236554;return _0x3a0c21=_0x3a0c21[_0x31d66b('0x66d')](0x0,_0x3a0c21[_0x31d66b('0x1d19')]('.')),_0x3a0c21;}function _0x2ae2b5(_0x1679a6){const _0x24949d=_0xbc528f;let _0x570436=![];const _0x17dde5=!_0x36f548()[_0x24949d('0x1a80')](_0x1679a6['format'])?_0x1679a6[_0x24949d('0x1826')]:_0x1679a6['value'][_0x24949d('0x66d')](_0x1679a6[_0x24949d('0x10cc')][_0x24949d('0x1d19')]('.'));return _0x570436=_0x17dde5===_0x24949d('0x1a84')?!![]:![],_0x1ccdbd[_0x24949d('0x262')][_0x24949d('0x149c')]({'id':_0x1679a6['id']})[_0x24949d('0x1549')][_0x24949d('0x11bf')](function(_0x321a5b){const _0x454fb4=_0x24949d,_0x176b42=[_0x321a5b[_0x454fb4('0x1e94')]];let _0x32a66d='download';const _0x2eb09b=new Blob(_0x176b42,{'type':_0x321a5b[_0x454fb4('0x19fd')]});_0x32a66d=_0x186511(_0x1679a6[_0x454fb4('0x10cc')])+_0x1679a6['format'];const _0x498815=window[_0x454fb4('0xb54')]['createElement']('a');_0x498815[_0x454fb4('0x1e1b')](_0x454fb4('0xead'),URL[_0x454fb4('0x44b')](_0x2eb09b)),_0x498815[_0x454fb4('0x1e1b')](_0x454fb4('0x149c'),_0x32a66d),document[_0x454fb4('0x1d2')][_0x454fb4('0x131c')](_0x498815),_0x498815[_0x454fb4('0x1371')]();})[_0x24949d('0x151d')](function(_0x485bac){const _0x2f47f0=_0x24949d;if(_0x485bac[_0x2f47f0('0x4e8')]&&_0x485bac['data'][_0x2f47f0('0x120f')]&&_0x485bac[_0x2f47f0('0x4e8')]['errors'][_0x2f47f0('0x1e22')])for(let _0x42843a=0x0;_0x42843a<_0x485bac['data'][_0x2f47f0('0x120f')][_0x2f47f0('0x1e22')];_0x42843a++){_0x48dc2b[_0x2f47f0('0x255')]({'title':_0x485bac[_0x2f47f0('0x4e8')][_0x2f47f0('0x120f')][_0x42843a][_0x2f47f0('0x19fd')],'msg':_0x485bac[_0x2f47f0('0x4e8')]['errors'][_0x42843a][_0x2f47f0('0x1b86')]});}else{if(String(_0x485bac['status'])===_0x2f47f0('0x1dde')&&_0x570436===![])_0x48dc2b['info']({'title':_0x28d446[_0x2f47f0('0x10c2')](_0x2f47f0('0x2824')),'msg':_0x28d446[_0x2f47f0('0x10c2')](_0x2f47f0('0x18e'))});else String(_0x485bac[_0x2f47f0('0xff9')])===_0x2f47f0('0x1dde')?_0x48dc2b[_0x2f47f0('0x870')]({'title':_0x28d446['instant']('APP.CANT_DOWNLOAD_THIS_FILE'),'msg':_0x28d446['instant']('APP.FILE_NOT_FOUND')}):_0x48dc2b[_0x2f47f0('0x255')]({'title':_0x485bac['status']?_0x2f47f0('0x574')+_0x485bac[_0x2f47f0('0xff9')]+_0x2f47f0('0xb0b')+_0x485bac[_0x2f47f0('0x212f')]:'api.voiceRecording.save','msg':_0x485bac['data']?JSON[_0x2f47f0('0x3e')](_0x485bac[_0x2f47f0('0x4e8')][_0x2f47f0('0x1b86')]):_0x485bac[_0x2f47f0('0xaab')]()});}});}function _0x5d5dee(_0x444041,_0x443c6a){const _0x189013=_0xbc528f,_0x4704f8=_0x2bd9f1['confirm']()[_0x189013('0x134b')](_0x189013('0x1796')+_0x36f548()[_0x189013('0x13cf')](_0x189013('0x262'))+'?')[_0x189013('0x1d03')](''+(_0x444041[_0x189013('0x1909')]||_0x189013('0x262'))+_0x189013('0x1c78')+'\x20will\x20be\x20deleted.')[_0x189013('0xb2e')](_0x189013('0x106f'))[_0x189013('0x1e25')](_0x443c6a)['ok']('OK')[_0x189013('0x26c9')](_0x189013('0x772'));_0x2bd9f1[_0x189013('0xb9')](_0x4704f8)[_0x189013('0x11bf')](function(){_0x13af0e(_0x444041);},function(){const _0x4675ca=_0x189013;console[_0x4675ca('0xc78')](_0x4675ca('0x772'));});}let _0x4e5cda=!![],_0x3b116b=0x1;_0x2fd514['$watch'](_0xbc528f('0x842'),function(_0x4b16cf,_0x59deb7){const _0x29fab0=_0xbc528f;_0x4e5cda?_0x2cdea2(function(){_0x4e5cda=![];}):(!_0x59deb7&&(_0x3b116b=_0x559b8a[_0x29fab0('0x1f2a')][_0x29fab0('0x1c2')]),_0x4b16cf!==_0x59deb7&&(_0x559b8a[_0x29fab0('0x1f2a')]['page']=0x1),!_0x4b16cf&&(_0x559b8a[_0x29fab0('0x1f2a')]['page']=_0x3b116b),_0x559b8a[_0x29fab0('0x14da')]());});function _0x24b418(_0x235961){const _0x18767f=_0xbc528f;_0x559b8a[_0x18767f('0x45f')]=_0x235961||{'count':0x0,'rows':[]};}function _0x317de4(){const _0xe18a9b=_0xbc528f;_0x559b8a[_0xe18a9b('0x1f2a')][_0xe18a9b('0x1393')]=(_0x559b8a[_0xe18a9b('0x1f2a')][_0xe18a9b('0x1c2')]-0x1)*_0x559b8a[_0xe18a9b('0x1f2a')][_0xe18a9b('0xd5c')],_0xc694af[_0xe18a9b('0x4ee')]('admin')?_0x559b8a[_0xe18a9b('0x13f')]=_0x1ccdbd['voiceRecording'][_0xe18a9b('0xbaa')](_0x559b8a[_0xe18a9b('0x1f2a')],_0x24b418)[_0xe18a9b('0x1549')]:(_0x559b8a[_0xe18a9b('0x1f2a')]['id']=_0x559b8a['userProfile']['id'],_0x559b8a[_0xe18a9b('0x1f2a')][_0xe18a9b('0xe6')]=_0xe18a9b('0x1815'),_0x559b8a['promise']=_0x1ccdbd[_0xe18a9b('0x25bc')]['getResources'](_0x559b8a[_0xe18a9b('0x1f2a')],_0x24b418)[_0xe18a9b('0x1549')]);}function _0x37dce5(_0x3c0bbf,_0x7816ba){const _0xb258b5=_0xbc528f;_0x2bd9f1[_0xb258b5('0xb9')]({'controller':_0xb258b5('0x2389'),'controllerAs':'vm','templateUrl':_0x29a7db,'parent':angular[_0xb258b5('0x1e73')](_0x3ba4d6[_0xb258b5('0x1d2')]),'targetEvent':_0x3c0bbf,'clickOutsideToClose':!![],'locals':{'voiceRecording':_0x7816ba,'voiceRecordings':_0x559b8a['voiceRecordings'][_0xb258b5('0x19b2')],'license':_0x559b8a[_0xb258b5('0x17ff')],'setting':_0x559b8a[_0xb258b5('0x23e1')],'crudPermissions':_0x559b8a[_0xb258b5('0xb25')]}});}function _0x13af0e(_0x4b49b9){const _0x573da4=_0xbc528f;_0x1ccdbd[_0x573da4('0x262')]['delete']({'id':_0x4b49b9['id']})[_0x573da4('0x1549')][_0x573da4('0x11bf')](function(){const _0x1680f2=_0x573da4;_0x36f548()['remove'](_0x559b8a[_0x1680f2('0x45f')]['rows'],{'id':_0x4b49b9['id']}),_0x559b8a['voiceRecordings'][_0x1680f2('0x27d2')]-=0x1,!_0x559b8a[_0x1680f2('0x45f')]['rows'][_0x1680f2('0x1e22')]&&_0x559b8a[_0x1680f2('0x14da')](),_0x48dc2b[_0x1680f2('0x2693')]({'title':_0x36f548()[_0x1680f2('0x13cf')]('VoiceRecording')+_0x1680f2('0x2113'),'msg':_0x4b49b9[_0x1680f2('0x1909')]?_0x4b49b9[_0x1680f2('0x1909')]+'\x20has\x20been\x20deleted!':''});})['catch'](function(_0x39a731){const _0x478cf8=_0x573da4;if(_0x39a731[_0x478cf8('0x4e8')]&&_0x39a731['data'][_0x478cf8('0x120f')]&&_0x39a731[_0x478cf8('0x4e8')][_0x478cf8('0x120f')][_0x478cf8('0x1e22')]){_0x559b8a[_0x478cf8('0x120f')]=_0x39a731[_0x478cf8('0x4e8')][_0x478cf8('0x120f')]||[{'message':_0x39a731[_0x478cf8('0xaab')](),'type':_0x478cf8('0xf12')}];for(let _0x1aaf80=0x0;_0x1aaf80<_0x39a731['data']['errors'][_0x478cf8('0x1e22')];_0x1aaf80++){_0x48dc2b['error']({'title':_0x39a731[_0x478cf8('0x4e8')][_0x478cf8('0x120f')][_0x1aaf80][_0x478cf8('0x19fd')],'msg':_0x39a731['data'][_0x478cf8('0x120f')][_0x1aaf80]['message']});}}else _0x48dc2b['error']({'title':_0x39a731[_0x478cf8('0xff9')]?'API:'+_0x39a731[_0x478cf8('0xff9')]+'\x20-\x20'+_0x39a731['statusText']:_0x478cf8('0xf12'),'msg':_0x39a731[_0x478cf8('0x4e8')]?JSON['stringify'](_0x39a731[_0x478cf8('0x4e8')]['message']):_0x39a731['message']||_0x39a731[_0x478cf8('0xaab')]()});});}function _0x620a12(){const _0x237fe2=_0xbc528f,_0x514df4=angular[_0x237fe2('0x6fb')](_0x559b8a['selectedVoiceRecordings']);return _0x559b8a[_0x237fe2('0x2c4')]=[],_0x514df4;}function _0x3b371f(_0x18cff4){const _0x597329=_0xbc528f,_0x347bd4=_0x2bd9f1[_0x597329('0x132b')]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20voiceRecordings?')['htmlContent'](''+_0x559b8a[_0x597329('0x2c4')]['length']+_0x597329('0xac6')+'\x20will\x20be\x20deleted.')[_0x597329('0xb2e')](_0x597329('0x1ce7'))[_0x597329('0x1e25')](_0x18cff4)['ok']('OK')[_0x597329('0x26c9')](_0x597329('0x772'));_0x2bd9f1[_0x597329('0xb9')](_0x347bd4)[_0x597329('0x11bf')](function(){const _0x8c5036=_0x597329;_0x559b8a[_0x8c5036('0x2c4')][_0x8c5036('0x1f88')](function(_0x4559f8){_0x13af0e(_0x4559f8);}),_0x559b8a[_0x8c5036('0x2c4')]=[];});}function _0x3cab48(){_0x559b8a['selectedVoiceRecordings']=[];}function _0xa7d27a(){const _0x25bbf1=_0xbc528f;_0x559b8a[_0x25bbf1('0x2c4')]=_0x559b8a[_0x25bbf1('0x45f')]['rows'];}}const _0x5b30d2=_0x1e1e84,_0x1c679d=_0x351988['p']+'src/js/modules/main/apps/voice/views/voiceQueues/voiceQueues.html/voiceQueues.html',_0xba1d9d=_0x351988['p']+'src/js/modules/main/apps/voice/views/voiceQueues/edit/view.html/view.html',_0x3f8f45=_0x351988['p']+_0x21d0f5('0x1e14'),_0x5a79ae=_0x351988['p']+_0x21d0f5('0x1f75'),_0x4091a3=_0x351988['p']+_0x21d0f5('0x27fd'),_0x410774=_0x351988['p']+_0x21d0f5('0x2892'),_0x3dcc62=_0x351988['p']+'src/js/modules/main/apps/voice/views/internalroutes/internalroutes.html/internalroutes.html',_0x4ce019=_0x351988['p']+_0x21d0f5('0x2b6'),_0x26857b=_0x351988['p']+_0x21d0f5('0x1703'),_0x445d32=_0x351988['p']+_0x21d0f5('0x2642'),_0x11fbf9=_0x351988['p']+'src/js/modules/main/apps/voice/views/voicemails/edit/view.html/view.html',_0x1f9034=_0x351988['p']+'src/js/modules/main/apps/voice/views/musiconholds/musiconholds.html/musiconholds.html',_0x1c58ea=_0x351988['p']+_0x21d0f5('0x114d'),_0x47a206=_0x351988['p']+_0x21d0f5('0x1836'),_0x17c2d3=_0x351988['p']+'src/js/modules/main/apps/voice/views/voiceRecordings/edit/view.html/view.html',_0x38d42e=_0x351988['p']+_0x21d0f5('0x1bda'),_0x20cbeb=_0x351988['p']+_0x21d0f5('0x11c9');_0x1ff038[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x13d6'),'$translatePartialLoaderProvider'];function _0x1ff038(_0x54ce19,_0x166c4f){const _0x3b69d3=_0x21d0f5;_0x54ce19[_0x3b69d3('0x2124')](_0x3b69d3('0xbac'),{'abstract':!![],'url':_0x3b69d3('0x362')})[_0x3b69d3('0x2124')](_0x3b69d3('0x23a8'),{'url':_0x3b69d3('0xd43'),'views':{'content@app':{'templateUrl':_0x1c679d,'controller':'VoiceQueuesController\x20as\x20vm'}},'resolve':{'voiceQueues':['apiResolver',_0x3b69d3('0x1150'),function(_0x44985e,_0x136445){const _0x23c31b=_0x3b69d3;return _0x136445[_0x23c31b('0x4ee')]('admin')?_0x44985e[_0x23c31b('0xa28')](_0x23c31b('0x987'),{'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':'inbound','sort':_0x23c31b('0x1c74'),'channel':_0x23c31b('0x1bc3'),'limit':0xa,'offset':0x0}):_0x44985e[_0x23c31b('0xa28')](_0x23c31b('0xb0d'),{'id':_0x136445[_0x23c31b('0x2428')]()[_0x23c31b('0x781')],'section':'VoiceQueues','fields':_0x23c31b('0x150e'),'type':_0x23c31b('0x18a2'),'sort':_0x23c31b('0x1c74'),'channel':'voice','limit':0xa,'offset':0x0});}],'userProfile':[_0x3b69d3('0x218e'),_0x3b69d3('0x1150'),function(_0x53e666,_0x2ba33a){const _0x4b2b38=_0x3b69d3;return _0x2ba33a[_0x4b2b38('0x4ee')](_0x4b2b38('0xf45'))?null:_0x53e666[_0x4b2b38('0xa28')](_0x4b2b38('0x428'),{'fields':'id,name,crudPermissions','id':_0x2ba33a['getCurrentUser']()['userProfileId']});}],'userProfileSection':['apiResolver','Auth',function(_0x255fd0,_0x2498bf){const _0x214621=_0x3b69d3;return _0x2498bf[_0x214621('0x4ee')]('admin')?null:_0x255fd0[_0x214621('0xa28')](_0x214621('0x2762'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x2498bf[_0x214621('0x2428')]()[_0x214621('0x781')],'sectionId':0x191});}]},'authenticate':!![],'permissionId':0x191,'bodyClass':_0x3b69d3('0x1bc3')})[_0x3b69d3('0x2124')](_0x3b69d3('0x168'),{'url':'/:id?tab','params':{'voiceQueue':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0xba1d9d,'controller':_0x3b69d3('0x23ae')}},'resolve':{'voiceQueue':['apiResolver','$stateParams',function(_0x34b476,_0x2bc578){const _0x3628fc=_0x3b69d3;return _0x34b476[_0x3628fc('0xa28')](_0x3628fc('0x987'),{'fields':_0x3628fc('0x150e'),'id':_0x2bc578['id']});}],'userProfileSection':[_0x3b69d3('0x218e'),_0x3b69d3('0x1150'),function(_0xbde82e,_0x34a9b9){const _0x2d20e8=_0x3b69d3;return _0xbde82e[_0x2d20e8('0xa28')](_0x2d20e8('0x2762'),{'fields':_0x2d20e8('0x36d'),'userProfileId':_0x34a9b9[_0x2d20e8('0x2428')]()[_0x2d20e8('0x781')],'sectionId':0x191});}]},'authenticate':!![],'permissionId':0x191,'bodyClass':'voice'})[_0x3b69d3('0x2124')](_0x3b69d3('0x2229'),{'url':_0x3b69d3('0x15be'),'views':{'content@app':{'templateUrl':_0x3f8f45,'controller':'InboundRoutesController\x20as\x20vm'}},'resolve':{'inboundroutes':[_0x3b69d3('0x218e'),_0x3b69d3('0x1150'),function(_0x49fa7f,_0x242478){const _0x5666b2=_0x3b69d3;return _0x242478['hasRole'](_0x5666b2('0xf45'))?_0x49fa7f[_0x5666b2('0xa28')](_0x5666b2('0x19ab'),{'fields':_0x5666b2('0xc11'),'type':_0x5666b2('0x18a2'),'sort':_0x5666b2('0x1c74'),'VoiceExtensionId':_0x5666b2('0xb5f'),'limit':0xa,'offset':0x0}):_0x49fa7f[_0x5666b2('0xa28')](_0x5666b2('0xb0d'),{'id':_0x242478['getCurrentUser']()[_0x5666b2('0x781')],'section':_0x5666b2('0x2209'),'fields':_0x5666b2('0xc11'),'type':_0x5666b2('0x18a2'),'sort':_0x5666b2('0x1c74'),'VoiceExtensionId':_0x5666b2('0xb5f'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x3b69d3('0x218e'),_0x3b69d3('0x1150'),function(_0x5d231f,_0x5395b6){const _0x2e0769=_0x3b69d3;return _0x5395b6['hasRole'](_0x2e0769('0xf45'))?null:_0x5d231f[_0x2e0769('0xa28')](_0x2e0769('0x428'),{'fields':'id,name,crudPermissions','id':_0x5395b6[_0x2e0769('0x2428')]()[_0x2e0769('0x781')]});}],'userProfileSection':[_0x3b69d3('0x218e'),'Auth',function(_0x29df90,_0x135ed9){const _0x2a8208=_0x3b69d3;return _0x135ed9[_0x2a8208('0x4ee')]('admin')?null:_0x29df90['resolve'](_0x2a8208('0x2762'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x135ed9[_0x2a8208('0x2428')]()[_0x2a8208('0x781')],'sectionId':0x192});}]},'authenticate':!![],'permissionId':0x192,'bodyClass':'voice'})['state'](_0x3b69d3('0x1449'),{'url':'/:id?tab','params':{'inboundroute':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x5a79ae,'controller':_0x3b69d3('0x1fa2')}},'resolve':{'inboundroute':['apiResolver','$stateParams',function(_0x5c0fc9,_0x45fea3){const _0x2d946b=_0x3b69d3;return _0x5c0fc9[_0x2d946b('0xa28')](_0x2d946b('0x19ab'),{'fields':_0x2d946b('0xc11'),'id':_0x45fea3['id']});}],'userProfileSection':[_0x3b69d3('0x218e'),_0x3b69d3('0x1150'),function(_0x291fa5,_0x1b840c){const _0x1573e6=_0x3b69d3;return _0x291fa5[_0x1573e6('0xa28')](_0x1573e6('0x2762'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x1b840c[_0x1573e6('0x2428')]()[_0x1573e6('0x781')],'sectionId':0x192});}]},'authenticate':!![],'permissionId':0x192,'bodyClass':'voice'})[_0x3b69d3('0x2124')](_0x3b69d3('0x13fe'),{'url':_0x3b69d3('0x1761'),'views':{'content@app':{'templateUrl':_0x4091a3,'controller':_0x3b69d3('0x166e')}},'resolve':{'outboundroutes':[_0x3b69d3('0x218e'),_0x3b69d3('0x1150'),function(_0x3018d5,_0x28068a){const _0x5c31e2=_0x3b69d3;return _0x28068a['hasRole'](_0x5c31e2('0xf45'))?_0x3018d5[_0x5c31e2('0xa28')](_0x5c31e2('0x19ab'),{'fields':_0x5c31e2('0x3d9'),'type':_0x5c31e2('0x25b6'),'sort':'-updatedAt','VoiceExtensionId':_0x5c31e2('0xb5f'),'limit':0xa,'offset':0x0}):_0x3018d5['resolve']('userProfile@getResources',{'id':_0x28068a[_0x5c31e2('0x2428')]()['userProfileId'],'section':_0x5c31e2('0x2028'),'fields':_0x5c31e2('0x3d9'),'type':_0x5c31e2('0x25b6'),'sort':_0x5c31e2('0x1c74'),'VoiceExtensionId':'null','limit':0xa,'offset':0x0});}],'userProfile':[_0x3b69d3('0x218e'),'Auth',function(_0x392fc5,_0x3cb64a){const _0x2336a2=_0x3b69d3;return _0x3cb64a[_0x2336a2('0x4ee')]('admin')?null:_0x392fc5[_0x2336a2('0xa28')](_0x2336a2('0x428'),{'fields':_0x2336a2('0xd30'),'id':_0x3cb64a['getCurrentUser']()['userProfileId']});}],'userProfileSection':[_0x3b69d3('0x218e'),_0x3b69d3('0x1150'),function(_0x584856,_0x24fccf){const _0x1cfa4f=_0x3b69d3;return _0x24fccf[_0x1cfa4f('0x4ee')]('admin')?null:_0x584856[_0x1cfa4f('0xa28')](_0x1cfa4f('0x2762'),{'fields':_0x1cfa4f('0x36d'),'userProfileId':_0x24fccf[_0x1cfa4f('0x2428')]()[_0x1cfa4f('0x781')],'sectionId':0x193});}]},'authenticate':!![],'permissionId':0x193,'bodyClass':'voice'})[_0x3b69d3('0x2124')](_0x3b69d3('0x1cc9'),{'url':_0x3b69d3('0x142b'),'params':{'outboundroute':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x410774,'controller':_0x3b69d3('0x22ec')}},'resolve':{'outboundroute':[_0x3b69d3('0x218e'),_0x3b69d3('0x1573'),function(_0xb044fb,_0x127c0b){const _0x207269=_0x3b69d3;return _0xb044fb['resolve'](_0x207269('0x19ab'),{'fields':_0x207269('0x3d9'),'id':_0x127c0b['id']});}],'userProfileSection':[_0x3b69d3('0x218e'),_0x3b69d3('0x1150'),function(_0x45f6a4,_0x5281f8){const _0x465805=_0x3b69d3;return _0x45f6a4[_0x465805('0xa28')]('userProfileSection@get',{'fields':_0x465805('0x36d'),'userProfileId':_0x5281f8['getCurrentUser']()[_0x465805('0x781')],'sectionId':0x193});}]},'authenticate':!![],'permissionId':0x193,'bodyClass':'voice'})['state']('app.voice.internalroutes',{'url':_0x3b69d3('0x45a'),'views':{'content@app':{'templateUrl':_0x3dcc62,'controller':_0x3b69d3('0x11f7')}},'resolve':{'internalroutes':[_0x3b69d3('0x218e'),_0x3b69d3('0x1150'),function(_0x4d7735,_0x224bec){const _0x2af655=_0x3b69d3;return _0x224bec['hasRole'](_0x2af655('0xf45'))?_0x4d7735[_0x2af655('0xa28')](_0x2af655('0x19ab'),{'fields':_0x2af655('0xc11'),'type':_0x2af655('0x1a04'),'sort':'-updatedAt','VoiceExtensionId':'null','limit':0xa,'offset':0x0}):_0x4d7735['resolve'](_0x2af655('0xb0d'),{'id':_0x224bec['getCurrentUser']()['userProfileId'],'section':_0x2af655('0x109c'),'fields':_0x2af655('0xc11'),'type':_0x2af655('0x1a04'),'sort':_0x2af655('0x1c74'),'VoiceExtensionId':_0x2af655('0xb5f'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x3b69d3('0x218e'),'Auth',function(_0x509569,_0x50338c){const _0xfb6ffa=_0x3b69d3;return _0x50338c[_0xfb6ffa('0x4ee')]('admin')?null:_0x509569[_0xfb6ffa('0xa28')](_0xfb6ffa('0x428'),{'fields':_0xfb6ffa('0xd30'),'id':_0x50338c[_0xfb6ffa('0x2428')]()[_0xfb6ffa('0x781')]});}],'userProfileSection':[_0x3b69d3('0x218e'),_0x3b69d3('0x1150'),function(_0x4461c1,_0x253ec2){const _0xaa52eb=_0x3b69d3;return _0x253ec2[_0xaa52eb('0x4ee')](_0xaa52eb('0xf45'))?null:_0x4461c1[_0xaa52eb('0xa28')](_0xaa52eb('0x2762'),{'fields':_0xaa52eb('0x36d'),'userProfileId':_0x253ec2['getCurrentUser']()[_0xaa52eb('0x781')],'sectionId':0x194});}]},'authenticate':!![],'permissionId':0x194,'bodyClass':_0x3b69d3('0x1bc3')})[_0x3b69d3('0x2124')](_0x3b69d3('0x834'),{'url':_0x3b69d3('0x142b'),'params':{'internalroute':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x4ce019,'controller':_0x3b69d3('0xff0')}},'resolve':{'internalroute':[_0x3b69d3('0x218e'),'$stateParams',function(_0x48d069,_0x1b5690){const _0x548217=_0x3b69d3;return _0x48d069['resolve']('voiceExtension@get',{'fields':_0x548217('0xc11'),'id':_0x1b5690['id']});}],'userProfileSection':[_0x3b69d3('0x218e'),_0x3b69d3('0x1150'),function(_0x27f462,_0x1478a4){const _0xd0ff00=_0x3b69d3;return _0x27f462[_0xd0ff00('0xa28')](_0xd0ff00('0x2762'),{'fields':_0xd0ff00('0x36d'),'userProfileId':_0x1478a4[_0xd0ff00('0x2428')]()[_0xd0ff00('0x781')],'sectionId':0x194});}]},'authenticate':!![],'permissionId':0x194,'bodyClass':_0x3b69d3('0x1bc3')})['state'](_0x3b69d3('0x1a67'),{'url':'/contexts','views':{'content@app':{'templateUrl':_0x26857b,'controller':'ContextsController\x20as\x20vm'}},'resolve':{'contexts':[_0x3b69d3('0x218e'),_0x3b69d3('0x1150'),function(_0x2a53f2,_0x2e3d35){const _0x15fd5a=_0x3b69d3;return _0x2e3d35[_0x15fd5a('0x4ee')](_0x15fd5a('0xf45'))?_0x2a53f2[_0x15fd5a('0xa28')](_0x15fd5a('0x1309'),{'fields':_0x15fd5a('0x219a'),'sort':'-updatedAt','defaultEntry':_0x15fd5a('0x1fe1'),'limit':0xa,'offset':0x0}):_0x2a53f2[_0x15fd5a('0xa28')]('userProfile@getResources',{'id':_0x2e3d35['getCurrentUser']()[_0x15fd5a('0x781')],'section':_0x15fd5a('0xfcb'),'fields':_0x15fd5a('0x219a'),'sort':'-updatedAt','defaultEntry':_0x15fd5a('0x1fe1'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x3b69d3('0x218e'),'Auth',function(_0x211f1a,_0x29cad8){const _0x3ed42e=_0x3b69d3;return _0x29cad8[_0x3ed42e('0x4ee')](_0x3ed42e('0xf45'))?null:_0x211f1a['resolve'](_0x3ed42e('0x428'),{'fields':'id,name,crudPermissions','id':_0x29cad8[_0x3ed42e('0x2428')]()[_0x3ed42e('0x781')]});}],'userProfileSection':[_0x3b69d3('0x218e'),_0x3b69d3('0x1150'),function(_0x167634,_0x464bfe){const _0x1a2db8=_0x3b69d3;return _0x464bfe['hasRole'](_0x1a2db8('0xf45'))?null:_0x167634['resolve']('userProfileSection@get',{'fields':_0x1a2db8('0x36d'),'userProfileId':_0x464bfe[_0x1a2db8('0x2428')]()[_0x1a2db8('0x781')],'sectionId':0x195});}]},'authenticate':!![],'permissionId':0x195,'bodyClass':'voice'})[_0x3b69d3('0x2124')](_0x3b69d3('0x1326'),{'url':'/voicemails','views':{'content@app':{'templateUrl':_0x445d32,'controller':_0x3b69d3('0x11c3')}},'resolve':{'voicemails':[_0x3b69d3('0x218e'),_0x3b69d3('0x1150'),function(_0x45daeb,_0x5c2243){const _0x216e75=_0x3b69d3;return _0x5c2243[_0x216e75('0x4ee')]('admin')?_0x45daeb[_0x216e75('0xa28')](_0x216e75('0x1ba0'),{'fields':_0x216e75('0x1b39'),'sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x45daeb['resolve'](_0x216e75('0xb0d'),{'id':_0x5c2243[_0x216e75('0x2428')]()['userProfileId'],'section':_0x216e75('0x1d1a'),'fields':'createdAt,updatedAt,id,customer_id,fullname,email,password,mailbox,context,tz,attach,envelope,delete,emailbody,emailsubject,maxsecs,maxmsg','sort':_0x216e75('0x1c74'),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x3b69d3('0x1150'),function(_0x22899e,_0x55a806){const _0x4dbb3f=_0x3b69d3;return _0x55a806[_0x4dbb3f('0x4ee')](_0x4dbb3f('0xf45'))?null:_0x22899e[_0x4dbb3f('0xa28')](_0x4dbb3f('0x428'),{'fields':_0x4dbb3f('0xd30'),'id':_0x55a806[_0x4dbb3f('0x2428')]()['userProfileId']});}],'userProfileSection':[_0x3b69d3('0x218e'),_0x3b69d3('0x1150'),function(_0x29f4f1,_0x146f79){const _0x2389cd=_0x3b69d3;return _0x146f79[_0x2389cd('0x4ee')](_0x2389cd('0xf45'))?null:_0x29f4f1[_0x2389cd('0xa28')](_0x2389cd('0x2762'),{'fields':_0x2389cd('0x36d'),'userProfileId':_0x146f79[_0x2389cd('0x2428')]()[_0x2389cd('0x781')],'sectionId':0x196});}]},'authenticate':!![],'permissionId':0x196,'bodyClass':_0x3b69d3('0x1bc3')})['state'](_0x3b69d3('0x111f'),{'url':'/:id?tab','params':{'voicemail':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x11fbf9,'controller':'VoicemailController\x20as\x20vm'}},'resolve':{'voicemail':[_0x3b69d3('0x218e'),_0x3b69d3('0x1573'),function(_0x5b3e4a,_0x50853e){const _0x4f7337=_0x3b69d3;return _0x5b3e4a[_0x4f7337('0xa28')](_0x4f7337('0x1ba0'),{'fields':'createdAt,updatedAt,id,customer_id,fullname,email,password,mailbox,context,tz,attach,envelope,delete,emailbody,emailsubject,maxsecs,maxmsg','id':_0x50853e['id']});}],'userProfileSection':[_0x3b69d3('0x218e'),'Auth',function(_0x357d6c,_0x2b420f){const _0x29506e=_0x3b69d3;return _0x357d6c[_0x29506e('0xa28')](_0x29506e('0x2762'),{'fields':_0x29506e('0x36d'),'userProfileId':_0x2b420f[_0x29506e('0x2428')]()['userProfileId'],'sectionId':0x196});}]},'authenticate':!![],'permissionId':0x196,'bodyClass':_0x3b69d3('0x1bc3')})['state']('app.voice.musiconholds',{'url':'/musiconholds','views':{'content@app':{'templateUrl':_0x1f9034,'controller':_0x3b69d3('0x146b')}},'resolve':{'musiconholds':[_0x3b69d3('0x218e'),_0x3b69d3('0x1150'),function(_0x4a1597,_0x58682f){const _0x229062=_0x3b69d3;return _0x58682f[_0x229062('0x4ee')](_0x229062('0xf45'))?_0x4a1597['resolve'](_0x229062('0x1980'),{'fields':_0x229062('0x19a2'),'defaultEntry':_0x229062('0x1fe1'),'limit':0xa,'offset':0x0}):_0x4a1597[_0x229062('0xa28')](_0x229062('0xb0d'),{'id':_0x58682f[_0x229062('0x2428')]()[_0x229062('0x781')],'section':'MusicOnHolds','fields':'createdAt,updatedAt,id,name,mode,directory,application,format,sort','defaultEntry':_0x229062('0x1fe1'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x3b69d3('0x218e'),_0x3b69d3('0x1150'),function(_0x4832d5,_0x362a42){const _0xa065e9=_0x3b69d3;return _0x362a42[_0xa065e9('0x4ee')](_0xa065e9('0xf45'))?null:_0x4832d5[_0xa065e9('0xa28')](_0xa065e9('0x428'),{'fields':_0xa065e9('0xd30'),'id':_0x362a42['getCurrentUser']()[_0xa065e9('0x781')]});}],'userProfileSection':[_0x3b69d3('0x218e'),_0x3b69d3('0x1150'),function(_0x249b01,_0x4a26bb){const _0x4b3723=_0x3b69d3;return _0x4a26bb[_0x4b3723('0x4ee')](_0x4b3723('0xf45'))?null:_0x249b01['resolve'](_0x4b3723('0x2762'),{'fields':_0x4b3723('0x36d'),'userProfileId':_0x4a26bb['getCurrentUser']()['userProfileId'],'sectionId':0x197});}]},'authenticate':!![],'permissionId':0x197,'bodyClass':_0x3b69d3('0x1bc3')})[_0x3b69d3('0x2124')]('app.voice.musiconholds.edit',{'url':_0x3b69d3('0x142b'),'params':{'musiconhold':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x1c58ea,'controller':'MusicOnHoldController\x20as\x20vm'}},'resolve':{'musiconhold':[_0x3b69d3('0x218e'),_0x3b69d3('0x1573'),function(_0x54be2a,_0x101d96){const _0x223b47=_0x3b69d3;return _0x54be2a[_0x223b47('0xa28')](_0x223b47('0x1980'),{'fields':_0x223b47('0x19a2'),'id':_0x101d96['id']});}],'userProfileSection':[_0x3b69d3('0x218e'),'Auth',function(_0x55667f,_0x58f2d4){const _0x421af3=_0x3b69d3;return _0x55667f[_0x421af3('0xa28')](_0x421af3('0x2762'),{'fields':_0x421af3('0x36d'),'userProfileId':_0x58f2d4['getCurrentUser']()[_0x421af3('0x781')],'sectionId':0x197});}]},'authenticate':!![],'permissionId':0x197,'bodyClass':_0x3b69d3('0x1bc3')})['state'](_0x3b69d3('0x7e8'),{'url':_0x3b69d3('0x53'),'views':{'content@app':{'templateUrl':_0x47a206,'controller':_0x3b69d3('0x99a')}},'resolve':{'voiceRecordings':[_0x3b69d3('0x218e'),_0x3b69d3('0x1150'),_0x3b69d3('0xda9'),function(_0x22bee9,_0x1ff140,_0x2dca4d){const _0x39a736=_0x3b69d3;return _0x1ff140[_0x39a736('0x4ee')](_0x39a736('0xf45'))?_0x22bee9[_0x39a736('0xa28')](_0x39a736('0x194c'),{'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':'-updatedAt','createdAt':_0x2dca4d[_0x39a736('0x7eb')](),'limit':0xa,'offset':0x0}):_0x22bee9[_0x39a736('0xa28')](_0x39a736('0xb0d'),{'id':_0x1ff140[_0x39a736('0x2428')]()[_0x39a736('0x781')],'section':_0x39a736('0x1815'),'fields':_0x39a736('0xa1a'),'sort':_0x39a736('0x1c74'),'createdAt':_0x2dca4d[_0x39a736('0x7eb')](),'limit':0xa,'offset':0x0});}],'userProfile':[_0x3b69d3('0x218e'),_0x3b69d3('0x1150'),function(_0x3c0c4a,_0x3c31d5){const _0x20a025=_0x3b69d3;return _0x3c31d5[_0x20a025('0x4ee')](_0x20a025('0xf45'))?null:_0x3c0c4a[_0x20a025('0xa28')](_0x20a025('0x428'),{'fields':'id,name,crudPermissions','id':_0x3c31d5[_0x20a025('0x2428')]()['userProfileId']});}],'userProfileSection':[_0x3b69d3('0x218e'),_0x3b69d3('0x1150'),function(_0x3c78f9,_0x8b6c96){const _0x58fcff=_0x3b69d3;return _0x8b6c96[_0x58fcff('0x4ee')](_0x58fcff('0xf45'))?null:_0x3c78f9['resolve'](_0x58fcff('0x2762'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x8b6c96['getCurrentUser']()[_0x58fcff('0x781')],'sectionId':0x198});}]},'authenticate':!![],'permissionId':0x198,'bodyClass':_0x3b69d3('0x1bc3')})[_0x3b69d3('0x2124')]('app.voice.voiceRecordings.edit',{'url':'/:id?tab','params':{'voiceRecording':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x17c2d3,'controller':_0x3b69d3('0xee3')}},'resolve':{'voiceRecording':['apiResolver',_0x3b69d3('0x1573'),function(_0x201fa8,_0x11b230){const _0x42d152=_0x3b69d3;return _0x201fa8[_0x42d152('0xa28')](_0x42d152('0x194c'),{'fields':_0x42d152('0xa1a'),'id':_0x11b230['id']});}],'userProfileSection':[_0x3b69d3('0x218e'),_0x3b69d3('0x1150'),function(_0x4f74dc,_0x4beb9a){const _0x5283fe=_0x3b69d3;return _0x4f74dc[_0x5283fe('0xa28')](_0x5283fe('0x2762'),{'fields':_0x5283fe('0x36d'),'userProfileId':_0x4beb9a['getCurrentUser']()[_0x5283fe('0x781')],'sectionId':0x198});}]},'authenticate':!![],'permissionId':0x198,'bodyClass':'voice'})[_0x3b69d3('0x2124')](_0x3b69d3('0xa7'),{'url':'/chanSpies','views':{'content@app':{'templateUrl':_0x38d42e,'controller':_0x3b69d3('0x12a1')}},'resolve':{'chanSpies':[_0x3b69d3('0x218e'),_0x3b69d3('0x1150'),function(_0x45a295,_0x3fb99e){const _0x417005=_0x3b69d3;return _0x3fb99e[_0x417005('0x4ee')]('admin')?_0x45a295[_0x417005('0xa28')]('voiceChanSpy@get',{'fields':'createdAt,updatedAt,id,name,prefix,options,auth,password,record,recordingFormat,description','sort':_0x417005('0x1c74'),'limit':0xa,'offset':0x0}):_0x45a295[_0x417005('0xa28')]('userProfile@getResources',{'id':_0x3fb99e[_0x417005('0x2428')]()[_0x417005('0x781')],'section':_0x417005('0x1104'),'fields':_0x417005('0x26bd'),'sort':_0x417005('0x1c74'),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x3b69d3('0x1150'),function(_0x489058,_0x14d112){const _0xe3e8a6=_0x3b69d3;return _0x14d112[_0xe3e8a6('0x4ee')]('admin')?null:_0x489058[_0xe3e8a6('0xa28')](_0xe3e8a6('0x428'),{'fields':_0xe3e8a6('0xd30'),'id':_0x14d112['getCurrentUser']()['userProfileId']});}],'userProfileSection':['apiResolver',_0x3b69d3('0x1150'),function(_0x4f6f93,_0x3492d6){const _0xfd95e5=_0x3b69d3;return _0x3492d6[_0xfd95e5('0x4ee')]('admin')?null:_0x4f6f93[_0xfd95e5('0xa28')](_0xfd95e5('0x2762'),{'fields':_0xfd95e5('0x36d'),'userProfileId':_0x3492d6[_0xfd95e5('0x2428')]()['userProfileId'],'sectionId':0x199});}]},'authenticate':!![],'permissionId':0x199,'bodyClass':_0x3b69d3('0x1bc3')})[_0x3b69d3('0x2124')](_0x3b69d3('0x1a91'),{'url':'/voicePrefixes','views':{'content@app':{'templateUrl':_0x20cbeb,'controller':_0x3b69d3('0x1d78')}},'resolve':{'voicePrefixes':[_0x3b69d3('0x218e'),_0x3b69d3('0x1150'),function(_0x442152,_0x5b6cd7){const _0x37fd71=_0x3b69d3;return _0x5b6cd7['hasRole']('admin')?_0x442152[_0x37fd71('0xa28')]('voicePrefix@get',{'fields':_0x37fd71('0x1d6f'),'limit':0xa,'offset':0x0}):_0x442152[_0x37fd71('0xa28')](_0x37fd71('0xb0d'),{'id':_0x5b6cd7[_0x37fd71('0x2428')]()[_0x37fd71('0x781')],'section':'VoicePrefixes','fields':'createdAt,updatedAt,id,name,VoiceExtensionId,callerIdAll,description','limit':0xa,'offset':0x0});}],'userProfile':[_0x3b69d3('0x218e'),_0x3b69d3('0x1150'),function(_0x3dbf56,_0x346f8f){const _0x11d935=_0x3b69d3;return _0x346f8f[_0x11d935('0x4ee')](_0x11d935('0xf45'))?null:_0x3dbf56[_0x11d935('0xa28')](_0x11d935('0x428'),{'fields':_0x11d935('0xd30'),'id':_0x346f8f[_0x11d935('0x2428')]()[_0x11d935('0x781')]});}],'userProfileSection':[_0x3b69d3('0x218e'),_0x3b69d3('0x1150'),function(_0x4bc28e,_0x25f1eb){const _0x2aece7=_0x3b69d3;return _0x25f1eb[_0x2aece7('0x4ee')](_0x2aece7('0xf45'))?null:_0x4bc28e[_0x2aece7('0xa28')](_0x2aece7('0x2762'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x25f1eb[_0x2aece7('0x2428')]()[_0x2aece7('0x781')],'sectionId':0x19a});}]},'authenticate':!![],'permissionId':0x19a,'bodyClass':_0x3b69d3('0x1bc3')}),_0x166c4f[_0x3b69d3('0x471')](_0x3b69d3('0x1149'));}angular['module'](_0x21d0f5('0xbac'),['ngCsv',_0x21d0f5('0x1fb3'),_0x21d0f5('0x3c4'),_0x21d0f5('0x2414'),_0x21d0f5('0xd61'),_0x21d0f5('0x2096'),_0x21d0f5('0x24a2'),_0x21d0f5('0x446'),'ngAnimate',_0x21d0f5('0x21d5'),_0x21d0f5('0x29b'),_0x21d0f5('0xc46'),_0x21d0f5('0x950'),_0x21d0f5('0xf49'),'angular-cron-jobs',_0x21d0f5('0xed9'),'angularMaterialFormBuilder',_0x21d0f5('0x1622'),'chart.js',_0x21d0f5('0xf7f'),_0x21d0f5('0x90a')])[_0x21d0f5('0x53a')](_0x1ff038)['controller']('ChanSpiesController',_0x1952ea)[_0x21d0f5('0x23eb')](_0x21d0f5('0x1d29'),_0x553890)[_0x21d0f5('0x23eb')]('ContextsController',_0x151088)[_0x21d0f5('0x23eb')](_0x21d0f5('0x13aa'),_0x859761)[_0x21d0f5('0x23eb')](_0x21d0f5('0xec1'),_0x22df20)[_0x21d0f5('0x23eb')](_0x21d0f5('0x12c3'),_0x3b1d91)[_0x21d0f5('0x23eb')](_0x21d0f5('0x3e8'),_0x3752b9)[_0x21d0f5('0x23eb')]('EditInboundAppcustomDialogController',_0x290e70)[_0x21d0f5('0x23eb')](_0x21d0f5('0x1cd1'),_0x3b00d3)[_0x21d0f5('0x23eb')](_0x21d0f5('0x10b8'),_0x315cae)[_0x21d0f5('0x23eb')](_0x21d0f5('0xf7e'),_0x526a2f)[_0x21d0f5('0x23eb')](_0x21d0f5('0x26eb'),_0x9c2a1c)[_0x21d0f5('0x23eb')]('EditInboundAppinternaldialDialogController',_0xf21d26)['controller'](_0x21d0f5('0xda1'),_0x3f07c0)[_0x21d0f5('0x23eb')]('EditInboundAppplaybackDialogController',_0x2916f1)['controller'](_0x21d0f5('0x24e6'),_0x388a0f)[_0x21d0f5('0x23eb')](_0x21d0f5('0xee2'),_0x32094b)[_0x21d0f5('0x23eb')](_0x21d0f5('0x183c'),_0x239347)['controller'](_0x21d0f5('0xd1d'),_0x3d5dd4)[_0x21d0f5('0x23eb')](_0x21d0f5('0x12cd'),_0x5256dc)['controller'](_0x21d0f5('0x2253'),_0x1a4d7c)[_0x21d0f5('0x23eb')](_0x21d0f5('0xd94'),_0x1871c4)[_0x21d0f5('0x23eb')](_0x21d0f5('0x17e9'),_0x4ba909)[_0x21d0f5('0x23eb')](_0x21d0f5('0x645'),_0x47d365)[_0x21d0f5('0x23eb')](_0x21d0f5('0x1732'),_0x10638b)[_0x21d0f5('0x23eb')](_0x21d0f5('0x279a'),_0x340044)[_0x21d0f5('0x23eb')](_0x21d0f5('0xac4'),_0xa6f5a4)[_0x21d0f5('0x23eb')](_0x21d0f5('0xbe2'),_0x5334d1)[_0x21d0f5('0x23eb')](_0x21d0f5('0x14fb'),_0x5506d4)['controller'](_0x21d0f5('0xb1d'),_0x44d1ba)[_0x21d0f5('0x23eb')](_0x21d0f5('0x263f'),_0x5696c9)[_0x21d0f5('0x23eb')]('EditInternalAppplaybackDialogController',_0x36c77f)[_0x21d0f5('0x23eb')](_0x21d0f5('0x1183'),_0x54fed4)[_0x21d0f5('0x23eb')](_0x21d0f5('0x15fb'),_0x108198)['controller']('EditInternalAppsetDialogController',_0x116b2a)[_0x21d0f5('0x23eb')](_0x21d0f5('0x2832'),_0xd6ae60)[_0x21d0f5('0x23eb')](_0x21d0f5('0x513'),_0x3c3ce4)[_0x21d0f5('0x23eb')](_0x21d0f5('0x415'),_0x52e0c6)[_0x21d0f5('0x23eb')]('CreateOrEditMusicOnHoldDialogController',_0x2f67dc)['controller']('MusicOnHoldMohSoundsController',_0x46ace5)['controller'](_0x21d0f5('0x1e07'),_0x185600)[_0x21d0f5('0x23eb')](_0x21d0f5('0x5f4'),_0x401b25)[_0x21d0f5('0x23eb')](_0x21d0f5('0xac'),_0x3a2164),angular[_0x21d0f5('0x2768')](_0x21d0f5('0xbac'))['controller']('CreateOrEditOutboundRouteDialogController',_0x5f713c)[_0x21d0f5('0x23eb')](_0x21d0f5('0x21c2'),_0x33b08e)[_0x21d0f5('0x23eb')](_0x21d0f5('0x158d'),_0x63afb7)['controller'](_0x21d0f5('0x1ad0'),_0x36e1e1)[_0x21d0f5('0x23eb')](_0x21d0f5('0x1439'),_0x28078b)['controller'](_0x21d0f5('0x279d'),_0x4b04d6)['controller'](_0x21d0f5('0x198b'),_0x4c98c7)[_0x21d0f5('0x23eb')](_0x21d0f5('0xd7c'),_0x54353c)[_0x21d0f5('0x23eb')](_0x21d0f5('0xe45'),_0x24ce87)[_0x21d0f5('0x23eb')](_0x21d0f5('0x28a'),_0x28feaa)['controller'](_0x21d0f5('0x170d'),_0x1bf1b5)[_0x21d0f5('0x23eb')](_0x21d0f5('0x5d0'),_0x5c2731)[_0x21d0f5('0x23eb')](_0x21d0f5('0x14bc'),_0x4d557f)[_0x21d0f5('0x23eb')](_0x21d0f5('0x7a8'),_0x20b4bc)[_0x21d0f5('0x23eb')]('CreateOrEditVoiceQueueDialogController',_0xdc42fb)[_0x21d0f5('0x23eb')](_0x21d0f5('0xacd'),_0x484691)[_0x21d0f5('0x23eb')]('VoiceQueueteamaddController',_0x38016a)['controller'](_0x21d0f5('0x256f'),_0x58de07)[_0x21d0f5('0x23eb')](_0x21d0f5('0x10a'),_0x5b07b1)[_0x21d0f5('0x23eb')](_0x21d0f5('0x2389'),_0x704045)[_0x21d0f5('0x23eb')](_0x21d0f5('0x87d'),_0xb26c01)[_0x21d0f5('0x23eb')](_0x21d0f5('0x2248'),_0xff9540)[_0x21d0f5('0x23eb')](_0x21d0f5('0x1728'),_0x5b30d2);const _0x17a4bc=_0x351988['p']+_0x21d0f5('0x26cb'),_0x231252=_0x351988['p']+_0x21d0f5('0x1e41'),_0x45c89e=_0x351988['p']+_0x21d0f5('0x68b'),_0x3378c3=_0x351988['p']+_0x21d0f5('0x1858'),_0x547740=_0x351988['p']+_0x21d0f5('0x2373'),_0x5bd2e4=_0x351988['p']+_0x21d0f5('0xf6e'),_0x3f3aa6=_0x351988['p']+_0x21d0f5('0x7fd');_0x5dd953[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),'$q',_0x21d0f5('0x17f5'),_0x21d0f5('0x1ca2'),'$document',_0x21d0f5('0x2212'),_0x21d0f5('0x12f2'),_0x21d0f5('0x1401'),'rpcAgents','api',_0x21d0f5('0x1d56'),_0x21d0f5('0x142d'),'helperClasses',_0x21d0f5('0x25bc'),_0x21d0f5('0x1d63'),_0x21d0f5('0x1150'),'license',_0x21d0f5('0x1fd')];function _0x5dd953(_0x343879,_0x3eaeed,_0x5e90a5,_0x1cac85,_0x44b2f9,_0x15d38a,_0x7db65a,_0x2da34d,_0x51d6f8,_0x3e82ad,_0x4778d2,_0x18d6c5,_0x413d1f,_0x427c22,_0x405cd1,_0x3bb397,_0x4f8d53,_0x4b8496){const _0x3c15f1=_0x21d0f5,_0x17a380=this,_0x8131cc=[_0x3c15f1('0x88'),_0x3c15f1('0x81c'),'lastLoginAt',_0x3c15f1('0x1e10'),_0x3c15f1('0x2628'),_0x3c15f1('0x1e10'),_0x3c15f1('0x1a04'),_0x3c15f1('0x5fc'),_0x3c15f1('0x13c9'),_0x3c15f1('0xfc0'),_0x3c15f1('0x1f53'),_0x3c15f1('0x55e'),_0x3c15f1('0x1ed1'),_0x3c15f1('0x2501'),_0x3c15f1('0x20d'),'chatCapacity',_0x3c15f1('0x93c'),_0x3c15f1('0x2271'),'smsCapacity','whatsappCapacity',_0x3c15f1('0x790'),_0x3c15f1('0x539'),'openchannelCurrentCapacity',_0x3c15f1('0x10a2'),_0x3c15f1('0x19de'),_0x3c15f1('0xa81'),'faxCurrentCapacity','chatStatus','openchannelStatus','mailStatus',_0x3c15f1('0x245c'),_0x3c15f1('0x14d4'),'faxStatus',_0x3c15f1('0x1715'),_0x3c15f1('0xe6a'),_0x3c15f1('0x22cb'),_0x3c15f1('0x1bab'),'smsStatusTime',_0x3c15f1('0x3ee'),_0x3c15f1('0x1ce2'),_0x3c15f1('0x24e5'),_0x3c15f1('0x150b'),'destconnectedlinenum','screenrecording',_0x3c15f1('0x15e0'),'phoneBarEnableAutomaticScreenRecording'],_0x509473=['chatPause','openchannelPause',_0x3c15f1('0x1f53'),_0x3c15f1('0x55e'),_0x3c15f1('0x1ed1'),_0x3c15f1('0x2501'),_0x3c15f1('0x20d'),_0x3c15f1('0x81c')];_0x17a380[_0x3c15f1('0x32a')]=_0x3bb397[_0x3c15f1('0x2428')](),_0x17a380[_0x3c15f1('0x1391')]=['ringing','inuse',_0x3c15f1('0x23a3'),_0x3c15f1('0x26ac'),'not_inuse'],_0x17a380[_0x3c15f1('0x12f2')]=_0x7db65a||{'count':0x0,'rows':[]},_0x17a380[_0x3c15f1('0x17ff')]=_0x4f8d53,_0x17a380[_0x3c15f1('0x25bc')]=_0x427c22,_0x17a380[_0x3c15f1('0x1d63')]=_0x405cd1&&_0x405cd1[_0x3c15f1('0x27d2')]==0x1?_0x405cd1[_0x3c15f1('0x19b2')][0x0]:null,_0x17a380[_0x3c15f1('0xb25')]=_0x3bb397[_0x3c15f1('0x1530')](_0x17a380[_0x3c15f1('0x1d63')]?_0x17a380[_0x3c15f1('0x1d63')][_0x3c15f1('0xb25')]:null),_0x17a380[_0x3c15f1('0x1401')]=_0x2da34d?_0x36f548()['keyBy'](_0x2da34d[_0x3c15f1('0x19b2')]?_0x2da34d['rows']:[],'id'):{},_0x17a380[_0x3c15f1('0xaa0')]=_0x51d6f8?_0x36f548()['keyBy'](_0x51d6f8[_0x3c15f1('0x19b2')]?_0x51d6f8[_0x3c15f1('0x19b2')]:[],'id'):{},_0x17a380[_0x3c15f1('0x18bd')]={},_0x17a380['load']=![],_0x17a380['order']=[],_0x17a380[_0x3c15f1('0x14fd')]={};for(const _0x165ad3 in _0x17a380[_0x3c15f1('0x1401')]){typeof _0x17a380[_0x3c15f1('0x1401')][_0x165ad3]!==_0x3c15f1('0x13e9')&&(_0x17a380[_0x3c15f1('0x1401')][_0x165ad3][_0x3c15f1('0x286f')]=!![]);}_0x17a380[_0x3c15f1('0x1f2a')]={'limit':0xa,'page':0x1,'order':'fullname','globalStatusFilter':'','pauseTypeFilter':''},_0x17a380[_0x3c15f1('0x18f7')]=_0x1b7300,_0x17a380[_0x3c15f1('0x6c0')]=_0x25e36e,_0x17a380[_0x3c15f1('0x92a')]=_0x7d4976,_0x17a380[_0x3c15f1('0x1ab7')]=_0x3cbaaa,_0x17a380['showInfo']=_0x195cc8,_0x17a380[_0x3c15f1('0x12e5')]=_0x45cd30,_0x17a380[_0x3c15f1('0x11a2')]=_0x17c622,_0x17a380[_0x3c15f1('0x1191')]=_0x19b41e,_0x17a380['checkPause']=_0x448da4,_0x17a380['isPartialPause']=_0x2ff0ed,_0x17a380[_0x3c15f1('0xc8f')]=_0x379b52,_0x17a380[_0x3c15f1('0xfdd')]=_0x3bff0e,_0x17a380['onInit']=_0x43c550,_0x17a380[_0x3c15f1('0x1e2e')]=_0x3c4394,_0x17a380[_0x3c15f1('0x162a')]=_0x190481,_0x17a380[_0x3c15f1('0x1520')]=_0x3796b1,_0x4778d2['on'](_0x3c15f1('0x1ce9'),_0x17a380[_0x3c15f1('0xc8f')]),_0x4778d2['on']('user:update',_0x17a380['onUpdate']),_0x4778d2['on']('user:agentconnect',_0x17a380['onConnect']),_0x4778d2['on']('user:agentcomplete',_0x17a380[_0x3c15f1('0x162a')]),_0x43c550();let _0x43dfbe=_0x4b8496(function(){const _0x11240c=_0x3c15f1;_0x17a380[_0x11240c('0x215b')]&&(_0x17a380[_0x11240c('0x215b')]=![],_0x43c550());},0x3e7);function _0x43c550(){const _0x188df6=_0x3c15f1;_0x17a380[_0x188df6('0x215b')]=![];const _0x36670d=_0x3eaeed[_0x188df6('0xa93')]();_0x17a380[_0x188df6('0x13f')]=_0x36670d[_0x188df6('0x13f')],_0x17a380[_0x188df6('0x15f2')]=[],_0x17a380[_0x188df6('0x59')]=[],_0x36f548()['forIn'](_0x17a380[_0x188df6('0x1401')],function(_0x41760f,_0x467957){const _0x3bbefe=_0x188df6;_0x17a380[_0x3bbefe('0xaa0')][_0x467957]&&_0x36f548()[_0x3bbefe('0x47b')](_0x41760f,_0x36f548()[_0x3bbefe('0x258')](_0x36f548()[_0x3bbefe('0x196f')](_0x17a380[_0x3bbefe('0xaa0')][_0x467957],_0x509473),_0x8131cc)),_0x17c622(_0x41760f),_0x41760f['online']?(_0x17a380[_0x3bbefe('0x15f2')][_0x3bbefe('0x105d')](_0x41760f),_0x17a380[_0x3bbefe('0x14fd')][_0x41760f[_0x3bbefe('0x1a04')]]=_0x467957):_0x41760f['globalStatusTime']=_0x36f548()[_0x3bbefe('0x17c2')](_0x57d4d1()()[_0x3bbefe('0x1826')]('x'));});_0x17a380[_0x188df6('0x1f2a')][_0x188df6('0x270')]&&_0x36f548()[_0x188df6('0x14a5')](_0x17a380[_0x188df6('0x15f2')],function(_0x2546a2){const _0x2639db=_0x188df6;return _0x2546a2[_0x2639db('0x797')]!==_0x17a380[_0x2639db('0x1f2a')][_0x2639db('0x270')];});_0x17a380[_0x188df6('0x1f2a')][_0x188df6('0xa12')]&&_0x36f548()['remove'](_0x17a380[_0x188df6('0x15f2')],function(_0x19e018){const _0x3f808c=_0x188df6;return _0x19e018['pauseType']!==_0x17a380['query'][_0x3f808c('0xa12')];});_0x17a380['query'][_0x188df6('0xdb4')]&&_0x36f548()['remove'](_0x17a380[_0x188df6('0x15f2')],function(_0x12447a){const _0x49027e=_0x188df6;return _0x12447a['fullname'][_0x49027e('0x20d5')]()[_0x49027e('0x203c')](_0x17a380[_0x49027e('0x1f2a')]['filter'][_0x49027e('0x20d5')]())<0x0;});_0x17a380['filteredAgents']=_0x32fec1(_0x17a380[_0x188df6('0x15f2')]);const _0x4c6193=(_0x17a380[_0x188df6('0x1f2a')][_0x188df6('0x1c2')]-0x1)*_0x17a380[_0x188df6('0x1f2a')][_0x188df6('0xd5c')];_0x17a380[_0x188df6('0x18bd')]=_0x36f548()['drop'](_0x17a380[_0x188df6('0x15f2')],_0x4c6193)['slice'](0x0,_0x17a380[_0x188df6('0x1f2a')][_0x188df6('0xd5c')]);for(let _0x592711=0x0;_0x592711<_0x17a380['paginatedAgents']['length'];_0x592711+=0x1){_0x17a380[_0x188df6('0x59')]['push'](_0x17a380[_0x188df6('0x18bd')][_0x592711]['id']);}_0x36670d[_0x188df6('0xa28')](),_0x17a380[_0x188df6('0x215b')]=!![];}function _0x379b52(_0x2cb902){const _0x516119=_0x3c15f1;_0x17a380[_0x516119('0x1401')][_0x2cb902['id']]&&(_0x36f548()[_0x516119('0x47b')](_0x17a380[_0x516119('0x1401')][_0x2cb902['id']],_0x36f548()['pick'](_0x36f548()[_0x516119('0x196f')](_0x2cb902,_0x509473),_0x8131cc)),_0x36f548()['merge'](_0x17a380[_0x516119('0xaa0')][_0x2cb902['id']],_0x36f548()[_0x516119('0x258')](_0x36f548()[_0x516119('0x196f')](_0x2cb902,_0x509473),_0x8131cc)),_0x17c622(_0x17a380[_0x516119('0x1401')][_0x2cb902['id']]));}function _0x3bff0e(_0x29f48b){const _0x5154ef=_0x3c15f1;_0x17a380['agents'][_0x29f48b['id']]&&(_0x36f548()[_0x5154ef('0x47b')](_0x17a380[_0x5154ef('0x1401')][_0x29f48b['id']],_0x36f548()['pick'](_0x29f48b,_0x8131cc)),_0x36f548()[_0x5154ef('0x47b')](_0x17a380[_0x5154ef('0xaa0')][_0x29f48b['id']],_0x36f548()[_0x5154ef('0x258')](_0x29f48b,_0x8131cc)),_0x29f48b[_0x5154ef('0x1e10')]&&(_0x17a380[_0x5154ef('0x1401')][_0x29f48b['id']][_0x5154ef('0xd4')]=_0x29f48b[_0x5154ef('0x1e10')],_0x17a380[_0x5154ef('0xaa0')][_0x29f48b['id']][_0x5154ef('0xd4')]=_0x29f48b[_0x5154ef('0x1e10')]),_0x17c622(_0x17a380[_0x5154ef('0x1401')][_0x29f48b['id']]));}function _0x3c4394(_0x5140b0){const _0x244457=_0x3c15f1;_0x17a380[_0x244457('0x1401')][_0x17a380[_0x244457('0x14fd')][_0x5140b0[_0x244457('0x1fd0')]]]&&(_0x36f548()[_0x244457('0x47b')](_0x17a380[_0x244457('0x1401')][_0x17a380[_0x244457('0x14fd')][_0x5140b0[_0x244457('0x1fd0')]]],_0x36f548()['pick'](_0x5140b0,['queue',_0x244457('0x1562')])),_0x36f548()['merge'](_0x17a380[_0x244457('0xaa0')][_0x17a380[_0x244457('0x14fd')][_0x5140b0[_0x244457('0x1fd0')]]],_0x36f548()[_0x244457('0x258')](_0x5140b0,[_0x244457('0x150b'),_0x244457('0x1562')])));}function _0x190481(_0x54c21c){const _0x2e4817=_0x3c15f1;_0x17a380[_0x2e4817('0x1401')][_0x17a380[_0x2e4817('0x14fd')][_0x54c21c[_0x2e4817('0x1fd0')]]]&&(_0x17a380[_0x2e4817('0x1401')][_0x17a380[_0x2e4817('0x14fd')][_0x54c21c['destaccountcode']]]=_0x36f548()['omit'](_0x17a380[_0x2e4817('0x1401')][_0x17a380[_0x2e4817('0x14fd')][_0x54c21c['destaccountcode']]],['queue',_0x2e4817('0x1562')]),_0x17a380[_0x2e4817('0xaa0')][_0x17a380['agentInternal'][_0x54c21c[_0x2e4817('0x1fd0')]]]=_0x36f548()[_0x2e4817('0x196f')](_0x17a380[_0x2e4817('0xaa0')][_0x17a380[_0x2e4817('0x14fd')][_0x54c21c[_0x2e4817('0x1fd0')]]],[_0x2e4817('0x150b'),'destconnectedlinenum']));}function _0x1b7300(_0x1f9f6b){const _0x5c32b9=_0x3c15f1;return _0x3e82ad[_0x5c32b9('0x21d9')][_0x5c32b9('0x18f7')]({'id':_0x1f9f6b['id'],'device':'realtime','agent_id':_0x1f9f6b['id'],'agent_name':_0x1f9f6b[_0x5c32b9('0x1909')]})[_0x5c32b9('0x1549')][_0x5c32b9('0x11bf')](function(){const _0x566d09=_0x5c32b9;_0x18d6c5[_0x566d09('0x2693')]({'title':_0x566d09('0x21e1'),'msg':_0x1f9f6b['fullname']+'\x20\x20properly\x20logout'}),_0x17a380[_0x566d09('0x1401')][_0x1f9f6b['id']]&&(_0x17a380[_0x566d09('0x1401')][_0x1f9f6b['id']][_0x566d09('0x81c')]=![]),_0x17a380[_0x566d09('0xaa0')][_0x1f9f6b['id']]&&(_0x17a380[_0x566d09('0xaa0')][_0x1f9f6b['id']][_0x566d09('0x81c')]=![]),_0x43c550();})[_0x5c32b9('0x151d')](function(_0x5d5829){const _0x3ada49=_0x5c32b9;_0x18d6c5[_0x3ada49('0x255')]({'title':_0x5d5829[_0x3ada49('0xff9')]?'API:'+_0x5d5829['status']+_0x3ada49('0xb0b')+_0x5d5829[_0x3ada49('0x212f')]:_0x3ada49('0x9'),'msg':_0x5d5829[_0x3ada49('0x4e8')]?JSON['stringify'](_0x5d5829[_0x3ada49('0x4e8')][_0x3ada49('0x1b86')]):_0x5d5829['toString']()});});}function _0x7d4976(_0xa6a286,_0x5cc90c){const _0x125f90=_0x3c15f1;return _0x3e82ad['user'][_0x125f90('0x92a')]({'id':_0xa6a286['id'],'type':_0x5cc90c})['$promise'][_0x125f90('0x11bf')](function(_0x5ba09a){const _0x336fb9=_0x125f90;_0x17a380[_0x336fb9('0x1401')][_0xa6a286['id']]&&_0x36f548()['merge'](_0x17a380[_0x336fb9('0x1401')][_0xa6a286['id']],_0x36f548()[_0x336fb9('0x258')](_0x5ba09a,_0x8131cc)),_0x17a380[_0x336fb9('0xaa0')][_0xa6a286['id']]&&_0x36f548()[_0x336fb9('0x47b')](_0x17a380[_0x336fb9('0xaa0')][_0xa6a286['id']],_0x36f548()[_0x336fb9('0x258')](_0x5ba09a,_0x8131cc)),_0x17c622(_0x17a380[_0x336fb9('0x1401')][_0xa6a286['id']]);})[_0x125f90('0x151d')](function(_0x5250be){const _0x150451=_0x125f90;_0x18d6c5[_0x150451('0x255')]({'title':_0x5250be[_0x150451('0xff9')]?'API:'+_0x5250be['status']+'\x20-\x20'+_0x5250be[_0x150451('0x212f')]:_0x150451('0x9'),'msg':_0x5250be[_0x150451('0x4e8')]?JSON['stringify'](_0x5250be[_0x150451('0x4e8')]['message']):_0x5250be[_0x150451('0xaab')]()});});}function _0x3cbaaa(_0x20ae0f){const _0x498303=_0x3c15f1;return _0x3e82ad[_0x498303('0x21d9')][_0x498303('0xb6f')]({'id':_0x20ae0f['id']})['$promise'][_0x498303('0x11bf')](function(_0x39762b){const _0x404b7d=_0x498303;_0x17a380[_0x404b7d('0x1401')][_0x20ae0f['id']]&&_0x36f548()['merge'](_0x17a380[_0x404b7d('0x1401')][_0x20ae0f['id']],_0x36f548()[_0x404b7d('0x258')](_0x39762b,_0x8131cc)),_0x17a380[_0x404b7d('0xaa0')][_0x20ae0f['id']]&&_0x36f548()[_0x404b7d('0x47b')](_0x17a380['rpcAgents'][_0x20ae0f['id']],_0x36f548()['pick'](_0x39762b,_0x8131cc)),_0x17c622(_0x17a380[_0x404b7d('0x1401')][_0x20ae0f['id']]);})[_0x498303('0x151d')](function(_0x65309d){const _0x485fd0=_0x498303;_0x18d6c5[_0x485fd0('0x255')]({'title':_0x65309d[_0x485fd0('0xff9')]?_0x485fd0('0x574')+_0x65309d[_0x485fd0('0xff9')]+'\x20-\x20'+_0x65309d[_0x485fd0('0x212f')]:_0x485fd0('0x9'),'msg':_0x65309d[_0x485fd0('0x4e8')]?JSON[_0x485fd0('0x3e')](_0x65309d['data']['message']):_0x65309d[_0x485fd0('0xaab')]()});});}function _0x195cc8(_0x13a770){const _0x531e1e=_0x3c15f1;_0x1cac85[_0x531e1e('0xb9')](_0x1cac85['alert']()[_0x531e1e('0x728')](!![])[_0x531e1e('0x134b')](_0x531e1e('0x24f0'))[_0x531e1e('0x1d03')](_0x531e1e('0x193c'))['ok']('Ok')[_0x531e1e('0x1e25')](_0x13a770));}function _0x25e36e(_0x2e7612,_0x5751d6){const _0x54cec5=_0x3c15f1;_0x1cac85[_0x54cec5('0xb9')]({'controller':_0x54cec5('0x1730'),'controllerAs':'vm','templateUrl':_0x43dcce,'parent':angular[_0x54cec5('0x1e73')](_0x44b2f9[_0x54cec5('0x1d2')]),'targetEvent':_0x5751d6,'clickOutsideToClose':!![],'locals':{'agent':_0x2e7612,'agents':[],'channel':_0x54cec5('0x1800'),'direction':_0x54cec5('0x18a2'),'crudPermissions':_0x17a380['crudPermissions']}});}function _0x19b41e(_0xe8dcd9){return _0xe8dcd9==='pause'||_0xe8dcd9==='*pause';}function _0x448da4(_0x19e5e6){return _0x19e5e6==='pause';}function _0x2ff0ed(_0x2122eb){const _0x72c35=_0x3c15f1;return _0x2122eb===_0x72c35('0x1050');}function _0x2a455a(_0x49f46c){const _0x547017=_0x3c15f1;return _0x49f46c===_0x547017('0x1533')||_0x49f46c==='unknown'||_0x49f46c===_0x547017('0x181f')||_0x49f46c===_0x547017('0x19b')||_0x36f548()[_0x547017('0x1a80')](_0x49f46c);}function _0x45cd30(_0x587887,_0x514644){const _0x1877c9=_0x3c15f1;if(_0x514644===_0x1877c9('0x1bc3')){if(_0x587887[_0x514644+_0x1877c9('0x971')]!==_0x1877c9('0x1533'))return _0x587887[_0x514644+'Status'];if(_0x587887[_0x514644+'Pause'])return _0x587887[_0x514644+_0x1877c9('0x971')]='pause',_0x1877c9('0x92a');return'idle';}else{if(_0x587887[_0x514644+_0x1877c9('0x6c5')])return _0x587887[_0x514644+_0x1877c9('0x971')]=_0x1877c9('0x92a'),_0x1877c9('0x92a');return _0x587887[_0x514644+_0x1877c9('0x971')];}}function _0x17c622(_0x42f5cf){const _0x172fe0=_0x3c15f1;let _0xeab168='unknown';if(_0x36f548()[_0x172fe0('0x1d1')]([_0x45cd30(_0x42f5cf,_0x172fe0('0x1bc3')),_0x45cd30(_0x42f5cf,_0x172fe0('0x1800')),_0x45cd30(_0x42f5cf,'mail'),_0x45cd30(_0x42f5cf,_0x172fe0('0xb18')),_0x45cd30(_0x42f5cf,_0x172fe0('0x4df')),_0x45cd30(_0x42f5cf,_0x172fe0('0xe7c')),_0x45cd30(_0x42f5cf,_0x172fe0('0x2104'))],_0x19b41e))_0xeab168='pause';else{if(_0x36f548()['some']([_0x45cd30(_0x42f5cf,'voice'),_0x45cd30(_0x42f5cf,_0x172fe0('0x1800')),_0x45cd30(_0x42f5cf,_0x172fe0('0x2030')),_0x45cd30(_0x42f5cf,_0x172fe0('0xb18')),_0x45cd30(_0x42f5cf,'sms'),_0x45cd30(_0x42f5cf,_0x172fe0('0xe7c')),_0x45cd30(_0x42f5cf,_0x172fe0('0x2104'))],_0x19b41e))_0xeab168='*pause';else _0x36f548()['every']([_0x45cd30(_0x42f5cf,_0x172fe0('0x1bc3')),_0x45cd30(_0x42f5cf,_0x172fe0('0x1800')),_0x45cd30(_0x42f5cf,_0x172fe0('0x2030')),_0x45cd30(_0x42f5cf,_0x172fe0('0xb18')),_0x45cd30(_0x42f5cf,_0x172fe0('0x4df')),_0x45cd30(_0x42f5cf,_0x172fe0('0xe7c')),_0x45cd30(_0x42f5cf,_0x172fe0('0x2104'))],_0x2a455a)?_0xeab168='idle':_0xeab168='busy';}_0x42f5cf['globalStatus']!==_0xeab168&&(_0x42f5cf[_0x172fe0('0x797')]=_0xeab168,_0x42f5cf[_0x172fe0('0x286f')]?(_0x42f5cf[_0x172fe0('0x286f')]=![],_0x42f5cf[_0x172fe0('0xd4')]=_0x19b41e(_0xeab168)?_0x36f548()['toNumber'](_0x57d4d1()(_0x42f5cf[_0x172fe0('0x1e10')])[_0x172fe0('0x1826')]('x')):_0x36f548()['max']([_0x42f5cf[_0x172fe0('0x24e5')],_0x42f5cf['chatStatusTime'],_0x42f5cf[_0x172fe0('0x1bab')],_0x42f5cf[_0x172fe0('0x1ac6')],_0x42f5cf['whatsappStatusTime'],_0x42f5cf[_0x172fe0('0x22cb')],_0x42f5cf[_0x172fe0('0x1ce2')]])):_0x42f5cf['globalStatusTime']=_0x36f548()[_0x172fe0('0x17c2')](_0x57d4d1()()[_0x172fe0('0x1826')]('x')));}function _0x32fec1(_0x5c3825){const _0xb53321=_0x3c15f1,_0x1ed1b1=_0x36f548()[_0xb53321('0x1eb7')](_0x17a380[_0xb53321('0x1f2a')][_0xb53321('0x59')],'-')?_0xb53321('0x121a'):_0xb53321('0x1875');return _0x36f548()[_0xb53321('0x17d7')](_0x5c3825,[_0x17a380[_0xb53321('0x1f2a')]['order'][_0xb53321('0x814')]('-','')],[_0x1ed1b1]);}function _0x50c1ef(){const _0x1538c8=_0x3c15f1;_0x43dfbe&&(_0x4b8496[_0x1538c8('0x26c9')](_0x43dfbe),_0x43dfbe=null);}function _0x3796b1(_0x3a0747,_0xd6e7b8){const _0x2f1a16=_0x3c15f1;return _0x3e82ad['user']['update']({'id':_0x3a0747['id']},{'screenrecording':_0xd6e7b8})[_0x2f1a16('0x1549')]['catch'](function(_0x1071e5){const _0x368e65=_0x2f1a16;_0x18d6c5['error']({'title':_0x1071e5[_0x368e65('0xff9')]?_0x368e65('0x574')+_0x1071e5['status']+_0x368e65('0xb0b')+_0x1071e5[_0x368e65('0x212f')]:_0x368e65('0x165b'),'msg':_0x1071e5[_0x368e65('0x4e8')]?JSON[_0x368e65('0x3e')](_0x1071e5[_0x368e65('0x4e8')][_0x368e65('0x1b86')]):_0x1071e5['toString']()});});}_0x343879[_0x3c15f1('0x12d8')](_0x3c15f1('0x4f7'),function(){const _0x56ba23=_0x3c15f1;_0x4778d2[_0x56ba23('0x1b2e')](_0x56ba23('0x1ce9')),_0x4778d2[_0x56ba23('0x1b2e')](_0x56ba23('0x15bd')),_0x4778d2[_0x56ba23('0x1b2e')](_0x56ba23('0x90c')),_0x4778d2[_0x56ba23('0x1b2e')](_0x56ba23('0xffb')),_0x50c1ef();});}const _0x10c036=_0x5dd953,_0x160d48=_0x351988['p']+'src/js/modules/main/apps/chat/views/chatQueues/create/dialog.html/dialog.html',_0x49ef99=_0x351988['p']+_0x21d0f5('0x21f4');_0xcb17f9['$inject']=[_0x21d0f5('0x1b80'),_0x21d0f5('0x17f5'),_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0x1b30'),_0x21d0f5('0x1fd'),_0x21d0f5('0x1de3'),_0x21d0f5('0x1223'),_0x21d0f5('0x12a5'),'socket',_0x21d0f5('0x142d'),'userProfile',_0x21d0f5('0x1d63'),_0x21d0f5('0x1150')];function _0xcb17f9(_0x315873,_0x3a74f3,_0x11c3be,_0x391586,_0x1d720c,_0x1fce7e,_0x339ad2,_0x18a33f,_0x26c084,_0x4f32d6,_0x220dd4,_0x1bd41b,_0x5a8dad,_0x1019ec){const _0x1b32e1=_0x21d0f5,_0x1da12a=this,_0x906f1d=[_0x1b32e1('0xdbd'),_0x1b32e1('0x126a'),_0x1b32e1('0x1491'),_0x1b32e1('0x11ed'),_0x1b32e1('0x17ba'),_0x1b32e1('0x1fab'),_0x1b32e1('0x1b86'),'dialActive',_0x1b32e1('0xcd7'),_0x1b32e1('0x10d'),_0x1b32e1('0xdb0')];_0x1da12a[_0x1b32e1('0x32a')]=_0x1019ec[_0x1b32e1('0x2428')](),_0x1da12a['count']=_0x339ad2[_0x1b32e1('0x27d2')]?_0x339ad2[_0x1b32e1('0x27d2')]:0x0,_0x1da12a[_0x1b32e1('0x1de3')]=_0x339ad2?_0x36f548()[_0x1b32e1('0x2130')](_0x339ad2['rows']?_0x339ad2[_0x1b32e1('0x19b2')]:[],'id'):{},_0x1da12a[_0x1b32e1('0x1223')]=_0x18a33f?_0x36f548()['keyBy'](_0x18a33f[_0x1b32e1('0x19b2')]?_0x18a33f['rows']:[],'id'):{},_0x1da12a['userProfile']=_0x1bd41b,_0x1da12a['userProfileSection']=_0x5a8dad&&_0x5a8dad[_0x1b32e1('0x27d2')]==0x1?_0x5a8dad[_0x1b32e1('0x19b2')][0x0]:null,_0x1da12a[_0x1b32e1('0xb25')]=_0x1019ec[_0x1b32e1('0x1530')](_0x1da12a[_0x1b32e1('0x1d63')]?_0x1da12a[_0x1b32e1('0x1d63')]['crudPermissions']:null);_0x1019ec[_0x1b32e1('0x4ee')](_0x1b32e1('0xf45'))?_0x1da12a['query']={'type':_0x1b32e1('0x18a2'),'sort':_0x1b32e1('0x1c74'),'limit':0xa,'page':0x1}:_0x1da12a['query']={'id':_0x1da12a[_0x1b32e1('0x32a')]['id'],'channel':_0x1b32e1('0x1800'),'type':_0x1b32e1('0x18a2'),'sort':_0x1b32e1('0x1c74'),'limit':0xa,'page':0x1};_0x1da12a['success']=_0x3e3cd2,_0x1da12a[_0x1b32e1('0x373')]=_0x30f97e,_0x1da12a['createOrEditChatQueue']=_0x14e2c3,_0x1da12a[_0x1b32e1('0x20dd')]=_0xb290fa,_0x1da12a['updateQueue']=_0x4f4538,_0x1da12a['onSave']=_0x5cacc5,_0x1da12a[_0x1b32e1('0x17b7')]=_0x4a1196,_0x1da12a[_0x1b32e1('0xcaf')]=_0x4497f0,_0x1da12a[_0x1b32e1('0x199c')]=_0x56b64b,_0x1da12a[_0x1b32e1('0x722')]=_0x279f62,_0x1da12a[_0x1b32e1('0x37f')]=_0x1066f4,_0x1da12a[_0x1b32e1('0x224d')]=_0x558f94,_0x1da12a[_0x1b32e1('0x59')]=[],_0x36f548()['forIn'](_0x1da12a[_0x1b32e1('0x1de3')],function(_0x4c32d7){const _0x404232=_0x1b32e1;_0x1da12a[_0x404232('0x59')]['push'](_0x4c32d7['id']);}),_0x4f32d6['on'](_0x1b32e1('0x7b7'),_0x1da12a[_0x1b32e1('0xc8f')]),_0x4f32d6['on'](_0x1b32e1('0x98b'),_0x1da12a[_0x1b32e1('0x17b7')]),_0x4f32d6['on']('userChatQueue:remove',_0x1da12a['onRemoveMember']),_0x4f32d6['on']('user:update',_0x1da12a[_0x1b32e1('0x199c')]),_0x4f32d6['on']('userVoiceQueue:remove',_0x1da12a[_0x1b32e1('0x37f')]),_0x4f32d6['on']('userVoiceQueue:save',_0x1da12a[_0x1b32e1('0x722')]);function _0x558f94(){const _0x37d7b2=_0x1b32e1,_0x84f190=[];return _0x36f548()[_0x37d7b2('0x41e')](_0x1da12a[_0x37d7b2('0x1de3')],function(_0x33f97f,_0x21b691){const _0x477521=_0x37d7b2;_0x33f97f[_0x477521('0xdb0')]=0x0,_0x33f97f[_0x477521('0x1e84')]=0x0,_0x1da12a[_0x477521('0x1de3')][_0x21b691][_0x477521('0x1401')]={},_0x84f190[_0x477521('0x105d')](_0x26c084[_0x477521('0x1c23')]['getMembers']({'id':_0x21b691})[_0x477521('0x1549')]),_0x1da12a[_0x477521('0x1223')][_0x21b691]&&_0x36f548()[_0x477521('0x47b')](_0x33f97f,_0x36f548()['pick'](_0x1da12a[_0x477521('0x1223')][_0x21b691],_0x906f1d));}),_0x391586[_0x37d7b2('0x7c')](_0x84f190)[_0x37d7b2('0x11bf')](function(_0xd8ee6c){const _0x392bca=_0x37d7b2;for(let _0x115ae7=0x0;_0x115ae7<_0xd8ee6c['length'];_0x115ae7+=0x1){for(let _0x520896=0x0;_0x520896<_0xd8ee6c[_0x115ae7][_0x392bca('0x19b2')]['length'];_0x520896++){_0xd8ee6c[_0x115ae7][_0x392bca('0x19b2')][_0x520896]['paused']&&_0x1da12a[_0x392bca('0x1de3')][_0xd8ee6c[_0x115ae7][_0x392bca('0x19b2')][_0x520896][_0x392bca('0x1802')]][_0x392bca('0xdb0')]++,_0x1da12a[_0x392bca('0x1de3')][_0xd8ee6c[_0x115ae7][_0x392bca('0x19b2')][_0x520896][_0x392bca('0x1802')]][_0x392bca('0x1e84')]++,_0x1da12a['queues'][_0xd8ee6c[_0x115ae7]['rows'][_0x520896][_0x392bca('0x1802')]][_0x392bca('0x1401')][_0xd8ee6c[_0x115ae7][_0x392bca('0x19b2')][_0x520896][_0x392bca('0x2342')]]=_0xd8ee6c[_0x115ae7][_0x392bca('0x19b2')][_0x520896][_0x392bca('0x1802')];}}})[_0x37d7b2('0x151d')](function(_0x43f571){const _0xd63641=_0x37d7b2;console[_0xd63641('0x255')](_0x43f571);});}function _0x5cacc5(_0xcfd407){const _0x141bac=_0x1b32e1;_0x1da12a[_0x141bac('0x1de3')][_0xcfd407['id']]&&_0x36f548()[_0x141bac('0x47b')](_0x1da12a[_0x141bac('0x1de3')][_0xcfd407['id']],_0x36f548()['pick'](_0xcfd407,_0x906f1d));}function _0x4a1196(_0x16c835){const _0x1471da=_0x1b32e1;_0x1da12a[_0x1471da('0x1de3')][_0x16c835[_0x1471da('0x1802')]]&&_0x1da12a['queues'][_0x16c835['ChatQueueId']]['loggedInDb']++;}function _0x4497f0(_0x2c294f){const _0x24205c=_0x1b32e1;_0x1da12a[_0x24205c('0x1de3')][_0x2c294f[_0x24205c('0x1802')]]&&_0x1da12a[_0x24205c('0x1de3')][_0x2c294f[_0x24205c('0x1802')]][_0x24205c('0x1e84')]--;}function _0x56b64b(_0x43136d){const _0x5c1bb6=_0x1b32e1;console[_0x5c1bb6('0xc78')](_0x5c1bb6('0x199c'),_0x43136d);if(_0x43136d['voicePause'])_0x36f548()[_0x5c1bb6('0x41e')](_0x1da12a[_0x5c1bb6('0x1de3')],function(_0x2822de){const _0x1a3f50=_0x5c1bb6;_0x2822de[_0x1a3f50('0x1401')][_0x43136d['id']]&&(_0x2822de[_0x1a3f50('0xdb0')]+=0x1,console[_0x1a3f50('0xc78')](_0x1a3f50('0x92a')));});else!_0x43136d[_0x5c1bb6('0x20d')]&&_0x36f548()[_0x5c1bb6('0x41e')](_0x1da12a[_0x5c1bb6('0x1de3')],function(_0x5b9d72){const _0x578d3b=_0x5c1bb6;_0x5b9d72['agents'][_0x43136d['id']]&&(_0x5b9d72[_0x578d3b('0xdb0')]>0x0&&(_0x5b9d72[_0x578d3b('0xdb0')]-=0x1,console['log'](_0x578d3b('0xb6f'))));});}function _0x279f62(_0x5cc528){const _0x1bd336=_0x1b32e1;console[_0x1bd336('0xc78')](_0x1bd336('0x107b'),_0x5cc528),_0x1da12a[_0x1bd336('0x1de3')][_0x5cc528['ChatQueueId']]&&(_0x1da12a[_0x1bd336('0x1de3')][_0x5cc528[_0x1bd336('0x1802')]]['loggedInDb']+=0x1,_0x1da12a[_0x1bd336('0x1de3')][_0x5cc528[_0x1bd336('0x1802')]][_0x1bd336('0x1401')][_0x5cc528[_0x1bd336('0x2342')]]=_0x5cc528[_0x1bd336('0x1802')]);}function _0x1066f4(_0x5475ed){const _0x387cf1=_0x1b32e1;console['log'](_0x387cf1('0x37f'),_0x5475ed),_0x1da12a['queues'][_0x5475ed[_0x387cf1('0x1802')]]&&_0x1da12a[_0x387cf1('0x1de3')][_0x5475ed[_0x387cf1('0x1802')]][_0x387cf1('0x1e84')]>0x0&&(_0x1da12a[_0x387cf1('0x1de3')][_0x5475ed[_0x387cf1('0x1802')]][_0x387cf1('0x1e84')]-=0x1,delete _0x1da12a[_0x387cf1('0x1de3')][_0x5475ed[_0x387cf1('0x1802')]]['agents'][_0x5475ed[_0x387cf1('0x2342')]]);}let _0x21305f=!![],_0x148a33=0x1;_0x315873[_0x1b32e1('0x2087')](_0x1b32e1('0x842'),function(_0x2b04e8,_0x53aa48){const _0x1b89f4=_0x1b32e1;_0x21305f?_0x3a74f3(function(){_0x21305f=![];}):(!_0x53aa48&&(_0x148a33=_0x1da12a[_0x1b89f4('0x1f2a')][_0x1b89f4('0x1c2')]),_0x2b04e8!==_0x53aa48&&(_0x1da12a[_0x1b89f4('0x1f2a')][_0x1b89f4('0x1c2')]=0x1),!_0x2b04e8&&(_0x1da12a['query'][_0x1b89f4('0x1c2')]=_0x148a33),_0x1da12a[_0x1b89f4('0x373')]());});function _0x3e3cd2(_0x3dd62e){const _0x143ac=_0x1b32e1;_0x1da12a[_0x143ac('0x27d2')]=_0x3dd62e[_0x143ac('0x27d2')],_0x1da12a['queues']=_0x3dd62e?_0x36f548()[_0x143ac('0x2130')](_0x3dd62e[_0x143ac('0x19b2')]?_0x3dd62e[_0x143ac('0x19b2')]:[],'id'):{};if(_0x3dd62e[_0x143ac('0x19b2')]){_0x1da12a['order']=[];for(let _0x33d884=0x0;_0x33d884<_0x3dd62e['rows'][_0x143ac('0x1e22')];_0x33d884++){_0x1da12a[_0x143ac('0x59')][_0x143ac('0x105d')](_0x3dd62e[_0x143ac('0x19b2')][_0x33d884]['id']);}}_0x558f94();}function _0x30f97e(){const _0x4b9193=_0x1b32e1;_0x1da12a[_0x4b9193('0x1f2a')][_0x4b9193('0x1393')]=(_0x1da12a['query'][_0x4b9193('0x1c2')]-0x1)*_0x1da12a[_0x4b9193('0x1f2a')]['limit'],_0x1019ec['hasRole'](_0x4b9193('0xf45'))?_0x1da12a[_0x4b9193('0x13f')]=_0x26c084['chatQueue'][_0x4b9193('0xbaa')](_0x1da12a[_0x4b9193('0x1f2a')],_0x3e3cd2)[_0x4b9193('0x1549')]:(_0x1da12a['query']['id']=_0x1da12a[_0x4b9193('0x25bc')]['id'],_0x1da12a[_0x4b9193('0x1f2a')][_0x4b9193('0xe6')]=_0x4b9193('0x22eb'),_0x1da12a[_0x4b9193('0x13f')]=_0x26c084['userProfile'][_0x4b9193('0x228e')](_0x1da12a[_0x4b9193('0x1f2a')],_0x3e3cd2)[_0x4b9193('0x1549')]);}function _0x14e2c3(_0xb1635a,_0x2f6dc0){const _0x18a7cd=_0x1b32e1;_0x11c3be[_0x18a7cd('0xb9')]({'controller':_0x18a7cd('0x2196'),'controllerAs':'vm','templateUrl':_0x160d48,'parent':angular[_0x18a7cd('0x1e73')](_0x1d720c[_0x18a7cd('0x1d2')]),'targetEvent':_0xb1635a,'clickOutsideToClose':!![],'locals':{'chatQueue':_0x2f6dc0,'chatQueues':_0x36f548()['values'](_0x1da12a[_0x18a7cd('0x1de3')]),'license':null,'setting':null,'crudPermissions':_0x1da12a[_0x18a7cd('0xb25')]}});}function _0xb290fa(_0x1519c0,_0x46b601){const _0x3d5d89=_0x1b32e1;_0x11c3be['show']({'controller':_0x3d5d89('0xec8'),'controllerAs':'vm','templateUrl':_0x49ef99,'parent':angular[_0x3d5d89('0x1e73')](_0x1d720c[_0x3d5d89('0x1d2')]),'targetEvent':_0x1519c0,'clickOutsideToClose':!![],'locals':{'chatQueue':_0x46b601,'chatQueues':_0x1da12a[_0x3d5d89('0x1de3')]?_0x1da12a[_0x3d5d89('0x1de3')][_0x3d5d89('0x19b2')]:[],'realtime':![],'crudPermissions':_0x1da12a[_0x3d5d89('0xb25')]}});}function _0x4f4538(_0x469b83){const _0x1d5c8d=_0x1b32e1;return _0x26c084[_0x1d5c8d('0x1c23')][_0x1d5c8d('0x5ab')](_0x469b83)[_0x1d5c8d('0x1549')][_0x1d5c8d('0x11bf')](function(){const _0x227804=_0x1d5c8d;_0x220dd4['success']({'title':_0x227804('0x1544'),'msg':_0x469b83[_0x227804('0x1909')]?_0x469b83[_0x227804('0x1909')]+_0x227804('0xd7'):''});})[_0x1d5c8d('0x151d')](function(_0x13cc53){const _0x555bbc=_0x1d5c8d;_0x220dd4[_0x555bbc('0x255')]({'title':_0x555bbc('0xdc1'),'msg':_0x13cc53['message']});});}_0x315873[_0x1b32e1('0x12d8')](_0x1b32e1('0x4f7'),function(){const _0x67d633=_0x1b32e1;_0x4f32d6[_0x67d633('0x1b2e')](_0x67d633('0x7b7')),_0x4f32d6[_0x67d633('0x1b2e')](_0x67d633('0x6a9')),_0x4f32d6[_0x67d633('0x1b2e')]('userChatQueue:save'),_0x4f32d6['removeAllListeners'](_0x67d633('0x15bd')),_0x4f32d6[_0x67d633('0x1b2e')](_0x67d633('0x5c6')),_0x4f32d6[_0x67d633('0x1b2e')](_0x67d633('0x1929'));});}const _0x30e160=_0xcb17f9;function _0x14dceb(){const _0x4a6153=_0x21d0f5;return{'status':{'registered':_0x4a6153('0x2747'),'unregistered':_0x4a6153('0x58e'),'lagged':_0x4a6153('0x58e'),'reachable':'green-300-fg\x20icon-checkbox-marked-circle','unreachable':'red-300-fg\x20icon-close-circle','unknown':_0x4a6153('0xcc')},'state':{'unknown':_0x4a6153('0x95b'),'not_inuse':_0x4a6153('0x8b2'),'inuse':_0x4a6153('0x52b'),'busy':_0x4a6153('0x16a5'),'invalid':_0x4a6153('0x95b'),'unavailable':'grey-fg\x20icon-phone-hangup','ringing':_0x4a6153('0x1df'),'ringinuse':'blue-300-fg\x20icon-phone-incoming','onhold':_0x4a6153('0x142a')},'channelStatus':{'ring':_0x4a6153('0x1df'),'up':_0x4a6153('0x198'),'hangup':_0x4a6153('0x393')},'channelStatusOut':{'ring':'blue-300-fg\x20icon-phone-outgoing','up':_0x4a6153('0x198'),'hangup':'red-300-fg\x20icon-phone-hangup'}};}const _0x111d29=_0x14dceb;_0x50bf55[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0xcbc'),_0x21d0f5('0x1d56')];function _0x50bf55(_0x5cfb7a,_0x2af130,_0x37cd6e){const _0x562a84=_0x21d0f5,_0x6ad0bd=this;_0x37cd6e[_0x562a84('0x143e')](),_0x37cd6e[_0x562a84('0x196c')](),_0x6ad0bd[_0x562a84('0x1179')]=0x0;switch(_0x2af130[_0x562a84('0x191')][_0x562a84('0x1909')]){case'app.chat.realtime.agents':_0x6ad0bd[_0x562a84('0x1179')]=0x0;break;case'app.chat.realtime.queues':_0x6ad0bd['selectedTab']=0x1;break;default:_0x6ad0bd[_0x562a84('0x1179')]=0x0,_0x2af130['go']('app.chat.realtime.agents');}_0x5cfb7a[_0x562a84('0x2087')](_0x562a84('0x14f1'),function(_0x3e9131,_0x2ca69e){const _0x4461bc=_0x562a84;if(_0x3e9131!==_0x2ca69e)switch(_0x3e9131){case 0x0:_0x2af130['go']('app.chat.realtime.agents');break;case 0x1:_0x2af130['go']('app.chat.realtime.queues');break;default:_0x2af130['go'](_0x4461bc('0x286b'));}});}const _0x1af63c=_0x50bf55;_0x57c5ac[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x13d6')];function _0x57c5ac(_0x2bd9a8){const _0x1ecfa1=_0x21d0f5;_0x2bd9a8[_0x1ecfa1('0x2124')](_0x1ecfa1('0x1bff'),{'url':_0x1ecfa1('0x25aa'),'views':{'content@app':{'templateUrl':_0x547740,'controller':_0x1ecfa1('0xc93')}},'resolve':{'userProfile':[_0x1ecfa1('0x218e'),_0x1ecfa1('0x1150'),function(_0x5a29d7,_0x2b6ad4){const _0x518a69=_0x1ecfa1;return _0x2b6ad4[_0x518a69('0x4ee')]('admin')?null:_0x5a29d7[_0x518a69('0xa28')](_0x518a69('0x428'),{'fields':_0x518a69('0xd30'),'id':_0x2b6ad4[_0x518a69('0x2428')]()[_0x518a69('0x781')]});}],'userProfileSection':['apiResolver',_0x1ecfa1('0x1150'),function(_0x38d7e5,_0x3a4f1b){const _0x3cfb5e=_0x1ecfa1;return _0x3a4f1b[_0x3cfb5e('0x4ee')](_0x3cfb5e('0xf45'))?null:_0x38d7e5['resolve'](_0x3cfb5e('0x2762'),{'fields':_0x3cfb5e('0x36d'),'userProfileId':_0x3a4f1b['getCurrentUser']()[_0x3cfb5e('0x781')],'sectionId':0x1fe});}]},'authenticate':!![],'permissionId':0x1fe})[_0x1ecfa1('0x2124')](_0x1ecfa1('0x286b'),{'url':_0x1ecfa1('0x2260'),'controller':_0x1ecfa1('0x640'),'templateUrl':_0x5bd2e4,'resolve':{'pauses':[_0x1ecfa1('0x218e'),function(_0x1311b8){const _0x294821=_0x1ecfa1;return _0x1311b8[_0x294821('0xa28')](_0x294821('0x2178'),{'nolimit':!![]});}],'agents':[_0x1ecfa1('0x218e'),_0x1ecfa1('0x1150'),function(_0x1c7915,_0x5919b6){const _0x3a6a6c=_0x1ecfa1;return _0x5919b6[_0x3a6a6c('0x4ee')](_0x3a6a6c('0xf45'))?_0x1c7915['resolve']('user@get',{'fields':_0x3a6a6c('0xd80'),'role':_0x3a6a6c('0x18c4'),'sort':_0x3a6a6c('0x27af'),'nolimit':!![]}):_0x1c7915[_0x3a6a6c('0xa28')](_0x3a6a6c('0xb0d'),{'id':_0x5919b6['getCurrentUser']()[_0x3a6a6c('0x781')],'section':_0x3a6a6c('0x4b1'),'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':_0x3a6a6c('0x18c4'),'sort':'fullname','nolimit':!![]});}],'userProfile':[_0x1ecfa1('0x218e'),'Auth',function(_0x3004fe,_0x3d3457){const _0x2bc77b=_0x1ecfa1;return _0x3d3457['hasRole'](_0x2bc77b('0xf45'))?null:_0x3004fe[_0x2bc77b('0xa28')](_0x2bc77b('0x428'),{'fields':'id,name,crudPermissions','id':_0x3d3457[_0x2bc77b('0x2428')]()[_0x2bc77b('0x781')]});}],'userProfileSection':[_0x1ecfa1('0x218e'),'Auth',function(_0xa8e787,_0x17fbac){const _0x32c9a8=_0x1ecfa1;return _0x17fbac[_0x32c9a8('0x4ee')](_0x32c9a8('0xf45'))?null:_0xa8e787[_0x32c9a8('0xa28')](_0x32c9a8('0x2762'),{'fields':_0x32c9a8('0x36d'),'userProfileId':_0x17fbac['getCurrentUser']()['userProfileId'],'sectionId':0xca});}],'rpcAgents':[_0x1ecfa1('0x218e'),function(_0x2bf68f){const _0x5c106d=_0x1ecfa1;return _0x2bf68f[_0x5c106d('0xa28')](_0x5c106d('0x1bbe'));}]},'authenticate':!![],'permissionId':0x1fe})[_0x1ecfa1('0x2124')](_0x1ecfa1('0x4a2'),{'url':_0x1ecfa1('0xb98'),'controller':'QueuesChatRealtimeController\x20as\x20vm','templateUrl':_0x3f3aa6,'resolve':{'queues':[_0x1ecfa1('0x218e'),'Auth',function(_0x2c3c41,_0x5621af){const _0x1453d3=_0x1ecfa1;return _0x5621af[_0x1453d3('0x4ee')](_0x1453d3('0xf45'))?_0x2c3c41[_0x1453d3('0xa28')]('chatQueue@get',{'type':_0x1453d3('0x18a2'),'sort':_0x1453d3('0x1c74'),'limit':0xa,'offset':0x0}):_0x2c3c41[_0x1453d3('0xa28')](_0x1453d3('0xb0d'),{'id':_0x5621af['getCurrentUser']()[_0x1453d3('0x781')],'section':'ChatQueues','channel':'chat','type':_0x1453d3('0x18a2'),'sort':'-updatedAt','limit':0xa,'page':0x1});}],'userProfile':['apiResolver',_0x1ecfa1('0x1150'),function(_0x29e10b,_0x3c0f90){const _0x455b82=_0x1ecfa1;return _0x3c0f90['hasRole']('admin')?null:_0x29e10b[_0x455b82('0xa28')](_0x455b82('0x428'),{'fields':_0x455b82('0xd30'),'id':_0x3c0f90['getCurrentUser']()[_0x455b82('0x781')]});}],'userProfileSection':[_0x1ecfa1('0x218e'),'Auth',function(_0x7309cf,_0x19500d){const _0x354cb6=_0x1ecfa1;return _0x19500d[_0x354cb6('0x4ee')](_0x354cb6('0xf45'))?null:_0x7309cf[_0x354cb6('0xa28')](_0x354cb6('0x2762'),{'fields':_0x354cb6('0x36d'),'userProfileId':_0x19500d[_0x354cb6('0x2428')]()[_0x354cb6('0x781')],'sectionId':0x1f5});}],'rpcQueues':[_0x1ecfa1('0x218e'),function(_0x3088c3){const _0x1f5363=_0x1ecfa1;return _0x3088c3[_0x1f5363('0xa28')]('rpc@getChatQueues');}]},'authenticate':!![],'permissionId':0x1fe});}angular['module'](_0x21d0f5('0x1bff'),[])['config'](_0x57c5ac)['controller'](_0x21d0f5('0x706'),_0x10c036)[_0x21d0f5('0x23eb')](_0x21d0f5('0x2419'),_0x30e160)[_0x21d0f5('0x2729')](_0x21d0f5('0x927'),_0x111d29)[_0x21d0f5('0x23eb')]('ChatRealtimeController',_0x1af63c);const _0x5cb6d7=_0x351988['p']+_0x21d0f5('0x1e89');_0x4b20f0['$inject']=[_0x21d0f5('0x1b80'),'$window',_0x21d0f5('0xcbc'),_0x21d0f5('0x18fe'),_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),'$timeout',_0x21d0f5('0xb6b'),_0x21d0f5('0x18cc'),'userProfile',_0x21d0f5('0x1d63'),_0x21d0f5('0x12a5'),_0x21d0f5('0xda9'),'toasty',_0x21d0f5('0x1150'),_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1')];function _0x4b20f0(_0x3279c2,_0x15165a,_0x45c901,_0x42bde3,_0x4c379f,_0x2be9dd,_0x3b5ce2,_0x2bd853,_0x34c71d,_0x2da8c0,_0x4241ab,_0x20867c,_0x22313d,_0x14f784,_0x30aa83,_0x3d2142,_0x476413){const _0x5f018d=_0x21d0f5,_0x59213c=this;_0x59213c['license']=_0x3d2142,_0x59213c[_0x5f018d('0x23e1')]=_0x476413,_0x59213c[_0x5f018d('0x32a')]=_0x30aa83[_0x5f018d('0x2428')](),_0x59213c[_0x5f018d('0x18cc')]=_0x34c71d||{'count':0x0,'rows':[]},_0x59213c[_0x5f018d('0x25bc')]=_0x2da8c0,_0x59213c['userProfileSection']=_0x4241ab&&_0x4241ab['count']==0x1?_0x4241ab['rows'][0x0]:null,_0x59213c[_0x5f018d('0xb25')]=_0x30aa83[_0x5f018d('0x1530')](_0x59213c[_0x5f018d('0x1d63')]?_0x59213c['userProfileSection'][_0x5f018d('0xb25')]:null),_0x59213c[_0x5f018d('0x13e8')]=_0x5f018d('0x18cc'),_0x59213c[_0x5f018d('0x724')]='',_0x59213c[_0x5f018d('0xe3c')]=null,_0x59213c[_0x5f018d('0xf14')]=[],_0x59213c[_0x5f018d('0x1f2a')]={'fields':_0x5f018d('0xe24'),'sort':_0x5f018d('0x1c74'),'channel':'chat','limit':0xa,'page':0x1},_0x59213c[_0x5f018d('0x1612')]=_0x36f548()[_0x5f018d('0x2130')]([{'option':_0x5f018d('0x1ace'),'value':'\x27beepall\x27'},{'option':_0x5f018d('0x2510'),'value':_0x5f018d('0x166d')}],function(_0x533650){const _0x18abe3=_0x5f018d;return _0x36f548()[_0x18abe3('0x814')](_0x533650[_0x18abe3('0x10cc')],new RegExp('\x27','g'),'');}),_0x59213c[_0x5f018d('0x757')]=_0x215bc4,_0x59213c['teamadddialog']=_0x4971fe,_0x59213c[_0x5f018d('0x2363')]=_0x25bc9f,_0x59213c[_0x5f018d('0x549')]=_0x3a8c52,_0x59213c['gotorealtimegoto']=_0xf0a90,_0x59213c['success']=_0x58d3f9,_0x59213c[_0x5f018d('0xa1f')]=_0x59fe87,_0x59213c[_0x5f018d('0x1f3')]=_0x388169,_0x59213c['deleteChatQueue']=_0x40fb8e,_0x59213c[_0x5f018d('0x527')]=_0x3071e5,_0x59213c['deleteSelectedChatQueues']=_0x2c3fbf,_0x59213c['deselectChatQueues']=_0x3695d6,_0x59213c['selectAllChatQueues']=_0x5c62f5;function _0x215bc4(_0x5e0788){_0x45c901['go']('app.chat.chatQueues.edit',{'id':_0x5e0788['id'],'chatQueue':_0x5e0788,'crudPermissions':_0x59213c['crudPermissions']});}function _0x4971fe(_0x5122bd,_0x588bde){const _0x527993=_0x5f018d;_0x4c379f[_0x527993('0xb9')]({'controller':_0x527993('0x1090'),'controllerAs':'vm','templateUrl':_0x5cb6d7,'parent':angular[_0x527993('0x1e73')](_0x2be9dd[_0x527993('0x1d2')]),'targetEvent':_0x588bde,'clickOutsideToClose':!![],'locals':{'chatQueue':_0x5122bd,'chatQueues':_0x59213c[_0x527993('0x18cc')]?_0x59213c[_0x527993('0x18cc')][_0x527993('0x19b2')]:[],'crudPermissions':_0x59213c[_0x527993('0xb25')]}});}function _0x25bc9f(_0x2fde0e,_0x312c7c){const _0x42d418=_0x5f018d;_0x4c379f[_0x42d418('0xb9')]({'controller':_0x42d418('0xec8'),'controllerAs':'vm','templateUrl':_0x49ef99,'parent':angular['element'](_0x2be9dd[_0x42d418('0x1d2')]),'targetEvent':_0x312c7c,'clickOutsideToClose':!![],'locals':{'chatQueue':_0x2fde0e,'chatQueues':_0x59213c['chatQueues']?_0x59213c[_0x42d418('0x18cc')][_0x42d418('0x19b2')]:[],'crudPermissions':_0x59213c[_0x42d418('0xb25')],'realtime':![]}});}function _0x3a8c52(_0x2a99ae,_0x5cc41b){const _0x3f3be6=_0x5f018d,_0x4abc72=_0x4c379f['confirm']()[_0x3f3be6('0x134b')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x36f548()[_0x3f3be6('0x13cf')](_0x3f3be6('0x1c23'))+'?')['htmlContent'](_0x3f3be6('0x2061')+(_0x2a99ae[_0x3f3be6('0x1909')]||_0x3f3be6('0x1c23'))+_0x3f3be6('0x1c78')+_0x3f3be6('0x1a'))[_0x3f3be6('0xb2e')](_0x3f3be6('0x2499'))[_0x3f3be6('0x1e25')](_0x5cc41b)['ok']('OK')[_0x3f3be6('0x26c9')](_0x3f3be6('0x772'));_0x4c379f[_0x3f3be6('0xb9')](_0x4abc72)[_0x3f3be6('0x11bf')](function(){_0x40fb8e(_0x2a99ae);},function(){const _0x557cd2=_0x3f3be6;console['log'](_0x557cd2('0x772'));});}function _0xf0a90(){const _0x305016=_0x5f018d;if(_0x30aa83[_0x305016('0x4ee')](_0x305016('0xf45')))_0x45c901['go'](_0x305016('0x4a2'),{});else return _0x20867c[_0x305016('0x1d63')][_0x305016('0xbaa')]({'userProfileId':_0x30aa83[_0x305016('0x2428')]()[_0x305016('0x781')],'sectionId':0x1fe})[_0x305016('0x1549')][_0x305016('0x11bf')](function(_0x365965){const _0x55cf97=_0x305016,_0x371c92=_0x365965&&_0x365965[_0x55cf97('0x19b2')]?_0x365965[_0x55cf97('0x19b2')][0x0]:null;_0x371c92&&_0x371c92[_0x55cf97('0x1f0a')]?_0x45c901['go'](_0x55cf97('0x4a2'),{}):_0x14f784[_0x55cf97('0x870')]({'title':_0x2bd853['instant'](_0x55cf97('0xbff')),'msg':_0x2bd853[_0x55cf97('0x10c2')](_0x55cf97('0x10d1'))});})[_0x305016('0x151d')](function(_0xb2eb3f){const _0x434a5e=_0x305016;_0x14f784[_0x434a5e('0x255')]({'title':_0xb2eb3f[_0x434a5e('0xff9')]?_0x434a5e('0x574')+_0xb2eb3f[_0x434a5e('0xff9')]+_0x434a5e('0xb0b')+_0xb2eb3f[_0x434a5e('0x212f')]:_0x434a5e('0x1011'),'msg':_0xb2eb3f['status']?JSON[_0x434a5e('0x3e')](_0xb2eb3f['data']):_0xb2eb3f['toString']()});});}let _0x562e9e=!![],_0x32da46=0x1;_0x3279c2[_0x5f018d('0x2087')](_0x5f018d('0x842'),function(_0x50e8f4,_0xcfc4da){const _0x3a76c2=_0x5f018d;_0x562e9e?_0x3b5ce2(function(){_0x562e9e=![];}):(!_0xcfc4da&&(_0x32da46=_0x59213c[_0x3a76c2('0x1f2a')][_0x3a76c2('0x1c2')]),_0x50e8f4!==_0xcfc4da&&(_0x59213c[_0x3a76c2('0x1f2a')][_0x3a76c2('0x1c2')]=0x1),!_0x50e8f4&&(_0x59213c[_0x3a76c2('0x1f2a')][_0x3a76c2('0x1c2')]=_0x32da46),_0x59213c['getChatQueues']());});function _0x58d3f9(_0x202b7e){const _0x477259=_0x5f018d;_0x59213c[_0x477259('0x18cc')]=_0x202b7e||{'count':0x0,'rows':[]};}function _0x59fe87(){const _0x4dd734=_0x5f018d;_0x59213c['query'][_0x4dd734('0x1393')]=(_0x59213c[_0x4dd734('0x1f2a')][_0x4dd734('0x1c2')]-0x1)*_0x59213c[_0x4dd734('0x1f2a')]['limit'],_0x30aa83['hasRole'](_0x4dd734('0xf45'))?_0x59213c[_0x4dd734('0x13f')]=_0x20867c[_0x4dd734('0x1c23')][_0x4dd734('0xbaa')](_0x59213c[_0x4dd734('0x1f2a')],_0x58d3f9)[_0x4dd734('0x1549')]:(_0x59213c[_0x4dd734('0x1f2a')]['id']=_0x59213c[_0x4dd734('0x25bc')]['id'],_0x59213c[_0x4dd734('0x1f2a')][_0x4dd734('0xe6')]=_0x4dd734('0x22eb'),_0x59213c[_0x4dd734('0x13f')]=_0x20867c[_0x4dd734('0x25bc')][_0x4dd734('0x228e')](_0x59213c['query'],_0x58d3f9)[_0x4dd734('0x1549')]);}function _0x388169(_0x1a88fa,_0xff592d){const _0x374795=_0x5f018d;_0x4c379f['show']({'controller':_0x374795('0x2196'),'controllerAs':'vm','templateUrl':_0x160d48,'parent':angular[_0x374795('0x1e73')](_0x2be9dd[_0x374795('0x1d2')]),'targetEvent':_0x1a88fa,'clickOutsideToClose':!![],'locals':{'chatQueue':_0xff592d,'chatQueues':_0x59213c[_0x374795('0x18cc')]['rows'],'license':_0x59213c[_0x374795('0x17ff')],'setting':_0x59213c[_0x374795('0x23e1')],'crudPermissions':_0x59213c[_0x374795('0xb25')]}});}function _0x40fb8e(_0x2e4dda){const _0xbe6492=_0x5f018d;_0x20867c[_0xbe6492('0x1c23')][_0xbe6492('0x2088')]({'id':_0x2e4dda['id']})[_0xbe6492('0x1549')][_0xbe6492('0x11bf')](function(){const _0x2fe006=_0xbe6492;_0x36f548()[_0x2fe006('0x14a5')](_0x59213c[_0x2fe006('0x18cc')]['rows'],{'id':_0x2e4dda['id']}),_0x59213c[_0x2fe006('0x18cc')][_0x2fe006('0x27d2')]-=0x1,!_0x59213c[_0x2fe006('0x18cc')][_0x2fe006('0x19b2')]['length']&&_0x59213c[_0x2fe006('0xa1f')](),_0x14f784[_0x2fe006('0x2693')]({'title':_0x36f548()['startCase'](_0x2fe006('0x237f'))+_0x2fe006('0x2113'),'msg':_0x2e4dda['name']?_0x2e4dda[_0x2fe006('0x1909')]+_0x2fe006('0x433'):''});})[_0xbe6492('0x151d')](function(_0x29ce1b){const _0x42f20c=_0xbe6492;if(_0x29ce1b['data']&&_0x29ce1b[_0x42f20c('0x4e8')][_0x42f20c('0x120f')]&&_0x29ce1b[_0x42f20c('0x4e8')][_0x42f20c('0x120f')][_0x42f20c('0x1e22')]){_0x59213c[_0x42f20c('0x120f')]=_0x29ce1b[_0x42f20c('0x4e8')]['errors']||[{'message':_0x29ce1b[_0x42f20c('0xaab')](),'type':_0x42f20c('0x6d7')}];for(let _0x258d6a=0x0;_0x258d6a<_0x29ce1b[_0x42f20c('0x4e8')][_0x42f20c('0x120f')][_0x42f20c('0x1e22')];_0x258d6a++){_0x14f784[_0x42f20c('0x255')]({'title':_0x29ce1b[_0x42f20c('0x4e8')][_0x42f20c('0x120f')][_0x258d6a]['type'],'msg':_0x29ce1b['data'][_0x42f20c('0x120f')][_0x258d6a]['message']});}}else _0x14f784[_0x42f20c('0x255')]({'title':_0x29ce1b['status']?_0x42f20c('0x574')+_0x29ce1b[_0x42f20c('0xff9')]+_0x42f20c('0xb0b')+_0x29ce1b[_0x42f20c('0x212f')]:_0x42f20c('0x6d7'),'msg':_0x29ce1b[_0x42f20c('0x4e8')]?JSON[_0x42f20c('0x3e')](_0x29ce1b[_0x42f20c('0x4e8')][_0x42f20c('0x1b86')]):_0x29ce1b['message']||_0x29ce1b[_0x42f20c('0xaab')]()});});}function _0x3071e5(){const _0x19e0b9=_0x5f018d,_0x96344d=angular['copy'](_0x59213c[_0x19e0b9('0xf14')]);return _0x59213c[_0x19e0b9('0xf14')]=[],_0x96344d;}function _0x2c3fbf(_0x4145db){const _0x3200e4=_0x5f018d,_0x257abe=_0x4c379f[_0x3200e4('0x132b')]()[_0x3200e4('0x134b')](_0x3200e4('0x21c6'))[_0x3200e4('0x1d03')](''+_0x59213c['selectedChatQueues'][_0x3200e4('0x1e22')]+_0x3200e4('0xac6')+_0x3200e4('0x1a'))[_0x3200e4('0xb2e')](_0x3200e4('0xa69'))['targetEvent'](_0x4145db)['ok']('OK')[_0x3200e4('0x26c9')](_0x3200e4('0x772'));_0x4c379f[_0x3200e4('0xb9')](_0x257abe)[_0x3200e4('0x11bf')](function(){const _0x70453c=_0x3200e4;_0x59213c[_0x70453c('0xf14')][_0x70453c('0x1f88')](function(_0x255802){_0x40fb8e(_0x255802);}),_0x59213c[_0x70453c('0xf14')]=[];});}function _0x3695d6(){const _0x21fd34=_0x5f018d;_0x59213c[_0x21fd34('0xf14')]=[];}function _0x5c62f5(){const _0x54b22d=_0x5f018d;_0x59213c['selectedChatQueues']=_0x59213c[_0x54b22d('0x18cc')][_0x54b22d('0x19b2')];}}const _0x1b7c18=_0x4b20f0;_0x3bb5d8[_0x21d0f5('0x1e9a')]=['$scope',_0x21d0f5('0xcbc'),_0x21d0f5('0x16b9'),'$mdDialog','$q',_0x21d0f5('0xb6b'),_0x21d0f5('0x142d'),_0x21d0f5('0x18cc'),_0x21d0f5('0x1c23'),'api',_0x21d0f5('0x1150'),_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1'),_0x21d0f5('0xb25')];function _0x3bb5d8(_0x2b697a,_0x57c53a,_0x56c30f,_0x56b504,_0x53dcf7,_0xf024b,_0x3b6666,_0x14669b,_0x4aeee4,_0x1ccd63,_0x56aa43,_0x1faf1a,_0x2a6ff3,_0x39a6dc){const _0x3e23c1=_0x21d0f5,_0x1ccc33=this;_0x1ccc33['currentUser']=_0x56aa43[_0x3e23c1('0x2428')](),_0x1ccc33[_0x3e23c1('0x120f')]=[],_0x1ccc33[_0x3e23c1('0x23e1')]=_0x2a6ff3,_0x1ccc33[_0x3e23c1('0x17ff')]=_0x1faf1a,_0x1ccc33[_0x3e23c1('0xb25')]=_0x39a6dc,_0x1ccc33[_0x3e23c1('0x2c9')]={},_0x1ccc33[_0x3e23c1('0x2834')]=_0x1ccc33['setting']&&_0x1ccc33[_0x3e23c1('0x23e1')][_0x3e23c1('0x1d4')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1ccc33[_0x3e23c1('0x134b')]=_0x3e23c1('0x359'),_0x1ccc33[_0x3e23c1('0x1c23')]=angular[_0x3e23c1('0x6fb')](_0x4aeee4),_0x1ccc33[_0x3e23c1('0x18cc')]=_0x14669b,_0x1ccc33[_0x3e23c1('0xd1e')]=![];!_0x1ccc33['chatQueue']&&(_0x1ccc33[_0x3e23c1('0x1c23')]={'strategy':_0x3e23c1('0x1b76'),'timeout':0xa},_0x1ccc33[_0x3e23c1('0x134b')]='CHAT.NEW_CHATQUEUE',_0x1ccc33['newChatQueue']=!![]);_0x1ccc33['addNewChatQueue']=_0x117890,_0x1ccc33[_0x3e23c1('0x262f')]=_0x3608e9,_0x1ccc33[_0x3e23c1('0x27c')]=_0x5b7fd1,_0x1ccc33[_0x3e23c1('0x1bd1')]=_0x59ec1c,_0x1ccc33[_0x3e23c1('0xc4e')]=_0xa9ab5d;function _0x117890(){const _0x2a29ca=_0x3e23c1;_0x1ccc33[_0x2a29ca('0x120f')]=[],_0x1ccd63[_0x2a29ca('0x1c23')][_0x2a29ca('0x259')](_0x1ccc33['chatQueue'])[_0x2a29ca('0x1549')]['then'](function(_0x48e5e1){const _0x56c422=_0x2a29ca;_0x1ccc33[_0x56c422('0x18cc')][_0x56c422('0x880')](_0x48e5e1[_0x56c422('0x2866')]()),_0x3b6666[_0x56c422('0x2693')]({'title':_0x56c422('0xc44'),'msg':_0x1ccc33[_0x56c422('0x1c23')]['name']?_0x1ccc33[_0x56c422('0x1c23')][_0x56c422('0x1909')]+_0x56c422('0x7fb'):''}),_0xa9ab5d(_0x48e5e1);})[_0x2a29ca('0x151d')](function(_0x2eb555){const _0x4fbfef=_0x2a29ca;if(_0x2eb555[_0x4fbfef('0x4e8')]&&_0x2eb555[_0x4fbfef('0x4e8')]['errors']&&_0x2eb555[_0x4fbfef('0x4e8')][_0x4fbfef('0x120f')]['length']){_0x1ccc33[_0x4fbfef('0x120f')]=_0x2eb555['data']['errors']||[{'message':_0x2eb555[_0x4fbfef('0xaab')](),'type':_0x4fbfef('0x158e')}];for(let _0x21f5b5=0x0;_0x21f5b5<_0x2eb555[_0x4fbfef('0x4e8')][_0x4fbfef('0x120f')][_0x4fbfef('0x1e22')];_0x21f5b5+=0x1){_0x3b6666[_0x4fbfef('0x255')]({'title':_0x2eb555['data']['errors'][_0x21f5b5][_0x4fbfef('0x19fd')],'msg':_0x2eb555[_0x4fbfef('0x4e8')]['errors'][_0x21f5b5][_0x4fbfef('0x1b86')]});}}else _0x3b6666[_0x4fbfef('0x255')]({'title':_0x2eb555[_0x4fbfef('0xff9')]?_0x4fbfef('0x574')+_0x2eb555[_0x4fbfef('0xff9')]+'\x20-\x20'+_0x2eb555[_0x4fbfef('0x212f')]:_0x4fbfef('0x158e'),'msg':_0x2eb555['data']?JSON[_0x4fbfef('0x3e')](_0x2eb555[_0x4fbfef('0x4e8')][_0x4fbfef('0x1b86')]):_0x2eb555[_0x4fbfef('0xaab')]()});});}function _0x3608e9(){const _0x4a9e01=_0x3e23c1;_0x1ccc33['errors']=[],_0x1ccd63[_0x4a9e01('0x1c23')][_0x4a9e01('0x5ab')]({'id':_0x1ccc33[_0x4a9e01('0x1c23')]['id']},_0x1ccc33[_0x4a9e01('0x1c23')])[_0x4a9e01('0x1549')][_0x4a9e01('0x11bf')](function(_0x187ba3){const _0x1c2afd=_0x4a9e01,_0x4a34f8=_0x36f548()['find'](_0x1ccc33['chatQueues'],{'id':_0x187ba3['id']});_0x4a34f8&&_0x36f548()[_0x1c2afd('0x47b')](_0x4a34f8,_0x36f548()['pick'](_0x187ba3['toJSON'](),_0x36f548()[_0x1c2afd('0xe22')](_0x4a34f8))),_0x3b6666['success']({'title':'ChatQueue\x20properly\x20saved!','msg':_0x1ccc33[_0x1c2afd('0x1c23')]['name']?_0x1ccc33[_0x1c2afd('0x1c23')][_0x1c2afd('0x1909')]+'\x20has\x20been\x20saved!':''}),_0xa9ab5d(_0x187ba3);})[_0x4a9e01('0x151d')](function(_0x27f836){const _0x171a59=_0x4a9e01;if(_0x27f836[_0x171a59('0x4e8')]&&_0x27f836['data']['errors']&&_0x27f836[_0x171a59('0x4e8')][_0x171a59('0x120f')][_0x171a59('0x1e22')]){_0x1ccc33[_0x171a59('0x120f')]=_0x27f836['data'][_0x171a59('0x120f')]||[{'message':_0x27f836[_0x171a59('0xaab')](),'type':'api.chatQueue.update'}];for(let _0xc2f26d=0x0;_0xc2f26d<_0x27f836['data']['errors']['length'];_0xc2f26d++){_0x3b6666[_0x171a59('0x255')]({'title':_0x27f836['data']['errors'][_0xc2f26d][_0x171a59('0x19fd')],'msg':_0x27f836[_0x171a59('0x4e8')][_0x171a59('0x120f')][_0xc2f26d][_0x171a59('0x1b86')]});}}else _0x3b6666['error']({'title':_0x27f836[_0x171a59('0xff9')]?'API:'+_0x27f836['status']+_0x171a59('0xb0b')+_0x27f836[_0x171a59('0x212f')]:_0x171a59('0x6a5'),'msg':_0x27f836[_0x171a59('0x4e8')]?JSON[_0x171a59('0x3e')](_0x27f836[_0x171a59('0x4e8')]['message']):_0x27f836[_0x171a59('0xaab')]()});});}function _0x5b7fd1(_0x25e873){const _0x4df633=_0x3e23c1;_0x1ccc33['errors']=[];const _0x56f601=_0x56b504[_0x4df633('0x132b')]()[_0x4df633('0x134b')]('Are\x20you\x20sure?')[_0x4df633('0x252a')](_0x4df633('0x2128'))[_0x4df633('0xb2e')]('Delete\x20ChatQueue')['ok'](_0x4df633('0x1167'))[_0x4df633('0x26c9')]('Cancel')['targetEvent'](_0x25e873);_0x56b504[_0x4df633('0xb9')](_0x56f601)[_0x4df633('0x11bf')](function(){const _0x93e3f8=_0x4df633;_0x1ccd63['chatQueue'][_0x93e3f8('0x2088')]({'id':_0x1ccc33[_0x93e3f8('0x1c23')]['id']})[_0x93e3f8('0x1549')]['then'](function(){const _0xb55c55=_0x93e3f8;_0x36f548()[_0xb55c55('0x14a5')](_0x1ccc33[_0xb55c55('0x18cc')],{'id':_0x1ccc33[_0xb55c55('0x1c23')]['id']}),_0x3b6666['success']({'title':'ChatQueue\x20properly\x20deleted!','msg':(_0x1ccc33[_0xb55c55('0x1c23')]['name']||_0xb55c55('0x1c23'))+_0xb55c55('0x433')}),_0xa9ab5d(_0x1ccc33[_0xb55c55('0x1c23')]);})[_0x93e3f8('0x151d')](function(_0x3603e9){const _0x642748=_0x93e3f8;if(_0x3603e9[_0x642748('0x4e8')]&&_0x3603e9[_0x642748('0x4e8')][_0x642748('0x120f')]&&_0x3603e9[_0x642748('0x4e8')][_0x642748('0x120f')][_0x642748('0x1e22')]){_0x1ccc33[_0x642748('0x120f')]=_0x3603e9['data'][_0x642748('0x120f')]||[{'message':_0x3603e9[_0x642748('0xaab')](),'type':'api.chatQueue.delete'}];for(let _0x180f55=0x0;_0x180f55<_0x3603e9[_0x642748('0x4e8')][_0x642748('0x120f')][_0x642748('0x1e22')];_0x180f55++){_0x3b6666['error']({'title':_0x3603e9['data'][_0x642748('0x120f')][_0x180f55]['type'],'msg':_0x3603e9['data'][_0x642748('0x120f')][_0x180f55]['message']});}}else _0x3b6666[_0x642748('0x255')]({'title':_0x3603e9[_0x642748('0xff9')]?_0x642748('0x574')+_0x3603e9[_0x642748('0xff9')]+_0x642748('0xb0b')+_0x3603e9[_0x642748('0x212f')]:'api.chatQueue.delete','msg':_0x3603e9[_0x642748('0x4e8')]?JSON[_0x642748('0x3e')](_0x3603e9['data'][_0x642748('0x1b86')]):_0x3603e9[_0x642748('0x1b86')]||_0x3603e9[_0x642748('0xaab')]()});});},function(){});}function _0x59ec1c(_0x17a117){return _0x17a117===null?undefined:new Date(_0x17a117);}function _0xa9ab5d(_0x5916e6){const _0x1214c0=_0x3e23c1;_0x56b504[_0x1214c0('0x237e')](_0x5916e6);}}const _0x22f8b6=_0x3bb5d8;_0x1a0040[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0x142d'),'api',_0x21d0f5('0x1c23'),_0x21d0f5('0x18cc'),_0x21d0f5('0x25f9'),'$translate',_0x21d0f5('0x1150'),'crudPermissions'];function _0x1a0040(_0x1aedca,_0x34588a,_0x37b094,_0x362dc4,_0x4b8fb0,_0x3abe8a,_0x591f95,_0x54ccf0,_0x132a0f,_0x541487){const _0x1b3184=_0x21d0f5,_0x54e1cb=this;_0x54e1cb['currentUser']=_0x132a0f['getCurrentUser'](),_0x54e1cb[_0x1b3184('0x1c23')]=_0x4b8fb0,_0x54e1cb[_0x1b3184('0xb25')]=_0x541487,_0x54e1cb[_0x1b3184('0x25f9')]=_0x591f95,_0x54e1cb[_0x1b3184('0x22')]=[],_0x54e1cb[_0x1b3184('0x63')]=[],_0x54e1cb[_0x1b3184('0x26cc')]=[],_0x54e1cb['startingAllowedItems']=[],_0x54e1cb[_0x1b3184('0x21ed')]=[],_0x54e1cb['pendingChanges']=![],_0x54e1cb[_0x1b3184('0x277c')]=_0xed7ce2,_0x54e1cb[_0x1b3184('0x280')]=_0x193f06,_0x54e1cb[_0x1b3184('0xc4e')]=_0x1d539c,_0x54e1cb[_0x1b3184('0xec5')]={'readOnly':!_0x54e1cb['crudPermissions'][_0x1b3184('0x25db')],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':'name','line1':_0x1b3184('0x27af'),'line2':[_0x1b3184('0x1909'),_0x1b3184('0x1a04')],'line3':'','labelAll':_0x54ccf0['instant'](_0x1b3184('0x250e')),'labelSelected':_0x54ccf0[_0x1b3184('0x10c2')](_0x1b3184('0x24b4')),'transferCallback':function(){const _0x579b89=_0x1b3184,_0x4ee145=_0x36f548()[_0x579b89('0x1a1b')](_0x54e1cb[_0x579b89('0x21ed')],_0x54e1cb[_0x579b89('0x26cc')],'id');_0x54e1cb[_0x579b89('0x1eda')]=_0x36f548()[_0x579b89('0x1fc5')](_0x4ee145)?![]:!![];}};function _0xed7ce2(){const _0x5629d3=_0x1b3184;return _0x132a0f[_0x5629d3('0x4ee')](_0x5629d3('0xf45'))?_0x23923d()[_0x5629d3('0x151d')](function(_0x5d78f6){const _0x2920d4=_0x5629d3;_0x37b094[_0x2920d4('0x255')]({'title':_0x5d78f6[_0x2920d4('0xff9')]?_0x2920d4('0x574')+_0x5d78f6[_0x2920d4('0xff9')]+_0x2920d4('0xb0b')+_0x5d78f6[_0x2920d4('0x212f')]:_0x2920d4('0x912'),'msg':_0x5d78f6['status']?JSON['stringify'](_0x5d78f6[_0x2920d4('0x4e8')]):_0x5d78f6['toString']()});}):_0x7e4ec1()['then'](function(_0xe21138){const _0x3780a0=_0x5629d3;return _0x54e1cb[_0x3780a0('0xe6')]=_0xe21138,_0x23923d();})['catch'](function(_0x1cfacb){const _0x13a21f=_0x5629d3;_0x37b094[_0x13a21f('0x255')]({'title':_0x1cfacb['status']?_0x13a21f('0x574')+_0x1cfacb['status']+_0x13a21f('0xb0b')+_0x1cfacb[_0x13a21f('0x212f')]:_0x13a21f('0x912'),'msg':_0x1cfacb['status']?JSON[_0x13a21f('0x3e')](_0x1cfacb['data']):_0x1cfacb[_0x13a21f('0xaab')]()});});}function _0x7e4ec1(){return _0x34588a(function(_0x172814,_0x2c1f58){const _0x187b3f=a0_0xaf0c;_0x362dc4[_0x187b3f('0x1d63')][_0x187b3f('0xbaa')]({'userProfileId':_0x54e1cb[_0x187b3f('0x32a')][_0x187b3f('0x781')],'name':_0x187b3f('0x4b1')})['$promise'][_0x187b3f('0x11bf')](function(_0x54c2d4){const _0x567834=_0x54c2d4&&_0x54c2d4['rows']?_0x54c2d4['rows'][0x0]:null;_0x172814(_0x567834);})[_0x187b3f('0x151d')](function(_0x51b8d9){_0x2c1f58(_0x51b8d9);});});}function _0x23923d(){return _0x34588a(function(_0x3bca1f,_0x1a0b33){const _0x2e2800=a0_0xaf0c;return _0x342069()[_0x2e2800('0x11bf')](function(_0x23cf08){const _0x13e574=_0x2e2800;return _0x54e1cb[_0x13e574('0x22')]=_0x23cf08['rows']?_0x23cf08[_0x13e574('0x19b2')]:[],_0x132a0f[_0x13e574('0x4ee')](_0x13e574('0xf45'))?_0x23cf08:_0x54e1cb['section']?_0x54e1cb['section']['autoAssociation']?_0x23cf08:_0x169103():null;})[_0x2e2800('0x11bf')](function(_0x1b042e){const _0xac8ecc=_0x2e2800,_0x3d1f3b=_0x1b042e&&_0x1b042e[_0xac8ecc('0x19b2')]?_0x1b042e['rows']:[];return _0x54e1cb[_0xac8ecc('0x63')]=_0x36f548()[_0xac8ecc('0x2171')](_0x3d1f3b,function(_0x1e6caa){const _0x7817d3=_0xac8ecc;return _0x36f548()[_0x7817d3('0x1ad4')](_0x54e1cb[_0x7817d3('0x22')],{'id':_0x132a0f['hasRole'](_0x7817d3('0xf45'))||_0x54e1cb[_0x7817d3('0xe6')][_0x7817d3('0xf11')]?_0x1e6caa['id']:_0x1e6caa[_0x7817d3('0x15a5')]});}),_0x54e1cb[_0xac8ecc('0x1c6f')]=angular[_0xac8ecc('0x6fb')](_0x54e1cb['allowedItems']),_0x54e1cb[_0xac8ecc('0x22')]['forEach'](function(_0x4fbe2c){const _0x164fb4=_0xac8ecc,_0xe62742=_0x36f548()['find'](_0x54e1cb[_0x164fb4('0x63')],{'id':_0x4fbe2c['id']});_0x132a0f['hasRole'](_0x164fb4('0xf45'))?_0x4fbe2c[_0x164fb4('0xde9')]=!![]:_0x4fbe2c['isValid']=typeof _0xe62742!=='undefined'?!![]:![];}),_0x2decdd();})['then'](function(_0x4181ea){const _0x275f4e=_0x2e2800,_0x4d74d6=_0x4181ea&&_0x4181ea['rows']?_0x4181ea['rows']:[];_0x54e1cb[_0x275f4e('0x26cc')]=_0x36f548()[_0x275f4e('0x2171')](_0x4d74d6,function(_0x42b917){const _0x38bb98=_0x275f4e,_0x20823b=_0x36f548()['find'](_0x54e1cb[_0x38bb98('0x22')],{'id':_0x42b917['id']});return _0x20823b['penalty']=_0x42b917[_0x38bb98('0x1b59')]?_0x38bb98('0x1caa')+_0x42b917[_0x38bb98('0x1b59')][_0x38bb98('0xf47')]:'',_0x20823b[_0x38bb98('0x1a04')]=typeof _0x42b917[_0x38bb98('0x1a04')]!==_0x38bb98('0x13e9')?'<'+_0x42b917[_0x38bb98('0x1a04')]+'>':'',_0x20823b;}),_0x54e1cb[_0x275f4e('0x21ed')]=angular[_0x275f4e('0x6fb')](_0x54e1cb[_0x275f4e('0x26cc')]),_0x54e1cb[_0x275f4e('0xec5')][_0x275f4e('0x26cc')]=_0x54e1cb[_0x275f4e('0x26cc')],_0x54e1cb[_0x275f4e('0xec5')]['items']=_0x36f548()[_0x275f4e('0x2753')](_0x54e1cb[_0x275f4e('0x63')],_0x54e1cb[_0x275f4e('0xec5')][_0x275f4e('0x26cc')],'id'),_0x3bca1f();})['catch'](function(_0x57d8ca){_0x1a0b33(_0x57d8ca);});});}function _0x169103(){return _0x34588a(function(_0x3e3002,_0x29d807){const _0x3aa2a0=a0_0xaf0c;return _0x362dc4['userProfileResource'][_0x3aa2a0('0xbaa')]({'sectionId':_0x54e1cb[_0x3aa2a0('0xe6')]['id'],'nolimit':!![]})['$promise'][_0x3aa2a0('0x11bf')](function(_0x73a05c){_0x3e3002(_0x73a05c);})[_0x3aa2a0('0x151d')](function(_0x101dee){_0x29d807(_0x101dee);});});}function _0x2decdd(){return _0x34588a(function(_0x11912a,_0x533fba){const _0x232945=a0_0xaf0c;return _0x362dc4[_0x232945('0x1c23')][_0x232945('0x2783')]({'id':_0x54e1cb[_0x232945('0x1c23')]['id'],'fields':'id,name,internal,fullname','nolimit':!![],'role':_0x232945('0x18c4')})['$promise']['then'](function(_0x16a77d){_0x11912a(_0x16a77d);})['catch'](function(_0x39944c){_0x533fba(_0x39944c);});});}function _0x342069(){return _0x34588a(function(_0x15f22d,_0x2faf86){const _0x27e1b7=a0_0xaf0c;return _0x362dc4['user'][_0x27e1b7('0xbaa')]({'fields':_0x27e1b7('0x13d3'),'nolimit':!![],'role':'agent'})[_0x27e1b7('0x1549')]['then'](function(_0x5cdfda){_0x15f22d(_0x5cdfda);})[_0x27e1b7('0x151d')](function(_0x5c06cc){_0x2faf86(_0x5c06cc);});});}function _0x56efa1(_0x18067f){return _0x34588a(function(_0xac4b9e,_0xdf1708){const _0x2dd051=a0_0xaf0c;_0x36f548()[_0x2dd051('0x1fc5')](_0x18067f)?_0xac4b9e():_0x362dc4[_0x2dd051('0x1c23')]['addAgents']({'id':_0x54e1cb['chatQueue']['id'],'ids':_0x36f548()[_0x2dd051('0x2171')](_0x18067f,'id')})[_0x2dd051('0x1549')][_0x2dd051('0x11bf')](function(){_0xac4b9e();})[_0x2dd051('0x151d')](function(_0x337900){_0xdf1708(_0x337900);});});}function _0x112a97(_0x42b2be){return _0x34588a(function(_0x41d07d,_0x1cb190){const _0x2a8298=a0_0xaf0c;_0x36f548()[_0x2a8298('0x1fc5')](_0x42b2be)?_0x41d07d():_0x362dc4[_0x2a8298('0x1c23')][_0x2a8298('0x1ec0')]({'id':_0x54e1cb[_0x2a8298('0x1c23')]['id'],'ids':_0x36f548()[_0x2a8298('0x2171')](_0x42b2be,'id')})[_0x2a8298('0x1549')][_0x2a8298('0x11bf')](function(){_0x41d07d();})['catch'](function(_0x258b2c){_0x1cb190(_0x258b2c);});});}function _0x193f06(){const _0x50873f=_0x1b3184,_0x15d1bc=_0x36f548()[_0x50873f('0x2753')](_0x54e1cb['startingSelectedItems'],_0x54e1cb['selectedItems'],'id'),_0x3200cb=_0x36f548()[_0x50873f('0x2753')](_0x54e1cb[_0x50873f('0x26cc')],_0x54e1cb[_0x50873f('0x21ed')],'id');return _0x112a97(_0x15d1bc)[_0x50873f('0x11bf')](function(){return _0x56efa1(_0x3200cb);})[_0x50873f('0x11bf')](function(){const _0x451df9=_0x50873f;_0x54e1cb[_0x451df9('0x1eda')]=![],_0x54e1cb[_0x451df9('0x1c6f')]=angular[_0x451df9('0x6fb')](_0x54e1cb[_0x451df9('0x63')]),_0x54e1cb[_0x451df9('0x21ed')]=angular[_0x451df9('0x6fb')](_0x54e1cb['selectedItems']),_0x37b094[_0x451df9('0x2693')]({'title':'SUCCESS','msg':_0x451df9('0x2273')});})[_0x50873f('0x151d')](function(_0x390999){const _0x1d5576=_0x50873f;_0x37b094[_0x1d5576('0x255')]({'title':_0x390999[_0x1d5576('0xff9')]?_0x1d5576('0x574')+_0x390999[_0x1d5576('0xff9')]+_0x1d5576('0xb0b')+_0x390999[_0x1d5576('0x212f')]:'SYSTEM:LISTS_ASSOCIATION','msg':_0x390999['status']?JSON[_0x1d5576('0x3e')](_0x390999[_0x1d5576('0x4e8')]):_0x390999['toString']()});});}function _0x1d539c(){_0x1aedca['hide']();}}const _0x5acf5b=_0x1a0040;_0x701e1f[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0x142d'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1c23'),_0x21d0f5('0xb6b'),_0x21d0f5('0x1150'),_0x21d0f5('0xb25')];function _0x701e1f(_0x34ea75,_0x46564a,_0x129e8a,_0x1ec3c1,_0x1107af,_0x20a881,_0x497604,_0x363e58){const _0x24f710=_0x21d0f5,_0x392da1=this;_0x392da1[_0x24f710('0x32a')]=_0x497604[_0x24f710('0x2428')](),_0x392da1[_0x24f710('0x1c23')]=_0x1107af,_0x392da1[_0x24f710('0xb25')]=_0x363e58,_0x392da1[_0x24f710('0x22')]=[],_0x392da1['allowedItems']=[],_0x392da1[_0x24f710('0x26cc')]=[],_0x392da1[_0x24f710('0x1c6f')]=[],_0x392da1[_0x24f710('0x21ed')]=[],_0x392da1[_0x24f710('0x1eda')]=![],_0x392da1[_0x24f710('0xec5')]={'readOnly':!_0x392da1[_0x24f710('0xb25')][_0x24f710('0x25db')],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x24f710('0x1909'),'line1':_0x24f710('0x1909'),'line2':'','line3':'','labelAll':_0x20a881[_0x24f710('0x10c2')](_0x24f710('0x1f5')),'labelSelected':_0x20a881[_0x24f710('0x10c2')]('APP.SELECTED_TEAMS'),'transferCallback':function(){const _0x3d5ce8=_0x24f710,_0xf3cc03=_0x36f548()[_0x3d5ce8('0x1a1b')](_0x392da1['startingSelectedItems'],_0x392da1[_0x3d5ce8('0x26cc')],'id');_0x392da1[_0x3d5ce8('0x1eda')]=_0x36f548()[_0x3d5ce8('0x1fc5')](_0xf3cc03)?![]:!![];}},_0x392da1[_0x24f710('0x277c')]=_0x39b5ca,_0x392da1[_0x24f710('0x1581')]=_0x3bb8ed,_0x392da1[_0x24f710('0xc4e')]=_0x31619f;function _0x39b5ca(){const _0x340cd8=_0x24f710;return _0x497604[_0x340cd8('0x4ee')]('admin')?_0x12c9c8()[_0x340cd8('0x151d')](function(_0x3f079a){const _0xde5b1e=_0x340cd8;_0x129e8a[_0xde5b1e('0x255')]({'title':_0x3f079a[_0xde5b1e('0xff9')]?_0xde5b1e('0x574')+_0x3f079a['status']+_0xde5b1e('0xb0b')+_0x3f079a[_0xde5b1e('0x212f')]:_0xde5b1e('0x2059'),'msg':_0x3f079a[_0xde5b1e('0xff9')]?JSON[_0xde5b1e('0x3e')](_0x3f079a[_0xde5b1e('0x4e8')]):_0x3f079a[_0xde5b1e('0xaab')]()});}):_0x38276d()['then'](function(_0x21f8c0){const _0x1a2def=_0x340cd8;return _0x392da1[_0x1a2def('0xe6')]=_0x21f8c0,_0x12c9c8();})['catch'](function(_0x5b7098){const _0x51a4aa=_0x340cd8;_0x129e8a[_0x51a4aa('0x255')]({'title':_0x5b7098[_0x51a4aa('0xff9')]?'API:'+_0x5b7098[_0x51a4aa('0xff9')]+_0x51a4aa('0xb0b')+_0x5b7098[_0x51a4aa('0x212f')]:_0x51a4aa('0x2059'),'msg':_0x5b7098[_0x51a4aa('0xff9')]?JSON['stringify'](_0x5b7098[_0x51a4aa('0x4e8')]):_0x5b7098[_0x51a4aa('0xaab')]()});});}function _0x38276d(){return _0x46564a(function(_0x4fd9ba,_0x38163f){const _0x2e22e6=a0_0xaf0c;_0x1ec3c1[_0x2e22e6('0x1d63')][_0x2e22e6('0xbaa')]({'userProfileId':_0x392da1[_0x2e22e6('0x32a')][_0x2e22e6('0x781')],'name':_0x2e22e6('0xc3f')})['$promise']['then'](function(_0x2f77b3){const _0x63d635=_0x2e22e6,_0x49f911=_0x2f77b3&&_0x2f77b3['rows']?_0x2f77b3[_0x63d635('0x19b2')][0x0]:null;_0x4fd9ba(_0x49f911);})[_0x2e22e6('0x151d')](function(_0x4946ad){_0x38163f(_0x4946ad);});});}function _0x12c9c8(){return _0x46564a(function(_0x4c2f79,_0x5b4d63){const _0x15f345=a0_0xaf0c;return _0x5390fe()[_0x15f345('0x11bf')](function(_0x3ffaf3){const _0x219760=_0x15f345;return _0x392da1[_0x219760('0x22')]=_0x3ffaf3['rows']?_0x3ffaf3[_0x219760('0x19b2')]:[],_0x497604['hasRole']('admin')?_0x3ffaf3:_0x392da1['section']?_0x392da1[_0x219760('0xe6')]['autoAssociation']?_0x3ffaf3:_0x3e6366():null;})[_0x15f345('0x11bf')](function(_0x339fa7){const _0x1a92bb=_0x15f345,_0x43a483=_0x339fa7&&_0x339fa7[_0x1a92bb('0x19b2')]?_0x339fa7['rows']:[];return _0x392da1['allowedItems']=_0x36f548()['map'](_0x43a483,function(_0x20131c){const _0x517b1a=_0x1a92bb;return _0x36f548()[_0x517b1a('0x1ad4')](_0x392da1['items'],{'id':_0x497604['hasRole'](_0x517b1a('0xf45'))||_0x392da1[_0x517b1a('0xe6')][_0x517b1a('0xf11')]?_0x20131c['id']:_0x20131c[_0x517b1a('0x15a5')]});}),_0x392da1[_0x1a92bb('0x22')][_0x1a92bb('0x1f88')](function(_0x3e74ce){const _0x38decc=_0x1a92bb,_0x1985aa=_0x36f548()['find'](_0x392da1[_0x38decc('0x63')],{'id':_0x3e74ce['id']});_0x497604[_0x38decc('0x4ee')]('admin')?_0x3e74ce[_0x38decc('0xde9')]=!![]:_0x3e74ce[_0x38decc('0xde9')]=typeof _0x1985aa!==_0x38decc('0x13e9')?!![]:![];}),_0x4ab214();})['then'](function(_0x238307){const _0x2d60ac=_0x15f345,_0x275724=_0x238307&&_0x238307['rows']?_0x238307[_0x2d60ac('0x19b2')]:[];_0x392da1['selectedItems']=_0x36f548()['map'](_0x275724,function(_0x28945f){const _0x3725ec=_0x2d60ac;return _0x36f548()[_0x3725ec('0x1ad4')](_0x392da1[_0x3725ec('0x22')],{'id':_0x28945f['id']});}),_0x392da1['startingSelectedItems']=angular[_0x2d60ac('0x6fb')](_0x392da1[_0x2d60ac('0x26cc')]),_0x392da1[_0x2d60ac('0xec5')]['selectedItems']=_0x392da1[_0x2d60ac('0x26cc')],_0x392da1['dualMultiselectOptions'][_0x2d60ac('0x22')]=_0x36f548()[_0x2d60ac('0x2753')](_0x392da1[_0x2d60ac('0x63')],_0x392da1[_0x2d60ac('0xec5')][_0x2d60ac('0x26cc')],'id'),_0x4c2f79();})[_0x15f345('0x151d')](function(_0x2a300c){_0x5b4d63(_0x2a300c);});});}function _0x3e6366(){return _0x46564a(function(_0x18b1ea,_0x5db60d){const _0x21790f=a0_0xaf0c;return _0x1ec3c1[_0x21790f('0x26d1')][_0x21790f('0xbaa')]({'sectionId':_0x392da1['section']['id'],'nolimit':!![]})[_0x21790f('0x1549')][_0x21790f('0x11bf')](function(_0x1543ea){_0x18b1ea(_0x1543ea);})[_0x21790f('0x151d')](function(_0x1c8916){_0x5db60d(_0x1c8916);});});}function _0x4ab214(){return _0x46564a(function(_0x53d66d,_0x2f1d00){const _0x56dd8a=a0_0xaf0c;return _0x1ec3c1[_0x56dd8a('0x1c23')][_0x56dd8a('0x306')]({'id':_0x392da1[_0x56dd8a('0x1c23')]['id'],'fields':'id,name','nolimit':!![]})[_0x56dd8a('0x1549')]['then'](function(_0x548249){_0x53d66d(_0x548249);})[_0x56dd8a('0x151d')](function(_0x7d581){_0x2f1d00(_0x7d581);});});}function _0x5390fe(){return _0x46564a(function(_0x7b8824,_0x55227d){const _0x1107f2=a0_0xaf0c;return _0x1ec3c1[_0x1107f2('0xae6')][_0x1107f2('0xbaa')]({'fields':'id,name','nolimit':!![]})[_0x1107f2('0x1549')][_0x1107f2('0x11bf')](function(_0x3bd513){_0x7b8824(_0x3bd513);})[_0x1107f2('0x151d')](function(_0x31bdae){_0x55227d(_0x31bdae);});});}function _0x5b1d4d(_0x5c14de){return _0x46564a(function(_0x35b7a6,_0x4cc178){const _0x31069c=a0_0xaf0c;_0x36f548()[_0x31069c('0x1fc5')](_0x5c14de)?_0x35b7a6():_0x1ec3c1[_0x31069c('0x1c23')][_0x31069c('0x1202')]({'id':_0x392da1[_0x31069c('0x1c23')]['id'],'ids':_0x36f548()['map'](_0x5c14de,'id')})[_0x31069c('0x1549')][_0x31069c('0x11bf')](function(){_0x35b7a6();})[_0x31069c('0x151d')](function(_0x422d93){_0x4cc178(_0x422d93);});});}function _0x17cc08(_0xa0f28a){return _0x46564a(function(_0x2fe8c9,_0x1bd88f){const _0x2ee1d6=a0_0xaf0c;_0x36f548()[_0x2ee1d6('0x1fc5')](_0xa0f28a)?_0x2fe8c9():_0x1ec3c1[_0x2ee1d6('0x1c23')][_0x2ee1d6('0xaea')]({'id':_0x392da1['chatQueue']['id'],'ids':_0x36f548()['map'](_0xa0f28a,'id')})['$promise'][_0x2ee1d6('0x11bf')](function(){_0x2fe8c9();})[_0x2ee1d6('0x151d')](function(_0x42e050){_0x1bd88f(_0x42e050);});});}function _0x3bb8ed(){const _0x37f751=_0x24f710,_0xe676f5=_0x36f548()[_0x37f751('0x2753')](_0x392da1['startingSelectedItems'],_0x392da1[_0x37f751('0x26cc')],'id'),_0x5df702=_0x36f548()['differenceBy'](_0x392da1[_0x37f751('0x26cc')],_0x392da1['startingSelectedItems'],'id');return _0x17cc08(_0xe676f5)[_0x37f751('0x11bf')](function(){return _0x5b1d4d(_0x5df702);})['then'](function(){const _0x57e7e5=_0x37f751;_0x392da1['pendingChanges']=![],_0x392da1[_0x57e7e5('0x1c6f')]=angular[_0x57e7e5('0x6fb')](_0x392da1['allowedItems']),_0x392da1[_0x57e7e5('0x21ed')]=angular[_0x57e7e5('0x6fb')](_0x392da1['selectedItems']),_0x129e8a[_0x57e7e5('0x2693')]({'title':'SUCCESS','msg':_0x57e7e5('0x1a68')});})[_0x37f751('0x151d')](function(_0x33b5d3){const _0x3c244b=_0x37f751;_0x129e8a['error']({'title':_0x33b5d3[_0x3c244b('0xff9')]?_0x3c244b('0x574')+_0x33b5d3['status']+_0x3c244b('0xb0b')+_0x33b5d3[_0x3c244b('0x212f')]:_0x3c244b('0x1b7f'),'msg':_0x33b5d3[_0x3c244b('0xff9')]?JSON['stringify'](_0x33b5d3[_0x3c244b('0x4e8')]):_0x33b5d3['toString']()});});}function _0x31619f(){_0x34ea75['hide']();}}const _0x6f06de=_0x701e1f;_0x2cd5c4[_0x21d0f5('0x1e9a')]=['$state',_0x21d0f5('0x16b9'),'$mdDialog','$document',_0x21d0f5('0xb6b'),_0x21d0f5('0x17ff'),'setting','api','toasty',_0x21d0f5('0x1150'),_0x21d0f5('0x1c23'),'userProfileSection'];function _0x2cd5c4(_0xed22c1,_0x1a2085,_0x2c7e12,_0x4fe307,_0x4e71a8,_0x576c52,_0x3ccd91,_0x487f21,_0x216410,_0x3724b3,_0x200b84,_0x14657e){const _0x197822=_0x21d0f5,_0x5dea56=this;_0x5dea56[_0x197822('0x32a')]=_0x3724b3[_0x197822('0x2428')](),_0x5dea56[_0x197822('0x17ff')]=_0x576c52,_0x5dea56[_0x197822('0x23e1')]=_0x3ccd91,_0x5dea56[_0x197822('0x2834')]=_0x5dea56[_0x197822('0x23e1')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x5dea56[_0x197822('0x1d9a')]=_0x1a2085[_0x197822('0x1797')]()+'://'+_0x1a2085['host'](),_0x5dea56['chatQueue']=_0x200b84||_0xed22c1[_0x197822('0x1ab3')][_0x197822('0x1c23')]||{},_0x5dea56[_0x197822('0x1d63')]=_0x14657e&&_0x14657e[_0x197822('0x27d2')]==0x1?_0x14657e[_0x197822('0x19b2')][0x0]:null,_0x5dea56[_0x197822('0xb25')]=_0x3724b3['parseCrudPermissions'](_0x5dea56[_0x197822('0x1d63')]?_0x5dea56[_0x197822('0x1d63')]['crudPermissions']:null),_0x5dea56['hasModulePermissions']={},_0x5dea56[_0x197822('0x1179')]=_0xed22c1[_0x197822('0x1ab3')][_0x197822('0x205c')]||0x0,_0x5dea56[_0x197822('0x11b8')]=_0x3a47b9,_0x5dea56[_0x197822('0x2363')]=_0x16e701,_0x5dea56[_0x197822('0xb30')]=_0x216410[_0x197822('0x870')],_0x5dea56['gotoChatQueues']=_0x47a5db,_0x5dea56['saveChatQueue']=_0x405a8d;function _0x3a47b9(_0x5a573c,_0x297ca3){const _0x2e0161=_0x197822;_0x2c7e12[_0x2e0161('0xb9')]({'controller':_0x2e0161('0x1090'),'controllerAs':'vm','templateUrl':_0x5cb6d7,'parent':angular['element'](_0x4fe307[_0x2e0161('0x1d2')]),'targetEvent':_0x297ca3,'clickOutsideToClose':!![],'locals':{'chatQueue':_0x5a573c,'chatQueues':_0x5dea56['chatQueues']?_0x5dea56[_0x2e0161('0x18cc')][_0x2e0161('0x19b2')]:[],'crudPermissions':_0x5dea56[_0x2e0161('0xb25')]}});}function _0x16e701(_0xf9f68f,_0x1fe5d2){const _0x276c1a=_0x197822;_0x2c7e12[_0x276c1a('0xb9')]({'controller':'ChatQueueagentaddController','controllerAs':'vm','templateUrl':_0x49ef99,'parent':angular[_0x276c1a('0x1e73')](_0x4fe307[_0x276c1a('0x1d2')]),'targetEvent':_0x1fe5d2,'clickOutsideToClose':!![],'locals':{'chatQueue':_0xf9f68f,'chatQueues':_0x5dea56[_0x276c1a('0x18cc')]?_0x5dea56['chatQueues'][_0x276c1a('0x19b2')]:[],'crudPermissions':_0x5dea56[_0x276c1a('0xb25')],'realtime':![]}});}function _0x47a5db(){const _0x5cf7bf=_0x197822;_0xed22c1['go'](_0x5cf7bf('0x7e'),{},{'reload':'app.chat.chatQueues'});}function _0x405a8d(){const _0x4697f3=_0x197822;_0x487f21['chatQueue']['update']({'id':_0x5dea56['chatQueue']['id']},_0x5dea56[_0x4697f3('0x1c23')])[_0x4697f3('0x1549')][_0x4697f3('0x11bf')](function(){const _0x238bc7=_0x4697f3;_0x216410[_0x238bc7('0x2693')]({'title':_0x238bc7('0x2123'),'msg':_0x5dea56['chatQueue'][_0x238bc7('0x1909')]?_0x5dea56[_0x238bc7('0x1c23')][_0x238bc7('0x1909')]+_0x238bc7('0xd7'):''});})[_0x4697f3('0x151d')](function(_0x371b7c){const _0x53f937=_0x4697f3;_0x216410[_0x53f937('0x255')]({'title':_0x371b7c[_0x53f937('0xff9')]?_0x53f937('0x574')+_0x371b7c[_0x53f937('0xff9')]+'\x20-\x20'+_0x371b7c['statusText']:'SYSTEM:GETchatQueue','msg':_0x371b7c['data']?JSON[_0x53f937('0x3e')](_0x371b7c[_0x53f937('0x4e8')]):_0x371b7c['toString']()});});}}const _0x45c833=_0x2cd5c4,_0x221cf2=_0x351988['p']+_0x21d0f5('0x867'),_0x57ab1a=_0x351988['p']+_0x21d0f5('0x90f');_0x660d9d[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),'$window',_0x21d0f5('0xcbc'),'$mdSidenav',_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),'$timeout',_0x21d0f5('0xb6b'),'chatWebsites',_0x21d0f5('0x25bc'),_0x21d0f5('0x1d63'),'api','msUtils',_0x21d0f5('0x142d'),_0x21d0f5('0x1150'),'license','setting'];function _0x660d9d(_0x5685a6,_0x5530a9,_0x2affb6,_0x107396,_0x1a707e,_0x309267,_0x5605a0,_0x19b0d1,_0x10108a,_0x58bb83,_0xd34d4c,_0x54b74b,_0x17e61c,_0x44f99f,_0x5e87e5,_0x25bab5,_0x28e04e){const _0x2993a0=_0x21d0f5,_0x29b06a=this;_0x29b06a['license']=_0x25bab5,_0x29b06a[_0x2993a0('0x23e1')]=_0x28e04e,_0x29b06a['currentUser']=_0x5e87e5[_0x2993a0('0x2428')](),_0x29b06a[_0x2993a0('0x235c')]=_0x10108a||{'count':0x0,'rows':[]},_0x29b06a[_0x2993a0('0x25bc')]=_0x58bb83,_0x29b06a[_0x2993a0('0x1d63')]=_0xd34d4c&&_0xd34d4c[_0x2993a0('0x27d2')]==0x1?_0xd34d4c[_0x2993a0('0x19b2')][0x0]:null,_0x29b06a[_0x2993a0('0xb25')]=_0x5e87e5[_0x2993a0('0x1530')](_0x29b06a['userProfileSection']?_0x29b06a[_0x2993a0('0x1d63')][_0x2993a0('0xb25')]:null),_0x29b06a[_0x2993a0('0x13e8')]='chatWebsites',_0x29b06a['listOrder']='',_0x29b06a[_0x2993a0('0xe3c')]=null,_0x29b06a[_0x2993a0('0xa41')]=[],_0x29b06a[_0x2993a0('0x1f2a')]={'fields':_0x2993a0('0x163b'),'sort':_0x2993a0('0x1c74'),'limit':0xa,'page':0x1},_0x29b06a[_0x2993a0('0x1b23')]=_0x36f548()[_0x2993a0('0x2130')]([{'option':'WebsiteAlias','value':_0x2993a0('0x528')},{'option':'AgentAlias','value':_0x2993a0('0x866')},{'option':_0x2993a0('0x241e'),'value':'\x27agent_fullname\x27'}],function(_0x17280f){const _0x1d05ec=_0x2993a0;return _0x36f548()[_0x1d05ec('0x814')](_0x17280f[_0x1d05ec('0x10cc')],new RegExp('\x27','g'),'');}),_0x29b06a[_0x2993a0('0x172c')]=_0x36f548()[_0x2993a0('0x2130')]([{'option':'Rounded','value':'\x27rounded\x27'},{'option':_0x2993a0('0x25b'),'value':_0x2993a0('0x26e5')}],function(_0x36fb9e){const _0x4feba0=_0x2993a0;return _0x36f548()['replace'](_0x36fb9e[_0x4feba0('0x10cc')],new RegExp('\x27','g'),'');}),_0x29b06a['arrayalignment']=_0x36f548()[_0x2993a0('0x2130')]([{'option':_0x2993a0('0x196b'),'value':_0x2993a0('0xbb8')},{'option':_0x2993a0('0xdd5'),'value':_0x2993a0('0x506')},{'option':_0x2993a0('0x1d7e'),'value':'\x27left\x27'}],function(_0x3839c8){const _0x138b5a=_0x2993a0;return _0x36f548()[_0x138b5a('0x814')](_0x3839c8[_0x138b5a('0x10cc')],new RegExp('\x27','g'),'');}),_0x29b06a[_0x2993a0('0x2751')]=_0x36f548()[_0x2993a0('0x2130')]([{'option':'alternate','value':'\x27alternate\x27'},{'option':_0x2993a0('0x150a'),'value':_0x2993a0('0x23bd')}],function(_0xfce08d){const _0x52016d=_0x2993a0;return _0x36f548()[_0x52016d('0x814')](_0xfce08d['value'],new RegExp('\x27','g'),'');}),_0x29b06a['arrayratingType']=_0x36f548()[_0x2993a0('0x2130')]([{'option':_0x2993a0('0x1f0f'),'value':_0x2993a0('0x100e')},{'option':_0x2993a0('0xb35'),'value':_0x2993a0('0x1be8')}],function(_0x5c81f0){const _0xc28c09=_0x2993a0;return _0x36f548()[_0xc28c09('0x814')](_0x5c81f0[_0xc28c09('0x10cc')],new RegExp('\x27','g'),'');}),_0x29b06a[_0x2993a0('0x757')]=_0x44b54b,_0x29b06a[_0x2993a0('0x1ab2')]=_0x13baaf,_0x29b06a[_0x2993a0('0x1f3e')]=_0x440abe,_0x29b06a[_0x2993a0('0x2363')]=_0x2b8946,_0x29b06a[_0x2993a0('0x549')]=_0x260d3d,_0x29b06a[_0x2993a0('0x2693')]=_0x3fca71,_0x29b06a['getChatWebsites']=_0x13c71b,_0x29b06a[_0x2993a0('0x11b9')]=_0x10f56f,_0x29b06a['deleteChatWebsite']=_0x2331d7,_0x29b06a[_0x2993a0('0x262b')]=_0x447d7f,_0x29b06a[_0x2993a0('0x135b')]=_0x211f61,_0x29b06a['deselectChatWebsites']=_0xb26787,_0x29b06a[_0x2993a0('0x68d')]=_0x4a6f87,_0x5e87e5[_0x2993a0('0x4ee')](_0x2993a0('0xf45'))?_0x54b74b['cmList'][_0x2993a0('0xbaa')]({'fields':'id,name','sort':_0x2993a0('0x1909')})[_0x2993a0('0x1549')][_0x2993a0('0x11bf')](function(_0x599282){const _0x4d6594=_0x2993a0;_0x29b06a[_0x4d6594('0x2410')]=_0x599282[_0x4d6594('0x19b2')]||[];})[_0x2993a0('0x151d')](function(_0x19d435){const _0x1c6fd5=_0x2993a0;_0x44f99f[_0x1c6fd5('0x255')]({'title':_0x19d435[_0x1c6fd5('0xff9')]?_0x1c6fd5('0x574')+_0x19d435['status']+_0x1c6fd5('0xb0b')+_0x19d435[_0x1c6fd5('0x212f')]:'SYSTEM:GET_LISTS','msg':_0x19d435[_0x1c6fd5('0x4e8')]?JSON[_0x1c6fd5('0x3e')](_0x19d435[_0x1c6fd5('0x4e8')]):_0x19d435[_0x1c6fd5('0xaab')]()});}):_0x54b74b[_0x2993a0('0xbef')][_0x2993a0('0xbaa')]({'fields':_0x2993a0('0x721'),'sort':_0x2993a0('0x1909')})['$promise'][_0x2993a0('0x11bf')](function(_0x421b37){const _0x462bcc=_0x2993a0;_0x29b06a[_0x462bcc('0x2410')]=_0x421b37['rows']||[];})['then'](function(){const _0x21888f=_0x2993a0;return _0x54b74b[_0x21888f('0x1d63')][_0x21888f('0xbaa')]({'userProfileId':_0x29b06a[_0x21888f('0x32a')]['userProfileId'],'sectionId':0x12d})[_0x21888f('0x1549')];})[_0x2993a0('0x11bf')](function(_0x210a1a){const _0x375569=_0x2993a0,_0x1b77ca=_0x210a1a&&_0x210a1a[_0x375569('0x19b2')]?_0x210a1a['rows'][0x0]:null;if(!_0x1b77ca){const _0x592ef7=[];let _0x1654be=null;_0x29b06a[_0x375569('0xb50')]&&(_0x1654be=_0x36f548()['find'](_0x29b06a[_0x375569('0x2410')],{'id':Number(_0x29b06a[_0x375569('0xb50')]['ListId'])}));for(let _0x5bc46d=0x0;_0x5bc46d<_0x29b06a[_0x375569('0x2410')][_0x375569('0x1e22')];_0x5bc46d++){_0x1654be&&_0x29b06a[_0x375569('0x2410')][_0x5bc46d]['id']===_0x1654be['id']&&(_0x29b06a[_0x375569('0x2410')][_0x5bc46d][_0x375569('0x254a')]=![],_0x592ef7[_0x375569('0x105d')](_0x29b06a[_0x375569('0x2410')][_0x5bc46d]));}_0x29b06a['lists']=_0x592ef7;}else{if(!_0x1b77ca[_0x375569('0xf11')])return _0x54b74b[_0x375569('0x26d1')]['get']({'sectionId':_0x1b77ca['id']})[_0x375569('0x1549')]['then'](function(_0x1a88c1){const _0x4966c2=_0x375569,_0x30ffbd=_0x36f548()[_0x4966c2('0x2171')](_0x1a88c1['rows'],function(_0x11056b){const _0xb52536=_0x4966c2;return _0x36f548()[_0xb52536('0x1ad4')](_0x29b06a[_0xb52536('0x2410')],{'id':_0x11056b[_0xb52536('0x15a5')]});});let _0x2ccaeb=null;_0x29b06a[_0x4966c2('0xb50')]&&(_0x2ccaeb=_0x36f548()['find'](_0x29b06a[_0x4966c2('0x2410')],{'id':Number(_0x29b06a[_0x4966c2('0xb50')][_0x4966c2('0x1e91')])}));if(_0x2ccaeb&&!_0x36f548()[_0x4966c2('0x1cb3')](_0x30ffbd,['id',_0x2ccaeb['id']])){const _0x2cbe4c=_0x36f548()['find'](_0x29b06a['lists'],{'id':_0x2ccaeb['id']});_0x2cbe4c['canSelect']=![],_0x30ffbd[_0x4966c2('0x105d')](_0x2cbe4c);}_0x29b06a['lists']=_0x30ffbd;});}})[_0x2993a0('0x151d')](function(_0x22e2ae){const _0x29eeb2=_0x2993a0;_0x44f99f['error']({'title':_0x22e2ae[_0x29eeb2('0xff9')]?'API:'+_0x22e2ae[_0x29eeb2('0xff9')]+_0x29eeb2('0xb0b')+_0x22e2ae['statusText']:_0x29eeb2('0xb71'),'msg':_0x22e2ae[_0x29eeb2('0x4e8')]?JSON[_0x29eeb2('0x3e')](_0x22e2ae[_0x29eeb2('0x4e8')]):_0x22e2ae[_0x29eeb2('0xaab')]()});}),_0x5e87e5[_0x2993a0('0x4ee')](_0x2993a0('0xf45'))?_0x54b74b['interval']['get']({'fields':_0x2993a0('0x721'),'sort':_0x2993a0('0x1909'),'IntervalId':'null'})[_0x2993a0('0x1549')][_0x2993a0('0x11bf')](function(_0x421da5){const _0x545b78=_0x2993a0;_0x29b06a['interval']=_0x421da5[_0x545b78('0x19b2')]||[];})['catch'](function(_0x5206cb){const _0x5aef38=_0x2993a0;_0x44f99f[_0x5aef38('0x255')]({'title':_0x5206cb[_0x5aef38('0xff9')]?'API:'+_0x5206cb[_0x5aef38('0xff9')]+_0x5aef38('0xb0b')+_0x5206cb[_0x5aef38('0x212f')]:_0x5aef38('0x135a'),'msg':_0x5206cb[_0x5aef38('0x4e8')]?JSON[_0x5aef38('0x3e')](_0x5206cb['data']):_0x5206cb['toString']()});}):_0x54b74b[_0x2993a0('0x507')][_0x2993a0('0xbaa')]({'fields':_0x2993a0('0x721'),'sort':_0x2993a0('0x1909'),'IntervalId':_0x2993a0('0xb5f')})['$promise'][_0x2993a0('0x11bf')](function(_0x5bcab3){const _0x4fdd74=_0x2993a0;_0x29b06a[_0x4fdd74('0x507')]=_0x5bcab3[_0x4fdd74('0x19b2')]||[];})[_0x2993a0('0x11bf')](function(){const _0x3541d9=_0x2993a0;return _0x54b74b['userProfileSection']['get']({'userProfileId':_0x29b06a[_0x3541d9('0x32a')][_0x3541d9('0x781')],'sectionId':0x3ec})['$promise'];})[_0x2993a0('0x11bf')](function(_0x2d741e){const _0x5667e0=_0x2993a0,_0x24898f=_0x2d741e&&_0x2d741e['rows']?_0x2d741e[_0x5667e0('0x19b2')][0x0]:null;if(!_0x24898f){const _0x1f5075=[];let _0x98a210=null;_0x29b06a[_0x5667e0('0xb50')]&&(_0x98a210=_0x36f548()[_0x5667e0('0x1ad4')](_0x29b06a['interval'],{'id':Number(_0x29b06a[_0x5667e0('0xb50')][_0x5667e0('0x6b4')])}));for(let _0x34ff35=0x0;_0x34ff35<_0x29b06a[_0x5667e0('0x507')][_0x5667e0('0x1e22')];_0x34ff35++){_0x98a210&&_0x29b06a['interval'][_0x34ff35]['id']===_0x98a210['id']&&(_0x29b06a[_0x5667e0('0x507')][_0x34ff35]['canSelect']=![],_0x1f5075['push'](_0x29b06a[_0x5667e0('0x507')][_0x34ff35]));}_0x29b06a[_0x5667e0('0x507')]=_0x1f5075;}else{if(!_0x24898f[_0x5667e0('0xf11')])return _0x54b74b['userProfileResource'][_0x5667e0('0xbaa')]({'sectionId':_0x24898f['id']})['$promise'][_0x5667e0('0x11bf')](function(_0x2dbc36){const _0x1f1f2b=_0x5667e0,_0x1b7d4e=_0x36f548()[_0x1f1f2b('0x2171')](_0x2dbc36[_0x1f1f2b('0x19b2')],function(_0x517a27){const _0x2dcebc=_0x1f1f2b;return _0x36f548()[_0x2dcebc('0x1ad4')](_0x29b06a['interval'],{'id':_0x517a27[_0x2dcebc('0x15a5')]});});let _0x5bf081=null;_0x29b06a[_0x1f1f2b('0xb50')]&&(_0x5bf081=_0x36f548()[_0x1f1f2b('0x1ad4')](_0x29b06a[_0x1f1f2b('0x507')],{'id':Number(_0x29b06a[_0x1f1f2b('0xb50')][_0x1f1f2b('0x6b4')])}));if(_0x5bf081&&!_0x36f548()[_0x1f1f2b('0x1cb3')](_0x1b7d4e,['id',_0x5bf081['id']])){const _0x26a8b4=_0x36f548()['find'](_0x29b06a['interval'],{'id':_0x5bf081['id']});_0x26a8b4['canSelect']=![],_0x1b7d4e[_0x1f1f2b('0x105d')](_0x26a8b4);}_0x29b06a[_0x1f1f2b('0x507')]=_0x1b7d4e;});}})['catch'](function(_0x2b6ffc){const _0x5e632d=_0x2993a0;_0x44f99f[_0x5e632d('0x255')]({'title':_0x2b6ffc[_0x5e632d('0xff9')]?_0x5e632d('0x574')+_0x2b6ffc[_0x5e632d('0xff9')]+_0x5e632d('0xb0b')+_0x2b6ffc[_0x5e632d('0x212f')]:_0x5e632d('0xa8b'),'msg':_0x2b6ffc[_0x5e632d('0x4e8')]?JSON[_0x5e632d('0x3e')](_0x2b6ffc[_0x5e632d('0x4e8')]):_0x2b6ffc[_0x5e632d('0xaab')]()});});function _0x44b54b(_0x505ee5){const _0x414b86=_0x2993a0;_0x2affb6['go']('app.chat.chatWebsites.edit',{'id':_0x505ee5['id'],'chatWebsite':_0x505ee5,'crudPermissions':_0x29b06a[_0x414b86('0xb25')]});}function _0x13baaf(_0x48514c){const _0x22c730=_0x2993a0;_0x2affb6['go'](_0x22c730('0x2da'),{'id':_0x48514c['id'],'tab':0xa});}function _0x440abe(_0x429208){const _0x5d68af=_0x2993a0;_0x2affb6['go'](_0x5d68af('0x2da'),{'id':_0x429208['id'],'tab':0xb});}function _0x2b8946(_0x1fc592,_0x1d07a4){const _0x42c8ff=_0x2993a0;_0x1a707e['show']({'controller':_0x42c8ff('0x1557'),'controllerAs':'vm','templateUrl':_0x221cf2,'parent':angular[_0x42c8ff('0x1e73')](_0x309267['body']),'targetEvent':_0x1d07a4,'clickOutsideToClose':!![],'locals':{'chatWebsite':_0x1fc592,'chatWebsites':_0x29b06a['chatWebsites']?_0x29b06a[_0x42c8ff('0x235c')][_0x42c8ff('0x19b2')]:[],'crudPermissions':_0x29b06a['crudPermissions'],'realtime':![]}});}function _0x260d3d(_0x35fbc5,_0x3b2ccd){const _0x17373c=_0x2993a0,_0x23718f=_0x1a707e['confirm']()[_0x17373c('0x134b')](_0x17373c('0x1796')+_0x36f548()[_0x17373c('0x13cf')]('chatWebsite')+'?')['htmlContent'](''+(_0x35fbc5[_0x17373c('0x1909')]||_0x17373c('0xb50'))+''+_0x17373c('0x1a'))[_0x17373c('0xb2e')]('delete\x20chatWebsite')['targetEvent'](_0x3b2ccd)['ok']('OK')[_0x17373c('0x26c9')]('CANCEL');_0x1a707e[_0x17373c('0xb9')](_0x23718f)['then'](function(){_0x2331d7(_0x35fbc5);},function(){const _0x50bbf5=_0x17373c;console['log'](_0x50bbf5('0x772'));});}let _0x18ebcb=!![],_0x54abb2=0x1;_0x5685a6[_0x2993a0('0x2087')]('vm.query.filter',function(_0xbb892,_0xa46927){const _0x2356ec=_0x2993a0;_0x18ebcb?_0x5605a0(function(){_0x18ebcb=![];}):(!_0xa46927&&(_0x54abb2=_0x29b06a[_0x2356ec('0x1f2a')][_0x2356ec('0x1c2')]),_0xbb892!==_0xa46927&&(_0x29b06a[_0x2356ec('0x1f2a')][_0x2356ec('0x1c2')]=0x1),!_0xbb892&&(_0x29b06a['query'][_0x2356ec('0x1c2')]=_0x54abb2),_0x29b06a[_0x2356ec('0x267d')]());});function _0x3fca71(_0x1df9f4){const _0x111342=_0x2993a0;_0x29b06a[_0x111342('0x235c')]=_0x1df9f4||{'count':0x0,'rows':[]};}function _0x13c71b(){const _0x1b82d5=_0x2993a0;_0x29b06a[_0x1b82d5('0x1f2a')]['offset']=(_0x29b06a[_0x1b82d5('0x1f2a')][_0x1b82d5('0x1c2')]-0x1)*_0x29b06a['query'][_0x1b82d5('0xd5c')],_0x5e87e5['hasRole'](_0x1b82d5('0xf45'))?_0x29b06a[_0x1b82d5('0x13f')]=_0x54b74b[_0x1b82d5('0xb50')][_0x1b82d5('0xbaa')](_0x29b06a[_0x1b82d5('0x1f2a')],_0x3fca71)[_0x1b82d5('0x1549')]:(_0x29b06a['query']['id']=_0x29b06a[_0x1b82d5('0x25bc')]['id'],_0x29b06a['query'][_0x1b82d5('0xe6')]=_0x1b82d5('0x368'),_0x29b06a['promise']=_0x54b74b[_0x1b82d5('0x25bc')]['getResources'](_0x29b06a['query'],_0x3fca71)['$promise']);}function _0x10f56f(_0x5a5266,_0x4589f0){const _0x79ec7c=_0x2993a0;_0x1a707e[_0x79ec7c('0xb9')]({'controller':_0x79ec7c('0x13e2'),'controllerAs':'vm','templateUrl':_0x57ab1a,'parent':angular[_0x79ec7c('0x1e73')](_0x309267[_0x79ec7c('0x1d2')]),'targetEvent':_0x5a5266,'clickOutsideToClose':!![],'locals':{'chatWebsite':_0x4589f0,'chatWebsites':_0x29b06a[_0x79ec7c('0x235c')]['rows'],'license':_0x29b06a[_0x79ec7c('0x17ff')],'setting':_0x29b06a['setting'],'crudPermissions':_0x29b06a[_0x79ec7c('0xb25')]}});}function _0x2331d7(_0x5ec893){const _0x32d357=_0x2993a0;_0x54b74b[_0x32d357('0xb50')][_0x32d357('0x2088')]({'id':_0x5ec893['id']})[_0x32d357('0x1549')][_0x32d357('0x11bf')](function(){const _0x511005=_0x32d357;_0x36f548()[_0x511005('0x14a5')](_0x29b06a[_0x511005('0x235c')][_0x511005('0x19b2')],{'id':_0x5ec893['id']}),_0x29b06a[_0x511005('0x235c')]['count']-=0x1,!_0x29b06a[_0x511005('0x235c')][_0x511005('0x19b2')]['length']&&_0x29b06a[_0x511005('0x267d')](),_0x44f99f[_0x511005('0x2693')]({'title':_0x36f548()['startCase']('ChatWebsite')+'\x20deleted!','msg':_0x5ec893['name']?_0x5ec893[_0x511005('0x1909')]+'\x20has\x20been\x20deleted!':''});})[_0x32d357('0x151d')](function(_0x123922){const _0x2a64e5=_0x32d357;if(_0x123922[_0x2a64e5('0x4e8')]&&_0x123922[_0x2a64e5('0x4e8')][_0x2a64e5('0x120f')]&&_0x123922['data'][_0x2a64e5('0x120f')]['length']){_0x29b06a['errors']=_0x123922[_0x2a64e5('0x4e8')][_0x2a64e5('0x120f')]||[{'message':_0x123922[_0x2a64e5('0xaab')](),'type':'SYSTEM:DELETEchatWebsite'}];for(let _0x17ab06=0x0;_0x17ab06<_0x123922[_0x2a64e5('0x4e8')][_0x2a64e5('0x120f')][_0x2a64e5('0x1e22')];_0x17ab06++){_0x44f99f[_0x2a64e5('0x255')]({'title':_0x123922[_0x2a64e5('0x4e8')]['errors'][_0x17ab06][_0x2a64e5('0x19fd')],'msg':_0x123922[_0x2a64e5('0x4e8')]['errors'][_0x17ab06][_0x2a64e5('0x1b86')]});}}else _0x44f99f[_0x2a64e5('0x255')]({'title':_0x123922['status']?'API:'+_0x123922['status']+'\x20-\x20'+_0x123922[_0x2a64e5('0x212f')]:'SYSTEM:DELETEchatWebsite','msg':_0x123922['data']?JSON[_0x2a64e5('0x3e')](_0x123922[_0x2a64e5('0x4e8')]['message']):_0x123922['message']||_0x123922[_0x2a64e5('0xaab')]()});});}function _0x447d7f(){const _0x1f2580=_0x2993a0,_0x1270b2=angular['copy'](_0x29b06a[_0x1f2580('0xa41')]);return _0x29b06a[_0x1f2580('0xa41')]=[],_0x1270b2;}function _0x211f61(_0x18c3ae){const _0xbbe3ad=_0x2993a0,_0x55dd75=_0x1a707e['confirm']()[_0xbbe3ad('0x134b')](_0xbbe3ad('0x79f'))[_0xbbe3ad('0x1d03')](_0xbbe3ad('0x2061')+_0x29b06a[_0xbbe3ad('0xa41')][_0xbbe3ad('0x1e22')]+_0xbbe3ad('0xac6')+'\x20will\x20be\x20deleted.')[_0xbbe3ad('0xb2e')](_0xbbe3ad('0x22dd'))['targetEvent'](_0x18c3ae)['ok']('OK')[_0xbbe3ad('0x26c9')](_0xbbe3ad('0x772'));_0x1a707e[_0xbbe3ad('0xb9')](_0x55dd75)[_0xbbe3ad('0x11bf')](function(){const _0x59f945=_0xbbe3ad;_0x29b06a[_0x59f945('0xa41')][_0x59f945('0x1f88')](function(_0x54f722){_0x2331d7(_0x54f722);}),_0x29b06a['selectedChatWebsites']=[];});}function _0xb26787(){const _0x53ad43=_0x2993a0;_0x29b06a[_0x53ad43('0xa41')]=[];}function _0x4a6f87(){const _0x3267be=_0x2993a0;_0x29b06a[_0x3267be('0xa41')]=_0x29b06a[_0x3267be('0x235c')]['rows'];}}const _0x454c7e=_0x660d9d;_0x26562e[_0x21d0f5('0x1e9a')]=['$scope',_0x21d0f5('0xcbc'),_0x21d0f5('0x16b9'),'$mdDialog','$q',_0x21d0f5('0xb6b'),_0x21d0f5('0x142d'),_0x21d0f5('0x235c'),_0x21d0f5('0xb50'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),_0x21d0f5('0x17ff'),'setting',_0x21d0f5('0xb25')];function _0x26562e(_0x5287f9,_0x130b6f,_0x191511,_0x59db77,_0x22c11f,_0x79cd70,_0x5a9579,_0x21d73a,_0x3506b3,_0x40608c,_0x2c4381,_0x227e09,_0x449da2,_0x3fdf89){const _0x20dd9c=_0x21d0f5,_0x685f0f=this;_0x685f0f[_0x20dd9c('0x32a')]=_0x2c4381['getCurrentUser'](),_0x685f0f[_0x20dd9c('0x120f')]=[],_0x685f0f['setting']=_0x449da2,_0x685f0f[_0x20dd9c('0x17ff')]=_0x227e09,_0x685f0f[_0x20dd9c('0xb25')]=_0x3fdf89,_0x685f0f['hasModulePermissions']={},_0x685f0f[_0x20dd9c('0x2834')]=_0x685f0f[_0x20dd9c('0x23e1')]&&_0x685f0f[_0x20dd9c('0x23e1')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x685f0f[_0x20dd9c('0x134b')]=_0x20dd9c('0x5b7'),_0x685f0f[_0x20dd9c('0xb50')]=angular[_0x20dd9c('0x6fb')](_0x3506b3),_0x685f0f[_0x20dd9c('0x235c')]=_0x21d73a,_0x685f0f['newChatWebsite']=![];!_0x685f0f[_0x20dd9c('0xb50')]&&(_0x685f0f[_0x20dd9c('0xb50')]={'remote':_0x191511['protocol']()+_0x20dd9c('0x16a1')+_0x191511[_0x20dd9c('0x14ec')]()+(_0x191511['port']()?':'+_0x191511[_0x20dd9c('0x235b')]():''),'header_shape':_0x20dd9c('0x23fe'),'alignment':'bottom_right','verticalAlignment':0x1e,'messagesAlignment':_0x20dd9c('0xbfd'),'IntervalId':_0x20dd9c('0xb5f'),'timezone':_0x20dd9c('0xb5f'),'waitForTheAssignedAgent':0xa,'notificationSound':!![],'queueTransferTimeout':0x12c,'agentTransferTimeout':0x12c},_0x685f0f[_0x20dd9c('0x134b')]=_0x20dd9c('0x9df'),_0x685f0f[_0x20dd9c('0x1611')]=!![]);_0x130b6f[_0x20dd9c('0x1ab3')]['id']&&(_0x685f0f[_0x20dd9c('0xb50')][_0x20dd9c('0x2346')]=_0x130b6f[_0x20dd9c('0x1ab3')]['id']);_0x685f0f[_0x20dd9c('0x2353')]=_0x143f87,_0x685f0f[_0x20dd9c('0x212c')]=_0x1bc88e,_0x685f0f[_0x20dd9c('0x25c2')]=_0x5d82ec,_0x685f0f['getDateFromString']=_0x229ed7,_0x685f0f[_0x20dd9c('0xc4e')]=_0x160121,_0x2c4381[_0x20dd9c('0x4ee')](_0x20dd9c('0xf45'))?_0x40608c['cmList'][_0x20dd9c('0xbaa')]({'fields':_0x20dd9c('0x721'),'sort':_0x20dd9c('0x1909')})[_0x20dd9c('0x1549')][_0x20dd9c('0x11bf')](function(_0x37b7ba){const _0x4814da=_0x20dd9c;_0x685f0f[_0x4814da('0x2410')]=_0x37b7ba['rows']||[];})[_0x20dd9c('0x151d')](function(_0x516bef){const _0x376e84=_0x20dd9c;_0x5a9579[_0x376e84('0x255')]({'title':_0x516bef[_0x376e84('0xff9')]?_0x376e84('0x574')+_0x516bef[_0x376e84('0xff9')]+_0x376e84('0xb0b')+_0x516bef['statusText']:_0x376e84('0x27ed'),'msg':_0x516bef[_0x376e84('0x4e8')]?JSON[_0x376e84('0x3e')](_0x516bef[_0x376e84('0x4e8')]):_0x516bef[_0x376e84('0xaab')]()});}):_0x40608c['cmList'][_0x20dd9c('0xbaa')]({'fields':'id,name','sort':'name'})['$promise']['then'](function(_0x5ae537){const _0x34b564=_0x20dd9c;_0x685f0f[_0x34b564('0x2410')]=_0x5ae537[_0x34b564('0x19b2')]||[];})[_0x20dd9c('0x11bf')](function(){const _0x7c5c9a=_0x20dd9c;return _0x40608c[_0x7c5c9a('0x1d63')][_0x7c5c9a('0xbaa')]({'userProfileId':_0x685f0f[_0x7c5c9a('0x32a')][_0x7c5c9a('0x781')],'sectionId':0x12d})[_0x7c5c9a('0x1549')];})['then'](function(_0x5b294c){const _0x1ea298=_0x20dd9c,_0x40de30=_0x5b294c&&_0x5b294c['rows']?_0x5b294c[_0x1ea298('0x19b2')][0x0]:null;if(!_0x40de30){const _0x2536c8=[];let _0x28c301=null;_0x685f0f['chatWebsite']&&(_0x28c301=_0x36f548()[_0x1ea298('0x1ad4')](_0x685f0f[_0x1ea298('0x2410')],{'id':Number(_0x685f0f[_0x1ea298('0xb50')][_0x1ea298('0x1e91')])}));for(let _0x523aa1=0x0;_0x523aa1<_0x685f0f[_0x1ea298('0x2410')][_0x1ea298('0x1e22')];_0x523aa1++){_0x28c301&&_0x685f0f['lists'][_0x523aa1]['id']===_0x28c301['id']&&(_0x685f0f[_0x1ea298('0x2410')][_0x523aa1][_0x1ea298('0x254a')]=![],_0x2536c8[_0x1ea298('0x105d')](_0x685f0f['lists'][_0x523aa1]));}_0x685f0f[_0x1ea298('0x2410')]=_0x2536c8;}else{if(!_0x40de30['autoAssociation'])return _0x40608c[_0x1ea298('0x26d1')]['get']({'sectionId':_0x40de30['id']})[_0x1ea298('0x1549')][_0x1ea298('0x11bf')](function(_0x28cd3f){const _0x28fd1f=_0x1ea298,_0x1e7658=_0x36f548()[_0x28fd1f('0x2171')](_0x28cd3f['rows'],function(_0xef282c){const _0x36244e=_0x28fd1f;return _0x36f548()['find'](_0x685f0f[_0x36244e('0x2410')],{'id':_0xef282c[_0x36244e('0x15a5')]});});let _0xefac22=null;_0x685f0f['chatWebsite']&&(_0xefac22=_0x36f548()[_0x28fd1f('0x1ad4')](_0x685f0f[_0x28fd1f('0x2410')],{'id':Number(_0x685f0f[_0x28fd1f('0xb50')][_0x28fd1f('0x1e91')])}));if(_0xefac22&&!_0x36f548()[_0x28fd1f('0x1cb3')](_0x1e7658,['id',_0xefac22['id']])){const _0x18796f=_0x36f548()[_0x28fd1f('0x1ad4')](_0x685f0f[_0x28fd1f('0x2410')],{'id':_0xefac22['id']});_0x18796f['canSelect']=![],_0x1e7658[_0x28fd1f('0x105d')](_0x18796f);}_0x685f0f['lists']=_0x1e7658;});}})[_0x20dd9c('0x151d')](function(_0x2abb5f){const _0x5793b0=_0x20dd9c;_0x5a9579[_0x5793b0('0x255')]({'title':_0x2abb5f[_0x5793b0('0xff9')]?_0x5793b0('0x574')+_0x2abb5f[_0x5793b0('0xff9')]+_0x5793b0('0xb0b')+_0x2abb5f[_0x5793b0('0x212f')]:_0x5793b0('0xb71'),'msg':_0x2abb5f[_0x5793b0('0x4e8')]?JSON['stringify'](_0x2abb5f[_0x5793b0('0x4e8')]):_0x2abb5f['toString']()});}),_0x2c4381[_0x20dd9c('0x4ee')]('admin')?_0x40608c['interval'][_0x20dd9c('0xbaa')]({'fields':_0x20dd9c('0x721'),'sort':_0x20dd9c('0x1909'),'IntervalId':'null'})[_0x20dd9c('0x1549')]['then'](function(_0x574445){const _0xfe5717=_0x20dd9c;_0x685f0f['interval']=_0x574445[_0xfe5717('0x19b2')]||[];})[_0x20dd9c('0x151d')](function(_0x2d14da){const _0x492bbb=_0x20dd9c;_0x5a9579[_0x492bbb('0x255')]({'title':_0x2d14da[_0x492bbb('0xff9')]?_0x492bbb('0x574')+_0x2d14da['status']+'\x20-\x20'+_0x2d14da['statusText']:_0x492bbb('0x135a'),'msg':_0x2d14da[_0x492bbb('0x4e8')]?JSON['stringify'](_0x2d14da[_0x492bbb('0x4e8')]):_0x2d14da['toString']()});}):_0x40608c[_0x20dd9c('0x507')][_0x20dd9c('0xbaa')]({'fields':_0x20dd9c('0x721'),'sort':_0x20dd9c('0x1909'),'IntervalId':_0x20dd9c('0xb5f')})[_0x20dd9c('0x1549')]['then'](function(_0x583596){const _0xcf7279=_0x20dd9c;_0x685f0f[_0xcf7279('0x507')]=_0x583596['rows']||[];})[_0x20dd9c('0x11bf')](function(){const _0x357cbb=_0x20dd9c;return _0x40608c[_0x357cbb('0x1d63')][_0x357cbb('0xbaa')]({'userProfileId':_0x685f0f['currentUser'][_0x357cbb('0x781')],'sectionId':0x3ec})['$promise'];})[_0x20dd9c('0x11bf')](function(_0x1803ea){const _0x4d602f=_0x20dd9c,_0xcca70b=_0x1803ea&&_0x1803ea[_0x4d602f('0x19b2')]?_0x1803ea[_0x4d602f('0x19b2')][0x0]:null;if(!_0xcca70b){const _0x3a1907=[];let _0x4aa4bc=null;_0x685f0f[_0x4d602f('0xb50')]&&(_0x4aa4bc=_0x36f548()[_0x4d602f('0x1ad4')](_0x685f0f['interval'],{'id':Number(_0x685f0f['chatWebsite']['IntervalId'])}));for(let _0x35fa3a=0x0;_0x35fa3a<_0x685f0f[_0x4d602f('0x507')][_0x4d602f('0x1e22')];_0x35fa3a++){_0x4aa4bc&&_0x685f0f[_0x4d602f('0x507')][_0x35fa3a]['id']===_0x4aa4bc['id']&&(_0x685f0f[_0x4d602f('0x507')][_0x35fa3a][_0x4d602f('0x254a')]=![],_0x3a1907[_0x4d602f('0x105d')](_0x685f0f['interval'][_0x35fa3a]));}_0x685f0f['interval']=_0x3a1907;}else{if(!_0xcca70b['autoAssociation'])return _0x40608c[_0x4d602f('0x26d1')][_0x4d602f('0xbaa')]({'sectionId':_0xcca70b['id']})['$promise'][_0x4d602f('0x11bf')](function(_0x5a51c1){const _0x7db6c6=_0x4d602f,_0x347882=_0x36f548()['map'](_0x5a51c1[_0x7db6c6('0x19b2')],function(_0x153327){const _0x42e86d=_0x7db6c6;return _0x36f548()[_0x42e86d('0x1ad4')](_0x685f0f[_0x42e86d('0x507')],{'id':_0x153327[_0x42e86d('0x15a5')]});});let _0x40f225=null;_0x685f0f[_0x7db6c6('0xb50')]&&(_0x40f225=_0x36f548()[_0x7db6c6('0x1ad4')](_0x685f0f['interval'],{'id':Number(_0x685f0f[_0x7db6c6('0xb50')][_0x7db6c6('0x6b4')])}));if(_0x40f225&&!_0x36f548()[_0x7db6c6('0x1cb3')](_0x347882,['id',_0x40f225['id']])){const _0x582144=_0x36f548()['find'](_0x685f0f[_0x7db6c6('0x507')],{'id':_0x40f225['id']});_0x582144[_0x7db6c6('0x254a')]=![],_0x347882[_0x7db6c6('0x105d')](_0x582144);}_0x685f0f[_0x7db6c6('0x507')]=_0x347882;});}})[_0x20dd9c('0x151d')](function(_0x2172b1){const _0x44c554=_0x20dd9c;_0x5a9579[_0x44c554('0x255')]({'title':_0x2172b1[_0x44c554('0xff9')]?_0x44c554('0x574')+_0x2172b1[_0x44c554('0xff9')]+'\x20-\x20'+_0x2172b1[_0x44c554('0x212f')]:'SYSTEM:GETinterval','msg':_0x2172b1[_0x44c554('0x4e8')]?JSON[_0x44c554('0x3e')](_0x2172b1[_0x44c554('0x4e8')]):_0x2172b1['toString']()});});function _0x143f87(){const _0xcecb6e=_0x20dd9c;_0x685f0f[_0xcecb6e('0x120f')]=[],_0x40608c[_0xcecb6e('0xb50')][_0xcecb6e('0x259')](_0x685f0f[_0xcecb6e('0xb50')])['$promise'][_0xcecb6e('0x11bf')](function(_0x137893){const _0x299013=_0xcecb6e;_0x685f0f['chatWebsites']['unshift'](_0x137893[_0x299013('0x2866')]()),_0x5a9579[_0x299013('0x2693')]({'title':_0x299013('0x23bc'),'msg':_0x685f0f[_0x299013('0xb50')][_0x299013('0x1909')]?_0x685f0f['chatWebsite'][_0x299013('0x1909')]+_0x299013('0x7fb'):''}),_0x160121(_0x137893);})['catch'](function(_0x3ee27b){const _0x30d6db=_0xcecb6e;if(_0x3ee27b[_0x30d6db('0x4e8')]&&_0x3ee27b[_0x30d6db('0x4e8')]['errors']&&_0x3ee27b[_0x30d6db('0x4e8')][_0x30d6db('0x120f')][_0x30d6db('0x1e22')]){_0x685f0f[_0x30d6db('0x120f')]=_0x3ee27b['data'][_0x30d6db('0x120f')]||[{'message':_0x3ee27b[_0x30d6db('0xaab')](),'type':_0x30d6db('0x521')}];for(let _0x17e7ad=0x0;_0x17e7ad<_0x3ee27b[_0x30d6db('0x4e8')]['errors']['length'];_0x17e7ad+=0x1){_0x5a9579['error']({'title':_0x3ee27b[_0x30d6db('0x4e8')][_0x30d6db('0x120f')][_0x17e7ad][_0x30d6db('0x19fd')],'msg':_0x3ee27b[_0x30d6db('0x4e8')][_0x30d6db('0x120f')][_0x17e7ad]['message']});}}else _0x5a9579['error']({'title':_0x3ee27b[_0x30d6db('0xff9')]?_0x30d6db('0x574')+_0x3ee27b[_0x30d6db('0xff9')]+_0x30d6db('0xb0b')+_0x3ee27b[_0x30d6db('0x212f')]:_0x30d6db('0x521'),'msg':_0x3ee27b[_0x30d6db('0x4e8')]?JSON[_0x30d6db('0x3e')](_0x3ee27b[_0x30d6db('0x4e8')][_0x30d6db('0x1b86')]):_0x3ee27b[_0x30d6db('0xaab')]()});});}function _0x1bc88e(){const _0x116ce4=_0x20dd9c;_0x685f0f[_0x116ce4('0x120f')]=[],_0x40608c[_0x116ce4('0xb50')][_0x116ce4('0x5ab')]({'id':_0x685f0f[_0x116ce4('0xb50')]['id']},_0x685f0f[_0x116ce4('0xb50')])[_0x116ce4('0x1549')][_0x116ce4('0x11bf')](function(_0x550d5c){const _0x3e3bf2=_0x116ce4,_0x42b815=_0x36f548()[_0x3e3bf2('0x1ad4')](_0x685f0f[_0x3e3bf2('0x235c')],{'id':_0x550d5c['id']});_0x42b815&&_0x36f548()[_0x3e3bf2('0x47b')](_0x42b815,_0x36f548()[_0x3e3bf2('0x258')](_0x550d5c['toJSON'](),_0x36f548()[_0x3e3bf2('0xe22')](_0x42b815))),_0x5a9579[_0x3e3bf2('0x2693')]({'title':'ChatWebsite\x20properly\x20saved!','msg':_0x685f0f[_0x3e3bf2('0xb50')][_0x3e3bf2('0x1909')]?_0x685f0f[_0x3e3bf2('0xb50')][_0x3e3bf2('0x1909')]+'\x20has\x20been\x20saved!':''}),_0x160121(_0x550d5c);})[_0x116ce4('0x151d')](function(_0x3eedd4){const _0x2dc842=_0x116ce4;if(_0x3eedd4['data']&&_0x3eedd4['data'][_0x2dc842('0x120f')]&&_0x3eedd4['data']['errors'][_0x2dc842('0x1e22')]){_0x685f0f[_0x2dc842('0x120f')]=_0x3eedd4['data'][_0x2dc842('0x120f')]||[{'message':_0x3eedd4[_0x2dc842('0xaab')](),'type':_0x2dc842('0x19d0')}];for(let _0x27b139=0x0;_0x27b139<_0x3eedd4[_0x2dc842('0x4e8')]['errors'][_0x2dc842('0x1e22')];_0x27b139++){_0x5a9579['error']({'title':_0x3eedd4['data'][_0x2dc842('0x120f')][_0x27b139]['type'],'msg':_0x3eedd4['data'][_0x2dc842('0x120f')][_0x27b139][_0x2dc842('0x1b86')]});}}else _0x5a9579['error']({'title':_0x3eedd4[_0x2dc842('0xff9')]?_0x2dc842('0x574')+_0x3eedd4[_0x2dc842('0xff9')]+_0x2dc842('0xb0b')+_0x3eedd4[_0x2dc842('0x212f')]:_0x2dc842('0x19d0'),'msg':_0x3eedd4[_0x2dc842('0x4e8')]?JSON[_0x2dc842('0x3e')](_0x3eedd4[_0x2dc842('0x4e8')][_0x2dc842('0x1b86')]):_0x3eedd4[_0x2dc842('0xaab')]()});});}function _0x5d82ec(_0x52ec3b){const _0x21516e=_0x20dd9c;_0x685f0f[_0x21516e('0x120f')]=[];const _0x28e054=_0x59db77['confirm']()[_0x21516e('0x134b')](_0x21516e('0x1fa9'))[_0x21516e('0x252a')]('The\x20chatWebsite\x20will\x20be\x20deleted.')['ariaLabel']('Delete\x20ChatWebsite')['ok'](_0x21516e('0x1167'))[_0x21516e('0x26c9')](_0x21516e('0x784'))['targetEvent'](_0x52ec3b);_0x59db77[_0x21516e('0xb9')](_0x28e054)['then'](function(){const _0x2fa0fa=_0x21516e;_0x40608c[_0x2fa0fa('0xb50')][_0x2fa0fa('0x2088')]({'id':_0x685f0f[_0x2fa0fa('0xb50')]['id']})[_0x2fa0fa('0x1549')][_0x2fa0fa('0x11bf')](function(){const _0x44b713=_0x2fa0fa;_0x36f548()[_0x44b713('0x14a5')](_0x685f0f[_0x44b713('0x235c')],{'id':_0x685f0f['chatWebsite']['id']}),_0x5a9579[_0x44b713('0x2693')]({'title':_0x44b713('0x1dc4'),'msg':(_0x685f0f['chatWebsite'][_0x44b713('0x1909')]||_0x44b713('0xb50'))+'\x20has\x20been\x20deleted!'}),_0x160121(_0x685f0f['chatWebsite']);})[_0x2fa0fa('0x151d')](function(_0x30f4c0){const _0x123a9f=_0x2fa0fa;if(_0x30f4c0[_0x123a9f('0x4e8')]&&_0x30f4c0[_0x123a9f('0x4e8')][_0x123a9f('0x120f')]&&_0x30f4c0['data'][_0x123a9f('0x120f')][_0x123a9f('0x1e22')]){_0x685f0f[_0x123a9f('0x120f')]=_0x30f4c0[_0x123a9f('0x4e8')][_0x123a9f('0x120f')]||[{'message':_0x30f4c0[_0x123a9f('0xaab')](),'type':'api.chatWebsite.delete'}];for(let _0x4cfb4c=0x0;_0x4cfb4c<_0x30f4c0['data'][_0x123a9f('0x120f')][_0x123a9f('0x1e22')];_0x4cfb4c++){_0x5a9579[_0x123a9f('0x255')]({'title':_0x30f4c0[_0x123a9f('0x4e8')][_0x123a9f('0x120f')][_0x4cfb4c][_0x123a9f('0x19fd')],'msg':_0x30f4c0[_0x123a9f('0x4e8')][_0x123a9f('0x120f')][_0x4cfb4c][_0x123a9f('0x1b86')]});}}else _0x5a9579['error']({'title':_0x30f4c0[_0x123a9f('0xff9')]?_0x123a9f('0x574')+_0x30f4c0[_0x123a9f('0xff9')]+_0x123a9f('0xb0b')+_0x30f4c0['statusText']:_0x123a9f('0x795'),'msg':_0x30f4c0[_0x123a9f('0x4e8')]?JSON[_0x123a9f('0x3e')](_0x30f4c0[_0x123a9f('0x4e8')][_0x123a9f('0x1b86')]):_0x30f4c0['message']||_0x30f4c0[_0x123a9f('0xaab')]()});});},function(){});}function _0x229ed7(_0x27b653){return _0x27b653===null?undefined:new Date(_0x27b653);}function _0x160121(_0x265db8){_0x59db77['hide'](_0x265db8);}}const _0x106acc=_0x26562e,_0x1b81a4=_0x351988['p']+_0x21d0f5('0x1a56'),_0x4c383d=_0x351988['p']+'src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/amazonlex/dialog.html/dialog.html',_0x51f9b2=_0x351988['p']+_0x21d0f5('0x910'),_0x121a1c=_0x351988['p']+'src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/close/dialog.html/dialog.html',_0x2912f9=_0x351988['p']+'src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/dialogflow/dialog.html/dialog.html',_0x17938d=_0x351988['p']+_0x21d0f5('0x9ec'),_0x4a032e=_0x351988['p']+_0x21d0f5('0x1b8c'),_0x4481e8=_0x351988['p']+_0x21d0f5('0x20b2'),_0x16e1af=_0x351988['p']+_0x21d0f5('0x1977'),_0x5b6b4a=_0x351988['p']+_0x21d0f5('0x1d69'),_0x195fbd=_0x351988['p']+_0x21d0f5('0x25b0'),_0x22348f=_0x351988['p']+_0x21d0f5('0x105f');_0x15ab3e[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x12a5'),'$mdDialog',_0x21d0f5('0x1b30'),'toasty','Auth'];const _0x1d6fe6={'agent':_0x1b81a4,'amazonlex':_0x4c383d,'autoreply':_0x51f9b2,'close':_0x121a1c,'dialogflow':_0x2912f9,'gotoif':_0x17938d,'gotop':_0x4a032e,'interval':_0x4481e8,'noop':_0x16e1af,'queue':_0x5b6b4a,'system':_0x195fbd,'tag':_0x22348f};function _0x15ab3e(_0x4317cf,_0x4c2bfe,_0x3f8574,_0x411398,_0x2c1d14){const _0x13a619=_0x21d0f5,_0x44a5ef=this;_0x44a5ef['currentUser']=_0x2c1d14[_0x13a619('0x2428')](),_0x44a5ef[_0x13a619('0xb50')]={},_0x44a5ef[_0x13a619('0x12d5')]={'count':0x0,'rows':[]},_0x44a5ef[_0x13a619('0x1a54')]=[],_0x44a5ef[_0x13a619('0xb25')],_0x44a5ef['query']={'sort':_0x13a619('0x2804')},_0x44a5ef[_0x13a619('0x1812')]=_0x36f548()[_0x13a619('0x4a')](_0x36f548()[_0x13a619('0xd39')]([{'app':_0x13a619('0x1979'),'appType':_0x13a619('0x507'),'types':['always','custom',_0x13a619('0x257d')],'fields':[],'isApp':![]},{'app':_0x13a619('0x2b8'),'appType':_0x13a619('0x2b8'),'type':_0x13a619('0x2b8'),'icon':'icon-apps','interval':_0x13a619('0x1830'),'required':!![],'isApp':!![],'fields':[{'title':'Value','name':'value','type':_0x13a619('0x25ed'),'param':0x0}]},{'app':'system','appType':_0x13a619('0x196d'),'type':_0x13a619('0x196d'),'icon':'icon-apps','interval':_0x13a619('0x1830'),'required':!![],'isApp':!![],'extraApi':[{'name':_0x13a619('0x1700'),'field':{'name':_0x13a619('0xb0'),'key':_0x13a619('0x1909')},'route':_0x13a619('0xb0'),'filters':{'fields':_0x13a619('0x721'),'sort':_0x13a619('0x1909'),'nolimit':!![]},'permissions':{'section':0x3f4}}],'fields':[{'title':_0x13a619('0x1ae1'),'name':_0x13a619('0x1b9f'),'type':_0x13a619('0x25ed'),'required':!![],'param':0x0},{'title':_0x13a619('0xb76'),'name':_0x13a619('0xb0'),'type':'apiselect','values':_0x13a619('0x1700'),'value':_0x13a619('0x1509'),'option':_0x13a619('0x1509'),'defaultValues':[{'value':'\x27\x27','option':_0x13a619('0x1a1a')}],'defaultValue':'\x27\x27','param':0x1}]},{'app':_0x13a619('0x110d'),'appType':_0x13a619('0x110d'),'type':_0x13a619('0x2190'),'icon':_0x13a619('0x206d'),'interval':_0x13a619('0x1830'),'isApp':!![],'fields':[{'title':'Priority','name':_0x13a619('0x2804'),'type':_0x13a619('0x139e'),'required':!![],'min':0x0,'param':0x0}]},{'app':'gotoif','appType':_0x13a619('0x7cf'),'type':_0x13a619('0x7cf'),'icon':_0x13a619('0x206d'),'interval':'*,*,*,*','isApp':!![],'fields':[{'title':_0x13a619('0x1c99'),'name':_0x13a619('0xccd'),'type':_0x13a619('0x25ed'),'required':!![],'param':0x0},{'title':_0x13a619('0x1deb'),'name':_0x13a619('0x1deb'),'type':_0x13a619('0x139e'),'min':0x1,'required':!![],'param':0x1},{'title':_0x13a619('0x7ed'),'name':_0x13a619('0x7ed'),'type':'number','min':0x1,'required':!![],'param':0x2}]},{'app':_0x13a619('0x150b'),'appType':'queue','foreignKey':_0x13a619('0x1802'),'type':_0x13a619('0x150b'),'icon':_0x13a619('0x206d'),'interval':_0x13a619('0x1830'),'isApp':!![],'extraApi':[{'name':_0x13a619('0x1de3'),'field':{'name':_0x13a619('0x150b'),'key':'name'},'route':_0x13a619('0x1c23'),'filters':{'fields':_0x13a619('0xde'),'sort':'name','nolimit':!![]},'permissions':{'section':0x1f5}}],'fields':[{'title':_0x13a619('0x1c29'),'name':_0x13a619('0x150b'),'type':_0x13a619('0x108f'),'values':'queues','value':_0x13a619('0x19d4'),'option':_0x13a619('0x19d4'),'defaultValue':0x12c,'required':!![],'param':0x0},{'title':'Timeout','name':'timeout','type':_0x13a619('0x139e'),'max':0x20c49b,'min':0x0,'required':!![],'defaultValue':0x12c,'param':0x1}]},{'app':'agent','appType':_0x13a619('0x18c4'),'type':_0x13a619('0x18c4'),'foreignKey':'UserId','icon':_0x13a619('0x206d'),'interval':'*,*,*,*','isApp':!![],'extraApi':[{'name':_0x13a619('0x1401'),'field':{'name':'agent','key':_0x13a619('0x1909')},'route':_0x13a619('0x21d9'),'filters':{'fields':_0x13a619('0x721'),'role':_0x13a619('0x18c4'),'sort':'name','nolimit':!![]},'permissions':{'section':0xca}}],'fields':[{'title':_0x13a619('0x701'),'name':'agent','type':_0x13a619('0x108f'),'values':'agents','value':'agent.name','option':_0x13a619('0xf71'),'required':!![],'param':0x0},{'title':_0x13a619('0x65'),'name':'timeout','type':'number','max':0x20c49b,'min':0x0,'required':!![],'defaultValue':0x1e,'param':0x1}]},{'app':_0x13a619('0x2132'),'appType':_0x13a619('0x2132'),'type':_0x13a619('0x2132'),'icon':_0x13a619('0x206d'),'interval':_0x13a619('0x1830'),'isApp':!![],'fields':[{'title':_0x13a619('0x16e7'),'name':_0x13a619('0x107a'),'type':'text','required':!![],'param':0x0}]},{'app':_0x13a619('0x187b'),'appType':_0x13a619('0x187b'),'type':_0x13a619('0x187b'),'icon':_0x13a619('0x206d'),'interval':'*,*,*,*','isApp':!![],'fields':[{'title':_0x13a619('0x663'),'name':_0x13a619('0x663'),'type':_0x13a619('0x2350'),'defaultValue':'1','values':[{'option':'One\x20Time','value':'1'},{'option':_0x13a619('0xbf9'),'value':'0'}],'required':!![],'param':0x0},{'title':_0x13a619('0x1823'),'name':'text','type':_0x13a619('0x265f'),'required':!![],'param':0x1}]},{'app':'tag','appType':_0x13a619('0x1d73'),'type':'tag','foreignKey':'TagId','icon':_0x13a619('0x206d'),'interval':_0x13a619('0x1830'),'isApp':!![],'extraApi':[{'name':_0x13a619('0x2763'),'field':{'name':_0x13a619('0x1d73'),'key':_0x13a619('0x1909')},'route':_0x13a619('0x1d73'),'filters':{'fields':'id,name','sort':_0x13a619('0x1909'),'nolimit':!![]},'permissions':{'section':0x3f0}}],'fields':[{'title':_0x13a619('0x23ba'),'name':_0x13a619('0x1d73'),'type':_0x13a619('0x108f'),'values':_0x13a619('0x2763'),'value':'tag.name','option':_0x13a619('0x6aa'),'required':!![],'param':0x0}]},{'app':'dialogflow','appType':_0x13a619('0x185e'),'type':_0x13a619('0x185e'),'icon':_0x13a619('0x206d'),'interval':_0x13a619('0x1830'),'isApp':!![],'fields':[{'title':'Key','name':'key','type':_0x13a619('0x25ed'),'required':!![],'param':0x0},{'title':'language','name':_0x13a619('0xeff'),'type':'select','defaultValue':_0x13a619('0x55f'),'values':[{'option':'Danish','value':_0x13a619('0x565')},{'option':_0x13a619('0x1e7'),'value':'\x27en\x27'},{'option':_0x13a619('0x1750'),'value':'\x27de\x27'},{'option':'Italian','value':'\x27it\x27'},{'option':_0x13a619('0x1f08'),'value':_0x13a619('0x1537')},{'option':_0x13a619('0x352'),'value':'\x27fr\x27'},{'option':_0x13a619('0xea'),'value':_0x13a619('0x149a')},{'option':_0x13a619('0x1b3d'),'value':_0x13a619('0x1296')},{'option':_0x13a619('0x768'),'value':_0x13a619('0x1749')},{'option':'Dutch','value':_0x13a619('0x84')},{'option':_0x13a619('0x210'),'value':_0x13a619('0x19bb')},{'option':_0x13a619('0x11e5'),'value':_0x13a619('0x1621')},{'option':_0x13a619('0x20cb'),'value':_0x13a619('0x1ad6')},{'option':'Russian','value':_0x13a619('0x19dd')},{'option':_0x13a619('0x52e'),'value':'\x27sv\x27'},{'option':_0x13a619('0x17ed'),'value':_0x13a619('0x14e2')},{'option':_0x13a619('0x2199'),'value':'\x27uk\x27'},{'option':_0x13a619('0x16e4'),'value':_0x13a619('0xd3e')},{'option':_0x13a619('0x1b2'),'value':_0x13a619('0x114b')},{'option':_0x13a619('0x1f06'),'value':_0x13a619('0x1c65')}],'required':!![],'param':0x1},{'title':_0x13a619('0x1cbc'),'name':'welcomemessage','type':_0x13a619('0x265f'),'maxlength':0xff,'param':0x2,'help':!![]}]},{'app':_0x13a619('0x1de4'),'appType':_0x13a619('0x21a8'),'type':_0x13a619('0x21a8'),'icon':_0x13a619('0x206d'),'interval':_0x13a619('0x1830'),'isApp':!![],'fields':[{'title':_0x13a619('0x24fa'),'name':_0x13a619('0x20e'),'type':_0x13a619('0x25ed'),'required':!![],'param':0x0},{'title':_0x13a619('0x1353'),'name':_0x13a619('0x1f91'),'type':'text','required':!![],'param':0x1},{'title':'PrivateKey','name':'privateKey','type':'textarea','required':!![],'param':0x2},{'title':_0x13a619('0xeff'),'name':_0x13a619('0xeff'),'type':_0x13a619('0x2350'),'defaultValue':_0x13a619('0x55f'),'values':[{'value':_0x13a619('0x114b'),'option':_0x13a619('0x2444')},{'value':_0x13a619('0xd3e'),'option':_0x13a619('0x16e4')},{'value':_0x13a619('0x1c65'),'option':'Chinese\x20(Traditional)'},{'value':_0x13a619('0x565'),'option':_0x13a619('0xaa9')},{'value':_0x13a619('0x84'),'option':'Dutch'},{'value':'\x27en\x27','option':_0x13a619('0x1e7')},{'value':'\x27en-AU\x27','option':_0x13a619('0x2067')},{'value':_0x13a619('0x130a'),'option':_0x13a619('0x1eb5')},{'value':_0x13a619('0x1933'),'option':_0x13a619('0x15af')},{'value':_0x13a619('0x99e'),'option':'English\x20(India)'},{'value':'\x27en-US\x27','option':_0x13a619('0x2623')},{'value':_0x13a619('0x140e'),'option':_0x13a619('0x352')},{'value':_0x13a619('0x7d9'),'option':'French\x20(Canada)'},{'value':'\x27fr-FR\x27','option':_0x13a619('0x2722')},{'value':_0x13a619('0x185b'),'option':_0x13a619('0x1750')},{'value':_0x13a619('0x25a9'),'option':_0x13a619('0x11db')},{'value':_0x13a619('0x149a'),'option':_0x13a619('0xea')},{'value':_0x13a619('0x141c'),'option':_0x13a619('0x12cc')},{'value':_0x13a619('0x1296'),'option':_0x13a619('0x1b3d')},{'value':_0x13a619('0x1749'),'option':'Korean'},{'value':'\x27no\x27','option':_0x13a619('0x210')},{'value':_0x13a619('0x263e'),'option':_0x13a619('0xab7')},{'value':_0x13a619('0x7ba'),'option':_0x13a619('0x1476')},{'value':_0x13a619('0xac5'),'option':_0x13a619('0x1949')},{'value':_0x13a619('0x19dd'),'option':_0x13a619('0x1995')},{'value':_0x13a619('0x1537'),'option':'Spanish'},{'value':'\x27es-419\x27','option':'Spanish\x20(Latin\x20America)'},{'value':'\x27es-ES\x27','option':'Spanish\x20(Spain)'},{'value':_0x13a619('0x254d'),'option':_0x13a619('0x52e')},{'value':_0x13a619('0x14e2'),'option':_0x13a619('0x17ed')},{'value':'\x27tr\x27','option':_0x13a619('0x2122')},{'value':_0x13a619('0x189f'),'option':'Ukrainian'}],'required':!![],'param':0x3},{'title':_0x13a619('0x1cbc'),'name':_0x13a619('0x1cbc'),'type':_0x13a619('0x265f'),'maxlength':0xff,'param':0x4,'help':!![]}]},{'app':_0x13a619('0x102c'),'appType':_0x13a619('0x102c'),'type':_0x13a619('0x102c'),'icon':_0x13a619('0x206d'),'interval':'*,*,*,*','isApp':!![],'fields':[{'title':_0x13a619('0x1a82'),'name':_0x13a619('0x1a82'),'type':_0x13a619('0x25ed'),'required':!![],'param':0x0},{'title':_0x13a619('0x1422'),'name':_0x13a619('0x1422'),'type':_0x13a619('0x25ed'),'required':!![],'param':0x1},{'title':_0x13a619('0x165a'),'name':'lexregion','type':_0x13a619('0x2350'),'defaultValue':_0x13a619('0xa80'),'values':[{'option':_0x13a619('0x13be'),'value':_0x13a619('0xa80')},{'option':_0x13a619('0x27e6'),'value':'\x27us-west-2\x27'},{'option':_0x13a619('0x1c40'),'value':'\x27eu-west-1\x27'},{'option':'Asia\x20Pacific\x20(Sydney)','value':_0x13a619('0x1942')}],'required':!![],'param':0x2},{'title':'botname','name':_0x13a619('0x1e8f'),'type':_0x13a619('0x25ed'),'required':!![],'param':0x3},{'title':_0x13a619('0x1cbc'),'name':_0x13a619('0x1cbc'),'type':_0x13a619('0x265f'),'maxlength':0xff,'param':0x4,'help':!![]}]}],[_0x13a619('0x18f5')]),{'isApp':![]}),_0x44a5ef[_0x13a619('0x257d')]={'group':{'name':'opt1','pull':_0x13a619('0x208b')},'animation':0x64,'sort':![]},_0x44a5ef[_0x13a619('0xb9b')]={'group':{'name':_0x13a619('0x16f9'),'put':'opt1'},'animation':0x64,'onAdd':function(_0x4b948e){_0x4b4b44(_0x4b948e,_0x4b948e['newIndex']);},'onSort':function(){_0x268d67();}},_0x44a5ef[_0x13a619('0x286f')]=_0x5b93ae,_0x44a5ef[_0x13a619('0x560')]=_0x51604b,_0x44a5ef[_0x13a619('0xbb6')]=_0x5a2882,_0x44a5ef['editChatWebsiteApp']=_0x4b4b44,_0x44a5ef[_0x13a619('0x1452')]=_0x44f1d7,_0x44a5ef['deleteChatWebsiteApp']=_0x4b26b8,_0x44a5ef['deleteSelectedChatWebsiteApps']=_0x37b0ec,_0x44a5ef[_0x13a619('0xf09')]=_0x268d67,_0x44a5ef[_0x13a619('0x431')]=_0x140717;function _0x5b93ae(_0x3588,_0x2620bf){const _0x5df645=_0x13a619;_0x44a5ef['chatWebsite']=_0x3588,_0x44a5ef[_0x5df645('0xb25')]=typeof _0x2620bf!==_0x5df645('0x13e9')?_0x2620bf:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x44a5ef[_0x5df645('0xb9b')][_0x5df645('0xa4b')]=!_0x44a5ef['crudPermissions'][_0x5df645('0x25db')]?!![]:![],_0x44a5ef['query']['id']=_0x3588['id'],_0x44a5ef['query'][_0x5df645('0x1210')]=!![],_0x44a5ef[_0x5df645('0x1f2a')][_0x5df645('0x287')]=!![],_0x44a5ef[_0x5df645('0xbb6')](),_0x44a5ef['getIntervals']();}function _0x51604b(_0x2093af,_0x13478f,_0x288aa5){const _0x2a3cfd=_0x13a619,_0x30426c=_0x4c2bfe['confirm']()[_0x2a3cfd('0x134b')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20application?')[_0x2a3cfd('0x1d03')](_0x2a3cfd('0x2061')+_0x2093af[_0x2a3cfd('0x18f5')]+_0x2a3cfd('0x1c78')+_0x2a3cfd('0x1a'))[_0x2a3cfd('0xb2e')](_0x2a3cfd('0x177'))['targetEvent'](_0x288aa5)['ok']('OK')[_0x2a3cfd('0x26c9')]('CANCEL');_0x4c2bfe[_0x2a3cfd('0xb9')](_0x30426c)['then'](function(){const _0x34bd89=_0x2a3cfd;_0x44a5ef['chatWebsiteApps'][_0x34bd89('0x19b2')][_0x34bd89('0x1ae')](_0x13478f,0x1),_0x268d67();},function(){const _0x293a7e=_0x2a3cfd;console[_0x293a7e('0xc78')](_0x293a7e('0x772'));});}function _0x4b4b44(_0x20bcf8,_0x2dd9b7){const _0x2f927e=_0x13a619;if(_0x44a5ef[_0x2f927e('0x12d5')][_0x2f927e('0x19b2')][_0x2f927e('0x1e22')]){const _0x4af460=_0x44a5ef[_0x2f927e('0x12d5')][_0x2f927e('0x19b2')][_0x2dd9b7]?_0x44a5ef[_0x2f927e('0x12d5')][_0x2f927e('0x19b2')][_0x2dd9b7]:_0x44a5ef[_0x2f927e('0x12d5')][_0x2f927e('0x19b2')][0x0],_0x18723a=(_0x4af460[_0x2f927e('0x27c0')]||_0x4af460[_0x2f927e('0x18f5')])[_0x2f927e('0x20d5')]();_0x4c2bfe[_0x2f927e('0xb9')]({'controller':_0x2f927e('0x1dd9')+_0x18723a+'DialogController','controllerAs':'vm','templateUrl':_0x1d6fe6[_0x18723a],'parent':angular[_0x2f927e('0x1e73')](_0x3f8574[_0x2f927e('0x1d2')]),'targetEvent':_0x20bcf8,'clickOutsideToClose':!![],'locals':{'chatWebsiteApp':_0x4af460,'chatWebsite':_0x44a5ef[_0x2f927e('0xb50')],'crudPermissions':_0x44a5ef[_0x2f927e('0xb25')]}})[_0x2f927e('0x11bf')](function(_0x268e4d){const _0x59ad07=_0x2f927e;_0x268e4d&&(_0x268e4d['id']?_0x44a5ef[_0x59ad07('0x12d5')][_0x59ad07('0x19b2')][_0x2dd9b7]=_0x268e4d:_0x44a5ef['chatWebsiteApps']['rows']['splice'](_0x2dd9b7,0x0,_0x268e4d),_0x268d67());})[_0x2f927e('0x151d')](function(_0x265be4){const _0x394204=_0x2f927e;_0x265be4&&_0x411398[_0x394204('0x255')]({'title':_0x265be4['status']?_0x394204('0x574')+_0x265be4[_0x394204('0xff9')]+'\x20-\x20'+_0x265be4[_0x394204('0x212f')]:_0x394204('0x154c'),'msg':_0x265be4[_0x394204('0x4e8')]?JSON['stringify'](_0x265be4[_0x394204('0x4e8')]):_0x265be4[_0x394204('0xaab')]()});});}}function _0x44f1d7(_0x2a8e38,_0x40054d){const _0x2108fa=_0x13a619;if(_0x44a5ef['chatWebsiteApps'][_0x2108fa('0x19b2')]['length']){const _0x249df9=_0x44a5ef[_0x2108fa('0x12d5')][_0x2108fa('0x19b2')][_0x40054d]?_0x44a5ef['chatWebsiteApps'][_0x2108fa('0x19b2')][_0x40054d]:_0x44a5ef[_0x2108fa('0x12d5')][_0x2108fa('0x19b2')][0x0];_0x4c2bfe[_0x2108fa('0xb9')]({'controller':_0x2108fa('0x1c1d'),'controllerAs':'vm','templateUrl':_0x4481e8,'parent':angular[_0x2108fa('0x1e73')](_0x3f8574['body']),'targetEvent':_0x2a8e38,'clickOutsideToClose':!![],'locals':{'interval':{'interval':_0x249df9['interval'],'IntervalId':_0x249df9[_0x2108fa('0x6b4')],'application':!![]},'intervals':[],'crudPermissions':_0x44a5ef[_0x2108fa('0xb25')]}})[_0x2108fa('0x11bf')](function(_0x883e1d){const _0x275b12=_0x2108fa;_0x883e1d&&(_0x249df9[_0x275b12('0x507')]=_0x883e1d[_0x275b12('0x507')]||_0x275b12('0x1830'),_0x249df9[_0x275b12('0x6b4')]=_0x883e1d['IntervalId']||null,_0x268d67());});}}function _0x268d67(){const _0xf5e96b=_0x13a619;let _0x9963f1=0x1,_0x303672=[];for(let _0x5a1de8=0x0;_0x5a1de8<_0x44a5ef['chatWebsiteApps'][_0xf5e96b('0x19b2')]['length'];_0x5a1de8++){const _0x4989d1=_0x44a5ef['chatWebsiteApps']['rows'][_0x5a1de8],_0x42b7d9=[],_0x1ec461=[];_0x4989d1[_0xf5e96b('0xe82')]=_0x4989d1[_0xf5e96b('0x507')]!=='*,*,*,*'?[_0x4989d1[_0xf5e96b('0x507')]]:_0x4989d1[_0xf5e96b('0x6b4')]?_0x36f548()[_0xf5e96b('0x2171')](_0x36f548()[_0xf5e96b('0xdb4')](_0x44a5ef['intervals']['rows'],{'IntervalId':_0x4989d1['IntervalId']}),_0xf5e96b('0x507')):[],_0x4989d1[_0xf5e96b('0x1c87')]=_0x44a5ef[_0xf5e96b('0xb50')][_0xf5e96b('0x1c87')],_0x4989d1['exten']=_0x44a5ef[_0xf5e96b('0xb50')][_0xf5e96b('0x4c6')],_0x4989d1[_0xf5e96b('0x19fd')]&&(_0x4989d1[_0xf5e96b('0x19fd')]=_0x4989d1[_0xf5e96b('0x19fd')][_0xf5e96b('0x20d5')]()),_0x4989d1[_0xf5e96b('0x2804')]=_0x42b7d9[_0xf5e96b('0x1e22')]?_0x36f548()[_0xf5e96b('0x1093')](_0x42b7d9)[_0xf5e96b('0x2804')]+0x1:_0x9963f1,_0x9963f1=(_0x1ec461[_0xf5e96b('0x1e22')]?_0x36f548()[_0xf5e96b('0x1093')](_0x1ec461)[_0xf5e96b('0x2804')]:_0x4989d1['priority'])+0x1,_0x303672=_0x36f548()[_0xf5e96b('0x20bf')](_0x303672,_0x42b7d9,[_0x4989d1],_0x1ec461);}_0x4317cf[_0xf5e96b('0xb50')][_0xf5e96b('0x25ec')]({'id':_0x44a5ef['chatWebsite']['id']},_0x36f548()['sortBy'](_0x303672,'priority'))['$promise'][_0xf5e96b('0x11bf')](function(_0x281f09){const _0x1b1268=_0xf5e96b;_0x44a5ef[_0x1b1268('0x12d5')][_0x1b1268('0x19b2')]=_0x281f09[_0x1b1268('0x19b2')];})[_0xf5e96b('0x151d')](function(_0x43305a){const _0x256131=_0xf5e96b;console[_0x256131('0x255')](_0x43305a);});}function _0x1bd4ba(_0x2814d0){const _0x4ca52c=_0x13a619;_0x44a5ef[_0x4ca52c('0x12d5')]=_0x2814d0||{'count':0x0,'rows':[]};}function _0x140717(){const _0x222dac=_0x13a619;return _0x4317cf[_0x222dac('0x507')]['get']({'fields':'id,interval,IntervalId'})[_0x222dac('0x1549')][_0x222dac('0x11bf')](function(_0x3f140b){_0x44a5ef['intervals']=_0x3f140b;})[_0x222dac('0x151d')](function(_0x31de20){const _0x289c80=_0x222dac;console[_0x289c80('0x255')](_0x31de20);});}function _0x5a2882(){const _0x5e8adf=_0x13a619;_0x44a5ef[_0x5e8adf('0x13f')]=_0x4317cf[_0x5e8adf('0xb50')][_0x5e8adf('0xc99')](_0x44a5ef[_0x5e8adf('0x1f2a')],_0x1bd4ba)[_0x5e8adf('0x1549')];}function _0x4b26b8(_0x225140){const _0x3f3947=_0x13a619;_0x36f548()['remove'](_0x44a5ef['chatWebsiteApps']['rows'],{'id':_0x225140['id']}),_0x268d67(),_0x411398[_0x3f3947('0x2693')]({'title':_0x3f3947('0xb44'),'msg':_0x225140['app']?_0x225140[_0x3f3947('0x18f5')]+'\x20has\x20been\x20deleted!':''});}function _0x37b0ec(_0x2393ac){const _0x11f1d2=_0x13a619,_0x4c2664=_0x4c2bfe[_0x11f1d2('0x132b')]()[_0x11f1d2('0x134b')](_0x11f1d2('0x2780'))['htmlContent'](''+_0x44a5ef[_0x11f1d2('0x1a54')][_0x11f1d2('0x1e22')]+'\x20selected'+_0x11f1d2('0x1a'))[_0x11f1d2('0xb2e')]('delete\x20applications')[_0x11f1d2('0x1e25')](_0x2393ac)['ok']('OK')[_0x11f1d2('0x26c9')](_0x11f1d2('0x772'));_0x4c2bfe[_0x11f1d2('0xb9')](_0x4c2664)[_0x11f1d2('0x11bf')](function(){const _0x571b2a=_0x11f1d2;_0x44a5ef[_0x571b2a('0x1a54')]['forEach'](function(_0x599ad3){const _0x4acf29=_0x571b2a;_0x36f548()[_0x4acf29('0x14a5')](_0x44a5ef[_0x4acf29('0x12d5')][_0x4acf29('0x19b2')],{'id':_0x599ad3['id']});}),_0x44a5ef[_0x571b2a('0x1a54')]=[],_0x268d67();});}}const _0x58a1ee=_0x15ab3e;_0x4009f7['$inject']=[_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0x142d'),_0x21d0f5('0x12a5'),_0x21d0f5('0xb50'),'chatWebsites',_0x21d0f5('0x25f9'),_0x21d0f5('0xb6b'),_0x21d0f5('0x1150'),_0x21d0f5('0xb25')];function _0x4009f7(_0x2c1228,_0x4e42a5,_0x44d680,_0x12c756,_0x20ab9c,_0x16dee1,_0x12a66c,_0x4b0405,_0x59b413,_0x4b3e51){const _0x3fa715=_0x21d0f5,_0x31825c=this;_0x31825c[_0x3fa715('0x32a')]=_0x59b413[_0x3fa715('0x2428')](),_0x31825c[_0x3fa715('0xb50')]=_0x20ab9c,_0x31825c[_0x3fa715('0xb25')]=_0x4b3e51,_0x31825c[_0x3fa715('0x25f9')]=_0x12a66c,_0x31825c[_0x3fa715('0x22')]=[],_0x31825c['allowedItems']=[],_0x31825c[_0x3fa715('0x26cc')]=[],_0x31825c[_0x3fa715('0x1c6f')]=[],_0x31825c[_0x3fa715('0x21ed')]=[],_0x31825c['pendingChanges']=![],_0x31825c[_0x3fa715('0x277c')]=_0x26edd7,_0x31825c[_0x3fa715('0x280')]=_0x1f1fd5,_0x31825c[_0x3fa715('0xc4e')]=_0x44aa50,_0x31825c[_0x3fa715('0xec5')]={'readOnly':!_0x31825c[_0x3fa715('0xb25')][_0x3fa715('0x25db')],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x3fa715('0x1909'),'line1':_0x3fa715('0x27af'),'line2':['name',_0x3fa715('0x1a04')],'line3':'','labelAll':_0x4b0405['instant']('APP.ALL_AGENTS'),'labelSelected':_0x4b0405[_0x3fa715('0x10c2')](_0x3fa715('0x24b4')),'transferCallback':function(){const _0x2d1923=_0x3fa715,_0x189026=_0x36f548()[_0x2d1923('0x1a1b')](_0x31825c[_0x2d1923('0x21ed')],_0x31825c['selectedItems'],'id');_0x31825c[_0x2d1923('0x1eda')]=_0x36f548()['isEmpty'](_0x189026)?![]:!![];}};function _0x26edd7(){const _0x492311=_0x3fa715;return _0x59b413[_0x492311('0x4ee')]('admin')?_0x2ff479()[_0x492311('0x151d')](function(_0x51a8b4){const _0x58e01d=_0x492311;_0x44d680['error']({'title':_0x51a8b4[_0x58e01d('0xff9')]?_0x58e01d('0x574')+_0x51a8b4['status']+_0x58e01d('0xb0b')+_0x51a8b4[_0x58e01d('0x212f')]:_0x58e01d('0x912'),'msg':_0x51a8b4[_0x58e01d('0xff9')]?JSON[_0x58e01d('0x3e')](_0x51a8b4[_0x58e01d('0x4e8')]):_0x51a8b4[_0x58e01d('0xaab')]()});}):_0x139787()[_0x492311('0x11bf')](function(_0x23141f){const _0x283a93=_0x492311;return _0x31825c[_0x283a93('0xe6')]=_0x23141f,_0x2ff479();})[_0x492311('0x151d')](function(_0x4676ad){const _0x20ea65=_0x492311;_0x44d680['error']({'title':_0x4676ad['status']?_0x20ea65('0x574')+_0x4676ad[_0x20ea65('0xff9')]+_0x20ea65('0xb0b')+_0x4676ad['statusText']:_0x20ea65('0x912'),'msg':_0x4676ad['status']?JSON[_0x20ea65('0x3e')](_0x4676ad[_0x20ea65('0x4e8')]):_0x4676ad[_0x20ea65('0xaab')]()});});}function _0x139787(){return _0x4e42a5(function(_0x21853e,_0x2f64c8){const _0x44c8f1=a0_0xaf0c;_0x12c756[_0x44c8f1('0x1d63')][_0x44c8f1('0xbaa')]({'userProfileId':_0x31825c[_0x44c8f1('0x32a')][_0x44c8f1('0x781')],'name':'Agents'})[_0x44c8f1('0x1549')][_0x44c8f1('0x11bf')](function(_0x12d335){const _0x62467f=_0x44c8f1,_0x896e2c=_0x12d335&&_0x12d335[_0x62467f('0x19b2')]?_0x12d335[_0x62467f('0x19b2')][0x0]:null;_0x21853e(_0x896e2c);})[_0x44c8f1('0x151d')](function(_0x311337){_0x2f64c8(_0x311337);});});}function _0x2ff479(){return _0x4e42a5(function(_0x1a0e2e,_0x52c365){const _0x2051b0=a0_0xaf0c;return _0x36ae28()[_0x2051b0('0x11bf')](function(_0x3bed38){const _0x4c7fea=_0x2051b0;return _0x31825c['items']=_0x3bed38[_0x4c7fea('0x19b2')]?_0x3bed38[_0x4c7fea('0x19b2')]:[],_0x59b413['hasRole']('admin')?_0x3bed38:_0x31825c[_0x4c7fea('0xe6')]?_0x31825c['section'][_0x4c7fea('0xf11')]?_0x3bed38:_0x55a16b():null;})['then'](function(_0x5f1039){const _0x311fc4=_0x2051b0,_0xefb992=_0x5f1039&&_0x5f1039[_0x311fc4('0x19b2')]?_0x5f1039[_0x311fc4('0x19b2')]:[];return _0x31825c[_0x311fc4('0x63')]=_0x36f548()[_0x311fc4('0x2171')](_0xefb992,function(_0x230e77){const _0x4706ef=_0x311fc4;return _0x36f548()[_0x4706ef('0x1ad4')](_0x31825c[_0x4706ef('0x22')],{'id':_0x59b413[_0x4706ef('0x4ee')]('admin')||_0x31825c[_0x4706ef('0xe6')]['autoAssociation']?_0x230e77['id']:_0x230e77[_0x4706ef('0x15a5')]});}),_0x31825c[_0x311fc4('0x1c6f')]=angular[_0x311fc4('0x6fb')](_0x31825c['allowedItems']),_0x31825c[_0x311fc4('0x22')][_0x311fc4('0x1f88')](function(_0x56da49){const _0x177146=_0x311fc4,_0x3fdafd=_0x36f548()[_0x177146('0x1ad4')](_0x31825c[_0x177146('0x63')],{'id':_0x56da49['id']});_0x59b413['hasRole']('admin')?_0x56da49[_0x177146('0xde9')]=!![]:_0x56da49[_0x177146('0xde9')]=typeof _0x3fdafd!=='undefined'?!![]:![];}),_0x99d417();})['then'](function(_0x2a2a18){const _0x10d3d7=_0x2051b0,_0x37c5b0=_0x2a2a18&&_0x2a2a18['rows']?_0x2a2a18['rows']:[];_0x31825c[_0x10d3d7('0x26cc')]=_0x36f548()[_0x10d3d7('0x2171')](_0x37c5b0,function(_0x436e0b){const _0x833ea2=_0x10d3d7,_0x28f4a0=_0x36f548()[_0x833ea2('0x1ad4')](_0x31825c[_0x833ea2('0x22')],{'id':_0x436e0b['id']});return _0x28f4a0['penalty']=_0x436e0b[_0x833ea2('0x1e9e')]?'penalty\x20'+_0x436e0b[_0x833ea2('0x1e9e')][_0x833ea2('0xf47')]:'',_0x28f4a0[_0x833ea2('0x1a04')]=typeof _0x436e0b[_0x833ea2('0x1a04')]!==_0x833ea2('0x13e9')?'<'+_0x436e0b['internal']+'>':'',_0x28f4a0;}),_0x31825c[_0x10d3d7('0x21ed')]=angular['copy'](_0x31825c[_0x10d3d7('0x26cc')]),_0x31825c[_0x10d3d7('0xec5')]['selectedItems']=_0x31825c['selectedItems'],_0x31825c[_0x10d3d7('0xec5')][_0x10d3d7('0x22')]=_0x36f548()[_0x10d3d7('0x2753')](_0x31825c[_0x10d3d7('0x63')],_0x31825c[_0x10d3d7('0xec5')]['selectedItems'],'id'),_0x1a0e2e();})[_0x2051b0('0x151d')](function(_0x93f34f){_0x52c365(_0x93f34f);});});}function _0x55a16b(){return _0x4e42a5(function(_0x54415e,_0x852de2){const _0x196797=a0_0xaf0c;return _0x12c756['userProfileResource'][_0x196797('0xbaa')]({'sectionId':_0x31825c[_0x196797('0xe6')]['id'],'nolimit':!![]})[_0x196797('0x1549')][_0x196797('0x11bf')](function(_0x54184c){_0x54415e(_0x54184c);})[_0x196797('0x151d')](function(_0x198587){_0x852de2(_0x198587);});});}function _0x99d417(){return _0x4e42a5(function(_0x1d12c3,_0x48b5dc){const _0x42ea13=a0_0xaf0c;return _0x12c756[_0x42ea13('0xb50')]['getAgents']({'id':_0x31825c[_0x42ea13('0xb50')]['id'],'fields':_0x42ea13('0x13d3'),'nolimit':!![],'role':_0x42ea13('0x18c4')})[_0x42ea13('0x1549')]['then'](function(_0x3c5b8f){_0x1d12c3(_0x3c5b8f);})['catch'](function(_0xd73a00){_0x48b5dc(_0xd73a00);});});}function _0x36ae28(){return _0x4e42a5(function(_0x351878,_0xb1e0e6){const _0x4385ba=a0_0xaf0c;return _0x12c756[_0x4385ba('0x21d9')][_0x4385ba('0xbaa')]({'fields':_0x4385ba('0x13d3'),'nolimit':!![],'role':'agent'})[_0x4385ba('0x1549')][_0x4385ba('0x11bf')](function(_0x552b6a){_0x351878(_0x552b6a);})[_0x4385ba('0x151d')](function(_0x2223f9){_0xb1e0e6(_0x2223f9);});});}function _0x4736b3(_0x574ba4){return _0x4e42a5(function(_0x9dd6fb,_0x4c29ac){const _0x35611d=a0_0xaf0c;_0x36f548()['isEmpty'](_0x574ba4)?_0x9dd6fb():_0x12c756[_0x35611d('0xb50')][_0x35611d('0x110a')]({'id':_0x31825c['chatWebsite']['id'],'ids':_0x36f548()[_0x35611d('0x2171')](_0x574ba4,'id')})['$promise'][_0x35611d('0x11bf')](function(){_0x9dd6fb();})[_0x35611d('0x151d')](function(_0x2238fd){_0x4c29ac(_0x2238fd);});});}function _0x2f4a66(_0x1d6c01){return _0x4e42a5(function(_0x3905c5,_0x738684){const _0x5a3218=a0_0xaf0c;_0x36f548()[_0x5a3218('0x1fc5')](_0x1d6c01)?_0x3905c5():_0x12c756[_0x5a3218('0xb50')][_0x5a3218('0x1ec0')]({'id':_0x31825c[_0x5a3218('0xb50')]['id'],'ids':_0x36f548()[_0x5a3218('0x2171')](_0x1d6c01,'id')})[_0x5a3218('0x1549')][_0x5a3218('0x11bf')](function(){_0x3905c5();})[_0x5a3218('0x151d')](function(_0x373161){_0x738684(_0x373161);});});}function _0x1f1fd5(){const _0x2f10d4=_0x3fa715,_0x4c69b5=_0x36f548()[_0x2f10d4('0x2753')](_0x31825c[_0x2f10d4('0x21ed')],_0x31825c[_0x2f10d4('0x26cc')],'id'),_0x3bd959=_0x36f548()[_0x2f10d4('0x2753')](_0x31825c['selectedItems'],_0x31825c[_0x2f10d4('0x21ed')],'id');return _0x2f4a66(_0x4c69b5)[_0x2f10d4('0x11bf')](function(){return _0x4736b3(_0x3bd959);})[_0x2f10d4('0x11bf')](function(){const _0x2e5648=_0x2f10d4;_0x31825c['pendingChanges']=![],_0x31825c[_0x2e5648('0x1c6f')]=angular[_0x2e5648('0x6fb')](_0x31825c['allowedItems']),_0x31825c[_0x2e5648('0x21ed')]=angular[_0x2e5648('0x6fb')](_0x31825c[_0x2e5648('0x26cc')]),_0x44d680[_0x2e5648('0x2693')]({'title':'SUCCESS','msg':_0x2e5648('0x2273')});})[_0x2f10d4('0x151d')](function(_0x4c5b0b){const _0xda563e=_0x2f10d4;_0x44d680['error']({'title':_0x4c5b0b[_0xda563e('0xff9')]?_0xda563e('0x574')+_0x4c5b0b['status']+_0xda563e('0xb0b')+_0x4c5b0b['statusText']:_0xda563e('0x1b7f'),'msg':_0x4c5b0b[_0xda563e('0xff9')]?JSON[_0xda563e('0x3e')](_0x4c5b0b[_0xda563e('0x4e8')]):_0x4c5b0b[_0xda563e('0xaab')]()});});}function _0x44aa50(){const _0x5121bd=_0x3fa715;_0x2c1228[_0x5121bd('0x237e')]();}}const _0x1f4bfb=_0x4009f7;_0x1d1f2e['$inject']=['$cookies','toasty'];function _0x1d1f2e(_0x148e58,_0x3fc9a4){const _0x5c1785=_0x21d0f5,_0x52797c=this,_0x89aec6=0x8,_0x5b5b62=_0x89aec6*0x400*0x400;_0x52797c['chatWebsite']={},_0x52797c[_0x5c1785('0xb25')],_0x52797c[_0x5c1785('0x1fad')]={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x5b5b62,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x52797c[_0x5c1785('0x13b8')]={'flow':{}},_0x52797c[_0x5c1785('0x92e')]=![],_0x52797c[_0x5c1785('0x1c03')]=_0x4b9d50,_0x52797c['upload']=_0xf20d50,_0x52797c[_0x5c1785('0x272b')]=_0xd0f6c4,_0x52797c[_0x5c1785('0x286f')]=_0x116bdc;function _0x116bdc(_0x10f4a6,_0xaafb15){const _0x4ac901=_0x5c1785;_0x52797c[_0x4ac901('0xb50')]=angular[_0x4ac901('0x6fb')](_0x10f4a6),_0x52797c[_0x4ac901('0xb25')]=typeof _0xaafb15!==_0x4ac901('0x13e9')?_0xaafb15:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x52797c['ngFlowOptions']['target']='/api/chat/websites/:id/avatar'['replace'](_0x4ac901('0xa2d'),_0x52797c[_0x4ac901('0xb50')]['id']),_0x52797c[_0x4ac901('0xb50')][_0x4ac901('0x25e2')]=[];}function _0x4b9d50(_0x37276e){const _0x21962d=_0x5c1785,_0x3fa41=[_0x21962d('0x2043'),_0x21962d('0x51d')];if(!_0x36f548()['includes'](_0x3fa41,_0x37276e['getExtension']()))return _0x3fc9a4['error']({'title':_0x21962d('0x782')+_0x37276e[_0x21962d('0x115f')](),'msg':_0x21962d('0x9bf')+_0x3fa41[_0x21962d('0xa04')]()}),![];if(_0x37276e[_0x21962d('0x12dd')]>_0x5b5b62)return _0x3fc9a4[_0x21962d('0x255')]({'title':_0x21962d('0xc56'),'msg':'The\x20max\x20allowed\x20size\x20is\x20'+_0x89aec6+'MB'}),![];const _0x574219={'id':_0x37276e['uniqueIdentifier'],'file':_0x37276e,'type':_0x21962d('0xd9b')};return _0x52797c[_0x21962d('0xb50')][_0x21962d('0x25e2')][_0x21962d('0x880')](_0x574219),!![];}function _0xf20d50(){const _0x141686=_0x5c1785;_0x52797c[_0x141686('0x13b8')][_0x141686('0x2414')]['opts']['headers']={'X-Requested-With':_0x141686('0x19a7'),'Authorization':'Bearer\x20'+_0x148e58[_0x141686('0xbaa')](_0x141686('0xc2b'))},_0x52797c[_0x141686('0x13b8')]['flow'][_0x141686('0x1d01')]();}function _0xd0f6c4(_0x3468dd){const _0x27d380=_0x5c1785;angular[_0x27d380('0x1f88')](_0x52797c['chatWebsite']['images'],function(_0x1d5103){const _0x3916c7=_0x27d380;if(_0x1d5103['id']===_0x3468dd[_0x3916c7('0x40b')]){const _0x3e8b7c=new FileReader();_0x3e8b7c[_0x3916c7('0x26dd')](_0x1d5103[_0x3916c7('0x2889')][_0x3916c7('0x2889')]),_0x3e8b7c[_0x3916c7('0x1403')]=function(_0x54f963){const _0x3e17c9=_0x3916c7;_0x1d5103[_0x3e17c9('0x259e')]=_0x54f963[_0x3e17c9('0xc7a')][_0x3e17c9('0x252e')];},_0x1d5103[_0x3916c7('0x19fd')]=_0x3916c7('0x5b1');}});}}const _0x52e7d4=_0x1d1f2e;_0x29b712[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0x142d'),_0x21d0f5('0x24d0'),_0x21d0f5('0xb50'),'api',_0x21d0f5('0x1150'),'crudPermissions'];function _0x29b712(_0x1852f9,_0x2c1c8e,_0x202e1a,_0x195d8d,_0x2d17e8,_0x35c8e3,_0x11ad6d,_0x23d647){const _0x4e49f5=_0x21d0f5,_0x2cafe9=this;_0x2cafe9[_0x4e49f5('0x32a')]=_0x11ad6d[_0x4e49f5('0x2428')](),_0x2cafe9['errors']=[],_0x2cafe9[_0x4e49f5('0x134b')]=_0x4e49f5('0x2435')+(_0x195d8d[_0x4e49f5('0x27c0')]||_0x195d8d[_0x4e49f5('0x18f5')])['toUpperCase'](),_0x2cafe9[_0x4e49f5('0x18c4')]=angular[_0x4e49f5('0x6fb')](_0x195d8d),_0x2cafe9[_0x4e49f5('0xb25')]=_0x23d647,_0x2cafe9['hasModulePermissions']={};if(_0x2cafe9['agent'][_0x4e49f5('0x13fc')])switch(_0x2cafe9[_0x4e49f5('0x18c4')]['appType']?_0x2cafe9[_0x4e49f5('0x18c4')][_0x4e49f5('0x27c0')][_0x4e49f5('0x20d5')]():_0x2cafe9['agent'][_0x4e49f5('0x18f5')][_0x4e49f5('0x20d5')]()){case _0x4e49f5('0xa8d'):break;case _0x4e49f5('0x185e'):{const _0x3ffe6a=_0x2cafe9[_0x4e49f5('0x18c4')][_0x4e49f5('0x13fc')][_0x4e49f5('0xaf8')](',');_0x2cafe9[_0x4e49f5('0x18c4')]['key']=_0x3ffe6a[0x0],_0x2cafe9[_0x4e49f5('0x18c4')][_0x4e49f5('0xeff')]=_0x3ffe6a[0x1],_0x2cafe9[_0x4e49f5('0x18c4')][_0x4e49f5('0x1cbc')]=_0x3ffe6a['slice'](0x2,_0x3ffe6a[_0x4e49f5('0x1e22')])[_0x4e49f5('0xa04')](',');}break;case _0x4e49f5('0x21a8'):{const _0xf7237c=_0x2cafe9[_0x4e49f5('0x18c4')]['appdata']['split'](',');_0x2cafe9['agent']['projectId']=_0xf7237c[0x0],_0x2cafe9['agent'][_0x4e49f5('0x1f91')]=_0xf7237c[0x1],_0x2cafe9[_0x4e49f5('0x18c4')][_0x4e49f5('0x1c6c')]=_0xf7237c[0x2],_0x2cafe9[_0x4e49f5('0x18c4')]['language']=_0xf7237c[0x3],_0x2cafe9['agent'][_0x4e49f5('0x1cbc')]=_0xf7237c['slice'](0x4,_0xf7237c[_0x4e49f5('0x1e22')])[_0x4e49f5('0xa04')](',');}break;case'amazonlex':{const _0x1069fd=_0x2cafe9[_0x4e49f5('0x18c4')][_0x4e49f5('0x13fc')][_0x4e49f5('0xaf8')](',');_0x2cafe9[_0x4e49f5('0x18c4')][_0x4e49f5('0x1a82')]=_0x1069fd[0x0],_0x2cafe9[_0x4e49f5('0x18c4')][_0x4e49f5('0x1422')]=_0x1069fd[0x1],_0x2cafe9[_0x4e49f5('0x18c4')][_0x4e49f5('0x165a')]=_0x1069fd[0x2],_0x2cafe9[_0x4e49f5('0x18c4')][_0x4e49f5('0x1e8f')]=_0x1069fd[0x3],_0x2cafe9[_0x4e49f5('0x18c4')][_0x4e49f5('0x1cbc')]=_0x1069fd[_0x4e49f5('0x1b77')](0x4,_0x1069fd['length'])[_0x4e49f5('0xa04')](',');}break;case _0x4e49f5('0x187b'):{const _0x360724=_0x2cafe9['agent'][_0x4e49f5('0x13fc')]['split'](',');_0x2cafe9[_0x4e49f5('0x18c4')][_0x4e49f5('0x663')]=isNaN(_0x360724[0x0])?_0x360724[0x0]:parseInt(_0x360724[0x0],0xa),_0x2cafe9[_0x4e49f5('0x18c4')][_0x4e49f5('0x25ed')]=_0x360724[_0x4e49f5('0x1b77')](0x1,_0x360724[_0x4e49f5('0x1e22')])[_0x4e49f5('0xa04')](',');}break;case _0x4e49f5('0x1b86'):_0x2cafe9['agent'][_0x4e49f5('0x25ed')]=_0x2cafe9[_0x4e49f5('0x18c4')][_0x4e49f5('0x13fc')];break;case _0x4e49f5('0xe50'):_0x2cafe9[_0x4e49f5('0x18c4')][_0x4e49f5('0x1909')]=_0x2cafe9[_0x4e49f5('0x18c4')]['appdata'][_0x4e49f5('0xaf8')]('=')[0x0],_0x2cafe9['agent'][_0x4e49f5('0x10cc')]=_0x2cafe9['agent'][_0x4e49f5('0x13fc')]['split']('=')[0x1];break;case _0x4e49f5('0x1efd'):_0x2cafe9[_0x4e49f5('0x18c4')][_0x4e49f5('0xef0')]=_0x2cafe9[_0x4e49f5('0x18c4')][_0x4e49f5('0x13fc')];break;default:{const _0x82918d=_0x2cafe9[_0x4e49f5('0x18c4')]['appdata'][_0x4e49f5('0xaf8')](',');_0x2cafe9[_0x4e49f5('0x18c4')][_0x4e49f5('0x18c4')]=_0x36f548()[_0x4e49f5('0x1fc5')](_0x82918d[0x0])?_0x82918d[0x0]:isNaN(_0x82918d[0x0])?_0x82918d[0x0]:parseInt(_0x82918d[0x0],0xa),_0x2cafe9[_0x4e49f5('0x18c4')][_0x4e49f5('0xfbe')]=_0x36f548()['isEmpty'](_0x82918d[0x1])?_0x82918d[0x1]:isNaN(_0x82918d[0x1])?_0x82918d[0x1]:parseInt(_0x82918d[0x1],0xa);}break;}else _0x2cafe9[_0x4e49f5('0x18c4')]['timeout']=0x1e;_0x2cafe9['agent'][_0x4e49f5('0x19fd')]&&_0x2cafe9[_0x4e49f5('0x18c4')][_0x4e49f5('0x19fd')][_0x4e49f5('0x20d5')]()==='outbound'&&_0x2cafe9[_0x4e49f5('0x18c4')][_0x4e49f5('0x27c0')][_0x4e49f5('0x20d5')]()==='outbounddial'&&(_0x2cafe9['agent'][_0x4e49f5('0x2137')]=_0x2cafe9['agent'][_0x4e49f5('0x1546')]?_0x2cafe9[_0x4e49f5('0x18c4')][_0x4e49f5('0x1546')][_0x4e49f5('0xaf8')]('$')[0x0]:undefined,_0x2cafe9[_0x4e49f5('0x18c4')]['callerId']=_0x2cafe9['agent'][_0x4e49f5('0xc38')]?_0x4e49f5('0x83a')+_0x2cafe9[_0x4e49f5('0x18c4')][_0x4e49f5('0xc38')]:undefined);_0x2cafe9[_0x4e49f5('0xe26')]=_0x5eeef,_0x2cafe9[_0x4e49f5('0xc4e')]=_0xd91eed,_0x11ad6d['hasRole'](_0x4e49f5('0xf45'))?_0x35c8e3[_0x4e49f5('0x21d9')][_0x4e49f5('0xbaa')]({'fields':'id,name','role':_0x4e49f5('0x18c4'),'sort':'name','nolimit':_0x4e49f5('0x204c')})['$promise']['then'](function(_0x1941b1){const _0x2ffb9f=_0x4e49f5;_0x2cafe9[_0x2ffb9f('0x1401')]=_0x1941b1[_0x2ffb9f('0x19b2')]||[];})[_0x4e49f5('0x151d')](function(_0x314770){const _0x406948=_0x4e49f5;_0x202e1a['error']({'title':_0x314770[_0x406948('0xff9')]?_0x406948('0x574')+_0x314770[_0x406948('0xff9')]+'\x20-\x20'+_0x314770[_0x406948('0x212f')]:'SYSTEM:GET_AGENTS','msg':_0x314770[_0x406948('0x4e8')]?JSON['stringify'](_0x314770[_0x406948('0x4e8')]):_0x314770[_0x406948('0xaab')]()});}):_0x35c8e3[_0x4e49f5('0x21d9')]['get']({'fields':_0x4e49f5('0x721'),'role':_0x4e49f5('0x18c4'),'sort':_0x4e49f5('0x1909'),'nolimit':_0x4e49f5('0x204c')})[_0x4e49f5('0x1549')][_0x4e49f5('0x11bf')](function(_0x4dcde6){const _0x5e7070=_0x4e49f5;_0x2cafe9['agents']=_0x4dcde6[_0x5e7070('0x19b2')]||[];})[_0x4e49f5('0x11bf')](function(){const _0x2730e3=_0x4e49f5;return _0x35c8e3['userProfileSection'][_0x2730e3('0xbaa')]({'userProfileId':_0x2cafe9['currentUser'][_0x2730e3('0x781')],'sectionId':0xca})[_0x2730e3('0x1549')];})['then'](function(_0x3e40c8){const _0x469f14=_0x4e49f5,_0x1fa812=_0x3e40c8&&_0x3e40c8[_0x469f14('0x19b2')]?_0x3e40c8['rows'][0x0]:null;if(!_0x1fa812){const _0x4ddf85=[];let _0xcb6b85=null;_0x2cafe9['agent']&&(_0xcb6b85=_0x36f548()[_0x469f14('0x1ad4')](_0x2cafe9[_0x469f14('0x1401')],{'name':_0x2cafe9[_0x469f14('0x18c4')][_0x469f14('0x18c4')]}));for(let _0x516b3c=0x0;_0x516b3c<_0x2cafe9[_0x469f14('0x1401')][_0x469f14('0x1e22')];_0x516b3c++){_0xcb6b85&&_0x2cafe9[_0x469f14('0x1401')][_0x516b3c]['id']===_0xcb6b85['id']&&(_0x2cafe9['agents'][_0x516b3c]['canSelect']=![],_0x4ddf85[_0x469f14('0x105d')](_0x2cafe9[_0x469f14('0x1401')][_0x516b3c]));}_0x2cafe9[_0x469f14('0x1401')]=_0x4ddf85;}else{if(!_0x1fa812['autoAssociation'])return _0x35c8e3[_0x469f14('0x26d1')][_0x469f14('0xbaa')]({'sectionId':_0x1fa812['id']})[_0x469f14('0x1549')][_0x469f14('0x11bf')](function(_0x108e7e){const _0x78ff6b=_0x469f14,_0xba75b8=_0x36f548()[_0x78ff6b('0x2171')](_0x108e7e[_0x78ff6b('0x19b2')],function(_0x249584){const _0x47353b=_0x78ff6b;return _0x36f548()['find'](_0x2cafe9['agents'],{'id':_0x249584[_0x47353b('0x15a5')]});});let _0x669f7f=null;_0x2cafe9[_0x78ff6b('0x18c4')]&&(_0x669f7f=_0x36f548()[_0x78ff6b('0x1ad4')](_0x2cafe9['agents'],{'name':_0x2cafe9['agent']['agent']}));if(_0x669f7f&&!_0x36f548()[_0x78ff6b('0x1cb3')](_0xba75b8,['id',_0x669f7f['id']])){const _0x23330f=_0x36f548()[_0x78ff6b('0x1ad4')](_0x2cafe9[_0x78ff6b('0x1401')],{'id':_0x669f7f['id']});_0x23330f[_0x78ff6b('0x254a')]=![],_0xba75b8[_0x78ff6b('0x105d')](_0x23330f);}_0x2cafe9[_0x78ff6b('0x1401')]=_0xba75b8;});}})[_0x4e49f5('0x151d')](function(_0xc90ec2){const _0x383ad0=_0x4e49f5;_0x202e1a[_0x383ad0('0x255')]({'title':_0xc90ec2['status']?_0x383ad0('0x574')+_0xc90ec2[_0x383ad0('0xff9')]+_0x383ad0('0xb0b')+_0xc90ec2[_0x383ad0('0x212f')]:'SYSTEM:GETagents','msg':_0xc90ec2[_0x383ad0('0x4e8')]?JSON[_0x383ad0('0x3e')](_0xc90ec2[_0x383ad0('0x4e8')]):_0xc90ec2[_0x383ad0('0xaab')]()});});function _0x5eeef(){const _0x25e1f0=_0x4e49f5;_0x2cafe9['errors']=[];const _0x59795d=[];_0x2cafe9[_0x25e1f0('0x18c4')][_0x25e1f0('0x19fd')]&&_0x2cafe9[_0x25e1f0('0x18c4')][_0x25e1f0('0x19fd')][_0x25e1f0('0x20d5')]()===_0x25e1f0('0x25b6')&&_0x2cafe9[_0x25e1f0('0x18c4')]['appType']===_0x25e1f0('0x1bf6')&&(_0x2cafe9[_0x25e1f0('0x18c4')][_0x25e1f0('0x1546')]=_0x2d17e8['cutdigits']?(_0x2cafe9[_0x25e1f0('0x18c4')][_0x25e1f0('0x2137')]||'')+_0x25e1f0('0x2100')+_0x2d17e8['cutdigits']+'}':(_0x2cafe9[_0x25e1f0('0x18c4')][_0x25e1f0('0x2137')]||'')+'${EXTEN}',_0x2d17e8[_0x25e1f0('0x897')]!==_0x25e1f0('0x3e6')?_0x2cafe9['agent']['options'][_0x25e1f0('0x203c')](_0x25e1f0('0x22c9'))<0x0&&(_0x2cafe9[_0x25e1f0('0x18c4')][_0x25e1f0('0x249a')]+='U(xcally-mixmonitor-context)'):_0x2cafe9[_0x25e1f0('0x18c4')][_0x25e1f0('0x249a')]=_0x2cafe9[_0x25e1f0('0x18c4')][_0x25e1f0('0x249a')]['replace'](_0x25e1f0('0x22c9'),''));const _0x2031dd=_0x36f548()['find'](_0x2cafe9[_0x25e1f0('0x1401')],{'name':_0x2cafe9[_0x25e1f0('0x18c4')][_0x25e1f0('0x18c4')]});_0x2031dd&&(_0x2cafe9['agent'][_0x25e1f0('0x2342')]=_0x2031dd['id']);if(_0x2cafe9['agent']['appType']&&_0x2cafe9[_0x25e1f0('0x18c4')]['appType']==='custom'){}else switch((_0x2cafe9[_0x25e1f0('0x18c4')]['app']||_0x2cafe9[_0x25e1f0('0x18c4')][_0x25e1f0('0x27c0')])[_0x25e1f0('0x20d5')]()){case _0x25e1f0('0xe50'):_0x2cafe9[_0x25e1f0('0x18c4')][_0x25e1f0('0x13fc')]=_0x2cafe9['agent'][_0x25e1f0('0x1909')]+'='+_0x2cafe9[_0x25e1f0('0x18c4')][_0x25e1f0('0x10cc')];break;case _0x25e1f0('0xa8d'):break;default:_0x59795d[0x0]=_0x2cafe9[_0x25e1f0('0x18c4')][_0x25e1f0('0x18c4')],_0x59795d[0x1]=_0x2cafe9['agent'][_0x25e1f0('0xfbe')],_0x2cafe9[_0x25e1f0('0x18c4')][_0x25e1f0('0x13fc')]=_0x59795d['join'](',');}_0xd91eed(_0x2cafe9[_0x25e1f0('0x18c4')]);}function _0xd91eed(_0x3e0000){_0x1852f9['hide'](_0x3e0000);}}const _0x14c2ee=_0x29b712;_0x1fdccd[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0x142d'),_0x21d0f5('0x24d0'),_0x21d0f5('0xb50'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),_0x21d0f5('0xb25')];function _0x1fdccd(_0x387e3c,_0x1c1c07,_0x264647,_0x331d24,_0x7a2a74,_0x31a8a4,_0x54dd4d,_0x3dc0a4){const _0x1c6bfb=_0x21d0f5,_0x567265=this;_0x567265[_0x1c6bfb('0x32a')]=_0x54dd4d[_0x1c6bfb('0x2428')](),_0x567265[_0x1c6bfb('0x120f')]=[],_0x567265[_0x1c6bfb('0x134b')]=_0x1c6bfb('0x2435')+(_0x331d24[_0x1c6bfb('0x27c0')]||_0x331d24[_0x1c6bfb('0x18f5')])[_0x1c6bfb('0xa6f')](),_0x567265[_0x1c6bfb('0x102c')]=angular[_0x1c6bfb('0x6fb')](_0x331d24),_0x567265['crudPermissions']=_0x3dc0a4,_0x567265[_0x1c6bfb('0x2c9')]={};if(_0x567265['amazonlex'][_0x1c6bfb('0x13fc')])switch(_0x567265[_0x1c6bfb('0x102c')][_0x1c6bfb('0x27c0')]?_0x567265[_0x1c6bfb('0x102c')][_0x1c6bfb('0x27c0')][_0x1c6bfb('0x20d5')]():_0x567265[_0x1c6bfb('0x102c')][_0x1c6bfb('0x18f5')]['toLowerCase']()){case _0x1c6bfb('0xa8d'):break;case _0x1c6bfb('0x185e'):{const _0x317ae7=_0x567265[_0x1c6bfb('0x102c')]['appdata'][_0x1c6bfb('0xaf8')](',');_0x567265[_0x1c6bfb('0x102c')][_0x1c6bfb('0xa0c')]=_0x317ae7[0x0],_0x567265['amazonlex'][_0x1c6bfb('0xeff')]=_0x317ae7[0x1],_0x567265['amazonlex'][_0x1c6bfb('0x1cbc')]=_0x317ae7[_0x1c6bfb('0x1b77')](0x2,_0x317ae7[_0x1c6bfb('0x1e22')])[_0x1c6bfb('0xa04')](',');}break;case _0x1c6bfb('0x21a8'):{const _0x646a39=_0x567265[_0x1c6bfb('0x102c')]['appdata'][_0x1c6bfb('0xaf8')](',');_0x567265[_0x1c6bfb('0x102c')]['projectId']=_0x646a39[0x0],_0x567265[_0x1c6bfb('0x102c')][_0x1c6bfb('0x1f91')]=_0x646a39[0x1],_0x567265[_0x1c6bfb('0x102c')][_0x1c6bfb('0x1c6c')]=_0x646a39[0x2],_0x567265[_0x1c6bfb('0x102c')][_0x1c6bfb('0xeff')]=_0x646a39[0x3],_0x567265[_0x1c6bfb('0x102c')]['welcomemessage']=_0x646a39[_0x1c6bfb('0x1b77')](0x4,_0x646a39[_0x1c6bfb('0x1e22')])[_0x1c6bfb('0xa04')](',');}break;case _0x1c6bfb('0x102c'):{const _0x43bdee=_0x567265[_0x1c6bfb('0x102c')][_0x1c6bfb('0x13fc')][_0x1c6bfb('0xaf8')](',');_0x567265[_0x1c6bfb('0x102c')][_0x1c6bfb('0x1a82')]=_0x43bdee[0x0],_0x567265['amazonlex'][_0x1c6bfb('0x1422')]=_0x43bdee[0x1],_0x567265[_0x1c6bfb('0x102c')][_0x1c6bfb('0x165a')]=_0x43bdee[0x2],_0x567265[_0x1c6bfb('0x102c')][_0x1c6bfb('0x1e8f')]=_0x43bdee[0x3],_0x567265[_0x1c6bfb('0x102c')][_0x1c6bfb('0x1cbc')]=_0x43bdee[_0x1c6bfb('0x1b77')](0x4,_0x43bdee['length'])['join'](',');}break;case'autoreply':{const _0x2f2234=_0x567265[_0x1c6bfb('0x102c')][_0x1c6bfb('0x13fc')][_0x1c6bfb('0xaf8')](',');_0x567265['amazonlex'][_0x1c6bfb('0x663')]=isNaN(_0x2f2234[0x0])?_0x2f2234[0x0]:parseInt(_0x2f2234[0x0],0xa),_0x567265['amazonlex'][_0x1c6bfb('0x25ed')]=_0x2f2234[_0x1c6bfb('0x1b77')](0x1,_0x2f2234[_0x1c6bfb('0x1e22')])[_0x1c6bfb('0xa04')](',');}break;case _0x1c6bfb('0x1b86'):_0x567265[_0x1c6bfb('0x102c')]['text']=_0x567265[_0x1c6bfb('0x102c')][_0x1c6bfb('0x13fc')];break;case'set':_0x567265[_0x1c6bfb('0x102c')][_0x1c6bfb('0x1909')]=_0x567265[_0x1c6bfb('0x102c')][_0x1c6bfb('0x13fc')][_0x1c6bfb('0xaf8')]('=')[0x0],_0x567265[_0x1c6bfb('0x102c')][_0x1c6bfb('0x10cc')]=_0x567265['amazonlex'][_0x1c6bfb('0x13fc')]['split']('=')[0x1];break;case _0x1c6bfb('0x1efd'):_0x567265['amazonlex']['project']=_0x567265['amazonlex']['appdata'];break;default:{const _0x38c100=_0x567265[_0x1c6bfb('0x102c')]['appdata'][_0x1c6bfb('0xaf8')](',');_0x567265[_0x1c6bfb('0x102c')]['accesskeyid']=_0x36f548()[_0x1c6bfb('0x1fc5')](_0x38c100[0x0])?_0x38c100[0x0]:isNaN(_0x38c100[0x0])?_0x38c100[0x0]:parseInt(_0x38c100[0x0],0xa),_0x567265[_0x1c6bfb('0x102c')]['secretaccesskey']=_0x36f548()[_0x1c6bfb('0x1fc5')](_0x38c100[0x1])?_0x38c100[0x1]:isNaN(_0x38c100[0x1])?_0x38c100[0x1]:parseInt(_0x38c100[0x1],0xa),_0x567265['amazonlex'][_0x1c6bfb('0x165a')]=_0x36f548()[_0x1c6bfb('0x1fc5')](_0x38c100[0x2])?_0x38c100[0x2]:isNaN(_0x38c100[0x2])?_0x38c100[0x2]:parseInt(_0x38c100[0x2],0xa),_0x567265[_0x1c6bfb('0x102c')]['botname']=_0x36f548()[_0x1c6bfb('0x1fc5')](_0x38c100[0x3])?_0x38c100[0x3]:isNaN(_0x38c100[0x3])?_0x38c100[0x3]:parseInt(_0x38c100[0x3],0xa),_0x567265[_0x1c6bfb('0x102c')][_0x1c6bfb('0x1cbc')]=_0x36f548()['isEmpty'](_0x38c100[0x4])?_0x38c100[0x4]:isNaN(_0x38c100[0x4])?_0x38c100[0x4]:parseInt(_0x38c100[0x4],0xa);}break;}else _0x567265['amazonlex']['lexregion']='us-east-1';_0x567265[_0x1c6bfb('0x102c')]['type']&&_0x567265[_0x1c6bfb('0x102c')][_0x1c6bfb('0x19fd')][_0x1c6bfb('0x20d5')]()===_0x1c6bfb('0x25b6')&&_0x567265[_0x1c6bfb('0x102c')]['appType']['toLowerCase']()===_0x1c6bfb('0x1a64')&&(_0x567265[_0x1c6bfb('0x102c')][_0x1c6bfb('0x2137')]=_0x567265[_0x1c6bfb('0x102c')][_0x1c6bfb('0x1546')]?_0x567265['amazonlex']['phone'][_0x1c6bfb('0xaf8')]('$')[0x0]:undefined,_0x567265['amazonlex'][_0x1c6bfb('0x7d0')]=_0x567265[_0x1c6bfb('0x102c')][_0x1c6bfb('0xc38')]?'CALLERID(all)='+_0x567265[_0x1c6bfb('0x102c')][_0x1c6bfb('0xc38')]:undefined);_0x567265['saveChatWebsiteApp']=_0x13ae90,_0x567265[_0x1c6bfb('0xc4e')]=_0x26f453;function _0x13ae90(){const _0x258fe1=_0x1c6bfb;_0x567265['errors']=[];const _0x38838b=[];_0x567265[_0x258fe1('0x102c')]['type']&&_0x567265[_0x258fe1('0x102c')][_0x258fe1('0x19fd')][_0x258fe1('0x20d5')]()===_0x258fe1('0x25b6')&&_0x567265[_0x258fe1('0x102c')][_0x258fe1('0x27c0')]===_0x258fe1('0x1bf6')&&(_0x567265['amazonlex']['phone']=_0x7a2a74[_0x258fe1('0x388')]?(_0x567265[_0x258fe1('0x102c')][_0x258fe1('0x2137')]||'')+_0x258fe1('0x2100')+_0x7a2a74[_0x258fe1('0x388')]+'}':(_0x567265['amazonlex'][_0x258fe1('0x2137')]||'')+_0x258fe1('0x1f76'),_0x7a2a74[_0x258fe1('0x897')]!==_0x258fe1('0x3e6')?_0x567265[_0x258fe1('0x102c')]['options'][_0x258fe1('0x203c')](_0x258fe1('0x22c9'))<0x0&&(_0x567265[_0x258fe1('0x102c')][_0x258fe1('0x249a')]+=_0x258fe1('0x22c9')):_0x567265[_0x258fe1('0x102c')]['options']=_0x567265[_0x258fe1('0x102c')][_0x258fe1('0x249a')][_0x258fe1('0x814')](_0x258fe1('0x22c9'),''));if(_0x567265['amazonlex']['appType']&&_0x567265[_0x258fe1('0x102c')]['appType']===_0x258fe1('0xa8d')){}else switch((_0x567265[_0x258fe1('0x102c')]['app']||_0x567265[_0x258fe1('0x102c')]['appType'])[_0x258fe1('0x20d5')]()){case'set':_0x567265[_0x258fe1('0x102c')][_0x258fe1('0x13fc')]=_0x567265[_0x258fe1('0x102c')][_0x258fe1('0x1909')]+'='+_0x567265[_0x258fe1('0x102c')][_0x258fe1('0x10cc')];break;case'custom':break;default:_0x38838b[0x0]=_0x567265['amazonlex'][_0x258fe1('0x1a82')],_0x38838b[0x1]=_0x567265[_0x258fe1('0x102c')]['secretaccesskey'],_0x38838b[0x2]=_0x567265[_0x258fe1('0x102c')][_0x258fe1('0x165a')],_0x38838b[0x3]=_0x567265[_0x258fe1('0x102c')][_0x258fe1('0x1e8f')],_0x38838b[0x4]=_0x567265[_0x258fe1('0x102c')]['welcomemessage'],_0x567265[_0x258fe1('0x102c')]['appdata']=_0x38838b[_0x258fe1('0xa04')](',');}_0x26f453(_0x567265['amazonlex']);}function _0x26f453(_0x5b8c52){_0x387e3c['hide'](_0x5b8c52);}}const _0x582805=_0x1fdccd;_0x4fc40e[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0x142d'),_0x21d0f5('0x24d0'),_0x21d0f5('0xb50'),_0x21d0f5('0x12a5'),'Auth',_0x21d0f5('0xb25')];function _0x4fc40e(_0x4e11d6,_0x5e26e5,_0x161b90,_0x1c1773,_0x512fad,_0x1ca00d,_0x4d8252,_0x24a2c3){const _0xdcb21c=_0x21d0f5,_0x30ef07=this;_0x30ef07[_0xdcb21c('0x32a')]=_0x4d8252[_0xdcb21c('0x2428')](),_0x30ef07['errors']=[],_0x30ef07[_0xdcb21c('0x134b')]=_0xdcb21c('0x2435')+(_0x1c1773['appType']||_0x1c1773['app'])['toUpperCase'](),_0x30ef07[_0xdcb21c('0x187b')]=angular[_0xdcb21c('0x6fb')](_0x1c1773),_0x30ef07['crudPermissions']=_0x24a2c3,_0x30ef07['hasModulePermissions']={};if(_0x30ef07['autoreply'][_0xdcb21c('0x13fc')])switch(_0x30ef07[_0xdcb21c('0x187b')][_0xdcb21c('0x27c0')]?_0x30ef07[_0xdcb21c('0x187b')][_0xdcb21c('0x27c0')][_0xdcb21c('0x20d5')]():_0x30ef07['autoreply'][_0xdcb21c('0x18f5')]['toLowerCase']()){case _0xdcb21c('0xa8d'):break;case _0xdcb21c('0x185e'):{const _0xac17d5=_0x30ef07[_0xdcb21c('0x187b')][_0xdcb21c('0x13fc')][_0xdcb21c('0xaf8')](',');_0x30ef07[_0xdcb21c('0x187b')][_0xdcb21c('0xa0c')]=_0xac17d5[0x0],_0x30ef07['autoreply'][_0xdcb21c('0xeff')]=_0xac17d5[0x1],_0x30ef07['autoreply']['welcomemessage']=_0xac17d5[_0xdcb21c('0x1b77')](0x2,_0xac17d5['length'])[_0xdcb21c('0xa04')](',');}break;case _0xdcb21c('0x21a8'):{const _0x2a2b44=_0x30ef07[_0xdcb21c('0x187b')][_0xdcb21c('0x13fc')][_0xdcb21c('0xaf8')](',');_0x30ef07[_0xdcb21c('0x187b')][_0xdcb21c('0x20e')]=_0x2a2b44[0x0],_0x30ef07[_0xdcb21c('0x187b')][_0xdcb21c('0x1f91')]=_0x2a2b44[0x1],_0x30ef07[_0xdcb21c('0x187b')]['privateKey']=_0x2a2b44[0x2],_0x30ef07['autoreply']['language']=_0x2a2b44[0x3],_0x30ef07[_0xdcb21c('0x187b')]['welcomemessage']=_0x2a2b44['slice'](0x4,_0x2a2b44[_0xdcb21c('0x1e22')])[_0xdcb21c('0xa04')](',');}break;case _0xdcb21c('0x102c'):{const _0x4533e0=_0x30ef07[_0xdcb21c('0x187b')][_0xdcb21c('0x13fc')][_0xdcb21c('0xaf8')](',');_0x30ef07['autoreply'][_0xdcb21c('0x1a82')]=_0x4533e0[0x0],_0x30ef07[_0xdcb21c('0x187b')][_0xdcb21c('0x1422')]=_0x4533e0[0x1],_0x30ef07['autoreply']['lexregion']=_0x4533e0[0x2],_0x30ef07[_0xdcb21c('0x187b')][_0xdcb21c('0x1e8f')]=_0x4533e0[0x3],_0x30ef07[_0xdcb21c('0x187b')][_0xdcb21c('0x1cbc')]=_0x4533e0[_0xdcb21c('0x1b77')](0x4,_0x4533e0[_0xdcb21c('0x1e22')])[_0xdcb21c('0xa04')](',');}break;case _0xdcb21c('0x187b'):{const _0x698308=_0x30ef07['autoreply'][_0xdcb21c('0x13fc')]['split'](',');_0x30ef07[_0xdcb21c('0x187b')][_0xdcb21c('0x663')]=isNaN(_0x698308[0x0])?_0x698308[0x0]:parseInt(_0x698308[0x0],0xa),_0x30ef07[_0xdcb21c('0x187b')]['text']=_0x698308['slice'](0x1,_0x698308[_0xdcb21c('0x1e22')])[_0xdcb21c('0xa04')](',');}break;case _0xdcb21c('0x1b86'):_0x30ef07[_0xdcb21c('0x187b')][_0xdcb21c('0x25ed')]=_0x30ef07[_0xdcb21c('0x187b')][_0xdcb21c('0x13fc')];break;case'set':_0x30ef07[_0xdcb21c('0x187b')]['name']=_0x30ef07[_0xdcb21c('0x187b')][_0xdcb21c('0x13fc')]['split']('=')[0x0],_0x30ef07[_0xdcb21c('0x187b')][_0xdcb21c('0x10cc')]=_0x30ef07['autoreply'][_0xdcb21c('0x13fc')][_0xdcb21c('0xaf8')]('=')[0x1];break;case'agi':_0x30ef07[_0xdcb21c('0x187b')]['project']=_0x30ef07[_0xdcb21c('0x187b')][_0xdcb21c('0x13fc')];break;default:{const _0x11150=_0x30ef07[_0xdcb21c('0x187b')][_0xdcb21c('0x13fc')][_0xdcb21c('0xaf8')](',');_0x30ef07['autoreply'][_0xdcb21c('0x663')]=_0x36f548()[_0xdcb21c('0x1fc5')](_0x11150[0x0])?_0x11150[0x0]:isNaN(_0x11150[0x0])?_0x11150[0x0]:parseInt(_0x11150[0x0],0xa),_0x30ef07['autoreply']['text']=_0x36f548()[_0xdcb21c('0x1fc5')](_0x11150[0x1])?_0x11150[0x1]:isNaN(_0x11150[0x1])?_0x11150[0x1]:parseInt(_0x11150[0x1],0xa);}break;}else _0x30ef07[_0xdcb21c('0x187b')][_0xdcb21c('0x663')]=0x1;_0x30ef07[_0xdcb21c('0x187b')]['type']&&_0x30ef07['autoreply']['type'][_0xdcb21c('0x20d5')]()===_0xdcb21c('0x25b6')&&_0x30ef07['autoreply'][_0xdcb21c('0x27c0')]['toLowerCase']()==='outbounddial'&&(_0x30ef07[_0xdcb21c('0x187b')]['prefix']=_0x30ef07[_0xdcb21c('0x187b')][_0xdcb21c('0x1546')]?_0x30ef07[_0xdcb21c('0x187b')][_0xdcb21c('0x1546')][_0xdcb21c('0xaf8')]('$')[0x0]:undefined,_0x30ef07['autoreply'][_0xdcb21c('0x7d0')]=_0x30ef07[_0xdcb21c('0x187b')]['callerID']?_0xdcb21c('0x83a')+_0x30ef07['autoreply'][_0xdcb21c('0xc38')]:undefined);_0x30ef07[_0xdcb21c('0xe26')]=_0x186e3e,_0x30ef07['closeDialog']=_0x11d287;function _0x186e3e(){const _0x5f1b7d=_0xdcb21c;_0x30ef07[_0x5f1b7d('0x120f')]=[];const _0x254741=[];_0x30ef07[_0x5f1b7d('0x187b')][_0x5f1b7d('0x19fd')]&&_0x30ef07['autoreply'][_0x5f1b7d('0x19fd')][_0x5f1b7d('0x20d5')]()==='outbound'&&_0x30ef07[_0x5f1b7d('0x187b')]['appType']===_0x5f1b7d('0x1bf6')&&(_0x30ef07[_0x5f1b7d('0x187b')][_0x5f1b7d('0x1546')]=_0x512fad[_0x5f1b7d('0x388')]?(_0x30ef07[_0x5f1b7d('0x187b')]['prefix']||'')+_0x5f1b7d('0x2100')+_0x512fad[_0x5f1b7d('0x388')]+'}':(_0x30ef07[_0x5f1b7d('0x187b')][_0x5f1b7d('0x2137')]||'')+'${EXTEN}',_0x512fad['recordingFormat']!==_0x5f1b7d('0x3e6')?_0x30ef07[_0x5f1b7d('0x187b')][_0x5f1b7d('0x249a')][_0x5f1b7d('0x203c')](_0x5f1b7d('0x22c9'))<0x0&&(_0x30ef07[_0x5f1b7d('0x187b')][_0x5f1b7d('0x249a')]+=_0x5f1b7d('0x22c9')):_0x30ef07[_0x5f1b7d('0x187b')][_0x5f1b7d('0x249a')]=_0x30ef07[_0x5f1b7d('0x187b')]['options']['replace'](_0x5f1b7d('0x22c9'),''));if(_0x30ef07[_0x5f1b7d('0x187b')][_0x5f1b7d('0x27c0')]&&_0x30ef07['autoreply'][_0x5f1b7d('0x27c0')]===_0x5f1b7d('0xa8d')){}else switch((_0x30ef07[_0x5f1b7d('0x187b')][_0x5f1b7d('0x18f5')]||_0x30ef07[_0x5f1b7d('0x187b')]['appType'])['toLowerCase']()){case _0x5f1b7d('0xe50'):_0x30ef07[_0x5f1b7d('0x187b')][_0x5f1b7d('0x13fc')]=_0x30ef07[_0x5f1b7d('0x187b')]['name']+'='+_0x30ef07['autoreply'][_0x5f1b7d('0x10cc')];break;case _0x5f1b7d('0xa8d'):break;default:_0x254741[0x0]=_0x30ef07[_0x5f1b7d('0x187b')]['times'],_0x254741[0x1]=_0x30ef07['autoreply'][_0x5f1b7d('0x25ed')],_0x30ef07[_0x5f1b7d('0x187b')][_0x5f1b7d('0x13fc')]=_0x254741[_0x5f1b7d('0xa04')](',');}_0x11d287(_0x30ef07[_0x5f1b7d('0x187b')]);}function _0x11d287(_0x50eea0){const _0x35dc2f=_0xdcb21c;_0x4e11d6[_0x35dc2f('0x237e')](_0x50eea0);}}const _0x1767d8=_0x4fc40e;_0x281888[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0x142d'),_0x21d0f5('0x24d0'),'chatWebsite',_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),'crudPermissions'];function _0x281888(_0x4df3bf,_0x3e9a51,_0x3798c3,_0x3292de,_0xfbaa5e,_0x2e26ad,_0x2a5023,_0x432655){const _0x47e603=_0x21d0f5,_0x488c40=this;_0x488c40['currentUser']=_0x2a5023[_0x47e603('0x2428')](),_0x488c40['errors']=[],_0x488c40['title']=_0x47e603('0x2435')+(_0x3292de[_0x47e603('0x27c0')]||_0x3292de[_0x47e603('0x18f5')])[_0x47e603('0xa6f')](),_0x488c40[_0x47e603('0x2132')]=angular[_0x47e603('0x6fb')](_0x3292de),_0x488c40['crudPermissions']=_0x432655,_0x488c40[_0x47e603('0x2c9')]={};if(_0x488c40['close'][_0x47e603('0x13fc')])switch(_0x488c40[_0x47e603('0x2132')][_0x47e603('0x27c0')]?_0x488c40[_0x47e603('0x2132')][_0x47e603('0x27c0')][_0x47e603('0x20d5')]():_0x488c40[_0x47e603('0x2132')]['app']['toLowerCase']()){case _0x47e603('0xa8d'):break;case'dialogflow':{const _0x29ef4a=_0x488c40[_0x47e603('0x2132')]['appdata'][_0x47e603('0xaf8')](',');_0x488c40[_0x47e603('0x2132')]['key']=_0x29ef4a[0x0],_0x488c40[_0x47e603('0x2132')]['language']=_0x29ef4a[0x1],_0x488c40[_0x47e603('0x2132')][_0x47e603('0x1cbc')]=_0x29ef4a['slice'](0x2,_0x29ef4a[_0x47e603('0x1e22')])[_0x47e603('0xa04')](',');}break;case _0x47e603('0x21a8'):{const _0x148284=_0x488c40[_0x47e603('0x2132')][_0x47e603('0x13fc')]['split'](',');_0x488c40[_0x47e603('0x2132')]['projectId']=_0x148284[0x0],_0x488c40[_0x47e603('0x2132')][_0x47e603('0x1f91')]=_0x148284[0x1],_0x488c40[_0x47e603('0x2132')][_0x47e603('0x1c6c')]=_0x148284[0x2],_0x488c40[_0x47e603('0x2132')][_0x47e603('0xeff')]=_0x148284[0x3],_0x488c40[_0x47e603('0x2132')][_0x47e603('0x1cbc')]=_0x148284[_0x47e603('0x1b77')](0x4,_0x148284['length'])['join'](',');}break;case'amazonlex':{const _0x57fc88=_0x488c40[_0x47e603('0x2132')][_0x47e603('0x13fc')][_0x47e603('0xaf8')](',');_0x488c40[_0x47e603('0x2132')][_0x47e603('0x1a82')]=_0x57fc88[0x0],_0x488c40[_0x47e603('0x2132')]['secretaccesskey']=_0x57fc88[0x1],_0x488c40[_0x47e603('0x2132')][_0x47e603('0x165a')]=_0x57fc88[0x2],_0x488c40[_0x47e603('0x2132')][_0x47e603('0x1e8f')]=_0x57fc88[0x3],_0x488c40['close'][_0x47e603('0x1cbc')]=_0x57fc88[_0x47e603('0x1b77')](0x4,_0x57fc88[_0x47e603('0x1e22')])[_0x47e603('0xa04')](',');}break;case _0x47e603('0x187b'):{const _0x3dbdfb=_0x488c40['close'][_0x47e603('0x13fc')][_0x47e603('0xaf8')](',');_0x488c40['close'][_0x47e603('0x663')]=isNaN(_0x3dbdfb[0x0])?_0x3dbdfb[0x0]:parseInt(_0x3dbdfb[0x0],0xa),_0x488c40[_0x47e603('0x2132')][_0x47e603('0x25ed')]=_0x3dbdfb['slice'](0x1,_0x3dbdfb['length'])[_0x47e603('0xa04')](',');}break;case _0x47e603('0x1b86'):_0x488c40[_0x47e603('0x2132')]['text']=_0x488c40[_0x47e603('0x2132')][_0x47e603('0x13fc')];break;case _0x47e603('0xe50'):_0x488c40[_0x47e603('0x2132')]['name']=_0x488c40['close'][_0x47e603('0x13fc')][_0x47e603('0xaf8')]('=')[0x0],_0x488c40[_0x47e603('0x2132')][_0x47e603('0x10cc')]=_0x488c40[_0x47e603('0x2132')][_0x47e603('0x13fc')][_0x47e603('0xaf8')]('=')[0x1];break;case _0x47e603('0x1efd'):_0x488c40[_0x47e603('0x2132')][_0x47e603('0xef0')]=_0x488c40[_0x47e603('0x2132')]['appdata'];break;default:{const _0x538905=_0x488c40[_0x47e603('0x2132')][_0x47e603('0x13fc')][_0x47e603('0xaf8')](',');_0x488c40['close'][_0x47e603('0x107a')]=_0x36f548()['isEmpty'](_0x538905[0x0])?_0x538905[0x0]:isNaN(_0x538905[0x0])?_0x538905[0x0]:parseInt(_0x538905[0x0],0xa);}break;}else{}_0x488c40['close'][_0x47e603('0x19fd')]&&_0x488c40[_0x47e603('0x2132')][_0x47e603('0x19fd')][_0x47e603('0x20d5')]()==='outbound'&&_0x488c40[_0x47e603('0x2132')][_0x47e603('0x27c0')][_0x47e603('0x20d5')]()===_0x47e603('0x1a64')&&(_0x488c40['close'][_0x47e603('0x2137')]=_0x488c40[_0x47e603('0x2132')][_0x47e603('0x1546')]?_0x488c40[_0x47e603('0x2132')][_0x47e603('0x1546')][_0x47e603('0xaf8')]('$')[0x0]:undefined,_0x488c40[_0x47e603('0x2132')][_0x47e603('0x7d0')]=_0x488c40[_0x47e603('0x2132')]['callerID']?_0x47e603('0x83a')+_0x488c40[_0x47e603('0x2132')]['callerID']:undefined);_0x488c40['saveChatWebsiteApp']=_0x2140a2,_0x488c40[_0x47e603('0xc4e')]=_0x30df01;function _0x2140a2(){const _0x17e0aa=_0x47e603;_0x488c40[_0x17e0aa('0x120f')]=[];const _0x15a321=[];_0x488c40[_0x17e0aa('0x2132')][_0x17e0aa('0x19fd')]&&_0x488c40[_0x17e0aa('0x2132')][_0x17e0aa('0x19fd')][_0x17e0aa('0x20d5')]()===_0x17e0aa('0x25b6')&&_0x488c40[_0x17e0aa('0x2132')][_0x17e0aa('0x27c0')]===_0x17e0aa('0x1bf6')&&(_0x488c40[_0x17e0aa('0x2132')][_0x17e0aa('0x1546')]=_0xfbaa5e[_0x17e0aa('0x388')]?(_0x488c40[_0x17e0aa('0x2132')][_0x17e0aa('0x2137')]||'')+_0x17e0aa('0x2100')+_0xfbaa5e[_0x17e0aa('0x388')]+'}':(_0x488c40[_0x17e0aa('0x2132')][_0x17e0aa('0x2137')]||'')+_0x17e0aa('0x1f76'),_0xfbaa5e[_0x17e0aa('0x897')]!==_0x17e0aa('0x3e6')?_0x488c40[_0x17e0aa('0x2132')][_0x17e0aa('0x249a')][_0x17e0aa('0x203c')](_0x17e0aa('0x22c9'))<0x0&&(_0x488c40[_0x17e0aa('0x2132')][_0x17e0aa('0x249a')]+=_0x17e0aa('0x22c9')):_0x488c40['close'][_0x17e0aa('0x249a')]=_0x488c40[_0x17e0aa('0x2132')][_0x17e0aa('0x249a')][_0x17e0aa('0x814')](_0x17e0aa('0x22c9'),''));if(_0x488c40[_0x17e0aa('0x2132')][_0x17e0aa('0x27c0')]&&_0x488c40['close'][_0x17e0aa('0x27c0')]===_0x17e0aa('0xa8d')){}else switch((_0x488c40[_0x17e0aa('0x2132')][_0x17e0aa('0x18f5')]||_0x488c40[_0x17e0aa('0x2132')][_0x17e0aa('0x27c0')])['toLowerCase']()){case'set':_0x488c40[_0x17e0aa('0x2132')][_0x17e0aa('0x13fc')]=_0x488c40[_0x17e0aa('0x2132')][_0x17e0aa('0x1909')]+'='+_0x488c40[_0x17e0aa('0x2132')][_0x17e0aa('0x10cc')];break;case _0x17e0aa('0xa8d'):break;default:_0x15a321[0x0]=_0x488c40[_0x17e0aa('0x2132')]['disposition'],_0x488c40[_0x17e0aa('0x2132')]['appdata']=_0x15a321['join'](',');}_0x30df01(_0x488c40[_0x17e0aa('0x2132')]);}function _0x30df01(_0x4d8ca0){_0x4df3bf['hide'](_0x4d8ca0);}}const _0xb55dd0=_0x281888;_0x5946ee[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0x142d'),'chatWebsiteApp',_0x21d0f5('0xb50'),'api',_0x21d0f5('0x1150'),_0x21d0f5('0xb25')];function _0x5946ee(_0x3f85b4,_0x22fce1,_0x2703b4,_0x3c59b7,_0x544b3c,_0x5e44b3,_0x394460,_0x6587){const _0xf738a=_0x21d0f5,_0x2bf0ba=this;_0x2bf0ba[_0xf738a('0x32a')]=_0x394460[_0xf738a('0x2428')](),_0x2bf0ba[_0xf738a('0x120f')]=[],_0x2bf0ba[_0xf738a('0x134b')]=_0xf738a('0x2435')+(_0x3c59b7[_0xf738a('0x27c0')]||_0x3c59b7[_0xf738a('0x18f5')])['toUpperCase'](),_0x2bf0ba['dialogflow']=angular[_0xf738a('0x6fb')](_0x3c59b7),_0x2bf0ba[_0xf738a('0xb25')]=_0x6587,_0x2bf0ba[_0xf738a('0x2c9')]={};if(_0x2bf0ba[_0xf738a('0x185e')][_0xf738a('0x13fc')])switch(_0x2bf0ba['dialogflow'][_0xf738a('0x27c0')]?_0x2bf0ba['dialogflow'][_0xf738a('0x27c0')][_0xf738a('0x20d5')]():_0x2bf0ba[_0xf738a('0x185e')][_0xf738a('0x18f5')][_0xf738a('0x20d5')]()){case _0xf738a('0xa8d'):break;case _0xf738a('0x185e'):{const _0xe02671=_0x2bf0ba['dialogflow']['appdata'][_0xf738a('0xaf8')](',');_0x2bf0ba[_0xf738a('0x185e')][_0xf738a('0xa0c')]=_0xe02671[0x0],_0x2bf0ba[_0xf738a('0x185e')][_0xf738a('0xeff')]=_0xe02671[0x1],_0x2bf0ba['dialogflow'][_0xf738a('0x1cbc')]=_0xe02671[_0xf738a('0x1b77')](0x2,_0xe02671[_0xf738a('0x1e22')])[_0xf738a('0xa04')](',');}break;case'dialogflowv2':{const _0x58cba3=_0x2bf0ba['dialogflow'][_0xf738a('0x13fc')][_0xf738a('0xaf8')](',');_0x2bf0ba[_0xf738a('0x185e')][_0xf738a('0x20e')]=_0x58cba3[0x0],_0x2bf0ba[_0xf738a('0x185e')][_0xf738a('0x1f91')]=_0x58cba3[0x1],_0x2bf0ba[_0xf738a('0x185e')][_0xf738a('0x1c6c')]=_0x58cba3[0x2],_0x2bf0ba[_0xf738a('0x185e')][_0xf738a('0xeff')]=_0x58cba3[0x3],_0x2bf0ba[_0xf738a('0x185e')][_0xf738a('0x1cbc')]=_0x58cba3['slice'](0x4,_0x58cba3[_0xf738a('0x1e22')])['join'](',');}break;case _0xf738a('0x102c'):{const _0x24a61b=_0x2bf0ba[_0xf738a('0x185e')]['appdata'][_0xf738a('0xaf8')](',');_0x2bf0ba[_0xf738a('0x185e')][_0xf738a('0x1a82')]=_0x24a61b[0x0],_0x2bf0ba[_0xf738a('0x185e')]['secretaccesskey']=_0x24a61b[0x1],_0x2bf0ba[_0xf738a('0x185e')]['lexregion']=_0x24a61b[0x2],_0x2bf0ba[_0xf738a('0x185e')][_0xf738a('0x1e8f')]=_0x24a61b[0x3],_0x2bf0ba[_0xf738a('0x185e')][_0xf738a('0x1cbc')]=_0x24a61b[_0xf738a('0x1b77')](0x4,_0x24a61b[_0xf738a('0x1e22')])[_0xf738a('0xa04')](',');}break;case'autoreply':{const _0x4518a1=_0x2bf0ba[_0xf738a('0x185e')]['appdata'][_0xf738a('0xaf8')](',');_0x2bf0ba[_0xf738a('0x185e')]['times']=isNaN(_0x4518a1[0x0])?_0x4518a1[0x0]:parseInt(_0x4518a1[0x0],0xa),_0x2bf0ba[_0xf738a('0x185e')][_0xf738a('0x25ed')]=_0x4518a1[_0xf738a('0x1b77')](0x1,_0x4518a1[_0xf738a('0x1e22')])['join'](',');}break;case'message':_0x2bf0ba['dialogflow'][_0xf738a('0x25ed')]=_0x2bf0ba[_0xf738a('0x185e')][_0xf738a('0x13fc')];break;case _0xf738a('0xe50'):_0x2bf0ba['dialogflow']['name']=_0x2bf0ba['dialogflow']['appdata'][_0xf738a('0xaf8')]('=')[0x0],_0x2bf0ba[_0xf738a('0x185e')]['value']=_0x2bf0ba[_0xf738a('0x185e')][_0xf738a('0x13fc')][_0xf738a('0xaf8')]('=')[0x1];break;case _0xf738a('0x1efd'):_0x2bf0ba[_0xf738a('0x185e')][_0xf738a('0xef0')]=_0x2bf0ba[_0xf738a('0x185e')][_0xf738a('0x13fc')];break;default:{const _0x180164=_0x2bf0ba[_0xf738a('0x185e')][_0xf738a('0x13fc')]['split'](',');_0x2bf0ba[_0xf738a('0x185e')][_0xf738a('0xa0c')]=_0x36f548()[_0xf738a('0x1fc5')](_0x180164[0x0])?_0x180164[0x0]:isNaN(_0x180164[0x0])?_0x180164[0x0]:parseInt(_0x180164[0x0],0xa),_0x2bf0ba['dialogflow'][_0xf738a('0xeff')]=_0x36f548()['isEmpty'](_0x180164[0x1])?_0x180164[0x1]:isNaN(_0x180164[0x1])?_0x180164[0x1]:parseInt(_0x180164[0x1],0xa),_0x2bf0ba[_0xf738a('0x185e')][_0xf738a('0x1cbc')]=_0x36f548()[_0xf738a('0x1fc5')](_0x180164[0x2])?_0x180164[0x2]:isNaN(_0x180164[0x2])?_0x180164[0x2]:parseInt(_0x180164[0x2],0xa);}break;}else _0x2bf0ba[_0xf738a('0x185e')][_0xf738a('0xeff')]='en';_0x2bf0ba['dialogflow'][_0xf738a('0x19fd')]&&_0x2bf0ba[_0xf738a('0x185e')][_0xf738a('0x19fd')]['toLowerCase']()==='outbound'&&_0x2bf0ba['dialogflow'][_0xf738a('0x27c0')][_0xf738a('0x20d5')]()==='outbounddial'&&(_0x2bf0ba['dialogflow'][_0xf738a('0x2137')]=_0x2bf0ba[_0xf738a('0x185e')][_0xf738a('0x1546')]?_0x2bf0ba[_0xf738a('0x185e')][_0xf738a('0x1546')][_0xf738a('0xaf8')]('$')[0x0]:undefined,_0x2bf0ba[_0xf738a('0x185e')][_0xf738a('0x7d0')]=_0x2bf0ba[_0xf738a('0x185e')][_0xf738a('0xc38')]?_0xf738a('0x83a')+_0x2bf0ba[_0xf738a('0x185e')][_0xf738a('0xc38')]:undefined);_0x2bf0ba[_0xf738a('0xe26')]=_0x1b4e0e,_0x2bf0ba[_0xf738a('0xc4e')]=_0x5052a4;function _0x1b4e0e(){const _0x33758c=_0xf738a;_0x2bf0ba['errors']=[];const _0x2d79ec=[];_0x2bf0ba[_0x33758c('0x185e')]['type']&&_0x2bf0ba[_0x33758c('0x185e')][_0x33758c('0x19fd')][_0x33758c('0x20d5')]()===_0x33758c('0x25b6')&&_0x2bf0ba[_0x33758c('0x185e')][_0x33758c('0x27c0')]==='outboundDial'&&(_0x2bf0ba[_0x33758c('0x185e')][_0x33758c('0x1546')]=_0x544b3c[_0x33758c('0x388')]?(_0x2bf0ba['dialogflow'][_0x33758c('0x2137')]||'')+_0x33758c('0x2100')+_0x544b3c['cutdigits']+'}':(_0x2bf0ba['dialogflow'][_0x33758c('0x2137')]||'')+'${EXTEN}',_0x544b3c[_0x33758c('0x897')]!==_0x33758c('0x3e6')?_0x2bf0ba[_0x33758c('0x185e')][_0x33758c('0x249a')][_0x33758c('0x203c')](_0x33758c('0x22c9'))<0x0&&(_0x2bf0ba['dialogflow'][_0x33758c('0x249a')]+=_0x33758c('0x22c9')):_0x2bf0ba[_0x33758c('0x185e')][_0x33758c('0x249a')]=_0x2bf0ba['dialogflow']['options'][_0x33758c('0x814')](_0x33758c('0x22c9'),''));if(_0x2bf0ba[_0x33758c('0x185e')][_0x33758c('0x27c0')]&&_0x2bf0ba[_0x33758c('0x185e')][_0x33758c('0x27c0')]===_0x33758c('0xa8d')){}else switch((_0x2bf0ba[_0x33758c('0x185e')][_0x33758c('0x18f5')]||_0x2bf0ba[_0x33758c('0x185e')][_0x33758c('0x27c0')])[_0x33758c('0x20d5')]()){case _0x33758c('0xe50'):_0x2bf0ba[_0x33758c('0x185e')]['appdata']=_0x2bf0ba[_0x33758c('0x185e')][_0x33758c('0x1909')]+'='+_0x2bf0ba[_0x33758c('0x185e')]['value'];break;case _0x33758c('0xa8d'):break;default:_0x2d79ec[0x0]=_0x2bf0ba[_0x33758c('0x185e')][_0x33758c('0xa0c')],_0x2d79ec[0x1]=_0x2bf0ba[_0x33758c('0x185e')][_0x33758c('0xeff')],_0x2d79ec[0x2]=_0x2bf0ba[_0x33758c('0x185e')][_0x33758c('0x1cbc')],_0x2bf0ba[_0x33758c('0x185e')][_0x33758c('0x13fc')]=_0x2d79ec[_0x33758c('0xa04')](',');}_0x5052a4(_0x2bf0ba[_0x33758c('0x185e')]);}function _0x5052a4(_0xbe6ae0){const _0x47e6b7=_0xf738a;_0x3f85b4[_0x47e6b7('0x237e')](_0xbe6ae0);}}const _0x2ffe0e=_0x5946ee;_0xfdb03a[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0x142d'),_0x21d0f5('0x24d0'),_0x21d0f5('0xb50'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),_0x21d0f5('0xb25')];function _0xfdb03a(_0x4e6559,_0x426167,_0xd14530,_0x5b388f,_0x314269,_0x58080b,_0x4d357f,_0x51ddea){const _0x4867b0=_0x21d0f5,_0x5604d9=this;_0x5604d9['currentUser']=_0x4d357f['getCurrentUser'](),_0x5604d9[_0x4867b0('0x120f')]=[],_0x5604d9[_0x4867b0('0x134b')]=_0x4867b0('0x2435')+(_0x5b388f[_0x4867b0('0x27c0')]||_0x5b388f[_0x4867b0('0x18f5')])[_0x4867b0('0xa6f')](),_0x5604d9[_0x4867b0('0x7cf')]=angular[_0x4867b0('0x6fb')](_0x5b388f),_0x5604d9['crudPermissions']=_0x51ddea,_0x5604d9[_0x4867b0('0x2c9')]={};if(_0x5604d9['gotoif']['appdata'])switch(_0x5604d9[_0x4867b0('0x7cf')]['appType']?_0x5604d9[_0x4867b0('0x7cf')]['appType']['toLowerCase']():_0x5604d9[_0x4867b0('0x7cf')]['app'][_0x4867b0('0x20d5')]()){case _0x4867b0('0xa8d'):break;case _0x4867b0('0x185e'):{const _0x1434bb=_0x5604d9[_0x4867b0('0x7cf')][_0x4867b0('0x13fc')][_0x4867b0('0xaf8')](',');_0x5604d9[_0x4867b0('0x7cf')]['key']=_0x1434bb[0x0],_0x5604d9[_0x4867b0('0x7cf')][_0x4867b0('0xeff')]=_0x1434bb[0x1],_0x5604d9['gotoif'][_0x4867b0('0x1cbc')]=_0x1434bb[_0x4867b0('0x1b77')](0x2,_0x1434bb[_0x4867b0('0x1e22')])[_0x4867b0('0xa04')](',');}break;case'dialogflowv2':{const _0x4f2e9d=_0x5604d9['gotoif'][_0x4867b0('0x13fc')][_0x4867b0('0xaf8')](',');_0x5604d9[_0x4867b0('0x7cf')]['projectId']=_0x4f2e9d[0x0],_0x5604d9['gotoif'][_0x4867b0('0x1f91')]=_0x4f2e9d[0x1],_0x5604d9[_0x4867b0('0x7cf')][_0x4867b0('0x1c6c')]=_0x4f2e9d[0x2],_0x5604d9['gotoif'][_0x4867b0('0xeff')]=_0x4f2e9d[0x3],_0x5604d9['gotoif'][_0x4867b0('0x1cbc')]=_0x4f2e9d['slice'](0x4,_0x4f2e9d[_0x4867b0('0x1e22')])[_0x4867b0('0xa04')](',');}break;case'amazonlex':{const _0x1e272a=_0x5604d9[_0x4867b0('0x7cf')]['appdata']['split'](',');_0x5604d9[_0x4867b0('0x7cf')][_0x4867b0('0x1a82')]=_0x1e272a[0x0],_0x5604d9['gotoif'][_0x4867b0('0x1422')]=_0x1e272a[0x1],_0x5604d9[_0x4867b0('0x7cf')][_0x4867b0('0x165a')]=_0x1e272a[0x2],_0x5604d9['gotoif']['botname']=_0x1e272a[0x3],_0x5604d9[_0x4867b0('0x7cf')][_0x4867b0('0x1cbc')]=_0x1e272a[_0x4867b0('0x1b77')](0x4,_0x1e272a[_0x4867b0('0x1e22')])[_0x4867b0('0xa04')](',');}break;case _0x4867b0('0x187b'):{const _0x3a5558=_0x5604d9[_0x4867b0('0x7cf')][_0x4867b0('0x13fc')][_0x4867b0('0xaf8')](',');_0x5604d9[_0x4867b0('0x7cf')]['times']=isNaN(_0x3a5558[0x0])?_0x3a5558[0x0]:parseInt(_0x3a5558[0x0],0xa),_0x5604d9[_0x4867b0('0x7cf')][_0x4867b0('0x25ed')]=_0x3a5558[_0x4867b0('0x1b77')](0x1,_0x3a5558[_0x4867b0('0x1e22')])[_0x4867b0('0xa04')](',');}break;case _0x4867b0('0x1b86'):_0x5604d9[_0x4867b0('0x7cf')][_0x4867b0('0x25ed')]=_0x5604d9['gotoif']['appdata'];break;case'set':_0x5604d9[_0x4867b0('0x7cf')][_0x4867b0('0x1909')]=_0x5604d9[_0x4867b0('0x7cf')][_0x4867b0('0x13fc')][_0x4867b0('0xaf8')]('=')[0x0],_0x5604d9[_0x4867b0('0x7cf')][_0x4867b0('0x10cc')]=_0x5604d9['gotoif'][_0x4867b0('0x13fc')][_0x4867b0('0xaf8')]('=')[0x1];break;case _0x4867b0('0x1efd'):_0x5604d9[_0x4867b0('0x7cf')]['project']=_0x5604d9[_0x4867b0('0x7cf')]['appdata'];break;default:{const _0x69757f=_0x5604d9[_0x4867b0('0x7cf')][_0x4867b0('0x13fc')][_0x4867b0('0xaf8')](',');_0x5604d9[_0x4867b0('0x7cf')][_0x4867b0('0xccd')]=_0x36f548()['isEmpty'](_0x69757f[0x0])?_0x69757f[0x0]:isNaN(_0x69757f[0x0])?_0x69757f[0x0]:parseInt(_0x69757f[0x0],0xa),_0x5604d9[_0x4867b0('0x7cf')][_0x4867b0('0x1deb')]=_0x36f548()[_0x4867b0('0x1fc5')](_0x69757f[0x1])?_0x69757f[0x1]:isNaN(_0x69757f[0x1])?_0x69757f[0x1]:parseInt(_0x69757f[0x1],0xa),_0x5604d9[_0x4867b0('0x7cf')][_0x4867b0('0x7ed')]=_0x36f548()[_0x4867b0('0x1fc5')](_0x69757f[0x2])?_0x69757f[0x2]:isNaN(_0x69757f[0x2])?_0x69757f[0x2]:parseInt(_0x69757f[0x2],0xa);}break;}else{}_0x5604d9[_0x4867b0('0x7cf')][_0x4867b0('0x19fd')]&&_0x5604d9[_0x4867b0('0x7cf')][_0x4867b0('0x19fd')][_0x4867b0('0x20d5')]()===_0x4867b0('0x25b6')&&_0x5604d9['gotoif'][_0x4867b0('0x27c0')]['toLowerCase']()==='outbounddial'&&(_0x5604d9['gotoif']['prefix']=_0x5604d9['gotoif'][_0x4867b0('0x1546')]?_0x5604d9[_0x4867b0('0x7cf')][_0x4867b0('0x1546')][_0x4867b0('0xaf8')]('$')[0x0]:undefined,_0x5604d9[_0x4867b0('0x7cf')][_0x4867b0('0x7d0')]=_0x5604d9[_0x4867b0('0x7cf')][_0x4867b0('0xc38')]?'CALLERID(all)='+_0x5604d9[_0x4867b0('0x7cf')][_0x4867b0('0xc38')]:undefined);_0x5604d9['saveChatWebsiteApp']=_0x3d2d96,_0x5604d9[_0x4867b0('0xc4e')]=_0x5473c8;function _0x3d2d96(){const _0xc58bc6=_0x4867b0;_0x5604d9[_0xc58bc6('0x120f')]=[];const _0x346d1c=[];_0x5604d9[_0xc58bc6('0x7cf')][_0xc58bc6('0x19fd')]&&_0x5604d9[_0xc58bc6('0x7cf')][_0xc58bc6('0x19fd')][_0xc58bc6('0x20d5')]()===_0xc58bc6('0x25b6')&&_0x5604d9['gotoif'][_0xc58bc6('0x27c0')]===_0xc58bc6('0x1bf6')&&(_0x5604d9[_0xc58bc6('0x7cf')]['phone']=_0x314269[_0xc58bc6('0x388')]?(_0x5604d9[_0xc58bc6('0x7cf')]['prefix']||'')+_0xc58bc6('0x2100')+_0x314269['cutdigits']+'}':(_0x5604d9[_0xc58bc6('0x7cf')]['prefix']||'')+_0xc58bc6('0x1f76'),_0x314269['recordingFormat']!==_0xc58bc6('0x3e6')?_0x5604d9['gotoif'][_0xc58bc6('0x249a')]['indexOf'](_0xc58bc6('0x22c9'))<0x0&&(_0x5604d9['gotoif'][_0xc58bc6('0x249a')]+=_0xc58bc6('0x22c9')):_0x5604d9[_0xc58bc6('0x7cf')][_0xc58bc6('0x249a')]=_0x5604d9['gotoif'][_0xc58bc6('0x249a')][_0xc58bc6('0x814')]('U(xcally-mixmonitor-context)',''));if(_0x5604d9[_0xc58bc6('0x7cf')][_0xc58bc6('0x27c0')]&&_0x5604d9[_0xc58bc6('0x7cf')][_0xc58bc6('0x27c0')]===_0xc58bc6('0xa8d')){}else switch((_0x5604d9[_0xc58bc6('0x7cf')][_0xc58bc6('0x18f5')]||_0x5604d9[_0xc58bc6('0x7cf')][_0xc58bc6('0x27c0')])[_0xc58bc6('0x20d5')]()){case _0xc58bc6('0xe50'):_0x5604d9[_0xc58bc6('0x7cf')]['appdata']=_0x5604d9[_0xc58bc6('0x7cf')][_0xc58bc6('0x1909')]+'='+_0x5604d9[_0xc58bc6('0x7cf')][_0xc58bc6('0x10cc')];break;case _0xc58bc6('0xa8d'):break;default:_0x346d1c[0x0]=_0x5604d9['gotoif'][_0xc58bc6('0xccd')],_0x346d1c[0x1]=_0x5604d9[_0xc58bc6('0x7cf')][_0xc58bc6('0x1deb')],_0x346d1c[0x2]=_0x5604d9[_0xc58bc6('0x7cf')][_0xc58bc6('0x7ed')],_0x5604d9[_0xc58bc6('0x7cf')][_0xc58bc6('0x13fc')]=_0x346d1c[_0xc58bc6('0xa04')](',');}_0x5473c8(_0x5604d9[_0xc58bc6('0x7cf')]);}function _0x5473c8(_0x3fc68c){const _0x10709=_0x4867b0;_0x4e6559[_0x10709('0x237e')](_0x3fc68c);}}const _0x38f480=_0xfdb03a;_0x169de0[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1ca2'),'$q','toasty',_0x21d0f5('0x24d0'),_0x21d0f5('0xb50'),'api',_0x21d0f5('0x1150'),_0x21d0f5('0xb25')];function _0x169de0(_0x106dab,_0x58579d,_0x1144e8,_0x431b19,_0x359f41,_0x2ed9dd,_0x1ff2f0,_0x16ec72){const _0x4a0bdf=_0x21d0f5,_0x2a28d6=this;_0x2a28d6[_0x4a0bdf('0x32a')]=_0x1ff2f0['getCurrentUser'](),_0x2a28d6['errors']=[],_0x2a28d6[_0x4a0bdf('0x134b')]=_0x4a0bdf('0x2435')+(_0x431b19['appType']||_0x431b19[_0x4a0bdf('0x18f5')])[_0x4a0bdf('0xa6f')](),_0x2a28d6[_0x4a0bdf('0x110d')]=angular['copy'](_0x431b19),_0x2a28d6[_0x4a0bdf('0xb25')]=_0x16ec72,_0x2a28d6[_0x4a0bdf('0x2c9')]={};if(_0x2a28d6['gotop']['appdata'])switch(_0x2a28d6[_0x4a0bdf('0x110d')][_0x4a0bdf('0x27c0')]?_0x2a28d6[_0x4a0bdf('0x110d')][_0x4a0bdf('0x27c0')][_0x4a0bdf('0x20d5')]():_0x2a28d6[_0x4a0bdf('0x110d')]['app']['toLowerCase']()){case _0x4a0bdf('0xa8d'):break;case _0x4a0bdf('0x185e'):{const _0x31a0c3=_0x2a28d6[_0x4a0bdf('0x110d')][_0x4a0bdf('0x13fc')][_0x4a0bdf('0xaf8')](',');_0x2a28d6[_0x4a0bdf('0x110d')][_0x4a0bdf('0xa0c')]=_0x31a0c3[0x0],_0x2a28d6['gotop'][_0x4a0bdf('0xeff')]=_0x31a0c3[0x1],_0x2a28d6[_0x4a0bdf('0x110d')][_0x4a0bdf('0x1cbc')]=_0x31a0c3[_0x4a0bdf('0x1b77')](0x2,_0x31a0c3[_0x4a0bdf('0x1e22')])['join'](',');}break;case'dialogflowv2':{const _0x23c068=_0x2a28d6[_0x4a0bdf('0x110d')][_0x4a0bdf('0x13fc')][_0x4a0bdf('0xaf8')](',');_0x2a28d6[_0x4a0bdf('0x110d')][_0x4a0bdf('0x20e')]=_0x23c068[0x0],_0x2a28d6['gotop'][_0x4a0bdf('0x1f91')]=_0x23c068[0x1],_0x2a28d6['gotop'][_0x4a0bdf('0x1c6c')]=_0x23c068[0x2],_0x2a28d6['gotop'][_0x4a0bdf('0xeff')]=_0x23c068[0x3],_0x2a28d6[_0x4a0bdf('0x110d')][_0x4a0bdf('0x1cbc')]=_0x23c068[_0x4a0bdf('0x1b77')](0x4,_0x23c068['length'])[_0x4a0bdf('0xa04')](',');}break;case _0x4a0bdf('0x102c'):{const _0x10a9ce=_0x2a28d6[_0x4a0bdf('0x110d')]['appdata']['split'](',');_0x2a28d6[_0x4a0bdf('0x110d')]['accesskeyid']=_0x10a9ce[0x0],_0x2a28d6[_0x4a0bdf('0x110d')][_0x4a0bdf('0x1422')]=_0x10a9ce[0x1],_0x2a28d6[_0x4a0bdf('0x110d')][_0x4a0bdf('0x165a')]=_0x10a9ce[0x2],_0x2a28d6[_0x4a0bdf('0x110d')][_0x4a0bdf('0x1e8f')]=_0x10a9ce[0x3],_0x2a28d6[_0x4a0bdf('0x110d')][_0x4a0bdf('0x1cbc')]=_0x10a9ce[_0x4a0bdf('0x1b77')](0x4,_0x10a9ce[_0x4a0bdf('0x1e22')])['join'](',');}break;case _0x4a0bdf('0x187b'):{const _0x2c7951=_0x2a28d6['gotop'][_0x4a0bdf('0x13fc')][_0x4a0bdf('0xaf8')](',');_0x2a28d6[_0x4a0bdf('0x110d')][_0x4a0bdf('0x663')]=isNaN(_0x2c7951[0x0])?_0x2c7951[0x0]:parseInt(_0x2c7951[0x0],0xa),_0x2a28d6[_0x4a0bdf('0x110d')][_0x4a0bdf('0x25ed')]=_0x2c7951[_0x4a0bdf('0x1b77')](0x1,_0x2c7951[_0x4a0bdf('0x1e22')])[_0x4a0bdf('0xa04')](',');}break;case'message':_0x2a28d6[_0x4a0bdf('0x110d')][_0x4a0bdf('0x25ed')]=_0x2a28d6[_0x4a0bdf('0x110d')][_0x4a0bdf('0x13fc')];break;case _0x4a0bdf('0xe50'):_0x2a28d6['gotop']['name']=_0x2a28d6['gotop'][_0x4a0bdf('0x13fc')][_0x4a0bdf('0xaf8')]('=')[0x0],_0x2a28d6[_0x4a0bdf('0x110d')][_0x4a0bdf('0x10cc')]=_0x2a28d6[_0x4a0bdf('0x110d')][_0x4a0bdf('0x13fc')][_0x4a0bdf('0xaf8')]('=')[0x1];break;case _0x4a0bdf('0x1efd'):_0x2a28d6[_0x4a0bdf('0x110d')][_0x4a0bdf('0xef0')]=_0x2a28d6['gotop']['appdata'];break;default:{const _0x271886=_0x2a28d6[_0x4a0bdf('0x110d')][_0x4a0bdf('0x13fc')][_0x4a0bdf('0xaf8')](',');_0x2a28d6[_0x4a0bdf('0x110d')][_0x4a0bdf('0x2804')]=_0x36f548()[_0x4a0bdf('0x1fc5')](_0x271886[0x0])?_0x271886[0x0]:isNaN(_0x271886[0x0])?_0x271886[0x0]:parseInt(_0x271886[0x0],0xa);}break;}else{}_0x2a28d6[_0x4a0bdf('0x110d')]['type']&&_0x2a28d6[_0x4a0bdf('0x110d')]['type']['toLowerCase']()===_0x4a0bdf('0x25b6')&&_0x2a28d6[_0x4a0bdf('0x110d')]['appType'][_0x4a0bdf('0x20d5')]()===_0x4a0bdf('0x1a64')&&(_0x2a28d6[_0x4a0bdf('0x110d')]['prefix']=_0x2a28d6[_0x4a0bdf('0x110d')]['phone']?_0x2a28d6[_0x4a0bdf('0x110d')]['phone'][_0x4a0bdf('0xaf8')]('$')[0x0]:undefined,_0x2a28d6['gotop'][_0x4a0bdf('0x7d0')]=_0x2a28d6[_0x4a0bdf('0x110d')][_0x4a0bdf('0xc38')]?_0x4a0bdf('0x83a')+_0x2a28d6['gotop']['callerID']:undefined);_0x2a28d6[_0x4a0bdf('0xe26')]=_0x17eeaf,_0x2a28d6['closeDialog']=_0x49870e;function _0x17eeaf(){const _0x2b3448=_0x4a0bdf;_0x2a28d6['errors']=[];const _0xde25fd=[];_0x2a28d6['gotop'][_0x2b3448('0x19fd')]&&_0x2a28d6['gotop'][_0x2b3448('0x19fd')][_0x2b3448('0x20d5')]()===_0x2b3448('0x25b6')&&_0x2a28d6[_0x2b3448('0x110d')][_0x2b3448('0x27c0')]==='outboundDial'&&(_0x2a28d6[_0x2b3448('0x110d')][_0x2b3448('0x1546')]=_0x359f41[_0x2b3448('0x388')]?(_0x2a28d6['gotop'][_0x2b3448('0x2137')]||'')+'${EXTEN:'+_0x359f41[_0x2b3448('0x388')]+'}':(_0x2a28d6['gotop'][_0x2b3448('0x2137')]||'')+'${EXTEN}',_0x359f41[_0x2b3448('0x897')]!==_0x2b3448('0x3e6')?_0x2a28d6[_0x2b3448('0x110d')]['options']['indexOf'](_0x2b3448('0x22c9'))<0x0&&(_0x2a28d6['gotop'][_0x2b3448('0x249a')]+='U(xcally-mixmonitor-context)'):_0x2a28d6[_0x2b3448('0x110d')]['options']=_0x2a28d6[_0x2b3448('0x110d')][_0x2b3448('0x249a')]['replace'](_0x2b3448('0x22c9'),''));if(_0x2a28d6[_0x2b3448('0x110d')][_0x2b3448('0x27c0')]&&_0x2a28d6[_0x2b3448('0x110d')][_0x2b3448('0x27c0')]===_0x2b3448('0xa8d')){}else switch((_0x2a28d6[_0x2b3448('0x110d')]['app']||_0x2a28d6['gotop'][_0x2b3448('0x27c0')])[_0x2b3448('0x20d5')]()){case _0x2b3448('0xe50'):_0x2a28d6['gotop']['appdata']=_0x2a28d6[_0x2b3448('0x110d')][_0x2b3448('0x1909')]+'='+_0x2a28d6[_0x2b3448('0x110d')][_0x2b3448('0x10cc')];break;case _0x2b3448('0xa8d'):break;default:_0xde25fd[0x0]=_0x2a28d6[_0x2b3448('0x110d')][_0x2b3448('0x2804')],_0x2a28d6[_0x2b3448('0x110d')][_0x2b3448('0x13fc')]=_0xde25fd['join'](',');}_0x49870e(_0x2a28d6['gotop']);}function _0x49870e(_0xaac373){const _0xf21241=_0x4a0bdf;_0x106dab[_0xf21241('0x237e')](_0xaac373);}}const _0x3995a3=_0x169de0;_0x4f0f17[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0xcbc'),'$mdDialog',_0x21d0f5('0x1d2f'),_0x21d0f5('0x216f'),'interval',_0x21d0f5('0xe82'),_0x21d0f5('0x142d'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),_0x21d0f5('0xb25')];function _0x4f0f17(_0x58ab66,_0x4d4606,_0xb0b734,_0x10a41f,_0x529b38,_0xe9eff0,_0x19929b,_0x55db37,_0x59fe97,_0xd898b5){const _0x5ddb7c=_0x21d0f5,_0xa24dcf=this;_0xa24dcf[_0x5ddb7c('0x32a')]=_0x59fe97[_0x5ddb7c('0x2428')](),_0xa24dcf[_0x5ddb7c('0x120f')]=[],_0xa24dcf['title']=_0x5ddb7c('0x1d07'),_0xa24dcf['interval']=angular[_0x5ddb7c('0x6fb')](_0x529b38),_0xa24dcf[_0x5ddb7c('0xe82')]=_0xe9eff0,_0xa24dcf[_0x5ddb7c('0x18cf')]=![],_0xa24dcf[_0x5ddb7c('0x1660')]=[_0x5ddb7c('0x27e5'),'custom',_0x5ddb7c('0x257d')],_0xa24dcf['crudPermissions']=_0xd898b5,_0xa24dcf['daysOfWeek']=_0x10a41f[_0x5ddb7c('0x25e1')](),_0xa24dcf['monthNumber']=_0x10a41f[_0x5ddb7c('0xf7a')](),_0xa24dcf[_0x5ddb7c('0x19c8')]=_0x10a41f[_0x5ddb7c('0x311')](),_0xa24dcf[_0x5ddb7c('0x256b')]=_0x10a41f[_0x5ddb7c('0x1ebc')]();if(!_0xa24dcf['interval'])_0xa24dcf[_0x5ddb7c('0x507')]={'interval':_0x5ddb7c('0x1830')},_0xa24dcf[_0x5ddb7c('0x19fd')]=_0x5ddb7c('0x27e5'),_0xa24dcf['title']=_0x5ddb7c('0x1aba'),_0xa24dcf['newInterval']=!![];else{if(_0xa24dcf[_0x5ddb7c('0x507')][_0x5ddb7c('0x507')]!==_0x5ddb7c('0x1830')){_0xa24dcf['type']=_0x5ddb7c('0xa8d');const _0x1b7721=_0xa24dcf[_0x5ddb7c('0x507')][_0x5ddb7c('0x507')][_0x5ddb7c('0xaf8')](','),_0x5a310c=_0x1b7721[0x0],_0x420755=_0x1b7721[0x1],_0x4931cc=_0x1b7721[0x2],_0xbb2f3b=_0x1b7721[0x3];if(_0x5a310c!=='*'){const _0x3fa0fb=_0x5a310c[_0x5ddb7c('0xaf8')]('-')[0x0],_0x114238=_0x5a310c[_0x5ddb7c('0xaf8')]('-')[0x1];let _0x1b68f7;_0x1b68f7=new Date(),_0x1b68f7['setHours'](Number(_0x3fa0fb[_0x5ddb7c('0xaf8')](':')[0x0])),_0x1b68f7[_0x5ddb7c('0x7b6')](Number(_0x3fa0fb[_0x5ddb7c('0xaf8')](':')[0x1])),_0xa24dcf[_0x5ddb7c('0x269b')]=_0x1b68f7,_0x1b68f7=new Date(),_0x1b68f7[_0x5ddb7c('0x29e')](Number(_0x114238[_0x5ddb7c('0xaf8')](':')[0x0])),_0x1b68f7[_0x5ddb7c('0x7b6')](Number(_0x114238[_0x5ddb7c('0xaf8')](':')[0x1])),_0xa24dcf['timeRangeTo']=_0x1b68f7;}_0x420755!=='*'&&(_0xa24dcf[_0x5ddb7c('0x126e')]=_0x420755[_0x5ddb7c('0xaf8')]('-')[0x0],_0xa24dcf[_0x5ddb7c('0x261')]=_0x420755[_0x5ddb7c('0xaf8')]('-')[0x1]),_0x4931cc!=='*'&&(_0xa24dcf['monthDayFrom']=_0x4931cc[_0x5ddb7c('0xaf8')]('-')[0x0],_0xa24dcf[_0x5ddb7c('0x1883')]=_0x4931cc[_0x5ddb7c('0xaf8')]('-')[0x1]),_0xbb2f3b!=='*'&&(_0xa24dcf['monthFrom']=_0xbb2f3b['split']('-')[0x0],_0xa24dcf[_0x5ddb7c('0x1155')]=_0xbb2f3b[_0x5ddb7c('0xaf8')]('-')[0x1]);}else _0xa24dcf[_0x5ddb7c('0x19fd')]=_0x5ddb7c('0x27e5');}_0x58ab66[_0x5ddb7c('0x1ab3')]['id']&&!_0xa24dcf[_0x5ddb7c('0x507')]['application']&&(_0xa24dcf[_0x5ddb7c('0x507')][_0x5ddb7c('0x6b4')]=_0x58ab66[_0x5ddb7c('0x1ab3')]['id']);_0xa24dcf[_0x5ddb7c('0x507')][_0x5ddb7c('0x6b4')]&&_0xa24dcf[_0x5ddb7c('0x507')][_0x5ddb7c('0x1cf1')]&&(_0xa24dcf[_0x5ddb7c('0x19fd')]=_0x5ddb7c('0x257d'));_0xa24dcf[_0x5ddb7c('0x119a')]=_0x23e856,_0xa24dcf['saveInterval']=_0x12b98c,_0xa24dcf[_0x5ddb7c('0xc4e')]=_0x5deebe;_0xa24dcf[_0x5ddb7c('0x507')][_0x5ddb7c('0x1cf1')]&&(_0x59fe97[_0x5ddb7c('0x4ee')](_0x5ddb7c('0xf45'))?_0x55db37[_0x5ddb7c('0x507')]['get']({'fields':_0x5ddb7c('0x1af5'),'IntervalId':_0x5ddb7c('0xb5f'),'nolimit':!![]})[_0x5ddb7c('0x1549')][_0x5ddb7c('0x11bf')](function(_0x16c0e7){const _0x4dc549=_0x5ddb7c;_0xa24dcf[_0x4dc549('0xe82')]=_0x16c0e7['rows']||[];})[_0x5ddb7c('0x151d')](function(_0x110b2f){const _0x32a816=_0x5ddb7c;_0x19929b['error']({'title':_0x110b2f[_0x32a816('0xff9')]?'API:'+_0x110b2f['status']+_0x32a816('0xb0b')+_0x110b2f[_0x32a816('0x212f')]:_0x32a816('0x611'),'msg':_0x110b2f[_0x32a816('0x4e8')]?JSON[_0x32a816('0x3e')](_0x110b2f[_0x32a816('0x4e8')]):_0x110b2f[_0x32a816('0xaab')]()});}):_0x55db37[_0x5ddb7c('0x507')][_0x5ddb7c('0xbaa')]({'fields':_0x5ddb7c('0x1af5'),'IntervalId':_0x5ddb7c('0xb5f'),'nolimit':!![]})[_0x5ddb7c('0x1549')][_0x5ddb7c('0x11bf')](function(_0x19702c){const _0x349653=_0x5ddb7c;_0xa24dcf[_0x349653('0xe82')]=_0x19702c['rows']||[];})[_0x5ddb7c('0x11bf')](function(){const _0x46c268=_0x5ddb7c;return _0x55db37[_0x46c268('0x1d63')][_0x46c268('0xbaa')]({'userProfileId':_0xa24dcf[_0x46c268('0x32a')][_0x46c268('0x781')],'sectionId':0x3ec})[_0x46c268('0x1549')];})['then'](function(_0x419da7){const _0x317a1f=_0x5ddb7c,_0x358dc2=_0x419da7&&_0x419da7[_0x317a1f('0x19b2')]?_0x419da7[_0x317a1f('0x19b2')][0x0]:null;if(!_0x358dc2)_0xa24dcf['intervals']=[];else{if(!_0x358dc2['autoAssociation'])return _0x55db37[_0x317a1f('0x26d1')]['get']({'sectionId':_0x358dc2['id']})['$promise'][_0x317a1f('0x11bf')](function(_0x5a05ae){const _0x126073=_0x317a1f,_0x30fef4=_0x5a05ae&&_0x5a05ae[_0x126073('0x19b2')]?_0x5a05ae[_0x126073('0x19b2')]:[],_0x54f1ff=[];let _0x5958d5=null;_0xa24dcf['interval']&&(_0x5958d5=_0x36f548()[_0x126073('0x1ad4')](_0xa24dcf[_0x126073('0xe82')],{'name':_0xa24dcf[_0x126073('0x507')][_0x126073('0x6b4')]})),_0x5958d5&&!_0x36f548()['some'](_0x30fef4,[_0x126073('0x15a5'),_0x5958d5['id']])&&_0xa24dcf[_0x126073('0xe82')][_0x126073('0x1f88')](function(_0x2edfaf){const _0x3262bf=_0x126073;_0x2edfaf['id']===_0x5958d5['id']&&(_0x2edfaf[_0x3262bf('0x254a')]=![],_0x54f1ff[_0x3262bf('0x105d')](_0x2edfaf));}),_0xa24dcf[_0x126073('0xe82')]=_0x54f1ff;});}})[_0x5ddb7c('0x151d')](function(_0x365a2f){const _0x5a11bb=_0x5ddb7c;_0x19929b[_0x5a11bb('0x255')]({'title':_0x365a2f['status']?_0x5a11bb('0x574')+_0x365a2f[_0x5a11bb('0xff9')]+_0x5a11bb('0xb0b')+_0x365a2f['statusText']:'SYSTEM:GET_INTERVALS','msg':_0x365a2f['data']?JSON[_0x5a11bb('0x3e')](_0x365a2f[_0x5a11bb('0x4e8')]):_0x365a2f[_0x5a11bb('0xaab')]()});}));function _0x369562(){const _0x3c497b=_0x5ddb7c;switch(_0xa24dcf[_0x3c497b('0x19fd')]){case _0x3c497b('0x27e5'):case'list':return _0x3c497b('0x1830');case _0x3c497b('0xa8d'):{const _0x251001=[];if(_0xa24dcf[_0x3c497b('0x269b')]!=='*'&&_0xa24dcf[_0x3c497b('0x269b')]&&_0xa24dcf[_0x3c497b('0x19e5')]){const _0x51dada=(_0xa24dcf[_0x3c497b('0x269b')]['getHours']()<0xa?'0':'')+_0xa24dcf[_0x3c497b('0x269b')][_0x3c497b('0x1e34')]()+':'+((_0xa24dcf[_0x3c497b('0x269b')][_0x3c497b('0xdcc')]()<0xa?'0':'')+_0xa24dcf[_0x3c497b('0x269b')][_0x3c497b('0xdcc')]()),_0x570f7e=(_0xa24dcf[_0x3c497b('0x19e5')][_0x3c497b('0x1e34')]()<0xa?'0':'')+_0xa24dcf[_0x3c497b('0x19e5')][_0x3c497b('0x1e34')]()+':'+((_0xa24dcf['timeRangeTo']['getMinutes']()<0xa?'0':'')+_0xa24dcf[_0x3c497b('0x19e5')]['getMinutes']());_0x251001[_0x3c497b('0x105d')](_0x51dada+'-'+_0x570f7e);}else _0x251001[_0x3c497b('0x105d')]('*');return _0xa24dcf[_0x3c497b('0x126e')]?_0xa24dcf[_0x3c497b('0x261')]?_0x251001[_0x3c497b('0x105d')](_0xa24dcf[_0x3c497b('0x126e')]+'-'+_0xa24dcf[_0x3c497b('0x261')]):_0x251001[_0x3c497b('0x105d')](_0xa24dcf[_0x3c497b('0x126e')]):_0x251001['push']('*'),_0xa24dcf['monthDayFrom']?_0xa24dcf[_0x3c497b('0x1883')]?_0x251001[_0x3c497b('0x105d')](_0xa24dcf[_0x3c497b('0xecd')]+'-'+_0xa24dcf[_0x3c497b('0x1883')]):_0x251001[_0x3c497b('0x105d')](_0xa24dcf[_0x3c497b('0xecd')]):_0x251001[_0x3c497b('0x105d')]('*'),_0xa24dcf[_0x3c497b('0xad3')]?_0xa24dcf[_0x3c497b('0x1155')]?_0x251001[_0x3c497b('0x105d')](_0xa24dcf[_0x3c497b('0xad3')]+'-'+_0xa24dcf['monthTo']):_0x251001[_0x3c497b('0x105d')](_0xa24dcf[_0x3c497b('0xad3')]):_0x251001['push']('*'),_0x251001[_0x3c497b('0xa04')]();}}}function _0x23e856(){const _0x2d70ce=_0x5ddb7c;_0xa24dcf['errors']=[],_0xa24dcf[_0x2d70ce('0x507')][_0x2d70ce('0x507')]=_0x369562(),_0x55db37[_0x2d70ce('0x507')][_0x2d70ce('0x259')](_0xa24dcf[_0x2d70ce('0x507')])[_0x2d70ce('0x1549')][_0x2d70ce('0x11bf')](function(_0x3f4346){const _0x414626=_0x2d70ce;_0xa24dcf[_0x414626('0xe82')]['push'](_0x3f4346),_0x19929b[_0x414626('0x2693')]({'title':'Interval\x20properly\x20created','msg':_0xa24dcf[_0x414626('0x507')][_0x414626('0x1909')]?_0xa24dcf['interval'][_0x414626('0x1909')]+_0x414626('0x7fb'):''}),_0x5deebe();})[_0x2d70ce('0x151d')](function(_0x4cd2f7){const _0x553718=_0x2d70ce;console[_0x553718('0x255')](_0x4cd2f7),_0xa24dcf['errors']=_0x4cd2f7['data'][_0x553718('0x120f')]||[{'message':_0x4cd2f7[_0x553718('0xaab')](),'type':_0x553718('0x200b')}];});}function _0x12b98c(){const _0x59c233=_0x5ddb7c;_0xa24dcf[_0x59c233('0x120f')]=[],_0xa24dcf[_0x59c233('0x507')][_0x59c233('0x507')]=_0x369562(),_0xa24dcf['interval'][_0x59c233('0x1cf1')]?(_0xa24dcf[_0x59c233('0x19fd')]!=='list'&&(_0xa24dcf[_0x59c233('0x507')][_0x59c233('0x6b4')]=null),_0x5deebe(_0xa24dcf['interval'])):_0x55db37['interval']['update']({'id':_0xa24dcf[_0x59c233('0x507')]['id']},_0xa24dcf[_0x59c233('0x507')])[_0x59c233('0x1549')]['then'](function(_0x267178){const _0x548f1f=_0x59c233,_0x151205=_0x36f548()[_0x548f1f('0x1ad4')](_0xa24dcf['intervals'],{'id':_0x267178['id']});_0x151205&&_0x36f548()[_0x548f1f('0x47b')](_0x151205,_0x267178),_0x19929b['success']({'title':_0x548f1f('0x1177'),'msg':'Interval\x20has\x20been\x20saved!'}),_0x5deebe();})[_0x59c233('0x151d')](function(_0x457b6d){const _0x150107=_0x59c233;console[_0x150107('0x255')](_0x457b6d),_0xa24dcf[_0x150107('0x120f')]=_0x457b6d[_0x150107('0x4e8')][_0x150107('0x120f')]||[{'message':_0x457b6d['toString'](),'type':_0x150107('0x3dd')}];});}function _0x5deebe(_0x230a67){_0x4d4606['hide'](_0x230a67);}}const _0x1c2cb5=_0x4f0f17;_0x156eb7[_0x21d0f5('0x1e9a')]=['$mdDialog','$q',_0x21d0f5('0x142d'),_0x21d0f5('0x24d0'),'chatWebsite','api',_0x21d0f5('0x1150'),'crudPermissions'];function _0x156eb7(_0x260590,_0x425e49,_0x539fcd,_0xe81309,_0x5cc45e,_0xf460d4,_0x29b445,_0x26f2ec){const _0x31c79e=_0x21d0f5,_0x2f6188=this;_0x2f6188['currentUser']=_0x29b445[_0x31c79e('0x2428')](),_0x2f6188[_0x31c79e('0x120f')]=[],_0x2f6188[_0x31c79e('0x134b')]=_0x31c79e('0x2435')+(_0xe81309['appType']||_0xe81309[_0x31c79e('0x18f5')])[_0x31c79e('0xa6f')](),_0x2f6188[_0x31c79e('0x2b8')]=angular[_0x31c79e('0x6fb')](_0xe81309),_0x2f6188[_0x31c79e('0xb25')]=_0x26f2ec,_0x2f6188['hasModulePermissions']={};if(_0x2f6188[_0x31c79e('0x2b8')][_0x31c79e('0x13fc')])switch(_0x2f6188[_0x31c79e('0x2b8')]['appType']?_0x2f6188['noop']['appType'][_0x31c79e('0x20d5')]():_0x2f6188['noop']['app']['toLowerCase']()){case _0x31c79e('0xa8d'):break;case _0x31c79e('0x185e'):{const _0x318a75=_0x2f6188['noop']['appdata'][_0x31c79e('0xaf8')](',');_0x2f6188[_0x31c79e('0x2b8')][_0x31c79e('0xa0c')]=_0x318a75[0x0],_0x2f6188['noop'][_0x31c79e('0xeff')]=_0x318a75[0x1],_0x2f6188[_0x31c79e('0x2b8')][_0x31c79e('0x1cbc')]=_0x318a75['slice'](0x2,_0x318a75[_0x31c79e('0x1e22')])[_0x31c79e('0xa04')](',');}break;case _0x31c79e('0x21a8'):{const _0xfa7eda=_0x2f6188[_0x31c79e('0x2b8')][_0x31c79e('0x13fc')]['split'](',');_0x2f6188[_0x31c79e('0x2b8')][_0x31c79e('0x20e')]=_0xfa7eda[0x0],_0x2f6188['noop'][_0x31c79e('0x1f91')]=_0xfa7eda[0x1],_0x2f6188[_0x31c79e('0x2b8')]['privateKey']=_0xfa7eda[0x2],_0x2f6188[_0x31c79e('0x2b8')][_0x31c79e('0xeff')]=_0xfa7eda[0x3],_0x2f6188[_0x31c79e('0x2b8')][_0x31c79e('0x1cbc')]=_0xfa7eda[_0x31c79e('0x1b77')](0x4,_0xfa7eda[_0x31c79e('0x1e22')])[_0x31c79e('0xa04')](',');}break;case'amazonlex':{const _0x153b03=_0x2f6188[_0x31c79e('0x2b8')][_0x31c79e('0x13fc')][_0x31c79e('0xaf8')](',');_0x2f6188[_0x31c79e('0x2b8')][_0x31c79e('0x1a82')]=_0x153b03[0x0],_0x2f6188['noop'][_0x31c79e('0x1422')]=_0x153b03[0x1],_0x2f6188['noop'][_0x31c79e('0x165a')]=_0x153b03[0x2],_0x2f6188[_0x31c79e('0x2b8')][_0x31c79e('0x1e8f')]=_0x153b03[0x3],_0x2f6188['noop'][_0x31c79e('0x1cbc')]=_0x153b03[_0x31c79e('0x1b77')](0x4,_0x153b03[_0x31c79e('0x1e22')])[_0x31c79e('0xa04')](',');}break;case _0x31c79e('0x187b'):{const _0x19ce22=_0x2f6188['noop'][_0x31c79e('0x13fc')]['split'](',');_0x2f6188[_0x31c79e('0x2b8')]['times']=isNaN(_0x19ce22[0x0])?_0x19ce22[0x0]:parseInt(_0x19ce22[0x0],0xa),_0x2f6188[_0x31c79e('0x2b8')]['text']=_0x19ce22[_0x31c79e('0x1b77')](0x1,_0x19ce22[_0x31c79e('0x1e22')])[_0x31c79e('0xa04')](',');}break;case _0x31c79e('0x1b86'):_0x2f6188[_0x31c79e('0x2b8')][_0x31c79e('0x25ed')]=_0x2f6188[_0x31c79e('0x2b8')][_0x31c79e('0x13fc')];break;case _0x31c79e('0xe50'):_0x2f6188[_0x31c79e('0x2b8')][_0x31c79e('0x1909')]=_0x2f6188[_0x31c79e('0x2b8')][_0x31c79e('0x13fc')][_0x31c79e('0xaf8')]('=')[0x0],_0x2f6188[_0x31c79e('0x2b8')][_0x31c79e('0x10cc')]=_0x2f6188['noop']['appdata']['split']('=')[0x1];break;case _0x31c79e('0x1efd'):_0x2f6188[_0x31c79e('0x2b8')]['project']=_0x2f6188['noop'][_0x31c79e('0x13fc')];break;default:{const _0x4dac98=_0x2f6188[_0x31c79e('0x2b8')][_0x31c79e('0x13fc')][_0x31c79e('0xaf8')](',');_0x2f6188[_0x31c79e('0x2b8')][_0x31c79e('0x10cc')]=_0x36f548()[_0x31c79e('0x1fc5')](_0x4dac98[0x0])?_0x4dac98[0x0]:isNaN(_0x4dac98[0x0])?_0x4dac98[0x0]:parseInt(_0x4dac98[0x0],0xa);}break;}else{}_0x2f6188[_0x31c79e('0x2b8')][_0x31c79e('0x19fd')]&&_0x2f6188[_0x31c79e('0x2b8')]['type'][_0x31c79e('0x20d5')]()===_0x31c79e('0x25b6')&&_0x2f6188['noop'][_0x31c79e('0x27c0')]['toLowerCase']()===_0x31c79e('0x1a64')&&(_0x2f6188[_0x31c79e('0x2b8')]['prefix']=_0x2f6188['noop']['phone']?_0x2f6188[_0x31c79e('0x2b8')]['phone'][_0x31c79e('0xaf8')]('$')[0x0]:undefined,_0x2f6188[_0x31c79e('0x2b8')][_0x31c79e('0x7d0')]=_0x2f6188[_0x31c79e('0x2b8')][_0x31c79e('0xc38')]?'CALLERID(all)='+_0x2f6188['noop']['callerID']:undefined);_0x2f6188['saveChatWebsiteApp']=_0x4c6b0a,_0x2f6188['closeDialog']=_0x478ce9;function _0x4c6b0a(){const _0x5750e9=_0x31c79e;_0x2f6188[_0x5750e9('0x120f')]=[];const _0x37b2f1=[];_0x2f6188[_0x5750e9('0x2b8')]['type']&&_0x2f6188['noop'][_0x5750e9('0x19fd')]['toLowerCase']()===_0x5750e9('0x25b6')&&_0x2f6188[_0x5750e9('0x2b8')][_0x5750e9('0x27c0')]===_0x5750e9('0x1bf6')&&(_0x2f6188[_0x5750e9('0x2b8')]['phone']=_0x5cc45e['cutdigits']?(_0x2f6188['noop'][_0x5750e9('0x2137')]||'')+_0x5750e9('0x2100')+_0x5cc45e['cutdigits']+'}':(_0x2f6188['noop']['prefix']||'')+'${EXTEN}',_0x5cc45e[_0x5750e9('0x897')]!=='none'?_0x2f6188['noop'][_0x5750e9('0x249a')]['indexOf'](_0x5750e9('0x22c9'))<0x0&&(_0x2f6188[_0x5750e9('0x2b8')][_0x5750e9('0x249a')]+=_0x5750e9('0x22c9')):_0x2f6188['noop'][_0x5750e9('0x249a')]=_0x2f6188['noop']['options'][_0x5750e9('0x814')](_0x5750e9('0x22c9'),''));if(_0x2f6188['noop'][_0x5750e9('0x27c0')]&&_0x2f6188['noop'][_0x5750e9('0x27c0')]===_0x5750e9('0xa8d')){}else switch((_0x2f6188[_0x5750e9('0x2b8')][_0x5750e9('0x18f5')]||_0x2f6188[_0x5750e9('0x2b8')][_0x5750e9('0x27c0')])[_0x5750e9('0x20d5')]()){case _0x5750e9('0xe50'):_0x2f6188['noop'][_0x5750e9('0x13fc')]=_0x2f6188[_0x5750e9('0x2b8')][_0x5750e9('0x1909')]+'='+_0x2f6188[_0x5750e9('0x2b8')]['value'];break;case _0x5750e9('0xa8d'):break;default:_0x37b2f1[0x0]=_0x2f6188[_0x5750e9('0x2b8')][_0x5750e9('0x10cc')],_0x2f6188['noop'][_0x5750e9('0x13fc')]=_0x37b2f1['join'](',');}_0x478ce9(_0x2f6188[_0x5750e9('0x2b8')]);}function _0x478ce9(_0x34a2f3){const _0x87abd6=_0x31c79e;_0x260590[_0x87abd6('0x237e')](_0x34a2f3);}}const _0x325cf0=_0x156eb7;_0x180c24['$inject']=[_0x21d0f5('0x1ca2'),'$q','toasty',_0x21d0f5('0x24d0'),_0x21d0f5('0xb50'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),_0x21d0f5('0xb25')];function _0x180c24(_0x123a78,_0x3a5f42,_0x544c75,_0x34c326,_0x3b1293,_0xf3f07a,_0x323950,_0x2701e6){const _0x35b031=_0x21d0f5,_0x14d299=this;_0x14d299[_0x35b031('0x32a')]=_0x323950[_0x35b031('0x2428')](),_0x14d299['errors']=[],_0x14d299['title']=_0x35b031('0x2435')+(_0x34c326[_0x35b031('0x27c0')]||_0x34c326['app'])[_0x35b031('0xa6f')](),_0x14d299['queue']=angular[_0x35b031('0x6fb')](_0x34c326),_0x14d299[_0x35b031('0xb25')]=_0x2701e6,_0x14d299[_0x35b031('0x2c9')]={};if(_0x14d299[_0x35b031('0x150b')]['appdata'])switch(_0x14d299[_0x35b031('0x150b')][_0x35b031('0x27c0')]?_0x14d299[_0x35b031('0x150b')][_0x35b031('0x27c0')][_0x35b031('0x20d5')]():_0x14d299[_0x35b031('0x150b')][_0x35b031('0x18f5')]['toLowerCase']()){case _0x35b031('0xa8d'):break;case _0x35b031('0x185e'):{const _0x1b785c=_0x14d299['queue'][_0x35b031('0x13fc')][_0x35b031('0xaf8')](',');_0x14d299[_0x35b031('0x150b')][_0x35b031('0xa0c')]=_0x1b785c[0x0],_0x14d299[_0x35b031('0x150b')][_0x35b031('0xeff')]=_0x1b785c[0x1],_0x14d299[_0x35b031('0x150b')][_0x35b031('0x1cbc')]=_0x1b785c[_0x35b031('0x1b77')](0x2,_0x1b785c[_0x35b031('0x1e22')])[_0x35b031('0xa04')](',');}break;case _0x35b031('0x21a8'):{const _0x35c003=_0x14d299[_0x35b031('0x150b')][_0x35b031('0x13fc')][_0x35b031('0xaf8')](',');_0x14d299[_0x35b031('0x150b')][_0x35b031('0x20e')]=_0x35c003[0x0],_0x14d299[_0x35b031('0x150b')][_0x35b031('0x1f91')]=_0x35c003[0x1],_0x14d299[_0x35b031('0x150b')][_0x35b031('0x1c6c')]=_0x35c003[0x2],_0x14d299[_0x35b031('0x150b')][_0x35b031('0xeff')]=_0x35c003[0x3],_0x14d299[_0x35b031('0x150b')][_0x35b031('0x1cbc')]=_0x35c003[_0x35b031('0x1b77')](0x4,_0x35c003[_0x35b031('0x1e22')])[_0x35b031('0xa04')](',');}break;case'amazonlex':{const _0x5b2cdf=_0x14d299['queue'][_0x35b031('0x13fc')]['split'](',');_0x14d299[_0x35b031('0x150b')][_0x35b031('0x1a82')]=_0x5b2cdf[0x0],_0x14d299[_0x35b031('0x150b')][_0x35b031('0x1422')]=_0x5b2cdf[0x1],_0x14d299[_0x35b031('0x150b')][_0x35b031('0x165a')]=_0x5b2cdf[0x2],_0x14d299[_0x35b031('0x150b')][_0x35b031('0x1e8f')]=_0x5b2cdf[0x3],_0x14d299[_0x35b031('0x150b')]['welcomemessage']=_0x5b2cdf[_0x35b031('0x1b77')](0x4,_0x5b2cdf[_0x35b031('0x1e22')])[_0x35b031('0xa04')](',');}break;case _0x35b031('0x187b'):{const _0x3f2209=_0x14d299[_0x35b031('0x150b')][_0x35b031('0x13fc')][_0x35b031('0xaf8')](',');_0x14d299[_0x35b031('0x150b')][_0x35b031('0x663')]=isNaN(_0x3f2209[0x0])?_0x3f2209[0x0]:parseInt(_0x3f2209[0x0],0xa),_0x14d299[_0x35b031('0x150b')]['text']=_0x3f2209['slice'](0x1,_0x3f2209['length'])[_0x35b031('0xa04')](',');}break;case _0x35b031('0x1b86'):_0x14d299[_0x35b031('0x150b')]['text']=_0x14d299[_0x35b031('0x150b')][_0x35b031('0x13fc')];break;case _0x35b031('0xe50'):_0x14d299[_0x35b031('0x150b')][_0x35b031('0x1909')]=_0x14d299[_0x35b031('0x150b')][_0x35b031('0x13fc')]['split']('=')[0x0],_0x14d299[_0x35b031('0x150b')][_0x35b031('0x10cc')]=_0x14d299[_0x35b031('0x150b')]['appdata'][_0x35b031('0xaf8')]('=')[0x1];break;case _0x35b031('0x1efd'):_0x14d299[_0x35b031('0x150b')][_0x35b031('0xef0')]=_0x14d299[_0x35b031('0x150b')]['appdata'];break;default:{const _0x264106=_0x14d299['queue'][_0x35b031('0x13fc')][_0x35b031('0xaf8')](',');_0x14d299[_0x35b031('0x150b')][_0x35b031('0x150b')]=_0x36f548()[_0x35b031('0x1fc5')](_0x264106[0x0])?_0x264106[0x0]:isNaN(_0x264106[0x0])?_0x264106[0x0]:parseInt(_0x264106[0x0],0xa),_0x14d299['queue'][_0x35b031('0xfbe')]=_0x36f548()['isEmpty'](_0x264106[0x1])?_0x264106[0x1]:isNaN(_0x264106[0x1])?_0x264106[0x1]:parseInt(_0x264106[0x1],0xa);}break;}else _0x14d299[_0x35b031('0x150b')][_0x35b031('0x150b')]=0x12c,_0x14d299[_0x35b031('0x150b')][_0x35b031('0xfbe')]=0x12c;_0x14d299['queue']['type']&&_0x14d299['queue']['type']['toLowerCase']()===_0x35b031('0x25b6')&&_0x14d299[_0x35b031('0x150b')][_0x35b031('0x27c0')][_0x35b031('0x20d5')]()===_0x35b031('0x1a64')&&(_0x14d299[_0x35b031('0x150b')]['prefix']=_0x14d299['queue'][_0x35b031('0x1546')]?_0x14d299[_0x35b031('0x150b')]['phone']['split']('$')[0x0]:undefined,_0x14d299[_0x35b031('0x150b')][_0x35b031('0x7d0')]=_0x14d299[_0x35b031('0x150b')]['callerID']?_0x35b031('0x83a')+_0x14d299[_0x35b031('0x150b')][_0x35b031('0xc38')]:undefined);_0x14d299[_0x35b031('0xe26')]=_0x445bf5,_0x14d299[_0x35b031('0xc4e')]=_0x25f3dc,_0x323950[_0x35b031('0x4ee')](_0x35b031('0xf45'))?_0xf3f07a['chatQueue'][_0x35b031('0xbaa')]({'fields':_0x35b031('0xde'),'sort':'name','nolimit':'true'})['$promise'][_0x35b031('0x11bf')](function(_0x405c91){const _0x2a3573=_0x35b031;_0x14d299[_0x2a3573('0x1de3')]=_0x405c91[_0x2a3573('0x19b2')]||[];})['catch'](function(_0x16810c){const _0x375f5e=_0x35b031;_0x544c75[_0x375f5e('0x255')]({'title':_0x16810c['status']?'API:'+_0x16810c[_0x375f5e('0xff9')]+_0x375f5e('0xb0b')+_0x16810c['statusText']:_0x375f5e('0x23e0'),'msg':_0x16810c[_0x375f5e('0x4e8')]?JSON['stringify'](_0x16810c[_0x375f5e('0x4e8')]):_0x16810c[_0x375f5e('0xaab')]()});}):_0xf3f07a[_0x35b031('0x1c23')][_0x35b031('0xbaa')]({'fields':_0x35b031('0xde'),'sort':_0x35b031('0x1909'),'nolimit':_0x35b031('0x204c')})['$promise'][_0x35b031('0x11bf')](function(_0x443ec3){const _0x4e1d9a=_0x35b031;_0x14d299[_0x4e1d9a('0x1de3')]=_0x443ec3['rows']||[];})['then'](function(){const _0x51ca02=_0x35b031;return _0xf3f07a['userProfileSection'][_0x51ca02('0xbaa')]({'userProfileId':_0x14d299['currentUser'][_0x51ca02('0x781')],'sectionId':0x1f5})[_0x51ca02('0x1549')];})[_0x35b031('0x11bf')](function(_0x1e663a){const _0x1df286=_0x35b031,_0x390cca=_0x1e663a&&_0x1e663a['rows']?_0x1e663a[_0x1df286('0x19b2')][0x0]:null;if(!_0x390cca){const _0x3e70d4=[];let _0x577062=null;_0x14d299[_0x1df286('0x150b')]&&(_0x577062=_0x36f548()[_0x1df286('0x1ad4')](_0x14d299[_0x1df286('0x1de3')],{'name':_0x14d299[_0x1df286('0x150b')][_0x1df286('0x150b')]}));for(let _0x2fb4df=0x0;_0x2fb4df<_0x14d299['queues'][_0x1df286('0x1e22')];_0x2fb4df++){_0x577062&&_0x14d299[_0x1df286('0x1de3')][_0x2fb4df]['id']===_0x577062['id']&&(_0x14d299['queues'][_0x2fb4df]['canSelect']=![],_0x3e70d4['push'](_0x14d299[_0x1df286('0x1de3')][_0x2fb4df]));}_0x14d299[_0x1df286('0x1de3')]=_0x3e70d4;}else{if(!_0x390cca[_0x1df286('0xf11')])return _0xf3f07a['userProfileResource'][_0x1df286('0xbaa')]({'sectionId':_0x390cca['id']})[_0x1df286('0x1549')][_0x1df286('0x11bf')](function(_0x4c64ed){const _0x2c5c90=_0x1df286,_0x5e7df8=_0x36f548()[_0x2c5c90('0x2171')](_0x4c64ed[_0x2c5c90('0x19b2')],function(_0x3c79d7){const _0x3e73d5=_0x2c5c90;return _0x36f548()[_0x3e73d5('0x1ad4')](_0x14d299[_0x3e73d5('0x1de3')],{'id':_0x3c79d7[_0x3e73d5('0x15a5')]});});let _0x11669e=null;_0x14d299[_0x2c5c90('0x150b')]&&(_0x11669e=_0x36f548()[_0x2c5c90('0x1ad4')](_0x14d299[_0x2c5c90('0x1de3')],{'name':_0x14d299[_0x2c5c90('0x150b')][_0x2c5c90('0x150b')]}));if(_0x11669e&&!_0x36f548()[_0x2c5c90('0x1cb3')](_0x5e7df8,['id',_0x11669e['id']])){const _0x37a9fe=_0x36f548()[_0x2c5c90('0x1ad4')](_0x14d299['queues'],{'id':_0x11669e['id']});_0x37a9fe[_0x2c5c90('0x254a')]=![],_0x5e7df8[_0x2c5c90('0x105d')](_0x37a9fe);}_0x14d299['queues']=_0x5e7df8;});}})[_0x35b031('0x151d')](function(_0x14f33c){const _0x2afec1=_0x35b031;_0x544c75[_0x2afec1('0x255')]({'title':_0x14f33c['status']?'API:'+_0x14f33c[_0x2afec1('0xff9')]+'\x20-\x20'+_0x14f33c[_0x2afec1('0x212f')]:'SYSTEM:GETqueues','msg':_0x14f33c[_0x2afec1('0x4e8')]?JSON[_0x2afec1('0x3e')](_0x14f33c['data']):_0x14f33c['toString']()});});function _0x445bf5(){const _0x560ffd=_0x35b031;_0x14d299[_0x560ffd('0x120f')]=[];const _0x25bf6e=[];_0x14d299[_0x560ffd('0x150b')][_0x560ffd('0x19fd')]&&_0x14d299[_0x560ffd('0x150b')][_0x560ffd('0x19fd')][_0x560ffd('0x20d5')]()===_0x560ffd('0x25b6')&&_0x14d299['queue']['appType']==='outboundDial'&&(_0x14d299['queue'][_0x560ffd('0x1546')]=_0x3b1293[_0x560ffd('0x388')]?(_0x14d299['queue'][_0x560ffd('0x2137')]||'')+_0x560ffd('0x2100')+_0x3b1293[_0x560ffd('0x388')]+'}':(_0x14d299[_0x560ffd('0x150b')]['prefix']||'')+_0x560ffd('0x1f76'),_0x3b1293[_0x560ffd('0x897')]!==_0x560ffd('0x3e6')?_0x14d299[_0x560ffd('0x150b')][_0x560ffd('0x249a')][_0x560ffd('0x203c')](_0x560ffd('0x22c9'))<0x0&&(_0x14d299[_0x560ffd('0x150b')][_0x560ffd('0x249a')]+=_0x560ffd('0x22c9')):_0x14d299[_0x560ffd('0x150b')][_0x560ffd('0x249a')]=_0x14d299['queue']['options'][_0x560ffd('0x814')](_0x560ffd('0x22c9'),''));const _0x4269e1=_0x36f548()[_0x560ffd('0x1ad4')](_0x14d299[_0x560ffd('0x1de3')],{'name':_0x14d299['queue'][_0x560ffd('0x150b')]});_0x4269e1&&(_0x14d299[_0x560ffd('0x150b')][_0x36f548()[_0x560ffd('0x22c2')]('chat')+'QueueId']=_0x4269e1['id']);if(_0x14d299['queue'][_0x560ffd('0x27c0')]&&_0x14d299[_0x560ffd('0x150b')][_0x560ffd('0x27c0')]===_0x560ffd('0xa8d')){}else switch((_0x14d299[_0x560ffd('0x150b')][_0x560ffd('0x18f5')]||_0x14d299[_0x560ffd('0x150b')][_0x560ffd('0x27c0')])['toLowerCase']()){case _0x560ffd('0xe50'):_0x14d299[_0x560ffd('0x150b')][_0x560ffd('0x13fc')]=_0x14d299[_0x560ffd('0x150b')][_0x560ffd('0x1909')]+'='+_0x14d299[_0x560ffd('0x150b')][_0x560ffd('0x10cc')];break;case'custom':break;default:_0x25bf6e[0x0]=_0x14d299['queue'][_0x560ffd('0x150b')],_0x25bf6e[0x1]=_0x14d299[_0x560ffd('0x150b')][_0x560ffd('0xfbe')],_0x14d299[_0x560ffd('0x150b')]['appdata']=_0x25bf6e[_0x560ffd('0xa04')](',');}_0x25f3dc(_0x14d299['queue']);}function _0x25f3dc(_0x101ac7){_0x123a78['hide'](_0x101ac7);}}const _0x475d5f=_0x180c24;_0x344dc4[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0x142d'),_0x21d0f5('0x24d0'),'chatWebsite','api',_0x21d0f5('0x1150'),_0x21d0f5('0xb25')];function _0x344dc4(_0x1f79c6,_0x187a98,_0x461aad,_0x53a088,_0x4a1490,_0x49f007,_0x2ec441,_0x1a3576){const _0x2e522a=_0x21d0f5,_0x2d6a42=this;_0x2d6a42[_0x2e522a('0x32a')]=_0x2ec441[_0x2e522a('0x2428')](),_0x2d6a42[_0x2e522a('0x120f')]=[],_0x2d6a42[_0x2e522a('0x134b')]=_0x2e522a('0x2435')+(_0x53a088['appType']||_0x53a088['app'])[_0x2e522a('0xa6f')](),_0x2d6a42['system']=angular[_0x2e522a('0x6fb')](_0x53a088),_0x2d6a42[_0x2e522a('0xb25')]=_0x1a3576,_0x2d6a42[_0x2e522a('0x2c9')]={};if(_0x2d6a42['system'][_0x2e522a('0x13fc')])switch(_0x2d6a42[_0x2e522a('0x196d')][_0x2e522a('0x27c0')]?_0x2d6a42[_0x2e522a('0x196d')][_0x2e522a('0x27c0')]['toLowerCase']():_0x2d6a42[_0x2e522a('0x196d')]['app'][_0x2e522a('0x20d5')]()){case _0x2e522a('0xa8d'):break;case _0x2e522a('0x185e'):{const _0x20d252=_0x2d6a42['system'][_0x2e522a('0x13fc')]['split'](',');_0x2d6a42[_0x2e522a('0x196d')][_0x2e522a('0xa0c')]=_0x20d252[0x0],_0x2d6a42[_0x2e522a('0x196d')][_0x2e522a('0xeff')]=_0x20d252[0x1],_0x2d6a42['system'][_0x2e522a('0x1cbc')]=_0x20d252[_0x2e522a('0x1b77')](0x2,_0x20d252[_0x2e522a('0x1e22')])[_0x2e522a('0xa04')](',');}break;case _0x2e522a('0x21a8'):{const _0x1dc6cc=_0x2d6a42[_0x2e522a('0x196d')]['appdata']['split'](',');_0x2d6a42[_0x2e522a('0x196d')]['projectId']=_0x1dc6cc[0x0],_0x2d6a42[_0x2e522a('0x196d')]['clientEmail']=_0x1dc6cc[0x1],_0x2d6a42[_0x2e522a('0x196d')][_0x2e522a('0x1c6c')]=_0x1dc6cc[0x2],_0x2d6a42[_0x2e522a('0x196d')]['language']=_0x1dc6cc[0x3],_0x2d6a42[_0x2e522a('0x196d')][_0x2e522a('0x1cbc')]=_0x1dc6cc[_0x2e522a('0x1b77')](0x4,_0x1dc6cc['length'])[_0x2e522a('0xa04')](',');}break;case _0x2e522a('0x102c'):{const _0x3194c7=_0x2d6a42[_0x2e522a('0x196d')][_0x2e522a('0x13fc')][_0x2e522a('0xaf8')](',');_0x2d6a42[_0x2e522a('0x196d')][_0x2e522a('0x1a82')]=_0x3194c7[0x0],_0x2d6a42[_0x2e522a('0x196d')][_0x2e522a('0x1422')]=_0x3194c7[0x1],_0x2d6a42[_0x2e522a('0x196d')][_0x2e522a('0x165a')]=_0x3194c7[0x2],_0x2d6a42[_0x2e522a('0x196d')][_0x2e522a('0x1e8f')]=_0x3194c7[0x3],_0x2d6a42[_0x2e522a('0x196d')]['welcomemessage']=_0x3194c7[_0x2e522a('0x1b77')](0x4,_0x3194c7['length'])[_0x2e522a('0xa04')](',');}break;case _0x2e522a('0x187b'):{const _0xef98e7=_0x2d6a42[_0x2e522a('0x196d')][_0x2e522a('0x13fc')][_0x2e522a('0xaf8')](',');_0x2d6a42[_0x2e522a('0x196d')][_0x2e522a('0x663')]=isNaN(_0xef98e7[0x0])?_0xef98e7[0x0]:parseInt(_0xef98e7[0x0],0xa),_0x2d6a42[_0x2e522a('0x196d')][_0x2e522a('0x25ed')]=_0xef98e7[_0x2e522a('0x1b77')](0x1,_0xef98e7[_0x2e522a('0x1e22')])[_0x2e522a('0xa04')](',');}break;case'message':_0x2d6a42['system'][_0x2e522a('0x25ed')]=_0x2d6a42[_0x2e522a('0x196d')]['appdata'];break;case _0x2e522a('0xe50'):_0x2d6a42['system'][_0x2e522a('0x1909')]=_0x2d6a42['system']['appdata']['split']('=')[0x0],_0x2d6a42['system'][_0x2e522a('0x10cc')]=_0x2d6a42['system'][_0x2e522a('0x13fc')][_0x2e522a('0xaf8')]('=')[0x1];break;case'agi':_0x2d6a42[_0x2e522a('0x196d')]['project']=_0x2d6a42[_0x2e522a('0x196d')][_0x2e522a('0x13fc')];break;default:{const _0x59dd39=_0x2d6a42['system'][_0x2e522a('0x13fc')][_0x2e522a('0xaf8')](',');_0x2d6a42['system'][_0x2e522a('0x1b9f')]=_0x36f548()[_0x2e522a('0x1fc5')](_0x59dd39[0x0])?_0x59dd39[0x0]:isNaN(_0x59dd39[0x0])?_0x59dd39[0x0]:parseInt(_0x59dd39[0x0],0xa),_0x2d6a42[_0x2e522a('0x196d')]['variable']=_0x36f548()[_0x2e522a('0x1fc5')](_0x59dd39[0x1])?_0x59dd39[0x1]:isNaN(_0x59dd39[0x1])?_0x59dd39[0x1]:parseInt(_0x59dd39[0x1],0xa);}break;}else _0x2d6a42[_0x2e522a('0x196d')][_0x2e522a('0xb0')]='';_0x2d6a42[_0x2e522a('0x196d')][_0x2e522a('0x19fd')]&&_0x2d6a42[_0x2e522a('0x196d')][_0x2e522a('0x19fd')]['toLowerCase']()===_0x2e522a('0x25b6')&&_0x2d6a42[_0x2e522a('0x196d')][_0x2e522a('0x27c0')]['toLowerCase']()===_0x2e522a('0x1a64')&&(_0x2d6a42[_0x2e522a('0x196d')][_0x2e522a('0x2137')]=_0x2d6a42[_0x2e522a('0x196d')][_0x2e522a('0x1546')]?_0x2d6a42[_0x2e522a('0x196d')]['phone']['split']('$')[0x0]:undefined,_0x2d6a42[_0x2e522a('0x196d')][_0x2e522a('0x7d0')]=_0x2d6a42['system'][_0x2e522a('0xc38')]?_0x2e522a('0x83a')+_0x2d6a42[_0x2e522a('0x196d')][_0x2e522a('0xc38')]:undefined);_0x2d6a42[_0x2e522a('0xe26')]=_0x2c0de6,_0x2d6a42[_0x2e522a('0xc4e')]=_0xb31f86,_0x2ec441[_0x2e522a('0x4ee')](_0x2e522a('0xf45'))?_0x49f007[_0x2e522a('0xb0')][_0x2e522a('0xbaa')]({'fields':'id,name','sort':'name','nolimit':_0x2e522a('0x204c')})[_0x2e522a('0x1549')][_0x2e522a('0x11bf')](function(_0x208568){const _0x2d3641=_0x2e522a;_0x2d6a42[_0x2d3641('0x1700')]=_0x208568[_0x2d3641('0x19b2')]||[];})[_0x2e522a('0x151d')](function(_0x162a5e){const _0x4b1f2c=_0x2e522a;_0x461aad[_0x4b1f2c('0x255')]({'title':_0x162a5e[_0x4b1f2c('0xff9')]?_0x4b1f2c('0x574')+_0x162a5e[_0x4b1f2c('0xff9')]+_0x4b1f2c('0xb0b')+_0x162a5e[_0x4b1f2c('0x212f')]:_0x4b1f2c('0x1130'),'msg':_0x162a5e['data']?JSON[_0x4b1f2c('0x3e')](_0x162a5e[_0x4b1f2c('0x4e8')]):_0x162a5e[_0x4b1f2c('0xaab')]()});}):_0x49f007[_0x2e522a('0xb0')][_0x2e522a('0xbaa')]({'fields':_0x2e522a('0x721'),'sort':_0x2e522a('0x1909'),'nolimit':_0x2e522a('0x204c')})[_0x2e522a('0x1549')]['then'](function(_0xa70822){const _0x11fee7=_0x2e522a;_0x2d6a42[_0x11fee7('0x1700')]=_0xa70822[_0x11fee7('0x19b2')]||[];})[_0x2e522a('0x11bf')](function(){const _0x32a0ca=_0x2e522a;return _0x49f007[_0x32a0ca('0x1d63')][_0x32a0ca('0xbaa')]({'userProfileId':_0x2d6a42[_0x32a0ca('0x32a')][_0x32a0ca('0x781')],'sectionId':0x3f4})[_0x32a0ca('0x1549')];})[_0x2e522a('0x11bf')](function(_0x3e112e){const _0x5b2b7a=_0x2e522a,_0x44e92c=_0x3e112e&&_0x3e112e[_0x5b2b7a('0x19b2')]?_0x3e112e[_0x5b2b7a('0x19b2')][0x0]:null;if(!_0x44e92c){const _0x15832f=[];let _0x137a42=null;_0x2d6a42['system']&&(_0x137a42=_0x36f548()[_0x5b2b7a('0x1ad4')](_0x2d6a42['variables'],{'name':_0x2d6a42[_0x5b2b7a('0x196d')]['variable']}));for(let _0x198218=0x0;_0x198218<_0x2d6a42[_0x5b2b7a('0x1700')]['length'];_0x198218++){_0x137a42&&_0x2d6a42[_0x5b2b7a('0x1700')][_0x198218]['id']===_0x137a42['id']&&(_0x2d6a42['variables'][_0x198218][_0x5b2b7a('0x254a')]=![],_0x15832f['push'](_0x2d6a42[_0x5b2b7a('0x1700')][_0x198218]));}_0x2d6a42[_0x5b2b7a('0x1700')]=_0x15832f;}else{if(!_0x44e92c[_0x5b2b7a('0xf11')])return _0x49f007[_0x5b2b7a('0x26d1')][_0x5b2b7a('0xbaa')]({'sectionId':_0x44e92c['id']})[_0x5b2b7a('0x1549')][_0x5b2b7a('0x11bf')](function(_0x573ea3){const _0x2bca5a=_0x5b2b7a,_0x29f8ad=_0x36f548()[_0x2bca5a('0x2171')](_0x573ea3['rows'],function(_0x5e72a3){const _0x22cdee=_0x2bca5a;return _0x36f548()[_0x22cdee('0x1ad4')](_0x2d6a42[_0x22cdee('0x1700')],{'id':_0x5e72a3['resourceId']});});let _0x34b7a5=null;_0x2d6a42[_0x2bca5a('0x196d')]&&(_0x34b7a5=_0x36f548()[_0x2bca5a('0x1ad4')](_0x2d6a42[_0x2bca5a('0x1700')],{'name':_0x2d6a42[_0x2bca5a('0x196d')][_0x2bca5a('0xb0')]}));if(_0x34b7a5&&!_0x36f548()[_0x2bca5a('0x1cb3')](_0x29f8ad,['id',_0x34b7a5['id']])){const _0x2ff0a2=_0x36f548()[_0x2bca5a('0x1ad4')](_0x2d6a42[_0x2bca5a('0x1700')],{'id':_0x34b7a5['id']});_0x2ff0a2['canSelect']=![],_0x29f8ad[_0x2bca5a('0x105d')](_0x2ff0a2);}_0x2d6a42[_0x2bca5a('0x1700')]=_0x29f8ad;});}})[_0x2e522a('0x151d')](function(_0x282edc){const _0x838e17=_0x2e522a;_0x461aad[_0x838e17('0x255')]({'title':_0x282edc[_0x838e17('0xff9')]?_0x838e17('0x574')+_0x282edc[_0x838e17('0xff9')]+_0x838e17('0xb0b')+_0x282edc[_0x838e17('0x212f')]:'SYSTEM:GETvariables','msg':_0x282edc[_0x838e17('0x4e8')]?JSON[_0x838e17('0x3e')](_0x282edc['data']):_0x282edc[_0x838e17('0xaab')]()});});function _0x2c0de6(){const _0x15d30f=_0x2e522a;_0x2d6a42[_0x15d30f('0x120f')]=[];const _0x51c5c2=[];_0x2d6a42['system'][_0x15d30f('0x19fd')]&&_0x2d6a42['system']['type'][_0x15d30f('0x20d5')]()===_0x15d30f('0x25b6')&&_0x2d6a42[_0x15d30f('0x196d')][_0x15d30f('0x27c0')]===_0x15d30f('0x1bf6')&&(_0x2d6a42[_0x15d30f('0x196d')][_0x15d30f('0x1546')]=_0x4a1490[_0x15d30f('0x388')]?(_0x2d6a42['system']['prefix']||'')+_0x15d30f('0x2100')+_0x4a1490[_0x15d30f('0x388')]+'}':(_0x2d6a42['system'][_0x15d30f('0x2137')]||'')+_0x15d30f('0x1f76'),_0x4a1490[_0x15d30f('0x897')]!==_0x15d30f('0x3e6')?_0x2d6a42['system'][_0x15d30f('0x249a')]['indexOf'](_0x15d30f('0x22c9'))<0x0&&(_0x2d6a42[_0x15d30f('0x196d')][_0x15d30f('0x249a')]+=_0x15d30f('0x22c9')):_0x2d6a42[_0x15d30f('0x196d')][_0x15d30f('0x249a')]=_0x2d6a42[_0x15d30f('0x196d')][_0x15d30f('0x249a')][_0x15d30f('0x814')](_0x15d30f('0x22c9'),''));if(_0x2d6a42[_0x15d30f('0x196d')][_0x15d30f('0x27c0')]&&_0x2d6a42[_0x15d30f('0x196d')]['appType']===_0x15d30f('0xa8d')){}else switch((_0x2d6a42[_0x15d30f('0x196d')][_0x15d30f('0x18f5')]||_0x2d6a42['system'][_0x15d30f('0x27c0')])[_0x15d30f('0x20d5')]()){case _0x15d30f('0xe50'):_0x2d6a42['system'][_0x15d30f('0x13fc')]=_0x2d6a42['system'][_0x15d30f('0x1909')]+'='+_0x2d6a42['system'][_0x15d30f('0x10cc')];break;case _0x15d30f('0xa8d'):break;default:_0x51c5c2[0x0]=_0x2d6a42['system'][_0x15d30f('0x1b9f')],_0x51c5c2[0x1]=_0x2d6a42[_0x15d30f('0x196d')][_0x15d30f('0xb0')],_0x2d6a42['system'][_0x15d30f('0x13fc')]=_0x51c5c2[_0x15d30f('0xa04')](',');}_0xb31f86(_0x2d6a42[_0x15d30f('0x196d')]);}function _0xb31f86(_0xfd8f04){_0x1f79c6['hide'](_0xfd8f04);}}const _0x24ff1e=_0x344dc4;_0x4d0c6d['$inject']=[_0x21d0f5('0x1ca2'),'$q','toasty',_0x21d0f5('0x24d0'),_0x21d0f5('0xb50'),_0x21d0f5('0x12a5'),'Auth','crudPermissions'];function _0x4d0c6d(_0x1f6624,_0x2d6f98,_0x4ea264,_0x4987c6,_0x6ee137,_0x3e809c,_0x456a29,_0x1bf4fa){const _0x200041=_0x21d0f5,_0x5a502a=this;_0x5a502a['currentUser']=_0x456a29['getCurrentUser'](),_0x5a502a[_0x200041('0x120f')]=[],_0x5a502a[_0x200041('0x134b')]=_0x200041('0x2435')+(_0x4987c6[_0x200041('0x27c0')]||_0x4987c6[_0x200041('0x18f5')])[_0x200041('0xa6f')](),_0x5a502a[_0x200041('0x1d73')]=angular[_0x200041('0x6fb')](_0x4987c6),_0x5a502a[_0x200041('0xb25')]=_0x1bf4fa,_0x5a502a[_0x200041('0x2c9')]={};if(_0x5a502a[_0x200041('0x1d73')]['appdata'])switch(_0x5a502a['tag'][_0x200041('0x27c0')]?_0x5a502a[_0x200041('0x1d73')][_0x200041('0x27c0')][_0x200041('0x20d5')]():_0x5a502a['tag']['app'][_0x200041('0x20d5')]()){case _0x200041('0xa8d'):break;case _0x200041('0x185e'):{const _0x1e7ae1=_0x5a502a[_0x200041('0x1d73')]['appdata'][_0x200041('0xaf8')](',');_0x5a502a['tag'][_0x200041('0xa0c')]=_0x1e7ae1[0x0],_0x5a502a[_0x200041('0x1d73')][_0x200041('0xeff')]=_0x1e7ae1[0x1],_0x5a502a[_0x200041('0x1d73')][_0x200041('0x1cbc')]=_0x1e7ae1[_0x200041('0x1b77')](0x2,_0x1e7ae1['length'])[_0x200041('0xa04')](',');}break;case'dialogflowv2':{const _0x249d0c=_0x5a502a[_0x200041('0x1d73')][_0x200041('0x13fc')][_0x200041('0xaf8')](',');_0x5a502a[_0x200041('0x1d73')][_0x200041('0x20e')]=_0x249d0c[0x0],_0x5a502a[_0x200041('0x1d73')][_0x200041('0x1f91')]=_0x249d0c[0x1],_0x5a502a[_0x200041('0x1d73')][_0x200041('0x1c6c')]=_0x249d0c[0x2],_0x5a502a[_0x200041('0x1d73')]['language']=_0x249d0c[0x3],_0x5a502a[_0x200041('0x1d73')][_0x200041('0x1cbc')]=_0x249d0c[_0x200041('0x1b77')](0x4,_0x249d0c[_0x200041('0x1e22')])['join'](',');}break;case _0x200041('0x102c'):{const _0x79bf5e=_0x5a502a[_0x200041('0x1d73')][_0x200041('0x13fc')][_0x200041('0xaf8')](',');_0x5a502a[_0x200041('0x1d73')][_0x200041('0x1a82')]=_0x79bf5e[0x0],_0x5a502a['tag']['secretaccesskey']=_0x79bf5e[0x1],_0x5a502a[_0x200041('0x1d73')][_0x200041('0x165a')]=_0x79bf5e[0x2],_0x5a502a[_0x200041('0x1d73')]['botname']=_0x79bf5e[0x3],_0x5a502a[_0x200041('0x1d73')][_0x200041('0x1cbc')]=_0x79bf5e[_0x200041('0x1b77')](0x4,_0x79bf5e[_0x200041('0x1e22')])[_0x200041('0xa04')](',');}break;case _0x200041('0x187b'):{const _0x538e45=_0x5a502a['tag'][_0x200041('0x13fc')][_0x200041('0xaf8')](',');_0x5a502a['tag'][_0x200041('0x663')]=isNaN(_0x538e45[0x0])?_0x538e45[0x0]:parseInt(_0x538e45[0x0],0xa),_0x5a502a[_0x200041('0x1d73')]['text']=_0x538e45['slice'](0x1,_0x538e45[_0x200041('0x1e22')])[_0x200041('0xa04')](',');}break;case _0x200041('0x1b86'):_0x5a502a[_0x200041('0x1d73')][_0x200041('0x25ed')]=_0x5a502a[_0x200041('0x1d73')][_0x200041('0x13fc')];break;case'set':_0x5a502a[_0x200041('0x1d73')][_0x200041('0x1909')]=_0x5a502a['tag'][_0x200041('0x13fc')][_0x200041('0xaf8')]('=')[0x0],_0x5a502a[_0x200041('0x1d73')][_0x200041('0x10cc')]=_0x5a502a['tag'][_0x200041('0x13fc')][_0x200041('0xaf8')]('=')[0x1];break;case _0x200041('0x1efd'):_0x5a502a[_0x200041('0x1d73')][_0x200041('0xef0')]=_0x5a502a[_0x200041('0x1d73')][_0x200041('0x13fc')];break;default:{const _0x4acfad=_0x5a502a['tag'][_0x200041('0x13fc')][_0x200041('0xaf8')](',');_0x5a502a[_0x200041('0x1d73')]['tag']=_0x36f548()[_0x200041('0x1fc5')](_0x4acfad[0x0])?_0x4acfad[0x0]:isNaN(_0x4acfad[0x0])?_0x4acfad[0x0]:parseInt(_0x4acfad[0x0],0xa);}break;}else{}_0x5a502a[_0x200041('0x1d73')]['type']&&_0x5a502a['tag'][_0x200041('0x19fd')]['toLowerCase']()===_0x200041('0x25b6')&&_0x5a502a[_0x200041('0x1d73')]['appType'][_0x200041('0x20d5')]()===_0x200041('0x1a64')&&(_0x5a502a[_0x200041('0x1d73')][_0x200041('0x2137')]=_0x5a502a[_0x200041('0x1d73')]['phone']?_0x5a502a[_0x200041('0x1d73')]['phone']['split']('$')[0x0]:undefined,_0x5a502a[_0x200041('0x1d73')][_0x200041('0x7d0')]=_0x5a502a['tag'][_0x200041('0xc38')]?_0x200041('0x83a')+_0x5a502a['tag'][_0x200041('0xc38')]:undefined);_0x5a502a['saveChatWebsiteApp']=_0xf55f40,_0x5a502a[_0x200041('0xc4e')]=_0x2a50a4,_0x456a29[_0x200041('0x4ee')](_0x200041('0xf45'))?_0x3e809c[_0x200041('0x1d73')][_0x200041('0xbaa')]({'fields':_0x200041('0x721'),'sort':'name','nolimit':'true'})[_0x200041('0x1549')][_0x200041('0x11bf')](function(_0x184314){const _0x121014=_0x200041;_0x5a502a['tags']=_0x184314[_0x121014('0x19b2')]||[];})[_0x200041('0x151d')](function(_0x506ec6){const _0x5c8108=_0x200041;_0x4ea264[_0x5c8108('0x255')]({'title':_0x506ec6['status']?_0x5c8108('0x574')+_0x506ec6['status']+_0x5c8108('0xb0b')+_0x506ec6[_0x5c8108('0x212f')]:_0x5c8108('0x1138'),'msg':_0x506ec6[_0x5c8108('0x4e8')]?JSON[_0x5c8108('0x3e')](_0x506ec6['data']):_0x506ec6['toString']()});}):_0x3e809c[_0x200041('0x1d73')][_0x200041('0xbaa')]({'fields':_0x200041('0x721'),'sort':'name','nolimit':_0x200041('0x204c')})[_0x200041('0x1549')]['then'](function(_0x11c6f7){const _0xeb99a1=_0x200041;_0x5a502a[_0xeb99a1('0x2763')]=_0x11c6f7[_0xeb99a1('0x19b2')]||[];})[_0x200041('0x11bf')](function(){const _0x320681=_0x200041;return _0x3e809c[_0x320681('0x1d63')][_0x320681('0xbaa')]({'userProfileId':_0x5a502a['currentUser'][_0x320681('0x781')],'sectionId':0x3f0})['$promise'];})[_0x200041('0x11bf')](function(_0x5e4e3b){const _0x5016b3=_0x200041,_0x48b1fa=_0x5e4e3b&&_0x5e4e3b[_0x5016b3('0x19b2')]?_0x5e4e3b[_0x5016b3('0x19b2')][0x0]:null;if(!_0x48b1fa){const _0xa79d2f=[];let _0x498014=null;_0x5a502a[_0x5016b3('0x1d73')]&&(_0x498014=_0x36f548()['find'](_0x5a502a[_0x5016b3('0x2763')],{'name':_0x5a502a[_0x5016b3('0x1d73')][_0x5016b3('0x1d73')]}));for(let _0x3c1b54=0x0;_0x3c1b54<_0x5a502a[_0x5016b3('0x2763')][_0x5016b3('0x1e22')];_0x3c1b54++){_0x498014&&_0x5a502a[_0x5016b3('0x2763')][_0x3c1b54]['id']===_0x498014['id']&&(_0x5a502a[_0x5016b3('0x2763')][_0x3c1b54]['canSelect']=![],_0xa79d2f[_0x5016b3('0x105d')](_0x5a502a[_0x5016b3('0x2763')][_0x3c1b54]));}_0x5a502a['tags']=_0xa79d2f;}else{if(!_0x48b1fa['autoAssociation'])return _0x3e809c[_0x5016b3('0x26d1')][_0x5016b3('0xbaa')]({'sectionId':_0x48b1fa['id']})[_0x5016b3('0x1549')]['then'](function(_0x2af08a){const _0x3b7ac9=_0x5016b3,_0x30e504=_0x36f548()[_0x3b7ac9('0x2171')](_0x2af08a[_0x3b7ac9('0x19b2')],function(_0x5db852){const _0xd0509=_0x3b7ac9;return _0x36f548()[_0xd0509('0x1ad4')](_0x5a502a['tags'],{'id':_0x5db852['resourceId']});});let _0x1a7914=null;_0x5a502a['tag']&&(_0x1a7914=_0x36f548()['find'](_0x5a502a[_0x3b7ac9('0x2763')],{'name':_0x5a502a[_0x3b7ac9('0x1d73')]['tag']}));if(_0x1a7914&&!_0x36f548()[_0x3b7ac9('0x1cb3')](_0x30e504,['id',_0x1a7914['id']])){const _0x235dc3=_0x36f548()['find'](_0x5a502a[_0x3b7ac9('0x2763')],{'id':_0x1a7914['id']});_0x235dc3[_0x3b7ac9('0x254a')]=![],_0x30e504['push'](_0x235dc3);}_0x5a502a[_0x3b7ac9('0x2763')]=_0x30e504;});}})[_0x200041('0x151d')](function(_0xcea85f){const _0x97fdb2=_0x200041;_0x4ea264[_0x97fdb2('0x255')]({'title':_0xcea85f[_0x97fdb2('0xff9')]?_0x97fdb2('0x574')+_0xcea85f[_0x97fdb2('0xff9')]+_0x97fdb2('0xb0b')+_0xcea85f[_0x97fdb2('0x212f')]:_0x97fdb2('0xb3e'),'msg':_0xcea85f[_0x97fdb2('0x4e8')]?JSON[_0x97fdb2('0x3e')](_0xcea85f[_0x97fdb2('0x4e8')]):_0xcea85f[_0x97fdb2('0xaab')]()});});function _0xf55f40(){const _0x960688=_0x200041;_0x5a502a[_0x960688('0x120f')]=[];const _0x1656be=[];_0x5a502a['tag'][_0x960688('0x19fd')]&&_0x5a502a['tag']['type']['toLowerCase']()==='outbound'&&_0x5a502a['tag'][_0x960688('0x27c0')]===_0x960688('0x1bf6')&&(_0x5a502a[_0x960688('0x1d73')][_0x960688('0x1546')]=_0x6ee137[_0x960688('0x388')]?(_0x5a502a['tag'][_0x960688('0x2137')]||'')+_0x960688('0x2100')+_0x6ee137[_0x960688('0x388')]+'}':(_0x5a502a[_0x960688('0x1d73')][_0x960688('0x2137')]||'')+_0x960688('0x1f76'),_0x6ee137['recordingFormat']!==_0x960688('0x3e6')?_0x5a502a[_0x960688('0x1d73')][_0x960688('0x249a')][_0x960688('0x203c')](_0x960688('0x22c9'))<0x0&&(_0x5a502a['tag']['options']+=_0x960688('0x22c9')):_0x5a502a['tag']['options']=_0x5a502a['tag'][_0x960688('0x249a')][_0x960688('0x814')](_0x960688('0x22c9'),''));const _0x53f7f7=_0x36f548()['find'](_0x5a502a['tags'],{'name':_0x5a502a['tag'][_0x960688('0x1d73')]});_0x53f7f7&&(_0x5a502a['tag']['TagId']=_0x53f7f7['id']);if(_0x5a502a[_0x960688('0x1d73')][_0x960688('0x27c0')]&&_0x5a502a[_0x960688('0x1d73')]['appType']===_0x960688('0xa8d')){}else switch((_0x5a502a[_0x960688('0x1d73')]['app']||_0x5a502a['tag'][_0x960688('0x27c0')])[_0x960688('0x20d5')]()){case _0x960688('0xe50'):_0x5a502a[_0x960688('0x1d73')][_0x960688('0x13fc')]=_0x5a502a['tag'][_0x960688('0x1909')]+'='+_0x5a502a['tag'][_0x960688('0x10cc')];break;case _0x960688('0xa8d'):break;default:_0x1656be[0x0]=_0x5a502a['tag'][_0x960688('0x1d73')],_0x5a502a[_0x960688('0x1d73')][_0x960688('0x13fc')]=_0x1656be[_0x960688('0xa04')](',');}_0x2a50a4(_0x5a502a[_0x960688('0x1d73')]);}function _0x2a50a4(_0x367c70){const _0x396867=_0x200041;_0x1f6624[_0x396867('0x237e')](_0x367c70);}}const _0x58ba18=_0x4d0c6d,_0x1a0f83=_0x351988['p']+_0x21d0f5('0xd35');_0x58dbd2[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x5d8'),_0x21d0f5('0x1b80'),_0x21d0f5('0xcbc'),'$q','$translate','$timeout',_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),_0x21d0f5('0x142d'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150')];function _0x58dbd2(_0x2a4743,_0x3702d0,_0x11dc5c,_0x11f696,_0x2b55fa,_0x34fc00,_0x3feaf4,_0x531e6d,_0x2c8fde,_0x2e2e9d,_0x268a10){const _0x518c64=_0x21d0f5,_0x163961=this;_0x163961['currentUser']=_0x268a10[_0x518c64('0x2428')](),_0x163961[_0x518c64('0xb50')]={},_0x163961[_0x518c64('0x17db')]={'count':0x0,'rows':[]},_0x163961[_0x518c64('0xbfe')]=[],_0x163961[_0x518c64('0xb25')],_0x163961['query']={'fields':'createdAt,updatedAt,id,key,value,description','limit':0xa,'page':0x1},_0x163961[_0x518c64('0x286f')]=_0x4aa67b,_0x163961[_0x518c64('0x560')]=_0x87f302,_0x163961[_0x518c64('0x2693')]=_0x5a48d9,_0x163961[_0x518c64('0x2098')]=_0x36496a,_0x163961[_0x518c64('0x32')]=_0x5253dd,_0x163961['exportSelectedChatWebsiteChatCannedAnswers']=_0x18624a,_0x163961[_0x518c64('0x1438')]=_0x58c4c2,_0x163961['deleteSelectedChatWebsiteChatCannedAnswers']=_0x28fe52;function _0x4aa67b(_0x272e0a,_0x63a1b9){const _0x1735de=_0x518c64;_0x163961[_0x1735de('0xb50')]=_0x272e0a,_0x163961[_0x1735de('0xb25')]=typeof _0x63a1b9!==_0x1735de('0x13e9')?_0x63a1b9:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x163961['query']['ChatWebsiteId']=_0x163961['chatWebsite']['id'],_0x163961[_0x1735de('0x1f2a')]['id']=_0x163961[_0x1735de('0xb50')]['id'],_0x36496a();}function _0x87f302(_0x2e4ac0,_0x34f139){const _0x419aaf=_0x518c64,_0x1d54f0=_0x3feaf4[_0x419aaf('0x132b')]()[_0x419aaf('0x134b')](_0x419aaf('0x4d'))['htmlContent'](_0x419aaf('0x2061')+(_0x2e4ac0[_0x419aaf('0x1909')]||_0x2e4ac0['id']&&_0x36f548()[_0x419aaf('0x24b5')](_0x419aaf('0x23af'))+_0x2e4ac0['id']||_0x419aaf('0x5a5'))+_0x419aaf('0x1c78')+_0x419aaf('0x1a'))[_0x419aaf('0xb2e')](_0x419aaf('0xbe0'))[_0x419aaf('0x1e25')](_0x34f139)['ok']('OK')['cancel'](_0x419aaf('0x772'));_0x3feaf4[_0x419aaf('0xb9')](_0x1d54f0)[_0x419aaf('0x11bf')](function(){_0x58c4c2(_0x2e4ac0);},function(){console['log']('CANCEL');});}function _0x5a48d9(_0x2efe22){const _0x526d19=_0x518c64;_0x163961[_0x526d19('0x17db')]=_0x2efe22||{'count':0x0,'rows':[]};}function _0x36496a(){const _0x3ddeb8=_0x518c64;_0x163961[_0x3ddeb8('0x1f2a')][_0x3ddeb8('0x1393')]=(_0x163961[_0x3ddeb8('0x1f2a')][_0x3ddeb8('0x1c2')]-0x1)*_0x163961['query'][_0x3ddeb8('0xd5c')],_0x163961[_0x3ddeb8('0x13f')]=_0x2e2e9d['chatWebsite'][_0x3ddeb8('0x2785')](_0x163961['query'],_0x5a48d9)[_0x3ddeb8('0x1549')];}function _0x5253dd(_0x30a9d7,_0x5ea2f4){const _0x44ea3d=_0x518c64;_0x3feaf4['show']({'controller':_0x44ea3d('0x729'),'controllerAs':'vm','templateUrl':_0x1a0f83,'parent':angular['element'](_0x531e6d[_0x44ea3d('0x1d2')]),'targetEvent':_0x30a9d7,'clickOutsideToClose':!![],'locals':{'chatWebsite':_0x163961[_0x44ea3d('0xb50')],'chatCannedAnswer':_0x5ea2f4,'chatCannedAnswers':_0x163961[_0x44ea3d('0x17db')]['rows'],'license':null,'setting':null,'crudPermissions':_0x163961['crudPermissions']}});}function _0x58c4c2(_0x56de7f){const _0x400ae1=_0x518c64;_0x2e2e9d[_0x400ae1('0x81')][_0x400ae1('0x2088')]({'id':_0x56de7f['id']})[_0x400ae1('0x1549')][_0x400ae1('0x11bf')](function(){const _0x3a1c6a=_0x400ae1;_0x36f548()[_0x3a1c6a('0x14a5')](_0x163961[_0x3a1c6a('0x17db')][_0x3a1c6a('0x19b2')],{'id':_0x56de7f['id']}),_0x163961[_0x3a1c6a('0x17db')][_0x3a1c6a('0x27d2')]-=0x1,!_0x163961[_0x3a1c6a('0x17db')][_0x3a1c6a('0x19b2')]['length']&&_0x36496a(),_0x2c8fde[_0x3a1c6a('0x2693')]({'title':'ChatCannedAnswer\x20deleted!','msg':_0x56de7f[_0x3a1c6a('0x1909')]?_0x56de7f[_0x3a1c6a('0x1909')]+_0x3a1c6a('0x433'):''});})[_0x400ae1('0x151d')](function(_0x4cfe09){const _0x4017ac=_0x400ae1;if(_0x4cfe09['data']&&_0x4cfe09[_0x4017ac('0x4e8')][_0x4017ac('0x120f')]&&_0x4cfe09[_0x4017ac('0x4e8')][_0x4017ac('0x120f')][_0x4017ac('0x1e22')]){_0x163961[_0x4017ac('0x120f')]=_0x4cfe09[_0x4017ac('0x4e8')][_0x4017ac('0x120f')]||[{'message':_0x4cfe09['toString'](),'type':_0x4017ac('0x165c')}];for(let _0x170555=0x0;_0x170555<_0x4cfe09[_0x4017ac('0x4e8')][_0x4017ac('0x120f')][_0x4017ac('0x1e22')];_0x170555++){_0x2c8fde[_0x4017ac('0x255')]({'title':_0x4cfe09[_0x4017ac('0x4e8')][_0x4017ac('0x120f')][_0x170555][_0x4017ac('0x19fd')],'msg':_0x4cfe09[_0x4017ac('0x4e8')]['errors'][_0x170555][_0x4017ac('0x1b86')]});}}else _0x2c8fde[_0x4017ac('0x255')]({'title':_0x4cfe09[_0x4017ac('0xff9')]?_0x4017ac('0x574')+_0x4cfe09[_0x4017ac('0xff9')]+_0x4017ac('0xb0b')+_0x4cfe09['statusText']:_0x4017ac('0x165c'),'msg':_0x4cfe09['data']?JSON[_0x4017ac('0x3e')](_0x4cfe09[_0x4017ac('0x4e8')][_0x4017ac('0x1b86')]):_0x4cfe09['message']||_0x4cfe09[_0x4017ac('0xaab')]()});});}function _0x18624a(){const _0x12e0c0=_0x518c64,_0x479c69=angular[_0x12e0c0('0x6fb')](_0x163961['selectedChatWebsiteChatCannedAnswers']);return _0x163961['selectedChatWebsiteChatCannedAnswers']=[],_0x479c69;}function _0x28fe52(_0x40b2e2){const _0x120d62=_0x518c64,_0x2c933e=_0x3feaf4[_0x120d62('0x132b')]()[_0x120d62('0x134b')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20chatCannedAnswers?')[_0x120d62('0x1d03')](''+_0x163961[_0x120d62('0xbfe')][_0x120d62('0x1e22')]+_0x120d62('0xac6')+_0x120d62('0x1a'))[_0x120d62('0xb2e')](_0x120d62('0x7e3'))[_0x120d62('0x1e25')](_0x40b2e2)['ok']('OK')['cancel']('CANCEL');_0x3feaf4[_0x120d62('0xb9')](_0x2c933e)[_0x120d62('0x11bf')](function(){const _0x57581a=_0x120d62;_0x163961['selectedChatWebsiteChatCannedAnswers'][_0x57581a('0x1f88')](function(_0x271c24){_0x58c4c2(_0x271c24);}),_0x163961[_0x57581a('0xbfe')]=[];});}let _0x4bdc00=!![],_0x473e0b=0x1;_0x3702d0[_0x518c64('0x2087')](_0x518c64('0x1d12'),function(_0x120778,_0x37599d){const _0x1386c2=_0x518c64;_0x4bdc00?_0x34fc00(function(){_0x4bdc00=![];}):(!_0x37599d&&(_0x473e0b=_0x163961[_0x1386c2('0x1f2a')][_0x1386c2('0x1c2')]),_0x120778!==_0x37599d&&(_0x163961[_0x1386c2('0x1f2a')][_0x1386c2('0x1c2')]=0x1),!_0x120778&&(_0x163961['query'][_0x1386c2('0x1c2')]=_0x473e0b),_0x36496a());});}const _0x36e6a4=_0x58dbd2;_0x325b3e[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),'$state',_0x21d0f5('0x16b9'),'$mdDialog','$q',_0x21d0f5('0xb6b'),_0x21d0f5('0x142d'),_0x21d0f5('0x176'),_0x21d0f5('0x5a5'),'api','Auth',_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1'),'crudPermissions'];function _0x325b3e(_0x380549,_0x14c8d6,_0x1ed99a,_0x2de7d1,_0x5dc50b,_0x9cb4e3,_0x985f1,_0x23b545,_0x27ed05,_0x304768,_0x5cdd42,_0x4a40b6,_0x3897b6,_0x557d77){const _0x5a14fa=_0x21d0f5,_0x2607ea=this;_0x2607ea[_0x5a14fa('0x32a')]=_0x5cdd42['getCurrentUser'](),_0x2607ea['errors']=[],_0x2607ea[_0x5a14fa('0x23e1')]=_0x3897b6,_0x2607ea[_0x5a14fa('0x17ff')]=_0x4a40b6,_0x2607ea[_0x5a14fa('0xb25')]=_0x557d77,_0x2607ea['hasModulePermissions']={},_0x2607ea[_0x5a14fa('0x2834')]=_0x2607ea[_0x5a14fa('0x23e1')]&&_0x2607ea[_0x5a14fa('0x23e1')][_0x5a14fa('0x1d4')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2607ea[_0x5a14fa('0x134b')]=_0x5a14fa('0x115c'),_0x2607ea['chatCannedAnswer']=angular[_0x5a14fa('0x6fb')](_0x27ed05),_0x2607ea[_0x5a14fa('0x176')]=_0x23b545,_0x2607ea[_0x5a14fa('0x147')]=![];!_0x2607ea[_0x5a14fa('0x5a5')]&&(_0x2607ea[_0x5a14fa('0x5a5')]={},_0x2607ea[_0x5a14fa('0x134b')]=_0x5a14fa('0x1025'),_0x2607ea['newChatCannedAnswer']=!![]);_0x14c8d6[_0x5a14fa('0x1ab3')]['id']&&(_0x2607ea[_0x5a14fa('0x5a5')][_0x5a14fa('0x2346')]=_0x14c8d6[_0x5a14fa('0x1ab3')]['id']);_0x2607ea['addNewChatCannedAnswer']=_0x578d1e,_0x2607ea[_0x5a14fa('0x1c66')]=_0xdee3f9,_0x2607ea[_0x5a14fa('0x2160')]=_0x193e3c,_0x2607ea[_0x5a14fa('0x1bd1')]=_0x9408f3,_0x2607ea[_0x5a14fa('0xc4e')]=_0x2da483;function _0x578d1e(){const _0x8ddba2=_0x5a14fa;_0x2607ea['errors']=[],_0x304768['cannedAnswer'][_0x8ddba2('0x259')](_0x2607ea[_0x8ddba2('0x5a5')])[_0x8ddba2('0x1549')][_0x8ddba2('0x11bf')](function(_0x57cc05){const _0x57ac4=_0x8ddba2;_0x2607ea['chatCannedAnswers'][_0x57ac4('0x880')](_0x57cc05[_0x57ac4('0x2866')]()),_0x985f1[_0x57ac4('0x2693')]({'title':_0x57ac4('0x1684'),'msg':_0x2607ea['chatCannedAnswer'][_0x57ac4('0x1909')]?_0x2607ea[_0x57ac4('0x5a5')]['name']+_0x57ac4('0x7fb'):''}),_0x2da483(_0x57cc05);})[_0x8ddba2('0x151d')](function(_0x371cad){const _0xebd4b8=_0x8ddba2;if(_0x371cad['data']&&_0x371cad[_0xebd4b8('0x4e8')][_0xebd4b8('0x120f')]&&_0x371cad[_0xebd4b8('0x4e8')][_0xebd4b8('0x120f')][_0xebd4b8('0x1e22')]){_0x2607ea[_0xebd4b8('0x120f')]=_0x371cad['data'][_0xebd4b8('0x120f')]||[{'message':_0x371cad[_0xebd4b8('0xaab')](),'type':_0xebd4b8('0x23b5')}];for(let _0x564309=0x0;_0x564309<_0x371cad['data']['errors'][_0xebd4b8('0x1e22')];_0x564309+=0x1){_0x985f1[_0xebd4b8('0x255')]({'title':_0x371cad[_0xebd4b8('0x4e8')][_0xebd4b8('0x120f')][_0x564309][_0xebd4b8('0x19fd')],'msg':_0x371cad[_0xebd4b8('0x4e8')][_0xebd4b8('0x120f')][_0x564309][_0xebd4b8('0x1b86')]});}}else _0x985f1[_0xebd4b8('0x255')]({'title':_0x371cad['status']?'API:'+_0x371cad[_0xebd4b8('0xff9')]+_0xebd4b8('0xb0b')+_0x371cad['statusText']:_0xebd4b8('0x23b5'),'msg':_0x371cad['data']?JSON[_0xebd4b8('0x3e')](_0x371cad[_0xebd4b8('0x4e8')][_0xebd4b8('0x1b86')]):_0x371cad['toString']()});});}function _0xdee3f9(){const _0x378fb4=_0x5a14fa;_0x2607ea[_0x378fb4('0x120f')]=[],_0x304768[_0x378fb4('0x81')][_0x378fb4('0x5ab')]({'id':_0x2607ea[_0x378fb4('0x5a5')]['id']},_0x2607ea[_0x378fb4('0x5a5')])[_0x378fb4('0x1549')][_0x378fb4('0x11bf')](function(_0x173ab3){const _0x5a1f56=_0x378fb4,_0x1e565a=_0x36f548()[_0x5a1f56('0x1ad4')](_0x2607ea[_0x5a1f56('0x176')],{'id':_0x173ab3['id']});_0x1e565a&&_0x36f548()[_0x5a1f56('0x47b')](_0x1e565a,_0x36f548()[_0x5a1f56('0x258')](_0x173ab3[_0x5a1f56('0x2866')](),_0x36f548()[_0x5a1f56('0xe22')](_0x1e565a))),_0x985f1[_0x5a1f56('0x2693')]({'title':'ChatCannedAnswer\x20properly\x20saved!','msg':_0x2607ea['chatCannedAnswer'][_0x5a1f56('0x1909')]?_0x2607ea[_0x5a1f56('0x5a5')][_0x5a1f56('0x1909')]+_0x5a1f56('0x1a78'):''}),_0x2da483(_0x173ab3);})[_0x378fb4('0x151d')](function(_0x2ada05){const _0x14fa0b=_0x378fb4;if(_0x2ada05[_0x14fa0b('0x4e8')]&&_0x2ada05[_0x14fa0b('0x4e8')]['errors']&&_0x2ada05[_0x14fa0b('0x4e8')][_0x14fa0b('0x120f')][_0x14fa0b('0x1e22')]){_0x2607ea[_0x14fa0b('0x120f')]=_0x2ada05[_0x14fa0b('0x4e8')][_0x14fa0b('0x120f')]||[{'message':_0x2ada05['toString'](),'type':'api.cannedAnswer.update'}];for(let _0x279382=0x0;_0x279382<_0x2ada05['data']['errors']['length'];_0x279382++){_0x985f1['error']({'title':_0x2ada05[_0x14fa0b('0x4e8')][_0x14fa0b('0x120f')][_0x279382]['type'],'msg':_0x2ada05[_0x14fa0b('0x4e8')]['errors'][_0x279382][_0x14fa0b('0x1b86')]});}}else _0x985f1[_0x14fa0b('0x255')]({'title':_0x2ada05[_0x14fa0b('0xff9')]?_0x14fa0b('0x574')+_0x2ada05[_0x14fa0b('0xff9')]+_0x14fa0b('0xb0b')+_0x2ada05[_0x14fa0b('0x212f')]:_0x14fa0b('0x1698'),'msg':_0x2ada05[_0x14fa0b('0x4e8')]?JSON[_0x14fa0b('0x3e')](_0x2ada05[_0x14fa0b('0x4e8')][_0x14fa0b('0x1b86')]):_0x2ada05[_0x14fa0b('0xaab')]()});});}function _0x193e3c(_0x555500){const _0x418110=_0x5a14fa;_0x2607ea[_0x418110('0x120f')]=[];const _0x7b0d6=_0x2de7d1[_0x418110('0x132b')]()[_0x418110('0x134b')](_0x418110('0x1fa9'))['content'](_0x418110('0x1e0f'))[_0x418110('0xb2e')](_0x418110('0xf9e'))['ok'](_0x418110('0x1167'))['cancel'](_0x418110('0x784'))[_0x418110('0x1e25')](_0x555500);_0x2de7d1['show'](_0x7b0d6)['then'](function(){const _0x11ec47=_0x418110;_0x304768[_0x11ec47('0x81')][_0x11ec47('0x2088')]({'id':_0x2607ea[_0x11ec47('0x5a5')]['id']})[_0x11ec47('0x1549')][_0x11ec47('0x11bf')](function(){const _0x2b6630=_0x11ec47;_0x36f548()[_0x2b6630('0x14a5')](_0x2607ea[_0x2b6630('0x176')],{'id':_0x2607ea[_0x2b6630('0x5a5')]['id']}),_0x985f1[_0x2b6630('0x2693')]({'title':_0x2b6630('0x7f4'),'msg':(_0x2607ea[_0x2b6630('0x5a5')][_0x2b6630('0x1909')]||_0x2b6630('0x5a5'))+_0x2b6630('0x433')}),_0x2da483(_0x2607ea[_0x2b6630('0x5a5')]);})['catch'](function(_0x5c511f){const _0x599693=_0x11ec47;if(_0x5c511f[_0x599693('0x4e8')]&&_0x5c511f[_0x599693('0x4e8')]['errors']&&_0x5c511f[_0x599693('0x4e8')][_0x599693('0x120f')][_0x599693('0x1e22')]){_0x2607ea['errors']=_0x5c511f[_0x599693('0x4e8')][_0x599693('0x120f')]||[{'message':_0x5c511f[_0x599693('0xaab')](),'type':_0x599693('0x2279')}];for(let _0x3634be=0x0;_0x3634be<_0x5c511f[_0x599693('0x4e8')][_0x599693('0x120f')][_0x599693('0x1e22')];_0x3634be++){_0x985f1['error']({'title':_0x5c511f[_0x599693('0x4e8')][_0x599693('0x120f')][_0x3634be][_0x599693('0x19fd')],'msg':_0x5c511f[_0x599693('0x4e8')][_0x599693('0x120f')][_0x3634be][_0x599693('0x1b86')]});}}else _0x985f1[_0x599693('0x255')]({'title':_0x5c511f[_0x599693('0xff9')]?_0x599693('0x574')+_0x5c511f[_0x599693('0xff9')]+_0x599693('0xb0b')+_0x5c511f['statusText']:_0x599693('0x2279'),'msg':_0x5c511f[_0x599693('0x4e8')]?JSON['stringify'](_0x5c511f[_0x599693('0x4e8')][_0x599693('0x1b86')]):_0x5c511f['message']||_0x5c511f[_0x599693('0xaab')]()});});},function(){});}function _0x9408f3(_0x525b5b){return _0x525b5b===null?undefined:new Date(_0x525b5b);}function _0x2da483(_0x5bb5dd){const _0x5e057b=_0x5a14fa;_0x2de7d1[_0x5e057b('0x237e')](_0x5bb5dd);}}const _0x1414ab=_0x325b3e;_0x17561c[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),'$window',_0x21d0f5('0xcbc'),'$mdSidenav',_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),_0x21d0f5('0x17f5'),'$translate',_0x21d0f5('0x12a5'),_0x21d0f5('0x142d'),_0x21d0f5('0x1150')];function _0x17561c(_0x2c62c9,_0x4a2a16,_0x59249b,_0x3a9aea,_0x5693e1,_0x5f2aec,_0x5c81d5,_0xc6e589,_0x4732b6,_0x2f253b,_0x7c7fd9){const _0x26e8cd=_0x21d0f5,_0x222308=this;_0x222308[_0x26e8cd('0x32a')]=_0x7c7fd9[_0x26e8cd('0x2428')](),_0x222308[_0x26e8cd('0x1394')]={'count':0x0,'rows':[]},_0x222308[_0x26e8cd('0x21ae')]=[],_0x222308[_0x26e8cd('0xb25')],_0x222308[_0x26e8cd('0x1526')]={'first':_0x26e8cd('0x1558'),'second':_0x26e8cd('0xe0e'),'third':_0x26e8cd('0x10e6')},_0x222308[_0x26e8cd('0x1f2a')]={'fields':'id,level,name,description,ParentId,createdAt,updatedAt','sort':_0x26e8cd('0x1c74'),'limit':0xa,'page':0x1},_0x222308[_0x26e8cd('0x286f')]=_0xfca8c1,_0x222308['deleteConfirm']=_0x31266f,_0x222308[_0x26e8cd('0x2693')]=_0x43c004,_0x222308['getDispositions']=_0x4534d3,_0x222308[_0x26e8cd('0x238d')]=_0x529318,_0x222308[_0x26e8cd('0x2776')]=_0x1e9608,_0x222308['exportSelectedDispositions']=_0x4699e7,_0x222308[_0x26e8cd('0xadf')]=_0x508bb0,_0x222308[_0x26e8cd('0x1d8f')]=_0x3492c0,_0x222308[_0x26e8cd('0x94f')]=_0x42908f;function _0xfca8c1(_0x5123de,_0x4afdfa){const _0x47e277=_0x26e8cd;_0x222308[_0x47e277('0xb50')]=_0x5123de||{},_0x222308[_0x47e277('0xb25')]=typeof _0x4afdfa!==_0x47e277('0x13e9')?_0x4afdfa:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x222308[_0x47e277('0x1f2a')]['ChatWebsiteId']=_0x222308['chatWebsite']['id'],_0x222308[_0x47e277('0x1f2a')]['id']=_0x222308['chatWebsite']['id'],_0x4534d3();}function _0x529318(_0x422a92,_0x197107){const _0x11d6f9=_0x26e8cd;_0x5693e1['show']({'controller':_0x11d6f9('0x21b7'),'controllerAs':'vm','templateUrl':_0xd803cc,'parent':angular['element'](_0x5f2aec[_0x11d6f9('0x1d2')]),'targetEvent':_0x422a92,'clickOutsideToClose':!![],'locals':{'disposition':_0x197107,'dispositions':_0x222308[_0x11d6f9('0x1394')][_0x11d6f9('0x19b2')],'model':{'id':_0x222308[_0x11d6f9('0xb50')]['id'],'field':_0x11d6f9('0x2346')},'license':null,'setting':null,'crudPermissions':_0x222308[_0x11d6f9('0xb25')]}})[_0x11d6f9('0x11bf')](function(_0x51b28c){if(_0x51b28c)_0x4534d3();});}function _0x31266f(_0x2be091,_0x5e279b){const _0x1592f9=_0x26e8cd,_0x1f0c75=_0x36f548()[_0x1592f9('0x1cb3')](_0x222308[_0x1592f9('0x1394')]['rows'],['ParentId',_0x2be091['id']]),_0x5364ab=_0x5693e1['confirm']()[_0x1592f9('0x134b')](_0xc6e589[_0x1592f9('0x10c2')](_0x1592f9('0x221d')))[_0x1592f9('0x252a')](_0xc6e589[_0x1592f9('0x10c2')]('TOOLS.NOTIFICATIONS.'+(_0x1f0c75?'DISPOSITION_DELETE_MESSAGE_CHILDREN':_0x1592f9('0x16d7')),{'name':_0x2be091[_0x1592f9('0x1909')]}))[_0x1592f9('0xb2e')]('Delete\x20disposition')[_0x1592f9('0x1e25')](_0x5e279b)['ok']('OK')[_0x1592f9('0x26c9')](_0xc6e589[_0x1592f9('0x10c2')]('APP.CANCEL'));_0x5693e1[_0x1592f9('0xb9')](_0x5364ab)[_0x1592f9('0x11bf')](function(){_0x1e9608(_0x2be091);});}function _0x43c004(_0x13b1c2){const _0x5199e9=_0x26e8cd;_0x222308[_0x5199e9('0x1394')]=_0x13b1c2||{'count':0x0,'rows':[]};}function _0x4534d3(){const _0x5c45a3=_0x26e8cd;_0x222308[_0x5c45a3('0x1f2a')][_0x5c45a3('0x1393')]=(_0x222308[_0x5c45a3('0x1f2a')][_0x5c45a3('0x1c2')]-0x1)*_0x222308[_0x5c45a3('0x1f2a')]['limit'],_0x222308[_0x5c45a3('0x13f')]=_0x4732b6[_0x5c45a3('0xb50')][_0x5c45a3('0x200')](_0x222308[_0x5c45a3('0x1f2a')],_0x43c004)[_0x5c45a3('0x1549')];}function _0x1e9608(_0x39789b){const _0x56ebac=_0x26e8cd;_0x4732b6['disposition'][_0x56ebac('0x2088')]({'id':_0x39789b['id']})[_0x56ebac('0x1549')][_0x56ebac('0x11bf')](function(){const _0x5cafe7=_0x56ebac;_0x4534d3(),_0x2f253b[_0x5cafe7('0x2693')]({'title':_0xc6e589[_0x5cafe7('0x10c2')]('TOOLS.NOTIFICATIONS.DISPOSITION_DELETED_SUCCESS_TITLE')});})[_0x56ebac('0x151d')](function(_0x264fbe){const _0x2c9f12=_0x56ebac;if(_0x264fbe['data']&&_0x264fbe[_0x2c9f12('0x4e8')][_0x2c9f12('0x120f')]&&_0x264fbe[_0x2c9f12('0x4e8')][_0x2c9f12('0x120f')][_0x2c9f12('0x1e22')]){_0x222308[_0x2c9f12('0x120f')]=_0x264fbe[_0x2c9f12('0x4e8')][_0x2c9f12('0x120f')]||[{'message':_0x264fbe[_0x2c9f12('0xaab')](),'type':_0x2c9f12('0x1551')}];for(let _0x2c4522=0x0;_0x2c4522<_0x264fbe[_0x2c9f12('0x4e8')]['errors'][_0x2c9f12('0x1e22')];_0x2c4522++){_0x2f253b[_0x2c9f12('0x255')]({'title':_0x264fbe[_0x2c9f12('0x4e8')][_0x2c9f12('0x120f')][_0x2c4522]['type'],'msg':_0x264fbe[_0x2c9f12('0x4e8')][_0x2c9f12('0x120f')][_0x2c4522]['message']});}}else _0x2f253b[_0x2c9f12('0x255')]({'title':_0x264fbe[_0x2c9f12('0xff9')]?_0x2c9f12('0x574')+_0x264fbe[_0x2c9f12('0xff9')]+'\x20-\x20'+_0x264fbe[_0x2c9f12('0x212f')]:_0x2c9f12('0x1551'),'msg':_0x264fbe[_0x2c9f12('0x4e8')]?JSON[_0x2c9f12('0x3e')](_0x264fbe[_0x2c9f12('0x4e8')][_0x2c9f12('0x1b86')]):_0x264fbe[_0x2c9f12('0x1b86')]||_0x264fbe['toString']()});});}function _0x4699e7(){const _0x64d62c=_0x26e8cd,_0x31dff5=angular[_0x64d62c('0x6fb')](_0x222308['selectedDispositions']);return _0x222308[_0x64d62c('0x21ae')]=[],_0x31dff5;}function _0x508bb0(_0x4cb84f){const _0x35380e=_0x26e8cd,_0x351020=_0x5693e1[_0x35380e('0x132b')]()['title'](_0xc6e589[_0x35380e('0x10c2')](_0x35380e('0x1cd5')))[_0x35380e('0x252a')](_0xc6e589[_0x35380e('0x10c2')](_0x35380e('0x20f4'),{'total':_0x222308[_0x35380e('0x21ae')][_0x35380e('0x1e22')]}))[_0x35380e('0xb2e')](_0x35380e('0x1ef9'))[_0x35380e('0x1e25')](_0x4cb84f)['ok']('OK')[_0x35380e('0x26c9')](_0xc6e589[_0x35380e('0x10c2')](_0x35380e('0xa5d')));_0x5693e1[_0x35380e('0xb9')](_0x351020)['then'](function(){const _0x50e8dc=_0x35380e;_0x222308[_0x50e8dc('0x21ae')][_0x50e8dc('0x1f88')](function(_0x2a4fa7){_0x1e9608(_0x2a4fa7);}),_0x222308['selectedDispositions']=[];});}function _0x3492c0(){const _0x28458f=_0x26e8cd;_0x222308[_0x28458f('0x21ae')]=[];}function _0x42908f(){const _0x156b63=_0x26e8cd;_0x222308[_0x156b63('0x21ae')]=_0x222308[_0x156b63('0x1394')][_0x156b63('0x19b2')];}let _0x18c9c2=!![],_0xa7bf45=0x1;_0x2c62c9[_0x26e8cd('0x2087')](_0x26e8cd('0x1d12'),function(_0x5f44bb,_0x193e6f){const _0x426f34=_0x26e8cd;_0x18c9c2?_0x5c81d5(function(){_0x18c9c2=![];}):(!_0x193e6f&&(_0xa7bf45=_0x222308['query'][_0x426f34('0x1c2')]),_0x5f44bb!==_0x193e6f&&(_0x222308[_0x426f34('0x1f2a')][_0x426f34('0x1c2')]=0x1),!_0x5f44bb&&(_0x222308[_0x426f34('0x1f2a')]['page']=_0xa7bf45),_0x4534d3());});}const _0x3a03f8=_0x17561c;_0x503627[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),'api'];function _0x503627(_0x2d1fc3,_0x447a82,_0x558643){const _0x1e3696=_0x21d0f5,_0x2c385a=this;_0x2c385a[_0x1e3696('0xb50')]={},_0x2c385a[_0x1e3696('0x133d')]={},_0x2c385a[_0x1e3696('0xb47')]=[{'type':_0x1e3696('0x1811'),'name':_0x1e3696('0x23a'),'icon':'icon-label'},{'type':_0x1e3696('0xb7'),'name':'Select','icon':_0x1e3696('0x1d6d')},{'type':'input','name':_0x1e3696('0x27ec'),'icon':_0x1e3696('0xfa3')},{'type':_0x1e3696('0x265f'),'name':_0x1e3696('0xe17'),'icon':_0x1e3696('0xe81')},{'type':_0x1e3696('0x11bb'),'name':_0x1e3696('0x748'),'icon':_0x1e3696('0x303')},{'type':_0x1e3696('0x1d59'),'name':_0x1e3696('0x1736'),'icon':_0x1e3696('0x1e8c')},{'type':_0x1e3696('0x403'),'name':_0x1e3696('0x2448'),'icon':_0x1e3696('0x14cc')}],_0x2c385a['init']=_0x3ce586,_0x2c385a['up']=_0x2fddc4,_0x2c385a[_0x1e3696('0x268d')]=_0x37be12,_0x2c385a['add']=_0x41e5db,_0x2c385a[_0x1e3696('0x14a5')]=_0x2b6d36;function _0x3ce586(_0x158dea){const _0x48a87c=_0x1e3696;_0x2c385a[_0x48a87c('0x1067')]=[],_0x2c385a['customFields']=[],_0x2c385a[_0x48a87c('0x22fc')]=['id',_0x48a87c('0x1779'),_0x48a87c('0x14ea'),_0x48a87c('0x1e91'),_0x48a87c('0x5b9'),_0x48a87c('0x1549'),_0x48a87c('0x1619')],_0x2c385a[_0x48a87c('0xb50')]=_0x158dea,_0x36f548()['isEmpty'](_0x2c385a[_0x48a87c('0xb50')][_0x48a87c('0x133d')])&&(_0x2c385a[_0x48a87c('0xb50')][_0x48a87c('0x133d')]={'items':[],'fromKey':null}),_0x558643[_0x48a87c('0xbef')][_0x48a87c('0x1281')]({'id':_0x2c385a[_0x48a87c('0xb50')][_0x48a87c('0x1e91')]})[_0x48a87c('0x1549')]['then'](function(_0x3a8ff8){const _0x5d17e9=_0x48a87c;for(let _0x443214=0x0;_0x443214<_0x3a8ff8['rows'][_0x5d17e9('0x1e22')];_0x443214++){_0x2c385a[_0x5d17e9('0x8a1')][_0x5d17e9('0x105d')]({'key':_0x5d17e9('0x57a')+_0x3a8ff8[_0x5d17e9('0x19b2')][_0x443214]['id'],'value':_0x3a8ff8['rows'][_0x443214][_0x5d17e9('0x2012')]});}return _0x558643['cmContact'][_0x5d17e9('0x19a5')]()['$promise'];})['then'](function(_0x41f4df){const _0x3e2a8d=_0x48a87c,_0x32eea2=_0x36f548()[_0x3e2a8d('0xe22')](_0x41f4df);for(let _0x50dbf7=0x0;_0x50dbf7<_0x32eea2['length'];_0x50dbf7++){!_0x36f548()[_0x3e2a8d('0x55a')](_0x2c385a[_0x3e2a8d('0x22fc')],_0x32eea2[_0x50dbf7])&&!_0x36f548()[_0x3e2a8d('0x1eb7')](_0x32eea2[_0x50dbf7],_0x3e2a8d('0x57a'))&&_0x2c385a[_0x3e2a8d('0x1067')][_0x3e2a8d('0x880')]({'key':_0x32eea2[_0x50dbf7],'value':_0x32eea2[_0x50dbf7]});}return _0x558643[_0x3e2a8d('0xb0')][_0x3e2a8d('0xbaa')]()[_0x3e2a8d('0x1549')];})[_0x48a87c('0x11bf')](function(_0x564428){const _0x171e39=_0x48a87c;_0x2c385a[_0x171e39('0x1700')]=_0x564428[_0x171e39('0x19b2')];})[_0x48a87c('0x151d')](function(_0x2f1cd4){const _0x1f5533=_0x48a87c;console[_0x1f5533('0x255')](_0x2f1cd4);});}function _0x2fddc4(_0x27a49a,_0x25ab05){const _0xe6b87e=_0x1e3696;if(_0x25ab05!==0x0){const _0x234d4a=_0x2c385a[_0xe6b87e('0xb50')][_0xe6b87e('0x133d')][_0xe6b87e('0x22')][_0x25ab05-0x1];_0x2c385a['chatWebsite'][_0xe6b87e('0x133d')]['items'][_0x25ab05]=_0x234d4a,_0x2c385a[_0xe6b87e('0xb50')]['offlineForm']['items'][_0x25ab05-0x1]=angular['copy'](_0x27a49a);if(_0x2c385a[_0xe6b87e('0xb50')][_0xe6b87e('0x133d')][_0xe6b87e('0x2314')]===_0x25ab05)_0x2c385a[_0xe6b87e('0xb50')]['offlineForm']['fromKey']--;else _0x2c385a[_0xe6b87e('0xb50')]['offlineForm'][_0xe6b87e('0x2314')]===_0x25ab05-0x1&&_0x2c385a[_0xe6b87e('0xb50')][_0xe6b87e('0x133d')][_0xe6b87e('0x2314')]++;}}function _0x37be12(_0x5e067a,_0x421d1c){const _0x1383f2=_0x1e3696;if(_0x421d1c!==_0x2c385a['chatWebsite'][_0x1383f2('0x133d')]['items']['length']-0x1){const _0x1f375e=_0x2c385a[_0x1383f2('0xb50')][_0x1383f2('0x133d')][_0x1383f2('0x22')][_0x421d1c+0x1];_0x2c385a['chatWebsite'][_0x1383f2('0x133d')][_0x1383f2('0x22')][_0x421d1c]=_0x1f375e,_0x2c385a[_0x1383f2('0xb50')][_0x1383f2('0x133d')]['items'][_0x421d1c+0x1]=angular[_0x1383f2('0x6fb')](_0x5e067a);if(_0x2c385a['chatWebsite']['offlineForm'][_0x1383f2('0x2314')]===_0x421d1c)_0x2c385a[_0x1383f2('0xb50')]['offlineForm']['fromKey']++;else _0x2c385a[_0x1383f2('0xb50')]['offlineForm'][_0x1383f2('0x2314')]===_0x421d1c+0x1&&_0x2c385a[_0x1383f2('0xb50')][_0x1383f2('0x133d')][_0x1383f2('0x2314')]--;}}function _0x41e5db(_0xb1ab78){const _0x44f5cd=_0x1e3696;_0x2c385a['chatWebsite'][_0x44f5cd('0x133d')]['items'][_0x44f5cd('0x105d')]({'type':_0xb1ab78,'cmField':null,'variable':null});}function _0x2b6d36(_0x2214c7){const _0x25f205=_0x1e3696,_0x3fb461=_0x2d1fc3['confirm']()['title'](_0x25f205('0xf60'))[_0x25f205('0xad7')](_0x25f205('0x1fa9'))['ariaLabel'](_0x25f205('0x5c7'))['ok']('Ok')['cancel']('Cancel');_0x2d1fc3[_0x25f205('0xb9')](_0x3fb461)[_0x25f205('0x11bf')](function(){const _0x12655b=_0x25f205;_0x2c385a[_0x12655b('0xb50')]['offlineForm'][_0x12655b('0x22')]['splice'](_0x2214c7,0x1);});}}const _0x3a1e51=_0x503627;_0xb4d8ed[_0x21d0f5('0x1e9a')]=['$mdDialog',_0x21d0f5('0x1b30'),_0x21d0f5('0x12a5')];function _0xb4d8ed(_0x199f2e,_0x9a097f,_0x3faaf1){const _0x53907b=_0x21d0f5,_0x3a9e0b=this;_0x3a9e0b['chatWebsite']={},_0x3a9e0b[_0x53907b('0x1999')]={},_0x3a9e0b[_0x53907b('0xb47')]=[{'type':'label','name':_0x53907b('0x23a'),'icon':_0x53907b('0x1b57')},{'type':_0x53907b('0xb7'),'name':_0x53907b('0x449'),'icon':_0x53907b('0x1d6d')},{'type':_0x53907b('0xa05'),'name':_0x53907b('0x27ec'),'icon':_0x53907b('0xfa3')},{'type':_0x53907b('0x265f'),'name':_0x53907b('0xe17'),'icon':_0x53907b('0xe81')},{'type':_0x53907b('0x11bb'),'name':'Radio\x20Buttons','icon':_0x53907b('0x303')},{'type':_0x53907b('0x1d59'),'name':_0x53907b('0x1736'),'icon':_0x53907b('0x1e8c')},{'type':'agreement','name':_0x53907b('0x2448'),'icon':_0x53907b('0x14cc')}],_0x3a9e0b['init']=_0x186f5d,_0x3a9e0b['up']=_0x4f6358,_0x3a9e0b['down']=_0x19bc66,_0x3a9e0b[_0x53907b('0x23c1')]=_0x2ecdfc,_0x3a9e0b[_0x53907b('0x14a5')]=_0x2cd9b5;function _0x186f5d(_0x40d421){const _0x5bd688=_0x53907b;_0x3a9e0b[_0x5bd688('0x1067')]=[],_0x3a9e0b['customFields']=[],_0x3a9e0b['uselessFields']=['id',_0x5bd688('0x1779'),_0x5bd688('0x14ea'),_0x5bd688('0x1e91'),'CompanyId',_0x5bd688('0x1549'),_0x5bd688('0x1619')],_0x3a9e0b[_0x5bd688('0xb50')]=_0x40d421,_0x36f548()[_0x5bd688('0x1fc5')](_0x3a9e0b[_0x5bd688('0xb50')]['onlineForm'])&&(_0x3a9e0b['chatWebsite'][_0x5bd688('0x1999')]={'items':[],'fromKey':null}),_0x3faaf1[_0x5bd688('0xbef')][_0x5bd688('0x1281')]({'id':_0x3a9e0b[_0x5bd688('0xb50')][_0x5bd688('0x1e91')]})[_0x5bd688('0x1549')]['then'](function(_0x1caab9){const _0x567ff9=_0x5bd688;for(let _0x555416=0x0;_0x555416<_0x1caab9[_0x567ff9('0x19b2')][_0x567ff9('0x1e22')];_0x555416++){_0x3a9e0b['customFields'][_0x567ff9('0x105d')]({'key':_0x567ff9('0x57a')+_0x1caab9[_0x567ff9('0x19b2')][_0x555416]['id'],'value':_0x1caab9['rows'][_0x555416][_0x567ff9('0x2012')]});}return _0x3faaf1[_0x567ff9('0x1b8f')][_0x567ff9('0x19a5')]()[_0x567ff9('0x1549')];})[_0x5bd688('0x11bf')](function(_0x474b9d){const _0x4229ee=_0x5bd688,_0x4c418a=_0x36f548()['keys'](_0x474b9d);for(let _0x143afc=0x0;_0x143afc<_0x4c418a[_0x4229ee('0x1e22')];_0x143afc++){!_0x36f548()['includes'](_0x3a9e0b['uselessFields'],_0x4c418a[_0x143afc])&&!_0x36f548()[_0x4229ee('0x1eb7')](_0x4c418a[_0x143afc],'cf_')&&_0x3a9e0b[_0x4229ee('0x1067')]['unshift']({'key':_0x4c418a[_0x143afc],'value':_0x4c418a[_0x143afc]});}return _0x3faaf1['variable'][_0x4229ee('0xbaa')]()[_0x4229ee('0x1549')];})['then'](function(_0x5f86df){const _0x22589d=_0x5bd688;_0x3a9e0b['variables']=_0x5f86df[_0x22589d('0x19b2')];})[_0x5bd688('0x151d')](function(_0x4de973){console['error'](_0x4de973);});}function _0x4f6358(_0x49f495,_0x23de00){const _0x2ef485=_0x53907b;if(_0x23de00!==0x0){const _0x45f2f2=_0x3a9e0b['chatWebsite'][_0x2ef485('0x1999')][_0x2ef485('0x22')][_0x23de00-0x1];_0x3a9e0b[_0x2ef485('0xb50')][_0x2ef485('0x1999')]['items'][_0x23de00]=_0x45f2f2,_0x3a9e0b['chatWebsite']['onlineForm'][_0x2ef485('0x22')][_0x23de00-0x1]=angular[_0x2ef485('0x6fb')](_0x49f495);if(_0x3a9e0b[_0x2ef485('0xb50')]['onlineForm'][_0x2ef485('0x2314')]===_0x23de00)_0x3a9e0b[_0x2ef485('0xb50')][_0x2ef485('0x1999')][_0x2ef485('0x2314')]--;else _0x3a9e0b['chatWebsite'][_0x2ef485('0x1999')][_0x2ef485('0x2314')]===_0x23de00-0x1&&_0x3a9e0b[_0x2ef485('0xb50')][_0x2ef485('0x1999')][_0x2ef485('0x2314')]++;}}function _0x19bc66(_0x26693f,_0x36c2cc){const _0xd08ceb=_0x53907b;if(_0x36c2cc!==_0x3a9e0b[_0xd08ceb('0xb50')][_0xd08ceb('0x1999')]['items'][_0xd08ceb('0x1e22')]-0x1){const _0xff8822=_0x3a9e0b[_0xd08ceb('0xb50')][_0xd08ceb('0x1999')]['items'][_0x36c2cc+0x1];_0x3a9e0b[_0xd08ceb('0xb50')][_0xd08ceb('0x1999')][_0xd08ceb('0x22')][_0x36c2cc]=_0xff8822,_0x3a9e0b[_0xd08ceb('0xb50')][_0xd08ceb('0x1999')][_0xd08ceb('0x22')][_0x36c2cc+0x1]=angular[_0xd08ceb('0x6fb')](_0x26693f);if(_0x3a9e0b[_0xd08ceb('0xb50')][_0xd08ceb('0x1999')][_0xd08ceb('0x2314')]===_0x36c2cc)_0x3a9e0b['chatWebsite'][_0xd08ceb('0x1999')]['fromKey']++;else _0x3a9e0b['chatWebsite'][_0xd08ceb('0x1999')][_0xd08ceb('0x2314')]===_0x36c2cc+0x1&&_0x3a9e0b[_0xd08ceb('0xb50')][_0xd08ceb('0x1999')]['fromKey']--;}}function _0x2ecdfc(_0x1651bb){const _0x206b1a=_0x53907b;_0x3a9e0b['chatWebsite'][_0x206b1a('0x1999')]['items']['push']({'type':_0x1651bb,'cmField':null,'variable':null});}function _0x2cd9b5(_0x5cee9f){const _0x45f934=_0x53907b,_0x1f4658=_0x199f2e[_0x45f934('0x132b')]()['title'](_0x45f934('0xf60'))['textContent']('Are\x20you\x20sure?')[_0x45f934('0xb2e')](_0x45f934('0x5c7'))['ok']('Ok')[_0x45f934('0x26c9')](_0x45f934('0x784'));_0x199f2e['show'](_0x1f4658)[_0x45f934('0x11bf')](function(){const _0x2ff3a3=_0x45f934;_0x3a9e0b[_0x2ff3a3('0xb50')][_0x2ff3a3('0x1999')][_0x2ff3a3('0x2314')]===_0x5cee9f&&(_0x3a9e0b[_0x2ff3a3('0xb50')][_0x2ff3a3('0x1999')][_0x2ff3a3('0x2314')]=null),_0x3a9e0b['chatWebsite'][_0x2ff3a3('0x1999')][_0x2ff3a3('0x22')][_0x2ff3a3('0x1ae')](_0x5cee9f,0x1),!_0x3a9e0b[_0x2ff3a3('0xb50')]['onlineForm'][_0x2ff3a3('0x22')][_0x2ff3a3('0x1e22')]&&(_0x3a9e0b[_0x2ff3a3('0xb50')][_0x2ff3a3('0x1999')][_0x2ff3a3('0x2314')]=null);});}}const _0x58d97b=_0xb4d8ed;_0x13f2eb[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x5d8'),'toasty'];function _0x13f2eb(_0x727cc8,_0xfa1f9c){const _0x250c2d=_0x21d0f5,_0x6d4919=this,_0x5c40af=0x8,_0xd409a8=_0x5c40af*0x400*0x400;_0x6d4919[_0x250c2d('0xb50')]={},_0x6d4919[_0x250c2d('0xb25')],_0x6d4919['ngFlowOptions']={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0xd409a8,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x6d4919[_0x250c2d('0x13b8')]={'flow':{}},_0x6d4919['dropping']=![],_0x6d4919[_0x250c2d('0x1c03')]=_0x27cf67,_0x6d4919['upload']=_0x4dec47,_0x6d4919['fileSuccess']=_0x13261f,_0x6d4919[_0x250c2d('0x286f')]=_0x1e8ac7;function _0x1e8ac7(_0x249217,_0x5aad9c){const _0x3f5910=_0x250c2d;_0x6d4919['chatWebsite']=angular[_0x3f5910('0x6fb')](_0x249217),_0x6d4919[_0x3f5910('0xb25')]=typeof _0x5aad9c!==_0x3f5910('0x13e9')?_0x5aad9c:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x6d4919['ngFlowOptions'][_0x3f5910('0xc7a')]=_0x3f5910('0x291')[_0x3f5910('0x814')](_0x3f5910('0xa2d'),_0x6d4919['chatWebsite']['id']),_0x6d4919[_0x3f5910('0xb50')][_0x3f5910('0x25e2')]=[];}function _0x27cf67(_0x3c1df0){const _0x1a8939=_0x250c2d,_0x449dc1=['png',_0x1a8939('0x51d')];if(!_0x36f548()['includes'](_0x449dc1,_0x3c1df0[_0x1a8939('0x115f')]()))return _0xfa1f9c[_0x1a8939('0x255')]({'title':_0x1a8939('0x782')+_0x3c1df0[_0x1a8939('0x115f')](),'msg':_0x1a8939('0x9bf')+_0x449dc1[_0x1a8939('0xa04')]()}),![];if(_0x3c1df0[_0x1a8939('0x12dd')]>_0xd409a8)return _0xfa1f9c[_0x1a8939('0x255')]({'title':_0x1a8939('0xc56'),'msg':'The\x20max\x20allowed\x20size\x20is\x20'+_0x5c40af+'MB'}),![];const _0x42de99={'id':_0x3c1df0['uniqueIdentifier'],'file':_0x3c1df0,'type':'uploading'};return _0x6d4919[_0x1a8939('0xb50')][_0x1a8939('0x25e2')]['unshift'](_0x42de99),!![];}function _0x4dec47(){const _0x144dec=_0x250c2d;_0x6d4919[_0x144dec('0x13b8')][_0x144dec('0x2414')]['opts'][_0x144dec('0x1f61')]={'X-Requested-With':'XMLHttpRequest','Authorization':'Bearer\x20'+_0x727cc8[_0x144dec('0xbaa')](_0x144dec('0xc2b'))},_0x6d4919[_0x144dec('0x13b8')]['flow'][_0x144dec('0x1d01')]();}function _0x13261f(_0x43ce89){const _0x28a46b=_0x250c2d;angular[_0x28a46b('0x1f88')](_0x6d4919[_0x28a46b('0xb50')]['images'],function(_0x34fd0d){const _0x2ca522=_0x28a46b;if(_0x34fd0d['id']===_0x43ce89[_0x2ca522('0x40b')]){const _0x3f6fde=new FileReader();_0x3f6fde['readAsDataURL'](_0x34fd0d[_0x2ca522('0x2889')][_0x2ca522('0x2889')]),_0x3f6fde[_0x2ca522('0x1403')]=function(_0x498884){const _0x14d623=_0x2ca522;_0x34fd0d['url']=_0x498884[_0x14d623('0xc7a')][_0x14d623('0x252e')];},_0x34fd0d[_0x2ca522('0x19fd')]=_0x2ca522('0x5b1');}});}}const _0x75e26a=_0x13f2eb,_0x1742d8=_0x351988['p']+'src/js/modules/main/apps/dashboards/views/general/agent/interaction/agent.general.interaction.dialog.html/agent.general.interaction.dialog.html';_0x23caed[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x5d8'),_0x21d0f5('0x1b80'),'$state','$q',_0x21d0f5('0xb6b'),_0x21d0f5('0x17f5'),'$mdDialog',_0x21d0f5('0x1b30'),'toasty',_0x21d0f5('0x12a5'),'Auth'];function _0x23caed(_0x5cdc50,_0xd7ec78,_0x2e3ea1,_0x579eef,_0x49dacd,_0x530115,_0x58d948,_0x16986b,_0x1f4a1,_0xf3ff18,_0xfe63f6){const _0x6721ca=_0x21d0f5,_0x5b84e4=this;_0x5b84e4['currentUser']=_0xfe63f6['getCurrentUser'](),_0x5b84e4[_0x6721ca('0xb50')]={},_0x5b84e4[_0x6721ca('0x209c')]={'count':0x0,'rows':[]},_0x5b84e4['selectedChatWebsiteInteractions']=[],_0x5b84e4[_0x6721ca('0xb25')],_0x5b84e4[_0x6721ca('0x1f2a')]={'read':'null','closed':_0x6721ca('0xb5f'),'sort':_0x6721ca('0xb8c'),'includeAll':_0x6721ca('0x204c'),'limit':0xa,'page':0x1},_0x5b84e4[_0x6721ca('0x286f')]=_0x3d35f1,_0x5b84e4['deleteConfirm']=_0x4557e4,_0x5b84e4[_0x6721ca('0x48f')]=_0x34c97b,_0x5b84e4[_0x6721ca('0x2693')]=_0x489da8,_0x5b84e4[_0x6721ca('0x97b')]=_0x4655e7,_0x5b84e4[_0x6721ca('0x310')]=_0x481ba8,_0x5b84e4['openAdvancedSearch']=_0x20eb2c,_0x5b84e4[_0x6721ca('0x184e')]=_0x12b09d,_0x5b84e4[_0x6721ca('0x25c8')]=_0x3dbe9e,_0x5b84e4[_0x6721ca('0xffa')]=_0x57227b;function _0x3d35f1(_0x37c0c4,_0x542797){const _0x44167f=_0x6721ca;_0x5b84e4[_0x44167f('0xb50')]=_0x37c0c4,_0x5b84e4['crudPermissions']=typeof _0x542797!==_0x44167f('0x13e9')?_0x542797:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x5b84e4[_0x44167f('0x1f2a')][_0x44167f('0x2346')]=_0x5b84e4[_0x44167f('0xb50')]['id'],_0x5b84e4['advancedSearch']={'fields':_0x46c423()},_0x46a4d3();}function _0x46a4d3(){const _0x3af64d=_0x6721ca;return _0xf3ff18[_0x3af64d('0x1d73')]['get']()[_0x3af64d('0x1549')][_0x3af64d('0x11bf')](function(_0x5a5f7e){const _0x2496c0=_0x3af64d;_0x5b84e4[_0x2496c0('0x2763')]=_0x5a5f7e||{'count':0x0,'rows':[]};})['then'](function(){_0x5b84e4['quickFilters']=_0x399cc6();});}function _0x399cc6(){const _0x57bf5f=_0x6721ca;return[{'name':_0x57bf5f('0xa68'),'key':'createdAt','type':_0x57bf5f('0x22f7'),'label':_0x57bf5f('0x1c11')},{'name':_0x57bf5f('0x3ad'),'key':'read','type':_0x57bf5f('0x2350'),'label':_0x57bf5f('0x22a0'),'customOptions':[{'value':0x0,'translate':'DASHBOARDS.UNREAD'},{'value':0x1,'translate':_0x57bf5f('0x22a5')},{'value':null,'translate':_0x57bf5f('0x211a')}]},{'name':_0x57bf5f('0x971'),'key':_0x57bf5f('0x949'),'type':_0x57bf5f('0x2350'),'label':_0x57bf5f('0xa96'),'customOptions':[{'value':0x0,'translate':'DASHBOARDS.OPENED'},{'value':0x1,'translate':'DASHBOARDS.CLOSED'},{'value':null,'translate':_0x57bf5f('0x211a')}]},{'name':_0x57bf5f('0x701'),'key':_0x57bf5f('0x2342'),'type':_0x57bf5f('0x2350'),'label':'DASHBOARDS.SELECT_AGENT','customOptions':[{'value':'null','translate':_0x57bf5f('0x1a02')},{'value':undefined,'translate':'DASHBOARDS.ALL'}]},{'name':_0x57bf5f('0x23ba'),'key':_0x57bf5f('0x1d73'),'type':_0x57bf5f('0xe83'),'label':_0x57bf5f('0x9b9'),'options':_0x5b84e4[_0x57bf5f('0x2763')][_0x57bf5f('0x19b2')],'placeholder':_0x57bf5f('0x1f9a')}];}function _0x46c423(){const _0x55a895=_0x6721ca;return[{'name':'Id','column':'id','type':'number'},{'name':_0x55a895('0xf10'),'column':_0x55a895('0xf10'),'type':_0x55a895('0x282b'),'options':{'searchFields':[_0x55a895('0x13a0'),_0x55a895('0xcf3'),'email'],'route':{'model':'cmContact','action':_0x55a895('0xbaa'),'params':{'fields':'id,firstName,lastName,email','Contact':_0x55a895('0xfda'),'nolimit':!![]}},'extraOperators':[_0x55a895('0x512')],'excludedOperators':[_0x55a895('0x27c1')]}},{'name':_0x55a895('0x8a9'),'column':_0x55a895('0x20eb'),'type':_0x55a895('0x25ed'),'options':{'excludedOperators':[_0x55a895('0x23de'),'$ne']}},{'name':'Body','column':_0x55a895('0x4d1'),'type':_0x55a895('0x25ed'),'options':{'excludedOperators':[_0x55a895('0x23de'),_0x55a895('0x27c1')]}},{'name':_0x55a895('0x971'),'column':_0x55a895('0x949'),'type':_0x55a895('0x2350'),'values':[{'id':0x0,'translate':_0x55a895('0x2846')},{'id':0x1,'translate':_0x55a895('0x199')}],'options':{'excludedOperators':[_0x55a895('0x27c1')]}},{'name':_0x55a895('0x701'),'column':_0x55a895('0x24ab'),'type':_0x55a895('0x282b'),'options':{'table':'i','route':{'model':'user','action':_0x55a895('0xbaa'),'params':{'role':_0x55a895('0x18c4'),'fields':_0x55a895('0x919'),'nolimit':!![]}},'searchFields':[_0x55a895('0x27af'),'name'],'extraOperators':[_0x55a895('0x512')],'excludedOperators':[_0x55a895('0x27c1')]}},{'name':_0x55a895('0x806'),'column':'Tag','type':_0x55a895('0xe83'),'options':{'route':{'model':_0x55a895('0x1d73'),'action':_0x55a895('0xbaa'),'params':{'nolimit':!![]}},'excludedOperators':[_0x55a895('0x1239')]}},{'name':_0x55a895('0xa68'),'column':_0x55a895('0x1779'),'type':_0x55a895('0x22f7'),'options':{'excludedOperators':[_0x55a895('0x27c1')]}},{'name':'Read','column':'unreadMessages','type':'select','values':[{'id':0x1,'translate':_0x55a895('0x22a5')},{'id':0x0,'translate':_0x55a895('0x1dd4')}],'options':{'excludedOperators':[_0x55a895('0x27c1')]}}];}function _0x20eb2c(){const _0x40ec49=_0x6721ca;_0x58d948[_0x40ec49('0xb9')]({'controller':_0x40ec49('0x5'),'controllerAs':'vm','templateUrl':_0x19602a,'parent':angular[_0x40ec49('0x1e73')](_0x16986b[_0x40ec49('0x1d2')]),'clickOutsideToClose':![],'locals':{'fields':_0x5b84e4[_0x40ec49('0xd6d')]['fields'],'color':undefined,'storagePath':_0x40ec49('0x1655')},'fullscreen':!![]})[_0x40ec49('0x11bf')](function(_0x3fa15e){const _0x13e3db=_0x40ec49;_0x5b84e4[_0x13e3db('0x1f2a')]['search']=_0x3fa15e===![]?undefined:_0x3fa15e;if(_0x5b84e4[_0x13e3db('0x1f2a')][_0x13e3db('0xce2')])_0x4655e7();else _0x3fa15e===![]&&_0x4655e7();})[_0x40ec49('0x151d')](function(_0x5299d2){const _0x5071da=_0x40ec49;_0x1f4a1['error']({'title':'ERROR','msg':_0x5299d2[_0x5071da('0x4e8')]?JSON[_0x5071da('0x3e')](_0x5299d2[_0x5071da('0x4e8')][_0x5071da('0x1b86')]):_0x5299d2[_0x5071da('0xaab')]()});});}function _0x34c97b(_0x27bb58,_0x5da533,_0x400dbd){const _0x1dc837=_0x6721ca;return _0xf3ff18[_0x1dc837('0x6ed')][_0x1dc837('0x149c')]({'id':_0x27bb58['id'],'exists':!![],'attachments':_0x400dbd})[_0x1dc837('0x1549')][_0x1dc837('0x11bf')](function(_0x53f6ec){const _0x47b675=_0x1dc837,_0x1ecc73=[_0x53f6ec[_0x47b675('0x1e94')]];let _0xf9f629=_0x47b675('0x4e6')+_0x27bb58['id'];const _0x3cd428=new Blob(_0x1ecc73,{'type':_0x53f6ec[_0x47b675('0x19fd')]});_0xf9f629=_0x47b675('0x101c')+_0x27bb58['id']+_0x47b675('0x4a7');const _0xb70b6e=window[_0x47b675('0xb54')][_0x47b675('0x2773')]('a');_0xb70b6e[_0x47b675('0x1e1b')](_0x47b675('0xead'),URL[_0x47b675('0x44b')](_0x3cd428)),_0xb70b6e[_0x47b675('0x1e1b')](_0x47b675('0x149c'),_0xf9f629),document[_0x47b675('0x1d2')][_0x47b675('0x131c')](_0xb70b6e),_0xb70b6e[_0x47b675('0x1371')]();})[_0x1dc837('0x151d')](function(_0x495aa4){const _0x23a96f=_0x1dc837;if(_0x495aa4['data']&&_0x495aa4[_0x23a96f('0x4e8')][_0x23a96f('0x120f')]&&_0x495aa4['data'][_0x23a96f('0x120f')][_0x23a96f('0x1e22')])for(let _0xe4194e=0x0;_0xe4194e<_0x495aa4[_0x23a96f('0x4e8')][_0x23a96f('0x120f')]['length'];_0xe4194e+=0x1){_0x1f4a1['error']({'title':_0x495aa4[_0x23a96f('0x4e8')][_0x23a96f('0x120f')][_0xe4194e][_0x23a96f('0x19fd')],'msg':_0x495aa4[_0x23a96f('0x4e8')][_0x23a96f('0x120f')][_0xe4194e][_0x23a96f('0x1b86')]});}else _0x1f4a1['error']({'title':_0x495aa4['status']?_0x23a96f('0x574')+_0x495aa4['status']+_0x23a96f('0xb0b')+_0x495aa4[_0x23a96f('0x212f')]:_0x23a96f('0x521'),'msg':_0x495aa4[_0x23a96f('0x4e8')]?JSON[_0x23a96f('0x3e')](_0x495aa4[_0x23a96f('0x4e8')][_0x23a96f('0x1b86')]):_0x495aa4[_0x23a96f('0xaab')]()});});}function _0x4557e4(_0x52d99d,_0x10a140){const _0x30f35e=_0x6721ca,_0x179a75=_0x58d948[_0x30f35e('0x132b')]()[_0x30f35e('0x134b')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20interaction?')['htmlContent'](_0x30f35e('0x2061')+(_0x52d99d['name']||_0x52d99d['id']&&_0x36f548()[_0x30f35e('0x24b5')]('interaction\x20#')+_0x52d99d['id']||_0x30f35e('0x4e6'))+_0x30f35e('0x1c78')+_0x30f35e('0x1a'))[_0x30f35e('0xb2e')]('delete\x20interaction')['targetEvent'](_0x10a140)['ok']('OK')['cancel'](_0x30f35e('0x772'));_0x58d948['show'](_0x179a75)[_0x30f35e('0x11bf')](function(){_0x3dbe9e(_0x52d99d);},function(){const _0x42ca29=_0x30f35e;console[_0x42ca29('0xc78')](_0x42ca29('0x772'));});}function _0x489da8(_0x402002){const _0x19620a=_0x6721ca;_0x5b84e4[_0x19620a('0x209c')]=_0x402002||{'count':0x0,'rows':[]};for(let _0x5e5bfb=0x0;_0x5e5bfb<_0x5b84e4[_0x19620a('0x209c')][_0x19620a('0x19b2')][_0x19620a('0x1e22')];_0x5e5bfb+=0x1){const _0x3db6e9=_0x5b84e4[_0x19620a('0x209c')][_0x19620a('0x19b2')][_0x5e5bfb];_0x90568c(_0x3db6e9),_0x3db6e9[_0x19620a('0x657')]['name']=_0x4dff56(_0x3db6e9);}}function _0x4655e7(){const _0x57870b=_0x6721ca;_0x5b84e4[_0x57870b('0x1f2a')][_0x57870b('0x1393')]=(_0x5b84e4[_0x57870b('0x1f2a')]['page']-0x1)*_0x5b84e4['query'][_0x57870b('0xd5c')],_0x5b84e4[_0x57870b('0x13f')]=_0xf3ff18['chatInteraction'][_0x57870b('0xbaa')](_0x5b84e4[_0x57870b('0x1f2a')],_0x489da8)[_0x57870b('0x1549')];}function _0x481ba8(_0x418c77,_0x1958bb){const _0x3e4c23=_0x6721ca;_0x58d948[_0x3e4c23('0xb9')]({'controller':_0x3e4c23('0x15fe'),'controllerAs':'vm','templateUrl':_0x1742d8,'parent':angular['element'](_0x16986b['body']),'targetEvent':_0x418c77,'clickOutsideToClose':!![],'onShowing':function(_0x3b89c8){const _0x38a8af=_0x3e4c23;_0x3b89c8['vm'][_0x38a8af('0x286f')]({'id':0x1,'channel':'chat','interaction':_0x1958bb,'spy':!![]},_0xd7ec78['$parent']['vm'][_0x38a8af('0x23e1')]);}});}function _0x3dbe9e(_0x248dd9){const _0x2e38fe=_0x6721ca;_0xf3ff18[_0x2e38fe('0x6ed')][_0x2e38fe('0x2088')]({'id':_0x248dd9['id']})[_0x2e38fe('0x1549')]['then'](function(){const _0x112aaa=_0x2e38fe;_0x36f548()[_0x112aaa('0x14a5')](_0x5b84e4[_0x112aaa('0x209c')]['rows'],{'id':_0x248dd9['id']}),_0x5b84e4[_0x112aaa('0x209c')][_0x112aaa('0x27d2')]-=0x1,!_0x5b84e4[_0x112aaa('0x209c')][_0x112aaa('0x19b2')][_0x112aaa('0x1e22')]&&_0x4655e7(),_0x1f4a1['success']({'title':_0x112aaa('0xc64'),'msg':_0x248dd9[_0x112aaa('0x1909')]?_0x248dd9[_0x112aaa('0x1909')]+_0x112aaa('0x433'):''});})['catch'](function(_0x5ede7b){const _0x58221d=_0x2e38fe;if(_0x5ede7b[_0x58221d('0x4e8')]&&_0x5ede7b[_0x58221d('0x4e8')][_0x58221d('0x120f')]&&_0x5ede7b[_0x58221d('0x4e8')][_0x58221d('0x120f')][_0x58221d('0x1e22')]){_0x5b84e4['errors']=_0x5ede7b['data'][_0x58221d('0x120f')]||[{'message':_0x5ede7b[_0x58221d('0xaab')](),'type':'SYSTEM:GETchatWebsite'}];for(let _0xe923e7=0x0;_0xe923e7<_0x5ede7b[_0x58221d('0x4e8')][_0x58221d('0x120f')][_0x58221d('0x1e22')];_0xe923e7++){_0x1f4a1[_0x58221d('0x255')]({'title':_0x5ede7b[_0x58221d('0x4e8')][_0x58221d('0x120f')][_0xe923e7][_0x58221d('0x19fd')],'msg':_0x5ede7b[_0x58221d('0x4e8')][_0x58221d('0x120f')][_0xe923e7][_0x58221d('0x1b86')]});}}else _0x1f4a1[_0x58221d('0x255')]({'title':_0x5ede7b[_0x58221d('0xff9')]?'API:'+_0x5ede7b[_0x58221d('0xff9')]+_0x58221d('0xb0b')+_0x5ede7b[_0x58221d('0x212f')]:_0x58221d('0x165c'),'msg':_0x5ede7b[_0x58221d('0x4e8')]?JSON[_0x58221d('0x3e')](_0x5ede7b[_0x58221d('0x4e8')][_0x58221d('0x1b86')]):_0x5ede7b[_0x58221d('0x1b86')]||_0x5ede7b[_0x58221d('0xaab')]()});});}function _0x12b09d(){const _0x4b5c98=_0x6721ca,_0x1306f8=angular['copy'](_0x5b84e4['selectedChatWebsiteInteractions']);return _0x5b84e4[_0x4b5c98('0x544')]=[],_0x1306f8;}function _0x57227b(_0x2369b0){const _0x4bddd9=_0x6721ca,_0x476b8e=_0x58d948['confirm']()[_0x4bddd9('0x134b')](_0x4bddd9('0x1c8d'))['htmlContent'](''+_0x5b84e4['selectedChatWebsiteInteractions'][_0x4bddd9('0x1e22')]+_0x4bddd9('0xac6')+_0x4bddd9('0x1a'))[_0x4bddd9('0xb2e')](_0x4bddd9('0xcbb'))['targetEvent'](_0x2369b0)['ok']('OK')['cancel'](_0x4bddd9('0x772'));_0x58d948['show'](_0x476b8e)['then'](function(){const _0x3a63d3=_0x4bddd9;_0x5b84e4[_0x3a63d3('0x544')]['forEach'](function(_0x3f5f31){_0x3dbe9e(_0x3f5f31);}),_0x5b84e4[_0x3a63d3('0x544')]=[];});}function _0x90568c(_0x14b115){const _0x26cf8e=_0x6721ca;_0x14b115[_0x26cf8e('0xf10')]?_0x14b115[_0x26cf8e('0xca9')]=(_0x14b115[_0x26cf8e('0xf10')][_0x26cf8e('0x13a0')]||'')+'\x20'+(_0x14b115[_0x26cf8e('0xf10')][_0x26cf8e('0xcf3')]||''):_0x14b115[_0x26cf8e('0xca9')]=_0x49dacd[_0x26cf8e('0x10c2')](_0x26cf8e('0x1d85'));}function _0x4dff56(_0x211994){const _0x11b5c2=_0x6721ca;if(_0x211994[_0x11b5c2('0x2342')])return _0x211994['UserId']===_0x5b84e4['currentUser']['id']?_0x49dacd[_0x11b5c2('0x10c2')](_0x11b5c2('0x275d')):_0x211994[_0x11b5c2('0x657')][_0x11b5c2('0x27af')]+'\x20<'+_0x211994[_0x11b5c2('0x657')][_0x11b5c2('0x1a04')]+'>';return _0x49dacd[_0x11b5c2('0x10c2')](_0x11b5c2('0x1a02'));}let _0x81933a=!![],_0x3af5f7=0x1;_0xd7ec78[_0x6721ca('0x2087')](_0x6721ca('0x1d12'),function(_0x1608c0,_0x1d351c){const _0xfc1025=_0x6721ca;_0x81933a?_0x530115(function(){_0x81933a=![];}):(!_0x1d351c&&(_0x3af5f7=_0x5b84e4[_0xfc1025('0x1f2a')][_0xfc1025('0x1c2')]),_0x1608c0!==_0x1d351c&&(_0x5b84e4[_0xfc1025('0x1f2a')]['page']=0x1),!_0x1608c0&&(_0x5b84e4['query'][_0xfc1025('0x1c2')]=_0x3af5f7),_0x4655e7());});}const _0x43c07c=_0x23caed;_0xafd4ea[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x5d8'),_0x21d0f5('0x142d')];function _0xafd4ea(_0x48a69d,_0xb0b7c9){const _0x503e9f=_0x21d0f5,_0x3f25d0=this,_0xcf16ef=0x8,_0xc06347=_0xcf16ef*0x400*0x400;_0x3f25d0['chatWebsite']={},_0x3f25d0[_0x503e9f('0xb25')],_0x3f25d0[_0x503e9f('0x1fad')]={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0xc06347,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x3f25d0[_0x503e9f('0x13b8')]={'flow':{}},_0x3f25d0[_0x503e9f('0x92e')]=![],_0x3f25d0['fileAdded']=_0x437ce2,_0x3f25d0[_0x503e9f('0x1d01')]=_0x42cac7,_0x3f25d0[_0x503e9f('0x272b')]=_0x5d3460,_0x3f25d0['init']=_0x329f77;function _0x329f77(_0x11d740,_0x5d6e70){const _0x3971f2=_0x503e9f;_0x3f25d0['chatWebsite']=angular[_0x3971f2('0x6fb')](_0x11d740),_0x3f25d0[_0x3971f2('0xb25')]=typeof _0x5d6e70!==_0x3971f2('0x13e9')?_0x5d6e70:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x3f25d0[_0x3971f2('0x1fad')][_0x3971f2('0xc7a')]=_0x3971f2('0x1411')['replace'](_0x3971f2('0xa2d'),_0x3f25d0[_0x3971f2('0xb50')]['id']),_0x3f25d0[_0x3971f2('0xb50')][_0x3971f2('0x25e2')]=[];}function _0x437ce2(_0x1dd185){const _0x4b5ac1=_0x503e9f,_0x3d6aa8=[_0x4b5ac1('0x2043'),_0x4b5ac1('0x51d')];if(!_0x36f548()['includes'](_0x3d6aa8,_0x1dd185[_0x4b5ac1('0x115f')]()))return _0xb0b7c9[_0x4b5ac1('0x255')]({'title':_0x4b5ac1('0x782')+_0x1dd185[_0x4b5ac1('0x115f')](),'msg':_0x4b5ac1('0x9bf')+_0x3d6aa8[_0x4b5ac1('0xa04')]()}),![];if(_0x1dd185[_0x4b5ac1('0x12dd')]>_0xc06347)return _0xb0b7c9['error']({'title':'File\x20too\x20big','msg':_0x4b5ac1('0x686')+_0xcf16ef+'MB'}),![];const _0x25c767={'id':_0x1dd185[_0x4b5ac1('0x40b')],'file':_0x1dd185,'type':_0x4b5ac1('0xd9b')};return _0x3f25d0[_0x4b5ac1('0xb50')][_0x4b5ac1('0x25e2')][_0x4b5ac1('0x880')](_0x25c767),!![];}function _0x42cac7(){const _0xa9fdea=_0x503e9f;_0x3f25d0[_0xa9fdea('0x13b8')]['flow'][_0xa9fdea('0x2440')][_0xa9fdea('0x1f61')]={'X-Requested-With':_0xa9fdea('0x19a7'),'Authorization':'Bearer\x20'+_0x48a69d[_0xa9fdea('0xbaa')](_0xa9fdea('0xc2b'))},_0x3f25d0['ngFlow']['flow'][_0xa9fdea('0x1d01')]();}function _0x5d3460(_0xc06852){const _0x3354dc=_0x503e9f;angular[_0x3354dc('0x1f88')](_0x3f25d0[_0x3354dc('0xb50')][_0x3354dc('0x25e2')],function(_0x1f9c51){const _0x28eb18=_0x3354dc;if(_0x1f9c51['id']===_0xc06852[_0x28eb18('0x40b')]){const _0x5a60ea=new FileReader();_0x5a60ea['readAsDataURL'](_0x1f9c51[_0x28eb18('0x2889')][_0x28eb18('0x2889')]),_0x5a60ea[_0x28eb18('0x1403')]=function(_0x1dadb0){const _0xe31f7e=_0x28eb18;_0x1f9c51[_0xe31f7e('0x259e')]=_0x1dadb0[_0xe31f7e('0xc7a')][_0xe31f7e('0x252e')];},_0x1f9c51[_0x28eb18('0x19fd')]=_0x28eb18('0x5b1');}});}}const _0x5b437b=_0xafd4ea,_0x43b3fd=_0x351988['p']+'src/js/modules/main/apps/chat/views/chatWebsites/edit/offlineMessages/dialog.html/dialog.html';_0x5b2163[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x5d8'),_0x21d0f5('0x1b80'),_0x21d0f5('0xcbc'),'$q',_0x21d0f5('0xb6b'),'$timeout',_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),_0x21d0f5('0x142d'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150')];function _0x5b2163(_0x518862,_0x255e56,_0x47d2af,_0x574712,_0x79519f,_0x5cb169,_0x5289ab,_0x4dfdad,_0xe91b90,_0x3e0105,_0x3315cd){const _0x5039d0=_0x21d0f5,_0x261b04=this;_0x261b04[_0x5039d0('0x32a')]=_0x3315cd[_0x5039d0('0x2428')](),_0x261b04['chatWebsite']={},_0x261b04[_0x5039d0('0x15ca')]={'count':0x0,'rows':[]},_0x261b04['selectedChatWebsiteOfflineMessages']=[],_0x261b04[_0x5039d0('0xb25')],_0x261b04[_0x5039d0('0x1f2a')]={'fields':_0x5039d0('0x7a5'),'sort':_0x5039d0('0xb8c'),'limit':0xa,'page':0x1},_0x261b04[_0x5039d0('0x286f')]=_0x5d57b3,_0x261b04[_0x5039d0('0x560')]=_0x3202b6,_0x261b04[_0x5039d0('0x2693')]=_0x50a03d,_0x261b04[_0x5039d0('0x1b90')]=_0xb1325d,_0x261b04['createOrEditChatWebsiteOfflineMessage']=_0x3f5aeb,_0x261b04[_0x5039d0('0x22ff')]=_0x50430e,_0x261b04[_0x5039d0('0x2048')]=_0x14cc4a,_0x261b04['deleteChatWebsiteOfflineMessage']=_0x40969c,_0x261b04[_0x5039d0('0x1a63')]=_0xa7b438;function _0x5d57b3(_0x4598d2,_0x4badc6){const _0x5610df=_0x5039d0;_0x261b04[_0x5610df('0xb50')]=_0x4598d2,_0x261b04[_0x5610df('0xb25')]=typeof _0x4badc6!==_0x5610df('0x13e9')?_0x4badc6:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x261b04[_0x5610df('0x1f2a')]['id']=_0x261b04[_0x5610df('0xb50')]['id'],_0xb1325d();}function _0x3202b6(_0x12a349,_0x1770ff){const _0x816877=_0x5039d0,_0x5c5941=_0x5289ab['confirm']()[_0x816877('0x134b')](_0x816877('0x25c7'))[_0x816877('0x1d03')](_0x816877('0x2061')+(_0x12a349['name']||_0x12a349['id']&&_0x36f548()[_0x816877('0x24b5')](_0x816877('0x209f'))+_0x12a349['id']||_0x816877('0x1293'))+_0x816877('0x1c78')+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x816877('0x207'))[_0x816877('0x1e25')](_0x1770ff)['ok']('OK')[_0x816877('0x26c9')]('CANCEL');_0x5289ab[_0x816877('0xb9')](_0x5c5941)[_0x816877('0x11bf')](function(){_0x40969c(_0x12a349);},function(){const _0x3e710c=_0x816877;console[_0x3e710c('0xc78')](_0x3e710c('0x772'));});}function _0x50a03d(_0x10f980){_0x261b04['chatWebsiteOfflineMessages']=_0x10f980||{'count':0x0,'rows':[]};}function _0xb1325d(){const _0x45c1a5=_0x5039d0;_0x261b04[_0x45c1a5('0x1f2a')][_0x45c1a5('0x1393')]=(_0x261b04['query'][_0x45c1a5('0x1c2')]-0x1)*_0x261b04[_0x45c1a5('0x1f2a')][_0x45c1a5('0xd5c')],_0x261b04['promise']=_0x3e0105[_0x45c1a5('0xb50')]['getOfflineMessages'](_0x261b04[_0x45c1a5('0x1f2a')],_0x50a03d)[_0x45c1a5('0x1549')];}function _0x3f5aeb(_0x38aaeb,_0x9f035d){const _0x13534c=_0x5039d0;_0x5289ab[_0x13534c('0xb9')]({'controller':'CreateOrEditOfflineMessageDialogController','controllerAs':'vm','templateUrl':_0x43b3fd,'parent':angular[_0x13534c('0x1e73')](_0x4dfdad['body']),'targetEvent':_0x38aaeb,'clickOutsideToClose':!![],'locals':{'chatWebsite':_0x261b04[_0x13534c('0xb50')],'offlineMessage':_0x9f035d,'offlineMessages':_0x261b04['chatWebsiteOfflineMessages']['rows'],'license':null,'setting':null,'crudPermissions':_0x261b04['crudPermissions']}});}function _0x50430e(_0x4a726e,_0x5061c9){const _0x4da0eb=_0x5039d0;_0x5289ab[_0x4da0eb('0xb9')]({'controller':'ShowOfflineMessageOfflineMessageDialogController','controllerAs':'vm','templateUrl':_0x43b3fd,'parent':angular[_0x4da0eb('0x1e73')](_0x4dfdad[_0x4da0eb('0x1d2')]),'targetEvent':_0x4a726e,'clickOutsideToClose':!![],'resolve':{'message':[_0x4da0eb('0x218e'),function(_0x5204be){const _0x28bd72=_0x4da0eb;return _0x5204be[_0x28bd72('0xa28')](_0x28bd72('0x1c93'),{'fields':_0x28bd72('0xc95'),'id':_0x5061c9['id']});}]}});}function _0x40969c(_0x487e64){const _0x11ab7f=_0x5039d0;_0x3e0105[_0x11ab7f('0x180f')]['delete']({'id':_0x487e64['id']})[_0x11ab7f('0x1549')][_0x11ab7f('0x11bf')](function(){const _0xc2e508=_0x11ab7f;_0x36f548()[_0xc2e508('0x14a5')](_0x261b04['chatWebsiteOfflineMessages'][_0xc2e508('0x19b2')],{'id':_0x487e64['id']}),_0x261b04['chatWebsiteOfflineMessages'][_0xc2e508('0x27d2')]-=0x1,!_0x261b04['chatWebsiteOfflineMessages'][_0xc2e508('0x19b2')][_0xc2e508('0x1e22')]&&_0xb1325d(),_0xe91b90[_0xc2e508('0x2693')]({'title':_0xc2e508('0x1657'),'msg':_0x487e64[_0xc2e508('0x1909')]?_0x487e64[_0xc2e508('0x1909')]+_0xc2e508('0x433'):''});})[_0x11ab7f('0x151d')](function(_0x1801da){const _0x371caa=_0x11ab7f;if(_0x1801da[_0x371caa('0x4e8')]&&_0x1801da[_0x371caa('0x4e8')]['errors']&&_0x1801da['data'][_0x371caa('0x120f')][_0x371caa('0x1e22')]){_0x261b04[_0x371caa('0x120f')]=_0x1801da['data']['errors']||[{'message':_0x1801da[_0x371caa('0xaab')](),'type':_0x371caa('0x165c')}];for(let _0x19e61d=0x0;_0x19e61d<_0x1801da[_0x371caa('0x4e8')][_0x371caa('0x120f')][_0x371caa('0x1e22')];_0x19e61d++){_0xe91b90[_0x371caa('0x255')]({'title':_0x1801da['data'][_0x371caa('0x120f')][_0x19e61d][_0x371caa('0x19fd')],'msg':_0x1801da[_0x371caa('0x4e8')]['errors'][_0x19e61d][_0x371caa('0x1b86')]});}}else _0xe91b90[_0x371caa('0x255')]({'title':_0x1801da[_0x371caa('0xff9')]?_0x371caa('0x574')+_0x1801da['status']+_0x371caa('0xb0b')+_0x1801da[_0x371caa('0x212f')]:_0x371caa('0x165c'),'msg':_0x1801da[_0x371caa('0x4e8')]?JSON[_0x371caa('0x3e')](_0x1801da[_0x371caa('0x4e8')][_0x371caa('0x1b86')]):_0x1801da[_0x371caa('0x1b86')]||_0x1801da['toString']()});});}function _0x14cc4a(){const _0x47e175=_0x5039d0,_0xa0fa79=angular[_0x47e175('0x6fb')](_0x261b04[_0x47e175('0x6a6')]);return _0x261b04['selectedChatWebsiteOfflineMessages']=[],_0xa0fa79;}function _0xa7b438(_0x6f54a0){const _0x56c0d4=_0x5039d0,_0x37a8f4=_0x5289ab[_0x56c0d4('0x132b')]()[_0x56c0d4('0x134b')](_0x56c0d4('0x2772'))[_0x56c0d4('0x1d03')](''+_0x261b04[_0x56c0d4('0x6a6')][_0x56c0d4('0x1e22')]+_0x56c0d4('0xac6')+_0x56c0d4('0x1a'))[_0x56c0d4('0xb2e')](_0x56c0d4('0x1103'))['targetEvent'](_0x6f54a0)['ok']('OK')[_0x56c0d4('0x26c9')](_0x56c0d4('0x772'));_0x5289ab['show'](_0x37a8f4)['then'](function(){const _0x224471=_0x56c0d4;_0x261b04[_0x224471('0x6a6')]['forEach'](function(_0x2b9928){_0x40969c(_0x2b9928);}),_0x261b04[_0x224471('0x6a6')]=[];});}let _0x20ecb5=!![],_0x1d4124=0x1;_0x255e56['$watch'](_0x5039d0('0x1d12'),function(_0x24f350,_0x32a0ea){const _0xd549c8=_0x5039d0;_0x20ecb5?_0x5cb169(function(){_0x20ecb5=![];}):(!_0x32a0ea&&(_0x1d4124=_0x261b04[_0xd549c8('0x1f2a')][_0xd549c8('0x1c2')]),_0x24f350!==_0x32a0ea&&(_0x261b04[_0xd549c8('0x1f2a')][_0xd549c8('0x1c2')]=0x1),!_0x24f350&&(_0x261b04[_0xd549c8('0x1f2a')][_0xd549c8('0x1c2')]=_0x1d4124),_0xb1325d());});}const _0xf14cf7=_0x5b2163;_0x532d2a[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b86')];function _0x532d2a(_0x3a9e32,_0x8d3bcc){const _0x41d538=_0x21d0f5,_0x3e4359=this;_0x3e4359[_0x41d538('0x134b')]=_0x41d538('0x20e4'),_0x3e4359[_0x41d538('0x1b86')]=_0x8d3bcc,_0x3e4359[_0x41d538('0xc4e')]=_0x4f3cb4;function _0x4f3cb4(_0xff5141){const _0x40220d=_0x41d538;_0x3a9e32[_0x40220d('0x237e')](_0xff5141);}}const _0x32d1c5=_0x532d2a,_0x14cc98=_0x351988['p']+'src/js/modules/main/apps/chat/views/chatWebsites/edit/proactive/dialog.html/dialog.html';_0xfed4e7[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x5d8'),_0x21d0f5('0x1b80'),'$state','$q',_0x21d0f5('0xb6b'),'$timeout',_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),_0x21d0f5('0x142d'),_0x21d0f5('0x12a5'),'Auth'];function _0xfed4e7(_0x5ede0d,_0x44916e,_0x673868,_0x3c49f1,_0x13d6f7,_0xba0bee,_0x1cbb88,_0x22a274,_0x4d050f,_0x3330d9,_0x39059e){const _0x5185f5=_0x21d0f5,_0x5c0d28=this;_0x5c0d28[_0x5185f5('0x32a')]=_0x39059e[_0x5185f5('0x2428')](),_0x5c0d28['chatWebsite']={},_0x5c0d28['chatWebsiteProactiveActions']={'count':0x0,'rows':[]},_0x5c0d28[_0x5185f5('0x1b51')]=[],_0x5c0d28[_0x5185f5('0xb25')],_0x5c0d28[_0x5185f5('0x1f2a')]={'fields':_0x5185f5('0x2300'),'limit':0xa,'page':0x1},_0x5c0d28[_0x5185f5('0x5fd')]=_0x36f548()[_0x5185f5('0x2130')]([{'option':_0x5185f5('0x105'),'value':_0x5185f5('0x16be')},{'option':'Timeout','value':_0x5185f5('0x27b6')}],function(_0x2301c9){const _0x1f4083=_0x5185f5;return _0x36f548()[_0x1f4083('0x814')](_0x2301c9[_0x1f4083('0x10cc')],new RegExp('\x27','g'),'');}),_0x5c0d28[_0x5185f5('0x286f')]=_0x29c7c4,_0x5c0d28[_0x5185f5('0x560')]=_0x20349e,_0x5c0d28[_0x5185f5('0x2693')]=_0x533f40,_0x5c0d28[_0x5185f5('0x5ef')]=_0x2bef76,_0x5c0d28[_0x5185f5('0x514')]=_0x40e205,_0x5c0d28[_0x5185f5('0x12d')]=_0x55157c,_0x5c0d28[_0x5185f5('0x9a5')]=_0x288fb1,_0x5c0d28[_0x5185f5('0x235')]=_0x1c87a8;function _0x29c7c4(_0x2d8b00,_0x3499b8){const _0x1370c6=_0x5185f5;_0x5c0d28[_0x1370c6('0xb50')]=_0x2d8b00,_0x5c0d28[_0x1370c6('0xb25')]=typeof _0x3499b8!==_0x1370c6('0x13e9')?_0x3499b8:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x5c0d28[_0x1370c6('0x1f2a')][_0x1370c6('0x2346')]=_0x5c0d28['chatWebsite']['id'],_0x5c0d28[_0x1370c6('0x1f2a')]['id']=_0x5c0d28[_0x1370c6('0xb50')]['id'],_0x2bef76();}function _0x20349e(_0x3305c3,_0x27cfad){const _0x3e2717=_0x5185f5,_0x454613=_0x1cbb88[_0x3e2717('0x132b')]()['title'](_0x3e2717('0x27c6'))[_0x3e2717('0x1d03')](_0x3e2717('0x2061')+(_0x3305c3[_0x3e2717('0x1909')]||_0x3305c3['id']&&_0x36f548()[_0x3e2717('0x24b5')](_0x3e2717('0x22f4'))+_0x3305c3['id']||_0x3e2717('0x1082'))+_0x3e2717('0x1c78')+_0x3e2717('0x1a'))['ariaLabel'](_0x3e2717('0x10c0'))[_0x3e2717('0x1e25')](_0x27cfad)['ok']('OK')[_0x3e2717('0x26c9')](_0x3e2717('0x772'));_0x1cbb88['show'](_0x454613)[_0x3e2717('0x11bf')](function(){_0x288fb1(_0x3305c3);},function(){const _0x5981fd=_0x3e2717;console[_0x5981fd('0xc78')](_0x5981fd('0x772'));});}function _0x533f40(_0x46c037){_0x5c0d28['chatWebsiteProactiveActions']=_0x46c037||{'count':0x0,'rows':[]};}function _0x2bef76(){const _0x1a56c1=_0x5185f5;_0x5c0d28[_0x1a56c1('0x1f2a')][_0x1a56c1('0x1393')]=(_0x5c0d28[_0x1a56c1('0x1f2a')]['page']-0x1)*_0x5c0d28[_0x1a56c1('0x1f2a')]['limit'],_0x5c0d28[_0x1a56c1('0x13f')]=_0x3330d9[_0x1a56c1('0xb50')][_0x1a56c1('0xa2e')](_0x5c0d28[_0x1a56c1('0x1f2a')],_0x533f40)['$promise'];}function _0x40e205(_0x1b71da,_0x2f1644){const _0x473dee=_0x5185f5;_0x1cbb88['show']({'controller':_0x473dee('0x212a'),'controllerAs':'vm','templateUrl':_0x14cc98,'parent':angular[_0x473dee('0x1e73')](_0x22a274[_0x473dee('0x1d2')]),'targetEvent':_0x1b71da,'clickOutsideToClose':!![],'locals':{'chatWebsite':_0x5c0d28[_0x473dee('0xb50')],'chatProactiveAction':_0x2f1644,'proactive':_0x5c0d28[_0x473dee('0x218b')]['rows'],'license':null,'setting':null,'crudPermissions':_0x5c0d28['crudPermissions']}});}function _0x288fb1(_0x4a0e29){const _0x155bcb=_0x5185f5;_0x3330d9[_0x155bcb('0x1082')][_0x155bcb('0x2088')]({'id':_0x4a0e29['id']})['$promise'][_0x155bcb('0x11bf')](function(){const _0x3e2797=_0x155bcb;_0x36f548()[_0x3e2797('0x14a5')](_0x5c0d28[_0x3e2797('0x218b')][_0x3e2797('0x19b2')],{'id':_0x4a0e29['id']}),_0x5c0d28[_0x3e2797('0x218b')][_0x3e2797('0x27d2')]-=0x1,!_0x5c0d28['chatWebsiteProactiveActions'][_0x3e2797('0x19b2')][_0x3e2797('0x1e22')]&&_0x2bef76(),_0x4d050f[_0x3e2797('0x2693')]({'title':_0x3e2797('0xcce'),'msg':_0x4a0e29['name']?_0x4a0e29[_0x3e2797('0x1909')]+'\x20has\x20been\x20deleted!':''});})[_0x155bcb('0x151d')](function(_0x4acd8f){const _0x57024c=_0x155bcb;if(_0x4acd8f[_0x57024c('0x4e8')]&&_0x4acd8f[_0x57024c('0x4e8')]['errors']&&_0x4acd8f['data'][_0x57024c('0x120f')][_0x57024c('0x1e22')]){_0x5c0d28[_0x57024c('0x120f')]=_0x4acd8f[_0x57024c('0x4e8')][_0x57024c('0x120f')]||[{'message':_0x4acd8f[_0x57024c('0xaab')](),'type':_0x57024c('0x165c')}];for(let _0x13dcaf=0x0;_0x13dcaf<_0x4acd8f[_0x57024c('0x4e8')][_0x57024c('0x120f')]['length'];_0x13dcaf++){_0x4d050f[_0x57024c('0x255')]({'title':_0x4acd8f[_0x57024c('0x4e8')][_0x57024c('0x120f')][_0x13dcaf][_0x57024c('0x19fd')],'msg':_0x4acd8f[_0x57024c('0x4e8')]['errors'][_0x13dcaf][_0x57024c('0x1b86')]});}}else _0x4d050f[_0x57024c('0x255')]({'title':_0x4acd8f[_0x57024c('0xff9')]?'API:'+_0x4acd8f['status']+_0x57024c('0xb0b')+_0x4acd8f[_0x57024c('0x212f')]:_0x57024c('0x165c'),'msg':_0x4acd8f[_0x57024c('0x4e8')]?JSON[_0x57024c('0x3e')](_0x4acd8f[_0x57024c('0x4e8')]['message']):_0x4acd8f[_0x57024c('0x1b86')]||_0x4acd8f[_0x57024c('0xaab')]()});});}function _0x55157c(){const _0x51020a=_0x5185f5,_0x55c226=angular[_0x51020a('0x6fb')](_0x5c0d28['selectedChatWebsiteProactiveActions']);return _0x5c0d28[_0x51020a('0x1b51')]=[],_0x55c226;}function _0x1c87a8(_0x641f1c){const _0x201414=_0x5185f5,_0x3e98e5=_0x1cbb88[_0x201414('0x132b')]()['title'](_0x201414('0x26c3'))[_0x201414('0x1d03')](_0x201414('0x2061')+_0x5c0d28[_0x201414('0x1b51')][_0x201414('0x1e22')]+'\x20selected'+'\x20will\x20be\x20deleted.')[_0x201414('0xb2e')](_0x201414('0x18ec'))[_0x201414('0x1e25')](_0x641f1c)['ok']('OK')[_0x201414('0x26c9')]('CANCEL');_0x1cbb88[_0x201414('0xb9')](_0x3e98e5)['then'](function(){const _0x123375=_0x201414;_0x5c0d28[_0x123375('0x1b51')][_0x123375('0x1f88')](function(_0x5ed23d){_0x288fb1(_0x5ed23d);}),_0x5c0d28[_0x123375('0x1b51')]=[];});}let _0x6877ef=!![],_0x45178d=0x1;_0x44916e['$watch'](_0x5185f5('0x1d12'),function(_0x37c070,_0x2c61f7){const _0x21a400=_0x5185f5;_0x6877ef?_0xba0bee(function(){_0x6877ef=![];}):(!_0x2c61f7&&(_0x45178d=_0x5c0d28[_0x21a400('0x1f2a')]['page']),_0x37c070!==_0x2c61f7&&(_0x5c0d28[_0x21a400('0x1f2a')]['page']=0x1),!_0x37c070&&(_0x5c0d28[_0x21a400('0x1f2a')]['page']=_0x45178d),_0x2bef76());});}const _0x53fac3=_0xfed4e7;_0x4ff991['$inject']=[_0x21d0f5('0x1b80'),_0x21d0f5('0xcbc'),_0x21d0f5('0x16b9'),_0x21d0f5('0x1ca2'),'$q','$translate',_0x21d0f5('0x142d'),_0x21d0f5('0x566'),_0x21d0f5('0x1082'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),'license',_0x21d0f5('0x23e1'),_0x21d0f5('0xb25')];function _0x4ff991(_0x313477,_0x21a57b,_0x2f0d6d,_0x248d43,_0x118d2b,_0x337a07,_0x4e26b7,_0x5233bf,_0x36d9d2,_0x56f072,_0x47598b,_0x3487d9,_0x529486,_0x2a5af3){const _0x450b7f=_0x21d0f5,_0xa1119=this;_0xa1119[_0x450b7f('0x32a')]=_0x47598b[_0x450b7f('0x2428')](),_0xa1119[_0x450b7f('0x120f')]=[],_0xa1119['setting']=_0x529486,_0xa1119['license']=_0x3487d9,_0xa1119['crudPermissions']=_0x2a5af3,_0xa1119[_0x450b7f('0x2c9')]={},_0xa1119[_0x450b7f('0x2834')]=_0xa1119[_0x450b7f('0x23e1')]&&_0xa1119[_0x450b7f('0x23e1')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0xa1119[_0x450b7f('0x134b')]='CHAT.EDIT_CHATPROACTIVEACTION',_0xa1119['chatProactiveAction']=angular[_0x450b7f('0x6fb')](_0x36d9d2),_0xa1119['proactive']=_0x5233bf,_0xa1119[_0x450b7f('0x1106')]=![];!_0xa1119[_0x450b7f('0x1082')]&&(_0xa1119[_0x450b7f('0x1082')]={'type':_0x450b7f('0x27ad')},_0xa1119['title']='CHAT.NEW_CHATPROACTIVEACTION',_0xa1119[_0x450b7f('0x1106')]=!![]);_0x21a57b[_0x450b7f('0x1ab3')]['id']&&(_0xa1119[_0x450b7f('0x1082')]['ChatWebsiteId']=_0x21a57b[_0x450b7f('0x1ab3')]['id']);_0xa1119[_0x450b7f('0x1d18')]=_0x21a4ea,_0xa1119['saveChatProactiveAction']=_0x3fc14c,_0xa1119[_0x450b7f('0x25f8')]=_0x19674c,_0xa1119[_0x450b7f('0x1bd1')]=_0x3b866d,_0xa1119['closeDialog']=_0x3df317;function _0x21a4ea(){const _0x16ca21=_0x450b7f;_0xa1119[_0x16ca21('0x120f')]=[],_0x56f072[_0x16ca21('0x1082')][_0x16ca21('0x259')](_0xa1119[_0x16ca21('0x1082')])[_0x16ca21('0x1549')][_0x16ca21('0x11bf')](function(_0x1f5bed){const _0x2337cb=_0x16ca21;_0xa1119[_0x2337cb('0x566')][_0x2337cb('0x880')](_0x1f5bed[_0x2337cb('0x2866')]()),_0x4e26b7[_0x2337cb('0x2693')]({'title':'ChatProactiveAction\x20properly\x20created','msg':_0xa1119['chatProactiveAction'][_0x2337cb('0x1909')]?_0xa1119[_0x2337cb('0x1082')][_0x2337cb('0x1909')]+_0x2337cb('0x7fb'):''}),_0x3df317(_0x1f5bed);})[_0x16ca21('0x151d')](function(_0x4c001c){const _0x55206d=_0x16ca21;if(_0x4c001c[_0x55206d('0x4e8')]&&_0x4c001c[_0x55206d('0x4e8')][_0x55206d('0x120f')]&&_0x4c001c[_0x55206d('0x4e8')][_0x55206d('0x120f')]['length']){_0xa1119[_0x55206d('0x120f')]=_0x4c001c[_0x55206d('0x4e8')][_0x55206d('0x120f')]||[{'message':_0x4c001c[_0x55206d('0xaab')](),'type':_0x55206d('0xeb')}];for(let _0x1e1f60=0x0;_0x1e1f60<_0x4c001c['data'][_0x55206d('0x120f')][_0x55206d('0x1e22')];_0x1e1f60+=0x1){_0x4e26b7[_0x55206d('0x255')]({'title':_0x4c001c[_0x55206d('0x4e8')][_0x55206d('0x120f')][_0x1e1f60][_0x55206d('0x19fd')],'msg':_0x4c001c[_0x55206d('0x4e8')]['errors'][_0x1e1f60][_0x55206d('0x1b86')]});}}else _0x4e26b7[_0x55206d('0x255')]({'title':_0x4c001c[_0x55206d('0xff9')]?_0x55206d('0x574')+_0x4c001c[_0x55206d('0xff9')]+_0x55206d('0xb0b')+_0x4c001c[_0x55206d('0x212f')]:_0x55206d('0xeb'),'msg':_0x4c001c[_0x55206d('0x4e8')]?JSON['stringify'](_0x4c001c[_0x55206d('0x4e8')]['message']):_0x4c001c['toString']()});});}function _0x3fc14c(){const _0xd327d6=_0x450b7f;_0xa1119[_0xd327d6('0x120f')]=[],_0x56f072[_0xd327d6('0x1082')][_0xd327d6('0x5ab')]({'id':_0xa1119['chatProactiveAction']['id']},_0xa1119[_0xd327d6('0x1082')])[_0xd327d6('0x1549')][_0xd327d6('0x11bf')](function(_0x132d91){const _0xb4f2aa=_0xd327d6,_0x1590e4=_0x36f548()[_0xb4f2aa('0x1ad4')](_0xa1119['proactive'],{'id':_0x132d91['id']});_0x1590e4&&_0x36f548()['merge'](_0x1590e4,_0x36f548()['pick'](_0x132d91[_0xb4f2aa('0x2866')](),_0x36f548()[_0xb4f2aa('0xe22')](_0x1590e4))),_0x4e26b7['success']({'title':_0xb4f2aa('0x1f7a'),'msg':_0xa1119[_0xb4f2aa('0x1082')][_0xb4f2aa('0x1909')]?_0xa1119[_0xb4f2aa('0x1082')][_0xb4f2aa('0x1909')]+'\x20has\x20been\x20saved!':''}),_0x3df317(_0x132d91);})['catch'](function(_0x1f32e9){const _0x3642c6=_0xd327d6;if(_0x1f32e9[_0x3642c6('0x4e8')]&&_0x1f32e9[_0x3642c6('0x4e8')][_0x3642c6('0x120f')]&&_0x1f32e9[_0x3642c6('0x4e8')][_0x3642c6('0x120f')]['length']){_0xa1119['errors']=_0x1f32e9[_0x3642c6('0x4e8')][_0x3642c6('0x120f')]||[{'message':_0x1f32e9[_0x3642c6('0xaab')](),'type':_0x3642c6('0x10cb')}];for(let _0x36b89e=0x0;_0x36b89e<_0x1f32e9[_0x3642c6('0x4e8')][_0x3642c6('0x120f')]['length'];_0x36b89e++){_0x4e26b7[_0x3642c6('0x255')]({'title':_0x1f32e9[_0x3642c6('0x4e8')][_0x3642c6('0x120f')][_0x36b89e][_0x3642c6('0x19fd')],'msg':_0x1f32e9[_0x3642c6('0x4e8')][_0x3642c6('0x120f')][_0x36b89e][_0x3642c6('0x1b86')]});}}else _0x4e26b7['error']({'title':_0x1f32e9[_0x3642c6('0xff9')]?_0x3642c6('0x574')+_0x1f32e9['status']+_0x3642c6('0xb0b')+_0x1f32e9['statusText']:_0x3642c6('0x10cb'),'msg':_0x1f32e9[_0x3642c6('0x4e8')]?JSON[_0x3642c6('0x3e')](_0x1f32e9['data'][_0x3642c6('0x1b86')]):_0x1f32e9[_0x3642c6('0xaab')]()});});}function _0x19674c(_0x383362){const _0x57f323=_0x450b7f;_0xa1119[_0x57f323('0x120f')]=[];const _0x48b990=_0x248d43[_0x57f323('0x132b')]()['title'](_0x57f323('0x1fa9'))[_0x57f323('0x252a')](_0x57f323('0x2fd'))['ariaLabel'](_0x57f323('0x1194'))['ok'](_0x57f323('0x1167'))[_0x57f323('0x26c9')](_0x57f323('0x784'))['targetEvent'](_0x383362);_0x248d43[_0x57f323('0xb9')](_0x48b990)[_0x57f323('0x11bf')](function(){const _0xc28901=_0x57f323;_0x56f072[_0xc28901('0x1082')][_0xc28901('0x2088')]({'id':_0xa1119[_0xc28901('0x1082')]['id']})[_0xc28901('0x1549')][_0xc28901('0x11bf')](function(){const _0x3c26e3=_0xc28901;_0x36f548()[_0x3c26e3('0x14a5')](_0xa1119[_0x3c26e3('0x566')],{'id':_0xa1119[_0x3c26e3('0x1082')]['id']}),_0x4e26b7[_0x3c26e3('0x2693')]({'title':_0x3c26e3('0xee5'),'msg':(_0xa1119[_0x3c26e3('0x1082')][_0x3c26e3('0x1909')]||'chatProactiveAction')+_0x3c26e3('0x433')}),_0x3df317(_0xa1119[_0x3c26e3('0x1082')]);})[_0xc28901('0x151d')](function(_0x47507b){const _0x3bc83c=_0xc28901;if(_0x47507b[_0x3bc83c('0x4e8')]&&_0x47507b[_0x3bc83c('0x4e8')][_0x3bc83c('0x120f')]&&_0x47507b['data'][_0x3bc83c('0x120f')]['length']){_0xa1119['errors']=_0x47507b[_0x3bc83c('0x4e8')][_0x3bc83c('0x120f')]||[{'message':_0x47507b[_0x3bc83c('0xaab')](),'type':_0x3bc83c('0x251e')}];for(let _0x51732f=0x0;_0x51732f<_0x47507b[_0x3bc83c('0x4e8')][_0x3bc83c('0x120f')][_0x3bc83c('0x1e22')];_0x51732f++){_0x4e26b7['error']({'title':_0x47507b['data']['errors'][_0x51732f][_0x3bc83c('0x19fd')],'msg':_0x47507b['data'][_0x3bc83c('0x120f')][_0x51732f]['message']});}}else _0x4e26b7[_0x3bc83c('0x255')]({'title':_0x47507b[_0x3bc83c('0xff9')]?_0x3bc83c('0x574')+_0x47507b['status']+_0x3bc83c('0xb0b')+_0x47507b[_0x3bc83c('0x212f')]:_0x3bc83c('0x251e'),'msg':_0x47507b[_0x3bc83c('0x4e8')]?JSON['stringify'](_0x47507b[_0x3bc83c('0x4e8')][_0x3bc83c('0x1b86')]):_0x47507b[_0x3bc83c('0x1b86')]||_0x47507b['toString']()});});},function(){});}function _0x3b866d(_0x42ffa2){return _0x42ffa2===null?undefined:new Date(_0x42ffa2);}function _0x3df317(_0x27c171){const _0x3b9da7=_0x450b7f;_0x248d43[_0x3b9da7('0x237e')](_0x27c171);}}const _0x12a70d=_0x4ff991;_0x2b4039[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80')];function _0x2b4039(_0xd6dd84){const _0x3f30ae=_0x21d0f5,_0x4ffc8b=this;_0x4ffc8b[_0x3f30ae('0xb50')]={},_0x4ffc8b[_0x3f30ae('0x286f')]=_0x4ade12,_0x4ffc8b[_0x3f30ae('0x870')]={};function _0x4ade12(_0x18e4ee){const _0x5d0224=_0x3f30ae;_0x4ffc8b['chatWebsite']=_0x18e4ee,_0x4ffc8b['start']=_0x5d0224('0xa97'),_0x4ffc8b[_0x5d0224('0x1a21')]='\x0a\x20\x20\x20\x20_0x31fbdc)return _0x302a66['error']({'title':_0x5bafdc('0xc56'),'msg':'The\x20max\x20allowed\x20size\x20is\x20'+_0x3337d5+'MB'}),![];const _0x49254a={'id':_0x310796[_0x5bafdc('0x40b')],'file':_0x310796,'type':_0x5bafdc('0xd9b')};return _0x48e4b6['chatWebsite'][_0x5bafdc('0x25e2')][_0x5bafdc('0x880')](_0x49254a),!![];}function _0x500a3f(){const _0x4816c2=_0x28461d;_0x48e4b6[_0x4816c2('0x13b8')]['flow']['opts'][_0x4816c2('0x1f61')]={'X-Requested-With':_0x4816c2('0x19a7'),'Authorization':'Bearer\x20'+_0x50c642[_0x4816c2('0xbaa')]('motion.token')},_0x48e4b6[_0x4816c2('0x13b8')][_0x4816c2('0x2414')]['upload']();}function _0x42ccd5(_0x150422){const _0xd365ca=_0x28461d;angular[_0xd365ca('0x1f88')](_0x48e4b6['chatWebsite']['images'],function(_0x391c11){const _0x3acf7b=_0xd365ca;if(_0x391c11['id']===_0x150422[_0x3acf7b('0x40b')]){const _0x2754e0=new FileReader();_0x2754e0[_0x3acf7b('0x26dd')](_0x391c11[_0x3acf7b('0x2889')][_0x3acf7b('0x2889')]),_0x2754e0[_0x3acf7b('0x1403')]=function(_0x29195b){const _0x4e2b33=_0x3acf7b;_0x391c11[_0x4e2b33('0x259e')]=_0x29195b[_0x4e2b33('0xc7a')]['result'];},_0x391c11[_0x3acf7b('0x19fd')]='image';}});}}const _0x50560a=_0x527954;_0x9d0f7e['$inject']=['$state',_0x21d0f5('0x16b9'),'$mdDialog',_0x21d0f5('0x1b30'),_0x21d0f5('0xb6b'),_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1'),'api',_0x21d0f5('0x142d'),_0x21d0f5('0x1150'),_0x21d0f5('0xb50'),'userProfileSection'];function _0x9d0f7e(_0x530858,_0x31ea72,_0x39f688,_0x270baa,_0x1b6ce9,_0x3769e2,_0x5502e5,_0x3305fc,_0x4fc54a,_0xbc5112,_0x198a1a,_0x5d8bbd){const _0x3f25e1=_0x21d0f5,_0x57b70f=this;_0x57b70f[_0x3f25e1('0x32a')]=_0xbc5112['getCurrentUser'](),_0x57b70f[_0x3f25e1('0x17ff')]=_0x3769e2,_0x57b70f[_0x3f25e1('0x23e1')]=_0x5502e5,_0x57b70f['passwordPattern']=_0x57b70f[_0x3f25e1('0x23e1')][_0x3f25e1('0x1d4')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x57b70f['location']=_0x31ea72[_0x3f25e1('0x1797')]()+'://'+_0x31ea72[_0x3f25e1('0x14ec')](),_0x57b70f[_0x3f25e1('0xb50')]=_0x198a1a||_0x530858[_0x3f25e1('0x1ab3')][_0x3f25e1('0xb50')]||{},_0x57b70f[_0x3f25e1('0x1d63')]=_0x5d8bbd&&_0x5d8bbd[_0x3f25e1('0x27d2')]==0x1?_0x5d8bbd[_0x3f25e1('0x19b2')][0x0]:null,_0x57b70f[_0x3f25e1('0xb25')]=_0xbc5112[_0x3f25e1('0x1530')](_0x57b70f[_0x3f25e1('0x1d63')]?_0x57b70f[_0x3f25e1('0x1d63')]['crudPermissions']:null),_0x57b70f[_0x3f25e1('0x2c9')]={},_0x57b70f[_0x3f25e1('0x1179')]=_0x530858[_0x3f25e1('0x1ab3')][_0x3f25e1('0x205c')]||0x0,_0x57b70f[_0x3f25e1('0x2363')]=_0x541e6b,_0x57b70f[_0x3f25e1('0xb30')]=_0x4fc54a[_0x3f25e1('0x870')],_0x57b70f[_0x3f25e1('0x12b0')]=_0x2944c7,_0x57b70f['saveChatWebsite']=_0x2805a3,_0xbc5112['hasRole']('admin')?_0x3305fc[_0x3f25e1('0xbef')]['get']({'fields':_0x3f25e1('0x721'),'sort':_0x3f25e1('0x1909')})[_0x3f25e1('0x1549')]['then'](function(_0x2b15c8){const _0x52f8df=_0x3f25e1;_0x57b70f[_0x52f8df('0x2410')]=_0x2b15c8[_0x52f8df('0x19b2')]||[];})[_0x3f25e1('0x151d')](function(_0x14b167){const _0x5ea013=_0x3f25e1;_0x4fc54a['error']({'title':_0x14b167[_0x5ea013('0xff9')]?'API:'+_0x14b167[_0x5ea013('0xff9')]+_0x5ea013('0xb0b')+_0x14b167[_0x5ea013('0x212f')]:_0x5ea013('0x27ed'),'msg':_0x14b167[_0x5ea013('0x4e8')]?JSON[_0x5ea013('0x3e')](_0x14b167[_0x5ea013('0x4e8')]):_0x14b167['toString']()});}):_0x3305fc['cmList'][_0x3f25e1('0xbaa')]({'fields':_0x3f25e1('0x721'),'sort':_0x3f25e1('0x1909')})[_0x3f25e1('0x1549')][_0x3f25e1('0x11bf')](function(_0x1b64b2){const _0x49ab60=_0x3f25e1;_0x57b70f[_0x49ab60('0x2410')]=_0x1b64b2[_0x49ab60('0x19b2')]||[];})[_0x3f25e1('0x11bf')](function(){const _0x423c3a=_0x3f25e1;return _0x3305fc[_0x423c3a('0x1d63')][_0x423c3a('0xbaa')]({'userProfileId':_0x57b70f[_0x423c3a('0x32a')][_0x423c3a('0x781')],'sectionId':0x12d})[_0x423c3a('0x1549')];})[_0x3f25e1('0x11bf')](function(_0x36bc85){const _0x4d7978=_0x3f25e1,_0x1caf90=_0x36bc85&&_0x36bc85[_0x4d7978('0x19b2')]?_0x36bc85['rows'][0x0]:null;if(!_0x1caf90){const _0x7ac1e5=[];let _0x324b0c=null;_0x57b70f[_0x4d7978('0xb50')]&&(_0x324b0c=_0x36f548()[_0x4d7978('0x1ad4')](_0x57b70f[_0x4d7978('0x2410')],{'id':Number(_0x57b70f[_0x4d7978('0xb50')][_0x4d7978('0x1e91')])}));for(let _0x5111be=0x0;_0x5111be<_0x57b70f[_0x4d7978('0x2410')][_0x4d7978('0x1e22')];_0x5111be++){_0x324b0c&&_0x57b70f[_0x4d7978('0x2410')][_0x5111be]['id']===_0x324b0c['id']&&(_0x57b70f[_0x4d7978('0x2410')][_0x5111be][_0x4d7978('0x254a')]=![],_0x7ac1e5[_0x4d7978('0x105d')](_0x57b70f['lists'][_0x5111be]));}_0x57b70f[_0x4d7978('0x2410')]=_0x7ac1e5;}else{if(!_0x1caf90[_0x4d7978('0xf11')])return _0x3305fc['userProfileResource']['get']({'sectionId':_0x1caf90['id']})['$promise']['then'](function(_0x1eb661){const _0x2fe2e6=_0x4d7978,_0x514068=_0x36f548()[_0x2fe2e6('0x2171')](_0x1eb661[_0x2fe2e6('0x19b2')],function(_0xfe7c88){const _0x43ca77=_0x2fe2e6;return _0x36f548()[_0x43ca77('0x1ad4')](_0x57b70f[_0x43ca77('0x2410')],{'id':_0xfe7c88[_0x43ca77('0x15a5')]});});let _0x17ff4f=null;_0x57b70f[_0x2fe2e6('0xb50')]&&(_0x17ff4f=_0x36f548()[_0x2fe2e6('0x1ad4')](_0x57b70f['lists'],{'id':Number(_0x57b70f[_0x2fe2e6('0xb50')][_0x2fe2e6('0x1e91')])}));if(_0x17ff4f&&!_0x36f548()[_0x2fe2e6('0x1cb3')](_0x514068,['id',_0x17ff4f['id']])){const _0x431c50=_0x36f548()[_0x2fe2e6('0x1ad4')](_0x57b70f[_0x2fe2e6('0x2410')],{'id':_0x17ff4f['id']});_0x431c50[_0x2fe2e6('0x254a')]=![],_0x514068[_0x2fe2e6('0x105d')](_0x431c50);}_0x57b70f[_0x2fe2e6('0x2410')]=_0x514068;});}})[_0x3f25e1('0x151d')](function(_0x3656b0){const _0x4cb058=_0x3f25e1;_0x4fc54a[_0x4cb058('0x255')]({'title':_0x3656b0[_0x4cb058('0xff9')]?_0x4cb058('0x574')+_0x3656b0[_0x4cb058('0xff9')]+_0x4cb058('0xb0b')+_0x3656b0[_0x4cb058('0x212f')]:_0x4cb058('0xb71'),'msg':_0x3656b0[_0x4cb058('0x4e8')]?JSON[_0x4cb058('0x3e')](_0x3656b0[_0x4cb058('0x4e8')]):_0x3656b0[_0x4cb058('0xaab')]()});}),_0xbc5112['hasRole']('admin')?_0x3305fc['interval']['get']({'fields':'id,name','sort':_0x3f25e1('0x1909'),'IntervalId':_0x3f25e1('0xb5f')})[_0x3f25e1('0x1549')][_0x3f25e1('0x11bf')](function(_0x431e8f){const _0x4977d5=_0x3f25e1;_0x57b70f[_0x4977d5('0x507')]=_0x431e8f['rows']||[];})[_0x3f25e1('0x151d')](function(_0x17f5c6){const _0x415cb7=_0x3f25e1;_0x4fc54a[_0x415cb7('0x255')]({'title':_0x17f5c6[_0x415cb7('0xff9')]?_0x415cb7('0x574')+_0x17f5c6[_0x415cb7('0xff9')]+_0x415cb7('0xb0b')+_0x17f5c6[_0x415cb7('0x212f')]:_0x415cb7('0x135a'),'msg':_0x17f5c6[_0x415cb7('0x4e8')]?JSON[_0x415cb7('0x3e')](_0x17f5c6['data']):_0x17f5c6[_0x415cb7('0xaab')]()});}):_0x3305fc[_0x3f25e1('0x507')][_0x3f25e1('0xbaa')]({'fields':'id,name','sort':_0x3f25e1('0x1909'),'IntervalId':'null'})[_0x3f25e1('0x1549')]['then'](function(_0x2e2440){_0x57b70f['interval']=_0x2e2440['rows']||[];})['then'](function(){const _0x381906=_0x3f25e1;return _0x3305fc[_0x381906('0x1d63')][_0x381906('0xbaa')]({'userProfileId':_0x57b70f['currentUser'][_0x381906('0x781')],'sectionId':0x3ec})[_0x381906('0x1549')];})['then'](function(_0x1611fe){const _0x235b35=_0x3f25e1,_0x25ab9d=_0x1611fe&&_0x1611fe[_0x235b35('0x19b2')]?_0x1611fe[_0x235b35('0x19b2')][0x0]:null;if(!_0x25ab9d){const _0x1f837c=[];let _0x12a4df=null;_0x57b70f[_0x235b35('0xb50')]&&(_0x12a4df=_0x36f548()['find'](_0x57b70f[_0x235b35('0x507')],{'id':Number(_0x57b70f[_0x235b35('0xb50')][_0x235b35('0x6b4')])}));for(let _0x487b82=0x0;_0x487b82<_0x57b70f[_0x235b35('0x507')][_0x235b35('0x1e22')];_0x487b82++){_0x12a4df&&_0x57b70f['interval'][_0x487b82]['id']===_0x12a4df['id']&&(_0x57b70f['interval'][_0x487b82][_0x235b35('0x254a')]=![],_0x1f837c['push'](_0x57b70f[_0x235b35('0x507')][_0x487b82]));}_0x57b70f[_0x235b35('0x507')]=_0x1f837c;}else{if(!_0x25ab9d['autoAssociation'])return _0x3305fc[_0x235b35('0x26d1')][_0x235b35('0xbaa')]({'sectionId':_0x25ab9d['id']})[_0x235b35('0x1549')][_0x235b35('0x11bf')](function(_0x55e89c){const _0xf89e0b=_0x235b35,_0xa4b42e=_0x36f548()[_0xf89e0b('0x2171')](_0x55e89c['rows'],function(_0x5bd20e){const _0x3dccf4=_0xf89e0b;return _0x36f548()['find'](_0x57b70f[_0x3dccf4('0x507')],{'id':_0x5bd20e[_0x3dccf4('0x15a5')]});});let _0x393c9c=null;_0x57b70f[_0xf89e0b('0xb50')]&&(_0x393c9c=_0x36f548()[_0xf89e0b('0x1ad4')](_0x57b70f['interval'],{'id':Number(_0x57b70f[_0xf89e0b('0xb50')]['IntervalId'])}));if(_0x393c9c&&!_0x36f548()[_0xf89e0b('0x1cb3')](_0xa4b42e,['id',_0x393c9c['id']])){const _0x542a25=_0x36f548()[_0xf89e0b('0x1ad4')](_0x57b70f['interval'],{'id':_0x393c9c['id']});_0x542a25['canSelect']=![],_0xa4b42e[_0xf89e0b('0x105d')](_0x542a25);}_0x57b70f[_0xf89e0b('0x507')]=_0xa4b42e;});}})[_0x3f25e1('0x151d')](function(_0x336861){const _0x32d4d6=_0x3f25e1;_0x4fc54a[_0x32d4d6('0x255')]({'title':_0x336861[_0x32d4d6('0xff9')]?_0x32d4d6('0x574')+_0x336861[_0x32d4d6('0xff9')]+_0x32d4d6('0xb0b')+_0x336861[_0x32d4d6('0x212f')]:_0x32d4d6('0xa8b'),'msg':_0x336861[_0x32d4d6('0x4e8')]?JSON[_0x32d4d6('0x3e')](_0x336861[_0x32d4d6('0x4e8')]):_0x336861['toString']()});}),_0xbc5112[_0x3f25e1('0x4ee')](_0x3f25e1('0xf45'))?_0x3305fc[_0x3f25e1('0x92a')][_0x3f25e1('0xbaa')]({'fields':'name,id','sort':_0x3f25e1('0x1909'),'nolimit':_0x3f25e1('0x204c')})['$promise'][_0x3f25e1('0x11bf')](function(_0x3cdeec){const _0x4f20d1=_0x3f25e1;_0x57b70f[_0x4f20d1('0x12f2')]=_0x3cdeec['rows']||[];})[_0x3f25e1('0x151d')](function(_0x1f035f){const _0x195afe=_0x3f25e1;_0x4fc54a['error']({'title':_0x1f035f['status']?_0x195afe('0x574')+_0x1f035f[_0x195afe('0xff9')]+_0x195afe('0xb0b')+_0x1f035f[_0x195afe('0x212f')]:_0x195afe('0x1306'),'msg':_0x1f035f['data']?JSON[_0x195afe('0x3e')](_0x1f035f['data']):_0x1f035f[_0x195afe('0xaab')]()});}):_0x3305fc[_0x3f25e1('0x92a')][_0x3f25e1('0xbaa')]({'fields':_0x3f25e1('0xaae'),'sort':_0x3f25e1('0x1909'),'nolimit':_0x3f25e1('0x204c')})[_0x3f25e1('0x1549')][_0x3f25e1('0x11bf')](function(_0x3f9db4){const _0x3aff07=_0x3f25e1;_0x57b70f[_0x3aff07('0x12f2')]=_0x3f9db4[_0x3aff07('0x19b2')]||[];})[_0x3f25e1('0x11bf')](function(){const _0x45a4ca=_0x3f25e1;return _0x3305fc['userProfileSection'][_0x45a4ca('0xbaa')]({'userProfileId':_0x57b70f[_0x45a4ca('0x32a')][_0x45a4ca('0x781')],'sectionId':0x3ed})[_0x45a4ca('0x1549')];})[_0x3f25e1('0x11bf')](function(_0x5ea8a3){const _0x40bda3=_0x3f25e1,_0x5d0097=_0x5ea8a3&&_0x5ea8a3[_0x40bda3('0x19b2')]?_0x5ea8a3[_0x40bda3('0x19b2')][0x0]:null;if(!_0x5d0097)_0x57b70f[_0x40bda3('0x12f2')]=[];else{if(!_0x5d0097['autoAssociation'])return _0x3305fc[_0x40bda3('0x26d1')]['get']({'sectionId':_0x5d0097['id']})['$promise'][_0x40bda3('0x11bf')](function(_0x42856c){const _0x465db8=_0x40bda3,_0xfa962=_0x36f548()[_0x465db8('0x2171')](_0x42856c[_0x465db8('0x19b2')],function(_0x6b49fc){const _0x227fcb=_0x465db8;return _0x36f548()[_0x227fcb('0x1ad4')](_0x57b70f[_0x227fcb('0x12f2')],{'id':_0x6b49fc[_0x227fcb('0x15a5')]});});_0x57b70f[_0x465db8('0x12f2')][_0x465db8('0x1f88')](function(_0x3f4466){const _0x14c205=_0x465db8;!_0x36f548()[_0x14c205('0x1cb3')](_0xfa962,['id',_0x3f4466['id']])&&(_0x3f4466['canSelect']=![]),_0xfa962[_0x14c205('0x105d')](_0x3f4466);}),_0x57b70f[_0x465db8('0x12f2')]=_0xfa962;});}})[_0x3f25e1('0x151d')](function(_0x423ebe){const _0x2c1369=_0x3f25e1;_0x4fc54a[_0x2c1369('0x255')]({'title':_0x423ebe[_0x2c1369('0xff9')]?'API:'+_0x423ebe[_0x2c1369('0xff9')]+_0x2c1369('0xb0b')+_0x423ebe[_0x2c1369('0x212f')]:_0x2c1369('0x1c82'),'msg':_0x423ebe[_0x2c1369('0x4e8')]?JSON[_0x2c1369('0x3e')](_0x423ebe['data']):_0x423ebe[_0x2c1369('0xaab')]()});});function _0x541e6b(_0x429513,_0x5f00a0){const _0x2c2c99=_0x3f25e1;_0x39f688[_0x2c2c99('0xb9')]({'controller':_0x2c2c99('0x1557'),'controllerAs':'vm','templateUrl':_0x221cf2,'parent':angular[_0x2c2c99('0x1e73')](_0x270baa['body']),'targetEvent':_0x5f00a0,'clickOutsideToClose':!![],'locals':{'chatWebsite':_0x429513,'chatWebsites':_0x57b70f[_0x2c2c99('0x235c')]?_0x57b70f[_0x2c2c99('0x235c')][_0x2c2c99('0x19b2')]:[],'crudPermissions':_0x57b70f[_0x2c2c99('0xb25')],'realtime':![]}});}function _0x2944c7(){const _0x5df0ce=_0x3f25e1;_0x530858['go'](_0x5df0ce('0x1f7f'),{},{'reload':_0x5df0ce('0x1f7f')});}function _0x2805a3(){const _0x13132f=_0x3f25e1;_0x3305fc[_0x13132f('0xb50')][_0x13132f('0x5ab')]({'id':_0x57b70f[_0x13132f('0xb50')]['id']},_0x57b70f['chatWebsite'])[_0x13132f('0x1549')][_0x13132f('0x11bf')](function(){const _0x403f7e=_0x13132f;_0x4fc54a['success']({'title':'ChatWebsite\x20updated!','msg':_0x57b70f[_0x403f7e('0xb50')][_0x403f7e('0x1909')]?_0x57b70f[_0x403f7e('0xb50')]['name']+_0x403f7e('0xd7'):''});})[_0x13132f('0x151d')](function(_0x3190f6){const _0x57a678=_0x13132f;_0x4fc54a[_0x57a678('0x255')]({'title':_0x3190f6['status']?_0x57a678('0x574')+_0x3190f6['status']+'\x20-\x20'+_0x3190f6['statusText']:'SYSTEM:GETchatWebsite','msg':_0x3190f6['data']?JSON[_0x57a678('0x3e')](_0x3190f6[_0x57a678('0x4e8')]):_0x3190f6[_0x57a678('0xaab')]()});});}}const _0x33395c=_0x9d0f7e;_0x7c2c1d[_0x21d0f5('0x1e9a')]=['$stateProvider','$translatePartialLoaderProvider'];function _0x7c2c1d(_0x144e50,_0x492124){const _0x3cf2f4=_0x21d0f5;_0x144e50['state']('app.chat',{'abstract':!![],'url':'/chat'})[_0x3cf2f4('0x2124')]('app.chat.chatQueues',{'url':_0x3cf2f4('0x4a6'),'views':{'content@app':{'templateUrl':_0x17a4bc,'controller':_0x3cf2f4('0x260b')}},'resolve':{'chatQueues':[_0x3cf2f4('0x218e'),'Auth',function(_0x21c004,_0x8574c6){const _0x406ffa=_0x3cf2f4;return _0x8574c6[_0x406ffa('0x4ee')](_0x406ffa('0xf45'))?_0x21c004['resolve']('chatQueue@get',{'fields':_0x406ffa('0xe24'),'sort':'-updatedAt','channel':_0x406ffa('0x1800'),'limit':0xa,'offset':0x0}):_0x21c004[_0x406ffa('0xa28')](_0x406ffa('0xb0d'),{'id':_0x8574c6[_0x406ffa('0x2428')]()[_0x406ffa('0x781')],'section':_0x406ffa('0x22eb'),'fields':_0x406ffa('0xe24'),'sort':'-updatedAt','channel':_0x406ffa('0x1800'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x3cf2f4('0x218e'),'Auth',function(_0x129db1,_0x2b1735){const _0x2cdc26=_0x3cf2f4;return _0x2b1735[_0x2cdc26('0x4ee')]('admin')?null:_0x129db1['resolve']('userProfile@get',{'fields':'id,name,crudPermissions','id':_0x2b1735[_0x2cdc26('0x2428')]()[_0x2cdc26('0x781')]});}],'userProfileSection':['apiResolver',_0x3cf2f4('0x1150'),function(_0x5c352d,_0x4acb8c){const _0x312f1c=_0x3cf2f4;return _0x4acb8c[_0x312f1c('0x4ee')](_0x312f1c('0xf45'))?null:_0x5c352d[_0x312f1c('0xa28')](_0x312f1c('0x2762'),{'fields':_0x312f1c('0x36d'),'userProfileId':_0x4acb8c[_0x312f1c('0x2428')]()[_0x312f1c('0x781')],'sectionId':0x1f5});}]},'authenticate':!![],'permissionId':0x1f5,'bodyClass':_0x3cf2f4('0x1800')})[_0x3cf2f4('0x2124')](_0x3cf2f4('0xdf'),{'url':_0x3cf2f4('0x142b'),'params':{'chatQueue':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x231252,'controller':_0x3cf2f4('0x2167')}},'resolve':{'chatQueue':['apiResolver',_0x3cf2f4('0x1573'),function(_0x4829bd,_0x34b569){const _0x564ea9=_0x3cf2f4;return _0x4829bd[_0x564ea9('0xa28')](_0x564ea9('0x27e3'),{'fields':_0x564ea9('0xe24'),'id':_0x34b569['id']});}],'userProfileSection':['apiResolver',_0x3cf2f4('0x1150'),function(_0x42b0e5,_0x3f04a3){const _0x353e31=_0x3cf2f4;return _0x42b0e5[_0x353e31('0xa28')](_0x353e31('0x2762'),{'fields':_0x353e31('0x36d'),'userProfileId':_0x3f04a3['getCurrentUser']()[_0x353e31('0x781')],'sectionId':0x1f5});}]},'authenticate':!![],'permissionId':0x1f5,'bodyClass':'chat'})['state'](_0x3cf2f4('0x1f7f'),{'url':_0x3cf2f4('0x5ee'),'views':{'content@app':{'templateUrl':_0x45c89e,'controller':'ChatWebsitesController\x20as\x20vm'}},'resolve':{'chatWebsites':[_0x3cf2f4('0x218e'),_0x3cf2f4('0x1150'),function(_0x2215ee,_0x1dab17){const _0x15ee75=_0x3cf2f4;return _0x1dab17[_0x15ee75('0x4ee')](_0x15ee75('0xf45'))?_0x2215ee[_0x15ee75('0xa28')](_0x15ee75('0x27f0'),{'fields':_0x15ee75('0x163b'),'sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x2215ee[_0x15ee75('0xa28')](_0x15ee75('0xb0d'),{'id':_0x1dab17[_0x15ee75('0x2428')]()['userProfileId'],'section':_0x15ee75('0x368'),'fields':_0x15ee75('0x163b'),'sort':_0x15ee75('0x1c74'),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x3cf2f4('0x1150'),function(_0xa30e60,_0x4183af){const _0x100e66=_0x3cf2f4;return _0x4183af[_0x100e66('0x4ee')](_0x100e66('0xf45'))?null:_0xa30e60[_0x100e66('0xa28')](_0x100e66('0x428'),{'fields':_0x100e66('0xd30'),'id':_0x4183af[_0x100e66('0x2428')]()[_0x100e66('0x781')]});}],'userProfileSection':[_0x3cf2f4('0x218e'),_0x3cf2f4('0x1150'),function(_0x4218f6,_0x5b4516){const _0x3b3dff=_0x3cf2f4;return _0x5b4516['hasRole'](_0x3b3dff('0xf45'))?null:_0x4218f6[_0x3b3dff('0xa28')](_0x3b3dff('0x2762'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x5b4516[_0x3b3dff('0x2428')]()[_0x3b3dff('0x781')],'sectionId':0x1f6});}]},'authenticate':!![],'permissionId':0x1f6,'bodyClass':_0x3cf2f4('0x1800')})[_0x3cf2f4('0x2124')]('app.chat.chatWebsites.edit',{'url':'/:id?tab','params':{'chatWebsite':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x3378c3,'controller':_0x3cf2f4('0x63e')}},'resolve':{'chatWebsite':['apiResolver',_0x3cf2f4('0x1573'),function(_0x581ca8,_0x445d3d){const _0xeae4d8=_0x3cf2f4;return _0x581ca8[_0xeae4d8('0xa28')](_0xeae4d8('0x27f0'),{'fields':_0xeae4d8('0x163b'),'id':_0x445d3d['id']});}],'userProfileSection':[_0x3cf2f4('0x218e'),_0x3cf2f4('0x1150'),function(_0x2ee60c,_0xfe651b){const _0x3a4bbb=_0x3cf2f4;return _0x2ee60c[_0x3a4bbb('0xa28')]('userProfileSection@get',{'fields':_0x3a4bbb('0x36d'),'userProfileId':_0xfe651b[_0x3a4bbb('0x2428')]()['userProfileId'],'sectionId':0x1f6});}]},'authenticate':!![],'permissionId':0x1f6,'bodyClass':_0x3cf2f4('0x1800')}),_0x492124[_0x3cf2f4('0x471')](_0x3cf2f4('0x1013'));}angular[_0x21d0f5('0x2768')](_0x21d0f5('0xbb2'),[_0x21d0f5('0x22d5'),'ngPassword','md.data.table',_0x21d0f5('0x2414'),_0x21d0f5('0xd61'),_0x21d0f5('0x2096'),_0x21d0f5('0x24a2'),_0x21d0f5('0x446'),_0x21d0f5('0x113d'),_0x21d0f5('0x21d5'),_0x21d0f5('0x29b'),_0x21d0f5('0xc46'),_0x21d0f5('0x950'),_0x21d0f5('0xf49'),_0x21d0f5('0x31e'),_0x21d0f5('0xed9'),_0x21d0f5('0x2625'),_0x21d0f5('0x1622'),_0x21d0f5('0x1584'),_0x21d0f5('0xf7f'),_0x21d0f5('0x1bff')])[_0x21d0f5('0x53a')](_0x7c2c1d)[_0x21d0f5('0x23eb')](_0x21d0f5('0x1a6d'),_0x1b7c18)['controller'](_0x21d0f5('0x2196'),_0x22f8b6)[_0x21d0f5('0x23eb')](_0x21d0f5('0xec8'),_0x5acf5b)[_0x21d0f5('0x23eb')](_0x21d0f5('0x1090'),_0x6f06de)[_0x21d0f5('0x23eb')](_0x21d0f5('0x23c0'),_0x45c833)['controller']('ChatWebsitesController',_0x454c7e)[_0x21d0f5('0x23eb')](_0x21d0f5('0x13e2'),_0x106acc)[_0x21d0f5('0x23eb')](_0x21d0f5('0x12cb'),_0x58a1ee)[_0x21d0f5('0x23eb')](_0x21d0f5('0x1557'),_0x1f4bfb)[_0x21d0f5('0x23eb')]('ChatWebsiteagentAvatarController',_0x52e7d4)[_0x21d0f5('0x23eb')]('EditChatWebsiteAppagentDialogController',_0x14c2ee)[_0x21d0f5('0x23eb')](_0x21d0f5('0x32f'),_0x582805)[_0x21d0f5('0x23eb')](_0x21d0f5('0x32f'),_0x582805)[_0x21d0f5('0x23eb')](_0x21d0f5('0xbae'),_0x1767d8)[_0x21d0f5('0x23eb')](_0x21d0f5('0x235d'),_0xb55dd0)[_0x21d0f5('0x23eb')](_0x21d0f5('0xc5a'),_0x2ffe0e)[_0x21d0f5('0x23eb')](_0x21d0f5('0x2573'),_0x38f480)[_0x21d0f5('0x23eb')](_0x21d0f5('0x516'),_0x3995a3)[_0x21d0f5('0x23eb')]('EditChatWebsiteAppintervalDialogController',_0x1c2cb5)[_0x21d0f5('0x23eb')](_0x21d0f5('0xe59'),_0x325cf0)[_0x21d0f5('0x23eb')]('EditChatWebsiteAppqueueDialogController',_0x475d5f)[_0x21d0f5('0x23eb')](_0x21d0f5('0x1144'),_0x24ff1e)[_0x21d0f5('0x23eb')]('EditChatWebsiteApptagDialogController',_0x58ba18)[_0x21d0f5('0x23eb')]('ChatWebsiteChatCannedAnswersController',_0x36e6a4)[_0x21d0f5('0x23eb')](_0x21d0f5('0x729'),_0x1414ab)[_0x21d0f5('0x23eb')]('ChatWebsiteChatDispositionsController',_0x3a03f8)['controller'](_0x21d0f5('0x137b'),_0x3a1e51)['controller']('ChatWebsiteonlineFormController',_0x58d97b)['controller'](_0x21d0f5('0x24f7'),_0x75e26a)[_0x21d0f5('0x23eb')]('ChatWebsiteInteractionsController',_0x43c07c)['controller'](_0x21d0f5('0x1e68'),_0x5b437b)[_0x21d0f5('0x23eb')](_0x21d0f5('0x2555'),_0xf14cf7)['controller'](_0x21d0f5('0x24e'),_0x32d1c5)['controller'](_0x21d0f5('0x1a86'),_0x53fac3)[_0x21d0f5('0x23eb')](_0x21d0f5('0x212a'),_0x12a70d)[_0x21d0f5('0x23eb')](_0x21d0f5('0x1e3'),_0x547aed)[_0x21d0f5('0x23eb')](_0x21d0f5('0x16cc'),_0x50560a)[_0x21d0f5('0x23eb')]('ChatWebsiteController',_0x33395c);const _0x50d4fa=_0x351988['p']+_0x21d0f5('0x1c3c'),_0x24d407=_0x351988['p']+'src/js/modules/main/apps/mail/views/realtime/agents/view.html/view.html',_0x4e2545=_0x351988['p']+_0x21d0f5('0xf2d'),_0x213bd9=_0x351988['p']+_0x21d0f5('0x161f');_0x460c7c['$inject']=[_0x21d0f5('0x1b80'),'$q',_0x21d0f5('0x17f5'),_0x21d0f5('0x1ca2'),'$document',_0x21d0f5('0x2212'),_0x21d0f5('0x12f2'),_0x21d0f5('0x1401'),_0x21d0f5('0xaa0'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1d56'),_0x21d0f5('0x142d'),_0x21d0f5('0x927'),_0x21d0f5('0x25bc'),_0x21d0f5('0x1d63'),_0x21d0f5('0x1150'),_0x21d0f5('0x17ff'),_0x21d0f5('0x1fd')];function _0x460c7c(_0x30829d,_0x1ab1cc,_0x4acb6f,_0xd7fd50,_0x467cc4,_0x3fab56,_0x35b59f,_0x20e708,_0x241a10,_0x330fec,_0x4d7fc9,_0x42ef27,_0x60ebb9,_0x1c3a9c,_0xd16279,_0x2917c4,_0x4e8882,_0x3c0a72){const _0x2fe5f6=_0x21d0f5,_0x2d7f0f=this,_0x4e747e=[_0x2fe5f6('0x88'),_0x2fe5f6('0x81c'),_0x2fe5f6('0x3bd'),_0x2fe5f6('0x1e10'),_0x2fe5f6('0x2628'),_0x2fe5f6('0x1e10'),'internal',_0x2fe5f6('0x5fc'),_0x2fe5f6('0x13c9'),'openchannelPause','mailPause',_0x2fe5f6('0x55e'),_0x2fe5f6('0x1ed1'),_0x2fe5f6('0x2501'),_0x2fe5f6('0x20d'),_0x2fe5f6('0x1ed'),_0x2fe5f6('0x93c'),'mailCapacity','smsCapacity','whatsappCapacity',_0x2fe5f6('0x790'),_0x2fe5f6('0x539'),_0x2fe5f6('0x1a2e'),'mailCurrentCapacity',_0x2fe5f6('0x19de'),_0x2fe5f6('0xa81'),_0x2fe5f6('0x21d4'),_0x2fe5f6('0x1572'),_0x2fe5f6('0x19c0'),_0x2fe5f6('0x1683'),_0x2fe5f6('0x245c'),'whatsappStatus',_0x2fe5f6('0x8dd'),_0x2fe5f6('0x1715'),_0x2fe5f6('0xe6a'),_0x2fe5f6('0x22cb'),_0x2fe5f6('0x1bab'),_0x2fe5f6('0x1ac6'),_0x2fe5f6('0x3ee'),'faxStatusTime',_0x2fe5f6('0x24e5'),_0x2fe5f6('0x150b'),'destconnectedlinenum','screenrecording','phoneBarEnableScreenRecordingByAgent',_0x2fe5f6('0x1f38')],_0x1c3e58=['chatPause',_0x2fe5f6('0xfc0'),_0x2fe5f6('0x1f53'),'smsPause',_0x2fe5f6('0x1ed1'),'faxPause',_0x2fe5f6('0x20d'),_0x2fe5f6('0x81c')];_0x2d7f0f['currentUser']=_0x2917c4[_0x2fe5f6('0x2428')](),_0x2d7f0f[_0x2fe5f6('0x1391')]=['ringing',_0x2fe5f6('0x1218'),'busy','onhold','not_inuse'],_0x2d7f0f['pauses']=_0x35b59f||{'count':0x0,'rows':[]},_0x2d7f0f[_0x2fe5f6('0x17ff')]=_0x4e8882,_0x2d7f0f[_0x2fe5f6('0x25bc')]=_0x1c3a9c,_0x2d7f0f['userProfileSection']=_0xd16279&&_0xd16279[_0x2fe5f6('0x27d2')]==0x1?_0xd16279[_0x2fe5f6('0x19b2')][0x0]:null,_0x2d7f0f[_0x2fe5f6('0xb25')]=_0x2917c4[_0x2fe5f6('0x1530')](_0x2d7f0f['userProfileSection']?_0x2d7f0f['userProfileSection'][_0x2fe5f6('0xb25')]:null),_0x2d7f0f['agents']=_0x20e708?_0x36f548()[_0x2fe5f6('0x2130')](_0x20e708[_0x2fe5f6('0x19b2')]?_0x20e708[_0x2fe5f6('0x19b2')]:[],'id'):{},_0x2d7f0f['rpcAgents']=_0x241a10?_0x36f548()[_0x2fe5f6('0x2130')](_0x241a10[_0x2fe5f6('0x19b2')]?_0x241a10[_0x2fe5f6('0x19b2')]:[],'id'):{},_0x2d7f0f[_0x2fe5f6('0x18bd')]={},_0x2d7f0f[_0x2fe5f6('0x215b')]=![],_0x2d7f0f['order']=[],_0x2d7f0f['agentInternal']={};for(const _0x13f6d3 in _0x2d7f0f[_0x2fe5f6('0x1401')]){typeof _0x2d7f0f[_0x2fe5f6('0x1401')][_0x13f6d3]!=='undefined'&&(_0x2d7f0f[_0x2fe5f6('0x1401')][_0x13f6d3][_0x2fe5f6('0x286f')]=!![]);}_0x2d7f0f[_0x2fe5f6('0x1f2a')]={'limit':0xa,'page':0x1,'order':'fullname','globalStatusFilter':'','pauseTypeFilter':''},_0x2d7f0f[_0x2fe5f6('0x18f7')]=_0x59c16e,_0x2d7f0f[_0x2fe5f6('0x6c0')]=_0x34e7cd,_0x2d7f0f[_0x2fe5f6('0x92a')]=_0x5881ee,_0x2d7f0f[_0x2fe5f6('0x1ab7')]=_0x444e6f,_0x2d7f0f[_0x2fe5f6('0x1410')]=_0x261591,_0x2d7f0f[_0x2fe5f6('0x12e5')]=_0x445cbd,_0x2d7f0f['getAgentGlobalStatus']=_0x51ab78,_0x2d7f0f[_0x2fe5f6('0x1191')]=_0x5cd08e,_0x2d7f0f[_0x2fe5f6('0x1869')]=_0x20ff2d,_0x2d7f0f['isPartialPause']=_0x223a65,_0x2d7f0f[_0x2fe5f6('0xc8f')]=_0x25ab4a,_0x2d7f0f[_0x2fe5f6('0xfdd')]=_0x415c2f,_0x2d7f0f[_0x2fe5f6('0x277c')]=_0x319e4b,_0x2d7f0f['onConnect']=_0xb7d559,_0x2d7f0f[_0x2fe5f6('0x162a')]=_0xcf71a0,_0x2d7f0f[_0x2fe5f6('0x1520')]=_0x20d22e,_0x4d7fc9['on'](_0x2fe5f6('0x1ce9'),_0x2d7f0f[_0x2fe5f6('0xc8f')]),_0x4d7fc9['on'](_0x2fe5f6('0x15bd'),_0x2d7f0f[_0x2fe5f6('0xfdd')]),_0x4d7fc9['on'](_0x2fe5f6('0x90c'),_0x2d7f0f[_0x2fe5f6('0x1e2e')]),_0x4d7fc9['on'](_0x2fe5f6('0xffb'),_0x2d7f0f['onComplete']),_0x319e4b();let _0x4c6ed3=_0x3c0a72(function(){const _0x38c43b=_0x2fe5f6;_0x2d7f0f[_0x38c43b('0x215b')]&&(_0x2d7f0f[_0x38c43b('0x215b')]=![],_0x319e4b());},0x3e7);function _0x319e4b(){const _0x1a263c=_0x2fe5f6;_0x2d7f0f[_0x1a263c('0x215b')]=![];const _0x486a71=_0x1ab1cc['defer']();_0x2d7f0f[_0x1a263c('0x13f')]=_0x486a71[_0x1a263c('0x13f')],_0x2d7f0f[_0x1a263c('0x15f2')]=[],_0x2d7f0f[_0x1a263c('0x59')]=[],_0x36f548()['forIn'](_0x2d7f0f[_0x1a263c('0x1401')],function(_0x30cf81,_0x2767f3){const _0x20faf6=_0x1a263c;_0x2d7f0f[_0x20faf6('0xaa0')][_0x2767f3]&&_0x36f548()[_0x20faf6('0x47b')](_0x30cf81,_0x36f548()[_0x20faf6('0x258')](_0x36f548()[_0x20faf6('0x196f')](_0x2d7f0f['rpcAgents'][_0x2767f3],_0x1c3e58),_0x4e747e)),_0x51ab78(_0x30cf81),_0x30cf81[_0x20faf6('0x81c')]?(_0x2d7f0f[_0x20faf6('0x15f2')]['push'](_0x30cf81),_0x2d7f0f['agentInternal'][_0x30cf81[_0x20faf6('0x1a04')]]=_0x2767f3):_0x30cf81[_0x20faf6('0xd4')]=_0x36f548()[_0x20faf6('0x17c2')](_0x57d4d1()()[_0x20faf6('0x1826')]('x'));});_0x2d7f0f[_0x1a263c('0x1f2a')][_0x1a263c('0x270')]&&_0x36f548()[_0x1a263c('0x14a5')](_0x2d7f0f[_0x1a263c('0x15f2')],function(_0x2a9538){const _0x577ebd=_0x1a263c;return _0x2a9538['globalStatus']!==_0x2d7f0f[_0x577ebd('0x1f2a')]['globalStatusFilter'];});_0x2d7f0f[_0x1a263c('0x1f2a')][_0x1a263c('0xa12')]&&_0x36f548()[_0x1a263c('0x14a5')](_0x2d7f0f[_0x1a263c('0x15f2')],function(_0x3d6240){const _0x2ddc4e=_0x1a263c;return _0x3d6240[_0x2ddc4e('0x2628')]!==_0x2d7f0f['query'][_0x2ddc4e('0xa12')];});_0x2d7f0f[_0x1a263c('0x1f2a')][_0x1a263c('0xdb4')]&&_0x36f548()[_0x1a263c('0x14a5')](_0x2d7f0f['filteredAgents'],function(_0x4c308f){const _0xc3d4db=_0x1a263c;return _0x4c308f[_0xc3d4db('0x27af')][_0xc3d4db('0x20d5')]()[_0xc3d4db('0x203c')](_0x2d7f0f[_0xc3d4db('0x1f2a')]['filter'][_0xc3d4db('0x20d5')]())<0x0;});_0x2d7f0f['filteredAgents']=_0x13079a(_0x2d7f0f[_0x1a263c('0x15f2')]);const _0x5d6226=(_0x2d7f0f['query']['page']-0x1)*_0x2d7f0f['query'][_0x1a263c('0xd5c')];_0x2d7f0f[_0x1a263c('0x18bd')]=_0x36f548()['drop'](_0x2d7f0f['filteredAgents'],_0x5d6226)[_0x1a263c('0x1b77')](0x0,_0x2d7f0f['query']['limit']);for(let _0x55908f=0x0;_0x55908f<_0x2d7f0f[_0x1a263c('0x18bd')][_0x1a263c('0x1e22')];_0x55908f+=0x1){_0x2d7f0f[_0x1a263c('0x59')][_0x1a263c('0x105d')](_0x2d7f0f[_0x1a263c('0x18bd')][_0x55908f]['id']);}_0x486a71[_0x1a263c('0xa28')](),_0x2d7f0f['load']=!![];}function _0x25ab4a(_0x49b3e7){const _0xbc437e=_0x2fe5f6;_0x2d7f0f[_0xbc437e('0x1401')][_0x49b3e7['id']]&&(_0x36f548()[_0xbc437e('0x47b')](_0x2d7f0f['agents'][_0x49b3e7['id']],_0x36f548()['pick'](_0x36f548()[_0xbc437e('0x196f')](_0x49b3e7,_0x1c3e58),_0x4e747e)),_0x36f548()[_0xbc437e('0x47b')](_0x2d7f0f[_0xbc437e('0xaa0')][_0x49b3e7['id']],_0x36f548()[_0xbc437e('0x258')](_0x36f548()[_0xbc437e('0x196f')](_0x49b3e7,_0x1c3e58),_0x4e747e)),_0x51ab78(_0x2d7f0f[_0xbc437e('0x1401')][_0x49b3e7['id']]));}function _0x415c2f(_0x241e20){const _0x559468=_0x2fe5f6;_0x2d7f0f['agents'][_0x241e20['id']]&&(_0x36f548()[_0x559468('0x47b')](_0x2d7f0f['agents'][_0x241e20['id']],_0x36f548()[_0x559468('0x258')](_0x241e20,_0x4e747e)),_0x36f548()[_0x559468('0x47b')](_0x2d7f0f[_0x559468('0xaa0')][_0x241e20['id']],_0x36f548()[_0x559468('0x258')](_0x241e20,_0x4e747e)),_0x241e20['lastPauseAt']&&(_0x2d7f0f['agents'][_0x241e20['id']][_0x559468('0xd4')]=_0x241e20[_0x559468('0x1e10')],_0x2d7f0f['rpcAgents'][_0x241e20['id']][_0x559468('0xd4')]=_0x241e20[_0x559468('0x1e10')]),_0x51ab78(_0x2d7f0f[_0x559468('0x1401')][_0x241e20['id']]));}function _0xb7d559(_0x25e03e){const _0x355ae5=_0x2fe5f6;_0x2d7f0f[_0x355ae5('0x1401')][_0x2d7f0f[_0x355ae5('0x14fd')][_0x25e03e[_0x355ae5('0x1fd0')]]]&&(_0x36f548()[_0x355ae5('0x47b')](_0x2d7f0f[_0x355ae5('0x1401')][_0x2d7f0f['agentInternal'][_0x25e03e[_0x355ae5('0x1fd0')]]],_0x36f548()['pick'](_0x25e03e,[_0x355ae5('0x150b'),_0x355ae5('0x1562')])),_0x36f548()[_0x355ae5('0x47b')](_0x2d7f0f[_0x355ae5('0xaa0')][_0x2d7f0f[_0x355ae5('0x14fd')][_0x25e03e[_0x355ae5('0x1fd0')]]],_0x36f548()['pick'](_0x25e03e,[_0x355ae5('0x150b'),'destconnectedlinenum'])));}function _0xcf71a0(_0x17c6db){const _0x43f998=_0x2fe5f6;_0x2d7f0f[_0x43f998('0x1401')][_0x2d7f0f[_0x43f998('0x14fd')][_0x17c6db[_0x43f998('0x1fd0')]]]&&(_0x2d7f0f[_0x43f998('0x1401')][_0x2d7f0f['agentInternal'][_0x17c6db[_0x43f998('0x1fd0')]]]=_0x36f548()['omit'](_0x2d7f0f['agents'][_0x2d7f0f[_0x43f998('0x14fd')][_0x17c6db['destaccountcode']]],[_0x43f998('0x150b'),_0x43f998('0x1562')]),_0x2d7f0f[_0x43f998('0xaa0')][_0x2d7f0f[_0x43f998('0x14fd')][_0x17c6db['destaccountcode']]]=_0x36f548()[_0x43f998('0x196f')](_0x2d7f0f[_0x43f998('0xaa0')][_0x2d7f0f[_0x43f998('0x14fd')][_0x17c6db[_0x43f998('0x1fd0')]]],[_0x43f998('0x150b'),_0x43f998('0x1562')]));}function _0x59c16e(_0x504f43){const _0x115499=_0x2fe5f6;return _0x330fec[_0x115499('0x21d9')][_0x115499('0x18f7')]({'id':_0x504f43['id'],'device':'realtime','agent_id':_0x504f43['id'],'agent_name':_0x504f43[_0x115499('0x1909')]})[_0x115499('0x1549')]['then'](function(){const _0x27ed33=_0x115499;_0x42ef27[_0x27ed33('0x2693')]({'title':_0x27ed33('0x21e1'),'msg':_0x504f43[_0x27ed33('0x27af')]+_0x27ed33('0xf73')}),_0x2d7f0f[_0x27ed33('0x1401')][_0x504f43['id']]&&(_0x2d7f0f[_0x27ed33('0x1401')][_0x504f43['id']]['online']=![]),_0x2d7f0f['rpcAgents'][_0x504f43['id']]&&(_0x2d7f0f[_0x27ed33('0xaa0')][_0x504f43['id']][_0x27ed33('0x81c')]=![]),_0x319e4b();})[_0x115499('0x151d')](function(_0x18296c){const _0x31dc82=_0x115499;_0x42ef27[_0x31dc82('0x255')]({'title':_0x18296c[_0x31dc82('0xff9')]?'API:'+_0x18296c['status']+_0x31dc82('0xb0b')+_0x18296c['statusText']:_0x31dc82('0x9'),'msg':_0x18296c[_0x31dc82('0x4e8')]?JSON['stringify'](_0x18296c[_0x31dc82('0x4e8')]['message']):_0x18296c['toString']()});});}function _0x5881ee(_0x2e51bd,_0x427308){const _0x4b6131=_0x2fe5f6;return _0x330fec[_0x4b6131('0x21d9')]['pause']({'id':_0x2e51bd['id'],'type':_0x427308})['$promise'][_0x4b6131('0x11bf')](function(_0xfa710a){const _0x5e9e91=_0x4b6131;_0x2d7f0f[_0x5e9e91('0x1401')][_0x2e51bd['id']]&&_0x36f548()[_0x5e9e91('0x47b')](_0x2d7f0f[_0x5e9e91('0x1401')][_0x2e51bd['id']],_0x36f548()[_0x5e9e91('0x258')](_0xfa710a,_0x4e747e)),_0x2d7f0f[_0x5e9e91('0xaa0')][_0x2e51bd['id']]&&_0x36f548()[_0x5e9e91('0x47b')](_0x2d7f0f[_0x5e9e91('0xaa0')][_0x2e51bd['id']],_0x36f548()[_0x5e9e91('0x258')](_0xfa710a,_0x4e747e)),_0x51ab78(_0x2d7f0f[_0x5e9e91('0x1401')][_0x2e51bd['id']]);})[_0x4b6131('0x151d')](function(_0x220502){const _0x3e8382=_0x4b6131;_0x42ef27[_0x3e8382('0x255')]({'title':_0x220502[_0x3e8382('0xff9')]?_0x3e8382('0x574')+_0x220502['status']+_0x3e8382('0xb0b')+_0x220502[_0x3e8382('0x212f')]:_0x3e8382('0x9'),'msg':_0x220502[_0x3e8382('0x4e8')]?JSON['stringify'](_0x220502[_0x3e8382('0x4e8')]['message']):_0x220502[_0x3e8382('0xaab')]()});});}function _0x444e6f(_0x222bad){const _0x370303=_0x2fe5f6;return _0x330fec['user'][_0x370303('0xb6f')]({'id':_0x222bad['id']})['$promise'][_0x370303('0x11bf')](function(_0x2356b7){const _0x2fd021=_0x370303;_0x2d7f0f[_0x2fd021('0x1401')][_0x222bad['id']]&&_0x36f548()[_0x2fd021('0x47b')](_0x2d7f0f[_0x2fd021('0x1401')][_0x222bad['id']],_0x36f548()['pick'](_0x2356b7,_0x4e747e)),_0x2d7f0f[_0x2fd021('0xaa0')][_0x222bad['id']]&&_0x36f548()['merge'](_0x2d7f0f[_0x2fd021('0xaa0')][_0x222bad['id']],_0x36f548()[_0x2fd021('0x258')](_0x2356b7,_0x4e747e)),_0x51ab78(_0x2d7f0f[_0x2fd021('0x1401')][_0x222bad['id']]);})[_0x370303('0x151d')](function(_0x430a90){const _0x4698c8=_0x370303;_0x42ef27[_0x4698c8('0x255')]({'title':_0x430a90[_0x4698c8('0xff9')]?'API:'+_0x430a90[_0x4698c8('0xff9')]+_0x4698c8('0xb0b')+_0x430a90[_0x4698c8('0x212f')]:'api.staff.save','msg':_0x430a90[_0x4698c8('0x4e8')]?JSON['stringify'](_0x430a90['data'][_0x4698c8('0x1b86')]):_0x430a90[_0x4698c8('0xaab')]()});});}function _0x261591(_0x51c7e0){const _0x5a23f2=_0x2fe5f6;_0xd7fd50['show'](_0xd7fd50[_0x5a23f2('0xb30')]()['clickOutsideToClose'](!![])[_0x5a23f2('0x134b')](_0x5a23f2('0x24f0'))[_0x5a23f2('0x1d03')](_0x5a23f2('0x193c'))['ok']('Ok')[_0x5a23f2('0x1e25')](_0x51c7e0));}function _0x34e7cd(_0x32ddd7,_0x2e8681){const _0x76eb3=_0x2fe5f6;_0xd7fd50[_0x76eb3('0xb9')]({'controller':_0x76eb3('0x1730'),'controllerAs':'vm','templateUrl':_0x43dcce,'parent':angular[_0x76eb3('0x1e73')](_0x467cc4[_0x76eb3('0x1d2')]),'targetEvent':_0x2e8681,'clickOutsideToClose':!![],'locals':{'agent':_0x32ddd7,'agents':[],'channel':'mail','direction':'inbound','crudPermissions':_0x2d7f0f['crudPermissions']}});}function _0x5cd08e(_0x1308cc){const _0x2ee570=_0x2fe5f6;return _0x1308cc===_0x2ee570('0x92a')||_0x1308cc===_0x2ee570('0x1050');}function _0x20ff2d(_0x3bcfa4){const _0x2a65c2=_0x2fe5f6;return _0x3bcfa4===_0x2a65c2('0x92a');}function _0x223a65(_0x32090f){const _0x5c836c=_0x2fe5f6;return _0x32090f===_0x5c836c('0x1050');}function _0x5c44c2(_0x25ea5f){const _0x449dca=_0x2fe5f6;return _0x25ea5f==='idle'||_0x25ea5f===_0x449dca('0x6b0')||_0x25ea5f==='unavailable'||_0x25ea5f==='ringing'||_0x36f548()[_0x449dca('0x1a80')](_0x25ea5f);}function _0x445cbd(_0x445f0d,_0xadebdc){const _0x1f4a90=_0x2fe5f6;if(_0xadebdc==='voice'){if(_0x445f0d[_0xadebdc+_0x1f4a90('0x971')]!=='idle')return _0x445f0d[_0xadebdc+_0x1f4a90('0x971')];if(_0x445f0d[_0xadebdc+_0x1f4a90('0x6c5')])return _0x445f0d[_0xadebdc+_0x1f4a90('0x971')]='pause',_0x1f4a90('0x92a');return _0x1f4a90('0x1533');}else{if(_0x445f0d[_0xadebdc+_0x1f4a90('0x6c5')])return _0x445f0d[_0xadebdc+_0x1f4a90('0x971')]=_0x1f4a90('0x92a'),_0x1f4a90('0x92a');return _0x445f0d[_0xadebdc+'Status'];}}function _0x51ab78(_0x38a6e7){const _0x4fdfdd=_0x2fe5f6;let _0x588639=_0x4fdfdd('0x6b0');if(_0x36f548()['every']([_0x445cbd(_0x38a6e7,_0x4fdfdd('0x1bc3')),_0x445cbd(_0x38a6e7,_0x4fdfdd('0x1800')),_0x445cbd(_0x38a6e7,_0x4fdfdd('0x2030')),_0x445cbd(_0x38a6e7,_0x4fdfdd('0xb18')),_0x445cbd(_0x38a6e7,'sms'),_0x445cbd(_0x38a6e7,'whatsapp'),_0x445cbd(_0x38a6e7,_0x4fdfdd('0x2104'))],_0x5cd08e))_0x588639=_0x4fdfdd('0x92a');else{if(_0x36f548()[_0x4fdfdd('0x1cb3')]([_0x445cbd(_0x38a6e7,_0x4fdfdd('0x1bc3')),_0x445cbd(_0x38a6e7,_0x4fdfdd('0x1800')),_0x445cbd(_0x38a6e7,_0x4fdfdd('0x2030')),_0x445cbd(_0x38a6e7,_0x4fdfdd('0xb18')),_0x445cbd(_0x38a6e7,_0x4fdfdd('0x4df')),_0x445cbd(_0x38a6e7,_0x4fdfdd('0xe7c')),_0x445cbd(_0x38a6e7,_0x4fdfdd('0x2104'))],_0x5cd08e))_0x588639=_0x4fdfdd('0x1050');else _0x36f548()[_0x4fdfdd('0x1d1')]([_0x445cbd(_0x38a6e7,_0x4fdfdd('0x1bc3')),_0x445cbd(_0x38a6e7,'chat'),_0x445cbd(_0x38a6e7,_0x4fdfdd('0x2030')),_0x445cbd(_0x38a6e7,_0x4fdfdd('0xb18')),_0x445cbd(_0x38a6e7,_0x4fdfdd('0x4df')),_0x445cbd(_0x38a6e7,_0x4fdfdd('0xe7c')),_0x445cbd(_0x38a6e7,_0x4fdfdd('0x2104'))],_0x5c44c2)?_0x588639=_0x4fdfdd('0x1533'):_0x588639=_0x4fdfdd('0x23a3');}_0x38a6e7[_0x4fdfdd('0x797')]!==_0x588639&&(_0x38a6e7[_0x4fdfdd('0x797')]=_0x588639,_0x38a6e7['init']?(_0x38a6e7[_0x4fdfdd('0x286f')]=![],_0x38a6e7['globalStatusTime']=_0x5cd08e(_0x588639)?_0x36f548()[_0x4fdfdd('0x17c2')](_0x57d4d1()(_0x38a6e7[_0x4fdfdd('0x1e10')])['format']('x')):_0x36f548()[_0x4fdfdd('0x1275')]([_0x38a6e7[_0x4fdfdd('0x24e5')],_0x38a6e7[_0x4fdfdd('0xe6a')],_0x38a6e7[_0x4fdfdd('0x1bab')],_0x38a6e7['smsStatusTime'],_0x38a6e7[_0x4fdfdd('0x3ee')],_0x38a6e7[_0x4fdfdd('0x22cb')],_0x38a6e7[_0x4fdfdd('0x1ce2')]])):_0x38a6e7['globalStatusTime']=_0x36f548()[_0x4fdfdd('0x17c2')](_0x57d4d1()()[_0x4fdfdd('0x1826')]('x')));}function _0x13079a(_0xe8419e){const _0xa8e372=_0x2fe5f6,_0x537455=_0x36f548()['startsWith'](_0x2d7f0f[_0xa8e372('0x1f2a')][_0xa8e372('0x59')],'-')?_0xa8e372('0x121a'):_0xa8e372('0x1875');return _0x36f548()['orderBy'](_0xe8419e,[_0x2d7f0f[_0xa8e372('0x1f2a')]['order'][_0xa8e372('0x814')]('-','')],[_0x537455]);}function _0x3136bc(){const _0x5756b4=_0x2fe5f6;_0x4c6ed3&&(_0x3c0a72[_0x5756b4('0x26c9')](_0x4c6ed3),_0x4c6ed3=null);}function _0x20d22e(_0x4b6c9c,_0x4247fe){const _0xe98f63=_0x2fe5f6;return _0x330fec[_0xe98f63('0x21d9')][_0xe98f63('0x5ab')]({'id':_0x4b6c9c['id']},{'screenrecording':_0x4247fe})['$promise'][_0xe98f63('0x151d')](function(_0x3bc063){const _0x22b9e3=_0xe98f63;_0x42ef27[_0x22b9e3('0x255')]({'title':_0x3bc063[_0x22b9e3('0xff9')]?_0x22b9e3('0x574')+_0x3bc063[_0x22b9e3('0xff9')]+_0x22b9e3('0xb0b')+_0x3bc063[_0x22b9e3('0x212f')]:_0x22b9e3('0x165b'),'msg':_0x3bc063[_0x22b9e3('0x4e8')]?JSON[_0x22b9e3('0x3e')](_0x3bc063['data'][_0x22b9e3('0x1b86')]):_0x3bc063['toString']()});});}_0x30829d[_0x2fe5f6('0x12d8')](_0x2fe5f6('0x4f7'),function(){const _0x12eaf1=_0x2fe5f6;_0x4d7fc9[_0x12eaf1('0x1b2e')]('user:save'),_0x4d7fc9[_0x12eaf1('0x1b2e')](_0x12eaf1('0x15bd')),_0x4d7fc9[_0x12eaf1('0x1b2e')]('user:agentconnect'),_0x4d7fc9[_0x12eaf1('0x1b2e')](_0x12eaf1('0xffb')),_0x3136bc();});}const _0x4e03e5=_0x460c7c,_0x3fa7b8=_0x351988['p']+_0x21d0f5('0x1b55'),_0x4cc0ba=_0x351988['p']+_0x21d0f5('0x622');_0x41e0e1['$inject']=[_0x21d0f5('0x1b80'),_0x21d0f5('0x17f5'),_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0x1b30'),_0x21d0f5('0x1fd'),'queues',_0x21d0f5('0x1223'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1d56'),'toasty',_0x21d0f5('0x25bc'),_0x21d0f5('0x1d63'),_0x21d0f5('0x1150')];function _0x41e0e1(_0xccf96b,_0x4cfb05,_0x18337d,_0x55537b,_0x315bf0,_0x18ba01,_0x28c761,_0x294ee4,_0xdbfad9,_0x3f677b,_0x1776da,_0x294409,_0x5367e0,_0x49440b){const _0x5a3c7a=_0x21d0f5,_0x39d93c=this,_0x284cb8=[_0x5a3c7a('0xdbd'),'available',_0x5a3c7a('0x1491'),'talking',_0x5a3c7a('0x17ba'),_0x5a3c7a('0x1fab'),_0x5a3c7a('0x1b86'),_0x5a3c7a('0x8b6'),'dialMethod',_0x5a3c7a('0x10d'),'paused'];_0x39d93c[_0x5a3c7a('0x32a')]=_0x49440b['getCurrentUser'](),_0x39d93c['count']=_0x28c761[_0x5a3c7a('0x27d2')]?_0x28c761[_0x5a3c7a('0x27d2')]:0x0,_0x39d93c[_0x5a3c7a('0x1de3')]=_0x28c761?_0x36f548()['keyBy'](_0x28c761[_0x5a3c7a('0x19b2')]?_0x28c761[_0x5a3c7a('0x19b2')]:[],'id'):{},_0x39d93c[_0x5a3c7a('0x1223')]=_0x294ee4?_0x36f548()[_0x5a3c7a('0x2130')](_0x294ee4['rows']?_0x294ee4[_0x5a3c7a('0x19b2')]:[],'id'):{},_0x39d93c[_0x5a3c7a('0x25bc')]=_0x294409,_0x39d93c[_0x5a3c7a('0x1d63')]=_0x5367e0&&_0x5367e0[_0x5a3c7a('0x27d2')]==0x1?_0x5367e0[_0x5a3c7a('0x19b2')][0x0]:null,_0x39d93c['crudPermissions']=_0x49440b['parseCrudPermissions'](_0x39d93c[_0x5a3c7a('0x1d63')]?_0x39d93c['userProfileSection']['crudPermissions']:null);_0x49440b[_0x5a3c7a('0x4ee')](_0x5a3c7a('0xf45'))?_0x39d93c[_0x5a3c7a('0x1f2a')]={'type':_0x5a3c7a('0x18a2'),'sort':'-updatedAt','limit':0xa,'page':0x1}:_0x39d93c[_0x5a3c7a('0x1f2a')]={'id':_0x39d93c[_0x5a3c7a('0x32a')]['id'],'channel':'mail','type':_0x5a3c7a('0x18a2'),'sort':'-updatedAt','limit':0xa,'page':0x1};_0x39d93c[_0x5a3c7a('0x2693')]=_0x3b2a6b,_0x39d93c[_0x5a3c7a('0x373')]=_0x2c4761,_0x39d93c['createOrEditMailQueue']=_0x553fcd,_0x39d93c[_0x5a3c7a('0x20dd')]=_0x1480fb,_0x39d93c['updateQueue']=_0xd93c4d,_0x39d93c['onSave']=_0x46b77e,_0x39d93c[_0x5a3c7a('0x17b7')]=_0x4ada39,_0x39d93c[_0x5a3c7a('0xcaf')]=_0xd8e1d1,_0x39d93c['onPause']=_0x3809bf,_0x39d93c[_0x5a3c7a('0x722')]=_0x47e889,_0x39d93c[_0x5a3c7a('0x37f')]=_0x30d434,_0x39d93c['$onInit']=_0x2d6dd0,_0x39d93c[_0x5a3c7a('0x59')]=[],_0x36f548()[_0x5a3c7a('0x41e')](_0x39d93c[_0x5a3c7a('0x1de3')],function(_0x18fea5){const _0x5d31f6=_0x5a3c7a;_0x39d93c[_0x5d31f6('0x59')][_0x5d31f6('0x105d')](_0x18fea5['id']);}),_0x3f677b['on'](_0x5a3c7a('0x1f3d'),_0x39d93c['onSave']),_0x3f677b['on'](_0x5a3c7a('0xafd'),_0x39d93c[_0x5a3c7a('0x17b7')]),_0x3f677b['on'](_0x5a3c7a('0xec0'),_0x39d93c[_0x5a3c7a('0xcaf')]),_0x3f677b['on']('user:update',_0x39d93c[_0x5a3c7a('0x199c')]),_0x3f677b['on']('userVoiceQueue:remove',_0x39d93c['onLogout']),_0x3f677b['on']('userVoiceQueue:save',_0x39d93c[_0x5a3c7a('0x722')]);function _0x2d6dd0(){const _0x4de62c=_0x5a3c7a,_0x27d51b=[];return _0x36f548()['forIn'](_0x39d93c['queues'],function(_0x3a3092,_0x4beaff){const _0x3ca199=a0_0xaf0c;_0x3a3092['paused']=0x0,_0x3a3092[_0x3ca199('0x1e84')]=0x0,_0x39d93c[_0x3ca199('0x1de3')][_0x4beaff][_0x3ca199('0x1401')]={},_0x27d51b[_0x3ca199('0x105d')](_0xdbfad9[_0x3ca199('0x251b')]['getMembers']({'id':_0x4beaff})['$promise']),_0x39d93c[_0x3ca199('0x1223')][_0x4beaff]&&_0x36f548()['merge'](_0x3a3092,_0x36f548()['pick'](_0x39d93c['rpcQueues'][_0x4beaff],_0x284cb8));}),_0x55537b[_0x4de62c('0x7c')](_0x27d51b)[_0x4de62c('0x11bf')](function(_0x6d9c8f){const _0x5c2194=_0x4de62c;for(let _0x546574=0x0;_0x546574<_0x6d9c8f[_0x5c2194('0x1e22')];_0x546574+=0x1){for(let _0x5454a4=0x0;_0x5454a4<_0x6d9c8f[_0x546574][_0x5c2194('0x19b2')][_0x5c2194('0x1e22')];_0x5454a4++){_0x6d9c8f[_0x546574][_0x5c2194('0x19b2')][_0x5454a4][_0x5c2194('0xdb0')]&&_0x39d93c['queues'][_0x6d9c8f[_0x546574][_0x5c2194('0x19b2')][_0x5454a4][_0x5c2194('0x5b0')]][_0x5c2194('0xdb0')]++,_0x39d93c[_0x5c2194('0x1de3')][_0x6d9c8f[_0x546574][_0x5c2194('0x19b2')][_0x5454a4][_0x5c2194('0x5b0')]][_0x5c2194('0x1e84')]++,_0x39d93c[_0x5c2194('0x1de3')][_0x6d9c8f[_0x546574][_0x5c2194('0x19b2')][_0x5454a4][_0x5c2194('0x5b0')]][_0x5c2194('0x1401')][_0x6d9c8f[_0x546574][_0x5c2194('0x19b2')][_0x5454a4][_0x5c2194('0x2342')]]=_0x6d9c8f[_0x546574]['rows'][_0x5454a4][_0x5c2194('0x5b0')];}}})[_0x4de62c('0x151d')](function(_0x20355d){const _0x588be7=_0x4de62c;console[_0x588be7('0x255')](_0x20355d);});}function _0x46b77e(_0x5e8331){const _0x3ab2f3=_0x5a3c7a;_0x39d93c[_0x3ab2f3('0x1de3')][_0x5e8331['id']]&&_0x36f548()[_0x3ab2f3('0x47b')](_0x39d93c[_0x3ab2f3('0x1de3')][_0x5e8331['id']],_0x36f548()[_0x3ab2f3('0x258')](_0x5e8331,_0x284cb8));}function _0x4ada39(_0x5487eb){const _0x498ed5=_0x5a3c7a;_0x39d93c[_0x498ed5('0x1de3')][_0x5487eb[_0x498ed5('0x5b0')]]&&_0x39d93c['queues'][_0x5487eb[_0x498ed5('0x5b0')]][_0x498ed5('0x1e84')]++;}function _0xd8e1d1(_0x82e68a){const _0x4ef5f3=_0x5a3c7a;_0x39d93c['queues'][_0x82e68a[_0x4ef5f3('0x5b0')]]&&_0x39d93c[_0x4ef5f3('0x1de3')][_0x82e68a['MailQueueId']]['loggedInDb']--;}function _0x3809bf(_0x1b318d){const _0x1eda4e=_0x5a3c7a;console[_0x1eda4e('0xc78')](_0x1eda4e('0x199c'),_0x1b318d);if(_0x1b318d[_0x1eda4e('0x20d')])_0x36f548()[_0x1eda4e('0x41e')](_0x39d93c[_0x1eda4e('0x1de3')],function(_0x595016){const _0x135c1b=_0x1eda4e;_0x595016[_0x135c1b('0x1401')][_0x1b318d['id']]&&(_0x595016[_0x135c1b('0xdb0')]+=0x1,console[_0x135c1b('0xc78')](_0x135c1b('0x92a')));});else!_0x1b318d['voicePause']&&_0x36f548()[_0x1eda4e('0x41e')](_0x39d93c[_0x1eda4e('0x1de3')],function(_0x2ebcaf){const _0xcbcdbd=_0x1eda4e;_0x2ebcaf[_0xcbcdbd('0x1401')][_0x1b318d['id']]&&(_0x2ebcaf[_0xcbcdbd('0xdb0')]>0x0&&(_0x2ebcaf[_0xcbcdbd('0xdb0')]-=0x1,console[_0xcbcdbd('0xc78')]('unpause')));});}function _0x47e889(_0x5964d2){const _0x10e2fe=_0x5a3c7a;console[_0x10e2fe('0xc78')](_0x10e2fe('0x107b'),_0x5964d2),_0x39d93c[_0x10e2fe('0x1de3')][_0x5964d2[_0x10e2fe('0x5b0')]]&&(_0x39d93c[_0x10e2fe('0x1de3')][_0x5964d2['MailQueueId']][_0x10e2fe('0x1e84')]+=0x1,_0x39d93c[_0x10e2fe('0x1de3')][_0x5964d2['MailQueueId']][_0x10e2fe('0x1401')][_0x5964d2[_0x10e2fe('0x2342')]]=_0x5964d2[_0x10e2fe('0x5b0')]);}function _0x30d434(_0xd9d2c3){const _0x26516b=_0x5a3c7a;console[_0x26516b('0xc78')](_0x26516b('0x37f'),_0xd9d2c3),_0x39d93c[_0x26516b('0x1de3')][_0xd9d2c3['MailQueueId']]&&_0x39d93c[_0x26516b('0x1de3')][_0xd9d2c3['MailQueueId']][_0x26516b('0x1e84')]>0x0&&(_0x39d93c['queues'][_0xd9d2c3[_0x26516b('0x5b0')]][_0x26516b('0x1e84')]-=0x1,delete _0x39d93c[_0x26516b('0x1de3')][_0xd9d2c3[_0x26516b('0x5b0')]][_0x26516b('0x1401')][_0xd9d2c3[_0x26516b('0x2342')]]);}let _0x5ca939=!![],_0x58c88b=0x1;_0xccf96b[_0x5a3c7a('0x2087')](_0x5a3c7a('0x842'),function(_0x4dfa15,_0x4b6e99){const _0x2d4ea1=_0x5a3c7a;_0x5ca939?_0x4cfb05(function(){_0x5ca939=![];}):(!_0x4b6e99&&(_0x58c88b=_0x39d93c['query'][_0x2d4ea1('0x1c2')]),_0x4dfa15!==_0x4b6e99&&(_0x39d93c[_0x2d4ea1('0x1f2a')][_0x2d4ea1('0x1c2')]=0x1),!_0x4dfa15&&(_0x39d93c[_0x2d4ea1('0x1f2a')][_0x2d4ea1('0x1c2')]=_0x58c88b),_0x39d93c[_0x2d4ea1('0x373')]());});function _0x3b2a6b(_0x76d68c){const _0x246083=_0x5a3c7a;_0x39d93c[_0x246083('0x27d2')]=_0x76d68c[_0x246083('0x27d2')],_0x39d93c[_0x246083('0x1de3')]=_0x76d68c?_0x36f548()[_0x246083('0x2130')](_0x76d68c[_0x246083('0x19b2')]?_0x76d68c[_0x246083('0x19b2')]:[],'id'):{};if(_0x76d68c['rows']){_0x39d93c['order']=[];for(let _0x218ab1=0x0;_0x218ab1<_0x76d68c[_0x246083('0x19b2')][_0x246083('0x1e22')];_0x218ab1++){_0x39d93c[_0x246083('0x59')]['push'](_0x76d68c[_0x246083('0x19b2')][_0x218ab1]['id']);}}_0x2d6dd0();}function _0x2c4761(){const _0x5cb4bb=_0x5a3c7a;_0x39d93c['query'][_0x5cb4bb('0x1393')]=(_0x39d93c['query']['page']-0x1)*_0x39d93c[_0x5cb4bb('0x1f2a')]['limit'],_0x49440b['hasRole']('admin')?_0x39d93c[_0x5cb4bb('0x13f')]=_0xdbfad9[_0x5cb4bb('0x251b')]['get'](_0x39d93c['query'],_0x3b2a6b)[_0x5cb4bb('0x1549')]:(_0x39d93c[_0x5cb4bb('0x1f2a')]['id']=_0x39d93c[_0x5cb4bb('0x25bc')]['id'],_0x39d93c[_0x5cb4bb('0x1f2a')][_0x5cb4bb('0xe6')]='MailQueues',_0x39d93c[_0x5cb4bb('0x13f')]=_0xdbfad9['userProfile'][_0x5cb4bb('0x228e')](_0x39d93c['query'],_0x3b2a6b)[_0x5cb4bb('0x1549')]);}function _0x553fcd(_0x45ddca,_0x337aa9){const _0x2335e5=_0x5a3c7a;_0x18337d[_0x2335e5('0xb9')]({'controller':_0x2335e5('0xc2a'),'controllerAs':'vm','templateUrl':_0x3fa7b8,'parent':angular[_0x2335e5('0x1e73')](_0x315bf0[_0x2335e5('0x1d2')]),'targetEvent':_0x45ddca,'clickOutsideToClose':!![],'locals':{'mailQueue':_0x337aa9,'mailQueues':_0x36f548()[_0x2335e5('0x1643')](_0x39d93c[_0x2335e5('0x1de3')]),'license':null,'setting':null,'crudPermissions':_0x39d93c[_0x2335e5('0xb25')]}});}function _0x1480fb(_0x5ed2de,_0x269cae){const _0x4c06f4=_0x5a3c7a;_0x18337d['show']({'controller':_0x4c06f4('0x1e0e'),'controllerAs':'vm','templateUrl':_0x4cc0ba,'parent':angular[_0x4c06f4('0x1e73')](_0x315bf0[_0x4c06f4('0x1d2')]),'targetEvent':_0x5ed2de,'clickOutsideToClose':!![],'locals':{'mailQueue':_0x269cae,'mailQueues':_0x39d93c['queues']?_0x39d93c[_0x4c06f4('0x1de3')][_0x4c06f4('0x19b2')]:[],'realtime':![],'crudPermissions':_0x39d93c[_0x4c06f4('0xb25')]}});}function _0xd93c4d(_0x5152eb){const _0x284d89=_0x5a3c7a;return _0xdbfad9[_0x284d89('0x251b')]['update'](_0x5152eb)['$promise'][_0x284d89('0x11bf')](function(){const _0x3a1ba4=_0x284d89;_0x1776da[_0x3a1ba4('0x2693')]({'title':_0x3a1ba4('0x1544'),'msg':_0x5152eb['name']?_0x5152eb['name']+_0x3a1ba4('0xd7'):''});})[_0x284d89('0x151d')](function(_0x4eaf3d){const _0x42655d=_0x284d89;_0x1776da[_0x42655d('0x255')]({'title':_0x42655d('0xdc1'),'msg':_0x4eaf3d['message']});});}_0xccf96b[_0x5a3c7a('0x12d8')](_0x5a3c7a('0x4f7'),function(){const _0x228423=_0x5a3c7a;_0x3f677b[_0x228423('0x1b2e')](_0x228423('0x1f3d')),_0x3f677b[_0x228423('0x1b2e')]('userMailQueue:remove'),_0x3f677b[_0x228423('0x1b2e')](_0x228423('0xafd')),_0x3f677b[_0x228423('0x1b2e')](_0x228423('0x15bd')),_0x3f677b[_0x228423('0x1b2e')](_0x228423('0x5c6')),_0x3f677b['removeAllListeners'](_0x228423('0x1929'));});}const _0x3ac085=_0x41e0e1;function _0x240135(){const _0x5c7a30=_0x21d0f5;return{'status':{'registered':'green-300-fg\x20icon-checkbox-marked-circle','unregistered':_0x5c7a30('0x58e'),'lagged':_0x5c7a30('0x58e'),'reachable':'green-300-fg\x20icon-checkbox-marked-circle','unreachable':_0x5c7a30('0x58e'),'unknown':_0x5c7a30('0xcc')},'state':{'unknown':_0x5c7a30('0x95b'),'not_inuse':_0x5c7a30('0x8b2'),'inuse':_0x5c7a30('0x52b'),'busy':'red-300-fg\x20icon-phone-locked','invalid':_0x5c7a30('0x95b'),'unavailable':_0x5c7a30('0x95b'),'ringing':'blue-300-fg\x20icon-phone-incoming','ringinuse':_0x5c7a30('0x1df'),'onhold':_0x5c7a30('0x142a')},'channelStatus':{'ring':_0x5c7a30('0x1df'),'up':_0x5c7a30('0x198'),'hangup':_0x5c7a30('0x393')},'channelStatusOut':{'ring':_0x5c7a30('0x27f5'),'up':_0x5c7a30('0x198'),'hangup':_0x5c7a30('0x393')}};}const _0x5b4883=_0x240135;_0x2da99b[_0x21d0f5('0x1e9a')]=['$scope','$state','socket'];function _0x2da99b(_0x10d65b,_0x4093b6,_0x41a452){const _0x22b93f=_0x21d0f5,_0x26a623=this;_0x41a452[_0x22b93f('0x143e')](),_0x41a452[_0x22b93f('0x196c')](),_0x26a623[_0x22b93f('0x1179')]=0x0;switch(_0x4093b6[_0x22b93f('0x191')]['name']){case _0x22b93f('0x671'):_0x26a623[_0x22b93f('0x1179')]=0x0;break;case _0x22b93f('0x1833'):_0x26a623[_0x22b93f('0x1179')]=0x1;break;case _0x22b93f('0x9c3'):_0x26a623[_0x22b93f('0x1179')]=0x2;break;default:_0x26a623[_0x22b93f('0x1179')]=0x0,_0x4093b6['go'](_0x22b93f('0x671'));}_0x10d65b['$watch'](_0x22b93f('0x14f1'),function(_0x33d75b,_0x5efcd5){const _0xe80a71=_0x22b93f;if(_0x33d75b!==_0x5efcd5)switch(_0x33d75b){case 0x0:_0x4093b6['go']('app.mail.realtime.agents');break;case 0x1:_0x4093b6['go']('app.mail.realtime.queues');break;case 0x2:_0x4093b6['go'](_0xe80a71('0x9c3'));break;default:_0x4093b6['go'](_0xe80a71('0x671'));}});}const _0x2624fa=_0x2da99b;_0x230159[_0x21d0f5('0x1e9a')]=['$stateProvider'];function _0x230159(_0x4512c1){const _0x27bca0=_0x21d0f5;_0x4512c1[_0x27bca0('0x2124')](_0x27bca0('0x8d4'),{'url':_0x27bca0('0x25aa'),'views':{'content@app':{'templateUrl':_0x50d4fa,'controller':'MailRealtimeController\x20as\x20vm'}},'resolve':{'userProfile':['apiResolver',_0x27bca0('0x1150'),function(_0x5e6280,_0x38561e){const _0x6b2da5=_0x27bca0;return _0x38561e[_0x6b2da5('0x4ee')](_0x6b2da5('0xf45'))?null:_0x5e6280[_0x6b2da5('0xa28')]('userProfile@get',{'fields':_0x6b2da5('0xd30'),'id':_0x38561e[_0x6b2da5('0x2428')]()[_0x6b2da5('0x781')]});}],'userProfileSection':[_0x27bca0('0x218e'),_0x27bca0('0x1150'),function(_0x52c977,_0x52f136){const _0x1fdf2e=_0x27bca0;return _0x52f136[_0x1fdf2e('0x4ee')]('admin')?null:_0x52c977['resolve']('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x52f136[_0x1fdf2e('0x2428')]()[_0x1fdf2e('0x781')],'sectionId':0x262});}]},'authenticate':!![],'permissionId':0x262})[_0x27bca0('0x2124')](_0x27bca0('0x671'),{'url':_0x27bca0('0x2260'),'controller':_0x27bca0('0x1ee9'),'templateUrl':_0x24d407,'resolve':{'pauses':[_0x27bca0('0x218e'),function(_0x4e57e8){const _0x5611f5=_0x27bca0;return _0x4e57e8['resolve'](_0x5611f5('0x2178'),{'nolimit':!![]});}],'agents':[_0x27bca0('0x218e'),_0x27bca0('0x1150'),function(_0x4cd522,_0xcdeb4){const _0x577239=_0x27bca0;return _0xcdeb4[_0x577239('0x4ee')](_0x577239('0xf45'))?_0x4cd522['resolve']('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':_0x577239('0x18c4'),'sort':_0x577239('0x27af'),'nolimit':!![]}):_0x4cd522[_0x577239('0xa28')](_0x577239('0xb0d'),{'id':_0xcdeb4[_0x577239('0x2428')]()[_0x577239('0x781')],'section':'Agents','fields':_0x577239('0xd80'),'role':_0x577239('0x18c4'),'sort':_0x577239('0x27af'),'nolimit':!![]});}],'userProfile':[_0x27bca0('0x218e'),_0x27bca0('0x1150'),function(_0x39c51c,_0x5758ca){const _0x144f94=_0x27bca0;return _0x5758ca['hasRole'](_0x144f94('0xf45'))?null:_0x39c51c[_0x144f94('0xa28')](_0x144f94('0x428'),{'fields':_0x144f94('0xd30'),'id':_0x5758ca[_0x144f94('0x2428')]()['userProfileId']});}],'userProfileSection':[_0x27bca0('0x218e'),_0x27bca0('0x1150'),function(_0x2ec4b5,_0x35d0c3){const _0x4db315=_0x27bca0;return _0x35d0c3[_0x4db315('0x4ee')]('admin')?null:_0x2ec4b5['resolve'](_0x4db315('0x2762'),{'fields':_0x4db315('0x36d'),'userProfileId':_0x35d0c3[_0x4db315('0x2428')]()[_0x4db315('0x781')],'sectionId':0xca});}],'rpcAgents':['apiResolver',function(_0x17b0ab){const _0x5856a5=_0x27bca0;return _0x17b0ab[_0x5856a5('0xa28')]('rpc@getAgents');}]},'authenticate':!![],'permissionId':0x262})[_0x27bca0('0x2124')](_0x27bca0('0x1833'),{'url':_0x27bca0('0xb98'),'controller':_0x27bca0('0xc10'),'templateUrl':_0x4e2545,'resolve':{'queues':[_0x27bca0('0x218e'),_0x27bca0('0x1150'),function(_0x50327a,_0x50b476){const _0x637c13=_0x27bca0;return _0x50b476['hasRole']('admin')?_0x50327a[_0x637c13('0xa28')]('mailQueue@get',{'type':_0x637c13('0x18a2'),'sort':_0x637c13('0x1c74'),'limit':0xa,'offset':0x0}):_0x50327a[_0x637c13('0xa28')](_0x637c13('0xb0d'),{'id':_0x50b476['getCurrentUser']()[_0x637c13('0x781')],'section':_0x637c13('0x9af'),'channel':_0x637c13('0x2030'),'type':_0x637c13('0x18a2'),'sort':_0x637c13('0x1c74'),'limit':0xa,'page':0x1});}],'userProfile':[_0x27bca0('0x218e'),_0x27bca0('0x1150'),function(_0x3b6939,_0x56370a){const _0x580e66=_0x27bca0;return _0x56370a[_0x580e66('0x4ee')](_0x580e66('0xf45'))?null:_0x3b6939[_0x580e66('0xa28')](_0x580e66('0x428'),{'fields':_0x580e66('0xd30'),'id':_0x56370a[_0x580e66('0x2428')]()[_0x580e66('0x781')]});}],'userProfileSection':[_0x27bca0('0x218e'),_0x27bca0('0x1150'),function(_0x4f6212,_0x2dfcd1){const _0x6dc5c1=_0x27bca0;return _0x2dfcd1[_0x6dc5c1('0x4ee')](_0x6dc5c1('0xf45'))?null:_0x4f6212['resolve'](_0x6dc5c1('0x2762'),{'fields':_0x6dc5c1('0x36d'),'userProfileId':_0x2dfcd1['getCurrentUser']()[_0x6dc5c1('0x781')],'sectionId':0x259});}],'rpcQueues':[_0x27bca0('0x218e'),function(_0x11725d){const _0x31551b=_0x27bca0;return _0x11725d[_0x31551b('0xa28')](_0x31551b('0x11f'));}]},'authenticate':!![],'permissionId':0x262})[_0x27bca0('0x2124')]('app.mail.realtime.accounts',{'url':_0x27bca0('0x27c8'),'controller':_0x27bca0('0x7f6'),'templateUrl':_0x213bd9,'resolve':{'mailAccounts':[_0x27bca0('0x218e'),'Auth',function(_0x453d7d,_0x49ec29){const _0x3cfd39=_0x27bca0;return _0x49ec29[_0x3cfd39('0x4ee')](_0x3cfd39('0xf45'))?_0x453d7d[_0x3cfd39('0xa28')](_0x3cfd39('0x3f0'),{'sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x453d7d[_0x3cfd39('0xa28')](_0x3cfd39('0xb0d'),{'id':_0x49ec29['getCurrentUser']()['userProfileId'],'section':_0x3cfd39('0x48d'),'sort':_0x3cfd39('0x1c74'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x27bca0('0x218e'),_0x27bca0('0x1150'),function(_0x503555,_0x4c8ba1){const _0x75bfa2=_0x27bca0;return _0x4c8ba1[_0x75bfa2('0x4ee')](_0x75bfa2('0xf45'))?null:_0x503555[_0x75bfa2('0xa28')](_0x75bfa2('0x428'),{'fields':_0x75bfa2('0xd30'),'id':_0x4c8ba1[_0x75bfa2('0x2428')]()[_0x75bfa2('0x781')]});}],'userProfileSection':['apiResolver','Auth',function(_0x1b868b,_0x498a8b){const _0x455fe5=_0x27bca0;return _0x498a8b['hasRole'](_0x455fe5('0xf45'))?null:_0x1b868b[_0x455fe5('0xa28')](_0x455fe5('0x2762'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x498a8b[_0x455fe5('0x2428')]()[_0x455fe5('0x781')],'sectionId':0x25a});}],'rpcMailAccounts':['apiResolver',function(_0x4b639f){const _0x498585=_0x27bca0;return _0x4b639f['resolve'](_0x498585('0x20f'));}]},'authenticate':!![],'permissionId':0x262});}angular[_0x21d0f5('0x2768')](_0x21d0f5('0x8d4'),[])[_0x21d0f5('0x53a')](_0x230159)[_0x21d0f5('0x23eb')](_0x21d0f5('0x2269'),_0x4e03e5)[_0x21d0f5('0x23eb')](_0x21d0f5('0x2009'),_0x3ac085)[_0x21d0f5('0x2729')](_0x21d0f5('0x927'),_0x5b4883)[_0x21d0f5('0x23eb')](_0x21d0f5('0x3ff'),_0x2624fa);const _0x2fc3d8=_0x351988['p']+'src/js/modules/main/apps/mail/views/mailQueues/mailQueues.html/mailQueues.html',_0x58f0d4=_0x351988['p']+_0x21d0f5('0x1a77'),_0x55fb29=_0x351988['p']+_0x21d0f5('0xcf'),_0x27e1e2=_0x351988['p']+_0x21d0f5('0x229a'),_0x4ccb77=_0x351988['p']+_0x21d0f5('0x2007');_0x26e4ad[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),'$state','$location',_0x21d0f5('0x1ca2'),'$q','$translate',_0x21d0f5('0x142d'),'mailAccounts',_0x21d0f5('0x1d47'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),'license',_0x21d0f5('0x23e1'),_0x21d0f5('0xb25')];function _0x26e4ad(_0x50d2d5,_0x191b04,_0x9acf11,_0x389e7f,_0x3a8cac,_0x5adc7d,_0xb5d3a9,_0x162cd5,_0x3175ec,_0x58e20a,_0x28cfd1,_0x420b68,_0x52620d,_0x4f9cc7){const _0x4645a6=_0x21d0f5,_0x2375d4=this;_0x2375d4[_0x4645a6('0x32a')]=_0x28cfd1[_0x4645a6('0x2428')](),_0x2375d4[_0x4645a6('0x120f')]=[],_0x2375d4[_0x4645a6('0x23e1')]=_0x52620d,_0x2375d4['license']=_0x420b68,_0x2375d4[_0x4645a6('0xb25')]=_0x4f9cc7,_0x2375d4[_0x4645a6('0x2c9')]={},_0x2375d4[_0x4645a6('0x2834')]=_0x2375d4['setting']&&_0x2375d4[_0x4645a6('0x23e1')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2375d4[_0x4645a6('0x134b')]='MAIL.EDIT_MAILACCOUNT',_0x2375d4[_0x4645a6('0x1d47')]=angular[_0x4645a6('0x6fb')](_0x3175ec),_0x2375d4[_0x4645a6('0xf1a')]=_0x162cd5,_0x2375d4['newMailAccount']=![];!_0x2375d4[_0x4645a6('0x1d47')]&&(_0x2375d4[_0x4645a6('0x1d47')]={'active':!![],'cservice':_0x4645a6('0xb5f'),'cauthentication':!![],'fontSize':0xd,'waitForTheAssignedAgent':0xa,'notificationSound':!![],'queueTransferTimeout':0x12c,'agentTransferTimeout':0x12c},_0x2375d4[_0x4645a6('0x134b')]=_0x4645a6('0x233a'),_0x2375d4[_0x4645a6('0x1229')]=!![]);_0x191b04['params']['id']&&(_0x2375d4[_0x4645a6('0x1d47')][_0x4645a6('0x2294')]=_0x191b04[_0x4645a6('0x1ab3')]['id']);_0x2375d4[_0x4645a6('0x26e4')]=_0x1ec8b6,_0x2375d4[_0x4645a6('0x2438')]=_0x1254a9,_0x2375d4[_0x4645a6('0x26bc')]=_0x3d62e4,_0x2375d4[_0x4645a6('0x1bd1')]=_0x146b5a,_0x2375d4[_0x4645a6('0xc4e')]=_0x31478f,_0x28cfd1['hasRole'](_0x4645a6('0xf45'))?_0x58e20a[_0x4645a6('0xbef')][_0x4645a6('0xbaa')]({'fields':_0x4645a6('0x721'),'sort':'name'})[_0x4645a6('0x1549')][_0x4645a6('0x11bf')](function(_0x44c83c){const _0x24bac3=_0x4645a6;_0x2375d4[_0x24bac3('0x2410')]=_0x44c83c['rows']||[];})[_0x4645a6('0x151d')](function(_0x15b336){const _0x46a183=_0x4645a6;_0xb5d3a9[_0x46a183('0x255')]({'title':_0x15b336[_0x46a183('0xff9')]?_0x46a183('0x574')+_0x15b336[_0x46a183('0xff9')]+_0x46a183('0xb0b')+_0x15b336[_0x46a183('0x212f')]:_0x46a183('0x27ed'),'msg':_0x15b336[_0x46a183('0x4e8')]?JSON[_0x46a183('0x3e')](_0x15b336[_0x46a183('0x4e8')]):_0x15b336[_0x46a183('0xaab')]()});}):_0x58e20a[_0x4645a6('0xbef')][_0x4645a6('0xbaa')]({'fields':'id,name','sort':_0x4645a6('0x1909')})['$promise'][_0x4645a6('0x11bf')](function(_0x24c9c7){const _0x208c47=_0x4645a6;_0x2375d4[_0x208c47('0x2410')]=_0x24c9c7[_0x208c47('0x19b2')]||[];})[_0x4645a6('0x11bf')](function(){const _0x440808=_0x4645a6;return _0x58e20a['userProfileSection']['get']({'userProfileId':_0x2375d4['currentUser'][_0x440808('0x781')],'sectionId':0x12d})[_0x440808('0x1549')];})['then'](function(_0x29ae39){const _0x5b0eaf=_0x4645a6,_0x22d1c5=_0x29ae39&&_0x29ae39[_0x5b0eaf('0x19b2')]?_0x29ae39[_0x5b0eaf('0x19b2')][0x0]:null;if(!_0x22d1c5){const _0x58748f=[];let _0x39ebf5=null;_0x2375d4[_0x5b0eaf('0x1d47')]&&(_0x39ebf5=_0x36f548()[_0x5b0eaf('0x1ad4')](_0x2375d4[_0x5b0eaf('0x2410')],{'id':Number(_0x2375d4[_0x5b0eaf('0x1d47')]['ListId'])}));for(let _0x448887=0x0;_0x448887<_0x2375d4[_0x5b0eaf('0x2410')]['length'];_0x448887++){_0x39ebf5&&_0x2375d4['lists'][_0x448887]['id']===_0x39ebf5['id']&&(_0x2375d4[_0x5b0eaf('0x2410')][_0x448887][_0x5b0eaf('0x254a')]=![],_0x58748f[_0x5b0eaf('0x105d')](_0x2375d4[_0x5b0eaf('0x2410')][_0x448887]));}_0x2375d4[_0x5b0eaf('0x2410')]=_0x58748f;}else{if(!_0x22d1c5['autoAssociation'])return _0x58e20a[_0x5b0eaf('0x26d1')][_0x5b0eaf('0xbaa')]({'sectionId':_0x22d1c5['id']})[_0x5b0eaf('0x1549')][_0x5b0eaf('0x11bf')](function(_0x1ed43f){const _0x43cd1e=_0x5b0eaf,_0x262576=_0x36f548()['map'](_0x1ed43f[_0x43cd1e('0x19b2')],function(_0x385518){const _0x1c4844=_0x43cd1e;return _0x36f548()[_0x1c4844('0x1ad4')](_0x2375d4[_0x1c4844('0x2410')],{'id':_0x385518['resourceId']});});let _0x351ab4=null;_0x2375d4['mailAccount']&&(_0x351ab4=_0x36f548()[_0x43cd1e('0x1ad4')](_0x2375d4[_0x43cd1e('0x2410')],{'id':Number(_0x2375d4[_0x43cd1e('0x1d47')]['ListId'])}));if(_0x351ab4&&!_0x36f548()[_0x43cd1e('0x1cb3')](_0x262576,['id',_0x351ab4['id']])){const _0x4beaa0=_0x36f548()['find'](_0x2375d4[_0x43cd1e('0x2410')],{'id':_0x351ab4['id']});_0x4beaa0[_0x43cd1e('0x254a')]=![],_0x262576[_0x43cd1e('0x105d')](_0x4beaa0);}_0x2375d4[_0x43cd1e('0x2410')]=_0x262576;});}})[_0x4645a6('0x151d')](function(_0x1563ac){const _0x1c5299=_0x4645a6;_0xb5d3a9['error']({'title':_0x1563ac['status']?_0x1c5299('0x574')+_0x1563ac['status']+_0x1c5299('0xb0b')+_0x1563ac[_0x1c5299('0x212f')]:_0x1c5299('0xb71'),'msg':_0x1563ac[_0x1c5299('0x4e8')]?JSON['stringify'](_0x1563ac[_0x1c5299('0x4e8')]):_0x1563ac[_0x1c5299('0xaab')]()});});function _0x1ec8b6(){const _0x1a235a=_0x4645a6;_0x2375d4[_0x1a235a('0x120f')]=[],_0x58e20a[_0x1a235a('0x1d47')][_0x1a235a('0x259')](_0x2375d4['mailAccount'])[_0x1a235a('0x1549')][_0x1a235a('0x11bf')](function(_0x26b4bd){const _0x5a8396=_0x1a235a;_0x2375d4['mailAccounts'][_0x5a8396('0x880')](_0x26b4bd['toJSON']()),_0xb5d3a9[_0x5a8396('0x2693')]({'title':_0x5a8396('0x25c1'),'msg':_0x2375d4[_0x5a8396('0x1d47')][_0x5a8396('0x1909')]?_0x2375d4[_0x5a8396('0x1d47')][_0x5a8396('0x1909')]+_0x5a8396('0x7fb'):''}),_0x31478f(_0x26b4bd);})['catch'](function(_0x3d2bdb){const _0x759271=_0x1a235a;if(_0x3d2bdb[_0x759271('0x4e8')]&&_0x3d2bdb[_0x759271('0x4e8')][_0x759271('0x120f')]&&_0x3d2bdb['data'][_0x759271('0x120f')][_0x759271('0x1e22')]){_0x2375d4[_0x759271('0x120f')]=_0x3d2bdb[_0x759271('0x4e8')][_0x759271('0x120f')]||[{'message':_0x3d2bdb[_0x759271('0xaab')](),'type':_0x759271('0x1333')}];for(let _0x4b57eb=0x0;_0x4b57eb<_0x3d2bdb['data'][_0x759271('0x120f')][_0x759271('0x1e22')];_0x4b57eb+=0x1){_0xb5d3a9[_0x759271('0x255')]({'title':_0x3d2bdb[_0x759271('0x4e8')][_0x759271('0x120f')][_0x4b57eb][_0x759271('0x19fd')],'msg':_0x3d2bdb[_0x759271('0x4e8')]['errors'][_0x4b57eb][_0x759271('0x1b86')]});}}else _0xb5d3a9[_0x759271('0x255')]({'title':_0x3d2bdb[_0x759271('0xff9')]?'API:'+_0x3d2bdb[_0x759271('0xff9')]+'\x20-\x20'+_0x3d2bdb[_0x759271('0x212f')]:_0x759271('0x1333'),'msg':_0x3d2bdb['data']?JSON[_0x759271('0x3e')](_0x3d2bdb[_0x759271('0x4e8')][_0x759271('0x1b86')]):_0x3d2bdb[_0x759271('0xaab')]()});});}function _0x1254a9(){const _0x3ebd48=_0x4645a6;_0x2375d4['errors']=[],_0x58e20a[_0x3ebd48('0x1d47')]['update']({'id':_0x2375d4[_0x3ebd48('0x1d47')]['id']},_0x2375d4[_0x3ebd48('0x1d47')])['$promise'][_0x3ebd48('0x11bf')](function(_0x33f03f){const _0x1ecd15=_0x3ebd48,_0x25a44a=_0x36f548()[_0x1ecd15('0x1ad4')](_0x2375d4[_0x1ecd15('0xf1a')],{'id':_0x33f03f['id']});_0x25a44a&&_0x36f548()[_0x1ecd15('0x47b')](_0x25a44a,_0x36f548()[_0x1ecd15('0x258')](_0x33f03f[_0x1ecd15('0x2866')](),_0x36f548()[_0x1ecd15('0xe22')](_0x25a44a))),_0xb5d3a9[_0x1ecd15('0x2693')]({'title':_0x1ecd15('0x11bc'),'msg':_0x2375d4['mailAccount'][_0x1ecd15('0x1909')]?_0x2375d4[_0x1ecd15('0x1d47')][_0x1ecd15('0x1909')]+_0x1ecd15('0x1a78'):''}),_0x31478f(_0x33f03f);})[_0x3ebd48('0x151d')](function(_0x224b3e){const _0x18ec17=_0x3ebd48;if(_0x224b3e[_0x18ec17('0x4e8')]&&_0x224b3e['data']['errors']&&_0x224b3e[_0x18ec17('0x4e8')][_0x18ec17('0x120f')]['length']){_0x2375d4[_0x18ec17('0x120f')]=_0x224b3e['data'][_0x18ec17('0x120f')]||[{'message':_0x224b3e[_0x18ec17('0xaab')](),'type':_0x18ec17('0x1348')}];for(let _0x1e8004=0x0;_0x1e8004<_0x224b3e['data'][_0x18ec17('0x120f')][_0x18ec17('0x1e22')];_0x1e8004++){_0xb5d3a9[_0x18ec17('0x255')]({'title':_0x224b3e[_0x18ec17('0x4e8')]['errors'][_0x1e8004]['type'],'msg':_0x224b3e['data'][_0x18ec17('0x120f')][_0x1e8004][_0x18ec17('0x1b86')]});}}else _0xb5d3a9['error']({'title':_0x224b3e[_0x18ec17('0xff9')]?_0x18ec17('0x574')+_0x224b3e['status']+_0x18ec17('0xb0b')+_0x224b3e[_0x18ec17('0x212f')]:_0x18ec17('0x1348'),'msg':_0x224b3e['data']?JSON[_0x18ec17('0x3e')](_0x224b3e[_0x18ec17('0x4e8')][_0x18ec17('0x1b86')]):_0x224b3e['toString']()});});}function _0x3d62e4(_0x179853){const _0x24e746=_0x4645a6;if(_0x2375d4[_0x24e746('0x1d47')]['service'])return _0xb5d3a9[_0x24e746('0x255')]({'title':_0x24e746('0x1756'),'msg':_0x24e746('0x1a61')});_0x2375d4[_0x24e746('0x120f')]=[];const _0x310a52=_0x389e7f[_0x24e746('0x132b')]()['title'](_0x24e746('0x1fa9'))[_0x24e746('0x252a')](_0x24e746('0xcbd'))[_0x24e746('0xb2e')](_0x24e746('0x2af'))['ok'](_0x24e746('0x1167'))['cancel']('Cancel')['targetEvent'](_0x179853);_0x389e7f[_0x24e746('0xb9')](_0x310a52)[_0x24e746('0x11bf')](function(){const _0x35e36b=_0x24e746;_0x58e20a[_0x35e36b('0x1d47')][_0x35e36b('0x2088')]({'id':_0x2375d4[_0x35e36b('0x1d47')]['id']})[_0x35e36b('0x1549')]['then'](function(){const _0x583a96=_0x35e36b;_0x36f548()[_0x583a96('0x14a5')](_0x2375d4[_0x583a96('0xf1a')],{'id':_0x2375d4['mailAccount']['id']}),_0xb5d3a9[_0x583a96('0x2693')]({'title':_0x583a96('0x2063'),'msg':(_0x2375d4['mailAccount'][_0x583a96('0x1909')]||_0x583a96('0x1d47'))+_0x583a96('0x433')}),_0x31478f(_0x2375d4['mailAccount']);})[_0x35e36b('0x151d')](function(_0x17f925){const _0x2923a2=_0x35e36b;if(_0x17f925['data']&&_0x17f925[_0x2923a2('0x4e8')]['errors']&&_0x17f925[_0x2923a2('0x4e8')][_0x2923a2('0x120f')]['length']){_0x2375d4[_0x2923a2('0x120f')]=_0x17f925[_0x2923a2('0x4e8')][_0x2923a2('0x120f')]||[{'message':_0x17f925[_0x2923a2('0xaab')](),'type':_0x2923a2('0x249b')}];for(let _0x218c85=0x0;_0x218c85<_0x17f925['data'][_0x2923a2('0x120f')][_0x2923a2('0x1e22')];_0x218c85++){_0xb5d3a9['error']({'title':_0x17f925[_0x2923a2('0x4e8')][_0x2923a2('0x120f')][_0x218c85][_0x2923a2('0x19fd')],'msg':_0x17f925[_0x2923a2('0x4e8')][_0x2923a2('0x120f')][_0x218c85]['message']});}}else _0xb5d3a9[_0x2923a2('0x255')]({'title':_0x17f925[_0x2923a2('0xff9')]?_0x2923a2('0x574')+_0x17f925[_0x2923a2('0xff9')]+_0x2923a2('0xb0b')+_0x17f925['statusText']:_0x2923a2('0x249b'),'msg':_0x17f925['data']?JSON[_0x2923a2('0x3e')](_0x17f925['data'][_0x2923a2('0x1b86')]):_0x17f925[_0x2923a2('0x1b86')]||_0x17f925['toString']()});});},function(){});}function _0x146b5a(_0x1deafb){return _0x1deafb===null?undefined:new Date(_0x1deafb);}function _0x31478f(_0x811b9d){const _0x23e2a7=_0x4645a6;_0x389e7f[_0x23e2a7('0x237e')](_0x811b9d);}}const _0x11948c=_0x26e4ad,_0x1d253c=_0x351988['p']+'src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/agent/dialog.html/dialog.html',_0x144ab5=_0x351988['p']+_0x21d0f5('0x493'),_0x5e4f1c=_0x351988['p']+'src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/close/dialog.html/dialog.html',_0x2f7c1b=_0x351988['p']+_0x21d0f5('0x134a'),_0x23507e=_0x351988['p']+_0x21d0f5('0x273'),_0x189164=_0x351988['p']+_0x21d0f5('0x9c6'),_0x26f4a3=_0x351988['p']+_0x21d0f5('0x2880'),_0x1fe404=_0x351988['p']+'src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/queue/dialog.html/dialog.html',_0xfe01fb=_0x351988['p']+_0x21d0f5('0x4fe'),_0x4682e2=_0x351988['p']+'src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/tag/dialog.html/dialog.html';_0x3a1868['$inject']=[_0x21d0f5('0x12a5'),'$mdDialog',_0x21d0f5('0x1b30'),_0x21d0f5('0x142d'),_0x21d0f5('0x1150')];const _0x43726e={'agent':_0x1d253c,'autoreply':_0x144ab5,'close':_0x5e4f1c,'gotoif':_0x2f7c1b,'gotop':_0x23507e,'interval':_0x189164,'noop':_0x26f4a3,'queue':_0x1fe404,'system':_0xfe01fb,'tag':_0x4682e2};function _0x3a1868(_0x28ee3b,_0x2237bf,_0x22574c,_0x36705f,_0x179765){const _0x5a0088=_0x21d0f5,_0x2cc2fe=this;_0x2cc2fe['currentUser']=_0x179765[_0x5a0088('0x2428')](),_0x2cc2fe[_0x5a0088('0x1d47')]={},_0x2cc2fe['mailAccountApps']={'count':0x0,'rows':[]},_0x2cc2fe[_0x5a0088('0x2862')]=[],_0x2cc2fe[_0x5a0088('0xb25')],_0x2cc2fe[_0x5a0088('0x1f2a')]={'sort':_0x5a0088('0x2804')},_0x2cc2fe[_0x5a0088('0x1812')]=_0x36f548()[_0x5a0088('0x4a')](_0x36f548()[_0x5a0088('0xd39')]([{'app':_0x5a0088('0x1979'),'appType':_0x5a0088('0x507'),'types':['always',_0x5a0088('0xa8d'),_0x5a0088('0x257d')],'fields':[],'isApp':![]},{'app':_0x5a0088('0x2b8'),'appType':_0x5a0088('0x2b8'),'type':_0x5a0088('0x2b8'),'icon':_0x5a0088('0x206d'),'interval':_0x5a0088('0x1830'),'required':!![],'isApp':!![],'fields':[{'title':_0x5a0088('0x255a'),'name':'value','type':_0x5a0088('0x25ed'),'param':0x0}]},{'app':_0x5a0088('0x196d'),'appType':_0x5a0088('0x196d'),'type':_0x5a0088('0x196d'),'icon':'icon-apps','interval':_0x5a0088('0x1830'),'required':!![],'isApp':!![],'extraApi':[{'name':_0x5a0088('0x1700'),'field':{'name':_0x5a0088('0xb0'),'key':_0x5a0088('0x1909')},'route':_0x5a0088('0xb0'),'filters':{'fields':_0x5a0088('0x721'),'sort':_0x5a0088('0x1909'),'nolimit':!![]},'permissions':{'section':0x3f4}}],'fields':[{'title':_0x5a0088('0x1ae1'),'name':'command','type':'text','required':!![],'param':0x0},{'title':_0x5a0088('0xb76'),'name':'variable','type':_0x5a0088('0x108f'),'values':_0x5a0088('0x1700'),'value':'variable.name','option':_0x5a0088('0x1509'),'defaultValues':[{'value':'\x27\x27','option':'None'}],'defaultValue':'\x27\x27','param':0x1}]},{'app':_0x5a0088('0x110d'),'appType':'gotop','type':_0x5a0088('0x2190'),'icon':'icon-apps','interval':_0x5a0088('0x1830'),'isApp':!![],'fields':[{'title':_0x5a0088('0x1c98'),'name':_0x5a0088('0x2804'),'type':'number','required':!![],'min':0x0,'param':0x0}]},{'app':_0x5a0088('0x7cf'),'appType':_0x5a0088('0x7cf'),'type':_0x5a0088('0x7cf'),'icon':_0x5a0088('0x206d'),'interval':_0x5a0088('0x1830'),'isApp':!![],'fields':[{'title':_0x5a0088('0x1c99'),'name':_0x5a0088('0xccd'),'type':_0x5a0088('0x25ed'),'required':!![],'param':0x0},{'title':_0x5a0088('0x1deb'),'name':'truepriority','type':_0x5a0088('0x139e'),'min':0x1,'required':!![],'param':0x1},{'title':'falsepriority','name':'falsepriority','type':_0x5a0088('0x139e'),'min':0x1,'required':!![],'param':0x2}]},{'app':_0x5a0088('0x150b'),'appType':'queue','foreignKey':_0x5a0088('0x5b0'),'type':'queue','icon':'icon-apps','interval':_0x5a0088('0x1830'),'isApp':!![],'extraApi':[{'name':_0x5a0088('0x1de3'),'field':{'name':_0x5a0088('0x150b'),'key':_0x5a0088('0x1909')},'route':'mailQueue','filters':{'fields':_0x5a0088('0xde'),'sort':'name','nolimit':!![]},'permissions':{'section':0x259}}],'fields':[{'title':_0x5a0088('0x1c29'),'name':'queue','type':'apiselect','values':_0x5a0088('0x1de3'),'value':_0x5a0088('0x19d4'),'option':'queue.name','defaultValue':0x12c,'required':!![],'param':0x0},{'title':_0x5a0088('0x65'),'name':_0x5a0088('0xfbe'),'type':_0x5a0088('0x139e'),'max':0x20c49b,'min':0x0,'required':!![],'defaultValue':0x12c,'param':0x1}]},{'app':'agent','appType':'agent','type':_0x5a0088('0x18c4'),'foreignKey':_0x5a0088('0x2342'),'icon':'icon-apps','interval':'*,*,*,*','isApp':!![],'extraApi':[{'name':_0x5a0088('0x1401'),'field':{'name':'agent','key':_0x5a0088('0x1909')},'route':_0x5a0088('0x21d9'),'filters':{'fields':_0x5a0088('0x721'),'sort':_0x5a0088('0x1909'),'nolimit':!![],'role':'agent'},'permissions':{'section':0xca}}],'fields':[{'title':_0x5a0088('0x701'),'name':_0x5a0088('0x18c4'),'type':_0x5a0088('0x108f'),'values':_0x5a0088('0x1401'),'value':_0x5a0088('0xf71'),'option':_0x5a0088('0xf71'),'required':!![],'param':0x0},{'title':_0x5a0088('0x65'),'name':_0x5a0088('0xfbe'),'type':'number','max':0x20c49b,'min':0x0,'required':!![],'defaultValue':0x1e,'param':0x1}]},{'app':'autoreply','appType':'autoreply','type':_0x5a0088('0x187b'),'icon':_0x5a0088('0x206d'),'interval':_0x5a0088('0x1830'),'isApp':!![],'fields':[{'title':_0x5a0088('0x663'),'name':_0x5a0088('0x663'),'type':_0x5a0088('0x2350'),'defaultValue':'1','values':[{'option':_0x5a0088('0x594'),'value':'1'},{'option':_0x5a0088('0xbf9'),'value':'0'}],'required':!![],'param':0x0},{'title':_0x5a0088('0x1823'),'name':'text','type':_0x5a0088('0x254b'),'required':!![],'param':0x1}]},{'app':_0x5a0088('0x2132'),'appType':_0x5a0088('0x2132'),'type':'close','icon':'icon-apps','interval':_0x5a0088('0x1830'),'isApp':!![],'fields':[{'title':_0x5a0088('0x16e7'),'name':_0x5a0088('0x107a'),'type':'text','required':!![],'param':0x0}]},{'app':_0x5a0088('0x1d73'),'appType':_0x5a0088('0x1d73'),'type':_0x5a0088('0x1d73'),'foreignKey':'TagId','icon':'icon-apps','interval':_0x5a0088('0x1830'),'isApp':!![],'extraApi':[{'name':_0x5a0088('0x2763'),'field':{'name':_0x5a0088('0x1d73'),'key':'name'},'route':'tag','filters':{'fields':'id,name','sort':_0x5a0088('0x1909'),'nolimit':!![]},'permissions':{'section':0x3f0}}],'fields':[{'title':_0x5a0088('0x23ba'),'name':_0x5a0088('0x1d73'),'type':'apiselect','values':'tags','value':_0x5a0088('0x6aa'),'option':_0x5a0088('0x6aa'),'required':!![],'param':0x0}]}],[_0x5a0088('0x18f5')]),{'isApp':![]}),_0x2cc2fe[_0x5a0088('0x257d')]={'group':{'name':_0x5a0088('0x1525'),'pull':'clone'},'animation':0x64,'sort':![]},_0x2cc2fe['applications']={'group':{'name':_0x5a0088('0x16f9'),'put':_0x5a0088('0x1525')},'animation':0x64,'onAdd':function(_0x553b31){const _0x33761c=_0x5a0088;_0x27ba0a(_0x553b31,_0x553b31[_0x33761c('0x384')]);},'onSort':function(){_0x1f9f5e();}},_0x2cc2fe[_0x5a0088('0x286f')]=_0x4b775e,_0x2cc2fe[_0x5a0088('0x560')]=_0x2844bb,_0x2cc2fe[_0x5a0088('0x69f')]=_0x2744b,_0x2cc2fe[_0x5a0088('0x685')]=_0x27ba0a,_0x2cc2fe[_0x5a0088('0x1452')]=_0x2211db,_0x2cc2fe[_0x5a0088('0x137a')]=_0x3f8296,_0x2cc2fe[_0x5a0088('0x6ec')]=_0x5096da,_0x2cc2fe[_0x5a0088('0xf09')]=_0x1f9f5e,_0x2cc2fe[_0x5a0088('0x431')]=_0x427d4d;function _0x4b775e(_0xc314ae,_0x25d63f){const _0x3beae7=_0x5a0088;_0x2cc2fe[_0x3beae7('0x1d47')]=_0xc314ae,_0x2cc2fe[_0x3beae7('0xb25')]=typeof _0x25d63f!=='undefined'?_0x25d63f:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x2cc2fe[_0x3beae7('0xb9b')][_0x3beae7('0xa4b')]=!_0x2cc2fe['crudPermissions'][_0x3beae7('0x25db')]?!![]:![],_0x2cc2fe[_0x3beae7('0x1f2a')]['id']=_0xc314ae['id'],_0x2cc2fe['query'][_0x3beae7('0x1210')]=!![],_0x2cc2fe[_0x3beae7('0x1f2a')][_0x3beae7('0x287')]=!![],_0x2cc2fe[_0x3beae7('0x69f')](),_0x2cc2fe['getIntervals']();}function _0x2844bb(_0x478c37,_0x2d1bcc,_0x5e405f){const _0x24d8f9=_0x5a0088,_0xee93ad=_0x2237bf[_0x24d8f9('0x132b')]()[_0x24d8f9('0x134b')](_0x24d8f9('0x93a'))[_0x24d8f9('0x1d03')](_0x24d8f9('0x2061')+_0x478c37['app']+_0x24d8f9('0x1c78')+_0x24d8f9('0x1a'))[_0x24d8f9('0xb2e')](_0x24d8f9('0x177'))['targetEvent'](_0x5e405f)['ok']('OK')[_0x24d8f9('0x26c9')]('CANCEL');_0x2237bf[_0x24d8f9('0xb9')](_0xee93ad)[_0x24d8f9('0x11bf')](function(){const _0x362443=_0x24d8f9;_0x2cc2fe[_0x362443('0x13d7')]['rows']['splice'](_0x2d1bcc,0x1),_0x1f9f5e();},function(){const _0x4512a4=_0x24d8f9;console[_0x4512a4('0xc78')](_0x4512a4('0x772'));});}function _0x27ba0a(_0x4a13b1,_0x33f31f){const _0x4c4e15=_0x5a0088;if(_0x2cc2fe['mailAccountApps'][_0x4c4e15('0x19b2')][_0x4c4e15('0x1e22')]){const _0x285dcd=_0x2cc2fe[_0x4c4e15('0x13d7')][_0x4c4e15('0x19b2')][_0x33f31f]?_0x2cc2fe['mailAccountApps']['rows'][_0x33f31f]:_0x2cc2fe['mailAccountApps'][_0x4c4e15('0x19b2')][0x0],_0x232839=(_0x285dcd[_0x4c4e15('0x27c0')]||_0x285dcd['app'])[_0x4c4e15('0x20d5')]();_0x2237bf[_0x4c4e15('0xb9')]({'controller':_0x4c4e15('0x1a41')+_0x232839+_0x4c4e15('0xf3f'),'controllerAs':'vm','templateUrl':_0x43726e[_0x232839],'parent':angular['element'](_0x22574c[_0x4c4e15('0x1d2')]),'targetEvent':_0x4a13b1,'clickOutsideToClose':!![],'locals':{'mailAccountApp':_0x285dcd,'mailAccount':_0x2cc2fe[_0x4c4e15('0x1d47')],'crudPermissions':_0x2cc2fe[_0x4c4e15('0xb25')]}})['then'](function(_0x4480a7){const _0xc5291=_0x4c4e15;_0x4480a7&&(_0x4480a7['id']?_0x2cc2fe['mailAccountApps'][_0xc5291('0x19b2')][_0x33f31f]=_0x4480a7:_0x2cc2fe[_0xc5291('0x13d7')][_0xc5291('0x19b2')][_0xc5291('0x1ae')](_0x33f31f,0x0,_0x4480a7),_0x1f9f5e());})[_0x4c4e15('0x151d')](function(_0x53f5b6){const _0x299f75=_0x4c4e15;_0x53f5b6&&_0x36705f[_0x299f75('0x255')]({'title':_0x53f5b6['status']?_0x299f75('0x574')+_0x53f5b6[_0x299f75('0xff9')]+_0x299f75('0xb0b')+_0x53f5b6[_0x299f75('0x212f')]:'SYSTEM:EDITMODALSHOW','msg':_0x53f5b6['data']?JSON[_0x299f75('0x3e')](_0x53f5b6[_0x299f75('0x4e8')]):_0x53f5b6[_0x299f75('0xaab')]()});});}}function _0x2211db(_0x4c5e06,_0x389269){const _0x242860=_0x5a0088;if(_0x2cc2fe[_0x242860('0x13d7')]['rows'][_0x242860('0x1e22')]){const _0x1f85e5=_0x2cc2fe[_0x242860('0x13d7')][_0x242860('0x19b2')][_0x389269]?_0x2cc2fe[_0x242860('0x13d7')][_0x242860('0x19b2')][_0x389269]:_0x2cc2fe[_0x242860('0x13d7')][_0x242860('0x19b2')][0x0];_0x2237bf[_0x242860('0xb9')]({'controller':_0x242860('0x1dbb'),'controllerAs':'vm','templateUrl':_0x189164,'parent':angular[_0x242860('0x1e73')](_0x22574c['body']),'targetEvent':_0x4c5e06,'clickOutsideToClose':!![],'locals':{'interval':{'interval':_0x1f85e5[_0x242860('0x507')],'IntervalId':_0x1f85e5[_0x242860('0x6b4')],'application':!![]},'intervals':[],'crudPermissions':_0x2cc2fe[_0x242860('0xb25')]}})[_0x242860('0x11bf')](function(_0x842e6c){const _0x5fe3a=_0x242860;_0x842e6c&&(_0x1f85e5[_0x5fe3a('0x507')]=_0x842e6c[_0x5fe3a('0x507')]||_0x5fe3a('0x1830'),_0x1f85e5[_0x5fe3a('0x6b4')]=_0x842e6c[_0x5fe3a('0x6b4')]||null,_0x1f9f5e());});}}function _0x1f9f5e(){const _0x5cb874=_0x5a0088;let _0x4dcfac=0x1,_0x4b7c6a=[];for(let _0x287c20=0x0;_0x287c20<_0x2cc2fe[_0x5cb874('0x13d7')][_0x5cb874('0x19b2')][_0x5cb874('0x1e22')];_0x287c20++){const _0xe5c21b=_0x2cc2fe['mailAccountApps'][_0x5cb874('0x19b2')][_0x287c20],_0x4a838d=[],_0x2ede84=[];_0xe5c21b[_0x5cb874('0xe82')]=_0xe5c21b[_0x5cb874('0x507')]!==_0x5cb874('0x1830')?[_0xe5c21b[_0x5cb874('0x507')]]:_0xe5c21b[_0x5cb874('0x6b4')]?_0x36f548()['map'](_0x36f548()[_0x5cb874('0xdb4')](_0x2cc2fe[_0x5cb874('0xe82')][_0x5cb874('0x19b2')],{'IntervalId':_0xe5c21b[_0x5cb874('0x6b4')]}),_0x5cb874('0x507')):[],_0xe5c21b[_0x5cb874('0x1c87')]=_0x2cc2fe[_0x5cb874('0x1d47')]['context'],_0xe5c21b[_0x5cb874('0x4c6')]=_0x2cc2fe[_0x5cb874('0x1d47')][_0x5cb874('0x4c6')],_0xe5c21b['type']&&(_0xe5c21b[_0x5cb874('0x19fd')]=_0xe5c21b[_0x5cb874('0x19fd')][_0x5cb874('0x20d5')]()),_0xe5c21b[_0x5cb874('0x2804')]=_0x4a838d[_0x5cb874('0x1e22')]?_0x36f548()[_0x5cb874('0x1093')](_0x4a838d)[_0x5cb874('0x2804')]+0x1:_0x4dcfac,_0x4dcfac=(_0x2ede84['length']?_0x36f548()['last'](_0x2ede84)[_0x5cb874('0x2804')]:_0xe5c21b['priority'])+0x1,_0x4b7c6a=_0x36f548()[_0x5cb874('0x20bf')](_0x4b7c6a,_0x4a838d,[_0xe5c21b],_0x2ede84);}_0x28ee3b[_0x5cb874('0x1d47')][_0x5cb874('0x25ec')]({'id':_0x2cc2fe[_0x5cb874('0x1d47')]['id']},_0x36f548()[_0x5cb874('0xd39')](_0x4b7c6a,_0x5cb874('0x2804')))['$promise'][_0x5cb874('0x11bf')](function(_0x92035e){const _0x5dc543=_0x5cb874;_0x2cc2fe[_0x5dc543('0x13d7')][_0x5dc543('0x19b2')]=_0x92035e['rows'];})[_0x5cb874('0x151d')](function(_0x5400a9){const _0x19e23b=_0x5cb874;console[_0x19e23b('0x255')](_0x5400a9);});}function _0x4b7469(_0x2aa00b){const _0x3d0fba=_0x5a0088;_0x2cc2fe[_0x3d0fba('0x13d7')]=_0x2aa00b||{'count':0x0,'rows':[]};}function _0x427d4d(){const _0x14227a=_0x5a0088;return _0x28ee3b[_0x14227a('0x507')]['get']({'fields':_0x14227a('0x17ae')})[_0x14227a('0x1549')][_0x14227a('0x11bf')](function(_0x5ef646){const _0x443f5d=_0x14227a;_0x2cc2fe[_0x443f5d('0xe82')]=_0x5ef646;})[_0x14227a('0x151d')](function(_0x953868){const _0x503ac4=_0x14227a;console[_0x503ac4('0x255')](_0x953868);});}function _0x2744b(){const _0x1744ae=_0x5a0088;_0x2cc2fe['promise']=_0x28ee3b['mailAccount'][_0x1744ae('0xc99')](_0x2cc2fe[_0x1744ae('0x1f2a')],_0x4b7469)[_0x1744ae('0x1549')];}function _0x3f8296(_0x4d41f0){const _0xf8f91d=_0x5a0088;_0x36f548()[_0xf8f91d('0x14a5')](_0x2cc2fe['mailAccountApps']['rows'],{'id':_0x4d41f0['id']}),_0x1f9f5e(),_0x36705f[_0xf8f91d('0x2693')]({'title':_0xf8f91d('0xb44'),'msg':_0x4d41f0['app']?_0x4d41f0[_0xf8f91d('0x18f5')]+_0xf8f91d('0x433'):''});}function _0x5096da(_0x368287){const _0x4e019d=_0x5a0088,_0x56a3e3=_0x2237bf[_0x4e019d('0x132b')]()[_0x4e019d('0x134b')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20applications?')[_0x4e019d('0x1d03')](_0x4e019d('0x2061')+_0x2cc2fe[_0x4e019d('0x2862')][_0x4e019d('0x1e22')]+'\x20selected'+_0x4e019d('0x1a'))[_0x4e019d('0xb2e')](_0x4e019d('0x1aa4'))[_0x4e019d('0x1e25')](_0x368287)['ok']('OK')[_0x4e019d('0x26c9')](_0x4e019d('0x772'));_0x2237bf[_0x4e019d('0xb9')](_0x56a3e3)['then'](function(){const _0x2fea4=_0x4e019d;_0x2cc2fe[_0x2fea4('0x2862')][_0x2fea4('0x1f88')](function(_0x437dfc){_0x36f548()['remove'](_0x2cc2fe['mailAccountApps']['rows'],{'id':_0x437dfc['id']});}),_0x2cc2fe[_0x2fea4('0x2862')]=[],_0x1f9f5e();});}}const _0x10191f=_0x3a1868;_0x2c658a['$inject']=[_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0x142d'),'api',_0x21d0f5('0x1d47'),_0x21d0f5('0xf1a'),'realtime',_0x21d0f5('0xb6b'),_0x21d0f5('0x1150'),_0x21d0f5('0xb25')];function _0x2c658a(_0x2a747d,_0x5df04c,_0x594562,_0x4e95e8,_0x3e34ca,_0x1c6601,_0x29f87f,_0x59ae37,_0x1b65aa,_0x26c984){const _0x2f618f=_0x21d0f5,_0x4c53ae=this;_0x4c53ae[_0x2f618f('0x32a')]=_0x1b65aa[_0x2f618f('0x2428')](),_0x4c53ae['mailAccount']=_0x3e34ca,_0x4c53ae[_0x2f618f('0xb25')]=_0x26c984,_0x4c53ae[_0x2f618f('0x25f9')]=_0x29f87f,_0x4c53ae[_0x2f618f('0x22')]=[],_0x4c53ae[_0x2f618f('0x63')]=[],_0x4c53ae[_0x2f618f('0x26cc')]=[],_0x4c53ae[_0x2f618f('0x1c6f')]=[],_0x4c53ae[_0x2f618f('0x21ed')]=[],_0x4c53ae[_0x2f618f('0x1eda')]=![],_0x4c53ae[_0x2f618f('0x277c')]=_0x1a3807,_0x4c53ae['saveAgents']=_0x30c76d,_0x4c53ae['closeDialog']=_0x501a97,_0x4c53ae[_0x2f618f('0xec5')]={'readOnly':!_0x4c53ae[_0x2f618f('0xb25')][_0x2f618f('0x25db')],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x2f618f('0x1909'),'line1':_0x2f618f('0x27af'),'line2':[_0x2f618f('0x1909'),_0x2f618f('0x1a04')],'line3':'','labelAll':_0x59ae37[_0x2f618f('0x10c2')]('APP.ALL_AGENTS'),'labelSelected':_0x59ae37[_0x2f618f('0x10c2')](_0x2f618f('0x24b4')),'transferCallback':function(){const _0x59172b=_0x2f618f,_0x498d8f=_0x36f548()[_0x59172b('0x1a1b')](_0x4c53ae[_0x59172b('0x21ed')],_0x4c53ae[_0x59172b('0x26cc')],'id');_0x4c53ae[_0x59172b('0x1eda')]=_0x36f548()[_0x59172b('0x1fc5')](_0x498d8f)?![]:!![];}};function _0x1a3807(){const _0x28f3d7=_0x2f618f;return _0x1b65aa[_0x28f3d7('0x4ee')](_0x28f3d7('0xf45'))?_0x17d227()[_0x28f3d7('0x151d')](function(_0x3a726e){const _0x2d9bcb=_0x28f3d7;_0x594562[_0x2d9bcb('0x255')]({'title':_0x3a726e[_0x2d9bcb('0xff9')]?_0x2d9bcb('0x574')+_0x3a726e[_0x2d9bcb('0xff9')]+_0x2d9bcb('0xb0b')+_0x3a726e[_0x2d9bcb('0x212f')]:'SYSTEM:GET_AGENTS','msg':_0x3a726e[_0x2d9bcb('0xff9')]?JSON['stringify'](_0x3a726e[_0x2d9bcb('0x4e8')]):_0x3a726e['toString']()});}):_0x3a05b3()['then'](function(_0x3ce49d){const _0x1275bf=_0x28f3d7;return _0x4c53ae[_0x1275bf('0xe6')]=_0x3ce49d,_0x17d227();})[_0x28f3d7('0x151d')](function(_0x3abe23){const _0x1e7159=_0x28f3d7;_0x594562[_0x1e7159('0x255')]({'title':_0x3abe23[_0x1e7159('0xff9')]?_0x1e7159('0x574')+_0x3abe23[_0x1e7159('0xff9')]+_0x1e7159('0xb0b')+_0x3abe23['statusText']:_0x1e7159('0x912'),'msg':_0x3abe23[_0x1e7159('0xff9')]?JSON[_0x1e7159('0x3e')](_0x3abe23['data']):_0x3abe23[_0x1e7159('0xaab')]()});});}function _0x3a05b3(){return _0x5df04c(function(_0x26abe3,_0x53025e){const _0x267126=a0_0xaf0c;_0x4e95e8[_0x267126('0x1d63')]['get']({'userProfileId':_0x4c53ae['currentUser']['userProfileId'],'name':'Agents'})[_0x267126('0x1549')][_0x267126('0x11bf')](function(_0x9b673e){const _0xcbe492=_0x267126,_0x195010=_0x9b673e&&_0x9b673e[_0xcbe492('0x19b2')]?_0x9b673e[_0xcbe492('0x19b2')][0x0]:null;_0x26abe3(_0x195010);})[_0x267126('0x151d')](function(_0x34a0f1){_0x53025e(_0x34a0f1);});});}function _0x17d227(){return _0x5df04c(function(_0x260154,_0x1044ad){const _0x3f4ea4=a0_0xaf0c;return _0x1a8388()[_0x3f4ea4('0x11bf')](function(_0x4f854f){const _0x5ddc64=_0x3f4ea4;return _0x4c53ae['items']=_0x4f854f[_0x5ddc64('0x19b2')]?_0x4f854f[_0x5ddc64('0x19b2')]:[],_0x1b65aa[_0x5ddc64('0x4ee')](_0x5ddc64('0xf45'))?_0x4f854f:_0x4c53ae[_0x5ddc64('0xe6')]?_0x4c53ae[_0x5ddc64('0xe6')]['autoAssociation']?_0x4f854f:_0x5b8c45():null;})[_0x3f4ea4('0x11bf')](function(_0x782fb6){const _0x5e365c=_0x3f4ea4,_0x12354d=_0x782fb6&&_0x782fb6[_0x5e365c('0x19b2')]?_0x782fb6[_0x5e365c('0x19b2')]:[];return _0x4c53ae[_0x5e365c('0x63')]=_0x36f548()['map'](_0x12354d,function(_0x5b9b35){const _0x418e79=_0x5e365c;return _0x36f548()['find'](_0x4c53ae['items'],{'id':_0x1b65aa[_0x418e79('0x4ee')]('admin')||_0x4c53ae[_0x418e79('0xe6')]['autoAssociation']?_0x5b9b35['id']:_0x5b9b35[_0x418e79('0x15a5')]});}),_0x4c53ae[_0x5e365c('0x1c6f')]=angular[_0x5e365c('0x6fb')](_0x4c53ae['allowedItems']),_0x4c53ae[_0x5e365c('0x22')][_0x5e365c('0x1f88')](function(_0x28ad28){const _0x2f7725=_0x5e365c,_0x3fcb96=_0x36f548()[_0x2f7725('0x1ad4')](_0x4c53ae['allowedItems'],{'id':_0x28ad28['id']});_0x1b65aa[_0x2f7725('0x4ee')]('admin')?_0x28ad28[_0x2f7725('0xde9')]=!![]:_0x28ad28['isValid']=typeof _0x3fcb96!==_0x2f7725('0x13e9')?!![]:![];}),_0x277d18();})[_0x3f4ea4('0x11bf')](function(_0x4f213f){const _0x253a6a=_0x3f4ea4,_0xe47564=_0x4f213f&&_0x4f213f[_0x253a6a('0x19b2')]?_0x4f213f[_0x253a6a('0x19b2')]:[];_0x4c53ae['selectedItems']=_0x36f548()[_0x253a6a('0x2171')](_0xe47564,function(_0x177361){const _0x112042=_0x253a6a,_0x325ece=_0x36f548()['find'](_0x4c53ae[_0x112042('0x22')],{'id':_0x177361['id']});return _0x325ece[_0x112042('0xf47')]=_0x177361[_0x112042('0x1a7')]?'penalty\x20'+_0x177361[_0x112042('0x1a7')][_0x112042('0xf47')]:'',_0x325ece[_0x112042('0x1a04')]=typeof _0x177361[_0x112042('0x1a04')]!==_0x112042('0x13e9')?'<'+_0x177361[_0x112042('0x1a04')]+'>':'',_0x325ece;}),_0x4c53ae[_0x253a6a('0x21ed')]=angular[_0x253a6a('0x6fb')](_0x4c53ae['selectedItems']),_0x4c53ae[_0x253a6a('0xec5')][_0x253a6a('0x26cc')]=_0x4c53ae['selectedItems'],_0x4c53ae[_0x253a6a('0xec5')][_0x253a6a('0x22')]=_0x36f548()[_0x253a6a('0x2753')](_0x4c53ae['allowedItems'],_0x4c53ae['dualMultiselectOptions'][_0x253a6a('0x26cc')],'id'),_0x260154();})[_0x3f4ea4('0x151d')](function(_0xbbc5e1){_0x1044ad(_0xbbc5e1);});});}function _0x5b8c45(){return _0x5df04c(function(_0x3c1de1,_0xadf8ef){const _0x1a73c6=a0_0xaf0c;return _0x4e95e8['userProfileResource'][_0x1a73c6('0xbaa')]({'sectionId':_0x4c53ae[_0x1a73c6('0xe6')]['id'],'nolimit':!![]})[_0x1a73c6('0x1549')][_0x1a73c6('0x11bf')](function(_0x11f7bc){_0x3c1de1(_0x11f7bc);})[_0x1a73c6('0x151d')](function(_0x27271c){_0xadf8ef(_0x27271c);});});}function _0x277d18(){return _0x5df04c(function(_0x33a49e,_0xf2fc14){const _0x443c70=a0_0xaf0c;return _0x4e95e8['mailAccount']['getAgents']({'id':_0x4c53ae['mailAccount']['id'],'fields':_0x443c70('0x13d3'),'nolimit':!![],'role':_0x443c70('0x18c4')})['$promise'][_0x443c70('0x11bf')](function(_0x28af94){_0x33a49e(_0x28af94);})['catch'](function(_0x30c8c4){_0xf2fc14(_0x30c8c4);});});}function _0x1a8388(){return _0x5df04c(function(_0x43264b,_0x101f18){const _0x6314a4=a0_0xaf0c;return _0x4e95e8[_0x6314a4('0x21d9')][_0x6314a4('0xbaa')]({'fields':_0x6314a4('0x13d3'),'nolimit':!![],'role':_0x6314a4('0x18c4')})[_0x6314a4('0x1549')][_0x6314a4('0x11bf')](function(_0x57d682){_0x43264b(_0x57d682);})['catch'](function(_0x2f65dc){_0x101f18(_0x2f65dc);});});}function _0x568a35(_0x48520f){return _0x5df04c(function(_0x4a19c7,_0xa268bc){const _0x490912=a0_0xaf0c;_0x36f548()[_0x490912('0x1fc5')](_0x48520f)?_0x4a19c7():_0x4e95e8[_0x490912('0x1d47')][_0x490912('0x110a')]({'id':_0x4c53ae[_0x490912('0x1d47')]['id'],'ids':_0x36f548()[_0x490912('0x2171')](_0x48520f,'id')})[_0x490912('0x1549')][_0x490912('0x11bf')](function(){_0x4a19c7();})[_0x490912('0x151d')](function(_0x4dd2b0){_0xa268bc(_0x4dd2b0);});});}function _0x15dd8b(_0x1d3a7b){return _0x5df04c(function(_0x523643,_0x2ed3ae){const _0x4f22e5=a0_0xaf0c;_0x36f548()['isEmpty'](_0x1d3a7b)?_0x523643():_0x4e95e8['mailAccount'][_0x4f22e5('0x1ec0')]({'id':_0x4c53ae[_0x4f22e5('0x1d47')]['id'],'ids':_0x36f548()[_0x4f22e5('0x2171')](_0x1d3a7b,'id')})[_0x4f22e5('0x1549')][_0x4f22e5('0x11bf')](function(){_0x523643();})[_0x4f22e5('0x151d')](function(_0x5cb102){_0x2ed3ae(_0x5cb102);});});}function _0x30c76d(){const _0x1f1caf=_0x2f618f,_0xa68c35=_0x36f548()[_0x1f1caf('0x2753')](_0x4c53ae[_0x1f1caf('0x21ed')],_0x4c53ae[_0x1f1caf('0x26cc')],'id'),_0x147347=_0x36f548()['differenceBy'](_0x4c53ae[_0x1f1caf('0x26cc')],_0x4c53ae[_0x1f1caf('0x21ed')],'id');return _0x15dd8b(_0xa68c35)[_0x1f1caf('0x11bf')](function(){return _0x568a35(_0x147347);})['then'](function(){const _0x3e9b21=_0x1f1caf;_0x4c53ae['pendingChanges']=![],_0x4c53ae[_0x3e9b21('0x1c6f')]=angular[_0x3e9b21('0x6fb')](_0x4c53ae[_0x3e9b21('0x63')]),_0x4c53ae['startingSelectedItems']=angular[_0x3e9b21('0x6fb')](_0x4c53ae[_0x3e9b21('0x26cc')]),_0x594562['success']({'title':_0x3e9b21('0x2243'),'msg':_0x3e9b21('0x2273')});})[_0x1f1caf('0x151d')](function(_0x1a178a){const _0x31104d=_0x1f1caf;_0x594562[_0x31104d('0x255')]({'title':_0x1a178a[_0x31104d('0xff9')]?_0x31104d('0x574')+_0x1a178a[_0x31104d('0xff9')]+_0x31104d('0xb0b')+_0x1a178a[_0x31104d('0x212f')]:_0x31104d('0x1b7f'),'msg':_0x1a178a[_0x31104d('0xff9')]?JSON[_0x31104d('0x3e')](_0x1a178a['data']):_0x1a178a[_0x31104d('0xaab')]()});});}function _0x501a97(){const _0x3fa0ed=_0x2f618f;_0x2a747d[_0x3fa0ed('0x237e')]();}}const _0x2b703f=_0x2c658a;_0x106ad4[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0x142d'),'mailAccountApp',_0x21d0f5('0x1d47'),_0x21d0f5('0x12a5'),'Auth',_0x21d0f5('0xb25')];function _0x106ad4(_0x111640,_0xedca12,_0x18df54,_0x4d69a9,_0x3c96d0,_0x568629,_0x35ce54,_0x3e0f71){const _0x3737ab=_0x21d0f5,_0xddc6e5=this;_0xddc6e5[_0x3737ab('0x32a')]=_0x35ce54[_0x3737ab('0x2428')](),_0xddc6e5[_0x3737ab('0x120f')]=[],_0xddc6e5[_0x3737ab('0x134b')]='MAIL.EDIT_'+(_0x4d69a9[_0x3737ab('0x27c0')]||_0x4d69a9[_0x3737ab('0x18f5')])['toUpperCase'](),_0xddc6e5[_0x3737ab('0x18c4')]=angular[_0x3737ab('0x6fb')](_0x4d69a9),_0xddc6e5['crudPermissions']=_0x3e0f71,_0xddc6e5[_0x3737ab('0x2c9')]={};if(_0xddc6e5['agent']['appdata'])switch(_0xddc6e5[_0x3737ab('0x18c4')]['appType']?_0xddc6e5[_0x3737ab('0x18c4')]['appType'][_0x3737ab('0x20d5')]():_0xddc6e5[_0x3737ab('0x18c4')][_0x3737ab('0x18f5')][_0x3737ab('0x20d5')]()){case _0x3737ab('0xa8d'):break;case _0x3737ab('0x185e'):{const _0x27e308=_0xddc6e5[_0x3737ab('0x18c4')][_0x3737ab('0x13fc')][_0x3737ab('0xaf8')](',');_0xddc6e5[_0x3737ab('0x18c4')][_0x3737ab('0xa0c')]=_0x27e308[0x0],_0xddc6e5[_0x3737ab('0x18c4')][_0x3737ab('0xeff')]=_0x27e308[0x1],_0xddc6e5[_0x3737ab('0x18c4')][_0x3737ab('0x1cbc')]=_0x27e308[_0x3737ab('0x1b77')](0x2,_0x27e308[_0x3737ab('0x1e22')])['join'](',');}break;case _0x3737ab('0x21a8'):{const _0x1dc929=_0xddc6e5['agent'][_0x3737ab('0x13fc')][_0x3737ab('0xaf8')](',');_0xddc6e5['agent'][_0x3737ab('0x20e')]=_0x1dc929[0x0],_0xddc6e5[_0x3737ab('0x18c4')][_0x3737ab('0x1f91')]=_0x1dc929[0x1],_0xddc6e5[_0x3737ab('0x18c4')][_0x3737ab('0x1c6c')]=_0x1dc929[0x2],_0xddc6e5[_0x3737ab('0x18c4')][_0x3737ab('0xeff')]=_0x1dc929[0x3],_0xddc6e5[_0x3737ab('0x18c4')][_0x3737ab('0x1cbc')]=_0x1dc929[_0x3737ab('0x1b77')](0x4,_0x1dc929['length'])[_0x3737ab('0xa04')](',');}break;case _0x3737ab('0x102c'):{const _0x2a1384=_0xddc6e5['agent'][_0x3737ab('0x13fc')][_0x3737ab('0xaf8')](',');_0xddc6e5[_0x3737ab('0x18c4')][_0x3737ab('0x1a82')]=_0x2a1384[0x0],_0xddc6e5[_0x3737ab('0x18c4')]['secretaccesskey']=_0x2a1384[0x1],_0xddc6e5[_0x3737ab('0x18c4')][_0x3737ab('0x165a')]=_0x2a1384[0x2],_0xddc6e5[_0x3737ab('0x18c4')][_0x3737ab('0x1e8f')]=_0x2a1384[0x3],_0xddc6e5[_0x3737ab('0x18c4')][_0x3737ab('0x1cbc')]=_0x2a1384[_0x3737ab('0x1b77')](0x4,_0x2a1384[_0x3737ab('0x1e22')])[_0x3737ab('0xa04')](',');}break;case _0x3737ab('0x187b'):{const _0x176a40=_0xddc6e5[_0x3737ab('0x18c4')][_0x3737ab('0x13fc')]['split'](',');_0xddc6e5[_0x3737ab('0x18c4')]['times']=isNaN(_0x176a40[0x0])?_0x176a40[0x0]:parseInt(_0x176a40[0x0],0xa),_0xddc6e5[_0x3737ab('0x18c4')][_0x3737ab('0x25ed')]=_0x176a40[_0x3737ab('0x1b77')](0x1,_0x176a40[_0x3737ab('0x1e22')])[_0x3737ab('0xa04')](',');}break;case _0x3737ab('0x1b86'):_0xddc6e5[_0x3737ab('0x18c4')]['text']=_0xddc6e5[_0x3737ab('0x18c4')][_0x3737ab('0x13fc')];break;case _0x3737ab('0xe50'):_0xddc6e5[_0x3737ab('0x18c4')][_0x3737ab('0x1909')]=_0xddc6e5['agent'][_0x3737ab('0x13fc')][_0x3737ab('0xaf8')]('=')[0x0],_0xddc6e5[_0x3737ab('0x18c4')][_0x3737ab('0x10cc')]=_0xddc6e5['agent']['appdata'][_0x3737ab('0xaf8')]('=')[0x1];break;case _0x3737ab('0x1efd'):_0xddc6e5['agent']['project']=_0xddc6e5['agent']['appdata'];break;default:{const _0x1517cf=_0xddc6e5['agent'][_0x3737ab('0x13fc')]['split'](',');_0xddc6e5[_0x3737ab('0x18c4')][_0x3737ab('0x18c4')]=_0x36f548()[_0x3737ab('0x1fc5')](_0x1517cf[0x0])?_0x1517cf[0x0]:isNaN(_0x1517cf[0x0])?_0x1517cf[0x0]:parseInt(_0x1517cf[0x0],0xa),_0xddc6e5[_0x3737ab('0x18c4')]['timeout']=_0x36f548()[_0x3737ab('0x1fc5')](_0x1517cf[0x1])?_0x1517cf[0x1]:isNaN(_0x1517cf[0x1])?_0x1517cf[0x1]:parseInt(_0x1517cf[0x1],0xa);}break;}else _0xddc6e5[_0x3737ab('0x18c4')][_0x3737ab('0xfbe')]=0x1e;_0xddc6e5[_0x3737ab('0x18c4')]['type']&&_0xddc6e5[_0x3737ab('0x18c4')]['type'][_0x3737ab('0x20d5')]()===_0x3737ab('0x25b6')&&_0xddc6e5[_0x3737ab('0x18c4')]['appType'][_0x3737ab('0x20d5')]()==='outbounddial'&&(_0xddc6e5[_0x3737ab('0x18c4')]['prefix']=_0xddc6e5[_0x3737ab('0x18c4')][_0x3737ab('0x1546')]?_0xddc6e5[_0x3737ab('0x18c4')]['phone'][_0x3737ab('0xaf8')]('$')[0x0]:undefined,_0xddc6e5[_0x3737ab('0x18c4')][_0x3737ab('0x7d0')]=_0xddc6e5[_0x3737ab('0x18c4')][_0x3737ab('0xc38')]?_0x3737ab('0x83a')+_0xddc6e5[_0x3737ab('0x18c4')][_0x3737ab('0xc38')]:undefined);_0xddc6e5[_0x3737ab('0x1e75')]=_0x3b11d6,_0xddc6e5[_0x3737ab('0xc4e')]=_0x3bc076,_0x35ce54[_0x3737ab('0x4ee')]('admin')?_0x568629[_0x3737ab('0x21d9')][_0x3737ab('0xbaa')]({'fields':'id,name','sort':'name','nolimit':_0x3737ab('0x204c'),'role':_0x3737ab('0x18c4')})['$promise'][_0x3737ab('0x11bf')](function(_0x4b3858){const _0x17e7e0=_0x3737ab;_0xddc6e5['agents']=_0x4b3858[_0x17e7e0('0x19b2')]||[];})[_0x3737ab('0x151d')](function(_0x5e5b5a){const _0x3ac6ae=_0x3737ab;_0x18df54[_0x3ac6ae('0x255')]({'title':_0x5e5b5a[_0x3ac6ae('0xff9')]?_0x3ac6ae('0x574')+_0x5e5b5a[_0x3ac6ae('0xff9')]+_0x3ac6ae('0xb0b')+_0x5e5b5a[_0x3ac6ae('0x212f')]:_0x3ac6ae('0x912'),'msg':_0x5e5b5a[_0x3ac6ae('0x4e8')]?JSON[_0x3ac6ae('0x3e')](_0x5e5b5a[_0x3ac6ae('0x4e8')]):_0x5e5b5a['toString']()});}):_0x568629[_0x3737ab('0x21d9')][_0x3737ab('0xbaa')]({'fields':_0x3737ab('0x721'),'sort':_0x3737ab('0x1909'),'nolimit':_0x3737ab('0x204c'),'role':_0x3737ab('0x18c4')})['$promise'][_0x3737ab('0x11bf')](function(_0x1e137f){const _0x5050de=_0x3737ab;_0xddc6e5[_0x5050de('0x1401')]=_0x1e137f[_0x5050de('0x19b2')]||[];})[_0x3737ab('0x11bf')](function(){const _0x3f4d57=_0x3737ab;return _0x568629[_0x3f4d57('0x1d63')][_0x3f4d57('0xbaa')]({'userProfileId':_0xddc6e5['currentUser'][_0x3f4d57('0x781')],'sectionId':0xca})[_0x3f4d57('0x1549')];})[_0x3737ab('0x11bf')](function(_0x1f306e){const _0x463a2e=_0x3737ab,_0x39264c=_0x1f306e&&_0x1f306e[_0x463a2e('0x19b2')]?_0x1f306e['rows'][0x0]:null;if(!_0x39264c){const _0x1e245a=[];let _0x4120da=null;_0xddc6e5['agent']&&(_0x4120da=_0x36f548()[_0x463a2e('0x1ad4')](_0xddc6e5[_0x463a2e('0x1401')],{'name':_0xddc6e5[_0x463a2e('0x18c4')][_0x463a2e('0x18c4')]}));for(let _0xad4736=0x0;_0xad4736<_0xddc6e5[_0x463a2e('0x1401')]['length'];_0xad4736++){_0x4120da&&_0xddc6e5[_0x463a2e('0x1401')][_0xad4736]['id']===_0x4120da['id']&&(_0xddc6e5['agents'][_0xad4736][_0x463a2e('0x254a')]=![],_0x1e245a[_0x463a2e('0x105d')](_0xddc6e5[_0x463a2e('0x1401')][_0xad4736]));}_0xddc6e5[_0x463a2e('0x1401')]=_0x1e245a;}else{if(!_0x39264c[_0x463a2e('0xf11')])return _0x568629[_0x463a2e('0x26d1')][_0x463a2e('0xbaa')]({'sectionId':_0x39264c['id']})[_0x463a2e('0x1549')][_0x463a2e('0x11bf')](function(_0x277fff){const _0x523831=_0x463a2e,_0x52a026=_0x36f548()[_0x523831('0x2171')](_0x277fff[_0x523831('0x19b2')],function(_0x50f797){const _0x438053=_0x523831;return _0x36f548()[_0x438053('0x1ad4')](_0xddc6e5['agents'],{'id':_0x50f797[_0x438053('0x15a5')]});});let _0x4a0919=null;_0xddc6e5['agent']&&(_0x4a0919=_0x36f548()[_0x523831('0x1ad4')](_0xddc6e5[_0x523831('0x1401')],{'name':_0xddc6e5[_0x523831('0x18c4')][_0x523831('0x18c4')]}));if(_0x4a0919&&!_0x36f548()['some'](_0x52a026,['id',_0x4a0919['id']])){const _0x45ae78=_0x36f548()[_0x523831('0x1ad4')](_0xddc6e5[_0x523831('0x1401')],{'id':_0x4a0919['id']});_0x45ae78[_0x523831('0x254a')]=![],_0x52a026[_0x523831('0x105d')](_0x45ae78);}_0xddc6e5[_0x523831('0x1401')]=_0x52a026;});}})[_0x3737ab('0x151d')](function(_0x34e38e){const _0x5271d5=_0x3737ab;_0x18df54[_0x5271d5('0x255')]({'title':_0x34e38e['status']?_0x5271d5('0x574')+_0x34e38e[_0x5271d5('0xff9')]+_0x5271d5('0xb0b')+_0x34e38e[_0x5271d5('0x212f')]:_0x5271d5('0x1939'),'msg':_0x34e38e[_0x5271d5('0x4e8')]?JSON['stringify'](_0x34e38e[_0x5271d5('0x4e8')]):_0x34e38e['toString']()});});function _0x3b11d6(){const _0x188110=_0x3737ab;_0xddc6e5[_0x188110('0x120f')]=[];const _0xd82568=[];_0xddc6e5['agent'][_0x188110('0x19fd')]&&_0xddc6e5['agent']['type'][_0x188110('0x20d5')]()===_0x188110('0x25b6')&&_0xddc6e5[_0x188110('0x18c4')]['appType']==='outboundDial'&&(_0xddc6e5[_0x188110('0x18c4')][_0x188110('0x1546')]=_0x3c96d0[_0x188110('0x388')]?(_0xddc6e5['agent'][_0x188110('0x2137')]||'')+_0x188110('0x2100')+_0x3c96d0['cutdigits']+'}':(_0xddc6e5[_0x188110('0x18c4')]['prefix']||'')+_0x188110('0x1f76'),_0x3c96d0[_0x188110('0x897')]!==_0x188110('0x3e6')?_0xddc6e5[_0x188110('0x18c4')][_0x188110('0x249a')][_0x188110('0x203c')](_0x188110('0x22c9'))<0x0&&(_0xddc6e5['agent'][_0x188110('0x249a')]+=_0x188110('0x22c9')):_0xddc6e5['agent'][_0x188110('0x249a')]=_0xddc6e5[_0x188110('0x18c4')][_0x188110('0x249a')]['replace']('U(xcally-mixmonitor-context)',''));const _0x4fc97b=_0x36f548()[_0x188110('0x1ad4')](_0xddc6e5[_0x188110('0x1401')],{'name':_0xddc6e5[_0x188110('0x18c4')][_0x188110('0x18c4')]});_0x4fc97b&&(_0xddc6e5[_0x188110('0x18c4')]['UserId']=_0x4fc97b['id']);if(_0xddc6e5[_0x188110('0x18c4')][_0x188110('0x27c0')]&&_0xddc6e5[_0x188110('0x18c4')][_0x188110('0x27c0')]==='custom'){}else switch((_0xddc6e5['agent'][_0x188110('0x18f5')]||_0xddc6e5[_0x188110('0x18c4')]['appType'])['toLowerCase']()){case _0x188110('0xe50'):_0xddc6e5[_0x188110('0x18c4')]['appdata']=_0xddc6e5[_0x188110('0x18c4')][_0x188110('0x1909')]+'='+_0xddc6e5[_0x188110('0x18c4')][_0x188110('0x10cc')];break;case _0x188110('0xa8d'):break;default:_0xd82568[0x0]=_0xddc6e5[_0x188110('0x18c4')][_0x188110('0x18c4')],_0xd82568[0x1]=_0xddc6e5[_0x188110('0x18c4')][_0x188110('0xfbe')],_0xddc6e5[_0x188110('0x18c4')][_0x188110('0x13fc')]=_0xd82568[_0x188110('0xa04')](',');}_0x3bc076(_0xddc6e5[_0x188110('0x18c4')]);}function _0x3bc076(_0x20af61){const _0x5b67fe=_0x3737ab;_0x111640[_0x5b67fe('0x237e')](_0x20af61);}}const _0x55cd55=_0x106ad4;_0x285f88[_0x21d0f5('0x1e9a')]=['$mdDialog','$q','toasty',_0x21d0f5('0xa44'),_0x21d0f5('0x1d47'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),_0x21d0f5('0xb25')];function _0x285f88(_0x38f9ef,_0x3a9770,_0x15fb5e,_0x55b2fe,_0x4a8aa0,_0x34efc3,_0x22cc7c,_0x280946){const _0x1770e2=_0x21d0f5,_0xedd516=this;_0xedd516[_0x1770e2('0x32a')]=_0x22cc7c['getCurrentUser'](),_0xedd516[_0x1770e2('0x120f')]=[],_0xedd516[_0x1770e2('0x134b')]=_0x1770e2('0xe94')+(_0x55b2fe[_0x1770e2('0x27c0')]||_0x55b2fe[_0x1770e2('0x18f5')])['toUpperCase'](),_0xedd516[_0x1770e2('0x187b')]=angular[_0x1770e2('0x6fb')](_0x55b2fe),_0xedd516[_0x1770e2('0xb25')]=_0x280946,_0xedd516[_0x1770e2('0x2c9')]={};if(_0xedd516[_0x1770e2('0x187b')][_0x1770e2('0x13fc')])switch(_0xedd516[_0x1770e2('0x187b')][_0x1770e2('0x27c0')]?_0xedd516[_0x1770e2('0x187b')]['appType'][_0x1770e2('0x20d5')]():_0xedd516[_0x1770e2('0x187b')]['app']['toLowerCase']()){case _0x1770e2('0xa8d'):break;case'dialogflow':{const _0x4c9337=_0xedd516[_0x1770e2('0x187b')][_0x1770e2('0x13fc')][_0x1770e2('0xaf8')](',');_0xedd516[_0x1770e2('0x187b')]['key']=_0x4c9337[0x0],_0xedd516[_0x1770e2('0x187b')][_0x1770e2('0xeff')]=_0x4c9337[0x1],_0xedd516[_0x1770e2('0x187b')][_0x1770e2('0x1cbc')]=_0x4c9337[_0x1770e2('0x1b77')](0x2,_0x4c9337[_0x1770e2('0x1e22')])[_0x1770e2('0xa04')](',');}break;case _0x1770e2('0x21a8'):{const _0x4a73d0=_0xedd516[_0x1770e2('0x187b')][_0x1770e2('0x13fc')][_0x1770e2('0xaf8')](',');_0xedd516[_0x1770e2('0x187b')]['projectId']=_0x4a73d0[0x0],_0xedd516['autoreply'][_0x1770e2('0x1f91')]=_0x4a73d0[0x1],_0xedd516[_0x1770e2('0x187b')][_0x1770e2('0x1c6c')]=_0x4a73d0[0x2],_0xedd516[_0x1770e2('0x187b')][_0x1770e2('0xeff')]=_0x4a73d0[0x3],_0xedd516['autoreply']['welcomemessage']=_0x4a73d0['slice'](0x4,_0x4a73d0[_0x1770e2('0x1e22')])[_0x1770e2('0xa04')](',');}break;case _0x1770e2('0x102c'):{const _0xdcad31=_0xedd516['autoreply'][_0x1770e2('0x13fc')][_0x1770e2('0xaf8')](',');_0xedd516[_0x1770e2('0x187b')]['accesskeyid']=_0xdcad31[0x0],_0xedd516['autoreply'][_0x1770e2('0x1422')]=_0xdcad31[0x1],_0xedd516['autoreply'][_0x1770e2('0x165a')]=_0xdcad31[0x2],_0xedd516[_0x1770e2('0x187b')][_0x1770e2('0x1e8f')]=_0xdcad31[0x3],_0xedd516['autoreply'][_0x1770e2('0x1cbc')]=_0xdcad31[_0x1770e2('0x1b77')](0x4,_0xdcad31['length'])['join'](',');}break;case _0x1770e2('0x187b'):{const _0x564b16=_0xedd516['autoreply'][_0x1770e2('0x13fc')][_0x1770e2('0xaf8')](',');_0xedd516[_0x1770e2('0x187b')][_0x1770e2('0x663')]=isNaN(_0x564b16[0x0])?_0x564b16[0x0]:parseInt(_0x564b16[0x0],0xa),_0xedd516['autoreply'][_0x1770e2('0x25ed')]=_0x564b16[_0x1770e2('0x1b77')](0x1,_0x564b16[_0x1770e2('0x1e22')])[_0x1770e2('0xa04')](',');}break;case _0x1770e2('0x1b86'):_0xedd516[_0x1770e2('0x187b')][_0x1770e2('0x25ed')]=_0xedd516[_0x1770e2('0x187b')]['appdata'];break;case _0x1770e2('0xe50'):_0xedd516[_0x1770e2('0x187b')][_0x1770e2('0x1909')]=_0xedd516[_0x1770e2('0x187b')][_0x1770e2('0x13fc')][_0x1770e2('0xaf8')]('=')[0x0],_0xedd516['autoreply'][_0x1770e2('0x10cc')]=_0xedd516[_0x1770e2('0x187b')]['appdata'][_0x1770e2('0xaf8')]('=')[0x1];break;case _0x1770e2('0x1efd'):_0xedd516[_0x1770e2('0x187b')][_0x1770e2('0xef0')]=_0xedd516[_0x1770e2('0x187b')][_0x1770e2('0x13fc')];break;default:{const _0x13fd39=_0xedd516['autoreply'][_0x1770e2('0x13fc')]['split'](',');_0xedd516['autoreply'][_0x1770e2('0x663')]=_0x36f548()['isEmpty'](_0x13fd39[0x0])?_0x13fd39[0x0]:isNaN(_0x13fd39[0x0])?_0x13fd39[0x0]:parseInt(_0x13fd39[0x0],0xa),_0xedd516[_0x1770e2('0x187b')][_0x1770e2('0x25ed')]=_0x36f548()[_0x1770e2('0x1fc5')](_0x13fd39[0x1])?_0x13fd39[0x1]:isNaN(_0x13fd39[0x1])?_0x13fd39[0x1]:parseInt(_0x13fd39[0x1],0xa);}break;}else _0xedd516[_0x1770e2('0x187b')][_0x1770e2('0x663')]=0x1;_0xedd516[_0x1770e2('0x187b')][_0x1770e2('0x19fd')]&&_0xedd516[_0x1770e2('0x187b')][_0x1770e2('0x19fd')][_0x1770e2('0x20d5')]()==='outbound'&&_0xedd516[_0x1770e2('0x187b')][_0x1770e2('0x27c0')][_0x1770e2('0x20d5')]()===_0x1770e2('0x1a64')&&(_0xedd516['autoreply'][_0x1770e2('0x2137')]=_0xedd516[_0x1770e2('0x187b')]['phone']?_0xedd516['autoreply'][_0x1770e2('0x1546')][_0x1770e2('0xaf8')]('$')[0x0]:undefined,_0xedd516[_0x1770e2('0x187b')][_0x1770e2('0x7d0')]=_0xedd516['autoreply'][_0x1770e2('0xc38')]?_0x1770e2('0x83a')+_0xedd516['autoreply'][_0x1770e2('0xc38')]:undefined);_0xedd516[_0x1770e2('0x1e75')]=_0x825b19,_0xedd516[_0x1770e2('0xc4e')]=_0x50274b;function _0x825b19(){const _0xfc2546=_0x1770e2;_0xedd516[_0xfc2546('0x120f')]=[];const _0x55e1f9=[];_0xedd516[_0xfc2546('0x187b')][_0xfc2546('0x19fd')]&&_0xedd516['autoreply'][_0xfc2546('0x19fd')][_0xfc2546('0x20d5')]()===_0xfc2546('0x25b6')&&_0xedd516[_0xfc2546('0x187b')][_0xfc2546('0x27c0')]===_0xfc2546('0x1bf6')&&(_0xedd516[_0xfc2546('0x187b')][_0xfc2546('0x1546')]=_0x4a8aa0[_0xfc2546('0x388')]?(_0xedd516[_0xfc2546('0x187b')][_0xfc2546('0x2137')]||'')+'${EXTEN:'+_0x4a8aa0[_0xfc2546('0x388')]+'}':(_0xedd516[_0xfc2546('0x187b')][_0xfc2546('0x2137')]||'')+'${EXTEN}',_0x4a8aa0[_0xfc2546('0x897')]!==_0xfc2546('0x3e6')?_0xedd516[_0xfc2546('0x187b')][_0xfc2546('0x249a')][_0xfc2546('0x203c')]('U(xcally-mixmonitor-context)')<0x0&&(_0xedd516[_0xfc2546('0x187b')]['options']+=_0xfc2546('0x22c9')):_0xedd516[_0xfc2546('0x187b')]['options']=_0xedd516['autoreply'][_0xfc2546('0x249a')][_0xfc2546('0x814')](_0xfc2546('0x22c9'),''));if(_0xedd516[_0xfc2546('0x187b')][_0xfc2546('0x27c0')]&&_0xedd516['autoreply'][_0xfc2546('0x27c0')]==='custom'){}else switch((_0xedd516[_0xfc2546('0x187b')][_0xfc2546('0x18f5')]||_0xedd516[_0xfc2546('0x187b')][_0xfc2546('0x27c0')])[_0xfc2546('0x20d5')]()){case _0xfc2546('0xe50'):_0xedd516[_0xfc2546('0x187b')][_0xfc2546('0x13fc')]=_0xedd516[_0xfc2546('0x187b')]['name']+'='+_0xedd516[_0xfc2546('0x187b')][_0xfc2546('0x10cc')];break;case _0xfc2546('0xa8d'):break;default:_0x55e1f9[0x0]=_0xedd516[_0xfc2546('0x187b')]['times'],_0x55e1f9[0x1]=_0xedd516[_0xfc2546('0x187b')][_0xfc2546('0x25ed')],_0xedd516['autoreply'][_0xfc2546('0x13fc')]=_0x55e1f9[_0xfc2546('0xa04')](',');}_0x50274b(_0xedd516['autoreply']);}function _0x50274b(_0x5efce5){const _0x48d7de=_0x1770e2;_0x38f9ef[_0x48d7de('0x237e')](_0x5efce5);}}const _0x4ad6c3=_0x285f88;_0x523e85[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1ca2'),'$q','toasty',_0x21d0f5('0xa44'),'mailAccount',_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),'crudPermissions'];function _0x523e85(_0xc4c3ee,_0x23926d,_0x20c84a,_0x2046f4,_0x468ed1,_0x2fa3dc,_0x4f6311,_0x18c746){const _0x3ddc51=_0x21d0f5,_0x45965e=this;_0x45965e['currentUser']=_0x4f6311[_0x3ddc51('0x2428')](),_0x45965e[_0x3ddc51('0x120f')]=[],_0x45965e['title']='MAIL.EDIT_'+(_0x2046f4[_0x3ddc51('0x27c0')]||_0x2046f4['app'])[_0x3ddc51('0xa6f')](),_0x45965e[_0x3ddc51('0x2132')]=angular[_0x3ddc51('0x6fb')](_0x2046f4),_0x45965e[_0x3ddc51('0xb25')]=_0x18c746,_0x45965e['hasModulePermissions']={};if(_0x45965e[_0x3ddc51('0x2132')][_0x3ddc51('0x13fc')])switch(_0x45965e[_0x3ddc51('0x2132')][_0x3ddc51('0x27c0')]?_0x45965e[_0x3ddc51('0x2132')][_0x3ddc51('0x27c0')][_0x3ddc51('0x20d5')]():_0x45965e[_0x3ddc51('0x2132')][_0x3ddc51('0x18f5')][_0x3ddc51('0x20d5')]()){case _0x3ddc51('0xa8d'):break;case _0x3ddc51('0x185e'):{const _0x21ab71=_0x45965e['close'][_0x3ddc51('0x13fc')][_0x3ddc51('0xaf8')](',');_0x45965e[_0x3ddc51('0x2132')][_0x3ddc51('0xa0c')]=_0x21ab71[0x0],_0x45965e['close'][_0x3ddc51('0xeff')]=_0x21ab71[0x1],_0x45965e[_0x3ddc51('0x2132')][_0x3ddc51('0x1cbc')]=_0x21ab71[_0x3ddc51('0x1b77')](0x2,_0x21ab71[_0x3ddc51('0x1e22')])[_0x3ddc51('0xa04')](',');}break;case _0x3ddc51('0x21a8'):{const _0x1dcb2c=_0x45965e[_0x3ddc51('0x2132')][_0x3ddc51('0x13fc')]['split'](',');_0x45965e[_0x3ddc51('0x2132')][_0x3ddc51('0x20e')]=_0x1dcb2c[0x0],_0x45965e['close']['clientEmail']=_0x1dcb2c[0x1],_0x45965e[_0x3ddc51('0x2132')]['privateKey']=_0x1dcb2c[0x2],_0x45965e[_0x3ddc51('0x2132')][_0x3ddc51('0xeff')]=_0x1dcb2c[0x3],_0x45965e['close'][_0x3ddc51('0x1cbc')]=_0x1dcb2c[_0x3ddc51('0x1b77')](0x4,_0x1dcb2c[_0x3ddc51('0x1e22')])[_0x3ddc51('0xa04')](',');}break;case _0x3ddc51('0x102c'):{const _0x2e14e0=_0x45965e[_0x3ddc51('0x2132')][_0x3ddc51('0x13fc')][_0x3ddc51('0xaf8')](',');_0x45965e['close'][_0x3ddc51('0x1a82')]=_0x2e14e0[0x0],_0x45965e[_0x3ddc51('0x2132')]['secretaccesskey']=_0x2e14e0[0x1],_0x45965e[_0x3ddc51('0x2132')]['lexregion']=_0x2e14e0[0x2],_0x45965e[_0x3ddc51('0x2132')]['botname']=_0x2e14e0[0x3],_0x45965e[_0x3ddc51('0x2132')][_0x3ddc51('0x1cbc')]=_0x2e14e0['slice'](0x4,_0x2e14e0['length'])[_0x3ddc51('0xa04')](',');}break;case _0x3ddc51('0x187b'):{const _0x3c9455=_0x45965e[_0x3ddc51('0x2132')][_0x3ddc51('0x13fc')][_0x3ddc51('0xaf8')](',');_0x45965e['close'][_0x3ddc51('0x663')]=isNaN(_0x3c9455[0x0])?_0x3c9455[0x0]:parseInt(_0x3c9455[0x0],0xa),_0x45965e['close'][_0x3ddc51('0x25ed')]=_0x3c9455['slice'](0x1,_0x3c9455['length'])['join'](',');}break;case _0x3ddc51('0x1b86'):_0x45965e[_0x3ddc51('0x2132')][_0x3ddc51('0x25ed')]=_0x45965e[_0x3ddc51('0x2132')][_0x3ddc51('0x13fc')];break;case _0x3ddc51('0xe50'):_0x45965e[_0x3ddc51('0x2132')]['name']=_0x45965e[_0x3ddc51('0x2132')][_0x3ddc51('0x13fc')][_0x3ddc51('0xaf8')]('=')[0x0],_0x45965e[_0x3ddc51('0x2132')]['value']=_0x45965e[_0x3ddc51('0x2132')][_0x3ddc51('0x13fc')][_0x3ddc51('0xaf8')]('=')[0x1];break;case _0x3ddc51('0x1efd'):_0x45965e[_0x3ddc51('0x2132')][_0x3ddc51('0xef0')]=_0x45965e[_0x3ddc51('0x2132')][_0x3ddc51('0x13fc')];break;default:{const _0x4b17eb=_0x45965e[_0x3ddc51('0x2132')][_0x3ddc51('0x13fc')][_0x3ddc51('0xaf8')](',');_0x45965e['close'][_0x3ddc51('0x107a')]=_0x36f548()[_0x3ddc51('0x1fc5')](_0x4b17eb[0x0])?_0x4b17eb[0x0]:isNaN(_0x4b17eb[0x0])?_0x4b17eb[0x0]:parseInt(_0x4b17eb[0x0],0xa);}break;}else{}_0x45965e[_0x3ddc51('0x2132')][_0x3ddc51('0x19fd')]&&_0x45965e['close'][_0x3ddc51('0x19fd')][_0x3ddc51('0x20d5')]()===_0x3ddc51('0x25b6')&&_0x45965e['close'][_0x3ddc51('0x27c0')][_0x3ddc51('0x20d5')]()===_0x3ddc51('0x1a64')&&(_0x45965e[_0x3ddc51('0x2132')][_0x3ddc51('0x2137')]=_0x45965e[_0x3ddc51('0x2132')][_0x3ddc51('0x1546')]?_0x45965e[_0x3ddc51('0x2132')][_0x3ddc51('0x1546')][_0x3ddc51('0xaf8')]('$')[0x0]:undefined,_0x45965e[_0x3ddc51('0x2132')][_0x3ddc51('0x7d0')]=_0x45965e[_0x3ddc51('0x2132')][_0x3ddc51('0xc38')]?_0x3ddc51('0x83a')+_0x45965e[_0x3ddc51('0x2132')][_0x3ddc51('0xc38')]:undefined);_0x45965e[_0x3ddc51('0x1e75')]=_0x507bda,_0x45965e['closeDialog']=_0x26ea70;function _0x507bda(){const _0x4d4340=_0x3ddc51;_0x45965e[_0x4d4340('0x120f')]=[];const _0x55e131=[];_0x45965e['close'][_0x4d4340('0x19fd')]&&_0x45965e[_0x4d4340('0x2132')]['type']['toLowerCase']()===_0x4d4340('0x25b6')&&_0x45965e[_0x4d4340('0x2132')][_0x4d4340('0x27c0')]==='outboundDial'&&(_0x45965e[_0x4d4340('0x2132')][_0x4d4340('0x1546')]=_0x468ed1['cutdigits']?(_0x45965e[_0x4d4340('0x2132')][_0x4d4340('0x2137')]||'')+_0x4d4340('0x2100')+_0x468ed1[_0x4d4340('0x388')]+'}':(_0x45965e[_0x4d4340('0x2132')][_0x4d4340('0x2137')]||'')+_0x4d4340('0x1f76'),_0x468ed1[_0x4d4340('0x897')]!==_0x4d4340('0x3e6')?_0x45965e[_0x4d4340('0x2132')][_0x4d4340('0x249a')][_0x4d4340('0x203c')](_0x4d4340('0x22c9'))<0x0&&(_0x45965e['close'][_0x4d4340('0x249a')]+=_0x4d4340('0x22c9')):_0x45965e[_0x4d4340('0x2132')]['options']=_0x45965e[_0x4d4340('0x2132')][_0x4d4340('0x249a')][_0x4d4340('0x814')]('U(xcally-mixmonitor-context)',''));if(_0x45965e[_0x4d4340('0x2132')][_0x4d4340('0x27c0')]&&_0x45965e[_0x4d4340('0x2132')][_0x4d4340('0x27c0')]===_0x4d4340('0xa8d')){}else switch((_0x45965e[_0x4d4340('0x2132')][_0x4d4340('0x18f5')]||_0x45965e[_0x4d4340('0x2132')][_0x4d4340('0x27c0')])['toLowerCase']()){case _0x4d4340('0xe50'):_0x45965e[_0x4d4340('0x2132')][_0x4d4340('0x13fc')]=_0x45965e[_0x4d4340('0x2132')][_0x4d4340('0x1909')]+'='+_0x45965e[_0x4d4340('0x2132')][_0x4d4340('0x10cc')];break;case _0x4d4340('0xa8d'):break;default:_0x55e131[0x0]=_0x45965e[_0x4d4340('0x2132')][_0x4d4340('0x107a')],_0x45965e['close'][_0x4d4340('0x13fc')]=_0x55e131['join'](',');}_0x26ea70(_0x45965e[_0x4d4340('0x2132')]);}function _0x26ea70(_0x34f5d4){const _0x5bb521=_0x3ddc51;_0xc4c3ee[_0x5bb521('0x237e')](_0x34f5d4);}}const _0x1f37e8=_0x523e85;_0x31f20a['$inject']=[_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0x142d'),_0x21d0f5('0xa44'),_0x21d0f5('0x1d47'),'api',_0x21d0f5('0x1150'),_0x21d0f5('0xb25')];function _0x31f20a(_0x29347b,_0x70e3f4,_0xcea2bb,_0x1d237b,_0x58f7ce,_0x58887f,_0xc44058,_0x28449e){const _0x397c94=_0x21d0f5,_0x33e20c=this;_0x33e20c['currentUser']=_0xc44058['getCurrentUser'](),_0x33e20c[_0x397c94('0x120f')]=[],_0x33e20c[_0x397c94('0x134b')]='MAIL.EDIT_'+(_0x1d237b[_0x397c94('0x27c0')]||_0x1d237b['app'])[_0x397c94('0xa6f')](),_0x33e20c['gotoif']=angular['copy'](_0x1d237b),_0x33e20c[_0x397c94('0xb25')]=_0x28449e,_0x33e20c[_0x397c94('0x2c9')]={};if(_0x33e20c['gotoif'][_0x397c94('0x13fc')])switch(_0x33e20c[_0x397c94('0x7cf')]['appType']?_0x33e20c[_0x397c94('0x7cf')][_0x397c94('0x27c0')][_0x397c94('0x20d5')]():_0x33e20c[_0x397c94('0x7cf')][_0x397c94('0x18f5')]['toLowerCase']()){case _0x397c94('0xa8d'):break;case'dialogflow':{const _0x632d6f=_0x33e20c[_0x397c94('0x7cf')][_0x397c94('0x13fc')][_0x397c94('0xaf8')](',');_0x33e20c[_0x397c94('0x7cf')]['key']=_0x632d6f[0x0],_0x33e20c[_0x397c94('0x7cf')][_0x397c94('0xeff')]=_0x632d6f[0x1],_0x33e20c['gotoif']['welcomemessage']=_0x632d6f[_0x397c94('0x1b77')](0x2,_0x632d6f['length'])['join'](',');}break;case _0x397c94('0x21a8'):{const _0x71995=_0x33e20c['gotoif'][_0x397c94('0x13fc')][_0x397c94('0xaf8')](',');_0x33e20c['gotoif'][_0x397c94('0x20e')]=_0x71995[0x0],_0x33e20c['gotoif'][_0x397c94('0x1f91')]=_0x71995[0x1],_0x33e20c[_0x397c94('0x7cf')]['privateKey']=_0x71995[0x2],_0x33e20c[_0x397c94('0x7cf')][_0x397c94('0xeff')]=_0x71995[0x3],_0x33e20c['gotoif'][_0x397c94('0x1cbc')]=_0x71995['slice'](0x4,_0x71995['length'])[_0x397c94('0xa04')](',');}break;case'amazonlex':{const _0x38a19b=_0x33e20c[_0x397c94('0x7cf')][_0x397c94('0x13fc')]['split'](',');_0x33e20c['gotoif'][_0x397c94('0x1a82')]=_0x38a19b[0x0],_0x33e20c[_0x397c94('0x7cf')][_0x397c94('0x1422')]=_0x38a19b[0x1],_0x33e20c[_0x397c94('0x7cf')][_0x397c94('0x165a')]=_0x38a19b[0x2],_0x33e20c[_0x397c94('0x7cf')][_0x397c94('0x1e8f')]=_0x38a19b[0x3],_0x33e20c[_0x397c94('0x7cf')][_0x397c94('0x1cbc')]=_0x38a19b[_0x397c94('0x1b77')](0x4,_0x38a19b[_0x397c94('0x1e22')])['join'](',');}break;case _0x397c94('0x187b'):{const _0x552ed6=_0x33e20c[_0x397c94('0x7cf')][_0x397c94('0x13fc')][_0x397c94('0xaf8')](',');_0x33e20c[_0x397c94('0x7cf')][_0x397c94('0x663')]=isNaN(_0x552ed6[0x0])?_0x552ed6[0x0]:parseInt(_0x552ed6[0x0],0xa),_0x33e20c[_0x397c94('0x7cf')][_0x397c94('0x25ed')]=_0x552ed6[_0x397c94('0x1b77')](0x1,_0x552ed6[_0x397c94('0x1e22')])['join'](',');}break;case'message':_0x33e20c['gotoif']['text']=_0x33e20c[_0x397c94('0x7cf')][_0x397c94('0x13fc')];break;case _0x397c94('0xe50'):_0x33e20c[_0x397c94('0x7cf')][_0x397c94('0x1909')]=_0x33e20c['gotoif'][_0x397c94('0x13fc')][_0x397c94('0xaf8')]('=')[0x0],_0x33e20c[_0x397c94('0x7cf')][_0x397c94('0x10cc')]=_0x33e20c['gotoif'][_0x397c94('0x13fc')][_0x397c94('0xaf8')]('=')[0x1];break;case _0x397c94('0x1efd'):_0x33e20c['gotoif'][_0x397c94('0xef0')]=_0x33e20c['gotoif']['appdata'];break;default:{const _0x439ffb=_0x33e20c[_0x397c94('0x7cf')]['appdata']['split'](',');_0x33e20c[_0x397c94('0x7cf')]['condition']=_0x36f548()[_0x397c94('0x1fc5')](_0x439ffb[0x0])?_0x439ffb[0x0]:isNaN(_0x439ffb[0x0])?_0x439ffb[0x0]:parseInt(_0x439ffb[0x0],0xa),_0x33e20c[_0x397c94('0x7cf')]['truepriority']=_0x36f548()[_0x397c94('0x1fc5')](_0x439ffb[0x1])?_0x439ffb[0x1]:isNaN(_0x439ffb[0x1])?_0x439ffb[0x1]:parseInt(_0x439ffb[0x1],0xa),_0x33e20c['gotoif'][_0x397c94('0x7ed')]=_0x36f548()[_0x397c94('0x1fc5')](_0x439ffb[0x2])?_0x439ffb[0x2]:isNaN(_0x439ffb[0x2])?_0x439ffb[0x2]:parseInt(_0x439ffb[0x2],0xa);}break;}else{}_0x33e20c[_0x397c94('0x7cf')][_0x397c94('0x19fd')]&&_0x33e20c[_0x397c94('0x7cf')][_0x397c94('0x19fd')][_0x397c94('0x20d5')]()==='outbound'&&_0x33e20c[_0x397c94('0x7cf')][_0x397c94('0x27c0')][_0x397c94('0x20d5')]()==='outbounddial'&&(_0x33e20c[_0x397c94('0x7cf')]['prefix']=_0x33e20c[_0x397c94('0x7cf')][_0x397c94('0x1546')]?_0x33e20c[_0x397c94('0x7cf')]['phone'][_0x397c94('0xaf8')]('$')[0x0]:undefined,_0x33e20c[_0x397c94('0x7cf')]['callerId']=_0x33e20c[_0x397c94('0x7cf')][_0x397c94('0xc38')]?_0x397c94('0x83a')+_0x33e20c[_0x397c94('0x7cf')][_0x397c94('0xc38')]:undefined);_0x33e20c[_0x397c94('0x1e75')]=_0x15f430,_0x33e20c[_0x397c94('0xc4e')]=_0x3dd615;function _0x15f430(){const _0x1efb6f=_0x397c94;_0x33e20c['errors']=[];const _0x33f764=[];_0x33e20c[_0x1efb6f('0x7cf')][_0x1efb6f('0x19fd')]&&_0x33e20c[_0x1efb6f('0x7cf')][_0x1efb6f('0x19fd')][_0x1efb6f('0x20d5')]()===_0x1efb6f('0x25b6')&&_0x33e20c[_0x1efb6f('0x7cf')][_0x1efb6f('0x27c0')]==='outboundDial'&&(_0x33e20c[_0x1efb6f('0x7cf')][_0x1efb6f('0x1546')]=_0x58f7ce[_0x1efb6f('0x388')]?(_0x33e20c[_0x1efb6f('0x7cf')]['prefix']||'')+_0x1efb6f('0x2100')+_0x58f7ce[_0x1efb6f('0x388')]+'}':(_0x33e20c['gotoif'][_0x1efb6f('0x2137')]||'')+_0x1efb6f('0x1f76'),_0x58f7ce['recordingFormat']!==_0x1efb6f('0x3e6')?_0x33e20c[_0x1efb6f('0x7cf')][_0x1efb6f('0x249a')][_0x1efb6f('0x203c')]('U(xcally-mixmonitor-context)')<0x0&&(_0x33e20c[_0x1efb6f('0x7cf')]['options']+=_0x1efb6f('0x22c9')):_0x33e20c[_0x1efb6f('0x7cf')][_0x1efb6f('0x249a')]=_0x33e20c[_0x1efb6f('0x7cf')][_0x1efb6f('0x249a')][_0x1efb6f('0x814')]('U(xcally-mixmonitor-context)',''));if(_0x33e20c['gotoif']['appType']&&_0x33e20c['gotoif'][_0x1efb6f('0x27c0')]===_0x1efb6f('0xa8d')){}else switch((_0x33e20c[_0x1efb6f('0x7cf')][_0x1efb6f('0x18f5')]||_0x33e20c[_0x1efb6f('0x7cf')][_0x1efb6f('0x27c0')])[_0x1efb6f('0x20d5')]()){case _0x1efb6f('0xe50'):_0x33e20c[_0x1efb6f('0x7cf')][_0x1efb6f('0x13fc')]=_0x33e20c[_0x1efb6f('0x7cf')][_0x1efb6f('0x1909')]+'='+_0x33e20c['gotoif']['value'];break;case'custom':break;default:_0x33f764[0x0]=_0x33e20c[_0x1efb6f('0x7cf')]['condition'],_0x33f764[0x1]=_0x33e20c[_0x1efb6f('0x7cf')]['truepriority'],_0x33f764[0x2]=_0x33e20c[_0x1efb6f('0x7cf')][_0x1efb6f('0x7ed')],_0x33e20c['gotoif'][_0x1efb6f('0x13fc')]=_0x33f764[_0x1efb6f('0xa04')](',');}_0x3dd615(_0x33e20c[_0x1efb6f('0x7cf')]);}function _0x3dd615(_0x369552){const _0x5a096e=_0x397c94;_0x29347b[_0x5a096e('0x237e')](_0x369552);}}const _0x1cc02e=_0x31f20a;_0x1b65bd[_0x21d0f5('0x1e9a')]=['$mdDialog','$q','toasty',_0x21d0f5('0xa44'),_0x21d0f5('0x1d47'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),_0x21d0f5('0xb25')];function _0x1b65bd(_0x2039f8,_0x8a4930,_0x43f415,_0x1aaa95,_0x1e038c,_0x326cc6,_0x633ba,_0x3fd528){const _0x3af31d=_0x21d0f5,_0x2cedea=this;_0x2cedea[_0x3af31d('0x32a')]=_0x633ba[_0x3af31d('0x2428')](),_0x2cedea[_0x3af31d('0x120f')]=[],_0x2cedea[_0x3af31d('0x134b')]='MAIL.EDIT_'+(_0x1aaa95[_0x3af31d('0x27c0')]||_0x1aaa95[_0x3af31d('0x18f5')])['toUpperCase'](),_0x2cedea['gotop']=angular[_0x3af31d('0x6fb')](_0x1aaa95),_0x2cedea[_0x3af31d('0xb25')]=_0x3fd528,_0x2cedea[_0x3af31d('0x2c9')]={};if(_0x2cedea[_0x3af31d('0x110d')]['appdata'])switch(_0x2cedea['gotop'][_0x3af31d('0x27c0')]?_0x2cedea[_0x3af31d('0x110d')][_0x3af31d('0x27c0')]['toLowerCase']():_0x2cedea['gotop'][_0x3af31d('0x18f5')]['toLowerCase']()){case _0x3af31d('0xa8d'):break;case _0x3af31d('0x185e'):{const _0x5dde17=_0x2cedea[_0x3af31d('0x110d')][_0x3af31d('0x13fc')]['split'](',');_0x2cedea[_0x3af31d('0x110d')][_0x3af31d('0xa0c')]=_0x5dde17[0x0],_0x2cedea[_0x3af31d('0x110d')][_0x3af31d('0xeff')]=_0x5dde17[0x1],_0x2cedea[_0x3af31d('0x110d')][_0x3af31d('0x1cbc')]=_0x5dde17['slice'](0x2,_0x5dde17[_0x3af31d('0x1e22')])['join'](',');}break;case _0x3af31d('0x21a8'):{const _0x79820a=_0x2cedea['gotop'][_0x3af31d('0x13fc')][_0x3af31d('0xaf8')](',');_0x2cedea[_0x3af31d('0x110d')][_0x3af31d('0x20e')]=_0x79820a[0x0],_0x2cedea[_0x3af31d('0x110d')][_0x3af31d('0x1f91')]=_0x79820a[0x1],_0x2cedea[_0x3af31d('0x110d')]['privateKey']=_0x79820a[0x2],_0x2cedea[_0x3af31d('0x110d')][_0x3af31d('0xeff')]=_0x79820a[0x3],_0x2cedea[_0x3af31d('0x110d')][_0x3af31d('0x1cbc')]=_0x79820a['slice'](0x4,_0x79820a[_0x3af31d('0x1e22')])[_0x3af31d('0xa04')](',');}break;case _0x3af31d('0x102c'):{const _0x490b33=_0x2cedea[_0x3af31d('0x110d')]['appdata'][_0x3af31d('0xaf8')](',');_0x2cedea[_0x3af31d('0x110d')][_0x3af31d('0x1a82')]=_0x490b33[0x0],_0x2cedea['gotop'][_0x3af31d('0x1422')]=_0x490b33[0x1],_0x2cedea[_0x3af31d('0x110d')]['lexregion']=_0x490b33[0x2],_0x2cedea[_0x3af31d('0x110d')][_0x3af31d('0x1e8f')]=_0x490b33[0x3],_0x2cedea[_0x3af31d('0x110d')]['welcomemessage']=_0x490b33[_0x3af31d('0x1b77')](0x4,_0x490b33['length'])['join'](',');}break;case'autoreply':{const _0x58abfa=_0x2cedea['gotop'][_0x3af31d('0x13fc')][_0x3af31d('0xaf8')](',');_0x2cedea['gotop']['times']=isNaN(_0x58abfa[0x0])?_0x58abfa[0x0]:parseInt(_0x58abfa[0x0],0xa),_0x2cedea['gotop']['text']=_0x58abfa[_0x3af31d('0x1b77')](0x1,_0x58abfa[_0x3af31d('0x1e22')])[_0x3af31d('0xa04')](',');}break;case _0x3af31d('0x1b86'):_0x2cedea[_0x3af31d('0x110d')][_0x3af31d('0x25ed')]=_0x2cedea[_0x3af31d('0x110d')]['appdata'];break;case _0x3af31d('0xe50'):_0x2cedea['gotop'][_0x3af31d('0x1909')]=_0x2cedea['gotop'][_0x3af31d('0x13fc')]['split']('=')[0x0],_0x2cedea[_0x3af31d('0x110d')]['value']=_0x2cedea['gotop'][_0x3af31d('0x13fc')][_0x3af31d('0xaf8')]('=')[0x1];break;case _0x3af31d('0x1efd'):_0x2cedea['gotop'][_0x3af31d('0xef0')]=_0x2cedea[_0x3af31d('0x110d')][_0x3af31d('0x13fc')];break;default:{const _0x1988a1=_0x2cedea[_0x3af31d('0x110d')][_0x3af31d('0x13fc')][_0x3af31d('0xaf8')](',');_0x2cedea[_0x3af31d('0x110d')][_0x3af31d('0x2804')]=_0x36f548()[_0x3af31d('0x1fc5')](_0x1988a1[0x0])?_0x1988a1[0x0]:isNaN(_0x1988a1[0x0])?_0x1988a1[0x0]:parseInt(_0x1988a1[0x0],0xa);}break;}else{}_0x2cedea[_0x3af31d('0x110d')][_0x3af31d('0x19fd')]&&_0x2cedea[_0x3af31d('0x110d')]['type'][_0x3af31d('0x20d5')]()===_0x3af31d('0x25b6')&&_0x2cedea[_0x3af31d('0x110d')][_0x3af31d('0x27c0')]['toLowerCase']()===_0x3af31d('0x1a64')&&(_0x2cedea[_0x3af31d('0x110d')][_0x3af31d('0x2137')]=_0x2cedea['gotop'][_0x3af31d('0x1546')]?_0x2cedea[_0x3af31d('0x110d')][_0x3af31d('0x1546')]['split']('$')[0x0]:undefined,_0x2cedea[_0x3af31d('0x110d')][_0x3af31d('0x7d0')]=_0x2cedea['gotop'][_0x3af31d('0xc38')]?_0x3af31d('0x83a')+_0x2cedea[_0x3af31d('0x110d')][_0x3af31d('0xc38')]:undefined);_0x2cedea[_0x3af31d('0x1e75')]=_0x4998b0,_0x2cedea[_0x3af31d('0xc4e')]=_0x4f02ff;function _0x4998b0(){const _0x16869b=_0x3af31d;_0x2cedea[_0x16869b('0x120f')]=[];const _0x24b320=[];_0x2cedea[_0x16869b('0x110d')][_0x16869b('0x19fd')]&&_0x2cedea['gotop'][_0x16869b('0x19fd')][_0x16869b('0x20d5')]()===_0x16869b('0x25b6')&&_0x2cedea[_0x16869b('0x110d')][_0x16869b('0x27c0')]===_0x16869b('0x1bf6')&&(_0x2cedea[_0x16869b('0x110d')][_0x16869b('0x1546')]=_0x1e038c[_0x16869b('0x388')]?(_0x2cedea[_0x16869b('0x110d')][_0x16869b('0x2137')]||'')+_0x16869b('0x2100')+_0x1e038c['cutdigits']+'}':(_0x2cedea[_0x16869b('0x110d')][_0x16869b('0x2137')]||'')+'${EXTEN}',_0x1e038c[_0x16869b('0x897')]!==_0x16869b('0x3e6')?_0x2cedea[_0x16869b('0x110d')][_0x16869b('0x249a')]['indexOf'](_0x16869b('0x22c9'))<0x0&&(_0x2cedea[_0x16869b('0x110d')][_0x16869b('0x249a')]+=_0x16869b('0x22c9')):_0x2cedea[_0x16869b('0x110d')][_0x16869b('0x249a')]=_0x2cedea[_0x16869b('0x110d')][_0x16869b('0x249a')][_0x16869b('0x814')](_0x16869b('0x22c9'),''));if(_0x2cedea[_0x16869b('0x110d')][_0x16869b('0x27c0')]&&_0x2cedea[_0x16869b('0x110d')]['appType']===_0x16869b('0xa8d')){}else switch((_0x2cedea[_0x16869b('0x110d')][_0x16869b('0x18f5')]||_0x2cedea[_0x16869b('0x110d')][_0x16869b('0x27c0')])[_0x16869b('0x20d5')]()){case _0x16869b('0xe50'):_0x2cedea[_0x16869b('0x110d')][_0x16869b('0x13fc')]=_0x2cedea[_0x16869b('0x110d')][_0x16869b('0x1909')]+'='+_0x2cedea['gotop'][_0x16869b('0x10cc')];break;case _0x16869b('0xa8d'):break;default:_0x24b320[0x0]=_0x2cedea[_0x16869b('0x110d')][_0x16869b('0x2804')],_0x2cedea[_0x16869b('0x110d')][_0x16869b('0x13fc')]=_0x24b320[_0x16869b('0xa04')](',');}_0x4f02ff(_0x2cedea['gotop']);}function _0x4f02ff(_0x31bdce){const _0x28fa17=_0x3af31d;_0x2039f8[_0x28fa17('0x237e')](_0x31bdce);}}const _0x5c1023=_0x1b65bd;_0x1b3741[_0x21d0f5('0x1e9a')]=['$state',_0x21d0f5('0x1ca2'),_0x21d0f5('0x1d2f'),_0x21d0f5('0x216f'),_0x21d0f5('0x507'),_0x21d0f5('0xe82'),_0x21d0f5('0x142d'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),_0x21d0f5('0xb25')];function _0x1b3741(_0x493193,_0x59469d,_0x3c14dc,_0x326dd4,_0x32a341,_0x224bea,_0x4221b2,_0x58f1e1,_0x44df4f,_0x15500f){const _0x38320c=_0x21d0f5,_0x713915=this;_0x713915['currentUser']=_0x44df4f['getCurrentUser'](),_0x713915[_0x38320c('0x120f')]=[],_0x713915['title']='TOOLS.EDIT_INTERVAL',_0x713915[_0x38320c('0x507')]=angular['copy'](_0x32a341),_0x713915[_0x38320c('0xe82')]=_0x224bea,_0x713915[_0x38320c('0x18cf')]=![],_0x713915['types']=['always',_0x38320c('0xa8d'),'list'],_0x713915[_0x38320c('0xb25')]=_0x15500f,_0x713915[_0x38320c('0xd02')]=_0x326dd4['getDaysOfWeek'](),_0x713915[_0x38320c('0x0')]=_0x326dd4[_0x38320c('0xf7a')](),_0x713915[_0x38320c('0x19c8')]=_0x326dd4[_0x38320c('0x311')](),_0x713915[_0x38320c('0x256b')]=_0x326dd4[_0x38320c('0x1ebc')]();if(!_0x713915[_0x38320c('0x507')])_0x713915[_0x38320c('0x507')]={'interval':_0x38320c('0x1830')},_0x713915[_0x38320c('0x19fd')]='always',_0x713915[_0x38320c('0x134b')]=_0x38320c('0x1aba'),_0x713915[_0x38320c('0x18cf')]=!![];else{if(_0x713915[_0x38320c('0x507')][_0x38320c('0x507')]!==_0x38320c('0x1830')){_0x713915[_0x38320c('0x19fd')]=_0x38320c('0xa8d');const _0xe7e08d=_0x713915['interval'][_0x38320c('0x507')][_0x38320c('0xaf8')](','),_0x2c9bfc=_0xe7e08d[0x0],_0x285db4=_0xe7e08d[0x1],_0x555f89=_0xe7e08d[0x2],_0x116925=_0xe7e08d[0x3];if(_0x2c9bfc!=='*'){const _0x2d81a9=_0x2c9bfc[_0x38320c('0xaf8')]('-')[0x0],_0x26ec1c=_0x2c9bfc[_0x38320c('0xaf8')]('-')[0x1];let _0x176641;_0x176641=new Date(),_0x176641['setHours'](Number(_0x2d81a9['split'](':')[0x0])),_0x176641[_0x38320c('0x7b6')](Number(_0x2d81a9[_0x38320c('0xaf8')](':')[0x1])),_0x713915[_0x38320c('0x269b')]=_0x176641,_0x176641=new Date(),_0x176641[_0x38320c('0x29e')](Number(_0x26ec1c[_0x38320c('0xaf8')](':')[0x0])),_0x176641[_0x38320c('0x7b6')](Number(_0x26ec1c[_0x38320c('0xaf8')](':')[0x1])),_0x713915[_0x38320c('0x19e5')]=_0x176641;}_0x285db4!=='*'&&(_0x713915['dayOfWeekFrom']=_0x285db4['split']('-')[0x0],_0x713915[_0x38320c('0x261')]=_0x285db4['split']('-')[0x1]),_0x555f89!=='*'&&(_0x713915['monthDayFrom']=_0x555f89[_0x38320c('0xaf8')]('-')[0x0],_0x713915[_0x38320c('0x1883')]=_0x555f89['split']('-')[0x1]),_0x116925!=='*'&&(_0x713915[_0x38320c('0xad3')]=_0x116925[_0x38320c('0xaf8')]('-')[0x0],_0x713915[_0x38320c('0x1155')]=_0x116925['split']('-')[0x1]);}else _0x713915[_0x38320c('0x19fd')]=_0x38320c('0x27e5');}_0x493193[_0x38320c('0x1ab3')]['id']&&!_0x713915[_0x38320c('0x507')]['application']&&(_0x713915[_0x38320c('0x507')]['IntervalId']=_0x493193[_0x38320c('0x1ab3')]['id']);_0x713915['interval'][_0x38320c('0x6b4')]&&_0x713915[_0x38320c('0x507')][_0x38320c('0x1cf1')]&&(_0x713915[_0x38320c('0x19fd')]=_0x38320c('0x257d'));_0x713915[_0x38320c('0x119a')]=_0x6214df,_0x713915[_0x38320c('0x26c6')]=_0x53a64b,_0x713915[_0x38320c('0xc4e')]=_0x553add;_0x713915['interval']['application']&&(_0x44df4f[_0x38320c('0x4ee')](_0x38320c('0xf45'))?_0x58f1e1['interval']['get']({'fields':_0x38320c('0x1af5'),'IntervalId':_0x38320c('0xb5f'),'nolimit':!![]})[_0x38320c('0x1549')]['then'](function(_0x25d951){const _0x5e7b75=_0x38320c;_0x713915[_0x5e7b75('0xe82')]=_0x25d951['rows']||[];})[_0x38320c('0x151d')](function(_0x4bc88c){const _0x2c58ca=_0x38320c;_0x4221b2[_0x2c58ca('0x255')]({'title':_0x4bc88c[_0x2c58ca('0xff9')]?_0x2c58ca('0x574')+_0x4bc88c[_0x2c58ca('0xff9')]+_0x2c58ca('0xb0b')+_0x4bc88c[_0x2c58ca('0x212f')]:_0x2c58ca('0x611'),'msg':_0x4bc88c[_0x2c58ca('0x4e8')]?JSON['stringify'](_0x4bc88c[_0x2c58ca('0x4e8')]):_0x4bc88c['toString']()});}):_0x58f1e1[_0x38320c('0x507')]['get']({'fields':_0x38320c('0x1af5'),'IntervalId':'null','nolimit':!![]})[_0x38320c('0x1549')][_0x38320c('0x11bf')](function(_0x57d3ae){const _0x3b810f=_0x38320c;_0x713915[_0x3b810f('0xe82')]=_0x57d3ae[_0x3b810f('0x19b2')]||[];})[_0x38320c('0x11bf')](function(){const _0x4c0d70=_0x38320c;return _0x58f1e1[_0x4c0d70('0x1d63')][_0x4c0d70('0xbaa')]({'userProfileId':_0x713915[_0x4c0d70('0x32a')]['userProfileId'],'sectionId':0x3ec})[_0x4c0d70('0x1549')];})[_0x38320c('0x11bf')](function(_0x36e2eb){const _0x2a2f0a=_0x38320c,_0x2db5d8=_0x36e2eb&&_0x36e2eb[_0x2a2f0a('0x19b2')]?_0x36e2eb[_0x2a2f0a('0x19b2')][0x0]:null;if(!_0x2db5d8)_0x713915['intervals']=[];else{if(!_0x2db5d8[_0x2a2f0a('0xf11')])return _0x58f1e1['userProfileResource'][_0x2a2f0a('0xbaa')]({'sectionId':_0x2db5d8['id']})[_0x2a2f0a('0x1549')]['then'](function(_0x4e0b76){const _0x1a21d0=_0x2a2f0a,_0x42944e=_0x4e0b76&&_0x4e0b76['rows']?_0x4e0b76[_0x1a21d0('0x19b2')]:[],_0x3dca95=[];let _0x127a22=null;_0x713915[_0x1a21d0('0x507')]&&(_0x127a22=_0x36f548()['find'](_0x713915[_0x1a21d0('0xe82')],{'name':_0x713915[_0x1a21d0('0x507')][_0x1a21d0('0x6b4')]})),_0x127a22&&!_0x36f548()[_0x1a21d0('0x1cb3')](_0x42944e,[_0x1a21d0('0x15a5'),_0x127a22['id']])&&_0x713915[_0x1a21d0('0xe82')][_0x1a21d0('0x1f88')](function(_0x73ed87){const _0x441c0f=_0x1a21d0;_0x73ed87['id']===_0x127a22['id']&&(_0x73ed87[_0x441c0f('0x254a')]=![],_0x3dca95[_0x441c0f('0x105d')](_0x73ed87));}),_0x713915[_0x1a21d0('0xe82')]=_0x3dca95;});}})[_0x38320c('0x151d')](function(_0x5a58bb){const _0x3c7e37=_0x38320c;_0x4221b2[_0x3c7e37('0x255')]({'title':_0x5a58bb['status']?_0x3c7e37('0x574')+_0x5a58bb[_0x3c7e37('0xff9')]+'\x20-\x20'+_0x5a58bb[_0x3c7e37('0x212f')]:_0x3c7e37('0x611'),'msg':_0x5a58bb[_0x3c7e37('0x4e8')]?JSON[_0x3c7e37('0x3e')](_0x5a58bb['data']):_0x5a58bb['toString']()});}));function _0x509441(){const _0x3ff96e=_0x38320c;switch(_0x713915['type']){case _0x3ff96e('0x27e5'):case _0x3ff96e('0x257d'):return _0x3ff96e('0x1830');case _0x3ff96e('0xa8d'):{const _0xde2363=[];if(_0x713915[_0x3ff96e('0x269b')]!=='*'&&_0x713915[_0x3ff96e('0x269b')]&&_0x713915['timeRangeTo']){const _0x57ef39=(_0x713915[_0x3ff96e('0x269b')][_0x3ff96e('0x1e34')]()<0xa?'0':'')+_0x713915[_0x3ff96e('0x269b')][_0x3ff96e('0x1e34')]()+':'+((_0x713915[_0x3ff96e('0x269b')][_0x3ff96e('0xdcc')]()<0xa?'0':'')+_0x713915['timeRangeFrom'][_0x3ff96e('0xdcc')]()),_0x140972=(_0x713915[_0x3ff96e('0x19e5')][_0x3ff96e('0x1e34')]()<0xa?'0':'')+_0x713915['timeRangeTo'][_0x3ff96e('0x1e34')]()+':'+((_0x713915[_0x3ff96e('0x19e5')][_0x3ff96e('0xdcc')]()<0xa?'0':'')+_0x713915[_0x3ff96e('0x19e5')]['getMinutes']());_0xde2363[_0x3ff96e('0x105d')](_0x57ef39+'-'+_0x140972);}else _0xde2363[_0x3ff96e('0x105d')]('*');return _0x713915[_0x3ff96e('0x126e')]?_0x713915[_0x3ff96e('0x261')]?_0xde2363[_0x3ff96e('0x105d')](_0x713915['dayOfWeekFrom']+'-'+_0x713915['dayOfWeekTo']):_0xde2363['push'](_0x713915[_0x3ff96e('0x126e')]):_0xde2363[_0x3ff96e('0x105d')]('*'),_0x713915[_0x3ff96e('0xecd')]?_0x713915[_0x3ff96e('0x1883')]?_0xde2363['push'](_0x713915[_0x3ff96e('0xecd')]+'-'+_0x713915[_0x3ff96e('0x1883')]):_0xde2363[_0x3ff96e('0x105d')](_0x713915['monthDayFrom']):_0xde2363[_0x3ff96e('0x105d')]('*'),_0x713915[_0x3ff96e('0xad3')]?_0x713915[_0x3ff96e('0x1155')]?_0xde2363['push'](_0x713915[_0x3ff96e('0xad3')]+'-'+_0x713915[_0x3ff96e('0x1155')]):_0xde2363[_0x3ff96e('0x105d')](_0x713915['monthFrom']):_0xde2363['push']('*'),_0xde2363[_0x3ff96e('0xa04')]();}}}function _0x6214df(){const _0x2cca1b=_0x38320c;_0x713915[_0x2cca1b('0x120f')]=[],_0x713915[_0x2cca1b('0x507')][_0x2cca1b('0x507')]=_0x509441(),_0x58f1e1[_0x2cca1b('0x507')][_0x2cca1b('0x259')](_0x713915[_0x2cca1b('0x507')])[_0x2cca1b('0x1549')][_0x2cca1b('0x11bf')](function(_0x49a16e){const _0x4db2d2=_0x2cca1b;_0x713915['intervals'][_0x4db2d2('0x105d')](_0x49a16e),_0x4221b2[_0x4db2d2('0x2693')]({'title':_0x4db2d2('0x747'),'msg':_0x713915[_0x4db2d2('0x507')][_0x4db2d2('0x1909')]?_0x713915[_0x4db2d2('0x507')][_0x4db2d2('0x1909')]+_0x4db2d2('0x7fb'):''}),_0x553add();})[_0x2cca1b('0x151d')](function(_0x2e0ba4){const _0x5e33b9=_0x2cca1b;console[_0x5e33b9('0x255')](_0x2e0ba4),_0x713915[_0x5e33b9('0x120f')]=_0x2e0ba4[_0x5e33b9('0x4e8')]['errors']||[{'message':_0x2e0ba4[_0x5e33b9('0xaab')](),'type':'api.interval.save'}];});}function _0x53a64b(){const _0x384e84=_0x38320c;_0x713915[_0x384e84('0x120f')]=[],_0x713915[_0x384e84('0x507')][_0x384e84('0x507')]=_0x509441(),_0x713915[_0x384e84('0x507')][_0x384e84('0x1cf1')]?(_0x713915[_0x384e84('0x19fd')]!==_0x384e84('0x257d')&&(_0x713915[_0x384e84('0x507')][_0x384e84('0x6b4')]=null),_0x553add(_0x713915[_0x384e84('0x507')])):_0x58f1e1[_0x384e84('0x507')][_0x384e84('0x5ab')]({'id':_0x713915[_0x384e84('0x507')]['id']},_0x713915[_0x384e84('0x507')])[_0x384e84('0x1549')][_0x384e84('0x11bf')](function(_0x44a0dd){const _0xa82993=_0x384e84,_0x2e7c50=_0x36f548()[_0xa82993('0x1ad4')](_0x713915['intervals'],{'id':_0x44a0dd['id']});_0x2e7c50&&_0x36f548()['merge'](_0x2e7c50,_0x44a0dd),_0x4221b2['success']({'title':_0xa82993('0x1177'),'msg':_0xa82993('0x904')}),_0x553add();})['catch'](function(_0x2ee9b2){const _0xeaedc9=_0x384e84;console[_0xeaedc9('0x255')](_0x2ee9b2),_0x713915[_0xeaedc9('0x120f')]=_0x2ee9b2['data'][_0xeaedc9('0x120f')]||[{'message':_0x2ee9b2[_0xeaedc9('0xaab')](),'type':_0xeaedc9('0x3dd')}];});}function _0x553add(_0x5cb7c5){const _0x22b7d4=_0x38320c;_0x59469d[_0x22b7d4('0x237e')](_0x5cb7c5);}}const _0x5a7b0d=_0x1b3741;_0x2ca559[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1ca2'),'$q','toasty',_0x21d0f5('0xa44'),_0x21d0f5('0x1d47'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),_0x21d0f5('0xb25')];function _0x2ca559(_0x262cde,_0x55ff69,_0x13c35c,_0x7be63,_0x4621cd,_0x4cc472,_0x1eb4dd,_0x3ab7f3){const _0x196ae9=_0x21d0f5,_0x56d01e=this;_0x56d01e[_0x196ae9('0x32a')]=_0x1eb4dd[_0x196ae9('0x2428')](),_0x56d01e[_0x196ae9('0x120f')]=[],_0x56d01e[_0x196ae9('0x134b')]=_0x196ae9('0xe94')+(_0x7be63[_0x196ae9('0x27c0')]||_0x7be63['app'])[_0x196ae9('0xa6f')](),_0x56d01e[_0x196ae9('0x2b8')]=angular[_0x196ae9('0x6fb')](_0x7be63),_0x56d01e[_0x196ae9('0xb25')]=_0x3ab7f3,_0x56d01e[_0x196ae9('0x2c9')]={};if(_0x56d01e[_0x196ae9('0x2b8')][_0x196ae9('0x13fc')])switch(_0x56d01e[_0x196ae9('0x2b8')][_0x196ae9('0x27c0')]?_0x56d01e['noop'][_0x196ae9('0x27c0')][_0x196ae9('0x20d5')]():_0x56d01e[_0x196ae9('0x2b8')]['app'][_0x196ae9('0x20d5')]()){case _0x196ae9('0xa8d'):break;case'dialogflow':{const _0x3e48d3=_0x56d01e[_0x196ae9('0x2b8')][_0x196ae9('0x13fc')][_0x196ae9('0xaf8')](',');_0x56d01e[_0x196ae9('0x2b8')]['key']=_0x3e48d3[0x0],_0x56d01e[_0x196ae9('0x2b8')]['language']=_0x3e48d3[0x1],_0x56d01e['noop'][_0x196ae9('0x1cbc')]=_0x3e48d3[_0x196ae9('0x1b77')](0x2,_0x3e48d3['length'])['join'](',');}break;case _0x196ae9('0x21a8'):{const _0x15f603=_0x56d01e[_0x196ae9('0x2b8')]['appdata'][_0x196ae9('0xaf8')](',');_0x56d01e[_0x196ae9('0x2b8')][_0x196ae9('0x20e')]=_0x15f603[0x0],_0x56d01e[_0x196ae9('0x2b8')][_0x196ae9('0x1f91')]=_0x15f603[0x1],_0x56d01e[_0x196ae9('0x2b8')][_0x196ae9('0x1c6c')]=_0x15f603[0x2],_0x56d01e['noop']['language']=_0x15f603[0x3],_0x56d01e[_0x196ae9('0x2b8')][_0x196ae9('0x1cbc')]=_0x15f603[_0x196ae9('0x1b77')](0x4,_0x15f603[_0x196ae9('0x1e22')])[_0x196ae9('0xa04')](',');}break;case'amazonlex':{const _0x38b3e4=_0x56d01e['noop'][_0x196ae9('0x13fc')]['split'](',');_0x56d01e[_0x196ae9('0x2b8')][_0x196ae9('0x1a82')]=_0x38b3e4[0x0],_0x56d01e[_0x196ae9('0x2b8')][_0x196ae9('0x1422')]=_0x38b3e4[0x1],_0x56d01e[_0x196ae9('0x2b8')][_0x196ae9('0x165a')]=_0x38b3e4[0x2],_0x56d01e[_0x196ae9('0x2b8')][_0x196ae9('0x1e8f')]=_0x38b3e4[0x3],_0x56d01e[_0x196ae9('0x2b8')][_0x196ae9('0x1cbc')]=_0x38b3e4[_0x196ae9('0x1b77')](0x4,_0x38b3e4[_0x196ae9('0x1e22')])[_0x196ae9('0xa04')](',');}break;case _0x196ae9('0x187b'):{const _0x12686b=_0x56d01e[_0x196ae9('0x2b8')]['appdata'][_0x196ae9('0xaf8')](',');_0x56d01e[_0x196ae9('0x2b8')][_0x196ae9('0x663')]=isNaN(_0x12686b[0x0])?_0x12686b[0x0]:parseInt(_0x12686b[0x0],0xa),_0x56d01e[_0x196ae9('0x2b8')][_0x196ae9('0x25ed')]=_0x12686b[_0x196ae9('0x1b77')](0x1,_0x12686b[_0x196ae9('0x1e22')])[_0x196ae9('0xa04')](',');}break;case _0x196ae9('0x1b86'):_0x56d01e['noop'][_0x196ae9('0x25ed')]=_0x56d01e['noop'][_0x196ae9('0x13fc')];break;case _0x196ae9('0xe50'):_0x56d01e['noop']['name']=_0x56d01e['noop'][_0x196ae9('0x13fc')][_0x196ae9('0xaf8')]('=')[0x0],_0x56d01e[_0x196ae9('0x2b8')][_0x196ae9('0x10cc')]=_0x56d01e[_0x196ae9('0x2b8')][_0x196ae9('0x13fc')][_0x196ae9('0xaf8')]('=')[0x1];break;case _0x196ae9('0x1efd'):_0x56d01e[_0x196ae9('0x2b8')][_0x196ae9('0xef0')]=_0x56d01e[_0x196ae9('0x2b8')][_0x196ae9('0x13fc')];break;default:{const _0xd8401d=_0x56d01e[_0x196ae9('0x2b8')]['appdata'][_0x196ae9('0xaf8')](',');_0x56d01e[_0x196ae9('0x2b8')][_0x196ae9('0x10cc')]=_0x36f548()[_0x196ae9('0x1fc5')](_0xd8401d[0x0])?_0xd8401d[0x0]:isNaN(_0xd8401d[0x0])?_0xd8401d[0x0]:parseInt(_0xd8401d[0x0],0xa);}break;}else{}_0x56d01e[_0x196ae9('0x2b8')]['type']&&_0x56d01e[_0x196ae9('0x2b8')][_0x196ae9('0x19fd')][_0x196ae9('0x20d5')]()==='outbound'&&_0x56d01e[_0x196ae9('0x2b8')]['appType']['toLowerCase']()===_0x196ae9('0x1a64')&&(_0x56d01e[_0x196ae9('0x2b8')][_0x196ae9('0x2137')]=_0x56d01e[_0x196ae9('0x2b8')][_0x196ae9('0x1546')]?_0x56d01e['noop'][_0x196ae9('0x1546')][_0x196ae9('0xaf8')]('$')[0x0]:undefined,_0x56d01e[_0x196ae9('0x2b8')][_0x196ae9('0x7d0')]=_0x56d01e[_0x196ae9('0x2b8')][_0x196ae9('0xc38')]?_0x196ae9('0x83a')+_0x56d01e[_0x196ae9('0x2b8')][_0x196ae9('0xc38')]:undefined);_0x56d01e[_0x196ae9('0x1e75')]=_0x1c2188,_0x56d01e[_0x196ae9('0xc4e')]=_0x486ea7;function _0x1c2188(){const _0x1ab4e8=_0x196ae9;_0x56d01e[_0x1ab4e8('0x120f')]=[];const _0x3f700c=[];_0x56d01e[_0x1ab4e8('0x2b8')]['type']&&_0x56d01e['noop'][_0x1ab4e8('0x19fd')][_0x1ab4e8('0x20d5')]()==='outbound'&&_0x56d01e[_0x1ab4e8('0x2b8')][_0x1ab4e8('0x27c0')]===_0x1ab4e8('0x1bf6')&&(_0x56d01e['noop'][_0x1ab4e8('0x1546')]=_0x4621cd[_0x1ab4e8('0x388')]?(_0x56d01e[_0x1ab4e8('0x2b8')][_0x1ab4e8('0x2137')]||'')+'${EXTEN:'+_0x4621cd[_0x1ab4e8('0x388')]+'}':(_0x56d01e[_0x1ab4e8('0x2b8')][_0x1ab4e8('0x2137')]||'')+_0x1ab4e8('0x1f76'),_0x4621cd[_0x1ab4e8('0x897')]!==_0x1ab4e8('0x3e6')?_0x56d01e[_0x1ab4e8('0x2b8')][_0x1ab4e8('0x249a')][_0x1ab4e8('0x203c')](_0x1ab4e8('0x22c9'))<0x0&&(_0x56d01e['noop'][_0x1ab4e8('0x249a')]+=_0x1ab4e8('0x22c9')):_0x56d01e[_0x1ab4e8('0x2b8')][_0x1ab4e8('0x249a')]=_0x56d01e[_0x1ab4e8('0x2b8')][_0x1ab4e8('0x249a')][_0x1ab4e8('0x814')]('U(xcally-mixmonitor-context)',''));if(_0x56d01e['noop'][_0x1ab4e8('0x27c0')]&&_0x56d01e['noop']['appType']===_0x1ab4e8('0xa8d')){}else switch((_0x56d01e[_0x1ab4e8('0x2b8')]['app']||_0x56d01e[_0x1ab4e8('0x2b8')]['appType'])[_0x1ab4e8('0x20d5')]()){case _0x1ab4e8('0xe50'):_0x56d01e[_0x1ab4e8('0x2b8')][_0x1ab4e8('0x13fc')]=_0x56d01e[_0x1ab4e8('0x2b8')][_0x1ab4e8('0x1909')]+'='+_0x56d01e[_0x1ab4e8('0x2b8')][_0x1ab4e8('0x10cc')];break;case _0x1ab4e8('0xa8d'):break;default:_0x3f700c[0x0]=_0x56d01e[_0x1ab4e8('0x2b8')][_0x1ab4e8('0x10cc')],_0x56d01e[_0x1ab4e8('0x2b8')]['appdata']=_0x3f700c[_0x1ab4e8('0xa04')](',');}_0x486ea7(_0x56d01e[_0x1ab4e8('0x2b8')]);}function _0x486ea7(_0x11d849){const _0x494818=_0x196ae9;_0x262cde[_0x494818('0x237e')](_0x11d849);}}const _0x26b356=_0x2ca559;_0x1dba56[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0x142d'),_0x21d0f5('0xa44'),_0x21d0f5('0x1d47'),_0x21d0f5('0x12a5'),'Auth',_0x21d0f5('0xb25')];function _0x1dba56(_0x3463a7,_0x140245,_0x45bf9b,_0x5d0462,_0x24d2c0,_0x116e58,_0x4d5b52,_0x5351d4){const _0x2f7baf=_0x21d0f5,_0x4189c9=this;_0x4189c9[_0x2f7baf('0x32a')]=_0x4d5b52[_0x2f7baf('0x2428')](),_0x4189c9['errors']=[],_0x4189c9[_0x2f7baf('0x134b')]=_0x2f7baf('0xe94')+(_0x5d0462[_0x2f7baf('0x27c0')]||_0x5d0462[_0x2f7baf('0x18f5')])[_0x2f7baf('0xa6f')](),_0x4189c9[_0x2f7baf('0x150b')]=angular[_0x2f7baf('0x6fb')](_0x5d0462),_0x4189c9[_0x2f7baf('0xb25')]=_0x5351d4,_0x4189c9[_0x2f7baf('0x2c9')]={};if(_0x4189c9['queue'][_0x2f7baf('0x13fc')])switch(_0x4189c9[_0x2f7baf('0x150b')][_0x2f7baf('0x27c0')]?_0x4189c9[_0x2f7baf('0x150b')][_0x2f7baf('0x27c0')][_0x2f7baf('0x20d5')]():_0x4189c9[_0x2f7baf('0x150b')][_0x2f7baf('0x18f5')][_0x2f7baf('0x20d5')]()){case _0x2f7baf('0xa8d'):break;case _0x2f7baf('0x185e'):{const _0x3ba28b=_0x4189c9[_0x2f7baf('0x150b')]['appdata'][_0x2f7baf('0xaf8')](',');_0x4189c9[_0x2f7baf('0x150b')][_0x2f7baf('0xa0c')]=_0x3ba28b[0x0],_0x4189c9[_0x2f7baf('0x150b')][_0x2f7baf('0xeff')]=_0x3ba28b[0x1],_0x4189c9[_0x2f7baf('0x150b')][_0x2f7baf('0x1cbc')]=_0x3ba28b[_0x2f7baf('0x1b77')](0x2,_0x3ba28b[_0x2f7baf('0x1e22')])[_0x2f7baf('0xa04')](',');}break;case _0x2f7baf('0x21a8'):{const _0x44e9e1=_0x4189c9[_0x2f7baf('0x150b')][_0x2f7baf('0x13fc')][_0x2f7baf('0xaf8')](',');_0x4189c9[_0x2f7baf('0x150b')][_0x2f7baf('0x20e')]=_0x44e9e1[0x0],_0x4189c9[_0x2f7baf('0x150b')][_0x2f7baf('0x1f91')]=_0x44e9e1[0x1],_0x4189c9[_0x2f7baf('0x150b')][_0x2f7baf('0x1c6c')]=_0x44e9e1[0x2],_0x4189c9[_0x2f7baf('0x150b')][_0x2f7baf('0xeff')]=_0x44e9e1[0x3],_0x4189c9[_0x2f7baf('0x150b')][_0x2f7baf('0x1cbc')]=_0x44e9e1[_0x2f7baf('0x1b77')](0x4,_0x44e9e1[_0x2f7baf('0x1e22')])['join'](',');}break;case _0x2f7baf('0x102c'):{const _0x2d22bc=_0x4189c9[_0x2f7baf('0x150b')][_0x2f7baf('0x13fc')]['split'](',');_0x4189c9[_0x2f7baf('0x150b')]['accesskeyid']=_0x2d22bc[0x0],_0x4189c9[_0x2f7baf('0x150b')][_0x2f7baf('0x1422')]=_0x2d22bc[0x1],_0x4189c9[_0x2f7baf('0x150b')]['lexregion']=_0x2d22bc[0x2],_0x4189c9[_0x2f7baf('0x150b')]['botname']=_0x2d22bc[0x3],_0x4189c9[_0x2f7baf('0x150b')][_0x2f7baf('0x1cbc')]=_0x2d22bc[_0x2f7baf('0x1b77')](0x4,_0x2d22bc[_0x2f7baf('0x1e22')])[_0x2f7baf('0xa04')](',');}break;case _0x2f7baf('0x187b'):{const _0x39dc69=_0x4189c9[_0x2f7baf('0x150b')][_0x2f7baf('0x13fc')][_0x2f7baf('0xaf8')](',');_0x4189c9[_0x2f7baf('0x150b')]['times']=isNaN(_0x39dc69[0x0])?_0x39dc69[0x0]:parseInt(_0x39dc69[0x0],0xa),_0x4189c9[_0x2f7baf('0x150b')][_0x2f7baf('0x25ed')]=_0x39dc69[_0x2f7baf('0x1b77')](0x1,_0x39dc69[_0x2f7baf('0x1e22')])[_0x2f7baf('0xa04')](',');}break;case _0x2f7baf('0x1b86'):_0x4189c9[_0x2f7baf('0x150b')]['text']=_0x4189c9[_0x2f7baf('0x150b')][_0x2f7baf('0x13fc')];break;case _0x2f7baf('0xe50'):_0x4189c9[_0x2f7baf('0x150b')][_0x2f7baf('0x1909')]=_0x4189c9[_0x2f7baf('0x150b')][_0x2f7baf('0x13fc')][_0x2f7baf('0xaf8')]('=')[0x0],_0x4189c9[_0x2f7baf('0x150b')][_0x2f7baf('0x10cc')]=_0x4189c9[_0x2f7baf('0x150b')][_0x2f7baf('0x13fc')][_0x2f7baf('0xaf8')]('=')[0x1];break;case'agi':_0x4189c9[_0x2f7baf('0x150b')][_0x2f7baf('0xef0')]=_0x4189c9[_0x2f7baf('0x150b')][_0x2f7baf('0x13fc')];break;default:{const _0x19dbd1=_0x4189c9[_0x2f7baf('0x150b')][_0x2f7baf('0x13fc')][_0x2f7baf('0xaf8')](',');_0x4189c9[_0x2f7baf('0x150b')]['queue']=_0x36f548()[_0x2f7baf('0x1fc5')](_0x19dbd1[0x0])?_0x19dbd1[0x0]:isNaN(_0x19dbd1[0x0])?_0x19dbd1[0x0]:parseInt(_0x19dbd1[0x0],0xa),_0x4189c9['queue'][_0x2f7baf('0xfbe')]=_0x36f548()[_0x2f7baf('0x1fc5')](_0x19dbd1[0x1])?_0x19dbd1[0x1]:isNaN(_0x19dbd1[0x1])?_0x19dbd1[0x1]:parseInt(_0x19dbd1[0x1],0xa);}break;}else _0x4189c9[_0x2f7baf('0x150b')]['queue']=0x12c,_0x4189c9[_0x2f7baf('0x150b')][_0x2f7baf('0xfbe')]=0x12c;_0x4189c9[_0x2f7baf('0x150b')][_0x2f7baf('0x19fd')]&&_0x4189c9['queue'][_0x2f7baf('0x19fd')]['toLowerCase']()===_0x2f7baf('0x25b6')&&_0x4189c9[_0x2f7baf('0x150b')]['appType'][_0x2f7baf('0x20d5')]()===_0x2f7baf('0x1a64')&&(_0x4189c9[_0x2f7baf('0x150b')]['prefix']=_0x4189c9['queue'][_0x2f7baf('0x1546')]?_0x4189c9['queue'][_0x2f7baf('0x1546')][_0x2f7baf('0xaf8')]('$')[0x0]:undefined,_0x4189c9[_0x2f7baf('0x150b')][_0x2f7baf('0x7d0')]=_0x4189c9[_0x2f7baf('0x150b')][_0x2f7baf('0xc38')]?_0x2f7baf('0x83a')+_0x4189c9[_0x2f7baf('0x150b')][_0x2f7baf('0xc38')]:undefined);_0x4189c9[_0x2f7baf('0x1e75')]=_0x43cfae,_0x4189c9['closeDialog']=_0x31b903,_0x4d5b52[_0x2f7baf('0x4ee')](_0x2f7baf('0xf45'))?_0x116e58[_0x2f7baf('0x251b')][_0x2f7baf('0xbaa')]({'fields':_0x2f7baf('0xde'),'sort':_0x2f7baf('0x1909'),'nolimit':_0x2f7baf('0x204c')})['$promise'][_0x2f7baf('0x11bf')](function(_0x2592d8){const _0x31e447=_0x2f7baf;_0x4189c9['queues']=_0x2592d8[_0x31e447('0x19b2')]||[];})['catch'](function(_0x4dffb3){const _0x44956c=_0x2f7baf;_0x45bf9b[_0x44956c('0x255')]({'title':_0x4dffb3[_0x44956c('0xff9')]?'API:'+_0x4dffb3[_0x44956c('0xff9')]+_0x44956c('0xb0b')+_0x4dffb3[_0x44956c('0x212f')]:_0x44956c('0x23e0'),'msg':_0x4dffb3[_0x44956c('0x4e8')]?JSON[_0x44956c('0x3e')](_0x4dffb3[_0x44956c('0x4e8')]):_0x4dffb3['toString']()});}):_0x116e58[_0x2f7baf('0x251b')][_0x2f7baf('0xbaa')]({'fields':'id,name,type','sort':_0x2f7baf('0x1909'),'nolimit':_0x2f7baf('0x204c')})[_0x2f7baf('0x1549')]['then'](function(_0x1ff6dd){const _0x5ebcc8=_0x2f7baf;_0x4189c9[_0x5ebcc8('0x1de3')]=_0x1ff6dd[_0x5ebcc8('0x19b2')]||[];})[_0x2f7baf('0x11bf')](function(){const _0x3dadc2=_0x2f7baf;return _0x116e58['userProfileSection'][_0x3dadc2('0xbaa')]({'userProfileId':_0x4189c9[_0x3dadc2('0x32a')][_0x3dadc2('0x781')],'sectionId':0x259})['$promise'];})[_0x2f7baf('0x11bf')](function(_0x10ad8b){const _0x4c0223=_0x2f7baf,_0x526166=_0x10ad8b&&_0x10ad8b[_0x4c0223('0x19b2')]?_0x10ad8b[_0x4c0223('0x19b2')][0x0]:null;if(!_0x526166){const _0x531496=[];let _0x215584=null;_0x4189c9[_0x4c0223('0x150b')]&&(_0x215584=_0x36f548()[_0x4c0223('0x1ad4')](_0x4189c9[_0x4c0223('0x1de3')],{'name':_0x4189c9[_0x4c0223('0x150b')][_0x4c0223('0x150b')]}));for(let _0x4cc98c=0x0;_0x4cc98c<_0x4189c9[_0x4c0223('0x1de3')]['length'];_0x4cc98c++){_0x215584&&_0x4189c9[_0x4c0223('0x1de3')][_0x4cc98c]['id']===_0x215584['id']&&(_0x4189c9['queues'][_0x4cc98c][_0x4c0223('0x254a')]=![],_0x531496[_0x4c0223('0x105d')](_0x4189c9['queues'][_0x4cc98c]));}_0x4189c9[_0x4c0223('0x1de3')]=_0x531496;}else{if(!_0x526166[_0x4c0223('0xf11')])return _0x116e58[_0x4c0223('0x26d1')][_0x4c0223('0xbaa')]({'sectionId':_0x526166['id']})[_0x4c0223('0x1549')][_0x4c0223('0x11bf')](function(_0x5c0355){const _0x5c540d=_0x4c0223,_0x204ce9=_0x36f548()[_0x5c540d('0x2171')](_0x5c0355[_0x5c540d('0x19b2')],function(_0x92bbfd){const _0x51e98c=_0x5c540d;return _0x36f548()[_0x51e98c('0x1ad4')](_0x4189c9[_0x51e98c('0x1de3')],{'id':_0x92bbfd[_0x51e98c('0x15a5')]});});let _0x5cc9f2=null;_0x4189c9[_0x5c540d('0x150b')]&&(_0x5cc9f2=_0x36f548()[_0x5c540d('0x1ad4')](_0x4189c9[_0x5c540d('0x1de3')],{'name':_0x4189c9[_0x5c540d('0x150b')][_0x5c540d('0x150b')]}));if(_0x5cc9f2&&!_0x36f548()[_0x5c540d('0x1cb3')](_0x204ce9,['id',_0x5cc9f2['id']])){const _0xe7784d=_0x36f548()[_0x5c540d('0x1ad4')](_0x4189c9['queues'],{'id':_0x5cc9f2['id']});_0xe7784d[_0x5c540d('0x254a')]=![],_0x204ce9[_0x5c540d('0x105d')](_0xe7784d);}_0x4189c9[_0x5c540d('0x1de3')]=_0x204ce9;});}})[_0x2f7baf('0x151d')](function(_0x2613c1){const _0xabd849=_0x2f7baf;_0x45bf9b[_0xabd849('0x255')]({'title':_0x2613c1[_0xabd849('0xff9')]?'API:'+_0x2613c1['status']+'\x20-\x20'+_0x2613c1['statusText']:'SYSTEM:GETqueues','msg':_0x2613c1[_0xabd849('0x4e8')]?JSON[_0xabd849('0x3e')](_0x2613c1[_0xabd849('0x4e8')]):_0x2613c1[_0xabd849('0xaab')]()});});function _0x43cfae(){const _0x3d670b=_0x2f7baf;_0x4189c9[_0x3d670b('0x120f')]=[];const _0x48d31e=[];_0x4189c9[_0x3d670b('0x150b')][_0x3d670b('0x19fd')]&&_0x4189c9['queue']['type'][_0x3d670b('0x20d5')]()===_0x3d670b('0x25b6')&&_0x4189c9[_0x3d670b('0x150b')][_0x3d670b('0x27c0')]===_0x3d670b('0x1bf6')&&(_0x4189c9[_0x3d670b('0x150b')][_0x3d670b('0x1546')]=_0x24d2c0['cutdigits']?(_0x4189c9[_0x3d670b('0x150b')]['prefix']||'')+_0x3d670b('0x2100')+_0x24d2c0[_0x3d670b('0x388')]+'}':(_0x4189c9[_0x3d670b('0x150b')][_0x3d670b('0x2137')]||'')+_0x3d670b('0x1f76'),_0x24d2c0[_0x3d670b('0x897')]!==_0x3d670b('0x3e6')?_0x4189c9[_0x3d670b('0x150b')]['options']['indexOf'](_0x3d670b('0x22c9'))<0x0&&(_0x4189c9[_0x3d670b('0x150b')][_0x3d670b('0x249a')]+=_0x3d670b('0x22c9')):_0x4189c9[_0x3d670b('0x150b')][_0x3d670b('0x249a')]=_0x4189c9[_0x3d670b('0x150b')][_0x3d670b('0x249a')][_0x3d670b('0x814')]('U(xcally-mixmonitor-context)',''));const _0x2b464b=_0x36f548()[_0x3d670b('0x1ad4')](_0x4189c9[_0x3d670b('0x1de3')],{'name':_0x4189c9[_0x3d670b('0x150b')][_0x3d670b('0x150b')]});_0x2b464b&&(_0x4189c9['queue'][_0x36f548()[_0x3d670b('0x22c2')](_0x3d670b('0x2030'))+'QueueId']=_0x2b464b['id']);if(_0x4189c9[_0x3d670b('0x150b')][_0x3d670b('0x27c0')]&&_0x4189c9[_0x3d670b('0x150b')][_0x3d670b('0x27c0')]===_0x3d670b('0xa8d')){}else switch((_0x4189c9[_0x3d670b('0x150b')][_0x3d670b('0x18f5')]||_0x4189c9[_0x3d670b('0x150b')][_0x3d670b('0x27c0')])['toLowerCase']()){case _0x3d670b('0xe50'):_0x4189c9[_0x3d670b('0x150b')][_0x3d670b('0x13fc')]=_0x4189c9['queue'][_0x3d670b('0x1909')]+'='+_0x4189c9[_0x3d670b('0x150b')]['value'];break;case _0x3d670b('0xa8d'):break;default:_0x48d31e[0x0]=_0x4189c9[_0x3d670b('0x150b')]['queue'],_0x48d31e[0x1]=_0x4189c9[_0x3d670b('0x150b')][_0x3d670b('0xfbe')],_0x4189c9[_0x3d670b('0x150b')]['appdata']=_0x48d31e[_0x3d670b('0xa04')](',');}_0x31b903(_0x4189c9[_0x3d670b('0x150b')]);}function _0x31b903(_0x1eed30){const _0x153dcc=_0x2f7baf;_0x3463a7[_0x153dcc('0x237e')](_0x1eed30);}}const _0x2166e2=_0x1dba56;_0x4e51a9[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0x142d'),'mailAccountApp',_0x21d0f5('0x1d47'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),_0x21d0f5('0xb25')];function _0x4e51a9(_0x2949af,_0x43f02f,_0xeaaa0b,_0xc98b03,_0x5acf28,_0xcfdd2f,_0x2dc5f7,_0x4df990){const _0x411b77=_0x21d0f5,_0x548a6b=this;_0x548a6b['currentUser']=_0x2dc5f7[_0x411b77('0x2428')](),_0x548a6b[_0x411b77('0x120f')]=[],_0x548a6b[_0x411b77('0x134b')]=_0x411b77('0xe94')+(_0xc98b03['appType']||_0xc98b03[_0x411b77('0x18f5')])[_0x411b77('0xa6f')](),_0x548a6b[_0x411b77('0x196d')]=angular[_0x411b77('0x6fb')](_0xc98b03),_0x548a6b[_0x411b77('0xb25')]=_0x4df990,_0x548a6b[_0x411b77('0x2c9')]={};if(_0x548a6b[_0x411b77('0x196d')][_0x411b77('0x13fc')])switch(_0x548a6b[_0x411b77('0x196d')][_0x411b77('0x27c0')]?_0x548a6b[_0x411b77('0x196d')][_0x411b77('0x27c0')][_0x411b77('0x20d5')]():_0x548a6b['system'][_0x411b77('0x18f5')]['toLowerCase']()){case _0x411b77('0xa8d'):break;case _0x411b77('0x185e'):{const _0x1d2899=_0x548a6b[_0x411b77('0x196d')][_0x411b77('0x13fc')]['split'](',');_0x548a6b[_0x411b77('0x196d')]['key']=_0x1d2899[0x0],_0x548a6b[_0x411b77('0x196d')][_0x411b77('0xeff')]=_0x1d2899[0x1],_0x548a6b['system'][_0x411b77('0x1cbc')]=_0x1d2899[_0x411b77('0x1b77')](0x2,_0x1d2899[_0x411b77('0x1e22')])[_0x411b77('0xa04')](',');}break;case _0x411b77('0x21a8'):{const _0x7187ce=_0x548a6b[_0x411b77('0x196d')][_0x411b77('0x13fc')][_0x411b77('0xaf8')](',');_0x548a6b[_0x411b77('0x196d')][_0x411b77('0x20e')]=_0x7187ce[0x0],_0x548a6b[_0x411b77('0x196d')]['clientEmail']=_0x7187ce[0x1],_0x548a6b[_0x411b77('0x196d')][_0x411b77('0x1c6c')]=_0x7187ce[0x2],_0x548a6b[_0x411b77('0x196d')][_0x411b77('0xeff')]=_0x7187ce[0x3],_0x548a6b[_0x411b77('0x196d')][_0x411b77('0x1cbc')]=_0x7187ce['slice'](0x4,_0x7187ce[_0x411b77('0x1e22')])[_0x411b77('0xa04')](',');}break;case'amazonlex':{const _0xdec6da=_0x548a6b[_0x411b77('0x196d')]['appdata'][_0x411b77('0xaf8')](',');_0x548a6b[_0x411b77('0x196d')][_0x411b77('0x1a82')]=_0xdec6da[0x0],_0x548a6b[_0x411b77('0x196d')][_0x411b77('0x1422')]=_0xdec6da[0x1],_0x548a6b[_0x411b77('0x196d')][_0x411b77('0x165a')]=_0xdec6da[0x2],_0x548a6b[_0x411b77('0x196d')][_0x411b77('0x1e8f')]=_0xdec6da[0x3],_0x548a6b[_0x411b77('0x196d')]['welcomemessage']=_0xdec6da['slice'](0x4,_0xdec6da[_0x411b77('0x1e22')])[_0x411b77('0xa04')](',');}break;case _0x411b77('0x187b'):{const _0x44aaaa=_0x548a6b[_0x411b77('0x196d')][_0x411b77('0x13fc')][_0x411b77('0xaf8')](',');_0x548a6b['system'][_0x411b77('0x663')]=isNaN(_0x44aaaa[0x0])?_0x44aaaa[0x0]:parseInt(_0x44aaaa[0x0],0xa),_0x548a6b['system']['text']=_0x44aaaa[_0x411b77('0x1b77')](0x1,_0x44aaaa[_0x411b77('0x1e22')])[_0x411b77('0xa04')](',');}break;case'message':_0x548a6b[_0x411b77('0x196d')][_0x411b77('0x25ed')]=_0x548a6b['system'][_0x411b77('0x13fc')];break;case _0x411b77('0xe50'):_0x548a6b[_0x411b77('0x196d')][_0x411b77('0x1909')]=_0x548a6b['system'][_0x411b77('0x13fc')][_0x411b77('0xaf8')]('=')[0x0],_0x548a6b[_0x411b77('0x196d')][_0x411b77('0x10cc')]=_0x548a6b[_0x411b77('0x196d')][_0x411b77('0x13fc')][_0x411b77('0xaf8')]('=')[0x1];break;case'agi':_0x548a6b['system']['project']=_0x548a6b['system'][_0x411b77('0x13fc')];break;default:{const _0x1f282d=_0x548a6b[_0x411b77('0x196d')][_0x411b77('0x13fc')][_0x411b77('0xaf8')](',');_0x548a6b[_0x411b77('0x196d')][_0x411b77('0x1b9f')]=_0x36f548()[_0x411b77('0x1fc5')](_0x1f282d[0x0])?_0x1f282d[0x0]:isNaN(_0x1f282d[0x0])?_0x1f282d[0x0]:parseInt(_0x1f282d[0x0],0xa),_0x548a6b['system'][_0x411b77('0xb0')]=_0x36f548()['isEmpty'](_0x1f282d[0x1])?_0x1f282d[0x1]:isNaN(_0x1f282d[0x1])?_0x1f282d[0x1]:parseInt(_0x1f282d[0x1],0xa);}break;}else _0x548a6b[_0x411b77('0x196d')][_0x411b77('0xb0')]='';_0x548a6b[_0x411b77('0x196d')]['type']&&_0x548a6b[_0x411b77('0x196d')][_0x411b77('0x19fd')][_0x411b77('0x20d5')]()===_0x411b77('0x25b6')&&_0x548a6b[_0x411b77('0x196d')][_0x411b77('0x27c0')]['toLowerCase']()===_0x411b77('0x1a64')&&(_0x548a6b['system']['prefix']=_0x548a6b[_0x411b77('0x196d')]['phone']?_0x548a6b[_0x411b77('0x196d')][_0x411b77('0x1546')]['split']('$')[0x0]:undefined,_0x548a6b[_0x411b77('0x196d')]['callerId']=_0x548a6b[_0x411b77('0x196d')][_0x411b77('0xc38')]?_0x411b77('0x83a')+_0x548a6b[_0x411b77('0x196d')][_0x411b77('0xc38')]:undefined);_0x548a6b[_0x411b77('0x1e75')]=_0x1283c0,_0x548a6b[_0x411b77('0xc4e')]=_0x21b7f2,_0x2dc5f7['hasRole'](_0x411b77('0xf45'))?_0xcfdd2f[_0x411b77('0xb0')][_0x411b77('0xbaa')]({'fields':'id,name','sort':_0x411b77('0x1909'),'nolimit':_0x411b77('0x204c')})['$promise'][_0x411b77('0x11bf')](function(_0x5242ae){const _0x481329=_0x411b77;_0x548a6b[_0x481329('0x1700')]=_0x5242ae[_0x481329('0x19b2')]||[];})[_0x411b77('0x151d')](function(_0x4fc8de){const _0x3ce847=_0x411b77;_0xeaaa0b[_0x3ce847('0x255')]({'title':_0x4fc8de['status']?_0x3ce847('0x574')+_0x4fc8de['status']+_0x3ce847('0xb0b')+_0x4fc8de[_0x3ce847('0x212f')]:_0x3ce847('0x1130'),'msg':_0x4fc8de[_0x3ce847('0x4e8')]?JSON[_0x3ce847('0x3e')](_0x4fc8de[_0x3ce847('0x4e8')]):_0x4fc8de[_0x3ce847('0xaab')]()});}):_0xcfdd2f[_0x411b77('0xb0')][_0x411b77('0xbaa')]({'fields':_0x411b77('0x721'),'sort':_0x411b77('0x1909'),'nolimit':_0x411b77('0x204c')})[_0x411b77('0x1549')][_0x411b77('0x11bf')](function(_0x5c87a9){const _0x50e543=_0x411b77;_0x548a6b[_0x50e543('0x1700')]=_0x5c87a9[_0x50e543('0x19b2')]||[];})[_0x411b77('0x11bf')](function(){const _0x36967e=_0x411b77;return _0xcfdd2f[_0x36967e('0x1d63')][_0x36967e('0xbaa')]({'userProfileId':_0x548a6b[_0x36967e('0x32a')][_0x36967e('0x781')],'sectionId':0x3f4})[_0x36967e('0x1549')];})['then'](function(_0x587e7c){const _0x3dfb50=_0x411b77,_0x2042e2=_0x587e7c&&_0x587e7c[_0x3dfb50('0x19b2')]?_0x587e7c[_0x3dfb50('0x19b2')][0x0]:null;if(!_0x2042e2){const _0x84e94b=[];let _0x1d6b55=null;_0x548a6b[_0x3dfb50('0x196d')]&&(_0x1d6b55=_0x36f548()[_0x3dfb50('0x1ad4')](_0x548a6b[_0x3dfb50('0x1700')],{'name':_0x548a6b[_0x3dfb50('0x196d')][_0x3dfb50('0xb0')]}));for(let _0x1ab9b8=0x0;_0x1ab9b8<_0x548a6b['variables'][_0x3dfb50('0x1e22')];_0x1ab9b8++){_0x1d6b55&&_0x548a6b[_0x3dfb50('0x1700')][_0x1ab9b8]['id']===_0x1d6b55['id']&&(_0x548a6b['variables'][_0x1ab9b8][_0x3dfb50('0x254a')]=![],_0x84e94b['push'](_0x548a6b[_0x3dfb50('0x1700')][_0x1ab9b8]));}_0x548a6b[_0x3dfb50('0x1700')]=_0x84e94b;}else{if(!_0x2042e2['autoAssociation'])return _0xcfdd2f[_0x3dfb50('0x26d1')][_0x3dfb50('0xbaa')]({'sectionId':_0x2042e2['id']})[_0x3dfb50('0x1549')][_0x3dfb50('0x11bf')](function(_0x30c4e5){const _0x4e00bb=_0x3dfb50,_0x5007be=_0x36f548()[_0x4e00bb('0x2171')](_0x30c4e5[_0x4e00bb('0x19b2')],function(_0x567ef1){const _0x305e91=_0x4e00bb;return _0x36f548()[_0x305e91('0x1ad4')](_0x548a6b['variables'],{'id':_0x567ef1[_0x305e91('0x15a5')]});});let _0x216a77=null;_0x548a6b[_0x4e00bb('0x196d')]&&(_0x216a77=_0x36f548()[_0x4e00bb('0x1ad4')](_0x548a6b['variables'],{'name':_0x548a6b[_0x4e00bb('0x196d')][_0x4e00bb('0xb0')]}));if(_0x216a77&&!_0x36f548()['some'](_0x5007be,['id',_0x216a77['id']])){const _0x1e11db=_0x36f548()[_0x4e00bb('0x1ad4')](_0x548a6b[_0x4e00bb('0x1700')],{'id':_0x216a77['id']});_0x1e11db[_0x4e00bb('0x254a')]=![],_0x5007be[_0x4e00bb('0x105d')](_0x1e11db);}_0x548a6b[_0x4e00bb('0x1700')]=_0x5007be;});}})[_0x411b77('0x151d')](function(_0x41ae62){const _0x349b26=_0x411b77;_0xeaaa0b[_0x349b26('0x255')]({'title':_0x41ae62[_0x349b26('0xff9')]?_0x349b26('0x574')+_0x41ae62[_0x349b26('0xff9')]+_0x349b26('0xb0b')+_0x41ae62[_0x349b26('0x212f')]:_0x349b26('0x214a'),'msg':_0x41ae62[_0x349b26('0x4e8')]?JSON[_0x349b26('0x3e')](_0x41ae62[_0x349b26('0x4e8')]):_0x41ae62[_0x349b26('0xaab')]()});});function _0x1283c0(){const _0x4de41a=_0x411b77;_0x548a6b[_0x4de41a('0x120f')]=[];const _0x12ec76=[];_0x548a6b[_0x4de41a('0x196d')][_0x4de41a('0x19fd')]&&_0x548a6b[_0x4de41a('0x196d')]['type']['toLowerCase']()===_0x4de41a('0x25b6')&&_0x548a6b[_0x4de41a('0x196d')][_0x4de41a('0x27c0')]===_0x4de41a('0x1bf6')&&(_0x548a6b[_0x4de41a('0x196d')][_0x4de41a('0x1546')]=_0x5acf28[_0x4de41a('0x388')]?(_0x548a6b['system'][_0x4de41a('0x2137')]||'')+_0x4de41a('0x2100')+_0x5acf28[_0x4de41a('0x388')]+'}':(_0x548a6b[_0x4de41a('0x196d')][_0x4de41a('0x2137')]||'')+_0x4de41a('0x1f76'),_0x5acf28[_0x4de41a('0x897')]!==_0x4de41a('0x3e6')?_0x548a6b[_0x4de41a('0x196d')][_0x4de41a('0x249a')][_0x4de41a('0x203c')](_0x4de41a('0x22c9'))<0x0&&(_0x548a6b[_0x4de41a('0x196d')][_0x4de41a('0x249a')]+=_0x4de41a('0x22c9')):_0x548a6b[_0x4de41a('0x196d')][_0x4de41a('0x249a')]=_0x548a6b[_0x4de41a('0x196d')][_0x4de41a('0x249a')]['replace'](_0x4de41a('0x22c9'),''));if(_0x548a6b[_0x4de41a('0x196d')][_0x4de41a('0x27c0')]&&_0x548a6b['system'][_0x4de41a('0x27c0')]===_0x4de41a('0xa8d')){}else switch((_0x548a6b[_0x4de41a('0x196d')][_0x4de41a('0x18f5')]||_0x548a6b[_0x4de41a('0x196d')][_0x4de41a('0x27c0')])[_0x4de41a('0x20d5')]()){case _0x4de41a('0xe50'):_0x548a6b[_0x4de41a('0x196d')][_0x4de41a('0x13fc')]=_0x548a6b[_0x4de41a('0x196d')][_0x4de41a('0x1909')]+'='+_0x548a6b[_0x4de41a('0x196d')]['value'];break;case _0x4de41a('0xa8d'):break;default:_0x12ec76[0x0]=_0x548a6b[_0x4de41a('0x196d')]['command'],_0x12ec76[0x1]=_0x548a6b[_0x4de41a('0x196d')][_0x4de41a('0xb0')],_0x548a6b[_0x4de41a('0x196d')][_0x4de41a('0x13fc')]=_0x12ec76[_0x4de41a('0xa04')](',');}_0x21b7f2(_0x548a6b[_0x4de41a('0x196d')]);}function _0x21b7f2(_0x24ddf6){const _0x514240=_0x411b77;_0x2949af[_0x514240('0x237e')](_0x24ddf6);}}const _0x2dbc85=_0x4e51a9;_0x10651d[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0x142d'),_0x21d0f5('0xa44'),_0x21d0f5('0x1d47'),_0x21d0f5('0x12a5'),'Auth',_0x21d0f5('0xb25')];function _0x10651d(_0x4fdc19,_0x32278f,_0x502c1a,_0x586c74,_0x518f81,_0x5dcc28,_0x1ad3c8,_0x21506c){const _0x516728=_0x21d0f5,_0x80aa3b=this;_0x80aa3b['currentUser']=_0x1ad3c8[_0x516728('0x2428')](),_0x80aa3b[_0x516728('0x120f')]=[],_0x80aa3b[_0x516728('0x134b')]=_0x516728('0xe94')+(_0x586c74[_0x516728('0x27c0')]||_0x586c74[_0x516728('0x18f5')])[_0x516728('0xa6f')](),_0x80aa3b['tag']=angular['copy'](_0x586c74),_0x80aa3b[_0x516728('0xb25')]=_0x21506c,_0x80aa3b[_0x516728('0x2c9')]={};if(_0x80aa3b[_0x516728('0x1d73')]['appdata'])switch(_0x80aa3b['tag'][_0x516728('0x27c0')]?_0x80aa3b[_0x516728('0x1d73')][_0x516728('0x27c0')][_0x516728('0x20d5')]():_0x80aa3b['tag'][_0x516728('0x18f5')]['toLowerCase']()){case _0x516728('0xa8d'):break;case _0x516728('0x185e'):{const _0x42a25b=_0x80aa3b[_0x516728('0x1d73')]['appdata'][_0x516728('0xaf8')](',');_0x80aa3b[_0x516728('0x1d73')][_0x516728('0xa0c')]=_0x42a25b[0x0],_0x80aa3b[_0x516728('0x1d73')][_0x516728('0xeff')]=_0x42a25b[0x1],_0x80aa3b[_0x516728('0x1d73')][_0x516728('0x1cbc')]=_0x42a25b[_0x516728('0x1b77')](0x2,_0x42a25b[_0x516728('0x1e22')])['join'](',');}break;case _0x516728('0x21a8'):{const _0x3fa575=_0x80aa3b[_0x516728('0x1d73')][_0x516728('0x13fc')]['split'](',');_0x80aa3b[_0x516728('0x1d73')]['projectId']=_0x3fa575[0x0],_0x80aa3b['tag']['clientEmail']=_0x3fa575[0x1],_0x80aa3b['tag'][_0x516728('0x1c6c')]=_0x3fa575[0x2],_0x80aa3b[_0x516728('0x1d73')][_0x516728('0xeff')]=_0x3fa575[0x3],_0x80aa3b['tag'][_0x516728('0x1cbc')]=_0x3fa575[_0x516728('0x1b77')](0x4,_0x3fa575[_0x516728('0x1e22')])[_0x516728('0xa04')](',');}break;case'amazonlex':{const _0x13194e=_0x80aa3b['tag'][_0x516728('0x13fc')][_0x516728('0xaf8')](',');_0x80aa3b[_0x516728('0x1d73')][_0x516728('0x1a82')]=_0x13194e[0x0],_0x80aa3b[_0x516728('0x1d73')][_0x516728('0x1422')]=_0x13194e[0x1],_0x80aa3b[_0x516728('0x1d73')]['lexregion']=_0x13194e[0x2],_0x80aa3b[_0x516728('0x1d73')]['botname']=_0x13194e[0x3],_0x80aa3b['tag'][_0x516728('0x1cbc')]=_0x13194e[_0x516728('0x1b77')](0x4,_0x13194e[_0x516728('0x1e22')])[_0x516728('0xa04')](',');}break;case _0x516728('0x187b'):{const _0x3f2fc4=_0x80aa3b['tag'][_0x516728('0x13fc')][_0x516728('0xaf8')](',');_0x80aa3b[_0x516728('0x1d73')]['times']=isNaN(_0x3f2fc4[0x0])?_0x3f2fc4[0x0]:parseInt(_0x3f2fc4[0x0],0xa),_0x80aa3b[_0x516728('0x1d73')][_0x516728('0x25ed')]=_0x3f2fc4[_0x516728('0x1b77')](0x1,_0x3f2fc4[_0x516728('0x1e22')])[_0x516728('0xa04')](',');}break;case _0x516728('0x1b86'):_0x80aa3b['tag'][_0x516728('0x25ed')]=_0x80aa3b['tag'][_0x516728('0x13fc')];break;case _0x516728('0xe50'):_0x80aa3b[_0x516728('0x1d73')]['name']=_0x80aa3b[_0x516728('0x1d73')]['appdata'][_0x516728('0xaf8')]('=')[0x0],_0x80aa3b[_0x516728('0x1d73')][_0x516728('0x10cc')]=_0x80aa3b[_0x516728('0x1d73')][_0x516728('0x13fc')][_0x516728('0xaf8')]('=')[0x1];break;case'agi':_0x80aa3b[_0x516728('0x1d73')][_0x516728('0xef0')]=_0x80aa3b[_0x516728('0x1d73')][_0x516728('0x13fc')];break;default:{const _0x5c905a=_0x80aa3b['tag']['appdata'][_0x516728('0xaf8')](',');_0x80aa3b['tag'][_0x516728('0x1d73')]=_0x36f548()['isEmpty'](_0x5c905a[0x0])?_0x5c905a[0x0]:isNaN(_0x5c905a[0x0])?_0x5c905a[0x0]:parseInt(_0x5c905a[0x0],0xa);}break;}else{}_0x80aa3b[_0x516728('0x1d73')]['type']&&_0x80aa3b[_0x516728('0x1d73')][_0x516728('0x19fd')][_0x516728('0x20d5')]()===_0x516728('0x25b6')&&_0x80aa3b[_0x516728('0x1d73')]['appType']['toLowerCase']()==='outbounddial'&&(_0x80aa3b[_0x516728('0x1d73')][_0x516728('0x2137')]=_0x80aa3b[_0x516728('0x1d73')][_0x516728('0x1546')]?_0x80aa3b[_0x516728('0x1d73')][_0x516728('0x1546')][_0x516728('0xaf8')]('$')[0x0]:undefined,_0x80aa3b[_0x516728('0x1d73')][_0x516728('0x7d0')]=_0x80aa3b[_0x516728('0x1d73')][_0x516728('0xc38')]?_0x516728('0x83a')+_0x80aa3b[_0x516728('0x1d73')][_0x516728('0xc38')]:undefined);_0x80aa3b['saveMailAccountApp']=_0x5d3ca6,_0x80aa3b[_0x516728('0xc4e')]=_0x2e8552,_0x1ad3c8['hasRole'](_0x516728('0xf45'))?_0x5dcc28['tag'][_0x516728('0xbaa')]({'fields':_0x516728('0x721'),'sort':_0x516728('0x1909'),'nolimit':'true'})[_0x516728('0x1549')][_0x516728('0x11bf')](function(_0x9e7e55){_0x80aa3b['tags']=_0x9e7e55['rows']||[];})['catch'](function(_0x1377f5){const _0x594211=_0x516728;_0x502c1a['error']({'title':_0x1377f5[_0x594211('0xff9')]?_0x594211('0x574')+_0x1377f5[_0x594211('0xff9')]+_0x594211('0xb0b')+_0x1377f5[_0x594211('0x212f')]:'SYSTEM:GET_TAGS','msg':_0x1377f5['data']?JSON[_0x594211('0x3e')](_0x1377f5['data']):_0x1377f5[_0x594211('0xaab')]()});}):_0x5dcc28[_0x516728('0x1d73')][_0x516728('0xbaa')]({'fields':_0x516728('0x721'),'sort':'name','nolimit':_0x516728('0x204c')})[_0x516728('0x1549')]['then'](function(_0x3a500c){const _0x3eb471=_0x516728;_0x80aa3b[_0x3eb471('0x2763')]=_0x3a500c['rows']||[];})[_0x516728('0x11bf')](function(){const _0x3349e4=_0x516728;return _0x5dcc28[_0x3349e4('0x1d63')][_0x3349e4('0xbaa')]({'userProfileId':_0x80aa3b[_0x3349e4('0x32a')][_0x3349e4('0x781')],'sectionId':0x3f0})[_0x3349e4('0x1549')];})[_0x516728('0x11bf')](function(_0x27cd2c){const _0x2cdc5c=_0x516728,_0x248338=_0x27cd2c&&_0x27cd2c[_0x2cdc5c('0x19b2')]?_0x27cd2c[_0x2cdc5c('0x19b2')][0x0]:null;if(!_0x248338){const _0x4164ee=[];let _0x2af88d=null;_0x80aa3b[_0x2cdc5c('0x1d73')]&&(_0x2af88d=_0x36f548()[_0x2cdc5c('0x1ad4')](_0x80aa3b[_0x2cdc5c('0x2763')],{'name':_0x80aa3b['tag'][_0x2cdc5c('0x1d73')]}));for(let _0xae2b82=0x0;_0xae2b82<_0x80aa3b[_0x2cdc5c('0x2763')][_0x2cdc5c('0x1e22')];_0xae2b82++){_0x2af88d&&_0x80aa3b[_0x2cdc5c('0x2763')][_0xae2b82]['id']===_0x2af88d['id']&&(_0x80aa3b[_0x2cdc5c('0x2763')][_0xae2b82][_0x2cdc5c('0x254a')]=![],_0x4164ee[_0x2cdc5c('0x105d')](_0x80aa3b[_0x2cdc5c('0x2763')][_0xae2b82]));}_0x80aa3b['tags']=_0x4164ee;}else{if(!_0x248338['autoAssociation'])return _0x5dcc28[_0x2cdc5c('0x26d1')][_0x2cdc5c('0xbaa')]({'sectionId':_0x248338['id']})[_0x2cdc5c('0x1549')]['then'](function(_0x5d7829){const _0x1a53f4=_0x2cdc5c,_0x1860be=_0x36f548()[_0x1a53f4('0x2171')](_0x5d7829[_0x1a53f4('0x19b2')],function(_0x1aaa7d){const _0x228ff5=_0x1a53f4;return _0x36f548()[_0x228ff5('0x1ad4')](_0x80aa3b[_0x228ff5('0x2763')],{'id':_0x1aaa7d['resourceId']});});let _0x49e5a5=null;_0x80aa3b[_0x1a53f4('0x1d73')]&&(_0x49e5a5=_0x36f548()[_0x1a53f4('0x1ad4')](_0x80aa3b[_0x1a53f4('0x2763')],{'name':_0x80aa3b[_0x1a53f4('0x1d73')][_0x1a53f4('0x1d73')]}));if(_0x49e5a5&&!_0x36f548()[_0x1a53f4('0x1cb3')](_0x1860be,['id',_0x49e5a5['id']])){const _0x338e51=_0x36f548()['find'](_0x80aa3b['tags'],{'id':_0x49e5a5['id']});_0x338e51[_0x1a53f4('0x254a')]=![],_0x1860be[_0x1a53f4('0x105d')](_0x338e51);}_0x80aa3b[_0x1a53f4('0x2763')]=_0x1860be;});}})[_0x516728('0x151d')](function(_0x10e214){const _0xdcb26c=_0x516728;_0x502c1a['error']({'title':_0x10e214[_0xdcb26c('0xff9')]?_0xdcb26c('0x574')+_0x10e214[_0xdcb26c('0xff9')]+'\x20-\x20'+_0x10e214['statusText']:_0xdcb26c('0xb3e'),'msg':_0x10e214['data']?JSON[_0xdcb26c('0x3e')](_0x10e214[_0xdcb26c('0x4e8')]):_0x10e214['toString']()});});function _0x5d3ca6(){const _0x290b6f=_0x516728;_0x80aa3b[_0x290b6f('0x120f')]=[];const _0x30650b=[];_0x80aa3b[_0x290b6f('0x1d73')][_0x290b6f('0x19fd')]&&_0x80aa3b[_0x290b6f('0x1d73')][_0x290b6f('0x19fd')][_0x290b6f('0x20d5')]()===_0x290b6f('0x25b6')&&_0x80aa3b['tag'][_0x290b6f('0x27c0')]===_0x290b6f('0x1bf6')&&(_0x80aa3b[_0x290b6f('0x1d73')][_0x290b6f('0x1546')]=_0x518f81[_0x290b6f('0x388')]?(_0x80aa3b['tag'][_0x290b6f('0x2137')]||'')+'${EXTEN:'+_0x518f81[_0x290b6f('0x388')]+'}':(_0x80aa3b[_0x290b6f('0x1d73')][_0x290b6f('0x2137')]||'')+'${EXTEN}',_0x518f81[_0x290b6f('0x897')]!==_0x290b6f('0x3e6')?_0x80aa3b['tag'][_0x290b6f('0x249a')][_0x290b6f('0x203c')]('U(xcally-mixmonitor-context)')<0x0&&(_0x80aa3b['tag'][_0x290b6f('0x249a')]+=_0x290b6f('0x22c9')):_0x80aa3b[_0x290b6f('0x1d73')][_0x290b6f('0x249a')]=_0x80aa3b[_0x290b6f('0x1d73')][_0x290b6f('0x249a')]['replace'](_0x290b6f('0x22c9'),''));const _0x2f068c=_0x36f548()[_0x290b6f('0x1ad4')](_0x80aa3b[_0x290b6f('0x2763')],{'name':_0x80aa3b[_0x290b6f('0x1d73')]['tag']});_0x2f068c&&(_0x80aa3b['tag'][_0x290b6f('0x3a3')]=_0x2f068c['id']);if(_0x80aa3b['tag'][_0x290b6f('0x27c0')]&&_0x80aa3b['tag'][_0x290b6f('0x27c0')]===_0x290b6f('0xa8d')){}else switch((_0x80aa3b[_0x290b6f('0x1d73')][_0x290b6f('0x18f5')]||_0x80aa3b[_0x290b6f('0x1d73')][_0x290b6f('0x27c0')])[_0x290b6f('0x20d5')]()){case _0x290b6f('0xe50'):_0x80aa3b[_0x290b6f('0x1d73')][_0x290b6f('0x13fc')]=_0x80aa3b['tag'][_0x290b6f('0x1909')]+'='+_0x80aa3b[_0x290b6f('0x1d73')]['value'];break;case _0x290b6f('0xa8d'):break;default:_0x30650b[0x0]=_0x80aa3b['tag'][_0x290b6f('0x1d73')],_0x80aa3b['tag']['appdata']=_0x30650b[_0x290b6f('0xa04')](',');}_0x2e8552(_0x80aa3b[_0x290b6f('0x1d73')]);}function _0x2e8552(_0x31fff1){_0x4fdc19['hide'](_0x31fff1);}}const _0x1dbf93=_0x10651d;_0x197617['$inject']=['$cookies','$scope','$state','$q',_0x21d0f5('0xb6b'),_0x21d0f5('0x17f5'),'$mdDialog',_0x21d0f5('0x1b30'),_0x21d0f5('0x142d'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150')];function _0x197617(_0x5dac41,_0x344eab,_0x5f57b5,_0x3a770c,_0x545f12,_0x23eb7c,_0x35d6b0,_0x1a32b2,_0x2fb6ff,_0x44ce2b,_0x341465){const _0x4bc295=_0x21d0f5,_0x3c6c60=this;_0x3c6c60[_0x4bc295('0x32a')]=_0x341465[_0x4bc295('0x2428')](),_0x3c6c60[_0x4bc295('0x1d47')]={},_0x3c6c60[_0x4bc295('0xb8')]={'count':0x0,'rows':[]},_0x3c6c60[_0x4bc295('0x895')]=[],_0x3c6c60[_0x4bc295('0xb25')],_0x3c6c60[_0x4bc295('0x1f2a')]={'read':_0x4bc295('0xb5f'),'closed':_0x4bc295('0xb5f'),'sort':'-createdAt','includeAll':'true','limit':0xa,'page':0x1},_0x3c6c60['init']=_0x41e991,_0x3c6c60[_0x4bc295('0x560')]=_0x5b6919,_0x3c6c60[_0x4bc295('0x151c')]=_0x47995a,_0x3c6c60[_0x4bc295('0x2693')]=_0x26908c,_0x3c6c60[_0x4bc295('0x283a')]=_0x5994de,_0x3c6c60['spymailInteraction']=_0x34dcc5,_0x3c6c60['openAdvancedSearch']=_0x462413,_0x3c6c60[_0x4bc295('0xfe9')]=_0x132279,_0x3c6c60['deleteMailAccountInteraction']=_0x342594,_0x3c6c60[_0x4bc295('0xe42')]=_0x21747e;function _0x41e991(_0x3159de,_0x3a07a9){const _0x36ba29=_0x4bc295;_0x3c6c60[_0x36ba29('0x1d47')]=_0x3159de,_0x3c6c60['crudPermissions']=typeof _0x3a07a9!==_0x36ba29('0x13e9')?_0x3a07a9:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x3c6c60['query'][_0x36ba29('0x2294')]=_0x3c6c60[_0x36ba29('0x1d47')]['id'],_0x3c6c60[_0x36ba29('0xd6d')]={'fields':_0x3da595()},_0x89b917();}function _0x89b917(){const _0x209196=_0x4bc295;return _0x44ce2b['tag'][_0x209196('0xbaa')]()[_0x209196('0x1549')][_0x209196('0x11bf')](function(_0x5865cb){_0x3c6c60['tags']=_0x5865cb||{'count':0x0,'rows':[]};})[_0x209196('0x11bf')](function(){const _0x5c1674=_0x209196;return _0x44ce2b[_0x5c1674('0x1f96')][_0x5c1674('0xbaa')]({'nolimit':!![]})['$promise'][_0x5c1674('0x11bf')](function(_0x3b543a){const _0x194fe7=_0x5c1674;_0x3c6c60[_0x194fe7('0x483')]=_0x3b543a||{'count':0x0,'rows':[]};});})[_0x209196('0x11bf')](function(){_0x3c6c60['quickFilters']=_0x1b86a0();});}function _0x1b86a0(){const _0xedd8fb=_0x4bc295;return[{'name':_0xedd8fb('0xa68'),'key':_0xedd8fb('0x1779'),'type':_0xedd8fb('0x22f7'),'label':_0xedd8fb('0x1c11')},{'name':'Messages','key':'read','type':_0xedd8fb('0x2350'),'label':'DASHBOARDS.SELECT_READ_UNREAD','customOptions':[{'value':0x0,'translate':'DASHBOARDS.UNREAD'},{'value':0x1,'translate':_0xedd8fb('0x22a5')},{'value':null,'translate':_0xedd8fb('0x211a')}]},{'name':'Status','key':_0xedd8fb('0x949'),'type':_0xedd8fb('0x2350'),'label':'DASHBOARDS.SELECT_STATUS','customOptions':[{'value':0x0,'translate':_0xedd8fb('0x2846')},{'value':0x1,'translate':_0xedd8fb('0x199')},{'value':null,'translate':_0xedd8fb('0x211a')}]},{'name':'Substatus','key':_0xedd8fb('0x1ba7'),'type':_0xedd8fb('0x2350'),'label':'DASHBOARDS.SELECT_SUBSTATUS','options':_0x3c6c60['subStatuses']['rows'],'customOptions':[{'value':_0xedd8fb('0xb5f'),'translate':_0xedd8fb('0x275b')},{'value':undefined,'translate':'DASHBOARDS.ALL'}],'ngValue':_0xedd8fb('0x1909'),'ngIf':_0xedd8fb('0x28d')},{'name':_0xedd8fb('0x701'),'key':_0xedd8fb('0x2342'),'type':_0xedd8fb('0x2350'),'label':_0xedd8fb('0x84a'),'customOptions':[{'value':_0xedd8fb('0xb5f'),'translate':_0xedd8fb('0x1a02')},{'value':undefined,'translate':_0xedd8fb('0x211a')}]},{'name':_0xedd8fb('0x23ba'),'key':_0xedd8fb('0x1d73'),'type':'multiselect','label':_0xedd8fb('0x9b9'),'options':_0x3c6c60[_0xedd8fb('0x2763')][_0xedd8fb('0x19b2')],'placeholder':_0xedd8fb('0x1f9a')}];}function _0x3da595(){const _0x36cf65=_0x4bc295;return[{'name':'Id','column':'id','type':_0x36cf65('0x139e')},{'name':'Contact','column':_0x36cf65('0xf10'),'type':_0x36cf65('0x282b'),'options':{'searchFields':[_0x36cf65('0x13a0'),_0x36cf65('0xcf3'),'email'],'route':{'model':_0x36cf65('0x1b8f'),'action':'get','params':{'fields':'id,firstName,lastName,email','Contact':_0x36cf65('0xfda'),'nolimit':!![]}},'extraOperators':[_0x36cf65('0x512')],'excludedOperators':['$ne']}},{'name':_0x36cf65('0x8a9'),'column':_0x36cf65('0x20eb'),'type':_0x36cf65('0x25ed'),'options':{'excludedOperators':['$eq',_0x36cf65('0x27c1')]}},{'name':'Body','column':'plainBody','type':_0x36cf65('0x25ed'),'options':{'excludedOperators':[_0x36cf65('0x23de'),_0x36cf65('0x27c1')]}},{'name':_0x36cf65('0x971'),'column':_0x36cf65('0x949'),'type':_0x36cf65('0x2350'),'values':[{'id':0x0,'translate':_0x36cf65('0x2846')},{'id':0x1,'translate':'DASHBOARDS.CLOSED'}],'options':{'excludedOperators':['$ne']}},{'name':_0x36cf65('0x2826'),'column':_0x36cf65('0x1ba7'),'type':_0x36cf65('0xe83'),'options':{'field':_0x36cf65('0x1909'),'route':{'model':'mailSubstatus','action':_0x36cf65('0xbaa'),'params':{'nolimit':!![]}},'excludedOperators':[_0x36cf65('0x1239')]}},{'name':_0x36cf65('0x701'),'column':_0x36cf65('0x24ab'),'type':_0x36cf65('0x282b'),'options':{'table':'i','route':{'model':'user','action':_0x36cf65('0xbaa'),'params':{'role':'agent','fields':_0x36cf65('0x919'),'nolimit':!![]}},'searchFields':[_0x36cf65('0x27af'),_0x36cf65('0x1909')],'extraOperators':[_0x36cf65('0x512')],'excludedOperators':['$ne']}},{'name':_0x36cf65('0x806'),'column':_0x36cf65('0x23ba'),'type':'multiselect','options':{'route':{'model':_0x36cf65('0x1d73'),'action':'get','params':{'nolimit':!![]}},'excludedOperators':[_0x36cf65('0x1239')]}},{'name':'Start\x20Date','column':_0x36cf65('0x1779'),'type':_0x36cf65('0x22f7'),'options':{'excludedOperators':[_0x36cf65('0x27c1')]}},{'name':_0x36cf65('0xf18'),'column':_0x36cf65('0xf2'),'type':'select','values':[{'id':0x1,'translate':_0x36cf65('0x22a5')},{'id':0x0,'translate':_0x36cf65('0x1dd4')}],'options':{'excludedOperators':[_0x36cf65('0x27c1')]}}];}function _0x462413(){const _0x578718=_0x4bc295;_0x35d6b0[_0x578718('0xb9')]({'controller':_0x578718('0x5'),'controllerAs':'vm','templateUrl':_0x19602a,'parent':angular[_0x578718('0x1e73')](_0x1a32b2[_0x578718('0x1d2')]),'clickOutsideToClose':![],'locals':{'fields':_0x3c6c60['advancedSearch'][_0x578718('0x1067')],'color':undefined,'storagePath':_0x578718('0x329')},'fullscreen':!![]})[_0x578718('0x11bf')](function(_0x4ef5e2){const _0x410122=_0x578718;_0x3c6c60[_0x410122('0x1f2a')][_0x410122('0xce2')]=_0x4ef5e2===![]?undefined:_0x4ef5e2;if(_0x3c6c60[_0x410122('0x1f2a')][_0x410122('0xce2')])_0x3c6c60[_0x410122('0x1f2a')][_0x410122('0xce2')]+=_0x410122('0x1467')+_0x3c6c60[_0x410122('0x1d47')]['id']+']',_0x5994de();else _0x4ef5e2===![]&&_0x5994de();})['catch'](function(_0x40d6d0){const _0xd15bf1=_0x578718;_0x2fb6ff['error']({'title':_0xd15bf1('0x1d30'),'msg':_0x40d6d0[_0xd15bf1('0x4e8')]?JSON['stringify'](_0x40d6d0['data']['message']):_0x40d6d0[_0xd15bf1('0xaab')]()});});}function _0x47995a(_0x44ed27,_0x592d53,_0xfda71e){const _0x3a893b=_0x4bc295;return _0x44ce2b[_0x3a893b('0x26e3')]['download']({'id':_0x44ed27['id'],'exists':!![],'attachments':_0xfda71e})[_0x3a893b('0x1549')][_0x3a893b('0x11bf')](function(_0xf1843e){const _0x2a5139=_0x3a893b,_0x1d0032=[_0xf1843e[_0x2a5139('0x1e94')]];let _0x2023af=_0x2a5139('0x4e6')+_0x44ed27['id'];const _0x14baa3=new Blob(_0x1d0032,{'type':_0xf1843e['type']});_0x2023af='mail-interaction'+_0x44ed27['id']+_0x2a5139('0x4a7');const _0x1dd198=window[_0x2a5139('0xb54')][_0x2a5139('0x2773')]('a');_0x1dd198[_0x2a5139('0x1e1b')](_0x2a5139('0xead'),URL['createObjectURL'](_0x14baa3)),_0x1dd198[_0x2a5139('0x1e1b')](_0x2a5139('0x149c'),_0x2023af),document['body'][_0x2a5139('0x131c')](_0x1dd198),_0x1dd198[_0x2a5139('0x1371')]();})['catch'](function(_0x358ca2){const _0x43541d=_0x3a893b;if(_0x358ca2[_0x43541d('0x4e8')]&&_0x358ca2[_0x43541d('0x4e8')]['errors']&&_0x358ca2[_0x43541d('0x4e8')][_0x43541d('0x120f')][_0x43541d('0x1e22')])for(let _0x468c5f=0x0;_0x468c5f<_0x358ca2[_0x43541d('0x4e8')]['errors'][_0x43541d('0x1e22')];_0x468c5f+=0x1){_0x2fb6ff[_0x43541d('0x255')]({'title':_0x358ca2[_0x43541d('0x4e8')][_0x43541d('0x120f')][_0x468c5f]['type'],'msg':_0x358ca2[_0x43541d('0x4e8')][_0x43541d('0x120f')][_0x468c5f][_0x43541d('0x1b86')]});}else _0x2fb6ff['error']({'title':_0x358ca2[_0x43541d('0xff9')]?'API:'+_0x358ca2['status']+_0x43541d('0xb0b')+_0x358ca2[_0x43541d('0x212f')]:_0x43541d('0x1333'),'msg':_0x358ca2[_0x43541d('0x4e8')]?JSON[_0x43541d('0x3e')](_0x358ca2[_0x43541d('0x4e8')][_0x43541d('0x1b86')]):_0x358ca2[_0x43541d('0xaab')]()});});}function _0x5b6919(_0x4d0fbe,_0x1ec915){const _0x3334e8=_0x4bc295,_0x1881b0=_0x35d6b0[_0x3334e8('0x132b')]()['title'](_0x3334e8('0x1d6a'))['htmlContent'](''+(_0x4d0fbe[_0x3334e8('0x1909')]||_0x4d0fbe['id']&&_0x36f548()['upperFirst'](_0x3334e8('0x161c'))+_0x4d0fbe['id']||_0x3334e8('0x4e6'))+_0x3334e8('0x1c78')+_0x3334e8('0x1a'))[_0x3334e8('0xb2e')](_0x3334e8('0x14fe'))['targetEvent'](_0x1ec915)['ok']('OK')['cancel'](_0x3334e8('0x772'));_0x35d6b0['show'](_0x1881b0)[_0x3334e8('0x11bf')](function(){_0x342594(_0x4d0fbe);},function(){const _0x23b14f=_0x3334e8;console['log'](_0x23b14f('0x772'));});}function _0x26908c(_0x4c28c2){const _0x21eda5=_0x4bc295;_0x3c6c60[_0x21eda5('0xb8')]=_0x4c28c2||{'count':0x0,'rows':[]};for(let _0x30f722=0x0;_0x30f722<_0x3c6c60[_0x21eda5('0xb8')]['rows']['length'];_0x30f722+=0x1){const _0x4d0b93=_0x3c6c60[_0x21eda5('0xb8')]['rows'][_0x30f722];_0x57434f(_0x4d0b93),_0x4d0b93[_0x21eda5('0x657')][_0x21eda5('0x1909')]=_0x554519(_0x4d0b93);}}function _0x5994de(){const _0x218c21=_0x4bc295;_0x3c6c60['query'][_0x218c21('0x1393')]=(_0x3c6c60[_0x218c21('0x1f2a')][_0x218c21('0x1c2')]-0x1)*_0x3c6c60[_0x218c21('0x1f2a')][_0x218c21('0xd5c')],_0x3c6c60[_0x218c21('0x13f')]=_0x44ce2b[_0x218c21('0x26e3')][_0x218c21('0xbaa')](_0x3c6c60['query'],_0x26908c)[_0x218c21('0x1549')];}function _0x34dcc5(_0x40726d,_0x1ba1e4){const _0xc323bc=_0x4bc295;_0x35d6b0['show']({'controller':'AgentGeneralInteractionController','controllerAs':'vm','templateUrl':_0x1742d8,'parent':angular[_0xc323bc('0x1e73')](_0x1a32b2[_0xc323bc('0x1d2')]),'targetEvent':_0x40726d,'clickOutsideToClose':!![],'onShowing':function(_0x5ced56){const _0x2a2ef4=_0xc323bc;_0x5ced56['vm'][_0x2a2ef4('0x286f')]({'id':0x1,'channel':_0x2a2ef4('0x2030'),'interaction':_0x1ba1e4,'spy':!![]},_0x344eab[_0x2a2ef4('0x25f5')]['vm'][_0x2a2ef4('0x23e1')]);}});}function _0x342594(_0x3e9b76){const _0x995ead=_0x4bc295;_0x44ce2b['mailInteraction'][_0x995ead('0x2088')]({'id':_0x3e9b76['id']})[_0x995ead('0x1549')]['then'](function(){const _0x1e62b9=_0x995ead;_0x36f548()['remove'](_0x3c6c60['mailAccountInteractions'][_0x1e62b9('0x19b2')],{'id':_0x3e9b76['id']}),_0x3c6c60['mailAccountInteractions'][_0x1e62b9('0x27d2')]-=0x1,!_0x3c6c60[_0x1e62b9('0xb8')][_0x1e62b9('0x19b2')]['length']&&_0x5994de(),_0x2fb6ff['success']({'title':_0x1e62b9('0xc64'),'msg':_0x3e9b76[_0x1e62b9('0x1909')]?_0x3e9b76[_0x1e62b9('0x1909')]+_0x1e62b9('0x433'):''});})[_0x995ead('0x151d')](function(_0x164ce5){const _0x21af06=_0x995ead;if(_0x164ce5[_0x21af06('0x4e8')]&&_0x164ce5['data']['errors']&&_0x164ce5[_0x21af06('0x4e8')][_0x21af06('0x120f')][_0x21af06('0x1e22')]){_0x3c6c60['errors']=_0x164ce5[_0x21af06('0x4e8')][_0x21af06('0x120f')]||[{'message':_0x164ce5[_0x21af06('0xaab')](),'type':_0x21af06('0x186c')}];for(let _0x2cfd08=0x0;_0x2cfd08<_0x164ce5[_0x21af06('0x4e8')][_0x21af06('0x120f')][_0x21af06('0x1e22')];_0x2cfd08++){_0x2fb6ff['error']({'title':_0x164ce5['data']['errors'][_0x2cfd08]['type'],'msg':_0x164ce5[_0x21af06('0x4e8')][_0x21af06('0x120f')][_0x2cfd08][_0x21af06('0x1b86')]});}}else _0x2fb6ff[_0x21af06('0x255')]({'title':_0x164ce5[_0x21af06('0xff9')]?'API:'+_0x164ce5['status']+_0x21af06('0xb0b')+_0x164ce5[_0x21af06('0x212f')]:_0x21af06('0x186c'),'msg':_0x164ce5[_0x21af06('0x4e8')]?JSON[_0x21af06('0x3e')](_0x164ce5[_0x21af06('0x4e8')]['message']):_0x164ce5[_0x21af06('0x1b86')]||_0x164ce5[_0x21af06('0xaab')]()});});}function _0x132279(){const _0x5a8429=_0x4bc295,_0x2502ff=angular[_0x5a8429('0x6fb')](_0x3c6c60[_0x5a8429('0x895')]);return _0x3c6c60[_0x5a8429('0x895')]=[],_0x2502ff;}function _0x21747e(_0x5c0b00){const _0x5821f3=_0x4bc295,_0x61208e=_0x35d6b0['confirm']()[_0x5821f3('0x134b')](_0x5821f3('0x1c8d'))[_0x5821f3('0x1d03')](_0x5821f3('0x2061')+_0x3c6c60[_0x5821f3('0x895')][_0x5821f3('0x1e22')]+'\x20selected'+_0x5821f3('0x1a'))[_0x5821f3('0xb2e')](_0x5821f3('0xcbb'))[_0x5821f3('0x1e25')](_0x5c0b00)['ok']('OK')[_0x5821f3('0x26c9')](_0x5821f3('0x772'));_0x35d6b0[_0x5821f3('0xb9')](_0x61208e)[_0x5821f3('0x11bf')](function(){const _0x13b647=_0x5821f3;_0x3c6c60['selectedMailAccountInteractions'][_0x13b647('0x1f88')](function(_0x43a5b8){_0x342594(_0x43a5b8);}),_0x3c6c60[_0x13b647('0x895')]=[];});}function _0x57434f(_0x4075ab){const _0x289e0c=_0x4bc295;if(!_0x36f548()[_0x289e0c('0x1fc5')](_0x4075ab['to'])&&!_0x36f548()[_0x289e0c('0x55a')](_0x4075ab['to'],_0x3c6c60['mailAccount'][_0x289e0c('0x15d3')]))_0x4075ab[_0x289e0c('0xca9')]=_0x4075ab['to'][_0x289e0c('0xaf8')]('\x20<')[0x0],_0x4075ab['contactInfo']=_0x4075ab['to'][_0x289e0c('0xaf8')]('<')[_0x289e0c('0xfaa')]()[_0x289e0c('0xaf8')]('>')[0x0];else _0x4075ab['Contact']?(_0x4075ab['contactName']=(_0x4075ab[_0x289e0c('0xf10')]['firstName']||'')+'\x20'+(_0x4075ab['Contact'][_0x289e0c('0xcf3')]||''),_0x4075ab['contactInfo']=_0x4075ab[_0x289e0c('0xf10')][_0x289e0c('0x15d3')]||''):_0x4075ab[_0x289e0c('0xca9')]=_0x545f12[_0x289e0c('0x10c2')]('APP.UNKNOWN');}function _0x554519(_0x3195cc){const _0x4bbe90=_0x4bc295;if(_0x3195cc['UserId'])return _0x3195cc[_0x4bbe90('0x2342')]===_0x3c6c60[_0x4bbe90('0x32a')]['id']?_0x545f12['instant'](_0x4bbe90('0x275d')):_0x3195cc[_0x4bbe90('0x657')][_0x4bbe90('0x27af')]+'\x20<'+_0x3195cc[_0x4bbe90('0x657')]['internal']+'>';return _0x545f12[_0x4bbe90('0x10c2')](_0x4bbe90('0x1a02'));}let _0x37f7d0=!![],_0x5156c7=0x1;_0x344eab[_0x4bc295('0x2087')](_0x4bc295('0x1d12'),function(_0x453b27,_0x440bf9){const _0x4499b1=_0x4bc295;_0x37f7d0?_0x23eb7c(function(){_0x37f7d0=![];}):(!_0x440bf9&&(_0x5156c7=_0x3c6c60[_0x4499b1('0x1f2a')]['page']),_0x453b27!==_0x440bf9&&(_0x3c6c60[_0x4499b1('0x1f2a')]['page']=0x1),!_0x453b27&&(_0x3c6c60['query'][_0x4499b1('0x1c2')]=_0x5156c7),_0x5994de());});}const _0x7d2cb4=_0x197617,_0x494521=_0x351988['p']+_0x21d0f5('0x1aa0');_0x33cc54[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x5d8'),_0x21d0f5('0x1b80'),'$state','$q','$translate','$timeout',_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),_0x21d0f5('0x142d'),_0x21d0f5('0x12a5'),'Auth'];function _0x33cc54(_0x2d1216,_0x4bfb9e,_0x4fbbb3,_0x45b793,_0x200ece,_0x8e9e35,_0x5e1d95,_0x523bf4,_0x27b6b5,_0x5b95f2,_0x193486){const _0x482c48=_0x21d0f5,_0x2c2995=this;_0x2c2995[_0x482c48('0x32a')]=_0x193486[_0x482c48('0x2428')](),_0x2c2995[_0x482c48('0x1d47')]={},_0x2c2995[_0x482c48('0x1055')]={'count':0x0,'rows':[]},_0x2c2995[_0x482c48('0x20d2')]=[],_0x2c2995['crudPermissions'],_0x2c2995[_0x482c48('0x1f2a')]={'fields':_0x482c48('0x1cb4'),'limit':0xa,'page':0x1},_0x2c2995[_0x482c48('0x286f')]=_0x399a1a,_0x2c2995[_0x482c48('0x560')]=_0x49b9f5,_0x2c2995[_0x482c48('0x2693')]=_0x5428e2,_0x2c2995[_0x482c48('0xd49')]=_0x2f7210,_0x2c2995[_0x482c48('0x240f')]=_0x192be7,_0x2c2995[_0x482c48('0x265c')]=_0x483e13,_0x2c2995[_0x482c48('0x12bf')]=_0xdecb8c,_0x2c2995[_0x482c48('0x14bd')]=_0x51b9ec;function _0x399a1a(_0x3cdc95,_0xcf3068){const _0x460cb1=_0x482c48;_0x2c2995['mailAccount']=_0x3cdc95,_0x2c2995[_0x460cb1('0xb25')]=typeof _0xcf3068!==_0x460cb1('0x13e9')?_0xcf3068:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x2c2995[_0x460cb1('0x1f2a')][_0x460cb1('0x2294')]=_0x2c2995[_0x460cb1('0x1d47')]['id'],_0x2c2995[_0x460cb1('0x1f2a')]['id']=_0x2c2995['mailAccount']['id'],_0x2f7210();}function _0x49b9f5(_0xece88e,_0x4c6452){const _0x286cbe=_0x482c48,_0x5f4747=_0x5e1d95[_0x286cbe('0x132b')]()[_0x286cbe('0x134b')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20mailCannedAnswer?')[_0x286cbe('0x1d03')](_0x286cbe('0x2061')+(_0xece88e[_0x286cbe('0x1909')]||_0xece88e['id']&&_0x36f548()[_0x286cbe('0x24b5')]('mailCannedAnswer\x20#')+_0xece88e['id']||_0x286cbe('0x170e'))+_0x286cbe('0x1c78')+_0x286cbe('0x1a'))[_0x286cbe('0xb2e')](_0x286cbe('0x248a'))[_0x286cbe('0x1e25')](_0x4c6452)['ok']('OK')[_0x286cbe('0x26c9')](_0x286cbe('0x772'));_0x5e1d95[_0x286cbe('0xb9')](_0x5f4747)[_0x286cbe('0x11bf')](function(){_0xdecb8c(_0xece88e);},function(){const _0x210835=_0x286cbe;console['log'](_0x210835('0x772'));});}function _0x5428e2(_0x35cf55){const _0x4fd298=_0x482c48;_0x2c2995[_0x4fd298('0x1055')]=_0x35cf55||{'count':0x0,'rows':[]};}function _0x2f7210(){const _0x37ba8b=_0x482c48;_0x2c2995[_0x37ba8b('0x1f2a')][_0x37ba8b('0x1393')]=(_0x2c2995['query']['page']-0x1)*_0x2c2995[_0x37ba8b('0x1f2a')]['limit'],_0x2c2995[_0x37ba8b('0x13f')]=_0x5b95f2['mailAccount'][_0x37ba8b('0x2785')](_0x2c2995[_0x37ba8b('0x1f2a')],_0x5428e2)[_0x37ba8b('0x1549')];}function _0x192be7(_0x4cc90a,_0x171f4c){const _0x266480=_0x482c48;_0x5e1d95['show']({'controller':_0x266480('0x486'),'controllerAs':'vm','templateUrl':_0x494521,'parent':angular[_0x266480('0x1e73')](_0x523bf4[_0x266480('0x1d2')]),'targetEvent':_0x4cc90a,'clickOutsideToClose':!![],'locals':{'mailAccount':_0x2c2995[_0x266480('0x1d47')],'mailCannedAnswer':_0x171f4c,'mailCannedAnswers':_0x2c2995[_0x266480('0x1055')][_0x266480('0x19b2')],'license':null,'setting':null,'crudPermissions':_0x2c2995[_0x266480('0xb25')]}});}function _0xdecb8c(_0x55de03){const _0x234337=_0x482c48;_0x5b95f2[_0x234337('0x81')][_0x234337('0x2088')]({'id':_0x55de03['id']})['$promise'][_0x234337('0x11bf')](function(){const _0x52a6d7=_0x234337;_0x36f548()['remove'](_0x2c2995['mailAccountMailCannedAnswers'][_0x52a6d7('0x19b2')],{'id':_0x55de03['id']}),_0x2c2995[_0x52a6d7('0x1055')][_0x52a6d7('0x27d2')]-=0x1,!_0x2c2995[_0x52a6d7('0x1055')]['rows']['length']&&_0x2f7210(),_0x27b6b5[_0x52a6d7('0x2693')]({'title':'MailCannedAnswer\x20deleted!','msg':_0x55de03[_0x52a6d7('0x1909')]?_0x55de03[_0x52a6d7('0x1909')]+'\x20has\x20been\x20deleted!':''});})[_0x234337('0x151d')](function(_0x5d3b4b){const _0x1ea4a7=_0x234337;if(_0x5d3b4b['data']&&_0x5d3b4b['data']['errors']&&_0x5d3b4b[_0x1ea4a7('0x4e8')][_0x1ea4a7('0x120f')]['length']){_0x2c2995[_0x1ea4a7('0x120f')]=_0x5d3b4b['data'][_0x1ea4a7('0x120f')]||[{'message':_0x5d3b4b[_0x1ea4a7('0xaab')](),'type':_0x1ea4a7('0x186c')}];for(let _0x58ff49=0x0;_0x58ff49<_0x5d3b4b[_0x1ea4a7('0x4e8')][_0x1ea4a7('0x120f')]['length'];_0x58ff49++){_0x27b6b5[_0x1ea4a7('0x255')]({'title':_0x5d3b4b['data'][_0x1ea4a7('0x120f')][_0x58ff49][_0x1ea4a7('0x19fd')],'msg':_0x5d3b4b[_0x1ea4a7('0x4e8')][_0x1ea4a7('0x120f')][_0x58ff49][_0x1ea4a7('0x1b86')]});}}else _0x27b6b5[_0x1ea4a7('0x255')]({'title':_0x5d3b4b[_0x1ea4a7('0xff9')]?_0x1ea4a7('0x574')+_0x5d3b4b[_0x1ea4a7('0xff9')]+_0x1ea4a7('0xb0b')+_0x5d3b4b[_0x1ea4a7('0x212f')]:_0x1ea4a7('0x186c'),'msg':_0x5d3b4b[_0x1ea4a7('0x4e8')]?JSON[_0x1ea4a7('0x3e')](_0x5d3b4b[_0x1ea4a7('0x4e8')][_0x1ea4a7('0x1b86')]):_0x5d3b4b[_0x1ea4a7('0x1b86')]||_0x5d3b4b[_0x1ea4a7('0xaab')]()});});}function _0x483e13(){const _0x4131c7=_0x482c48,_0x3d44ec=angular[_0x4131c7('0x6fb')](_0x2c2995[_0x4131c7('0x20d2')]);return _0x2c2995[_0x4131c7('0x20d2')]=[],_0x3d44ec;}function _0x51b9ec(_0x368d04){const _0x50e551=_0x482c48,_0x1d4cad=_0x5e1d95[_0x50e551('0x132b')]()[_0x50e551('0x134b')](_0x50e551('0x1288'))['htmlContent'](_0x50e551('0x2061')+_0x2c2995['selectedMailAccountMailCannedAnswers'][_0x50e551('0x1e22')]+_0x50e551('0xac6')+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x50e551('0x1988'))['targetEvent'](_0x368d04)['ok']('OK')[_0x50e551('0x26c9')]('CANCEL');_0x5e1d95[_0x50e551('0xb9')](_0x1d4cad)[_0x50e551('0x11bf')](function(){const _0x43b962=_0x50e551;_0x2c2995[_0x43b962('0x20d2')][_0x43b962('0x1f88')](function(_0x498bde){_0xdecb8c(_0x498bde);}),_0x2c2995[_0x43b962('0x20d2')]=[];});}let _0xf31a7c=!![],_0x2ad044=0x1;_0x4bfb9e[_0x482c48('0x2087')]('vm_dc.query.filter',function(_0x459277,_0x40d614){const _0x3af3f3=_0x482c48;_0xf31a7c?_0x8e9e35(function(){_0xf31a7c=![];}):(!_0x40d614&&(_0x2ad044=_0x2c2995[_0x3af3f3('0x1f2a')][_0x3af3f3('0x1c2')]),_0x459277!==_0x40d614&&(_0x2c2995[_0x3af3f3('0x1f2a')][_0x3af3f3('0x1c2')]=0x1),!_0x459277&&(_0x2c2995[_0x3af3f3('0x1f2a')][_0x3af3f3('0x1c2')]=_0x2ad044),_0x2f7210());});}const _0x4c90f9=_0x33cc54;_0x17148b[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0xcbc'),_0x21d0f5('0x16b9'),'$mdDialog','$q',_0x21d0f5('0xb6b'),_0x21d0f5('0x142d'),_0x21d0f5('0x1a51'),_0x21d0f5('0x170e'),_0x21d0f5('0x12a5'),'Auth',_0x21d0f5('0x17ff'),'setting','crudPermissions'];function _0x17148b(_0x1c3dcb,_0x1b13fb,_0x158c94,_0x48958d,_0x34525b,_0x1a11de,_0x7db2bc,_0x4a297a,_0x4266f2,_0x42d034,_0x5c840e,_0x42e229,_0x5886fb,_0x38a568){const _0x30dd66=_0x21d0f5,_0x3f6aed=this;_0x3f6aed['currentUser']=_0x5c840e['getCurrentUser'](),_0x3f6aed[_0x30dd66('0x120f')]=[],_0x3f6aed['setting']=_0x5886fb,_0x3f6aed['license']=_0x42e229,_0x3f6aed[_0x30dd66('0xb25')]=_0x38a568,_0x3f6aed['hasModulePermissions']={},_0x3f6aed[_0x30dd66('0x2834')]=_0x3f6aed['setting']&&_0x3f6aed[_0x30dd66('0x23e1')][_0x30dd66('0x1d4')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3f6aed[_0x30dd66('0x134b')]=_0x30dd66('0x15fc'),_0x3f6aed[_0x30dd66('0x170e')]=angular['copy'](_0x4266f2),_0x3f6aed[_0x30dd66('0x1a51')]=_0x4a297a,_0x3f6aed[_0x30dd66('0x131')]=![];!_0x3f6aed[_0x30dd66('0x170e')]&&(_0x3f6aed['mailCannedAnswer']={},_0x3f6aed[_0x30dd66('0x134b')]='MAIL.NEW_MAILCANNEDANSWER',_0x3f6aed[_0x30dd66('0x131')]=!![]);_0x1b13fb[_0x30dd66('0x1ab3')]['id']&&(_0x3f6aed['mailCannedAnswer'][_0x30dd66('0x2294')]=_0x1b13fb[_0x30dd66('0x1ab3')]['id']);_0x3f6aed[_0x30dd66('0x3a5')]=_0x2dd208,_0x3f6aed[_0x30dd66('0x2230')]=_0x5a5fdf,_0x3f6aed['deleteMailCannedAnswer']=_0x3e847e,_0x3f6aed[_0x30dd66('0x1bd1')]=_0xd88c2,_0x3f6aed[_0x30dd66('0xc4e')]=_0x14cbec;function _0x2dd208(){const _0x52abb0=_0x30dd66;_0x3f6aed[_0x52abb0('0x120f')]=[],_0x42d034['cannedAnswer'][_0x52abb0('0x259')](_0x3f6aed['mailCannedAnswer'])[_0x52abb0('0x1549')]['then'](function(_0x137d1b){const _0x503781=_0x52abb0;_0x3f6aed[_0x503781('0x1a51')][_0x503781('0x880')](_0x137d1b[_0x503781('0x2866')]()),_0x7db2bc[_0x503781('0x2693')]({'title':_0x503781('0xbc1'),'msg':_0x3f6aed[_0x503781('0x170e')][_0x503781('0x1909')]?_0x3f6aed[_0x503781('0x170e')][_0x503781('0x1909')]+_0x503781('0x7fb'):''}),_0x14cbec(_0x137d1b);})[_0x52abb0('0x151d')](function(_0x288962){const _0x514198=_0x52abb0;if(_0x288962[_0x514198('0x4e8')]&&_0x288962[_0x514198('0x4e8')]['errors']&&_0x288962[_0x514198('0x4e8')][_0x514198('0x120f')]['length']){_0x3f6aed['errors']=_0x288962[_0x514198('0x4e8')]['errors']||[{'message':_0x288962[_0x514198('0xaab')](),'type':_0x514198('0x23b5')}];for(let _0x2b83d1=0x0;_0x2b83d1<_0x288962[_0x514198('0x4e8')]['errors'][_0x514198('0x1e22')];_0x2b83d1+=0x1){_0x7db2bc['error']({'title':_0x288962[_0x514198('0x4e8')][_0x514198('0x120f')][_0x2b83d1][_0x514198('0x19fd')],'msg':_0x288962[_0x514198('0x4e8')][_0x514198('0x120f')][_0x2b83d1][_0x514198('0x1b86')]});}}else _0x7db2bc[_0x514198('0x255')]({'title':_0x288962[_0x514198('0xff9')]?_0x514198('0x574')+_0x288962[_0x514198('0xff9')]+_0x514198('0xb0b')+_0x288962[_0x514198('0x212f')]:_0x514198('0x23b5'),'msg':_0x288962['data']?JSON[_0x514198('0x3e')](_0x288962[_0x514198('0x4e8')][_0x514198('0x1b86')]):_0x288962[_0x514198('0xaab')]()});});}function _0x5a5fdf(){const _0x37ece2=_0x30dd66;_0x3f6aed[_0x37ece2('0x120f')]=[],_0x42d034[_0x37ece2('0x81')][_0x37ece2('0x5ab')]({'id':_0x3f6aed[_0x37ece2('0x170e')]['id']},_0x3f6aed['mailCannedAnswer'])[_0x37ece2('0x1549')]['then'](function(_0x2b34ae){const _0x3653e7=_0x37ece2,_0x2d3f67=_0x36f548()['find'](_0x3f6aed['mailCannedAnswers'],{'id':_0x2b34ae['id']});_0x2d3f67&&_0x36f548()[_0x3653e7('0x47b')](_0x2d3f67,_0x36f548()[_0x3653e7('0x258')](_0x2b34ae['toJSON'](),_0x36f548()[_0x3653e7('0xe22')](_0x2d3f67))),_0x7db2bc[_0x3653e7('0x2693')]({'title':'MailCannedAnswer\x20properly\x20saved!','msg':_0x3f6aed[_0x3653e7('0x170e')][_0x3653e7('0x1909')]?_0x3f6aed[_0x3653e7('0x170e')]['name']+'\x20has\x20been\x20saved!':''}),_0x14cbec(_0x2b34ae);})[_0x37ece2('0x151d')](function(_0xf389bf){const _0x1a08ad=_0x37ece2;if(_0xf389bf[_0x1a08ad('0x4e8')]&&_0xf389bf[_0x1a08ad('0x4e8')][_0x1a08ad('0x120f')]&&_0xf389bf[_0x1a08ad('0x4e8')][_0x1a08ad('0x120f')][_0x1a08ad('0x1e22')]){_0x3f6aed[_0x1a08ad('0x120f')]=_0xf389bf[_0x1a08ad('0x4e8')][_0x1a08ad('0x120f')]||[{'message':_0xf389bf[_0x1a08ad('0xaab')](),'type':'api.cannedAnswer.update'}];for(let _0x257943=0x0;_0x257943<_0xf389bf['data'][_0x1a08ad('0x120f')][_0x1a08ad('0x1e22')];_0x257943++){_0x7db2bc[_0x1a08ad('0x255')]({'title':_0xf389bf[_0x1a08ad('0x4e8')]['errors'][_0x257943][_0x1a08ad('0x19fd')],'msg':_0xf389bf[_0x1a08ad('0x4e8')]['errors'][_0x257943][_0x1a08ad('0x1b86')]});}}else _0x7db2bc['error']({'title':_0xf389bf[_0x1a08ad('0xff9')]?_0x1a08ad('0x574')+_0xf389bf[_0x1a08ad('0xff9')]+_0x1a08ad('0xb0b')+_0xf389bf['statusText']:_0x1a08ad('0x1698'),'msg':_0xf389bf[_0x1a08ad('0x4e8')]?JSON[_0x1a08ad('0x3e')](_0xf389bf['data']['message']):_0xf389bf['toString']()});});}function _0x3e847e(_0x54d4a3){const _0x3e50e2=_0x30dd66;_0x3f6aed[_0x3e50e2('0x120f')]=[];const _0x186773=_0x48958d['confirm']()[_0x3e50e2('0x134b')](_0x3e50e2('0x1fa9'))['content'](_0x3e50e2('0x1b5a'))[_0x3e50e2('0xb2e')]('Delete\x20MailCannedAnswer')['ok'](_0x3e50e2('0x1167'))['cancel']('Cancel')['targetEvent'](_0x54d4a3);_0x48958d[_0x3e50e2('0xb9')](_0x186773)['then'](function(){const _0x2086eb=_0x3e50e2;_0x42d034[_0x2086eb('0x81')]['delete']({'id':_0x3f6aed['mailCannedAnswer']['id']})[_0x2086eb('0x1549')][_0x2086eb('0x11bf')](function(){const _0x17ddda=_0x2086eb;_0x36f548()[_0x17ddda('0x14a5')](_0x3f6aed[_0x17ddda('0x1a51')],{'id':_0x3f6aed['mailCannedAnswer']['id']}),_0x7db2bc[_0x17ddda('0x2693')]({'title':_0x17ddda('0x35'),'msg':(_0x3f6aed[_0x17ddda('0x170e')]['name']||'mailCannedAnswer')+_0x17ddda('0x433')}),_0x14cbec(_0x3f6aed[_0x17ddda('0x170e')]);})[_0x2086eb('0x151d')](function(_0x57a31d){const _0x40ee7d=_0x2086eb;if(_0x57a31d[_0x40ee7d('0x4e8')]&&_0x57a31d[_0x40ee7d('0x4e8')]['errors']&&_0x57a31d[_0x40ee7d('0x4e8')][_0x40ee7d('0x120f')][_0x40ee7d('0x1e22')]){_0x3f6aed['errors']=_0x57a31d[_0x40ee7d('0x4e8')][_0x40ee7d('0x120f')]||[{'message':_0x57a31d['toString'](),'type':_0x40ee7d('0x2279')}];for(let _0x110b00=0x0;_0x110b00<_0x57a31d['data'][_0x40ee7d('0x120f')][_0x40ee7d('0x1e22')];_0x110b00++){_0x7db2bc[_0x40ee7d('0x255')]({'title':_0x57a31d['data'][_0x40ee7d('0x120f')][_0x110b00][_0x40ee7d('0x19fd')],'msg':_0x57a31d['data'][_0x40ee7d('0x120f')][_0x110b00][_0x40ee7d('0x1b86')]});}}else _0x7db2bc['error']({'title':_0x57a31d[_0x40ee7d('0xff9')]?_0x40ee7d('0x574')+_0x57a31d['status']+_0x40ee7d('0xb0b')+_0x57a31d['statusText']:_0x40ee7d('0x2279'),'msg':_0x57a31d[_0x40ee7d('0x4e8')]?JSON[_0x40ee7d('0x3e')](_0x57a31d[_0x40ee7d('0x4e8')][_0x40ee7d('0x1b86')]):_0x57a31d[_0x40ee7d('0x1b86')]||_0x57a31d['toString']()});});},function(){});}function _0xd88c2(_0x3fd518){return _0x3fd518===null?undefined:new Date(_0x3fd518);}function _0x14cbec(_0x501cfb){const _0x4933e9=_0x30dd66;_0x48958d[_0x4933e9('0x237e')](_0x501cfb);}}const _0x3e72cd=_0x17148b;_0xcecc91[_0x21d0f5('0x1e9a')]=['$scope',_0x21d0f5('0x2143'),_0x21d0f5('0xcbc'),_0x21d0f5('0x18fe'),_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),'$timeout',_0x21d0f5('0xb6b'),_0x21d0f5('0x12a5'),_0x21d0f5('0x142d'),_0x21d0f5('0x1150')];function _0xcecc91(_0x45380f,_0x43ef0f,_0x33d575,_0x454616,_0x4a9f24,_0x130a8b,_0x1470fe,_0x25b213,_0x2410c2,_0x5504b8,_0x4290f4){const _0x5cb2f4=_0x21d0f5,_0x24c02a=this;_0x24c02a['currentUser']=_0x4290f4[_0x5cb2f4('0x2428')](),_0x24c02a[_0x5cb2f4('0x1394')]={'count':0x0,'rows':[]},_0x24c02a[_0x5cb2f4('0x21ae')]=[],_0x24c02a[_0x5cb2f4('0xb25')],_0x24c02a['levels']={'first':_0x5cb2f4('0x1558'),'second':'2nd','third':_0x5cb2f4('0x10e6')},_0x24c02a[_0x5cb2f4('0x1f2a')]={'fields':_0x5cb2f4('0x12c1'),'sort':_0x5cb2f4('0x1c74'),'limit':0xa,'page':0x1},_0x24c02a['init']=_0x327108,_0x24c02a[_0x5cb2f4('0x560')]=_0x2121de,_0x24c02a[_0x5cb2f4('0x2693')]=_0x3789d4,_0x24c02a[_0x5cb2f4('0x200')]=_0xdb6cd2,_0x24c02a['createOrEditDisposition']=_0x500d73,_0x24c02a[_0x5cb2f4('0x2776')]=_0x37cc5f,_0x24c02a['exportSelectedDispositions']=_0x55d0ba,_0x24c02a[_0x5cb2f4('0xadf')]=_0x44247e,_0x24c02a[_0x5cb2f4('0x1d8f')]=_0x5c1ec7,_0x24c02a[_0x5cb2f4('0x94f')]=_0x1b9014;function _0x327108(_0x3c542d,_0x24eaf9){const _0x5a3104=_0x5cb2f4;_0x24c02a[_0x5a3104('0x1d47')]=_0x3c542d||{},_0x24c02a[_0x5a3104('0xb25')]=typeof _0x24eaf9!=='undefined'?_0x24eaf9:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x24c02a[_0x5a3104('0x1f2a')][_0x5a3104('0x2294')]=_0x24c02a[_0x5a3104('0x1d47')]['id'],_0x24c02a[_0x5a3104('0x1f2a')]['id']=_0x24c02a['mailAccount']['id'],_0xdb6cd2();}function _0x500d73(_0x412f7a,_0xf99507){const _0xfeec04=_0x5cb2f4;_0x4a9f24[_0xfeec04('0xb9')]({'controller':_0xfeec04('0x21b7'),'controllerAs':'vm','templateUrl':_0xd803cc,'parent':angular[_0xfeec04('0x1e73')](_0x130a8b[_0xfeec04('0x1d2')]),'targetEvent':_0x412f7a,'clickOutsideToClose':!![],'locals':{'disposition':_0xf99507,'dispositions':_0x24c02a[_0xfeec04('0x1394')][_0xfeec04('0x19b2')],'model':{'id':_0x24c02a[_0xfeec04('0x1d47')]['id'],'field':_0xfeec04('0x2294')},'license':null,'setting':null,'crudPermissions':_0x24c02a[_0xfeec04('0xb25')]}})['then'](function(_0x59c8d8){if(_0x59c8d8)_0xdb6cd2();});}function _0x2121de(_0x5833f2,_0xc0bdf7){const _0x181d81=_0x5cb2f4,_0x5d1979=_0x36f548()[_0x181d81('0x1cb3')](_0x24c02a[_0x181d81('0x1394')][_0x181d81('0x19b2')],['ParentId',_0x5833f2['id']]),_0x40fc61=_0x4a9f24[_0x181d81('0x132b')]()[_0x181d81('0x134b')](_0x25b213[_0x181d81('0x10c2')](_0x181d81('0x221d')))[_0x181d81('0x252a')](_0x25b213[_0x181d81('0x10c2')](_0x181d81('0x869')+(_0x5d1979?_0x181d81('0x4bd'):_0x181d81('0x16d7')),{'name':_0x5833f2['name']}))[_0x181d81('0xb2e')](_0x181d81('0x1c19'))[_0x181d81('0x1e25')](_0xc0bdf7)['ok']('OK')[_0x181d81('0x26c9')](_0x25b213[_0x181d81('0x10c2')](_0x181d81('0xa5d')));_0x4a9f24[_0x181d81('0xb9')](_0x40fc61)[_0x181d81('0x11bf')](function(){_0x37cc5f(_0x5833f2);});}function _0x3789d4(_0x5a329f){const _0x1fcfe0=_0x5cb2f4;_0x24c02a[_0x1fcfe0('0x1394')]=_0x5a329f||{'count':0x0,'rows':[]};}function _0xdb6cd2(){const _0x158ba1=_0x5cb2f4;_0x24c02a[_0x158ba1('0x1f2a')]['offset']=(_0x24c02a[_0x158ba1('0x1f2a')][_0x158ba1('0x1c2')]-0x1)*_0x24c02a[_0x158ba1('0x1f2a')]['limit'],_0x24c02a['promise']=_0x2410c2[_0x158ba1('0x1d47')][_0x158ba1('0x200')](_0x24c02a[_0x158ba1('0x1f2a')],_0x3789d4)[_0x158ba1('0x1549')];}function _0x37cc5f(_0x146515){const _0x4173c3=_0x5cb2f4;_0x2410c2['disposition'][_0x4173c3('0x2088')]({'id':_0x146515['id']})[_0x4173c3('0x1549')][_0x4173c3('0x11bf')](function(){const _0x5db793=_0x4173c3;_0xdb6cd2(),_0x5504b8[_0x5db793('0x2693')]({'title':_0x25b213[_0x5db793('0x10c2')]('TOOLS.NOTIFICATIONS.DISPOSITION_DELETED_SUCCESS_TITLE')});})[_0x4173c3('0x151d')](function(_0x1ef4bb){const _0x4259d7=_0x4173c3;if(_0x1ef4bb['data']&&_0x1ef4bb[_0x4259d7('0x4e8')][_0x4259d7('0x120f')]&&_0x1ef4bb['data'][_0x4259d7('0x120f')][_0x4259d7('0x1e22')]){_0x24c02a['errors']=_0x1ef4bb[_0x4259d7('0x4e8')][_0x4259d7('0x120f')]||[{'message':_0x1ef4bb['toString'](),'type':_0x4259d7('0x1551')}];for(let _0x477d47=0x0;_0x477d47<_0x1ef4bb['data'][_0x4259d7('0x120f')][_0x4259d7('0x1e22')];_0x477d47++){_0x5504b8[_0x4259d7('0x255')]({'title':_0x1ef4bb[_0x4259d7('0x4e8')][_0x4259d7('0x120f')][_0x477d47][_0x4259d7('0x19fd')],'msg':_0x1ef4bb['data'][_0x4259d7('0x120f')][_0x477d47][_0x4259d7('0x1b86')]});}}else _0x5504b8[_0x4259d7('0x255')]({'title':_0x1ef4bb['status']?_0x4259d7('0x574')+_0x1ef4bb[_0x4259d7('0xff9')]+_0x4259d7('0xb0b')+_0x1ef4bb[_0x4259d7('0x212f')]:_0x4259d7('0x1551'),'msg':_0x1ef4bb[_0x4259d7('0x4e8')]?JSON['stringify'](_0x1ef4bb[_0x4259d7('0x4e8')][_0x4259d7('0x1b86')]):_0x1ef4bb[_0x4259d7('0x1b86')]||_0x1ef4bb[_0x4259d7('0xaab')]()});});}function _0x55d0ba(){const _0x495f43=_0x5cb2f4,_0x2c7898=angular[_0x495f43('0x6fb')](_0x24c02a[_0x495f43('0x21ae')]);return _0x24c02a[_0x495f43('0x21ae')]=[],_0x2c7898;}function _0x44247e(_0x5a0dcc){const _0x83eda9=_0x5cb2f4,_0x5320f2=_0x4a9f24[_0x83eda9('0x132b')]()[_0x83eda9('0x134b')](_0x25b213[_0x83eda9('0x10c2')]('TOOLS.NOTIFICATIONS.DISPOSITIONS_DELETE_TITLE'))[_0x83eda9('0x252a')](_0x25b213[_0x83eda9('0x10c2')](_0x83eda9('0x20f4'),{'total':_0x24c02a[_0x83eda9('0x21ae')][_0x83eda9('0x1e22')]}))[_0x83eda9('0xb2e')]('Delete\x20dispositions')['targetEvent'](_0x5a0dcc)['ok']('OK')[_0x83eda9('0x26c9')](_0x25b213[_0x83eda9('0x10c2')](_0x83eda9('0xa5d')));_0x4a9f24['show'](_0x5320f2)['then'](function(){const _0x57c406=_0x83eda9;_0x24c02a['selectedDispositions'][_0x57c406('0x1f88')](function(_0x58f996){_0x37cc5f(_0x58f996);}),_0x24c02a['selectedDispositions']=[];});}function _0x5c1ec7(){const _0x2f165f=_0x5cb2f4;_0x24c02a[_0x2f165f('0x21ae')]=[];}function _0x1b9014(){const _0x12dc2e=_0x5cb2f4;_0x24c02a[_0x12dc2e('0x21ae')]=_0x24c02a[_0x12dc2e('0x1394')]['rows'];}let _0x3e1cb6=!![],_0x92b4db=0x1;_0x45380f[_0x5cb2f4('0x2087')](_0x5cb2f4('0x1d12'),function(_0x2fa3f4,_0x1f821f){const _0xb00f42=_0x5cb2f4;_0x3e1cb6?_0x1470fe(function(){_0x3e1cb6=![];}):(!_0x1f821f&&(_0x92b4db=_0x24c02a['query']['page']),_0x2fa3f4!==_0x1f821f&&(_0x24c02a[_0xb00f42('0x1f2a')][_0xb00f42('0x1c2')]=0x1),!_0x2fa3f4&&(_0x24c02a['query'][_0xb00f42('0x1c2')]=_0x92b4db),_0xdb6cd2());});}const _0x51cf74=_0xcecc91,_0x5965dd=_0x351988['p']+_0x21d0f5('0x20b8');_0x2e2afb['$inject']=[_0x21d0f5('0xcbc'),_0x21d0f5('0x16b9'),_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),_0x21d0f5('0xb6b'),_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1'),_0x21d0f5('0x12a5'),_0x21d0f5('0x142d'),_0x21d0f5('0x1150'),_0x21d0f5('0x1d47'),_0x21d0f5('0x1d63')];function _0x2e2afb(_0x50d0c6,_0xd034d,_0x1e3582,_0x332dc5,_0x57e84e,_0x4a0d55,_0x4f42aa,_0x3e76fe,_0x3ffa2e,_0x3a187a,_0x15945d,_0x23bd98){const _0x119873=_0x21d0f5,_0x95a634=this;_0x95a634[_0x119873('0x32a')]=_0x3a187a[_0x119873('0x2428')](),_0x95a634[_0x119873('0x17ff')]=_0x4a0d55,_0x95a634[_0x119873('0x23e1')]=_0x4f42aa,_0x95a634[_0x119873('0x2834')]=_0x95a634[_0x119873('0x23e1')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x95a634['location']=_0xd034d['protocol']()+_0x119873('0x16a1')+_0xd034d[_0x119873('0x14ec')](),_0x95a634[_0x119873('0x1d47')]=_0x15945d||_0x50d0c6['params']['mailAccount']||{},_0x95a634[_0x119873('0x1d63')]=_0x23bd98&&_0x23bd98[_0x119873('0x27d2')]==0x1?_0x23bd98[_0x119873('0x19b2')][0x0]:null,_0x95a634[_0x119873('0xb25')]=_0x3a187a[_0x119873('0x1530')](_0x95a634[_0x119873('0x1d63')]?_0x95a634[_0x119873('0x1d63')][_0x119873('0xb25')]:null),_0x95a634['hasModulePermissions']={},_0x95a634['selectedTab']=_0x50d0c6[_0x119873('0x1ab3')][_0x119873('0x205c')]||0x0,_0x95a634[_0x119873('0x15dc')]=_0x1ab4be,_0x95a634['agentadddialog']=_0x2d4460,_0x95a634[_0x119873('0xb30')]=_0x3ffa2e[_0x119873('0x870')],_0x95a634[_0x119873('0xfc3')]=_0x39c8c2,_0x95a634['saveMailAccount']=_0x1e2397,_0x3a187a[_0x119873('0x4ee')](_0x119873('0xf45'))?_0x3e76fe[_0x119873('0xbef')][_0x119873('0xbaa')]({'fields':_0x119873('0x721'),'sort':_0x119873('0x1909')})[_0x119873('0x1549')][_0x119873('0x11bf')](function(_0x28f646){const _0x2e98a0=_0x119873;_0x95a634['lists']=_0x28f646[_0x2e98a0('0x19b2')]||[];})[_0x119873('0x151d')](function(_0x4c59a2){const _0x1ee7bf=_0x119873;_0x3ffa2e['error']({'title':_0x4c59a2[_0x1ee7bf('0xff9')]?_0x1ee7bf('0x574')+_0x4c59a2[_0x1ee7bf('0xff9')]+'\x20-\x20'+_0x4c59a2['statusText']:_0x1ee7bf('0x27ed'),'msg':_0x4c59a2[_0x1ee7bf('0x4e8')]?JSON['stringify'](_0x4c59a2[_0x1ee7bf('0x4e8')]):_0x4c59a2[_0x1ee7bf('0xaab')]()});}):_0x3e76fe['cmList']['get']({'fields':_0x119873('0x721'),'sort':_0x119873('0x1909')})['$promise'][_0x119873('0x11bf')](function(_0x368248){const _0x38a61f=_0x119873;_0x95a634[_0x38a61f('0x2410')]=_0x368248['rows']||[];})[_0x119873('0x11bf')](function(){const _0x12bb16=_0x119873;return _0x3e76fe[_0x12bb16('0x1d63')][_0x12bb16('0xbaa')]({'userProfileId':_0x95a634[_0x12bb16('0x32a')][_0x12bb16('0x781')],'sectionId':0x12d})[_0x12bb16('0x1549')];})[_0x119873('0x11bf')](function(_0x110185){const _0x136ca8=_0x119873,_0x1b376a=_0x110185&&_0x110185['rows']?_0x110185['rows'][0x0]:null;if(!_0x1b376a){const _0x2ce11e=[];let _0x1c699e=null;_0x95a634[_0x136ca8('0x1d47')]&&(_0x1c699e=_0x36f548()[_0x136ca8('0x1ad4')](_0x95a634[_0x136ca8('0x2410')],{'id':Number(_0x95a634[_0x136ca8('0x1d47')][_0x136ca8('0x1e91')])}));for(let _0x5c9e0e=0x0;_0x5c9e0e<_0x95a634['lists']['length'];_0x5c9e0e++){_0x1c699e&&_0x95a634[_0x136ca8('0x2410')][_0x5c9e0e]['id']===_0x1c699e['id']&&(_0x95a634[_0x136ca8('0x2410')][_0x5c9e0e][_0x136ca8('0x254a')]=![],_0x2ce11e[_0x136ca8('0x105d')](_0x95a634[_0x136ca8('0x2410')][_0x5c9e0e]));}_0x95a634[_0x136ca8('0x2410')]=_0x2ce11e;}else{if(!_0x1b376a[_0x136ca8('0xf11')])return _0x3e76fe[_0x136ca8('0x26d1')][_0x136ca8('0xbaa')]({'sectionId':_0x1b376a['id']})['$promise'][_0x136ca8('0x11bf')](function(_0x184c79){const _0x530924=_0x136ca8,_0xe1ab2f=_0x36f548()[_0x530924('0x2171')](_0x184c79[_0x530924('0x19b2')],function(_0xce4fac){const _0x5d8c73=_0x530924;return _0x36f548()[_0x5d8c73('0x1ad4')](_0x95a634[_0x5d8c73('0x2410')],{'id':_0xce4fac['resourceId']});});let _0x6fce0f=null;_0x95a634[_0x530924('0x1d47')]&&(_0x6fce0f=_0x36f548()[_0x530924('0x1ad4')](_0x95a634[_0x530924('0x2410')],{'id':Number(_0x95a634['mailAccount'][_0x530924('0x1e91')])}));if(_0x6fce0f&&!_0x36f548()[_0x530924('0x1cb3')](_0xe1ab2f,['id',_0x6fce0f['id']])){const _0x401792=_0x36f548()[_0x530924('0x1ad4')](_0x95a634[_0x530924('0x2410')],{'id':_0x6fce0f['id']});_0x401792[_0x530924('0x254a')]=![],_0xe1ab2f[_0x530924('0x105d')](_0x401792);}_0x95a634[_0x530924('0x2410')]=_0xe1ab2f;});}})['catch'](function(_0x2bcb0c){const _0x260576=_0x119873;_0x3ffa2e[_0x260576('0x255')]({'title':_0x2bcb0c[_0x260576('0xff9')]?_0x260576('0x574')+_0x2bcb0c['status']+_0x260576('0xb0b')+_0x2bcb0c[_0x260576('0x212f')]:'SYSTEM:GETlists','msg':_0x2bcb0c['data']?JSON[_0x260576('0x3e')](_0x2bcb0c[_0x260576('0x4e8')]):_0x2bcb0c[_0x260576('0xaab')]()});}),_0x3a187a[_0x119873('0x4ee')]('admin')?_0x3e76fe[_0x119873('0x92a')][_0x119873('0xbaa')]({'fields':'name,id','sort':_0x119873('0x1909'),'nolimit':_0x119873('0x204c')})['$promise']['then'](function(_0x1e4874){const _0x373257=_0x119873;_0x95a634[_0x373257('0x12f2')]=_0x1e4874[_0x373257('0x19b2')]||[];})['catch'](function(_0x30246f){const _0x6d3617=_0x119873;_0x3ffa2e[_0x6d3617('0x255')]({'title':_0x30246f[_0x6d3617('0xff9')]?_0x6d3617('0x574')+_0x30246f[_0x6d3617('0xff9')]+'\x20-\x20'+_0x30246f[_0x6d3617('0x212f')]:_0x6d3617('0x1306'),'msg':_0x30246f[_0x6d3617('0x4e8')]?JSON['stringify'](_0x30246f[_0x6d3617('0x4e8')]):_0x30246f['toString']()});}):_0x3e76fe['pause'][_0x119873('0xbaa')]({'fields':_0x119873('0xaae'),'sort':'name','nolimit':_0x119873('0x204c')})['$promise'][_0x119873('0x11bf')](function(_0x502d7b){const _0xa6e5f1=_0x119873;_0x95a634[_0xa6e5f1('0x12f2')]=_0x502d7b['rows']||[];})['then'](function(){const _0x4445da=_0x119873;return _0x3e76fe['userProfileSection'][_0x4445da('0xbaa')]({'userProfileId':_0x95a634['currentUser']['userProfileId'],'sectionId':0x3ed})[_0x4445da('0x1549')];})[_0x119873('0x11bf')](function(_0x2b0fed){const _0x29fb7e=_0x119873,_0x185eaa=_0x2b0fed&&_0x2b0fed[_0x29fb7e('0x19b2')]?_0x2b0fed['rows'][0x0]:null;if(!_0x185eaa)_0x95a634[_0x29fb7e('0x12f2')]=[];else{if(!_0x185eaa[_0x29fb7e('0xf11')])return _0x3e76fe['userProfileResource'][_0x29fb7e('0xbaa')]({'sectionId':_0x185eaa['id']})[_0x29fb7e('0x1549')][_0x29fb7e('0x11bf')](function(_0x5334de){const _0x5d5cfa=_0x29fb7e,_0x3842d5=_0x36f548()[_0x5d5cfa('0x2171')](_0x5334de['rows'],function(_0x3d9372){const _0x2ceeae=_0x5d5cfa;return _0x36f548()[_0x2ceeae('0x1ad4')](_0x95a634['pauses'],{'id':_0x3d9372[_0x2ceeae('0x15a5')]});});_0x95a634[_0x5d5cfa('0x12f2')][_0x5d5cfa('0x1f88')](function(_0x2f50c7){const _0x24aad2=_0x5d5cfa;!_0x36f548()[_0x24aad2('0x1cb3')](_0x3842d5,['id',_0x2f50c7['id']])&&(_0x2f50c7[_0x24aad2('0x254a')]=![]),_0x3842d5[_0x24aad2('0x105d')](_0x2f50c7);}),_0x95a634[_0x5d5cfa('0x12f2')]=_0x3842d5;});}})[_0x119873('0x151d')](function(_0x139ab6){const _0x3f2660=_0x119873;_0x3ffa2e['error']({'title':_0x139ab6[_0x3f2660('0xff9')]?'API:'+_0x139ab6[_0x3f2660('0xff9')]+_0x3f2660('0xb0b')+_0x139ab6[_0x3f2660('0x212f')]:_0x3f2660('0x1c82'),'msg':_0x139ab6[_0x3f2660('0x4e8')]?JSON['stringify'](_0x139ab6[_0x3f2660('0x4e8')]):_0x139ab6[_0x3f2660('0xaab')]()});});function _0x1ab4be(){const _0x22d3c5=_0x119873;if(_0x3a187a['hasRole']('admin'))_0x50d0c6['go'](_0x22d3c5('0x9c3'),{});else return _0x3e76fe[_0x22d3c5('0x1d63')][_0x22d3c5('0xbaa')]({'userProfileId':_0x3a187a['getCurrentUser']()['userProfileId'],'sectionId':0x262})[_0x22d3c5('0x1549')][_0x22d3c5('0x11bf')](function(_0x367b42){const _0x4a0275=_0x22d3c5,_0x59307e=_0x367b42&&_0x367b42['rows']?_0x367b42[_0x4a0275('0x19b2')][0x0]:null;_0x59307e&&_0x59307e[_0x4a0275('0x1f0a')]?_0x50d0c6['go'](_0x4a0275('0x9c3'),{}):_0x3ffa2e[_0x4a0275('0x870')]({'title':_0x57e84e['instant']('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_TITLE'),'msg':_0x57e84e[_0x4a0275('0x10c2')](_0x4a0275('0x10d1'))});})[_0x22d3c5('0x151d')](function(_0x21de19){const _0x4c0e87=_0x22d3c5;_0x3ffa2e[_0x4c0e87('0x255')]({'title':_0x21de19[_0x4c0e87('0xff9')]?'API:'+_0x21de19[_0x4c0e87('0xff9')]+'\x20-\x20'+_0x21de19['statusText']:_0x4c0e87('0x1011'),'msg':_0x21de19[_0x4c0e87('0xff9')]?JSON[_0x4c0e87('0x3e')](_0x21de19['data']):_0x21de19[_0x4c0e87('0xaab')]()});});}function _0x2d4460(_0x370335,_0x553238){const _0x23020f=_0x119873;_0x1e3582[_0x23020f('0xb9')]({'controller':'MailAccountagentaddController','controllerAs':'vm','templateUrl':_0x5965dd,'parent':angular[_0x23020f('0x1e73')](_0x332dc5[_0x23020f('0x1d2')]),'targetEvent':_0x553238,'clickOutsideToClose':!![],'locals':{'mailAccount':_0x370335,'mailAccounts':_0x95a634['mailAccounts']?_0x95a634[_0x23020f('0xf1a')][_0x23020f('0x19b2')]:[],'crudPermissions':_0x95a634['crudPermissions'],'realtime':![]}});}function _0x39c8c2(){const _0xc050cb=_0x119873;_0x50d0c6['go'](_0xc050cb('0x15ec'),{},{'reload':_0xc050cb('0x15ec')});}function _0x1e2397(){const _0x20c728=_0x119873;_0x3e76fe[_0x20c728('0x1d47')][_0x20c728('0x5ab')]({'id':_0x95a634[_0x20c728('0x1d47')]['id']},_0x95a634[_0x20c728('0x1d47')])[_0x20c728('0x1549')][_0x20c728('0x11bf')](function(){const _0x3cb0f4=_0x20c728;_0x3ffa2e['success']({'title':_0x3cb0f4('0x78'),'msg':_0x95a634[_0x3cb0f4('0x1d47')][_0x3cb0f4('0x1909')]?_0x95a634[_0x3cb0f4('0x1d47')][_0x3cb0f4('0x1909')]+_0x3cb0f4('0xd7'):''});})[_0x20c728('0x151d')](function(_0x1b7666){const _0x53faaa=_0x20c728;_0x3ffa2e[_0x53faaa('0x255')]({'title':_0x1b7666[_0x53faaa('0xff9')]?_0x53faaa('0x574')+_0x1b7666['status']+_0x53faaa('0xb0b')+_0x1b7666['statusText']:_0x53faaa('0x186c'),'msg':_0x1b7666[_0x53faaa('0x4e8')]?JSON['stringify'](_0x1b7666[_0x53faaa('0x4e8')]):_0x1b7666[_0x53faaa('0xaab')]()});});}}const _0x14cdd0=_0x2e2afb,_0x177f50=_0x351988['p']+_0x21d0f5('0x669');_0x4ec411[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),'$window',_0x21d0f5('0xcbc'),'$mdSidenav',_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),_0x21d0f5('0x17f5'),'$translate','mailAccounts',_0x21d0f5('0x25bc'),_0x21d0f5('0x1d63'),_0x21d0f5('0x12a5'),_0x21d0f5('0xda9'),_0x21d0f5('0x142d'),_0x21d0f5('0x1150'),_0x21d0f5('0x17ff'),'setting'];function _0x4ec411(_0x2217c9,_0xc8ed1f,_0x530ffe,_0x2def67,_0x328d0d,_0x5812b0,_0x4cf92c,_0x479525,_0x1606db,_0x4cd2a0,_0x2e4d90,_0x31561e,_0x18b88f,_0x47161a,_0x905d8f,_0x585a3a,_0x32b4f5){const _0x240f77=_0x21d0f5,_0x58cd67=this;_0x58cd67[_0x240f77('0x17ff')]=_0x585a3a,_0x58cd67[_0x240f77('0x23e1')]=_0x32b4f5,_0x58cd67[_0x240f77('0x32a')]=_0x905d8f['getCurrentUser'](),_0x58cd67[_0x240f77('0xf1a')]=_0x1606db||{'count':0x0,'rows':[]},_0x58cd67[_0x240f77('0x25bc')]=_0x4cd2a0,_0x58cd67[_0x240f77('0x1d63')]=_0x2e4d90&&_0x2e4d90[_0x240f77('0x27d2')]==0x1?_0x2e4d90[_0x240f77('0x19b2')][0x0]:null,_0x58cd67[_0x240f77('0xb25')]=_0x905d8f[_0x240f77('0x1530')](_0x58cd67['userProfileSection']?_0x58cd67['userProfileSection'][_0x240f77('0xb25')]:null),_0x58cd67[_0x240f77('0x13e8')]=_0x240f77('0xf1a'),_0x58cd67[_0x240f77('0x724')]='',_0x58cd67['listOrderAsc']=null,_0x58cd67[_0x240f77('0x260')]=[],_0x58cd67['query']={'fields':_0x240f77('0x2f4'),'sort':'-updatedAt','limit':0xa,'page':0x1},_0x58cd67[_0x240f77('0xa3e')]=_0x36f548()[_0x240f77('0x2130')]([{'option':_0x240f77('0x13f4'),'value':'null'},{'option':_0x240f77('0xc7b'),'value':'\x27gmail\x27'},{'option':_0x240f77('0x1241'),'value':_0x240f77('0x1256')},{'option':_0x240f77('0x6b2'),'value':'\x27yahoo\x27'},{'option':_0x240f77('0x7e6'),'value':_0x240f77('0x176d')}],function(_0x2fc755){return _0x36f548()['replace'](_0x2fc755['value'],new RegExp('\x27','g'),'');}),_0x58cd67['arrayImap.service']=_0x36f548()[_0x240f77('0x2130')]([{'option':_0x240f77('0x13f4'),'value':_0x240f77('0xb5f')},{'option':_0x240f77('0xc7b'),'value':'\x27gmail\x27'},{'option':'Hotmail','value':_0x240f77('0x1256')},{'option':_0x240f77('0x6b2'),'value':_0x240f77('0x229d')},{'option':_0x240f77('0x7e6'),'value':_0x240f77('0x176d')}],function(_0x5364bb){const _0x1b24dd=_0x240f77;return _0x36f548()[_0x1b24dd('0x814')](_0x5364bb[_0x1b24dd('0x10cc')],new RegExp('\x27','g'),'');}),_0x58cd67[_0x240f77('0xed0')]=_0x36f548()['keyBy']([{'option':_0x240f77('0x13f4'),'value':'null'},{'option':_0x240f77('0xc7b'),'value':_0x240f77('0x11fe')},{'option':_0x240f77('0x1241'),'value':_0x240f77('0x1256')},{'option':'Yahoo','value':_0x240f77('0x229d')},{'option':_0x240f77('0x7e6'),'value':_0x240f77('0x176d')}],function(_0x58ef14){const _0x3a93c1=_0x240f77;return _0x36f548()[_0x3a93c1('0x814')](_0x58ef14['value'],new RegExp('\x27','g'),'');}),_0x58cd67[_0x240f77('0x757')]=_0x542cb4,_0x58cd67['verifysmtpverifysmtp']=_0x18e13b,_0x58cd67[_0x240f77('0x1ab2')]=_0xf3baaf,_0x58cd67[_0x240f77('0x19a9')]=_0x1570b2,_0x58cd67[_0x240f77('0x2363')]=_0x1cfbfa,_0x58cd67['deleteconfirm']=_0x2f358e,_0x58cd67[_0x240f77('0x2693')]=_0x54bce5,_0x58cd67[_0x240f77('0x19ec')]=_0x2eb7ab,_0x58cd67[_0x240f77('0xff8')]=_0x41fc25,_0x58cd67[_0x240f77('0x26bc')]=_0x1d41c6,_0x58cd67[_0x240f77('0x1c28')]=_0xd546ca,_0x58cd67[_0x240f77('0x1f5d')]=_0x108bd6,_0x58cd67[_0x240f77('0x456')]=_0x1fa5b6,_0x58cd67['selectAllMailAccounts']=_0x4e3040,_0x905d8f[_0x240f77('0x4ee')]('admin')?_0x31561e[_0x240f77('0xbef')][_0x240f77('0xbaa')]({'fields':'id,name','sort':_0x240f77('0x1909')})[_0x240f77('0x1549')]['then'](function(_0x18d4d1){const _0x2eeaf6=_0x240f77;_0x58cd67['lists']=_0x18d4d1[_0x2eeaf6('0x19b2')]||[];})[_0x240f77('0x151d')](function(_0x589dc2){const _0x5eb787=_0x240f77;_0x47161a['error']({'title':_0x589dc2[_0x5eb787('0xff9')]?_0x5eb787('0x574')+_0x589dc2[_0x5eb787('0xff9')]+_0x5eb787('0xb0b')+_0x589dc2[_0x5eb787('0x212f')]:_0x5eb787('0x27ed'),'msg':_0x589dc2[_0x5eb787('0x4e8')]?JSON['stringify'](_0x589dc2[_0x5eb787('0x4e8')]):_0x589dc2[_0x5eb787('0xaab')]()});}):_0x31561e[_0x240f77('0xbef')]['get']({'fields':_0x240f77('0x721'),'sort':_0x240f77('0x1909')})[_0x240f77('0x1549')][_0x240f77('0x11bf')](function(_0x5b47c6){const _0x34a07c=_0x240f77;_0x58cd67[_0x34a07c('0x2410')]=_0x5b47c6[_0x34a07c('0x19b2')]||[];})[_0x240f77('0x11bf')](function(){const _0x59901c=_0x240f77;return _0x31561e[_0x59901c('0x1d63')][_0x59901c('0xbaa')]({'userProfileId':_0x58cd67[_0x59901c('0x32a')][_0x59901c('0x781')],'sectionId':0x12d})[_0x59901c('0x1549')];})[_0x240f77('0x11bf')](function(_0x331903){const _0x22cdb4=_0x240f77,_0x47f7b0=_0x331903&&_0x331903[_0x22cdb4('0x19b2')]?_0x331903[_0x22cdb4('0x19b2')][0x0]:null;if(!_0x47f7b0){const _0x288a90=[];let _0x5cb19f=null;_0x58cd67[_0x22cdb4('0x1d47')]&&(_0x5cb19f=_0x36f548()[_0x22cdb4('0x1ad4')](_0x58cd67['lists'],{'id':Number(_0x58cd67[_0x22cdb4('0x1d47')][_0x22cdb4('0x1e91')])}));for(let _0xce5a17=0x0;_0xce5a17<_0x58cd67[_0x22cdb4('0x2410')]['length'];_0xce5a17++){_0x5cb19f&&_0x58cd67[_0x22cdb4('0x2410')][_0xce5a17]['id']===_0x5cb19f['id']&&(_0x58cd67['lists'][_0xce5a17][_0x22cdb4('0x254a')]=![],_0x288a90[_0x22cdb4('0x105d')](_0x58cd67[_0x22cdb4('0x2410')][_0xce5a17]));}_0x58cd67[_0x22cdb4('0x2410')]=_0x288a90;}else{if(!_0x47f7b0[_0x22cdb4('0xf11')])return _0x31561e[_0x22cdb4('0x26d1')][_0x22cdb4('0xbaa')]({'sectionId':_0x47f7b0['id']})['$promise']['then'](function(_0x2b7dbd){const _0x10a5c9=_0x22cdb4,_0x44227f=_0x36f548()[_0x10a5c9('0x2171')](_0x2b7dbd[_0x10a5c9('0x19b2')],function(_0x2b8f81){const _0x2146da=_0x10a5c9;return _0x36f548()[_0x2146da('0x1ad4')](_0x58cd67[_0x2146da('0x2410')],{'id':_0x2b8f81[_0x2146da('0x15a5')]});});let _0x3c311b=null;_0x58cd67['mailAccount']&&(_0x3c311b=_0x36f548()['find'](_0x58cd67[_0x10a5c9('0x2410')],{'id':Number(_0x58cd67[_0x10a5c9('0x1d47')][_0x10a5c9('0x1e91')])}));if(_0x3c311b&&!_0x36f548()[_0x10a5c9('0x1cb3')](_0x44227f,['id',_0x3c311b['id']])){const _0x52e6de=_0x36f548()[_0x10a5c9('0x1ad4')](_0x58cd67[_0x10a5c9('0x2410')],{'id':_0x3c311b['id']});_0x52e6de[_0x10a5c9('0x254a')]=![],_0x44227f[_0x10a5c9('0x105d')](_0x52e6de);}_0x58cd67[_0x10a5c9('0x2410')]=_0x44227f;});}})['catch'](function(_0x4f4287){const _0x9eaaab=_0x240f77;_0x47161a[_0x9eaaab('0x255')]({'title':_0x4f4287['status']?_0x9eaaab('0x574')+_0x4f4287['status']+_0x9eaaab('0xb0b')+_0x4f4287[_0x9eaaab('0x212f')]:_0x9eaaab('0xb71'),'msg':_0x4f4287[_0x9eaaab('0x4e8')]?JSON[_0x9eaaab('0x3e')](_0x4f4287[_0x9eaaab('0x4e8')]):_0x4f4287[_0x9eaaab('0xaab')]()});});function _0x542cb4(_0x162abb){const _0x1c1095=_0x240f77;_0x530ffe['go'](_0x1c1095('0x1c41'),{'id':_0x162abb['id'],'mailAccount':_0x162abb,'crudPermissions':_0x58cd67[_0x1c1095('0xb25')]});}function _0x18e13b(_0x6984e5){const _0x3c6122=_0x240f77;if(_0x6984e5&&_0x6984e5['id'])return _0x31561e[_0x3c6122('0x1d47')][_0x3c6122('0x925')]({'id':_0x6984e5['id']})[_0x3c6122('0x1549')][_0x3c6122('0x11bf')](function(){const _0x3bd667=_0x3c6122;_0x47161a[_0x3bd667('0x2693')]({'title':_0x3bd667('0x620'),'msg':_0x3bd667('0x1b13')});})['catch'](function(_0x208834){const _0x1a0731=_0x3c6122;_0x47161a[_0x1a0731('0x255')]({'title':_0x1a0731('0x620'),'msg':_0x208834[_0x1a0731('0x4e8')]?JSON[_0x1a0731('0x3e')](_0x208834[_0x1a0731('0x4e8')]):_0x208834['toString']()});});else _0x47161a['error']({'title':'Smtp\x20properly\x20verified','msg':'Smpt\x20id\x20unknown'});}function _0xf3baaf(_0x4412e7){_0x530ffe['go']('app.mail.mailAccounts.edit',{'id':_0x4412e7['id'],'tab':0x7});}function _0x1570b2(){const _0x235745=_0x240f77;if(_0x905d8f['hasRole'](_0x235745('0xf45')))_0x530ffe['go'](_0x235745('0x9c3'),{});else return _0x31561e['userProfileSection']['get']({'userProfileId':_0x905d8f[_0x235745('0x2428')]()[_0x235745('0x781')],'sectionId':0x262})[_0x235745('0x1549')][_0x235745('0x11bf')](function(_0x4ecefc){const _0x41878c=_0x235745,_0x246726=_0x4ecefc&&_0x4ecefc[_0x41878c('0x19b2')]?_0x4ecefc['rows'][0x0]:null;_0x246726&&_0x246726['enabled']?_0x530ffe['go']('app.mail.realtime.accounts',{}):_0x47161a['info']({'title':_0x479525[_0x41878c('0x10c2')](_0x41878c('0xbff')),'msg':_0x479525[_0x41878c('0x10c2')](_0x41878c('0x10d1'))});})[_0x235745('0x151d')](function(_0x230169){const _0x323804=_0x235745;_0x47161a[_0x323804('0x255')]({'title':_0x230169[_0x323804('0xff9')]?_0x323804('0x574')+_0x230169[_0x323804('0xff9')]+_0x323804('0xb0b')+_0x230169[_0x323804('0x212f')]:_0x323804('0x1011'),'msg':_0x230169[_0x323804('0xff9')]?JSON[_0x323804('0x3e')](_0x230169[_0x323804('0x4e8')]):_0x230169[_0x323804('0xaab')]()});});}function _0x1cfbfa(_0x2052f4,_0x22cf55){const _0xa15b69=_0x240f77;_0x328d0d['show']({'controller':'MailAccountagentaddController','controllerAs':'vm','templateUrl':_0x5965dd,'parent':angular['element'](_0x5812b0[_0xa15b69('0x1d2')]),'targetEvent':_0x22cf55,'clickOutsideToClose':!![],'locals':{'mailAccount':_0x2052f4,'mailAccounts':_0x58cd67[_0xa15b69('0xf1a')]?_0x58cd67[_0xa15b69('0xf1a')][_0xa15b69('0x19b2')]:[],'crudPermissions':_0x58cd67[_0xa15b69('0xb25')],'realtime':![]}});}function _0x2f358e(_0x4223e3,_0x1ea65c){const _0xca10e4=_0x240f77,_0x4cee9c=_0x328d0d['confirm']()[_0xca10e4('0x134b')](_0xca10e4('0x1796')+_0x36f548()[_0xca10e4('0x13cf')](_0xca10e4('0x1d47'))+'?')[_0xca10e4('0x1d03')](_0xca10e4('0x2061')+(_0x4223e3[_0xca10e4('0x1909')]||_0xca10e4('0x1d47'))+_0xca10e4('0x1c78')+_0xca10e4('0x1a'))['ariaLabel'](_0xca10e4('0x1590'))[_0xca10e4('0x1e25')](_0x1ea65c)['ok']('OK')['cancel'](_0xca10e4('0x772'));_0x328d0d[_0xca10e4('0xb9')](_0x4cee9c)[_0xca10e4('0x11bf')](function(){_0x1d41c6(_0x4223e3);},function(){console['log']('CANCEL');});}let _0x138eb3=!![],_0x35e65c=0x1;_0x2217c9[_0x240f77('0x2087')]('vm.query.filter',function(_0x1d6efd,_0xfbb856){const _0x58f269=_0x240f77;_0x138eb3?_0x4cf92c(function(){_0x138eb3=![];}):(!_0xfbb856&&(_0x35e65c=_0x58cd67[_0x58f269('0x1f2a')][_0x58f269('0x1c2')]),_0x1d6efd!==_0xfbb856&&(_0x58cd67[_0x58f269('0x1f2a')][_0x58f269('0x1c2')]=0x1),!_0x1d6efd&&(_0x58cd67['query'][_0x58f269('0x1c2')]=_0x35e65c),_0x58cd67[_0x58f269('0x19ec')]());});function _0x54bce5(_0x54073a){const _0x35fd1e=_0x240f77;_0x58cd67[_0x35fd1e('0xf1a')]=_0x54073a||{'count':0x0,'rows':[]};}function _0x2eb7ab(){const _0x46d861=_0x240f77;_0x58cd67[_0x46d861('0x1f2a')][_0x46d861('0x1393')]=(_0x58cd67[_0x46d861('0x1f2a')][_0x46d861('0x1c2')]-0x1)*_0x58cd67[_0x46d861('0x1f2a')][_0x46d861('0xd5c')],_0x905d8f[_0x46d861('0x4ee')](_0x46d861('0xf45'))?_0x58cd67[_0x46d861('0x13f')]=_0x31561e[_0x46d861('0x1d47')][_0x46d861('0xbaa')](_0x58cd67[_0x46d861('0x1f2a')],_0x54bce5)[_0x46d861('0x1549')]:(_0x58cd67[_0x46d861('0x1f2a')]['id']=_0x58cd67[_0x46d861('0x25bc')]['id'],_0x58cd67[_0x46d861('0x1f2a')][_0x46d861('0xe6')]=_0x46d861('0x48d'),_0x58cd67[_0x46d861('0x13f')]=_0x31561e['userProfile'][_0x46d861('0x228e')](_0x58cd67['query'],_0x54bce5)['$promise']);}function _0x41fc25(_0x3ce4d9,_0x232252){const _0x4c8bfa=_0x240f77;_0x328d0d[_0x4c8bfa('0xb9')]({'controller':'CreateOrEditMailAccountDialogController','controllerAs':'vm','templateUrl':_0x177f50,'parent':angular['element'](_0x5812b0[_0x4c8bfa('0x1d2')]),'targetEvent':_0x3ce4d9,'clickOutsideToClose':!![],'locals':{'mailAccount':_0x232252,'mailAccounts':_0x58cd67[_0x4c8bfa('0xf1a')][_0x4c8bfa('0x19b2')],'license':_0x58cd67[_0x4c8bfa('0x17ff')],'setting':_0x58cd67[_0x4c8bfa('0x23e1')],'crudPermissions':_0x58cd67['crudPermissions']}});}function _0x1d41c6(_0x35208f){const _0xec121=_0x240f77;if(_0x35208f[_0xec121('0x13ad')])return _0x47161a['error']({'title':'Mail\x20Account\x20not\x20deleted!','msg':_0xec121('0x1a61')});_0x31561e[_0xec121('0x1d47')][_0xec121('0x2088')]({'id':_0x35208f['id']})[_0xec121('0x1549')][_0xec121('0x11bf')](function(){const _0x449785=_0xec121;_0x36f548()[_0x449785('0x14a5')](_0x58cd67[_0x449785('0xf1a')][_0x449785('0x19b2')],{'id':_0x35208f['id']}),_0x58cd67['mailAccounts']['count']-=0x1,!_0x58cd67[_0x449785('0xf1a')]['rows'][_0x449785('0x1e22')]&&_0x58cd67['getMailAccounts'](),_0x47161a['success']({'title':_0x36f548()['startCase'](_0x449785('0x1787'))+_0x449785('0x2113'),'msg':_0x35208f[_0x449785('0x1909')]?_0x35208f[_0x449785('0x1909')]+_0x449785('0x433'):''});})[_0xec121('0x151d')](function(_0x1da60f){const _0x45553b=_0xec121;if(_0x1da60f[_0x45553b('0x4e8')]&&_0x1da60f['data']['errors']&&_0x1da60f['data']['errors'][_0x45553b('0x1e22')]){_0x58cd67['errors']=_0x1da60f['data'][_0x45553b('0x120f')]||[{'message':_0x1da60f[_0x45553b('0xaab')](),'type':_0x45553b('0x16fd')}];for(let _0x4e9710=0x0;_0x4e9710<_0x1da60f[_0x45553b('0x4e8')][_0x45553b('0x120f')][_0x45553b('0x1e22')];_0x4e9710++){_0x47161a[_0x45553b('0x255')]({'title':_0x1da60f[_0x45553b('0x4e8')]['errors'][_0x4e9710][_0x45553b('0x19fd')],'msg':_0x1da60f[_0x45553b('0x4e8')][_0x45553b('0x120f')][_0x4e9710][_0x45553b('0x1b86')]});}}else _0x47161a[_0x45553b('0x255')]({'title':_0x1da60f[_0x45553b('0xff9')]?_0x45553b('0x574')+_0x1da60f[_0x45553b('0xff9')]+_0x45553b('0xb0b')+_0x1da60f[_0x45553b('0x212f')]:_0x45553b('0x16fd'),'msg':_0x1da60f['data']?JSON[_0x45553b('0x3e')](_0x1da60f['data'][_0x45553b('0x1b86')]):_0x1da60f[_0x45553b('0x1b86')]||_0x1da60f[_0x45553b('0xaab')]()});});}function _0xd546ca(){const _0x1e99e7=_0x240f77,_0x116e53=angular[_0x1e99e7('0x6fb')](_0x58cd67[_0x1e99e7('0x260')]);return _0x58cd67['selectedMailAccounts']=[],_0x116e53;}function _0x108bd6(_0x82564b){const _0x49b496=_0x240f77,_0xa0796=_0x328d0d[_0x49b496('0x132b')]()[_0x49b496('0x134b')](_0x49b496('0x25d3'))['htmlContent'](''+_0x58cd67[_0x49b496('0x260')][_0x49b496('0x1e22')]+_0x49b496('0xac6')+_0x49b496('0x1a'))[_0x49b496('0xb2e')](_0x49b496('0x1027'))[_0x49b496('0x1e25')](_0x82564b)['ok']('OK')[_0x49b496('0x26c9')](_0x49b496('0x772'));_0x328d0d['show'](_0xa0796)[_0x49b496('0x11bf')](function(){const _0x1e97f0=_0x49b496;_0x58cd67['selectedMailAccounts']['forEach'](function(_0x3ced23){_0x1d41c6(_0x3ced23);}),_0x58cd67[_0x1e97f0('0x260')]=[];});}function _0x1fa5b6(){const _0x12c399=_0x240f77;_0x58cd67[_0x12c399('0x260')]=[];}function _0x4e3040(){const _0x3f4528=_0x240f77;_0x58cd67[_0x3f4528('0x260')]=_0x58cd67[_0x3f4528('0xf1a')][_0x3f4528('0x19b2')];}}const _0x32d331=_0x4ec411;_0x1545a9[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0xcbc'),'$location','$mdDialog','$q',_0x21d0f5('0xb6b'),_0x21d0f5('0x142d'),_0x21d0f5('0xce'),'mailQueue',_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1'),_0x21d0f5('0xb25')];function _0x1545a9(_0x5dfdc7,_0x3b5b17,_0x3f7109,_0x514584,_0x3d51a4,_0x5087d1,_0x2ac12e,_0x55f6b9,_0x5ed59c,_0x31d37b,_0x332301,_0x20fe03,_0x5915a1,_0x4361df){const _0x462d85=_0x21d0f5,_0xf59c8b=this;_0xf59c8b[_0x462d85('0x32a')]=_0x332301['getCurrentUser'](),_0xf59c8b['errors']=[],_0xf59c8b[_0x462d85('0x23e1')]=_0x5915a1,_0xf59c8b[_0x462d85('0x17ff')]=_0x20fe03,_0xf59c8b[_0x462d85('0xb25')]=_0x4361df,_0xf59c8b['hasModulePermissions']={},_0xf59c8b[_0x462d85('0x2834')]=_0xf59c8b[_0x462d85('0x23e1')]&&_0xf59c8b[_0x462d85('0x23e1')][_0x462d85('0x1d4')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0xf59c8b['title']=_0x462d85('0x15f1'),_0xf59c8b[_0x462d85('0x251b')]=angular['copy'](_0x5ed59c),_0xf59c8b[_0x462d85('0xce')]=_0x55f6b9,_0xf59c8b[_0x462d85('0x209')]=![];!_0xf59c8b[_0x462d85('0x251b')]&&(_0xf59c8b[_0x462d85('0x251b')]={'strategy':_0x462d85('0x1b76'),'timeout':0xa},_0xf59c8b['title']=_0x462d85('0x2157'),_0xf59c8b['newMailQueue']=!![]);_0xf59c8b[_0x462d85('0x558')]=_0x9433f,_0xf59c8b[_0x462d85('0x274c')]=_0x52b457,_0xf59c8b[_0x462d85('0xac9')]=_0x3bf41b,_0xf59c8b[_0x462d85('0x1bd1')]=_0x54debf,_0xf59c8b[_0x462d85('0xc4e')]=_0x15e524;function _0x9433f(){const _0x40755e=_0x462d85;_0xf59c8b[_0x40755e('0x120f')]=[],_0x31d37b[_0x40755e('0x251b')][_0x40755e('0x259')](_0xf59c8b[_0x40755e('0x251b')])['$promise'][_0x40755e('0x11bf')](function(_0x50f667){const _0x5407ef=_0x40755e;_0xf59c8b[_0x5407ef('0xce')][_0x5407ef('0x880')](_0x50f667[_0x5407ef('0x2866')]()),_0x2ac12e['success']({'title':_0x5407ef('0xe3f'),'msg':_0xf59c8b['mailQueue'][_0x5407ef('0x1909')]?_0xf59c8b[_0x5407ef('0x251b')]['name']+_0x5407ef('0x7fb'):''}),_0x15e524(_0x50f667);})['catch'](function(_0x29b689){const _0xb03cf2=_0x40755e;if(_0x29b689[_0xb03cf2('0x4e8')]&&_0x29b689[_0xb03cf2('0x4e8')][_0xb03cf2('0x120f')]&&_0x29b689[_0xb03cf2('0x4e8')][_0xb03cf2('0x120f')]['length']){_0xf59c8b['errors']=_0x29b689[_0xb03cf2('0x4e8')][_0xb03cf2('0x120f')]||[{'message':_0x29b689[_0xb03cf2('0xaab')](),'type':_0xb03cf2('0xc58')}];for(let _0x3a8812=0x0;_0x3a8812<_0x29b689['data']['errors']['length'];_0x3a8812+=0x1){_0x2ac12e[_0xb03cf2('0x255')]({'title':_0x29b689[_0xb03cf2('0x4e8')][_0xb03cf2('0x120f')][_0x3a8812][_0xb03cf2('0x19fd')],'msg':_0x29b689[_0xb03cf2('0x4e8')][_0xb03cf2('0x120f')][_0x3a8812]['message']});}}else _0x2ac12e['error']({'title':_0x29b689[_0xb03cf2('0xff9')]?_0xb03cf2('0x574')+_0x29b689[_0xb03cf2('0xff9')]+'\x20-\x20'+_0x29b689[_0xb03cf2('0x212f')]:_0xb03cf2('0xc58'),'msg':_0x29b689['data']?JSON[_0xb03cf2('0x3e')](_0x29b689['data'][_0xb03cf2('0x1b86')]):_0x29b689[_0xb03cf2('0xaab')]()});});}function _0x52b457(){const _0xd37040=_0x462d85;_0xf59c8b[_0xd37040('0x120f')]=[],_0x31d37b[_0xd37040('0x251b')][_0xd37040('0x5ab')]({'id':_0xf59c8b['mailQueue']['id']},_0xf59c8b[_0xd37040('0x251b')])['$promise']['then'](function(_0xfa5583){const _0x5d3b02=_0xd37040,_0x2a8126=_0x36f548()[_0x5d3b02('0x1ad4')](_0xf59c8b[_0x5d3b02('0xce')],{'id':_0xfa5583['id']});_0x2a8126&&_0x36f548()[_0x5d3b02('0x47b')](_0x2a8126,_0x36f548()[_0x5d3b02('0x258')](_0xfa5583['toJSON'](),_0x36f548()[_0x5d3b02('0xe22')](_0x2a8126))),_0x2ac12e[_0x5d3b02('0x2693')]({'title':_0x5d3b02('0x820'),'msg':_0xf59c8b[_0x5d3b02('0x251b')]['name']?_0xf59c8b[_0x5d3b02('0x251b')][_0x5d3b02('0x1909')]+'\x20has\x20been\x20saved!':''}),_0x15e524(_0xfa5583);})[_0xd37040('0x151d')](function(_0x272c7e){const _0x3a01e9=_0xd37040;if(_0x272c7e[_0x3a01e9('0x4e8')]&&_0x272c7e[_0x3a01e9('0x4e8')]['errors']&&_0x272c7e[_0x3a01e9('0x4e8')][_0x3a01e9('0x120f')][_0x3a01e9('0x1e22')]){_0xf59c8b['errors']=_0x272c7e[_0x3a01e9('0x4e8')]['errors']||[{'message':_0x272c7e[_0x3a01e9('0xaab')](),'type':'api.mailQueue.update'}];for(let _0x2f84ac=0x0;_0x2f84ac<_0x272c7e[_0x3a01e9('0x4e8')]['errors'][_0x3a01e9('0x1e22')];_0x2f84ac++){_0x2ac12e['error']({'title':_0x272c7e[_0x3a01e9('0x4e8')][_0x3a01e9('0x120f')][_0x2f84ac][_0x3a01e9('0x19fd')],'msg':_0x272c7e[_0x3a01e9('0x4e8')][_0x3a01e9('0x120f')][_0x2f84ac]['message']});}}else _0x2ac12e['error']({'title':_0x272c7e['status']?_0x3a01e9('0x574')+_0x272c7e['status']+'\x20-\x20'+_0x272c7e['statusText']:_0x3a01e9('0xb9a'),'msg':_0x272c7e[_0x3a01e9('0x4e8')]?JSON['stringify'](_0x272c7e['data'][_0x3a01e9('0x1b86')]):_0x272c7e[_0x3a01e9('0xaab')]()});});}function _0x3bf41b(_0x3a7a51){const _0x420391=_0x462d85;_0xf59c8b[_0x420391('0x120f')]=[];const _0x4e7e17=_0x514584[_0x420391('0x132b')]()[_0x420391('0x134b')]('Are\x20you\x20sure?')[_0x420391('0x252a')](_0x420391('0x1ced'))['ariaLabel'](_0x420391('0xae'))['ok'](_0x420391('0x1167'))[_0x420391('0x26c9')]('Cancel')[_0x420391('0x1e25')](_0x3a7a51);_0x514584[_0x420391('0xb9')](_0x4e7e17)['then'](function(){const _0x27095c=_0x420391;_0x31d37b[_0x27095c('0x251b')][_0x27095c('0x2088')]({'id':_0xf59c8b[_0x27095c('0x251b')]['id']})[_0x27095c('0x1549')][_0x27095c('0x11bf')](function(){const _0x16e523=_0x27095c;_0x36f548()[_0x16e523('0x14a5')](_0xf59c8b[_0x16e523('0xce')],{'id':_0xf59c8b[_0x16e523('0x251b')]['id']}),_0x2ac12e[_0x16e523('0x2693')]({'title':_0x16e523('0x14c3'),'msg':(_0xf59c8b['mailQueue'][_0x16e523('0x1909')]||_0x16e523('0x251b'))+_0x16e523('0x433')}),_0x15e524(_0xf59c8b[_0x16e523('0x251b')]);})[_0x27095c('0x151d')](function(_0x122da7){const _0x10cd30=_0x27095c;if(_0x122da7[_0x10cd30('0x4e8')]&&_0x122da7['data'][_0x10cd30('0x120f')]&&_0x122da7[_0x10cd30('0x4e8')][_0x10cd30('0x120f')][_0x10cd30('0x1e22')]){_0xf59c8b[_0x10cd30('0x120f')]=_0x122da7[_0x10cd30('0x4e8')][_0x10cd30('0x120f')]||[{'message':_0x122da7[_0x10cd30('0xaab')](),'type':'api.mailQueue.delete'}];for(let _0x34ac83=0x0;_0x34ac83<_0x122da7['data'][_0x10cd30('0x120f')][_0x10cd30('0x1e22')];_0x34ac83++){_0x2ac12e[_0x10cd30('0x255')]({'title':_0x122da7['data'][_0x10cd30('0x120f')][_0x34ac83]['type'],'msg':_0x122da7[_0x10cd30('0x4e8')][_0x10cd30('0x120f')][_0x34ac83][_0x10cd30('0x1b86')]});}}else _0x2ac12e[_0x10cd30('0x255')]({'title':_0x122da7[_0x10cd30('0xff9')]?_0x10cd30('0x574')+_0x122da7[_0x10cd30('0xff9')]+_0x10cd30('0xb0b')+_0x122da7[_0x10cd30('0x212f')]:_0x10cd30('0x2326'),'msg':_0x122da7[_0x10cd30('0x4e8')]?JSON[_0x10cd30('0x3e')](_0x122da7[_0x10cd30('0x4e8')][_0x10cd30('0x1b86')]):_0x122da7['message']||_0x122da7[_0x10cd30('0xaab')]()});});},function(){});}function _0x54debf(_0x3ee759){return _0x3ee759===null?undefined:new Date(_0x3ee759);}function _0x15e524(_0x17ba14){const _0x2f5be6=_0x462d85;_0x514584[_0x2f5be6('0x237e')](_0x17ba14);}}const _0x12b924=_0x1545a9;_0x181c7c[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0x142d'),_0x21d0f5('0x12a5'),_0x21d0f5('0x251b'),_0x21d0f5('0xce'),'realtime',_0x21d0f5('0xb6b'),_0x21d0f5('0x1150'),_0x21d0f5('0xb25')];function _0x181c7c(_0x53fb45,_0x42b916,_0x3efdb4,_0xcb450a,_0x395f85,_0x1c3b44,_0x400bf7,_0x4cb380,_0x2a800d,_0xef806e){const _0x5015d2=_0x21d0f5,_0x41b1e7=this;_0x41b1e7[_0x5015d2('0x32a')]=_0x2a800d[_0x5015d2('0x2428')](),_0x41b1e7[_0x5015d2('0x251b')]=_0x395f85,_0x41b1e7[_0x5015d2('0xb25')]=_0xef806e,_0x41b1e7[_0x5015d2('0x25f9')]=_0x400bf7,_0x41b1e7[_0x5015d2('0x22')]=[],_0x41b1e7[_0x5015d2('0x63')]=[],_0x41b1e7['selectedItems']=[],_0x41b1e7[_0x5015d2('0x1c6f')]=[],_0x41b1e7[_0x5015d2('0x21ed')]=[],_0x41b1e7[_0x5015d2('0x1eda')]=![],_0x41b1e7[_0x5015d2('0x277c')]=_0x3031e8,_0x41b1e7[_0x5015d2('0x280')]=_0x38ef06,_0x41b1e7['closeDialog']=_0x49112e,_0x41b1e7[_0x5015d2('0xec5')]={'readOnly':!_0x41b1e7[_0x5015d2('0xb25')][_0x5015d2('0x25db')],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x5015d2('0x1909'),'line1':_0x5015d2('0x27af'),'line2':[_0x5015d2('0x1909'),_0x5015d2('0x1a04')],'line3':'','labelAll':_0x4cb380['instant']('APP.ALL_AGENTS'),'labelSelected':_0x4cb380['instant'](_0x5015d2('0x24b4')),'transferCallback':function(){const _0x4ddcff=_0x5015d2,_0x3f4bf1=_0x36f548()[_0x4ddcff('0x1a1b')](_0x41b1e7[_0x4ddcff('0x21ed')],_0x41b1e7[_0x4ddcff('0x26cc')],'id');_0x41b1e7[_0x4ddcff('0x1eda')]=_0x36f548()['isEmpty'](_0x3f4bf1)?![]:!![];}};function _0x3031e8(){const _0x243647=_0x5015d2;return _0x2a800d['hasRole'](_0x243647('0xf45'))?_0x3de3ec()[_0x243647('0x151d')](function(_0x50fd43){const _0x160c9b=_0x243647;_0x3efdb4['error']({'title':_0x50fd43[_0x160c9b('0xff9')]?'API:'+_0x50fd43[_0x160c9b('0xff9')]+'\x20-\x20'+_0x50fd43[_0x160c9b('0x212f')]:_0x160c9b('0x912'),'msg':_0x50fd43[_0x160c9b('0xff9')]?JSON[_0x160c9b('0x3e')](_0x50fd43[_0x160c9b('0x4e8')]):_0x50fd43[_0x160c9b('0xaab')]()});}):_0x71e426()[_0x243647('0x11bf')](function(_0x2b42d3){const _0x214399=_0x243647;return _0x41b1e7[_0x214399('0xe6')]=_0x2b42d3,_0x3de3ec();})[_0x243647('0x151d')](function(_0x31802a){const _0x268586=_0x243647;_0x3efdb4['error']({'title':_0x31802a[_0x268586('0xff9')]?_0x268586('0x574')+_0x31802a[_0x268586('0xff9')]+_0x268586('0xb0b')+_0x31802a[_0x268586('0x212f')]:_0x268586('0x912'),'msg':_0x31802a[_0x268586('0xff9')]?JSON[_0x268586('0x3e')](_0x31802a[_0x268586('0x4e8')]):_0x31802a[_0x268586('0xaab')]()});});}function _0x71e426(){return _0x42b916(function(_0x698074,_0x295ada){const _0x5aa78c=a0_0xaf0c;_0xcb450a[_0x5aa78c('0x1d63')][_0x5aa78c('0xbaa')]({'userProfileId':_0x41b1e7['currentUser'][_0x5aa78c('0x781')],'name':'Agents'})[_0x5aa78c('0x1549')][_0x5aa78c('0x11bf')](function(_0x11e0bc){const _0x391238=_0x5aa78c,_0x2ef4c0=_0x11e0bc&&_0x11e0bc[_0x391238('0x19b2')]?_0x11e0bc[_0x391238('0x19b2')][0x0]:null;_0x698074(_0x2ef4c0);})[_0x5aa78c('0x151d')](function(_0x3e0dd8){_0x295ada(_0x3e0dd8);});});}function _0x3de3ec(){return _0x42b916(function(_0x550956,_0x2aae08){const _0x580555=a0_0xaf0c;return _0x38decb()[_0x580555('0x11bf')](function(_0x40c4fd){const _0x2e3b7a=_0x580555;return _0x41b1e7[_0x2e3b7a('0x22')]=_0x40c4fd[_0x2e3b7a('0x19b2')]?_0x40c4fd[_0x2e3b7a('0x19b2')]:[],_0x2a800d[_0x2e3b7a('0x4ee')]('admin')?_0x40c4fd:_0x41b1e7[_0x2e3b7a('0xe6')]?_0x41b1e7[_0x2e3b7a('0xe6')][_0x2e3b7a('0xf11')]?_0x40c4fd:_0x4a50b3():null;})[_0x580555('0x11bf')](function(_0x56d302){const _0x127ef2=_0x580555,_0xfa701a=_0x56d302&&_0x56d302[_0x127ef2('0x19b2')]?_0x56d302[_0x127ef2('0x19b2')]:[];return _0x41b1e7['allowedItems']=_0x36f548()[_0x127ef2('0x2171')](_0xfa701a,function(_0x2cf364){const _0x40f8f9=_0x127ef2;return _0x36f548()[_0x40f8f9('0x1ad4')](_0x41b1e7['items'],{'id':_0x2a800d['hasRole'](_0x40f8f9('0xf45'))||_0x41b1e7[_0x40f8f9('0xe6')]['autoAssociation']?_0x2cf364['id']:_0x2cf364['resourceId']});}),_0x41b1e7[_0x127ef2('0x1c6f')]=angular[_0x127ef2('0x6fb')](_0x41b1e7[_0x127ef2('0x63')]),_0x41b1e7[_0x127ef2('0x22')][_0x127ef2('0x1f88')](function(_0x335e06){const _0x3f0459=_0x127ef2,_0x2d96b6=_0x36f548()[_0x3f0459('0x1ad4')](_0x41b1e7[_0x3f0459('0x63')],{'id':_0x335e06['id']});_0x2a800d[_0x3f0459('0x4ee')](_0x3f0459('0xf45'))?_0x335e06[_0x3f0459('0xde9')]=!![]:_0x335e06[_0x3f0459('0xde9')]=typeof _0x2d96b6!==_0x3f0459('0x13e9')?!![]:![];}),_0x2640c9();})[_0x580555('0x11bf')](function(_0x139291){const _0x5ab5f6=_0x580555,_0x55eb8c=_0x139291&&_0x139291['rows']?_0x139291[_0x5ab5f6('0x19b2')]:[];_0x41b1e7[_0x5ab5f6('0x26cc')]=_0x36f548()[_0x5ab5f6('0x2171')](_0x55eb8c,function(_0x31ce93){const _0x552a7a=_0x5ab5f6,_0xe34e4c=_0x36f548()['find'](_0x41b1e7[_0x552a7a('0x22')],{'id':_0x31ce93['id']});return _0xe34e4c['penalty']=_0x31ce93[_0x552a7a('0x7d6')]?_0x552a7a('0x1caa')+_0x31ce93[_0x552a7a('0x7d6')][_0x552a7a('0xf47')]:'',_0xe34e4c['internal']=typeof _0x31ce93['internal']!==_0x552a7a('0x13e9')?'<'+_0x31ce93[_0x552a7a('0x1a04')]+'>':'',_0xe34e4c;}),_0x41b1e7[_0x5ab5f6('0x21ed')]=angular[_0x5ab5f6('0x6fb')](_0x41b1e7[_0x5ab5f6('0x26cc')]),_0x41b1e7['dualMultiselectOptions'][_0x5ab5f6('0x26cc')]=_0x41b1e7[_0x5ab5f6('0x26cc')],_0x41b1e7['dualMultiselectOptions'][_0x5ab5f6('0x22')]=_0x36f548()[_0x5ab5f6('0x2753')](_0x41b1e7[_0x5ab5f6('0x63')],_0x41b1e7[_0x5ab5f6('0xec5')][_0x5ab5f6('0x26cc')],'id'),_0x550956();})['catch'](function(_0x14dc96){_0x2aae08(_0x14dc96);});});}function _0x4a50b3(){return _0x42b916(function(_0x934dd7,_0x824099){const _0x22ddba=a0_0xaf0c;return _0xcb450a[_0x22ddba('0x26d1')][_0x22ddba('0xbaa')]({'sectionId':_0x41b1e7[_0x22ddba('0xe6')]['id'],'nolimit':!![]})[_0x22ddba('0x1549')][_0x22ddba('0x11bf')](function(_0x4ce8be){_0x934dd7(_0x4ce8be);})[_0x22ddba('0x151d')](function(_0x2a7df0){_0x824099(_0x2a7df0);});});}function _0x2640c9(){return _0x42b916(function(_0x568ed5,_0x5c2354){const _0x5abb70=a0_0xaf0c;return _0xcb450a[_0x5abb70('0x251b')][_0x5abb70('0x2783')]({'id':_0x41b1e7[_0x5abb70('0x251b')]['id'],'fields':_0x5abb70('0x13d3'),'nolimit':!![],'role':_0x5abb70('0x18c4')})['$promise'][_0x5abb70('0x11bf')](function(_0x2b7d32){_0x568ed5(_0x2b7d32);})['catch'](function(_0x233072){_0x5c2354(_0x233072);});});}function _0x38decb(){return _0x42b916(function(_0x122f3c,_0x2632d2){const _0x40febb=a0_0xaf0c;return _0xcb450a[_0x40febb('0x21d9')]['get']({'fields':_0x40febb('0x13d3'),'nolimit':!![],'role':_0x40febb('0x18c4')})[_0x40febb('0x1549')][_0x40febb('0x11bf')](function(_0x2a6cf5){_0x122f3c(_0x2a6cf5);})[_0x40febb('0x151d')](function(_0x463fc5){_0x2632d2(_0x463fc5);});});}function _0x1ae2ac(_0x23e82b){return _0x42b916(function(_0x38521a,_0x3e97ae){const _0x3c009e=a0_0xaf0c;_0x36f548()['isEmpty'](_0x23e82b)?_0x38521a():_0xcb450a['mailQueue']['addAgents']({'id':_0x41b1e7[_0x3c009e('0x251b')]['id'],'ids':_0x36f548()[_0x3c009e('0x2171')](_0x23e82b,'id')})[_0x3c009e('0x1549')]['then'](function(){_0x38521a();})[_0x3c009e('0x151d')](function(_0x52fb26){_0x3e97ae(_0x52fb26);});});}function _0x2bbf03(_0x30f5ed){return _0x42b916(function(_0x1b9796,_0x4286f5){const _0x25fa3f=a0_0xaf0c;_0x36f548()[_0x25fa3f('0x1fc5')](_0x30f5ed)?_0x1b9796():_0xcb450a[_0x25fa3f('0x251b')]['removeAgents']({'id':_0x41b1e7[_0x25fa3f('0x251b')]['id'],'ids':_0x36f548()['map'](_0x30f5ed,'id')})[_0x25fa3f('0x1549')]['then'](function(){_0x1b9796();})[_0x25fa3f('0x151d')](function(_0x5c5001){_0x4286f5(_0x5c5001);});});}function _0x38ef06(){const _0x5cc8d3=_0x5015d2,_0x5f0208=_0x36f548()['differenceBy'](_0x41b1e7[_0x5cc8d3('0x21ed')],_0x41b1e7[_0x5cc8d3('0x26cc')],'id'),_0x2adfe7=_0x36f548()[_0x5cc8d3('0x2753')](_0x41b1e7[_0x5cc8d3('0x26cc')],_0x41b1e7[_0x5cc8d3('0x21ed')],'id');return _0x2bbf03(_0x5f0208)[_0x5cc8d3('0x11bf')](function(){return _0x1ae2ac(_0x2adfe7);})[_0x5cc8d3('0x11bf')](function(){const _0x4d6918=_0x5cc8d3;_0x41b1e7['pendingChanges']=![],_0x41b1e7[_0x4d6918('0x1c6f')]=angular[_0x4d6918('0x6fb')](_0x41b1e7[_0x4d6918('0x63')]),_0x41b1e7[_0x4d6918('0x21ed')]=angular[_0x4d6918('0x6fb')](_0x41b1e7['selectedItems']),_0x3efdb4[_0x4d6918('0x2693')]({'title':_0x4d6918('0x2243'),'msg':_0x4d6918('0x2273')});})[_0x5cc8d3('0x151d')](function(_0x7a160c){const _0x416733=_0x5cc8d3;_0x3efdb4[_0x416733('0x255')]({'title':_0x7a160c['status']?_0x416733('0x574')+_0x7a160c['status']+_0x416733('0xb0b')+_0x7a160c[_0x416733('0x212f')]:_0x416733('0x1b7f'),'msg':_0x7a160c['status']?JSON[_0x416733('0x3e')](_0x7a160c[_0x416733('0x4e8')]):_0x7a160c['toString']()});});}function _0x49112e(){_0x53fb45['hide']();}}const _0x5e6d8c=_0x181c7c;_0x206e80[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0x142d'),'api',_0x21d0f5('0x251b'),'$translate','Auth',_0x21d0f5('0xb25')];function _0x206e80(_0x236e87,_0x2c9ea2,_0xf88115,_0x56640e,_0x16fdac,_0x484bc4,_0x936b40,_0x4b1ca0){const _0x56fba1=_0x21d0f5,_0x65b672=this;_0x65b672[_0x56fba1('0x32a')]=_0x936b40['getCurrentUser'](),_0x65b672[_0x56fba1('0x251b')]=_0x16fdac,_0x65b672[_0x56fba1('0xb25')]=_0x4b1ca0,_0x65b672[_0x56fba1('0x22')]=[],_0x65b672[_0x56fba1('0x63')]=[],_0x65b672['selectedItems']=[],_0x65b672['startingAllowedItems']=[],_0x65b672[_0x56fba1('0x21ed')]=[],_0x65b672['pendingChanges']=![],_0x65b672[_0x56fba1('0xec5')]={'readOnly':!_0x65b672[_0x56fba1('0xb25')][_0x56fba1('0x25db')],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x56fba1('0x1909'),'line1':_0x56fba1('0x1909'),'line2':'','line3':'','labelAll':_0x484bc4['instant'](_0x56fba1('0x1f5')),'labelSelected':_0x484bc4[_0x56fba1('0x10c2')]('APP.SELECTED_TEAMS'),'transferCallback':function(){const _0x244fb3=_0x56fba1,_0x5c8f86=_0x36f548()[_0x244fb3('0x1a1b')](_0x65b672['startingSelectedItems'],_0x65b672[_0x244fb3('0x26cc')],'id');_0x65b672[_0x244fb3('0x1eda')]=_0x36f548()[_0x244fb3('0x1fc5')](_0x5c8f86)?![]:!![];}},_0x65b672[_0x56fba1('0x277c')]=_0x3850df,_0x65b672['saveTeams']=_0x112211,_0x65b672[_0x56fba1('0xc4e')]=_0x2c0b46;function _0x3850df(){const _0x3268bf=_0x56fba1;return _0x936b40[_0x3268bf('0x4ee')](_0x3268bf('0xf45'))?_0x4017b3()[_0x3268bf('0x151d')](function(_0x589d88){const _0x3e7abd=_0x3268bf;_0xf88115[_0x3e7abd('0x255')]({'title':_0x589d88['status']?'API:'+_0x589d88['status']+_0x3e7abd('0xb0b')+_0x589d88[_0x3e7abd('0x212f')]:_0x3e7abd('0x2059'),'msg':_0x589d88[_0x3e7abd('0xff9')]?JSON['stringify'](_0x589d88[_0x3e7abd('0x4e8')]):_0x589d88[_0x3e7abd('0xaab')]()});}):_0xa5295c()[_0x3268bf('0x11bf')](function(_0x3cf1d8){return _0x65b672['section']=_0x3cf1d8,_0x4017b3();})[_0x3268bf('0x151d')](function(_0x4a94fa){const _0x2d7bdf=_0x3268bf;_0xf88115['error']({'title':_0x4a94fa[_0x2d7bdf('0xff9')]?_0x2d7bdf('0x574')+_0x4a94fa[_0x2d7bdf('0xff9')]+'\x20-\x20'+_0x4a94fa[_0x2d7bdf('0x212f')]:_0x2d7bdf('0x2059'),'msg':_0x4a94fa['status']?JSON['stringify'](_0x4a94fa['data']):_0x4a94fa['toString']()});});}function _0xa5295c(){return _0x2c9ea2(function(_0x78dbd1,_0x2f7124){const _0x1ac6d0=a0_0xaf0c;_0x56640e[_0x1ac6d0('0x1d63')][_0x1ac6d0('0xbaa')]({'userProfileId':_0x65b672[_0x1ac6d0('0x32a')][_0x1ac6d0('0x781')],'name':_0x1ac6d0('0xc3f')})[_0x1ac6d0('0x1549')][_0x1ac6d0('0x11bf')](function(_0x46dfb7){const _0x60ab15=_0x1ac6d0,_0x650f4f=_0x46dfb7&&_0x46dfb7[_0x60ab15('0x19b2')]?_0x46dfb7['rows'][0x0]:null;_0x78dbd1(_0x650f4f);})['catch'](function(_0x2788bb){_0x2f7124(_0x2788bb);});});}function _0x4017b3(){return _0x2c9ea2(function(_0x13708c,_0x133b26){const _0x1f28db=a0_0xaf0c;return _0x2bbc31()['then'](function(_0x504941){const _0x26505c=a0_0xaf0c;return _0x65b672[_0x26505c('0x22')]=_0x504941[_0x26505c('0x19b2')]?_0x504941[_0x26505c('0x19b2')]:[],_0x936b40['hasRole'](_0x26505c('0xf45'))?_0x504941:_0x65b672[_0x26505c('0xe6')]?_0x65b672[_0x26505c('0xe6')]['autoAssociation']?_0x504941:_0x4cd475():null;})[_0x1f28db('0x11bf')](function(_0x1e1b7a){const _0x51274e=_0x1f28db,_0x4b9fd0=_0x1e1b7a&&_0x1e1b7a[_0x51274e('0x19b2')]?_0x1e1b7a[_0x51274e('0x19b2')]:[];return _0x65b672['allowedItems']=_0x36f548()['map'](_0x4b9fd0,function(_0xfde7ec){const _0x4d3d04=_0x51274e;return _0x36f548()['find'](_0x65b672[_0x4d3d04('0x22')],{'id':_0x936b40[_0x4d3d04('0x4ee')](_0x4d3d04('0xf45'))||_0x65b672[_0x4d3d04('0xe6')][_0x4d3d04('0xf11')]?_0xfde7ec['id']:_0xfde7ec['resourceId']});}),_0x65b672[_0x51274e('0x22')]['forEach'](function(_0x267bb0){const _0x44575d=_0x51274e,_0x56da2b=_0x36f548()[_0x44575d('0x1ad4')](_0x65b672[_0x44575d('0x63')],{'id':_0x267bb0['id']});_0x936b40[_0x44575d('0x4ee')](_0x44575d('0xf45'))?_0x267bb0[_0x44575d('0xde9')]=!![]:_0x267bb0[_0x44575d('0xde9')]=typeof _0x56da2b!==_0x44575d('0x13e9')?!![]:![];}),_0x1286d3();})[_0x1f28db('0x11bf')](function(_0x4f67c2){const _0x52d51a=_0x1f28db,_0x3399dd=_0x4f67c2&&_0x4f67c2['rows']?_0x4f67c2[_0x52d51a('0x19b2')]:[];_0x65b672[_0x52d51a('0x26cc')]=_0x36f548()[_0x52d51a('0x2171')](_0x3399dd,function(_0x3fbdb8){const _0x4b1fe2=_0x52d51a;return _0x36f548()[_0x4b1fe2('0x1ad4')](_0x65b672[_0x4b1fe2('0x22')],{'id':_0x3fbdb8['id']});}),_0x65b672['startingSelectedItems']=angular['copy'](_0x65b672[_0x52d51a('0x26cc')]),_0x65b672[_0x52d51a('0xec5')]['selectedItems']=_0x65b672[_0x52d51a('0x26cc')],_0x65b672[_0x52d51a('0xec5')][_0x52d51a('0x22')]=_0x36f548()[_0x52d51a('0x2753')](_0x65b672[_0x52d51a('0x63')],_0x65b672[_0x52d51a('0xec5')][_0x52d51a('0x26cc')],'id'),_0x13708c();})[_0x1f28db('0x151d')](function(_0x5891e8){_0x133b26(_0x5891e8);});});}function _0x4cd475(){return _0x2c9ea2(function(_0x2f301e,_0x42b55b){const _0x3b5bfe=a0_0xaf0c;return _0x56640e[_0x3b5bfe('0x26d1')][_0x3b5bfe('0xbaa')]({'sectionId':_0x65b672['section']['id'],'nolimit':!![]})[_0x3b5bfe('0x1549')][_0x3b5bfe('0x11bf')](function(_0x34efe1){_0x2f301e(_0x34efe1);})[_0x3b5bfe('0x151d')](function(_0x23b883){_0x42b55b(_0x23b883);});});}function _0x1286d3(){return _0x2c9ea2(function(_0x26bbfa,_0x570fed){const _0x302286=a0_0xaf0c;return _0x56640e[_0x302286('0x251b')][_0x302286('0x306')]({'id':_0x65b672[_0x302286('0x251b')]['id'],'fields':_0x302286('0x721'),'nolimit':!![]})[_0x302286('0x1549')][_0x302286('0x11bf')](function(_0xe8aa7a){_0x26bbfa(_0xe8aa7a);})[_0x302286('0x151d')](function(_0x19794e){_0x570fed(_0x19794e);});});}function _0x2bbc31(){return _0x2c9ea2(function(_0x53cb95,_0x5e3e37){const _0x5406b9=a0_0xaf0c;return _0x56640e[_0x5406b9('0xae6')][_0x5406b9('0xbaa')]({'fields':_0x5406b9('0x721'),'nolimit':!![]})[_0x5406b9('0x1549')][_0x5406b9('0x11bf')](function(_0x1033c2){_0x53cb95(_0x1033c2);})[_0x5406b9('0x151d')](function(_0x1070f3){_0x5e3e37(_0x1070f3);});});}function _0x1ecb85(_0x5dada7){return _0x2c9ea2(function(_0x50a9c7,_0x2eda74){const _0x2bb229=a0_0xaf0c;_0x36f548()[_0x2bb229('0x1fc5')](_0x5dada7)?_0x50a9c7():_0x56640e[_0x2bb229('0x251b')]['addTeams']({'id':_0x65b672[_0x2bb229('0x251b')]['id'],'ids':_0x36f548()[_0x2bb229('0x2171')](_0x5dada7,'id')})[_0x2bb229('0x1549')]['then'](function(){_0x50a9c7();})[_0x2bb229('0x151d')](function(_0xf5c918){_0x2eda74(_0xf5c918);});});}function _0x58d561(_0x446158){return _0x2c9ea2(function(_0x33381c,_0x1eafb5){const _0x16a126=a0_0xaf0c;_0x36f548()[_0x16a126('0x1fc5')](_0x446158)?_0x33381c():_0x56640e[_0x16a126('0x251b')]['removeTeams']({'id':_0x65b672[_0x16a126('0x251b')]['id'],'ids':_0x36f548()[_0x16a126('0x2171')](_0x446158,'id')})[_0x16a126('0x1549')]['then'](function(){_0x33381c();})[_0x16a126('0x151d')](function(_0x1c96ca){_0x1eafb5(_0x1c96ca);});});}function _0x112211(){const _0x18b4e7=_0x56fba1,_0x3ae83a=_0x36f548()[_0x18b4e7('0x2753')](_0x65b672[_0x18b4e7('0x21ed')],_0x65b672['selectedItems'],'id'),_0x18abc6=_0x36f548()[_0x18b4e7('0x2753')](_0x65b672[_0x18b4e7('0x26cc')],_0x65b672[_0x18b4e7('0x21ed')],'id');return _0x58d561(_0x3ae83a)[_0x18b4e7('0x11bf')](function(){return _0x1ecb85(_0x18abc6);})[_0x18b4e7('0x11bf')](function(){const _0x591fad=_0x18b4e7;_0x65b672[_0x591fad('0x1eda')]=![],_0x65b672[_0x591fad('0x1c6f')]=angular[_0x591fad('0x6fb')](_0x65b672[_0x591fad('0x63')]),_0x65b672[_0x591fad('0x21ed')]=angular[_0x591fad('0x6fb')](_0x65b672[_0x591fad('0x26cc')]),_0xf88115[_0x591fad('0x2693')]({'title':_0x591fad('0x2243'),'msg':_0x591fad('0x1a68')});})['catch'](function(_0x210e2a){const _0x2adbb7=_0x18b4e7;_0xf88115[_0x2adbb7('0x255')]({'title':_0x210e2a['status']?_0x2adbb7('0x574')+_0x210e2a[_0x2adbb7('0xff9')]+'\x20-\x20'+_0x210e2a[_0x2adbb7('0x212f')]:_0x2adbb7('0x1b7f'),'msg':_0x210e2a['status']?JSON['stringify'](_0x210e2a['data']):_0x210e2a['toString']()});});}function _0x2c0b46(){const _0x2deb83=_0x56fba1;_0x236e87[_0x2deb83('0x237e')]();}}const _0x205cf1=_0x206e80,_0x2b39d2=_0x351988['p']+'src/js/modules/main/apps/mail/views/mailQueues/edit/teamadd/teamadd.html/teamadd.html';_0x4e6aef[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0xcbc'),_0x21d0f5('0x16b9'),_0x21d0f5('0x1ca2'),'$document',_0x21d0f5('0xb6b'),'license',_0x21d0f5('0x23e1'),_0x21d0f5('0x12a5'),_0x21d0f5('0x142d'),_0x21d0f5('0x1150'),_0x21d0f5('0x251b'),'userProfileSection'];function _0x4e6aef(_0x26af73,_0x531fd5,_0x143af7,_0x28e0f5,_0x48270f,_0x229f03,_0x2f7604,_0x253be8,_0x270393,_0x3ce227,_0x5316a4,_0x23b98c){const _0x3c40cc=_0x21d0f5,_0x4ab2ce=this;_0x4ab2ce['currentUser']=_0x3ce227[_0x3c40cc('0x2428')](),_0x4ab2ce[_0x3c40cc('0x17ff')]=_0x229f03,_0x4ab2ce[_0x3c40cc('0x23e1')]=_0x2f7604,_0x4ab2ce[_0x3c40cc('0x2834')]=_0x4ab2ce['setting'][_0x3c40cc('0x1d4')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x4ab2ce[_0x3c40cc('0x1d9a')]=_0x531fd5[_0x3c40cc('0x1797')]()+_0x3c40cc('0x16a1')+_0x531fd5[_0x3c40cc('0x14ec')](),_0x4ab2ce[_0x3c40cc('0x251b')]=_0x5316a4||_0x26af73[_0x3c40cc('0x1ab3')][_0x3c40cc('0x251b')]||{},_0x4ab2ce['userProfileSection']=_0x23b98c&&_0x23b98c['count']==0x1?_0x23b98c[_0x3c40cc('0x19b2')][0x0]:null,_0x4ab2ce[_0x3c40cc('0xb25')]=_0x3ce227[_0x3c40cc('0x1530')](_0x4ab2ce['userProfileSection']?_0x4ab2ce[_0x3c40cc('0x1d63')][_0x3c40cc('0xb25')]:null),_0x4ab2ce[_0x3c40cc('0x2c9')]={},_0x4ab2ce[_0x3c40cc('0x1179')]=_0x26af73[_0x3c40cc('0x1ab3')][_0x3c40cc('0x205c')]||0x0,_0x4ab2ce[_0x3c40cc('0x11b8')]=_0x386300,_0x4ab2ce[_0x3c40cc('0x2363')]=_0x11d52e,_0x4ab2ce[_0x3c40cc('0xb30')]=_0x270393['info'],_0x4ab2ce['gotoMailQueues']=_0x20c5fe,_0x4ab2ce[_0x3c40cc('0x274c')]=_0x4ed44c;function _0x386300(_0x35ece6,_0x1c1835){const _0x1e4125=_0x3c40cc;_0x143af7[_0x1e4125('0xb9')]({'controller':'MailQueueteamaddController','controllerAs':'vm','templateUrl':_0x2b39d2,'parent':angular[_0x1e4125('0x1e73')](_0x28e0f5[_0x1e4125('0x1d2')]),'targetEvent':_0x1c1835,'clickOutsideToClose':!![],'locals':{'mailQueue':_0x35ece6,'mailQueues':_0x4ab2ce['mailQueues']?_0x4ab2ce[_0x1e4125('0xce')][_0x1e4125('0x19b2')]:[],'crudPermissions':_0x4ab2ce[_0x1e4125('0xb25')]}});}function _0x11d52e(_0x48307f,_0x179e59){const _0x1351f4=_0x3c40cc;_0x143af7[_0x1351f4('0xb9')]({'controller':_0x1351f4('0x1e0e'),'controllerAs':'vm','templateUrl':_0x4cc0ba,'parent':angular[_0x1351f4('0x1e73')](_0x28e0f5['body']),'targetEvent':_0x179e59,'clickOutsideToClose':!![],'locals':{'mailQueue':_0x48307f,'mailQueues':_0x4ab2ce['mailQueues']?_0x4ab2ce['mailQueues'][_0x1351f4('0x19b2')]:[],'crudPermissions':_0x4ab2ce['crudPermissions'],'realtime':![]}});}function _0x20c5fe(){const _0x3ae51c=_0x3c40cc;_0x26af73['go'](_0x3ae51c('0x23e5'),{},{'reload':'app.mail.mailQueues'});}function _0x4ed44c(){const _0x12a592=_0x3c40cc;_0x253be8[_0x12a592('0x251b')][_0x12a592('0x5ab')]({'id':_0x4ab2ce[_0x12a592('0x251b')]['id']},_0x4ab2ce[_0x12a592('0x251b')])[_0x12a592('0x1549')][_0x12a592('0x11bf')](function(){const _0x4e239f=_0x12a592;_0x270393[_0x4e239f('0x2693')]({'title':'MailQueue\x20updated!','msg':_0x4ab2ce[_0x4e239f('0x251b')]['name']?_0x4ab2ce['mailQueue'][_0x4e239f('0x1909')]+_0x4e239f('0xd7'):''});})[_0x12a592('0x151d')](function(_0x10835e){const _0x497b53=_0x12a592;_0x270393['error']({'title':_0x10835e[_0x497b53('0xff9')]?_0x497b53('0x574')+_0x10835e[_0x497b53('0xff9')]+_0x497b53('0xb0b')+_0x10835e[_0x497b53('0x212f')]:_0x497b53('0x13dc'),'msg':_0x10835e[_0x497b53('0x4e8')]?JSON['stringify'](_0x10835e['data']):_0x10835e[_0x497b53('0xaab')]()});});}}const _0x523aa3=_0x4e6aef;_0x402e8d[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0x2143'),'$state',_0x21d0f5('0x18fe'),_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),_0x21d0f5('0x17f5'),'$translate',_0x21d0f5('0xce'),'userProfile',_0x21d0f5('0x1d63'),'api',_0x21d0f5('0xda9'),_0x21d0f5('0x142d'),'Auth',_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1')];function _0x402e8d(_0x58f258,_0x4284aa,_0xb90ed0,_0x4de53b,_0x7bec16,_0x26b489,_0x5f4d04,_0x2a6dc9,_0x2b26ee,_0x571b9c,_0x29b00f,_0x3be7e2,_0x1e78d6,_0x418dc3,_0xcbb705,_0x470365,_0x29efd1){const _0xa55ab3=_0x21d0f5,_0x33c3f7=this;_0x33c3f7[_0xa55ab3('0x17ff')]=_0x470365,_0x33c3f7[_0xa55ab3('0x23e1')]=_0x29efd1,_0x33c3f7[_0xa55ab3('0x32a')]=_0xcbb705['getCurrentUser'](),_0x33c3f7[_0xa55ab3('0xce')]=_0x2b26ee||{'count':0x0,'rows':[]},_0x33c3f7['userProfile']=_0x571b9c,_0x33c3f7[_0xa55ab3('0x1d63')]=_0x29b00f&&_0x29b00f[_0xa55ab3('0x27d2')]==0x1?_0x29b00f['rows'][0x0]:null,_0x33c3f7[_0xa55ab3('0xb25')]=_0xcbb705[_0xa55ab3('0x1530')](_0x33c3f7['userProfileSection']?_0x33c3f7['userProfileSection'][_0xa55ab3('0xb25')]:null),_0x33c3f7[_0xa55ab3('0x13e8')]=_0xa55ab3('0xce'),_0x33c3f7['listOrder']='',_0x33c3f7[_0xa55ab3('0xe3c')]=null,_0x33c3f7[_0xa55ab3('0x19ad')]=[],_0x33c3f7['query']={'fields':'createdAt,updatedAt,id,name,strategy,timeout,description','sort':_0xa55ab3('0x1c74'),'channel':_0xa55ab3('0x2030'),'limit':0xa,'page':0x1},_0x33c3f7[_0xa55ab3('0x1612')]=_0x36f548()['keyBy']([{'option':_0xa55ab3('0x1ace'),'value':_0xa55ab3('0x16c6')},{'option':_0xa55ab3('0x2510'),'value':_0xa55ab3('0x166d')}],function(_0x5163cb){const _0x8dd572=_0xa55ab3;return _0x36f548()[_0x8dd572('0x814')](_0x5163cb[_0x8dd572('0x10cc')],new RegExp('\x27','g'),'');}),_0x33c3f7[_0xa55ab3('0x757')]=_0x595da7,_0x33c3f7['teamadddialog']=_0x28d422,_0x33c3f7['agentadddialog']=_0x2fbf98,_0x33c3f7['deleteconfirm']=_0xeabcdb,_0x33c3f7['gotorealtimegoto']=_0x48114e,_0x33c3f7[_0xa55ab3('0x2693')]=_0x538a70,_0x33c3f7[_0xa55ab3('0x179c')]=_0x184c6b,_0x33c3f7[_0xa55ab3('0xfb5')]=_0x3bb5e8,_0x33c3f7[_0xa55ab3('0xac9')]=_0x4a9ab2,_0x33c3f7[_0xa55ab3('0x1166')]=_0x21579f,_0x33c3f7[_0xa55ab3('0xc80')]=_0x2cd796,_0x33c3f7[_0xa55ab3('0x25c4')]=_0x571fba,_0x33c3f7['selectAllMailQueues']=_0x43d4c1;function _0x595da7(_0x87e8f9){const _0x1a75bb=_0xa55ab3;_0xb90ed0['go'](_0x1a75bb('0x14b'),{'id':_0x87e8f9['id'],'mailQueue':_0x87e8f9,'crudPermissions':_0x33c3f7[_0x1a75bb('0xb25')]});}function _0x28d422(_0x7e9e3b,_0xe2f752){const _0xe29d3b=_0xa55ab3;_0x7bec16[_0xe29d3b('0xb9')]({'controller':'MailQueueteamaddController','controllerAs':'vm','templateUrl':_0x2b39d2,'parent':angular[_0xe29d3b('0x1e73')](_0x26b489[_0xe29d3b('0x1d2')]),'targetEvent':_0xe2f752,'clickOutsideToClose':!![],'locals':{'mailQueue':_0x7e9e3b,'mailQueues':_0x33c3f7[_0xe29d3b('0xce')]?_0x33c3f7[_0xe29d3b('0xce')][_0xe29d3b('0x19b2')]:[],'crudPermissions':_0x33c3f7[_0xe29d3b('0xb25')]}});}function _0x2fbf98(_0x52bc03,_0x538cb0){const _0x53bc39=_0xa55ab3;_0x7bec16[_0x53bc39('0xb9')]({'controller':_0x53bc39('0x1e0e'),'controllerAs':'vm','templateUrl':_0x4cc0ba,'parent':angular[_0x53bc39('0x1e73')](_0x26b489[_0x53bc39('0x1d2')]),'targetEvent':_0x538cb0,'clickOutsideToClose':!![],'locals':{'mailQueue':_0x52bc03,'mailQueues':_0x33c3f7[_0x53bc39('0xce')]?_0x33c3f7['mailQueues']['rows']:[],'crudPermissions':_0x33c3f7['crudPermissions'],'realtime':![]}});}function _0xeabcdb(_0x4e5cc7,_0x45989d){const _0x152945=_0xa55ab3,_0x1a8e26=_0x7bec16[_0x152945('0x132b')]()[_0x152945('0x134b')](_0x152945('0x1796')+_0x36f548()[_0x152945('0x13cf')](_0x152945('0x251b'))+'?')['htmlContent'](_0x152945('0x2061')+(_0x4e5cc7['name']||_0x152945('0x251b'))+''+_0x152945('0x1a'))[_0x152945('0xb2e')](_0x152945('0xfef'))[_0x152945('0x1e25')](_0x45989d)['ok']('OK')['cancel'](_0x152945('0x772'));_0x7bec16['show'](_0x1a8e26)[_0x152945('0x11bf')](function(){_0x4a9ab2(_0x4e5cc7);},function(){const _0x1c1b73=_0x152945;console[_0x1c1b73('0xc78')](_0x1c1b73('0x772'));});}function _0x48114e(){const _0x48dddc=_0xa55ab3;if(_0xcbb705[_0x48dddc('0x4ee')](_0x48dddc('0xf45')))_0xb90ed0['go'](_0x48dddc('0x1833'),{});else return _0x3be7e2[_0x48dddc('0x1d63')][_0x48dddc('0xbaa')]({'userProfileId':_0xcbb705[_0x48dddc('0x2428')]()['userProfileId'],'sectionId':0x262})[_0x48dddc('0x1549')][_0x48dddc('0x11bf')](function(_0x251fa3){const _0x175db4=_0x48dddc,_0x481231=_0x251fa3&&_0x251fa3[_0x175db4('0x19b2')]?_0x251fa3[_0x175db4('0x19b2')][0x0]:null;_0x481231&&_0x481231['enabled']?_0xb90ed0['go']('app.mail.realtime.queues',{}):_0x418dc3[_0x175db4('0x870')]({'title':_0x2a6dc9[_0x175db4('0x10c2')](_0x175db4('0xbff')),'msg':_0x2a6dc9[_0x175db4('0x10c2')](_0x175db4('0x10d1'))});})['catch'](function(_0x42d3d0){const _0x3de0f2=_0x48dddc;_0x418dc3[_0x3de0f2('0x255')]({'title':_0x42d3d0[_0x3de0f2('0xff9')]?'API:'+_0x42d3d0['status']+_0x3de0f2('0xb0b')+_0x42d3d0[_0x3de0f2('0x212f')]:_0x3de0f2('0x1011'),'msg':_0x42d3d0[_0x3de0f2('0xff9')]?JSON[_0x3de0f2('0x3e')](_0x42d3d0[_0x3de0f2('0x4e8')]):_0x42d3d0[_0x3de0f2('0xaab')]()});});}let _0x12ae13=!![],_0x1beb72=0x1;_0x58f258[_0xa55ab3('0x2087')]('vm.query.filter',function(_0x870a8,_0x5566ca){const _0x32bbd2=_0xa55ab3;_0x12ae13?_0x5f4d04(function(){_0x12ae13=![];}):(!_0x5566ca&&(_0x1beb72=_0x33c3f7[_0x32bbd2('0x1f2a')]['page']),_0x870a8!==_0x5566ca&&(_0x33c3f7['query'][_0x32bbd2('0x1c2')]=0x1),!_0x870a8&&(_0x33c3f7[_0x32bbd2('0x1f2a')]['page']=_0x1beb72),_0x33c3f7[_0x32bbd2('0x179c')]());});function _0x538a70(_0x1b39ed){const _0x1df689=_0xa55ab3;_0x33c3f7[_0x1df689('0xce')]=_0x1b39ed||{'count':0x0,'rows':[]};}function _0x184c6b(){const _0x53f727=_0xa55ab3;_0x33c3f7['query']['offset']=(_0x33c3f7[_0x53f727('0x1f2a')][_0x53f727('0x1c2')]-0x1)*_0x33c3f7[_0x53f727('0x1f2a')]['limit'],_0xcbb705[_0x53f727('0x4ee')](_0x53f727('0xf45'))?_0x33c3f7[_0x53f727('0x13f')]=_0x3be7e2['mailQueue']['get'](_0x33c3f7[_0x53f727('0x1f2a')],_0x538a70)['$promise']:(_0x33c3f7[_0x53f727('0x1f2a')]['id']=_0x33c3f7[_0x53f727('0x25bc')]['id'],_0x33c3f7['query'][_0x53f727('0xe6')]='MailQueues',_0x33c3f7[_0x53f727('0x13f')]=_0x3be7e2['userProfile']['getResources'](_0x33c3f7[_0x53f727('0x1f2a')],_0x538a70)[_0x53f727('0x1549')]);}function _0x3bb5e8(_0x2da0b2,_0x57edf8){const _0x366d5e=_0xa55ab3;_0x7bec16[_0x366d5e('0xb9')]({'controller':_0x366d5e('0xc2a'),'controllerAs':'vm','templateUrl':_0x3fa7b8,'parent':angular['element'](_0x26b489[_0x366d5e('0x1d2')]),'targetEvent':_0x2da0b2,'clickOutsideToClose':!![],'locals':{'mailQueue':_0x57edf8,'mailQueues':_0x33c3f7[_0x366d5e('0xce')][_0x366d5e('0x19b2')],'license':_0x33c3f7[_0x366d5e('0x17ff')],'setting':_0x33c3f7['setting'],'crudPermissions':_0x33c3f7['crudPermissions']}});}function _0x4a9ab2(_0xc7a68){const _0x14cd14=_0xa55ab3;_0x3be7e2[_0x14cd14('0x251b')][_0x14cd14('0x2088')]({'id':_0xc7a68['id']})[_0x14cd14('0x1549')][_0x14cd14('0x11bf')](function(){const _0x4f2405=_0x14cd14;_0x36f548()[_0x4f2405('0x14a5')](_0x33c3f7[_0x4f2405('0xce')][_0x4f2405('0x19b2')],{'id':_0xc7a68['id']}),_0x33c3f7[_0x4f2405('0xce')]['count']-=0x1,!_0x33c3f7[_0x4f2405('0xce')][_0x4f2405('0x19b2')][_0x4f2405('0x1e22')]&&_0x33c3f7[_0x4f2405('0x179c')](),_0x418dc3[_0x4f2405('0x2693')]({'title':_0x36f548()[_0x4f2405('0x13cf')](_0x4f2405('0xb09'))+_0x4f2405('0x2113'),'msg':_0xc7a68[_0x4f2405('0x1909')]?_0xc7a68[_0x4f2405('0x1909')]+'\x20has\x20been\x20deleted!':''});})[_0x14cd14('0x151d')](function(_0x41914a){const _0x2967e9=_0x14cd14;if(_0x41914a[_0x2967e9('0x4e8')]&&_0x41914a[_0x2967e9('0x4e8')]['errors']&&_0x41914a['data'][_0x2967e9('0x120f')][_0x2967e9('0x1e22')]){_0x33c3f7[_0x2967e9('0x120f')]=_0x41914a['data'][_0x2967e9('0x120f')]||[{'message':_0x41914a['toString'](),'type':_0x2967e9('0x5ce')}];for(let _0x4a5742=0x0;_0x4a5742<_0x41914a[_0x2967e9('0x4e8')]['errors']['length'];_0x4a5742++){_0x418dc3[_0x2967e9('0x255')]({'title':_0x41914a[_0x2967e9('0x4e8')][_0x2967e9('0x120f')][_0x4a5742][_0x2967e9('0x19fd')],'msg':_0x41914a[_0x2967e9('0x4e8')]['errors'][_0x4a5742][_0x2967e9('0x1b86')]});}}else _0x418dc3['error']({'title':_0x41914a[_0x2967e9('0xff9')]?_0x2967e9('0x574')+_0x41914a[_0x2967e9('0xff9')]+_0x2967e9('0xb0b')+_0x41914a[_0x2967e9('0x212f')]:_0x2967e9('0x5ce'),'msg':_0x41914a[_0x2967e9('0x4e8')]?JSON[_0x2967e9('0x3e')](_0x41914a[_0x2967e9('0x4e8')]['message']):_0x41914a['message']||_0x41914a[_0x2967e9('0xaab')]()});});}function _0x21579f(){const _0x3c6702=_0xa55ab3,_0x4f4876=angular['copy'](_0x33c3f7[_0x3c6702('0x19ad')]);return _0x33c3f7['selectedMailQueues']=[],_0x4f4876;}function _0x2cd796(_0x4c2cf4){const _0x342eca=_0xa55ab3,_0x3f1723=_0x7bec16[_0x342eca('0x132b')]()[_0x342eca('0x134b')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20mailQueues?')['htmlContent'](_0x342eca('0x2061')+_0x33c3f7[_0x342eca('0x19ad')]['length']+_0x342eca('0xac6')+_0x342eca('0x1a'))[_0x342eca('0xb2e')]('delete\x20MailQueues')[_0x342eca('0x1e25')](_0x4c2cf4)['ok']('OK')[_0x342eca('0x26c9')](_0x342eca('0x772'));_0x7bec16[_0x342eca('0xb9')](_0x3f1723)[_0x342eca('0x11bf')](function(){const _0x2ba8a1=_0x342eca;_0x33c3f7[_0x2ba8a1('0x19ad')][_0x2ba8a1('0x1f88')](function(_0x24fbbb){_0x4a9ab2(_0x24fbbb);}),_0x33c3f7[_0x2ba8a1('0x19ad')]=[];});}function _0x571fba(){const _0x5579e4=_0xa55ab3;_0x33c3f7[_0x5579e4('0x19ad')]=[];}function _0x43d4c1(){const _0x1bd54a=_0xa55ab3;_0x33c3f7['selectedMailQueues']=_0x33c3f7[_0x1bd54a('0xce')][_0x1bd54a('0x19b2')];}}const _0x9b2416=_0x402e8d;_0xd19da3[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0xcbc'),_0x21d0f5('0x16b9'),_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0xb6b'),_0x21d0f5('0x142d'),_0x21d0f5('0x21b'),'mailSubstatus','api',_0x21d0f5('0x1150'),'license',_0x21d0f5('0x23e1'),_0x21d0f5('0xb25')];function _0xd19da3(_0x1d2799,_0x40ee91,_0x15675a,_0xcdd000,_0x3e2b82,_0xdae427,_0x40b08a,_0x2c4cb9,_0x13ce19,_0x49d453,_0x32d4ec,_0x3b0511,_0x7b262,_0x2e47b6){const _0x2370a3=_0x21d0f5,_0x3fb548=this;_0x3fb548[_0x2370a3('0x32a')]=_0x32d4ec[_0x2370a3('0x2428')](),_0x3fb548[_0x2370a3('0x120f')]=[],_0x3fb548['setting']=_0x7b262,_0x3fb548[_0x2370a3('0x17ff')]=_0x3b0511,_0x3fb548[_0x2370a3('0xb25')]=_0x2e47b6,_0x3fb548['hasModulePermissions']={},_0x3fb548[_0x2370a3('0x2834')]=_0x3fb548[_0x2370a3('0x23e1')]&&_0x3fb548[_0x2370a3('0x23e1')][_0x2370a3('0x1d4')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3fb548[_0x2370a3('0x134b')]=_0x2370a3('0x1db9'),_0x3fb548[_0x2370a3('0x1f96')]=angular[_0x2370a3('0x6fb')](_0x13ce19),_0x3fb548['mailSubtatuses']=_0x2c4cb9,_0x3fb548[_0x2370a3('0x19ee')]=![];!_0x3fb548[_0x2370a3('0x1f96')]&&(_0x3fb548[_0x2370a3('0x1f96')]={},_0x3fb548[_0x2370a3('0x134b')]=_0x2370a3('0x1327'),_0x3fb548['newMailSubstatus']=!![]);_0x3fb548[_0x2370a3('0x675')]=_0x286236,_0x3fb548[_0x2370a3('0x1f62')]=_0x83539,_0x3fb548[_0x2370a3('0x548')]=_0x44ce34,_0x3fb548[_0x2370a3('0x1bd1')]=_0x3a7dd1,_0x3fb548[_0x2370a3('0xc4e')]=_0x5dd545;function _0x286236(){const _0xa8c737=_0x2370a3;_0x3fb548[_0xa8c737('0x120f')]=[],_0x49d453[_0xa8c737('0x1f96')][_0xa8c737('0x259')](_0x3fb548[_0xa8c737('0x1f96')])[_0xa8c737('0x1549')][_0xa8c737('0x11bf')](function(_0x8786f2){const _0xf21810=_0xa8c737;_0x3fb548['mailSubtatuses']['unshift'](_0x8786f2[_0xf21810('0x2866')]()),_0x40b08a['success']({'title':_0xf21810('0x1447'),'msg':_0x3fb548['mailSubstatus'][_0xf21810('0x1909')]?_0x3fb548[_0xf21810('0x1f96')]['name']+_0xf21810('0x7fb'):''}),_0x5dd545(_0x8786f2);})[_0xa8c737('0x151d')](function(_0x841eb0){const _0x594fe4=_0xa8c737;if(_0x841eb0[_0x594fe4('0x4e8')]&&_0x841eb0['data'][_0x594fe4('0x120f')]&&_0x841eb0['data'][_0x594fe4('0x120f')][_0x594fe4('0x1e22')]){_0x3fb548[_0x594fe4('0x120f')]=_0x841eb0[_0x594fe4('0x4e8')][_0x594fe4('0x120f')]||[{'message':_0x841eb0['toString'](),'type':_0x594fe4('0x37')}];for(let _0x5b661c=0x0;_0x5b661c<_0x841eb0['data'][_0x594fe4('0x120f')][_0x594fe4('0x1e22')];_0x5b661c+=0x1){_0x40b08a[_0x594fe4('0x255')]({'title':_0x841eb0[_0x594fe4('0x4e8')][_0x594fe4('0x120f')][_0x5b661c][_0x594fe4('0x19fd')],'msg':_0x841eb0[_0x594fe4('0x4e8')]['errors'][_0x5b661c][_0x594fe4('0x1b86')]});}}else _0x40b08a[_0x594fe4('0x255')]({'title':_0x841eb0[_0x594fe4('0xff9')]?_0x594fe4('0x574')+_0x841eb0[_0x594fe4('0xff9')]+'\x20-\x20'+_0x841eb0[_0x594fe4('0x212f')]:'api.mailSubstatus.save','msg':_0x841eb0[_0x594fe4('0x4e8')]?JSON[_0x594fe4('0x3e')](_0x841eb0[_0x594fe4('0x4e8')][_0x594fe4('0x1b86')]):_0x841eb0[_0x594fe4('0xaab')]()});});}function _0x83539(){const _0x531305=_0x2370a3;_0x3fb548[_0x531305('0x120f')]=[],_0x49d453[_0x531305('0x1f96')][_0x531305('0x5ab')]({'id':_0x3fb548[_0x531305('0x1f96')]['id']},_0x3fb548[_0x531305('0x1f96')])['$promise']['then'](function(_0x5dfe2e){const _0x15ff85=_0x531305,_0x4f4098=_0x36f548()[_0x15ff85('0x1ad4')](_0x3fb548[_0x15ff85('0x21b')],{'id':_0x5dfe2e['id']});_0x4f4098&&_0x36f548()['merge'](_0x4f4098,_0x36f548()[_0x15ff85('0x258')](_0x5dfe2e['toJSON'](),_0x36f548()[_0x15ff85('0xe22')](_0x4f4098))),_0x40b08a[_0x15ff85('0x2693')]({'title':_0x15ff85('0x1329'),'msg':_0x3fb548['mailSubstatus'][_0x15ff85('0x1909')]?_0x3fb548[_0x15ff85('0x1f96')]['name']+_0x15ff85('0x1a78'):''}),_0x5dd545(_0x5dfe2e);})[_0x531305('0x151d')](function(_0x42b5fe){const _0x373aa0=_0x531305;if(_0x42b5fe[_0x373aa0('0x4e8')]&&_0x42b5fe[_0x373aa0('0x4e8')][_0x373aa0('0x120f')]&&_0x42b5fe[_0x373aa0('0x4e8')][_0x373aa0('0x120f')][_0x373aa0('0x1e22')]){_0x3fb548[_0x373aa0('0x120f')]=_0x42b5fe[_0x373aa0('0x4e8')][_0x373aa0('0x120f')]||[{'message':_0x42b5fe[_0x373aa0('0xaab')](),'type':_0x373aa0('0x187')}];for(let _0xb4595c=0x0;_0xb4595c<_0x42b5fe[_0x373aa0('0x4e8')][_0x373aa0('0x120f')][_0x373aa0('0x1e22')];_0xb4595c++){_0x40b08a['error']({'title':_0x42b5fe[_0x373aa0('0x4e8')][_0x373aa0('0x120f')][_0xb4595c][_0x373aa0('0x19fd')],'msg':_0x42b5fe[_0x373aa0('0x4e8')][_0x373aa0('0x120f')][_0xb4595c][_0x373aa0('0x1b86')]});}}else _0x40b08a[_0x373aa0('0x255')]({'title':_0x42b5fe['status']?_0x373aa0('0x574')+_0x42b5fe[_0x373aa0('0xff9')]+'\x20-\x20'+_0x42b5fe[_0x373aa0('0x212f')]:_0x373aa0('0x187'),'msg':_0x42b5fe[_0x373aa0('0x4e8')]?JSON[_0x373aa0('0x3e')](_0x42b5fe[_0x373aa0('0x4e8')][_0x373aa0('0x1b86')]):_0x42b5fe[_0x373aa0('0xaab')]()});});}function _0x44ce34(_0xb0d1f5){const _0xfba637=_0x2370a3;_0x3fb548[_0xfba637('0x120f')]=[];const _0x1d59d7=_0xcdd000['confirm']()[_0xfba637('0x134b')](_0xfba637('0x1fa9'))[_0xfba637('0x252a')](_0xfba637('0x1e85'))[_0xfba637('0xb2e')](_0xfba637('0x2818'))['ok']('Delete')[_0xfba637('0x26c9')]('Cancel')[_0xfba637('0x1e25')](_0xb0d1f5);_0xcdd000[_0xfba637('0xb9')](_0x1d59d7)[_0xfba637('0x11bf')](function(){const _0x393648=_0xfba637;_0x49d453[_0x393648('0x1f96')][_0x393648('0x2088')]({'id':_0x3fb548[_0x393648('0x1f96')]['id']})['$promise'][_0x393648('0x11bf')](function(){const _0x1a0840=_0x393648;_0x36f548()[_0x1a0840('0x14a5')](_0x3fb548['mailSubtatuses'],{'id':_0x3fb548['mailSubstatus']['id']}),_0x40b08a[_0x1a0840('0x2693')]({'title':_0x1a0840('0x252'),'msg':(_0x3fb548[_0x1a0840('0x1f96')][_0x1a0840('0x1909')]||_0x1a0840('0x1f96'))+_0x1a0840('0x433')}),_0x5dd545(_0x3fb548[_0x1a0840('0x1f96')]);})[_0x393648('0x151d')](function(_0x45a310){const _0x327958=_0x393648;if(_0x45a310[_0x327958('0x4e8')]&&_0x45a310[_0x327958('0x4e8')][_0x327958('0x120f')]&&_0x45a310['data']['errors'][_0x327958('0x1e22')]){_0x3fb548['errors']=_0x45a310[_0x327958('0x4e8')][_0x327958('0x120f')]||[{'message':_0x45a310[_0x327958('0xaab')](),'type':_0x327958('0x1ab8')}];for(let _0x1036ef=0x0;_0x1036ef<_0x45a310[_0x327958('0x4e8')][_0x327958('0x120f')][_0x327958('0x1e22')];_0x1036ef++){_0x40b08a[_0x327958('0x255')]({'title':_0x45a310[_0x327958('0x4e8')][_0x327958('0x120f')][_0x1036ef][_0x327958('0x19fd')],'msg':_0x45a310[_0x327958('0x4e8')][_0x327958('0x120f')][_0x1036ef][_0x327958('0x1b86')]});}}else _0x40b08a['error']({'title':_0x45a310[_0x327958('0xff9')]?_0x327958('0x574')+_0x45a310[_0x327958('0xff9')]+_0x327958('0xb0b')+_0x45a310['statusText']:_0x327958('0x1ab8'),'msg':_0x45a310[_0x327958('0x4e8')]?JSON[_0x327958('0x3e')](_0x45a310[_0x327958('0x4e8')]['message']):_0x45a310[_0x327958('0x1b86')]||_0x45a310[_0x327958('0xaab')]()});});},function(){});}function _0x3a7dd1(_0x5f3e7c){return _0x5f3e7c===null?undefined:new Date(_0x5f3e7c);}function _0x5dd545(_0x483ce0){const _0x3395e8=_0x2370a3;_0xcdd000[_0x3395e8('0x237e')](_0x483ce0);}}const _0x1e9075=_0xd19da3,_0x4f1731=_0x351988['p']+'src/js/modules/main/apps/mail/views/mailSubtatuses/create/dialog.html/dialog.html';_0x2350ab[_0x21d0f5('0x1e9a')]=['$scope',_0x21d0f5('0x2143'),_0x21d0f5('0xcbc'),_0x21d0f5('0x18fe'),_0x21d0f5('0x1ca2'),'$document',_0x21d0f5('0x17f5'),_0x21d0f5('0xb6b'),_0x21d0f5('0x21b'),_0x21d0f5('0x25bc'),_0x21d0f5('0x1d63'),_0x21d0f5('0x12a5'),_0x21d0f5('0xda9'),_0x21d0f5('0x142d'),'Auth',_0x21d0f5('0x17ff'),'setting'];function _0x2350ab(_0x543c47,_0x25e6bc,_0x2dfe78,_0x2c5fd6,_0x1f1950,_0xc262da,_0x563376,_0x594be4,_0x5286c8,_0x298dea,_0x1ec392,_0x2a9a11,_0x30b52c,_0x328f10,_0x1eb7ef,_0x1a7a69,_0xd3768){const _0x2bd48c=_0x21d0f5,_0x2ed12e=this;_0x2ed12e[_0x2bd48c('0x17ff')]=_0x1a7a69,_0x2ed12e[_0x2bd48c('0x23e1')]=_0xd3768,_0x2ed12e[_0x2bd48c('0x32a')]=_0x1eb7ef[_0x2bd48c('0x2428')](),_0x2ed12e[_0x2bd48c('0x21b')]=_0x5286c8||{'count':0x0,'rows':[]},_0x2ed12e[_0x2bd48c('0x25bc')]=_0x298dea,_0x2ed12e[_0x2bd48c('0x1d63')]=_0x1ec392&&_0x1ec392['count']==0x1?_0x1ec392[_0x2bd48c('0x19b2')][0x0]:null,_0x2ed12e['crudPermissions']=_0x1eb7ef[_0x2bd48c('0x1530')](_0x2ed12e[_0x2bd48c('0x1d63')]?_0x2ed12e[_0x2bd48c('0x1d63')][_0x2bd48c('0xb25')]:null),_0x2ed12e[_0x2bd48c('0x13e8')]=_0x2bd48c('0x21b'),_0x2ed12e[_0x2bd48c('0x724')]='',_0x2ed12e[_0x2bd48c('0xe3c')]=null,_0x2ed12e[_0x2bd48c('0xc9d')]=[],_0x2ed12e[_0x2bd48c('0x1f2a')]={'fields':_0x2bd48c('0x219a'),'sort':'-updatedAt','limit':0xa,'page':0x1},_0x2ed12e[_0x2bd48c('0xc03')]=_0x1f3817,_0x2ed12e['deleteconfirm']=_0x39a727,_0x2ed12e[_0x2bd48c('0x2693')]=_0x58e3ee,_0x2ed12e['getMailSubstatuses']=_0x43acfa,_0x2ed12e[_0x2bd48c('0x1d93')]=_0x5c72bf,_0x2ed12e[_0x2bd48c('0x548')]=_0x3f6dc8,_0x2ed12e[_0x2bd48c('0x22ab')]=_0x4e772c,_0x2ed12e[_0x2bd48c('0x1ff8')]=_0x2660ed,_0x2ed12e['deselectMailSubstatuses']=_0x34d39b,_0x2ed12e[_0x2bd48c('0x2355')]=_0x104b53;function _0x1f3817(_0x44f616,_0x1888f0){const _0x3e7f68=_0x2bd48c;_0x1f1950[_0x3e7f68('0xb9')]({'controller':'CreateOrEditMailSubstatusDialogController','controllerAs':'vm','templateUrl':_0x4f1731,'parent':angular[_0x3e7f68('0x1e73')](_0xc262da['body']),'targetEvent':_0x1888f0,'clickOutsideToClose':!![],'locals':{'mailSubstatus':_0x44f616,'mailSubtatuses':_0x2ed12e[_0x3e7f68('0x21b')][_0x3e7f68('0x19b2')],'license':_0x2ed12e[_0x3e7f68('0x17ff')],'setting':null,'crudPermissions':_0x2ed12e[_0x3e7f68('0xb25')]}});}function _0x39a727(_0x34e98e,_0x38a4dd){const _0x526fff=_0x2bd48c,_0x251c28=_0x1f1950['confirm']()[_0x526fff('0x134b')](_0x526fff('0x1796')+_0x36f548()[_0x526fff('0x13cf')](_0x526fff('0x1f96'))+'?')[_0x526fff('0x1d03')](_0x526fff('0x2061')+(_0x34e98e[_0x526fff('0x1909')]||_0x526fff('0x1f96'))+''+_0x526fff('0x1a'))[_0x526fff('0xb2e')](_0x526fff('0x18e4'))[_0x526fff('0x1e25')](_0x38a4dd)['ok']('OK')['cancel'](_0x526fff('0x772'));_0x1f1950[_0x526fff('0xb9')](_0x251c28)[_0x526fff('0x11bf')](function(){_0x3f6dc8(_0x34e98e);},function(){const _0x33d775=_0x526fff;console[_0x33d775('0xc78')](_0x33d775('0x772'));});}let _0x1e0623=!![],_0x13b245=0x1;_0x543c47[_0x2bd48c('0x2087')](_0x2bd48c('0x842'),function(_0x15eced,_0x1f76cf){const _0x4a83c3=_0x2bd48c;_0x1e0623?_0x563376(function(){_0x1e0623=![];}):(!_0x1f76cf&&(_0x13b245=_0x2ed12e['query'][_0x4a83c3('0x1c2')]),_0x15eced!==_0x1f76cf&&(_0x2ed12e[_0x4a83c3('0x1f2a')]['page']=0x1),!_0x15eced&&(_0x2ed12e[_0x4a83c3('0x1f2a')]['page']=_0x13b245),_0x2ed12e['getMailSubstatuses']());});function _0x58e3ee(_0x4cf259){const _0x1a6fd0=_0x2bd48c;_0x2ed12e[_0x1a6fd0('0x21b')]=_0x4cf259||{'count':0x0,'rows':[]};}function _0x43acfa(){const _0x58575a=_0x2bd48c;_0x2ed12e['query'][_0x58575a('0x1393')]=(_0x2ed12e['query'][_0x58575a('0x1c2')]-0x1)*_0x2ed12e[_0x58575a('0x1f2a')][_0x58575a('0xd5c')],_0x1eb7ef['hasRole'](_0x58575a('0xf45'))?_0x2ed12e['promise']=_0x2a9a11[_0x58575a('0x1f96')]['get'](_0x2ed12e[_0x58575a('0x1f2a')],_0x58e3ee)[_0x58575a('0x1549')]:(_0x2ed12e[_0x58575a('0x1f2a')]['id']=_0x2ed12e[_0x58575a('0x25bc')]['id'],_0x2ed12e[_0x58575a('0x1f2a')]['section']=_0x58575a('0x394'),_0x2ed12e[_0x58575a('0x13f')]=_0x2a9a11[_0x58575a('0x25bc')][_0x58575a('0x228e')](_0x2ed12e[_0x58575a('0x1f2a')],_0x58e3ee)['$promise']);}function _0x5c72bf(_0x1f138c,_0x597407){const _0x575861=_0x2bd48c;_0x1f1950[_0x575861('0xb9')]({'controller':_0x575861('0x1228'),'controllerAs':'vm','templateUrl':_0x4f1731,'parent':angular[_0x575861('0x1e73')](_0xc262da[_0x575861('0x1d2')]),'targetEvent':_0x1f138c,'clickOutsideToClose':!![],'locals':{'mailSubstatus':_0x597407,'mailSubtatuses':_0x2ed12e[_0x575861('0x21b')][_0x575861('0x19b2')],'license':_0x2ed12e[_0x575861('0x17ff')],'setting':_0x2ed12e[_0x575861('0x23e1')],'crudPermissions':_0x2ed12e['crudPermissions']}});}function _0x3f6dc8(_0x3f6afe){const _0x4e1bc0=_0x2bd48c;_0x2a9a11[_0x4e1bc0('0x1f96')]['delete']({'id':_0x3f6afe['id']})[_0x4e1bc0('0x1549')]['then'](function(){const _0x874bd=_0x4e1bc0;_0x36f548()[_0x874bd('0x14a5')](_0x2ed12e[_0x874bd('0x21b')][_0x874bd('0x19b2')],{'id':_0x3f6afe['id']}),_0x2ed12e[_0x874bd('0x21b')][_0x874bd('0x27d2')]-=0x1,!_0x2ed12e[_0x874bd('0x21b')][_0x874bd('0x19b2')][_0x874bd('0x1e22')]&&_0x2ed12e[_0x874bd('0xbf4')](),_0x328f10[_0x874bd('0x2693')]({'title':_0x36f548()['startCase'](_0x874bd('0x2023'))+'\x20deleted!','msg':_0x3f6afe[_0x874bd('0x1909')]?_0x3f6afe[_0x874bd('0x1909')]+'\x20has\x20been\x20deleted!':''});})[_0x4e1bc0('0x151d')](function(_0xf22c0a){const _0x10b34a=_0x4e1bc0;if(_0xf22c0a[_0x10b34a('0x4e8')]&&_0xf22c0a[_0x10b34a('0x4e8')][_0x10b34a('0x120f')]&&_0xf22c0a[_0x10b34a('0x4e8')][_0x10b34a('0x120f')][_0x10b34a('0x1e22')]){_0x2ed12e['errors']=_0xf22c0a[_0x10b34a('0x4e8')][_0x10b34a('0x120f')]||[{'message':_0xf22c0a[_0x10b34a('0xaab')](),'type':_0x10b34a('0x1fda')}];for(let _0x389dda=0x0;_0x389dda<_0xf22c0a[_0x10b34a('0x4e8')][_0x10b34a('0x120f')][_0x10b34a('0x1e22')];_0x389dda++){_0x328f10['error']({'title':_0xf22c0a[_0x10b34a('0x4e8')]['errors'][_0x389dda][_0x10b34a('0x19fd')],'msg':_0xf22c0a[_0x10b34a('0x4e8')][_0x10b34a('0x120f')][_0x389dda][_0x10b34a('0x1b86')]});}}else _0x328f10[_0x10b34a('0x255')]({'title':_0xf22c0a[_0x10b34a('0xff9')]?_0x10b34a('0x574')+_0xf22c0a[_0x10b34a('0xff9')]+_0x10b34a('0xb0b')+_0xf22c0a[_0x10b34a('0x212f')]:_0x10b34a('0x1fda'),'msg':_0xf22c0a['data']?JSON[_0x10b34a('0x3e')](_0xf22c0a['data'][_0x10b34a('0x1b86')]):_0xf22c0a['message']||_0xf22c0a[_0x10b34a('0xaab')]()});});}function _0x4e772c(){const _0x3506d3=_0x2bd48c,_0x11af22=angular[_0x3506d3('0x6fb')](_0x2ed12e[_0x3506d3('0xc9d')]);return _0x2ed12e[_0x3506d3('0xc9d')]=[],_0x11af22;}function _0x2660ed(_0x15fb83){const _0x5ff002=_0x2bd48c,_0x3d9d29=_0x1f1950[_0x5ff002('0x132b')]()[_0x5ff002('0x134b')](_0x5ff002('0x1b0a'))[_0x5ff002('0x1d03')](_0x5ff002('0x2061')+_0x2ed12e[_0x5ff002('0xc9d')][_0x5ff002('0x1e22')]+_0x5ff002('0xac6')+_0x5ff002('0x1a'))[_0x5ff002('0xb2e')](_0x5ff002('0x21be'))[_0x5ff002('0x1e25')](_0x15fb83)['ok']('OK')[_0x5ff002('0x26c9')](_0x5ff002('0x772'));_0x1f1950[_0x5ff002('0xb9')](_0x3d9d29)[_0x5ff002('0x11bf')](function(){const _0x293a77=_0x5ff002;_0x2ed12e[_0x293a77('0xc9d')][_0x293a77('0x1f88')](function(_0x3e34ee){_0x3f6dc8(_0x3e34ee);}),_0x2ed12e[_0x293a77('0xc9d')]=[];});}function _0x34d39b(){const _0x156ee2=_0x2bd48c;_0x2ed12e[_0x156ee2('0xc9d')]=[];}function _0x104b53(){const _0x2037f7=_0x2bd48c;_0x2ed12e['selectedMailSubstatuses']=_0x2ed12e[_0x2037f7('0x21b')][_0x2037f7('0x19b2')];}}const _0x1ded00=_0x2350ab;_0x519e8f['$inject']=[_0x21d0f5('0x13d6'),_0x21d0f5('0xc3e')];function _0x519e8f(_0x3b2f22,_0x95ec4a){const _0x2aac10=_0x21d0f5;_0x3b2f22['state'](_0x2aac10('0x265b'),{'abstract':!![],'url':_0x2aac10('0x1bdd')})[_0x2aac10('0x2124')](_0x2aac10('0x23e5'),{'url':_0x2aac10('0x1b0b'),'views':{'content@app':{'templateUrl':_0x2fc3d8,'controller':_0x2aac10('0x6f6')}},'resolve':{'mailQueues':[_0x2aac10('0x218e'),_0x2aac10('0x1150'),function(_0x3ef932,_0x5aa081){const _0x4877ae=_0x2aac10;return _0x5aa081[_0x4877ae('0x4ee')]('admin')?_0x3ef932[_0x4877ae('0xa28')](_0x4877ae('0x12e'),{'fields':'createdAt,updatedAt,id,name,strategy,timeout,description','sort':'-updatedAt','channel':'mail','limit':0xa,'offset':0x0}):_0x3ef932[_0x4877ae('0xa28')](_0x4877ae('0xb0d'),{'id':_0x5aa081['getCurrentUser']()['userProfileId'],'section':_0x4877ae('0x9af'),'fields':_0x4877ae('0xe24'),'sort':_0x4877ae('0x1c74'),'channel':_0x4877ae('0x2030'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x2aac10('0x218e'),_0x2aac10('0x1150'),function(_0x306646,_0x3d8658){const _0x34d168=_0x2aac10;return _0x3d8658[_0x34d168('0x4ee')](_0x34d168('0xf45'))?null:_0x306646[_0x34d168('0xa28')](_0x34d168('0x428'),{'fields':'id,name,crudPermissions','id':_0x3d8658[_0x34d168('0x2428')]()[_0x34d168('0x781')]});}],'userProfileSection':['apiResolver',_0x2aac10('0x1150'),function(_0x5815fb,_0x111a3d){const _0x28b535=_0x2aac10;return _0x111a3d['hasRole'](_0x28b535('0xf45'))?null:_0x5815fb[_0x28b535('0xa28')](_0x28b535('0x2762'),{'fields':_0x28b535('0x36d'),'userProfileId':_0x111a3d[_0x28b535('0x2428')]()['userProfileId'],'sectionId':0x259});}]},'authenticate':!![],'permissionId':0x259,'bodyClass':_0x2aac10('0x2030')})[_0x2aac10('0x2124')]('app.mail.mailQueues.edit',{'url':_0x2aac10('0x142b'),'params':{'mailQueue':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x58f0d4,'controller':_0x2aac10('0x230f')}},'resolve':{'mailQueue':['apiResolver',_0x2aac10('0x1573'),function(_0x1425f8,_0x39ea7d){const _0x3679f5=_0x2aac10;return _0x1425f8[_0x3679f5('0xa28')]('mailQueue@get',{'fields':_0x3679f5('0xe24'),'id':_0x39ea7d['id']});}],'userProfileSection':[_0x2aac10('0x218e'),_0x2aac10('0x1150'),function(_0x234807,_0x369fce){const _0x565eea=_0x2aac10;return _0x234807[_0x565eea('0xa28')](_0x565eea('0x2762'),{'fields':_0x565eea('0x36d'),'userProfileId':_0x369fce[_0x565eea('0x2428')]()['userProfileId'],'sectionId':0x259});}]},'authenticate':!![],'permissionId':0x259,'bodyClass':'mail'})['state'](_0x2aac10('0x15ec'),{'url':'/mailAccounts','views':{'content@app':{'templateUrl':_0x55fb29,'controller':_0x2aac10('0x1f28')}},'resolve':{'mailAccounts':['apiResolver',_0x2aac10('0x1150'),function(_0x505ef0,_0x4f81ac){const _0x29d620=_0x2aac10;return _0x4f81ac[_0x29d620('0x4ee')](_0x29d620('0xf45'))?_0x505ef0['resolve']('mailAccount@get',{'fields':_0x29d620('0x2f4'),'sort':_0x29d620('0x1c74'),'limit':0xa,'offset':0x0}):_0x505ef0[_0x29d620('0xa28')](_0x29d620('0xb0d'),{'id':_0x4f81ac['getCurrentUser']()[_0x29d620('0x781')],'section':_0x29d620('0x48d'),'fields':_0x29d620('0x2f4'),'sort':_0x29d620('0x1c74'),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x2aac10('0x1150'),function(_0xd0b7b0,_0x24bce9){const _0x3a8edb=_0x2aac10;return _0x24bce9[_0x3a8edb('0x4ee')](_0x3a8edb('0xf45'))?null:_0xd0b7b0[_0x3a8edb('0xa28')](_0x3a8edb('0x428'),{'fields':'id,name,crudPermissions','id':_0x24bce9[_0x3a8edb('0x2428')]()['userProfileId']});}],'userProfileSection':['apiResolver',_0x2aac10('0x1150'),function(_0x4b0ba1,_0x493884){const _0x7dc673=_0x2aac10;return _0x493884[_0x7dc673('0x4ee')]('admin')?null:_0x4b0ba1[_0x7dc673('0xa28')](_0x7dc673('0x2762'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x493884[_0x7dc673('0x2428')]()[_0x7dc673('0x781')],'sectionId':0x25a});}]},'authenticate':!![],'permissionId':0x25a,'bodyClass':'mail'})[_0x2aac10('0x2124')](_0x2aac10('0x1c41'),{'url':_0x2aac10('0x142b'),'params':{'mailAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x27e1e2,'controller':'MailAccountController\x20as\x20vm'}},'resolve':{'mailAccount':[_0x2aac10('0x218e'),_0x2aac10('0x1573'),function(_0x26c19d,_0x214ccf){const _0x51f880=_0x2aac10;return _0x26c19d['resolve'](_0x51f880('0x3f0'),{'fields':'createdAt,updatedAt,id,name,key,email,ListId,active,cservice,Imap.service,Imap.host,Imap.port,Imap.tls,Imap.authentication,Imap.user,Imap.password,Imap.mailbox,Imap.connTimeout,Imap.authTimeout,Smtp.service,Smtp.host,Smtp.port,Smtp.secure,Smtp.authentication,Smtp.user,Smtp.pass,cauthentication,cuser,cpassword,fontFamily,fontSize,template,markAsUnread,waitForTheAssignedAgent,mandatoryDisposition,mandatoryDispositionPauseId,description,notificationSound,notificationShake,notificationTemplate,queueTransfer,queueTransferTimeout,agentTransfer,agentTransferTimeout','id':_0x214ccf['id']});}],'userProfileSection':[_0x2aac10('0x218e'),_0x2aac10('0x1150'),function(_0x37cbfd,_0x22645b){const _0x21e04e=_0x2aac10;return _0x37cbfd[_0x21e04e('0xa28')](_0x21e04e('0x2762'),{'fields':_0x21e04e('0x36d'),'userProfileId':_0x22645b[_0x21e04e('0x2428')]()[_0x21e04e('0x781')],'sectionId':0x25a});}]},'authenticate':!![],'permissionId':0x25a,'bodyClass':_0x2aac10('0x2030')})[_0x2aac10('0x2124')]('app.mail.mailSubtatuses',{'url':_0x2aac10('0x1ecd'),'views':{'content@app':{'templateUrl':_0x4ccb77,'controller':_0x2aac10('0x27dd')}},'resolve':{'mailSubtatuses':[_0x2aac10('0x218e'),function(_0x56db20){const _0x3c74c0=_0x2aac10;return _0x56db20[_0x3c74c0('0xa28')]('mailSubstatus@get',{'fields':_0x3c74c0('0x219a'),'sort':_0x3c74c0('0x1c74'),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x2aac10('0x1150'),function(_0x28391b,_0x19676e){const _0x2d16d5=_0x2aac10;return _0x19676e[_0x2d16d5('0x4ee')](_0x2d16d5('0xf45'))?null:_0x28391b['resolve'](_0x2d16d5('0x428'),{'fields':_0x2d16d5('0xd30'),'id':_0x19676e[_0x2d16d5('0x2428')]()[_0x2d16d5('0x781')]});}],'userProfileSection':[_0x2aac10('0x218e'),_0x2aac10('0x1150'),function(_0x4ee105,_0x3462db){const _0x56f7ae=_0x2aac10;return _0x3462db[_0x56f7ae('0x4ee')]('admin')?null:_0x4ee105[_0x56f7ae('0xa28')](_0x56f7ae('0x2762'),{'fields':_0x56f7ae('0x36d'),'userProfileId':_0x3462db[_0x56f7ae('0x2428')]()[_0x56f7ae('0x781')],'sectionId':0x25b});}]},'authenticate':!![],'permissionId':0x25b,'bodyClass':'mail'}),_0x95ec4a[_0x2aac10('0x471')](_0x2aac10('0x57d'));}angular[_0x21d0f5('0x2768')]('app.mail',[_0x21d0f5('0x22d5'),_0x21d0f5('0x1fb3'),_0x21d0f5('0x3c4'),_0x21d0f5('0x2414'),_0x21d0f5('0xd61'),'ckeditor',_0x21d0f5('0x24a2'),_0x21d0f5('0x446'),_0x21d0f5('0x113d'),'mdPickers',_0x21d0f5('0x29b'),_0x21d0f5('0xc46'),_0x21d0f5('0x950'),_0x21d0f5('0xf49'),_0x21d0f5('0x31e'),_0x21d0f5('0xed9'),_0x21d0f5('0x2625'),_0x21d0f5('0x1622'),_0x21d0f5('0x1584'),_0x21d0f5('0xf7f'),_0x21d0f5('0x8d4')])[_0x21d0f5('0x53a')](_0x519e8f)['controller'](_0x21d0f5('0x160e'),_0x11948c)['controller'](_0x21d0f5('0x3f7'),_0x10191f)[_0x21d0f5('0x23eb')](_0x21d0f5('0x26e2'),_0x2b703f)[_0x21d0f5('0x23eb')](_0x21d0f5('0x3bf'),_0x55cd55)[_0x21d0f5('0x23eb')](_0x21d0f5('0x1c60'),_0x4ad6c3)[_0x21d0f5('0x23eb')]('EditMailAccountAppcloseDialogController',_0x1f37e8)[_0x21d0f5('0x23eb')](_0x21d0f5('0x261a'),_0x1cc02e)[_0x21d0f5('0x23eb')]('EditMailAccountAppgotopDialogController',_0x5c1023)[_0x21d0f5('0x23eb')]('EditMailAccountAppintervalDialogController',_0x5a7b0d)[_0x21d0f5('0x23eb')](_0x21d0f5('0x2688'),_0x26b356)['controller'](_0x21d0f5('0x109d'),_0x2166e2)['controller'](_0x21d0f5('0xa88'),_0x2dbc85)[_0x21d0f5('0x23eb')](_0x21d0f5('0x79e'),_0x1dbf93)[_0x21d0f5('0x23eb')](_0x21d0f5('0x2471'),_0x7d2cb4)[_0x21d0f5('0x23eb')](_0x21d0f5('0x24cf'),_0x4c90f9)['controller'](_0x21d0f5('0x486'),_0x3e72cd)['controller'](_0x21d0f5('0x7c0'),_0x51cf74)[_0x21d0f5('0x23eb')](_0x21d0f5('0x877'),_0x14cdd0)[_0x21d0f5('0x23eb')](_0x21d0f5('0x1382'),_0x32d331)[_0x21d0f5('0x23eb')](_0x21d0f5('0xc2a'),_0x12b924)[_0x21d0f5('0x23eb')](_0x21d0f5('0x1e0e'),_0x5e6d8c)[_0x21d0f5('0x23eb')](_0x21d0f5('0x97'),_0x205cf1)['controller']('MailQueueController',_0x523aa3)['controller'](_0x21d0f5('0x13e3'),_0x9b2416)['controller'](_0x21d0f5('0x1228'),_0x1e9075)['controller']('MailSubstatusesController',_0x1ded00);const _0x320bed=_0x351988['p']+_0x21d0f5('0xcdf'),_0x1ec5dc=_0x351988['p']+_0x21d0f5('0x10f2'),_0x58df26=_0x351988['p']+'src/js/modules/main/apps/sms/views/realtime/queues/view.html/view.html';_0x18cc6f[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),'$q','$timeout',_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),_0x21d0f5('0x2212'),'pauses',_0x21d0f5('0x1401'),_0x21d0f5('0xaa0'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1d56'),'toasty',_0x21d0f5('0x927'),'userProfile','userProfileSection',_0x21d0f5('0x1150'),_0x21d0f5('0x17ff'),_0x21d0f5('0x1fd')];function _0x18cc6f(_0x469694,_0x2d3d0f,_0x5a4918,_0xd330f4,_0x3ad489,_0x301928,_0x333b61,_0x5b1931,_0x2a447e,_0xc240ba,_0x47fe40,_0x1672c1,_0x527e00,_0x5ee7fa,_0x3ad688,_0x5cd9e1,_0x318c76,_0x3a1db2){const _0x432996=_0x21d0f5,_0x5cfa4f=this,_0xb0824c=[_0x432996('0x88'),_0x432996('0x81c'),'lastLoginAt',_0x432996('0x1e10'),_0x432996('0x2628'),_0x432996('0x1e10'),'internal','address',_0x432996('0x13c9'),'openchannelPause','mailPause',_0x432996('0x55e'),_0x432996('0x1ed1'),_0x432996('0x2501'),_0x432996('0x20d'),'chatCapacity','openchannelCapacity',_0x432996('0x2271'),'smsCapacity',_0x432996('0xf0d'),_0x432996('0x790'),'chatCurrentCapacity',_0x432996('0x1a2e'),_0x432996('0x10a2'),'smsCurrentCapacity',_0x432996('0xa81'),_0x432996('0x21d4'),_0x432996('0x1572'),_0x432996('0x19c0'),_0x432996('0x1683'),_0x432996('0x245c'),_0x432996('0x14d4'),_0x432996('0x8dd'),'voiceStatus',_0x432996('0xe6a'),_0x432996('0x22cb'),_0x432996('0x1bab'),'smsStatusTime','whatsappStatusTime',_0x432996('0x1ce2'),_0x432996('0x24e5'),'queue',_0x432996('0x1562'),_0x432996('0xcb7'),_0x432996('0x15e0'),'phoneBarEnableAutomaticScreenRecording'],_0x4ae491=['chatPause',_0x432996('0xfc0'),_0x432996('0x1f53'),_0x432996('0x55e'),'whatsappPause','faxPause',_0x432996('0x20d'),_0x432996('0x81c')];_0x5cfa4f[_0x432996('0x32a')]=_0x5cd9e1[_0x432996('0x2428')](),_0x5cfa4f[_0x432996('0x1391')]=['ringing',_0x432996('0x1218'),_0x432996('0x23a3'),_0x432996('0x26ac'),_0x432996('0x753')],_0x5cfa4f['pauses']=_0x333b61||{'count':0x0,'rows':[]},_0x5cfa4f[_0x432996('0x17ff')]=_0x318c76,_0x5cfa4f[_0x432996('0x25bc')]=_0x5ee7fa,_0x5cfa4f['userProfileSection']=_0x3ad688&&_0x3ad688[_0x432996('0x27d2')]==0x1?_0x3ad688[_0x432996('0x19b2')][0x0]:null,_0x5cfa4f['crudPermissions']=_0x5cd9e1[_0x432996('0x1530')](_0x5cfa4f[_0x432996('0x1d63')]?_0x5cfa4f[_0x432996('0x1d63')][_0x432996('0xb25')]:null),_0x5cfa4f[_0x432996('0x1401')]=_0x5b1931?_0x36f548()[_0x432996('0x2130')](_0x5b1931[_0x432996('0x19b2')]?_0x5b1931[_0x432996('0x19b2')]:[],'id'):{},_0x5cfa4f['rpcAgents']=_0x2a447e?_0x36f548()[_0x432996('0x2130')](_0x2a447e[_0x432996('0x19b2')]?_0x2a447e['rows']:[],'id'):{},_0x5cfa4f[_0x432996('0x18bd')]={},_0x5cfa4f[_0x432996('0x215b')]=![],_0x5cfa4f[_0x432996('0x59')]=[],_0x5cfa4f['agentInternal']={};for(const _0x3d06d5 in _0x5cfa4f['agents']){typeof _0x5cfa4f[_0x432996('0x1401')][_0x3d06d5]!==_0x432996('0x13e9')&&(_0x5cfa4f['agents'][_0x3d06d5]['init']=!![]);}_0x5cfa4f[_0x432996('0x1f2a')]={'limit':0xa,'page':0x1,'order':_0x432996('0x27af'),'globalStatusFilter':'','pauseTypeFilter':''},_0x5cfa4f[_0x432996('0x18f7')]=_0x48f9b5,_0x5cfa4f['queueAdd']=_0xeb21c9,_0x5cfa4f[_0x432996('0x92a')]=_0x3c476a,_0x5cfa4f[_0x432996('0x1ab7')]=_0x5b3227,_0x5cfa4f['showInfo']=_0x5d3d37,_0x5cfa4f[_0x432996('0x12e5')]=_0x3bdd9e,_0x5cfa4f[_0x432996('0x11a2')]=_0x349b6a,_0x5cfa4f[_0x432996('0x1191')]=_0x44458b,_0x5cfa4f['checkPause']=_0x2dd8be,_0x5cfa4f[_0x432996('0x2384')]=_0x22c85e,_0x5cfa4f[_0x432996('0xc8f')]=_0x51d7db,_0x5cfa4f[_0x432996('0xfdd')]=_0x2a09ec,_0x5cfa4f[_0x432996('0x277c')]=_0x31e0dc,_0x5cfa4f[_0x432996('0x1e2e')]=_0x3cf4a3,_0x5cfa4f[_0x432996('0x162a')]=_0x1ed053,_0x5cfa4f[_0x432996('0x1520')]=_0x478b38,_0x47fe40['on'](_0x432996('0x1ce9'),_0x5cfa4f[_0x432996('0xc8f')]),_0x47fe40['on'](_0x432996('0x15bd'),_0x5cfa4f[_0x432996('0xfdd')]),_0x47fe40['on'](_0x432996('0x90c'),_0x5cfa4f[_0x432996('0x1e2e')]),_0x47fe40['on'](_0x432996('0xffb'),_0x5cfa4f[_0x432996('0x162a')]),_0x31e0dc();let _0x197a92=_0x3a1db2(function(){const _0xc5acec=_0x432996;_0x5cfa4f['load']&&(_0x5cfa4f[_0xc5acec('0x215b')]=![],_0x31e0dc());},0x3e7);function _0x31e0dc(){const _0x4bbd67=_0x432996;_0x5cfa4f[_0x4bbd67('0x215b')]=![];const _0x5b61d1=_0x2d3d0f[_0x4bbd67('0xa93')]();_0x5cfa4f[_0x4bbd67('0x13f')]=_0x5b61d1[_0x4bbd67('0x13f')],_0x5cfa4f[_0x4bbd67('0x15f2')]=[],_0x5cfa4f['order']=[],_0x36f548()[_0x4bbd67('0x41e')](_0x5cfa4f[_0x4bbd67('0x1401')],function(_0xa84f0c,_0x1ce8b3){const _0x531cd7=_0x4bbd67;_0x5cfa4f[_0x531cd7('0xaa0')][_0x1ce8b3]&&_0x36f548()[_0x531cd7('0x47b')](_0xa84f0c,_0x36f548()[_0x531cd7('0x258')](_0x36f548()[_0x531cd7('0x196f')](_0x5cfa4f[_0x531cd7('0xaa0')][_0x1ce8b3],_0x4ae491),_0xb0824c)),_0x349b6a(_0xa84f0c),_0xa84f0c[_0x531cd7('0x81c')]?(_0x5cfa4f[_0x531cd7('0x15f2')][_0x531cd7('0x105d')](_0xa84f0c),_0x5cfa4f[_0x531cd7('0x14fd')][_0xa84f0c[_0x531cd7('0x1a04')]]=_0x1ce8b3):_0xa84f0c[_0x531cd7('0xd4')]=_0x36f548()[_0x531cd7('0x17c2')](_0x57d4d1()()[_0x531cd7('0x1826')]('x'));});_0x5cfa4f[_0x4bbd67('0x1f2a')][_0x4bbd67('0x270')]&&_0x36f548()[_0x4bbd67('0x14a5')](_0x5cfa4f[_0x4bbd67('0x15f2')],function(_0xef7f5a){const _0x24b830=_0x4bbd67;return _0xef7f5a[_0x24b830('0x797')]!==_0x5cfa4f[_0x24b830('0x1f2a')][_0x24b830('0x270')];});_0x5cfa4f[_0x4bbd67('0x1f2a')][_0x4bbd67('0xa12')]&&_0x36f548()[_0x4bbd67('0x14a5')](_0x5cfa4f[_0x4bbd67('0x15f2')],function(_0x142eb2){const _0x47614a=_0x4bbd67;return _0x142eb2[_0x47614a('0x2628')]!==_0x5cfa4f[_0x47614a('0x1f2a')][_0x47614a('0xa12')];});_0x5cfa4f[_0x4bbd67('0x1f2a')][_0x4bbd67('0xdb4')]&&_0x36f548()[_0x4bbd67('0x14a5')](_0x5cfa4f[_0x4bbd67('0x15f2')],function(_0x43c261){const _0x3086e5=_0x4bbd67;return _0x43c261[_0x3086e5('0x27af')][_0x3086e5('0x20d5')]()[_0x3086e5('0x203c')](_0x5cfa4f['query'][_0x3086e5('0xdb4')]['toLowerCase']())<0x0;});_0x5cfa4f[_0x4bbd67('0x15f2')]=_0x2398b5(_0x5cfa4f[_0x4bbd67('0x15f2')]);const _0x2459b4=(_0x5cfa4f['query']['page']-0x1)*_0x5cfa4f['query']['limit'];_0x5cfa4f[_0x4bbd67('0x18bd')]=_0x36f548()[_0x4bbd67('0x1077')](_0x5cfa4f[_0x4bbd67('0x15f2')],_0x2459b4)[_0x4bbd67('0x1b77')](0x0,_0x5cfa4f[_0x4bbd67('0x1f2a')][_0x4bbd67('0xd5c')]);for(let _0x22d112=0x0;_0x22d112<_0x5cfa4f[_0x4bbd67('0x18bd')]['length'];_0x22d112+=0x1){_0x5cfa4f[_0x4bbd67('0x59')][_0x4bbd67('0x105d')](_0x5cfa4f[_0x4bbd67('0x18bd')][_0x22d112]['id']);}_0x5b61d1['resolve'](),_0x5cfa4f[_0x4bbd67('0x215b')]=!![];}function _0x51d7db(_0x2a83ff){const _0x506906=_0x432996;_0x5cfa4f['agents'][_0x2a83ff['id']]&&(_0x36f548()['merge'](_0x5cfa4f[_0x506906('0x1401')][_0x2a83ff['id']],_0x36f548()['pick'](_0x36f548()[_0x506906('0x196f')](_0x2a83ff,_0x4ae491),_0xb0824c)),_0x36f548()[_0x506906('0x47b')](_0x5cfa4f[_0x506906('0xaa0')][_0x2a83ff['id']],_0x36f548()[_0x506906('0x258')](_0x36f548()[_0x506906('0x196f')](_0x2a83ff,_0x4ae491),_0xb0824c)),_0x349b6a(_0x5cfa4f[_0x506906('0x1401')][_0x2a83ff['id']]));}function _0x2a09ec(_0x2acf3d){const _0xaf40c3=_0x432996;_0x5cfa4f['agents'][_0x2acf3d['id']]&&(_0x36f548()[_0xaf40c3('0x47b')](_0x5cfa4f[_0xaf40c3('0x1401')][_0x2acf3d['id']],_0x36f548()[_0xaf40c3('0x258')](_0x2acf3d,_0xb0824c)),_0x36f548()['merge'](_0x5cfa4f[_0xaf40c3('0xaa0')][_0x2acf3d['id']],_0x36f548()[_0xaf40c3('0x258')](_0x2acf3d,_0xb0824c)),_0x2acf3d[_0xaf40c3('0x1e10')]&&(_0x5cfa4f[_0xaf40c3('0x1401')][_0x2acf3d['id']][_0xaf40c3('0xd4')]=_0x2acf3d[_0xaf40c3('0x1e10')],_0x5cfa4f[_0xaf40c3('0xaa0')][_0x2acf3d['id']][_0xaf40c3('0xd4')]=_0x2acf3d[_0xaf40c3('0x1e10')]),_0x349b6a(_0x5cfa4f[_0xaf40c3('0x1401')][_0x2acf3d['id']]));}function _0x3cf4a3(_0x786cd0){const _0x51bc92=_0x432996;_0x5cfa4f['agents'][_0x5cfa4f[_0x51bc92('0x14fd')][_0x786cd0[_0x51bc92('0x1fd0')]]]&&(_0x36f548()[_0x51bc92('0x47b')](_0x5cfa4f['agents'][_0x5cfa4f[_0x51bc92('0x14fd')][_0x786cd0['destaccountcode']]],_0x36f548()[_0x51bc92('0x258')](_0x786cd0,['queue',_0x51bc92('0x1562')])),_0x36f548()['merge'](_0x5cfa4f[_0x51bc92('0xaa0')][_0x5cfa4f[_0x51bc92('0x14fd')][_0x786cd0['destaccountcode']]],_0x36f548()[_0x51bc92('0x258')](_0x786cd0,[_0x51bc92('0x150b'),_0x51bc92('0x1562')])));}function _0x1ed053(_0xdf726d){const _0xbe7a43=_0x432996;_0x5cfa4f[_0xbe7a43('0x1401')][_0x5cfa4f[_0xbe7a43('0x14fd')][_0xdf726d[_0xbe7a43('0x1fd0')]]]&&(_0x5cfa4f['agents'][_0x5cfa4f[_0xbe7a43('0x14fd')][_0xdf726d[_0xbe7a43('0x1fd0')]]]=_0x36f548()[_0xbe7a43('0x196f')](_0x5cfa4f[_0xbe7a43('0x1401')][_0x5cfa4f[_0xbe7a43('0x14fd')][_0xdf726d[_0xbe7a43('0x1fd0')]]],['queue',_0xbe7a43('0x1562')]),_0x5cfa4f['rpcAgents'][_0x5cfa4f['agentInternal'][_0xdf726d[_0xbe7a43('0x1fd0')]]]=_0x36f548()[_0xbe7a43('0x196f')](_0x5cfa4f[_0xbe7a43('0xaa0')][_0x5cfa4f[_0xbe7a43('0x14fd')][_0xdf726d[_0xbe7a43('0x1fd0')]]],['queue',_0xbe7a43('0x1562')]));}function _0x48f9b5(_0x2c8833){const _0x255723=_0x432996;return _0xc240ba[_0x255723('0x21d9')][_0x255723('0x18f7')]({'id':_0x2c8833['id'],'device':_0x255723('0x25f9'),'agent_id':_0x2c8833['id'],'agent_name':_0x2c8833[_0x255723('0x1909')]})[_0x255723('0x1549')][_0x255723('0x11bf')](function(){const _0x2ef75d=_0x255723;_0x1672c1[_0x2ef75d('0x2693')]({'title':_0x2ef75d('0x21e1'),'msg':_0x2c8833[_0x2ef75d('0x27af')]+'\x20\x20properly\x20logout'}),_0x5cfa4f[_0x2ef75d('0x1401')][_0x2c8833['id']]&&(_0x5cfa4f[_0x2ef75d('0x1401')][_0x2c8833['id']]['online']=![]),_0x5cfa4f[_0x2ef75d('0xaa0')][_0x2c8833['id']]&&(_0x5cfa4f[_0x2ef75d('0xaa0')][_0x2c8833['id']][_0x2ef75d('0x81c')]=![]),_0x31e0dc();})['catch'](function(_0x452cba){const _0x366096=_0x255723;_0x1672c1[_0x366096('0x255')]({'title':_0x452cba[_0x366096('0xff9')]?_0x366096('0x574')+_0x452cba[_0x366096('0xff9')]+_0x366096('0xb0b')+_0x452cba[_0x366096('0x212f')]:_0x366096('0x9'),'msg':_0x452cba[_0x366096('0x4e8')]?JSON[_0x366096('0x3e')](_0x452cba[_0x366096('0x4e8')][_0x366096('0x1b86')]):_0x452cba['toString']()});});}function _0x3c476a(_0x1aaccf,_0x41ec60){const _0x250757=_0x432996;return _0xc240ba[_0x250757('0x21d9')][_0x250757('0x92a')]({'id':_0x1aaccf['id'],'type':_0x41ec60})[_0x250757('0x1549')][_0x250757('0x11bf')](function(_0x861353){const _0x40e496=_0x250757;_0x5cfa4f[_0x40e496('0x1401')][_0x1aaccf['id']]&&_0x36f548()['merge'](_0x5cfa4f[_0x40e496('0x1401')][_0x1aaccf['id']],_0x36f548()[_0x40e496('0x258')](_0x861353,_0xb0824c)),_0x5cfa4f[_0x40e496('0xaa0')][_0x1aaccf['id']]&&_0x36f548()[_0x40e496('0x47b')](_0x5cfa4f[_0x40e496('0xaa0')][_0x1aaccf['id']],_0x36f548()[_0x40e496('0x258')](_0x861353,_0xb0824c)),_0x349b6a(_0x5cfa4f[_0x40e496('0x1401')][_0x1aaccf['id']]);})['catch'](function(_0x166602){const _0x567f57=_0x250757;_0x1672c1[_0x567f57('0x255')]({'title':_0x166602[_0x567f57('0xff9')]?_0x567f57('0x574')+_0x166602['status']+_0x567f57('0xb0b')+_0x166602['statusText']:_0x567f57('0x9'),'msg':_0x166602[_0x567f57('0x4e8')]?JSON[_0x567f57('0x3e')](_0x166602[_0x567f57('0x4e8')]['message']):_0x166602[_0x567f57('0xaab')]()});});}function _0x5b3227(_0xba2ad7){const _0x2240a1=_0x432996;return _0xc240ba['user'][_0x2240a1('0xb6f')]({'id':_0xba2ad7['id']})[_0x2240a1('0x1549')][_0x2240a1('0x11bf')](function(_0x19a618){const _0x2fac7d=_0x2240a1;_0x5cfa4f['agents'][_0xba2ad7['id']]&&_0x36f548()[_0x2fac7d('0x47b')](_0x5cfa4f[_0x2fac7d('0x1401')][_0xba2ad7['id']],_0x36f548()[_0x2fac7d('0x258')](_0x19a618,_0xb0824c)),_0x5cfa4f[_0x2fac7d('0xaa0')][_0xba2ad7['id']]&&_0x36f548()[_0x2fac7d('0x47b')](_0x5cfa4f[_0x2fac7d('0xaa0')][_0xba2ad7['id']],_0x36f548()[_0x2fac7d('0x258')](_0x19a618,_0xb0824c)),_0x349b6a(_0x5cfa4f[_0x2fac7d('0x1401')][_0xba2ad7['id']]);})['catch'](function(_0x124c57){const _0x2d9331=_0x2240a1;_0x1672c1[_0x2d9331('0x255')]({'title':_0x124c57[_0x2d9331('0xff9')]?_0x2d9331('0x574')+_0x124c57[_0x2d9331('0xff9')]+_0x2d9331('0xb0b')+_0x124c57['statusText']:_0x2d9331('0x9'),'msg':_0x124c57['data']?JSON[_0x2d9331('0x3e')](_0x124c57[_0x2d9331('0x4e8')][_0x2d9331('0x1b86')]):_0x124c57[_0x2d9331('0xaab')]()});});}function _0x5d3d37(_0x8ec72d){const _0x411a6c=_0x432996;_0xd330f4['show'](_0xd330f4[_0x411a6c('0xb30')]()['clickOutsideToClose'](!![])[_0x411a6c('0x134b')](_0x411a6c('0x24f0'))[_0x411a6c('0x1d03')](_0x411a6c('0x193c'))['ok']('Ok')[_0x411a6c('0x1e25')](_0x8ec72d));}function _0xeb21c9(_0x5ee252,_0x35d65e){const _0x416534=_0x432996;_0xd330f4[_0x416534('0xb9')]({'controller':_0x416534('0x1730'),'controllerAs':'vm','templateUrl':_0x43dcce,'parent':angular[_0x416534('0x1e73')](_0x3ad489['body']),'targetEvent':_0x35d65e,'clickOutsideToClose':!![],'locals':{'agent':_0x5ee252,'agents':[],'channel':'sms','direction':_0x416534('0x18a2'),'crudPermissions':_0x5cfa4f[_0x416534('0xb25')]}});}function _0x44458b(_0x343d5d){const _0x4ed483=_0x432996;return _0x343d5d===_0x4ed483('0x92a')||_0x343d5d===_0x4ed483('0x1050');}function _0x2dd8be(_0x2018d1){const _0xf8dd3b=_0x432996;return _0x2018d1===_0xf8dd3b('0x92a');}function _0x22c85e(_0x1de415){const _0x570224=_0x432996;return _0x1de415===_0x570224('0x1050');}function _0xa7c76(_0x476ebe){const _0x45b2bc=_0x432996;return _0x476ebe===_0x45b2bc('0x1533')||_0x476ebe===_0x45b2bc('0x6b0')||_0x476ebe===_0x45b2bc('0x181f')||_0x476ebe===_0x45b2bc('0x19b')||_0x36f548()['isNil'](_0x476ebe);}function _0x3bdd9e(_0x18b64d,_0x2b07ec){const _0x1ded54=_0x432996;if(_0x2b07ec===_0x1ded54('0x1bc3')){if(_0x18b64d[_0x2b07ec+_0x1ded54('0x971')]!==_0x1ded54('0x1533'))return _0x18b64d[_0x2b07ec+_0x1ded54('0x971')];if(_0x18b64d[_0x2b07ec+_0x1ded54('0x6c5')])return _0x18b64d[_0x2b07ec+_0x1ded54('0x971')]='pause',_0x1ded54('0x92a');return'idle';}else{if(_0x18b64d[_0x2b07ec+_0x1ded54('0x6c5')])return _0x18b64d[_0x2b07ec+'Status']='pause',_0x1ded54('0x92a');return _0x18b64d[_0x2b07ec+_0x1ded54('0x971')];}}function _0x349b6a(_0x292046){const _0x28a1c1=_0x432996;let _0x55ed26=_0x28a1c1('0x6b0');if(_0x36f548()[_0x28a1c1('0x1d1')]([_0x3bdd9e(_0x292046,'voice'),_0x3bdd9e(_0x292046,'chat'),_0x3bdd9e(_0x292046,_0x28a1c1('0x2030')),_0x3bdd9e(_0x292046,'openchannel'),_0x3bdd9e(_0x292046,_0x28a1c1('0x4df')),_0x3bdd9e(_0x292046,'whatsapp'),_0x3bdd9e(_0x292046,_0x28a1c1('0x2104'))],_0x44458b))_0x55ed26='pause';else{if(_0x36f548()[_0x28a1c1('0x1cb3')]([_0x3bdd9e(_0x292046,_0x28a1c1('0x1bc3')),_0x3bdd9e(_0x292046,_0x28a1c1('0x1800')),_0x3bdd9e(_0x292046,_0x28a1c1('0x2030')),_0x3bdd9e(_0x292046,_0x28a1c1('0xb18')),_0x3bdd9e(_0x292046,_0x28a1c1('0x4df')),_0x3bdd9e(_0x292046,_0x28a1c1('0xe7c')),_0x3bdd9e(_0x292046,'fax')],_0x44458b))_0x55ed26='*pause';else _0x36f548()[_0x28a1c1('0x1d1')]([_0x3bdd9e(_0x292046,'voice'),_0x3bdd9e(_0x292046,'chat'),_0x3bdd9e(_0x292046,_0x28a1c1('0x2030')),_0x3bdd9e(_0x292046,'openchannel'),_0x3bdd9e(_0x292046,'sms'),_0x3bdd9e(_0x292046,'whatsapp'),_0x3bdd9e(_0x292046,_0x28a1c1('0x2104'))],_0xa7c76)?_0x55ed26='idle':_0x55ed26=_0x28a1c1('0x23a3');}_0x292046[_0x28a1c1('0x797')]!==_0x55ed26&&(_0x292046[_0x28a1c1('0x797')]=_0x55ed26,_0x292046['init']?(_0x292046[_0x28a1c1('0x286f')]=![],_0x292046[_0x28a1c1('0xd4')]=_0x44458b(_0x55ed26)?_0x36f548()['toNumber'](_0x57d4d1()(_0x292046['lastPauseAt'])[_0x28a1c1('0x1826')]('x')):_0x36f548()[_0x28a1c1('0x1275')]([_0x292046[_0x28a1c1('0x24e5')],_0x292046[_0x28a1c1('0xe6a')],_0x292046['mailStatusTime'],_0x292046[_0x28a1c1('0x1ac6')],_0x292046[_0x28a1c1('0x3ee')],_0x292046[_0x28a1c1('0x22cb')],_0x292046[_0x28a1c1('0x1ce2')]])):_0x292046[_0x28a1c1('0xd4')]=_0x36f548()[_0x28a1c1('0x17c2')](_0x57d4d1()()[_0x28a1c1('0x1826')]('x')));}function _0x2398b5(_0x526807){const _0x53a197=_0x432996,_0x2be6a5=_0x36f548()[_0x53a197('0x1eb7')](_0x5cfa4f[_0x53a197('0x1f2a')][_0x53a197('0x59')],'-')?'desc':_0x53a197('0x1875');return _0x36f548()['orderBy'](_0x526807,[_0x5cfa4f['query'][_0x53a197('0x59')][_0x53a197('0x814')]('-','')],[_0x2be6a5]);}function _0x427301(){const _0x34b3e0=_0x432996;_0x197a92&&(_0x3a1db2[_0x34b3e0('0x26c9')](_0x197a92),_0x197a92=null);}function _0x478b38(_0x52b2f7,_0x539179){const _0x2be02a=_0x432996;return _0xc240ba[_0x2be02a('0x21d9')][_0x2be02a('0x5ab')]({'id':_0x52b2f7['id']},{'screenrecording':_0x539179})[_0x2be02a('0x1549')][_0x2be02a('0x151d')](function(_0x375f31){const _0x536031=_0x2be02a;_0x1672c1['error']({'title':_0x375f31[_0x536031('0xff9')]?'API:'+_0x375f31[_0x536031('0xff9')]+'\x20-\x20'+_0x375f31[_0x536031('0x212f')]:_0x536031('0x165b'),'msg':_0x375f31['data']?JSON[_0x536031('0x3e')](_0x375f31['data']['message']):_0x375f31[_0x536031('0xaab')]()});});}_0x469694[_0x432996('0x12d8')](_0x432996('0x4f7'),function(){const _0x5cbf83=_0x432996;_0x47fe40[_0x5cbf83('0x1b2e')](_0x5cbf83('0x1ce9')),_0x47fe40[_0x5cbf83('0x1b2e')](_0x5cbf83('0x15bd')),_0x47fe40[_0x5cbf83('0x1b2e')](_0x5cbf83('0x90c')),_0x47fe40['removeAllListeners'](_0x5cbf83('0xffb')),_0x427301();});}const _0x4e4d48=_0x18cc6f,_0x407224=_0x351988['p']+_0x21d0f5('0x124d'),_0x906ae1=_0x351988['p']+_0x21d0f5('0x2180');_0x1da3bf[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0x17f5'),'$mdDialog','$q','$document','$interval',_0x21d0f5('0x1de3'),_0x21d0f5('0x1223'),'api',_0x21d0f5('0x1d56'),_0x21d0f5('0x142d'),_0x21d0f5('0x25bc'),'userProfileSection',_0x21d0f5('0x1150')];function _0x1da3bf(_0x3a00d3,_0x4239cc,_0x187ab3,_0xaf7981,_0x5ef9e0,_0x343d2c,_0x39f54c,_0x579626,_0x952dcc,_0x45ce24,_0x19702f,_0x214895,_0x43e322,_0x4c998a){const _0x5a376a=_0x21d0f5,_0xb36162=this,_0x1c09a8=[_0x5a376a('0xdbd'),_0x5a376a('0x126a'),_0x5a376a('0x1491'),'talking','pTalking',_0x5a376a('0x1fab'),_0x5a376a('0x1b86'),_0x5a376a('0x8b6'),_0x5a376a('0xcd7'),'Trunk',_0x5a376a('0xdb0')];_0xb36162[_0x5a376a('0x32a')]=_0x4c998a[_0x5a376a('0x2428')](),_0xb36162['count']=_0x39f54c[_0x5a376a('0x27d2')]?_0x39f54c['count']:0x0,_0xb36162[_0x5a376a('0x1de3')]=_0x39f54c?_0x36f548()[_0x5a376a('0x2130')](_0x39f54c['rows']?_0x39f54c['rows']:[],'id'):{},_0xb36162[_0x5a376a('0x1223')]=_0x579626?_0x36f548()['keyBy'](_0x579626[_0x5a376a('0x19b2')]?_0x579626[_0x5a376a('0x19b2')]:[],'id'):{},_0xb36162[_0x5a376a('0x25bc')]=_0x214895,_0xb36162[_0x5a376a('0x1d63')]=_0x43e322&&_0x43e322[_0x5a376a('0x27d2')]==0x1?_0x43e322[_0x5a376a('0x19b2')][0x0]:null,_0xb36162[_0x5a376a('0xb25')]=_0x4c998a[_0x5a376a('0x1530')](_0xb36162['userProfileSection']?_0xb36162[_0x5a376a('0x1d63')][_0x5a376a('0xb25')]:null);_0x4c998a[_0x5a376a('0x4ee')](_0x5a376a('0xf45'))?_0xb36162[_0x5a376a('0x1f2a')]={'type':_0x5a376a('0x18a2'),'sort':_0x5a376a('0x1c74'),'limit':0xa,'page':0x1}:_0xb36162[_0x5a376a('0x1f2a')]={'id':_0xb36162[_0x5a376a('0x32a')]['id'],'channel':'sms','type':'inbound','sort':_0x5a376a('0x1c74'),'limit':0xa,'page':0x1};_0xb36162[_0x5a376a('0x2693')]=_0x209ce9,_0xb36162[_0x5a376a('0x373')]=_0x9d674c,_0xb36162[_0x5a376a('0x22aa')]=_0x564386,_0xb36162[_0x5a376a('0x20dd')]=_0x1c5a3f,_0xb36162[_0x5a376a('0xdd9')]=_0x2595dd,_0xb36162['onSave']=_0x7308d9,_0xb36162[_0x5a376a('0x17b7')]=_0x5ae3fe,_0xb36162['onRemoveMember']=_0x2a9e69,_0xb36162[_0x5a376a('0x199c')]=_0x25b588,_0xb36162[_0x5a376a('0x722')]=_0x1176f5,_0xb36162['onLogout']=_0x343021,_0xb36162[_0x5a376a('0x224d')]=_0x5509a2,_0xb36162['order']=[],_0x36f548()['forIn'](_0xb36162[_0x5a376a('0x1de3')],function(_0x1eca14){const _0x10630d=_0x5a376a;_0xb36162[_0x10630d('0x59')][_0x10630d('0x105d')](_0x1eca14['id']);}),_0x45ce24['on'](_0x5a376a('0xd9'),_0xb36162[_0x5a376a('0xc8f')]),_0x45ce24['on']('userSmsQueue:save',_0xb36162[_0x5a376a('0x17b7')]),_0x45ce24['on'](_0x5a376a('0x9b3'),_0xb36162[_0x5a376a('0xcaf')]),_0x45ce24['on'](_0x5a376a('0x15bd'),_0xb36162[_0x5a376a('0x199c')]),_0x45ce24['on'](_0x5a376a('0x5c6'),_0xb36162[_0x5a376a('0x37f')]),_0x45ce24['on']('userVoiceQueue:save',_0xb36162['onLogin']);function _0x5509a2(){const _0x495ed6=_0x5a376a,_0x2e4714=[];return _0x36f548()[_0x495ed6('0x41e')](_0xb36162['queues'],function(_0x4edbfd,_0x18e120){const _0x1bfc24=_0x495ed6;_0x4edbfd[_0x1bfc24('0xdb0')]=0x0,_0x4edbfd[_0x1bfc24('0x1e84')]=0x0,_0xb36162['queues'][_0x18e120][_0x1bfc24('0x1401')]={},_0x2e4714[_0x1bfc24('0x105d')](_0x952dcc[_0x1bfc24('0x1257')][_0x1bfc24('0x226d')]({'id':_0x18e120})[_0x1bfc24('0x1549')]),_0xb36162[_0x1bfc24('0x1223')][_0x18e120]&&_0x36f548()[_0x1bfc24('0x47b')](_0x4edbfd,_0x36f548()[_0x1bfc24('0x258')](_0xb36162[_0x1bfc24('0x1223')][_0x18e120],_0x1c09a8));}),_0xaf7981[_0x495ed6('0x7c')](_0x2e4714)[_0x495ed6('0x11bf')](function(_0x2ead2d){const _0x5cce59=_0x495ed6;for(let _0x1d47f1=0x0;_0x1d47f1<_0x2ead2d['length'];_0x1d47f1+=0x1){for(let _0x3f7139=0x0;_0x3f7139<_0x2ead2d[_0x1d47f1][_0x5cce59('0x19b2')][_0x5cce59('0x1e22')];_0x3f7139++){_0x2ead2d[_0x1d47f1]['rows'][_0x3f7139]['paused']&&_0xb36162[_0x5cce59('0x1de3')][_0x2ead2d[_0x1d47f1][_0x5cce59('0x19b2')][_0x3f7139]['SmsQueueId']][_0x5cce59('0xdb0')]++,_0xb36162[_0x5cce59('0x1de3')][_0x2ead2d[_0x1d47f1][_0x5cce59('0x19b2')][_0x3f7139]['SmsQueueId']][_0x5cce59('0x1e84')]++,_0xb36162[_0x5cce59('0x1de3')][_0x2ead2d[_0x1d47f1][_0x5cce59('0x19b2')][_0x3f7139][_0x5cce59('0x204a')]][_0x5cce59('0x1401')][_0x2ead2d[_0x1d47f1][_0x5cce59('0x19b2')][_0x3f7139][_0x5cce59('0x2342')]]=_0x2ead2d[_0x1d47f1][_0x5cce59('0x19b2')][_0x3f7139][_0x5cce59('0x204a')];}}})[_0x495ed6('0x151d')](function(_0x8cc67d){console['error'](_0x8cc67d);});}function _0x7308d9(_0x30e673){const _0x5ab69a=_0x5a376a;_0xb36162[_0x5ab69a('0x1de3')][_0x30e673['id']]&&_0x36f548()['merge'](_0xb36162['queues'][_0x30e673['id']],_0x36f548()[_0x5ab69a('0x258')](_0x30e673,_0x1c09a8));}function _0x5ae3fe(_0x6d44e7){const _0x1343b2=_0x5a376a;_0xb36162[_0x1343b2('0x1de3')][_0x6d44e7[_0x1343b2('0x204a')]]&&_0xb36162['queues'][_0x6d44e7[_0x1343b2('0x204a')]][_0x1343b2('0x1e84')]++;}function _0x2a9e69(_0x4bc720){const _0x5df8c8=_0x5a376a;_0xb36162['queues'][_0x4bc720[_0x5df8c8('0x204a')]]&&_0xb36162['queues'][_0x4bc720[_0x5df8c8('0x204a')]][_0x5df8c8('0x1e84')]--;}function _0x25b588(_0xb1ff8f){const _0x2a6a76=_0x5a376a;console[_0x2a6a76('0xc78')](_0x2a6a76('0x199c'),_0xb1ff8f);if(_0xb1ff8f['voicePause'])_0x36f548()['forIn'](_0xb36162['queues'],function(_0x54b13f){const _0x1b9b9f=_0x2a6a76;_0x54b13f[_0x1b9b9f('0x1401')][_0xb1ff8f['id']]&&(_0x54b13f[_0x1b9b9f('0xdb0')]+=0x1,console[_0x1b9b9f('0xc78')]('pause'));});else!_0xb1ff8f[_0x2a6a76('0x20d')]&&_0x36f548()[_0x2a6a76('0x41e')](_0xb36162[_0x2a6a76('0x1de3')],function(_0x2e8ad5){const _0x1f5d0d=_0x2a6a76;_0x2e8ad5['agents'][_0xb1ff8f['id']]&&(_0x2e8ad5[_0x1f5d0d('0xdb0')]>0x0&&(_0x2e8ad5[_0x1f5d0d('0xdb0')]-=0x1,console['log']('unpause')));});}function _0x1176f5(_0x3d893d){const _0x12d869=_0x5a376a;console[_0x12d869('0xc78')]('onLogged',_0x3d893d),_0xb36162[_0x12d869('0x1de3')][_0x3d893d[_0x12d869('0x204a')]]&&(_0xb36162[_0x12d869('0x1de3')][_0x3d893d['SmsQueueId']]['loggedInDb']+=0x1,_0xb36162['queues'][_0x3d893d[_0x12d869('0x204a')]][_0x12d869('0x1401')][_0x3d893d[_0x12d869('0x2342')]]=_0x3d893d[_0x12d869('0x204a')]);}function _0x343021(_0x1f2240){const _0x3c0270=_0x5a376a;console['log'](_0x3c0270('0x37f'),_0x1f2240),_0xb36162['queues'][_0x1f2240[_0x3c0270('0x204a')]]&&_0xb36162[_0x3c0270('0x1de3')][_0x1f2240[_0x3c0270('0x204a')]][_0x3c0270('0x1e84')]>0x0&&(_0xb36162['queues'][_0x1f2240[_0x3c0270('0x204a')]][_0x3c0270('0x1e84')]-=0x1,delete _0xb36162[_0x3c0270('0x1de3')][_0x1f2240[_0x3c0270('0x204a')]][_0x3c0270('0x1401')][_0x1f2240[_0x3c0270('0x2342')]]);}let _0x374edb=!![],_0x2c78a7=0x1;_0x3a00d3[_0x5a376a('0x2087')](_0x5a376a('0x842'),function(_0x5a3318,_0x5b4e7d){const _0x56077a=_0x5a376a;_0x374edb?_0x4239cc(function(){_0x374edb=![];}):(!_0x5b4e7d&&(_0x2c78a7=_0xb36162['query'][_0x56077a('0x1c2')]),_0x5a3318!==_0x5b4e7d&&(_0xb36162[_0x56077a('0x1f2a')][_0x56077a('0x1c2')]=0x1),!_0x5a3318&&(_0xb36162[_0x56077a('0x1f2a')][_0x56077a('0x1c2')]=_0x2c78a7),_0xb36162[_0x56077a('0x373')]());});function _0x209ce9(_0x5c5f1a){const _0x1eca8f=_0x5a376a;_0xb36162[_0x1eca8f('0x27d2')]=_0x5c5f1a['count'],_0xb36162['queues']=_0x5c5f1a?_0x36f548()['keyBy'](_0x5c5f1a['rows']?_0x5c5f1a['rows']:[],'id'):{};if(_0x5c5f1a['rows']){_0xb36162[_0x1eca8f('0x59')]=[];for(let _0x7f96f4=0x0;_0x7f96f4<_0x5c5f1a[_0x1eca8f('0x19b2')][_0x1eca8f('0x1e22')];_0x7f96f4++){_0xb36162['order']['push'](_0x5c5f1a[_0x1eca8f('0x19b2')][_0x7f96f4]['id']);}}_0x5509a2();}function _0x9d674c(){const _0x339d5c=_0x5a376a;_0xb36162[_0x339d5c('0x1f2a')][_0x339d5c('0x1393')]=(_0xb36162[_0x339d5c('0x1f2a')]['page']-0x1)*_0xb36162[_0x339d5c('0x1f2a')]['limit'],_0x4c998a[_0x339d5c('0x4ee')]('admin')?_0xb36162[_0x339d5c('0x13f')]=_0x952dcc['smsQueue']['get'](_0xb36162['query'],_0x209ce9)[_0x339d5c('0x1549')]:(_0xb36162['query']['id']=_0xb36162[_0x339d5c('0x25bc')]['id'],_0xb36162['query'][_0x339d5c('0xe6')]=_0x339d5c('0xf23'),_0xb36162[_0x339d5c('0x13f')]=_0x952dcc[_0x339d5c('0x25bc')][_0x339d5c('0x228e')](_0xb36162[_0x339d5c('0x1f2a')],_0x209ce9)[_0x339d5c('0x1549')]);}function _0x564386(_0x3bd037,_0x4b9183){const _0x42763b=_0x5a376a;_0x187ab3['show']({'controller':_0x42763b('0x1e92'),'controllerAs':'vm','templateUrl':_0x407224,'parent':angular['element'](_0x5ef9e0[_0x42763b('0x1d2')]),'targetEvent':_0x3bd037,'clickOutsideToClose':!![],'locals':{'smsQueue':_0x4b9183,'smsQueues':_0x36f548()[_0x42763b('0x1643')](_0xb36162[_0x42763b('0x1de3')]),'license':null,'setting':null,'crudPermissions':_0xb36162[_0x42763b('0xb25')]}});}function _0x1c5a3f(_0x4137b2,_0x23f571){const _0xe5977f=_0x5a376a;_0x187ab3[_0xe5977f('0xb9')]({'controller':_0xe5977f('0x4d0'),'controllerAs':'vm','templateUrl':_0x906ae1,'parent':angular[_0xe5977f('0x1e73')](_0x5ef9e0[_0xe5977f('0x1d2')]),'targetEvent':_0x4137b2,'clickOutsideToClose':!![],'locals':{'smsQueue':_0x23f571,'smsQueues':_0xb36162[_0xe5977f('0x1de3')]?_0xb36162[_0xe5977f('0x1de3')][_0xe5977f('0x19b2')]:[],'realtime':![],'crudPermissions':_0xb36162[_0xe5977f('0xb25')]}});}function _0x2595dd(_0x4c7247){const _0x3f2cd7=_0x5a376a;return _0x952dcc['smsQueue'][_0x3f2cd7('0x5ab')](_0x4c7247)[_0x3f2cd7('0x1549')][_0x3f2cd7('0x11bf')](function(){const _0x5f1578=_0x3f2cd7;_0x19702f[_0x5f1578('0x2693')]({'title':_0x5f1578('0x1544'),'msg':_0x4c7247[_0x5f1578('0x1909')]?_0x4c7247[_0x5f1578('0x1909')]+'\x20has\x20been\x20updated!':''});})['catch'](function(_0x1fc7f9){const _0x1dfcbd=_0x3f2cd7;_0x19702f[_0x1dfcbd('0x255')]({'title':'Error\x20creating\x20queue!','msg':_0x1fc7f9[_0x1dfcbd('0x1b86')]});});}_0x3a00d3[_0x5a376a('0x12d8')](_0x5a376a('0x4f7'),function(){const _0x3b1d6d=_0x5a376a;_0x45ce24[_0x3b1d6d('0x1b2e')]('sms_queue:save'),_0x45ce24[_0x3b1d6d('0x1b2e')](_0x3b1d6d('0x9b3')),_0x45ce24[_0x3b1d6d('0x1b2e')](_0x3b1d6d('0x2400')),_0x45ce24[_0x3b1d6d('0x1b2e')](_0x3b1d6d('0x15bd')),_0x45ce24[_0x3b1d6d('0x1b2e')](_0x3b1d6d('0x5c6')),_0x45ce24[_0x3b1d6d('0x1b2e')](_0x3b1d6d('0x1929'));});}const _0x2329c4=_0x1da3bf;function _0x23dfc7(){const _0x3a22db=_0x21d0f5;return{'status':{'registered':_0x3a22db('0x2747'),'unregistered':_0x3a22db('0x58e'),'lagged':_0x3a22db('0x58e'),'reachable':_0x3a22db('0x2747'),'unreachable':'red-300-fg\x20icon-close-circle','unknown':_0x3a22db('0xcc')},'state':{'unknown':_0x3a22db('0x95b'),'not_inuse':'green-300-fg\x20icon-phone-hangup','inuse':'red-300-fg\x20icon-phone-in-talk','busy':'red-300-fg\x20icon-phone-locked','invalid':_0x3a22db('0x95b'),'unavailable':_0x3a22db('0x95b'),'ringing':'blue-300-fg\x20icon-phone-incoming','ringinuse':'blue-300-fg\x20icon-phone-incoming','onhold':_0x3a22db('0x142a')},'channelStatus':{'ring':_0x3a22db('0x1df'),'up':_0x3a22db('0x198'),'hangup':_0x3a22db('0x393')},'channelStatusOut':{'ring':_0x3a22db('0x27f5'),'up':_0x3a22db('0x198'),'hangup':_0x3a22db('0x393')}};}const _0x3a9e06=_0x23dfc7;_0x4ed173['$inject']=[_0x21d0f5('0x1b80'),_0x21d0f5('0xcbc'),_0x21d0f5('0x1d56')];function _0x4ed173(_0x449168,_0x4436ea,_0x2dbb1c){const _0x4ab654=_0x21d0f5,_0x80a264=this;_0x2dbb1c[_0x4ab654('0x143e')](),_0x2dbb1c[_0x4ab654('0x196c')](),_0x80a264['selectedTab']=0x0;switch(_0x4436ea['current'][_0x4ab654('0x1909')]){case'app.sms.realtime.agents':_0x80a264[_0x4ab654('0x1179')]=0x0;break;case _0x4ab654('0x18c8'):_0x80a264[_0x4ab654('0x1179')]=0x1;break;default:_0x80a264[_0x4ab654('0x1179')]=0x0,_0x4436ea['go'](_0x4ab654('0xff2'));}_0x449168[_0x4ab654('0x2087')](_0x4ab654('0x14f1'),function(_0x57e242,_0x21ee22){if(_0x57e242!==_0x21ee22)switch(_0x57e242){case 0x0:_0x4436ea['go']('app.sms.realtime.agents');break;case 0x1:_0x4436ea['go']('app.sms.realtime.queues');break;default:_0x4436ea['go']('app.sms.realtime.agents');}});}const _0x21eb14=_0x4ed173;_0x3cc243[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x13d6')];function _0x3cc243(_0x16ad1a){const _0x45549a=_0x21d0f5;_0x16ad1a[_0x45549a('0x2124')]('app.sms.realtime',{'url':_0x45549a('0x25aa'),'views':{'content@app':{'templateUrl':_0x320bed,'controller':'SmsRealtimeController\x20as\x20vm'}},'resolve':{'userProfile':[_0x45549a('0x218e'),'Auth',function(_0x2e724f,_0x5aed9f){const _0x497ff7=_0x45549a;return _0x5aed9f[_0x497ff7('0x4ee')](_0x497ff7('0xf45'))?null:_0x2e724f[_0x497ff7('0xa28')](_0x497ff7('0x428'),{'fields':'id,name,crudPermissions','id':_0x5aed9f['getCurrentUser']()[_0x497ff7('0x781')]});}],'userProfileSection':[_0x45549a('0x218e'),_0x45549a('0x1150'),function(_0x4b30c4,_0xad73d1){const _0x171788=_0x45549a;return _0xad73d1['hasRole']('admin')?null:_0x4b30c4[_0x171788('0xa28')](_0x171788('0x2762'),{'fields':_0x171788('0x36d'),'userProfileId':_0xad73d1[_0x171788('0x2428')]()['userProfileId'],'sectionId':0x2c6});}]},'authenticate':!![],'permissionId':0x2c6})['state'](_0x45549a('0xff2'),{'url':'/agents','controller':_0x45549a('0x12de'),'templateUrl':_0x1ec5dc,'resolve':{'pauses':[_0x45549a('0x218e'),function(_0x2d534c){const _0x483733=_0x45549a;return _0x2d534c[_0x483733('0xa28')]('pause@get',{'nolimit':!![]});}],'agents':['apiResolver','Auth',function(_0x399d06,_0x15d9d6){const _0x2cbbe3=_0x45549a;return _0x15d9d6['hasRole'](_0x2cbbe3('0xf45'))?_0x399d06[_0x2cbbe3('0xa28')](_0x2cbbe3('0x2166'),{'fields':_0x2cbbe3('0xd80'),'role':_0x2cbbe3('0x18c4'),'sort':_0x2cbbe3('0x27af'),'nolimit':!![]}):_0x399d06[_0x2cbbe3('0xa28')](_0x2cbbe3('0xb0d'),{'id':_0x15d9d6[_0x2cbbe3('0x2428')]()[_0x2cbbe3('0x781')],'section':'Agents','fields':_0x2cbbe3('0xd80'),'role':_0x2cbbe3('0x18c4'),'sort':_0x2cbbe3('0x27af'),'nolimit':!![]});}],'userProfile':[_0x45549a('0x218e'),_0x45549a('0x1150'),function(_0x52c3ec,_0x258761){const _0x40f57d=_0x45549a;return _0x258761[_0x40f57d('0x4ee')](_0x40f57d('0xf45'))?null:_0x52c3ec[_0x40f57d('0xa28')](_0x40f57d('0x428'),{'fields':_0x40f57d('0xd30'),'id':_0x258761[_0x40f57d('0x2428')]()[_0x40f57d('0x781')]});}],'userProfileSection':[_0x45549a('0x218e'),'Auth',function(_0x287d8b,_0x45c83c){const _0x3c6c04=_0x45549a;return _0x45c83c[_0x3c6c04('0x4ee')](_0x3c6c04('0xf45'))?null:_0x287d8b[_0x3c6c04('0xa28')](_0x3c6c04('0x2762'),{'fields':_0x3c6c04('0x36d'),'userProfileId':_0x45c83c[_0x3c6c04('0x2428')]()[_0x3c6c04('0x781')],'sectionId':0xca});}],'rpcAgents':[_0x45549a('0x218e'),function(_0x14fe2b){return _0x14fe2b['resolve']('rpc@getAgents');}]},'authenticate':!![],'permissionId':0x2c6})[_0x45549a('0x2124')](_0x45549a('0x18c8'),{'url':_0x45549a('0xb98'),'controller':_0x45549a('0x242f'),'templateUrl':_0x58df26,'resolve':{'queues':[_0x45549a('0x218e'),_0x45549a('0x1150'),function(_0x42ae47,_0x4a64c5){const _0x429861=_0x45549a;return _0x4a64c5[_0x429861('0x4ee')](_0x429861('0xf45'))?_0x42ae47[_0x429861('0xa28')](_0x429861('0x1bb9'),{'type':_0x429861('0x18a2'),'sort':_0x429861('0x1c74'),'limit':0xa,'offset':0x0}):_0x42ae47[_0x429861('0xa28')](_0x429861('0xb0d'),{'id':_0x4a64c5['getCurrentUser']()['userProfileId'],'section':_0x429861('0xf23'),'channel':_0x429861('0x4df'),'type':_0x429861('0x18a2'),'sort':_0x429861('0x1c74'),'limit':0xa,'page':0x1});}],'userProfile':[_0x45549a('0x218e'),_0x45549a('0x1150'),function(_0x4cad50,_0x235bed){const _0x23252d=_0x45549a;return _0x235bed[_0x23252d('0x4ee')](_0x23252d('0xf45'))?null:_0x4cad50['resolve'](_0x23252d('0x428'),{'fields':_0x23252d('0xd30'),'id':_0x235bed['getCurrentUser']()[_0x23252d('0x781')]});}],'userProfileSection':[_0x45549a('0x218e'),_0x45549a('0x1150'),function(_0x5877cb,_0x194d43){const _0x474817=_0x45549a;return _0x194d43[_0x474817('0x4ee')](_0x474817('0xf45'))?null:_0x5877cb[_0x474817('0xa28')](_0x474817('0x2762'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x194d43[_0x474817('0x2428')]()[_0x474817('0x781')],'sectionId':0x2bd});}],'rpcQueues':['apiResolver',function(_0x59c9ca){return _0x59c9ca['resolve']('rpc@getSmsQueues');}]},'authenticate':!![],'permissionId':0x2c6});}angular[_0x21d0f5('0x2768')](_0x21d0f5('0x12f'),[])['config'](_0x3cc243)[_0x21d0f5('0x23eb')](_0x21d0f5('0x18d4'),_0x4e4d48)['controller']('QueuesSmsRealtimeController',_0x2329c4)[_0x21d0f5('0x2729')](_0x21d0f5('0x927'),_0x3a9e06)[_0x21d0f5('0x23eb')](_0x21d0f5('0x1eba'),_0x21eb14);const _0x38fbfd=_0x351988['p']+'src/js/modules/main/apps/sms/views/smsQueues/smsQueues.html/smsQueues.html',_0x15a4c7=_0x351988['p']+'src/js/modules/main/apps/sms/views/smsQueues/edit/view.html/view.html',_0x4e1f2f=_0x351988['p']+_0x21d0f5('0x83d'),_0x112023=_0x351988['p']+_0x21d0f5('0x12f3');_0x3f89b0[_0x21d0f5('0x1e9a')]=['$scope',_0x21d0f5('0xcbc'),'$location',_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0xb6b'),_0x21d0f5('0x142d'),_0x21d0f5('0x27d9'),'smsAccount',_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1'),_0x21d0f5('0xb25')];function _0x3f89b0(_0x4b2088,_0x318276,_0x1f8e01,_0x38a3cd,_0x580dcd,_0x8ace5c,_0x3330ad,_0x4e6b47,_0x1c88ca,_0x3967df,_0x11214a,_0x3eb8e0,_0x34f7eb,_0x6d6129){const _0x715597=_0x21d0f5,_0x42ff9d=this;_0x42ff9d[_0x715597('0x32a')]=_0x11214a['getCurrentUser'](),_0x42ff9d['errors']=[],_0x42ff9d['setting']=_0x34f7eb,_0x42ff9d[_0x715597('0x17ff')]=_0x3eb8e0,_0x42ff9d[_0x715597('0xb25')]=_0x6d6129,_0x42ff9d[_0x715597('0x2c9')]={},_0x42ff9d['passwordPattern']=_0x42ff9d[_0x715597('0x23e1')]&&_0x42ff9d[_0x715597('0x23e1')][_0x715597('0x1d4')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x42ff9d[_0x715597('0x134b')]=_0x715597('0x34a'),_0x42ff9d[_0x715597('0x234b')]=angular['copy'](_0x1c88ca),_0x42ff9d[_0x715597('0x27d9')]=_0x4e6b47,_0x42ff9d[_0x715597('0xc62')]=![];!_0x42ff9d[_0x715597('0x234b')]&&(_0x42ff9d[_0x715597('0x234b')]={'remote':_0x1f8e01['protocol']()+_0x715597('0x16a1')+_0x1f8e01['host']()+(_0x1f8e01[_0x715597('0x235b')]()?':'+_0x1f8e01['port']():''),'type':'twilio','waitForTheAssignedAgent':0xa,'notificationSound':!![],'queueTransferTimeout':0x12c,'agentTransferTimeout':0x12c},_0x42ff9d[_0x715597('0x134b')]=_0x715597('0x18c1'),_0x42ff9d[_0x715597('0xc62')]=!![]);_0x318276['params']['id']&&(_0x42ff9d['smsAccount'][_0x715597('0x80b')]=_0x318276['params']['id']);_0x42ff9d[_0x715597('0x1b06')]=_0x5222ad,_0x42ff9d[_0x715597('0x282a')]=_0x30a877,_0x42ff9d[_0x715597('0xe54')]=_0x581871,_0x42ff9d[_0x715597('0x1bd1')]=_0x574c2f,_0x42ff9d[_0x715597('0xc4e')]=_0x7d8f,_0x11214a['hasRole'](_0x715597('0xf45'))?_0x3967df['cmList'][_0x715597('0xbaa')]({'fields':_0x715597('0x721'),'sort':_0x715597('0x1909')})[_0x715597('0x1549')]['then'](function(_0x260918){const _0x227c2e=_0x715597;_0x42ff9d[_0x227c2e('0x2410')]=_0x260918[_0x227c2e('0x19b2')]||[];})[_0x715597('0x151d')](function(_0x205d7c){const _0x3de13b=_0x715597;_0x3330ad[_0x3de13b('0x255')]({'title':_0x205d7c[_0x3de13b('0xff9')]?_0x3de13b('0x574')+_0x205d7c[_0x3de13b('0xff9')]+_0x3de13b('0xb0b')+_0x205d7c[_0x3de13b('0x212f')]:_0x3de13b('0x27ed'),'msg':_0x205d7c[_0x3de13b('0x4e8')]?JSON[_0x3de13b('0x3e')](_0x205d7c[_0x3de13b('0x4e8')]):_0x205d7c[_0x3de13b('0xaab')]()});}):_0x3967df[_0x715597('0xbef')][_0x715597('0xbaa')]({'fields':'id,name','sort':_0x715597('0x1909')})[_0x715597('0x1549')][_0x715597('0x11bf')](function(_0x37b409){const _0x5d42e0=_0x715597;_0x42ff9d['lists']=_0x37b409[_0x5d42e0('0x19b2')]||[];})[_0x715597('0x11bf')](function(){const _0x2645ae=_0x715597;return _0x3967df[_0x2645ae('0x1d63')][_0x2645ae('0xbaa')]({'userProfileId':_0x42ff9d[_0x2645ae('0x32a')]['userProfileId'],'sectionId':0x12d})[_0x2645ae('0x1549')];})[_0x715597('0x11bf')](function(_0x38d01a){const _0xda590c=_0x715597,_0x529a1a=_0x38d01a&&_0x38d01a[_0xda590c('0x19b2')]?_0x38d01a[_0xda590c('0x19b2')][0x0]:null;if(!_0x529a1a){const _0x477865=[];let _0x3e84e3=null;_0x42ff9d[_0xda590c('0x234b')]&&(_0x3e84e3=_0x36f548()['find'](_0x42ff9d[_0xda590c('0x2410')],{'id':Number(_0x42ff9d[_0xda590c('0x234b')]['ListId'])}));for(let _0x47f8bb=0x0;_0x47f8bb<_0x42ff9d[_0xda590c('0x2410')][_0xda590c('0x1e22')];_0x47f8bb++){_0x3e84e3&&_0x42ff9d['lists'][_0x47f8bb]['id']===_0x3e84e3['id']&&(_0x42ff9d[_0xda590c('0x2410')][_0x47f8bb]['canSelect']=![],_0x477865['push'](_0x42ff9d[_0xda590c('0x2410')][_0x47f8bb]));}_0x42ff9d[_0xda590c('0x2410')]=_0x477865;}else{if(!_0x529a1a[_0xda590c('0xf11')])return _0x3967df[_0xda590c('0x26d1')][_0xda590c('0xbaa')]({'sectionId':_0x529a1a['id']})[_0xda590c('0x1549')][_0xda590c('0x11bf')](function(_0x5b9a93){const _0x53fedd=_0xda590c,_0x159582=_0x36f548()['map'](_0x5b9a93['rows'],function(_0x5ade03){const _0xc301ab=a0_0xaf0c;return _0x36f548()[_0xc301ab('0x1ad4')](_0x42ff9d[_0xc301ab('0x2410')],{'id':_0x5ade03['resourceId']});});let _0x20b78a=null;_0x42ff9d['smsAccount']&&(_0x20b78a=_0x36f548()[_0x53fedd('0x1ad4')](_0x42ff9d[_0x53fedd('0x2410')],{'id':Number(_0x42ff9d[_0x53fedd('0x234b')][_0x53fedd('0x1e91')])}));if(_0x20b78a&&!_0x36f548()[_0x53fedd('0x1cb3')](_0x159582,['id',_0x20b78a['id']])){const _0x2662a2=_0x36f548()[_0x53fedd('0x1ad4')](_0x42ff9d[_0x53fedd('0x2410')],{'id':_0x20b78a['id']});_0x2662a2['canSelect']=![],_0x159582[_0x53fedd('0x105d')](_0x2662a2);}_0x42ff9d['lists']=_0x159582;});}})[_0x715597('0x151d')](function(_0x53cc96){const _0x4dc3f5=_0x715597;_0x3330ad[_0x4dc3f5('0x255')]({'title':_0x53cc96['status']?_0x4dc3f5('0x574')+_0x53cc96[_0x4dc3f5('0xff9')]+_0x4dc3f5('0xb0b')+_0x53cc96[_0x4dc3f5('0x212f')]:'SYSTEM:GETlists','msg':_0x53cc96['data']?JSON[_0x4dc3f5('0x3e')](_0x53cc96[_0x4dc3f5('0x4e8')]):_0x53cc96['toString']()});});function _0x5222ad(){const _0x35fe0f=_0x715597;_0x42ff9d[_0x35fe0f('0x120f')]=[],_0x3967df['smsAccount'][_0x35fe0f('0x259')](_0x42ff9d[_0x35fe0f('0x234b')])[_0x35fe0f('0x1549')][_0x35fe0f('0x11bf')](function(_0x49a3a8){const _0xae743f=_0x35fe0f;_0x42ff9d[_0xae743f('0x27d9')][_0xae743f('0x880')](_0x49a3a8[_0xae743f('0x2866')]()),_0x3330ad[_0xae743f('0x2693')]({'title':'SmsAccount\x20properly\x20created','msg':_0x42ff9d[_0xae743f('0x234b')][_0xae743f('0x1909')]?_0x42ff9d[_0xae743f('0x234b')]['name']+'\x20has\x20been\x20created!':''}),_0x7d8f(_0x49a3a8);})['catch'](function(_0x109271){const _0x2f76cf=_0x35fe0f;if(_0x109271[_0x2f76cf('0x4e8')]&&_0x109271[_0x2f76cf('0x4e8')][_0x2f76cf('0x120f')]&&_0x109271[_0x2f76cf('0x4e8')][_0x2f76cf('0x120f')][_0x2f76cf('0x1e22')]){_0x42ff9d[_0x2f76cf('0x120f')]=_0x109271[_0x2f76cf('0x4e8')][_0x2f76cf('0x120f')]||[{'message':_0x109271[_0x2f76cf('0xaab')](),'type':'api.smsAccount.save'}];for(let _0x31fa2=0x0;_0x31fa2<_0x109271['data'][_0x2f76cf('0x120f')][_0x2f76cf('0x1e22')];_0x31fa2+=0x1){_0x3330ad['error']({'title':_0x109271[_0x2f76cf('0x4e8')][_0x2f76cf('0x120f')][_0x31fa2][_0x2f76cf('0x19fd')],'msg':_0x109271['data'][_0x2f76cf('0x120f')][_0x31fa2][_0x2f76cf('0x1b86')]});}}else _0x3330ad['error']({'title':_0x109271[_0x2f76cf('0xff9')]?_0x2f76cf('0x574')+_0x109271[_0x2f76cf('0xff9')]+_0x2f76cf('0xb0b')+_0x109271[_0x2f76cf('0x212f')]:'api.smsAccount.save','msg':_0x109271[_0x2f76cf('0x4e8')]?JSON[_0x2f76cf('0x3e')](_0x109271['data']['message']):_0x109271['toString']()});});}function _0x30a877(){const _0x584d23=_0x715597;_0x42ff9d[_0x584d23('0x120f')]=[],_0x3967df[_0x584d23('0x234b')][_0x584d23('0x5ab')]({'id':_0x42ff9d[_0x584d23('0x234b')]['id']},_0x42ff9d[_0x584d23('0x234b')])[_0x584d23('0x1549')][_0x584d23('0x11bf')](function(_0x3b1afd){const _0x18566d=_0x584d23,_0x3263f1=_0x36f548()[_0x18566d('0x1ad4')](_0x42ff9d[_0x18566d('0x27d9')],{'id':_0x3b1afd['id']});_0x3263f1&&_0x36f548()[_0x18566d('0x47b')](_0x3263f1,_0x36f548()[_0x18566d('0x258')](_0x3b1afd[_0x18566d('0x2866')](),_0x36f548()['keys'](_0x3263f1))),_0x3330ad[_0x18566d('0x2693')]({'title':'SmsAccount\x20properly\x20saved!','msg':_0x42ff9d[_0x18566d('0x234b')][_0x18566d('0x1909')]?_0x42ff9d[_0x18566d('0x234b')][_0x18566d('0x1909')]+_0x18566d('0x1a78'):''}),_0x7d8f(_0x3b1afd);})[_0x584d23('0x151d')](function(_0x1e1a5c){const _0x48a07f=_0x584d23;if(_0x1e1a5c['data']&&_0x1e1a5c[_0x48a07f('0x4e8')]['errors']&&_0x1e1a5c[_0x48a07f('0x4e8')][_0x48a07f('0x120f')][_0x48a07f('0x1e22')]){_0x42ff9d[_0x48a07f('0x120f')]=_0x1e1a5c['data'][_0x48a07f('0x120f')]||[{'message':_0x1e1a5c[_0x48a07f('0xaab')](),'type':_0x48a07f('0x283b')}];for(let _0xc309e5=0x0;_0xc309e5<_0x1e1a5c[_0x48a07f('0x4e8')][_0x48a07f('0x120f')][_0x48a07f('0x1e22')];_0xc309e5++){_0x3330ad['error']({'title':_0x1e1a5c[_0x48a07f('0x4e8')][_0x48a07f('0x120f')][_0xc309e5][_0x48a07f('0x19fd')],'msg':_0x1e1a5c[_0x48a07f('0x4e8')][_0x48a07f('0x120f')][_0xc309e5]['message']});}}else _0x3330ad[_0x48a07f('0x255')]({'title':_0x1e1a5c[_0x48a07f('0xff9')]?_0x48a07f('0x574')+_0x1e1a5c[_0x48a07f('0xff9')]+_0x48a07f('0xb0b')+_0x1e1a5c[_0x48a07f('0x212f')]:_0x48a07f('0x283b'),'msg':_0x1e1a5c[_0x48a07f('0x4e8')]?JSON['stringify'](_0x1e1a5c['data'][_0x48a07f('0x1b86')]):_0x1e1a5c[_0x48a07f('0xaab')]()});});}function _0x581871(_0x58c5be){const _0x4319a0=_0x715597;_0x42ff9d['errors']=[];const _0x1b5ea3=_0x38a3cd[_0x4319a0('0x132b')]()[_0x4319a0('0x134b')](_0x4319a0('0x1fa9'))[_0x4319a0('0x252a')]('The\x20smsAccount\x20will\x20be\x20deleted.')[_0x4319a0('0xb2e')](_0x4319a0('0x13c1'))['ok'](_0x4319a0('0x1167'))[_0x4319a0('0x26c9')](_0x4319a0('0x784'))[_0x4319a0('0x1e25')](_0x58c5be);_0x38a3cd['show'](_0x1b5ea3)[_0x4319a0('0x11bf')](function(){const _0x3584d6=_0x4319a0;_0x3967df['smsAccount'][_0x3584d6('0x2088')]({'id':_0x42ff9d[_0x3584d6('0x234b')]['id']})[_0x3584d6('0x1549')][_0x3584d6('0x11bf')](function(){const _0x108745=_0x3584d6;_0x36f548()[_0x108745('0x14a5')](_0x42ff9d[_0x108745('0x27d9')],{'id':_0x42ff9d[_0x108745('0x234b')]['id']}),_0x3330ad[_0x108745('0x2693')]({'title':_0x108745('0x9a2'),'msg':(_0x42ff9d[_0x108745('0x234b')][_0x108745('0x1909')]||_0x108745('0x234b'))+_0x108745('0x433')}),_0x7d8f(_0x42ff9d[_0x108745('0x234b')]);})[_0x3584d6('0x151d')](function(_0x558699){const _0x203971=_0x3584d6;if(_0x558699['data']&&_0x558699[_0x203971('0x4e8')][_0x203971('0x120f')]&&_0x558699[_0x203971('0x4e8')]['errors'][_0x203971('0x1e22')]){_0x42ff9d[_0x203971('0x120f')]=_0x558699[_0x203971('0x4e8')][_0x203971('0x120f')]||[{'message':_0x558699[_0x203971('0xaab')](),'type':_0x203971('0x154f')}];for(let _0x444f51=0x0;_0x444f51<_0x558699[_0x203971('0x4e8')][_0x203971('0x120f')]['length'];_0x444f51++){_0x3330ad[_0x203971('0x255')]({'title':_0x558699[_0x203971('0x4e8')][_0x203971('0x120f')][_0x444f51][_0x203971('0x19fd')],'msg':_0x558699[_0x203971('0x4e8')][_0x203971('0x120f')][_0x444f51][_0x203971('0x1b86')]});}}else _0x3330ad[_0x203971('0x255')]({'title':_0x558699[_0x203971('0xff9')]?_0x203971('0x574')+_0x558699[_0x203971('0xff9')]+_0x203971('0xb0b')+_0x558699[_0x203971('0x212f')]:'api.smsAccount.delete','msg':_0x558699['data']?JSON[_0x203971('0x3e')](_0x558699[_0x203971('0x4e8')][_0x203971('0x1b86')]):_0x558699[_0x203971('0x1b86')]||_0x558699[_0x203971('0xaab')]()});});},function(){});}function _0x574c2f(_0x1bdfe6){return _0x1bdfe6===null?undefined:new Date(_0x1bdfe6);}function _0x7d8f(_0x5dfeed){const _0x5710d0=_0x715597;_0x38a3cd[_0x5710d0('0x237e')](_0x5dfeed);}}const _0x410ca0=_0x3f89b0,_0x1ee25e=_0x351988['p']+_0x21d0f5('0xf9'),_0x28ac5e=_0x351988['p']+_0x21d0f5('0x1dec'),_0xa9a20c=_0x351988['p']+_0x21d0f5('0x11dc'),_0x43b011=_0x351988['p']+_0x21d0f5('0x280f'),_0x5e98ac=_0x351988['p']+_0x21d0f5('0x380'),_0x27b362=_0x351988['p']+_0x21d0f5('0x1031'),_0xa15a71=_0x351988['p']+_0x21d0f5('0x1d45'),_0x45394a=_0x351988['p']+_0x21d0f5('0x18eb'),_0x51d14c=_0x351988['p']+_0x21d0f5('0x197e'),_0x29319d=_0x351988['p']+_0x21d0f5('0x647'),_0x5a5886=_0x351988['p']+_0x21d0f5('0x1084'),_0x17841c=_0x351988['p']+_0x21d0f5('0xd5a');_0x4dc4f3[_0x21d0f5('0x1e9a')]=['api',_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),_0x21d0f5('0x142d'),_0x21d0f5('0x1150')];const _0x17d27e={'agent':_0x1ee25e,'amazonlex':_0x28ac5e,'autoreply':_0xa9a20c,'close':_0x43b011,'dialogflow':_0x5e98ac,'gotoif':_0x27b362,'gotop':_0xa15a71,'interval':_0x45394a,'noop':_0x51d14c,'queue':_0x29319d,'system':_0x5a5886,'tag':_0x17841c};function _0x4dc4f3(_0x3592f5,_0x4bd7a2,_0x23e89c,_0x1a4f61,_0xa3cb1c){const _0xdb7376=_0x21d0f5,_0x4fc8e3=this;_0x4fc8e3['currentUser']=_0xa3cb1c['getCurrentUser'](),_0x4fc8e3['smsAccount']={},_0x4fc8e3[_0xdb7376('0xb89')]={'count':0x0,'rows':[]},_0x4fc8e3[_0xdb7376('0x3dc')]=[],_0x4fc8e3['crudPermissions'],_0x4fc8e3['query']={'sort':'priority'},_0x4fc8e3['apps']=_0x36f548()['reject'](_0x36f548()['sortBy']([{'app':_0xdb7376('0x1979'),'appType':_0xdb7376('0x507'),'types':[_0xdb7376('0x27e5'),_0xdb7376('0xa8d'),_0xdb7376('0x257d')],'fields':[],'isApp':![]},{'app':_0xdb7376('0x2b8'),'appType':_0xdb7376('0x2b8'),'type':_0xdb7376('0x2b8'),'icon':_0xdb7376('0x206d'),'interval':_0xdb7376('0x1830'),'required':!![],'isApp':!![],'fields':[{'title':_0xdb7376('0x255a'),'name':_0xdb7376('0x10cc'),'type':_0xdb7376('0x25ed'),'param':0x0}]},{'app':_0xdb7376('0x196d'),'appType':'system','type':_0xdb7376('0x196d'),'icon':_0xdb7376('0x206d'),'interval':_0xdb7376('0x1830'),'required':!![],'isApp':!![],'extraApi':[{'name':'variables','field':{'name':_0xdb7376('0xb0'),'key':'name'},'route':_0xdb7376('0xb0'),'filters':{'fields':_0xdb7376('0x721'),'sort':_0xdb7376('0x1909'),'nolimit':!![]},'permissions':{'section':0x3f4}}],'fields':[{'title':_0xdb7376('0x1ae1'),'name':'command','type':_0xdb7376('0x25ed'),'required':!![],'param':0x0},{'title':_0xdb7376('0xb76'),'name':_0xdb7376('0xb0'),'type':_0xdb7376('0x108f'),'values':'variables','value':_0xdb7376('0x1509'),'option':'variable.name','defaultValues':[{'value':'\x27\x27','option':_0xdb7376('0x1a1a')}],'defaultValue':'\x27\x27','param':0x1}]},{'app':_0xdb7376('0x110d'),'appType':_0xdb7376('0x110d'),'type':'goto','icon':_0xdb7376('0x206d'),'interval':_0xdb7376('0x1830'),'isApp':!![],'fields':[{'title':_0xdb7376('0x1c98'),'name':_0xdb7376('0x2804'),'type':_0xdb7376('0x139e'),'required':!![],'min':0x0,'param':0x0}]},{'app':_0xdb7376('0x7cf'),'appType':_0xdb7376('0x7cf'),'type':_0xdb7376('0x7cf'),'icon':_0xdb7376('0x206d'),'interval':'*,*,*,*','isApp':!![],'fields':[{'title':_0xdb7376('0x1c99'),'name':_0xdb7376('0xccd'),'type':_0xdb7376('0x25ed'),'required':!![],'param':0x0},{'title':_0xdb7376('0x1deb'),'name':_0xdb7376('0x1deb'),'type':_0xdb7376('0x139e'),'min':0x1,'required':!![],'param':0x1},{'title':_0xdb7376('0x7ed'),'name':_0xdb7376('0x7ed'),'type':'number','min':0x1,'required':!![],'param':0x2}]},{'app':_0xdb7376('0x150b'),'appType':'queue','foreignKey':_0xdb7376('0x204a'),'type':_0xdb7376('0x150b'),'icon':'icon-apps','interval':'*,*,*,*','isApp':!![],'extraApi':[{'name':_0xdb7376('0x1de3'),'field':{'name':_0xdb7376('0x150b'),'key':_0xdb7376('0x1909')},'route':_0xdb7376('0x1257'),'filters':{'fields':_0xdb7376('0xde'),'sort':_0xdb7376('0x1909'),'nolimit':!![]},'permissions':{'section':0x2bd}}],'fields':[{'title':_0xdb7376('0x1c29'),'name':_0xdb7376('0x150b'),'type':_0xdb7376('0x108f'),'values':_0xdb7376('0x1de3'),'value':'queue.name','option':_0xdb7376('0x19d4'),'defaultValue':0x12c,'required':!![],'param':0x0},{'title':_0xdb7376('0x65'),'name':_0xdb7376('0xfbe'),'type':_0xdb7376('0x139e'),'max':0x20c49b,'min':0x0,'required':!![],'defaultValue':0x12c,'param':0x1}]},{'app':_0xdb7376('0x18c4'),'appType':_0xdb7376('0x18c4'),'type':_0xdb7376('0x18c4'),'foreignKey':_0xdb7376('0x2342'),'icon':'icon-apps','interval':_0xdb7376('0x1830'),'isApp':!![],'extraApi':[{'name':'agents','field':{'name':_0xdb7376('0x18c4'),'key':_0xdb7376('0x1909')},'route':'user','filters':{'fields':_0xdb7376('0x721'),'sort':_0xdb7376('0x1909'),'nolimit':!![],'role':_0xdb7376('0x18c4')},'permissions':{'section':0xca}}],'fields':[{'title':_0xdb7376('0x701'),'name':_0xdb7376('0x18c4'),'type':_0xdb7376('0x108f'),'values':_0xdb7376('0x1401'),'value':_0xdb7376('0xf71'),'option':_0xdb7376('0xf71'),'required':!![],'param':0x0},{'title':_0xdb7376('0x65'),'name':_0xdb7376('0xfbe'),'type':_0xdb7376('0x139e'),'max':0x20c49b,'min':0x0,'required':!![],'defaultValue':0x1e,'param':0x1}]},{'app':_0xdb7376('0x187b'),'appType':_0xdb7376('0x187b'),'type':_0xdb7376('0x187b'),'icon':_0xdb7376('0x206d'),'interval':'*,*,*,*','isApp':!![],'fields':[{'title':'times','name':_0xdb7376('0x663'),'type':'select','defaultValue':'1','values':[{'option':_0xdb7376('0x594'),'value':'1'},{'option':_0xdb7376('0xbf9'),'value':'0'}],'required':!![],'param':0x0},{'title':'Text','name':'text','type':_0xdb7376('0x265f'),'required':!![],'param':0x1}]},{'app':_0xdb7376('0x2132'),'appType':_0xdb7376('0x2132'),'type':_0xdb7376('0x2132'),'icon':_0xdb7376('0x206d'),'interval':_0xdb7376('0x1830'),'isApp':!![],'fields':[{'title':_0xdb7376('0x16e7'),'name':_0xdb7376('0x107a'),'type':_0xdb7376('0x25ed'),'required':!![],'param':0x0}]},{'app':_0xdb7376('0x1d73'),'appType':_0xdb7376('0x1d73'),'type':'tag','foreignKey':_0xdb7376('0x3a3'),'icon':_0xdb7376('0x206d'),'interval':'*,*,*,*','isApp':!![],'extraApi':[{'name':_0xdb7376('0x2763'),'field':{'name':_0xdb7376('0x1d73'),'key':_0xdb7376('0x1909')},'route':_0xdb7376('0x1d73'),'filters':{'fields':_0xdb7376('0x721'),'sort':_0xdb7376('0x1909'),'nolimit':!![]},'permissions':{'section':0x3f0}}],'fields':[{'title':_0xdb7376('0x23ba'),'name':_0xdb7376('0x1d73'),'type':_0xdb7376('0x108f'),'values':_0xdb7376('0x2763'),'value':_0xdb7376('0x6aa'),'option':'tag.name','required':!![],'param':0x0}]},{'app':'dialogflow','appType':_0xdb7376('0x185e'),'type':_0xdb7376('0x185e'),'icon':'icon-apps','interval':_0xdb7376('0x1830'),'isApp':!![],'fields':[{'title':_0xdb7376('0x1554'),'name':_0xdb7376('0xa0c'),'type':_0xdb7376('0x25ed'),'required':!![],'param':0x0},{'title':'language','name':_0xdb7376('0xeff'),'type':_0xdb7376('0x2350'),'defaultValue':_0xdb7376('0x55f'),'values':[{'option':_0xdb7376('0xaa9'),'value':_0xdb7376('0x565')},{'option':_0xdb7376('0x1e7'),'value':'\x27en\x27'},{'option':_0xdb7376('0x1750'),'value':'\x27de\x27'},{'option':_0xdb7376('0x12cc'),'value':_0xdb7376('0x141c')},{'option':_0xdb7376('0x1f08'),'value':_0xdb7376('0x1537')},{'option':_0xdb7376('0x352'),'value':'\x27fr\x27'},{'option':_0xdb7376('0xea'),'value':_0xdb7376('0x149a')},{'option':_0xdb7376('0x1b3d'),'value':_0xdb7376('0x1296')},{'option':_0xdb7376('0x768'),'value':_0xdb7376('0x1749')},{'option':_0xdb7376('0x18fa'),'value':_0xdb7376('0x84')},{'option':_0xdb7376('0x210'),'value':_0xdb7376('0x19bb')},{'option':_0xdb7376('0x11e5'),'value':_0xdb7376('0x1621')},{'option':'Portuguese\x20(Nrazilian)','value':'\x27pt-br\x27'},{'option':'Russian','value':_0xdb7376('0x19dd')},{'option':_0xdb7376('0x52e'),'value':'\x27sv\x27'},{'option':_0xdb7376('0x17ed'),'value':_0xdb7376('0x14e2')},{'option':_0xdb7376('0x2199'),'value':_0xdb7376('0x189f')},{'option':_0xdb7376('0x16e4'),'value':'\x27zh-CN\x27'},{'option':_0xdb7376('0x1b2'),'value':'\x27zh-HK\x27'},{'option':_0xdb7376('0x1f06'),'value':_0xdb7376('0x1c65')}],'required':!![],'param':0x1},{'title':_0xdb7376('0x1cbc'),'name':_0xdb7376('0x1cbc'),'type':'textarea','maxlength':0xff,'required':![],'param':0x2,'help':!![]}]},{'app':_0xdb7376('0x1de4'),'appType':_0xdb7376('0x21a8'),'type':_0xdb7376('0x21a8'),'icon':'icon-apps','interval':_0xdb7376('0x1830'),'isApp':!![],'fields':[{'title':'ProjectID','name':_0xdb7376('0x20e'),'type':_0xdb7376('0x25ed'),'required':!![],'param':0x0},{'title':_0xdb7376('0x1353'),'name':_0xdb7376('0x1f91'),'type':_0xdb7376('0x25ed'),'required':!![],'param':0x1},{'title':_0xdb7376('0xc1c'),'name':_0xdb7376('0x1c6c'),'type':_0xdb7376('0x265f'),'required':!![],'param':0x2},{'title':'language','name':_0xdb7376('0xeff'),'type':'select','defaultValue':_0xdb7376('0x55f'),'values':[{'value':_0xdb7376('0x114b'),'option':_0xdb7376('0x2444')},{'value':_0xdb7376('0xd3e'),'option':_0xdb7376('0x16e4')},{'value':_0xdb7376('0x1c65'),'option':_0xdb7376('0x1f06')},{'value':_0xdb7376('0x565'),'option':_0xdb7376('0xaa9')},{'value':'\x27nl\x27','option':_0xdb7376('0x18fa')},{'value':_0xdb7376('0x55f'),'option':_0xdb7376('0x1e7')},{'value':_0xdb7376('0x1e99'),'option':_0xdb7376('0x2067')},{'value':_0xdb7376('0x130a'),'option':_0xdb7376('0x1eb5')},{'value':_0xdb7376('0x1933'),'option':'English\x20(Great\x20Britain)'},{'value':_0xdb7376('0x99e'),'option':_0xdb7376('0xc14')},{'value':'\x27en-US\x27','option':'English\x20(US)'},{'value':_0xdb7376('0x140e'),'option':'French'},{'value':'\x27fr-CA\x27','option':'French\x20(Canada)'},{'value':_0xdb7376('0x276e'),'option':_0xdb7376('0x2722')},{'value':'\x27de\x27','option':_0xdb7376('0x1750')},{'value':'\x27hi\x27','option':_0xdb7376('0x11db')},{'value':_0xdb7376('0x149a'),'option':_0xdb7376('0xea')},{'value':'\x27it\x27','option':_0xdb7376('0x12cc')},{'value':'\x27ja\x27','option':_0xdb7376('0x1b3d')},{'value':_0xdb7376('0x1749'),'option':_0xdb7376('0x27cd')},{'value':'\x27no\x27','option':_0xdb7376('0x210')},{'value':_0xdb7376('0x263e'),'option':_0xdb7376('0xab7')},{'value':'\x27pt-BR\x27','option':_0xdb7376('0x1476')},{'value':'\x27pt-PT\x27','option':_0xdb7376('0x1949')},{'value':_0xdb7376('0x19dd'),'option':_0xdb7376('0x1995')},{'value':_0xdb7376('0x1537'),'option':_0xdb7376('0x1f08')},{'value':_0xdb7376('0xb4c'),'option':_0xdb7376('0xc6c')},{'value':_0xdb7376('0x1314'),'option':_0xdb7376('0x452')},{'value':_0xdb7376('0x254d'),'option':_0xdb7376('0x52e')},{'value':_0xdb7376('0x14e2'),'option':_0xdb7376('0x17ed')},{'value':'\x27tr\x27','option':_0xdb7376('0x2122')},{'value':'\x27uk\x27','option':'Ukrainian'}],'required':!![],'param':0x3},{'title':_0xdb7376('0x1cbc'),'name':_0xdb7376('0x1cbc'),'type':_0xdb7376('0x265f'),'maxlength':0xff,'param':0x4,'help':!![]}]},{'app':_0xdb7376('0x102c'),'appType':_0xdb7376('0x102c'),'type':_0xdb7376('0x102c'),'icon':_0xdb7376('0x206d'),'interval':_0xdb7376('0x1830'),'isApp':!![],'fields':[{'title':_0xdb7376('0x1a82'),'name':_0xdb7376('0x1a82'),'type':'text','required':!![],'param':0x0},{'title':_0xdb7376('0x1422'),'name':_0xdb7376('0x1422'),'type':_0xdb7376('0x25ed'),'required':!![],'param':0x1},{'title':'lexregion','name':_0xdb7376('0x165a'),'type':'select','defaultValue':_0xdb7376('0xa80'),'values':[{'option':_0xdb7376('0x13be'),'value':'\x27us-east-1\x27'},{'option':_0xdb7376('0x27e6'),'value':_0xdb7376('0xa8')},{'option':_0xdb7376('0x1c40'),'value':_0xdb7376('0x17a6')},{'option':_0xdb7376('0x2704'),'value':'\x27ap-southeast-2\x27'}],'required':!![],'param':0x2},{'title':'botname','name':_0xdb7376('0x1e8f'),'type':_0xdb7376('0x25ed'),'required':!![],'param':0x3},{'title':_0xdb7376('0x1cbc'),'name':_0xdb7376('0x1cbc'),'type':_0xdb7376('0x265f'),'maxlength':0xff,'required':![],'param':0x4,'help':!![]}]}],[_0xdb7376('0x18f5')]),{'isApp':![]}),_0x4fc8e3[_0xdb7376('0x257d')]={'group':{'name':_0xdb7376('0x1525'),'pull':_0xdb7376('0x208b')},'animation':0x64,'sort':![]},_0x4fc8e3[_0xdb7376('0xb9b')]={'group':{'name':'opt2','put':'opt1'},'animation':0x64,'onAdd':function(_0x226340){const _0xc8f806=_0xdb7376;_0x102911(_0x226340,_0x226340[_0xc8f806('0x384')]);},'onSort':function(){_0x5c4d32();}},_0x4fc8e3['init']=_0x3441a8,_0x4fc8e3[_0xdb7376('0x560')]=_0x4d84a5,_0x4fc8e3[_0xdb7376('0x27ac')]=_0x771ce7,_0x4fc8e3['editSmsAccountApp']=_0x102911,_0x4fc8e3[_0xdb7376('0x1452')]=_0x183adb,_0x4fc8e3[_0xdb7376('0x244c')]=_0x3e6baa,_0x4fc8e3[_0xdb7376('0x2665')]=_0x1c5b7f,_0x4fc8e3[_0xdb7376('0xf09')]=_0x5c4d32,_0x4fc8e3['getIntervals']=_0x31cabe;function _0x3441a8(_0x23d6ca,_0x506cc1){const _0x6093a0=_0xdb7376;_0x4fc8e3[_0x6093a0('0x234b')]=_0x23d6ca,_0x4fc8e3[_0x6093a0('0xb25')]=typeof _0x506cc1!=='undefined'?_0x506cc1:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x4fc8e3[_0x6093a0('0xb9b')][_0x6093a0('0xa4b')]=!_0x4fc8e3[_0x6093a0('0xb25')][_0x6093a0('0x25db')]?!![]:![],_0x4fc8e3[_0x6093a0('0x1f2a')]['id']=_0x23d6ca['id'],_0x4fc8e3[_0x6093a0('0x1f2a')][_0x6093a0('0x1210')]=!![],_0x4fc8e3[_0x6093a0('0x1f2a')][_0x6093a0('0x287')]=!![],_0x4fc8e3[_0x6093a0('0x27ac')](),_0x4fc8e3[_0x6093a0('0x431')]();}function _0x4d84a5(_0x46379e,_0x49e061,_0xbe3913){const _0x2f379d=_0xdb7376,_0x596476=_0x4bd7a2['confirm']()[_0x2f379d('0x134b')](_0x2f379d('0x93a'))[_0x2f379d('0x1d03')](''+_0x46379e[_0x2f379d('0x18f5')]+''+_0x2f379d('0x1a'))[_0x2f379d('0xb2e')](_0x2f379d('0x177'))[_0x2f379d('0x1e25')](_0xbe3913)['ok']('OK')[_0x2f379d('0x26c9')](_0x2f379d('0x772'));_0x4bd7a2[_0x2f379d('0xb9')](_0x596476)[_0x2f379d('0x11bf')](function(){const _0x2eb9f0=_0x2f379d;_0x4fc8e3[_0x2eb9f0('0xb89')][_0x2eb9f0('0x19b2')][_0x2eb9f0('0x1ae')](_0x49e061,0x1),_0x5c4d32();},function(){const _0x5ef6f9=_0x2f379d;console['log'](_0x5ef6f9('0x772'));});}function _0x102911(_0x595f85,_0x1ae6ce){const _0x517068=_0xdb7376;if(_0x4fc8e3['smsAccountApps'][_0x517068('0x19b2')][_0x517068('0x1e22')]){const _0x4db1a8=_0x4fc8e3[_0x517068('0xb89')][_0x517068('0x19b2')][_0x1ae6ce]?_0x4fc8e3[_0x517068('0xb89')][_0x517068('0x19b2')][_0x1ae6ce]:_0x4fc8e3[_0x517068('0xb89')][_0x517068('0x19b2')][0x0],_0x597169=(_0x4db1a8[_0x517068('0x27c0')]||_0x4db1a8['app'])[_0x517068('0x20d5')]();_0x4bd7a2['show']({'controller':_0x517068('0x76f')+_0x597169+_0x517068('0xf3f'),'controllerAs':'vm','templateUrl':_0x17d27e[_0x597169],'parent':angular[_0x517068('0x1e73')](_0x23e89c[_0x517068('0x1d2')]),'targetEvent':_0x595f85,'clickOutsideToClose':!![],'locals':{'smsAccountApp':_0x4db1a8,'smsAccount':_0x4fc8e3[_0x517068('0x234b')],'crudPermissions':_0x4fc8e3[_0x517068('0xb25')]}})[_0x517068('0x11bf')](function(_0x427a49){const _0x4796d7=_0x517068;_0x427a49&&(_0x427a49['id']?_0x4fc8e3[_0x4796d7('0xb89')][_0x4796d7('0x19b2')][_0x1ae6ce]=_0x427a49:_0x4fc8e3[_0x4796d7('0xb89')][_0x4796d7('0x19b2')][_0x4796d7('0x1ae')](_0x1ae6ce,0x0,_0x427a49),_0x5c4d32());})[_0x517068('0x151d')](function(_0x118e88){const _0xd24540=_0x517068;_0x118e88&&_0x1a4f61['error']({'title':_0x118e88['status']?_0xd24540('0x574')+_0x118e88[_0xd24540('0xff9')]+'\x20-\x20'+_0x118e88[_0xd24540('0x212f')]:'SYSTEM:EDITMODALSHOW','msg':_0x118e88[_0xd24540('0x4e8')]?JSON[_0xd24540('0x3e')](_0x118e88[_0xd24540('0x4e8')]):_0x118e88[_0xd24540('0xaab')]()});});}}function _0x183adb(_0x4bde74,_0x50cc5b){const _0x305a21=_0xdb7376;if(_0x4fc8e3['smsAccountApps'][_0x305a21('0x19b2')][_0x305a21('0x1e22')]){const _0x7a7f6d=_0x4fc8e3[_0x305a21('0xb89')]['rows'][_0x50cc5b]?_0x4fc8e3[_0x305a21('0xb89')][_0x305a21('0x19b2')][_0x50cc5b]:_0x4fc8e3['smsAccountApps'][_0x305a21('0x19b2')][0x0];_0x4bd7a2[_0x305a21('0xb9')]({'controller':_0x305a21('0x2543'),'controllerAs':'vm','templateUrl':_0x45394a,'parent':angular[_0x305a21('0x1e73')](_0x23e89c[_0x305a21('0x1d2')]),'targetEvent':_0x4bde74,'clickOutsideToClose':!![],'locals':{'interval':{'interval':_0x7a7f6d[_0x305a21('0x507')],'IntervalId':_0x7a7f6d[_0x305a21('0x6b4')],'application':!![]},'intervals':[],'crudPermissions':_0x4fc8e3[_0x305a21('0xb25')]}})[_0x305a21('0x11bf')](function(_0xe50c4){const _0x1f0563=_0x305a21;_0xe50c4&&(_0x7a7f6d[_0x1f0563('0x507')]=_0xe50c4[_0x1f0563('0x507')]||_0x1f0563('0x1830'),_0x7a7f6d[_0x1f0563('0x6b4')]=_0xe50c4['IntervalId']||null,_0x5c4d32());});}}function _0x5c4d32(){const _0x3f8db2=_0xdb7376;let _0x2645e8=0x1,_0x403d62=[];for(let _0x112a89=0x0;_0x112a89<_0x4fc8e3[_0x3f8db2('0xb89')]['rows'][_0x3f8db2('0x1e22')];_0x112a89++){const _0x8cf8ad=_0x4fc8e3['smsAccountApps'][_0x3f8db2('0x19b2')][_0x112a89],_0x22cd76=[],_0x868e93=[];_0x8cf8ad[_0x3f8db2('0xe82')]=_0x8cf8ad[_0x3f8db2('0x507')]!=='*,*,*,*'?[_0x8cf8ad[_0x3f8db2('0x507')]]:_0x8cf8ad[_0x3f8db2('0x6b4')]?_0x36f548()[_0x3f8db2('0x2171')](_0x36f548()['filter'](_0x4fc8e3['intervals'][_0x3f8db2('0x19b2')],{'IntervalId':_0x8cf8ad[_0x3f8db2('0x6b4')]}),_0x3f8db2('0x507')):[],_0x8cf8ad[_0x3f8db2('0x1c87')]=_0x4fc8e3[_0x3f8db2('0x234b')][_0x3f8db2('0x1c87')],_0x8cf8ad['exten']=_0x4fc8e3[_0x3f8db2('0x234b')]['exten'],_0x8cf8ad[_0x3f8db2('0x19fd')]&&(_0x8cf8ad['type']=_0x8cf8ad[_0x3f8db2('0x19fd')][_0x3f8db2('0x20d5')]()),_0x8cf8ad[_0x3f8db2('0x2804')]=_0x22cd76[_0x3f8db2('0x1e22')]?_0x36f548()[_0x3f8db2('0x1093')](_0x22cd76)[_0x3f8db2('0x2804')]+0x1:_0x2645e8,_0x2645e8=(_0x868e93[_0x3f8db2('0x1e22')]?_0x36f548()[_0x3f8db2('0x1093')](_0x868e93)[_0x3f8db2('0x2804')]:_0x8cf8ad[_0x3f8db2('0x2804')])+0x1,_0x403d62=_0x36f548()[_0x3f8db2('0x20bf')](_0x403d62,_0x22cd76,[_0x8cf8ad],_0x868e93);}_0x3592f5[_0x3f8db2('0x234b')][_0x3f8db2('0x25ec')]({'id':_0x4fc8e3['smsAccount']['id']},_0x36f548()['sortBy'](_0x403d62,'priority'))[_0x3f8db2('0x1549')]['then'](function(_0x24ab61){const _0x234308=_0x3f8db2;_0x4fc8e3['smsAccountApps'][_0x234308('0x19b2')]=_0x24ab61[_0x234308('0x19b2')];})[_0x3f8db2('0x151d')](function(_0x449a6b){const _0x242395=_0x3f8db2;console[_0x242395('0x255')](_0x449a6b);});}function _0x317979(_0x3e6b3f){const _0x499259=_0xdb7376;_0x4fc8e3[_0x499259('0xb89')]=_0x3e6b3f||{'count':0x0,'rows':[]};}function _0x31cabe(){const _0x1493bb=_0xdb7376;return _0x3592f5['interval'][_0x1493bb('0xbaa')]({'fields':'id,interval,IntervalId'})[_0x1493bb('0x1549')][_0x1493bb('0x11bf')](function(_0x3580a1){const _0x5d7feb=_0x1493bb;_0x4fc8e3[_0x5d7feb('0xe82')]=_0x3580a1;})['catch'](function(_0x392548){const _0x1403b5=_0x1493bb;console[_0x1403b5('0x255')](_0x392548);});}function _0x771ce7(){const _0x3e525a=_0xdb7376;_0x4fc8e3['promise']=_0x3592f5['smsAccount']['getApplications'](_0x4fc8e3[_0x3e525a('0x1f2a')],_0x317979)[_0x3e525a('0x1549')];}function _0x3e6baa(_0x56b1bb){const _0x28ccd1=_0xdb7376;_0x36f548()[_0x28ccd1('0x14a5')](_0x4fc8e3[_0x28ccd1('0xb89')][_0x28ccd1('0x19b2')],{'id':_0x56b1bb['id']}),_0x5c4d32(),_0x1a4f61['success']({'title':'App\x20deleted!','msg':_0x56b1bb[_0x28ccd1('0x18f5')]?_0x56b1bb[_0x28ccd1('0x18f5')]+_0x28ccd1('0x433'):''});}function _0x1c5b7f(_0x4ff3b2){const _0x193fcc=_0xdb7376,_0xa9d637=_0x4bd7a2[_0x193fcc('0x132b')]()[_0x193fcc('0x134b')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20applications?')[_0x193fcc('0x1d03')](''+_0x4fc8e3[_0x193fcc('0x3dc')][_0x193fcc('0x1e22')]+_0x193fcc('0xac6')+_0x193fcc('0x1a'))[_0x193fcc('0xb2e')]('delete\x20applications')[_0x193fcc('0x1e25')](_0x4ff3b2)['ok']('OK')[_0x193fcc('0x26c9')](_0x193fcc('0x772'));_0x4bd7a2['show'](_0xa9d637)[_0x193fcc('0x11bf')](function(){const _0x548101=_0x193fcc;_0x4fc8e3[_0x548101('0x3dc')][_0x548101('0x1f88')](function(_0x32e002){const _0x592e85=_0x548101;_0x36f548()['remove'](_0x4fc8e3[_0x592e85('0xb89')][_0x592e85('0x19b2')],{'id':_0x32e002['id']});}),_0x4fc8e3[_0x548101('0x3dc')]=[],_0x5c4d32();});}}const _0x319d81=_0x4dc4f3;_0x19220a[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0x142d'),_0x21d0f5('0x12a5'),_0x21d0f5('0x234b'),_0x21d0f5('0x27d9'),_0x21d0f5('0x25f9'),_0x21d0f5('0xb6b'),_0x21d0f5('0x1150'),_0x21d0f5('0xb25')];function _0x19220a(_0x40b61a,_0x16cd4d,_0x119a47,_0x10b329,_0x47635c,_0x5c582b,_0x30e5bc,_0x1165dd,_0x247431,_0x3e604e){const _0x3fa436=_0x21d0f5,_0x2d3bd5=this;_0x2d3bd5[_0x3fa436('0x32a')]=_0x247431['getCurrentUser'](),_0x2d3bd5[_0x3fa436('0x234b')]=_0x47635c,_0x2d3bd5[_0x3fa436('0xb25')]=_0x3e604e,_0x2d3bd5[_0x3fa436('0x25f9')]=_0x30e5bc,_0x2d3bd5[_0x3fa436('0x22')]=[],_0x2d3bd5[_0x3fa436('0x63')]=[],_0x2d3bd5['selectedItems']=[],_0x2d3bd5['startingAllowedItems']=[],_0x2d3bd5[_0x3fa436('0x21ed')]=[],_0x2d3bd5[_0x3fa436('0x1eda')]=![],_0x2d3bd5[_0x3fa436('0x277c')]=_0x1d2416,_0x2d3bd5['saveAgents']=_0x2995af,_0x2d3bd5[_0x3fa436('0xc4e')]=_0x4c4689,_0x2d3bd5['dualMultiselectOptions']={'readOnly':!_0x2d3bd5['crudPermissions'][_0x3fa436('0x25db')],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x3fa436('0x1909'),'line1':_0x3fa436('0x27af'),'line2':[_0x3fa436('0x1909'),_0x3fa436('0x1a04')],'line3':'','labelAll':_0x1165dd[_0x3fa436('0x10c2')](_0x3fa436('0x250e')),'labelSelected':_0x1165dd[_0x3fa436('0x10c2')](_0x3fa436('0x24b4')),'transferCallback':function(){const _0x4e5697=_0x3fa436,_0x3c5506=_0x36f548()[_0x4e5697('0x1a1b')](_0x2d3bd5[_0x4e5697('0x21ed')],_0x2d3bd5['selectedItems'],'id');_0x2d3bd5['pendingChanges']=_0x36f548()['isEmpty'](_0x3c5506)?![]:!![];}};function _0x1d2416(){const _0x586e56=_0x3fa436;return _0x247431[_0x586e56('0x4ee')](_0x586e56('0xf45'))?_0x58f156()[_0x586e56('0x151d')](function(_0x52bbd2){const _0x543c25=_0x586e56;_0x119a47[_0x543c25('0x255')]({'title':_0x52bbd2[_0x543c25('0xff9')]?_0x543c25('0x574')+_0x52bbd2[_0x543c25('0xff9')]+'\x20-\x20'+_0x52bbd2[_0x543c25('0x212f')]:_0x543c25('0x912'),'msg':_0x52bbd2['status']?JSON['stringify'](_0x52bbd2['data']):_0x52bbd2[_0x543c25('0xaab')]()});}):_0x2aeb48()[_0x586e56('0x11bf')](function(_0xb1bc58){const _0x2e253b=_0x586e56;return _0x2d3bd5[_0x2e253b('0xe6')]=_0xb1bc58,_0x58f156();})[_0x586e56('0x151d')](function(_0x4307e3){const _0x55ba24=_0x586e56;_0x119a47[_0x55ba24('0x255')]({'title':_0x4307e3['status']?_0x55ba24('0x574')+_0x4307e3[_0x55ba24('0xff9')]+_0x55ba24('0xb0b')+_0x4307e3['statusText']:_0x55ba24('0x912'),'msg':_0x4307e3[_0x55ba24('0xff9')]?JSON[_0x55ba24('0x3e')](_0x4307e3[_0x55ba24('0x4e8')]):_0x4307e3[_0x55ba24('0xaab')]()});});}function _0x2aeb48(){return _0x16cd4d(function(_0x844b,_0x2eb725){const _0xb74698=a0_0xaf0c;_0x10b329[_0xb74698('0x1d63')]['get']({'userProfileId':_0x2d3bd5[_0xb74698('0x32a')]['userProfileId'],'name':_0xb74698('0x4b1')})[_0xb74698('0x1549')][_0xb74698('0x11bf')](function(_0x45d8c5){const _0x192213=_0xb74698,_0x39c3c0=_0x45d8c5&&_0x45d8c5[_0x192213('0x19b2')]?_0x45d8c5[_0x192213('0x19b2')][0x0]:null;_0x844b(_0x39c3c0);})[_0xb74698('0x151d')](function(_0x54fb37){_0x2eb725(_0x54fb37);});});}function _0x58f156(){return _0x16cd4d(function(_0x7a57ad,_0x3def45){const _0x274bce=a0_0xaf0c;return _0x5a67cd()[_0x274bce('0x11bf')](function(_0x11b9fc){const _0x597252=_0x274bce;return _0x2d3bd5[_0x597252('0x22')]=_0x11b9fc[_0x597252('0x19b2')]?_0x11b9fc['rows']:[],_0x247431['hasRole'](_0x597252('0xf45'))?_0x11b9fc:_0x2d3bd5[_0x597252('0xe6')]?_0x2d3bd5[_0x597252('0xe6')]['autoAssociation']?_0x11b9fc:_0x524d03():null;})[_0x274bce('0x11bf')](function(_0xcccae0){const _0x150e04=_0x274bce,_0x500045=_0xcccae0&&_0xcccae0[_0x150e04('0x19b2')]?_0xcccae0[_0x150e04('0x19b2')]:[];return _0x2d3bd5[_0x150e04('0x63')]=_0x36f548()[_0x150e04('0x2171')](_0x500045,function(_0x38b0d9){const _0x265f5e=_0x150e04;return _0x36f548()[_0x265f5e('0x1ad4')](_0x2d3bd5[_0x265f5e('0x22')],{'id':_0x247431[_0x265f5e('0x4ee')]('admin')||_0x2d3bd5['section']['autoAssociation']?_0x38b0d9['id']:_0x38b0d9['resourceId']});}),_0x2d3bd5[_0x150e04('0x1c6f')]=angular[_0x150e04('0x6fb')](_0x2d3bd5[_0x150e04('0x63')]),_0x2d3bd5[_0x150e04('0x22')]['forEach'](function(_0x43858c){const _0x54959f=_0x150e04,_0x486a77=_0x36f548()['find'](_0x2d3bd5[_0x54959f('0x63')],{'id':_0x43858c['id']});_0x247431[_0x54959f('0x4ee')](_0x54959f('0xf45'))?_0x43858c[_0x54959f('0xde9')]=!![]:_0x43858c[_0x54959f('0xde9')]=typeof _0x486a77!==_0x54959f('0x13e9')?!![]:![];}),_0x4813e3();})['then'](function(_0xcecfe){const _0x35323d=_0x274bce,_0x40d359=_0xcecfe&&_0xcecfe[_0x35323d('0x19b2')]?_0xcecfe['rows']:[];_0x2d3bd5['selectedItems']=_0x36f548()[_0x35323d('0x2171')](_0x40d359,function(_0x454123){const _0x474c3a=_0x35323d,_0x3560d8=_0x36f548()[_0x474c3a('0x1ad4')](_0x2d3bd5[_0x474c3a('0x22')],{'id':_0x454123['id']});return _0x3560d8[_0x474c3a('0xf47')]=_0x454123['UserSmsAccount']?_0x474c3a('0x1caa')+_0x454123[_0x474c3a('0x111b')][_0x474c3a('0xf47')]:'',_0x3560d8[_0x474c3a('0x1a04')]=typeof _0x454123[_0x474c3a('0x1a04')]!==_0x474c3a('0x13e9')?'<'+_0x454123[_0x474c3a('0x1a04')]+'>':'',_0x3560d8;}),_0x2d3bd5[_0x35323d('0x21ed')]=angular[_0x35323d('0x6fb')](_0x2d3bd5['selectedItems']),_0x2d3bd5[_0x35323d('0xec5')][_0x35323d('0x26cc')]=_0x2d3bd5[_0x35323d('0x26cc')],_0x2d3bd5['dualMultiselectOptions'][_0x35323d('0x22')]=_0x36f548()['differenceBy'](_0x2d3bd5[_0x35323d('0x63')],_0x2d3bd5[_0x35323d('0xec5')][_0x35323d('0x26cc')],'id'),_0x7a57ad();})['catch'](function(_0x260697){_0x3def45(_0x260697);});});}function _0x524d03(){return _0x16cd4d(function(_0x39fa71,_0x559a08){const _0x33d0da=a0_0xaf0c;return _0x10b329[_0x33d0da('0x26d1')][_0x33d0da('0xbaa')]({'sectionId':_0x2d3bd5[_0x33d0da('0xe6')]['id'],'nolimit':!![]})[_0x33d0da('0x1549')][_0x33d0da('0x11bf')](function(_0x2d16c7){_0x39fa71(_0x2d16c7);})[_0x33d0da('0x151d')](function(_0x52ada2){_0x559a08(_0x52ada2);});});}function _0x4813e3(){return _0x16cd4d(function(_0x5b55e4,_0x4b5d65){const _0x556a4f=a0_0xaf0c;return _0x10b329[_0x556a4f('0x234b')][_0x556a4f('0x2783')]({'id':_0x2d3bd5[_0x556a4f('0x234b')]['id'],'fields':_0x556a4f('0x13d3'),'nolimit':!![],'role':'agent'})[_0x556a4f('0x1549')][_0x556a4f('0x11bf')](function(_0x18042f){_0x5b55e4(_0x18042f);})[_0x556a4f('0x151d')](function(_0x1c4d7c){_0x4b5d65(_0x1c4d7c);});});}function _0x5a67cd(){return _0x16cd4d(function(_0x314384,_0x4f12bd){const _0x321228=a0_0xaf0c;return _0x10b329['user'][_0x321228('0xbaa')]({'fields':_0x321228('0x13d3'),'nolimit':!![],'role':_0x321228('0x18c4')})[_0x321228('0x1549')]['then'](function(_0x276e49){_0x314384(_0x276e49);})[_0x321228('0x151d')](function(_0xf12949){_0x4f12bd(_0xf12949);});});}function _0xdd4454(_0x3c0035){return _0x16cd4d(function(_0xb40ef9,_0x2d35ef){const _0x4e64ca=a0_0xaf0c;_0x36f548()[_0x4e64ca('0x1fc5')](_0x3c0035)?_0xb40ef9():_0x10b329[_0x4e64ca('0x234b')]['addAgents']({'id':_0x2d3bd5[_0x4e64ca('0x234b')]['id'],'ids':_0x36f548()[_0x4e64ca('0x2171')](_0x3c0035,'id')})['$promise'][_0x4e64ca('0x11bf')](function(){_0xb40ef9();})[_0x4e64ca('0x151d')](function(_0x4d9615){_0x2d35ef(_0x4d9615);});});}function _0x12fd3c(_0x1cc3fc){return _0x16cd4d(function(_0x3dd2e0,_0x31e4a2){const _0x3d27a9=a0_0xaf0c;_0x36f548()['isEmpty'](_0x1cc3fc)?_0x3dd2e0():_0x10b329[_0x3d27a9('0x234b')]['removeAgents']({'id':_0x2d3bd5[_0x3d27a9('0x234b')]['id'],'ids':_0x36f548()[_0x3d27a9('0x2171')](_0x1cc3fc,'id')})[_0x3d27a9('0x1549')][_0x3d27a9('0x11bf')](function(){_0x3dd2e0();})[_0x3d27a9('0x151d')](function(_0x2dca5a){_0x31e4a2(_0x2dca5a);});});}function _0x2995af(){const _0x3543fb=_0x3fa436,_0x22d2ed=_0x36f548()[_0x3543fb('0x2753')](_0x2d3bd5[_0x3543fb('0x21ed')],_0x2d3bd5['selectedItems'],'id'),_0x459c61=_0x36f548()[_0x3543fb('0x2753')](_0x2d3bd5[_0x3543fb('0x26cc')],_0x2d3bd5['startingSelectedItems'],'id');return _0x12fd3c(_0x22d2ed)['then'](function(){return _0xdd4454(_0x459c61);})['then'](function(){const _0x24e601=_0x3543fb;_0x2d3bd5['pendingChanges']=![],_0x2d3bd5[_0x24e601('0x1c6f')]=angular[_0x24e601('0x6fb')](_0x2d3bd5[_0x24e601('0x63')]),_0x2d3bd5[_0x24e601('0x21ed')]=angular[_0x24e601('0x6fb')](_0x2d3bd5[_0x24e601('0x26cc')]),_0x119a47[_0x24e601('0x2693')]({'title':_0x24e601('0x2243'),'msg':_0x24e601('0x2273')});})['catch'](function(_0x4a754d){const _0x1a07da=_0x3543fb;_0x119a47['error']({'title':_0x4a754d['status']?_0x1a07da('0x574')+_0x4a754d[_0x1a07da('0xff9')]+_0x1a07da('0xb0b')+_0x4a754d['statusText']:'SYSTEM:LISTS_ASSOCIATION','msg':_0x4a754d['status']?JSON[_0x1a07da('0x3e')](_0x4a754d['data']):_0x4a754d['toString']()});});}function _0x4c4689(){const _0x463f5b=_0x3fa436;_0x40b61a[_0x463f5b('0x237e')]();}}const _0xbdea94=_0x19220a;_0x5eb690[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0x142d'),_0x21d0f5('0x1e69'),_0x21d0f5('0x234b'),_0x21d0f5('0x12a5'),'Auth','crudPermissions'];function _0x5eb690(_0x3b2c15,_0xa55906,_0xaa0f21,_0x3d6405,_0x17c71e,_0x1bd020,_0x1ce2b0,_0x1b98e2){const _0x91a3a6=_0x21d0f5,_0xc212a3=this;_0xc212a3['currentUser']=_0x1ce2b0[_0x91a3a6('0x2428')](),_0xc212a3['errors']=[],_0xc212a3[_0x91a3a6('0x134b')]=_0x91a3a6('0x1a49')+(_0x3d6405['appType']||_0x3d6405['app'])[_0x91a3a6('0xa6f')](),_0xc212a3[_0x91a3a6('0x18c4')]=angular[_0x91a3a6('0x6fb')](_0x3d6405),_0xc212a3[_0x91a3a6('0xb25')]=_0x1b98e2,_0xc212a3['hasModulePermissions']={};if(_0xc212a3[_0x91a3a6('0x18c4')]['appdata'])switch(_0xc212a3[_0x91a3a6('0x18c4')][_0x91a3a6('0x27c0')]?_0xc212a3['agent'][_0x91a3a6('0x27c0')]['toLowerCase']():_0xc212a3[_0x91a3a6('0x18c4')][_0x91a3a6('0x18f5')][_0x91a3a6('0x20d5')]()){case _0x91a3a6('0xa8d'):break;case _0x91a3a6('0x185e'):{const _0x439ee7=_0xc212a3[_0x91a3a6('0x18c4')][_0x91a3a6('0x13fc')]['split'](',');_0xc212a3['agent'][_0x91a3a6('0xa0c')]=_0x439ee7[0x0],_0xc212a3[_0x91a3a6('0x18c4')][_0x91a3a6('0xeff')]=_0x439ee7[0x1],_0xc212a3[_0x91a3a6('0x18c4')][_0x91a3a6('0x1cbc')]=_0x439ee7[_0x91a3a6('0x1b77')](0x2,_0x439ee7[_0x91a3a6('0x1e22')])[_0x91a3a6('0xa04')](',');}break;case _0x91a3a6('0x21a8'):{const _0x180308=_0xc212a3[_0x91a3a6('0x18c4')]['appdata'][_0x91a3a6('0xaf8')](',');_0xc212a3[_0x91a3a6('0x18c4')][_0x91a3a6('0x20e')]=_0x180308[0x0],_0xc212a3['agent']['clientEmail']=_0x180308[0x1],_0xc212a3[_0x91a3a6('0x18c4')][_0x91a3a6('0x1c6c')]=_0x180308[0x2],_0xc212a3[_0x91a3a6('0x18c4')][_0x91a3a6('0xeff')]=_0x180308[0x3],_0xc212a3[_0x91a3a6('0x18c4')][_0x91a3a6('0x1cbc')]=_0x180308['slice'](0x4,_0x180308[_0x91a3a6('0x1e22')])[_0x91a3a6('0xa04')](',');}break;case _0x91a3a6('0x102c'):{const _0x2e75c1=_0xc212a3[_0x91a3a6('0x18c4')][_0x91a3a6('0x13fc')]['split'](',');_0xc212a3[_0x91a3a6('0x18c4')][_0x91a3a6('0x1a82')]=_0x2e75c1[0x0],_0xc212a3[_0x91a3a6('0x18c4')]['secretaccesskey']=_0x2e75c1[0x1],_0xc212a3[_0x91a3a6('0x18c4')][_0x91a3a6('0x165a')]=_0x2e75c1[0x2],_0xc212a3[_0x91a3a6('0x18c4')][_0x91a3a6('0x1e8f')]=_0x2e75c1[0x3],_0xc212a3[_0x91a3a6('0x18c4')][_0x91a3a6('0x1cbc')]=_0x2e75c1['slice'](0x4,_0x2e75c1[_0x91a3a6('0x1e22')])['join'](',');}break;case _0x91a3a6('0x187b'):{const _0x4e9972=_0xc212a3[_0x91a3a6('0x18c4')][_0x91a3a6('0x13fc')][_0x91a3a6('0xaf8')](',');_0xc212a3[_0x91a3a6('0x18c4')][_0x91a3a6('0x663')]=isNaN(_0x4e9972[0x0])?_0x4e9972[0x0]:parseInt(_0x4e9972[0x0],0xa),_0xc212a3[_0x91a3a6('0x18c4')][_0x91a3a6('0x25ed')]=_0x4e9972[_0x91a3a6('0x1b77')](0x1,_0x4e9972[_0x91a3a6('0x1e22')])[_0x91a3a6('0xa04')](',');}break;case _0x91a3a6('0x1b86'):_0xc212a3[_0x91a3a6('0x18c4')][_0x91a3a6('0x25ed')]=_0xc212a3[_0x91a3a6('0x18c4')][_0x91a3a6('0x13fc')];break;case _0x91a3a6('0xe50'):_0xc212a3[_0x91a3a6('0x18c4')][_0x91a3a6('0x1909')]=_0xc212a3[_0x91a3a6('0x18c4')][_0x91a3a6('0x13fc')][_0x91a3a6('0xaf8')]('=')[0x0],_0xc212a3[_0x91a3a6('0x18c4')][_0x91a3a6('0x10cc')]=_0xc212a3[_0x91a3a6('0x18c4')]['appdata'][_0x91a3a6('0xaf8')]('=')[0x1];break;case'agi':_0xc212a3['agent']['project']=_0xc212a3[_0x91a3a6('0x18c4')][_0x91a3a6('0x13fc')];break;default:{const _0x53f818=_0xc212a3[_0x91a3a6('0x18c4')]['appdata'][_0x91a3a6('0xaf8')](',');_0xc212a3[_0x91a3a6('0x18c4')]['agent']=_0x36f548()[_0x91a3a6('0x1fc5')](_0x53f818[0x0])?_0x53f818[0x0]:isNaN(_0x53f818[0x0])?_0x53f818[0x0]:parseInt(_0x53f818[0x0],0xa),_0xc212a3[_0x91a3a6('0x18c4')][_0x91a3a6('0xfbe')]=_0x36f548()[_0x91a3a6('0x1fc5')](_0x53f818[0x1])?_0x53f818[0x1]:isNaN(_0x53f818[0x1])?_0x53f818[0x1]:parseInt(_0x53f818[0x1],0xa);}break;}else _0xc212a3[_0x91a3a6('0x18c4')][_0x91a3a6('0xfbe')]=0x1e;_0xc212a3[_0x91a3a6('0x18c4')][_0x91a3a6('0x19fd')]&&_0xc212a3[_0x91a3a6('0x18c4')][_0x91a3a6('0x19fd')]['toLowerCase']()===_0x91a3a6('0x25b6')&&_0xc212a3[_0x91a3a6('0x18c4')][_0x91a3a6('0x27c0')][_0x91a3a6('0x20d5')]()===_0x91a3a6('0x1a64')&&(_0xc212a3[_0x91a3a6('0x18c4')][_0x91a3a6('0x2137')]=_0xc212a3[_0x91a3a6('0x18c4')][_0x91a3a6('0x1546')]?_0xc212a3[_0x91a3a6('0x18c4')][_0x91a3a6('0x1546')]['split']('$')[0x0]:undefined,_0xc212a3[_0x91a3a6('0x18c4')][_0x91a3a6('0x7d0')]=_0xc212a3[_0x91a3a6('0x18c4')][_0x91a3a6('0xc38')]?'CALLERID(all)='+_0xc212a3[_0x91a3a6('0x18c4')][_0x91a3a6('0xc38')]:undefined);_0xc212a3[_0x91a3a6('0xfff')]=_0x19d973,_0xc212a3['closeDialog']=_0x5554ed,_0x1ce2b0[_0x91a3a6('0x4ee')]('admin')?_0x1bd020['user'][_0x91a3a6('0xbaa')]({'fields':_0x91a3a6('0x721'),'sort':'name','nolimit':_0x91a3a6('0x204c'),'role':_0x91a3a6('0x18c4')})['$promise'][_0x91a3a6('0x11bf')](function(_0x23ed26){const _0x33640d=_0x91a3a6;_0xc212a3[_0x33640d('0x1401')]=_0x23ed26[_0x33640d('0x19b2')]||[];})[_0x91a3a6('0x151d')](function(_0x552d49){const _0x369e10=_0x91a3a6;_0xaa0f21[_0x369e10('0x255')]({'title':_0x552d49[_0x369e10('0xff9')]?'API:'+_0x552d49['status']+'\x20-\x20'+_0x552d49[_0x369e10('0x212f')]:_0x369e10('0x912'),'msg':_0x552d49[_0x369e10('0x4e8')]?JSON[_0x369e10('0x3e')](_0x552d49['data']):_0x552d49[_0x369e10('0xaab')]()});}):_0x1bd020[_0x91a3a6('0x21d9')][_0x91a3a6('0xbaa')]({'fields':_0x91a3a6('0x721'),'sort':_0x91a3a6('0x1909'),'nolimit':_0x91a3a6('0x204c'),'role':_0x91a3a6('0x18c4')})[_0x91a3a6('0x1549')][_0x91a3a6('0x11bf')](function(_0x41dc9d){_0xc212a3['agents']=_0x41dc9d['rows']||[];})['then'](function(){const _0x4dfe34=_0x91a3a6;return _0x1bd020[_0x4dfe34('0x1d63')][_0x4dfe34('0xbaa')]({'userProfileId':_0xc212a3[_0x4dfe34('0x32a')][_0x4dfe34('0x781')],'sectionId':0xca})[_0x4dfe34('0x1549')];})['then'](function(_0x17c475){const _0x23054f=_0x91a3a6,_0x1ecbdd=_0x17c475&&_0x17c475[_0x23054f('0x19b2')]?_0x17c475['rows'][0x0]:null;if(!_0x1ecbdd){const _0x1451df=[];let _0x13aad2=null;_0xc212a3[_0x23054f('0x18c4')]&&(_0x13aad2=_0x36f548()[_0x23054f('0x1ad4')](_0xc212a3[_0x23054f('0x1401')],{'name':_0xc212a3['agent']['agent']}));for(let _0x23cc28=0x0;_0x23cc28<_0xc212a3[_0x23054f('0x1401')][_0x23054f('0x1e22')];_0x23cc28++){_0x13aad2&&_0xc212a3[_0x23054f('0x1401')][_0x23cc28]['id']===_0x13aad2['id']&&(_0xc212a3['agents'][_0x23cc28][_0x23054f('0x254a')]=![],_0x1451df[_0x23054f('0x105d')](_0xc212a3[_0x23054f('0x1401')][_0x23cc28]));}_0xc212a3[_0x23054f('0x1401')]=_0x1451df;}else{if(!_0x1ecbdd[_0x23054f('0xf11')])return _0x1bd020[_0x23054f('0x26d1')][_0x23054f('0xbaa')]({'sectionId':_0x1ecbdd['id']})['$promise']['then'](function(_0x1f5f0d){const _0x58a9d0=_0x23054f,_0x523e4d=_0x36f548()[_0x58a9d0('0x2171')](_0x1f5f0d[_0x58a9d0('0x19b2')],function(_0x28451e){const _0x3d3531=_0x58a9d0;return _0x36f548()[_0x3d3531('0x1ad4')](_0xc212a3[_0x3d3531('0x1401')],{'id':_0x28451e[_0x3d3531('0x15a5')]});});let _0xa60b3c=null;_0xc212a3[_0x58a9d0('0x18c4')]&&(_0xa60b3c=_0x36f548()['find'](_0xc212a3['agents'],{'name':_0xc212a3['agent']['agent']}));if(_0xa60b3c&&!_0x36f548()['some'](_0x523e4d,['id',_0xa60b3c['id']])){const _0x3258f9=_0x36f548()[_0x58a9d0('0x1ad4')](_0xc212a3['agents'],{'id':_0xa60b3c['id']});_0x3258f9['canSelect']=![],_0x523e4d[_0x58a9d0('0x105d')](_0x3258f9);}_0xc212a3[_0x58a9d0('0x1401')]=_0x523e4d;});}})[_0x91a3a6('0x151d')](function(_0x5ab2a6){const _0x500a4e=_0x91a3a6;_0xaa0f21[_0x500a4e('0x255')]({'title':_0x5ab2a6[_0x500a4e('0xff9')]?'API:'+_0x5ab2a6[_0x500a4e('0xff9')]+_0x500a4e('0xb0b')+_0x5ab2a6['statusText']:_0x500a4e('0x1939'),'msg':_0x5ab2a6[_0x500a4e('0x4e8')]?JSON[_0x500a4e('0x3e')](_0x5ab2a6[_0x500a4e('0x4e8')]):_0x5ab2a6['toString']()});});function _0x19d973(){const _0x4ac8d2=_0x91a3a6;_0xc212a3['errors']=[];const _0x899db8=[];_0xc212a3[_0x4ac8d2('0x18c4')][_0x4ac8d2('0x19fd')]&&_0xc212a3[_0x4ac8d2('0x18c4')][_0x4ac8d2('0x19fd')][_0x4ac8d2('0x20d5')]()===_0x4ac8d2('0x25b6')&&_0xc212a3[_0x4ac8d2('0x18c4')][_0x4ac8d2('0x27c0')]===_0x4ac8d2('0x1bf6')&&(_0xc212a3[_0x4ac8d2('0x18c4')][_0x4ac8d2('0x1546')]=_0x17c71e[_0x4ac8d2('0x388')]?(_0xc212a3[_0x4ac8d2('0x18c4')]['prefix']||'')+_0x4ac8d2('0x2100')+_0x17c71e[_0x4ac8d2('0x388')]+'}':(_0xc212a3[_0x4ac8d2('0x18c4')][_0x4ac8d2('0x2137')]||'')+_0x4ac8d2('0x1f76'),_0x17c71e[_0x4ac8d2('0x897')]!=='none'?_0xc212a3[_0x4ac8d2('0x18c4')][_0x4ac8d2('0x249a')]['indexOf']('U(xcally-mixmonitor-context)')<0x0&&(_0xc212a3[_0x4ac8d2('0x18c4')]['options']+=_0x4ac8d2('0x22c9')):_0xc212a3[_0x4ac8d2('0x18c4')][_0x4ac8d2('0x249a')]=_0xc212a3[_0x4ac8d2('0x18c4')]['options'][_0x4ac8d2('0x814')](_0x4ac8d2('0x22c9'),''));const _0xedb0a8=_0x36f548()[_0x4ac8d2('0x1ad4')](_0xc212a3[_0x4ac8d2('0x1401')],{'name':_0xc212a3['agent'][_0x4ac8d2('0x18c4')]});_0xedb0a8&&(_0xc212a3[_0x4ac8d2('0x18c4')][_0x4ac8d2('0x2342')]=_0xedb0a8['id']);if(_0xc212a3['agent'][_0x4ac8d2('0x27c0')]&&_0xc212a3[_0x4ac8d2('0x18c4')][_0x4ac8d2('0x27c0')]==='custom'){}else switch((_0xc212a3[_0x4ac8d2('0x18c4')]['app']||_0xc212a3[_0x4ac8d2('0x18c4')][_0x4ac8d2('0x27c0')])[_0x4ac8d2('0x20d5')]()){case _0x4ac8d2('0xe50'):_0xc212a3['agent'][_0x4ac8d2('0x13fc')]=_0xc212a3[_0x4ac8d2('0x18c4')]['name']+'='+_0xc212a3['agent'][_0x4ac8d2('0x10cc')];break;case _0x4ac8d2('0xa8d'):break;default:_0x899db8[0x0]=_0xc212a3[_0x4ac8d2('0x18c4')][_0x4ac8d2('0x18c4')],_0x899db8[0x1]=_0xc212a3['agent'][_0x4ac8d2('0xfbe')],_0xc212a3[_0x4ac8d2('0x18c4')][_0x4ac8d2('0x13fc')]=_0x899db8['join'](',');}_0x5554ed(_0xc212a3[_0x4ac8d2('0x18c4')]);}function _0x5554ed(_0xedee49){_0x3b2c15['hide'](_0xedee49);}}const _0xd4fa6f=_0x5eb690;_0x395ba7[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0x142d'),_0x21d0f5('0x1e69'),_0x21d0f5('0x234b'),'api',_0x21d0f5('0x1150'),_0x21d0f5('0xb25')];function _0x395ba7(_0x5a16d4,_0x15f9d9,_0x2c0156,_0x131b6d,_0x26bf53,_0x56c410,_0xbd319a,_0x151e1c){const _0x5a0b9d=_0x21d0f5,_0x5cfa5a=this;_0x5cfa5a[_0x5a0b9d('0x32a')]=_0xbd319a[_0x5a0b9d('0x2428')](),_0x5cfa5a['errors']=[],_0x5cfa5a['title']=_0x5a0b9d('0x1a49')+(_0x131b6d['appType']||_0x131b6d['app'])[_0x5a0b9d('0xa6f')](),_0x5cfa5a[_0x5a0b9d('0x102c')]=angular[_0x5a0b9d('0x6fb')](_0x131b6d),_0x5cfa5a[_0x5a0b9d('0xb25')]=_0x151e1c,_0x5cfa5a[_0x5a0b9d('0x2c9')]={};if(_0x5cfa5a['amazonlex']['appdata'])switch(_0x5cfa5a[_0x5a0b9d('0x102c')][_0x5a0b9d('0x27c0')]?_0x5cfa5a[_0x5a0b9d('0x102c')][_0x5a0b9d('0x27c0')][_0x5a0b9d('0x20d5')]():_0x5cfa5a['amazonlex'][_0x5a0b9d('0x18f5')]['toLowerCase']()){case _0x5a0b9d('0xa8d'):break;case _0x5a0b9d('0x185e'):{const _0x1db320=_0x5cfa5a['amazonlex'][_0x5a0b9d('0x13fc')][_0x5a0b9d('0xaf8')](',');_0x5cfa5a[_0x5a0b9d('0x102c')][_0x5a0b9d('0xa0c')]=_0x1db320[0x0],_0x5cfa5a[_0x5a0b9d('0x102c')]['language']=_0x1db320[0x1],_0x5cfa5a[_0x5a0b9d('0x102c')][_0x5a0b9d('0x1cbc')]=_0x1db320['slice'](0x2,_0x1db320[_0x5a0b9d('0x1e22')])[_0x5a0b9d('0xa04')](',');}break;case _0x5a0b9d('0x21a8'):{const _0x497649=_0x5cfa5a[_0x5a0b9d('0x102c')][_0x5a0b9d('0x13fc')][_0x5a0b9d('0xaf8')](',');_0x5cfa5a['amazonlex'][_0x5a0b9d('0x20e')]=_0x497649[0x0],_0x5cfa5a[_0x5a0b9d('0x102c')][_0x5a0b9d('0x1f91')]=_0x497649[0x1],_0x5cfa5a[_0x5a0b9d('0x102c')][_0x5a0b9d('0x1c6c')]=_0x497649[0x2],_0x5cfa5a[_0x5a0b9d('0x102c')]['language']=_0x497649[0x3],_0x5cfa5a['amazonlex'][_0x5a0b9d('0x1cbc')]=_0x497649[_0x5a0b9d('0x1b77')](0x4,_0x497649['length'])[_0x5a0b9d('0xa04')](',');}break;case _0x5a0b9d('0x102c'):{const _0xe7d40c=_0x5cfa5a[_0x5a0b9d('0x102c')][_0x5a0b9d('0x13fc')]['split'](',');_0x5cfa5a[_0x5a0b9d('0x102c')][_0x5a0b9d('0x1a82')]=_0xe7d40c[0x0],_0x5cfa5a[_0x5a0b9d('0x102c')]['secretaccesskey']=_0xe7d40c[0x1],_0x5cfa5a[_0x5a0b9d('0x102c')][_0x5a0b9d('0x165a')]=_0xe7d40c[0x2],_0x5cfa5a[_0x5a0b9d('0x102c')][_0x5a0b9d('0x1e8f')]=_0xe7d40c[0x3],_0x5cfa5a[_0x5a0b9d('0x102c')][_0x5a0b9d('0x1cbc')]=_0xe7d40c[_0x5a0b9d('0x1b77')](0x4,_0xe7d40c['length'])[_0x5a0b9d('0xa04')](',');}break;case _0x5a0b9d('0x187b'):{const _0x3c063c=_0x5cfa5a[_0x5a0b9d('0x102c')][_0x5a0b9d('0x13fc')][_0x5a0b9d('0xaf8')](',');_0x5cfa5a['amazonlex'][_0x5a0b9d('0x663')]=isNaN(_0x3c063c[0x0])?_0x3c063c[0x0]:parseInt(_0x3c063c[0x0],0xa),_0x5cfa5a[_0x5a0b9d('0x102c')][_0x5a0b9d('0x25ed')]=_0x3c063c[_0x5a0b9d('0x1b77')](0x1,_0x3c063c[_0x5a0b9d('0x1e22')])['join'](',');}break;case _0x5a0b9d('0x1b86'):_0x5cfa5a[_0x5a0b9d('0x102c')]['text']=_0x5cfa5a[_0x5a0b9d('0x102c')][_0x5a0b9d('0x13fc')];break;case'set':_0x5cfa5a['amazonlex'][_0x5a0b9d('0x1909')]=_0x5cfa5a[_0x5a0b9d('0x102c')]['appdata'][_0x5a0b9d('0xaf8')]('=')[0x0],_0x5cfa5a[_0x5a0b9d('0x102c')][_0x5a0b9d('0x10cc')]=_0x5cfa5a[_0x5a0b9d('0x102c')][_0x5a0b9d('0x13fc')][_0x5a0b9d('0xaf8')]('=')[0x1];break;case _0x5a0b9d('0x1efd'):_0x5cfa5a[_0x5a0b9d('0x102c')][_0x5a0b9d('0xef0')]=_0x5cfa5a['amazonlex'][_0x5a0b9d('0x13fc')];break;default:{const _0x23bbb3=_0x5cfa5a['amazonlex'][_0x5a0b9d('0x13fc')][_0x5a0b9d('0xaf8')](',');_0x5cfa5a[_0x5a0b9d('0x102c')][_0x5a0b9d('0x1a82')]=_0x36f548()['isEmpty'](_0x23bbb3[0x0])?_0x23bbb3[0x0]:isNaN(_0x23bbb3[0x0])?_0x23bbb3[0x0]:parseInt(_0x23bbb3[0x0],0xa),_0x5cfa5a[_0x5a0b9d('0x102c')][_0x5a0b9d('0x1422')]=_0x36f548()[_0x5a0b9d('0x1fc5')](_0x23bbb3[0x1])?_0x23bbb3[0x1]:isNaN(_0x23bbb3[0x1])?_0x23bbb3[0x1]:parseInt(_0x23bbb3[0x1],0xa),_0x5cfa5a[_0x5a0b9d('0x102c')][_0x5a0b9d('0x165a')]=_0x36f548()['isEmpty'](_0x23bbb3[0x2])?_0x23bbb3[0x2]:isNaN(_0x23bbb3[0x2])?_0x23bbb3[0x2]:parseInt(_0x23bbb3[0x2],0xa),_0x5cfa5a[_0x5a0b9d('0x102c')][_0x5a0b9d('0x1e8f')]=_0x36f548()[_0x5a0b9d('0x1fc5')](_0x23bbb3[0x3])?_0x23bbb3[0x3]:isNaN(_0x23bbb3[0x3])?_0x23bbb3[0x3]:parseInt(_0x23bbb3[0x3],0xa),_0x5cfa5a['amazonlex'][_0x5a0b9d('0x1cbc')]=_0x36f548()[_0x5a0b9d('0x1fc5')](_0x23bbb3[0x4])?_0x23bbb3[0x4]:isNaN(_0x23bbb3[0x4])?_0x23bbb3[0x4]:parseInt(_0x23bbb3[0x4],0xa);}break;}else _0x5cfa5a['amazonlex'][_0x5a0b9d('0x165a')]=_0x5a0b9d('0xbbe');_0x5cfa5a[_0x5a0b9d('0x102c')][_0x5a0b9d('0x19fd')]&&_0x5cfa5a[_0x5a0b9d('0x102c')][_0x5a0b9d('0x19fd')][_0x5a0b9d('0x20d5')]()===_0x5a0b9d('0x25b6')&&_0x5cfa5a['amazonlex'][_0x5a0b9d('0x27c0')][_0x5a0b9d('0x20d5')]()===_0x5a0b9d('0x1a64')&&(_0x5cfa5a['amazonlex'][_0x5a0b9d('0x2137')]=_0x5cfa5a['amazonlex'][_0x5a0b9d('0x1546')]?_0x5cfa5a[_0x5a0b9d('0x102c')]['phone'][_0x5a0b9d('0xaf8')]('$')[0x0]:undefined,_0x5cfa5a[_0x5a0b9d('0x102c')][_0x5a0b9d('0x7d0')]=_0x5cfa5a[_0x5a0b9d('0x102c')][_0x5a0b9d('0xc38')]?_0x5a0b9d('0x83a')+_0x5cfa5a[_0x5a0b9d('0x102c')]['callerID']:undefined);_0x5cfa5a[_0x5a0b9d('0xfff')]=_0x55f07d,_0x5cfa5a['closeDialog']=_0x2b6632;function _0x55f07d(){const _0x23fb29=_0x5a0b9d;_0x5cfa5a[_0x23fb29('0x120f')]=[];const _0x14e9c0=[];_0x5cfa5a['amazonlex'][_0x23fb29('0x19fd')]&&_0x5cfa5a[_0x23fb29('0x102c')][_0x23fb29('0x19fd')][_0x23fb29('0x20d5')]()==='outbound'&&_0x5cfa5a[_0x23fb29('0x102c')]['appType']===_0x23fb29('0x1bf6')&&(_0x5cfa5a['amazonlex'][_0x23fb29('0x1546')]=_0x26bf53[_0x23fb29('0x388')]?(_0x5cfa5a[_0x23fb29('0x102c')][_0x23fb29('0x2137')]||'')+_0x23fb29('0x2100')+_0x26bf53['cutdigits']+'}':(_0x5cfa5a['amazonlex'][_0x23fb29('0x2137')]||'')+'${EXTEN}',_0x26bf53['recordingFormat']!=='none'?_0x5cfa5a[_0x23fb29('0x102c')]['options'][_0x23fb29('0x203c')](_0x23fb29('0x22c9'))<0x0&&(_0x5cfa5a[_0x23fb29('0x102c')]['options']+='U(xcally-mixmonitor-context)'):_0x5cfa5a[_0x23fb29('0x102c')]['options']=_0x5cfa5a[_0x23fb29('0x102c')][_0x23fb29('0x249a')][_0x23fb29('0x814')](_0x23fb29('0x22c9'),''));if(_0x5cfa5a['amazonlex'][_0x23fb29('0x27c0')]&&_0x5cfa5a[_0x23fb29('0x102c')]['appType']===_0x23fb29('0xa8d')){}else switch((_0x5cfa5a[_0x23fb29('0x102c')][_0x23fb29('0x18f5')]||_0x5cfa5a[_0x23fb29('0x102c')]['appType'])[_0x23fb29('0x20d5')]()){case _0x23fb29('0xe50'):_0x5cfa5a['amazonlex'][_0x23fb29('0x13fc')]=_0x5cfa5a[_0x23fb29('0x102c')]['name']+'='+_0x5cfa5a[_0x23fb29('0x102c')]['value'];break;case _0x23fb29('0xa8d'):break;default:_0x14e9c0[0x0]=_0x5cfa5a[_0x23fb29('0x102c')][_0x23fb29('0x1a82')],_0x14e9c0[0x1]=_0x5cfa5a[_0x23fb29('0x102c')][_0x23fb29('0x1422')],_0x14e9c0[0x2]=_0x5cfa5a['amazonlex'][_0x23fb29('0x165a')],_0x14e9c0[0x3]=_0x5cfa5a['amazonlex']['botname'],_0x14e9c0[0x4]=_0x5cfa5a[_0x23fb29('0x102c')][_0x23fb29('0x1cbc')],_0x5cfa5a[_0x23fb29('0x102c')][_0x23fb29('0x13fc')]=_0x14e9c0[_0x23fb29('0xa04')](',');}_0x2b6632(_0x5cfa5a['amazonlex']);}function _0x2b6632(_0x4f65d9){_0x5a16d4['hide'](_0x4f65d9);}}const _0x269967=_0x395ba7;_0x198015['$inject']=[_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0x142d'),_0x21d0f5('0x1e69'),_0x21d0f5('0x234b'),_0x21d0f5('0x12a5'),'Auth',_0x21d0f5('0xb25')];function _0x198015(_0x147a89,_0x28da90,_0x5dc9e9,_0x468f22,_0x35a0ea,_0x1b930d,_0xa642d6,_0x1cbefb){const _0x445bce=_0x21d0f5,_0x2ae0ab=this;_0x2ae0ab[_0x445bce('0x32a')]=_0xa642d6[_0x445bce('0x2428')](),_0x2ae0ab[_0x445bce('0x120f')]=[],_0x2ae0ab[_0x445bce('0x134b')]=_0x445bce('0x1a49')+(_0x468f22[_0x445bce('0x27c0')]||_0x468f22[_0x445bce('0x18f5')])[_0x445bce('0xa6f')](),_0x2ae0ab[_0x445bce('0x187b')]=angular[_0x445bce('0x6fb')](_0x468f22),_0x2ae0ab[_0x445bce('0xb25')]=_0x1cbefb,_0x2ae0ab[_0x445bce('0x2c9')]={};if(_0x2ae0ab[_0x445bce('0x187b')][_0x445bce('0x13fc')])switch(_0x2ae0ab[_0x445bce('0x187b')]['appType']?_0x2ae0ab[_0x445bce('0x187b')][_0x445bce('0x27c0')]['toLowerCase']():_0x2ae0ab[_0x445bce('0x187b')][_0x445bce('0x18f5')][_0x445bce('0x20d5')]()){case'custom':break;case _0x445bce('0x185e'):{const _0x3fb787=_0x2ae0ab[_0x445bce('0x187b')][_0x445bce('0x13fc')][_0x445bce('0xaf8')](',');_0x2ae0ab[_0x445bce('0x187b')][_0x445bce('0xa0c')]=_0x3fb787[0x0],_0x2ae0ab['autoreply'][_0x445bce('0xeff')]=_0x3fb787[0x1],_0x2ae0ab[_0x445bce('0x187b')][_0x445bce('0x1cbc')]=_0x3fb787[_0x445bce('0x1b77')](0x2,_0x3fb787[_0x445bce('0x1e22')])[_0x445bce('0xa04')](',');}break;case _0x445bce('0x21a8'):{const _0x4cd054=_0x2ae0ab[_0x445bce('0x187b')][_0x445bce('0x13fc')][_0x445bce('0xaf8')](',');_0x2ae0ab[_0x445bce('0x187b')][_0x445bce('0x20e')]=_0x4cd054[0x0],_0x2ae0ab[_0x445bce('0x187b')][_0x445bce('0x1f91')]=_0x4cd054[0x1],_0x2ae0ab[_0x445bce('0x187b')][_0x445bce('0x1c6c')]=_0x4cd054[0x2],_0x2ae0ab['autoreply']['language']=_0x4cd054[0x3],_0x2ae0ab[_0x445bce('0x187b')]['welcomemessage']=_0x4cd054[_0x445bce('0x1b77')](0x4,_0x4cd054['length'])['join'](',');}break;case _0x445bce('0x102c'):{const _0x3548d3=_0x2ae0ab[_0x445bce('0x187b')][_0x445bce('0x13fc')][_0x445bce('0xaf8')](',');_0x2ae0ab[_0x445bce('0x187b')][_0x445bce('0x1a82')]=_0x3548d3[0x0],_0x2ae0ab['autoreply']['secretaccesskey']=_0x3548d3[0x1],_0x2ae0ab[_0x445bce('0x187b')][_0x445bce('0x165a')]=_0x3548d3[0x2],_0x2ae0ab[_0x445bce('0x187b')]['botname']=_0x3548d3[0x3],_0x2ae0ab[_0x445bce('0x187b')][_0x445bce('0x1cbc')]=_0x3548d3['slice'](0x4,_0x3548d3['length'])[_0x445bce('0xa04')](',');}break;case _0x445bce('0x187b'):{const _0x57063b=_0x2ae0ab['autoreply'][_0x445bce('0x13fc')][_0x445bce('0xaf8')](',');_0x2ae0ab[_0x445bce('0x187b')][_0x445bce('0x663')]=isNaN(_0x57063b[0x0])?_0x57063b[0x0]:parseInt(_0x57063b[0x0],0xa),_0x2ae0ab[_0x445bce('0x187b')]['text']=_0x57063b['slice'](0x1,_0x57063b['length'])[_0x445bce('0xa04')](',');}break;case _0x445bce('0x1b86'):_0x2ae0ab[_0x445bce('0x187b')][_0x445bce('0x25ed')]=_0x2ae0ab[_0x445bce('0x187b')]['appdata'];break;case'set':_0x2ae0ab[_0x445bce('0x187b')][_0x445bce('0x1909')]=_0x2ae0ab[_0x445bce('0x187b')][_0x445bce('0x13fc')]['split']('=')[0x0],_0x2ae0ab[_0x445bce('0x187b')][_0x445bce('0x10cc')]=_0x2ae0ab[_0x445bce('0x187b')][_0x445bce('0x13fc')][_0x445bce('0xaf8')]('=')[0x1];break;case _0x445bce('0x1efd'):_0x2ae0ab['autoreply'][_0x445bce('0xef0')]=_0x2ae0ab[_0x445bce('0x187b')]['appdata'];break;default:{const _0x2e3326=_0x2ae0ab['autoreply'][_0x445bce('0x13fc')][_0x445bce('0xaf8')](',');_0x2ae0ab[_0x445bce('0x187b')][_0x445bce('0x663')]=_0x36f548()[_0x445bce('0x1fc5')](_0x2e3326[0x0])?_0x2e3326[0x0]:isNaN(_0x2e3326[0x0])?_0x2e3326[0x0]:parseInt(_0x2e3326[0x0],0xa),_0x2ae0ab[_0x445bce('0x187b')][_0x445bce('0x25ed')]=_0x36f548()[_0x445bce('0x1fc5')](_0x2e3326[0x1])?_0x2e3326[0x1]:isNaN(_0x2e3326[0x1])?_0x2e3326[0x1]:parseInt(_0x2e3326[0x1],0xa);}}else _0x2ae0ab[_0x445bce('0x187b')][_0x445bce('0x663')]=0x1;_0x2ae0ab[_0x445bce('0x187b')][_0x445bce('0x19fd')]&&_0x2ae0ab[_0x445bce('0x187b')][_0x445bce('0x19fd')]['toLowerCase']()===_0x445bce('0x25b6')&&_0x2ae0ab[_0x445bce('0x187b')][_0x445bce('0x27c0')][_0x445bce('0x20d5')]()===_0x445bce('0x1a64')&&(_0x2ae0ab[_0x445bce('0x187b')][_0x445bce('0x2137')]=_0x2ae0ab[_0x445bce('0x187b')]['phone']?_0x2ae0ab[_0x445bce('0x187b')][_0x445bce('0x1546')][_0x445bce('0xaf8')]('$')[0x0]:undefined,_0x2ae0ab['autoreply'][_0x445bce('0x7d0')]=_0x2ae0ab[_0x445bce('0x187b')][_0x445bce('0xc38')]?_0x445bce('0x83a')+_0x2ae0ab[_0x445bce('0x187b')][_0x445bce('0xc38')]:undefined);_0x2ae0ab[_0x445bce('0xfff')]=_0x179d62,_0x2ae0ab[_0x445bce('0xc4e')]=_0x41a904;function _0x179d62(){const _0x3dc513=_0x445bce;_0x2ae0ab[_0x3dc513('0x120f')]=[];const _0x44277e=[];_0x2ae0ab[_0x3dc513('0x187b')]['type']&&_0x2ae0ab[_0x3dc513('0x187b')][_0x3dc513('0x19fd')][_0x3dc513('0x20d5')]()===_0x3dc513('0x25b6')&&_0x2ae0ab[_0x3dc513('0x187b')][_0x3dc513('0x27c0')]==='outboundDial'&&(_0x2ae0ab[_0x3dc513('0x187b')]['phone']=_0x35a0ea[_0x3dc513('0x388')]?(_0x2ae0ab[_0x3dc513('0x187b')][_0x3dc513('0x2137')]||'')+_0x3dc513('0x2100')+_0x35a0ea[_0x3dc513('0x388')]+'}':(_0x2ae0ab[_0x3dc513('0x187b')][_0x3dc513('0x2137')]||'')+_0x3dc513('0x1f76'),_0x35a0ea[_0x3dc513('0x897')]!=='none'?_0x2ae0ab[_0x3dc513('0x187b')][_0x3dc513('0x249a')][_0x3dc513('0x203c')]('U(xcally-mixmonitor-context)')<0x0&&(_0x2ae0ab[_0x3dc513('0x187b')][_0x3dc513('0x249a')]+=_0x3dc513('0x22c9')):_0x2ae0ab[_0x3dc513('0x187b')][_0x3dc513('0x249a')]=_0x2ae0ab['autoreply'][_0x3dc513('0x249a')][_0x3dc513('0x814')](_0x3dc513('0x22c9'),''));if(_0x2ae0ab['autoreply'][_0x3dc513('0x27c0')]&&_0x2ae0ab['autoreply']['appType']===_0x3dc513('0xa8d')){}else switch((_0x2ae0ab[_0x3dc513('0x187b')][_0x3dc513('0x18f5')]||_0x2ae0ab['autoreply'][_0x3dc513('0x27c0')])['toLowerCase']()){case'set':_0x2ae0ab['autoreply'][_0x3dc513('0x13fc')]=_0x2ae0ab[_0x3dc513('0x187b')][_0x3dc513('0x1909')]+'='+_0x2ae0ab[_0x3dc513('0x187b')][_0x3dc513('0x10cc')];break;case _0x3dc513('0xa8d'):break;default:_0x44277e[0x0]=_0x2ae0ab[_0x3dc513('0x187b')][_0x3dc513('0x663')],_0x44277e[0x1]=_0x2ae0ab[_0x3dc513('0x187b')][_0x3dc513('0x25ed')],_0x2ae0ab['autoreply'][_0x3dc513('0x13fc')]=_0x44277e[_0x3dc513('0xa04')](',');}_0x41a904(_0x2ae0ab[_0x3dc513('0x187b')]);}function _0x41a904(_0x4418a3){const _0xeed4ec=_0x445bce;_0x147a89[_0xeed4ec('0x237e')](_0x4418a3);}}const _0x3fe4f4=_0x198015;_0x5c003d[_0x21d0f5('0x1e9a')]=['$mdDialog','$q',_0x21d0f5('0x142d'),'smsAccountApp',_0x21d0f5('0x234b'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),_0x21d0f5('0xb25')];function _0x5c003d(_0x71ccd0,_0x525041,_0x141ae5,_0x5a6617,_0x4df483,_0xdb3ab1,_0x4b5855,_0x358042){const _0x5777b9=_0x21d0f5,_0x4e8937=this;_0x4e8937[_0x5777b9('0x32a')]=_0x4b5855[_0x5777b9('0x2428')](),_0x4e8937[_0x5777b9('0x120f')]=[],_0x4e8937[_0x5777b9('0x134b')]=_0x5777b9('0x1a49')+(_0x5a6617[_0x5777b9('0x27c0')]||_0x5a6617['app'])[_0x5777b9('0xa6f')](),_0x4e8937[_0x5777b9('0x2132')]=angular['copy'](_0x5a6617),_0x4e8937[_0x5777b9('0xb25')]=_0x358042,_0x4e8937['hasModulePermissions']={};if(_0x4e8937[_0x5777b9('0x2132')]['appdata'])switch(_0x4e8937[_0x5777b9('0x2132')][_0x5777b9('0x27c0')]?_0x4e8937[_0x5777b9('0x2132')]['appType']['toLowerCase']():_0x4e8937[_0x5777b9('0x2132')][_0x5777b9('0x18f5')][_0x5777b9('0x20d5')]()){case'custom':break;case _0x5777b9('0x185e'):{const _0x44379a=_0x4e8937[_0x5777b9('0x2132')][_0x5777b9('0x13fc')][_0x5777b9('0xaf8')](',');_0x4e8937[_0x5777b9('0x2132')][_0x5777b9('0xa0c')]=_0x44379a[0x0],_0x4e8937['close'][_0x5777b9('0xeff')]=_0x44379a[0x1],_0x4e8937[_0x5777b9('0x2132')][_0x5777b9('0x1cbc')]=_0x44379a[_0x5777b9('0x1b77')](0x2,_0x44379a[_0x5777b9('0x1e22')])[_0x5777b9('0xa04')](',');}break;case'dialogflowv2':{const _0xcd0378=_0x4e8937[_0x5777b9('0x2132')][_0x5777b9('0x13fc')][_0x5777b9('0xaf8')](',');_0x4e8937[_0x5777b9('0x2132')][_0x5777b9('0x20e')]=_0xcd0378[0x0],_0x4e8937[_0x5777b9('0x2132')]['clientEmail']=_0xcd0378[0x1],_0x4e8937[_0x5777b9('0x2132')]['privateKey']=_0xcd0378[0x2],_0x4e8937[_0x5777b9('0x2132')][_0x5777b9('0xeff')]=_0xcd0378[0x3],_0x4e8937[_0x5777b9('0x2132')][_0x5777b9('0x1cbc')]=_0xcd0378[_0x5777b9('0x1b77')](0x4,_0xcd0378['length'])['join'](',');}break;case'amazonlex':{const _0xf75533=_0x4e8937[_0x5777b9('0x2132')]['appdata'][_0x5777b9('0xaf8')](',');_0x4e8937[_0x5777b9('0x2132')][_0x5777b9('0x1a82')]=_0xf75533[0x0],_0x4e8937['close']['secretaccesskey']=_0xf75533[0x1],_0x4e8937[_0x5777b9('0x2132')]['lexregion']=_0xf75533[0x2],_0x4e8937['close'][_0x5777b9('0x1e8f')]=_0xf75533[0x3],_0x4e8937[_0x5777b9('0x2132')][_0x5777b9('0x1cbc')]=_0xf75533[_0x5777b9('0x1b77')](0x4,_0xf75533['length'])[_0x5777b9('0xa04')](',');}break;case _0x5777b9('0x187b'):{const _0x2a1da3=_0x4e8937[_0x5777b9('0x2132')]['appdata'][_0x5777b9('0xaf8')](',');_0x4e8937[_0x5777b9('0x2132')]['times']=isNaN(_0x2a1da3[0x0])?_0x2a1da3[0x0]:parseInt(_0x2a1da3[0x0],0xa),_0x4e8937['close']['text']=_0x2a1da3[_0x5777b9('0x1b77')](0x1,_0x2a1da3[_0x5777b9('0x1e22')])[_0x5777b9('0xa04')](',');}break;case _0x5777b9('0x1b86'):_0x4e8937['close'][_0x5777b9('0x25ed')]=_0x4e8937[_0x5777b9('0x2132')]['appdata'];break;case _0x5777b9('0xe50'):_0x4e8937[_0x5777b9('0x2132')][_0x5777b9('0x1909')]=_0x4e8937[_0x5777b9('0x2132')]['appdata'][_0x5777b9('0xaf8')]('=')[0x0],_0x4e8937['close'][_0x5777b9('0x10cc')]=_0x4e8937[_0x5777b9('0x2132')][_0x5777b9('0x13fc')][_0x5777b9('0xaf8')]('=')[0x1];break;case _0x5777b9('0x1efd'):_0x4e8937[_0x5777b9('0x2132')]['project']=_0x4e8937[_0x5777b9('0x2132')][_0x5777b9('0x13fc')];break;default:{const _0x1106d2=_0x4e8937[_0x5777b9('0x2132')][_0x5777b9('0x13fc')][_0x5777b9('0xaf8')](',');_0x4e8937['close'][_0x5777b9('0x107a')]=_0x36f548()['isEmpty'](_0x1106d2[0x0])?_0x1106d2[0x0]:isNaN(_0x1106d2[0x0])?_0x1106d2[0x0]:parseInt(_0x1106d2[0x0],0xa);}break;}else{}_0x4e8937[_0x5777b9('0x2132')][_0x5777b9('0x19fd')]&&_0x4e8937[_0x5777b9('0x2132')][_0x5777b9('0x19fd')][_0x5777b9('0x20d5')]()===_0x5777b9('0x25b6')&&_0x4e8937[_0x5777b9('0x2132')]['appType'][_0x5777b9('0x20d5')]()===_0x5777b9('0x1a64')&&(_0x4e8937[_0x5777b9('0x2132')][_0x5777b9('0x2137')]=_0x4e8937[_0x5777b9('0x2132')][_0x5777b9('0x1546')]?_0x4e8937['close'][_0x5777b9('0x1546')][_0x5777b9('0xaf8')]('$')[0x0]:undefined,_0x4e8937['close'][_0x5777b9('0x7d0')]=_0x4e8937[_0x5777b9('0x2132')][_0x5777b9('0xc38')]?'CALLERID(all)='+_0x4e8937[_0x5777b9('0x2132')][_0x5777b9('0xc38')]:undefined);_0x4e8937[_0x5777b9('0xfff')]=_0x4875b9,_0x4e8937[_0x5777b9('0xc4e')]=_0x146006;function _0x4875b9(){const _0x20f11a=_0x5777b9;_0x4e8937[_0x20f11a('0x120f')]=[];const _0x5b9a98=[];_0x4e8937[_0x20f11a('0x2132')][_0x20f11a('0x19fd')]&&_0x4e8937[_0x20f11a('0x2132')]['type'][_0x20f11a('0x20d5')]()==='outbound'&&_0x4e8937[_0x20f11a('0x2132')][_0x20f11a('0x27c0')]==='outboundDial'&&(_0x4e8937['close']['phone']=_0x4df483[_0x20f11a('0x388')]?(_0x4e8937['close']['prefix']||'')+'${EXTEN:'+_0x4df483[_0x20f11a('0x388')]+'}':(_0x4e8937[_0x20f11a('0x2132')][_0x20f11a('0x2137')]||'')+'${EXTEN}',_0x4df483[_0x20f11a('0x897')]!=='none'?_0x4e8937[_0x20f11a('0x2132')][_0x20f11a('0x249a')][_0x20f11a('0x203c')](_0x20f11a('0x22c9'))<0x0&&(_0x4e8937[_0x20f11a('0x2132')][_0x20f11a('0x249a')]+=_0x20f11a('0x22c9')):_0x4e8937[_0x20f11a('0x2132')][_0x20f11a('0x249a')]=_0x4e8937[_0x20f11a('0x2132')][_0x20f11a('0x249a')]['replace'](_0x20f11a('0x22c9'),''));if(_0x4e8937['close'][_0x20f11a('0x27c0')]&&_0x4e8937[_0x20f11a('0x2132')][_0x20f11a('0x27c0')]==='custom'){}else switch((_0x4e8937[_0x20f11a('0x2132')][_0x20f11a('0x18f5')]||_0x4e8937[_0x20f11a('0x2132')][_0x20f11a('0x27c0')])[_0x20f11a('0x20d5')]()){case _0x20f11a('0xe50'):_0x4e8937['close']['appdata']=_0x4e8937[_0x20f11a('0x2132')][_0x20f11a('0x1909')]+'='+_0x4e8937[_0x20f11a('0x2132')][_0x20f11a('0x10cc')];break;case'custom':break;default:_0x5b9a98[0x0]=_0x4e8937[_0x20f11a('0x2132')]['disposition'],_0x4e8937['close'][_0x20f11a('0x13fc')]=_0x5b9a98[_0x20f11a('0xa04')](',');}_0x146006(_0x4e8937['close']);}function _0x146006(_0x4f5892){_0x71ccd0['hide'](_0x4f5892);}}const _0x5d3c19=_0x5c003d;_0x27573f[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0x142d'),_0x21d0f5('0x1e69'),'smsAccount','api',_0x21d0f5('0x1150'),_0x21d0f5('0xb25')];function _0x27573f(_0x50739a,_0x279da3,_0x5460a4,_0x28338e,_0x487de5,_0x16b193,_0x2d9f96,_0x1a5117){const _0x525ebe=_0x21d0f5,_0x1ed578=this;_0x1ed578[_0x525ebe('0x32a')]=_0x2d9f96[_0x525ebe('0x2428')](),_0x1ed578[_0x525ebe('0x120f')]=[],_0x1ed578[_0x525ebe('0x134b')]=_0x525ebe('0x1a49')+(_0x28338e[_0x525ebe('0x27c0')]||_0x28338e['app'])['toUpperCase'](),_0x1ed578[_0x525ebe('0x185e')]=angular[_0x525ebe('0x6fb')](_0x28338e),_0x1ed578[_0x525ebe('0xb25')]=_0x1a5117,_0x1ed578[_0x525ebe('0x2c9')]={};if(_0x1ed578[_0x525ebe('0x185e')][_0x525ebe('0x13fc')])switch(_0x1ed578[_0x525ebe('0x185e')]['appType']?_0x1ed578[_0x525ebe('0x185e')][_0x525ebe('0x27c0')][_0x525ebe('0x20d5')]():_0x1ed578[_0x525ebe('0x185e')][_0x525ebe('0x18f5')][_0x525ebe('0x20d5')]()){case'custom':break;case'dialogflow':{const _0x2bc238=_0x1ed578[_0x525ebe('0x185e')][_0x525ebe('0x13fc')][_0x525ebe('0xaf8')](',');_0x1ed578['dialogflow'][_0x525ebe('0xa0c')]=_0x2bc238[0x0],_0x1ed578[_0x525ebe('0x185e')][_0x525ebe('0xeff')]=_0x2bc238[0x1],_0x1ed578[_0x525ebe('0x185e')][_0x525ebe('0x1cbc')]=_0x2bc238[_0x525ebe('0x1b77')](0x2,_0x2bc238[_0x525ebe('0x1e22')])[_0x525ebe('0xa04')](',');}break;case'dialogflowv2':{const _0xbc2c7b=_0x1ed578[_0x525ebe('0x185e')][_0x525ebe('0x13fc')]['split'](',');_0x1ed578[_0x525ebe('0x185e')]['projectId']=_0xbc2c7b[0x0],_0x1ed578[_0x525ebe('0x185e')]['clientEmail']=_0xbc2c7b[0x1],_0x1ed578[_0x525ebe('0x185e')][_0x525ebe('0x1c6c')]=_0xbc2c7b[0x2],_0x1ed578['dialogflow'][_0x525ebe('0xeff')]=_0xbc2c7b[0x3],_0x1ed578['dialogflow'][_0x525ebe('0x1cbc')]=_0xbc2c7b[_0x525ebe('0x1b77')](0x4,_0xbc2c7b[_0x525ebe('0x1e22')])['join'](',');}break;case'amazonlex':{const _0x5ad14f=_0x1ed578[_0x525ebe('0x185e')]['appdata']['split'](',');_0x1ed578['dialogflow'][_0x525ebe('0x1a82')]=_0x5ad14f[0x0],_0x1ed578[_0x525ebe('0x185e')]['secretaccesskey']=_0x5ad14f[0x1],_0x1ed578[_0x525ebe('0x185e')][_0x525ebe('0x165a')]=_0x5ad14f[0x2],_0x1ed578[_0x525ebe('0x185e')][_0x525ebe('0x1e8f')]=_0x5ad14f[0x3],_0x1ed578[_0x525ebe('0x185e')][_0x525ebe('0x1cbc')]=_0x5ad14f[_0x525ebe('0x1b77')](0x4,_0x5ad14f[_0x525ebe('0x1e22')])[_0x525ebe('0xa04')](',');}break;case _0x525ebe('0x187b'):{const _0x40f568=_0x1ed578['dialogflow'][_0x525ebe('0x13fc')][_0x525ebe('0xaf8')](',');_0x1ed578[_0x525ebe('0x185e')]['times']=isNaN(_0x40f568[0x0])?_0x40f568[0x0]:parseInt(_0x40f568[0x0],0xa),_0x1ed578['dialogflow'][_0x525ebe('0x25ed')]=_0x40f568[_0x525ebe('0x1b77')](0x1,_0x40f568[_0x525ebe('0x1e22')])['join'](',');}break;case'message':_0x1ed578[_0x525ebe('0x185e')][_0x525ebe('0x25ed')]=_0x1ed578[_0x525ebe('0x185e')]['appdata'];break;case _0x525ebe('0xe50'):_0x1ed578[_0x525ebe('0x185e')][_0x525ebe('0x1909')]=_0x1ed578[_0x525ebe('0x185e')][_0x525ebe('0x13fc')]['split']('=')[0x0],_0x1ed578[_0x525ebe('0x185e')][_0x525ebe('0x10cc')]=_0x1ed578[_0x525ebe('0x185e')][_0x525ebe('0x13fc')][_0x525ebe('0xaf8')]('=')[0x1];break;case'agi':_0x1ed578['dialogflow'][_0x525ebe('0xef0')]=_0x1ed578[_0x525ebe('0x185e')][_0x525ebe('0x13fc')];break;default:{const _0x459882=_0x1ed578[_0x525ebe('0x185e')]['appdata'][_0x525ebe('0xaf8')](',');_0x1ed578['dialogflow'][_0x525ebe('0xa0c')]=_0x36f548()['isEmpty'](_0x459882[0x0])?_0x459882[0x0]:isNaN(_0x459882[0x0])?_0x459882[0x0]:parseInt(_0x459882[0x0],0xa),_0x1ed578[_0x525ebe('0x185e')][_0x525ebe('0xeff')]=_0x36f548()['isEmpty'](_0x459882[0x1])?_0x459882[0x1]:isNaN(_0x459882[0x1])?_0x459882[0x1]:parseInt(_0x459882[0x1],0xa),_0x1ed578[_0x525ebe('0x185e')]['welcomemessage']=_0x36f548()[_0x525ebe('0x1fc5')](_0x459882[0x2])?_0x459882[0x2]:isNaN(_0x459882[0x2])?_0x459882[0x2]:parseInt(_0x459882[0x2],0xa);}break;}else _0x1ed578[_0x525ebe('0x185e')][_0x525ebe('0xeff')]='en';_0x1ed578[_0x525ebe('0x185e')]['type']&&_0x1ed578[_0x525ebe('0x185e')]['type'][_0x525ebe('0x20d5')]()===_0x525ebe('0x25b6')&&_0x1ed578[_0x525ebe('0x185e')][_0x525ebe('0x27c0')][_0x525ebe('0x20d5')]()===_0x525ebe('0x1a64')&&(_0x1ed578[_0x525ebe('0x185e')][_0x525ebe('0x2137')]=_0x1ed578[_0x525ebe('0x185e')][_0x525ebe('0x1546')]?_0x1ed578[_0x525ebe('0x185e')][_0x525ebe('0x1546')][_0x525ebe('0xaf8')]('$')[0x0]:undefined,_0x1ed578['dialogflow']['callerId']=_0x1ed578[_0x525ebe('0x185e')][_0x525ebe('0xc38')]?_0x525ebe('0x83a')+_0x1ed578[_0x525ebe('0x185e')][_0x525ebe('0xc38')]:undefined);_0x1ed578[_0x525ebe('0xfff')]=_0x40ed61,_0x1ed578[_0x525ebe('0xc4e')]=_0x293271;function _0x40ed61(){const _0x1e45a7=_0x525ebe;_0x1ed578[_0x1e45a7('0x120f')]=[];const _0x4d6078=[];_0x1ed578[_0x1e45a7('0x185e')]['type']&&_0x1ed578['dialogflow'][_0x1e45a7('0x19fd')][_0x1e45a7('0x20d5')]()==='outbound'&&_0x1ed578[_0x1e45a7('0x185e')][_0x1e45a7('0x27c0')]===_0x1e45a7('0x1bf6')&&(_0x1ed578[_0x1e45a7('0x185e')]['phone']=_0x487de5[_0x1e45a7('0x388')]?(_0x1ed578[_0x1e45a7('0x185e')][_0x1e45a7('0x2137')]||'')+'${EXTEN:'+_0x487de5[_0x1e45a7('0x388')]+'}':(_0x1ed578[_0x1e45a7('0x185e')][_0x1e45a7('0x2137')]||'')+_0x1e45a7('0x1f76'),_0x487de5[_0x1e45a7('0x897')]!==_0x1e45a7('0x3e6')?_0x1ed578[_0x1e45a7('0x185e')][_0x1e45a7('0x249a')][_0x1e45a7('0x203c')](_0x1e45a7('0x22c9'))<0x0&&(_0x1ed578[_0x1e45a7('0x185e')]['options']+=_0x1e45a7('0x22c9')):_0x1ed578['dialogflow'][_0x1e45a7('0x249a')]=_0x1ed578[_0x1e45a7('0x185e')]['options'][_0x1e45a7('0x814')](_0x1e45a7('0x22c9'),''));if(_0x1ed578['dialogflow'][_0x1e45a7('0x27c0')]&&_0x1ed578[_0x1e45a7('0x185e')]['appType']===_0x1e45a7('0xa8d')){}else switch((_0x1ed578[_0x1e45a7('0x185e')]['app']||_0x1ed578[_0x1e45a7('0x185e')][_0x1e45a7('0x27c0')])[_0x1e45a7('0x20d5')]()){case _0x1e45a7('0xe50'):_0x1ed578['dialogflow'][_0x1e45a7('0x13fc')]=_0x1ed578['dialogflow'][_0x1e45a7('0x1909')]+'='+_0x1ed578[_0x1e45a7('0x185e')][_0x1e45a7('0x10cc')];break;case'custom':break;default:_0x4d6078[0x0]=_0x1ed578[_0x1e45a7('0x185e')][_0x1e45a7('0xa0c')],_0x4d6078[0x1]=_0x1ed578['dialogflow'][_0x1e45a7('0xeff')],_0x4d6078[0x2]=_0x1ed578[_0x1e45a7('0x185e')][_0x1e45a7('0x1cbc')],_0x1ed578[_0x1e45a7('0x185e')]['appdata']=_0x4d6078[_0x1e45a7('0xa04')](',');}_0x293271(_0x1ed578[_0x1e45a7('0x185e')]);}function _0x293271(_0x421c8a){const _0x5942f3=_0x525ebe;_0x50739a[_0x5942f3('0x237e')](_0x421c8a);}}const _0x1d8b60=_0x27573f;_0x39da75['$inject']=['$mdDialog','$q',_0x21d0f5('0x142d'),_0x21d0f5('0x1e69'),'smsAccount',_0x21d0f5('0x12a5'),'Auth','crudPermissions'];function _0x39da75(_0x8b525b,_0x47b1d8,_0x1a4f0b,_0x352954,_0x25a0da,_0x9e4118,_0x2c2f73,_0x42a928){const _0x31093a=_0x21d0f5,_0xe46e86=this;_0xe46e86[_0x31093a('0x32a')]=_0x2c2f73[_0x31093a('0x2428')](),_0xe46e86['errors']=[],_0xe46e86[_0x31093a('0x134b')]=_0x31093a('0x1a49')+(_0x352954[_0x31093a('0x27c0')]||_0x352954[_0x31093a('0x18f5')])[_0x31093a('0xa6f')](),_0xe46e86[_0x31093a('0x7cf')]=angular[_0x31093a('0x6fb')](_0x352954),_0xe46e86[_0x31093a('0xb25')]=_0x42a928,_0xe46e86[_0x31093a('0x2c9')]={};if(_0xe46e86[_0x31093a('0x7cf')][_0x31093a('0x13fc')])switch(_0xe46e86[_0x31093a('0x7cf')]['appType']?_0xe46e86['gotoif'][_0x31093a('0x27c0')][_0x31093a('0x20d5')]():_0xe46e86[_0x31093a('0x7cf')][_0x31093a('0x18f5')][_0x31093a('0x20d5')]()){case _0x31093a('0xa8d'):break;case'dialogflow':{const _0x46f47d=_0xe46e86[_0x31093a('0x7cf')][_0x31093a('0x13fc')][_0x31093a('0xaf8')](',');_0xe46e86[_0x31093a('0x7cf')]['key']=_0x46f47d[0x0],_0xe46e86['gotoif'][_0x31093a('0xeff')]=_0x46f47d[0x1],_0xe46e86['gotoif']['welcomemessage']=_0x46f47d[_0x31093a('0x1b77')](0x2,_0x46f47d[_0x31093a('0x1e22')])['join'](',');}break;case'dialogflowv2':{const _0xe14939=_0xe46e86['gotoif'][_0x31093a('0x13fc')]['split'](',');_0xe46e86[_0x31093a('0x7cf')][_0x31093a('0x20e')]=_0xe14939[0x0],_0xe46e86[_0x31093a('0x7cf')][_0x31093a('0x1f91')]=_0xe14939[0x1],_0xe46e86[_0x31093a('0x7cf')][_0x31093a('0x1c6c')]=_0xe14939[0x2],_0xe46e86[_0x31093a('0x7cf')][_0x31093a('0xeff')]=_0xe14939[0x3],_0xe46e86[_0x31093a('0x7cf')][_0x31093a('0x1cbc')]=_0xe14939['slice'](0x4,_0xe14939[_0x31093a('0x1e22')])[_0x31093a('0xa04')](',');}break;case _0x31093a('0x102c'):{const _0x5dc93b=_0xe46e86[_0x31093a('0x7cf')][_0x31093a('0x13fc')][_0x31093a('0xaf8')](',');_0xe46e86[_0x31093a('0x7cf')][_0x31093a('0x1a82')]=_0x5dc93b[0x0],_0xe46e86[_0x31093a('0x7cf')][_0x31093a('0x1422')]=_0x5dc93b[0x1],_0xe46e86[_0x31093a('0x7cf')][_0x31093a('0x165a')]=_0x5dc93b[0x2],_0xe46e86['gotoif'][_0x31093a('0x1e8f')]=_0x5dc93b[0x3],_0xe46e86[_0x31093a('0x7cf')][_0x31093a('0x1cbc')]=_0x5dc93b['slice'](0x4,_0x5dc93b[_0x31093a('0x1e22')])[_0x31093a('0xa04')](',');}break;case _0x31093a('0x187b'):{const _0x3bf446=_0xe46e86[_0x31093a('0x7cf')]['appdata'][_0x31093a('0xaf8')](',');_0xe46e86[_0x31093a('0x7cf')]['times']=isNaN(_0x3bf446[0x0])?_0x3bf446[0x0]:parseInt(_0x3bf446[0x0],0xa),_0xe46e86[_0x31093a('0x7cf')]['text']=_0x3bf446[_0x31093a('0x1b77')](0x1,_0x3bf446[_0x31093a('0x1e22')])[_0x31093a('0xa04')](',');}break;case _0x31093a('0x1b86'):_0xe46e86[_0x31093a('0x7cf')][_0x31093a('0x25ed')]=_0xe46e86['gotoif'][_0x31093a('0x13fc')];break;case _0x31093a('0xe50'):_0xe46e86[_0x31093a('0x7cf')][_0x31093a('0x1909')]=_0xe46e86[_0x31093a('0x7cf')]['appdata'][_0x31093a('0xaf8')]('=')[0x0],_0xe46e86[_0x31093a('0x7cf')]['value']=_0xe46e86[_0x31093a('0x7cf')][_0x31093a('0x13fc')][_0x31093a('0xaf8')]('=')[0x1];break;case _0x31093a('0x1efd'):_0xe46e86[_0x31093a('0x7cf')][_0x31093a('0xef0')]=_0xe46e86[_0x31093a('0x7cf')][_0x31093a('0x13fc')];break;default:{const _0x739017=_0xe46e86['gotoif'][_0x31093a('0x13fc')]['split'](',');_0xe46e86[_0x31093a('0x7cf')][_0x31093a('0xccd')]=_0x36f548()['isEmpty'](_0x739017[0x0])?_0x739017[0x0]:isNaN(_0x739017[0x0])?_0x739017[0x0]:parseInt(_0x739017[0x0],0xa),_0xe46e86[_0x31093a('0x7cf')][_0x31093a('0x1deb')]=_0x36f548()['isEmpty'](_0x739017[0x1])?_0x739017[0x1]:isNaN(_0x739017[0x1])?_0x739017[0x1]:parseInt(_0x739017[0x1],0xa),_0xe46e86[_0x31093a('0x7cf')][_0x31093a('0x7ed')]=_0x36f548()[_0x31093a('0x1fc5')](_0x739017[0x2])?_0x739017[0x2]:isNaN(_0x739017[0x2])?_0x739017[0x2]:parseInt(_0x739017[0x2],0xa);}break;}else{}_0xe46e86[_0x31093a('0x7cf')][_0x31093a('0x19fd')]&&_0xe46e86[_0x31093a('0x7cf')]['type'][_0x31093a('0x20d5')]()===_0x31093a('0x25b6')&&_0xe46e86[_0x31093a('0x7cf')][_0x31093a('0x27c0')][_0x31093a('0x20d5')]()===_0x31093a('0x1a64')&&(_0xe46e86[_0x31093a('0x7cf')][_0x31093a('0x2137')]=_0xe46e86[_0x31093a('0x7cf')][_0x31093a('0x1546')]?_0xe46e86[_0x31093a('0x7cf')][_0x31093a('0x1546')][_0x31093a('0xaf8')]('$')[0x0]:undefined,_0xe46e86[_0x31093a('0x7cf')][_0x31093a('0x7d0')]=_0xe46e86[_0x31093a('0x7cf')]['callerID']?_0x31093a('0x83a')+_0xe46e86['gotoif'][_0x31093a('0xc38')]:undefined);_0xe46e86[_0x31093a('0xfff')]=_0x33887d,_0xe46e86[_0x31093a('0xc4e')]=_0x4884d1;function _0x33887d(){const _0x1ae94a=_0x31093a;_0xe46e86[_0x1ae94a('0x120f')]=[];const _0x26e797=[];_0xe46e86['gotoif'][_0x1ae94a('0x19fd')]&&_0xe46e86[_0x1ae94a('0x7cf')]['type'][_0x1ae94a('0x20d5')]()==='outbound'&&_0xe46e86[_0x1ae94a('0x7cf')][_0x1ae94a('0x27c0')]===_0x1ae94a('0x1bf6')&&(_0xe46e86[_0x1ae94a('0x7cf')][_0x1ae94a('0x1546')]=_0x25a0da[_0x1ae94a('0x388')]?(_0xe46e86[_0x1ae94a('0x7cf')][_0x1ae94a('0x2137')]||'')+_0x1ae94a('0x2100')+_0x25a0da['cutdigits']+'}':(_0xe46e86[_0x1ae94a('0x7cf')]['prefix']||'')+_0x1ae94a('0x1f76'),_0x25a0da[_0x1ae94a('0x897')]!==_0x1ae94a('0x3e6')?_0xe46e86[_0x1ae94a('0x7cf')][_0x1ae94a('0x249a')]['indexOf'](_0x1ae94a('0x22c9'))<0x0&&(_0xe46e86[_0x1ae94a('0x7cf')]['options']+=_0x1ae94a('0x22c9')):_0xe46e86['gotoif'][_0x1ae94a('0x249a')]=_0xe46e86[_0x1ae94a('0x7cf')][_0x1ae94a('0x249a')][_0x1ae94a('0x814')](_0x1ae94a('0x22c9'),''));if(_0xe46e86['gotoif'][_0x1ae94a('0x27c0')]&&_0xe46e86['gotoif'][_0x1ae94a('0x27c0')]===_0x1ae94a('0xa8d')){}else switch((_0xe46e86['gotoif'][_0x1ae94a('0x18f5')]||_0xe46e86[_0x1ae94a('0x7cf')][_0x1ae94a('0x27c0')])[_0x1ae94a('0x20d5')]()){case _0x1ae94a('0xe50'):_0xe46e86[_0x1ae94a('0x7cf')][_0x1ae94a('0x13fc')]=_0xe46e86[_0x1ae94a('0x7cf')]['name']+'='+_0xe46e86['gotoif'][_0x1ae94a('0x10cc')];break;case'custom':break;default:_0x26e797[0x0]=_0xe46e86[_0x1ae94a('0x7cf')][_0x1ae94a('0xccd')],_0x26e797[0x1]=_0xe46e86[_0x1ae94a('0x7cf')][_0x1ae94a('0x1deb')],_0x26e797[0x2]=_0xe46e86['gotoif'][_0x1ae94a('0x7ed')],_0xe46e86['gotoif'][_0x1ae94a('0x13fc')]=_0x26e797[_0x1ae94a('0xa04')](',');}_0x4884d1(_0xe46e86[_0x1ae94a('0x7cf')]);}function _0x4884d1(_0x2e9161){const _0x44a00f=_0x31093a;_0x8b525b[_0x44a00f('0x237e')](_0x2e9161);}}const _0x3cf50b=_0x39da75;_0x22cc5f[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1ca2'),'$q','toasty','smsAccountApp',_0x21d0f5('0x234b'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),_0x21d0f5('0xb25')];function _0x22cc5f(_0x27eedc,_0x5dbb28,_0x5d8281,_0x265f3e,_0x2b117a,_0x3e2fa8,_0x436680,_0x453eb4){const _0x1589fd=_0x21d0f5,_0x20e3d2=this;_0x20e3d2[_0x1589fd('0x32a')]=_0x436680[_0x1589fd('0x2428')](),_0x20e3d2[_0x1589fd('0x120f')]=[],_0x20e3d2[_0x1589fd('0x134b')]=_0x1589fd('0x1a49')+(_0x265f3e[_0x1589fd('0x27c0')]||_0x265f3e[_0x1589fd('0x18f5')])[_0x1589fd('0xa6f')](),_0x20e3d2[_0x1589fd('0x110d')]=angular[_0x1589fd('0x6fb')](_0x265f3e),_0x20e3d2['crudPermissions']=_0x453eb4,_0x20e3d2[_0x1589fd('0x2c9')]={};if(_0x20e3d2[_0x1589fd('0x110d')][_0x1589fd('0x13fc')])switch(_0x20e3d2['gotop'][_0x1589fd('0x27c0')]?_0x20e3d2['gotop'][_0x1589fd('0x27c0')]['toLowerCase']():_0x20e3d2[_0x1589fd('0x110d')]['app'][_0x1589fd('0x20d5')]()){case'custom':break;case _0x1589fd('0x185e'):{const _0x562646=_0x20e3d2[_0x1589fd('0x110d')][_0x1589fd('0x13fc')][_0x1589fd('0xaf8')](',');_0x20e3d2['gotop'][_0x1589fd('0xa0c')]=_0x562646[0x0],_0x20e3d2['gotop'][_0x1589fd('0xeff')]=_0x562646[0x1],_0x20e3d2['gotop'][_0x1589fd('0x1cbc')]=_0x562646[_0x1589fd('0x1b77')](0x2,_0x562646[_0x1589fd('0x1e22')])[_0x1589fd('0xa04')](',');}break;case _0x1589fd('0x21a8'):{const _0x7531ff=_0x20e3d2[_0x1589fd('0x110d')][_0x1589fd('0x13fc')][_0x1589fd('0xaf8')](',');_0x20e3d2[_0x1589fd('0x110d')][_0x1589fd('0x20e')]=_0x7531ff[0x0],_0x20e3d2[_0x1589fd('0x110d')][_0x1589fd('0x1f91')]=_0x7531ff[0x1],_0x20e3d2[_0x1589fd('0x110d')][_0x1589fd('0x1c6c')]=_0x7531ff[0x2],_0x20e3d2[_0x1589fd('0x110d')]['language']=_0x7531ff[0x3],_0x20e3d2[_0x1589fd('0x110d')][_0x1589fd('0x1cbc')]=_0x7531ff[_0x1589fd('0x1b77')](0x4,_0x7531ff[_0x1589fd('0x1e22')])['join'](',');}break;case'amazonlex':{const _0x4e4824=_0x20e3d2[_0x1589fd('0x110d')][_0x1589fd('0x13fc')][_0x1589fd('0xaf8')](',');_0x20e3d2['gotop'][_0x1589fd('0x1a82')]=_0x4e4824[0x0],_0x20e3d2[_0x1589fd('0x110d')][_0x1589fd('0x1422')]=_0x4e4824[0x1],_0x20e3d2[_0x1589fd('0x110d')]['lexregion']=_0x4e4824[0x2],_0x20e3d2[_0x1589fd('0x110d')][_0x1589fd('0x1e8f')]=_0x4e4824[0x3],_0x20e3d2['gotop'][_0x1589fd('0x1cbc')]=_0x4e4824[_0x1589fd('0x1b77')](0x4,_0x4e4824['length'])[_0x1589fd('0xa04')](',');}break;case _0x1589fd('0x187b'):{const _0x3e3bac=_0x20e3d2[_0x1589fd('0x110d')][_0x1589fd('0x13fc')]['split'](',');_0x20e3d2[_0x1589fd('0x110d')][_0x1589fd('0x663')]=isNaN(_0x3e3bac[0x0])?_0x3e3bac[0x0]:parseInt(_0x3e3bac[0x0],0xa),_0x20e3d2['gotop']['text']=_0x3e3bac[_0x1589fd('0x1b77')](0x1,_0x3e3bac[_0x1589fd('0x1e22')])[_0x1589fd('0xa04')](',');}break;case'message':_0x20e3d2[_0x1589fd('0x110d')]['text']=_0x20e3d2[_0x1589fd('0x110d')][_0x1589fd('0x13fc')];break;case _0x1589fd('0xe50'):_0x20e3d2[_0x1589fd('0x110d')][_0x1589fd('0x1909')]=_0x20e3d2[_0x1589fd('0x110d')][_0x1589fd('0x13fc')]['split']('=')[0x0],_0x20e3d2[_0x1589fd('0x110d')]['value']=_0x20e3d2[_0x1589fd('0x110d')]['appdata']['split']('=')[0x1];break;case'agi':_0x20e3d2['gotop'][_0x1589fd('0xef0')]=_0x20e3d2[_0x1589fd('0x110d')]['appdata'];break;default:{const _0x5c4329=_0x20e3d2[_0x1589fd('0x110d')][_0x1589fd('0x13fc')][_0x1589fd('0xaf8')](',');_0x20e3d2[_0x1589fd('0x110d')][_0x1589fd('0x2804')]=_0x36f548()['isEmpty'](_0x5c4329[0x0])?_0x5c4329[0x0]:isNaN(_0x5c4329[0x0])?_0x5c4329[0x0]:parseInt(_0x5c4329[0x0],0xa);}break;}else{}_0x20e3d2[_0x1589fd('0x110d')][_0x1589fd('0x19fd')]&&_0x20e3d2['gotop'][_0x1589fd('0x19fd')][_0x1589fd('0x20d5')]()===_0x1589fd('0x25b6')&&_0x20e3d2[_0x1589fd('0x110d')]['appType'][_0x1589fd('0x20d5')]()==='outbounddial'&&(_0x20e3d2[_0x1589fd('0x110d')]['prefix']=_0x20e3d2['gotop']['phone']?_0x20e3d2[_0x1589fd('0x110d')][_0x1589fd('0x1546')][_0x1589fd('0xaf8')]('$')[0x0]:undefined,_0x20e3d2['gotop']['callerId']=_0x20e3d2[_0x1589fd('0x110d')]['callerID']?_0x1589fd('0x83a')+_0x20e3d2['gotop']['callerID']:undefined);_0x20e3d2[_0x1589fd('0xfff')]=_0x2af31f,_0x20e3d2['closeDialog']=_0x3c434f;function _0x2af31f(){const _0x393ea9=_0x1589fd;_0x20e3d2['errors']=[];const _0x1b3f0f=[];_0x20e3d2[_0x393ea9('0x110d')][_0x393ea9('0x19fd')]&&_0x20e3d2[_0x393ea9('0x110d')][_0x393ea9('0x19fd')][_0x393ea9('0x20d5')]()==='outbound'&&_0x20e3d2[_0x393ea9('0x110d')][_0x393ea9('0x27c0')]===_0x393ea9('0x1bf6')&&(_0x20e3d2[_0x393ea9('0x110d')][_0x393ea9('0x1546')]=_0x2b117a[_0x393ea9('0x388')]?(_0x20e3d2[_0x393ea9('0x110d')][_0x393ea9('0x2137')]||'')+_0x393ea9('0x2100')+_0x2b117a[_0x393ea9('0x388')]+'}':(_0x20e3d2['gotop'][_0x393ea9('0x2137')]||'')+_0x393ea9('0x1f76'),_0x2b117a['recordingFormat']!==_0x393ea9('0x3e6')?_0x20e3d2[_0x393ea9('0x110d')][_0x393ea9('0x249a')]['indexOf'](_0x393ea9('0x22c9'))<0x0&&(_0x20e3d2[_0x393ea9('0x110d')][_0x393ea9('0x249a')]+=_0x393ea9('0x22c9')):_0x20e3d2[_0x393ea9('0x110d')][_0x393ea9('0x249a')]=_0x20e3d2[_0x393ea9('0x110d')][_0x393ea9('0x249a')][_0x393ea9('0x814')]('U(xcally-mixmonitor-context)',''));if(_0x20e3d2[_0x393ea9('0x110d')]['appType']&&_0x20e3d2[_0x393ea9('0x110d')][_0x393ea9('0x27c0')]===_0x393ea9('0xa8d')){}else switch((_0x20e3d2['gotop']['app']||_0x20e3d2[_0x393ea9('0x110d')][_0x393ea9('0x27c0')])[_0x393ea9('0x20d5')]()){case'set':_0x20e3d2['gotop']['appdata']=_0x20e3d2[_0x393ea9('0x110d')][_0x393ea9('0x1909')]+'='+_0x20e3d2[_0x393ea9('0x110d')]['value'];break;case'custom':break;default:_0x1b3f0f[0x0]=_0x20e3d2['gotop'][_0x393ea9('0x2804')],_0x20e3d2[_0x393ea9('0x110d')]['appdata']=_0x1b3f0f['join'](',');}_0x3c434f(_0x20e3d2[_0x393ea9('0x110d')]);}function _0x3c434f(_0xd36794){_0x27eedc['hide'](_0xd36794);}}const _0x4fbf84=_0x22cc5f;_0x49f145[_0x21d0f5('0x1e9a')]=['$state',_0x21d0f5('0x1ca2'),_0x21d0f5('0x1d2f'),'IndexFactory',_0x21d0f5('0x507'),'intervals',_0x21d0f5('0x142d'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),_0x21d0f5('0xb25')];function _0x49f145(_0x2c6e2f,_0x5e8f1d,_0x5a70de,_0x24fb50,_0x1a8b3e,_0x55977a,_0xeae93a,_0xb3e612,_0x423398,_0x39e814){const _0x215b8e=_0x21d0f5,_0x4e7946=this;_0x4e7946[_0x215b8e('0x32a')]=_0x423398[_0x215b8e('0x2428')](),_0x4e7946[_0x215b8e('0x120f')]=[],_0x4e7946[_0x215b8e('0x134b')]=_0x215b8e('0x1d07'),_0x4e7946[_0x215b8e('0x507')]=angular[_0x215b8e('0x6fb')](_0x1a8b3e),_0x4e7946['intervals']=_0x55977a,_0x4e7946[_0x215b8e('0x18cf')]=![],_0x4e7946['types']=[_0x215b8e('0x27e5'),_0x215b8e('0xa8d'),'list'],_0x4e7946[_0x215b8e('0xb25')]=_0x39e814,_0x4e7946['daysOfWeek']=_0x24fb50[_0x215b8e('0x25e1')](),_0x4e7946[_0x215b8e('0x0')]=_0x24fb50['getMonthNumber'](),_0x4e7946['monthName']=_0x24fb50['getMonthName'](),_0x4e7946[_0x215b8e('0x256b')]=_0x24fb50[_0x215b8e('0x1ebc')]();if(!_0x4e7946[_0x215b8e('0x507')])_0x4e7946['interval']={'interval':_0x215b8e('0x1830')},_0x4e7946[_0x215b8e('0x19fd')]=_0x215b8e('0x27e5'),_0x4e7946[_0x215b8e('0x134b')]=_0x215b8e('0x1aba'),_0x4e7946['newInterval']=!![];else{if(_0x4e7946['interval'][_0x215b8e('0x507')]!=='*,*,*,*'){_0x4e7946[_0x215b8e('0x19fd')]='custom';const _0x520cad=_0x4e7946[_0x215b8e('0x507')][_0x215b8e('0x507')][_0x215b8e('0xaf8')](','),_0x2830b7=_0x520cad[0x0],_0x164598=_0x520cad[0x1],_0x3fe4b6=_0x520cad[0x2],_0x9fc9f=_0x520cad[0x3];if(_0x2830b7!=='*'){const _0x5849f8=_0x2830b7[_0x215b8e('0xaf8')]('-')[0x0],_0x1e5ee8=_0x2830b7['split']('-')[0x1];let _0x42513c;_0x42513c=new Date(),_0x42513c[_0x215b8e('0x29e')](Number(_0x5849f8[_0x215b8e('0xaf8')](':')[0x0])),_0x42513c[_0x215b8e('0x7b6')](Number(_0x5849f8[_0x215b8e('0xaf8')](':')[0x1])),_0x4e7946[_0x215b8e('0x269b')]=_0x42513c,_0x42513c=new Date(),_0x42513c[_0x215b8e('0x29e')](Number(_0x1e5ee8['split'](':')[0x0])),_0x42513c[_0x215b8e('0x7b6')](Number(_0x1e5ee8[_0x215b8e('0xaf8')](':')[0x1])),_0x4e7946['timeRangeTo']=_0x42513c;}_0x164598!=='*'&&(_0x4e7946[_0x215b8e('0x126e')]=_0x164598['split']('-')[0x0],_0x4e7946[_0x215b8e('0x261')]=_0x164598['split']('-')[0x1]),_0x3fe4b6!=='*'&&(_0x4e7946[_0x215b8e('0xecd')]=_0x3fe4b6[_0x215b8e('0xaf8')]('-')[0x0],_0x4e7946[_0x215b8e('0x1883')]=_0x3fe4b6['split']('-')[0x1]),_0x9fc9f!=='*'&&(_0x4e7946[_0x215b8e('0xad3')]=_0x9fc9f[_0x215b8e('0xaf8')]('-')[0x0],_0x4e7946[_0x215b8e('0x1155')]=_0x9fc9f[_0x215b8e('0xaf8')]('-')[0x1]);}else _0x4e7946['type']=_0x215b8e('0x27e5');}_0x2c6e2f['params']['id']&&!_0x4e7946[_0x215b8e('0x507')][_0x215b8e('0x1cf1')]&&(_0x4e7946[_0x215b8e('0x507')][_0x215b8e('0x6b4')]=_0x2c6e2f[_0x215b8e('0x1ab3')]['id']);_0x4e7946[_0x215b8e('0x507')][_0x215b8e('0x6b4')]&&_0x4e7946[_0x215b8e('0x507')][_0x215b8e('0x1cf1')]&&(_0x4e7946[_0x215b8e('0x19fd')]=_0x215b8e('0x257d'));_0x4e7946[_0x215b8e('0x119a')]=_0x4137ab,_0x4e7946[_0x215b8e('0x26c6')]=_0x38e0ea,_0x4e7946[_0x215b8e('0xc4e')]=_0x316c84;_0x4e7946[_0x215b8e('0x507')][_0x215b8e('0x1cf1')]&&(_0x423398[_0x215b8e('0x4ee')](_0x215b8e('0xf45'))?_0xb3e612['interval'][_0x215b8e('0xbaa')]({'fields':'id,name,interval,IntervalId','IntervalId':'null','nolimit':!![]})[_0x215b8e('0x1549')][_0x215b8e('0x11bf')](function(_0x5e750e){const _0xc60ac5=_0x215b8e;_0x4e7946['intervals']=_0x5e750e[_0xc60ac5('0x19b2')]||[];})['catch'](function(_0x427e29){const _0x188bda=_0x215b8e;_0xeae93a['error']({'title':_0x427e29['status']?_0x188bda('0x574')+_0x427e29[_0x188bda('0xff9')]+_0x188bda('0xb0b')+_0x427e29['statusText']:'SYSTEM:GET_INTERVALS','msg':_0x427e29['data']?JSON[_0x188bda('0x3e')](_0x427e29['data']):_0x427e29[_0x188bda('0xaab')]()});}):_0xb3e612[_0x215b8e('0x507')][_0x215b8e('0xbaa')]({'fields':_0x215b8e('0x1af5'),'IntervalId':'null','nolimit':!![]})[_0x215b8e('0x1549')][_0x215b8e('0x11bf')](function(_0xaaf7cb){const _0x43c963=_0x215b8e;_0x4e7946[_0x43c963('0xe82')]=_0xaaf7cb['rows']||[];})[_0x215b8e('0x11bf')](function(){const _0x573ee3=_0x215b8e;return _0xb3e612[_0x573ee3('0x1d63')][_0x573ee3('0xbaa')]({'userProfileId':_0x4e7946[_0x573ee3('0x32a')]['userProfileId'],'sectionId':0x3ec})[_0x573ee3('0x1549')];})['then'](function(_0x3cefdc){const _0x47bd8b=_0x215b8e,_0x34a724=_0x3cefdc&&_0x3cefdc['rows']?_0x3cefdc[_0x47bd8b('0x19b2')][0x0]:null;if(!_0x34a724)_0x4e7946[_0x47bd8b('0xe82')]=[];else{if(!_0x34a724['autoAssociation'])return _0xb3e612[_0x47bd8b('0x26d1')][_0x47bd8b('0xbaa')]({'sectionId':_0x34a724['id']})[_0x47bd8b('0x1549')][_0x47bd8b('0x11bf')](function(_0x3acc3d){const _0xf008cf=_0x47bd8b,_0x358e5c=_0x3acc3d&&_0x3acc3d[_0xf008cf('0x19b2')]?_0x3acc3d[_0xf008cf('0x19b2')]:[],_0x401580=[];let _0x24672c=null;_0x4e7946[_0xf008cf('0x507')]&&(_0x24672c=_0x36f548()[_0xf008cf('0x1ad4')](_0x4e7946[_0xf008cf('0xe82')],{'name':_0x4e7946[_0xf008cf('0x507')]['IntervalId']})),_0x24672c&&!_0x36f548()[_0xf008cf('0x1cb3')](_0x358e5c,['resourceId',_0x24672c['id']])&&_0x4e7946[_0xf008cf('0xe82')][_0xf008cf('0x1f88')](function(_0x39ecaf){const _0x5623be=_0xf008cf;_0x39ecaf['id']===_0x24672c['id']&&(_0x39ecaf['canSelect']=![],_0x401580[_0x5623be('0x105d')](_0x39ecaf));}),_0x4e7946[_0xf008cf('0xe82')]=_0x401580;});}})[_0x215b8e('0x151d')](function(_0x12fa7c){const _0x23c281=_0x215b8e;_0xeae93a[_0x23c281('0x255')]({'title':_0x12fa7c[_0x23c281('0xff9')]?'API:'+_0x12fa7c[_0x23c281('0xff9')]+_0x23c281('0xb0b')+_0x12fa7c[_0x23c281('0x212f')]:_0x23c281('0x611'),'msg':_0x12fa7c['data']?JSON[_0x23c281('0x3e')](_0x12fa7c[_0x23c281('0x4e8')]):_0x12fa7c[_0x23c281('0xaab')]()});}));function _0x1f32b2(){const _0x32db81=_0x215b8e;switch(_0x4e7946['type']){case _0x32db81('0x27e5'):case _0x32db81('0x257d'):return _0x32db81('0x1830');case'custom':{const _0x2e17c1=[];if(_0x4e7946['timeRangeFrom']!=='*'&&_0x4e7946[_0x32db81('0x269b')]&&_0x4e7946[_0x32db81('0x19e5')]){const _0x513db2=(_0x4e7946['timeRangeFrom']['getHours']()<0xa?'0':'')+_0x4e7946[_0x32db81('0x269b')]['getHours']()+':'+((_0x4e7946[_0x32db81('0x269b')][_0x32db81('0xdcc')]()<0xa?'0':'')+_0x4e7946['timeRangeFrom'][_0x32db81('0xdcc')]()),_0x487c15=(_0x4e7946[_0x32db81('0x19e5')]['getHours']()<0xa?'0':'')+_0x4e7946[_0x32db81('0x19e5')]['getHours']()+':'+((_0x4e7946[_0x32db81('0x19e5')][_0x32db81('0xdcc')]()<0xa?'0':'')+_0x4e7946[_0x32db81('0x19e5')]['getMinutes']());_0x2e17c1[_0x32db81('0x105d')](_0x513db2+'-'+_0x487c15);}else _0x2e17c1[_0x32db81('0x105d')]('*');return _0x4e7946[_0x32db81('0x126e')]?_0x4e7946[_0x32db81('0x261')]?_0x2e17c1['push'](_0x4e7946[_0x32db81('0x126e')]+'-'+_0x4e7946['dayOfWeekTo']):_0x2e17c1['push'](_0x4e7946[_0x32db81('0x126e')]):_0x2e17c1[_0x32db81('0x105d')]('*'),_0x4e7946[_0x32db81('0xecd')]?_0x4e7946[_0x32db81('0x1883')]?_0x2e17c1[_0x32db81('0x105d')](_0x4e7946[_0x32db81('0xecd')]+'-'+_0x4e7946[_0x32db81('0x1883')]):_0x2e17c1[_0x32db81('0x105d')](_0x4e7946[_0x32db81('0xecd')]):_0x2e17c1['push']('*'),_0x4e7946[_0x32db81('0xad3')]?_0x4e7946[_0x32db81('0x1155')]?_0x2e17c1[_0x32db81('0x105d')](_0x4e7946['monthFrom']+'-'+_0x4e7946[_0x32db81('0x1155')]):_0x2e17c1[_0x32db81('0x105d')](_0x4e7946[_0x32db81('0xad3')]):_0x2e17c1['push']('*'),_0x2e17c1[_0x32db81('0xa04')]();}}}function _0x4137ab(){const _0x19f57d=_0x215b8e;_0x4e7946['errors']=[],_0x4e7946['interval'][_0x19f57d('0x507')]=_0x1f32b2(),_0xb3e612[_0x19f57d('0x507')]['save'](_0x4e7946[_0x19f57d('0x507')])[_0x19f57d('0x1549')][_0x19f57d('0x11bf')](function(_0x4bd1a5){const _0x2ca9fb=_0x19f57d;_0x4e7946[_0x2ca9fb('0xe82')]['push'](_0x4bd1a5),_0xeae93a[_0x2ca9fb('0x2693')]({'title':_0x2ca9fb('0x747'),'msg':_0x4e7946[_0x2ca9fb('0x507')][_0x2ca9fb('0x1909')]?_0x4e7946[_0x2ca9fb('0x507')][_0x2ca9fb('0x1909')]+_0x2ca9fb('0x7fb'):''}),_0x316c84();})[_0x19f57d('0x151d')](function(_0x457cf8){const _0x2247b0=_0x19f57d;console['error'](_0x457cf8),_0x4e7946['errors']=_0x457cf8['data']['errors']||[{'message':_0x457cf8[_0x2247b0('0xaab')](),'type':_0x2247b0('0x200b')}];});}function _0x38e0ea(){const _0x5528ce=_0x215b8e;_0x4e7946[_0x5528ce('0x120f')]=[],_0x4e7946['interval'][_0x5528ce('0x507')]=_0x1f32b2(),_0x4e7946[_0x5528ce('0x507')][_0x5528ce('0x1cf1')]?(_0x4e7946[_0x5528ce('0x19fd')]!==_0x5528ce('0x257d')&&(_0x4e7946[_0x5528ce('0x507')][_0x5528ce('0x6b4')]=null),_0x316c84(_0x4e7946['interval'])):_0xb3e612[_0x5528ce('0x507')][_0x5528ce('0x5ab')]({'id':_0x4e7946[_0x5528ce('0x507')]['id']},_0x4e7946['interval'])[_0x5528ce('0x1549')][_0x5528ce('0x11bf')](function(_0x68f0f0){const _0x5a8067=_0x5528ce,_0x5d873c=_0x36f548()[_0x5a8067('0x1ad4')](_0x4e7946[_0x5a8067('0xe82')],{'id':_0x68f0f0['id']});_0x5d873c&&_0x36f548()[_0x5a8067('0x47b')](_0x5d873c,_0x68f0f0),_0xeae93a[_0x5a8067('0x2693')]({'title':'Interval\x20properly\x20saved!','msg':'Interval\x20has\x20been\x20saved!'}),_0x316c84();})[_0x5528ce('0x151d')](function(_0x5c7ad2){const _0x1e24eb=_0x5528ce;console[_0x1e24eb('0x255')](_0x5c7ad2),_0x4e7946['errors']=_0x5c7ad2[_0x1e24eb('0x4e8')]['errors']||[{'message':_0x5c7ad2[_0x1e24eb('0xaab')](),'type':'api.interval.update'}];});}function _0x316c84(_0x3a1c07){const _0x3967db=_0x215b8e;_0x5e8f1d[_0x3967db('0x237e')](_0x3a1c07);}}const _0x2d03e1=_0x49f145;_0xb81ea[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1ca2'),'$q','toasty',_0x21d0f5('0x1e69'),_0x21d0f5('0x234b'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),_0x21d0f5('0xb25')];function _0xb81ea(_0x31223c,_0x54c17a,_0x2bee4,_0x517aa1,_0x25d949,_0x1c2d2d,_0xeea612,_0x1b08d2){const _0x5c9631=_0x21d0f5,_0x3045d1=this;_0x3045d1[_0x5c9631('0x32a')]=_0xeea612[_0x5c9631('0x2428')](),_0x3045d1[_0x5c9631('0x120f')]=[],_0x3045d1['title']=_0x5c9631('0x1a49')+(_0x517aa1[_0x5c9631('0x27c0')]||_0x517aa1[_0x5c9631('0x18f5')])[_0x5c9631('0xa6f')](),_0x3045d1['noop']=angular[_0x5c9631('0x6fb')](_0x517aa1),_0x3045d1['crudPermissions']=_0x1b08d2,_0x3045d1[_0x5c9631('0x2c9')]={};if(_0x3045d1[_0x5c9631('0x2b8')][_0x5c9631('0x13fc')])switch(_0x3045d1[_0x5c9631('0x2b8')]['appType']?_0x3045d1[_0x5c9631('0x2b8')]['appType'][_0x5c9631('0x20d5')]():_0x3045d1['noop'][_0x5c9631('0x18f5')][_0x5c9631('0x20d5')]()){case _0x5c9631('0xa8d'):break;case _0x5c9631('0x185e'):{const _0x521597=_0x3045d1['noop'][_0x5c9631('0x13fc')][_0x5c9631('0xaf8')](',');_0x3045d1[_0x5c9631('0x2b8')][_0x5c9631('0xa0c')]=_0x521597[0x0],_0x3045d1[_0x5c9631('0x2b8')][_0x5c9631('0xeff')]=_0x521597[0x1],_0x3045d1[_0x5c9631('0x2b8')][_0x5c9631('0x1cbc')]=_0x521597[_0x5c9631('0x1b77')](0x2,_0x521597[_0x5c9631('0x1e22')])[_0x5c9631('0xa04')](',');}break;case'dialogflowv2':{const _0xcb0501=_0x3045d1[_0x5c9631('0x2b8')][_0x5c9631('0x13fc')][_0x5c9631('0xaf8')](',');_0x3045d1[_0x5c9631('0x2b8')][_0x5c9631('0x20e')]=_0xcb0501[0x0],_0x3045d1[_0x5c9631('0x2b8')]['clientEmail']=_0xcb0501[0x1],_0x3045d1[_0x5c9631('0x2b8')][_0x5c9631('0x1c6c')]=_0xcb0501[0x2],_0x3045d1['noop'][_0x5c9631('0xeff')]=_0xcb0501[0x3],_0x3045d1['noop']['welcomemessage']=_0xcb0501['slice'](0x4,_0xcb0501[_0x5c9631('0x1e22')])['join'](',');}break;case'amazonlex':{const _0x4e6b97=_0x3045d1[_0x5c9631('0x2b8')][_0x5c9631('0x13fc')][_0x5c9631('0xaf8')](',');_0x3045d1[_0x5c9631('0x2b8')][_0x5c9631('0x1a82')]=_0x4e6b97[0x0],_0x3045d1['noop'][_0x5c9631('0x1422')]=_0x4e6b97[0x1],_0x3045d1[_0x5c9631('0x2b8')][_0x5c9631('0x165a')]=_0x4e6b97[0x2],_0x3045d1[_0x5c9631('0x2b8')]['botname']=_0x4e6b97[0x3],_0x3045d1[_0x5c9631('0x2b8')][_0x5c9631('0x1cbc')]=_0x4e6b97[_0x5c9631('0x1b77')](0x4,_0x4e6b97[_0x5c9631('0x1e22')])[_0x5c9631('0xa04')](',');}break;case _0x5c9631('0x187b'):{const _0x3f5f81=_0x3045d1[_0x5c9631('0x2b8')][_0x5c9631('0x13fc')][_0x5c9631('0xaf8')](',');_0x3045d1['noop'][_0x5c9631('0x663')]=isNaN(_0x3f5f81[0x0])?_0x3f5f81[0x0]:parseInt(_0x3f5f81[0x0],0xa),_0x3045d1[_0x5c9631('0x2b8')]['text']=_0x3f5f81[_0x5c9631('0x1b77')](0x1,_0x3f5f81[_0x5c9631('0x1e22')])['join'](',');}break;case _0x5c9631('0x1b86'):_0x3045d1[_0x5c9631('0x2b8')][_0x5c9631('0x25ed')]=_0x3045d1[_0x5c9631('0x2b8')][_0x5c9631('0x13fc')];break;case _0x5c9631('0xe50'):_0x3045d1['noop'][_0x5c9631('0x1909')]=_0x3045d1[_0x5c9631('0x2b8')][_0x5c9631('0x13fc')][_0x5c9631('0xaf8')]('=')[0x0],_0x3045d1[_0x5c9631('0x2b8')][_0x5c9631('0x10cc')]=_0x3045d1[_0x5c9631('0x2b8')][_0x5c9631('0x13fc')][_0x5c9631('0xaf8')]('=')[0x1];break;case _0x5c9631('0x1efd'):_0x3045d1[_0x5c9631('0x2b8')]['project']=_0x3045d1['noop'][_0x5c9631('0x13fc')];break;default:{const _0x33ee0e=_0x3045d1['noop'][_0x5c9631('0x13fc')]['split'](',');_0x3045d1[_0x5c9631('0x2b8')][_0x5c9631('0x10cc')]=_0x36f548()['isEmpty'](_0x33ee0e[0x0])?_0x33ee0e[0x0]:isNaN(_0x33ee0e[0x0])?_0x33ee0e[0x0]:parseInt(_0x33ee0e[0x0],0xa);}break;}else{}_0x3045d1[_0x5c9631('0x2b8')][_0x5c9631('0x19fd')]&&_0x3045d1[_0x5c9631('0x2b8')]['type']['toLowerCase']()===_0x5c9631('0x25b6')&&_0x3045d1[_0x5c9631('0x2b8')][_0x5c9631('0x27c0')][_0x5c9631('0x20d5')]()===_0x5c9631('0x1a64')&&(_0x3045d1[_0x5c9631('0x2b8')][_0x5c9631('0x2137')]=_0x3045d1[_0x5c9631('0x2b8')][_0x5c9631('0x1546')]?_0x3045d1[_0x5c9631('0x2b8')][_0x5c9631('0x1546')][_0x5c9631('0xaf8')]('$')[0x0]:undefined,_0x3045d1[_0x5c9631('0x2b8')][_0x5c9631('0x7d0')]=_0x3045d1[_0x5c9631('0x2b8')]['callerID']?_0x5c9631('0x83a')+_0x3045d1[_0x5c9631('0x2b8')][_0x5c9631('0xc38')]:undefined);_0x3045d1['saveSmsAccountApp']=_0x227b97,_0x3045d1[_0x5c9631('0xc4e')]=_0x525421;function _0x227b97(){const _0x4f34be=_0x5c9631;_0x3045d1['errors']=[];const _0x1ba6ca=[];_0x3045d1[_0x4f34be('0x2b8')][_0x4f34be('0x19fd')]&&_0x3045d1[_0x4f34be('0x2b8')]['type'][_0x4f34be('0x20d5')]()==='outbound'&&_0x3045d1[_0x4f34be('0x2b8')]['appType']===_0x4f34be('0x1bf6')&&(_0x3045d1[_0x4f34be('0x2b8')][_0x4f34be('0x1546')]=_0x25d949[_0x4f34be('0x388')]?(_0x3045d1[_0x4f34be('0x2b8')][_0x4f34be('0x2137')]||'')+_0x4f34be('0x2100')+_0x25d949['cutdigits']+'}':(_0x3045d1[_0x4f34be('0x2b8')][_0x4f34be('0x2137')]||'')+_0x4f34be('0x1f76'),_0x25d949[_0x4f34be('0x897')]!==_0x4f34be('0x3e6')?_0x3045d1[_0x4f34be('0x2b8')][_0x4f34be('0x249a')][_0x4f34be('0x203c')](_0x4f34be('0x22c9'))<0x0&&(_0x3045d1[_0x4f34be('0x2b8')][_0x4f34be('0x249a')]+='U(xcally-mixmonitor-context)'):_0x3045d1[_0x4f34be('0x2b8')][_0x4f34be('0x249a')]=_0x3045d1[_0x4f34be('0x2b8')][_0x4f34be('0x249a')][_0x4f34be('0x814')](_0x4f34be('0x22c9'),''));if(_0x3045d1[_0x4f34be('0x2b8')][_0x4f34be('0x27c0')]&&_0x3045d1[_0x4f34be('0x2b8')]['appType']===_0x4f34be('0xa8d')){}else switch((_0x3045d1['noop'][_0x4f34be('0x18f5')]||_0x3045d1[_0x4f34be('0x2b8')][_0x4f34be('0x27c0')])[_0x4f34be('0x20d5')]()){case _0x4f34be('0xe50'):_0x3045d1['noop']['appdata']=_0x3045d1[_0x4f34be('0x2b8')][_0x4f34be('0x1909')]+'='+_0x3045d1['noop'][_0x4f34be('0x10cc')];break;case _0x4f34be('0xa8d'):break;default:_0x1ba6ca[0x0]=_0x3045d1['noop'][_0x4f34be('0x10cc')],_0x3045d1[_0x4f34be('0x2b8')][_0x4f34be('0x13fc')]=_0x1ba6ca[_0x4f34be('0xa04')](',');}_0x525421(_0x3045d1[_0x4f34be('0x2b8')]);}function _0x525421(_0x3262d7){const _0x168df5=_0x5c9631;_0x31223c[_0x168df5('0x237e')](_0x3262d7);}}const _0x59d3dc=_0xb81ea;_0x411603[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1ca2'),'$q','toasty','smsAccountApp','smsAccount',_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),_0x21d0f5('0xb25')];function _0x411603(_0x98d88a,_0x289317,_0x318eec,_0x14b0e9,_0xca59f2,_0x2f35f8,_0x35bca5,_0xbd729d){const _0x766abb=_0x21d0f5,_0x3cc48c=this;_0x3cc48c[_0x766abb('0x32a')]=_0x35bca5[_0x766abb('0x2428')](),_0x3cc48c[_0x766abb('0x120f')]=[],_0x3cc48c[_0x766abb('0x134b')]=_0x766abb('0x1a49')+(_0x14b0e9[_0x766abb('0x27c0')]||_0x14b0e9[_0x766abb('0x18f5')])[_0x766abb('0xa6f')](),_0x3cc48c[_0x766abb('0x150b')]=angular[_0x766abb('0x6fb')](_0x14b0e9),_0x3cc48c['crudPermissions']=_0xbd729d,_0x3cc48c[_0x766abb('0x2c9')]={};if(_0x3cc48c['queue'][_0x766abb('0x13fc')])switch(_0x3cc48c[_0x766abb('0x150b')]['appType']?_0x3cc48c[_0x766abb('0x150b')]['appType'][_0x766abb('0x20d5')]():_0x3cc48c[_0x766abb('0x150b')][_0x766abb('0x18f5')]['toLowerCase']()){case _0x766abb('0xa8d'):break;case _0x766abb('0x185e'):{const _0x5306fd=_0x3cc48c[_0x766abb('0x150b')][_0x766abb('0x13fc')][_0x766abb('0xaf8')](',');_0x3cc48c['queue'][_0x766abb('0xa0c')]=_0x5306fd[0x0],_0x3cc48c[_0x766abb('0x150b')]['language']=_0x5306fd[0x1],_0x3cc48c['queue'][_0x766abb('0x1cbc')]=_0x5306fd[_0x766abb('0x1b77')](0x2,_0x5306fd[_0x766abb('0x1e22')])[_0x766abb('0xa04')](',');}break;case _0x766abb('0x21a8'):{const _0x1f9714=_0x3cc48c[_0x766abb('0x150b')][_0x766abb('0x13fc')][_0x766abb('0xaf8')](',');_0x3cc48c[_0x766abb('0x150b')][_0x766abb('0x20e')]=_0x1f9714[0x0],_0x3cc48c[_0x766abb('0x150b')][_0x766abb('0x1f91')]=_0x1f9714[0x1],_0x3cc48c[_0x766abb('0x150b')][_0x766abb('0x1c6c')]=_0x1f9714[0x2],_0x3cc48c[_0x766abb('0x150b')]['language']=_0x1f9714[0x3],_0x3cc48c[_0x766abb('0x150b')][_0x766abb('0x1cbc')]=_0x1f9714[_0x766abb('0x1b77')](0x4,_0x1f9714[_0x766abb('0x1e22')])[_0x766abb('0xa04')](',');}break;case _0x766abb('0x102c'):{const _0x3741c5=_0x3cc48c['queue']['appdata'][_0x766abb('0xaf8')](',');_0x3cc48c['queue'][_0x766abb('0x1a82')]=_0x3741c5[0x0],_0x3cc48c[_0x766abb('0x150b')][_0x766abb('0x1422')]=_0x3741c5[0x1],_0x3cc48c[_0x766abb('0x150b')][_0x766abb('0x165a')]=_0x3741c5[0x2],_0x3cc48c[_0x766abb('0x150b')][_0x766abb('0x1e8f')]=_0x3741c5[0x3],_0x3cc48c[_0x766abb('0x150b')][_0x766abb('0x1cbc')]=_0x3741c5['slice'](0x4,_0x3741c5[_0x766abb('0x1e22')])[_0x766abb('0xa04')](',');}break;case _0x766abb('0x187b'):{const _0xf7ccd4=_0x3cc48c['queue'][_0x766abb('0x13fc')]['split'](',');_0x3cc48c[_0x766abb('0x150b')][_0x766abb('0x663')]=isNaN(_0xf7ccd4[0x0])?_0xf7ccd4[0x0]:parseInt(_0xf7ccd4[0x0],0xa),_0x3cc48c[_0x766abb('0x150b')][_0x766abb('0x25ed')]=_0xf7ccd4[_0x766abb('0x1b77')](0x1,_0xf7ccd4[_0x766abb('0x1e22')])[_0x766abb('0xa04')](',');}break;case _0x766abb('0x1b86'):_0x3cc48c[_0x766abb('0x150b')][_0x766abb('0x25ed')]=_0x3cc48c[_0x766abb('0x150b')]['appdata'];break;case'set':_0x3cc48c['queue'][_0x766abb('0x1909')]=_0x3cc48c[_0x766abb('0x150b')]['appdata'][_0x766abb('0xaf8')]('=')[0x0],_0x3cc48c[_0x766abb('0x150b')][_0x766abb('0x10cc')]=_0x3cc48c[_0x766abb('0x150b')]['appdata'][_0x766abb('0xaf8')]('=')[0x1];break;case _0x766abb('0x1efd'):_0x3cc48c['queue'][_0x766abb('0xef0')]=_0x3cc48c[_0x766abb('0x150b')]['appdata'];break;default:{const _0x4d0075=_0x3cc48c['queue'][_0x766abb('0x13fc')][_0x766abb('0xaf8')](',');_0x3cc48c[_0x766abb('0x150b')]['queue']=_0x36f548()[_0x766abb('0x1fc5')](_0x4d0075[0x0])?_0x4d0075[0x0]:isNaN(_0x4d0075[0x0])?_0x4d0075[0x0]:parseInt(_0x4d0075[0x0],0xa),_0x3cc48c[_0x766abb('0x150b')][_0x766abb('0xfbe')]=_0x36f548()[_0x766abb('0x1fc5')](_0x4d0075[0x1])?_0x4d0075[0x1]:isNaN(_0x4d0075[0x1])?_0x4d0075[0x1]:parseInt(_0x4d0075[0x1],0xa);}break;}else _0x3cc48c[_0x766abb('0x150b')][_0x766abb('0x150b')]=0x12c,_0x3cc48c[_0x766abb('0x150b')][_0x766abb('0xfbe')]=0x12c;_0x3cc48c[_0x766abb('0x150b')][_0x766abb('0x19fd')]&&_0x3cc48c['queue'][_0x766abb('0x19fd')][_0x766abb('0x20d5')]()===_0x766abb('0x25b6')&&_0x3cc48c['queue'][_0x766abb('0x27c0')]['toLowerCase']()===_0x766abb('0x1a64')&&(_0x3cc48c[_0x766abb('0x150b')][_0x766abb('0x2137')]=_0x3cc48c[_0x766abb('0x150b')][_0x766abb('0x1546')]?_0x3cc48c[_0x766abb('0x150b')]['phone'][_0x766abb('0xaf8')]('$')[0x0]:undefined,_0x3cc48c[_0x766abb('0x150b')]['callerId']=_0x3cc48c[_0x766abb('0x150b')][_0x766abb('0xc38')]?_0x766abb('0x83a')+_0x3cc48c[_0x766abb('0x150b')][_0x766abb('0xc38')]:undefined);_0x3cc48c[_0x766abb('0xfff')]=_0x3698da,_0x3cc48c['closeDialog']=_0x45bd0f,_0x35bca5[_0x766abb('0x4ee')](_0x766abb('0xf45'))?_0x2f35f8[_0x766abb('0x1257')][_0x766abb('0xbaa')]({'fields':_0x766abb('0xde'),'sort':_0x766abb('0x1909'),'nolimit':'true'})[_0x766abb('0x1549')]['then'](function(_0x4470d4){const _0x5c4078=_0x766abb;_0x3cc48c[_0x5c4078('0x1de3')]=_0x4470d4['rows']||[];})[_0x766abb('0x151d')](function(_0x5ac54c){const _0x1a8807=_0x766abb;_0x318eec['error']({'title':_0x5ac54c['status']?'API:'+_0x5ac54c[_0x1a8807('0xff9')]+_0x1a8807('0xb0b')+_0x5ac54c[_0x1a8807('0x212f')]:_0x1a8807('0x23e0'),'msg':_0x5ac54c['data']?JSON[_0x1a8807('0x3e')](_0x5ac54c[_0x1a8807('0x4e8')]):_0x5ac54c[_0x1a8807('0xaab')]()});}):_0x2f35f8['smsQueue']['get']({'fields':_0x766abb('0xde'),'sort':_0x766abb('0x1909'),'nolimit':'true'})[_0x766abb('0x1549')][_0x766abb('0x11bf')](function(_0x15374e){const _0x4e4303=_0x766abb;_0x3cc48c[_0x4e4303('0x1de3')]=_0x15374e[_0x4e4303('0x19b2')]||[];})['then'](function(){const _0x26a57d=_0x766abb;return _0x2f35f8['userProfileSection']['get']({'userProfileId':_0x3cc48c['currentUser']['userProfileId'],'sectionId':0x2bd})[_0x26a57d('0x1549')];})[_0x766abb('0x11bf')](function(_0x1970ac){const _0x56983a=_0x766abb,_0x1656e9=_0x1970ac&&_0x1970ac[_0x56983a('0x19b2')]?_0x1970ac['rows'][0x0]:null;if(!_0x1656e9){const _0x18d8b6=[];let _0x3b1693=null;_0x3cc48c[_0x56983a('0x150b')]&&(_0x3b1693=_0x36f548()[_0x56983a('0x1ad4')](_0x3cc48c[_0x56983a('0x1de3')],{'name':_0x3cc48c[_0x56983a('0x150b')][_0x56983a('0x150b')]}));for(let _0x1c1b22=0x0;_0x1c1b22<_0x3cc48c[_0x56983a('0x1de3')][_0x56983a('0x1e22')];_0x1c1b22++){_0x3b1693&&_0x3cc48c['queues'][_0x1c1b22]['id']===_0x3b1693['id']&&(_0x3cc48c[_0x56983a('0x1de3')][_0x1c1b22][_0x56983a('0x254a')]=![],_0x18d8b6[_0x56983a('0x105d')](_0x3cc48c['queues'][_0x1c1b22]));}_0x3cc48c['queues']=_0x18d8b6;}else{if(!_0x1656e9[_0x56983a('0xf11')])return _0x2f35f8['userProfileResource'][_0x56983a('0xbaa')]({'sectionId':_0x1656e9['id']})[_0x56983a('0x1549')]['then'](function(_0x269663){const _0x513201=_0x56983a,_0x25b605=_0x36f548()[_0x513201('0x2171')](_0x269663[_0x513201('0x19b2')],function(_0x5db225){const _0x22f0ab=_0x513201;return _0x36f548()['find'](_0x3cc48c[_0x22f0ab('0x1de3')],{'id':_0x5db225[_0x22f0ab('0x15a5')]});});let _0x504b8d=null;_0x3cc48c[_0x513201('0x150b')]&&(_0x504b8d=_0x36f548()[_0x513201('0x1ad4')](_0x3cc48c[_0x513201('0x1de3')],{'name':_0x3cc48c[_0x513201('0x150b')][_0x513201('0x150b')]}));if(_0x504b8d&&!_0x36f548()['some'](_0x25b605,['id',_0x504b8d['id']])){const _0x4ecffb=_0x36f548()['find'](_0x3cc48c[_0x513201('0x1de3')],{'id':_0x504b8d['id']});_0x4ecffb['canSelect']=![],_0x25b605[_0x513201('0x105d')](_0x4ecffb);}_0x3cc48c[_0x513201('0x1de3')]=_0x25b605;});}})['catch'](function(_0xaaa1c){const _0x1f3c07=_0x766abb;_0x318eec[_0x1f3c07('0x255')]({'title':_0xaaa1c[_0x1f3c07('0xff9')]?_0x1f3c07('0x574')+_0xaaa1c[_0x1f3c07('0xff9')]+_0x1f3c07('0xb0b')+_0xaaa1c['statusText']:_0x1f3c07('0xebd'),'msg':_0xaaa1c[_0x1f3c07('0x4e8')]?JSON['stringify'](_0xaaa1c[_0x1f3c07('0x4e8')]):_0xaaa1c[_0x1f3c07('0xaab')]()});});function _0x3698da(){const _0x4d3da1=_0x766abb;_0x3cc48c[_0x4d3da1('0x120f')]=[];const _0x581eee=[];_0x3cc48c[_0x4d3da1('0x150b')][_0x4d3da1('0x19fd')]&&_0x3cc48c[_0x4d3da1('0x150b')]['type']['toLowerCase']()==='outbound'&&_0x3cc48c['queue']['appType']===_0x4d3da1('0x1bf6')&&(_0x3cc48c[_0x4d3da1('0x150b')][_0x4d3da1('0x1546')]=_0xca59f2[_0x4d3da1('0x388')]?(_0x3cc48c[_0x4d3da1('0x150b')]['prefix']||'')+'${EXTEN:'+_0xca59f2['cutdigits']+'}':(_0x3cc48c[_0x4d3da1('0x150b')][_0x4d3da1('0x2137')]||'')+_0x4d3da1('0x1f76'),_0xca59f2['recordingFormat']!==_0x4d3da1('0x3e6')?_0x3cc48c['queue']['options']['indexOf'](_0x4d3da1('0x22c9'))<0x0&&(_0x3cc48c[_0x4d3da1('0x150b')][_0x4d3da1('0x249a')]+=_0x4d3da1('0x22c9')):_0x3cc48c[_0x4d3da1('0x150b')][_0x4d3da1('0x249a')]=_0x3cc48c[_0x4d3da1('0x150b')][_0x4d3da1('0x249a')][_0x4d3da1('0x814')](_0x4d3da1('0x22c9'),''));const _0xd8b0=_0x36f548()[_0x4d3da1('0x1ad4')](_0x3cc48c[_0x4d3da1('0x1de3')],{'name':_0x3cc48c[_0x4d3da1('0x150b')][_0x4d3da1('0x150b')]});_0xd8b0&&(_0x3cc48c[_0x4d3da1('0x150b')][_0x36f548()[_0x4d3da1('0x22c2')](_0x4d3da1('0x4df'))+_0x4d3da1('0x128')]=_0xd8b0['id']);if(_0x3cc48c[_0x4d3da1('0x150b')][_0x4d3da1('0x27c0')]&&_0x3cc48c[_0x4d3da1('0x150b')]['appType']==='custom'){}else switch((_0x3cc48c[_0x4d3da1('0x150b')][_0x4d3da1('0x18f5')]||_0x3cc48c['queue'][_0x4d3da1('0x27c0')])[_0x4d3da1('0x20d5')]()){case _0x4d3da1('0xe50'):_0x3cc48c['queue'][_0x4d3da1('0x13fc')]=_0x3cc48c[_0x4d3da1('0x150b')]['name']+'='+_0x3cc48c[_0x4d3da1('0x150b')][_0x4d3da1('0x10cc')];break;case _0x4d3da1('0xa8d'):break;default:_0x581eee[0x0]=_0x3cc48c[_0x4d3da1('0x150b')]['queue'],_0x581eee[0x1]=_0x3cc48c['queue'][_0x4d3da1('0xfbe')],_0x3cc48c[_0x4d3da1('0x150b')][_0x4d3da1('0x13fc')]=_0x581eee[_0x4d3da1('0xa04')](',');}_0x45bd0f(_0x3cc48c[_0x4d3da1('0x150b')]);}function _0x45bd0f(_0x17d029){_0x98d88a['hide'](_0x17d029);}}const _0x211370=_0x411603;_0x3b02dd[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0x142d'),_0x21d0f5('0x1e69'),'smsAccount','api',_0x21d0f5('0x1150'),_0x21d0f5('0xb25')];function _0x3b02dd(_0x4c9305,_0xa2c9f8,_0x5b4502,_0x16e42d,_0x50d6c9,_0x5d0876,_0xa0d0d6,_0x160168){const _0x535bd1=_0x21d0f5,_0x120387=this;_0x120387['currentUser']=_0xa0d0d6['getCurrentUser'](),_0x120387[_0x535bd1('0x120f')]=[],_0x120387[_0x535bd1('0x134b')]=_0x535bd1('0x1a49')+(_0x16e42d[_0x535bd1('0x27c0')]||_0x16e42d[_0x535bd1('0x18f5')])['toUpperCase'](),_0x120387[_0x535bd1('0x196d')]=angular[_0x535bd1('0x6fb')](_0x16e42d),_0x120387[_0x535bd1('0xb25')]=_0x160168,_0x120387['hasModulePermissions']={};if(_0x120387['system'][_0x535bd1('0x13fc')])switch(_0x120387['system'][_0x535bd1('0x27c0')]?_0x120387[_0x535bd1('0x196d')]['appType'][_0x535bd1('0x20d5')]():_0x120387[_0x535bd1('0x196d')][_0x535bd1('0x18f5')]['toLowerCase']()){case _0x535bd1('0xa8d'):break;case _0x535bd1('0x185e'):{const _0x5c22c0=_0x120387[_0x535bd1('0x196d')][_0x535bd1('0x13fc')][_0x535bd1('0xaf8')](',');_0x120387[_0x535bd1('0x196d')][_0x535bd1('0xa0c')]=_0x5c22c0[0x0],_0x120387[_0x535bd1('0x196d')]['language']=_0x5c22c0[0x1],_0x120387['system'][_0x535bd1('0x1cbc')]=_0x5c22c0[_0x535bd1('0x1b77')](0x2,_0x5c22c0[_0x535bd1('0x1e22')])['join'](',');}break;case _0x535bd1('0x21a8'):{const _0x324ff7=_0x120387['system'][_0x535bd1('0x13fc')][_0x535bd1('0xaf8')](',');_0x120387[_0x535bd1('0x196d')][_0x535bd1('0x20e')]=_0x324ff7[0x0],_0x120387[_0x535bd1('0x196d')]['clientEmail']=_0x324ff7[0x1],_0x120387[_0x535bd1('0x196d')]['privateKey']=_0x324ff7[0x2],_0x120387[_0x535bd1('0x196d')][_0x535bd1('0xeff')]=_0x324ff7[0x3],_0x120387[_0x535bd1('0x196d')]['welcomemessage']=_0x324ff7[_0x535bd1('0x1b77')](0x4,_0x324ff7[_0x535bd1('0x1e22')])[_0x535bd1('0xa04')](',');}break;case _0x535bd1('0x102c'):{const _0x58920e=_0x120387['system'][_0x535bd1('0x13fc')][_0x535bd1('0xaf8')](',');_0x120387[_0x535bd1('0x196d')][_0x535bd1('0x1a82')]=_0x58920e[0x0],_0x120387[_0x535bd1('0x196d')]['secretaccesskey']=_0x58920e[0x1],_0x120387[_0x535bd1('0x196d')][_0x535bd1('0x165a')]=_0x58920e[0x2],_0x120387[_0x535bd1('0x196d')][_0x535bd1('0x1e8f')]=_0x58920e[0x3],_0x120387[_0x535bd1('0x196d')][_0x535bd1('0x1cbc')]=_0x58920e[_0x535bd1('0x1b77')](0x4,_0x58920e[_0x535bd1('0x1e22')])[_0x535bd1('0xa04')](',');}break;case'autoreply':{const _0x4f2d33=_0x120387[_0x535bd1('0x196d')][_0x535bd1('0x13fc')][_0x535bd1('0xaf8')](',');_0x120387[_0x535bd1('0x196d')][_0x535bd1('0x663')]=isNaN(_0x4f2d33[0x0])?_0x4f2d33[0x0]:parseInt(_0x4f2d33[0x0],0xa),_0x120387[_0x535bd1('0x196d')][_0x535bd1('0x25ed')]=_0x4f2d33[_0x535bd1('0x1b77')](0x1,_0x4f2d33['length'])[_0x535bd1('0xa04')](',');}break;case _0x535bd1('0x1b86'):_0x120387[_0x535bd1('0x196d')][_0x535bd1('0x25ed')]=_0x120387['system'][_0x535bd1('0x13fc')];break;case _0x535bd1('0xe50'):_0x120387[_0x535bd1('0x196d')]['name']=_0x120387[_0x535bd1('0x196d')][_0x535bd1('0x13fc')][_0x535bd1('0xaf8')]('=')[0x0],_0x120387[_0x535bd1('0x196d')][_0x535bd1('0x10cc')]=_0x120387[_0x535bd1('0x196d')][_0x535bd1('0x13fc')][_0x535bd1('0xaf8')]('=')[0x1];break;case _0x535bd1('0x1efd'):_0x120387[_0x535bd1('0x196d')][_0x535bd1('0xef0')]=_0x120387[_0x535bd1('0x196d')][_0x535bd1('0x13fc')];break;default:{const _0x44e48c=_0x120387[_0x535bd1('0x196d')][_0x535bd1('0x13fc')][_0x535bd1('0xaf8')](',');_0x120387[_0x535bd1('0x196d')][_0x535bd1('0x1b9f')]=_0x36f548()[_0x535bd1('0x1fc5')](_0x44e48c[0x0])?_0x44e48c[0x0]:isNaN(_0x44e48c[0x0])?_0x44e48c[0x0]:parseInt(_0x44e48c[0x0],0xa),_0x120387['system'][_0x535bd1('0xb0')]=_0x36f548()[_0x535bd1('0x1fc5')](_0x44e48c[0x1])?_0x44e48c[0x1]:isNaN(_0x44e48c[0x1])?_0x44e48c[0x1]:parseInt(_0x44e48c[0x1],0xa);}break;}else _0x120387['system'][_0x535bd1('0xb0')]='';_0x120387[_0x535bd1('0x196d')][_0x535bd1('0x19fd')]&&_0x120387[_0x535bd1('0x196d')][_0x535bd1('0x19fd')][_0x535bd1('0x20d5')]()===_0x535bd1('0x25b6')&&_0x120387['system'][_0x535bd1('0x27c0')]['toLowerCase']()==='outbounddial'&&(_0x120387[_0x535bd1('0x196d')][_0x535bd1('0x2137')]=_0x120387[_0x535bd1('0x196d')][_0x535bd1('0x1546')]?_0x120387[_0x535bd1('0x196d')][_0x535bd1('0x1546')][_0x535bd1('0xaf8')]('$')[0x0]:undefined,_0x120387[_0x535bd1('0x196d')][_0x535bd1('0x7d0')]=_0x120387[_0x535bd1('0x196d')]['callerID']?_0x535bd1('0x83a')+_0x120387[_0x535bd1('0x196d')][_0x535bd1('0xc38')]:undefined);_0x120387['saveSmsAccountApp']=_0xc70ccb,_0x120387[_0x535bd1('0xc4e')]=_0x32764a,_0xa0d0d6[_0x535bd1('0x4ee')](_0x535bd1('0xf45'))?_0x5d0876[_0x535bd1('0xb0')][_0x535bd1('0xbaa')]({'fields':_0x535bd1('0x721'),'sort':'name','nolimit':'true'})[_0x535bd1('0x1549')][_0x535bd1('0x11bf')](function(_0x2d36d5){const _0x240fd5=_0x535bd1;_0x120387[_0x240fd5('0x1700')]=_0x2d36d5[_0x240fd5('0x19b2')]||[];})[_0x535bd1('0x151d')](function(_0x28771d){const _0x8754a3=_0x535bd1;_0x5b4502['error']({'title':_0x28771d[_0x8754a3('0xff9')]?_0x8754a3('0x574')+_0x28771d[_0x8754a3('0xff9')]+'\x20-\x20'+_0x28771d[_0x8754a3('0x212f')]:_0x8754a3('0x1130'),'msg':_0x28771d[_0x8754a3('0x4e8')]?JSON[_0x8754a3('0x3e')](_0x28771d[_0x8754a3('0x4e8')]):_0x28771d['toString']()});}):_0x5d0876[_0x535bd1('0xb0')][_0x535bd1('0xbaa')]({'fields':'id,name','sort':_0x535bd1('0x1909'),'nolimit':_0x535bd1('0x204c')})[_0x535bd1('0x1549')][_0x535bd1('0x11bf')](function(_0x479103){const _0xd32089=_0x535bd1;_0x120387[_0xd32089('0x1700')]=_0x479103[_0xd32089('0x19b2')]||[];})['then'](function(){const _0x21ff35=_0x535bd1;return _0x5d0876[_0x21ff35('0x1d63')]['get']({'userProfileId':_0x120387[_0x21ff35('0x32a')][_0x21ff35('0x781')],'sectionId':0x3f4})['$promise'];})[_0x535bd1('0x11bf')](function(_0x244345){const _0x5c2d6f=_0x535bd1,_0x260121=_0x244345&&_0x244345[_0x5c2d6f('0x19b2')]?_0x244345['rows'][0x0]:null;if(!_0x260121){const _0x3a4d5e=[];let _0x403181=null;_0x120387[_0x5c2d6f('0x196d')]&&(_0x403181=_0x36f548()['find'](_0x120387[_0x5c2d6f('0x1700')],{'name':_0x120387[_0x5c2d6f('0x196d')][_0x5c2d6f('0xb0')]}));for(let _0x3fc1a5=0x0;_0x3fc1a5<_0x120387[_0x5c2d6f('0x1700')]['length'];_0x3fc1a5++){_0x403181&&_0x120387[_0x5c2d6f('0x1700')][_0x3fc1a5]['id']===_0x403181['id']&&(_0x120387[_0x5c2d6f('0x1700')][_0x3fc1a5][_0x5c2d6f('0x254a')]=![],_0x3a4d5e[_0x5c2d6f('0x105d')](_0x120387[_0x5c2d6f('0x1700')][_0x3fc1a5]));}_0x120387[_0x5c2d6f('0x1700')]=_0x3a4d5e;}else{if(!_0x260121[_0x5c2d6f('0xf11')])return _0x5d0876[_0x5c2d6f('0x26d1')]['get']({'sectionId':_0x260121['id']})['$promise']['then'](function(_0x4e0215){const _0x13b9a3=_0x5c2d6f,_0x384771=_0x36f548()[_0x13b9a3('0x2171')](_0x4e0215['rows'],function(_0x6f49b2){const _0x378561=_0x13b9a3;return _0x36f548()['find'](_0x120387[_0x378561('0x1700')],{'id':_0x6f49b2[_0x378561('0x15a5')]});});let _0x28bc1e=null;_0x120387[_0x13b9a3('0x196d')]&&(_0x28bc1e=_0x36f548()['find'](_0x120387[_0x13b9a3('0x1700')],{'name':_0x120387['system'][_0x13b9a3('0xb0')]}));if(_0x28bc1e&&!_0x36f548()['some'](_0x384771,['id',_0x28bc1e['id']])){const _0x39e0da=_0x36f548()['find'](_0x120387[_0x13b9a3('0x1700')],{'id':_0x28bc1e['id']});_0x39e0da['canSelect']=![],_0x384771['push'](_0x39e0da);}_0x120387[_0x13b9a3('0x1700')]=_0x384771;});}})['catch'](function(_0x23f5ac){const _0x2203de=_0x535bd1;_0x5b4502[_0x2203de('0x255')]({'title':_0x23f5ac[_0x2203de('0xff9')]?_0x2203de('0x574')+_0x23f5ac['status']+_0x2203de('0xb0b')+_0x23f5ac[_0x2203de('0x212f')]:_0x2203de('0x214a'),'msg':_0x23f5ac['data']?JSON[_0x2203de('0x3e')](_0x23f5ac[_0x2203de('0x4e8')]):_0x23f5ac[_0x2203de('0xaab')]()});});function _0xc70ccb(){const _0x232c5b=_0x535bd1;_0x120387['errors']=[];const _0x4ff12d=[];_0x120387[_0x232c5b('0x196d')][_0x232c5b('0x19fd')]&&_0x120387[_0x232c5b('0x196d')]['type'][_0x232c5b('0x20d5')]()==='outbound'&&_0x120387[_0x232c5b('0x196d')][_0x232c5b('0x27c0')]===_0x232c5b('0x1bf6')&&(_0x120387[_0x232c5b('0x196d')][_0x232c5b('0x1546')]=_0x50d6c9[_0x232c5b('0x388')]?(_0x120387[_0x232c5b('0x196d')][_0x232c5b('0x2137')]||'')+_0x232c5b('0x2100')+_0x50d6c9[_0x232c5b('0x388')]+'}':(_0x120387[_0x232c5b('0x196d')]['prefix']||'')+_0x232c5b('0x1f76'),_0x50d6c9[_0x232c5b('0x897')]!==_0x232c5b('0x3e6')?_0x120387[_0x232c5b('0x196d')]['options']['indexOf'](_0x232c5b('0x22c9'))<0x0&&(_0x120387[_0x232c5b('0x196d')][_0x232c5b('0x249a')]+=_0x232c5b('0x22c9')):_0x120387[_0x232c5b('0x196d')][_0x232c5b('0x249a')]=_0x120387[_0x232c5b('0x196d')][_0x232c5b('0x249a')][_0x232c5b('0x814')](_0x232c5b('0x22c9'),''));if(_0x120387[_0x232c5b('0x196d')][_0x232c5b('0x27c0')]&&_0x120387[_0x232c5b('0x196d')][_0x232c5b('0x27c0')]==='custom'){}else switch((_0x120387[_0x232c5b('0x196d')][_0x232c5b('0x18f5')]||_0x120387[_0x232c5b('0x196d')][_0x232c5b('0x27c0')])[_0x232c5b('0x20d5')]()){case'set':_0x120387[_0x232c5b('0x196d')][_0x232c5b('0x13fc')]=_0x120387['system'][_0x232c5b('0x1909')]+'='+_0x120387[_0x232c5b('0x196d')][_0x232c5b('0x10cc')];break;case _0x232c5b('0xa8d'):break;default:_0x4ff12d[0x0]=_0x120387['system']['command'],_0x4ff12d[0x1]=_0x120387[_0x232c5b('0x196d')]['variable'],_0x120387[_0x232c5b('0x196d')][_0x232c5b('0x13fc')]=_0x4ff12d[_0x232c5b('0xa04')](',');}_0x32764a(_0x120387[_0x232c5b('0x196d')]);}function _0x32764a(_0x3c02e5){const _0x2975b9=_0x535bd1;_0x4c9305[_0x2975b9('0x237e')](_0x3c02e5);}}const _0x5a7b04=_0x3b02dd;_0x359a91['$inject']=['$mdDialog','$q',_0x21d0f5('0x142d'),_0x21d0f5('0x1e69'),_0x21d0f5('0x234b'),'api',_0x21d0f5('0x1150'),'crudPermissions'];function _0x359a91(_0x1d60c0,_0x499ba9,_0x39c40f,_0x3e3d91,_0x543e14,_0x4969d3,_0x4f58f5,_0x661ef0){const _0x210c3a=_0x21d0f5,_0x5a409=this;_0x5a409[_0x210c3a('0x32a')]=_0x4f58f5[_0x210c3a('0x2428')](),_0x5a409[_0x210c3a('0x120f')]=[],_0x5a409[_0x210c3a('0x134b')]='SMS.EDIT_'+(_0x3e3d91['appType']||_0x3e3d91['app'])[_0x210c3a('0xa6f')](),_0x5a409[_0x210c3a('0x1d73')]=angular[_0x210c3a('0x6fb')](_0x3e3d91),_0x5a409['crudPermissions']=_0x661ef0,_0x5a409[_0x210c3a('0x2c9')]={};if(_0x5a409[_0x210c3a('0x1d73')]['appdata'])switch(_0x5a409[_0x210c3a('0x1d73')]['appType']?_0x5a409[_0x210c3a('0x1d73')][_0x210c3a('0x27c0')]['toLowerCase']():_0x5a409['tag'][_0x210c3a('0x18f5')][_0x210c3a('0x20d5')]()){case _0x210c3a('0xa8d'):break;case _0x210c3a('0x185e'):{const _0x53c41e=_0x5a409[_0x210c3a('0x1d73')][_0x210c3a('0x13fc')]['split'](',');_0x5a409['tag'][_0x210c3a('0xa0c')]=_0x53c41e[0x0],_0x5a409[_0x210c3a('0x1d73')][_0x210c3a('0xeff')]=_0x53c41e[0x1],_0x5a409['tag'][_0x210c3a('0x1cbc')]=_0x53c41e['slice'](0x2,_0x53c41e[_0x210c3a('0x1e22')])['join'](',');}break;case _0x210c3a('0x21a8'):{const _0x375d10=_0x5a409[_0x210c3a('0x1d73')]['appdata']['split'](',');_0x5a409['tag']['projectId']=_0x375d10[0x0],_0x5a409[_0x210c3a('0x1d73')][_0x210c3a('0x1f91')]=_0x375d10[0x1],_0x5a409[_0x210c3a('0x1d73')][_0x210c3a('0x1c6c')]=_0x375d10[0x2],_0x5a409['tag'][_0x210c3a('0xeff')]=_0x375d10[0x3],_0x5a409[_0x210c3a('0x1d73')][_0x210c3a('0x1cbc')]=_0x375d10['slice'](0x4,_0x375d10[_0x210c3a('0x1e22')])[_0x210c3a('0xa04')](',');}break;case _0x210c3a('0x102c'):{const _0x416dfd=_0x5a409[_0x210c3a('0x1d73')][_0x210c3a('0x13fc')][_0x210c3a('0xaf8')](',');_0x5a409[_0x210c3a('0x1d73')][_0x210c3a('0x1a82')]=_0x416dfd[0x0],_0x5a409[_0x210c3a('0x1d73')][_0x210c3a('0x1422')]=_0x416dfd[0x1],_0x5a409[_0x210c3a('0x1d73')]['lexregion']=_0x416dfd[0x2],_0x5a409[_0x210c3a('0x1d73')][_0x210c3a('0x1e8f')]=_0x416dfd[0x3],_0x5a409['tag']['welcomemessage']=_0x416dfd[_0x210c3a('0x1b77')](0x4,_0x416dfd[_0x210c3a('0x1e22')])['join'](',');}break;case _0x210c3a('0x187b'):{const _0x4c7172=_0x5a409[_0x210c3a('0x1d73')][_0x210c3a('0x13fc')][_0x210c3a('0xaf8')](',');_0x5a409[_0x210c3a('0x1d73')][_0x210c3a('0x663')]=isNaN(_0x4c7172[0x0])?_0x4c7172[0x0]:parseInt(_0x4c7172[0x0],0xa),_0x5a409['tag'][_0x210c3a('0x25ed')]=_0x4c7172[_0x210c3a('0x1b77')](0x1,_0x4c7172['length'])[_0x210c3a('0xa04')](',');}break;case _0x210c3a('0x1b86'):_0x5a409[_0x210c3a('0x1d73')][_0x210c3a('0x25ed')]=_0x5a409[_0x210c3a('0x1d73')][_0x210c3a('0x13fc')];break;case'set':_0x5a409['tag'][_0x210c3a('0x1909')]=_0x5a409['tag'][_0x210c3a('0x13fc')][_0x210c3a('0xaf8')]('=')[0x0],_0x5a409['tag'][_0x210c3a('0x10cc')]=_0x5a409['tag'][_0x210c3a('0x13fc')][_0x210c3a('0xaf8')]('=')[0x1];break;case'agi':_0x5a409[_0x210c3a('0x1d73')][_0x210c3a('0xef0')]=_0x5a409[_0x210c3a('0x1d73')][_0x210c3a('0x13fc')];break;default:{const _0xd1187b=_0x5a409[_0x210c3a('0x1d73')]['appdata'][_0x210c3a('0xaf8')](',');_0x5a409[_0x210c3a('0x1d73')][_0x210c3a('0x1d73')]=_0x36f548()['isEmpty'](_0xd1187b[0x0])?_0xd1187b[0x0]:isNaN(_0xd1187b[0x0])?_0xd1187b[0x0]:parseInt(_0xd1187b[0x0],0xa);}break;}else{}_0x5a409['tag']['type']&&_0x5a409[_0x210c3a('0x1d73')][_0x210c3a('0x19fd')][_0x210c3a('0x20d5')]()===_0x210c3a('0x25b6')&&_0x5a409[_0x210c3a('0x1d73')][_0x210c3a('0x27c0')][_0x210c3a('0x20d5')]()===_0x210c3a('0x1a64')&&(_0x5a409[_0x210c3a('0x1d73')]['prefix']=_0x5a409[_0x210c3a('0x1d73')][_0x210c3a('0x1546')]?_0x5a409[_0x210c3a('0x1d73')][_0x210c3a('0x1546')][_0x210c3a('0xaf8')]('$')[0x0]:undefined,_0x5a409[_0x210c3a('0x1d73')]['callerId']=_0x5a409['tag']['callerID']?_0x210c3a('0x83a')+_0x5a409[_0x210c3a('0x1d73')][_0x210c3a('0xc38')]:undefined);_0x5a409[_0x210c3a('0xfff')]=_0x1c113f,_0x5a409['closeDialog']=_0x1942fa,_0x4f58f5['hasRole']('admin')?_0x4969d3[_0x210c3a('0x1d73')]['get']({'fields':_0x210c3a('0x721'),'sort':_0x210c3a('0x1909'),'nolimit':_0x210c3a('0x204c')})[_0x210c3a('0x1549')][_0x210c3a('0x11bf')](function(_0xd76227){const _0x1cd3da=_0x210c3a;_0x5a409['tags']=_0xd76227[_0x1cd3da('0x19b2')]||[];})[_0x210c3a('0x151d')](function(_0x19fe31){const _0x1e854d=_0x210c3a;_0x39c40f[_0x1e854d('0x255')]({'title':_0x19fe31[_0x1e854d('0xff9')]?'API:'+_0x19fe31[_0x1e854d('0xff9')]+_0x1e854d('0xb0b')+_0x19fe31['statusText']:_0x1e854d('0x1138'),'msg':_0x19fe31[_0x1e854d('0x4e8')]?JSON[_0x1e854d('0x3e')](_0x19fe31[_0x1e854d('0x4e8')]):_0x19fe31['toString']()});}):_0x4969d3['tag']['get']({'fields':'id,name','sort':_0x210c3a('0x1909'),'nolimit':_0x210c3a('0x204c')})[_0x210c3a('0x1549')]['then'](function(_0x463ae0){_0x5a409['tags']=_0x463ae0['rows']||[];})[_0x210c3a('0x11bf')](function(){const _0x216549=_0x210c3a;return _0x4969d3[_0x216549('0x1d63')][_0x216549('0xbaa')]({'userProfileId':_0x5a409[_0x216549('0x32a')][_0x216549('0x781')],'sectionId':0x3f0})['$promise'];})[_0x210c3a('0x11bf')](function(_0x1a0ecb){const _0xe93ef3=_0x210c3a,_0x58af5f=_0x1a0ecb&&_0x1a0ecb[_0xe93ef3('0x19b2')]?_0x1a0ecb[_0xe93ef3('0x19b2')][0x0]:null;if(!_0x58af5f){const _0x10825c=[];let _0x3c431d=null;_0x5a409['tag']&&(_0x3c431d=_0x36f548()[_0xe93ef3('0x1ad4')](_0x5a409[_0xe93ef3('0x2763')],{'name':_0x5a409['tag']['tag']}));for(let _0x4c0c34=0x0;_0x4c0c34<_0x5a409[_0xe93ef3('0x2763')][_0xe93ef3('0x1e22')];_0x4c0c34++){_0x3c431d&&_0x5a409['tags'][_0x4c0c34]['id']===_0x3c431d['id']&&(_0x5a409[_0xe93ef3('0x2763')][_0x4c0c34][_0xe93ef3('0x254a')]=![],_0x10825c[_0xe93ef3('0x105d')](_0x5a409['tags'][_0x4c0c34]));}_0x5a409['tags']=_0x10825c;}else{if(!_0x58af5f[_0xe93ef3('0xf11')])return _0x4969d3[_0xe93ef3('0x26d1')][_0xe93ef3('0xbaa')]({'sectionId':_0x58af5f['id']})[_0xe93ef3('0x1549')][_0xe93ef3('0x11bf')](function(_0x483e4f){const _0x1df9e9=_0xe93ef3,_0x5b29ce=_0x36f548()['map'](_0x483e4f[_0x1df9e9('0x19b2')],function(_0x406d01){const _0x303e25=_0x1df9e9;return _0x36f548()[_0x303e25('0x1ad4')](_0x5a409[_0x303e25('0x2763')],{'id':_0x406d01[_0x303e25('0x15a5')]});});let _0x214a29=null;_0x5a409[_0x1df9e9('0x1d73')]&&(_0x214a29=_0x36f548()[_0x1df9e9('0x1ad4')](_0x5a409['tags'],{'name':_0x5a409['tag']['tag']}));if(_0x214a29&&!_0x36f548()[_0x1df9e9('0x1cb3')](_0x5b29ce,['id',_0x214a29['id']])){const _0xb0353c=_0x36f548()[_0x1df9e9('0x1ad4')](_0x5a409['tags'],{'id':_0x214a29['id']});_0xb0353c[_0x1df9e9('0x254a')]=![],_0x5b29ce[_0x1df9e9('0x105d')](_0xb0353c);}_0x5a409['tags']=_0x5b29ce;});}})[_0x210c3a('0x151d')](function(_0x4847e6){const _0x396ecd=_0x210c3a;_0x39c40f[_0x396ecd('0x255')]({'title':_0x4847e6[_0x396ecd('0xff9')]?'API:'+_0x4847e6[_0x396ecd('0xff9')]+_0x396ecd('0xb0b')+_0x4847e6[_0x396ecd('0x212f')]:_0x396ecd('0xb3e'),'msg':_0x4847e6[_0x396ecd('0x4e8')]?JSON['stringify'](_0x4847e6[_0x396ecd('0x4e8')]):_0x4847e6[_0x396ecd('0xaab')]()});});function _0x1c113f(){const _0x1a34c1=_0x210c3a;_0x5a409[_0x1a34c1('0x120f')]=[];const _0x33f016=[];_0x5a409[_0x1a34c1('0x1d73')][_0x1a34c1('0x19fd')]&&_0x5a409['tag']['type']['toLowerCase']()===_0x1a34c1('0x25b6')&&_0x5a409[_0x1a34c1('0x1d73')][_0x1a34c1('0x27c0')]===_0x1a34c1('0x1bf6')&&(_0x5a409['tag']['phone']=_0x543e14[_0x1a34c1('0x388')]?(_0x5a409[_0x1a34c1('0x1d73')][_0x1a34c1('0x2137')]||'')+_0x1a34c1('0x2100')+_0x543e14[_0x1a34c1('0x388')]+'}':(_0x5a409['tag'][_0x1a34c1('0x2137')]||'')+_0x1a34c1('0x1f76'),_0x543e14[_0x1a34c1('0x897')]!==_0x1a34c1('0x3e6')?_0x5a409[_0x1a34c1('0x1d73')]['options'][_0x1a34c1('0x203c')](_0x1a34c1('0x22c9'))<0x0&&(_0x5a409[_0x1a34c1('0x1d73')]['options']+=_0x1a34c1('0x22c9')):_0x5a409[_0x1a34c1('0x1d73')][_0x1a34c1('0x249a')]=_0x5a409[_0x1a34c1('0x1d73')][_0x1a34c1('0x249a')][_0x1a34c1('0x814')]('U(xcally-mixmonitor-context)',''));const _0x53319e=_0x36f548()[_0x1a34c1('0x1ad4')](_0x5a409[_0x1a34c1('0x2763')],{'name':_0x5a409[_0x1a34c1('0x1d73')][_0x1a34c1('0x1d73')]});_0x53319e&&(_0x5a409[_0x1a34c1('0x1d73')][_0x1a34c1('0x3a3')]=_0x53319e['id']);if(_0x5a409[_0x1a34c1('0x1d73')][_0x1a34c1('0x27c0')]&&_0x5a409['tag'][_0x1a34c1('0x27c0')]==='custom'){}else switch((_0x5a409[_0x1a34c1('0x1d73')][_0x1a34c1('0x18f5')]||_0x5a409[_0x1a34c1('0x1d73')][_0x1a34c1('0x27c0')])[_0x1a34c1('0x20d5')]()){case'set':_0x5a409[_0x1a34c1('0x1d73')][_0x1a34c1('0x13fc')]=_0x5a409['tag']['name']+'='+_0x5a409[_0x1a34c1('0x1d73')][_0x1a34c1('0x10cc')];break;case'custom':break;default:_0x33f016[0x0]=_0x5a409[_0x1a34c1('0x1d73')][_0x1a34c1('0x1d73')],_0x5a409[_0x1a34c1('0x1d73')][_0x1a34c1('0x13fc')]=_0x33f016[_0x1a34c1('0xa04')](',');}_0x1942fa(_0x5a409['tag']);}function _0x1942fa(_0x58eb77){const _0xdd9fc2=_0x210c3a;_0x1d60c0[_0xdd9fc2('0x237e')](_0x58eb77);}}const _0x528645=_0x359a91;_0x1e7e21[_0x21d0f5('0x1e9a')]=['$cookies',_0x21d0f5('0x1b80'),_0x21d0f5('0xcbc'),'$q',_0x21d0f5('0xb6b'),_0x21d0f5('0x17f5'),_0x21d0f5('0x1ca2'),'$document','toasty',_0x21d0f5('0x12a5'),'Auth'];function _0x1e7e21(_0x4a57c8,_0x7bd518,_0x2db963,_0x82763a,_0x56f0ea,_0x3f59f6,_0x34b3e1,_0x7c4363,_0x27a97f,_0x45f257,_0x5a3c57){const _0x4f7e95=_0x21d0f5,_0x5ecd8f=this;_0x5ecd8f[_0x4f7e95('0x32a')]=_0x5a3c57[_0x4f7e95('0x2428')](),_0x5ecd8f[_0x4f7e95('0x234b')]={},_0x5ecd8f[_0x4f7e95('0x10c5')]={'count':0x0,'rows':[]},_0x5ecd8f[_0x4f7e95('0x94c')]=[],_0x5ecd8f[_0x4f7e95('0xb25')],_0x5ecd8f['query']={'read':_0x4f7e95('0xb5f'),'closed':_0x4f7e95('0xb5f'),'sort':_0x4f7e95('0xb8c'),'includeAll':'true','limit':0xa,'page':0x1},_0x5ecd8f[_0x4f7e95('0x286f')]=_0x3cf1fd,_0x5ecd8f[_0x4f7e95('0x560')]=_0x430848,_0x5ecd8f['smsInteractionDownload']=_0x29054f,_0x5ecd8f[_0x4f7e95('0x2693')]=_0x2ab09f,_0x5ecd8f[_0x4f7e95('0x249d')]=_0x321f44,_0x5ecd8f['spysmsInteraction']=_0x460015,_0x5ecd8f[_0x4f7e95('0x2297')]=_0x138168,_0x5ecd8f[_0x4f7e95('0x20e7')]=_0x30cdff,_0x5ecd8f[_0x4f7e95('0xabe')]=_0xc34bd,_0x5ecd8f['deleteSelectedSmsAccountInteractions']=_0x4268ce;function _0x3cf1fd(_0x2ee4e1,_0xb838e1){const _0x5c2c66=_0x4f7e95;_0x5ecd8f['smsAccount']=_0x2ee4e1,_0x5ecd8f[_0x5c2c66('0xb25')]=typeof _0xb838e1!==_0x5c2c66('0x13e9')?_0xb838e1:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x5ecd8f[_0x5c2c66('0x1f2a')][_0x5c2c66('0x80b')]=_0x5ecd8f[_0x5c2c66('0x234b')]['id'],_0x5ecd8f[_0x5c2c66('0xd6d')]={'fields':_0x26900a()},_0x1970ee();}function _0x1970ee(){const _0x2982d9=_0x4f7e95;return _0x45f257[_0x2982d9('0x1d73')]['get']()['$promise'][_0x2982d9('0x11bf')](function(_0x5162c2){_0x5ecd8f['tags']=_0x5162c2||{'count':0x0,'rows':[]};})[_0x2982d9('0x11bf')](function(){const _0x576fd7=_0x2982d9;_0x5ecd8f[_0x576fd7('0x7db')]=_0x1f81c6();});}function _0x1f81c6(){const _0x1e3b0b=_0x4f7e95;return[{'name':_0x1e3b0b('0xa68'),'key':_0x1e3b0b('0x1779'),'type':'date','label':_0x1e3b0b('0x1c11')},{'name':_0x1e3b0b('0x3ad'),'key':_0x1e3b0b('0x1601'),'type':'select','label':_0x1e3b0b('0x22a0'),'customOptions':[{'value':0x0,'translate':_0x1e3b0b('0x1dd4')},{'value':0x1,'translate':_0x1e3b0b('0x22a5')},{'value':null,'translate':_0x1e3b0b('0x211a')}]},{'name':_0x1e3b0b('0x971'),'key':_0x1e3b0b('0x949'),'type':_0x1e3b0b('0x2350'),'label':_0x1e3b0b('0xa96'),'customOptions':[{'value':0x0,'translate':_0x1e3b0b('0x2846')},{'value':0x1,'translate':'DASHBOARDS.CLOSED'},{'value':null,'translate':_0x1e3b0b('0x211a')}]},{'name':_0x1e3b0b('0x701'),'key':_0x1e3b0b('0x2342'),'type':'select','label':'DASHBOARDS.SELECT_AGENT','customOptions':[{'value':_0x1e3b0b('0xb5f'),'translate':'DASHBOARDS.NOT_ASSIGNED'},{'value':undefined,'translate':_0x1e3b0b('0x211a')}]},{'name':_0x1e3b0b('0x23ba'),'key':_0x1e3b0b('0x1d73'),'type':_0x1e3b0b('0xe83'),'label':_0x1e3b0b('0x9b9'),'options':_0x5ecd8f['tags'][_0x1e3b0b('0x19b2')],'placeholder':_0x1e3b0b('0x1f9a')}];}function _0x26900a(){const _0x412978=_0x4f7e95;return[{'name':'Id','column':'id','type':_0x412978('0x139e')},{'name':_0x412978('0xf10'),'column':_0x412978('0xf10'),'type':_0x412978('0x282b'),'options':{'searchFields':[_0x412978('0x13a0'),_0x412978('0xcf3'),_0x412978('0x15d3')],'route':{'model':_0x412978('0x1b8f'),'action':_0x412978('0xbaa'),'params':{'fields':_0x412978('0xd81'),'Contact':_0x412978('0xfda'),'nolimit':!![]}},'extraOperators':[_0x412978('0x512')],'excludedOperators':[_0x412978('0x27c1')]}},{'name':_0x412978('0x8a9'),'column':_0x412978('0x20eb'),'type':_0x412978('0x25ed'),'options':{'excludedOperators':[_0x412978('0x23de'),_0x412978('0x27c1')]}},{'name':'Body','column':_0x412978('0x4d1'),'type':'text','options':{'excludedOperators':[_0x412978('0x23de'),_0x412978('0x27c1')]}},{'name':_0x412978('0x971'),'column':'closed','type':'select','values':[{'id':0x0,'translate':_0x412978('0x2846')},{'id':0x1,'translate':_0x412978('0x199')}],'options':{'excludedOperators':[_0x412978('0x27c1')]}},{'name':_0x412978('0x701'),'column':_0x412978('0x24ab'),'type':'autocomplete','options':{'table':'i','route':{'model':'user','action':_0x412978('0xbaa'),'params':{'role':_0x412978('0x18c4'),'fields':'id,name,fullname','nolimit':!![]}},'searchFields':[_0x412978('0x27af'),_0x412978('0x1909')],'extraOperators':[_0x412978('0x512')],'excludedOperators':[_0x412978('0x27c1')]}},{'name':'Tags','column':_0x412978('0x23ba'),'type':_0x412978('0xe83'),'options':{'route':{'model':'tag','action':_0x412978('0xbaa'),'params':{'nolimit':!![]}},'excludedOperators':[_0x412978('0x1239')]}},{'name':_0x412978('0xa68'),'column':_0x412978('0x1779'),'type':_0x412978('0x22f7'),'options':{'excludedOperators':[_0x412978('0x27c1')]}},{'name':_0x412978('0xf18'),'column':_0x412978('0xf2'),'type':_0x412978('0x2350'),'values':[{'id':0x1,'translate':_0x412978('0x22a5')},{'id':0x0,'translate':_0x412978('0x1dd4')}],'options':{'excludedOperators':[_0x412978('0x27c1')]}}];}function _0x138168(){const _0x1ea6e8=_0x4f7e95;_0x34b3e1[_0x1ea6e8('0xb9')]({'controller':_0x1ea6e8('0x5'),'controllerAs':'vm','templateUrl':_0x19602a,'parent':angular['element'](_0x7c4363[_0x1ea6e8('0x1d2')]),'clickOutsideToClose':![],'locals':{'fields':_0x5ecd8f['advancedSearch']['fields'],'color':undefined,'storagePath':_0x1ea6e8('0x19bf')},'fullscreen':!![]})[_0x1ea6e8('0x11bf')](function(_0x2e24b4){const _0x18a6df=_0x1ea6e8;_0x5ecd8f['query'][_0x18a6df('0xce2')]=_0x2e24b4===![]?undefined:_0x2e24b4;if(_0x5ecd8f[_0x18a6df('0x1f2a')][_0x18a6df('0xce2')])_0x321f44();else _0x2e24b4===![]&&_0x321f44();})['catch'](function(_0x2f0595){const _0x192406=_0x1ea6e8;_0x27a97f['error']({'title':_0x192406('0x1d30'),'msg':_0x2f0595['data']?JSON[_0x192406('0x3e')](_0x2f0595[_0x192406('0x4e8')][_0x192406('0x1b86')]):_0x2f0595[_0x192406('0xaab')]()});});}function _0x29054f(_0x544dd0,_0x3a03fb,_0x5c349f){const _0x48bacc=_0x4f7e95;return _0x45f257['smsInteraction']['download']({'id':_0x544dd0['id'],'exists':!![],'attachments':_0x5c349f})[_0x48bacc('0x1549')]['then'](function(_0x175122){const _0x230586=_0x48bacc,_0x286f4a=[_0x175122['buffer']];let _0x50d75e=_0x230586('0x4e6')+_0x544dd0['id'];const _0x499227=new Blob(_0x286f4a,{'type':_0x175122[_0x230586('0x19fd')]});_0x50d75e=_0x230586('0x5a1')+_0x544dd0['id']+'.zip';const _0x243df9=window[_0x230586('0xb54')]['createElement']('a');_0x243df9[_0x230586('0x1e1b')](_0x230586('0xead'),URL[_0x230586('0x44b')](_0x499227)),_0x243df9[_0x230586('0x1e1b')](_0x230586('0x149c'),_0x50d75e),document['body'][_0x230586('0x131c')](_0x243df9),_0x243df9['click']();})[_0x48bacc('0x151d')](function(_0x2d519a){const _0xbc4539=_0x48bacc;if(_0x2d519a[_0xbc4539('0x4e8')]&&_0x2d519a[_0xbc4539('0x4e8')][_0xbc4539('0x120f')]&&_0x2d519a['data'][_0xbc4539('0x120f')]['length'])for(let _0x1f85d8=0x0;_0x1f85d8<_0x2d519a[_0xbc4539('0x4e8')][_0xbc4539('0x120f')][_0xbc4539('0x1e22')];_0x1f85d8+=0x1){_0x27a97f[_0xbc4539('0x255')]({'title':_0x2d519a['data']['errors'][_0x1f85d8][_0xbc4539('0x19fd')],'msg':_0x2d519a[_0xbc4539('0x4e8')]['errors'][_0x1f85d8][_0xbc4539('0x1b86')]});}else _0x27a97f[_0xbc4539('0x255')]({'title':_0x2d519a[_0xbc4539('0xff9')]?'API:'+_0x2d519a[_0xbc4539('0xff9')]+_0xbc4539('0xb0b')+_0x2d519a['statusText']:_0xbc4539('0x1827'),'msg':_0x2d519a[_0xbc4539('0x4e8')]?JSON['stringify'](_0x2d519a['data']['message']):_0x2d519a['toString']()});});}function _0x430848(_0x5eb34c,_0x514167){const _0x2c10eb=_0x4f7e95,_0x5c9972=_0x34b3e1[_0x2c10eb('0x132b')]()[_0x2c10eb('0x134b')](_0x2c10eb('0x1d6a'))[_0x2c10eb('0x1d03')](_0x2c10eb('0x2061')+(_0x5eb34c[_0x2c10eb('0x1909')]||_0x5eb34c['id']&&_0x36f548()[_0x2c10eb('0x24b5')](_0x2c10eb('0x161c'))+_0x5eb34c['id']||_0x2c10eb('0x4e6'))+''+'\x20will\x20be\x20deleted.')[_0x2c10eb('0xb2e')](_0x2c10eb('0x14fe'))[_0x2c10eb('0x1e25')](_0x514167)['ok']('OK')['cancel']('CANCEL');_0x34b3e1['show'](_0x5c9972)[_0x2c10eb('0x11bf')](function(){_0xc34bd(_0x5eb34c);},function(){const _0x4ee3ca=_0x2c10eb;console[_0x4ee3ca('0xc78')](_0x4ee3ca('0x772'));});}function _0x2ab09f(_0x5fd73c){const _0x30c9d2=_0x4f7e95;_0x5ecd8f['smsAccountInteractions']=_0x5fd73c||{'count':0x0,'rows':[]};for(let _0xa0a491=0x0;_0xa0a491<_0x5ecd8f[_0x30c9d2('0x10c5')]['rows'][_0x30c9d2('0x1e22')];_0xa0a491+=0x1){const _0x1e1ab7=_0x5ecd8f[_0x30c9d2('0x10c5')][_0x30c9d2('0x19b2')][_0xa0a491];_0x21fa01(_0x1e1ab7),_0x1e1ab7['Owner']['name']=_0x3b040c(_0x1e1ab7);}}function _0x321f44(){const _0x24d231=_0x4f7e95;_0x5ecd8f[_0x24d231('0x1f2a')][_0x24d231('0x1393')]=(_0x5ecd8f[_0x24d231('0x1f2a')][_0x24d231('0x1c2')]-0x1)*_0x5ecd8f[_0x24d231('0x1f2a')]['limit'],_0x5ecd8f[_0x24d231('0x13f')]=_0x45f257[_0x24d231('0x2877')][_0x24d231('0xbaa')](_0x5ecd8f['query'],_0x2ab09f)[_0x24d231('0x1549')];}function _0x460015(_0x15c950,_0xb0047d){const _0x52489d=_0x4f7e95;_0x34b3e1[_0x52489d('0xb9')]({'controller':_0x52489d('0x15fe'),'controllerAs':'vm','templateUrl':_0x1742d8,'parent':angular[_0x52489d('0x1e73')](_0x7c4363[_0x52489d('0x1d2')]),'targetEvent':_0x15c950,'clickOutsideToClose':!![],'onShowing':function(_0x44db83){const _0x29ea52=_0x52489d;_0x44db83['vm'][_0x29ea52('0x286f')]({'id':0x1,'channel':'sms','interaction':_0xb0047d,'spy':!![]},_0x7bd518[_0x29ea52('0x25f5')]['vm'][_0x29ea52('0x23e1')]);}});}function _0xc34bd(_0x21fd5b){const _0x413080=_0x4f7e95;_0x45f257[_0x413080('0x2877')][_0x413080('0x2088')]({'id':_0x21fd5b['id']})[_0x413080('0x1549')][_0x413080('0x11bf')](function(){const _0x2c00a9=_0x413080;_0x36f548()['remove'](_0x5ecd8f['smsAccountInteractions'][_0x2c00a9('0x19b2')],{'id':_0x21fd5b['id']}),_0x5ecd8f[_0x2c00a9('0x10c5')][_0x2c00a9('0x27d2')]-=0x1,!_0x5ecd8f[_0x2c00a9('0x10c5')]['rows']['length']&&_0x321f44(),_0x27a97f[_0x2c00a9('0x2693')]({'title':_0x2c00a9('0xc64'),'msg':_0x21fd5b[_0x2c00a9('0x1909')]?_0x21fd5b['name']+_0x2c00a9('0x433'):''});})[_0x413080('0x151d')](function(_0x45c786){const _0x340249=_0x413080;if(_0x45c786[_0x340249('0x4e8')]&&_0x45c786[_0x340249('0x4e8')]['errors']&&_0x45c786['data'][_0x340249('0x120f')][_0x340249('0x1e22')]){_0x5ecd8f[_0x340249('0x120f')]=_0x45c786['data'][_0x340249('0x120f')]||[{'message':_0x45c786[_0x340249('0xaab')](),'type':_0x340249('0x54c')}];for(let _0xe6e4f7=0x0;_0xe6e4f7<_0x45c786[_0x340249('0x4e8')][_0x340249('0x120f')][_0x340249('0x1e22')];_0xe6e4f7++){_0x27a97f[_0x340249('0x255')]({'title':_0x45c786[_0x340249('0x4e8')][_0x340249('0x120f')][_0xe6e4f7][_0x340249('0x19fd')],'msg':_0x45c786[_0x340249('0x4e8')][_0x340249('0x120f')][_0xe6e4f7][_0x340249('0x1b86')]});}}else _0x27a97f[_0x340249('0x255')]({'title':_0x45c786[_0x340249('0xff9')]?'API:'+_0x45c786['status']+'\x20-\x20'+_0x45c786[_0x340249('0x212f')]:_0x340249('0x54c'),'msg':_0x45c786[_0x340249('0x4e8')]?JSON[_0x340249('0x3e')](_0x45c786[_0x340249('0x4e8')][_0x340249('0x1b86')]):_0x45c786['message']||_0x45c786[_0x340249('0xaab')]()});});}function _0x30cdff(){const _0x21832a=_0x4f7e95,_0x4080de=angular['copy'](_0x5ecd8f['selectedSmsAccountInteractions']);return _0x5ecd8f[_0x21832a('0x94c')]=[],_0x4080de;}function _0x4268ce(_0x578405){const _0x3a8ca3=_0x4f7e95,_0x21dead=_0x34b3e1['confirm']()['title'](_0x3a8ca3('0x1c8d'))[_0x3a8ca3('0x1d03')](''+_0x5ecd8f[_0x3a8ca3('0x94c')][_0x3a8ca3('0x1e22')]+_0x3a8ca3('0xac6')+_0x3a8ca3('0x1a'))[_0x3a8ca3('0xb2e')](_0x3a8ca3('0xcbb'))[_0x3a8ca3('0x1e25')](_0x578405)['ok']('OK')[_0x3a8ca3('0x26c9')](_0x3a8ca3('0x772'));_0x34b3e1[_0x3a8ca3('0xb9')](_0x21dead)[_0x3a8ca3('0x11bf')](function(){const _0x1dd908=_0x3a8ca3;_0x5ecd8f[_0x1dd908('0x94c')][_0x1dd908('0x1f88')](function(_0x55663d){_0xc34bd(_0x55663d);}),_0x5ecd8f[_0x1dd908('0x94c')]=[];});}function _0x21fa01(_0x36f6c5){const _0x41e302=_0x4f7e95;_0x36f6c5[_0x41e302('0xf10')]?(_0x36f6c5[_0x41e302('0xca9')]=(_0x36f6c5[_0x41e302('0xf10')]['firstName']||'')+'\x20'+(_0x36f6c5[_0x41e302('0xf10')]['lastName']||''),_0x36f6c5[_0x41e302('0x1116')]=_0x36f6c5['Contact']['mobile']):_0x36f6c5[_0x41e302('0xca9')]=_0x56f0ea[_0x41e302('0x10c2')](_0x41e302('0x1d85'));}function _0x3b040c(_0x321852){const _0x5ebb31=_0x4f7e95;if(_0x321852[_0x5ebb31('0x2342')])return _0x321852[_0x5ebb31('0x2342')]===_0x5ecd8f[_0x5ebb31('0x32a')]['id']?_0x56f0ea[_0x5ebb31('0x10c2')](_0x5ebb31('0x275d')):_0x321852['Owner'][_0x5ebb31('0x27af')]+'\x20<'+_0x321852[_0x5ebb31('0x657')][_0x5ebb31('0x1a04')]+'>';return _0x56f0ea['instant']('DASHBOARDS.NOT_ASSIGNED');}let _0x13d424=!![],_0x3d02a5=0x1;_0x7bd518[_0x4f7e95('0x2087')](_0x4f7e95('0x1d12'),function(_0x10f0b2,_0x2253da){const _0x266497=_0x4f7e95;_0x13d424?_0x3f59f6(function(){_0x13d424=![];}):(!_0x2253da&&(_0x3d02a5=_0x5ecd8f[_0x266497('0x1f2a')][_0x266497('0x1c2')]),_0x10f0b2!==_0x2253da&&(_0x5ecd8f['query'][_0x266497('0x1c2')]=0x1),!_0x10f0b2&&(_0x5ecd8f[_0x266497('0x1f2a')][_0x266497('0x1c2')]=_0x3d02a5),_0x321f44());});}const _0x614e03=_0x1e7e21,_0xecb75d=_0x351988['p']+'src/js/modules/main/apps/sms/views/smsAccounts/edit/smsCannedAnswers/dialog.html/dialog.html';_0x29a6d2[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x5d8'),_0x21d0f5('0x1b80'),_0x21d0f5('0xcbc'),'$q',_0x21d0f5('0xb6b'),_0x21d0f5('0x17f5'),_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),_0x21d0f5('0x142d'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150')];function _0x29a6d2(_0x41e731,_0x26b14b,_0x42e829,_0x425258,_0x5aadff,_0xb82cf7,_0x31e23a,_0x342cb1,_0x2db1d7,_0xce6804,_0x1621ec){const _0x183bc6=_0x21d0f5,_0xeef9e8=this;_0xeef9e8[_0x183bc6('0x32a')]=_0x1621ec[_0x183bc6('0x2428')](),_0xeef9e8['smsAccount']={},_0xeef9e8[_0x183bc6('0x7d3')]={'count':0x0,'rows':[]},_0xeef9e8[_0x183bc6('0x2072')]=[],_0xeef9e8[_0x183bc6('0xb25')],_0xeef9e8[_0x183bc6('0x1f2a')]={'fields':_0x183bc6('0x1cb4'),'limit':0xa,'page':0x1},_0xeef9e8[_0x183bc6('0x286f')]=_0x44d447,_0xeef9e8[_0x183bc6('0x560')]=_0x28325b,_0xeef9e8[_0x183bc6('0x2693')]=_0x43dc5e,_0xeef9e8[_0x183bc6('0x26fa')]=_0x458262,_0xeef9e8['createOrEditSmsAccountSmsCannedAnswer']=_0x4ff49d,_0xeef9e8['exportSelectedSmsAccountSmsCannedAnswers']=_0x8862f,_0xeef9e8['deleteSmsAccountSmsCannedAnswer']=_0x1b457f,_0xeef9e8[_0x183bc6('0x2403')]=_0xfbf791;function _0x44d447(_0x285c44,_0x592af5){const _0x2ee99e=_0x183bc6;_0xeef9e8[_0x2ee99e('0x234b')]=_0x285c44,_0xeef9e8[_0x2ee99e('0xb25')]=typeof _0x592af5!==_0x2ee99e('0x13e9')?_0x592af5:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0xeef9e8[_0x2ee99e('0x1f2a')][_0x2ee99e('0x80b')]=_0xeef9e8['smsAccount']['id'],_0xeef9e8[_0x2ee99e('0x1f2a')]['id']=_0xeef9e8[_0x2ee99e('0x234b')]['id'],_0x458262();}function _0x28325b(_0x446b54,_0x15e8d6){const _0x499e9c=_0x183bc6,_0x23ff88=_0x31e23a[_0x499e9c('0x132b')]()['title'](_0x499e9c('0x23c8'))[_0x499e9c('0x1d03')](_0x499e9c('0x2061')+(_0x446b54[_0x499e9c('0x1909')]||_0x446b54['id']&&_0x36f548()[_0x499e9c('0x24b5')](_0x499e9c('0x207d'))+_0x446b54['id']||_0x499e9c('0xd73'))+''+_0x499e9c('0x1a'))[_0x499e9c('0xb2e')]('delete\x20smsCannedAnswer')['targetEvent'](_0x15e8d6)['ok']('OK')[_0x499e9c('0x26c9')]('CANCEL');_0x31e23a[_0x499e9c('0xb9')](_0x23ff88)[_0x499e9c('0x11bf')](function(){_0x1b457f(_0x446b54);},function(){const _0x5387b4=_0x499e9c;console[_0x5387b4('0xc78')]('CANCEL');});}function _0x43dc5e(_0x14ffd6){_0xeef9e8['smsAccountSmsCannedAnswers']=_0x14ffd6||{'count':0x0,'rows':[]};}function _0x458262(){const _0x3716e2=_0x183bc6;_0xeef9e8[_0x3716e2('0x1f2a')]['offset']=(_0xeef9e8[_0x3716e2('0x1f2a')][_0x3716e2('0x1c2')]-0x1)*_0xeef9e8[_0x3716e2('0x1f2a')][_0x3716e2('0xd5c')],_0xeef9e8[_0x3716e2('0x13f')]=_0xce6804[_0x3716e2('0x234b')][_0x3716e2('0x2785')](_0xeef9e8[_0x3716e2('0x1f2a')],_0x43dc5e)[_0x3716e2('0x1549')];}function _0x4ff49d(_0x530b7c,_0x2b8e67){const _0x1503f9=_0x183bc6;_0x31e23a['show']({'controller':_0x1503f9('0x11f3'),'controllerAs':'vm','templateUrl':_0xecb75d,'parent':angular[_0x1503f9('0x1e73')](_0x342cb1[_0x1503f9('0x1d2')]),'targetEvent':_0x530b7c,'clickOutsideToClose':!![],'locals':{'smsAccount':_0xeef9e8['smsAccount'],'smsCannedAnswer':_0x2b8e67,'smsCannedAnswers':_0xeef9e8['smsAccountSmsCannedAnswers'][_0x1503f9('0x19b2')],'license':null,'setting':null,'crudPermissions':_0xeef9e8[_0x1503f9('0xb25')]}});}function _0x1b457f(_0x521d56){const _0xe860c6=_0x183bc6;_0xce6804['cannedAnswer']['delete']({'id':_0x521d56['id']})[_0xe860c6('0x1549')][_0xe860c6('0x11bf')](function(){const _0x2fbc5e=_0xe860c6;_0x36f548()[_0x2fbc5e('0x14a5')](_0xeef9e8[_0x2fbc5e('0x7d3')][_0x2fbc5e('0x19b2')],{'id':_0x521d56['id']}),_0xeef9e8[_0x2fbc5e('0x7d3')][_0x2fbc5e('0x27d2')]-=0x1,!_0xeef9e8[_0x2fbc5e('0x7d3')][_0x2fbc5e('0x19b2')][_0x2fbc5e('0x1e22')]&&_0x458262(),_0x2db1d7[_0x2fbc5e('0x2693')]({'title':_0x2fbc5e('0xe91'),'msg':_0x521d56[_0x2fbc5e('0x1909')]?_0x521d56[_0x2fbc5e('0x1909')]+_0x2fbc5e('0x433'):''});})[_0xe860c6('0x151d')](function(_0xb98e34){const _0xc86c4=_0xe860c6;if(_0xb98e34[_0xc86c4('0x4e8')]&&_0xb98e34['data'][_0xc86c4('0x120f')]&&_0xb98e34[_0xc86c4('0x4e8')][_0xc86c4('0x120f')][_0xc86c4('0x1e22')]){_0xeef9e8[_0xc86c4('0x120f')]=_0xb98e34['data']['errors']||[{'message':_0xb98e34[_0xc86c4('0xaab')](),'type':_0xc86c4('0x54c')}];for(let _0x4acaed=0x0;_0x4acaed<_0xb98e34[_0xc86c4('0x4e8')][_0xc86c4('0x120f')]['length'];_0x4acaed++){_0x2db1d7[_0xc86c4('0x255')]({'title':_0xb98e34[_0xc86c4('0x4e8')][_0xc86c4('0x120f')][_0x4acaed][_0xc86c4('0x19fd')],'msg':_0xb98e34[_0xc86c4('0x4e8')][_0xc86c4('0x120f')][_0x4acaed][_0xc86c4('0x1b86')]});}}else _0x2db1d7[_0xc86c4('0x255')]({'title':_0xb98e34['status']?_0xc86c4('0x574')+_0xb98e34[_0xc86c4('0xff9')]+'\x20-\x20'+_0xb98e34['statusText']:_0xc86c4('0x54c'),'msg':_0xb98e34[_0xc86c4('0x4e8')]?JSON[_0xc86c4('0x3e')](_0xb98e34['data'][_0xc86c4('0x1b86')]):_0xb98e34[_0xc86c4('0x1b86')]||_0xb98e34[_0xc86c4('0xaab')]()});});}function _0x8862f(){const _0x5ebf63=_0x183bc6,_0x43b697=angular[_0x5ebf63('0x6fb')](_0xeef9e8[_0x5ebf63('0x2072')]);return _0xeef9e8['selectedSmsAccountSmsCannedAnswers']=[],_0x43b697;}function _0xfbf791(_0x599950){const _0x5b909c=_0x183bc6,_0x16f3f9=_0x31e23a[_0x5b909c('0x132b')]()['title'](_0x5b909c('0x1fd9'))['htmlContent'](_0x5b909c('0x2061')+_0xeef9e8['selectedSmsAccountSmsCannedAnswers'][_0x5b909c('0x1e22')]+_0x5b909c('0xac6')+_0x5b909c('0x1a'))[_0x5b909c('0xb2e')](_0x5b909c('0x11e6'))[_0x5b909c('0x1e25')](_0x599950)['ok']('OK')[_0x5b909c('0x26c9')]('CANCEL');_0x31e23a[_0x5b909c('0xb9')](_0x16f3f9)['then'](function(){const _0xb7772e=_0x5b909c;_0xeef9e8[_0xb7772e('0x2072')]['forEach'](function(_0x2eb065){_0x1b457f(_0x2eb065);}),_0xeef9e8[_0xb7772e('0x2072')]=[];});}let _0x461ff2=!![],_0x1ea50c=0x1;_0x26b14b[_0x183bc6('0x2087')](_0x183bc6('0x1d12'),function(_0x327656,_0x26d167){const _0x1ddf7a=_0x183bc6;_0x461ff2?_0xb82cf7(function(){_0x461ff2=![];}):(!_0x26d167&&(_0x1ea50c=_0xeef9e8[_0x1ddf7a('0x1f2a')][_0x1ddf7a('0x1c2')]),_0x327656!==_0x26d167&&(_0xeef9e8[_0x1ddf7a('0x1f2a')][_0x1ddf7a('0x1c2')]=0x1),!_0x327656&&(_0xeef9e8[_0x1ddf7a('0x1f2a')]['page']=_0x1ea50c),_0x458262());});}const _0xca2b0f=_0x29a6d2;_0x456075[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0xcbc'),_0x21d0f5('0x16b9'),_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0xb6b'),_0x21d0f5('0x142d'),_0x21d0f5('0x16fe'),_0x21d0f5('0xd73'),'api','Auth',_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1'),_0x21d0f5('0xb25')];function _0x456075(_0x4430ba,_0x1df133,_0x2d835c,_0x4b6a04,_0x309ee7,_0x1e6102,_0x22823a,_0x40d411,_0x4e5c44,_0x441187,_0x1d9a75,_0x4d1b39,_0x37e0c2,_0x2662a6){const _0x482eb4=_0x21d0f5,_0x43ee56=this;_0x43ee56[_0x482eb4('0x32a')]=_0x1d9a75[_0x482eb4('0x2428')](),_0x43ee56['errors']=[],_0x43ee56[_0x482eb4('0x23e1')]=_0x37e0c2,_0x43ee56['license']=_0x4d1b39,_0x43ee56[_0x482eb4('0xb25')]=_0x2662a6,_0x43ee56[_0x482eb4('0x2c9')]={},_0x43ee56[_0x482eb4('0x2834')]=_0x43ee56['setting']&&_0x43ee56[_0x482eb4('0x23e1')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x43ee56['title']=_0x482eb4('0x10f6'),_0x43ee56[_0x482eb4('0xd73')]=angular[_0x482eb4('0x6fb')](_0x4e5c44),_0x43ee56[_0x482eb4('0x16fe')]=_0x40d411,_0x43ee56[_0x482eb4('0x207a')]=![];!_0x43ee56[_0x482eb4('0xd73')]&&(_0x43ee56[_0x482eb4('0xd73')]={},_0x43ee56[_0x482eb4('0x134b')]=_0x482eb4('0x134e'),_0x43ee56[_0x482eb4('0x207a')]=!![]);_0x1df133[_0x482eb4('0x1ab3')]['id']&&(_0x43ee56['smsCannedAnswer']['SmsAccountId']=_0x1df133['params']['id']);_0x43ee56[_0x482eb4('0xf1f')]=_0x445f70,_0x43ee56[_0x482eb4('0x1ae4')]=_0x36c605,_0x43ee56[_0x482eb4('0x1d57')]=_0x5e3650,_0x43ee56[_0x482eb4('0x1bd1')]=_0xa13f9c,_0x43ee56[_0x482eb4('0xc4e')]=_0x34e419;function _0x445f70(){const _0x38e644=_0x482eb4;_0x43ee56['errors']=[],_0x441187[_0x38e644('0x81')][_0x38e644('0x259')](_0x43ee56[_0x38e644('0xd73')])[_0x38e644('0x1549')]['then'](function(_0x5b5fa7){const _0x157970=_0x38e644;_0x43ee56['smsCannedAnswers'][_0x157970('0x880')](_0x5b5fa7[_0x157970('0x2866')]()),_0x22823a['success']({'title':'SmsCannedAnswer\x20properly\x20created','msg':_0x43ee56[_0x157970('0xd73')][_0x157970('0x1909')]?_0x43ee56[_0x157970('0xd73')]['name']+_0x157970('0x7fb'):''}),_0x34e419(_0x5b5fa7);})[_0x38e644('0x151d')](function(_0xfc1061){const _0x57dc36=_0x38e644;if(_0xfc1061['data']&&_0xfc1061[_0x57dc36('0x4e8')]['errors']&&_0xfc1061[_0x57dc36('0x4e8')][_0x57dc36('0x120f')]['length']){_0x43ee56['errors']=_0xfc1061['data']['errors']||[{'message':_0xfc1061[_0x57dc36('0xaab')](),'type':_0x57dc36('0x23b5')}];for(let _0x401a21=0x0;_0x401a21<_0xfc1061[_0x57dc36('0x4e8')][_0x57dc36('0x120f')][_0x57dc36('0x1e22')];_0x401a21+=0x1){_0x22823a[_0x57dc36('0x255')]({'title':_0xfc1061['data'][_0x57dc36('0x120f')][_0x401a21][_0x57dc36('0x19fd')],'msg':_0xfc1061['data'][_0x57dc36('0x120f')][_0x401a21][_0x57dc36('0x1b86')]});}}else _0x22823a[_0x57dc36('0x255')]({'title':_0xfc1061[_0x57dc36('0xff9')]?_0x57dc36('0x574')+_0xfc1061[_0x57dc36('0xff9')]+_0x57dc36('0xb0b')+_0xfc1061[_0x57dc36('0x212f')]:'api.cannedAnswer.save','msg':_0xfc1061[_0x57dc36('0x4e8')]?JSON[_0x57dc36('0x3e')](_0xfc1061[_0x57dc36('0x4e8')][_0x57dc36('0x1b86')]):_0xfc1061[_0x57dc36('0xaab')]()});});}function _0x36c605(){const _0x2b46ba=_0x482eb4;_0x43ee56[_0x2b46ba('0x120f')]=[],_0x441187[_0x2b46ba('0x81')][_0x2b46ba('0x5ab')]({'id':_0x43ee56[_0x2b46ba('0xd73')]['id']},_0x43ee56['smsCannedAnswer'])[_0x2b46ba('0x1549')][_0x2b46ba('0x11bf')](function(_0x558d04){const _0xd39b26=_0x2b46ba,_0x1c2fbb=_0x36f548()[_0xd39b26('0x1ad4')](_0x43ee56['smsCannedAnswers'],{'id':_0x558d04['id']});_0x1c2fbb&&_0x36f548()[_0xd39b26('0x47b')](_0x1c2fbb,_0x36f548()[_0xd39b26('0x258')](_0x558d04[_0xd39b26('0x2866')](),_0x36f548()[_0xd39b26('0xe22')](_0x1c2fbb))),_0x22823a[_0xd39b26('0x2693')]({'title':'SmsCannedAnswer\x20properly\x20saved!','msg':_0x43ee56[_0xd39b26('0xd73')][_0xd39b26('0x1909')]?_0x43ee56[_0xd39b26('0xd73')]['name']+_0xd39b26('0x1a78'):''}),_0x34e419(_0x558d04);})[_0x2b46ba('0x151d')](function(_0x145aa8){const _0x106059=_0x2b46ba;if(_0x145aa8[_0x106059('0x4e8')]&&_0x145aa8[_0x106059('0x4e8')][_0x106059('0x120f')]&&_0x145aa8[_0x106059('0x4e8')][_0x106059('0x120f')][_0x106059('0x1e22')]){_0x43ee56[_0x106059('0x120f')]=_0x145aa8['data'][_0x106059('0x120f')]||[{'message':_0x145aa8[_0x106059('0xaab')](),'type':_0x106059('0x1698')}];for(let _0x291a7d=0x0;_0x291a7d<_0x145aa8[_0x106059('0x4e8')][_0x106059('0x120f')][_0x106059('0x1e22')];_0x291a7d++){_0x22823a[_0x106059('0x255')]({'title':_0x145aa8['data']['errors'][_0x291a7d]['type'],'msg':_0x145aa8[_0x106059('0x4e8')]['errors'][_0x291a7d]['message']});}}else _0x22823a[_0x106059('0x255')]({'title':_0x145aa8[_0x106059('0xff9')]?_0x106059('0x574')+_0x145aa8[_0x106059('0xff9')]+_0x106059('0xb0b')+_0x145aa8['statusText']:_0x106059('0x1698'),'msg':_0x145aa8[_0x106059('0x4e8')]?JSON[_0x106059('0x3e')](_0x145aa8[_0x106059('0x4e8')]['message']):_0x145aa8[_0x106059('0xaab')]()});});}function _0x5e3650(_0x32ea19){const _0x1c27aa=_0x482eb4;_0x43ee56[_0x1c27aa('0x120f')]=[];const _0x2936f6=_0x4b6a04[_0x1c27aa('0x132b')]()[_0x1c27aa('0x134b')](_0x1c27aa('0x1fa9'))['content'](_0x1c27aa('0xc82'))[_0x1c27aa('0xb2e')](_0x1c27aa('0x1beb'))['ok'](_0x1c27aa('0x1167'))['cancel'](_0x1c27aa('0x784'))[_0x1c27aa('0x1e25')](_0x32ea19);_0x4b6a04[_0x1c27aa('0xb9')](_0x2936f6)[_0x1c27aa('0x11bf')](function(){const _0x55ef51=_0x1c27aa;_0x441187[_0x55ef51('0x81')][_0x55ef51('0x2088')]({'id':_0x43ee56[_0x55ef51('0xd73')]['id']})['$promise'][_0x55ef51('0x11bf')](function(){const _0x3f2393=_0x55ef51;_0x36f548()[_0x3f2393('0x14a5')](_0x43ee56[_0x3f2393('0x16fe')],{'id':_0x43ee56[_0x3f2393('0xd73')]['id']}),_0x22823a['success']({'title':_0x3f2393('0x27ce'),'msg':(_0x43ee56[_0x3f2393('0xd73')][_0x3f2393('0x1909')]||_0x3f2393('0xd73'))+_0x3f2393('0x433')}),_0x34e419(_0x43ee56[_0x3f2393('0xd73')]);})[_0x55ef51('0x151d')](function(_0xc1d212){const _0x5578a5=_0x55ef51;if(_0xc1d212[_0x5578a5('0x4e8')]&&_0xc1d212[_0x5578a5('0x4e8')][_0x5578a5('0x120f')]&&_0xc1d212[_0x5578a5('0x4e8')]['errors'][_0x5578a5('0x1e22')]){_0x43ee56['errors']=_0xc1d212[_0x5578a5('0x4e8')][_0x5578a5('0x120f')]||[{'message':_0xc1d212[_0x5578a5('0xaab')](),'type':_0x5578a5('0x2279')}];for(let _0xcd57de=0x0;_0xcd57de<_0xc1d212[_0x5578a5('0x4e8')][_0x5578a5('0x120f')][_0x5578a5('0x1e22')];_0xcd57de++){_0x22823a[_0x5578a5('0x255')]({'title':_0xc1d212[_0x5578a5('0x4e8')]['errors'][_0xcd57de][_0x5578a5('0x19fd')],'msg':_0xc1d212[_0x5578a5('0x4e8')][_0x5578a5('0x120f')][_0xcd57de][_0x5578a5('0x1b86')]});}}else _0x22823a[_0x5578a5('0x255')]({'title':_0xc1d212[_0x5578a5('0xff9')]?'API:'+_0xc1d212[_0x5578a5('0xff9')]+_0x5578a5('0xb0b')+_0xc1d212[_0x5578a5('0x212f')]:_0x5578a5('0x2279'),'msg':_0xc1d212[_0x5578a5('0x4e8')]?JSON[_0x5578a5('0x3e')](_0xc1d212[_0x5578a5('0x4e8')][_0x5578a5('0x1b86')]):_0xc1d212[_0x5578a5('0x1b86')]||_0xc1d212[_0x5578a5('0xaab')]()});});},function(){});}function _0xa13f9c(_0x1f883f){return _0x1f883f===null?undefined:new Date(_0x1f883f);}function _0x34e419(_0x1436b4){const _0x302eaa=_0x482eb4;_0x4b6a04[_0x302eaa('0x237e')](_0x1436b4);}}const _0x5cd4a3=_0x456075;_0x575d22['$inject']=[_0x21d0f5('0x1b80'),_0x21d0f5('0x2143'),_0x21d0f5('0xcbc'),_0x21d0f5('0x18fe'),_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),'$timeout','$translate',_0x21d0f5('0x12a5'),_0x21d0f5('0x142d'),_0x21d0f5('0x1150')];function _0x575d22(_0x17a3e3,_0x46b2f8,_0x3b0045,_0x3803c6,_0x3992cb,_0x465a38,_0x496432,_0x31e830,_0x2b9d92,_0x385c18,_0x200392){const _0x11b110=_0x21d0f5,_0x3ad788=this;_0x3ad788[_0x11b110('0x32a')]=_0x200392['getCurrentUser'](),_0x3ad788[_0x11b110('0x1394')]={'count':0x0,'rows':[]},_0x3ad788[_0x11b110('0x21ae')]=[],_0x3ad788[_0x11b110('0xb25')],_0x3ad788[_0x11b110('0x1526')]={'first':_0x11b110('0x1558'),'second':'2nd','third':_0x11b110('0x10e6')},_0x3ad788[_0x11b110('0x1f2a')]={'fields':_0x11b110('0x12c1'),'sort':_0x11b110('0x1c74'),'limit':0xa,'page':0x1},_0x3ad788[_0x11b110('0x286f')]=_0x47bbca,_0x3ad788[_0x11b110('0x560')]=_0x4570b9,_0x3ad788[_0x11b110('0x2693')]=_0x47b736,_0x3ad788[_0x11b110('0x200')]=_0x1940ed,_0x3ad788[_0x11b110('0x238d')]=_0x37b5d3,_0x3ad788[_0x11b110('0x2776')]=_0x1625bf,_0x3ad788[_0x11b110('0x25e')]=_0x3ca108,_0x3ad788[_0x11b110('0xadf')]=_0x236909,_0x3ad788['deselectDispositions']=_0x127aac,_0x3ad788['selectAllDispositions']=_0x7027e1;function _0x47bbca(_0x1acba7,_0x4b8612){const _0x4e15c9=_0x11b110;_0x3ad788[_0x4e15c9('0x234b')]=_0x1acba7||{},_0x3ad788['crudPermissions']=typeof _0x4b8612!==_0x4e15c9('0x13e9')?_0x4b8612:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x3ad788[_0x4e15c9('0x1f2a')][_0x4e15c9('0x80b')]=_0x3ad788[_0x4e15c9('0x234b')]['id'],_0x3ad788[_0x4e15c9('0x1f2a')]['id']=_0x3ad788[_0x4e15c9('0x234b')]['id'],_0x1940ed();}function _0x37b5d3(_0x2c5bd1,_0x69f834){const _0x44a076=_0x11b110;_0x3992cb['show']({'controller':_0x44a076('0x21b7'),'controllerAs':'vm','templateUrl':_0xd803cc,'parent':angular[_0x44a076('0x1e73')](_0x465a38[_0x44a076('0x1d2')]),'targetEvent':_0x2c5bd1,'clickOutsideToClose':!![],'locals':{'disposition':_0x69f834,'dispositions':_0x3ad788[_0x44a076('0x1394')][_0x44a076('0x19b2')],'model':{'id':_0x3ad788[_0x44a076('0x234b')]['id'],'field':_0x44a076('0x80b')},'license':null,'setting':null,'crudPermissions':_0x3ad788[_0x44a076('0xb25')]}})[_0x44a076('0x11bf')](function(_0x4264df){if(_0x4264df)_0x1940ed();});}function _0x4570b9(_0x2c3c9e,_0x23abfa){const _0x32e231=_0x11b110,_0x13bcfe=_0x36f548()['some'](_0x3ad788[_0x32e231('0x1394')][_0x32e231('0x19b2')],[_0x32e231('0x2ac'),_0x2c3c9e['id']]),_0x1fa15c=_0x3992cb[_0x32e231('0x132b')]()[_0x32e231('0x134b')](_0x31e830[_0x32e231('0x10c2')]('TOOLS.NOTIFICATIONS.DISPOSITION_DELETE_TITLE'))[_0x32e231('0x252a')](_0x31e830[_0x32e231('0x10c2')](_0x32e231('0x869')+(_0x13bcfe?_0x32e231('0x4bd'):_0x32e231('0x16d7')),{'name':_0x2c3c9e[_0x32e231('0x1909')]}))['ariaLabel'](_0x32e231('0x1c19'))[_0x32e231('0x1e25')](_0x23abfa)['ok']('OK')[_0x32e231('0x26c9')](_0x31e830['instant']('APP.CANCEL'));_0x3992cb[_0x32e231('0xb9')](_0x1fa15c)['then'](function(){_0x1625bf(_0x2c3c9e);});}function _0x47b736(_0x486295){const _0x179218=_0x11b110;_0x3ad788[_0x179218('0x1394')]=_0x486295||{'count':0x0,'rows':[]};}function _0x1940ed(){const _0x27d745=_0x11b110;_0x3ad788[_0x27d745('0x1f2a')][_0x27d745('0x1393')]=(_0x3ad788[_0x27d745('0x1f2a')][_0x27d745('0x1c2')]-0x1)*_0x3ad788['query'][_0x27d745('0xd5c')],_0x3ad788[_0x27d745('0x13f')]=_0x2b9d92[_0x27d745('0x234b')][_0x27d745('0x200')](_0x3ad788['query'],_0x47b736)[_0x27d745('0x1549')];}function _0x1625bf(_0x126745){const _0x3e4b6c=_0x11b110;_0x2b9d92[_0x3e4b6c('0x107a')][_0x3e4b6c('0x2088')]({'id':_0x126745['id']})[_0x3e4b6c('0x1549')]['then'](function(){const _0x3b1b9e=_0x3e4b6c;_0x1940ed(),_0x385c18[_0x3b1b9e('0x2693')]({'title':_0x31e830[_0x3b1b9e('0x10c2')](_0x3b1b9e('0x1548'))});})[_0x3e4b6c('0x151d')](function(_0x3e2c0b){const _0x30293b=_0x3e4b6c;if(_0x3e2c0b[_0x30293b('0x4e8')]&&_0x3e2c0b[_0x30293b('0x4e8')][_0x30293b('0x120f')]&&_0x3e2c0b[_0x30293b('0x4e8')][_0x30293b('0x120f')][_0x30293b('0x1e22')]){_0x3ad788[_0x30293b('0x120f')]=_0x3e2c0b[_0x30293b('0x4e8')]['errors']||[{'message':_0x3e2c0b[_0x30293b('0xaab')](),'type':_0x30293b('0x1551')}];for(let _0x39e3db=0x0;_0x39e3db<_0x3e2c0b[_0x30293b('0x4e8')][_0x30293b('0x120f')][_0x30293b('0x1e22')];_0x39e3db++){_0x385c18[_0x30293b('0x255')]({'title':_0x3e2c0b['data'][_0x30293b('0x120f')][_0x39e3db][_0x30293b('0x19fd')],'msg':_0x3e2c0b['data'][_0x30293b('0x120f')][_0x39e3db]['message']});}}else _0x385c18[_0x30293b('0x255')]({'title':_0x3e2c0b[_0x30293b('0xff9')]?_0x30293b('0x574')+_0x3e2c0b['status']+_0x30293b('0xb0b')+_0x3e2c0b['statusText']:_0x30293b('0x1551'),'msg':_0x3e2c0b[_0x30293b('0x4e8')]?JSON['stringify'](_0x3e2c0b[_0x30293b('0x4e8')][_0x30293b('0x1b86')]):_0x3e2c0b['message']||_0x3e2c0b[_0x30293b('0xaab')]()});});}function _0x3ca108(){const _0x5512a2=_0x11b110,_0x258138=angular[_0x5512a2('0x6fb')](_0x3ad788['selectedDispositions']);return _0x3ad788[_0x5512a2('0x21ae')]=[],_0x258138;}function _0x236909(_0x1a9947){const _0x359c87=_0x11b110,_0x3a1f44=_0x3992cb[_0x359c87('0x132b')]()[_0x359c87('0x134b')](_0x31e830['instant'](_0x359c87('0x1cd5')))['content'](_0x31e830[_0x359c87('0x10c2')](_0x359c87('0x20f4'),{'total':_0x3ad788['selectedDispositions']['length']}))['ariaLabel'](_0x359c87('0x1ef9'))[_0x359c87('0x1e25')](_0x1a9947)['ok']('OK')[_0x359c87('0x26c9')](_0x31e830['instant'](_0x359c87('0xa5d')));_0x3992cb[_0x359c87('0xb9')](_0x3a1f44)[_0x359c87('0x11bf')](function(){const _0x50c494=_0x359c87;_0x3ad788[_0x50c494('0x21ae')][_0x50c494('0x1f88')](function(_0x4aa21d){_0x1625bf(_0x4aa21d);}),_0x3ad788[_0x50c494('0x21ae')]=[];});}function _0x127aac(){_0x3ad788['selectedDispositions']=[];}function _0x7027e1(){const _0x3c64f4=_0x11b110;_0x3ad788[_0x3c64f4('0x21ae')]=_0x3ad788[_0x3c64f4('0x1394')][_0x3c64f4('0x19b2')];}let _0x38b7ec=!![],_0x39c6bb=0x1;_0x17a3e3['$watch'](_0x11b110('0x1d12'),function(_0x49b985,_0x14ce92){const _0xc2f705=_0x11b110;_0x38b7ec?_0x496432(function(){_0x38b7ec=![];}):(!_0x14ce92&&(_0x39c6bb=_0x3ad788[_0xc2f705('0x1f2a')][_0xc2f705('0x1c2')]),_0x49b985!==_0x14ce92&&(_0x3ad788[_0xc2f705('0x1f2a')][_0xc2f705('0x1c2')]=0x1),!_0x49b985&&(_0x3ad788[_0xc2f705('0x1f2a')][_0xc2f705('0x1c2')]=_0x39c6bb),_0x1940ed());});}const _0x393ae7=_0x575d22,_0x11fe53=_0x351988['p']+_0x21d0f5('0x1459');_0x5bbac6['$inject']=['$state',_0x21d0f5('0x16b9'),'$mdDialog','$document',_0x21d0f5('0xb6b'),_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1'),'api','toasty',_0x21d0f5('0x1150'),_0x21d0f5('0x234b'),_0x21d0f5('0x1d63')];function _0x5bbac6(_0x4fc1e3,_0x56d7cd,_0x17ad1a,_0x1e7358,_0x360b21,_0x3e7f0c,_0x5d5c61,_0x26cf2f,_0x144861,_0x5d5bcb,_0x55ecf9,_0x214712){const _0x590873=_0x21d0f5,_0x2aa380=this;_0x2aa380['currentUser']=_0x5d5bcb[_0x590873('0x2428')](),_0x2aa380['license']=_0x3e7f0c,_0x2aa380['setting']=_0x5d5c61,_0x2aa380[_0x590873('0x2834')]=_0x2aa380['setting'][_0x590873('0x1d4')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2aa380['location']=_0x56d7cd[_0x590873('0x1797')]()+_0x590873('0x16a1')+_0x56d7cd[_0x590873('0x14ec')](),_0x2aa380['smsAccount']=_0x55ecf9||_0x4fc1e3[_0x590873('0x1ab3')]['smsAccount']||{},_0x2aa380[_0x590873('0x1d63')]=_0x214712&&_0x214712[_0x590873('0x27d2')]==0x1?_0x214712[_0x590873('0x19b2')][0x0]:null,_0x2aa380[_0x590873('0xb25')]=_0x5d5bcb[_0x590873('0x1530')](_0x2aa380[_0x590873('0x1d63')]?_0x2aa380[_0x590873('0x1d63')][_0x590873('0xb25')]:null),_0x2aa380[_0x590873('0x2c9')]={},_0x2aa380['selectedTab']=_0x4fc1e3['params'][_0x590873('0x205c')]||0x0,_0x2aa380[_0x590873('0x2363')]=_0x4d546a,_0x2aa380[_0x590873('0xb30')]=_0x144861[_0x590873('0x870')],_0x2aa380[_0x590873('0x1d6')]=_0x2b7ec3,_0x2aa380[_0x590873('0x282a')]=_0x327881,_0x5d5bcb[_0x590873('0x4ee')](_0x590873('0xf45'))?_0x26cf2f['cmList']['get']({'fields':_0x590873('0x721'),'sort':_0x590873('0x1909')})[_0x590873('0x1549')][_0x590873('0x11bf')](function(_0x16e4b6){const _0x189e1a=_0x590873;_0x2aa380[_0x189e1a('0x2410')]=_0x16e4b6[_0x189e1a('0x19b2')]||[];})['catch'](function(_0x3be260){const _0x4743ff=_0x590873;_0x144861[_0x4743ff('0x255')]({'title':_0x3be260[_0x4743ff('0xff9')]?'API:'+_0x3be260[_0x4743ff('0xff9')]+_0x4743ff('0xb0b')+_0x3be260[_0x4743ff('0x212f')]:_0x4743ff('0x27ed'),'msg':_0x3be260[_0x4743ff('0x4e8')]?JSON[_0x4743ff('0x3e')](_0x3be260[_0x4743ff('0x4e8')]):_0x3be260['toString']()});}):_0x26cf2f[_0x590873('0xbef')][_0x590873('0xbaa')]({'fields':_0x590873('0x721'),'sort':'name'})[_0x590873('0x1549')][_0x590873('0x11bf')](function(_0x41faf8){const _0x2a70a3=_0x590873;_0x2aa380[_0x2a70a3('0x2410')]=_0x41faf8[_0x2a70a3('0x19b2')]||[];})[_0x590873('0x11bf')](function(){const _0x9396f5=_0x590873;return _0x26cf2f[_0x9396f5('0x1d63')][_0x9396f5('0xbaa')]({'userProfileId':_0x2aa380[_0x9396f5('0x32a')][_0x9396f5('0x781')],'sectionId':0x12d})[_0x9396f5('0x1549')];})['then'](function(_0x1109ea){const _0x343817=_0x590873,_0xe630ee=_0x1109ea&&_0x1109ea[_0x343817('0x19b2')]?_0x1109ea[_0x343817('0x19b2')][0x0]:null;if(!_0xe630ee){const _0x4e182d=[];let _0x3861bc=null;_0x2aa380[_0x343817('0x234b')]&&(_0x3861bc=_0x36f548()[_0x343817('0x1ad4')](_0x2aa380[_0x343817('0x2410')],{'id':Number(_0x2aa380[_0x343817('0x234b')]['ListId'])}));for(let _0x345ea6=0x0;_0x345ea6<_0x2aa380[_0x343817('0x2410')][_0x343817('0x1e22')];_0x345ea6++){_0x3861bc&&_0x2aa380[_0x343817('0x2410')][_0x345ea6]['id']===_0x3861bc['id']&&(_0x2aa380[_0x343817('0x2410')][_0x345ea6]['canSelect']=![],_0x4e182d[_0x343817('0x105d')](_0x2aa380['lists'][_0x345ea6]));}_0x2aa380['lists']=_0x4e182d;}else{if(!_0xe630ee[_0x343817('0xf11')])return _0x26cf2f[_0x343817('0x26d1')][_0x343817('0xbaa')]({'sectionId':_0xe630ee['id']})[_0x343817('0x1549')][_0x343817('0x11bf')](function(_0x3d73d5){const _0x3a846b=_0x343817,_0x5142b7=_0x36f548()[_0x3a846b('0x2171')](_0x3d73d5[_0x3a846b('0x19b2')],function(_0x3b2f6e){const _0x345644=_0x3a846b;return _0x36f548()['find'](_0x2aa380['lists'],{'id':_0x3b2f6e[_0x345644('0x15a5')]});});let _0x285b88=null;_0x2aa380[_0x3a846b('0x234b')]&&(_0x285b88=_0x36f548()[_0x3a846b('0x1ad4')](_0x2aa380[_0x3a846b('0x2410')],{'id':Number(_0x2aa380[_0x3a846b('0x234b')][_0x3a846b('0x1e91')])}));if(_0x285b88&&!_0x36f548()[_0x3a846b('0x1cb3')](_0x5142b7,['id',_0x285b88['id']])){const _0x9b8714=_0x36f548()[_0x3a846b('0x1ad4')](_0x2aa380[_0x3a846b('0x2410')],{'id':_0x285b88['id']});_0x9b8714[_0x3a846b('0x254a')]=![],_0x5142b7['push'](_0x9b8714);}_0x2aa380['lists']=_0x5142b7;});}})[_0x590873('0x151d')](function(_0x7cca00){const _0x13678c=_0x590873;_0x144861[_0x13678c('0x255')]({'title':_0x7cca00[_0x13678c('0xff9')]?_0x13678c('0x574')+_0x7cca00[_0x13678c('0xff9')]+'\x20-\x20'+_0x7cca00['statusText']:_0x13678c('0xb71'),'msg':_0x7cca00['data']?JSON[_0x13678c('0x3e')](_0x7cca00[_0x13678c('0x4e8')]):_0x7cca00['toString']()});}),_0x5d5bcb['hasRole']('admin')?_0x26cf2f[_0x590873('0x92a')]['get']({'fields':_0x590873('0xaae'),'sort':_0x590873('0x1909'),'nolimit':_0x590873('0x204c')})[_0x590873('0x1549')][_0x590873('0x11bf')](function(_0x51f179){const _0x2fca92=_0x590873;_0x2aa380['pauses']=_0x51f179[_0x2fca92('0x19b2')]||[];})[_0x590873('0x151d')](function(_0x44e0cf){const _0x534d79=_0x590873;_0x144861[_0x534d79('0x255')]({'title':_0x44e0cf[_0x534d79('0xff9')]?'API:'+_0x44e0cf['status']+_0x534d79('0xb0b')+_0x44e0cf[_0x534d79('0x212f')]:_0x534d79('0x1306'),'msg':_0x44e0cf[_0x534d79('0x4e8')]?JSON[_0x534d79('0x3e')](_0x44e0cf[_0x534d79('0x4e8')]):_0x44e0cf[_0x534d79('0xaab')]()});}):_0x26cf2f['pause'][_0x590873('0xbaa')]({'fields':_0x590873('0xaae'),'sort':_0x590873('0x1909'),'nolimit':'true'})[_0x590873('0x1549')][_0x590873('0x11bf')](function(_0x40f347){_0x2aa380['pauses']=_0x40f347['rows']||[];})['then'](function(){const _0xbbe58d=_0x590873;return _0x26cf2f['userProfileSection'][_0xbbe58d('0xbaa')]({'userProfileId':_0x2aa380[_0xbbe58d('0x32a')][_0xbbe58d('0x781')],'sectionId':0x3ed})[_0xbbe58d('0x1549')];})[_0x590873('0x11bf')](function(_0x1f3be9){const _0x30f79a=_0x590873,_0x5d8f70=_0x1f3be9&&_0x1f3be9['rows']?_0x1f3be9[_0x30f79a('0x19b2')][0x0]:null;if(!_0x5d8f70)_0x2aa380['pauses']=[];else{if(!_0x5d8f70['autoAssociation'])return _0x26cf2f['userProfileResource']['get']({'sectionId':_0x5d8f70['id']})[_0x30f79a('0x1549')][_0x30f79a('0x11bf')](function(_0x2ee182){const _0x102d9b=_0x30f79a,_0x194f02=_0x36f548()['map'](_0x2ee182['rows'],function(_0x147787){const _0x4f894e=a0_0xaf0c;return _0x36f548()[_0x4f894e('0x1ad4')](_0x2aa380[_0x4f894e('0x12f2')],{'id':_0x147787[_0x4f894e('0x15a5')]});});_0x2aa380[_0x102d9b('0x12f2')][_0x102d9b('0x1f88')](function(_0x154a78){const _0x1e4bc=_0x102d9b;!_0x36f548()[_0x1e4bc('0x1cb3')](_0x194f02,['id',_0x154a78['id']])&&(_0x154a78[_0x1e4bc('0x254a')]=![]),_0x194f02[_0x1e4bc('0x105d')](_0x154a78);}),_0x2aa380[_0x102d9b('0x12f2')]=_0x194f02;});}})['catch'](function(_0x3fa6ad){const _0x5c4daa=_0x590873;_0x144861['error']({'title':_0x3fa6ad[_0x5c4daa('0xff9')]?'API:'+_0x3fa6ad[_0x5c4daa('0xff9')]+_0x5c4daa('0xb0b')+_0x3fa6ad[_0x5c4daa('0x212f')]:_0x5c4daa('0x1c82'),'msg':_0x3fa6ad['data']?JSON[_0x5c4daa('0x3e')](_0x3fa6ad[_0x5c4daa('0x4e8')]):_0x3fa6ad['toString']()});});function _0x4d546a(_0x35f22d,_0x8c033d){const _0x52eb48=_0x590873;_0x17ad1a['show']({'controller':'SmsAccountagentaddController','controllerAs':'vm','templateUrl':_0x11fe53,'parent':angular['element'](_0x1e7358['body']),'targetEvent':_0x8c033d,'clickOutsideToClose':!![],'locals':{'smsAccount':_0x35f22d,'smsAccounts':_0x2aa380['smsAccounts']?_0x2aa380[_0x52eb48('0x27d9')][_0x52eb48('0x19b2')]:[],'crudPermissions':_0x2aa380[_0x52eb48('0xb25')],'realtime':![]}});}function _0x2b7ec3(){const _0xec56f=_0x590873;_0x4fc1e3['go'](_0xec56f('0xc74'),{},{'reload':_0xec56f('0xc74')});}function _0x327881(){const _0x4bd786=_0x590873;_0x26cf2f[_0x4bd786('0x234b')][_0x4bd786('0x5ab')]({'id':_0x2aa380['smsAccount']['id']},_0x2aa380['smsAccount'])[_0x4bd786('0x1549')][_0x4bd786('0x11bf')](function(){const _0x8ce3ea=_0x4bd786;_0x144861[_0x8ce3ea('0x2693')]({'title':_0x8ce3ea('0x1d1e'),'msg':_0x2aa380[_0x8ce3ea('0x234b')][_0x8ce3ea('0x1909')]?_0x2aa380[_0x8ce3ea('0x234b')][_0x8ce3ea('0x1909')]+_0x8ce3ea('0xd7'):''});})[_0x4bd786('0x151d')](function(_0x3b5579){const _0x31eff7=_0x4bd786;_0x144861[_0x31eff7('0x255')]({'title':_0x3b5579[_0x31eff7('0xff9')]?_0x31eff7('0x574')+_0x3b5579[_0x31eff7('0xff9')]+'\x20-\x20'+_0x3b5579[_0x31eff7('0x212f')]:_0x31eff7('0x54c'),'msg':_0x3b5579['data']?JSON['stringify'](_0x3b5579[_0x31eff7('0x4e8')]):_0x3b5579['toString']()});});}}const _0xf98556=_0x5bbac6,_0xbc15bf=_0x351988['p']+'src/js/modules/main/apps/sms/views/smsAccounts/create/dialog.html/dialog.html';_0x45b9dc[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0x2143'),_0x21d0f5('0xcbc'),_0x21d0f5('0x18fe'),_0x21d0f5('0x1ca2'),'$document',_0x21d0f5('0x17f5'),_0x21d0f5('0xb6b'),_0x21d0f5('0x27d9'),'userProfile',_0x21d0f5('0x1d63'),'api',_0x21d0f5('0xda9'),_0x21d0f5('0x142d'),_0x21d0f5('0x1150'),_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1')];function _0x45b9dc(_0x36ab93,_0x43d3f4,_0x794f9a,_0x137c11,_0x411e2a,_0x10b532,_0x398ce5,_0x568d86,_0x5e8918,_0x5c96a2,_0x392401,_0x4a8809,_0x48929c,_0x42f2e2,_0x1ad414,_0xad4b1d,_0x27302f){const _0x4684ad=_0x21d0f5,_0x425485=this;_0x425485[_0x4684ad('0x17ff')]=_0xad4b1d,_0x425485[_0x4684ad('0x23e1')]=_0x27302f,_0x425485[_0x4684ad('0x32a')]=_0x1ad414[_0x4684ad('0x2428')](),_0x425485[_0x4684ad('0x27d9')]=_0x5e8918||{'count':0x0,'rows':[]},_0x425485['userProfile']=_0x5c96a2,_0x425485[_0x4684ad('0x1d63')]=_0x392401&&_0x392401[_0x4684ad('0x27d2')]==0x1?_0x392401[_0x4684ad('0x19b2')][0x0]:null,_0x425485[_0x4684ad('0xb25')]=_0x1ad414[_0x4684ad('0x1530')](_0x425485[_0x4684ad('0x1d63')]?_0x425485['userProfileSection'][_0x4684ad('0xb25')]:null),_0x425485[_0x4684ad('0x13e8')]='smsAccounts',_0x425485[_0x4684ad('0x724')]='',_0x425485[_0x4684ad('0xe3c')]=null,_0x425485[_0x4684ad('0x1db1')]=[],_0x425485[_0x4684ad('0x1f2a')]={'fields':'createdAt,updatedAt,id,name,key,token,remote,ListId,type,phone,accountSid,authId,authToken,smsMethod,username,password,baseUrl,apiKey,senderString,deliveryReport,waitForTheAssignedAgent,mandatoryDisposition,mandatoryDispositionPauseId,description,receiveUrl,deliveryReportUrl,notificationSound,notificationShake,notificationTemplate,queueTransfer,queueTransferTimeout,agentTransfer,agentTransferTimeout','sort':_0x4684ad('0x1c74'),'limit':0xa,'page':0x1},_0x425485['arraytype']=_0x36f548()[_0x4684ad('0x2130')]([{'option':_0x4684ad('0x16ad'),'value':_0x4684ad('0x108d')},{'option':'Skebby','value':'\x27skebby\x27'},{'option':'Connectel','value':_0x4684ad('0x4bc')},{'option':_0x4684ad('0x21a9'),'value':_0x4684ad('0x2ad')},{'option':_0x4684ad('0x1e5d'),'value':'\x27plivo\x27'},{'option':_0x4684ad('0x1580'),'value':_0x4684ad('0x7d4')},{'option':_0x4684ad('0x27e8'),'value':'\x27clickatell\x27'},{'option':_0x4684ad('0xb5b'),'value':_0x4684ad('0x184f')},{'option':_0x4684ad('0x1bb8'),'value':_0x4684ad('0x2529')}],function(_0x5653e5){const _0x5d171a=_0x4684ad;return _0x36f548()[_0x5d171a('0x814')](_0x5653e5[_0x5d171a('0x10cc')],new RegExp('\x27','g'),'');}),_0x425485[_0x4684ad('0x12d7')]=_0x36f548()[_0x4684ad('0x2130')]([{'option':_0x4684ad('0x2251'),'value':_0x4684ad('0x1fff')},{'option':_0x4684ad('0xe8f'),'value':_0x4684ad('0xad0')},{'option':_0x4684ad('0x16c0'),'value':'\x27GP\x27'}],function(_0x4aa697){const _0x277559=_0x4684ad;return _0x36f548()[_0x277559('0x814')](_0x4aa697[_0x277559('0x10cc')],new RegExp('\x27','g'),'');}),_0x425485[_0x4684ad('0x757')]=_0x38a81c,_0x425485['interactionsgoto']=_0x415181,_0x425485[_0x4684ad('0x2363')]=_0x5b9b26,_0x425485[_0x4684ad('0x549')]=_0x3dd303,_0x425485['success']=_0x3d9a19,_0x425485['getSmsAccounts']=_0x1d5b2c,_0x425485[_0x4684ad('0xa24')]=_0x202124,_0x425485[_0x4684ad('0xe54')]=_0x107604,_0x425485['exportSelectedSmsAccounts']=_0x58b787,_0x425485[_0x4684ad('0x25f6')]=_0x11e4fd,_0x425485[_0x4684ad('0x18d6')]=_0x12ab1a,_0x425485[_0x4684ad('0x2578')]=_0x264e44,_0x1ad414[_0x4684ad('0x4ee')]('admin')?_0x4a8809['cmList'][_0x4684ad('0xbaa')]({'fields':'id,name','sort':_0x4684ad('0x1909')})[_0x4684ad('0x1549')][_0x4684ad('0x11bf')](function(_0x22ea6b){const _0x112eb3=_0x4684ad;_0x425485[_0x112eb3('0x2410')]=_0x22ea6b[_0x112eb3('0x19b2')]||[];})[_0x4684ad('0x151d')](function(_0x50235a){const _0x4e6b72=_0x4684ad;_0x42f2e2[_0x4e6b72('0x255')]({'title':_0x50235a[_0x4e6b72('0xff9')]?_0x4e6b72('0x574')+_0x50235a[_0x4e6b72('0xff9')]+_0x4e6b72('0xb0b')+_0x50235a[_0x4e6b72('0x212f')]:'SYSTEM:GET_LISTS','msg':_0x50235a[_0x4e6b72('0x4e8')]?JSON[_0x4e6b72('0x3e')](_0x50235a[_0x4e6b72('0x4e8')]):_0x50235a[_0x4e6b72('0xaab')]()});}):_0x4a8809[_0x4684ad('0xbef')]['get']({'fields':_0x4684ad('0x721'),'sort':_0x4684ad('0x1909')})[_0x4684ad('0x1549')][_0x4684ad('0x11bf')](function(_0xea38dc){const _0x51fe73=_0x4684ad;_0x425485[_0x51fe73('0x2410')]=_0xea38dc[_0x51fe73('0x19b2')]||[];})[_0x4684ad('0x11bf')](function(){const _0x48bfea=_0x4684ad;return _0x4a8809[_0x48bfea('0x1d63')][_0x48bfea('0xbaa')]({'userProfileId':_0x425485['currentUser']['userProfileId'],'sectionId':0x12d})[_0x48bfea('0x1549')];})[_0x4684ad('0x11bf')](function(_0xd1bc83){const _0x2fc00a=_0x4684ad,_0x33a27a=_0xd1bc83&&_0xd1bc83['rows']?_0xd1bc83[_0x2fc00a('0x19b2')][0x0]:null;if(!_0x33a27a){const _0xab26b7=[];let _0x270977=null;_0x425485[_0x2fc00a('0x234b')]&&(_0x270977=_0x36f548()[_0x2fc00a('0x1ad4')](_0x425485['lists'],{'id':Number(_0x425485['smsAccount'][_0x2fc00a('0x1e91')])}));for(let _0x1a60ef=0x0;_0x1a60ef<_0x425485[_0x2fc00a('0x2410')][_0x2fc00a('0x1e22')];_0x1a60ef++){_0x270977&&_0x425485[_0x2fc00a('0x2410')][_0x1a60ef]['id']===_0x270977['id']&&(_0x425485[_0x2fc00a('0x2410')][_0x1a60ef][_0x2fc00a('0x254a')]=![],_0xab26b7[_0x2fc00a('0x105d')](_0x425485[_0x2fc00a('0x2410')][_0x1a60ef]));}_0x425485['lists']=_0xab26b7;}else{if(!_0x33a27a[_0x2fc00a('0xf11')])return _0x4a8809[_0x2fc00a('0x26d1')][_0x2fc00a('0xbaa')]({'sectionId':_0x33a27a['id']})[_0x2fc00a('0x1549')]['then'](function(_0x2a0efd){const _0x49cda8=_0x2fc00a,_0x109d34=_0x36f548()[_0x49cda8('0x2171')](_0x2a0efd[_0x49cda8('0x19b2')],function(_0x2ba15f){const _0x2e5632=_0x49cda8;return _0x36f548()[_0x2e5632('0x1ad4')](_0x425485[_0x2e5632('0x2410')],{'id':_0x2ba15f[_0x2e5632('0x15a5')]});});let _0x40fe9c=null;_0x425485[_0x49cda8('0x234b')]&&(_0x40fe9c=_0x36f548()[_0x49cda8('0x1ad4')](_0x425485[_0x49cda8('0x2410')],{'id':Number(_0x425485[_0x49cda8('0x234b')]['ListId'])}));if(_0x40fe9c&&!_0x36f548()['some'](_0x109d34,['id',_0x40fe9c['id']])){const _0x2ae3ae=_0x36f548()['find'](_0x425485[_0x49cda8('0x2410')],{'id':_0x40fe9c['id']});_0x2ae3ae['canSelect']=![],_0x109d34[_0x49cda8('0x105d')](_0x2ae3ae);}_0x425485[_0x49cda8('0x2410')]=_0x109d34;});}})[_0x4684ad('0x151d')](function(_0x7c2e24){const _0x5ac0a4=_0x4684ad;_0x42f2e2[_0x5ac0a4('0x255')]({'title':_0x7c2e24[_0x5ac0a4('0xff9')]?_0x5ac0a4('0x574')+_0x7c2e24[_0x5ac0a4('0xff9')]+'\x20-\x20'+_0x7c2e24[_0x5ac0a4('0x212f')]:_0x5ac0a4('0xb71'),'msg':_0x7c2e24[_0x5ac0a4('0x4e8')]?JSON[_0x5ac0a4('0x3e')](_0x7c2e24[_0x5ac0a4('0x4e8')]):_0x7c2e24['toString']()});});function _0x38a81c(_0x65dde2){const _0x23814d=_0x4684ad;_0x794f9a['go'](_0x23814d('0x9cf'),{'id':_0x65dde2['id'],'smsAccount':_0x65dde2,'crudPermissions':_0x425485[_0x23814d('0xb25')]});}function _0x415181(_0x5ab8fe){const _0x1308f3=_0x4684ad;_0x794f9a['go'](_0x1308f3('0x9cf'),{'id':_0x5ab8fe['id'],'tab':0x5});}function _0x5b9b26(_0x200c21,_0x3311a){const _0x50a78a=_0x4684ad;_0x411e2a[_0x50a78a('0xb9')]({'controller':_0x50a78a('0x2789'),'controllerAs':'vm','templateUrl':_0x11fe53,'parent':angular[_0x50a78a('0x1e73')](_0x10b532[_0x50a78a('0x1d2')]),'targetEvent':_0x3311a,'clickOutsideToClose':!![],'locals':{'smsAccount':_0x200c21,'smsAccounts':_0x425485['smsAccounts']?_0x425485[_0x50a78a('0x27d9')]['rows']:[],'crudPermissions':_0x425485[_0x50a78a('0xb25')],'realtime':![]}});}function _0x3dd303(_0x250760,_0xc36610){const _0x43a15a=_0x4684ad,_0x5454a7=_0x411e2a[_0x43a15a('0x132b')]()[_0x43a15a('0x134b')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x36f548()['startCase']('smsAccount')+'?')['htmlContent'](_0x43a15a('0x2061')+(_0x250760[_0x43a15a('0x1909')]||_0x43a15a('0x234b'))+_0x43a15a('0x1c78')+_0x43a15a('0x1a'))[_0x43a15a('0xb2e')](_0x43a15a('0x11c4'))['targetEvent'](_0xc36610)['ok']('OK')['cancel']('CANCEL');_0x411e2a[_0x43a15a('0xb9')](_0x5454a7)[_0x43a15a('0x11bf')](function(){_0x107604(_0x250760);},function(){const _0x336d40=_0x43a15a;console[_0x336d40('0xc78')](_0x336d40('0x772'));});}let _0x397fb8=!![],_0x54e8ef=0x1;_0x36ab93[_0x4684ad('0x2087')](_0x4684ad('0x842'),function(_0xd33239,_0xf88077){const _0x543c28=_0x4684ad;_0x397fb8?_0x398ce5(function(){_0x397fb8=![];}):(!_0xf88077&&(_0x54e8ef=_0x425485['query'][_0x543c28('0x1c2')]),_0xd33239!==_0xf88077&&(_0x425485['query'][_0x543c28('0x1c2')]=0x1),!_0xd33239&&(_0x425485['query']['page']=_0x54e8ef),_0x425485[_0x543c28('0xa3f')]());});function _0x3d9a19(_0x1ef383){const _0x3a0e98=_0x4684ad;_0x425485[_0x3a0e98('0x27d9')]=_0x1ef383||{'count':0x0,'rows':[]};}function _0x1d5b2c(){const _0x1a1cc3=_0x4684ad;_0x425485[_0x1a1cc3('0x1f2a')][_0x1a1cc3('0x1393')]=(_0x425485['query']['page']-0x1)*_0x425485[_0x1a1cc3('0x1f2a')][_0x1a1cc3('0xd5c')],_0x1ad414[_0x1a1cc3('0x4ee')](_0x1a1cc3('0xf45'))?_0x425485['promise']=_0x4a8809['smsAccount'][_0x1a1cc3('0xbaa')](_0x425485[_0x1a1cc3('0x1f2a')],_0x3d9a19)['$promise']:(_0x425485[_0x1a1cc3('0x1f2a')]['id']=_0x425485[_0x1a1cc3('0x25bc')]['id'],_0x425485[_0x1a1cc3('0x1f2a')][_0x1a1cc3('0xe6')]=_0x1a1cc3('0x42f'),_0x425485[_0x1a1cc3('0x13f')]=_0x4a8809[_0x1a1cc3('0x25bc')]['getResources'](_0x425485['query'],_0x3d9a19)[_0x1a1cc3('0x1549')]);}function _0x202124(_0x4babf9,_0x2f8e62){const _0x2ffaef=_0x4684ad;_0x411e2a[_0x2ffaef('0xb9')]({'controller':_0x2ffaef('0x1501'),'controllerAs':'vm','templateUrl':_0xbc15bf,'parent':angular[_0x2ffaef('0x1e73')](_0x10b532['body']),'targetEvent':_0x4babf9,'clickOutsideToClose':!![],'locals':{'smsAccount':_0x2f8e62,'smsAccounts':_0x425485[_0x2ffaef('0x27d9')]['rows'],'license':_0x425485['license'],'setting':_0x425485[_0x2ffaef('0x23e1')],'crudPermissions':_0x425485[_0x2ffaef('0xb25')]}});}function _0x107604(_0x1b4ae0){const _0x3f698d=_0x4684ad;_0x4a8809['smsAccount'][_0x3f698d('0x2088')]({'id':_0x1b4ae0['id']})['$promise']['then'](function(){const _0x3c0240=_0x3f698d;_0x36f548()[_0x3c0240('0x14a5')](_0x425485[_0x3c0240('0x27d9')][_0x3c0240('0x19b2')],{'id':_0x1b4ae0['id']}),_0x425485['smsAccounts'][_0x3c0240('0x27d2')]-=0x1,!_0x425485[_0x3c0240('0x27d9')][_0x3c0240('0x19b2')][_0x3c0240('0x1e22')]&&_0x425485['getSmsAccounts'](),_0x42f2e2[_0x3c0240('0x2693')]({'title':_0x36f548()[_0x3c0240('0x13cf')](_0x3c0240('0x1b35'))+_0x3c0240('0x2113'),'msg':_0x1b4ae0['name']?_0x1b4ae0[_0x3c0240('0x1909')]+_0x3c0240('0x433'):''});})[_0x3f698d('0x151d')](function(_0x2f82b2){const _0x2e1447=_0x3f698d;if(_0x2f82b2[_0x2e1447('0x4e8')]&&_0x2f82b2[_0x2e1447('0x4e8')]['errors']&&_0x2f82b2['data'][_0x2e1447('0x120f')][_0x2e1447('0x1e22')]){_0x425485[_0x2e1447('0x120f')]=_0x2f82b2[_0x2e1447('0x4e8')][_0x2e1447('0x120f')]||[{'message':_0x2f82b2[_0x2e1447('0xaab')](),'type':_0x2e1447('0x1bd6')}];for(let _0x529c66=0x0;_0x529c66<_0x2f82b2['data'][_0x2e1447('0x120f')][_0x2e1447('0x1e22')];_0x529c66++){_0x42f2e2[_0x2e1447('0x255')]({'title':_0x2f82b2[_0x2e1447('0x4e8')][_0x2e1447('0x120f')][_0x529c66][_0x2e1447('0x19fd')],'msg':_0x2f82b2['data']['errors'][_0x529c66][_0x2e1447('0x1b86')]});}}else _0x42f2e2[_0x2e1447('0x255')]({'title':_0x2f82b2['status']?'API:'+_0x2f82b2['status']+_0x2e1447('0xb0b')+_0x2f82b2[_0x2e1447('0x212f')]:_0x2e1447('0x1bd6'),'msg':_0x2f82b2[_0x2e1447('0x4e8')]?JSON[_0x2e1447('0x3e')](_0x2f82b2[_0x2e1447('0x4e8')]['message']):_0x2f82b2[_0x2e1447('0x1b86')]||_0x2f82b2['toString']()});});}function _0x58b787(){const _0x405d02=_0x4684ad,_0x12adf2=angular[_0x405d02('0x6fb')](_0x425485['selectedSmsAccounts']);return _0x425485[_0x405d02('0x1db1')]=[],_0x12adf2;}function _0x11e4fd(_0x1dec28){const _0x2959ef=_0x4684ad,_0x5b52c8=_0x411e2a['confirm']()['title'](_0x2959ef('0x1f37'))[_0x2959ef('0x1d03')](_0x2959ef('0x2061')+_0x425485['selectedSmsAccounts']['length']+'\x20selected'+_0x2959ef('0x1a'))[_0x2959ef('0xb2e')](_0x2959ef('0x19fe'))['targetEvent'](_0x1dec28)['ok']('OK')['cancel'](_0x2959ef('0x772'));_0x411e2a[_0x2959ef('0xb9')](_0x5b52c8)[_0x2959ef('0x11bf')](function(){const _0x5c3292=_0x2959ef;_0x425485['selectedSmsAccounts']['forEach'](function(_0x6e09bb){_0x107604(_0x6e09bb);}),_0x425485[_0x5c3292('0x1db1')]=[];});}function _0x12ab1a(){const _0x413eb6=_0x4684ad;_0x425485[_0x413eb6('0x1db1')]=[];}function _0x264e44(){const _0x5afb1a=_0x4684ad;_0x425485[_0x5afb1a('0x1db1')]=_0x425485[_0x5afb1a('0x27d9')][_0x5afb1a('0x19b2')];}}const _0x4a9209=_0x45b9dc;_0x5378eb[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0xcbc'),'$location',_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0xb6b'),_0x21d0f5('0x142d'),_0x21d0f5('0x1646'),_0x21d0f5('0x1257'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),'license',_0x21d0f5('0x23e1'),'crudPermissions'];function _0x5378eb(_0x280e95,_0x52543a,_0x1521a3,_0x19e0c3,_0x27f0d3,_0x2292d4,_0x50ff21,_0x48aede,_0xfe863d,_0x33f0ba,_0x1ff0ae,_0x30715b,_0x2c81c4,_0x252b40){const _0x30ef9f=_0x21d0f5,_0xd56b6c=this;_0xd56b6c[_0x30ef9f('0x32a')]=_0x1ff0ae[_0x30ef9f('0x2428')](),_0xd56b6c['errors']=[],_0xd56b6c[_0x30ef9f('0x23e1')]=_0x2c81c4,_0xd56b6c[_0x30ef9f('0x17ff')]=_0x30715b,_0xd56b6c[_0x30ef9f('0xb25')]=_0x252b40,_0xd56b6c[_0x30ef9f('0x2c9')]={},_0xd56b6c[_0x30ef9f('0x2834')]=_0xd56b6c['setting']&&_0xd56b6c[_0x30ef9f('0x23e1')][_0x30ef9f('0x1d4')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0xd56b6c[_0x30ef9f('0x134b')]=_0x30ef9f('0xc2c'),_0xd56b6c[_0x30ef9f('0x1257')]=angular[_0x30ef9f('0x6fb')](_0xfe863d),_0xd56b6c[_0x30ef9f('0x1646')]=_0x48aede,_0xd56b6c[_0x30ef9f('0x17d1')]=![];!_0xd56b6c[_0x30ef9f('0x1257')]&&(_0xd56b6c['smsQueue']={'strategy':_0x30ef9f('0x1b76'),'timeout':0xa},_0xd56b6c[_0x30ef9f('0x134b')]=_0x30ef9f('0xca0'),_0xd56b6c[_0x30ef9f('0x17d1')]=!![]);_0xd56b6c['addNewSmsQueue']=_0x24e712,_0xd56b6c[_0x30ef9f('0x6bf')]=_0x3576cb,_0xd56b6c[_0x30ef9f('0x1640')]=_0x2a2dd8,_0xd56b6c[_0x30ef9f('0x1bd1')]=_0x38255f,_0xd56b6c[_0x30ef9f('0xc4e')]=_0x56dd72;function _0x24e712(){const _0x1d4671=_0x30ef9f;_0xd56b6c[_0x1d4671('0x120f')]=[],_0x33f0ba[_0x1d4671('0x1257')]['save'](_0xd56b6c[_0x1d4671('0x1257')])[_0x1d4671('0x1549')][_0x1d4671('0x11bf')](function(_0x9873c6){const _0x377619=_0x1d4671;_0xd56b6c[_0x377619('0x1646')][_0x377619('0x880')](_0x9873c6[_0x377619('0x2866')]()),_0x50ff21[_0x377619('0x2693')]({'title':_0x377619('0xe93'),'msg':_0xd56b6c[_0x377619('0x1257')]['name']?_0xd56b6c[_0x377619('0x1257')][_0x377619('0x1909')]+'\x20has\x20been\x20created!':''}),_0x56dd72(_0x9873c6);})[_0x1d4671('0x151d')](function(_0x413a4a){const _0x537a33=_0x1d4671;if(_0x413a4a[_0x537a33('0x4e8')]&&_0x413a4a['data'][_0x537a33('0x120f')]&&_0x413a4a[_0x537a33('0x4e8')]['errors'][_0x537a33('0x1e22')]){_0xd56b6c[_0x537a33('0x120f')]=_0x413a4a['data'][_0x537a33('0x120f')]||[{'message':_0x413a4a['toString'](),'type':_0x537a33('0x21fc')}];for(let _0xd61df1=0x0;_0xd61df1<_0x413a4a[_0x537a33('0x4e8')][_0x537a33('0x120f')]['length'];_0xd61df1+=0x1){_0x50ff21['error']({'title':_0x413a4a[_0x537a33('0x4e8')][_0x537a33('0x120f')][_0xd61df1][_0x537a33('0x19fd')],'msg':_0x413a4a[_0x537a33('0x4e8')][_0x537a33('0x120f')][_0xd61df1][_0x537a33('0x1b86')]});}}else _0x50ff21[_0x537a33('0x255')]({'title':_0x413a4a['status']?'API:'+_0x413a4a[_0x537a33('0xff9')]+_0x537a33('0xb0b')+_0x413a4a[_0x537a33('0x212f')]:_0x537a33('0x21fc'),'msg':_0x413a4a[_0x537a33('0x4e8')]?JSON[_0x537a33('0x3e')](_0x413a4a['data']['message']):_0x413a4a[_0x537a33('0xaab')]()});});}function _0x3576cb(){const _0x2d7bd4=_0x30ef9f;_0xd56b6c[_0x2d7bd4('0x120f')]=[],_0x33f0ba[_0x2d7bd4('0x1257')]['update']({'id':_0xd56b6c['smsQueue']['id']},_0xd56b6c[_0x2d7bd4('0x1257')])[_0x2d7bd4('0x1549')][_0x2d7bd4('0x11bf')](function(_0x4499e5){const _0x1c0e05=_0x2d7bd4,_0x1b1131=_0x36f548()['find'](_0xd56b6c['smsQueues'],{'id':_0x4499e5['id']});_0x1b1131&&_0x36f548()[_0x1c0e05('0x47b')](_0x1b1131,_0x36f548()['pick'](_0x4499e5['toJSON'](),_0x36f548()[_0x1c0e05('0xe22')](_0x1b1131))),_0x50ff21['success']({'title':_0x1c0e05('0x137e'),'msg':_0xd56b6c[_0x1c0e05('0x1257')][_0x1c0e05('0x1909')]?_0xd56b6c[_0x1c0e05('0x1257')][_0x1c0e05('0x1909')]+'\x20has\x20been\x20saved!':''}),_0x56dd72(_0x4499e5);})[_0x2d7bd4('0x151d')](function(_0x2d1d21){const _0x5c87d7=_0x2d7bd4;if(_0x2d1d21[_0x5c87d7('0x4e8')]&&_0x2d1d21[_0x5c87d7('0x4e8')][_0x5c87d7('0x120f')]&&_0x2d1d21[_0x5c87d7('0x4e8')][_0x5c87d7('0x120f')][_0x5c87d7('0x1e22')]){_0xd56b6c[_0x5c87d7('0x120f')]=_0x2d1d21['data'][_0x5c87d7('0x120f')]||[{'message':_0x2d1d21[_0x5c87d7('0xaab')](),'type':_0x5c87d7('0x1f87')}];for(let _0x536a98=0x0;_0x536a98<_0x2d1d21[_0x5c87d7('0x4e8')][_0x5c87d7('0x120f')]['length'];_0x536a98++){_0x50ff21[_0x5c87d7('0x255')]({'title':_0x2d1d21[_0x5c87d7('0x4e8')][_0x5c87d7('0x120f')][_0x536a98][_0x5c87d7('0x19fd')],'msg':_0x2d1d21[_0x5c87d7('0x4e8')][_0x5c87d7('0x120f')][_0x536a98][_0x5c87d7('0x1b86')]});}}else _0x50ff21[_0x5c87d7('0x255')]({'title':_0x2d1d21[_0x5c87d7('0xff9')]?_0x5c87d7('0x574')+_0x2d1d21[_0x5c87d7('0xff9')]+_0x5c87d7('0xb0b')+_0x2d1d21[_0x5c87d7('0x212f')]:'api.smsQueue.update','msg':_0x2d1d21[_0x5c87d7('0x4e8')]?JSON[_0x5c87d7('0x3e')](_0x2d1d21[_0x5c87d7('0x4e8')][_0x5c87d7('0x1b86')]):_0x2d1d21[_0x5c87d7('0xaab')]()});});}function _0x2a2dd8(_0x322500){const _0x5bd485=_0x30ef9f;_0xd56b6c[_0x5bd485('0x120f')]=[];const _0x2d456b=_0x19e0c3[_0x5bd485('0x132b')]()['title'](_0x5bd485('0x1fa9'))[_0x5bd485('0x252a')](_0x5bd485('0x18d7'))['ariaLabel'](_0x5bd485('0x1b0e'))['ok']('Delete')[_0x5bd485('0x26c9')](_0x5bd485('0x784'))[_0x5bd485('0x1e25')](_0x322500);_0x19e0c3[_0x5bd485('0xb9')](_0x2d456b)['then'](function(){const _0xe03705=_0x5bd485;_0x33f0ba[_0xe03705('0x1257')]['delete']({'id':_0xd56b6c['smsQueue']['id']})[_0xe03705('0x1549')]['then'](function(){const _0xd505dc=_0xe03705;_0x36f548()[_0xd505dc('0x14a5')](_0xd56b6c[_0xd505dc('0x1646')],{'id':_0xd56b6c[_0xd505dc('0x1257')]['id']}),_0x50ff21[_0xd505dc('0x2693')]({'title':_0xd505dc('0x211c'),'msg':(_0xd56b6c[_0xd505dc('0x1257')]['name']||_0xd505dc('0x1257'))+_0xd505dc('0x433')}),_0x56dd72(_0xd56b6c[_0xd505dc('0x1257')]);})['catch'](function(_0x2035f6){const _0x26a6fa=_0xe03705;if(_0x2035f6[_0x26a6fa('0x4e8')]&&_0x2035f6[_0x26a6fa('0x4e8')][_0x26a6fa('0x120f')]&&_0x2035f6['data'][_0x26a6fa('0x120f')][_0x26a6fa('0x1e22')]){_0xd56b6c[_0x26a6fa('0x120f')]=_0x2035f6['data'][_0x26a6fa('0x120f')]||[{'message':_0x2035f6[_0x26a6fa('0xaab')](),'type':_0x26a6fa('0x1a62')}];for(let _0x49bdcf=0x0;_0x49bdcf<_0x2035f6[_0x26a6fa('0x4e8')][_0x26a6fa('0x120f')][_0x26a6fa('0x1e22')];_0x49bdcf++){_0x50ff21[_0x26a6fa('0x255')]({'title':_0x2035f6['data'][_0x26a6fa('0x120f')][_0x49bdcf][_0x26a6fa('0x19fd')],'msg':_0x2035f6['data'][_0x26a6fa('0x120f')][_0x49bdcf][_0x26a6fa('0x1b86')]});}}else _0x50ff21['error']({'title':_0x2035f6['status']?_0x26a6fa('0x574')+_0x2035f6[_0x26a6fa('0xff9')]+'\x20-\x20'+_0x2035f6['statusText']:_0x26a6fa('0x1a62'),'msg':_0x2035f6[_0x26a6fa('0x4e8')]?JSON[_0x26a6fa('0x3e')](_0x2035f6[_0x26a6fa('0x4e8')][_0x26a6fa('0x1b86')]):_0x2035f6[_0x26a6fa('0x1b86')]||_0x2035f6['toString']()});});},function(){});}function _0x38255f(_0x24a534){return _0x24a534===null?undefined:new Date(_0x24a534);}function _0x56dd72(_0x5143a5){const _0x3a5c07=_0x30ef9f;_0x19e0c3[_0x3a5c07('0x237e')](_0x5143a5);}}const _0x1d313f=_0x5378eb;_0x4a8e97['$inject']=[_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0x142d'),'api','smsQueue','smsQueues',_0x21d0f5('0x25f9'),_0x21d0f5('0xb6b'),'Auth',_0x21d0f5('0xb25')];function _0x4a8e97(_0x4c225d,_0x379ab0,_0x2cf7b4,_0x45da2e,_0x1a808c,_0x4a9190,_0x5562a9,_0x3ba327,_0x2085bd,_0x322100){const _0x6f9350=_0x21d0f5,_0x5108cb=this;_0x5108cb['currentUser']=_0x2085bd['getCurrentUser'](),_0x5108cb['smsQueue']=_0x1a808c,_0x5108cb[_0x6f9350('0xb25')]=_0x322100,_0x5108cb['realtime']=_0x5562a9,_0x5108cb['items']=[],_0x5108cb['allowedItems']=[],_0x5108cb[_0x6f9350('0x26cc')]=[],_0x5108cb['startingAllowedItems']=[],_0x5108cb[_0x6f9350('0x21ed')]=[],_0x5108cb[_0x6f9350('0x1eda')]=![],_0x5108cb['onInit']=_0x554df1,_0x5108cb[_0x6f9350('0x280')]=_0x563fe1,_0x5108cb[_0x6f9350('0xc4e')]=_0x1ff391,_0x5108cb[_0x6f9350('0xec5')]={'readOnly':!_0x5108cb['crudPermissions']['canEdit'],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x6f9350('0x1909'),'line1':'fullname','line2':[_0x6f9350('0x1909'),_0x6f9350('0x1a04')],'line3':'','labelAll':_0x3ba327[_0x6f9350('0x10c2')]('APP.ALL_AGENTS'),'labelSelected':_0x3ba327[_0x6f9350('0x10c2')](_0x6f9350('0x24b4')),'transferCallback':function(){const _0xcdaeb9=_0x6f9350,_0x364539=_0x36f548()[_0xcdaeb9('0x1a1b')](_0x5108cb['startingSelectedItems'],_0x5108cb['selectedItems'],'id');_0x5108cb[_0xcdaeb9('0x1eda')]=_0x36f548()[_0xcdaeb9('0x1fc5')](_0x364539)?![]:!![];}};function _0x554df1(){const _0x5278c7=_0x6f9350;return _0x2085bd['hasRole']('admin')?_0x2b6365()[_0x5278c7('0x151d')](function(_0x1b9ffb){const _0x206053=_0x5278c7;_0x2cf7b4[_0x206053('0x255')]({'title':_0x1b9ffb['status']?'API:'+_0x1b9ffb[_0x206053('0xff9')]+'\x20-\x20'+_0x1b9ffb[_0x206053('0x212f')]:_0x206053('0x912'),'msg':_0x1b9ffb[_0x206053('0xff9')]?JSON[_0x206053('0x3e')](_0x1b9ffb[_0x206053('0x4e8')]):_0x1b9ffb['toString']()});}):_0x2fd054()['then'](function(_0x35e9bc){return _0x5108cb['section']=_0x35e9bc,_0x2b6365();})[_0x5278c7('0x151d')](function(_0x4aa9aa){const _0x3cec1a=_0x5278c7;_0x2cf7b4['error']({'title':_0x4aa9aa[_0x3cec1a('0xff9')]?_0x3cec1a('0x574')+_0x4aa9aa[_0x3cec1a('0xff9')]+_0x3cec1a('0xb0b')+_0x4aa9aa[_0x3cec1a('0x212f')]:_0x3cec1a('0x912'),'msg':_0x4aa9aa[_0x3cec1a('0xff9')]?JSON['stringify'](_0x4aa9aa[_0x3cec1a('0x4e8')]):_0x4aa9aa['toString']()});});}function _0x2fd054(){return _0x379ab0(function(_0x11205e,_0x292a84){const _0x87701b=a0_0xaf0c;_0x45da2e[_0x87701b('0x1d63')][_0x87701b('0xbaa')]({'userProfileId':_0x5108cb['currentUser'][_0x87701b('0x781')],'name':_0x87701b('0x4b1')})[_0x87701b('0x1549')][_0x87701b('0x11bf')](function(_0x33eb5c){const _0x10e3af=_0x87701b,_0x5971ad=_0x33eb5c&&_0x33eb5c[_0x10e3af('0x19b2')]?_0x33eb5c['rows'][0x0]:null;_0x11205e(_0x5971ad);})['catch'](function(_0x5ea199){_0x292a84(_0x5ea199);});});}function _0x2b6365(){return _0x379ab0(function(_0x3afcc9,_0x1140a6){const _0xeb0e48=a0_0xaf0c;return _0x1f9bc1()[_0xeb0e48('0x11bf')](function(_0x43b2da){const _0x26acf6=_0xeb0e48;return _0x5108cb[_0x26acf6('0x22')]=_0x43b2da[_0x26acf6('0x19b2')]?_0x43b2da[_0x26acf6('0x19b2')]:[],_0x2085bd['hasRole']('admin')?_0x43b2da:_0x5108cb[_0x26acf6('0xe6')]?_0x5108cb[_0x26acf6('0xe6')]['autoAssociation']?_0x43b2da:_0x5caefc():null;})[_0xeb0e48('0x11bf')](function(_0x3299a4){const _0x45b447=_0xeb0e48,_0x34712c=_0x3299a4&&_0x3299a4[_0x45b447('0x19b2')]?_0x3299a4[_0x45b447('0x19b2')]:[];return _0x5108cb[_0x45b447('0x63')]=_0x36f548()[_0x45b447('0x2171')](_0x34712c,function(_0x710ffa){const _0x5efc3f=_0x45b447;return _0x36f548()[_0x5efc3f('0x1ad4')](_0x5108cb[_0x5efc3f('0x22')],{'id':_0x2085bd['hasRole'](_0x5efc3f('0xf45'))||_0x5108cb[_0x5efc3f('0xe6')][_0x5efc3f('0xf11')]?_0x710ffa['id']:_0x710ffa['resourceId']});}),_0x5108cb['startingAllowedItems']=angular[_0x45b447('0x6fb')](_0x5108cb['allowedItems']),_0x5108cb['items'][_0x45b447('0x1f88')](function(_0x3cf9d5){const _0x49ad97=_0x45b447,_0x57c294=_0x36f548()[_0x49ad97('0x1ad4')](_0x5108cb[_0x49ad97('0x63')],{'id':_0x3cf9d5['id']});_0x2085bd[_0x49ad97('0x4ee')](_0x49ad97('0xf45'))?_0x3cf9d5['isValid']=!![]:_0x3cf9d5[_0x49ad97('0xde9')]=typeof _0x57c294!==_0x49ad97('0x13e9')?!![]:![];}),_0x358528();})[_0xeb0e48('0x11bf')](function(_0x274689){const _0xa3c05c=_0xeb0e48,_0xce8bf3=_0x274689&&_0x274689['rows']?_0x274689[_0xa3c05c('0x19b2')]:[];_0x5108cb['selectedItems']=_0x36f548()[_0xa3c05c('0x2171')](_0xce8bf3,function(_0x4a3326){const _0x26216f=_0xa3c05c,_0x513417=_0x36f548()[_0x26216f('0x1ad4')](_0x5108cb[_0x26216f('0x22')],{'id':_0x4a3326['id']});return _0x513417[_0x26216f('0xf47')]=_0x4a3326[_0x26216f('0x1235')]?_0x26216f('0x1caa')+_0x4a3326['UserSmsQueue'][_0x26216f('0xf47')]:'',_0x513417['internal']=typeof _0x4a3326[_0x26216f('0x1a04')]!==_0x26216f('0x13e9')?'<'+_0x4a3326['internal']+'>':'',_0x513417;}),_0x5108cb[_0xa3c05c('0x21ed')]=angular[_0xa3c05c('0x6fb')](_0x5108cb[_0xa3c05c('0x26cc')]),_0x5108cb[_0xa3c05c('0xec5')]['selectedItems']=_0x5108cb[_0xa3c05c('0x26cc')],_0x5108cb['dualMultiselectOptions'][_0xa3c05c('0x22')]=_0x36f548()[_0xa3c05c('0x2753')](_0x5108cb[_0xa3c05c('0x63')],_0x5108cb[_0xa3c05c('0xec5')][_0xa3c05c('0x26cc')],'id'),_0x3afcc9();})[_0xeb0e48('0x151d')](function(_0x318a88){_0x1140a6(_0x318a88);});});}function _0x5caefc(){return _0x379ab0(function(_0x35eaf7,_0x247fa7){const _0x22283b=a0_0xaf0c;return _0x45da2e[_0x22283b('0x26d1')][_0x22283b('0xbaa')]({'sectionId':_0x5108cb[_0x22283b('0xe6')]['id'],'nolimit':!![]})['$promise'][_0x22283b('0x11bf')](function(_0x3ad999){_0x35eaf7(_0x3ad999);})[_0x22283b('0x151d')](function(_0x2a65ce){_0x247fa7(_0x2a65ce);});});}function _0x358528(){return _0x379ab0(function(_0x3c400e,_0x27197b){const _0x7a4723=a0_0xaf0c;return _0x45da2e[_0x7a4723('0x1257')][_0x7a4723('0x2783')]({'id':_0x5108cb[_0x7a4723('0x1257')]['id'],'fields':_0x7a4723('0x13d3'),'nolimit':!![],'role':'agent'})[_0x7a4723('0x1549')][_0x7a4723('0x11bf')](function(_0x225b9b){_0x3c400e(_0x225b9b);})[_0x7a4723('0x151d')](function(_0x1c32fc){_0x27197b(_0x1c32fc);});});}function _0x1f9bc1(){return _0x379ab0(function(_0x418765,_0x43251b){const _0x1ae776=a0_0xaf0c;return _0x45da2e[_0x1ae776('0x21d9')]['get']({'fields':'id,name,internal,fullname','nolimit':!![],'role':'agent'})['$promise'][_0x1ae776('0x11bf')](function(_0x22ece4){_0x418765(_0x22ece4);})[_0x1ae776('0x151d')](function(_0xead120){_0x43251b(_0xead120);});});}function _0xf3060(_0x29dd24){return _0x379ab0(function(_0x1cca43,_0x487a4d){const _0x3e634d=a0_0xaf0c;_0x36f548()[_0x3e634d('0x1fc5')](_0x29dd24)?_0x1cca43():_0x45da2e[_0x3e634d('0x1257')][_0x3e634d('0x110a')]({'id':_0x5108cb[_0x3e634d('0x1257')]['id'],'ids':_0x36f548()[_0x3e634d('0x2171')](_0x29dd24,'id')})[_0x3e634d('0x1549')][_0x3e634d('0x11bf')](function(){_0x1cca43();})[_0x3e634d('0x151d')](function(_0x1c01b3){_0x487a4d(_0x1c01b3);});});}function _0x2027bf(_0x1ca79d){return _0x379ab0(function(_0x3a6f6c,_0x55f878){const _0x462f13=a0_0xaf0c;_0x36f548()[_0x462f13('0x1fc5')](_0x1ca79d)?_0x3a6f6c():_0x45da2e[_0x462f13('0x1257')][_0x462f13('0x1ec0')]({'id':_0x5108cb['smsQueue']['id'],'ids':_0x36f548()[_0x462f13('0x2171')](_0x1ca79d,'id')})[_0x462f13('0x1549')][_0x462f13('0x11bf')](function(){_0x3a6f6c();})['catch'](function(_0x101904){_0x55f878(_0x101904);});});}function _0x563fe1(){const _0x5ddb36=_0x6f9350,_0xc91df6=_0x36f548()[_0x5ddb36('0x2753')](_0x5108cb[_0x5ddb36('0x21ed')],_0x5108cb[_0x5ddb36('0x26cc')],'id'),_0x1253d5=_0x36f548()[_0x5ddb36('0x2753')](_0x5108cb[_0x5ddb36('0x26cc')],_0x5108cb[_0x5ddb36('0x21ed')],'id');return _0x2027bf(_0xc91df6)[_0x5ddb36('0x11bf')](function(){return _0xf3060(_0x1253d5);})[_0x5ddb36('0x11bf')](function(){const _0x1d4e24=_0x5ddb36;_0x5108cb[_0x1d4e24('0x1eda')]=![],_0x5108cb[_0x1d4e24('0x1c6f')]=angular['copy'](_0x5108cb[_0x1d4e24('0x63')]),_0x5108cb[_0x1d4e24('0x21ed')]=angular[_0x1d4e24('0x6fb')](_0x5108cb[_0x1d4e24('0x26cc')]),_0x2cf7b4['success']({'title':_0x1d4e24('0x2243'),'msg':_0x1d4e24('0x2273')});})['catch'](function(_0x5675b1){const _0x4e4662=_0x5ddb36;_0x2cf7b4[_0x4e4662('0x255')]({'title':_0x5675b1[_0x4e4662('0xff9')]?_0x4e4662('0x574')+_0x5675b1['status']+_0x4e4662('0xb0b')+_0x5675b1[_0x4e4662('0x212f')]:'SYSTEM:LISTS_ASSOCIATION','msg':_0x5675b1['status']?JSON[_0x4e4662('0x3e')](_0x5675b1[_0x4e4662('0x4e8')]):_0x5675b1[_0x4e4662('0xaab')]()});});}function _0x1ff391(){const _0x277044=_0x6f9350;_0x4c225d[_0x277044('0x237e')]();}}const _0x320ebe=_0x4a8e97;_0x4afb94[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0x142d'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1257'),'$translate',_0x21d0f5('0x1150'),_0x21d0f5('0xb25')];function _0x4afb94(_0x21a766,_0x196478,_0x2ed0ef,_0x1a0eea,_0x3a574f,_0x14c670,_0x28c88a,_0x21e3e1){const _0x5d62ca=_0x21d0f5,_0x159413=this;_0x159413[_0x5d62ca('0x32a')]=_0x28c88a[_0x5d62ca('0x2428')](),_0x159413[_0x5d62ca('0x1257')]=_0x3a574f,_0x159413[_0x5d62ca('0xb25')]=_0x21e3e1,_0x159413[_0x5d62ca('0x22')]=[],_0x159413[_0x5d62ca('0x63')]=[],_0x159413[_0x5d62ca('0x26cc')]=[],_0x159413[_0x5d62ca('0x1c6f')]=[],_0x159413[_0x5d62ca('0x21ed')]=[],_0x159413[_0x5d62ca('0x1eda')]=![],_0x159413['dualMultiselectOptions']={'readOnly':!_0x159413[_0x5d62ca('0xb25')][_0x5d62ca('0x25db')],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x5d62ca('0x1909'),'line1':_0x5d62ca('0x1909'),'line2':'','line3':'','labelAll':_0x14c670[_0x5d62ca('0x10c2')](_0x5d62ca('0x1f5')),'labelSelected':_0x14c670['instant'](_0x5d62ca('0x16b7')),'transferCallback':function(){const _0x1df0d1=_0x5d62ca,_0x130e3c=_0x36f548()[_0x1df0d1('0x1a1b')](_0x159413['startingSelectedItems'],_0x159413[_0x1df0d1('0x26cc')],'id');_0x159413[_0x1df0d1('0x1eda')]=_0x36f548()['isEmpty'](_0x130e3c)?![]:!![];}},_0x159413['onInit']=_0x1f6aee,_0x159413[_0x5d62ca('0x1581')]=_0x5fc523,_0x159413[_0x5d62ca('0xc4e')]=_0xd54583;function _0x1f6aee(){const _0x13faa9=_0x5d62ca;return _0x28c88a[_0x13faa9('0x4ee')]('admin')?_0x46690c()[_0x13faa9('0x151d')](function(_0x863da){const _0x2810a0=_0x13faa9;_0x2ed0ef[_0x2810a0('0x255')]({'title':_0x863da[_0x2810a0('0xff9')]?_0x2810a0('0x574')+_0x863da[_0x2810a0('0xff9')]+'\x20-\x20'+_0x863da[_0x2810a0('0x212f')]:'SYSTEM:GET_TEAMS','msg':_0x863da[_0x2810a0('0xff9')]?JSON['stringify'](_0x863da[_0x2810a0('0x4e8')]):_0x863da[_0x2810a0('0xaab')]()});}):_0x2dbbd4()['then'](function(_0x59e3e7){const _0x419fe2=_0x13faa9;return _0x159413[_0x419fe2('0xe6')]=_0x59e3e7,_0x46690c();})['catch'](function(_0x49522e){const _0x2c1f9f=_0x13faa9;_0x2ed0ef['error']({'title':_0x49522e['status']?'API:'+_0x49522e[_0x2c1f9f('0xff9')]+'\x20-\x20'+_0x49522e[_0x2c1f9f('0x212f')]:_0x2c1f9f('0x2059'),'msg':_0x49522e[_0x2c1f9f('0xff9')]?JSON[_0x2c1f9f('0x3e')](_0x49522e[_0x2c1f9f('0x4e8')]):_0x49522e[_0x2c1f9f('0xaab')]()});});}function _0x2dbbd4(){return _0x196478(function(_0x24be16,_0x2c73a9){const _0x483850=a0_0xaf0c;_0x1a0eea[_0x483850('0x1d63')][_0x483850('0xbaa')]({'userProfileId':_0x159413[_0x483850('0x32a')][_0x483850('0x781')],'name':_0x483850('0xc3f')})['$promise'][_0x483850('0x11bf')](function(_0x3d40a3){const _0x4034bd=_0x483850,_0x4b77ac=_0x3d40a3&&_0x3d40a3[_0x4034bd('0x19b2')]?_0x3d40a3[_0x4034bd('0x19b2')][0x0]:null;_0x24be16(_0x4b77ac);})[_0x483850('0x151d')](function(_0xef8bae){_0x2c73a9(_0xef8bae);});});}function _0x46690c(){return _0x196478(function(_0x4438ef,_0x49f054){const _0x4c9cdc=a0_0xaf0c;return _0x123c7e()['then'](function(_0x151c97){const _0x4cd030=a0_0xaf0c;return _0x159413[_0x4cd030('0x22')]=_0x151c97[_0x4cd030('0x19b2')]?_0x151c97[_0x4cd030('0x19b2')]:[],_0x28c88a[_0x4cd030('0x4ee')]('admin')?_0x151c97:_0x159413[_0x4cd030('0xe6')]?_0x159413[_0x4cd030('0xe6')][_0x4cd030('0xf11')]?_0x151c97:_0x306fef():null;})[_0x4c9cdc('0x11bf')](function(_0x4bd6e5){const _0x556bdf=_0x4c9cdc,_0x1aded8=_0x4bd6e5&&_0x4bd6e5['rows']?_0x4bd6e5[_0x556bdf('0x19b2')]:[];return _0x159413['allowedItems']=_0x36f548()[_0x556bdf('0x2171')](_0x1aded8,function(_0xb8bc89){const _0x37cc99=_0x556bdf;return _0x36f548()[_0x37cc99('0x1ad4')](_0x159413['items'],{'id':_0x28c88a[_0x37cc99('0x4ee')](_0x37cc99('0xf45'))||_0x159413[_0x37cc99('0xe6')]['autoAssociation']?_0xb8bc89['id']:_0xb8bc89[_0x37cc99('0x15a5')]});}),_0x159413['items'][_0x556bdf('0x1f88')](function(_0x2d7dba){const _0x5be1bf=_0x556bdf,_0x1748fd=_0x36f548()[_0x5be1bf('0x1ad4')](_0x159413[_0x5be1bf('0x63')],{'id':_0x2d7dba['id']});_0x28c88a['hasRole']('admin')?_0x2d7dba['isValid']=!![]:_0x2d7dba['isValid']=typeof _0x1748fd!==_0x5be1bf('0x13e9')?!![]:![];}),_0x25e6f8();})[_0x4c9cdc('0x11bf')](function(_0x3c20c7){const _0xf29fba=_0x4c9cdc,_0x301f6c=_0x3c20c7&&_0x3c20c7['rows']?_0x3c20c7['rows']:[];_0x159413[_0xf29fba('0x26cc')]=_0x36f548()[_0xf29fba('0x2171')](_0x301f6c,function(_0x29227d){const _0x5c6891=_0xf29fba;return _0x36f548()[_0x5c6891('0x1ad4')](_0x159413[_0x5c6891('0x22')],{'id':_0x29227d['id']});}),_0x159413[_0xf29fba('0x21ed')]=angular[_0xf29fba('0x6fb')](_0x159413[_0xf29fba('0x26cc')]),_0x159413[_0xf29fba('0xec5')][_0xf29fba('0x26cc')]=_0x159413[_0xf29fba('0x26cc')],_0x159413[_0xf29fba('0xec5')][_0xf29fba('0x22')]=_0x36f548()[_0xf29fba('0x2753')](_0x159413[_0xf29fba('0x63')],_0x159413[_0xf29fba('0xec5')][_0xf29fba('0x26cc')],'id'),_0x4438ef();})[_0x4c9cdc('0x151d')](function(_0x2605f0){_0x49f054(_0x2605f0);});});}function _0x306fef(){return _0x196478(function(_0x5dbcf8,_0x4abf29){const _0x52e7ac=a0_0xaf0c;return _0x1a0eea[_0x52e7ac('0x26d1')][_0x52e7ac('0xbaa')]({'sectionId':_0x159413[_0x52e7ac('0xe6')]['id'],'nolimit':!![]})['$promise']['then'](function(_0x2ba989){_0x5dbcf8(_0x2ba989);})['catch'](function(_0x5a76c2){_0x4abf29(_0x5a76c2);});});}function _0x25e6f8(){return _0x196478(function(_0x57290b,_0x52591d){const _0x14f912=a0_0xaf0c;return _0x1a0eea[_0x14f912('0x1257')][_0x14f912('0x306')]({'id':_0x159413[_0x14f912('0x1257')]['id'],'fields':_0x14f912('0x721'),'nolimit':!![]})[_0x14f912('0x1549')][_0x14f912('0x11bf')](function(_0x4e36f8){_0x57290b(_0x4e36f8);})['catch'](function(_0x3bd441){_0x52591d(_0x3bd441);});});}function _0x123c7e(){return _0x196478(function(_0x2ee8e9,_0x4276f6){const _0x1f9a4c=a0_0xaf0c;return _0x1a0eea[_0x1f9a4c('0xae6')]['get']({'fields':'id,name','nolimit':!![]})[_0x1f9a4c('0x1549')]['then'](function(_0x245baa){_0x2ee8e9(_0x245baa);})[_0x1f9a4c('0x151d')](function(_0x5f4d63){_0x4276f6(_0x5f4d63);});});}function _0x313fc5(_0x11f9b6){return _0x196478(function(_0x6ba10a,_0x52d848){const _0x469baf=a0_0xaf0c;_0x36f548()['isEmpty'](_0x11f9b6)?_0x6ba10a():_0x1a0eea[_0x469baf('0x1257')]['addTeams']({'id':_0x159413[_0x469baf('0x1257')]['id'],'ids':_0x36f548()['map'](_0x11f9b6,'id')})[_0x469baf('0x1549')][_0x469baf('0x11bf')](function(){_0x6ba10a();})[_0x469baf('0x151d')](function(_0xf30664){_0x52d848(_0xf30664);});});}function _0x4c1320(_0x4f5f2a){return _0x196478(function(_0x2605fe,_0x5bff7d){const _0x2f65e3=a0_0xaf0c;_0x36f548()[_0x2f65e3('0x1fc5')](_0x4f5f2a)?_0x2605fe():_0x1a0eea[_0x2f65e3('0x1257')][_0x2f65e3('0xaea')]({'id':_0x159413['smsQueue']['id'],'ids':_0x36f548()[_0x2f65e3('0x2171')](_0x4f5f2a,'id')})[_0x2f65e3('0x1549')][_0x2f65e3('0x11bf')](function(){_0x2605fe();})[_0x2f65e3('0x151d')](function(_0x249898){_0x5bff7d(_0x249898);});});}function _0x5fc523(){const _0x53c1ba=_0x5d62ca,_0x3a9418=_0x36f548()[_0x53c1ba('0x2753')](_0x159413[_0x53c1ba('0x21ed')],_0x159413[_0x53c1ba('0x26cc')],'id'),_0x3e73bb=_0x36f548()[_0x53c1ba('0x2753')](_0x159413['selectedItems'],_0x159413[_0x53c1ba('0x21ed')],'id');return _0x4c1320(_0x3a9418)[_0x53c1ba('0x11bf')](function(){return _0x313fc5(_0x3e73bb);})[_0x53c1ba('0x11bf')](function(){const _0x2a2a42=_0x53c1ba;_0x159413[_0x2a2a42('0x1eda')]=![],_0x159413[_0x2a2a42('0x1c6f')]=angular[_0x2a2a42('0x6fb')](_0x159413[_0x2a2a42('0x63')]),_0x159413[_0x2a2a42('0x21ed')]=angular[_0x2a2a42('0x6fb')](_0x159413['selectedItems']),_0x2ed0ef[_0x2a2a42('0x2693')]({'title':_0x2a2a42('0x2243'),'msg':_0x2a2a42('0x1a68')});})['catch'](function(_0x35f19b){const _0x51012e=_0x53c1ba;_0x2ed0ef[_0x51012e('0x255')]({'title':_0x35f19b['status']?_0x51012e('0x574')+_0x35f19b[_0x51012e('0xff9')]+_0x51012e('0xb0b')+_0x35f19b[_0x51012e('0x212f')]:_0x51012e('0x1b7f'),'msg':_0x35f19b[_0x51012e('0xff9')]?JSON[_0x51012e('0x3e')](_0x35f19b[_0x51012e('0x4e8')]):_0x35f19b[_0x51012e('0xaab')]()});});}function _0xd54583(){const _0x27eb00=_0x5d62ca;_0x21a766[_0x27eb00('0x237e')]();}}const _0x38aaed=_0x4afb94,_0x43d448=_0x351988['p']+_0x21d0f5('0xc66');_0x4ca914[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0xcbc'),'$location','$mdDialog','$document',_0x21d0f5('0xb6b'),_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1'),_0x21d0f5('0x12a5'),_0x21d0f5('0x142d'),_0x21d0f5('0x1150'),_0x21d0f5('0x1257'),'userProfileSection'];function _0x4ca914(_0x459acf,_0x46c7d0,_0x58d153,_0x174816,_0x3ed102,_0x4430fc,_0x14afba,_0x4c014c,_0xc81596,_0x943e08,_0x395d32,_0x33ee58){const _0xf982e0=_0x21d0f5,_0x3e0101=this;_0x3e0101[_0xf982e0('0x32a')]=_0x943e08[_0xf982e0('0x2428')](),_0x3e0101['license']=_0x4430fc,_0x3e0101[_0xf982e0('0x23e1')]=_0x14afba,_0x3e0101[_0xf982e0('0x2834')]=_0x3e0101[_0xf982e0('0x23e1')][_0xf982e0('0x1d4')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3e0101[_0xf982e0('0x1d9a')]=_0x46c7d0[_0xf982e0('0x1797')]()+_0xf982e0('0x16a1')+_0x46c7d0['host'](),_0x3e0101[_0xf982e0('0x1257')]=_0x395d32||_0x459acf[_0xf982e0('0x1ab3')][_0xf982e0('0x1257')]||{},_0x3e0101[_0xf982e0('0x1d63')]=_0x33ee58&&_0x33ee58[_0xf982e0('0x27d2')]==0x1?_0x33ee58[_0xf982e0('0x19b2')][0x0]:null,_0x3e0101['crudPermissions']=_0x943e08[_0xf982e0('0x1530')](_0x3e0101[_0xf982e0('0x1d63')]?_0x3e0101['userProfileSection'][_0xf982e0('0xb25')]:null),_0x3e0101[_0xf982e0('0x2c9')]={},_0x3e0101['selectedTab']=_0x459acf[_0xf982e0('0x1ab3')][_0xf982e0('0x205c')]||0x0,_0x3e0101['teamadddialog']=_0x32aad6,_0x3e0101[_0xf982e0('0x2363')]=_0x51bc52,_0x3e0101[_0xf982e0('0xb30')]=_0xc81596['info'],_0x3e0101['gotoSmsQueues']=_0x4a8aad,_0x3e0101[_0xf982e0('0x6bf')]=_0x220388;function _0x32aad6(_0x10611b,_0x34892b){const _0x521503=_0xf982e0;_0x58d153[_0x521503('0xb9')]({'controller':_0x521503('0x174e'),'controllerAs':'vm','templateUrl':_0x43d448,'parent':angular['element'](_0x174816['body']),'targetEvent':_0x34892b,'clickOutsideToClose':!![],'locals':{'smsQueue':_0x10611b,'smsQueues':_0x3e0101['smsQueues']?_0x3e0101[_0x521503('0x1646')]['rows']:[],'crudPermissions':_0x3e0101[_0x521503('0xb25')]}});}function _0x51bc52(_0x49ea2c,_0x37d5c9){const _0x164ffd=_0xf982e0;_0x58d153[_0x164ffd('0xb9')]({'controller':_0x164ffd('0x4d0'),'controllerAs':'vm','templateUrl':_0x906ae1,'parent':angular[_0x164ffd('0x1e73')](_0x174816[_0x164ffd('0x1d2')]),'targetEvent':_0x37d5c9,'clickOutsideToClose':!![],'locals':{'smsQueue':_0x49ea2c,'smsQueues':_0x3e0101[_0x164ffd('0x1646')]?_0x3e0101['smsQueues'][_0x164ffd('0x19b2')]:[],'crudPermissions':_0x3e0101[_0x164ffd('0xb25')],'realtime':![]}});}function _0x4a8aad(){const _0x376f28=_0xf982e0;_0x459acf['go'](_0x376f28('0x10ce'),{},{'reload':_0x376f28('0x10ce')});}function _0x220388(){const _0x384a8d=_0xf982e0;_0x4c014c[_0x384a8d('0x1257')]['update']({'id':_0x3e0101[_0x384a8d('0x1257')]['id']},_0x3e0101['smsQueue'])[_0x384a8d('0x1549')][_0x384a8d('0x11bf')](function(){const _0x9ff464=_0x384a8d;_0xc81596[_0x9ff464('0x2693')]({'title':'SmsQueue\x20updated!','msg':_0x3e0101['smsQueue'][_0x9ff464('0x1909')]?_0x3e0101['smsQueue'][_0x9ff464('0x1909')]+_0x9ff464('0xd7'):''});})[_0x384a8d('0x151d')](function(_0x25d130){const _0x65f5bd=_0x384a8d;_0xc81596[_0x65f5bd('0x255')]({'title':_0x25d130['status']?_0x65f5bd('0x574')+_0x25d130[_0x65f5bd('0xff9')]+'\x20-\x20'+_0x25d130[_0x65f5bd('0x212f')]:_0x65f5bd('0xfb4'),'msg':_0x25d130['data']?JSON['stringify'](_0x25d130[_0x65f5bd('0x4e8')]):_0x25d130[_0x65f5bd('0xaab')]()});});}}const _0x355b9d=_0x4ca914;_0x442a39[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),'$window',_0x21d0f5('0xcbc'),_0x21d0f5('0x18fe'),_0x21d0f5('0x1ca2'),'$document','$timeout',_0x21d0f5('0xb6b'),'smsQueues',_0x21d0f5('0x25bc'),_0x21d0f5('0x1d63'),_0x21d0f5('0x12a5'),_0x21d0f5('0xda9'),_0x21d0f5('0x142d'),_0x21d0f5('0x1150'),_0x21d0f5('0x17ff'),'setting'];function _0x442a39(_0x15d25e,_0x5889e3,_0x2c4cb8,_0x207eba,_0x4ce763,_0xd8fa87,_0x134c9c,_0x305da7,_0x5bd34d,_0x43794c,_0x56fa54,_0x4aa282,_0x385761,_0x1f0c21,_0x59b9b5,_0x1afe03,_0x5b3bcd){const _0x449cba=_0x21d0f5,_0x578356=this;_0x578356['license']=_0x1afe03,_0x578356[_0x449cba('0x23e1')]=_0x5b3bcd,_0x578356['currentUser']=_0x59b9b5[_0x449cba('0x2428')](),_0x578356[_0x449cba('0x1646')]=_0x5bd34d||{'count':0x0,'rows':[]},_0x578356[_0x449cba('0x25bc')]=_0x43794c,_0x578356[_0x449cba('0x1d63')]=_0x56fa54&&_0x56fa54[_0x449cba('0x27d2')]==0x1?_0x56fa54[_0x449cba('0x19b2')][0x0]:null,_0x578356[_0x449cba('0xb25')]=_0x59b9b5['parseCrudPermissions'](_0x578356[_0x449cba('0x1d63')]?_0x578356[_0x449cba('0x1d63')]['crudPermissions']:null),_0x578356[_0x449cba('0x13e8')]=_0x449cba('0x1646'),_0x578356[_0x449cba('0x724')]='',_0x578356['listOrderAsc']=null,_0x578356[_0x449cba('0x27bd')]=[],_0x578356['query']={'fields':_0x449cba('0xe24'),'sort':_0x449cba('0x1c74'),'channel':_0x449cba('0x4df'),'limit':0xa,'page':0x1},_0x578356[_0x449cba('0x1612')]=_0x36f548()[_0x449cba('0x2130')]([{'option':_0x449cba('0x1ace'),'value':_0x449cba('0x16c6')},{'option':_0x449cba('0x2510'),'value':_0x449cba('0x166d')}],function(_0x25ae0e){const _0x137c06=_0x449cba;return _0x36f548()[_0x137c06('0x814')](_0x25ae0e[_0x137c06('0x10cc')],new RegExp('\x27','g'),'');}),_0x578356[_0x449cba('0x757')]=_0xd6e9e7,_0x578356['teamadddialog']=_0x26ea4b,_0x578356[_0x449cba('0x2363')]=_0x3701cb,_0x578356['deleteconfirm']=_0x151d3b,_0x578356['gotorealtimegoto']=_0x52b6c8,_0x578356[_0x449cba('0x2693')]=_0x5500ce,_0x578356[_0x449cba('0x2868')]=_0x3ca66f,_0x578356[_0x449cba('0x22aa')]=_0x1830c2,_0x578356[_0x449cba('0x1640')]=_0x4f1c78,_0x578356[_0x449cba('0x921')]=_0x359f87,_0x578356[_0x449cba('0x21d1')]=_0x4f1924,_0x578356[_0x449cba('0xc1b')]=_0x19476c,_0x578356[_0x449cba('0x1a0f')]=_0x36c39a;function _0xd6e9e7(_0x36e0c8){const _0x1147e1=_0x449cba;_0x2c4cb8['go'](_0x1147e1('0x8d3'),{'id':_0x36e0c8['id'],'smsQueue':_0x36e0c8,'crudPermissions':_0x578356[_0x1147e1('0xb25')]});}function _0x26ea4b(_0xc92945,_0x40f7cb){const _0x299146=_0x449cba;_0x4ce763[_0x299146('0xb9')]({'controller':_0x299146('0x174e'),'controllerAs':'vm','templateUrl':_0x43d448,'parent':angular[_0x299146('0x1e73')](_0xd8fa87[_0x299146('0x1d2')]),'targetEvent':_0x40f7cb,'clickOutsideToClose':!![],'locals':{'smsQueue':_0xc92945,'smsQueues':_0x578356[_0x299146('0x1646')]?_0x578356[_0x299146('0x1646')][_0x299146('0x19b2')]:[],'crudPermissions':_0x578356[_0x299146('0xb25')]}});}function _0x3701cb(_0x5499a3,_0x3dea40){const _0x26c14a=_0x449cba;_0x4ce763['show']({'controller':_0x26c14a('0x4d0'),'controllerAs':'vm','templateUrl':_0x906ae1,'parent':angular[_0x26c14a('0x1e73')](_0xd8fa87[_0x26c14a('0x1d2')]),'targetEvent':_0x3dea40,'clickOutsideToClose':!![],'locals':{'smsQueue':_0x5499a3,'smsQueues':_0x578356[_0x26c14a('0x1646')]?_0x578356[_0x26c14a('0x1646')][_0x26c14a('0x19b2')]:[],'crudPermissions':_0x578356[_0x26c14a('0xb25')],'realtime':![]}});}function _0x151d3b(_0x29a82d,_0x443116){const _0x2b858d=_0x449cba,_0x5e7e69=_0x4ce763[_0x2b858d('0x132b')]()[_0x2b858d('0x134b')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x36f548()[_0x2b858d('0x13cf')](_0x2b858d('0x1257'))+'?')[_0x2b858d('0x1d03')](_0x2b858d('0x2061')+(_0x29a82d[_0x2b858d('0x1909')]||'smsQueue')+_0x2b858d('0x1c78')+_0x2b858d('0x1a'))['ariaLabel'](_0x2b858d('0x106b'))[_0x2b858d('0x1e25')](_0x443116)['ok']('OK')[_0x2b858d('0x26c9')](_0x2b858d('0x772'));_0x4ce763[_0x2b858d('0xb9')](_0x5e7e69)[_0x2b858d('0x11bf')](function(){_0x4f1c78(_0x29a82d);},function(){const _0xae345a=_0x2b858d;console[_0xae345a('0xc78')](_0xae345a('0x772'));});}function _0x52b6c8(){const _0x4ec674=_0x449cba;if(_0x59b9b5[_0x4ec674('0x4ee')](_0x4ec674('0xf45')))_0x2c4cb8['go'](_0x4ec674('0x18c8'),{});else return _0x4aa282['userProfileSection']['get']({'userProfileId':_0x59b9b5[_0x4ec674('0x2428')]()['userProfileId'],'sectionId':0x2c6})[_0x4ec674('0x1549')][_0x4ec674('0x11bf')](function(_0x1fba0d){const _0xb4385=_0x4ec674,_0x5872da=_0x1fba0d&&_0x1fba0d['rows']?_0x1fba0d[_0xb4385('0x19b2')][0x0]:null;_0x5872da&&_0x5872da[_0xb4385('0x1f0a')]?_0x2c4cb8['go'](_0xb4385('0x18c8'),{}):_0x1f0c21['info']({'title':_0x305da7[_0xb4385('0x10c2')](_0xb4385('0xbff')),'msg':_0x305da7[_0xb4385('0x10c2')](_0xb4385('0x10d1'))});})[_0x4ec674('0x151d')](function(_0x39f48f){const _0x58e670=_0x4ec674;_0x1f0c21['error']({'title':_0x39f48f[_0x58e670('0xff9')]?_0x58e670('0x574')+_0x39f48f['status']+_0x58e670('0xb0b')+_0x39f48f['statusText']:'USERPROFILE:GET_SECTION','msg':_0x39f48f['status']?JSON[_0x58e670('0x3e')](_0x39f48f[_0x58e670('0x4e8')]):_0x39f48f[_0x58e670('0xaab')]()});});}let _0x495912=!![],_0x39aa82=0x1;_0x15d25e['$watch']('vm.query.filter',function(_0x734254,_0x20421c){const _0x1c8cd2=_0x449cba;_0x495912?_0x134c9c(function(){_0x495912=![];}):(!_0x20421c&&(_0x39aa82=_0x578356[_0x1c8cd2('0x1f2a')][_0x1c8cd2('0x1c2')]),_0x734254!==_0x20421c&&(_0x578356[_0x1c8cd2('0x1f2a')][_0x1c8cd2('0x1c2')]=0x1),!_0x734254&&(_0x578356['query'][_0x1c8cd2('0x1c2')]=_0x39aa82),_0x578356[_0x1c8cd2('0x2868')]());});function _0x5500ce(_0x41d7ae){_0x578356['smsQueues']=_0x41d7ae||{'count':0x0,'rows':[]};}function _0x3ca66f(){const _0x5ba884=_0x449cba;_0x578356['query'][_0x5ba884('0x1393')]=(_0x578356[_0x5ba884('0x1f2a')][_0x5ba884('0x1c2')]-0x1)*_0x578356[_0x5ba884('0x1f2a')][_0x5ba884('0xd5c')],_0x59b9b5[_0x5ba884('0x4ee')](_0x5ba884('0xf45'))?_0x578356[_0x5ba884('0x13f')]=_0x4aa282[_0x5ba884('0x1257')][_0x5ba884('0xbaa')](_0x578356['query'],_0x5500ce)[_0x5ba884('0x1549')]:(_0x578356[_0x5ba884('0x1f2a')]['id']=_0x578356['userProfile']['id'],_0x578356[_0x5ba884('0x1f2a')][_0x5ba884('0xe6')]=_0x5ba884('0xf23'),_0x578356[_0x5ba884('0x13f')]=_0x4aa282['userProfile']['getResources'](_0x578356[_0x5ba884('0x1f2a')],_0x5500ce)['$promise']);}function _0x1830c2(_0x496940,_0x39ab1b){const _0x361076=_0x449cba;_0x4ce763[_0x361076('0xb9')]({'controller':_0x361076('0x1e92'),'controllerAs':'vm','templateUrl':_0x407224,'parent':angular[_0x361076('0x1e73')](_0xd8fa87[_0x361076('0x1d2')]),'targetEvent':_0x496940,'clickOutsideToClose':!![],'locals':{'smsQueue':_0x39ab1b,'smsQueues':_0x578356[_0x361076('0x1646')]['rows'],'license':_0x578356[_0x361076('0x17ff')],'setting':_0x578356[_0x361076('0x23e1')],'crudPermissions':_0x578356['crudPermissions']}});}function _0x4f1c78(_0x360f3b){const _0x407c85=_0x449cba;_0x4aa282['smsQueue']['delete']({'id':_0x360f3b['id']})[_0x407c85('0x1549')][_0x407c85('0x11bf')](function(){const _0x3e643d=_0x407c85;_0x36f548()['remove'](_0x578356['smsQueues']['rows'],{'id':_0x360f3b['id']}),_0x578356[_0x3e643d('0x1646')][_0x3e643d('0x27d2')]-=0x1,!_0x578356[_0x3e643d('0x1646')][_0x3e643d('0x19b2')][_0x3e643d('0x1e22')]&&_0x578356[_0x3e643d('0x2868')](),_0x1f0c21[_0x3e643d('0x2693')]({'title':_0x36f548()[_0x3e643d('0x13cf')]('SmsQueue')+_0x3e643d('0x2113'),'msg':_0x360f3b[_0x3e643d('0x1909')]?_0x360f3b[_0x3e643d('0x1909')]+'\x20has\x20been\x20deleted!':''});})['catch'](function(_0x1f3eb8){const _0x5e3278=_0x407c85;if(_0x1f3eb8[_0x5e3278('0x4e8')]&&_0x1f3eb8['data']['errors']&&_0x1f3eb8[_0x5e3278('0x4e8')][_0x5e3278('0x120f')][_0x5e3278('0x1e22')]){_0x578356[_0x5e3278('0x120f')]=_0x1f3eb8['data']['errors']||[{'message':_0x1f3eb8[_0x5e3278('0xaab')](),'type':_0x5e3278('0x1dea')}];for(let _0x33b7a5=0x0;_0x33b7a5<_0x1f3eb8[_0x5e3278('0x4e8')][_0x5e3278('0x120f')][_0x5e3278('0x1e22')];_0x33b7a5++){_0x1f0c21['error']({'title':_0x1f3eb8['data'][_0x5e3278('0x120f')][_0x33b7a5][_0x5e3278('0x19fd')],'msg':_0x1f3eb8[_0x5e3278('0x4e8')][_0x5e3278('0x120f')][_0x33b7a5][_0x5e3278('0x1b86')]});}}else _0x1f0c21['error']({'title':_0x1f3eb8[_0x5e3278('0xff9')]?_0x5e3278('0x574')+_0x1f3eb8[_0x5e3278('0xff9')]+_0x5e3278('0xb0b')+_0x1f3eb8[_0x5e3278('0x212f')]:_0x5e3278('0x1dea'),'msg':_0x1f3eb8['data']?JSON[_0x5e3278('0x3e')](_0x1f3eb8[_0x5e3278('0x4e8')][_0x5e3278('0x1b86')]):_0x1f3eb8[_0x5e3278('0x1b86')]||_0x1f3eb8[_0x5e3278('0xaab')]()});});}function _0x359f87(){const _0x2e10e6=_0x449cba,_0x147437=angular[_0x2e10e6('0x6fb')](_0x578356[_0x2e10e6('0x27bd')]);return _0x578356['selectedSmsQueues']=[],_0x147437;}function _0x4f1924(_0x139fd9){const _0x54ed6e=_0x449cba,_0x9f7ef3=_0x4ce763[_0x54ed6e('0x132b')]()['title'](_0x54ed6e('0x1ca7'))[_0x54ed6e('0x1d03')](_0x54ed6e('0x2061')+_0x578356['selectedSmsQueues'][_0x54ed6e('0x1e22')]+'\x20selected'+_0x54ed6e('0x1a'))['ariaLabel'](_0x54ed6e('0x1d37'))['targetEvent'](_0x139fd9)['ok']('OK')[_0x54ed6e('0x26c9')]('CANCEL');_0x4ce763[_0x54ed6e('0xb9')](_0x9f7ef3)[_0x54ed6e('0x11bf')](function(){const _0x491ffc=_0x54ed6e;_0x578356[_0x491ffc('0x27bd')][_0x491ffc('0x1f88')](function(_0x4e470c){_0x4f1c78(_0x4e470c);}),_0x578356['selectedSmsQueues']=[];});}function _0x19476c(){const _0x2b76c3=_0x449cba;_0x578356[_0x2b76c3('0x27bd')]=[];}function _0x36c39a(){const _0x201462=_0x449cba;_0x578356[_0x201462('0x27bd')]=_0x578356['smsQueues'][_0x201462('0x19b2')];}}const _0x4f7b0a=_0x442a39;_0x71126b[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x13d6'),_0x21d0f5('0xc3e')];function _0x71126b(_0x250670,_0x2ee317){const _0x366ee8=_0x21d0f5;_0x250670[_0x366ee8('0x2124')](_0x366ee8('0x1335'),{'abstract':!![],'url':_0x366ee8('0x74b')})[_0x366ee8('0x2124')](_0x366ee8('0x10ce'),{'url':_0x366ee8('0xcf5'),'views':{'content@app':{'templateUrl':_0x38fbfd,'controller':_0x366ee8('0x1053')}},'resolve':{'smsQueues':[_0x366ee8('0x218e'),_0x366ee8('0x1150'),function(_0x20975a,_0xb23edb){const _0x4f8e4e=_0x366ee8;return _0xb23edb[_0x4f8e4e('0x4ee')](_0x4f8e4e('0xf45'))?_0x20975a[_0x4f8e4e('0xa28')](_0x4f8e4e('0x1bb9'),{'fields':_0x4f8e4e('0xe24'),'sort':_0x4f8e4e('0x1c74'),'channel':_0x4f8e4e('0x4df'),'limit':0xa,'offset':0x0}):_0x20975a['resolve']('userProfile@getResources',{'id':_0xb23edb[_0x4f8e4e('0x2428')]()[_0x4f8e4e('0x781')],'section':_0x4f8e4e('0xf23'),'fields':_0x4f8e4e('0xe24'),'sort':_0x4f8e4e('0x1c74'),'channel':'sms','limit':0xa,'offset':0x0});}],'userProfile':[_0x366ee8('0x218e'),_0x366ee8('0x1150'),function(_0xad29f6,_0x5692c6){const _0x4b3795=_0x366ee8;return _0x5692c6[_0x4b3795('0x4ee')](_0x4b3795('0xf45'))?null:_0xad29f6['resolve'](_0x4b3795('0x428'),{'fields':_0x4b3795('0xd30'),'id':_0x5692c6[_0x4b3795('0x2428')]()[_0x4b3795('0x781')]});}],'userProfileSection':[_0x366ee8('0x218e'),'Auth',function(_0x11c105,_0x556eba){const _0x4543cf=_0x366ee8;return _0x556eba['hasRole'](_0x4543cf('0xf45'))?null:_0x11c105[_0x4543cf('0xa28')]('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x556eba[_0x4543cf('0x2428')]()[_0x4543cf('0x781')],'sectionId':0x2bd});}]},'authenticate':!![],'permissionId':0x2bd,'bodyClass':_0x366ee8('0x4df')})[_0x366ee8('0x2124')](_0x366ee8('0x8d3'),{'url':_0x366ee8('0x142b'),'params':{'smsQueue':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x15a4c7,'controller':'SmsQueueController\x20as\x20vm'}},'resolve':{'smsQueue':[_0x366ee8('0x218e'),_0x366ee8('0x1573'),function(_0x1b3b1f,_0xd353d0){const _0x1d4507=_0x366ee8;return _0x1b3b1f[_0x1d4507('0xa28')](_0x1d4507('0x1bb9'),{'fields':_0x1d4507('0xe24'),'id':_0xd353d0['id']});}],'userProfileSection':['apiResolver','Auth',function(_0x1d7335,_0x1dbd94){const _0x1fde5a=_0x366ee8;return _0x1d7335[_0x1fde5a('0xa28')](_0x1fde5a('0x2762'),{'fields':_0x1fde5a('0x36d'),'userProfileId':_0x1dbd94[_0x1fde5a('0x2428')]()[_0x1fde5a('0x781')],'sectionId':0x2bd});}]},'authenticate':!![],'permissionId':0x2bd,'bodyClass':_0x366ee8('0x4df')})[_0x366ee8('0x2124')](_0x366ee8('0xc74'),{'url':_0x366ee8('0xbf0'),'views':{'content@app':{'templateUrl':_0x4e1f2f,'controller':'SmsAccountsController\x20as\x20vm'}},'resolve':{'smsAccounts':[_0x366ee8('0x218e'),_0x366ee8('0x1150'),function(_0x1d0e49,_0x21c09d){const _0x52f19b=_0x366ee8;return _0x21c09d['hasRole'](_0x52f19b('0xf45'))?_0x1d0e49[_0x52f19b('0xa28')](_0x52f19b('0xc77'),{'fields':_0x52f19b('0x2114'),'sort':_0x52f19b('0x1c74'),'limit':0xa,'offset':0x0}):_0x1d0e49[_0x52f19b('0xa28')](_0x52f19b('0xb0d'),{'id':_0x21c09d['getCurrentUser']()['userProfileId'],'section':'SmsAccounts','fields':'createdAt,updatedAt,id,name,key,token,remote,ListId,type,phone,accountSid,authId,authToken,smsMethod,username,password,baseUrl,apiKey,senderString,deliveryReport,waitForTheAssignedAgent,mandatoryDisposition,mandatoryDispositionPauseId,description,receiveUrl,deliveryReportUrl,notificationSound,notificationShake,notificationTemplate,queueTransfer,queueTransferTimeout,agentTransfer,agentTransferTimeout','sort':_0x52f19b('0x1c74'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x366ee8('0x218e'),_0x366ee8('0x1150'),function(_0x42d694,_0xf9f0e3){const _0xe0d793=_0x366ee8;return _0xf9f0e3[_0xe0d793('0x4ee')](_0xe0d793('0xf45'))?null:_0x42d694[_0xe0d793('0xa28')](_0xe0d793('0x428'),{'fields':'id,name,crudPermissions','id':_0xf9f0e3[_0xe0d793('0x2428')]()['userProfileId']});}],'userProfileSection':[_0x366ee8('0x218e'),_0x366ee8('0x1150'),function(_0x117679,_0x2819a4){const _0x36a95c=_0x366ee8;return _0x2819a4[_0x36a95c('0x4ee')](_0x36a95c('0xf45'))?null:_0x117679[_0x36a95c('0xa28')](_0x36a95c('0x2762'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x2819a4[_0x36a95c('0x2428')]()[_0x36a95c('0x781')],'sectionId':0x2be});}]},'authenticate':!![],'permissionId':0x2be,'bodyClass':_0x366ee8('0x4df')})[_0x366ee8('0x2124')](_0x366ee8('0x9cf'),{'url':'/:id?tab','params':{'smsAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x112023,'controller':'SmsAccountController\x20as\x20vm'}},'resolve':{'smsAccount':[_0x366ee8('0x218e'),'$stateParams',function(_0x3ea7bc,_0x29999b){const _0x54b30a=_0x366ee8;return _0x3ea7bc[_0x54b30a('0xa28')](_0x54b30a('0xc77'),{'fields':_0x54b30a('0x2114'),'id':_0x29999b['id']});}],'userProfileSection':[_0x366ee8('0x218e'),_0x366ee8('0x1150'),function(_0x17288c,_0x1b7ed0){const _0x1a327d=_0x366ee8;return _0x17288c['resolve'](_0x1a327d('0x2762'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x1b7ed0[_0x1a327d('0x2428')]()['userProfileId'],'sectionId':0x2be});}]},'authenticate':!![],'permissionId':0x2be,'bodyClass':_0x366ee8('0x4df')}),_0x2ee317[_0x366ee8('0x471')]('app/main/apps/sms');}angular[_0x21d0f5('0x2768')](_0x21d0f5('0x1335'),[_0x21d0f5('0x22d5'),'ngPassword',_0x21d0f5('0x3c4'),_0x21d0f5('0x2414'),_0x21d0f5('0xd61'),'ckeditor',_0x21d0f5('0x24a2'),_0x21d0f5('0x446'),_0x21d0f5('0x113d'),_0x21d0f5('0x21d5'),_0x21d0f5('0x29b'),'mwFormViewer',_0x21d0f5('0x950'),_0x21d0f5('0xf49'),'angular-cron-jobs',_0x21d0f5('0xed9'),_0x21d0f5('0x2625'),_0x21d0f5('0x1622'),_0x21d0f5('0x1584'),_0x21d0f5('0xf7f'),_0x21d0f5('0x12f')])[_0x21d0f5('0x53a')](_0x71126b)[_0x21d0f5('0x23eb')]('CreateOrEditSmsAccountDialogController',_0x410ca0)[_0x21d0f5('0x23eb')]('SmsAccountActionsController',_0x319d81)[_0x21d0f5('0x23eb')](_0x21d0f5('0x2789'),_0xbdea94)[_0x21d0f5('0x23eb')](_0x21d0f5('0x1c4'),_0xd4fa6f)['controller'](_0x21d0f5('0x25ab'),_0x269967)['controller'](_0x21d0f5('0x19ea'),_0x3fe4f4)[_0x21d0f5('0x23eb')]('EditSmsAccountAppcloseDialogController',_0x5d3c19)['controller'](_0x21d0f5('0x17c7'),_0x1d8b60)[_0x21d0f5('0x23eb')](_0x21d0f5('0x219f'),_0x3cf50b)[_0x21d0f5('0x23eb')](_0x21d0f5('0x918'),_0x4fbf84)[_0x21d0f5('0x23eb')](_0x21d0f5('0x2543'),_0x2d03e1)[_0x21d0f5('0x23eb')](_0x21d0f5('0x37b'),_0x59d3dc)[_0x21d0f5('0x23eb')](_0x21d0f5('0x1f68'),_0x211370)[_0x21d0f5('0x23eb')](_0x21d0f5('0x1dac'),_0x5a7b04)[_0x21d0f5('0x23eb')](_0x21d0f5('0x2ce'),_0x528645)['controller'](_0x21d0f5('0x1a3'),_0x614e03)[_0x21d0f5('0x23eb')](_0x21d0f5('0x115b'),_0xca2b0f)[_0x21d0f5('0x23eb')](_0x21d0f5('0x11f3'),_0x5cd4a3)['controller']('SmsAccountDispositionsController',_0x393ae7)[_0x21d0f5('0x23eb')](_0x21d0f5('0x2732'),_0xf98556)[_0x21d0f5('0x23eb')](_0x21d0f5('0x240b'),_0x4a9209)['controller'](_0x21d0f5('0x1e92'),_0x1d313f)[_0x21d0f5('0x23eb')]('SmsQueueagentaddController',_0x320ebe)[_0x21d0f5('0x23eb')](_0x21d0f5('0x174e'),_0x38aaed)[_0x21d0f5('0x23eb')]('SmsQueueController',_0x355b9d)[_0x21d0f5('0x23eb')](_0x21d0f5('0x280d'),_0x4f7b0a);const _0x21a655=_0x351988['p']+'src/js/modules/main/apps/openchannel/views/realtime/realtime.html/realtime.html',_0x1323cb=_0x351988['p']+'src/js/modules/main/apps/openchannel/views/realtime/agents/view.html/view.html',_0x2a77bd=_0x351988['p']+_0x21d0f5('0xefe');_0x2a7ff2[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),'$q',_0x21d0f5('0x17f5'),_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),_0x21d0f5('0x2212'),_0x21d0f5('0x12f2'),_0x21d0f5('0x1401'),_0x21d0f5('0xaa0'),_0x21d0f5('0x12a5'),'socket',_0x21d0f5('0x142d'),_0x21d0f5('0x927'),_0x21d0f5('0x25bc'),'userProfileSection','Auth','license',_0x21d0f5('0x1fd')];function _0x2a7ff2(_0x106d3c,_0x23495e,_0x1161fa,_0x503700,_0x3f9391,_0x49fa66,_0x5cdbd3,_0x21ad49,_0x8de2f1,_0x514674,_0x42c52d,_0x46f4e1,_0x51be8c,_0x4ad628,_0x41f233,_0x522ea6,_0x2b92d3,_0x2e0c58){const _0x33ba53=_0x21d0f5,_0x1f082a=this,_0x468c8c=[_0x33ba53('0x88'),_0x33ba53('0x81c'),_0x33ba53('0x3bd'),_0x33ba53('0x1e10'),_0x33ba53('0x2628'),_0x33ba53('0x1e10'),_0x33ba53('0x1a04'),_0x33ba53('0x5fc'),_0x33ba53('0x13c9'),_0x33ba53('0xfc0'),_0x33ba53('0x1f53'),'smsPause',_0x33ba53('0x1ed1'),'faxPause','voicePause',_0x33ba53('0x1ed'),'openchannelCapacity','mailCapacity',_0x33ba53('0xcc5'),_0x33ba53('0xf0d'),_0x33ba53('0x790'),_0x33ba53('0x539'),_0x33ba53('0x1a2e'),'mailCurrentCapacity','smsCurrentCapacity','whatsappCurrentCapacity',_0x33ba53('0x21d4'),_0x33ba53('0x1572'),_0x33ba53('0x19c0'),_0x33ba53('0x1683'),_0x33ba53('0x245c'),_0x33ba53('0x14d4'),_0x33ba53('0x8dd'),'voiceStatus',_0x33ba53('0xe6a'),'openchannelStatusTime',_0x33ba53('0x1bab'),_0x33ba53('0x1ac6'),'whatsappStatusTime',_0x33ba53('0x1ce2'),_0x33ba53('0x24e5'),'queue',_0x33ba53('0x1562'),_0x33ba53('0xcb7'),_0x33ba53('0x15e0'),_0x33ba53('0x1f38')],_0x31dea2=['chatPause',_0x33ba53('0xfc0'),_0x33ba53('0x1f53'),_0x33ba53('0x55e'),'whatsappPause',_0x33ba53('0x2501'),_0x33ba53('0x20d'),'online'];_0x1f082a[_0x33ba53('0x32a')]=_0x522ea6[_0x33ba53('0x2428')](),_0x1f082a[_0x33ba53('0x1391')]=[_0x33ba53('0x19b'),_0x33ba53('0x1218'),_0x33ba53('0x23a3'),_0x33ba53('0x26ac'),_0x33ba53('0x753')],_0x1f082a[_0x33ba53('0x12f2')]=_0x5cdbd3||{'count':0x0,'rows':[]},_0x1f082a[_0x33ba53('0x17ff')]=_0x2b92d3,_0x1f082a[_0x33ba53('0x25bc')]=_0x4ad628,_0x1f082a[_0x33ba53('0x1d63')]=_0x41f233&&_0x41f233[_0x33ba53('0x27d2')]==0x1?_0x41f233[_0x33ba53('0x19b2')][0x0]:null,_0x1f082a[_0x33ba53('0xb25')]=_0x522ea6[_0x33ba53('0x1530')](_0x1f082a[_0x33ba53('0x1d63')]?_0x1f082a[_0x33ba53('0x1d63')][_0x33ba53('0xb25')]:null),_0x1f082a[_0x33ba53('0x1401')]=_0x21ad49?_0x36f548()[_0x33ba53('0x2130')](_0x21ad49[_0x33ba53('0x19b2')]?_0x21ad49[_0x33ba53('0x19b2')]:[],'id'):{},_0x1f082a[_0x33ba53('0xaa0')]=_0x8de2f1?_0x36f548()[_0x33ba53('0x2130')](_0x8de2f1[_0x33ba53('0x19b2')]?_0x8de2f1[_0x33ba53('0x19b2')]:[],'id'):{},_0x1f082a[_0x33ba53('0x18bd')]={},_0x1f082a[_0x33ba53('0x215b')]=![],_0x1f082a['order']=[],_0x1f082a['agentInternal']={};for(const _0x51f8c8 in _0x1f082a[_0x33ba53('0x1401')]){typeof _0x1f082a[_0x33ba53('0x1401')][_0x51f8c8]!==_0x33ba53('0x13e9')&&(_0x1f082a[_0x33ba53('0x1401')][_0x51f8c8][_0x33ba53('0x286f')]=!![]);}_0x1f082a[_0x33ba53('0x1f2a')]={'limit':0xa,'page':0x1,'order':_0x33ba53('0x27af'),'globalStatusFilter':'','pauseTypeFilter':''},_0x1f082a['logout']=_0x29e120,_0x1f082a[_0x33ba53('0x6c0')]=_0x450940,_0x1f082a[_0x33ba53('0x92a')]=_0x228e40,_0x1f082a[_0x33ba53('0x1ab7')]=_0x919e52,_0x1f082a[_0x33ba53('0x1410')]=_0x2116b8,_0x1f082a[_0x33ba53('0x12e5')]=_0xd4ee,_0x1f082a[_0x33ba53('0x11a2')]=_0x3ce2da,_0x1f082a['isPause']=_0x118169,_0x1f082a[_0x33ba53('0x1869')]=_0x4f3ec5,_0x1f082a[_0x33ba53('0x2384')]=_0x3d7034,_0x1f082a[_0x33ba53('0xc8f')]=_0x5af9ac,_0x1f082a[_0x33ba53('0xfdd')]=_0x202bbf,_0x1f082a[_0x33ba53('0x277c')]=_0xb0ce58,_0x1f082a['onConnect']=_0x20547c,_0x1f082a[_0x33ba53('0x162a')]=_0x47043f,_0x1f082a[_0x33ba53('0x1520')]=_0x3167cd,_0x42c52d['on'](_0x33ba53('0x1ce9'),_0x1f082a[_0x33ba53('0xc8f')]),_0x42c52d['on'](_0x33ba53('0x15bd'),_0x1f082a[_0x33ba53('0xfdd')]),_0x42c52d['on'](_0x33ba53('0x90c'),_0x1f082a[_0x33ba53('0x1e2e')]),_0x42c52d['on'](_0x33ba53('0xffb'),_0x1f082a[_0x33ba53('0x162a')]),_0xb0ce58();let _0x1daf75=_0x2e0c58(function(){const _0x4dc936=_0x33ba53;_0x1f082a[_0x4dc936('0x215b')]&&(_0x1f082a[_0x4dc936('0x215b')]=![],_0xb0ce58());},0x3e7);function _0xb0ce58(){const _0x2c3033=_0x33ba53;_0x1f082a['load']=![];const _0x185f22=_0x23495e[_0x2c3033('0xa93')]();_0x1f082a[_0x2c3033('0x13f')]=_0x185f22[_0x2c3033('0x13f')],_0x1f082a[_0x2c3033('0x15f2')]=[],_0x1f082a[_0x2c3033('0x59')]=[],_0x36f548()[_0x2c3033('0x41e')](_0x1f082a[_0x2c3033('0x1401')],function(_0x1dffa1,_0x51df55){const _0x34a67e=_0x2c3033;_0x1f082a['rpcAgents'][_0x51df55]&&_0x36f548()[_0x34a67e('0x47b')](_0x1dffa1,_0x36f548()[_0x34a67e('0x258')](_0x36f548()[_0x34a67e('0x196f')](_0x1f082a[_0x34a67e('0xaa0')][_0x51df55],_0x31dea2),_0x468c8c)),_0x3ce2da(_0x1dffa1),_0x1dffa1[_0x34a67e('0x81c')]?(_0x1f082a['filteredAgents'][_0x34a67e('0x105d')](_0x1dffa1),_0x1f082a[_0x34a67e('0x14fd')][_0x1dffa1[_0x34a67e('0x1a04')]]=_0x51df55):_0x1dffa1[_0x34a67e('0xd4')]=_0x36f548()[_0x34a67e('0x17c2')](_0x57d4d1()()[_0x34a67e('0x1826')]('x'));});_0x1f082a[_0x2c3033('0x1f2a')][_0x2c3033('0x270')]&&_0x36f548()[_0x2c3033('0x14a5')](_0x1f082a['filteredAgents'],function(_0x2d8fe9){const _0x145725=_0x2c3033;return _0x2d8fe9[_0x145725('0x797')]!==_0x1f082a['query'][_0x145725('0x270')];});_0x1f082a[_0x2c3033('0x1f2a')]['pauseTypeFilter']&&_0x36f548()[_0x2c3033('0x14a5')](_0x1f082a['filteredAgents'],function(_0x3b6207){const _0x14d8aa=_0x2c3033;return _0x3b6207[_0x14d8aa('0x2628')]!==_0x1f082a[_0x14d8aa('0x1f2a')][_0x14d8aa('0xa12')];});_0x1f082a[_0x2c3033('0x1f2a')][_0x2c3033('0xdb4')]&&_0x36f548()[_0x2c3033('0x14a5')](_0x1f082a['filteredAgents'],function(_0x153146){const _0xbc1bd0=_0x2c3033;return _0x153146[_0xbc1bd0('0x27af')][_0xbc1bd0('0x20d5')]()[_0xbc1bd0('0x203c')](_0x1f082a[_0xbc1bd0('0x1f2a')]['filter'][_0xbc1bd0('0x20d5')]())<0x0;});_0x1f082a[_0x2c3033('0x15f2')]=_0x29dc67(_0x1f082a[_0x2c3033('0x15f2')]);const _0x244a42=(_0x1f082a[_0x2c3033('0x1f2a')][_0x2c3033('0x1c2')]-0x1)*_0x1f082a['query'][_0x2c3033('0xd5c')];_0x1f082a[_0x2c3033('0x18bd')]=_0x36f548()['drop'](_0x1f082a[_0x2c3033('0x15f2')],_0x244a42)['slice'](0x0,_0x1f082a[_0x2c3033('0x1f2a')][_0x2c3033('0xd5c')]);for(let _0x36362a=0x0;_0x36362a<_0x1f082a[_0x2c3033('0x18bd')]['length'];_0x36362a+=0x1){_0x1f082a['order']['push'](_0x1f082a[_0x2c3033('0x18bd')][_0x36362a]['id']);}_0x185f22[_0x2c3033('0xa28')](),_0x1f082a[_0x2c3033('0x215b')]=!![];}function _0x5af9ac(_0x2e272f){const _0x414c1e=_0x33ba53;_0x1f082a['agents'][_0x2e272f['id']]&&(_0x36f548()[_0x414c1e('0x47b')](_0x1f082a[_0x414c1e('0x1401')][_0x2e272f['id']],_0x36f548()[_0x414c1e('0x258')](_0x36f548()[_0x414c1e('0x196f')](_0x2e272f,_0x31dea2),_0x468c8c)),_0x36f548()[_0x414c1e('0x47b')](_0x1f082a[_0x414c1e('0xaa0')][_0x2e272f['id']],_0x36f548()[_0x414c1e('0x258')](_0x36f548()['omit'](_0x2e272f,_0x31dea2),_0x468c8c)),_0x3ce2da(_0x1f082a['agents'][_0x2e272f['id']]));}function _0x202bbf(_0x5d08fd){const _0x23bac3=_0x33ba53;_0x1f082a[_0x23bac3('0x1401')][_0x5d08fd['id']]&&(_0x36f548()[_0x23bac3('0x47b')](_0x1f082a[_0x23bac3('0x1401')][_0x5d08fd['id']],_0x36f548()['pick'](_0x5d08fd,_0x468c8c)),_0x36f548()['merge'](_0x1f082a['rpcAgents'][_0x5d08fd['id']],_0x36f548()[_0x23bac3('0x258')](_0x5d08fd,_0x468c8c)),_0x5d08fd['lastPauseAt']&&(_0x1f082a[_0x23bac3('0x1401')][_0x5d08fd['id']][_0x23bac3('0xd4')]=_0x5d08fd[_0x23bac3('0x1e10')],_0x1f082a[_0x23bac3('0xaa0')][_0x5d08fd['id']][_0x23bac3('0xd4')]=_0x5d08fd[_0x23bac3('0x1e10')]),_0x3ce2da(_0x1f082a[_0x23bac3('0x1401')][_0x5d08fd['id']]));}function _0x20547c(_0x4281d6){const _0x3a36f8=_0x33ba53;_0x1f082a[_0x3a36f8('0x1401')][_0x1f082a['agentInternal'][_0x4281d6[_0x3a36f8('0x1fd0')]]]&&(_0x36f548()[_0x3a36f8('0x47b')](_0x1f082a[_0x3a36f8('0x1401')][_0x1f082a[_0x3a36f8('0x14fd')][_0x4281d6[_0x3a36f8('0x1fd0')]]],_0x36f548()['pick'](_0x4281d6,[_0x3a36f8('0x150b'),_0x3a36f8('0x1562')])),_0x36f548()[_0x3a36f8('0x47b')](_0x1f082a[_0x3a36f8('0xaa0')][_0x1f082a['agentInternal'][_0x4281d6['destaccountcode']]],_0x36f548()[_0x3a36f8('0x258')](_0x4281d6,['queue',_0x3a36f8('0x1562')])));}function _0x47043f(_0x13480){const _0x26defe=_0x33ba53;_0x1f082a[_0x26defe('0x1401')][_0x1f082a[_0x26defe('0x14fd')][_0x13480[_0x26defe('0x1fd0')]]]&&(_0x1f082a[_0x26defe('0x1401')][_0x1f082a[_0x26defe('0x14fd')][_0x13480[_0x26defe('0x1fd0')]]]=_0x36f548()[_0x26defe('0x196f')](_0x1f082a[_0x26defe('0x1401')][_0x1f082a[_0x26defe('0x14fd')][_0x13480['destaccountcode']]],['queue',_0x26defe('0x1562')]),_0x1f082a[_0x26defe('0xaa0')][_0x1f082a[_0x26defe('0x14fd')][_0x13480[_0x26defe('0x1fd0')]]]=_0x36f548()[_0x26defe('0x196f')](_0x1f082a[_0x26defe('0xaa0')][_0x1f082a[_0x26defe('0x14fd')][_0x13480[_0x26defe('0x1fd0')]]],['queue',_0x26defe('0x1562')]));}function _0x29e120(_0x475827){const _0x142629=_0x33ba53;return _0x514674[_0x142629('0x21d9')][_0x142629('0x18f7')]({'id':_0x475827['id'],'device':_0x142629('0x25f9'),'agent_id':_0x475827['id'],'agent_name':_0x475827[_0x142629('0x1909')]})[_0x142629('0x1549')][_0x142629('0x11bf')](function(){const _0x49cb52=_0x142629;_0x46f4e1[_0x49cb52('0x2693')]({'title':_0x49cb52('0x21e1'),'msg':_0x475827['fullname']+'\x20\x20properly\x20logout'}),_0x1f082a[_0x49cb52('0x1401')][_0x475827['id']]&&(_0x1f082a[_0x49cb52('0x1401')][_0x475827['id']][_0x49cb52('0x81c')]=![]),_0x1f082a[_0x49cb52('0xaa0')][_0x475827['id']]&&(_0x1f082a['rpcAgents'][_0x475827['id']][_0x49cb52('0x81c')]=![]),_0xb0ce58();})[_0x142629('0x151d')](function(_0x33b5a8){const _0x583124=_0x142629;_0x46f4e1['error']({'title':_0x33b5a8[_0x583124('0xff9')]?_0x583124('0x574')+_0x33b5a8[_0x583124('0xff9')]+'\x20-\x20'+_0x33b5a8[_0x583124('0x212f')]:_0x583124('0x9'),'msg':_0x33b5a8[_0x583124('0x4e8')]?JSON[_0x583124('0x3e')](_0x33b5a8[_0x583124('0x4e8')][_0x583124('0x1b86')]):_0x33b5a8[_0x583124('0xaab')]()});});}function _0x228e40(_0x194ace,_0x420eca){const _0x307d9b=_0x33ba53;return _0x514674[_0x307d9b('0x21d9')][_0x307d9b('0x92a')]({'id':_0x194ace['id'],'type':_0x420eca})[_0x307d9b('0x1549')][_0x307d9b('0x11bf')](function(_0xa4ab20){const _0x5db896=_0x307d9b;_0x1f082a[_0x5db896('0x1401')][_0x194ace['id']]&&_0x36f548()[_0x5db896('0x47b')](_0x1f082a['agents'][_0x194ace['id']],_0x36f548()[_0x5db896('0x258')](_0xa4ab20,_0x468c8c)),_0x1f082a[_0x5db896('0xaa0')][_0x194ace['id']]&&_0x36f548()[_0x5db896('0x47b')](_0x1f082a[_0x5db896('0xaa0')][_0x194ace['id']],_0x36f548()['pick'](_0xa4ab20,_0x468c8c)),_0x3ce2da(_0x1f082a[_0x5db896('0x1401')][_0x194ace['id']]);})[_0x307d9b('0x151d')](function(_0x1656f8){const _0x13acd3=_0x307d9b;_0x46f4e1['error']({'title':_0x1656f8['status']?'API:'+_0x1656f8[_0x13acd3('0xff9')]+_0x13acd3('0xb0b')+_0x1656f8[_0x13acd3('0x212f')]:_0x13acd3('0x9'),'msg':_0x1656f8[_0x13acd3('0x4e8')]?JSON[_0x13acd3('0x3e')](_0x1656f8[_0x13acd3('0x4e8')][_0x13acd3('0x1b86')]):_0x1656f8[_0x13acd3('0xaab')]()});});}function _0x919e52(_0x124813){const _0x300e21=_0x33ba53;return _0x514674[_0x300e21('0x21d9')]['unpause']({'id':_0x124813['id']})[_0x300e21('0x1549')][_0x300e21('0x11bf')](function(_0x14ba79){const _0x165a2f=_0x300e21;_0x1f082a[_0x165a2f('0x1401')][_0x124813['id']]&&_0x36f548()['merge'](_0x1f082a[_0x165a2f('0x1401')][_0x124813['id']],_0x36f548()[_0x165a2f('0x258')](_0x14ba79,_0x468c8c)),_0x1f082a[_0x165a2f('0xaa0')][_0x124813['id']]&&_0x36f548()['merge'](_0x1f082a[_0x165a2f('0xaa0')][_0x124813['id']],_0x36f548()[_0x165a2f('0x258')](_0x14ba79,_0x468c8c)),_0x3ce2da(_0x1f082a[_0x165a2f('0x1401')][_0x124813['id']]);})[_0x300e21('0x151d')](function(_0x5d469f){const _0x124ece=_0x300e21;_0x46f4e1[_0x124ece('0x255')]({'title':_0x5d469f['status']?_0x124ece('0x574')+_0x5d469f[_0x124ece('0xff9')]+_0x124ece('0xb0b')+_0x5d469f[_0x124ece('0x212f')]:'api.staff.save','msg':_0x5d469f[_0x124ece('0x4e8')]?JSON[_0x124ece('0x3e')](_0x5d469f[_0x124ece('0x4e8')][_0x124ece('0x1b86')]):_0x5d469f[_0x124ece('0xaab')]()});});}function _0x2116b8(_0xf53d18){const _0x31a937=_0x33ba53;_0x503700[_0x31a937('0xb9')](_0x503700[_0x31a937('0xb30')]()[_0x31a937('0x728')](!![])['title']('Legend')['htmlContent'](_0x31a937('0x193c'))['ok']('Ok')[_0x31a937('0x1e25')](_0xf53d18));}function _0x450940(_0x3a06de,_0x313633){const _0x17bfcd=_0x33ba53;_0x503700[_0x17bfcd('0xb9')]({'controller':'AgentqueueaddController','controllerAs':'vm','templateUrl':_0x43dcce,'parent':angular['element'](_0x3f9391['body']),'targetEvent':_0x313633,'clickOutsideToClose':!![],'locals':{'agent':_0x3a06de,'agents':[],'channel':_0x17bfcd('0xb18'),'direction':_0x17bfcd('0x18a2'),'crudPermissions':_0x1f082a[_0x17bfcd('0xb25')]}});}function _0x118169(_0x39c10a){const _0x21a1f2=_0x33ba53;return _0x39c10a===_0x21a1f2('0x92a')||_0x39c10a==='*pause';}function _0x4f3ec5(_0xda9a75){const _0x5cbf17=_0x33ba53;return _0xda9a75===_0x5cbf17('0x92a');}function _0x3d7034(_0x4fce10){const _0x2eb636=_0x33ba53;return _0x4fce10===_0x2eb636('0x1050');}function _0x1a52f9(_0x3c0fea){const _0x1c8f8a=_0x33ba53;return _0x3c0fea==='idle'||_0x3c0fea==='unknown'||_0x3c0fea==='unavailable'||_0x3c0fea===_0x1c8f8a('0x19b')||_0x36f548()[_0x1c8f8a('0x1a80')](_0x3c0fea);}function _0xd4ee(_0x4aae13,_0x476d70){const _0x587dc2=_0x33ba53;if(_0x476d70==='voice'){if(_0x4aae13[_0x476d70+'Status']!=='idle')return _0x4aae13[_0x476d70+_0x587dc2('0x971')];if(_0x4aae13[_0x476d70+_0x587dc2('0x6c5')])return _0x4aae13[_0x476d70+_0x587dc2('0x971')]=_0x587dc2('0x92a'),_0x587dc2('0x92a');return _0x587dc2('0x1533');}else{if(_0x4aae13[_0x476d70+_0x587dc2('0x6c5')])return _0x4aae13[_0x476d70+_0x587dc2('0x971')]=_0x587dc2('0x92a'),_0x587dc2('0x92a');return _0x4aae13[_0x476d70+_0x587dc2('0x971')];}}function _0x3ce2da(_0x379575){const _0x2696b5=_0x33ba53;let _0x1d42db=_0x2696b5('0x6b0');if(_0x36f548()[_0x2696b5('0x1d1')]([_0xd4ee(_0x379575,'voice'),_0xd4ee(_0x379575,_0x2696b5('0x1800')),_0xd4ee(_0x379575,_0x2696b5('0x2030')),_0xd4ee(_0x379575,'openchannel'),_0xd4ee(_0x379575,_0x2696b5('0x4df')),_0xd4ee(_0x379575,_0x2696b5('0xe7c')),_0xd4ee(_0x379575,_0x2696b5('0x2104'))],_0x118169))_0x1d42db=_0x2696b5('0x92a');else{if(_0x36f548()[_0x2696b5('0x1cb3')]([_0xd4ee(_0x379575,_0x2696b5('0x1bc3')),_0xd4ee(_0x379575,_0x2696b5('0x1800')),_0xd4ee(_0x379575,_0x2696b5('0x2030')),_0xd4ee(_0x379575,'openchannel'),_0xd4ee(_0x379575,_0x2696b5('0x4df')),_0xd4ee(_0x379575,_0x2696b5('0xe7c')),_0xd4ee(_0x379575,'fax')],_0x118169))_0x1d42db=_0x2696b5('0x1050');else _0x36f548()['every']([_0xd4ee(_0x379575,_0x2696b5('0x1bc3')),_0xd4ee(_0x379575,_0x2696b5('0x1800')),_0xd4ee(_0x379575,_0x2696b5('0x2030')),_0xd4ee(_0x379575,_0x2696b5('0xb18')),_0xd4ee(_0x379575,_0x2696b5('0x4df')),_0xd4ee(_0x379575,_0x2696b5('0xe7c')),_0xd4ee(_0x379575,'fax')],_0x1a52f9)?_0x1d42db=_0x2696b5('0x1533'):_0x1d42db='busy';}_0x379575['globalStatus']!==_0x1d42db&&(_0x379575['globalStatus']=_0x1d42db,_0x379575[_0x2696b5('0x286f')]?(_0x379575[_0x2696b5('0x286f')]=![],_0x379575['globalStatusTime']=_0x118169(_0x1d42db)?_0x36f548()[_0x2696b5('0x17c2')](_0x57d4d1()(_0x379575[_0x2696b5('0x1e10')])['format']('x')):_0x36f548()[_0x2696b5('0x1275')]([_0x379575[_0x2696b5('0x24e5')],_0x379575['chatStatusTime'],_0x379575[_0x2696b5('0x1bab')],_0x379575[_0x2696b5('0x1ac6')],_0x379575[_0x2696b5('0x3ee')],_0x379575['openchannelStatusTime'],_0x379575[_0x2696b5('0x1ce2')]])):_0x379575['globalStatusTime']=_0x36f548()[_0x2696b5('0x17c2')](_0x57d4d1()()[_0x2696b5('0x1826')]('x')));}function _0x29dc67(_0xef5bba){const _0x494571=_0x33ba53,_0x38dbbf=_0x36f548()['startsWith'](_0x1f082a[_0x494571('0x1f2a')][_0x494571('0x59')],'-')?_0x494571('0x121a'):_0x494571('0x1875');return _0x36f548()[_0x494571('0x17d7')](_0xef5bba,[_0x1f082a[_0x494571('0x1f2a')][_0x494571('0x59')][_0x494571('0x814')]('-','')],[_0x38dbbf]);}function _0x176644(){const _0x319170=_0x33ba53;_0x1daf75&&(_0x2e0c58[_0x319170('0x26c9')](_0x1daf75),_0x1daf75=null);}function _0x3167cd(_0x22c864,_0x18b6b5){const _0x3d2892=_0x33ba53;return _0x514674[_0x3d2892('0x21d9')][_0x3d2892('0x5ab')]({'id':_0x22c864['id']},{'screenrecording':_0x18b6b5})[_0x3d2892('0x1549')]['catch'](function(_0x5f489d){const _0x5ddc27=_0x3d2892;_0x46f4e1[_0x5ddc27('0x255')]({'title':_0x5f489d['status']?'API:'+_0x5f489d['status']+'\x20-\x20'+_0x5f489d[_0x5ddc27('0x212f')]:_0x5ddc27('0x165b'),'msg':_0x5f489d['data']?JSON['stringify'](_0x5f489d[_0x5ddc27('0x4e8')][_0x5ddc27('0x1b86')]):_0x5f489d[_0x5ddc27('0xaab')]()});});}_0x106d3c[_0x33ba53('0x12d8')](_0x33ba53('0x4f7'),function(){const _0x51b0a3=_0x33ba53;_0x42c52d[_0x51b0a3('0x1b2e')](_0x51b0a3('0x1ce9')),_0x42c52d[_0x51b0a3('0x1b2e')](_0x51b0a3('0x15bd')),_0x42c52d[_0x51b0a3('0x1b2e')](_0x51b0a3('0x90c')),_0x42c52d[_0x51b0a3('0x1b2e')](_0x51b0a3('0xffb')),_0x176644();});}const _0x34ba24=_0x2a7ff2,_0x24e9ed=_0x351988['p']+_0x21d0f5('0x1158'),_0x1f8a81=_0x351988['p']+_0x21d0f5('0x2671');_0x234298['$inject']=['$scope',_0x21d0f5('0x17f5'),_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0x1b30'),_0x21d0f5('0x1fd'),_0x21d0f5('0x1de3'),'rpcQueues',_0x21d0f5('0x12a5'),_0x21d0f5('0x1d56'),'toasty',_0x21d0f5('0x25bc'),_0x21d0f5('0x1d63'),_0x21d0f5('0x1150')];function _0x234298(_0x179136,_0xa3fd6f,_0x379e39,_0x120665,_0x54564f,_0x4acdfe,_0x3403d1,_0x532ec8,_0x32b129,_0x44b882,_0x1cace2,_0x2ef8b1,_0x2df153,_0x4c3a62){const _0x4a2463=_0x21d0f5,_0x11eaee=this,_0x459ae9=['loggedIn',_0x4a2463('0x126a'),_0x4a2463('0x1491'),_0x4a2463('0x11ed'),_0x4a2463('0x17ba'),_0x4a2463('0x1fab'),_0x4a2463('0x1b86'),_0x4a2463('0x8b6'),_0x4a2463('0xcd7'),_0x4a2463('0x10d'),_0x4a2463('0xdb0')];_0x11eaee[_0x4a2463('0x32a')]=_0x4c3a62[_0x4a2463('0x2428')](),_0x11eaee[_0x4a2463('0x27d2')]=_0x3403d1['count']?_0x3403d1[_0x4a2463('0x27d2')]:0x0,_0x11eaee[_0x4a2463('0x1de3')]=_0x3403d1?_0x36f548()['keyBy'](_0x3403d1[_0x4a2463('0x19b2')]?_0x3403d1[_0x4a2463('0x19b2')]:[],'id'):{},_0x11eaee['rpcQueues']=_0x532ec8?_0x36f548()['keyBy'](_0x532ec8[_0x4a2463('0x19b2')]?_0x532ec8[_0x4a2463('0x19b2')]:[],'id'):{},_0x11eaee['userProfile']=_0x2ef8b1,_0x11eaee[_0x4a2463('0x1d63')]=_0x2df153&&_0x2df153[_0x4a2463('0x27d2')]==0x1?_0x2df153[_0x4a2463('0x19b2')][0x0]:null,_0x11eaee[_0x4a2463('0xb25')]=_0x4c3a62[_0x4a2463('0x1530')](_0x11eaee[_0x4a2463('0x1d63')]?_0x11eaee[_0x4a2463('0x1d63')][_0x4a2463('0xb25')]:null);_0x4c3a62[_0x4a2463('0x4ee')]('admin')?_0x11eaee[_0x4a2463('0x1f2a')]={'type':'inbound','sort':_0x4a2463('0x1c74'),'limit':0xa,'page':0x1}:_0x11eaee['query']={'id':_0x11eaee[_0x4a2463('0x32a')]['id'],'channel':_0x4a2463('0xb18'),'type':_0x4a2463('0x18a2'),'sort':'-updatedAt','limit':0xa,'page':0x1};_0x11eaee[_0x4a2463('0x2693')]=_0xdbe5cf,_0x11eaee['getQueues']=_0xccf2a5,_0x11eaee[_0x4a2463('0x2465')]=_0x92bc3e,_0x11eaee[_0x4a2463('0x20dd')]=_0x5a553d,_0x11eaee[_0x4a2463('0xdd9')]=_0x498658,_0x11eaee[_0x4a2463('0xc8f')]=_0x26de1d,_0x11eaee[_0x4a2463('0x17b7')]=_0x1add23,_0x11eaee[_0x4a2463('0xcaf')]=_0x1cee81,_0x11eaee[_0x4a2463('0x199c')]=_0x22390b,_0x11eaee['onLogin']=_0x20e16b,_0x11eaee[_0x4a2463('0x37f')]=_0x29b04e,_0x11eaee[_0x4a2463('0x224d')]=_0x380741,_0x11eaee[_0x4a2463('0x59')]=[],_0x36f548()[_0x4a2463('0x41e')](_0x11eaee[_0x4a2463('0x1de3')],function(_0x301e1c){const _0x57cc0d=_0x4a2463;_0x11eaee[_0x57cc0d('0x59')][_0x57cc0d('0x105d')](_0x301e1c['id']);}),_0x44b882['on'](_0x4a2463('0x808'),_0x11eaee[_0x4a2463('0xc8f')]),_0x44b882['on'](_0x4a2463('0x1bf4'),_0x11eaee[_0x4a2463('0x17b7')]),_0x44b882['on'](_0x4a2463('0x1556'),_0x11eaee[_0x4a2463('0xcaf')]),_0x44b882['on']('user:update',_0x11eaee['onPause']),_0x44b882['on']('userVoiceQueue:remove',_0x11eaee[_0x4a2463('0x37f')]),_0x44b882['on'](_0x4a2463('0x1929'),_0x11eaee[_0x4a2463('0x722')]);function _0x380741(){const _0x1a7a32=_0x4a2463,_0x53ab58=[];return _0x36f548()[_0x1a7a32('0x41e')](_0x11eaee['queues'],function(_0x32b589,_0x1c4a11){const _0x9b8218=_0x1a7a32;_0x32b589['paused']=0x0,_0x32b589['loggedInDb']=0x0,_0x11eaee[_0x9b8218('0x1de3')][_0x1c4a11][_0x9b8218('0x1401')]={},_0x53ab58['push'](_0x32b129[_0x9b8218('0x121f')]['getMembers']({'id':_0x1c4a11})[_0x9b8218('0x1549')]),_0x11eaee[_0x9b8218('0x1223')][_0x1c4a11]&&_0x36f548()[_0x9b8218('0x47b')](_0x32b589,_0x36f548()[_0x9b8218('0x258')](_0x11eaee[_0x9b8218('0x1223')][_0x1c4a11],_0x459ae9));}),_0x120665[_0x1a7a32('0x7c')](_0x53ab58)[_0x1a7a32('0x11bf')](function(_0x19aaf4){const _0x85dd95=_0x1a7a32;for(let _0x2ad942=0x0;_0x2ad942<_0x19aaf4[_0x85dd95('0x1e22')];_0x2ad942+=0x1){for(let _0x2fec92=0x0;_0x2fec92<_0x19aaf4[_0x2ad942][_0x85dd95('0x19b2')][_0x85dd95('0x1e22')];_0x2fec92++){_0x19aaf4[_0x2ad942][_0x85dd95('0x19b2')][_0x2fec92][_0x85dd95('0xdb0')]&&_0x11eaee[_0x85dd95('0x1de3')][_0x19aaf4[_0x2ad942]['rows'][_0x2fec92][_0x85dd95('0x205b')]]['paused']++,_0x11eaee[_0x85dd95('0x1de3')][_0x19aaf4[_0x2ad942][_0x85dd95('0x19b2')][_0x2fec92][_0x85dd95('0x205b')]]['loggedInDb']++,_0x11eaee[_0x85dd95('0x1de3')][_0x19aaf4[_0x2ad942]['rows'][_0x2fec92][_0x85dd95('0x205b')]][_0x85dd95('0x1401')][_0x19aaf4[_0x2ad942]['rows'][_0x2fec92]['UserId']]=_0x19aaf4[_0x2ad942][_0x85dd95('0x19b2')][_0x2fec92][_0x85dd95('0x205b')];}}})['catch'](function(_0x250dee){const _0x1214a6=_0x1a7a32;console[_0x1214a6('0x255')](_0x250dee);});}function _0x26de1d(_0x55943a){const _0x20a4eb=_0x4a2463;_0x11eaee['queues'][_0x55943a['id']]&&_0x36f548()[_0x20a4eb('0x47b')](_0x11eaee['queues'][_0x55943a['id']],_0x36f548()['pick'](_0x55943a,_0x459ae9));}function _0x1add23(_0x10f11a){const _0x25081e=_0x4a2463;_0x11eaee[_0x25081e('0x1de3')][_0x10f11a[_0x25081e('0x205b')]]&&_0x11eaee[_0x25081e('0x1de3')][_0x10f11a[_0x25081e('0x205b')]][_0x25081e('0x1e84')]++;}function _0x1cee81(_0x4cb496){const _0x194067=_0x4a2463;_0x11eaee[_0x194067('0x1de3')][_0x4cb496[_0x194067('0x205b')]]&&_0x11eaee[_0x194067('0x1de3')][_0x4cb496['OpenchannelQueueId']]['loggedInDb']--;}function _0x22390b(_0x2cb53e){const _0x54631d=_0x4a2463;console[_0x54631d('0xc78')](_0x54631d('0x199c'),_0x2cb53e);if(_0x2cb53e[_0x54631d('0x20d')])_0x36f548()[_0x54631d('0x41e')](_0x11eaee[_0x54631d('0x1de3')],function(_0x51c01c){const _0x2489b2=_0x54631d;_0x51c01c[_0x2489b2('0x1401')][_0x2cb53e['id']]&&(_0x51c01c[_0x2489b2('0xdb0')]+=0x1,console[_0x2489b2('0xc78')](_0x2489b2('0x92a')));});else!_0x2cb53e['voicePause']&&_0x36f548()[_0x54631d('0x41e')](_0x11eaee['queues'],function(_0x333397){const _0x3f930f=_0x54631d;_0x333397[_0x3f930f('0x1401')][_0x2cb53e['id']]&&(_0x333397[_0x3f930f('0xdb0')]>0x0&&(_0x333397['paused']-=0x1,console[_0x3f930f('0xc78')](_0x3f930f('0xb6f'))));});}function _0x20e16b(_0x573cc3){const _0x113b7f=_0x4a2463;console[_0x113b7f('0xc78')](_0x113b7f('0x107b'),_0x573cc3),_0x11eaee[_0x113b7f('0x1de3')][_0x573cc3[_0x113b7f('0x205b')]]&&(_0x11eaee[_0x113b7f('0x1de3')][_0x573cc3[_0x113b7f('0x205b')]][_0x113b7f('0x1e84')]+=0x1,_0x11eaee[_0x113b7f('0x1de3')][_0x573cc3['OpenchannelQueueId']][_0x113b7f('0x1401')][_0x573cc3[_0x113b7f('0x2342')]]=_0x573cc3[_0x113b7f('0x205b')]);}function _0x29b04e(_0x25e3a3){const _0x4d4398=_0x4a2463;console['log'](_0x4d4398('0x37f'),_0x25e3a3),_0x11eaee['queues'][_0x25e3a3[_0x4d4398('0x205b')]]&&_0x11eaee['queues'][_0x25e3a3[_0x4d4398('0x205b')]][_0x4d4398('0x1e84')]>0x0&&(_0x11eaee[_0x4d4398('0x1de3')][_0x25e3a3[_0x4d4398('0x205b')]]['loggedInDb']-=0x1,delete _0x11eaee['queues'][_0x25e3a3[_0x4d4398('0x205b')]][_0x4d4398('0x1401')][_0x25e3a3[_0x4d4398('0x2342')]]);}let _0x40508c=!![],_0x5ee945=0x1;_0x179136[_0x4a2463('0x2087')](_0x4a2463('0x842'),function(_0x1b5806,_0x203ce4){const _0x29aac2=_0x4a2463;_0x40508c?_0xa3fd6f(function(){_0x40508c=![];}):(!_0x203ce4&&(_0x5ee945=_0x11eaee[_0x29aac2('0x1f2a')][_0x29aac2('0x1c2')]),_0x1b5806!==_0x203ce4&&(_0x11eaee['query'][_0x29aac2('0x1c2')]=0x1),!_0x1b5806&&(_0x11eaee[_0x29aac2('0x1f2a')][_0x29aac2('0x1c2')]=_0x5ee945),_0x11eaee[_0x29aac2('0x373')]());});function _0xdbe5cf(_0x1a1037){const _0x1467b4=_0x4a2463;_0x11eaee[_0x1467b4('0x27d2')]=_0x1a1037[_0x1467b4('0x27d2')],_0x11eaee['queues']=_0x1a1037?_0x36f548()[_0x1467b4('0x2130')](_0x1a1037[_0x1467b4('0x19b2')]?_0x1a1037[_0x1467b4('0x19b2')]:[],'id'):{};if(_0x1a1037['rows']){_0x11eaee['order']=[];for(let _0x18dcfd=0x0;_0x18dcfd<_0x1a1037['rows'][_0x1467b4('0x1e22')];_0x18dcfd++){_0x11eaee[_0x1467b4('0x59')]['push'](_0x1a1037[_0x1467b4('0x19b2')][_0x18dcfd]['id']);}}_0x380741();}function _0xccf2a5(){const _0x2d14f5=_0x4a2463;_0x11eaee[_0x2d14f5('0x1f2a')][_0x2d14f5('0x1393')]=(_0x11eaee[_0x2d14f5('0x1f2a')]['page']-0x1)*_0x11eaee['query'][_0x2d14f5('0xd5c')],_0x4c3a62[_0x2d14f5('0x4ee')](_0x2d14f5('0xf45'))?_0x11eaee[_0x2d14f5('0x13f')]=_0x32b129['openchannelQueue'][_0x2d14f5('0xbaa')](_0x11eaee[_0x2d14f5('0x1f2a')],_0xdbe5cf)['$promise']:(_0x11eaee['query']['id']=_0x11eaee['userProfile']['id'],_0x11eaee[_0x2d14f5('0x1f2a')][_0x2d14f5('0xe6')]=_0x2d14f5('0xd29'),_0x11eaee[_0x2d14f5('0x13f')]=_0x32b129[_0x2d14f5('0x25bc')][_0x2d14f5('0x228e')](_0x11eaee['query'],_0xdbe5cf)[_0x2d14f5('0x1549')]);}function _0x92bc3e(_0x3af113,_0x4809f3){const _0x51cde3=_0x4a2463;_0x379e39[_0x51cde3('0xb9')]({'controller':_0x51cde3('0x69b'),'controllerAs':'vm','templateUrl':_0x24e9ed,'parent':angular[_0x51cde3('0x1e73')](_0x54564f['body']),'targetEvent':_0x3af113,'clickOutsideToClose':!![],'locals':{'openchannelQueue':_0x4809f3,'openchannelQueues':_0x36f548()[_0x51cde3('0x1643')](_0x11eaee[_0x51cde3('0x1de3')]),'license':null,'setting':null,'crudPermissions':_0x11eaee[_0x51cde3('0xb25')]}});}function _0x5a553d(_0x3c087e,_0x2943d4){const _0x22900d=_0x4a2463;_0x379e39[_0x22900d('0xb9')]({'controller':_0x22900d('0x129d'),'controllerAs':'vm','templateUrl':_0x1f8a81,'parent':angular[_0x22900d('0x1e73')](_0x54564f[_0x22900d('0x1d2')]),'targetEvent':_0x3c087e,'clickOutsideToClose':!![],'locals':{'openchannelQueue':_0x2943d4,'openchannelQueues':_0x11eaee['queues']?_0x11eaee[_0x22900d('0x1de3')][_0x22900d('0x19b2')]:[],'realtime':![],'crudPermissions':_0x11eaee[_0x22900d('0xb25')]}});}function _0x498658(_0x31ec10){const _0x12b5ee=_0x4a2463;return _0x32b129['openchannelQueue'][_0x12b5ee('0x5ab')](_0x31ec10)['$promise'][_0x12b5ee('0x11bf')](function(){const _0x11e428=_0x12b5ee;_0x1cace2[_0x11e428('0x2693')]({'title':'Queue\x20properly\x20updated!','msg':_0x31ec10[_0x11e428('0x1909')]?_0x31ec10[_0x11e428('0x1909')]+_0x11e428('0xd7'):''});})[_0x12b5ee('0x151d')](function(_0x178c60){const _0x383091=_0x12b5ee;_0x1cace2[_0x383091('0x255')]({'title':_0x383091('0xdc1'),'msg':_0x178c60[_0x383091('0x1b86')]});});}_0x179136[_0x4a2463('0x12d8')](_0x4a2463('0x4f7'),function(){const _0x3fa694=_0x4a2463;_0x44b882[_0x3fa694('0x1b2e')](_0x3fa694('0x808')),_0x44b882[_0x3fa694('0x1b2e')](_0x3fa694('0x1556')),_0x44b882[_0x3fa694('0x1b2e')](_0x3fa694('0x1bf4')),_0x44b882[_0x3fa694('0x1b2e')]('user:update'),_0x44b882[_0x3fa694('0x1b2e')](_0x3fa694('0x5c6')),_0x44b882[_0x3fa694('0x1b2e')](_0x3fa694('0x1929'));});}const _0x41f28e=_0x234298;function _0x389741(){const _0x1601bb=_0x21d0f5;return{'status':{'registered':'green-300-fg\x20icon-checkbox-marked-circle','unregistered':_0x1601bb('0x58e'),'lagged':_0x1601bb('0x58e'),'reachable':_0x1601bb('0x2747'),'unreachable':'red-300-fg\x20icon-close-circle','unknown':'grey-fg\x20icon-minus-circle'},'state':{'unknown':_0x1601bb('0x95b'),'not_inuse':_0x1601bb('0x8b2'),'inuse':_0x1601bb('0x52b'),'busy':'red-300-fg\x20icon-phone-locked','invalid':_0x1601bb('0x95b'),'unavailable':_0x1601bb('0x95b'),'ringing':'blue-300-fg\x20icon-phone-incoming','ringinuse':_0x1601bb('0x1df'),'onhold':_0x1601bb('0x142a')},'channelStatus':{'ring':_0x1601bb('0x1df'),'up':_0x1601bb('0x198'),'hangup':_0x1601bb('0x393')},'channelStatusOut':{'ring':_0x1601bb('0x27f5'),'up':_0x1601bb('0x198'),'hangup':_0x1601bb('0x393')}};}const _0x73f8f2=_0x389741;_0x3e9ca9[_0x21d0f5('0x1e9a')]=['$scope',_0x21d0f5('0xcbc'),'socket'];function _0x3e9ca9(_0x54f9f0,_0x1ae3ae,_0x255dde){const _0x38938b=_0x21d0f5,_0xb80a47=this;_0x255dde[_0x38938b('0x143e')](),_0x255dde[_0x38938b('0x196c')](),_0xb80a47[_0x38938b('0x1179')]=0x0;switch(_0x1ae3ae[_0x38938b('0x191')][_0x38938b('0x1909')]){case _0x38938b('0xb27'):_0xb80a47['selectedTab']=0x0;break;case'app.openchannel.realtime.queues':_0xb80a47['selectedTab']=0x1;break;default:_0xb80a47[_0x38938b('0x1179')]=0x0,_0x1ae3ae['go'](_0x38938b('0xb27'));}_0x54f9f0[_0x38938b('0x2087')](_0x38938b('0x14f1'),function(_0x190665,_0x42743d){const _0xd1bf59=_0x38938b;if(_0x190665!==_0x42743d)switch(_0x190665){case 0x0:_0x1ae3ae['go'](_0xd1bf59('0xb27'));break;case 0x1:_0x1ae3ae['go'](_0xd1bf59('0x801'));break;default:_0x1ae3ae['go'](_0xd1bf59('0xb27'));}});}const _0x4b43fc=_0x3e9ca9;_0x4061ea[_0x21d0f5('0x1e9a')]=['$stateProvider'];function _0x4061ea(_0x2b5742){const _0x2d77d8=_0x21d0f5;_0x2b5742[_0x2d77d8('0x2124')](_0x2d77d8('0x8e5'),{'url':'/realtime','views':{'content@app':{'templateUrl':_0x21a655,'controller':_0x2d77d8('0x24ba')}},'resolve':{'userProfile':[_0x2d77d8('0x218e'),_0x2d77d8('0x1150'),function(_0xdd80cd,_0x2cc1b4){const _0x43c055=_0x2d77d8;return _0x2cc1b4[_0x43c055('0x4ee')](_0x43c055('0xf45'))?null:_0xdd80cd[_0x43c055('0xa28')](_0x43c055('0x428'),{'fields':_0x43c055('0xd30'),'id':_0x2cc1b4[_0x43c055('0x2428')]()[_0x43c055('0x781')]});}],'userProfileSection':['apiResolver','Auth',function(_0x42da89,_0xc39885){const _0x675956=_0x2d77d8;return _0xc39885[_0x675956('0x4ee')](_0x675956('0xf45'))?null:_0x42da89[_0x675956('0xa28')](_0x675956('0x2762'),{'fields':_0x675956('0x36d'),'userProfileId':_0xc39885['getCurrentUser']()[_0x675956('0x781')],'sectionId':0x32a});}]},'authenticate':!![],'permissionId':0x32a})[_0x2d77d8('0x2124')]('app.openchannel.realtime.agents',{'url':_0x2d77d8('0x2260'),'controller':_0x2d77d8('0x2262'),'templateUrl':_0x1323cb,'resolve':{'pauses':['apiResolver',function(_0x4404f9){const _0x55d44b=_0x2d77d8;return _0x4404f9[_0x55d44b('0xa28')]('pause@get',{'nolimit':!![]});}],'agents':[_0x2d77d8('0x218e'),_0x2d77d8('0x1150'),function(_0xae8cbc,_0x57089e){const _0x2d1991=_0x2d77d8;return _0x57089e[_0x2d1991('0x4ee')](_0x2d1991('0xf45'))?_0xae8cbc[_0x2d1991('0xa28')](_0x2d1991('0x2166'),{'fields':_0x2d1991('0xd80'),'role':_0x2d1991('0x18c4'),'sort':_0x2d1991('0x27af'),'nolimit':!![]}):_0xae8cbc[_0x2d1991('0xa28')](_0x2d1991('0xb0d'),{'id':_0x57089e[_0x2d1991('0x2428')]()[_0x2d1991('0x781')],'section':_0x2d1991('0x4b1'),'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':_0x2d1991('0x27af'),'nolimit':!![]});}],'userProfile':[_0x2d77d8('0x218e'),'Auth',function(_0x578841,_0x4b4ecc){const _0x3709ac=_0x2d77d8;return _0x4b4ecc[_0x3709ac('0x4ee')](_0x3709ac('0xf45'))?null:_0x578841[_0x3709ac('0xa28')](_0x3709ac('0x428'),{'fields':_0x3709ac('0xd30'),'id':_0x4b4ecc[_0x3709ac('0x2428')]()[_0x3709ac('0x781')]});}],'userProfileSection':[_0x2d77d8('0x218e'),'Auth',function(_0x9e3fc0,_0x216629){const _0x22eaf4=_0x2d77d8;return _0x216629[_0x22eaf4('0x4ee')](_0x22eaf4('0xf45'))?null:_0x9e3fc0['resolve']('userProfileSection@get',{'fields':_0x22eaf4('0x36d'),'userProfileId':_0x216629[_0x22eaf4('0x2428')]()[_0x22eaf4('0x781')],'sectionId':0xca});}],'rpcAgents':[_0x2d77d8('0x218e'),function(_0x25d994){const _0x5bf35c=_0x2d77d8;return _0x25d994[_0x5bf35c('0xa28')]('rpc@getAgents');}]},'authenticate':!![],'permissionId':0x32a})[_0x2d77d8('0x2124')]('app.openchannel.realtime.queues',{'url':_0x2d77d8('0xb98'),'controller':_0x2d77d8('0x141b'),'templateUrl':_0x2a77bd,'resolve':{'queues':['apiResolver',_0x2d77d8('0x1150'),function(_0x545de8,_0x309dda){const _0x52c35b=_0x2d77d8;return _0x309dda[_0x52c35b('0x4ee')]('admin')?_0x545de8[_0x52c35b('0xa28')](_0x52c35b('0x6d9'),{'type':_0x52c35b('0x18a2'),'sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x545de8[_0x52c35b('0xa28')](_0x52c35b('0xb0d'),{'id':_0x309dda[_0x52c35b('0x2428')]()[_0x52c35b('0x781')],'section':_0x52c35b('0xd29'),'channel':_0x52c35b('0xb18'),'type':_0x52c35b('0x18a2'),'sort':_0x52c35b('0x1c74'),'limit':0xa,'page':0x1});}],'userProfile':[_0x2d77d8('0x218e'),_0x2d77d8('0x1150'),function(_0x5caed0,_0x48f440){const _0x5ed9db=_0x2d77d8;return _0x48f440['hasRole'](_0x5ed9db('0xf45'))?null:_0x5caed0[_0x5ed9db('0xa28')](_0x5ed9db('0x428'),{'fields':'id,name,crudPermissions','id':_0x48f440['getCurrentUser']()[_0x5ed9db('0x781')]});}],'userProfileSection':[_0x2d77d8('0x218e'),'Auth',function(_0x5c3348,_0x4cb9a7){const _0x5cf8dd=_0x2d77d8;return _0x4cb9a7[_0x5cf8dd('0x4ee')](_0x5cf8dd('0xf45'))?null:_0x5c3348['resolve']('userProfileSection@get',{'fields':_0x5cf8dd('0x36d'),'userProfileId':_0x4cb9a7[_0x5cf8dd('0x2428')]()['userProfileId'],'sectionId':0x321});}],'rpcQueues':[_0x2d77d8('0x218e'),function(_0x61403d){return _0x61403d['resolve']('rpc@getOpenchannelQueues');}]},'authenticate':!![],'permissionId':0x32a});}angular[_0x21d0f5('0x2768')](_0x21d0f5('0x8e5'),[])[_0x21d0f5('0x53a')](_0x4061ea)[_0x21d0f5('0x23eb')](_0x21d0f5('0x24cd'),_0x34ba24)['controller']('QueuesOpenchannelRealtimeController',_0x41f28e)['factory'](_0x21d0f5('0x927'),_0x73f8f2)[_0x21d0f5('0x23eb')]('OpenchannelRealtimeController',_0x4b43fc);const _0x360948=_0x351988['p']+_0x21d0f5('0x258e'),_0x3ddf87=_0x351988['p']+_0x21d0f5('0x214'),_0x5ece45=_0x351988['p']+'src/js/modules/main/apps/openchannel/views/openchannelAccounts/openchannelAccounts.html/openchannelAccounts.html',_0x2e70ab=_0x351988['p']+_0x21d0f5('0xd1b');_0x3eaddc['$inject']=[_0x21d0f5('0x1b80'),_0x21d0f5('0xcbc'),_0x21d0f5('0x16b9'),_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0xb6b'),_0x21d0f5('0x142d'),_0x21d0f5('0x1518'),_0x21d0f5('0x13cb'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1'),_0x21d0f5('0xb25')];function _0x3eaddc(_0x2c39bd,_0x3c5b2a,_0x35a50c,_0x489f12,_0x118499,_0x5ca693,_0xb0672a,_0x45080f,_0x3599c0,_0x52b3d7,_0x40209c,_0xfa969d,_0x54590a,_0x8914ea){const _0x5cd305=_0x21d0f5,_0x6db73a=this;_0x6db73a[_0x5cd305('0x32a')]=_0x40209c['getCurrentUser'](),_0x6db73a['errors']=[],_0x6db73a[_0x5cd305('0x23e1')]=_0x54590a,_0x6db73a[_0x5cd305('0x17ff')]=_0xfa969d,_0x6db73a[_0x5cd305('0xb25')]=_0x8914ea,_0x6db73a[_0x5cd305('0x2c9')]={},_0x6db73a[_0x5cd305('0x2834')]=_0x6db73a['setting']&&_0x6db73a[_0x5cd305('0x23e1')][_0x5cd305('0x1d4')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x6db73a[_0x5cd305('0x134b')]=_0x5cd305('0x187c'),_0x6db73a[_0x5cd305('0x13cb')]=angular[_0x5cd305('0x6fb')](_0x3599c0),_0x6db73a[_0x5cd305('0x1518')]=_0x45080f,_0x6db73a[_0x5cd305('0x11f9')]=![];!_0x6db73a[_0x5cd305('0x13cb')]&&(_0x6db73a[_0x5cd305('0x13cb')]={'waitForTheAssignedAgent':0xa,'notificationSound':!![],'queueTransferTimeout':0x12c,'agentTransferTimeout':0x12c},_0x6db73a['title']=_0x5cd305('0x165'),_0x6db73a[_0x5cd305('0x11f9')]=!![]);_0x3c5b2a[_0x5cd305('0x1ab3')]['id']&&(_0x6db73a[_0x5cd305('0x13cb')][_0x5cd305('0x2863')]=_0x3c5b2a[_0x5cd305('0x1ab3')]['id']);_0x6db73a[_0x5cd305('0x14c2')]=_0x3eb209,_0x6db73a[_0x5cd305('0xf2b')]=_0x3225bb,_0x6db73a[_0x5cd305('0x16dc')]=_0x2f07dd,_0x6db73a['getDateFromString']=_0x24e77a,_0x6db73a['closeDialog']=_0x63b100,_0x40209c[_0x5cd305('0x4ee')](_0x5cd305('0xf45'))?_0x52b3d7[_0x5cd305('0xbef')][_0x5cd305('0xbaa')]({'fields':_0x5cd305('0x721'),'sort':'name'})[_0x5cd305('0x1549')][_0x5cd305('0x11bf')](function(_0x21d359){const _0x15d7e4=_0x5cd305;_0x6db73a[_0x15d7e4('0x2410')]=_0x21d359[_0x15d7e4('0x19b2')]||[];})[_0x5cd305('0x151d')](function(_0x3fd505){const _0x11c6be=_0x5cd305;_0xb0672a[_0x11c6be('0x255')]({'title':_0x3fd505[_0x11c6be('0xff9')]?'API:'+_0x3fd505[_0x11c6be('0xff9')]+_0x11c6be('0xb0b')+_0x3fd505[_0x11c6be('0x212f')]:'SYSTEM:GET_LISTS','msg':_0x3fd505[_0x11c6be('0x4e8')]?JSON['stringify'](_0x3fd505[_0x11c6be('0x4e8')]):_0x3fd505['toString']()});}):_0x52b3d7[_0x5cd305('0xbef')][_0x5cd305('0xbaa')]({'fields':_0x5cd305('0x721'),'sort':_0x5cd305('0x1909')})[_0x5cd305('0x1549')][_0x5cd305('0x11bf')](function(_0x107c3b){_0x6db73a['lists']=_0x107c3b['rows']||[];})['then'](function(){const _0x4b6caf=_0x5cd305;return _0x52b3d7[_0x4b6caf('0x1d63')][_0x4b6caf('0xbaa')]({'userProfileId':_0x6db73a[_0x4b6caf('0x32a')][_0x4b6caf('0x781')],'sectionId':0x12d})[_0x4b6caf('0x1549')];})['then'](function(_0x9c2d22){const _0x3f480a=_0x5cd305,_0x58064b=_0x9c2d22&&_0x9c2d22['rows']?_0x9c2d22[_0x3f480a('0x19b2')][0x0]:null;if(!_0x58064b){const _0x229fa1=[];let _0x6542e8=null;_0x6db73a[_0x3f480a('0x13cb')]&&(_0x6542e8=_0x36f548()[_0x3f480a('0x1ad4')](_0x6db73a['lists'],{'id':Number(_0x6db73a[_0x3f480a('0x13cb')][_0x3f480a('0x1e91')])}));for(let _0x5d617a=0x0;_0x5d617a<_0x6db73a[_0x3f480a('0x2410')][_0x3f480a('0x1e22')];_0x5d617a++){_0x6542e8&&_0x6db73a[_0x3f480a('0x2410')][_0x5d617a]['id']===_0x6542e8['id']&&(_0x6db73a[_0x3f480a('0x2410')][_0x5d617a][_0x3f480a('0x254a')]=![],_0x229fa1['push'](_0x6db73a[_0x3f480a('0x2410')][_0x5d617a]));}_0x6db73a[_0x3f480a('0x2410')]=_0x229fa1;}else{if(!_0x58064b[_0x3f480a('0xf11')])return _0x52b3d7[_0x3f480a('0x26d1')][_0x3f480a('0xbaa')]({'sectionId':_0x58064b['id']})[_0x3f480a('0x1549')][_0x3f480a('0x11bf')](function(_0xb4dfc6){const _0x33883f=_0x3f480a,_0x3f1b6b=_0x36f548()[_0x33883f('0x2171')](_0xb4dfc6[_0x33883f('0x19b2')],function(_0xf79c24){const _0x90ae04=_0x33883f;return _0x36f548()[_0x90ae04('0x1ad4')](_0x6db73a['lists'],{'id':_0xf79c24['resourceId']});});let _0xb01a51=null;_0x6db73a['openchannelAccount']&&(_0xb01a51=_0x36f548()[_0x33883f('0x1ad4')](_0x6db73a[_0x33883f('0x2410')],{'id':Number(_0x6db73a['openchannelAccount']['ListId'])}));if(_0xb01a51&&!_0x36f548()[_0x33883f('0x1cb3')](_0x3f1b6b,['id',_0xb01a51['id']])){const _0x12d9e1=_0x36f548()['find'](_0x6db73a[_0x33883f('0x2410')],{'id':_0xb01a51['id']});_0x12d9e1['canSelect']=![],_0x3f1b6b[_0x33883f('0x105d')](_0x12d9e1);}_0x6db73a[_0x33883f('0x2410')]=_0x3f1b6b;});}})[_0x5cd305('0x151d')](function(_0x1613ea){const _0x5b00f9=_0x5cd305;_0xb0672a[_0x5b00f9('0x255')]({'title':_0x1613ea['status']?'API:'+_0x1613ea['status']+'\x20-\x20'+_0x1613ea[_0x5b00f9('0x212f')]:_0x5b00f9('0xb71'),'msg':_0x1613ea[_0x5b00f9('0x4e8')]?JSON['stringify'](_0x1613ea[_0x5b00f9('0x4e8')]):_0x1613ea['toString']()});});function _0x3eb209(){const _0x22265d=_0x5cd305;_0x6db73a[_0x22265d('0x120f')]=[],_0x52b3d7[_0x22265d('0x13cb')][_0x22265d('0x259')](_0x6db73a['openchannelAccount'])[_0x22265d('0x1549')]['then'](function(_0x394fbd){const _0x4c598b=_0x22265d;_0x6db73a[_0x4c598b('0x1518')][_0x4c598b('0x880')](_0x394fbd[_0x4c598b('0x2866')]()),_0xb0672a[_0x4c598b('0x2693')]({'title':_0x4c598b('0x651'),'msg':_0x6db73a[_0x4c598b('0x13cb')]['name']?_0x6db73a[_0x4c598b('0x13cb')][_0x4c598b('0x1909')]+_0x4c598b('0x7fb'):''}),_0x63b100(_0x394fbd);})['catch'](function(_0x13010f){const _0x2a6232=_0x22265d;if(_0x13010f['data']&&_0x13010f[_0x2a6232('0x4e8')][_0x2a6232('0x120f')]&&_0x13010f[_0x2a6232('0x4e8')]['errors']['length']){_0x6db73a['errors']=_0x13010f['data'][_0x2a6232('0x120f')]||[{'message':_0x13010f[_0x2a6232('0xaab')](),'type':_0x2a6232('0x10d5')}];for(let _0x4ab7ac=0x0;_0x4ab7ac<_0x13010f[_0x2a6232('0x4e8')][_0x2a6232('0x120f')]['length'];_0x4ab7ac+=0x1){_0xb0672a['error']({'title':_0x13010f['data'][_0x2a6232('0x120f')][_0x4ab7ac][_0x2a6232('0x19fd')],'msg':_0x13010f[_0x2a6232('0x4e8')][_0x2a6232('0x120f')][_0x4ab7ac][_0x2a6232('0x1b86')]});}}else _0xb0672a[_0x2a6232('0x255')]({'title':_0x13010f[_0x2a6232('0xff9')]?_0x2a6232('0x574')+_0x13010f['status']+_0x2a6232('0xb0b')+_0x13010f['statusText']:_0x2a6232('0x10d5'),'msg':_0x13010f['data']?JSON['stringify'](_0x13010f[_0x2a6232('0x4e8')][_0x2a6232('0x1b86')]):_0x13010f[_0x2a6232('0xaab')]()});});}function _0x3225bb(){const _0x4bcceb=_0x5cd305;_0x6db73a[_0x4bcceb('0x120f')]=[],_0x52b3d7[_0x4bcceb('0x13cb')][_0x4bcceb('0x5ab')]({'id':_0x6db73a[_0x4bcceb('0x13cb')]['id']},_0x6db73a['openchannelAccount'])[_0x4bcceb('0x1549')][_0x4bcceb('0x11bf')](function(_0x6051c4){const _0x45e65d=_0x4bcceb,_0x2135df=_0x36f548()['find'](_0x6db73a[_0x45e65d('0x1518')],{'id':_0x6051c4['id']});_0x2135df&&_0x36f548()['merge'](_0x2135df,_0x36f548()[_0x45e65d('0x258')](_0x6051c4[_0x45e65d('0x2866')](),_0x36f548()[_0x45e65d('0xe22')](_0x2135df))),_0xb0672a[_0x45e65d('0x2693')]({'title':'OpenchannelAccount\x20properly\x20saved!','msg':_0x6db73a[_0x45e65d('0x13cb')][_0x45e65d('0x1909')]?_0x6db73a[_0x45e65d('0x13cb')][_0x45e65d('0x1909')]+_0x45e65d('0x1a78'):''}),_0x63b100(_0x6051c4);})[_0x4bcceb('0x151d')](function(_0x2d50bf){const _0x5ecebc=_0x4bcceb;if(_0x2d50bf[_0x5ecebc('0x4e8')]&&_0x2d50bf['data'][_0x5ecebc('0x120f')]&&_0x2d50bf[_0x5ecebc('0x4e8')][_0x5ecebc('0x120f')][_0x5ecebc('0x1e22')]){_0x6db73a['errors']=_0x2d50bf[_0x5ecebc('0x4e8')][_0x5ecebc('0x120f')]||[{'message':_0x2d50bf[_0x5ecebc('0xaab')](),'type':'api.openchannelAccount.update'}];for(let _0x19e078=0x0;_0x19e078<_0x2d50bf[_0x5ecebc('0x4e8')][_0x5ecebc('0x120f')]['length'];_0x19e078++){_0xb0672a[_0x5ecebc('0x255')]({'title':_0x2d50bf[_0x5ecebc('0x4e8')]['errors'][_0x19e078]['type'],'msg':_0x2d50bf['data'][_0x5ecebc('0x120f')][_0x19e078]['message']});}}else _0xb0672a['error']({'title':_0x2d50bf[_0x5ecebc('0xff9')]?_0x5ecebc('0x574')+_0x2d50bf[_0x5ecebc('0xff9')]+_0x5ecebc('0xb0b')+_0x2d50bf['statusText']:_0x5ecebc('0x65a'),'msg':_0x2d50bf[_0x5ecebc('0x4e8')]?JSON[_0x5ecebc('0x3e')](_0x2d50bf['data'][_0x5ecebc('0x1b86')]):_0x2d50bf[_0x5ecebc('0xaab')]()});});}function _0x2f07dd(_0x4df8d1){const _0x4b2919=_0x5cd305;_0x6db73a[_0x4b2919('0x120f')]=[];const _0x3d3c6e=_0x489f12[_0x4b2919('0x132b')]()[_0x4b2919('0x134b')](_0x4b2919('0x1fa9'))[_0x4b2919('0x252a')]('The\x20openchannelAccount\x20will\x20be\x20deleted.')[_0x4b2919('0xb2e')]('Delete\x20OpenchannelAccount')['ok'](_0x4b2919('0x1167'))[_0x4b2919('0x26c9')](_0x4b2919('0x784'))['targetEvent'](_0x4df8d1);_0x489f12[_0x4b2919('0xb9')](_0x3d3c6e)[_0x4b2919('0x11bf')](function(){const _0x42d83c=_0x4b2919;_0x52b3d7[_0x42d83c('0x13cb')]['delete']({'id':_0x6db73a[_0x42d83c('0x13cb')]['id']})[_0x42d83c('0x1549')]['then'](function(){const _0x21be5e=_0x42d83c;_0x36f548()['remove'](_0x6db73a[_0x21be5e('0x1518')],{'id':_0x6db73a[_0x21be5e('0x13cb')]['id']}),_0xb0672a[_0x21be5e('0x2693')]({'title':_0x21be5e('0x1a6e'),'msg':(_0x6db73a[_0x21be5e('0x13cb')][_0x21be5e('0x1909')]||_0x21be5e('0x13cb'))+_0x21be5e('0x433')}),_0x63b100(_0x6db73a['openchannelAccount']);})[_0x42d83c('0x151d')](function(_0x23006d){const _0x32a1c7=_0x42d83c;if(_0x23006d[_0x32a1c7('0x4e8')]&&_0x23006d[_0x32a1c7('0x4e8')]['errors']&&_0x23006d[_0x32a1c7('0x4e8')][_0x32a1c7('0x120f')]['length']){_0x6db73a[_0x32a1c7('0x120f')]=_0x23006d[_0x32a1c7('0x4e8')][_0x32a1c7('0x120f')]||[{'message':_0x23006d[_0x32a1c7('0xaab')](),'type':_0x32a1c7('0x21e6')}];for(let _0x2ee868=0x0;_0x2ee868<_0x23006d['data']['errors'][_0x32a1c7('0x1e22')];_0x2ee868++){_0xb0672a['error']({'title':_0x23006d[_0x32a1c7('0x4e8')]['errors'][_0x2ee868][_0x32a1c7('0x19fd')],'msg':_0x23006d[_0x32a1c7('0x4e8')][_0x32a1c7('0x120f')][_0x2ee868][_0x32a1c7('0x1b86')]});}}else _0xb0672a['error']({'title':_0x23006d['status']?_0x32a1c7('0x574')+_0x23006d[_0x32a1c7('0xff9')]+'\x20-\x20'+_0x23006d[_0x32a1c7('0x212f')]:_0x32a1c7('0x21e6'),'msg':_0x23006d['data']?JSON['stringify'](_0x23006d[_0x32a1c7('0x4e8')][_0x32a1c7('0x1b86')]):_0x23006d[_0x32a1c7('0x1b86')]||_0x23006d[_0x32a1c7('0xaab')]()});});},function(){});}function _0x24e77a(_0xe843c9){return _0xe843c9===null?undefined:new Date(_0xe843c9);}function _0x63b100(_0x3365d8){const _0x14ff39=_0x5cd305;_0x489f12[_0x14ff39('0x237e')](_0x3365d8);}}const _0x2a10f3=_0x3eaddc,_0x5243d3=_0x351988['p']+'src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/agent/dialog.html/dialog.html',_0x5881f4=_0x351988['p']+_0x21d0f5('0x22ed'),_0x4d0970=_0x351988['p']+'src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/close/dialog.html/dialog.html',_0x4edefc=_0x351988['p']+'src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/gotoif/dialog.html/dialog.html',_0x121939=_0x351988['p']+'src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/gotop/dialog.html/dialog.html',_0x576727=_0x351988['p']+_0x21d0f5('0x625'),_0x3cd42c=_0x351988['p']+_0x21d0f5('0x105e'),_0x8afc1b=_0x351988['p']+_0x21d0f5('0x2433'),_0x4a422e=_0x351988['p']+'src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/system/dialog.html/dialog.html',_0x792c70=_0x351988['p']+_0x21d0f5('0x15c4');_0x5155ce[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x12a5'),_0x21d0f5('0x1ca2'),'$document','toasty',_0x21d0f5('0x1150')];const _0x3cca30={'agent':_0x5243d3,'autoreply':_0x5881f4,'close':_0x4d0970,'gotoif':_0x4edefc,'gotop':_0x121939,'interval':_0x576727,'noop':_0x3cd42c,'queue':_0x8afc1b,'system':_0x4a422e,'tag':_0x792c70};function _0x5155ce(_0x440a4c,_0xa3df7d,_0x18daa6,_0x41c98a,_0x4f6d45){const _0x1d6712=_0x21d0f5,_0x5829e2=this;_0x5829e2[_0x1d6712('0x32a')]=_0x4f6d45[_0x1d6712('0x2428')](),_0x5829e2[_0x1d6712('0x13cb')]={},_0x5829e2[_0x1d6712('0x26f3')]={'count':0x0,'rows':[]},_0x5829e2[_0x1d6712('0x12b8')]=[],_0x5829e2[_0x1d6712('0xb25')],_0x5829e2['query']={'sort':'priority'},_0x5829e2[_0x1d6712('0x1812')]=_0x36f548()[_0x1d6712('0x4a')](_0x36f548()[_0x1d6712('0xd39')]([{'app':_0x1d6712('0x185e'),'appType':'dialogflow','type':_0x1d6712('0x185e'),'icon':_0x1d6712('0x206d'),'interval':_0x1d6712('0x1830'),'isApp':!![],'fields':[{'title':'Key','name':_0x1d6712('0xa0c'),'type':_0x1d6712('0x25ed'),'required':!![],'param':0x0},{'title':_0x1d6712('0xeff'),'name':_0x1d6712('0xeff'),'type':_0x1d6712('0x2350'),'defaultValue':'\x27en\x27','values':[{'option':_0x1d6712('0xaa9'),'value':_0x1d6712('0x565')},{'option':_0x1d6712('0x1e7'),'value':_0x1d6712('0x55f')},{'option':'German','value':'\x27de\x27'},{'option':_0x1d6712('0x12cc'),'value':_0x1d6712('0x141c')},{'option':_0x1d6712('0x1f08'),'value':_0x1d6712('0x1537')},{'option':_0x1d6712('0x352'),'value':_0x1d6712('0x140e')},{'option':'Indonesian','value':_0x1d6712('0x149a')},{'option':'Japanese','value':_0x1d6712('0x1296')},{'option':_0x1d6712('0x768'),'value':'\x27ko\x27'},{'option':_0x1d6712('0x18fa'),'value':_0x1d6712('0x84')},{'option':_0x1d6712('0x210'),'value':_0x1d6712('0x19bb')},{'option':'Portuguese\x20(European)','value':_0x1d6712('0x1621')},{'option':'Portuguese\x20(Nrazilian)','value':_0x1d6712('0x1ad6')},{'option':_0x1d6712('0x1995'),'value':_0x1d6712('0x19dd')},{'option':_0x1d6712('0x52e'),'value':_0x1d6712('0x5f')},{'option':_0x1d6712('0x17ed'),'value':_0x1d6712('0x14e2')},{'option':_0x1d6712('0x2199'),'value':_0x1d6712('0x189f')},{'option':_0x1d6712('0x16e4'),'value':'\x27zh-CN\x27'},{'option':_0x1d6712('0x1b2'),'value':_0x1d6712('0x114b')},{'option':_0x1d6712('0x1f06'),'value':_0x1d6712('0x1c65')}],'required':!![],'param':0x1},{'title':_0x1d6712('0x1cbc'),'name':_0x1d6712('0x1cbc'),'type':'textarea','maxlength':0xff,'required':![],'param':0x2,'help':!![]}]},{'app':'dialogflowV2','appType':_0x1d6712('0x21a8'),'type':'dialogflowv2','icon':'icon-apps','interval':_0x1d6712('0x1830'),'isApp':!![],'fields':[{'title':_0x1d6712('0x24fa'),'name':_0x1d6712('0x20e'),'type':_0x1d6712('0x25ed'),'required':!![],'param':0x0},{'title':_0x1d6712('0x1353'),'name':_0x1d6712('0x1f91'),'type':'text','required':!![],'param':0x1},{'title':_0x1d6712('0xc1c'),'name':'privateKey','type':_0x1d6712('0x265f'),'required':!![],'param':0x2},{'title':_0x1d6712('0xeff'),'name':_0x1d6712('0xeff'),'type':'select','defaultValue':'\x27en\x27','values':[{'value':_0x1d6712('0x114b'),'option':_0x1d6712('0x2444')},{'value':_0x1d6712('0xd3e'),'option':_0x1d6712('0x16e4')},{'value':'\x27zh-TW\x27','option':'Chinese\x20(Traditional)'},{'value':_0x1d6712('0x565'),'option':_0x1d6712('0xaa9')},{'value':_0x1d6712('0x84'),'option':'Dutch'},{'value':_0x1d6712('0x55f'),'option':_0x1d6712('0x1e7')},{'value':_0x1d6712('0x1e99'),'option':_0x1d6712('0x2067')},{'value':'\x27en-CA\x27','option':_0x1d6712('0x1eb5')},{'value':_0x1d6712('0x1933'),'option':_0x1d6712('0x15af')},{'value':'\x27en-IN\x27','option':_0x1d6712('0xc14')},{'value':_0x1d6712('0x24d4'),'option':_0x1d6712('0x2623')},{'value':'\x27fr\x27','option':'French'},{'value':_0x1d6712('0x7d9'),'option':_0x1d6712('0x1404')},{'value':_0x1d6712('0x276e'),'option':'\x27France\x20(France)'},{'value':_0x1d6712('0x185b'),'option':'German'},{'value':_0x1d6712('0x25a9'),'option':'Hindi'},{'value':_0x1d6712('0x149a'),'option':_0x1d6712('0xea')},{'value':_0x1d6712('0x141c'),'option':_0x1d6712('0x12cc')},{'value':_0x1d6712('0x1296'),'option':_0x1d6712('0x1b3d')},{'value':_0x1d6712('0x1749'),'option':'Korean'},{'value':'\x27no\x27','option':_0x1d6712('0x210')},{'value':_0x1d6712('0x263e'),'option':_0x1d6712('0xab7')},{'value':'\x27pt-BR\x27','option':_0x1d6712('0x1476')},{'value':'\x27pt-PT\x27','option':_0x1d6712('0x1949')},{'value':_0x1d6712('0x19dd'),'option':_0x1d6712('0x1995')},{'value':_0x1d6712('0x1537'),'option':_0x1d6712('0x1f08')},{'value':_0x1d6712('0xb4c'),'option':_0x1d6712('0xc6c')},{'value':_0x1d6712('0x1314'),'option':_0x1d6712('0x452')},{'value':_0x1d6712('0x254d'),'option':_0x1d6712('0x52e')},{'value':_0x1d6712('0x14e2'),'option':_0x1d6712('0x17ed')},{'value':_0x1d6712('0x1da1'),'option':_0x1d6712('0x2122')},{'value':_0x1d6712('0x189f'),'option':'Ukrainian'}],'required':!![],'param':0x3},{'title':_0x1d6712('0x1cbc'),'name':'welcomemessage','type':_0x1d6712('0x265f'),'maxlength':0xff,'param':0x4,'help':!![]}]},{'app':_0x1d6712('0x102c'),'appType':_0x1d6712('0x102c'),'type':_0x1d6712('0x102c'),'icon':_0x1d6712('0x206d'),'interval':_0x1d6712('0x1830'),'isApp':!![],'fields':[{'title':_0x1d6712('0x1a82'),'name':_0x1d6712('0x1a82'),'type':_0x1d6712('0x25ed'),'required':!![],'param':0x0},{'title':'secretaccesskey','name':_0x1d6712('0x1422'),'type':'text','required':!![],'param':0x1},{'title':_0x1d6712('0x165a'),'name':'lexregion','type':'select','defaultValue':_0x1d6712('0xa80'),'values':[{'option':_0x1d6712('0x13be'),'value':_0x1d6712('0xa80')},{'option':_0x1d6712('0x27e6'),'value':_0x1d6712('0xa8')},{'option':_0x1d6712('0x1c40'),'value':_0x1d6712('0x17a6')},{'option':_0x1d6712('0x2704'),'value':'\x27ap-southeast-2\x27'}],'required':!![],'param':0x2},{'title':_0x1d6712('0x1e8f'),'name':_0x1d6712('0x1e8f'),'type':_0x1d6712('0x25ed'),'required':!![],'param':0x3},{'title':_0x1d6712('0x1cbc'),'name':_0x1d6712('0x1cbc'),'type':_0x1d6712('0x265f'),'maxlength':0xff,'required':![],'param':0x4,'help':!![]}]},{'app':_0x1d6712('0x1979'),'appType':_0x1d6712('0x507'),'types':[_0x1d6712('0x27e5'),_0x1d6712('0xa8d'),_0x1d6712('0x257d')],'fields':[],'isApp':![]},{'app':_0x1d6712('0x2b8'),'appType':'noop','type':_0x1d6712('0x2b8'),'icon':_0x1d6712('0x206d'),'interval':_0x1d6712('0x1830'),'required':!![],'isApp':!![],'fields':[{'title':_0x1d6712('0x255a'),'name':_0x1d6712('0x10cc'),'type':_0x1d6712('0x25ed'),'param':0x0}]},{'app':_0x1d6712('0x196d'),'appType':_0x1d6712('0x196d'),'type':_0x1d6712('0x196d'),'icon':_0x1d6712('0x206d'),'interval':_0x1d6712('0x1830'),'required':!![],'isApp':!![],'extraApi':[{'name':_0x1d6712('0x1700'),'field':{'name':_0x1d6712('0xb0'),'key':'name'},'route':_0x1d6712('0xb0'),'filters':{'fields':_0x1d6712('0x721'),'sort':_0x1d6712('0x1909'),'nolimit':!![]},'permissions':{'section':0x3f4}}],'fields':[{'title':'Command','name':_0x1d6712('0x1b9f'),'type':'text','required':!![],'param':0x0},{'title':_0x1d6712('0xb76'),'name':_0x1d6712('0xb0'),'type':_0x1d6712('0x108f'),'values':_0x1d6712('0x1700'),'value':_0x1d6712('0x1509'),'option':_0x1d6712('0x1509'),'defaultValues':[{'value':'\x27\x27','option':_0x1d6712('0x1a1a')}],'defaultValue':'\x27\x27','param':0x1}]},{'app':'gotop','appType':_0x1d6712('0x110d'),'type':'goto','icon':'icon-apps','interval':_0x1d6712('0x1830'),'isApp':!![],'fields':[{'title':'Priority','name':_0x1d6712('0x2804'),'type':_0x1d6712('0x139e'),'required':!![],'min':0x0,'param':0x0}]},{'app':_0x1d6712('0x7cf'),'appType':_0x1d6712('0x7cf'),'type':'gotoif','icon':'icon-apps','interval':_0x1d6712('0x1830'),'isApp':!![],'fields':[{'title':_0x1d6712('0x1c99'),'name':'condition','type':_0x1d6712('0x25ed'),'required':!![],'param':0x0},{'title':_0x1d6712('0x1deb'),'name':'truepriority','type':'number','min':0x1,'required':!![],'param':0x1},{'title':_0x1d6712('0x7ed'),'name':_0x1d6712('0x7ed'),'type':_0x1d6712('0x139e'),'min':0x1,'required':!![],'param':0x2}]},{'app':_0x1d6712('0x150b'),'appType':'queue','foreignKey':'OpenchannelQueueId','type':_0x1d6712('0x150b'),'icon':_0x1d6712('0x206d'),'interval':_0x1d6712('0x1830'),'isApp':!![],'extraApi':[{'name':_0x1d6712('0x1de3'),'field':{'name':_0x1d6712('0x150b'),'key':_0x1d6712('0x1909')},'route':_0x1d6712('0x121f'),'filters':{'fields':'id,name,type','sort':_0x1d6712('0x1909'),'nolimit':!![]},'permissions':{'section':0x321}}],'fields':[{'title':_0x1d6712('0x1c29'),'name':_0x1d6712('0x150b'),'type':_0x1d6712('0x108f'),'values':_0x1d6712('0x1de3'),'value':_0x1d6712('0x19d4'),'option':_0x1d6712('0x19d4'),'defaultValue':0x12c,'required':!![],'param':0x0},{'title':_0x1d6712('0x65'),'name':_0x1d6712('0xfbe'),'type':_0x1d6712('0x139e'),'max':0x20c49b,'min':0x0,'defaultValue':0x12c,'required':!![],'param':0x1}]},{'app':_0x1d6712('0x18c4'),'appType':'agent','type':_0x1d6712('0x18c4'),'foreignKey':_0x1d6712('0x2342'),'icon':_0x1d6712('0x206d'),'interval':_0x1d6712('0x1830'),'isApp':!![],'extraApi':[{'name':_0x1d6712('0x1401'),'field':{'name':_0x1d6712('0x18c4'),'key':'name'},'route':_0x1d6712('0x21d9'),'filters':{'fields':_0x1d6712('0x721'),'sort':'name','role':_0x1d6712('0x18c4'),'nolimit':!![]},'permissions':{'section':0xca}}],'fields':[{'title':_0x1d6712('0x701'),'name':_0x1d6712('0x18c4'),'type':_0x1d6712('0x108f'),'values':_0x1d6712('0x1401'),'value':_0x1d6712('0xf71'),'option':_0x1d6712('0xf71'),'required':!![],'param':0x0},{'title':_0x1d6712('0x65'),'name':_0x1d6712('0xfbe'),'type':_0x1d6712('0x139e'),'max':0x20c49b,'min':0x0,'required':!![],'defaultValue':0x1e,'param':0x1}]},{'app':'autoreply','appType':'autoreply','type':_0x1d6712('0x187b'),'icon':_0x1d6712('0x206d'),'interval':_0x1d6712('0x1830'),'isApp':!![],'fields':[{'title':_0x1d6712('0x663'),'name':_0x1d6712('0x663'),'type':'select','defaultValue':'1','values':[{'option':_0x1d6712('0x594'),'value':'1'},{'option':_0x1d6712('0xbf9'),'value':'0'}],'required':!![],'param':0x0},{'title':_0x1d6712('0x1823'),'name':_0x1d6712('0x25ed'),'type':_0x1d6712('0x265f'),'required':!![],'param':0x1}]},{'app':'close','appType':_0x1d6712('0x2132'),'type':_0x1d6712('0x2132'),'icon':_0x1d6712('0x206d'),'interval':_0x1d6712('0x1830'),'isApp':!![],'fields':[{'title':_0x1d6712('0x16e7'),'name':_0x1d6712('0x107a'),'type':'text','required':!![],'param':0x0}]},{'app':'tag','appType':_0x1d6712('0x1d73'),'type':'tag','foreignKey':'TagId','icon':'icon-apps','interval':'*,*,*,*','isApp':!![],'extraApi':[{'name':'tags','field':{'name':_0x1d6712('0x1d73'),'key':'name'},'route':'tag','filters':{'fields':_0x1d6712('0x721'),'sort':_0x1d6712('0x1909'),'nolimit':!![]},'permissions':{'section':0x3f0}}],'fields':[{'title':_0x1d6712('0x23ba'),'name':'tag','type':_0x1d6712('0x108f'),'values':'tags','value':_0x1d6712('0x6aa'),'option':_0x1d6712('0x6aa'),'required':!![],'param':0x0}]}],['app']),{'isApp':![]}),_0x5829e2[_0x1d6712('0x257d')]={'group':{'name':_0x1d6712('0x1525'),'pull':_0x1d6712('0x208b')},'animation':0x64,'sort':![]},_0x5829e2[_0x1d6712('0xb9b')]={'group':{'name':'opt2','put':_0x1d6712('0x1525')},'animation':0x64,'onAdd':function(_0x5bcfc2){const _0xb503e=_0x1d6712;_0x37103f(_0x5bcfc2,_0x5bcfc2[_0xb503e('0x384')]);},'onSort':function(){_0x5d8844();}},_0x5829e2['init']=_0x4e5fc7,_0x5829e2['deleteConfirm']=_0x4b47aa,_0x5829e2['getOpenchannelAccountApps']=_0x2c7564,_0x5829e2[_0x1d6712('0x20da')]=_0x37103f,_0x5829e2[_0x1d6712('0x1452')]=_0x5742b8,_0x5829e2[_0x1d6712('0x1987')]=_0x17e096,_0x5829e2['deleteSelectedOpenchannelAccountApps']=_0x301fdc,_0x5829e2['rewriteRouting']=_0x5d8844,_0x5829e2[_0x1d6712('0x431')]=_0x1eb5bd;function _0x4e5fc7(_0x972e7e,_0x4be49e){const _0x4e1a00=_0x1d6712;_0x5829e2['openchannelAccount']=_0x972e7e,_0x5829e2[_0x4e1a00('0xb25')]=typeof _0x4be49e!==_0x4e1a00('0x13e9')?_0x4be49e:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x5829e2[_0x4e1a00('0xb9b')][_0x4e1a00('0xa4b')]=!_0x5829e2['crudPermissions'][_0x4e1a00('0x25db')]?!![]:![],_0x5829e2[_0x4e1a00('0x1f2a')]['id']=_0x972e7e['id'],_0x5829e2[_0x4e1a00('0x1f2a')][_0x4e1a00('0x1210')]=!![],_0x5829e2[_0x4e1a00('0x1f2a')][_0x4e1a00('0x287')]=!![],_0x5829e2[_0x4e1a00('0x1369')](),_0x5829e2[_0x4e1a00('0x431')]();}function _0x4b47aa(_0x1beb7e,_0x326e54,_0x2946ed){const _0x31d005=_0x1d6712,_0x4c5848=_0xa3df7d[_0x31d005('0x132b')]()[_0x31d005('0x134b')](_0x31d005('0x93a'))[_0x31d005('0x1d03')](_0x31d005('0x2061')+_0x1beb7e['app']+_0x31d005('0x1c78')+_0x31d005('0x1a'))[_0x31d005('0xb2e')](_0x31d005('0x177'))[_0x31d005('0x1e25')](_0x2946ed)['ok']('OK')['cancel'](_0x31d005('0x772'));_0xa3df7d['show'](_0x4c5848)[_0x31d005('0x11bf')](function(){const _0x4b5553=_0x31d005;_0x5829e2[_0x4b5553('0x26f3')][_0x4b5553('0x19b2')][_0x4b5553('0x1ae')](_0x326e54,0x1),_0x5d8844();},function(){const _0x34cc60=_0x31d005;console[_0x34cc60('0xc78')](_0x34cc60('0x772'));});}function _0x37103f(_0x23b1bd,_0x45ec24){const _0x593103=_0x1d6712;if(_0x5829e2[_0x593103('0x26f3')][_0x593103('0x19b2')][_0x593103('0x1e22')]){const _0x97b592=_0x5829e2[_0x593103('0x26f3')]['rows'][_0x45ec24]?_0x5829e2[_0x593103('0x26f3')][_0x593103('0x19b2')][_0x45ec24]:_0x5829e2[_0x593103('0x26f3')][_0x593103('0x19b2')][0x0],_0x16205c=(_0x97b592['appType']||_0x97b592['app'])['toLowerCase']();_0xa3df7d[_0x593103('0xb9')]({'controller':_0x593103('0x2321')+_0x16205c+_0x593103('0xf3f'),'controllerAs':'vm','templateUrl':_0x3cca30[_0x16205c],'parent':angular[_0x593103('0x1e73')](_0x18daa6['body']),'targetEvent':_0x23b1bd,'clickOutsideToClose':!![],'locals':{'openchannelAccountApp':_0x97b592,'openchannelAccount':_0x5829e2[_0x593103('0x13cb')],'crudPermissions':_0x5829e2[_0x593103('0xb25')]}})[_0x593103('0x11bf')](function(_0x41e12f){const _0x132869=_0x593103;_0x41e12f&&(_0x41e12f['id']?_0x5829e2[_0x132869('0x26f3')][_0x132869('0x19b2')][_0x45ec24]=_0x41e12f:_0x5829e2[_0x132869('0x26f3')][_0x132869('0x19b2')][_0x132869('0x1ae')](_0x45ec24,0x0,_0x41e12f),_0x5d8844());})[_0x593103('0x151d')](function(_0x16c8cd){const _0x2e3e76=_0x593103;_0x16c8cd&&_0x41c98a[_0x2e3e76('0x255')]({'title':_0x16c8cd[_0x2e3e76('0xff9')]?_0x2e3e76('0x574')+_0x16c8cd['status']+_0x2e3e76('0xb0b')+_0x16c8cd[_0x2e3e76('0x212f')]:_0x2e3e76('0x154c'),'msg':_0x16c8cd[_0x2e3e76('0x4e8')]?JSON[_0x2e3e76('0x3e')](_0x16c8cd[_0x2e3e76('0x4e8')]):_0x16c8cd['toString']()});});}}function _0x5742b8(_0x3da30c,_0x20f709){const _0x8c78ee=_0x1d6712;if(_0x5829e2[_0x8c78ee('0x26f3')][_0x8c78ee('0x19b2')][_0x8c78ee('0x1e22')]){const _0xf5c41e=_0x5829e2['openchannelAccountApps'][_0x8c78ee('0x19b2')][_0x20f709]?_0x5829e2[_0x8c78ee('0x26f3')][_0x8c78ee('0x19b2')][_0x20f709]:_0x5829e2[_0x8c78ee('0x26f3')][_0x8c78ee('0x19b2')][0x0];_0xa3df7d['show']({'controller':'EditOpenchannelAccountAppintervalDialogController','controllerAs':'vm','templateUrl':_0x576727,'parent':angular[_0x8c78ee('0x1e73')](_0x18daa6[_0x8c78ee('0x1d2')]),'targetEvent':_0x3da30c,'clickOutsideToClose':!![],'locals':{'interval':{'interval':_0xf5c41e[_0x8c78ee('0x507')],'IntervalId':_0xf5c41e['IntervalId'],'application':!![]},'intervals':[],'crudPermissions':_0x5829e2[_0x8c78ee('0xb25')]}})[_0x8c78ee('0x11bf')](function(_0x52ecfb){const _0x3a5d3e=_0x8c78ee;_0x52ecfb&&(_0xf5c41e[_0x3a5d3e('0x507')]=_0x52ecfb[_0x3a5d3e('0x507')]||'*,*,*,*',_0xf5c41e[_0x3a5d3e('0x6b4')]=_0x52ecfb[_0x3a5d3e('0x6b4')]||null,_0x5d8844());});}}function _0x5d8844(){const _0x57ee57=_0x1d6712;let _0x295681=0x1,_0x357a3f=[];for(let _0x391582=0x0;_0x391582<_0x5829e2[_0x57ee57('0x26f3')][_0x57ee57('0x19b2')][_0x57ee57('0x1e22')];_0x391582++){const _0x1877be=_0x5829e2['openchannelAccountApps'][_0x57ee57('0x19b2')][_0x391582],_0x3e8e42=[],_0x4b169b=[];_0x1877be[_0x57ee57('0xe82')]=_0x1877be[_0x57ee57('0x507')]!==_0x57ee57('0x1830')?[_0x1877be[_0x57ee57('0x507')]]:_0x1877be[_0x57ee57('0x6b4')]?_0x36f548()[_0x57ee57('0x2171')](_0x36f548()[_0x57ee57('0xdb4')](_0x5829e2['intervals'][_0x57ee57('0x19b2')],{'IntervalId':_0x1877be[_0x57ee57('0x6b4')]}),'interval'):[],_0x1877be[_0x57ee57('0x1c87')]=_0x5829e2['openchannelAccount'][_0x57ee57('0x1c87')],_0x1877be[_0x57ee57('0x4c6')]=_0x5829e2[_0x57ee57('0x13cb')][_0x57ee57('0x4c6')],_0x1877be[_0x57ee57('0x19fd')]&&(_0x1877be['type']=_0x1877be[_0x57ee57('0x19fd')][_0x57ee57('0x20d5')]()),_0x1877be['priority']=_0x3e8e42[_0x57ee57('0x1e22')]?_0x36f548()[_0x57ee57('0x1093')](_0x3e8e42)[_0x57ee57('0x2804')]+0x1:_0x295681,_0x295681=(_0x4b169b[_0x57ee57('0x1e22')]?_0x36f548()[_0x57ee57('0x1093')](_0x4b169b)[_0x57ee57('0x2804')]:_0x1877be[_0x57ee57('0x2804')])+0x1,_0x357a3f=_0x36f548()[_0x57ee57('0x20bf')](_0x357a3f,_0x3e8e42,[_0x1877be],_0x4b169b);}_0x440a4c[_0x57ee57('0x13cb')][_0x57ee57('0x25ec')]({'id':_0x5829e2['openchannelAccount']['id']},_0x36f548()[_0x57ee57('0xd39')](_0x357a3f,_0x57ee57('0x2804')))[_0x57ee57('0x1549')][_0x57ee57('0x11bf')](function(_0x490c9d){const _0x38aa39=_0x57ee57;_0x5829e2[_0x38aa39('0x26f3')]['rows']=_0x490c9d['rows'];})[_0x57ee57('0x151d')](function(_0x2b8d5c){const _0x390421=_0x57ee57;console[_0x390421('0x255')](_0x2b8d5c);});}function _0x5990aa(_0x25df5c){const _0x1658d3=_0x1d6712;_0x5829e2[_0x1658d3('0x26f3')]=_0x25df5c||{'count':0x0,'rows':[]};}function _0x1eb5bd(){const _0x4e3447=_0x1d6712;return _0x440a4c[_0x4e3447('0x507')][_0x4e3447('0xbaa')]({'fields':_0x4e3447('0x17ae')})['$promise'][_0x4e3447('0x11bf')](function(_0x3aceba){const _0x91479=_0x4e3447;_0x5829e2[_0x91479('0xe82')]=_0x3aceba;})[_0x4e3447('0x151d')](function(_0x3f9255){const _0xae1dca=_0x4e3447;console[_0xae1dca('0x255')](_0x3f9255);});}function _0x2c7564(){const _0xa60fe2=_0x1d6712;_0x5829e2[_0xa60fe2('0x13f')]=_0x440a4c['openchannelAccount'][_0xa60fe2('0xc99')](_0x5829e2['query'],_0x5990aa)[_0xa60fe2('0x1549')];}function _0x17e096(_0x4e22cb){const _0x20f555=_0x1d6712;_0x36f548()[_0x20f555('0x14a5')](_0x5829e2['openchannelAccountApps'][_0x20f555('0x19b2')],{'id':_0x4e22cb['id']}),_0x5d8844(),_0x41c98a[_0x20f555('0x2693')]({'title':'App\x20deleted!','msg':_0x4e22cb[_0x20f555('0x18f5')]?_0x4e22cb['app']+'\x20has\x20been\x20deleted!':''});}function _0x301fdc(_0x532ccb){const _0x288fae=_0x1d6712,_0x464742=_0xa3df7d['confirm']()[_0x288fae('0x134b')](_0x288fae('0x2780'))[_0x288fae('0x1d03')](_0x288fae('0x2061')+_0x5829e2[_0x288fae('0x12b8')][_0x288fae('0x1e22')]+_0x288fae('0xac6')+_0x288fae('0x1a'))['ariaLabel'](_0x288fae('0x1aa4'))[_0x288fae('0x1e25')](_0x532ccb)['ok']('OK')[_0x288fae('0x26c9')](_0x288fae('0x772'));_0xa3df7d[_0x288fae('0xb9')](_0x464742)[_0x288fae('0x11bf')](function(){const _0x186fe9=_0x288fae;_0x5829e2[_0x186fe9('0x12b8')][_0x186fe9('0x1f88')](function(_0x1b1d21){const _0x4517b9=_0x186fe9;_0x36f548()['remove'](_0x5829e2[_0x4517b9('0x26f3')]['rows'],{'id':_0x1b1d21['id']});}),_0x5829e2['selectedOpenchannelAccountApps']=[],_0x5d8844();});}}const _0x3839a7=_0x5155ce;_0x3f59a2[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0x142d'),_0x21d0f5('0x12a5'),'openchannelAccount',_0x21d0f5('0x1518'),_0x21d0f5('0x25f9'),_0x21d0f5('0xb6b'),_0x21d0f5('0x1150'),_0x21d0f5('0xb25')];function _0x3f59a2(_0x293422,_0x2b7749,_0x3884e1,_0x630a15,_0x4e3a2e,_0x41ab14,_0x11f2f6,_0x2a7366,_0x4832e6,_0x1d373c){const _0xf47e2c=_0x21d0f5,_0x595caa=this;_0x595caa[_0xf47e2c('0x32a')]=_0x4832e6['getCurrentUser'](),_0x595caa[_0xf47e2c('0x13cb')]=_0x4e3a2e,_0x595caa['crudPermissions']=_0x1d373c,_0x595caa[_0xf47e2c('0x25f9')]=_0x11f2f6,_0x595caa[_0xf47e2c('0x22')]=[],_0x595caa['allowedItems']=[],_0x595caa[_0xf47e2c('0x26cc')]=[],_0x595caa[_0xf47e2c('0x1c6f')]=[],_0x595caa[_0xf47e2c('0x21ed')]=[],_0x595caa[_0xf47e2c('0x1eda')]=![],_0x595caa[_0xf47e2c('0x277c')]=_0x351c77,_0x595caa[_0xf47e2c('0x280')]=_0x71edf5,_0x595caa[_0xf47e2c('0xc4e')]=_0x201afe,_0x595caa[_0xf47e2c('0xec5')]={'readOnly':!_0x595caa[_0xf47e2c('0xb25')][_0xf47e2c('0x25db')],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0xf47e2c('0x1909'),'line1':_0xf47e2c('0x27af'),'line2':['name','internal'],'line3':'','labelAll':_0x2a7366[_0xf47e2c('0x10c2')](_0xf47e2c('0x250e')),'labelSelected':_0x2a7366[_0xf47e2c('0x10c2')](_0xf47e2c('0x24b4')),'transferCallback':function(){const _0x5f574b=_0xf47e2c,_0x49e0b4=_0x36f548()[_0x5f574b('0x1a1b')](_0x595caa[_0x5f574b('0x21ed')],_0x595caa[_0x5f574b('0x26cc')],'id');_0x595caa[_0x5f574b('0x1eda')]=_0x36f548()['isEmpty'](_0x49e0b4)?![]:!![];}};function _0x351c77(){const _0x5b4add=_0xf47e2c;return _0x4832e6['hasRole'](_0x5b4add('0xf45'))?_0x5b50ed()['catch'](function(_0x51d2e9){const _0x1ff01b=_0x5b4add;_0x3884e1[_0x1ff01b('0x255')]({'title':_0x51d2e9[_0x1ff01b('0xff9')]?_0x1ff01b('0x574')+_0x51d2e9[_0x1ff01b('0xff9')]+_0x1ff01b('0xb0b')+_0x51d2e9[_0x1ff01b('0x212f')]:_0x1ff01b('0x912'),'msg':_0x51d2e9[_0x1ff01b('0xff9')]?JSON[_0x1ff01b('0x3e')](_0x51d2e9[_0x1ff01b('0x4e8')]):_0x51d2e9['toString']()});}):_0x2ca431()[_0x5b4add('0x11bf')](function(_0x4009d0){return _0x595caa['section']=_0x4009d0,_0x5b50ed();})[_0x5b4add('0x151d')](function(_0x352ea4){const _0x38e180=_0x5b4add;_0x3884e1[_0x38e180('0x255')]({'title':_0x352ea4[_0x38e180('0xff9')]?_0x38e180('0x574')+_0x352ea4['status']+_0x38e180('0xb0b')+_0x352ea4[_0x38e180('0x212f')]:_0x38e180('0x912'),'msg':_0x352ea4['status']?JSON[_0x38e180('0x3e')](_0x352ea4['data']):_0x352ea4[_0x38e180('0xaab')]()});});}function _0x2ca431(){return _0x2b7749(function(_0x165cd3,_0x2894b3){const _0x5d828c=a0_0xaf0c;_0x630a15[_0x5d828c('0x1d63')][_0x5d828c('0xbaa')]({'userProfileId':_0x595caa[_0x5d828c('0x32a')][_0x5d828c('0x781')],'name':_0x5d828c('0x4b1')})[_0x5d828c('0x1549')]['then'](function(_0x578178){const _0x370c8f=_0x5d828c,_0x310eb0=_0x578178&&_0x578178['rows']?_0x578178[_0x370c8f('0x19b2')][0x0]:null;_0x165cd3(_0x310eb0);})[_0x5d828c('0x151d')](function(_0x183409){_0x2894b3(_0x183409);});});}function _0x5b50ed(){return _0x2b7749(function(_0x31892c,_0x18a7c4){const _0x204922=a0_0xaf0c;return _0x7bb5f4()[_0x204922('0x11bf')](function(_0x5f1f90){const _0x1ca049=_0x204922;return _0x595caa['items']=_0x5f1f90[_0x1ca049('0x19b2')]?_0x5f1f90[_0x1ca049('0x19b2')]:[],_0x4832e6[_0x1ca049('0x4ee')]('admin')?_0x5f1f90:_0x595caa[_0x1ca049('0xe6')]?_0x595caa[_0x1ca049('0xe6')][_0x1ca049('0xf11')]?_0x5f1f90:_0x151db0():null;})[_0x204922('0x11bf')](function(_0x4f9f17){const _0x4978be=_0x204922,_0x18ccb6=_0x4f9f17&&_0x4f9f17['rows']?_0x4f9f17[_0x4978be('0x19b2')]:[];return _0x595caa[_0x4978be('0x63')]=_0x36f548()[_0x4978be('0x2171')](_0x18ccb6,function(_0x1db7cd){const _0x55e73d=_0x4978be;return _0x36f548()['find'](_0x595caa[_0x55e73d('0x22')],{'id':_0x4832e6[_0x55e73d('0x4ee')](_0x55e73d('0xf45'))||_0x595caa[_0x55e73d('0xe6')][_0x55e73d('0xf11')]?_0x1db7cd['id']:_0x1db7cd[_0x55e73d('0x15a5')]});}),_0x595caa['startingAllowedItems']=angular[_0x4978be('0x6fb')](_0x595caa[_0x4978be('0x63')]),_0x595caa['items']['forEach'](function(_0x26c188){const _0x4136db=_0x4978be,_0x13f60c=_0x36f548()[_0x4136db('0x1ad4')](_0x595caa['allowedItems'],{'id':_0x26c188['id']});_0x4832e6['hasRole']('admin')?_0x26c188['isValid']=!![]:_0x26c188[_0x4136db('0xde9')]=typeof _0x13f60c!==_0x4136db('0x13e9')?!![]:![];}),_0xd6779c();})[_0x204922('0x11bf')](function(_0x301329){const _0x27b576=_0x204922,_0x2f3d9a=_0x301329&&_0x301329[_0x27b576('0x19b2')]?_0x301329[_0x27b576('0x19b2')]:[];_0x595caa[_0x27b576('0x26cc')]=_0x36f548()['map'](_0x2f3d9a,function(_0x2bcaf7){const _0xce5088=_0x27b576,_0x2655c2=_0x36f548()[_0xce5088('0x1ad4')](_0x595caa['items'],{'id':_0x2bcaf7['id']});return _0x2655c2['penalty']=_0x2bcaf7[_0xce5088('0x2070')]?_0xce5088('0x1caa')+_0x2bcaf7[_0xce5088('0x2070')]['penalty']:'',_0x2655c2[_0xce5088('0x1a04')]=typeof _0x2bcaf7['internal']!==_0xce5088('0x13e9')?'<'+_0x2bcaf7[_0xce5088('0x1a04')]+'>':'',_0x2655c2;}),_0x595caa[_0x27b576('0x21ed')]=angular['copy'](_0x595caa[_0x27b576('0x26cc')]),_0x595caa[_0x27b576('0xec5')][_0x27b576('0x26cc')]=_0x595caa[_0x27b576('0x26cc')],_0x595caa[_0x27b576('0xec5')][_0x27b576('0x22')]=_0x36f548()[_0x27b576('0x2753')](_0x595caa[_0x27b576('0x63')],_0x595caa[_0x27b576('0xec5')]['selectedItems'],'id'),_0x31892c();})[_0x204922('0x151d')](function(_0x336add){_0x18a7c4(_0x336add);});});}function _0x151db0(){return _0x2b7749(function(_0x44d732,_0x98033a){const _0x555740=a0_0xaf0c;return _0x630a15[_0x555740('0x26d1')][_0x555740('0xbaa')]({'sectionId':_0x595caa[_0x555740('0xe6')]['id'],'nolimit':!![]})[_0x555740('0x1549')][_0x555740('0x11bf')](function(_0x54e1b8){_0x44d732(_0x54e1b8);})['catch'](function(_0x1657c1){_0x98033a(_0x1657c1);});});}function _0xd6779c(){return _0x2b7749(function(_0x18073e,_0x45e614){const _0x5eaadd=a0_0xaf0c;return _0x630a15['openchannelAccount'][_0x5eaadd('0x2783')]({'id':_0x595caa[_0x5eaadd('0x13cb')]['id'],'fields':_0x5eaadd('0x13d3'),'nolimit':!![],'role':'agent'})['$promise'][_0x5eaadd('0x11bf')](function(_0x175261){_0x18073e(_0x175261);})[_0x5eaadd('0x151d')](function(_0x8eb5c1){_0x45e614(_0x8eb5c1);});});}function _0x7bb5f4(){return _0x2b7749(function(_0x2d1c9b,_0xa3a08c){const _0x10be62=a0_0xaf0c;return _0x630a15['user'][_0x10be62('0xbaa')]({'fields':_0x10be62('0x13d3'),'nolimit':!![],'role':_0x10be62('0x18c4')})[_0x10be62('0x1549')][_0x10be62('0x11bf')](function(_0x5b7b65){_0x2d1c9b(_0x5b7b65);})['catch'](function(_0x396494){_0xa3a08c(_0x396494);});});}function _0x3ea379(_0x324778){return _0x2b7749(function(_0x48c89b,_0x34f2fe){const _0x3d63c4=a0_0xaf0c;_0x36f548()[_0x3d63c4('0x1fc5')](_0x324778)?_0x48c89b():_0x630a15[_0x3d63c4('0x13cb')][_0x3d63c4('0x110a')]({'id':_0x595caa[_0x3d63c4('0x13cb')]['id'],'ids':_0x36f548()['map'](_0x324778,'id')})[_0x3d63c4('0x1549')]['then'](function(){_0x48c89b();})['catch'](function(_0x1eb7bf){_0x34f2fe(_0x1eb7bf);});});}function _0x52c7d8(_0x5206ca){return _0x2b7749(function(_0x327f26,_0x5be2e0){const _0x1658b2=a0_0xaf0c;_0x36f548()[_0x1658b2('0x1fc5')](_0x5206ca)?_0x327f26():_0x630a15[_0x1658b2('0x13cb')][_0x1658b2('0x1ec0')]({'id':_0x595caa[_0x1658b2('0x13cb')]['id'],'ids':_0x36f548()['map'](_0x5206ca,'id')})[_0x1658b2('0x1549')]['then'](function(){_0x327f26();})[_0x1658b2('0x151d')](function(_0x1f46d0){_0x5be2e0(_0x1f46d0);});});}function _0x71edf5(){const _0x251d77=_0xf47e2c,_0x5d3985=_0x36f548()[_0x251d77('0x2753')](_0x595caa[_0x251d77('0x21ed')],_0x595caa[_0x251d77('0x26cc')],'id'),_0x850520=_0x36f548()[_0x251d77('0x2753')](_0x595caa[_0x251d77('0x26cc')],_0x595caa[_0x251d77('0x21ed')],'id');return _0x52c7d8(_0x5d3985)[_0x251d77('0x11bf')](function(){return _0x3ea379(_0x850520);})[_0x251d77('0x11bf')](function(){const _0x3aa0b1=_0x251d77;_0x595caa[_0x3aa0b1('0x1eda')]=![],_0x595caa[_0x3aa0b1('0x1c6f')]=angular[_0x3aa0b1('0x6fb')](_0x595caa['allowedItems']),_0x595caa[_0x3aa0b1('0x21ed')]=angular[_0x3aa0b1('0x6fb')](_0x595caa[_0x3aa0b1('0x26cc')]),_0x3884e1['success']({'title':_0x3aa0b1('0x2243'),'msg':'Agents\x20association\x20has\x20been\x20updated!'});})[_0x251d77('0x151d')](function(_0x16da5c){const _0x3757d7=_0x251d77;_0x3884e1['error']({'title':_0x16da5c[_0x3757d7('0xff9')]?'API:'+_0x16da5c[_0x3757d7('0xff9')]+_0x3757d7('0xb0b')+_0x16da5c['statusText']:_0x3757d7('0x1b7f'),'msg':_0x16da5c[_0x3757d7('0xff9')]?JSON['stringify'](_0x16da5c['data']):_0x16da5c['toString']()});});}function _0x201afe(){const _0x59a5bc=_0xf47e2c;_0x293422[_0x59a5bc('0x237e')]();}}const _0x207837=_0x3f59a2;_0x4f29a9['$inject']=[_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0x142d'),'openchannelAccountApp',_0x21d0f5('0x13cb'),_0x21d0f5('0x12a5'),'Auth','crudPermissions'];function _0x4f29a9(_0x36c879,_0x230d0a,_0x374f12,_0x28c86e,_0x35d433,_0x86932e,_0x5d9a43,_0x1005f6){const _0x3aa2b5=_0x21d0f5,_0x5bd6e9=this;_0x5bd6e9[_0x3aa2b5('0x32a')]=_0x5d9a43[_0x3aa2b5('0x2428')](),_0x5bd6e9[_0x3aa2b5('0x120f')]=[],_0x5bd6e9[_0x3aa2b5('0x134b')]='OPENCHANNEL.EDIT_'+(_0x28c86e['appType']||_0x28c86e[_0x3aa2b5('0x18f5')])[_0x3aa2b5('0xa6f')](),_0x5bd6e9[_0x3aa2b5('0x18c4')]=angular[_0x3aa2b5('0x6fb')](_0x28c86e),_0x5bd6e9['crudPermissions']=_0x1005f6,_0x5bd6e9[_0x3aa2b5('0x2c9')]={};if(_0x5bd6e9[_0x3aa2b5('0x18c4')][_0x3aa2b5('0x13fc')])switch(_0x5bd6e9[_0x3aa2b5('0x18c4')][_0x3aa2b5('0x27c0')]?_0x5bd6e9['agent'][_0x3aa2b5('0x27c0')][_0x3aa2b5('0x20d5')]():_0x5bd6e9[_0x3aa2b5('0x18c4')][_0x3aa2b5('0x18f5')][_0x3aa2b5('0x20d5')]()){case _0x3aa2b5('0xa8d'):break;case _0x3aa2b5('0x185e'):{const _0x41c5=_0x5bd6e9[_0x3aa2b5('0x18c4')]['appdata']['split'](',');_0x5bd6e9[_0x3aa2b5('0x18c4')][_0x3aa2b5('0xa0c')]=_0x41c5[0x0],_0x5bd6e9[_0x3aa2b5('0x18c4')][_0x3aa2b5('0xeff')]=_0x41c5[0x1],_0x5bd6e9[_0x3aa2b5('0x18c4')][_0x3aa2b5('0x1cbc')]=_0x41c5[_0x3aa2b5('0x1b77')](0x2,_0x41c5[_0x3aa2b5('0x1e22')])['join'](',');}break;case _0x3aa2b5('0x21a8'):{const _0x242b56=_0x5bd6e9[_0x3aa2b5('0x18c4')]['appdata'][_0x3aa2b5('0xaf8')](',');_0x5bd6e9[_0x3aa2b5('0x18c4')][_0x3aa2b5('0x20e')]=_0x242b56[0x0],_0x5bd6e9[_0x3aa2b5('0x18c4')]['clientEmail']=_0x242b56[0x1],_0x5bd6e9[_0x3aa2b5('0x18c4')][_0x3aa2b5('0x1c6c')]=_0x242b56[0x2],_0x5bd6e9['agent'][_0x3aa2b5('0xeff')]=_0x242b56[0x3],_0x5bd6e9[_0x3aa2b5('0x18c4')]['welcomemessage']=_0x242b56[_0x3aa2b5('0x1b77')](0x4,_0x242b56[_0x3aa2b5('0x1e22')])['join'](',');}break;case _0x3aa2b5('0x102c'):{const _0x29bc91=_0x5bd6e9['agent']['appdata'][_0x3aa2b5('0xaf8')](',');_0x5bd6e9[_0x3aa2b5('0x18c4')][_0x3aa2b5('0x1a82')]=_0x29bc91[0x0],_0x5bd6e9[_0x3aa2b5('0x18c4')][_0x3aa2b5('0x1422')]=_0x29bc91[0x1],_0x5bd6e9[_0x3aa2b5('0x18c4')]['lexregion']=_0x29bc91[0x2],_0x5bd6e9[_0x3aa2b5('0x18c4')][_0x3aa2b5('0x1e8f')]=_0x29bc91[0x3],_0x5bd6e9['agent'][_0x3aa2b5('0x1cbc')]=_0x29bc91[_0x3aa2b5('0x1b77')](0x4,_0x29bc91[_0x3aa2b5('0x1e22')])[_0x3aa2b5('0xa04')](',');}break;case _0x3aa2b5('0x187b'):{const _0x3431f0=_0x5bd6e9[_0x3aa2b5('0x18c4')][_0x3aa2b5('0x13fc')][_0x3aa2b5('0xaf8')](',');_0x5bd6e9[_0x3aa2b5('0x18c4')][_0x3aa2b5('0x663')]=isNaN(_0x3431f0[0x0])?_0x3431f0[0x0]:parseInt(_0x3431f0[0x0],0xa),_0x5bd6e9[_0x3aa2b5('0x18c4')][_0x3aa2b5('0x25ed')]=_0x3431f0[_0x3aa2b5('0x1b77')](0x1,_0x3431f0[_0x3aa2b5('0x1e22')])[_0x3aa2b5('0xa04')](',');}break;case'message':_0x5bd6e9[_0x3aa2b5('0x18c4')][_0x3aa2b5('0x25ed')]=_0x5bd6e9[_0x3aa2b5('0x18c4')][_0x3aa2b5('0x13fc')];break;case _0x3aa2b5('0xe50'):_0x5bd6e9['agent'][_0x3aa2b5('0x1909')]=_0x5bd6e9[_0x3aa2b5('0x18c4')]['appdata'][_0x3aa2b5('0xaf8')]('=')[0x0],_0x5bd6e9[_0x3aa2b5('0x18c4')][_0x3aa2b5('0x10cc')]=_0x5bd6e9['agent']['appdata'][_0x3aa2b5('0xaf8')]('=')[0x1];break;case _0x3aa2b5('0x1efd'):_0x5bd6e9['agent'][_0x3aa2b5('0xef0')]=_0x5bd6e9['agent'][_0x3aa2b5('0x13fc')];break;default:{const _0x2eba7a=_0x5bd6e9[_0x3aa2b5('0x18c4')][_0x3aa2b5('0x13fc')][_0x3aa2b5('0xaf8')](',');_0x5bd6e9[_0x3aa2b5('0x18c4')][_0x3aa2b5('0x18c4')]=_0x36f548()[_0x3aa2b5('0x1fc5')](_0x2eba7a[0x0])?_0x2eba7a[0x0]:isNaN(_0x2eba7a[0x0])?_0x2eba7a[0x0]:parseInt(_0x2eba7a[0x0],0xa),_0x5bd6e9[_0x3aa2b5('0x18c4')][_0x3aa2b5('0xfbe')]=_0x36f548()[_0x3aa2b5('0x1fc5')](_0x2eba7a[0x1])?_0x2eba7a[0x1]:isNaN(_0x2eba7a[0x1])?_0x2eba7a[0x1]:parseInt(_0x2eba7a[0x1],0xa);}break;}else _0x5bd6e9[_0x3aa2b5('0x18c4')][_0x3aa2b5('0xfbe')]=0x1e;_0x5bd6e9[_0x3aa2b5('0x18c4')][_0x3aa2b5('0x19fd')]&&_0x5bd6e9[_0x3aa2b5('0x18c4')][_0x3aa2b5('0x19fd')]['toLowerCase']()===_0x3aa2b5('0x25b6')&&_0x5bd6e9[_0x3aa2b5('0x18c4')][_0x3aa2b5('0x27c0')][_0x3aa2b5('0x20d5')]()===_0x3aa2b5('0x1a64')&&(_0x5bd6e9[_0x3aa2b5('0x18c4')][_0x3aa2b5('0x2137')]=_0x5bd6e9[_0x3aa2b5('0x18c4')][_0x3aa2b5('0x1546')]?_0x5bd6e9['agent'][_0x3aa2b5('0x1546')][_0x3aa2b5('0xaf8')]('$')[0x0]:undefined,_0x5bd6e9[_0x3aa2b5('0x18c4')][_0x3aa2b5('0x7d0')]=_0x5bd6e9[_0x3aa2b5('0x18c4')][_0x3aa2b5('0xc38')]?_0x3aa2b5('0x83a')+_0x5bd6e9[_0x3aa2b5('0x18c4')][_0x3aa2b5('0xc38')]:undefined);_0x5bd6e9[_0x3aa2b5('0x1b83')]=_0x13c416,_0x5bd6e9['closeDialog']=_0x29a162,_0x5d9a43[_0x3aa2b5('0x4ee')](_0x3aa2b5('0xf45'))?_0x86932e[_0x3aa2b5('0x21d9')][_0x3aa2b5('0xbaa')]({'fields':_0x3aa2b5('0x721'),'sort':_0x3aa2b5('0x1909'),'role':_0x3aa2b5('0x18c4'),'nolimit':'true'})[_0x3aa2b5('0x1549')]['then'](function(_0x27f27b){const _0x8277ec=_0x3aa2b5;_0x5bd6e9[_0x8277ec('0x1401')]=_0x27f27b[_0x8277ec('0x19b2')]||[];})[_0x3aa2b5('0x151d')](function(_0x1bd63f){const _0xe124cd=_0x3aa2b5;_0x374f12[_0xe124cd('0x255')]({'title':_0x1bd63f[_0xe124cd('0xff9')]?_0xe124cd('0x574')+_0x1bd63f[_0xe124cd('0xff9')]+_0xe124cd('0xb0b')+_0x1bd63f[_0xe124cd('0x212f')]:'SYSTEM:GET_AGENTS','msg':_0x1bd63f[_0xe124cd('0x4e8')]?JSON[_0xe124cd('0x3e')](_0x1bd63f[_0xe124cd('0x4e8')]):_0x1bd63f[_0xe124cd('0xaab')]()});}):_0x86932e[_0x3aa2b5('0x21d9')][_0x3aa2b5('0xbaa')]({'fields':_0x3aa2b5('0x721'),'sort':_0x3aa2b5('0x1909'),'role':_0x3aa2b5('0x18c4'),'nolimit':_0x3aa2b5('0x204c')})['$promise'][_0x3aa2b5('0x11bf')](function(_0x3a80b9){const _0x1e4c1c=_0x3aa2b5;_0x5bd6e9[_0x1e4c1c('0x1401')]=_0x3a80b9['rows']||[];})[_0x3aa2b5('0x11bf')](function(){const _0x53e86e=_0x3aa2b5;return _0x86932e[_0x53e86e('0x1d63')][_0x53e86e('0xbaa')]({'userProfileId':_0x5bd6e9['currentUser'][_0x53e86e('0x781')],'sectionId':0xca})[_0x53e86e('0x1549')];})[_0x3aa2b5('0x11bf')](function(_0x29557d){const _0x3f67fd=_0x3aa2b5,_0x3e7b86=_0x29557d&&_0x29557d[_0x3f67fd('0x19b2')]?_0x29557d[_0x3f67fd('0x19b2')][0x0]:null;if(!_0x3e7b86){const _0x22880c=[];let _0x31be28=null;_0x5bd6e9['agent']&&(_0x31be28=_0x36f548()[_0x3f67fd('0x1ad4')](_0x5bd6e9['agents'],{'name':_0x5bd6e9['agent']['agent']}));for(let _0xc2b364=0x0;_0xc2b364<_0x5bd6e9[_0x3f67fd('0x1401')][_0x3f67fd('0x1e22')];_0xc2b364++){_0x31be28&&_0x5bd6e9[_0x3f67fd('0x1401')][_0xc2b364]['id']===_0x31be28['id']&&(_0x5bd6e9[_0x3f67fd('0x1401')][_0xc2b364][_0x3f67fd('0x254a')]=![],_0x22880c['push'](_0x5bd6e9[_0x3f67fd('0x1401')][_0xc2b364]));}_0x5bd6e9[_0x3f67fd('0x1401')]=_0x22880c;}else{if(!_0x3e7b86['autoAssociation'])return _0x86932e[_0x3f67fd('0x26d1')]['get']({'sectionId':_0x3e7b86['id']})['$promise']['then'](function(_0x3a53e6){const _0x211fae=_0x3f67fd,_0x452aad=_0x36f548()[_0x211fae('0x2171')](_0x3a53e6[_0x211fae('0x19b2')],function(_0x111fad){const _0x585a74=_0x211fae;return _0x36f548()[_0x585a74('0x1ad4')](_0x5bd6e9['agents'],{'id':_0x111fad[_0x585a74('0x15a5')]});});let _0x3188dd=null;_0x5bd6e9[_0x211fae('0x18c4')]&&(_0x3188dd=_0x36f548()[_0x211fae('0x1ad4')](_0x5bd6e9[_0x211fae('0x1401')],{'name':_0x5bd6e9[_0x211fae('0x18c4')]['agent']}));if(_0x3188dd&&!_0x36f548()[_0x211fae('0x1cb3')](_0x452aad,['id',_0x3188dd['id']])){const _0x230acf=_0x36f548()[_0x211fae('0x1ad4')](_0x5bd6e9[_0x211fae('0x1401')],{'id':_0x3188dd['id']});_0x230acf[_0x211fae('0x254a')]=![],_0x452aad[_0x211fae('0x105d')](_0x230acf);}_0x5bd6e9['agents']=_0x452aad;});}})[_0x3aa2b5('0x151d')](function(_0x5d59e0){const _0xe426b6=_0x3aa2b5;_0x374f12[_0xe426b6('0x255')]({'title':_0x5d59e0[_0xe426b6('0xff9')]?_0xe426b6('0x574')+_0x5d59e0[_0xe426b6('0xff9')]+_0xe426b6('0xb0b')+_0x5d59e0[_0xe426b6('0x212f')]:_0xe426b6('0x1939'),'msg':_0x5d59e0[_0xe426b6('0x4e8')]?JSON[_0xe426b6('0x3e')](_0x5d59e0[_0xe426b6('0x4e8')]):_0x5d59e0[_0xe426b6('0xaab')]()});});function _0x13c416(){const _0x59b7ff=_0x3aa2b5;_0x5bd6e9[_0x59b7ff('0x120f')]=[];const _0x4dac58=[];_0x5bd6e9[_0x59b7ff('0x18c4')]['type']&&_0x5bd6e9[_0x59b7ff('0x18c4')][_0x59b7ff('0x19fd')][_0x59b7ff('0x20d5')]()===_0x59b7ff('0x25b6')&&_0x5bd6e9['agent'][_0x59b7ff('0x27c0')]===_0x59b7ff('0x1bf6')&&(_0x5bd6e9[_0x59b7ff('0x18c4')][_0x59b7ff('0x1546')]=_0x35d433[_0x59b7ff('0x388')]?(_0x5bd6e9[_0x59b7ff('0x18c4')][_0x59b7ff('0x2137')]||'')+_0x59b7ff('0x2100')+_0x35d433[_0x59b7ff('0x388')]+'}':(_0x5bd6e9['agent'][_0x59b7ff('0x2137')]||'')+_0x59b7ff('0x1f76'),_0x35d433[_0x59b7ff('0x897')]!==_0x59b7ff('0x3e6')?_0x5bd6e9[_0x59b7ff('0x18c4')][_0x59b7ff('0x249a')][_0x59b7ff('0x203c')](_0x59b7ff('0x22c9'))<0x0&&(_0x5bd6e9['agent'][_0x59b7ff('0x249a')]+=_0x59b7ff('0x22c9')):_0x5bd6e9[_0x59b7ff('0x18c4')][_0x59b7ff('0x249a')]=_0x5bd6e9['agent'][_0x59b7ff('0x249a')]['replace']('U(xcally-mixmonitor-context)',''));const _0x34efc0=_0x36f548()['find'](_0x5bd6e9[_0x59b7ff('0x1401')],{'name':_0x5bd6e9[_0x59b7ff('0x18c4')][_0x59b7ff('0x18c4')]});_0x34efc0&&(_0x5bd6e9[_0x59b7ff('0x18c4')][_0x59b7ff('0x2342')]=_0x34efc0['id']);if(_0x5bd6e9['agent'][_0x59b7ff('0x27c0')]&&_0x5bd6e9[_0x59b7ff('0x18c4')][_0x59b7ff('0x27c0')]===_0x59b7ff('0xa8d')){}else switch((_0x5bd6e9['agent'][_0x59b7ff('0x18f5')]||_0x5bd6e9['agent']['appType'])[_0x59b7ff('0x20d5')]()){case _0x59b7ff('0xe50'):_0x5bd6e9[_0x59b7ff('0x18c4')][_0x59b7ff('0x13fc')]=_0x5bd6e9[_0x59b7ff('0x18c4')]['name']+'='+_0x5bd6e9[_0x59b7ff('0x18c4')][_0x59b7ff('0x10cc')];break;case _0x59b7ff('0xa8d'):break;default:_0x4dac58[0x0]=_0x5bd6e9[_0x59b7ff('0x18c4')][_0x59b7ff('0x18c4')],_0x4dac58[0x1]=_0x5bd6e9[_0x59b7ff('0x18c4')][_0x59b7ff('0xfbe')],_0x5bd6e9[_0x59b7ff('0x18c4')]['appdata']=_0x4dac58[_0x59b7ff('0xa04')](',');}_0x29a162(_0x5bd6e9[_0x59b7ff('0x18c4')]);}function _0x29a162(_0x2ad186){const _0x3c0253=_0x3aa2b5;_0x36c879[_0x3c0253('0x237e')](_0x2ad186);}}const _0x4e989e=_0x4f29a9;_0x16f4d2[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0x142d'),_0x21d0f5('0x2467'),_0x21d0f5('0x13cb'),'api',_0x21d0f5('0x1150'),'crudPermissions'];function _0x16f4d2(_0x361891,_0x356ad3,_0xc3a598,_0x310b4f,_0x2357a8,_0x1e8260,_0x4b04cc,_0x349944){const _0x15ae25=_0x21d0f5,_0x3a1d7a=this;_0x3a1d7a[_0x15ae25('0x32a')]=_0x4b04cc[_0x15ae25('0x2428')](),_0x3a1d7a['errors']=[],_0x3a1d7a['title']=_0x15ae25('0x23e')+(_0x310b4f['appType']||_0x310b4f[_0x15ae25('0x18f5')])['toUpperCase'](),_0x3a1d7a['amazonlex']=angular[_0x15ae25('0x6fb')](_0x310b4f),_0x3a1d7a['crudPermissions']=_0x349944,_0x3a1d7a['hasModulePermissions']={};if(_0x3a1d7a[_0x15ae25('0x102c')][_0x15ae25('0x13fc')])switch(_0x3a1d7a[_0x15ae25('0x102c')][_0x15ae25('0x27c0')]?_0x3a1d7a[_0x15ae25('0x102c')]['appType'][_0x15ae25('0x20d5')]():_0x3a1d7a[_0x15ae25('0x102c')][_0x15ae25('0x18f5')][_0x15ae25('0x20d5')]()){case _0x15ae25('0xa8d'):break;case'dialogflow':{const _0x4b75d4=_0x3a1d7a[_0x15ae25('0x102c')]['appdata'][_0x15ae25('0xaf8')](',');_0x3a1d7a[_0x15ae25('0x102c')][_0x15ae25('0xa0c')]=_0x4b75d4[0x0],_0x3a1d7a[_0x15ae25('0x102c')][_0x15ae25('0xeff')]=_0x4b75d4[0x1],_0x3a1d7a[_0x15ae25('0x102c')][_0x15ae25('0x1cbc')]=_0x4b75d4[_0x15ae25('0x1b77')](0x2,_0x4b75d4[_0x15ae25('0x1e22')])[_0x15ae25('0xa04')](',');}break;case'dialogflowv2':{const _0x316511=_0x3a1d7a[_0x15ae25('0x102c')][_0x15ae25('0x13fc')][_0x15ae25('0xaf8')](',');_0x3a1d7a['amazonlex'][_0x15ae25('0x20e')]=_0x316511[0x0],_0x3a1d7a[_0x15ae25('0x102c')][_0x15ae25('0x1f91')]=_0x316511[0x1],_0x3a1d7a[_0x15ae25('0x102c')][_0x15ae25('0x1c6c')]=_0x316511[0x2],_0x3a1d7a[_0x15ae25('0x102c')][_0x15ae25('0xeff')]=_0x316511[0x3],_0x3a1d7a['amazonlex']['welcomemessage']=_0x316511[_0x15ae25('0x1b77')](0x4,_0x316511[_0x15ae25('0x1e22')])[_0x15ae25('0xa04')](',');}break;case _0x15ae25('0x102c'):{const _0x513ce9=_0x3a1d7a[_0x15ae25('0x102c')][_0x15ae25('0x13fc')][_0x15ae25('0xaf8')](',');_0x3a1d7a[_0x15ae25('0x102c')][_0x15ae25('0x1a82')]=_0x513ce9[0x0],_0x3a1d7a[_0x15ae25('0x102c')][_0x15ae25('0x1422')]=_0x513ce9[0x1],_0x3a1d7a[_0x15ae25('0x102c')][_0x15ae25('0x165a')]=_0x513ce9[0x2],_0x3a1d7a[_0x15ae25('0x102c')][_0x15ae25('0x1e8f')]=_0x513ce9[0x3],_0x3a1d7a[_0x15ae25('0x102c')][_0x15ae25('0x1cbc')]=_0x513ce9[_0x15ae25('0x1b77')](0x4,_0x513ce9[_0x15ae25('0x1e22')])[_0x15ae25('0xa04')](',');}break;case _0x15ae25('0x187b'):{const _0x30646d=_0x3a1d7a[_0x15ae25('0x102c')]['appdata'][_0x15ae25('0xaf8')](',');_0x3a1d7a[_0x15ae25('0x102c')]['times']=isNaN(_0x30646d[0x0])?_0x30646d[0x0]:parseInt(_0x30646d[0x0],0xa),_0x3a1d7a[_0x15ae25('0x102c')]['text']=_0x30646d[_0x15ae25('0x1b77')](0x1,_0x30646d[_0x15ae25('0x1e22')])[_0x15ae25('0xa04')](',');}break;case _0x15ae25('0x1b86'):_0x3a1d7a[_0x15ae25('0x102c')][_0x15ae25('0x25ed')]=_0x3a1d7a[_0x15ae25('0x102c')][_0x15ae25('0x13fc')];break;case'set':_0x3a1d7a['amazonlex']['name']=_0x3a1d7a[_0x15ae25('0x102c')][_0x15ae25('0x13fc')][_0x15ae25('0xaf8')]('=')[0x0],_0x3a1d7a[_0x15ae25('0x102c')][_0x15ae25('0x10cc')]=_0x3a1d7a[_0x15ae25('0x102c')][_0x15ae25('0x13fc')][_0x15ae25('0xaf8')]('=')[0x1];break;case _0x15ae25('0x1efd'):_0x3a1d7a['amazonlex']['project']=_0x3a1d7a[_0x15ae25('0x102c')][_0x15ae25('0x13fc')];break;default:{const _0x40a083=_0x3a1d7a[_0x15ae25('0x102c')][_0x15ae25('0x13fc')][_0x15ae25('0xaf8')](',');_0x3a1d7a[_0x15ae25('0x102c')][_0x15ae25('0x1a82')]=_0x36f548()[_0x15ae25('0x1fc5')](_0x40a083[0x0])?_0x40a083[0x0]:isNaN(_0x40a083[0x0])?_0x40a083[0x0]:parseInt(_0x40a083[0x0],0xa),_0x3a1d7a[_0x15ae25('0x102c')]['secretaccesskey']=_0x36f548()[_0x15ae25('0x1fc5')](_0x40a083[0x1])?_0x40a083[0x1]:isNaN(_0x40a083[0x1])?_0x40a083[0x1]:parseInt(_0x40a083[0x1],0xa),_0x3a1d7a['amazonlex']['lexregion']=_0x36f548()[_0x15ae25('0x1fc5')](_0x40a083[0x2])?_0x40a083[0x2]:isNaN(_0x40a083[0x2])?_0x40a083[0x2]:parseInt(_0x40a083[0x2],0xa),_0x3a1d7a['amazonlex'][_0x15ae25('0x1e8f')]=_0x36f548()[_0x15ae25('0x1fc5')](_0x40a083[0x3])?_0x40a083[0x3]:isNaN(_0x40a083[0x3])?_0x40a083[0x3]:parseInt(_0x40a083[0x3],0xa),_0x3a1d7a[_0x15ae25('0x102c')]['welcomemessage']=_0x36f548()[_0x15ae25('0x1fc5')](_0x40a083[0x4])?_0x40a083[0x4]:isNaN(_0x40a083[0x4])?_0x40a083[0x4]:parseInt(_0x40a083[0x4],0xa);}break;}else _0x3a1d7a[_0x15ae25('0x102c')][_0x15ae25('0x165a')]='us-east-1';_0x3a1d7a[_0x15ae25('0x102c')][_0x15ae25('0x19fd')]&&_0x3a1d7a[_0x15ae25('0x102c')][_0x15ae25('0x19fd')][_0x15ae25('0x20d5')]()===_0x15ae25('0x25b6')&&_0x3a1d7a[_0x15ae25('0x102c')][_0x15ae25('0x27c0')][_0x15ae25('0x20d5')]()==='outbounddial'&&(_0x3a1d7a['amazonlex']['prefix']=_0x3a1d7a[_0x15ae25('0x102c')]['phone']?_0x3a1d7a[_0x15ae25('0x102c')][_0x15ae25('0x1546')]['split']('$')[0x0]:undefined,_0x3a1d7a['amazonlex'][_0x15ae25('0x7d0')]=_0x3a1d7a[_0x15ae25('0x102c')][_0x15ae25('0xc38')]?_0x15ae25('0x83a')+_0x3a1d7a[_0x15ae25('0x102c')]['callerID']:undefined);_0x3a1d7a[_0x15ae25('0x1b83')]=_0x570f99,_0x3a1d7a[_0x15ae25('0xc4e')]=_0x37633d;function _0x570f99(){const _0x154664=_0x15ae25;_0x3a1d7a[_0x154664('0x120f')]=[];const _0x29bb8e=[];_0x3a1d7a[_0x154664('0x102c')][_0x154664('0x19fd')]&&_0x3a1d7a['amazonlex'][_0x154664('0x19fd')][_0x154664('0x20d5')]()==='outbound'&&_0x3a1d7a[_0x154664('0x102c')][_0x154664('0x27c0')]==='outboundDial'&&(_0x3a1d7a[_0x154664('0x102c')][_0x154664('0x1546')]=_0x2357a8[_0x154664('0x388')]?(_0x3a1d7a[_0x154664('0x102c')][_0x154664('0x2137')]||'')+'${EXTEN:'+_0x2357a8[_0x154664('0x388')]+'}':(_0x3a1d7a['amazonlex']['prefix']||'')+_0x154664('0x1f76'),_0x2357a8[_0x154664('0x897')]!==_0x154664('0x3e6')?_0x3a1d7a['amazonlex'][_0x154664('0x249a')]['indexOf'](_0x154664('0x22c9'))<0x0&&(_0x3a1d7a['amazonlex'][_0x154664('0x249a')]+='U(xcally-mixmonitor-context)'):_0x3a1d7a['amazonlex'][_0x154664('0x249a')]=_0x3a1d7a[_0x154664('0x102c')][_0x154664('0x249a')][_0x154664('0x814')]('U(xcally-mixmonitor-context)',''));if(_0x3a1d7a[_0x154664('0x102c')][_0x154664('0x27c0')]&&_0x3a1d7a[_0x154664('0x102c')][_0x154664('0x27c0')]===_0x154664('0xa8d')){}else switch((_0x3a1d7a[_0x154664('0x102c')][_0x154664('0x18f5')]||_0x3a1d7a[_0x154664('0x102c')]['appType'])['toLowerCase']()){case _0x154664('0xe50'):_0x3a1d7a[_0x154664('0x102c')][_0x154664('0x13fc')]=_0x3a1d7a[_0x154664('0x102c')][_0x154664('0x1909')]+'='+_0x3a1d7a[_0x154664('0x102c')]['value'];break;case _0x154664('0xa8d'):break;default:_0x29bb8e[0x0]=_0x3a1d7a[_0x154664('0x102c')]['accesskeyid'],_0x29bb8e[0x1]=_0x3a1d7a[_0x154664('0x102c')][_0x154664('0x1422')],_0x29bb8e[0x2]=_0x3a1d7a[_0x154664('0x102c')][_0x154664('0x165a')],_0x29bb8e[0x3]=_0x3a1d7a[_0x154664('0x102c')]['botname'],_0x29bb8e[0x4]=_0x3a1d7a[_0x154664('0x102c')][_0x154664('0x1cbc')],_0x3a1d7a[_0x154664('0x102c')][_0x154664('0x13fc')]=_0x29bb8e[_0x154664('0xa04')](',');}_0x37633d(_0x3a1d7a[_0x154664('0x102c')]);}function _0x37633d(_0x1aac0f){const _0x37de59=_0x15ae25;_0x361891[_0x37de59('0x237e')](_0x1aac0f);}}const _0x2fd221=_0x16f4d2;_0x32bb54[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0x142d'),'openchannelAccountApp',_0x21d0f5('0x13cb'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),_0x21d0f5('0xb25')];function _0x32bb54(_0x11acd2,_0x50dbed,_0x53f039,_0x419a35,_0x58efcf,_0x23c199,_0x5b5390,_0x11663c){const _0x263f1d=_0x21d0f5,_0x4ef702=this;_0x4ef702['currentUser']=_0x5b5390[_0x263f1d('0x2428')](),_0x4ef702[_0x263f1d('0x120f')]=[],_0x4ef702[_0x263f1d('0x134b')]=_0x263f1d('0x23e')+(_0x419a35[_0x263f1d('0x27c0')]||_0x419a35[_0x263f1d('0x18f5')])['toUpperCase'](),_0x4ef702[_0x263f1d('0x187b')]=angular[_0x263f1d('0x6fb')](_0x419a35),_0x4ef702[_0x263f1d('0xb25')]=_0x11663c,_0x4ef702[_0x263f1d('0x2c9')]={};if(_0x4ef702[_0x263f1d('0x187b')][_0x263f1d('0x13fc')])switch(_0x4ef702[_0x263f1d('0x187b')][_0x263f1d('0x27c0')]?_0x4ef702[_0x263f1d('0x187b')][_0x263f1d('0x27c0')][_0x263f1d('0x20d5')]():_0x4ef702['autoreply']['app'][_0x263f1d('0x20d5')]()){case _0x263f1d('0xa8d'):break;case _0x263f1d('0x185e'):{const _0x498c11=_0x4ef702[_0x263f1d('0x187b')][_0x263f1d('0x13fc')][_0x263f1d('0xaf8')](',');_0x4ef702[_0x263f1d('0x187b')][_0x263f1d('0xa0c')]=_0x498c11[0x0],_0x4ef702[_0x263f1d('0x187b')][_0x263f1d('0xeff')]=_0x498c11[0x1],_0x4ef702[_0x263f1d('0x187b')][_0x263f1d('0x1cbc')]=_0x498c11[_0x263f1d('0x1b77')](0x2,_0x498c11[_0x263f1d('0x1e22')])[_0x263f1d('0xa04')](',');}break;case'dialogflowv2':{const _0x24ba27=_0x4ef702[_0x263f1d('0x187b')][_0x263f1d('0x13fc')][_0x263f1d('0xaf8')](',');_0x4ef702[_0x263f1d('0x187b')][_0x263f1d('0x20e')]=_0x24ba27[0x0],_0x4ef702['autoreply'][_0x263f1d('0x1f91')]=_0x24ba27[0x1],_0x4ef702[_0x263f1d('0x187b')][_0x263f1d('0x1c6c')]=_0x24ba27[0x2],_0x4ef702[_0x263f1d('0x187b')]['language']=_0x24ba27[0x3],_0x4ef702[_0x263f1d('0x187b')][_0x263f1d('0x1cbc')]=_0x24ba27[_0x263f1d('0x1b77')](0x4,_0x24ba27[_0x263f1d('0x1e22')])[_0x263f1d('0xa04')](',');}break;case _0x263f1d('0x102c'):{const _0xb4718d=_0x4ef702[_0x263f1d('0x187b')][_0x263f1d('0x13fc')][_0x263f1d('0xaf8')](',');_0x4ef702[_0x263f1d('0x187b')][_0x263f1d('0x1a82')]=_0xb4718d[0x0],_0x4ef702[_0x263f1d('0x187b')][_0x263f1d('0x1422')]=_0xb4718d[0x1],_0x4ef702[_0x263f1d('0x187b')][_0x263f1d('0x165a')]=_0xb4718d[0x2],_0x4ef702['autoreply']['botname']=_0xb4718d[0x3],_0x4ef702['autoreply'][_0x263f1d('0x1cbc')]=_0xb4718d[_0x263f1d('0x1b77')](0x4,_0xb4718d[_0x263f1d('0x1e22')])['join'](',');}break;case _0x263f1d('0x187b'):{const _0x434ef6=_0x4ef702[_0x263f1d('0x187b')][_0x263f1d('0x13fc')][_0x263f1d('0xaf8')](',');_0x4ef702[_0x263f1d('0x187b')]['times']=isNaN(_0x434ef6[0x0])?_0x434ef6[0x0]:parseInt(_0x434ef6[0x0],0xa),_0x4ef702[_0x263f1d('0x187b')][_0x263f1d('0x25ed')]=_0x434ef6[_0x263f1d('0x1b77')](0x1,_0x434ef6['length'])[_0x263f1d('0xa04')](',');}break;case _0x263f1d('0x1b86'):_0x4ef702[_0x263f1d('0x187b')][_0x263f1d('0x25ed')]=_0x4ef702[_0x263f1d('0x187b')][_0x263f1d('0x13fc')];break;case'set':_0x4ef702[_0x263f1d('0x187b')][_0x263f1d('0x1909')]=_0x4ef702['autoreply'][_0x263f1d('0x13fc')]['split']('=')[0x0],_0x4ef702[_0x263f1d('0x187b')][_0x263f1d('0x10cc')]=_0x4ef702[_0x263f1d('0x187b')][_0x263f1d('0x13fc')]['split']('=')[0x1];break;case'agi':_0x4ef702[_0x263f1d('0x187b')][_0x263f1d('0xef0')]=_0x4ef702[_0x263f1d('0x187b')][_0x263f1d('0x13fc')];break;default:{const _0xb86544=_0x4ef702[_0x263f1d('0x187b')][_0x263f1d('0x13fc')][_0x263f1d('0xaf8')](',');_0x4ef702[_0x263f1d('0x187b')]['times']=_0x36f548()[_0x263f1d('0x1fc5')](_0xb86544[0x0])?_0xb86544[0x0]:isNaN(_0xb86544[0x0])?_0xb86544[0x0]:parseInt(_0xb86544[0x0],0xa),_0x4ef702['autoreply']['text']=_0x36f548()[_0x263f1d('0x1fc5')](_0xb86544[0x1])?_0xb86544[0x1]:isNaN(_0xb86544[0x1])?_0xb86544[0x1]:parseInt(_0xb86544[0x1],0xa);}break;}else _0x4ef702[_0x263f1d('0x187b')]['times']=0x1;_0x4ef702['autoreply'][_0x263f1d('0x19fd')]&&_0x4ef702[_0x263f1d('0x187b')][_0x263f1d('0x19fd')][_0x263f1d('0x20d5')]()===_0x263f1d('0x25b6')&&_0x4ef702[_0x263f1d('0x187b')][_0x263f1d('0x27c0')]['toLowerCase']()===_0x263f1d('0x1a64')&&(_0x4ef702['autoreply'][_0x263f1d('0x2137')]=_0x4ef702[_0x263f1d('0x187b')]['phone']?_0x4ef702[_0x263f1d('0x187b')][_0x263f1d('0x1546')]['split']('$')[0x0]:undefined,_0x4ef702[_0x263f1d('0x187b')]['callerId']=_0x4ef702[_0x263f1d('0x187b')]['callerID']?'CALLERID(all)='+_0x4ef702[_0x263f1d('0x187b')]['callerID']:undefined);_0x4ef702[_0x263f1d('0x1b83')]=_0x3caa9a,_0x4ef702[_0x263f1d('0xc4e')]=_0x3b2b0b;function _0x3caa9a(){const _0xf40eca=_0x263f1d;_0x4ef702[_0xf40eca('0x120f')]=[];const _0x334e7c=[];_0x4ef702[_0xf40eca('0x187b')][_0xf40eca('0x19fd')]&&_0x4ef702[_0xf40eca('0x187b')][_0xf40eca('0x19fd')][_0xf40eca('0x20d5')]()===_0xf40eca('0x25b6')&&_0x4ef702[_0xf40eca('0x187b')][_0xf40eca('0x27c0')]==='outboundDial'&&(_0x4ef702[_0xf40eca('0x187b')]['phone']=_0x58efcf[_0xf40eca('0x388')]?(_0x4ef702[_0xf40eca('0x187b')][_0xf40eca('0x2137')]||'')+_0xf40eca('0x2100')+_0x58efcf[_0xf40eca('0x388')]+'}':(_0x4ef702['autoreply'][_0xf40eca('0x2137')]||'')+_0xf40eca('0x1f76'),_0x58efcf[_0xf40eca('0x897')]!=='none'?_0x4ef702[_0xf40eca('0x187b')][_0xf40eca('0x249a')][_0xf40eca('0x203c')]('U(xcally-mixmonitor-context)')<0x0&&(_0x4ef702[_0xf40eca('0x187b')]['options']+='U(xcally-mixmonitor-context)'):_0x4ef702[_0xf40eca('0x187b')][_0xf40eca('0x249a')]=_0x4ef702['autoreply'][_0xf40eca('0x249a')][_0xf40eca('0x814')](_0xf40eca('0x22c9'),''));if(_0x4ef702['autoreply'][_0xf40eca('0x27c0')]&&_0x4ef702[_0xf40eca('0x187b')]['appType']==='custom'){}else switch((_0x4ef702['autoreply'][_0xf40eca('0x18f5')]||_0x4ef702[_0xf40eca('0x187b')][_0xf40eca('0x27c0')])[_0xf40eca('0x20d5')]()){case'set':_0x4ef702[_0xf40eca('0x187b')][_0xf40eca('0x13fc')]=_0x4ef702[_0xf40eca('0x187b')][_0xf40eca('0x1909')]+'='+_0x4ef702[_0xf40eca('0x187b')][_0xf40eca('0x10cc')];break;case _0xf40eca('0xa8d'):break;default:_0x334e7c[0x0]=_0x4ef702[_0xf40eca('0x187b')][_0xf40eca('0x663')],_0x334e7c[0x1]=_0x4ef702[_0xf40eca('0x187b')][_0xf40eca('0x25ed')],_0x4ef702[_0xf40eca('0x187b')][_0xf40eca('0x13fc')]=_0x334e7c['join'](',');}_0x3b2b0b(_0x4ef702['autoreply']);}function _0x3b2b0b(_0x4d7c3){const _0x56ae32=_0x263f1d;_0x11acd2[_0x56ae32('0x237e')](_0x4d7c3);}}const _0x5e4b7c=_0x32bb54;_0x595856[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1ca2'),'$q','toasty',_0x21d0f5('0x2467'),_0x21d0f5('0x13cb'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),_0x21d0f5('0xb25')];function _0x595856(_0x4773ef,_0x4c915f,_0x12db21,_0x2aff3d,_0x53f549,_0x2199e9,_0x49a901,_0x2f91aa){const _0x3aed11=_0x21d0f5,_0x4dfeae=this;_0x4dfeae[_0x3aed11('0x32a')]=_0x49a901[_0x3aed11('0x2428')](),_0x4dfeae[_0x3aed11('0x120f')]=[],_0x4dfeae['title']='OPENCHANNEL.EDIT_'+(_0x2aff3d['appType']||_0x2aff3d[_0x3aed11('0x18f5')])['toUpperCase'](),_0x4dfeae[_0x3aed11('0x2132')]=angular[_0x3aed11('0x6fb')](_0x2aff3d),_0x4dfeae[_0x3aed11('0xb25')]=_0x2f91aa,_0x4dfeae[_0x3aed11('0x2c9')]={};if(_0x4dfeae[_0x3aed11('0x2132')]['appdata'])switch(_0x4dfeae[_0x3aed11('0x2132')][_0x3aed11('0x27c0')]?_0x4dfeae[_0x3aed11('0x2132')][_0x3aed11('0x27c0')]['toLowerCase']():_0x4dfeae['close'][_0x3aed11('0x18f5')][_0x3aed11('0x20d5')]()){case _0x3aed11('0xa8d'):break;case _0x3aed11('0x185e'):{const _0xae4178=_0x4dfeae[_0x3aed11('0x2132')][_0x3aed11('0x13fc')][_0x3aed11('0xaf8')](',');_0x4dfeae['close'][_0x3aed11('0xa0c')]=_0xae4178[0x0],_0x4dfeae['close']['language']=_0xae4178[0x1],_0x4dfeae['close'][_0x3aed11('0x1cbc')]=_0xae4178[_0x3aed11('0x1b77')](0x2,_0xae4178[_0x3aed11('0x1e22')])[_0x3aed11('0xa04')](',');}break;case _0x3aed11('0x21a8'):{const _0x1e72ac=_0x4dfeae[_0x3aed11('0x2132')]['appdata']['split'](',');_0x4dfeae[_0x3aed11('0x2132')][_0x3aed11('0x20e')]=_0x1e72ac[0x0],_0x4dfeae['close'][_0x3aed11('0x1f91')]=_0x1e72ac[0x1],_0x4dfeae['close'][_0x3aed11('0x1c6c')]=_0x1e72ac[0x2],_0x4dfeae[_0x3aed11('0x2132')][_0x3aed11('0xeff')]=_0x1e72ac[0x3],_0x4dfeae[_0x3aed11('0x2132')][_0x3aed11('0x1cbc')]=_0x1e72ac[_0x3aed11('0x1b77')](0x4,_0x1e72ac['length'])[_0x3aed11('0xa04')](',');}break;case _0x3aed11('0x102c'):{const _0x33085c=_0x4dfeae[_0x3aed11('0x2132')][_0x3aed11('0x13fc')][_0x3aed11('0xaf8')](',');_0x4dfeae[_0x3aed11('0x2132')][_0x3aed11('0x1a82')]=_0x33085c[0x0],_0x4dfeae[_0x3aed11('0x2132')]['secretaccesskey']=_0x33085c[0x1],_0x4dfeae['close'][_0x3aed11('0x165a')]=_0x33085c[0x2],_0x4dfeae['close'][_0x3aed11('0x1e8f')]=_0x33085c[0x3],_0x4dfeae['close'][_0x3aed11('0x1cbc')]=_0x33085c[_0x3aed11('0x1b77')](0x4,_0x33085c[_0x3aed11('0x1e22')])[_0x3aed11('0xa04')](',');}break;case'autoreply':{const _0xba281a=_0x4dfeae[_0x3aed11('0x2132')][_0x3aed11('0x13fc')][_0x3aed11('0xaf8')](',');_0x4dfeae[_0x3aed11('0x2132')][_0x3aed11('0x663')]=isNaN(_0xba281a[0x0])?_0xba281a[0x0]:parseInt(_0xba281a[0x0],0xa),_0x4dfeae[_0x3aed11('0x2132')]['text']=_0xba281a[_0x3aed11('0x1b77')](0x1,_0xba281a[_0x3aed11('0x1e22')])[_0x3aed11('0xa04')](',');}break;case'message':_0x4dfeae['close'][_0x3aed11('0x25ed')]=_0x4dfeae['close'][_0x3aed11('0x13fc')];break;case _0x3aed11('0xe50'):_0x4dfeae[_0x3aed11('0x2132')]['name']=_0x4dfeae[_0x3aed11('0x2132')][_0x3aed11('0x13fc')][_0x3aed11('0xaf8')]('=')[0x0],_0x4dfeae[_0x3aed11('0x2132')][_0x3aed11('0x10cc')]=_0x4dfeae['close'][_0x3aed11('0x13fc')][_0x3aed11('0xaf8')]('=')[0x1];break;case'agi':_0x4dfeae[_0x3aed11('0x2132')]['project']=_0x4dfeae[_0x3aed11('0x2132')]['appdata'];break;default:{const _0x53728b=_0x4dfeae[_0x3aed11('0x2132')][_0x3aed11('0x13fc')][_0x3aed11('0xaf8')](',');_0x4dfeae[_0x3aed11('0x2132')][_0x3aed11('0x107a')]=_0x36f548()[_0x3aed11('0x1fc5')](_0x53728b[0x0])?_0x53728b[0x0]:isNaN(_0x53728b[0x0])?_0x53728b[0x0]:parseInt(_0x53728b[0x0],0xa);}break;}else{}_0x4dfeae[_0x3aed11('0x2132')]['type']&&_0x4dfeae['close'][_0x3aed11('0x19fd')][_0x3aed11('0x20d5')]()===_0x3aed11('0x25b6')&&_0x4dfeae[_0x3aed11('0x2132')][_0x3aed11('0x27c0')][_0x3aed11('0x20d5')]()===_0x3aed11('0x1a64')&&(_0x4dfeae['close'][_0x3aed11('0x2137')]=_0x4dfeae[_0x3aed11('0x2132')][_0x3aed11('0x1546')]?_0x4dfeae[_0x3aed11('0x2132')]['phone']['split']('$')[0x0]:undefined,_0x4dfeae[_0x3aed11('0x2132')][_0x3aed11('0x7d0')]=_0x4dfeae['close']['callerID']?'CALLERID(all)='+_0x4dfeae[_0x3aed11('0x2132')]['callerID']:undefined);_0x4dfeae['saveOpenchannelAccountApp']=_0x1ad1e6,_0x4dfeae[_0x3aed11('0xc4e')]=_0x2d7c3a;function _0x1ad1e6(){const _0x141813=_0x3aed11;_0x4dfeae[_0x141813('0x120f')]=[];const _0x49d93c=[];_0x4dfeae[_0x141813('0x2132')][_0x141813('0x19fd')]&&_0x4dfeae[_0x141813('0x2132')][_0x141813('0x19fd')]['toLowerCase']()==='outbound'&&_0x4dfeae['close']['appType']==='outboundDial'&&(_0x4dfeae[_0x141813('0x2132')][_0x141813('0x1546')]=_0x53f549['cutdigits']?(_0x4dfeae[_0x141813('0x2132')][_0x141813('0x2137')]||'')+'${EXTEN:'+_0x53f549[_0x141813('0x388')]+'}':(_0x4dfeae[_0x141813('0x2132')][_0x141813('0x2137')]||'')+_0x141813('0x1f76'),_0x53f549[_0x141813('0x897')]!=='none'?_0x4dfeae[_0x141813('0x2132')][_0x141813('0x249a')][_0x141813('0x203c')](_0x141813('0x22c9'))<0x0&&(_0x4dfeae[_0x141813('0x2132')][_0x141813('0x249a')]+=_0x141813('0x22c9')):_0x4dfeae[_0x141813('0x2132')][_0x141813('0x249a')]=_0x4dfeae[_0x141813('0x2132')][_0x141813('0x249a')][_0x141813('0x814')](_0x141813('0x22c9'),''));if(_0x4dfeae[_0x141813('0x2132')][_0x141813('0x27c0')]&&_0x4dfeae[_0x141813('0x2132')][_0x141813('0x27c0')]==='custom'){}else switch((_0x4dfeae[_0x141813('0x2132')][_0x141813('0x18f5')]||_0x4dfeae[_0x141813('0x2132')]['appType'])[_0x141813('0x20d5')]()){case'set':_0x4dfeae[_0x141813('0x2132')][_0x141813('0x13fc')]=_0x4dfeae['close'][_0x141813('0x1909')]+'='+_0x4dfeae[_0x141813('0x2132')][_0x141813('0x10cc')];break;case'custom':break;default:_0x49d93c[0x0]=_0x4dfeae['close'][_0x141813('0x107a')],_0x4dfeae[_0x141813('0x2132')][_0x141813('0x13fc')]=_0x49d93c[_0x141813('0xa04')](',');}_0x2d7c3a(_0x4dfeae['close']);}function _0x2d7c3a(_0x2c4117){const _0x22ae90=_0x3aed11;_0x4773ef[_0x22ae90('0x237e')](_0x2c4117);}}const _0x9c1d23=_0x595856;_0x486f67['$inject']=[_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0x142d'),_0x21d0f5('0x2467'),_0x21d0f5('0x13cb'),'api',_0x21d0f5('0x1150'),'crudPermissions'];function _0x486f67(_0xb54dcd,_0x18982e,_0x43ea74,_0x3ed85c,_0x121e43,_0x421c33,_0x493445,_0x5881a5){const _0xefd75e=_0x21d0f5,_0x1ac8da=this;_0x1ac8da[_0xefd75e('0x32a')]=_0x493445[_0xefd75e('0x2428')](),_0x1ac8da['errors']=[],_0x1ac8da[_0xefd75e('0x134b')]=_0xefd75e('0x23e')+(_0x3ed85c['appType']||_0x3ed85c[_0xefd75e('0x18f5')])['toUpperCase'](),_0x1ac8da['dialogflow']=angular[_0xefd75e('0x6fb')](_0x3ed85c),_0x1ac8da[_0xefd75e('0xb25')]=_0x5881a5,_0x1ac8da[_0xefd75e('0x2c9')]={};if(_0x1ac8da['dialogflow'][_0xefd75e('0x13fc')])switch(_0x1ac8da['dialogflow'][_0xefd75e('0x27c0')]?_0x1ac8da[_0xefd75e('0x185e')][_0xefd75e('0x27c0')][_0xefd75e('0x20d5')]():_0x1ac8da[_0xefd75e('0x185e')][_0xefd75e('0x18f5')][_0xefd75e('0x20d5')]()){case _0xefd75e('0xa8d'):break;case _0xefd75e('0x185e'):{const _0xf0a1df=_0x1ac8da['dialogflow']['appdata'][_0xefd75e('0xaf8')](',');_0x1ac8da[_0xefd75e('0x185e')][_0xefd75e('0xa0c')]=_0xf0a1df[0x0],_0x1ac8da['dialogflow'][_0xefd75e('0xeff')]=_0xf0a1df[0x1],_0x1ac8da[_0xefd75e('0x185e')][_0xefd75e('0x1cbc')]=_0xf0a1df[_0xefd75e('0x1b77')](0x2,_0xf0a1df[_0xefd75e('0x1e22')])[_0xefd75e('0xa04')](',');}break;case _0xefd75e('0x21a8'):{const _0x943b99=_0x1ac8da[_0xefd75e('0x185e')]['appdata']['split'](',');_0x1ac8da[_0xefd75e('0x185e')][_0xefd75e('0x20e')]=_0x943b99[0x0],_0x1ac8da[_0xefd75e('0x185e')]['clientEmail']=_0x943b99[0x1],_0x1ac8da[_0xefd75e('0x185e')][_0xefd75e('0x1c6c')]=_0x943b99[0x2],_0x1ac8da[_0xefd75e('0x185e')][_0xefd75e('0xeff')]=_0x943b99[0x3],_0x1ac8da[_0xefd75e('0x185e')][_0xefd75e('0x1cbc')]=_0x943b99[_0xefd75e('0x1b77')](0x4,_0x943b99[_0xefd75e('0x1e22')])[_0xefd75e('0xa04')](',');}break;case _0xefd75e('0x102c'):{const _0x1ea701=_0x1ac8da[_0xefd75e('0x185e')][_0xefd75e('0x13fc')][_0xefd75e('0xaf8')](',');_0x1ac8da['dialogflow'][_0xefd75e('0x1a82')]=_0x1ea701[0x0],_0x1ac8da[_0xefd75e('0x185e')][_0xefd75e('0x1422')]=_0x1ea701[0x1],_0x1ac8da[_0xefd75e('0x185e')][_0xefd75e('0x165a')]=_0x1ea701[0x2],_0x1ac8da[_0xefd75e('0x185e')][_0xefd75e('0x1e8f')]=_0x1ea701[0x3],_0x1ac8da[_0xefd75e('0x185e')]['welcomemessage']=_0x1ea701['slice'](0x4,_0x1ea701[_0xefd75e('0x1e22')])[_0xefd75e('0xa04')](',');}break;case _0xefd75e('0x187b'):{const _0x36fb61=_0x1ac8da['dialogflow'][_0xefd75e('0x13fc')]['split'](',');_0x1ac8da[_0xefd75e('0x185e')][_0xefd75e('0x663')]=isNaN(_0x36fb61[0x0])?_0x36fb61[0x0]:parseInt(_0x36fb61[0x0],0xa),_0x1ac8da['dialogflow'][_0xefd75e('0x25ed')]=_0x36fb61[_0xefd75e('0x1b77')](0x1,_0x36fb61[_0xefd75e('0x1e22')])[_0xefd75e('0xa04')](',');}break;case'message':_0x1ac8da['dialogflow'][_0xefd75e('0x25ed')]=_0x1ac8da[_0xefd75e('0x185e')][_0xefd75e('0x13fc')];break;case _0xefd75e('0xe50'):_0x1ac8da[_0xefd75e('0x185e')][_0xefd75e('0x1909')]=_0x1ac8da['dialogflow'][_0xefd75e('0x13fc')][_0xefd75e('0xaf8')]('=')[0x0],_0x1ac8da['dialogflow'][_0xefd75e('0x10cc')]=_0x1ac8da['dialogflow'][_0xefd75e('0x13fc')]['split']('=')[0x1];break;case _0xefd75e('0x1efd'):_0x1ac8da['dialogflow'][_0xefd75e('0xef0')]=_0x1ac8da[_0xefd75e('0x185e')][_0xefd75e('0x13fc')];break;default:{const _0x4e6d5f=_0x1ac8da[_0xefd75e('0x185e')][_0xefd75e('0x13fc')][_0xefd75e('0xaf8')](',');_0x1ac8da[_0xefd75e('0x185e')][_0xefd75e('0xa0c')]=_0x36f548()[_0xefd75e('0x1fc5')](_0x4e6d5f[0x0])?_0x4e6d5f[0x0]:isNaN(_0x4e6d5f[0x0])?_0x4e6d5f[0x0]:parseInt(_0x4e6d5f[0x0],0xa),_0x1ac8da['dialogflow'][_0xefd75e('0xeff')]=_0x36f548()['isEmpty'](_0x4e6d5f[0x1])?_0x4e6d5f[0x1]:isNaN(_0x4e6d5f[0x1])?_0x4e6d5f[0x1]:parseInt(_0x4e6d5f[0x1],0xa),_0x1ac8da[_0xefd75e('0x185e')]['welcomemessage']=_0x36f548()[_0xefd75e('0x1fc5')](_0x4e6d5f[0x2])?_0x4e6d5f[0x2]:isNaN(_0x4e6d5f[0x2])?_0x4e6d5f[0x2]:parseInt(_0x4e6d5f[0x2],0xa);}break;}else _0x1ac8da[_0xefd75e('0x185e')][_0xefd75e('0xeff')]='en';_0x1ac8da[_0xefd75e('0x185e')][_0xefd75e('0x19fd')]&&_0x1ac8da[_0xefd75e('0x185e')][_0xefd75e('0x19fd')][_0xefd75e('0x20d5')]()===_0xefd75e('0x25b6')&&_0x1ac8da[_0xefd75e('0x185e')][_0xefd75e('0x27c0')][_0xefd75e('0x20d5')]()===_0xefd75e('0x1a64')&&(_0x1ac8da[_0xefd75e('0x185e')]['prefix']=_0x1ac8da[_0xefd75e('0x185e')][_0xefd75e('0x1546')]?_0x1ac8da[_0xefd75e('0x185e')][_0xefd75e('0x1546')][_0xefd75e('0xaf8')]('$')[0x0]:undefined,_0x1ac8da[_0xefd75e('0x185e')][_0xefd75e('0x7d0')]=_0x1ac8da['dialogflow'][_0xefd75e('0xc38')]?_0xefd75e('0x83a')+_0x1ac8da['dialogflow'][_0xefd75e('0xc38')]:undefined);_0x1ac8da[_0xefd75e('0x1b83')]=_0x49a409,_0x1ac8da[_0xefd75e('0xc4e')]=_0x363a98;function _0x49a409(){const _0x2580b7=_0xefd75e;_0x1ac8da[_0x2580b7('0x120f')]=[];const _0x442122=[];_0x1ac8da['dialogflow']['type']&&_0x1ac8da[_0x2580b7('0x185e')]['type'][_0x2580b7('0x20d5')]()==='outbound'&&_0x1ac8da[_0x2580b7('0x185e')][_0x2580b7('0x27c0')]===_0x2580b7('0x1bf6')&&(_0x1ac8da[_0x2580b7('0x185e')][_0x2580b7('0x1546')]=_0x121e43[_0x2580b7('0x388')]?(_0x1ac8da[_0x2580b7('0x185e')][_0x2580b7('0x2137')]||'')+_0x2580b7('0x2100')+_0x121e43[_0x2580b7('0x388')]+'}':(_0x1ac8da[_0x2580b7('0x185e')]['prefix']||'')+_0x2580b7('0x1f76'),_0x121e43[_0x2580b7('0x897')]!==_0x2580b7('0x3e6')?_0x1ac8da[_0x2580b7('0x185e')][_0x2580b7('0x249a')][_0x2580b7('0x203c')](_0x2580b7('0x22c9'))<0x0&&(_0x1ac8da['dialogflow'][_0x2580b7('0x249a')]+=_0x2580b7('0x22c9')):_0x1ac8da[_0x2580b7('0x185e')][_0x2580b7('0x249a')]=_0x1ac8da['dialogflow'][_0x2580b7('0x249a')][_0x2580b7('0x814')]('U(xcally-mixmonitor-context)',''));if(_0x1ac8da['dialogflow'][_0x2580b7('0x27c0')]&&_0x1ac8da[_0x2580b7('0x185e')][_0x2580b7('0x27c0')]===_0x2580b7('0xa8d')){}else switch((_0x1ac8da[_0x2580b7('0x185e')][_0x2580b7('0x18f5')]||_0x1ac8da['dialogflow']['appType'])['toLowerCase']()){case _0x2580b7('0xe50'):_0x1ac8da[_0x2580b7('0x185e')][_0x2580b7('0x13fc')]=_0x1ac8da[_0x2580b7('0x185e')][_0x2580b7('0x1909')]+'='+_0x1ac8da[_0x2580b7('0x185e')][_0x2580b7('0x10cc')];break;case _0x2580b7('0xa8d'):break;default:_0x442122[0x0]=_0x1ac8da[_0x2580b7('0x185e')]['key'],_0x442122[0x1]=_0x1ac8da['dialogflow'][_0x2580b7('0xeff')],_0x442122[0x2]=_0x1ac8da[_0x2580b7('0x185e')][_0x2580b7('0x1cbc')],_0x1ac8da[_0x2580b7('0x185e')]['appdata']=_0x442122['join'](',');}_0x363a98(_0x1ac8da[_0x2580b7('0x185e')]);}function _0x363a98(_0x460949){_0xb54dcd['hide'](_0x460949);}}const _0x49d580=_0x486f67;_0x15e2fa[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0x142d'),'openchannelAccountApp',_0x21d0f5('0x13cb'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),'crudPermissions'];function _0x15e2fa(_0x1ae31f,_0x54ac41,_0x5013ae,_0x1e4b1c,_0x18cd6e,_0x24cefe,_0x156a5d,_0x5d1ab2){const _0x55eabb=_0x21d0f5,_0x4e7760=this;_0x4e7760['currentUser']=_0x156a5d['getCurrentUser'](),_0x4e7760[_0x55eabb('0x120f')]=[],_0x4e7760[_0x55eabb('0x134b')]='OPENCHANNEL.EDIT_'+(_0x1e4b1c['appType']||_0x1e4b1c['app'])['toUpperCase'](),_0x4e7760[_0x55eabb('0x7cf')]=angular[_0x55eabb('0x6fb')](_0x1e4b1c),_0x4e7760[_0x55eabb('0xb25')]=_0x5d1ab2,_0x4e7760[_0x55eabb('0x2c9')]={};if(_0x4e7760['gotoif']['appdata'])switch(_0x4e7760[_0x55eabb('0x7cf')]['appType']?_0x4e7760[_0x55eabb('0x7cf')][_0x55eabb('0x27c0')][_0x55eabb('0x20d5')]():_0x4e7760[_0x55eabb('0x7cf')][_0x55eabb('0x18f5')][_0x55eabb('0x20d5')]()){case _0x55eabb('0xa8d'):break;case'dialogflow':{const _0x5bbdaf=_0x4e7760[_0x55eabb('0x7cf')][_0x55eabb('0x13fc')][_0x55eabb('0xaf8')](',');_0x4e7760[_0x55eabb('0x7cf')]['key']=_0x5bbdaf[0x0],_0x4e7760[_0x55eabb('0x7cf')][_0x55eabb('0xeff')]=_0x5bbdaf[0x1],_0x4e7760[_0x55eabb('0x7cf')][_0x55eabb('0x1cbc')]=_0x5bbdaf['slice'](0x2,_0x5bbdaf[_0x55eabb('0x1e22')])['join'](',');}break;case _0x55eabb('0x21a8'):{const _0x3f6e38=_0x4e7760[_0x55eabb('0x7cf')][_0x55eabb('0x13fc')][_0x55eabb('0xaf8')](',');_0x4e7760[_0x55eabb('0x7cf')]['projectId']=_0x3f6e38[0x0],_0x4e7760[_0x55eabb('0x7cf')][_0x55eabb('0x1f91')]=_0x3f6e38[0x1],_0x4e7760[_0x55eabb('0x7cf')][_0x55eabb('0x1c6c')]=_0x3f6e38[0x2],_0x4e7760[_0x55eabb('0x7cf')][_0x55eabb('0xeff')]=_0x3f6e38[0x3],_0x4e7760['gotoif'][_0x55eabb('0x1cbc')]=_0x3f6e38[_0x55eabb('0x1b77')](0x4,_0x3f6e38[_0x55eabb('0x1e22')])[_0x55eabb('0xa04')](',');}break;case _0x55eabb('0x102c'):{const _0xcfe2d5=_0x4e7760[_0x55eabb('0x7cf')][_0x55eabb('0x13fc')][_0x55eabb('0xaf8')](',');_0x4e7760['gotoif']['accesskeyid']=_0xcfe2d5[0x0],_0x4e7760[_0x55eabb('0x7cf')]['secretaccesskey']=_0xcfe2d5[0x1],_0x4e7760[_0x55eabb('0x7cf')][_0x55eabb('0x165a')]=_0xcfe2d5[0x2],_0x4e7760['gotoif'][_0x55eabb('0x1e8f')]=_0xcfe2d5[0x3],_0x4e7760[_0x55eabb('0x7cf')][_0x55eabb('0x1cbc')]=_0xcfe2d5[_0x55eabb('0x1b77')](0x4,_0xcfe2d5[_0x55eabb('0x1e22')])[_0x55eabb('0xa04')](',');}break;case'autoreply':{const _0x56c20c=_0x4e7760[_0x55eabb('0x7cf')][_0x55eabb('0x13fc')][_0x55eabb('0xaf8')](',');_0x4e7760['gotoif'][_0x55eabb('0x663')]=isNaN(_0x56c20c[0x0])?_0x56c20c[0x0]:parseInt(_0x56c20c[0x0],0xa),_0x4e7760[_0x55eabb('0x7cf')][_0x55eabb('0x25ed')]=_0x56c20c[_0x55eabb('0x1b77')](0x1,_0x56c20c[_0x55eabb('0x1e22')])[_0x55eabb('0xa04')](',');}break;case _0x55eabb('0x1b86'):_0x4e7760[_0x55eabb('0x7cf')][_0x55eabb('0x25ed')]=_0x4e7760[_0x55eabb('0x7cf')]['appdata'];break;case _0x55eabb('0xe50'):_0x4e7760[_0x55eabb('0x7cf')][_0x55eabb('0x1909')]=_0x4e7760[_0x55eabb('0x7cf')][_0x55eabb('0x13fc')][_0x55eabb('0xaf8')]('=')[0x0],_0x4e7760[_0x55eabb('0x7cf')]['value']=_0x4e7760[_0x55eabb('0x7cf')][_0x55eabb('0x13fc')][_0x55eabb('0xaf8')]('=')[0x1];break;case'agi':_0x4e7760[_0x55eabb('0x7cf')][_0x55eabb('0xef0')]=_0x4e7760[_0x55eabb('0x7cf')][_0x55eabb('0x13fc')];break;default:{const _0x1fa538=_0x4e7760['gotoif'][_0x55eabb('0x13fc')]['split'](',');_0x4e7760[_0x55eabb('0x7cf')]['condition']=_0x36f548()[_0x55eabb('0x1fc5')](_0x1fa538[0x0])?_0x1fa538[0x0]:isNaN(_0x1fa538[0x0])?_0x1fa538[0x0]:parseInt(_0x1fa538[0x0],0xa),_0x4e7760[_0x55eabb('0x7cf')]['truepriority']=_0x36f548()[_0x55eabb('0x1fc5')](_0x1fa538[0x1])?_0x1fa538[0x1]:isNaN(_0x1fa538[0x1])?_0x1fa538[0x1]:parseInt(_0x1fa538[0x1],0xa),_0x4e7760['gotoif'][_0x55eabb('0x7ed')]=_0x36f548()['isEmpty'](_0x1fa538[0x2])?_0x1fa538[0x2]:isNaN(_0x1fa538[0x2])?_0x1fa538[0x2]:parseInt(_0x1fa538[0x2],0xa);}break;}else{}_0x4e7760[_0x55eabb('0x7cf')][_0x55eabb('0x19fd')]&&_0x4e7760['gotoif'][_0x55eabb('0x19fd')][_0x55eabb('0x20d5')]()===_0x55eabb('0x25b6')&&_0x4e7760['gotoif'][_0x55eabb('0x27c0')][_0x55eabb('0x20d5')]()===_0x55eabb('0x1a64')&&(_0x4e7760['gotoif'][_0x55eabb('0x2137')]=_0x4e7760['gotoif'][_0x55eabb('0x1546')]?_0x4e7760[_0x55eabb('0x7cf')]['phone'][_0x55eabb('0xaf8')]('$')[0x0]:undefined,_0x4e7760['gotoif'][_0x55eabb('0x7d0')]=_0x4e7760[_0x55eabb('0x7cf')][_0x55eabb('0xc38')]?'CALLERID(all)='+_0x4e7760[_0x55eabb('0x7cf')][_0x55eabb('0xc38')]:undefined);_0x4e7760['saveOpenchannelAccountApp']=_0x48f1ea,_0x4e7760[_0x55eabb('0xc4e')]=_0x9be805;function _0x48f1ea(){const _0x540302=_0x55eabb;_0x4e7760['errors']=[];const _0x5a0e3e=[];_0x4e7760[_0x540302('0x7cf')]['type']&&_0x4e7760['gotoif'][_0x540302('0x19fd')][_0x540302('0x20d5')]()==='outbound'&&_0x4e7760[_0x540302('0x7cf')]['appType']===_0x540302('0x1bf6')&&(_0x4e7760[_0x540302('0x7cf')]['phone']=_0x18cd6e['cutdigits']?(_0x4e7760['gotoif'][_0x540302('0x2137')]||'')+_0x540302('0x2100')+_0x18cd6e[_0x540302('0x388')]+'}':(_0x4e7760[_0x540302('0x7cf')][_0x540302('0x2137')]||'')+_0x540302('0x1f76'),_0x18cd6e[_0x540302('0x897')]!==_0x540302('0x3e6')?_0x4e7760['gotoif'][_0x540302('0x249a')][_0x540302('0x203c')](_0x540302('0x22c9'))<0x0&&(_0x4e7760[_0x540302('0x7cf')]['options']+=_0x540302('0x22c9')):_0x4e7760[_0x540302('0x7cf')]['options']=_0x4e7760[_0x540302('0x7cf')][_0x540302('0x249a')][_0x540302('0x814')](_0x540302('0x22c9'),''));if(_0x4e7760[_0x540302('0x7cf')][_0x540302('0x27c0')]&&_0x4e7760[_0x540302('0x7cf')][_0x540302('0x27c0')]===_0x540302('0xa8d')){}else switch((_0x4e7760[_0x540302('0x7cf')][_0x540302('0x18f5')]||_0x4e7760[_0x540302('0x7cf')][_0x540302('0x27c0')])[_0x540302('0x20d5')]()){case _0x540302('0xe50'):_0x4e7760['gotoif'][_0x540302('0x13fc')]=_0x4e7760[_0x540302('0x7cf')][_0x540302('0x1909')]+'='+_0x4e7760[_0x540302('0x7cf')][_0x540302('0x10cc')];break;case _0x540302('0xa8d'):break;default:_0x5a0e3e[0x0]=_0x4e7760[_0x540302('0x7cf')][_0x540302('0xccd')],_0x5a0e3e[0x1]=_0x4e7760[_0x540302('0x7cf')][_0x540302('0x1deb')],_0x5a0e3e[0x2]=_0x4e7760[_0x540302('0x7cf')][_0x540302('0x7ed')],_0x4e7760[_0x540302('0x7cf')][_0x540302('0x13fc')]=_0x5a0e3e[_0x540302('0xa04')](',');}_0x9be805(_0x4e7760['gotoif']);}function _0x9be805(_0x104b43){const _0xd81697=_0x55eabb;_0x1ae31f[_0xd81697('0x237e')](_0x104b43);}}const _0x2020c4=_0x15e2fa;_0x2e8845[_0x21d0f5('0x1e9a')]=['$mdDialog','$q','toasty',_0x21d0f5('0x2467'),_0x21d0f5('0x13cb'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),_0x21d0f5('0xb25')];function _0x2e8845(_0x2003bd,_0x113b72,_0x5e2026,_0xebfc9a,_0x1266c0,_0x5be5b6,_0x5ea82b,_0x3097e2){const _0x4c8e23=_0x21d0f5,_0x4caa8f=this;_0x4caa8f[_0x4c8e23('0x32a')]=_0x5ea82b[_0x4c8e23('0x2428')](),_0x4caa8f[_0x4c8e23('0x120f')]=[],_0x4caa8f['title']='OPENCHANNEL.EDIT_'+(_0xebfc9a[_0x4c8e23('0x27c0')]||_0xebfc9a[_0x4c8e23('0x18f5')])[_0x4c8e23('0xa6f')](),_0x4caa8f['gotop']=angular[_0x4c8e23('0x6fb')](_0xebfc9a),_0x4caa8f['crudPermissions']=_0x3097e2,_0x4caa8f[_0x4c8e23('0x2c9')]={};if(_0x4caa8f[_0x4c8e23('0x110d')]['appdata'])switch(_0x4caa8f[_0x4c8e23('0x110d')][_0x4c8e23('0x27c0')]?_0x4caa8f[_0x4c8e23('0x110d')]['appType'][_0x4c8e23('0x20d5')]():_0x4caa8f['gotop'][_0x4c8e23('0x18f5')]['toLowerCase']()){case'custom':break;case _0x4c8e23('0x185e'):{const _0x3c21fd=_0x4caa8f[_0x4c8e23('0x110d')][_0x4c8e23('0x13fc')][_0x4c8e23('0xaf8')](',');_0x4caa8f[_0x4c8e23('0x110d')]['key']=_0x3c21fd[0x0],_0x4caa8f[_0x4c8e23('0x110d')][_0x4c8e23('0xeff')]=_0x3c21fd[0x1],_0x4caa8f['gotop']['welcomemessage']=_0x3c21fd['slice'](0x2,_0x3c21fd[_0x4c8e23('0x1e22')])['join'](',');}break;case _0x4c8e23('0x21a8'):{const _0x45788e=_0x4caa8f['gotop']['appdata'][_0x4c8e23('0xaf8')](',');_0x4caa8f[_0x4c8e23('0x110d')][_0x4c8e23('0x20e')]=_0x45788e[0x0],_0x4caa8f['gotop'][_0x4c8e23('0x1f91')]=_0x45788e[0x1],_0x4caa8f[_0x4c8e23('0x110d')]['privateKey']=_0x45788e[0x2],_0x4caa8f[_0x4c8e23('0x110d')][_0x4c8e23('0xeff')]=_0x45788e[0x3],_0x4caa8f[_0x4c8e23('0x110d')][_0x4c8e23('0x1cbc')]=_0x45788e['slice'](0x4,_0x45788e[_0x4c8e23('0x1e22')])[_0x4c8e23('0xa04')](',');}break;case'amazonlex':{const _0x59496f=_0x4caa8f[_0x4c8e23('0x110d')][_0x4c8e23('0x13fc')][_0x4c8e23('0xaf8')](',');_0x4caa8f[_0x4c8e23('0x110d')][_0x4c8e23('0x1a82')]=_0x59496f[0x0],_0x4caa8f[_0x4c8e23('0x110d')][_0x4c8e23('0x1422')]=_0x59496f[0x1],_0x4caa8f[_0x4c8e23('0x110d')]['lexregion']=_0x59496f[0x2],_0x4caa8f['gotop']['botname']=_0x59496f[0x3],_0x4caa8f[_0x4c8e23('0x110d')][_0x4c8e23('0x1cbc')]=_0x59496f[_0x4c8e23('0x1b77')](0x4,_0x59496f[_0x4c8e23('0x1e22')])[_0x4c8e23('0xa04')](',');}break;case'autoreply':{const _0x2a98f9=_0x4caa8f[_0x4c8e23('0x110d')][_0x4c8e23('0x13fc')]['split'](',');_0x4caa8f['gotop']['times']=isNaN(_0x2a98f9[0x0])?_0x2a98f9[0x0]:parseInt(_0x2a98f9[0x0],0xa),_0x4caa8f[_0x4c8e23('0x110d')][_0x4c8e23('0x25ed')]=_0x2a98f9['slice'](0x1,_0x2a98f9[_0x4c8e23('0x1e22')])[_0x4c8e23('0xa04')](',');}break;case _0x4c8e23('0x1b86'):_0x4caa8f[_0x4c8e23('0x110d')][_0x4c8e23('0x25ed')]=_0x4caa8f[_0x4c8e23('0x110d')][_0x4c8e23('0x13fc')];break;case _0x4c8e23('0xe50'):_0x4caa8f['gotop'][_0x4c8e23('0x1909')]=_0x4caa8f[_0x4c8e23('0x110d')][_0x4c8e23('0x13fc')]['split']('=')[0x0],_0x4caa8f[_0x4c8e23('0x110d')][_0x4c8e23('0x10cc')]=_0x4caa8f['gotop'][_0x4c8e23('0x13fc')][_0x4c8e23('0xaf8')]('=')[0x1];break;case _0x4c8e23('0x1efd'):_0x4caa8f[_0x4c8e23('0x110d')]['project']=_0x4caa8f['gotop'][_0x4c8e23('0x13fc')];break;default:{const _0x129836=_0x4caa8f[_0x4c8e23('0x110d')][_0x4c8e23('0x13fc')][_0x4c8e23('0xaf8')](',');_0x4caa8f[_0x4c8e23('0x110d')][_0x4c8e23('0x2804')]=_0x36f548()[_0x4c8e23('0x1fc5')](_0x129836[0x0])?_0x129836[0x0]:isNaN(_0x129836[0x0])?_0x129836[0x0]:parseInt(_0x129836[0x0],0xa);}break;}else{}_0x4caa8f[_0x4c8e23('0x110d')][_0x4c8e23('0x19fd')]&&_0x4caa8f[_0x4c8e23('0x110d')][_0x4c8e23('0x19fd')][_0x4c8e23('0x20d5')]()===_0x4c8e23('0x25b6')&&_0x4caa8f['gotop'][_0x4c8e23('0x27c0')]['toLowerCase']()===_0x4c8e23('0x1a64')&&(_0x4caa8f[_0x4c8e23('0x110d')][_0x4c8e23('0x2137')]=_0x4caa8f[_0x4c8e23('0x110d')][_0x4c8e23('0x1546')]?_0x4caa8f[_0x4c8e23('0x110d')][_0x4c8e23('0x1546')][_0x4c8e23('0xaf8')]('$')[0x0]:undefined,_0x4caa8f[_0x4c8e23('0x110d')][_0x4c8e23('0x7d0')]=_0x4caa8f['gotop']['callerID']?'CALLERID(all)='+_0x4caa8f[_0x4c8e23('0x110d')][_0x4c8e23('0xc38')]:undefined);_0x4caa8f[_0x4c8e23('0x1b83')]=_0xdb1de4,_0x4caa8f[_0x4c8e23('0xc4e')]=_0x45593a;function _0xdb1de4(){const _0x4def8c=_0x4c8e23;_0x4caa8f[_0x4def8c('0x120f')]=[];const _0x48f42e=[];_0x4caa8f[_0x4def8c('0x110d')][_0x4def8c('0x19fd')]&&_0x4caa8f[_0x4def8c('0x110d')][_0x4def8c('0x19fd')][_0x4def8c('0x20d5')]()===_0x4def8c('0x25b6')&&_0x4caa8f['gotop'][_0x4def8c('0x27c0')]===_0x4def8c('0x1bf6')&&(_0x4caa8f['gotop'][_0x4def8c('0x1546')]=_0x1266c0['cutdigits']?(_0x4caa8f[_0x4def8c('0x110d')][_0x4def8c('0x2137')]||'')+'${EXTEN:'+_0x1266c0[_0x4def8c('0x388')]+'}':(_0x4caa8f['gotop'][_0x4def8c('0x2137')]||'')+_0x4def8c('0x1f76'),_0x1266c0[_0x4def8c('0x897')]!==_0x4def8c('0x3e6')?_0x4caa8f[_0x4def8c('0x110d')][_0x4def8c('0x249a')][_0x4def8c('0x203c')](_0x4def8c('0x22c9'))<0x0&&(_0x4caa8f[_0x4def8c('0x110d')]['options']+=_0x4def8c('0x22c9')):_0x4caa8f[_0x4def8c('0x110d')][_0x4def8c('0x249a')]=_0x4caa8f[_0x4def8c('0x110d')][_0x4def8c('0x249a')][_0x4def8c('0x814')](_0x4def8c('0x22c9'),''));if(_0x4caa8f[_0x4def8c('0x110d')][_0x4def8c('0x27c0')]&&_0x4caa8f[_0x4def8c('0x110d')][_0x4def8c('0x27c0')]===_0x4def8c('0xa8d')){}else switch((_0x4caa8f[_0x4def8c('0x110d')][_0x4def8c('0x18f5')]||_0x4caa8f[_0x4def8c('0x110d')][_0x4def8c('0x27c0')])[_0x4def8c('0x20d5')]()){case _0x4def8c('0xe50'):_0x4caa8f['gotop'][_0x4def8c('0x13fc')]=_0x4caa8f['gotop'][_0x4def8c('0x1909')]+'='+_0x4caa8f[_0x4def8c('0x110d')][_0x4def8c('0x10cc')];break;case _0x4def8c('0xa8d'):break;default:_0x48f42e[0x0]=_0x4caa8f['gotop'][_0x4def8c('0x2804')],_0x4caa8f[_0x4def8c('0x110d')][_0x4def8c('0x13fc')]=_0x48f42e[_0x4def8c('0xa04')](',');}_0x45593a(_0x4caa8f[_0x4def8c('0x110d')]);}function _0x45593a(_0x2b6b35){_0x2003bd['hide'](_0x2b6b35);}}const _0x15ad06=_0x2e8845;_0x174d24[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0xcbc'),_0x21d0f5('0x1ca2'),_0x21d0f5('0x1d2f'),_0x21d0f5('0x216f'),_0x21d0f5('0x507'),'intervals',_0x21d0f5('0x142d'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),_0x21d0f5('0xb25')];function _0x174d24(_0x4f9f40,_0x526fd0,_0x31aad8,_0x948644,_0x339cd5,_0x30eb36,_0x4836ee,_0x1e2df1,_0x59bb0e,_0x5bafa6){const _0x230089=_0x21d0f5,_0x26dccf=this;_0x26dccf[_0x230089('0x32a')]=_0x59bb0e['getCurrentUser'](),_0x26dccf['errors']=[],_0x26dccf[_0x230089('0x134b')]=_0x230089('0x1d07'),_0x26dccf[_0x230089('0x507')]=angular['copy'](_0x339cd5),_0x26dccf[_0x230089('0xe82')]=_0x30eb36,_0x26dccf[_0x230089('0x18cf')]=![],_0x26dccf[_0x230089('0x1660')]=[_0x230089('0x27e5'),'custom','list'],_0x26dccf['crudPermissions']=_0x5bafa6,_0x26dccf[_0x230089('0xd02')]=_0x948644[_0x230089('0x25e1')](),_0x26dccf[_0x230089('0x0')]=_0x948644[_0x230089('0xf7a')](),_0x26dccf[_0x230089('0x19c8')]=_0x948644[_0x230089('0x311')](),_0x26dccf['daysOfMonth']=_0x948644[_0x230089('0x1ebc')]();if(!_0x26dccf[_0x230089('0x507')])_0x26dccf['interval']={'interval':_0x230089('0x1830')},_0x26dccf['type']=_0x230089('0x27e5'),_0x26dccf['title']='TOOLS.NEW_INTERVAL',_0x26dccf[_0x230089('0x18cf')]=!![];else{if(_0x26dccf[_0x230089('0x507')][_0x230089('0x507')]!==_0x230089('0x1830')){_0x26dccf[_0x230089('0x19fd')]='custom';const _0x5ce5a6=_0x26dccf[_0x230089('0x507')][_0x230089('0x507')]['split'](','),_0x5d0332=_0x5ce5a6[0x0],_0x2ab06d=_0x5ce5a6[0x1],_0xf84c79=_0x5ce5a6[0x2],_0x19ed6a=_0x5ce5a6[0x3];if(_0x5d0332!=='*'){const _0x269aa8=_0x5d0332[_0x230089('0xaf8')]('-')[0x0],_0x3a72d7=_0x5d0332['split']('-')[0x1];let _0x69805b;_0x69805b=new Date(),_0x69805b[_0x230089('0x29e')](Number(_0x269aa8[_0x230089('0xaf8')](':')[0x0])),_0x69805b[_0x230089('0x7b6')](Number(_0x269aa8[_0x230089('0xaf8')](':')[0x1])),_0x26dccf[_0x230089('0x269b')]=_0x69805b,_0x69805b=new Date(),_0x69805b['setHours'](Number(_0x3a72d7['split'](':')[0x0])),_0x69805b[_0x230089('0x7b6')](Number(_0x3a72d7['split'](':')[0x1])),_0x26dccf['timeRangeTo']=_0x69805b;}_0x2ab06d!=='*'&&(_0x26dccf[_0x230089('0x126e')]=_0x2ab06d[_0x230089('0xaf8')]('-')[0x0],_0x26dccf['dayOfWeekTo']=_0x2ab06d[_0x230089('0xaf8')]('-')[0x1]),_0xf84c79!=='*'&&(_0x26dccf[_0x230089('0xecd')]=_0xf84c79[_0x230089('0xaf8')]('-')[0x0],_0x26dccf['monthDayTo']=_0xf84c79[_0x230089('0xaf8')]('-')[0x1]),_0x19ed6a!=='*'&&(_0x26dccf[_0x230089('0xad3')]=_0x19ed6a['split']('-')[0x0],_0x26dccf[_0x230089('0x1155')]=_0x19ed6a[_0x230089('0xaf8')]('-')[0x1]);}else _0x26dccf[_0x230089('0x19fd')]=_0x230089('0x27e5');}_0x4f9f40[_0x230089('0x1ab3')]['id']&&!_0x26dccf[_0x230089('0x507')][_0x230089('0x1cf1')]&&(_0x26dccf[_0x230089('0x507')][_0x230089('0x6b4')]=_0x4f9f40[_0x230089('0x1ab3')]['id']);_0x26dccf['interval'][_0x230089('0x6b4')]&&_0x26dccf[_0x230089('0x507')][_0x230089('0x1cf1')]&&(_0x26dccf[_0x230089('0x19fd')]=_0x230089('0x257d'));_0x26dccf[_0x230089('0x119a')]=_0x2279b6,_0x26dccf[_0x230089('0x26c6')]=_0x1104d0,_0x26dccf[_0x230089('0xc4e')]=_0x381f2a;_0x26dccf[_0x230089('0x507')]['application']&&(_0x59bb0e[_0x230089('0x4ee')]('admin')?_0x1e2df1[_0x230089('0x507')][_0x230089('0xbaa')]({'fields':_0x230089('0x1af5'),'IntervalId':_0x230089('0xb5f'),'nolimit':!![]})[_0x230089('0x1549')][_0x230089('0x11bf')](function(_0x248e50){const _0x2cc5b6=_0x230089;_0x26dccf[_0x2cc5b6('0xe82')]=_0x248e50[_0x2cc5b6('0x19b2')]||[];})[_0x230089('0x151d')](function(_0x7d772b){const _0x1ef87c=_0x230089;_0x4836ee[_0x1ef87c('0x255')]({'title':_0x7d772b[_0x1ef87c('0xff9')]?'API:'+_0x7d772b[_0x1ef87c('0xff9')]+_0x1ef87c('0xb0b')+_0x7d772b[_0x1ef87c('0x212f')]:_0x1ef87c('0x611'),'msg':_0x7d772b[_0x1ef87c('0x4e8')]?JSON['stringify'](_0x7d772b[_0x1ef87c('0x4e8')]):_0x7d772b['toString']()});}):_0x1e2df1['interval'][_0x230089('0xbaa')]({'fields':_0x230089('0x1af5'),'IntervalId':'null','nolimit':!![]})['$promise'][_0x230089('0x11bf')](function(_0x51c429){const _0x58bdc3=_0x230089;_0x26dccf['intervals']=_0x51c429[_0x58bdc3('0x19b2')]||[];})[_0x230089('0x11bf')](function(){const _0x1f8868=_0x230089;return _0x1e2df1[_0x1f8868('0x1d63')]['get']({'userProfileId':_0x26dccf['currentUser']['userProfileId'],'sectionId':0x3ec})['$promise'];})[_0x230089('0x11bf')](function(_0x4e5179){const _0x20efd6=_0x230089,_0x19f233=_0x4e5179&&_0x4e5179[_0x20efd6('0x19b2')]?_0x4e5179[_0x20efd6('0x19b2')][0x0]:null;if(!_0x19f233)_0x26dccf[_0x20efd6('0xe82')]=[];else{if(!_0x19f233[_0x20efd6('0xf11')])return _0x1e2df1[_0x20efd6('0x26d1')][_0x20efd6('0xbaa')]({'sectionId':_0x19f233['id']})[_0x20efd6('0x1549')][_0x20efd6('0x11bf')](function(_0x3d5e6c){const _0x16c11d=_0x20efd6,_0x21bbcb=_0x3d5e6c&&_0x3d5e6c[_0x16c11d('0x19b2')]?_0x3d5e6c[_0x16c11d('0x19b2')]:[],_0x14a3a8=[];let _0x232c8c=null;_0x26dccf[_0x16c11d('0x507')]&&(_0x232c8c=_0x36f548()['find'](_0x26dccf[_0x16c11d('0xe82')],{'name':_0x26dccf[_0x16c11d('0x507')][_0x16c11d('0x6b4')]})),_0x232c8c&&!_0x36f548()['some'](_0x21bbcb,[_0x16c11d('0x15a5'),_0x232c8c['id']])&&_0x26dccf[_0x16c11d('0xe82')][_0x16c11d('0x1f88')](function(_0x553e36){const _0x4bc510=_0x16c11d;_0x553e36['id']===_0x232c8c['id']&&(_0x553e36[_0x4bc510('0x254a')]=![],_0x14a3a8['push'](_0x553e36));}),_0x26dccf[_0x16c11d('0xe82')]=_0x14a3a8;});}})[_0x230089('0x151d')](function(_0x250e4a){const _0x5bb5e8=_0x230089;_0x4836ee['error']({'title':_0x250e4a['status']?'API:'+_0x250e4a['status']+_0x5bb5e8('0xb0b')+_0x250e4a[_0x5bb5e8('0x212f')]:_0x5bb5e8('0x611'),'msg':_0x250e4a[_0x5bb5e8('0x4e8')]?JSON[_0x5bb5e8('0x3e')](_0x250e4a[_0x5bb5e8('0x4e8')]):_0x250e4a[_0x5bb5e8('0xaab')]()});}));function _0x5d745b(){const _0x5c5dbd=_0x230089;switch(_0x26dccf[_0x5c5dbd('0x19fd')]){case _0x5c5dbd('0x27e5'):case _0x5c5dbd('0x257d'):return _0x5c5dbd('0x1830');case _0x5c5dbd('0xa8d'):{const _0x17123d=[];if(_0x26dccf[_0x5c5dbd('0x269b')]!=='*'&&_0x26dccf[_0x5c5dbd('0x269b')]&&_0x26dccf['timeRangeTo']){const _0x552e02=(_0x26dccf[_0x5c5dbd('0x269b')][_0x5c5dbd('0x1e34')]()<0xa?'0':'')+_0x26dccf[_0x5c5dbd('0x269b')]['getHours']()+':'+((_0x26dccf[_0x5c5dbd('0x269b')]['getMinutes']()<0xa?'0':'')+_0x26dccf['timeRangeFrom'][_0x5c5dbd('0xdcc')]()),_0x21c52a=(_0x26dccf[_0x5c5dbd('0x19e5')][_0x5c5dbd('0x1e34')]()<0xa?'0':'')+_0x26dccf['timeRangeTo']['getHours']()+':'+((_0x26dccf[_0x5c5dbd('0x19e5')][_0x5c5dbd('0xdcc')]()<0xa?'0':'')+_0x26dccf[_0x5c5dbd('0x19e5')][_0x5c5dbd('0xdcc')]());_0x17123d[_0x5c5dbd('0x105d')](_0x552e02+'-'+_0x21c52a);}else _0x17123d['push']('*');return _0x26dccf[_0x5c5dbd('0x126e')]?_0x26dccf['dayOfWeekTo']?_0x17123d['push'](_0x26dccf[_0x5c5dbd('0x126e')]+'-'+_0x26dccf[_0x5c5dbd('0x261')]):_0x17123d[_0x5c5dbd('0x105d')](_0x26dccf['dayOfWeekFrom']):_0x17123d[_0x5c5dbd('0x105d')]('*'),_0x26dccf[_0x5c5dbd('0xecd')]?_0x26dccf[_0x5c5dbd('0x1883')]?_0x17123d[_0x5c5dbd('0x105d')](_0x26dccf[_0x5c5dbd('0xecd')]+'-'+_0x26dccf['monthDayTo']):_0x17123d[_0x5c5dbd('0x105d')](_0x26dccf['monthDayFrom']):_0x17123d[_0x5c5dbd('0x105d')]('*'),_0x26dccf[_0x5c5dbd('0xad3')]?_0x26dccf[_0x5c5dbd('0x1155')]?_0x17123d[_0x5c5dbd('0x105d')](_0x26dccf[_0x5c5dbd('0xad3')]+'-'+_0x26dccf[_0x5c5dbd('0x1155')]):_0x17123d[_0x5c5dbd('0x105d')](_0x26dccf[_0x5c5dbd('0xad3')]):_0x17123d[_0x5c5dbd('0x105d')]('*'),_0x17123d[_0x5c5dbd('0xa04')]();}}}function _0x2279b6(){const _0x3ab391=_0x230089;_0x26dccf[_0x3ab391('0x120f')]=[],_0x26dccf[_0x3ab391('0x507')][_0x3ab391('0x507')]=_0x5d745b(),_0x1e2df1[_0x3ab391('0x507')][_0x3ab391('0x259')](_0x26dccf['interval'])[_0x3ab391('0x1549')]['then'](function(_0x13b6f7){const _0x281a35=_0x3ab391;_0x26dccf[_0x281a35('0xe82')][_0x281a35('0x105d')](_0x13b6f7),_0x4836ee[_0x281a35('0x2693')]({'title':_0x281a35('0x747'),'msg':_0x26dccf[_0x281a35('0x507')][_0x281a35('0x1909')]?_0x26dccf['interval'][_0x281a35('0x1909')]+'\x20has\x20been\x20created!':''}),_0x381f2a();})[_0x3ab391('0x151d')](function(_0xa32b8c){const _0x402a51=_0x3ab391;console['error'](_0xa32b8c),_0x26dccf[_0x402a51('0x120f')]=_0xa32b8c['data'][_0x402a51('0x120f')]||[{'message':_0xa32b8c['toString'](),'type':_0x402a51('0x200b')}];});}function _0x1104d0(){const _0xbc2cec=_0x230089;_0x26dccf[_0xbc2cec('0x120f')]=[],_0x26dccf[_0xbc2cec('0x507')][_0xbc2cec('0x507')]=_0x5d745b(),_0x26dccf[_0xbc2cec('0x507')][_0xbc2cec('0x1cf1')]?(_0x26dccf[_0xbc2cec('0x19fd')]!=='list'&&(_0x26dccf[_0xbc2cec('0x507')][_0xbc2cec('0x6b4')]=null),_0x381f2a(_0x26dccf[_0xbc2cec('0x507')])):_0x1e2df1[_0xbc2cec('0x507')]['update']({'id':_0x26dccf[_0xbc2cec('0x507')]['id']},_0x26dccf['interval'])['$promise'][_0xbc2cec('0x11bf')](function(_0x4e5d03){const _0x4b5485=_0xbc2cec,_0x5509aa=_0x36f548()[_0x4b5485('0x1ad4')](_0x26dccf['intervals'],{'id':_0x4e5d03['id']});_0x5509aa&&_0x36f548()[_0x4b5485('0x47b')](_0x5509aa,_0x4e5d03),_0x4836ee['success']({'title':_0x4b5485('0x1177'),'msg':'Interval\x20has\x20been\x20saved!'}),_0x381f2a();})['catch'](function(_0x4aa701){const _0x1afa97=_0xbc2cec;console['error'](_0x4aa701),_0x26dccf[_0x1afa97('0x120f')]=_0x4aa701['data'][_0x1afa97('0x120f')]||[{'message':_0x4aa701[_0x1afa97('0xaab')](),'type':_0x1afa97('0x3dd')}];});}function _0x381f2a(_0x3a366a){const _0x38667a=_0x230089;_0x526fd0[_0x38667a('0x237e')](_0x3a366a);}}const _0x1b3f37=_0x174d24;_0x457929[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1ca2'),'$q','toasty',_0x21d0f5('0x2467'),_0x21d0f5('0x13cb'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),_0x21d0f5('0xb25')];function _0x457929(_0x421f97,_0x415b2d,_0xfe2ea5,_0x4432fe,_0x3280e7,_0x4b7bdd,_0x855a1f,_0x1d2a22){const _0x3d3bed=_0x21d0f5,_0x7ae786=this;_0x7ae786[_0x3d3bed('0x32a')]=_0x855a1f[_0x3d3bed('0x2428')](),_0x7ae786['errors']=[],_0x7ae786[_0x3d3bed('0x134b')]=_0x3d3bed('0x23e')+(_0x4432fe[_0x3d3bed('0x27c0')]||_0x4432fe[_0x3d3bed('0x18f5')])['toUpperCase'](),_0x7ae786['noop']=angular[_0x3d3bed('0x6fb')](_0x4432fe),_0x7ae786[_0x3d3bed('0xb25')]=_0x1d2a22,_0x7ae786['hasModulePermissions']={};if(_0x7ae786[_0x3d3bed('0x2b8')][_0x3d3bed('0x13fc')])switch(_0x7ae786[_0x3d3bed('0x2b8')][_0x3d3bed('0x27c0')]?_0x7ae786['noop']['appType'][_0x3d3bed('0x20d5')]():_0x7ae786[_0x3d3bed('0x2b8')][_0x3d3bed('0x18f5')][_0x3d3bed('0x20d5')]()){case _0x3d3bed('0xa8d'):break;case _0x3d3bed('0x185e'):{const _0x345125=_0x7ae786[_0x3d3bed('0x2b8')][_0x3d3bed('0x13fc')][_0x3d3bed('0xaf8')](',');_0x7ae786[_0x3d3bed('0x2b8')][_0x3d3bed('0xa0c')]=_0x345125[0x0],_0x7ae786['noop'][_0x3d3bed('0xeff')]=_0x345125[0x1],_0x7ae786[_0x3d3bed('0x2b8')][_0x3d3bed('0x1cbc')]=_0x345125[_0x3d3bed('0x1b77')](0x2,_0x345125[_0x3d3bed('0x1e22')])[_0x3d3bed('0xa04')](',');}break;case'dialogflowv2':{const _0x3ae332=_0x7ae786[_0x3d3bed('0x2b8')][_0x3d3bed('0x13fc')]['split'](',');_0x7ae786[_0x3d3bed('0x2b8')][_0x3d3bed('0x20e')]=_0x3ae332[0x0],_0x7ae786[_0x3d3bed('0x2b8')][_0x3d3bed('0x1f91')]=_0x3ae332[0x1],_0x7ae786['noop']['privateKey']=_0x3ae332[0x2],_0x7ae786['noop']['language']=_0x3ae332[0x3],_0x7ae786['noop'][_0x3d3bed('0x1cbc')]=_0x3ae332[_0x3d3bed('0x1b77')](0x4,_0x3ae332[_0x3d3bed('0x1e22')])[_0x3d3bed('0xa04')](',');}break;case _0x3d3bed('0x102c'):{const _0x5b31a6=_0x7ae786['noop'][_0x3d3bed('0x13fc')]['split'](',');_0x7ae786[_0x3d3bed('0x2b8')][_0x3d3bed('0x1a82')]=_0x5b31a6[0x0],_0x7ae786[_0x3d3bed('0x2b8')]['secretaccesskey']=_0x5b31a6[0x1],_0x7ae786[_0x3d3bed('0x2b8')]['lexregion']=_0x5b31a6[0x2],_0x7ae786[_0x3d3bed('0x2b8')]['botname']=_0x5b31a6[0x3],_0x7ae786[_0x3d3bed('0x2b8')][_0x3d3bed('0x1cbc')]=_0x5b31a6[_0x3d3bed('0x1b77')](0x4,_0x5b31a6['length'])[_0x3d3bed('0xa04')](',');}break;case _0x3d3bed('0x187b'):{const _0x99070d=_0x7ae786[_0x3d3bed('0x2b8')]['appdata'][_0x3d3bed('0xaf8')](',');_0x7ae786[_0x3d3bed('0x2b8')][_0x3d3bed('0x663')]=isNaN(_0x99070d[0x0])?_0x99070d[0x0]:parseInt(_0x99070d[0x0],0xa),_0x7ae786[_0x3d3bed('0x2b8')][_0x3d3bed('0x25ed')]=_0x99070d[_0x3d3bed('0x1b77')](0x1,_0x99070d[_0x3d3bed('0x1e22')])['join'](',');}break;case _0x3d3bed('0x1b86'):_0x7ae786[_0x3d3bed('0x2b8')][_0x3d3bed('0x25ed')]=_0x7ae786['noop'][_0x3d3bed('0x13fc')];break;case _0x3d3bed('0xe50'):_0x7ae786[_0x3d3bed('0x2b8')][_0x3d3bed('0x1909')]=_0x7ae786[_0x3d3bed('0x2b8')]['appdata'][_0x3d3bed('0xaf8')]('=')[0x0],_0x7ae786[_0x3d3bed('0x2b8')][_0x3d3bed('0x10cc')]=_0x7ae786[_0x3d3bed('0x2b8')][_0x3d3bed('0x13fc')][_0x3d3bed('0xaf8')]('=')[0x1];break;case _0x3d3bed('0x1efd'):_0x7ae786[_0x3d3bed('0x2b8')][_0x3d3bed('0xef0')]=_0x7ae786[_0x3d3bed('0x2b8')][_0x3d3bed('0x13fc')];break;default:{const _0x44209f=_0x7ae786[_0x3d3bed('0x2b8')][_0x3d3bed('0x13fc')]['split'](',');_0x7ae786[_0x3d3bed('0x2b8')]['value']=_0x36f548()[_0x3d3bed('0x1fc5')](_0x44209f[0x0])?_0x44209f[0x0]:isNaN(_0x44209f[0x0])?_0x44209f[0x0]:parseInt(_0x44209f[0x0],0xa);}break;}else{}_0x7ae786[_0x3d3bed('0x2b8')]['type']&&_0x7ae786[_0x3d3bed('0x2b8')][_0x3d3bed('0x19fd')]['toLowerCase']()==='outbound'&&_0x7ae786[_0x3d3bed('0x2b8')][_0x3d3bed('0x27c0')][_0x3d3bed('0x20d5')]()==='outbounddial'&&(_0x7ae786[_0x3d3bed('0x2b8')][_0x3d3bed('0x2137')]=_0x7ae786['noop'][_0x3d3bed('0x1546')]?_0x7ae786[_0x3d3bed('0x2b8')][_0x3d3bed('0x1546')][_0x3d3bed('0xaf8')]('$')[0x0]:undefined,_0x7ae786[_0x3d3bed('0x2b8')][_0x3d3bed('0x7d0')]=_0x7ae786[_0x3d3bed('0x2b8')][_0x3d3bed('0xc38')]?_0x3d3bed('0x83a')+_0x7ae786[_0x3d3bed('0x2b8')][_0x3d3bed('0xc38')]:undefined);_0x7ae786[_0x3d3bed('0x1b83')]=_0x71a32e,_0x7ae786['closeDialog']=_0x173d9d;function _0x71a32e(){const _0x8caa9b=_0x3d3bed;_0x7ae786[_0x8caa9b('0x120f')]=[];const _0x55a561=[];_0x7ae786[_0x8caa9b('0x2b8')]['type']&&_0x7ae786['noop'][_0x8caa9b('0x19fd')][_0x8caa9b('0x20d5')]()===_0x8caa9b('0x25b6')&&_0x7ae786[_0x8caa9b('0x2b8')][_0x8caa9b('0x27c0')]==='outboundDial'&&(_0x7ae786['noop'][_0x8caa9b('0x1546')]=_0x3280e7[_0x8caa9b('0x388')]?(_0x7ae786['noop'][_0x8caa9b('0x2137')]||'')+_0x8caa9b('0x2100')+_0x3280e7[_0x8caa9b('0x388')]+'}':(_0x7ae786[_0x8caa9b('0x2b8')][_0x8caa9b('0x2137')]||'')+_0x8caa9b('0x1f76'),_0x3280e7['recordingFormat']!=='none'?_0x7ae786[_0x8caa9b('0x2b8')]['options'][_0x8caa9b('0x203c')](_0x8caa9b('0x22c9'))<0x0&&(_0x7ae786[_0x8caa9b('0x2b8')][_0x8caa9b('0x249a')]+=_0x8caa9b('0x22c9')):_0x7ae786[_0x8caa9b('0x2b8')]['options']=_0x7ae786[_0x8caa9b('0x2b8')][_0x8caa9b('0x249a')][_0x8caa9b('0x814')](_0x8caa9b('0x22c9'),''));if(_0x7ae786[_0x8caa9b('0x2b8')][_0x8caa9b('0x27c0')]&&_0x7ae786['noop'][_0x8caa9b('0x27c0')]===_0x8caa9b('0xa8d')){}else switch((_0x7ae786['noop'][_0x8caa9b('0x18f5')]||_0x7ae786[_0x8caa9b('0x2b8')][_0x8caa9b('0x27c0')])[_0x8caa9b('0x20d5')]()){case _0x8caa9b('0xe50'):_0x7ae786[_0x8caa9b('0x2b8')][_0x8caa9b('0x13fc')]=_0x7ae786[_0x8caa9b('0x2b8')][_0x8caa9b('0x1909')]+'='+_0x7ae786['noop'][_0x8caa9b('0x10cc')];break;case _0x8caa9b('0xa8d'):break;default:_0x55a561[0x0]=_0x7ae786[_0x8caa9b('0x2b8')]['value'],_0x7ae786[_0x8caa9b('0x2b8')][_0x8caa9b('0x13fc')]=_0x55a561[_0x8caa9b('0xa04')](',');}_0x173d9d(_0x7ae786[_0x8caa9b('0x2b8')]);}function _0x173d9d(_0xa8e9ad){const _0x28abcb=_0x3d3bed;_0x421f97[_0x28abcb('0x237e')](_0xa8e9ad);}}const _0x4a1aa1=_0x457929;_0x4bf720[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1ca2'),'$q','toasty',_0x21d0f5('0x2467'),'openchannelAccount','api',_0x21d0f5('0x1150'),'crudPermissions'];function _0x4bf720(_0x4826ae,_0x598492,_0x182625,_0xe22ab4,_0x339228,_0x3aee7c,_0x12fe1a,_0x53c088){const _0x1bd884=_0x21d0f5,_0x425f09=this;_0x425f09[_0x1bd884('0x32a')]=_0x12fe1a[_0x1bd884('0x2428')](),_0x425f09[_0x1bd884('0x120f')]=[],_0x425f09[_0x1bd884('0x134b')]=_0x1bd884('0x23e')+(_0xe22ab4[_0x1bd884('0x27c0')]||_0xe22ab4[_0x1bd884('0x18f5')])['toUpperCase'](),_0x425f09[_0x1bd884('0x150b')]=angular[_0x1bd884('0x6fb')](_0xe22ab4),_0x425f09[_0x1bd884('0xb25')]=_0x53c088,_0x425f09[_0x1bd884('0x2c9')]={};if(_0x425f09[_0x1bd884('0x150b')]['appdata'])switch(_0x425f09[_0x1bd884('0x150b')][_0x1bd884('0x27c0')]?_0x425f09[_0x1bd884('0x150b')]['appType'][_0x1bd884('0x20d5')]():_0x425f09[_0x1bd884('0x150b')][_0x1bd884('0x18f5')]['toLowerCase']()){case _0x1bd884('0xa8d'):break;case _0x1bd884('0x185e'):{const _0x57769b=_0x425f09[_0x1bd884('0x150b')]['appdata'][_0x1bd884('0xaf8')](',');_0x425f09[_0x1bd884('0x150b')]['key']=_0x57769b[0x0],_0x425f09['queue'][_0x1bd884('0xeff')]=_0x57769b[0x1],_0x425f09[_0x1bd884('0x150b')][_0x1bd884('0x1cbc')]=_0x57769b[_0x1bd884('0x1b77')](0x2,_0x57769b[_0x1bd884('0x1e22')])[_0x1bd884('0xa04')](',');}break;case'dialogflowv2':{const _0x4efece=_0x425f09['queue']['appdata'][_0x1bd884('0xaf8')](',');_0x425f09[_0x1bd884('0x150b')][_0x1bd884('0x20e')]=_0x4efece[0x0],_0x425f09[_0x1bd884('0x150b')]['clientEmail']=_0x4efece[0x1],_0x425f09[_0x1bd884('0x150b')]['privateKey']=_0x4efece[0x2],_0x425f09[_0x1bd884('0x150b')][_0x1bd884('0xeff')]=_0x4efece[0x3],_0x425f09[_0x1bd884('0x150b')][_0x1bd884('0x1cbc')]=_0x4efece[_0x1bd884('0x1b77')](0x4,_0x4efece[_0x1bd884('0x1e22')])[_0x1bd884('0xa04')](',');}break;case _0x1bd884('0x102c'):{const _0x3cb11d=_0x425f09[_0x1bd884('0x150b')]['appdata'][_0x1bd884('0xaf8')](',');_0x425f09[_0x1bd884('0x150b')][_0x1bd884('0x1a82')]=_0x3cb11d[0x0],_0x425f09[_0x1bd884('0x150b')][_0x1bd884('0x1422')]=_0x3cb11d[0x1],_0x425f09[_0x1bd884('0x150b')][_0x1bd884('0x165a')]=_0x3cb11d[0x2],_0x425f09['queue'][_0x1bd884('0x1e8f')]=_0x3cb11d[0x3],_0x425f09[_0x1bd884('0x150b')][_0x1bd884('0x1cbc')]=_0x3cb11d[_0x1bd884('0x1b77')](0x4,_0x3cb11d[_0x1bd884('0x1e22')])[_0x1bd884('0xa04')](',');}break;case _0x1bd884('0x187b'):{const _0x8069da=_0x425f09[_0x1bd884('0x150b')][_0x1bd884('0x13fc')]['split'](',');_0x425f09[_0x1bd884('0x150b')]['times']=isNaN(_0x8069da[0x0])?_0x8069da[0x0]:parseInt(_0x8069da[0x0],0xa),_0x425f09[_0x1bd884('0x150b')][_0x1bd884('0x25ed')]=_0x8069da['slice'](0x1,_0x8069da['length'])[_0x1bd884('0xa04')](',');}break;case'message':_0x425f09[_0x1bd884('0x150b')][_0x1bd884('0x25ed')]=_0x425f09[_0x1bd884('0x150b')][_0x1bd884('0x13fc')];break;case'set':_0x425f09[_0x1bd884('0x150b')][_0x1bd884('0x1909')]=_0x425f09['queue'][_0x1bd884('0x13fc')][_0x1bd884('0xaf8')]('=')[0x0],_0x425f09[_0x1bd884('0x150b')][_0x1bd884('0x10cc')]=_0x425f09[_0x1bd884('0x150b')][_0x1bd884('0x13fc')][_0x1bd884('0xaf8')]('=')[0x1];break;case _0x1bd884('0x1efd'):_0x425f09['queue'][_0x1bd884('0xef0')]=_0x425f09[_0x1bd884('0x150b')][_0x1bd884('0x13fc')];break;default:{const _0x24f418=_0x425f09[_0x1bd884('0x150b')][_0x1bd884('0x13fc')][_0x1bd884('0xaf8')](',');_0x425f09[_0x1bd884('0x150b')][_0x1bd884('0x150b')]=_0x36f548()['isEmpty'](_0x24f418[0x0])?_0x24f418[0x0]:isNaN(_0x24f418[0x0])?_0x24f418[0x0]:parseInt(_0x24f418[0x0],0xa),_0x425f09[_0x1bd884('0x150b')][_0x1bd884('0xfbe')]=_0x36f548()[_0x1bd884('0x1fc5')](_0x24f418[0x1])?_0x24f418[0x1]:isNaN(_0x24f418[0x1])?_0x24f418[0x1]:parseInt(_0x24f418[0x1],0xa);}break;}else _0x425f09['queue'][_0x1bd884('0x150b')]=0x12c,_0x425f09[_0x1bd884('0x150b')][_0x1bd884('0xfbe')]=0x12c;_0x425f09[_0x1bd884('0x150b')][_0x1bd884('0x19fd')]&&_0x425f09[_0x1bd884('0x150b')][_0x1bd884('0x19fd')]['toLowerCase']()===_0x1bd884('0x25b6')&&_0x425f09[_0x1bd884('0x150b')][_0x1bd884('0x27c0')][_0x1bd884('0x20d5')]()===_0x1bd884('0x1a64')&&(_0x425f09[_0x1bd884('0x150b')][_0x1bd884('0x2137')]=_0x425f09[_0x1bd884('0x150b')][_0x1bd884('0x1546')]?_0x425f09[_0x1bd884('0x150b')][_0x1bd884('0x1546')][_0x1bd884('0xaf8')]('$')[0x0]:undefined,_0x425f09[_0x1bd884('0x150b')]['callerId']=_0x425f09['queue']['callerID']?_0x1bd884('0x83a')+_0x425f09[_0x1bd884('0x150b')][_0x1bd884('0xc38')]:undefined);_0x425f09[_0x1bd884('0x1b83')]=_0x250599,_0x425f09[_0x1bd884('0xc4e')]=_0x556a14,_0x12fe1a[_0x1bd884('0x4ee')](_0x1bd884('0xf45'))?_0x3aee7c[_0x1bd884('0x121f')][_0x1bd884('0xbaa')]({'fields':_0x1bd884('0xde'),'sort':'name','nolimit':_0x1bd884('0x204c')})[_0x1bd884('0x1549')][_0x1bd884('0x11bf')](function(_0x7160eb){const _0xd73809=_0x1bd884;_0x425f09[_0xd73809('0x1de3')]=_0x7160eb[_0xd73809('0x19b2')]||[];})[_0x1bd884('0x151d')](function(_0x42fb1f){const _0x22717b=_0x1bd884;_0x182625['error']({'title':_0x42fb1f[_0x22717b('0xff9')]?'API:'+_0x42fb1f[_0x22717b('0xff9')]+'\x20-\x20'+_0x42fb1f[_0x22717b('0x212f')]:_0x22717b('0x23e0'),'msg':_0x42fb1f[_0x22717b('0x4e8')]?JSON[_0x22717b('0x3e')](_0x42fb1f[_0x22717b('0x4e8')]):_0x42fb1f[_0x22717b('0xaab')]()});}):_0x3aee7c[_0x1bd884('0x121f')][_0x1bd884('0xbaa')]({'fields':'id,name,type','sort':_0x1bd884('0x1909'),'nolimit':_0x1bd884('0x204c')})[_0x1bd884('0x1549')]['then'](function(_0xcff4e7){const _0x49f797=_0x1bd884;_0x425f09[_0x49f797('0x1de3')]=_0xcff4e7[_0x49f797('0x19b2')]||[];})[_0x1bd884('0x11bf')](function(){const _0x3ffb2b=_0x1bd884;return _0x3aee7c[_0x3ffb2b('0x1d63')][_0x3ffb2b('0xbaa')]({'userProfileId':_0x425f09[_0x3ffb2b('0x32a')][_0x3ffb2b('0x781')],'sectionId':0x321})[_0x3ffb2b('0x1549')];})[_0x1bd884('0x11bf')](function(_0x2b8006){const _0x1be286=_0x1bd884,_0x3c2d5a=_0x2b8006&&_0x2b8006[_0x1be286('0x19b2')]?_0x2b8006[_0x1be286('0x19b2')][0x0]:null;if(!_0x3c2d5a){const _0x48cdf2=[];let _0x521d82=null;_0x425f09[_0x1be286('0x150b')]&&(_0x521d82=_0x36f548()[_0x1be286('0x1ad4')](_0x425f09[_0x1be286('0x1de3')],{'name':_0x425f09[_0x1be286('0x150b')]['queue']}));for(let _0x58e07b=0x0;_0x58e07b<_0x425f09[_0x1be286('0x1de3')][_0x1be286('0x1e22')];_0x58e07b++){_0x521d82&&_0x425f09['queues'][_0x58e07b]['id']===_0x521d82['id']&&(_0x425f09[_0x1be286('0x1de3')][_0x58e07b][_0x1be286('0x254a')]=![],_0x48cdf2[_0x1be286('0x105d')](_0x425f09[_0x1be286('0x1de3')][_0x58e07b]));}_0x425f09[_0x1be286('0x1de3')]=_0x48cdf2;}else{if(!_0x3c2d5a[_0x1be286('0xf11')])return _0x3aee7c[_0x1be286('0x26d1')][_0x1be286('0xbaa')]({'sectionId':_0x3c2d5a['id']})[_0x1be286('0x1549')][_0x1be286('0x11bf')](function(_0xe63158){const _0xb109e=_0x1be286,_0x5019df=_0x36f548()[_0xb109e('0x2171')](_0xe63158[_0xb109e('0x19b2')],function(_0x1f37bb){const _0x14ba36=_0xb109e;return _0x36f548()['find'](_0x425f09['queues'],{'id':_0x1f37bb[_0x14ba36('0x15a5')]});});let _0x4be9fe=null;_0x425f09['queue']&&(_0x4be9fe=_0x36f548()['find'](_0x425f09['queues'],{'name':_0x425f09[_0xb109e('0x150b')][_0xb109e('0x150b')]}));if(_0x4be9fe&&!_0x36f548()[_0xb109e('0x1cb3')](_0x5019df,['id',_0x4be9fe['id']])){const _0x338bc0=_0x36f548()['find'](_0x425f09[_0xb109e('0x1de3')],{'id':_0x4be9fe['id']});_0x338bc0['canSelect']=![],_0x5019df[_0xb109e('0x105d')](_0x338bc0);}_0x425f09[_0xb109e('0x1de3')]=_0x5019df;});}})[_0x1bd884('0x151d')](function(_0x471c7f){const _0x59c397=_0x1bd884;_0x182625['error']({'title':_0x471c7f[_0x59c397('0xff9')]?_0x59c397('0x574')+_0x471c7f[_0x59c397('0xff9')]+_0x59c397('0xb0b')+_0x471c7f[_0x59c397('0x212f')]:_0x59c397('0xebd'),'msg':_0x471c7f[_0x59c397('0x4e8')]?JSON['stringify'](_0x471c7f[_0x59c397('0x4e8')]):_0x471c7f[_0x59c397('0xaab')]()});});function _0x250599(){const _0x2183b1=_0x1bd884;_0x425f09['errors']=[];const _0x472c5f=[];_0x425f09[_0x2183b1('0x150b')]['type']&&_0x425f09[_0x2183b1('0x150b')][_0x2183b1('0x19fd')][_0x2183b1('0x20d5')]()===_0x2183b1('0x25b6')&&_0x425f09[_0x2183b1('0x150b')][_0x2183b1('0x27c0')]==='outboundDial'&&(_0x425f09['queue'][_0x2183b1('0x1546')]=_0x339228['cutdigits']?(_0x425f09['queue'][_0x2183b1('0x2137')]||'')+_0x2183b1('0x2100')+_0x339228[_0x2183b1('0x388')]+'}':(_0x425f09[_0x2183b1('0x150b')][_0x2183b1('0x2137')]||'')+_0x2183b1('0x1f76'),_0x339228[_0x2183b1('0x897')]!==_0x2183b1('0x3e6')?_0x425f09[_0x2183b1('0x150b')][_0x2183b1('0x249a')][_0x2183b1('0x203c')](_0x2183b1('0x22c9'))<0x0&&(_0x425f09['queue'][_0x2183b1('0x249a')]+=_0x2183b1('0x22c9')):_0x425f09[_0x2183b1('0x150b')][_0x2183b1('0x249a')]=_0x425f09['queue'][_0x2183b1('0x249a')][_0x2183b1('0x814')](_0x2183b1('0x22c9'),''));const _0xc3de88=_0x36f548()[_0x2183b1('0x1ad4')](_0x425f09['queues'],{'name':_0x425f09[_0x2183b1('0x150b')]['queue']});_0xc3de88&&(_0x425f09[_0x2183b1('0x150b')][_0x36f548()[_0x2183b1('0x22c2')](_0x2183b1('0x21c1'))+'QueueId']=_0xc3de88['id']);if(_0x425f09[_0x2183b1('0x150b')]['appType']&&_0x425f09[_0x2183b1('0x150b')]['appType']===_0x2183b1('0xa8d')){}else switch((_0x425f09[_0x2183b1('0x150b')][_0x2183b1('0x18f5')]||_0x425f09['queue']['appType'])[_0x2183b1('0x20d5')]()){case'set':_0x425f09[_0x2183b1('0x150b')]['appdata']=_0x425f09[_0x2183b1('0x150b')]['name']+'='+_0x425f09['queue'][_0x2183b1('0x10cc')];break;case'custom':break;default:_0x472c5f[0x0]=_0x425f09['queue']['queue'],_0x472c5f[0x1]=_0x425f09[_0x2183b1('0x150b')][_0x2183b1('0xfbe')],_0x425f09['queue'][_0x2183b1('0x13fc')]=_0x472c5f[_0x2183b1('0xa04')](',');}_0x556a14(_0x425f09[_0x2183b1('0x150b')]);}function _0x556a14(_0x2f2811){_0x4826ae['hide'](_0x2f2811);}}const _0x12b54f=_0x4bf720;_0x32240c[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1ca2'),'$q','toasty',_0x21d0f5('0x2467'),_0x21d0f5('0x13cb'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),_0x21d0f5('0xb25')];function _0x32240c(_0x2cb362,_0xafd2e,_0x11c049,_0x441a7b,_0x1c8861,_0xb7c6b8,_0x1b2448,_0x2d8847){const _0x929b45=_0x21d0f5,_0x234a42=this;_0x234a42[_0x929b45('0x32a')]=_0x1b2448[_0x929b45('0x2428')](),_0x234a42[_0x929b45('0x120f')]=[],_0x234a42[_0x929b45('0x134b')]=_0x929b45('0x23e')+(_0x441a7b['appType']||_0x441a7b[_0x929b45('0x18f5')])[_0x929b45('0xa6f')](),_0x234a42[_0x929b45('0x196d')]=angular['copy'](_0x441a7b),_0x234a42[_0x929b45('0xb25')]=_0x2d8847,_0x234a42[_0x929b45('0x2c9')]={};if(_0x234a42[_0x929b45('0x196d')][_0x929b45('0x13fc')])switch(_0x234a42[_0x929b45('0x196d')][_0x929b45('0x27c0')]?_0x234a42[_0x929b45('0x196d')]['appType'][_0x929b45('0x20d5')]():_0x234a42[_0x929b45('0x196d')]['app']['toLowerCase']()){case _0x929b45('0xa8d'):break;case _0x929b45('0x185e'):{const _0x3f2581=_0x234a42[_0x929b45('0x196d')][_0x929b45('0x13fc')][_0x929b45('0xaf8')](',');_0x234a42[_0x929b45('0x196d')][_0x929b45('0xa0c')]=_0x3f2581[0x0],_0x234a42['system'][_0x929b45('0xeff')]=_0x3f2581[0x1],_0x234a42['system'][_0x929b45('0x1cbc')]=_0x3f2581['slice'](0x2,_0x3f2581[_0x929b45('0x1e22')])[_0x929b45('0xa04')](',');}break;case _0x929b45('0x21a8'):{const _0x2bda1d=_0x234a42[_0x929b45('0x196d')][_0x929b45('0x13fc')]['split'](',');_0x234a42[_0x929b45('0x196d')][_0x929b45('0x20e')]=_0x2bda1d[0x0],_0x234a42[_0x929b45('0x196d')][_0x929b45('0x1f91')]=_0x2bda1d[0x1],_0x234a42['system'][_0x929b45('0x1c6c')]=_0x2bda1d[0x2],_0x234a42[_0x929b45('0x196d')]['language']=_0x2bda1d[0x3],_0x234a42[_0x929b45('0x196d')][_0x929b45('0x1cbc')]=_0x2bda1d[_0x929b45('0x1b77')](0x4,_0x2bda1d[_0x929b45('0x1e22')])[_0x929b45('0xa04')](',');}break;case _0x929b45('0x102c'):{const _0x134537=_0x234a42[_0x929b45('0x196d')][_0x929b45('0x13fc')][_0x929b45('0xaf8')](',');_0x234a42[_0x929b45('0x196d')][_0x929b45('0x1a82')]=_0x134537[0x0],_0x234a42[_0x929b45('0x196d')][_0x929b45('0x1422')]=_0x134537[0x1],_0x234a42['system'][_0x929b45('0x165a')]=_0x134537[0x2],_0x234a42[_0x929b45('0x196d')][_0x929b45('0x1e8f')]=_0x134537[0x3],_0x234a42['system'][_0x929b45('0x1cbc')]=_0x134537[_0x929b45('0x1b77')](0x4,_0x134537['length'])['join'](',');}break;case _0x929b45('0x187b'):{const _0x476992=_0x234a42[_0x929b45('0x196d')]['appdata']['split'](',');_0x234a42[_0x929b45('0x196d')][_0x929b45('0x663')]=isNaN(_0x476992[0x0])?_0x476992[0x0]:parseInt(_0x476992[0x0],0xa),_0x234a42[_0x929b45('0x196d')][_0x929b45('0x25ed')]=_0x476992['slice'](0x1,_0x476992[_0x929b45('0x1e22')])['join'](',');}break;case _0x929b45('0x1b86'):_0x234a42[_0x929b45('0x196d')][_0x929b45('0x25ed')]=_0x234a42[_0x929b45('0x196d')][_0x929b45('0x13fc')];break;case _0x929b45('0xe50'):_0x234a42[_0x929b45('0x196d')][_0x929b45('0x1909')]=_0x234a42[_0x929b45('0x196d')][_0x929b45('0x13fc')][_0x929b45('0xaf8')]('=')[0x0],_0x234a42[_0x929b45('0x196d')][_0x929b45('0x10cc')]=_0x234a42[_0x929b45('0x196d')][_0x929b45('0x13fc')][_0x929b45('0xaf8')]('=')[0x1];break;case'agi':_0x234a42[_0x929b45('0x196d')][_0x929b45('0xef0')]=_0x234a42[_0x929b45('0x196d')][_0x929b45('0x13fc')];break;default:{const _0x589452=_0x234a42[_0x929b45('0x196d')][_0x929b45('0x13fc')][_0x929b45('0xaf8')](',');_0x234a42['system']['command']=_0x36f548()[_0x929b45('0x1fc5')](_0x589452[0x0])?_0x589452[0x0]:isNaN(_0x589452[0x0])?_0x589452[0x0]:parseInt(_0x589452[0x0],0xa),_0x234a42[_0x929b45('0x196d')][_0x929b45('0xb0')]=_0x36f548()[_0x929b45('0x1fc5')](_0x589452[0x1])?_0x589452[0x1]:isNaN(_0x589452[0x1])?_0x589452[0x1]:parseInt(_0x589452[0x1],0xa);}break;}else _0x234a42[_0x929b45('0x196d')][_0x929b45('0xb0')]='';_0x234a42[_0x929b45('0x196d')]['type']&&_0x234a42[_0x929b45('0x196d')]['type'][_0x929b45('0x20d5')]()==='outbound'&&_0x234a42[_0x929b45('0x196d')]['appType']['toLowerCase']()===_0x929b45('0x1a64')&&(_0x234a42[_0x929b45('0x196d')][_0x929b45('0x2137')]=_0x234a42[_0x929b45('0x196d')][_0x929b45('0x1546')]?_0x234a42[_0x929b45('0x196d')][_0x929b45('0x1546')]['split']('$')[0x0]:undefined,_0x234a42['system']['callerId']=_0x234a42['system']['callerID']?'CALLERID(all)='+_0x234a42['system'][_0x929b45('0xc38')]:undefined);_0x234a42[_0x929b45('0x1b83')]=_0x20650f,_0x234a42[_0x929b45('0xc4e')]=_0xdb337d,_0x1b2448['hasRole']('admin')?_0xb7c6b8[_0x929b45('0xb0')][_0x929b45('0xbaa')]({'fields':_0x929b45('0x721'),'sort':_0x929b45('0x1909'),'nolimit':_0x929b45('0x204c')})[_0x929b45('0x1549')][_0x929b45('0x11bf')](function(_0x2dd4ca){const _0x27e81b=_0x929b45;_0x234a42[_0x27e81b('0x1700')]=_0x2dd4ca[_0x27e81b('0x19b2')]||[];})[_0x929b45('0x151d')](function(_0x4fc489){const _0x34fb56=_0x929b45;_0x11c049[_0x34fb56('0x255')]({'title':_0x4fc489[_0x34fb56('0xff9')]?_0x34fb56('0x574')+_0x4fc489[_0x34fb56('0xff9')]+_0x34fb56('0xb0b')+_0x4fc489[_0x34fb56('0x212f')]:'SYSTEM:GET_VARIABLES','msg':_0x4fc489['data']?JSON[_0x34fb56('0x3e')](_0x4fc489[_0x34fb56('0x4e8')]):_0x4fc489[_0x34fb56('0xaab')]()});}):_0xb7c6b8[_0x929b45('0xb0')][_0x929b45('0xbaa')]({'fields':_0x929b45('0x721'),'sort':_0x929b45('0x1909'),'nolimit':_0x929b45('0x204c')})[_0x929b45('0x1549')][_0x929b45('0x11bf')](function(_0x61aaac){const _0x5abc0c=_0x929b45;_0x234a42['variables']=_0x61aaac[_0x5abc0c('0x19b2')]||[];})['then'](function(){const _0xa7882b=_0x929b45;return _0xb7c6b8[_0xa7882b('0x1d63')][_0xa7882b('0xbaa')]({'userProfileId':_0x234a42[_0xa7882b('0x32a')]['userProfileId'],'sectionId':0x3f4})[_0xa7882b('0x1549')];})['then'](function(_0x1aa108){const _0x22f913=_0x929b45,_0x30c7be=_0x1aa108&&_0x1aa108[_0x22f913('0x19b2')]?_0x1aa108[_0x22f913('0x19b2')][0x0]:null;if(!_0x30c7be){const _0x1ef1f1=[];let _0x5ee371=null;_0x234a42[_0x22f913('0x196d')]&&(_0x5ee371=_0x36f548()[_0x22f913('0x1ad4')](_0x234a42[_0x22f913('0x1700')],{'name':_0x234a42[_0x22f913('0x196d')][_0x22f913('0xb0')]}));for(let _0x4ebb69=0x0;_0x4ebb69<_0x234a42[_0x22f913('0x1700')][_0x22f913('0x1e22')];_0x4ebb69++){_0x5ee371&&_0x234a42[_0x22f913('0x1700')][_0x4ebb69]['id']===_0x5ee371['id']&&(_0x234a42[_0x22f913('0x1700')][_0x4ebb69][_0x22f913('0x254a')]=![],_0x1ef1f1[_0x22f913('0x105d')](_0x234a42[_0x22f913('0x1700')][_0x4ebb69]));}_0x234a42['variables']=_0x1ef1f1;}else{if(!_0x30c7be[_0x22f913('0xf11')])return _0xb7c6b8[_0x22f913('0x26d1')]['get']({'sectionId':_0x30c7be['id']})[_0x22f913('0x1549')][_0x22f913('0x11bf')](function(_0x2045d5){const _0xfe16c0=_0x22f913,_0x342272=_0x36f548()['map'](_0x2045d5[_0xfe16c0('0x19b2')],function(_0x1e08ae){const _0x4315bc=_0xfe16c0;return _0x36f548()['find'](_0x234a42[_0x4315bc('0x1700')],{'id':_0x1e08ae['resourceId']});});let _0x56a848=null;_0x234a42[_0xfe16c0('0x196d')]&&(_0x56a848=_0x36f548()[_0xfe16c0('0x1ad4')](_0x234a42['variables'],{'name':_0x234a42[_0xfe16c0('0x196d')]['variable']}));if(_0x56a848&&!_0x36f548()[_0xfe16c0('0x1cb3')](_0x342272,['id',_0x56a848['id']])){const _0x57f0f6=_0x36f548()[_0xfe16c0('0x1ad4')](_0x234a42[_0xfe16c0('0x1700')],{'id':_0x56a848['id']});_0x57f0f6[_0xfe16c0('0x254a')]=![],_0x342272['push'](_0x57f0f6);}_0x234a42['variables']=_0x342272;});}})['catch'](function(_0x38ee4d){const _0x1f775a=_0x929b45;_0x11c049[_0x1f775a('0x255')]({'title':_0x38ee4d['status']?_0x1f775a('0x574')+_0x38ee4d[_0x1f775a('0xff9')]+_0x1f775a('0xb0b')+_0x38ee4d[_0x1f775a('0x212f')]:_0x1f775a('0x214a'),'msg':_0x38ee4d['data']?JSON[_0x1f775a('0x3e')](_0x38ee4d['data']):_0x38ee4d['toString']()});});function _0x20650f(){const _0x1c015b=_0x929b45;_0x234a42[_0x1c015b('0x120f')]=[];const _0xde0323=[];_0x234a42[_0x1c015b('0x196d')][_0x1c015b('0x19fd')]&&_0x234a42[_0x1c015b('0x196d')][_0x1c015b('0x19fd')][_0x1c015b('0x20d5')]()===_0x1c015b('0x25b6')&&_0x234a42[_0x1c015b('0x196d')][_0x1c015b('0x27c0')]===_0x1c015b('0x1bf6')&&(_0x234a42['system']['phone']=_0x1c8861[_0x1c015b('0x388')]?(_0x234a42[_0x1c015b('0x196d')][_0x1c015b('0x2137')]||'')+_0x1c015b('0x2100')+_0x1c8861[_0x1c015b('0x388')]+'}':(_0x234a42[_0x1c015b('0x196d')][_0x1c015b('0x2137')]||'')+'${EXTEN}',_0x1c8861[_0x1c015b('0x897')]!==_0x1c015b('0x3e6')?_0x234a42[_0x1c015b('0x196d')][_0x1c015b('0x249a')]['indexOf'](_0x1c015b('0x22c9'))<0x0&&(_0x234a42['system']['options']+=_0x1c015b('0x22c9')):_0x234a42['system'][_0x1c015b('0x249a')]=_0x234a42['system'][_0x1c015b('0x249a')]['replace']('U(xcally-mixmonitor-context)',''));if(_0x234a42['system'][_0x1c015b('0x27c0')]&&_0x234a42[_0x1c015b('0x196d')]['appType']==='custom'){}else switch((_0x234a42['system'][_0x1c015b('0x18f5')]||_0x234a42[_0x1c015b('0x196d')][_0x1c015b('0x27c0')])[_0x1c015b('0x20d5')]()){case _0x1c015b('0xe50'):_0x234a42['system']['appdata']=_0x234a42[_0x1c015b('0x196d')][_0x1c015b('0x1909')]+'='+_0x234a42['system'][_0x1c015b('0x10cc')];break;case _0x1c015b('0xa8d'):break;default:_0xde0323[0x0]=_0x234a42['system']['command'],_0xde0323[0x1]=_0x234a42[_0x1c015b('0x196d')][_0x1c015b('0xb0')],_0x234a42['system'][_0x1c015b('0x13fc')]=_0xde0323[_0x1c015b('0xa04')](',');}_0xdb337d(_0x234a42[_0x1c015b('0x196d')]);}function _0xdb337d(_0x261712){const _0x488c36=_0x929b45;_0x2cb362[_0x488c36('0x237e')](_0x261712);}}const _0x4c665a=_0x32240c;_0x3cd9ac['$inject']=['$mdDialog','$q',_0x21d0f5('0x142d'),'openchannelAccountApp',_0x21d0f5('0x13cb'),_0x21d0f5('0x12a5'),'Auth','crudPermissions'];function _0x3cd9ac(_0x53a897,_0x36f840,_0x47243a,_0x9a767e,_0x352b03,_0x30ffca,_0x610ca,_0x23847e){const _0x41c2c7=_0x21d0f5,_0x1157da=this;_0x1157da['currentUser']=_0x610ca[_0x41c2c7('0x2428')](),_0x1157da[_0x41c2c7('0x120f')]=[],_0x1157da['title']=_0x41c2c7('0x23e')+(_0x9a767e[_0x41c2c7('0x27c0')]||_0x9a767e[_0x41c2c7('0x18f5')])[_0x41c2c7('0xa6f')](),_0x1157da['tag']=angular[_0x41c2c7('0x6fb')](_0x9a767e),_0x1157da[_0x41c2c7('0xb25')]=_0x23847e,_0x1157da[_0x41c2c7('0x2c9')]={};if(_0x1157da[_0x41c2c7('0x1d73')]['appdata'])switch(_0x1157da[_0x41c2c7('0x1d73')][_0x41c2c7('0x27c0')]?_0x1157da[_0x41c2c7('0x1d73')][_0x41c2c7('0x27c0')]['toLowerCase']():_0x1157da[_0x41c2c7('0x1d73')][_0x41c2c7('0x18f5')][_0x41c2c7('0x20d5')]()){case _0x41c2c7('0xa8d'):break;case _0x41c2c7('0x185e'):{const _0x50017a=_0x1157da[_0x41c2c7('0x1d73')]['appdata']['split'](',');_0x1157da[_0x41c2c7('0x1d73')][_0x41c2c7('0xa0c')]=_0x50017a[0x0],_0x1157da[_0x41c2c7('0x1d73')][_0x41c2c7('0xeff')]=_0x50017a[0x1],_0x1157da['tag']['welcomemessage']=_0x50017a[_0x41c2c7('0x1b77')](0x2,_0x50017a['length'])['join'](',');}break;case _0x41c2c7('0x21a8'):{const _0x10293f=_0x1157da[_0x41c2c7('0x1d73')][_0x41c2c7('0x13fc')]['split'](',');_0x1157da[_0x41c2c7('0x1d73')][_0x41c2c7('0x20e')]=_0x10293f[0x0],_0x1157da[_0x41c2c7('0x1d73')]['clientEmail']=_0x10293f[0x1],_0x1157da[_0x41c2c7('0x1d73')][_0x41c2c7('0x1c6c')]=_0x10293f[0x2],_0x1157da['tag'][_0x41c2c7('0xeff')]=_0x10293f[0x3],_0x1157da[_0x41c2c7('0x1d73')][_0x41c2c7('0x1cbc')]=_0x10293f[_0x41c2c7('0x1b77')](0x4,_0x10293f[_0x41c2c7('0x1e22')])['join'](',');}break;case _0x41c2c7('0x102c'):{const _0x58ca83=_0x1157da[_0x41c2c7('0x1d73')]['appdata'][_0x41c2c7('0xaf8')](',');_0x1157da[_0x41c2c7('0x1d73')][_0x41c2c7('0x1a82')]=_0x58ca83[0x0],_0x1157da[_0x41c2c7('0x1d73')][_0x41c2c7('0x1422')]=_0x58ca83[0x1],_0x1157da[_0x41c2c7('0x1d73')][_0x41c2c7('0x165a')]=_0x58ca83[0x2],_0x1157da[_0x41c2c7('0x1d73')][_0x41c2c7('0x1e8f')]=_0x58ca83[0x3],_0x1157da[_0x41c2c7('0x1d73')][_0x41c2c7('0x1cbc')]=_0x58ca83['slice'](0x4,_0x58ca83[_0x41c2c7('0x1e22')])[_0x41c2c7('0xa04')](',');}break;case _0x41c2c7('0x187b'):{const _0x19e2d5=_0x1157da[_0x41c2c7('0x1d73')]['appdata'][_0x41c2c7('0xaf8')](',');_0x1157da['tag'][_0x41c2c7('0x663')]=isNaN(_0x19e2d5[0x0])?_0x19e2d5[0x0]:parseInt(_0x19e2d5[0x0],0xa),_0x1157da[_0x41c2c7('0x1d73')]['text']=_0x19e2d5['slice'](0x1,_0x19e2d5[_0x41c2c7('0x1e22')])[_0x41c2c7('0xa04')](',');}break;case'message':_0x1157da['tag'][_0x41c2c7('0x25ed')]=_0x1157da[_0x41c2c7('0x1d73')]['appdata'];break;case'set':_0x1157da['tag']['name']=_0x1157da[_0x41c2c7('0x1d73')][_0x41c2c7('0x13fc')][_0x41c2c7('0xaf8')]('=')[0x0],_0x1157da[_0x41c2c7('0x1d73')][_0x41c2c7('0x10cc')]=_0x1157da[_0x41c2c7('0x1d73')][_0x41c2c7('0x13fc')]['split']('=')[0x1];break;case _0x41c2c7('0x1efd'):_0x1157da[_0x41c2c7('0x1d73')][_0x41c2c7('0xef0')]=_0x1157da[_0x41c2c7('0x1d73')]['appdata'];break;default:{const _0xa6f84=_0x1157da[_0x41c2c7('0x1d73')][_0x41c2c7('0x13fc')][_0x41c2c7('0xaf8')](',');_0x1157da[_0x41c2c7('0x1d73')][_0x41c2c7('0x1d73')]=_0x36f548()[_0x41c2c7('0x1fc5')](_0xa6f84[0x0])?_0xa6f84[0x0]:isNaN(_0xa6f84[0x0])?_0xa6f84[0x0]:parseInt(_0xa6f84[0x0],0xa);}break;}else{}_0x1157da[_0x41c2c7('0x1d73')][_0x41c2c7('0x19fd')]&&_0x1157da['tag'][_0x41c2c7('0x19fd')][_0x41c2c7('0x20d5')]()===_0x41c2c7('0x25b6')&&_0x1157da[_0x41c2c7('0x1d73')][_0x41c2c7('0x27c0')][_0x41c2c7('0x20d5')]()===_0x41c2c7('0x1a64')&&(_0x1157da[_0x41c2c7('0x1d73')]['prefix']=_0x1157da[_0x41c2c7('0x1d73')][_0x41c2c7('0x1546')]?_0x1157da[_0x41c2c7('0x1d73')][_0x41c2c7('0x1546')]['split']('$')[0x0]:undefined,_0x1157da[_0x41c2c7('0x1d73')]['callerId']=_0x1157da[_0x41c2c7('0x1d73')][_0x41c2c7('0xc38')]?_0x41c2c7('0x83a')+_0x1157da[_0x41c2c7('0x1d73')][_0x41c2c7('0xc38')]:undefined);_0x1157da[_0x41c2c7('0x1b83')]=_0x12d58a,_0x1157da['closeDialog']=_0x27aad9,_0x610ca[_0x41c2c7('0x4ee')](_0x41c2c7('0xf45'))?_0x30ffca[_0x41c2c7('0x1d73')][_0x41c2c7('0xbaa')]({'fields':'id,name','sort':'name','nolimit':_0x41c2c7('0x204c')})[_0x41c2c7('0x1549')][_0x41c2c7('0x11bf')](function(_0x46cf56){const _0x573916=_0x41c2c7;_0x1157da['tags']=_0x46cf56[_0x573916('0x19b2')]||[];})[_0x41c2c7('0x151d')](function(_0x3168c4){const _0x21ec6a=_0x41c2c7;_0x47243a[_0x21ec6a('0x255')]({'title':_0x3168c4[_0x21ec6a('0xff9')]?_0x21ec6a('0x574')+_0x3168c4[_0x21ec6a('0xff9')]+_0x21ec6a('0xb0b')+_0x3168c4[_0x21ec6a('0x212f')]:_0x21ec6a('0x1138'),'msg':_0x3168c4[_0x21ec6a('0x4e8')]?JSON[_0x21ec6a('0x3e')](_0x3168c4[_0x21ec6a('0x4e8')]):_0x3168c4[_0x21ec6a('0xaab')]()});}):_0x30ffca[_0x41c2c7('0x1d73')]['get']({'fields':_0x41c2c7('0x721'),'sort':_0x41c2c7('0x1909'),'nolimit':'true'})[_0x41c2c7('0x1549')][_0x41c2c7('0x11bf')](function(_0x481c1d){const _0x18bbc3=_0x41c2c7;_0x1157da[_0x18bbc3('0x2763')]=_0x481c1d[_0x18bbc3('0x19b2')]||[];})[_0x41c2c7('0x11bf')](function(){const _0x10edd2=_0x41c2c7;return _0x30ffca[_0x10edd2('0x1d63')]['get']({'userProfileId':_0x1157da[_0x10edd2('0x32a')][_0x10edd2('0x781')],'sectionId':0x3f0})['$promise'];})[_0x41c2c7('0x11bf')](function(_0x299578){const _0x3776c4=_0x41c2c7,_0x200eae=_0x299578&&_0x299578[_0x3776c4('0x19b2')]?_0x299578[_0x3776c4('0x19b2')][0x0]:null;if(!_0x200eae){const _0x1ff031=[];let _0x45fa6b=null;_0x1157da[_0x3776c4('0x1d73')]&&(_0x45fa6b=_0x36f548()['find'](_0x1157da['tags'],{'name':_0x1157da[_0x3776c4('0x1d73')][_0x3776c4('0x1d73')]}));for(let _0x407cb7=0x0;_0x407cb7<_0x1157da[_0x3776c4('0x2763')][_0x3776c4('0x1e22')];_0x407cb7++){_0x45fa6b&&_0x1157da[_0x3776c4('0x2763')][_0x407cb7]['id']===_0x45fa6b['id']&&(_0x1157da[_0x3776c4('0x2763')][_0x407cb7][_0x3776c4('0x254a')]=![],_0x1ff031[_0x3776c4('0x105d')](_0x1157da['tags'][_0x407cb7]));}_0x1157da[_0x3776c4('0x2763')]=_0x1ff031;}else{if(!_0x200eae[_0x3776c4('0xf11')])return _0x30ffca[_0x3776c4('0x26d1')]['get']({'sectionId':_0x200eae['id']})[_0x3776c4('0x1549')][_0x3776c4('0x11bf')](function(_0x3951fe){const _0x3339d8=_0x3776c4,_0x34d14b=_0x36f548()[_0x3339d8('0x2171')](_0x3951fe[_0x3339d8('0x19b2')],function(_0x26f35e){const _0x52c73b=_0x3339d8;return _0x36f548()[_0x52c73b('0x1ad4')](_0x1157da[_0x52c73b('0x2763')],{'id':_0x26f35e['resourceId']});});let _0x329f07=null;_0x1157da[_0x3339d8('0x1d73')]&&(_0x329f07=_0x36f548()[_0x3339d8('0x1ad4')](_0x1157da[_0x3339d8('0x2763')],{'name':_0x1157da[_0x3339d8('0x1d73')]['tag']}));if(_0x329f07&&!_0x36f548()[_0x3339d8('0x1cb3')](_0x34d14b,['id',_0x329f07['id']])){const _0x91efd5=_0x36f548()['find'](_0x1157da[_0x3339d8('0x2763')],{'id':_0x329f07['id']});_0x91efd5['canSelect']=![],_0x34d14b[_0x3339d8('0x105d')](_0x91efd5);}_0x1157da[_0x3339d8('0x2763')]=_0x34d14b;});}})[_0x41c2c7('0x151d')](function(_0x442f7c){const _0x35a6da=_0x41c2c7;_0x47243a[_0x35a6da('0x255')]({'title':_0x442f7c[_0x35a6da('0xff9')]?_0x35a6da('0x574')+_0x442f7c['status']+_0x35a6da('0xb0b')+_0x442f7c['statusText']:'SYSTEM:GETtags','msg':_0x442f7c[_0x35a6da('0x4e8')]?JSON[_0x35a6da('0x3e')](_0x442f7c[_0x35a6da('0x4e8')]):_0x442f7c[_0x35a6da('0xaab')]()});});function _0x12d58a(){const _0x13d10f=_0x41c2c7;_0x1157da[_0x13d10f('0x120f')]=[];const _0x233c53=[];_0x1157da[_0x13d10f('0x1d73')][_0x13d10f('0x19fd')]&&_0x1157da[_0x13d10f('0x1d73')][_0x13d10f('0x19fd')][_0x13d10f('0x20d5')]()===_0x13d10f('0x25b6')&&_0x1157da[_0x13d10f('0x1d73')][_0x13d10f('0x27c0')]===_0x13d10f('0x1bf6')&&(_0x1157da[_0x13d10f('0x1d73')][_0x13d10f('0x1546')]=_0x352b03[_0x13d10f('0x388')]?(_0x1157da['tag'][_0x13d10f('0x2137')]||'')+_0x13d10f('0x2100')+_0x352b03[_0x13d10f('0x388')]+'}':(_0x1157da[_0x13d10f('0x1d73')][_0x13d10f('0x2137')]||'')+'${EXTEN}',_0x352b03[_0x13d10f('0x897')]!=='none'?_0x1157da[_0x13d10f('0x1d73')]['options'][_0x13d10f('0x203c')](_0x13d10f('0x22c9'))<0x0&&(_0x1157da[_0x13d10f('0x1d73')][_0x13d10f('0x249a')]+=_0x13d10f('0x22c9')):_0x1157da[_0x13d10f('0x1d73')][_0x13d10f('0x249a')]=_0x1157da['tag'][_0x13d10f('0x249a')][_0x13d10f('0x814')](_0x13d10f('0x22c9'),''));const _0x2fb3c8=_0x36f548()[_0x13d10f('0x1ad4')](_0x1157da['tags'],{'name':_0x1157da[_0x13d10f('0x1d73')][_0x13d10f('0x1d73')]});_0x2fb3c8&&(_0x1157da[_0x13d10f('0x1d73')][_0x13d10f('0x3a3')]=_0x2fb3c8['id']);if(_0x1157da[_0x13d10f('0x1d73')][_0x13d10f('0x27c0')]&&_0x1157da[_0x13d10f('0x1d73')][_0x13d10f('0x27c0')]==='custom'){}else switch((_0x1157da[_0x13d10f('0x1d73')][_0x13d10f('0x18f5')]||_0x1157da['tag'][_0x13d10f('0x27c0')])[_0x13d10f('0x20d5')]()){case _0x13d10f('0xe50'):_0x1157da[_0x13d10f('0x1d73')][_0x13d10f('0x13fc')]=_0x1157da[_0x13d10f('0x1d73')][_0x13d10f('0x1909')]+'='+_0x1157da[_0x13d10f('0x1d73')][_0x13d10f('0x10cc')];break;case _0x13d10f('0xa8d'):break;default:_0x233c53[0x0]=_0x1157da[_0x13d10f('0x1d73')][_0x13d10f('0x1d73')],_0x1157da[_0x13d10f('0x1d73')][_0x13d10f('0x13fc')]=_0x233c53['join'](',');}_0x27aad9(_0x1157da['tag']);}function _0x27aad9(_0x3c13e4){const _0x19218c=_0x41c2c7;_0x53a897[_0x19218c('0x237e')](_0x3c13e4);}}const _0x6369c6=_0x3cd9ac;_0x145847[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x5d8'),_0x21d0f5('0x1b80'),_0x21d0f5('0xcbc'),'$q',_0x21d0f5('0xb6b'),'$timeout',_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),_0x21d0f5('0x142d'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150')];function _0x145847(_0x5f3713,_0x1cd694,_0x1add71,_0x1203c6,_0x3292e3,_0x2c8f87,_0x2acd7e,_0x345f39,_0x4a5c5c,_0x13bcac,_0x589ea7){const _0x589d6a=_0x21d0f5,_0x21ac5b=this;_0x21ac5b['currentUser']=_0x589ea7[_0x589d6a('0x2428')](),_0x21ac5b[_0x589d6a('0x13cb')]={},_0x21ac5b[_0x589d6a('0x1d49')]={'count':0x0,'rows':[]},_0x21ac5b[_0x589d6a('0x1f40')]=[],_0x21ac5b['crudPermissions'],_0x21ac5b[_0x589d6a('0x1f2a')]={'read':'null','closed':_0x589d6a('0xb5f'),'sort':_0x589d6a('0xb8c'),'includeAll':_0x589d6a('0x204c'),'limit':0xa,'page':0x1},_0x21ac5b['init']=_0x3c1ac6,_0x21ac5b['deleteConfirm']=_0x4cbac1,_0x21ac5b[_0x589d6a('0x1272')]=_0xd18c54,_0x21ac5b[_0x589d6a('0x2693')]=_0x18d8c8,_0x21ac5b[_0x589d6a('0x109a')]=_0x33dcdf,_0x21ac5b[_0x589d6a('0x1b7d')]=_0x100dc6,_0x21ac5b[_0x589d6a('0x2297')]=_0x322ead,_0x21ac5b['exportSelectedOpenchannelAccountInteractions']=_0x3ae9ea,_0x21ac5b[_0x589d6a('0x27e9')]=_0x3636d5,_0x21ac5b[_0x589d6a('0xb5')]=_0x6cc59f;function _0x3c1ac6(_0x5d4cb6,_0x1b8967){const _0x34fd03=_0x589d6a;_0x21ac5b[_0x34fd03('0x13cb')]=_0x5d4cb6,_0x21ac5b[_0x34fd03('0xb25')]=typeof _0x1b8967!==_0x34fd03('0x13e9')?_0x1b8967:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x21ac5b[_0x34fd03('0x1f2a')][_0x34fd03('0x2863')]=_0x21ac5b[_0x34fd03('0x13cb')]['id'],_0x21ac5b['advancedSearch']={'fields':_0x322008()},_0x1144e7();}function _0x1144e7(){const _0x134fbe=_0x589d6a;return _0x13bcac[_0x134fbe('0x1d73')]['get']()[_0x134fbe('0x1549')][_0x134fbe('0x11bf')](function(_0x228b30){const _0x472faa=_0x134fbe;_0x21ac5b[_0x472faa('0x2763')]=_0x228b30||{'count':0x0,'rows':[]};})[_0x134fbe('0x11bf')](function(){const _0x36263c=_0x134fbe;_0x21ac5b[_0x36263c('0x7db')]=_0x20b7ae();});}function _0x20b7ae(){const _0x263b83=_0x589d6a;return[{'name':_0x263b83('0xa68'),'key':_0x263b83('0x1779'),'type':_0x263b83('0x22f7'),'label':_0x263b83('0x1c11')},{'name':'Messages','key':_0x263b83('0x1601'),'type':_0x263b83('0x2350'),'label':'DASHBOARDS.SELECT_READ_UNREAD','customOptions':[{'value':0x0,'translate':'DASHBOARDS.UNREAD'},{'value':0x1,'translate':_0x263b83('0x22a5')},{'value':null,'translate':'DASHBOARDS.ALL'}]},{'name':'Status','key':'closed','type':_0x263b83('0x2350'),'label':'DASHBOARDS.SELECT_STATUS','customOptions':[{'value':0x0,'translate':_0x263b83('0x2846')},{'value':0x1,'translate':_0x263b83('0x199')},{'value':null,'translate':_0x263b83('0x211a')}]},{'name':_0x263b83('0x701'),'key':'UserId','type':_0x263b83('0x2350'),'label':_0x263b83('0x84a'),'customOptions':[{'value':_0x263b83('0xb5f'),'translate':'DASHBOARDS.NOT_ASSIGNED'},{'value':undefined,'translate':_0x263b83('0x211a')}]},{'name':_0x263b83('0x23ba'),'key':_0x263b83('0x1d73'),'type':_0x263b83('0xe83'),'label':_0x263b83('0x9b9'),'options':_0x21ac5b[_0x263b83('0x2763')][_0x263b83('0x19b2')],'placeholder':'DASHBOARDS.TAGS'}];}function _0x322008(){const _0x34184b=_0x589d6a;return[{'name':'Id','column':'id','type':_0x34184b('0x139e')},{'name':_0x34184b('0xf10'),'column':'Contact','type':_0x34184b('0x282b'),'options':{'searchFields':[_0x34184b('0x13a0'),_0x34184b('0xcf3'),_0x34184b('0x15d3')],'route':{'model':_0x34184b('0x1b8f'),'action':_0x34184b('0xbaa'),'params':{'fields':_0x34184b('0xd81'),'Contact':_0x34184b('0xfda'),'nolimit':!![]}},'extraOperators':['$substring'],'excludedOperators':[_0x34184b('0x27c1')]}},{'name':'Subject','column':_0x34184b('0x20eb'),'type':_0x34184b('0x25ed'),'options':{'excludedOperators':['$eq',_0x34184b('0x27c1')]}},{'name':_0x34184b('0x113e'),'column':_0x34184b('0x4d1'),'type':_0x34184b('0x25ed'),'options':{'excludedOperators':[_0x34184b('0x23de'),_0x34184b('0x27c1')]}},{'name':'Status','column':_0x34184b('0x949'),'type':'select','values':[{'id':0x0,'translate':_0x34184b('0x2846')},{'id':0x1,'translate':'DASHBOARDS.CLOSED'}],'options':{'excludedOperators':[_0x34184b('0x27c1')]}},{'name':_0x34184b('0x701'),'column':_0x34184b('0x24ab'),'type':_0x34184b('0x282b'),'options':{'table':'i','route':{'model':'user','action':'get','params':{'role':_0x34184b('0x18c4'),'fields':_0x34184b('0x919'),'nolimit':!![]}},'searchFields':[_0x34184b('0x27af'),_0x34184b('0x1909')],'extraOperators':[_0x34184b('0x512')],'excludedOperators':[_0x34184b('0x27c1')]}},{'name':_0x34184b('0x806'),'column':_0x34184b('0x23ba'),'type':_0x34184b('0xe83'),'options':{'route':{'model':_0x34184b('0x1d73'),'action':_0x34184b('0xbaa'),'params':{'nolimit':!![]}},'excludedOperators':[_0x34184b('0x1239')]}},{'name':_0x34184b('0xa68'),'column':_0x34184b('0x1779'),'type':'date','options':{'excludedOperators':[_0x34184b('0x27c1')]}},{'name':_0x34184b('0xf18'),'column':_0x34184b('0xf2'),'type':_0x34184b('0x2350'),'values':[{'id':0x1,'translate':'DASHBOARDS.READ'},{'id':0x0,'translate':_0x34184b('0x1dd4')}],'options':{'excludedOperators':[_0x34184b('0x27c1')]}}];}function _0x322ead(){const _0x139e06=_0x589d6a;_0x2acd7e[_0x139e06('0xb9')]({'controller':'AdvancedSearchController','controllerAs':'vm','templateUrl':_0x19602a,'parent':angular[_0x139e06('0x1e73')](_0x345f39[_0x139e06('0x1d2')]),'clickOutsideToClose':![],'locals':{'fields':_0x21ac5b[_0x139e06('0xd6d')][_0x139e06('0x1067')],'color':undefined,'storagePath':'openchannel.openchannelAccounts'},'fullscreen':!![]})[_0x139e06('0x11bf')](function(_0x4946dc){const _0x5452c8=_0x139e06;_0x21ac5b[_0x5452c8('0x1f2a')]['search']=_0x4946dc===![]?undefined:_0x4946dc;if(_0x21ac5b[_0x5452c8('0x1f2a')][_0x5452c8('0xce2')])_0x33dcdf();else _0x4946dc===![]&&_0x33dcdf();})[_0x139e06('0x151d')](function(_0x283d95){const _0x4f1b32=_0x139e06;_0x4a5c5c['error']({'title':'ERROR','msg':_0x283d95['data']?JSON[_0x4f1b32('0x3e')](_0x283d95[_0x4f1b32('0x4e8')][_0x4f1b32('0x1b86')]):_0x283d95[_0x4f1b32('0xaab')]()});});}function _0xd18c54(_0x3f0202,_0x1f2a18,_0xdbcf0e){const _0x42cc76=_0x589d6a;return _0x13bcac[_0x42cc76('0x165e')][_0x42cc76('0x149c')]({'id':_0x3f0202['id'],'exists':!![],'attachments':_0xdbcf0e})[_0x42cc76('0x1549')][_0x42cc76('0x11bf')](function(_0x1689fa){const _0x4b138f=_0x42cc76,_0x28b0c4=[_0x1689fa[_0x4b138f('0x1e94')]];let _0x34196d=_0x4b138f('0x4e6')+_0x3f0202['id'];const _0x3dac1a=new Blob(_0x28b0c4,{'type':_0x1689fa[_0x4b138f('0x19fd')]});_0x34196d='openchannel-interaction'+_0x3f0202['id']+_0x4b138f('0x4a7');const _0x257d3f=window[_0x4b138f('0xb54')]['createElement']('a');_0x257d3f['setAttribute'](_0x4b138f('0xead'),URL[_0x4b138f('0x44b')](_0x3dac1a)),_0x257d3f[_0x4b138f('0x1e1b')]('download',_0x34196d),document[_0x4b138f('0x1d2')]['appendChild'](_0x257d3f),_0x257d3f['click']();})[_0x42cc76('0x151d')](function(_0x3b2d9f){const _0x418224=_0x42cc76;if(_0x3b2d9f[_0x418224('0x4e8')]&&_0x3b2d9f[_0x418224('0x4e8')][_0x418224('0x120f')]&&_0x3b2d9f[_0x418224('0x4e8')][_0x418224('0x120f')][_0x418224('0x1e22')])for(let _0x5496f6=0x0;_0x5496f6<_0x3b2d9f['data']['errors'][_0x418224('0x1e22')];_0x5496f6+=0x1){_0x4a5c5c[_0x418224('0x255')]({'title':_0x3b2d9f[_0x418224('0x4e8')][_0x418224('0x120f')][_0x5496f6]['type'],'msg':_0x3b2d9f[_0x418224('0x4e8')][_0x418224('0x120f')][_0x5496f6]['message']});}else _0x4a5c5c[_0x418224('0x255')]({'title':_0x3b2d9f['status']?_0x418224('0x574')+_0x3b2d9f[_0x418224('0xff9')]+_0x418224('0xb0b')+_0x3b2d9f[_0x418224('0x212f')]:'api.openchannelAccount.save','msg':_0x3b2d9f[_0x418224('0x4e8')]?JSON[_0x418224('0x3e')](_0x3b2d9f[_0x418224('0x4e8')]['message']):_0x3b2d9f[_0x418224('0xaab')]()});});}function _0x4cbac1(_0x328429,_0x2524f1){const _0x327e05=_0x589d6a,_0x23b626=_0x2acd7e[_0x327e05('0x132b')]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20interaction?')[_0x327e05('0x1d03')](_0x327e05('0x2061')+(_0x328429[_0x327e05('0x1909')]||_0x328429['id']&&_0x36f548()[_0x327e05('0x24b5')](_0x327e05('0x161c'))+_0x328429['id']||'interaction')+_0x327e05('0x1c78')+_0x327e05('0x1a'))['ariaLabel'](_0x327e05('0x14fe'))[_0x327e05('0x1e25')](_0x2524f1)['ok']('OK')[_0x327e05('0x26c9')](_0x327e05('0x772'));_0x2acd7e[_0x327e05('0xb9')](_0x23b626)[_0x327e05('0x11bf')](function(){_0x3636d5(_0x328429);},function(){const _0xd00986=_0x327e05;console[_0xd00986('0xc78')](_0xd00986('0x772'));});}function _0x18d8c8(_0x46f165){const _0x240c06=_0x589d6a;_0x21ac5b[_0x240c06('0x1d49')]=_0x46f165||{'count':0x0,'rows':[]};for(let _0x835be0=0x0;_0x835be0<_0x21ac5b[_0x240c06('0x1d49')][_0x240c06('0x19b2')]['length'];_0x835be0+=0x1){const _0x3a8274=_0x21ac5b[_0x240c06('0x1d49')][_0x240c06('0x19b2')][_0x835be0];_0x1cfdeb(_0x3a8274),_0x3a8274[_0x240c06('0x657')][_0x240c06('0x1909')]=_0x46638e(_0x3a8274);}}function _0x33dcdf(){const _0x19d723=_0x589d6a;_0x21ac5b['query'][_0x19d723('0x1393')]=(_0x21ac5b[_0x19d723('0x1f2a')][_0x19d723('0x1c2')]-0x1)*_0x21ac5b['query'][_0x19d723('0xd5c')],_0x21ac5b['promise']=_0x13bcac[_0x19d723('0x165e')]['get'](_0x21ac5b[_0x19d723('0x1f2a')],_0x18d8c8)[_0x19d723('0x1549')];}function _0x100dc6(_0x3cf3b7,_0x13d97d){const _0x2aa241=_0x589d6a;_0x2acd7e[_0x2aa241('0xb9')]({'controller':_0x2aa241('0x15fe'),'controllerAs':'vm','templateUrl':_0x1742d8,'parent':angular[_0x2aa241('0x1e73')](_0x345f39[_0x2aa241('0x1d2')]),'targetEvent':_0x3cf3b7,'clickOutsideToClose':!![],'onShowing':function(_0x3b96d4){const _0x229b86=_0x2aa241;_0x3b96d4['vm'][_0x229b86('0x286f')]({'id':0x1,'channel':_0x229b86('0xb18'),'interaction':_0x13d97d,'spy':!![]},_0x1cd694['$parent']['vm'][_0x229b86('0x23e1')]);}});}function _0x3636d5(_0x2c2fbe){const _0x5b24d0=_0x589d6a;_0x13bcac['openchannelInteraction'][_0x5b24d0('0x2088')]({'id':_0x2c2fbe['id']})[_0x5b24d0('0x1549')][_0x5b24d0('0x11bf')](function(){const _0x478d3f=_0x5b24d0;_0x36f548()[_0x478d3f('0x14a5')](_0x21ac5b['openchannelAccountInteractions'][_0x478d3f('0x19b2')],{'id':_0x2c2fbe['id']}),_0x21ac5b[_0x478d3f('0x1d49')][_0x478d3f('0x27d2')]-=0x1,!_0x21ac5b[_0x478d3f('0x1d49')][_0x478d3f('0x19b2')]['length']&&_0x33dcdf(),_0x4a5c5c[_0x478d3f('0x2693')]({'title':_0x478d3f('0xc64'),'msg':_0x2c2fbe[_0x478d3f('0x1909')]?_0x2c2fbe[_0x478d3f('0x1909')]+_0x478d3f('0x433'):''});})[_0x5b24d0('0x151d')](function(_0x333cd0){const _0x346e34=_0x5b24d0;if(_0x333cd0[_0x346e34('0x4e8')]&&_0x333cd0['data']['errors']&&_0x333cd0['data'][_0x346e34('0x120f')][_0x346e34('0x1e22')]){_0x21ac5b['errors']=_0x333cd0[_0x346e34('0x4e8')]['errors']||[{'message':_0x333cd0[_0x346e34('0xaab')](),'type':_0x346e34('0x2121')}];for(let _0x563ea7=0x0;_0x563ea7<_0x333cd0['data'][_0x346e34('0x120f')][_0x346e34('0x1e22')];_0x563ea7++){_0x4a5c5c[_0x346e34('0x255')]({'title':_0x333cd0[_0x346e34('0x4e8')]['errors'][_0x563ea7]['type'],'msg':_0x333cd0['data']['errors'][_0x563ea7]['message']});}}else _0x4a5c5c['error']({'title':_0x333cd0[_0x346e34('0xff9')]?_0x346e34('0x574')+_0x333cd0[_0x346e34('0xff9')]+'\x20-\x20'+_0x333cd0[_0x346e34('0x212f')]:'SYSTEM:GETopenchannelAccount','msg':_0x333cd0[_0x346e34('0x4e8')]?JSON[_0x346e34('0x3e')](_0x333cd0[_0x346e34('0x4e8')][_0x346e34('0x1b86')]):_0x333cd0[_0x346e34('0x1b86')]||_0x333cd0['toString']()});});}function _0x3ae9ea(){const _0x5865de=_0x589d6a,_0x1f5755=angular[_0x5865de('0x6fb')](_0x21ac5b[_0x5865de('0x1f40')]);return _0x21ac5b[_0x5865de('0x1f40')]=[],_0x1f5755;}function _0x6cc59f(_0x5e3bb1){const _0x2f7399=_0x589d6a,_0x1bfe93=_0x2acd7e[_0x2f7399('0x132b')]()[_0x2f7399('0x134b')](_0x2f7399('0x1c8d'))[_0x2f7399('0x1d03')](_0x2f7399('0x2061')+_0x21ac5b[_0x2f7399('0x1f40')][_0x2f7399('0x1e22')]+_0x2f7399('0xac6')+_0x2f7399('0x1a'))[_0x2f7399('0xb2e')](_0x2f7399('0xcbb'))[_0x2f7399('0x1e25')](_0x5e3bb1)['ok']('OK')['cancel']('CANCEL');_0x2acd7e[_0x2f7399('0xb9')](_0x1bfe93)[_0x2f7399('0x11bf')](function(){const _0x22eb6f=_0x2f7399;_0x21ac5b['selectedOpenchannelAccountInteractions']['forEach'](function(_0x1f9916){_0x3636d5(_0x1f9916);}),_0x21ac5b[_0x22eb6f('0x1f40')]=[];});}function _0x1cfdeb(_0x28ab23){const _0xae3ee8=_0x589d6a;if(_0x28ab23[_0xae3ee8('0x18a0')])_0x28ab23[_0xae3ee8('0xca9')]=_0x28ab23['from'];else _0x28ab23[_0xae3ee8('0xf10')]?_0x28ab23[_0xae3ee8('0xca9')]=(_0x28ab23[_0xae3ee8('0xf10')][_0xae3ee8('0x13a0')]||'')+'\x20'+(_0x28ab23[_0xae3ee8('0xf10')][_0xae3ee8('0xcf3')]||''):_0x28ab23[_0xae3ee8('0xca9')]=_0x3292e3[_0xae3ee8('0x10c2')](_0xae3ee8('0x1d85'));}function _0x46638e(_0x573806){const _0x173118=_0x589d6a;if(_0x573806[_0x173118('0x2342')])return _0x573806[_0x173118('0x2342')]===_0x21ac5b[_0x173118('0x32a')]['id']?_0x3292e3[_0x173118('0x10c2')](_0x173118('0x275d')):_0x573806[_0x173118('0x657')]['fullname']+'\x20<'+_0x573806[_0x173118('0x657')][_0x173118('0x1a04')]+'>';return _0x3292e3['instant'](_0x173118('0x1a02'));}let _0x96ec0c=!![],_0x47e2ea=0x1;_0x1cd694[_0x589d6a('0x2087')](_0x589d6a('0x1d12'),function(_0x4e21e4,_0x3e8334){const _0xdcd778=_0x589d6a;_0x96ec0c?_0x2c8f87(function(){_0x96ec0c=![];}):(!_0x3e8334&&(_0x47e2ea=_0x21ac5b[_0xdcd778('0x1f2a')][_0xdcd778('0x1c2')]),_0x4e21e4!==_0x3e8334&&(_0x21ac5b[_0xdcd778('0x1f2a')][_0xdcd778('0x1c2')]=0x1),!_0x4e21e4&&(_0x21ac5b['query'][_0xdcd778('0x1c2')]=_0x47e2ea),_0x33dcdf());});}const _0x35774d=_0x145847,_0x8e6d9d=_0x351988['p']+_0x21d0f5('0x1a79');_0x14bf78[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x5d8'),_0x21d0f5('0x1b80'),_0x21d0f5('0xcbc'),'$q','$translate',_0x21d0f5('0x17f5'),_0x21d0f5('0x1ca2'),'$document',_0x21d0f5('0x142d'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150')];function _0x14bf78(_0x457414,_0x5af83d,_0x3d3541,_0x103084,_0x26bb76,_0x378a2c,_0x593f40,_0x13993a,_0x35614d,_0x5017ef,_0x5c9ec1){const _0xbfe349=_0x21d0f5,_0x24bef2=this;_0x24bef2[_0xbfe349('0x32a')]=_0x5c9ec1[_0xbfe349('0x2428')](),_0x24bef2[_0xbfe349('0x13cb')]={},_0x24bef2[_0xbfe349('0x9e2')]={'count':0x0,'rows':[]},_0x24bef2[_0xbfe349('0x105b')]=[],_0x24bef2[_0xbfe349('0xb25')],_0x24bef2[_0xbfe349('0x1f2a')]={'fields':_0xbfe349('0x1cb4'),'limit':0xa,'page':0x1},_0x24bef2[_0xbfe349('0x286f')]=_0x2548c2,_0x24bef2[_0xbfe349('0x560')]=_0x12140e,_0x24bef2[_0xbfe349('0x2693')]=_0x9ebaac,_0x24bef2[_0xbfe349('0x278e')]=_0x4f634b,_0x24bef2[_0xbfe349('0xa3d')]=_0x52826c,_0x24bef2[_0xbfe349('0x1c68')]=_0x21a9bb,_0x24bef2[_0xbfe349('0x860')]=_0x5f223c,_0x24bef2[_0xbfe349('0xea1')]=_0x15b120;function _0x2548c2(_0x3dcdcd,_0xd9c58f){const _0x4bde27=_0xbfe349;_0x24bef2['openchannelAccount']=_0x3dcdcd,_0x24bef2[_0x4bde27('0xb25')]=typeof _0xd9c58f!==_0x4bde27('0x13e9')?_0xd9c58f:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x24bef2[_0x4bde27('0x1f2a')][_0x4bde27('0x2863')]=_0x24bef2['openchannelAccount']['id'],_0x24bef2[_0x4bde27('0x1f2a')]['id']=_0x24bef2[_0x4bde27('0x13cb')]['id'],_0x4f634b();}function _0x12140e(_0xecca53,_0x122aea){const _0x42d1de=_0xbfe349,_0x3a0752=_0x593f40[_0x42d1de('0x132b')]()[_0x42d1de('0x134b')](_0x42d1de('0x16b0'))[_0x42d1de('0x1d03')](_0x42d1de('0x2061')+(_0xecca53['name']||_0xecca53['id']&&_0x36f548()[_0x42d1de('0x24b5')](_0x42d1de('0x1cd3'))+_0xecca53['id']||_0x42d1de('0x1a5c'))+''+_0x42d1de('0x1a'))[_0x42d1de('0xb2e')](_0x42d1de('0x2308'))['targetEvent'](_0x122aea)['ok']('OK')[_0x42d1de('0x26c9')](_0x42d1de('0x772'));_0x593f40[_0x42d1de('0xb9')](_0x3a0752)[_0x42d1de('0x11bf')](function(){_0x5f223c(_0xecca53);},function(){const _0x21feba=_0x42d1de;console[_0x21feba('0xc78')](_0x21feba('0x772'));});}function _0x9ebaac(_0x1dbe43){const _0x510214=_0xbfe349;_0x24bef2[_0x510214('0x9e2')]=_0x1dbe43||{'count':0x0,'rows':[]};}function _0x4f634b(){const _0x43ece3=_0xbfe349;_0x24bef2[_0x43ece3('0x1f2a')][_0x43ece3('0x1393')]=(_0x24bef2[_0x43ece3('0x1f2a')][_0x43ece3('0x1c2')]-0x1)*_0x24bef2[_0x43ece3('0x1f2a')][_0x43ece3('0xd5c')],_0x24bef2['promise']=_0x5017ef[_0x43ece3('0x13cb')][_0x43ece3('0x2785')](_0x24bef2[_0x43ece3('0x1f2a')],_0x9ebaac)[_0x43ece3('0x1549')];}function _0x52826c(_0x20d1a4,_0x35aa6f){const _0x31518e=_0xbfe349;_0x593f40[_0x31518e('0xb9')]({'controller':_0x31518e('0x24ad'),'controllerAs':'vm','templateUrl':_0x8e6d9d,'parent':angular['element'](_0x13993a[_0x31518e('0x1d2')]),'targetEvent':_0x20d1a4,'clickOutsideToClose':!![],'locals':{'openchannelAccount':_0x24bef2[_0x31518e('0x13cb')],'openchannelCannedAnswer':_0x35aa6f,'openchannelCannedAnswers':_0x24bef2[_0x31518e('0x9e2')][_0x31518e('0x19b2')],'license':null,'setting':null,'crudPermissions':_0x24bef2[_0x31518e('0xb25')]}});}function _0x5f223c(_0x43cd9e){const _0x433591=_0xbfe349;_0x5017ef[_0x433591('0x81')][_0x433591('0x2088')]({'id':_0x43cd9e['id']})[_0x433591('0x1549')]['then'](function(){const _0x5702fb=_0x433591;_0x36f548()[_0x5702fb('0x14a5')](_0x24bef2[_0x5702fb('0x9e2')][_0x5702fb('0x19b2')],{'id':_0x43cd9e['id']}),_0x24bef2['openchannelAccountOpenchannelCannedAnswers'][_0x5702fb('0x27d2')]-=0x1,!_0x24bef2[_0x5702fb('0x9e2')][_0x5702fb('0x19b2')][_0x5702fb('0x1e22')]&&_0x4f634b(),_0x35614d[_0x5702fb('0x2693')]({'title':_0x5702fb('0x250c'),'msg':_0x43cd9e[_0x5702fb('0x1909')]?_0x43cd9e[_0x5702fb('0x1909')]+'\x20has\x20been\x20deleted!':''});})['catch'](function(_0xc4f182){const _0x427356=_0x433591;if(_0xc4f182[_0x427356('0x4e8')]&&_0xc4f182[_0x427356('0x4e8')][_0x427356('0x120f')]&&_0xc4f182[_0x427356('0x4e8')][_0x427356('0x120f')][_0x427356('0x1e22')]){_0x24bef2['errors']=_0xc4f182['data'][_0x427356('0x120f')]||[{'message':_0xc4f182[_0x427356('0xaab')](),'type':'SYSTEM:GETopenchannelAccount'}];for(let _0x10a1ac=0x0;_0x10a1ac<_0xc4f182[_0x427356('0x4e8')]['errors'][_0x427356('0x1e22')];_0x10a1ac++){_0x35614d[_0x427356('0x255')]({'title':_0xc4f182[_0x427356('0x4e8')][_0x427356('0x120f')][_0x10a1ac]['type'],'msg':_0xc4f182['data'][_0x427356('0x120f')][_0x10a1ac][_0x427356('0x1b86')]});}}else _0x35614d[_0x427356('0x255')]({'title':_0xc4f182[_0x427356('0xff9')]?'API:'+_0xc4f182['status']+'\x20-\x20'+_0xc4f182['statusText']:_0x427356('0x2121'),'msg':_0xc4f182[_0x427356('0x4e8')]?JSON[_0x427356('0x3e')](_0xc4f182[_0x427356('0x4e8')]['message']):_0xc4f182['message']||_0xc4f182[_0x427356('0xaab')]()});});}function _0x21a9bb(){const _0x1eb082=_0xbfe349,_0x284a93=angular[_0x1eb082('0x6fb')](_0x24bef2[_0x1eb082('0x105b')]);return _0x24bef2[_0x1eb082('0x105b')]=[],_0x284a93;}function _0x15b120(_0x8f786e){const _0x19d606=_0xbfe349,_0x5838c1=_0x593f40[_0x19d606('0x132b')]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20openchannelCannedAnswers?')[_0x19d606('0x1d03')](''+_0x24bef2[_0x19d606('0x105b')][_0x19d606('0x1e22')]+_0x19d606('0xac6')+_0x19d606('0x1a'))[_0x19d606('0xb2e')]('delete\x20openchannelCannedAnswers')[_0x19d606('0x1e25')](_0x8f786e)['ok']('OK')['cancel'](_0x19d606('0x772'));_0x593f40[_0x19d606('0xb9')](_0x5838c1)[_0x19d606('0x11bf')](function(){const _0x2cd47b=_0x19d606;_0x24bef2[_0x2cd47b('0x105b')][_0x2cd47b('0x1f88')](function(_0x4b8725){_0x5f223c(_0x4b8725);}),_0x24bef2[_0x2cd47b('0x105b')]=[];});}let _0x1c2c23=!![],_0x1c5118=0x1;_0x5af83d[_0xbfe349('0x2087')](_0xbfe349('0x1d12'),function(_0x274173,_0x6d596b){const _0x19642d=_0xbfe349;_0x1c2c23?_0x378a2c(function(){_0x1c2c23=![];}):(!_0x6d596b&&(_0x1c5118=_0x24bef2[_0x19642d('0x1f2a')][_0x19642d('0x1c2')]),_0x274173!==_0x6d596b&&(_0x24bef2[_0x19642d('0x1f2a')][_0x19642d('0x1c2')]=0x1),!_0x274173&&(_0x24bef2[_0x19642d('0x1f2a')][_0x19642d('0x1c2')]=_0x1c5118),_0x4f634b());});}const _0x4f2e6e=_0x14bf78;_0x13ee12['$inject']=[_0x21d0f5('0x1b80'),_0x21d0f5('0xcbc'),_0x21d0f5('0x16b9'),_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0xb6b'),_0x21d0f5('0x142d'),_0x21d0f5('0x1434'),'openchannelCannedAnswer',_0x21d0f5('0x12a5'),'Auth',_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1'),'crudPermissions'];function _0x13ee12(_0xa60b53,_0x24b5ed,_0x5a0fd0,_0x54f8f4,_0x22bc88,_0x1945ae,_0xf5d56b,_0x7683ef,_0x99c22e,_0x5eadb0,_0x568fb8,_0x4097a3,_0x27ad27,_0x424e4f){const _0x4ffdbf=_0x21d0f5,_0x412ed0=this;_0x412ed0[_0x4ffdbf('0x32a')]=_0x568fb8[_0x4ffdbf('0x2428')](),_0x412ed0[_0x4ffdbf('0x120f')]=[],_0x412ed0['setting']=_0x27ad27,_0x412ed0[_0x4ffdbf('0x17ff')]=_0x4097a3,_0x412ed0[_0x4ffdbf('0xb25')]=_0x424e4f,_0x412ed0[_0x4ffdbf('0x2c9')]={},_0x412ed0['passwordPattern']=_0x412ed0[_0x4ffdbf('0x23e1')]&&_0x412ed0['setting']['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x412ed0[_0x4ffdbf('0x134b')]=_0x4ffdbf('0x263b'),_0x412ed0[_0x4ffdbf('0x1a5c')]=angular[_0x4ffdbf('0x6fb')](_0x99c22e),_0x412ed0[_0x4ffdbf('0x1434')]=_0x7683ef,_0x412ed0[_0x4ffdbf('0xef2')]=![];!_0x412ed0[_0x4ffdbf('0x1a5c')]&&(_0x412ed0[_0x4ffdbf('0x1a5c')]={},_0x412ed0[_0x4ffdbf('0x134b')]='OPENCHANNEL.NEW_OPENCHANNELCANNEDANSWER',_0x412ed0[_0x4ffdbf('0xef2')]=!![]);_0x24b5ed[_0x4ffdbf('0x1ab3')]['id']&&(_0x412ed0['openchannelCannedAnswer'][_0x4ffdbf('0x2863')]=_0x24b5ed[_0x4ffdbf('0x1ab3')]['id']);_0x412ed0['addNewOpenchannelCannedAnswer']=_0x208fd3,_0x412ed0[_0x4ffdbf('0x1997')]=_0x48a499,_0x412ed0[_0x4ffdbf('0x1f25')]=_0xa45c8d,_0x412ed0[_0x4ffdbf('0x1bd1')]=_0xad7fcd,_0x412ed0['closeDialog']=_0x492245;function _0x208fd3(){const _0x514797=_0x4ffdbf;_0x412ed0['errors']=[],_0x5eadb0[_0x514797('0x81')][_0x514797('0x259')](_0x412ed0['openchannelCannedAnswer'])[_0x514797('0x1549')][_0x514797('0x11bf')](function(_0x4f4f85){const _0x1217fc=_0x514797;_0x412ed0[_0x1217fc('0x1434')][_0x1217fc('0x880')](_0x4f4f85[_0x1217fc('0x2866')]()),_0xf5d56b[_0x1217fc('0x2693')]({'title':_0x1217fc('0x11de'),'msg':_0x412ed0['openchannelCannedAnswer'][_0x1217fc('0x1909')]?_0x412ed0[_0x1217fc('0x1a5c')][_0x1217fc('0x1909')]+_0x1217fc('0x7fb'):''}),_0x492245(_0x4f4f85);})[_0x514797('0x151d')](function(_0x2fb9b4){const _0x32d41d=_0x514797;if(_0x2fb9b4[_0x32d41d('0x4e8')]&&_0x2fb9b4[_0x32d41d('0x4e8')][_0x32d41d('0x120f')]&&_0x2fb9b4['data'][_0x32d41d('0x120f')][_0x32d41d('0x1e22')]){_0x412ed0['errors']=_0x2fb9b4['data']['errors']||[{'message':_0x2fb9b4[_0x32d41d('0xaab')](),'type':_0x32d41d('0x23b5')}];for(let _0x11b215=0x0;_0x11b215<_0x2fb9b4[_0x32d41d('0x4e8')][_0x32d41d('0x120f')][_0x32d41d('0x1e22')];_0x11b215+=0x1){_0xf5d56b[_0x32d41d('0x255')]({'title':_0x2fb9b4[_0x32d41d('0x4e8')][_0x32d41d('0x120f')][_0x11b215][_0x32d41d('0x19fd')],'msg':_0x2fb9b4['data'][_0x32d41d('0x120f')][_0x11b215][_0x32d41d('0x1b86')]});}}else _0xf5d56b['error']({'title':_0x2fb9b4['status']?'API:'+_0x2fb9b4[_0x32d41d('0xff9')]+_0x32d41d('0xb0b')+_0x2fb9b4[_0x32d41d('0x212f')]:_0x32d41d('0x23b5'),'msg':_0x2fb9b4[_0x32d41d('0x4e8')]?JSON[_0x32d41d('0x3e')](_0x2fb9b4[_0x32d41d('0x4e8')][_0x32d41d('0x1b86')]):_0x2fb9b4['toString']()});});}function _0x48a499(){const _0xe081ab=_0x4ffdbf;_0x412ed0[_0xe081ab('0x120f')]=[],_0x5eadb0[_0xe081ab('0x81')][_0xe081ab('0x5ab')]({'id':_0x412ed0[_0xe081ab('0x1a5c')]['id']},_0x412ed0[_0xe081ab('0x1a5c')])['$promise'][_0xe081ab('0x11bf')](function(_0x220208){const _0x354835=_0xe081ab,_0x4f2a17=_0x36f548()[_0x354835('0x1ad4')](_0x412ed0['openchannelCannedAnswers'],{'id':_0x220208['id']});_0x4f2a17&&_0x36f548()['merge'](_0x4f2a17,_0x36f548()['pick'](_0x220208[_0x354835('0x2866')](),_0x36f548()[_0x354835('0xe22')](_0x4f2a17))),_0xf5d56b[_0x354835('0x2693')]({'title':'OpenchannelCannedAnswer\x20properly\x20saved!','msg':_0x412ed0[_0x354835('0x1a5c')]['name']?_0x412ed0[_0x354835('0x1a5c')][_0x354835('0x1909')]+'\x20has\x20been\x20saved!':''}),_0x492245(_0x220208);})[_0xe081ab('0x151d')](function(_0x1936f0){const _0x3f0899=_0xe081ab;if(_0x1936f0[_0x3f0899('0x4e8')]&&_0x1936f0[_0x3f0899('0x4e8')][_0x3f0899('0x120f')]&&_0x1936f0['data'][_0x3f0899('0x120f')][_0x3f0899('0x1e22')]){_0x412ed0[_0x3f0899('0x120f')]=_0x1936f0[_0x3f0899('0x4e8')][_0x3f0899('0x120f')]||[{'message':_0x1936f0['toString'](),'type':_0x3f0899('0x1698')}];for(let _0x570435=0x0;_0x570435<_0x1936f0[_0x3f0899('0x4e8')][_0x3f0899('0x120f')][_0x3f0899('0x1e22')];_0x570435++){_0xf5d56b['error']({'title':_0x1936f0[_0x3f0899('0x4e8')][_0x3f0899('0x120f')][_0x570435][_0x3f0899('0x19fd')],'msg':_0x1936f0['data'][_0x3f0899('0x120f')][_0x570435]['message']});}}else _0xf5d56b['error']({'title':_0x1936f0[_0x3f0899('0xff9')]?'API:'+_0x1936f0[_0x3f0899('0xff9')]+'\x20-\x20'+_0x1936f0['statusText']:_0x3f0899('0x1698'),'msg':_0x1936f0[_0x3f0899('0x4e8')]?JSON[_0x3f0899('0x3e')](_0x1936f0['data']['message']):_0x1936f0[_0x3f0899('0xaab')]()});});}function _0xa45c8d(_0x429550){const _0x37f232=_0x4ffdbf;_0x412ed0[_0x37f232('0x120f')]=[];const _0x138da2=_0x54f8f4[_0x37f232('0x132b')]()[_0x37f232('0x134b')](_0x37f232('0x1fa9'))[_0x37f232('0x252a')]('The\x20openchannelCannedAnswer\x20will\x20be\x20deleted.')[_0x37f232('0xb2e')](_0x37f232('0x184c'))['ok']('Delete')[_0x37f232('0x26c9')](_0x37f232('0x784'))[_0x37f232('0x1e25')](_0x429550);_0x54f8f4[_0x37f232('0xb9')](_0x138da2)['then'](function(){const _0x1caa7f=_0x37f232;_0x5eadb0[_0x1caa7f('0x81')][_0x1caa7f('0x2088')]({'id':_0x412ed0[_0x1caa7f('0x1a5c')]['id']})['$promise'][_0x1caa7f('0x11bf')](function(){const _0x57f640=_0x1caa7f;_0x36f548()['remove'](_0x412ed0['openchannelCannedAnswers'],{'id':_0x412ed0[_0x57f640('0x1a5c')]['id']}),_0xf5d56b['success']({'title':_0x57f640('0xe2a'),'msg':(_0x412ed0[_0x57f640('0x1a5c')]['name']||_0x57f640('0x1a5c'))+'\x20has\x20been\x20deleted!'}),_0x492245(_0x412ed0['openchannelCannedAnswer']);})[_0x1caa7f('0x151d')](function(_0x347904){const _0x25eb66=_0x1caa7f;if(_0x347904[_0x25eb66('0x4e8')]&&_0x347904[_0x25eb66('0x4e8')]['errors']&&_0x347904['data'][_0x25eb66('0x120f')]['length']){_0x412ed0[_0x25eb66('0x120f')]=_0x347904[_0x25eb66('0x4e8')][_0x25eb66('0x120f')]||[{'message':_0x347904[_0x25eb66('0xaab')](),'type':'api.cannedAnswer.delete'}];for(let _0x47191d=0x0;_0x47191d<_0x347904[_0x25eb66('0x4e8')]['errors'][_0x25eb66('0x1e22')];_0x47191d++){_0xf5d56b['error']({'title':_0x347904[_0x25eb66('0x4e8')]['errors'][_0x47191d][_0x25eb66('0x19fd')],'msg':_0x347904['data']['errors'][_0x47191d]['message']});}}else _0xf5d56b[_0x25eb66('0x255')]({'title':_0x347904[_0x25eb66('0xff9')]?_0x25eb66('0x574')+_0x347904[_0x25eb66('0xff9')]+_0x25eb66('0xb0b')+_0x347904[_0x25eb66('0x212f')]:'api.cannedAnswer.delete','msg':_0x347904[_0x25eb66('0x4e8')]?JSON[_0x25eb66('0x3e')](_0x347904[_0x25eb66('0x4e8')][_0x25eb66('0x1b86')]):_0x347904[_0x25eb66('0x1b86')]||_0x347904[_0x25eb66('0xaab')]()});});},function(){});}function _0xad7fcd(_0x50e9ee){return _0x50e9ee===null?undefined:new Date(_0x50e9ee);}function _0x492245(_0x4a76d5){const _0x1fd4c2=_0x4ffdbf;_0x54f8f4[_0x1fd4c2('0x237e')](_0x4a76d5);}}const _0x3ef0eb=_0x13ee12;_0x22ed22[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0x2143'),_0x21d0f5('0xcbc'),'$mdSidenav',_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),_0x21d0f5('0x17f5'),_0x21d0f5('0xb6b'),'api','toasty',_0x21d0f5('0x1150')];function _0x22ed22(_0x10eaf2,_0x2979a4,_0x3f3be2,_0x4ed30f,_0x435879,_0xdde264,_0x170139,_0x1fad91,_0x2d0a59,_0x2d4dce,_0x2574ab){const _0x1208f2=_0x21d0f5,_0x512294=this;_0x512294[_0x1208f2('0x32a')]=_0x2574ab['getCurrentUser'](),_0x512294[_0x1208f2('0x1394')]={'count':0x0,'rows':[]},_0x512294['selectedDispositions']=[],_0x512294[_0x1208f2('0xb25')],_0x512294[_0x1208f2('0x1526')]={'first':_0x1208f2('0x1558'),'second':_0x1208f2('0xe0e'),'third':_0x1208f2('0x10e6')},_0x512294[_0x1208f2('0x1f2a')]={'fields':_0x1208f2('0x12c1'),'sort':'-updatedAt','limit':0xa,'page':0x1},_0x512294[_0x1208f2('0x286f')]=_0x1e94c9,_0x512294[_0x1208f2('0x560')]=_0x139544,_0x512294[_0x1208f2('0x2693')]=_0x4c16ae,_0x512294[_0x1208f2('0x200')]=_0x5045da,_0x512294[_0x1208f2('0x238d')]=_0x589462,_0x512294[_0x1208f2('0x2776')]=_0x36c1df,_0x512294[_0x1208f2('0x25e')]=_0x3b9be7,_0x512294['deleteSelectedDispositions']=_0x489a0c,_0x512294['deselectDispositions']=_0x59973e,_0x512294['selectAllDispositions']=_0x2e6d10;function _0x1e94c9(_0x19ec70,_0x3e77a6){const _0x516689=_0x1208f2;_0x512294['openchannelAccount']=_0x19ec70||{},_0x512294[_0x516689('0xb25')]=typeof _0x3e77a6!==_0x516689('0x13e9')?_0x3e77a6:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x512294['query'][_0x516689('0x2863')]=_0x512294['openchannelAccount']['id'],_0x512294[_0x516689('0x1f2a')]['id']=_0x512294[_0x516689('0x13cb')]['id'],_0x5045da();}function _0x589462(_0x42c9d0,_0x140819){const _0x54f24b=_0x1208f2;_0x435879[_0x54f24b('0xb9')]({'controller':_0x54f24b('0x21b7'),'controllerAs':'vm','templateUrl':_0xd803cc,'parent':angular[_0x54f24b('0x1e73')](_0xdde264[_0x54f24b('0x1d2')]),'targetEvent':_0x42c9d0,'clickOutsideToClose':!![],'locals':{'disposition':_0x140819,'dispositions':_0x512294[_0x54f24b('0x1394')][_0x54f24b('0x19b2')],'model':{'id':_0x512294[_0x54f24b('0x13cb')]['id'],'field':_0x54f24b('0x2863')},'license':null,'setting':null,'crudPermissions':_0x512294['crudPermissions']}})['then'](function(_0x385c92){if(_0x385c92)_0x5045da();});}function _0x139544(_0x22240d,_0x487339){const _0xc03279=_0x1208f2,_0x5ab22a=_0x36f548()[_0xc03279('0x1cb3')](_0x512294['dispositions'][_0xc03279('0x19b2')],[_0xc03279('0x2ac'),_0x22240d['id']]),_0x2bf869=_0x435879[_0xc03279('0x132b')]()[_0xc03279('0x134b')](_0x1fad91[_0xc03279('0x10c2')](_0xc03279('0x221d')))[_0xc03279('0x252a')](_0x1fad91[_0xc03279('0x10c2')](_0xc03279('0x869')+(_0x5ab22a?_0xc03279('0x4bd'):'DISPOSITION_DELETE_MESSAGE'),{'name':_0x22240d['name']}))[_0xc03279('0xb2e')](_0xc03279('0x1c19'))[_0xc03279('0x1e25')](_0x487339)['ok']('OK')[_0xc03279('0x26c9')](_0x1fad91[_0xc03279('0x10c2')](_0xc03279('0xa5d')));_0x435879[_0xc03279('0xb9')](_0x2bf869)[_0xc03279('0x11bf')](function(){_0x36c1df(_0x22240d);});}function _0x4c16ae(_0x15036f){const _0xcbcfa0=_0x1208f2;_0x512294[_0xcbcfa0('0x1394')]=_0x15036f||{'count':0x0,'rows':[]};}function _0x5045da(){const _0x18cb8f=_0x1208f2;_0x512294[_0x18cb8f('0x1f2a')][_0x18cb8f('0x1393')]=(_0x512294[_0x18cb8f('0x1f2a')][_0x18cb8f('0x1c2')]-0x1)*_0x512294[_0x18cb8f('0x1f2a')]['limit'],_0x512294[_0x18cb8f('0x13f')]=_0x2d0a59[_0x18cb8f('0x13cb')][_0x18cb8f('0x200')](_0x512294[_0x18cb8f('0x1f2a')],_0x4c16ae)[_0x18cb8f('0x1549')];}function _0x36c1df(_0x343fab){const _0x455f8a=_0x1208f2;_0x2d0a59['disposition'][_0x455f8a('0x2088')]({'id':_0x343fab['id']})[_0x455f8a('0x1549')]['then'](function(){const _0x54c088=_0x455f8a;_0x5045da(),_0x2d4dce[_0x54c088('0x2693')]({'title':_0x1fad91[_0x54c088('0x10c2')]('TOOLS.NOTIFICATIONS.DISPOSITION_DELETED_SUCCESS_TITLE')});})[_0x455f8a('0x151d')](function(_0x12b099){const _0x1a144a=_0x455f8a;if(_0x12b099[_0x1a144a('0x4e8')]&&_0x12b099['data']['errors']&&_0x12b099[_0x1a144a('0x4e8')][_0x1a144a('0x120f')][_0x1a144a('0x1e22')]){_0x512294['errors']=_0x12b099[_0x1a144a('0x4e8')]['errors']||[{'message':_0x12b099['toString'](),'type':_0x1a144a('0x1551')}];for(let _0x5769e3=0x0;_0x5769e3<_0x12b099[_0x1a144a('0x4e8')][_0x1a144a('0x120f')][_0x1a144a('0x1e22')];_0x5769e3++){_0x2d4dce[_0x1a144a('0x255')]({'title':_0x12b099['data'][_0x1a144a('0x120f')][_0x5769e3][_0x1a144a('0x19fd')],'msg':_0x12b099[_0x1a144a('0x4e8')]['errors'][_0x5769e3]['message']});}}else _0x2d4dce[_0x1a144a('0x255')]({'title':_0x12b099[_0x1a144a('0xff9')]?_0x1a144a('0x574')+_0x12b099[_0x1a144a('0xff9')]+'\x20-\x20'+_0x12b099['statusText']:'SYSTEM:DELETEdisposition','msg':_0x12b099[_0x1a144a('0x4e8')]?JSON[_0x1a144a('0x3e')](_0x12b099[_0x1a144a('0x4e8')][_0x1a144a('0x1b86')]):_0x12b099[_0x1a144a('0x1b86')]||_0x12b099['toString']()});});}function _0x3b9be7(){const _0x3eebd=_0x1208f2,_0x12561e=angular[_0x3eebd('0x6fb')](_0x512294[_0x3eebd('0x21ae')]);return _0x512294[_0x3eebd('0x21ae')]=[],_0x12561e;}function _0x489a0c(_0x11a2cf){const _0x576cd6=_0x1208f2,_0x489cd1=_0x435879['confirm']()[_0x576cd6('0x134b')](_0x1fad91[_0x576cd6('0x10c2')](_0x576cd6('0x1cd5')))[_0x576cd6('0x252a')](_0x1fad91[_0x576cd6('0x10c2')](_0x576cd6('0x20f4'),{'total':_0x512294[_0x576cd6('0x21ae')][_0x576cd6('0x1e22')]}))[_0x576cd6('0xb2e')](_0x576cd6('0x1ef9'))[_0x576cd6('0x1e25')](_0x11a2cf)['ok']('OK')['cancel'](_0x1fad91[_0x576cd6('0x10c2')](_0x576cd6('0xa5d')));_0x435879[_0x576cd6('0xb9')](_0x489cd1)[_0x576cd6('0x11bf')](function(){const _0x10077c=_0x576cd6;_0x512294['selectedDispositions'][_0x10077c('0x1f88')](function(_0x587493){_0x36c1df(_0x587493);}),_0x512294[_0x10077c('0x21ae')]=[];});}function _0x59973e(){const _0x79e189=_0x1208f2;_0x512294[_0x79e189('0x21ae')]=[];}function _0x2e6d10(){const _0x19ae88=_0x1208f2;_0x512294[_0x19ae88('0x21ae')]=_0x512294[_0x19ae88('0x1394')][_0x19ae88('0x19b2')];}let _0x19c91c=!![],_0x440d6c=0x1;_0x10eaf2[_0x1208f2('0x2087')](_0x1208f2('0x1d12'),function(_0x5174e5,_0x313f1b){const _0x392932=_0x1208f2;_0x19c91c?_0x170139(function(){_0x19c91c=![];}):(!_0x313f1b&&(_0x440d6c=_0x512294['query'][_0x392932('0x1c2')]),_0x5174e5!==_0x313f1b&&(_0x512294[_0x392932('0x1f2a')]['page']=0x1),!_0x5174e5&&(_0x512294['query'][_0x392932('0x1c2')]=_0x440d6c),_0x5045da());});}const _0x52bcba=_0x22ed22,_0x20043e=_0x351988['p']+_0x21d0f5('0xa53');_0x2abe1f[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0xcbc'),_0x21d0f5('0x16b9'),'$mdDialog',_0x21d0f5('0x1b30'),_0x21d0f5('0xb6b'),_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1'),_0x21d0f5('0x12a5'),_0x21d0f5('0x142d'),_0x21d0f5('0x1150'),_0x21d0f5('0x13cb'),_0x21d0f5('0x1d63')];function _0x2abe1f(_0x4396e4,_0x168a2c,_0x26d1cb,_0x28762b,_0x226006,_0x40c1ac,_0x47360a,_0x28f991,_0x31d661,_0x23854f,_0x3d971d,_0x5aeb9f){const _0x7f98f6=_0x21d0f5,_0x27a12f=this;_0x27a12f[_0x7f98f6('0x32a')]=_0x23854f[_0x7f98f6('0x2428')](),_0x27a12f['license']=_0x40c1ac,_0x27a12f[_0x7f98f6('0x23e1')]=_0x47360a,_0x27a12f[_0x7f98f6('0x2834')]=_0x27a12f[_0x7f98f6('0x23e1')][_0x7f98f6('0x1d4')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x27a12f[_0x7f98f6('0x1d9a')]=_0x168a2c[_0x7f98f6('0x1797')]()+_0x7f98f6('0x16a1')+_0x168a2c['host'](),_0x27a12f[_0x7f98f6('0x13cb')]=_0x3d971d||_0x4396e4[_0x7f98f6('0x1ab3')]['openchannelAccount']||{},_0x27a12f[_0x7f98f6('0x1d63')]=_0x5aeb9f&&_0x5aeb9f[_0x7f98f6('0x27d2')]==0x1?_0x5aeb9f[_0x7f98f6('0x19b2')][0x0]:null,_0x27a12f['crudPermissions']=_0x23854f[_0x7f98f6('0x1530')](_0x27a12f['userProfileSection']?_0x27a12f['userProfileSection'][_0x7f98f6('0xb25')]:null),_0x27a12f[_0x7f98f6('0x2c9')]={},_0x27a12f['selectedTab']=_0x4396e4[_0x7f98f6('0x1ab3')][_0x7f98f6('0x205c')]||0x0,_0x27a12f['agentadddialog']=_0x2330c8,_0x27a12f[_0x7f98f6('0xb30')]=_0x31d661[_0x7f98f6('0x870')],_0x27a12f[_0x7f98f6('0xae1')]=_0x3f2472,_0x27a12f[_0x7f98f6('0xf2b')]=_0x2182dd,_0x23854f[_0x7f98f6('0x4ee')](_0x7f98f6('0xf45'))?_0x28f991[_0x7f98f6('0xbef')][_0x7f98f6('0xbaa')]({'fields':_0x7f98f6('0x721'),'sort':_0x7f98f6('0x1909')})[_0x7f98f6('0x1549')][_0x7f98f6('0x11bf')](function(_0x520354){const _0x5f096e=_0x7f98f6;_0x27a12f[_0x5f096e('0x2410')]=_0x520354[_0x5f096e('0x19b2')]||[];})['catch'](function(_0x49e00f){const _0x22a75f=_0x7f98f6;_0x31d661[_0x22a75f('0x255')]({'title':_0x49e00f[_0x22a75f('0xff9')]?'API:'+_0x49e00f[_0x22a75f('0xff9')]+'\x20-\x20'+_0x49e00f[_0x22a75f('0x212f')]:_0x22a75f('0x27ed'),'msg':_0x49e00f['data']?JSON[_0x22a75f('0x3e')](_0x49e00f[_0x22a75f('0x4e8')]):_0x49e00f[_0x22a75f('0xaab')]()});}):_0x28f991[_0x7f98f6('0xbef')]['get']({'fields':'id,name','sort':'name'})['$promise'][_0x7f98f6('0x11bf')](function(_0x35c8ea){const _0x1e3497=_0x7f98f6;_0x27a12f[_0x1e3497('0x2410')]=_0x35c8ea[_0x1e3497('0x19b2')]||[];})[_0x7f98f6('0x11bf')](function(){const _0xe7c4db=_0x7f98f6;return _0x28f991[_0xe7c4db('0x1d63')]['get']({'userProfileId':_0x27a12f[_0xe7c4db('0x32a')][_0xe7c4db('0x781')],'sectionId':0x12d})[_0xe7c4db('0x1549')];})[_0x7f98f6('0x11bf')](function(_0x1e04be){const _0x355eea=_0x7f98f6,_0x2a63e3=_0x1e04be&&_0x1e04be['rows']?_0x1e04be[_0x355eea('0x19b2')][0x0]:null;if(!_0x2a63e3){const _0x5abfb5=[];let _0xfad06d=null;_0x27a12f['openchannelAccount']&&(_0xfad06d=_0x36f548()[_0x355eea('0x1ad4')](_0x27a12f['lists'],{'id':Number(_0x27a12f[_0x355eea('0x13cb')][_0x355eea('0x1e91')])}));for(let _0x4768bb=0x0;_0x4768bb<_0x27a12f[_0x355eea('0x2410')][_0x355eea('0x1e22')];_0x4768bb++){_0xfad06d&&_0x27a12f[_0x355eea('0x2410')][_0x4768bb]['id']===_0xfad06d['id']&&(_0x27a12f[_0x355eea('0x2410')][_0x4768bb][_0x355eea('0x254a')]=![],_0x5abfb5['push'](_0x27a12f[_0x355eea('0x2410')][_0x4768bb]));}_0x27a12f[_0x355eea('0x2410')]=_0x5abfb5;}else{if(!_0x2a63e3[_0x355eea('0xf11')])return _0x28f991[_0x355eea('0x26d1')][_0x355eea('0xbaa')]({'sectionId':_0x2a63e3['id']})[_0x355eea('0x1549')][_0x355eea('0x11bf')](function(_0x2ff756){const _0x91bd9b=_0x355eea,_0x550b92=_0x36f548()['map'](_0x2ff756[_0x91bd9b('0x19b2')],function(_0x3688b8){const _0xaf3048=_0x91bd9b;return _0x36f548()[_0xaf3048('0x1ad4')](_0x27a12f['lists'],{'id':_0x3688b8['resourceId']});});let _0x3a4149=null;_0x27a12f[_0x91bd9b('0x13cb')]&&(_0x3a4149=_0x36f548()[_0x91bd9b('0x1ad4')](_0x27a12f[_0x91bd9b('0x2410')],{'id':Number(_0x27a12f[_0x91bd9b('0x13cb')][_0x91bd9b('0x1e91')])}));if(_0x3a4149&&!_0x36f548()['some'](_0x550b92,['id',_0x3a4149['id']])){const _0x3713a3=_0x36f548()['find'](_0x27a12f['lists'],{'id':_0x3a4149['id']});_0x3713a3[_0x91bd9b('0x254a')]=![],_0x550b92[_0x91bd9b('0x105d')](_0x3713a3);}_0x27a12f[_0x91bd9b('0x2410')]=_0x550b92;});}})[_0x7f98f6('0x151d')](function(_0x28761e){const _0x135272=_0x7f98f6;_0x31d661[_0x135272('0x255')]({'title':_0x28761e['status']?_0x135272('0x574')+_0x28761e[_0x135272('0xff9')]+_0x135272('0xb0b')+_0x28761e[_0x135272('0x212f')]:_0x135272('0xb71'),'msg':_0x28761e[_0x135272('0x4e8')]?JSON[_0x135272('0x3e')](_0x28761e[_0x135272('0x4e8')]):_0x28761e[_0x135272('0xaab')]()});}),_0x28f991[_0x7f98f6('0x1b8f')]['describe']({'id':_0x27a12f['openchannelAccount'][_0x7f98f6('0x1e91')]})[_0x7f98f6('0x1549')]['then'](function(_0x2df220){const _0x23db2a=_0x7f98f6;_0x27a12f[_0x23db2a('0x1067')]=[],_0x2df220=_0x36f548()['values'](_0x2df220['toJSON']());const _0x12b449=['id',_0x23db2a('0x1779'),_0x23db2a('0x14ea'),_0x23db2a('0x8af'),'scheduledat',_0x23db2a('0x1e91'),_0x23db2a('0x5b9')];for(let _0x3f5828=0x0;_0x3f5828<_0x2df220['length'];_0x3f5828++){!_0x36f548()[_0x23db2a('0x55a')](_0x12b449,_0x2df220[_0x3f5828][_0x23db2a('0x12e3')])&&_0x27a12f[_0x23db2a('0x1067')][_0x23db2a('0x105d')](_0x2df220[_0x3f5828]);}})['catch'](function(_0x4b4e12){const _0x1bb283=_0x7f98f6;_0x31d661['error']({'title':_0x4b4e12[_0x1bb283('0xff9')]?_0x1bb283('0x574')+_0x4b4e12['status']+_0x1bb283('0xb0b')+_0x4b4e12[_0x1bb283('0x212f')]:_0x1bb283('0x785'),'msg':_0x4b4e12[_0x1bb283('0x4e8')]?JSON[_0x1bb283('0x3e')](_0x4b4e12[_0x1bb283('0x4e8')]):_0x4b4e12[_0x1bb283('0xaab')]()});}),_0x23854f[_0x7f98f6('0x4ee')](_0x7f98f6('0xf45'))?_0x28f991[_0x7f98f6('0x92a')][_0x7f98f6('0xbaa')]({'fields':_0x7f98f6('0xaae'),'sort':'name','nolimit':_0x7f98f6('0x204c')})[_0x7f98f6('0x1549')]['then'](function(_0x32cda9){const _0xb4e81f=_0x7f98f6;_0x27a12f[_0xb4e81f('0x12f2')]=_0x32cda9['rows']||[];})['catch'](function(_0x43287a){const _0x321ff9=_0x7f98f6;_0x31d661[_0x321ff9('0x255')]({'title':_0x43287a['status']?_0x321ff9('0x574')+_0x43287a[_0x321ff9('0xff9')]+_0x321ff9('0xb0b')+_0x43287a['statusText']:_0x321ff9('0x1306'),'msg':_0x43287a[_0x321ff9('0x4e8')]?JSON[_0x321ff9('0x3e')](_0x43287a['data']):_0x43287a[_0x321ff9('0xaab')]()});}):_0x28f991[_0x7f98f6('0x92a')][_0x7f98f6('0xbaa')]({'fields':'name,id','sort':_0x7f98f6('0x1909'),'nolimit':_0x7f98f6('0x204c')})['$promise']['then'](function(_0xa485c1){const _0x1d15fa=_0x7f98f6;_0x27a12f[_0x1d15fa('0x12f2')]=_0xa485c1[_0x1d15fa('0x19b2')]||[];})[_0x7f98f6('0x11bf')](function(){const _0x2a46e8=_0x7f98f6;return _0x28f991['userProfileSection'][_0x2a46e8('0xbaa')]({'userProfileId':_0x27a12f[_0x2a46e8('0x32a')][_0x2a46e8('0x781')],'sectionId':0x3ed})[_0x2a46e8('0x1549')];})[_0x7f98f6('0x11bf')](function(_0x5ea01f){const _0x1f2fdc=_0x7f98f6,_0x5b33f1=_0x5ea01f&&_0x5ea01f[_0x1f2fdc('0x19b2')]?_0x5ea01f[_0x1f2fdc('0x19b2')][0x0]:null;if(!_0x5b33f1)_0x27a12f[_0x1f2fdc('0x12f2')]=[];else{if(!_0x5b33f1[_0x1f2fdc('0xf11')])return _0x28f991[_0x1f2fdc('0x26d1')][_0x1f2fdc('0xbaa')]({'sectionId':_0x5b33f1['id']})['$promise'][_0x1f2fdc('0x11bf')](function(_0x418156){const _0x313232=_0x1f2fdc,_0x379c05=_0x36f548()[_0x313232('0x2171')](_0x418156['rows'],function(_0x549dbd){const _0x5cf526=_0x313232;return _0x36f548()[_0x5cf526('0x1ad4')](_0x27a12f[_0x5cf526('0x12f2')],{'id':_0x549dbd[_0x5cf526('0x15a5')]});});_0x27a12f[_0x313232('0x12f2')]['forEach'](function(_0x4f95c3){const _0x3571ac=_0x313232;!_0x36f548()[_0x3571ac('0x1cb3')](_0x379c05,['id',_0x4f95c3['id']])&&(_0x4f95c3[_0x3571ac('0x254a')]=![]),_0x379c05[_0x3571ac('0x105d')](_0x4f95c3);}),_0x27a12f[_0x313232('0x12f2')]=_0x379c05;});}})[_0x7f98f6('0x151d')](function(_0x53c8dc){const _0x4948d7=_0x7f98f6;_0x31d661['error']({'title':_0x53c8dc[_0x4948d7('0xff9')]?_0x4948d7('0x574')+_0x53c8dc['status']+'\x20-\x20'+_0x53c8dc[_0x4948d7('0x212f')]:_0x4948d7('0x1c82'),'msg':_0x53c8dc[_0x4948d7('0x4e8')]?JSON[_0x4948d7('0x3e')](_0x53c8dc[_0x4948d7('0x4e8')]):_0x53c8dc[_0x4948d7('0xaab')]()});});function _0x2330c8(_0x2f7d4f,_0x37ed14){const _0x49b82a=_0x7f98f6;_0x26d1cb[_0x49b82a('0xb9')]({'controller':_0x49b82a('0xe1a'),'controllerAs':'vm','templateUrl':_0x20043e,'parent':angular[_0x49b82a('0x1e73')](_0x28762b[_0x49b82a('0x1d2')]),'targetEvent':_0x37ed14,'clickOutsideToClose':!![],'locals':{'openchannelAccount':_0x2f7d4f,'openchannelAccounts':_0x27a12f['openchannelAccounts']?_0x27a12f['openchannelAccounts'][_0x49b82a('0x19b2')]:[],'crudPermissions':_0x27a12f['crudPermissions'],'realtime':![]}});}function _0x3f2472(){_0x4396e4['go']('app.openchannel.openchannelAccounts',{},{'reload':'app.openchannel.openchannelAccounts'});}function _0x2182dd(){const _0x3781f2=_0x7f98f6;_0x28f991[_0x3781f2('0x13cb')][_0x3781f2('0x5ab')]({'id':_0x27a12f['openchannelAccount']['id']},_0x27a12f['openchannelAccount'])[_0x3781f2('0x1549')][_0x3781f2('0x11bf')](function(){const _0x2f5d02=_0x3781f2;_0x31d661[_0x2f5d02('0x2693')]({'title':_0x2f5d02('0x961'),'msg':_0x27a12f['openchannelAccount'][_0x2f5d02('0x1909')]?_0x27a12f[_0x2f5d02('0x13cb')]['name']+_0x2f5d02('0xd7'):''});})[_0x3781f2('0x151d')](function(_0x31065a){const _0x2ef381=_0x3781f2;_0x31d661[_0x2ef381('0x255')]({'title':_0x31065a['status']?_0x2ef381('0x574')+_0x31065a['status']+_0x2ef381('0xb0b')+_0x31065a['statusText']:_0x2ef381('0x2121'),'msg':_0x31065a[_0x2ef381('0x4e8')]?JSON[_0x2ef381('0x3e')](_0x31065a[_0x2ef381('0x4e8')]):_0x31065a[_0x2ef381('0xaab')]()});});}}const _0x331077=_0x2abe1f,_0x419634=_0x351988['p']+'src/js/modules/main/apps/openchannel/views/openchannelAccounts/create/dialog.html/dialog.html';_0x50f070[_0x21d0f5('0x1e9a')]=['$scope',_0x21d0f5('0x2143'),_0x21d0f5('0xcbc'),_0x21d0f5('0x18fe'),_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),_0x21d0f5('0x17f5'),'$translate',_0x21d0f5('0x1518'),_0x21d0f5('0x25bc'),'userProfileSection',_0x21d0f5('0x12a5'),_0x21d0f5('0xda9'),'toasty',_0x21d0f5('0x1150'),_0x21d0f5('0x17ff'),'setting'];function _0x50f070(_0x1043c2,_0x5784c7,_0x57e185,_0x3a5d70,_0x5aa7d0,_0x4007bb,_0x5ca5c3,_0x1a594b,_0x585d7f,_0x325c70,_0x5e4c92,_0x28b9e2,_0x14c15b,_0x3d67fb,_0x3c4501,_0x1b0be8,_0x37515b){const _0x4d1713=_0x21d0f5,_0xc9a40a=this;_0xc9a40a[_0x4d1713('0x17ff')]=_0x1b0be8,_0xc9a40a[_0x4d1713('0x23e1')]=_0x37515b,_0xc9a40a[_0x4d1713('0x32a')]=_0x3c4501[_0x4d1713('0x2428')](),_0xc9a40a[_0x4d1713('0x1518')]=_0x585d7f||{'count':0x0,'rows':[]},_0xc9a40a[_0x4d1713('0x25bc')]=_0x325c70,_0xc9a40a[_0x4d1713('0x1d63')]=_0x5e4c92&&_0x5e4c92[_0x4d1713('0x27d2')]==0x1?_0x5e4c92['rows'][0x0]:null,_0xc9a40a['crudPermissions']=_0x3c4501['parseCrudPermissions'](_0xc9a40a[_0x4d1713('0x1d63')]?_0xc9a40a['userProfileSection']['crudPermissions']:null),_0xc9a40a[_0x4d1713('0x13e8')]='openchannelAccounts',_0xc9a40a[_0x4d1713('0x724')]='',_0xc9a40a[_0x4d1713('0xe3c')]=null,_0xc9a40a[_0x4d1713('0x363')]=[],_0xc9a40a['query']={'fields':_0x4d1713('0xcfb'),'sort':'-updatedAt','limit':0xa,'page':0x1},_0xc9a40a[_0x4d1713('0x757')]=_0x97a5a8,_0xc9a40a['interactionsgoto']=_0x4e90bc,_0xc9a40a['agentadddialog']=_0xb0ae4b,_0xc9a40a[_0x4d1713('0x549')]=_0x408d24,_0xc9a40a[_0x4d1713('0x2693')]=_0x5bcff2,_0xc9a40a['getOpenchannelAccounts']=_0xe2a9cf,_0xc9a40a[_0x4d1713('0x2198')]=_0x274cdf,_0xc9a40a[_0x4d1713('0x16dc')]=_0x58db66,_0xc9a40a[_0x4d1713('0x900')]=_0x31ee20,_0xc9a40a[_0x4d1713('0x77')]=_0x144009,_0xc9a40a[_0x4d1713('0x27fe')]=_0x1106d1,_0xc9a40a[_0x4d1713('0x1c1f')]=_0x1c4830,_0x3c4501[_0x4d1713('0x4ee')](_0x4d1713('0xf45'))?_0x28b9e2['cmList'][_0x4d1713('0xbaa')]({'fields':'id,name','sort':_0x4d1713('0x1909')})['$promise'][_0x4d1713('0x11bf')](function(_0x4455f9){const _0x2e8019=_0x4d1713;_0xc9a40a[_0x2e8019('0x2410')]=_0x4455f9[_0x2e8019('0x19b2')]||[];})[_0x4d1713('0x151d')](function(_0x53411f){const _0x5292d1=_0x4d1713;_0x3d67fb[_0x5292d1('0x255')]({'title':_0x53411f[_0x5292d1('0xff9')]?'API:'+_0x53411f[_0x5292d1('0xff9')]+'\x20-\x20'+_0x53411f[_0x5292d1('0x212f')]:_0x5292d1('0x27ed'),'msg':_0x53411f[_0x5292d1('0x4e8')]?JSON[_0x5292d1('0x3e')](_0x53411f[_0x5292d1('0x4e8')]):_0x53411f[_0x5292d1('0xaab')]()});}):_0x28b9e2[_0x4d1713('0xbef')][_0x4d1713('0xbaa')]({'fields':_0x4d1713('0x721'),'sort':_0x4d1713('0x1909')})[_0x4d1713('0x1549')][_0x4d1713('0x11bf')](function(_0x561c27){const _0x4e76e3=_0x4d1713;_0xc9a40a[_0x4e76e3('0x2410')]=_0x561c27[_0x4e76e3('0x19b2')]||[];})[_0x4d1713('0x11bf')](function(){const _0x235baa=_0x4d1713;return _0x28b9e2[_0x235baa('0x1d63')][_0x235baa('0xbaa')]({'userProfileId':_0xc9a40a['currentUser'][_0x235baa('0x781')],'sectionId':0x12d})[_0x235baa('0x1549')];})[_0x4d1713('0x11bf')](function(_0x54e929){const _0x32e0a3=_0x4d1713,_0x502d82=_0x54e929&&_0x54e929[_0x32e0a3('0x19b2')]?_0x54e929[_0x32e0a3('0x19b2')][0x0]:null;if(!_0x502d82){const _0x156939=[];let _0x303cf1=null;_0xc9a40a[_0x32e0a3('0x13cb')]&&(_0x303cf1=_0x36f548()[_0x32e0a3('0x1ad4')](_0xc9a40a[_0x32e0a3('0x2410')],{'id':Number(_0xc9a40a[_0x32e0a3('0x13cb')][_0x32e0a3('0x1e91')])}));for(let _0x3df540=0x0;_0x3df540<_0xc9a40a[_0x32e0a3('0x2410')][_0x32e0a3('0x1e22')];_0x3df540++){_0x303cf1&&_0xc9a40a[_0x32e0a3('0x2410')][_0x3df540]['id']===_0x303cf1['id']&&(_0xc9a40a['lists'][_0x3df540]['canSelect']=![],_0x156939[_0x32e0a3('0x105d')](_0xc9a40a['lists'][_0x3df540]));}_0xc9a40a[_0x32e0a3('0x2410')]=_0x156939;}else{if(!_0x502d82[_0x32e0a3('0xf11')])return _0x28b9e2[_0x32e0a3('0x26d1')][_0x32e0a3('0xbaa')]({'sectionId':_0x502d82['id']})['$promise']['then'](function(_0x68dd70){const _0x459268=_0x32e0a3,_0x248ba6=_0x36f548()[_0x459268('0x2171')](_0x68dd70[_0x459268('0x19b2')],function(_0x3c4eb3){const _0x4b9500=_0x459268;return _0x36f548()[_0x4b9500('0x1ad4')](_0xc9a40a[_0x4b9500('0x2410')],{'id':_0x3c4eb3[_0x4b9500('0x15a5')]});});let _0x334b3=null;_0xc9a40a['openchannelAccount']&&(_0x334b3=_0x36f548()[_0x459268('0x1ad4')](_0xc9a40a[_0x459268('0x2410')],{'id':Number(_0xc9a40a[_0x459268('0x13cb')][_0x459268('0x1e91')])}));if(_0x334b3&&!_0x36f548()['some'](_0x248ba6,['id',_0x334b3['id']])){const _0x4903c3=_0x36f548()[_0x459268('0x1ad4')](_0xc9a40a['lists'],{'id':_0x334b3['id']});_0x4903c3[_0x459268('0x254a')]=![],_0x248ba6['push'](_0x4903c3);}_0xc9a40a[_0x459268('0x2410')]=_0x248ba6;});}})[_0x4d1713('0x151d')](function(_0x4d9078){const _0x48deb9=_0x4d1713;_0x3d67fb[_0x48deb9('0x255')]({'title':_0x4d9078[_0x48deb9('0xff9')]?'API:'+_0x4d9078['status']+'\x20-\x20'+_0x4d9078[_0x48deb9('0x212f')]:_0x48deb9('0xb71'),'msg':_0x4d9078[_0x48deb9('0x4e8')]?JSON[_0x48deb9('0x3e')](_0x4d9078['data']):_0x4d9078[_0x48deb9('0xaab')]()});});function _0x97a5a8(_0x578b44){const _0x53a5ed=_0x4d1713;_0x57e185['go'](_0x53a5ed('0x200a'),{'id':_0x578b44['id'],'openchannelAccount':_0x578b44,'crudPermissions':_0xc9a40a[_0x53a5ed('0xb25')]});}function _0x4e90bc(_0x5c8672){const _0x38e9fe=_0x4d1713;_0x57e185['go'](_0x38e9fe('0x200a'),{'id':_0x5c8672['id'],'tab':0x5});}function _0xb0ae4b(_0x39a625,_0x5da150){const _0x551afc=_0x4d1713;_0x5aa7d0['show']({'controller':_0x551afc('0xe1a'),'controllerAs':'vm','templateUrl':_0x20043e,'parent':angular[_0x551afc('0x1e73')](_0x4007bb['body']),'targetEvent':_0x5da150,'clickOutsideToClose':!![],'locals':{'openchannelAccount':_0x39a625,'openchannelAccounts':_0xc9a40a[_0x551afc('0x1518')]?_0xc9a40a['openchannelAccounts'][_0x551afc('0x19b2')]:[],'crudPermissions':_0xc9a40a['crudPermissions'],'realtime':![]}});}function _0x408d24(_0x5cfc41,_0x37b765){const _0x5d901a=_0x4d1713,_0x31f65e=_0x5aa7d0[_0x5d901a('0x132b')]()[_0x5d901a('0x134b')](_0x5d901a('0x1796')+_0x36f548()[_0x5d901a('0x13cf')](_0x5d901a('0x13cb'))+'?')[_0x5d901a('0x1d03')](''+(_0x5cfc41['name']||'openchannelAccount')+_0x5d901a('0x1c78')+_0x5d901a('0x1a'))[_0x5d901a('0xb2e')](_0x5d901a('0x120c'))[_0x5d901a('0x1e25')](_0x37b765)['ok']('OK')[_0x5d901a('0x26c9')](_0x5d901a('0x772'));_0x5aa7d0[_0x5d901a('0xb9')](_0x31f65e)[_0x5d901a('0x11bf')](function(){_0x58db66(_0x5cfc41);},function(){const _0x356824=_0x5d901a;console[_0x356824('0xc78')](_0x356824('0x772'));});}let _0x2ee17e=!![],_0x20baa6=0x1;_0x1043c2[_0x4d1713('0x2087')]('vm.query.filter',function(_0x2f64e4,_0x8590e2){const _0x3b1905=_0x4d1713;_0x2ee17e?_0x5ca5c3(function(){_0x2ee17e=![];}):(!_0x8590e2&&(_0x20baa6=_0xc9a40a[_0x3b1905('0x1f2a')]['page']),_0x2f64e4!==_0x8590e2&&(_0xc9a40a['query'][_0x3b1905('0x1c2')]=0x1),!_0x2f64e4&&(_0xc9a40a[_0x3b1905('0x1f2a')][_0x3b1905('0x1c2')]=_0x20baa6),_0xc9a40a[_0x3b1905('0x2549')]());});function _0x5bcff2(_0x223260){_0xc9a40a['openchannelAccounts']=_0x223260||{'count':0x0,'rows':[]};}function _0xe2a9cf(){const _0x5bb7d0=_0x4d1713;_0xc9a40a[_0x5bb7d0('0x1f2a')][_0x5bb7d0('0x1393')]=(_0xc9a40a[_0x5bb7d0('0x1f2a')][_0x5bb7d0('0x1c2')]-0x1)*_0xc9a40a['query'][_0x5bb7d0('0xd5c')],_0x3c4501[_0x5bb7d0('0x4ee')](_0x5bb7d0('0xf45'))?_0xc9a40a[_0x5bb7d0('0x13f')]=_0x28b9e2['openchannelAccount'][_0x5bb7d0('0xbaa')](_0xc9a40a[_0x5bb7d0('0x1f2a')],_0x5bcff2)[_0x5bb7d0('0x1549')]:(_0xc9a40a[_0x5bb7d0('0x1f2a')]['id']=_0xc9a40a[_0x5bb7d0('0x25bc')]['id'],_0xc9a40a[_0x5bb7d0('0x1f2a')]['section']=_0x5bb7d0('0x17d3'),_0xc9a40a[_0x5bb7d0('0x13f')]=_0x28b9e2[_0x5bb7d0('0x25bc')][_0x5bb7d0('0x228e')](_0xc9a40a[_0x5bb7d0('0x1f2a')],_0x5bcff2)[_0x5bb7d0('0x1549')]);}function _0x274cdf(_0x40c337,_0x2d891d){const _0x5c4e8d=_0x4d1713;_0x5aa7d0[_0x5c4e8d('0xb9')]({'controller':'CreateOrEditOpenchannelAccountDialogController','controllerAs':'vm','templateUrl':_0x419634,'parent':angular[_0x5c4e8d('0x1e73')](_0x4007bb[_0x5c4e8d('0x1d2')]),'targetEvent':_0x40c337,'clickOutsideToClose':!![],'locals':{'openchannelAccount':_0x2d891d,'openchannelAccounts':_0xc9a40a[_0x5c4e8d('0x1518')][_0x5c4e8d('0x19b2')],'license':_0xc9a40a[_0x5c4e8d('0x17ff')],'setting':_0xc9a40a[_0x5c4e8d('0x23e1')],'crudPermissions':_0xc9a40a[_0x5c4e8d('0xb25')]}});}function _0x58db66(_0x54f4f3){const _0x4f78ae=_0x4d1713;_0x28b9e2[_0x4f78ae('0x13cb')][_0x4f78ae('0x2088')]({'id':_0x54f4f3['id']})[_0x4f78ae('0x1549')][_0x4f78ae('0x11bf')](function(){const _0x4b4160=_0x4f78ae;_0x36f548()[_0x4b4160('0x14a5')](_0xc9a40a[_0x4b4160('0x1518')]['rows'],{'id':_0x54f4f3['id']}),_0xc9a40a['openchannelAccounts'][_0x4b4160('0x27d2')]-=0x1,!_0xc9a40a[_0x4b4160('0x1518')][_0x4b4160('0x19b2')][_0x4b4160('0x1e22')]&&_0xc9a40a['getOpenchannelAccounts'](),_0x3d67fb[_0x4b4160('0x2693')]({'title':_0x36f548()[_0x4b4160('0x13cf')](_0x4b4160('0xece'))+'\x20deleted!','msg':_0x54f4f3[_0x4b4160('0x1909')]?_0x54f4f3[_0x4b4160('0x1909')]+_0x4b4160('0x433'):''});})[_0x4f78ae('0x151d')](function(_0x3282e9){const _0x1c40d6=_0x4f78ae;if(_0x3282e9[_0x1c40d6('0x4e8')]&&_0x3282e9['data']['errors']&&_0x3282e9[_0x1c40d6('0x4e8')][_0x1c40d6('0x120f')][_0x1c40d6('0x1e22')]){_0xc9a40a[_0x1c40d6('0x120f')]=_0x3282e9[_0x1c40d6('0x4e8')][_0x1c40d6('0x120f')]||[{'message':_0x3282e9['toString'](),'type':_0x1c40d6('0x76d')}];for(let _0x5336f0=0x0;_0x5336f0<_0x3282e9[_0x1c40d6('0x4e8')]['errors'][_0x1c40d6('0x1e22')];_0x5336f0++){_0x3d67fb[_0x1c40d6('0x255')]({'title':_0x3282e9['data']['errors'][_0x5336f0][_0x1c40d6('0x19fd')],'msg':_0x3282e9[_0x1c40d6('0x4e8')][_0x1c40d6('0x120f')][_0x5336f0]['message']});}}else _0x3d67fb[_0x1c40d6('0x255')]({'title':_0x3282e9[_0x1c40d6('0xff9')]?_0x1c40d6('0x574')+_0x3282e9['status']+'\x20-\x20'+_0x3282e9[_0x1c40d6('0x212f')]:'SYSTEM:DELETEopenchannelAccount','msg':_0x3282e9['data']?JSON[_0x1c40d6('0x3e')](_0x3282e9[_0x1c40d6('0x4e8')][_0x1c40d6('0x1b86')]):_0x3282e9[_0x1c40d6('0x1b86')]||_0x3282e9[_0x1c40d6('0xaab')]()});});}function _0x31ee20(){const _0x5f4e9a=_0x4d1713,_0x4943b7=angular[_0x5f4e9a('0x6fb')](_0xc9a40a['selectedOpenchannelAccounts']);return _0xc9a40a[_0x5f4e9a('0x363')]=[],_0x4943b7;}function _0x144009(_0x5ed4e3){const _0x46d1ce=_0x4d1713,_0x1512ea=_0x5aa7d0[_0x46d1ce('0x132b')]()['title'](_0x46d1ce('0x305'))[_0x46d1ce('0x1d03')](''+_0xc9a40a[_0x46d1ce('0x363')][_0x46d1ce('0x1e22')]+_0x46d1ce('0xac6')+_0x46d1ce('0x1a'))['ariaLabel'](_0x46d1ce('0x2792'))['targetEvent'](_0x5ed4e3)['ok']('OK')[_0x46d1ce('0x26c9')](_0x46d1ce('0x772'));_0x5aa7d0[_0x46d1ce('0xb9')](_0x1512ea)['then'](function(){const _0x1f842d=_0x46d1ce;_0xc9a40a[_0x1f842d('0x363')][_0x1f842d('0x1f88')](function(_0x133bba){_0x58db66(_0x133bba);}),_0xc9a40a[_0x1f842d('0x363')]=[];});}function _0x1106d1(){const _0x342ae8=_0x4d1713;_0xc9a40a[_0x342ae8('0x363')]=[];}function _0x1c4830(){_0xc9a40a['selectedOpenchannelAccounts']=_0xc9a40a['openchannelAccounts']['rows'];}}const _0x1db270=_0x50f070;_0x4010a8[_0x21d0f5('0x1e9a')]=['$scope',_0x21d0f5('0xcbc'),_0x21d0f5('0x16b9'),_0x21d0f5('0x1ca2'),'$q','$translate',_0x21d0f5('0x142d'),_0x21d0f5('0xe1b'),_0x21d0f5('0x121f'),'api',_0x21d0f5('0x1150'),_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1'),_0x21d0f5('0xb25')];function _0x4010a8(_0x106f40,_0x3c21f2,_0x19ee22,_0x3ada27,_0x18dfd6,_0x551382,_0x53afe5,_0x31c7ff,_0x4c8fcd,_0x28ec12,_0x3ee347,_0x3baf00,_0x315a45,_0x16550b){const _0x44cf67=_0x21d0f5,_0x2aa431=this;_0x2aa431[_0x44cf67('0x32a')]=_0x3ee347[_0x44cf67('0x2428')](),_0x2aa431['errors']=[],_0x2aa431['setting']=_0x315a45,_0x2aa431[_0x44cf67('0x17ff')]=_0x3baf00,_0x2aa431[_0x44cf67('0xb25')]=_0x16550b,_0x2aa431['hasModulePermissions']={},_0x2aa431['passwordPattern']=_0x2aa431['setting']&&_0x2aa431[_0x44cf67('0x23e1')][_0x44cf67('0x1d4')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2aa431['title']=_0x44cf67('0xf8a'),_0x2aa431['openchannelQueue']=angular['copy'](_0x4c8fcd),_0x2aa431['openchannelQueues']=_0x31c7ff,_0x2aa431['newOpenchannelQueue']=![];!_0x2aa431[_0x44cf67('0x121f')]&&(_0x2aa431[_0x44cf67('0x121f')]={'strategy':'beepall','timeout':0xa},_0x2aa431[_0x44cf67('0x134b')]='OPENCHANNEL.NEW_OPENCHANNELQUEUE',_0x2aa431[_0x44cf67('0x14f4')]=!![]);_0x2aa431[_0x44cf67('0x1c0b')]=_0x27754b,_0x2aa431[_0x44cf67('0x252c')]=_0x3d1665,_0x2aa431[_0x44cf67('0x26e7')]=_0x113f08,_0x2aa431[_0x44cf67('0x1bd1')]=_0x4cb61b,_0x2aa431[_0x44cf67('0xc4e')]=_0x14658b;function _0x27754b(){const _0x5bfedc=_0x44cf67;_0x2aa431[_0x5bfedc('0x120f')]=[],_0x28ec12[_0x5bfedc('0x121f')]['save'](_0x2aa431[_0x5bfedc('0x121f')])[_0x5bfedc('0x1549')][_0x5bfedc('0x11bf')](function(_0x92ce8c){const _0x2aec5f=_0x5bfedc;_0x2aa431[_0x2aec5f('0xe1b')][_0x2aec5f('0x880')](_0x92ce8c[_0x2aec5f('0x2866')]()),_0x53afe5[_0x2aec5f('0x2693')]({'title':'OpenchannelQueue\x20properly\x20created','msg':_0x2aa431[_0x2aec5f('0x121f')][_0x2aec5f('0x1909')]?_0x2aa431[_0x2aec5f('0x121f')]['name']+_0x2aec5f('0x7fb'):''}),_0x14658b(_0x92ce8c);})[_0x5bfedc('0x151d')](function(_0x55eb67){const _0x269cff=_0x5bfedc;if(_0x55eb67[_0x269cff('0x4e8')]&&_0x55eb67[_0x269cff('0x4e8')][_0x269cff('0x120f')]&&_0x55eb67['data'][_0x269cff('0x120f')][_0x269cff('0x1e22')]){_0x2aa431['errors']=_0x55eb67[_0x269cff('0x4e8')]['errors']||[{'message':_0x55eb67[_0x269cff('0xaab')](),'type':_0x269cff('0x2111')}];for(let _0x1850e8=0x0;_0x1850e8<_0x55eb67[_0x269cff('0x4e8')][_0x269cff('0x120f')]['length'];_0x1850e8+=0x1){_0x53afe5[_0x269cff('0x255')]({'title':_0x55eb67['data'][_0x269cff('0x120f')][_0x1850e8][_0x269cff('0x19fd')],'msg':_0x55eb67[_0x269cff('0x4e8')][_0x269cff('0x120f')][_0x1850e8][_0x269cff('0x1b86')]});}}else _0x53afe5[_0x269cff('0x255')]({'title':_0x55eb67[_0x269cff('0xff9')]?_0x269cff('0x574')+_0x55eb67[_0x269cff('0xff9')]+'\x20-\x20'+_0x55eb67[_0x269cff('0x212f')]:_0x269cff('0x2111'),'msg':_0x55eb67[_0x269cff('0x4e8')]?JSON[_0x269cff('0x3e')](_0x55eb67[_0x269cff('0x4e8')][_0x269cff('0x1b86')]):_0x55eb67['toString']()});});}function _0x3d1665(){const _0x56334d=_0x44cf67;_0x2aa431[_0x56334d('0x120f')]=[],_0x28ec12[_0x56334d('0x121f')][_0x56334d('0x5ab')]({'id':_0x2aa431[_0x56334d('0x121f')]['id']},_0x2aa431['openchannelQueue'])['$promise'][_0x56334d('0x11bf')](function(_0x5f33cc){const _0x1e5266=_0x56334d,_0x4a3c0b=_0x36f548()[_0x1e5266('0x1ad4')](_0x2aa431[_0x1e5266('0xe1b')],{'id':_0x5f33cc['id']});_0x4a3c0b&&_0x36f548()[_0x1e5266('0x47b')](_0x4a3c0b,_0x36f548()[_0x1e5266('0x258')](_0x5f33cc[_0x1e5266('0x2866')](),_0x36f548()[_0x1e5266('0xe22')](_0x4a3c0b))),_0x53afe5['success']({'title':'OpenchannelQueue\x20properly\x20saved!','msg':_0x2aa431[_0x1e5266('0x121f')]['name']?_0x2aa431[_0x1e5266('0x121f')][_0x1e5266('0x1909')]+_0x1e5266('0x1a78'):''}),_0x14658b(_0x5f33cc);})['catch'](function(_0x1431e5){const _0x1d40af=_0x56334d;if(_0x1431e5[_0x1d40af('0x4e8')]&&_0x1431e5[_0x1d40af('0x4e8')][_0x1d40af('0x120f')]&&_0x1431e5[_0x1d40af('0x4e8')][_0x1d40af('0x120f')][_0x1d40af('0x1e22')]){_0x2aa431[_0x1d40af('0x120f')]=_0x1431e5[_0x1d40af('0x4e8')][_0x1d40af('0x120f')]||[{'message':_0x1431e5[_0x1d40af('0xaab')](),'type':_0x1d40af('0x12a9')}];for(let _0x5cbf82=0x0;_0x5cbf82<_0x1431e5['data']['errors'][_0x1d40af('0x1e22')];_0x5cbf82++){_0x53afe5[_0x1d40af('0x255')]({'title':_0x1431e5['data'][_0x1d40af('0x120f')][_0x5cbf82][_0x1d40af('0x19fd')],'msg':_0x1431e5[_0x1d40af('0x4e8')][_0x1d40af('0x120f')][_0x5cbf82][_0x1d40af('0x1b86')]});}}else _0x53afe5['error']({'title':_0x1431e5[_0x1d40af('0xff9')]?_0x1d40af('0x574')+_0x1431e5[_0x1d40af('0xff9')]+_0x1d40af('0xb0b')+_0x1431e5[_0x1d40af('0x212f')]:'api.openchannelQueue.update','msg':_0x1431e5[_0x1d40af('0x4e8')]?JSON[_0x1d40af('0x3e')](_0x1431e5['data']['message']):_0x1431e5[_0x1d40af('0xaab')]()});});}function _0x113f08(_0x1f084a){const _0x5df617=_0x44cf67;_0x2aa431[_0x5df617('0x120f')]=[];const _0x2b10db=_0x3ada27['confirm']()['title']('Are\x20you\x20sure?')[_0x5df617('0x252a')](_0x5df617('0x1323'))[_0x5df617('0xb2e')](_0x5df617('0x1e36'))['ok'](_0x5df617('0x1167'))[_0x5df617('0x26c9')](_0x5df617('0x784'))[_0x5df617('0x1e25')](_0x1f084a);_0x3ada27[_0x5df617('0xb9')](_0x2b10db)[_0x5df617('0x11bf')](function(){const _0x215d3c=_0x5df617;_0x28ec12[_0x215d3c('0x121f')]['delete']({'id':_0x2aa431[_0x215d3c('0x121f')]['id']})[_0x215d3c('0x1549')][_0x215d3c('0x11bf')](function(){const _0x17a2ab=_0x215d3c;_0x36f548()[_0x17a2ab('0x14a5')](_0x2aa431[_0x17a2ab('0xe1b')],{'id':_0x2aa431[_0x17a2ab('0x121f')]['id']}),_0x53afe5[_0x17a2ab('0x2693')]({'title':_0x17a2ab('0x1ed5'),'msg':(_0x2aa431[_0x17a2ab('0x121f')][_0x17a2ab('0x1909')]||_0x17a2ab('0x121f'))+_0x17a2ab('0x433')}),_0x14658b(_0x2aa431[_0x17a2ab('0x121f')]);})[_0x215d3c('0x151d')](function(_0x36f3e1){const _0x8d651=_0x215d3c;if(_0x36f3e1[_0x8d651('0x4e8')]&&_0x36f3e1[_0x8d651('0x4e8')][_0x8d651('0x120f')]&&_0x36f3e1['data'][_0x8d651('0x120f')][_0x8d651('0x1e22')]){_0x2aa431[_0x8d651('0x120f')]=_0x36f3e1[_0x8d651('0x4e8')][_0x8d651('0x120f')]||[{'message':_0x36f3e1[_0x8d651('0xaab')](),'type':_0x8d651('0x191b')}];for(let _0x374248=0x0;_0x374248<_0x36f3e1[_0x8d651('0x4e8')]['errors'][_0x8d651('0x1e22')];_0x374248++){_0x53afe5[_0x8d651('0x255')]({'title':_0x36f3e1[_0x8d651('0x4e8')]['errors'][_0x374248][_0x8d651('0x19fd')],'msg':_0x36f3e1['data'][_0x8d651('0x120f')][_0x374248][_0x8d651('0x1b86')]});}}else _0x53afe5[_0x8d651('0x255')]({'title':_0x36f3e1[_0x8d651('0xff9')]?_0x8d651('0x574')+_0x36f3e1['status']+_0x8d651('0xb0b')+_0x36f3e1[_0x8d651('0x212f')]:_0x8d651('0x191b'),'msg':_0x36f3e1[_0x8d651('0x4e8')]?JSON[_0x8d651('0x3e')](_0x36f3e1[_0x8d651('0x4e8')][_0x8d651('0x1b86')]):_0x36f3e1[_0x8d651('0x1b86')]||_0x36f3e1[_0x8d651('0xaab')]()});});},function(){});}function _0x4cb61b(_0x5b18b3){return _0x5b18b3===null?undefined:new Date(_0x5b18b3);}function _0x14658b(_0x4c5e6){const _0x363c53=_0x44cf67;_0x3ada27[_0x363c53('0x237e')](_0x4c5e6);}}const _0x59281b=_0x4010a8;_0x3d51ca['$inject']=[_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0x142d'),_0x21d0f5('0x12a5'),_0x21d0f5('0x121f'),_0x21d0f5('0xe1b'),_0x21d0f5('0x25f9'),_0x21d0f5('0xb6b'),'Auth',_0x21d0f5('0xb25')];function _0x3d51ca(_0x4bff9d,_0x2a8fa1,_0x13145c,_0x1b633a,_0x36a703,_0x4dfa27,_0x113c9e,_0x1b7dd6,_0x3dcaf1,_0x261560){const _0x592b1b=_0x21d0f5,_0x4430bd=this;_0x4430bd[_0x592b1b('0x32a')]=_0x3dcaf1[_0x592b1b('0x2428')](),_0x4430bd[_0x592b1b('0x121f')]=_0x36a703,_0x4430bd[_0x592b1b('0xb25')]=_0x261560,_0x4430bd[_0x592b1b('0x25f9')]=_0x113c9e,_0x4430bd['items']=[],_0x4430bd['allowedItems']=[],_0x4430bd[_0x592b1b('0x26cc')]=[],_0x4430bd[_0x592b1b('0x1c6f')]=[],_0x4430bd[_0x592b1b('0x21ed')]=[],_0x4430bd['pendingChanges']=![],_0x4430bd[_0x592b1b('0x277c')]=_0x18c8cd,_0x4430bd['saveAgents']=_0x176cd3,_0x4430bd[_0x592b1b('0xc4e')]=_0x1bd839,_0x4430bd[_0x592b1b('0xec5')]={'readOnly':!_0x4430bd['crudPermissions']['canEdit'],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x592b1b('0x1909'),'line1':'fullname','line2':['name',_0x592b1b('0x1a04')],'line3':'','labelAll':_0x1b7dd6[_0x592b1b('0x10c2')](_0x592b1b('0x250e')),'labelSelected':_0x1b7dd6[_0x592b1b('0x10c2')](_0x592b1b('0x24b4')),'transferCallback':function(){const _0x48edad=_0x592b1b,_0x2e8bff=_0x36f548()[_0x48edad('0x1a1b')](_0x4430bd[_0x48edad('0x21ed')],_0x4430bd[_0x48edad('0x26cc')],'id');_0x4430bd['pendingChanges']=_0x36f548()[_0x48edad('0x1fc5')](_0x2e8bff)?![]:!![];}};function _0x18c8cd(){const _0x26331e=_0x592b1b;return _0x3dcaf1[_0x26331e('0x4ee')](_0x26331e('0xf45'))?_0x59f7d6()['catch'](function(_0x3b0553){const _0x2dfeab=_0x26331e;_0x13145c['error']({'title':_0x3b0553[_0x2dfeab('0xff9')]?_0x2dfeab('0x574')+_0x3b0553[_0x2dfeab('0xff9')]+_0x2dfeab('0xb0b')+_0x3b0553[_0x2dfeab('0x212f')]:_0x2dfeab('0x912'),'msg':_0x3b0553[_0x2dfeab('0xff9')]?JSON[_0x2dfeab('0x3e')](_0x3b0553[_0x2dfeab('0x4e8')]):_0x3b0553['toString']()});}):_0x27e985()[_0x26331e('0x11bf')](function(_0x530e11){return _0x4430bd['section']=_0x530e11,_0x59f7d6();})[_0x26331e('0x151d')](function(_0x4eac70){const _0x1d6d80=_0x26331e;_0x13145c[_0x1d6d80('0x255')]({'title':_0x4eac70[_0x1d6d80('0xff9')]?_0x1d6d80('0x574')+_0x4eac70[_0x1d6d80('0xff9')]+_0x1d6d80('0xb0b')+_0x4eac70[_0x1d6d80('0x212f')]:_0x1d6d80('0x912'),'msg':_0x4eac70['status']?JSON['stringify'](_0x4eac70[_0x1d6d80('0x4e8')]):_0x4eac70['toString']()});});}function _0x27e985(){return _0x2a8fa1(function(_0x30d154,_0x16336a){const _0x58c279=a0_0xaf0c;_0x1b633a['userProfileSection']['get']({'userProfileId':_0x4430bd['currentUser'][_0x58c279('0x781')],'name':_0x58c279('0x4b1')})[_0x58c279('0x1549')][_0x58c279('0x11bf')](function(_0x4ee250){const _0x39d77f=_0x58c279,_0x587d5e=_0x4ee250&&_0x4ee250[_0x39d77f('0x19b2')]?_0x4ee250[_0x39d77f('0x19b2')][0x0]:null;_0x30d154(_0x587d5e);})[_0x58c279('0x151d')](function(_0x31350d){_0x16336a(_0x31350d);});});}function _0x59f7d6(){return _0x2a8fa1(function(_0x29c11d,_0x15c9f9){const _0x1686da=a0_0xaf0c;return _0x23758c()[_0x1686da('0x11bf')](function(_0x2f54d4){const _0x17877a=_0x1686da;return _0x4430bd[_0x17877a('0x22')]=_0x2f54d4[_0x17877a('0x19b2')]?_0x2f54d4['rows']:[],_0x3dcaf1[_0x17877a('0x4ee')](_0x17877a('0xf45'))?_0x2f54d4:_0x4430bd[_0x17877a('0xe6')]?_0x4430bd[_0x17877a('0xe6')][_0x17877a('0xf11')]?_0x2f54d4:_0x2a32ad():null;})[_0x1686da('0x11bf')](function(_0x313a60){const _0x1c382e=_0x1686da,_0x3005c2=_0x313a60&&_0x313a60['rows']?_0x313a60[_0x1c382e('0x19b2')]:[];return _0x4430bd[_0x1c382e('0x63')]=_0x36f548()[_0x1c382e('0x2171')](_0x3005c2,function(_0x25a867){const _0x1a7980=_0x1c382e;return _0x36f548()['find'](_0x4430bd['items'],{'id':_0x3dcaf1['hasRole'](_0x1a7980('0xf45'))||_0x4430bd['section']['autoAssociation']?_0x25a867['id']:_0x25a867[_0x1a7980('0x15a5')]});}),_0x4430bd['startingAllowedItems']=angular['copy'](_0x4430bd[_0x1c382e('0x63')]),_0x4430bd['items']['forEach'](function(_0x2afc67){const _0x549634=_0x1c382e,_0x5ea33b=_0x36f548()['find'](_0x4430bd[_0x549634('0x63')],{'id':_0x2afc67['id']});_0x3dcaf1[_0x549634('0x4ee')](_0x549634('0xf45'))?_0x2afc67[_0x549634('0xde9')]=!![]:_0x2afc67[_0x549634('0xde9')]=typeof _0x5ea33b!=='undefined'?!![]:![];}),_0x54a663();})[_0x1686da('0x11bf')](function(_0x341ff8){const _0x52f3fb=_0x1686da,_0x3b3ce1=_0x341ff8&&_0x341ff8[_0x52f3fb('0x19b2')]?_0x341ff8[_0x52f3fb('0x19b2')]:[];_0x4430bd['selectedItems']=_0x36f548()[_0x52f3fb('0x2171')](_0x3b3ce1,function(_0x2b84f9){const _0x40f862=_0x52f3fb,_0x4f02e0=_0x36f548()['find'](_0x4430bd[_0x40f862('0x22')],{'id':_0x2b84f9['id']});return _0x4f02e0[_0x40f862('0xf47')]=_0x2b84f9[_0x40f862('0x20c9')]?_0x40f862('0x1caa')+_0x2b84f9['UserOpenchannelQueue'][_0x40f862('0xf47')]:'',_0x4f02e0[_0x40f862('0x1a04')]=typeof _0x2b84f9['internal']!==_0x40f862('0x13e9')?'<'+_0x2b84f9[_0x40f862('0x1a04')]+'>':'',_0x4f02e0;}),_0x4430bd['startingSelectedItems']=angular[_0x52f3fb('0x6fb')](_0x4430bd[_0x52f3fb('0x26cc')]),_0x4430bd[_0x52f3fb('0xec5')]['selectedItems']=_0x4430bd[_0x52f3fb('0x26cc')],_0x4430bd[_0x52f3fb('0xec5')]['items']=_0x36f548()[_0x52f3fb('0x2753')](_0x4430bd[_0x52f3fb('0x63')],_0x4430bd[_0x52f3fb('0xec5')][_0x52f3fb('0x26cc')],'id'),_0x29c11d();})[_0x1686da('0x151d')](function(_0x2bff65){_0x15c9f9(_0x2bff65);});});}function _0x2a32ad(){return _0x2a8fa1(function(_0x4dc5a9,_0x342844){const _0xb1da73=a0_0xaf0c;return _0x1b633a[_0xb1da73('0x26d1')][_0xb1da73('0xbaa')]({'sectionId':_0x4430bd[_0xb1da73('0xe6')]['id'],'nolimit':!![]})[_0xb1da73('0x1549')][_0xb1da73('0x11bf')](function(_0x2515b2){_0x4dc5a9(_0x2515b2);})[_0xb1da73('0x151d')](function(_0xdf22df){_0x342844(_0xdf22df);});});}function _0x54a663(){return _0x2a8fa1(function(_0x539d31,_0x2a5a92){const _0x33e740=a0_0xaf0c;return _0x1b633a[_0x33e740('0x121f')][_0x33e740('0x2783')]({'id':_0x4430bd[_0x33e740('0x121f')]['id'],'fields':_0x33e740('0x13d3'),'nolimit':!![],'role':_0x33e740('0x18c4')})['$promise'][_0x33e740('0x11bf')](function(_0x54800e){_0x539d31(_0x54800e);})[_0x33e740('0x151d')](function(_0x5b45d6){_0x2a5a92(_0x5b45d6);});});}function _0x23758c(){return _0x2a8fa1(function(_0xd4f33e,_0x3855d6){const _0x3d1eaa=a0_0xaf0c;return _0x1b633a['user']['get']({'fields':'id,name,internal,fullname','nolimit':!![],'role':_0x3d1eaa('0x18c4')})[_0x3d1eaa('0x1549')][_0x3d1eaa('0x11bf')](function(_0x19c957){_0xd4f33e(_0x19c957);})[_0x3d1eaa('0x151d')](function(_0x3a5a84){_0x3855d6(_0x3a5a84);});});}function _0x5969e0(_0x1a31a7){return _0x2a8fa1(function(_0x59f925,_0x4ef872){const _0x1d9932=a0_0xaf0c;_0x36f548()[_0x1d9932('0x1fc5')](_0x1a31a7)?_0x59f925():_0x1b633a[_0x1d9932('0x121f')][_0x1d9932('0x110a')]({'id':_0x4430bd[_0x1d9932('0x121f')]['id'],'ids':_0x36f548()[_0x1d9932('0x2171')](_0x1a31a7,'id')})[_0x1d9932('0x1549')]['then'](function(){_0x59f925();})['catch'](function(_0x2311b9){_0x4ef872(_0x2311b9);});});}function _0x1c0c75(_0x1b862a){return _0x2a8fa1(function(_0x4348ce,_0x328526){const _0x28d9d1=a0_0xaf0c;_0x36f548()[_0x28d9d1('0x1fc5')](_0x1b862a)?_0x4348ce():_0x1b633a[_0x28d9d1('0x121f')][_0x28d9d1('0x1ec0')]({'id':_0x4430bd[_0x28d9d1('0x121f')]['id'],'ids':_0x36f548()[_0x28d9d1('0x2171')](_0x1b862a,'id')})[_0x28d9d1('0x1549')]['then'](function(){_0x4348ce();})[_0x28d9d1('0x151d')](function(_0x1fd6d4){_0x328526(_0x1fd6d4);});});}function _0x176cd3(){const _0x647ae7=_0x592b1b,_0x3857be=_0x36f548()[_0x647ae7('0x2753')](_0x4430bd[_0x647ae7('0x21ed')],_0x4430bd['selectedItems'],'id'),_0x13f901=_0x36f548()['differenceBy'](_0x4430bd[_0x647ae7('0x26cc')],_0x4430bd[_0x647ae7('0x21ed')],'id');return _0x1c0c75(_0x3857be)[_0x647ae7('0x11bf')](function(){return _0x5969e0(_0x13f901);})[_0x647ae7('0x11bf')](function(){const _0x8b7bd2=_0x647ae7;_0x4430bd[_0x8b7bd2('0x1eda')]=![],_0x4430bd['startingAllowedItems']=angular[_0x8b7bd2('0x6fb')](_0x4430bd['allowedItems']),_0x4430bd[_0x8b7bd2('0x21ed')]=angular[_0x8b7bd2('0x6fb')](_0x4430bd[_0x8b7bd2('0x26cc')]),_0x13145c[_0x8b7bd2('0x2693')]({'title':'SUCCESS','msg':_0x8b7bd2('0x2273')});})['catch'](function(_0x26922c){const _0x176bcc=_0x647ae7;_0x13145c[_0x176bcc('0x255')]({'title':_0x26922c['status']?_0x176bcc('0x574')+_0x26922c[_0x176bcc('0xff9')]+_0x176bcc('0xb0b')+_0x26922c[_0x176bcc('0x212f')]:_0x176bcc('0x1b7f'),'msg':_0x26922c[_0x176bcc('0xff9')]?JSON['stringify'](_0x26922c['data']):_0x26922c[_0x176bcc('0xaab')]()});});}function _0x1bd839(){const _0x5a2ef3=_0x592b1b;_0x4bff9d[_0x5a2ef3('0x237e')]();}}const _0x444ea6=_0x3d51ca;_0x408113[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0x142d'),'api',_0x21d0f5('0x121f'),_0x21d0f5('0xb6b'),_0x21d0f5('0x1150'),'crudPermissions'];function _0x408113(_0x3016c0,_0x11e0ec,_0x38a30f,_0x4441be,_0x1e1d72,_0x5428e6,_0x2065ad,_0x31f5bc){const _0x410652=_0x21d0f5,_0x4c6033=this;_0x4c6033[_0x410652('0x32a')]=_0x2065ad[_0x410652('0x2428')](),_0x4c6033[_0x410652('0x121f')]=_0x1e1d72,_0x4c6033['crudPermissions']=_0x31f5bc,_0x4c6033[_0x410652('0x22')]=[],_0x4c6033[_0x410652('0x63')]=[],_0x4c6033['selectedItems']=[],_0x4c6033[_0x410652('0x1c6f')]=[],_0x4c6033[_0x410652('0x21ed')]=[],_0x4c6033[_0x410652('0x1eda')]=![],_0x4c6033[_0x410652('0xec5')]={'readOnly':!_0x4c6033[_0x410652('0xb25')][_0x410652('0x25db')],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':'name','line1':_0x410652('0x1909'),'line2':'','line3':'','labelAll':_0x5428e6[_0x410652('0x10c2')]('APP.ALL_TEAMS'),'labelSelected':_0x5428e6['instant'](_0x410652('0x16b7')),'transferCallback':function(){const _0x21d1e7=_0x410652,_0x233408=_0x36f548()[_0x21d1e7('0x1a1b')](_0x4c6033[_0x21d1e7('0x21ed')],_0x4c6033[_0x21d1e7('0x26cc')],'id');_0x4c6033[_0x21d1e7('0x1eda')]=_0x36f548()[_0x21d1e7('0x1fc5')](_0x233408)?![]:!![];}},_0x4c6033[_0x410652('0x277c')]=_0x48b95f,_0x4c6033[_0x410652('0x1581')]=_0x8fac45,_0x4c6033['closeDialog']=_0x7d929b;function _0x48b95f(){const _0x595c98=_0x410652;return _0x2065ad['hasRole'](_0x595c98('0xf45'))?_0x5e03d9()[_0x595c98('0x151d')](function(_0x5ea5cf){const _0x543e4f=_0x595c98;_0x38a30f[_0x543e4f('0x255')]({'title':_0x5ea5cf[_0x543e4f('0xff9')]?_0x543e4f('0x574')+_0x5ea5cf[_0x543e4f('0xff9')]+_0x543e4f('0xb0b')+_0x5ea5cf[_0x543e4f('0x212f')]:_0x543e4f('0x2059'),'msg':_0x5ea5cf[_0x543e4f('0xff9')]?JSON[_0x543e4f('0x3e')](_0x5ea5cf['data']):_0x5ea5cf[_0x543e4f('0xaab')]()});}):_0xfd9cde()[_0x595c98('0x11bf')](function(_0x3ef789){const _0x2fefb0=_0x595c98;return _0x4c6033[_0x2fefb0('0xe6')]=_0x3ef789,_0x5e03d9();})['catch'](function(_0x21d2c7){const _0x310f84=_0x595c98;_0x38a30f['error']({'title':_0x21d2c7[_0x310f84('0xff9')]?_0x310f84('0x574')+_0x21d2c7['status']+_0x310f84('0xb0b')+_0x21d2c7['statusText']:_0x310f84('0x2059'),'msg':_0x21d2c7['status']?JSON[_0x310f84('0x3e')](_0x21d2c7['data']):_0x21d2c7[_0x310f84('0xaab')]()});});}function _0xfd9cde(){return _0x11e0ec(function(_0xa0ba69,_0x55c0e6){const _0x201df9=a0_0xaf0c;_0x4441be[_0x201df9('0x1d63')]['get']({'userProfileId':_0x4c6033[_0x201df9('0x32a')][_0x201df9('0x781')],'name':_0x201df9('0xc3f')})[_0x201df9('0x1549')][_0x201df9('0x11bf')](function(_0x5a855a){const _0x300c19=_0x201df9,_0x34382b=_0x5a855a&&_0x5a855a[_0x300c19('0x19b2')]?_0x5a855a[_0x300c19('0x19b2')][0x0]:null;_0xa0ba69(_0x34382b);})[_0x201df9('0x151d')](function(_0x3f43d8){_0x55c0e6(_0x3f43d8);});});}function _0x5e03d9(){return _0x11e0ec(function(_0x12ba11,_0x2b9a5a){const _0x258674=a0_0xaf0c;return _0x3726f9()[_0x258674('0x11bf')](function(_0x4e6b86){const _0x197d13=_0x258674;return _0x4c6033[_0x197d13('0x22')]=_0x4e6b86[_0x197d13('0x19b2')]?_0x4e6b86[_0x197d13('0x19b2')]:[],_0x2065ad[_0x197d13('0x4ee')](_0x197d13('0xf45'))?_0x4e6b86:_0x4c6033[_0x197d13('0xe6')]?_0x4c6033[_0x197d13('0xe6')][_0x197d13('0xf11')]?_0x4e6b86:_0x47ad91():null;})[_0x258674('0x11bf')](function(_0x22bc9c){const _0x30f9cf=_0x258674,_0xccfda0=_0x22bc9c&&_0x22bc9c['rows']?_0x22bc9c[_0x30f9cf('0x19b2')]:[];return _0x4c6033[_0x30f9cf('0x63')]=_0x36f548()[_0x30f9cf('0x2171')](_0xccfda0,function(_0x26dfc6){const _0x14aade=_0x30f9cf;return _0x36f548()['find'](_0x4c6033[_0x14aade('0x22')],{'id':_0x2065ad[_0x14aade('0x4ee')](_0x14aade('0xf45'))||_0x4c6033[_0x14aade('0xe6')][_0x14aade('0xf11')]?_0x26dfc6['id']:_0x26dfc6['resourceId']});}),_0x4c6033[_0x30f9cf('0x22')][_0x30f9cf('0x1f88')](function(_0x1cd202){const _0xaf9265=_0x30f9cf,_0x329621=_0x36f548()[_0xaf9265('0x1ad4')](_0x4c6033[_0xaf9265('0x63')],{'id':_0x1cd202['id']});_0x2065ad['hasRole']('admin')?_0x1cd202[_0xaf9265('0xde9')]=!![]:_0x1cd202['isValid']=typeof _0x329621!==_0xaf9265('0x13e9')?!![]:![];}),_0x542291();})[_0x258674('0x11bf')](function(_0x375c01){const _0x115498=_0x258674,_0x90e2e2=_0x375c01&&_0x375c01[_0x115498('0x19b2')]?_0x375c01[_0x115498('0x19b2')]:[];_0x4c6033[_0x115498('0x26cc')]=_0x36f548()['map'](_0x90e2e2,function(_0x26a0eb){return _0x36f548()['find'](_0x4c6033['items'],{'id':_0x26a0eb['id']});}),_0x4c6033[_0x115498('0x21ed')]=angular[_0x115498('0x6fb')](_0x4c6033[_0x115498('0x26cc')]),_0x4c6033['dualMultiselectOptions'][_0x115498('0x26cc')]=_0x4c6033[_0x115498('0x26cc')],_0x4c6033['dualMultiselectOptions'][_0x115498('0x22')]=_0x36f548()['differenceBy'](_0x4c6033[_0x115498('0x63')],_0x4c6033[_0x115498('0xec5')]['selectedItems'],'id'),_0x12ba11();})[_0x258674('0x151d')](function(_0x3f3d77){_0x2b9a5a(_0x3f3d77);});});}function _0x47ad91(){return _0x11e0ec(function(_0x187e23,_0x1e20f3){const _0x3f9779=a0_0xaf0c;return _0x4441be[_0x3f9779('0x26d1')]['get']({'sectionId':_0x4c6033[_0x3f9779('0xe6')]['id'],'nolimit':!![]})[_0x3f9779('0x1549')][_0x3f9779('0x11bf')](function(_0x5e6e3a){_0x187e23(_0x5e6e3a);})[_0x3f9779('0x151d')](function(_0xefbb74){_0x1e20f3(_0xefbb74);});});}function _0x542291(){return _0x11e0ec(function(_0x5e6468,_0xfe0964){const _0x56c764=a0_0xaf0c;return _0x4441be[_0x56c764('0x121f')]['getTeams']({'id':_0x4c6033['openchannelQueue']['id'],'fields':_0x56c764('0x721'),'nolimit':!![]})[_0x56c764('0x1549')][_0x56c764('0x11bf')](function(_0x52b1cf){_0x5e6468(_0x52b1cf);})['catch'](function(_0x7b32ea){_0xfe0964(_0x7b32ea);});});}function _0x3726f9(){return _0x11e0ec(function(_0x14dc29,_0x306cb1){const _0x170a2a=a0_0xaf0c;return _0x4441be[_0x170a2a('0xae6')]['get']({'fields':_0x170a2a('0x721'),'nolimit':!![]})[_0x170a2a('0x1549')][_0x170a2a('0x11bf')](function(_0x48d577){_0x14dc29(_0x48d577);})[_0x170a2a('0x151d')](function(_0x5e44a4){_0x306cb1(_0x5e44a4);});});}function _0x3f003e(_0x120f4c){return _0x11e0ec(function(_0x31e6f5,_0x33f320){const _0x5b79e0=a0_0xaf0c;_0x36f548()[_0x5b79e0('0x1fc5')](_0x120f4c)?_0x31e6f5():_0x4441be['openchannelQueue'][_0x5b79e0('0x1202')]({'id':_0x4c6033[_0x5b79e0('0x121f')]['id'],'ids':_0x36f548()[_0x5b79e0('0x2171')](_0x120f4c,'id')})[_0x5b79e0('0x1549')]['then'](function(){_0x31e6f5();})[_0x5b79e0('0x151d')](function(_0x1845f4){_0x33f320(_0x1845f4);});});}function _0x533c14(_0x1f80ca){return _0x11e0ec(function(_0xe4875e,_0x2c8aa0){const _0x388f8f=a0_0xaf0c;_0x36f548()['isEmpty'](_0x1f80ca)?_0xe4875e():_0x4441be[_0x388f8f('0x121f')][_0x388f8f('0xaea')]({'id':_0x4c6033[_0x388f8f('0x121f')]['id'],'ids':_0x36f548()[_0x388f8f('0x2171')](_0x1f80ca,'id')})[_0x388f8f('0x1549')][_0x388f8f('0x11bf')](function(){_0xe4875e();})[_0x388f8f('0x151d')](function(_0xca3ff8){_0x2c8aa0(_0xca3ff8);});});}function _0x8fac45(){const _0x403a4f=_0x410652,_0x4ee79b=_0x36f548()['differenceBy'](_0x4c6033[_0x403a4f('0x21ed')],_0x4c6033[_0x403a4f('0x26cc')],'id'),_0x2235eb=_0x36f548()['differenceBy'](_0x4c6033['selectedItems'],_0x4c6033[_0x403a4f('0x21ed')],'id');return _0x533c14(_0x4ee79b)[_0x403a4f('0x11bf')](function(){return _0x3f003e(_0x2235eb);})['then'](function(){const _0x146db5=_0x403a4f;_0x4c6033[_0x146db5('0x1eda')]=![],_0x4c6033[_0x146db5('0x1c6f')]=angular[_0x146db5('0x6fb')](_0x4c6033[_0x146db5('0x63')]),_0x4c6033[_0x146db5('0x21ed')]=angular['copy'](_0x4c6033[_0x146db5('0x26cc')]),_0x38a30f['success']({'title':_0x146db5('0x2243'),'msg':_0x146db5('0x1a68')});})[_0x403a4f('0x151d')](function(_0x20c40d){const _0x3cdd40=_0x403a4f;_0x38a30f[_0x3cdd40('0x255')]({'title':_0x20c40d[_0x3cdd40('0xff9')]?_0x3cdd40('0x574')+_0x20c40d[_0x3cdd40('0xff9')]+_0x3cdd40('0xb0b')+_0x20c40d[_0x3cdd40('0x212f')]:_0x3cdd40('0x1b7f'),'msg':_0x20c40d[_0x3cdd40('0xff9')]?JSON['stringify'](_0x20c40d[_0x3cdd40('0x4e8')]):_0x20c40d[_0x3cdd40('0xaab')]()});});}function _0x7d929b(){const _0x21b877=_0x410652;_0x3016c0[_0x21b877('0x237e')]();}}const _0x543d1a=_0x408113,_0x231715=_0x351988['p']+'src/js/modules/main/apps/openchannel/views/openchannelQueues/edit/teamadd/teamadd.html/teamadd.html';_0x1b0c26[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0xcbc'),'$location',_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),'$translate',_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1'),_0x21d0f5('0x12a5'),_0x21d0f5('0x142d'),_0x21d0f5('0x1150'),_0x21d0f5('0x121f'),_0x21d0f5('0x1d63')];function _0x1b0c26(_0x68530c,_0x3af08b,_0xaff7a1,_0x4092bc,_0x409c45,_0x5ab4e7,_0xccd146,_0x4ca610,_0x56bad7,_0x31ed40,_0x18f152,_0x195709){const _0x1f51e6=_0x21d0f5,_0x268926=this;_0x268926[_0x1f51e6('0x32a')]=_0x31ed40[_0x1f51e6('0x2428')](),_0x268926[_0x1f51e6('0x17ff')]=_0x5ab4e7,_0x268926[_0x1f51e6('0x23e1')]=_0xccd146,_0x268926[_0x1f51e6('0x2834')]=_0x268926['setting']['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x268926['location']=_0x3af08b['protocol']()+_0x1f51e6('0x16a1')+_0x3af08b[_0x1f51e6('0x14ec')](),_0x268926[_0x1f51e6('0x121f')]=_0x18f152||_0x68530c[_0x1f51e6('0x1ab3')][_0x1f51e6('0x121f')]||{},_0x268926[_0x1f51e6('0x1d63')]=_0x195709&&_0x195709[_0x1f51e6('0x27d2')]==0x1?_0x195709[_0x1f51e6('0x19b2')][0x0]:null,_0x268926['crudPermissions']=_0x31ed40[_0x1f51e6('0x1530')](_0x268926[_0x1f51e6('0x1d63')]?_0x268926['userProfileSection'][_0x1f51e6('0xb25')]:null),_0x268926['hasModulePermissions']={},_0x268926[_0x1f51e6('0x1179')]=_0x68530c[_0x1f51e6('0x1ab3')][_0x1f51e6('0x205c')]||0x0,_0x268926['teamadddialog']=_0x12472e,_0x268926[_0x1f51e6('0x2363')]=_0x321aba,_0x268926[_0x1f51e6('0xb30')]=_0x56bad7[_0x1f51e6('0x870')],_0x268926[_0x1f51e6('0x2068')]=_0x389339,_0x268926[_0x1f51e6('0x252c')]=_0x2647ac;function _0x12472e(_0x5d527e,_0x53f5b8){const _0x762946=_0x1f51e6;_0xaff7a1[_0x762946('0xb9')]({'controller':_0x762946('0x195c'),'controllerAs':'vm','templateUrl':_0x231715,'parent':angular[_0x762946('0x1e73')](_0x4092bc['body']),'targetEvent':_0x53f5b8,'clickOutsideToClose':!![],'locals':{'openchannelQueue':_0x5d527e,'openchannelQueues':_0x268926[_0x762946('0xe1b')]?_0x268926[_0x762946('0xe1b')][_0x762946('0x19b2')]:[],'crudPermissions':_0x268926['crudPermissions']}});}function _0x321aba(_0x151ca6,_0x10aa17){const _0x30cced=_0x1f51e6;_0xaff7a1['show']({'controller':_0x30cced('0x129d'),'controllerAs':'vm','templateUrl':_0x1f8a81,'parent':angular[_0x30cced('0x1e73')](_0x4092bc[_0x30cced('0x1d2')]),'targetEvent':_0x10aa17,'clickOutsideToClose':!![],'locals':{'openchannelQueue':_0x151ca6,'openchannelQueues':_0x268926[_0x30cced('0xe1b')]?_0x268926[_0x30cced('0xe1b')][_0x30cced('0x19b2')]:[],'crudPermissions':_0x268926[_0x30cced('0xb25')],'realtime':![]}});}function _0x389339(){const _0x1714ef=_0x1f51e6;_0x68530c['go']('app.openchannel.openchannelQueues',{},{'reload':_0x1714ef('0x35c')});}function _0x2647ac(){const _0xa79569=_0x1f51e6;_0x4ca610[_0xa79569('0x121f')][_0xa79569('0x5ab')]({'id':_0x268926[_0xa79569('0x121f')]['id']},_0x268926['openchannelQueue'])[_0xa79569('0x1549')][_0xa79569('0x11bf')](function(){const _0x4af9c4=_0xa79569;_0x56bad7[_0x4af9c4('0x2693')]({'title':_0x4af9c4('0x12ef'),'msg':_0x268926[_0x4af9c4('0x121f')][_0x4af9c4('0x1909')]?_0x268926['openchannelQueue'][_0x4af9c4('0x1909')]+_0x4af9c4('0xd7'):''});})['catch'](function(_0x2634f5){const _0x8ed1eb=_0xa79569;_0x56bad7[_0x8ed1eb('0x255')]({'title':_0x2634f5['status']?_0x8ed1eb('0x574')+_0x2634f5['status']+_0x8ed1eb('0xb0b')+_0x2634f5[_0x8ed1eb('0x212f')]:_0x8ed1eb('0x982'),'msg':_0x2634f5[_0x8ed1eb('0x4e8')]?JSON[_0x8ed1eb('0x3e')](_0x2634f5[_0x8ed1eb('0x4e8')]):_0x2634f5[_0x8ed1eb('0xaab')]()});});}}const _0xafc221=_0x1b0c26;_0x19cd2e[_0x21d0f5('0x1e9a')]=['$scope',_0x21d0f5('0x2143'),_0x21d0f5('0xcbc'),_0x21d0f5('0x18fe'),_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),_0x21d0f5('0x17f5'),_0x21d0f5('0xb6b'),'openchannelQueues',_0x21d0f5('0x25bc'),_0x21d0f5('0x1d63'),'api',_0x21d0f5('0xda9'),_0x21d0f5('0x142d'),_0x21d0f5('0x1150'),_0x21d0f5('0x17ff'),'setting'];function _0x19cd2e(_0x6e455f,_0x43e911,_0x2d19e8,_0x56b472,_0x43a4c5,_0x12cc73,_0x37d672,_0x50b946,_0xd22dc7,_0x303a30,_0x3100db,_0x11f8d9,_0x1ab2c6,_0x51ffef,_0x42b877,_0x4af532,_0xd196c0){const _0x35121f=_0x21d0f5,_0xf90975=this;_0xf90975[_0x35121f('0x17ff')]=_0x4af532,_0xf90975['setting']=_0xd196c0,_0xf90975[_0x35121f('0x32a')]=_0x42b877[_0x35121f('0x2428')](),_0xf90975[_0x35121f('0xe1b')]=_0xd22dc7||{'count':0x0,'rows':[]},_0xf90975['userProfile']=_0x303a30,_0xf90975[_0x35121f('0x1d63')]=_0x3100db&&_0x3100db[_0x35121f('0x27d2')]==0x1?_0x3100db[_0x35121f('0x19b2')][0x0]:null,_0xf90975['crudPermissions']=_0x42b877[_0x35121f('0x1530')](_0xf90975[_0x35121f('0x1d63')]?_0xf90975[_0x35121f('0x1d63')][_0x35121f('0xb25')]:null),_0xf90975['table']='openchannelQueues',_0xf90975[_0x35121f('0x724')]='',_0xf90975[_0x35121f('0xe3c')]=null,_0xf90975[_0x35121f('0x1c4e')]=[],_0xf90975[_0x35121f('0x1f2a')]={'fields':_0x35121f('0xe24'),'sort':_0x35121f('0x1c74'),'channel':_0x35121f('0xb18'),'limit':0xa,'page':0x1},_0xf90975[_0x35121f('0x1612')]=_0x36f548()[_0x35121f('0x2130')]([{'option':_0x35121f('0x1ace'),'value':_0x35121f('0x16c6')},{'option':_0x35121f('0x2510'),'value':_0x35121f('0x166d')}],function(_0x30b36f){const _0x504c07=_0x35121f;return _0x36f548()[_0x504c07('0x814')](_0x30b36f['value'],new RegExp('\x27','g'),'');}),_0xf90975[_0x35121f('0x757')]=_0x51a569,_0xf90975['teamadddialog']=_0x16452f,_0xf90975['agentadddialog']=_0x18a865,_0xf90975['deleteconfirm']=_0x2b9c3a,_0xf90975[_0x35121f('0x19a9')]=_0x602c1a,_0xf90975[_0x35121f('0x2693')]=_0x416bbd,_0xf90975[_0x35121f('0x474')]=_0x58a113,_0xf90975['createOrEditOpenchannelQueue']=_0x8855d5,_0xf90975['deleteOpenchannelQueue']=_0x21987f,_0xf90975[_0x35121f('0x81d')]=_0x4923b1,_0xf90975[_0x35121f('0x9dc')]=_0xeb6b44,_0xf90975[_0x35121f('0x125c')]=_0x39ea55,_0xf90975[_0x35121f('0xfe0')]=_0x4a97c6;function _0x51a569(_0x443056){const _0x185c60=_0x35121f;_0x2d19e8['go']('app.openchannel.openchannelQueues.edit',{'id':_0x443056['id'],'openchannelQueue':_0x443056,'crudPermissions':_0xf90975[_0x185c60('0xb25')]});}function _0x16452f(_0x40d13e,_0x12b86c){const _0x30d137=_0x35121f;_0x43a4c5[_0x30d137('0xb9')]({'controller':_0x30d137('0x195c'),'controllerAs':'vm','templateUrl':_0x231715,'parent':angular[_0x30d137('0x1e73')](_0x12cc73[_0x30d137('0x1d2')]),'targetEvent':_0x12b86c,'clickOutsideToClose':!![],'locals':{'openchannelQueue':_0x40d13e,'openchannelQueues':_0xf90975[_0x30d137('0xe1b')]?_0xf90975['openchannelQueues'][_0x30d137('0x19b2')]:[],'crudPermissions':_0xf90975[_0x30d137('0xb25')]}});}function _0x18a865(_0x286157,_0x5aa7e5){const _0x27b98c=_0x35121f;_0x43a4c5[_0x27b98c('0xb9')]({'controller':_0x27b98c('0x129d'),'controllerAs':'vm','templateUrl':_0x1f8a81,'parent':angular[_0x27b98c('0x1e73')](_0x12cc73['body']),'targetEvent':_0x5aa7e5,'clickOutsideToClose':!![],'locals':{'openchannelQueue':_0x286157,'openchannelQueues':_0xf90975['openchannelQueues']?_0xf90975['openchannelQueues']['rows']:[],'crudPermissions':_0xf90975[_0x27b98c('0xb25')],'realtime':![]}});}function _0x2b9c3a(_0x58bc64,_0x565b4b){const _0x50f96f=_0x35121f,_0x5bbb4a=_0x43a4c5[_0x50f96f('0x132b')]()[_0x50f96f('0x134b')](_0x50f96f('0x1796')+_0x36f548()['startCase'](_0x50f96f('0x121f'))+'?')[_0x50f96f('0x1d03')](_0x50f96f('0x2061')+(_0x58bc64[_0x50f96f('0x1909')]||_0x50f96f('0x121f'))+''+_0x50f96f('0x1a'))[_0x50f96f('0xb2e')](_0x50f96f('0x114c'))[_0x50f96f('0x1e25')](_0x565b4b)['ok']('OK')['cancel']('CANCEL');_0x43a4c5[_0x50f96f('0xb9')](_0x5bbb4a)[_0x50f96f('0x11bf')](function(){_0x21987f(_0x58bc64);},function(){const _0x474c21=_0x50f96f;console[_0x474c21('0xc78')](_0x474c21('0x772'));});}function _0x602c1a(){const _0x4a66fd=_0x35121f;if(_0x42b877[_0x4a66fd('0x4ee')](_0x4a66fd('0xf45')))_0x2d19e8['go'](_0x4a66fd('0x801'),{});else return _0x11f8d9[_0x4a66fd('0x1d63')][_0x4a66fd('0xbaa')]({'userProfileId':_0x42b877[_0x4a66fd('0x2428')]()[_0x4a66fd('0x781')],'sectionId':0x32a})[_0x4a66fd('0x1549')][_0x4a66fd('0x11bf')](function(_0x355540){const _0xe8dc00=_0x4a66fd,_0x308b4d=_0x355540&&_0x355540[_0xe8dc00('0x19b2')]?_0x355540['rows'][0x0]:null;_0x308b4d&&_0x308b4d[_0xe8dc00('0x1f0a')]?_0x2d19e8['go'](_0xe8dc00('0x801'),{}):_0x51ffef[_0xe8dc00('0x870')]({'title':_0x50b946[_0xe8dc00('0x10c2')](_0xe8dc00('0xbff')),'msg':_0x50b946['instant'](_0xe8dc00('0x10d1'))});})[_0x4a66fd('0x151d')](function(_0x4a5eae){const _0x1e9d82=_0x4a66fd;_0x51ffef['error']({'title':_0x4a5eae['status']?_0x1e9d82('0x574')+_0x4a5eae[_0x1e9d82('0xff9')]+_0x1e9d82('0xb0b')+_0x4a5eae[_0x1e9d82('0x212f')]:'USERPROFILE:GET_SECTION','msg':_0x4a5eae['status']?JSON[_0x1e9d82('0x3e')](_0x4a5eae[_0x1e9d82('0x4e8')]):_0x4a5eae[_0x1e9d82('0xaab')]()});});}let _0x646620=!![],_0x588875=0x1;_0x6e455f[_0x35121f('0x2087')](_0x35121f('0x842'),function(_0xcd81b,_0x1254a2){const _0x6afbeb=_0x35121f;_0x646620?_0x37d672(function(){_0x646620=![];}):(!_0x1254a2&&(_0x588875=_0xf90975[_0x6afbeb('0x1f2a')]['page']),_0xcd81b!==_0x1254a2&&(_0xf90975[_0x6afbeb('0x1f2a')][_0x6afbeb('0x1c2')]=0x1),!_0xcd81b&&(_0xf90975[_0x6afbeb('0x1f2a')][_0x6afbeb('0x1c2')]=_0x588875),_0xf90975['getOpenchannelQueues']());});function _0x416bbd(_0x36c79b){const _0x3ffd25=_0x35121f;_0xf90975[_0x3ffd25('0xe1b')]=_0x36c79b||{'count':0x0,'rows':[]};}function _0x58a113(){const _0x47c844=_0x35121f;_0xf90975[_0x47c844('0x1f2a')]['offset']=(_0xf90975[_0x47c844('0x1f2a')][_0x47c844('0x1c2')]-0x1)*_0xf90975[_0x47c844('0x1f2a')][_0x47c844('0xd5c')],_0x42b877[_0x47c844('0x4ee')](_0x47c844('0xf45'))?_0xf90975[_0x47c844('0x13f')]=_0x11f8d9[_0x47c844('0x121f')][_0x47c844('0xbaa')](_0xf90975[_0x47c844('0x1f2a')],_0x416bbd)[_0x47c844('0x1549')]:(_0xf90975[_0x47c844('0x1f2a')]['id']=_0xf90975[_0x47c844('0x25bc')]['id'],_0xf90975['query'][_0x47c844('0xe6')]=_0x47c844('0xd29'),_0xf90975['promise']=_0x11f8d9[_0x47c844('0x25bc')][_0x47c844('0x228e')](_0xf90975[_0x47c844('0x1f2a')],_0x416bbd)[_0x47c844('0x1549')]);}function _0x8855d5(_0x2e5c7c,_0x2f730f){const _0xff5bbd=_0x35121f;_0x43a4c5[_0xff5bbd('0xb9')]({'controller':_0xff5bbd('0x69b'),'controllerAs':'vm','templateUrl':_0x24e9ed,'parent':angular[_0xff5bbd('0x1e73')](_0x12cc73[_0xff5bbd('0x1d2')]),'targetEvent':_0x2e5c7c,'clickOutsideToClose':!![],'locals':{'openchannelQueue':_0x2f730f,'openchannelQueues':_0xf90975[_0xff5bbd('0xe1b')][_0xff5bbd('0x19b2')],'license':_0xf90975['license'],'setting':_0xf90975['setting'],'crudPermissions':_0xf90975[_0xff5bbd('0xb25')]}});}function _0x21987f(_0x79ace5){const _0x582d2d=_0x35121f;_0x11f8d9[_0x582d2d('0x121f')]['delete']({'id':_0x79ace5['id']})[_0x582d2d('0x1549')]['then'](function(){const _0x1b4f0a=_0x582d2d;_0x36f548()[_0x1b4f0a('0x14a5')](_0xf90975[_0x1b4f0a('0xe1b')]['rows'],{'id':_0x79ace5['id']}),_0xf90975[_0x1b4f0a('0xe1b')][_0x1b4f0a('0x27d2')]-=0x1,!_0xf90975[_0x1b4f0a('0xe1b')][_0x1b4f0a('0x19b2')][_0x1b4f0a('0x1e22')]&&_0xf90975[_0x1b4f0a('0x474')](),_0x51ffef[_0x1b4f0a('0x2693')]({'title':_0x36f548()[_0x1b4f0a('0x13cf')](_0x1b4f0a('0x160b'))+_0x1b4f0a('0x2113'),'msg':_0x79ace5[_0x1b4f0a('0x1909')]?_0x79ace5[_0x1b4f0a('0x1909')]+_0x1b4f0a('0x433'):''});})[_0x582d2d('0x151d')](function(_0x35e72c){const _0x4876b1=_0x582d2d;if(_0x35e72c[_0x4876b1('0x4e8')]&&_0x35e72c[_0x4876b1('0x4e8')][_0x4876b1('0x120f')]&&_0x35e72c[_0x4876b1('0x4e8')][_0x4876b1('0x120f')][_0x4876b1('0x1e22')]){_0xf90975[_0x4876b1('0x120f')]=_0x35e72c[_0x4876b1('0x4e8')][_0x4876b1('0x120f')]||[{'message':_0x35e72c[_0x4876b1('0xaab')](),'type':_0x4876b1('0x1312')}];for(let _0x1d3012=0x0;_0x1d3012<_0x35e72c['data']['errors']['length'];_0x1d3012++){_0x51ffef[_0x4876b1('0x255')]({'title':_0x35e72c[_0x4876b1('0x4e8')][_0x4876b1('0x120f')][_0x1d3012][_0x4876b1('0x19fd')],'msg':_0x35e72c[_0x4876b1('0x4e8')][_0x4876b1('0x120f')][_0x1d3012][_0x4876b1('0x1b86')]});}}else _0x51ffef['error']({'title':_0x35e72c[_0x4876b1('0xff9')]?_0x4876b1('0x574')+_0x35e72c['status']+_0x4876b1('0xb0b')+_0x35e72c[_0x4876b1('0x212f')]:_0x4876b1('0x1312'),'msg':_0x35e72c['data']?JSON[_0x4876b1('0x3e')](_0x35e72c[_0x4876b1('0x4e8')]['message']):_0x35e72c['message']||_0x35e72c[_0x4876b1('0xaab')]()});});}function _0x4923b1(){const _0x148805=_0x35121f,_0x32a21e=angular[_0x148805('0x6fb')](_0xf90975[_0x148805('0x1c4e')]);return _0xf90975[_0x148805('0x1c4e')]=[],_0x32a21e;}function _0xeb6b44(_0x413065){const _0x4fe28c=_0x35121f,_0x301154=_0x43a4c5[_0x4fe28c('0x132b')]()[_0x4fe28c('0x134b')](_0x4fe28c('0x2151'))[_0x4fe28c('0x1d03')](_0x4fe28c('0x2061')+_0xf90975[_0x4fe28c('0x1c4e')]['length']+_0x4fe28c('0xac6')+'\x20will\x20be\x20deleted.')[_0x4fe28c('0xb2e')]('delete\x20OpenchannelQueues')['targetEvent'](_0x413065)['ok']('OK')[_0x4fe28c('0x26c9')](_0x4fe28c('0x772'));_0x43a4c5[_0x4fe28c('0xb9')](_0x301154)[_0x4fe28c('0x11bf')](function(){const _0x206fb7=_0x4fe28c;_0xf90975['selectedOpenchannelQueues']['forEach'](function(_0x20f7de){_0x21987f(_0x20f7de);}),_0xf90975[_0x206fb7('0x1c4e')]=[];});}function _0x39ea55(){const _0x4c7676=_0x35121f;_0xf90975[_0x4c7676('0x1c4e')]=[];}function _0x4a97c6(){const _0x19d4de=_0x35121f;_0xf90975[_0x19d4de('0x1c4e')]=_0xf90975[_0x19d4de('0xe1b')][_0x19d4de('0x19b2')];}}const _0x203232=_0x19cd2e;_0x3089fa['$inject']=[_0x21d0f5('0x13d6'),_0x21d0f5('0xc3e')];function _0x3089fa(_0x5eb4b5,_0x57cea6){const _0x25a1d7=_0x21d0f5;_0x5eb4b5[_0x25a1d7('0x2124')](_0x25a1d7('0xb2d'),{'abstract':!![],'url':_0x25a1d7('0x1d4e')})[_0x25a1d7('0x2124')]('app.openchannel.openchannelQueues',{'url':'/openchannelQueues','views':{'content@app':{'templateUrl':_0x360948,'controller':_0x25a1d7('0x87f')}},'resolve':{'openchannelQueues':[_0x25a1d7('0x218e'),_0x25a1d7('0x1150'),function(_0x4f667e,_0x12516a){const _0x2705d6=_0x25a1d7;return _0x12516a[_0x2705d6('0x4ee')](_0x2705d6('0xf45'))?_0x4f667e[_0x2705d6('0xa28')](_0x2705d6('0x6d9'),{'fields':_0x2705d6('0xe24'),'sort':_0x2705d6('0x1c74'),'channel':_0x2705d6('0xb18'),'limit':0xa,'offset':0x0}):_0x4f667e[_0x2705d6('0xa28')](_0x2705d6('0xb0d'),{'id':_0x12516a['getCurrentUser']()[_0x2705d6('0x781')],'section':_0x2705d6('0xd29'),'fields':_0x2705d6('0xe24'),'sort':_0x2705d6('0x1c74'),'channel':'openchannel','limit':0xa,'offset':0x0});}],'userProfile':[_0x25a1d7('0x218e'),'Auth',function(_0x5c6ae9,_0x45b6ee){const _0x1e4dfa=_0x25a1d7;return _0x45b6ee[_0x1e4dfa('0x4ee')](_0x1e4dfa('0xf45'))?null:_0x5c6ae9[_0x1e4dfa('0xa28')](_0x1e4dfa('0x428'),{'fields':_0x1e4dfa('0xd30'),'id':_0x45b6ee[_0x1e4dfa('0x2428')]()['userProfileId']});}],'userProfileSection':[_0x25a1d7('0x218e'),_0x25a1d7('0x1150'),function(_0x34fee5,_0x1a9168){const _0x518771=_0x25a1d7;return _0x1a9168[_0x518771('0x4ee')]('admin')?null:_0x34fee5[_0x518771('0xa28')](_0x518771('0x2762'),{'fields':_0x518771('0x36d'),'userProfileId':_0x1a9168[_0x518771('0x2428')]()['userProfileId'],'sectionId':0x321});}]},'authenticate':!![],'permissionId':0x321,'bodyClass':_0x25a1d7('0xb18')})[_0x25a1d7('0x2124')](_0x25a1d7('0xca5'),{'url':'/:id?tab','params':{'openchannelQueue':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x3ddf87,'controller':_0x25a1d7('0xe1e')}},'resolve':{'openchannelQueue':['apiResolver',_0x25a1d7('0x1573'),function(_0xce138b,_0x2662e2){const _0x29db17=_0x25a1d7;return _0xce138b[_0x29db17('0xa28')](_0x29db17('0x6d9'),{'fields':'createdAt,updatedAt,id,name,strategy,timeout,description','id':_0x2662e2['id']});}],'userProfileSection':['apiResolver',_0x25a1d7('0x1150'),function(_0xf8c908,_0x35fa12){const _0x2e53ed=_0x25a1d7;return _0xf8c908[_0x2e53ed('0xa28')](_0x2e53ed('0x2762'),{'fields':_0x2e53ed('0x36d'),'userProfileId':_0x35fa12[_0x2e53ed('0x2428')]()['userProfileId'],'sectionId':0x321});}]},'authenticate':!![],'permissionId':0x321,'bodyClass':_0x25a1d7('0xb18')})[_0x25a1d7('0x2124')](_0x25a1d7('0x13f7'),{'url':_0x25a1d7('0x1fa4'),'views':{'content@app':{'templateUrl':_0x5ece45,'controller':_0x25a1d7('0x1134')}},'resolve':{'openchannelAccounts':[_0x25a1d7('0x218e'),_0x25a1d7('0x1150'),function(_0xf56956,_0x4de030){const _0x38eb4b=_0x25a1d7;return _0x4de030[_0x38eb4b('0x4ee')](_0x38eb4b('0xf45'))?_0xf56956[_0x38eb4b('0xa28')](_0x38eb4b('0x1b5b'),{'fields':_0x38eb4b('0xcfb'),'sort':_0x38eb4b('0x1c74'),'limit':0xa,'offset':0x0}):_0xf56956[_0x38eb4b('0xa28')](_0x38eb4b('0xb0d'),{'id':_0x4de030[_0x38eb4b('0x2428')]()['userProfileId'],'section':_0x38eb4b('0x17d3'),'fields':_0x38eb4b('0xcfb'),'sort':_0x38eb4b('0x1c74'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x25a1d7('0x218e'),'Auth',function(_0x15a502,_0x570cc5){const _0x4d3ee6=_0x25a1d7;return _0x570cc5[_0x4d3ee6('0x4ee')](_0x4d3ee6('0xf45'))?null:_0x15a502[_0x4d3ee6('0xa28')](_0x4d3ee6('0x428'),{'fields':'id,name,crudPermissions','id':_0x570cc5[_0x4d3ee6('0x2428')]()['userProfileId']});}],'userProfileSection':[_0x25a1d7('0x218e'),'Auth',function(_0x1c6cd2,_0x26792e){const _0x14b133=_0x25a1d7;return _0x26792e['hasRole'](_0x14b133('0xf45'))?null:_0x1c6cd2[_0x14b133('0xa28')](_0x14b133('0x2762'),{'fields':_0x14b133('0x36d'),'userProfileId':_0x26792e['getCurrentUser']()[_0x14b133('0x781')],'sectionId':0x322});}]},'authenticate':!![],'permissionId':0x322,'bodyClass':'openchannel'})['state'](_0x25a1d7('0x200a'),{'url':_0x25a1d7('0x142b'),'params':{'openchannelAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x2e70ab,'controller':_0x25a1d7('0x4cf')}},'resolve':{'openchannelAccount':[_0x25a1d7('0x218e'),_0x25a1d7('0x1573'),function(_0x5b3d7d,_0x30fe4b){const _0x384b68=_0x25a1d7;return _0x5b3d7d[_0x384b68('0xa28')](_0x384b68('0x1b5b'),{'fields':_0x384b68('0xcfb'),'id':_0x30fe4b['id']});}],'userProfileSection':['apiResolver',_0x25a1d7('0x1150'),function(_0x18280d,_0x5ebed6){const _0x256bab=_0x25a1d7;return _0x18280d[_0x256bab('0xa28')]('userProfileSection@get',{'fields':_0x256bab('0x36d'),'userProfileId':_0x5ebed6[_0x256bab('0x2428')]()[_0x256bab('0x781')],'sectionId':0x322});}]},'authenticate':!![],'permissionId':0x322,'bodyClass':'openchannel'}),_0x57cea6[_0x25a1d7('0x471')](_0x25a1d7('0x3c7'));}angular['module'](_0x21d0f5('0xb2d'),['ngCsv',_0x21d0f5('0x1fb3'),_0x21d0f5('0x3c4'),_0x21d0f5('0x2414'),_0x21d0f5('0xd61'),_0x21d0f5('0x2096'),'ng-sortable',_0x21d0f5('0x446'),_0x21d0f5('0x113d'),_0x21d0f5('0x21d5'),_0x21d0f5('0x29b'),_0x21d0f5('0xc46'),'mwFormUtils',_0x21d0f5('0xf49'),_0x21d0f5('0x31e'),_0x21d0f5('0xed9'),_0x21d0f5('0x2625'),_0x21d0f5('0x1622'),'chart.js',_0x21d0f5('0xf7f'),_0x21d0f5('0x8e5')])[_0x21d0f5('0x53a')](_0x3089fa)[_0x21d0f5('0x23eb')](_0x21d0f5('0x9a6'),_0x2a10f3)['controller'](_0x21d0f5('0x679'),_0x3839a7)[_0x21d0f5('0x23eb')](_0x21d0f5('0xe1a'),_0x207837)[_0x21d0f5('0x23eb')]('EditOpenchannelAccountAppagentDialogController',_0x4e989e)[_0x21d0f5('0x23eb')]('EditOpenchannelAccountAppamazonlexDialogController',_0x2fd221)[_0x21d0f5('0x23eb')](_0x21d0f5('0x1500'),_0x5e4b7c)['controller'](_0x21d0f5('0x1b84'),_0x9c1d23)[_0x21d0f5('0x23eb')](_0x21d0f5('0x2812'),_0x49d580)['controller']('EditOpenchannelAccountAppgotoifDialogController',_0x2020c4)[_0x21d0f5('0x23eb')](_0x21d0f5('0x2b4'),_0x15ad06)['controller']('EditOpenchannelAccountAppintervalDialogController',_0x1b3f37)[_0x21d0f5('0x23eb')](_0x21d0f5('0x326'),_0x4a1aa1)['controller'](_0x21d0f5('0x397'),_0x12b54f)[_0x21d0f5('0x23eb')](_0x21d0f5('0x3b2'),_0x4c665a)['controller']('EditOpenchannelAccountApptagDialogController',_0x6369c6)['controller']('OpenchannelAccountInteractionsController',_0x35774d)[_0x21d0f5('0x23eb')](_0x21d0f5('0x962'),_0x4f2e6e)[_0x21d0f5('0x23eb')]('CreateOrEditOpenchannelCannedAnswerDialogController',_0x3ef0eb)[_0x21d0f5('0x23eb')](_0x21d0f5('0xf2a'),_0x52bcba)[_0x21d0f5('0x23eb')](_0x21d0f5('0x269f'),_0x331077)[_0x21d0f5('0x23eb')](_0x21d0f5('0x18e8'),_0x1db270)[_0x21d0f5('0x23eb')]('CreateOrEditOpenchannelQueueDialogController',_0x59281b)[_0x21d0f5('0x23eb')]('OpenchannelQueueagentaddController',_0x444ea6)[_0x21d0f5('0x23eb')](_0x21d0f5('0x195c'),_0x543d1a)[_0x21d0f5('0x23eb')](_0x21d0f5('0x20bb'),_0xafc221)[_0x21d0f5('0x23eb')](_0x21d0f5('0xa84'),_0x203232);const _0x2b1db8=_0x351988['p']+_0x21d0f5('0x1f6c'),_0xbf5d0d=_0x351988['p']+_0x21d0f5('0xbf3'),_0x4d7c7b=_0x351988['p']+_0x21d0f5('0x21b0'),_0x112794=_0x351988['p']+_0x21d0f5('0x1d84'),_0x913572=_0x351988['p']+_0x21d0f5('0x958'),_0x52c612=_0x351988['p']+_0x21d0f5('0xced'),_0x1f44a2=_0x351988['p']+_0x21d0f5('0xd42'),_0x16eff4=_0x351988['p']+_0x21d0f5('0x396'),_0x5d2e66=_0x351988['p']+_0x21d0f5('0x731');_0x429421[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),'$timeout',_0x21d0f5('0x1ca2'),'$document',_0x21d0f5('0xcbc'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1d56'),_0x21d0f5('0x142d'),_0x21d0f5('0xc6e'),_0x21d0f5('0xef7'),_0x21d0f5('0x25bc'),_0x21d0f5('0x1d63'),'Auth'];function _0x429421(_0x2e52fd,_0xd4297c,_0x5de8b8,_0x177a93,_0x5b82fa,_0x524c36,_0xa2f06d,_0x2400e4,_0x357e85,_0x4c55a3,_0xee440,_0x3ab58e,_0x373190){const _0x331e54=_0x21d0f5,_0x426f08=this;_0x426f08[_0x331e54('0x32a')]=_0x373190['getCurrentUser'](),_0x426f08['count']=_0x357e85&&_0x357e85['count']?_0x357e85[_0x331e54('0x27d2')]:0x0,_0x426f08[_0x331e54('0xc6e')]=_0x357e85?_0x36f548()[_0x331e54('0x2130')](_0x357e85['rows']?_0x357e85[_0x331e54('0x19b2')]:[],'id'):{},_0x426f08[_0x331e54('0xef7')]=_0x4c55a3?_0x36f548()[_0x331e54('0x2130')](_0x4c55a3['rows']?_0x4c55a3[_0x331e54('0x19b2')]:[],'id'):{},_0x426f08[_0x331e54('0x25bc')]=_0xee440,_0x426f08[_0x331e54('0x1d63')]=_0x3ab58e&&_0x3ab58e[_0x331e54('0x27d2')]==0x1?_0x3ab58e[_0x331e54('0x19b2')][0x0]:null,_0x426f08[_0x331e54('0xb25')]=_0x373190['parseCrudPermissions'](_0x426f08[_0x331e54('0x1d63')]?_0x426f08[_0x331e54('0x1d63')][_0x331e54('0xb25')]:null),_0x426f08[_0x331e54('0x1f2a')]={'sort':_0x331e54('0x91'),'limit':0xa,'page':0x1},_0x426f08[_0x331e54('0x2693')]=_0x3e4bc8,_0x426f08[_0x331e54('0x224d')]=_0x547fc9,_0x426f08['getFaxAccounts']=_0x34cd35,_0x426f08[_0x331e54('0xc8f')]=_0xa7bdb9,_0x426f08[_0x331e54('0x346')]=_0x41f17c,_0x426f08[_0x331e54('0xe51')]=_0x384040,_0x426f08[_0x331e54('0x59')]=[],_0x36f548()[_0x331e54('0x41e')](_0x426f08[_0x331e54('0xc6e')],function(_0x3c4820){const _0x14a223=_0x331e54;_0x426f08[_0x14a223('0x59')][_0x14a223('0x105d')](_0x3c4820['id']);}),_0xa2f06d['on'](_0x331e54('0xb53'),_0x426f08[_0x331e54('0xc8f')]),_0xa2f06d['on']('faxAccount:update',_0x426f08[_0x331e54('0xc8f')]),_0xa2f06d['on'](_0x331e54('0x61e'),_0x426f08[_0x331e54('0x346')]);function _0x547fc9(){const _0x4780ca=_0x331e54;_0x36f548()[_0x4780ca('0x41e')](_0x426f08[_0x4780ca('0xc6e')],function(_0x1077aa,_0x42d47f){const _0x174b09=_0x4780ca;_0x426f08[_0x174b09('0xef7')][_0x42d47f]&&_0x36f548()[_0x174b09('0x47b')](_0x1077aa,_0x426f08[_0x174b09('0xef7')][_0x42d47f]);}),_0x36f548()[_0x4780ca('0x41e')](_0x426f08[_0x4780ca('0xc6e')],function(_0x1dc9a7,_0x469cd6){const _0x2b7dbc=_0x4780ca,_0x3c892e={'id':_0x469cd6,'sort':_0x2b7dbc('0x1157'),'direction':'in','limit':0x1,'offset':0x0,'$gte':'createdAt,'+_0x57d4d1()()['startOf'](_0x2b7dbc('0x2161'))[_0x2b7dbc('0x1826')](_0x2b7dbc('0xfae'))};_0x524c36[_0x2b7dbc('0x19dc')][_0x2b7dbc('0x1308')](_0x3c892e)[_0x2b7dbc('0x1549')][_0x2b7dbc('0x11bf')](function(_0x33dbfe){const _0x217f02=_0x2b7dbc;return _0x33dbfe&&(_0x1dc9a7['in']=_0x33dbfe[_0x217f02('0x27d2')]||0x0,_0x1dc9a7[_0x217f02('0x1c20')]=_0x33dbfe[_0x217f02('0x19b2')]&&_0x33dbfe[_0x217f02('0x19b2')]['length']?_0x33dbfe['rows'][0x0][_0x217f02('0x1779')]:undefined),_0x3c892e[_0x217f02('0x7d5')]='out',_0x524c36[_0x217f02('0x19dc')][_0x217f02('0x1308')](_0x3c892e)[_0x217f02('0x1549')];})[_0x2b7dbc('0x11bf')](function(_0xe2f13e){const _0x4647c0=_0x2b7dbc;_0xe2f13e&&(_0x1dc9a7[_0x4647c0('0xfb3')]=_0xe2f13e['count']||0x0,_0x1dc9a7[_0x4647c0('0x264')]=_0xe2f13e['rows']&&_0xe2f13e[_0x4647c0('0x19b2')][_0x4647c0('0x1e22')]?_0xe2f13e['rows'][0x0][_0x4647c0('0x1779')]:undefined);})[_0x2b7dbc('0x151d')](function(_0x36f7bc){const _0x1dd23b=_0x2b7dbc;console[_0x1dd23b('0xc78')](_0x36f7bc);});});}function _0xa7bdb9(_0x421eb1){const _0xbb5929=_0x331e54;_0x426f08[_0xbb5929('0xc6e')][_0x421eb1['id']]&&_0x36f548()[_0xbb5929('0x47b')](_0x426f08['faxAccounts'][_0x421eb1['id']],_0x421eb1);}function _0x41f17c(_0x5d4f16){const _0xfb2791=_0x331e54;_0x426f08[_0xfb2791('0xc6e')][_0x5d4f16['FaxAccountId']]&&(_0x5d4f16[_0xfb2791('0x7d5')]=='in'?(_0x426f08[_0xfb2791('0xc6e')][_0x5d4f16[_0xfb2791('0x1a46')]]['in']+=0x1,_0x426f08['faxAccounts'][_0x5d4f16[_0xfb2791('0x1a46')]][_0xfb2791('0x1c20')]=_0x5d4f16['createdAt']):(_0x426f08[_0xfb2791('0xc6e')][_0x5d4f16[_0xfb2791('0x1a46')]][_0xfb2791('0xfb3')]+=0x1,_0x426f08[_0xfb2791('0xc6e')][_0x5d4f16[_0xfb2791('0x1a46')]][_0xfb2791('0x264')]=_0x5d4f16[_0xfb2791('0x1779')]));}function _0x384040(_0x15efbe,_0x8da66b){_0x5b82fa['go']('app.fax.faxAccounts.edit',{'id':_0x8da66b['id'],'faxAccount':_0x8da66b});}let _0x1a281e=!![],_0x46dd93=0x1;_0x2e52fd[_0x331e54('0x2087')](_0x331e54('0x842'),function(_0x59aa57,_0x5ca8f5){const _0x14e6e7=_0x331e54;_0x1a281e?_0xd4297c(function(){_0x1a281e=![];}):(!_0x5ca8f5&&(_0x46dd93=_0x426f08[_0x14e6e7('0x1f2a')][_0x14e6e7('0x1c2')]),_0x59aa57!==_0x5ca8f5&&(_0x426f08[_0x14e6e7('0x1f2a')]['page']=0x1),!_0x59aa57&&(_0x426f08[_0x14e6e7('0x1f2a')][_0x14e6e7('0x1c2')]=_0x46dd93),_0x426f08[_0x14e6e7('0x464')]());});function _0x3e4bc8(_0x275d71){const _0x318833=_0x331e54;_0x426f08[_0x318833('0xc6e')]=_0x275d71?_0x36f548()[_0x318833('0x2130')](_0x275d71[_0x318833('0x19b2')]?_0x275d71[_0x318833('0x19b2')]:[],'id'):{};if(_0x275d71[_0x318833('0x19b2')]){_0x426f08['order']=[];for(let _0x2eb32c=0x0;_0x2eb32c<_0x275d71[_0x318833('0x19b2')][_0x318833('0x1e22')];_0x2eb32c++){_0x426f08[_0x318833('0x59')][_0x318833('0x105d')](_0x275d71[_0x318833('0x19b2')][_0x2eb32c]['id']);}}_0x547fc9();}function _0x34cd35(){const _0x3ffe56=_0x331e54;_0x426f08[_0x3ffe56('0x1f2a')][_0x3ffe56('0x1393')]=(_0x426f08['query']['page']-0x1)*_0x426f08[_0x3ffe56('0x1f2a')][_0x3ffe56('0xd5c')],_0x373190[_0x3ffe56('0x4ee')](_0x3ffe56('0xf45'))?_0x426f08[_0x3ffe56('0x13f')]=_0x524c36[_0x3ffe56('0x19dc')]['get'](_0x426f08[_0x3ffe56('0x1f2a')],_0x3e4bc8)['$promise']:(_0x426f08[_0x3ffe56('0x1f2a')]['id']=_0x426f08[_0x3ffe56('0x25bc')]['id'],_0x426f08[_0x3ffe56('0x1f2a')]['section']=_0x3ffe56('0x6bd'),_0x426f08[_0x3ffe56('0x13f')]=_0x524c36[_0x3ffe56('0x25bc')]['getResources'](_0x426f08[_0x3ffe56('0x1f2a')],_0x3e4bc8)[_0x3ffe56('0x1549')]);}_0x2e52fd[_0x331e54('0x12d8')](_0x331e54('0x4f7'),function(){const _0x592099=_0x331e54;_0xa2f06d[_0x592099('0x1b2e')](_0x592099('0xb53')),_0xa2f06d[_0x592099('0x1b2e')]('faxAccount:update'),_0xa2f06d['removeAllListeners'](_0x592099('0x61e'));});}const _0x5f22c6=_0x429421;_0x331e0c[_0x21d0f5('0x1e9a')]=['$scope','$q',_0x21d0f5('0x17f5'),'$mdDialog','$document','$filter',_0x21d0f5('0x12f2'),_0x21d0f5('0x1401'),'rpcAgents',_0x21d0f5('0x12a5'),_0x21d0f5('0x1d56'),_0x21d0f5('0x142d'),'helperClasses','userProfile',_0x21d0f5('0x1d63'),'Auth',_0x21d0f5('0x17ff'),_0x21d0f5('0x1fd')];function _0x331e0c(_0x2f8d39,_0x40da45,_0x160133,_0x3c9c52,_0x391e93,_0x1fd17e,_0x4553e6,_0x39d1f8,_0x3187b0,_0x417758,_0x12bf45,_0x3dae74,_0x11a218,_0x386d48,_0x2c4194,_0x57d272,_0x3b8c9b,_0x49b37e){const _0x4f38af=_0x21d0f5,_0x56a6a6=this,_0x465ece=[_0x4f38af('0x88'),'online','lastLoginAt',_0x4f38af('0x1e10'),_0x4f38af('0x2628'),'lastPauseAt',_0x4f38af('0x1a04'),_0x4f38af('0x5fc'),'chatPause',_0x4f38af('0xfc0'),_0x4f38af('0x1f53'),_0x4f38af('0x55e'),_0x4f38af('0x1ed1'),_0x4f38af('0x2501'),_0x4f38af('0x20d'),'chatCapacity',_0x4f38af('0x93c'),_0x4f38af('0x2271'),_0x4f38af('0xcc5'),_0x4f38af('0xf0d'),'faxCapacity',_0x4f38af('0x539'),_0x4f38af('0x1a2e'),_0x4f38af('0x10a2'),'smsCurrentCapacity',_0x4f38af('0xa81'),_0x4f38af('0x21d4'),_0x4f38af('0x1572'),_0x4f38af('0x19c0'),_0x4f38af('0x1683'),_0x4f38af('0x245c'),_0x4f38af('0x14d4'),_0x4f38af('0x8dd'),'voiceStatus',_0x4f38af('0xe6a'),_0x4f38af('0x22cb'),_0x4f38af('0x1bab'),'smsStatusTime',_0x4f38af('0x3ee'),_0x4f38af('0x1ce2'),_0x4f38af('0x24e5'),_0x4f38af('0x150b'),_0x4f38af('0x1562'),_0x4f38af('0xcb7'),_0x4f38af('0x15e0'),'phoneBarEnableAutomaticScreenRecording'],_0x1d97eb=[_0x4f38af('0x13c9'),'openchannelPause',_0x4f38af('0x1f53'),_0x4f38af('0x55e'),_0x4f38af('0x1ed1'),_0x4f38af('0x2501'),'voicePause',_0x4f38af('0x81c')];_0x56a6a6[_0x4f38af('0x32a')]=_0x57d272[_0x4f38af('0x2428')](),_0x56a6a6[_0x4f38af('0x1391')]=['ringing',_0x4f38af('0x1218'),'busy',_0x4f38af('0x26ac'),'not_inuse'],_0x56a6a6[_0x4f38af('0x12f2')]=_0x4553e6||{'count':0x0,'rows':[]},_0x56a6a6[_0x4f38af('0x17ff')]=_0x3b8c9b,_0x56a6a6[_0x4f38af('0x25bc')]=_0x386d48,_0x56a6a6[_0x4f38af('0x1d63')]=_0x2c4194&&_0x2c4194[_0x4f38af('0x27d2')]==0x1?_0x2c4194['rows'][0x0]:null,_0x56a6a6[_0x4f38af('0xb25')]=_0x57d272[_0x4f38af('0x1530')](_0x56a6a6[_0x4f38af('0x1d63')]?_0x56a6a6['userProfileSection'][_0x4f38af('0xb25')]:null),_0x56a6a6[_0x4f38af('0x1401')]=_0x39d1f8?_0x36f548()[_0x4f38af('0x2130')](_0x39d1f8[_0x4f38af('0x19b2')]?_0x39d1f8[_0x4f38af('0x19b2')]:[],'id'):{},_0x56a6a6[_0x4f38af('0xaa0')]=_0x3187b0?_0x36f548()['keyBy'](_0x3187b0[_0x4f38af('0x19b2')]?_0x3187b0[_0x4f38af('0x19b2')]:[],'id'):{},_0x56a6a6[_0x4f38af('0x18bd')]={},_0x56a6a6[_0x4f38af('0x215b')]=![],_0x56a6a6[_0x4f38af('0x59')]=[],_0x56a6a6['agentInternal']={};for(const _0x233d96 in _0x56a6a6['agents']){typeof _0x56a6a6[_0x4f38af('0x1401')][_0x233d96]!=='undefined'&&(_0x56a6a6[_0x4f38af('0x1401')][_0x233d96][_0x4f38af('0x286f')]=!![]);}_0x56a6a6[_0x4f38af('0x1f2a')]={'limit':0xa,'page':0x1,'order':_0x4f38af('0x27af'),'globalStatusFilter':'','pauseTypeFilter':''},_0x56a6a6['logout']=_0x196eda,_0x56a6a6['queueAdd']=_0x3ce521,_0x56a6a6[_0x4f38af('0x92a')]=_0x5b7512,_0x56a6a6[_0x4f38af('0x1ab7')]=_0x2b5d6f,_0x56a6a6[_0x4f38af('0x1410')]=_0xb5f79a,_0x56a6a6['getAgentStatus']=_0x1c9c96,_0x56a6a6[_0x4f38af('0x11a2')]=_0x4d6265,_0x56a6a6[_0x4f38af('0x1191')]=_0x2dd1da,_0x56a6a6[_0x4f38af('0x1869')]=_0x535a71,_0x56a6a6[_0x4f38af('0x2384')]=_0x416682,_0x56a6a6['onSave']=_0x14c5b2,_0x56a6a6['onUpdate']=_0x3d64f1,_0x56a6a6[_0x4f38af('0x277c')]=_0x281261,_0x56a6a6['onConnect']=_0x2837b7,_0x56a6a6[_0x4f38af('0x162a')]=_0x165b76,_0x56a6a6[_0x4f38af('0x1520')]=_0x5c51b9,_0x12bf45['on'](_0x4f38af('0x1ce9'),_0x56a6a6[_0x4f38af('0xc8f')]),_0x12bf45['on'](_0x4f38af('0x15bd'),_0x56a6a6['onUpdate']),_0x12bf45['on']('user:agentconnect',_0x56a6a6[_0x4f38af('0x1e2e')]),_0x12bf45['on'](_0x4f38af('0xffb'),_0x56a6a6[_0x4f38af('0x162a')]),_0x281261();let _0xeffaf4=_0x49b37e(function(){const _0x5b1a88=_0x4f38af;_0x56a6a6[_0x5b1a88('0x215b')]&&(_0x56a6a6['load']=![],_0x281261());},0x3e7);function _0x281261(){const _0x183a03=_0x4f38af;_0x56a6a6[_0x183a03('0x215b')]=![];const _0x58ac3b=_0x40da45['defer']();_0x56a6a6[_0x183a03('0x13f')]=_0x58ac3b[_0x183a03('0x13f')],_0x56a6a6[_0x183a03('0x15f2')]=[],_0x56a6a6[_0x183a03('0x59')]=[],_0x36f548()[_0x183a03('0x41e')](_0x56a6a6[_0x183a03('0x1401')],function(_0x227702,_0x3b6062){const _0xa6bc35=_0x183a03;_0x56a6a6['rpcAgents'][_0x3b6062]&&_0x36f548()[_0xa6bc35('0x47b')](_0x227702,_0x36f548()[_0xa6bc35('0x258')](_0x36f548()[_0xa6bc35('0x196f')](_0x56a6a6[_0xa6bc35('0xaa0')][_0x3b6062],_0x1d97eb),_0x465ece)),_0x4d6265(_0x227702),_0x227702[_0xa6bc35('0x81c')]?(_0x56a6a6[_0xa6bc35('0x15f2')][_0xa6bc35('0x105d')](_0x227702),_0x56a6a6['agentInternal'][_0x227702['internal']]=_0x3b6062):_0x227702[_0xa6bc35('0xd4')]=_0x36f548()[_0xa6bc35('0x17c2')](_0x57d4d1()()[_0xa6bc35('0x1826')]('x'));});_0x56a6a6[_0x183a03('0x1f2a')]['globalStatusFilter']&&_0x36f548()[_0x183a03('0x14a5')](_0x56a6a6['filteredAgents'],function(_0x3da959){const _0x2306ff=_0x183a03;return _0x3da959[_0x2306ff('0x797')]!==_0x56a6a6[_0x2306ff('0x1f2a')][_0x2306ff('0x270')];});_0x56a6a6['query']['pauseTypeFilter']&&_0x36f548()[_0x183a03('0x14a5')](_0x56a6a6[_0x183a03('0x15f2')],function(_0x496096){const _0x479575=_0x183a03;return _0x496096[_0x479575('0x2628')]!==_0x56a6a6['query'][_0x479575('0xa12')];});_0x56a6a6[_0x183a03('0x1f2a')]['filter']&&_0x36f548()[_0x183a03('0x14a5')](_0x56a6a6[_0x183a03('0x15f2')],function(_0x25e4ed){const _0x34e8d0=_0x183a03;return _0x25e4ed['fullname'][_0x34e8d0('0x20d5')]()['indexOf'](_0x56a6a6['query'][_0x34e8d0('0xdb4')][_0x34e8d0('0x20d5')]())<0x0;});_0x56a6a6['filteredAgents']=_0x140fc1(_0x56a6a6[_0x183a03('0x15f2')]);const _0x4ff8e1=(_0x56a6a6[_0x183a03('0x1f2a')][_0x183a03('0x1c2')]-0x1)*_0x56a6a6[_0x183a03('0x1f2a')][_0x183a03('0xd5c')];_0x56a6a6[_0x183a03('0x18bd')]=_0x36f548()[_0x183a03('0x1077')](_0x56a6a6[_0x183a03('0x15f2')],_0x4ff8e1)['slice'](0x0,_0x56a6a6[_0x183a03('0x1f2a')][_0x183a03('0xd5c')]);for(let _0x1d4ad6=0x0;_0x1d4ad6<_0x56a6a6[_0x183a03('0x18bd')][_0x183a03('0x1e22')];_0x1d4ad6+=0x1){_0x56a6a6[_0x183a03('0x59')][_0x183a03('0x105d')](_0x56a6a6[_0x183a03('0x18bd')][_0x1d4ad6]['id']);}_0x58ac3b['resolve'](),_0x56a6a6['load']=!![];}function _0x14c5b2(_0x4ecf5f){const _0x2e2d13=_0x4f38af;_0x56a6a6[_0x2e2d13('0x1401')][_0x4ecf5f['id']]&&(_0x36f548()[_0x2e2d13('0x47b')](_0x56a6a6[_0x2e2d13('0x1401')][_0x4ecf5f['id']],_0x36f548()['pick'](_0x36f548()['omit'](_0x4ecf5f,_0x1d97eb),_0x465ece)),_0x36f548()['merge'](_0x56a6a6[_0x2e2d13('0xaa0')][_0x4ecf5f['id']],_0x36f548()['pick'](_0x36f548()[_0x2e2d13('0x196f')](_0x4ecf5f,_0x1d97eb),_0x465ece)),_0x4d6265(_0x56a6a6['agents'][_0x4ecf5f['id']]));}function _0x3d64f1(_0x2718a5){const _0x3f10bb=_0x4f38af;_0x56a6a6[_0x3f10bb('0x1401')][_0x2718a5['id']]&&(_0x36f548()[_0x3f10bb('0x47b')](_0x56a6a6[_0x3f10bb('0x1401')][_0x2718a5['id']],_0x36f548()['pick'](_0x2718a5,_0x465ece)),_0x36f548()[_0x3f10bb('0x47b')](_0x56a6a6['rpcAgents'][_0x2718a5['id']],_0x36f548()[_0x3f10bb('0x258')](_0x2718a5,_0x465ece)),_0x2718a5[_0x3f10bb('0x1e10')]&&(_0x56a6a6[_0x3f10bb('0x1401')][_0x2718a5['id']][_0x3f10bb('0xd4')]=_0x2718a5[_0x3f10bb('0x1e10')],_0x56a6a6['rpcAgents'][_0x2718a5['id']][_0x3f10bb('0xd4')]=_0x2718a5[_0x3f10bb('0x1e10')]),_0x4d6265(_0x56a6a6['agents'][_0x2718a5['id']]));}function _0x2837b7(_0x3a6cf2){const _0x4c00db=_0x4f38af;_0x56a6a6[_0x4c00db('0x1401')][_0x56a6a6[_0x4c00db('0x14fd')][_0x3a6cf2['destaccountcode']]]&&(_0x36f548()['merge'](_0x56a6a6[_0x4c00db('0x1401')][_0x56a6a6[_0x4c00db('0x14fd')][_0x3a6cf2[_0x4c00db('0x1fd0')]]],_0x36f548()[_0x4c00db('0x258')](_0x3a6cf2,[_0x4c00db('0x150b'),_0x4c00db('0x1562')])),_0x36f548()[_0x4c00db('0x47b')](_0x56a6a6[_0x4c00db('0xaa0')][_0x56a6a6['agentInternal'][_0x3a6cf2[_0x4c00db('0x1fd0')]]],_0x36f548()[_0x4c00db('0x258')](_0x3a6cf2,[_0x4c00db('0x150b'),_0x4c00db('0x1562')])));}function _0x165b76(_0x89b887){const _0x1561aa=_0x4f38af;_0x56a6a6[_0x1561aa('0x1401')][_0x56a6a6[_0x1561aa('0x14fd')][_0x89b887['destaccountcode']]]&&(_0x56a6a6[_0x1561aa('0x1401')][_0x56a6a6['agentInternal'][_0x89b887[_0x1561aa('0x1fd0')]]]=_0x36f548()[_0x1561aa('0x196f')](_0x56a6a6[_0x1561aa('0x1401')][_0x56a6a6['agentInternal'][_0x89b887['destaccountcode']]],[_0x1561aa('0x150b'),'destconnectedlinenum']),_0x56a6a6['rpcAgents'][_0x56a6a6[_0x1561aa('0x14fd')][_0x89b887[_0x1561aa('0x1fd0')]]]=_0x36f548()[_0x1561aa('0x196f')](_0x56a6a6[_0x1561aa('0xaa0')][_0x56a6a6[_0x1561aa('0x14fd')][_0x89b887[_0x1561aa('0x1fd0')]]],[_0x1561aa('0x150b'),'destconnectedlinenum']));}function _0x196eda(_0x3f0b8a){const _0x2562a6=_0x4f38af;return _0x417758[_0x2562a6('0x21d9')][_0x2562a6('0x18f7')]({'id':_0x3f0b8a['id'],'device':_0x2562a6('0x25f9'),'agent_id':_0x3f0b8a['id'],'agent_name':_0x3f0b8a[_0x2562a6('0x1909')]})[_0x2562a6('0x1549')][_0x2562a6('0x11bf')](function(){const _0x16f58e=_0x2562a6;_0x3dae74[_0x16f58e('0x2693')]({'title':_0x16f58e('0x21e1'),'msg':_0x3f0b8a[_0x16f58e('0x27af')]+_0x16f58e('0xf73')}),_0x56a6a6[_0x16f58e('0x1401')][_0x3f0b8a['id']]&&(_0x56a6a6['agents'][_0x3f0b8a['id']][_0x16f58e('0x81c')]=![]),_0x56a6a6[_0x16f58e('0xaa0')][_0x3f0b8a['id']]&&(_0x56a6a6['rpcAgents'][_0x3f0b8a['id']][_0x16f58e('0x81c')]=![]),_0x281261();})[_0x2562a6('0x151d')](function(_0x1c9df8){const _0xc9d187=_0x2562a6;_0x3dae74[_0xc9d187('0x255')]({'title':_0x1c9df8[_0xc9d187('0xff9')]?'API:'+_0x1c9df8[_0xc9d187('0xff9')]+_0xc9d187('0xb0b')+_0x1c9df8[_0xc9d187('0x212f')]:_0xc9d187('0x9'),'msg':_0x1c9df8['data']?JSON[_0xc9d187('0x3e')](_0x1c9df8[_0xc9d187('0x4e8')][_0xc9d187('0x1b86')]):_0x1c9df8[_0xc9d187('0xaab')]()});});}function _0x5b7512(_0x5224e3,_0x1285c4){const _0x2f7229=_0x4f38af;return _0x417758['user'][_0x2f7229('0x92a')]({'id':_0x5224e3['id'],'type':_0x1285c4})[_0x2f7229('0x1549')][_0x2f7229('0x11bf')](function(_0x2ce463){const _0x33a92f=_0x2f7229;_0x56a6a6[_0x33a92f('0x1401')][_0x5224e3['id']]&&_0x36f548()[_0x33a92f('0x47b')](_0x56a6a6[_0x33a92f('0x1401')][_0x5224e3['id']],_0x36f548()[_0x33a92f('0x258')](_0x2ce463,_0x465ece)),_0x56a6a6[_0x33a92f('0xaa0')][_0x5224e3['id']]&&_0x36f548()[_0x33a92f('0x47b')](_0x56a6a6[_0x33a92f('0xaa0')][_0x5224e3['id']],_0x36f548()['pick'](_0x2ce463,_0x465ece)),_0x4d6265(_0x56a6a6[_0x33a92f('0x1401')][_0x5224e3['id']]);})['catch'](function(_0x20bf2e){const _0xb1d9d9=_0x2f7229;_0x3dae74[_0xb1d9d9('0x255')]({'title':_0x20bf2e['status']?_0xb1d9d9('0x574')+_0x20bf2e[_0xb1d9d9('0xff9')]+_0xb1d9d9('0xb0b')+_0x20bf2e[_0xb1d9d9('0x212f')]:_0xb1d9d9('0x9'),'msg':_0x20bf2e[_0xb1d9d9('0x4e8')]?JSON[_0xb1d9d9('0x3e')](_0x20bf2e[_0xb1d9d9('0x4e8')][_0xb1d9d9('0x1b86')]):_0x20bf2e[_0xb1d9d9('0xaab')]()});});}function _0x2b5d6f(_0x46ebd5){const _0x2c9f9b=_0x4f38af;return _0x417758[_0x2c9f9b('0x21d9')]['unpause']({'id':_0x46ebd5['id']})[_0x2c9f9b('0x1549')][_0x2c9f9b('0x11bf')](function(_0x5086cf){const _0x575dbe=_0x2c9f9b;_0x56a6a6[_0x575dbe('0x1401')][_0x46ebd5['id']]&&_0x36f548()['merge'](_0x56a6a6['agents'][_0x46ebd5['id']],_0x36f548()[_0x575dbe('0x258')](_0x5086cf,_0x465ece)),_0x56a6a6[_0x575dbe('0xaa0')][_0x46ebd5['id']]&&_0x36f548()['merge'](_0x56a6a6[_0x575dbe('0xaa0')][_0x46ebd5['id']],_0x36f548()[_0x575dbe('0x258')](_0x5086cf,_0x465ece)),_0x4d6265(_0x56a6a6[_0x575dbe('0x1401')][_0x46ebd5['id']]);})[_0x2c9f9b('0x151d')](function(_0x528efa){const _0xf8d430=_0x2c9f9b;_0x3dae74[_0xf8d430('0x255')]({'title':_0x528efa[_0xf8d430('0xff9')]?_0xf8d430('0x574')+_0x528efa[_0xf8d430('0xff9')]+_0xf8d430('0xb0b')+_0x528efa['statusText']:_0xf8d430('0x9'),'msg':_0x528efa[_0xf8d430('0x4e8')]?JSON[_0xf8d430('0x3e')](_0x528efa[_0xf8d430('0x4e8')][_0xf8d430('0x1b86')]):_0x528efa[_0xf8d430('0xaab')]()});});}function _0xb5f79a(_0xcd1df5){const _0x2cdc8c=_0x4f38af;_0x3c9c52[_0x2cdc8c('0xb9')](_0x3c9c52[_0x2cdc8c('0xb30')]()[_0x2cdc8c('0x728')](!![])['title'](_0x2cdc8c('0x24f0'))[_0x2cdc8c('0x1d03')]('
    TODO\x20legend\x20status\x20+\x20state
    ')['ok']('Ok')[_0x2cdc8c('0x1e25')](_0xcd1df5));}function _0x3ce521(_0x3db8d0,_0x479eac){const _0xd3d156=_0x4f38af;_0x3c9c52[_0xd3d156('0xb9')]({'controller':_0xd3d156('0x1730'),'controllerAs':'vm','templateUrl':_0x43dcce,'parent':angular['element'](_0x391e93[_0xd3d156('0x1d2')]),'targetEvent':_0x479eac,'clickOutsideToClose':!![],'locals':{'agent':_0x3db8d0,'agents':[],'channel':'fax','direction':'inbound','crudPermissions':_0x56a6a6['crudPermissions']}});}function _0x2dd1da(_0x2fd49a){const _0x3a4530=_0x4f38af;return _0x2fd49a===_0x3a4530('0x92a')||_0x2fd49a===_0x3a4530('0x1050');}function _0x535a71(_0x2bba17){const _0x206bae=_0x4f38af;return _0x2bba17===_0x206bae('0x92a');}function _0x416682(_0x21e3a6){return _0x21e3a6==='*pause';}function _0x203c93(_0x22189e){const _0x1a80c8=_0x4f38af;return _0x22189e===_0x1a80c8('0x1533')||_0x22189e===_0x1a80c8('0x6b0')||_0x22189e===_0x1a80c8('0x181f')||_0x22189e===_0x1a80c8('0x19b')||_0x36f548()[_0x1a80c8('0x1a80')](_0x22189e);}function _0x1c9c96(_0x199cba,_0x36c30f){const _0x113e11=_0x4f38af;if(_0x36c30f===_0x113e11('0x1bc3')){if(_0x199cba[_0x36c30f+_0x113e11('0x971')]!==_0x113e11('0x1533'))return _0x199cba[_0x36c30f+_0x113e11('0x971')];if(_0x199cba[_0x36c30f+_0x113e11('0x6c5')])return _0x199cba[_0x36c30f+_0x113e11('0x971')]=_0x113e11('0x92a'),_0x113e11('0x92a');return _0x113e11('0x1533');}else{if(_0x199cba[_0x36c30f+'Pause'])return _0x199cba[_0x36c30f+_0x113e11('0x971')]=_0x113e11('0x92a'),_0x113e11('0x92a');return _0x199cba[_0x36c30f+'Status'];}}function _0x4d6265(_0x529ab5){const _0x83ab64=_0x4f38af;let _0x405a26=_0x83ab64('0x6b0');if(_0x36f548()['every']([_0x1c9c96(_0x529ab5,'voice'),_0x1c9c96(_0x529ab5,_0x83ab64('0x1800')),_0x1c9c96(_0x529ab5,_0x83ab64('0x2030')),_0x1c9c96(_0x529ab5,'openchannel'),_0x1c9c96(_0x529ab5,_0x83ab64('0x4df')),_0x1c9c96(_0x529ab5,_0x83ab64('0xe7c')),_0x1c9c96(_0x529ab5,'fax')],_0x2dd1da))_0x405a26='pause';else{if(_0x36f548()[_0x83ab64('0x1cb3')]([_0x1c9c96(_0x529ab5,_0x83ab64('0x1bc3')),_0x1c9c96(_0x529ab5,_0x83ab64('0x1800')),_0x1c9c96(_0x529ab5,_0x83ab64('0x2030')),_0x1c9c96(_0x529ab5,_0x83ab64('0xb18')),_0x1c9c96(_0x529ab5,_0x83ab64('0x4df')),_0x1c9c96(_0x529ab5,_0x83ab64('0xe7c')),_0x1c9c96(_0x529ab5,_0x83ab64('0x2104'))],_0x2dd1da))_0x405a26=_0x83ab64('0x1050');else _0x36f548()[_0x83ab64('0x1d1')]([_0x1c9c96(_0x529ab5,_0x83ab64('0x1bc3')),_0x1c9c96(_0x529ab5,'chat'),_0x1c9c96(_0x529ab5,_0x83ab64('0x2030')),_0x1c9c96(_0x529ab5,_0x83ab64('0xb18')),_0x1c9c96(_0x529ab5,_0x83ab64('0x4df')),_0x1c9c96(_0x529ab5,_0x83ab64('0xe7c')),_0x1c9c96(_0x529ab5,'fax')],_0x203c93)?_0x405a26=_0x83ab64('0x1533'):_0x405a26=_0x83ab64('0x23a3');}_0x529ab5['globalStatus']!==_0x405a26&&(_0x529ab5['globalStatus']=_0x405a26,_0x529ab5[_0x83ab64('0x286f')]?(_0x529ab5['init']=![],_0x529ab5[_0x83ab64('0xd4')]=_0x2dd1da(_0x405a26)?_0x36f548()['toNumber'](_0x57d4d1()(_0x529ab5['lastPauseAt'])[_0x83ab64('0x1826')]('x')):_0x36f548()[_0x83ab64('0x1275')]([_0x529ab5[_0x83ab64('0x24e5')],_0x529ab5[_0x83ab64('0xe6a')],_0x529ab5['mailStatusTime'],_0x529ab5['smsStatusTime'],_0x529ab5[_0x83ab64('0x3ee')],_0x529ab5[_0x83ab64('0x22cb')],_0x529ab5[_0x83ab64('0x1ce2')]])):_0x529ab5['globalStatusTime']=_0x36f548()[_0x83ab64('0x17c2')](_0x57d4d1()()[_0x83ab64('0x1826')]('x')));}function _0x140fc1(_0x3fc559){const _0x29346f=_0x4f38af,_0x192358=_0x36f548()['startsWith'](_0x56a6a6[_0x29346f('0x1f2a')]['order'],'-')?'desc':_0x29346f('0x1875');return _0x36f548()[_0x29346f('0x17d7')](_0x3fc559,[_0x56a6a6[_0x29346f('0x1f2a')]['order'][_0x29346f('0x814')]('-','')],[_0x192358]);}function _0x271219(){const _0x3aa5d7=_0x4f38af;_0xeffaf4&&(_0x49b37e[_0x3aa5d7('0x26c9')](_0xeffaf4),_0xeffaf4=null);}function _0x5c51b9(_0x5981f6,_0x55c87b){const _0x427263=_0x4f38af;return _0x417758['user'][_0x427263('0x5ab')]({'id':_0x5981f6['id']},{'screenrecording':_0x55c87b})[_0x427263('0x1549')][_0x427263('0x151d')](function(_0x46e178){const _0x1ffb3e=_0x427263;_0x3dae74[_0x1ffb3e('0x255')]({'title':_0x46e178['status']?'API:'+_0x46e178[_0x1ffb3e('0xff9')]+_0x1ffb3e('0xb0b')+_0x46e178[_0x1ffb3e('0x212f')]:_0x1ffb3e('0x165b'),'msg':_0x46e178[_0x1ffb3e('0x4e8')]?JSON['stringify'](_0x46e178[_0x1ffb3e('0x4e8')][_0x1ffb3e('0x1b86')]):_0x46e178[_0x1ffb3e('0xaab')]()});});}_0x2f8d39[_0x4f38af('0x12d8')]('$destroy',function(){const _0x1be1c0=_0x4f38af;_0x12bf45[_0x1be1c0('0x1b2e')](_0x1be1c0('0x1ce9')),_0x12bf45['removeAllListeners'](_0x1be1c0('0x15bd')),_0x12bf45[_0x1be1c0('0x1b2e')](_0x1be1c0('0x90c')),_0x12bf45[_0x1be1c0('0x1b2e')]('user:agentcomplete'),_0x271219();});}const _0x203e06=_0x331e0c,_0x49dcb2=_0x351988['p']+_0x21d0f5('0xd0c'),_0x5d40b6=_0x351988['p']+_0x21d0f5('0x2459');_0x4daa8c[_0x21d0f5('0x1e9a')]=['$scope',_0x21d0f5('0x17f5'),_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0x1b30'),'$interval',_0x21d0f5('0x1de3'),_0x21d0f5('0x1223'),'api','socket',_0x21d0f5('0x142d'),_0x21d0f5('0x25bc'),_0x21d0f5('0x1d63'),_0x21d0f5('0x1150')];function _0x4daa8c(_0x6f2199,_0x59fd71,_0x467282,_0x1d13e5,_0x18b6a8,_0x482af9,_0x28cd54,_0x50cecc,_0x454805,_0x57ae59,_0x1768b6,_0x50f63d,_0x1843ec,_0x37d4c6){const _0x49a644=_0x21d0f5,_0x4aeb91=this,_0x3cd3ec=[_0x49a644('0xdbd'),'available',_0x49a644('0x1491'),'talking',_0x49a644('0x17ba'),_0x49a644('0x1fab'),_0x49a644('0x1b86'),'dialActive',_0x49a644('0xcd7'),_0x49a644('0x10d'),_0x49a644('0xdb0')];_0x4aeb91[_0x49a644('0x32a')]=_0x37d4c6[_0x49a644('0x2428')](),_0x4aeb91[_0x49a644('0x27d2')]=_0x28cd54[_0x49a644('0x27d2')]?_0x28cd54[_0x49a644('0x27d2')]:0x0,_0x4aeb91[_0x49a644('0x1de3')]=_0x28cd54?_0x36f548()[_0x49a644('0x2130')](_0x28cd54[_0x49a644('0x19b2')]?_0x28cd54[_0x49a644('0x19b2')]:[],'id'):{},_0x4aeb91[_0x49a644('0x1223')]=_0x50cecc?_0x36f548()[_0x49a644('0x2130')](_0x50cecc[_0x49a644('0x19b2')]?_0x50cecc['rows']:[],'id'):{},_0x4aeb91[_0x49a644('0x25bc')]=_0x50f63d,_0x4aeb91[_0x49a644('0x1d63')]=_0x1843ec&&_0x1843ec[_0x49a644('0x27d2')]==0x1?_0x1843ec[_0x49a644('0x19b2')][0x0]:null,_0x4aeb91[_0x49a644('0xb25')]=_0x37d4c6[_0x49a644('0x1530')](_0x4aeb91[_0x49a644('0x1d63')]?_0x4aeb91[_0x49a644('0x1d63')][_0x49a644('0xb25')]:null);_0x37d4c6[_0x49a644('0x4ee')](_0x49a644('0xf45'))?_0x4aeb91[_0x49a644('0x1f2a')]={'type':_0x49a644('0x18a2'),'sort':_0x49a644('0x1c74'),'limit':0xa,'page':0x1}:_0x4aeb91[_0x49a644('0x1f2a')]={'id':_0x4aeb91[_0x49a644('0x32a')]['id'],'channel':_0x49a644('0x2104'),'type':_0x49a644('0x18a2'),'sort':_0x49a644('0x1c74'),'limit':0xa,'page':0x1};_0x4aeb91[_0x49a644('0x2693')]=_0x5686e8,_0x4aeb91[_0x49a644('0x373')]=_0x4797b0,_0x4aeb91['createOrEditFaxQueue']=_0x2ea638,_0x4aeb91[_0x49a644('0x20dd')]=_0x33d36b,_0x4aeb91['updateQueue']=_0x260b3f,_0x4aeb91['onSave']=_0x4e9e8b,_0x4aeb91[_0x49a644('0x17b7')]=_0x5349f2,_0x4aeb91[_0x49a644('0xcaf')]=_0x20bbe1,_0x4aeb91[_0x49a644('0x199c')]=_0x1dd671,_0x4aeb91[_0x49a644('0x722')]=_0x6a2097,_0x4aeb91[_0x49a644('0x37f')]=_0x15413c,_0x4aeb91[_0x49a644('0x224d')]=_0x366a4b,_0x4aeb91[_0x49a644('0x59')]=[],_0x36f548()['forIn'](_0x4aeb91[_0x49a644('0x1de3')],function(_0x1f31a4){_0x4aeb91['order']['push'](_0x1f31a4['id']);}),_0x57ae59['on']('fax_queue:save',_0x4aeb91[_0x49a644('0xc8f')]),_0x57ae59['on']('userFaxQueue:save',_0x4aeb91[_0x49a644('0x17b7')]),_0x57ae59['on'](_0x49a644('0x15f3'),_0x4aeb91[_0x49a644('0xcaf')]),_0x57ae59['on'](_0x49a644('0x15bd'),_0x4aeb91[_0x49a644('0x199c')]),_0x57ae59['on'](_0x49a644('0x5c6'),_0x4aeb91[_0x49a644('0x37f')]),_0x57ae59['on'](_0x49a644('0x1929'),_0x4aeb91[_0x49a644('0x722')]);function _0x366a4b(){const _0x140bd6=_0x49a644,_0x55e4f1=[];return _0x36f548()[_0x140bd6('0x41e')](_0x4aeb91['queues'],function(_0x55aab8,_0x2d8cf6){const _0x336e22=_0x140bd6;_0x55aab8[_0x336e22('0xdb0')]=0x0,_0x55aab8[_0x336e22('0x1e84')]=0x0,_0x4aeb91[_0x336e22('0x1de3')][_0x2d8cf6][_0x336e22('0x1401')]={},_0x55e4f1[_0x336e22('0x105d')](_0x454805['faxQueue'][_0x336e22('0x226d')]({'id':_0x2d8cf6})[_0x336e22('0x1549')]),_0x4aeb91[_0x336e22('0x1223')][_0x2d8cf6]&&_0x36f548()[_0x336e22('0x47b')](_0x55aab8,_0x36f548()['pick'](_0x4aeb91[_0x336e22('0x1223')][_0x2d8cf6],_0x3cd3ec));}),_0x1d13e5['all'](_0x55e4f1)['then'](function(_0x1eb596){const _0x4b93b7=_0x140bd6;for(let _0xd999ec=0x0;_0xd999ec<_0x1eb596[_0x4b93b7('0x1e22')];_0xd999ec+=0x1){for(let _0x3527f6=0x0;_0x3527f6<_0x1eb596[_0xd999ec][_0x4b93b7('0x19b2')][_0x4b93b7('0x1e22')];_0x3527f6++){_0x1eb596[_0xd999ec][_0x4b93b7('0x19b2')][_0x3527f6][_0x4b93b7('0xdb0')]&&_0x4aeb91[_0x4b93b7('0x1de3')][_0x1eb596[_0xd999ec][_0x4b93b7('0x19b2')][_0x3527f6][_0x4b93b7('0x13b4')]][_0x4b93b7('0xdb0')]++,_0x4aeb91[_0x4b93b7('0x1de3')][_0x1eb596[_0xd999ec][_0x4b93b7('0x19b2')][_0x3527f6][_0x4b93b7('0x13b4')]][_0x4b93b7('0x1e84')]++,_0x4aeb91[_0x4b93b7('0x1de3')][_0x1eb596[_0xd999ec][_0x4b93b7('0x19b2')][_0x3527f6][_0x4b93b7('0x13b4')]][_0x4b93b7('0x1401')][_0x1eb596[_0xd999ec][_0x4b93b7('0x19b2')][_0x3527f6][_0x4b93b7('0x2342')]]=_0x1eb596[_0xd999ec][_0x4b93b7('0x19b2')][_0x3527f6][_0x4b93b7('0x13b4')];}}})[_0x140bd6('0x151d')](function(_0x47011b){const _0x4e961b=_0x140bd6;console[_0x4e961b('0x255')](_0x47011b);});}function _0x4e9e8b(_0x35f300){const _0x291c19=_0x49a644;_0x4aeb91[_0x291c19('0x1de3')][_0x35f300['id']]&&_0x36f548()[_0x291c19('0x47b')](_0x4aeb91[_0x291c19('0x1de3')][_0x35f300['id']],_0x36f548()[_0x291c19('0x258')](_0x35f300,_0x3cd3ec));}function _0x5349f2(_0x15895d){const _0x1d3547=_0x49a644;_0x4aeb91[_0x1d3547('0x1de3')][_0x15895d[_0x1d3547('0x13b4')]]&&_0x4aeb91[_0x1d3547('0x1de3')][_0x15895d[_0x1d3547('0x13b4')]]['loggedInDb']++;}function _0x20bbe1(_0x1d2928){const _0x584d64=_0x49a644;_0x4aeb91[_0x584d64('0x1de3')][_0x1d2928[_0x584d64('0x13b4')]]&&_0x4aeb91['queues'][_0x1d2928[_0x584d64('0x13b4')]][_0x584d64('0x1e84')]--;}function _0x1dd671(_0x57b8f1){const _0x11df97=_0x49a644;console[_0x11df97('0xc78')](_0x11df97('0x199c'),_0x57b8f1);if(_0x57b8f1[_0x11df97('0x20d')])_0x36f548()['forIn'](_0x4aeb91[_0x11df97('0x1de3')],function(_0x329390){const _0x322228=_0x11df97;_0x329390['agents'][_0x57b8f1['id']]&&(_0x329390[_0x322228('0xdb0')]+=0x1,console[_0x322228('0xc78')](_0x322228('0x92a')));});else!_0x57b8f1['voicePause']&&_0x36f548()[_0x11df97('0x41e')](_0x4aeb91['queues'],function(_0xe10319){const _0xe4c130=_0x11df97;_0xe10319[_0xe4c130('0x1401')][_0x57b8f1['id']]&&(_0xe10319[_0xe4c130('0xdb0')]>0x0&&(_0xe10319[_0xe4c130('0xdb0')]-=0x1,console[_0xe4c130('0xc78')](_0xe4c130('0xb6f'))));});}function _0x6a2097(_0x438ed9){const _0x44f0dc=_0x49a644;console[_0x44f0dc('0xc78')](_0x44f0dc('0x107b'),_0x438ed9),_0x4aeb91['queues'][_0x438ed9[_0x44f0dc('0x13b4')]]&&(_0x4aeb91['queues'][_0x438ed9[_0x44f0dc('0x13b4')]][_0x44f0dc('0x1e84')]+=0x1,_0x4aeb91[_0x44f0dc('0x1de3')][_0x438ed9[_0x44f0dc('0x13b4')]][_0x44f0dc('0x1401')][_0x438ed9['UserId']]=_0x438ed9[_0x44f0dc('0x13b4')]);}function _0x15413c(_0x2fa95e){const _0x456758=_0x49a644;console[_0x456758('0xc78')](_0x456758('0x37f'),_0x2fa95e),_0x4aeb91['queues'][_0x2fa95e['FaxQueueId']]&&_0x4aeb91['queues'][_0x2fa95e[_0x456758('0x13b4')]][_0x456758('0x1e84')]>0x0&&(_0x4aeb91['queues'][_0x2fa95e['FaxQueueId']]['loggedInDb']-=0x1,delete _0x4aeb91['queues'][_0x2fa95e['FaxQueueId']]['agents'][_0x2fa95e[_0x456758('0x2342')]]);}let _0x4a2290=!![],_0x5de570=0x1;_0x6f2199[_0x49a644('0x2087')]('vm.query.filter',function(_0x463ad7,_0x5885ed){const _0x288739=_0x49a644;_0x4a2290?_0x59fd71(function(){_0x4a2290=![];}):(!_0x5885ed&&(_0x5de570=_0x4aeb91['query'][_0x288739('0x1c2')]),_0x463ad7!==_0x5885ed&&(_0x4aeb91[_0x288739('0x1f2a')][_0x288739('0x1c2')]=0x1),!_0x463ad7&&(_0x4aeb91[_0x288739('0x1f2a')]['page']=_0x5de570),_0x4aeb91[_0x288739('0x373')]());});function _0x5686e8(_0x561d2f){const _0x2bc236=_0x49a644;_0x4aeb91['count']=_0x561d2f[_0x2bc236('0x27d2')],_0x4aeb91[_0x2bc236('0x1de3')]=_0x561d2f?_0x36f548()[_0x2bc236('0x2130')](_0x561d2f[_0x2bc236('0x19b2')]?_0x561d2f['rows']:[],'id'):{};if(_0x561d2f['rows']){_0x4aeb91[_0x2bc236('0x59')]=[];for(let _0x58e1ca=0x0;_0x58e1ca<_0x561d2f[_0x2bc236('0x19b2')][_0x2bc236('0x1e22')];_0x58e1ca++){_0x4aeb91[_0x2bc236('0x59')]['push'](_0x561d2f[_0x2bc236('0x19b2')][_0x58e1ca]['id']);}}_0x366a4b();}function _0x4797b0(){const _0x22cd52=_0x49a644;_0x4aeb91['query'][_0x22cd52('0x1393')]=(_0x4aeb91[_0x22cd52('0x1f2a')]['page']-0x1)*_0x4aeb91[_0x22cd52('0x1f2a')]['limit'],_0x37d4c6[_0x22cd52('0x4ee')]('admin')?_0x4aeb91[_0x22cd52('0x13f')]=_0x454805[_0x22cd52('0x189d')][_0x22cd52('0xbaa')](_0x4aeb91[_0x22cd52('0x1f2a')],_0x5686e8)['$promise']:(_0x4aeb91[_0x22cd52('0x1f2a')]['id']=_0x4aeb91[_0x22cd52('0x25bc')]['id'],_0x4aeb91[_0x22cd52('0x1f2a')]['section']=_0x22cd52('0x175c'),_0x4aeb91[_0x22cd52('0x13f')]=_0x454805[_0x22cd52('0x25bc')][_0x22cd52('0x228e')](_0x4aeb91['query'],_0x5686e8)[_0x22cd52('0x1549')]);}function _0x2ea638(_0x503ccb,_0x6397b5){const _0xd6835e=_0x49a644;_0x467282['show']({'controller':_0xd6835e('0x6c8'),'controllerAs':'vm','templateUrl':_0x5d40b6,'parent':angular[_0xd6835e('0x1e73')](_0x18b6a8['body']),'targetEvent':_0x503ccb,'clickOutsideToClose':!![],'locals':{'faxQueue':_0x6397b5,'faxQueues':_0x36f548()[_0xd6835e('0x1643')](_0x4aeb91[_0xd6835e('0x1de3')]),'license':null,'setting':null,'crudPermissions':_0x4aeb91[_0xd6835e('0xb25')]}});}function _0x33d36b(_0x10a69e,_0x464585){const _0x5b9145=_0x49a644;_0x467282[_0x5b9145('0xb9')]({'controller':'FaxQueueagentaddController','controllerAs':'vm','templateUrl':_0x49dcb2,'parent':angular['element'](_0x18b6a8['body']),'targetEvent':_0x10a69e,'clickOutsideToClose':!![],'locals':{'faxQueue':_0x464585,'faxQueues':_0x4aeb91[_0x5b9145('0x1de3')]?_0x4aeb91[_0x5b9145('0x1de3')][_0x5b9145('0x19b2')]:[],'realtime':![],'crudPermissions':_0x4aeb91['crudPermissions']}});}function _0x260b3f(_0x4f48fa){const _0x4bd1ec=_0x49a644;return _0x454805['faxQueue'][_0x4bd1ec('0x5ab')](_0x4f48fa)['$promise']['then'](function(){const _0x4667ea=_0x4bd1ec;_0x1768b6[_0x4667ea('0x2693')]({'title':_0x4667ea('0x1544'),'msg':_0x4f48fa[_0x4667ea('0x1909')]?_0x4f48fa[_0x4667ea('0x1909')]+'\x20has\x20been\x20updated!':''});})[_0x4bd1ec('0x151d')](function(_0x45fad6){const _0x15af9e=_0x4bd1ec;_0x1768b6[_0x15af9e('0x255')]({'title':'Error\x20creating\x20queue!','msg':_0x45fad6[_0x15af9e('0x1b86')]});});}_0x6f2199['$on'](_0x49a644('0x4f7'),function(){const _0x2a1225=_0x49a644;_0x57ae59[_0x2a1225('0x1b2e')](_0x2a1225('0x229')),_0x57ae59['removeAllListeners']('userFaxQueue:remove'),_0x57ae59[_0x2a1225('0x1b2e')](_0x2a1225('0x9d9')),_0x57ae59[_0x2a1225('0x1b2e')](_0x2a1225('0x15bd')),_0x57ae59[_0x2a1225('0x1b2e')](_0x2a1225('0x5c6')),_0x57ae59['removeAllListeners'](_0x2a1225('0x1929'));});}const _0x32cde2=_0x4daa8c;function _0x712ef4(){const _0x4f4f43=_0x21d0f5;return{'status':{'registered':'green-300-fg\x20icon-checkbox-marked-circle','unregistered':_0x4f4f43('0x58e'),'lagged':_0x4f4f43('0x58e'),'reachable':_0x4f4f43('0x2747'),'unreachable':'red-300-fg\x20icon-close-circle','unknown':_0x4f4f43('0xcc')},'state':{'unknown':_0x4f4f43('0x95b'),'not_inuse':_0x4f4f43('0x8b2'),'inuse':_0x4f4f43('0x52b'),'busy':'red-300-fg\x20icon-phone-locked','invalid':_0x4f4f43('0x95b'),'unavailable':'grey-fg\x20icon-phone-hangup','ringing':'blue-300-fg\x20icon-phone-incoming','ringinuse':_0x4f4f43('0x1df'),'onhold':_0x4f4f43('0x142a')},'channelStatus':{'ring':_0x4f4f43('0x1df'),'up':'green-300-fg\x20icon-phone-in-talk','hangup':_0x4f4f43('0x393')},'channelStatusOut':{'ring':_0x4f4f43('0x27f5'),'up':'green-300-fg\x20icon-phone-in-talk','hangup':_0x4f4f43('0x393')}};}const _0x2f5afa=_0x712ef4;_0x5b8c48[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0xcbc'),_0x21d0f5('0x1d56')];function _0x5b8c48(_0x364ad0,_0x2460f4,_0x3248c1){const _0x3b0320=_0x21d0f5,_0x34ec33=this;_0x3248c1[_0x3b0320('0x143e')](),_0x3248c1[_0x3b0320('0x196c')](),_0x34ec33[_0x3b0320('0x1179')]=0x0;switch(_0x2460f4[_0x3b0320('0x191')][_0x3b0320('0x1909')]){case'app.fax.realtime.agents':_0x34ec33['selectedTab']=0x0;break;case _0x3b0320('0x1c9b'):_0x34ec33[_0x3b0320('0x1179')]=0x1;break;case'app.fax.realtime.queues':_0x34ec33[_0x3b0320('0x1179')]=0x2;break;case _0x3b0320('0x16ae'):_0x34ec33[_0x3b0320('0x1179')]=0x3;break;default:_0x34ec33['selectedTab']=0x0,_0x2460f4['go'](_0x3b0320('0x3d7'));}_0x364ad0[_0x3b0320('0x2087')]('vm.selectedTab',function(_0x37044a,_0x5a5401){const _0x42b918=_0x3b0320;if(_0x37044a!==_0x5a5401)switch(_0x37044a){case 0x0:_0x2460f4['go'](_0x42b918('0x3d7'));break;case 0x1:_0x2460f4['go'](_0x42b918('0x1c9b'));break;case 0x2:_0x2460f4['go']('app.fax.realtime.queues');break;case 0x3:_0x2460f4['go'](_0x42b918('0x16ae'));break;default:_0x2460f4['go'](_0x42b918('0x3d7'));}});}const _0x5f36da=_0x5b8c48;_0x4e67b9[_0x21d0f5('0x1e9a')]=['$scope',_0x21d0f5('0x17f5'),'$mdDialog',_0x21d0f5('0x1b24'),_0x21d0f5('0x1745'),'api',_0x21d0f5('0x1d56'),_0x21d0f5('0x927'),_0x21d0f5('0xcbc'),_0x21d0f5('0x25bc'),'userProfileSection','Auth'];function _0x4e67b9(_0x254503,_0x4ae5fe,_0x1d3ad6,_0x2c36db,_0x2de338,_0x26737c,_0x29d8eb,_0x348555,_0x1ef3e6,_0x1f4ff9,_0x3f6a46,_0x508f6b){const _0x1b4f49=_0x21d0f5,_0xb948f7=this,_0x477a80=[_0x1b4f49('0xff9'),'stateRegistry',_0x1b4f49('0x12d0'),'host',_0x1b4f49('0x235b'),'internal',_0x1b4f49('0x2124'),_0x1b4f49('0xff9')];_0xb948f7[_0x1b4f49('0x32a')]=_0x508f6b[_0x1b4f49('0x2428')](),_0xb948f7[_0x1b4f49('0x27d2')]=_0x2c36db[_0x1b4f49('0x27d2')],_0xb948f7[_0x1b4f49('0x1b24')]=_0x2c36db?_0x2c36db[_0x1b4f49('0x19b2')]:[],_0xb948f7[_0x1b4f49('0x1745')]=_0x2de338?_0x2de338[_0x1b4f49('0x19b2')]?_0x2de338[_0x1b4f49('0x19b2')]:[]:[],_0xb948f7[_0x1b4f49('0x1f2a')]={'fields':_0x1b4f49('0x721'),'active':!![],'sort':_0x1b4f49('0x1c74'),'limit':0xa,'page':0x1},_0xb948f7[_0x1b4f49('0x98a')]=_0x348555[_0x1b4f49('0xff9')],_0xb948f7[_0x1b4f49('0xa78')]=_0x348555[_0x1b4f49('0x2124')],_0xb948f7[_0x1b4f49('0x25bc')]=_0x1f4ff9,_0xb948f7[_0x1b4f49('0x1d63')]=_0x3f6a46&&_0x3f6a46[_0x1b4f49('0x27d2')]==0x1?_0x3f6a46[_0x1b4f49('0x19b2')][0x0]:null,_0xb948f7[_0x1b4f49('0xb25')]=_0x508f6b[_0x1b4f49('0x1530')](_0xb948f7[_0x1b4f49('0x1d63')]?_0xb948f7['userProfileSection']['crudPermissions']:null),_0xb948f7[_0x1b4f49('0x2693')]=_0xcb8aac,_0xb948f7[_0x1b4f49('0x224d')]=_0x404e36,_0xb948f7[_0x1b4f49('0x1410')]=_0x386d9f,_0xb948f7[_0x1b4f49('0x2f0')]=_0x3da169,_0xb948f7['goToTrunk']=_0x370852,_0xb948f7[_0x1b4f49('0xc8f')]=_0x3b1442,_0x29d8eb['on']('trunk:save',_0xb948f7[_0x1b4f49('0xc8f')]);function _0x404e36(){const _0x4285ec=_0x1b4f49;let _0x3f75d8;for(let _0x38ba32=0x0;_0x38ba32<_0xb948f7[_0x4285ec('0x1b24')]['length'];_0x38ba32+=0x1){_0x3f75d8=_0x36f548()[_0x4285ec('0x1b12')](_0xb948f7['rpcTrunks'],['id',_0xb948f7[_0x4285ec('0x1b24')][_0x38ba32]['id']]),_0x3f75d8>=0x0&&_0x36f548()['merge'](_0xb948f7['trunks'][_0x38ba32],_0x36f548()[_0x4285ec('0x258')](_0xb948f7[_0x4285ec('0x1745')][_0x3f75d8],_0x477a80));}}function _0x386d9f(_0x18342){const _0x35751a=_0x1b4f49;_0x1d3ad6[_0x35751a('0xb9')](_0x1d3ad6[_0x35751a('0xb30')]()['clickOutsideToClose'](!![])[_0x35751a('0x134b')](_0x35751a('0x24f0'))['htmlContent'](_0x35751a('0x193c'))['ok']('Ok')[_0x35751a('0x1e25')](_0x18342));}function _0x40b2fb(_0x98a8c1,_0x3694b9,_0x411e49){const _0x577229=_0x1b4f49;_0x3694b9>=0x0&&_0x36f548()[_0x577229('0x47b')](_0x98a8c1[_0x3694b9],_0x36f548()[_0x577229('0x258')](_0x411e49,_0x477a80));}function _0x3b1442(_0x177706){const _0x2a218b=_0x1b4f49,_0x31200a=_0x36f548()[_0x2a218b('0x1b12')](_0xb948f7[_0x2a218b('0x1b24')],['id',_0x177706['id']]),_0x200ed8=_0x36f548()['findIndex'](_0xb948f7[_0x2a218b('0x1745')],['id',_0x177706['id']]);_0x40b2fb(_0xb948f7[_0x2a218b('0x1b24')],_0x31200a,_0x177706),_0x40b2fb(_0xb948f7['rpcTrunks'],_0x200ed8,_0x177706);}let _0x2955df=!![],_0x51df05=0x1;_0x254503[_0x1b4f49('0x2087')](_0x1b4f49('0x842'),function(_0x399ef9,_0x184bc7){const _0x336115=_0x1b4f49;_0x2955df?_0x4ae5fe(function(){_0x2955df=![];}):(!_0x184bc7&&(_0x51df05=_0xb948f7[_0x336115('0x1f2a')][_0x336115('0x1c2')]),_0x399ef9!==_0x184bc7&&(_0xb948f7[_0x336115('0x1f2a')]['page']=0x1),!_0x399ef9&&(_0xb948f7['query'][_0x336115('0x1c2')]=_0x51df05),_0xb948f7[_0x336115('0x2f0')]());});function _0xcb8aac(_0x4a3be9){const _0xe1096=_0x1b4f49;_0xb948f7['count']=_0x4a3be9[_0xe1096('0x27d2')],_0xb948f7['trunks']=_0x4a3be9?_0x4a3be9[_0xe1096('0x19b2')]?_0x4a3be9[_0xe1096('0x19b2')]:[]:[],_0x404e36();}function _0x3da169(){const _0x5c39b0=_0x1b4f49;_0xb948f7[_0x5c39b0('0x1f2a')][_0x5c39b0('0x1393')]=(_0xb948f7[_0x5c39b0('0x1f2a')][_0x5c39b0('0x1c2')]-0x1)*_0xb948f7[_0x5c39b0('0x1f2a')][_0x5c39b0('0xd5c')],_0x508f6b[_0x5c39b0('0x4ee')](_0x5c39b0('0xf45'))?_0xb948f7['promise']=_0x26737c[_0x5c39b0('0x264e')][_0x5c39b0('0xbaa')](_0xb948f7[_0x5c39b0('0x1f2a')],_0xcb8aac)[_0x5c39b0('0x1549')]:(_0xb948f7[_0x5c39b0('0x1f2a')]['id']=_0xb948f7[_0x5c39b0('0x25bc')]['id'],_0xb948f7[_0x5c39b0('0x1f2a')][_0x5c39b0('0xe6')]=_0x5c39b0('0x2174'),_0xb948f7['promise']=_0x26737c[_0x5c39b0('0x25bc')][_0x5c39b0('0x228e')](_0xb948f7[_0x5c39b0('0x1f2a')],_0xcb8aac)[_0x5c39b0('0x1549')]);}_0x254503[_0x1b4f49('0x12d8')](_0x1b4f49('0x4f7'),function(){const _0x29f522=_0x1b4f49;_0x29d8eb[_0x29f522('0x1b2e')](_0x29f522('0x13b5'));});function _0x370852(_0x3ef941,_0x39cf7e){const _0x25f111=_0x1b4f49;_0x1ef3e6['go'](_0x25f111('0x2873'),{'id':_0x39cf7e['id']});}}const _0x1e6b6f=_0x4e67b9;_0xe2bddd[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x13d6')];function _0xe2bddd(_0x410d68){const _0x2f3795=_0x21d0f5;_0x410d68['state'](_0x2f3795('0x275a'),{'url':_0x2f3795('0x25aa'),'views':{'content@app':{'templateUrl':_0x913572,'controller':'FaxRealtimeController\x20as\x20vm'}},'resolve':{'userProfile':[_0x2f3795('0x218e'),'Auth',function(_0x1f9a8a,_0x50a77e){const _0x1cfc73=_0x2f3795;return _0x50a77e['hasRole'](_0x1cfc73('0xf45'))?null:_0x1f9a8a['resolve'](_0x1cfc73('0x428'),{'fields':_0x1cfc73('0xd30'),'id':_0x50a77e[_0x1cfc73('0x2428')]()[_0x1cfc73('0x781')]});}],'userProfileSection':[_0x2f3795('0x218e'),'Auth',function(_0x3926e5,_0x3a158d){const _0x47a45f=_0x2f3795;return _0x3a158d[_0x47a45f('0x4ee')](_0x47a45f('0xf45'))?null:_0x3926e5['resolve'](_0x47a45f('0x2762'),{'fields':_0x47a45f('0x36d'),'userProfileId':_0x3a158d['getCurrentUser']()[_0x47a45f('0x781')],'sectionId':0x38e});}]},'authenticate':!![],'permissionId':0x38e})[_0x2f3795('0x2124')]('app.fax.realtime.agents',{'url':_0x2f3795('0x2260'),'controller':_0x2f3795('0x773'),'templateUrl':_0x52c612,'resolve':{'pauses':[_0x2f3795('0x218e'),function(_0x2e6e20){return _0x2e6e20['resolve']('pause@get',{'nolimit':!![]});}],'agents':['apiResolver','Auth',function(_0x33ef70,_0x397f36){const _0x55ae77=_0x2f3795;return _0x397f36[_0x55ae77('0x4ee')](_0x55ae77('0xf45'))?_0x33ef70[_0x55ae77('0xa28')](_0x55ae77('0x2166'),{'fields':_0x55ae77('0xd80'),'role':'agent','sort':_0x55ae77('0x27af'),'nolimit':!![]}):_0x33ef70[_0x55ae77('0xa28')](_0x55ae77('0xb0d'),{'id':_0x397f36[_0x55ae77('0x2428')]()[_0x55ae77('0x781')],'section':_0x55ae77('0x4b1'),'fields':_0x55ae77('0xd80'),'role':_0x55ae77('0x18c4'),'sort':_0x55ae77('0x27af'),'nolimit':!![]});}],'userProfile':[_0x2f3795('0x218e'),'Auth',function(_0x5061a9,_0x595243){const _0x28e7ad=_0x2f3795;return _0x595243[_0x28e7ad('0x4ee')]('admin')?null:_0x5061a9[_0x28e7ad('0xa28')]('userProfile@get',{'fields':'id,name,crudPermissions','id':_0x595243[_0x28e7ad('0x2428')]()[_0x28e7ad('0x781')]});}],'userProfileSection':[_0x2f3795('0x218e'),_0x2f3795('0x1150'),function(_0x4004d9,_0x37b264){const _0x3e8bf0=_0x2f3795;return _0x37b264[_0x3e8bf0('0x4ee')](_0x3e8bf0('0xf45'))?null:_0x4004d9['resolve'](_0x3e8bf0('0x2762'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x37b264[_0x3e8bf0('0x2428')]()[_0x3e8bf0('0x781')],'sectionId':0xca});}],'rpcAgents':[_0x2f3795('0x218e'),function(_0x54b186){const _0x582029=_0x2f3795;return _0x54b186[_0x582029('0xa28')]('rpc@getAgents');}]},'authenticate':!![],'permissionId':0x38e})[_0x2f3795('0x2124')]('app.fax.realtime.trunks',{'url':_0x2f3795('0x47a'),'controller':_0x2f3795('0x26c7'),'templateUrl':_0x1f44a2,'resolve':{'trunks':[_0x2f3795('0x218e'),_0x2f3795('0x1150'),function(_0x1b5c3a,_0x4f9a19){const _0x4b5474=_0x2f3795;return _0x4f9a19[_0x4b5474('0x4ee')](_0x4b5474('0xf45'))?_0x1b5c3a[_0x4b5474('0xa28')](_0x4b5474('0x23cd'),{'fields':_0x4b5474('0x721'),'active':!![],'sort':_0x4b5474('0x1c74'),'limit':0xa,'offset':0x0}):_0x1b5c3a[_0x4b5474('0xa28')](_0x4b5474('0xb0d'),{'id':_0x4f9a19[_0x4b5474('0x2428')]()['userProfileId'],'section':_0x4b5474('0x2174'),'fields':_0x4b5474('0x721'),'active':!![],'sort':_0x4b5474('0x1c74'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x2f3795('0x218e'),_0x2f3795('0x1150'),function(_0x292fa6,_0x2f975e){const _0x184e71=_0x2f3795;return _0x2f975e[_0x184e71('0x4ee')](_0x184e71('0xf45'))?null:_0x292fa6[_0x184e71('0xa28')]('userProfile@get',{'fields':'id,name,crudPermissions','id':_0x2f975e['getCurrentUser']()[_0x184e71('0x781')]});}],'userProfileSection':['apiResolver',_0x2f3795('0x1150'),function(_0x59f27f,_0x21b788){const _0x32aa85=_0x2f3795;return _0x21b788[_0x32aa85('0x4ee')](_0x32aa85('0xf45'))?null:_0x59f27f[_0x32aa85('0xa28')](_0x32aa85('0x2762'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x21b788[_0x32aa85('0x2428')]()[_0x32aa85('0x781')],'sectionId':0x3f3});}],'rpcTrunks':[_0x2f3795('0x218e'),function(_0x6dc691){const _0x4214a2=_0x2f3795;return _0x6dc691[_0x4214a2('0xa28')](_0x4214a2('0x285'));}]},'authenticate':!![],'permissionId':0x38e})[_0x2f3795('0x2124')](_0x2f3795('0xd86'),{'url':_0x2f3795('0xb98'),'controller':_0x2f3795('0x8ba'),'templateUrl':_0x16eff4,'resolve':{'queues':[_0x2f3795('0x218e'),_0x2f3795('0x1150'),function(_0x2770e0,_0x318eab){const _0x469a7b=_0x2f3795;return _0x318eab['hasRole'](_0x469a7b('0xf45'))?_0x2770e0['resolve'](_0x469a7b('0x133'),{'type':'inbound','sort':_0x469a7b('0x1c74'),'limit':0xa,'offset':0x0}):_0x2770e0[_0x469a7b('0xa28')](_0x469a7b('0xb0d'),{'id':_0x318eab[_0x469a7b('0x2428')]()[_0x469a7b('0x781')],'section':_0x469a7b('0x175c'),'channel':_0x469a7b('0x2104'),'type':'inbound','sort':_0x469a7b('0x1c74'),'limit':0xa,'page':0x1});}],'userProfile':['apiResolver','Auth',function(_0x2f8d9b,_0x55b8d4){const _0x338685=_0x2f3795;return _0x55b8d4[_0x338685('0x4ee')](_0x338685('0xf45'))?null:_0x2f8d9b['resolve'](_0x338685('0x428'),{'fields':_0x338685('0xd30'),'id':_0x55b8d4[_0x338685('0x2428')]()['userProfileId']});}],'userProfileSection':[_0x2f3795('0x218e'),_0x2f3795('0x1150'),function(_0x9c7257,_0x9fad59){const _0x4262bb=_0x2f3795;return _0x9fad59[_0x4262bb('0x4ee')]('admin')?null:_0x9c7257[_0x4262bb('0xa28')](_0x4262bb('0x2762'),{'fields':_0x4262bb('0x36d'),'userProfileId':_0x9fad59[_0x4262bb('0x2428')]()[_0x4262bb('0x781')],'sectionId':0x385});}],'rpcQueues':['apiResolver',function(_0x49b2cf){const _0x84b7c=_0x2f3795;return _0x49b2cf[_0x84b7c('0xa28')](_0x84b7c('0x23e6'));}]},'authenticate':!![],'permissionId':0x38e})['state'](_0x2f3795('0x16ae'),{'url':_0x2f3795('0x27c8'),'controller':'FaxAccountsRealtimeController\x20as\x20vm','templateUrl':_0x5d2e66,'resolve':{'faxAccounts':[_0x2f3795('0x218e'),_0x2f3795('0x1150'),function(_0x348650,_0x5da959){const _0xd8fc22=_0x2f3795;return _0x5da959[_0xd8fc22('0x4ee')](_0xd8fc22('0xf45'))?_0x348650[_0xd8fc22('0xa28')](_0xd8fc22('0x17b5'),{'sort':_0xd8fc22('0x1c74'),'limit':0xa,'offset':0x0}):_0x348650[_0xd8fc22('0xa28')](_0xd8fc22('0xb0d'),{'id':_0x5da959[_0xd8fc22('0x2428')]()['userProfileId'],'section':'FaxAccounts','sort':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':[_0x2f3795('0x218e'),_0x2f3795('0x1150'),function(_0x2970f0,_0x4eabf8){const _0x58a870=_0x2f3795;return _0x4eabf8['hasRole'](_0x58a870('0xf45'))?null:_0x2970f0[_0x58a870('0xa28')](_0x58a870('0x428'),{'fields':_0x58a870('0xd30'),'id':_0x4eabf8[_0x58a870('0x2428')]()[_0x58a870('0x781')]});}],'userProfileSection':['apiResolver','Auth',function(_0x54e66f,_0x38b458){const _0x106c8b=_0x2f3795;return _0x38b458['hasRole'](_0x106c8b('0xf45'))?null:_0x54e66f[_0x106c8b('0xa28')]('userProfileSection@get',{'fields':_0x106c8b('0x36d'),'userProfileId':_0x38b458[_0x106c8b('0x2428')]()[_0x106c8b('0x781')],'sectionId':0x386});}],'rpcFaxAccounts':[_0x2f3795('0x218e'),function(_0x4c76a7){const _0x15eaeb=_0x2f3795;return _0x4c76a7[_0x15eaeb('0xa28')](_0x15eaeb('0x11b'));}]},'authenticate':!![],'permissionId':0x38e});}angular[_0x21d0f5('0x2768')](_0x21d0f5('0x275a'),[])[_0x21d0f5('0x53a')](_0xe2bddd)[_0x21d0f5('0x23eb')](_0x21d0f5('0x76a'),_0x5f22c6)[_0x21d0f5('0x23eb')]('AgentsFaxRealtimeController',_0x203e06)[_0x21d0f5('0x23eb')]('QueuesFaxRealtimeController',_0x32cde2)[_0x21d0f5('0x2729')](_0x21d0f5('0x927'),_0x2f5afa)[_0x21d0f5('0x23eb')](_0x21d0f5('0xf50'),_0x5f36da)[_0x21d0f5('0x23eb')](_0x21d0f5('0xb70'),_0x1e6b6f),_0x2f4bc8[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0xcbc'),_0x21d0f5('0x16b9'),_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0xb6b'),'toasty','faxAccounts','faxAccount',_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1'),_0x21d0f5('0xb25')];function _0x2f4bc8(_0x1c9a0d,_0x2a2ca4,_0x227ed6,_0x970588,_0x2b5123,_0x512c03,_0x2f0368,_0x5067c9,_0x3c425b,_0x1f7ede,_0x301789,_0x587bab,_0x55cd48,_0x2af6b8){const _0x3c7b82=_0x21d0f5,_0x3f6748=this;_0x3f6748[_0x3c7b82('0x32a')]=_0x301789[_0x3c7b82('0x2428')](),_0x3f6748[_0x3c7b82('0x120f')]=[],_0x3f6748[_0x3c7b82('0x23e1')]=_0x55cd48,_0x3f6748['license']=_0x587bab,_0x3f6748[_0x3c7b82('0xb25')]=_0x2af6b8,_0x3f6748['hasModulePermissions']={},_0x3f6748[_0x3c7b82('0x2834')]=_0x3f6748[_0x3c7b82('0x23e1')]&&_0x3f6748[_0x3c7b82('0x23e1')][_0x3c7b82('0x1d4')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3f6748[_0x3c7b82('0x134b')]=_0x3c7b82('0x1019'),_0x3f6748[_0x3c7b82('0x19dc')]=angular['copy'](_0x3c425b),_0x3f6748['faxAccounts']=_0x5067c9,_0x3f6748[_0x3c7b82('0x2159')]=![];!_0x3f6748['faxAccount']&&(_0x3f6748[_0x3c7b82('0x19dc')]={'waitForTheAssignedAgent':0xa,'notificationSound':!![],'queueTransferTimeout':0x12c,'agentTransferTimeout':0x12c},_0x3f6748[_0x3c7b82('0x134b')]=_0x3c7b82('0xd88'),_0x3f6748[_0x3c7b82('0x2159')]=!![]);_0x2a2ca4['params']['id']&&(_0x3f6748[_0x3c7b82('0x19dc')][_0x3c7b82('0x1a46')]=_0x2a2ca4[_0x3c7b82('0x1ab3')]['id']);_0x3f6748['addNewFaxAccount']=_0x3231e4,_0x3f6748[_0x3c7b82('0x1618')]=_0x470dd0,_0x3f6748[_0x3c7b82('0xdd')]=_0x3c0066,_0x3f6748[_0x3c7b82('0x1bd1')]=_0x2e0ee8,_0x3f6748['closeDialog']=_0x30381d,_0x301789[_0x3c7b82('0x4ee')](_0x3c7b82('0xf45'))?_0x1f7ede[_0x3c7b82('0x264e')][_0x3c7b82('0xbaa')]({'fields':_0x3c7b82('0x721'),'sort':_0x3c7b82('0x1909')})['$promise']['then'](function(_0x2beafd){const _0x438b21=_0x3c7b82;_0x3f6748[_0x438b21('0x1b24')]=_0x2beafd[_0x438b21('0x19b2')]||[];})[_0x3c7b82('0x151d')](function(_0x3a8128){const _0x496ebf=_0x3c7b82;_0x2f0368[_0x496ebf('0x255')]({'title':_0x3a8128[_0x496ebf('0xff9')]?_0x496ebf('0x574')+_0x3a8128[_0x496ebf('0xff9')]+_0x496ebf('0xb0b')+_0x3a8128['statusText']:'SYSTEM:GET_TRUNKS','msg':_0x3a8128['data']?JSON['stringify'](_0x3a8128[_0x496ebf('0x4e8')]):_0x3a8128[_0x496ebf('0xaab')]()});}):_0x1f7ede[_0x3c7b82('0x264e')]['get']({'fields':_0x3c7b82('0x721'),'sort':'name'})['$promise']['then'](function(_0x3076f4){const _0x37da85=_0x3c7b82;_0x3f6748[_0x37da85('0x1b24')]=_0x3076f4[_0x37da85('0x19b2')]||[];})[_0x3c7b82('0x11bf')](function(){const _0x2a98c6=_0x3c7b82;return _0x1f7ede[_0x2a98c6('0x1d63')][_0x2a98c6('0xbaa')]({'userProfileId':_0x3f6748[_0x2a98c6('0x32a')][_0x2a98c6('0x781')],'sectionId':0x3f3})[_0x2a98c6('0x1549')];})['then'](function(_0x3844ce){const _0x27e63a=_0x3c7b82,_0x5ba3a2=_0x3844ce&&_0x3844ce[_0x27e63a('0x19b2')]?_0x3844ce[_0x27e63a('0x19b2')][0x0]:null;if(!_0x5ba3a2){const _0x13a36a=[];let _0x1f52ed=null;_0x3f6748['faxAccount']&&(_0x1f52ed=_0x36f548()[_0x27e63a('0x1ad4')](_0x3f6748[_0x27e63a('0x1b24')],{'id':Number(_0x3f6748['faxAccount'][_0x27e63a('0x1016')])}));for(let _0x48ce13=0x0;_0x48ce13<_0x3f6748[_0x27e63a('0x1b24')][_0x27e63a('0x1e22')];_0x48ce13++){_0x1f52ed&&_0x3f6748[_0x27e63a('0x1b24')][_0x48ce13]['id']===_0x1f52ed['id']&&(_0x3f6748[_0x27e63a('0x1b24')][_0x48ce13][_0x27e63a('0x254a')]=![],_0x13a36a[_0x27e63a('0x105d')](_0x3f6748[_0x27e63a('0x1b24')][_0x48ce13]));}_0x3f6748[_0x27e63a('0x1b24')]=_0x13a36a;}else{if(!_0x5ba3a2[_0x27e63a('0xf11')])return _0x1f7ede[_0x27e63a('0x26d1')][_0x27e63a('0xbaa')]({'sectionId':_0x5ba3a2['id']})['$promise'][_0x27e63a('0x11bf')](function(_0x4304f4){const _0x44377d=_0x27e63a,_0x129a86=_0x36f548()[_0x44377d('0x2171')](_0x4304f4[_0x44377d('0x19b2')],function(_0x2eafd0){const _0x5f1cbf=_0x44377d;return _0x36f548()[_0x5f1cbf('0x1ad4')](_0x3f6748['trunks'],{'id':_0x2eafd0[_0x5f1cbf('0x15a5')]});});let _0x301434=null;_0x3f6748['faxAccount']&&(_0x301434=_0x36f548()[_0x44377d('0x1ad4')](_0x3f6748[_0x44377d('0x1b24')],{'id':Number(_0x3f6748['faxAccount'][_0x44377d('0x1016')])}));if(_0x301434&&!_0x36f548()[_0x44377d('0x1cb3')](_0x129a86,['id',_0x301434['id']])){const _0x5d397c=_0x36f548()['find'](_0x3f6748[_0x44377d('0x1b24')],{'id':_0x301434['id']});_0x5d397c['canSelect']=![],_0x129a86[_0x44377d('0x105d')](_0x5d397c);}_0x3f6748[_0x44377d('0x1b24')]=_0x129a86;});}})[_0x3c7b82('0x151d')](function(_0x1e25d3){const _0x2386cd=_0x3c7b82;_0x2f0368['error']({'title':_0x1e25d3[_0x2386cd('0xff9')]?_0x2386cd('0x574')+_0x1e25d3[_0x2386cd('0xff9')]+_0x2386cd('0xb0b')+_0x1e25d3[_0x2386cd('0x212f')]:_0x2386cd('0xf39'),'msg':_0x1e25d3[_0x2386cd('0x4e8')]?JSON[_0x2386cd('0x3e')](_0x1e25d3['data']):_0x1e25d3[_0x2386cd('0xaab')]()});}),_0x301789['hasRole'](_0x3c7b82('0xf45'))?_0x1f7ede['cmList'][_0x3c7b82('0xbaa')]({'fields':_0x3c7b82('0x721'),'sort':_0x3c7b82('0x1909')})[_0x3c7b82('0x1549')]['then'](function(_0x357d32){const _0x59a979=_0x3c7b82;_0x3f6748[_0x59a979('0x2410')]=_0x357d32[_0x59a979('0x19b2')]||[];})[_0x3c7b82('0x151d')](function(_0x5886e9){const _0x14879d=_0x3c7b82;_0x2f0368[_0x14879d('0x255')]({'title':_0x5886e9[_0x14879d('0xff9')]?_0x14879d('0x574')+_0x5886e9[_0x14879d('0xff9')]+'\x20-\x20'+_0x5886e9[_0x14879d('0x212f')]:_0x14879d('0x27ed'),'msg':_0x5886e9['data']?JSON['stringify'](_0x5886e9[_0x14879d('0x4e8')]):_0x5886e9[_0x14879d('0xaab')]()});}):_0x1f7ede[_0x3c7b82('0xbef')]['get']({'fields':_0x3c7b82('0x721'),'sort':_0x3c7b82('0x1909')})['$promise']['then'](function(_0x513720){const _0x40d5cf=_0x3c7b82;_0x3f6748[_0x40d5cf('0x2410')]=_0x513720['rows']||[];})[_0x3c7b82('0x11bf')](function(){const _0x49370b=_0x3c7b82;return _0x1f7ede['userProfileSection'][_0x49370b('0xbaa')]({'userProfileId':_0x3f6748[_0x49370b('0x32a')][_0x49370b('0x781')],'sectionId':0x12d})[_0x49370b('0x1549')];})[_0x3c7b82('0x11bf')](function(_0x42ddae){const _0x32f92d=_0x3c7b82,_0xc08b35=_0x42ddae&&_0x42ddae['rows']?_0x42ddae[_0x32f92d('0x19b2')][0x0]:null;if(!_0xc08b35){const _0x50bc72=[];let _0xe33871=null;_0x3f6748[_0x32f92d('0x19dc')]&&(_0xe33871=_0x36f548()['find'](_0x3f6748[_0x32f92d('0x2410')],{'id':Number(_0x3f6748[_0x32f92d('0x19dc')]['ListId'])}));for(let _0x15c213=0x0;_0x15c213<_0x3f6748[_0x32f92d('0x2410')][_0x32f92d('0x1e22')];_0x15c213++){_0xe33871&&_0x3f6748[_0x32f92d('0x2410')][_0x15c213]['id']===_0xe33871['id']&&(_0x3f6748['lists'][_0x15c213][_0x32f92d('0x254a')]=![],_0x50bc72[_0x32f92d('0x105d')](_0x3f6748[_0x32f92d('0x2410')][_0x15c213]));}_0x3f6748['lists']=_0x50bc72;}else{if(!_0xc08b35['autoAssociation'])return _0x1f7ede['userProfileResource']['get']({'sectionId':_0xc08b35['id']})[_0x32f92d('0x1549')]['then'](function(_0x2899ec){const _0x104ae9=_0x32f92d,_0xe5fbf4=_0x36f548()[_0x104ae9('0x2171')](_0x2899ec['rows'],function(_0x574552){const _0x5e25a3=_0x104ae9;return _0x36f548()[_0x5e25a3('0x1ad4')](_0x3f6748[_0x5e25a3('0x2410')],{'id':_0x574552[_0x5e25a3('0x15a5')]});});let _0x3e8faa=null;_0x3f6748[_0x104ae9('0x19dc')]&&(_0x3e8faa=_0x36f548()[_0x104ae9('0x1ad4')](_0x3f6748['lists'],{'id':Number(_0x3f6748[_0x104ae9('0x19dc')][_0x104ae9('0x1e91')])}));if(_0x3e8faa&&!_0x36f548()[_0x104ae9('0x1cb3')](_0xe5fbf4,['id',_0x3e8faa['id']])){const _0x242d4e=_0x36f548()[_0x104ae9('0x1ad4')](_0x3f6748[_0x104ae9('0x2410')],{'id':_0x3e8faa['id']});_0x242d4e[_0x104ae9('0x254a')]=![],_0xe5fbf4[_0x104ae9('0x105d')](_0x242d4e);}_0x3f6748['lists']=_0xe5fbf4;});}})[_0x3c7b82('0x151d')](function(_0xf45212){const _0x4ada02=_0x3c7b82;_0x2f0368[_0x4ada02('0x255')]({'title':_0xf45212[_0x4ada02('0xff9')]?_0x4ada02('0x574')+_0xf45212[_0x4ada02('0xff9')]+_0x4ada02('0xb0b')+_0xf45212[_0x4ada02('0x212f')]:_0x4ada02('0xb71'),'msg':_0xf45212[_0x4ada02('0x4e8')]?JSON[_0x4ada02('0x3e')](_0xf45212['data']):_0xf45212['toString']()});});function _0x3231e4(){const _0x3e6141=_0x3c7b82;_0x3f6748[_0x3e6141('0x120f')]=[],_0x1f7ede[_0x3e6141('0x19dc')][_0x3e6141('0xb5e')](_0x3f6748[_0x3e6141('0x19dc')])['$promise'][_0x3e6141('0x11bf')](function(_0x522df7){const _0x274e14=_0x3e6141;_0x3f6748[_0x274e14('0xc6e')][_0x274e14('0x880')](_0x522df7[_0x274e14('0x2866')]()),_0x2f0368[_0x274e14('0x2693')]({'title':_0x274e14('0xd4c'),'msg':_0x3f6748[_0x274e14('0x19dc')][_0x274e14('0x1909')]?_0x3f6748[_0x274e14('0x19dc')]['name']+_0x274e14('0x7fb'):''}),_0x30381d(_0x522df7);})['catch'](function(_0x4943f0){const _0x5ccdff=_0x3e6141;if(_0x4943f0[_0x5ccdff('0x4e8')]&&_0x4943f0[_0x5ccdff('0x4e8')][_0x5ccdff('0x120f')]&&_0x4943f0[_0x5ccdff('0x4e8')][_0x5ccdff('0x120f')][_0x5ccdff('0x1e22')]){_0x3f6748['errors']=_0x4943f0[_0x5ccdff('0x4e8')][_0x5ccdff('0x120f')]||[{'message':_0x4943f0[_0x5ccdff('0xaab')](),'type':'api.faxAccount.save'}];for(let _0x3487db=0x0;_0x3487db<_0x4943f0[_0x5ccdff('0x4e8')]['errors']['length'];_0x3487db+=0x1){_0x2f0368[_0x5ccdff('0x255')]({'title':_0x4943f0['data']['errors'][_0x3487db]['type'],'msg':_0x4943f0[_0x5ccdff('0x4e8')]['errors'][_0x3487db][_0x5ccdff('0x1b86')]});}}else _0x2f0368[_0x5ccdff('0x255')]({'title':_0x4943f0[_0x5ccdff('0xff9')]?_0x5ccdff('0x574')+_0x4943f0['status']+'\x20-\x20'+_0x4943f0[_0x5ccdff('0x212f')]:_0x5ccdff('0x1b9c'),'msg':_0x4943f0[_0x5ccdff('0x4e8')]?JSON['stringify'](_0x4943f0[_0x5ccdff('0x4e8')][_0x5ccdff('0x1b86')]):_0x4943f0[_0x5ccdff('0xaab')]()});});}function _0x470dd0(){const _0x505787=_0x3c7b82;_0x3f6748[_0x505787('0x120f')]=[],_0x1f7ede[_0x505787('0x19dc')][_0x505787('0x1d86')](_0x3f6748['faxAccount'])['$promise'][_0x505787('0x11bf')](function(_0x4922dc){const _0x81ea59=_0x505787,_0xa67021=_0x36f548()[_0x81ea59('0x1ad4')](_0x3f6748['faxAccounts'],{'id':_0x4922dc['id']});_0xa67021&&_0x36f548()['merge'](_0xa67021,_0x36f548()[_0x81ea59('0x258')](_0x4922dc[_0x81ea59('0x2866')](),_0x36f548()[_0x81ea59('0xe22')](_0xa67021))),_0x2f0368[_0x81ea59('0x2693')]({'title':_0x81ea59('0x11a8'),'msg':_0x3f6748[_0x81ea59('0x19dc')][_0x81ea59('0x1909')]?_0x3f6748[_0x81ea59('0x19dc')][_0x81ea59('0x1909')]+'\x20has\x20been\x20saved!':''}),_0x30381d(_0x4922dc);})[_0x505787('0x151d')](function(_0x4ebae6){const _0x23d9bf=_0x505787;if(_0x4ebae6[_0x23d9bf('0x4e8')]&&_0x4ebae6['data'][_0x23d9bf('0x120f')]&&_0x4ebae6[_0x23d9bf('0x4e8')][_0x23d9bf('0x120f')][_0x23d9bf('0x1e22')]){_0x3f6748['errors']=_0x4ebae6[_0x23d9bf('0x4e8')][_0x23d9bf('0x120f')]||[{'message':_0x4ebae6['toString'](),'type':_0x23d9bf('0x1425')}];for(let _0x3a079d=0x0;_0x3a079d<_0x4ebae6[_0x23d9bf('0x4e8')]['errors'][_0x23d9bf('0x1e22')];_0x3a079d++){_0x2f0368[_0x23d9bf('0x255')]({'title':_0x4ebae6[_0x23d9bf('0x4e8')][_0x23d9bf('0x120f')][_0x3a079d][_0x23d9bf('0x19fd')],'msg':_0x4ebae6[_0x23d9bf('0x4e8')]['errors'][_0x3a079d]['message']});}}else _0x2f0368[_0x23d9bf('0x255')]({'title':_0x4ebae6[_0x23d9bf('0xff9')]?_0x23d9bf('0x574')+_0x4ebae6[_0x23d9bf('0xff9')]+_0x23d9bf('0xb0b')+_0x4ebae6[_0x23d9bf('0x212f')]:_0x23d9bf('0x1425'),'msg':_0x4ebae6[_0x23d9bf('0x4e8')]?JSON[_0x23d9bf('0x3e')](_0x4ebae6[_0x23d9bf('0x4e8')][_0x23d9bf('0x1b86')]):_0x4ebae6[_0x23d9bf('0xaab')]()});});}function _0x3c0066(_0x1dc999){const _0x592c07=_0x3c7b82;_0x3f6748['errors']=[];const _0x207611=_0x970588['confirm']()[_0x592c07('0x134b')](_0x592c07('0x1fa9'))[_0x592c07('0x252a')](_0x592c07('0x169'))[_0x592c07('0xb2e')](_0x592c07('0x22c'))['ok'](_0x592c07('0x1167'))[_0x592c07('0x26c9')](_0x592c07('0x784'))[_0x592c07('0x1e25')](_0x1dc999);_0x970588[_0x592c07('0xb9')](_0x207611)[_0x592c07('0x11bf')](function(){const _0x398dfb=_0x592c07;_0x1f7ede[_0x398dfb('0x19dc')][_0x398dfb('0x2088')]({'id':_0x3f6748['faxAccount']['id']})[_0x398dfb('0x1549')][_0x398dfb('0x11bf')](function(){const _0x2b7f90=_0x398dfb;_0x36f548()['remove'](_0x3f6748[_0x2b7f90('0xc6e')],{'id':_0x3f6748[_0x2b7f90('0x19dc')]['id']}),_0x2f0368[_0x2b7f90('0x2693')]({'title':_0x2b7f90('0x613'),'msg':(_0x3f6748[_0x2b7f90('0x19dc')][_0x2b7f90('0x1909')]||_0x2b7f90('0x19dc'))+_0x2b7f90('0x433')}),_0x30381d(_0x3f6748[_0x2b7f90('0x19dc')]);})[_0x398dfb('0x151d')](function(_0x36a428){const _0x1f59a3=_0x398dfb;if(_0x36a428['data']&&_0x36a428['data'][_0x1f59a3('0x120f')]&&_0x36a428[_0x1f59a3('0x4e8')][_0x1f59a3('0x120f')][_0x1f59a3('0x1e22')]){_0x3f6748[_0x1f59a3('0x120f')]=_0x36a428[_0x1f59a3('0x4e8')][_0x1f59a3('0x120f')]||[{'message':_0x36a428['toString'](),'type':_0x1f59a3('0x2125')}];for(let _0xc55c9f=0x0;_0xc55c9f<_0x36a428['data']['errors'][_0x1f59a3('0x1e22')];_0xc55c9f++){_0x2f0368['error']({'title':_0x36a428[_0x1f59a3('0x4e8')][_0x1f59a3('0x120f')][_0xc55c9f][_0x1f59a3('0x19fd')],'msg':_0x36a428[_0x1f59a3('0x4e8')][_0x1f59a3('0x120f')][_0xc55c9f][_0x1f59a3('0x1b86')]});}}else _0x2f0368[_0x1f59a3('0x255')]({'title':_0x36a428['status']?_0x1f59a3('0x574')+_0x36a428[_0x1f59a3('0xff9')]+_0x1f59a3('0xb0b')+_0x36a428['statusText']:'api.faxAccount.delete','msg':_0x36a428[_0x1f59a3('0x4e8')]?JSON[_0x1f59a3('0x3e')](_0x36a428[_0x1f59a3('0x4e8')][_0x1f59a3('0x1b86')]):_0x36a428[_0x1f59a3('0x1b86')]||_0x36a428[_0x1f59a3('0xaab')]()});});},function(){});}function _0x2e0ee8(_0x282710){return _0x282710===null?undefined:new Date(_0x282710);}function _0x30381d(_0x305354){_0x970588['hide'](_0x305354);}}const _0x48e4ea=_0x2f4bc8,_0x16359c=_0x351988['p']+_0x21d0f5('0xbd8'),_0x1b83e3=_0x351988['p']+_0x21d0f5('0x12ac'),_0x191321=_0x351988['p']+_0x21d0f5('0x750'),_0x3bf0f4=_0x351988['p']+_0x21d0f5('0x1083'),_0x1bc29a=_0x351988['p']+_0x21d0f5('0x2734'),_0x40c420=_0x351988['p']+_0x21d0f5('0xfc7'),_0x4f5de4=_0x351988['p']+'src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/queue/dialog.html/dialog.html',_0x4fc62a=_0x351988['p']+'src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/system/dialog.html/dialog.html',_0x1b5450=_0x351988['p']+'src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/tag/dialog.html/dialog.html';_0x3e1eb6[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x12a5'),'$mdDialog',_0x21d0f5('0x1b30'),'toasty',_0x21d0f5('0x1150')];const _0x10add5={'agent':_0x16359c,'close':_0x1b83e3,'gotoif':_0x191321,'gotop':_0x3bf0f4,'interval':_0x1bc29a,'noop':_0x40c420,'queue':_0x4f5de4,'system':_0x4fc62a,'tag':_0x1b5450};function _0x3e1eb6(_0x1f2503,_0x27e31f,_0x2efa39,_0x22535e,_0x51dd99){const _0x5d7063=_0x21d0f5,_0x25e775=this;_0x25e775[_0x5d7063('0x32a')]=_0x51dd99[_0x5d7063('0x2428')](),_0x25e775[_0x5d7063('0x19dc')]={},_0x25e775[_0x5d7063('0x8c7')]={'count':0x0,'rows':[]},_0x25e775[_0x5d7063('0x3c9')]=[],_0x25e775[_0x5d7063('0xb25')],_0x25e775[_0x5d7063('0x1f2a')]={'sort':_0x5d7063('0x2804')},_0x25e775[_0x5d7063('0x1812')]=_0x36f548()[_0x5d7063('0x4a')](_0x36f548()[_0x5d7063('0xd39')]([{'app':_0x5d7063('0x1979'),'appType':'interval','types':['always',_0x5d7063('0xa8d'),'list'],'fields':[],'isApp':![]},{'app':'noop','appType':_0x5d7063('0x2b8'),'type':_0x5d7063('0x2b8'),'icon':'icon-apps','interval':_0x5d7063('0x1830'),'required':!![],'isApp':!![],'fields':[{'title':'Value','name':_0x5d7063('0x10cc'),'type':_0x5d7063('0x25ed'),'param':0x0}]},{'app':_0x5d7063('0x196d'),'appType':_0x5d7063('0x196d'),'type':_0x5d7063('0x196d'),'icon':_0x5d7063('0x206d'),'interval':'*,*,*,*','required':!![],'isApp':!![],'extraApi':[{'name':_0x5d7063('0x1700'),'field':{'name':_0x5d7063('0xb0'),'key':_0x5d7063('0x1909')},'route':_0x5d7063('0xb0'),'filters':{'fields':'id,name','sort':'name','nolimit':!![]},'permissions':{'section':0x3f4}}],'fields':[{'title':_0x5d7063('0x1ae1'),'name':_0x5d7063('0x1b9f'),'type':'text','required':!![],'param':0x0},{'title':_0x5d7063('0xb76'),'name':_0x5d7063('0xb0'),'type':_0x5d7063('0x108f'),'values':_0x5d7063('0x1700'),'value':'variable.name','option':_0x5d7063('0x1509'),'defaultValues':[{'value':'\x27\x27','option':'None'}],'defaultValue':'\x27\x27','param':0x1}]},{'app':_0x5d7063('0x110d'),'appType':'gotop','type':_0x5d7063('0x2190'),'icon':_0x5d7063('0x206d'),'interval':_0x5d7063('0x1830'),'isApp':!![],'fields':[{'title':_0x5d7063('0x1c98'),'name':_0x5d7063('0x2804'),'type':_0x5d7063('0x139e'),'required':!![],'min':0x0,'param':0x0}]},{'app':_0x5d7063('0x7cf'),'appType':_0x5d7063('0x7cf'),'type':_0x5d7063('0x7cf'),'icon':_0x5d7063('0x206d'),'interval':_0x5d7063('0x1830'),'isApp':!![],'fields':[{'title':_0x5d7063('0x1c99'),'name':_0x5d7063('0xccd'),'type':_0x5d7063('0x25ed'),'required':!![],'param':0x0},{'title':_0x5d7063('0x1deb'),'name':'truepriority','type':'number','min':0x1,'required':!![],'param':0x1},{'title':'falsepriority','name':_0x5d7063('0x7ed'),'type':'number','min':0x1,'required':!![],'param':0x2}]},{'app':'queue','appType':_0x5d7063('0x150b'),'foreignKey':_0x5d7063('0x13b4'),'type':_0x5d7063('0x150b'),'icon':_0x5d7063('0x206d'),'interval':_0x5d7063('0x1830'),'isApp':!![],'extraApi':[{'name':_0x5d7063('0x1de3'),'field':{'name':_0x5d7063('0x150b'),'key':_0x5d7063('0x1909')},'route':_0x5d7063('0x189d'),'filters':{'fields':_0x5d7063('0xde'),'sort':_0x5d7063('0x1909'),'nolimit':!![]},'permissions':{'section':0x385}}],'fields':[{'title':_0x5d7063('0x1c29'),'name':'queue','type':_0x5d7063('0x108f'),'values':_0x5d7063('0x1de3'),'value':_0x5d7063('0x19d4'),'option':_0x5d7063('0x19d4'),'defaultValue':0x12c,'required':!![],'param':0x0},{'title':'Timeout','name':'timeout','type':_0x5d7063('0x139e'),'max':0x20c49b,'min':0x0,'defaultValue':0x12c,'required':!![],'param':0x1}]},{'app':_0x5d7063('0x18c4'),'appType':_0x5d7063('0x18c4'),'type':_0x5d7063('0x18c4'),'foreignKey':'UserId','icon':_0x5d7063('0x206d'),'interval':_0x5d7063('0x1830'),'isApp':!![],'extraApi':[{'name':'agents','field':{'name':_0x5d7063('0x18c4'),'key':_0x5d7063('0x1909')},'route':_0x5d7063('0x21d9'),'filters':{'fields':'id,name','sort':'name','role':'agent','nolimit':!![]},'permissions':{'section':0xca}}],'fields':[{'title':_0x5d7063('0x701'),'name':_0x5d7063('0x18c4'),'type':_0x5d7063('0x108f'),'values':_0x5d7063('0x1401'),'value':'agent.name','option':'agent.name','required':!![],'param':0x0},{'title':_0x5d7063('0x65'),'name':_0x5d7063('0xfbe'),'type':'number','max':0x20c49b,'min':0x0,'required':!![],'defaultValue':0x1e,'param':0x1}]},{'app':_0x5d7063('0x2132'),'appType':_0x5d7063('0x2132'),'type':_0x5d7063('0x2132'),'icon':_0x5d7063('0x206d'),'interval':_0x5d7063('0x1830'),'isApp':!![],'fields':[{'title':'Disposition','name':'disposition','type':'text','required':!![],'param':0x0}]},{'app':_0x5d7063('0x1d73'),'appType':_0x5d7063('0x1d73'),'type':_0x5d7063('0x1d73'),'foreignKey':_0x5d7063('0x3a3'),'icon':_0x5d7063('0x206d'),'interval':_0x5d7063('0x1830'),'isApp':!![],'extraApi':[{'name':_0x5d7063('0x2763'),'field':{'name':'tag','key':'name'},'route':_0x5d7063('0x1d73'),'filters':{'fields':'id,name','sort':'name','nolimit':!![]},'permissions':{'section':0x3f0}}],'fields':[{'title':'Tag','name':'tag','type':_0x5d7063('0x108f'),'values':_0x5d7063('0x2763'),'value':_0x5d7063('0x6aa'),'option':'tag.name','required':!![],'param':0x0}]}],[_0x5d7063('0x18f5')]),{'isApp':![]}),_0x25e775[_0x5d7063('0x257d')]={'group':{'name':_0x5d7063('0x1525'),'pull':_0x5d7063('0x208b')},'animation':0x64,'sort':![]},_0x25e775['applications']={'group':{'name':'opt2','put':'opt1'},'animation':0x64,'onAdd':function(_0x226b1b){const _0x56a665=_0x5d7063;_0x2b8c67(_0x226b1b,_0x226b1b[_0x56a665('0x384')]);},'onSort':function(){_0x296cf7();}},_0x25e775[_0x5d7063('0x286f')]=_0x31ef60,_0x25e775['deleteConfirm']=_0x305a98,_0x25e775[_0x5d7063('0xcec')]=_0x144374,_0x25e775['editFaxAccountApp']=_0x2b8c67,_0x25e775[_0x5d7063('0x1452')]=_0xdb4280,_0x25e775[_0x5d7063('0x2548')]=_0x14d2cc,_0x25e775[_0x5d7063('0xfb6')]=_0x5a2b99,_0x25e775[_0x5d7063('0xf09')]=_0x296cf7,_0x25e775[_0x5d7063('0x431')]=_0x4d36af;function _0x31ef60(_0x54dbfe,_0x4a970f){const _0x458fc8=_0x5d7063;_0x25e775[_0x458fc8('0x19dc')]=_0x54dbfe,_0x25e775[_0x458fc8('0xb25')]=typeof _0x4a970f!==_0x458fc8('0x13e9')?_0x4a970f:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x25e775[_0x458fc8('0xb9b')]['disabled']=!_0x25e775[_0x458fc8('0xb25')][_0x458fc8('0x25db')]?!![]:![],_0x25e775[_0x458fc8('0x1f2a')]['id']=_0x54dbfe['id'],_0x25e775['query']['isApp']=!![],_0x25e775['query'][_0x458fc8('0x287')]=!![],_0x25e775[_0x458fc8('0xcec')](),_0x25e775['getIntervals']();}function _0x305a98(_0x24b42f,_0x668c97,_0x23900b){const _0x260a41=_0x5d7063,_0x460296=_0x27e31f[_0x260a41('0x132b')]()['title'](_0x260a41('0x93a'))[_0x260a41('0x1d03')](_0x260a41('0x2061')+_0x24b42f[_0x260a41('0x18f5')]+_0x260a41('0x1c78')+_0x260a41('0x1a'))[_0x260a41('0xb2e')](_0x260a41('0x177'))['targetEvent'](_0x23900b)['ok']('OK')[_0x260a41('0x26c9')](_0x260a41('0x772'));_0x27e31f[_0x260a41('0xb9')](_0x460296)['then'](function(){const _0x162638=_0x260a41;_0x25e775[_0x162638('0x8c7')][_0x162638('0x19b2')][_0x162638('0x1ae')](_0x668c97,0x1),_0x296cf7();},function(){const _0x3b240e=_0x260a41;console['log'](_0x3b240e('0x772'));});}function _0x2b8c67(_0x89dfed,_0x30cfa5){const _0x4f0408=_0x5d7063;if(_0x25e775[_0x4f0408('0x8c7')][_0x4f0408('0x19b2')][_0x4f0408('0x1e22')]){const _0x4f80b5=_0x25e775[_0x4f0408('0x8c7')][_0x4f0408('0x19b2')][_0x30cfa5]?_0x25e775[_0x4f0408('0x8c7')][_0x4f0408('0x19b2')][_0x30cfa5]:_0x25e775[_0x4f0408('0x8c7')][_0x4f0408('0x19b2')][0x0],_0x9bc7b2=(_0x4f80b5[_0x4f0408('0x27c0')]||_0x4f80b5[_0x4f0408('0x18f5')])[_0x4f0408('0x20d5')]();_0x27e31f[_0x4f0408('0xb9')]({'controller':_0x4f0408('0x19a4')+_0x9bc7b2+'DialogController','controllerAs':'vm','templateUrl':_0x10add5[_0x9bc7b2],'parent':angular['element'](_0x2efa39[_0x4f0408('0x1d2')]),'targetEvent':_0x89dfed,'clickOutsideToClose':!![],'locals':{'faxAccountApp':_0x4f80b5,'faxAccount':_0x25e775['faxAccount'],'crudPermissions':_0x25e775[_0x4f0408('0xb25')]}})[_0x4f0408('0x11bf')](function(_0x199599){const _0x90044a=_0x4f0408;_0x199599&&(_0x199599['id']?_0x25e775[_0x90044a('0x8c7')]['rows'][_0x30cfa5]=_0x199599:_0x25e775[_0x90044a('0x8c7')][_0x90044a('0x19b2')][_0x90044a('0x1ae')](_0x30cfa5,0x0,_0x199599),_0x296cf7());})[_0x4f0408('0x151d')](function(_0x378b04){const _0x42d274=_0x4f0408;_0x378b04&&_0x22535e[_0x42d274('0x255')]({'title':_0x378b04[_0x42d274('0xff9')]?_0x42d274('0x574')+_0x378b04[_0x42d274('0xff9')]+'\x20-\x20'+_0x378b04[_0x42d274('0x212f')]:_0x42d274('0x154c'),'msg':_0x378b04[_0x42d274('0x4e8')]?JSON['stringify'](_0x378b04[_0x42d274('0x4e8')]):_0x378b04[_0x42d274('0xaab')]()});});}}function _0xdb4280(_0x289442,_0x1d496d){const _0x3ce7fb=_0x5d7063;if(_0x25e775[_0x3ce7fb('0x8c7')][_0x3ce7fb('0x19b2')][_0x3ce7fb('0x1e22')]){const _0x3de54a=_0x25e775[_0x3ce7fb('0x8c7')][_0x3ce7fb('0x19b2')][_0x1d496d]?_0x25e775['faxAccountApps'][_0x3ce7fb('0x19b2')][_0x1d496d]:_0x25e775[_0x3ce7fb('0x8c7')][_0x3ce7fb('0x19b2')][0x0];_0x27e31f[_0x3ce7fb('0xb9')]({'controller':_0x3ce7fb('0x683'),'controllerAs':'vm','templateUrl':_0x1bc29a,'parent':angular[_0x3ce7fb('0x1e73')](_0x2efa39[_0x3ce7fb('0x1d2')]),'targetEvent':_0x289442,'clickOutsideToClose':!![],'locals':{'interval':{'interval':_0x3de54a[_0x3ce7fb('0x507')],'IntervalId':_0x3de54a['IntervalId'],'application':!![]},'intervals':[],'crudPermissions':_0x25e775[_0x3ce7fb('0xb25')]}})[_0x3ce7fb('0x11bf')](function(_0x18a848){const _0xc402c5=_0x3ce7fb;_0x18a848&&(_0x3de54a[_0xc402c5('0x507')]=_0x18a848['interval']||_0xc402c5('0x1830'),_0x3de54a[_0xc402c5('0x6b4')]=_0x18a848[_0xc402c5('0x6b4')]||null,_0x296cf7());});}}function _0x296cf7(){const _0x58b93a=_0x5d7063;let _0x59354a=0x1,_0x3ada91=[];for(let _0x198448=0x0;_0x198448<_0x25e775[_0x58b93a('0x8c7')][_0x58b93a('0x19b2')]['length'];_0x198448++){const _0x440683=_0x25e775[_0x58b93a('0x8c7')][_0x58b93a('0x19b2')][_0x198448],_0x2584d9=[],_0x2858c9=[];_0x440683[_0x58b93a('0xe82')]=_0x440683[_0x58b93a('0x507')]!==_0x58b93a('0x1830')?[_0x440683[_0x58b93a('0x507')]]:_0x440683['IntervalId']?_0x36f548()[_0x58b93a('0x2171')](_0x36f548()[_0x58b93a('0xdb4')](_0x25e775[_0x58b93a('0xe82')]['rows'],{'IntervalId':_0x440683[_0x58b93a('0x6b4')]}),_0x58b93a('0x507')):[],_0x440683[_0x58b93a('0x1c87')]=_0x25e775[_0x58b93a('0x19dc')][_0x58b93a('0x1c87')],_0x440683['exten']=_0x25e775[_0x58b93a('0x19dc')]['exten'],_0x440683['type']&&(_0x440683[_0x58b93a('0x19fd')]=_0x440683[_0x58b93a('0x19fd')]['toLowerCase']()),_0x440683['priority']=_0x2584d9['length']?_0x36f548()[_0x58b93a('0x1093')](_0x2584d9)[_0x58b93a('0x2804')]+0x1:_0x59354a,_0x59354a=(_0x2858c9[_0x58b93a('0x1e22')]?_0x36f548()[_0x58b93a('0x1093')](_0x2858c9)[_0x58b93a('0x2804')]:_0x440683[_0x58b93a('0x2804')])+0x1,_0x3ada91=_0x36f548()['concat'](_0x3ada91,_0x2584d9,[_0x440683],_0x2858c9);}_0x1f2503[_0x58b93a('0x19dc')][_0x58b93a('0x25ec')]({'id':_0x25e775[_0x58b93a('0x19dc')]['id']},_0x36f548()[_0x58b93a('0xd39')](_0x3ada91,_0x58b93a('0x2804')))[_0x58b93a('0x1549')]['then'](function(_0x40ed1f){const _0x4b5252=_0x58b93a;_0x25e775['faxAccountApps'][_0x4b5252('0x19b2')]=_0x40ed1f[_0x4b5252('0x19b2')];})[_0x58b93a('0x151d')](function(_0x3c0a53){const _0x232301=_0x58b93a;console[_0x232301('0x255')](_0x3c0a53);});}function _0x1fcea1(_0x76e4d7){const _0x202774=_0x5d7063;_0x25e775[_0x202774('0x8c7')]=_0x76e4d7||{'count':0x0,'rows':[]};}function _0x4d36af(){const _0x3de151=_0x5d7063;return _0x1f2503['interval'][_0x3de151('0xbaa')]({'fields':'id,interval,IntervalId'})[_0x3de151('0x1549')]['then'](function(_0x3022c6){_0x25e775['intervals']=_0x3022c6;})['catch'](function(_0x31f4e1){console['error'](_0x31f4e1);});}function _0x144374(){const _0x367ac0=_0x5d7063;_0x25e775[_0x367ac0('0x13f')]=_0x1f2503['faxAccount'][_0x367ac0('0xc99')](_0x25e775[_0x367ac0('0x1f2a')],_0x1fcea1)[_0x367ac0('0x1549')];}function _0x14d2cc(_0x525a12){const _0x2ab57e=_0x5d7063;_0x36f548()[_0x2ab57e('0x14a5')](_0x25e775[_0x2ab57e('0x8c7')][_0x2ab57e('0x19b2')],{'id':_0x525a12['id']}),_0x296cf7(),_0x22535e[_0x2ab57e('0x2693')]({'title':_0x2ab57e('0xb44'),'msg':_0x525a12[_0x2ab57e('0x18f5')]?_0x525a12[_0x2ab57e('0x18f5')]+_0x2ab57e('0x433'):''});}function _0x5a2b99(_0x422930){const _0x1646a1=_0x5d7063,_0x3e665c=_0x27e31f[_0x1646a1('0x132b')]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20applications?')['htmlContent'](_0x1646a1('0x2061')+_0x25e775[_0x1646a1('0x3c9')][_0x1646a1('0x1e22')]+_0x1646a1('0xac6')+_0x1646a1('0x1a'))['ariaLabel'](_0x1646a1('0x1aa4'))['targetEvent'](_0x422930)['ok']('OK')[_0x1646a1('0x26c9')]('CANCEL');_0x27e31f[_0x1646a1('0xb9')](_0x3e665c)[_0x1646a1('0x11bf')](function(){const _0x2fb2f1=_0x1646a1;_0x25e775['selectedFaxAccountApps'][_0x2fb2f1('0x1f88')](function(_0x3f2494){const _0x55142f=_0x2fb2f1;_0x36f548()[_0x55142f('0x14a5')](_0x25e775[_0x55142f('0x8c7')][_0x55142f('0x19b2')],{'id':_0x3f2494['id']});}),_0x25e775['selectedFaxAccountApps']=[],_0x296cf7();});}}const _0x1b722=_0x3e1eb6;_0x21bb05[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0x142d'),_0x21d0f5('0x12a5'),_0x21d0f5('0x19dc'),_0x21d0f5('0xc6e'),_0x21d0f5('0x25f9'),_0x21d0f5('0xb6b'),_0x21d0f5('0x1150'),_0x21d0f5('0xb25')];function _0x21bb05(_0x52d372,_0x4057f2,_0x1cfa9c,_0x162c41,_0x378f5f,_0x4422da,_0x42ae36,_0x59e325,_0x3717f6,_0x1dc42e){const _0x50d1d7=_0x21d0f5,_0x2d819b=this;_0x2d819b[_0x50d1d7('0x32a')]=_0x3717f6[_0x50d1d7('0x2428')](),_0x2d819b[_0x50d1d7('0x19dc')]=_0x378f5f,_0x2d819b['crudPermissions']=_0x1dc42e,_0x2d819b['realtime']=_0x42ae36,_0x2d819b[_0x50d1d7('0x22')]=[],_0x2d819b['allowedItems']=[],_0x2d819b[_0x50d1d7('0x26cc')]=[],_0x2d819b[_0x50d1d7('0x1c6f')]=[],_0x2d819b[_0x50d1d7('0x21ed')]=[],_0x2d819b[_0x50d1d7('0x1eda')]=![],_0x2d819b[_0x50d1d7('0x277c')]=_0x472c18,_0x2d819b['saveAgents']=_0x6c2fee,_0x2d819b[_0x50d1d7('0xc4e')]=_0x22ef3e,_0x2d819b['dualMultiselectOptions']={'readOnly':!_0x2d819b[_0x50d1d7('0xb25')][_0x50d1d7('0x25db')],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x50d1d7('0x1909'),'line1':'fullname','line2':['name',_0x50d1d7('0x1a04')],'line3':'','labelAll':_0x59e325[_0x50d1d7('0x10c2')](_0x50d1d7('0x250e')),'labelSelected':_0x59e325[_0x50d1d7('0x10c2')]('APP.SELECTED_AGENTS'),'transferCallback':function(){const _0x151d5a=_0x50d1d7,_0x9550d8=_0x36f548()[_0x151d5a('0x1a1b')](_0x2d819b[_0x151d5a('0x21ed')],_0x2d819b[_0x151d5a('0x26cc')],'id');_0x2d819b[_0x151d5a('0x1eda')]=_0x36f548()[_0x151d5a('0x1fc5')](_0x9550d8)?![]:!![];}};function _0x472c18(){const _0x3f3044=_0x50d1d7;return _0x3717f6[_0x3f3044('0x4ee')](_0x3f3044('0xf45'))?_0x2b5105()[_0x3f3044('0x151d')](function(_0x380bec){const _0x468309=_0x3f3044;_0x1cfa9c[_0x468309('0x255')]({'title':_0x380bec[_0x468309('0xff9')]?_0x468309('0x574')+_0x380bec[_0x468309('0xff9')]+_0x468309('0xb0b')+_0x380bec[_0x468309('0x212f')]:_0x468309('0x912'),'msg':_0x380bec[_0x468309('0xff9')]?JSON[_0x468309('0x3e')](_0x380bec[_0x468309('0x4e8')]):_0x380bec[_0x468309('0xaab')]()});}):_0x162b61()[_0x3f3044('0x11bf')](function(_0x406cef){const _0x4ae6b5=_0x3f3044;return _0x2d819b[_0x4ae6b5('0xe6')]=_0x406cef,_0x2b5105();})['catch'](function(_0x2fddc3){const _0x4de170=_0x3f3044;_0x1cfa9c[_0x4de170('0x255')]({'title':_0x2fddc3[_0x4de170('0xff9')]?_0x4de170('0x574')+_0x2fddc3[_0x4de170('0xff9')]+_0x4de170('0xb0b')+_0x2fddc3[_0x4de170('0x212f')]:'SYSTEM:GET_AGENTS','msg':_0x2fddc3[_0x4de170('0xff9')]?JSON['stringify'](_0x2fddc3['data']):_0x2fddc3[_0x4de170('0xaab')]()});});}function _0x162b61(){return _0x4057f2(function(_0x539608,_0x589d5d){const _0x5ddafd=a0_0xaf0c;_0x162c41['userProfileSection'][_0x5ddafd('0xbaa')]({'userProfileId':_0x2d819b[_0x5ddafd('0x32a')][_0x5ddafd('0x781')],'name':_0x5ddafd('0x4b1')})[_0x5ddafd('0x1549')][_0x5ddafd('0x11bf')](function(_0x3fa75b){const _0x44cabb=_0x5ddafd,_0xbaf4c6=_0x3fa75b&&_0x3fa75b[_0x44cabb('0x19b2')]?_0x3fa75b[_0x44cabb('0x19b2')][0x0]:null;_0x539608(_0xbaf4c6);})['catch'](function(_0x46f62f){_0x589d5d(_0x46f62f);});});}function _0x2b5105(){return _0x4057f2(function(_0x546cce,_0x410012){const _0x496596=a0_0xaf0c;return _0x2fe4e2()['then'](function(_0x425012){const _0x2dc41e=a0_0xaf0c;return _0x2d819b['items']=_0x425012['rows']?_0x425012[_0x2dc41e('0x19b2')]:[],_0x3717f6[_0x2dc41e('0x4ee')](_0x2dc41e('0xf45'))?_0x425012:_0x2d819b[_0x2dc41e('0xe6')]?_0x2d819b[_0x2dc41e('0xe6')][_0x2dc41e('0xf11')]?_0x425012:_0x52af98():null;})[_0x496596('0x11bf')](function(_0x423b39){const _0x380564=_0x496596,_0x25264a=_0x423b39&&_0x423b39[_0x380564('0x19b2')]?_0x423b39[_0x380564('0x19b2')]:[];return _0x2d819b[_0x380564('0x63')]=_0x36f548()[_0x380564('0x2171')](_0x25264a,function(_0x2b099b){const _0x1da24f=_0x380564;return _0x36f548()['find'](_0x2d819b[_0x1da24f('0x22')],{'id':_0x3717f6[_0x1da24f('0x4ee')]('admin')||_0x2d819b[_0x1da24f('0xe6')]['autoAssociation']?_0x2b099b['id']:_0x2b099b[_0x1da24f('0x15a5')]});}),_0x2d819b[_0x380564('0x1c6f')]=angular[_0x380564('0x6fb')](_0x2d819b[_0x380564('0x63')]),_0x2d819b[_0x380564('0x22')][_0x380564('0x1f88')](function(_0x341fec){const _0x40dabc=_0x380564,_0x356708=_0x36f548()[_0x40dabc('0x1ad4')](_0x2d819b[_0x40dabc('0x63')],{'id':_0x341fec['id']});_0x3717f6[_0x40dabc('0x4ee')](_0x40dabc('0xf45'))?_0x341fec[_0x40dabc('0xde9')]=!![]:_0x341fec[_0x40dabc('0xde9')]=typeof _0x356708!=='undefined'?!![]:![];}),_0x2897ab();})[_0x496596('0x11bf')](function(_0x114a5c){const _0x10a404=_0x496596,_0x48d17a=_0x114a5c&&_0x114a5c[_0x10a404('0x19b2')]?_0x114a5c['rows']:[];_0x2d819b[_0x10a404('0x26cc')]=_0x36f548()['map'](_0x48d17a,function(_0x128cd7){const _0x3570f5=_0x10a404,_0x109ed0=_0x36f548()[_0x3570f5('0x1ad4')](_0x2d819b['items'],{'id':_0x128cd7['id']});return _0x109ed0[_0x3570f5('0xf47')]=_0x128cd7['UserFaxAccount']?'penalty\x20'+_0x128cd7[_0x3570f5('0x704')]['penalty']:'',_0x109ed0['internal']=typeof _0x128cd7[_0x3570f5('0x1a04')]!==_0x3570f5('0x13e9')?'<'+_0x128cd7[_0x3570f5('0x1a04')]+'>':'',_0x109ed0;}),_0x2d819b[_0x10a404('0x21ed')]=angular[_0x10a404('0x6fb')](_0x2d819b['selectedItems']),_0x2d819b[_0x10a404('0xec5')][_0x10a404('0x26cc')]=_0x2d819b[_0x10a404('0x26cc')],_0x2d819b[_0x10a404('0xec5')][_0x10a404('0x22')]=_0x36f548()[_0x10a404('0x2753')](_0x2d819b[_0x10a404('0x63')],_0x2d819b['dualMultiselectOptions'][_0x10a404('0x26cc')],'id'),_0x546cce();})[_0x496596('0x151d')](function(_0x120628){_0x410012(_0x120628);});});}function _0x52af98(){return _0x4057f2(function(_0x5afed3,_0x218939){const _0x132a20=a0_0xaf0c;return _0x162c41[_0x132a20('0x26d1')][_0x132a20('0xbaa')]({'sectionId':_0x2d819b[_0x132a20('0xe6')]['id'],'nolimit':!![]})[_0x132a20('0x1549')][_0x132a20('0x11bf')](function(_0x1cf2b8){_0x5afed3(_0x1cf2b8);})[_0x132a20('0x151d')](function(_0x242c0e){_0x218939(_0x242c0e);});});}function _0x2897ab(){return _0x4057f2(function(_0x3a2ffa,_0x3bc7c3){const _0x56a0fd=a0_0xaf0c;return _0x162c41[_0x56a0fd('0x19dc')][_0x56a0fd('0x2783')]({'id':_0x2d819b['faxAccount']['id'],'fields':_0x56a0fd('0x13d3'),'nolimit':!![],'role':_0x56a0fd('0x18c4')})[_0x56a0fd('0x1549')][_0x56a0fd('0x11bf')](function(_0x359a87){_0x3a2ffa(_0x359a87);})[_0x56a0fd('0x151d')](function(_0x132e77){_0x3bc7c3(_0x132e77);});});}function _0x2fe4e2(){return _0x4057f2(function(_0x2ea68b,_0x39b005){const _0x2d9b58=a0_0xaf0c;return _0x162c41[_0x2d9b58('0x21d9')]['get']({'fields':_0x2d9b58('0x13d3'),'nolimit':!![],'role':_0x2d9b58('0x18c4')})[_0x2d9b58('0x1549')][_0x2d9b58('0x11bf')](function(_0x3c4e91){_0x2ea68b(_0x3c4e91);})[_0x2d9b58('0x151d')](function(_0x20f31){_0x39b005(_0x20f31);});});}function _0x22a377(_0x1ae7ad){return _0x4057f2(function(_0x162757,_0x59d27c){const _0x3ab76f=a0_0xaf0c;_0x36f548()[_0x3ab76f('0x1fc5')](_0x1ae7ad)?_0x162757():_0x162c41[_0x3ab76f('0x19dc')][_0x3ab76f('0x110a')]({'id':_0x2d819b[_0x3ab76f('0x19dc')]['id'],'ids':_0x36f548()['map'](_0x1ae7ad,'id')})['$promise'][_0x3ab76f('0x11bf')](function(){_0x162757();})[_0x3ab76f('0x151d')](function(_0x431259){_0x59d27c(_0x431259);});});}function _0x3f4f95(_0x3608d3){return _0x4057f2(function(_0x323a1b,_0x4ce6ca){const _0x52d483=a0_0xaf0c;_0x36f548()['isEmpty'](_0x3608d3)?_0x323a1b():_0x162c41[_0x52d483('0x19dc')][_0x52d483('0x1ec0')]({'id':_0x2d819b[_0x52d483('0x19dc')]['id'],'ids':_0x36f548()['map'](_0x3608d3,'id')})[_0x52d483('0x1549')][_0x52d483('0x11bf')](function(){_0x323a1b();})[_0x52d483('0x151d')](function(_0x6990b3){_0x4ce6ca(_0x6990b3);});});}function _0x6c2fee(){const _0x550f8a=_0x50d1d7,_0x1fbef2=_0x36f548()[_0x550f8a('0x2753')](_0x2d819b[_0x550f8a('0x21ed')],_0x2d819b['selectedItems'],'id'),_0x1ef09a=_0x36f548()[_0x550f8a('0x2753')](_0x2d819b[_0x550f8a('0x26cc')],_0x2d819b[_0x550f8a('0x21ed')],'id');return _0x3f4f95(_0x1fbef2)[_0x550f8a('0x11bf')](function(){return _0x22a377(_0x1ef09a);})[_0x550f8a('0x11bf')](function(){const _0x9b795a=_0x550f8a;_0x2d819b[_0x9b795a('0x1eda')]=![],_0x2d819b[_0x9b795a('0x1c6f')]=angular[_0x9b795a('0x6fb')](_0x2d819b[_0x9b795a('0x63')]),_0x2d819b[_0x9b795a('0x21ed')]=angular[_0x9b795a('0x6fb')](_0x2d819b['selectedItems']),_0x1cfa9c[_0x9b795a('0x2693')]({'title':_0x9b795a('0x2243'),'msg':_0x9b795a('0x2273')});})['catch'](function(_0x24555c){const _0x15a340=_0x550f8a;_0x1cfa9c[_0x15a340('0x255')]({'title':_0x24555c['status']?_0x15a340('0x574')+_0x24555c[_0x15a340('0xff9')]+'\x20-\x20'+_0x24555c[_0x15a340('0x212f')]:_0x15a340('0x1b7f'),'msg':_0x24555c['status']?JSON[_0x15a340('0x3e')](_0x24555c[_0x15a340('0x4e8')]):_0x24555c[_0x15a340('0xaab')]()});});}function _0x22ef3e(){const _0x281555=_0x50d1d7;_0x52d372[_0x281555('0x237e')]();}}const _0x746362=_0x21bb05;_0x53dde4['$inject']=[_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0x142d'),_0x21d0f5('0x26f2'),'faxAccount',_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),_0x21d0f5('0xb25')];function _0x53dde4(_0x3efd09,_0x177fcb,_0x3a3632,_0x21c41e,_0x3533c1,_0x5e3f08,_0x4581c6,_0x1f4c95){const _0x5d459d=_0x21d0f5,_0x4f80df=this;_0x4f80df[_0x5d459d('0x32a')]=_0x4581c6['getCurrentUser'](),_0x4f80df[_0x5d459d('0x120f')]=[],_0x4f80df[_0x5d459d('0x134b')]=_0x5d459d('0x734')+(_0x21c41e['appType']||_0x21c41e[_0x5d459d('0x18f5')])[_0x5d459d('0xa6f')](),_0x4f80df[_0x5d459d('0x18c4')]=angular[_0x5d459d('0x6fb')](_0x21c41e),_0x4f80df[_0x5d459d('0xb25')]=_0x1f4c95,_0x4f80df['hasModulePermissions']={};if(_0x4f80df[_0x5d459d('0x18c4')][_0x5d459d('0x13fc')])switch(_0x4f80df[_0x5d459d('0x18c4')]['appType']?_0x4f80df[_0x5d459d('0x18c4')]['appType']['toLowerCase']():_0x4f80df['agent']['app']['toLowerCase']()){case _0x5d459d('0xa8d'):break;case _0x5d459d('0x185e'):{const _0x4e6908=_0x4f80df[_0x5d459d('0x18c4')]['appdata'][_0x5d459d('0xaf8')](',');_0x4f80df[_0x5d459d('0x18c4')][_0x5d459d('0xa0c')]=_0x4e6908[0x0],_0x4f80df[_0x5d459d('0x18c4')][_0x5d459d('0xeff')]=_0x4e6908[0x1],_0x4f80df[_0x5d459d('0x18c4')][_0x5d459d('0x1cbc')]=_0x4e6908[_0x5d459d('0x1b77')](0x2,_0x4e6908['length'])[_0x5d459d('0xa04')](',');}break;case'dialogflowv2':{const _0x30d16a=_0x4f80df[_0x5d459d('0x18c4')]['appdata']['split'](',');_0x4f80df[_0x5d459d('0x18c4')]['projectId']=_0x30d16a[0x0],_0x4f80df[_0x5d459d('0x18c4')][_0x5d459d('0x1f91')]=_0x30d16a[0x1],_0x4f80df['agent'][_0x5d459d('0x1c6c')]=_0x30d16a[0x2],_0x4f80df[_0x5d459d('0x18c4')][_0x5d459d('0xeff')]=_0x30d16a[0x3],_0x4f80df[_0x5d459d('0x18c4')][_0x5d459d('0x1cbc')]=_0x30d16a[_0x5d459d('0x1b77')](0x4,_0x30d16a['length'])[_0x5d459d('0xa04')](',');}break;case _0x5d459d('0x102c'):{const _0x14d059=_0x4f80df[_0x5d459d('0x18c4')][_0x5d459d('0x13fc')]['split'](',');_0x4f80df['agent'][_0x5d459d('0x1a82')]=_0x14d059[0x0],_0x4f80df[_0x5d459d('0x18c4')][_0x5d459d('0x1422')]=_0x14d059[0x1],_0x4f80df[_0x5d459d('0x18c4')][_0x5d459d('0x165a')]=_0x14d059[0x2],_0x4f80df[_0x5d459d('0x18c4')][_0x5d459d('0x1e8f')]=_0x14d059[0x3],_0x4f80df[_0x5d459d('0x18c4')][_0x5d459d('0x1cbc')]=_0x14d059[_0x5d459d('0x1b77')](0x4,_0x14d059['length'])[_0x5d459d('0xa04')](',');}break;case'autoreply':{const _0x583064=_0x4f80df[_0x5d459d('0x18c4')]['appdata'][_0x5d459d('0xaf8')](',');_0x4f80df['agent'][_0x5d459d('0x663')]=isNaN(_0x583064[0x0])?_0x583064[0x0]:parseInt(_0x583064[0x0],0xa),_0x4f80df[_0x5d459d('0x18c4')][_0x5d459d('0x25ed')]=_0x583064[_0x5d459d('0x1b77')](0x1,_0x583064[_0x5d459d('0x1e22')])[_0x5d459d('0xa04')](',');}break;case'message':_0x4f80df[_0x5d459d('0x18c4')][_0x5d459d('0x25ed')]=_0x4f80df[_0x5d459d('0x18c4')]['appdata'];break;case'set':_0x4f80df[_0x5d459d('0x18c4')][_0x5d459d('0x1909')]=_0x4f80df[_0x5d459d('0x18c4')][_0x5d459d('0x13fc')][_0x5d459d('0xaf8')]('=')[0x0],_0x4f80df['agent'][_0x5d459d('0x10cc')]=_0x4f80df[_0x5d459d('0x18c4')]['appdata'][_0x5d459d('0xaf8')]('=')[0x1];break;case _0x5d459d('0x1efd'):_0x4f80df[_0x5d459d('0x18c4')][_0x5d459d('0xef0')]=_0x4f80df['agent'][_0x5d459d('0x13fc')];break;default:{const _0x47a841=_0x4f80df[_0x5d459d('0x18c4')]['appdata'][_0x5d459d('0xaf8')](',');_0x4f80df[_0x5d459d('0x18c4')][_0x5d459d('0x18c4')]=_0x36f548()[_0x5d459d('0x1fc5')](_0x47a841[0x0])?_0x47a841[0x0]:isNaN(_0x47a841[0x0])?_0x47a841[0x0]:parseInt(_0x47a841[0x0],0xa),_0x4f80df['agent'][_0x5d459d('0xfbe')]=_0x36f548()[_0x5d459d('0x1fc5')](_0x47a841[0x1])?_0x47a841[0x1]:isNaN(_0x47a841[0x1])?_0x47a841[0x1]:parseInt(_0x47a841[0x1],0xa);}break;}else _0x4f80df['agent'][_0x5d459d('0xfbe')]=0x1e;_0x4f80df['agent']['type']&&_0x4f80df['agent'][_0x5d459d('0x19fd')][_0x5d459d('0x20d5')]()===_0x5d459d('0x25b6')&&_0x4f80df[_0x5d459d('0x18c4')]['appType']['toLowerCase']()==='outbounddial'&&(_0x4f80df['agent'][_0x5d459d('0x2137')]=_0x4f80df[_0x5d459d('0x18c4')][_0x5d459d('0x1546')]?_0x4f80df['agent'][_0x5d459d('0x1546')][_0x5d459d('0xaf8')]('$')[0x0]:undefined,_0x4f80df[_0x5d459d('0x18c4')]['callerId']=_0x4f80df[_0x5d459d('0x18c4')][_0x5d459d('0xc38')]?'CALLERID(all)='+_0x4f80df[_0x5d459d('0x18c4')][_0x5d459d('0xc38')]:undefined);_0x4f80df['saveFaxAccountApp']=_0x49e3e7,_0x4f80df['closeDialog']=_0x8be889,_0x4581c6['hasRole'](_0x5d459d('0xf45'))?_0x5e3f08['user'][_0x5d459d('0xbaa')]({'fields':_0x5d459d('0x721'),'sort':_0x5d459d('0x1909'),'role':_0x5d459d('0x18c4'),'nolimit':_0x5d459d('0x204c')})[_0x5d459d('0x1549')][_0x5d459d('0x11bf')](function(_0x5642d9){const _0x55b043=_0x5d459d;_0x4f80df[_0x55b043('0x1401')]=_0x5642d9[_0x55b043('0x19b2')]||[];})[_0x5d459d('0x151d')](function(_0x3d902a){const _0x15097d=_0x5d459d;_0x3a3632['error']({'title':_0x3d902a[_0x15097d('0xff9')]?'API:'+_0x3d902a[_0x15097d('0xff9')]+_0x15097d('0xb0b')+_0x3d902a[_0x15097d('0x212f')]:'SYSTEM:GET_AGENTS','msg':_0x3d902a['data']?JSON[_0x15097d('0x3e')](_0x3d902a[_0x15097d('0x4e8')]):_0x3d902a[_0x15097d('0xaab')]()});}):_0x5e3f08['user']['get']({'fields':_0x5d459d('0x721'),'sort':'name','role':_0x5d459d('0x18c4'),'nolimit':_0x5d459d('0x204c')})[_0x5d459d('0x1549')][_0x5d459d('0x11bf')](function(_0xc41668){const _0x515d6a=_0x5d459d;_0x4f80df[_0x515d6a('0x1401')]=_0xc41668[_0x515d6a('0x19b2')]||[];})[_0x5d459d('0x11bf')](function(){const _0x37f30a=_0x5d459d;return _0x5e3f08[_0x37f30a('0x1d63')][_0x37f30a('0xbaa')]({'userProfileId':_0x4f80df[_0x37f30a('0x32a')]['userProfileId'],'sectionId':0xca})[_0x37f30a('0x1549')];})[_0x5d459d('0x11bf')](function(_0x4c394b){const _0x3ccd0b=_0x5d459d,_0xc20ce7=_0x4c394b&&_0x4c394b[_0x3ccd0b('0x19b2')]?_0x4c394b[_0x3ccd0b('0x19b2')][0x0]:null;if(!_0xc20ce7){const _0x2404b7=[];let _0x52f1fe=null;_0x4f80df[_0x3ccd0b('0x18c4')]&&(_0x52f1fe=_0x36f548()[_0x3ccd0b('0x1ad4')](_0x4f80df[_0x3ccd0b('0x1401')],{'name':_0x4f80df['agent'][_0x3ccd0b('0x18c4')]}));for(let _0x2c0645=0x0;_0x2c0645<_0x4f80df['agents']['length'];_0x2c0645++){_0x52f1fe&&_0x4f80df[_0x3ccd0b('0x1401')][_0x2c0645]['id']===_0x52f1fe['id']&&(_0x4f80df[_0x3ccd0b('0x1401')][_0x2c0645][_0x3ccd0b('0x254a')]=![],_0x2404b7[_0x3ccd0b('0x105d')](_0x4f80df[_0x3ccd0b('0x1401')][_0x2c0645]));}_0x4f80df[_0x3ccd0b('0x1401')]=_0x2404b7;}else{if(!_0xc20ce7[_0x3ccd0b('0xf11')])return _0x5e3f08[_0x3ccd0b('0x26d1')][_0x3ccd0b('0xbaa')]({'sectionId':_0xc20ce7['id']})[_0x3ccd0b('0x1549')][_0x3ccd0b('0x11bf')](function(_0xf1156a){const _0xbcf71e=_0x3ccd0b,_0x3bdeeb=_0x36f548()[_0xbcf71e('0x2171')](_0xf1156a[_0xbcf71e('0x19b2')],function(_0x48f9d2){const _0x4d4211=_0xbcf71e;return _0x36f548()[_0x4d4211('0x1ad4')](_0x4f80df[_0x4d4211('0x1401')],{'id':_0x48f9d2['resourceId']});});let _0x2db3e6=null;_0x4f80df['agent']&&(_0x2db3e6=_0x36f548()[_0xbcf71e('0x1ad4')](_0x4f80df[_0xbcf71e('0x1401')],{'name':_0x4f80df[_0xbcf71e('0x18c4')][_0xbcf71e('0x18c4')]}));if(_0x2db3e6&&!_0x36f548()[_0xbcf71e('0x1cb3')](_0x3bdeeb,['id',_0x2db3e6['id']])){const _0x5a81cd=_0x36f548()[_0xbcf71e('0x1ad4')](_0x4f80df[_0xbcf71e('0x1401')],{'id':_0x2db3e6['id']});_0x5a81cd[_0xbcf71e('0x254a')]=![],_0x3bdeeb[_0xbcf71e('0x105d')](_0x5a81cd);}_0x4f80df[_0xbcf71e('0x1401')]=_0x3bdeeb;});}})[_0x5d459d('0x151d')](function(_0x5de76f){const _0x21225a=_0x5d459d;_0x3a3632[_0x21225a('0x255')]({'title':_0x5de76f[_0x21225a('0xff9')]?_0x21225a('0x574')+_0x5de76f['status']+'\x20-\x20'+_0x5de76f[_0x21225a('0x212f')]:_0x21225a('0x1939'),'msg':_0x5de76f[_0x21225a('0x4e8')]?JSON[_0x21225a('0x3e')](_0x5de76f[_0x21225a('0x4e8')]):_0x5de76f['toString']()});});function _0x49e3e7(){const _0x154040=_0x5d459d;_0x4f80df['errors']=[];const _0x2a6a8a=[];_0x4f80df['agent']['type']&&_0x4f80df[_0x154040('0x18c4')][_0x154040('0x19fd')][_0x154040('0x20d5')]()===_0x154040('0x25b6')&&_0x4f80df[_0x154040('0x18c4')][_0x154040('0x27c0')]===_0x154040('0x1bf6')&&(_0x4f80df[_0x154040('0x18c4')][_0x154040('0x1546')]=_0x3533c1['cutdigits']?(_0x4f80df[_0x154040('0x18c4')][_0x154040('0x2137')]||'')+_0x154040('0x2100')+_0x3533c1['cutdigits']+'}':(_0x4f80df[_0x154040('0x18c4')][_0x154040('0x2137')]||'')+_0x154040('0x1f76'),_0x3533c1[_0x154040('0x897')]!==_0x154040('0x3e6')?_0x4f80df[_0x154040('0x18c4')][_0x154040('0x249a')][_0x154040('0x203c')](_0x154040('0x22c9'))<0x0&&(_0x4f80df[_0x154040('0x18c4')][_0x154040('0x249a')]+=_0x154040('0x22c9')):_0x4f80df['agent'][_0x154040('0x249a')]=_0x4f80df[_0x154040('0x18c4')]['options'][_0x154040('0x814')](_0x154040('0x22c9'),''));const _0x558705=_0x36f548()['find'](_0x4f80df[_0x154040('0x1401')],{'name':_0x4f80df['agent'][_0x154040('0x18c4')]});_0x558705&&(_0x4f80df['agent'][_0x154040('0x2342')]=_0x558705['id']);if(_0x4f80df[_0x154040('0x18c4')][_0x154040('0x27c0')]&&_0x4f80df['agent'][_0x154040('0x27c0')]===_0x154040('0xa8d')){}else switch((_0x4f80df['agent'][_0x154040('0x18f5')]||_0x4f80df[_0x154040('0x18c4')]['appType'])[_0x154040('0x20d5')]()){case _0x154040('0xe50'):_0x4f80df['agent'][_0x154040('0x13fc')]=_0x4f80df[_0x154040('0x18c4')]['name']+'='+_0x4f80df[_0x154040('0x18c4')][_0x154040('0x10cc')];break;case'custom':break;default:_0x2a6a8a[0x0]=_0x4f80df[_0x154040('0x18c4')][_0x154040('0x18c4')],_0x2a6a8a[0x1]=_0x4f80df[_0x154040('0x18c4')][_0x154040('0xfbe')],_0x4f80df[_0x154040('0x18c4')][_0x154040('0x13fc')]=_0x2a6a8a[_0x154040('0xa04')](',');}_0x8be889(_0x4f80df[_0x154040('0x18c4')]);}function _0x8be889(_0x36b344){const _0x318e18=_0x5d459d;_0x3efd09[_0x318e18('0x237e')](_0x36b344);}}const _0x4c647e=_0x53dde4;_0x3b3722['$inject']=['$mdDialog','$q',_0x21d0f5('0x142d'),_0x21d0f5('0x26f2'),_0x21d0f5('0x19dc'),'api','Auth',_0x21d0f5('0xb25')];function _0x3b3722(_0x507387,_0x4da99d,_0x181dd4,_0x59e752,_0x298bdf,_0x2c0179,_0x58d8cf,_0x2f0a29){const _0x1db2b7=_0x21d0f5,_0x16f5a0=this;_0x16f5a0[_0x1db2b7('0x32a')]=_0x58d8cf[_0x1db2b7('0x2428')](),_0x16f5a0['errors']=[],_0x16f5a0[_0x1db2b7('0x134b')]=_0x1db2b7('0x734')+(_0x59e752[_0x1db2b7('0x27c0')]||_0x59e752[_0x1db2b7('0x18f5')])[_0x1db2b7('0xa6f')](),_0x16f5a0['close']=angular[_0x1db2b7('0x6fb')](_0x59e752),_0x16f5a0[_0x1db2b7('0xb25')]=_0x2f0a29,_0x16f5a0[_0x1db2b7('0x2c9')]={};if(_0x16f5a0['close'][_0x1db2b7('0x13fc')])switch(_0x16f5a0['close']['appType']?_0x16f5a0[_0x1db2b7('0x2132')][_0x1db2b7('0x27c0')][_0x1db2b7('0x20d5')]():_0x16f5a0[_0x1db2b7('0x2132')][_0x1db2b7('0x18f5')][_0x1db2b7('0x20d5')]()){case _0x1db2b7('0xa8d'):break;case _0x1db2b7('0x185e'):{const _0x27bc39=_0x16f5a0[_0x1db2b7('0x2132')][_0x1db2b7('0x13fc')][_0x1db2b7('0xaf8')](',');_0x16f5a0['close'][_0x1db2b7('0xa0c')]=_0x27bc39[0x0],_0x16f5a0[_0x1db2b7('0x2132')][_0x1db2b7('0xeff')]=_0x27bc39[0x1],_0x16f5a0[_0x1db2b7('0x2132')][_0x1db2b7('0x1cbc')]=_0x27bc39[_0x1db2b7('0x1b77')](0x2,_0x27bc39[_0x1db2b7('0x1e22')])['join'](',');}break;case _0x1db2b7('0x21a8'):{const _0x1a4dd6=_0x16f5a0[_0x1db2b7('0x2132')][_0x1db2b7('0x13fc')][_0x1db2b7('0xaf8')](',');_0x16f5a0[_0x1db2b7('0x2132')][_0x1db2b7('0x20e')]=_0x1a4dd6[0x0],_0x16f5a0[_0x1db2b7('0x2132')][_0x1db2b7('0x1f91')]=_0x1a4dd6[0x1],_0x16f5a0[_0x1db2b7('0x2132')][_0x1db2b7('0x1c6c')]=_0x1a4dd6[0x2],_0x16f5a0[_0x1db2b7('0x2132')]['language']=_0x1a4dd6[0x3],_0x16f5a0['close']['welcomemessage']=_0x1a4dd6[_0x1db2b7('0x1b77')](0x4,_0x1a4dd6[_0x1db2b7('0x1e22')])['join'](',');}break;case _0x1db2b7('0x102c'):{const _0x2239dc=_0x16f5a0['close'][_0x1db2b7('0x13fc')][_0x1db2b7('0xaf8')](',');_0x16f5a0[_0x1db2b7('0x2132')][_0x1db2b7('0x1a82')]=_0x2239dc[0x0],_0x16f5a0[_0x1db2b7('0x2132')]['secretaccesskey']=_0x2239dc[0x1],_0x16f5a0['close']['lexregion']=_0x2239dc[0x2],_0x16f5a0['close'][_0x1db2b7('0x1e8f')]=_0x2239dc[0x3],_0x16f5a0[_0x1db2b7('0x2132')][_0x1db2b7('0x1cbc')]=_0x2239dc['slice'](0x4,_0x2239dc[_0x1db2b7('0x1e22')])[_0x1db2b7('0xa04')](',');}break;case _0x1db2b7('0x187b'):{const _0x4b74b3=_0x16f5a0[_0x1db2b7('0x2132')]['appdata'][_0x1db2b7('0xaf8')](',');_0x16f5a0['close'][_0x1db2b7('0x663')]=isNaN(_0x4b74b3[0x0])?_0x4b74b3[0x0]:parseInt(_0x4b74b3[0x0],0xa),_0x16f5a0[_0x1db2b7('0x2132')][_0x1db2b7('0x25ed')]=_0x4b74b3[_0x1db2b7('0x1b77')](0x1,_0x4b74b3[_0x1db2b7('0x1e22')])[_0x1db2b7('0xa04')](',');}break;case'message':_0x16f5a0[_0x1db2b7('0x2132')][_0x1db2b7('0x25ed')]=_0x16f5a0[_0x1db2b7('0x2132')][_0x1db2b7('0x13fc')];break;case _0x1db2b7('0xe50'):_0x16f5a0[_0x1db2b7('0x2132')]['name']=_0x16f5a0[_0x1db2b7('0x2132')][_0x1db2b7('0x13fc')]['split']('=')[0x0],_0x16f5a0[_0x1db2b7('0x2132')][_0x1db2b7('0x10cc')]=_0x16f5a0['close'][_0x1db2b7('0x13fc')][_0x1db2b7('0xaf8')]('=')[0x1];break;case'agi':_0x16f5a0[_0x1db2b7('0x2132')][_0x1db2b7('0xef0')]=_0x16f5a0[_0x1db2b7('0x2132')][_0x1db2b7('0x13fc')];break;default:{const _0xc934b6=_0x16f5a0['close']['appdata'][_0x1db2b7('0xaf8')](',');_0x16f5a0['close'][_0x1db2b7('0x107a')]=_0x36f548()['isEmpty'](_0xc934b6[0x0])?_0xc934b6[0x0]:isNaN(_0xc934b6[0x0])?_0xc934b6[0x0]:parseInt(_0xc934b6[0x0],0xa);}break;}else{}_0x16f5a0[_0x1db2b7('0x2132')][_0x1db2b7('0x19fd')]&&_0x16f5a0[_0x1db2b7('0x2132')][_0x1db2b7('0x19fd')][_0x1db2b7('0x20d5')]()===_0x1db2b7('0x25b6')&&_0x16f5a0['close'][_0x1db2b7('0x27c0')]['toLowerCase']()===_0x1db2b7('0x1a64')&&(_0x16f5a0[_0x1db2b7('0x2132')][_0x1db2b7('0x2137')]=_0x16f5a0[_0x1db2b7('0x2132')][_0x1db2b7('0x1546')]?_0x16f5a0['close'][_0x1db2b7('0x1546')][_0x1db2b7('0xaf8')]('$')[0x0]:undefined,_0x16f5a0[_0x1db2b7('0x2132')][_0x1db2b7('0x7d0')]=_0x16f5a0['close'][_0x1db2b7('0xc38')]?'CALLERID(all)='+_0x16f5a0[_0x1db2b7('0x2132')][_0x1db2b7('0xc38')]:undefined);_0x16f5a0[_0x1db2b7('0x1fd3')]=_0x637fcf,_0x16f5a0['closeDialog']=_0x34c050;function _0x637fcf(){const _0x4636ca=_0x1db2b7;_0x16f5a0[_0x4636ca('0x120f')]=[];const _0x4a0e83=[];_0x16f5a0[_0x4636ca('0x2132')][_0x4636ca('0x19fd')]&&_0x16f5a0[_0x4636ca('0x2132')]['type'][_0x4636ca('0x20d5')]()===_0x4636ca('0x25b6')&&_0x16f5a0[_0x4636ca('0x2132')][_0x4636ca('0x27c0')]===_0x4636ca('0x1bf6')&&(_0x16f5a0['close']['phone']=_0x298bdf[_0x4636ca('0x388')]?(_0x16f5a0[_0x4636ca('0x2132')]['prefix']||'')+'${EXTEN:'+_0x298bdf['cutdigits']+'}':(_0x16f5a0[_0x4636ca('0x2132')][_0x4636ca('0x2137')]||'')+_0x4636ca('0x1f76'),_0x298bdf['recordingFormat']!==_0x4636ca('0x3e6')?_0x16f5a0[_0x4636ca('0x2132')]['options'][_0x4636ca('0x203c')]('U(xcally-mixmonitor-context)')<0x0&&(_0x16f5a0[_0x4636ca('0x2132')][_0x4636ca('0x249a')]+=_0x4636ca('0x22c9')):_0x16f5a0[_0x4636ca('0x2132')][_0x4636ca('0x249a')]=_0x16f5a0['close'][_0x4636ca('0x249a')][_0x4636ca('0x814')](_0x4636ca('0x22c9'),''));if(_0x16f5a0['close'][_0x4636ca('0x27c0')]&&_0x16f5a0['close'][_0x4636ca('0x27c0')]==='custom'){}else switch((_0x16f5a0['close'][_0x4636ca('0x18f5')]||_0x16f5a0[_0x4636ca('0x2132')][_0x4636ca('0x27c0')])[_0x4636ca('0x20d5')]()){case'set':_0x16f5a0[_0x4636ca('0x2132')][_0x4636ca('0x13fc')]=_0x16f5a0[_0x4636ca('0x2132')]['name']+'='+_0x16f5a0['close']['value'];break;case _0x4636ca('0xa8d'):break;default:_0x4a0e83[0x0]=_0x16f5a0[_0x4636ca('0x2132')][_0x4636ca('0x107a')],_0x16f5a0[_0x4636ca('0x2132')][_0x4636ca('0x13fc')]=_0x4a0e83[_0x4636ca('0xa04')](',');}_0x34c050(_0x16f5a0['close']);}function _0x34c050(_0x222c9){const _0x1f6bac=_0x1db2b7;_0x507387[_0x1f6bac('0x237e')](_0x222c9);}}const _0x203a7c=_0x3b3722;_0x2665ae[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0x142d'),_0x21d0f5('0x26f2'),_0x21d0f5('0x19dc'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),_0x21d0f5('0xb25')];function _0x2665ae(_0x43bdf8,_0x5e87c3,_0x2433d1,_0x5d1ea3,_0x155c66,_0x58acb7,_0x131b55,_0x240bad){const _0x822693=_0x21d0f5,_0x50d508=this;_0x50d508['currentUser']=_0x131b55['getCurrentUser'](),_0x50d508[_0x822693('0x120f')]=[],_0x50d508[_0x822693('0x134b')]=_0x822693('0x734')+(_0x5d1ea3['appType']||_0x5d1ea3['app'])[_0x822693('0xa6f')](),_0x50d508[_0x822693('0x7cf')]=angular[_0x822693('0x6fb')](_0x5d1ea3),_0x50d508['crudPermissions']=_0x240bad,_0x50d508[_0x822693('0x2c9')]={};if(_0x50d508[_0x822693('0x7cf')][_0x822693('0x13fc')])switch(_0x50d508[_0x822693('0x7cf')][_0x822693('0x27c0')]?_0x50d508[_0x822693('0x7cf')][_0x822693('0x27c0')][_0x822693('0x20d5')]():_0x50d508[_0x822693('0x7cf')][_0x822693('0x18f5')]['toLowerCase']()){case _0x822693('0xa8d'):break;case'dialogflow':{const _0x26209e=_0x50d508[_0x822693('0x7cf')][_0x822693('0x13fc')][_0x822693('0xaf8')](',');_0x50d508[_0x822693('0x7cf')][_0x822693('0xa0c')]=_0x26209e[0x0],_0x50d508['gotoif']['language']=_0x26209e[0x1],_0x50d508[_0x822693('0x7cf')][_0x822693('0x1cbc')]=_0x26209e[_0x822693('0x1b77')](0x2,_0x26209e['length'])[_0x822693('0xa04')](',');}break;case'dialogflowv2':{const _0x32ee40=_0x50d508[_0x822693('0x7cf')][_0x822693('0x13fc')]['split'](',');_0x50d508[_0x822693('0x7cf')][_0x822693('0x20e')]=_0x32ee40[0x0],_0x50d508[_0x822693('0x7cf')][_0x822693('0x1f91')]=_0x32ee40[0x1],_0x50d508['gotoif']['privateKey']=_0x32ee40[0x2],_0x50d508[_0x822693('0x7cf')][_0x822693('0xeff')]=_0x32ee40[0x3],_0x50d508['gotoif'][_0x822693('0x1cbc')]=_0x32ee40[_0x822693('0x1b77')](0x4,_0x32ee40[_0x822693('0x1e22')])[_0x822693('0xa04')](',');}break;case'amazonlex':{const _0x59f6a8=_0x50d508[_0x822693('0x7cf')]['appdata'][_0x822693('0xaf8')](',');_0x50d508['gotoif'][_0x822693('0x1a82')]=_0x59f6a8[0x0],_0x50d508[_0x822693('0x7cf')]['secretaccesskey']=_0x59f6a8[0x1],_0x50d508[_0x822693('0x7cf')][_0x822693('0x165a')]=_0x59f6a8[0x2],_0x50d508[_0x822693('0x7cf')][_0x822693('0x1e8f')]=_0x59f6a8[0x3],_0x50d508[_0x822693('0x7cf')][_0x822693('0x1cbc')]=_0x59f6a8[_0x822693('0x1b77')](0x4,_0x59f6a8['length'])[_0x822693('0xa04')](',');}break;case _0x822693('0x187b'):{const _0x1fa8bb=_0x50d508[_0x822693('0x7cf')][_0x822693('0x13fc')][_0x822693('0xaf8')](',');_0x50d508['gotoif']['times']=isNaN(_0x1fa8bb[0x0])?_0x1fa8bb[0x0]:parseInt(_0x1fa8bb[0x0],0xa),_0x50d508[_0x822693('0x7cf')][_0x822693('0x25ed')]=_0x1fa8bb[_0x822693('0x1b77')](0x1,_0x1fa8bb[_0x822693('0x1e22')])[_0x822693('0xa04')](',');}break;case _0x822693('0x1b86'):_0x50d508[_0x822693('0x7cf')][_0x822693('0x25ed')]=_0x50d508[_0x822693('0x7cf')]['appdata'];break;case _0x822693('0xe50'):_0x50d508[_0x822693('0x7cf')][_0x822693('0x1909')]=_0x50d508[_0x822693('0x7cf')][_0x822693('0x13fc')][_0x822693('0xaf8')]('=')[0x0],_0x50d508[_0x822693('0x7cf')][_0x822693('0x10cc')]=_0x50d508['gotoif'][_0x822693('0x13fc')][_0x822693('0xaf8')]('=')[0x1];break;case _0x822693('0x1efd'):_0x50d508[_0x822693('0x7cf')][_0x822693('0xef0')]=_0x50d508['gotoif'][_0x822693('0x13fc')];break;default:{const _0x1bd555=_0x50d508[_0x822693('0x7cf')][_0x822693('0x13fc')]['split'](',');_0x50d508[_0x822693('0x7cf')][_0x822693('0xccd')]=_0x36f548()['isEmpty'](_0x1bd555[0x0])?_0x1bd555[0x0]:isNaN(_0x1bd555[0x0])?_0x1bd555[0x0]:parseInt(_0x1bd555[0x0],0xa),_0x50d508['gotoif']['truepriority']=_0x36f548()[_0x822693('0x1fc5')](_0x1bd555[0x1])?_0x1bd555[0x1]:isNaN(_0x1bd555[0x1])?_0x1bd555[0x1]:parseInt(_0x1bd555[0x1],0xa),_0x50d508[_0x822693('0x7cf')][_0x822693('0x7ed')]=_0x36f548()[_0x822693('0x1fc5')](_0x1bd555[0x2])?_0x1bd555[0x2]:isNaN(_0x1bd555[0x2])?_0x1bd555[0x2]:parseInt(_0x1bd555[0x2],0xa);}break;}else{}_0x50d508[_0x822693('0x7cf')][_0x822693('0x19fd')]&&_0x50d508[_0x822693('0x7cf')][_0x822693('0x19fd')][_0x822693('0x20d5')]()==='outbound'&&_0x50d508['gotoif'][_0x822693('0x27c0')][_0x822693('0x20d5')]()===_0x822693('0x1a64')&&(_0x50d508[_0x822693('0x7cf')][_0x822693('0x2137')]=_0x50d508[_0x822693('0x7cf')]['phone']?_0x50d508[_0x822693('0x7cf')][_0x822693('0x1546')]['split']('$')[0x0]:undefined,_0x50d508[_0x822693('0x7cf')][_0x822693('0x7d0')]=_0x50d508[_0x822693('0x7cf')][_0x822693('0xc38')]?'CALLERID(all)='+_0x50d508['gotoif'][_0x822693('0xc38')]:undefined);_0x50d508[_0x822693('0x1fd3')]=_0x11e43f,_0x50d508['closeDialog']=_0x18125a;function _0x11e43f(){const _0x1c9ceb=_0x822693;_0x50d508['errors']=[];const _0xa7c268=[];_0x50d508[_0x1c9ceb('0x7cf')][_0x1c9ceb('0x19fd')]&&_0x50d508[_0x1c9ceb('0x7cf')]['type']['toLowerCase']()===_0x1c9ceb('0x25b6')&&_0x50d508[_0x1c9ceb('0x7cf')]['appType']==='outboundDial'&&(_0x50d508[_0x1c9ceb('0x7cf')][_0x1c9ceb('0x1546')]=_0x155c66['cutdigits']?(_0x50d508[_0x1c9ceb('0x7cf')][_0x1c9ceb('0x2137')]||'')+_0x1c9ceb('0x2100')+_0x155c66[_0x1c9ceb('0x388')]+'}':(_0x50d508[_0x1c9ceb('0x7cf')][_0x1c9ceb('0x2137')]||'')+_0x1c9ceb('0x1f76'),_0x155c66[_0x1c9ceb('0x897')]!=='none'?_0x50d508[_0x1c9ceb('0x7cf')]['options'][_0x1c9ceb('0x203c')](_0x1c9ceb('0x22c9'))<0x0&&(_0x50d508['gotoif'][_0x1c9ceb('0x249a')]+=_0x1c9ceb('0x22c9')):_0x50d508[_0x1c9ceb('0x7cf')]['options']=_0x50d508[_0x1c9ceb('0x7cf')][_0x1c9ceb('0x249a')][_0x1c9ceb('0x814')](_0x1c9ceb('0x22c9'),''));if(_0x50d508[_0x1c9ceb('0x7cf')][_0x1c9ceb('0x27c0')]&&_0x50d508[_0x1c9ceb('0x7cf')][_0x1c9ceb('0x27c0')]===_0x1c9ceb('0xa8d')){}else switch((_0x50d508['gotoif'][_0x1c9ceb('0x18f5')]||_0x50d508[_0x1c9ceb('0x7cf')][_0x1c9ceb('0x27c0')])['toLowerCase']()){case _0x1c9ceb('0xe50'):_0x50d508[_0x1c9ceb('0x7cf')]['appdata']=_0x50d508[_0x1c9ceb('0x7cf')]['name']+'='+_0x50d508[_0x1c9ceb('0x7cf')][_0x1c9ceb('0x10cc')];break;case _0x1c9ceb('0xa8d'):break;default:_0xa7c268[0x0]=_0x50d508[_0x1c9ceb('0x7cf')][_0x1c9ceb('0xccd')],_0xa7c268[0x1]=_0x50d508[_0x1c9ceb('0x7cf')]['truepriority'],_0xa7c268[0x2]=_0x50d508[_0x1c9ceb('0x7cf')]['falsepriority'],_0x50d508['gotoif'][_0x1c9ceb('0x13fc')]=_0xa7c268['join'](',');}_0x18125a(_0x50d508[_0x1c9ceb('0x7cf')]);}function _0x18125a(_0x214bd3){const _0x3fe1df=_0x822693;_0x43bdf8[_0x3fe1df('0x237e')](_0x214bd3);}}const _0x32a1ac=_0x2665ae;_0x1d4dd7[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0x142d'),_0x21d0f5('0x26f2'),_0x21d0f5('0x19dc'),_0x21d0f5('0x12a5'),'Auth','crudPermissions'];function _0x1d4dd7(_0x11593e,_0x28a5fa,_0x27f858,_0x46fa9d,_0x23f2f2,_0x1f667,_0x3cc772,_0x404c55){const _0x2b04ba=_0x21d0f5,_0x30c38c=this;_0x30c38c[_0x2b04ba('0x32a')]=_0x3cc772[_0x2b04ba('0x2428')](),_0x30c38c['errors']=[],_0x30c38c[_0x2b04ba('0x134b')]=_0x2b04ba('0x734')+(_0x46fa9d['appType']||_0x46fa9d[_0x2b04ba('0x18f5')])[_0x2b04ba('0xa6f')](),_0x30c38c[_0x2b04ba('0x110d')]=angular[_0x2b04ba('0x6fb')](_0x46fa9d),_0x30c38c[_0x2b04ba('0xb25')]=_0x404c55,_0x30c38c['hasModulePermissions']={};if(_0x30c38c[_0x2b04ba('0x110d')][_0x2b04ba('0x13fc')])switch(_0x30c38c[_0x2b04ba('0x110d')]['appType']?_0x30c38c[_0x2b04ba('0x110d')][_0x2b04ba('0x27c0')][_0x2b04ba('0x20d5')]():_0x30c38c[_0x2b04ba('0x110d')]['app'][_0x2b04ba('0x20d5')]()){case _0x2b04ba('0xa8d'):break;case _0x2b04ba('0x185e'):{const _0x55f58f=_0x30c38c['gotop']['appdata'][_0x2b04ba('0xaf8')](',');_0x30c38c[_0x2b04ba('0x110d')][_0x2b04ba('0xa0c')]=_0x55f58f[0x0],_0x30c38c[_0x2b04ba('0x110d')][_0x2b04ba('0xeff')]=_0x55f58f[0x1],_0x30c38c[_0x2b04ba('0x110d')]['welcomemessage']=_0x55f58f[_0x2b04ba('0x1b77')](0x2,_0x55f58f[_0x2b04ba('0x1e22')])[_0x2b04ba('0xa04')](',');}break;case _0x2b04ba('0x21a8'):{const _0x5d77b1=_0x30c38c[_0x2b04ba('0x110d')][_0x2b04ba('0x13fc')][_0x2b04ba('0xaf8')](',');_0x30c38c['gotop']['projectId']=_0x5d77b1[0x0],_0x30c38c['gotop'][_0x2b04ba('0x1f91')]=_0x5d77b1[0x1],_0x30c38c['gotop'][_0x2b04ba('0x1c6c')]=_0x5d77b1[0x2],_0x30c38c[_0x2b04ba('0x110d')]['language']=_0x5d77b1[0x3],_0x30c38c[_0x2b04ba('0x110d')][_0x2b04ba('0x1cbc')]=_0x5d77b1[_0x2b04ba('0x1b77')](0x4,_0x5d77b1[_0x2b04ba('0x1e22')])['join'](',');}break;case _0x2b04ba('0x102c'):{const _0x17d91c=_0x30c38c[_0x2b04ba('0x110d')][_0x2b04ba('0x13fc')][_0x2b04ba('0xaf8')](',');_0x30c38c['gotop'][_0x2b04ba('0x1a82')]=_0x17d91c[0x0],_0x30c38c[_0x2b04ba('0x110d')]['secretaccesskey']=_0x17d91c[0x1],_0x30c38c[_0x2b04ba('0x110d')]['lexregion']=_0x17d91c[0x2],_0x30c38c[_0x2b04ba('0x110d')]['botname']=_0x17d91c[0x3],_0x30c38c[_0x2b04ba('0x110d')][_0x2b04ba('0x1cbc')]=_0x17d91c[_0x2b04ba('0x1b77')](0x4,_0x17d91c['length'])['join'](',');}break;case _0x2b04ba('0x187b'):{const _0xd3389a=_0x30c38c[_0x2b04ba('0x110d')][_0x2b04ba('0x13fc')]['split'](',');_0x30c38c[_0x2b04ba('0x110d')]['times']=isNaN(_0xd3389a[0x0])?_0xd3389a[0x0]:parseInt(_0xd3389a[0x0],0xa),_0x30c38c[_0x2b04ba('0x110d')][_0x2b04ba('0x25ed')]=_0xd3389a[_0x2b04ba('0x1b77')](0x1,_0xd3389a['length'])[_0x2b04ba('0xa04')](',');}break;case'message':_0x30c38c['gotop']['text']=_0x30c38c[_0x2b04ba('0x110d')][_0x2b04ba('0x13fc')];break;case _0x2b04ba('0xe50'):_0x30c38c[_0x2b04ba('0x110d')][_0x2b04ba('0x1909')]=_0x30c38c[_0x2b04ba('0x110d')][_0x2b04ba('0x13fc')][_0x2b04ba('0xaf8')]('=')[0x0],_0x30c38c[_0x2b04ba('0x110d')][_0x2b04ba('0x10cc')]=_0x30c38c[_0x2b04ba('0x110d')][_0x2b04ba('0x13fc')][_0x2b04ba('0xaf8')]('=')[0x1];break;case _0x2b04ba('0x1efd'):_0x30c38c[_0x2b04ba('0x110d')][_0x2b04ba('0xef0')]=_0x30c38c[_0x2b04ba('0x110d')][_0x2b04ba('0x13fc')];break;default:{const _0x4d1588=_0x30c38c['gotop'][_0x2b04ba('0x13fc')][_0x2b04ba('0xaf8')](',');_0x30c38c[_0x2b04ba('0x110d')][_0x2b04ba('0x2804')]=_0x36f548()[_0x2b04ba('0x1fc5')](_0x4d1588[0x0])?_0x4d1588[0x0]:isNaN(_0x4d1588[0x0])?_0x4d1588[0x0]:parseInt(_0x4d1588[0x0],0xa);}break;}else{}_0x30c38c[_0x2b04ba('0x110d')][_0x2b04ba('0x19fd')]&&_0x30c38c['gotop'][_0x2b04ba('0x19fd')][_0x2b04ba('0x20d5')]()==='outbound'&&_0x30c38c[_0x2b04ba('0x110d')][_0x2b04ba('0x27c0')]['toLowerCase']()===_0x2b04ba('0x1a64')&&(_0x30c38c[_0x2b04ba('0x110d')]['prefix']=_0x30c38c[_0x2b04ba('0x110d')][_0x2b04ba('0x1546')]?_0x30c38c[_0x2b04ba('0x110d')][_0x2b04ba('0x1546')][_0x2b04ba('0xaf8')]('$')[0x0]:undefined,_0x30c38c[_0x2b04ba('0x110d')][_0x2b04ba('0x7d0')]=_0x30c38c[_0x2b04ba('0x110d')][_0x2b04ba('0xc38')]?_0x2b04ba('0x83a')+_0x30c38c[_0x2b04ba('0x110d')]['callerID']:undefined);_0x30c38c['saveFaxAccountApp']=_0x3cb5d1,_0x30c38c[_0x2b04ba('0xc4e')]=_0x13da50;function _0x3cb5d1(){const _0x5d838e=_0x2b04ba;_0x30c38c[_0x5d838e('0x120f')]=[];const _0x3abd56=[];_0x30c38c['gotop'][_0x5d838e('0x19fd')]&&_0x30c38c[_0x5d838e('0x110d')][_0x5d838e('0x19fd')][_0x5d838e('0x20d5')]()===_0x5d838e('0x25b6')&&_0x30c38c[_0x5d838e('0x110d')]['appType']===_0x5d838e('0x1bf6')&&(_0x30c38c[_0x5d838e('0x110d')][_0x5d838e('0x1546')]=_0x23f2f2[_0x5d838e('0x388')]?(_0x30c38c[_0x5d838e('0x110d')]['prefix']||'')+_0x5d838e('0x2100')+_0x23f2f2[_0x5d838e('0x388')]+'}':(_0x30c38c['gotop'][_0x5d838e('0x2137')]||'')+_0x5d838e('0x1f76'),_0x23f2f2[_0x5d838e('0x897')]!=='none'?_0x30c38c[_0x5d838e('0x110d')][_0x5d838e('0x249a')][_0x5d838e('0x203c')](_0x5d838e('0x22c9'))<0x0&&(_0x30c38c[_0x5d838e('0x110d')][_0x5d838e('0x249a')]+=_0x5d838e('0x22c9')):_0x30c38c[_0x5d838e('0x110d')][_0x5d838e('0x249a')]=_0x30c38c[_0x5d838e('0x110d')][_0x5d838e('0x249a')]['replace'](_0x5d838e('0x22c9'),''));if(_0x30c38c[_0x5d838e('0x110d')][_0x5d838e('0x27c0')]&&_0x30c38c[_0x5d838e('0x110d')][_0x5d838e('0x27c0')]==='custom'){}else switch((_0x30c38c[_0x5d838e('0x110d')]['app']||_0x30c38c[_0x5d838e('0x110d')][_0x5d838e('0x27c0')])[_0x5d838e('0x20d5')]()){case _0x5d838e('0xe50'):_0x30c38c[_0x5d838e('0x110d')][_0x5d838e('0x13fc')]=_0x30c38c[_0x5d838e('0x110d')][_0x5d838e('0x1909')]+'='+_0x30c38c[_0x5d838e('0x110d')][_0x5d838e('0x10cc')];break;case'custom':break;default:_0x3abd56[0x0]=_0x30c38c[_0x5d838e('0x110d')][_0x5d838e('0x2804')],_0x30c38c['gotop']['appdata']=_0x3abd56[_0x5d838e('0xa04')](',');}_0x13da50(_0x30c38c[_0x5d838e('0x110d')]);}function _0x13da50(_0x42d815){const _0x208fc3=_0x2b04ba;_0x11593e[_0x208fc3('0x237e')](_0x42d815);}}const _0x519e13=_0x1d4dd7;_0xf76530[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0xcbc'),_0x21d0f5('0x1ca2'),_0x21d0f5('0x1d2f'),_0x21d0f5('0x216f'),_0x21d0f5('0x507'),'intervals','toasty',_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),'crudPermissions'];function _0xf76530(_0x524976,_0x509a11,_0x56672d,_0x44fb50,_0xc475e9,_0x19651c,_0x10af93,_0x3fad59,_0x113e87,_0x24a341){const _0x22622a=_0x21d0f5,_0x3b4f39=this;_0x3b4f39['currentUser']=_0x113e87[_0x22622a('0x2428')](),_0x3b4f39[_0x22622a('0x120f')]=[],_0x3b4f39[_0x22622a('0x134b')]='TOOLS.EDIT_INTERVAL',_0x3b4f39[_0x22622a('0x507')]=angular[_0x22622a('0x6fb')](_0xc475e9),_0x3b4f39[_0x22622a('0xe82')]=_0x19651c,_0x3b4f39[_0x22622a('0x18cf')]=![],_0x3b4f39[_0x22622a('0x1660')]=[_0x22622a('0x27e5'),'custom',_0x22622a('0x257d')],_0x3b4f39[_0x22622a('0xb25')]=_0x24a341,_0x3b4f39[_0x22622a('0xd02')]=_0x44fb50[_0x22622a('0x25e1')](),_0x3b4f39[_0x22622a('0x0')]=_0x44fb50[_0x22622a('0xf7a')](),_0x3b4f39[_0x22622a('0x19c8')]=_0x44fb50[_0x22622a('0x311')](),_0x3b4f39['daysOfMonth']=_0x44fb50['getDaysOfMonth']();if(!_0x3b4f39[_0x22622a('0x507')])_0x3b4f39[_0x22622a('0x507')]={'interval':_0x22622a('0x1830')},_0x3b4f39['type']=_0x22622a('0x27e5'),_0x3b4f39['title']=_0x22622a('0x1aba'),_0x3b4f39[_0x22622a('0x18cf')]=!![];else{if(_0x3b4f39[_0x22622a('0x507')]['interval']!=='*,*,*,*'){_0x3b4f39[_0x22622a('0x19fd')]='custom';const _0x5eaa9a=_0x3b4f39[_0x22622a('0x507')]['interval']['split'](','),_0x19ac24=_0x5eaa9a[0x0],_0x417dae=_0x5eaa9a[0x1],_0x34e293=_0x5eaa9a[0x2],_0x3154a7=_0x5eaa9a[0x3];if(_0x19ac24!=='*'){const _0x47dfbc=_0x19ac24['split']('-')[0x0],_0x5f0f59=_0x19ac24[_0x22622a('0xaf8')]('-')[0x1];let _0x19721c;_0x19721c=new Date(),_0x19721c[_0x22622a('0x29e')](Number(_0x47dfbc['split'](':')[0x0])),_0x19721c[_0x22622a('0x7b6')](Number(_0x47dfbc[_0x22622a('0xaf8')](':')[0x1])),_0x3b4f39[_0x22622a('0x269b')]=_0x19721c,_0x19721c=new Date(),_0x19721c['setHours'](Number(_0x5f0f59[_0x22622a('0xaf8')](':')[0x0])),_0x19721c[_0x22622a('0x7b6')](Number(_0x5f0f59['split'](':')[0x1])),_0x3b4f39['timeRangeTo']=_0x19721c;}_0x417dae!=='*'&&(_0x3b4f39['dayOfWeekFrom']=_0x417dae[_0x22622a('0xaf8')]('-')[0x0],_0x3b4f39[_0x22622a('0x261')]=_0x417dae['split']('-')[0x1]),_0x34e293!=='*'&&(_0x3b4f39['monthDayFrom']=_0x34e293[_0x22622a('0xaf8')]('-')[0x0],_0x3b4f39[_0x22622a('0x1883')]=_0x34e293[_0x22622a('0xaf8')]('-')[0x1]),_0x3154a7!=='*'&&(_0x3b4f39[_0x22622a('0xad3')]=_0x3154a7[_0x22622a('0xaf8')]('-')[0x0],_0x3b4f39[_0x22622a('0x1155')]=_0x3154a7['split']('-')[0x1]);}else _0x3b4f39[_0x22622a('0x19fd')]='always';}_0x524976[_0x22622a('0x1ab3')]['id']&&!_0x3b4f39[_0x22622a('0x507')][_0x22622a('0x1cf1')]&&(_0x3b4f39[_0x22622a('0x507')][_0x22622a('0x6b4')]=_0x524976[_0x22622a('0x1ab3')]['id']);_0x3b4f39[_0x22622a('0x507')][_0x22622a('0x6b4')]&&_0x3b4f39['interval'][_0x22622a('0x1cf1')]&&(_0x3b4f39[_0x22622a('0x19fd')]='list');_0x3b4f39[_0x22622a('0x119a')]=_0x5534ac,_0x3b4f39[_0x22622a('0x26c6')]=_0x8c6784,_0x3b4f39[_0x22622a('0xc4e')]=_0x38aa62;_0x3b4f39['interval'][_0x22622a('0x1cf1')]&&(_0x113e87[_0x22622a('0x4ee')](_0x22622a('0xf45'))?_0x3fad59['interval'][_0x22622a('0xbaa')]({'fields':_0x22622a('0x1af5'),'IntervalId':_0x22622a('0xb5f'),'nolimit':!![]})[_0x22622a('0x1549')][_0x22622a('0x11bf')](function(_0x32342b){const _0x44629c=_0x22622a;_0x3b4f39[_0x44629c('0xe82')]=_0x32342b['rows']||[];})[_0x22622a('0x151d')](function(_0x44c61e){const _0x23e7b9=_0x22622a;_0x10af93[_0x23e7b9('0x255')]({'title':_0x44c61e['status']?_0x23e7b9('0x574')+_0x44c61e['status']+'\x20-\x20'+_0x44c61e[_0x23e7b9('0x212f')]:_0x23e7b9('0x611'),'msg':_0x44c61e['data']?JSON['stringify'](_0x44c61e[_0x23e7b9('0x4e8')]):_0x44c61e[_0x23e7b9('0xaab')]()});}):_0x3fad59[_0x22622a('0x507')][_0x22622a('0xbaa')]({'fields':_0x22622a('0x1af5'),'IntervalId':_0x22622a('0xb5f'),'nolimit':!![]})[_0x22622a('0x1549')][_0x22622a('0x11bf')](function(_0x377f87){const _0x146075=_0x22622a;_0x3b4f39[_0x146075('0xe82')]=_0x377f87[_0x146075('0x19b2')]||[];})[_0x22622a('0x11bf')](function(){const _0x211d5e=_0x22622a;return _0x3fad59[_0x211d5e('0x1d63')][_0x211d5e('0xbaa')]({'userProfileId':_0x3b4f39[_0x211d5e('0x32a')][_0x211d5e('0x781')],'sectionId':0x3ec})['$promise'];})['then'](function(_0x5331ae){const _0x1bdf69=_0x22622a,_0x47d396=_0x5331ae&&_0x5331ae[_0x1bdf69('0x19b2')]?_0x5331ae['rows'][0x0]:null;if(!_0x47d396)_0x3b4f39['intervals']=[];else{if(!_0x47d396[_0x1bdf69('0xf11')])return _0x3fad59[_0x1bdf69('0x26d1')][_0x1bdf69('0xbaa')]({'sectionId':_0x47d396['id']})[_0x1bdf69('0x1549')][_0x1bdf69('0x11bf')](function(_0x85a57e){const _0x2abd1c=_0x1bdf69,_0xa8e255=_0x85a57e&&_0x85a57e[_0x2abd1c('0x19b2')]?_0x85a57e[_0x2abd1c('0x19b2')]:[],_0x151b99=[];let _0x33a9dd=null;_0x3b4f39[_0x2abd1c('0x507')]&&(_0x33a9dd=_0x36f548()['find'](_0x3b4f39[_0x2abd1c('0xe82')],{'name':_0x3b4f39[_0x2abd1c('0x507')][_0x2abd1c('0x6b4')]})),_0x33a9dd&&!_0x36f548()[_0x2abd1c('0x1cb3')](_0xa8e255,[_0x2abd1c('0x15a5'),_0x33a9dd['id']])&&_0x3b4f39[_0x2abd1c('0xe82')][_0x2abd1c('0x1f88')](function(_0x33df44){const _0x4364a6=_0x2abd1c;_0x33df44['id']===_0x33a9dd['id']&&(_0x33df44[_0x4364a6('0x254a')]=![],_0x151b99[_0x4364a6('0x105d')](_0x33df44));}),_0x3b4f39[_0x2abd1c('0xe82')]=_0x151b99;});}})[_0x22622a('0x151d')](function(_0x12ac78){const _0x34fbed=_0x22622a;_0x10af93[_0x34fbed('0x255')]({'title':_0x12ac78[_0x34fbed('0xff9')]?'API:'+_0x12ac78[_0x34fbed('0xff9')]+_0x34fbed('0xb0b')+_0x12ac78[_0x34fbed('0x212f')]:'SYSTEM:GET_INTERVALS','msg':_0x12ac78[_0x34fbed('0x4e8')]?JSON[_0x34fbed('0x3e')](_0x12ac78['data']):_0x12ac78[_0x34fbed('0xaab')]()});}));function _0x2c2fd6(){const _0x287476=_0x22622a;switch(_0x3b4f39[_0x287476('0x19fd')]){case _0x287476('0x27e5'):case _0x287476('0x257d'):return _0x287476('0x1830');case _0x287476('0xa8d'):{const _0x5e8553=[];if(_0x3b4f39['timeRangeFrom']!=='*'&&_0x3b4f39[_0x287476('0x269b')]&&_0x3b4f39[_0x287476('0x19e5')]){const _0x344ebe=(_0x3b4f39['timeRangeFrom'][_0x287476('0x1e34')]()<0xa?'0':'')+_0x3b4f39['timeRangeFrom']['getHours']()+':'+((_0x3b4f39['timeRangeFrom'][_0x287476('0xdcc')]()<0xa?'0':'')+_0x3b4f39[_0x287476('0x269b')][_0x287476('0xdcc')]()),_0x51c023=(_0x3b4f39[_0x287476('0x19e5')][_0x287476('0x1e34')]()<0xa?'0':'')+_0x3b4f39[_0x287476('0x19e5')][_0x287476('0x1e34')]()+':'+((_0x3b4f39[_0x287476('0x19e5')][_0x287476('0xdcc')]()<0xa?'0':'')+_0x3b4f39[_0x287476('0x19e5')]['getMinutes']());_0x5e8553[_0x287476('0x105d')](_0x344ebe+'-'+_0x51c023);}else _0x5e8553[_0x287476('0x105d')]('*');return _0x3b4f39['dayOfWeekFrom']?_0x3b4f39[_0x287476('0x261')]?_0x5e8553['push'](_0x3b4f39[_0x287476('0x126e')]+'-'+_0x3b4f39[_0x287476('0x261')]):_0x5e8553[_0x287476('0x105d')](_0x3b4f39[_0x287476('0x126e')]):_0x5e8553[_0x287476('0x105d')]('*'),_0x3b4f39[_0x287476('0xecd')]?_0x3b4f39[_0x287476('0x1883')]?_0x5e8553['push'](_0x3b4f39[_0x287476('0xecd')]+'-'+_0x3b4f39['monthDayTo']):_0x5e8553[_0x287476('0x105d')](_0x3b4f39[_0x287476('0xecd')]):_0x5e8553['push']('*'),_0x3b4f39[_0x287476('0xad3')]?_0x3b4f39[_0x287476('0x1155')]?_0x5e8553[_0x287476('0x105d')](_0x3b4f39[_0x287476('0xad3')]+'-'+_0x3b4f39[_0x287476('0x1155')]):_0x5e8553[_0x287476('0x105d')](_0x3b4f39[_0x287476('0xad3')]):_0x5e8553[_0x287476('0x105d')]('*'),_0x5e8553[_0x287476('0xa04')]();}}}function _0x5534ac(){const _0x224606=_0x22622a;_0x3b4f39[_0x224606('0x120f')]=[],_0x3b4f39[_0x224606('0x507')][_0x224606('0x507')]=_0x2c2fd6(),_0x3fad59['interval']['save'](_0x3b4f39['interval'])[_0x224606('0x1549')][_0x224606('0x11bf')](function(_0x660e1){const _0x264aee=_0x224606;_0x3b4f39[_0x264aee('0xe82')][_0x264aee('0x105d')](_0x660e1),_0x10af93[_0x264aee('0x2693')]({'title':_0x264aee('0x747'),'msg':_0x3b4f39[_0x264aee('0x507')][_0x264aee('0x1909')]?_0x3b4f39[_0x264aee('0x507')][_0x264aee('0x1909')]+_0x264aee('0x7fb'):''}),_0x38aa62();})[_0x224606('0x151d')](function(_0x390a7a){const _0x13f9f7=_0x224606;console['error'](_0x390a7a),_0x3b4f39[_0x13f9f7('0x120f')]=_0x390a7a[_0x13f9f7('0x4e8')][_0x13f9f7('0x120f')]||[{'message':_0x390a7a['toString'](),'type':'api.interval.save'}];});}function _0x8c6784(){const _0x4f75fb=_0x22622a;_0x3b4f39[_0x4f75fb('0x120f')]=[],_0x3b4f39[_0x4f75fb('0x507')][_0x4f75fb('0x507')]=_0x2c2fd6(),_0x3b4f39[_0x4f75fb('0x507')]['application']?(_0x3b4f39[_0x4f75fb('0x19fd')]!==_0x4f75fb('0x257d')&&(_0x3b4f39[_0x4f75fb('0x507')][_0x4f75fb('0x6b4')]=null),_0x38aa62(_0x3b4f39[_0x4f75fb('0x507')])):_0x3fad59[_0x4f75fb('0x507')][_0x4f75fb('0x5ab')]({'id':_0x3b4f39[_0x4f75fb('0x507')]['id']},_0x3b4f39['interval'])[_0x4f75fb('0x1549')][_0x4f75fb('0x11bf')](function(_0xffb1fb){const _0x2a80a7=_0x4f75fb,_0x15ab82=_0x36f548()[_0x2a80a7('0x1ad4')](_0x3b4f39[_0x2a80a7('0xe82')],{'id':_0xffb1fb['id']});_0x15ab82&&_0x36f548()[_0x2a80a7('0x47b')](_0x15ab82,_0xffb1fb),_0x10af93[_0x2a80a7('0x2693')]({'title':_0x2a80a7('0x1177'),'msg':_0x2a80a7('0x904')}),_0x38aa62();})[_0x4f75fb('0x151d')](function(_0x26320c){const _0x1abf94=_0x4f75fb;console[_0x1abf94('0x255')](_0x26320c),_0x3b4f39[_0x1abf94('0x120f')]=_0x26320c[_0x1abf94('0x4e8')][_0x1abf94('0x120f')]||[{'message':_0x26320c[_0x1abf94('0xaab')](),'type':'api.interval.update'}];});}function _0x38aa62(_0x989633){const _0x5c0f6c=_0x22622a;_0x509a11[_0x5c0f6c('0x237e')](_0x989633);}}const _0x28b846=_0xf76530;_0x84d27f[_0x21d0f5('0x1e9a')]=['$mdDialog','$q',_0x21d0f5('0x142d'),_0x21d0f5('0x26f2'),'faxAccount',_0x21d0f5('0x12a5'),'Auth','crudPermissions'];function _0x84d27f(_0x2c6ea8,_0x1fe151,_0x5da2a7,_0x4fdd38,_0x1f6a08,_0x382e6f,_0x3e1570,_0x43b638){const _0x1f0c6d=_0x21d0f5,_0x21083d=this;_0x21083d[_0x1f0c6d('0x32a')]=_0x3e1570[_0x1f0c6d('0x2428')](),_0x21083d['errors']=[],_0x21083d[_0x1f0c6d('0x134b')]='FAX.EDIT_'+(_0x4fdd38[_0x1f0c6d('0x27c0')]||_0x4fdd38[_0x1f0c6d('0x18f5')])['toUpperCase'](),_0x21083d['noop']=angular[_0x1f0c6d('0x6fb')](_0x4fdd38),_0x21083d[_0x1f0c6d('0xb25')]=_0x43b638,_0x21083d[_0x1f0c6d('0x2c9')]={};if(_0x21083d[_0x1f0c6d('0x2b8')]['appdata'])switch(_0x21083d[_0x1f0c6d('0x2b8')][_0x1f0c6d('0x27c0')]?_0x21083d[_0x1f0c6d('0x2b8')]['appType']['toLowerCase']():_0x21083d['noop'][_0x1f0c6d('0x18f5')]['toLowerCase']()){case _0x1f0c6d('0xa8d'):break;case _0x1f0c6d('0x185e'):{const _0x39d8bd=_0x21083d['noop'][_0x1f0c6d('0x13fc')]['split'](',');_0x21083d[_0x1f0c6d('0x2b8')]['key']=_0x39d8bd[0x0],_0x21083d['noop'][_0x1f0c6d('0xeff')]=_0x39d8bd[0x1],_0x21083d[_0x1f0c6d('0x2b8')][_0x1f0c6d('0x1cbc')]=_0x39d8bd[_0x1f0c6d('0x1b77')](0x2,_0x39d8bd['length'])[_0x1f0c6d('0xa04')](',');}break;case _0x1f0c6d('0x21a8'):{const _0x5675a1=_0x21083d[_0x1f0c6d('0x2b8')]['appdata'][_0x1f0c6d('0xaf8')](',');_0x21083d[_0x1f0c6d('0x2b8')]['projectId']=_0x5675a1[0x0],_0x21083d[_0x1f0c6d('0x2b8')][_0x1f0c6d('0x1f91')]=_0x5675a1[0x1],_0x21083d[_0x1f0c6d('0x2b8')][_0x1f0c6d('0x1c6c')]=_0x5675a1[0x2],_0x21083d[_0x1f0c6d('0x2b8')][_0x1f0c6d('0xeff')]=_0x5675a1[0x3],_0x21083d[_0x1f0c6d('0x2b8')][_0x1f0c6d('0x1cbc')]=_0x5675a1[_0x1f0c6d('0x1b77')](0x4,_0x5675a1[_0x1f0c6d('0x1e22')])[_0x1f0c6d('0xa04')](',');}break;case _0x1f0c6d('0x102c'):{const _0x57255a=_0x21083d['noop'][_0x1f0c6d('0x13fc')][_0x1f0c6d('0xaf8')](',');_0x21083d[_0x1f0c6d('0x2b8')][_0x1f0c6d('0x1a82')]=_0x57255a[0x0],_0x21083d['noop'][_0x1f0c6d('0x1422')]=_0x57255a[0x1],_0x21083d[_0x1f0c6d('0x2b8')]['lexregion']=_0x57255a[0x2],_0x21083d[_0x1f0c6d('0x2b8')][_0x1f0c6d('0x1e8f')]=_0x57255a[0x3],_0x21083d[_0x1f0c6d('0x2b8')]['welcomemessage']=_0x57255a['slice'](0x4,_0x57255a[_0x1f0c6d('0x1e22')])[_0x1f0c6d('0xa04')](',');}break;case'autoreply':{const _0x11b815=_0x21083d[_0x1f0c6d('0x2b8')][_0x1f0c6d('0x13fc')][_0x1f0c6d('0xaf8')](',');_0x21083d[_0x1f0c6d('0x2b8')][_0x1f0c6d('0x663')]=isNaN(_0x11b815[0x0])?_0x11b815[0x0]:parseInt(_0x11b815[0x0],0xa),_0x21083d['noop']['text']=_0x11b815[_0x1f0c6d('0x1b77')](0x1,_0x11b815['length'])[_0x1f0c6d('0xa04')](',');}break;case'message':_0x21083d[_0x1f0c6d('0x2b8')][_0x1f0c6d('0x25ed')]=_0x21083d[_0x1f0c6d('0x2b8')][_0x1f0c6d('0x13fc')];break;case'set':_0x21083d[_0x1f0c6d('0x2b8')]['name']=_0x21083d['noop'][_0x1f0c6d('0x13fc')][_0x1f0c6d('0xaf8')]('=')[0x0],_0x21083d['noop'][_0x1f0c6d('0x10cc')]=_0x21083d[_0x1f0c6d('0x2b8')][_0x1f0c6d('0x13fc')]['split']('=')[0x1];break;case _0x1f0c6d('0x1efd'):_0x21083d['noop'][_0x1f0c6d('0xef0')]=_0x21083d['noop']['appdata'];break;default:{const _0x8b5090=_0x21083d[_0x1f0c6d('0x2b8')][_0x1f0c6d('0x13fc')][_0x1f0c6d('0xaf8')](',');_0x21083d[_0x1f0c6d('0x2b8')]['value']=_0x36f548()[_0x1f0c6d('0x1fc5')](_0x8b5090[0x0])?_0x8b5090[0x0]:isNaN(_0x8b5090[0x0])?_0x8b5090[0x0]:parseInt(_0x8b5090[0x0],0xa);}break;}else{}_0x21083d[_0x1f0c6d('0x2b8')][_0x1f0c6d('0x19fd')]&&_0x21083d[_0x1f0c6d('0x2b8')][_0x1f0c6d('0x19fd')][_0x1f0c6d('0x20d5')]()===_0x1f0c6d('0x25b6')&&_0x21083d[_0x1f0c6d('0x2b8')][_0x1f0c6d('0x27c0')][_0x1f0c6d('0x20d5')]()===_0x1f0c6d('0x1a64')&&(_0x21083d[_0x1f0c6d('0x2b8')][_0x1f0c6d('0x2137')]=_0x21083d[_0x1f0c6d('0x2b8')][_0x1f0c6d('0x1546')]?_0x21083d[_0x1f0c6d('0x2b8')]['phone'][_0x1f0c6d('0xaf8')]('$')[0x0]:undefined,_0x21083d[_0x1f0c6d('0x2b8')][_0x1f0c6d('0x7d0')]=_0x21083d['noop']['callerID']?_0x1f0c6d('0x83a')+_0x21083d[_0x1f0c6d('0x2b8')][_0x1f0c6d('0xc38')]:undefined);_0x21083d[_0x1f0c6d('0x1fd3')]=_0x4e9eb1,_0x21083d[_0x1f0c6d('0xc4e')]=_0x49f8d1;function _0x4e9eb1(){const _0x1e8a0d=_0x1f0c6d;_0x21083d[_0x1e8a0d('0x120f')]=[];const _0x20b6a9=[];_0x21083d[_0x1e8a0d('0x2b8')][_0x1e8a0d('0x19fd')]&&_0x21083d['noop'][_0x1e8a0d('0x19fd')][_0x1e8a0d('0x20d5')]()===_0x1e8a0d('0x25b6')&&_0x21083d[_0x1e8a0d('0x2b8')][_0x1e8a0d('0x27c0')]===_0x1e8a0d('0x1bf6')&&(_0x21083d[_0x1e8a0d('0x2b8')][_0x1e8a0d('0x1546')]=_0x1f6a08[_0x1e8a0d('0x388')]?(_0x21083d[_0x1e8a0d('0x2b8')][_0x1e8a0d('0x2137')]||'')+_0x1e8a0d('0x2100')+_0x1f6a08['cutdigits']+'}':(_0x21083d[_0x1e8a0d('0x2b8')][_0x1e8a0d('0x2137')]||'')+_0x1e8a0d('0x1f76'),_0x1f6a08[_0x1e8a0d('0x897')]!=='none'?_0x21083d[_0x1e8a0d('0x2b8')][_0x1e8a0d('0x249a')][_0x1e8a0d('0x203c')]('U(xcally-mixmonitor-context)')<0x0&&(_0x21083d['noop'][_0x1e8a0d('0x249a')]+=_0x1e8a0d('0x22c9')):_0x21083d['noop'][_0x1e8a0d('0x249a')]=_0x21083d['noop'][_0x1e8a0d('0x249a')][_0x1e8a0d('0x814')](_0x1e8a0d('0x22c9'),''));if(_0x21083d[_0x1e8a0d('0x2b8')][_0x1e8a0d('0x27c0')]&&_0x21083d[_0x1e8a0d('0x2b8')][_0x1e8a0d('0x27c0')]===_0x1e8a0d('0xa8d')){}else switch((_0x21083d[_0x1e8a0d('0x2b8')][_0x1e8a0d('0x18f5')]||_0x21083d['noop']['appType'])[_0x1e8a0d('0x20d5')]()){case _0x1e8a0d('0xe50'):_0x21083d[_0x1e8a0d('0x2b8')][_0x1e8a0d('0x13fc')]=_0x21083d[_0x1e8a0d('0x2b8')][_0x1e8a0d('0x1909')]+'='+_0x21083d[_0x1e8a0d('0x2b8')][_0x1e8a0d('0x10cc')];break;case _0x1e8a0d('0xa8d'):break;default:_0x20b6a9[0x0]=_0x21083d[_0x1e8a0d('0x2b8')]['value'],_0x21083d['noop'][_0x1e8a0d('0x13fc')]=_0x20b6a9[_0x1e8a0d('0xa04')](',');}_0x49f8d1(_0x21083d['noop']);}function _0x49f8d1(_0x4270ac){const _0x42e264=_0x1f0c6d;_0x2c6ea8[_0x42e264('0x237e')](_0x4270ac);}}const _0x84395e=_0x84d27f;_0x2e2aea[_0x21d0f5('0x1e9a')]=['$mdDialog','$q',_0x21d0f5('0x142d'),_0x21d0f5('0x26f2'),_0x21d0f5('0x19dc'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),_0x21d0f5('0xb25')];function _0x2e2aea(_0x509a54,_0x4dddd3,_0xa46329,_0x493e1a,_0x4c6fd0,_0xaf0b5e,_0x27716e,_0x23e0b1){const _0x4617c7=_0x21d0f5,_0x134801=this;_0x134801['currentUser']=_0x27716e[_0x4617c7('0x2428')](),_0x134801[_0x4617c7('0x120f')]=[],_0x134801[_0x4617c7('0x134b')]=_0x4617c7('0x734')+(_0x493e1a[_0x4617c7('0x27c0')]||_0x493e1a[_0x4617c7('0x18f5')])[_0x4617c7('0xa6f')](),_0x134801['queue']=angular['copy'](_0x493e1a),_0x134801['crudPermissions']=_0x23e0b1,_0x134801[_0x4617c7('0x2c9')]={};if(_0x134801[_0x4617c7('0x150b')][_0x4617c7('0x13fc')])switch(_0x134801[_0x4617c7('0x150b')]['appType']?_0x134801['queue'][_0x4617c7('0x27c0')][_0x4617c7('0x20d5')]():_0x134801[_0x4617c7('0x150b')][_0x4617c7('0x18f5')][_0x4617c7('0x20d5')]()){case _0x4617c7('0xa8d'):break;case _0x4617c7('0x185e'):{const _0x15a061=_0x134801['queue'][_0x4617c7('0x13fc')]['split'](',');_0x134801[_0x4617c7('0x150b')][_0x4617c7('0xa0c')]=_0x15a061[0x0],_0x134801[_0x4617c7('0x150b')]['language']=_0x15a061[0x1],_0x134801[_0x4617c7('0x150b')]['welcomemessage']=_0x15a061[_0x4617c7('0x1b77')](0x2,_0x15a061[_0x4617c7('0x1e22')])['join'](',');}break;case _0x4617c7('0x21a8'):{const _0x3bef5d=_0x134801[_0x4617c7('0x150b')][_0x4617c7('0x13fc')]['split'](',');_0x134801[_0x4617c7('0x150b')][_0x4617c7('0x20e')]=_0x3bef5d[0x0],_0x134801[_0x4617c7('0x150b')][_0x4617c7('0x1f91')]=_0x3bef5d[0x1],_0x134801['queue'][_0x4617c7('0x1c6c')]=_0x3bef5d[0x2],_0x134801[_0x4617c7('0x150b')][_0x4617c7('0xeff')]=_0x3bef5d[0x3],_0x134801[_0x4617c7('0x150b')]['welcomemessage']=_0x3bef5d[_0x4617c7('0x1b77')](0x4,_0x3bef5d[_0x4617c7('0x1e22')])['join'](',');}break;case'amazonlex':{const _0x3f7c2b=_0x134801[_0x4617c7('0x150b')][_0x4617c7('0x13fc')][_0x4617c7('0xaf8')](',');_0x134801[_0x4617c7('0x150b')][_0x4617c7('0x1a82')]=_0x3f7c2b[0x0],_0x134801[_0x4617c7('0x150b')][_0x4617c7('0x1422')]=_0x3f7c2b[0x1],_0x134801[_0x4617c7('0x150b')][_0x4617c7('0x165a')]=_0x3f7c2b[0x2],_0x134801[_0x4617c7('0x150b')][_0x4617c7('0x1e8f')]=_0x3f7c2b[0x3],_0x134801['queue']['welcomemessage']=_0x3f7c2b[_0x4617c7('0x1b77')](0x4,_0x3f7c2b[_0x4617c7('0x1e22')])[_0x4617c7('0xa04')](',');}break;case'autoreply':{const _0x178675=_0x134801[_0x4617c7('0x150b')][_0x4617c7('0x13fc')][_0x4617c7('0xaf8')](',');_0x134801[_0x4617c7('0x150b')]['times']=isNaN(_0x178675[0x0])?_0x178675[0x0]:parseInt(_0x178675[0x0],0xa),_0x134801[_0x4617c7('0x150b')]['text']=_0x178675[_0x4617c7('0x1b77')](0x1,_0x178675[_0x4617c7('0x1e22')])[_0x4617c7('0xa04')](',');}break;case'message':_0x134801[_0x4617c7('0x150b')][_0x4617c7('0x25ed')]=_0x134801[_0x4617c7('0x150b')]['appdata'];break;case _0x4617c7('0xe50'):_0x134801[_0x4617c7('0x150b')][_0x4617c7('0x1909')]=_0x134801[_0x4617c7('0x150b')]['appdata'][_0x4617c7('0xaf8')]('=')[0x0],_0x134801['queue'][_0x4617c7('0x10cc')]=_0x134801['queue']['appdata'][_0x4617c7('0xaf8')]('=')[0x1];break;case'agi':_0x134801[_0x4617c7('0x150b')]['project']=_0x134801[_0x4617c7('0x150b')][_0x4617c7('0x13fc')];break;default:{const _0x454af7=_0x134801[_0x4617c7('0x150b')][_0x4617c7('0x13fc')]['split'](',');_0x134801[_0x4617c7('0x150b')][_0x4617c7('0x150b')]=_0x36f548()[_0x4617c7('0x1fc5')](_0x454af7[0x0])?_0x454af7[0x0]:isNaN(_0x454af7[0x0])?_0x454af7[0x0]:parseInt(_0x454af7[0x0],0xa),_0x134801[_0x4617c7('0x150b')]['timeout']=_0x36f548()[_0x4617c7('0x1fc5')](_0x454af7[0x1])?_0x454af7[0x1]:isNaN(_0x454af7[0x1])?_0x454af7[0x1]:parseInt(_0x454af7[0x1],0xa);}break;}else _0x134801[_0x4617c7('0x150b')][_0x4617c7('0x150b')]=0x12c,_0x134801[_0x4617c7('0x150b')][_0x4617c7('0xfbe')]=0x12c;_0x134801[_0x4617c7('0x150b')][_0x4617c7('0x19fd')]&&_0x134801['queue'][_0x4617c7('0x19fd')][_0x4617c7('0x20d5')]()===_0x4617c7('0x25b6')&&_0x134801[_0x4617c7('0x150b')][_0x4617c7('0x27c0')]['toLowerCase']()==='outbounddial'&&(_0x134801[_0x4617c7('0x150b')][_0x4617c7('0x2137')]=_0x134801[_0x4617c7('0x150b')][_0x4617c7('0x1546')]?_0x134801['queue']['phone'][_0x4617c7('0xaf8')]('$')[0x0]:undefined,_0x134801[_0x4617c7('0x150b')]['callerId']=_0x134801['queue']['callerID']?_0x4617c7('0x83a')+_0x134801[_0x4617c7('0x150b')][_0x4617c7('0xc38')]:undefined);_0x134801[_0x4617c7('0x1fd3')]=_0x54376a,_0x134801[_0x4617c7('0xc4e')]=_0x1403c9,_0x27716e[_0x4617c7('0x4ee')](_0x4617c7('0xf45'))?_0xaf0b5e[_0x4617c7('0x189d')][_0x4617c7('0xbaa')]({'fields':'id,name,type','sort':_0x4617c7('0x1909'),'nolimit':'true'})[_0x4617c7('0x1549')]['then'](function(_0x308ddc){const _0x37db03=_0x4617c7;_0x134801[_0x37db03('0x1de3')]=_0x308ddc[_0x37db03('0x19b2')]||[];})[_0x4617c7('0x151d')](function(_0x1d6ad5){const _0x57a5c9=_0x4617c7;_0xa46329[_0x57a5c9('0x255')]({'title':_0x1d6ad5[_0x57a5c9('0xff9')]?_0x57a5c9('0x574')+_0x1d6ad5[_0x57a5c9('0xff9')]+_0x57a5c9('0xb0b')+_0x1d6ad5[_0x57a5c9('0x212f')]:_0x57a5c9('0x23e0'),'msg':_0x1d6ad5['data']?JSON['stringify'](_0x1d6ad5[_0x57a5c9('0x4e8')]):_0x1d6ad5[_0x57a5c9('0xaab')]()});}):_0xaf0b5e[_0x4617c7('0x189d')][_0x4617c7('0xbaa')]({'fields':_0x4617c7('0xde'),'sort':_0x4617c7('0x1909'),'nolimit':_0x4617c7('0x204c')})[_0x4617c7('0x1549')][_0x4617c7('0x11bf')](function(_0x344b55){const _0x10bf3a=_0x4617c7;_0x134801[_0x10bf3a('0x1de3')]=_0x344b55[_0x10bf3a('0x19b2')]||[];})[_0x4617c7('0x11bf')](function(){const _0x579afd=_0x4617c7;return _0xaf0b5e['userProfileSection'][_0x579afd('0xbaa')]({'userProfileId':_0x134801[_0x579afd('0x32a')][_0x579afd('0x781')],'sectionId':0x385})[_0x579afd('0x1549')];})[_0x4617c7('0x11bf')](function(_0x5ace2e){const _0xeb41d4=_0x4617c7,_0x3dcb24=_0x5ace2e&&_0x5ace2e[_0xeb41d4('0x19b2')]?_0x5ace2e[_0xeb41d4('0x19b2')][0x0]:null;if(!_0x3dcb24){const _0x1b43a4=[];let _0x20c3b1=null;_0x134801[_0xeb41d4('0x150b')]&&(_0x20c3b1=_0x36f548()[_0xeb41d4('0x1ad4')](_0x134801[_0xeb41d4('0x1de3')],{'name':_0x134801['queue'][_0xeb41d4('0x150b')]}));for(let _0x12d1d6=0x0;_0x12d1d6<_0x134801[_0xeb41d4('0x1de3')]['length'];_0x12d1d6++){_0x20c3b1&&_0x134801[_0xeb41d4('0x1de3')][_0x12d1d6]['id']===_0x20c3b1['id']&&(_0x134801[_0xeb41d4('0x1de3')][_0x12d1d6][_0xeb41d4('0x254a')]=![],_0x1b43a4[_0xeb41d4('0x105d')](_0x134801['queues'][_0x12d1d6]));}_0x134801[_0xeb41d4('0x1de3')]=_0x1b43a4;}else{if(!_0x3dcb24[_0xeb41d4('0xf11')])return _0xaf0b5e[_0xeb41d4('0x26d1')]['get']({'sectionId':_0x3dcb24['id']})[_0xeb41d4('0x1549')][_0xeb41d4('0x11bf')](function(_0x34952c){const _0x2d55e8=_0xeb41d4,_0x185862=_0x36f548()['map'](_0x34952c['rows'],function(_0xff5f0){const _0x38581f=a0_0xaf0c;return _0x36f548()[_0x38581f('0x1ad4')](_0x134801[_0x38581f('0x1de3')],{'id':_0xff5f0['resourceId']});});let _0x2c120f=null;_0x134801[_0x2d55e8('0x150b')]&&(_0x2c120f=_0x36f548()['find'](_0x134801['queues'],{'name':_0x134801['queue']['queue']}));if(_0x2c120f&&!_0x36f548()[_0x2d55e8('0x1cb3')](_0x185862,['id',_0x2c120f['id']])){const _0x5e43b4=_0x36f548()['find'](_0x134801[_0x2d55e8('0x1de3')],{'id':_0x2c120f['id']});_0x5e43b4[_0x2d55e8('0x254a')]=![],_0x185862[_0x2d55e8('0x105d')](_0x5e43b4);}_0x134801[_0x2d55e8('0x1de3')]=_0x185862;});}})[_0x4617c7('0x151d')](function(_0x2d1d93){const _0x2369b6=_0x4617c7;_0xa46329['error']({'title':_0x2d1d93[_0x2369b6('0xff9')]?'API:'+_0x2d1d93[_0x2369b6('0xff9')]+_0x2369b6('0xb0b')+_0x2d1d93[_0x2369b6('0x212f')]:'SYSTEM:GETqueues','msg':_0x2d1d93[_0x2369b6('0x4e8')]?JSON[_0x2369b6('0x3e')](_0x2d1d93[_0x2369b6('0x4e8')]):_0x2d1d93[_0x2369b6('0xaab')]()});});function _0x54376a(){const _0xd4d479=_0x4617c7;_0x134801[_0xd4d479('0x120f')]=[];const _0x4c9ee9=[];_0x134801[_0xd4d479('0x150b')][_0xd4d479('0x19fd')]&&_0x134801[_0xd4d479('0x150b')]['type'][_0xd4d479('0x20d5')]()===_0xd4d479('0x25b6')&&_0x134801['queue']['appType']===_0xd4d479('0x1bf6')&&(_0x134801[_0xd4d479('0x150b')][_0xd4d479('0x1546')]=_0x4c6fd0['cutdigits']?(_0x134801[_0xd4d479('0x150b')][_0xd4d479('0x2137')]||'')+'${EXTEN:'+_0x4c6fd0['cutdigits']+'}':(_0x134801[_0xd4d479('0x150b')]['prefix']||'')+_0xd4d479('0x1f76'),_0x4c6fd0[_0xd4d479('0x897')]!==_0xd4d479('0x3e6')?_0x134801[_0xd4d479('0x150b')][_0xd4d479('0x249a')]['indexOf'](_0xd4d479('0x22c9'))<0x0&&(_0x134801[_0xd4d479('0x150b')][_0xd4d479('0x249a')]+='U(xcally-mixmonitor-context)'):_0x134801[_0xd4d479('0x150b')][_0xd4d479('0x249a')]=_0x134801[_0xd4d479('0x150b')][_0xd4d479('0x249a')][_0xd4d479('0x814')]('U(xcally-mixmonitor-context)',''));const _0x53ce20=_0x36f548()[_0xd4d479('0x1ad4')](_0x134801[_0xd4d479('0x1de3')],{'name':_0x134801[_0xd4d479('0x150b')][_0xd4d479('0x150b')]});_0x53ce20&&(_0x134801[_0xd4d479('0x150b')][_0x36f548()[_0xd4d479('0x22c2')](_0xd4d479('0x2104'))+'QueueId']=_0x53ce20['id']);if(_0x134801[_0xd4d479('0x150b')]['appType']&&_0x134801[_0xd4d479('0x150b')][_0xd4d479('0x27c0')]===_0xd4d479('0xa8d')){}else switch((_0x134801[_0xd4d479('0x150b')][_0xd4d479('0x18f5')]||_0x134801[_0xd4d479('0x150b')]['appType'])[_0xd4d479('0x20d5')]()){case _0xd4d479('0xe50'):_0x134801[_0xd4d479('0x150b')]['appdata']=_0x134801[_0xd4d479('0x150b')]['name']+'='+_0x134801['queue'][_0xd4d479('0x10cc')];break;case _0xd4d479('0xa8d'):break;default:_0x4c9ee9[0x0]=_0x134801[_0xd4d479('0x150b')]['queue'],_0x4c9ee9[0x1]=_0x134801['queue'][_0xd4d479('0xfbe')],_0x134801[_0xd4d479('0x150b')][_0xd4d479('0x13fc')]=_0x4c9ee9['join'](',');}_0x1403c9(_0x134801['queue']);}function _0x1403c9(_0x52db66){const _0x168b04=_0x4617c7;_0x509a54[_0x168b04('0x237e')](_0x52db66);}}const _0x59780b=_0x2e2aea;_0x386cb9[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0x142d'),'faxAccountApp',_0x21d0f5('0x19dc'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),_0x21d0f5('0xb25')];function _0x386cb9(_0x82cf31,_0x3d819e,_0x464612,_0x498279,_0x5c71ca,_0x12e24d,_0x1d8d05,_0x111890){const _0x358dca=_0x21d0f5,_0x1c6136=this;_0x1c6136[_0x358dca('0x32a')]=_0x1d8d05[_0x358dca('0x2428')](),_0x1c6136['errors']=[],_0x1c6136[_0x358dca('0x134b')]=_0x358dca('0x734')+(_0x498279[_0x358dca('0x27c0')]||_0x498279[_0x358dca('0x18f5')])['toUpperCase'](),_0x1c6136['system']=angular[_0x358dca('0x6fb')](_0x498279),_0x1c6136[_0x358dca('0xb25')]=_0x111890,_0x1c6136[_0x358dca('0x2c9')]={};if(_0x1c6136[_0x358dca('0x196d')]['appdata'])switch(_0x1c6136[_0x358dca('0x196d')]['appType']?_0x1c6136[_0x358dca('0x196d')][_0x358dca('0x27c0')]['toLowerCase']():_0x1c6136[_0x358dca('0x196d')][_0x358dca('0x18f5')][_0x358dca('0x20d5')]()){case _0x358dca('0xa8d'):break;case _0x358dca('0x185e'):{const _0x4defc5=_0x1c6136[_0x358dca('0x196d')]['appdata'][_0x358dca('0xaf8')](',');_0x1c6136[_0x358dca('0x196d')][_0x358dca('0xa0c')]=_0x4defc5[0x0],_0x1c6136[_0x358dca('0x196d')][_0x358dca('0xeff')]=_0x4defc5[0x1],_0x1c6136[_0x358dca('0x196d')][_0x358dca('0x1cbc')]=_0x4defc5['slice'](0x2,_0x4defc5['length'])['join'](',');}break;case _0x358dca('0x21a8'):{const _0x1593c9=_0x1c6136[_0x358dca('0x196d')][_0x358dca('0x13fc')][_0x358dca('0xaf8')](',');_0x1c6136['system']['projectId']=_0x1593c9[0x0],_0x1c6136[_0x358dca('0x196d')]['clientEmail']=_0x1593c9[0x1],_0x1c6136[_0x358dca('0x196d')]['privateKey']=_0x1593c9[0x2],_0x1c6136[_0x358dca('0x196d')]['language']=_0x1593c9[0x3],_0x1c6136['system'][_0x358dca('0x1cbc')]=_0x1593c9[_0x358dca('0x1b77')](0x4,_0x1593c9[_0x358dca('0x1e22')])[_0x358dca('0xa04')](',');}break;case _0x358dca('0x102c'):{const _0x268203=_0x1c6136[_0x358dca('0x196d')][_0x358dca('0x13fc')][_0x358dca('0xaf8')](',');_0x1c6136[_0x358dca('0x196d')][_0x358dca('0x1a82')]=_0x268203[0x0],_0x1c6136[_0x358dca('0x196d')][_0x358dca('0x1422')]=_0x268203[0x1],_0x1c6136[_0x358dca('0x196d')]['lexregion']=_0x268203[0x2],_0x1c6136[_0x358dca('0x196d')][_0x358dca('0x1e8f')]=_0x268203[0x3],_0x1c6136[_0x358dca('0x196d')][_0x358dca('0x1cbc')]=_0x268203['slice'](0x4,_0x268203[_0x358dca('0x1e22')])[_0x358dca('0xa04')](',');}break;case'autoreply':{const _0x2b3e7e=_0x1c6136[_0x358dca('0x196d')]['appdata'][_0x358dca('0xaf8')](',');_0x1c6136[_0x358dca('0x196d')]['times']=isNaN(_0x2b3e7e[0x0])?_0x2b3e7e[0x0]:parseInt(_0x2b3e7e[0x0],0xa),_0x1c6136[_0x358dca('0x196d')][_0x358dca('0x25ed')]=_0x2b3e7e[_0x358dca('0x1b77')](0x1,_0x2b3e7e['length'])[_0x358dca('0xa04')](',');}break;case _0x358dca('0x1b86'):_0x1c6136['system']['text']=_0x1c6136[_0x358dca('0x196d')][_0x358dca('0x13fc')];break;case _0x358dca('0xe50'):_0x1c6136[_0x358dca('0x196d')][_0x358dca('0x1909')]=_0x1c6136[_0x358dca('0x196d')][_0x358dca('0x13fc')][_0x358dca('0xaf8')]('=')[0x0],_0x1c6136['system'][_0x358dca('0x10cc')]=_0x1c6136[_0x358dca('0x196d')][_0x358dca('0x13fc')][_0x358dca('0xaf8')]('=')[0x1];break;case _0x358dca('0x1efd'):_0x1c6136[_0x358dca('0x196d')][_0x358dca('0xef0')]=_0x1c6136[_0x358dca('0x196d')][_0x358dca('0x13fc')];break;default:{const _0x160b07=_0x1c6136[_0x358dca('0x196d')][_0x358dca('0x13fc')][_0x358dca('0xaf8')](',');_0x1c6136['system']['command']=_0x36f548()[_0x358dca('0x1fc5')](_0x160b07[0x0])?_0x160b07[0x0]:isNaN(_0x160b07[0x0])?_0x160b07[0x0]:parseInt(_0x160b07[0x0],0xa),_0x1c6136[_0x358dca('0x196d')][_0x358dca('0xb0')]=_0x36f548()[_0x358dca('0x1fc5')](_0x160b07[0x1])?_0x160b07[0x1]:isNaN(_0x160b07[0x1])?_0x160b07[0x1]:parseInt(_0x160b07[0x1],0xa);}}else _0x1c6136[_0x358dca('0x196d')]['variable']='';_0x1c6136['system'][_0x358dca('0x19fd')]&&_0x1c6136['system'][_0x358dca('0x19fd')][_0x358dca('0x20d5')]()==='outbound'&&_0x1c6136[_0x358dca('0x196d')]['appType'][_0x358dca('0x20d5')]()==='outbounddial'&&(_0x1c6136['system']['prefix']=_0x1c6136[_0x358dca('0x196d')][_0x358dca('0x1546')]?_0x1c6136['system'][_0x358dca('0x1546')][_0x358dca('0xaf8')]('$')[0x0]:undefined,_0x1c6136[_0x358dca('0x196d')]['callerId']=_0x1c6136[_0x358dca('0x196d')]['callerID']?_0x358dca('0x83a')+_0x1c6136[_0x358dca('0x196d')][_0x358dca('0xc38')]:undefined);_0x1c6136[_0x358dca('0x1fd3')]=_0x59712f,_0x1c6136[_0x358dca('0xc4e')]=_0x59483c,_0x1d8d05[_0x358dca('0x4ee')](_0x358dca('0xf45'))?_0x12e24d[_0x358dca('0xb0')][_0x358dca('0xbaa')]({'fields':_0x358dca('0x721'),'sort':_0x358dca('0x1909'),'nolimit':_0x358dca('0x204c')})[_0x358dca('0x1549')]['then'](function(_0x5b2e8b){const _0x1491f9=_0x358dca;_0x1c6136[_0x1491f9('0x1700')]=_0x5b2e8b['rows']||[];})[_0x358dca('0x151d')](function(_0x353cf2){const _0xe32901=_0x358dca;_0x464612[_0xe32901('0x255')]({'title':_0x353cf2[_0xe32901('0xff9')]?_0xe32901('0x574')+_0x353cf2['status']+'\x20-\x20'+_0x353cf2[_0xe32901('0x212f')]:'SYSTEM:GET_VARIABLES','msg':_0x353cf2[_0xe32901('0x4e8')]?JSON['stringify'](_0x353cf2[_0xe32901('0x4e8')]):_0x353cf2[_0xe32901('0xaab')]()});}):_0x12e24d['variable'][_0x358dca('0xbaa')]({'fields':'id,name','sort':'name','nolimit':'true'})['$promise'][_0x358dca('0x11bf')](function(_0x44ffc2){const _0x5a4734=_0x358dca;_0x1c6136[_0x5a4734('0x1700')]=_0x44ffc2[_0x5a4734('0x19b2')]||[];})[_0x358dca('0x11bf')](function(){const _0x2949b8=_0x358dca;return _0x12e24d[_0x2949b8('0x1d63')][_0x2949b8('0xbaa')]({'userProfileId':_0x1c6136[_0x2949b8('0x32a')][_0x2949b8('0x781')],'sectionId':0x3f4})['$promise'];})['then'](function(_0x447557){const _0x5e7f4b=_0x358dca,_0x2ebba0=_0x447557&&_0x447557[_0x5e7f4b('0x19b2')]?_0x447557['rows'][0x0]:null;if(!_0x2ebba0){const _0x33412d=[];let _0x46ce21=null;_0x1c6136[_0x5e7f4b('0x196d')]&&(_0x46ce21=_0x36f548()[_0x5e7f4b('0x1ad4')](_0x1c6136[_0x5e7f4b('0x1700')],{'name':_0x1c6136['system']['variable']}));for(let _0x56b0d7=0x0;_0x56b0d7<_0x1c6136[_0x5e7f4b('0x1700')][_0x5e7f4b('0x1e22')];_0x56b0d7++){_0x46ce21&&_0x1c6136[_0x5e7f4b('0x1700')][_0x56b0d7]['id']===_0x46ce21['id']&&(_0x1c6136[_0x5e7f4b('0x1700')][_0x56b0d7][_0x5e7f4b('0x254a')]=![],_0x33412d['push'](_0x1c6136['variables'][_0x56b0d7]));}_0x1c6136[_0x5e7f4b('0x1700')]=_0x33412d;}else{if(!_0x2ebba0['autoAssociation'])return _0x12e24d['userProfileResource'][_0x5e7f4b('0xbaa')]({'sectionId':_0x2ebba0['id']})['$promise'][_0x5e7f4b('0x11bf')](function(_0x595bb7){const _0x50ef50=_0x5e7f4b,_0x526397=_0x36f548()['map'](_0x595bb7['rows'],function(_0x46986e){const _0x17c8ea=a0_0xaf0c;return _0x36f548()[_0x17c8ea('0x1ad4')](_0x1c6136[_0x17c8ea('0x1700')],{'id':_0x46986e[_0x17c8ea('0x15a5')]});});let _0x1f60c3=null;_0x1c6136[_0x50ef50('0x196d')]&&(_0x1f60c3=_0x36f548()['find'](_0x1c6136[_0x50ef50('0x1700')],{'name':_0x1c6136[_0x50ef50('0x196d')][_0x50ef50('0xb0')]}));if(_0x1f60c3&&!_0x36f548()[_0x50ef50('0x1cb3')](_0x526397,['id',_0x1f60c3['id']])){const _0x1990ad=_0x36f548()[_0x50ef50('0x1ad4')](_0x1c6136[_0x50ef50('0x1700')],{'id':_0x1f60c3['id']});_0x1990ad['canSelect']=![],_0x526397[_0x50ef50('0x105d')](_0x1990ad);}_0x1c6136['variables']=_0x526397;});}})[_0x358dca('0x151d')](function(_0x33042c){const _0x55c053=_0x358dca;_0x464612[_0x55c053('0x255')]({'title':_0x33042c['status']?_0x55c053('0x574')+_0x33042c[_0x55c053('0xff9')]+_0x55c053('0xb0b')+_0x33042c['statusText']:'SYSTEM:GETvariables','msg':_0x33042c[_0x55c053('0x4e8')]?JSON[_0x55c053('0x3e')](_0x33042c[_0x55c053('0x4e8')]):_0x33042c[_0x55c053('0xaab')]()});});function _0x59712f(){const _0x4c3959=_0x358dca;_0x1c6136[_0x4c3959('0x120f')]=[];const _0x57884b=[];_0x1c6136[_0x4c3959('0x196d')][_0x4c3959('0x19fd')]&&_0x1c6136[_0x4c3959('0x196d')][_0x4c3959('0x19fd')][_0x4c3959('0x20d5')]()===_0x4c3959('0x25b6')&&_0x1c6136[_0x4c3959('0x196d')][_0x4c3959('0x27c0')]===_0x4c3959('0x1bf6')&&(_0x1c6136['system'][_0x4c3959('0x1546')]=_0x5c71ca['cutdigits']?(_0x1c6136[_0x4c3959('0x196d')][_0x4c3959('0x2137')]||'')+'${EXTEN:'+_0x5c71ca['cutdigits']+'}':(_0x1c6136[_0x4c3959('0x196d')][_0x4c3959('0x2137')]||'')+_0x4c3959('0x1f76'),_0x5c71ca['recordingFormat']!==_0x4c3959('0x3e6')?_0x1c6136['system'][_0x4c3959('0x249a')][_0x4c3959('0x203c')](_0x4c3959('0x22c9'))<0x0&&(_0x1c6136[_0x4c3959('0x196d')][_0x4c3959('0x249a')]+=_0x4c3959('0x22c9')):_0x1c6136[_0x4c3959('0x196d')][_0x4c3959('0x249a')]=_0x1c6136[_0x4c3959('0x196d')][_0x4c3959('0x249a')]['replace'](_0x4c3959('0x22c9'),''));if(_0x1c6136[_0x4c3959('0x196d')][_0x4c3959('0x27c0')]&&_0x1c6136[_0x4c3959('0x196d')][_0x4c3959('0x27c0')]==='custom'){}else switch((_0x1c6136['system'][_0x4c3959('0x18f5')]||_0x1c6136[_0x4c3959('0x196d')][_0x4c3959('0x27c0')])[_0x4c3959('0x20d5')]()){case _0x4c3959('0xe50'):_0x1c6136[_0x4c3959('0x196d')][_0x4c3959('0x13fc')]=_0x1c6136[_0x4c3959('0x196d')][_0x4c3959('0x1909')]+'='+_0x1c6136[_0x4c3959('0x196d')]['value'];break;case _0x4c3959('0xa8d'):break;default:_0x57884b[0x0]=_0x1c6136[_0x4c3959('0x196d')][_0x4c3959('0x1b9f')],_0x57884b[0x1]=_0x1c6136['system'][_0x4c3959('0xb0')],_0x1c6136[_0x4c3959('0x196d')]['appdata']=_0x57884b[_0x4c3959('0xa04')](',');}_0x59483c(_0x1c6136['system']);}function _0x59483c(_0x306113){const _0x2d328f=_0x358dca;_0x82cf31[_0x2d328f('0x237e')](_0x306113);}}const _0x47b7e0=_0x386cb9;_0x1c3267[_0x21d0f5('0x1e9a')]=['$mdDialog','$q',_0x21d0f5('0x142d'),_0x21d0f5('0x26f2'),_0x21d0f5('0x19dc'),_0x21d0f5('0x12a5'),'Auth',_0x21d0f5('0xb25')];function _0x1c3267(_0x4a8282,_0x1abad0,_0x32eade,_0x1913ad,_0x56d48f,_0x3bffbc,_0x4cac14,_0x5dae1c){const _0x2e88e7=_0x21d0f5,_0x5e9aa4=this;_0x5e9aa4[_0x2e88e7('0x32a')]=_0x4cac14[_0x2e88e7('0x2428')](),_0x5e9aa4['errors']=[],_0x5e9aa4[_0x2e88e7('0x134b')]='FAX.EDIT_'+(_0x1913ad[_0x2e88e7('0x27c0')]||_0x1913ad[_0x2e88e7('0x18f5')])[_0x2e88e7('0xa6f')](),_0x5e9aa4['tag']=angular['copy'](_0x1913ad),_0x5e9aa4['crudPermissions']=_0x5dae1c,_0x5e9aa4[_0x2e88e7('0x2c9')]={};if(_0x5e9aa4[_0x2e88e7('0x1d73')][_0x2e88e7('0x13fc')])switch(_0x5e9aa4[_0x2e88e7('0x1d73')][_0x2e88e7('0x27c0')]?_0x5e9aa4[_0x2e88e7('0x1d73')][_0x2e88e7('0x27c0')][_0x2e88e7('0x20d5')]():_0x5e9aa4['tag'][_0x2e88e7('0x18f5')][_0x2e88e7('0x20d5')]()){case _0x2e88e7('0xa8d'):break;case _0x2e88e7('0x185e'):{const _0x115900=_0x5e9aa4['tag'][_0x2e88e7('0x13fc')][_0x2e88e7('0xaf8')](',');_0x5e9aa4[_0x2e88e7('0x1d73')]['key']=_0x115900[0x0],_0x5e9aa4[_0x2e88e7('0x1d73')][_0x2e88e7('0xeff')]=_0x115900[0x1],_0x5e9aa4[_0x2e88e7('0x1d73')][_0x2e88e7('0x1cbc')]=_0x115900[_0x2e88e7('0x1b77')](0x2,_0x115900[_0x2e88e7('0x1e22')])[_0x2e88e7('0xa04')](',');}break;case _0x2e88e7('0x21a8'):{const _0xa8ee0c=_0x5e9aa4[_0x2e88e7('0x1d73')][_0x2e88e7('0x13fc')][_0x2e88e7('0xaf8')](',');_0x5e9aa4[_0x2e88e7('0x1d73')]['projectId']=_0xa8ee0c[0x0],_0x5e9aa4[_0x2e88e7('0x1d73')][_0x2e88e7('0x1f91')]=_0xa8ee0c[0x1],_0x5e9aa4[_0x2e88e7('0x1d73')][_0x2e88e7('0x1c6c')]=_0xa8ee0c[0x2],_0x5e9aa4['tag']['language']=_0xa8ee0c[0x3],_0x5e9aa4[_0x2e88e7('0x1d73')][_0x2e88e7('0x1cbc')]=_0xa8ee0c[_0x2e88e7('0x1b77')](0x4,_0xa8ee0c[_0x2e88e7('0x1e22')])[_0x2e88e7('0xa04')](',');}break;case _0x2e88e7('0x102c'):{const _0x4f01a5=_0x5e9aa4[_0x2e88e7('0x1d73')]['appdata']['split'](',');_0x5e9aa4[_0x2e88e7('0x1d73')][_0x2e88e7('0x1a82')]=_0x4f01a5[0x0],_0x5e9aa4[_0x2e88e7('0x1d73')][_0x2e88e7('0x1422')]=_0x4f01a5[0x1],_0x5e9aa4[_0x2e88e7('0x1d73')][_0x2e88e7('0x165a')]=_0x4f01a5[0x2],_0x5e9aa4[_0x2e88e7('0x1d73')][_0x2e88e7('0x1e8f')]=_0x4f01a5[0x3],_0x5e9aa4[_0x2e88e7('0x1d73')][_0x2e88e7('0x1cbc')]=_0x4f01a5[_0x2e88e7('0x1b77')](0x4,_0x4f01a5[_0x2e88e7('0x1e22')])[_0x2e88e7('0xa04')](',');}break;case'autoreply':{const _0x4a4dd3=_0x5e9aa4[_0x2e88e7('0x1d73')][_0x2e88e7('0x13fc')][_0x2e88e7('0xaf8')](',');_0x5e9aa4[_0x2e88e7('0x1d73')][_0x2e88e7('0x663')]=isNaN(_0x4a4dd3[0x0])?_0x4a4dd3[0x0]:parseInt(_0x4a4dd3[0x0],0xa),_0x5e9aa4[_0x2e88e7('0x1d73')][_0x2e88e7('0x25ed')]=_0x4a4dd3[_0x2e88e7('0x1b77')](0x1,_0x4a4dd3[_0x2e88e7('0x1e22')])[_0x2e88e7('0xa04')](',');}break;case _0x2e88e7('0x1b86'):_0x5e9aa4[_0x2e88e7('0x1d73')][_0x2e88e7('0x25ed')]=_0x5e9aa4[_0x2e88e7('0x1d73')][_0x2e88e7('0x13fc')];break;case _0x2e88e7('0xe50'):_0x5e9aa4[_0x2e88e7('0x1d73')][_0x2e88e7('0x1909')]=_0x5e9aa4['tag'][_0x2e88e7('0x13fc')][_0x2e88e7('0xaf8')]('=')[0x0],_0x5e9aa4[_0x2e88e7('0x1d73')][_0x2e88e7('0x10cc')]=_0x5e9aa4[_0x2e88e7('0x1d73')]['appdata'][_0x2e88e7('0xaf8')]('=')[0x1];break;case _0x2e88e7('0x1efd'):_0x5e9aa4[_0x2e88e7('0x1d73')]['project']=_0x5e9aa4[_0x2e88e7('0x1d73')][_0x2e88e7('0x13fc')];break;default:{const _0x46cd62=_0x5e9aa4['tag'][_0x2e88e7('0x13fc')]['split'](',');_0x5e9aa4['tag'][_0x2e88e7('0x1d73')]=_0x36f548()[_0x2e88e7('0x1fc5')](_0x46cd62[0x0])?_0x46cd62[0x0]:isNaN(_0x46cd62[0x0])?_0x46cd62[0x0]:parseInt(_0x46cd62[0x0],0xa);}break;}else{}_0x5e9aa4[_0x2e88e7('0x1d73')][_0x2e88e7('0x19fd')]&&_0x5e9aa4[_0x2e88e7('0x1d73')]['type'][_0x2e88e7('0x20d5')]()===_0x2e88e7('0x25b6')&&_0x5e9aa4[_0x2e88e7('0x1d73')][_0x2e88e7('0x27c0')][_0x2e88e7('0x20d5')]()===_0x2e88e7('0x1a64')&&(_0x5e9aa4[_0x2e88e7('0x1d73')][_0x2e88e7('0x2137')]=_0x5e9aa4[_0x2e88e7('0x1d73')][_0x2e88e7('0x1546')]?_0x5e9aa4[_0x2e88e7('0x1d73')][_0x2e88e7('0x1546')]['split']('$')[0x0]:undefined,_0x5e9aa4[_0x2e88e7('0x1d73')][_0x2e88e7('0x7d0')]=_0x5e9aa4[_0x2e88e7('0x1d73')][_0x2e88e7('0xc38')]?_0x2e88e7('0x83a')+_0x5e9aa4[_0x2e88e7('0x1d73')]['callerID']:undefined);_0x5e9aa4[_0x2e88e7('0x1fd3')]=_0x8c8808,_0x5e9aa4['closeDialog']=_0x71bb3d,_0x4cac14['hasRole'](_0x2e88e7('0xf45'))?_0x3bffbc[_0x2e88e7('0x1d73')][_0x2e88e7('0xbaa')]({'fields':_0x2e88e7('0x721'),'sort':_0x2e88e7('0x1909'),'nolimit':_0x2e88e7('0x204c')})[_0x2e88e7('0x1549')][_0x2e88e7('0x11bf')](function(_0x35269a){const _0x1dc257=_0x2e88e7;_0x5e9aa4[_0x1dc257('0x2763')]=_0x35269a[_0x1dc257('0x19b2')]||[];})[_0x2e88e7('0x151d')](function(_0x40fc7f){const _0x3f7390=_0x2e88e7;_0x32eade[_0x3f7390('0x255')]({'title':_0x40fc7f[_0x3f7390('0xff9')]?_0x3f7390('0x574')+_0x40fc7f[_0x3f7390('0xff9')]+'\x20-\x20'+_0x40fc7f[_0x3f7390('0x212f')]:'SYSTEM:GET_TAGS','msg':_0x40fc7f[_0x3f7390('0x4e8')]?JSON[_0x3f7390('0x3e')](_0x40fc7f[_0x3f7390('0x4e8')]):_0x40fc7f[_0x3f7390('0xaab')]()});}):_0x3bffbc['tag'][_0x2e88e7('0xbaa')]({'fields':_0x2e88e7('0x721'),'sort':_0x2e88e7('0x1909'),'nolimit':_0x2e88e7('0x204c')})['$promise']['then'](function(_0x64d337){const _0x3c695f=_0x2e88e7;_0x5e9aa4['tags']=_0x64d337[_0x3c695f('0x19b2')]||[];})['then'](function(){const _0x34e5ac=_0x2e88e7;return _0x3bffbc[_0x34e5ac('0x1d63')][_0x34e5ac('0xbaa')]({'userProfileId':_0x5e9aa4[_0x34e5ac('0x32a')][_0x34e5ac('0x781')],'sectionId':0x3f0})[_0x34e5ac('0x1549')];})[_0x2e88e7('0x11bf')](function(_0x49ff68){const _0xc72897=_0x2e88e7,_0x597d36=_0x49ff68&&_0x49ff68[_0xc72897('0x19b2')]?_0x49ff68[_0xc72897('0x19b2')][0x0]:null;if(!_0x597d36){const _0x2a66c5=[];let _0x4a9fd8=null;_0x5e9aa4[_0xc72897('0x1d73')]&&(_0x4a9fd8=_0x36f548()[_0xc72897('0x1ad4')](_0x5e9aa4[_0xc72897('0x2763')],{'name':_0x5e9aa4[_0xc72897('0x1d73')]['tag']}));for(let _0x34c73f=0x0;_0x34c73f<_0x5e9aa4[_0xc72897('0x2763')][_0xc72897('0x1e22')];_0x34c73f++){_0x4a9fd8&&_0x5e9aa4[_0xc72897('0x2763')][_0x34c73f]['id']===_0x4a9fd8['id']&&(_0x5e9aa4[_0xc72897('0x2763')][_0x34c73f][_0xc72897('0x254a')]=![],_0x2a66c5[_0xc72897('0x105d')](_0x5e9aa4[_0xc72897('0x2763')][_0x34c73f]));}_0x5e9aa4[_0xc72897('0x2763')]=_0x2a66c5;}else{if(!_0x597d36[_0xc72897('0xf11')])return _0x3bffbc[_0xc72897('0x26d1')][_0xc72897('0xbaa')]({'sectionId':_0x597d36['id']})[_0xc72897('0x1549')][_0xc72897('0x11bf')](function(_0x5dc891){const _0x20a7e7=_0xc72897,_0x33f382=_0x36f548()['map'](_0x5dc891[_0x20a7e7('0x19b2')],function(_0x2cbd31){const _0x318214=_0x20a7e7;return _0x36f548()[_0x318214('0x1ad4')](_0x5e9aa4[_0x318214('0x2763')],{'id':_0x2cbd31['resourceId']});});let _0x34dc48=null;_0x5e9aa4[_0x20a7e7('0x1d73')]&&(_0x34dc48=_0x36f548()['find'](_0x5e9aa4[_0x20a7e7('0x2763')],{'name':_0x5e9aa4[_0x20a7e7('0x1d73')][_0x20a7e7('0x1d73')]}));if(_0x34dc48&&!_0x36f548()[_0x20a7e7('0x1cb3')](_0x33f382,['id',_0x34dc48['id']])){const _0x40cca9=_0x36f548()[_0x20a7e7('0x1ad4')](_0x5e9aa4[_0x20a7e7('0x2763')],{'id':_0x34dc48['id']});_0x40cca9[_0x20a7e7('0x254a')]=![],_0x33f382['push'](_0x40cca9);}_0x5e9aa4[_0x20a7e7('0x2763')]=_0x33f382;});}})[_0x2e88e7('0x151d')](function(_0xe70b2e){const _0x1f4b03=_0x2e88e7;_0x32eade['error']({'title':_0xe70b2e[_0x1f4b03('0xff9')]?'API:'+_0xe70b2e[_0x1f4b03('0xff9')]+_0x1f4b03('0xb0b')+_0xe70b2e[_0x1f4b03('0x212f')]:_0x1f4b03('0xb3e'),'msg':_0xe70b2e[_0x1f4b03('0x4e8')]?JSON[_0x1f4b03('0x3e')](_0xe70b2e[_0x1f4b03('0x4e8')]):_0xe70b2e['toString']()});});function _0x8c8808(){const _0xb6954=_0x2e88e7;_0x5e9aa4[_0xb6954('0x120f')]=[];const _0x63fb0a=[];_0x5e9aa4[_0xb6954('0x1d73')][_0xb6954('0x19fd')]&&_0x5e9aa4[_0xb6954('0x1d73')][_0xb6954('0x19fd')][_0xb6954('0x20d5')]()==='outbound'&&_0x5e9aa4['tag']['appType']===_0xb6954('0x1bf6')&&(_0x5e9aa4[_0xb6954('0x1d73')][_0xb6954('0x1546')]=_0x56d48f[_0xb6954('0x388')]?(_0x5e9aa4['tag'][_0xb6954('0x2137')]||'')+_0xb6954('0x2100')+_0x56d48f[_0xb6954('0x388')]+'}':(_0x5e9aa4[_0xb6954('0x1d73')][_0xb6954('0x2137')]||'')+'${EXTEN}',_0x56d48f[_0xb6954('0x897')]!=='none'?_0x5e9aa4['tag']['options'][_0xb6954('0x203c')](_0xb6954('0x22c9'))<0x0&&(_0x5e9aa4['tag'][_0xb6954('0x249a')]+='U(xcally-mixmonitor-context)'):_0x5e9aa4[_0xb6954('0x1d73')][_0xb6954('0x249a')]=_0x5e9aa4[_0xb6954('0x1d73')][_0xb6954('0x249a')][_0xb6954('0x814')](_0xb6954('0x22c9'),''));const _0x25d87a=_0x36f548()[_0xb6954('0x1ad4')](_0x5e9aa4[_0xb6954('0x2763')],{'name':_0x5e9aa4['tag']['tag']});_0x25d87a&&(_0x5e9aa4[_0xb6954('0x1d73')]['TagId']=_0x25d87a['id']);if(_0x5e9aa4['tag'][_0xb6954('0x27c0')]&&_0x5e9aa4['tag'][_0xb6954('0x27c0')]===_0xb6954('0xa8d')){}else switch((_0x5e9aa4['tag']['app']||_0x5e9aa4[_0xb6954('0x1d73')][_0xb6954('0x27c0')])['toLowerCase']()){case _0xb6954('0xe50'):_0x5e9aa4[_0xb6954('0x1d73')]['appdata']=_0x5e9aa4[_0xb6954('0x1d73')][_0xb6954('0x1909')]+'='+_0x5e9aa4['tag'][_0xb6954('0x10cc')];break;case _0xb6954('0xa8d'):break;default:_0x63fb0a[0x0]=_0x5e9aa4[_0xb6954('0x1d73')][_0xb6954('0x1d73')],_0x5e9aa4['tag'][_0xb6954('0x13fc')]=_0x63fb0a[_0xb6954('0xa04')](',');}_0x71bb3d(_0x5e9aa4[_0xb6954('0x1d73')]);}function _0x71bb3d(_0x289c63){const _0x16b51d=_0x2e88e7;_0x4a8282[_0x16b51d('0x237e')](_0x289c63);}}const _0x41427e=_0x1c3267;_0x1be4e7[_0x21d0f5('0x1e9a')]=['$scope',_0x21d0f5('0x2143'),_0x21d0f5('0xcbc'),_0x21d0f5('0x18fe'),_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),_0x21d0f5('0x17f5'),_0x21d0f5('0xb6b'),_0x21d0f5('0x12a5'),'toasty',_0x21d0f5('0x1150')];function _0x1be4e7(_0x14b4ba,_0x253308,_0x16844a,_0x56ec5f,_0x416b41,_0x3076e1,_0x4e1304,_0x25c237,_0x490319,_0x1b0d02,_0x452871){const _0x148f49=_0x21d0f5,_0x4b8f31=this;_0x4b8f31['currentUser']=_0x452871[_0x148f49('0x2428')](),_0x4b8f31['dispositions']={'count':0x0,'rows':[]},_0x4b8f31[_0x148f49('0x21ae')]=[],_0x4b8f31[_0x148f49('0xb25')],_0x4b8f31[_0x148f49('0x1526')]={'first':_0x148f49('0x1558'),'second':_0x148f49('0xe0e'),'third':_0x148f49('0x10e6')},_0x4b8f31['query']={'fields':_0x148f49('0x12c1'),'sort':_0x148f49('0x1c74'),'limit':0xa,'page':0x1},_0x4b8f31[_0x148f49('0x286f')]=_0x4cdab5,_0x4b8f31[_0x148f49('0x560')]=_0x1b982e,_0x4b8f31[_0x148f49('0x2693')]=_0x78eb84,_0x4b8f31[_0x148f49('0x200')]=_0x814fe2,_0x4b8f31[_0x148f49('0x238d')]=_0x4f1829,_0x4b8f31['deleteDisposition']=_0x423efd,_0x4b8f31['exportSelectedDispositions']=_0x54417e,_0x4b8f31[_0x148f49('0xadf')]=_0x67da32,_0x4b8f31[_0x148f49('0x1d8f')]=_0x48a0ac,_0x4b8f31[_0x148f49('0x94f')]=_0x4d8f4f;function _0x4cdab5(_0x3c3de9,_0x542deb){const _0x3e10ce=_0x148f49;_0x4b8f31[_0x3e10ce('0x19dc')]=_0x3c3de9||{},_0x4b8f31[_0x3e10ce('0xb25')]=typeof _0x542deb!==_0x3e10ce('0x13e9')?_0x542deb:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x4b8f31[_0x3e10ce('0x1f2a')][_0x3e10ce('0x1a46')]=_0x4b8f31[_0x3e10ce('0x19dc')]['id'],_0x4b8f31[_0x3e10ce('0x1f2a')]['id']=_0x4b8f31[_0x3e10ce('0x19dc')]['id'],_0x814fe2();}function _0x4f1829(_0x207f37,_0x334f49){const _0x37e8d9=_0x148f49;_0x416b41[_0x37e8d9('0xb9')]({'controller':_0x37e8d9('0x21b7'),'controllerAs':'vm','templateUrl':_0xd803cc,'parent':angular[_0x37e8d9('0x1e73')](_0x3076e1[_0x37e8d9('0x1d2')]),'targetEvent':_0x207f37,'clickOutsideToClose':!![],'locals':{'disposition':_0x334f49,'dispositions':_0x4b8f31[_0x37e8d9('0x1394')][_0x37e8d9('0x19b2')],'model':{'id':_0x4b8f31[_0x37e8d9('0x19dc')]['id'],'field':'FaxAccountId'},'license':null,'setting':null,'crudPermissions':_0x4b8f31[_0x37e8d9('0xb25')]}})[_0x37e8d9('0x11bf')](function(_0x1dd081){if(_0x1dd081)_0x814fe2();});}function _0x1b982e(_0x53f43a,_0x2ead54){const _0x117c64=_0x148f49,_0x134de7=_0x36f548()[_0x117c64('0x1cb3')](_0x4b8f31[_0x117c64('0x1394')][_0x117c64('0x19b2')],[_0x117c64('0x2ac'),_0x53f43a['id']]),_0x21736f=_0x416b41['confirm']()[_0x117c64('0x134b')](_0x25c237['instant'](_0x117c64('0x221d')))['content'](_0x25c237[_0x117c64('0x10c2')](_0x117c64('0x869')+(_0x134de7?'DISPOSITION_DELETE_MESSAGE_CHILDREN':_0x117c64('0x16d7')),{'name':_0x53f43a[_0x117c64('0x1909')]}))[_0x117c64('0xb2e')](_0x117c64('0x1c19'))[_0x117c64('0x1e25')](_0x2ead54)['ok']('OK')['cancel'](_0x25c237['instant'](_0x117c64('0xa5d')));_0x416b41['show'](_0x21736f)[_0x117c64('0x11bf')](function(){_0x423efd(_0x53f43a);});}function _0x78eb84(_0x185043){const _0x44f406=_0x148f49;_0x4b8f31[_0x44f406('0x1394')]=_0x185043||{'count':0x0,'rows':[]};}function _0x814fe2(){const _0x11fe50=_0x148f49;_0x4b8f31['query'][_0x11fe50('0x1393')]=(_0x4b8f31['query']['page']-0x1)*_0x4b8f31[_0x11fe50('0x1f2a')][_0x11fe50('0xd5c')],_0x4b8f31[_0x11fe50('0x13f')]=_0x490319['faxAccount'][_0x11fe50('0x200')](_0x4b8f31[_0x11fe50('0x1f2a')],_0x78eb84)['$promise'];}function _0x423efd(_0x52f9fd){const _0x422de0=_0x148f49;_0x490319[_0x422de0('0x107a')][_0x422de0('0x2088')]({'id':_0x52f9fd['id']})[_0x422de0('0x1549')][_0x422de0('0x11bf')](function(){const _0x2fa7fc=_0x422de0;_0x814fe2(),_0x1b0d02[_0x2fa7fc('0x2693')]({'title':_0x25c237[_0x2fa7fc('0x10c2')](_0x2fa7fc('0x1548'))});})['catch'](function(_0x4ebf9b){const _0x26010e=_0x422de0;if(_0x4ebf9b[_0x26010e('0x4e8')]&&_0x4ebf9b['data']['errors']&&_0x4ebf9b[_0x26010e('0x4e8')][_0x26010e('0x120f')][_0x26010e('0x1e22')]){_0x4b8f31['errors']=_0x4ebf9b['data'][_0x26010e('0x120f')]||[{'message':_0x4ebf9b[_0x26010e('0xaab')](),'type':'SYSTEM:DELETEdisposition'}];for(let _0x4bc31b=0x0;_0x4bc31b<_0x4ebf9b[_0x26010e('0x4e8')][_0x26010e('0x120f')][_0x26010e('0x1e22')];_0x4bc31b++){_0x1b0d02[_0x26010e('0x255')]({'title':_0x4ebf9b[_0x26010e('0x4e8')][_0x26010e('0x120f')][_0x4bc31b][_0x26010e('0x19fd')],'msg':_0x4ebf9b[_0x26010e('0x4e8')][_0x26010e('0x120f')][_0x4bc31b][_0x26010e('0x1b86')]});}}else _0x1b0d02[_0x26010e('0x255')]({'title':_0x4ebf9b[_0x26010e('0xff9')]?'API:'+_0x4ebf9b[_0x26010e('0xff9')]+_0x26010e('0xb0b')+_0x4ebf9b['statusText']:_0x26010e('0x1551'),'msg':_0x4ebf9b[_0x26010e('0x4e8')]?JSON[_0x26010e('0x3e')](_0x4ebf9b[_0x26010e('0x4e8')][_0x26010e('0x1b86')]):_0x4ebf9b[_0x26010e('0x1b86')]||_0x4ebf9b[_0x26010e('0xaab')]()});});}function _0x54417e(){const _0x4ab90c=_0x148f49,_0x22966a=angular[_0x4ab90c('0x6fb')](_0x4b8f31[_0x4ab90c('0x21ae')]);return _0x4b8f31[_0x4ab90c('0x21ae')]=[],_0x22966a;}function _0x67da32(_0x6377a5){const _0x39dddf=_0x148f49,_0x502a5a=_0x416b41[_0x39dddf('0x132b')]()[_0x39dddf('0x134b')](_0x25c237[_0x39dddf('0x10c2')](_0x39dddf('0x1cd5')))[_0x39dddf('0x252a')](_0x25c237[_0x39dddf('0x10c2')]('TOOLS.NOTIFICATIONS.DISPOSITIONS_DELETE_MESSAGE',{'total':_0x4b8f31[_0x39dddf('0x21ae')][_0x39dddf('0x1e22')]}))[_0x39dddf('0xb2e')](_0x39dddf('0x1ef9'))['targetEvent'](_0x6377a5)['ok']('OK')[_0x39dddf('0x26c9')](_0x25c237[_0x39dddf('0x10c2')](_0x39dddf('0xa5d')));_0x416b41[_0x39dddf('0xb9')](_0x502a5a)[_0x39dddf('0x11bf')](function(){const _0x99b792=_0x39dddf;_0x4b8f31['selectedDispositions'][_0x99b792('0x1f88')](function(_0x12aaf3){_0x423efd(_0x12aaf3);}),_0x4b8f31['selectedDispositions']=[];});}function _0x48a0ac(){const _0x5a8fc2=_0x148f49;_0x4b8f31[_0x5a8fc2('0x21ae')]=[];}function _0x4d8f4f(){const _0x496435=_0x148f49;_0x4b8f31['selectedDispositions']=_0x4b8f31[_0x496435('0x1394')]['rows'];}let _0x51629a=!![],_0x5e1c8a=0x1;_0x14b4ba[_0x148f49('0x2087')]('vm_dc.query.filter',function(_0x518af0,_0x43a342){const _0x12b844=_0x148f49;_0x51629a?_0x4e1304(function(){_0x51629a=![];}):(!_0x43a342&&(_0x5e1c8a=_0x4b8f31[_0x12b844('0x1f2a')]['page']),_0x518af0!==_0x43a342&&(_0x4b8f31[_0x12b844('0x1f2a')][_0x12b844('0x1c2')]=0x1),!_0x518af0&&(_0x4b8f31[_0x12b844('0x1f2a')][_0x12b844('0x1c2')]=_0x5e1c8a),_0x814fe2());});}const _0x581097=_0x1be4e7;_0x3d5211['$inject']=[_0x21d0f5('0x5d8'),_0x21d0f5('0x1b80'),_0x21d0f5('0xcbc'),'$q',_0x21d0f5('0xb6b'),_0x21d0f5('0x17f5'),_0x21d0f5('0x1ca2'),'$document',_0x21d0f5('0x142d'),_0x21d0f5('0x12a5'),'Auth'];function _0x3d5211(_0x4a9526,_0x5ec432,_0x2482b1,_0x43dd52,_0x4cc608,_0x1228b0,_0x531224,_0x37b155,_0x27a6fe,_0x428ebf,_0x24be8c){const _0x1c1e0c=_0x21d0f5,_0x5062fb=this;_0x5062fb[_0x1c1e0c('0x32a')]=_0x24be8c[_0x1c1e0c('0x2428')](),_0x5062fb[_0x1c1e0c('0x19dc')]={},_0x5062fb[_0x1c1e0c('0xff1')]={'count':0x0,'rows':[]},_0x5062fb[_0x1c1e0c('0x2820')]=[],_0x5062fb[_0x1c1e0c('0xb25')],_0x5062fb[_0x1c1e0c('0x1f2a')]={'read':'null','closed':_0x1c1e0c('0xb5f'),'sort':_0x1c1e0c('0xb8c'),'includeAll':_0x1c1e0c('0x204c'),'limit':0xa,'page':0x1},_0x5062fb[_0x1c1e0c('0x286f')]=_0x3e69b9,_0x5062fb[_0x1c1e0c('0x560')]=_0x3b667f,_0x5062fb['faxInteractionDownload']=_0x4979c8,_0x5062fb['success']=_0x262afb,_0x5062fb[_0x1c1e0c('0x259d')]=_0x3419a1,_0x5062fb['spyfaxInteraction']=_0x244086,_0x5062fb[_0x1c1e0c('0x2297')]=_0x2d2f2f,_0x5062fb['exportSelectedFaxAccountInteractions']=_0x5d13a6,_0x5062fb[_0x1c1e0c('0x15de')]=_0x539bba,_0x5062fb[_0x1c1e0c('0xe11')]=_0x413996;function _0x3e69b9(_0x546e00,_0x1308a4){const _0x536120=_0x1c1e0c;_0x5062fb[_0x536120('0x19dc')]=_0x546e00,_0x5062fb[_0x536120('0xb25')]=typeof _0x1308a4!==_0x536120('0x13e9')?_0x1308a4:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x5062fb[_0x536120('0x1f2a')][_0x536120('0x1a46')]=_0x5062fb['faxAccount']['id'],_0x5062fb['advancedSearch']={'fields':_0x428cfa()},_0x4dc9b3();}function _0x4dc9b3(){const _0x3580c5=_0x1c1e0c;return _0x428ebf[_0x3580c5('0x1d73')][_0x3580c5('0xbaa')]()[_0x3580c5('0x1549')][_0x3580c5('0x11bf')](function(_0x66611){_0x5062fb['tags']=_0x66611||{'count':0x0,'rows':[]};})[_0x3580c5('0x11bf')](function(){const _0x42ebb8=_0x3580c5;_0x5062fb[_0x42ebb8('0x7db')]=_0x3308a1();});}function _0x3308a1(){const _0x531ea7=_0x1c1e0c;return[{'name':_0x531ea7('0xa68'),'key':_0x531ea7('0x1779'),'type':_0x531ea7('0x22f7'),'label':_0x531ea7('0x1c11')},{'name':_0x531ea7('0x3ad'),'key':'read','type':'select','label':_0x531ea7('0x22a0'),'customOptions':[{'value':0x0,'translate':_0x531ea7('0x1dd4')},{'value':0x1,'translate':_0x531ea7('0x22a5')},{'value':null,'translate':'DASHBOARDS.ALL'}]},{'name':_0x531ea7('0x971'),'key':_0x531ea7('0x949'),'type':'select','label':_0x531ea7('0xa96'),'customOptions':[{'value':0x0,'translate':_0x531ea7('0x2846')},{'value':0x1,'translate':_0x531ea7('0x199')},{'value':null,'translate':_0x531ea7('0x211a')}]},{'name':_0x531ea7('0x701'),'key':_0x531ea7('0x2342'),'type':_0x531ea7('0x2350'),'label':_0x531ea7('0x84a'),'customOptions':[{'value':'null','translate':_0x531ea7('0x1a02')},{'value':undefined,'translate':_0x531ea7('0x211a')}]},{'name':_0x531ea7('0x23ba'),'key':_0x531ea7('0x1d73'),'type':'multiselect','label':_0x531ea7('0x9b9'),'options':_0x5062fb['tags'][_0x531ea7('0x19b2')],'placeholder':_0x531ea7('0x1f9a')}];}function _0x428cfa(){const _0x293004=_0x1c1e0c;return[{'name':'Id','column':'id','type':_0x293004('0x139e')},{'name':_0x293004('0xf10'),'column':_0x293004('0xf10'),'type':_0x293004('0x282b'),'options':{'searchFields':[_0x293004('0x13a0'),_0x293004('0xcf3'),_0x293004('0x15d3')],'route':{'model':_0x293004('0x1b8f'),'action':_0x293004('0xbaa'),'params':{'fields':'id,firstName,lastName,email','Contact':_0x293004('0xfda'),'nolimit':!![]}},'extraOperators':['$substring'],'excludedOperators':[_0x293004('0x27c1')]}},{'name':_0x293004('0x8a9'),'column':_0x293004('0x20eb'),'type':_0x293004('0x25ed'),'options':{'excludedOperators':[_0x293004('0x23de'),_0x293004('0x27c1')]}},{'name':_0x293004('0x113e'),'column':_0x293004('0x4d1'),'type':'text','options':{'excludedOperators':[_0x293004('0x23de'),_0x293004('0x27c1')]}},{'name':_0x293004('0x971'),'column':_0x293004('0x949'),'type':_0x293004('0x2350'),'values':[{'id':0x0,'translate':_0x293004('0x2846')},{'id':0x1,'translate':_0x293004('0x199')}],'options':{'excludedOperators':[_0x293004('0x27c1')]}},{'name':_0x293004('0x701'),'column':_0x293004('0x24ab'),'type':'autocomplete','options':{'table':'i','route':{'model':_0x293004('0x21d9'),'action':_0x293004('0xbaa'),'params':{'role':_0x293004('0x18c4'),'fields':_0x293004('0x919'),'nolimit':!![]}},'searchFields':['fullname','name'],'extraOperators':[_0x293004('0x512')],'excludedOperators':[_0x293004('0x27c1')]}},{'name':_0x293004('0x806'),'column':'Tag','type':_0x293004('0xe83'),'options':{'route':{'model':_0x293004('0x1d73'),'action':_0x293004('0xbaa'),'params':{'nolimit':!![]}},'excludedOperators':[_0x293004('0x1239')]}},{'name':'Start\x20Date','column':_0x293004('0x1779'),'type':'date','options':{'excludedOperators':[_0x293004('0x27c1')]}},{'name':_0x293004('0xf18'),'column':_0x293004('0xf2'),'type':_0x293004('0x2350'),'values':[{'id':0x1,'translate':_0x293004('0x22a5')},{'id':0x0,'translate':_0x293004('0x1dd4')}],'options':{'excludedOperators':[_0x293004('0x27c1')]}}];}function _0x2d2f2f(){const _0x1464f8=_0x1c1e0c;_0x531224[_0x1464f8('0xb9')]({'controller':_0x1464f8('0x5'),'controllerAs':'vm','templateUrl':_0x19602a,'parent':angular[_0x1464f8('0x1e73')](_0x37b155['body']),'clickOutsideToClose':![],'locals':{'fields':_0x5062fb[_0x1464f8('0xd6d')][_0x1464f8('0x1067')],'color':undefined,'storagePath':_0x1464f8('0x1119')},'fullscreen':!![]})[_0x1464f8('0x11bf')](function(_0xe50246){const _0x5a48c0=_0x1464f8;_0x5062fb['query'][_0x5a48c0('0xce2')]=_0xe50246===![]?undefined:_0xe50246;if(_0x5062fb['query']['search'])_0x3419a1();else _0xe50246===![]&&_0x3419a1();})[_0x1464f8('0x151d')](function(_0x7961f5){const _0x188d4e=_0x1464f8;_0x27a6fe[_0x188d4e('0x255')]({'title':_0x188d4e('0x1d30'),'msg':_0x7961f5['data']?JSON[_0x188d4e('0x3e')](_0x7961f5[_0x188d4e('0x4e8')][_0x188d4e('0x1b86')]):_0x7961f5[_0x188d4e('0xaab')]()});});}function _0x4979c8(_0x1f55da,_0x17da44,_0xf6ea0d){const _0x24c9a4=_0x1c1e0c;return _0x428ebf[_0x24c9a4('0x27d')][_0x24c9a4('0x149c')]({'id':_0x1f55da['id'],'exists':!![],'attachments':_0xf6ea0d})['$promise']['then'](function(_0x3a2d14){const _0x30fca2=_0x24c9a4,_0x55e3dd=[_0x3a2d14[_0x30fca2('0x1e94')]];let _0x211ab1=_0x30fca2('0x4e6')+_0x1f55da['id'];const _0xbf621b=new Blob(_0x55e3dd,{'type':_0x3a2d14[_0x30fca2('0x19fd')]});_0x211ab1='fax-interaction'+_0x1f55da['id']+_0x30fca2('0x4a7');const _0x491af1=window['document'][_0x30fca2('0x2773')]('a');_0x491af1[_0x30fca2('0x1e1b')](_0x30fca2('0xead'),URL['createObjectURL'](_0xbf621b)),_0x491af1[_0x30fca2('0x1e1b')](_0x30fca2('0x149c'),_0x211ab1),document[_0x30fca2('0x1d2')][_0x30fca2('0x131c')](_0x491af1),_0x491af1[_0x30fca2('0x1371')]();})['catch'](function(_0x43ae9c){const _0x5b42a7=_0x24c9a4;if(_0x43ae9c[_0x5b42a7('0x4e8')]&&_0x43ae9c[_0x5b42a7('0x4e8')]['errors']&&_0x43ae9c[_0x5b42a7('0x4e8')]['errors'][_0x5b42a7('0x1e22')])for(let _0x225571=0x0;_0x225571<_0x43ae9c['data'][_0x5b42a7('0x120f')][_0x5b42a7('0x1e22')];_0x225571+=0x1){_0x27a6fe[_0x5b42a7('0x255')]({'title':_0x43ae9c[_0x5b42a7('0x4e8')]['errors'][_0x225571][_0x5b42a7('0x19fd')],'msg':_0x43ae9c[_0x5b42a7('0x4e8')][_0x5b42a7('0x120f')][_0x225571][_0x5b42a7('0x1b86')]});}else _0x27a6fe[_0x5b42a7('0x255')]({'title':_0x43ae9c[_0x5b42a7('0xff9')]?'API:'+_0x43ae9c[_0x5b42a7('0xff9')]+_0x5b42a7('0xb0b')+_0x43ae9c[_0x5b42a7('0x212f')]:_0x5b42a7('0x1b9c'),'msg':_0x43ae9c[_0x5b42a7('0x4e8')]?JSON['stringify'](_0x43ae9c['data'][_0x5b42a7('0x1b86')]):_0x43ae9c[_0x5b42a7('0xaab')]()});});}function _0x3b667f(_0xea474f,_0x26e49b){const _0x3aea93=_0x1c1e0c,_0x1d9521=_0x531224['confirm']()[_0x3aea93('0x134b')](_0x3aea93('0x1d6a'))['htmlContent'](_0x3aea93('0x2061')+(_0xea474f[_0x3aea93('0x1909')]||_0xea474f['id']&&_0x36f548()['upperFirst'](_0x3aea93('0x161c'))+_0xea474f['id']||'interaction')+'
    '+_0x3aea93('0x1a'))[_0x3aea93('0xb2e')]('delete\x20interaction')[_0x3aea93('0x1e25')](_0x26e49b)['ok']('OK')[_0x3aea93('0x26c9')]('CANCEL');_0x531224[_0x3aea93('0xb9')](_0x1d9521)[_0x3aea93('0x11bf')](function(){_0x539bba(_0xea474f);},function(){const _0x2ec8db=_0x3aea93;console['log'](_0x2ec8db('0x772'));});}function _0x262afb(_0x4282ff){const _0x1797bc=_0x1c1e0c;_0x5062fb[_0x1797bc('0xff1')]=_0x4282ff||{'count':0x0,'rows':[]};for(let _0x2d7ba7=0x0;_0x2d7ba7<_0x5062fb['faxAccountInteractions'][_0x1797bc('0x19b2')]['length'];_0x2d7ba7+=0x1){const _0x5adcd8=_0x5062fb['faxAccountInteractions'][_0x1797bc('0x19b2')][_0x2d7ba7];_0x538cf9(_0x5adcd8),_0x5adcd8[_0x1797bc('0x657')]['name']=_0x5cd457(_0x5adcd8);}}function _0x3419a1(){const _0x3ca82c=_0x1c1e0c;_0x5062fb[_0x3ca82c('0x1f2a')][_0x3ca82c('0x1393')]=(_0x5062fb[_0x3ca82c('0x1f2a')][_0x3ca82c('0x1c2')]-0x1)*_0x5062fb[_0x3ca82c('0x1f2a')]['limit'],_0x5062fb[_0x3ca82c('0x13f')]=_0x428ebf[_0x3ca82c('0x27d')][_0x3ca82c('0xbaa')](_0x5062fb[_0x3ca82c('0x1f2a')],_0x262afb)[_0x3ca82c('0x1549')];}function _0x244086(_0x4e8fdf,_0x5911c3){const _0x2c8563=_0x1c1e0c;_0x531224[_0x2c8563('0xb9')]({'controller':_0x2c8563('0x15fe'),'controllerAs':'vm','templateUrl':_0x1742d8,'parent':angular[_0x2c8563('0x1e73')](_0x37b155[_0x2c8563('0x1d2')]),'targetEvent':_0x4e8fdf,'clickOutsideToClose':!![],'onShowing':function(_0x9cd92c){const _0x2af607=_0x2c8563;_0x9cd92c['vm']['init']({'id':0x1,'channel':_0x2af607('0x2104'),'interaction':_0x5911c3,'spy':!![]},_0x5ec432['$parent']['vm'][_0x2af607('0x23e1')]);}});}function _0x539bba(_0x33965a){const _0x4b5fef=_0x1c1e0c;_0x428ebf[_0x4b5fef('0x27d')][_0x4b5fef('0x2088')]({'id':_0x33965a['id']})[_0x4b5fef('0x1549')][_0x4b5fef('0x11bf')](function(){const _0x14408e=_0x4b5fef;_0x36f548()[_0x14408e('0x14a5')](_0x5062fb[_0x14408e('0xff1')][_0x14408e('0x19b2')],{'id':_0x33965a['id']}),_0x5062fb[_0x14408e('0xff1')][_0x14408e('0x27d2')]-=0x1,!_0x5062fb[_0x14408e('0xff1')][_0x14408e('0x19b2')][_0x14408e('0x1e22')]&&_0x3419a1(),_0x27a6fe['success']({'title':_0x14408e('0xc64'),'msg':_0x33965a['name']?_0x33965a[_0x14408e('0x1909')]+_0x14408e('0x433'):''});})['catch'](function(_0x2fbba1){const _0x930e08=_0x4b5fef;if(_0x2fbba1[_0x930e08('0x4e8')]&&_0x2fbba1[_0x930e08('0x4e8')][_0x930e08('0x120f')]&&_0x2fbba1[_0x930e08('0x4e8')][_0x930e08('0x120f')][_0x930e08('0x1e22')]){_0x5062fb[_0x930e08('0x120f')]=_0x2fbba1['data']['errors']||[{'message':_0x2fbba1[_0x930e08('0xaab')](),'type':_0x930e08('0x1d14')}];for(let _0xffd1=0x0;_0xffd1<_0x2fbba1[_0x930e08('0x4e8')][_0x930e08('0x120f')]['length'];_0xffd1++){_0x27a6fe[_0x930e08('0x255')]({'title':_0x2fbba1[_0x930e08('0x4e8')][_0x930e08('0x120f')][_0xffd1][_0x930e08('0x19fd')],'msg':_0x2fbba1[_0x930e08('0x4e8')]['errors'][_0xffd1][_0x930e08('0x1b86')]});}}else _0x27a6fe['error']({'title':_0x2fbba1[_0x930e08('0xff9')]?_0x930e08('0x574')+_0x2fbba1['status']+_0x930e08('0xb0b')+_0x2fbba1['statusText']:_0x930e08('0x1d14'),'msg':_0x2fbba1['data']?JSON[_0x930e08('0x3e')](_0x2fbba1[_0x930e08('0x4e8')][_0x930e08('0x1b86')]):_0x2fbba1[_0x930e08('0x1b86')]||_0x2fbba1[_0x930e08('0xaab')]()});});}function _0x5d13a6(){const _0xffca0=_0x1c1e0c,_0x1f2572=angular[_0xffca0('0x6fb')](_0x5062fb['selectedFaxAccountInteractions']);return _0x5062fb['selectedFaxAccountInteractions']=[],_0x1f2572;}function _0x413996(_0x1fa617){const _0x14cfc8=_0x1c1e0c,_0x23e043=_0x531224[_0x14cfc8('0x132b')]()[_0x14cfc8('0x134b')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20interactions?')['htmlContent'](_0x14cfc8('0x2061')+_0x5062fb[_0x14cfc8('0x2820')][_0x14cfc8('0x1e22')]+_0x14cfc8('0xac6')+_0x14cfc8('0x1a'))[_0x14cfc8('0xb2e')](_0x14cfc8('0xcbb'))[_0x14cfc8('0x1e25')](_0x1fa617)['ok']('OK')[_0x14cfc8('0x26c9')](_0x14cfc8('0x772'));_0x531224[_0x14cfc8('0xb9')](_0x23e043)[_0x14cfc8('0x11bf')](function(){const _0xec935=_0x14cfc8;_0x5062fb[_0xec935('0x2820')]['forEach'](function(_0x34ed51){_0x539bba(_0x34ed51);}),_0x5062fb['selectedFaxAccountInteractions']=[];});}function _0x538cf9(_0x2050e1){const _0x5474ec=_0x1c1e0c;_0x2050e1['Contact']?(_0x2050e1[_0x5474ec('0xca9')]=(_0x2050e1[_0x5474ec('0xf10')][_0x5474ec('0x13a0')]||'')+'\x20'+(_0x2050e1[_0x5474ec('0xf10')][_0x5474ec('0xcf3')]||''),_0x2050e1['contactInfo']=_0x2050e1[_0x5474ec('0xf10')][_0x5474ec('0x2104')]):_0x2050e1[_0x5474ec('0xca9')]=_0x4cc608['instant'](_0x5474ec('0x1d85'));}function _0x5cd457(_0x4724d2){const _0x57a312=_0x1c1e0c;if(_0x4724d2[_0x57a312('0x2342')])return _0x4724d2['UserId']===_0x5062fb[_0x57a312('0x32a')]['id']?_0x4cc608[_0x57a312('0x10c2')]('DASHBOARDS.ME'):_0x4724d2[_0x57a312('0x657')]['fullname']+'\x20<'+_0x4724d2[_0x57a312('0x657')][_0x57a312('0x1a04')]+'>';return _0x4cc608[_0x57a312('0x10c2')](_0x57a312('0x1a02'));}let _0x5e014e=!![],_0x23ee05=0x1;_0x5ec432['$watch'](_0x1c1e0c('0x1d12'),function(_0x22475a,_0xd28bdb){const _0x36a003=_0x1c1e0c;_0x5e014e?_0x1228b0(function(){_0x5e014e=![];}):(!_0xd28bdb&&(_0x23ee05=_0x5062fb['query'][_0x36a003('0x1c2')]),_0x22475a!==_0xd28bdb&&(_0x5062fb[_0x36a003('0x1f2a')][_0x36a003('0x1c2')]=0x1),!_0x22475a&&(_0x5062fb[_0x36a003('0x1f2a')][_0x36a003('0x1c2')]=_0x23ee05),_0x3419a1());});}const _0x274443=_0x3d5211,_0x5e68a1=_0x351988['p']+_0x21d0f5('0x100a');_0x314cb0[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0xcbc'),_0x21d0f5('0x16b9'),_0x21d0f5('0x1ca2'),'$document',_0x21d0f5('0xb6b'),_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1'),_0x21d0f5('0x12a5'),'toasty','Auth',_0x21d0f5('0x19dc'),_0x21d0f5('0x1d63')];function _0x314cb0(_0x59e8a2,_0x21005c,_0x46c7cf,_0x5e81a0,_0x143fea,_0x35f56d,_0x42f465,_0x2fd072,_0x449468,_0x44e5d8,_0x5a1874,_0x170874){const _0x1c0610=_0x21d0f5,_0x5dc33f=this;_0x5dc33f['currentUser']=_0x44e5d8[_0x1c0610('0x2428')](),_0x5dc33f[_0x1c0610('0x17ff')]=_0x35f56d,_0x5dc33f[_0x1c0610('0x23e1')]=_0x42f465,_0x5dc33f[_0x1c0610('0x2834')]=_0x5dc33f['setting'][_0x1c0610('0x1d4')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x5dc33f[_0x1c0610('0x1d9a')]=_0x21005c[_0x1c0610('0x1797')]()+_0x1c0610('0x16a1')+_0x21005c[_0x1c0610('0x14ec')](),_0x5dc33f[_0x1c0610('0x19dc')]=_0x5a1874||_0x59e8a2[_0x1c0610('0x1ab3')][_0x1c0610('0x19dc')]||{},_0x5dc33f['userProfileSection']=_0x170874&&_0x170874['count']==0x1?_0x170874[_0x1c0610('0x19b2')][0x0]:null,_0x5dc33f[_0x1c0610('0xb25')]=_0x44e5d8['parseCrudPermissions'](_0x5dc33f[_0x1c0610('0x1d63')]?_0x5dc33f[_0x1c0610('0x1d63')]['crudPermissions']:null),_0x5dc33f[_0x1c0610('0x2c9')]={},_0x5dc33f[_0x1c0610('0x1179')]=_0x59e8a2[_0x1c0610('0x1ab3')][_0x1c0610('0x205c')]||0x0,_0x5dc33f[_0x1c0610('0x15dc')]=_0xe0c253,_0x5dc33f[_0x1c0610('0x2363')]=_0x3f27af,_0x5dc33f[_0x1c0610('0xb30')]=_0x449468[_0x1c0610('0x870')],_0x5dc33f[_0x1c0610('0x1499')]=_0x5479ab,_0x5dc33f[_0x1c0610('0x1618')]=_0x5cd78e,_0x44e5d8[_0x1c0610('0x4ee')]('admin')?_0x2fd072['trunk'][_0x1c0610('0xbaa')]({'fields':_0x1c0610('0x721'),'sort':_0x1c0610('0x1909')})['$promise'][_0x1c0610('0x11bf')](function(_0x2f37e2){const _0x5f2942=_0x1c0610;_0x5dc33f[_0x5f2942('0x1b24')]=_0x2f37e2[_0x5f2942('0x19b2')]||[];})[_0x1c0610('0x151d')](function(_0x336fd2){const _0x1d1a2c=_0x1c0610;_0x449468['error']({'title':_0x336fd2[_0x1d1a2c('0xff9')]?'API:'+_0x336fd2[_0x1d1a2c('0xff9')]+_0x1d1a2c('0xb0b')+_0x336fd2[_0x1d1a2c('0x212f')]:'SYSTEM:GET_TRUNKS','msg':_0x336fd2[_0x1d1a2c('0x4e8')]?JSON[_0x1d1a2c('0x3e')](_0x336fd2[_0x1d1a2c('0x4e8')]):_0x336fd2[_0x1d1a2c('0xaab')]()});}):_0x2fd072[_0x1c0610('0x264e')][_0x1c0610('0xbaa')]({'fields':_0x1c0610('0x721'),'sort':_0x1c0610('0x1909')})[_0x1c0610('0x1549')][_0x1c0610('0x11bf')](function(_0x4573d1){const _0x5609c8=_0x1c0610;_0x5dc33f[_0x5609c8('0x1b24')]=_0x4573d1[_0x5609c8('0x19b2')]||[];})[_0x1c0610('0x11bf')](function(){const _0x265260=_0x1c0610;return _0x2fd072['userProfileSection'][_0x265260('0xbaa')]({'userProfileId':_0x5dc33f['currentUser'][_0x265260('0x781')],'sectionId':0x3f3})[_0x265260('0x1549')];})[_0x1c0610('0x11bf')](function(_0x3fc80f){const _0x4de58e=_0x1c0610,_0x349c3a=_0x3fc80f&&_0x3fc80f[_0x4de58e('0x19b2')]?_0x3fc80f['rows'][0x0]:null;if(!_0x349c3a){const _0x3334ee=[];let _0x47e78d=null;_0x5dc33f[_0x4de58e('0x19dc')]&&(_0x47e78d=_0x36f548()[_0x4de58e('0x1ad4')](_0x5dc33f['trunks'],{'id':Number(_0x5dc33f[_0x4de58e('0x19dc')][_0x4de58e('0x1016')])}));for(let _0x116c0e=0x0;_0x116c0e<_0x5dc33f[_0x4de58e('0x1b24')][_0x4de58e('0x1e22')];_0x116c0e++){_0x47e78d&&_0x5dc33f[_0x4de58e('0x1b24')][_0x116c0e]['id']===_0x47e78d['id']&&(_0x5dc33f[_0x4de58e('0x1b24')][_0x116c0e]['canSelect']=![],_0x3334ee[_0x4de58e('0x105d')](_0x5dc33f['trunks'][_0x116c0e]));}_0x5dc33f['trunks']=_0x3334ee;}else{if(!_0x349c3a[_0x4de58e('0xf11')])return _0x2fd072[_0x4de58e('0x26d1')]['get']({'sectionId':_0x349c3a['id']})[_0x4de58e('0x1549')][_0x4de58e('0x11bf')](function(_0x20342b){const _0x54c1c1=_0x4de58e,_0xa0fec9=_0x36f548()[_0x54c1c1('0x2171')](_0x20342b['rows'],function(_0x44d12d){const _0x5e7fc5=_0x54c1c1;return _0x36f548()[_0x5e7fc5('0x1ad4')](_0x5dc33f[_0x5e7fc5('0x1b24')],{'id':_0x44d12d[_0x5e7fc5('0x15a5')]});});let _0x42aaa1=null;_0x5dc33f[_0x54c1c1('0x19dc')]&&(_0x42aaa1=_0x36f548()[_0x54c1c1('0x1ad4')](_0x5dc33f[_0x54c1c1('0x1b24')],{'id':Number(_0x5dc33f[_0x54c1c1('0x19dc')][_0x54c1c1('0x1016')])}));if(_0x42aaa1&&!_0x36f548()[_0x54c1c1('0x1cb3')](_0xa0fec9,['id',_0x42aaa1['id']])){const _0x41c084=_0x36f548()[_0x54c1c1('0x1ad4')](_0x5dc33f['trunks'],{'id':_0x42aaa1['id']});_0x41c084[_0x54c1c1('0x254a')]=![],_0xa0fec9['push'](_0x41c084);}_0x5dc33f[_0x54c1c1('0x1b24')]=_0xa0fec9;});}})[_0x1c0610('0x151d')](function(_0x412a02){const _0x58beb9=_0x1c0610;_0x449468[_0x58beb9('0x255')]({'title':_0x412a02[_0x58beb9('0xff9')]?_0x58beb9('0x574')+_0x412a02[_0x58beb9('0xff9')]+_0x58beb9('0xb0b')+_0x412a02[_0x58beb9('0x212f')]:_0x58beb9('0xf39'),'msg':_0x412a02['data']?JSON[_0x58beb9('0x3e')](_0x412a02[_0x58beb9('0x4e8')]):_0x412a02['toString']()});}),_0x44e5d8[_0x1c0610('0x4ee')](_0x1c0610('0xf45'))?_0x2fd072[_0x1c0610('0xbef')][_0x1c0610('0xbaa')]({'fields':_0x1c0610('0x721'),'sort':_0x1c0610('0x1909')})[_0x1c0610('0x1549')][_0x1c0610('0x11bf')](function(_0x14b796){const _0xbf8401=_0x1c0610;_0x5dc33f['lists']=_0x14b796[_0xbf8401('0x19b2')]||[];})[_0x1c0610('0x151d')](function(_0x4f342a){const _0x11e490=_0x1c0610;_0x449468[_0x11e490('0x255')]({'title':_0x4f342a[_0x11e490('0xff9')]?_0x11e490('0x574')+_0x4f342a[_0x11e490('0xff9')]+_0x11e490('0xb0b')+_0x4f342a[_0x11e490('0x212f')]:_0x11e490('0x27ed'),'msg':_0x4f342a[_0x11e490('0x4e8')]?JSON['stringify'](_0x4f342a[_0x11e490('0x4e8')]):_0x4f342a[_0x11e490('0xaab')]()});}):_0x2fd072[_0x1c0610('0xbef')][_0x1c0610('0xbaa')]({'fields':_0x1c0610('0x721'),'sort':_0x1c0610('0x1909')})[_0x1c0610('0x1549')]['then'](function(_0xf93bb3){const _0x23684a=_0x1c0610;_0x5dc33f[_0x23684a('0x2410')]=_0xf93bb3[_0x23684a('0x19b2')]||[];})[_0x1c0610('0x11bf')](function(){const _0xa0346d=_0x1c0610;return _0x2fd072[_0xa0346d('0x1d63')][_0xa0346d('0xbaa')]({'userProfileId':_0x5dc33f[_0xa0346d('0x32a')][_0xa0346d('0x781')],'sectionId':0x12d})[_0xa0346d('0x1549')];})[_0x1c0610('0x11bf')](function(_0x51cf66){const _0x505f44=_0x1c0610,_0x585716=_0x51cf66&&_0x51cf66[_0x505f44('0x19b2')]?_0x51cf66[_0x505f44('0x19b2')][0x0]:null;if(!_0x585716){const _0x2dd9c8=[];let _0x3e7de0=null;_0x5dc33f[_0x505f44('0x19dc')]&&(_0x3e7de0=_0x36f548()[_0x505f44('0x1ad4')](_0x5dc33f['lists'],{'id':Number(_0x5dc33f[_0x505f44('0x19dc')][_0x505f44('0x1e91')])}));for(let _0x40d46c=0x0;_0x40d46c<_0x5dc33f['lists']['length'];_0x40d46c++){_0x3e7de0&&_0x5dc33f[_0x505f44('0x2410')][_0x40d46c]['id']===_0x3e7de0['id']&&(_0x5dc33f[_0x505f44('0x2410')][_0x40d46c][_0x505f44('0x254a')]=![],_0x2dd9c8[_0x505f44('0x105d')](_0x5dc33f[_0x505f44('0x2410')][_0x40d46c]));}_0x5dc33f['lists']=_0x2dd9c8;}else{if(!_0x585716[_0x505f44('0xf11')])return _0x2fd072[_0x505f44('0x26d1')][_0x505f44('0xbaa')]({'sectionId':_0x585716['id']})[_0x505f44('0x1549')][_0x505f44('0x11bf')](function(_0x263ade){const _0x4a5f7b=_0x505f44,_0x7dcdd6=_0x36f548()[_0x4a5f7b('0x2171')](_0x263ade['rows'],function(_0x2c402d){const _0x173f02=_0x4a5f7b;return _0x36f548()[_0x173f02('0x1ad4')](_0x5dc33f[_0x173f02('0x2410')],{'id':_0x2c402d[_0x173f02('0x15a5')]});});let _0x16c61a=null;_0x5dc33f['faxAccount']&&(_0x16c61a=_0x36f548()[_0x4a5f7b('0x1ad4')](_0x5dc33f[_0x4a5f7b('0x2410')],{'id':Number(_0x5dc33f[_0x4a5f7b('0x19dc')][_0x4a5f7b('0x1e91')])}));if(_0x16c61a&&!_0x36f548()['some'](_0x7dcdd6,['id',_0x16c61a['id']])){const _0x48210e=_0x36f548()[_0x4a5f7b('0x1ad4')](_0x5dc33f[_0x4a5f7b('0x2410')],{'id':_0x16c61a['id']});_0x48210e[_0x4a5f7b('0x254a')]=![],_0x7dcdd6[_0x4a5f7b('0x105d')](_0x48210e);}_0x5dc33f[_0x4a5f7b('0x2410')]=_0x7dcdd6;});}})['catch'](function(_0x56f55b){const _0x1987aa=_0x1c0610;_0x449468[_0x1987aa('0x255')]({'title':_0x56f55b[_0x1987aa('0xff9')]?_0x1987aa('0x574')+_0x56f55b[_0x1987aa('0xff9')]+'\x20-\x20'+_0x56f55b[_0x1987aa('0x212f')]:_0x1987aa('0xb71'),'msg':_0x56f55b[_0x1987aa('0x4e8')]?JSON[_0x1987aa('0x3e')](_0x56f55b[_0x1987aa('0x4e8')]):_0x56f55b[_0x1987aa('0xaab')]()});}),_0x44e5d8[_0x1c0610('0x4ee')](_0x1c0610('0xf45'))?_0x2fd072[_0x1c0610('0x92a')][_0x1c0610('0xbaa')]({'fields':_0x1c0610('0xaae'),'sort':'name','nolimit':'true'})['$promise'][_0x1c0610('0x11bf')](function(_0x532199){const _0x31bb93=_0x1c0610;_0x5dc33f[_0x31bb93('0x12f2')]=_0x532199[_0x31bb93('0x19b2')]||[];})['catch'](function(_0x4fa51d){const _0x20e4cb=_0x1c0610;_0x449468[_0x20e4cb('0x255')]({'title':_0x4fa51d[_0x20e4cb('0xff9')]?_0x20e4cb('0x574')+_0x4fa51d[_0x20e4cb('0xff9')]+_0x20e4cb('0xb0b')+_0x4fa51d[_0x20e4cb('0x212f')]:_0x20e4cb('0x1306'),'msg':_0x4fa51d[_0x20e4cb('0x4e8')]?JSON['stringify'](_0x4fa51d['data']):_0x4fa51d[_0x20e4cb('0xaab')]()});}):_0x2fd072[_0x1c0610('0x92a')][_0x1c0610('0xbaa')]({'fields':_0x1c0610('0xaae'),'sort':_0x1c0610('0x1909'),'nolimit':_0x1c0610('0x204c')})['$promise'][_0x1c0610('0x11bf')](function(_0x370b74){const _0x246eab=_0x1c0610;_0x5dc33f[_0x246eab('0x12f2')]=_0x370b74['rows']||[];})['then'](function(){const _0x187dbf=_0x1c0610;return _0x2fd072[_0x187dbf('0x1d63')][_0x187dbf('0xbaa')]({'userProfileId':_0x5dc33f[_0x187dbf('0x32a')][_0x187dbf('0x781')],'sectionId':0x3ed})[_0x187dbf('0x1549')];})[_0x1c0610('0x11bf')](function(_0x24f743){const _0x36cc30=_0x1c0610,_0x5891b2=_0x24f743&&_0x24f743[_0x36cc30('0x19b2')]?_0x24f743[_0x36cc30('0x19b2')][0x0]:null;if(!_0x5891b2)_0x5dc33f['pauses']=[];else{if(!_0x5891b2[_0x36cc30('0xf11')])return _0x2fd072[_0x36cc30('0x26d1')][_0x36cc30('0xbaa')]({'sectionId':_0x5891b2['id']})['$promise'][_0x36cc30('0x11bf')](function(_0x559cf8){const _0x17143c=_0x36cc30,_0x235cf0=_0x36f548()[_0x17143c('0x2171')](_0x559cf8['rows'],function(_0x300ed0){const _0x8d8b36=_0x17143c;return _0x36f548()[_0x8d8b36('0x1ad4')](_0x5dc33f[_0x8d8b36('0x12f2')],{'id':_0x300ed0['resourceId']});});_0x5dc33f[_0x17143c('0x12f2')]['forEach'](function(_0x5f5d27){const _0x2dde9b=_0x17143c;!_0x36f548()[_0x2dde9b('0x1cb3')](_0x235cf0,['id',_0x5f5d27['id']])&&(_0x5f5d27[_0x2dde9b('0x254a')]=![]),_0x235cf0[_0x2dde9b('0x105d')](_0x5f5d27);}),_0x5dc33f[_0x17143c('0x12f2')]=_0x235cf0;});}})[_0x1c0610('0x151d')](function(_0x52ace2){const _0x1016ab=_0x1c0610;_0x449468['error']({'title':_0x52ace2[_0x1016ab('0xff9')]?_0x1016ab('0x574')+_0x52ace2[_0x1016ab('0xff9')]+'\x20-\x20'+_0x52ace2[_0x1016ab('0x212f')]:'SYSTEM:GETpauses','msg':_0x52ace2[_0x1016ab('0x4e8')]?JSON[_0x1016ab('0x3e')](_0x52ace2['data']):_0x52ace2[_0x1016ab('0xaab')]()});});function _0xe0c253(){const _0x4b4784=_0x1c0610;if(_0x44e5d8['hasRole'](_0x4b4784('0xf45')))_0x59e8a2['go'](_0x4b4784('0x16ae'),{});else return _0x2fd072[_0x4b4784('0x1d63')][_0x4b4784('0xbaa')]({'userProfileId':_0x44e5d8[_0x4b4784('0x2428')]()['userProfileId'],'sectionId':0x38e})[_0x4b4784('0x1549')][_0x4b4784('0x11bf')](function(_0x4d2859){const _0x499bce=_0x4b4784,_0x46a055=_0x4d2859&&_0x4d2859[_0x499bce('0x19b2')]?_0x4d2859[_0x499bce('0x19b2')][0x0]:null;_0x46a055&&_0x46a055['enabled']?_0x59e8a2['go'](_0x499bce('0x16ae'),{}):_0x449468[_0x499bce('0x870')]({'title':_0x143fea[_0x499bce('0x10c2')](_0x499bce('0xbff')),'msg':_0x143fea[_0x499bce('0x10c2')](_0x499bce('0x10d1'))});})[_0x4b4784('0x151d')](function(_0x24ba3e){const _0x4f9392=_0x4b4784;_0x449468[_0x4f9392('0x255')]({'title':_0x24ba3e[_0x4f9392('0xff9')]?'API:'+_0x24ba3e[_0x4f9392('0xff9')]+_0x4f9392('0xb0b')+_0x24ba3e['statusText']:_0x4f9392('0x1011'),'msg':_0x24ba3e['status']?JSON['stringify'](_0x24ba3e['data']):_0x24ba3e['toString']()});});}function _0x3f27af(_0x5ee897,_0x5af618){const _0x116526=_0x1c0610;_0x46c7cf[_0x116526('0xb9')]({'controller':_0x116526('0x1021'),'controllerAs':'vm','templateUrl':_0x5e68a1,'parent':angular[_0x116526('0x1e73')](_0x5e81a0[_0x116526('0x1d2')]),'targetEvent':_0x5af618,'clickOutsideToClose':!![],'locals':{'faxAccount':_0x5ee897,'faxAccounts':_0x5dc33f[_0x116526('0xc6e')]?_0x5dc33f['faxAccounts'][_0x116526('0x19b2')]:[],'crudPermissions':_0x5dc33f[_0x116526('0xb25')],'realtime':![]}});}function _0x5479ab(){const _0x5e2b90=_0x1c0610;_0x59e8a2['go']('app.fax.faxAccounts',{},{'reload':_0x5e2b90('0xeea')});}function _0x5cd78e(){const _0x227f11=_0x1c0610;_0x2fd072[_0x227f11('0x19dc')][_0x227f11('0x1d86')](_0x5dc33f[_0x227f11('0x19dc')])['$promise'][_0x227f11('0x11bf')](function(){const _0x9d1244=_0x227f11;_0x449468[_0x9d1244('0x2693')]({'title':_0x9d1244('0x4d6'),'msg':_0x5dc33f['faxAccount']['name']?_0x5dc33f['faxAccount']['name']+'\x20has\x20been\x20updated!':''});})['catch'](function(_0x416092){const _0x1d4ba7=_0x227f11;_0x449468['error']({'title':_0x416092[_0x1d4ba7('0xff9')]?_0x1d4ba7('0x574')+_0x416092[_0x1d4ba7('0xff9')]+'\x20-\x20'+_0x416092[_0x1d4ba7('0x212f')]:'SYSTEM:GETfaxAccount','msg':_0x416092[_0x1d4ba7('0x4e8')]?JSON['stringify'](_0x416092[_0x1d4ba7('0x4e8')]):_0x416092[_0x1d4ba7('0xaab')]()});});}}const _0x5e2857=_0x314cb0,_0x5236d1=_0x351988['p']+'src/js/modules/main/apps/fax/views/faxAccounts/create/dialog.html/dialog.html';_0x1997a0[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0x2143'),'$state','$mdSidenav',_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),_0x21d0f5('0x17f5'),_0x21d0f5('0xb6b'),_0x21d0f5('0xc6e'),_0x21d0f5('0x25bc'),_0x21d0f5('0x1d63'),'api',_0x21d0f5('0xda9'),_0x21d0f5('0x142d'),'Auth',_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1')];function _0x1997a0(_0x1bf979,_0x5b1948,_0x14307f,_0x50fae6,_0x256288,_0x4a82d5,_0x1f5c9c,_0x1823b3,_0x65bc5d,_0x4b2f6e,_0x3e3db8,_0x29c7a1,_0x1a8dee,_0x37a620,_0x102747,_0x34b3e5,_0x7d9968){const _0x45f43c=_0x21d0f5,_0x472d8e=this;_0x472d8e['license']=_0x34b3e5,_0x472d8e[_0x45f43c('0x23e1')]=_0x7d9968,_0x472d8e[_0x45f43c('0x32a')]=_0x102747['getCurrentUser'](),_0x472d8e['faxAccounts']=_0x65bc5d||{'count':0x0,'rows':[]},_0x472d8e['userProfile']=_0x4b2f6e,_0x472d8e['userProfileSection']=_0x3e3db8&&_0x3e3db8['count']==0x1?_0x3e3db8[_0x45f43c('0x19b2')][0x0]:null,_0x472d8e[_0x45f43c('0xb25')]=_0x102747[_0x45f43c('0x1530')](_0x472d8e['userProfileSection']?_0x472d8e[_0x45f43c('0x1d63')][_0x45f43c('0xb25')]:null),_0x472d8e[_0x45f43c('0x13e8')]='faxAccounts',_0x472d8e[_0x45f43c('0x724')]='',_0x472d8e[_0x45f43c('0xe3c')]=null,_0x472d8e[_0x45f43c('0x1bf9')]=[],_0x472d8e[_0x45f43c('0x1f2a')]={'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':_0x45f43c('0x1c74'),'limit':0xa,'page':0x1},_0x472d8e[_0x45f43c('0x1e4')]=_0x36f548()['keyBy']([{'option':_0x45f43c('0xf6'),'value':_0x45f43c('0x1d9')},{'option':'no','value':'\x27no\x27'}],function(_0x459f7a){const _0x3c6306=_0x45f43c;return _0x36f548()['replace'](_0x459f7a[_0x3c6306('0x10cc')],new RegExp('\x27','g'),'');}),_0x472d8e['arrayminrate']=_0x36f548()['keyBy']([{'option':'2400','value':_0x45f43c('0x5e8')},{'option':_0x45f43c('0x19ff'),'value':_0x45f43c('0x44')},{'option':'7200','value':_0x45f43c('0x60a')},{'option':_0x45f43c('0x14f7'),'value':_0x45f43c('0xd36')},{'option':_0x45f43c('0xcb0'),'value':_0x45f43c('0x17')},{'option':_0x45f43c('0x4ef'),'value':_0x45f43c('0x1ad2')}],function(_0x593675){const _0x4fe02a=_0x45f43c;return _0x36f548()[_0x4fe02a('0x814')](_0x593675[_0x4fe02a('0x10cc')],new RegExp('\x27','g'),'');}),_0x472d8e['arraymaxrate']=_0x36f548()[_0x45f43c('0x2130')]([{'option':'2400','value':_0x45f43c('0x5e8')},{'option':_0x45f43c('0x19ff'),'value':_0x45f43c('0x44')},{'option':_0x45f43c('0xa06'),'value':_0x45f43c('0x60a')},{'option':_0x45f43c('0x14f7'),'value':_0x45f43c('0xd36')},{'option':_0x45f43c('0xcb0'),'value':_0x45f43c('0x17')},{'option':'14400','value':'\x2714400\x27'}],function(_0x189ab4){const _0x4252ab=_0x45f43c;return _0x36f548()[_0x4252ab('0x814')](_0x189ab4[_0x4252ab('0x10cc')],new RegExp('\x27','g'),'');}),_0x472d8e[_0x45f43c('0x1770')]=_0x36f548()[_0x45f43c('0x2130')]([{'option':_0x45f43c('0xd74'),'value':_0x45f43c('0xf35')},{'option':_0x45f43c('0x1782'),'value':_0x45f43c('0x1678')},{'option':'DADHI','value':_0x45f43c('0x16ed')},{'option':_0x45f43c('0x1dc9'),'value':_0x45f43c('0x1e90')}],function(_0x42cb60){const _0x4f406a=_0x45f43c;return _0x36f548()['replace'](_0x42cb60[_0x4f406a('0x10cc')],new RegExp('\x27','g'),'');}),_0x472d8e[_0x45f43c('0x757')]=_0x4b52c9,_0x472d8e[_0x45f43c('0x1ab2')]=_0x44ea14,_0x472d8e[_0x45f43c('0x19a9')]=_0x888ab8,_0x472d8e[_0x45f43c('0x2363')]=_0x4c2211,_0x472d8e[_0x45f43c('0x549')]=_0x4c090c,_0x472d8e[_0x45f43c('0x2693')]=_0x451f99,_0x472d8e[_0x45f43c('0x464')]=_0x148b10,_0x472d8e[_0x45f43c('0xe76')]=_0x2f2c08,_0x472d8e[_0x45f43c('0xdd')]=_0x22753f,_0x472d8e['exportSelectedFaxAccounts']=_0x3ffbe8,_0x472d8e[_0x45f43c('0x1916')]=_0x195db9,_0x472d8e[_0x45f43c('0x2521')]=_0x2f9529,_0x472d8e[_0x45f43c('0x18f')]=_0x56d7d7,_0x102747['hasRole']('admin')?_0x29c7a1[_0x45f43c('0x264e')][_0x45f43c('0xbaa')]({'fields':_0x45f43c('0x721'),'sort':_0x45f43c('0x1909')})['$promise'][_0x45f43c('0x11bf')](function(_0x1e2b16){const _0x86159b=_0x45f43c;_0x472d8e[_0x86159b('0x1b24')]=_0x1e2b16['rows']||[];})[_0x45f43c('0x151d')](function(_0x46b2a3){const _0x3ad766=_0x45f43c;_0x37a620[_0x3ad766('0x255')]({'title':_0x46b2a3[_0x3ad766('0xff9')]?_0x3ad766('0x574')+_0x46b2a3['status']+_0x3ad766('0xb0b')+_0x46b2a3['statusText']:'SYSTEM:GET_TRUNKS','msg':_0x46b2a3[_0x3ad766('0x4e8')]?JSON[_0x3ad766('0x3e')](_0x46b2a3[_0x3ad766('0x4e8')]):_0x46b2a3['toString']()});}):_0x29c7a1[_0x45f43c('0x264e')][_0x45f43c('0xbaa')]({'fields':_0x45f43c('0x721'),'sort':_0x45f43c('0x1909')})[_0x45f43c('0x1549')]['then'](function(_0x34d004){const _0x2de692=_0x45f43c;_0x472d8e[_0x2de692('0x1b24')]=_0x34d004[_0x2de692('0x19b2')]||[];})['then'](function(){const _0x2fca7b=_0x45f43c;return _0x29c7a1[_0x2fca7b('0x1d63')][_0x2fca7b('0xbaa')]({'userProfileId':_0x472d8e[_0x2fca7b('0x32a')][_0x2fca7b('0x781')],'sectionId':0x3f3})[_0x2fca7b('0x1549')];})[_0x45f43c('0x11bf')](function(_0x540b01){const _0x12b5e1=_0x45f43c,_0x475990=_0x540b01&&_0x540b01[_0x12b5e1('0x19b2')]?_0x540b01[_0x12b5e1('0x19b2')][0x0]:null;if(!_0x475990){const _0x3bf68a=[],_0x358089=[];_0x472d8e[_0x12b5e1('0xc6e')][_0x12b5e1('0x19b2')][_0x12b5e1('0x1f88')](function(_0x4c6b70){const _0x28656a=_0x12b5e1,_0x1c08bd=_0x36f548()[_0x28656a('0x1ad4')](_0x472d8e[_0x28656a('0x1b24')],{'id':Number(_0x4c6b70[_0x28656a('0x1016')])});_0x358089[_0x28656a('0x105d')](_0x1c08bd);});for(let _0x260f4c=0x0;_0x260f4c<_0x472d8e[_0x12b5e1('0x1b24')][_0x12b5e1('0x1e22')];_0x260f4c++){const _0x31f020=_0x36f548()[_0x12b5e1('0x1cb3')](_0x358089,{'id':_0x472d8e[_0x12b5e1('0x1b24')][_0x260f4c]['id']});_0x31f020&&(_0x472d8e[_0x12b5e1('0x1b24')][_0x260f4c][_0x12b5e1('0x254a')]=![],_0x3bf68a['push'](_0x472d8e['trunks'][_0x260f4c]));}_0x472d8e[_0x12b5e1('0x1b24')]=_0x3bf68a;}else{if(!_0x475990[_0x12b5e1('0xf11')])return _0x29c7a1[_0x12b5e1('0x26d1')][_0x12b5e1('0xbaa')]({'sectionId':_0x475990['id']})[_0x12b5e1('0x1549')][_0x12b5e1('0x11bf')](function(_0x220f93){const _0x21ed8d=_0x12b5e1,_0x1a18f5=_0x36f548()[_0x21ed8d('0x2171')](_0x220f93[_0x21ed8d('0x19b2')],function(_0x357d77){const _0x3feeab=_0x21ed8d;return _0x36f548()[_0x3feeab('0x1ad4')](_0x472d8e[_0x3feeab('0x1b24')],{'id':_0x357d77[_0x3feeab('0x15a5')]});});let _0x5c5790=null;_0x5c5790=[],_0x472d8e[_0x21ed8d('0xc6e')][_0x21ed8d('0x19b2')][_0x21ed8d('0x1f88')](function(_0x2d4e37){const _0x564279=_0x36f548()['find'](_0x472d8e['trunks'],{'id':Number(_0x2d4e37['TrunkId'])});_0x5c5790['push'](_0x564279);}),!_0x36f548()[_0x21ed8d('0x1fc5')](_0x5c5790)&&_0x5c5790[_0x21ed8d('0x1f88')](function(_0x3f474c){const _0x3d6126=_0x21ed8d;if(!_0x36f548()['some'](_0x1a18f5,['id',_0x3f474c['id']])){const _0x58c47d=_0x36f548()[_0x3d6126('0x1ad4')](_0x472d8e['trunks'],{'id':_0x3f474c['id']});_0x58c47d[_0x3d6126('0x254a')]=![],_0x1a18f5[_0x3d6126('0x105d')](_0x58c47d);}}),_0x472d8e[_0x21ed8d('0x1b24')]=_0x1a18f5;});}})['catch'](function(_0x173be6){const _0x3e988a=_0x45f43c;_0x37a620['error']({'title':_0x173be6['status']?_0x3e988a('0x574')+_0x173be6[_0x3e988a('0xff9')]+_0x3e988a('0xb0b')+_0x173be6[_0x3e988a('0x212f')]:_0x3e988a('0xf39'),'msg':_0x173be6[_0x3e988a('0x4e8')]?JSON[_0x3e988a('0x3e')](_0x173be6[_0x3e988a('0x4e8')]):_0x173be6[_0x3e988a('0xaab')]()});}),_0x102747[_0x45f43c('0x4ee')](_0x45f43c('0xf45'))?_0x29c7a1['cmList'][_0x45f43c('0xbaa')]({'fields':'id,name','sort':'name'})[_0x45f43c('0x1549')][_0x45f43c('0x11bf')](function(_0x4013d1){const _0xa4c2e3=_0x45f43c;_0x472d8e[_0xa4c2e3('0x2410')]=_0x4013d1[_0xa4c2e3('0x19b2')]||[];})['catch'](function(_0x57fd42){const _0xd95f21=_0x45f43c;_0x37a620[_0xd95f21('0x255')]({'title':_0x57fd42[_0xd95f21('0xff9')]?'API:'+_0x57fd42[_0xd95f21('0xff9')]+'\x20-\x20'+_0x57fd42['statusText']:'SYSTEM:GET_LISTS','msg':_0x57fd42[_0xd95f21('0x4e8')]?JSON['stringify'](_0x57fd42['data']):_0x57fd42[_0xd95f21('0xaab')]()});}):_0x29c7a1[_0x45f43c('0xbef')][_0x45f43c('0xbaa')]({'fields':_0x45f43c('0x721'),'sort':_0x45f43c('0x1909')})[_0x45f43c('0x1549')][_0x45f43c('0x11bf')](function(_0x2b4f62){const _0x4e8b53=_0x45f43c;_0x472d8e[_0x4e8b53('0x2410')]=_0x2b4f62[_0x4e8b53('0x19b2')]||[];})[_0x45f43c('0x11bf')](function(){const _0x2766b6=_0x45f43c;return _0x29c7a1[_0x2766b6('0x1d63')]['get']({'userProfileId':_0x472d8e[_0x2766b6('0x32a')]['userProfileId'],'sectionId':0x12d})[_0x2766b6('0x1549')];})[_0x45f43c('0x11bf')](function(_0x4acb4d){const _0x59c644=_0x45f43c,_0x1f5cf4=_0x4acb4d&&_0x4acb4d[_0x59c644('0x19b2')]?_0x4acb4d['rows'][0x0]:null;if(!_0x1f5cf4){const _0x1f92ae=[];let _0x3e0671=null;_0x472d8e[_0x59c644('0x19dc')]&&(_0x3e0671=_0x36f548()['find'](_0x472d8e[_0x59c644('0x2410')],{'id':Number(_0x472d8e[_0x59c644('0x19dc')][_0x59c644('0x1e91')])}));for(let _0x229311=0x0;_0x229311<_0x472d8e[_0x59c644('0x2410')][_0x59c644('0x1e22')];_0x229311++){_0x3e0671&&_0x472d8e[_0x59c644('0x2410')][_0x229311]['id']===_0x3e0671['id']&&(_0x472d8e[_0x59c644('0x2410')][_0x229311][_0x59c644('0x254a')]=![],_0x1f92ae[_0x59c644('0x105d')](_0x472d8e[_0x59c644('0x2410')][_0x229311]));}_0x472d8e[_0x59c644('0x2410')]=_0x1f92ae;}else{if(!_0x1f5cf4[_0x59c644('0xf11')])return _0x29c7a1['userProfileResource'][_0x59c644('0xbaa')]({'sectionId':_0x1f5cf4['id']})[_0x59c644('0x1549')][_0x59c644('0x11bf')](function(_0x19f1f4){const _0x3bbfc0=_0x59c644,_0x4669bd=_0x36f548()['map'](_0x19f1f4[_0x3bbfc0('0x19b2')],function(_0x5068dd){const _0x1a02ad=_0x3bbfc0;return _0x36f548()[_0x1a02ad('0x1ad4')](_0x472d8e[_0x1a02ad('0x2410')],{'id':_0x5068dd[_0x1a02ad('0x15a5')]});});let _0x52646c=null;_0x472d8e[_0x3bbfc0('0x19dc')]&&(_0x52646c=_0x36f548()[_0x3bbfc0('0x1ad4')](_0x472d8e[_0x3bbfc0('0x2410')],{'id':Number(_0x472d8e['faxAccount'][_0x3bbfc0('0x1e91')])}));if(_0x52646c&&!_0x36f548()['some'](_0x4669bd,['id',_0x52646c['id']])){const _0x496cd4=_0x36f548()[_0x3bbfc0('0x1ad4')](_0x472d8e[_0x3bbfc0('0x2410')],{'id':_0x52646c['id']});_0x496cd4['canSelect']=![],_0x4669bd[_0x3bbfc0('0x105d')](_0x496cd4);}_0x472d8e[_0x3bbfc0('0x2410')]=_0x4669bd;});}})[_0x45f43c('0x151d')](function(_0x13cc3d){const _0x347d85=_0x45f43c;_0x37a620[_0x347d85('0x255')]({'title':_0x13cc3d[_0x347d85('0xff9')]?_0x347d85('0x574')+_0x13cc3d[_0x347d85('0xff9')]+_0x347d85('0xb0b')+_0x13cc3d[_0x347d85('0x212f')]:'SYSTEM:GETlists','msg':_0x13cc3d[_0x347d85('0x4e8')]?JSON[_0x347d85('0x3e')](_0x13cc3d[_0x347d85('0x4e8')]):_0x13cc3d[_0x347d85('0xaab')]()});});function _0x4b52c9(_0x470dfe){const _0x53c321=_0x45f43c;_0x14307f['go'](_0x53c321('0x274'),{'id':_0x470dfe['id'],'faxAccount':_0x470dfe,'crudPermissions':_0x472d8e[_0x53c321('0xb25')]});}function _0x44ea14(_0x4efe8f){const _0x47105f=_0x45f43c;_0x14307f['go'](_0x47105f('0x274'),{'id':_0x4efe8f['id'],'tab':0x5});}function _0x888ab8(){const _0x498cc1=_0x45f43c;if(_0x102747[_0x498cc1('0x4ee')](_0x498cc1('0xf45')))_0x14307f['go'](_0x498cc1('0x16ae'),{});else return _0x29c7a1[_0x498cc1('0x1d63')][_0x498cc1('0xbaa')]({'userProfileId':_0x102747['getCurrentUser']()[_0x498cc1('0x781')],'sectionId':0x38e})[_0x498cc1('0x1549')][_0x498cc1('0x11bf')](function(_0x25b67a){const _0x4e3b4e=_0x498cc1,_0xa2e219=_0x25b67a&&_0x25b67a[_0x4e3b4e('0x19b2')]?_0x25b67a['rows'][0x0]:null;_0xa2e219&&_0xa2e219[_0x4e3b4e('0x1f0a')]?_0x14307f['go'](_0x4e3b4e('0x16ae'),{}):_0x37a620[_0x4e3b4e('0x870')]({'title':_0x1823b3[_0x4e3b4e('0x10c2')]('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_TITLE'),'msg':_0x1823b3[_0x4e3b4e('0x10c2')](_0x4e3b4e('0x10d1'))});})[_0x498cc1('0x151d')](function(_0x52bb79){const _0x49adb2=_0x498cc1;_0x37a620[_0x49adb2('0x255')]({'title':_0x52bb79['status']?_0x49adb2('0x574')+_0x52bb79[_0x49adb2('0xff9')]+_0x49adb2('0xb0b')+_0x52bb79[_0x49adb2('0x212f')]:_0x49adb2('0x1011'),'msg':_0x52bb79['status']?JSON['stringify'](_0x52bb79[_0x49adb2('0x4e8')]):_0x52bb79[_0x49adb2('0xaab')]()});});}function _0x4c2211(_0x2738c1,_0x2a06d7){const _0x221b73=_0x45f43c;_0x256288[_0x221b73('0xb9')]({'controller':_0x221b73('0x1021'),'controllerAs':'vm','templateUrl':_0x5e68a1,'parent':angular[_0x221b73('0x1e73')](_0x4a82d5[_0x221b73('0x1d2')]),'targetEvent':_0x2a06d7,'clickOutsideToClose':!![],'locals':{'faxAccount':_0x2738c1,'faxAccounts':_0x472d8e[_0x221b73('0xc6e')]?_0x472d8e[_0x221b73('0xc6e')][_0x221b73('0x19b2')]:[],'crudPermissions':_0x472d8e[_0x221b73('0xb25')],'realtime':![]}});}function _0x4c090c(_0x2af912,_0x198329){const _0x4951fa=_0x45f43c,_0xe73d79=_0x256288[_0x4951fa('0x132b')]()[_0x4951fa('0x134b')](_0x4951fa('0x1796')+_0x36f548()[_0x4951fa('0x13cf')](_0x4951fa('0x19dc'))+'?')[_0x4951fa('0x1d03')](_0x4951fa('0x2061')+(_0x2af912[_0x4951fa('0x1909')]||_0x4951fa('0x19dc'))+'
    '+_0x4951fa('0x1a'))[_0x4951fa('0xb2e')](_0x4951fa('0xb66'))[_0x4951fa('0x1e25')](_0x198329)['ok']('OK')[_0x4951fa('0x26c9')](_0x4951fa('0x772'));_0x256288[_0x4951fa('0xb9')](_0xe73d79)[_0x4951fa('0x11bf')](function(){_0x22753f(_0x2af912);},function(){const _0x1bdeac=_0x4951fa;console[_0x1bdeac('0xc78')](_0x1bdeac('0x772'));});}let _0x70eb22=!![],_0x2a22f7=0x1;_0x1bf979[_0x45f43c('0x2087')](_0x45f43c('0x842'),function(_0x2ea380,_0x15192e){const _0x1e14af=_0x45f43c;_0x70eb22?_0x1f5c9c(function(){_0x70eb22=![];}):(!_0x15192e&&(_0x2a22f7=_0x472d8e[_0x1e14af('0x1f2a')][_0x1e14af('0x1c2')]),_0x2ea380!==_0x15192e&&(_0x472d8e[_0x1e14af('0x1f2a')]['page']=0x1),!_0x2ea380&&(_0x472d8e[_0x1e14af('0x1f2a')]['page']=_0x2a22f7),_0x472d8e[_0x1e14af('0x464')]());});function _0x451f99(_0x4c90c4){const _0x44e885=_0x45f43c;_0x472d8e[_0x44e885('0xc6e')]=_0x4c90c4||{'count':0x0,'rows':[]};}function _0x148b10(){const _0x688400=_0x45f43c;_0x472d8e[_0x688400('0x1f2a')]['offset']=(_0x472d8e[_0x688400('0x1f2a')]['page']-0x1)*_0x472d8e[_0x688400('0x1f2a')][_0x688400('0xd5c')],_0x102747['hasRole'](_0x688400('0xf45'))?_0x472d8e[_0x688400('0x13f')]=_0x29c7a1[_0x688400('0x19dc')]['get'](_0x472d8e[_0x688400('0x1f2a')],_0x451f99)['$promise']:(_0x472d8e[_0x688400('0x1f2a')]['id']=_0x472d8e[_0x688400('0x25bc')]['id'],_0x472d8e['query'][_0x688400('0xe6')]=_0x688400('0x6bd'),_0x472d8e['promise']=_0x29c7a1[_0x688400('0x25bc')]['getResources'](_0x472d8e['query'],_0x451f99)[_0x688400('0x1549')]);}function _0x2f2c08(_0x33ee8e,_0x2131c2){const _0x5058f2=_0x45f43c;_0x256288[_0x5058f2('0xb9')]({'controller':_0x5058f2('0xd19'),'controllerAs':'vm','templateUrl':_0x5236d1,'parent':angular[_0x5058f2('0x1e73')](_0x4a82d5[_0x5058f2('0x1d2')]),'targetEvent':_0x33ee8e,'clickOutsideToClose':!![],'locals':{'faxAccount':_0x2131c2,'faxAccounts':_0x472d8e['faxAccounts'][_0x5058f2('0x19b2')],'license':_0x472d8e['license'],'setting':_0x472d8e[_0x5058f2('0x23e1')],'crudPermissions':_0x472d8e[_0x5058f2('0xb25')]}});}function _0x22753f(_0x19ea93){const _0x127f5d=_0x45f43c;_0x29c7a1[_0x127f5d('0x19dc')][_0x127f5d('0x2088')]({'id':_0x19ea93['id']})[_0x127f5d('0x1549')][_0x127f5d('0x11bf')](function(){const _0x5cd2e1=_0x127f5d;_0x36f548()['remove'](_0x472d8e[_0x5cd2e1('0xc6e')][_0x5cd2e1('0x19b2')],{'id':_0x19ea93['id']}),_0x472d8e['faxAccounts']['count']-=0x1,!_0x472d8e[_0x5cd2e1('0xc6e')][_0x5cd2e1('0x19b2')][_0x5cd2e1('0x1e22')]&&_0x472d8e['getFaxAccounts'](),_0x37a620[_0x5cd2e1('0x2693')]({'title':_0x36f548()[_0x5cd2e1('0x13cf')]('FaxAccount')+'\x20deleted!','msg':_0x19ea93['name']?_0x19ea93[_0x5cd2e1('0x1909')]+'\x20has\x20been\x20deleted!':''});})[_0x127f5d('0x151d')](function(_0x4a793a){const _0x4488c6=_0x127f5d;if(_0x4a793a['data']&&_0x4a793a['data'][_0x4488c6('0x120f')]&&_0x4a793a[_0x4488c6('0x4e8')]['errors'][_0x4488c6('0x1e22')]){_0x472d8e[_0x4488c6('0x120f')]=_0x4a793a[_0x4488c6('0x4e8')][_0x4488c6('0x120f')]||[{'message':_0x4a793a[_0x4488c6('0xaab')](),'type':'SYSTEM:DELETEfaxAccount'}];for(let _0x4bfeeb=0x0;_0x4bfeeb<_0x4a793a[_0x4488c6('0x4e8')][_0x4488c6('0x120f')][_0x4488c6('0x1e22')];_0x4bfeeb++){_0x37a620[_0x4488c6('0x255')]({'title':_0x4a793a[_0x4488c6('0x4e8')][_0x4488c6('0x120f')][_0x4bfeeb][_0x4488c6('0x19fd')],'msg':_0x4a793a[_0x4488c6('0x4e8')][_0x4488c6('0x120f')][_0x4bfeeb][_0x4488c6('0x1b86')]});}}else _0x37a620[_0x4488c6('0x255')]({'title':_0x4a793a[_0x4488c6('0xff9')]?_0x4488c6('0x574')+_0x4a793a['status']+_0x4488c6('0xb0b')+_0x4a793a[_0x4488c6('0x212f')]:_0x4488c6('0x1132'),'msg':_0x4a793a[_0x4488c6('0x4e8')]?JSON[_0x4488c6('0x3e')](_0x4a793a[_0x4488c6('0x4e8')]['message']):_0x4a793a[_0x4488c6('0x1b86')]||_0x4a793a[_0x4488c6('0xaab')]()});});}function _0x3ffbe8(){const _0x37630f=_0x45f43c,_0x1c0300=angular['copy'](_0x472d8e[_0x37630f('0x1bf9')]);return _0x472d8e[_0x37630f('0x1bf9')]=[],_0x1c0300;}function _0x195db9(_0x20fb62){const _0x42f992=_0x45f43c,_0x390fd8=_0x256288[_0x42f992('0x132b')]()[_0x42f992('0x134b')](_0x42f992('0xb9c'))['htmlContent'](_0x42f992('0x2061')+_0x472d8e[_0x42f992('0x1bf9')][_0x42f992('0x1e22')]+_0x42f992('0xac6')+_0x42f992('0x1a'))[_0x42f992('0xb2e')](_0x42f992('0x497'))[_0x42f992('0x1e25')](_0x20fb62)['ok']('OK')[_0x42f992('0x26c9')]('CANCEL');_0x256288[_0x42f992('0xb9')](_0x390fd8)[_0x42f992('0x11bf')](function(){const _0x1a6000=_0x42f992;_0x472d8e[_0x1a6000('0x1bf9')][_0x1a6000('0x1f88')](function(_0x255d92){_0x22753f(_0x255d92);}),_0x472d8e[_0x1a6000('0x1bf9')]=[];});}function _0x2f9529(){const _0x40a14d=_0x45f43c;_0x472d8e[_0x40a14d('0x1bf9')]=[];}function _0x56d7d7(){const _0x346f02=_0x45f43c;_0x472d8e[_0x346f02('0x1bf9')]=_0x472d8e[_0x346f02('0xc6e')][_0x346f02('0x19b2')];}}const _0x3d336a=_0x1997a0;_0x3fae75[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0xcbc'),_0x21d0f5('0x16b9'),_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0xb6b'),_0x21d0f5('0x142d'),_0x21d0f5('0x4dc'),'faxQueue','api',_0x21d0f5('0x1150'),_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1'),'crudPermissions'];function _0x3fae75(_0x298797,_0x4c367b,_0x5ecd30,_0x3b637d,_0x5202f7,_0x4e6b02,_0x1c791d,_0x4fb1c0,_0x8ae6a9,_0x34c06e,_0x39a68d,_0x4494e8,_0x37e2bd,_0x169708){const _0x734d48=_0x21d0f5,_0x205b35=this;_0x205b35[_0x734d48('0x32a')]=_0x39a68d['getCurrentUser'](),_0x205b35[_0x734d48('0x120f')]=[],_0x205b35[_0x734d48('0x23e1')]=_0x37e2bd,_0x205b35['license']=_0x4494e8,_0x205b35['crudPermissions']=_0x169708,_0x205b35['hasModulePermissions']={},_0x205b35[_0x734d48('0x2834')]=_0x205b35[_0x734d48('0x23e1')]&&_0x205b35[_0x734d48('0x23e1')][_0x734d48('0x1d4')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x205b35[_0x734d48('0x134b')]='FAX.EDIT_FAXQUEUE',_0x205b35['faxQueue']=angular['copy'](_0x8ae6a9),_0x205b35[_0x734d48('0x4dc')]=_0x4fb1c0,_0x205b35[_0x734d48('0xdbb')]=![];!_0x205b35[_0x734d48('0x189d')]&&(_0x205b35[_0x734d48('0x189d')]={'strategy':_0x734d48('0x1b76'),'timeout':0xa},_0x205b35[_0x734d48('0x134b')]=_0x734d48('0x1a98'),_0x205b35[_0x734d48('0xdbb')]=!![]);_0x205b35[_0x734d48('0x2f')]=_0x95e43e,_0x205b35[_0x734d48('0x1209')]=_0x5a1dbf,_0x205b35[_0x734d48('0x254')]=_0xe4981a,_0x205b35[_0x734d48('0x1bd1')]=_0x1ddc1c,_0x205b35[_0x734d48('0xc4e')]=_0x140a2a;function _0x95e43e(){const _0x20fa1b=_0x734d48;_0x205b35[_0x20fa1b('0x120f')]=[],_0x34c06e[_0x20fa1b('0x189d')][_0x20fa1b('0x259')](_0x205b35[_0x20fa1b('0x189d')])[_0x20fa1b('0x1549')][_0x20fa1b('0x11bf')](function(_0x120695){const _0x44b93f=_0x20fa1b;_0x205b35[_0x44b93f('0x4dc')][_0x44b93f('0x880')](_0x120695['toJSON']()),_0x1c791d['success']({'title':_0x44b93f('0x2041'),'msg':_0x205b35[_0x44b93f('0x189d')][_0x44b93f('0x1909')]?_0x205b35[_0x44b93f('0x189d')][_0x44b93f('0x1909')]+'\x20has\x20been\x20created!':''}),_0x140a2a(_0x120695);})[_0x20fa1b('0x151d')](function(_0x3465cb){const _0x189712=_0x20fa1b;if(_0x3465cb[_0x189712('0x4e8')]&&_0x3465cb[_0x189712('0x4e8')][_0x189712('0x120f')]&&_0x3465cb[_0x189712('0x4e8')][_0x189712('0x120f')][_0x189712('0x1e22')]){_0x205b35[_0x189712('0x120f')]=_0x3465cb[_0x189712('0x4e8')][_0x189712('0x120f')]||[{'message':_0x3465cb[_0x189712('0xaab')](),'type':_0x189712('0x101f')}];for(let _0x25d1cc=0x0;_0x25d1cc<_0x3465cb['data'][_0x189712('0x120f')][_0x189712('0x1e22')];_0x25d1cc+=0x1){_0x1c791d[_0x189712('0x255')]({'title':_0x3465cb[_0x189712('0x4e8')][_0x189712('0x120f')][_0x25d1cc][_0x189712('0x19fd')],'msg':_0x3465cb['data']['errors'][_0x25d1cc]['message']});}}else _0x1c791d[_0x189712('0x255')]({'title':_0x3465cb[_0x189712('0xff9')]?_0x189712('0x574')+_0x3465cb[_0x189712('0xff9')]+_0x189712('0xb0b')+_0x3465cb[_0x189712('0x212f')]:_0x189712('0x101f'),'msg':_0x3465cb[_0x189712('0x4e8')]?JSON[_0x189712('0x3e')](_0x3465cb[_0x189712('0x4e8')]['message']):_0x3465cb[_0x189712('0xaab')]()});});}function _0x5a1dbf(){const _0x14bda7=_0x734d48;_0x205b35['errors']=[],_0x34c06e[_0x14bda7('0x189d')][_0x14bda7('0x5ab')]({'id':_0x205b35[_0x14bda7('0x189d')]['id']},_0x205b35[_0x14bda7('0x189d')])[_0x14bda7('0x1549')][_0x14bda7('0x11bf')](function(_0x1c25d8){const _0x2b84c8=_0x14bda7,_0x22bf3a=_0x36f548()[_0x2b84c8('0x1ad4')](_0x205b35[_0x2b84c8('0x4dc')],{'id':_0x1c25d8['id']});_0x22bf3a&&_0x36f548()[_0x2b84c8('0x47b')](_0x22bf3a,_0x36f548()[_0x2b84c8('0x258')](_0x1c25d8[_0x2b84c8('0x2866')](),_0x36f548()['keys'](_0x22bf3a))),_0x1c791d['success']({'title':_0x2b84c8('0x878'),'msg':_0x205b35[_0x2b84c8('0x189d')][_0x2b84c8('0x1909')]?_0x205b35[_0x2b84c8('0x189d')][_0x2b84c8('0x1909')]+_0x2b84c8('0x1a78'):''}),_0x140a2a(_0x1c25d8);})['catch'](function(_0x1392c9){const _0x111329=_0x14bda7;if(_0x1392c9['data']&&_0x1392c9['data'][_0x111329('0x120f')]&&_0x1392c9[_0x111329('0x4e8')][_0x111329('0x120f')]['length']){_0x205b35[_0x111329('0x120f')]=_0x1392c9[_0x111329('0x4e8')]['errors']||[{'message':_0x1392c9[_0x111329('0xaab')](),'type':_0x111329('0xa91')}];for(let _0x30aef2=0x0;_0x30aef2<_0x1392c9[_0x111329('0x4e8')][_0x111329('0x120f')]['length'];_0x30aef2++){_0x1c791d[_0x111329('0x255')]({'title':_0x1392c9[_0x111329('0x4e8')][_0x111329('0x120f')][_0x30aef2][_0x111329('0x19fd')],'msg':_0x1392c9[_0x111329('0x4e8')][_0x111329('0x120f')][_0x30aef2][_0x111329('0x1b86')]});}}else _0x1c791d[_0x111329('0x255')]({'title':_0x1392c9[_0x111329('0xff9')]?_0x111329('0x574')+_0x1392c9['status']+'\x20-\x20'+_0x1392c9[_0x111329('0x212f')]:_0x111329('0xa91'),'msg':_0x1392c9[_0x111329('0x4e8')]?JSON[_0x111329('0x3e')](_0x1392c9[_0x111329('0x4e8')][_0x111329('0x1b86')]):_0x1392c9[_0x111329('0xaab')]()});});}function _0xe4981a(_0x2c60c6){const _0x3fe3d0=_0x734d48;_0x205b35[_0x3fe3d0('0x120f')]=[];const _0x19dafd=_0x3b637d[_0x3fe3d0('0x132b')]()['title'](_0x3fe3d0('0x1fa9'))[_0x3fe3d0('0x252a')](_0x3fe3d0('0x542'))[_0x3fe3d0('0xb2e')]('Delete\x20FaxQueue')['ok'](_0x3fe3d0('0x1167'))[_0x3fe3d0('0x26c9')](_0x3fe3d0('0x784'))[_0x3fe3d0('0x1e25')](_0x2c60c6);_0x3b637d['show'](_0x19dafd)[_0x3fe3d0('0x11bf')](function(){const _0x1e4da5=_0x3fe3d0;_0x34c06e[_0x1e4da5('0x189d')][_0x1e4da5('0x2088')]({'id':_0x205b35[_0x1e4da5('0x189d')]['id']})[_0x1e4da5('0x1549')]['then'](function(){const _0x231df2=_0x1e4da5;_0x36f548()[_0x231df2('0x14a5')](_0x205b35[_0x231df2('0x4dc')],{'id':_0x205b35[_0x231df2('0x189d')]['id']}),_0x1c791d[_0x231df2('0x2693')]({'title':'FaxQueue\x20properly\x20deleted!','msg':(_0x205b35[_0x231df2('0x189d')][_0x231df2('0x1909')]||_0x231df2('0x189d'))+_0x231df2('0x433')}),_0x140a2a(_0x205b35['faxQueue']);})[_0x1e4da5('0x151d')](function(_0x39e5c6){const _0x336a26=_0x1e4da5;if(_0x39e5c6[_0x336a26('0x4e8')]&&_0x39e5c6['data'][_0x336a26('0x120f')]&&_0x39e5c6['data'][_0x336a26('0x120f')][_0x336a26('0x1e22')]){_0x205b35[_0x336a26('0x120f')]=_0x39e5c6[_0x336a26('0x4e8')][_0x336a26('0x120f')]||[{'message':_0x39e5c6[_0x336a26('0xaab')](),'type':_0x336a26('0x1e04')}];for(let _0xd614ba=0x0;_0xd614ba<_0x39e5c6[_0x336a26('0x4e8')][_0x336a26('0x120f')][_0x336a26('0x1e22')];_0xd614ba++){_0x1c791d[_0x336a26('0x255')]({'title':_0x39e5c6[_0x336a26('0x4e8')][_0x336a26('0x120f')][_0xd614ba][_0x336a26('0x19fd')],'msg':_0x39e5c6[_0x336a26('0x4e8')][_0x336a26('0x120f')][_0xd614ba][_0x336a26('0x1b86')]});}}else _0x1c791d['error']({'title':_0x39e5c6['status']?'API:'+_0x39e5c6[_0x336a26('0xff9')]+_0x336a26('0xb0b')+_0x39e5c6[_0x336a26('0x212f')]:'api.faxQueue.delete','msg':_0x39e5c6[_0x336a26('0x4e8')]?JSON['stringify'](_0x39e5c6['data'][_0x336a26('0x1b86')]):_0x39e5c6[_0x336a26('0x1b86')]||_0x39e5c6[_0x336a26('0xaab')]()});});},function(){});}function _0x1ddc1c(_0x531ebf){return _0x531ebf===null?undefined:new Date(_0x531ebf);}function _0x140a2a(_0x4e2ba5){const _0x8b2e9f=_0x734d48;_0x3b637d[_0x8b2e9f('0x237e')](_0x4e2ba5);}}const _0x382f84=_0x3fae75;_0x264b3b[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0x142d'),_0x21d0f5('0x12a5'),_0x21d0f5('0x189d'),_0x21d0f5('0x4dc'),_0x21d0f5('0x25f9'),'$translate','Auth',_0x21d0f5('0xb25')];function _0x264b3b(_0x23e8dd,_0x3b112f,_0x4995a5,_0x38c19c,_0xdd5fa6,_0x2fd006,_0x545e6f,_0xda3b97,_0x2cd34,_0x565df7){const _0x340e15=_0x21d0f5,_0xc2592f=this;_0xc2592f['currentUser']=_0x2cd34['getCurrentUser'](),_0xc2592f[_0x340e15('0x189d')]=_0xdd5fa6,_0xc2592f['crudPermissions']=_0x565df7,_0xc2592f['realtime']=_0x545e6f,_0xc2592f[_0x340e15('0x22')]=[],_0xc2592f[_0x340e15('0x63')]=[],_0xc2592f['selectedItems']=[],_0xc2592f['startingAllowedItems']=[],_0xc2592f['startingSelectedItems']=[],_0xc2592f[_0x340e15('0x1eda')]=![],_0xc2592f['onInit']=_0x163d11,_0xc2592f[_0x340e15('0x280')]=_0x2fb324,_0xc2592f[_0x340e15('0xc4e')]=_0x3d98c4,_0xc2592f[_0x340e15('0xec5')]={'readOnly':!_0xc2592f[_0x340e15('0xb25')]['canEdit'],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':'name','line1':'fullname','line2':['name',_0x340e15('0x1a04')],'line3':'','labelAll':_0xda3b97['instant'](_0x340e15('0x250e')),'labelSelected':_0xda3b97[_0x340e15('0x10c2')](_0x340e15('0x24b4')),'transferCallback':function(){const _0x5f23a8=_0x340e15,_0x75ab=_0x36f548()[_0x5f23a8('0x1a1b')](_0xc2592f[_0x5f23a8('0x21ed')],_0xc2592f[_0x5f23a8('0x26cc')],'id');_0xc2592f['pendingChanges']=_0x36f548()[_0x5f23a8('0x1fc5')](_0x75ab)?![]:!![];}};function _0x163d11(){const _0x3f544e=_0x340e15;return _0x2cd34[_0x3f544e('0x4ee')](_0x3f544e('0xf45'))?_0x48fc33()[_0x3f544e('0x151d')](function(_0x445bf9){const _0x350cb4=_0x3f544e;_0x4995a5['error']({'title':_0x445bf9['status']?'API:'+_0x445bf9[_0x350cb4('0xff9')]+_0x350cb4('0xb0b')+_0x445bf9[_0x350cb4('0x212f')]:_0x350cb4('0x912'),'msg':_0x445bf9[_0x350cb4('0xff9')]?JSON['stringify'](_0x445bf9['data']):_0x445bf9[_0x350cb4('0xaab')]()});}):_0x1d6ebc()[_0x3f544e('0x11bf')](function(_0x5a5685){const _0x504c31=_0x3f544e;return _0xc2592f[_0x504c31('0xe6')]=_0x5a5685,_0x48fc33();})['catch'](function(_0x1eb7ed){const _0x4fbfb5=_0x3f544e;_0x4995a5[_0x4fbfb5('0x255')]({'title':_0x1eb7ed[_0x4fbfb5('0xff9')]?_0x4fbfb5('0x574')+_0x1eb7ed[_0x4fbfb5('0xff9')]+_0x4fbfb5('0xb0b')+_0x1eb7ed[_0x4fbfb5('0x212f')]:_0x4fbfb5('0x912'),'msg':_0x1eb7ed[_0x4fbfb5('0xff9')]?JSON[_0x4fbfb5('0x3e')](_0x1eb7ed[_0x4fbfb5('0x4e8')]):_0x1eb7ed[_0x4fbfb5('0xaab')]()});});}function _0x1d6ebc(){return _0x3b112f(function(_0x738db9,_0x147e79){const _0x3915e3=a0_0xaf0c;_0x38c19c[_0x3915e3('0x1d63')][_0x3915e3('0xbaa')]({'userProfileId':_0xc2592f['currentUser'][_0x3915e3('0x781')],'name':_0x3915e3('0x4b1')})[_0x3915e3('0x1549')]['then'](function(_0x5087f7){const _0x36a36f=_0x3915e3,_0x1cfbcf=_0x5087f7&&_0x5087f7[_0x36a36f('0x19b2')]?_0x5087f7[_0x36a36f('0x19b2')][0x0]:null;_0x738db9(_0x1cfbcf);})[_0x3915e3('0x151d')](function(_0x4b1dd1){_0x147e79(_0x4b1dd1);});});}function _0x48fc33(){return _0x3b112f(function(_0x355ab5,_0x52b218){const _0x1c4721=a0_0xaf0c;return _0x3b4452()['then'](function(_0x1dfd2e){const _0x10dc6c=a0_0xaf0c;return _0xc2592f['items']=_0x1dfd2e[_0x10dc6c('0x19b2')]?_0x1dfd2e[_0x10dc6c('0x19b2')]:[],_0x2cd34[_0x10dc6c('0x4ee')](_0x10dc6c('0xf45'))?_0x1dfd2e:_0xc2592f[_0x10dc6c('0xe6')]?_0xc2592f[_0x10dc6c('0xe6')][_0x10dc6c('0xf11')]?_0x1dfd2e:_0x424d9e():null;})['then'](function(_0x48ac84){const _0x2c0e4b=a0_0xaf0c,_0x242097=_0x48ac84&&_0x48ac84[_0x2c0e4b('0x19b2')]?_0x48ac84[_0x2c0e4b('0x19b2')]:[];return _0xc2592f[_0x2c0e4b('0x63')]=_0x36f548()['map'](_0x242097,function(_0x569f85){const _0x2a5a45=_0x2c0e4b;return _0x36f548()[_0x2a5a45('0x1ad4')](_0xc2592f['items'],{'id':_0x2cd34[_0x2a5a45('0x4ee')](_0x2a5a45('0xf45'))||_0xc2592f[_0x2a5a45('0xe6')][_0x2a5a45('0xf11')]?_0x569f85['id']:_0x569f85[_0x2a5a45('0x15a5')]});}),_0xc2592f['startingAllowedItems']=angular[_0x2c0e4b('0x6fb')](_0xc2592f[_0x2c0e4b('0x63')]),_0xc2592f[_0x2c0e4b('0x22')][_0x2c0e4b('0x1f88')](function(_0x1dada9){const _0x28aefc=_0x2c0e4b,_0x27bcfa=_0x36f548()[_0x28aefc('0x1ad4')](_0xc2592f['allowedItems'],{'id':_0x1dada9['id']});_0x2cd34[_0x28aefc('0x4ee')](_0x28aefc('0xf45'))?_0x1dada9['isValid']=!![]:_0x1dada9[_0x28aefc('0xde9')]=typeof _0x27bcfa!==_0x28aefc('0x13e9')?!![]:![];}),_0x20d6a8();})[_0x1c4721('0x11bf')](function(_0x357f5f){const _0x341e25=_0x1c4721,_0x1cb297=_0x357f5f&&_0x357f5f[_0x341e25('0x19b2')]?_0x357f5f[_0x341e25('0x19b2')]:[];_0xc2592f[_0x341e25('0x26cc')]=_0x36f548()[_0x341e25('0x2171')](_0x1cb297,function(_0x19cde4){const _0x183a96=_0x341e25,_0x5d9dc0=_0x36f548()[_0x183a96('0x1ad4')](_0xc2592f[_0x183a96('0x22')],{'id':_0x19cde4['id']});return _0x5d9dc0['penalty']=_0x19cde4[_0x183a96('0xf2c')]?_0x183a96('0x1caa')+_0x19cde4['UserFaxQueue'][_0x183a96('0xf47')]:'',_0x5d9dc0[_0x183a96('0x1a04')]=typeof _0x19cde4[_0x183a96('0x1a04')]!=='undefined'?'<'+_0x19cde4[_0x183a96('0x1a04')]+'>':'',_0x5d9dc0;}),_0xc2592f[_0x341e25('0x21ed')]=angular[_0x341e25('0x6fb')](_0xc2592f[_0x341e25('0x26cc')]),_0xc2592f[_0x341e25('0xec5')][_0x341e25('0x26cc')]=_0xc2592f[_0x341e25('0x26cc')],_0xc2592f[_0x341e25('0xec5')][_0x341e25('0x22')]=_0x36f548()[_0x341e25('0x2753')](_0xc2592f['allowedItems'],_0xc2592f[_0x341e25('0xec5')][_0x341e25('0x26cc')],'id'),_0x355ab5();})['catch'](function(_0x57b314){_0x52b218(_0x57b314);});});}function _0x424d9e(){return _0x3b112f(function(_0x369557,_0x7f214a){const _0xaf98ed=a0_0xaf0c;return _0x38c19c[_0xaf98ed('0x26d1')][_0xaf98ed('0xbaa')]({'sectionId':_0xc2592f[_0xaf98ed('0xe6')]['id'],'nolimit':!![]})[_0xaf98ed('0x1549')][_0xaf98ed('0x11bf')](function(_0xe0f381){_0x369557(_0xe0f381);})[_0xaf98ed('0x151d')](function(_0x305b55){_0x7f214a(_0x305b55);});});}function _0x20d6a8(){return _0x3b112f(function(_0x4f12b2,_0x2baa50){const _0x39603b=a0_0xaf0c;return _0x38c19c[_0x39603b('0x189d')][_0x39603b('0x2783')]({'id':_0xc2592f[_0x39603b('0x189d')]['id'],'fields':_0x39603b('0x13d3'),'nolimit':!![],'role':'agent'})[_0x39603b('0x1549')]['then'](function(_0x654ab){_0x4f12b2(_0x654ab);})[_0x39603b('0x151d')](function(_0x489a01){_0x2baa50(_0x489a01);});});}function _0x3b4452(){return _0x3b112f(function(_0x503f4d,_0x5115a5){const _0xf06dd2=a0_0xaf0c;return _0x38c19c[_0xf06dd2('0x21d9')][_0xf06dd2('0xbaa')]({'fields':_0xf06dd2('0x13d3'),'nolimit':!![],'role':'agent'})[_0xf06dd2('0x1549')][_0xf06dd2('0x11bf')](function(_0x577b60){_0x503f4d(_0x577b60);})[_0xf06dd2('0x151d')](function(_0x3627e3){_0x5115a5(_0x3627e3);});});}function _0x1fc07(_0x4635a7){return _0x3b112f(function(_0x126cd4,_0x5a8486){const _0x558c0a=a0_0xaf0c;_0x36f548()[_0x558c0a('0x1fc5')](_0x4635a7)?_0x126cd4():_0x38c19c[_0x558c0a('0x189d')][_0x558c0a('0x110a')]({'id':_0xc2592f['faxQueue']['id'],'ids':_0x36f548()[_0x558c0a('0x2171')](_0x4635a7,'id')})[_0x558c0a('0x1549')]['then'](function(){_0x126cd4();})['catch'](function(_0x37868a){_0x5a8486(_0x37868a);});});}function _0x116284(_0x41a467){return _0x3b112f(function(_0xc4445b,_0x312734){const _0x392352=a0_0xaf0c;_0x36f548()[_0x392352('0x1fc5')](_0x41a467)?_0xc4445b():_0x38c19c[_0x392352('0x189d')][_0x392352('0x1ec0')]({'id':_0xc2592f[_0x392352('0x189d')]['id'],'ids':_0x36f548()[_0x392352('0x2171')](_0x41a467,'id')})['$promise'][_0x392352('0x11bf')](function(){_0xc4445b();})[_0x392352('0x151d')](function(_0x582020){_0x312734(_0x582020);});});}function _0x2fb324(){const _0x5a976e=_0x340e15,_0x19b321=_0x36f548()[_0x5a976e('0x2753')](_0xc2592f[_0x5a976e('0x21ed')],_0xc2592f[_0x5a976e('0x26cc')],'id'),_0x23853d=_0x36f548()[_0x5a976e('0x2753')](_0xc2592f[_0x5a976e('0x26cc')],_0xc2592f[_0x5a976e('0x21ed')],'id');return _0x116284(_0x19b321)[_0x5a976e('0x11bf')](function(){return _0x1fc07(_0x23853d);})[_0x5a976e('0x11bf')](function(){const _0x335ff1=_0x5a976e;_0xc2592f['pendingChanges']=![],_0xc2592f[_0x335ff1('0x1c6f')]=angular['copy'](_0xc2592f['allowedItems']),_0xc2592f[_0x335ff1('0x21ed')]=angular['copy'](_0xc2592f[_0x335ff1('0x26cc')]),_0x4995a5[_0x335ff1('0x2693')]({'title':_0x335ff1('0x2243'),'msg':_0x335ff1('0x2273')});})[_0x5a976e('0x151d')](function(_0x218aa0){const _0x440dad=_0x5a976e;_0x4995a5[_0x440dad('0x255')]({'title':_0x218aa0['status']?_0x440dad('0x574')+_0x218aa0[_0x440dad('0xff9')]+_0x440dad('0xb0b')+_0x218aa0[_0x440dad('0x212f')]:_0x440dad('0x1b7f'),'msg':_0x218aa0[_0x440dad('0xff9')]?JSON[_0x440dad('0x3e')](_0x218aa0[_0x440dad('0x4e8')]):_0x218aa0['toString']()});});}function _0x3d98c4(){_0x23e8dd['hide']();}}const _0x5ea6b6=_0x264b3b;_0x1978e1['$inject']=['$mdDialog','$q',_0x21d0f5('0x142d'),_0x21d0f5('0x12a5'),_0x21d0f5('0x189d'),_0x21d0f5('0xb6b'),_0x21d0f5('0x1150'),_0x21d0f5('0xb25')];function _0x1978e1(_0x217f6b,_0x5019eb,_0x4cc1ec,_0x1b4da6,_0x3cdb3e,_0xe00d0c,_0x4e2f01,_0x174fb2){const _0x364086=_0x21d0f5,_0x55c1ac=this;_0x55c1ac[_0x364086('0x32a')]=_0x4e2f01[_0x364086('0x2428')](),_0x55c1ac['faxQueue']=_0x3cdb3e,_0x55c1ac[_0x364086('0xb25')]=_0x174fb2,_0x55c1ac[_0x364086('0x22')]=[],_0x55c1ac[_0x364086('0x63')]=[],_0x55c1ac['selectedItems']=[],_0x55c1ac[_0x364086('0x1c6f')]=[],_0x55c1ac[_0x364086('0x21ed')]=[],_0x55c1ac[_0x364086('0x1eda')]=![],_0x55c1ac[_0x364086('0xec5')]={'readOnly':!_0x55c1ac[_0x364086('0xb25')][_0x364086('0x25db')],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':'name','line1':'name','line2':'','line3':'','labelAll':_0xe00d0c[_0x364086('0x10c2')]('APP.ALL_TEAMS'),'labelSelected':_0xe00d0c[_0x364086('0x10c2')](_0x364086('0x16b7')),'transferCallback':function(){const _0x9b1248=_0x364086,_0x176632=_0x36f548()[_0x9b1248('0x1a1b')](_0x55c1ac[_0x9b1248('0x21ed')],_0x55c1ac[_0x9b1248('0x26cc')],'id');_0x55c1ac[_0x9b1248('0x1eda')]=_0x36f548()[_0x9b1248('0x1fc5')](_0x176632)?![]:!![];}},_0x55c1ac[_0x364086('0x277c')]=_0x3feb84,_0x55c1ac['saveTeams']=_0x1a6883,_0x55c1ac[_0x364086('0xc4e')]=_0x26eb10;function _0x3feb84(){const _0x26ae50=_0x364086;return _0x4e2f01['hasRole'](_0x26ae50('0xf45'))?_0x20ddbd()[_0x26ae50('0x151d')](function(_0x3d6c47){const _0x31d026=_0x26ae50;_0x4cc1ec[_0x31d026('0x255')]({'title':_0x3d6c47[_0x31d026('0xff9')]?_0x31d026('0x574')+_0x3d6c47[_0x31d026('0xff9')]+_0x31d026('0xb0b')+_0x3d6c47[_0x31d026('0x212f')]:_0x31d026('0x2059'),'msg':_0x3d6c47['status']?JSON[_0x31d026('0x3e')](_0x3d6c47[_0x31d026('0x4e8')]):_0x3d6c47[_0x31d026('0xaab')]()});}):_0x5baa06()[_0x26ae50('0x11bf')](function(_0x4f3f0f){return _0x55c1ac['section']=_0x4f3f0f,_0x20ddbd();})[_0x26ae50('0x151d')](function(_0x1a0aef){const _0x2ead24=_0x26ae50;_0x4cc1ec['error']({'title':_0x1a0aef[_0x2ead24('0xff9')]?_0x2ead24('0x574')+_0x1a0aef[_0x2ead24('0xff9')]+'\x20-\x20'+_0x1a0aef[_0x2ead24('0x212f')]:_0x2ead24('0x2059'),'msg':_0x1a0aef[_0x2ead24('0xff9')]?JSON[_0x2ead24('0x3e')](_0x1a0aef[_0x2ead24('0x4e8')]):_0x1a0aef[_0x2ead24('0xaab')]()});});}function _0x5baa06(){return _0x5019eb(function(_0x3f2eb1,_0x5dadd0){const _0x4bea3b=a0_0xaf0c;_0x1b4da6[_0x4bea3b('0x1d63')][_0x4bea3b('0xbaa')]({'userProfileId':_0x55c1ac[_0x4bea3b('0x32a')][_0x4bea3b('0x781')],'name':_0x4bea3b('0xc3f')})[_0x4bea3b('0x1549')][_0x4bea3b('0x11bf')](function(_0x3931a6){const _0x1f79a2=_0x4bea3b,_0x4b325a=_0x3931a6&&_0x3931a6['rows']?_0x3931a6[_0x1f79a2('0x19b2')][0x0]:null;_0x3f2eb1(_0x4b325a);})[_0x4bea3b('0x151d')](function(_0x41ce77){_0x5dadd0(_0x41ce77);});});}function _0x20ddbd(){return _0x5019eb(function(_0x2a53cb,_0x37fe46){const _0x430379=a0_0xaf0c;return _0x5a87ab()[_0x430379('0x11bf')](function(_0x380b50){const _0xaea51b=_0x430379;return _0x55c1ac[_0xaea51b('0x22')]=_0x380b50['rows']?_0x380b50[_0xaea51b('0x19b2')]:[],_0x4e2f01[_0xaea51b('0x4ee')](_0xaea51b('0xf45'))?_0x380b50:_0x55c1ac['section']?_0x55c1ac[_0xaea51b('0xe6')][_0xaea51b('0xf11')]?_0x380b50:_0x5ac997():null;})[_0x430379('0x11bf')](function(_0x5303e6){const _0x2a409d=_0x430379,_0x5f0673=_0x5303e6&&_0x5303e6[_0x2a409d('0x19b2')]?_0x5303e6[_0x2a409d('0x19b2')]:[];return _0x55c1ac['allowedItems']=_0x36f548()[_0x2a409d('0x2171')](_0x5f0673,function(_0x310031){const _0x43df4e=_0x2a409d;return _0x36f548()[_0x43df4e('0x1ad4')](_0x55c1ac[_0x43df4e('0x22')],{'id':_0x4e2f01[_0x43df4e('0x4ee')](_0x43df4e('0xf45'))||_0x55c1ac['section'][_0x43df4e('0xf11')]?_0x310031['id']:_0x310031[_0x43df4e('0x15a5')]});}),_0x55c1ac[_0x2a409d('0x22')]['forEach'](function(_0x54decd){const _0x160336=_0x2a409d,_0x3c727b=_0x36f548()[_0x160336('0x1ad4')](_0x55c1ac[_0x160336('0x63')],{'id':_0x54decd['id']});_0x4e2f01['hasRole'](_0x160336('0xf45'))?_0x54decd['isValid']=!![]:_0x54decd[_0x160336('0xde9')]=typeof _0x3c727b!==_0x160336('0x13e9')?!![]:![];}),_0x182701();})[_0x430379('0x11bf')](function(_0x279b4e){const _0x14ca6e=_0x430379,_0xe220be=_0x279b4e&&_0x279b4e[_0x14ca6e('0x19b2')]?_0x279b4e[_0x14ca6e('0x19b2')]:[];_0x55c1ac[_0x14ca6e('0x26cc')]=_0x36f548()[_0x14ca6e('0x2171')](_0xe220be,function(_0x474dd7){const _0x49846f=_0x14ca6e;return _0x36f548()['find'](_0x55c1ac[_0x49846f('0x22')],{'id':_0x474dd7['id']});}),_0x55c1ac[_0x14ca6e('0x21ed')]=angular[_0x14ca6e('0x6fb')](_0x55c1ac[_0x14ca6e('0x26cc')]),_0x55c1ac['dualMultiselectOptions'][_0x14ca6e('0x26cc')]=_0x55c1ac[_0x14ca6e('0x26cc')],_0x55c1ac['dualMultiselectOptions'][_0x14ca6e('0x22')]=_0x36f548()[_0x14ca6e('0x2753')](_0x55c1ac[_0x14ca6e('0x63')],_0x55c1ac['dualMultiselectOptions']['selectedItems'],'id'),_0x2a53cb();})[_0x430379('0x151d')](function(_0x5232b9){_0x37fe46(_0x5232b9);});});}function _0x5ac997(){return _0x5019eb(function(_0x1ba00f,_0x15684f){const _0x497878=a0_0xaf0c;return _0x1b4da6['userProfileResource'][_0x497878('0xbaa')]({'sectionId':_0x55c1ac[_0x497878('0xe6')]['id'],'nolimit':!![]})[_0x497878('0x1549')][_0x497878('0x11bf')](function(_0x155963){_0x1ba00f(_0x155963);})[_0x497878('0x151d')](function(_0x19f05f){_0x15684f(_0x19f05f);});});}function _0x182701(){return _0x5019eb(function(_0x4a31f6,_0x5a4359){const _0xd1a92f=a0_0xaf0c;return _0x1b4da6['faxQueue'][_0xd1a92f('0x306')]({'id':_0x55c1ac[_0xd1a92f('0x189d')]['id'],'fields':_0xd1a92f('0x721'),'nolimit':!![]})[_0xd1a92f('0x1549')][_0xd1a92f('0x11bf')](function(_0x489610){_0x4a31f6(_0x489610);})['catch'](function(_0x3ab5f3){_0x5a4359(_0x3ab5f3);});});}function _0x5a87ab(){return _0x5019eb(function(_0x49f7a9,_0x11fbc5){const _0xa4b591=a0_0xaf0c;return _0x1b4da6[_0xa4b591('0xae6')][_0xa4b591('0xbaa')]({'fields':_0xa4b591('0x721'),'nolimit':!![]})[_0xa4b591('0x1549')][_0xa4b591('0x11bf')](function(_0x4250b1){_0x49f7a9(_0x4250b1);})[_0xa4b591('0x151d')](function(_0x4d402f){_0x11fbc5(_0x4d402f);});});}function _0xb5f953(_0x53c2c7){return _0x5019eb(function(_0x2a54b2,_0xd2c9fd){const _0xd37fdb=a0_0xaf0c;_0x36f548()[_0xd37fdb('0x1fc5')](_0x53c2c7)?_0x2a54b2():_0x1b4da6[_0xd37fdb('0x189d')][_0xd37fdb('0x1202')]({'id':_0x55c1ac[_0xd37fdb('0x189d')]['id'],'ids':_0x36f548()['map'](_0x53c2c7,'id')})[_0xd37fdb('0x1549')][_0xd37fdb('0x11bf')](function(){_0x2a54b2();})[_0xd37fdb('0x151d')](function(_0x315f8e){_0xd2c9fd(_0x315f8e);});});}function _0x3cf968(_0xa121be){return _0x5019eb(function(_0x2b255c,_0x1cf08f){const _0x58620e=a0_0xaf0c;_0x36f548()['isEmpty'](_0xa121be)?_0x2b255c():_0x1b4da6[_0x58620e('0x189d')][_0x58620e('0xaea')]({'id':_0x55c1ac['faxQueue']['id'],'ids':_0x36f548()[_0x58620e('0x2171')](_0xa121be,'id')})[_0x58620e('0x1549')][_0x58620e('0x11bf')](function(){_0x2b255c();})[_0x58620e('0x151d')](function(_0x30ea7f){_0x1cf08f(_0x30ea7f);});});}function _0x1a6883(){const _0x3c8b0d=_0x364086,_0x49229c=_0x36f548()[_0x3c8b0d('0x2753')](_0x55c1ac[_0x3c8b0d('0x21ed')],_0x55c1ac[_0x3c8b0d('0x26cc')],'id'),_0x428895=_0x36f548()['differenceBy'](_0x55c1ac['selectedItems'],_0x55c1ac['startingSelectedItems'],'id');return _0x3cf968(_0x49229c)[_0x3c8b0d('0x11bf')](function(){return _0xb5f953(_0x428895);})['then'](function(){const _0x12a3c0=_0x3c8b0d;_0x55c1ac['pendingChanges']=![],_0x55c1ac[_0x12a3c0('0x1c6f')]=angular['copy'](_0x55c1ac[_0x12a3c0('0x63')]),_0x55c1ac[_0x12a3c0('0x21ed')]=angular[_0x12a3c0('0x6fb')](_0x55c1ac[_0x12a3c0('0x26cc')]),_0x4cc1ec['success']({'title':_0x12a3c0('0x2243'),'msg':_0x12a3c0('0x1a68')});})[_0x3c8b0d('0x151d')](function(_0x59365d){const _0x1ada85=_0x3c8b0d;_0x4cc1ec[_0x1ada85('0x255')]({'title':_0x59365d['status']?_0x1ada85('0x574')+_0x59365d['status']+_0x1ada85('0xb0b')+_0x59365d['statusText']:_0x1ada85('0x1b7f'),'msg':_0x59365d['status']?JSON[_0x1ada85('0x3e')](_0x59365d[_0x1ada85('0x4e8')]):_0x59365d['toString']()});});}function _0x26eb10(){const _0x1fb248=_0x364086;_0x217f6b[_0x1fb248('0x237e')]();}}const _0x4fa186=_0x1978e1,_0x539cad=_0x351988['p']+_0x21d0f5('0x26a7');_0x714f56[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0xcbc'),_0x21d0f5('0x16b9'),_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),_0x21d0f5('0xb6b'),_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1'),_0x21d0f5('0x12a5'),_0x21d0f5('0x142d'),_0x21d0f5('0x1150'),'faxQueue','userProfileSection'];function _0x714f56(_0x39ec91,_0x37a7b9,_0x26327a,_0x295d69,_0x549ade,_0x56d002,_0x3fc757,_0x45d7d7,_0x4ecbc7,_0xadf734,_0x3e8874,_0x31e472){const _0x2ae04d=_0x21d0f5,_0x194bc2=this;_0x194bc2[_0x2ae04d('0x32a')]=_0xadf734[_0x2ae04d('0x2428')](),_0x194bc2[_0x2ae04d('0x17ff')]=_0x56d002,_0x194bc2[_0x2ae04d('0x23e1')]=_0x3fc757,_0x194bc2[_0x2ae04d('0x2834')]=_0x194bc2[_0x2ae04d('0x23e1')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x194bc2[_0x2ae04d('0x1d9a')]=_0x37a7b9[_0x2ae04d('0x1797')]()+'://'+_0x37a7b9[_0x2ae04d('0x14ec')](),_0x194bc2[_0x2ae04d('0x189d')]=_0x3e8874||_0x39ec91['params'][_0x2ae04d('0x189d')]||{},_0x194bc2[_0x2ae04d('0x1d63')]=_0x31e472&&_0x31e472[_0x2ae04d('0x27d2')]==0x1?_0x31e472[_0x2ae04d('0x19b2')][0x0]:null,_0x194bc2[_0x2ae04d('0xb25')]=_0xadf734[_0x2ae04d('0x1530')](_0x194bc2[_0x2ae04d('0x1d63')]?_0x194bc2['userProfileSection']['crudPermissions']:null),_0x194bc2[_0x2ae04d('0x2c9')]={},_0x194bc2['selectedTab']=_0x39ec91[_0x2ae04d('0x1ab3')]['tab']||0x0,_0x194bc2[_0x2ae04d('0x11b8')]=_0x26b8ac,_0x194bc2['agentadddialog']=_0x18d927,_0x194bc2[_0x2ae04d('0xb30')]=_0x4ecbc7[_0x2ae04d('0x870')],_0x194bc2['gotoFaxQueues']=_0xd42ec7,_0x194bc2[_0x2ae04d('0x1209')]=_0x3b8a3a;function _0x26b8ac(_0x3db503,_0x2461fd){const _0x29cdf5=_0x2ae04d;_0x26327a[_0x29cdf5('0xb9')]({'controller':_0x29cdf5('0x247c'),'controllerAs':'vm','templateUrl':_0x539cad,'parent':angular[_0x29cdf5('0x1e73')](_0x295d69[_0x29cdf5('0x1d2')]),'targetEvent':_0x2461fd,'clickOutsideToClose':!![],'locals':{'faxQueue':_0x3db503,'faxQueues':_0x194bc2[_0x29cdf5('0x4dc')]?_0x194bc2[_0x29cdf5('0x4dc')][_0x29cdf5('0x19b2')]:[],'crudPermissions':_0x194bc2[_0x29cdf5('0xb25')]}});}function _0x18d927(_0x4e0684,_0x1b6e1c){const _0x5b2f7c=_0x2ae04d;_0x26327a['show']({'controller':_0x5b2f7c('0x1e8d'),'controllerAs':'vm','templateUrl':_0x49dcb2,'parent':angular[_0x5b2f7c('0x1e73')](_0x295d69['body']),'targetEvent':_0x1b6e1c,'clickOutsideToClose':!![],'locals':{'faxQueue':_0x4e0684,'faxQueues':_0x194bc2['faxQueues']?_0x194bc2[_0x5b2f7c('0x4dc')]['rows']:[],'crudPermissions':_0x194bc2[_0x5b2f7c('0xb25')],'realtime':![]}});}function _0xd42ec7(){const _0x717245=_0x2ae04d;_0x39ec91['go'](_0x717245('0x1647'),{},{'reload':_0x717245('0x1647')});}function _0x3b8a3a(){const _0x31c2dc=_0x2ae04d;_0x45d7d7[_0x31c2dc('0x189d')][_0x31c2dc('0x5ab')]({'id':_0x194bc2[_0x31c2dc('0x189d')]['id']},_0x194bc2[_0x31c2dc('0x189d')])['$promise']['then'](function(){const _0xcb0f68=_0x31c2dc;_0x4ecbc7[_0xcb0f68('0x2693')]({'title':_0xcb0f68('0x343'),'msg':_0x194bc2['faxQueue'][_0xcb0f68('0x1909')]?_0x194bc2[_0xcb0f68('0x189d')][_0xcb0f68('0x1909')]+_0xcb0f68('0xd7'):''});})[_0x31c2dc('0x151d')](function(_0x10f78c){const _0x13fb96=_0x31c2dc;_0x4ecbc7[_0x13fb96('0x255')]({'title':_0x10f78c[_0x13fb96('0xff9')]?'API:'+_0x10f78c[_0x13fb96('0xff9')]+_0x13fb96('0xb0b')+_0x10f78c[_0x13fb96('0x212f')]:_0x13fb96('0x2839'),'msg':_0x10f78c['data']?JSON[_0x13fb96('0x3e')](_0x10f78c[_0x13fb96('0x4e8')]):_0x10f78c[_0x13fb96('0xaab')]()});});}}const _0x59164c=_0x714f56;_0x55dff3['$inject']=[_0x21d0f5('0x1b80'),_0x21d0f5('0x2143'),_0x21d0f5('0xcbc'),_0x21d0f5('0x18fe'),_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),_0x21d0f5('0x17f5'),_0x21d0f5('0xb6b'),_0x21d0f5('0x4dc'),_0x21d0f5('0x25bc'),_0x21d0f5('0x1d63'),'api',_0x21d0f5('0xda9'),_0x21d0f5('0x142d'),'Auth','license',_0x21d0f5('0x23e1')];function _0x55dff3(_0x12a429,_0x305a9e,_0x2f9a80,_0x1a6ee0,_0x4dcb98,_0x4603e1,_0x4a4c79,_0x349b7a,_0x8f20e,_0xf24366,_0x32fb67,_0x4e27e4,_0x290597,_0x1476e4,_0x327a64,_0x59f3ce,_0x16e862){const _0xbc1ab=_0x21d0f5,_0x4cdb4a=this;_0x4cdb4a[_0xbc1ab('0x17ff')]=_0x59f3ce,_0x4cdb4a[_0xbc1ab('0x23e1')]=_0x16e862,_0x4cdb4a[_0xbc1ab('0x32a')]=_0x327a64[_0xbc1ab('0x2428')](),_0x4cdb4a[_0xbc1ab('0x4dc')]=_0x8f20e||{'count':0x0,'rows':[]},_0x4cdb4a['userProfile']=_0xf24366,_0x4cdb4a[_0xbc1ab('0x1d63')]=_0x32fb67&&_0x32fb67[_0xbc1ab('0x27d2')]==0x1?_0x32fb67[_0xbc1ab('0x19b2')][0x0]:null,_0x4cdb4a[_0xbc1ab('0xb25')]=_0x327a64[_0xbc1ab('0x1530')](_0x4cdb4a[_0xbc1ab('0x1d63')]?_0x4cdb4a['userProfileSection'][_0xbc1ab('0xb25')]:null),_0x4cdb4a[_0xbc1ab('0x13e8')]=_0xbc1ab('0x4dc'),_0x4cdb4a[_0xbc1ab('0x724')]='',_0x4cdb4a['listOrderAsc']=null,_0x4cdb4a[_0xbc1ab('0x15a4')]=[],_0x4cdb4a[_0xbc1ab('0x1f2a')]={'fields':'createdAt,updatedAt,id,name,strategy,timeout,description','sort':_0xbc1ab('0x1c74'),'channel':'fax','limit':0xa,'page':0x1},_0x4cdb4a[_0xbc1ab('0x1612')]=_0x36f548()[_0xbc1ab('0x2130')]([{'option':_0xbc1ab('0x1ace'),'value':_0xbc1ab('0x16c6')},{'option':_0xbc1ab('0x2510'),'value':_0xbc1ab('0x166d')}],function(_0x40a3a5){const _0x509d62=_0xbc1ab;return _0x36f548()[_0x509d62('0x814')](_0x40a3a5['value'],new RegExp('\x27','g'),'');}),_0x4cdb4a['editstate']=_0x1698a4,_0x4cdb4a['teamadddialog']=_0xf8cd40,_0x4cdb4a[_0xbc1ab('0x2363')]=_0xf45694,_0x4cdb4a['deleteconfirm']=_0x2d5ce0,_0x4cdb4a[_0xbc1ab('0x19a9')]=_0x3adba1,_0x4cdb4a[_0xbc1ab('0x2693')]=_0x434cec,_0x4cdb4a['getFaxQueues']=_0x4242f3,_0x4cdb4a[_0xbc1ab('0x12d2')]=_0x9a5736,_0x4cdb4a[_0xbc1ab('0x254')]=_0x5462c9,_0x4cdb4a['exportSelectedFaxQueues']=_0x49e4b6,_0x4cdb4a[_0xbc1ab('0xdb7')]=_0x2cee14,_0x4cdb4a[_0xbc1ab('0x1fe2')]=_0x1219d6,_0x4cdb4a[_0xbc1ab('0x227c')]=_0x15dede;function _0x1698a4(_0x8a3c6e){const _0x500fe8=_0xbc1ab;_0x2f9a80['go'](_0x500fe8('0x16da'),{'id':_0x8a3c6e['id'],'faxQueue':_0x8a3c6e,'crudPermissions':_0x4cdb4a[_0x500fe8('0xb25')]});}function _0xf8cd40(_0x41d275,_0xed5a53){const _0x1c2dad=_0xbc1ab;_0x4dcb98['show']({'controller':_0x1c2dad('0x247c'),'controllerAs':'vm','templateUrl':_0x539cad,'parent':angular[_0x1c2dad('0x1e73')](_0x4603e1[_0x1c2dad('0x1d2')]),'targetEvent':_0xed5a53,'clickOutsideToClose':!![],'locals':{'faxQueue':_0x41d275,'faxQueues':_0x4cdb4a[_0x1c2dad('0x4dc')]?_0x4cdb4a[_0x1c2dad('0x4dc')][_0x1c2dad('0x19b2')]:[],'crudPermissions':_0x4cdb4a[_0x1c2dad('0xb25')]}});}function _0xf45694(_0x1e6ffc,_0xf7327f){const _0x4b7bb1=_0xbc1ab;_0x4dcb98[_0x4b7bb1('0xb9')]({'controller':_0x4b7bb1('0x1e8d'),'controllerAs':'vm','templateUrl':_0x49dcb2,'parent':angular[_0x4b7bb1('0x1e73')](_0x4603e1[_0x4b7bb1('0x1d2')]),'targetEvent':_0xf7327f,'clickOutsideToClose':!![],'locals':{'faxQueue':_0x1e6ffc,'faxQueues':_0x4cdb4a[_0x4b7bb1('0x4dc')]?_0x4cdb4a['faxQueues']['rows']:[],'crudPermissions':_0x4cdb4a['crudPermissions'],'realtime':![]}});}function _0x2d5ce0(_0x5715ed,_0x30803a){const _0x54c88d=_0xbc1ab,_0x2bf39c=_0x4dcb98[_0x54c88d('0x132b')]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x36f548()[_0x54c88d('0x13cf')](_0x54c88d('0x189d'))+'?')[_0x54c88d('0x1d03')](_0x54c88d('0x2061')+(_0x5715ed[_0x54c88d('0x1909')]||_0x54c88d('0x189d'))+''+_0x54c88d('0x1a'))['ariaLabel'](_0x54c88d('0xf85'))['targetEvent'](_0x30803a)['ok']('OK')[_0x54c88d('0x26c9')](_0x54c88d('0x772'));_0x4dcb98['show'](_0x2bf39c)[_0x54c88d('0x11bf')](function(){_0x5462c9(_0x5715ed);},function(){const _0xa3627f=_0x54c88d;console[_0xa3627f('0xc78')]('CANCEL');});}function _0x3adba1(){const _0x299033=_0xbc1ab;if(_0x327a64['hasRole'](_0x299033('0xf45')))_0x2f9a80['go'](_0x299033('0xd86'),{});else return _0x4e27e4['userProfileSection'][_0x299033('0xbaa')]({'userProfileId':_0x327a64[_0x299033('0x2428')]()[_0x299033('0x781')],'sectionId':0x38e})[_0x299033('0x1549')][_0x299033('0x11bf')](function(_0x3143aa){const _0x29f593=_0x299033,_0x54d0a8=_0x3143aa&&_0x3143aa[_0x29f593('0x19b2')]?_0x3143aa[_0x29f593('0x19b2')][0x0]:null;_0x54d0a8&&_0x54d0a8[_0x29f593('0x1f0a')]?_0x2f9a80['go'](_0x29f593('0xd86'),{}):_0x1476e4[_0x29f593('0x870')]({'title':_0x349b7a[_0x29f593('0x10c2')]('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_TITLE'),'msg':_0x349b7a[_0x29f593('0x10c2')](_0x29f593('0x10d1'))});})[_0x299033('0x151d')](function(_0x1e662c){const _0x158b0a=_0x299033;_0x1476e4[_0x158b0a('0x255')]({'title':_0x1e662c['status']?'API:'+_0x1e662c['status']+_0x158b0a('0xb0b')+_0x1e662c['statusText']:_0x158b0a('0x1011'),'msg':_0x1e662c[_0x158b0a('0xff9')]?JSON[_0x158b0a('0x3e')](_0x1e662c[_0x158b0a('0x4e8')]):_0x1e662c[_0x158b0a('0xaab')]()});});}let _0x16353c=!![],_0x50752a=0x1;_0x12a429[_0xbc1ab('0x2087')](_0xbc1ab('0x842'),function(_0x229eed,_0x589e0b){const _0x355c52=_0xbc1ab;_0x16353c?_0x4a4c79(function(){_0x16353c=![];}):(!_0x589e0b&&(_0x50752a=_0x4cdb4a[_0x355c52('0x1f2a')][_0x355c52('0x1c2')]),_0x229eed!==_0x589e0b&&(_0x4cdb4a[_0x355c52('0x1f2a')]['page']=0x1),!_0x229eed&&(_0x4cdb4a[_0x355c52('0x1f2a')]['page']=_0x50752a),_0x4cdb4a['getFaxQueues']());});function _0x434cec(_0x668cc){const _0x7aea16=_0xbc1ab;_0x4cdb4a[_0x7aea16('0x4dc')]=_0x668cc||{'count':0x0,'rows':[]};}function _0x4242f3(){const _0x19b82a=_0xbc1ab;_0x4cdb4a[_0x19b82a('0x1f2a')][_0x19b82a('0x1393')]=(_0x4cdb4a[_0x19b82a('0x1f2a')]['page']-0x1)*_0x4cdb4a[_0x19b82a('0x1f2a')][_0x19b82a('0xd5c')],_0x327a64[_0x19b82a('0x4ee')](_0x19b82a('0xf45'))?_0x4cdb4a['promise']=_0x4e27e4[_0x19b82a('0x189d')][_0x19b82a('0xbaa')](_0x4cdb4a['query'],_0x434cec)['$promise']:(_0x4cdb4a['query']['id']=_0x4cdb4a[_0x19b82a('0x25bc')]['id'],_0x4cdb4a[_0x19b82a('0x1f2a')][_0x19b82a('0xe6')]='FaxQueues',_0x4cdb4a[_0x19b82a('0x13f')]=_0x4e27e4[_0x19b82a('0x25bc')][_0x19b82a('0x228e')](_0x4cdb4a[_0x19b82a('0x1f2a')],_0x434cec)[_0x19b82a('0x1549')]);}function _0x9a5736(_0x7470be,_0x4c62a6){const _0x558413=_0xbc1ab;_0x4dcb98[_0x558413('0xb9')]({'controller':'CreateOrEditFaxQueueDialogController','controllerAs':'vm','templateUrl':_0x5d40b6,'parent':angular[_0x558413('0x1e73')](_0x4603e1['body']),'targetEvent':_0x7470be,'clickOutsideToClose':!![],'locals':{'faxQueue':_0x4c62a6,'faxQueues':_0x4cdb4a[_0x558413('0x4dc')]['rows'],'license':_0x4cdb4a['license'],'setting':_0x4cdb4a['setting'],'crudPermissions':_0x4cdb4a[_0x558413('0xb25')]}});}function _0x5462c9(_0x1ee5ac){const _0x242b91=_0xbc1ab;_0x4e27e4[_0x242b91('0x189d')][_0x242b91('0x2088')]({'id':_0x1ee5ac['id']})[_0x242b91('0x1549')][_0x242b91('0x11bf')](function(){const _0x20ee13=_0x242b91;_0x36f548()[_0x20ee13('0x14a5')](_0x4cdb4a[_0x20ee13('0x4dc')][_0x20ee13('0x19b2')],{'id':_0x1ee5ac['id']}),_0x4cdb4a[_0x20ee13('0x4dc')]['count']-=0x1,!_0x4cdb4a[_0x20ee13('0x4dc')][_0x20ee13('0x19b2')][_0x20ee13('0x1e22')]&&_0x4cdb4a[_0x20ee13('0x13a1')](),_0x1476e4[_0x20ee13('0x2693')]({'title':_0x36f548()[_0x20ee13('0x13cf')](_0x20ee13('0x1b92'))+_0x20ee13('0x2113'),'msg':_0x1ee5ac[_0x20ee13('0x1909')]?_0x1ee5ac[_0x20ee13('0x1909')]+_0x20ee13('0x433'):''});})[_0x242b91('0x151d')](function(_0x478df9){const _0x3f1f51=_0x242b91;if(_0x478df9['data']&&_0x478df9[_0x3f1f51('0x4e8')]['errors']&&_0x478df9[_0x3f1f51('0x4e8')]['errors'][_0x3f1f51('0x1e22')]){_0x4cdb4a['errors']=_0x478df9[_0x3f1f51('0x4e8')]['errors']||[{'message':_0x478df9[_0x3f1f51('0xaab')](),'type':_0x3f1f51('0x964')}];for(let _0x1c164e=0x0;_0x1c164e<_0x478df9[_0x3f1f51('0x4e8')][_0x3f1f51('0x120f')]['length'];_0x1c164e++){_0x1476e4[_0x3f1f51('0x255')]({'title':_0x478df9[_0x3f1f51('0x4e8')][_0x3f1f51('0x120f')][_0x1c164e][_0x3f1f51('0x19fd')],'msg':_0x478df9[_0x3f1f51('0x4e8')][_0x3f1f51('0x120f')][_0x1c164e][_0x3f1f51('0x1b86')]});}}else _0x1476e4[_0x3f1f51('0x255')]({'title':_0x478df9['status']?_0x3f1f51('0x574')+_0x478df9[_0x3f1f51('0xff9')]+'\x20-\x20'+_0x478df9[_0x3f1f51('0x212f')]:_0x3f1f51('0x964'),'msg':_0x478df9[_0x3f1f51('0x4e8')]?JSON['stringify'](_0x478df9[_0x3f1f51('0x4e8')]['message']):_0x478df9[_0x3f1f51('0x1b86')]||_0x478df9[_0x3f1f51('0xaab')]()});});}function _0x49e4b6(){const _0x5e54c1=_0xbc1ab,_0x38e510=angular[_0x5e54c1('0x6fb')](_0x4cdb4a[_0x5e54c1('0x15a4')]);return _0x4cdb4a[_0x5e54c1('0x15a4')]=[],_0x38e510;}function _0x2cee14(_0x13bc5e){const _0x33f447=_0xbc1ab,_0x5a8609=_0x4dcb98[_0x33f447('0x132b')]()[_0x33f447('0x134b')](_0x33f447('0x422'))[_0x33f447('0x1d03')](_0x33f447('0x2061')+_0x4cdb4a[_0x33f447('0x15a4')][_0x33f447('0x1e22')]+_0x33f447('0xac6')+'\x20will\x20be\x20deleted.')[_0x33f447('0xb2e')]('delete\x20FaxQueues')[_0x33f447('0x1e25')](_0x13bc5e)['ok']('OK')[_0x33f447('0x26c9')](_0x33f447('0x772'));_0x4dcb98['show'](_0x5a8609)['then'](function(){const _0xa94451=_0x33f447;_0x4cdb4a['selectedFaxQueues'][_0xa94451('0x1f88')](function(_0x2a7124){_0x5462c9(_0x2a7124);}),_0x4cdb4a[_0xa94451('0x15a4')]=[];});}function _0x1219d6(){const _0x502a8d=_0xbc1ab;_0x4cdb4a[_0x502a8d('0x15a4')]=[];}function _0x15dede(){const _0x51df4c=_0xbc1ab;_0x4cdb4a[_0x51df4c('0x15a4')]=_0x4cdb4a[_0x51df4c('0x4dc')]['rows'];}}const _0x40f920=_0x55dff3;_0x2814cb[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x13d6'),_0x21d0f5('0xc3e')];function _0x2814cb(_0x4ec3bb,_0x3751ab){const _0x20e31c=_0x21d0f5;_0x4ec3bb[_0x20e31c('0x2124')](_0x20e31c('0x300'),{'abstract':!![],'url':_0x20e31c('0x95')})[_0x20e31c('0x2124')](_0x20e31c('0x1647'),{'url':'/faxQueues','views':{'content@app':{'templateUrl':_0x2b1db8,'controller':_0x20e31c('0xc84')}},'resolve':{'faxQueues':[_0x20e31c('0x218e'),_0x20e31c('0x1150'),function(_0x43c55e,_0x528c0c){const _0xf700fa=_0x20e31c;return _0x528c0c[_0xf700fa('0x4ee')](_0xf700fa('0xf45'))?_0x43c55e[_0xf700fa('0xa28')](_0xf700fa('0x133'),{'fields':_0xf700fa('0xe24'),'sort':_0xf700fa('0x1c74'),'channel':_0xf700fa('0x2104'),'limit':0xa,'offset':0x0}):_0x43c55e[_0xf700fa('0xa28')](_0xf700fa('0xb0d'),{'id':_0x528c0c['getCurrentUser']()['userProfileId'],'section':_0xf700fa('0x175c'),'fields':_0xf700fa('0xe24'),'sort':_0xf700fa('0x1c74'),'channel':_0xf700fa('0x2104'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x20e31c('0x218e'),_0x20e31c('0x1150'),function(_0x471819,_0x660ca9){const _0x487473=_0x20e31c;return _0x660ca9[_0x487473('0x4ee')]('admin')?null:_0x471819[_0x487473('0xa28')](_0x487473('0x428'),{'fields':_0x487473('0xd30'),'id':_0x660ca9[_0x487473('0x2428')]()[_0x487473('0x781')]});}],'userProfileSection':[_0x20e31c('0x218e'),_0x20e31c('0x1150'),function(_0x1cd8a5,_0x436397){const _0x2df5dc=_0x20e31c;return _0x436397[_0x2df5dc('0x4ee')]('admin')?null:_0x1cd8a5['resolve']('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x436397['getCurrentUser']()[_0x2df5dc('0x781')],'sectionId':0x385});}]},'authenticate':!![],'permissionId':0x385,'bodyClass':'fax'})[_0x20e31c('0x2124')]('app.fax.faxQueues.edit',{'url':_0x20e31c('0x142b'),'params':{'faxQueue':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0xbf5d0d,'controller':_0x20e31c('0x1058')}},'resolve':{'faxQueue':[_0x20e31c('0x218e'),_0x20e31c('0x1573'),function(_0x12ff00,_0x2facb7){const _0x3e09ae=_0x20e31c;return _0x12ff00[_0x3e09ae('0xa28')](_0x3e09ae('0x133'),{'fields':_0x3e09ae('0xe24'),'id':_0x2facb7['id']});}],'userProfileSection':[_0x20e31c('0x218e'),_0x20e31c('0x1150'),function(_0x525221,_0xf5d8ad){const _0x37fa94=_0x20e31c;return _0x525221['resolve'](_0x37fa94('0x2762'),{'fields':_0x37fa94('0x36d'),'userProfileId':_0xf5d8ad[_0x37fa94('0x2428')]()[_0x37fa94('0x781')],'sectionId':0x385});}]},'authenticate':!![],'permissionId':0x385,'bodyClass':_0x20e31c('0x2104')})['state']('app.fax.faxAccounts',{'url':'/faxAccounts','views':{'content@app':{'templateUrl':_0x4d7c7b,'controller':_0x20e31c('0x23d')}},'resolve':{'faxAccounts':[_0x20e31c('0x218e'),_0x20e31c('0x1150'),function(_0x20c947,_0x53f3e8){const _0x549b72=_0x20e31c;return _0x53f3e8[_0x549b72('0x4ee')](_0x549b72('0xf45'))?_0x20c947['resolve'](_0x549b72('0x17b5'),{'fields':_0x549b72('0x1047'),'sort':_0x549b72('0x1c74'),'limit':0xa,'offset':0x0}):_0x20c947['resolve'](_0x549b72('0xb0d'),{'id':_0x53f3e8[_0x549b72('0x2428')]()['userProfileId'],'section':'FaxAccounts','fields':_0x549b72('0x1047'),'sort':_0x549b72('0x1c74'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x20e31c('0x218e'),_0x20e31c('0x1150'),function(_0x9c333d,_0x14ccd5){const _0x3454f5=_0x20e31c;return _0x14ccd5[_0x3454f5('0x4ee')](_0x3454f5('0xf45'))?null:_0x9c333d[_0x3454f5('0xa28')]('userProfile@get',{'fields':_0x3454f5('0xd30'),'id':_0x14ccd5[_0x3454f5('0x2428')]()[_0x3454f5('0x781')]});}],'userProfileSection':[_0x20e31c('0x218e'),_0x20e31c('0x1150'),function(_0x41ea35,_0x5227ab){const _0x1a7c03=_0x20e31c;return _0x5227ab[_0x1a7c03('0x4ee')](_0x1a7c03('0xf45'))?null:_0x41ea35['resolve']('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x5227ab[_0x1a7c03('0x2428')]()[_0x1a7c03('0x781')],'sectionId':0x386});}]},'authenticate':!![],'permissionId':0x386,'bodyClass':_0x20e31c('0x2104')})[_0x20e31c('0x2124')]('app.fax.faxAccounts.edit',{'url':'/:id?tab','params':{'faxAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x112794,'controller':_0x20e31c('0x762')}},'resolve':{'faxAccount':[_0x20e31c('0x218e'),_0x20e31c('0x1573'),function(_0x9a11d0,_0x1359ef){const _0x4a8b73=_0x20e31c;return _0x9a11d0[_0x4a8b73('0xa28')](_0x4a8b73('0x17b5'),{'fields':'createdAt,updatedAt,id,name,key,headerinfo,TrunkId,localstationid,ListId,waitForTheAssignedAgent,mandatoryDisposition,mandatoryDispositionPauseId,description,ecm,minrate,maxrate,modem,gateway,faxdetect,t38timeout,tech,notificationSound,notificationShake,notificationTemplate,queueTransfer,queueTransferTimeout,agentTransfer,agentTransferTimeout','id':_0x1359ef['id']});}],'userProfileSection':[_0x20e31c('0x218e'),_0x20e31c('0x1150'),function(_0xd4b5e9,_0x50c807){const _0x389c90=_0x20e31c;return _0xd4b5e9[_0x389c90('0xa28')]('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x50c807[_0x389c90('0x2428')]()[_0x389c90('0x781')],'sectionId':0x386});}]},'authenticate':!![],'permissionId':0x386,'bodyClass':_0x20e31c('0x2104')}),_0x3751ab[_0x20e31c('0x471')](_0x20e31c('0x124c'));}angular[_0x21d0f5('0x2768')](_0x21d0f5('0x300'),[_0x21d0f5('0x22d5'),_0x21d0f5('0x1fb3'),_0x21d0f5('0x3c4'),'flow',_0x21d0f5('0xd61'),'ckeditor','ng-sortable',_0x21d0f5('0x446'),'ngAnimate','mdPickers',_0x21d0f5('0x29b'),_0x21d0f5('0xc46'),'mwFormUtils',_0x21d0f5('0xf49'),'angular-cron-jobs',_0x21d0f5('0xed9'),'angularMaterialFormBuilder',_0x21d0f5('0x1622'),'chart.js','angular.filter',_0x21d0f5('0x275a')])[_0x21d0f5('0x53a')](_0x2814cb)[_0x21d0f5('0x23eb')](_0x21d0f5('0xd19'),_0x48e4ea)[_0x21d0f5('0x23eb')](_0x21d0f5('0x22b0'),_0x1b722)[_0x21d0f5('0x23eb')](_0x21d0f5('0x1021'),_0x746362)[_0x21d0f5('0x23eb')](_0x21d0f5('0x21e5'),_0x4c647e)[_0x21d0f5('0x23eb')](_0x21d0f5('0x1f57'),_0x203a7c)[_0x21d0f5('0x23eb')](_0x21d0f5('0x2249'),_0x32a1ac)['controller'](_0x21d0f5('0x643'),_0x519e13)[_0x21d0f5('0x23eb')]('EditFaxAccountAppintervalDialogController',_0x28b846)[_0x21d0f5('0x23eb')]('EditFaxAccountAppnoopDialogController',_0x84395e)[_0x21d0f5('0x23eb')](_0x21d0f5('0x162'),_0x59780b)['controller'](_0x21d0f5('0x1299'),_0x47b7e0)[_0x21d0f5('0x23eb')](_0x21d0f5('0x2744'),_0x41427e)[_0x21d0f5('0x23eb')]('FaxAccountDispositionsController',_0x581097)[_0x21d0f5('0x23eb')](_0x21d0f5('0x5c9'),_0x274443)[_0x21d0f5('0x23eb')](_0x21d0f5('0x1837'),_0x5e2857)[_0x21d0f5('0x23eb')]('FaxAccountsController',_0x3d336a)[_0x21d0f5('0x23eb')](_0x21d0f5('0x6c8'),_0x382f84)[_0x21d0f5('0x23eb')](_0x21d0f5('0x1e8d'),_0x5ea6b6)[_0x21d0f5('0x23eb')]('FaxQueueteamaddController',_0x4fa186)['controller']('FaxQueueController',_0x59164c)[_0x21d0f5('0x23eb')](_0x21d0f5('0x825'),_0x40f920);const _0x149999=_0x351988['p']+'src/js/modules/main/apps/tools/views/dispositions/dispositions.html/dispositions.html';_0x16ef68[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1ca2'),'$translate','$q',_0x21d0f5('0x142d'),_0x21d0f5('0x1394'),_0x21d0f5('0x107a'),_0x21d0f5('0x60d'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),_0x21d0f5('0xb25'),_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1')];function _0x16ef68(_0x41d7b0,_0x382afa,_0x1543a6,_0x2e0fce,_0x191d10,_0x1fec12,_0x1a05d6,_0x16072e,_0x3935de,_0x505670,_0x1f9749,_0x113509){const _0x29ab97=_0x21d0f5,_0x66527a=this;_0x66527a['currentUser']=_0x3935de[_0x29ab97('0x2428')](),_0x66527a[_0x29ab97('0x107a')]=angular[_0x29ab97('0x6fb')](_0x1fec12),_0x66527a[_0x29ab97('0x1394')]=angular[_0x29ab97('0x6fb')](_0x191d10),_0x66527a[_0x29ab97('0x23e1')]=_0x113509,_0x66527a['license']=_0x1f9749,_0x66527a[_0x29ab97('0xb25')]=_0x505670,_0x66527a[_0x29ab97('0x1123')]=![],_0x66527a[_0x29ab97('0x120f')]=[];!_0x66527a[_0x29ab97('0x107a')]?(_0x66527a[_0x29ab97('0x107a')]={'level':_0x29ab97('0x848')},_0x66527a['newDisposition']=!![]):_0x4c90ba();if(_0x1a05d6){const _0x22ad60=_0x1a05d6[_0x29ab97('0x485')];_0x66527a['disposition'][_0x22ad60]=_0x1a05d6['id'];}_0x66527a['onFirstLevelSelection']=_0x7b9c85,_0x66527a[_0x29ab97('0x39f')]=_0x198926,_0x66527a[_0x29ab97('0x859')]=_0x1f8152,_0x66527a[_0x29ab97('0x2776')]=_0x2b7975,_0x66527a[_0x29ab97('0x1a7c')]=_0x3ec160,_0x66527a[_0x29ab97('0xc4e')]=_0x307b04;function _0x4c90ba(){const _0x39e392=_0x29ab97;if(_0x66527a[_0x39e392('0x107a')]['level']===_0x39e392('0x848'))return;_0x66527a[_0x39e392('0x1cba')]=_0x36f548()[_0x39e392('0x1ad4')](_0x66527a[_0x39e392('0x1394')],['id',_0x66527a[_0x39e392('0x107a')][_0x39e392('0x2ac')]]);if(!_0x66527a['parentDisposition']){_0x58f5b3()[_0x39e392('0x11bf')](function(){const _0x383e1e=_0x39e392;for(let _0x34df14=0x0;_0x34df14<_0x66527a[_0x383e1e('0x2525')][_0x383e1e('0x1e22')];_0x34df14++){const _0x231eea=_0x66527a[_0x383e1e('0x2525')][_0x34df14];if(_0x231eea['id']===_0x66527a[_0x383e1e('0x107a')][_0x383e1e('0x2ac')]){_0x19e5a3(_0x231eea),_0x231eea[_0x383e1e('0x254a')]=![],_0x66527a['dispositions'][_0x383e1e('0x105d')](_0x231eea);break;}}});return;}_0x19e5a3(_0x66527a['parentDisposition']);}function _0x58f5b3(){return _0x1543a6(function(_0x32f8e5,_0x3bfbc3){const _0x1f01f9=a0_0xaf0c;_0x16072e['disposition'][_0x1f01f9('0xbaa')]({'fields':'id,name,level,ParentId','sort':'id','nolimit':_0x1f01f9('0x204c')})[_0x1f01f9('0x1549')]['then'](function(_0x7e68d){const _0x3a5d9b=_0x1f01f9;_0x66527a[_0x3a5d9b('0x2525')]=_0x7e68d[_0x3a5d9b('0x19b2')]||[],_0x32f8e5();})[_0x1f01f9('0x151d')](function(_0x3d7154){_0x3bfbc3(_0x3d7154);});});}function _0x19e5a3(_0x16b522){const _0x41a082=_0x29ab97;_0x16b522[_0x41a082('0xdba')]===_0x41a082('0x848')?_0x66527a['firstLevelDisposition']=_0x16b522:(_0x66527a['anySecondLevelDisposition']=!![],_0x66527a[_0x41a082('0x635')]=_0x16b522,_0x66527a[_0x41a082('0xab0')]=_0x36f548()[_0x41a082('0x1ad4')](_0x66527a[_0x41a082('0x1394')],['id',_0x66527a['secondLevelDisposition'][_0x41a082('0x2ac')]]),!_0x66527a['firstLevelDisposition']&&_0x58f5b3()['then'](function(){const _0x4e4ac3=_0x41a082;_0x66527a[_0x4e4ac3('0xab0')]=_0x36f548()[_0x4e4ac3('0x1ad4')](_0x66527a['allDispositions'],['id',_0x66527a[_0x4e4ac3('0x635')]['ParentId']]),_0x66527a[_0x4e4ac3('0xab0')][_0x4e4ac3('0x254a')]=![],_0x66527a['dispositions'][_0x4e4ac3('0x105d')](_0x66527a[_0x4e4ac3('0xab0')]);}));}function _0x3ec160(_0x1658e4){const _0x133a48=_0x29ab97;_0x1658e4===_0x133a48('0x848')?(_0x66527a[_0x133a48('0xab0')]=undefined,_0x66527a[_0x133a48('0x635')]=undefined,_0x66527a[_0x133a48('0x19cc')]=![]):_0x66527a[_0x133a48('0x635')]=undefined;}function _0x7b9c85(){const _0x5212f1=_0x29ab97;_0x66527a['secondLevelDisposition']=undefined,_0x66527a['anySecondLevelDisposition']=_0x36f548()['some'](_0x66527a[_0x5212f1('0x1394')],function(_0x47d591){const _0x4ec509=_0x5212f1;return _0x47d591[_0x4ec509('0x2ac')]===_0x66527a['firstLevelDisposition']['id']&&_0x47d591['id']!=_0x66527a[_0x4ec509('0x107a')]['id'];});}function _0x198926(){const _0x54ecdc=_0x29ab97;_0x66527a[_0x54ecdc('0x120f')]=[];if(_0x66527a[_0x54ecdc('0x635')])_0x66527a['disposition']['ParentId']=_0x66527a['secondLevelDisposition']['id'],_0x66527a[_0x54ecdc('0x107a')][_0x54ecdc('0xdba')]='third';else _0x66527a[_0x54ecdc('0xab0')]&&(_0x66527a[_0x54ecdc('0x107a')][_0x54ecdc('0x2ac')]=_0x66527a[_0x54ecdc('0xab0')]['id'],_0x66527a['disposition'][_0x54ecdc('0xdba')]=_0x54ecdc('0x19b9'));_0x16072e[_0x54ecdc('0x107a')][_0x54ecdc('0x259')](_0x66527a['disposition'])['$promise']['then'](function(_0x36006d){const _0x2620de=_0x54ecdc;_0x66527a[_0x2620de('0x1394')][_0x2620de('0x880')](_0x36006d[_0x2620de('0x2866')]()),_0x2e0fce['success']({'title':_0x382afa[_0x2620de('0x10c2')]('TOOLS.NOTIFICATIONS.DISPOSITION_CREATED_SUCCESS_TITLE')}),_0x307b04(!![]);})[_0x54ecdc('0x151d')](function(_0xbb6e61){const _0x11119a=_0x54ecdc;if(_0xbb6e61[_0x11119a('0x4e8')]&&_0xbb6e61['data']['errors']&&_0xbb6e61[_0x11119a('0x4e8')][_0x11119a('0x120f')]['length']){_0x66527a[_0x11119a('0x120f')]=_0xbb6e61['data'][_0x11119a('0x120f')]||[{'message':_0xbb6e61[_0x11119a('0xaab')](),'type':'api.disposition.save'}];for(let _0x2ea02e=0x0;_0x2ea02e<_0xbb6e61[_0x11119a('0x4e8')]['errors'][_0x11119a('0x1e22')];_0x2ea02e+=0x1){_0x2e0fce[_0x11119a('0x255')]({'title':_0xbb6e61['data'][_0x11119a('0x120f')][_0x2ea02e][_0x11119a('0x19fd')],'msg':_0xbb6e61[_0x11119a('0x4e8')][_0x11119a('0x120f')][_0x2ea02e][_0x11119a('0x1b86')]});}}else _0x2e0fce[_0x11119a('0x255')]({'title':_0xbb6e61[_0x11119a('0xff9')]?_0x11119a('0x574')+_0xbb6e61[_0x11119a('0xff9')]+_0x11119a('0xb0b')+_0xbb6e61[_0x11119a('0x212f')]:_0x11119a('0x22e2'),'msg':_0xbb6e61[_0x11119a('0x4e8')]?JSON[_0x11119a('0x3e')](_0xbb6e61[_0x11119a('0x4e8')][_0x11119a('0x1b86')]):_0xbb6e61[_0x11119a('0xaab')]()});});}function _0x1f8152(){const _0x53ccec=_0x29ab97;_0x66527a[_0x53ccec('0x120f')]=[];if(_0x66527a[_0x53ccec('0x635')])_0x66527a['disposition'][_0x53ccec('0x2ac')]=_0x66527a['secondLevelDisposition']['id'],_0x66527a[_0x53ccec('0x107a')]['level']='third';else _0x66527a[_0x53ccec('0xab0')]&&(_0x66527a[_0x53ccec('0x107a')][_0x53ccec('0x2ac')]=_0x66527a[_0x53ccec('0xab0')]['id'],_0x66527a[_0x53ccec('0x107a')]['level']='second');_0x16072e['disposition'][_0x53ccec('0x5ab')]({'id':_0x66527a[_0x53ccec('0x107a')]['id']},_0x66527a[_0x53ccec('0x107a')])[_0x53ccec('0x1549')][_0x53ccec('0x11bf')](function(_0x1f61b2){const _0xc9a7ad=_0x53ccec,_0x3021f8=_0x36f548()[_0xc9a7ad('0x1ad4')](_0x66527a[_0xc9a7ad('0x1394')],{'id':_0x1f61b2['id']});_0x3021f8&&_0x36f548()[_0xc9a7ad('0x47b')](_0x3021f8,_0x36f548()[_0xc9a7ad('0x258')](_0x1f61b2['toJSON'](),_0x36f548()[_0xc9a7ad('0xe22')](_0x3021f8))),_0x2e0fce[_0xc9a7ad('0x2693')]({'title':_0x382afa[_0xc9a7ad('0x10c2')](_0xc9a7ad('0xc5f'))}),_0x307b04(!![]);})[_0x53ccec('0x151d')](function(_0x340eb9){const _0x480333=_0x53ccec;if(_0x340eb9['data']&&_0x340eb9[_0x480333('0x4e8')][_0x480333('0x120f')]&&_0x340eb9['data'][_0x480333('0x120f')][_0x480333('0x1e22')]){_0x66527a[_0x480333('0x120f')]=_0x340eb9[_0x480333('0x4e8')][_0x480333('0x120f')]||[{'message':_0x340eb9[_0x480333('0xaab')](),'type':_0x480333('0x1e')}];for(let _0x276a9e=0x0;_0x276a9e<_0x340eb9[_0x480333('0x4e8')][_0x480333('0x120f')][_0x480333('0x1e22')];_0x276a9e++){_0x2e0fce[_0x480333('0x255')]({'title':_0x340eb9[_0x480333('0x4e8')][_0x480333('0x120f')][_0x276a9e][_0x480333('0x19fd')],'msg':_0x340eb9['data'][_0x480333('0x120f')][_0x276a9e][_0x480333('0x1b86')]});}}else _0x2e0fce[_0x480333('0x255')]({'title':_0x340eb9[_0x480333('0xff9')]?_0x480333('0x574')+_0x340eb9['status']+_0x480333('0xb0b')+_0x340eb9[_0x480333('0x212f')]:'api.disposition.update','msg':_0x340eb9[_0x480333('0x4e8')]?JSON['stringify'](_0x340eb9[_0x480333('0x4e8')][_0x480333('0x1b86')]):_0x340eb9[_0x480333('0xaab')]()});});}function _0x2b7975(_0x1e3c60){const _0x441331=_0x29ab97;_0x66527a[_0x441331('0x120f')]=[];const _0x5ce7ce=_0x36f548()['some'](_0x66527a[_0x441331('0x1394')],[_0x441331('0x2ac'),_0x66527a[_0x441331('0x107a')]['id']]),_0x437227=_0x41d7b0[_0x441331('0x132b')]({'skipHide':!![]})['title'](_0x382afa[_0x441331('0x10c2')](_0x441331('0x221d')))[_0x441331('0x252a')](_0x382afa[_0x441331('0x10c2')](_0x441331('0x869')+(_0x5ce7ce?_0x441331('0x4bd'):_0x441331('0x16d7')),{'name':_0x66527a[_0x441331('0x107a')][_0x441331('0x1909')]}))[_0x441331('0xb2e')](_0x441331('0x1c19'))['ok'](_0x382afa[_0x441331('0x10c2')](_0x441331('0x14e4')))[_0x441331('0x26c9')](_0x382afa[_0x441331('0x10c2')](_0x441331('0xa5d')))[_0x441331('0x1e25')](_0x1e3c60);_0x41d7b0['show'](_0x437227)['then'](function(){const _0x31a8d5=_0x441331;_0x16072e[_0x31a8d5('0x107a')][_0x31a8d5('0x2088')]({'id':_0x66527a[_0x31a8d5('0x107a')]['id']})[_0x31a8d5('0x1549')][_0x31a8d5('0x11bf')](function(){const _0x1ffaec=_0x31a8d5;_0x2e0fce[_0x1ffaec('0x2693')]({'title':_0x382afa[_0x1ffaec('0x10c2')]('TOOLS.NOTIFICATIONS.DISPOSITION_DELETED_SUCCESS_TITLE')}),_0x307b04(!![]);})[_0x31a8d5('0x151d')](function(_0x2e312a){const _0x49d013=_0x31a8d5;if(_0x2e312a[_0x49d013('0x4e8')]&&_0x2e312a['data']['errors']&&_0x2e312a[_0x49d013('0x4e8')][_0x49d013('0x120f')][_0x49d013('0x1e22')]){_0x66527a[_0x49d013('0x120f')]=_0x2e312a['data'][_0x49d013('0x120f')]||[{'message':_0x2e312a['toString'](),'type':_0x49d013('0x204f')}];for(let _0x422456=0x0;_0x422456<_0x2e312a[_0x49d013('0x4e8')]['errors'][_0x49d013('0x1e22')];_0x422456++){_0x2e0fce[_0x49d013('0x255')]({'title':_0x2e312a[_0x49d013('0x4e8')][_0x49d013('0x120f')][_0x422456]['type'],'msg':_0x2e312a[_0x49d013('0x4e8')]['errors'][_0x422456][_0x49d013('0x1b86')]});}}else _0x2e0fce[_0x49d013('0x255')]({'title':_0x2e312a['status']?_0x49d013('0x574')+_0x2e312a[_0x49d013('0xff9')]+_0x49d013('0xb0b')+_0x2e312a[_0x49d013('0x212f')]:_0x49d013('0x204f'),'msg':_0x2e312a[_0x49d013('0x4e8')]?JSON['stringify'](_0x2e312a[_0x49d013('0x4e8')][_0x49d013('0x1b86')]):_0x2e312a[_0x49d013('0x1b86')]||_0x2e312a[_0x49d013('0xaab')]()});});});}function _0x307b04(_0x23ca1d){const _0x51c394=_0x29ab97;_0x41d7b0[_0x51c394('0x237e')](_0x23ca1d);}}const _0x2ab49b=_0x16ef68;_0x3a52ef['$inject']=[_0x21d0f5('0x1b80'),_0x21d0f5('0x2143'),'$state','$mdSidenav',_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),_0x21d0f5('0x17f5'),_0x21d0f5('0xb6b'),_0x21d0f5('0x1394'),_0x21d0f5('0x25bc'),_0x21d0f5('0x1d63'),_0x21d0f5('0x12a5'),'toasty',_0x21d0f5('0x1150'),'license',_0x21d0f5('0x23e1')];function _0x3a52ef(_0x5b8264,_0x497c31,_0x804e8c,_0x21f7ab,_0x19ffa5,_0x477e39,_0x4090eb,_0x15a537,_0x4dd2df,_0x20d49f,_0x501132,_0x6af0b7,_0x39810a,_0x31951a,_0x5e82f9,_0x56482f){const _0x4c094d=_0x21d0f5,_0x175b0e=this;_0x175b0e[_0x4c094d('0x17ff')]=_0x5e82f9,_0x175b0e[_0x4c094d('0x23e1')]=_0x56482f,_0x175b0e[_0x4c094d('0x32a')]=_0x31951a[_0x4c094d('0x2428')](),_0x175b0e[_0x4c094d('0x1394')]=_0x4dd2df||{'count':0x0,'rows':[]},_0x175b0e[_0x4c094d('0x25bc')]=_0x20d49f,_0x175b0e['userProfileSection']=_0x501132&&_0x501132[_0x4c094d('0x27d2')]==0x1?_0x501132[_0x4c094d('0x19b2')][0x0]:null,_0x175b0e[_0x4c094d('0xb25')]=_0x31951a[_0x4c094d('0x1530')](_0x175b0e[_0x4c094d('0x1d63')]?_0x175b0e['userProfileSection'][_0x4c094d('0xb25')]:null),_0x175b0e[_0x4c094d('0x21ae')]=[],_0x175b0e[_0x4c094d('0x1526')]={'first':_0x4c094d('0x1558'),'second':_0x4c094d('0xe0e'),'third':_0x4c094d('0x10e6')},_0x175b0e[_0x4c094d('0x1f2a')]={'fields':_0x4c094d('0x12c1'),'sort':_0x4c094d('0x1c74'),'MailAccountId':_0x4c094d('0xb5f'),'FaxAccountId':_0x4c094d('0xb5f'),'SmsAccountId':_0x4c094d('0xb5f'),'OpenchannelAccountId':'null','ChatWebsiteId':_0x4c094d('0xb5f'),'WhatsappAccountId':_0x4c094d('0xb5f'),'ListId':'null','limit':0xa,'page':0x1},_0x175b0e[_0x4c094d('0x549')]=_0x39a10f,_0x175b0e['success']=_0x3c6451,_0x175b0e[_0x4c094d('0x200')]=_0x5db412,_0x175b0e['createOrEditDisposition']=_0x45a782,_0x175b0e[_0x4c094d('0x2776')]=_0x39c86c,_0x175b0e[_0x4c094d('0x25e')]=_0x5a6885,_0x175b0e[_0x4c094d('0xadf')]=_0x78a185,_0x175b0e[_0x4c094d('0x1d8f')]=_0x5d7954,_0x175b0e[_0x4c094d('0x94f')]=_0x2787c4;function _0x45a782(_0x35fc02,_0x42d734){const _0x1561d8=_0x4c094d;_0x19ffa5[_0x1561d8('0xb9')]({'controller':_0x1561d8('0x21b7'),'controllerAs':'vm','templateUrl':_0xd803cc,'parent':angular[_0x1561d8('0x1e73')](_0x477e39['body']),'targetEvent':_0x35fc02,'clickOutsideToClose':!![],'locals':{'disposition':_0x42d734,'dispositions':_0x175b0e['dispositions'][_0x1561d8('0x19b2')],'model':null,'license':_0x175b0e[_0x1561d8('0x17ff')],'setting':_0x175b0e[_0x1561d8('0x23e1')],'crudPermissions':_0x175b0e[_0x1561d8('0xb25')]}})['then'](function(_0x5d16db){if(_0x5d16db===!![])_0x5db412();});}function _0x39a10f(_0x14937b,_0x47161d){const _0x4d7e55=_0x4c094d,_0x285e2d=_0x36f548()[_0x4d7e55('0x1cb3')](_0x175b0e[_0x4d7e55('0x1394')][_0x4d7e55('0x19b2')],['ParentId',_0x14937b['id']]),_0x1776b7=_0x19ffa5[_0x4d7e55('0x132b')]()['title'](_0x15a537[_0x4d7e55('0x10c2')](_0x4d7e55('0x221d')))[_0x4d7e55('0x252a')](_0x15a537[_0x4d7e55('0x10c2')](_0x4d7e55('0x869')+(_0x285e2d?_0x4d7e55('0x4bd'):_0x4d7e55('0x16d7')),{'name':_0x14937b[_0x4d7e55('0x1909')]}))[_0x4d7e55('0xb2e')]('Delete\x20disposition')['targetEvent'](_0x47161d)['ok']('OK')['cancel'](_0x15a537[_0x4d7e55('0x10c2')](_0x4d7e55('0xa5d')));_0x19ffa5[_0x4d7e55('0xb9')](_0x1776b7)[_0x4d7e55('0x11bf')](function(){_0x39c86c(_0x14937b);});}function _0x3c6451(_0x162652){const _0x2e37dd=_0x4c094d;_0x175b0e[_0x2e37dd('0x1394')]=_0x162652||{'count':0x0,'rows':[]};}function _0x5db412(){const _0x376f3a=_0x4c094d;_0x175b0e[_0x376f3a('0x1f2a')][_0x376f3a('0x1393')]=(_0x175b0e[_0x376f3a('0x1f2a')][_0x376f3a('0x1c2')]-0x1)*_0x175b0e[_0x376f3a('0x1f2a')][_0x376f3a('0xd5c')],_0x31951a[_0x376f3a('0x14e0')]()?_0x175b0e[_0x376f3a('0x13f')]=_0x6af0b7['disposition'][_0x376f3a('0xbaa')](_0x175b0e[_0x376f3a('0x1f2a')],_0x3c6451)[_0x376f3a('0x1549')]:(_0x175b0e['query']['id']=_0x175b0e[_0x376f3a('0x25bc')]['id'],_0x175b0e[_0x376f3a('0x1f2a')][_0x376f3a('0xe6')]=_0x376f3a('0xc76'),_0x175b0e[_0x376f3a('0x13f')]=_0x6af0b7[_0x376f3a('0x25bc')][_0x376f3a('0x228e')](_0x175b0e['query'],_0x3c6451)[_0x376f3a('0x1549')]);}function _0x39c86c(_0x26437c){const _0x273ef1=_0x4c094d;_0x6af0b7[_0x273ef1('0x107a')]['delete']({'id':_0x26437c['id']})[_0x273ef1('0x1549')][_0x273ef1('0x11bf')](function(){const _0x2902ad=_0x273ef1;_0x5db412(),_0x39810a[_0x2902ad('0x2693')]({'title':_0x15a537['instant'](_0x2902ad('0x1548'))});})[_0x273ef1('0x151d')](function(_0x548ffa){const _0x331402=_0x273ef1;if(_0x548ffa['data']&&_0x548ffa['data'][_0x331402('0x120f')]&&_0x548ffa[_0x331402('0x4e8')]['errors'][_0x331402('0x1e22')]){_0x175b0e['errors']=_0x548ffa[_0x331402('0x4e8')][_0x331402('0x120f')]||[{'message':_0x548ffa[_0x331402('0xaab')](),'type':_0x331402('0x1551')}];for(let _0x246092=0x0;_0x246092<_0x548ffa['data']['errors']['length'];_0x246092++){_0x39810a[_0x331402('0x255')]({'title':_0x548ffa[_0x331402('0x4e8')]['errors'][_0x246092][_0x331402('0x19fd')],'msg':_0x548ffa[_0x331402('0x4e8')][_0x331402('0x120f')][_0x246092][_0x331402('0x1b86')]});}}else _0x39810a[_0x331402('0x255')]({'title':_0x548ffa[_0x331402('0xff9')]?_0x331402('0x574')+_0x548ffa['status']+_0x331402('0xb0b')+_0x548ffa[_0x331402('0x212f')]:_0x331402('0x1551'),'msg':_0x548ffa[_0x331402('0x4e8')]?JSON[_0x331402('0x3e')](_0x548ffa[_0x331402('0x4e8')]['message']):_0x548ffa[_0x331402('0x1b86')]||_0x548ffa['toString']()});});}function _0x5a6885(){const _0x3546b7=_0x4c094d,_0x1ef7b1=angular[_0x3546b7('0x6fb')](_0x175b0e[_0x3546b7('0x21ae')]);return _0x175b0e[_0x3546b7('0x21ae')]=[],_0x1ef7b1;}function _0x78a185(_0x2d7d4c){const _0x41db38=_0x4c094d,_0xde392c=_0x19ffa5[_0x41db38('0x132b')]()[_0x41db38('0x134b')](_0x15a537['instant'](_0x41db38('0x1cd5')))[_0x41db38('0x252a')](_0x15a537[_0x41db38('0x10c2')]('TOOLS.NOTIFICATIONS.DISPOSITIONS_DELETE_MESSAGE',{'total':_0x175b0e[_0x41db38('0x21ae')][_0x41db38('0x1e22')]}))[_0x41db38('0xb2e')](_0x41db38('0x1ef9'))[_0x41db38('0x1e25')](_0x2d7d4c)['ok']('OK')[_0x41db38('0x26c9')](_0x15a537[_0x41db38('0x10c2')](_0x41db38('0xa5d')));_0x19ffa5[_0x41db38('0xb9')](_0xde392c)[_0x41db38('0x11bf')](function(){const _0x473c10=_0x41db38;_0x175b0e[_0x473c10('0x21ae')][_0x473c10('0x1f88')](function(_0x605c16){_0x39c86c(_0x605c16);}),_0x175b0e['selectedDispositions']=[];});}function _0x5d7954(){const _0x5c3d4d=_0x4c094d;_0x175b0e[_0x5c3d4d('0x21ae')]=[];}function _0x2787c4(){const _0x20f215=_0x4c094d;_0x175b0e[_0x20f215('0x21ae')]=_0x175b0e[_0x20f215('0x1394')][_0x20f215('0x19b2')];}let _0x40c3ef=!![],_0x190c08=0x1;_0x5b8264[_0x4c094d('0x2087')](_0x4c094d('0x842'),function(_0x2f53ae,_0x5f1ce8){const _0x357f03=_0x4c094d;_0x40c3ef?_0x4090eb(function(){_0x40c3ef=![];}):(!_0x5f1ce8&&(_0x190c08=_0x175b0e['query'][_0x357f03('0x1c2')]),_0x2f53ae!==_0x5f1ce8&&(_0x175b0e[_0x357f03('0x1f2a')][_0x357f03('0x1c2')]=0x1),!_0x2f53ae&&(_0x175b0e[_0x357f03('0x1f2a')]['page']=_0x190c08),_0x5db412());});}const _0x1b0258=_0x3a52ef;_0x5812d5['$inject']=['$stateProvider'];function _0x5812d5(_0x5f5dc0){const _0x42c3ab=_0x21d0f5;_0x5f5dc0['state']('app.tools.dispositions',{'url':_0x42c3ab('0x2716'),'views':{'content@app':{'templateUrl':_0x149999,'controller':_0x42c3ab('0x165d')}},'resolve':{'dispositions':[_0x42c3ab('0x218e'),'Auth',function(_0x4a3ff2,_0xd30e21){const _0x4f6509=_0x42c3ab;return _0xd30e21[_0x4f6509('0x4ee')](_0x4f6509('0xf45'))?_0x4a3ff2['resolve'](_0x4f6509('0x24a5'),{'fields':'id,level,name,description,ParentId,createdAt,updatedAt','sort':'-updatedAt','MailAccountId':'null','FaxAccountId':'null','SmsAccountId':_0x4f6509('0xb5f'),'OpenchannelAccountId':'null','ChatWebsiteId':_0x4f6509('0xb5f'),'WhatsappAccountId':'null','ListId':_0x4f6509('0xb5f'),'limit':0xa,'offset':0x0}):_0x4a3ff2[_0x4f6509('0xa28')](_0x4f6509('0xb0d'),{'id':_0xd30e21[_0x4f6509('0x2428')]()['userProfileId'],'section':_0x4f6509('0xc76'),'fields':_0x4f6509('0x12c1'),'sort':_0x4f6509('0x1c74'),'MailAccountId':_0x4f6509('0xb5f'),'FaxAccountId':_0x4f6509('0xb5f'),'SmsAccountId':_0x4f6509('0xb5f'),'OpenchannelAccountId':_0x4f6509('0xb5f'),'ChatWebsiteId':_0x4f6509('0xb5f'),'WhatsappAccountId':'null','ListId':_0x4f6509('0xb5f'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x42c3ab('0x218e'),'Auth',function(_0x2ca5df,_0x432be6){const _0x37b243=_0x42c3ab;return _0x432be6['hasRole'](_0x37b243('0xf45'))?null:_0x2ca5df[_0x37b243('0xa28')](_0x37b243('0x428'),{'fields':'id,name,crudPermissions','id':_0x432be6[_0x37b243('0x2428')]()[_0x37b243('0x781')]});}],'userProfileSection':['apiResolver',_0x42c3ab('0x1150'),function(_0xe3ecf9,_0x25cd40){const _0x37982f=_0x42c3ab;return _0x25cd40[_0x37982f('0x4ee')](_0x37982f('0xf45'))?null:_0xe3ecf9[_0x37982f('0xa28')]('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x25cd40[_0x37982f('0x2428')]()[_0x37982f('0x781')],'sectionId':0x3ea});}]},'authenticate':!![],'permissionId':0x3ea,'bodyClass':_0x42c3ab('0x12')});}angular['module']('app.tools.dispositions',[])['config'](_0x5812d5)[_0x21d0f5('0x23eb')](_0x21d0f5('0x21b7'),_0x2ab49b)['controller'](_0x21d0f5('0x1b68'),_0x1b0258);const _0x4adc56=_0x351988['p']+'src/js/modules/main/apps/tools/views/triggers/triggers.html/triggers.html',_0x4792e7=_0x351988['p']+_0x21d0f5('0xec9');_0x112cd1[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1ca2'),_0x21d0f5('0xb6b'),_0x21d0f5('0x142d'),_0x21d0f5('0xdec'),'trigger',_0x21d0f5('0x12a5'),'Auth',_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1'),_0x21d0f5('0xb25')];function _0x112cd1(_0x14c03b,_0x337628,_0x588bae,_0x587132,_0x298590,_0x5e46e1,_0x189852,_0x317cd9,_0x1f01b9,_0xba039d){const _0x52a701=_0x21d0f5,_0x394c11=this;_0x394c11[_0x52a701('0x32a')]=_0x189852[_0x52a701('0x2428')](),_0x394c11[_0x52a701('0x1be2')]=angular['copy'](_0x298590),_0x394c11[_0x52a701('0xdec')]=angular[_0x52a701('0x6fb')](_0x587132),_0x394c11[_0x52a701('0x23e1')]=_0x1f01b9,_0x394c11[_0x52a701('0x17ff')]=_0x317cd9,_0x394c11[_0x52a701('0xb25')]=_0xba039d,_0x394c11[_0x52a701('0xa4d')]=![],_0x394c11[_0x52a701('0x120f')]=[];!_0x394c11[_0x52a701('0x1be2')]&&(_0x394c11[_0x52a701('0x1be2')]={'channel':_0x52a701('0x1bc3')},_0x394c11['newTrigger']=!![]);_0x394c11['addNewTrigger']=_0x55ea39,_0x394c11[_0x52a701('0x44d')]=_0xa6fbec,_0x394c11['deleteTrigger']=_0x3def56,_0x394c11[_0x52a701('0xc4e')]=_0xdd464a;function _0x55ea39(){const _0x5cbd02=_0x52a701;_0x394c11['errors']=[],_0x5e46e1[_0x5cbd02('0x1be2')][_0x5cbd02('0x259')](_0x394c11[_0x5cbd02('0x1be2')])['$promise'][_0x5cbd02('0x11bf')](function(_0x21061d){const _0x5c12cd=_0x5cbd02;_0x394c11[_0x5c12cd('0xdec')][_0x5c12cd('0x880')](_0x21061d[_0x5c12cd('0x2866')]()),_0x588bae[_0x5c12cd('0x2693')]({'title':_0x337628[_0x5c12cd('0x10c2')](_0x5c12cd('0x2545'))}),_0xdd464a(_0x394c11[_0x5c12cd('0xdec')]);})[_0x5cbd02('0x151d')](function(_0x22b71a){const _0x519fea=_0x5cbd02;if(_0x22b71a[_0x519fea('0x4e8')]&&_0x22b71a[_0x519fea('0x4e8')][_0x519fea('0x120f')]&&_0x22b71a[_0x519fea('0x4e8')][_0x519fea('0x120f')][_0x519fea('0x1e22')]){_0x394c11['errors']=_0x22b71a[_0x519fea('0x4e8')][_0x519fea('0x120f')]||[{'message':_0x22b71a[_0x519fea('0xaab')](),'type':_0x519fea('0xf')}];for(let _0x59abdf=0x0;_0x59abdf<_0x22b71a[_0x519fea('0x4e8')][_0x519fea('0x120f')][_0x519fea('0x1e22')];_0x59abdf+=0x1){_0x588bae[_0x519fea('0x255')]({'title':_0x22b71a[_0x519fea('0x4e8')]['errors'][_0x59abdf][_0x519fea('0x19fd')],'msg':_0x22b71a[_0x519fea('0x4e8')][_0x519fea('0x120f')][_0x59abdf][_0x519fea('0x1b86')]});}}else _0x588bae[_0x519fea('0x255')]({'title':_0x22b71a[_0x519fea('0xff9')]?_0x519fea('0x574')+_0x22b71a[_0x519fea('0xff9')]+_0x519fea('0xb0b')+_0x22b71a[_0x519fea('0x212f')]:_0x519fea('0xf'),'msg':_0x22b71a['data']?JSON['stringify'](_0x22b71a[_0x519fea('0x4e8')][_0x519fea('0x1b86')]):_0x22b71a[_0x519fea('0xaab')]()});});}function _0xa6fbec(){const _0x5b541e=_0x52a701;_0x394c11[_0x5b541e('0x120f')]=[],_0x5e46e1[_0x5b541e('0x1be2')][_0x5b541e('0x5ab')]({'id':_0x394c11[_0x5b541e('0x1be2')]['id']},_0x394c11[_0x5b541e('0x1be2')])[_0x5b541e('0x1549')][_0x5b541e('0x11bf')](function(){const _0x5d78ed=_0x5b541e;_0x394c11[_0x5d78ed('0xdec')]=_0x36f548()[_0x5d78ed('0x2171')](_0x394c11['triggers'],function(_0x4f6027){const _0x26ace8=_0x5d78ed;if(_0x4f6027['id']===_0x394c11[_0x26ace8('0x1be2')]['id'])return _0x394c11['trigger'];else return _0x4f6027;}),_0x588bae['success']({'title':_0x337628['instant'](_0x5d78ed('0xd59'))}),_0xdd464a(_0x394c11[_0x5d78ed('0xdec')]);})[_0x5b541e('0x151d')](function(_0x18858b){const _0x25286c=_0x5b541e;if(_0x18858b[_0x25286c('0x4e8')]&&_0x18858b[_0x25286c('0x4e8')][_0x25286c('0x120f')]&&_0x18858b[_0x25286c('0x4e8')][_0x25286c('0x120f')][_0x25286c('0x1e22')]){_0x394c11['errors']=_0x18858b[_0x25286c('0x4e8')][_0x25286c('0x120f')]||[{'message':_0x18858b[_0x25286c('0xaab')](),'type':_0x25286c('0x1f66')}];for(let _0x8bf5c0=0x0;_0x8bf5c0<_0x18858b['data'][_0x25286c('0x120f')][_0x25286c('0x1e22')];_0x8bf5c0++){_0x588bae['error']({'title':_0x18858b[_0x25286c('0x4e8')][_0x25286c('0x120f')][_0x8bf5c0][_0x25286c('0x19fd')],'msg':_0x18858b[_0x25286c('0x4e8')][_0x25286c('0x120f')][_0x8bf5c0][_0x25286c('0x1b86')]});}}else _0x588bae[_0x25286c('0x255')]({'title':_0x18858b['status']?_0x25286c('0x574')+_0x18858b[_0x25286c('0xff9')]+'\x20-\x20'+_0x18858b['statusText']:_0x25286c('0x1f66'),'msg':_0x18858b[_0x25286c('0x4e8')]?JSON[_0x25286c('0x3e')](_0x18858b['data'][_0x25286c('0x1b86')]):_0x18858b[_0x25286c('0xaab')]()});});}function _0x3def56(_0x1999bf){const _0x2084ef=_0x52a701;_0x394c11[_0x2084ef('0x120f')]=[];const _0x5af210=_0x14c03b[_0x2084ef('0x132b')]({'skipHide':!![]})[_0x2084ef('0x134b')](_0x337628[_0x2084ef('0x10c2')]('TOOLS.NOTIFICATIONS.TRIGGER_DELETE_TITLE'))[_0x2084ef('0x252a')](_0x337628['instant'](_0x2084ef('0x1ca'),{'name':_0x394c11[_0x2084ef('0x1be2')][_0x2084ef('0x1909')]}))['ariaLabel'](_0x2084ef('0x1e06'))['ok'](_0x337628[_0x2084ef('0x10c2')](_0x2084ef('0x14e4')))['cancel'](_0x337628['instant'](_0x2084ef('0xa5d')))[_0x2084ef('0x1e25')](_0x1999bf);_0x14c03b[_0x2084ef('0xb9')](_0x5af210)[_0x2084ef('0x11bf')](function(){const _0x2d1562=_0x2084ef;_0x5e46e1[_0x2d1562('0x1be2')][_0x2d1562('0x2088')]({'id':_0x394c11['trigger']['id']})[_0x2d1562('0x1549')][_0x2d1562('0x11bf')](function(){const _0x534612=_0x2d1562;_0x394c11[_0x534612('0xdec')]=_0x36f548()[_0x534612('0xdb4')](_0x394c11['triggers'],function(_0x2b094e){const _0x340ba9=_0x534612;return _0x2b094e['id']!==_0x394c11[_0x340ba9('0x1be2')]['id'];}),_0x588bae[_0x534612('0x2693')]({'title':_0x337628[_0x534612('0x10c2')]('TOOLS.NOTIFICATIONS.TRIGGER_DELETED_SUCCESS_TITLE')}),_0xdd464a(_0x394c11[_0x534612('0xdec')]);})['catch'](function(_0x1f6047){const _0x4f6a32=_0x2d1562;if(_0x1f6047[_0x4f6a32('0x4e8')]&&_0x1f6047[_0x4f6a32('0x4e8')]['errors']&&_0x1f6047[_0x4f6a32('0x4e8')][_0x4f6a32('0x120f')][_0x4f6a32('0x1e22')]){_0x394c11[_0x4f6a32('0x120f')]=_0x1f6047['data'][_0x4f6a32('0x120f')]||[{'message':_0x1f6047['toString'](),'type':'api.trigger.delete'}];for(let _0x303fb9=0x0;_0x303fb9<_0x1f6047[_0x4f6a32('0x4e8')]['errors']['length'];_0x303fb9++){_0x588bae['error']({'title':_0x1f6047[_0x4f6a32('0x4e8')][_0x4f6a32('0x120f')][_0x303fb9][_0x4f6a32('0x19fd')],'msg':_0x1f6047[_0x4f6a32('0x4e8')][_0x4f6a32('0x120f')][_0x303fb9]['message']});}}else _0x588bae[_0x4f6a32('0x255')]({'title':_0x1f6047[_0x4f6a32('0xff9')]?_0x4f6a32('0x574')+_0x1f6047['status']+_0x4f6a32('0xb0b')+_0x1f6047['statusText']:_0x4f6a32('0x12b2'),'msg':_0x1f6047['data']?JSON['stringify'](_0x1f6047['data']['message']):_0x1f6047[_0x4f6a32('0x1b86')]||_0x1f6047[_0x4f6a32('0xaab')]()});});},function(){});}function _0xdd464a(_0x3e46d6){const _0x553c98=_0x52a701;_0x14c03b[_0x553c98('0x237e')](_0x3e46d6);}}const _0x401288=_0x112cd1,_0x136d66=_0x351988['p']+'src/js/modules/main/apps/tools/views/triggers/edit/actions/create/dialog.html/dialog.html';_0x5d6623[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0xb6b'),_0x21d0f5('0x17f5'),'$mdDialog','$document',_0x21d0f5('0x142d'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150')];function _0x5d6623(_0x25d037,_0x2636bd,_0x454df6,_0x1d3e04,_0x5a826a,_0x60ffe2,_0x77b351,_0x4c2ec8){const _0x46b1ad=_0x21d0f5,_0x4bc978=this;_0x4bc978[_0x46b1ad('0x32a')]=_0x4c2ec8['getCurrentUser'](),_0x4bc978[_0x46b1ad('0x1be2')]={},_0x4bc978[_0x46b1ad('0x103e')]={'count':0x0,'rows':[]},_0x4bc978[_0x46b1ad('0x19d')]=[],_0x4bc978[_0x46b1ad('0x1f2a')]={'fields':'id,action,contact,data1,data2,data3,data4,data5,data6,data7,createdAt,updatedAt','limit':0xa,'page':0x1},_0x4bc978['integrationTypes']={'zendesk':_0x46b1ad('0x1bb1'),'salesforce':_0x46b1ad('0x16d5'),'sugarcrm':_0x46b1ad('0x2029'),'freshdesk':_0x46b1ad('0x99b'),'desk':_0x46b1ad('0xa6d'),'zoho':_0x46b1ad('0x182a'),'vtiger':_0x46b1ad('0xa58'),'dynamics365':_0x46b1ad('0x152b'),'servicenow':'ServiceNow','freshsales':_0x46b1ad('0x10b7')},_0x4bc978[_0x46b1ad('0x1bc1')]={0x0:_0x46b1ad('0x151e'),0x1:_0x46b1ad('0x21f7'),0x2:_0x46b1ad('0xcae')},_0x4bc978['onInit']=_0x3bd1d0,_0x4bc978[_0x46b1ad('0x2693')]=_0x2b6001,_0x4bc978[_0x46b1ad('0x20b1')]=_0x46b7ef,_0x4bc978['createOrEditTriggerAction']=_0x552491,_0x4bc978[_0x46b1ad('0x1afc')]=_0x163348,_0x4bc978[_0x46b1ad('0x560')]=_0x5428ee,_0x4bc978['deleteSelectedTriggerActions']=_0x5eef82;function _0x3bd1d0(_0x2c4050,_0x455a81){const _0x266775=_0x46b1ad;_0x4bc978[_0x266775('0x1be2')]=_0x2c4050,_0x4bc978[_0x266775('0xb25')]=typeof _0x455a81!==_0x266775('0x13e9')?_0x455a81:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x4bc978['query']['ActionId']=_0x4bc978[_0x266775('0x1be2')]['id'],_0x4bc978[_0x266775('0x1f2a')]['id']=_0x4bc978[_0x266775('0x1be2')]['id'],_0x46b7ef();}function _0x1c3449(){const _0x310a4d=_0x46b1ad;_0x4c2ec8[_0x310a4d('0x14e0')]()?_0x77b351[_0x310a4d('0xbef')][_0x310a4d('0xbaa')]({'fields':'id,name','sort':_0x310a4d('0x1909'),'nolimit':'true'})[_0x310a4d('0x1549')][_0x310a4d('0x11bf')](function(_0x2674c4){const _0x500bc4=_0x310a4d;_0x4bc978[_0x500bc4('0x2410')]=_0x2674c4['rows']||[];})['catch'](function(_0x417248){const _0x1072f9=_0x310a4d;_0x60ffe2[_0x1072f9('0x255')]({'title':_0x417248[_0x1072f9('0xff9')]?_0x1072f9('0x574')+_0x417248[_0x1072f9('0xff9')]+_0x1072f9('0xb0b')+_0x417248[_0x1072f9('0x212f')]:_0x1072f9('0x27ed'),'msg':_0x417248['data']?JSON[_0x1072f9('0x3e')](_0x417248[_0x1072f9('0x4e8')]):_0x417248['toString']()});}):_0x77b351[_0x310a4d('0xbef')][_0x310a4d('0xbaa')]({'fields':_0x310a4d('0x721'),'sort':_0x310a4d('0x1909'),'nolimit':_0x310a4d('0x204c')})[_0x310a4d('0x1549')]['then'](function(_0x2e80a0){const _0x28974e=_0x310a4d;_0x4bc978[_0x28974e('0x2410')]=_0x2e80a0[_0x28974e('0x19b2')]||[];})[_0x310a4d('0x11bf')](function(){const _0x2a4856=_0x310a4d;return _0x77b351['userProfileSection']['get']({'userProfileId':_0x4bc978[_0x2a4856('0x32a')][_0x2a4856('0x781')],'sectionId':0x12d})[_0x2a4856('0x1549')];})['then'](function(_0x3e3f0a){const _0x43d446=_0x310a4d,_0x2428ca=_0x3e3f0a&&_0x3e3f0a[_0x43d446('0x19b2')]?_0x3e3f0a['rows'][0x0]:null;if(!_0x2428ca){const _0x7c7911=[],_0x2b4f67=[];_0x4bc978[_0x43d446('0x103e')][_0x43d446('0x19b2')][_0x43d446('0x1f88')](function(_0x225b97){const _0x2fb1d2=_0x43d446;if(_0x225b97['action']===_0x2fb1d2('0x1724')){const _0x1009fc=_0x36f548()[_0x2fb1d2('0x1ad4')](_0x4bc978[_0x2fb1d2('0x2410')],{'id':Number(_0x225b97[_0x2fb1d2('0x1804')])});_0x2b4f67[_0x2fb1d2('0x105d')](_0x1009fc);}});for(let _0x341775=0x0;_0x341775<_0x4bc978[_0x43d446('0x2410')]['length'];_0x341775++){const _0x2d2b48=_0x36f548()[_0x43d446('0x1cb3')](_0x2b4f67,{'id':_0x4bc978[_0x43d446('0x2410')][_0x341775]['id']});_0x2d2b48&&(_0x4bc978[_0x43d446('0x2410')][_0x341775][_0x43d446('0x254a')]=![],_0x7c7911[_0x43d446('0x105d')](_0x4bc978[_0x43d446('0x2410')][_0x341775]));}_0x4bc978[_0x43d446('0x2410')]=_0x7c7911;}else{if(!_0x2428ca['autoAssociation'])return _0x77b351[_0x43d446('0x26d1')][_0x43d446('0xbaa')]({'sectionId':_0x2428ca['id']})['$promise'][_0x43d446('0x11bf')](function(_0x2123d9){const _0x29f582=_0x43d446,_0x26cb0c=_0x36f548()[_0x29f582('0x2171')](_0x2123d9['rows'],function(_0x2c5975){const _0x346195=_0x29f582;return _0x36f548()[_0x346195('0x1ad4')](_0x4bc978[_0x346195('0x2410')],{'id':_0x2c5975['resourceId']});});let _0x4b0fa6=null;_0x4b0fa6=[],_0x4bc978[_0x29f582('0x103e')][_0x29f582('0x19b2')][_0x29f582('0x1f88')](function(_0x17f8d9){const _0x5304f9=_0x29f582;if(_0x17f8d9[_0x5304f9('0x1607')]==='contactManager'){const _0x394696=_0x36f548()[_0x5304f9('0x1ad4')](_0x4bc978[_0x5304f9('0x2410')],{'id':Number(_0x17f8d9[_0x5304f9('0x1804')])});_0x4b0fa6[_0x5304f9('0x105d')](_0x394696);}}),!_0x36f548()[_0x29f582('0x1fc5')](_0x4b0fa6)&&_0x4b0fa6[_0x29f582('0x1f88')](function(_0x21a353){const _0x100a38=_0x29f582;if(!_0x36f548()[_0x100a38('0x1cb3')](_0x26cb0c,['id',_0x21a353['id']])){const _0x4d581b=_0x36f548()[_0x100a38('0x1ad4')](_0x4bc978[_0x100a38('0x2410')],{'id':_0x21a353['id']});_0x4d581b['canSelect']=![],_0x26cb0c[_0x100a38('0x105d')](_0x4d581b);}}),_0x4bc978[_0x29f582('0x2410')]=_0x26cb0c;});}})[_0x310a4d('0x151d')](function(_0x10a4fe){const _0xb8a1af=_0x310a4d;_0x60ffe2['error']({'title':_0x10a4fe[_0xb8a1af('0xff9')]?_0xb8a1af('0x574')+_0x10a4fe[_0xb8a1af('0xff9')]+'\x20-\x20'+_0x10a4fe['statusText']:'SYSTEM:GETlists','msg':_0x10a4fe['data']?JSON[_0xb8a1af('0x3e')](_0x10a4fe['data']):_0x10a4fe[_0xb8a1af('0xaab')]()});});}function _0x4f01cb(){const _0x496908=_0x46b1ad,_0x1096d7=_0x36f548()(_0x4bc978[_0x496908('0x103e')]['rows'])['map'](function(_0x1e584d){const _0x36ade9=_0x496908;return _0x1e584d[_0x36ade9('0x1607')]==='integration'?_0x1e584d['data1']:undefined;})[_0x496908('0x2022')]()['uniq']()[_0x496908('0x10cc')]();_0x1096d7['forEach'](function(_0x3cfa30){const _0x5b462c=_0x496908,_0x53a19e=_0x3cfa30+_0x5b462c('0x1f05');if(!_0x4bc978[_0x53a19e]){const _0x21be9d=_0x5b462c('0x241')+_0x36f548()['startCase'](_0x3cfa30)+_0x5b462c('0x1e3c');_0x77b351[_0x21be9d]['get']({'fields':'id,name','sort':'id','nolimit':_0x5b462c('0x204c')})[_0x5b462c('0x1549')]['then'](function(_0x40d107){const _0x5082e7=_0x5b462c;_0x4bc978[_0x53a19e]=_0x40d107[_0x5082e7('0x19b2')]||[];})['catch'](function(_0xeb9330){const _0x298490=_0x5b462c;_0x60ffe2['error']({'title':_0xeb9330[_0x298490('0xff9')]?_0x298490('0x574')+_0xeb9330[_0x298490('0xff9')]+'\x20-\x20'+_0xeb9330[_0x298490('0x212f')]:_0x298490('0x13a3')+_0x53a19e[_0x298490('0xa6f')]()+'ACCOUNTS','msg':_0xeb9330['data']?JSON[_0x298490('0x3e')](_0xeb9330['data']):_0xeb9330[_0x298490('0xaab')]()});});}});}function _0x9a8875(){const _0x3e4082=_0x46b1ad;_0x4c2ec8['isAdmin']()?_0x77b351['jscriptyProject'][_0x3e4082('0xbaa')]({'fields':_0x3e4082('0x721'),'sort':_0x3e4082('0x1909'),'nolimit':_0x3e4082('0x204c')})[_0x3e4082('0x1549')]['then'](function(_0x319f46){const _0x32e8b5=_0x3e4082;_0x4bc978[_0x32e8b5('0xa62')]=_0x319f46[_0x32e8b5('0x19b2')]||[];})['catch'](function(_0x13d848){const _0x4c93dc=_0x3e4082;_0x60ffe2[_0x4c93dc('0x255')]({'title':_0x13d848['status']?_0x4c93dc('0x574')+_0x13d848[_0x4c93dc('0xff9')]+_0x4c93dc('0xb0b')+_0x13d848[_0x4c93dc('0x212f')]:'SYSTEM:GET_PROJECTS','msg':_0x13d848[_0x4c93dc('0x4e8')]?JSON[_0x4c93dc('0x3e')](_0x13d848[_0x4c93dc('0x4e8')]):_0x13d848[_0x4c93dc('0xaab')]()});}):_0x77b351['jscriptyProject'][_0x3e4082('0xbaa')]({'fields':'id,name','sort':'name','nolimit':'true'})[_0x3e4082('0x1549')]['then'](function(_0x2e6858){const _0x2ec269=_0x3e4082;_0x4bc978[_0x2ec269('0xa62')]=_0x2e6858[_0x2ec269('0x19b2')]||[];})[_0x3e4082('0x11bf')](function(){const _0x42efc3=_0x3e4082;return _0x77b351['userProfileSection'][_0x42efc3('0xbaa')]({'userProfileId':_0x4bc978[_0x42efc3('0x32a')][_0x42efc3('0x781')],'sectionId':0x6a5})[_0x42efc3('0x1549')];})['then'](function(_0x4531fa){const _0x3ded2d=_0x3e4082,_0xe674f7=_0x4531fa&&_0x4531fa['rows']?_0x4531fa[_0x3ded2d('0x19b2')][0x0]:null;if(!_0xe674f7){const _0x480265=[],_0x45ed15=[];_0x4bc978[_0x3ded2d('0x103e')][_0x3ded2d('0x19b2')][_0x3ded2d('0x1f88')](function(_0x3bfc21){const _0x3ae849=_0x3ded2d;if(_0x3bfc21[_0x3ae849('0x1607')]===_0x3ae849('0x163c')){const _0x396539=_0x36f548()[_0x3ae849('0x1ad4')](_0x4bc978[_0x3ae849('0xa62')],{'id':Number(_0x3bfc21[_0x3ae849('0x1804')])});_0x45ed15[_0x3ae849('0x105d')](_0x396539);}});for(let _0x4ca6f9=0x0;_0x4ca6f9<_0x4bc978['projects']['length'];_0x4ca6f9++){const _0x228b95=_0x36f548()[_0x3ded2d('0x1cb3')](_0x45ed15,{'id':_0x4bc978[_0x3ded2d('0xa62')][_0x4ca6f9]['id']});_0x228b95&&(_0x4bc978[_0x3ded2d('0xa62')][_0x4ca6f9][_0x3ded2d('0x254a')]=![],_0x480265[_0x3ded2d('0x105d')](_0x4bc978['projects'][_0x4ca6f9]));}_0x4bc978[_0x3ded2d('0xa62')]=_0x480265;}else{if(!_0xe674f7[_0x3ded2d('0xf11')])return _0x77b351['userProfileResource']['get']({'sectionId':_0xe674f7['id']})[_0x3ded2d('0x1549')][_0x3ded2d('0x11bf')](function(_0x3c44c5){const _0x4dedac=_0x3ded2d,_0x360c56=_0x36f548()[_0x4dedac('0x2171')](_0x3c44c5[_0x4dedac('0x19b2')],function(_0x4d18cb){const _0x2f5214=_0x4dedac;return _0x36f548()['find'](_0x4bc978[_0x2f5214('0xa62')],{'id':_0x4d18cb[_0x2f5214('0x15a5')]});});let _0x5e64c3=null;_0x5e64c3=[],_0x4bc978[_0x4dedac('0x103e')][_0x4dedac('0x19b2')][_0x4dedac('0x1f88')](function(_0x22cdc3){const _0x14afc1=_0x4dedac;if(_0x22cdc3[_0x14afc1('0x1607')]===_0x14afc1('0x163c')){const _0x3a7dea=_0x36f548()[_0x14afc1('0x1ad4')](_0x4bc978['projects'],{'id':Number(_0x22cdc3['data1'])});_0x5e64c3[_0x14afc1('0x105d')](_0x3a7dea);}}),!_0x36f548()[_0x4dedac('0x1fc5')](_0x5e64c3)&&_0x5e64c3['forEach'](function(_0x1bd852){const _0x441ce4=_0x4dedac;if(!_0x36f548()[_0x441ce4('0x1cb3')](_0x360c56,['id',_0x1bd852['id']])){const _0xd82df=_0x36f548()[_0x441ce4('0x1ad4')](_0x4bc978[_0x441ce4('0xa62')],{'id':_0x1bd852['id']});_0xd82df[_0x441ce4('0x254a')]=![],_0x360c56[_0x441ce4('0x105d')](_0xd82df);}}),_0x4bc978[_0x4dedac('0xa62')]=_0x360c56;});}})[_0x3e4082('0x151d')](function(_0x529e44){const _0x18c0dc=_0x3e4082;_0x60ffe2[_0x18c0dc('0x255')]({'title':_0x529e44[_0x18c0dc('0xff9')]?_0x18c0dc('0x574')+_0x529e44[_0x18c0dc('0xff9')]+'\x20-\x20'+_0x529e44[_0x18c0dc('0x212f')]:'SYSTEM:GETprojects','msg':_0x529e44[_0x18c0dc('0x4e8')]?JSON[_0x18c0dc('0x3e')](_0x529e44[_0x18c0dc('0x4e8')]):_0x529e44[_0x18c0dc('0xaab')]()});});}function _0x17a6fe(){const _0x1dbc3f=_0x46b1ad;_0x4c2ec8[_0x1dbc3f('0x14e0')]()?_0x77b351['template']['get']({'fields':_0x1dbc3f('0x721'),'sort':'id','nolimit':'true'})[_0x1dbc3f('0x1549')][_0x1dbc3f('0x11bf')](function(_0x1c7abe){const _0x125e8a=_0x1dbc3f;_0x4bc978[_0x125e8a('0x1302')]=_0x1c7abe[_0x125e8a('0x19b2')]||[];})[_0x1dbc3f('0x151d')](function(_0x5a0b92){const _0x18512c=_0x1dbc3f;_0x60ffe2[_0x18512c('0x255')]({'title':_0x5a0b92[_0x18512c('0xff9')]?_0x18512c('0x574')+_0x5a0b92['status']+_0x18512c('0xb0b')+_0x5a0b92[_0x18512c('0x212f')]:_0x18512c('0x7ad'),'msg':_0x5a0b92[_0x18512c('0x4e8')]?JSON[_0x18512c('0x3e')](_0x5a0b92['data']):_0x5a0b92[_0x18512c('0xaab')]()});}):_0x77b351[_0x1dbc3f('0x13b6')]['get']({'fields':_0x1dbc3f('0x721'),'sort':'id','nolimit':_0x1dbc3f('0x204c')})[_0x1dbc3f('0x1549')][_0x1dbc3f('0x11bf')](function(_0x3d8899){const _0x153ba3=_0x1dbc3f;_0x4bc978[_0x153ba3('0x1302')]=_0x3d8899[_0x153ba3('0x19b2')]||[];})[_0x1dbc3f('0x11bf')](function(){const _0x5b8d4d=_0x1dbc3f;return _0x77b351[_0x5b8d4d('0x1d63')][_0x5b8d4d('0xbaa')]({'userProfileId':_0x4bc978[_0x5b8d4d('0x32a')][_0x5b8d4d('0x781')],'sectionId':0x3f1})['$promise'];})[_0x1dbc3f('0x11bf')](function(_0x54b3fa){const _0x12897c=_0x1dbc3f,_0x249df4=_0x54b3fa&&_0x54b3fa[_0x12897c('0x19b2')]?_0x54b3fa[_0x12897c('0x19b2')][0x0]:null;if(!_0x249df4){const _0x2ececc=[],_0x4567ee=[];_0x4bc978[_0x12897c('0x103e')][_0x12897c('0x19b2')]['forEach'](function(_0xa951ae){const _0x2c0a37=_0x12897c;if(_0x36f548()[_0x2c0a37('0x55a')]([_0x2c0a37('0x19bd'),_0x2c0a37('0x19e6')],_0xa951ae[_0x2c0a37('0x1607')])){const _0x56fbbf=_0x36f548()[_0x2c0a37('0x1ad4')](_0x4bc978['templates'],{'id':Number(_0xa951ae['data2'])});_0x4567ee[_0x2c0a37('0x105d')](_0x56fbbf);}});for(let _0x58914f=0x0;_0x58914f<_0x4bc978['templates'][_0x12897c('0x1e22')];_0x58914f++){const _0x2a59fc=_0x36f548()[_0x12897c('0x1cb3')](_0x4567ee,{'id':_0x4bc978[_0x12897c('0x1302')][_0x58914f]['id']});_0x2a59fc&&(_0x4bc978[_0x12897c('0x1302')][_0x58914f][_0x12897c('0x254a')]=![],_0x2ececc[_0x12897c('0x105d')](_0x4bc978[_0x12897c('0x1302')][_0x58914f]));}_0x4bc978['templates']=_0x2ececc;}else{if(!_0x249df4[_0x12897c('0xf11')])return _0x77b351['userProfileResource'][_0x12897c('0xbaa')]({'sectionId':_0x249df4['id']})[_0x12897c('0x1549')]['then'](function(_0x4e4de4){const _0x1b6cca=_0x12897c,_0x3cc9bc=_0x36f548()['map'](_0x4e4de4[_0x1b6cca('0x19b2')],function(_0x247449){const _0x3be0a1=_0x1b6cca;return _0x36f548()[_0x3be0a1('0x1ad4')](_0x4bc978[_0x3be0a1('0x1302')],{'id':_0x247449['resourceId']});});let _0x5761c5=null;_0x5761c5=[],_0x4bc978['triggerActions'][_0x1b6cca('0x19b2')][_0x1b6cca('0x1f88')](function(_0x43377c){const _0x78de29=_0x1b6cca;if(_0x36f548()[_0x78de29('0x55a')]([_0x78de29('0x19bd'),_0x78de29('0x19e6')],_0x43377c[_0x78de29('0x1607')])){const _0x3ae0bc=_0x36f548()[_0x78de29('0x1ad4')](_0x4bc978[_0x78de29('0x1302')],{'id':Number(_0x43377c[_0x78de29('0x1489')])});_0x5761c5[_0x78de29('0x105d')](_0x3ae0bc);}}),!_0x36f548()[_0x1b6cca('0x1fc5')](_0x5761c5)&&_0x5761c5[_0x1b6cca('0x1f88')](function(_0x2acc8c){const _0x4a10ec=_0x1b6cca;if(!_0x36f548()['some'](_0x3cc9bc,['id',_0x2acc8c['id']])){const _0x280111=_0x36f548()[_0x4a10ec('0x1ad4')](_0x4bc978[_0x4a10ec('0x1302')],{'id':_0x2acc8c['id']});_0x280111[_0x4a10ec('0x254a')]=![],_0x3cc9bc[_0x4a10ec('0x105d')](_0x280111);}}),_0x4bc978['templates']=_0x3cc9bc;});}})[_0x1dbc3f('0x151d')](function(_0x46a6ba){const _0x2ebbf5=_0x1dbc3f;_0x60ffe2['error']({'title':_0x46a6ba[_0x2ebbf5('0xff9')]?_0x2ebbf5('0x574')+_0x46a6ba['status']+_0x2ebbf5('0xb0b')+_0x46a6ba[_0x2ebbf5('0x212f')]:_0x2ebbf5('0x7ad'),'msg':_0x46a6ba[_0x2ebbf5('0x4e8')]?JSON[_0x2ebbf5('0x3e')](_0x46a6ba[_0x2ebbf5('0x4e8')]):_0x46a6ba[_0x2ebbf5('0xaab')]()});});}function _0x39fbf3(){const _0x2f74da=_0x46b1ad;if(_0x36f548()[_0x2f74da('0x1cb3')](_0x4bc978[_0x2f74da('0x103e')][_0x2f74da('0x19b2')],[_0x2f74da('0x1607'),_0x2f74da('0x1724')])){if(!_0x4bc978[_0x2f74da('0x2410')])_0x1c3449();}_0x36f548()[_0x2f74da('0x1cb3')](_0x4bc978[_0x2f74da('0x103e')][_0x2f74da('0x19b2')],[_0x2f74da('0x1607'),'integration'])&&_0x4f01cb();if(_0x36f548()[_0x2f74da('0x1cb3')](_0x4bc978[_0x2f74da('0x103e')][_0x2f74da('0x19b2')],function(_0x2908d8){const _0x18e191=_0x2f74da;return _0x36f548()['includes']([_0x18e191('0x19bd'),_0x18e191('0x19e6')],_0x2908d8[_0x18e191('0x1607')]);})){if(!_0x4bc978[_0x2f74da('0x1302')])_0x17a6fe();}if(_0x36f548()[_0x2f74da('0x1cb3')](_0x4bc978['triggerActions']['rows'],[_0x2f74da('0x1607'),_0x2f74da('0x163c')])){if(!_0x4bc978[_0x2f74da('0xa62')])_0x9a8875();}}function _0x2b6001(_0x36bc1c){const _0x367877=_0x46b1ad;_0x4bc978[_0x367877('0x103e')]=_0x36bc1c||{'count':0x0,'rows':[]},_0x39fbf3();}function _0x46b7ef(){const _0xc63846=_0x46b1ad;_0x4bc978[_0xc63846('0x1f2a')][_0xc63846('0x1393')]=(_0x4bc978[_0xc63846('0x1f2a')][_0xc63846('0x1c2')]-0x1)*_0x4bc978[_0xc63846('0x1f2a')]['limit'],_0x4bc978[_0xc63846('0x13f')]=_0x77b351[_0xc63846('0x1be2')][_0xc63846('0x1aa1')](_0x4bc978[_0xc63846('0x1f2a')],_0x2b6001)[_0xc63846('0x1549')];}function _0x552491(_0x3b6622,_0x2f1662){const _0x42a082=_0x46b1ad;_0x1d3e04['show']({'controller':_0x42a082('0x6b9'),'controllerAs':'vm','templateUrl':_0x136d66,'parent':angular['element'](_0x5a826a['body']),'targetEvent':_0x3b6622,'clickOutsideToClose':!![],'locals':{'trigger':_0x4bc978[_0x42a082('0x1be2')],'action':_0x2f1662,'actions':_0x4bc978[_0x42a082('0x103e')]['rows'],'license':null,'setting':null,'crudPermissions':_0x4bc978[_0x42a082('0xb25')]}})[_0x42a082('0x11bf')](function(_0x168444){const _0x5e41b2=_0x42a082;_0x168444&&(_0x4bc978[_0x5e41b2('0x103e')]={'count':_0x168444[_0x5e41b2('0x1e22')],'rows':_0x168444},_0x39fbf3());});}function _0x5428ee(_0x284e50,_0x4ddf7e){const _0x36f201=_0x46b1ad,_0x5f1dfc=_0x1d3e04[_0x36f201('0x132b')]()[_0x36f201('0x134b')](_0x2636bd[_0x36f201('0x10c2')]('TOOLS.NOTIFICATIONS.ACTION_DELETE_TITLE'))[_0x36f201('0xb2e')](_0x36f201('0x1616'))[_0x36f201('0x1e25')](_0x4ddf7e)['ok']('OK')[_0x36f201('0x26c9')](_0x2636bd['instant'](_0x36f201('0xa5d')));_0x1d3e04[_0x36f201('0xb9')](_0x5f1dfc)['then'](function(){_0x41f2f4(_0x284e50,!![]);});}function _0x41f2f4(_0xbec052,_0x18e150){const _0x524376=_0x46b1ad;_0x77b351[_0x524376('0x1607')][_0x524376('0x2088')]({'id':_0xbec052['id']})[_0x524376('0x1549')][_0x524376('0x11bf')](function(){const _0x4ac7c2=_0x524376;_0x46b7ef(),_0x18e150&&_0x60ffe2['success']({'title':_0x2636bd['instant'](_0x4ac7c2('0x1f4'))});})[_0x524376('0x151d')](function(_0x28f21c){const _0xeabe84=_0x524376;if(_0x28f21c[_0xeabe84('0x4e8')]&&_0x28f21c[_0xeabe84('0x4e8')]['errors']&&_0x28f21c[_0xeabe84('0x4e8')][_0xeabe84('0x120f')][_0xeabe84('0x1e22')]){_0x4bc978['errors']=_0x28f21c[_0xeabe84('0x4e8')][_0xeabe84('0x120f')]||[{'message':_0x28f21c[_0xeabe84('0xaab')](),'type':_0xeabe84('0x1c90')}];for(let _0x9ef232=0x0;_0x9ef232<_0x28f21c[_0xeabe84('0x4e8')][_0xeabe84('0x120f')][_0xeabe84('0x1e22')];_0x9ef232++){_0x60ffe2[_0xeabe84('0x255')]({'title':_0x28f21c[_0xeabe84('0x4e8')][_0xeabe84('0x120f')][_0x9ef232][_0xeabe84('0x19fd')],'msg':_0x28f21c['data'][_0xeabe84('0x120f')][_0x9ef232][_0xeabe84('0x1b86')]});}}else _0x60ffe2['error']({'title':_0x28f21c[_0xeabe84('0xff9')]?_0xeabe84('0x574')+_0x28f21c[_0xeabe84('0xff9')]+_0xeabe84('0xb0b')+_0x28f21c[_0xeabe84('0x212f')]:_0xeabe84('0x1c90'),'msg':_0x28f21c['data']?JSON[_0xeabe84('0x3e')](_0x28f21c[_0xeabe84('0x4e8')]['message']):_0x28f21c[_0xeabe84('0x1b86')]||_0x28f21c['toString']()});});}function _0x163348(){const _0x2b550d=_0x46b1ad,_0x32796d=angular['copy'](_0x4bc978[_0x2b550d('0x19d')]);return _0x4bc978['selectedTriggerActions']=[],_0x32796d;}function _0x5eef82(_0x46d3d4){const _0x24a182=_0x46b1ad,_0x3c5d4f=_0x1d3e04[_0x24a182('0x132b')]()['title'](_0x2636bd[_0x24a182('0x10c2')]('TOOLS.NOTIFICATIONS.ACTIONS_DELETE_TITLE'))[_0x24a182('0x252a')](_0x2636bd[_0x24a182('0x10c2')](_0x24a182('0x114a'),{'total':_0x4bc978[_0x24a182('0x19d')][_0x24a182('0x1e22')]}))[_0x24a182('0xb2e')](_0x24a182('0x2071'))['targetEvent'](_0x46d3d4)['ok']('OK')[_0x24a182('0x26c9')](_0x2636bd[_0x24a182('0x10c2')](_0x24a182('0xa5d')));_0x1d3e04[_0x24a182('0xb9')](_0x3c5d4f)['then'](function(){const _0x915580=_0x24a182;_0x4bc978[_0x915580('0x19d')][_0x915580('0x1f88')](function(_0x316cd1){_0x41f2f4(_0x316cd1);}),_0x4bc978['selectedTriggerActions']=[],_0x60ffe2['success']({'title':_0x2636bd[_0x915580('0x10c2')](_0x915580('0x804'))});});}let _0x2ae19a=!![],_0x23e031=0x1;_0x25d037[_0x46b1ad('0x2087')](_0x46b1ad('0x1d12'),function(_0x2d11df,_0x35f0d6){const _0x7c84d9=_0x46b1ad;_0x2ae19a?_0x454df6(function(){_0x2ae19a=![];}):(!_0x35f0d6&&(_0x23e031=_0x4bc978[_0x7c84d9('0x1f2a')][_0x7c84d9('0x1c2')]),_0x2d11df!==_0x35f0d6&&(_0x4bc978[_0x7c84d9('0x1f2a')][_0x7c84d9('0x1c2')]=0x1),!_0x2d11df&&(_0x4bc978['query'][_0x7c84d9('0x1c2')]=_0x23e031),_0x46b7ef());});}const _0x69121d=_0x5d6623;_0x42fc8a[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0xcbc'),_0x21d0f5('0x1ca2'),'$translate',_0x21d0f5('0x142d'),_0x21d0f5('0x4ec'),_0x21d0f5('0x1607'),_0x21d0f5('0x1be2'),'api',_0x21d0f5('0x1150'),_0x21d0f5('0x17ff'),'setting','crudPermissions'];function _0x42fc8a(_0x32dbe2,_0x3d9fd6,_0x18b22e,_0x20b4ce,_0x28ad06,_0xa5ce69,_0xed5cb8,_0x304d19,_0x3636f4,_0x37edf2,_0x273f5a,_0x121e4c){const _0x35379a=_0x21d0f5,_0x5ea712=this;_0x5ea712[_0x35379a('0x32a')]=_0x3636f4[_0x35379a('0x2428')](),_0x5ea712[_0x35379a('0x1607')]=angular['copy'](_0xa5ce69),_0x5ea712['actions']=angular[_0x35379a('0x6fb')](_0x28ad06),_0x5ea712['setting']=_0x273f5a,_0x5ea712['license']=_0x37edf2,_0x5ea712[_0x35379a('0xb25')]=_0x121e4c,_0x5ea712[_0x35379a('0x1d8a')]=![],_0x5ea712[_0x35379a('0x120f')]=[],_0x5ea712['trigger']=angular[_0x35379a('0x6fb')](_0xed5cb8);!_0x5ea712[_0x35379a('0x1607')]&&(_0x5ea712[_0x35379a('0x1607')]={},_0x5ea712[_0x35379a('0x1d8a')]=!![]);_0x5ea712[_0x35379a('0x1607')][_0x35379a('0x2014')]=_0x32dbe2[_0x35379a('0x1ab3')]['id']||undefined,_0x5ea712[_0x35379a('0x5d2')]=[_0x35379a('0x1546'),_0x35379a('0x249f'),'fax'],_0x5ea712[_0x35379a('0x26e1')]=_0x1da1bc,_0x5ea712[_0x35379a('0x6e')]=_0xdfdaa9,_0x5ea712[_0x35379a('0x3d1')]=_0x10c126,_0x5ea712['onActionInit']=_0x43dd76,_0x5ea712['onIntegrationInit']=_0x468564,_0x5ea712[_0x35379a('0x2224')]=_0x349150,_0x5ea712['onActionSelection']=_0x3e4892,_0x5ea712[_0x35379a('0x1688')]=_0x48c6eb,_0x5ea712[_0x35379a('0x17e2')]=_0x5617a8,_0x5ea712['onTypeSelection']=_0x25150a,_0x5ea712[_0x35379a('0x14f8')]=_0x4f88e4,_0x5ea712['onIntegrationAccountSelection']=_0xf62658,_0x5ea712[_0x35379a('0xc4e')]=_0xfdf8f2;function _0x43dd76(){const _0x1fa26a=_0x35379a;_0x3636f4[_0x1fa26a('0x2c9')](_0x1fa26a('0x73a'))[_0x1fa26a('0x11bf')](function(_0x5382b3){_0x5ea712['hasIntegrationsPermissions']=_0x5382b3;})[_0x1fa26a('0x151d')](function(_0x558a3d){const _0x5b3790=_0x1fa26a;_0x20b4ce[_0x5b3790('0x255')]({'title':_0x558a3d[_0x5b3790('0xff9')]?_0x5b3790('0x574')+_0x558a3d[_0x5b3790('0xff9')]+_0x5b3790('0xb0b')+_0x558a3d['statusText']:_0x5b3790('0x26d3'),'msg':_0x558a3d['data']?JSON[_0x5b3790('0x3e')](_0x558a3d[_0x5b3790('0x4e8')]):_0x558a3d[_0x5b3790('0xaab')]()});});if(_0x5ea712['action'][_0x1fa26a('0x1607')])_0x4d11d3();}function _0x468564(){const _0xd44b9a=_0x35379a,_0x5e3fc1=[0x515,0x516,0x517,0x519,0x51a,0x51b,0x51c,0x51d,0x51e,0x51f];_0x3636f4['hasSectionsPermissions'](_0x5e3fc1)[_0xd44b9a('0x11bf')](function(_0x1a78a0){const _0x1963aa=_0xd44b9a;_0x5ea712[_0x1963aa('0x3a4')]=_0x36f548()['merge'](_0x5ea712[_0x1963aa('0x3a4')],_0x1a78a0);})[_0xd44b9a('0x151d')](function(_0x1a4e02){const _0xdedd45=_0xd44b9a;_0x20b4ce[_0xdedd45('0x255')]({'title':_0x1a4e02[_0xdedd45('0xff9')]?_0xdedd45('0x574')+_0x1a4e02['status']+_0xdedd45('0xb0b')+_0x1a4e02['statusText']:_0xdedd45('0x409'),'msg':_0x1a4e02[_0xdedd45('0x4e8')]?JSON[_0xdedd45('0x3e')](_0x1a4e02['data']):_0x1a4e02[_0xdedd45('0xaab')]()});});}function _0x349150(){const _0x4f99d4=_0x35379a;if(!_0x5ea712[_0x4f99d4('0x1d8a')])_0x146df6();}function _0x5513e2(){const _0x3b15a8=_0x35379a;_0x3636f4[_0x3b15a8('0x14e0')]()?_0x304d19['cmList'][_0x3b15a8('0xbaa')]({'fields':_0x3b15a8('0x721'),'sort':_0x3b15a8('0x1909'),'nolimit':_0x3b15a8('0x204c')})[_0x3b15a8('0x1549')]['then'](function(_0x59ea4e){_0x5ea712['lists']=_0x59ea4e['rows']||[];})[_0x3b15a8('0x151d')](function(_0x7492aa){const _0x1b73e4=_0x3b15a8;_0x20b4ce['error']({'title':_0x7492aa['status']?_0x1b73e4('0x574')+_0x7492aa[_0x1b73e4('0xff9')]+'\x20-\x20'+_0x7492aa[_0x1b73e4('0x212f')]:_0x1b73e4('0x27ed'),'msg':_0x7492aa['data']?JSON['stringify'](_0x7492aa[_0x1b73e4('0x4e8')]):_0x7492aa['toString']()});}):_0x304d19[_0x3b15a8('0xbef')]['get']({'fields':_0x3b15a8('0x721'),'sort':'name','nolimit':_0x3b15a8('0x204c')})['$promise'][_0x3b15a8('0x11bf')](function(_0x18fe3c){const _0x2f914c=_0x3b15a8;_0x5ea712[_0x2f914c('0x2410')]=_0x18fe3c[_0x2f914c('0x19b2')]||[];})[_0x3b15a8('0x11bf')](function(){const _0x4cf573=_0x3b15a8;return _0x304d19[_0x4cf573('0x1d63')][_0x4cf573('0xbaa')]({'userProfileId':_0x5ea712[_0x4cf573('0x32a')][_0x4cf573('0x781')],'sectionId':0x12d})[_0x4cf573('0x1549')];})[_0x3b15a8('0x11bf')](function(_0x2369e3){const _0x3e3cc6=_0x3b15a8,_0xd7fbe=_0x2369e3&&_0x2369e3[_0x3e3cc6('0x19b2')]?_0x2369e3[_0x3e3cc6('0x19b2')][0x0]:null;if(!_0xd7fbe){const _0x4a980b=[],_0x33b1c5=[];_0x5ea712[_0x3e3cc6('0x103e')]['rows'][_0x3e3cc6('0x1f88')](function(_0x4ee84d){const _0x406d46=_0x3e3cc6;if(_0x4ee84d[_0x406d46('0x1607')]===_0x406d46('0x1724')){const _0x4dda6a=_0x36f548()[_0x406d46('0x1ad4')](_0x5ea712[_0x406d46('0x2410')],{'id':Number(_0x4ee84d[_0x406d46('0x1804')])});_0x33b1c5['push'](_0x4dda6a);}});for(let _0x41c474=0x0;_0x41c474<_0x5ea712[_0x3e3cc6('0x2410')]['length'];_0x41c474++){const _0x50b756=_0x36f548()[_0x3e3cc6('0x1cb3')](_0x33b1c5,{'id':_0x5ea712[_0x3e3cc6('0x2410')][_0x41c474]['id']});_0x50b756&&(_0x5ea712['lists'][_0x41c474][_0x3e3cc6('0x254a')]=![],_0x4a980b[_0x3e3cc6('0x105d')](_0x5ea712[_0x3e3cc6('0x2410')][_0x41c474]));}_0x5ea712[_0x3e3cc6('0x2410')]=_0x4a980b;}else{if(!_0xd7fbe['autoAssociation'])return _0x304d19[_0x3e3cc6('0x26d1')][_0x3e3cc6('0xbaa')]({'sectionId':_0xd7fbe['id']})[_0x3e3cc6('0x1549')][_0x3e3cc6('0x11bf')](function(_0xf19b23){const _0x17b162=_0x3e3cc6,_0x1b255d=_0x36f548()['map'](_0xf19b23[_0x17b162('0x19b2')],function(_0x2fe369){const _0x14816d=_0x17b162;return _0x36f548()[_0x14816d('0x1ad4')](_0x5ea712[_0x14816d('0x2410')],{'id':_0x2fe369[_0x14816d('0x15a5')]});});let _0x39c010=null;_0x39c010=[],_0x5ea712[_0x17b162('0x103e')][_0x17b162('0x19b2')]['forEach'](function(_0x598edd){const _0x27c3bb=_0x17b162;if(_0x598edd[_0x27c3bb('0x1607')]==='contactManager'){const _0x4dfd88=_0x36f548()[_0x27c3bb('0x1ad4')](_0x5ea712['lists'],{'id':Number(_0x598edd[_0x27c3bb('0x1804')])});_0x39c010[_0x27c3bb('0x105d')](_0x4dfd88);}}),!_0x36f548()[_0x17b162('0x1fc5')](_0x39c010)&&_0x39c010[_0x17b162('0x1f88')](function(_0x54f3a9){const _0xd78b2b=_0x17b162;if(!_0x36f548()[_0xd78b2b('0x1cb3')](_0x1b255d,['id',_0x54f3a9['id']])){const _0x9d13cf=_0x36f548()[_0xd78b2b('0x1ad4')](_0x5ea712[_0xd78b2b('0x2410')],{'id':_0x54f3a9['id']});_0x9d13cf[_0xd78b2b('0x254a')]=![],_0x1b255d[_0xd78b2b('0x105d')](_0x9d13cf);}}),_0x5ea712[_0x17b162('0x2410')]=_0x1b255d;});}})[_0x3b15a8('0x151d')](function(_0x2c6b3e){const _0x2618c3=_0x3b15a8;_0x20b4ce['error']({'title':_0x2c6b3e['status']?_0x2618c3('0x574')+_0x2c6b3e[_0x2618c3('0xff9')]+_0x2618c3('0xb0b')+_0x2c6b3e['statusText']:_0x2618c3('0xb71'),'msg':_0x2c6b3e[_0x2618c3('0x4e8')]?JSON['stringify'](_0x2c6b3e['data']):_0x2c6b3e[_0x2618c3('0xaab')]()});});}function _0x21a6d7(){const _0x2d7362=_0x35379a;_0x304d19['cmContact'][_0x2d7362('0x19a5')]({})[_0x2d7362('0x1549')][_0x2d7362('0x11bf')](function(_0x15a7f9){const _0x242ff3=_0x2d7362;_0x5ea712[_0x242ff3('0x25bb')]=[],_0x5ea712[_0x242ff3('0x8a1')]=[];const _0x30a786=_0x36f548()['values'](_0x15a7f9['toJSON']());for(let _0x32e468=0x0;_0x32e468<_0x30a786['length'];_0x32e468++){if(_0x36f548()[_0x242ff3('0x55a')](_0x5ea712[_0x242ff3('0x5d2')],_0x30a786[_0x32e468][_0x242ff3('0x12e3')]))_0x5ea712[_0x242ff3('0x25bb')]['push'](_0x30a786[_0x32e468]);else{if(_0x36f548()[_0x242ff3('0x1eb7')](_0x30a786[_0x32e468][_0x242ff3('0x12e3')],'cf_')){if(_0x30a786[_0x32e468][_0x242ff3('0xa8d')][_0x242ff3('0x19fd')]===_0x242ff3('0x25ed'))_0x5ea712['customFields'][_0x242ff3('0x105d')](_0x30a786[_0x32e468]);}}}})[_0x2d7362('0x151d')](function(_0x45f895){const _0x2afa10=_0x2d7362;_0x20b4ce[_0x2afa10('0x255')]({'title':_0x45f895[_0x2afa10('0xff9')]?_0x2afa10('0x574')+_0x45f895[_0x2afa10('0xff9')]+_0x2afa10('0xb0b')+_0x45f895[_0x2afa10('0x212f')]:_0x2afa10('0x2d7'),'msg':_0x45f895[_0x2afa10('0x4e8')]?JSON['stringify'](_0x45f895[_0x2afa10('0x4e8')]):_0x45f895[_0x2afa10('0xaab')]()});});}function _0x146df6(){const _0x38d99d=_0x35379a;_0x304d19[_0x38d99d('0xbef')][_0x38d99d('0x1281')]({'id':_0x5ea712[_0x38d99d('0x1607')][_0x38d99d('0x1804')],'ListId':_0x5ea712['action'][_0x38d99d('0x1804')]})['$promise'][_0x38d99d('0x11bf')](function(_0x44d954){const _0x649a42=_0x38d99d;_0x5ea712[_0x649a42('0x1334')]=_0x36f548()[_0x649a42('0xdb4')](_0x44d954[_0x649a42('0x19b2')],[_0x649a42('0x19fd'),_0x649a42('0x25ed')]),_0x5ea712[_0x649a42('0x1334')][_0x649a42('0x1f88')](function(_0x1e3975){const _0x2a14cb=_0x649a42;_0x1e3975['columnName']=_0x2a14cb('0x57a')+_0x1e3975['id'];});})[_0x38d99d('0x151d')](function(_0x1b71f5){const _0x59d0e2=_0x38d99d;_0x20b4ce[_0x59d0e2('0x255')]({'title':_0x1b71f5[_0x59d0e2('0xff9')]?_0x59d0e2('0x574')+_0x1b71f5[_0x59d0e2('0xff9')]+_0x59d0e2('0xb0b')+_0x1b71f5['statusText']:'SYSTEM:GET_LIST_CUSTOM_FIELDS','msg':_0x1b71f5[_0x59d0e2('0x4e8')]?JSON[_0x59d0e2('0x3e')](_0x1b71f5[_0x59d0e2('0x4e8')]):_0x1b71f5[_0x59d0e2('0xaab')]()});});}function _0xca667(){const _0x4bf18e=_0x35379a;_0x3636f4[_0x4bf18e('0x14e0')]()?_0x304d19[_0x4bf18e('0xf34')][_0x4bf18e('0xbaa')]({'fields':_0x4bf18e('0x721'),'sort':_0x4bf18e('0x1909'),'nolimit':'true'})[_0x4bf18e('0x1549')][_0x4bf18e('0x11bf')](function(_0x3708b9){const _0x4f2544=_0x4bf18e;_0x5ea712[_0x4f2544('0xa62')]=_0x3708b9[_0x4f2544('0x19b2')]||[];})['catch'](function(_0xc4af40){const _0x96cd02=_0x4bf18e;_0x20b4ce['error']({'title':_0xc4af40['status']?_0x96cd02('0x574')+_0xc4af40[_0x96cd02('0xff9')]+_0x96cd02('0xb0b')+_0xc4af40[_0x96cd02('0x212f')]:_0x96cd02('0x21e4'),'msg':_0xc4af40[_0x96cd02('0x4e8')]?JSON[_0x96cd02('0x3e')](_0xc4af40[_0x96cd02('0x4e8')]):_0xc4af40[_0x96cd02('0xaab')]()});}):_0x304d19[_0x4bf18e('0xf34')][_0x4bf18e('0xbaa')]({'fields':_0x4bf18e('0x721'),'sort':_0x4bf18e('0x1909'),'nolimit':_0x4bf18e('0x204c')})[_0x4bf18e('0x1549')][_0x4bf18e('0x11bf')](function(_0x42e834){_0x5ea712['projects']=_0x42e834['rows']||[];})[_0x4bf18e('0x11bf')](function(){const _0x2def1d=_0x4bf18e;return _0x304d19[_0x2def1d('0x1d63')][_0x2def1d('0xbaa')]({'userProfileId':_0x5ea712['currentUser'][_0x2def1d('0x781')],'sectionId':0x6a5})[_0x2def1d('0x1549')];})[_0x4bf18e('0x11bf')](function(_0x4df14a){const _0x3c8348=_0x4bf18e,_0x2edd56=_0x4df14a&&_0x4df14a[_0x3c8348('0x19b2')]?_0x4df14a['rows'][0x0]:null;if(!_0x2edd56){const _0x5f027c=[],_0x25108b=[];_0x5ea712['triggerActions']['rows'][_0x3c8348('0x1f88')](function(_0x4ac851){const _0x4a1b39=_0x3c8348;if(_0x4ac851['action']==='jscripty'){const _0x2c80b8=_0x36f548()[_0x4a1b39('0x1ad4')](_0x5ea712[_0x4a1b39('0xa62')],{'id':Number(_0x4ac851[_0x4a1b39('0x1804')])});_0x25108b[_0x4a1b39('0x105d')](_0x2c80b8);}});for(let _0x1e21c2=0x0;_0x1e21c2<_0x5ea712[_0x3c8348('0xa62')][_0x3c8348('0x1e22')];_0x1e21c2++){const _0xc08fa=_0x36f548()[_0x3c8348('0x1cb3')](_0x25108b,{'id':_0x5ea712[_0x3c8348('0xa62')][_0x1e21c2]['id']});_0xc08fa&&(_0x5ea712[_0x3c8348('0xa62')][_0x1e21c2][_0x3c8348('0x254a')]=![],_0x5f027c[_0x3c8348('0x105d')](_0x5ea712[_0x3c8348('0xa62')][_0x1e21c2]));}_0x5ea712[_0x3c8348('0xa62')]=_0x5f027c;}else{if(!_0x2edd56['autoAssociation'])return _0x304d19[_0x3c8348('0x26d1')][_0x3c8348('0xbaa')]({'sectionId':_0x2edd56['id']})[_0x3c8348('0x1549')][_0x3c8348('0x11bf')](function(_0x23bd63){const _0x4177fd=_0x3c8348,_0x2db14b=_0x36f548()['map'](_0x23bd63[_0x4177fd('0x19b2')],function(_0x2023a2){const _0x2e22a0=_0x4177fd;return _0x36f548()[_0x2e22a0('0x1ad4')](_0x5ea712['projects'],{'id':_0x2023a2[_0x2e22a0('0x15a5')]});});let _0x3b933b=null;_0x3b933b=[],_0x5ea712[_0x4177fd('0x103e')][_0x4177fd('0x19b2')][_0x4177fd('0x1f88')](function(_0x1e2f93){const _0x54f312=_0x4177fd;if(_0x1e2f93['action']===_0x54f312('0x163c')){const _0x41ed55=_0x36f548()['find'](_0x5ea712[_0x54f312('0xa62')],{'id':Number(_0x1e2f93['data1'])});_0x3b933b[_0x54f312('0x105d')](_0x41ed55);}}),!_0x36f548()['isEmpty'](_0x3b933b)&&_0x3b933b['forEach'](function(_0x103667){const _0xf94d96=_0x4177fd;if(!_0x36f548()[_0xf94d96('0x1cb3')](_0x2db14b,['id',_0x103667['id']])){const _0xaee74f=_0x36f548()['find'](_0x5ea712[_0xf94d96('0xa62')],{'id':_0x103667['id']});_0xaee74f[_0xf94d96('0x254a')]=![],_0x2db14b[_0xf94d96('0x105d')](_0xaee74f);}}),_0x5ea712[_0x4177fd('0xa62')]=_0x2db14b;});}})[_0x4bf18e('0x151d')](function(_0x547de6){const _0x301de1=_0x4bf18e;_0x20b4ce[_0x301de1('0x255')]({'title':_0x547de6[_0x301de1('0xff9')]?_0x301de1('0x574')+_0x547de6['status']+'\x20-\x20'+_0x547de6['statusText']:_0x301de1('0x1b27'),'msg':_0x547de6['data']?JSON['stringify'](_0x547de6[_0x301de1('0x4e8')]):_0x547de6[_0x301de1('0xaab')]()});});}function _0x5ba82a(){const _0x32aa70=_0x35379a;_0x3636f4[_0x32aa70('0x14e0')]()?_0x304d19[_0x32aa70('0x13b6')][_0x32aa70('0xbaa')]({'fields':_0x32aa70('0x721'),'sort':'id','nolimit':'true'})[_0x32aa70('0x1549')][_0x32aa70('0x11bf')](function(_0x3baa85){const _0x5925dc=_0x32aa70;_0x5ea712[_0x5925dc('0x1302')]=_0x3baa85[_0x5925dc('0x19b2')]||[];})[_0x32aa70('0x151d')](function(_0x4e212b){const _0x53f3bb=_0x32aa70;_0x20b4ce['error']({'title':_0x4e212b[_0x53f3bb('0xff9')]?_0x53f3bb('0x574')+_0x4e212b[_0x53f3bb('0xff9')]+_0x53f3bb('0xb0b')+_0x4e212b['statusText']:'SYSTEM:GET_TEMPLATES','msg':_0x4e212b['data']?JSON[_0x53f3bb('0x3e')](_0x4e212b[_0x53f3bb('0x4e8')]):_0x4e212b['toString']()});}):_0x304d19[_0x32aa70('0x13b6')][_0x32aa70('0xbaa')]({'fields':_0x32aa70('0x721'),'sort':'id','nolimit':_0x32aa70('0x204c')})[_0x32aa70('0x1549')][_0x32aa70('0x11bf')](function(_0x44fc2a){const _0x46c181=_0x32aa70;_0x5ea712['templates']=_0x44fc2a[_0x46c181('0x19b2')]||[];})['then'](function(){const _0x45bddc=_0x32aa70;return _0x304d19[_0x45bddc('0x1d63')][_0x45bddc('0xbaa')]({'userProfileId':_0x5ea712[_0x45bddc('0x32a')][_0x45bddc('0x781')],'sectionId':0x3f1})['$promise'];})[_0x32aa70('0x11bf')](function(_0x189885){const _0x2f1613=_0x32aa70,_0x239bd7=_0x189885&&_0x189885[_0x2f1613('0x19b2')]?_0x189885[_0x2f1613('0x19b2')][0x0]:null;if(!_0x239bd7){const _0x23e138=[],_0x2b672d=[];_0x5ea712['triggerActions'][_0x2f1613('0x19b2')][_0x2f1613('0x1f88')](function(_0x5667d2){const _0x4595ba=_0x2f1613;if(_0x36f548()[_0x4595ba('0x55a')]([_0x4595ba('0x19bd'),'browser'],_0x5667d2[_0x4595ba('0x1607')])){const _0x2385a6=_0x36f548()['find'](_0x5ea712[_0x4595ba('0x1302')],{'id':Number(_0x5667d2['data2'])});_0x2b672d[_0x4595ba('0x105d')](_0x2385a6);}});for(let _0x154218=0x0;_0x154218<_0x5ea712[_0x2f1613('0x1302')][_0x2f1613('0x1e22')];_0x154218++){const _0x4d9735=_0x36f548()[_0x2f1613('0x1cb3')](_0x2b672d,{'id':_0x5ea712[_0x2f1613('0x1302')][_0x154218]['id']});_0x4d9735&&(_0x5ea712['templates'][_0x154218][_0x2f1613('0x254a')]=![],_0x23e138[_0x2f1613('0x105d')](_0x5ea712[_0x2f1613('0x1302')][_0x154218]));}_0x5ea712['templates']=_0x23e138;}else{if(!_0x239bd7[_0x2f1613('0xf11')])return _0x304d19[_0x2f1613('0x26d1')][_0x2f1613('0xbaa')]({'sectionId':_0x239bd7['id']})['$promise'][_0x2f1613('0x11bf')](function(_0x2e3f1b){const _0x11be28=_0x2f1613,_0x1662f5=_0x36f548()[_0x11be28('0x2171')](_0x2e3f1b[_0x11be28('0x19b2')],function(_0x9476a5){const _0x42077b=_0x11be28;return _0x36f548()[_0x42077b('0x1ad4')](_0x5ea712[_0x42077b('0x1302')],{'id':_0x9476a5[_0x42077b('0x15a5')]});});let _0x158598=null;_0x158598=[],_0x5ea712[_0x11be28('0x103e')][_0x11be28('0x19b2')][_0x11be28('0x1f88')](function(_0x5c8fe1){const _0x4b15e0=_0x11be28;if(_0x36f548()[_0x4b15e0('0x55a')]([_0x4b15e0('0x19bd'),'browser'],_0x5c8fe1[_0x4b15e0('0x1607')])){const _0x252560=_0x36f548()[_0x4b15e0('0x1ad4')](_0x5ea712[_0x4b15e0('0x1302')],{'id':Number(_0x5c8fe1[_0x4b15e0('0x1489')])});_0x158598[_0x4b15e0('0x105d')](_0x252560);}}),!_0x36f548()[_0x11be28('0x1fc5')](_0x158598)&&_0x158598[_0x11be28('0x1f88')](function(_0x30a9e2){const _0x58f653=_0x11be28;if(!_0x36f548()[_0x58f653('0x1cb3')](_0x1662f5,['id',_0x30a9e2['id']])){const _0x21f3f8=_0x36f548()[_0x58f653('0x1ad4')](_0x5ea712[_0x58f653('0x1302')],{'id':_0x30a9e2['id']});_0x21f3f8[_0x58f653('0x254a')]=![],_0x1662f5[_0x58f653('0x105d')](_0x21f3f8);}}),_0x5ea712[_0x11be28('0x1302')]=_0x1662f5;});}})[_0x32aa70('0x151d')](function(_0x14a64b){const _0x50ae33=_0x32aa70;_0x20b4ce['error']({'title':_0x14a64b['status']?_0x50ae33('0x574')+_0x14a64b[_0x50ae33('0xff9')]+_0x50ae33('0xb0b')+_0x14a64b[_0x50ae33('0x212f')]:'SYSTEM:GET_TEMPLATES','msg':_0x14a64b[_0x50ae33('0x4e8')]?JSON[_0x50ae33('0x3e')](_0x14a64b[_0x50ae33('0x4e8')]):_0x14a64b[_0x50ae33('0xaab')]()});});}function _0x419e35(){const _0x147114=_0x35379a;switch(_0x5ea712[_0x147114('0x1607')][_0x147114('0x1804')]){case _0x147114('0x839'):return _0x5ea712[_0x147114('0x3a4')][0x515];case'salesforce':return _0x5ea712[_0x147114('0x3a4')][0x516];case'sugarcrm':return _0x5ea712[_0x147114('0x3a4')][0x519];case _0x147114('0x4c9'):return _0x5ea712['hasSectionPermissions'][0x517];case _0x147114('0x6b'):return _0x5ea712[_0x147114('0x3a4')][0x51a];case _0x147114('0x78c'):return _0x5ea712['hasSectionPermissions'][0x51b];case _0x147114('0x76b'):return _0x5ea712[_0x147114('0x3a4')][0x51c];case _0x147114('0x174'):return _0x5ea712[_0x147114('0x3a4')][0x51d];case _0x147114('0x2362'):return _0x5ea712['hasSectionPermissions'][0x51e];case _0x147114('0xcb9'):return _0x5ea712['hasSectionPermissions'][0x51f];}}function _0x517de4(){const _0x4ded31=_0x35379a;_0x5ea712[_0x4ded31('0x1607')]['data1']=undefined,_0x5ea712['action'][_0x4ded31('0x1489')]=undefined,_0x5ea712['action'][_0x4ded31('0x1974')]=undefined,_0x5ea712[_0x4ded31('0x1607')][_0x4ded31('0xc21')]=undefined,_0x5ea712[_0x4ded31('0x1607')]['data5']=_0x5ea712['action']['action']==='urlForward'?0x5:undefined;}function _0x4d11d3(){const _0x3abbcb=_0x35379a;switch(_0x5ea712[_0x3abbcb('0x1607')]['action']){case _0x3abbcb('0x1724'):if(!_0x5ea712[_0x3abbcb('0x2410')])_0x5513e2();if(!_0x5ea712[_0x3abbcb('0x25bb')])_0x21a6d7();_0x5ea712[_0x3abbcb('0x1607')]['data3']=_0x5ea712[_0x3abbcb('0x1607')][_0x3abbcb('0x1974')]?_0x5ea712['action']['data3'][_0x3abbcb('0xaf8')](','):[_0x3abbcb('0x1546')];if(_0x5ea712[_0x3abbcb('0x1607')][_0x3abbcb('0x1489')]==='1'&&!_0x5ea712[_0x3abbcb('0x1607')][_0x3abbcb('0xc21')])_0x5ea712[_0x3abbcb('0x1607')][_0x3abbcb('0xc21')]=_0x3abbcb('0x1546');break;case'jscripty':if(!_0x5ea712[_0x3abbcb('0xa62')])_0xca667();break;case _0x3abbcb('0x1764'):if(!_0x5ea712[_0x3abbcb('0x1607')][_0x3abbcb('0x1fee')])_0x5ea712[_0x3abbcb('0x1607')][_0x3abbcb('0x1fee')]=0x5;break;}}function _0x3e4892(){_0x517de4(),_0x4d11d3();}function _0x48c6eb(){const _0x1abf79=_0x35379a;_0x5ea712[_0x1abf79('0x1607')][_0x1abf79('0x1489')]=undefined,_0x5ea712[_0x1abf79('0x1607')][_0x1abf79('0x1974')]=undefined,_0x5ea712['action'][_0x1abf79('0x648')]=_0x5ea712[_0x1abf79('0x1d8a')]?![]:!_0x419e35();const _0x4b3c77=_0x1abf79('0x241')+_0x36f548()[_0x1abf79('0x22c2')](_0x5ea712[_0x1abf79('0x1607')][_0x1abf79('0x1804')])+_0x1abf79('0x1e3c');_0x304d19[_0x4b3c77][_0x1abf79('0xbaa')]({'fields':_0x1abf79('0x721'),'sort':'id','nolimit':_0x1abf79('0x204c')})[_0x1abf79('0x1549')]['then'](function(_0x4377b1){const _0x2ce8ec=_0x1abf79;_0x5ea712[_0x2ce8ec('0x1064')]=_0x4377b1[_0x2ce8ec('0x19b2')]||[];})[_0x1abf79('0x151d')](function(_0x413ae2){const _0x54c4cf=_0x1abf79;_0x20b4ce[_0x54c4cf('0x255')]({'title':_0x413ae2[_0x54c4cf('0xff9')]?_0x54c4cf('0x574')+_0x413ae2[_0x54c4cf('0xff9')]+_0x54c4cf('0xb0b')+_0x413ae2['statusText']:'SYSTEM:GET_'+_0x5ea712[_0x54c4cf('0x1607')][_0x54c4cf('0x1804')][_0x54c4cf('0xa6f')]()+_0x54c4cf('0x126c'),'msg':_0x413ae2[_0x54c4cf('0x4e8')]?JSON[_0x54c4cf('0x3e')](_0x413ae2[_0x54c4cf('0x4e8')]):_0x413ae2['toString']()});});}function _0x5617a8(){_0x146df6();}function _0x25150a(){const _0x22b853=_0x35379a;if(_0x5ea712[_0x22b853('0x1607')][_0x22b853('0x1804')]==='0'&&!_0x5ea712[_0x22b853('0x1302')])_0x5ba82a();}function _0x4f88e4(){const _0x5dc273=_0x35379a;if(_0x5ea712[_0x5dc273('0x1607')]['data2']==='0')_0x5ea712[_0x5dc273('0x1607')][_0x5dc273('0xc21')]=undefined;if(!_0x5ea712[_0x5dc273('0x1607')][_0x5dc273('0xc21')]&&_0x5ea712[_0x5dc273('0x1607')][_0x5dc273('0x1489')]==='1')_0x5ea712[_0x5dc273('0x1607')]['data4']=_0x5dc273('0x1546');}function _0xf62658(){const _0x1d4f6b=_0x35379a;_0x5ea712['action'][_0x1d4f6b('0x1974')]=undefined;const _0x3b3126=_0x1d4f6b('0x241')+_0x36f548()[_0x1d4f6b('0x22c2')](_0x5ea712[_0x1d4f6b('0x1607')][_0x1d4f6b('0x1804')])+_0x1d4f6b('0x188f');_0x304d19[_0x3b3126][_0x1d4f6b('0xbaa')]({'fields':_0x1d4f6b('0x1398'),'sort':'id','nolimit':_0x1d4f6b('0x204c')})[_0x1d4f6b('0x1549')][_0x1d4f6b('0x11bf')](function(_0x48b062){const _0x33de55=_0x1d4f6b;_0x5ea712[_0x33de55('0x2766')]=_0x48b062[_0x33de55('0x19b2')]||[];})[_0x1d4f6b('0x151d')](function(_0x160214){const _0x3665fd=_0x1d4f6b;_0x20b4ce[_0x3665fd('0x255')]({'title':_0x160214['status']?_0x3665fd('0x574')+_0x160214[_0x3665fd('0xff9')]+'\x20-\x20'+_0x160214[_0x3665fd('0x212f')]:_0x3665fd('0x13a3')+_0x5ea712[_0x3665fd('0x1607')]['data1']['toUpperCase']()+'CONFIGURATIONS','msg':_0x160214[_0x3665fd('0x4e8')]?JSON[_0x3665fd('0x3e')](_0x160214[_0x3665fd('0x4e8')]):_0x160214[_0x3665fd('0xaab')]()});});}function _0x165967(){const _0x4b4eb4=_0x35379a,_0xf07c4=angular[_0x4b4eb4('0x6fb')](_0x5ea712[_0x4b4eb4('0x1607')]);if(_0x36f548()[_0x4b4eb4('0x32c')](_0xf07c4['data3']))_0xf07c4[_0x4b4eb4('0x1974')]=_0x5ea712['action'][_0x4b4eb4('0x1974')]['join'](',');return _0xf07c4;}function _0x1da1bc(){const _0x2b7553=_0x35379a;_0x5ea712[_0x2b7553('0x120f')]=[];const _0x381495=_0x165967();_0x304d19[_0x2b7553('0x1be2')][_0x2b7553('0x19d1')]({'id':_0x32dbe2['params']['id']},_0x381495)[_0x2b7553('0x1549')]['then'](function(_0x389962){const _0x1284b5=_0x2b7553;_0x5ea712['actions'][_0x1284b5('0x880')](_0x389962[_0x1284b5('0x2866')]()),_0x20b4ce[_0x1284b5('0x2693')]({'title':_0x18b22e[_0x1284b5('0x10c2')]('TOOLS.NOTIFICATIONS.ACTION_CREATED_SUCCESS_TITLE')}),_0xfdf8f2(_0x5ea712[_0x1284b5('0x4ec')]);})[_0x2b7553('0x151d')](function(_0x376d3f){const _0x4174d0=_0x2b7553;if(_0x376d3f[_0x4174d0('0x4e8')]&&_0x376d3f[_0x4174d0('0x4e8')]['errors']&&_0x376d3f[_0x4174d0('0x4e8')][_0x4174d0('0x120f')][_0x4174d0('0x1e22')]){_0x5ea712[_0x4174d0('0x120f')]=_0x376d3f[_0x4174d0('0x4e8')][_0x4174d0('0x120f')]||[{'message':_0x376d3f[_0x4174d0('0xaab')](),'type':'api.action.save'}];for(let _0x459a42=0x0;_0x459a42<_0x376d3f[_0x4174d0('0x4e8')][_0x4174d0('0x120f')][_0x4174d0('0x1e22')];_0x459a42+=0x1){_0x20b4ce[_0x4174d0('0x255')]({'title':_0x376d3f[_0x4174d0('0x4e8')][_0x4174d0('0x120f')][_0x459a42]['type'],'msg':_0x376d3f[_0x4174d0('0x4e8')][_0x4174d0('0x120f')][_0x459a42]['message']});}}else _0x20b4ce['error']({'title':_0x376d3f[_0x4174d0('0xff9')]?_0x4174d0('0x574')+_0x376d3f[_0x4174d0('0xff9')]+_0x4174d0('0xb0b')+_0x376d3f[_0x4174d0('0x212f')]:_0x4174d0('0x399'),'msg':_0x376d3f[_0x4174d0('0x4e8')]?JSON['stringify'](_0x376d3f[_0x4174d0('0x4e8')][_0x4174d0('0x1b86')]):_0x376d3f['toString']()});});}function _0xdfdaa9(){const _0x530251=_0x35379a;_0x5ea712['errors']=[];const _0x2204f2=_0x165967();_0x304d19[_0x530251('0x1607')][_0x530251('0x5ab')]({'id':_0x2204f2['id']},_0x2204f2)['$promise'][_0x530251('0x11bf')](function(){const _0x4ffcb6=_0x530251;_0x5ea712['actions']=_0x36f548()['map'](_0x5ea712[_0x4ffcb6('0x4ec')],function(_0xbb3661){if(_0xbb3661['id']===_0x2204f2['id'])return _0x2204f2;else return _0xbb3661;}),_0x20b4ce[_0x4ffcb6('0x2693')]({'title':_0x18b22e[_0x4ffcb6('0x10c2')](_0x4ffcb6('0x2837'))}),_0xfdf8f2(_0x5ea712[_0x4ffcb6('0x4ec')]);})[_0x530251('0x151d')](function(_0x950492){const _0x5b862c=_0x530251;if(_0x950492[_0x5b862c('0x4e8')]&&_0x950492[_0x5b862c('0x4e8')][_0x5b862c('0x120f')]&&_0x950492[_0x5b862c('0x4e8')]['errors'][_0x5b862c('0x1e22')]){_0x5ea712['errors']=_0x950492[_0x5b862c('0x4e8')]['errors']||[{'message':_0x950492[_0x5b862c('0xaab')](),'type':_0x5b862c('0x1f9c')}];for(let _0x2d422f=0x0;_0x2d422f<_0x950492[_0x5b862c('0x4e8')][_0x5b862c('0x120f')][_0x5b862c('0x1e22')];_0x2d422f++){_0x20b4ce[_0x5b862c('0x255')]({'title':_0x950492[_0x5b862c('0x4e8')][_0x5b862c('0x120f')][_0x2d422f][_0x5b862c('0x19fd')],'msg':_0x950492[_0x5b862c('0x4e8')][_0x5b862c('0x120f')][_0x2d422f][_0x5b862c('0x1b86')]});}}else _0x20b4ce[_0x5b862c('0x255')]({'title':_0x950492['status']?_0x5b862c('0x574')+_0x950492[_0x5b862c('0xff9')]+_0x5b862c('0xb0b')+_0x950492[_0x5b862c('0x212f')]:_0x5b862c('0x1f9c'),'msg':_0x950492[_0x5b862c('0x4e8')]?JSON[_0x5b862c('0x3e')](_0x950492['data']['message']):_0x950492[_0x5b862c('0xaab')]()});});}function _0x10c126(_0x2eedc3){const _0x17bfda=_0x35379a;_0x5ea712[_0x17bfda('0x120f')]=[];const _0x42cba7=_0x3d9fd6['confirm']({'skipHide':!![]})[_0x17bfda('0x134b')](_0x18b22e[_0x17bfda('0x10c2')](_0x17bfda('0xdeb')))['ariaLabel'](_0x17bfda('0x1616'))['ok'](_0x18b22e[_0x17bfda('0x10c2')]('APP.DELETE'))[_0x17bfda('0x26c9')](_0x18b22e['instant'](_0x17bfda('0xa5d')))[_0x17bfda('0x1e25')](_0x2eedc3);_0x3d9fd6[_0x17bfda('0xb9')](_0x42cba7)[_0x17bfda('0x11bf')](function(){const _0x6048e0=_0x17bfda;_0x304d19[_0x6048e0('0x1607')]['delete']({'id':_0x5ea712['action']['id']})[_0x6048e0('0x1549')][_0x6048e0('0x11bf')](function(){const _0x854a2a=_0x6048e0;_0x5ea712['actions']=_0x36f548()[_0x854a2a('0xdb4')](_0x5ea712[_0x854a2a('0x4ec')],function(_0x45fcfa){const _0x315638=_0x854a2a;return _0x45fcfa['id']!==_0x5ea712[_0x315638('0x1607')]['id'];}),_0x20b4ce[_0x854a2a('0x2693')]({'title':_0x18b22e[_0x854a2a('0x10c2')](_0x854a2a('0x1f4'))}),_0xfdf8f2(_0x5ea712[_0x854a2a('0x4ec')]);})[_0x6048e0('0x151d')](function(_0x5b60e5){const _0x2b9c19=_0x6048e0;if(_0x5b60e5[_0x2b9c19('0x4e8')]&&_0x5b60e5[_0x2b9c19('0x4e8')][_0x2b9c19('0x120f')]&&_0x5b60e5['data'][_0x2b9c19('0x120f')]['length']){_0x5ea712['errors']=_0x5b60e5[_0x2b9c19('0x4e8')]['errors']||[{'message':_0x5b60e5['toString'](),'type':'api.action.delete'}];for(let _0x1aa66f=0x0;_0x1aa66f<_0x5b60e5['data'][_0x2b9c19('0x120f')][_0x2b9c19('0x1e22')];_0x1aa66f++){_0x20b4ce['error']({'title':_0x5b60e5[_0x2b9c19('0x4e8')][_0x2b9c19('0x120f')][_0x1aa66f][_0x2b9c19('0x19fd')],'msg':_0x5b60e5[_0x2b9c19('0x4e8')][_0x2b9c19('0x120f')][_0x1aa66f][_0x2b9c19('0x1b86')]});}}else _0x20b4ce[_0x2b9c19('0x255')]({'title':_0x5b60e5[_0x2b9c19('0xff9')]?_0x2b9c19('0x574')+_0x5b60e5[_0x2b9c19('0xff9')]+'\x20-\x20'+_0x5b60e5[_0x2b9c19('0x212f')]:_0x2b9c19('0x886'),'msg':_0x5b60e5['data']?JSON[_0x2b9c19('0x3e')](_0x5b60e5[_0x2b9c19('0x4e8')][_0x2b9c19('0x1b86')]):_0x5b60e5[_0x2b9c19('0x1b86')]||_0x5b60e5[_0x2b9c19('0xaab')]()});});},function(){});}function _0xfdf8f2(_0x407c0e){const _0x52ed2d=_0x35379a;_0x3d9fd6[_0x52ed2d('0x237e')](_0x407c0e);}}const _0x5b321b=_0x42fc8a,_0x1a7c90=_0x351988['p']+_0x21d0f5('0xd68');_0x163036[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),'$q',_0x21d0f5('0xb6b'),_0x21d0f5('0x17f5'),_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),'toasty',_0x21d0f5('0x12a5'),_0x21d0f5('0x1150')];function _0x163036(_0x316485,_0x352d8c,_0x58eae,_0x42ab61,_0x38306d,_0x3b0551,_0x894b7d,_0x447c1b,_0x3f05ed){const _0x132a78=_0x21d0f5,_0xa93256=this;_0xa93256[_0x132a78('0x32a')]=_0x3f05ed['getCurrentUser'](),_0xa93256[_0x132a78('0x1be2')]={},_0xa93256[_0x132a78('0xf5f')]={'count':0x0,'rows':[]},_0xa93256[_0x132a78('0x1162')]=[],_0xa93256['query']={'fields':'id,field,operator,value,createdAt,updatedAt','limit':0xa,'page':0x1},_0xa93256[_0x132a78('0x1067')]={'queue':'Queue','lastevent':_0x132a78('0x66c'),'routeId':'OutboundRoute','agent':_0x132a78('0x701'),'account':_0x132a78('0x1e3c'),'interaction':'Interaction','message':'Message'},_0xa93256[_0x132a78('0x143')]={'abandoned':_0x132a78('0x120d'),'timeout':_0x132a78('0x65'),'complete':_0x132a78('0x1b9e'),'rejected':_0x132a78('0x175f'),'called':_0x132a78('0x1c7a'),'connect':_0x132a78('0x182b'),'nosuchnumber':'NoSuchNumber','busy':_0x132a78('0x3ea'),'noanswer':'NoAnswer','congestion':_0x132a78('0x24c9'),'agentreject':_0x132a78('0x983')},_0xa93256[_0x132a78('0xe62')]={'in':_0x132a78('0x3de'),'out':_0x132a78('0x21f1'),'accept':_0x132a78('0x186d'),'reject':_0x132a78('0x3f8')},_0xa93256[_0x132a78('0x277c')]=_0x3b2b45,_0xa93256[_0x132a78('0x2693')]=_0x585be3,_0xa93256[_0x132a78('0x1daf')]=_0x2cd8df,_0xa93256[_0x132a78('0x18ed')]=_0x5b17e8,_0xa93256[_0x132a78('0x17e3')]=_0x44e63b,_0xa93256[_0x132a78('0x560')]=_0x234a7d,_0xa93256[_0x132a78('0x5ac')]=_0x19d05c;function _0x3b2b45(_0x6255ff,_0x40d509){const _0x46c22b=_0x132a78;_0xa93256[_0x46c22b('0x1be2')]=_0x6255ff,_0xa93256['crudPermissions']=typeof _0x40d509!==_0x46c22b('0x13e9')?_0x40d509:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0xa93256[_0x46c22b('0x1f2a')][_0x46c22b('0x295')]=_0xa93256[_0x46c22b('0x1be2')]['id'],_0xa93256['query']['id']=_0xa93256[_0x46c22b('0x1be2')]['id'],_0x2cd8df();}function _0x33392f(){const _0x30610e=_0x132a78,_0x312b1c=_0xa93256[_0x30610e('0x1be2')]['channel'],_0x2e3269=_0xa93256['trigger'][_0x30610e('0xd12')]+_0xa93256[_0x30610e('0x1be2')][_0x30610e('0xd12')]===_0x30610e('0x1800')?_0x30610e('0xc51'):_0x30610e('0x1f05'),_0x5128c9=_0xa93256[_0x30610e('0x1be2')][_0x30610e('0xd12')]+(_0xa93256['trigger'][_0x30610e('0xd12')]===_0x30610e('0x1800')?'Website':_0x30610e('0x1e3c'));let _0x40665c;switch(_0xa93256['trigger'][_0x30610e('0xd12')]){case _0x30610e('0x1800'):_0x40665c=0x1f6;break;case _0x30610e('0x2104'):_0x40665c=0x386;break;case _0x30610e('0x2030'):_0x40665c=0x25a;break;case _0x30610e('0xb18'):_0x40665c=0x322;break;case'sms':_0x40665c=0x2be;break;case _0x30610e('0xe7c'):_0x40665c=0x836;break;}_0x3f05ed['isAdmin']()?_0x447c1b[_0x5128c9][_0x30610e('0xbaa')]({'fields':_0x30610e('0x721'),'sort':'id','nolimit':_0x30610e('0x204c')})[_0x30610e('0x1549')][_0x30610e('0x11bf')](function(_0xf5e51c){const _0x4a7d91=_0x30610e;_0xa93256[_0x2e3269]=_0xf5e51c[_0x4a7d91('0x19b2')]||[];})['catch'](function(_0x342a4f){const _0x281bab=_0x30610e;_0x894b7d[_0x281bab('0x255')]({'title':_0x342a4f[_0x281bab('0xff9')]?'API:'+_0x342a4f[_0x281bab('0xff9')]+'\x20-\x20'+_0x342a4f['statusText']:_0x281bab('0x13a3')+_0x312b1c[_0x281bab('0xa6f')]()+_0x312b1c===_0x281bab('0x1800')?_0x281bab('0x1f0'):'ACCOUNTS','msg':_0x342a4f[_0x281bab('0x4e8')]?JSON[_0x281bab('0x3e')](_0x342a4f[_0x281bab('0x4e8')]):_0x342a4f[_0x281bab('0xaab')]()});}):_0x447c1b[_0x5128c9]['get']({'fields':_0x30610e('0x721'),'sort':'id','nolimit':'true'})[_0x30610e('0x1549')][_0x30610e('0x11bf')](function(_0x220182){_0xa93256[_0x2e3269]=_0x220182['rows']||[];})[_0x30610e('0x11bf')](function(){const _0x52f10f=_0x30610e;return _0x447c1b[_0x52f10f('0x1d63')][_0x52f10f('0xbaa')]({'userProfileId':_0xa93256[_0x52f10f('0x32a')][_0x52f10f('0x781')],'sectionId':_0x40665c})['$promise'];})[_0x30610e('0x11bf')](function(_0x1e4603){const _0x54cf4e=_0x30610e,_0x124ae9=_0x1e4603&&_0x1e4603['rows']?_0x1e4603[_0x54cf4e('0x19b2')][0x0]:null;if(!_0x124ae9){const _0x102a1c=[],_0x3447a7=[];_0xa93256[_0x54cf4e('0xf5f')][_0x54cf4e('0x19b2')][_0x54cf4e('0x1f88')](function(_0x5c1565){const _0x3eecea=_0x54cf4e;if(_0x5c1565['field']===_0x3eecea('0x2565')){const _0x75d169=_0x36f548()[_0x3eecea('0x1ad4')](_0xa93256[_0x2e3269],{'id':Number(_0x5c1565[_0x3eecea('0x10cc')])});_0x3447a7[_0x3eecea('0x105d')](_0x75d169);}});for(let _0x7dc90e=0x0;_0x7dc90e<_0xa93256[_0x2e3269][_0x54cf4e('0x1e22')];_0x7dc90e++){const _0x173e62=_0x36f548()[_0x54cf4e('0x1cb3')](_0x3447a7,{'id':_0xa93256[_0x2e3269][_0x7dc90e]['id']});_0x173e62&&(_0xa93256[_0x2e3269][_0x7dc90e]['canSelect']=![],_0x102a1c['push'](_0xa93256[_0x2e3269][_0x7dc90e]));}_0xa93256[_0x2e3269]=_0x102a1c;}else{if(!_0x124ae9['autoAssociation'])return _0x447c1b[_0x54cf4e('0x26d1')]['get']({'sectionId':_0x124ae9['id']})[_0x54cf4e('0x1549')][_0x54cf4e('0x11bf')](function(_0x42f3a2){const _0x5ebf82=_0x54cf4e,_0x48a2ea=_0x36f548()['map'](_0x42f3a2[_0x5ebf82('0x19b2')],function(_0x4a3b23){const _0x5b65e0=_0x5ebf82;return _0x36f548()[_0x5b65e0('0x1ad4')](_0xa93256[_0x2e3269],{'id':_0x4a3b23[_0x5b65e0('0x15a5')]});});let _0x52fe4d=null;_0x52fe4d=[],_0xa93256['triggerAllConditions'][_0x5ebf82('0x19b2')][_0x5ebf82('0x1f88')](function(_0xab8684){const _0x647aa7=_0x5ebf82;if(_0xab8684[_0x647aa7('0x485')]===_0x647aa7('0x2565')){const _0x207aaa=_0x36f548()[_0x647aa7('0x1ad4')](_0xa93256[_0x2e3269],{'id':Number(_0xab8684[_0x647aa7('0x10cc')])});_0x52fe4d[_0x647aa7('0x105d')](_0x207aaa);}}),!_0x36f548()[_0x5ebf82('0x1fc5')](_0x52fe4d)&&_0x52fe4d[_0x5ebf82('0x1f88')](function(_0x5cb6ed){const _0x456dfd=_0x5ebf82;if(!_0x36f548()[_0x456dfd('0x1cb3')](_0x48a2ea,['id',_0x5cb6ed['id']])){const _0x7257dc=_0x36f548()[_0x456dfd('0x1ad4')](_0xa93256[_0x2e3269],{'id':_0x5cb6ed['id']});_0x7257dc[_0x456dfd('0x254a')]=![],_0x48a2ea[_0x456dfd('0x105d')](_0x7257dc);}}),_0xa93256[_0x2e3269]=_0x48a2ea;});}})['catch'](function(_0x396104){const _0x49d09a=_0x30610e;_0x894b7d[_0x49d09a('0x255')]({'title':_0x396104['status']?_0x49d09a('0x574')+_0x396104[_0x49d09a('0xff9')]+'\x20-\x20'+_0x396104[_0x49d09a('0x212f')]:'SYSTEM:GET_'+_0x312b1c[_0x49d09a('0xa6f')]()+_0x312b1c==='chat'?'WEBSITES':_0x49d09a('0x126c'),'msg':_0x396104['data']?JSON[_0x49d09a('0x3e')](_0x396104[_0x49d09a('0x4e8')]):_0x396104[_0x49d09a('0xaab')]()});});}function _0x38d80d(){const _0x4ebe7c=_0x132a78,_0x923a76=[{'id':0x191,'type':_0x4ebe7c('0x18a2')},{'id':0x5dd,'type':_0x4ebe7c('0x25b6')}];let _0x46e05d=null;_0x3f05ed[_0x4ebe7c('0x14e0')]()?_0x447c1b[_0x4ebe7c('0x1043')][_0x4ebe7c('0xbaa')]({'fields':_0x4ebe7c('0xde'),'sort':'name','nolimit':_0x4ebe7c('0x204c')})[_0x4ebe7c('0x1549')][_0x4ebe7c('0x11bf')](function(_0x1f5f0b){const _0x362993=_0x4ebe7c;_0xa93256[_0x362993('0x1de3')]=_0x1f5f0b['rows']||[];})[_0x4ebe7c('0x151d')](function(_0x4ef03e){const _0x508dd6=_0x4ebe7c;_0x894b7d[_0x508dd6('0x255')]({'title':_0x4ef03e[_0x508dd6('0xff9')]?'API:'+_0x4ef03e[_0x508dd6('0xff9')]+_0x508dd6('0xb0b')+_0x4ef03e[_0x508dd6('0x212f')]:_0x508dd6('0x39e'),'msg':_0x4ef03e[_0x508dd6('0x4e8')]?JSON['stringify'](_0x4ef03e[_0x508dd6('0x4e8')]):_0x4ef03e['toString']()});}):_0x447c1b[_0x4ebe7c('0x1043')][_0x4ebe7c('0xbaa')]({'fields':_0x4ebe7c('0xde'),'sort':_0x4ebe7c('0x1909'),'nolimit':_0x4ebe7c('0x204c')})['$promise'][_0x4ebe7c('0x11bf')](function(_0x382d67){const _0x57d4f5=_0x4ebe7c;_0x46e05d=_0x382d67[_0x57d4f5('0x19b2')]||[];})[_0x4ebe7c('0x11bf')](function(){const _0x16a1dc=_0x4ebe7c,_0x49d21c=[];for(let _0x65ba7e=0x0;_0x65ba7e<_0x923a76[_0x16a1dc('0x1e22')];_0x65ba7e++){_0x49d21c[_0x16a1dc('0x105d')](_0x447c1b['userProfileSection'][_0x16a1dc('0xbaa')]({'userProfileId':_0xa93256[_0x16a1dc('0x32a')]['userProfileId'],'sectionId':_0x923a76[_0x65ba7e]['id']})['$promise']);}return _0x352d8c[_0x16a1dc('0x7c')](_0x49d21c);})['then'](function(_0x2d53e4){const _0x106917=_0x4ebe7c,_0x25141=_0x36f548()[_0x106917('0x2171')](_0x2d53e4,function(_0x3568c5){const _0xaf7e99=_0x106917;return _0x3568c5&&_0x3568c5[_0xaf7e99('0x19b2')]?_0x3568c5[_0xaf7e99('0x19b2')][0x0]:null;}),_0x7aabae=[];for(let _0x1ae5e8=0x0;_0x1ae5e8<_0x923a76['length'];_0x1ae5e8++){const _0x1cdd4c=_0x36f548()['find'](_0x25141,['sectionId',_0x923a76[_0x1ae5e8]['id']]);if(_0x1cdd4c){if(!_0x1cdd4c[_0x106917('0xf11')])_0x7aabae['push'](_0x447c1b[_0x106917('0x26d1')][_0x106917('0xbaa')]({'sectionId':_0x1cdd4c['id']})['$promise']);else{const _0x532bc7=[];_0x46e05d['forEach'](function(_0x31c522){const _0x458e33=_0x106917;_0x31c522[_0x458e33('0x19fd')]===_0x923a76[_0x1ae5e8][_0x458e33('0x19fd')]&&_0x532bc7[_0x458e33('0x105d')](_0x31c522);}),_0x7aabae[_0x106917('0x105d')]({'rows':_0x532bc7,'count':_0x532bc7[_0x106917('0x1e22')]});}}}return _0x352d8c[_0x106917('0x7c')](_0x7aabae);})['then'](function(_0xb3bd51){const _0x4aa390=_0x4ebe7c,_0x1fae41=[],_0x192bc6=[];_0xa93256['triggerAllConditions']['rows'][_0x4aa390('0x1f88')](function(_0x69c47f){const _0x4f075c=_0x4aa390;if(_0x69c47f[_0x4f075c('0x485')]===_0x4f075c('0x150b')){const _0x2fcff1=_0x36f548()['find'](_0x46e05d,{'name':_0x69c47f[_0x4f075c('0x10cc')]});_0x192bc6['push'](_0x2fcff1);}});for(let _0x1838d1=0x0;_0x1838d1<_0xb3bd51[_0x4aa390('0x1e22')];_0x1838d1++){const _0x1b8cff=_0xb3bd51[_0x1838d1][_0x4aa390('0x19b2')]||[];_0x1b8cff[_0x4aa390('0x1f88')](function(_0x5db982){const _0x34c41c=_0x4aa390;_0x1fae41[_0x34c41c('0x105d')](_0x5db982);});}!_0x36f548()[_0x4aa390('0x1fc5')](_0x192bc6)&&_0x192bc6[_0x4aa390('0x1f88')](function(_0x1cf8f6){const _0x24acb2=_0x4aa390;if(!_0x36f548()[_0x24acb2('0x1cb3')](_0x1fae41,['resourceId',_0x1cf8f6['id']])){const _0x5ce1f8=_0x36f548()[_0x24acb2('0x1ad4')](_0x46e05d,{'id':_0x1cf8f6['id']});_0x5ce1f8['canSelect']=![],_0x1fae41[_0x24acb2('0x105d')](_0x5ce1f8);}}),_0xa93256[_0x4aa390('0x1de3')]=_0x1fae41;})[_0x4ebe7c('0x151d')](function(_0x4f12e9){const _0x39a35f=_0x4ebe7c;_0x894b7d[_0x39a35f('0x255')]({'title':_0x4f12e9[_0x39a35f('0xff9')]?_0x39a35f('0x574')+_0x4f12e9[_0x39a35f('0xff9')]+_0x39a35f('0xb0b')+_0x4f12e9[_0x39a35f('0x212f')]:_0x39a35f('0x23e0'),'msg':_0x4f12e9[_0x39a35f('0x4e8')]?JSON['stringify'](_0x4f12e9[_0x39a35f('0x4e8')]):_0x4f12e9[_0x39a35f('0xaab')]()});});}function _0x24c880(){const _0x200945=_0x132a78;_0x3f05ed[_0x200945('0x14e0')]()?_0x447c1b['voiceExtension'][_0x200945('0xbaa')]({'fields':_0x200945('0x10c9'),'type':_0x200945('0x25b6'),'VoiceExtensionId':_0x200945('0xb5f'),'nolimit':_0x200945('0x204c')})['$promise'][_0x200945('0x11bf')](function(_0x2681df){const _0x373cc5=_0x200945;_0xa93256[_0x373cc5('0x1d02')]=_0x2681df['rows']||[];})['catch'](function(_0x16b368){const _0x376a7f=_0x200945;_0x894b7d[_0x376a7f('0x255')]({'title':_0x16b368['status']?_0x376a7f('0x574')+_0x16b368['status']+_0x376a7f('0xb0b')+_0x16b368[_0x376a7f('0x212f')]:_0x376a7f('0x20fa'),'msg':_0x16b368[_0x376a7f('0x4e8')]?JSON[_0x376a7f('0x3e')](_0x16b368[_0x376a7f('0x4e8')]):_0x16b368['toString']()});}):_0x447c1b['voiceExtension'][_0x200945('0xbaa')]({'fields':'id,exten','type':'outbound','VoiceExtensionId':_0x200945('0xb5f'),'nolimit':_0x200945('0x204c')})['$promise'][_0x200945('0x11bf')](function(_0xfd9499){const _0x1b850c=_0x200945;_0xa93256[_0x1b850c('0x1d02')]=_0xfd9499['rows']||[];})[_0x200945('0x11bf')](function(){const _0x46d635=_0x200945;return _0x447c1b[_0x46d635('0x1d63')][_0x46d635('0xbaa')]({'userProfileId':_0xa93256[_0x46d635('0x32a')]['userProfileId'],'sectionId':0x193})[_0x46d635('0x1549')];})[_0x200945('0x11bf')](function(_0x21d58e){const _0x3d394f=_0x200945,_0xaf0b04=_0x21d58e&&_0x21d58e[_0x3d394f('0x19b2')]?_0x21d58e[_0x3d394f('0x19b2')][0x0]:null;if(!_0xaf0b04){const _0xf87669=[],_0x10c96a=[];_0xa93256['triggerAllConditions'][_0x3d394f('0x19b2')][_0x3d394f('0x1f88')](function(_0x494121){const _0x441552=_0x3d394f;if(_0x494121[_0x441552('0x485')]===_0x441552('0x2077')){const _0x80cf99=_0x36f548()[_0x441552('0x1ad4')](_0xa93256[_0x441552('0x1d02')],{'id':Number(_0x494121['value'])});_0x10c96a[_0x441552('0x105d')](_0x80cf99);}});for(let _0x517582=0x0;_0x517582<_0xa93256[_0x3d394f('0x1d02')]['length'];_0x517582++){const _0x5a96ad=_0x36f548()[_0x3d394f('0x1cb3')](_0x10c96a,{'id':_0xa93256['outboundRoutes'][_0x517582]['id']});_0x5a96ad&&(_0xa93256[_0x3d394f('0x1d02')][_0x517582][_0x3d394f('0x254a')]=![],_0xf87669[_0x3d394f('0x105d')](_0xa93256[_0x3d394f('0x1d02')][_0x517582]));}_0xa93256[_0x3d394f('0x1d02')]=_0xf87669;}else{if(!_0xaf0b04[_0x3d394f('0xf11')])return _0x447c1b['userProfileResource'][_0x3d394f('0xbaa')]({'sectionId':_0xaf0b04['id']})['$promise'][_0x3d394f('0x11bf')](function(_0x40fdc7){const _0x34afc9=_0x3d394f,_0x4280e2=_0x36f548()[_0x34afc9('0x2171')](_0x40fdc7[_0x34afc9('0x19b2')],function(_0x1c2c39){const _0x12d22c=_0x34afc9;return _0x36f548()['find'](_0xa93256['outboundRoutes'],{'id':_0x1c2c39[_0x12d22c('0x15a5')]});});let _0x101d68=null;_0x101d68=[],_0xa93256['triggerAllConditions']['rows']['forEach'](function(_0x53b4d1){const _0x16004c=_0x34afc9;if(_0x53b4d1[_0x16004c('0x485')]===_0x16004c('0x2077')){const _0x208d3b=_0x36f548()[_0x16004c('0x1ad4')](_0xa93256[_0x16004c('0x1d02')],{'id':Number(_0x53b4d1[_0x16004c('0x10cc')])});_0x101d68[_0x16004c('0x105d')](_0x208d3b);}}),!_0x36f548()[_0x34afc9('0x1fc5')](_0x101d68)&&_0x101d68['forEach'](function(_0x5077b4){const _0x22b2f6=_0x34afc9;if(!_0x36f548()[_0x22b2f6('0x1cb3')](_0x4280e2,['id',_0x5077b4['id']])){const _0xf952eb=_0x36f548()[_0x22b2f6('0x1ad4')](_0xa93256[_0x22b2f6('0x1d02')],{'id':_0x5077b4['id']});_0xf952eb[_0x22b2f6('0x254a')]=![],_0x4280e2['push'](_0xf952eb);}}),_0xa93256[_0x34afc9('0x1d02')]=_0x4280e2;});}})[_0x200945('0x151d')](function(_0x229c11){const _0x41d134=_0x200945;_0x894b7d['error']({'title':_0x229c11[_0x41d134('0xff9')]?_0x41d134('0x574')+_0x229c11[_0x41d134('0xff9')]+_0x41d134('0xb0b')+_0x229c11[_0x41d134('0x212f')]:_0x41d134('0x20fa'),'msg':_0x229c11[_0x41d134('0x4e8')]?JSON[_0x41d134('0x3e')](_0x229c11[_0x41d134('0x4e8')]):_0x229c11[_0x41d134('0xaab')]()});});}function _0xe3ba90(){const _0x3cab27=_0x132a78;_0x3f05ed['isAdmin']()?_0x447c1b[_0x3cab27('0x21d9')][_0x3cab27('0xbaa')]({'fields':_0x3cab27('0x919'),'sort':_0x3cab27('0x1909'),'role':_0x3cab27('0x18c4'),'nolimit':_0x3cab27('0x204c')})[_0x3cab27('0x1549')][_0x3cab27('0x11bf')](function(_0x43da0d){const _0x5cd4bf=_0x3cab27;_0xa93256[_0x5cd4bf('0x1401')]=_0x43da0d[_0x5cd4bf('0x19b2')]||[];})[_0x3cab27('0x151d')](function(_0x15f13b){const _0x552f3f=_0x3cab27;_0x894b7d[_0x552f3f('0x255')]({'title':_0x15f13b[_0x552f3f('0xff9')]?_0x552f3f('0x574')+_0x15f13b[_0x552f3f('0xff9')]+'\x20-\x20'+_0x15f13b[_0x552f3f('0x212f')]:_0x552f3f('0x912'),'msg':_0x15f13b[_0x552f3f('0x4e8')]?JSON[_0x552f3f('0x3e')](_0x15f13b[_0x552f3f('0x4e8')]):_0x15f13b[_0x552f3f('0xaab')]()});}):_0x447c1b[_0x3cab27('0x21d9')][_0x3cab27('0xbaa')]({'fields':'id,name,fullname','sort':_0x3cab27('0x1909'),'role':_0x3cab27('0x18c4'),'nolimit':'true'})[_0x3cab27('0x1549')][_0x3cab27('0x11bf')](function(_0x129ce7){const _0x1d15a5=_0x3cab27;_0xa93256[_0x1d15a5('0x1401')]=_0x129ce7[_0x1d15a5('0x19b2')]||[];})['then'](function(){const _0x4a6f66=_0x3cab27;return _0x447c1b[_0x4a6f66('0x1d63')][_0x4a6f66('0xbaa')]({'userProfileId':_0xa93256[_0x4a6f66('0x32a')][_0x4a6f66('0x781')],'sectionId':0xca})[_0x4a6f66('0x1549')];})['then'](function(_0x55d5c7){const _0x1757ee=_0x3cab27,_0x5287ee=_0x55d5c7&&_0x55d5c7[_0x1757ee('0x19b2')]?_0x55d5c7[_0x1757ee('0x19b2')][0x0]:null;if(!_0x5287ee){const _0x4020f4=[],_0x15103a=[];_0xa93256[_0x1757ee('0xf5f')]['rows'][_0x1757ee('0x1f88')](function(_0xa11e0c){const _0x181668=_0x1757ee;if(_0xa11e0c[_0x181668('0x485')]===_0x181668('0x18c4')){const _0x383a55=_0x36f548()[_0x181668('0x1ad4')](_0xa93256[_0x181668('0x1401')],{'name':_0xa11e0c[_0x181668('0x10cc')]});_0x15103a[_0x181668('0x105d')](_0x383a55);}});for(let _0x1a2c84=0x0;_0x1a2c84<_0xa93256[_0x1757ee('0x1401')][_0x1757ee('0x1e22')];_0x1a2c84++){const _0x27cfd3=_0x36f548()[_0x1757ee('0x1cb3')](_0x15103a,{'id':_0xa93256[_0x1757ee('0x1401')][_0x1a2c84]['id']});_0x27cfd3&&(_0xa93256[_0x1757ee('0x1401')][_0x1a2c84][_0x1757ee('0x254a')]=![],_0x4020f4['push'](_0xa93256[_0x1757ee('0x1401')][_0x1a2c84]));}_0xa93256[_0x1757ee('0x1401')]=_0x4020f4;}else{if(!_0x5287ee['autoAssociation'])return _0x447c1b[_0x1757ee('0x26d1')][_0x1757ee('0xbaa')]({'sectionId':_0x5287ee['id']})[_0x1757ee('0x1549')][_0x1757ee('0x11bf')](function(_0xf9bc06){const _0x16600c=_0x1757ee,_0x163ab2=_0x36f548()['map'](_0xf9bc06[_0x16600c('0x19b2')],function(_0x2956c3){const _0x13ef8c=_0x16600c;return _0x36f548()[_0x13ef8c('0x1ad4')](_0xa93256[_0x13ef8c('0x1401')],{'id':_0x2956c3[_0x13ef8c('0x15a5')]});});let _0x24dddb=null;_0x24dddb=[],_0xa93256[_0x16600c('0xf5f')][_0x16600c('0x19b2')][_0x16600c('0x1f88')](function(_0x3b3302){const _0x31cbdd=_0x16600c;if(_0x3b3302[_0x31cbdd('0x485')]===_0x31cbdd('0x18c4')){const _0x24a3ee=_0x36f548()['find'](_0xa93256[_0x31cbdd('0x1401')],{'name':_0x3b3302['value']});_0x24dddb[_0x31cbdd('0x105d')](_0x24a3ee);}}),!_0x36f548()[_0x16600c('0x1fc5')](_0x24dddb)&&_0x24dddb[_0x16600c('0x1f88')](function(_0x5b36af){const _0x2bc909=_0x16600c;if(!_0x36f548()[_0x2bc909('0x1cb3')](_0x163ab2,['id',_0x5b36af['id']])){const _0xcf37c2=_0x36f548()[_0x2bc909('0x1ad4')](_0xa93256[_0x2bc909('0x1401')],{'id':_0x5b36af['id']});_0xcf37c2['canSelect']=![],_0x163ab2[_0x2bc909('0x105d')](_0xcf37c2);}}),_0xa93256[_0x16600c('0x1401')]=_0x163ab2;});}})[_0x3cab27('0x151d')](function(_0x45a4f6){const _0x20789a=_0x3cab27;_0x894b7d['error']({'title':_0x45a4f6['status']?_0x20789a('0x574')+_0x45a4f6[_0x20789a('0xff9')]+_0x20789a('0xb0b')+_0x45a4f6['statusText']:_0x20789a('0x912'),'msg':_0x45a4f6[_0x20789a('0x4e8')]?JSON[_0x20789a('0x3e')](_0x45a4f6[_0x20789a('0x4e8')]):_0x45a4f6[_0x20789a('0xaab')]()});});}function _0x5b5dd8(){const _0x199539=_0x132a78;if(_0xa93256['trigger'][_0x199539('0xd12')]===_0x199539('0x1bc3')){if(_0x36f548()['some'](_0xa93256[_0x199539('0xf5f')][_0x199539('0x19b2')],[_0x199539('0x485'),'queue'])){if(!_0xa93256[_0x199539('0x1de3')])_0x38d80d();}if(_0x36f548()[_0x199539('0x1cb3')](_0xa93256[_0x199539('0xf5f')][_0x199539('0x19b2')],[_0x199539('0x485'),_0x199539('0x2077')])){if(!_0xa93256[_0x199539('0x1d02')])_0x24c880();}if(_0x36f548()[_0x199539('0x1cb3')](_0xa93256[_0x199539('0xf5f')][_0x199539('0x19b2')],[_0x199539('0x485'),'agent'])){if(!_0xa93256[_0x199539('0x1401')])_0xe3ba90();}}else _0x33392f();}function _0x585be3(_0x36366d){const _0x4e999c=_0x132a78;_0xa93256[_0x4e999c('0xf5f')]=_0x36366d||{'count':0x0,'rows':[]},_0x5b5dd8();}function _0x2cd8df(){const _0x4015d5=_0x132a78;_0xa93256[_0x4015d5('0x1f2a')][_0x4015d5('0x1393')]=(_0xa93256['query'][_0x4015d5('0x1c2')]-0x1)*_0xa93256[_0x4015d5('0x1f2a')][_0x4015d5('0xd5c')],_0xa93256['promise']=_0x447c1b[_0x4015d5('0x1be2')]['getAllConditions'](_0xa93256['query'],_0x585be3)[_0x4015d5('0x1549')];}function _0x5b17e8(_0xe12115,_0x4824aa){const _0x137b76=_0x132a78;_0x38306d['show']({'controller':_0x137b76('0x161d'),'controllerAs':'vm','templateUrl':_0x1a7c90,'parent':angular[_0x137b76('0x1e73')](_0x3b0551['body']),'targetEvent':_0xe12115,'clickOutsideToClose':!![],'locals':{'trigger':_0xa93256['trigger'],'allCondition':_0x4824aa,'allConditions':_0xa93256['triggerAllConditions']['rows'],'license':null,'setting':null,'crudPermissions':_0xa93256['crudPermissions']}})[_0x137b76('0x11bf')](function(_0x295349){const _0x1c11d5=_0x137b76;_0x295349&&(_0xa93256['triggerAllConditions']={'count':_0x295349[_0x1c11d5('0x1e22')],'rows':_0x295349},_0x5b5dd8());});}function _0x234a7d(_0x51687e,_0x4725bf){const _0x19ca8c=_0x132a78,_0x5d57ab=_0x38306d[_0x19ca8c('0x132b')]()[_0x19ca8c('0x134b')](_0x58eae['instant'](_0x19ca8c('0x9b6')))['ariaLabel'](_0x19ca8c('0x2476'))[_0x19ca8c('0x1e25')](_0x4725bf)['ok']('OK')['cancel'](_0x58eae[_0x19ca8c('0x10c2')]('APP.CANCEL'));_0x38306d['show'](_0x5d57ab)[_0x19ca8c('0x11bf')](function(){_0x24fc1d(_0x51687e,!![]);});}function _0x24fc1d(_0x2e1243,_0x224da0){const _0x2cfdf9=_0x132a78;_0x447c1b[_0x2cfdf9('0xccd')][_0x2cfdf9('0x2088')]({'id':_0x2e1243['id']})[_0x2cfdf9('0x1549')][_0x2cfdf9('0x11bf')](function(){const _0x41c819=_0x2cfdf9;_0x2cd8df(),_0x224da0&&_0x894b7d['success']({'title':_0x58eae[_0x41c819('0x10c2')](_0x41c819('0x255d'))});})['catch'](function(_0x296ca8){const _0x1a7a5f=_0x2cfdf9;if(_0x296ca8[_0x1a7a5f('0x4e8')]&&_0x296ca8[_0x1a7a5f('0x4e8')][_0x1a7a5f('0x120f')]&&_0x296ca8[_0x1a7a5f('0x4e8')][_0x1a7a5f('0x120f')][_0x1a7a5f('0x1e22')]){_0xa93256[_0x1a7a5f('0x120f')]=_0x296ca8['data'][_0x1a7a5f('0x120f')]||[{'message':_0x296ca8[_0x1a7a5f('0xaab')](),'type':_0x1a7a5f('0x1c90')}];for(let _0x362197=0x0;_0x362197<_0x296ca8[_0x1a7a5f('0x4e8')]['errors']['length'];_0x362197++){_0x894b7d[_0x1a7a5f('0x255')]({'title':_0x296ca8['data'][_0x1a7a5f('0x120f')][_0x362197][_0x1a7a5f('0x19fd')],'msg':_0x296ca8[_0x1a7a5f('0x4e8')][_0x1a7a5f('0x120f')][_0x362197][_0x1a7a5f('0x1b86')]});}}else _0x894b7d[_0x1a7a5f('0x255')]({'title':_0x296ca8[_0x1a7a5f('0xff9')]?_0x1a7a5f('0x574')+_0x296ca8['status']+_0x1a7a5f('0xb0b')+_0x296ca8[_0x1a7a5f('0x212f')]:_0x1a7a5f('0x1c90'),'msg':_0x296ca8['data']?JSON[_0x1a7a5f('0x3e')](_0x296ca8[_0x1a7a5f('0x4e8')][_0x1a7a5f('0x1b86')]):_0x296ca8[_0x1a7a5f('0x1b86')]||_0x296ca8[_0x1a7a5f('0xaab')]()});});}function _0x44e63b(){const _0x17f4cc=_0x132a78,_0x3c2f9b=angular[_0x17f4cc('0x6fb')](_0xa93256[_0x17f4cc('0x1162')]);return _0xa93256[_0x17f4cc('0x1162')]=[],_0x3c2f9b;}function _0x19d05c(_0x576382){const _0x8b3aed=_0x132a78,_0x526f25=_0x38306d['confirm']()['title'](_0x58eae[_0x8b3aed('0x10c2')](_0x8b3aed('0x1814')))[_0x8b3aed('0x252a')](_0x58eae[_0x8b3aed('0x10c2')](_0x8b3aed('0x27fa'),{'total':_0xa93256[_0x8b3aed('0x1162')][_0x8b3aed('0x1e22')]}))[_0x8b3aed('0xb2e')]('Delete\x20conditions')[_0x8b3aed('0x1e25')](_0x576382)['ok']('OK')[_0x8b3aed('0x26c9')](_0x58eae[_0x8b3aed('0x10c2')](_0x8b3aed('0xa5d')));_0x38306d['show'](_0x526f25)['then'](function(){const _0x50219a=_0x8b3aed;_0xa93256[_0x50219a('0x1162')][_0x50219a('0x1f88')](function(_0x50116a){_0x24fc1d(_0x50116a);}),_0xa93256[_0x50219a('0x1162')]=[],_0x894b7d[_0x50219a('0x2693')]({'title':_0x58eae[_0x50219a('0x10c2')](_0x50219a('0x229b'))});});}let _0x4eb37e=!![],_0x3569ff=0x1;_0x316485[_0x132a78('0x2087')](_0x132a78('0x1d12'),function(_0x1a689d,_0x1ce681){const _0x284432=_0x132a78;_0x4eb37e?_0x42ab61(function(){_0x4eb37e=![];}):(!_0x1ce681&&(_0x3569ff=_0xa93256[_0x284432('0x1f2a')][_0x284432('0x1c2')]),_0x1a689d!==_0x1ce681&&(_0xa93256[_0x284432('0x1f2a')]['page']=0x1),!_0x1a689d&&(_0xa93256[_0x284432('0x1f2a')][_0x284432('0x1c2')]=_0x3569ff),_0x2cd8df());});}const _0x590589=_0x163036;_0x167a55[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0xcbc'),_0x21d0f5('0x16b9'),_0x21d0f5('0x1ca2'),'$q','$translate','toasty','allconditions',_0x21d0f5('0xd1'),_0x21d0f5('0x1be2'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1'),_0x21d0f5('0xb25')];function _0x167a55(_0x32eaae,_0x366800,_0x514ae4,_0x4f6676,_0x41ef74,_0x2ea474,_0x407126,_0x1cab95,_0x12d2b5,_0x1d6205,_0xd00ddc,_0x495f6f,_0x35b1bd,_0x2355f7,_0x386241){const _0x714aff=_0x21d0f5,_0x451f17=this;_0x451f17[_0x714aff('0x32a')]=_0x495f6f[_0x714aff('0x2428')](),_0x451f17[_0x714aff('0x120f')]=[],_0x451f17[_0x714aff('0x23e1')]=_0x2355f7,_0x451f17[_0x714aff('0x17ff')]=_0x35b1bd,_0x451f17[_0x714aff('0xb25')]=_0x386241,_0x451f17[_0x714aff('0x2c9')]={},_0x451f17['passwordPattern']=_0x451f17[_0x714aff('0x23e1')]&&_0x451f17[_0x714aff('0x23e1')][_0x714aff('0x1d4')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x451f17[_0x714aff('0x134b')]=_0x714aff('0x689'),_0x451f17[_0x714aff('0xd1')]=angular[_0x714aff('0x6fb')](_0x12d2b5),_0x451f17[_0x714aff('0x1fc9')]=_0x1cab95,_0x451f17[_0x714aff('0xff7')]=![],_0x451f17[_0x714aff('0x1be2')]=angular[_0x714aff('0x6fb')](_0x1d6205);!_0x451f17[_0x714aff('0xd1')]&&(_0x451f17['allCondition']={'field':_0x714aff('0x150b'),'operator':'equals','value':'in'},_0x451f17['title']=_0x714aff('0x2265'),_0x451f17[_0x714aff('0xff7')]=!![]);_0x366800[_0x714aff('0x1ab3')]['id']&&(_0x451f17[_0x714aff('0xd1')]['TriggerAllId']=_0x366800[_0x714aff('0x1ab3')]['id']);_0x451f17['addNewAllCondition']=_0x54f9d3,_0x451f17[_0x714aff('0x273b')]=_0x35e23b,_0x451f17[_0x714aff('0x1184')]=_0x2217e6,_0x451f17[_0x714aff('0x1bd1')]=_0x44d9d8,_0x451f17['closeDialog']=_0x4d977c,_0x495f6f['hasRole']('admin')?_0xd00ddc[_0x714aff('0xb50')][_0x714aff('0xbaa')]({'fields':_0x714aff('0x721'),'sort':'id','nolimit':_0x714aff('0x204c')})[_0x714aff('0x1549')][_0x714aff('0x11bf')](function(_0xf5127e){const _0x427298=_0x714aff;_0x451f17[_0x427298('0x215d')]=_0xf5127e[_0x427298('0x19b2')]||[];})[_0x714aff('0x151d')](function(_0x52e398){const _0x15c7e6=_0x714aff;_0x407126[_0x15c7e6('0x255')]({'title':_0x52e398['status']?_0x15c7e6('0x574')+_0x52e398[_0x15c7e6('0xff9')]+_0x15c7e6('0xb0b')+_0x52e398[_0x15c7e6('0x212f')]:_0x15c7e6('0x1907'),'msg':_0x52e398[_0x15c7e6('0x4e8')]?JSON[_0x15c7e6('0x3e')](_0x52e398[_0x15c7e6('0x4e8')]):_0x52e398[_0x15c7e6('0xaab')]()});}):_0xd00ddc[_0x714aff('0xb50')][_0x714aff('0xbaa')]({'fields':_0x714aff('0x721'),'sort':'id','nolimit':_0x714aff('0x204c')})['$promise'][_0x714aff('0x11bf')](function(_0x2aa021){const _0x236596=_0x714aff;_0x451f17['chatAccounts']=_0x2aa021[_0x236596('0x19b2')]||[];})[_0x714aff('0x11bf')](function(){const _0x2e7c0c=_0x714aff;return _0xd00ddc[_0x2e7c0c('0x1d63')][_0x2e7c0c('0xbaa')]({'userProfileId':_0x451f17[_0x2e7c0c('0x32a')][_0x2e7c0c('0x781')],'sectionId':0x1f6})[_0x2e7c0c('0x1549')];})[_0x714aff('0x11bf')](function(_0x58d2e8){const _0x25d1e2=_0x714aff,_0x9503f0=_0x58d2e8&&_0x58d2e8[_0x25d1e2('0x19b2')]?_0x58d2e8[_0x25d1e2('0x19b2')][0x0]:null;if(!_0x9503f0){const _0x5d75b8=[];let _0x5108b0=null;_0x451f17[_0x25d1e2('0xd1')]&&(_0x5108b0=_0x36f548()[_0x25d1e2('0x1ad4')](_0x451f17[_0x25d1e2('0x215d')],{'id':Number(_0x451f17[_0x25d1e2('0xd1')][_0x25d1e2('0x10cc')])}));for(let _0x3c988d=0x0;_0x3c988d<_0x451f17[_0x25d1e2('0x215d')][_0x25d1e2('0x1e22')];_0x3c988d++){_0x5108b0&&_0x451f17['chatAccounts'][_0x3c988d]['id']===_0x5108b0['id']&&(_0x451f17[_0x25d1e2('0x215d')][_0x3c988d][_0x25d1e2('0x254a')]=![],_0x5d75b8['push'](_0x451f17[_0x25d1e2('0x215d')][_0x3c988d]));}_0x451f17[_0x25d1e2('0x215d')]=_0x5d75b8;}else{if(!_0x9503f0[_0x25d1e2('0xf11')])return _0xd00ddc[_0x25d1e2('0x26d1')][_0x25d1e2('0xbaa')]({'sectionId':_0x9503f0['id']})['$promise'][_0x25d1e2('0x11bf')](function(_0x29401f){const _0x4f9828=_0x25d1e2,_0x40fbd8=_0x36f548()['map'](_0x29401f[_0x4f9828('0x19b2')],function(_0x5cd5a8){const _0x4ecefb=_0x4f9828;return _0x36f548()[_0x4ecefb('0x1ad4')](_0x451f17[_0x4ecefb('0x215d')],{'id':_0x5cd5a8['resourceId']});});let _0x1f50c9=null;_0x451f17[_0x4f9828('0xd1')]&&(_0x1f50c9=_0x36f548()['find'](_0x451f17['chatAccounts'],{'id':Number(_0x451f17[_0x4f9828('0xd1')][_0x4f9828('0x10cc')])}));if(_0x1f50c9&&!_0x36f548()[_0x4f9828('0x1cb3')](_0x40fbd8,['id',_0x1f50c9['id']])){const _0x2575e6=_0x36f548()[_0x4f9828('0x1ad4')](_0x451f17[_0x4f9828('0x215d')],{'id':_0x1f50c9['id']});_0x2575e6[_0x4f9828('0x254a')]=![],_0x40fbd8[_0x4f9828('0x105d')](_0x2575e6);}_0x451f17[_0x4f9828('0x215d')]=_0x40fbd8;});}})[_0x714aff('0x151d')](function(_0x3153ba){const _0x304448=_0x714aff;_0x407126[_0x304448('0x255')]({'title':_0x3153ba[_0x304448('0xff9')]?'API:'+_0x3153ba['status']+'\x20-\x20'+_0x3153ba['statusText']:_0x304448('0x47d'),'msg':_0x3153ba[_0x304448('0x4e8')]?JSON[_0x304448('0x3e')](_0x3153ba['data']):_0x3153ba[_0x304448('0xaab')]()});}),_0x495f6f[_0x714aff('0x4ee')](_0x714aff('0xf45'))?_0xd00ddc[_0x714aff('0x1d47')]['get']({'fields':_0x714aff('0x721'),'sort':'id','nolimit':_0x714aff('0x204c')})['$promise']['then'](function(_0x44d228){_0x451f17['mailAccounts']=_0x44d228['rows']||[];})[_0x714aff('0x151d')](function(_0x5221d3){const _0x373c03=_0x714aff;_0x407126[_0x373c03('0x255')]({'title':_0x5221d3[_0x373c03('0xff9')]?_0x373c03('0x574')+_0x5221d3[_0x373c03('0xff9')]+_0x373c03('0xb0b')+_0x5221d3['statusText']:'SYSTEM:GET_MAILACCOUNTS','msg':_0x5221d3[_0x373c03('0x4e8')]?JSON['stringify'](_0x5221d3[_0x373c03('0x4e8')]):_0x5221d3[_0x373c03('0xaab')]()});}):_0xd00ddc[_0x714aff('0x1d47')][_0x714aff('0xbaa')]({'fields':_0x714aff('0x721'),'sort':'id','nolimit':_0x714aff('0x204c')})[_0x714aff('0x1549')][_0x714aff('0x11bf')](function(_0x5b485a){const _0x43385f=_0x714aff;_0x451f17['mailAccounts']=_0x5b485a[_0x43385f('0x19b2')]||[];})[_0x714aff('0x11bf')](function(){const _0x1859ea=_0x714aff;return _0xd00ddc['userProfileSection'][_0x1859ea('0xbaa')]({'userProfileId':_0x451f17[_0x1859ea('0x32a')][_0x1859ea('0x781')],'sectionId':0x25a})[_0x1859ea('0x1549')];})[_0x714aff('0x11bf')](function(_0x2ff1c6){const _0x178d4d=_0x714aff,_0x177662=_0x2ff1c6&&_0x2ff1c6['rows']?_0x2ff1c6[_0x178d4d('0x19b2')][0x0]:null;if(!_0x177662){const _0x5ba74f=[];let _0x37be23=null;_0x451f17[_0x178d4d('0xd1')]&&(_0x37be23=_0x36f548()[_0x178d4d('0x1ad4')](_0x451f17[_0x178d4d('0xf1a')],{'id':Number(_0x451f17[_0x178d4d('0xd1')]['value'])}));for(let _0x26c458=0x0;_0x26c458<_0x451f17[_0x178d4d('0xf1a')][_0x178d4d('0x1e22')];_0x26c458++){_0x37be23&&_0x451f17[_0x178d4d('0xf1a')][_0x26c458]['id']===_0x37be23['id']&&(_0x451f17[_0x178d4d('0xf1a')][_0x26c458][_0x178d4d('0x254a')]=![],_0x5ba74f[_0x178d4d('0x105d')](_0x451f17[_0x178d4d('0xf1a')][_0x26c458]));}_0x451f17[_0x178d4d('0xf1a')]=_0x5ba74f;}else{if(!_0x177662['autoAssociation'])return _0xd00ddc[_0x178d4d('0x26d1')]['get']({'sectionId':_0x177662['id']})[_0x178d4d('0x1549')][_0x178d4d('0x11bf')](function(_0x1d5151){const _0x350476=_0x178d4d,_0x4ab839=_0x36f548()[_0x350476('0x2171')](_0x1d5151['rows'],function(_0xd47ff1){const _0x4c58f4=_0x350476;return _0x36f548()[_0x4c58f4('0x1ad4')](_0x451f17['mailAccounts'],{'id':_0xd47ff1[_0x4c58f4('0x15a5')]});});let _0x295e31=null;_0x451f17[_0x350476('0xd1')]&&(_0x295e31=_0x36f548()[_0x350476('0x1ad4')](_0x451f17['mailAccounts'],{'id':Number(_0x451f17[_0x350476('0xd1')]['value'])}));if(_0x295e31&&!_0x36f548()[_0x350476('0x1cb3')](_0x4ab839,['id',_0x295e31['id']])){const _0x3f4751=_0x36f548()['find'](_0x451f17[_0x350476('0xf1a')],{'id':_0x295e31['id']});_0x3f4751['canSelect']=![],_0x4ab839[_0x350476('0x105d')](_0x3f4751);}_0x451f17[_0x350476('0xf1a')]=_0x4ab839;});}})['catch'](function(_0x5e5395){const _0x2d10c3=_0x714aff;_0x407126[_0x2d10c3('0x255')]({'title':_0x5e5395[_0x2d10c3('0xff9')]?_0x2d10c3('0x574')+_0x5e5395[_0x2d10c3('0xff9')]+_0x2d10c3('0xb0b')+_0x5e5395[_0x2d10c3('0x212f')]:_0x2d10c3('0x1757'),'msg':_0x5e5395['data']?JSON['stringify'](_0x5e5395['data']):_0x5e5395[_0x2d10c3('0xaab')]()});}),_0x495f6f[_0x714aff('0x4ee')](_0x714aff('0xf45'))?_0xd00ddc[_0x714aff('0x234b')]['get']({'fields':_0x714aff('0x721'),'sort':'id','nolimit':'true'})[_0x714aff('0x1549')][_0x714aff('0x11bf')](function(_0x50b108){const _0x817b87=_0x714aff;_0x451f17[_0x817b87('0x27d9')]=_0x50b108[_0x817b87('0x19b2')]||[];})[_0x714aff('0x151d')](function(_0x95b6d5){const _0x317d8a=_0x714aff;_0x407126[_0x317d8a('0x255')]({'title':_0x95b6d5[_0x317d8a('0xff9')]?_0x317d8a('0x574')+_0x95b6d5[_0x317d8a('0xff9')]+_0x317d8a('0xb0b')+_0x95b6d5[_0x317d8a('0x212f')]:_0x317d8a('0x1a39'),'msg':_0x95b6d5[_0x317d8a('0x4e8')]?JSON[_0x317d8a('0x3e')](_0x95b6d5[_0x317d8a('0x4e8')]):_0x95b6d5[_0x317d8a('0xaab')]()});}):_0xd00ddc[_0x714aff('0x234b')]['get']({'fields':_0x714aff('0x721'),'sort':'id','nolimit':_0x714aff('0x204c')})[_0x714aff('0x1549')][_0x714aff('0x11bf')](function(_0x2c7afb){const _0xef985e=_0x714aff;_0x451f17['smsAccounts']=_0x2c7afb[_0xef985e('0x19b2')]||[];})[_0x714aff('0x11bf')](function(){const _0x4f8908=_0x714aff;return _0xd00ddc[_0x4f8908('0x1d63')]['get']({'userProfileId':_0x451f17[_0x4f8908('0x32a')][_0x4f8908('0x781')],'sectionId':0x2be})[_0x4f8908('0x1549')];})[_0x714aff('0x11bf')](function(_0x49110d){const _0x311d06=_0x714aff,_0x381cb3=_0x49110d&&_0x49110d[_0x311d06('0x19b2')]?_0x49110d['rows'][0x0]:null;if(!_0x381cb3){const _0x3180fd=[];let _0x3026d2=null;_0x451f17[_0x311d06('0xd1')]&&(_0x3026d2=_0x36f548()[_0x311d06('0x1ad4')](_0x451f17['smsAccounts'],{'id':Number(_0x451f17[_0x311d06('0xd1')][_0x311d06('0x10cc')])}));for(let _0x3d8af6=0x0;_0x3d8af6<_0x451f17['smsAccounts'][_0x311d06('0x1e22')];_0x3d8af6++){_0x3026d2&&_0x451f17[_0x311d06('0x27d9')][_0x3d8af6]['id']===_0x3026d2['id']&&(_0x451f17[_0x311d06('0x27d9')][_0x3d8af6][_0x311d06('0x254a')]=![],_0x3180fd[_0x311d06('0x105d')](_0x451f17[_0x311d06('0x27d9')][_0x3d8af6]));}_0x451f17[_0x311d06('0x27d9')]=_0x3180fd;}else{if(!_0x381cb3[_0x311d06('0xf11')])return _0xd00ddc['userProfileResource'][_0x311d06('0xbaa')]({'sectionId':_0x381cb3['id']})[_0x311d06('0x1549')][_0x311d06('0x11bf')](function(_0x312b13){const _0x3714b0=_0x311d06,_0x137f4a=_0x36f548()[_0x3714b0('0x2171')](_0x312b13[_0x3714b0('0x19b2')],function(_0x3ee320){const _0x3324fd=_0x3714b0;return _0x36f548()[_0x3324fd('0x1ad4')](_0x451f17[_0x3324fd('0x27d9')],{'id':_0x3ee320['resourceId']});});let _0x1e8f80=null;_0x451f17[_0x3714b0('0xd1')]&&(_0x1e8f80=_0x36f548()[_0x3714b0('0x1ad4')](_0x451f17[_0x3714b0('0x27d9')],{'id':Number(_0x451f17[_0x3714b0('0xd1')][_0x3714b0('0x10cc')])}));if(_0x1e8f80&&!_0x36f548()[_0x3714b0('0x1cb3')](_0x137f4a,['id',_0x1e8f80['id']])){const _0x5146be=_0x36f548()[_0x3714b0('0x1ad4')](_0x451f17[_0x3714b0('0x27d9')],{'id':_0x1e8f80['id']});_0x5146be[_0x3714b0('0x254a')]=![],_0x137f4a[_0x3714b0('0x105d')](_0x5146be);}_0x451f17['smsAccounts']=_0x137f4a;});}})[_0x714aff('0x151d')](function(_0x466cac){const _0x4d00de=_0x714aff;_0x407126[_0x4d00de('0x255')]({'title':_0x466cac[_0x4d00de('0xff9')]?_0x4d00de('0x574')+_0x466cac[_0x4d00de('0xff9')]+_0x4d00de('0xb0b')+_0x466cac['statusText']:_0x4d00de('0x755'),'msg':_0x466cac[_0x4d00de('0x4e8')]?JSON[_0x4d00de('0x3e')](_0x466cac[_0x4d00de('0x4e8')]):_0x466cac[_0x4d00de('0xaab')]()});}),_0x495f6f[_0x714aff('0x4ee')]('admin')?_0xd00ddc['whatsappAccount']['get']({'fields':_0x714aff('0x721'),'sort':'id','nolimit':_0x714aff('0x204c')})[_0x714aff('0x1549')]['then'](function(_0x558185){const _0x4efc4d=_0x714aff;_0x451f17[_0x4efc4d('0xeaa')]=_0x558185[_0x4efc4d('0x19b2')]||[];})[_0x714aff('0x151d')](function(_0x5d2092){const _0x59bd03=_0x714aff;_0x407126[_0x59bd03('0x255')]({'title':_0x5d2092['status']?_0x59bd03('0x574')+_0x5d2092[_0x59bd03('0xff9')]+_0x59bd03('0xb0b')+_0x5d2092['statusText']:'SYSTEM:GET_WHATSAPPACCOUNTS','msg':_0x5d2092[_0x59bd03('0x4e8')]?JSON[_0x59bd03('0x3e')](_0x5d2092[_0x59bd03('0x4e8')]):_0x5d2092[_0x59bd03('0xaab')]()});}):_0xd00ddc[_0x714aff('0x2295')][_0x714aff('0xbaa')]({'fields':_0x714aff('0x721'),'sort':'id','nolimit':'true'})[_0x714aff('0x1549')][_0x714aff('0x11bf')](function(_0x38d2a0){const _0x19679a=_0x714aff;_0x451f17[_0x19679a('0xeaa')]=_0x38d2a0[_0x19679a('0x19b2')]||[];})['then'](function(){const _0x315277=_0x714aff;return _0xd00ddc[_0x315277('0x1d63')][_0x315277('0xbaa')]({'userProfileId':_0x451f17[_0x315277('0x32a')]['userProfileId'],'sectionId':0x836})[_0x315277('0x1549')];})['then'](function(_0x2cf571){const _0xc6d09c=_0x714aff,_0x30ba1f=_0x2cf571&&_0x2cf571['rows']?_0x2cf571[_0xc6d09c('0x19b2')][0x0]:null;if(!_0x30ba1f){const _0x29325f=[];let _0x3c2804=null;_0x451f17[_0xc6d09c('0xd1')]&&(_0x3c2804=_0x36f548()[_0xc6d09c('0x1ad4')](_0x451f17[_0xc6d09c('0xeaa')],{'id':Number(_0x451f17[_0xc6d09c('0xd1')][_0xc6d09c('0x10cc')])}));for(let _0x344fc0=0x0;_0x344fc0<_0x451f17[_0xc6d09c('0xeaa')][_0xc6d09c('0x1e22')];_0x344fc0++){_0x3c2804&&_0x451f17[_0xc6d09c('0xeaa')][_0x344fc0]['id']===_0x3c2804['id']&&(_0x451f17[_0xc6d09c('0xeaa')][_0x344fc0][_0xc6d09c('0x254a')]=![],_0x29325f[_0xc6d09c('0x105d')](_0x451f17[_0xc6d09c('0xeaa')][_0x344fc0]));}_0x451f17[_0xc6d09c('0xeaa')]=_0x29325f;}else{if(!_0x30ba1f['autoAssociation'])return _0xd00ddc['userProfileResource'][_0xc6d09c('0xbaa')]({'sectionId':_0x30ba1f['id']})[_0xc6d09c('0x1549')]['then'](function(_0x257607){const _0x1c1ce1=_0xc6d09c,_0x7375af=_0x36f548()[_0x1c1ce1('0x2171')](_0x257607[_0x1c1ce1('0x19b2')],function(_0x2cddf8){const _0xce8545=_0x1c1ce1;return _0x36f548()['find'](_0x451f17[_0xce8545('0xeaa')],{'id':_0x2cddf8[_0xce8545('0x15a5')]});});let _0x381f4b=null;_0x451f17[_0x1c1ce1('0xd1')]&&(_0x381f4b=_0x36f548()[_0x1c1ce1('0x1ad4')](_0x451f17[_0x1c1ce1('0xeaa')],{'id':Number(_0x451f17[_0x1c1ce1('0xd1')][_0x1c1ce1('0x10cc')])}));if(_0x381f4b&&!_0x36f548()[_0x1c1ce1('0x1cb3')](_0x7375af,['id',_0x381f4b['id']])){const _0x487d41=_0x36f548()[_0x1c1ce1('0x1ad4')](_0x451f17[_0x1c1ce1('0xeaa')],{'id':_0x381f4b['id']});_0x487d41[_0x1c1ce1('0x254a')]=![],_0x7375af[_0x1c1ce1('0x105d')](_0x487d41);}_0x451f17[_0x1c1ce1('0xeaa')]=_0x7375af;});}})[_0x714aff('0x151d')](function(_0x1f42f4){const _0x4df235=_0x714aff;_0x407126[_0x4df235('0x255')]({'title':_0x1f42f4[_0x4df235('0xff9')]?_0x4df235('0x574')+_0x1f42f4[_0x4df235('0xff9')]+_0x4df235('0xb0b')+_0x1f42f4['statusText']:_0x4df235('0x4d3'),'msg':_0x1f42f4['data']?JSON['stringify'](_0x1f42f4[_0x4df235('0x4e8')]):_0x1f42f4['toString']()});}),_0x495f6f['hasRole'](_0x714aff('0xf45'))?_0xd00ddc[_0x714aff('0x19dc')][_0x714aff('0xbaa')]({'fields':_0x714aff('0x721'),'sort':'id','nolimit':_0x714aff('0x204c')})[_0x714aff('0x1549')]['then'](function(_0xd83eb0){const _0x123688=_0x714aff;_0x451f17[_0x123688('0xc6e')]=_0xd83eb0[_0x123688('0x19b2')]||[];})[_0x714aff('0x151d')](function(_0x5219df){const _0x4ede5a=_0x714aff;_0x407126[_0x4ede5a('0x255')]({'title':_0x5219df[_0x4ede5a('0xff9')]?'API:'+_0x5219df['status']+_0x4ede5a('0xb0b')+_0x5219df[_0x4ede5a('0x212f')]:_0x4ede5a('0x20c'),'msg':_0x5219df['data']?JSON[_0x4ede5a('0x3e')](_0x5219df['data']):_0x5219df[_0x4ede5a('0xaab')]()});}):_0xd00ddc[_0x714aff('0x19dc')][_0x714aff('0xbaa')]({'fields':_0x714aff('0x721'),'sort':'id','nolimit':'true'})[_0x714aff('0x1549')][_0x714aff('0x11bf')](function(_0x470912){const _0x5e7468=_0x714aff;_0x451f17[_0x5e7468('0xc6e')]=_0x470912[_0x5e7468('0x19b2')]||[];})[_0x714aff('0x11bf')](function(){const _0x4bb069=_0x714aff;return _0xd00ddc[_0x4bb069('0x1d63')][_0x4bb069('0xbaa')]({'userProfileId':_0x451f17[_0x4bb069('0x32a')][_0x4bb069('0x781')],'sectionId':0x386})[_0x4bb069('0x1549')];})[_0x714aff('0x11bf')](function(_0x74659b){const _0x51fe29=_0x714aff,_0x2c34e2=_0x74659b&&_0x74659b['rows']?_0x74659b[_0x51fe29('0x19b2')][0x0]:null;if(!_0x2c34e2){const _0x24ed1c=[];let _0x52d3a9=null;_0x451f17[_0x51fe29('0xd1')]&&(_0x52d3a9=_0x36f548()[_0x51fe29('0x1ad4')](_0x451f17[_0x51fe29('0xc6e')],{'id':Number(_0x451f17[_0x51fe29('0xd1')]['value'])}));for(let _0x5f0535=0x0;_0x5f0535<_0x451f17['faxAccounts'][_0x51fe29('0x1e22')];_0x5f0535++){_0x52d3a9&&_0x451f17[_0x51fe29('0xc6e')][_0x5f0535]['id']===_0x52d3a9['id']&&(_0x451f17[_0x51fe29('0xc6e')][_0x5f0535][_0x51fe29('0x254a')]=![],_0x24ed1c['push'](_0x451f17['faxAccounts'][_0x5f0535]));}_0x451f17[_0x51fe29('0xc6e')]=_0x24ed1c;}else{if(!_0x2c34e2[_0x51fe29('0xf11')])return _0xd00ddc['userProfileResource'][_0x51fe29('0xbaa')]({'sectionId':_0x2c34e2['id']})[_0x51fe29('0x1549')][_0x51fe29('0x11bf')](function(_0x353ba6){const _0x772e89=_0x51fe29,_0x253089=_0x36f548()[_0x772e89('0x2171')](_0x353ba6[_0x772e89('0x19b2')],function(_0x112841){const _0x343c4d=_0x772e89;return _0x36f548()[_0x343c4d('0x1ad4')](_0x451f17[_0x343c4d('0xc6e')],{'id':_0x112841[_0x343c4d('0x15a5')]});});let _0x1cd115=null;_0x451f17[_0x772e89('0xd1')]&&(_0x1cd115=_0x36f548()[_0x772e89('0x1ad4')](_0x451f17[_0x772e89('0xc6e')],{'id':Number(_0x451f17['allCondition'][_0x772e89('0x10cc')])}));if(_0x1cd115&&!_0x36f548()[_0x772e89('0x1cb3')](_0x253089,['id',_0x1cd115['id']])){const _0x2abbe7=_0x36f548()[_0x772e89('0x1ad4')](_0x451f17[_0x772e89('0xc6e')],{'id':_0x1cd115['id']});_0x2abbe7[_0x772e89('0x254a')]=![],_0x253089[_0x772e89('0x105d')](_0x2abbe7);}_0x451f17[_0x772e89('0xc6e')]=_0x253089;});}})[_0x714aff('0x151d')](function(_0x569d92){const _0x3b8953=_0x714aff;_0x407126['error']({'title':_0x569d92[_0x3b8953('0xff9')]?'API:'+_0x569d92['status']+_0x3b8953('0xb0b')+_0x569d92['statusText']:_0x3b8953('0x2a9'),'msg':_0x569d92[_0x3b8953('0x4e8')]?JSON[_0x3b8953('0x3e')](_0x569d92[_0x3b8953('0x4e8')]):_0x569d92[_0x3b8953('0xaab')]()});}),_0x495f6f[_0x714aff('0x4ee')](_0x714aff('0xf45'))?_0xd00ddc[_0x714aff('0x13cb')]['get']({'fields':_0x714aff('0x721'),'sort':'id','nolimit':'true'})['$promise'][_0x714aff('0x11bf')](function(_0x389ed8){const _0x2515a3=_0x714aff;_0x451f17['openchannelAccounts']=_0x389ed8[_0x2515a3('0x19b2')]||[];})['catch'](function(_0x33bbc4){const _0x44f997=_0x714aff;_0x407126[_0x44f997('0x255')]({'title':_0x33bbc4[_0x44f997('0xff9')]?'API:'+_0x33bbc4[_0x44f997('0xff9')]+_0x44f997('0xb0b')+_0x33bbc4[_0x44f997('0x212f')]:'SYSTEM:GET_OPENCHANNELACCOUNTS','msg':_0x33bbc4[_0x44f997('0x4e8')]?JSON[_0x44f997('0x3e')](_0x33bbc4['data']):_0x33bbc4[_0x44f997('0xaab')]()});}):_0xd00ddc[_0x714aff('0x13cb')][_0x714aff('0xbaa')]({'fields':_0x714aff('0x721'),'sort':'id','nolimit':_0x714aff('0x204c')})[_0x714aff('0x1549')][_0x714aff('0x11bf')](function(_0x4e384e){const _0x49ec6d=_0x714aff;_0x451f17[_0x49ec6d('0x1518')]=_0x4e384e['rows']||[];})[_0x714aff('0x11bf')](function(){const _0x7c79c8=_0x714aff;return _0xd00ddc[_0x7c79c8('0x1d63')]['get']({'userProfileId':_0x451f17[_0x7c79c8('0x32a')][_0x7c79c8('0x781')],'sectionId':0x322})['$promise'];})[_0x714aff('0x11bf')](function(_0x22fd57){const _0x3f38ee=_0x714aff,_0x407d22=_0x22fd57&&_0x22fd57[_0x3f38ee('0x19b2')]?_0x22fd57[_0x3f38ee('0x19b2')][0x0]:null;if(!_0x407d22){const _0x9d00c6=[];let _0x32ed58=null;_0x451f17[_0x3f38ee('0xd1')]&&(_0x32ed58=_0x36f548()[_0x3f38ee('0x1ad4')](_0x451f17[_0x3f38ee('0x1518')],{'id':Number(_0x451f17[_0x3f38ee('0xd1')][_0x3f38ee('0x10cc')])}));for(let _0x47fe5b=0x0;_0x47fe5b<_0x451f17[_0x3f38ee('0x1518')][_0x3f38ee('0x1e22')];_0x47fe5b++){_0x32ed58&&_0x451f17[_0x3f38ee('0x1518')][_0x47fe5b]['id']===_0x32ed58['id']&&(_0x451f17[_0x3f38ee('0x1518')][_0x47fe5b][_0x3f38ee('0x254a')]=![],_0x9d00c6[_0x3f38ee('0x105d')](_0x451f17[_0x3f38ee('0x1518')][_0x47fe5b]));}_0x451f17[_0x3f38ee('0x1518')]=_0x9d00c6;}else{if(!_0x407d22[_0x3f38ee('0xf11')])return _0xd00ddc['userProfileResource']['get']({'sectionId':_0x407d22['id']})['$promise'][_0x3f38ee('0x11bf')](function(_0x4a0d95){const _0x1d5c7c=_0x3f38ee,_0xb86a39=_0x36f548()[_0x1d5c7c('0x2171')](_0x4a0d95[_0x1d5c7c('0x19b2')],function(_0x37e9fe){return _0x36f548()['find'](_0x451f17['openchannelAccounts'],{'id':_0x37e9fe['resourceId']});});let _0x2f9902=null;_0x451f17[_0x1d5c7c('0xd1')]&&(_0x2f9902=_0x36f548()[_0x1d5c7c('0x1ad4')](_0x451f17[_0x1d5c7c('0x1518')],{'id':Number(_0x451f17[_0x1d5c7c('0xd1')][_0x1d5c7c('0x10cc')])}));if(_0x2f9902&&!_0x36f548()[_0x1d5c7c('0x1cb3')](_0xb86a39,['id',_0x2f9902['id']])){const _0x2f67c5=_0x36f548()[_0x1d5c7c('0x1ad4')](_0x451f17[_0x1d5c7c('0x1518')],{'id':_0x2f9902['id']});_0x2f67c5[_0x1d5c7c('0x254a')]=![],_0xb86a39[_0x1d5c7c('0x105d')](_0x2f67c5);}_0x451f17[_0x1d5c7c('0x1518')]=_0xb86a39;});}})[_0x714aff('0x151d')](function(_0x586625){const _0x8c9daa=_0x714aff;_0x407126[_0x8c9daa('0x255')]({'title':_0x586625[_0x8c9daa('0xff9')]?'API:'+_0x586625[_0x8c9daa('0xff9')]+_0x8c9daa('0xb0b')+_0x586625[_0x8c9daa('0x212f')]:_0x8c9daa('0x4c'),'msg':_0x586625['data']?JSON[_0x8c9daa('0x3e')](_0x586625['data']):_0x586625[_0x8c9daa('0xaab')]()});});const _0x588c87=[{'id':0x191,'type':_0x714aff('0x18a2')},{'id':0x5dd,'type':_0x714aff('0x25b6')}];let _0x13fa66=null;_0x495f6f[_0x714aff('0x4ee')](_0x714aff('0xf45'))?_0xd00ddc['voiceQueue']['get']({'fields':_0x714aff('0xde'),'sort':_0x714aff('0x1909'),'nolimit':'true'})[_0x714aff('0x1549')][_0x714aff('0x11bf')](function(_0xbb17){const _0xc891f1=_0x714aff;_0x451f17[_0xc891f1('0x1de3')]=_0xbb17[_0xc891f1('0x19b2')]||[];})['catch'](function(_0x5783ec){const _0x4ed104=_0x714aff;_0x407126[_0x4ed104('0x255')]({'title':_0x5783ec[_0x4ed104('0xff9')]?_0x4ed104('0x574')+_0x5783ec['status']+_0x4ed104('0xb0b')+_0x5783ec['statusText']:_0x4ed104('0x23e0'),'msg':_0x5783ec[_0x4ed104('0x4e8')]?JSON[_0x4ed104('0x3e')](_0x5783ec[_0x4ed104('0x4e8')]):_0x5783ec[_0x4ed104('0xaab')]()});}):_0xd00ddc[_0x714aff('0x1043')][_0x714aff('0xbaa')]({'fields':'id,name,type','sort':_0x714aff('0x1909'),'nolimit':_0x714aff('0x204c')})[_0x714aff('0x1549')][_0x714aff('0x11bf')](function(_0x38667c){_0x13fa66=_0x38667c['rows']||[];})[_0x714aff('0x11bf')](function(){const _0x4e1fe6=_0x714aff,_0x6983c=[];for(let _0x112cca=0x0;_0x112cca<_0x588c87[_0x4e1fe6('0x1e22')];_0x112cca++){_0x6983c[_0x4e1fe6('0x105d')](_0xd00ddc[_0x4e1fe6('0x1d63')][_0x4e1fe6('0xbaa')]({'userProfileId':_0x451f17[_0x4e1fe6('0x32a')][_0x4e1fe6('0x781')],'sectionId':_0x588c87[_0x112cca]['id']})[_0x4e1fe6('0x1549')]);}return _0x41ef74[_0x4e1fe6('0x7c')](_0x6983c);})[_0x714aff('0x11bf')](function(_0x2a022f){const _0x8a2b0f=_0x714aff,_0x2f4808=_0x36f548()[_0x8a2b0f('0x2171')](_0x2a022f,function(_0x5e9985){const _0x364077=_0x8a2b0f;return _0x5e9985&&_0x5e9985[_0x364077('0x19b2')]?_0x5e9985[_0x364077('0x19b2')][0x0]:null;}),_0x73adb=[];for(let _0x1d6d60=0x0;_0x1d6d60<_0x588c87[_0x8a2b0f('0x1e22')];_0x1d6d60++){const _0x511702=_0x36f548()['find'](_0x2f4808,[_0x8a2b0f('0x24b2'),_0x588c87[_0x1d6d60]['id']]);if(_0x511702){if(!_0x511702[_0x8a2b0f('0xf11')])_0x73adb['push'](_0xd00ddc[_0x8a2b0f('0x26d1')][_0x8a2b0f('0xbaa')]({'sectionId':_0x511702['id']})[_0x8a2b0f('0x1549')]);else{const _0xd420a0=[];_0x13fa66['forEach'](function(_0x240937){const _0x5e62e9=_0x8a2b0f;_0x240937[_0x5e62e9('0x19fd')]===_0x588c87[_0x1d6d60][_0x5e62e9('0x19fd')]&&_0xd420a0['push'](_0x240937);}),_0x73adb[_0x8a2b0f('0x105d')]({'rows':_0xd420a0,'count':_0xd420a0[_0x8a2b0f('0x1e22')]});}}}return _0x41ef74[_0x8a2b0f('0x7c')](_0x73adb);})[_0x714aff('0x11bf')](function(_0x2804fe){const _0xa30806=_0x714aff,_0x2f5832=[];let _0x5884ce=null;_0x451f17['allCondition']&&(_0x5884ce=_0x36f548()[_0xa30806('0x1ad4')](_0x13fa66,{'name':_0x451f17['allCondition']['value']}));for(let _0x56c040=0x0;_0x56c040<_0x2804fe[_0xa30806('0x1e22')];_0x56c040++){const _0xe797cc=_0x2804fe[_0x56c040]['rows']||[];_0xe797cc[_0xa30806('0x1f88')](function(_0x4241a7){const _0x55d79a=_0xa30806;_0x2f5832[_0x55d79a('0x105d')](_0x4241a7);});}_0x5884ce&&!_0x36f548()[_0xa30806('0x1cb3')](_0x2f5832,[_0xa30806('0x15a5'),_0x5884ce['id']])&&_0x13fa66[_0xa30806('0x1f88')](function(_0x29dd1b){const _0x3cb2ee=_0xa30806;_0x29dd1b['id']===_0x5884ce['id']&&(_0x29dd1b[_0x3cb2ee('0x254a')]=![],_0x2f5832[_0x3cb2ee('0x105d')](_0x29dd1b));}),_0x451f17[_0xa30806('0x1de3')]=_0x2f5832;})[_0x714aff('0x151d')](function(_0x3843ef){const _0x51b3c4=_0x714aff;_0x407126[_0x51b3c4('0x255')]({'title':_0x3843ef[_0x51b3c4('0xff9')]?_0x51b3c4('0x574')+_0x3843ef['status']+_0x51b3c4('0xb0b')+_0x3843ef[_0x51b3c4('0x212f')]:_0x51b3c4('0xebd'),'msg':_0x3843ef[_0x51b3c4('0x4e8')]?JSON[_0x51b3c4('0x3e')](_0x3843ef[_0x51b3c4('0x4e8')]):_0x3843ef[_0x51b3c4('0xaab')]()});}),_0x495f6f['hasRole']('admin')?_0xd00ddc['voiceExtension'][_0x714aff('0xbaa')]({'fields':_0x714aff('0x10c9'),'type':_0x714aff('0x25b6'),'VoiceExtensionId':_0x714aff('0xb5f'),'nolimit':_0x714aff('0x204c')})[_0x714aff('0x1549')][_0x714aff('0x11bf')](function(_0x46547c){_0x451f17['outboundRoutes']=_0x46547c['rows']||[];})[_0x714aff('0x151d')](function(_0x4d9104){const _0x2736c6=_0x714aff;_0x407126['error']({'title':_0x4d9104[_0x2736c6('0xff9')]?_0x2736c6('0x574')+_0x4d9104['status']+_0x2736c6('0xb0b')+_0x4d9104[_0x2736c6('0x212f')]:_0x2736c6('0x20fa'),'msg':_0x4d9104[_0x2736c6('0x4e8')]?JSON[_0x2736c6('0x3e')](_0x4d9104[_0x2736c6('0x4e8')]):_0x4d9104[_0x2736c6('0xaab')]()});}):_0xd00ddc[_0x714aff('0x417')][_0x714aff('0xbaa')]({'fields':_0x714aff('0x10c9'),'type':_0x714aff('0x25b6'),'VoiceExtensionId':_0x714aff('0xb5f'),'nolimit':_0x714aff('0x204c')})[_0x714aff('0x1549')]['then'](function(_0x4f5535){_0x451f17['outboundRoutes']=_0x4f5535['rows']||[];})['then'](function(){const _0x201b56=_0x714aff;return _0xd00ddc[_0x201b56('0x1d63')][_0x201b56('0xbaa')]({'userProfileId':_0x451f17['currentUser']['userProfileId'],'sectionId':0x193})[_0x201b56('0x1549')];})[_0x714aff('0x11bf')](function(_0x2bf2bb){const _0x256f10=_0x714aff,_0x2d66fa=_0x2bf2bb&&_0x2bf2bb[_0x256f10('0x19b2')]?_0x2bf2bb[_0x256f10('0x19b2')][0x0]:null;if(!_0x2d66fa){const _0x3327a0=[];let _0x275647=null;_0x451f17[_0x256f10('0xd1')]&&(_0x275647=_0x36f548()[_0x256f10('0x1ad4')](_0x451f17['outboundRoutes'],{'id':Number(_0x451f17['allCondition']['value'])}));for(let _0x181e7d=0x0;_0x181e7d<_0x451f17[_0x256f10('0x1d02')][_0x256f10('0x1e22')];_0x181e7d++){_0x275647&&_0x451f17['outboundRoutes'][_0x181e7d]['id']===_0x275647['id']&&(_0x451f17[_0x256f10('0x1d02')][_0x181e7d][_0x256f10('0x254a')]=![],_0x3327a0['push'](_0x451f17[_0x256f10('0x1d02')][_0x181e7d]));}_0x451f17[_0x256f10('0x1d02')]=_0x3327a0;}else{if(!_0x2d66fa[_0x256f10('0xf11')])return _0xd00ddc[_0x256f10('0x26d1')][_0x256f10('0xbaa')]({'sectionId':_0x2d66fa['id']})[_0x256f10('0x1549')][_0x256f10('0x11bf')](function(_0x51a784){const _0x5453d9=_0x256f10,_0x2e7aac=_0x36f548()['map'](_0x51a784[_0x5453d9('0x19b2')],function(_0x5e46dd){const _0x44e8d1=_0x5453d9;return _0x36f548()['find'](_0x451f17['outboundRoutes'],{'id':_0x5e46dd[_0x44e8d1('0x15a5')]});});let _0x2cef23=null;_0x451f17[_0x5453d9('0xd1')]&&(_0x2cef23=_0x36f548()['find'](_0x451f17['outboundRoutes'],{'id':Number(_0x451f17[_0x5453d9('0xd1')][_0x5453d9('0x10cc')])}));if(_0x2cef23&&!_0x36f548()[_0x5453d9('0x1cb3')](_0x2e7aac,['id',_0x2cef23['id']])){const _0x551d86=_0x36f548()[_0x5453d9('0x1ad4')](_0x451f17['outboundRoutes'],{'id':_0x2cef23['id']});_0x551d86[_0x5453d9('0x254a')]=![],_0x2e7aac[_0x5453d9('0x105d')](_0x551d86);}_0x451f17[_0x5453d9('0x1d02')]=_0x2e7aac;});}})[_0x714aff('0x151d')](function(_0x56d1db){const _0x2955cf=_0x714aff;_0x407126[_0x2955cf('0x255')]({'title':_0x56d1db['status']?'API:'+_0x56d1db['status']+_0x2955cf('0xb0b')+_0x56d1db[_0x2955cf('0x212f')]:_0x2955cf('0x1acb'),'msg':_0x56d1db[_0x2955cf('0x4e8')]?JSON[_0x2955cf('0x3e')](_0x56d1db[_0x2955cf('0x4e8')]):_0x56d1db[_0x2955cf('0xaab')]()});}),_0x495f6f[_0x714aff('0x4ee')](_0x714aff('0xf45'))?_0xd00ddc[_0x714aff('0x21d9')][_0x714aff('0xbaa')]({'fields':'id,name,fullname','sort':_0x714aff('0x1909'),'role':_0x714aff('0x18c4'),'nolimit':'true'})['$promise'][_0x714aff('0x11bf')](function(_0xdbbe9e){const _0x3f0dc4=_0x714aff;_0x451f17[_0x3f0dc4('0x1401')]=_0xdbbe9e[_0x3f0dc4('0x19b2')]||[];})[_0x714aff('0x151d')](function(_0x3f8709){const _0x5746dd=_0x714aff;_0x407126['error']({'title':_0x3f8709[_0x5746dd('0xff9')]?_0x5746dd('0x574')+_0x3f8709['status']+_0x5746dd('0xb0b')+_0x3f8709[_0x5746dd('0x212f')]:'SYSTEM:GET_AGENTS','msg':_0x3f8709[_0x5746dd('0x4e8')]?JSON['stringify'](_0x3f8709[_0x5746dd('0x4e8')]):_0x3f8709[_0x5746dd('0xaab')]()});}):_0xd00ddc['user'][_0x714aff('0xbaa')]({'fields':_0x714aff('0x919'),'sort':_0x714aff('0x1909'),'role':'agent','nolimit':_0x714aff('0x204c')})[_0x714aff('0x1549')][_0x714aff('0x11bf')](function(_0x5eae59){const _0x1474b1=_0x714aff;_0x451f17[_0x1474b1('0x1401')]=_0x5eae59['rows']||[];})[_0x714aff('0x11bf')](function(){const _0x2d7c65=_0x714aff;return _0xd00ddc[_0x2d7c65('0x1d63')][_0x2d7c65('0xbaa')]({'userProfileId':_0x451f17[_0x2d7c65('0x32a')][_0x2d7c65('0x781')],'sectionId':0xca})[_0x2d7c65('0x1549')];})[_0x714aff('0x11bf')](function(_0x4fcc32){const _0x35648f=_0x714aff,_0xe1a694=_0x4fcc32&&_0x4fcc32['rows']?_0x4fcc32[_0x35648f('0x19b2')][0x0]:null;if(!_0xe1a694){const _0x29c56b=[];let _0x56e645=null;_0x451f17[_0x35648f('0xd1')]&&(_0x56e645=_0x36f548()[_0x35648f('0x1ad4')](_0x451f17[_0x35648f('0x1401')],{'name':_0x451f17['allCondition']['value']}));for(let _0x2d6cb6=0x0;_0x2d6cb6<_0x451f17[_0x35648f('0x1401')][_0x35648f('0x1e22')];_0x2d6cb6++){_0x56e645&&_0x451f17['agents'][_0x2d6cb6]['id']===_0x56e645['id']&&(_0x451f17[_0x35648f('0x1401')][_0x2d6cb6][_0x35648f('0x254a')]=![],_0x29c56b['push'](_0x451f17[_0x35648f('0x1401')][_0x2d6cb6]));}_0x451f17[_0x35648f('0x1401')]=_0x29c56b;}else{if(!_0xe1a694[_0x35648f('0xf11')])return _0xd00ddc['userProfileResource']['get']({'sectionId':_0xe1a694['id']})[_0x35648f('0x1549')][_0x35648f('0x11bf')](function(_0x4cf131){const _0x1cb804=_0x35648f,_0x285b38=_0x36f548()[_0x1cb804('0x2171')](_0x4cf131['rows'],function(_0x5aca14){const _0x53c5b1=_0x1cb804;return _0x36f548()[_0x53c5b1('0x1ad4')](_0x451f17[_0x53c5b1('0x1401')],{'id':_0x5aca14[_0x53c5b1('0x15a5')]});});let _0x5e8f5b=null;_0x451f17['allCondition']&&(_0x5e8f5b=_0x36f548()['find'](_0x451f17[_0x1cb804('0x1401')],{'name':_0x451f17[_0x1cb804('0xd1')][_0x1cb804('0x10cc')]}));if(_0x5e8f5b&&!_0x36f548()[_0x1cb804('0x1cb3')](_0x285b38,['id',_0x5e8f5b['id']])){const _0x4f7bb2=_0x36f548()[_0x1cb804('0x1ad4')](_0x451f17[_0x1cb804('0x1401')],{'id':_0x5e8f5b['id']});_0x4f7bb2['canSelect']=![],_0x285b38[_0x1cb804('0x105d')](_0x4f7bb2);}_0x451f17[_0x1cb804('0x1401')]=_0x285b38;});}})[_0x714aff('0x151d')](function(_0x3e01ba){const _0x144a7e=_0x714aff;_0x407126[_0x144a7e('0x255')]({'title':_0x3e01ba[_0x144a7e('0xff9')]?_0x144a7e('0x574')+_0x3e01ba['status']+'\x20-\x20'+_0x3e01ba[_0x144a7e('0x212f')]:'SYSTEM:GETagents','msg':_0x3e01ba['data']?JSON[_0x144a7e('0x3e')](_0x3e01ba['data']):_0x3e01ba['toString']()});});function _0x54f9d3(){const _0x479cae=_0x714aff;_0x451f17[_0x479cae('0x120f')]=[],_0xd00ddc['trigger'][_0x479cae('0x832')]({'id':_0x366800[_0x479cae('0x1ab3')]['id']},_0x451f17[_0x479cae('0xd1')])['$promise'][_0x479cae('0x11bf')](function(_0x866dcf){const _0x201d08=_0x479cae;_0x451f17[_0x201d08('0x1fc9')][_0x201d08('0x880')](_0x866dcf[_0x201d08('0x2866')]()),_0x407126[_0x201d08('0x2693')]({'title':_0x201d08('0x280e'),'msg':_0x451f17[_0x201d08('0xd1')][_0x201d08('0x1909')]?_0x451f17[_0x201d08('0xd1')][_0x201d08('0x1909')]+_0x201d08('0x7fb'):''}),_0x4d977c(_0x866dcf);})[_0x479cae('0x151d')](function(_0x5517f0){const _0x386747=_0x479cae;if(_0x5517f0[_0x386747('0x4e8')]&&_0x5517f0['data'][_0x386747('0x120f')]&&_0x5517f0[_0x386747('0x4e8')]['errors'][_0x386747('0x1e22')]){_0x451f17[_0x386747('0x120f')]=_0x5517f0[_0x386747('0x4e8')]['errors']||[{'message':_0x5517f0[_0x386747('0xaab')](),'type':'api.condition.save'}];for(let _0x4ae825=0x0;_0x4ae825<_0x5517f0[_0x386747('0x4e8')][_0x386747('0x120f')][_0x386747('0x1e22')];_0x4ae825+=0x1){_0x407126[_0x386747('0x255')]({'title':_0x5517f0[_0x386747('0x4e8')][_0x386747('0x120f')][_0x4ae825]['type'],'msg':_0x5517f0['data'][_0x386747('0x120f')][_0x4ae825][_0x386747('0x1b86')]});}}else _0x407126['error']({'title':_0x5517f0[_0x386747('0xff9')]?_0x386747('0x574')+_0x5517f0[_0x386747('0xff9')]+_0x386747('0xb0b')+_0x5517f0['statusText']:_0x386747('0x6dc'),'msg':_0x5517f0['data']?JSON[_0x386747('0x3e')](_0x5517f0[_0x386747('0x4e8')]['message']):_0x5517f0[_0x386747('0xaab')]()});});}function _0x35e23b(){const _0x3bc46b=_0x714aff;_0x451f17[_0x3bc46b('0x120f')]=[],_0xd00ddc[_0x3bc46b('0xccd')][_0x3bc46b('0x5ab')]({'id':_0x451f17[_0x3bc46b('0xd1')]['id']},_0x451f17[_0x3bc46b('0xd1')])[_0x3bc46b('0x1549')][_0x3bc46b('0x11bf')](function(_0x1caad6){const _0x5d276b=_0x3bc46b,_0x434819=_0x36f548()[_0x5d276b('0x1ad4')](_0x451f17[_0x5d276b('0x1fc9')],{'id':_0x1caad6['id']});_0x434819&&_0x36f548()['merge'](_0x434819,_0x36f548()[_0x5d276b('0x258')](_0x1caad6[_0x5d276b('0x2866')](),_0x36f548()[_0x5d276b('0xe22')](_0x434819))),_0x407126[_0x5d276b('0x2693')]({'title':_0x5d276b('0x63b'),'msg':_0x451f17[_0x5d276b('0xd1')][_0x5d276b('0x1909')]?_0x451f17[_0x5d276b('0xd1')][_0x5d276b('0x1909')]+_0x5d276b('0x1a78'):''}),_0x4d977c(_0x1caad6);})[_0x3bc46b('0x151d')](function(_0x44c044){const _0x7499f4=_0x3bc46b;if(_0x44c044['data']&&_0x44c044['data'][_0x7499f4('0x120f')]&&_0x44c044[_0x7499f4('0x4e8')]['errors'][_0x7499f4('0x1e22')]){_0x451f17[_0x7499f4('0x120f')]=_0x44c044[_0x7499f4('0x4e8')][_0x7499f4('0x120f')]||[{'message':_0x44c044[_0x7499f4('0xaab')](),'type':_0x7499f4('0x9d3')}];for(let _0xb9983=0x0;_0xb9983<_0x44c044['data'][_0x7499f4('0x120f')][_0x7499f4('0x1e22')];_0xb9983++){_0x407126[_0x7499f4('0x255')]({'title':_0x44c044[_0x7499f4('0x4e8')]['errors'][_0xb9983][_0x7499f4('0x19fd')],'msg':_0x44c044[_0x7499f4('0x4e8')][_0x7499f4('0x120f')][_0xb9983]['message']});}}else _0x407126[_0x7499f4('0x255')]({'title':_0x44c044[_0x7499f4('0xff9')]?_0x7499f4('0x574')+_0x44c044[_0x7499f4('0xff9')]+_0x7499f4('0xb0b')+_0x44c044['statusText']:_0x7499f4('0x9d3'),'msg':_0x44c044[_0x7499f4('0x4e8')]?JSON[_0x7499f4('0x3e')](_0x44c044[_0x7499f4('0x4e8')][_0x7499f4('0x1b86')]):_0x44c044[_0x7499f4('0xaab')]()});});}function _0x2217e6(_0x9ea4f5){const _0x3d6cd5=_0x714aff;_0x451f17[_0x3d6cd5('0x120f')]=[];const _0x3eaa95=_0x4f6676[_0x3d6cd5('0x132b')]()['title'](_0x3d6cd5('0x1fa9'))['content'](_0x3d6cd5('0x14b9'))['ariaLabel']('Delete\x20AllCondition')['ok'](_0x3d6cd5('0x1167'))[_0x3d6cd5('0x26c9')](_0x3d6cd5('0x784'))[_0x3d6cd5('0x1e25')](_0x9ea4f5);_0x4f6676[_0x3d6cd5('0xb9')](_0x3eaa95)[_0x3d6cd5('0x11bf')](function(){const _0x35825a=_0x3d6cd5;_0xd00ddc[_0x35825a('0xccd')][_0x35825a('0x2088')]({'id':_0x451f17[_0x35825a('0xd1')]['id']})[_0x35825a('0x1549')]['then'](function(){const _0x3b2b54=_0x35825a;_0x36f548()['remove'](_0x451f17[_0x3b2b54('0x1fc9')],{'id':_0x451f17[_0x3b2b54('0xd1')]['id']}),_0x407126[_0x3b2b54('0x2693')]({'title':_0x3b2b54('0x1441'),'msg':(_0x451f17[_0x3b2b54('0xd1')][_0x3b2b54('0x1909')]||'allCondition')+_0x3b2b54('0x433')}),_0x4d977c(_0x451f17[_0x3b2b54('0xd1')]);})[_0x35825a('0x151d')](function(_0x368a49){const _0x37f579=_0x35825a;if(_0x368a49['data']&&_0x368a49[_0x37f579('0x4e8')]['errors']&&_0x368a49['data'][_0x37f579('0x120f')][_0x37f579('0x1e22')]){_0x451f17[_0x37f579('0x120f')]=_0x368a49[_0x37f579('0x4e8')][_0x37f579('0x120f')]||[{'message':_0x368a49[_0x37f579('0xaab')](),'type':'api.condition.delete'}];for(let _0x5f3888=0x0;_0x5f3888<_0x368a49[_0x37f579('0x4e8')][_0x37f579('0x120f')]['length'];_0x5f3888++){_0x407126['error']({'title':_0x368a49[_0x37f579('0x4e8')]['errors'][_0x5f3888][_0x37f579('0x19fd')],'msg':_0x368a49['data'][_0x37f579('0x120f')][_0x5f3888][_0x37f579('0x1b86')]});}}else _0x407126[_0x37f579('0x255')]({'title':_0x368a49[_0x37f579('0xff9')]?_0x37f579('0x574')+_0x368a49['status']+_0x37f579('0xb0b')+_0x368a49[_0x37f579('0x212f')]:_0x37f579('0x1c0d'),'msg':_0x368a49[_0x37f579('0x4e8')]?JSON[_0x37f579('0x3e')](_0x368a49[_0x37f579('0x4e8')]['message']):_0x368a49[_0x37f579('0x1b86')]||_0x368a49[_0x37f579('0xaab')]()});});},function(){});}function _0x44d9d8(_0x3175f2){return _0x3175f2===null?undefined:new Date(_0x3175f2);}function _0x4d977c(_0x58519d){_0x4f6676['hide'](_0x58519d);}}const _0x414acc=_0x167a55,_0x31f98b=_0x351988['p']+_0x21d0f5('0x120a');_0x11c086[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),'$q',_0x21d0f5('0xb6b'),_0x21d0f5('0x17f5'),_0x21d0f5('0x1ca2'),'$document',_0x21d0f5('0x142d'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150')];function _0x11c086(_0x48639f,_0x50fa80,_0xab649c,_0x139f92,_0x1fdcad,_0x5d1859,_0x37b811,_0x3b998a,_0x28cc47){const _0x4b8974=_0x21d0f5,_0x17bd77=this;_0x17bd77[_0x4b8974('0x32a')]=_0x28cc47[_0x4b8974('0x2428')](),_0x17bd77[_0x4b8974('0x1be2')]={},_0x17bd77[_0x4b8974('0x25ba')]={'count':0x0,'rows':[]},_0x17bd77[_0x4b8974('0x222c')]=[],_0x17bd77[_0x4b8974('0x1f2a')]={'fields':_0x4b8974('0x1c18'),'limit':0xa,'page':0x1},_0x17bd77[_0x4b8974('0x1067')]={'queue':_0x4b8974('0x1c29'),'lastevent':'Call_Status','routeId':_0x4b8974('0x1918'),'agent':_0x4b8974('0x701'),'account':_0x4b8974('0x1e3c'),'interaction':_0x4b8974('0x1da8'),'message':'Message'},_0x17bd77[_0x4b8974('0x143')]={'abandoned':_0x4b8974('0x120d'),'timeout':'Timeout','complete':_0x4b8974('0x1b9e'),'rejected':'Reject','called':'Ring','connect':'Answer','nosuchnumber':_0x4b8974('0x19c2'),'busy':_0x4b8974('0x3ea'),'noanswer':'NoAnswer','congestion':'Congestion','agentreject':_0x4b8974('0x983')},_0x17bd77[_0x4b8974('0xe62')]={'in':_0x4b8974('0x3de'),'out':'Outgoing','accept':_0x4b8974('0x186d'),'reject':'Rejected'},_0x17bd77[_0x4b8974('0x277c')]=_0x47509a,_0x17bd77[_0x4b8974('0x2693')]=_0x399e5e,_0x17bd77[_0x4b8974('0x3a9')]=_0x20b0db,_0x17bd77['createOrEditTriggerAnyCondition']=_0x85bd1b,_0x17bd77['exportSelectedTriggerAnyConditions']=_0x1acbf3,_0x17bd77['deleteConfirm']=_0x3401ec,_0x17bd77[_0x4b8974('0xceb')]=_0x5a926c,_0x17bd77[_0x4b8974('0xba')]=_0xe3356;function _0x47509a(_0x4b1032,_0x201fc3){const _0x5be1fe=_0x4b8974;_0x17bd77['trigger']=_0x4b1032,_0x17bd77['crudPermissions']=typeof _0x201fc3!==_0x5be1fe('0x13e9')?_0x201fc3:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x17bd77[_0x5be1fe('0x1f2a')][_0x5be1fe('0x1d10')]=_0x17bd77['trigger']['id'],_0x17bd77['query']['id']=_0x17bd77[_0x5be1fe('0x1be2')]['id'],_0x20b0db();}function _0x2607f8(){const _0x2f3c46=_0x4b8974,_0x24120e=_0x17bd77[_0x2f3c46('0x1be2')][_0x2f3c46('0xd12')]+_0x17bd77[_0x2f3c46('0x1be2')][_0x2f3c46('0xd12')]===_0x2f3c46('0x1800')?_0x2f3c46('0xc51'):_0x2f3c46('0x1f05'),_0x1c15a9=_0x17bd77['trigger'][_0x2f3c46('0xd12')]+(_0x17bd77['trigger'][_0x2f3c46('0xd12')]===_0x2f3c46('0x1800')?'Website':_0x2f3c46('0x1e3c'));let _0x3883f9;switch(_0x17bd77[_0x2f3c46('0x1be2')][_0x2f3c46('0xd12')]){case _0x2f3c46('0x1800'):_0x3883f9=0x1f6;break;case'fax':_0x3883f9=0x386;break;case _0x2f3c46('0x2030'):_0x3883f9=0x25a;break;case'openchannel':_0x3883f9=0x322;break;case _0x2f3c46('0x4df'):_0x3883f9=0x2be;break;case _0x2f3c46('0xe7c'):_0x3883f9=0x836;break;}if(_0x28cc47[_0x2f3c46('0x14e0')]()){const _0x5f3f9c=_0x17bd77[_0x2f3c46('0x1be2')][_0x2f3c46('0xd12')];_0x3b998a[_0x1c15a9]['get']({'fields':_0x2f3c46('0x721'),'sort':'id','nolimit':'true'})[_0x2f3c46('0x1549')][_0x2f3c46('0x11bf')](function(_0xeccfc){const _0x33e985=_0x2f3c46;_0x17bd77[_0x24120e]=_0xeccfc[_0x33e985('0x19b2')]||[];})[_0x2f3c46('0x151d')](function(_0x8422a4){const _0x425769=_0x2f3c46;_0x37b811[_0x425769('0x255')]({'title':_0x8422a4[_0x425769('0xff9')]?'API:'+_0x8422a4['status']+_0x425769('0xb0b')+_0x8422a4[_0x425769('0x212f')]:_0x425769('0x13a3')+_0x5f3f9c[_0x425769('0xa6f')]()+_0x5f3f9c===_0x425769('0x1800')?'WEBSITES':_0x425769('0x126c'),'msg':_0x8422a4[_0x425769('0x4e8')]?JSON[_0x425769('0x3e')](_0x8422a4[_0x425769('0x4e8')]):_0x8422a4['toString']()});});}else{const _0x2ca6d8=_0x17bd77[_0x2f3c46('0x1be2')]['channel'];_0x3b998a[_0x1c15a9][_0x2f3c46('0xbaa')]({'fields':_0x2f3c46('0x721'),'sort':'id','nolimit':_0x2f3c46('0x204c')})[_0x2f3c46('0x1549')]['then'](function(_0x1af1be){_0x17bd77[_0x24120e]=_0x1af1be['rows']||[];})[_0x2f3c46('0x11bf')](function(){const _0x45ef81=_0x2f3c46;return _0x3b998a[_0x45ef81('0x1d63')][_0x45ef81('0xbaa')]({'userProfileId':_0x17bd77[_0x45ef81('0x32a')][_0x45ef81('0x781')],'sectionId':_0x3883f9})['$promise'];})['then'](function(_0x590f03){const _0x39b9c0=_0x2f3c46,_0x561e00=_0x590f03&&_0x590f03[_0x39b9c0('0x19b2')]?_0x590f03[_0x39b9c0('0x19b2')][0x0]:null;if(!_0x561e00){const _0x283a4b=[],_0x47865d=[];_0x17bd77[_0x39b9c0('0x25ba')][_0x39b9c0('0x19b2')][_0x39b9c0('0x1f88')](function(_0x33ced7){const _0x129a48=_0x39b9c0;if(_0x33ced7[_0x129a48('0x485')]===_0x129a48('0x2565')){const _0x21f253=_0x36f548()['find'](_0x17bd77[_0x24120e],{'id':Number(_0x33ced7[_0x129a48('0x10cc')])});_0x47865d[_0x129a48('0x105d')](_0x21f253);}});for(let _0x4fb534=0x0;_0x4fb534<_0x17bd77[_0x24120e][_0x39b9c0('0x1e22')];_0x4fb534++){const _0x2627a8=_0x36f548()[_0x39b9c0('0x1cb3')](_0x47865d,{'id':_0x17bd77[_0x24120e][_0x4fb534]['id']});_0x2627a8&&(_0x17bd77[_0x24120e][_0x4fb534][_0x39b9c0('0x254a')]=![],_0x283a4b[_0x39b9c0('0x105d')](_0x17bd77[_0x24120e][_0x4fb534]));}_0x17bd77[_0x24120e]=_0x283a4b;}else{if(!_0x561e00[_0x39b9c0('0xf11')])return _0x3b998a['userProfileResource'][_0x39b9c0('0xbaa')]({'sectionId':_0x561e00['id']})[_0x39b9c0('0x1549')][_0x39b9c0('0x11bf')](function(_0x144c73){const _0x78fd35=_0x39b9c0,_0x22f132=_0x36f548()['map'](_0x144c73['rows'],function(_0x2c4860){const _0x4dd88a=a0_0xaf0c;return _0x36f548()[_0x4dd88a('0x1ad4')](_0x17bd77[_0x24120e],{'id':_0x2c4860[_0x4dd88a('0x15a5')]});});let _0x4ab671=null;_0x4ab671=[],_0x17bd77['triggerAnyConditions'][_0x78fd35('0x19b2')][_0x78fd35('0x1f88')](function(_0x1bbd70){const _0x1838cf=_0x78fd35;if(_0x1bbd70[_0x1838cf('0x485')]===_0x1838cf('0x2565')){const _0x5a04c5=_0x36f548()['find'](_0x17bd77[_0x24120e],{'id':Number(_0x1bbd70[_0x1838cf('0x10cc')])});_0x4ab671['push'](_0x5a04c5);}}),!_0x36f548()['isEmpty'](_0x4ab671)&&_0x4ab671[_0x78fd35('0x1f88')](function(_0x8b95e3){const _0x3e6a8f=_0x78fd35;if(!_0x36f548()[_0x3e6a8f('0x1cb3')](_0x22f132,['id',_0x8b95e3['id']])){const _0x93a556=_0x36f548()['find'](_0x17bd77[_0x24120e],{'id':_0x8b95e3['id']});_0x93a556[_0x3e6a8f('0x254a')]=![],_0x22f132[_0x3e6a8f('0x105d')](_0x93a556);}}),_0x17bd77[_0x24120e]=_0x22f132;});}})[_0x2f3c46('0x151d')](function(_0x256715){const _0x599050=_0x2f3c46;_0x37b811[_0x599050('0x255')]({'title':_0x256715['status']?_0x599050('0x574')+_0x256715[_0x599050('0xff9')]+_0x599050('0xb0b')+_0x256715[_0x599050('0x212f')]:_0x599050('0x13a3')+_0x2ca6d8[_0x599050('0xa6f')]()+_0x2ca6d8===_0x599050('0x1800')?_0x599050('0x1f0'):_0x599050('0x126c'),'msg':_0x256715[_0x599050('0x4e8')]?JSON['stringify'](_0x256715[_0x599050('0x4e8')]):_0x256715[_0x599050('0xaab')]()});});}}function _0x1afec2(){const _0xc1c7cc=_0x4b8974,_0x5204a7=[{'id':0x191,'type':_0xc1c7cc('0x18a2')},{'id':0x5dd,'type':_0xc1c7cc('0x25b6')}];let _0x406726=null;_0x28cc47[_0xc1c7cc('0x14e0')]()?_0x3b998a['voiceQueue'][_0xc1c7cc('0xbaa')]({'fields':_0xc1c7cc('0xde'),'sort':_0xc1c7cc('0x1909'),'nolimit':'true'})[_0xc1c7cc('0x1549')]['then'](function(_0x12037f){const _0x40553d=_0xc1c7cc;_0x17bd77[_0x40553d('0x1de3')]=_0x12037f[_0x40553d('0x19b2')]||[];})[_0xc1c7cc('0x151d')](function(_0x5d8e34){const _0x45cb5e=_0xc1c7cc;_0x37b811[_0x45cb5e('0x255')]({'title':_0x5d8e34[_0x45cb5e('0xff9')]?_0x45cb5e('0x574')+_0x5d8e34[_0x45cb5e('0xff9')]+_0x45cb5e('0xb0b')+_0x5d8e34[_0x45cb5e('0x212f')]:'SYSTEM:GET_VOICEQUEUES','msg':_0x5d8e34[_0x45cb5e('0x4e8')]?JSON['stringify'](_0x5d8e34[_0x45cb5e('0x4e8')]):_0x5d8e34['toString']()});}):_0x3b998a['voiceQueue'][_0xc1c7cc('0xbaa')]({'fields':_0xc1c7cc('0xde'),'sort':_0xc1c7cc('0x1909'),'nolimit':_0xc1c7cc('0x204c')})[_0xc1c7cc('0x1549')][_0xc1c7cc('0x11bf')](function(_0x5addda){const _0x3a95c6=_0xc1c7cc;_0x406726=_0x5addda[_0x3a95c6('0x19b2')]||[];})['then'](function(){const _0x12ce5d=_0xc1c7cc,_0x45a817=[];for(let _0x1dbca9=0x0;_0x1dbca9<_0x5204a7[_0x12ce5d('0x1e22')];_0x1dbca9++){_0x45a817[_0x12ce5d('0x105d')](_0x3b998a[_0x12ce5d('0x1d63')]['get']({'userProfileId':_0x17bd77[_0x12ce5d('0x32a')][_0x12ce5d('0x781')],'sectionId':_0x5204a7[_0x1dbca9]['id']})['$promise']);}return _0x50fa80[_0x12ce5d('0x7c')](_0x45a817);})[_0xc1c7cc('0x11bf')](function(_0x114066){const _0x22aaad=_0xc1c7cc,_0x5e1b65=_0x36f548()[_0x22aaad('0x2171')](_0x114066,function(_0x4d61ae){const _0x48d965=_0x22aaad;return _0x4d61ae&&_0x4d61ae[_0x48d965('0x19b2')]?_0x4d61ae['rows'][0x0]:null;}),_0x4e42f6=[];for(let _0x1ec641=0x0;_0x1ec641<_0x5204a7[_0x22aaad('0x1e22')];_0x1ec641++){const _0x2a4971=_0x36f548()['find'](_0x5e1b65,[_0x22aaad('0x24b2'),_0x5204a7[_0x1ec641]['id']]);if(_0x2a4971){if(!_0x2a4971[_0x22aaad('0xf11')])_0x4e42f6[_0x22aaad('0x105d')](_0x3b998a[_0x22aaad('0x26d1')][_0x22aaad('0xbaa')]({'sectionId':_0x2a4971['id']})['$promise']);else{const _0x29197f=[];_0x406726[_0x22aaad('0x1f88')](function(_0x4f5faf){const _0x487e4a=_0x22aaad;_0x4f5faf[_0x487e4a('0x19fd')]===_0x5204a7[_0x1ec641][_0x487e4a('0x19fd')]&&_0x29197f[_0x487e4a('0x105d')](_0x4f5faf);}),_0x4e42f6[_0x22aaad('0x105d')]({'rows':_0x29197f,'count':_0x29197f[_0x22aaad('0x1e22')]});}}}return _0x50fa80[_0x22aaad('0x7c')](_0x4e42f6);})[_0xc1c7cc('0x11bf')](function(_0x57cd6e){const _0x2e889a=_0xc1c7cc,_0x3fb982=[],_0x36fd10=[];_0x17bd77[_0x2e889a('0x25ba')]['rows'][_0x2e889a('0x1f88')](function(_0x4e571b){const _0x159dc7=_0x2e889a;if(_0x4e571b[_0x159dc7('0x485')]===_0x159dc7('0x150b')){const _0x4f3894=_0x36f548()[_0x159dc7('0x1ad4')](_0x406726,{'name':_0x4e571b[_0x159dc7('0x10cc')]});_0x36fd10[_0x159dc7('0x105d')](_0x4f3894);}});for(let _0x552b4b=0x0;_0x552b4b<_0x57cd6e[_0x2e889a('0x1e22')];_0x552b4b++){const _0x2c1997=_0x57cd6e[_0x552b4b][_0x2e889a('0x19b2')]||[];_0x2c1997[_0x2e889a('0x1f88')](function(_0x2ed7ec){const _0x34210c=_0x2e889a;_0x3fb982[_0x34210c('0x105d')](_0x2ed7ec);});}!_0x36f548()[_0x2e889a('0x1fc5')](_0x36fd10)&&_0x36fd10[_0x2e889a('0x1f88')](function(_0x3321b9){const _0x3f79b5=_0x2e889a;if(!_0x36f548()[_0x3f79b5('0x1cb3')](_0x3fb982,[_0x3f79b5('0x15a5'),_0x3321b9['id']])){const _0x1ccb0b=_0x36f548()[_0x3f79b5('0x1ad4')](_0x406726,{'id':_0x3321b9['id']});_0x1ccb0b['canSelect']=![],_0x3fb982[_0x3f79b5('0x105d')](_0x1ccb0b);}}),_0x17bd77['queues']=_0x3fb982;})[_0xc1c7cc('0x151d')](function(_0x2d4d9e){const _0x3e7e46=_0xc1c7cc;_0x37b811['error']({'title':_0x2d4d9e[_0x3e7e46('0xff9')]?_0x3e7e46('0x574')+_0x2d4d9e[_0x3e7e46('0xff9')]+'\x20-\x20'+_0x2d4d9e[_0x3e7e46('0x212f')]:_0x3e7e46('0x23e0'),'msg':_0x2d4d9e[_0x3e7e46('0x4e8')]?JSON[_0x3e7e46('0x3e')](_0x2d4d9e[_0x3e7e46('0x4e8')]):_0x2d4d9e[_0x3e7e46('0xaab')]()});});}function _0x8ba957(){const _0x243c30=_0x4b8974;_0x28cc47['isAdmin']()?_0x3b998a[_0x243c30('0x417')][_0x243c30('0xbaa')]({'fields':_0x243c30('0x10c9'),'type':_0x243c30('0x25b6'),'VoiceExtensionId':'null','nolimit':_0x243c30('0x204c')})[_0x243c30('0x1549')][_0x243c30('0x11bf')](function(_0x4e1706){const _0x41a3bb=_0x243c30;_0x17bd77[_0x41a3bb('0x1d02')]=_0x4e1706['rows']||[];})[_0x243c30('0x151d')](function(_0x9223c0){const _0x6db97c=_0x243c30;_0x37b811[_0x6db97c('0x255')]({'title':_0x9223c0['status']?'API:'+_0x9223c0[_0x6db97c('0xff9')]+_0x6db97c('0xb0b')+_0x9223c0[_0x6db97c('0x212f')]:'SYSTEM:GET_OUTBOUNDROUTES','msg':_0x9223c0[_0x6db97c('0x4e8')]?JSON[_0x6db97c('0x3e')](_0x9223c0['data']):_0x9223c0['toString']()});}):_0x3b998a['voiceExtension'][_0x243c30('0xbaa')]({'fields':_0x243c30('0x10c9'),'type':_0x243c30('0x25b6'),'VoiceExtensionId':_0x243c30('0xb5f'),'nolimit':'true'})[_0x243c30('0x1549')][_0x243c30('0x11bf')](function(_0x3d71e3){const _0xba30cc=_0x243c30;_0x17bd77['outboundRoutes']=_0x3d71e3[_0xba30cc('0x19b2')]||[];})[_0x243c30('0x11bf')](function(){const _0x3c9869=_0x243c30;return _0x3b998a[_0x3c9869('0x1d63')][_0x3c9869('0xbaa')]({'userProfileId':_0x17bd77[_0x3c9869('0x32a')]['userProfileId'],'sectionId':0x193})[_0x3c9869('0x1549')];})[_0x243c30('0x11bf')](function(_0x30eaca){const _0x414d9e=_0x243c30,_0x29767b=_0x30eaca&&_0x30eaca[_0x414d9e('0x19b2')]?_0x30eaca[_0x414d9e('0x19b2')][0x0]:null;if(!_0x29767b){const _0x361312=[],_0x32691a=[];_0x17bd77[_0x414d9e('0x25ba')][_0x414d9e('0x19b2')][_0x414d9e('0x1f88')](function(_0x4456a5){const _0x204bbd=_0x414d9e;if(_0x4456a5[_0x204bbd('0x485')]===_0x204bbd('0x2077')){const _0x526151=_0x36f548()[_0x204bbd('0x1ad4')](_0x17bd77['outboundRoutes'],{'id':Number(_0x4456a5['value'])});_0x32691a[_0x204bbd('0x105d')](_0x526151);}});for(let _0x5167a0=0x0;_0x5167a0<_0x17bd77[_0x414d9e('0x1d02')][_0x414d9e('0x1e22')];_0x5167a0++){const _0x3501f7=_0x36f548()[_0x414d9e('0x1cb3')](_0x32691a,{'id':_0x17bd77[_0x414d9e('0x1d02')][_0x5167a0]['id']});_0x3501f7&&(_0x17bd77['outboundRoutes'][_0x5167a0][_0x414d9e('0x254a')]=![],_0x361312[_0x414d9e('0x105d')](_0x17bd77[_0x414d9e('0x1d02')][_0x5167a0]));}_0x17bd77[_0x414d9e('0x1d02')]=_0x361312;}else{if(!_0x29767b['autoAssociation'])return _0x3b998a[_0x414d9e('0x26d1')]['get']({'sectionId':_0x29767b['id']})[_0x414d9e('0x1549')][_0x414d9e('0x11bf')](function(_0x30a552){const _0x4d7165=_0x414d9e,_0x5836b5=_0x36f548()[_0x4d7165('0x2171')](_0x30a552[_0x4d7165('0x19b2')],function(_0x34f01d){const _0x2ec9bf=_0x4d7165;return _0x36f548()[_0x2ec9bf('0x1ad4')](_0x17bd77[_0x2ec9bf('0x1d02')],{'id':_0x34f01d[_0x2ec9bf('0x15a5')]});});let _0x2374bc=null;_0x2374bc=[],_0x17bd77['triggerAnyConditions']['rows'][_0x4d7165('0x1f88')](function(_0x48dfbb){const _0x194734=_0x4d7165;if(_0x48dfbb[_0x194734('0x485')]===_0x194734('0x2077')){const _0x2719c0=_0x36f548()[_0x194734('0x1ad4')](_0x17bd77[_0x194734('0x1d02')],{'id':Number(_0x48dfbb[_0x194734('0x10cc')])});_0x2374bc[_0x194734('0x105d')](_0x2719c0);}}),!_0x36f548()['isEmpty'](_0x2374bc)&&_0x2374bc[_0x4d7165('0x1f88')](function(_0x136b6e){const _0x5bdf67=_0x4d7165;if(!_0x36f548()[_0x5bdf67('0x1cb3')](_0x5836b5,['id',_0x136b6e['id']])){const _0xfdada0=_0x36f548()[_0x5bdf67('0x1ad4')](_0x17bd77['outboundRoutes'],{'id':_0x136b6e['id']});_0xfdada0[_0x5bdf67('0x254a')]=![],_0x5836b5[_0x5bdf67('0x105d')](_0xfdada0);}}),_0x17bd77['outboundRoutes']=_0x5836b5;});}})[_0x243c30('0x151d')](function(_0x263d6f){const _0x33242c=_0x243c30;_0x37b811['error']({'title':_0x263d6f[_0x33242c('0xff9')]?_0x33242c('0x574')+_0x263d6f[_0x33242c('0xff9')]+_0x33242c('0xb0b')+_0x263d6f[_0x33242c('0x212f')]:_0x33242c('0x20fa'),'msg':_0x263d6f['data']?JSON[_0x33242c('0x3e')](_0x263d6f[_0x33242c('0x4e8')]):_0x263d6f[_0x33242c('0xaab')]()});});}function _0x2b2358(){const _0x257071=_0x4b8974;_0x28cc47['isAdmin']()?_0x3b998a[_0x257071('0x21d9')][_0x257071('0xbaa')]({'fields':_0x257071('0x919'),'sort':_0x257071('0x1909'),'role':_0x257071('0x18c4'),'nolimit':_0x257071('0x204c')})[_0x257071('0x1549')]['then'](function(_0x2e4957){const _0x255be7=_0x257071;_0x17bd77[_0x255be7('0x1401')]=_0x2e4957[_0x255be7('0x19b2')]||[];})[_0x257071('0x151d')](function(_0x2773a6){const _0xbfe84d=_0x257071;_0x37b811[_0xbfe84d('0x255')]({'title':_0x2773a6['status']?_0xbfe84d('0x574')+_0x2773a6['status']+'\x20-\x20'+_0x2773a6[_0xbfe84d('0x212f')]:_0xbfe84d('0x912'),'msg':_0x2773a6[_0xbfe84d('0x4e8')]?JSON['stringify'](_0x2773a6[_0xbfe84d('0x4e8')]):_0x2773a6[_0xbfe84d('0xaab')]()});}):_0x3b998a[_0x257071('0x21d9')][_0x257071('0xbaa')]({'fields':_0x257071('0x919'),'sort':'name','role':_0x257071('0x18c4'),'nolimit':_0x257071('0x204c')})[_0x257071('0x1549')][_0x257071('0x11bf')](function(_0x131a37){const _0x2cee9b=_0x257071;_0x17bd77[_0x2cee9b('0x1401')]=_0x131a37[_0x2cee9b('0x19b2')]||[];})[_0x257071('0x11bf')](function(){const _0x30b496=_0x257071;return _0x3b998a[_0x30b496('0x1d63')][_0x30b496('0xbaa')]({'userProfileId':_0x17bd77['currentUser'][_0x30b496('0x781')],'sectionId':0xca})[_0x30b496('0x1549')];})[_0x257071('0x11bf')](function(_0x126df0){const _0x7d2f84=_0x257071,_0x49e490=_0x126df0&&_0x126df0[_0x7d2f84('0x19b2')]?_0x126df0[_0x7d2f84('0x19b2')][0x0]:null;if(!_0x49e490){const _0x348ce3=[],_0x5d24cb=[];_0x17bd77[_0x7d2f84('0x25ba')][_0x7d2f84('0x19b2')][_0x7d2f84('0x1f88')](function(_0x30dffd){const _0x1e838f=_0x7d2f84;if(_0x30dffd[_0x1e838f('0x485')]===_0x1e838f('0x18c4')){const _0x220a70=_0x36f548()[_0x1e838f('0x1ad4')](_0x17bd77[_0x1e838f('0x1401')],{'name':_0x30dffd['value']});_0x5d24cb[_0x1e838f('0x105d')](_0x220a70);}});for(let _0x347fb2=0x0;_0x347fb2<_0x17bd77[_0x7d2f84('0x1401')][_0x7d2f84('0x1e22')];_0x347fb2++){const _0x478cab=_0x36f548()[_0x7d2f84('0x1cb3')](_0x5d24cb,{'id':_0x17bd77[_0x7d2f84('0x1401')][_0x347fb2]['id']});_0x478cab&&(_0x17bd77['agents'][_0x347fb2][_0x7d2f84('0x254a')]=![],_0x348ce3[_0x7d2f84('0x105d')](_0x17bd77['agents'][_0x347fb2]));}_0x17bd77[_0x7d2f84('0x1401')]=_0x348ce3;}else{if(!_0x49e490[_0x7d2f84('0xf11')])return _0x3b998a['userProfileResource'][_0x7d2f84('0xbaa')]({'sectionId':_0x49e490['id']})[_0x7d2f84('0x1549')][_0x7d2f84('0x11bf')](function(_0xa79ac7){const _0x2846f0=_0x7d2f84,_0x2e18fe=_0x36f548()[_0x2846f0('0x2171')](_0xa79ac7['rows'],function(_0x27b8fb){const _0x514da7=_0x2846f0;return _0x36f548()[_0x514da7('0x1ad4')](_0x17bd77[_0x514da7('0x1401')],{'id':_0x27b8fb[_0x514da7('0x15a5')]});});let _0x514c0d=null;_0x514c0d=[],_0x17bd77['triggerAnyConditions']['rows']['forEach'](function(_0x1244d8){const _0x16d116=_0x2846f0;if(_0x1244d8[_0x16d116('0x485')]===_0x16d116('0x18c4')){const _0x4c9cbd=_0x36f548()['find'](_0x17bd77[_0x16d116('0x1401')],{'name':_0x1244d8['value']});_0x514c0d[_0x16d116('0x105d')](_0x4c9cbd);}}),!_0x36f548()[_0x2846f0('0x1fc5')](_0x514c0d)&&_0x514c0d[_0x2846f0('0x1f88')](function(_0x2bac6f){const _0x42e262=_0x2846f0;if(!_0x36f548()[_0x42e262('0x1cb3')](_0x2e18fe,['id',_0x2bac6f['id']])){const _0x431ae2=_0x36f548()['find'](_0x17bd77[_0x42e262('0x1401')],{'id':_0x2bac6f['id']});_0x431ae2[_0x42e262('0x254a')]=![],_0x2e18fe[_0x42e262('0x105d')](_0x431ae2);}}),_0x17bd77[_0x2846f0('0x1401')]=_0x2e18fe;});}})[_0x257071('0x151d')](function(_0x513843){const _0xd47ee0=_0x257071;_0x37b811[_0xd47ee0('0x255')]({'title':_0x513843[_0xd47ee0('0xff9')]?_0xd47ee0('0x574')+_0x513843['status']+'\x20-\x20'+_0x513843[_0xd47ee0('0x212f')]:_0xd47ee0('0x912'),'msg':_0x513843[_0xd47ee0('0x4e8')]?JSON[_0xd47ee0('0x3e')](_0x513843[_0xd47ee0('0x4e8')]):_0x513843[_0xd47ee0('0xaab')]()});});}function _0x2524ef(){const _0x88587f=_0x4b8974;if(_0x17bd77[_0x88587f('0x1be2')]['channel']==='voice'){if(_0x36f548()['some'](_0x17bd77['triggerAnyConditions']['rows'],[_0x88587f('0x485'),'queue'])){if(!_0x17bd77[_0x88587f('0x1de3')])_0x1afec2();}if(_0x36f548()[_0x88587f('0x1cb3')](_0x17bd77[_0x88587f('0x25ba')][_0x88587f('0x19b2')],['field',_0x88587f('0x2077')])){if(!_0x17bd77[_0x88587f('0x1d02')])_0x8ba957();}if(_0x36f548()[_0x88587f('0x1cb3')](_0x17bd77['triggerAnyConditions']['rows'],['field','agent'])){if(!_0x17bd77[_0x88587f('0x1401')])_0x2b2358();}}else _0x2607f8();}function _0x399e5e(_0x64388){_0x17bd77['triggerAnyConditions']=_0x64388||{'count':0x0,'rows':[]},_0x2524ef();}function _0x20b0db(){const _0x9e1bf5=_0x4b8974;_0x17bd77[_0x9e1bf5('0x1f2a')][_0x9e1bf5('0x1393')]=(_0x17bd77[_0x9e1bf5('0x1f2a')][_0x9e1bf5('0x1c2')]-0x1)*_0x17bd77['query'][_0x9e1bf5('0xd5c')],_0x17bd77['promise']=_0x3b998a[_0x9e1bf5('0x1be2')][_0x9e1bf5('0x155d')](_0x17bd77[_0x9e1bf5('0x1f2a')],_0x399e5e)[_0x9e1bf5('0x1549')];}function _0x85bd1b(_0x2df5f5,_0x464533){const _0x387331=_0x4b8974;_0x1fdcad[_0x387331('0xb9')]({'controller':_0x387331('0xf6c'),'controllerAs':'vm','templateUrl':_0x31f98b,'parent':angular[_0x387331('0x1e73')](_0x5d1859[_0x387331('0x1d2')]),'targetEvent':_0x2df5f5,'clickOutsideToClose':!![],'locals':{'trigger':_0x17bd77[_0x387331('0x1be2')],'anyCondition':_0x464533,'anyConditions':_0x17bd77[_0x387331('0x25ba')][_0x387331('0x19b2')],'license':null,'setting':null,'crudPermissions':_0x17bd77['crudPermissions']}})[_0x387331('0x11bf')](function(_0x2f5bbf){const _0x50728c=_0x387331;_0x2f5bbf&&(_0x17bd77['triggerAnyConditions']={'count':_0x2f5bbf[_0x50728c('0x1e22')],'rows':_0x2f5bbf},_0x2524ef());});}function _0x3401ec(_0x5b812b,_0x15e32f){const _0x3d1a81=_0x4b8974,_0x20a82c=_0x1fdcad[_0x3d1a81('0x132b')]()[_0x3d1a81('0x134b')](_0xab649c[_0x3d1a81('0x10c2')](_0x3d1a81('0x9b6')))['ariaLabel'](_0x3d1a81('0x2476'))[_0x3d1a81('0x1e25')](_0x15e32f)['ok']('OK')[_0x3d1a81('0x26c9')](_0xab649c[_0x3d1a81('0x10c2')]('APP.CANCEL'));_0x1fdcad[_0x3d1a81('0xb9')](_0x20a82c)[_0x3d1a81('0x11bf')](function(){_0x5a926c(_0x5b812b,!![]);});}function _0x5a926c(_0x3041a8,_0x29a4f8){const _0x496164=_0x4b8974;_0x3b998a[_0x496164('0xccd')][_0x496164('0x2088')]({'id':_0x3041a8['id']})[_0x496164('0x1549')][_0x496164('0x11bf')](function(){const _0x270ab8=_0x496164;_0x20b0db(),_0x29a4f8&&_0x37b811[_0x270ab8('0x2693')]({'title':_0xab649c['instant'](_0x270ab8('0x255d'))});})['catch'](function(_0x42cb69){const _0x4a0953=_0x496164;if(_0x42cb69[_0x4a0953('0x4e8')]&&_0x42cb69[_0x4a0953('0x4e8')][_0x4a0953('0x120f')]&&_0x42cb69[_0x4a0953('0x4e8')][_0x4a0953('0x120f')][_0x4a0953('0x1e22')]){_0x17bd77[_0x4a0953('0x120f')]=_0x42cb69[_0x4a0953('0x4e8')][_0x4a0953('0x120f')]||[{'message':_0x42cb69[_0x4a0953('0xaab')](),'type':_0x4a0953('0x1c90')}];for(let _0x4f1362=0x0;_0x4f1362<_0x42cb69[_0x4a0953('0x4e8')]['errors'][_0x4a0953('0x1e22')];_0x4f1362++){_0x37b811[_0x4a0953('0x255')]({'title':_0x42cb69['data']['errors'][_0x4f1362][_0x4a0953('0x19fd')],'msg':_0x42cb69[_0x4a0953('0x4e8')]['errors'][_0x4f1362][_0x4a0953('0x1b86')]});}}else _0x37b811[_0x4a0953('0x255')]({'title':_0x42cb69[_0x4a0953('0xff9')]?_0x4a0953('0x574')+_0x42cb69[_0x4a0953('0xff9')]+'\x20-\x20'+_0x42cb69[_0x4a0953('0x212f')]:_0x4a0953('0x1c90'),'msg':_0x42cb69[_0x4a0953('0x4e8')]?JSON[_0x4a0953('0x3e')](_0x42cb69[_0x4a0953('0x4e8')]['message']):_0x42cb69[_0x4a0953('0x1b86')]||_0x42cb69['toString']()});});}function _0x1acbf3(){const _0x179d22=_0x4b8974,_0x145be6=angular['copy'](_0x17bd77[_0x179d22('0x222c')]);return _0x17bd77[_0x179d22('0x222c')]=[],_0x145be6;}function _0xe3356(_0x48949e){const _0x5f519c=_0x4b8974,_0x4570ae=_0x1fdcad[_0x5f519c('0x132b')]()[_0x5f519c('0x134b')](_0xab649c[_0x5f519c('0x10c2')](_0x5f519c('0x1814')))[_0x5f519c('0x252a')](_0xab649c[_0x5f519c('0x10c2')](_0x5f519c('0x27fa'),{'total':_0x17bd77[_0x5f519c('0x222c')][_0x5f519c('0x1e22')]}))[_0x5f519c('0xb2e')](_0x5f519c('0x1a10'))['targetEvent'](_0x48949e)['ok']('OK')[_0x5f519c('0x26c9')](_0xab649c['instant']('APP.CANCEL'));_0x1fdcad[_0x5f519c('0xb9')](_0x4570ae)['then'](function(){const _0x2cd73b=_0x5f519c;_0x17bd77[_0x2cd73b('0x222c')][_0x2cd73b('0x1f88')](function(_0x139b71){_0x5a926c(_0x139b71);}),_0x17bd77[_0x2cd73b('0x222c')]=[],_0x37b811[_0x2cd73b('0x2693')]({'title':_0xab649c['instant']('TOOLS.NOTIFICATIONS.CONDITIONS_DELETED_SUCCESS_TITLE')});});}let _0x5121b1=!![],_0x58aad6=0x1;_0x48639f['$watch'](_0x4b8974('0x1d12'),function(_0x2e9848,_0x355df1){const _0x18db66=_0x4b8974;_0x5121b1?_0x139f92(function(){_0x5121b1=![];}):(!_0x355df1&&(_0x58aad6=_0x17bd77['query'][_0x18db66('0x1c2')]),_0x2e9848!==_0x355df1&&(_0x17bd77[_0x18db66('0x1f2a')][_0x18db66('0x1c2')]=0x1),!_0x2e9848&&(_0x17bd77[_0x18db66('0x1f2a')][_0x18db66('0x1c2')]=_0x58aad6),_0x20b0db());});}const _0x35c272=_0x11c086;_0x313c12['$inject']=[_0x21d0f5('0xcbc'),_0x21d0f5('0x1ca2'),'$q','$translate',_0x21d0f5('0x142d'),'allConditions','allCondition',_0x21d0f5('0x1be2'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),_0x21d0f5('0x17ff'),'setting','crudPermissions'];function _0x313c12(_0x159c20,_0x567a64,_0x35bccd,_0x408a8c,_0xc56009,_0x462773,_0x159f25,_0x1a2243,_0x5235dc,_0x3cf5b3,_0x5c3975,_0x2abb76,_0x1b6c38){const _0x15b2ea=_0x21d0f5,_0x2f9309=this;_0x2f9309[_0x15b2ea('0x32a')]=_0x3cf5b3[_0x15b2ea('0x2428')](),_0x2f9309[_0x15b2ea('0xd1')]=angular[_0x15b2ea('0x6fb')](_0x159f25),_0x2f9309[_0x15b2ea('0x10b4')]=angular[_0x15b2ea('0x6fb')](_0x462773),_0x2f9309[_0x15b2ea('0x23e1')]=_0x2abb76,_0x2f9309[_0x15b2ea('0x17ff')]=_0x5c3975,_0x2f9309[_0x15b2ea('0xb25')]=_0x1b6c38,_0x2f9309[_0x15b2ea('0x2c9')]={},_0x2f9309['newAllCondition']=![],_0x2f9309[_0x15b2ea('0x120f')]=[],_0x2f9309[_0x15b2ea('0x1be2')]=angular[_0x15b2ea('0x6fb')](_0x1a2243);!_0x2f9309[_0x15b2ea('0xd1')]?(_0x2f9309['allCondition']={'operator':'equals'},_0x2f9309[_0x15b2ea('0xff7')]=!![]):_0x457dbf();_0x2f9309[_0x15b2ea('0xd1')][_0x15b2ea('0x295')]=_0x159c20['params']['id']||undefined,_0x2f9309[_0x15b2ea('0x143')]=[{'name':_0x15b2ea('0x120d'),'value':'abandoned'},{'name':'Timeout','value':_0x15b2ea('0xfbe')},{'name':'Hangup','value':_0x15b2ea('0x695')},{'name':'Reject','value':'rejected'},{'name':_0x15b2ea('0x1c7a'),'value':_0x15b2ea('0x18cb')},{'name':_0x15b2ea('0x182b'),'value':'connect'},{'name':_0x15b2ea('0x19c2'),'value':_0x15b2ea('0x1060')},{'name':_0x15b2ea('0x3ea'),'value':_0x15b2ea('0x23a3')},{'name':'NoAnswer','value':_0x15b2ea('0x1ea')},{'name':'Congestion','value':_0x15b2ea('0x2145')},{'name':_0x15b2ea('0x983'),'value':_0x15b2ea('0xefa')}],_0x2f9309[_0x15b2ea('0x7da')]=_0x590b43,_0x2f9309[_0x15b2ea('0x196a')]=_0x3f10e5,_0x2f9309['saveAllCondition']=_0xfbe171,_0x2f9309[_0x15b2ea('0x1184')]=_0x558b99,_0x2f9309[_0x15b2ea('0xc4e')]=_0x425ca1;function _0x24ad8f(){const _0x13eb34=_0x15b2ea,_0x44255a=[{'id':0x191,'type':_0x13eb34('0x18a2')},{'id':0x5dd,'type':'outbound'}];let _0x2c4f26=null;_0x3cf5b3['isAdmin']()?_0x5235dc['voiceQueue']['get']({'fields':_0x13eb34('0xde'),'sort':_0x13eb34('0x1909'),'nolimit':_0x13eb34('0x204c')})[_0x13eb34('0x1549')][_0x13eb34('0x11bf')](function(_0x29f419){const _0x58cf54=_0x13eb34;_0x2f9309[_0x58cf54('0x1de3')]=_0x29f419[_0x58cf54('0x19b2')]||[];})['catch'](function(_0x25cdbc){const _0x3748ca=_0x13eb34;_0xc56009['error']({'title':_0x25cdbc[_0x3748ca('0xff9')]?'API:'+_0x25cdbc[_0x3748ca('0xff9')]+_0x3748ca('0xb0b')+_0x25cdbc['statusText']:'SYSTEM:GET_VOICEQUEUES','msg':_0x25cdbc[_0x3748ca('0x4e8')]?JSON[_0x3748ca('0x3e')](_0x25cdbc['data']):_0x25cdbc[_0x3748ca('0xaab')]()});}):_0x5235dc[_0x13eb34('0x1043')][_0x13eb34('0xbaa')]({'fields':'id,name,type','sort':'name','nolimit':_0x13eb34('0x204c')})[_0x13eb34('0x1549')]['then'](function(_0x3d82d3){_0x2c4f26=_0x3d82d3['rows']||[];})[_0x13eb34('0x11bf')](function(){const _0x16aaa8=_0x13eb34,_0x1cdcf2=[];for(let _0x576d0b=0x0;_0x576d0b<_0x44255a[_0x16aaa8('0x1e22')];_0x576d0b++){_0x1cdcf2[_0x16aaa8('0x105d')](_0x5235dc[_0x16aaa8('0x1d63')]['get']({'userProfileId':_0x2f9309[_0x16aaa8('0x32a')][_0x16aaa8('0x781')],'sectionId':_0x44255a[_0x576d0b]['id']})[_0x16aaa8('0x1549')]);}return _0x35bccd[_0x16aaa8('0x7c')](_0x1cdcf2);})[_0x13eb34('0x11bf')](function(_0x40e5a8){const _0x1f0e34=_0x13eb34,_0x2a7121=_0x36f548()[_0x1f0e34('0x2171')](_0x40e5a8,function(_0x476e6c){const _0x3f4b3c=_0x1f0e34;return _0x476e6c&&_0x476e6c[_0x3f4b3c('0x19b2')]?_0x476e6c[_0x3f4b3c('0x19b2')][0x0]:null;}),_0x50714d=[];for(let _0x275477=0x0;_0x275477<_0x44255a['length'];_0x275477++){const _0xb3c283=_0x36f548()[_0x1f0e34('0x1ad4')](_0x2a7121,[_0x1f0e34('0x24b2'),_0x44255a[_0x275477]['id']]);if(_0xb3c283){if(!_0xb3c283[_0x1f0e34('0xf11')])_0x50714d[_0x1f0e34('0x105d')](_0x5235dc['userProfileResource'][_0x1f0e34('0xbaa')]({'sectionId':_0xb3c283['id']})[_0x1f0e34('0x1549')]);else{const _0x5e5c3a=[];_0x2c4f26[_0x1f0e34('0x1f88')](function(_0x5f573a){const _0x248001=_0x1f0e34;_0x5f573a['type']===_0x44255a[_0x275477][_0x248001('0x19fd')]&&_0x5e5c3a[_0x248001('0x105d')](_0x5f573a);}),_0x50714d[_0x1f0e34('0x105d')]({'rows':_0x5e5c3a,'count':_0x5e5c3a[_0x1f0e34('0x1e22')]});}}}return _0x35bccd[_0x1f0e34('0x7c')](_0x50714d);})[_0x13eb34('0x11bf')](function(_0x1d0030){const _0x2ad97d=_0x13eb34,_0x5139cd=[],_0x31b14a=[];_0x2f9309[_0x2ad97d('0x1344')][_0x2ad97d('0x19b2')]['forEach'](function(_0x3e36b6){const _0x566084=_0x2ad97d;if(_0x3e36b6[_0x566084('0x485')]===_0x566084('0x150b')){const _0x48a861=_0x36f548()[_0x566084('0x1ad4')](_0x2c4f26,{'name':_0x3e36b6['value']});_0x31b14a[_0x566084('0x105d')](_0x48a861);}});for(let _0x1bc4ce=0x0;_0x1bc4ce<_0x1d0030[_0x2ad97d('0x1e22')];_0x1bc4ce++){const _0xabfbad=_0x1d0030[_0x1bc4ce][_0x2ad97d('0x19b2')]||[];_0xabfbad[_0x2ad97d('0x1f88')](function(_0xf77b97){_0x5139cd['push'](_0xf77b97);});}!_0x36f548()[_0x2ad97d('0x1fc5')](_0x31b14a)&&_0x31b14a[_0x2ad97d('0x1f88')](function(_0x5f3bb6){const _0x49f88b=_0x2ad97d;if(!_0x36f548()[_0x49f88b('0x1cb3')](_0x5139cd,['resourceId',_0x5f3bb6['id']])){const _0xae5566=_0x36f548()['find'](_0x2c4f26,{'id':_0x5f3bb6['id']});_0xae5566['canSelect']=![],_0x5139cd[_0x49f88b('0x105d')](_0xae5566);}}),_0x2f9309[_0x2ad97d('0x1de3')]=_0x5139cd;})['catch'](function(_0x1d7dce){const _0x234db9=_0x13eb34;_0xc56009[_0x234db9('0x255')]({'title':_0x1d7dce[_0x234db9('0xff9')]?'API:'+_0x1d7dce['status']+_0x234db9('0xb0b')+_0x1d7dce['statusText']:_0x234db9('0x23e0'),'msg':_0x1d7dce['data']?JSON['stringify'](_0x1d7dce[_0x234db9('0x4e8')]):_0x1d7dce[_0x234db9('0xaab')]()});});}function _0x53322d(){const _0x88f582=_0x15b2ea;_0x3cf5b3[_0x88f582('0x14e0')]()?_0x5235dc['voiceExtension']['get']({'fields':'id,exten','type':_0x88f582('0x25b6'),'VoiceExtensionId':_0x88f582('0xb5f'),'nolimit':'true'})['$promise']['then'](function(_0x4c0a8f){_0x2f9309['outboundRoutes']=_0x4c0a8f['rows']||[];})[_0x88f582('0x151d')](function(_0x45c874){const _0x1d6032=_0x88f582;_0xc56009[_0x1d6032('0x255')]({'title':_0x45c874['status']?_0x1d6032('0x574')+_0x45c874[_0x1d6032('0xff9')]+_0x1d6032('0xb0b')+_0x45c874[_0x1d6032('0x212f')]:_0x1d6032('0x20fa'),'msg':_0x45c874[_0x1d6032('0x4e8')]?JSON[_0x1d6032('0x3e')](_0x45c874['data']):_0x45c874[_0x1d6032('0xaab')]()});}):_0x5235dc[_0x88f582('0x417')][_0x88f582('0xbaa')]({'fields':'id,exten','type':_0x88f582('0x25b6'),'VoiceExtensionId':_0x88f582('0xb5f'),'nolimit':_0x88f582('0x204c')})[_0x88f582('0x1549')][_0x88f582('0x11bf')](function(_0xcbb6d){const _0x2dc337=_0x88f582;_0x2f9309[_0x2dc337('0x1d02')]=_0xcbb6d[_0x2dc337('0x19b2')]||[];})['then'](function(){const _0x47d12b=_0x88f582;return _0x5235dc[_0x47d12b('0x1d63')]['get']({'userProfileId':_0x2f9309[_0x47d12b('0x32a')][_0x47d12b('0x781')],'sectionId':0x193})[_0x47d12b('0x1549')];})[_0x88f582('0x11bf')](function(_0x52fcc2){const _0x38c877=_0x88f582,_0x1cd8c6=_0x52fcc2&&_0x52fcc2['rows']?_0x52fcc2[_0x38c877('0x19b2')][0x0]:null;if(!_0x1cd8c6){const _0x4da0ca=[],_0xb6c53b=[];_0x2f9309[_0x38c877('0x1344')][_0x38c877('0x19b2')]['forEach'](function(_0x504267){const _0x33ceb4=_0x38c877;if(_0x504267[_0x33ceb4('0x485')]===_0x33ceb4('0x2077')){const _0xec4adc=_0x36f548()[_0x33ceb4('0x1ad4')](_0x2f9309[_0x33ceb4('0x1d02')],{'id':Number(_0x504267['value'])});_0xb6c53b[_0x33ceb4('0x105d')](_0xec4adc);}});for(let _0x420a28=0x0;_0x420a28<_0x2f9309['outboundRoutes'][_0x38c877('0x1e22')];_0x420a28++){const _0x3668c1=_0x36f548()[_0x38c877('0x1cb3')](_0xb6c53b,{'id':_0x2f9309['outboundRoutes'][_0x420a28]['id']});_0x3668c1&&(_0x2f9309[_0x38c877('0x1d02')][_0x420a28]['canSelect']=![],_0x4da0ca[_0x38c877('0x105d')](_0x2f9309['outboundRoutes'][_0x420a28]));}_0x2f9309[_0x38c877('0x1d02')]=_0x4da0ca;}else{if(!_0x1cd8c6['autoAssociation'])return _0x5235dc[_0x38c877('0x26d1')][_0x38c877('0xbaa')]({'sectionId':_0x1cd8c6['id']})[_0x38c877('0x1549')][_0x38c877('0x11bf')](function(_0x21dfce){const _0x510bec=_0x38c877,_0x45491f=_0x36f548()[_0x510bec('0x2171')](_0x21dfce[_0x510bec('0x19b2')],function(_0x466b13){const _0x24aca8=_0x510bec;return _0x36f548()['find'](_0x2f9309['outboundRoutes'],{'id':_0x466b13[_0x24aca8('0x15a5')]});});let _0x287acb=null;_0x287acb=[],_0x2f9309[_0x510bec('0x1344')][_0x510bec('0x19b2')]['forEach'](function(_0x5d9952){const _0x1e02d8=_0x510bec;if(_0x5d9952[_0x1e02d8('0x485')]===_0x1e02d8('0x2077')){const _0x56260c=_0x36f548()[_0x1e02d8('0x1ad4')](_0x2f9309[_0x1e02d8('0x1d02')],{'id':Number(_0x5d9952[_0x1e02d8('0x10cc')])});_0x287acb[_0x1e02d8('0x105d')](_0x56260c);}}),!_0x36f548()[_0x510bec('0x1fc5')](_0x287acb)&&_0x287acb['forEach'](function(_0x3b32e6){const _0x41ea92=_0x510bec;if(!_0x36f548()[_0x41ea92('0x1cb3')](_0x45491f,['id',_0x3b32e6['id']])){const _0x458316=_0x36f548()[_0x41ea92('0x1ad4')](_0x2f9309['outboundRoutes'],{'id':_0x3b32e6['id']});_0x458316[_0x41ea92('0x254a')]=![],_0x45491f[_0x41ea92('0x105d')](_0x458316);}}),_0x2f9309[_0x510bec('0x1d02')]=_0x45491f;});}})['catch'](function(_0x5a98c2){const _0x2847d0=_0x88f582;_0xc56009[_0x2847d0('0x255')]({'title':_0x5a98c2[_0x2847d0('0xff9')]?'API:'+_0x5a98c2[_0x2847d0('0xff9')]+_0x2847d0('0xb0b')+_0x5a98c2[_0x2847d0('0x212f')]:'SYSTEM:GET_OUTBOUNDROUTES','msg':_0x5a98c2[_0x2847d0('0x4e8')]?JSON[_0x2847d0('0x3e')](_0x5a98c2[_0x2847d0('0x4e8')]):_0x5a98c2[_0x2847d0('0xaab')]()});});}function _0x8bee8c(){const _0x47ce20=_0x15b2ea;_0x3cf5b3[_0x47ce20('0x14e0')]()?_0x5235dc[_0x47ce20('0x21d9')][_0x47ce20('0xbaa')]({'fields':_0x47ce20('0x919'),'sort':_0x47ce20('0x1909'),'role':_0x47ce20('0x18c4'),'nolimit':_0x47ce20('0x204c')})['$promise'][_0x47ce20('0x11bf')](function(_0x586860){const _0x1d980c=_0x47ce20;_0x2f9309[_0x1d980c('0x1401')]=_0x586860[_0x1d980c('0x19b2')]||[];})[_0x47ce20('0x151d')](function(_0x46bb63){const _0x5e5b30=_0x47ce20;_0xc56009[_0x5e5b30('0x255')]({'title':_0x46bb63[_0x5e5b30('0xff9')]?_0x5e5b30('0x574')+_0x46bb63['status']+_0x5e5b30('0xb0b')+_0x46bb63[_0x5e5b30('0x212f')]:_0x5e5b30('0x912'),'msg':_0x46bb63[_0x5e5b30('0x4e8')]?JSON[_0x5e5b30('0x3e')](_0x46bb63[_0x5e5b30('0x4e8')]):_0x46bb63[_0x5e5b30('0xaab')]()});}):_0x5235dc['user'][_0x47ce20('0xbaa')]({'fields':_0x47ce20('0x919'),'sort':'name','role':_0x47ce20('0x18c4'),'nolimit':_0x47ce20('0x204c')})[_0x47ce20('0x1549')][_0x47ce20('0x11bf')](function(_0x50a14b){const _0x4df8af=_0x47ce20;_0x2f9309[_0x4df8af('0x1401')]=_0x50a14b[_0x4df8af('0x19b2')]||[];})[_0x47ce20('0x11bf')](function(){const _0x909012=_0x47ce20;return _0x5235dc[_0x909012('0x1d63')][_0x909012('0xbaa')]({'userProfileId':_0x2f9309[_0x909012('0x32a')][_0x909012('0x781')],'sectionId':0xca})['$promise'];})[_0x47ce20('0x11bf')](function(_0x3b57c4){const _0x933604=_0x47ce20,_0x1cec8c=_0x3b57c4&&_0x3b57c4[_0x933604('0x19b2')]?_0x3b57c4[_0x933604('0x19b2')][0x0]:null;if(!_0x1cec8c){const _0x161620=[],_0x92e017=[];_0x2f9309['triggerallConditions'][_0x933604('0x19b2')][_0x933604('0x1f88')](function(_0x2b64e8){const _0x4fce2b=_0x933604;if(_0x2b64e8['field']==='agent'){const _0x325240=_0x36f548()[_0x4fce2b('0x1ad4')](_0x2f9309[_0x4fce2b('0x1401')],{'name':_0x2b64e8[_0x4fce2b('0x10cc')]});_0x92e017['push'](_0x325240);}});for(let _0x24f3c8=0x0;_0x24f3c8<_0x2f9309[_0x933604('0x1401')][_0x933604('0x1e22')];_0x24f3c8++){const _0x2e3dc8=_0x36f548()[_0x933604('0x1cb3')](_0x92e017,{'id':_0x2f9309['agents'][_0x24f3c8]['id']});_0x2e3dc8&&(_0x2f9309[_0x933604('0x1401')][_0x24f3c8][_0x933604('0x254a')]=![],_0x161620[_0x933604('0x105d')](_0x2f9309['agents'][_0x24f3c8]));}_0x2f9309[_0x933604('0x1401')]=_0x161620;}else{if(!_0x1cec8c[_0x933604('0xf11')])return _0x5235dc[_0x933604('0x26d1')][_0x933604('0xbaa')]({'sectionId':_0x1cec8c['id']})['$promise'][_0x933604('0x11bf')](function(_0x2a1247){const _0x61f81d=_0x933604,_0xe1711d=_0x36f548()[_0x61f81d('0x2171')](_0x2a1247[_0x61f81d('0x19b2')],function(_0x5008ae){const _0x5965f4=_0x61f81d;return _0x36f548()['find'](_0x2f9309[_0x5965f4('0x1401')],{'id':_0x5008ae[_0x5965f4('0x15a5')]});});let _0x36770d=null;_0x36770d=[],_0x2f9309[_0x61f81d('0x1344')][_0x61f81d('0x19b2')][_0x61f81d('0x1f88')](function(_0x60a15){const _0x1e2c17=_0x61f81d;if(_0x60a15[_0x1e2c17('0x485')]===_0x1e2c17('0x18c4')){const _0x1cde3f=_0x36f548()[_0x1e2c17('0x1ad4')](_0x2f9309[_0x1e2c17('0x1401')],{'name':_0x60a15[_0x1e2c17('0x10cc')]});_0x36770d[_0x1e2c17('0x105d')](_0x1cde3f);}}),!_0x36f548()[_0x61f81d('0x1fc5')](_0x36770d)&&_0x36770d[_0x61f81d('0x1f88')](function(_0x1a7312){const _0x237945=_0x61f81d;if(!_0x36f548()[_0x237945('0x1cb3')](_0xe1711d,['id',_0x1a7312['id']])){const _0x276562=_0x36f548()[_0x237945('0x1ad4')](_0x2f9309['agents'],{'id':_0x1a7312['id']});_0x276562['canSelect']=![],_0xe1711d[_0x237945('0x105d')](_0x276562);}}),_0x2f9309['agents']=_0xe1711d;});}})['catch'](function(_0x2d6d8d){const _0x81c40d=_0x47ce20;_0xc56009[_0x81c40d('0x255')]({'title':_0x2d6d8d[_0x81c40d('0xff9')]?'API:'+_0x2d6d8d[_0x81c40d('0xff9')]+_0x81c40d('0xb0b')+_0x2d6d8d['statusText']:_0x81c40d('0x912'),'msg':_0x2d6d8d[_0x81c40d('0x4e8')]?JSON[_0x81c40d('0x3e')](_0x2d6d8d[_0x81c40d('0x4e8')]):_0x2d6d8d[_0x81c40d('0xaab')]()});});}function _0x3ea9e3(){const _0x389a18=_0x15b2ea,_0x19b502=_0x2f9309['trigger'][_0x389a18('0xd12')]+(_0x2f9309[_0x389a18('0x1be2')][_0x389a18('0xd12')]===_0x389a18('0x1800')?_0x389a18('0x20a7'):_0x389a18('0x1e3c'));let _0x9e7719;switch(_0x2f9309[_0x389a18('0x1be2')]['channel']){case _0x389a18('0x1800'):_0x9e7719=0x1f6;break;case _0x389a18('0x2104'):_0x9e7719=0x386;break;case'mail':_0x9e7719=0x25a;break;case _0x389a18('0xb18'):_0x9e7719=0x322;break;case _0x389a18('0x4df'):_0x9e7719=0x2be;break;case _0x389a18('0xe7c'):_0x9e7719=0x836;break;}if(_0x3cf5b3[_0x389a18('0x14e0')]()){const _0x446059=_0x2f9309[_0x389a18('0x1be2')][_0x389a18('0xd12')];_0x5235dc[_0x19b502][_0x389a18('0xbaa')]({'fields':_0x389a18('0x721'),'sort':'id','nolimit':_0x389a18('0x204c')})[_0x389a18('0x1549')][_0x389a18('0x11bf')](function(_0x100798){const _0x595a6f=_0x389a18;_0x2f9309[_0x595a6f('0x1064')]=_0x100798[_0x595a6f('0x19b2')]||[];})[_0x389a18('0x151d')](function(_0x1f542c){const _0x2a8631=_0x389a18;_0xc56009[_0x2a8631('0x255')]({'title':_0x1f542c['status']?'API:'+_0x1f542c[_0x2a8631('0xff9')]+'\x20-\x20'+_0x1f542c['statusText']:_0x2a8631('0x13a3')+_0x446059[_0x2a8631('0xa6f')]()+_0x446059==='chat'?_0x2a8631('0x1f0'):_0x2a8631('0x126c'),'msg':_0x1f542c[_0x2a8631('0x4e8')]?JSON[_0x2a8631('0x3e')](_0x1f542c[_0x2a8631('0x4e8')]):_0x1f542c[_0x2a8631('0xaab')]()});});}else _0x5235dc[_0x19b502][_0x389a18('0xbaa')]({'fields':_0x389a18('0x721'),'sort':'id','nolimit':_0x389a18('0x204c')})[_0x389a18('0x1549')][_0x389a18('0x11bf')](function(_0x568218){_0x2f9309['accounts']=_0x568218['rows']||[];})[_0x389a18('0x11bf')](function(){const _0x17d5dd=_0x389a18;return _0x5235dc['userProfileSection']['get']({'userProfileId':_0x2f9309['currentUser'][_0x17d5dd('0x781')],'sectionId':_0x9e7719})['$promise'];})[_0x389a18('0x11bf')](function(_0xceac6c){const _0x581577=_0x389a18,_0x313f4c=_0xceac6c&&_0xceac6c[_0x581577('0x19b2')]?_0xceac6c[_0x581577('0x19b2')][0x0]:null;if(!_0x313f4c){const _0x4491c0=[],_0x16c860=[];_0x2f9309[_0x581577('0x1344')][_0x581577('0x19b2')][_0x581577('0x1f88')](function(_0x3ff7fe){const _0x16f9c1=_0x581577;if(_0x3ff7fe[_0x16f9c1('0x485')]===_0x16f9c1('0x2565')){const _0x302641=_0x36f548()[_0x16f9c1('0x1ad4')](_0x2f9309[_0x16f9c1('0x1064')],{'id':Number(_0x3ff7fe[_0x16f9c1('0x10cc')])});_0x16c860[_0x16f9c1('0x105d')](_0x302641);}});for(let _0x510dcd=0x0;_0x510dcd<_0x2f9309['accounts'][_0x581577('0x1e22')];_0x510dcd++){const _0x494ef3=_0x36f548()[_0x581577('0x1cb3')](_0x16c860,{'id':_0x2f9309[_0x581577('0x1064')][_0x510dcd]['id']});_0x494ef3&&(_0x2f9309[_0x581577('0x1064')][_0x510dcd][_0x581577('0x254a')]=![],_0x4491c0[_0x581577('0x105d')](_0x2f9309[_0x581577('0x1064')][_0x510dcd]));}_0x2f9309[_0x581577('0x1064')]=_0x4491c0;}else{if(!_0x313f4c[_0x581577('0xf11')])return _0x5235dc['userProfileResource'][_0x581577('0xbaa')]({'sectionId':_0x313f4c['id']})[_0x581577('0x1549')][_0x581577('0x11bf')](function(_0x50febe){const _0x31c3cf=_0x581577,_0x406762=_0x36f548()['map'](_0x50febe[_0x31c3cf('0x19b2')],function(_0xf82c5a){const _0x311ae7=_0x31c3cf;return _0x36f548()['find'](_0x2f9309[_0x311ae7('0x1064')],{'id':_0xf82c5a[_0x311ae7('0x15a5')]});});let _0x16e9ba=null;_0x16e9ba=[],_0x2f9309[_0x31c3cf('0x1344')][_0x31c3cf('0x19b2')][_0x31c3cf('0x1f88')](function(_0x3beee5){const _0x2898f8=_0x31c3cf;if(_0x3beee5[_0x2898f8('0x485')]===_0x2898f8('0x2565')){const _0x58bc97=_0x36f548()[_0x2898f8('0x1ad4')](_0x2f9309['accounts'],{'id':Number(_0x3beee5['value'])});_0x16e9ba['push'](_0x58bc97);}}),!_0x36f548()['isEmpty'](_0x16e9ba)&&_0x16e9ba[_0x31c3cf('0x1f88')](function(_0x53e19a){const _0x1e3841=_0x31c3cf;if(!_0x36f548()['some'](_0x406762,['id',_0x53e19a['id']])){const _0x3d56d3=_0x36f548()[_0x1e3841('0x1ad4')](_0x2f9309['accounts'],{'id':_0x53e19a['id']});_0x3d56d3['canSelect']=![],_0x406762[_0x1e3841('0x105d')](_0x3d56d3);}}),_0x2f9309[_0x31c3cf('0x1064')]=_0x406762;});}})[_0x389a18('0x151d')](function(_0x2be623){const _0x3f359f=_0x389a18,_0x1ebf72=_0x2f9309[_0x3f359f('0x1be2')][_0x3f359f('0xd12')];_0xc56009['error']({'title':_0x2be623['status']?_0x3f359f('0x574')+_0x2be623[_0x3f359f('0xff9')]+_0x3f359f('0xb0b')+_0x2be623[_0x3f359f('0x212f')]:_0x3f359f('0x13a3')+_0x1ebf72[_0x3f359f('0xa6f')]()+_0x1ebf72==='chat'?_0x3f359f('0x1f0'):_0x3f359f('0x126c'),'msg':_0x2be623['data']?JSON[_0x3f359f('0x3e')](_0x2be623[_0x3f359f('0x4e8')]):_0x2be623['toString']()});});}function _0x457dbf(){const _0x4a2f81=_0x15b2ea;switch(_0x2f9309['allCondition']['field']){case _0x4a2f81('0x150b'):if(!_0x2f9309[_0x4a2f81('0x1de3')])_0x24ad8f();break;case _0x4a2f81('0x2077'):if(!_0x2f9309[_0x4a2f81('0x1d02')])_0x53322d();break;case'agent':if(!_0x2f9309['agents'])_0x8bee8c();break;case'account':_0x3ea9e3();break;}}function _0x590b43(){_0x457dbf();}function _0x3f10e5(){const _0x580541=_0x15b2ea;_0x2f9309['errors']=[],_0x5235dc[_0x580541('0x1be2')][_0x580541('0x832')]({'id':_0x159c20[_0x580541('0x1ab3')]['id']},_0x2f9309[_0x580541('0xd1')])[_0x580541('0x1549')][_0x580541('0x11bf')](function(_0x6bf870){const _0x487ff1=_0x580541;_0x2f9309[_0x487ff1('0x10b4')][_0x487ff1('0x880')](_0x6bf870[_0x487ff1('0x2866')]()),_0xc56009['success']({'title':_0x408a8c['instant'](_0x487ff1('0x209b'))}),_0x425ca1(_0x2f9309[_0x487ff1('0x10b4')]);})[_0x580541('0x151d')](function(_0x4f6f5b){const _0x2a455b=_0x580541;if(_0x4f6f5b[_0x2a455b('0x4e8')]&&_0x4f6f5b['data'][_0x2a455b('0x120f')]&&_0x4f6f5b['data'][_0x2a455b('0x120f')]['length']){_0x2f9309[_0x2a455b('0x120f')]=_0x4f6f5b['data'][_0x2a455b('0x120f')]||[{'message':_0x4f6f5b[_0x2a455b('0xaab')](),'type':_0x2a455b('0x6dc')}];for(let _0x322790=0x0;_0x322790<_0x4f6f5b[_0x2a455b('0x4e8')]['errors']['length'];_0x322790+=0x1){_0xc56009['error']({'title':_0x4f6f5b[_0x2a455b('0x4e8')]['errors'][_0x322790][_0x2a455b('0x19fd')],'msg':_0x4f6f5b[_0x2a455b('0x4e8')]['errors'][_0x322790][_0x2a455b('0x1b86')]});}}else _0xc56009[_0x2a455b('0x255')]({'title':_0x4f6f5b['status']?_0x2a455b('0x574')+_0x4f6f5b['status']+_0x2a455b('0xb0b')+_0x4f6f5b[_0x2a455b('0x212f')]:_0x2a455b('0x6dc'),'msg':_0x4f6f5b[_0x2a455b('0x4e8')]?JSON[_0x2a455b('0x3e')](_0x4f6f5b[_0x2a455b('0x4e8')][_0x2a455b('0x1b86')]):_0x4f6f5b[_0x2a455b('0xaab')]()});});}function _0xfbe171(){const _0x30763c=_0x15b2ea;_0x2f9309[_0x30763c('0x120f')]=[],_0x5235dc[_0x30763c('0xccd')][_0x30763c('0x5ab')]({'id':_0x2f9309[_0x30763c('0xd1')]['id']},_0x2f9309[_0x30763c('0xd1')])['$promise'][_0x30763c('0x11bf')](function(){const _0xf47cf9=_0x30763c;_0x2f9309[_0xf47cf9('0x10b4')]=_0x36f548()['map'](_0x2f9309[_0xf47cf9('0x10b4')],function(_0x194bbf){const _0x211790=_0xf47cf9;if(_0x194bbf['id']===_0x2f9309[_0x211790('0xd1')]['id'])return _0x2f9309[_0x211790('0xd1')];else return _0x194bbf;}),_0xc56009[_0xf47cf9('0x2693')]({'title':_0x408a8c[_0xf47cf9('0x10c2')](_0xf47cf9('0x1400'))}),_0x425ca1(_0x2f9309[_0xf47cf9('0x10b4')]);})[_0x30763c('0x151d')](function(_0x4d1bd8){const _0x1c885a=_0x30763c;if(_0x4d1bd8[_0x1c885a('0x4e8')]&&_0x4d1bd8[_0x1c885a('0x4e8')]['errors']&&_0x4d1bd8['data'][_0x1c885a('0x120f')][_0x1c885a('0x1e22')]){_0x2f9309[_0x1c885a('0x120f')]=_0x4d1bd8[_0x1c885a('0x4e8')][_0x1c885a('0x120f')]||[{'message':_0x4d1bd8[_0x1c885a('0xaab')](),'type':_0x1c885a('0x9d3')}];for(let _0x3e7ecc=0x0;_0x3e7ecc<_0x4d1bd8[_0x1c885a('0x4e8')][_0x1c885a('0x120f')]['length'];_0x3e7ecc++){_0xc56009['error']({'title':_0x4d1bd8[_0x1c885a('0x4e8')][_0x1c885a('0x120f')][_0x3e7ecc]['type'],'msg':_0x4d1bd8[_0x1c885a('0x4e8')][_0x1c885a('0x120f')][_0x3e7ecc][_0x1c885a('0x1b86')]});}}else _0xc56009['error']({'title':_0x4d1bd8[_0x1c885a('0xff9')]?_0x1c885a('0x574')+_0x4d1bd8[_0x1c885a('0xff9')]+_0x1c885a('0xb0b')+_0x4d1bd8[_0x1c885a('0x212f')]:'api.condition.update','msg':_0x4d1bd8[_0x1c885a('0x4e8')]?JSON[_0x1c885a('0x3e')](_0x4d1bd8[_0x1c885a('0x4e8')]['message']):_0x4d1bd8[_0x1c885a('0xaab')]()});});}function _0x558b99(_0x2081b5){const _0x26a2c0=_0x15b2ea;_0x2f9309[_0x26a2c0('0x120f')]=[];const _0x9cabaf=_0x567a64[_0x26a2c0('0x132b')]({'skipHide':!![]})[_0x26a2c0('0x134b')](_0x408a8c[_0x26a2c0('0x10c2')](_0x26a2c0('0x9b6')))[_0x26a2c0('0xb2e')]('Delete\x20condition')['ok'](_0x408a8c[_0x26a2c0('0x10c2')]('APP.DELETE'))[_0x26a2c0('0x26c9')](_0x408a8c[_0x26a2c0('0x10c2')](_0x26a2c0('0xa5d')))[_0x26a2c0('0x1e25')](_0x2081b5);_0x567a64['show'](_0x9cabaf)[_0x26a2c0('0x11bf')](function(){const _0x4387f9=_0x26a2c0;_0x5235dc[_0x4387f9('0xccd')]['delete']({'id':_0x2f9309[_0x4387f9('0xd1')]['id']})[_0x4387f9('0x1549')]['then'](function(){const _0x1710ba=_0x4387f9;_0x2f9309[_0x1710ba('0x10b4')]=_0x36f548()[_0x1710ba('0xdb4')](_0x2f9309[_0x1710ba('0x10b4')],function(_0x682d58){const _0x1b1cb2=_0x1710ba;return _0x682d58['id']!==_0x2f9309[_0x1b1cb2('0xd1')]['id'];}),_0xc56009[_0x1710ba('0x2693')]({'title':_0x408a8c['instant'](_0x1710ba('0x255d'))}),_0x425ca1(_0x2f9309[_0x1710ba('0x10b4')]);})[_0x4387f9('0x151d')](function(_0x2f2fe7){const _0x2e9b60=_0x4387f9;if(_0x2f2fe7['data']&&_0x2f2fe7['data'][_0x2e9b60('0x120f')]&&_0x2f2fe7[_0x2e9b60('0x4e8')][_0x2e9b60('0x120f')][_0x2e9b60('0x1e22')]){_0x2f9309['errors']=_0x2f2fe7[_0x2e9b60('0x4e8')]['errors']||[{'message':_0x2f2fe7['toString'](),'type':'api.condition.delete'}];for(let _0x5ef32c=0x0;_0x5ef32c<_0x2f2fe7[_0x2e9b60('0x4e8')]['errors']['length'];_0x5ef32c++){_0xc56009[_0x2e9b60('0x255')]({'title':_0x2f2fe7[_0x2e9b60('0x4e8')][_0x2e9b60('0x120f')][_0x5ef32c][_0x2e9b60('0x19fd')],'msg':_0x2f2fe7[_0x2e9b60('0x4e8')][_0x2e9b60('0x120f')][_0x5ef32c]['message']});}}else _0xc56009[_0x2e9b60('0x255')]({'title':_0x2f2fe7[_0x2e9b60('0xff9')]?'API:'+_0x2f2fe7[_0x2e9b60('0xff9')]+_0x2e9b60('0xb0b')+_0x2f2fe7[_0x2e9b60('0x212f')]:'api.condition.delete','msg':_0x2f2fe7[_0x2e9b60('0x4e8')]?JSON['stringify'](_0x2f2fe7[_0x2e9b60('0x4e8')][_0x2e9b60('0x1b86')]):_0x2f2fe7['message']||_0x2f2fe7['toString']()});});},function(){});}function _0x425ca1(_0xb81e11){const _0x2e884d=_0x15b2ea;_0x567a64[_0x2e884d('0x237e')](_0xb81e11);}}const _0x5f0376=_0x313c12;_0x3a4cf2[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0xcbc'),_0x21d0f5('0xb6b'),_0x21d0f5('0x17ff'),'setting',_0x21d0f5('0x12a5'),_0x21d0f5('0x142d'),_0x21d0f5('0x1150'),_0x21d0f5('0x1be2'),_0x21d0f5('0x1d63')];function _0x3a4cf2(_0x4cdca7,_0x2f024d,_0x301a9a,_0x484ea5,_0x4e16e9,_0x2ff03b,_0x2b9b88,_0x556bd3,_0x1e42cd){const _0x31b233=_0x21d0f5,_0x287a34=this;_0x287a34[_0x31b233('0x32a')]=_0x2b9b88[_0x31b233('0x2428')](),_0x287a34[_0x31b233('0x17ff')]=_0x301a9a,_0x287a34[_0x31b233('0x23e1')]=_0x484ea5,_0x287a34[_0x31b233('0x1be2')]=_0x556bd3||_0x4cdca7[_0x31b233('0x1ab3')][_0x31b233('0x1be2')]||{},_0x287a34['selectedTab']=_0x4cdca7[_0x31b233('0x1ab3')][_0x31b233('0x205c')]||0x0;_0x4cdca7[_0x31b233('0x1ab3')][_0x31b233('0xb25')]?_0x287a34[_0x31b233('0xb25')]=_0x4cdca7['params'][_0x31b233('0xb25')]:(_0x287a34['userProfileSection']=_0x1e42cd&&_0x1e42cd[_0x31b233('0x27d2')]==0x1?_0x1e42cd['rows'][0x0]:null,_0x287a34[_0x31b233('0xb25')]=_0x2b9b88['parseCrudPermissions'](_0x287a34['userProfileSection']?_0x287a34['userProfileSection'][_0x31b233('0xb25')]:null));_0x287a34[_0x31b233('0x15e1')]=_0x5052d6,_0x287a34[_0x31b233('0x44d')]=_0x2b60ed;function _0x5052d6(){const _0x3349e6=_0x31b233;_0x4cdca7['go'](_0x3349e6('0x1bca'),{},{'reload':_0x3349e6('0x1bca')});}function _0x2b60ed(){const _0x3fb1d2=_0x31b233;_0x4e16e9[_0x3fb1d2('0x1be2')][_0x3fb1d2('0x5ab')]({'id':_0x287a34[_0x3fb1d2('0x1be2')]['id']},_0x287a34[_0x3fb1d2('0x1be2')])[_0x3fb1d2('0x1549')][_0x3fb1d2('0x11bf')](function(){const _0x5c2f68=_0x3fb1d2;_0x2ff03b[_0x5c2f68('0x2693')]({'title':_0x2f024d[_0x5c2f68('0x10c2')](_0x5c2f68('0xd59'))});})[_0x3fb1d2('0x151d')](function(_0x4e066f){const _0x4807bd=_0x3fb1d2;_0x2ff03b['error']({'title':_0x4e066f[_0x4807bd('0xff9')]?_0x4807bd('0x574')+_0x4e066f['status']+_0x4807bd('0xb0b')+_0x4e066f['statusText']:_0x4807bd('0x1c90'),'msg':_0x4e066f[_0x4807bd('0x4e8')]?JSON[_0x4807bd('0x3e')](_0x4e066f[_0x4807bd('0x4e8')]):_0x4e066f[_0x4807bd('0xaab')]()});});}}const _0x122a3c=_0x3a4cf2,_0x9a280c=_0x351988['p']+_0x21d0f5('0x9a3');_0xc4ebbc[_0x21d0f5('0x1e9a')]=['$scope','$state',_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),_0x21d0f5('0x17f5'),_0x21d0f5('0xb6b'),'triggers',_0x21d0f5('0x25bc'),_0x21d0f5('0x1d63'),'api',_0x21d0f5('0x142d'),_0x21d0f5('0x1150'),_0x21d0f5('0x17ff'),'setting'];function _0xc4ebbc(_0x5bbbc4,_0x28ec2f,_0x16493a,_0x34544a,_0x291d35,_0x405cae,_0x5b6d08,_0xff3c32,_0x2f1ef2,_0x5f41c6,_0x55c44f,_0x2eaf39,_0xc7a967,_0x3d123c){const _0x5248cc=_0x21d0f5,_0x476ab3=this;_0x476ab3[_0x5248cc('0x17ff')]=_0xc7a967,_0x476ab3['setting']=_0x3d123c,_0x476ab3[_0x5248cc('0x32a')]=_0x2eaf39[_0x5248cc('0x2428')](),_0x476ab3[_0x5248cc('0xdec')]=_0x5b6d08||{'count':0x0,'rows':[]},_0x476ab3['userProfile']=_0xff3c32,_0x476ab3[_0x5248cc('0x1d63')]=_0x2f1ef2&&_0x2f1ef2[_0x5248cc('0x27d2')]==0x1?_0x2f1ef2[_0x5248cc('0x19b2')][0x0]:null,_0x476ab3[_0x5248cc('0xb25')]=_0x2eaf39[_0x5248cc('0x1530')](_0x476ab3[_0x5248cc('0x1d63')]?_0x476ab3[_0x5248cc('0x1d63')]['crudPermissions']:null),_0x476ab3[_0x5248cc('0xcc3')]=[],_0x476ab3[_0x5248cc('0x1f2a')]={'fields':_0x5248cc('0x24eb'),'sort':_0x5248cc('0x1c74'),'limit':0xa,'page':0x1},_0x476ab3['goToEditState']=_0xd5bee3,_0x476ab3[_0x5248cc('0xcb8')]=_0x569649,_0x476ab3['success']=_0xc79516,_0x476ab3[_0x5248cc('0x2415')]=_0x5e7ac5,_0x476ab3[_0x5248cc('0x549')]=_0x47fe11,_0x476ab3[_0x5248cc('0xf24')]=_0x562910,_0x476ab3[_0x5248cc('0x1b19')]=_0x302445,_0x476ab3[_0x5248cc('0x86e')]=_0x372326,_0x476ab3[_0x5248cc('0x2208')]=_0xf7126;function _0xd5bee3(_0x315a6a){const _0x325223=_0x5248cc;_0x28ec2f['go']('app.tools.triggers.edit',{'id':_0x315a6a['id'],'trigger':_0x315a6a,'crudPermissions':_0x476ab3[_0x325223('0xb25')]});}function _0x569649(_0x13e66e,_0x1a1c79){const _0x2463c0=_0x5248cc;if(_0x476ab3['crudPermissions'][_0x2463c0('0x285e')]||_0x476ab3[_0x2463c0('0xb25')][_0x2463c0('0x1d3d')]&&!_0x476ab3[_0x2463c0('0xb25')][_0x2463c0('0x25db')]){_0xd5bee3(_0x1a1c79);return;}_0x16493a[_0x2463c0('0xb9')]({'controller':'CreateOrEditTriggerDialogController','controllerAs':'vm','templateUrl':_0x9a280c,'parent':angular[_0x2463c0('0x1e73')](_0x34544a[_0x2463c0('0x1d2')]),'targetEvent':_0x13e66e,'clickOutsideToClose':!![],'locals':{'trigger':_0x1a1c79,'triggers':_0x476ab3[_0x2463c0('0xdec')]['rows'],'license':_0x476ab3[_0x2463c0('0x17ff')],'setting':_0x476ab3[_0x2463c0('0x23e1')],'crudPermissions':_0x476ab3[_0x2463c0('0xb25')]}})[_0x2463c0('0x11bf')](function(_0xdeffc3){const _0x479e91=_0x2463c0;_0xdeffc3&&(_0x476ab3[_0x479e91('0xdec')]={'count':_0xdeffc3[_0x479e91('0x1e22')],'rows':_0xdeffc3});});}function _0xc79516(_0x4f0f02){_0x476ab3['triggers']=_0x4f0f02||{'count':0x0,'rows':[]};}function _0x5e7ac5(){const _0xfea5d1=_0x5248cc;_0x476ab3[_0xfea5d1('0x1f2a')][_0xfea5d1('0x1393')]=(_0x476ab3['query']['page']-0x1)*_0x476ab3[_0xfea5d1('0x1f2a')][_0xfea5d1('0xd5c')],_0x2eaf39[_0xfea5d1('0x14e0')]()?_0x476ab3[_0xfea5d1('0x13f')]=_0x5f41c6[_0xfea5d1('0x1be2')][_0xfea5d1('0xbaa')](_0x476ab3['query'],_0xc79516)[_0xfea5d1('0x1549')]:(_0x476ab3[_0xfea5d1('0x1f2a')]['id']=_0x476ab3[_0xfea5d1('0x25bc')]['id'],_0x476ab3['query']['section']=_0xfea5d1('0x123a'),_0x476ab3['promise']=_0x5f41c6['userProfile']['getResources'](_0x476ab3[_0xfea5d1('0x1f2a')],_0xc79516)['$promise']);}function _0x47fe11(_0x4fc762,_0x2b8009){const _0x1e1646=_0x5248cc,_0x13f1b=_0x16493a['confirm']()[_0x1e1646('0x134b')](_0x405cae[_0x1e1646('0x10c2')](_0x1e1646('0x535')))[_0x1e1646('0x252a')](_0x405cae[_0x1e1646('0x10c2')](_0x1e1646('0x1ca'),{'name':_0x4fc762[_0x1e1646('0x1909')]}))[_0x1e1646('0xb2e')](_0x1e1646('0x1e06'))[_0x1e1646('0x1e25')](_0x2b8009)['ok']('OK')[_0x1e1646('0x26c9')](_0x405cae[_0x1e1646('0x10c2')](_0x1e1646('0xa5d')));_0x16493a[_0x1e1646('0xb9')](_0x13f1b)[_0x1e1646('0x11bf')](function(){_0x1e77aa(_0x4fc762,!![]);});}function _0x1e77aa(_0x489477,_0x1f971d){const _0x18d22b=_0x5248cc;_0x5f41c6[_0x18d22b('0x1be2')][_0x18d22b('0x2088')]({'id':_0x489477['id']})[_0x18d22b('0x1549')][_0x18d22b('0x11bf')](function(){const _0x2ad2c0=_0x18d22b;_0x5e7ac5(),_0x1f971d&&_0x55c44f[_0x2ad2c0('0x2693')]({'title':_0x405cae[_0x2ad2c0('0x10c2')](_0x2ad2c0('0x1a7a'))});})['catch'](function(_0x144f12){const _0x2eda52=_0x18d22b;if(_0x144f12[_0x2eda52('0x4e8')]&&_0x144f12[_0x2eda52('0x4e8')][_0x2eda52('0x120f')]&&_0x144f12[_0x2eda52('0x4e8')]['errors']['length']){_0x476ab3[_0x2eda52('0x120f')]=_0x144f12[_0x2eda52('0x4e8')][_0x2eda52('0x120f')]||[{'message':_0x144f12[_0x2eda52('0xaab')](),'type':_0x2eda52('0x14cb')}];for(let _0x28dd39=0x0;_0x28dd39<_0x144f12['data'][_0x2eda52('0x120f')]['length'];_0x28dd39++){_0x55c44f[_0x2eda52('0x255')]({'title':_0x144f12[_0x2eda52('0x4e8')][_0x2eda52('0x120f')][_0x28dd39]['type'],'msg':_0x144f12[_0x2eda52('0x4e8')][_0x2eda52('0x120f')][_0x28dd39][_0x2eda52('0x1b86')]});}}else _0x55c44f['error']({'title':_0x144f12['status']?_0x2eda52('0x574')+_0x144f12[_0x2eda52('0xff9')]+_0x2eda52('0xb0b')+_0x144f12[_0x2eda52('0x212f')]:'SYSTEM:DELETEtrigger','msg':_0x144f12['data']?JSON[_0x2eda52('0x3e')](_0x144f12['data']['message']):_0x144f12[_0x2eda52('0x1b86')]||_0x144f12[_0x2eda52('0xaab')]()});});}function _0x562910(){const _0x3094bb=_0x5248cc,_0x1ddbda=angular[_0x3094bb('0x6fb')](_0x476ab3[_0x3094bb('0xcc3')]);return _0x476ab3[_0x3094bb('0xcc3')]=[],_0x1ddbda;}function _0x302445(_0x313726){const _0x3d9c7f=_0x5248cc,_0x3fbb00=_0x16493a[_0x3d9c7f('0x132b')]()[_0x3d9c7f('0x134b')](_0x405cae[_0x3d9c7f('0x10c2')](_0x3d9c7f('0x2633')))[_0x3d9c7f('0x252a')](_0x405cae['instant'](_0x3d9c7f('0x1081'),{'total':_0x476ab3[_0x3d9c7f('0xcc3')][_0x3d9c7f('0x1e22')]}))[_0x3d9c7f('0xb2e')](_0x3d9c7f('0x1c33'))['targetEvent'](_0x313726)['ok']('OK')[_0x3d9c7f('0x26c9')](_0x405cae[_0x3d9c7f('0x10c2')](_0x3d9c7f('0xa5d')));_0x16493a['show'](_0x3fbb00)[_0x3d9c7f('0x11bf')](function(){const _0x18a77e=_0x3d9c7f;_0x476ab3[_0x18a77e('0xcc3')]['forEach'](function(_0x507696){_0x1e77aa(_0x507696);}),_0x476ab3[_0x18a77e('0xcc3')]=[],_0x55c44f['success']({'title':_0x405cae[_0x18a77e('0x10c2')](_0x18a77e('0x587'))});});}function _0x372326(){const _0x11a924=_0x5248cc;_0x476ab3[_0x11a924('0xcc3')]=[];}function _0xf7126(){const _0x5041a4=_0x5248cc;_0x476ab3[_0x5041a4('0xcc3')]=_0x476ab3[_0x5041a4('0xdec')][_0x5041a4('0x19b2')];}let _0x97a2c8=!![],_0x2d1d1a=0x1;_0x5bbbc4[_0x5248cc('0x2087')](_0x5248cc('0x842'),function(_0xe7b762,_0x23d953){const _0x581168=_0x5248cc;_0x97a2c8?_0x291d35(function(){_0x97a2c8=![];}):(!_0x23d953&&(_0x2d1d1a=_0x476ab3[_0x581168('0x1f2a')][_0x581168('0x1c2')]),_0xe7b762!==_0x23d953&&(_0x476ab3[_0x581168('0x1f2a')][_0x581168('0x1c2')]=0x1),!_0xe7b762&&(_0x476ab3[_0x581168('0x1f2a')][_0x581168('0x1c2')]=_0x2d1d1a),_0x5e7ac5());});}const _0x2364d7=_0xc4ebbc;_0x25369[_0x21d0f5('0x1e9a')]=['$stateProvider'];function _0x25369(_0x79af87){const _0x3d1739=_0x21d0f5;_0x79af87['state'](_0x3d1739('0x1bca'),{'url':_0x3d1739('0x1dfa'),'views':{'content@app':{'templateUrl':_0x4adc56,'controller':_0x3d1739('0x286a')}},'resolve':{'triggers':['apiResolver',_0x3d1739('0x1150'),function(_0x382b89,_0x5459f0){const _0x400982=_0x3d1739;return _0x5459f0[_0x400982('0x4ee')](_0x400982('0xf45'))?_0x382b89[_0x400982('0xa28')](_0x400982('0x1708'),{'fields':_0x400982('0x47e'),'sort':_0x400982('0x1c74'),'limit':0xa,'offset':0x0}):_0x382b89[_0x400982('0xa28')](_0x400982('0xb0d'),{'id':_0x5459f0[_0x400982('0x2428')]()[_0x400982('0x781')],'section':'Triggers','fields':_0x400982('0x47e'),'sort':_0x400982('0x1c74'),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x3d1739('0x1150'),function(_0xf7ddd6,_0x407cbf){const _0x451340=_0x3d1739;return _0x407cbf[_0x451340('0x4ee')]('admin')?null:_0xf7ddd6[_0x451340('0xa28')](_0x451340('0x428'),{'fields':_0x451340('0xd30'),'id':_0x407cbf[_0x451340('0x2428')]()[_0x451340('0x781')]});}],'userProfileSection':[_0x3d1739('0x218e'),_0x3d1739('0x1150'),function(_0x5b63d5,_0x86bc0){const _0x33906b=_0x3d1739;return _0x86bc0[_0x33906b('0x4ee')]('admin')?null:_0x5b63d5[_0x33906b('0xa28')](_0x33906b('0x2762'),{'fields':_0x33906b('0x36d'),'userProfileId':_0x86bc0[_0x33906b('0x2428')]()[_0x33906b('0x781')],'sectionId':0x3f2});}]},'authenticate':!![],'permissionId':0x3f2,'bodyClass':'tools'})[_0x3d1739('0x2124')](_0x3d1739('0x1f2c'),{'url':_0x3d1739('0x142b'),'params':{'trigger':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x4792e7,'controller':_0x3d1739('0x6d3')}},'resolve':{'trigger':[_0x3d1739('0x218e'),_0x3d1739('0x1573'),function(_0x58e74b,_0x34a5e1){const _0xde145e=_0x3d1739;return _0x58e74b[_0xde145e('0xa28')]('trigger@get',{'fields':_0xde145e('0x47e'),'id':_0x34a5e1['id']});}],'userProfileSection':['apiResolver',_0x3d1739('0x1150'),function(_0x17708a,_0x3b8b1c){const _0x3575c5=_0x3d1739;return _0x17708a['resolve']('userProfileSection@get',{'fields':_0x3575c5('0x36d'),'userProfileId':_0x3b8b1c[_0x3575c5('0x2428')]()[_0x3575c5('0x781')],'sectionId':0x3f2});}]},'authenticate':!![],'permissionId':0x3f2,'bodyClass':_0x3d1739('0x12')});}angular[_0x21d0f5('0x2768')]('app.tools.triggers',[])['config'](_0x25369)[_0x21d0f5('0x23eb')](_0x21d0f5('0x2699'),_0x401288)[_0x21d0f5('0x23eb')]('TriggerActionsController',_0x69121d)[_0x21d0f5('0x23eb')]('CreateOrEditActionDialogController',_0x5b321b)[_0x21d0f5('0x23eb')](_0x21d0f5('0x754'),_0x590589)[_0x21d0f5('0x23eb')](_0x21d0f5('0x161d'),_0x414acc)['controller']('TriggerAnyConditionsController',_0x35c272)[_0x21d0f5('0x23eb')](_0x21d0f5('0xf6c'),_0x5f0376)[_0x21d0f5('0x23eb')]('TriggerController',_0x122a3c)[_0x21d0f5('0x23eb')](_0x21d0f5('0x23e4'),_0x2364d7);const _0x43438f=_0x351988['p']+_0x21d0f5('0x10e2'),_0x57f8f9=_0x351988['p']+_0x21d0f5('0xf59'),_0x5929a2=_0x351988['p']+_0x21d0f5('0x1816'),_0x55a483=_0x351988['p']+'src/js/modules/main/apps/tools/views/intervals/intervals.html/intervals.html',_0x5b196b=_0x351988['p']+'src/js/modules/main/apps/tools/views/intervals/edit/view.html/view.html',_0x39a22d=_0x351988['p']+_0x21d0f5('0x1072'),_0x252aeb=_0x351988['p']+_0x21d0f5('0x2803'),_0x25d0b7=_0x351988['p']+_0x21d0f5('0x1ea2'),_0x5652dd=_0x351988['p']+_0x21d0f5('0x1496'),_0x221337=_0x351988['p']+_0x21d0f5('0x13ce'),_0x1ddff0=_0x351988['p']+_0x21d0f5('0x315'),_0x13412d=_0x351988['p']+_0x21d0f5('0x1f85'),_0x99c124=_0x351988['p']+_0x21d0f5('0x24e9'),_0x54c494=_0x351988['p']+_0x21d0f5('0x684');_0x504614['$inject']=[_0x21d0f5('0x1b80'),_0x21d0f5('0x2143'),_0x21d0f5('0xcbc'),_0x21d0f5('0x18fe'),_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),_0x21d0f5('0x17f5'),'$translate',_0x21d0f5('0x2523'),_0x21d0f5('0x25bc'),_0x21d0f5('0x1d63'),_0x21d0f5('0x12a5'),_0x21d0f5('0xda9'),'toasty',_0x21d0f5('0x1150'),'license',_0x21d0f5('0x23e1')];function _0x504614(_0x267d22,_0x416c3d,_0x47d191,_0x1d691d,_0x3e473e,_0x33cd20,_0x3fdf51,_0x39083f,_0x438e23,_0x506f39,_0x57e1f6,_0x3f0e83,_0x405d97,_0x11af9d,_0x4fa0d4,_0x3f61b0,_0x3ce85f){const _0x548554=_0x21d0f5,_0x9926cd=this;_0x9926cd[_0x548554('0x17ff')]=_0x3f61b0,_0x9926cd['setting']=_0x3ce85f,_0x9926cd['currentUser']=_0x4fa0d4[_0x548554('0x2428')](),_0x9926cd[_0x548554('0x2523')]=_0x438e23||{'count':0x0,'rows':[]},_0x9926cd[_0x548554('0x25bc')]=_0x506f39,_0x9926cd['userProfileSection']=_0x57e1f6&&_0x57e1f6[_0x548554('0x27d2')]==0x1?_0x57e1f6[_0x548554('0x19b2')][0x0]:null,_0x9926cd[_0x548554('0xb25')]=_0x4fa0d4[_0x548554('0x1530')](_0x9926cd['userProfileSection']?_0x9926cd[_0x548554('0x1d63')][_0x548554('0xb25')]:null),_0x9926cd['table']=_0x548554('0x2523'),_0x9926cd[_0x548554('0x724')]='',_0x9926cd[_0x548554('0xe3c')]=null,_0x9926cd[_0x548554('0x1283')]=[],_0x9926cd[_0x548554('0x1f2a')]={'fields':_0x548554('0x1cb4'),'sort':_0x548554('0x1c74'),'MailAccountId':_0x548554('0xb5f'),'FaxAccountId':_0x548554('0xb5f'),'SmsAccountId':_0x548554('0xb5f'),'OpenchannelAccountId':_0x548554('0xb5f'),'ChatWebsiteId':_0x548554('0xb5f'),'limit':0xa,'page':0x1},_0x9926cd[_0x548554('0xc03')]=_0x59f1d7,_0x9926cd['deleteconfirm']=_0x5532a2,_0x9926cd[_0x548554('0x2693')]=_0x4be8a8,_0x9926cd[_0x548554('0x21f')]=_0x254eac,_0x9926cd[_0x548554('0x173d')]=_0x1395f4,_0x9926cd[_0x548554('0xf13')]=_0x30d9fc,_0x9926cd[_0x548554('0xb74')]=_0x85089a,_0x9926cd[_0x548554('0x730')]=_0x7da732,_0x9926cd[_0x548554('0x2379')]=_0x1f415f,_0x9926cd[_0x548554('0x1d51')]=_0x961561;function _0x59f1d7(_0x202cf3,_0x182a53){const _0x5e11ce=_0x548554;_0x3e473e[_0x5e11ce('0xb9')]({'controller':'CreateOrEditCannedAnswerDialogController','controllerAs':'vm','templateUrl':_0x54c494,'parent':angular[_0x5e11ce('0x1e73')](_0x33cd20[_0x5e11ce('0x1d2')]),'targetEvent':_0x182a53,'clickOutsideToClose':!![],'locals':{'cannedAnswer':_0x202cf3,'cannedAnswers':_0x9926cd[_0x5e11ce('0x2523')][_0x5e11ce('0x19b2')],'license':_0x9926cd[_0x5e11ce('0x17ff')],'setting':null,'crudPermissions':_0x9926cd[_0x5e11ce('0xb25')]}});}function _0x5532a2(_0x504258,_0x7d995b){const _0x491f22=_0x548554,_0x1dd6a3=_0x3e473e[_0x491f22('0x132b')]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x36f548()[_0x491f22('0x13cf')](_0x491f22('0x81'))+'?')[_0x491f22('0x1d03')](_0x491f22('0x2061')+(_0x504258[_0x491f22('0x1909')]||_0x491f22('0x81'))+_0x491f22('0x1c78')+_0x491f22('0x1a'))[_0x491f22('0xb2e')](_0x491f22('0x2702'))[_0x491f22('0x1e25')](_0x7d995b)['ok']('OK')[_0x491f22('0x26c9')](_0x491f22('0x772'));_0x3e473e[_0x491f22('0xb9')](_0x1dd6a3)[_0x491f22('0x11bf')](function(){_0x30d9fc(_0x504258);},function(){const _0x5e1bb3=_0x491f22;console[_0x5e1bb3('0xc78')](_0x5e1bb3('0x772'));});}let _0x533858=!![],_0x5d324d=0x1;_0x267d22[_0x548554('0x2087')]('vm.query.filter',function(_0x466138,_0x1d0959){const _0x6f4960=_0x548554;_0x533858?_0x3fdf51(function(){_0x533858=![];}):(!_0x1d0959&&(_0x5d324d=_0x9926cd[_0x6f4960('0x1f2a')]['page']),_0x466138!==_0x1d0959&&(_0x9926cd[_0x6f4960('0x1f2a')]['page']=0x1),!_0x466138&&(_0x9926cd[_0x6f4960('0x1f2a')][_0x6f4960('0x1c2')]=_0x5d324d),_0x9926cd[_0x6f4960('0x21f')]());});function _0x4be8a8(_0x5ef9b4){const _0x47e3de=_0x548554;_0x9926cd[_0x47e3de('0x2523')]=_0x5ef9b4||{'count':0x0,'rows':[]};}function _0x254eac(){const _0x5b3c71=_0x548554;_0x9926cd[_0x5b3c71('0x1f2a')]['offset']=(_0x9926cd['query'][_0x5b3c71('0x1c2')]-0x1)*_0x9926cd[_0x5b3c71('0x1f2a')][_0x5b3c71('0xd5c')],_0x4fa0d4[_0x5b3c71('0x4ee')](_0x5b3c71('0xf45'))?_0x9926cd[_0x5b3c71('0x13f')]=_0x3f0e83[_0x5b3c71('0x81')][_0x5b3c71('0xbaa')](_0x9926cd[_0x5b3c71('0x1f2a')],_0x4be8a8)['$promise']:(_0x9926cd[_0x5b3c71('0x1f2a')]['id']=_0x9926cd[_0x5b3c71('0x25bc')]['id'],_0x9926cd[_0x5b3c71('0x1f2a')][_0x5b3c71('0xe6')]=_0x5b3c71('0x1a4b'),_0x9926cd[_0x5b3c71('0x13f')]=_0x3f0e83[_0x5b3c71('0x25bc')][_0x5b3c71('0x228e')](_0x9926cd[_0x5b3c71('0x1f2a')],_0x4be8a8)[_0x5b3c71('0x1549')]);}function _0x1395f4(_0x2be8ba,_0x1f36fa){const _0x2dcaac=_0x548554;_0x3e473e[_0x2dcaac('0xb9')]({'controller':_0x2dcaac('0xf83'),'controllerAs':'vm','templateUrl':_0x54c494,'parent':angular[_0x2dcaac('0x1e73')](_0x33cd20[_0x2dcaac('0x1d2')]),'targetEvent':_0x2be8ba,'clickOutsideToClose':!![],'locals':{'cannedAnswer':_0x1f36fa,'cannedAnswers':_0x9926cd[_0x2dcaac('0x2523')][_0x2dcaac('0x19b2')],'license':_0x9926cd[_0x2dcaac('0x17ff')],'setting':_0x9926cd[_0x2dcaac('0x23e1')],'crudPermissions':_0x9926cd[_0x2dcaac('0xb25')]}});}function _0x30d9fc(_0x3d1246){const _0x110895=_0x548554;_0x3f0e83['cannedAnswer'][_0x110895('0x2088')]({'id':_0x3d1246['id']})['$promise'][_0x110895('0x11bf')](function(){const _0x4aacab=_0x110895;_0x36f548()[_0x4aacab('0x14a5')](_0x9926cd['cannedAnswers']['rows'],{'id':_0x3d1246['id']}),_0x9926cd['cannedAnswers'][_0x4aacab('0x27d2')]-=0x1,!_0x9926cd[_0x4aacab('0x2523')][_0x4aacab('0x19b2')][_0x4aacab('0x1e22')]&&_0x9926cd[_0x4aacab('0x21f')](),_0x11af9d['success']({'title':_0x36f548()['startCase'](_0x4aacab('0x419'))+_0x4aacab('0x2113'),'msg':_0x3d1246['name']?_0x3d1246[_0x4aacab('0x1909')]+_0x4aacab('0x433'):''});})['catch'](function(_0x29cd5d){const _0xa1b237=_0x110895;if(_0x29cd5d[_0xa1b237('0x4e8')]&&_0x29cd5d[_0xa1b237('0x4e8')]['errors']&&_0x29cd5d['data'][_0xa1b237('0x120f')][_0xa1b237('0x1e22')]){_0x9926cd[_0xa1b237('0x120f')]=_0x29cd5d[_0xa1b237('0x4e8')]['errors']||[{'message':_0x29cd5d[_0xa1b237('0xaab')](),'type':'SYSTEM:DELETEcannedAnswer'}];for(let _0x32fce1=0x0;_0x32fce1<_0x29cd5d['data'][_0xa1b237('0x120f')][_0xa1b237('0x1e22')];_0x32fce1++){_0x11af9d['error']({'title':_0x29cd5d[_0xa1b237('0x4e8')]['errors'][_0x32fce1]['type'],'msg':_0x29cd5d['data'][_0xa1b237('0x120f')][_0x32fce1][_0xa1b237('0x1b86')]});}}else _0x11af9d[_0xa1b237('0x255')]({'title':_0x29cd5d['status']?_0xa1b237('0x574')+_0x29cd5d['status']+_0xa1b237('0xb0b')+_0x29cd5d[_0xa1b237('0x212f')]:_0xa1b237('0x128f'),'msg':_0x29cd5d[_0xa1b237('0x4e8')]?JSON[_0xa1b237('0x3e')](_0x29cd5d['data'][_0xa1b237('0x1b86')]):_0x29cd5d[_0xa1b237('0x1b86')]||_0x29cd5d[_0xa1b237('0xaab')]()});});}function _0x85089a(){const _0x143613=_0x548554,_0x24d308=angular['copy'](_0x9926cd[_0x143613('0x1283')]);return _0x9926cd[_0x143613('0x1283')]=[],_0x24d308;}function _0x7da732(_0x49c59c){const _0x9e22c=_0x548554,_0x2c449b=_0x3e473e['confirm']()[_0x9e22c('0x134b')](_0x9e22c('0x4e2'))[_0x9e22c('0x1d03')](''+_0x9926cd[_0x9e22c('0x1283')][_0x9e22c('0x1e22')]+_0x9e22c('0xac6')+_0x9e22c('0x1a'))[_0x9e22c('0xb2e')](_0x9e22c('0x322'))[_0x9e22c('0x1e25')](_0x49c59c)['ok']('OK')[_0x9e22c('0x26c9')](_0x9e22c('0x772'));_0x3e473e['show'](_0x2c449b)[_0x9e22c('0x11bf')](function(){const _0x54638e=_0x9e22c;_0x9926cd[_0x54638e('0x1283')][_0x54638e('0x1f88')](function(_0x58db35){_0x30d9fc(_0x58db35);}),_0x9926cd[_0x54638e('0x1283')]=[];});}function _0x1f415f(){const _0x52b1b3=_0x548554;_0x9926cd[_0x52b1b3('0x1283')]=[];}function _0x961561(){const _0xc5025f=_0x548554;_0x9926cd['selectedCannedAnswers']=_0x9926cd['cannedAnswers'][_0xc5025f('0x19b2')];}}const _0x1ecf8f=_0x504614;_0x4ddb5f[_0x21d0f5('0x1e9a')]=['$scope','$state',_0x21d0f5('0x16b9'),_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0xb6b'),_0x21d0f5('0x142d'),_0x21d0f5('0x2523'),_0x21d0f5('0x81'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),'license','setting',_0x21d0f5('0xb25')];function _0x4ddb5f(_0x2bf3c9,_0x3c4b6f,_0x26ecd3,_0x4a4026,_0x2cac42,_0x225cb0,_0x563c91,_0x491218,_0x288cf6,_0x462be7,_0xe810f9,_0x5bd615,_0x4729cd,_0x6db31b){const _0x2bcbe4=_0x21d0f5,_0x4027e2=this;_0x4027e2['currentUser']=_0xe810f9['getCurrentUser'](),_0x4027e2[_0x2bcbe4('0x120f')]=[],_0x4027e2['setting']=_0x4729cd,_0x4027e2[_0x2bcbe4('0x17ff')]=_0x5bd615,_0x4027e2[_0x2bcbe4('0xb25')]=_0x6db31b,_0x4027e2['hasModulePermissions']={},_0x4027e2[_0x2bcbe4('0x2834')]=_0x4027e2[_0x2bcbe4('0x23e1')]&&_0x4027e2[_0x2bcbe4('0x23e1')][_0x2bcbe4('0x1d4')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x4027e2[_0x2bcbe4('0x134b')]=_0x2bcbe4('0x18cd'),_0x4027e2[_0x2bcbe4('0x81')]=angular[_0x2bcbe4('0x6fb')](_0x288cf6),_0x4027e2[_0x2bcbe4('0x2523')]=_0x491218,_0x4027e2[_0x2bcbe4('0x1109')]=![];!_0x4027e2[_0x2bcbe4('0x81')]&&(_0x4027e2[_0x2bcbe4('0x81')]={},_0x4027e2[_0x2bcbe4('0x134b')]=_0x2bcbe4('0x24d7'),_0x4027e2[_0x2bcbe4('0x1109')]=!![]);_0x4027e2[_0x2bcbe4('0x192d')]=_0x57fc95,_0x4027e2[_0x2bcbe4('0x1701')]=_0x5d88d8,_0x4027e2[_0x2bcbe4('0xf13')]=_0x53f3b3,_0x4027e2[_0x2bcbe4('0x1bd1')]=_0x31462a,_0x4027e2[_0x2bcbe4('0xc4e')]=_0xa28296;function _0x57fc95(){const _0x50feaa=_0x2bcbe4;_0x4027e2['errors']=[],_0x462be7[_0x50feaa('0x81')][_0x50feaa('0x259')](_0x4027e2[_0x50feaa('0x81')])[_0x50feaa('0x1549')][_0x50feaa('0x11bf')](function(_0x33e4d0){const _0x1d9fc8=_0x50feaa;_0x4027e2[_0x1d9fc8('0x2523')][_0x1d9fc8('0x880')](_0x33e4d0['toJSON']()),_0x563c91[_0x1d9fc8('0x2693')]({'title':_0x1d9fc8('0x99'),'msg':_0x4027e2['cannedAnswer'][_0x1d9fc8('0x1909')]?_0x4027e2[_0x1d9fc8('0x81')][_0x1d9fc8('0x1909')]+_0x1d9fc8('0x7fb'):''}),_0xa28296(_0x33e4d0);})[_0x50feaa('0x151d')](function(_0x169bcc){const _0x16dc42=_0x50feaa;if(_0x169bcc[_0x16dc42('0x4e8')]&&_0x169bcc[_0x16dc42('0x4e8')][_0x16dc42('0x120f')]&&_0x169bcc[_0x16dc42('0x4e8')][_0x16dc42('0x120f')]['length']){_0x4027e2[_0x16dc42('0x120f')]=_0x169bcc[_0x16dc42('0x4e8')]['errors']||[{'message':_0x169bcc[_0x16dc42('0xaab')](),'type':'api.cannedAnswer.save'}];for(let _0x4973d5=0x0;_0x4973d5<_0x169bcc[_0x16dc42('0x4e8')][_0x16dc42('0x120f')]['length'];_0x4973d5+=0x1){_0x563c91[_0x16dc42('0x255')]({'title':_0x169bcc['data'][_0x16dc42('0x120f')][_0x4973d5][_0x16dc42('0x19fd')],'msg':_0x169bcc[_0x16dc42('0x4e8')]['errors'][_0x4973d5][_0x16dc42('0x1b86')]});}}else _0x563c91[_0x16dc42('0x255')]({'title':_0x169bcc['status']?'API:'+_0x169bcc[_0x16dc42('0xff9')]+'\x20-\x20'+_0x169bcc[_0x16dc42('0x212f')]:_0x16dc42('0x23b5'),'msg':_0x169bcc['data']?JSON[_0x16dc42('0x3e')](_0x169bcc['data']['message']):_0x169bcc[_0x16dc42('0xaab')]()});});}function _0x5d88d8(){const _0x802967=_0x2bcbe4;_0x4027e2[_0x802967('0x120f')]=[],_0x462be7[_0x802967('0x81')][_0x802967('0x5ab')]({'id':_0x4027e2['cannedAnswer']['id']},_0x4027e2[_0x802967('0x81')])[_0x802967('0x1549')][_0x802967('0x11bf')](function(_0x514863){const _0x1bfc93=_0x802967,_0xada7c4=_0x36f548()['find'](_0x4027e2[_0x1bfc93('0x2523')],{'id':_0x514863['id']});_0xada7c4&&_0x36f548()[_0x1bfc93('0x47b')](_0xada7c4,_0x36f548()[_0x1bfc93('0x258')](_0x514863[_0x1bfc93('0x2866')](),_0x36f548()[_0x1bfc93('0xe22')](_0xada7c4))),_0x563c91[_0x1bfc93('0x2693')]({'title':_0x1bfc93('0x12fb'),'msg':_0x4027e2[_0x1bfc93('0x81')][_0x1bfc93('0x1909')]?_0x4027e2[_0x1bfc93('0x81')]['name']+'\x20has\x20been\x20saved!':''}),_0xa28296(_0x514863);})[_0x802967('0x151d')](function(_0x487abd){const _0x158d81=_0x802967;if(_0x487abd[_0x158d81('0x4e8')]&&_0x487abd[_0x158d81('0x4e8')][_0x158d81('0x120f')]&&_0x487abd[_0x158d81('0x4e8')][_0x158d81('0x120f')][_0x158d81('0x1e22')]){_0x4027e2[_0x158d81('0x120f')]=_0x487abd[_0x158d81('0x4e8')][_0x158d81('0x120f')]||[{'message':_0x487abd['toString'](),'type':'api.cannedAnswer.update'}];for(let _0x3c1c08=0x0;_0x3c1c08<_0x487abd['data'][_0x158d81('0x120f')][_0x158d81('0x1e22')];_0x3c1c08++){_0x563c91[_0x158d81('0x255')]({'title':_0x487abd['data']['errors'][_0x3c1c08]['type'],'msg':_0x487abd[_0x158d81('0x4e8')][_0x158d81('0x120f')][_0x3c1c08]['message']});}}else _0x563c91['error']({'title':_0x487abd[_0x158d81('0xff9')]?'API:'+_0x487abd[_0x158d81('0xff9')]+'\x20-\x20'+_0x487abd[_0x158d81('0x212f')]:_0x158d81('0x1698'),'msg':_0x487abd[_0x158d81('0x4e8')]?JSON[_0x158d81('0x3e')](_0x487abd['data'][_0x158d81('0x1b86')]):_0x487abd[_0x158d81('0xaab')]()});});}function _0x53f3b3(_0x23c39e){const _0x4ec482=_0x2bcbe4;_0x4027e2['errors']=[];const _0x375ddd=_0x4a4026[_0x4ec482('0x132b')]()['title'](_0x4ec482('0x1fa9'))[_0x4ec482('0x252a')](_0x4ec482('0x18d3'))[_0x4ec482('0xb2e')](_0x4ec482('0x159d'))['ok']('Delete')[_0x4ec482('0x26c9')]('Cancel')[_0x4ec482('0x1e25')](_0x23c39e);_0x4a4026[_0x4ec482('0xb9')](_0x375ddd)[_0x4ec482('0x11bf')](function(){const _0xc59bce=_0x4ec482;_0x462be7[_0xc59bce('0x81')]['delete']({'id':_0x4027e2[_0xc59bce('0x81')]['id']})['$promise'][_0xc59bce('0x11bf')](function(){const _0x9ee8e7=_0xc59bce;_0x36f548()[_0x9ee8e7('0x14a5')](_0x4027e2['cannedAnswers'],{'id':_0x4027e2[_0x9ee8e7('0x81')]['id']}),_0x563c91[_0x9ee8e7('0x2693')]({'title':'CannedAnswer\x20properly\x20deleted!','msg':(_0x4027e2[_0x9ee8e7('0x81')][_0x9ee8e7('0x1909')]||'cannedAnswer')+_0x9ee8e7('0x433')}),_0xa28296(_0x4027e2[_0x9ee8e7('0x81')]);})['catch'](function(_0x43f2a5){const _0x3612ee=_0xc59bce;if(_0x43f2a5[_0x3612ee('0x4e8')]&&_0x43f2a5[_0x3612ee('0x4e8')]['errors']&&_0x43f2a5[_0x3612ee('0x4e8')][_0x3612ee('0x120f')][_0x3612ee('0x1e22')]){_0x4027e2['errors']=_0x43f2a5[_0x3612ee('0x4e8')]['errors']||[{'message':_0x43f2a5[_0x3612ee('0xaab')](),'type':_0x3612ee('0x2279')}];for(let _0x5536d9=0x0;_0x5536d9<_0x43f2a5[_0x3612ee('0x4e8')][_0x3612ee('0x120f')][_0x3612ee('0x1e22')];_0x5536d9++){_0x563c91[_0x3612ee('0x255')]({'title':_0x43f2a5['data'][_0x3612ee('0x120f')][_0x5536d9][_0x3612ee('0x19fd')],'msg':_0x43f2a5[_0x3612ee('0x4e8')][_0x3612ee('0x120f')][_0x5536d9]['message']});}}else _0x563c91[_0x3612ee('0x255')]({'title':_0x43f2a5[_0x3612ee('0xff9')]?_0x3612ee('0x574')+_0x43f2a5[_0x3612ee('0xff9')]+_0x3612ee('0xb0b')+_0x43f2a5[_0x3612ee('0x212f')]:_0x3612ee('0x2279'),'msg':_0x43f2a5[_0x3612ee('0x4e8')]?JSON[_0x3612ee('0x3e')](_0x43f2a5['data'][_0x3612ee('0x1b86')]):_0x43f2a5['message']||_0x43f2a5[_0x3612ee('0xaab')]()});});},function(){});}function _0x31462a(_0x2c493e){return _0x2c493e===null?undefined:new Date(_0x2c493e);}function _0xa28296(_0x5b5e8d){const _0x248d3e=_0x2bcbe4;_0x4a4026[_0x248d3e('0x237e')](_0x5b5e8d);}}const _0x3d920f=_0x4ddb5f;_0x3eecd2[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0xcbc'),_0x21d0f5('0x16b9'),'$mdDialog','$q',_0x21d0f5('0xb6b'),_0x21d0f5('0x142d'),_0x21d0f5('0x15c8'),_0x21d0f5('0xc1a'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1'),'crudPermissions'];function _0x3eecd2(_0x2acb64,_0x13e798,_0x551355,_0x1b88a4,_0x4975ec,_0x192639,_0x26dc3a,_0x438971,_0x5b0314,_0x1b76bb,_0x1a7971,_0x519fe2,_0x4c93b7,_0x212624){const _0x127837=_0x21d0f5,_0x138a34=this;_0x138a34[_0x127837('0x32a')]=_0x1a7971['getCurrentUser'](),_0x138a34[_0x127837('0x120f')]=[],_0x138a34[_0x127837('0x23e1')]=_0x4c93b7,_0x138a34[_0x127837('0x17ff')]=_0x519fe2,_0x138a34[_0x127837('0xb25')]=_0x212624,_0x138a34[_0x127837('0x2c9')]={},_0x138a34[_0x127837('0x2834')]=_0x138a34[_0x127837('0x23e1')]&&_0x138a34[_0x127837('0x23e1')][_0x127837('0x1d4')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x138a34[_0x127837('0x134b')]=_0x127837('0x2169'),_0x138a34['customDashboard']=angular[_0x127837('0x6fb')](_0x5b0314),_0x138a34[_0x127837('0x15c8')]=_0x438971,_0x138a34['newCustomDashboard']=![];!_0x138a34[_0x127837('0xc1a')]&&(_0x138a34[_0x127837('0xc1a')]={},_0x138a34[_0x127837('0x134b')]='TOOLS.NEW_CUSTOMDASHBOARD',_0x138a34[_0x127837('0x426')]=!![]);_0x138a34['addNewCustomDashboard']=_0x3106a0,_0x138a34[_0x127837('0x2317')]=_0x533d0e,_0x138a34[_0x127837('0x1a35')]=_0x224baa,_0x138a34[_0x127837('0x1bd1')]=_0x3f2f18,_0x138a34[_0x127837('0xc4e')]=_0x2a5cfa;function _0x3106a0(){const _0x4c85a0=_0x127837;_0x138a34['errors']=[],_0x1b76bb[_0x4c85a0('0xdb9')][_0x4c85a0('0x259')](_0x138a34[_0x4c85a0('0xc1a')])[_0x4c85a0('0x1549')][_0x4c85a0('0x11bf')](function(_0x21e6e3){const _0x583895=_0x4c85a0;_0x138a34['customDashboards'][_0x583895('0x880')](_0x21e6e3['toJSON']()),_0x26dc3a[_0x583895('0x2693')]({'title':_0x583895('0xb2'),'msg':_0x138a34[_0x583895('0xc1a')][_0x583895('0x1909')]?_0x138a34[_0x583895('0xc1a')][_0x583895('0x1909')]+_0x583895('0x7fb'):''}),_0x2a5cfa(_0x21e6e3);})[_0x4c85a0('0x151d')](function(_0x57d9a6){const _0x42ee9f=_0x4c85a0;if(_0x57d9a6[_0x42ee9f('0x4e8')]&&_0x57d9a6['data'][_0x42ee9f('0x120f')]&&_0x57d9a6[_0x42ee9f('0x4e8')][_0x42ee9f('0x120f')]['length']){_0x138a34[_0x42ee9f('0x120f')]=_0x57d9a6[_0x42ee9f('0x4e8')][_0x42ee9f('0x120f')]||[{'message':_0x57d9a6[_0x42ee9f('0xaab')](),'type':_0x42ee9f('0x10f7')}];for(let _0x4d71d0=0x0;_0x4d71d0<_0x57d9a6[_0x42ee9f('0x4e8')]['errors'][_0x42ee9f('0x1e22')];_0x4d71d0+=0x1){_0x26dc3a[_0x42ee9f('0x255')]({'title':_0x57d9a6[_0x42ee9f('0x4e8')][_0x42ee9f('0x120f')][_0x4d71d0]['type'],'msg':_0x57d9a6['data'][_0x42ee9f('0x120f')][_0x4d71d0][_0x42ee9f('0x1b86')]});}}else _0x26dc3a[_0x42ee9f('0x255')]({'title':_0x57d9a6[_0x42ee9f('0xff9')]?_0x42ee9f('0x574')+_0x57d9a6[_0x42ee9f('0xff9')]+_0x42ee9f('0xb0b')+_0x57d9a6[_0x42ee9f('0x212f')]:'api.dashboard.save','msg':_0x57d9a6[_0x42ee9f('0x4e8')]?JSON[_0x42ee9f('0x3e')](_0x57d9a6[_0x42ee9f('0x4e8')][_0x42ee9f('0x1b86')]):_0x57d9a6['toString']()});});}function _0x533d0e(){const _0x3941e9=_0x127837;_0x138a34[_0x3941e9('0x120f')]=[],_0x1b76bb[_0x3941e9('0xdb9')][_0x3941e9('0x5ab')]({'id':_0x138a34['customDashboard']['id']},_0x138a34['customDashboard'])[_0x3941e9('0x1549')][_0x3941e9('0x11bf')](function(_0x11ed66){const _0x3b3a06=_0x3941e9,_0x2b6f6f=_0x36f548()[_0x3b3a06('0x1ad4')](_0x138a34[_0x3b3a06('0x15c8')],{'id':_0x11ed66['id']});_0x2b6f6f&&_0x36f548()[_0x3b3a06('0x47b')](_0x2b6f6f,_0x36f548()[_0x3b3a06('0x258')](_0x11ed66['toJSON'](),_0x36f548()[_0x3b3a06('0xe22')](_0x2b6f6f))),_0x26dc3a[_0x3b3a06('0x2693')]({'title':_0x3b3a06('0x160d'),'msg':_0x138a34[_0x3b3a06('0xc1a')][_0x3b3a06('0x1909')]?_0x138a34['customDashboard'][_0x3b3a06('0x1909')]+'\x20has\x20been\x20saved!':''}),_0x2a5cfa(_0x11ed66);})[_0x3941e9('0x151d')](function(_0x331a0c){const _0x41b5ae=_0x3941e9;if(_0x331a0c[_0x41b5ae('0x4e8')]&&_0x331a0c[_0x41b5ae('0x4e8')]['errors']&&_0x331a0c[_0x41b5ae('0x4e8')]['errors'][_0x41b5ae('0x1e22')]){_0x138a34[_0x41b5ae('0x120f')]=_0x331a0c[_0x41b5ae('0x4e8')][_0x41b5ae('0x120f')]||[{'message':_0x331a0c[_0x41b5ae('0xaab')](),'type':'api.dashboard.update'}];for(let _0x341279=0x0;_0x341279<_0x331a0c[_0x41b5ae('0x4e8')]['errors'][_0x41b5ae('0x1e22')];_0x341279++){_0x26dc3a[_0x41b5ae('0x255')]({'title':_0x331a0c[_0x41b5ae('0x4e8')][_0x41b5ae('0x120f')][_0x341279][_0x41b5ae('0x19fd')],'msg':_0x331a0c['data']['errors'][_0x341279][_0x41b5ae('0x1b86')]});}}else _0x26dc3a['error']({'title':_0x331a0c[_0x41b5ae('0xff9')]?_0x41b5ae('0x574')+_0x331a0c['status']+'\x20-\x20'+_0x331a0c[_0x41b5ae('0x212f')]:_0x41b5ae('0x1e9b'),'msg':_0x331a0c[_0x41b5ae('0x4e8')]?JSON[_0x41b5ae('0x3e')](_0x331a0c[_0x41b5ae('0x4e8')][_0x41b5ae('0x1b86')]):_0x331a0c[_0x41b5ae('0xaab')]()});});}function _0x224baa(_0x7c889a){const _0x4ffbde=_0x127837;_0x138a34['errors']=[];const _0x33ce4f=_0x1b88a4['confirm']()['title'](_0x4ffbde('0x1fa9'))[_0x4ffbde('0x252a')]('The\x20customDashboard\x20will\x20be\x20deleted.')['ariaLabel'](_0x4ffbde('0x2484'))['ok'](_0x4ffbde('0x1167'))[_0x4ffbde('0x26c9')](_0x4ffbde('0x784'))[_0x4ffbde('0x1e25')](_0x7c889a);_0x1b88a4['show'](_0x33ce4f)[_0x4ffbde('0x11bf')](function(){const _0xa4afc0=_0x4ffbde;_0x1b76bb[_0xa4afc0('0xdb9')][_0xa4afc0('0x2088')]({'id':_0x138a34[_0xa4afc0('0xc1a')]['id']})[_0xa4afc0('0x1549')]['then'](function(){const _0x5a050=_0xa4afc0;_0x36f548()[_0x5a050('0x14a5')](_0x138a34['customDashboards'],{'id':_0x138a34[_0x5a050('0xc1a')]['id']}),_0x26dc3a[_0x5a050('0x2693')]({'title':'CustomDashboard\x20properly\x20deleted!','msg':(_0x138a34['customDashboard'][_0x5a050('0x1909')]||_0x5a050('0xc1a'))+_0x5a050('0x433')}),_0x2a5cfa(_0x138a34['customDashboard']);})[_0xa4afc0('0x151d')](function(_0x561210){const _0x35438b=_0xa4afc0;if(_0x561210['data']&&_0x561210[_0x35438b('0x4e8')][_0x35438b('0x120f')]&&_0x561210[_0x35438b('0x4e8')][_0x35438b('0x120f')][_0x35438b('0x1e22')]){_0x138a34[_0x35438b('0x120f')]=_0x561210[_0x35438b('0x4e8')][_0x35438b('0x120f')]||[{'message':_0x561210[_0x35438b('0xaab')](),'type':'api.dashboard.delete'}];for(let _0x17729e=0x0;_0x17729e<_0x561210[_0x35438b('0x4e8')][_0x35438b('0x120f')][_0x35438b('0x1e22')];_0x17729e++){_0x26dc3a['error']({'title':_0x561210[_0x35438b('0x4e8')][_0x35438b('0x120f')][_0x17729e][_0x35438b('0x19fd')],'msg':_0x561210[_0x35438b('0x4e8')][_0x35438b('0x120f')][_0x17729e][_0x35438b('0x1b86')]});}}else _0x26dc3a[_0x35438b('0x255')]({'title':_0x561210['status']?_0x35438b('0x574')+_0x561210[_0x35438b('0xff9')]+_0x35438b('0xb0b')+_0x561210[_0x35438b('0x212f')]:_0x35438b('0x21db'),'msg':_0x561210[_0x35438b('0x4e8')]?JSON[_0x35438b('0x3e')](_0x561210[_0x35438b('0x4e8')][_0x35438b('0x1b86')]):_0x561210[_0x35438b('0x1b86')]||_0x561210[_0x35438b('0xaab')]()});});},function(){});}function _0x3f2f18(_0xd27d6a){return _0xd27d6a===null?undefined:new Date(_0xd27d6a);}function _0x2a5cfa(_0x476dc1){const _0x161e56=_0x127837;_0x1b88a4[_0x161e56('0x237e')](_0x476dc1);}}const _0x184f30=_0x3eecd2,_0x4b57cb=_0x351988['p']+_0x21d0f5('0x25a6');_0x8632f5[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0x2143'),_0x21d0f5('0xcbc'),_0x21d0f5('0x18fe'),_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),_0x21d0f5('0x17f5'),'$translate',_0x21d0f5('0x15c8'),_0x21d0f5('0x25bc'),_0x21d0f5('0x1d63'),_0x21d0f5('0x12a5'),_0x21d0f5('0xda9'),_0x21d0f5('0x142d'),'Auth',_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1')];function _0x8632f5(_0x51a7b1,_0x1bb61f,_0x4ce5cd,_0x5c88c6,_0x16c0ec,_0x599753,_0x2b3628,_0x396ef1,_0x192a56,_0x3ead14,_0x14a9bb,_0x37151f,_0x4b3ebb,_0x3a90cc,_0x145740,_0x56db1f,_0xf181ff){const _0x1d7b57=_0x21d0f5,_0x2d6e45=this;_0x2d6e45[_0x1d7b57('0x17ff')]=_0x56db1f,_0x2d6e45[_0x1d7b57('0x23e1')]=_0xf181ff,_0x2d6e45[_0x1d7b57('0x32a')]=_0x145740[_0x1d7b57('0x2428')](),_0x2d6e45['customDashboards']=_0x192a56||{'count':0x0,'rows':[]},_0x2d6e45['userProfile']=_0x3ead14,_0x2d6e45[_0x1d7b57('0x1d63')]=_0x14a9bb&&_0x14a9bb[_0x1d7b57('0x27d2')]==0x1?_0x14a9bb[_0x1d7b57('0x19b2')][0x0]:null,_0x2d6e45['crudPermissions']=_0x145740[_0x1d7b57('0x1530')](_0x2d6e45[_0x1d7b57('0x1d63')]?_0x2d6e45[_0x1d7b57('0x1d63')][_0x1d7b57('0xb25')]:null),_0x2d6e45['table']=_0x1d7b57('0x15c8'),_0x2d6e45['listOrder']='',_0x2d6e45[_0x1d7b57('0xe3c')]=null,_0x2d6e45[_0x1d7b57('0xc30')]=[],_0x2d6e45[_0x1d7b57('0x1f2a')]={'fields':'createdAt,updatedAt,id,name,description','sort':_0x1d7b57('0x1c74'),'limit':0xa,'page':0x1},_0x2d6e45['editstate']=_0x376405,_0x2d6e45['gotodashboardgoto']=_0x1da526,_0x2d6e45[_0x1d7b57('0x549')]=_0x1b4bc4,_0x2d6e45['success']=_0x41d8a8,_0x2d6e45[_0x1d7b57('0x1c72')]=_0xd0f124,_0x2d6e45['createOrEditCustomDashboard']=_0x2ea1cc,_0x2d6e45[_0x1d7b57('0x1a35')]=_0x188452,_0x2d6e45['exportSelectedCustomDashboards']=_0x3c719a,_0x2d6e45[_0x1d7b57('0x2386')]=_0x1fd1a7,_0x2d6e45[_0x1d7b57('0xb78')]=_0x4fa5bb,_0x2d6e45[_0x1d7b57('0x1de8')]=_0x1fd9f5;function _0x376405(_0x4c84bf){const _0x4e595b=_0x1d7b57;_0x4ce5cd['go']('app.tools.customDashboards.edit',{'id':_0x4c84bf['id'],'customDashboard':_0x4c84bf,'crudPermissions':_0x2d6e45[_0x4e595b('0xb25')]});}function _0x1da526(_0x5e4117){const _0x943788=_0x1d7b57;_0x4ce5cd['go'](_0x943788('0x214d'),{'id':_0x5e4117['id']});}function _0x1b4bc4(_0x1229be,_0x279239){const _0xe8e19b=_0x1d7b57,_0x68173e=_0x16c0ec['confirm']()['title'](_0xe8e19b('0x1796')+_0x36f548()[_0xe8e19b('0x13cf')](_0xe8e19b('0xc1a'))+'?')[_0xe8e19b('0x1d03')](_0xe8e19b('0x2061')+(_0x1229be['name']||_0xe8e19b('0xc1a'))+_0xe8e19b('0x1c78')+'\x20will\x20be\x20deleted.')['ariaLabel'](_0xe8e19b('0xf68'))['targetEvent'](_0x279239)['ok']('OK')[_0xe8e19b('0x26c9')]('CANCEL');_0x16c0ec[_0xe8e19b('0xb9')](_0x68173e)[_0xe8e19b('0x11bf')](function(){_0x188452(_0x1229be);},function(){const _0x2bf8b1=_0xe8e19b;console[_0x2bf8b1('0xc78')]('CANCEL');});}let _0x532950=!![],_0x20feac=0x1;_0x51a7b1[_0x1d7b57('0x2087')](_0x1d7b57('0x842'),function(_0x3c5da8,_0x31ad3e){const _0x2777a3=_0x1d7b57;_0x532950?_0x2b3628(function(){_0x532950=![];}):(!_0x31ad3e&&(_0x20feac=_0x2d6e45[_0x2777a3('0x1f2a')][_0x2777a3('0x1c2')]),_0x3c5da8!==_0x31ad3e&&(_0x2d6e45[_0x2777a3('0x1f2a')][_0x2777a3('0x1c2')]=0x1),!_0x3c5da8&&(_0x2d6e45[_0x2777a3('0x1f2a')][_0x2777a3('0x1c2')]=_0x20feac),_0x2d6e45[_0x2777a3('0x1c72')]());});function _0x41d8a8(_0x1159c3){_0x2d6e45['customDashboards']=_0x1159c3||{'count':0x0,'rows':[]};}function _0xd0f124(){const _0x57c624=_0x1d7b57;_0x2d6e45['query'][_0x57c624('0x1393')]=(_0x2d6e45['query'][_0x57c624('0x1c2')]-0x1)*_0x2d6e45[_0x57c624('0x1f2a')][_0x57c624('0xd5c')],_0x145740[_0x57c624('0x4ee')](_0x57c624('0xf45'))?_0x2d6e45[_0x57c624('0x13f')]=_0x37151f[_0x57c624('0xdb9')][_0x57c624('0xbaa')](_0x2d6e45['query'],_0x41d8a8)[_0x57c624('0x1549')]:(_0x2d6e45['query']['id']=_0x2d6e45[_0x57c624('0x25bc')]['id'],_0x2d6e45[_0x57c624('0x1f2a')][_0x57c624('0xe6')]='CustomDashboards',_0x2d6e45['promise']=_0x37151f['userProfile'][_0x57c624('0x228e')](_0x2d6e45['query'],_0x41d8a8)['$promise']);}function _0x2ea1cc(_0x60f01c,_0x31d135){const _0x4c3ad8=_0x1d7b57;_0x16c0ec[_0x4c3ad8('0xb9')]({'controller':_0x4c3ad8('0x1b37'),'controllerAs':'vm','templateUrl':_0x4b57cb,'parent':angular[_0x4c3ad8('0x1e73')](_0x599753['body']),'targetEvent':_0x60f01c,'clickOutsideToClose':!![],'locals':{'customDashboard':_0x31d135,'customDashboards':_0x2d6e45[_0x4c3ad8('0x15c8')][_0x4c3ad8('0x19b2')],'license':_0x2d6e45['license'],'setting':_0x2d6e45[_0x4c3ad8('0x23e1')],'crudPermissions':_0x2d6e45['crudPermissions']}});}function _0x188452(_0x32a847){const _0x4fe7db=_0x1d7b57;_0x37151f[_0x4fe7db('0xdb9')][_0x4fe7db('0x2088')]({'id':_0x32a847['id']})[_0x4fe7db('0x1549')][_0x4fe7db('0x11bf')](function(){const _0x3102a1=_0x4fe7db;_0x36f548()['remove'](_0x2d6e45[_0x3102a1('0x15c8')][_0x3102a1('0x19b2')],{'id':_0x32a847['id']}),_0x2d6e45[_0x3102a1('0x15c8')][_0x3102a1('0x27d2')]-=0x1,!_0x2d6e45[_0x3102a1('0x15c8')]['rows']['length']&&_0x2d6e45['getCustomDashboards'](),_0x3a90cc[_0x3102a1('0x2693')]({'title':_0x36f548()['startCase'](_0x3102a1('0x430'))+'\x20deleted!','msg':_0x32a847['name']?_0x32a847[_0x3102a1('0x1909')]+'\x20has\x20been\x20deleted!':''});})[_0x4fe7db('0x151d')](function(_0x190148){const _0x5f3acc=_0x4fe7db;if(_0x190148['data']&&_0x190148[_0x5f3acc('0x4e8')][_0x5f3acc('0x120f')]&&_0x190148['data']['errors'][_0x5f3acc('0x1e22')]){_0x2d6e45['errors']=_0x190148['data'][_0x5f3acc('0x120f')]||[{'message':_0x190148[_0x5f3acc('0xaab')](),'type':'SYSTEM:DELETEdashboard'}];for(let _0x28d163=0x0;_0x28d163<_0x190148[_0x5f3acc('0x4e8')][_0x5f3acc('0x120f')][_0x5f3acc('0x1e22')];_0x28d163++){_0x3a90cc[_0x5f3acc('0x255')]({'title':_0x190148[_0x5f3acc('0x4e8')][_0x5f3acc('0x120f')][_0x28d163][_0x5f3acc('0x19fd')],'msg':_0x190148[_0x5f3acc('0x4e8')][_0x5f3acc('0x120f')][_0x28d163][_0x5f3acc('0x1b86')]});}}else _0x3a90cc[_0x5f3acc('0x255')]({'title':_0x190148['status']?_0x5f3acc('0x574')+_0x190148[_0x5f3acc('0xff9')]+_0x5f3acc('0xb0b')+_0x190148['statusText']:_0x5f3acc('0x1738'),'msg':_0x190148['data']?JSON['stringify'](_0x190148[_0x5f3acc('0x4e8')][_0x5f3acc('0x1b86')]):_0x190148[_0x5f3acc('0x1b86')]||_0x190148[_0x5f3acc('0xaab')]()});});}function _0x3c719a(){const _0xe49c9b=_0x1d7b57,_0x3e3ce8=angular[_0xe49c9b('0x6fb')](_0x2d6e45['selectedCustomDashboards']);return _0x2d6e45[_0xe49c9b('0xc30')]=[],_0x3e3ce8;}function _0x1fd1a7(_0x236d2c){const _0x2e9d56=_0x1d7b57,_0x4e9662=_0x16c0ec['confirm']()[_0x2e9d56('0x134b')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20customDashboards?')[_0x2e9d56('0x1d03')](''+_0x2d6e45['selectedCustomDashboards']['length']+_0x2e9d56('0xac6')+_0x2e9d56('0x1a'))['ariaLabel']('delete\x20CustomDashboards')[_0x2e9d56('0x1e25')](_0x236d2c)['ok']('OK')[_0x2e9d56('0x26c9')](_0x2e9d56('0x772'));_0x16c0ec[_0x2e9d56('0xb9')](_0x4e9662)[_0x2e9d56('0x11bf')](function(){const _0x1ae60b=_0x2e9d56;_0x2d6e45[_0x1ae60b('0xc30')][_0x1ae60b('0x1f88')](function(_0xab5827){_0x188452(_0xab5827);}),_0x2d6e45[_0x1ae60b('0xc30')]=[];});}function _0x4fa5bb(){_0x2d6e45['selectedCustomDashboards']=[];}function _0x1fd9f5(){const _0x1abbd5=_0x1d7b57;_0x2d6e45[_0x1abbd5('0xc30')]=_0x2d6e45[_0x1abbd5('0x15c8')][_0x1abbd5('0x19b2')];}}const _0x1e0381=_0x8632f5;_0x4f1d46[_0x21d0f5('0x1e9a')]=['$mdDialog',_0x21d0f5('0xcbc'),_0x21d0f5('0x142d'),'api',_0x21d0f5('0xc1a'),_0x21d0f5('0x15c8'),_0x21d0f5('0xb6b')];function _0x4f1d46(_0x77518f,_0xa66831,_0x1b3b87,_0x3102ef,_0x3e2344,_0x830f59,_0x365028){const _0x20b3bb=_0x21d0f5,_0x497d69=this;_0x497d69['newCustomDashboard']=!![],_0x497d69['customDashboard']=angular[_0x20b3bb('0x6fb')](_0x3e2344),_0x497d69['customDashboards']=_0x830f59,_0x497d69['title']=_0x365028[_0x20b3bb('0x10c2')](_0x20b3bb('0x2755'));_0x3e2344&&_0x3e2344[_0x20b3bb('0x1909')]&&(_0x497d69[_0x20b3bb('0x134b')]+=':\x20'+_0x3e2344[_0x20b3bb('0x1909')]);_0x497d69[_0x20b3bb('0xe63')]=_0x3283cd,_0x497d69[_0x20b3bb('0xc4e')]=_0x457ce4;function _0x3283cd(){const _0x267a8a=_0x20b3bb;return _0x3102ef['dashboard']['clone']({'id':_0x3e2344['id'],'includeAll':!![]},_0x497d69['customDashboard'])[_0x267a8a('0x1549')]['then'](function(_0x225221){const _0x5c9d49=_0x267a8a;_0x497d69[_0x5c9d49('0x15c8')][_0x5c9d49('0x880')](_0x225221['toJSON']()),_0x1b3b87[_0x5c9d49('0x2693')]({'title':_0x5c9d49('0x18ab'),'msg':_0x497d69['customDashboard']['name']?_0x497d69[_0x5c9d49('0xc1a')][_0x5c9d49('0x1909')]+_0x5c9d49('0x9d2'):''}),_0xa66831['go']('app.tools.customDashboards.edit',{'id':_0x225221['id']}),_0x457ce4(_0x225221);})['catch'](function(_0x13e497){const _0x3caedb=_0x267a8a;if(_0x13e497[_0x3caedb('0x4e8')]&&_0x13e497[_0x3caedb('0x4e8')][_0x3caedb('0x120f')]&&_0x13e497[_0x3caedb('0x4e8')][_0x3caedb('0x120f')][_0x3caedb('0x1e22')]){_0x497d69['errors']=_0x13e497[_0x3caedb('0x4e8')][_0x3caedb('0x120f')]||[{'message':_0x13e497['toString'](),'type':_0x3caedb('0x12a0')}];for(let _0x566f8b=0x0;_0x566f8b<_0x13e497[_0x3caedb('0x4e8')][_0x3caedb('0x120f')][_0x3caedb('0x1e22')];_0x566f8b+=0x1){_0x1b3b87[_0x3caedb('0x255')]({'title':_0x13e497['data'][_0x3caedb('0x120f')][_0x566f8b][_0x3caedb('0x19fd')],'msg':_0x13e497[_0x3caedb('0x4e8')][_0x3caedb('0x120f')][_0x566f8b]['message']});}}else _0x1b3b87[_0x3caedb('0x255')]({'title':_0x13e497['status']?_0x3caedb('0x574')+_0x13e497[_0x3caedb('0xff9')]+'\x20-\x20'+_0x13e497[_0x3caedb('0x212f')]:_0x3caedb('0x12a0'),'msg':_0x13e497[_0x3caedb('0x4e8')]?JSON[_0x3caedb('0x3e')](_0x13e497['data'][_0x3caedb('0x1b86')]):_0x13e497[_0x3caedb('0xaab')]()});});}function _0x457ce4(_0x5ee5f2){const _0x437f93=_0x20b3bb;_0x77518f[_0x437f93('0x237e')](_0x5ee5f2);}}const _0x19bc73=_0x4f1d46,_0xd0e170=_0x351988['p']+_0x21d0f5('0x9d4');_0x1b7597[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1ca2'),'$document',_0x21d0f5('0x1d56'),_0x21d0f5('0x142d'),_0x21d0f5('0x12a5')];function _0x1b7597(_0x5c45ab,_0xacb0dd,_0x761494,_0x16b486,_0xfeaa02){const _0x592b26=_0x21d0f5,_0x12d014=this;_0x12d014['customDashboard']={},_0x12d014[_0x592b26('0x1b52')]=_0xfeaa02[_0x592b26('0x4db')][_0x592b26('0x20a8')]({'fields':_0x592b26('0x721')}),_0x12d014[_0x592b26('0x286f')]=_0x1e2f04,_0x12d014[_0x592b26('0xb22')]=_0x541796,_0x12d014[_0x592b26('0x18f6')]=_0x1ee8f3;function _0x1e2f04(_0x53bf25,_0x196d0f){const _0xdf16bc=_0x592b26;return _0x12d014[_0xdf16bc('0xb25')]=typeof _0x196d0f!==_0xdf16bc('0x13e9')?_0x196d0f:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x12d014[_0xdf16bc('0xc1a')]=_0x53bf25,_0x12d014['customDashboard']['draggable']={'enabled':!![],'handle':_0xdf16bc('0x4e0'),'stop':_0x41b893},_0x12d014[_0xdf16bc('0xc1a')]['resizable']={'enabled':!![],'handle':_0xdf16bc('0x1667'),'stop':_0x41b893},_0x12d014['customDashboard'][_0xdf16bc('0x517')]=[],_0xfeaa02[_0xdf16bc('0xdb9')][_0xdf16bc('0xb1c')]({'id':_0x53bf25['id']})[_0xdf16bc('0x1549')][_0xdf16bc('0x11bf')](function(_0x1ed5a6){const _0x2eb74c=_0xdf16bc;if(_0x1ed5a6&&_0x1ed5a6['count']&&_0x1ed5a6['rows'])for(let _0x498f08=0x0;_0x498f08<_0x1ed5a6[_0x2eb74c('0x19b2')]['length'];_0x498f08+=0x1){_0x1ed5a6['rows'][_0x498f08]['voiceQueues']=_0x12d014[_0x2eb74c('0x1b52')],_0x1ed5a6[_0x2eb74c('0x19b2')][_0x498f08][_0x2eb74c('0x6c1')]=_0x36f548()[_0x2eb74c('0x2171')](_0x12d014[_0x2eb74c('0x1b52')][_0x2eb74c('0x19b2')],'id'),_0x1ed5a6[_0x2eb74c('0x19b2')][_0x498f08][_0x2eb74c('0xa61')]='app/core/directives/ms-widget-engine/ms-widget-engine-'+_0x1ed5a6[_0x2eb74c('0x19b2')][_0x498f08][_0x2eb74c('0x19fd')]+'/ms-widget-engine.'+_0x1ed5a6[_0x2eb74c('0x19b2')][_0x498f08][_0x2eb74c('0x19fd')]+'.html',_0x12d014[_0x2eb74c('0xc1a')][_0x2eb74c('0x517')][_0x2eb74c('0x105d')](_0x1ed5a6[_0x2eb74c('0x19b2')][_0x498f08]);}})[_0xdf16bc('0x151d')](function(_0x1b7789){const _0x5a3b27=_0xdf16bc;console[_0x5a3b27('0x255')](_0x1b7789);});}function _0x541796(_0x59c9bf){const _0x5206ab=_0x592b26;if(_0x59c9bf&&_0x59c9bf[_0x5206ab('0x1ccd')])for(let _0x9435ae=0x0;_0x9435ae<_0x59c9bf[_0x5206ab('0x1ccd')][_0x5206ab('0x1e22')];_0x9435ae+=0x1){_0x59c9bf['attrs'][_0x9435ae][_0x5206ab('0x1909')]===_0x5206ab('0x19e3')&&(_0x59c9bf['reportType']=_0x59c9bf[_0x5206ab('0x1ccd')][_0x9435ae][_0x5206ab('0x19fd')]),_0x59c9bf[_0x59c9bf['attrs'][_0x9435ae]['name']]=_0x59c9bf[_0x5206ab('0x1ccd')][_0x9435ae][_0x5206ab('0x10cc')];}_0x5c45ab[_0x5206ab('0xb9')]({'controller':_0x5206ab('0x2d1'),'controllerAs':'vm','templateUrl':_0xd0e170,'parent':angular[_0x5206ab('0x1e73')](_0xacb0dd[_0x5206ab('0x1d2')]),'clickOutsideToClose':!![],'locals':{'dashboarditem':_0x59c9bf,'dashboard':_0x12d014[_0x5206ab('0xc1a')][_0x5206ab('0x517')],'license':null,'setting':null,'crudPermissions':_0x12d014['crudPermissions']}})[_0x5206ab('0x11bf')](function(_0x38848e){const _0x4416f0=_0x5206ab;if(_0x38848e)for(let _0xa1f454=0x0;_0xa1f454<_0x12d014[_0x4416f0('0xc1a')][_0x4416f0('0x517')][_0x4416f0('0x1e22')];_0xa1f454+=0x1){_0x12d014[_0x4416f0('0xc1a')][_0x4416f0('0x517')][_0xa1f454]['id']===_0x38848e['id']&&(_0x12d014[_0x4416f0('0xc1a')]['widgets'][_0xa1f454]['attrs']=_0x38848e['attrs'],_0x12d014[_0x4416f0('0xc1a')][_0x4416f0('0x517')][_0xa1f454][_0x4416f0('0x1b52')]=_0x12d014[_0x4416f0('0x1b52')],_0x12d014['customDashboard']['widgets'][_0xa1f454][_0x4416f0('0x6c1')]=_0x36f548()['map'](_0x12d014['voiceQueues']['rows'],'id'),_0x12d014[_0x4416f0('0xc1a')][_0x4416f0('0x517')][_0xa1f454]['templateUrl']='app/core/directives/ms-widget-engine/ms-widget-engine-'+_0x12d014[_0x4416f0('0xc1a')][_0x4416f0('0x517')][_0xa1f454]['type']+_0x4416f0('0xdab')+_0x12d014[_0x4416f0('0xc1a')]['widgets'][_0xa1f454][_0x4416f0('0x19fd')]+_0x4416f0('0x109e'));}});}function _0x1ee8f3(_0x277b1a){const _0x24612b=_0x592b26,_0x12618f=_0x5c45ab[_0x24612b('0x132b')]()[_0x24612b('0x134b')]('Would\x20you\x20like\x20to\x20delete\x20'+_0x277b1a[_0x24612b('0x134b')]+'?')[_0x24612b('0xad7')]('')[_0x24612b('0xb2e')](_0x24612b('0x1be4'))['ok'](_0x24612b('0x1941'))[_0x24612b('0x26c9')]('NO');_0x5c45ab[_0x24612b('0xb9')](_0x12618f)[_0x24612b('0x11bf')](function(){const _0x395606=_0x24612b;return _0xfeaa02[_0x395606('0x1238')][_0x395606('0x2088')]({'id':_0x277b1a['id']})[_0x395606('0x1549')][_0x395606('0x11bf')](function(){const _0x29aede=_0x395606;_0x36f548()['remove'](_0x12d014[_0x29aede('0xc1a')]['widgets'],{'id':_0x277b1a['id']}),_0x16b486[_0x29aede('0x2693')]({'title':_0x29aede('0x20d7'),'msg':_0x277b1a[_0x29aede('0x1909')]?_0x277b1a[_0x29aede('0x1909')]+_0x29aede('0x433'):_0x29aede('0x1eff')});})['catch'](function(_0x16dc77){const _0x578a9f=_0x395606;if(_0x16dc77[_0x578a9f('0x4e8')]&&_0x16dc77[_0x578a9f('0x4e8')][_0x578a9f('0x120f')]&&_0x16dc77['data']['errors'][_0x578a9f('0x1e22')]){_0x12d014[_0x578a9f('0x120f')]=_0x16dc77[_0x578a9f('0x4e8')][_0x578a9f('0x120f')]||[{'message':_0x16dc77[_0x578a9f('0xaab')](),'type':'SYSTEM:DELETE.customDashboard'}];for(let _0x5161a4=0x0;_0x5161a4<_0x16dc77[_0x578a9f('0x4e8')]['errors']['length'];_0x5161a4++){_0x16b486[_0x578a9f('0x255')]({'title':_0x16dc77[_0x578a9f('0x4e8')][_0x578a9f('0x120f')][_0x5161a4][_0x578a9f('0x19fd')],'msg':_0x16dc77['data']['errors'][_0x5161a4]['message']});}}else _0x16b486[_0x578a9f('0x255')]({'title':_0x16dc77[_0x578a9f('0xff9')]?_0x578a9f('0x574')+_0x16dc77[_0x578a9f('0xff9')]+_0x578a9f('0xb0b')+_0x16dc77[_0x578a9f('0x212f')]:'SYSTEM:DELETEdashboard','msg':_0x16dc77['data']?JSON['stringify'](_0x16dc77[_0x578a9f('0x4e8')][_0x578a9f('0x1b86')]):_0x16dc77[_0x578a9f('0x1b86')]||_0x16dc77[_0x578a9f('0xaab')]()});console['error'](_0x16dc77);});});}function _0x41b893(_0x1eb97f,_0x115481,_0x32a98e){const _0x36a9ba=_0x592b26;return _0xfeaa02[_0x36a9ba('0x1238')][_0x36a9ba('0x5ab')](_0x32a98e)[_0x36a9ba('0x1549')][_0x36a9ba('0x151d')](function(_0x5649b6){const _0x1c7fbf=_0x36a9ba;console[_0x1c7fbf('0x255')](_0x5649b6);});}}const _0x50154e=_0x1b7597,_0x55bf23=_0x351988['p']+'src/js/modules/main/apps/tools/views/customDashboards/partialViews/reports/treeReports.html/treeReports.html';_0x514329[_0x21d0f5('0x1e9a')]=['$scope',_0x21d0f5('0xcbc'),'$location',_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0xb6b'),_0x21d0f5('0x142d'),_0x21d0f5('0xdb9'),_0x21d0f5('0x934'),_0x21d0f5('0x12a5'),'Auth',_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1'),_0x21d0f5('0xb25')];function _0x514329(_0x329fcb,_0x239a6f,_0x29a77d,_0x1f3f6e,_0x4ae47b,_0x342162,_0x476de2,_0x284749,_0xb1cf7a,_0x5574d8,_0x26cfe7,_0x4b9580,_0x4de21c,_0x347aea){const _0x1a2ac0=_0x21d0f5,_0x177fd5=this;_0x177fd5[_0x1a2ac0('0x32a')]=_0x26cfe7[_0x1a2ac0('0x2428')](),_0x177fd5[_0x1a2ac0('0x120f')]=[],_0x177fd5[_0x1a2ac0('0x23e1')]=_0x4de21c,_0x177fd5[_0x1a2ac0('0x17ff')]=_0x4b9580,_0x177fd5[_0x1a2ac0('0xb25')]=_0x347aea,_0x177fd5['hasModulePermissions']={},_0x177fd5['passwordPattern']=_0x177fd5[_0x1a2ac0('0x23e1')]&&_0x177fd5[_0x1a2ac0('0x23e1')][_0x1a2ac0('0x1d4')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x177fd5[_0x1a2ac0('0x134b')]=_0x1a2ac0('0xd37'),_0x177fd5[_0x1a2ac0('0x934')]=angular['copy'](_0xb1cf7a),_0x177fd5[_0x1a2ac0('0xdb9')]=_0x284749,_0x177fd5[_0x1a2ac0('0x164b')]=![],_0x177fd5[_0x1a2ac0('0x2127')]=[],_0x177fd5[_0x1a2ac0('0x1f2a')]={'fields':'createdAt,updatedAt,id,name,description,table,parent,conditions,joins','limit':0xa,'page':0x1,'sort':'-updatedAt'};!_0x177fd5[_0x1a2ac0('0x934')]?(_0x177fd5['dashboarditem']={'type':_0x1a2ac0('0x1f99'),'attrUrl':_0x1a2ac0('0x166a'),'attrHourFormat':'HH:mm:ss','attrTimezone':_0x1a2ac0('0x1e51'),'attrMetric':'total','attrSerie1':_0x1a2ac0('0x4af'),'attrSerie2':_0x1a2ac0('0xb5f'),'attrSerie3':_0x1a2ac0('0xb5f'),'attrRefresh':0xa,'attrFontSize':0x14,'foreground':_0x1a2ac0('0x1690'),'background':_0x1a2ac0('0x1230')},_0x177fd5[_0x1a2ac0('0x134b')]=_0x1a2ac0('0x78e'),_0x177fd5['newDashboardItem']=!![]):_0x177fd5['dashboarditem']['type']=='web-report'&&(_0x177fd5[_0x1a2ac0('0x2c5')]=_0x177fd5[_0x1a2ac0('0x934')][_0x1a2ac0('0x32e')]===_0x1a2ac0('0xa8d')?_0x1a2ac0('0x13ee'):_0x1a2ac0('0x19f4'),_0x5574d8[_0x177fd5[_0x1a2ac0('0x2c5')]][_0x1a2ac0('0xbaa')]({'fields':_0x1a2ac0('0x22ee')})[_0x1a2ac0('0x1549')][_0x1a2ac0('0x11bf')](function(_0x238871){const _0x2c8158=_0x1a2ac0;_0x177fd5[_0x2c8158('0x11a')]=_0x36f548()['find'](_0x238871[_0x2c8158('0x19b2')],{'id':_0x177fd5[_0x2c8158('0x934')][_0x2c8158('0x19e3')]}),_0x177fd5[_0x2c8158('0x934')]['report']=_0x177fd5[_0x2c8158('0x11a')][_0x2c8158('0x1909')],_0x177fd5['query'][_0x2c8158('0x1592')]=_0x177fd5['currentReport'][_0x2c8158('0x1592')];}));_0x177fd5[_0x1a2ac0('0xe72')]=_0x47ede5,_0x177fd5[_0x1a2ac0('0x6a8')]=_0x345258,_0x177fd5[_0x1a2ac0('0x1367')]=_0x4d77b3,_0x177fd5[_0x1a2ac0('0x1bd1')]=_0x137f3c,_0x177fd5[_0x1a2ac0('0xbd3')]=_0x19584e,_0x177fd5[_0x1a2ac0('0x231b')]=_0x3d28b2,_0x177fd5[_0x1a2ac0('0x10af')]=_0x402ff0,_0x177fd5[_0x1a2ac0('0x1be1')]=_0x54ff6,_0x177fd5[_0x1a2ac0('0xc4e')]=_0x363798,_0x5574d8[_0x1a2ac0('0x32b')][_0x1a2ac0('0xbaa')]({})[_0x1a2ac0('0x1549')][_0x1a2ac0('0x11bf')](function(_0x4a9125){_0x177fd5['treeReports']=_0x4a9125['rows']||[];})[_0x1a2ac0('0x151d')](function(_0x25b88){const _0x31269c=_0x1a2ac0;_0x476de2[_0x31269c('0x255')]({'title':_0x25b88[_0x31269c('0xff9')]?_0x31269c('0x574')+_0x25b88[_0x31269c('0xff9')]+_0x31269c('0xb0b')+_0x25b88[_0x31269c('0x212f')]:_0x31269c('0x27a2'),'msg':_0x25b88[_0x31269c('0x4e8')]?JSON[_0x31269c('0x3e')](_0x25b88[_0x31269c('0x4e8')]):_0x25b88[_0x31269c('0xaab')]()});});const _0x3e51d2=[{'id':0x191,'type':'inbound'},{'id':0x5dd,'type':'outbound'}];let _0x4c240d=null;_0x26cfe7[_0x1a2ac0('0x4ee')](_0x1a2ac0('0xf45'))?_0x5574d8[_0x1a2ac0('0x1043')][_0x1a2ac0('0xbaa')]({'fields':_0x1a2ac0('0xde'),'sort':_0x1a2ac0('0x1909'),'nolimit':'true'})['$promise'][_0x1a2ac0('0x11bf')](function(_0x273da2){const _0x9eff27=_0x1a2ac0;_0x177fd5['voiceQueues']=_0x273da2[_0x9eff27('0x19b2')]||[];})[_0x1a2ac0('0x151d')](function(_0x5649dc){const _0x289945=_0x1a2ac0;_0x476de2[_0x289945('0x255')]({'title':_0x5649dc[_0x289945('0xff9')]?_0x289945('0x574')+_0x5649dc['status']+_0x289945('0xb0b')+_0x5649dc[_0x289945('0x212f')]:_0x289945('0x39e'),'msg':_0x5649dc['data']?JSON[_0x289945('0x3e')](_0x5649dc[_0x289945('0x4e8')]):_0x5649dc[_0x289945('0xaab')]()});}):_0x5574d8[_0x1a2ac0('0x1043')][_0x1a2ac0('0xbaa')]({'fields':_0x1a2ac0('0xde'),'sort':_0x1a2ac0('0x1909'),'nolimit':'true'})[_0x1a2ac0('0x1549')][_0x1a2ac0('0x11bf')](function(_0x78361d){const _0x56eea1=_0x1a2ac0;_0x4c240d=_0x78361d[_0x56eea1('0x19b2')]||[];})[_0x1a2ac0('0x11bf')](function(){const _0x4fb114=_0x1a2ac0,_0x5ea4bc=[];for(let _0x55f023=0x0;_0x55f023<_0x3e51d2[_0x4fb114('0x1e22')];_0x55f023++){_0x5ea4bc[_0x4fb114('0x105d')](_0x5574d8[_0x4fb114('0x1d63')][_0x4fb114('0xbaa')]({'userProfileId':_0x177fd5[_0x4fb114('0x32a')][_0x4fb114('0x781')],'sectionId':_0x3e51d2[_0x55f023]['id']})[_0x4fb114('0x1549')]);}return _0x4ae47b[_0x4fb114('0x7c')](_0x5ea4bc);})[_0x1a2ac0('0x11bf')](function(_0x2c1f60){const _0x31117a=_0x1a2ac0,_0x1f03cd=_0x36f548()[_0x31117a('0x2171')](_0x2c1f60,function(_0x3a6f71){const _0xbd6e15=_0x31117a;return _0x3a6f71&&_0x3a6f71[_0xbd6e15('0x19b2')]?_0x3a6f71[_0xbd6e15('0x19b2')][0x0]:null;}),_0xee89dc=[];for(let _0x5158ed=0x0;_0x5158ed<_0x3e51d2[_0x31117a('0x1e22')];_0x5158ed++){const _0x2154b1=_0x36f548()[_0x31117a('0x1ad4')](_0x1f03cd,['sectionId',_0x3e51d2[_0x5158ed]['id']]);if(_0x2154b1){if(!_0x2154b1[_0x31117a('0xf11')])_0xee89dc[_0x31117a('0x105d')](_0x5574d8['userProfileResource'][_0x31117a('0xbaa')]({'sectionId':_0x2154b1['id']})['$promise']);else{const _0x1ada8f=[];_0x4c240d[_0x31117a('0x1f88')](function(_0x1cfa68){_0x1cfa68['type']===_0x3e51d2[_0x5158ed]['type']&&_0x1ada8f['push'](_0x1cfa68);}),_0xee89dc[_0x31117a('0x105d')]({'rows':_0x1ada8f,'count':_0x1ada8f[_0x31117a('0x1e22')]});}}}return _0x4ae47b[_0x31117a('0x7c')](_0xee89dc);})['then'](function(_0x27feaf){const _0x233f71=_0x1a2ac0,_0x59b55e=[];let _0x3b35c7=null;_0x177fd5['dashboarditem']&&(_0x3b35c7=_0x36f548()['find'](_0x4c240d,{'id':Number(_0x177fd5[_0x233f71('0x934')][_0x233f71('0x1593')])}));for(let _0x3e7e63=0x0;_0x3e7e63<_0x27feaf[_0x233f71('0x1e22')];_0x3e7e63++){const _0x382fa9=_0x27feaf[_0x3e7e63]['rows']||[];_0x382fa9[_0x233f71('0x1f88')](function(_0x291b6b){const _0x4014cd=_0x233f71;_0x59b55e[_0x4014cd('0x105d')](_0x291b6b);});}_0x3b35c7&&!_0x36f548()[_0x233f71('0x1cb3')](_0x59b55e,[_0x233f71('0x15a5'),_0x3b35c7['id']])&&_0x4c240d['forEach'](function(_0x5aaf8b){const _0x112fce=_0x233f71;_0x5aaf8b['id']===_0x3b35c7['id']&&(_0x5aaf8b[_0x112fce('0x254a')]=![],_0x59b55e[_0x112fce('0x105d')](_0x5aaf8b));}),_0x177fd5[_0x233f71('0x1b52')]=_0x59b55e;})['catch'](function(_0x14661b){const _0x337cbf=_0x1a2ac0;_0x476de2[_0x337cbf('0x255')]({'title':_0x14661b['status']?'API:'+_0x14661b[_0x337cbf('0xff9')]+'\x20-\x20'+_0x14661b[_0x337cbf('0x212f')]:'SYSTEM:GETvoiceQueues','msg':_0x14661b[_0x337cbf('0x4e8')]?JSON[_0x337cbf('0x3e')](_0x14661b['data']):_0x14661b[_0x337cbf('0xaab')]()});});function _0x47ede5(){const _0x4cc546=_0x1a2ac0;_0x177fd5[_0x4cc546('0x120f')]=[],_0x5574d8[_0x4cc546('0xdb9')][_0x4cc546('0x1be3')]({'id':_0x239a6f[_0x4cc546('0x1ab3')]['id']},_0x177fd5[_0x4cc546('0x934')])[_0x4cc546('0x1549')][_0x4cc546('0x11bf')](function(_0x36307c){const _0x2b0258=_0x4cc546;_0x177fd5['dashboard']['unshift'](_0x36307c[_0x2b0258('0x2866')]()),_0x476de2[_0x2b0258('0x2693')]({'title':'DashboardItem\x20properly\x20created','msg':_0x177fd5[_0x2b0258('0x934')][_0x2b0258('0x1909')]?_0x177fd5[_0x2b0258('0x934')][_0x2b0258('0x1909')]+_0x2b0258('0x7fb'):''}),_0x363798(_0x36307c);})['catch'](function(_0xeec8dd){const _0x38d36b=_0x4cc546;if(_0xeec8dd[_0x38d36b('0x4e8')]&&_0xeec8dd[_0x38d36b('0x4e8')]['errors']&&_0xeec8dd[_0x38d36b('0x4e8')][_0x38d36b('0x120f')]['length']){_0x177fd5[_0x38d36b('0x120f')]=_0xeec8dd[_0x38d36b('0x4e8')][_0x38d36b('0x120f')]||[{'message':_0xeec8dd[_0x38d36b('0xaab')](),'type':'api.dashboardItem.save'}];for(let _0x28cf58=0x0;_0x28cf58<_0xeec8dd[_0x38d36b('0x4e8')][_0x38d36b('0x120f')][_0x38d36b('0x1e22')];_0x28cf58+=0x1){_0x476de2[_0x38d36b('0x255')]({'title':_0xeec8dd[_0x38d36b('0x4e8')][_0x38d36b('0x120f')][_0x28cf58]['type'],'msg':_0xeec8dd[_0x38d36b('0x4e8')][_0x38d36b('0x120f')][_0x28cf58][_0x38d36b('0x1b86')]});}}else _0x476de2[_0x38d36b('0x255')]({'title':_0xeec8dd[_0x38d36b('0xff9')]?_0x38d36b('0x574')+_0xeec8dd[_0x38d36b('0xff9')]+_0x38d36b('0xb0b')+_0xeec8dd[_0x38d36b('0x212f')]:_0x38d36b('0xaac'),'msg':_0xeec8dd[_0x38d36b('0x4e8')]?JSON[_0x38d36b('0x3e')](_0xeec8dd['data'][_0x38d36b('0x1b86')]):_0xeec8dd[_0x38d36b('0xaab')]()});});}function _0x345258(){const _0x40c9c0=_0x1a2ac0;_0x177fd5[_0x40c9c0('0x120f')]=[],_0x5574d8[_0x40c9c0('0x1238')][_0x40c9c0('0x5ab')]({'id':_0x177fd5[_0x40c9c0('0x934')]['id']},_0x177fd5[_0x40c9c0('0x934')])['$promise'][_0x40c9c0('0x11bf')](function(_0xb9c9ef){const _0x4dfffc=_0x40c9c0,_0x1b619b=_0x36f548()[_0x4dfffc('0x1ad4')](_0x177fd5['dashboard'],{'id':_0xb9c9ef['id']});_0x1b619b&&_0x36f548()[_0x4dfffc('0x47b')](_0x1b619b,_0x36f548()[_0x4dfffc('0x258')](_0xb9c9ef['toJSON'](),_0x36f548()[_0x4dfffc('0xe22')](_0x1b619b))),_0x476de2[_0x4dfffc('0x2693')]({'title':'DashboardItem\x20properly\x20saved!','msg':_0x177fd5['dashboarditem'][_0x4dfffc('0x1909')]?_0x177fd5['dashboarditem'][_0x4dfffc('0x1909')]+_0x4dfffc('0x1a78'):''}),_0x363798(_0xb9c9ef);})[_0x40c9c0('0x151d')](function(_0x2f0b6b){const _0x470a06=_0x40c9c0;if(_0x2f0b6b['data']&&_0x2f0b6b['data'][_0x470a06('0x120f')]&&_0x2f0b6b[_0x470a06('0x4e8')][_0x470a06('0x120f')][_0x470a06('0x1e22')]){_0x177fd5[_0x470a06('0x120f')]=_0x2f0b6b[_0x470a06('0x4e8')][_0x470a06('0x120f')]||[{'message':_0x2f0b6b[_0x470a06('0xaab')](),'type':'api.dashboardItem.update'}];for(let _0x13ce1d=0x0;_0x13ce1d<_0x2f0b6b[_0x470a06('0x4e8')][_0x470a06('0x120f')][_0x470a06('0x1e22')];_0x13ce1d++){_0x476de2[_0x470a06('0x255')]({'title':_0x2f0b6b[_0x470a06('0x4e8')][_0x470a06('0x120f')][_0x13ce1d][_0x470a06('0x19fd')],'msg':_0x2f0b6b['data'][_0x470a06('0x120f')][_0x13ce1d][_0x470a06('0x1b86')]});}}else _0x476de2['error']({'title':_0x2f0b6b[_0x470a06('0xff9')]?'API:'+_0x2f0b6b[_0x470a06('0xff9')]+_0x470a06('0xb0b')+_0x2f0b6b[_0x470a06('0x212f')]:'api.dashboardItem.update','msg':_0x2f0b6b[_0x470a06('0x4e8')]?JSON[_0x470a06('0x3e')](_0x2f0b6b[_0x470a06('0x4e8')][_0x470a06('0x1b86')]):_0x2f0b6b[_0x470a06('0xaab')]()});});}function _0x4d77b3(_0x4df20b){const _0x41a6c2=_0x1a2ac0;_0x177fd5[_0x41a6c2('0x120f')]=[];const _0x5d8f0c=_0x1f3f6e[_0x41a6c2('0x132b')]()['title'](_0x41a6c2('0x1fa9'))['content'](_0x41a6c2('0xcc1'))[_0x41a6c2('0xb2e')]('Delete\x20DashboardItem')['ok'](_0x41a6c2('0x1167'))['cancel'](_0x41a6c2('0x784'))[_0x41a6c2('0x1e25')](_0x4df20b);_0x1f3f6e['show'](_0x5d8f0c)[_0x41a6c2('0x11bf')](function(){const _0x20e66b=_0x41a6c2;_0x5574d8['dashboardItem']['delete']({'id':_0x177fd5[_0x20e66b('0x934')]['id']})[_0x20e66b('0x1549')][_0x20e66b('0x11bf')](function(){const _0x16464d=_0x20e66b;_0x36f548()[_0x16464d('0x14a5')](_0x177fd5[_0x16464d('0xdb9')],{'id':_0x177fd5[_0x16464d('0x934')]['id']}),_0x476de2['success']({'title':_0x16464d('0xdf4'),'msg':(_0x177fd5[_0x16464d('0x934')]['name']||_0x16464d('0x934'))+'\x20has\x20been\x20deleted!'}),_0x363798(_0x177fd5[_0x16464d('0x934')]);})['catch'](function(_0x3fdf31){const _0x34207d=_0x20e66b;if(_0x3fdf31['data']&&_0x3fdf31['data'][_0x34207d('0x120f')]&&_0x3fdf31[_0x34207d('0x4e8')][_0x34207d('0x120f')][_0x34207d('0x1e22')]){_0x177fd5[_0x34207d('0x120f')]=_0x3fdf31['data'][_0x34207d('0x120f')]||[{'message':_0x3fdf31[_0x34207d('0xaab')](),'type':_0x34207d('0x18e6')}];for(let _0x1ad64e=0x0;_0x1ad64e<_0x3fdf31[_0x34207d('0x4e8')][_0x34207d('0x120f')][_0x34207d('0x1e22')];_0x1ad64e++){_0x476de2[_0x34207d('0x255')]({'title':_0x3fdf31[_0x34207d('0x4e8')][_0x34207d('0x120f')][_0x1ad64e]['type'],'msg':_0x3fdf31[_0x34207d('0x4e8')][_0x34207d('0x120f')][_0x1ad64e][_0x34207d('0x1b86')]});}}else _0x476de2[_0x34207d('0x255')]({'title':_0x3fdf31[_0x34207d('0xff9')]?_0x34207d('0x574')+_0x3fdf31[_0x34207d('0xff9')]+_0x34207d('0xb0b')+_0x3fdf31[_0x34207d('0x212f')]:_0x34207d('0x18e6'),'msg':_0x3fdf31[_0x34207d('0x4e8')]?JSON['stringify'](_0x3fdf31[_0x34207d('0x4e8')]['message']):_0x3fdf31[_0x34207d('0x1b86')]||_0x3fdf31['toString']()});});},function(){});}function _0x293eba(){const _0x269812=_0x1a2ac0,_0x442eb2={'core':{'multiple':![],'animation':!![],'error':function(_0x2970ed){const _0xb622e5=a0_0xaf0c;console['error'](_0xb622e5('0x61a')+angular[_0xb622e5('0x460')](_0x2970ed));},'check_callback':!![],'worker':!![]},'version':0x1,'plugins':['wholerow']};return _0x177fd5[_0x269812('0x32a')][_0x269812('0x111d')]!=='admin'?_0x5574d8['userProfileSection'][_0x269812('0xbaa')]({'fields':_0x269812('0x36d'),'userProfileId':_0x177fd5[_0x269812('0x32a')][_0x269812('0x781')],'sectionId':0x4b3})[_0x269812('0x1549')][_0x269812('0x11bf')](function(_0x13b52c){const _0x7bad25=_0x269812;return _0x177fd5[_0x7bad25('0x1d63')]=_0x13b52c&&_0x13b52c[_0x7bad25('0x27d2')]==0x1?_0x13b52c[_0x7bad25('0x19b2')][0x0]:null,_0x442eb2;})[_0x269812('0x151d')](function(_0x43cbe5){const _0x4fb6c0=_0x269812;_0x476de2[_0x4fb6c0('0x255')]({'title':_0x4fb6c0('0x1d30'),'msg':_0x43cbe5[_0x4fb6c0('0x1b86')]});}):_0x442eb2;}function _0x5e5a67(_0x1504a8){return _0x1504a8?{'loaded':_0x1ee942,'select_node':_0x45cd8a}:{'loaded':_0x44ad19,'select_node':_0x12066d};}function _0x45cd8a(_0x2264e4,_0x4cebfd){const _0x99cc77=_0x1a2ac0;_0x177fd5[_0x99cc77('0x2275')][_0x99cc77('0x823')](!![])[_0x99cc77('0x26f4')](),_0x177fd5['treeDefaultInstance'][_0x99cc77('0x823')](!![])[_0x99cc77('0x13e5')](),_0x177fd5[_0x99cc77('0x1049')]=_0x4cebfd[_0x99cc77('0xb14')],_0x177fd5['currentNode'][_0x99cc77('0xa8d')]=!![],_0x177fd5[_0x99cc77('0x8db')]=_0x177fd5['treeCustomInstance'][_0x99cc77('0x823')](!![])[_0x99cc77('0x1877')](_0x177fd5[_0x99cc77('0x1049')])['join']('/\x20'),_0x177fd5['apiName']='analyticCustomReport',_0x177fd5[_0x99cc77('0x1f2a')]['parent']=_0x4cebfd[_0x99cc77('0xb14')]['id'],_0x19584e();}function _0x12066d(_0x4fa3b5,_0x449cc6){const _0x57029d=_0x1a2ac0;_0x177fd5[_0x57029d('0x5e')][_0x57029d('0x823')](!![])[_0x57029d('0x26f4')](),_0x177fd5['treeCustomInstance']['jstree'](!![])['close_all'](),_0x177fd5[_0x57029d('0x1049')]=_0x449cc6[_0x57029d('0xb14')],_0x177fd5[_0x57029d('0x1049')]['custom']=![],_0x177fd5[_0x57029d('0x8db')]=_0x177fd5['treeDefaultInstance'][_0x57029d('0x823')](!![])[_0x57029d('0x1877')](_0x177fd5[_0x57029d('0x1049')])[_0x57029d('0xa04')]('/\x20'),_0x177fd5['apiName']='analyticDefaultReport',_0x177fd5[_0x57029d('0x1f2a')][_0x57029d('0x1592')]=_0x449cc6[_0x57029d('0xb14')]['id'],_0x19584e();}function _0x1ee942(){const _0x4fd257=_0x1a2ac0;if(!_0x177fd5[_0x4fd257('0x164b')]&&_0x177fd5[_0x4fd257('0x2c5')]==='analyticCustomReport'){const _0x10b95a=_0x177fd5[_0x4fd257('0x5e')][_0x4fd257('0x823')](!![])[_0x4fd257('0xb86')](_0x177fd5[_0x4fd257('0x1f2a')][_0x4fd257('0x1592')]);_0x45cd8a(null,{'node':_0x10b95a,'selected':_0x10b95a['id']});}}function _0x44ad19(){const _0x186810=_0x1a2ac0;if(!_0x177fd5[_0x186810('0x164b')]&&_0x177fd5[_0x186810('0x2c5')]===_0x186810('0x19f4')){const _0x7f2781=_0x177fd5[_0x186810('0x2275')][_0x186810('0x823')](!![])[_0x186810('0xb86')](_0x177fd5[_0x186810('0x1f2a')][_0x186810('0x1592')]);_0x12066d(null,{'node':_0x7f2781,'selected':_0x7f2781['id']});}}function _0x19584e(){const _0x2d441c=_0x1a2ac0;_0x177fd5['query'][_0x2d441c('0x1393')]=(_0x177fd5[_0x2d441c('0x1f2a')][_0x2d441c('0x1c2')]-0x1)*_0x177fd5[_0x2d441c('0x1f2a')]['limit'];if(_0x177fd5[_0x2d441c('0x2c5')]){if(_0x177fd5[_0x2d441c('0x32a')]['role']==='admin')_0x177fd5['promise']=_0x5574d8[_0x177fd5[_0x2d441c('0x2c5')]][_0x2d441c('0xbaa')](_0x177fd5[_0x2d441c('0x1f2a')],_0x4529f3)['$promise'];else{if(!_0x177fd5[_0x2d441c('0x1d63')])return _0x4529f3(null);else{if(_0x177fd5[_0x2d441c('0x1d63')][_0x2d441c('0xf11')])_0x177fd5[_0x2d441c('0x13f')]=_0x5574d8[_0x177fd5[_0x2d441c('0x2c5')]][_0x2d441c('0xbaa')](_0x177fd5[_0x2d441c('0x1f2a')],_0x4529f3)['$promise'];else{let _0x176f96=[];_0x177fd5[_0x2d441c('0x13f')]=_0x5574d8[_0x177fd5[_0x2d441c('0x2c5')]]['get'](_0x177fd5['query'])['$promise'][_0x2d441c('0x11bf')](function(_0x252ad0){const _0x10498e=_0x2d441c;return _0x176f96=_0x252ad0&&_0x252ad0['rows']?_0x252ad0[_0x10498e('0x19b2')]:[],_0x176f96[_0x10498e('0x1e22')]>0x0?_0x5574d8[_0x10498e('0x26d1')][_0x10498e('0xbaa')]({'sectionId':_0x177fd5[_0x10498e('0x1d63')]['id'],'type':_0x177fd5['apiName']==='analyticDefaultReport'?_0x10498e('0x951'):_0x10498e('0x18a')})[_0x10498e('0x1549')][_0x10498e('0x11bf')](function(_0x259a43){const _0x44ed20=_0x10498e,_0x4fc1cf=_0x259a43&&_0x259a43[_0x44ed20('0x19b2')]?_0x259a43[_0x44ed20('0x19b2')]:[];if(_0x4fc1cf['length']>0x0){const _0x116fa6=[];return _0x176f96['forEach'](function(_0x51ae78){const _0x388b04=_0x44ed20,_0x5212f9=_0x36f548()[_0x388b04('0x1ad4')](_0x4fc1cf,['resourceId',_0x51ae78['id']]);if(_0x5212f9)_0x116fa6[_0x388b04('0x105d')](_0x51ae78);}),_0x4529f3({'count':_0x116fa6[_0x44ed20('0x1e22')],'rows':_0x116fa6});}else return _0x4529f3(null);}):_0x4529f3(null);})[_0x2d441c('0x151d')](function(_0x82c077){const _0x4319a4=_0x2d441c;_0x476de2[_0x4319a4('0x255')]({'title':_0x82c077[_0x4319a4('0xff9')]?'API:'+_0x82c077['status']+'\x20-\x20'+_0x82c077[_0x4319a4('0x212f')]:_0x4319a4('0x175'),'msg':_0x82c077['data']?JSON['stringify'](_0x82c077[_0x4319a4('0x4e8')]):_0x82c077[_0x4319a4('0xaab')]()});});}}}}}function _0x4529f3(_0x11278e){const _0x4ece12=_0x1a2ac0;_0x177fd5[_0x4ece12('0x991')]=_0x11278e||{'count':0x0,'rows':[]},!_0x177fd5[_0x4ece12('0x164b')]&&_0x177fd5['selectedReport']['push'](_0x36f548()[_0x4ece12('0x1ad4')](_0x177fd5[_0x4ece12('0x991')][_0x4ece12('0x19b2')],{'id':_0x177fd5[_0x4ece12('0x11a')]['id']}));}function _0x54ff6(){const _0x133bed=_0x1a2ac0;_0x177fd5[_0x133bed('0x589')]=_0x177fd5[_0x133bed('0x179e')][0x0]?angular[_0x133bed('0xa03')](_0x177fd5[_0x133bed('0x179e')][0x0][_0x133bed('0x88f')]):[],_0x177fd5['treeCustomData']=_0x177fd5['treeReports'][0x1]?angular[_0x133bed('0xa03')](_0x177fd5[_0x133bed('0x179e')][0x1][_0x133bed('0x88f')]):[],_0x177fd5[_0x133bed('0x1a2a')]=_0x293eba(),_0x177fd5[_0x133bed('0x196')]=_0x5e5a67(![]),_0x177fd5[_0x133bed('0x846')]=_0x5e5a67(!![]),_0x1f3f6e[_0x133bed('0xb9')]({'controller':function(){return _0x177fd5;},'controllerAs':'vm','templateUrl':_0x55bf23,'autoWrap':!![],'skipHide':!![]});}function _0x3d28b2(){const _0x3be0c1=_0x1a2ac0;_0x177fd5[_0x3be0c1('0x934')][_0x3be0c1('0x1964')]=_0x177fd5[_0x3be0c1('0x2127')][0x0][_0x3be0c1('0x1909')],_0x177fd5[_0x3be0c1('0x934')]['attrReport']=_0x177fd5['selectedReport'][0x0]['id'],_0x177fd5[_0x3be0c1('0x934')][_0x3be0c1('0x32e')]=_0x177fd5['currentNode'][_0x3be0c1('0xa8d')]?_0x3be0c1('0xa8d'):_0x3be0c1('0xb2f');if(!_0x177fd5[_0x3be0c1('0x164b')]){const _0x347461={'name':_0x3be0c1('0x19e3'),'type':_0x177fd5['dashboarditem'][_0x3be0c1('0x32e')],'value':_0x177fd5[_0x3be0c1('0x2127')][0x0]['id']};_0x177fd5['dashboarditem'][_0x3be0c1('0x1ccd')][_0x3be0c1('0x1ae')](_0x36f548()[_0x3be0c1('0x1b12')](_0x177fd5[_0x3be0c1('0x934')]['attrs'],0x1,_0x347461));}_0x329fcb[_0x3be0c1('0x162d')][_0x3be0c1('0x1964')][_0x3be0c1('0x42b')](),_0x1f3f6e[_0x3be0c1('0x237e')]();}function _0x402ff0(){const _0x4ac235=_0x1a2ac0;_0x1f3f6e[_0x4ac235('0x237e')]();}function _0x137f3c(_0x1e6757){return _0x1e6757===null?undefined:new Date(_0x1e6757);}function _0x363798(_0x8d9c87){_0x1f3f6e['hide'](_0x8d9c87);}}const _0x438e42=_0x514329,_0x31938f=_0x351988['p']+_0x21d0f5('0x1824');_0x4c8128[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0xcbc'),_0x21d0f5('0x16b9'),_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),_0x21d0f5('0xb6b'),_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1'),'api',_0x21d0f5('0x142d'),_0x21d0f5('0x1150'),_0x21d0f5('0xc1a'),_0x21d0f5('0x1d63')];function _0x4c8128(_0x4440cb,_0x588b5e,_0x441268,_0x188a39,_0x46a18c,_0x131cfc,_0x2d50ef,_0x18eb03,_0x14fcbb,_0x99175f,_0x97e238,_0x54ff0f){const _0x1e3d0f=_0x21d0f5,_0x2a856f=this;_0x2a856f[_0x1e3d0f('0x32a')]=_0x99175f[_0x1e3d0f('0x2428')](),_0x2a856f[_0x1e3d0f('0x17ff')]=_0x131cfc,_0x2a856f[_0x1e3d0f('0x23e1')]=_0x2d50ef,_0x2a856f[_0x1e3d0f('0x2834')]=_0x2a856f[_0x1e3d0f('0x23e1')][_0x1e3d0f('0x1d4')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2a856f[_0x1e3d0f('0x1d9a')]=_0x588b5e[_0x1e3d0f('0x1797')]()+_0x1e3d0f('0x16a1')+_0x588b5e[_0x1e3d0f('0x14ec')](),_0x2a856f[_0x1e3d0f('0xc1a')]=_0x97e238||_0x4440cb['params'][_0x1e3d0f('0xc1a')]||{},_0x2a856f[_0x1e3d0f('0x1d63')]=_0x54ff0f&&_0x54ff0f[_0x1e3d0f('0x27d2')]==0x1?_0x54ff0f[_0x1e3d0f('0x19b2')][0x0]:null,_0x2a856f[_0x1e3d0f('0xb25')]=_0x99175f[_0x1e3d0f('0x1530')](_0x2a856f[_0x1e3d0f('0x1d63')]?_0x2a856f[_0x1e3d0f('0x1d63')]['crudPermissions']:null),_0x2a856f[_0x1e3d0f('0x2c9')]={},_0x2a856f['selectedTab']=_0x4440cb[_0x1e3d0f('0x1ab3')][_0x1e3d0f('0x205c')]||0x0,_0x2a856f['clonedialog']=_0x3d9756,_0x2a856f[_0x1e3d0f('0x15dc')]=_0x1d9e5a,_0x2a856f[_0x1e3d0f('0xb30')]=_0x14fcbb['info'],_0x2a856f[_0x1e3d0f('0x1fd1')]=_0x2413b2,_0x2a856f['saveCustomDashboard']=_0xa04c41;function _0x3d9756(_0x853681,_0x234855){const _0x19425c=_0x1e3d0f;_0x441268[_0x19425c('0xb9')]({'controller':_0x19425c('0x2f6'),'controllerAs':'vm','templateUrl':_0x31938f,'parent':angular['element'](_0x188a39[_0x19425c('0x1d2')]),'targetEvent':_0x234855,'clickOutsideToClose':!![],'locals':{'customDashboard':_0x853681,'customDashboards':_0x2a856f[_0x19425c('0x15c8')]?_0x2a856f[_0x19425c('0x15c8')]['rows']:[],'crudPermissions':_0x2a856f[_0x19425c('0xb25')]}});}function _0x1d9e5a(_0x49db54){const _0x244ee3=_0x1e3d0f;_0x4440cb['go'](_0x244ee3('0x214d'),{'id':_0x49db54['id']});}function _0x2413b2(){const _0x527fdd=_0x1e3d0f;_0x4440cb['go'](_0x527fdd('0x1395'),{},{'reload':_0x527fdd('0x1395')});}function _0xa04c41(){const _0x309ae0=_0x1e3d0f;_0x18eb03[_0x309ae0('0xdb9')]['update']({'id':_0x2a856f[_0x309ae0('0xc1a')]['id']},_0x2a856f[_0x309ae0('0xc1a')])[_0x309ae0('0x1549')]['then'](function(){const _0x18acd2=_0x309ae0;_0x14fcbb['success']({'title':'CustomDashboard\x20updated!','msg':_0x2a856f[_0x18acd2('0xc1a')]['name']?_0x2a856f[_0x18acd2('0xc1a')][_0x18acd2('0x1909')]+_0x18acd2('0xd7'):''});})[_0x309ae0('0x151d')](function(_0x2d57d9){const _0x41832e=_0x309ae0;_0x14fcbb[_0x41832e('0x255')]({'title':_0x2d57d9['status']?'API:'+_0x2d57d9[_0x41832e('0xff9')]+_0x41832e('0xb0b')+_0x2d57d9[_0x41832e('0x212f')]:'SYSTEM:GETdashboard','msg':_0x2d57d9[_0x41832e('0x4e8')]?JSON['stringify'](_0x2d57d9[_0x41832e('0x4e8')]):_0x2d57d9[_0x41832e('0xaab')]()});});}}const _0x30ec99=_0x4c8128;_0x3d953f['$inject']=['$scope',_0x21d0f5('0xcbc'),_0x21d0f5('0x16b9'),_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0xb6b'),_0x21d0f5('0x142d'),'intervals',_0x21d0f5('0x507'),_0x21d0f5('0x12a5'),'Auth',_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1'),'crudPermissions'];function _0x3d953f(_0x26fb1e,_0x14eea9,_0x3a41ec,_0x3b89c3,_0x41c9a6,_0x3a2efa,_0x317804,_0x446ac0,_0x3cc64a,_0x1626df,_0x16bf28,_0x4f1464,_0x5d7993,_0x2c4d9c){const _0x26ab60=_0x21d0f5,_0x4cb22b=this;_0x4cb22b['currentUser']=_0x16bf28['getCurrentUser'](),_0x4cb22b[_0x26ab60('0x120f')]=[],_0x4cb22b[_0x26ab60('0x23e1')]=_0x5d7993,_0x4cb22b['license']=_0x4f1464,_0x4cb22b[_0x26ab60('0xb25')]=_0x2c4d9c,_0x4cb22b[_0x26ab60('0x2c9')]={},_0x4cb22b[_0x26ab60('0x2834')]=_0x4cb22b[_0x26ab60('0x23e1')]&&_0x4cb22b[_0x26ab60('0x23e1')][_0x26ab60('0x1d4')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x4cb22b[_0x26ab60('0x134b')]=_0x26ab60('0x1d07'),_0x4cb22b[_0x26ab60('0x507')]=angular['copy'](_0x3cc64a),_0x4cb22b[_0x26ab60('0xe82')]=_0x446ac0,_0x4cb22b[_0x26ab60('0x18cf')]=![];!_0x4cb22b[_0x26ab60('0x507')]&&(_0x4cb22b[_0x26ab60('0x507')]={},_0x4cb22b[_0x26ab60('0x134b')]=_0x26ab60('0x1aba'),_0x4cb22b[_0x26ab60('0x18cf')]=!![]);_0x4cb22b['addNewInterval']=_0x357ad7,_0x4cb22b[_0x26ab60('0x26c6')]=_0x1c89e0,_0x4cb22b['deleteInterval']=_0x22a82d,_0x4cb22b['getDateFromString']=_0x4cbeae,_0x4cb22b['closeDialog']=_0x390b11;function _0x357ad7(){const _0x43e6c0=_0x26ab60;_0x4cb22b[_0x43e6c0('0x120f')]=[],_0x1626df['interval']['save'](_0x4cb22b[_0x43e6c0('0x507')])[_0x43e6c0('0x1549')][_0x43e6c0('0x11bf')](function(_0x51323c){const _0x46f8dd=_0x43e6c0;_0x4cb22b[_0x46f8dd('0xe82')][_0x46f8dd('0x880')](_0x51323c[_0x46f8dd('0x2866')]()),_0x317804[_0x46f8dd('0x2693')]({'title':_0x46f8dd('0x747'),'msg':_0x4cb22b[_0x46f8dd('0x507')][_0x46f8dd('0x1909')]?_0x4cb22b['interval']['name']+'\x20has\x20been\x20created!':''}),_0x390b11(_0x51323c);})['catch'](function(_0x3d92de){const _0x2bf606=_0x43e6c0;if(_0x3d92de[_0x2bf606('0x4e8')]&&_0x3d92de[_0x2bf606('0x4e8')][_0x2bf606('0x120f')]&&_0x3d92de[_0x2bf606('0x4e8')][_0x2bf606('0x120f')]['length']){_0x4cb22b['errors']=_0x3d92de[_0x2bf606('0x4e8')][_0x2bf606('0x120f')]||[{'message':_0x3d92de[_0x2bf606('0xaab')](),'type':_0x2bf606('0x200b')}];for(let _0x22be54=0x0;_0x22be54<_0x3d92de[_0x2bf606('0x4e8')]['errors'][_0x2bf606('0x1e22')];_0x22be54+=0x1){_0x317804[_0x2bf606('0x255')]({'title':_0x3d92de['data']['errors'][_0x22be54][_0x2bf606('0x19fd')],'msg':_0x3d92de['data'][_0x2bf606('0x120f')][_0x22be54][_0x2bf606('0x1b86')]});}}else _0x317804[_0x2bf606('0x255')]({'title':_0x3d92de[_0x2bf606('0xff9')]?_0x2bf606('0x574')+_0x3d92de[_0x2bf606('0xff9')]+_0x2bf606('0xb0b')+_0x3d92de['statusText']:_0x2bf606('0x200b'),'msg':_0x3d92de[_0x2bf606('0x4e8')]?JSON[_0x2bf606('0x3e')](_0x3d92de[_0x2bf606('0x4e8')]['message']):_0x3d92de[_0x2bf606('0xaab')]()});});}function _0x1c89e0(){const _0x2ae69a=_0x26ab60;_0x4cb22b[_0x2ae69a('0x120f')]=[],_0x1626df['interval']['update']({'id':_0x4cb22b[_0x2ae69a('0x507')]['id']},_0x4cb22b[_0x2ae69a('0x507')])[_0x2ae69a('0x1549')][_0x2ae69a('0x11bf')](function(_0x25c3c0){const _0x430ae8=_0x2ae69a,_0x3eac6d=_0x36f548()[_0x430ae8('0x1ad4')](_0x4cb22b[_0x430ae8('0xe82')],{'id':_0x25c3c0['id']});_0x3eac6d&&_0x36f548()['merge'](_0x3eac6d,_0x36f548()[_0x430ae8('0x258')](_0x25c3c0['toJSON'](),_0x36f548()[_0x430ae8('0xe22')](_0x3eac6d))),_0x317804[_0x430ae8('0x2693')]({'title':_0x430ae8('0x1177'),'msg':_0x4cb22b[_0x430ae8('0x507')][_0x430ae8('0x1909')]?_0x4cb22b[_0x430ae8('0x507')]['name']+'\x20has\x20been\x20saved!':''}),_0x390b11(_0x25c3c0);})[_0x2ae69a('0x151d')](function(_0x29cf37){const _0x494b5c=_0x2ae69a;if(_0x29cf37['data']&&_0x29cf37[_0x494b5c('0x4e8')][_0x494b5c('0x120f')]&&_0x29cf37['data'][_0x494b5c('0x120f')]['length']){_0x4cb22b[_0x494b5c('0x120f')]=_0x29cf37[_0x494b5c('0x4e8')][_0x494b5c('0x120f')]||[{'message':_0x29cf37['toString'](),'type':_0x494b5c('0x3dd')}];for(let _0x47d766=0x0;_0x47d766<_0x29cf37['data'][_0x494b5c('0x120f')][_0x494b5c('0x1e22')];_0x47d766++){_0x317804[_0x494b5c('0x255')]({'title':_0x29cf37['data'][_0x494b5c('0x120f')][_0x47d766]['type'],'msg':_0x29cf37['data'][_0x494b5c('0x120f')][_0x47d766][_0x494b5c('0x1b86')]});}}else _0x317804[_0x494b5c('0x255')]({'title':_0x29cf37[_0x494b5c('0xff9')]?_0x494b5c('0x574')+_0x29cf37[_0x494b5c('0xff9')]+_0x494b5c('0xb0b')+_0x29cf37[_0x494b5c('0x212f')]:_0x494b5c('0x3dd'),'msg':_0x29cf37[_0x494b5c('0x4e8')]?JSON[_0x494b5c('0x3e')](_0x29cf37[_0x494b5c('0x4e8')][_0x494b5c('0x1b86')]):_0x29cf37['toString']()});});}function _0x22a82d(_0x29a8d6){const _0x50e493=_0x26ab60;_0x4cb22b[_0x50e493('0x120f')]=[];const _0x281754=_0x3b89c3['confirm']()[_0x50e493('0x134b')]('Are\x20you\x20sure?')[_0x50e493('0x252a')](_0x50e493('0x12a'))[_0x50e493('0xb2e')](_0x50e493('0x1982'))['ok']('Delete')[_0x50e493('0x26c9')](_0x50e493('0x784'))[_0x50e493('0x1e25')](_0x29a8d6);_0x3b89c3['show'](_0x281754)['then'](function(){const _0x265d7e=_0x50e493;_0x1626df[_0x265d7e('0x507')][_0x265d7e('0x2088')]({'id':_0x4cb22b[_0x265d7e('0x507')]['id']})['$promise'][_0x265d7e('0x11bf')](function(){const _0x44c7a4=_0x265d7e;_0x36f548()[_0x44c7a4('0x14a5')](_0x4cb22b[_0x44c7a4('0xe82')],{'id':_0x4cb22b[_0x44c7a4('0x507')]['id']}),_0x317804[_0x44c7a4('0x2693')]({'title':_0x44c7a4('0x16c3'),'msg':(_0x4cb22b[_0x44c7a4('0x507')][_0x44c7a4('0x1909')]||'interval')+'\x20has\x20been\x20deleted!'}),_0x390b11(_0x4cb22b['interval']);})[_0x265d7e('0x151d')](function(_0x4539dc){const _0x18a557=_0x265d7e;if(_0x4539dc['data']&&_0x4539dc['data'][_0x18a557('0x120f')]&&_0x4539dc[_0x18a557('0x4e8')]['errors']['length']){_0x4cb22b[_0x18a557('0x120f')]=_0x4539dc['data'][_0x18a557('0x120f')]||[{'message':_0x4539dc[_0x18a557('0xaab')](),'type':_0x18a557('0xb97')}];for(let _0x2d8511=0x0;_0x2d8511<_0x4539dc[_0x18a557('0x4e8')][_0x18a557('0x120f')][_0x18a557('0x1e22')];_0x2d8511++){_0x317804[_0x18a557('0x255')]({'title':_0x4539dc[_0x18a557('0x4e8')]['errors'][_0x2d8511]['type'],'msg':_0x4539dc[_0x18a557('0x4e8')][_0x18a557('0x120f')][_0x2d8511][_0x18a557('0x1b86')]});}}else _0x317804['error']({'title':_0x4539dc[_0x18a557('0xff9')]?_0x18a557('0x574')+_0x4539dc[_0x18a557('0xff9')]+'\x20-\x20'+_0x4539dc[_0x18a557('0x212f')]:_0x18a557('0xb97'),'msg':_0x4539dc[_0x18a557('0x4e8')]?JSON[_0x18a557('0x3e')](_0x4539dc[_0x18a557('0x4e8')][_0x18a557('0x1b86')]):_0x4539dc[_0x18a557('0x1b86')]||_0x4539dc[_0x18a557('0xaab')]()});});},function(){});}function _0x4cbeae(_0x54facb){return _0x54facb===null?undefined:new Date(_0x54facb);}function _0x390b11(_0x303ade){const _0x24ccf6=_0x26ab60;_0x3b89c3[_0x24ccf6('0x237e')](_0x303ade);}}const _0x3a8e99=_0x3d953f;_0x3fa824['$inject']=[_0x21d0f5('0xcbc'),_0x21d0f5('0x1ca2'),_0x21d0f5('0x1d2f'),_0x21d0f5('0x216f'),_0x21d0f5('0x507'),_0x21d0f5('0xe82'),'toasty','api',_0x21d0f5('0x1150'),_0x21d0f5('0xb25')];function _0x3fa824(_0x519674,_0x2128a9,_0x12f035,_0x307dea,_0xff02f2,_0x479ca6,_0x1a46a1,_0x48bde0,_0x20d9cc,_0x55c3e2){const _0xa080c6=_0x21d0f5,_0x1d52be=this;_0x1d52be['currentUser']=_0x20d9cc[_0xa080c6('0x2428')](),_0x1d52be[_0xa080c6('0x120f')]=[],_0x1d52be['title']='TOOLS.EDIT_INTERVAL',_0x1d52be[_0xa080c6('0x507')]=angular['copy'](_0xff02f2),_0x1d52be[_0xa080c6('0xe82')]=_0x479ca6,_0x1d52be[_0xa080c6('0x18cf')]=![],_0x1d52be['types']=['always',_0xa080c6('0xa8d')],_0x1d52be[_0xa080c6('0xb25')]=_0x55c3e2,_0x1d52be[_0xa080c6('0xd02')]=_0x307dea['getDaysOfWeek'](),_0x1d52be[_0xa080c6('0x0')]=_0x307dea[_0xa080c6('0xf7a')](),_0x1d52be[_0xa080c6('0x19c8')]=_0x307dea[_0xa080c6('0x311')](),_0x1d52be[_0xa080c6('0x256b')]=_0x307dea[_0xa080c6('0x1ebc')]();if(!_0x1d52be[_0xa080c6('0x507')])_0x1d52be[_0xa080c6('0x507')]={'interval':_0xa080c6('0x1830')},_0x1d52be['type']=_0xa080c6('0x27e5'),_0x1d52be[_0xa080c6('0x134b')]='TOOLS.NEW_INTERVAL',_0x1d52be[_0xa080c6('0x18cf')]=!![];else{if(_0x1d52be['interval'][_0xa080c6('0x507')]!==_0xa080c6('0x1830')){_0x1d52be[_0xa080c6('0x19fd')]=_0xa080c6('0xa8d');const _0x361bed=_0x1d52be[_0xa080c6('0x507')][_0xa080c6('0x507')][_0xa080c6('0xaf8')](','),_0x4d3c42=_0x361bed[0x0],_0x3fdea1=_0x361bed[0x1],_0x3aa88b=_0x361bed[0x2],_0x37b03f=_0x361bed[0x3];if(_0x4d3c42!=='*'){const _0x22d8a1=_0x4d3c42[_0xa080c6('0xaf8')]('-')[0x0],_0x52b3c4=_0x4d3c42['split']('-')[0x1];let _0x3c8ca3;_0x3c8ca3=new Date(),_0x3c8ca3[_0xa080c6('0x29e')](Number(_0x22d8a1[_0xa080c6('0xaf8')](':')[0x0])),_0x3c8ca3[_0xa080c6('0x7b6')](Number(_0x22d8a1[_0xa080c6('0xaf8')](':')[0x1])),_0x1d52be[_0xa080c6('0x269b')]=_0x3c8ca3,_0x3c8ca3=new Date(),_0x3c8ca3[_0xa080c6('0x29e')](Number(_0x52b3c4[_0xa080c6('0xaf8')](':')[0x0])),_0x3c8ca3[_0xa080c6('0x7b6')](Number(_0x52b3c4['split'](':')[0x1])),_0x1d52be[_0xa080c6('0x19e5')]=_0x3c8ca3;}_0x3fdea1!=='*'&&(_0x1d52be[_0xa080c6('0x126e')]=_0x3fdea1['split']('-')[0x0],_0x1d52be[_0xa080c6('0x261')]=_0x3fdea1[_0xa080c6('0xaf8')]('-')[0x1]),_0x3aa88b!=='*'&&(_0x1d52be['monthDayFrom']=_0x3aa88b[_0xa080c6('0xaf8')]('-')[0x0],_0x1d52be[_0xa080c6('0x1883')]=_0x3aa88b['split']('-')[0x1]),_0x37b03f!=='*'&&(_0x1d52be['monthFrom']=_0x37b03f[_0xa080c6('0xaf8')]('-')[0x0],_0x1d52be[_0xa080c6('0x1155')]=_0x37b03f[_0xa080c6('0xaf8')]('-')[0x1]);}else _0x1d52be[_0xa080c6('0x19fd')]=_0xa080c6('0x27e5');}_0x519674[_0xa080c6('0x1ab3')]['id']&&!_0x1d52be[_0xa080c6('0x507')]['application']&&(_0x1d52be[_0xa080c6('0x507')]['IntervalId']=_0x519674[_0xa080c6('0x1ab3')]['id']);_0x1d52be[_0xa080c6('0x507')][_0xa080c6('0x6b4')]&&_0x1d52be[_0xa080c6('0x507')][_0xa080c6('0x1cf1')]&&(_0x1d52be['type']='list');_0x1d52be[_0xa080c6('0x119a')]=_0x495680,_0x1d52be[_0xa080c6('0x26c6')]=_0x3999d0,_0x1d52be[_0xa080c6('0xc4e')]=_0x28638e;_0x1d52be['interval'][_0xa080c6('0x1cf1')]&&(_0x20d9cc['hasRole'](_0xa080c6('0xf45'))?_0x48bde0['interval'][_0xa080c6('0xbaa')]({'fields':_0xa080c6('0x1af5'),'IntervalId':_0xa080c6('0xb5f'),'nolimit':!![]})[_0xa080c6('0x1549')][_0xa080c6('0x11bf')](function(_0x40fca7){const _0x2c8281=_0xa080c6;_0x1d52be[_0x2c8281('0xe82')]=_0x40fca7['rows']||[];})['catch'](function(_0x8e23d){const _0x41a731=_0xa080c6;_0x1a46a1[_0x41a731('0x255')]({'title':_0x8e23d[_0x41a731('0xff9')]?_0x41a731('0x574')+_0x8e23d[_0x41a731('0xff9')]+_0x41a731('0xb0b')+_0x8e23d[_0x41a731('0x212f')]:_0x41a731('0x611'),'msg':_0x8e23d[_0x41a731('0x4e8')]?JSON['stringify'](_0x8e23d[_0x41a731('0x4e8')]):_0x8e23d[_0x41a731('0xaab')]()});}):_0x48bde0[_0xa080c6('0x507')][_0xa080c6('0xbaa')]({'fields':'id,name,interval,IntervalId','IntervalId':'null','nolimit':!![]})[_0xa080c6('0x1549')][_0xa080c6('0x11bf')](function(_0x251fea){const _0x43c503=_0xa080c6;_0x1d52be[_0x43c503('0xe82')]=_0x251fea['rows']||[];})[_0xa080c6('0x11bf')](function(){const _0x577fca=_0xa080c6;return _0x48bde0[_0x577fca('0x1d63')][_0x577fca('0xbaa')]({'userProfileId':_0x1d52be[_0x577fca('0x32a')]['userProfileId'],'sectionId':0x3ec})[_0x577fca('0x1549')];})[_0xa080c6('0x11bf')](function(_0x4854cf){const _0x1ad3b3=_0xa080c6,_0xfc3d3c=_0x4854cf&&_0x4854cf[_0x1ad3b3('0x19b2')]?_0x4854cf[_0x1ad3b3('0x19b2')][0x0]:null;if(!_0xfc3d3c)_0x1d52be[_0x1ad3b3('0xe82')]=[];else{if(!_0xfc3d3c[_0x1ad3b3('0xf11')])return _0x48bde0[_0x1ad3b3('0x26d1')][_0x1ad3b3('0xbaa')]({'sectionId':_0xfc3d3c['id']})[_0x1ad3b3('0x1549')][_0x1ad3b3('0x11bf')](function(_0x147f02){const _0xb28e78=_0x1ad3b3,_0x3121fe=_0x147f02&&_0x147f02[_0xb28e78('0x19b2')]?_0x147f02[_0xb28e78('0x19b2')]:[],_0x839581=[];let _0x16eb2e=null;_0x1d52be[_0xb28e78('0x507')]&&(_0x16eb2e=_0x36f548()[_0xb28e78('0x1ad4')](_0x1d52be[_0xb28e78('0xe82')],{'name':_0x1d52be[_0xb28e78('0x507')]['IntervalId']})),_0x16eb2e&&!_0x36f548()[_0xb28e78('0x1cb3')](_0x3121fe,['resourceId',_0x16eb2e['id']])&&_0x1d52be[_0xb28e78('0xe82')][_0xb28e78('0x1f88')](function(_0x24be94){const _0x4c0b4c=_0xb28e78;_0x24be94['id']===_0x16eb2e['id']&&(_0x24be94[_0x4c0b4c('0x254a')]=![],_0x839581['push'](_0x24be94));}),_0x1d52be[_0xb28e78('0xe82')]=_0x839581;});}})[_0xa080c6('0x151d')](function(_0x266264){const _0x2b8e79=_0xa080c6;_0x1a46a1[_0x2b8e79('0x255')]({'title':_0x266264['status']?_0x2b8e79('0x574')+_0x266264['status']+_0x2b8e79('0xb0b')+_0x266264[_0x2b8e79('0x212f')]:_0x2b8e79('0x611'),'msg':_0x266264[_0x2b8e79('0x4e8')]?JSON['stringify'](_0x266264[_0x2b8e79('0x4e8')]):_0x266264[_0x2b8e79('0xaab')]()});}));function _0x475a67(){const _0x15ab45=_0xa080c6;switch(_0x1d52be[_0x15ab45('0x19fd')]){case'always':case _0x15ab45('0x257d'):return _0x15ab45('0x1830');case _0x15ab45('0xa8d'):{const _0x53508b=[];if(_0x1d52be[_0x15ab45('0x269b')]!=='*'&&_0x1d52be[_0x15ab45('0x269b')]&&_0x1d52be[_0x15ab45('0x19e5')]){const _0x1b7564=(_0x1d52be[_0x15ab45('0x269b')][_0x15ab45('0x1e34')]()<0xa?'0':'')+_0x1d52be[_0x15ab45('0x269b')][_0x15ab45('0x1e34')]()+':'+((_0x1d52be[_0x15ab45('0x269b')]['getMinutes']()<0xa?'0':'')+_0x1d52be[_0x15ab45('0x269b')][_0x15ab45('0xdcc')]()),_0x2ac67b=(_0x1d52be[_0x15ab45('0x19e5')][_0x15ab45('0x1e34')]()<0xa?'0':'')+_0x1d52be[_0x15ab45('0x19e5')][_0x15ab45('0x1e34')]()+':'+((_0x1d52be[_0x15ab45('0x19e5')][_0x15ab45('0xdcc')]()<0xa?'0':'')+_0x1d52be[_0x15ab45('0x19e5')][_0x15ab45('0xdcc')]());_0x53508b[_0x15ab45('0x105d')](_0x1b7564+'-'+_0x2ac67b);}else _0x53508b['push']('*');return _0x1d52be[_0x15ab45('0x126e')]?_0x1d52be[_0x15ab45('0x261')]?_0x53508b['push'](_0x1d52be[_0x15ab45('0x126e')]+'-'+_0x1d52be[_0x15ab45('0x261')]):_0x53508b[_0x15ab45('0x105d')](_0x1d52be['dayOfWeekFrom']):_0x53508b['push']('*'),_0x1d52be[_0x15ab45('0xecd')]?_0x1d52be[_0x15ab45('0x1883')]?_0x53508b[_0x15ab45('0x105d')](_0x1d52be['monthDayFrom']+'-'+_0x1d52be[_0x15ab45('0x1883')]):_0x53508b['push'](_0x1d52be[_0x15ab45('0xecd')]):_0x53508b['push']('*'),_0x1d52be['monthFrom']?_0x1d52be['monthTo']?_0x53508b['push'](_0x1d52be[_0x15ab45('0xad3')]+'-'+_0x1d52be[_0x15ab45('0x1155')]):_0x53508b[_0x15ab45('0x105d')](_0x1d52be['monthFrom']):_0x53508b['push']('*'),_0x53508b['join']();}}}function _0x495680(){const _0x15466c=_0xa080c6;_0x1d52be[_0x15466c('0x120f')]=[],_0x1d52be[_0x15466c('0x507')]['interval']=_0x475a67(),_0x48bde0[_0x15466c('0x507')][_0x15466c('0x259')](_0x1d52be['interval'])[_0x15466c('0x1549')][_0x15466c('0x11bf')](function(_0x1f31fd){const _0x404032=_0x15466c;_0x1d52be[_0x404032('0xe82')][_0x404032('0x105d')](_0x1f31fd),_0x1a46a1['success']({'title':_0x404032('0x747'),'msg':_0x1d52be['interval'][_0x404032('0x1909')]?_0x1d52be['interval'][_0x404032('0x1909')]+_0x404032('0x7fb'):''}),_0x28638e();})['catch'](function(_0xbc2c27){const _0x49936c=_0x15466c;console[_0x49936c('0x255')](_0xbc2c27),_0x1d52be[_0x49936c('0x120f')]=_0xbc2c27[_0x49936c('0x4e8')][_0x49936c('0x120f')]||[{'message':_0xbc2c27['toString'](),'type':'api.interval.save'}];});}function _0x3999d0(){const _0x1e8f2e=_0xa080c6;_0x1d52be[_0x1e8f2e('0x120f')]=[],_0x1d52be[_0x1e8f2e('0x507')]['interval']=_0x475a67(),_0x1d52be[_0x1e8f2e('0x507')][_0x1e8f2e('0x1cf1')]?(_0x1d52be[_0x1e8f2e('0x19fd')]!==_0x1e8f2e('0x257d')&&(_0x1d52be[_0x1e8f2e('0x507')][_0x1e8f2e('0x6b4')]=null),_0x28638e(_0x1d52be[_0x1e8f2e('0x507')])):_0x48bde0[_0x1e8f2e('0x507')][_0x1e8f2e('0x5ab')]({'id':_0x1d52be[_0x1e8f2e('0x507')]['id']},_0x1d52be['interval'])[_0x1e8f2e('0x1549')][_0x1e8f2e('0x11bf')](function(_0x2596eb){const _0x54b7b0=_0x1e8f2e,_0xc9606c=_0x36f548()['find'](_0x1d52be['intervals'],{'id':_0x2596eb['id']});_0xc9606c&&_0x36f548()[_0x54b7b0('0x47b')](_0xc9606c,_0x2596eb),_0x1a46a1[_0x54b7b0('0x2693')]({'title':'Interval\x20properly\x20saved!','msg':'Interval\x20has\x20been\x20saved!'}),_0x28638e();})[_0x1e8f2e('0x151d')](function(_0xbee242){const _0x558e3a=_0x1e8f2e;console[_0x558e3a('0x255')](_0xbee242),_0x1d52be[_0x558e3a('0x120f')]=_0xbee242[_0x558e3a('0x4e8')][_0x558e3a('0x120f')]||[{'message':_0xbee242[_0x558e3a('0xaab')](),'type':'api.interval.update'}];});}function _0x28638e(_0x5b95e0){const _0x370679=_0xa080c6;_0x2128a9[_0x370679('0x237e')](_0x5b95e0);}}const _0x423d39=_0x3fa824,_0x3cc74b=_0x351988['p']+_0x21d0f5('0xa9');_0x1ea667[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x5d8'),_0x21d0f5('0x1b80'),'$state','$q',_0x21d0f5('0xb6b'),_0x21d0f5('0x17f5'),_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),_0x21d0f5('0x142d'),_0x21d0f5('0x12a5'),'Auth'];function _0x1ea667(_0x579025,_0x3d7805,_0x5e47ff,_0x45a7d7,_0x56fbb4,_0x2b128f,_0x5cec87,_0x5e25ba,_0x584847,_0x3a33b9,_0x3fc2df){const _0x5ab4e1=_0x21d0f5,_0x59eb8d=this;_0x59eb8d[_0x5ab4e1('0x32a')]=_0x3fc2df[_0x5ab4e1('0x2428')](),_0x59eb8d['interval']={},_0x59eb8d['intervalIntervals']={'count':0x0,'rows':[]},_0x59eb8d[_0x5ab4e1('0xe73')]=[],_0x59eb8d[_0x5ab4e1('0xb25')],_0x59eb8d[_0x5ab4e1('0x127a')]={'animation':0x64,'onSort':function(_0x22d002){const _0x49e4ce=_0x5ab4e1;_0x3a33b9['interval']['addIntervals']({'id':_0x59eb8d[_0x49e4ce('0x507')]['id']},_0x22d002['models'])[_0x49e4ce('0x1549')][_0x49e4ce('0x11bf')](function(_0x1c5fa4){const _0x5e72e2=_0x49e4ce;_0x59eb8d[_0x5e72e2('0x2527')][_0x5e72e2('0x19b2')]=_0x1c5fa4;})[_0x49e4ce('0x151d')](function(_0x34e006){const _0x4dce23=_0x49e4ce;_0x584847[_0x4dce23('0x255')]({'title':_0x34e006[_0x4dce23('0xff9')]?'API:'+_0x34e006[_0x4dce23('0xff9')]+_0x4dce23('0xb0b')+_0x34e006[_0x4dce23('0x212f')]:'SYSTEM:SORTABLETABLE','msg':_0x34e006[_0x4dce23('0x4e8')]?JSON[_0x4dce23('0x3e')](_0x34e006[_0x4dce23('0x4e8')]):_0x34e006[_0x4dce23('0xaab')]()});});}},_0x59eb8d['query']={'fields':_0x5ab4e1('0x21a2'),'nolimit':_0x5ab4e1('0x204c'),'limit':0xa,'page':0x1},_0x59eb8d[_0x5ab4e1('0x286f')]=_0x2886b4,_0x59eb8d[_0x5ab4e1('0x560')]=_0x3ce6f9,_0x59eb8d['success']=_0x1083bb,_0x59eb8d['getIntervalIntervals']=_0x187433,_0x59eb8d[_0x5ab4e1('0x1dbc')]=_0x28d468,_0x59eb8d[_0x5ab4e1('0x810')]=_0x8ab7a9,_0x59eb8d[_0x5ab4e1('0x27eb')]=_0x1b038e,_0x59eb8d[_0x5ab4e1('0x4f4')]=_0x562bb5;function _0x2886b4(_0x35b4fe,_0x5c2d7d){const _0x29f1a4=_0x5ab4e1;_0x59eb8d[_0x29f1a4('0x507')]=_0x35b4fe,_0x59eb8d['crudPermissions']=typeof _0x5c2d7d!==_0x29f1a4('0x13e9')?_0x5c2d7d:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x59eb8d[_0x29f1a4('0x127a')][_0x29f1a4('0xa4b')]=!_0x59eb8d[_0x29f1a4('0xb25')][_0x29f1a4('0x25db')]?!![]:![],_0x59eb8d['query']['id']=_0x59eb8d[_0x29f1a4('0x507')]['id'],_0x187433();}function _0x3ce6f9(_0x5201c6,_0x2d12c8){const _0x224c68=_0x5ab4e1,_0x576dc1=_0x5cec87[_0x224c68('0x132b')]()[_0x224c68('0x134b')](_0x224c68('0x15c6'))[_0x224c68('0x1d03')](''+(_0x5201c6[_0x224c68('0x1909')]||_0x5201c6['id']&&_0x36f548()['upperFirst'](_0x224c68('0x11ff'))+_0x5201c6['id']||'interval')+_0x224c68('0x1c78')+_0x224c68('0x1a'))['ariaLabel'](_0x224c68('0x9bd'))[_0x224c68('0x1e25')](_0x2d12c8)['ok']('OK')['cancel'](_0x224c68('0x772'));_0x5cec87['show'](_0x576dc1)[_0x224c68('0x11bf')](function(){_0x1b038e(_0x5201c6);},function(){const _0xbbfd68=_0x224c68;console[_0xbbfd68('0xc78')](_0xbbfd68('0x772'));});}function _0x1083bb(_0x5a5373){const _0x3e18f8=_0x5ab4e1;_0x59eb8d[_0x3e18f8('0x2527')]=_0x5a5373||{'count':0x0,'rows':[]};}function _0x187433(){const _0x2e9366=_0x5ab4e1;_0x59eb8d[_0x2e9366('0x1f2a')]['offset']=(_0x59eb8d[_0x2e9366('0x1f2a')][_0x2e9366('0x1c2')]-0x1)*_0x59eb8d['query'][_0x2e9366('0xd5c')],_0x59eb8d[_0x2e9366('0x13f')]=_0x3a33b9[_0x2e9366('0x507')]['getIntervals'](_0x59eb8d['query'],_0x1083bb)[_0x2e9366('0x1549')];}function _0x28d468(_0x3c40f4,_0x5e8602){const _0x6d3a83=_0x5ab4e1;_0x5cec87[_0x6d3a83('0xb9')]({'controller':_0x6d3a83('0x3e3'),'controllerAs':'vm','templateUrl':_0x3cc74b,'parent':angular[_0x6d3a83('0x1e73')](_0x5e25ba[_0x6d3a83('0x1d2')]),'targetEvent':_0x3c40f4,'clickOutsideToClose':!![],'locals':{'interval':_0x5e8602,'intervals':_0x59eb8d[_0x6d3a83('0x2527')][_0x6d3a83('0x19b2')],'license':null,'setting':null,'crudPermissions':_0x59eb8d['crudPermissions']}});}function _0x1b038e(_0x111d26){const _0xad111=_0x5ab4e1;_0x3a33b9['interval'][_0xad111('0x2088')]({'id':_0x111d26['id']})[_0xad111('0x1549')]['then'](function(){const _0x1bc5a6=_0xad111;_0x36f548()['remove'](_0x59eb8d[_0x1bc5a6('0x2527')][_0x1bc5a6('0x19b2')],{'id':_0x111d26['id']}),_0x59eb8d['intervalIntervals'][_0x1bc5a6('0x27d2')]-=0x1,!_0x59eb8d['intervalIntervals'][_0x1bc5a6('0x19b2')][_0x1bc5a6('0x1e22')]&&_0x187433(),_0x584847[_0x1bc5a6('0x2693')]({'title':'Interval\x20deleted!','msg':_0x111d26[_0x1bc5a6('0x1909')]?_0x111d26[_0x1bc5a6('0x1909')]+_0x1bc5a6('0x433'):''});})[_0xad111('0x151d')](function(_0x4d854f){const _0x58182d=_0xad111;if(_0x4d854f[_0x58182d('0x4e8')]&&_0x4d854f[_0x58182d('0x4e8')][_0x58182d('0x120f')]&&_0x4d854f[_0x58182d('0x4e8')][_0x58182d('0x120f')][_0x58182d('0x1e22')]){_0x59eb8d[_0x58182d('0x120f')]=_0x4d854f[_0x58182d('0x4e8')][_0x58182d('0x120f')]||[{'message':_0x4d854f[_0x58182d('0xaab')](),'type':'SYSTEM:GETinterval'}];for(let _0x3047f1=0x0;_0x3047f1<_0x4d854f[_0x58182d('0x4e8')]['errors']['length'];_0x3047f1++){_0x584847[_0x58182d('0x255')]({'title':_0x4d854f[_0x58182d('0x4e8')][_0x58182d('0x120f')][_0x3047f1][_0x58182d('0x19fd')],'msg':_0x4d854f['data'][_0x58182d('0x120f')][_0x3047f1][_0x58182d('0x1b86')]});}}else _0x584847[_0x58182d('0x255')]({'title':_0x4d854f[_0x58182d('0xff9')]?_0x58182d('0x574')+_0x4d854f[_0x58182d('0xff9')]+_0x58182d('0xb0b')+_0x4d854f[_0x58182d('0x212f')]:_0x58182d('0xa8b'),'msg':_0x4d854f[_0x58182d('0x4e8')]?JSON[_0x58182d('0x3e')](_0x4d854f[_0x58182d('0x4e8')][_0x58182d('0x1b86')]):_0x4d854f[_0x58182d('0x1b86')]||_0x4d854f[_0x58182d('0xaab')]()});});}function _0x8ab7a9(){const _0x4b4944=_0x5ab4e1,_0x15d4b5=angular[_0x4b4944('0x6fb')](_0x59eb8d[_0x4b4944('0xe73')]);return _0x59eb8d[_0x4b4944('0xe73')]=[],_0x15d4b5;}function _0x562bb5(_0x5bcea2){const _0x525168=_0x5ab4e1,_0x4e4807=_0x5cec87[_0x525168('0x132b')]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20intervals?')['htmlContent'](_0x525168('0x2061')+_0x59eb8d[_0x525168('0xe73')]['length']+_0x525168('0xac6')+_0x525168('0x1a'))[_0x525168('0xb2e')](_0x525168('0x20ba'))[_0x525168('0x1e25')](_0x5bcea2)['ok']('OK')[_0x525168('0x26c9')](_0x525168('0x772'));_0x5cec87[_0x525168('0xb9')](_0x4e4807)[_0x525168('0x11bf')](function(){const _0x6a5056=_0x525168;_0x59eb8d['selectedIntervalIntervals'][_0x6a5056('0x1f88')](function(_0x2c379d){_0x1b038e(_0x2c379d);}),_0x59eb8d[_0x6a5056('0xe73')]=[];});}let _0x2221b4=!![],_0x8b1ccf=0x1;_0x3d7805[_0x5ab4e1('0x2087')](_0x5ab4e1('0x1d12'),function(_0x165e6f,_0x1eeccf){const _0x3c8037=_0x5ab4e1;_0x2221b4?_0x2b128f(function(){_0x2221b4=![];}):(!_0x1eeccf&&(_0x8b1ccf=_0x59eb8d[_0x3c8037('0x1f2a')][_0x3c8037('0x1c2')]),_0x165e6f!==_0x1eeccf&&(_0x59eb8d[_0x3c8037('0x1f2a')][_0x3c8037('0x1c2')]=0x1),!_0x165e6f&&(_0x59eb8d[_0x3c8037('0x1f2a')]['page']=_0x8b1ccf),_0x187433());});}const _0x5b83fc=_0x1ea667;_0x508e9d[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0xcbc'),_0x21d0f5('0x16b9'),_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),_0x21d0f5('0xb6b'),_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1'),'api','toasty',_0x21d0f5('0x1150'),_0x21d0f5('0x507'),'userProfileSection'];function _0x508e9d(_0x12345e,_0x385ed3,_0x4f7155,_0xb824d,_0x51864d,_0x136196,_0x45359e,_0x4fed0d,_0x4685f4,_0x540b7e,_0x4e3479,_0x30af65){const _0x2e5d1a=_0x21d0f5,_0x324264=this;_0x324264['currentUser']=_0x540b7e[_0x2e5d1a('0x2428')](),_0x324264[_0x2e5d1a('0x17ff')]=_0x136196,_0x324264[_0x2e5d1a('0x23e1')]=_0x45359e,_0x324264[_0x2e5d1a('0x2834')]=_0x324264[_0x2e5d1a('0x23e1')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x324264[_0x2e5d1a('0x1d9a')]=_0x385ed3[_0x2e5d1a('0x1797')]()+_0x2e5d1a('0x16a1')+_0x385ed3[_0x2e5d1a('0x14ec')](),_0x324264[_0x2e5d1a('0x507')]=_0x4e3479||_0x12345e[_0x2e5d1a('0x1ab3')][_0x2e5d1a('0x507')]||{},_0x324264[_0x2e5d1a('0x1d63')]=_0x30af65&&_0x30af65[_0x2e5d1a('0x27d2')]==0x1?_0x30af65[_0x2e5d1a('0x19b2')][0x0]:null,_0x324264[_0x2e5d1a('0xb25')]=_0x540b7e['parseCrudPermissions'](_0x324264['userProfileSection']?_0x324264['userProfileSection'][_0x2e5d1a('0xb25')]:null),_0x324264[_0x2e5d1a('0x2c9')]={},_0x324264['selectedTab']=_0x12345e[_0x2e5d1a('0x1ab3')][_0x2e5d1a('0x205c')]||0x0,_0x324264['alert']=_0x4685f4['info'],_0x324264[_0x2e5d1a('0x148b')]=_0x11f885,_0x324264[_0x2e5d1a('0x26c6')]=_0x21a1cc;function _0x11f885(){const _0x5ab8b4=_0x2e5d1a;_0x12345e['go'](_0x5ab8b4('0xfa9'),{},{'reload':_0x5ab8b4('0xfa9')});}function _0x21a1cc(){const _0x3db31d=_0x2e5d1a;_0x4fed0d[_0x3db31d('0x507')][_0x3db31d('0x5ab')]({'id':_0x324264['interval']['id']},_0x324264[_0x3db31d('0x507')])[_0x3db31d('0x1549')]['then'](function(){const _0x5fc31c=_0x3db31d;_0x4685f4[_0x5fc31c('0x2693')]({'title':_0x5fc31c('0x523'),'msg':_0x324264[_0x5fc31c('0x507')][_0x5fc31c('0x1909')]?_0x324264[_0x5fc31c('0x507')][_0x5fc31c('0x1909')]+_0x5fc31c('0xd7'):''});})['catch'](function(_0x3c9a38){const _0x26da18=_0x3db31d;_0x4685f4[_0x26da18('0x255')]({'title':_0x3c9a38[_0x26da18('0xff9')]?_0x26da18('0x574')+_0x3c9a38[_0x26da18('0xff9')]+'\x20-\x20'+_0x3c9a38[_0x26da18('0x212f')]:_0x26da18('0xa8b'),'msg':_0x3c9a38[_0x26da18('0x4e8')]?JSON['stringify'](_0x3c9a38['data']):_0x3c9a38[_0x26da18('0xaab')]()});});}}const _0x31c498=_0x508e9d,_0x1bd819=_0x351988['p']+_0x21d0f5('0x1ee4');_0xb679c3[_0x21d0f5('0x1e9a')]=['$scope','$window',_0x21d0f5('0xcbc'),_0x21d0f5('0x18fe'),'$mdDialog','$document','$timeout','$translate',_0x21d0f5('0xe82'),_0x21d0f5('0x25bc'),'userProfileSection',_0x21d0f5('0x12a5'),_0x21d0f5('0xda9'),'toasty','Auth',_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1')];function _0xb679c3(_0x5dedee,_0x2cf691,_0x3a1ec0,_0x1d2c11,_0x2005b7,_0x48c642,_0x21c54b,_0x1e773f,_0xcc5cdd,_0x393ef5,_0x184a63,_0x5cfe6f,_0xf53ba8,_0x17fded,_0x2d31eb,_0x535b7d,_0x2bef38){const _0x21c2c9=_0x21d0f5,_0x12e414=this;_0x12e414[_0x21c2c9('0x17ff')]=_0x535b7d,_0x12e414['setting']=_0x2bef38,_0x12e414[_0x21c2c9('0x32a')]=_0x2d31eb[_0x21c2c9('0x2428')](),_0x12e414[_0x21c2c9('0xe82')]=_0xcc5cdd||{'count':0x0,'rows':[]},_0x12e414[_0x21c2c9('0x25bc')]=_0x393ef5,_0x12e414[_0x21c2c9('0x1d63')]=_0x184a63&&_0x184a63[_0x21c2c9('0x27d2')]==0x1?_0x184a63['rows'][0x0]:null,_0x12e414[_0x21c2c9('0xb25')]=_0x2d31eb[_0x21c2c9('0x1530')](_0x12e414[_0x21c2c9('0x1d63')]?_0x12e414[_0x21c2c9('0x1d63')][_0x21c2c9('0xb25')]:null),_0x12e414['table']=_0x21c2c9('0xe82'),_0x12e414[_0x21c2c9('0x724')]='',_0x12e414[_0x21c2c9('0xe3c')]=null,_0x12e414[_0x21c2c9('0x945')]=[],_0x12e414[_0x21c2c9('0x1f2a')]={'fields':_0x21c2c9('0x219a'),'sort':'-updatedAt','IntervalId':'null','limit':0xa,'page':0x1},_0x12e414[_0x21c2c9('0x757')]=_0x331f25,_0x12e414[_0x21c2c9('0x549')]=_0x264800,_0x12e414[_0x21c2c9('0x2693')]=_0x126f87,_0x12e414['getIntervals']=_0x163899,_0x12e414[_0x21c2c9('0xbed')]=_0x300fad,_0x12e414['deleteInterval']=_0x59eb6d,_0x12e414[_0x21c2c9('0x4cb')]=_0x4751a5,_0x12e414['deleteSelectedIntervals']=_0x37208f,_0x12e414[_0x21c2c9('0xc57')]=_0x58193c,_0x12e414[_0x21c2c9('0xd8b')]=_0x576463;function _0x331f25(_0x1336fa){const _0x395d58=_0x21c2c9;_0x3a1ec0['go'](_0x395d58('0x325'),{'id':_0x1336fa['id'],'interval':_0x1336fa,'crudPermissions':_0x12e414['crudPermissions']});}function _0x264800(_0x551f16,_0x4fd485){const _0x2731d4=_0x21c2c9,_0x2a5285=_0x2005b7[_0x2731d4('0x132b')]()[_0x2731d4('0x134b')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x36f548()['startCase'](_0x2731d4('0x507'))+'?')[_0x2731d4('0x1d03')](_0x2731d4('0x2061')+(_0x551f16[_0x2731d4('0x1909')]||_0x2731d4('0x507'))+_0x2731d4('0x1c78')+_0x2731d4('0x1a'))[_0x2731d4('0xb2e')](_0x2731d4('0x9bd'))[_0x2731d4('0x1e25')](_0x4fd485)['ok']('OK')[_0x2731d4('0x26c9')](_0x2731d4('0x772'));_0x2005b7[_0x2731d4('0xb9')](_0x2a5285)[_0x2731d4('0x11bf')](function(){_0x59eb6d(_0x551f16);},function(){const _0x4c0574=_0x2731d4;console[_0x4c0574('0xc78')](_0x4c0574('0x772'));});}let _0x23ab52=!![],_0x42ebf8=0x1;_0x5dedee['$watch'](_0x21c2c9('0x842'),function(_0x511460,_0x41bbcf){const _0x3f43bd=_0x21c2c9;_0x23ab52?_0x21c54b(function(){_0x23ab52=![];}):(!_0x41bbcf&&(_0x42ebf8=_0x12e414[_0x3f43bd('0x1f2a')]['page']),_0x511460!==_0x41bbcf&&(_0x12e414['query']['page']=0x1),!_0x511460&&(_0x12e414[_0x3f43bd('0x1f2a')][_0x3f43bd('0x1c2')]=_0x42ebf8),_0x12e414[_0x3f43bd('0x431')]());});function _0x126f87(_0x718ad2){const _0x2857b7=_0x21c2c9;_0x12e414[_0x2857b7('0xe82')]=_0x718ad2||{'count':0x0,'rows':[]};}function _0x163899(){const _0x5ee142=_0x21c2c9;_0x12e414[_0x5ee142('0x1f2a')][_0x5ee142('0x1393')]=(_0x12e414[_0x5ee142('0x1f2a')][_0x5ee142('0x1c2')]-0x1)*_0x12e414['query']['limit'],_0x2d31eb[_0x5ee142('0x4ee')](_0x5ee142('0xf45'))?_0x12e414['promise']=_0x5cfe6f[_0x5ee142('0x507')][_0x5ee142('0xbaa')](_0x12e414[_0x5ee142('0x1f2a')],_0x126f87)['$promise']:(_0x12e414[_0x5ee142('0x1f2a')]['id']=_0x12e414[_0x5ee142('0x25bc')]['id'],_0x12e414['query'][_0x5ee142('0xe6')]=_0x5ee142('0x233e'),_0x12e414['promise']=_0x5cfe6f[_0x5ee142('0x25bc')][_0x5ee142('0x228e')](_0x12e414[_0x5ee142('0x1f2a')],_0x126f87)['$promise']);}function _0x300fad(_0x5ec493,_0x4846bf){const _0x2b5b1b=_0x21c2c9;_0x2005b7['show']({'controller':_0x2b5b1b('0x8bf'),'controllerAs':'vm','templateUrl':_0x1bd819,'parent':angular[_0x2b5b1b('0x1e73')](_0x48c642[_0x2b5b1b('0x1d2')]),'targetEvent':_0x5ec493,'clickOutsideToClose':!![],'locals':{'interval':_0x4846bf,'intervals':_0x12e414[_0x2b5b1b('0xe82')]['rows'],'license':_0x12e414['license'],'setting':_0x12e414[_0x2b5b1b('0x23e1')],'crudPermissions':_0x12e414[_0x2b5b1b('0xb25')]}});}function _0x59eb6d(_0x35c3a9){const _0x17701a=_0x21c2c9;_0x5cfe6f['interval'][_0x17701a('0x2088')]({'id':_0x35c3a9['id']})[_0x17701a('0x1549')]['then'](function(){const _0x169c72=_0x17701a;_0x36f548()['remove'](_0x12e414[_0x169c72('0xe82')][_0x169c72('0x19b2')],{'id':_0x35c3a9['id']}),_0x12e414['intervals'][_0x169c72('0x27d2')]-=0x1,!_0x12e414['intervals'][_0x169c72('0x19b2')][_0x169c72('0x1e22')]&&_0x12e414[_0x169c72('0x431')](),_0x17fded[_0x169c72('0x2693')]({'title':_0x36f548()[_0x169c72('0x13cf')](_0x169c72('0x1979'))+'\x20deleted!','msg':_0x35c3a9['name']?_0x35c3a9[_0x169c72('0x1909')]+_0x169c72('0x433'):''});})['catch'](function(_0x2753f5){const _0x4d8535=_0x17701a;if(_0x2753f5[_0x4d8535('0x4e8')]&&_0x2753f5[_0x4d8535('0x4e8')][_0x4d8535('0x120f')]&&_0x2753f5['data']['errors'][_0x4d8535('0x1e22')]){_0x12e414[_0x4d8535('0x120f')]=_0x2753f5[_0x4d8535('0x4e8')][_0x4d8535('0x120f')]||[{'message':_0x2753f5['toString'](),'type':_0x4d8535('0x56a')}];for(let _0x5299d7=0x0;_0x5299d7<_0x2753f5[_0x4d8535('0x4e8')][_0x4d8535('0x120f')][_0x4d8535('0x1e22')];_0x5299d7++){_0x17fded[_0x4d8535('0x255')]({'title':_0x2753f5[_0x4d8535('0x4e8')]['errors'][_0x5299d7][_0x4d8535('0x19fd')],'msg':_0x2753f5[_0x4d8535('0x4e8')][_0x4d8535('0x120f')][_0x5299d7]['message']});}}else _0x17fded['error']({'title':_0x2753f5['status']?_0x4d8535('0x574')+_0x2753f5[_0x4d8535('0xff9')]+_0x4d8535('0xb0b')+_0x2753f5['statusText']:_0x4d8535('0x56a'),'msg':_0x2753f5['data']?JSON[_0x4d8535('0x3e')](_0x2753f5[_0x4d8535('0x4e8')][_0x4d8535('0x1b86')]):_0x2753f5[_0x4d8535('0x1b86')]||_0x2753f5[_0x4d8535('0xaab')]()});});}function _0x4751a5(){const _0x22e5f1=_0x21c2c9,_0x1035ea=angular['copy'](_0x12e414[_0x22e5f1('0x945')]);return _0x12e414[_0x22e5f1('0x945')]=[],_0x1035ea;}function _0x37208f(_0x4e1640){const _0x1f5e7f=_0x21c2c9,_0x333976=_0x2005b7[_0x1f5e7f('0x132b')]()[_0x1f5e7f('0x134b')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20intervals?')[_0x1f5e7f('0x1d03')](_0x1f5e7f('0x2061')+_0x12e414[_0x1f5e7f('0x945')][_0x1f5e7f('0x1e22')]+_0x1f5e7f('0xac6')+_0x1f5e7f('0x1a'))['ariaLabel']('delete\x20Intervals')[_0x1f5e7f('0x1e25')](_0x4e1640)['ok']('OK')[_0x1f5e7f('0x26c9')](_0x1f5e7f('0x772'));_0x2005b7[_0x1f5e7f('0xb9')](_0x333976)['then'](function(){const _0x5d2220=_0x1f5e7f;_0x12e414[_0x5d2220('0x945')][_0x5d2220('0x1f88')](function(_0x465536){_0x59eb6d(_0x465536);}),_0x12e414[_0x5d2220('0x945')]=[];});}function _0x58193c(){_0x12e414['selectedIntervals']=[];}function _0x576463(){const _0x431bb0=_0x21c2c9;_0x12e414[_0x431bb0('0x945')]=_0x12e414[_0x431bb0('0xe82')]['rows'];}}const _0x319b49=_0xb679c3;_0x597a1c[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0xcbc'),_0x21d0f5('0x16b9'),'$mdDialog','$q','$translate',_0x21d0f5('0x142d'),_0x21d0f5('0x12f2'),_0x21d0f5('0x92a'),'api',_0x21d0f5('0x1150'),_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1'),'crudPermissions'];function _0x597a1c(_0x585474,_0x62e397,_0x5d8781,_0x5915ae,_0x1073d5,_0x2d371f,_0x19ca2f,_0x328a67,_0x1acc05,_0x1d7e85,_0x56cfd4,_0x319194,_0x5d6c72,_0x54bc27){const _0x36faba=_0x21d0f5,_0x2d624d=this;_0x2d624d[_0x36faba('0x32a')]=_0x56cfd4[_0x36faba('0x2428')](),_0x2d624d[_0x36faba('0x120f')]=[],_0x2d624d[_0x36faba('0x23e1')]=_0x5d6c72,_0x2d624d[_0x36faba('0x17ff')]=_0x319194,_0x2d624d[_0x36faba('0xb25')]=_0x54bc27,_0x2d624d['hasModulePermissions']={},_0x2d624d[_0x36faba('0x2834')]=_0x2d624d[_0x36faba('0x23e1')]&&_0x2d624d[_0x36faba('0x23e1')][_0x36faba('0x1d4')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2d624d[_0x36faba('0x134b')]='TOOLS.EDIT_PAUSE',_0x2d624d[_0x36faba('0x92a')]=angular[_0x36faba('0x6fb')](_0x1acc05),_0x2d624d['pauses']=_0x328a67,_0x2d624d[_0x36faba('0x350')]=![];!_0x2d624d[_0x36faba('0x92a')]&&(_0x2d624d[_0x36faba('0x92a')]={},_0x2d624d[_0x36faba('0x134b')]=_0x36faba('0x17b6'),_0x2d624d[_0x36faba('0x350')]=!![]);_0x2d624d[_0x36faba('0x171')]=_0x92fdce,_0x2d624d[_0x36faba('0x1237')]=_0x5fe32c,_0x2d624d[_0x36faba('0x586')]=_0x155c29,_0x2d624d[_0x36faba('0x1bd1')]=_0x6e92c7,_0x2d624d[_0x36faba('0xc4e')]=_0x50b6a0;function _0x92fdce(){const _0x2746cf=_0x36faba;_0x2d624d[_0x2746cf('0x120f')]=[],_0x1d7e85[_0x2746cf('0x92a')]['save'](_0x2d624d[_0x2746cf('0x92a')])['$promise'][_0x2746cf('0x11bf')](function(_0xb7d08a){const _0x50f862=_0x2746cf;_0x2d624d[_0x50f862('0x12f2')][_0x50f862('0x880')](_0xb7d08a[_0x50f862('0x2866')]()),_0x19ca2f[_0x50f862('0x2693')]({'title':'Pause\x20properly\x20created','msg':_0x2d624d[_0x50f862('0x92a')][_0x50f862('0x1909')]?_0x2d624d['pause'][_0x50f862('0x1909')]+_0x50f862('0x7fb'):''}),_0x50b6a0(_0xb7d08a);})[_0x2746cf('0x151d')](function(_0x153a31){const _0x21cf10=_0x2746cf;if(_0x153a31[_0x21cf10('0x4e8')]&&_0x153a31['data'][_0x21cf10('0x120f')]&&_0x153a31[_0x21cf10('0x4e8')][_0x21cf10('0x120f')][_0x21cf10('0x1e22')]){_0x2d624d[_0x21cf10('0x120f')]=_0x153a31[_0x21cf10('0x4e8')][_0x21cf10('0x120f')]||[{'message':_0x153a31['toString'](),'type':_0x21cf10('0x90d')}];for(let _0x51e4a3=0x0;_0x51e4a3<_0x153a31['data'][_0x21cf10('0x120f')][_0x21cf10('0x1e22')];_0x51e4a3+=0x1){_0x19ca2f[_0x21cf10('0x255')]({'title':_0x153a31[_0x21cf10('0x4e8')][_0x21cf10('0x120f')][_0x51e4a3][_0x21cf10('0x19fd')],'msg':_0x153a31[_0x21cf10('0x4e8')][_0x21cf10('0x120f')][_0x51e4a3][_0x21cf10('0x1b86')]});}}else _0x19ca2f[_0x21cf10('0x255')]({'title':_0x153a31[_0x21cf10('0xff9')]?_0x21cf10('0x574')+_0x153a31[_0x21cf10('0xff9')]+_0x21cf10('0xb0b')+_0x153a31[_0x21cf10('0x212f')]:'api.pause.save','msg':_0x153a31['data']?JSON[_0x21cf10('0x3e')](_0x153a31[_0x21cf10('0x4e8')]['message']):_0x153a31[_0x21cf10('0xaab')]()});});}function _0x5fe32c(){const _0x181c1e=_0x36faba;_0x2d624d[_0x181c1e('0x120f')]=[],_0x1d7e85[_0x181c1e('0x92a')][_0x181c1e('0x5ab')]({'id':_0x2d624d['pause']['id']},_0x2d624d[_0x181c1e('0x92a')])['$promise'][_0x181c1e('0x11bf')](function(_0x204ac1){const _0x1ff894=_0x181c1e,_0x100cf6=_0x36f548()[_0x1ff894('0x1ad4')](_0x2d624d[_0x1ff894('0x12f2')],{'id':_0x204ac1['id']});_0x100cf6&&_0x36f548()[_0x1ff894('0x47b')](_0x100cf6,_0x36f548()[_0x1ff894('0x258')](_0x204ac1[_0x1ff894('0x2866')](),_0x36f548()[_0x1ff894('0xe22')](_0x100cf6))),_0x19ca2f[_0x1ff894('0x2693')]({'title':_0x1ff894('0xcb'),'msg':_0x2d624d['pause'][_0x1ff894('0x1909')]?_0x2d624d['pause'][_0x1ff894('0x1909')]+_0x1ff894('0x1a78'):''}),_0x50b6a0(_0x204ac1);})['catch'](function(_0x376a43){const _0x443962=_0x181c1e;if(_0x376a43[_0x443962('0x4e8')]&&_0x376a43[_0x443962('0x4e8')][_0x443962('0x120f')]&&_0x376a43[_0x443962('0x4e8')][_0x443962('0x120f')][_0x443962('0x1e22')]){_0x2d624d['errors']=_0x376a43[_0x443962('0x4e8')][_0x443962('0x120f')]||[{'message':_0x376a43[_0x443962('0xaab')](),'type':_0x443962('0xac0')}];for(let _0x24aee6=0x0;_0x24aee6<_0x376a43[_0x443962('0x4e8')][_0x443962('0x120f')][_0x443962('0x1e22')];_0x24aee6++){_0x19ca2f[_0x443962('0x255')]({'title':_0x376a43['data'][_0x443962('0x120f')][_0x24aee6][_0x443962('0x19fd')],'msg':_0x376a43['data'][_0x443962('0x120f')][_0x24aee6][_0x443962('0x1b86')]});}}else _0x19ca2f['error']({'title':_0x376a43[_0x443962('0xff9')]?_0x443962('0x574')+_0x376a43[_0x443962('0xff9')]+_0x443962('0xb0b')+_0x376a43[_0x443962('0x212f')]:'api.pause.update','msg':_0x376a43[_0x443962('0x4e8')]?JSON[_0x443962('0x3e')](_0x376a43['data']['message']):_0x376a43[_0x443962('0xaab')]()});});}function _0x155c29(_0x286394){const _0x49604f=_0x36faba;_0x2d624d[_0x49604f('0x120f')]=[];const _0x20a20e=_0x5915ae[_0x49604f('0x132b')]()['title'](_0x49604f('0x1fa9'))[_0x49604f('0x252a')]('The\x20pause\x20will\x20be\x20deleted.')[_0x49604f('0xb2e')](_0x49604f('0x873'))['ok']('Delete')[_0x49604f('0x26c9')](_0x49604f('0x784'))[_0x49604f('0x1e25')](_0x286394);_0x5915ae[_0x49604f('0xb9')](_0x20a20e)[_0x49604f('0x11bf')](function(){const _0x25133b=_0x49604f;_0x1d7e85[_0x25133b('0x92a')][_0x25133b('0x2088')]({'id':_0x2d624d[_0x25133b('0x92a')]['id']})[_0x25133b('0x1549')][_0x25133b('0x11bf')](function(){const _0x1711b8=_0x25133b;_0x36f548()[_0x1711b8('0x14a5')](_0x2d624d[_0x1711b8('0x12f2')],{'id':_0x2d624d[_0x1711b8('0x92a')]['id']}),_0x19ca2f[_0x1711b8('0x2693')]({'title':_0x1711b8('0x1461'),'msg':(_0x2d624d[_0x1711b8('0x92a')][_0x1711b8('0x1909')]||_0x1711b8('0x92a'))+_0x1711b8('0x433')}),_0x50b6a0(_0x2d624d[_0x1711b8('0x92a')]);})[_0x25133b('0x151d')](function(_0x163ccb){const _0x1fbd5d=_0x25133b;if(_0x163ccb['data']&&_0x163ccb[_0x1fbd5d('0x4e8')][_0x1fbd5d('0x120f')]&&_0x163ccb[_0x1fbd5d('0x4e8')][_0x1fbd5d('0x120f')][_0x1fbd5d('0x1e22')]){_0x2d624d[_0x1fbd5d('0x120f')]=_0x163ccb[_0x1fbd5d('0x4e8')][_0x1fbd5d('0x120f')]||[{'message':_0x163ccb[_0x1fbd5d('0xaab')](),'type':'api.pause.delete'}];for(let _0x269f1d=0x0;_0x269f1d<_0x163ccb[_0x1fbd5d('0x4e8')][_0x1fbd5d('0x120f')][_0x1fbd5d('0x1e22')];_0x269f1d++){_0x19ca2f[_0x1fbd5d('0x255')]({'title':_0x163ccb[_0x1fbd5d('0x4e8')][_0x1fbd5d('0x120f')][_0x269f1d][_0x1fbd5d('0x19fd')],'msg':_0x163ccb['data'][_0x1fbd5d('0x120f')][_0x269f1d][_0x1fbd5d('0x1b86')]});}}else _0x19ca2f[_0x1fbd5d('0x255')]({'title':_0x163ccb[_0x1fbd5d('0xff9')]?_0x1fbd5d('0x574')+_0x163ccb['status']+_0x1fbd5d('0xb0b')+_0x163ccb[_0x1fbd5d('0x212f')]:_0x1fbd5d('0x2057'),'msg':_0x163ccb[_0x1fbd5d('0x4e8')]?JSON[_0x1fbd5d('0x3e')](_0x163ccb[_0x1fbd5d('0x4e8')][_0x1fbd5d('0x1b86')]):_0x163ccb[_0x1fbd5d('0x1b86')]||_0x163ccb['toString']()});});},function(){});}function _0x6e92c7(_0x2f89f6){return _0x2f89f6===null?undefined:new Date(_0x2f89f6);}function _0x50b6a0(_0xa9d26c){const _0x3b9338=_0x36faba;_0x5915ae[_0x3b9338('0x237e')](_0xa9d26c);}}const _0xe444c7=_0x597a1c,_0x394ed2=_0x351988['p']+'src/js/modules/main/apps/tools/views/pauses/create/dialog.html/dialog.html';_0x38fdac[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0x2143'),_0x21d0f5('0xcbc'),'$mdSidenav',_0x21d0f5('0x1ca2'),'$document',_0x21d0f5('0x17f5'),'$translate',_0x21d0f5('0x12f2'),'userProfile',_0x21d0f5('0x1d63'),_0x21d0f5('0x12a5'),_0x21d0f5('0xda9'),_0x21d0f5('0x142d'),_0x21d0f5('0x1150'),_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1')];function _0x38fdac(_0x1d97e9,_0x152d96,_0x1ed15b,_0x53ca0a,_0x2ec6f8,_0xbefaa4,_0x4b2f97,_0x1ff7ab,_0x5f1239,_0x4a2d0c,_0x43d68c,_0x39189e,_0x12cdcf,_0x5a13a5,_0xf09905,_0x41a590,_0x15871c){const _0x6cfe96=_0x21d0f5,_0x583b45=this;_0x583b45[_0x6cfe96('0x17ff')]=_0x41a590,_0x583b45[_0x6cfe96('0x23e1')]=_0x15871c,_0x583b45[_0x6cfe96('0x32a')]=_0xf09905[_0x6cfe96('0x2428')](),_0x583b45[_0x6cfe96('0x12f2')]=_0x5f1239||{'count':0x0,'rows':[]},_0x583b45[_0x6cfe96('0x25bc')]=_0x4a2d0c,_0x583b45['userProfileSection']=_0x43d68c&&_0x43d68c[_0x6cfe96('0x27d2')]==0x1?_0x43d68c[_0x6cfe96('0x19b2')][0x0]:null,_0x583b45[_0x6cfe96('0xb25')]=_0xf09905[_0x6cfe96('0x1530')](_0x583b45['userProfileSection']?_0x583b45['userProfileSection'][_0x6cfe96('0xb25')]:null),_0x583b45[_0x6cfe96('0x13e8')]='pauses',_0x583b45[_0x6cfe96('0x724')]='',_0x583b45[_0x6cfe96('0xe3c')]=null,_0x583b45['selectedPauses']=[],_0x583b45[_0x6cfe96('0x1f2a')]={'fields':_0x6cfe96('0x219a'),'sort':'-updatedAt','limit':0xa,'page':0x1},_0x583b45[_0x6cfe96('0xc03')]=_0x4a266f,_0x583b45['deleteconfirm']=_0x227f27,_0x583b45[_0x6cfe96('0x2693')]=_0x1e4dd6,_0x583b45[_0x6cfe96('0x12c6')]=_0x4b54bc,_0x583b45[_0x6cfe96('0x9b1')]=_0x2fedd0,_0x583b45[_0x6cfe96('0x586')]=_0x1f3aa9,_0x583b45[_0x6cfe96('0x1609')]=_0x541fc7,_0x583b45[_0x6cfe96('0x138f')]=_0x17c21b,_0x583b45[_0x6cfe96('0x1e05')]=_0x3e2b43,_0x583b45['selectAllPauses']=_0x5017b6;function _0x4a266f(_0x5565c7,_0x310e16){const _0x1246f2=_0x6cfe96;_0x2ec6f8[_0x1246f2('0xb9')]({'controller':_0x1246f2('0x1c3f'),'controllerAs':'vm','templateUrl':_0x394ed2,'parent':angular['element'](_0xbefaa4[_0x1246f2('0x1d2')]),'targetEvent':_0x310e16,'clickOutsideToClose':!![],'locals':{'pause':_0x5565c7,'pauses':_0x583b45[_0x1246f2('0x12f2')][_0x1246f2('0x19b2')],'license':_0x583b45[_0x1246f2('0x17ff')],'setting':null,'crudPermissions':_0x583b45['crudPermissions']}});}function _0x227f27(_0x5829a1,_0x3d95e3){const _0x109146=_0x6cfe96,_0x3612e5=_0x2ec6f8['confirm']()[_0x109146('0x134b')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x36f548()['startCase'](_0x109146('0x92a'))+'?')[_0x109146('0x1d03')](''+(_0x5829a1[_0x109146('0x1909')]||_0x109146('0x92a'))+_0x109146('0x1c78')+_0x109146('0x1a'))[_0x109146('0xb2e')](_0x109146('0x24f1'))['targetEvent'](_0x3d95e3)['ok']('OK')[_0x109146('0x26c9')](_0x109146('0x772'));_0x2ec6f8[_0x109146('0xb9')](_0x3612e5)['then'](function(){_0x1f3aa9(_0x5829a1);},function(){const _0x4f1d92=_0x109146;console[_0x4f1d92('0xc78')](_0x4f1d92('0x772'));});}let _0x50f26f=!![],_0x32ee10=0x1;_0x1d97e9['$watch'](_0x6cfe96('0x842'),function(_0x2f71ea,_0xb9833d){const _0x18f635=_0x6cfe96;_0x50f26f?_0x4b2f97(function(){_0x50f26f=![];}):(!_0xb9833d&&(_0x32ee10=_0x583b45[_0x18f635('0x1f2a')][_0x18f635('0x1c2')]),_0x2f71ea!==_0xb9833d&&(_0x583b45[_0x18f635('0x1f2a')]['page']=0x1),!_0x2f71ea&&(_0x583b45['query'][_0x18f635('0x1c2')]=_0x32ee10),_0x583b45[_0x18f635('0x12c6')]());});function _0x1e4dd6(_0x41643c){const _0x3204eb=_0x6cfe96;_0x583b45[_0x3204eb('0x12f2')]=_0x41643c||{'count':0x0,'rows':[]};}function _0x4b54bc(){const _0x5c9f08=_0x6cfe96;_0x583b45[_0x5c9f08('0x1f2a')][_0x5c9f08('0x1393')]=(_0x583b45[_0x5c9f08('0x1f2a')][_0x5c9f08('0x1c2')]-0x1)*_0x583b45['query'][_0x5c9f08('0xd5c')],_0xf09905['hasRole']('admin')?_0x583b45[_0x5c9f08('0x13f')]=_0x39189e[_0x5c9f08('0x92a')][_0x5c9f08('0xbaa')](_0x583b45['query'],_0x1e4dd6)[_0x5c9f08('0x1549')]:(_0x583b45['query']['id']=_0x583b45[_0x5c9f08('0x25bc')]['id'],_0x583b45['query'][_0x5c9f08('0xe6')]=_0x5c9f08('0x1566'),_0x583b45[_0x5c9f08('0x13f')]=_0x39189e[_0x5c9f08('0x25bc')]['getResources'](_0x583b45[_0x5c9f08('0x1f2a')],_0x1e4dd6)[_0x5c9f08('0x1549')]);}function _0x2fedd0(_0x13febf,_0xd67f0){const _0x4456e6=_0x6cfe96;_0x2ec6f8[_0x4456e6('0xb9')]({'controller':_0x4456e6('0x1c3f'),'controllerAs':'vm','templateUrl':_0x394ed2,'parent':angular[_0x4456e6('0x1e73')](_0xbefaa4[_0x4456e6('0x1d2')]),'targetEvent':_0x13febf,'clickOutsideToClose':!![],'locals':{'pause':_0xd67f0,'pauses':_0x583b45[_0x4456e6('0x12f2')][_0x4456e6('0x19b2')],'license':_0x583b45[_0x4456e6('0x17ff')],'setting':_0x583b45['setting'],'crudPermissions':_0x583b45[_0x4456e6('0xb25')]}});}function _0x1f3aa9(_0x8098d5){const _0x5adbd0=_0x6cfe96;_0x39189e[_0x5adbd0('0x92a')]['delete']({'id':_0x8098d5['id']})[_0x5adbd0('0x1549')]['then'](function(){const _0x351c49=_0x5adbd0;_0x36f548()['remove'](_0x583b45['pauses'][_0x351c49('0x19b2')],{'id':_0x8098d5['id']}),_0x583b45[_0x351c49('0x12f2')][_0x351c49('0x27d2')]-=0x1,!_0x583b45['pauses']['rows'][_0x351c49('0x1e22')]&&_0x583b45[_0x351c49('0x12c6')](),_0x5a13a5[_0x351c49('0x2693')]({'title':_0x36f548()[_0x351c49('0x13cf')](_0x351c49('0x6c5'))+_0x351c49('0x2113'),'msg':_0x8098d5[_0x351c49('0x1909')]?_0x8098d5[_0x351c49('0x1909')]+_0x351c49('0x433'):''});})[_0x5adbd0('0x151d')](function(_0x24f249){const _0x65abe3=_0x5adbd0;if(_0x24f249[_0x65abe3('0x4e8')]&&_0x24f249[_0x65abe3('0x4e8')]['errors']&&_0x24f249[_0x65abe3('0x4e8')][_0x65abe3('0x120f')][_0x65abe3('0x1e22')]){_0x583b45['errors']=_0x24f249['data'][_0x65abe3('0x120f')]||[{'message':_0x24f249[_0x65abe3('0xaab')](),'type':_0x65abe3('0x21e7')}];for(let _0x477787=0x0;_0x477787<_0x24f249[_0x65abe3('0x4e8')][_0x65abe3('0x120f')][_0x65abe3('0x1e22')];_0x477787++){_0x5a13a5[_0x65abe3('0x255')]({'title':_0x24f249[_0x65abe3('0x4e8')][_0x65abe3('0x120f')][_0x477787][_0x65abe3('0x19fd')],'msg':_0x24f249[_0x65abe3('0x4e8')]['errors'][_0x477787][_0x65abe3('0x1b86')]});}}else _0x5a13a5[_0x65abe3('0x255')]({'title':_0x24f249[_0x65abe3('0xff9')]?_0x65abe3('0x574')+_0x24f249[_0x65abe3('0xff9')]+'\x20-\x20'+_0x24f249[_0x65abe3('0x212f')]:'SYSTEM:DELETEpause','msg':_0x24f249[_0x65abe3('0x4e8')]?JSON[_0x65abe3('0x3e')](_0x24f249[_0x65abe3('0x4e8')][_0x65abe3('0x1b86')]):_0x24f249[_0x65abe3('0x1b86')]||_0x24f249[_0x65abe3('0xaab')]()});});}function _0x541fc7(){const _0x444d5b=_0x6cfe96,_0x358a40=angular[_0x444d5b('0x6fb')](_0x583b45[_0x444d5b('0x2876')]);return _0x583b45[_0x444d5b('0x2876')]=[],_0x358a40;}function _0x17c21b(_0x568582){const _0x583f64=_0x6cfe96,_0x4eb87a=_0x2ec6f8[_0x583f64('0x132b')]()[_0x583f64('0x134b')](_0x583f64('0x1d58'))[_0x583f64('0x1d03')](_0x583f64('0x2061')+_0x583b45[_0x583f64('0x2876')][_0x583f64('0x1e22')]+_0x583f64('0xac6')+'\x20will\x20be\x20deleted.')[_0x583f64('0xb2e')]('delete\x20Pauses')[_0x583f64('0x1e25')](_0x568582)['ok']('OK')[_0x583f64('0x26c9')]('CANCEL');_0x2ec6f8[_0x583f64('0xb9')](_0x4eb87a)[_0x583f64('0x11bf')](function(){const _0x212629=_0x583f64;_0x583b45[_0x212629('0x2876')]['forEach'](function(_0xece8f2){_0x1f3aa9(_0xece8f2);}),_0x583b45[_0x212629('0x2876')]=[];});}function _0x3e2b43(){_0x583b45['selectedPauses']=[];}function _0x5017b6(){const _0x37bd9f=_0x6cfe96;_0x583b45[_0x37bd9f('0x2876')]=_0x583b45['pauses']['rows'];}}const _0x4c1f65=_0x38fdac,_0x6cf459=_0x351988['p']+_0x21d0f5('0x1805');_0x1c12af[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0xcbc'),'$location',_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0xb6b'),_0x21d0f5('0x142d'),'schedules',_0x21d0f5('0xc04'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1'),_0x21d0f5('0xb25')];function _0x1c12af(_0x5b86b1,_0x7debb9,_0x1b9325,_0x53be92,_0x258921,_0x278391,_0x394405,_0xb09793,_0x37d3d1,_0x21a480,_0x370e33,_0x214ee3,_0x1d3ff3,_0x3201b3){const _0x14236e=_0x21d0f5,_0x27a08e=this;_0x27a08e[_0x14236e('0x32a')]=_0x370e33['getCurrentUser'](),_0x27a08e[_0x14236e('0x120f')]=[],_0x27a08e[_0x14236e('0x23e1')]=_0x1d3ff3,_0x27a08e['license']=_0x214ee3,_0x27a08e[_0x14236e('0xb25')]=_0x3201b3,_0x27a08e[_0x14236e('0x2c9')]={},_0x27a08e[_0x14236e('0x2834')]=_0x27a08e[_0x14236e('0x23e1')]&&_0x27a08e[_0x14236e('0x23e1')][_0x14236e('0x1d4')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x27a08e[_0x14236e('0x134b')]=_0x14236e('0x83e'),_0x27a08e[_0x14236e('0xc04')]=angular['copy'](_0x37d3d1),_0x27a08e[_0x14236e('0xd58')]=_0xb09793,_0x27a08e['newSchedule']=![],_0x27a08e[_0x14236e('0x2127')]=[],_0x27a08e[_0x14236e('0x1f2a')]={'fields':_0x14236e('0x960'),'limit':0xa,'page':0x1,'sort':'-updatedAt'};if(!_0x27a08e[_0x14236e('0xc04')])_0x27a08e['schedule']={'output':_0x14236e('0x1ac4'),'active':!![],'startAt':new Date(),'endAt':new Date(Date[_0x14236e('0x1f45')]()+0x1e*0x18*0x3c*0x3c*0x3e8),'cron':_0x14236e('0x10bb'),'subtractNumber':0x1,'subtractUnit':_0x14236e('0xd4d'),'sendMail':![],'sendIfEmpty':!![]},_0x27a08e['title']='TOOLS.NEW_SCHEDULE',_0x27a08e['newSchedule']=!![];else{_0x27a08e[_0x14236e('0x2c5')]=_0x27a08e[_0x14236e('0xc04')][_0x14236e('0x38e')]?_0x14236e('0x19f4'):_0x14236e('0x13ee');const _0x5c54c5=_0x27a08e[_0x14236e('0xc04')][_0x14236e('0x38e')]?_0x27a08e[_0x14236e('0xc04')]['DefaultReportId']:_0x27a08e[_0x14236e('0xc04')][_0x14236e('0x2066')];_0x21a480[_0x27a08e['apiName']][_0x14236e('0xbaa')]({'fields':_0x14236e('0x22ee')})[_0x14236e('0x1549')]['then'](function(_0x5bc2d9){const _0x575515=_0x14236e;_0x27a08e[_0x575515('0x11a')]=_0x36f548()[_0x575515('0x1ad4')](_0x5bc2d9[_0x575515('0x19b2')],{'id':_0x5c54c5}),_0x27a08e[_0x575515('0xc04')][_0x575515('0x1964')]=_0x27a08e[_0x575515('0x11a')][_0x575515('0x1909')],_0x27a08e[_0x575515('0x1f2a')][_0x575515('0x1592')]=_0x27a08e[_0x575515('0x11a')][_0x575515('0x1592')];});}_0x27a08e[_0x14236e('0x6f9')]=_0x442232,_0x27a08e['saveSchedule']=_0x23a6c9,_0x27a08e[_0x14236e('0x25f0')]=_0x35dcfa,_0x27a08e[_0x14236e('0x1bd1')]=_0xfa18a4,_0x27a08e[_0x14236e('0xbd3')]=_0x383c4d,_0x27a08e[_0x14236e('0x231b')]=_0x360514,_0x27a08e[_0x14236e('0x10af')]=_0x9627cb,_0x27a08e['searchReport']=_0x48b123,_0x27a08e[_0x14236e('0xc4e')]=_0x6560a3,_0x21a480[_0x14236e('0x32b')][_0x14236e('0xbaa')]({})[_0x14236e('0x1549')][_0x14236e('0x11bf')](function(_0x28d382){const _0x17adf6=_0x14236e;_0x27a08e[_0x17adf6('0x179e')]=_0x28d382[_0x17adf6('0x19b2')]||[];})[_0x14236e('0x151d')](function(_0x4c2a03){const _0x40318f=_0x14236e;_0x394405[_0x40318f('0x255')]({'title':_0x4c2a03[_0x40318f('0xff9')]?_0x40318f('0x574')+_0x4c2a03[_0x40318f('0xff9')]+'\x20-\x20'+_0x4c2a03[_0x40318f('0x212f')]:'SYSTEM:GET_TREEREPORTS','msg':_0x4c2a03['data']?JSON['stringify'](_0x4c2a03[_0x40318f('0x4e8')]):_0x4c2a03['toString']()});}),_0x370e33[_0x14236e('0x4ee')](_0x14236e('0xf45'))?_0x21a480[_0x14236e('0x1d47')][_0x14236e('0xbaa')]({'fields':_0x14236e('0x721'),'sort':'name'})[_0x14236e('0x1549')][_0x14236e('0x11bf')](function(_0x3f3809){const _0x8a7bfe=_0x14236e;_0x27a08e[_0x8a7bfe('0xf1a')]=_0x3f3809[_0x8a7bfe('0x19b2')]||[];})['catch'](function(_0x30ef72){const _0x929b61=_0x14236e;_0x394405[_0x929b61('0x255')]({'title':_0x30ef72[_0x929b61('0xff9')]?_0x929b61('0x574')+_0x30ef72[_0x929b61('0xff9')]+_0x929b61('0xb0b')+_0x30ef72[_0x929b61('0x212f')]:_0x929b61('0x1fe6'),'msg':_0x30ef72[_0x929b61('0x4e8')]?JSON['stringify'](_0x30ef72[_0x929b61('0x4e8')]):_0x30ef72[_0x929b61('0xaab')]()});}):_0x21a480[_0x14236e('0x1d47')][_0x14236e('0xbaa')]({'fields':_0x14236e('0x721'),'sort':_0x14236e('0x1909')})[_0x14236e('0x1549')][_0x14236e('0x11bf')](function(_0x5c70a3){const _0xe16a17=_0x14236e;_0x27a08e['mailAccounts']=_0x5c70a3[_0xe16a17('0x19b2')]||[];})[_0x14236e('0x11bf')](function(){const _0x1b8e8a=_0x14236e;return _0x21a480[_0x1b8e8a('0x1d63')]['get']({'userProfileId':_0x27a08e[_0x1b8e8a('0x32a')][_0x1b8e8a('0x781')],'sectionId':0x25a})[_0x1b8e8a('0x1549')];})[_0x14236e('0x11bf')](function(_0x522bd7){const _0x46c0b0=_0x14236e,_0x4dfa29=_0x522bd7&&_0x522bd7[_0x46c0b0('0x19b2')]?_0x522bd7[_0x46c0b0('0x19b2')][0x0]:null;if(!_0x4dfa29){const _0x3ad035=[];let _0x477a90=null;_0x27a08e[_0x46c0b0('0xc04')]&&(_0x477a90=_0x36f548()[_0x46c0b0('0x1ad4')](_0x27a08e[_0x46c0b0('0xf1a')],{'id':Number(_0x27a08e['schedule'][_0x46c0b0('0x2294')])}));for(let _0xb7c3a4=0x0;_0xb7c3a4<_0x27a08e[_0x46c0b0('0xf1a')][_0x46c0b0('0x1e22')];_0xb7c3a4++){_0x477a90&&_0x27a08e['mailAccounts'][_0xb7c3a4]['id']===_0x477a90['id']&&(_0x27a08e['mailAccounts'][_0xb7c3a4][_0x46c0b0('0x254a')]=![],_0x3ad035[_0x46c0b0('0x105d')](_0x27a08e['mailAccounts'][_0xb7c3a4]));}_0x27a08e[_0x46c0b0('0xf1a')]=_0x3ad035;}else{if(!_0x4dfa29['autoAssociation'])return _0x21a480[_0x46c0b0('0x26d1')][_0x46c0b0('0xbaa')]({'sectionId':_0x4dfa29['id']})[_0x46c0b0('0x1549')][_0x46c0b0('0x11bf')](function(_0x15cb59){const _0x2816e5=_0x46c0b0,_0x1db4ff=_0x36f548()[_0x2816e5('0x2171')](_0x15cb59['rows'],function(_0x132596){const _0x4cdeae=_0x2816e5;return _0x36f548()[_0x4cdeae('0x1ad4')](_0x27a08e[_0x4cdeae('0xf1a')],{'id':_0x132596['resourceId']});});let _0x39dbbb=null;_0x27a08e[_0x2816e5('0xc04')]&&(_0x39dbbb=_0x36f548()[_0x2816e5('0x1ad4')](_0x27a08e['mailAccounts'],{'id':Number(_0x27a08e[_0x2816e5('0xc04')][_0x2816e5('0x2294')])}));if(_0x39dbbb&&!_0x36f548()[_0x2816e5('0x1cb3')](_0x1db4ff,['id',_0x39dbbb['id']])){const _0x17a443=_0x36f548()[_0x2816e5('0x1ad4')](_0x27a08e['mailAccounts'],{'id':_0x39dbbb['id']});_0x17a443['canSelect']=![],_0x1db4ff[_0x2816e5('0x105d')](_0x17a443);}_0x27a08e[_0x2816e5('0xf1a')]=_0x1db4ff;});}})['catch'](function(_0x1868f9){const _0x4f6e19=_0x14236e;_0x394405[_0x4f6e19('0x255')]({'title':_0x1868f9['status']?_0x4f6e19('0x574')+_0x1868f9[_0x4f6e19('0xff9')]+_0x4f6e19('0xb0b')+_0x1868f9['statusText']:'SYSTEM:GETmailAccounts','msg':_0x1868f9[_0x4f6e19('0x4e8')]?JSON['stringify'](_0x1868f9['data']):_0x1868f9[_0x4f6e19('0xaab')]()});});function _0x442232(){const _0xffc030=_0x14236e;_0x27a08e['errors']=[],_0x21a480[_0xffc030('0xc04')][_0xffc030('0x259')](_0x27a08e['schedule'])[_0xffc030('0x1549')][_0xffc030('0x11bf')](function(_0x4a0951){const _0xdf9e75=_0xffc030;_0x27a08e[_0xdf9e75('0xd58')]['unshift'](_0x4a0951[_0xdf9e75('0x2866')]()),_0x394405[_0xdf9e75('0x2693')]({'title':_0xdf9e75('0x1610'),'msg':_0x27a08e[_0xdf9e75('0xc04')][_0xdf9e75('0x1909')]?_0x27a08e[_0xdf9e75('0xc04')]['name']+_0xdf9e75('0x7fb'):''}),_0x6560a3(_0x4a0951);})[_0xffc030('0x151d')](function(_0x8478ad){const _0x2d3e9e=_0xffc030;if(_0x8478ad[_0x2d3e9e('0x4e8')]&&_0x8478ad[_0x2d3e9e('0x4e8')][_0x2d3e9e('0x120f')]&&_0x8478ad[_0x2d3e9e('0x4e8')][_0x2d3e9e('0x120f')]['length']){_0x27a08e[_0x2d3e9e('0x120f')]=_0x8478ad['data'][_0x2d3e9e('0x120f')]||[{'message':_0x8478ad[_0x2d3e9e('0xaab')](),'type':'api.schedule.save'}];for(let _0x51dbf8=0x0;_0x51dbf8<_0x8478ad[_0x2d3e9e('0x4e8')][_0x2d3e9e('0x120f')][_0x2d3e9e('0x1e22')];_0x51dbf8+=0x1){_0x394405['error']({'title':_0x8478ad[_0x2d3e9e('0x4e8')]['errors'][_0x51dbf8][_0x2d3e9e('0x19fd')],'msg':_0x8478ad['data']['errors'][_0x51dbf8][_0x2d3e9e('0x1b86')]});}}else _0x394405[_0x2d3e9e('0x255')]({'title':_0x8478ad[_0x2d3e9e('0xff9')]?_0x2d3e9e('0x574')+_0x8478ad[_0x2d3e9e('0xff9')]+_0x2d3e9e('0xb0b')+_0x8478ad[_0x2d3e9e('0x212f')]:_0x2d3e9e('0x1f84'),'msg':_0x8478ad[_0x2d3e9e('0x4e8')]?JSON[_0x2d3e9e('0x3e')](_0x8478ad['data'][_0x2d3e9e('0x1b86')]):_0x8478ad[_0x2d3e9e('0xaab')]()});});}function _0x23a6c9(){const _0x2f4b6c=_0x14236e;_0x27a08e[_0x2f4b6c('0x120f')]=[],_0x21a480[_0x2f4b6c('0xc04')]['update']({'id':_0x27a08e[_0x2f4b6c('0xc04')]['id']},_0x27a08e[_0x2f4b6c('0xc04')])['$promise'][_0x2f4b6c('0x11bf')](function(_0x1b57c4){const _0x10fe87=_0x2f4b6c,_0x241898=_0x36f548()[_0x10fe87('0x1ad4')](_0x27a08e[_0x10fe87('0xd58')],{'id':_0x1b57c4['id']});_0x241898&&_0x36f548()[_0x10fe87('0x47b')](_0x241898,_0x36f548()[_0x10fe87('0x258')](_0x1b57c4[_0x10fe87('0x2866')](),_0x36f548()[_0x10fe87('0xe22')](_0x241898))),_0x394405[_0x10fe87('0x2693')]({'title':'Schedule\x20properly\x20saved!','msg':_0x27a08e['schedule'][_0x10fe87('0x1909')]?_0x27a08e['schedule']['name']+_0x10fe87('0x1a78'):''}),_0x6560a3(_0x1b57c4);})[_0x2f4b6c('0x151d')](function(_0x4c4634){const _0x34cb32=_0x2f4b6c;if(_0x4c4634[_0x34cb32('0x4e8')]&&_0x4c4634[_0x34cb32('0x4e8')][_0x34cb32('0x120f')]&&_0x4c4634[_0x34cb32('0x4e8')][_0x34cb32('0x120f')]['length']){_0x27a08e[_0x34cb32('0x120f')]=_0x4c4634['data'][_0x34cb32('0x120f')]||[{'message':_0x4c4634[_0x34cb32('0xaab')](),'type':_0x34cb32('0x1fdb')}];for(let _0x3d2e19=0x0;_0x3d2e19<_0x4c4634[_0x34cb32('0x4e8')][_0x34cb32('0x120f')][_0x34cb32('0x1e22')];_0x3d2e19++){_0x394405[_0x34cb32('0x255')]({'title':_0x4c4634[_0x34cb32('0x4e8')][_0x34cb32('0x120f')][_0x3d2e19]['type'],'msg':_0x4c4634['data'][_0x34cb32('0x120f')][_0x3d2e19][_0x34cb32('0x1b86')]});}}else _0x394405[_0x34cb32('0x255')]({'title':_0x4c4634['status']?_0x34cb32('0x574')+_0x4c4634[_0x34cb32('0xff9')]+_0x34cb32('0xb0b')+_0x4c4634[_0x34cb32('0x212f')]:_0x34cb32('0x1fdb'),'msg':_0x4c4634[_0x34cb32('0x4e8')]?JSON[_0x34cb32('0x3e')](_0x4c4634[_0x34cb32('0x4e8')][_0x34cb32('0x1b86')]):_0x4c4634['toString']()});});}function _0x35dcfa(_0x3a58b0){const _0x414c8d=_0x14236e;_0x27a08e['errors']=[];const _0x4cacfd=_0x53be92[_0x414c8d('0x132b')]()[_0x414c8d('0x134b')](_0x414c8d('0x1fa9'))[_0x414c8d('0x252a')](_0x414c8d('0x2546'))['ariaLabel'](_0x414c8d('0x17b0'))['ok']('Delete')['cancel']('Cancel')[_0x414c8d('0x1e25')](_0x3a58b0);_0x53be92[_0x414c8d('0xb9')](_0x4cacfd)[_0x414c8d('0x11bf')](function(){const _0x45a717=_0x414c8d;_0x21a480[_0x45a717('0xc04')][_0x45a717('0x2088')]({'id':_0x27a08e[_0x45a717('0xc04')]['id']})[_0x45a717('0x1549')][_0x45a717('0x11bf')](function(){const _0x32bd74=_0x45a717;_0x36f548()[_0x32bd74('0x14a5')](_0x27a08e[_0x32bd74('0xd58')],{'id':_0x27a08e[_0x32bd74('0xc04')]['id']}),_0x394405[_0x32bd74('0x2693')]({'title':_0x32bd74('0x2313'),'msg':(_0x27a08e['schedule'][_0x32bd74('0x1909')]||'schedule')+_0x32bd74('0x433')}),_0x6560a3(_0x27a08e[_0x32bd74('0xc04')]);})[_0x45a717('0x151d')](function(_0x7be01){const _0x40b82f=_0x45a717;if(_0x7be01[_0x40b82f('0x4e8')]&&_0x7be01[_0x40b82f('0x4e8')][_0x40b82f('0x120f')]&&_0x7be01[_0x40b82f('0x4e8')]['errors'][_0x40b82f('0x1e22')]){_0x27a08e['errors']=_0x7be01['data'][_0x40b82f('0x120f')]||[{'message':_0x7be01[_0x40b82f('0xaab')](),'type':'api.schedule.delete'}];for(let _0x1e63ea=0x0;_0x1e63ea<_0x7be01[_0x40b82f('0x4e8')][_0x40b82f('0x120f')][_0x40b82f('0x1e22')];_0x1e63ea++){_0x394405[_0x40b82f('0x255')]({'title':_0x7be01[_0x40b82f('0x4e8')][_0x40b82f('0x120f')][_0x1e63ea]['type'],'msg':_0x7be01[_0x40b82f('0x4e8')]['errors'][_0x1e63ea][_0x40b82f('0x1b86')]});}}else _0x394405[_0x40b82f('0x255')]({'title':_0x7be01[_0x40b82f('0xff9')]?_0x40b82f('0x574')+_0x7be01[_0x40b82f('0xff9')]+_0x40b82f('0xb0b')+_0x7be01[_0x40b82f('0x212f')]:_0x40b82f('0x1a1c'),'msg':_0x7be01['data']?JSON[_0x40b82f('0x3e')](_0x7be01[_0x40b82f('0x4e8')][_0x40b82f('0x1b86')]):_0x7be01[_0x40b82f('0x1b86')]||_0x7be01[_0x40b82f('0xaab')]()});});},function(){});}function _0x2aacd7(){const _0x23a66c=_0x14236e,_0x5d306f={'core':{'multiple':![],'animation':!![],'error':function(_0x270e17){const _0x3e80b3=a0_0xaf0c;console[_0x3e80b3('0x255')](_0x3e80b3('0x61a')+angular['toJson'](_0x270e17));},'check_callback':!![],'worker':!![]},'version':0x1,'plugins':['wholerow']};return _0x27a08e[_0x23a66c('0x32a')]['role']!==_0x23a66c('0xf45')?_0x21a480[_0x23a66c('0x1d63')]['get']({'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x27a08e['currentUser']['userProfileId'],'sectionId':0x4b3})[_0x23a66c('0x1549')]['then'](function(_0x49a6b8){const _0x18e5ee=_0x23a66c;return _0x27a08e[_0x18e5ee('0x1d63')]=_0x49a6b8&&_0x49a6b8[_0x18e5ee('0x27d2')]==0x1?_0x49a6b8[_0x18e5ee('0x19b2')][0x0]:null,_0x5d306f;})[_0x23a66c('0x151d')](function(_0x848081){const _0x1f4358=_0x23a66c;_0x394405['error']({'title':_0x1f4358('0x1d30'),'msg':_0x848081[_0x1f4358('0x1b86')]});}):_0x5d306f;}function _0x418e4f(_0xb100ef){return _0xb100ef?{'loaded':_0x5f5a24,'select_node':_0x311df5}:{'loaded':_0x27f577,'select_node':_0x3e7ec9};}function _0x311df5(_0x456188,_0x3ec37c){const _0x36411f=_0x14236e;_0x27a08e[_0x36411f('0x2275')]['jstree'](!![])['deselect_all'](),_0x27a08e['treeDefaultInstance']['jstree'](!![])['close_all'](),_0x27a08e[_0x36411f('0x1049')]=_0x3ec37c['node'],_0x27a08e[_0x36411f('0x1049')][_0x36411f('0xa8d')]=!![],_0x27a08e[_0x36411f('0x8db')]=_0x27a08e[_0x36411f('0x5e')][_0x36411f('0x823')](!![])[_0x36411f('0x1877')](_0x27a08e[_0x36411f('0x1049')])[_0x36411f('0xa04')]('/\x20'),_0x27a08e[_0x36411f('0x2c5')]=_0x36411f('0x13ee'),_0x27a08e[_0x36411f('0x1f2a')][_0x36411f('0x1592')]=_0x3ec37c[_0x36411f('0xb14')]['id'],_0x383c4d();}function _0x3e7ec9(_0x22d16e,_0x291fc6){const _0x10e2be=_0x14236e;_0x27a08e['treeCustomInstance'][_0x10e2be('0x823')](!![])[_0x10e2be('0x26f4')](),_0x27a08e[_0x10e2be('0x5e')][_0x10e2be('0x823')](!![])[_0x10e2be('0x13e5')](),_0x27a08e['currentNode']=_0x291fc6[_0x10e2be('0xb14')],_0x27a08e[_0x10e2be('0x1049')][_0x10e2be('0xa8d')]=![],_0x27a08e[_0x10e2be('0x8db')]=_0x27a08e['treeDefaultInstance']['jstree'](!![])[_0x10e2be('0x1877')](_0x27a08e['currentNode'])['join']('/\x20'),_0x27a08e['apiName']='analyticDefaultReport',_0x27a08e['query']['parent']=_0x291fc6[_0x10e2be('0xb14')]['id'],_0x383c4d();}function _0x5f5a24(){const _0x533a8e=_0x14236e;if(!_0x27a08e['newSchedule']&&_0x27a08e[_0x533a8e('0x2c5')]===_0x533a8e('0x13ee')){const _0x4f328d=_0x27a08e['treeCustomInstance'][_0x533a8e('0x823')](!![])[_0x533a8e('0xb86')](_0x27a08e[_0x533a8e('0x1f2a')][_0x533a8e('0x1592')]);_0x311df5(null,{'node':_0x4f328d,'selected':_0x4f328d['id']});}}function _0x27f577(){const _0x25d8a3=_0x14236e;if(!_0x27a08e['newSchedule']&&_0x27a08e[_0x25d8a3('0x2c5')]==='analyticDefaultReport'){const _0x166240=_0x27a08e[_0x25d8a3('0x2275')]['jstree'](!![])[_0x25d8a3('0xb86')](_0x27a08e[_0x25d8a3('0x1f2a')]['parent']);_0x3e7ec9(null,{'node':_0x166240,'selected':_0x166240['id']});}}function _0x383c4d(){const _0x1a49dc=_0x14236e;_0x27a08e['query'][_0x1a49dc('0x1393')]=(_0x27a08e[_0x1a49dc('0x1f2a')][_0x1a49dc('0x1c2')]-0x1)*_0x27a08e['query'][_0x1a49dc('0xd5c')];if(_0x27a08e[_0x1a49dc('0x2c5')]){if(_0x27a08e[_0x1a49dc('0x32a')][_0x1a49dc('0x111d')]==='admin')_0x27a08e[_0x1a49dc('0x13f')]=_0x21a480[_0x27a08e['apiName']][_0x1a49dc('0xbaa')](_0x27a08e[_0x1a49dc('0x1f2a')],_0x5e10c7)[_0x1a49dc('0x1549')];else{if(!_0x27a08e['userProfileSection'])return _0x5e10c7(null);else{if(_0x27a08e[_0x1a49dc('0x1d63')][_0x1a49dc('0xf11')])_0x27a08e[_0x1a49dc('0x13f')]=_0x21a480[_0x27a08e[_0x1a49dc('0x2c5')]][_0x1a49dc('0xbaa')](_0x27a08e[_0x1a49dc('0x1f2a')],_0x5e10c7)[_0x1a49dc('0x1549')];else{let _0x1f4282=[];_0x27a08e[_0x1a49dc('0x13f')]=_0x21a480[_0x27a08e[_0x1a49dc('0x2c5')]][_0x1a49dc('0xbaa')](_0x27a08e['query'])[_0x1a49dc('0x1549')][_0x1a49dc('0x11bf')](function(_0x113d22){const _0x5db0ca=_0x1a49dc;return _0x1f4282=_0x113d22&&_0x113d22['rows']?_0x113d22[_0x5db0ca('0x19b2')]:[],_0x1f4282['length']>0x0?_0x21a480[_0x5db0ca('0x26d1')][_0x5db0ca('0xbaa')]({'sectionId':_0x27a08e[_0x5db0ca('0x1d63')]['id'],'type':_0x27a08e[_0x5db0ca('0x2c5')]===_0x5db0ca('0x19f4')?_0x5db0ca('0x951'):_0x5db0ca('0x18a')})[_0x5db0ca('0x1549')][_0x5db0ca('0x11bf')](function(_0x515735){const _0x49a9dd=_0x5db0ca,_0x603c29=_0x515735&&_0x515735[_0x49a9dd('0x19b2')]?_0x515735[_0x49a9dd('0x19b2')]:[];if(_0x603c29[_0x49a9dd('0x1e22')]>0x0){const _0x334a7d=[];return _0x1f4282[_0x49a9dd('0x1f88')](function(_0x1dfb3f){const _0x546b38=_0x49a9dd,_0x1bc6c9=_0x36f548()[_0x546b38('0x1ad4')](_0x603c29,[_0x546b38('0x15a5'),_0x1dfb3f['id']]);if(_0x1bc6c9)_0x334a7d['push'](_0x1dfb3f);}),_0x5e10c7({'count':_0x334a7d[_0x49a9dd('0x1e22')],'rows':_0x334a7d});}else return _0x5e10c7(null);}):_0x5e10c7(null);})[_0x1a49dc('0x151d')](function(_0x7de48c){const _0x37085a=_0x1a49dc;_0x394405[_0x37085a('0x255')]({'title':_0x7de48c['status']?'API:'+_0x7de48c[_0x37085a('0xff9')]+_0x37085a('0xb0b')+_0x7de48c[_0x37085a('0x212f')]:'SYSTEM:GET_REPORTS','msg':_0x7de48c['data']?JSON['stringify'](_0x7de48c[_0x37085a('0x4e8')]):_0x7de48c['toString']()});});}}}}}function _0x5e10c7(_0x36cca8){const _0x391481=_0x14236e;_0x27a08e[_0x391481('0x991')]=_0x36cca8||{'count':0x0,'rows':[]},!_0x27a08e[_0x391481('0x244d')]&&_0x27a08e[_0x391481('0x2127')][_0x391481('0x105d')](_0x36f548()[_0x391481('0x1ad4')](_0x27a08e['reports'][_0x391481('0x19b2')],{'id':_0x27a08e['currentReport']['id']}));}function _0x48b123(){const _0x5d503f=_0x14236e;_0x27a08e[_0x5d503f('0x589')]=_0x27a08e[_0x5d503f('0x179e')][0x0]?angular[_0x5d503f('0xa03')](_0x27a08e['treeReports'][0x0]['tree']):[],_0x27a08e[_0x5d503f('0x1e0')]=_0x27a08e[_0x5d503f('0x179e')][0x1]?angular['fromJson'](_0x27a08e[_0x5d503f('0x179e')][0x1]['tree']):[],_0x27a08e[_0x5d503f('0x1a2a')]=_0x2aacd7(),_0x27a08e['treeDefaultEvents']=_0x418e4f(![]),_0x27a08e[_0x5d503f('0x846')]=_0x418e4f(!![]),_0x53be92['show']({'controller':function(){return _0x27a08e;},'controllerAs':'vm','templateUrl':_0x6cf459,'autoWrap':!![],'skipHide':!![]});}function _0x360514(){const _0x34f54b=_0x14236e;_0x27a08e[_0x34f54b('0xc04')][_0x34f54b('0x1964')]=_0x27a08e[_0x34f54b('0x2127')][0x0]['name'],_0x27a08e[_0x34f54b('0x1049')][_0x34f54b('0xa8d')]?(_0x27a08e['schedule'][_0x34f54b('0x2066')]=_0x27a08e[_0x34f54b('0x2127')][0x0]['id'],delete _0x27a08e['schedule'][_0x34f54b('0x38e')]):(_0x27a08e[_0x34f54b('0xc04')][_0x34f54b('0x38e')]=_0x27a08e[_0x34f54b('0x2127')][0x0]['id'],delete _0x27a08e['schedule']['CustomReportId']),_0x5b86b1[_0x34f54b('0x24cb')][_0x34f54b('0x1964')][_0x34f54b('0x42b')](),_0x53be92[_0x34f54b('0x237e')]();}function _0x9627cb(){const _0x38b7d9=_0x14236e;_0x53be92[_0x38b7d9('0x237e')]();}function _0xfa18a4(_0xb59f48){return _0xb59f48===null?undefined:new Date(_0xb59f48);}function _0x6560a3(_0xd00224){const _0xe88f31=_0x14236e;_0x53be92[_0xe88f31('0x237e')](_0xd00224);}}const _0x4921ac=_0x1c12af,_0x25d276=_0x351988['p']+_0x21d0f5('0x5bf');_0x53b1bd['$inject']=[_0x21d0f5('0x1b80'),_0x21d0f5('0x2143'),_0x21d0f5('0xcbc'),_0x21d0f5('0x18fe'),_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),'$timeout','$translate','schedules',_0x21d0f5('0x25bc'),_0x21d0f5('0x1d63'),'api',_0x21d0f5('0xda9'),_0x21d0f5('0x142d'),_0x21d0f5('0x1150'),_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1')];function _0x53b1bd(_0x4f2cc2,_0x30eda3,_0x4129d9,_0x44a892,_0x4569ce,_0x5323fd,_0x535978,_0x2cf851,_0x52b148,_0x1f14db,_0x45fe91,_0x24a191,_0x1fd430,_0x244001,_0x2d7e18,_0x41e662,_0x1e43dd){const _0x114d1b=_0x21d0f5,_0x302386=this;_0x302386[_0x114d1b('0x17ff')]=_0x41e662,_0x302386[_0x114d1b('0x23e1')]=_0x1e43dd,_0x302386[_0x114d1b('0x32a')]=_0x2d7e18[_0x114d1b('0x2428')](),_0x302386['schedules']=_0x52b148||{'count':0x0,'rows':[]},_0x302386[_0x114d1b('0x25bc')]=_0x1f14db,_0x302386[_0x114d1b('0x1d63')]=_0x45fe91&&_0x45fe91[_0x114d1b('0x27d2')]==0x1?_0x45fe91['rows'][0x0]:null,_0x302386[_0x114d1b('0xb25')]=_0x2d7e18[_0x114d1b('0x1530')](_0x302386[_0x114d1b('0x1d63')]?_0x302386[_0x114d1b('0x1d63')][_0x114d1b('0xb25')]:null),_0x302386[_0x114d1b('0x13e8')]=_0x114d1b('0xd58'),_0x302386[_0x114d1b('0x724')]='',_0x302386[_0x114d1b('0xe3c')]=null,_0x302386['selectedScheduler']=[],_0x302386[_0x114d1b('0x1f2a')]={'fields':'createdAt,updatedAt,id,name,CustomReportId,DefaultReportId,output,active,startAt,endAt,cron,subtractNumber,subtractUnit,sendMail,MailAccountId,email,cc,bcc,sendIfEmpty,description','sort':_0x114d1b('0x1c74'),'limit':0xa,'page':0x1},_0x302386['arrayoutput']=_0x36f548()[_0x114d1b('0x2130')]([{'option':'CSV','value':_0x114d1b('0xa17')},{'option':_0x114d1b('0x901'),'value':'\x27pdf\x27'},{'option':_0x114d1b('0x24fb'),'value':_0x114d1b('0x381')}],function(_0x53d61e){const _0xfd4ed9=_0x114d1b;return _0x36f548()['replace'](_0x53d61e[_0xfd4ed9('0x10cc')],new RegExp('\x27','g'),'');}),_0x302386['arraysubtractUnit']=_0x36f548()[_0x114d1b('0x2130')]([{'option':_0x114d1b('0x1cd4'),'value':_0x114d1b('0x1843')},{'option':_0x114d1b('0x246b'),'value':_0x114d1b('0x572')},{'option':_0x114d1b('0x21fd'),'value':'\x27days\x27'},{'option':'Weeks','value':_0x114d1b('0x8bd')},{'option':'Months','value':'\x27months\x27'},{'option':_0x114d1b('0xb81'),'value':_0x114d1b('0x7a9')},{'option':_0x114d1b('0x868'),'value':_0x114d1b('0x1891')}],function(_0x3637c3){const _0x3a780e=_0x114d1b;return _0x36f548()['replace'](_0x3637c3[_0x3a780e('0x10cc')],new RegExp('\x27','g'),'');}),_0x302386['editdialog']=_0x49652d,_0x302386[_0x114d1b('0xc1d')]=_0x26f7c1,_0x302386['deleteconfirm']=_0x312e1c,_0x302386[_0x114d1b('0x2693')]=_0x2b9ff5,_0x302386[_0x114d1b('0x15e5')]=_0x5b3f61,_0x302386[_0x114d1b('0xb5d')]=_0x106486,_0x302386[_0x114d1b('0x25f0')]=_0x53a701,_0x302386[_0x114d1b('0x9e1')]=_0x566943,_0x302386[_0x114d1b('0x125d')]=_0x3774fe,_0x302386[_0x114d1b('0x1113')]=_0x181394,_0x302386[_0x114d1b('0xf55')]=_0x14ce73,_0x24a191[_0x114d1b('0x32b')]['get']({})[_0x114d1b('0x1549')][_0x114d1b('0x11bf')](function(_0x2ec6f0){_0x302386['treeReports']=_0x2ec6f0['rows']||[];})[_0x114d1b('0x151d')](function(_0x440139){const _0x1f8d51=_0x114d1b;_0x244001['error']({'title':_0x440139[_0x1f8d51('0xff9')]?_0x1f8d51('0x574')+_0x440139[_0x1f8d51('0xff9')]+_0x1f8d51('0xb0b')+_0x440139[_0x1f8d51('0x212f')]:_0x1f8d51('0x27a2'),'msg':_0x440139[_0x1f8d51('0x4e8')]?JSON['stringify'](_0x440139[_0x1f8d51('0x4e8')]):_0x440139['toString']()});}),_0x2d7e18[_0x114d1b('0x4ee')]('admin')?_0x24a191[_0x114d1b('0x1d47')][_0x114d1b('0xbaa')]({'fields':_0x114d1b('0x721'),'sort':'name'})['$promise'][_0x114d1b('0x11bf')](function(_0x199549){const _0x370441=_0x114d1b;_0x302386[_0x370441('0xf1a')]=_0x199549['rows']||[];})[_0x114d1b('0x151d')](function(_0x361691){const _0x3dce55=_0x114d1b;_0x244001[_0x3dce55('0x255')]({'title':_0x361691[_0x3dce55('0xff9')]?_0x3dce55('0x574')+_0x361691['status']+_0x3dce55('0xb0b')+_0x361691[_0x3dce55('0x212f')]:_0x3dce55('0x1fe6'),'msg':_0x361691[_0x3dce55('0x4e8')]?JSON[_0x3dce55('0x3e')](_0x361691[_0x3dce55('0x4e8')]):_0x361691[_0x3dce55('0xaab')]()});}):_0x24a191[_0x114d1b('0x1d47')]['get']({'fields':'id,name','sort':'name'})[_0x114d1b('0x1549')][_0x114d1b('0x11bf')](function(_0x34f97d){const _0x4a603c=_0x114d1b;_0x302386[_0x4a603c('0xf1a')]=_0x34f97d['rows']||[];})[_0x114d1b('0x11bf')](function(){const _0x2f370a=_0x114d1b;return _0x24a191[_0x2f370a('0x1d63')][_0x2f370a('0xbaa')]({'userProfileId':_0x302386[_0x2f370a('0x32a')][_0x2f370a('0x781')],'sectionId':0x25a})[_0x2f370a('0x1549')];})['then'](function(_0x1204ad){const _0x4965b2=_0x114d1b,_0x40c336=_0x1204ad&&_0x1204ad[_0x4965b2('0x19b2')]?_0x1204ad['rows'][0x0]:null;if(!_0x40c336){const _0x322d91=[];let _0x30a259=null;_0x302386[_0x4965b2('0xc04')]&&(_0x30a259=_0x36f548()[_0x4965b2('0x1ad4')](_0x302386[_0x4965b2('0xf1a')],{'id':Number(_0x302386[_0x4965b2('0xc04')][_0x4965b2('0x2294')])}));for(let _0x7df360=0x0;_0x7df360<_0x302386[_0x4965b2('0xf1a')][_0x4965b2('0x1e22')];_0x7df360++){_0x30a259&&_0x302386[_0x4965b2('0xf1a')][_0x7df360]['id']===_0x30a259['id']&&(_0x302386[_0x4965b2('0xf1a')][_0x7df360][_0x4965b2('0x254a')]=![],_0x322d91[_0x4965b2('0x105d')](_0x302386[_0x4965b2('0xf1a')][_0x7df360]));}_0x302386[_0x4965b2('0xf1a')]=_0x322d91;}else{if(!_0x40c336['autoAssociation'])return _0x24a191[_0x4965b2('0x26d1')][_0x4965b2('0xbaa')]({'sectionId':_0x40c336['id']})['$promise'][_0x4965b2('0x11bf')](function(_0x3b5d9c){const _0x13fc01=_0x4965b2,_0x349804=_0x36f548()['map'](_0x3b5d9c[_0x13fc01('0x19b2')],function(_0x3a0944){const _0x2b51ff=_0x13fc01;return _0x36f548()[_0x2b51ff('0x1ad4')](_0x302386['mailAccounts'],{'id':_0x3a0944[_0x2b51ff('0x15a5')]});});let _0x284122=null;_0x302386[_0x13fc01('0xc04')]&&(_0x284122=_0x36f548()['find'](_0x302386[_0x13fc01('0xf1a')],{'id':Number(_0x302386['schedule']['MailAccountId'])}));if(_0x284122&&!_0x36f548()['some'](_0x349804,['id',_0x284122['id']])){const _0x130775=_0x36f548()[_0x13fc01('0x1ad4')](_0x302386[_0x13fc01('0xf1a')],{'id':_0x284122['id']});_0x130775[_0x13fc01('0x254a')]=![],_0x349804[_0x13fc01('0x105d')](_0x130775);}_0x302386[_0x13fc01('0xf1a')]=_0x349804;});}})['catch'](function(_0x6cec78){const _0x278b43=_0x114d1b;_0x244001[_0x278b43('0x255')]({'title':_0x6cec78[_0x278b43('0xff9')]?_0x278b43('0x574')+_0x6cec78['status']+_0x278b43('0xb0b')+_0x6cec78['statusText']:_0x278b43('0x1757'),'msg':_0x6cec78[_0x278b43('0x4e8')]?JSON[_0x278b43('0x3e')](_0x6cec78[_0x278b43('0x4e8')]):_0x6cec78[_0x278b43('0xaab')]()});});function _0x49652d(_0x520013,_0xd2fce){const _0x863f38=_0x114d1b;_0x4569ce[_0x863f38('0xb9')]({'controller':'CreateOrEditScheduleDialogController','controllerAs':'vm','templateUrl':_0x25d276,'parent':angular['element'](_0x5323fd[_0x863f38('0x1d2')]),'targetEvent':_0xd2fce,'clickOutsideToClose':!![],'locals':{'schedule':_0x520013,'schedules':_0x302386[_0x863f38('0xd58')]['rows'],'license':_0x302386[_0x863f38('0x17ff')],'setting':null,'crudPermissions':_0x302386['crudPermissions']}});}function _0x26f7c1(_0xe1281c,_0xc70870){const _0xee1723=_0x114d1b,_0x14fdf5=_0x4569ce['confirm']()[_0xee1723('0x134b')](_0xee1723('0x3e7'))[_0xee1723('0x1d03')](_0xee1723('0x2061')+(_0xe1281c[_0xee1723('0x1909')]||_0xee1723('0xc04'))+_0xee1723('0x1c78')+_0xee1723('0xba8'))[_0xee1723('0xb2e')](_0xee1723('0x2777'))[_0xee1723('0x1e25')](_0xc70870)['ok']('OK')['cancel'](_0xee1723('0x772'));_0x4569ce[_0xee1723('0xb9')](_0x14fdf5)['then'](function(){const _0x2cdca6=_0xee1723;return _0x24a191[_0x2cdca6('0xc04')]['run']({'id':_0xe1281c['id']})[_0x2cdca6('0x1549')];},function(){const _0x55210c=_0xee1723;console[_0x55210c('0xc78')](_0x55210c('0x772'));});}function _0x312e1c(_0x4013bc,_0x21be21){const _0x202903=_0x114d1b,_0xb5de28=_0x4569ce[_0x202903('0x132b')]()[_0x202903('0x134b')](_0x202903('0x1796')+_0x36f548()[_0x202903('0x13cf')](_0x202903('0xc04'))+'?')['htmlContent'](_0x202903('0x2061')+(_0x4013bc[_0x202903('0x1909')]||_0x202903('0xc04'))+_0x202903('0x1c78')+_0x202903('0x1a'))['ariaLabel']('delete\x20schedule')[_0x202903('0x1e25')](_0x21be21)['ok']('OK')[_0x202903('0x26c9')](_0x202903('0x772'));_0x4569ce['show'](_0xb5de28)[_0x202903('0x11bf')](function(){_0x53a701(_0x4013bc);},function(){const _0x48acad=_0x202903;console[_0x48acad('0xc78')](_0x48acad('0x772'));});}let _0x341f3c=!![],_0x5222a6=0x1;_0x4f2cc2[_0x114d1b('0x2087')](_0x114d1b('0x842'),function(_0x187aae,_0x2bb346){const _0x3f0e40=_0x114d1b;_0x341f3c?_0x535978(function(){_0x341f3c=![];}):(!_0x2bb346&&(_0x5222a6=_0x302386[_0x3f0e40('0x1f2a')][_0x3f0e40('0x1c2')]),_0x187aae!==_0x2bb346&&(_0x302386[_0x3f0e40('0x1f2a')][_0x3f0e40('0x1c2')]=0x1),!_0x187aae&&(_0x302386['query'][_0x3f0e40('0x1c2')]=_0x5222a6),_0x302386['getScheduler']());});function _0x2b9ff5(_0x912856){const _0x8df32f=_0x114d1b;_0x302386[_0x8df32f('0xd58')]=_0x912856||{'count':0x0,'rows':[]};}function _0x5b3f61(){const _0x176c3d=_0x114d1b;_0x302386[_0x176c3d('0x1f2a')][_0x176c3d('0x1393')]=(_0x302386[_0x176c3d('0x1f2a')][_0x176c3d('0x1c2')]-0x1)*_0x302386[_0x176c3d('0x1f2a')][_0x176c3d('0xd5c')],_0x2d7e18[_0x176c3d('0x4ee')]('admin')?_0x302386[_0x176c3d('0x13f')]=_0x24a191[_0x176c3d('0xc04')][_0x176c3d('0xbaa')](_0x302386[_0x176c3d('0x1f2a')],_0x2b9ff5)[_0x176c3d('0x1549')]:(_0x302386['query']['id']=_0x302386['userProfile']['id'],_0x302386['query']['section']=_0x176c3d('0x85d'),_0x302386['promise']=_0x24a191[_0x176c3d('0x25bc')]['getResources'](_0x302386[_0x176c3d('0x1f2a')],_0x2b9ff5)[_0x176c3d('0x1549')]);}function _0x106486(_0x569db1,_0x12732d){const _0x52f935=_0x114d1b;_0x4569ce[_0x52f935('0xb9')]({'controller':_0x52f935('0xd50'),'controllerAs':'vm','templateUrl':_0x25d276,'parent':angular[_0x52f935('0x1e73')](_0x5323fd[_0x52f935('0x1d2')]),'targetEvent':_0x569db1,'clickOutsideToClose':!![],'locals':{'schedule':_0x12732d,'schedules':_0x302386[_0x52f935('0xd58')][_0x52f935('0x19b2')],'license':_0x302386['license'],'setting':_0x302386[_0x52f935('0x23e1')],'crudPermissions':_0x302386[_0x52f935('0xb25')]}});}function _0x53a701(_0x300a16){const _0x1d63cb=_0x114d1b;_0x24a191[_0x1d63cb('0xc04')][_0x1d63cb('0x2088')]({'id':_0x300a16['id']})[_0x1d63cb('0x1549')][_0x1d63cb('0x11bf')](function(){const _0x4d8c83=_0x1d63cb;_0x36f548()[_0x4d8c83('0x14a5')](_0x302386[_0x4d8c83('0xd58')][_0x4d8c83('0x19b2')],{'id':_0x300a16['id']}),_0x302386[_0x4d8c83('0xd58')][_0x4d8c83('0x27d2')]-=0x1,!_0x302386[_0x4d8c83('0xd58')]['rows'][_0x4d8c83('0x1e22')]&&_0x302386[_0x4d8c83('0x15e5')](),_0x244001[_0x4d8c83('0x2693')]({'title':_0x36f548()['startCase'](_0x4d8c83('0x1fe0'))+'\x20deleted!','msg':_0x300a16[_0x4d8c83('0x1909')]?_0x300a16[_0x4d8c83('0x1909')]+_0x4d8c83('0x433'):''});})[_0x1d63cb('0x151d')](function(_0x12db06){const _0x2a9b8e=_0x1d63cb;if(_0x12db06[_0x2a9b8e('0x4e8')]&&_0x12db06[_0x2a9b8e('0x4e8')][_0x2a9b8e('0x120f')]&&_0x12db06['data'][_0x2a9b8e('0x120f')][_0x2a9b8e('0x1e22')]){_0x302386['errors']=_0x12db06[_0x2a9b8e('0x4e8')][_0x2a9b8e('0x120f')]||[{'message':_0x12db06['toString'](),'type':_0x2a9b8e('0x6ef')}];for(let _0x588ead=0x0;_0x588ead<_0x12db06[_0x2a9b8e('0x4e8')][_0x2a9b8e('0x120f')]['length'];_0x588ead++){_0x244001[_0x2a9b8e('0x255')]({'title':_0x12db06['data']['errors'][_0x588ead]['type'],'msg':_0x12db06[_0x2a9b8e('0x4e8')]['errors'][_0x588ead][_0x2a9b8e('0x1b86')]});}}else _0x244001[_0x2a9b8e('0x255')]({'title':_0x12db06['status']?_0x2a9b8e('0x574')+_0x12db06[_0x2a9b8e('0xff9')]+_0x2a9b8e('0xb0b')+_0x12db06['statusText']:_0x2a9b8e('0x6ef'),'msg':_0x12db06[_0x2a9b8e('0x4e8')]?JSON[_0x2a9b8e('0x3e')](_0x12db06[_0x2a9b8e('0x4e8')][_0x2a9b8e('0x1b86')]):_0x12db06[_0x2a9b8e('0x1b86')]||_0x12db06[_0x2a9b8e('0xaab')]()});});}function _0x566943(){const _0xcb6f71=_0x114d1b,_0x53de5e=angular[_0xcb6f71('0x6fb')](_0x302386['selectedScheduler']);return _0x302386[_0xcb6f71('0x55d')]=[],_0x53de5e;}function _0x3774fe(_0x421ddc){const _0x576b09=_0x114d1b,_0x3511a8=_0x4569ce[_0x576b09('0x132b')]()[_0x576b09('0x134b')](_0x576b09('0x2286'))['htmlContent'](''+_0x302386[_0x576b09('0x55d')][_0x576b09('0x1e22')]+_0x576b09('0xac6')+_0x576b09('0x1a'))[_0x576b09('0xb2e')](_0x576b09('0xbd7'))['targetEvent'](_0x421ddc)['ok']('OK')['cancel']('CANCEL');_0x4569ce[_0x576b09('0xb9')](_0x3511a8)[_0x576b09('0x11bf')](function(){const _0x54aaf9=_0x576b09;_0x302386[_0x54aaf9('0x55d')][_0x54aaf9('0x1f88')](function(_0x16878e){_0x53a701(_0x16878e);}),_0x302386['selectedScheduler']=[];});}function _0x181394(){const _0x436b94=_0x114d1b;_0x302386[_0x436b94('0x55d')]=[];}function _0x14ce73(){const _0x34ad60=_0x114d1b;_0x302386['selectedScheduler']=_0x302386['schedules'][_0x34ad60('0x19b2')];}}const _0x2affe6=_0x53b1bd;_0x13198b[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0xcbc'),'$location',_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0xb6b'),_0x21d0f5('0x142d'),_0x21d0f5('0x209a'),_0x21d0f5('0x1d6e'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1'),_0x21d0f5('0xb25')];function _0x13198b(_0x4f647d,_0x35446f,_0x532758,_0x191ee4,_0x58e5d0,_0x2f4ef2,_0x3145f7,_0x3966fe,_0x2cc3e3,_0x16b8fb,_0x5a5623,_0x2b3a6f,_0x561f7f,_0x70ea3){const _0x127234=_0x21d0f5,_0x1fbc8d=this;_0x1fbc8d[_0x127234('0x32a')]=_0x5a5623['getCurrentUser'](),_0x1fbc8d[_0x127234('0x120f')]=[],_0x1fbc8d[_0x127234('0x23e1')]=_0x561f7f,_0x1fbc8d[_0x127234('0x17ff')]=_0x2b3a6f,_0x1fbc8d[_0x127234('0xb25')]=_0x70ea3,_0x1fbc8d[_0x127234('0x2c9')]={},_0x1fbc8d['passwordPattern']=_0x1fbc8d[_0x127234('0x23e1')]&&_0x1fbc8d['setting'][_0x127234('0x1d4')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1fbc8d[_0x127234('0x134b')]=_0x127234('0x19ed'),_0x1fbc8d[_0x127234('0x1d6e')]=angular[_0x127234('0x6fb')](_0x2cc3e3),_0x1fbc8d[_0x127234('0x209a')]=_0x3966fe,_0x1fbc8d['newSound']=![];!_0x1fbc8d['sound']&&(_0x1fbc8d[_0x127234('0x1d6e')]={},_0x1fbc8d[_0x127234('0x134b')]=_0x127234('0x1e2a'),_0x1fbc8d[_0x127234('0xddf')]=!![]);_0x1fbc8d[_0x127234('0x1a01')]=_0x314815,_0x1fbc8d[_0x127234('0x157')]=_0x4b3bc7,_0x1fbc8d['deleteSound']=_0x5f1c1a,_0x1fbc8d['getDateFromString']=_0x9a7c30,_0x1fbc8d[_0x127234('0xc4e')]=_0x58037f;function _0x314815(){const _0x186552=_0x127234;_0x1fbc8d[_0x186552('0x120f')]=[],_0x16b8fb[_0x186552('0x1d6e')][_0x186552('0x259')](_0x1fbc8d[_0x186552('0x1d6e')])[_0x186552('0x1549')][_0x186552('0x11bf')](function(_0x53f3cb){const _0x4626c2=_0x186552;_0x1fbc8d[_0x4626c2('0x209a')]['unshift'](_0x53f3cb[_0x4626c2('0x2866')]()),_0x3145f7[_0x4626c2('0x2693')]({'title':'Sound\x20properly\x20created','msg':_0x1fbc8d[_0x4626c2('0x1d6e')][_0x4626c2('0x1909')]?_0x1fbc8d['sound'][_0x4626c2('0x1909')]+_0x4626c2('0x7fb'):''}),_0x58037f(_0x53f3cb);})[_0x186552('0x151d')](function(_0x27c67b){const _0x5894f8=_0x186552;if(_0x27c67b[_0x5894f8('0x4e8')]&&_0x27c67b['data'][_0x5894f8('0x120f')]&&_0x27c67b['data'][_0x5894f8('0x120f')]['length']){_0x1fbc8d['errors']=_0x27c67b['data'][_0x5894f8('0x120f')]||[{'message':_0x27c67b[_0x5894f8('0xaab')](),'type':_0x5894f8('0x1966')}];for(let _0x55b837=0x0;_0x55b837<_0x27c67b[_0x5894f8('0x4e8')]['errors'][_0x5894f8('0x1e22')];_0x55b837+=0x1){_0x3145f7[_0x5894f8('0x255')]({'title':_0x27c67b['data'][_0x5894f8('0x120f')][_0x55b837][_0x5894f8('0x19fd')],'msg':_0x27c67b[_0x5894f8('0x4e8')][_0x5894f8('0x120f')][_0x55b837][_0x5894f8('0x1b86')]});}}else _0x3145f7[_0x5894f8('0x255')]({'title':_0x27c67b[_0x5894f8('0xff9')]?'API:'+_0x27c67b[_0x5894f8('0xff9')]+_0x5894f8('0xb0b')+_0x27c67b[_0x5894f8('0x212f')]:_0x5894f8('0x1966'),'msg':_0x27c67b['data']?JSON['stringify'](_0x27c67b['data'][_0x5894f8('0x1b86')]):_0x27c67b[_0x5894f8('0xaab')]()});});}function _0x4b3bc7(){const _0x4b613e=_0x127234;_0x1fbc8d[_0x4b613e('0x120f')]=[],_0x16b8fb[_0x4b613e('0x1d6e')][_0x4b613e('0x5ab')]({'id':_0x1fbc8d[_0x4b613e('0x1d6e')]['id']},_0x1fbc8d[_0x4b613e('0x1d6e')])['$promise'][_0x4b613e('0x11bf')](function(_0x3e02e9){const _0x3e0ee7=_0x4b613e,_0x4fdde2=_0x36f548()[_0x3e0ee7('0x1ad4')](_0x1fbc8d['sounds'],{'id':_0x3e02e9['id']});_0x4fdde2&&_0x36f548()[_0x3e0ee7('0x47b')](_0x4fdde2,_0x36f548()[_0x3e0ee7('0x258')](_0x3e02e9['toJSON'](),_0x36f548()[_0x3e0ee7('0xe22')](_0x4fdde2))),_0x3145f7['success']({'title':'Sound\x20properly\x20saved!','msg':_0x1fbc8d[_0x3e0ee7('0x1d6e')][_0x3e0ee7('0x1909')]?_0x1fbc8d[_0x3e0ee7('0x1d6e')][_0x3e0ee7('0x1909')]+_0x3e0ee7('0x1a78'):''}),_0x58037f(_0x3e02e9);})[_0x4b613e('0x151d')](function(_0x41125d){const _0x3a5561=_0x4b613e;if(_0x41125d[_0x3a5561('0x4e8')]&&_0x41125d[_0x3a5561('0x4e8')][_0x3a5561('0x120f')]&&_0x41125d['data'][_0x3a5561('0x120f')]['length']){_0x1fbc8d[_0x3a5561('0x120f')]=_0x41125d[_0x3a5561('0x4e8')]['errors']||[{'message':_0x41125d[_0x3a5561('0xaab')](),'type':_0x3a5561('0x23b8')}];for(let _0x42c55d=0x0;_0x42c55d<_0x41125d[_0x3a5561('0x4e8')][_0x3a5561('0x120f')]['length'];_0x42c55d++){_0x3145f7['error']({'title':_0x41125d[_0x3a5561('0x4e8')][_0x3a5561('0x120f')][_0x42c55d][_0x3a5561('0x19fd')],'msg':_0x41125d['data'][_0x3a5561('0x120f')][_0x42c55d][_0x3a5561('0x1b86')]});}}else _0x3145f7[_0x3a5561('0x255')]({'title':_0x41125d['status']?_0x3a5561('0x574')+_0x41125d[_0x3a5561('0xff9')]+_0x3a5561('0xb0b')+_0x41125d[_0x3a5561('0x212f')]:_0x3a5561('0x23b8'),'msg':_0x41125d[_0x3a5561('0x4e8')]?JSON['stringify'](_0x41125d[_0x3a5561('0x4e8')][_0x3a5561('0x1b86')]):_0x41125d[_0x3a5561('0xaab')]()});});}function _0x5f1c1a(_0x28cabf){const _0x175284=_0x127234;_0x1fbc8d[_0x175284('0x120f')]=[];const _0x5a3308=_0x191ee4[_0x175284('0x132b')]()['title'](_0x175284('0x1fa9'))['content'](_0x175284('0x2860'))[_0x175284('0xb2e')](_0x175284('0x12c2'))['ok']('Delete')[_0x175284('0x26c9')](_0x175284('0x784'))[_0x175284('0x1e25')](_0x28cabf);_0x191ee4['show'](_0x5a3308)[_0x175284('0x11bf')](function(){const _0x1ca858=_0x175284;_0x16b8fb['sound'][_0x1ca858('0x2088')]({'id':_0x1fbc8d[_0x1ca858('0x1d6e')]['id']})[_0x1ca858('0x1549')][_0x1ca858('0x11bf')](function(){const _0x1625af=_0x1ca858;_0x36f548()[_0x1625af('0x14a5')](_0x1fbc8d[_0x1625af('0x209a')],{'id':_0x1fbc8d[_0x1625af('0x1d6e')]['id']}),_0x3145f7[_0x1625af('0x2693')]({'title':'Sound\x20properly\x20deleted!','msg':(_0x1fbc8d[_0x1625af('0x1d6e')][_0x1625af('0x1909')]||_0x1625af('0x1d6e'))+_0x1625af('0x433')}),_0x58037f(_0x1fbc8d[_0x1625af('0x1d6e')]);})[_0x1ca858('0x151d')](function(_0x2acf2f){const _0x4056ac=_0x1ca858;if(_0x2acf2f[_0x4056ac('0x4e8')]&&_0x2acf2f[_0x4056ac('0x4e8')]['errors']&&_0x2acf2f['data'][_0x4056ac('0x120f')][_0x4056ac('0x1e22')]){_0x1fbc8d[_0x4056ac('0x120f')]=_0x2acf2f[_0x4056ac('0x4e8')][_0x4056ac('0x120f')]||[{'message':_0x2acf2f[_0x4056ac('0xaab')](),'type':_0x4056ac('0x139b')}];for(let _0x5db849=0x0;_0x5db849<_0x2acf2f[_0x4056ac('0x4e8')][_0x4056ac('0x120f')][_0x4056ac('0x1e22')];_0x5db849++){_0x3145f7['error']({'title':_0x2acf2f['data']['errors'][_0x5db849][_0x4056ac('0x19fd')],'msg':_0x2acf2f[_0x4056ac('0x4e8')][_0x4056ac('0x120f')][_0x5db849]['message']});}}else _0x3145f7[_0x4056ac('0x255')]({'title':_0x2acf2f['status']?_0x4056ac('0x574')+_0x2acf2f['status']+'\x20-\x20'+_0x2acf2f[_0x4056ac('0x212f')]:_0x4056ac('0x139b'),'msg':_0x2acf2f[_0x4056ac('0x4e8')]?JSON[_0x4056ac('0x3e')](_0x2acf2f[_0x4056ac('0x4e8')][_0x4056ac('0x1b86')]):_0x2acf2f[_0x4056ac('0x1b86')]||_0x2acf2f[_0x4056ac('0xaab')]()});});},function(){});}function _0x9a7c30(_0x25bf50){return _0x25bf50===null?undefined:new Date(_0x25bf50);}function _0x58037f(_0x143b29){const _0x3d5016=_0x127234;_0x191ee4[_0x3d5016('0x237e')](_0x143b29);}}const _0x6e811f=_0x13198b,_0x5df11c=_0x351988['p']+_0x21d0f5('0x223b'),_0x3484d6=_0x351988['p']+_0x21d0f5('0x1f30');_0x964f83[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0x2143'),'$state',_0x21d0f5('0x18fe'),_0x21d0f5('0x1ca2'),'$document',_0x21d0f5('0x17f5'),_0x21d0f5('0xb6b'),_0x21d0f5('0x209a'),_0x21d0f5('0x25bc'),_0x21d0f5('0x1d63'),_0x21d0f5('0x12a5'),_0x21d0f5('0xda9'),_0x21d0f5('0x142d'),'Auth',_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1')];function _0x964f83(_0x3db499,_0x5c1a11,_0x42e988,_0x182115,_0x2ec211,_0x4a6d05,_0x574b7e,_0x1ddd08,_0x2e9497,_0x5e6374,_0x255c5e,_0x968345,_0x545a22,_0x1dca4f,_0x18abf9,_0x27bf53,_0x5c8513){const _0x1cc7d9=_0x21d0f5,_0x5e5aac=this;_0x5e5aac[_0x1cc7d9('0x17ff')]=_0x27bf53,_0x5e5aac[_0x1cc7d9('0x23e1')]=_0x5c8513,_0x5e5aac[_0x1cc7d9('0x32a')]=_0x18abf9[_0x1cc7d9('0x2428')](),_0x5e5aac[_0x1cc7d9('0x209a')]=_0x2e9497||{'count':0x0,'rows':[]},_0x5e5aac[_0x1cc7d9('0x25bc')]=_0x5e6374,_0x5e5aac[_0x1cc7d9('0x1d63')]=_0x255c5e&&_0x255c5e['count']==0x1?_0x255c5e[_0x1cc7d9('0x19b2')][0x0]:null,_0x5e5aac['crudPermissions']=_0x18abf9[_0x1cc7d9('0x1530')](_0x5e5aac[_0x1cc7d9('0x1d63')]?_0x5e5aac[_0x1cc7d9('0x1d63')][_0x1cc7d9('0xb25')]:null),_0x5e5aac['table']=_0x1cc7d9('0x209a'),_0x5e5aac[_0x1cc7d9('0x724')]='',_0x5e5aac[_0x1cc7d9('0xe3c')]=null,_0x5e5aac['selectedSounds']=[],_0x5e5aac[_0x1cc7d9('0x1f2a')]={'fields':'createdAt,updatedAt,id,save_name,converted_format,name,audio,description','sort':_0x1cc7d9('0x1c74'),'limit':0xa,'page':0x1},_0x5e5aac[_0x1cc7d9('0xc03')]=_0x993057,_0x5e5aac['downloadfile2']=_0x2bf083,_0x5e5aac['deleteconfirm']=_0x2f3735,_0x5e5aac[_0x1cc7d9('0x2693')]=_0xc9a56b,_0x5e5aac[_0x1cc7d9('0x14df')]=_0x3e3991,_0x5e5aac[_0x1cc7d9('0x608')]=_0x34ab5a,_0x5e5aac[_0x1cc7d9('0x1128')]=_0x18ee7f,_0x5e5aac[_0x1cc7d9('0x13bf')]=_0x3c9c0b,_0x5e5aac['deleteSelectedSounds']=_0x619436,_0x5e5aac[_0x1cc7d9('0x1b1c')]=_0x1e4df8,_0x5e5aac[_0x1cc7d9('0x12e0')]=_0x22ea99,_0x5e5aac[_0x1cc7d9('0x1517')]=_0x1d74a4;function _0x993057(_0x5562ae,_0x9a1cae){const _0x2d6a29=_0x1cc7d9;_0x2ec211[_0x2d6a29('0xb9')]({'controller':_0x2d6a29('0x2152'),'controllerAs':'vm','templateUrl':_0x5df11c,'parent':angular['element'](_0x4a6d05['body']),'targetEvent':_0x9a1cae,'clickOutsideToClose':!![],'locals':{'sound':_0x5562ae,'sounds':_0x5e5aac[_0x2d6a29('0x209a')][_0x2d6a29('0x19b2')],'license':_0x5e5aac[_0x2d6a29('0x17ff')],'setting':null,'crudPermissions':_0x5e5aac[_0x2d6a29('0xb25')]}});}function _0x2bf083(_0x4e6e53){const _0x52e083=_0x1cc7d9;return _0x968345[_0x52e083('0x1d6e')]['download']({'id':_0x4e6e53['id']})[_0x52e083('0x1549')][_0x52e083('0x11bf')](function(_0x2882dd){const _0x35a2d9=_0x52e083,_0x5acae3=[_0x2882dd['buffer']];let _0x442020=_0x35a2d9('0x149c');const _0x12edc2=new Blob(_0x5acae3,{'type':_0x2882dd[_0x35a2d9('0x19fd')]});_0x442020=_0x4e6e53[_0x35a2d9('0x2564')]?_0x4e6e53['save_name']+'.'+_0x4e6e53[_0x35a2d9('0x2564')]:_0x4e6e53[_0x35a2d9('0xce5')];const _0xe9f692=window[_0x35a2d9('0xb54')][_0x35a2d9('0x2773')]('a');_0xe9f692['setAttribute'](_0x35a2d9('0xead'),URL[_0x35a2d9('0x44b')](_0x12edc2)),_0xe9f692[_0x35a2d9('0x1e1b')](_0x35a2d9('0x149c'),_0x442020),document[_0x35a2d9('0x1d2')]['appendChild'](_0xe9f692),_0xe9f692[_0x35a2d9('0x1371')]();})[_0x52e083('0x151d')](function(_0x20917c){const _0x3e83b1=_0x52e083;if(_0x20917c[_0x3e83b1('0x4e8')]&&_0x20917c['data']['errors']&&_0x20917c[_0x3e83b1('0x4e8')][_0x3e83b1('0x120f')][_0x3e83b1('0x1e22')])for(let _0x43a6be=0x0;_0x43a6be<_0x20917c[_0x3e83b1('0x4e8')][_0x3e83b1('0x120f')]['length'];_0x43a6be++){_0x1dca4f['error']({'title':_0x20917c['data'][_0x3e83b1('0x120f')][_0x43a6be][_0x3e83b1('0x19fd')],'msg':_0x20917c[_0x3e83b1('0x4e8')][_0x3e83b1('0x120f')][_0x43a6be][_0x3e83b1('0x1b86')]});}else _0x1dca4f[_0x3e83b1('0x255')]({'title':_0x20917c[_0x3e83b1('0xff9')]?_0x3e83b1('0x574')+_0x20917c[_0x3e83b1('0xff9')]+_0x3e83b1('0xb0b')+_0x20917c[_0x3e83b1('0x212f')]:_0x3e83b1('0x1966'),'msg':_0x20917c[_0x3e83b1('0x4e8')]?JSON['stringify'](_0x20917c[_0x3e83b1('0x4e8')][_0x3e83b1('0x1b86')]):_0x20917c[_0x3e83b1('0xaab')]()});});}function _0x2f3735(_0x1de4c1,_0x143887){const _0x412cda=_0x1cc7d9,_0x29a38d=_0x2ec211[_0x412cda('0x132b')]()[_0x412cda('0x134b')](_0x412cda('0x1796')+_0x36f548()['startCase']('sound')+'?')[_0x412cda('0x1d03')](_0x412cda('0x2061')+(_0x1de4c1[_0x412cda('0x1909')]||_0x412cda('0x1d6e'))+_0x412cda('0x1c78')+_0x412cda('0x1a'))[_0x412cda('0xb2e')](_0x412cda('0x11a4'))[_0x412cda('0x1e25')](_0x143887)['ok']('OK')[_0x412cda('0x26c9')](_0x412cda('0x772'));_0x2ec211[_0x412cda('0xb9')](_0x29a38d)[_0x412cda('0x11bf')](function(){_0x18ee7f(_0x1de4c1);},function(){const _0x459b0a=_0x412cda;console[_0x459b0a('0xc78')](_0x459b0a('0x772'));});}let _0x2514f2=!![],_0x552a33=0x1;_0x3db499[_0x1cc7d9('0x2087')](_0x1cc7d9('0x842'),function(_0x7a2175,_0x2e2760){const _0x4d8aa8=_0x1cc7d9;_0x2514f2?_0x574b7e(function(){_0x2514f2=![];}):(!_0x2e2760&&(_0x552a33=_0x5e5aac['query'][_0x4d8aa8('0x1c2')]),_0x7a2175!==_0x2e2760&&(_0x5e5aac['query'][_0x4d8aa8('0x1c2')]=0x1),!_0x7a2175&&(_0x5e5aac['query'][_0x4d8aa8('0x1c2')]=_0x552a33),_0x5e5aac[_0x4d8aa8('0x14df')]());});function _0xc9a56b(_0x1659c7){const _0x64cf3e=_0x1cc7d9;_0x5e5aac[_0x64cf3e('0x209a')]=_0x1659c7||{'count':0x0,'rows':[]};}function _0x3e3991(){const _0x1ebb3a=_0x1cc7d9;_0x5e5aac[_0x1ebb3a('0x1f2a')][_0x1ebb3a('0x1393')]=(_0x5e5aac['query']['page']-0x1)*_0x5e5aac[_0x1ebb3a('0x1f2a')][_0x1ebb3a('0xd5c')],_0x18abf9[_0x1ebb3a('0x4ee')](_0x1ebb3a('0xf45'))?_0x5e5aac[_0x1ebb3a('0x13f')]=_0x968345[_0x1ebb3a('0x1d6e')][_0x1ebb3a('0xbaa')](_0x5e5aac[_0x1ebb3a('0x1f2a')],_0xc9a56b)['$promise']:(_0x5e5aac[_0x1ebb3a('0x1f2a')]['id']=_0x5e5aac[_0x1ebb3a('0x25bc')]['id'],_0x5e5aac['query']['section']=_0x1ebb3a('0x1bfe'),_0x5e5aac[_0x1ebb3a('0x13f')]=_0x968345[_0x1ebb3a('0x25bc')]['getResources'](_0x5e5aac[_0x1ebb3a('0x1f2a')],_0xc9a56b)[_0x1ebb3a('0x1549')]);}function _0x34ab5a(_0x784266,_0x3b11e2){const _0x4a4580=_0x1cc7d9;_0x2ec211['show']({'controller':_0x4a4580('0x2152'),'controllerAs':'vm','templateUrl':_0x5df11c,'parent':angular['element'](_0x4a6d05[_0x4a4580('0x1d2')]),'targetEvent':_0x784266,'clickOutsideToClose':!![],'locals':{'sound':_0x3b11e2,'sounds':_0x5e5aac[_0x4a4580('0x209a')][_0x4a4580('0x19b2')],'license':_0x5e5aac['license'],'setting':_0x5e5aac[_0x4a4580('0x23e1')],'crudPermissions':_0x5e5aac[_0x4a4580('0xb25')]}});}function _0x18ee7f(_0x1a4d9d){const _0x4f4ab6=_0x1cc7d9;_0x968345[_0x4f4ab6('0x1d6e')][_0x4f4ab6('0x2088')]({'id':_0x1a4d9d['id']})[_0x4f4ab6('0x1549')][_0x4f4ab6('0x11bf')](function(){const _0xfff56b=_0x4f4ab6;_0x36f548()[_0xfff56b('0x14a5')](_0x5e5aac[_0xfff56b('0x209a')]['rows'],{'id':_0x1a4d9d['id']}),_0x5e5aac[_0xfff56b('0x209a')][_0xfff56b('0x27d2')]-=0x1,!_0x5e5aac[_0xfff56b('0x209a')]['rows'][_0xfff56b('0x1e22')]&&_0x5e5aac['getSounds'](),_0x1dca4f[_0xfff56b('0x2693')]({'title':_0x36f548()[_0xfff56b('0x13cf')]('Sound')+'\x20deleted!','msg':_0x1a4d9d['name']?_0x1a4d9d['name']+_0xfff56b('0x433'):''});})[_0x4f4ab6('0x151d')](function(_0x10f15f){const _0xe46f3a=_0x4f4ab6;if(_0x10f15f['data']&&_0x10f15f[_0xe46f3a('0x4e8')]['errors']&&_0x10f15f[_0xe46f3a('0x4e8')][_0xe46f3a('0x120f')]['length']){_0x5e5aac[_0xe46f3a('0x120f')]=_0x10f15f[_0xe46f3a('0x4e8')][_0xe46f3a('0x120f')]||[{'message':_0x10f15f['toString'](),'type':_0xe46f3a('0x130')}];for(let _0x7c5e3a=0x0;_0x7c5e3a<_0x10f15f[_0xe46f3a('0x4e8')][_0xe46f3a('0x120f')][_0xe46f3a('0x1e22')];_0x7c5e3a++){_0x1dca4f[_0xe46f3a('0x255')]({'title':_0x10f15f['data'][_0xe46f3a('0x120f')][_0x7c5e3a][_0xe46f3a('0x19fd')],'msg':_0x10f15f['data'][_0xe46f3a('0x120f')][_0x7c5e3a][_0xe46f3a('0x1b86')]});}}else _0x1dca4f[_0xe46f3a('0x255')]({'title':_0x10f15f[_0xe46f3a('0xff9')]?'API:'+_0x10f15f[_0xe46f3a('0xff9')]+'\x20-\x20'+_0x10f15f[_0xe46f3a('0x212f')]:_0xe46f3a('0x130'),'msg':_0x10f15f[_0xe46f3a('0x4e8')]?JSON[_0xe46f3a('0x3e')](_0x10f15f['data'][_0xe46f3a('0x1b86')]):_0x10f15f[_0xe46f3a('0x1b86')]||_0x10f15f['toString']()});});}function _0x3c9c0b(){const _0x3fd842=_0x1cc7d9,_0x20d022=angular[_0x3fd842('0x6fb')](_0x5e5aac[_0x3fd842('0x1497')]);return _0x5e5aac[_0x3fd842('0x1497')]=[],_0x20d022;}function _0x619436(_0xfe6d9f){const _0x1d41cd=_0x1cc7d9,_0x10b20f=_0x2ec211[_0x1d41cd('0x132b')]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20sounds?')[_0x1d41cd('0x1d03')](_0x1d41cd('0x2061')+_0x5e5aac[_0x1d41cd('0x1497')][_0x1d41cd('0x1e22')]+'\x20selected'+_0x1d41cd('0x1a'))['ariaLabel'](_0x1d41cd('0x3ed'))['targetEvent'](_0xfe6d9f)['ok']('OK')[_0x1d41cd('0x26c9')]('CANCEL');_0x2ec211[_0x1d41cd('0xb9')](_0x10b20f)['then'](function(){const _0x10098d=_0x1d41cd;_0x5e5aac[_0x10098d('0x1497')][_0x10098d('0x1f88')](function(_0x4d2bb8){_0x18ee7f(_0x4d2bb8);}),_0x5e5aac[_0x10098d('0x1497')]=[];});}function _0x1e4df8(){const _0x538219=_0x1cc7d9;_0x5e5aac[_0x538219('0x1497')]=[];}function _0x22ea99(){const _0x38731b=_0x1cc7d9;_0x5e5aac['selectedSounds']=_0x5e5aac['sounds'][_0x38731b('0x19b2')];}function _0x1d74a4(_0x395b3b){const _0x47516b=_0x1cc7d9;_0x2ec211[_0x47516b('0xb9')]({'controller':_0x47516b('0x80a'),'controllerAs':'vm','templateUrl':_0x3484d6,'parent':angular[_0x47516b('0x1e73')](_0x4a6d05[_0x47516b('0x1d2')]),'targetEvent':_0x395b3b,'clickOutsideToClose':!![],'locals':{'sounds':_0x5e5aac[_0x47516b('0x209a')]['rows']}});}}const _0x35eef9=_0x964f83;_0x5480c2[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x5d8'),_0x21d0f5('0x1ca2'),_0x21d0f5('0x142d'),_0x21d0f5('0x209a'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150')];function _0x5480c2(_0x2a43b9,_0x59a4f6,_0x1f8276,_0x5c858c,_0xe1776,_0x4a58b7){const _0x333475=_0x21d0f5,_0x1b5ee7=this,_0x5f1202=0xf,_0x8d0847=_0x5f1202*0x400*0x400;_0x1b5ee7[_0x333475('0x32a')]=_0x4a58b7['getCurrentUser'](),_0x1b5ee7[_0x333475('0x120f')]=[],_0x1b5ee7[_0x333475('0x134b')]=_0x333475('0x2d2'),_0x1b5ee7[_0x333475('0x209a')]=_0x5c858c,_0x1b5ee7[_0x333475('0x1222')]=[],_0x1b5ee7[_0x333475('0x18b6')]=_0x333475('0x3e6'),_0x1b5ee7[_0x333475('0x1d6e')]={},_0x1b5ee7[_0x333475('0x1fad')]={'maxChunkRetries':0x1,'chunkSize':_0x8d0847,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![],'target':'api/sounds'},_0x1b5ee7[_0x333475('0x13b8')]={'flow':{}},_0x1b5ee7['dropping']=![],_0x1b5ee7[_0x333475('0x1c03')]=_0x159cd3,_0x1b5ee7[_0x333475('0x1d01')]=_0x342c14,_0x1b5ee7[_0x333475('0x272b')]=_0x422773,_0x1b5ee7[_0x333475('0x1904')]=_0x4eb082,_0x1b5ee7['uploadComplete']=_0x3458d3,_0x1b5ee7[_0x333475('0xc4e')]=_0x1d0150;function _0x159cd3(_0x281314){const _0x4c3165=_0x333475,_0x42632e=[_0x4c3165('0x519'),'mp3',_0x4c3165('0x3da')];if(!_0x36f548()[_0x4c3165('0x55a')](_0x42632e,_0x281314[_0x4c3165('0x115f')]()))return _0x1f8276[_0x4c3165('0x255')]({'title':_0x4c3165('0x782')+_0x281314['getExtension'](),'msg':_0x4c3165('0x9bf')+_0x42632e[_0x4c3165('0xa04')]()}),![];if(_0x281314[_0x4c3165('0x12dd')]>_0x8d0847)return _0x1f8276[_0x4c3165('0x255')]({'title':'File\x20too\x20big','msg':_0x4c3165('0x686')+_0x5f1202+'MB'}),![];return _0x1b5ee7[_0x4c3165('0x1d6e')]={'id':_0x281314[_0x4c3165('0x40b')],'file':_0x281314},_0x1b5ee7['uploadSounds'][_0x4c3165('0x880')](_0x1b5ee7[_0x4c3165('0x1d6e')]),!![];}function _0x342c14(){const _0x1ef16e=_0x333475;_0x1b5ee7[_0x1ef16e('0x18b6')]='uploading',_0x1b5ee7['ngFlow'][_0x1ef16e('0x2414')][_0x1ef16e('0x2440')][_0x1ef16e('0x1f61')]={'X-Requested-With':_0x1ef16e('0x19a7'),'Authorization':_0x1ef16e('0x2723')+_0x2a43b9[_0x1ef16e('0xbaa')]('motion.token')},_0x1b5ee7[_0x1ef16e('0x13b8')][_0x1ef16e('0x2414')]['opts']['query']={'role':_0x1b5ee7[_0x1ef16e('0x32a')][_0x1ef16e('0x111d')],'userProfileId':_0x1b5ee7['currentUser']['userProfileId']},_0x1b5ee7['ngFlow'][_0x1ef16e('0x2414')]['upload']();}function _0x422773(_0xffb15f,_0x1be94d){const _0xb86dbb=_0x333475;_0x1b5ee7[_0xb86dbb('0x209a')]['unshift'](JSON[_0xb86dbb('0x1850')](_0x1be94d)),angular['forEach'](_0x1b5ee7['uploadSounds'],function(_0x1bed75){const _0x2c313a=_0xb86dbb;if(_0x1bed75['id']===_0xffb15f[_0x2c313a('0x40b')]){const _0x2cd9fa=new FileReader();_0x2cd9fa[_0x2c313a('0x26dd')](_0x1bed75[_0x2c313a('0x2889')][_0x2c313a('0x2889')]),_0x2cd9fa['onload']=function(_0x3fd4ea){const _0x507295=_0x2c313a;_0x1bed75[_0x507295('0x259e')]=_0x3fd4ea['target']['result'];};}});}function _0x4eb082(){const _0x4aa448=_0x333475;_0x1b5ee7[_0x4aa448('0x13b8')][_0x4aa448('0x2414')][_0x4aa448('0x26c9')](),_0x1f8276[_0x4aa448('0x255')]({'title':_0x4aa448('0x8b7'),'msg':_0x4aa448('0x199f')}),_0x1b5ee7[_0x4aa448('0x18b6')]=_0x4aa448('0x1fa1');}function _0x3458d3(){const _0x2d7ab9=_0x333475;_0x1b5ee7['uploadState']!=='failed'&&(_0x1b5ee7[_0x2d7ab9('0x18b6')]=_0x2d7ab9('0x1426'),_0x1f8276['success']({'title':_0x2d7ab9('0x1849'),'msg':_0x1b5ee7['sound'][_0x2d7ab9('0x2889')][_0x2d7ab9('0x1909')]+'\x20uploaded\x20successfully'}));}function _0x1d0150(){const _0x107492=_0x333475;_0x59a4f6[_0x107492('0x237e')]();}}const _0x129e96=_0x5480c2;_0x1c4e86[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0xcbc'),_0x21d0f5('0x16b9'),_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0xb6b'),_0x21d0f5('0x142d'),_0x21d0f5('0x2763'),_0x21d0f5('0x1d73'),_0x21d0f5('0x12a5'),'Auth','license',_0x21d0f5('0x23e1'),_0x21d0f5('0xb25')];function _0x1c4e86(_0x33e45f,_0x129a32,_0x1df8da,_0x2ac522,_0x21dc7f,_0x2480f4,_0x251d99,_0xe43131,_0x1a8f58,_0x5bca6f,_0x36b175,_0x29aab8,_0x116559,_0x88046d){const _0x1d9eb0=_0x21d0f5,_0x1130ac=this;_0x1130ac[_0x1d9eb0('0x32a')]=_0x36b175[_0x1d9eb0('0x2428')](),_0x1130ac['errors']=[],_0x1130ac[_0x1d9eb0('0x23e1')]=_0x116559,_0x1130ac[_0x1d9eb0('0x17ff')]=_0x29aab8,_0x1130ac['crudPermissions']=_0x88046d,_0x1130ac['hasModulePermissions']={},_0x1130ac['passwordPattern']=_0x1130ac[_0x1d9eb0('0x23e1')]&&_0x1130ac[_0x1d9eb0('0x23e1')][_0x1d9eb0('0x1d4')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1130ac[_0x1d9eb0('0x134b')]='TOOLS.EDIT_TAG',_0x1130ac['tag']=angular[_0x1d9eb0('0x6fb')](_0x1a8f58),_0x1130ac[_0x1d9eb0('0x2763')]=_0xe43131,_0x1130ac[_0x1d9eb0('0x6a1')]=![];!_0x1130ac[_0x1d9eb0('0x1d73')]&&(_0x1130ac['tag']={},_0x1130ac[_0x1d9eb0('0x134b')]=_0x1d9eb0('0x2687'),_0x1130ac[_0x1d9eb0('0x6a1')]=!![]);_0x1130ac[_0x1d9eb0('0x1f98')]=_0x5ef97e,_0x1130ac[_0x1d9eb0('0x5b4')]=_0x229532,_0x1130ac['deleteTag']=_0x11020d,_0x1130ac[_0x1d9eb0('0x1bd1')]=_0x45ece5,_0x1130ac[_0x1d9eb0('0xc4e')]=_0x34ab10;function _0x5ef97e(){const _0x17f125=_0x1d9eb0;_0x1130ac[_0x17f125('0x120f')]=[],_0x5bca6f[_0x17f125('0x1d73')][_0x17f125('0x259')](_0x1130ac[_0x17f125('0x1d73')])[_0x17f125('0x1549')][_0x17f125('0x11bf')](function(_0x1e317e){const _0x1c5212=_0x17f125;_0x1130ac[_0x1c5212('0x2763')][_0x1c5212('0x880')](_0x1e317e['toJSON']()),_0x251d99[_0x1c5212('0x2693')]({'title':_0x1c5212('0x11fd'),'msg':_0x1130ac[_0x1c5212('0x1d73')][_0x1c5212('0x1909')]?_0x1130ac[_0x1c5212('0x1d73')][_0x1c5212('0x1909')]+_0x1c5212('0x7fb'):''}),_0x34ab10(_0x1e317e);})[_0x17f125('0x151d')](function(_0xde3c61){const _0x27d3fb=_0x17f125;if(_0xde3c61[_0x27d3fb('0x4e8')]&&_0xde3c61['data'][_0x27d3fb('0x120f')]&&_0xde3c61[_0x27d3fb('0x4e8')]['errors'][_0x27d3fb('0x1e22')]){_0x1130ac['errors']=_0xde3c61[_0x27d3fb('0x4e8')][_0x27d3fb('0x120f')]||[{'message':_0xde3c61[_0x27d3fb('0xaab')](),'type':_0x27d3fb('0x1040')}];for(let _0x171cb3=0x0;_0x171cb3<_0xde3c61[_0x27d3fb('0x4e8')][_0x27d3fb('0x120f')]['length'];_0x171cb3+=0x1){_0x251d99['error']({'title':_0xde3c61[_0x27d3fb('0x4e8')][_0x27d3fb('0x120f')][_0x171cb3][_0x27d3fb('0x19fd')],'msg':_0xde3c61['data']['errors'][_0x171cb3][_0x27d3fb('0x1b86')]});}}else _0x251d99[_0x27d3fb('0x255')]({'title':_0xde3c61[_0x27d3fb('0xff9')]?_0x27d3fb('0x574')+_0xde3c61[_0x27d3fb('0xff9')]+_0x27d3fb('0xb0b')+_0xde3c61['statusText']:'api.tag.save','msg':_0xde3c61['data']?JSON[_0x27d3fb('0x3e')](_0xde3c61['data']['message']):_0xde3c61['toString']()});});}function _0x229532(){const _0x27c21f=_0x1d9eb0;_0x1130ac[_0x27c21f('0x120f')]=[],_0x5bca6f['tag'][_0x27c21f('0x5ab')]({'id':_0x1130ac[_0x27c21f('0x1d73')]['id']},_0x1130ac['tag'])[_0x27c21f('0x1549')][_0x27c21f('0x11bf')](function(_0x336bf8){const _0x5eceb4=_0x27c21f,_0x55ef0b=_0x36f548()['find'](_0x1130ac[_0x5eceb4('0x2763')],{'id':_0x336bf8['id']});_0x55ef0b&&_0x36f548()['merge'](_0x55ef0b,_0x36f548()['pick'](_0x336bf8['toJSON'](),_0x36f548()[_0x5eceb4('0xe22')](_0x55ef0b))),_0x251d99[_0x5eceb4('0x2693')]({'title':_0x5eceb4('0x146'),'msg':_0x1130ac[_0x5eceb4('0x1d73')][_0x5eceb4('0x1909')]?_0x1130ac['tag'][_0x5eceb4('0x1909')]+_0x5eceb4('0x1a78'):''}),_0x34ab10(_0x336bf8);})[_0x27c21f('0x151d')](function(_0xe61e82){const _0x1cd9ba=_0x27c21f;if(_0xe61e82['data']&&_0xe61e82[_0x1cd9ba('0x4e8')][_0x1cd9ba('0x120f')]&&_0xe61e82[_0x1cd9ba('0x4e8')][_0x1cd9ba('0x120f')][_0x1cd9ba('0x1e22')]){_0x1130ac['errors']=_0xe61e82[_0x1cd9ba('0x4e8')][_0x1cd9ba('0x120f')]||[{'message':_0xe61e82[_0x1cd9ba('0xaab')](),'type':_0x1cd9ba('0xe60')}];for(let _0x5b6b03=0x0;_0x5b6b03<_0xe61e82[_0x1cd9ba('0x4e8')][_0x1cd9ba('0x120f')][_0x1cd9ba('0x1e22')];_0x5b6b03++){_0x251d99[_0x1cd9ba('0x255')]({'title':_0xe61e82['data']['errors'][_0x5b6b03][_0x1cd9ba('0x19fd')],'msg':_0xe61e82[_0x1cd9ba('0x4e8')][_0x1cd9ba('0x120f')][_0x5b6b03][_0x1cd9ba('0x1b86')]});}}else _0x251d99[_0x1cd9ba('0x255')]({'title':_0xe61e82[_0x1cd9ba('0xff9')]?'API:'+_0xe61e82['status']+'\x20-\x20'+_0xe61e82[_0x1cd9ba('0x212f')]:_0x1cd9ba('0xe60'),'msg':_0xe61e82[_0x1cd9ba('0x4e8')]?JSON[_0x1cd9ba('0x3e')](_0xe61e82[_0x1cd9ba('0x4e8')]['message']):_0xe61e82['toString']()});});}function _0x11020d(_0x46a162){const _0x548987=_0x1d9eb0;_0x1130ac[_0x548987('0x120f')]=[];const _0x32b2aa=_0x2ac522['confirm']()[_0x548987('0x134b')](_0x548987('0x1fa9'))[_0x548987('0x252a')](_0x548987('0x2878'))[_0x548987('0xb2e')](_0x548987('0x1dd3'))['ok'](_0x548987('0x1167'))[_0x548987('0x26c9')](_0x548987('0x784'))[_0x548987('0x1e25')](_0x46a162);_0x2ac522[_0x548987('0xb9')](_0x32b2aa)[_0x548987('0x11bf')](function(){const _0xc19570=_0x548987;_0x5bca6f[_0xc19570('0x1d73')][_0xc19570('0x2088')]({'id':_0x1130ac[_0xc19570('0x1d73')]['id']})[_0xc19570('0x1549')][_0xc19570('0x11bf')](function(){const _0x3e8d4f=_0xc19570;_0x36f548()[_0x3e8d4f('0x14a5')](_0x1130ac[_0x3e8d4f('0x2763')],{'id':_0x1130ac[_0x3e8d4f('0x1d73')]['id']}),_0x251d99[_0x3e8d4f('0x2693')]({'title':_0x3e8d4f('0xd48'),'msg':(_0x1130ac[_0x3e8d4f('0x1d73')][_0x3e8d4f('0x1909')]||_0x3e8d4f('0x1d73'))+_0x3e8d4f('0x433')}),_0x34ab10(_0x1130ac[_0x3e8d4f('0x1d73')]);})['catch'](function(_0x459e4a){const _0x4033ad=_0xc19570;if(_0x459e4a[_0x4033ad('0x4e8')]&&_0x459e4a[_0x4033ad('0x4e8')]['errors']&&_0x459e4a[_0x4033ad('0x4e8')][_0x4033ad('0x120f')]['length']){_0x1130ac[_0x4033ad('0x120f')]=_0x459e4a[_0x4033ad('0x4e8')][_0x4033ad('0x120f')]||[{'message':_0x459e4a[_0x4033ad('0xaab')](),'type':'api.tag.delete'}];for(let _0x19c930=0x0;_0x19c930<_0x459e4a['data'][_0x4033ad('0x120f')]['length'];_0x19c930++){_0x251d99[_0x4033ad('0x255')]({'title':_0x459e4a['data'][_0x4033ad('0x120f')][_0x19c930]['type'],'msg':_0x459e4a[_0x4033ad('0x4e8')][_0x4033ad('0x120f')][_0x19c930][_0x4033ad('0x1b86')]});}}else _0x251d99[_0x4033ad('0x255')]({'title':_0x459e4a[_0x4033ad('0xff9')]?_0x4033ad('0x574')+_0x459e4a[_0x4033ad('0xff9')]+_0x4033ad('0xb0b')+_0x459e4a[_0x4033ad('0x212f')]:'api.tag.delete','msg':_0x459e4a[_0x4033ad('0x4e8')]?JSON[_0x4033ad('0x3e')](_0x459e4a['data'][_0x4033ad('0x1b86')]):_0x459e4a[_0x4033ad('0x1b86')]||_0x459e4a['toString']()});});},function(){});}function _0x45ece5(_0x229e23){return _0x229e23===null?undefined:new Date(_0x229e23);}function _0x34ab10(_0x5e9d7c){const _0x4734ad=_0x1d9eb0;_0x2ac522[_0x4734ad('0x237e')](_0x5e9d7c);}}const _0xbbec34=_0x1c4e86,_0x246a07=_0x351988['p']+_0x21d0f5('0x22bf');_0x5a13f6[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0x2143'),_0x21d0f5('0xcbc'),'$mdSidenav',_0x21d0f5('0x1ca2'),'$document',_0x21d0f5('0x17f5'),_0x21d0f5('0xb6b'),_0x21d0f5('0x2763'),_0x21d0f5('0x25bc'),'userProfileSection',_0x21d0f5('0x12a5'),_0x21d0f5('0xda9'),_0x21d0f5('0x142d'),_0x21d0f5('0x1150'),_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1')];function _0x5a13f6(_0x20c7fb,_0x2e98a4,_0x21b73b,_0x2ad4a2,_0x201a09,_0x4c8e1f,_0x1a91f5,_0x44596c,_0x5dbf58,_0x2e89cb,_0x3972a1,_0x254cb5,_0x322160,_0x3feb2f,_0x3374ae,_0x173733,_0x269ff7){const _0x5126e3=_0x21d0f5,_0x307850=this;_0x307850['license']=_0x173733,_0x307850[_0x5126e3('0x23e1')]=_0x269ff7,_0x307850[_0x5126e3('0x32a')]=_0x3374ae[_0x5126e3('0x2428')](),_0x307850['tags']=_0x5dbf58||{'count':0x0,'rows':[]},_0x307850[_0x5126e3('0x25bc')]=_0x2e89cb,_0x307850['userProfileSection']=_0x3972a1&&_0x3972a1[_0x5126e3('0x27d2')]==0x1?_0x3972a1[_0x5126e3('0x19b2')][0x0]:null,_0x307850[_0x5126e3('0xb25')]=_0x3374ae[_0x5126e3('0x1530')](_0x307850[_0x5126e3('0x1d63')]?_0x307850[_0x5126e3('0x1d63')][_0x5126e3('0xb25')]:null),_0x307850[_0x5126e3('0x13e8')]=_0x5126e3('0x2763'),_0x307850[_0x5126e3('0x724')]='',_0x307850[_0x5126e3('0xe3c')]=null,_0x307850['selectedTags']=[],_0x307850[_0x5126e3('0x1f2a')]={'fields':_0x5126e3('0x1844'),'sort':'-updatedAt','limit':0xa,'page':0x1},_0x307850[_0x5126e3('0xc03')]=_0x37de88,_0x307850['deleteconfirm']=_0x57ea01,_0x307850[_0x5126e3('0x2693')]=_0x4cbdd7,_0x307850[_0x5126e3('0x2129')]=_0x54da3e,_0x307850['createOrEditTag']=_0x2f63fd,_0x307850[_0x5126e3('0xa47')]=_0x1d8cd1,_0x307850['exportSelectedTags']=_0x26126f,_0x307850['deleteSelectedTags']=_0x1c434b,_0x307850[_0x5126e3('0x25e4')]=_0x257014,_0x307850[_0x5126e3('0x1a06')]=_0x25f265;function _0x37de88(_0x16e1b3,_0x10e106){const _0x4bb211=_0x5126e3;_0x201a09[_0x4bb211('0xb9')]({'controller':'CreateOrEditTagDialogController','controllerAs':'vm','templateUrl':_0x246a07,'parent':angular['element'](_0x4c8e1f[_0x4bb211('0x1d2')]),'targetEvent':_0x10e106,'clickOutsideToClose':!![],'locals':{'tag':_0x16e1b3,'tags':_0x307850['tags']['rows'],'license':_0x307850[_0x4bb211('0x17ff')],'setting':null,'crudPermissions':_0x307850[_0x4bb211('0xb25')]}});}function _0x57ea01(_0x4dda6b,_0x29859b){const _0x464f8d=_0x5126e3,_0x284fd1=_0x201a09[_0x464f8d('0x132b')]()[_0x464f8d('0x134b')](_0x464f8d('0x1796')+_0x36f548()[_0x464f8d('0x13cf')](_0x464f8d('0x1d73'))+'?')['htmlContent'](_0x464f8d('0x2061')+(_0x4dda6b[_0x464f8d('0x1909')]||'tag')+_0x464f8d('0x1c78')+_0x464f8d('0x1a'))[_0x464f8d('0xb2e')]('delete\x20tag')[_0x464f8d('0x1e25')](_0x29859b)['ok']('OK')[_0x464f8d('0x26c9')](_0x464f8d('0x772'));_0x201a09['show'](_0x284fd1)['then'](function(){_0x1d8cd1(_0x4dda6b);},function(){const _0x3f5e82=_0x464f8d;console[_0x3f5e82('0xc78')](_0x3f5e82('0x772'));});}let _0x30a172=!![],_0x334714=0x1;_0x20c7fb['$watch']('vm.query.filter',function(_0x568e75,_0x475cb2){const _0x1adf04=_0x5126e3;_0x30a172?_0x1a91f5(function(){_0x30a172=![];}):(!_0x475cb2&&(_0x334714=_0x307850[_0x1adf04('0x1f2a')][_0x1adf04('0x1c2')]),_0x568e75!==_0x475cb2&&(_0x307850[_0x1adf04('0x1f2a')][_0x1adf04('0x1c2')]=0x1),!_0x568e75&&(_0x307850[_0x1adf04('0x1f2a')][_0x1adf04('0x1c2')]=_0x334714),_0x307850[_0x1adf04('0x2129')]());});function _0x4cbdd7(_0x186dd1){const _0x4b45e4=_0x5126e3;_0x307850[_0x4b45e4('0x2763')]=_0x186dd1||{'count':0x0,'rows':[]};}function _0x54da3e(){const _0x5f15f4=_0x5126e3;_0x307850[_0x5f15f4('0x1f2a')][_0x5f15f4('0x1393')]=(_0x307850[_0x5f15f4('0x1f2a')][_0x5f15f4('0x1c2')]-0x1)*_0x307850[_0x5f15f4('0x1f2a')][_0x5f15f4('0xd5c')],_0x3374ae[_0x5f15f4('0x4ee')](_0x5f15f4('0xf45'))?_0x307850[_0x5f15f4('0x13f')]=_0x254cb5[_0x5f15f4('0x1d73')][_0x5f15f4('0xbaa')](_0x307850['query'],_0x4cbdd7)[_0x5f15f4('0x1549')]:(_0x307850[_0x5f15f4('0x1f2a')]['id']=_0x307850[_0x5f15f4('0x25bc')]['id'],_0x307850[_0x5f15f4('0x1f2a')][_0x5f15f4('0xe6')]='Tags',_0x307850['promise']=_0x254cb5[_0x5f15f4('0x25bc')][_0x5f15f4('0x228e')](_0x307850[_0x5f15f4('0x1f2a')],_0x4cbdd7)['$promise']);}function _0x2f63fd(_0x1d5950,_0x513783){const _0x1fee59=_0x5126e3;_0x201a09[_0x1fee59('0xb9')]({'controller':'CreateOrEditTagDialogController','controllerAs':'vm','templateUrl':_0x246a07,'parent':angular[_0x1fee59('0x1e73')](_0x4c8e1f[_0x1fee59('0x1d2')]),'targetEvent':_0x1d5950,'clickOutsideToClose':!![],'locals':{'tag':_0x513783,'tags':_0x307850[_0x1fee59('0x2763')][_0x1fee59('0x19b2')],'license':_0x307850[_0x1fee59('0x17ff')],'setting':_0x307850[_0x1fee59('0x23e1')],'crudPermissions':_0x307850[_0x1fee59('0xb25')]}});}function _0x1d8cd1(_0x7d0a46){const _0x1dd983=_0x5126e3;_0x254cb5[_0x1dd983('0x1d73')]['delete']({'id':_0x7d0a46['id']})[_0x1dd983('0x1549')][_0x1dd983('0x11bf')](function(){const _0x49e125=_0x1dd983;_0x36f548()['remove'](_0x307850['tags'][_0x49e125('0x19b2')],{'id':_0x7d0a46['id']}),_0x307850['tags'][_0x49e125('0x27d2')]-=0x1,!_0x307850['tags'][_0x49e125('0x19b2')]['length']&&_0x307850[_0x49e125('0x2129')](),_0x3feb2f[_0x49e125('0x2693')]({'title':_0x36f548()[_0x49e125('0x13cf')](_0x49e125('0x23ba'))+_0x49e125('0x2113'),'msg':_0x7d0a46['name']?_0x7d0a46[_0x49e125('0x1909')]+_0x49e125('0x433'):''});})[_0x1dd983('0x151d')](function(_0x38d607){const _0x59ac6b=_0x1dd983;if(_0x38d607[_0x59ac6b('0x4e8')]&&_0x38d607[_0x59ac6b('0x4e8')]['errors']&&_0x38d607[_0x59ac6b('0x4e8')][_0x59ac6b('0x120f')][_0x59ac6b('0x1e22')]){_0x307850[_0x59ac6b('0x120f')]=_0x38d607[_0x59ac6b('0x4e8')][_0x59ac6b('0x120f')]||[{'message':_0x38d607[_0x59ac6b('0xaab')](),'type':'SYSTEM:DELETEtag'}];for(let _0x5e341e=0x0;_0x5e341e<_0x38d607['data'][_0x59ac6b('0x120f')][_0x59ac6b('0x1e22')];_0x5e341e++){_0x3feb2f[_0x59ac6b('0x255')]({'title':_0x38d607[_0x59ac6b('0x4e8')]['errors'][_0x5e341e][_0x59ac6b('0x19fd')],'msg':_0x38d607[_0x59ac6b('0x4e8')][_0x59ac6b('0x120f')][_0x5e341e][_0x59ac6b('0x1b86')]});}}else _0x3feb2f[_0x59ac6b('0x255')]({'title':_0x38d607['status']?'API:'+_0x38d607['status']+'\x20-\x20'+_0x38d607[_0x59ac6b('0x212f')]:'SYSTEM:DELETEtag','msg':_0x38d607[_0x59ac6b('0x4e8')]?JSON[_0x59ac6b('0x3e')](_0x38d607['data'][_0x59ac6b('0x1b86')]):_0x38d607['message']||_0x38d607[_0x59ac6b('0xaab')]()});});}function _0x26126f(){const _0x3cff12=_0x5126e3,_0x1e0f70=angular[_0x3cff12('0x6fb')](_0x307850['selectedTags']);return _0x307850['selectedTags']=[],_0x1e0f70;}function _0x1c434b(_0x26d0d5){const _0x2d97b2=_0x5126e3,_0x32d441=_0x201a09[_0x2d97b2('0x132b')]()[_0x2d97b2('0x134b')](_0x2d97b2('0x1fca'))[_0x2d97b2('0x1d03')](_0x2d97b2('0x2061')+_0x307850[_0x2d97b2('0xd11')][_0x2d97b2('0x1e22')]+'\x20selected'+_0x2d97b2('0x1a'))['ariaLabel']('delete\x20Tags')[_0x2d97b2('0x1e25')](_0x26d0d5)['ok']('OK')[_0x2d97b2('0x26c9')](_0x2d97b2('0x772'));_0x201a09[_0x2d97b2('0xb9')](_0x32d441)[_0x2d97b2('0x11bf')](function(){const _0x3512fc=_0x2d97b2;_0x307850[_0x3512fc('0xd11')][_0x3512fc('0x1f88')](function(_0x2fc46f){_0x1d8cd1(_0x2fc46f);}),_0x307850[_0x3512fc('0xd11')]=[];});}function _0x257014(){const _0x15e2e8=_0x5126e3;_0x307850[_0x15e2e8('0xd11')]=[];}function _0x25f265(){const _0xdaa2f6=_0x5126e3;_0x307850[_0xdaa2f6('0xd11')]=_0x307850[_0xdaa2f6('0x2763')]['rows'];}}const _0xe41286=_0x5a13f6;_0x442e06['$inject']=[_0x21d0f5('0x1b80'),_0x21d0f5('0xcbc'),_0x21d0f5('0x16b9'),_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0xb6b'),'toasty',_0x21d0f5('0x1302'),_0x21d0f5('0x13b6'),_0x21d0f5('0x12a5'),'Auth',_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1'),_0x21d0f5('0xb25')];function _0x442e06(_0x31af75,_0xb31188,_0x3a7e56,_0x46b8f6,_0x2c0933,_0x5a14d9,_0x9735c0,_0x587ae3,_0x3603c0,_0x3ef48f,_0x30dd61,_0x57845b,_0x5e85f8,_0x1d0e36){const _0x51bac1=_0x21d0f5,_0x2c998a=this;_0x2c998a['currentUser']=_0x30dd61[_0x51bac1('0x2428')](),_0x2c998a['errors']=[],_0x2c998a[_0x51bac1('0x23e1')]=_0x5e85f8,_0x2c998a[_0x51bac1('0x17ff')]=_0x57845b,_0x2c998a['crudPermissions']=_0x1d0e36,_0x2c998a['hasModulePermissions']={},_0x2c998a[_0x51bac1('0x2834')]=_0x2c998a[_0x51bac1('0x23e1')]&&_0x2c998a[_0x51bac1('0x23e1')][_0x51bac1('0x1d4')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2c998a['title']=_0x51bac1('0x526'),_0x2c998a[_0x51bac1('0x13b6')]=angular['copy'](_0x3603c0),_0x2c998a[_0x51bac1('0x1302')]=_0x587ae3,_0x2c998a[_0x51bac1('0x20db')]=![];!_0x2c998a[_0x51bac1('0x13b6')]&&(_0x2c998a[_0x51bac1('0x13b6')]={},_0x2c998a['title']=_0x51bac1('0x1d'),_0x2c998a['newTemplate']=!![]);_0x2c998a[_0x51bac1('0x2204')]=_0x224df0,_0x2c998a['saveTemplate']=_0x3ba9db,_0x2c998a[_0x51bac1('0x1078')]=_0x54ded9,_0x2c998a[_0x51bac1('0x1bd1')]=_0x8543d4,_0x2c998a['closeDialog']=_0x3ceb4a;function _0x224df0(){const _0x5321a7=_0x51bac1;_0x2c998a['errors']=[],_0x3ef48f['template'][_0x5321a7('0x259')](_0x2c998a['template'])[_0x5321a7('0x1549')][_0x5321a7('0x11bf')](function(_0x310de3){const _0x37a56f=_0x5321a7;_0x2c998a[_0x37a56f('0x1302')]['unshift'](_0x310de3[_0x37a56f('0x2866')]()),_0x9735c0[_0x37a56f('0x2693')]({'title':_0x37a56f('0x25d8'),'msg':_0x2c998a[_0x37a56f('0x13b6')][_0x37a56f('0x1909')]?_0x2c998a['template']['name']+_0x37a56f('0x7fb'):''}),_0x3ceb4a(_0x310de3);})[_0x5321a7('0x151d')](function(_0x16361d){const _0x2e9139=_0x5321a7;if(_0x16361d[_0x2e9139('0x4e8')]&&_0x16361d[_0x2e9139('0x4e8')][_0x2e9139('0x120f')]&&_0x16361d[_0x2e9139('0x4e8')][_0x2e9139('0x120f')][_0x2e9139('0x1e22')]){_0x2c998a[_0x2e9139('0x120f')]=_0x16361d['data'][_0x2e9139('0x120f')]||[{'message':_0x16361d['toString'](),'type':_0x2e9139('0xdc6')}];for(let _0x30e6dd=0x0;_0x30e6dd<_0x16361d[_0x2e9139('0x4e8')][_0x2e9139('0x120f')][_0x2e9139('0x1e22')];_0x30e6dd+=0x1){_0x9735c0[_0x2e9139('0x255')]({'title':_0x16361d[_0x2e9139('0x4e8')][_0x2e9139('0x120f')][_0x30e6dd]['type'],'msg':_0x16361d[_0x2e9139('0x4e8')]['errors'][_0x30e6dd][_0x2e9139('0x1b86')]});}}else _0x9735c0[_0x2e9139('0x255')]({'title':_0x16361d[_0x2e9139('0xff9')]?'API:'+_0x16361d[_0x2e9139('0xff9')]+_0x2e9139('0xb0b')+_0x16361d[_0x2e9139('0x212f')]:_0x2e9139('0xdc6'),'msg':_0x16361d[_0x2e9139('0x4e8')]?JSON['stringify'](_0x16361d[_0x2e9139('0x4e8')]['message']):_0x16361d['toString']()});});}function _0x3ba9db(){const _0x1eb7cd=_0x51bac1;_0x2c998a['errors']=[],_0x3ef48f['template']['update']({'id':_0x2c998a[_0x1eb7cd('0x13b6')]['id']},_0x2c998a[_0x1eb7cd('0x13b6')])['$promise'][_0x1eb7cd('0x11bf')](function(_0x49d115){const _0x3ed6a0=_0x1eb7cd,_0x43ea28=_0x36f548()[_0x3ed6a0('0x1ad4')](_0x2c998a[_0x3ed6a0('0x1302')],{'id':_0x49d115['id']});_0x43ea28&&_0x36f548()[_0x3ed6a0('0x47b')](_0x43ea28,_0x36f548()['pick'](_0x49d115[_0x3ed6a0('0x2866')](),_0x36f548()[_0x3ed6a0('0xe22')](_0x43ea28))),_0x9735c0[_0x3ed6a0('0x2693')]({'title':_0x3ed6a0('0x1419'),'msg':_0x2c998a['template'][_0x3ed6a0('0x1909')]?_0x2c998a[_0x3ed6a0('0x13b6')][_0x3ed6a0('0x1909')]+_0x3ed6a0('0x1a78'):''}),_0x3ceb4a(_0x49d115);})[_0x1eb7cd('0x151d')](function(_0x1c124b){const _0x55a7c1=_0x1eb7cd;if(_0x1c124b[_0x55a7c1('0x4e8')]&&_0x1c124b[_0x55a7c1('0x4e8')][_0x55a7c1('0x120f')]&&_0x1c124b[_0x55a7c1('0x4e8')][_0x55a7c1('0x120f')]['length']){_0x2c998a['errors']=_0x1c124b['data'][_0x55a7c1('0x120f')]||[{'message':_0x1c124b[_0x55a7c1('0xaab')](),'type':_0x55a7c1('0x270a')}];for(let _0x18bdff=0x0;_0x18bdff<_0x1c124b['data'][_0x55a7c1('0x120f')][_0x55a7c1('0x1e22')];_0x18bdff++){_0x9735c0[_0x55a7c1('0x255')]({'title':_0x1c124b[_0x55a7c1('0x4e8')][_0x55a7c1('0x120f')][_0x18bdff][_0x55a7c1('0x19fd')],'msg':_0x1c124b['data'][_0x55a7c1('0x120f')][_0x18bdff]['message']});}}else _0x9735c0[_0x55a7c1('0x255')]({'title':_0x1c124b[_0x55a7c1('0xff9')]?_0x55a7c1('0x574')+_0x1c124b[_0x55a7c1('0xff9')]+_0x55a7c1('0xb0b')+_0x1c124b[_0x55a7c1('0x212f')]:_0x55a7c1('0x270a'),'msg':_0x1c124b[_0x55a7c1('0x4e8')]?JSON[_0x55a7c1('0x3e')](_0x1c124b['data'][_0x55a7c1('0x1b86')]):_0x1c124b[_0x55a7c1('0xaab')]()});});}function _0x54ded9(_0x431f07){const _0x690251=_0x51bac1;_0x2c998a['errors']=[];const _0x3613f6=_0x46b8f6[_0x690251('0x132b')]()['title'](_0x690251('0x1fa9'))['content'](_0x690251('0x1d71'))[_0x690251('0xb2e')](_0x690251('0x227'))['ok'](_0x690251('0x1167'))['cancel']('Cancel')[_0x690251('0x1e25')](_0x431f07);_0x46b8f6[_0x690251('0xb9')](_0x3613f6)[_0x690251('0x11bf')](function(){const _0x27b8db=_0x690251;_0x3ef48f[_0x27b8db('0x13b6')][_0x27b8db('0x2088')]({'id':_0x2c998a[_0x27b8db('0x13b6')]['id']})[_0x27b8db('0x1549')]['then'](function(){const _0x5f4764=_0x27b8db;_0x36f548()[_0x5f4764('0x14a5')](_0x2c998a[_0x5f4764('0x1302')],{'id':_0x2c998a['template']['id']}),_0x9735c0[_0x5f4764('0x2693')]({'title':_0x5f4764('0x505'),'msg':(_0x2c998a[_0x5f4764('0x13b6')][_0x5f4764('0x1909')]||_0x5f4764('0x13b6'))+_0x5f4764('0x433')}),_0x3ceb4a(_0x2c998a['template']);})[_0x27b8db('0x151d')](function(_0x47cc9e){const _0x1934de=_0x27b8db;if(_0x47cc9e[_0x1934de('0x4e8')]&&_0x47cc9e[_0x1934de('0x4e8')][_0x1934de('0x120f')]&&_0x47cc9e[_0x1934de('0x4e8')][_0x1934de('0x120f')][_0x1934de('0x1e22')]){_0x2c998a['errors']=_0x47cc9e[_0x1934de('0x4e8')][_0x1934de('0x120f')]||[{'message':_0x47cc9e['toString'](),'type':_0x1934de('0xa39')}];for(let _0x18e6d9=0x0;_0x18e6d9<_0x47cc9e[_0x1934de('0x4e8')]['errors'][_0x1934de('0x1e22')];_0x18e6d9++){_0x9735c0['error']({'title':_0x47cc9e[_0x1934de('0x4e8')][_0x1934de('0x120f')][_0x18e6d9][_0x1934de('0x19fd')],'msg':_0x47cc9e[_0x1934de('0x4e8')][_0x1934de('0x120f')][_0x18e6d9]['message']});}}else _0x9735c0['error']({'title':_0x47cc9e[_0x1934de('0xff9')]?_0x1934de('0x574')+_0x47cc9e[_0x1934de('0xff9')]+_0x1934de('0xb0b')+_0x47cc9e[_0x1934de('0x212f')]:_0x1934de('0xa39'),'msg':_0x47cc9e[_0x1934de('0x4e8')]?JSON[_0x1934de('0x3e')](_0x47cc9e[_0x1934de('0x4e8')][_0x1934de('0x1b86')]):_0x47cc9e['message']||_0x47cc9e['toString']()});});},function(){});}function _0x8543d4(_0x502224){return _0x502224===null?undefined:new Date(_0x502224);}function _0x3ceb4a(_0x4f1e68){const _0x4b109d=_0x51bac1;_0x46b8f6[_0x4b109d('0x237e')](_0x4f1e68);}}const _0x4c86f6=_0x442e06,_0x424e10=_0x351988['p']+_0x21d0f5('0x213b');_0x3c5c7f[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0x2143'),_0x21d0f5('0xcbc'),_0x21d0f5('0x18fe'),_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),_0x21d0f5('0x17f5'),_0x21d0f5('0xb6b'),'templates',_0x21d0f5('0x25bc'),_0x21d0f5('0x1d63'),'api',_0x21d0f5('0xda9'),_0x21d0f5('0x142d'),_0x21d0f5('0x1150'),_0x21d0f5('0x17ff'),'setting'];function _0x3c5c7f(_0x8d2855,_0x4fff40,_0x17a0d1,_0x43f52b,_0x34d5f8,_0x933ff3,_0x4598c3,_0x4c95ad,_0x2c0184,_0x3c47ac,_0x4a18cb,_0x1f81be,_0x2352ce,_0x35fc85,_0x41f06b,_0x1373b1,_0x4a36be){const _0x1a70a5=_0x21d0f5,_0x4f9f03=this;_0x4f9f03['license']=_0x1373b1,_0x4f9f03[_0x1a70a5('0x23e1')]=_0x4a36be,_0x4f9f03[_0x1a70a5('0x32a')]=_0x41f06b[_0x1a70a5('0x2428')](),_0x4f9f03['templates']=_0x2c0184||{'count':0x0,'rows':[]},_0x4f9f03[_0x1a70a5('0x25bc')]=_0x3c47ac,_0x4f9f03['userProfileSection']=_0x4a18cb&&_0x4a18cb[_0x1a70a5('0x27d2')]==0x1?_0x4a18cb[_0x1a70a5('0x19b2')][0x0]:null,_0x4f9f03[_0x1a70a5('0xb25')]=_0x41f06b[_0x1a70a5('0x1530')](_0x4f9f03['userProfileSection']?_0x4f9f03[_0x1a70a5('0x1d63')][_0x1a70a5('0xb25')]:null),_0x4f9f03[_0x1a70a5('0x13e8')]='templates',_0x4f9f03[_0x1a70a5('0x724')]='',_0x4f9f03[_0x1a70a5('0xe3c')]=null,_0x4f9f03[_0x1a70a5('0x2572')]=[],_0x4f9f03[_0x1a70a5('0x1f2a')]={'fields':_0x1a70a5('0x1208'),'sort':_0x1a70a5('0x1c74'),'limit':0xa,'page':0x1},_0x4f9f03[_0x1a70a5('0xc03')]=_0x154b79,_0x4f9f03[_0x1a70a5('0x549')]=_0x76fa1a,_0x4f9f03[_0x1a70a5('0x2693')]=_0x17fdf3,_0x4f9f03['getTemplates']=_0x5461d8,_0x4f9f03['createOrEditTemplate']=_0x301b25,_0x4f9f03['deleteTemplate']=_0x1cc90d,_0x4f9f03[_0x1a70a5('0xa50')]=_0x58a850,_0x4f9f03[_0x1a70a5('0x138c')]=_0x407638,_0x4f9f03[_0x1a70a5('0x1b44')]=_0x5b33ac,_0x4f9f03[_0x1a70a5('0x1406')]=_0x3140df;function _0x154b79(_0x1cb246,_0x55f977){const _0x5a2b24=_0x1a70a5;_0x34d5f8['show']({'controller':_0x5a2b24('0xc49'),'controllerAs':'vm','templateUrl':_0x424e10,'parent':angular['element'](_0x933ff3[_0x5a2b24('0x1d2')]),'targetEvent':_0x55f977,'clickOutsideToClose':!![],'locals':{'template':_0x1cb246,'templates':_0x4f9f03[_0x5a2b24('0x1302')]['rows'],'license':_0x4f9f03['license'],'setting':null,'crudPermissions':_0x4f9f03[_0x5a2b24('0xb25')]}});}function _0x76fa1a(_0x1e92eb,_0x28d656){const _0x25fa54=_0x1a70a5,_0x34b2d7=_0x34d5f8['confirm']()[_0x25fa54('0x134b')](_0x25fa54('0x1796')+_0x36f548()[_0x25fa54('0x13cf')](_0x25fa54('0x13b6'))+'?')['htmlContent'](_0x25fa54('0x2061')+(_0x1e92eb['name']||_0x25fa54('0x13b6'))+_0x25fa54('0x1c78')+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x25fa54('0xbfb'))[_0x25fa54('0x1e25')](_0x28d656)['ok']('OK')['cancel'](_0x25fa54('0x772'));_0x34d5f8[_0x25fa54('0xb9')](_0x34b2d7)[_0x25fa54('0x11bf')](function(){_0x1cc90d(_0x1e92eb);},function(){const _0x4e9598=_0x25fa54;console[_0x4e9598('0xc78')](_0x4e9598('0x772'));});}let _0x4932c0=!![],_0x5c1ba3=0x1;_0x8d2855['$watch']('vm.query.filter',function(_0x3654c0,_0x2c830e){const _0x41a38c=_0x1a70a5;_0x4932c0?_0x4598c3(function(){_0x4932c0=![];}):(!_0x2c830e&&(_0x5c1ba3=_0x4f9f03[_0x41a38c('0x1f2a')][_0x41a38c('0x1c2')]),_0x3654c0!==_0x2c830e&&(_0x4f9f03[_0x41a38c('0x1f2a')]['page']=0x1),!_0x3654c0&&(_0x4f9f03[_0x41a38c('0x1f2a')][_0x41a38c('0x1c2')]=_0x5c1ba3),_0x4f9f03[_0x41a38c('0xd4f')]());});function _0x17fdf3(_0x506ba3){const _0x481d8c=_0x1a70a5;_0x4f9f03[_0x481d8c('0x1302')]=_0x506ba3||{'count':0x0,'rows':[]};}function _0x5461d8(){const _0x1ead5a=_0x1a70a5;_0x4f9f03[_0x1ead5a('0x1f2a')][_0x1ead5a('0x1393')]=(_0x4f9f03[_0x1ead5a('0x1f2a')][_0x1ead5a('0x1c2')]-0x1)*_0x4f9f03[_0x1ead5a('0x1f2a')][_0x1ead5a('0xd5c')],_0x41f06b[_0x1ead5a('0x4ee')]('admin')?_0x4f9f03['promise']=_0x1f81be[_0x1ead5a('0x13b6')][_0x1ead5a('0xbaa')](_0x4f9f03['query'],_0x17fdf3)[_0x1ead5a('0x1549')]:(_0x4f9f03['query']['id']=_0x4f9f03['userProfile']['id'],_0x4f9f03[_0x1ead5a('0x1f2a')][_0x1ead5a('0xe6')]='Templates',_0x4f9f03['promise']=_0x1f81be['userProfile'][_0x1ead5a('0x228e')](_0x4f9f03[_0x1ead5a('0x1f2a')],_0x17fdf3)[_0x1ead5a('0x1549')]);}function _0x301b25(_0x278da7,_0x15e6cf){const _0x31c116=_0x1a70a5;_0x34d5f8[_0x31c116('0xb9')]({'controller':_0x31c116('0xc49'),'controllerAs':'vm','templateUrl':_0x424e10,'parent':angular['element'](_0x933ff3['body']),'targetEvent':_0x278da7,'clickOutsideToClose':!![],'locals':{'template':_0x15e6cf,'templates':_0x4f9f03[_0x31c116('0x1302')][_0x31c116('0x19b2')],'license':_0x4f9f03['license'],'setting':_0x4f9f03[_0x31c116('0x23e1')],'crudPermissions':_0x4f9f03[_0x31c116('0xb25')]}});}function _0x1cc90d(_0x38b599){const _0x35a476=_0x1a70a5;_0x1f81be[_0x35a476('0x13b6')][_0x35a476('0x2088')]({'id':_0x38b599['id']})[_0x35a476('0x1549')][_0x35a476('0x11bf')](function(){const _0xa140ca=_0x35a476;_0x36f548()[_0xa140ca('0x14a5')](_0x4f9f03[_0xa140ca('0x1302')][_0xa140ca('0x19b2')],{'id':_0x38b599['id']}),_0x4f9f03[_0xa140ca('0x1302')][_0xa140ca('0x27d2')]-=0x1,!_0x4f9f03['templates'][_0xa140ca('0x19b2')][_0xa140ca('0x1e22')]&&_0x4f9f03[_0xa140ca('0xd4f')](),_0x35fc85[_0xa140ca('0x2693')]({'title':_0x36f548()['startCase']('Template')+_0xa140ca('0x2113'),'msg':_0x38b599['name']?_0x38b599['name']+_0xa140ca('0x433'):''});})[_0x35a476('0x151d')](function(_0x25416b){const _0x3f4a10=_0x35a476;if(_0x25416b[_0x3f4a10('0x4e8')]&&_0x25416b[_0x3f4a10('0x4e8')]['errors']&&_0x25416b['data']['errors'][_0x3f4a10('0x1e22')]){_0x4f9f03[_0x3f4a10('0x120f')]=_0x25416b['data'][_0x3f4a10('0x120f')]||[{'message':_0x25416b[_0x3f4a10('0xaab')](),'type':_0x3f4a10('0x20f8')}];for(let _0xa93b83=0x0;_0xa93b83<_0x25416b[_0x3f4a10('0x4e8')]['errors']['length'];_0xa93b83++){_0x35fc85[_0x3f4a10('0x255')]({'title':_0x25416b[_0x3f4a10('0x4e8')][_0x3f4a10('0x120f')][_0xa93b83][_0x3f4a10('0x19fd')],'msg':_0x25416b['data'][_0x3f4a10('0x120f')][_0xa93b83]['message']});}}else _0x35fc85[_0x3f4a10('0x255')]({'title':_0x25416b[_0x3f4a10('0xff9')]?_0x3f4a10('0x574')+_0x25416b['status']+'\x20-\x20'+_0x25416b[_0x3f4a10('0x212f')]:'SYSTEM:DELETEtemplate','msg':_0x25416b[_0x3f4a10('0x4e8')]?JSON['stringify'](_0x25416b[_0x3f4a10('0x4e8')][_0x3f4a10('0x1b86')]):_0x25416b[_0x3f4a10('0x1b86')]||_0x25416b['toString']()});});}function _0x58a850(){const _0x46527d=_0x1a70a5,_0x38b013=angular[_0x46527d('0x6fb')](_0x4f9f03[_0x46527d('0x2572')]);return _0x4f9f03[_0x46527d('0x2572')]=[],_0x38b013;}function _0x407638(_0x52fc5e){const _0x10b4f4=_0x1a70a5,_0x379b2c=_0x34d5f8[_0x10b4f4('0x132b')]()[_0x10b4f4('0x134b')](_0x10b4f4('0x1f21'))[_0x10b4f4('0x1d03')](_0x10b4f4('0x2061')+_0x4f9f03[_0x10b4f4('0x2572')][_0x10b4f4('0x1e22')]+_0x10b4f4('0xac6')+_0x10b4f4('0x1a'))['ariaLabel'](_0x10b4f4('0x1b17'))[_0x10b4f4('0x1e25')](_0x52fc5e)['ok']('OK')[_0x10b4f4('0x26c9')](_0x10b4f4('0x772'));_0x34d5f8[_0x10b4f4('0xb9')](_0x379b2c)[_0x10b4f4('0x11bf')](function(){const _0x4fc115=_0x10b4f4;_0x4f9f03['selectedTemplates'][_0x4fc115('0x1f88')](function(_0x45d70c){_0x1cc90d(_0x45d70c);}),_0x4f9f03[_0x4fc115('0x2572')]=[];});}function _0x5b33ac(){_0x4f9f03['selectedTemplates']=[];}function _0x3140df(){const _0x7bee2=_0x1a70a5;_0x4f9f03[_0x7bee2('0x2572')]=_0x4f9f03['templates'][_0x7bee2('0x19b2')];}}const _0x128830=_0x3c5c7f;_0x5c5cb1[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),'$state',_0x21d0f5('0x16b9'),'$mdDialog','$q',_0x21d0f5('0xb6b'),_0x21d0f5('0x142d'),_0x21d0f5('0x1b24'),_0x21d0f5('0x264e'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),_0x21d0f5('0x17ff'),'setting',_0x21d0f5('0xb25')];function _0x5c5cb1(_0x24fe1f,_0x426317,_0x165045,_0x3bf092,_0x402e4e,_0x25b0db,_0x19302b,_0xdeda40,_0xbc2f31,_0x2c0b31,_0x568d8c,_0x380bb2,_0x413935,_0x4c79b2){const _0x269881=_0x21d0f5,_0x1e2732=this;_0x1e2732[_0x269881('0x32a')]=_0x568d8c[_0x269881('0x2428')](),_0x1e2732['errors']=[],_0x1e2732[_0x269881('0x23e1')]=_0x413935,_0x1e2732['license']=_0x380bb2,_0x1e2732[_0x269881('0xb25')]=_0x4c79b2,_0x1e2732[_0x269881('0x2c9')]={},_0x1e2732[_0x269881('0x2834')]=_0x1e2732[_0x269881('0x23e1')]&&_0x1e2732[_0x269881('0x23e1')][_0x269881('0x1d4')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1e2732[_0x269881('0x134b')]=_0x269881('0x1925'),_0x1e2732[_0x269881('0x264e')]=angular[_0x269881('0x6fb')](_0xbc2f31),_0x1e2732[_0x269881('0x1b24')]=_0xdeda40,_0x1e2732['newTrunk']=![];!_0x1e2732['trunk']&&(_0x1e2732[_0x269881('0x264e')]={'active':!![],'type':'friend','dtmfmode':_0x269881('0x2195'),'qualify':_0x269881('0xf6'),'t38pt_udptl':'no'},_0x1e2732[_0x269881('0x134b')]=_0x269881('0x5a6'),_0x1e2732[_0x269881('0xd89')]=!![]);_0x1e2732['addNewTrunk']=_0x580941,_0x1e2732[_0x269881('0x14c0')]=_0xcebab9,_0x1e2732['deleteTrunk']=_0x52fd1c,_0x1e2732[_0x269881('0x1bd1')]=_0x5991cc,_0x1e2732[_0x269881('0xc4e')]=_0x55e81c;function _0x580941(){const _0x23ea9b=_0x269881;_0x1e2732[_0x23ea9b('0x120f')]=[],_0x2c0b31['trunk']['save'](_0x1e2732[_0x23ea9b('0x264e')])[_0x23ea9b('0x1549')][_0x23ea9b('0x11bf')](function(_0x198dca){const _0x37c116=_0x23ea9b;_0x1e2732['trunks'][_0x37c116('0x880')](_0x198dca['toJSON']()),_0x19302b[_0x37c116('0x2693')]({'title':_0x37c116('0x2139'),'msg':_0x1e2732[_0x37c116('0x264e')][_0x37c116('0x1909')]?_0x1e2732[_0x37c116('0x264e')][_0x37c116('0x1909')]+_0x37c116('0x7fb'):''}),_0x55e81c(_0x198dca);})[_0x23ea9b('0x151d')](function(_0x338415){const _0x277c07=_0x23ea9b;if(_0x338415[_0x277c07('0x4e8')]&&_0x338415[_0x277c07('0x4e8')]['errors']&&_0x338415['data'][_0x277c07('0x120f')][_0x277c07('0x1e22')]){_0x1e2732[_0x277c07('0x120f')]=_0x338415[_0x277c07('0x4e8')][_0x277c07('0x120f')]||[{'message':_0x338415[_0x277c07('0xaab')](),'type':'api.trunk.save'}];for(let _0x5b84aa=0x0;_0x5b84aa<_0x338415['data'][_0x277c07('0x120f')][_0x277c07('0x1e22')];_0x5b84aa+=0x1){_0x19302b[_0x277c07('0x255')]({'title':_0x338415[_0x277c07('0x4e8')]['errors'][_0x5b84aa][_0x277c07('0x19fd')],'msg':_0x338415[_0x277c07('0x4e8')]['errors'][_0x5b84aa]['message']});}}else _0x19302b[_0x277c07('0x255')]({'title':_0x338415[_0x277c07('0xff9')]?_0x277c07('0x574')+_0x338415[_0x277c07('0xff9')]+_0x277c07('0xb0b')+_0x338415['statusText']:_0x277c07('0x37c'),'msg':_0x338415[_0x277c07('0x4e8')]?JSON['stringify'](_0x338415[_0x277c07('0x4e8')][_0x277c07('0x1b86')]):_0x338415['toString']()});});}function _0xcebab9(){const _0x2667a1=_0x269881;_0x1e2732['errors']=[],_0x2c0b31[_0x2667a1('0x264e')][_0x2667a1('0x5ab')]({'id':_0x1e2732[_0x2667a1('0x264e')]['id']},_0x1e2732['trunk'])[_0x2667a1('0x1549')][_0x2667a1('0x11bf')](function(_0x324c7e){const _0x24601e=_0x2667a1,_0x21cc03=_0x36f548()[_0x24601e('0x1ad4')](_0x1e2732['trunks'],{'id':_0x324c7e['id']});_0x21cc03&&_0x36f548()['merge'](_0x21cc03,_0x36f548()[_0x24601e('0x258')](_0x324c7e['toJSON'](),_0x36f548()[_0x24601e('0xe22')](_0x21cc03))),_0x19302b[_0x24601e('0x2693')]({'title':_0x24601e('0x1dd2'),'msg':_0x1e2732[_0x24601e('0x264e')][_0x24601e('0x1909')]?_0x1e2732[_0x24601e('0x264e')][_0x24601e('0x1909')]+_0x24601e('0x1a78'):''}),_0x55e81c(_0x324c7e);})[_0x2667a1('0x151d')](function(_0x3c8199){const _0x46b6bd=_0x2667a1;if(_0x3c8199[_0x46b6bd('0x4e8')]&&_0x3c8199['data'][_0x46b6bd('0x120f')]&&_0x3c8199[_0x46b6bd('0x4e8')][_0x46b6bd('0x120f')][_0x46b6bd('0x1e22')]){_0x1e2732[_0x46b6bd('0x120f')]=_0x3c8199[_0x46b6bd('0x4e8')]['errors']||[{'message':_0x3c8199['toString'](),'type':'api.trunk.update'}];for(let _0x258bff=0x0;_0x258bff<_0x3c8199['data'][_0x46b6bd('0x120f')][_0x46b6bd('0x1e22')];_0x258bff++){_0x19302b[_0x46b6bd('0x255')]({'title':_0x3c8199[_0x46b6bd('0x4e8')]['errors'][_0x258bff][_0x46b6bd('0x19fd')],'msg':_0x3c8199[_0x46b6bd('0x4e8')][_0x46b6bd('0x120f')][_0x258bff]['message']});}}else _0x19302b[_0x46b6bd('0x255')]({'title':_0x3c8199[_0x46b6bd('0xff9')]?'API:'+_0x3c8199[_0x46b6bd('0xff9')]+_0x46b6bd('0xb0b')+_0x3c8199[_0x46b6bd('0x212f')]:_0x46b6bd('0x1752'),'msg':_0x3c8199[_0x46b6bd('0x4e8')]?JSON[_0x46b6bd('0x3e')](_0x3c8199[_0x46b6bd('0x4e8')][_0x46b6bd('0x1b86')]):_0x3c8199[_0x46b6bd('0xaab')]()});});}function _0x52fd1c(_0x35fae1){const _0xd2107e=_0x269881;_0x1e2732[_0xd2107e('0x120f')]=[];const _0x51d872=_0x3bf092['confirm']()[_0xd2107e('0x134b')](_0xd2107e('0x1fa9'))['content'](_0xd2107e('0x15a7'))[_0xd2107e('0xb2e')](_0xd2107e('0x1e77'))['ok']('Delete')['cancel'](_0xd2107e('0x784'))['targetEvent'](_0x35fae1);_0x3bf092[_0xd2107e('0xb9')](_0x51d872)[_0xd2107e('0x11bf')](function(){const _0x4caac8=_0xd2107e;_0x2c0b31[_0x4caac8('0x264e')][_0x4caac8('0x2088')]({'id':_0x1e2732[_0x4caac8('0x264e')]['id']})['$promise'][_0x4caac8('0x11bf')](function(){const _0x1a0e1e=_0x4caac8;_0x36f548()['remove'](_0x1e2732['trunks'],{'id':_0x1e2732[_0x1a0e1e('0x264e')]['id']}),_0x19302b[_0x1a0e1e('0x2693')]({'title':'Trunk\x20properly\x20deleted!','msg':(_0x1e2732[_0x1a0e1e('0x264e')][_0x1a0e1e('0x1909')]||_0x1a0e1e('0x264e'))+_0x1a0e1e('0x433')}),_0x55e81c(_0x1e2732[_0x1a0e1e('0x264e')]);})[_0x4caac8('0x151d')](function(_0x82b6e2){const _0x2234bb=_0x4caac8;if(_0x82b6e2[_0x2234bb('0x4e8')]&&_0x82b6e2[_0x2234bb('0x4e8')][_0x2234bb('0x120f')]&&_0x82b6e2[_0x2234bb('0x4e8')][_0x2234bb('0x120f')][_0x2234bb('0x1e22')]){_0x1e2732['errors']=_0x82b6e2[_0x2234bb('0x4e8')][_0x2234bb('0x120f')]||[{'message':_0x82b6e2[_0x2234bb('0xaab')](),'type':'api.trunk.delete'}];for(let _0x41e21e=0x0;_0x41e21e<_0x82b6e2[_0x2234bb('0x4e8')][_0x2234bb('0x120f')]['length'];_0x41e21e++){_0x19302b[_0x2234bb('0x255')]({'title':_0x82b6e2[_0x2234bb('0x4e8')][_0x2234bb('0x120f')][_0x41e21e][_0x2234bb('0x19fd')],'msg':_0x82b6e2[_0x2234bb('0x4e8')][_0x2234bb('0x120f')][_0x41e21e][_0x2234bb('0x1b86')]});}}else _0x19302b['error']({'title':_0x82b6e2[_0x2234bb('0xff9')]?_0x2234bb('0x574')+_0x82b6e2[_0x2234bb('0xff9')]+_0x2234bb('0xb0b')+_0x82b6e2['statusText']:_0x2234bb('0xb55'),'msg':_0x82b6e2[_0x2234bb('0x4e8')]?JSON[_0x2234bb('0x3e')](_0x82b6e2['data'][_0x2234bb('0x1b86')]):_0x82b6e2['message']||_0x82b6e2[_0x2234bb('0xaab')]()});});},function(){});}function _0x5991cc(_0x364051){return _0x364051===null?undefined:new Date(_0x364051);}function _0x55e81c(_0x518106){const _0x54dbaf=_0x269881;_0x3bf092[_0x54dbaf('0x237e')](_0x518106);}}const _0x362cd3=_0x5c5cb1;_0x11650f[_0x21d0f5('0x1e9a')]=['$mdDialog',_0x21d0f5('0xcbc'),'toasty',_0x21d0f5('0x12a5'),'trunk',_0x21d0f5('0x1b24'),'$translate'];function _0x11650f(_0xedb96a,_0xba813e,_0x399c15,_0xe26192,_0x5a5b4f,_0x4590a0,_0x29c212){const _0x2c810f=_0x21d0f5,_0xe8607b=this;_0xe8607b[_0x2c810f('0xd89')]=!![],_0xe8607b[_0x2c810f('0x264e')]=angular['copy'](_0x5a5b4f),_0xe8607b[_0x2c810f('0x1b24')]=_0x4590a0,_0xe8607b[_0x2c810f('0x134b')]=_0x29c212[_0x2c810f('0x10c2')](_0x2c810f('0x1232'));_0x5a5b4f&&_0x5a5b4f[_0x2c810f('0x1909')]&&(_0xe8607b[_0x2c810f('0x134b')]+=':\x20'+_0x5a5b4f[_0x2c810f('0x1909')]);_0xe8607b['cloneTrunk']=_0x48e668,_0xe8607b['closeDialog']=_0x17dd5e;function _0x48e668(){const _0x73cd28=_0x2c810f;return _0xe26192[_0x73cd28('0x264e')]['clone']({'id':_0x5a5b4f['id']},_0xe8607b[_0x73cd28('0x264e')])[_0x73cd28('0x1549')][_0x73cd28('0x11bf')](function(_0x1d51e8){const _0x151b7e=_0x73cd28;_0xe8607b['trunks'][_0x151b7e('0x880')](_0x1d51e8[_0x151b7e('0x2866')]()),_0x399c15['success']({'title':_0x151b7e('0xe2e'),'msg':_0xe8607b[_0x151b7e('0x264e')]['name']?_0xe8607b[_0x151b7e('0x264e')][_0x151b7e('0x1909')]+'\x20has\x20been\x20cloned!':''}),_0xba813e['go']('app.tools.trunks.edit',{'id':_0x1d51e8['id']}),_0x17dd5e(_0x1d51e8);})['catch'](function(_0x206b2b){const _0x45999c=_0x73cd28;if(_0x206b2b[_0x45999c('0x4e8')]&&_0x206b2b[_0x45999c('0x4e8')][_0x45999c('0x120f')]&&_0x206b2b['data'][_0x45999c('0x120f')]['length']){_0xe8607b[_0x45999c('0x120f')]=_0x206b2b['data']['errors']||[{'message':_0x206b2b[_0x45999c('0xaab')](),'type':_0x45999c('0x1828')}];for(let _0x5e57a8=0x0;_0x5e57a8<_0x206b2b[_0x45999c('0x4e8')][_0x45999c('0x120f')]['length'];_0x5e57a8+=0x1){_0x399c15[_0x45999c('0x255')]({'title':_0x206b2b[_0x45999c('0x4e8')][_0x45999c('0x120f')][_0x5e57a8][_0x45999c('0x19fd')],'msg':_0x206b2b[_0x45999c('0x4e8')][_0x45999c('0x120f')][_0x5e57a8]['message']});}}else _0x399c15[_0x45999c('0x255')]({'title':_0x206b2b['status']?_0x45999c('0x574')+_0x206b2b[_0x45999c('0xff9')]+_0x45999c('0xb0b')+_0x206b2b['statusText']:'api.trunk.clone','msg':_0x206b2b[_0x45999c('0x4e8')]?JSON[_0x45999c('0x3e')](_0x206b2b[_0x45999c('0x4e8')][_0x45999c('0x1b86')]):_0x206b2b[_0x45999c('0xaab')]()});});}function _0x17dd5e(_0x1be71f){const _0x3b2715=_0x2c810f;_0xedb96a[_0x3b2715('0x237e')](_0x1be71f);}}const _0x4b32f2=_0x11650f,_0x48dfd9=_0x351988['p']+_0x21d0f5('0x1a37');_0x507dfd['$inject']=[_0x21d0f5('0xcbc'),_0x21d0f5('0x16b9'),_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),_0x21d0f5('0xb6b'),_0x21d0f5('0x17ff'),'setting',_0x21d0f5('0x12a5'),_0x21d0f5('0x142d'),_0x21d0f5('0x1150'),_0x21d0f5('0x264e'),_0x21d0f5('0x1d63')];function _0x507dfd(_0x491790,_0x316792,_0xce893c,_0x3cbf20,_0x26c114,_0x56fd81,_0x5eacd9,_0x57c662,_0xd33ec2,_0x304a11,_0x4a8d18,_0x41d424){const _0x232a97=_0x21d0f5,_0xcf52a1=this;_0xcf52a1[_0x232a97('0x32a')]=_0x304a11[_0x232a97('0x2428')](),_0xcf52a1[_0x232a97('0x17ff')]=_0x56fd81,_0xcf52a1[_0x232a97('0x23e1')]=_0x5eacd9,_0xcf52a1['passwordPattern']=_0xcf52a1[_0x232a97('0x23e1')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0xcf52a1[_0x232a97('0x1d9a')]=_0x316792[_0x232a97('0x1797')]()+'://'+_0x316792[_0x232a97('0x14ec')](),_0xcf52a1[_0x232a97('0x264e')]=_0x4a8d18||_0x491790['params'][_0x232a97('0x264e')]||{},_0xcf52a1['userProfileSection']=_0x41d424&&_0x41d424[_0x232a97('0x27d2')]==0x1?_0x41d424[_0x232a97('0x19b2')][0x0]:null,_0xcf52a1[_0x232a97('0xb25')]=_0x304a11['parseCrudPermissions'](_0xcf52a1[_0x232a97('0x1d63')]?_0xcf52a1[_0x232a97('0x1d63')]['crudPermissions']:null),_0xcf52a1[_0x232a97('0x2c9')]={},_0xcf52a1[_0x232a97('0x1179')]=_0x491790[_0x232a97('0x1ab3')][_0x232a97('0x205c')]||0x0,_0xcf52a1[_0x232a97('0x15dc')]=_0x5b20b2,_0xcf52a1[_0x232a97('0xf0f')]=_0x570876,_0xcf52a1[_0x232a97('0xb30')]=_0xd33ec2['info'],_0xcf52a1[_0x232a97('0x1212')]=_0x2f8ae8,_0xcf52a1['saveTrunk']=_0x3fe7b4,_0x304a11[_0x232a97('0x4ee')](_0x232a97('0xf45'))?_0x57c662[_0x232a97('0x1279')][_0x232a97('0xbaa')]({'fields':_0x232a97('0x721'),'sort':_0x232a97('0x1909')})[_0x232a97('0x1549')][_0x232a97('0x11bf')](function(_0x19fcca){const _0x311c4e=_0x232a97;_0xcf52a1[_0x311c4e('0x803')]=_0x19fcca[_0x311c4e('0x19b2')]||[];})[_0x232a97('0x151d')](function(_0x4fa0c1){const _0x1a97b3=_0x232a97;_0xd33ec2[_0x1a97b3('0x255')]({'title':_0x4fa0c1['status']?_0x1a97b3('0x574')+_0x4fa0c1[_0x1a97b3('0xff9')]+'\x20-\x20'+_0x4fa0c1[_0x1a97b3('0x212f')]:_0x1a97b3('0x348'),'msg':_0x4fa0c1[_0x1a97b3('0x4e8')]?JSON['stringify'](_0x4fa0c1['data']):_0x4fa0c1['toString']()});}):_0x57c662['voiceContext'][_0x232a97('0xbaa')]({'fields':_0x232a97('0x721'),'sort':'name'})['$promise'][_0x232a97('0x11bf')](function(_0x310cf8){const _0x19e734=_0x232a97;_0xcf52a1[_0x19e734('0x803')]=_0x310cf8['rows']||[];})['then'](function(){const _0x2df54f=_0x232a97;return _0x57c662[_0x2df54f('0x1d63')][_0x2df54f('0xbaa')]({'userProfileId':_0xcf52a1['currentUser'][_0x2df54f('0x781')],'sectionId':0x195})['$promise'];})['then'](function(_0x549494){const _0x4c7357=_0x232a97,_0x6d971e=_0x549494&&_0x549494[_0x4c7357('0x19b2')]?_0x549494[_0x4c7357('0x19b2')][0x0]:null;if(!_0x6d971e)return _0x57c662[_0x4c7357('0x1279')]['get']({'fields':'id,name','sort':'name','defaultEntry':0x1})[_0x4c7357('0x1549')][_0x4c7357('0x11bf')](function(_0x373931){const _0x9a3dc7=_0x4c7357;_0xcf52a1[_0x9a3dc7('0x803')]=_0x373931[_0x9a3dc7('0x19b2')]||[];});else{if(!_0x6d971e[_0x4c7357('0xf11')])return _0x57c662[_0x4c7357('0x26d1')]['get']({'sectionId':_0x6d971e['id']})[_0x4c7357('0x1549')]['then'](function(_0xa6eebe){const _0x381978=_0x4c7357,_0x660647=_0x36f548()['map'](_0xa6eebe[_0x381978('0x19b2')],function(_0x23f9bd){const _0xa5f1cc=_0x381978;return _0x36f548()[_0xa5f1cc('0x1ad4')](_0xcf52a1[_0xa5f1cc('0x803')],{'id':_0x23f9bd['resourceId']});});let _0x5653eb=null;_0xcf52a1[_0x381978('0x264e')]&&(_0x5653eb=_0x36f548()[_0x381978('0x1ad4')](_0xcf52a1['contexts'],{'name':_0xcf52a1[_0x381978('0x264e')][_0x381978('0x1c87')]}));if(_0x5653eb&&!_0x36f548()['some'](_0x660647,['id',_0x5653eb['id']])){const _0x4a9ea0=_0x36f548()[_0x381978('0x1ad4')](_0xcf52a1[_0x381978('0x803')],{'id':_0x5653eb['id']});_0x4a9ea0[_0x381978('0x254a')]=![],_0x660647[_0x381978('0x105d')](_0x4a9ea0);}_0xcf52a1[_0x381978('0x803')]=_0x660647;});}})[_0x232a97('0x151d')](function(_0x501359){const _0x17aadc=_0x232a97;_0xd33ec2[_0x17aadc('0x255')]({'title':_0x501359['status']?_0x17aadc('0x574')+_0x501359['status']+_0x17aadc('0xb0b')+_0x501359[_0x17aadc('0x212f')]:_0x17aadc('0x1280'),'msg':_0x501359[_0x17aadc('0x4e8')]?JSON[_0x17aadc('0x3e')](_0x501359[_0x17aadc('0x4e8')]):_0x501359[_0x17aadc('0xaab')]()});});function _0x5b20b2(){const _0x1e5c02=_0x232a97;if(_0x304a11[_0x1e5c02('0x4ee')]('admin'))_0x491790['go']('app.voice.realtime.trunks',{});else return _0x57c662[_0x1e5c02('0x1d63')][_0x1e5c02('0xbaa')]({'userProfileId':_0x304a11['getCurrentUser']()[_0x1e5c02('0x781')],'sectionId':0x19b})[_0x1e5c02('0x1549')][_0x1e5c02('0x11bf')](function(_0x57a7fc){const _0x5700ba=_0x1e5c02,_0x3d0f16=_0x57a7fc&&_0x57a7fc[_0x5700ba('0x19b2')]?_0x57a7fc[_0x5700ba('0x19b2')][0x0]:null;_0x3d0f16&&_0x3d0f16[_0x5700ba('0x1f0a')]?_0x491790['go']('app.voice.realtime.trunks',{}):_0xd33ec2[_0x5700ba('0x870')]({'title':_0x26c114[_0x5700ba('0x10c2')](_0x5700ba('0xbff')),'msg':_0x26c114[_0x5700ba('0x10c2')](_0x5700ba('0x10d1'))});})[_0x1e5c02('0x151d')](function(_0x5942a2){const _0x596e20=_0x1e5c02;_0xd33ec2[_0x596e20('0x255')]({'title':_0x5942a2[_0x596e20('0xff9')]?'API:'+_0x5942a2[_0x596e20('0xff9')]+_0x596e20('0xb0b')+_0x5942a2[_0x596e20('0x212f')]:_0x596e20('0x1011'),'msg':_0x5942a2[_0x596e20('0xff9')]?JSON[_0x596e20('0x3e')](_0x5942a2[_0x596e20('0x4e8')]):_0x5942a2['toString']()});});}function _0x570876(_0x2004be,_0x1e3e9b){const _0x391202=_0x232a97;_0xce893c[_0x391202('0xb9')]({'controller':_0x391202('0x220e'),'controllerAs':'vm','templateUrl':_0x48dfd9,'parent':angular[_0x391202('0x1e73')](_0x3cbf20[_0x391202('0x1d2')]),'targetEvent':_0x1e3e9b,'clickOutsideToClose':!![],'locals':{'trunk':_0x2004be,'trunks':_0xcf52a1['trunks']?_0xcf52a1[_0x391202('0x1b24')][_0x391202('0x19b2')]:[],'crudPermissions':_0xcf52a1['crudPermissions']}});}function _0x2f8ae8(){const _0x11118f=_0x232a97;_0x491790['go'](_0x11118f('0xb61'),{},{'reload':_0x11118f('0xb61')});}function _0x3fe7b4(){const _0x41a694=_0x232a97;_0x57c662[_0x41a694('0x264e')][_0x41a694('0x5ab')]({'id':_0xcf52a1[_0x41a694('0x264e')]['id']},_0xcf52a1[_0x41a694('0x264e')])['$promise'][_0x41a694('0x11bf')](function(){const _0x2ae1a4=_0x41a694;_0xd33ec2[_0x2ae1a4('0x2693')]({'title':_0x2ae1a4('0x8a2'),'msg':_0xcf52a1[_0x2ae1a4('0x264e')]['name']?_0xcf52a1[_0x2ae1a4('0x264e')][_0x2ae1a4('0x1909')]+'\x20has\x20been\x20updated!':''});})[_0x41a694('0x151d')](function(_0x4cd613){const _0x236b7c=_0x41a694;_0xd33ec2['error']({'title':_0x4cd613[_0x236b7c('0xff9')]?_0x236b7c('0x574')+_0x4cd613[_0x236b7c('0xff9')]+'\x20-\x20'+_0x4cd613[_0x236b7c('0x212f')]:_0x236b7c('0xb21'),'msg':_0x4cd613[_0x236b7c('0x4e8')]?JSON['stringify'](_0x4cd613[_0x236b7c('0x4e8')]):_0x4cd613[_0x236b7c('0xaab')]()});});}}const _0x238064=_0x507dfd,_0x17b8de=_0x351988['p']+'src/js/modules/main/apps/tools/views/trunks/create/dialog.html/dialog.html';_0x12f27a['$inject']=['$scope',_0x21d0f5('0x2143'),_0x21d0f5('0xcbc'),_0x21d0f5('0x18fe'),_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),_0x21d0f5('0x17f5'),_0x21d0f5('0xb6b'),_0x21d0f5('0x1b24'),_0x21d0f5('0x25bc'),_0x21d0f5('0x1d63'),'api',_0x21d0f5('0xda9'),'toasty',_0x21d0f5('0x1150'),_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1')];function _0x12f27a(_0x1b729d,_0x587368,_0x314e53,_0x93dc03,_0xef2395,_0x52f574,_0x41aa51,_0x54db3f,_0x259de4,_0x4cdd72,_0x1d901f,_0x42e0d8,_0x3cca68,_0x3971aa,_0x205990,_0x16586f,_0x2f734d){const _0x54be92=_0x21d0f5,_0x2cf6bf=this;_0x2cf6bf[_0x54be92('0x17ff')]=_0x16586f,_0x2cf6bf[_0x54be92('0x23e1')]=_0x2f734d,_0x2cf6bf['currentUser']=_0x205990[_0x54be92('0x2428')](),_0x2cf6bf['trunks']=_0x259de4||{'count':0x0,'rows':[]},_0x2cf6bf[_0x54be92('0x25bc')]=_0x4cdd72,_0x2cf6bf[_0x54be92('0x1d63')]=_0x1d901f&&_0x1d901f['count']==0x1?_0x1d901f[_0x54be92('0x19b2')][0x0]:null,_0x2cf6bf[_0x54be92('0xb25')]=_0x205990[_0x54be92('0x1530')](_0x2cf6bf[_0x54be92('0x1d63')]?_0x2cf6bf[_0x54be92('0x1d63')][_0x54be92('0xb25')]:null),_0x2cf6bf[_0x54be92('0x13e8')]=_0x54be92('0x1b24'),_0x2cf6bf['listOrder']='',_0x2cf6bf[_0x54be92('0xe3c')]=null,_0x2cf6bf[_0x54be92('0x284b')]=[],_0x2cf6bf['query']={'fields':_0x54be92('0x23ac'),'sort':'-updatedAt','limit':0xa,'page':0x1},_0x2cf6bf['arraytype']=_0x36f548()[_0x54be92('0x2130')]([{'option':_0x54be92('0x27d8'),'value':'\x27friend\x27'},{'option':'User','value':'\x27user\x27'},{'option':_0x54be92('0x1a90'),'value':_0x54be92('0x1842')}],function(_0x1329b8){const _0x338578=_0x54be92;return _0x36f548()[_0x338578('0x814')](_0x1329b8[_0x338578('0x10cc')],new RegExp('\x27','g'),'');}),_0x2cf6bf[_0x54be92('0x1825')]=_0x36f548()[_0x54be92('0x2130')]([{'option':'rfc2833','value':'\x27rfc2833\x27'},{'option':_0x54be92('0x870'),'value':_0x54be92('0xaf2')},{'option':_0x54be92('0x6d6'),'value':_0x54be92('0x73b')},{'option':_0x54be92('0x225e'),'value':'\x27inband\x27'},{'option':_0x54be92('0xf78'),'value':_0x54be92('0x1a26')}],function(_0x338ea5){const _0x5e9d9b=_0x54be92;return _0x36f548()[_0x5e9d9b('0x814')](_0x338ea5[_0x5e9d9b('0x10cc')],new RegExp('\x27','g'),'');}),_0x2cf6bf[_0x54be92('0x192f')]=_0x36f548()['keyBy']([{'option':_0x54be92('0x19cf'),'value':'\x27force_rport\x27'},{'option':_0x54be92('0x1219'),'value':_0x54be92('0x1cc1')},{'option':_0x54be92('0xf6'),'value':_0x54be92('0x1d9')},{'option':'no','value':_0x54be92('0x19bb')},{'option':_0x54be92('0xf95'),'value':_0x54be92('0x1d91')},{'option':_0x54be92('0x17d8'),'value':'\x27route\x27'}],function(_0x12a6fa){const _0x44ccd3=_0x54be92;return _0x36f548()[_0x44ccd3('0x814')](_0x12a6fa[_0x44ccd3('0x10cc')],new RegExp('\x27','g'),'');}),_0x2cf6bf['arrayqualify']=_0x36f548()[_0x54be92('0x2130')]([{'option':_0x54be92('0xf6'),'value':_0x54be92('0x1d9')},{'option':'no','value':'\x27no\x27'}],function(_0x473451){const _0x2df3d5=_0x54be92;return _0x36f548()[_0x2df3d5('0x814')](_0x473451[_0x2df3d5('0x10cc')],new RegExp('\x27','g'),'');}),_0x2cf6bf[_0x54be92('0x1bb6')]=_0x36f548()[_0x54be92('0x2130')]([{'option':_0x54be92('0x194f'),'value':'\x27ulaw\x27'},{'option':'alaw','value':_0x54be92('0x2750')},{'option':_0x54be92('0x3da'),'value':_0x54be92('0x5af')},{'option':_0x54be92('0x23cb'),'value':'\x27g723\x27'},{'option':_0x54be92('0x22dc'),'value':'\x27g726\x27'},{'option':'g722','value':_0x54be92('0x18e0')},{'option':_0x54be92('0x8de'),'value':'\x27g729\x27'},{'option':_0x54be92('0x18b5'),'value':'\x27ilbc\x27'},{'option':_0x54be92('0xb90'),'value':_0x54be92('0xeeb')},{'option':'h264','value':_0x54be92('0x6d8')}],function(_0x93c6d4){const _0x553f08=_0x54be92;return _0x36f548()[_0x553f08('0x814')](_0x93c6d4[_0x553f08('0x10cc')],new RegExp('\x27','g'),'');}),_0x2cf6bf['arrayinsecure']=_0x36f548()['keyBy']([{'option':_0x54be92('0x235b'),'value':'\x27port\x27'},{'option':_0x54be92('0x1871'),'value':_0x54be92('0xa25')},{'option':_0x54be92('0x1dab'),'value':_0x54be92('0x2833')}],function(_0x51540a){const _0x3206d0=_0x54be92;return _0x36f548()[_0x3206d0('0x814')](_0x51540a['value'],new RegExp('\x27','g'),'');}),_0x2cf6bf[_0x54be92('0x2831')]=_0x36f548()[_0x54be92('0x2130')]([{'option':_0x54be92('0xf6'),'value':_0x54be92('0x1d9')},{'option':'no','value':_0x54be92('0x19bb')},{'option':_0x54be92('0x18d9'),'value':_0x54be92('0x20fd')},{'option':_0x54be92('0x5ab'),'value':'\x27update\x27'}],function(_0x4ca4a6){const _0x34d0e1=_0x54be92;return _0x36f548()[_0x34d0e1('0x814')](_0x4ca4a6[_0x34d0e1('0x10cc')],new RegExp('\x27','g'),'');}),_0x2cf6bf[_0x54be92('0x2569')]=_0x36f548()[_0x54be92('0x2130')]([{'option':_0x54be92('0xf6'),'value':_0x54be92('0x1d9')},{'option':'no','value':'\x27no\x27'}],function(_0x1936b5){const _0x5642d5=_0x54be92;return _0x36f548()['replace'](_0x1936b5[_0x5642d5('0x10cc')],new RegExp('\x27','g'),'');}),_0x2cf6bf[_0x54be92('0x21d3')]=_0x36f548()[_0x54be92('0x2130')]([{'option':_0x54be92('0xf6'),'value':_0x54be92('0x1d9')},{'option':'no','value':_0x54be92('0x19bb')}],function(_0x27b7b5){const _0x3fc04f=_0x54be92;return _0x36f548()['replace'](_0x27b7b5[_0x3fc04f('0x10cc')],new RegExp('\x27','g'),'');}),_0x2cf6bf[_0x54be92('0x874')]=_0x36f548()[_0x54be92('0x2130')]([{'option':_0x54be92('0xf6'),'value':_0x54be92('0x1d9')},{'option':'no','value':_0x54be92('0x19bb')}],function(_0x2af487){const _0x1819e0=_0x54be92;return _0x36f548()[_0x1819e0('0x814')](_0x2af487[_0x1819e0('0x10cc')],new RegExp('\x27','g'),'');}),_0x2cf6bf[_0x54be92('0x9c')]=_0x36f548()[_0x54be92('0x2130')]([{'option':_0x54be92('0xf6'),'value':_0x54be92('0x1d9')},{'option':'no','value':'\x27no\x27'},{'option':_0x54be92('0x242e'),'value':_0x54be92('0x6f3')}],function(_0x11ad77){const _0x406479=_0x54be92;return _0x36f548()[_0x406479('0x814')](_0x11ad77[_0x406479('0x10cc')],new RegExp('\x27','g'),'');}),_0x2cf6bf[_0x54be92('0x385')]=_0x36f548()['keyBy']([{'option':_0x54be92('0xf6'),'value':_0x54be92('0x1d9')},{'option':'no','value':'\x27no\x27'}],function(_0x2bd1fe){const _0x1ff614=_0x54be92;return _0x36f548()['replace'](_0x2bd1fe[_0x1ff614('0x10cc')],new RegExp('\x27','g'),'');}),_0x2cf6bf[_0x54be92('0x1bf5')]=_0x36f548()['keyBy']([{'option':_0x54be92('0x1afa'),'value':_0x54be92('0xa54')},{'option':_0x54be92('0x10fc'),'value':_0x54be92('0x1129')},{'option':'ws','value':'\x27ws\x27'},{'option':_0x54be92('0x18a8'),'value':_0x54be92('0x24c3')},{'option':_0x54be92('0x33b'),'value':'\x27tls\x27'}],function(_0x32bd97){const _0x3cc2af=_0x54be92;return _0x36f548()['replace'](_0x32bd97[_0x3cc2af('0x10cc')],new RegExp('\x27','g'),'');}),_0x2cf6bf['arrayvideosupport']=_0x36f548()[_0x54be92('0x2130')]([{'option':_0x54be92('0xaa2'),'value':_0x54be92('0x1d9')},{'option':'No','value':_0x54be92('0x19bb')},{'option':'Always','value':_0x54be92('0x538')}],function(_0x3fa747){const _0x3b286f=_0x54be92;return _0x36f548()[_0x3b286f('0x814')](_0x3fa747['value'],new RegExp('\x27','g'),'');}),_0x2cf6bf[_0x54be92('0x757')]=_0x463b1c,_0x2cf6bf[_0x54be92('0xf0f')]=_0x3fb8d4,_0x2cf6bf['gotorealtimegoto']=_0x4e2caf,_0x2cf6bf[_0x54be92('0x549')]=_0x17362d,_0x2cf6bf[_0x54be92('0x2693')]=_0xc0f29d,_0x2cf6bf[_0x54be92('0x2f0')]=_0x1c1a55,_0x2cf6bf['createOrEditTrunk']=_0x380fda,_0x2cf6bf['deleteTrunk']=_0x42787b,_0x2cf6bf['exportSelectedTrunks']=_0x589e24,_0x2cf6bf['deleteSelectedTrunks']=_0x2f1225,_0x2cf6bf[_0x54be92('0x26e8')]=_0x5b1a32,_0x2cf6bf[_0x54be92('0x2dd')]=_0x52e3aa;function _0x463b1c(_0x3519d3){const _0x2e0983=_0x54be92;_0x314e53['go'](_0x2e0983('0x2873'),{'id':_0x3519d3['id'],'trunk':_0x3519d3,'crudPermissions':_0x2cf6bf[_0x2e0983('0xb25')]});}function _0x3fb8d4(_0x41ee89,_0x1b8518){const _0x34cad3=_0x54be92;_0xef2395[_0x34cad3('0xb9')]({'controller':_0x34cad3('0x220e'),'controllerAs':'vm','templateUrl':_0x48dfd9,'parent':angular['element'](_0x52f574[_0x34cad3('0x1d2')]),'targetEvent':_0x1b8518,'clickOutsideToClose':!![],'locals':{'trunk':_0x41ee89,'trunks':_0x2cf6bf[_0x34cad3('0x1b24')]?_0x2cf6bf['trunks'][_0x34cad3('0x19b2')]:[],'crudPermissions':_0x2cf6bf[_0x34cad3('0xb25')]}});}function _0x4e2caf(){const _0x5a04f4=_0x54be92;if(_0x205990[_0x5a04f4('0x4ee')](_0x5a04f4('0xf45')))_0x314e53['go'](_0x5a04f4('0x503'),{});else return _0x42e0d8['userProfileSection'][_0x5a04f4('0xbaa')]({'userProfileId':_0x205990[_0x5a04f4('0x2428')]()[_0x5a04f4('0x781')],'sectionId':0x19b})[_0x5a04f4('0x1549')]['then'](function(_0xeeb112){const _0x53e5e4=_0x5a04f4,_0x493a6e=_0xeeb112&&_0xeeb112[_0x53e5e4('0x19b2')]?_0xeeb112[_0x53e5e4('0x19b2')][0x0]:null;_0x493a6e&&_0x493a6e[_0x53e5e4('0x1f0a')]?_0x314e53['go']('app.voice.realtime.trunks',{}):_0x3971aa[_0x53e5e4('0x870')]({'title':_0x54db3f[_0x53e5e4('0x10c2')](_0x53e5e4('0xbff')),'msg':_0x54db3f[_0x53e5e4('0x10c2')](_0x53e5e4('0x10d1'))});})[_0x5a04f4('0x151d')](function(_0x33c219){const _0x33e35e=_0x5a04f4;_0x3971aa[_0x33e35e('0x255')]({'title':_0x33c219[_0x33e35e('0xff9')]?_0x33e35e('0x574')+_0x33c219[_0x33e35e('0xff9')]+_0x33e35e('0xb0b')+_0x33c219['statusText']:'USERPROFILE:GET_SECTION','msg':_0x33c219[_0x33e35e('0xff9')]?JSON['stringify'](_0x33c219[_0x33e35e('0x4e8')]):_0x33c219['toString']()});});}function _0x17362d(_0x43cdc8,_0x58391a){const _0x5b34fd=_0x54be92,_0x29dd65=_0xef2395['confirm']()[_0x5b34fd('0x134b')](_0x5b34fd('0x1796')+_0x36f548()[_0x5b34fd('0x13cf')]('trunk')+'?')[_0x5b34fd('0x1d03')](_0x5b34fd('0x2061')+(_0x43cdc8[_0x5b34fd('0x1909')]||_0x5b34fd('0x264e'))+''+'\x20will\x20be\x20deleted.')[_0x5b34fd('0xb2e')](_0x5b34fd('0x4b'))[_0x5b34fd('0x1e25')](_0x58391a)['ok']('OK')[_0x5b34fd('0x26c9')](_0x5b34fd('0x772'));_0xef2395[_0x5b34fd('0xb9')](_0x29dd65)['then'](function(){_0x42787b(_0x43cdc8);},function(){const _0x14fa0f=_0x5b34fd;console[_0x14fa0f('0xc78')](_0x14fa0f('0x772'));});}let _0x3f00fc=!![],_0x366006=0x1;_0x1b729d['$watch'](_0x54be92('0x842'),function(_0x40fc84,_0x1748d7){const _0x45ffa4=_0x54be92;_0x3f00fc?_0x41aa51(function(){_0x3f00fc=![];}):(!_0x1748d7&&(_0x366006=_0x2cf6bf[_0x45ffa4('0x1f2a')][_0x45ffa4('0x1c2')]),_0x40fc84!==_0x1748d7&&(_0x2cf6bf['query'][_0x45ffa4('0x1c2')]=0x1),!_0x40fc84&&(_0x2cf6bf[_0x45ffa4('0x1f2a')]['page']=_0x366006),_0x2cf6bf[_0x45ffa4('0x2f0')]());});function _0xc0f29d(_0x43a569){const _0x508331=_0x54be92;_0x2cf6bf[_0x508331('0x1b24')]=_0x43a569||{'count':0x0,'rows':[]};}function _0x1c1a55(){const _0x15a6b2=_0x54be92;_0x2cf6bf[_0x15a6b2('0x1f2a')][_0x15a6b2('0x1393')]=(_0x2cf6bf[_0x15a6b2('0x1f2a')]['page']-0x1)*_0x2cf6bf['query'][_0x15a6b2('0xd5c')],_0x205990[_0x15a6b2('0x4ee')]('admin')?_0x2cf6bf['promise']=_0x42e0d8[_0x15a6b2('0x264e')]['get'](_0x2cf6bf[_0x15a6b2('0x1f2a')],_0xc0f29d)[_0x15a6b2('0x1549')]:(_0x2cf6bf[_0x15a6b2('0x1f2a')]['id']=_0x2cf6bf[_0x15a6b2('0x25bc')]['id'],_0x2cf6bf[_0x15a6b2('0x1f2a')][_0x15a6b2('0xe6')]=_0x15a6b2('0x2174'),_0x2cf6bf['promise']=_0x42e0d8[_0x15a6b2('0x25bc')]['getResources'](_0x2cf6bf[_0x15a6b2('0x1f2a')],_0xc0f29d)[_0x15a6b2('0x1549')]);}function _0x380fda(_0x2dd765,_0x355414){const _0x5df907=_0x54be92;_0xef2395['show']({'controller':_0x5df907('0x19db'),'controllerAs':'vm','templateUrl':_0x17b8de,'parent':angular[_0x5df907('0x1e73')](_0x52f574[_0x5df907('0x1d2')]),'targetEvent':_0x2dd765,'clickOutsideToClose':!![],'locals':{'trunk':_0x355414,'trunks':_0x2cf6bf[_0x5df907('0x1b24')][_0x5df907('0x19b2')],'license':_0x2cf6bf['license'],'setting':_0x2cf6bf['setting'],'crudPermissions':_0x2cf6bf[_0x5df907('0xb25')]}});}function _0x42787b(_0x34be7e){const _0x2f605d=_0x54be92;_0x42e0d8[_0x2f605d('0x264e')]['delete']({'id':_0x34be7e['id']})[_0x2f605d('0x1549')][_0x2f605d('0x11bf')](function(){const _0x3e9754=_0x2f605d;_0x36f548()['remove'](_0x2cf6bf[_0x3e9754('0x1b24')][_0x3e9754('0x19b2')],{'id':_0x34be7e['id']}),_0x2cf6bf[_0x3e9754('0x1b24')][_0x3e9754('0x27d2')]-=0x1,!_0x2cf6bf['trunks'][_0x3e9754('0x19b2')][_0x3e9754('0x1e22')]&&_0x2cf6bf[_0x3e9754('0x2f0')](),_0x3971aa[_0x3e9754('0x2693')]({'title':_0x36f548()['startCase'](_0x3e9754('0x10d'))+_0x3e9754('0x2113'),'msg':_0x34be7e['name']?_0x34be7e[_0x3e9754('0x1909')]+'\x20has\x20been\x20deleted!':''});})[_0x2f605d('0x151d')](function(_0x2f7362){const _0x2a1864=_0x2f605d;if(_0x2f7362[_0x2a1864('0x4e8')]&&_0x2f7362['data'][_0x2a1864('0x120f')]&&_0x2f7362[_0x2a1864('0x4e8')]['errors'][_0x2a1864('0x1e22')]){_0x2cf6bf[_0x2a1864('0x120f')]=_0x2f7362['data']['errors']||[{'message':_0x2f7362[_0x2a1864('0xaab')](),'type':_0x2a1864('0x19d8')}];for(let _0xa362d4=0x0;_0xa362d4<_0x2f7362[_0x2a1864('0x4e8')][_0x2a1864('0x120f')][_0x2a1864('0x1e22')];_0xa362d4++){_0x3971aa['error']({'title':_0x2f7362[_0x2a1864('0x4e8')][_0x2a1864('0x120f')][_0xa362d4][_0x2a1864('0x19fd')],'msg':_0x2f7362[_0x2a1864('0x4e8')][_0x2a1864('0x120f')][_0xa362d4]['message']});}}else _0x3971aa[_0x2a1864('0x255')]({'title':_0x2f7362[_0x2a1864('0xff9')]?_0x2a1864('0x574')+_0x2f7362['status']+_0x2a1864('0xb0b')+_0x2f7362[_0x2a1864('0x212f')]:_0x2a1864('0x19d8'),'msg':_0x2f7362[_0x2a1864('0x4e8')]?JSON[_0x2a1864('0x3e')](_0x2f7362[_0x2a1864('0x4e8')][_0x2a1864('0x1b86')]):_0x2f7362[_0x2a1864('0x1b86')]||_0x2f7362[_0x2a1864('0xaab')]()});});}function _0x589e24(){const _0x2a092a=_0x54be92,_0x210a1f=angular[_0x2a092a('0x6fb')](_0x2cf6bf['selectedTrunks']);return _0x2cf6bf['selectedTrunks']=[],_0x210a1f;}function _0x2f1225(_0x56ed3c){const _0x1df29c=_0x54be92,_0x415c27=_0xef2395[_0x1df29c('0x132b')]()[_0x1df29c('0x134b')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20trunks?')[_0x1df29c('0x1d03')](''+_0x2cf6bf[_0x1df29c('0x284b')][_0x1df29c('0x1e22')]+_0x1df29c('0xac6')+_0x1df29c('0x1a'))[_0x1df29c('0xb2e')](_0x1df29c('0x1d5d'))[_0x1df29c('0x1e25')](_0x56ed3c)['ok']('OK')[_0x1df29c('0x26c9')]('CANCEL');_0xef2395[_0x1df29c('0xb9')](_0x415c27)[_0x1df29c('0x11bf')](function(){const _0xbae7b3=_0x1df29c;_0x2cf6bf['selectedTrunks'][_0xbae7b3('0x1f88')](function(_0x2d82f4){_0x42787b(_0x2d82f4);}),_0x2cf6bf[_0xbae7b3('0x284b')]=[];});}function _0x5b1a32(){const _0x307e0c=_0x54be92;_0x2cf6bf[_0x307e0c('0x284b')]=[];}function _0x52e3aa(){const _0xc2cd8f=_0x54be92;_0x2cf6bf['selectedTrunks']=_0x2cf6bf[_0xc2cd8f('0x1b24')]['rows'];}}const _0x2fdaee=_0x12f27a;_0xec797[_0x21d0f5('0x1e9a')]=['$scope',_0x21d0f5('0xcbc'),_0x21d0f5('0x16b9'),_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0xb6b'),_0x21d0f5('0x142d'),'variables',_0x21d0f5('0xb0'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1'),_0x21d0f5('0xb25')];function _0xec797(_0x2a531e,_0x368cd9,_0xe49036,_0x56121a,_0x2b0fb4,_0x4bd751,_0x17a59c,_0x329cb2,_0x457ab2,_0x10bb0a,_0x348a0c,_0x10fed8,_0x519d9e,_0x45bd54){const _0x3190ad=_0x21d0f5,_0x4a8d6b=this;_0x4a8d6b[_0x3190ad('0x32a')]=_0x348a0c[_0x3190ad('0x2428')](),_0x4a8d6b['errors']=[],_0x4a8d6b[_0x3190ad('0x23e1')]=_0x519d9e,_0x4a8d6b[_0x3190ad('0x17ff')]=_0x10fed8,_0x4a8d6b[_0x3190ad('0xb25')]=_0x45bd54,_0x4a8d6b[_0x3190ad('0x2c9')]={},_0x4a8d6b[_0x3190ad('0x2834')]=_0x4a8d6b[_0x3190ad('0x23e1')]&&_0x4a8d6b['setting'][_0x3190ad('0x1d4')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x4a8d6b[_0x3190ad('0x134b')]=_0x3190ad('0x21fe'),_0x4a8d6b[_0x3190ad('0xb0')]=angular['copy'](_0x457ab2),_0x4a8d6b[_0x3190ad('0x1700')]=_0x329cb2,_0x4a8d6b['newVariable']=![];!_0x4a8d6b[_0x3190ad('0xb0')]&&(_0x4a8d6b[_0x3190ad('0xb0')]={},_0x4a8d6b['title']='TOOLS.NEW_VARIABLE',_0x4a8d6b[_0x3190ad('0x1905')]=!![]);_0x4a8d6b[_0x3190ad('0x1245')]=_0x48b995,_0x4a8d6b[_0x3190ad('0x23da')]=_0x5382dd,_0x4a8d6b[_0x3190ad('0x23f2')]=_0x164741,_0x4a8d6b[_0x3190ad('0x1bd1')]=_0x13ccfe,_0x4a8d6b[_0x3190ad('0xc4e')]=_0x1f49d2;function _0x48b995(){const _0xaf723b=_0x3190ad;_0x4a8d6b[_0xaf723b('0x120f')]=[],_0x10bb0a[_0xaf723b('0xb0')][_0xaf723b('0x259')](_0x4a8d6b['variable'])[_0xaf723b('0x1549')][_0xaf723b('0x11bf')](function(_0x8f0f2){const _0x5a63ca=_0xaf723b;_0x4a8d6b[_0x5a63ca('0x1700')]['unshift'](_0x8f0f2[_0x5a63ca('0x2866')]()),_0x17a59c[_0x5a63ca('0x2693')]({'title':'Variable\x20properly\x20created','msg':_0x4a8d6b['variable'][_0x5a63ca('0x1909')]?_0x4a8d6b[_0x5a63ca('0xb0')][_0x5a63ca('0x1909')]+_0x5a63ca('0x7fb'):''}),_0x1f49d2(_0x8f0f2);})[_0xaf723b('0x151d')](function(_0x106fd6){const _0x77fc64=_0xaf723b;if(_0x106fd6[_0x77fc64('0x4e8')]&&_0x106fd6['data'][_0x77fc64('0x120f')]&&_0x106fd6[_0x77fc64('0x4e8')][_0x77fc64('0x120f')]['length']){_0x4a8d6b[_0x77fc64('0x120f')]=_0x106fd6[_0x77fc64('0x4e8')][_0x77fc64('0x120f')]||[{'message':_0x106fd6[_0x77fc64('0xaab')](),'type':_0x77fc64('0x25d1')}];for(let _0x463d5b=0x0;_0x463d5b<_0x106fd6['data'][_0x77fc64('0x120f')][_0x77fc64('0x1e22')];_0x463d5b+=0x1){_0x17a59c[_0x77fc64('0x255')]({'title':_0x106fd6[_0x77fc64('0x4e8')][_0x77fc64('0x120f')][_0x463d5b][_0x77fc64('0x19fd')],'msg':_0x106fd6[_0x77fc64('0x4e8')][_0x77fc64('0x120f')][_0x463d5b][_0x77fc64('0x1b86')]});}}else _0x17a59c['error']({'title':_0x106fd6[_0x77fc64('0xff9')]?_0x77fc64('0x574')+_0x106fd6[_0x77fc64('0xff9')]+'\x20-\x20'+_0x106fd6[_0x77fc64('0x212f')]:_0x77fc64('0x25d1'),'msg':_0x106fd6[_0x77fc64('0x4e8')]?JSON[_0x77fc64('0x3e')](_0x106fd6[_0x77fc64('0x4e8')]['message']):_0x106fd6[_0x77fc64('0xaab')]()});});}function _0x5382dd(){const _0x262a4f=_0x3190ad;_0x4a8d6b[_0x262a4f('0x120f')]=[],_0x10bb0a[_0x262a4f('0xb0')][_0x262a4f('0x5ab')]({'id':_0x4a8d6b[_0x262a4f('0xb0')]['id']},_0x4a8d6b[_0x262a4f('0xb0')])[_0x262a4f('0x1549')][_0x262a4f('0x11bf')](function(_0x36978e){const _0x43b10b=_0x262a4f,_0x51eae9=_0x36f548()[_0x43b10b('0x1ad4')](_0x4a8d6b['variables'],{'id':_0x36978e['id']});_0x51eae9&&_0x36f548()['merge'](_0x51eae9,_0x36f548()['pick'](_0x36978e[_0x43b10b('0x2866')](),_0x36f548()[_0x43b10b('0xe22')](_0x51eae9))),_0x17a59c['success']({'title':'Variable\x20properly\x20saved!','msg':_0x4a8d6b[_0x43b10b('0xb0')]['name']?_0x4a8d6b['variable']['name']+_0x43b10b('0x1a78'):''}),_0x1f49d2(_0x36978e);})['catch'](function(_0x4cf7bf){const _0x4de74c=_0x262a4f;if(_0x4cf7bf[_0x4de74c('0x4e8')]&&_0x4cf7bf[_0x4de74c('0x4e8')]['errors']&&_0x4cf7bf[_0x4de74c('0x4e8')][_0x4de74c('0x120f')][_0x4de74c('0x1e22')]){_0x4a8d6b[_0x4de74c('0x120f')]=_0x4cf7bf['data']['errors']||[{'message':_0x4cf7bf['toString'](),'type':'api.variable.update'}];for(let _0x9f1140=0x0;_0x9f1140<_0x4cf7bf[_0x4de74c('0x4e8')][_0x4de74c('0x120f')][_0x4de74c('0x1e22')];_0x9f1140++){_0x17a59c[_0x4de74c('0x255')]({'title':_0x4cf7bf['data'][_0x4de74c('0x120f')][_0x9f1140][_0x4de74c('0x19fd')],'msg':_0x4cf7bf[_0x4de74c('0x4e8')]['errors'][_0x9f1140][_0x4de74c('0x1b86')]});}}else _0x17a59c[_0x4de74c('0x255')]({'title':_0x4cf7bf[_0x4de74c('0xff9')]?'API:'+_0x4cf7bf[_0x4de74c('0xff9')]+_0x4de74c('0xb0b')+_0x4cf7bf['statusText']:_0x4de74c('0x1b1a'),'msg':_0x4cf7bf[_0x4de74c('0x4e8')]?JSON['stringify'](_0x4cf7bf[_0x4de74c('0x4e8')][_0x4de74c('0x1b86')]):_0x4cf7bf[_0x4de74c('0xaab')]()});});}function _0x164741(_0x3eefd2){const _0x47dfef=_0x3190ad;_0x4a8d6b[_0x47dfef('0x120f')]=[];const _0xd48d1b=_0x56121a[_0x47dfef('0x132b')]()[_0x47dfef('0x134b')]('Are\x20you\x20sure?')[_0x47dfef('0x252a')](_0x47dfef('0x1006'))[_0x47dfef('0xb2e')](_0x47dfef('0xad2'))['ok'](_0x47dfef('0x1167'))['cancel']('Cancel')[_0x47dfef('0x1e25')](_0x3eefd2);_0x56121a[_0x47dfef('0xb9')](_0xd48d1b)[_0x47dfef('0x11bf')](function(){const _0x4202b1=_0x47dfef;_0x10bb0a['variable']['delete']({'id':_0x4a8d6b[_0x4202b1('0xb0')]['id']})[_0x4202b1('0x1549')]['then'](function(){const _0x14815c=_0x4202b1;_0x36f548()[_0x14815c('0x14a5')](_0x4a8d6b['variables'],{'id':_0x4a8d6b[_0x14815c('0xb0')]['id']}),_0x17a59c[_0x14815c('0x2693')]({'title':_0x14815c('0x3c2'),'msg':(_0x4a8d6b[_0x14815c('0xb0')][_0x14815c('0x1909')]||_0x14815c('0xb0'))+_0x14815c('0x433')}),_0x1f49d2(_0x4a8d6b[_0x14815c('0xb0')]);})['catch'](function(_0x1d8a16){const _0x13b5f4=_0x4202b1;if(_0x1d8a16['data']&&_0x1d8a16[_0x13b5f4('0x4e8')][_0x13b5f4('0x120f')]&&_0x1d8a16[_0x13b5f4('0x4e8')]['errors'][_0x13b5f4('0x1e22')]){_0x4a8d6b[_0x13b5f4('0x120f')]=_0x1d8a16[_0x13b5f4('0x4e8')][_0x13b5f4('0x120f')]||[{'message':_0x1d8a16[_0x13b5f4('0xaab')](),'type':'api.variable.delete'}];for(let _0x5d0542=0x0;_0x5d0542<_0x1d8a16['data'][_0x13b5f4('0x120f')]['length'];_0x5d0542++){_0x17a59c[_0x13b5f4('0x255')]({'title':_0x1d8a16[_0x13b5f4('0x4e8')][_0x13b5f4('0x120f')][_0x5d0542][_0x13b5f4('0x19fd')],'msg':_0x1d8a16[_0x13b5f4('0x4e8')]['errors'][_0x5d0542][_0x13b5f4('0x1b86')]});}}else _0x17a59c[_0x13b5f4('0x255')]({'title':_0x1d8a16[_0x13b5f4('0xff9')]?_0x13b5f4('0x574')+_0x1d8a16[_0x13b5f4('0xff9')]+_0x13b5f4('0xb0b')+_0x1d8a16[_0x13b5f4('0x212f')]:'api.variable.delete','msg':_0x1d8a16[_0x13b5f4('0x4e8')]?JSON[_0x13b5f4('0x3e')](_0x1d8a16[_0x13b5f4('0x4e8')]['message']):_0x1d8a16[_0x13b5f4('0x1b86')]||_0x1d8a16[_0x13b5f4('0xaab')]()});});},function(){});}function _0x13ccfe(_0xda9f43){return _0xda9f43===null?undefined:new Date(_0xda9f43);}function _0x1f49d2(_0xeabba8){const _0x56b6e1=_0x3190ad;_0x56121a[_0x56b6e1('0x237e')](_0xeabba8);}}const _0x1bf3f2=_0xec797,_0x3f6ce4=_0x351988['p']+_0x21d0f5('0xf40');_0x493f9b['$inject']=[_0x21d0f5('0x1b80'),_0x21d0f5('0x2143'),_0x21d0f5('0xcbc'),_0x21d0f5('0x18fe'),'$mdDialog',_0x21d0f5('0x1b30'),'$timeout','$translate',_0x21d0f5('0x1700'),_0x21d0f5('0x25bc'),_0x21d0f5('0x1d63'),'api',_0x21d0f5('0xda9'),'toasty',_0x21d0f5('0x1150'),'license',_0x21d0f5('0x23e1')];function _0x493f9b(_0x203e54,_0x279946,_0x31b24,_0x42dfad,_0x2473dd,_0x23a256,_0x5a21f2,_0x4e1a6c,_0x19ebfa,_0x15761f,_0x180ea4,_0x2b0439,_0x18f33a,_0x1043f7,_0xe0bd8f,_0x3744f8,_0x377a17){const _0x1cf556=_0x21d0f5,_0x456029=this;_0x456029[_0x1cf556('0x17ff')]=_0x3744f8,_0x456029[_0x1cf556('0x23e1')]=_0x377a17,_0x456029[_0x1cf556('0x32a')]=_0xe0bd8f[_0x1cf556('0x2428')](),_0x456029[_0x1cf556('0x1700')]=_0x19ebfa||{'count':0x0,'rows':[]},_0x456029[_0x1cf556('0x25bc')]=_0x15761f,_0x456029[_0x1cf556('0x1d63')]=_0x180ea4&&_0x180ea4[_0x1cf556('0x27d2')]==0x1?_0x180ea4[_0x1cf556('0x19b2')][0x0]:null,_0x456029['crudPermissions']=_0xe0bd8f[_0x1cf556('0x1530')](_0x456029[_0x1cf556('0x1d63')]?_0x456029['userProfileSection']['crudPermissions']:null),_0x456029[_0x1cf556('0x13e8')]=_0x1cf556('0x1700'),_0x456029[_0x1cf556('0x724')]='',_0x456029['listOrderAsc']=null,_0x456029[_0x1cf556('0x18b1')]=[],_0x456029['query']={'fields':_0x1cf556('0x219a'),'sort':_0x1cf556('0x1c74'),'limit':0xa,'page':0x1},_0x456029[_0x1cf556('0xc03')]=_0x21b77d,_0x456029[_0x1cf556('0x549')]=_0x4c5c18,_0x456029['success']=_0x3dcfb8,_0x456029[_0x1cf556('0xd7a')]=_0x49af8e,_0x456029[_0x1cf556('0x1ef')]=_0x2391ed,_0x456029[_0x1cf556('0x23f2')]=_0x5e7896,_0x456029[_0x1cf556('0x2360')]=_0x28b271,_0x456029['deleteSelectedVariables']=_0x53875e,_0x456029[_0x1cf556('0x22bd')]=_0x4cd242,_0x456029[_0x1cf556('0x20f7')]=_0x52d3ed;function _0x21b77d(_0x4e8556,_0x396f82){const _0xd645fb=_0x1cf556;_0x2473dd[_0xd645fb('0xb9')]({'controller':_0xd645fb('0x23a6'),'controllerAs':'vm','templateUrl':_0x3f6ce4,'parent':angular[_0xd645fb('0x1e73')](_0x23a256[_0xd645fb('0x1d2')]),'targetEvent':_0x396f82,'clickOutsideToClose':!![],'locals':{'variable':_0x4e8556,'variables':_0x456029['variables']['rows'],'license':_0x456029[_0xd645fb('0x17ff')],'setting':null,'crudPermissions':_0x456029[_0xd645fb('0xb25')]}});}function _0x4c5c18(_0x1ef211,_0x299e8f){const _0x33acbf=_0x1cf556,_0x4b5fb8=_0x2473dd[_0x33acbf('0x132b')]()[_0x33acbf('0x134b')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x36f548()[_0x33acbf('0x13cf')]('variable')+'?')[_0x33acbf('0x1d03')](_0x33acbf('0x2061')+(_0x1ef211[_0x33acbf('0x1909')]||_0x33acbf('0xb0'))+_0x33acbf('0x1c78')+_0x33acbf('0x1a'))[_0x33acbf('0xb2e')](_0x33acbf('0x1462'))[_0x33acbf('0x1e25')](_0x299e8f)['ok']('OK')['cancel'](_0x33acbf('0x772'));_0x2473dd['show'](_0x4b5fb8)[_0x33acbf('0x11bf')](function(){_0x5e7896(_0x1ef211);},function(){const _0x5ee366=_0x33acbf;console['log'](_0x5ee366('0x772'));});}let _0x2b5d6c=!![],_0x23cb04=0x1;_0x203e54[_0x1cf556('0x2087')](_0x1cf556('0x842'),function(_0x38d7c7,_0x2dec53){const _0x230e59=_0x1cf556;_0x2b5d6c?_0x5a21f2(function(){_0x2b5d6c=![];}):(!_0x2dec53&&(_0x23cb04=_0x456029['query'][_0x230e59('0x1c2')]),_0x38d7c7!==_0x2dec53&&(_0x456029[_0x230e59('0x1f2a')][_0x230e59('0x1c2')]=0x1),!_0x38d7c7&&(_0x456029[_0x230e59('0x1f2a')]['page']=_0x23cb04),_0x456029[_0x230e59('0xd7a')]());});function _0x3dcfb8(_0x2f1e26){const _0x11e86f=_0x1cf556;_0x456029[_0x11e86f('0x1700')]=_0x2f1e26||{'count':0x0,'rows':[]};}function _0x49af8e(){const _0x57a2f9=_0x1cf556;_0x456029['query'][_0x57a2f9('0x1393')]=(_0x456029[_0x57a2f9('0x1f2a')][_0x57a2f9('0x1c2')]-0x1)*_0x456029['query'][_0x57a2f9('0xd5c')],_0xe0bd8f['hasRole'](_0x57a2f9('0xf45'))?_0x456029[_0x57a2f9('0x13f')]=_0x2b0439[_0x57a2f9('0xb0')][_0x57a2f9('0xbaa')](_0x456029[_0x57a2f9('0x1f2a')],_0x3dcfb8)['$promise']:(_0x456029[_0x57a2f9('0x1f2a')]['id']=_0x456029[_0x57a2f9('0x25bc')]['id'],_0x456029[_0x57a2f9('0x1f2a')]['section']=_0x57a2f9('0xa83'),_0x456029[_0x57a2f9('0x13f')]=_0x2b0439[_0x57a2f9('0x25bc')][_0x57a2f9('0x228e')](_0x456029['query'],_0x3dcfb8)[_0x57a2f9('0x1549')]);}function _0x2391ed(_0x48426a,_0x353fc4){const _0xdc6956=_0x1cf556;_0x2473dd[_0xdc6956('0xb9')]({'controller':_0xdc6956('0x23a6'),'controllerAs':'vm','templateUrl':_0x3f6ce4,'parent':angular[_0xdc6956('0x1e73')](_0x23a256[_0xdc6956('0x1d2')]),'targetEvent':_0x48426a,'clickOutsideToClose':!![],'locals':{'variable':_0x353fc4,'variables':_0x456029[_0xdc6956('0x1700')][_0xdc6956('0x19b2')],'license':_0x456029[_0xdc6956('0x17ff')],'setting':_0x456029['setting'],'crudPermissions':_0x456029[_0xdc6956('0xb25')]}});}function _0x5e7896(_0x233f1b){const _0x4239c5=_0x1cf556;_0x2b0439[_0x4239c5('0xb0')][_0x4239c5('0x2088')]({'id':_0x233f1b['id']})[_0x4239c5('0x1549')][_0x4239c5('0x11bf')](function(){const _0x4c766a=_0x4239c5;_0x36f548()[_0x4c766a('0x14a5')](_0x456029['variables'][_0x4c766a('0x19b2')],{'id':_0x233f1b['id']}),_0x456029['variables']['count']-=0x1,!_0x456029[_0x4c766a('0x1700')]['rows'][_0x4c766a('0x1e22')]&&_0x456029[_0x4c766a('0xd7a')](),_0x1043f7[_0x4c766a('0x2693')]({'title':_0x36f548()['startCase'](_0x4c766a('0xb76'))+_0x4c766a('0x2113'),'msg':_0x233f1b[_0x4c766a('0x1909')]?_0x233f1b[_0x4c766a('0x1909')]+_0x4c766a('0x433'):''});})[_0x4239c5('0x151d')](function(_0x1e4741){const _0x132390=_0x4239c5;if(_0x1e4741[_0x132390('0x4e8')]&&_0x1e4741[_0x132390('0x4e8')][_0x132390('0x120f')]&&_0x1e4741[_0x132390('0x4e8')][_0x132390('0x120f')][_0x132390('0x1e22')]){_0x456029[_0x132390('0x120f')]=_0x1e4741['data']['errors']||[{'message':_0x1e4741[_0x132390('0xaab')](),'type':_0x132390('0x155e')}];for(let _0x5c507c=0x0;_0x5c507c<_0x1e4741[_0x132390('0x4e8')][_0x132390('0x120f')]['length'];_0x5c507c++){_0x1043f7['error']({'title':_0x1e4741[_0x132390('0x4e8')][_0x132390('0x120f')][_0x5c507c][_0x132390('0x19fd')],'msg':_0x1e4741[_0x132390('0x4e8')][_0x132390('0x120f')][_0x5c507c][_0x132390('0x1b86')]});}}else _0x1043f7['error']({'title':_0x1e4741['status']?_0x132390('0x574')+_0x1e4741[_0x132390('0xff9')]+'\x20-\x20'+_0x1e4741['statusText']:_0x132390('0x155e'),'msg':_0x1e4741[_0x132390('0x4e8')]?JSON['stringify'](_0x1e4741[_0x132390('0x4e8')][_0x132390('0x1b86')]):_0x1e4741[_0x132390('0x1b86')]||_0x1e4741[_0x132390('0xaab')]()});});}function _0x28b271(){const _0x8db24b=_0x1cf556,_0x4a40cb=angular[_0x8db24b('0x6fb')](_0x456029[_0x8db24b('0x18b1')]);return _0x456029[_0x8db24b('0x18b1')]=[],_0x4a40cb;}function _0x53875e(_0x4a889a){const _0x283c98=_0x1cf556,_0x17f966=_0x2473dd[_0x283c98('0x132b')]()[_0x283c98('0x134b')](_0x283c98('0x110b'))['htmlContent'](_0x283c98('0x2061')+_0x456029['selectedVariables'][_0x283c98('0x1e22')]+_0x283c98('0xac6')+_0x283c98('0x1a'))['ariaLabel']('delete\x20Variables')['targetEvent'](_0x4a889a)['ok']('OK')[_0x283c98('0x26c9')](_0x283c98('0x772'));_0x2473dd['show'](_0x17f966)[_0x283c98('0x11bf')](function(){const _0x255457=_0x283c98;_0x456029[_0x255457('0x18b1')][_0x255457('0x1f88')](function(_0x17f266){_0x5e7896(_0x17f266);}),_0x456029[_0x255457('0x18b1')]=[];});}function _0x4cd242(){const _0x3648d0=_0x1cf556;_0x456029[_0x3648d0('0x18b1')]=[];}function _0x52d3ed(){const _0x1b1632=_0x1cf556;_0x456029[_0x1b1632('0x18b1')]=_0x456029[_0x1b1632('0x1700')][_0x1b1632('0x19b2')];}}const _0xf417d9=_0x493f9b;_0x324318['$inject']=[_0x21d0f5('0x13d6'),'$translatePartialLoaderProvider'];function _0x324318(_0x14da42,_0x3d66cf){const _0x379a9a=_0x21d0f5;_0x14da42[_0x379a9a('0x2124')](_0x379a9a('0x5d3'),{'abstract':!![],'url':_0x379a9a('0x1ddc')})[_0x379a9a('0x2124')]('app.tools.cannedAnswers',{'url':_0x379a9a('0x67e'),'views':{'content@app':{'templateUrl':_0x43438f,'controller':_0x379a9a('0x3fb')}},'resolve':{'cannedAnswers':[_0x379a9a('0x218e'),_0x379a9a('0x1150'),function(_0x47ce7c,_0x3b57ae){const _0x48b88f=_0x379a9a;return _0x3b57ae[_0x48b88f('0x4ee')](_0x48b88f('0xf45'))?_0x47ce7c[_0x48b88f('0xa28')](_0x48b88f('0x188b'),{'fields':_0x48b88f('0x1cb4'),'sort':_0x48b88f('0x1c74'),'MailAccountId':'null','FaxAccountId':'null','SmsAccountId':_0x48b88f('0xb5f'),'OpenchannelAccountId':_0x48b88f('0xb5f'),'ChatWebsiteId':'null','limit':0xa,'offset':0x0}):_0x47ce7c[_0x48b88f('0xa28')](_0x48b88f('0xb0d'),{'id':_0x3b57ae[_0x48b88f('0x2428')]()[_0x48b88f('0x781')],'section':_0x48b88f('0x1a4b'),'fields':_0x48b88f('0x1cb4'),'sort':'-updatedAt','MailAccountId':_0x48b88f('0xb5f'),'FaxAccountId':'null','SmsAccountId':_0x48b88f('0xb5f'),'OpenchannelAccountId':'null','ChatWebsiteId':_0x48b88f('0xb5f'),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x379a9a('0x1150'),function(_0x1a84a6,_0x28fea5){const _0x6832b0=_0x379a9a;return _0x28fea5[_0x6832b0('0x4ee')](_0x6832b0('0xf45'))?null:_0x1a84a6[_0x6832b0('0xa28')](_0x6832b0('0x428'),{'fields':_0x6832b0('0xd30'),'id':_0x28fea5[_0x6832b0('0x2428')]()['userProfileId']});}],'userProfileSection':['apiResolver',_0x379a9a('0x1150'),function(_0x5532d7,_0x5183a9){const _0x13d640=_0x379a9a;return _0x5183a9[_0x13d640('0x4ee')](_0x13d640('0xf45'))?null:_0x5532d7[_0x13d640('0xa28')](_0x13d640('0x2762'),{'fields':_0x13d640('0x36d'),'userProfileId':_0x5183a9[_0x13d640('0x2428')]()[_0x13d640('0x781')],'sectionId':0x3e9});}]},'authenticate':!![],'permissionId':0x3e9,'bodyClass':'tools'})[_0x379a9a('0x2124')](_0x379a9a('0x1395'),{'url':_0x379a9a('0x978'),'views':{'content@app':{'templateUrl':_0x57f8f9,'controller':_0x379a9a('0x1f04')}},'resolve':{'customDashboards':['apiResolver','Auth',function(_0x17ec1c,_0x3c704a){const _0x4453cf=_0x379a9a;return _0x3c704a[_0x4453cf('0x4ee')](_0x4453cf('0xf45'))?_0x17ec1c[_0x4453cf('0xa28')](_0x4453cf('0x1ecf'),{'fields':_0x4453cf('0x219a'),'sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x17ec1c[_0x4453cf('0xa28')](_0x4453cf('0xb0d'),{'id':_0x3c704a['getCurrentUser']()[_0x4453cf('0x781')],'section':_0x4453cf('0x1ee0'),'fields':'createdAt,updatedAt,id,name,description','sort':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':[_0x379a9a('0x218e'),_0x379a9a('0x1150'),function(_0x1da48f,_0x32dda4){const _0x3c9edd=_0x379a9a;return _0x32dda4[_0x3c9edd('0x4ee')](_0x3c9edd('0xf45'))?null:_0x1da48f[_0x3c9edd('0xa28')]('userProfile@get',{'fields':_0x3c9edd('0xd30'),'id':_0x32dda4[_0x3c9edd('0x2428')]()['userProfileId']});}],'userProfileSection':[_0x379a9a('0x218e'),_0x379a9a('0x1150'),function(_0x4d90d0,_0x1ce833){const _0x2b9873=_0x379a9a;return _0x1ce833[_0x2b9873('0x4ee')](_0x2b9873('0xf45'))?null:_0x4d90d0[_0x2b9873('0xa28')]('userProfileSection@get',{'fields':_0x2b9873('0x36d'),'userProfileId':_0x1ce833['getCurrentUser']()[_0x2b9873('0x781')],'sectionId':0x3eb});}]},'authenticate':!![],'permissionId':0x3eb,'bodyClass':'tools'})[_0x379a9a('0x2124')]('app.tools.customDashboards.edit',{'url':_0x379a9a('0x142b'),'params':{'customDashboard':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x5929a2,'controller':_0x379a9a('0xae9')}},'resolve':{'customDashboard':['apiResolver',_0x379a9a('0x1573'),function(_0x2328b9,_0x1b8269){const _0x35f633=_0x379a9a;return _0x2328b9[_0x35f633('0xa28')]('dashboard@get',{'fields':_0x35f633('0x219a'),'id':_0x1b8269['id']});}],'userProfileSection':[_0x379a9a('0x218e'),_0x379a9a('0x1150'),function(_0x82609a,_0x41c4c9){const _0x2679d0=_0x379a9a;return _0x82609a[_0x2679d0('0xa28')](_0x2679d0('0x2762'),{'fields':_0x2679d0('0x36d'),'userProfileId':_0x41c4c9[_0x2679d0('0x2428')]()[_0x2679d0('0x781')],'sectionId':0x3eb});}]},'authenticate':!![],'permissionId':0x3eb,'bodyClass':'tools'})['state']('app.tools.intervals',{'url':'/intervals','views':{'content@app':{'templateUrl':_0x55a483,'controller':_0x379a9a('0xdb1')}},'resolve':{'intervals':[_0x379a9a('0x218e'),'Auth',function(_0x327147,_0xa31027){const _0x1805cf=_0x379a9a;return _0xa31027[_0x1805cf('0x4ee')](_0x1805cf('0xf45'))?_0x327147[_0x1805cf('0xa28')](_0x1805cf('0x18f3'),{'fields':_0x1805cf('0x219a'),'sort':_0x1805cf('0x1c74'),'IntervalId':_0x1805cf('0xb5f'),'limit':0xa,'offset':0x0}):_0x327147[_0x1805cf('0xa28')]('userProfile@getResources',{'id':_0xa31027[_0x1805cf('0x2428')]()['userProfileId'],'section':_0x1805cf('0x233e'),'fields':'createdAt,updatedAt,id,name,description','sort':_0x1805cf('0x1c74'),'IntervalId':_0x1805cf('0xb5f'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x379a9a('0x218e'),_0x379a9a('0x1150'),function(_0x1a2066,_0x22fd3f){const _0x8fee76=_0x379a9a;return _0x22fd3f['hasRole']('admin')?null:_0x1a2066[_0x8fee76('0xa28')](_0x8fee76('0x428'),{'fields':_0x8fee76('0xd30'),'id':_0x22fd3f[_0x8fee76('0x2428')]()[_0x8fee76('0x781')]});}],'userProfileSection':[_0x379a9a('0x218e'),_0x379a9a('0x1150'),function(_0x6bfcf3,_0x4a51a5){const _0x701d96=_0x379a9a;return _0x4a51a5[_0x701d96('0x4ee')](_0x701d96('0xf45'))?null:_0x6bfcf3[_0x701d96('0xa28')]('userProfileSection@get',{'fields':_0x701d96('0x36d'),'userProfileId':_0x4a51a5[_0x701d96('0x2428')]()['userProfileId'],'sectionId':0x3ec});}]},'authenticate':!![],'permissionId':0x3ec,'bodyClass':'tools'})[_0x379a9a('0x2124')](_0x379a9a('0x325'),{'url':_0x379a9a('0x142b'),'params':{'interval':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x5b196b,'controller':_0x379a9a('0x201a')}},'resolve':{'interval':[_0x379a9a('0x218e'),_0x379a9a('0x1573'),function(_0x13b219,_0x617b41){const _0xfbc269=_0x379a9a;return _0x13b219['resolve'](_0xfbc269('0x18f3'),{'fields':_0xfbc269('0x219a'),'id':_0x617b41['id']});}],'userProfileSection':[_0x379a9a('0x218e'),_0x379a9a('0x1150'),function(_0x5e51a1,_0xd16070){const _0x1547af=_0x379a9a;return _0x5e51a1[_0x1547af('0xa28')](_0x1547af('0x2762'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0xd16070[_0x1547af('0x2428')]()[_0x1547af('0x781')],'sectionId':0x3ec});}]},'authenticate':!![],'permissionId':0x3ec,'bodyClass':_0x379a9a('0x12')})[_0x379a9a('0x2124')](_0x379a9a('0x267c'),{'url':_0x379a9a('0x1870'),'views':{'content@app':{'templateUrl':_0x39a22d,'controller':_0x379a9a('0x17d0')}},'resolve':{'pauses':[_0x379a9a('0x218e'),_0x379a9a('0x1150'),function(_0x2d920d,_0x240af3){const _0x1cc669=_0x379a9a;return _0x240af3[_0x1cc669('0x4ee')](_0x1cc669('0xf45'))?_0x2d920d[_0x1cc669('0xa28')](_0x1cc669('0x2178'),{'fields':_0x1cc669('0x219a'),'sort':_0x1cc669('0x1c74'),'limit':0xa,'offset':0x0}):_0x2d920d['resolve'](_0x1cc669('0xb0d'),{'id':_0x240af3[_0x1cc669('0x2428')]()[_0x1cc669('0x781')],'section':_0x1cc669('0x1566'),'fields':_0x1cc669('0x219a'),'sort':_0x1cc669('0x1c74'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x379a9a('0x218e'),_0x379a9a('0x1150'),function(_0x43f01c,_0x3463d0){const _0x463ebc=_0x379a9a;return _0x3463d0[_0x463ebc('0x4ee')](_0x463ebc('0xf45'))?null:_0x43f01c['resolve'](_0x463ebc('0x428'),{'fields':_0x463ebc('0xd30'),'id':_0x3463d0[_0x463ebc('0x2428')]()[_0x463ebc('0x781')]});}],'userProfileSection':[_0x379a9a('0x218e'),_0x379a9a('0x1150'),function(_0x220e3b,_0x33503a){const _0x396290=_0x379a9a;return _0x33503a[_0x396290('0x4ee')]('admin')?null:_0x220e3b[_0x396290('0xa28')](_0x396290('0x2762'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x33503a[_0x396290('0x2428')]()[_0x396290('0x781')],'sectionId':0x3ed});}]},'authenticate':!![],'permissionId':0x3ed,'bodyClass':_0x379a9a('0x12')})[_0x379a9a('0x2124')](_0x379a9a('0x849'),{'url':_0x379a9a('0x1889'),'views':{'content@app':{'templateUrl':_0x252aeb,'controller':_0x379a9a('0x109')}},'resolve':{'schedules':[_0x379a9a('0x218e'),_0x379a9a('0x1150'),function(_0x421aa8,_0x47fd3e){const _0x4e2993=_0x379a9a;return _0x47fd3e['hasRole'](_0x4e2993('0xf45'))?_0x421aa8['resolve']('schedule@get',{'fields':_0x4e2993('0xa56'),'sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x421aa8['resolve']('userProfile@getResources',{'id':_0x47fd3e['getCurrentUser']()['userProfileId'],'section':_0x4e2993('0x85d'),'fields':_0x4e2993('0xa56'),'sort':_0x4e2993('0x1c74'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x379a9a('0x218e'),_0x379a9a('0x1150'),function(_0x3ecc63,_0x42f2f7){const _0x4289ec=_0x379a9a;return _0x42f2f7['hasRole'](_0x4289ec('0xf45'))?null:_0x3ecc63['resolve'](_0x4289ec('0x428'),{'fields':_0x4289ec('0xd30'),'id':_0x42f2f7['getCurrentUser']()[_0x4289ec('0x781')]});}],'userProfileSection':[_0x379a9a('0x218e'),_0x379a9a('0x1150'),function(_0x4b5627,_0x45c85a){const _0x5eb86a=_0x379a9a;return _0x45c85a[_0x5eb86a('0x4ee')](_0x5eb86a('0xf45'))?null:_0x4b5627['resolve'](_0x5eb86a('0x2762'),{'fields':_0x5eb86a('0x36d'),'userProfileId':_0x45c85a['getCurrentUser']()[_0x5eb86a('0x781')],'sectionId':0x3ee});}]},'authenticate':!![],'permissionId':0x3ee,'bodyClass':_0x379a9a('0x12')})[_0x379a9a('0x2124')](_0x379a9a('0x115'),{'url':_0x379a9a('0x10e1'),'views':{'content@app':{'templateUrl':_0x25d0b7,'controller':_0x379a9a('0x766')}},'resolve':{'sounds':['apiResolver','Auth',function(_0x508aa4,_0x3f7b1a){const _0x2c32bc=_0x379a9a;return _0x3f7b1a[_0x2c32bc('0x4ee')](_0x2c32bc('0xf45'))?_0x508aa4[_0x2c32bc('0xa28')](_0x2c32bc('0x2163'),{'fields':_0x2c32bc('0x1920'),'sort':_0x2c32bc('0x1c74'),'limit':0xa,'offset':0x0}):_0x508aa4[_0x2c32bc('0xa28')](_0x2c32bc('0xb0d'),{'id':_0x3f7b1a['getCurrentUser']()['userProfileId'],'section':'Sounds','fields':'createdAt,updatedAt,id,save_name,converted_format,name,audio,description','sort':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':[_0x379a9a('0x218e'),_0x379a9a('0x1150'),function(_0x50c58e,_0x23a690){const _0x51c08f=_0x379a9a;return _0x23a690[_0x51c08f('0x4ee')](_0x51c08f('0xf45'))?null:_0x50c58e[_0x51c08f('0xa28')]('userProfile@get',{'fields':'id,name,crudPermissions','id':_0x23a690['getCurrentUser']()['userProfileId']});}],'userProfileSection':[_0x379a9a('0x218e'),'Auth',function(_0x1b0fa1,_0x48cfc9){const _0x1adf46=_0x379a9a;return _0x48cfc9[_0x1adf46('0x4ee')]('admin')?null:_0x1b0fa1[_0x1adf46('0xa28')](_0x1adf46('0x2762'),{'fields':_0x1adf46('0x36d'),'userProfileId':_0x48cfc9[_0x1adf46('0x2428')]()['userProfileId'],'sectionId':0x3ef});}]},'authenticate':!![],'permissionId':0x3ef,'bodyClass':_0x379a9a('0x12')})[_0x379a9a('0x2124')]('app.tools.tags',{'url':_0x379a9a('0xf5a'),'views':{'content@app':{'templateUrl':_0x5652dd,'controller':_0x379a9a('0x19da')}},'resolve':{'tags':[_0x379a9a('0x218e'),'Auth',function(_0x1e06aa,_0x3452c0){const _0x4390b3=_0x379a9a;return _0x3452c0[_0x4390b3('0x4ee')](_0x4390b3('0xf45'))?_0x1e06aa['resolve'](_0x4390b3('0x11c1'),{'fields':_0x4390b3('0x1844'),'sort':_0x4390b3('0x1c74'),'limit':0xa,'offset':0x0}):_0x1e06aa[_0x4390b3('0xa28')](_0x4390b3('0xb0d'),{'id':_0x3452c0[_0x4390b3('0x2428')]()[_0x4390b3('0x781')],'section':_0x4390b3('0x806'),'fields':'createdAt,updatedAt,id,name,description,color','sort':_0x4390b3('0x1c74'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x379a9a('0x218e'),_0x379a9a('0x1150'),function(_0x808b1d,_0x445184){const _0x5472c9=_0x379a9a;return _0x445184[_0x5472c9('0x4ee')]('admin')?null:_0x808b1d[_0x5472c9('0xa28')](_0x5472c9('0x428'),{'fields':_0x5472c9('0xd30'),'id':_0x445184['getCurrentUser']()[_0x5472c9('0x781')]});}],'userProfileSection':[_0x379a9a('0x218e'),_0x379a9a('0x1150'),function(_0x2709ad,_0x13d2ca){const _0x59cd19=_0x379a9a;return _0x13d2ca[_0x59cd19('0x4ee')](_0x59cd19('0xf45'))?null:_0x2709ad['resolve']('userProfileSection@get',{'fields':_0x59cd19('0x36d'),'userProfileId':_0x13d2ca['getCurrentUser']()[_0x59cd19('0x781')],'sectionId':0x3f0});}]},'authenticate':!![],'permissionId':0x3f0,'bodyClass':_0x379a9a('0x12')})[_0x379a9a('0x2124')](_0x379a9a('0x1f3b'),{'url':_0x379a9a('0x21a3'),'views':{'content@app':{'templateUrl':_0x221337,'controller':_0x379a9a('0x28b')}},'resolve':{'templates':['apiResolver',_0x379a9a('0x1150'),function(_0x432898,_0x19a257){const _0x465713=_0x379a9a;return _0x19a257[_0x465713('0x4ee')](_0x465713('0xf45'))?_0x432898[_0x465713('0xa28')](_0x465713('0x1da3'),{'fields':_0x465713('0x1208'),'sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x432898[_0x465713('0xa28')](_0x465713('0xb0d'),{'id':_0x19a257['getCurrentUser']()['userProfileId'],'section':_0x465713('0x61d'),'fields':_0x465713('0x1208'),'sort':_0x465713('0x1c74'),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x379a9a('0x1150'),function(_0x5de2f8,_0x38bc2b){const _0x1a37d0=_0x379a9a;return _0x38bc2b[_0x1a37d0('0x4ee')]('admin')?null:_0x5de2f8[_0x1a37d0('0xa28')](_0x1a37d0('0x428'),{'fields':_0x1a37d0('0xd30'),'id':_0x38bc2b[_0x1a37d0('0x2428')]()[_0x1a37d0('0x781')]});}],'userProfileSection':[_0x379a9a('0x218e'),_0x379a9a('0x1150'),function(_0x350936,_0x312163){const _0x3a6700=_0x379a9a;return _0x312163[_0x3a6700('0x4ee')](_0x3a6700('0xf45'))?null:_0x350936['resolve']('userProfileSection@get',{'fields':_0x3a6700('0x36d'),'userProfileId':_0x312163[_0x3a6700('0x2428')]()[_0x3a6700('0x781')],'sectionId':0x3f1});}]},'authenticate':!![],'permissionId':0x3f1,'bodyClass':_0x379a9a('0x12')})[_0x379a9a('0x2124')]('app.tools.trunks',{'url':_0x379a9a('0x47a'),'views':{'content@app':{'templateUrl':_0x1ddff0,'controller':_0x379a9a('0xd65')}},'resolve':{'trunks':[_0x379a9a('0x218e'),'Auth',function(_0xb2ba08,_0x56247f){const _0x290a5e=_0x379a9a;return _0x56247f['hasRole'](_0x290a5e('0xf45'))?_0xb2ba08['resolve'](_0x290a5e('0x23cd'),{'fields':_0x290a5e('0x23ac'),'sort':_0x290a5e('0x1c74'),'limit':0xa,'offset':0x0}):_0xb2ba08['resolve']('userProfile@getResources',{'id':_0x56247f[_0x290a5e('0x2428')]()[_0x290a5e('0x781')],'section':'Trunks','fields':_0x290a5e('0x23ac'),'sort':_0x290a5e('0x1c74'),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x379a9a('0x1150'),function(_0x13beee,_0x599067){const _0x567353=_0x379a9a;return _0x599067[_0x567353('0x4ee')](_0x567353('0xf45'))?null:_0x13beee[_0x567353('0xa28')](_0x567353('0x428'),{'fields':'id,name,crudPermissions','id':_0x599067[_0x567353('0x2428')]()['userProfileId']});}],'userProfileSection':[_0x379a9a('0x218e'),_0x379a9a('0x1150'),function(_0x26fb73,_0xdac1ef){const _0x596155=_0x379a9a;return _0xdac1ef['hasRole'](_0x596155('0xf45'))?null:_0x26fb73['resolve']('userProfileSection@get',{'fields':_0x596155('0x36d'),'userProfileId':_0xdac1ef[_0x596155('0x2428')]()[_0x596155('0x781')],'sectionId':0x3f3});}]},'authenticate':!![],'permissionId':0x3f3,'bodyClass':_0x379a9a('0x12')})['state'](_0x379a9a('0x2873'),{'url':_0x379a9a('0x142b'),'params':{'trunk':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x13412d,'controller':'TrunkController\x20as\x20vm'}},'resolve':{'trunk':['apiResolver','$stateParams',function(_0x117438,_0x33dd47){const _0x229d68=_0x379a9a;return _0x117438['resolve']('trunk@get',{'fields':_0x229d68('0x23ac'),'id':_0x33dd47['id']});}],'userProfileSection':['apiResolver','Auth',function(_0x4615a5,_0x407dba){const _0x9ebf04=_0x379a9a;return _0x4615a5['resolve'](_0x9ebf04('0x2762'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x407dba[_0x9ebf04('0x2428')]()['userProfileId'],'sectionId':0x3f3});}]},'authenticate':!![],'permissionId':0x3f3,'bodyClass':_0x379a9a('0x12')})['state'](_0x379a9a('0xa1c'),{'url':_0x379a9a('0x885'),'views':{'content@app':{'templateUrl':_0x99c124,'controller':_0x379a9a('0x24c1')}},'resolve':{'variables':[_0x379a9a('0x218e'),_0x379a9a('0x1150'),function(_0x3bb871,_0x14aae0){const _0x4ee78f=_0x379a9a;return _0x14aae0[_0x4ee78f('0x4ee')]('admin')?_0x3bb871['resolve']('variable@get',{'fields':_0x4ee78f('0x219a'),'sort':_0x4ee78f('0x1c74'),'limit':0xa,'offset':0x0}):_0x3bb871[_0x4ee78f('0xa28')](_0x4ee78f('0xb0d'),{'id':_0x14aae0[_0x4ee78f('0x2428')]()[_0x4ee78f('0x781')],'section':_0x4ee78f('0xa83'),'fields':_0x4ee78f('0x219a'),'sort':_0x4ee78f('0x1c74'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x379a9a('0x218e'),_0x379a9a('0x1150'),function(_0xf35649,_0x1d95cc){const _0xa4ebdf=_0x379a9a;return _0x1d95cc[_0xa4ebdf('0x4ee')](_0xa4ebdf('0xf45'))?null:_0xf35649[_0xa4ebdf('0xa28')]('userProfile@get',{'fields':_0xa4ebdf('0xd30'),'id':_0x1d95cc[_0xa4ebdf('0x2428')]()['userProfileId']});}],'userProfileSection':[_0x379a9a('0x218e'),'Auth',function(_0x45f34c,_0x48c5ae){const _0x11bcc1=_0x379a9a;return _0x48c5ae[_0x11bcc1('0x4ee')](_0x11bcc1('0xf45'))?null:_0x45f34c[_0x11bcc1('0xa28')](_0x11bcc1('0x2762'),{'fields':_0x11bcc1('0x36d'),'userProfileId':_0x48c5ae[_0x11bcc1('0x2428')]()[_0x11bcc1('0x781')],'sectionId':0x3f4});}]},'authenticate':!![],'permissionId':0x3f4,'bodyClass':_0x379a9a('0x12')}),_0x3d66cf[_0x379a9a('0x471')](_0x379a9a('0xed6'));}angular[_0x21d0f5('0x2768')](_0x21d0f5('0x5d3'),[_0x21d0f5('0x22d5'),_0x21d0f5('0x1fb3'),'md.data.table',_0x21d0f5('0x2414'),_0x21d0f5('0xd61'),_0x21d0f5('0x2096'),_0x21d0f5('0x24a2'),_0x21d0f5('0x446'),_0x21d0f5('0x113d'),'mdPickers',_0x21d0f5('0x29b'),_0x21d0f5('0xc46'),_0x21d0f5('0x950'),_0x21d0f5('0xf49'),_0x21d0f5('0x31e'),_0x21d0f5('0xed9'),_0x21d0f5('0x2625'),_0x21d0f5('0x1622'),_0x21d0f5('0x1584'),_0x21d0f5('0xf7f'),_0x21d0f5('0xef6'),_0x21d0f5('0x1bca')])[_0x21d0f5('0x53a')](_0x324318)[_0x21d0f5('0x23eb')](_0x21d0f5('0x1fd6'),_0x1ecf8f)[_0x21d0f5('0x23eb')](_0x21d0f5('0xf83'),_0x3d920f)[_0x21d0f5('0x23eb')](_0x21d0f5('0x1b37'),_0x184f30)[_0x21d0f5('0x23eb')]('CustomDashboardsController',_0x1e0381)['controller'](_0x21d0f5('0x2f6'),_0x19bc73)[_0x21d0f5('0x23eb')](_0x21d0f5('0x1485'),_0x50154e)[_0x21d0f5('0x23eb')](_0x21d0f5('0x2d1'),_0x438e42)[_0x21d0f5('0x23eb')](_0x21d0f5('0xd06'),_0x30ec99)[_0x21d0f5('0x23eb')](_0x21d0f5('0x8bf'),_0x3a8e99)[_0x21d0f5('0x23eb')](_0x21d0f5('0x3e3'),_0x423d39)[_0x21d0f5('0x23eb')](_0x21d0f5('0xaca'),_0x5b83fc)[_0x21d0f5('0x23eb')](_0x21d0f5('0xa60'),_0x31c498)['controller'](_0x21d0f5('0xdee'),_0x319b49)[_0x21d0f5('0x23eb')](_0x21d0f5('0x1c3f'),_0xe444c7)['controller'](_0x21d0f5('0x504'),_0x4c1f65)[_0x21d0f5('0x23eb')](_0x21d0f5('0xd50'),_0x4921ac)[_0x21d0f5('0x23eb')](_0x21d0f5('0x1e37'),_0x2affe6)[_0x21d0f5('0x23eb')](_0x21d0f5('0x2152'),_0x6e811f)[_0x21d0f5('0x23eb')](_0x21d0f5('0xf3e'),_0x35eef9)[_0x21d0f5('0x23eb')]('UploadSoundDialogController',_0x129e96)['controller']('CreateOrEditTagDialogController',_0xbbec34)[_0x21d0f5('0x23eb')](_0x21d0f5('0x1c63'),_0xe41286)['controller']('CreateOrEditTemplateDialogController',_0x4c86f6)[_0x21d0f5('0x23eb')](_0x21d0f5('0x2764'),_0x128830)['controller'](_0x21d0f5('0x19db'),_0x362cd3)[_0x21d0f5('0x23eb')](_0x21d0f5('0x220e'),_0x4b32f2)[_0x21d0f5('0x23eb')]('TrunkController',_0x238064)[_0x21d0f5('0x23eb')]('TrunksController',_0x2fdaee)[_0x21d0f5('0x23eb')](_0x21d0f5('0x23a6'),_0x1bf3f2)[_0x21d0f5('0x23eb')](_0x21d0f5('0x167a'),_0xf417d9);const _0x2edaa2=_0x351988['p']+_0x21d0f5('0xa21'),_0x5d1303=_0x351988['p']+_0x21d0f5('0x617');_0x2c8850['$inject']=['$mdDialog',_0x21d0f5('0x2143'),_0x21d0f5('0xcbc'),'$q',_0x21d0f5('0x1150'),_0x21d0f5('0x142d'),_0x21d0f5('0xa62'),_0x21d0f5('0xef0'),_0x21d0f5('0x12a5'),'openFromEditor','crudPermissions'];function _0x2c8850(_0xb7bc4d,_0x4992f4,_0x1a577e,_0x4a1658,_0xfd2024,_0x2847b3,_0x23b6c8,_0xe13a13,_0x1d3d24,_0xd1e40,_0x317358){const _0x175960=_0x21d0f5,_0x21761e=this;_0x21761e['errors']=[],_0x21761e[_0x175960('0x134b')]='CALLYSQUARE.EDIT_PROJECT',_0x21761e['crudPermissions']=_0x317358,_0x21761e[_0x175960('0xef0')]=angular[_0x175960('0x6fb')](_0xe13a13),_0x21761e[_0x175960('0x13d5')]=!![],_0x21761e[_0x175960('0xa62')]=_0x23b6c8,_0x21761e['newProject']=![],_0x21761e[_0x175960('0x221e')]=_0xd1e40;!_0x21761e[_0x175960('0xef0')]&&(_0x21761e[_0x175960('0xef0')]={'name':'','description':''},_0x21761e['title']='CALLYSQUARE.NEW_PROJECT',_0x21761e['newProject']=!![]);_0x21761e[_0x175960('0x2842')]=_0x4e35e7,_0x21761e[_0x175960('0x245a')]=_0x23c97b,_0x21761e['deleteProject']=_0x1c6d06,_0x21761e['closeDialog']=_0x192f2b;function _0x4e35e7(){const _0x4f9ada=_0x175960;_0x21761e['errors']=[],_0x1d3d24[_0x4f9ada('0x1671')][_0x4f9ada('0x259')](_0x21761e[_0x4f9ada('0xef0')])[_0x4f9ada('0x1549')][_0x4f9ada('0x11bf')](function(_0x1cadcd){const _0xa3f5ed=_0x4f9ada;return _0x1d3d24[_0xa3f5ed('0x21d9')][_0xa3f5ed('0x14d9')]({'id':_0xfd2024[_0xa3f5ed('0x2428')]()['id'],'ids':[_0x1cadcd['id']]})[_0xa3f5ed('0x1549')],_0x1cadcd;})[_0x4f9ada('0x11bf')](function(_0x59bc0d){const _0x971a8=_0x4f9ada;_0x21761e[_0x971a8('0xa62')]['unshift'](_0x59bc0d),_0x2847b3[_0x971a8('0x2693')]({'title':_0x971a8('0x421'),'msg':_0x21761e[_0x971a8('0xef0')]['name']?_0x21761e[_0x971a8('0xef0')][_0x971a8('0x1909')]+'\x20has\x20been\x20created!':''}),_0x192f2b(_0x59bc0d),_0x21761e[_0x971a8('0x221e')]&&(_0x21761e[_0x971a8('0x13d5')]?_0x4992f4[_0x971a8('0x2570')](_0x971a8('0x9f8')+_0x59bc0d['id'],'_blank'):_0x1a577e['go'](_0x971a8('0x662'),{'id':_0x59bc0d['id']}));})['catch'](function(_0x184f59){const _0x40edf8=_0x4f9ada;if(_0x184f59[_0x40edf8('0x4e8')]&&_0x184f59[_0x40edf8('0x4e8')]['errors']&&_0x184f59['data'][_0x40edf8('0x120f')][_0x40edf8('0x1e22')]){_0x21761e[_0x40edf8('0x120f')]=_0x184f59[_0x40edf8('0x4e8')][_0x40edf8('0x120f')]||[{'message':_0x184f59[_0x40edf8('0xaab')](),'type':_0x40edf8('0x615')}];for(let _0x26f83f=0x0;_0x26f83f<_0x184f59[_0x40edf8('0x4e8')][_0x40edf8('0x120f')][_0x40edf8('0x1e22')];_0x26f83f++){_0x2847b3['error']({'title':_0x184f59['data'][_0x40edf8('0x120f')][_0x26f83f]['type'],'msg':_0x184f59[_0x40edf8('0x4e8')]['errors'][_0x26f83f]['message']});}}else _0x2847b3['error']({'title':_0x184f59[_0x40edf8('0xff9')]?_0x40edf8('0x574')+_0x184f59[_0x40edf8('0xff9')]+_0x40edf8('0xb0b')+_0x184f59['statusText']:_0x40edf8('0x615'),'msg':_0x184f59[_0x40edf8('0x4e8')]?JSON[_0x40edf8('0x3e')](_0x184f59[_0x40edf8('0x4e8')][_0x40edf8('0x1b86')]):_0x184f59['toString']()});});}function _0x23c97b(){const _0x115cc4=_0x175960;_0x21761e[_0x115cc4('0x120f')]=[],_0x1d3d24[_0x115cc4('0x1671')]['update']({'id':_0x21761e[_0x115cc4('0xef0')]['id']},_0x21761e[_0x115cc4('0xef0')])[_0x115cc4('0x1549')]['then'](function(_0x12ea0d){const _0x4415c7=_0x115cc4,_0x4eee10=_0x36f548()[_0x4415c7('0x1ad4')](_0x21761e['projects'],{'id':_0x12ea0d['id']});_0x4eee10&&_0x36f548()[_0x4415c7('0x47b')](_0x4eee10,_0x12ea0d),_0x2847b3[_0x4415c7('0x2693')]({'title':_0x4415c7('0x272c'),'msg':_0x21761e[_0x4415c7('0xef0')][_0x4415c7('0x1909')]?_0x21761e['project']['name']+'\x20has\x20been\x20saved!':''}),_0x192f2b(_0x12ea0d);})['catch'](function(_0x307db1){const _0x343db9=_0x115cc4;if(_0x307db1['data']&&_0x307db1[_0x343db9('0x4e8')][_0x343db9('0x120f')]&&_0x307db1['data'][_0x343db9('0x120f')][_0x343db9('0x1e22')]){_0x21761e[_0x343db9('0x120f')]=_0x307db1[_0x343db9('0x4e8')][_0x343db9('0x120f')]||[{'message':_0x307db1[_0x343db9('0xaab')](),'type':_0x343db9('0xf88')}];for(let _0x554345=0x0;_0x554345<_0x307db1['data'][_0x343db9('0x120f')][_0x343db9('0x1e22')];_0x554345++){_0x2847b3[_0x343db9('0x255')]({'title':_0x307db1[_0x343db9('0x4e8')][_0x343db9('0x120f')][_0x554345][_0x343db9('0x19fd')],'msg':_0x307db1['data'][_0x343db9('0x120f')][_0x554345][_0x343db9('0x1b86')]});}}else _0x2847b3['error']({'title':_0x307db1[_0x343db9('0xff9')]?_0x343db9('0x574')+_0x307db1[_0x343db9('0xff9')]+_0x343db9('0xb0b')+_0x307db1[_0x343db9('0x212f')]:'api.squareProject.update','msg':_0x307db1[_0x343db9('0x4e8')]?JSON[_0x343db9('0x3e')](_0x307db1[_0x343db9('0x4e8')][_0x343db9('0x1b86')]):_0x307db1['toString']()});});}function _0x1c6d06(){const _0x2a286a=_0x175960;_0x21761e[_0x2a286a('0x120f')]=[];const _0x3e7900=_0xb7bc4d['confirm']()[_0x2a286a('0x134b')](_0x2a286a('0x1fa9'))[_0x2a286a('0x252a')](_0x2a286a('0x2112'))[_0x2a286a('0xb2e')](_0x2a286a('0x2133'))['ok']('Delete')[_0x2a286a('0x26c9')]('Cancel')[_0x2a286a('0x1e25')](event);_0xb7bc4d['show'](_0x3e7900)[_0x2a286a('0x11bf')](function(){const _0x2dec43=_0x2a286a;_0x1d3d24['squareProject'][_0x2dec43('0x2088')]({'id':_0x21761e[_0x2dec43('0xef0')]['id']})[_0x2dec43('0x1549')][_0x2dec43('0x11bf')](function(){const _0x34561e=_0x2dec43;return _0x1d3d24[_0x34561e('0x1671')][_0x34561e('0x26b4')]({'id':_0x21761e[_0x34561e('0xef0')]['id']})[_0x34561e('0x1549')];})[_0x2dec43('0x11bf')](function(_0xdbe505){const _0x1f7421=_0x2dec43,_0x25df8c=[],_0x349a68=_0xdbe505[_0x1f7421('0x19b2')];for(let _0x261730=0x0;_0x261730<_0x349a68[_0x1f7421('0x1e22')];_0x261730++){_0x25df8c[_0x1f7421('0x105d')](_0x1d3d24['user']['removeSquareProjects']({'id':_0xfd2024['getCurrentUser']()['id'],'ids':[_0x21761e[_0x1f7421('0xef0')]['id']]})[_0x1f7421('0x1549')]);}return _0x4a1658[_0x1f7421('0x7c')](_0x25df8c);})['then'](function(){const _0x237e0c=_0x2dec43;_0x36f548()[_0x237e0c('0x14a5')](_0x21761e['projects'],{'id':_0x21761e[_0x237e0c('0xef0')]['id']}),_0x2847b3[_0x237e0c('0x2693')]({'title':_0x237e0c('0x150c'),'msg':_0x21761e[_0x237e0c('0xef0')][_0x237e0c('0x1909')]?_0x21761e['project'][_0x237e0c('0x1909')]+_0x237e0c('0x433'):''}),_0x192f2b(_0x21761e[_0x237e0c('0xef0')]);})[_0x2dec43('0x151d')](function(_0x316291){const _0x852b14=_0x2dec43;console['error'](_0x316291),_0x21761e['errors']=_0x316291[_0x852b14('0x4e8')][_0x852b14('0x120f')]||[{'message':_0x316291[_0x852b14('0xaab')](),'type':_0x852b14('0x1ce4')}];});},function(){});}function _0x192f2b(_0x5b88e0){const _0x274dc1=_0x175960;_0xb7bc4d[_0x274dc1('0x237e')](_0x5b88e0);}}const _0x2fb3a0=_0x2c8850;_0x5bcfbf[_0x21d0f5('0x1e9a')]=['$mdDialog',_0x21d0f5('0x12a5'),_0x21d0f5('0x142d'),_0x21d0f5('0x123e'),_0x21d0f5('0xadc'),_0x21d0f5('0x1576'),_0x21d0f5('0x54f'),_0x21d0f5('0x17f4'),_0x21d0f5('0x2711'),_0x21d0f5('0x17c0'),_0x21d0f5('0x1b24'),_0x21d0f5('0x1de3'),_0x21d0f5('0x209a'),_0x21d0f5('0x1700'),_0x21d0f5('0xf43'),'projects','contexts',_0x21d0f5('0xe82'),_0x21d0f5('0xf1a'),'templates',_0x21d0f5('0x2410'),_0x21d0f5('0x5dd'),_0x21d0f5('0x193e'),_0x21d0f5('0x793'),'awsPollyRegion',_0x21d0f5('0x27d9'),_0x21d0f5('0x12f2'),_0x21d0f5('0x276'),_0x21d0f5('0x6de'),_0x21d0f5('0x281d'),_0x21d0f5('0x1150'),'crudPermissions'];function _0x5bcfbf(_0x1338ce,_0x1b0e54,_0x3f7d57,_0x41e7fd,_0x469dfc,_0x11cf72,_0x4a2d78,_0x3335c5,_0x1a0805,_0x4d8e7d,_0x1f2706,_0x11221d,_0x2cecf8,_0x4c9990,_0x4d44fe,_0x30b23b,_0x1d65ab,_0x492541,_0x37d83f,_0x89b90c,_0x2b2ca3,_0x391763,_0x5c6a90,_0x56049d,_0x3ce7f3,_0x142c57,_0x1d7a4c,_0x4b6e9b,_0x174031,_0x3fade2,_0x11479f,_0x5beab9){const _0x449ee3=_0x21d0f5,_0x3bd1cc=this,_0x5627b6={'playback':[_0x449ee3('0x19be')],'answer':[_0x449ee3('0xfbe')],'menu':[_0x449ee3('0x19be'),_0x449ee3('0x9eb'),_0x449ee3('0x11eb'),_0x449ee3('0x41d')],'getdigits':[_0x449ee3('0x19be'),'variable_id',_0x449ee3('0x14e3'),_0x449ee3('0x33a'),_0x449ee3('0x41d')],'getsecretdigits':[_0x449ee3('0x19be'),_0x449ee3('0x27f9'),'mindigit',_0x449ee3('0x33a'),_0x449ee3('0x14b6'),_0x449ee3('0x41d')],'vswitch':[_0x449ee3('0x27f9')],'database':['odbc_id',_0x449ee3('0x1f2a')],'ext_dial':[_0x449ee3('0x1748'),_0x449ee3('0x1546'),'timeout'],'set':[_0x449ee3('0x27f9')],'math':[_0x449ee3('0x27f9')],'gotoc':[_0x449ee3('0x1c87'),'extension',_0x449ee3('0x2804')],'system':[_0x449ee3('0x1b9f')],'agi':[_0x449ee3('0x1b9f')],'gotoif':[_0x449ee3('0xccd')],'saydigits':[_0x449ee3('0x26a0')],'saynumber':['number'],'sayphonetic':[_0x449ee3('0x25ed')],'record':['file',_0x449ee3('0xfbe')],'goal':[_0x449ee3('0x1bf1')],'dial':[_0x449ee3('0x2664'),_0x449ee3('0xfbe')],'queue':['queue_id',_0x449ee3('0xfbe')],'callback':['list_id','name',_0x449ee3('0x1546'),_0x449ee3('0x18f1')],'gotoiftime':['interval_id'],'voicemail':[_0x449ee3('0x169b')],'subproject':['project_id'],'sendSMS':[_0x449ee3('0xd3f'),'to','sms_text'],'sendMail':[_0x449ee3('0x2272'),'to'],'sendFax':[_0x449ee3('0x2272'),'to',_0x449ee3('0x247f')],'google_cloud_tts':[_0x449ee3('0x1c8c'),_0x449ee3('0x818'),'text'],'tts':['text'],'ispeechtts':['text',_0x449ee3('0xa0c'),_0x449ee3('0x2870')],'ispeechasr':[_0x449ee3('0xa0c'),_0x449ee3('0xfbe')],'custom_app':['application'],'googleasr':[_0x449ee3('0xa0c'),_0x449ee3('0xfbe')],'awspolly':['aws_access_key_id',_0x449ee3('0x267'),'text',_0x449ee3('0x1a9b')],'lumenvoxtts':[_0x449ee3('0x25ed')],'sestektts':[_0x449ee3('0x25ed')],'lumenvoxasr':[_0x449ee3('0x1696')],'sestekasr':[_0x449ee3('0x1696')],'tildeasr':[_0x449ee3('0x1171'),'appsecret',_0x449ee3('0xc7f')],'login':['findBy'],'pause':[_0x449ee3('0x2534'),'pause_id'],'unpause':[_0x449ee3('0x2534')],'logout':[_0x449ee3('0x2534')],'dialogflow':[_0x449ee3('0xa0c'),_0x449ee3('0x25ed'),_0x449ee3('0xf65')],'awslex':[_0x449ee3('0x193d'),_0x449ee3('0x267'),_0x449ee3('0xf8c'),_0x449ee3('0x146c'),'text'],'sesteknda':['text',_0x449ee3('0x1249'),'username','password',_0x449ee3('0x6fd')],'restapi':[_0x449ee3('0x259e'),_0x449ee3('0x1ff0')],'mrcpsynth':[_0x449ee3('0x25ed')],'mrcprecog':[_0x449ee3('0x1696')],'dialogflowV2':[_0x449ee3('0xa94'),_0x449ee3('0x2874'),_0x449ee3('0x1351'),_0x449ee3('0x2148'),'text']},_0x4815f6={'queue':[_0x449ee3('0x19be')],'database':[_0x449ee3('0x27f9')],'pause':[_0x449ee3('0x42e')]},_0x2a00b5={'sendMail':['to','cc',_0x449ee3('0x277a')],'voicemail':[_0x449ee3('0x169b')]};_0x3bd1cc[_0x449ee3('0x17a0')]=_0x391763['tagName'],_0x3bd1cc['attributes']=_0x36f548()[_0x449ee3('0x2171')](_0x391763[_0x449ee3('0x1b9a')],function(_0x278e70){const _0x20fe9f=_0x449ee3;return{'name':_0x278e70['name'],'value':_0x278e70['value'],'defaultValue':_0x4815f6[_0x3bd1cc[_0x20fe9f('0x17a0')]]&&_0x36f548()[_0x20fe9f('0x55a')](_0x4815f6[_0x3bd1cc['cellName']],_0x278e70[_0x20fe9f('0x1909')]),'required':_0x5627b6[_0x3bd1cc[_0x20fe9f('0x17a0')]]&&_0x36f548()[_0x20fe9f('0x55a')](_0x5627b6[_0x3bd1cc[_0x20fe9f('0x17a0')]],_0x278e70['name']),'help':_0x2a00b5[_0x3bd1cc[_0x20fe9f('0x17a0')]]&&_0x36f548()[_0x20fe9f('0x55a')](_0x2a00b5[_0x3bd1cc[_0x20fe9f('0x17a0')]],_0x278e70[_0x20fe9f('0x1909')])};}),_0x3bd1cc[_0x449ee3('0x1643')]={'authMethod':[{'value':_0x449ee3('0x85'),'option':'NO\x20AUTH'},{'value':_0x449ee3('0xe4b'),'option':_0x449ee3('0x2891')}],'answer':[{'value':_0x449ee3('0xf6'),'option':_0x449ee3('0xaa2')},{'value':'no','option':'No'}],'ndagenerate_audio':[{'value':0x1,'option':_0x449ee3('0xaa2')},{'value':0x0,'option':'No'}],'ndaactivity_type':[{'value':_0x449ee3('0x1b86'),'option':'Message'},{'value':_0x449ee3('0x1ae9'),'option':'Conversation\x20Update'},{'value':'contactRelationUpdate','option':_0x449ee3('0x890')},{'value':_0x449ee3('0x176a'),'option':_0x449ee3('0x210f')}],'hiddendigitspos':[{'value':'first','option':_0x449ee3('0xeba')},{'value':'last','option':_0x449ee3('0x220b')}],'recordingFormat':[{'value':_0x449ee3('0x519'),'option':_0x449ee3('0xb5c')},{'value':'gsm','option':_0x449ee3('0xd46')}],'intkey':[{'value':'#','option':'#'},{'value':'*','option':'*'}],'beep':[{'value':'BEEP','option':_0x449ee3('0xaa2')},{'value':_0x449ee3('0x166c'),'option':'No'}],'model':_0x41e7fd,'ispeech_asr_language':_0x469dfc,'ispeech_tts_language':_0x4a2d78,'languageCode':_0x3335c5,'ssmlGender':[{'value':_0x449ee3('0x1037'),'option':_0x449ee3('0x1d0e')},{'value':_0x449ee3('0x129e'),'option':_0x449ee3('0x1c1c')}],'google_tts_language':_0x1a0805,'google_asr_language':_0x11cf72,'google_cloud_tts_text_type':[{'value':_0x449ee3('0x25ed'),'option':_0x449ee3('0x1823')},{'value':_0x449ee3('0x10a5'),'option':_0x449ee3('0x16af')}],'aws_polly_region':_0x3ce7f3,'aws_polly_voice':_0x56049d,'aws_text_type':[{'value':_0x449ee3('0x25ed'),'option':_0x449ee3('0x1823')},{'value':_0x449ee3('0x10a5'),'option':_0x449ee3('0x16af')}],'callback_priority':[{'option':_0x449ee3('0x2f9'),'value':0x4},{'option':_0x449ee3('0x947'),'value':0x3},{'option':'Medium','value':0x2},{'option':'Low','value':0x1},{'option':_0x449ee3('0x1f9b'),'value':0x0}],'findBy':[{'value':'internal','option':'Internal'},{'value':_0x449ee3('0x1546'),'option':'Phone'},{'value':'mobile','option':'Mobile'}],'dialogflow_language':_0x4b6e9b,'dialogflowV2_language':_0x174031,'aws_lex_region':_0x3fade2,'method':[{'value':_0x449ee3('0x1e15'),'option':_0x449ee3('0x1e15')},{'value':'POST','option':_0x449ee3('0xdf9')},{'value':_0x449ee3('0x20ee'),'option':_0x449ee3('0x20ee')},{'value':_0x449ee3('0x33e'),'option':'DELETE'}]},_0x3bd1cc[_0x449ee3('0xb25')]=_0x5beab9,_0x3bd1cc[_0x449ee3('0x277c')]=_0x346446,_0x3bd1cc[_0x449ee3('0xc4e')]=_0xb89419,_0x3bd1cc['getMap']=_0x1c60d9;function _0x346446(){_0x11479f['hasRole']('admin')?_0x10023a():_0x2d122c();}function _0x1c60d9(_0x307768,_0x447a10,_0x12149b,_0x527ee4){const _0x92ca1b=_0x449ee3;return _0x36f548()[_0x92ca1b('0x2171')](_0x307768,function(_0x54d4b3){const _0x29b27a=_0x92ca1b;return{'value':_0x54d4b3[_0x447a10],'option':_0x54d4b3[_0x12149b],'group':_0x527ee4?_0x54d4b3[_0x527ee4]:undefined,'canSelect':typeof _0x54d4b3[_0x29b27a('0x254a')]!==_0x29b27a('0x13e9')?_0x54d4b3[_0x29b27a('0x254a')]:!![]};});}function _0x24fd68(_0x17daec,_0x246ceb,_0x9a0284,_0x47da7b){const _0x1f1e24=_0x449ee3,_0x3c8db0=_0x36f548()[_0x1f1e24('0xdb4')](_0x17daec,function(_0x4978d4){return _0x4978d4[_0x47da7b]===null;}),_0x1d8427=[];return _0x36f548()[_0x1f1e24('0x1f88')](_0x3c8db0,function(_0x293421){const _0x5772dd=_0x1f1e24;_0x1d8427[_0x5772dd('0x105d')]({'value':_0x293421[_0x246ceb],'option':_0x293421[_0x9a0284]});const _0x4223d5=_0x36f548()[_0x5772dd('0xdb4')](_0x17daec,function(_0x47fd64){return _0x47fd64[_0x47da7b]===_0x293421['id'];});_0x36f548()[_0x5772dd('0x1f88')](_0x4223d5,function(_0x3e92f2){const _0x314337=_0x5772dd;_0x1d8427[_0x314337('0x105d')]({'value':_0x3e92f2[_0x246ceb],'option':_0x314337('0xb0b')+_0x3e92f2[_0x9a0284]});});}),_0x1d8427;}function _0x10023a(){const _0x1e9c10=_0x449ee3,_0x55bc94={'sip_id':_0x1c60d9(_0x4d8e7d,'id',_0x1e9c10('0x27af'),_0x1e9c10('0x111d')),'trunk_name':_0x1c60d9(_0x1f2706,_0x1e9c10('0x1909'),'name'),'trunk_id':_0x1c60d9(_0x1f2706,'id','name'),'queue_id':_0x1c60d9(_0x11221d,'id',_0x1e9c10('0x1909')),'file_id':_0x1c60d9(_0x2cecf8,'id','name'),'variable_id':_0x1c60d9(_0x4c9990,'id',_0x1e9c10('0x1909')),'odbc_id':_0x1c60d9(_0x4d44fe,'id',_0x1e9c10('0x1909')),'project_id':_0x1c60d9(_0x30b23b,'id',_0x1e9c10('0x1909')),'context':_0x1c60d9(_0x1d65ab,'id',_0x1e9c10('0x1909')),'interval_id':_0x24fd68(_0x492541,'id',_0x1e9c10('0x1909'),_0x1e9c10('0x6b4')),'account_id':_0x1c60d9(_0x37d83f,'id',_0x1e9c10('0x1909')),'template_id':_0x1c60d9(_0x89b90c,'id','name'),'list_id':_0x1c60d9(_0x2b2ca3,'id',_0x1e9c10('0x1909')),'sms_account_id':_0x1c60d9(_0x142c57,'id',_0x1e9c10('0x1909')),'pause_id':_0x1c60d9(_0x1d7a4c,'id',_0x1e9c10('0x1909'))},_0x1c5af2=_0x36f548()[_0x1e9c10('0x47b')](_0x3bd1cc['values'],_0x55bc94);_0x3bd1cc[_0x1e9c10('0x1643')]=_0x1c5af2;}function _0x2d122c(){const _0x54fd41=_0x449ee3,_0x2b67ba=[_0x54fd41('0x2664'),_0x54fd41('0x1748'),_0x54fd41('0x24bc'),_0x54fd41('0xf00'),_0x54fd41('0x19be'),'variable_id','odbc_id',_0x54fd41('0x1c2d'),_0x54fd41('0x1c87'),_0x54fd41('0x21e0'),_0x54fd41('0x2272'),'template_id','list_id',_0x54fd41('0xd3f'),_0x54fd41('0x42e')];for(let _0xcdd2ff=0x0;_0xcdd2ff<_0x3bd1cc[_0x54fd41('0x1b9a')][_0x54fd41('0x1e22')];_0xcdd2ff++){if(_0x36f548()[_0x54fd41('0x55a')](_0x2b67ba,_0x3bd1cc[_0x54fd41('0x1b9a')][_0xcdd2ff][_0x54fd41('0x1909')]))switch(_0x3bd1cc[_0x54fd41('0x1b9a')][_0xcdd2ff]['name']){case _0x54fd41('0x2664'):_0x4ff305();break;case'trunk_name':_0x29ee5e();break;case'trunk_id':_0x423003();break;case _0x54fd41('0xf00'):_0x3ee4d3();break;case'file_id':_0x1bab7c();break;case _0x54fd41('0x27f9'):_0x258797();break;case _0x54fd41('0xe39'):_0x28581f();break;case _0x54fd41('0x1c2d'):_0x23f6c4();break;case _0x54fd41('0x1c87'):_0x352bae();break;case _0x54fd41('0x21e0'):_0x37ea28();break;case _0x54fd41('0x2272'):_0x5cc76c();break;case _0x54fd41('0x2b'):_0x2b6a36();break;case _0x54fd41('0x410'):_0x46a67d();break;case _0x54fd41('0xd3f'):_0x2c6307();break;case _0x54fd41('0x42e'):_0x46b645();break;}}}function _0x4ff305(){const _0x2a6078=_0x449ee3,_0x1d9e97=Number(_0x36f548()[_0x2a6078('0x1ad4')](_0x3bd1cc[_0x2a6078('0x1b9a')],{'name':'sip_id'})['value']),_0x52c06e=_0x36f548()['some'](_0x4d8e7d,{'id':_0x1d9e97});if(!_0x52c06e&&_0x1d9e97>0x0)return _0x1b0e54['user'][_0x2a6078('0xbaa')]({'id':_0x1d9e97,'fields':'id,fullname,role'})['$promise'][_0x2a6078('0x11bf')](function(_0x4f2d85){const _0x1e4f2c=_0x2a6078,_0x44c9d4=_0x4f2d85['toJSON']();_0x44c9d4['canSelect']=![],_0x4d8e7d['push'](_0x44c9d4),_0x3bd1cc[_0x1e4f2c('0x1643')]['sip_id']=_0x1c60d9(_0x4d8e7d,'id',_0x1e4f2c('0x27af'),_0x1e4f2c('0x111d'));})[_0x2a6078('0x151d')](function(_0x3635a0){const _0x5a7a7f=_0x2a6078;_0x3f7d57[_0x5a7a7f('0x255')]({'title':_0x3635a0['status']?_0x5a7a7f('0x574')+_0x3635a0['status']+_0x5a7a7f('0xb0b')+_0x3635a0['statusText']:_0x5a7a7f('0x11e9'),'msg':_0x3635a0[_0x5a7a7f('0x4e8')]?JSON['stringify'](_0x3635a0[_0x5a7a7f('0x4e8')][_0x5a7a7f('0x1b86')]):_0x3635a0[_0x5a7a7f('0xaab')]()});});else _0x3bd1cc[_0x2a6078('0x1643')][_0x2a6078('0x2664')]=_0x1c60d9(_0x4d8e7d,'id',_0x2a6078('0x27af'),_0x2a6078('0x111d'));}function _0x46a67d(){const _0x3fee8e=_0x449ee3,_0x2c0412=Number(_0x36f548()[_0x3fee8e('0x1ad4')](_0x3bd1cc[_0x3fee8e('0x1b9a')],{'name':_0x3fee8e('0x410')})['value']),_0x38b20b=_0x36f548()[_0x3fee8e('0x1cb3')](_0x2b2ca3,{'id':_0x2c0412});if(!_0x38b20b&&_0x2c0412>0x0)return _0x1b0e54[_0x3fee8e('0xbef')][_0x3fee8e('0xbaa')]({'id':_0x2c0412,'fields':_0x3fee8e('0x721')})[_0x3fee8e('0x1549')][_0x3fee8e('0x11bf')](function(_0x8a05cf){const _0x5d4dc4=_0x3fee8e,_0x27f570=_0x8a05cf['toJSON']();_0x27f570[_0x5d4dc4('0x254a')]=![],_0x2b2ca3[_0x5d4dc4('0x105d')](_0x27f570),_0x3bd1cc[_0x5d4dc4('0x1643')][_0x5d4dc4('0x410')]=_0x1c60d9(_0x2b2ca3,'id',_0x5d4dc4('0x1909'));})[_0x3fee8e('0x151d')](function(_0x57dfce){const _0x4b2207=_0x3fee8e;_0x3f7d57[_0x4b2207('0x255')]({'title':_0x57dfce[_0x4b2207('0xff9')]?_0x4b2207('0x574')+_0x57dfce[_0x4b2207('0xff9')]+_0x4b2207('0xb0b')+_0x57dfce['statusText']:'GET_LIST','msg':_0x57dfce['data']?JSON[_0x4b2207('0x3e')](_0x57dfce[_0x4b2207('0x4e8')][_0x4b2207('0x1b86')]):_0x57dfce[_0x4b2207('0xaab')]()});});else _0x3bd1cc[_0x3fee8e('0x1643')][_0x3fee8e('0x410')]=_0x1c60d9(_0x2b2ca3,'id',_0x3fee8e('0x1909'));}function _0x423003(){const _0x522eb5=_0x449ee3,_0x1561ba=Number(_0x36f548()[_0x522eb5('0x1ad4')](_0x3bd1cc[_0x522eb5('0x1b9a')],{'name':_0x522eb5('0x24bc')})[_0x522eb5('0x10cc')]),_0x2f5956=_0x36f548()[_0x522eb5('0x1cb3')](_0x1f2706,{'id':_0x1561ba});if(!_0x2f5956&&_0x1561ba>0x0)return _0x1b0e54[_0x522eb5('0x264e')]['get']({'id':_0x1561ba,'fields':_0x522eb5('0x721')})[_0x522eb5('0x1549')]['then'](function(_0x3c5835){const _0x114fce=_0x522eb5,_0x4c975c=_0x3c5835[_0x114fce('0x2866')]();_0x4c975c['canSelect']=![],_0x1f2706['push'](_0x4c975c),_0x3bd1cc[_0x114fce('0x1643')][_0x114fce('0x24bc')]=_0x1c60d9(_0x1f2706,'id',_0x114fce('0x1909'));})[_0x522eb5('0x151d')](function(_0x271401){const _0x527c7b=_0x522eb5;_0x3f7d57[_0x527c7b('0x255')]({'title':_0x271401[_0x527c7b('0xff9')]?_0x527c7b('0x574')+_0x271401[_0x527c7b('0xff9')]+_0x527c7b('0xb0b')+_0x271401[_0x527c7b('0x212f')]:_0x527c7b('0x1148'),'msg':_0x271401[_0x527c7b('0x4e8')]?JSON[_0x527c7b('0x3e')](_0x271401['data']['message']):_0x271401[_0x527c7b('0xaab')]()});});else _0x3bd1cc[_0x522eb5('0x1643')][_0x522eb5('0x24bc')]=_0x1c60d9(_0x1f2706,'id',_0x522eb5('0x1909'));}function _0x29ee5e(){const _0x1c9c22=_0x449ee3,_0x3c87b1=_0x36f548()[_0x1c9c22('0x1ad4')](_0x3bd1cc[_0x1c9c22('0x1b9a')],{'name':_0x1c9c22('0x1748')})[_0x1c9c22('0x10cc')],_0x4d3e5e=_0x36f548()[_0x1c9c22('0x1cb3')](_0x1f2706,{'name':_0x3c87b1});if(!_0x4d3e5e&&_0x3c87b1)return _0x1b0e54[_0x1c9c22('0x264e')][_0x1c9c22('0xbaa')]({'name':_0x3c87b1,'fields':_0x1c9c22('0x721')})[_0x1c9c22('0x1549')][_0x1c9c22('0x11bf')](function(_0x3a7b8d){const _0x14c4fa=_0x1c9c22;if(_0x3a7b8d[_0x14c4fa('0x27d2')]>0x0&&_0x3a7b8d[_0x14c4fa('0x19b2')]['length']>0x0){const _0x1d9e06=_0x3a7b8d[_0x14c4fa('0x19b2')][0x0];_0x1d9e06['canSelect']=![],_0x1f2706[_0x14c4fa('0x105d')](_0x1d9e06),_0x3bd1cc['values'][_0x14c4fa('0x1748')]=_0x1c60d9(_0x1f2706,_0x14c4fa('0x1909'),'name');}})[_0x1c9c22('0x151d')](function(_0x5c7634){const _0x39ff16=_0x1c9c22;_0x3f7d57[_0x39ff16('0x255')]({'title':_0x5c7634[_0x39ff16('0xff9')]?_0x39ff16('0x574')+_0x5c7634['status']+_0x39ff16('0xb0b')+_0x5c7634[_0x39ff16('0x212f')]:'GET_TRUNK','msg':_0x5c7634[_0x39ff16('0x4e8')]?JSON[_0x39ff16('0x3e')](_0x5c7634[_0x39ff16('0x4e8')]['message']):_0x5c7634[_0x39ff16('0xaab')]()});});else _0x3bd1cc['values'][_0x1c9c22('0x1748')]=_0x1c60d9(_0x1f2706,_0x1c9c22('0x1909'),_0x1c9c22('0x1909'));}function _0x3ee4d3(){const _0x577d72=_0x449ee3,_0x150742=Number(_0x36f548()[_0x577d72('0x1ad4')](_0x3bd1cc[_0x577d72('0x1b9a')],{'name':'queue_id'})['value']),_0x4f84f2=_0x36f548()[_0x577d72('0x1cb3')](_0x11221d,{'id':_0x150742});if(!_0x4f84f2&&_0x150742>0x0)return _0x1b0e54['voiceQueue'][_0x577d72('0xbaa')]({'id':_0x150742,'fields':_0x577d72('0x721')})[_0x577d72('0x1549')]['then'](function(_0x563b4e){const _0x4299ae=_0x577d72,_0x107969=_0x563b4e['toJSON']();_0x107969['canSelect']=![],_0x11221d['push'](_0x107969),_0x3bd1cc[_0x4299ae('0x1643')][_0x4299ae('0xf00')]=_0x1c60d9(_0x11221d,'id','name');})[_0x577d72('0x151d')](function(_0x3ef37f){const _0x30f61b=_0x577d72;_0x3f7d57[_0x30f61b('0x255')]({'title':_0x3ef37f['status']?_0x30f61b('0x574')+_0x3ef37f['status']+'\x20-\x20'+_0x3ef37f[_0x30f61b('0x212f')]:'GET_QUEUE','msg':_0x3ef37f[_0x30f61b('0x4e8')]?JSON['stringify'](_0x3ef37f['data'][_0x30f61b('0x1b86')]):_0x3ef37f[_0x30f61b('0xaab')]()});});else _0x3bd1cc[_0x577d72('0x1643')]['queue_id']=_0x1c60d9(_0x11221d,'id',_0x577d72('0x1909'));}function _0x1bab7c(){const _0x258e7c=_0x449ee3,_0xf20bef=Number(_0x36f548()[_0x258e7c('0x1ad4')](_0x3bd1cc[_0x258e7c('0x1b9a')],{'name':'file_id'})['value']),_0x57b1e8=_0x36f548()[_0x258e7c('0x1cb3')](_0x2cecf8,{'id':_0xf20bef});if(!_0x57b1e8&&_0xf20bef>0x0)return _0x1b0e54[_0x258e7c('0x1d6e')][_0x258e7c('0xbaa')]({'id':_0xf20bef,'fields':_0x258e7c('0x721')})['$promise'][_0x258e7c('0x11bf')](function(_0x34141f){const _0x19c862=_0x258e7c,_0x22d5c6=_0x34141f[_0x19c862('0x2866')]();_0x22d5c6['canSelect']=![],_0x2cecf8[_0x19c862('0x105d')](_0x22d5c6),_0x3bd1cc['values'][_0x19c862('0x19be')]=_0x1c60d9(_0x2cecf8,'id',_0x19c862('0x1909'));})[_0x258e7c('0x151d')](function(_0xddc00b){const _0xf2b5cd=_0x258e7c;_0x3f7d57[_0xf2b5cd('0x255')]({'title':_0xddc00b[_0xf2b5cd('0xff9')]?_0xf2b5cd('0x574')+_0xddc00b[_0xf2b5cd('0xff9')]+_0xf2b5cd('0xb0b')+_0xddc00b[_0xf2b5cd('0x212f')]:'GET_SOUND','msg':_0xddc00b[_0xf2b5cd('0x4e8')]?JSON[_0xf2b5cd('0x3e')](_0xddc00b[_0xf2b5cd('0x4e8')][_0xf2b5cd('0x1b86')]):_0xddc00b[_0xf2b5cd('0xaab')]()});});else _0x3bd1cc[_0x258e7c('0x1643')][_0x258e7c('0x19be')]=_0x1c60d9(_0x2cecf8,'id','name');}function _0x258797(){const _0x4ca538=_0x449ee3,_0x4a5bf3=Number(_0x36f548()[_0x4ca538('0x1ad4')](_0x3bd1cc[_0x4ca538('0x1b9a')],{'name':_0x4ca538('0x27f9')})[_0x4ca538('0x10cc')]),_0x548d6c=_0x36f548()['some'](_0x4c9990,{'id':_0x4a5bf3});if(!_0x548d6c&&_0x4a5bf3>0x0)return _0x1b0e54[_0x4ca538('0xb0')][_0x4ca538('0xbaa')]({'id':_0x4a5bf3,'fields':_0x4ca538('0x721')})[_0x4ca538('0x1549')]['then'](function(_0x1dd0d5){const _0x23cb6a=_0x4ca538,_0x4c354f=_0x1dd0d5[_0x23cb6a('0x2866')]();_0x4c354f[_0x23cb6a('0x254a')]=![],_0x4c9990[_0x23cb6a('0x105d')](_0x4c354f),_0x3bd1cc['values'][_0x23cb6a('0x27f9')]=_0x1c60d9(_0x4c9990,'id',_0x23cb6a('0x1909'));})['catch'](function(_0x5e6288){const _0x296461=_0x4ca538;_0x3f7d57['error']({'title':_0x5e6288[_0x296461('0xff9')]?'API:'+_0x5e6288[_0x296461('0xff9')]+_0x296461('0xb0b')+_0x5e6288[_0x296461('0x212f')]:_0x296461('0xd62'),'msg':_0x5e6288['data']?JSON[_0x296461('0x3e')](_0x5e6288[_0x296461('0x4e8')]['message']):_0x5e6288[_0x296461('0xaab')]()});});else _0x3bd1cc[_0x4ca538('0x1643')][_0x4ca538('0x27f9')]=_0x1c60d9(_0x4c9990,'id',_0x4ca538('0x1909'));}function _0x28581f(){const _0x8dc717=_0x449ee3,_0xe172e6=Number(_0x36f548()[_0x8dc717('0x1ad4')](_0x3bd1cc[_0x8dc717('0x1b9a')],{'name':_0x8dc717('0xe39')})['value']),_0x54bb7e=_0x36f548()[_0x8dc717('0x1cb3')](_0x4d44fe,{'id':_0xe172e6});if(!_0x54bb7e&&_0xe172e6>0x0)return _0x1b0e54[_0x8dc717('0x80d')][_0x8dc717('0xbaa')]({'id':_0xe172e6,'fields':_0x8dc717('0x721')})[_0x8dc717('0x1549')][_0x8dc717('0x11bf')](function(_0x1b6a89){const _0x1901c6=_0x8dc717,_0x76e3e9=_0x1b6a89[_0x1901c6('0x2866')]();_0x76e3e9[_0x1901c6('0x254a')]=![],_0x4d44fe[_0x1901c6('0x105d')](_0x76e3e9),_0x3bd1cc[_0x1901c6('0x1643')][_0x1901c6('0xe39')]=_0x1c60d9(_0x4d44fe,'id',_0x1901c6('0x1909'));})[_0x8dc717('0x151d')](function(_0x1b0d08){const _0x13e737=_0x8dc717;_0x3f7d57['error']({'title':_0x1b0d08[_0x13e737('0xff9')]?'API:'+_0x1b0d08['status']+_0x13e737('0xb0b')+_0x1b0d08[_0x13e737('0x212f')]:_0x13e737('0xec6'),'msg':_0x1b0d08[_0x13e737('0x4e8')]?JSON[_0x13e737('0x3e')](_0x1b0d08[_0x13e737('0x4e8')][_0x13e737('0x1b86')]):_0x1b0d08[_0x13e737('0xaab')]()});});else _0x3bd1cc[_0x8dc717('0x1643')][_0x8dc717('0xe39')]=_0x1c60d9(_0x4d44fe,'id',_0x8dc717('0x1909'));}function _0x23f6c4(){const _0x458179=_0x449ee3,_0x182409=Number(_0x36f548()[_0x458179('0x1ad4')](_0x3bd1cc[_0x458179('0x1b9a')],{'name':_0x458179('0x1c2d')})['value']),_0x4c3786=_0x36f548()[_0x458179('0x1cb3')](_0x30b23b,{'id':_0x182409});if(!_0x4c3786&&_0x182409>0x0)return _0x1b0e54[_0x458179('0x1671')][_0x458179('0xbaa')]({'id':_0x182409,'fields':_0x458179('0x721')})[_0x458179('0x1549')]['then'](function(_0x55d6ce){const _0x2af25e=_0x458179,_0x33ea19=_0x55d6ce[_0x2af25e('0x2866')]();_0x33ea19['canSelect']=![],_0x30b23b[_0x2af25e('0x105d')](_0x33ea19),_0x3bd1cc['values'][_0x2af25e('0x1c2d')]=_0x1c60d9(_0x30b23b,'id',_0x2af25e('0x1909'));})[_0x458179('0x151d')](function(_0x480e2a){const _0x247f97=_0x458179;_0x3f7d57['error']({'title':_0x480e2a[_0x247f97('0xff9')]?_0x247f97('0x574')+_0x480e2a['status']+'\x20-\x20'+_0x480e2a[_0x247f97('0x212f')]:_0x247f97('0x894'),'msg':_0x480e2a[_0x247f97('0x4e8')]?JSON[_0x247f97('0x3e')](_0x480e2a['data']['message']):_0x480e2a[_0x247f97('0xaab')]()});});else _0x3bd1cc[_0x458179('0x1643')][_0x458179('0x1c2d')]=_0x1c60d9(_0x30b23b,'id',_0x458179('0x1909'));}function _0x352bae(){const _0x1c9419=_0x449ee3,_0x111e0d=Number(_0x36f548()[_0x1c9419('0x1ad4')](_0x3bd1cc[_0x1c9419('0x1b9a')],{'name':_0x1c9419('0x1c87')})[_0x1c9419('0x10cc')]),_0x28cee1=_0x36f548()['some'](_0x1d65ab,{'id':_0x111e0d});if(!_0x28cee1&&_0x111e0d>0x0)return _0x1b0e54[_0x1c9419('0x1279')][_0x1c9419('0xbaa')]({'id':_0x111e0d,'fields':_0x1c9419('0x721')})[_0x1c9419('0x1549')][_0x1c9419('0x11bf')](function(_0x175843){const _0x4d661b=_0x1c9419,_0x2d18a6=_0x175843[_0x4d661b('0x2866')]();_0x2d18a6[_0x4d661b('0x254a')]=![],_0x1d65ab[_0x4d661b('0x105d')](_0x2d18a6),_0x3bd1cc['values']['context']=_0x1c60d9(_0x1d65ab,'id',_0x4d661b('0x1909'));})['catch'](function(_0x33b7e1){const _0xc5e84f=_0x1c9419;_0x3f7d57['error']({'title':_0x33b7e1[_0xc5e84f('0xff9')]?'API:'+_0x33b7e1['status']+_0xc5e84f('0xb0b')+_0x33b7e1[_0xc5e84f('0x212f')]:'GET_CONTEXT','msg':_0x33b7e1[_0xc5e84f('0x4e8')]?JSON[_0xc5e84f('0x3e')](_0x33b7e1['data'][_0xc5e84f('0x1b86')]):_0x33b7e1[_0xc5e84f('0xaab')]()});});else _0x3bd1cc['values'][_0x1c9419('0x1c87')]=_0x1c60d9(_0x1d65ab,'id','name');}function _0x37ea28(){const _0x512c28=_0x449ee3,_0x10f85a=Number(_0x36f548()['find'](_0x3bd1cc[_0x512c28('0x1b9a')],{'name':_0x512c28('0x21e0')})[_0x512c28('0x10cc')]),_0x77a7ed=_0x36f548()['some'](_0x492541,{'id':_0x10f85a});if(!_0x77a7ed&&_0x10f85a>0x0)return _0x1b0e54[_0x512c28('0x507')]['get']({'id':_0x10f85a,'fields':_0x512c28('0x1ab1')})[_0x512c28('0x1549')]['then'](function(_0x4daf15){const _0x420394=_0x512c28,_0x218aec=_0x4daf15[_0x420394('0x2866')]();_0x218aec['canSelect']=![],_0x492541[_0x420394('0x105d')](_0x218aec),_0x3bd1cc[_0x420394('0x1643')][_0x420394('0x21e0')]=_0x1c60d9(_0x492541,'id',_0x420394('0x1909'),'IntervalId');})[_0x512c28('0x151d')](function(_0x33dbdc){const _0x350fed=_0x512c28;_0x3f7d57[_0x350fed('0x255')]({'title':_0x33dbdc[_0x350fed('0xff9')]?_0x350fed('0x574')+_0x33dbdc[_0x350fed('0xff9')]+'\x20-\x20'+_0x33dbdc[_0x350fed('0x212f')]:_0x350fed('0xda'),'msg':_0x33dbdc['data']?JSON[_0x350fed('0x3e')](_0x33dbdc[_0x350fed('0x4e8')][_0x350fed('0x1b86')]):_0x33dbdc[_0x350fed('0xaab')]()});});else _0x3bd1cc[_0x512c28('0x1643')][_0x512c28('0x21e0')]=_0x1c60d9(_0x492541,'id','name',_0x512c28('0x6b4'));}function _0x5cc76c(){const _0x146c92=_0x449ee3,_0x314e1e=Number(_0x36f548()['find'](_0x3bd1cc[_0x146c92('0x1b9a')],{'name':_0x146c92('0x2272')})[_0x146c92('0x10cc')]),_0x241f19=_0x36f548()[_0x146c92('0x1cb3')](_0x37d83f,{'id':_0x314e1e});if(!_0x241f19&&_0x314e1e>0x0)return _0x1b0e54[_0x146c92('0x1d47')]['get']({'id':_0x314e1e,'fields':_0x146c92('0x721')})[_0x146c92('0x1549')][_0x146c92('0x11bf')](function(_0x3e644b){const _0x2bf30e=_0x146c92,_0x1a14b0=_0x3e644b[_0x2bf30e('0x2866')]();_0x1a14b0['canSelect']=![],_0x37d83f[_0x2bf30e('0x105d')](_0x1a14b0),_0x3bd1cc[_0x2bf30e('0x1643')]['account_id']=_0x1c60d9(_0x37d83f,'id',_0x2bf30e('0x1909'));})['catch'](function(_0x3f4c14){const _0xa63727=_0x146c92;_0x3f7d57[_0xa63727('0x255')]({'title':_0x3f4c14[_0xa63727('0xff9')]?_0xa63727('0x574')+_0x3f4c14[_0xa63727('0xff9')]+_0xa63727('0xb0b')+_0x3f4c14['statusText']:'GET_MAIL_ACCOUNT','msg':_0x3f4c14['data']?JSON[_0xa63727('0x3e')](_0x3f4c14[_0xa63727('0x4e8')]['message']):_0x3f4c14[_0xa63727('0xaab')]()});});else _0x3bd1cc[_0x146c92('0x1643')]['account_id']=_0x1c60d9(_0x37d83f,'id','name');}function _0x2c6307(){const _0x272aaf=_0x449ee3,_0x3f67a7=Number(_0x36f548()[_0x272aaf('0x1ad4')](_0x3bd1cc['attributes'],{'name':'sms_account_id'})[_0x272aaf('0x10cc')]),_0xfef789=_0x36f548()[_0x272aaf('0x1cb3')](_0x142c57,{'id':_0x3f67a7});if(!_0xfef789&&_0x3f67a7>0x0)return _0x1b0e54['smsAccount'][_0x272aaf('0xbaa')]({'id':_0x3f67a7,'fields':_0x272aaf('0x721')})[_0x272aaf('0x1549')][_0x272aaf('0x11bf')](function(_0x41ff2c){const _0x22b2d5=_0x272aaf,_0x4cc2d6=_0x41ff2c[_0x22b2d5('0x2866')]();_0x4cc2d6[_0x22b2d5('0x254a')]=![],_0x142c57['push'](_0x4cc2d6),_0x3bd1cc[_0x22b2d5('0x1643')][_0x22b2d5('0xd3f')]=_0x1c60d9(_0x142c57,'id',_0x22b2d5('0x1909'));})[_0x272aaf('0x151d')](function(_0x44e814){const _0x5d19c9=_0x272aaf;_0x3f7d57[_0x5d19c9('0x255')]({'title':_0x44e814[_0x5d19c9('0xff9')]?'API:'+_0x44e814[_0x5d19c9('0xff9')]+_0x5d19c9('0xb0b')+_0x44e814['statusText']:'GET_SMS_ACCOUNT','msg':_0x44e814[_0x5d19c9('0x4e8')]?JSON[_0x5d19c9('0x3e')](_0x44e814[_0x5d19c9('0x4e8')]['message']):_0x44e814[_0x5d19c9('0xaab')]()});});else _0x3bd1cc[_0x272aaf('0x1643')][_0x272aaf('0xd3f')]=_0x1c60d9(_0x142c57,'id','name');}function _0x2b6a36(){const _0x1859f5=_0x449ee3,_0x4814ad=Number(_0x36f548()[_0x1859f5('0x1ad4')](_0x3bd1cc['attributes'],{'name':_0x1859f5('0x2b')})[_0x1859f5('0x10cc')]),_0x1305cb=_0x36f548()[_0x1859f5('0x1cb3')](_0x89b90c,{'id':_0x4814ad});if(!_0x1305cb&&_0x4814ad>0x0)return _0x1b0e54[_0x1859f5('0x13b6')][_0x1859f5('0xbaa')]({'id':_0x4814ad,'fields':_0x1859f5('0x721')})[_0x1859f5('0x1549')]['then'](function(_0x5e2335){const _0x358e9c=_0x1859f5,_0x1ff648=_0x5e2335[_0x358e9c('0x2866')]();_0x1ff648[_0x358e9c('0x254a')]=![],_0x89b90c[_0x358e9c('0x105d')](_0x1ff648),_0x3bd1cc[_0x358e9c('0x1643')]['template_id']=_0x1c60d9(_0x89b90c,'id',_0x358e9c('0x1909'));})[_0x1859f5('0x151d')](function(_0x4d5e0c){const _0x5af604=_0x1859f5;_0x3f7d57[_0x5af604('0x255')]({'title':_0x4d5e0c[_0x5af604('0xff9')]?_0x5af604('0x574')+_0x4d5e0c[_0x5af604('0xff9')]+'\x20-\x20'+_0x4d5e0c[_0x5af604('0x212f')]:_0x5af604('0xb32'),'msg':_0x4d5e0c['data']?JSON[_0x5af604('0x3e')](_0x4d5e0c[_0x5af604('0x4e8')][_0x5af604('0x1b86')]):_0x4d5e0c[_0x5af604('0xaab')]()});});else _0x3bd1cc[_0x1859f5('0x1643')][_0x1859f5('0x2b')]=_0x1c60d9(_0x89b90c,'id','name');}function _0x46b645(){const _0x147c28=_0x449ee3,_0x2c6ca9=Number(_0x36f548()[_0x147c28('0x1ad4')](_0x3bd1cc[_0x147c28('0x1b9a')],{'name':'pause_id'})[_0x147c28('0x10cc')]),_0x36892b=_0x36f548()[_0x147c28('0x1cb3')](_0x1d7a4c,{'id':_0x2c6ca9});if(!_0x36892b&&_0x2c6ca9>0x0)return _0x1b0e54[_0x147c28('0x92a')][_0x147c28('0xbaa')]({'id':_0x2c6ca9,'fields':_0x147c28('0x721')})[_0x147c28('0x1549')][_0x147c28('0x11bf')](function(_0x4ed27f){const _0x2c6c76=_0x147c28,_0x14b09e=_0x4ed27f[_0x2c6c76('0x2866')]();_0x14b09e[_0x2c6c76('0x254a')]=![],_0x1d7a4c['push'](_0x14b09e),_0x3bd1cc[_0x2c6c76('0x1643')][_0x2c6c76('0x42e')]=_0x1c60d9(_0x1d7a4c,'id','name');})[_0x147c28('0x151d')](function(_0x1d6eee){const _0x43b876=_0x147c28;_0x3f7d57[_0x43b876('0x255')]({'title':_0x1d6eee[_0x43b876('0xff9')]?_0x43b876('0x574')+_0x1d6eee['status']+_0x43b876('0xb0b')+_0x1d6eee[_0x43b876('0x212f')]:_0x43b876('0x1204'),'msg':_0x1d6eee[_0x43b876('0x4e8')]?JSON[_0x43b876('0x3e')](_0x1d6eee[_0x43b876('0x4e8')][_0x43b876('0x1b86')]):_0x1d6eee[_0x43b876('0xaab')]()});});else _0x3bd1cc[_0x147c28('0x1643')][_0x147c28('0x42e')]=_0x1c60d9(_0x1d7a4c,'id',_0x147c28('0x1909'));}function _0xb89419(_0x41482b){const _0x2153e6=_0x449ee3;_0x41482b&&_0x5c6a90(_0x3bd1cc[_0x2153e6('0x1b9a')]),_0x1338ce['hide']();}}const _0x252e5b=_0x5bcfbf;function _0x11d5c0(){const _0x47eed0=_0x21d0f5;return{'require':_0x47eed0('0xe4d'),'link':function(_0x2ffc6a,_0x4379ce,_0x26e887,_0x1b1d40){const _0x22c54d=_0x47eed0;_0x1b1d40[_0x22c54d('0x178f')][_0x22c54d('0x105d')](function(_0x2ca081){return''+_0x2ca081;}),_0x1b1d40[_0x22c54d('0x1956')]['push'](function(_0xae919){return parseFloat(_0xae919);});}};}const _0x25bd4f=_0x11d5c0;function _0x1ff649(){const _0x1ee679=_0x21d0f5;return[{'value':'da','option':'Danish'},{'value':'en','option':_0x1ee679('0x1e7')},{'value':'de','option':_0x1ee679('0x1750')},{'value':'it','option':_0x1ee679('0x12cc')},{'value':'es','option':_0x1ee679('0x1f08')},{'value':'fr','option':_0x1ee679('0x352')},{'value':'id','option':_0x1ee679('0xea')},{'value':'ja','option':_0x1ee679('0x1b3d')},{'value':'ko','option':_0x1ee679('0x768')},{'value':'nl','option':_0x1ee679('0x18fa')},{'value':'no','option':_0x1ee679('0x210')},{'value':'pt','option':_0x1ee679('0x11e5')},{'value':'pt-br','option':_0x1ee679('0x20cb')},{'value':'ru','option':_0x1ee679('0x1995')},{'value':'sv','option':_0x1ee679('0x52e')},{'value':'th','option':_0x1ee679('0x17ed')},{'value':'uk','option':_0x1ee679('0x2199')},{'value':_0x1ee679('0x25fa'),'option':'Chinese\x20(Simplified)'},{'value':_0x1ee679('0x88b'),'option':_0x1ee679('0x1b2')},{'value':_0x1ee679('0x2cd'),'option':_0x1ee679('0x1f06')}];}function _0x3f60b0(){const _0x43a5ee=_0x21d0f5;return[{'value':'zh-HK','option':'Chinese\x20(Cantonese)'},{'value':_0x43a5ee('0x25fa'),'option':'Chinese\x20(Simplified)'},{'value':_0x43a5ee('0x2cd'),'option':'Chinese\x20(Traditional)'},{'value':'da','option':'Danish'},{'value':'nl','option':_0x43a5ee('0x18fa')},{'value':'en','option':_0x43a5ee('0x1e7')},{'value':_0x43a5ee('0x981'),'option':_0x43a5ee('0x2067')},{'value':'en-CA','option':_0x43a5ee('0x1eb5')},{'value':_0x43a5ee('0x127f'),'option':_0x43a5ee('0x15af')},{'value':_0x43a5ee('0x215'),'option':'English\x20(India)'},{'value':_0x43a5ee('0xa8a'),'option':'English\x20(US)'},{'value':'fr','option':_0x43a5ee('0x352')},{'value':_0x43a5ee('0x1423'),'option':_0x43a5ee('0x1404')},{'value':_0x43a5ee('0x141f'),'option':_0x43a5ee('0xc54')},{'value':'de','option':_0x43a5ee('0x1750')},{'value':'hi','option':_0x43a5ee('0x11db')},{'value':'id','option':_0x43a5ee('0xea')},{'value':'it','option':_0x43a5ee('0x12cc')},{'value':'ja','option':'Japanese'},{'value':'ko','option':_0x43a5ee('0x27cd')},{'value':'no','option':_0x43a5ee('0x210')},{'value':'pl','option':_0x43a5ee('0xab7')},{'value':'pt-BR','option':_0x43a5ee('0x1476')},{'value':'pt-PT','option':_0x43a5ee('0x1949')},{'value':'ru','option':_0x43a5ee('0x1995')},{'value':'es','option':_0x43a5ee('0x1f08')},{'value':'es-419','option':_0x43a5ee('0xc6c')},{'value':_0x43a5ee('0x17a9'),'option':_0x43a5ee('0x452')},{'value':'sw','option':'Swedish'},{'value':'th','option':_0x43a5ee('0x17ed')},{'value':'tr','option':_0x43a5ee('0x2122')},{'value':'uk','option':_0x43a5ee('0x2199')}];}function _0x4d2810(){const _0x53915c=_0x21d0f5;return[{'value':_0x53915c('0x1865'),'option':_0x53915c('0x2018')},{'value':_0x53915c('0x12d1'),'option':_0x53915c('0x872')},{'value':_0x53915c('0x27c4'),'option':'Danish\x20(Denmark)'},{'value':'de-DE','option':_0x53915c('0x183e')},{'value':_0x53915c('0x1536'),'option':_0x53915c('0x2153')},{'value':_0x53915c('0x981'),'option':_0x53915c('0x13ec')},{'value':_0x53915c('0x215'),'option':_0x53915c('0xc14')},{'value':'en-GB','option':_0x53915c('0x31')},{'value':_0x53915c('0xa8a'),'option':'English\x20(US)'},{'value':_0x53915c('0x20e5'),'option':'Finnish\x20(Finland)'},{'value':_0x53915c('0x2442'),'option':_0x53915c('0x102a')},{'value':'fr-CA','option':_0x53915c('0x1404')},{'value':'fr-FR','option':_0x53915c('0x1831')},{'value':'hi-IN','option':_0x53915c('0x1001')},{'value':_0x53915c('0x1bd3'),'option':_0x53915c('0x48b')},{'value':_0x53915c('0x1758'),'option':'Indonesian\x20(Indonesia)'},{'value':_0x53915c('0x1714'),'option':_0x53915c('0x1372')},{'value':_0x53915c('0x2757'),'option':_0x53915c('0xe02')},{'value':'ko-KR','option':_0x53915c('0x768')},{'value':'cmn-CN','option':'Mandarin\x20Chinese'},{'value':_0x53915c('0x109b'),'option':_0x53915c('0x99c')},{'value':_0x53915c('0x1e62'),'option':_0x53915c('0x68f')},{'value':_0x53915c('0x16d0'),'option':'Portuguese\x20(Brazil)'},{'value':_0x53915c('0x134d'),'option':_0x53915c('0x1949')},{'value':'ru-RU','option':'Russian\x20(Russia)'},{'value':_0x53915c('0x1178'),'option':_0x53915c('0x1ea6')},{'value':'es-ES','option':'Spanish\x20(Spain)'},{'value':'sv-SE','option':'Swedish\x20(Sweden)'},{'value':_0x53915c('0x2479'),'option':'Turkish\x20(Turkey)'},{'value':'uk-UA','option':_0x53915c('0x3f9')},{'value':_0x53915c('0x1486'),'option':_0x53915c('0x2c1')}];}function _0x141f01(){const _0x5c849c=_0x21d0f5;return[{'value':'af','option':_0x5c849c('0x286c')},{'value':'sq','option':_0x5c849c('0x1f22')},{'value':'am','option':_0x5c849c('0x1a20')},{'value':'ar','option':_0x5c849c('0x2018')},{'value':'hy','option':_0x5c849c('0x1d55')},{'value':'az','option':_0x5c849c('0x17dd')},{'value':'eu','option':_0x5c849c('0x911')},{'value':'be','option':_0x5c849c('0x14fa')},{'value':'bn','option':_0x5c849c('0x222b')},{'value':'bh','option':_0x5c849c('0x2404')},{'value':'bs','option':'Bosnian'},{'value':'br','option':'Breton'},{'value':'bg','option':'Bulgarian'},{'value':'km','option':_0x5c849c('0x100d')},{'value':'ca','option':_0x5c849c('0x1111')},{'value':_0x5c849c('0x25fa'),'option':_0x5c849c('0x16e4')},{'value':_0x5c849c('0x2cd'),'option':_0x5c849c('0x1f06')},{'value':'co','option':_0x5c849c('0x7ff')},{'value':'hr','option':'Croatian'},{'value':'cs','option':'Czech'},{'value':'da','option':_0x5c849c('0xaa9')},{'value':'nl','option':_0x5c849c('0x18fa')},{'value':'en','option':'English'},{'value':'eo','option':_0x5c849c('0x1c7e')},{'value':'et','option':_0x5c849c('0x6e5')},{'value':'fo','option':'Faroese'},{'value':'tl','option':_0x5c849c('0xd4b')},{'value':'fi','option':_0x5c849c('0x1c1e')},{'value':'fr','option':_0x5c849c('0x352')},{'value':'fy','option':_0x5c849c('0xa02')},{'value':'gl','option':_0x5c849c('0x263c')},{'value':'ka','option':_0x5c849c('0x840')},{'value':'de','option':'German'},{'value':'el','option':_0x5c849c('0x26c4')},{'value':'gn','option':_0x5c849c('0x2276')},{'value':'gu','option':'Gujarati'},{'value':_0x5c849c('0x2714'),'option':'Hacker'},{'value':'ha','option':_0x5c849c('0x6b5')},{'value':'iw','option':_0x5c849c('0x27ba')},{'value':'hi','option':'Hindi'},{'value':'hu','option':_0x5c849c('0x65e')},{'value':'is','option':_0x5c849c('0x1527')},{'value':'id','option':_0x5c849c('0xea')},{'value':'ia','option':_0x5c849c('0x179d')},{'value':'ga','option':_0x5c849c('0x1c9c')},{'value':'it','option':'Italian'},{'value':'jw','option':_0x5c849c('0x27c9')},{'value':'ja','option':_0x5c849c('0x1b3d')},{'value':'kn','option':'Kannada'},{'value':'kk','option':_0x5c849c('0x1944')},{'value':'rw','option':'Kinyarwanda'},{'value':'rn','option':'Kirundi'},{'value':_0x5c849c('0x407'),'option':_0x5c849c('0xc73')},{'value':'ku','option':_0x5c849c('0x17f3')},{'value':'ko','option':_0x5c849c('0x27cd')},{'value':'ky','option':_0x5c849c('0xf54')},{'value':'lo','option':'Laothian'},{'value':'la','option':_0x5c849c('0x682')},{'value':'lv','option':_0x5c849c('0x274a')},{'value':'ln','option':'Lingala'},{'value':'lt','option':'Lithuanian'},{'value':'mk','option':_0x5c849c('0x86f')},{'value':'mg','option':_0x5c849c('0x1429')},{'value':'ml','option':'Malayalam'},{'value':'mt','option':_0x5c849c('0xa40')},{'value':'mi','option':'Maori'},{'value':'mr','option':'Marathi'},{'value':'mo','option':_0x5c849c('0xb3')},{'value':'mn','option':'Mongolian'},{'value':_0x5c849c('0x376'),'option':_0x5c849c('0x117b')},{'value':'ne','option':_0x5c849c('0x1298')},{'value':'no','option':'Norwegian'},{'value':'nn','option':_0x5c849c('0x26ea')},{'value':'oc','option':_0x5c849c('0xaec')},{'value':'or','option':_0x5c849c('0x1e83')},{'value':'om','option':_0x5c849c('0x17e')},{'value':'ps','option':'Pashto'},{'value':'fa','option':_0x5c849c('0xb17')},{'value':_0x5c849c('0x14d0'),'option':'Pirate'},{'value':'pl','option':_0x5c849c('0xab7')},{'value':_0x5c849c('0x16d0'),'option':_0x5c849c('0x1476')},{'value':_0x5c849c('0x134d'),'option':_0x5c849c('0x1949')},{'value':'pa','option':_0x5c849c('0x120')},{'value':'qu','option':'Quechua'},{'value':'ro','option':_0x5c849c('0x1c47')},{'value':'rm','option':_0x5c849c('0x1c8e')},{'value':'ru','option':_0x5c849c('0x1995')},{'value':'gd','option':_0x5c849c('0x2568')},{'value':'sr','option':'Serbian'},{'value':'sh','option':'Serbo-Croatian'},{'value':'st','option':_0x5c849c('0x1570')},{'value':'sn','option':_0x5c849c('0x1ccb')},{'value':'sd','option':_0x5c849c('0x8c5')},{'value':'si','option':'Sinhalese'},{'value':'sk','option':_0x5c849c('0x20c8')},{'value':'sl','option':'Slovenian'},{'value':'so','option':'Somali'},{'value':'es','option':_0x5c849c('0x1f08')},{'value':'su','option':_0x5c849c('0xd21')},{'value':'sw','option':_0x5c849c('0x288a')},{'value':'sv','option':'Swedish'},{'value':'tg','option':_0x5c849c('0x1ac')},{'value':'ta','option':_0x5c849c('0xecf')},{'value':'tt','option':_0x5c849c('0x1587')},{'value':'te','option':_0x5c849c('0x1818')},{'value':'th','option':_0x5c849c('0x17ed')},{'value':'ti','option':_0x5c849c('0x2492')},{'value':'to','option':_0x5c849c('0x340')},{'value':'tr','option':_0x5c849c('0x2122')},{'value':'tk','option':'Turkmen'},{'value':'tw','option':_0x5c849c('0x1dc3')},{'value':'ug','option':_0x5c849c('0x1dd7')},{'value':'uk','option':_0x5c849c('0x2199')},{'value':'ur','option':_0x5c849c('0x1f50')},{'value':'uz','option':_0x5c849c('0x1a96')},{'value':'vi','option':_0x5c849c('0x21ef')},{'value':'cy','option':'Welsh'},{'value':'xh','option':'Xhosa'},{'value':'yi','option':_0x5c849c('0xff4')},{'value':'yo','option':_0x5c849c('0x9a1')},{'value':'zu','option':_0x5c849c('0x16e8')}];}function _0x2f753e(){const _0x1faa61=_0x21d0f5;return[{'value':_0x1faa61('0x1838'),'option':_0x1faa61('0x16a0')},{'value':_0x1faa61('0x2759'),'option':_0x1faa61('0x2b7')},{'value':_0x1faa61('0x2391'),'option':_0x1faa61('0xbbd')},{'value':_0x1faa61('0x173f'),'option':_0x1faa61('0x17eb')},{'value':_0x1faa61('0x1758'),'option':_0x1faa61('0x22a')},{'value':'ms-MY','option':_0x1faa61('0x1975')},{'value':_0x1faa61('0xa48'),'option':_0x1faa61('0x21ea')},{'value':_0x1faa61('0xea0'),'option':_0x1faa61('0x26e0')},{'value':'ca-ES','option':_0x1faa61('0x285d')},{'value':_0x1faa61('0x12d1'),'option':_0x1faa61('0x872')},{'value':_0x1faa61('0x27c4'),'option':_0x1faa61('0xa2c')},{'value':_0x1faa61('0x1c2e'),'option':_0x1faa61('0x38a')},{'value':_0x1faa61('0x981'),'option':_0x1faa61('0x2067')},{'value':_0x1faa61('0x9d1'),'option':_0x1faa61('0x1eb5')},{'value':_0x1faa61('0x95a'),'option':_0x1faa61('0x1fd2')},{'value':'en-GB','option':_0x1faa61('0x22d3')},{'value':'en-IN','option':_0x1faa61('0xc14')},{'value':_0x1faa61('0x1ef3'),'option':_0x1faa61('0x23b9')},{'value':_0x1faa61('0x22b2'),'option':_0x1faa61('0xd15')},{'value':_0x1faa61('0xb40'),'option':'English\x20(New\x20Zealand)'},{'value':_0x1faa61('0x1d7'),'option':'English\x20(Nigeria)'},{'value':_0x1faa61('0x19ef'),'option':_0x1faa61('0xe52')},{'value':_0x1faa61('0x98d'),'option':_0x1faa61('0x1139')},{'value':_0x1faa61('0x26f1'),'option':'English\x20(Tanzania)'},{'value':_0x1faa61('0xa8a'),'option':_0x1faa61('0x64c')},{'value':'es-AR','option':_0x1faa61('0xe70')},{'value':_0x1faa61('0x84f'),'option':'Spanish\x20(Bolivia)'},{'value':_0x1faa61('0x13c3'),'option':_0x1faa61('0x129c')},{'value':_0x1faa61('0x243'),'option':_0x1faa61('0xee')},{'value':_0x1faa61('0xe90'),'option':_0x1faa61('0x18df')},{'value':'es-EC','option':'Spanish\x20(Ecuador)'},{'value':'es-SV','option':'Spanish\x20(El\x20Salvador)'},{'value':'es-ES','option':'Spanish\x20(Spain)'},{'value':'es-US','option':_0x1faa61('0xd0e')},{'value':_0x1faa61('0x1784'),'option':_0x1faa61('0x17ea')},{'value':_0x1faa61('0x1ce0'),'option':_0x1faa61('0x13c2')},{'value':_0x1faa61('0x11dd'),'option':_0x1faa61('0x567')},{'value':_0x1faa61('0x358'),'option':'Spanish\x20(Nicaragua)'},{'value':_0x1faa61('0x22b1'),'option':_0x1faa61('0x1480')},{'value':_0x1faa61('0xa9a'),'option':_0x1faa61('0x1de9')},{'value':_0x1faa61('0x1898'),'option':'Spanish\x20(Peru)'},{'value':_0x1faa61('0x190'),'option':_0x1faa61('0x276a')},{'value':_0x1faa61('0x20ed'),'option':_0x1faa61('0x1f81')},{'value':_0x1faa61('0xb11'),'option':_0x1faa61('0x95d')},{'value':_0x1faa61('0x4f1'),'option':_0x1faa61('0xec4')},{'value':'eu-ES','option':_0x1faa61('0x2320')},{'value':'fil-PH','option':'Filipino\x20(Philippines)'},{'value':'fr-CA','option':'French\x20(Canada)'},{'value':_0x1faa61('0x141f'),'option':'French\x20(France)'},{'value':'gl-ES','option':_0x1faa61('0x1a14')},{'value':_0x1faa61('0x130f'),'option':'Georgian\x20(Georgia)'},{'value':_0x1faa61('0x202f'),'option':_0x1faa61('0x1ba5')},{'value':_0x1faa61('0x174a'),'option':'Croatian\x20(Croatia)'},{'value':_0x1faa61('0x1255'),'option':_0x1faa61('0x278a')},{'value':_0x1faa61('0x1a5d'),'option':_0x1faa61('0x1f33')},{'value':_0x1faa61('0x1714'),'option':_0x1faa61('0x1372')},{'value':'jv-ID','option':'Javanese\x20(Indonesia)'},{'value':_0x1faa61('0x2509'),'option':_0x1faa61('0x15aa')},{'value':'km-KH','option':'Khmer\x20(Cambodia)'},{'value':_0x1faa61('0x9fc'),'option':_0x1faa61('0x2d0')},{'value':_0x1faa61('0x2595'),'option':_0x1faa61('0x93')},{'value':_0x1faa61('0x258c'),'option':_0x1faa61('0x26a9')},{'value':_0x1faa61('0x1bd3'),'option':_0x1faa61('0x48b')},{'value':_0x1faa61('0x2d3'),'option':_0x1faa61('0xbd')},{'value':_0x1faa61('0xd1f'),'option':'Marathi\x20(India)'},{'value':'nl-NL','option':'Dutch\x20(Netherlands)'},{'value':_0x1faa61('0xee0'),'option':_0x1faa61('0x11e4')},{'value':_0x1faa61('0x109b'),'option':_0x1faa61('0x1d27')},{'value':'pl-PL','option':_0x1faa61('0x68f')},{'value':_0x1faa61('0x16d0'),'option':_0x1faa61('0x1476')},{'value':_0x1faa61('0x134d'),'option':_0x1faa61('0x1949')},{'value':'ro-RO','option':_0x1faa61('0x11cd')},{'value':'si-LK','option':'Sinhala\x20(Srilanka)'},{'value':_0x1faa61('0x1178'),'option':_0x1faa61('0x1ea6')},{'value':_0x1faa61('0x1233'),'option':_0x1faa61('0x19f0')},{'value':_0x1faa61('0x1edc'),'option':_0x1faa61('0x13bb')},{'value':_0x1faa61('0x575'),'option':_0x1faa61('0xd14')},{'value':_0x1faa61('0x1d46'),'option':_0x1faa61('0x8b3')},{'value':'fi-FI','option':_0x1faa61('0x12f5')},{'value':'sv-SE','option':_0x1faa61('0x6ac')},{'value':_0x1faa61('0x229c'),'option':_0x1faa61('0x1a59')},{'value':_0x1faa61('0x15a9'),'option':_0x1faa61('0x1c75')},{'value':'ta-LK','option':_0x1faa61('0x1e82')},{'value':_0x1faa61('0x524'),'option':_0x1faa61('0x2225')},{'value':'te-IN','option':_0x1faa61('0x3f')},{'value':'vi-VN','option':'Vietnamese\x20(Vietnam)'},{'value':_0x1faa61('0x2479'),'option':_0x1faa61('0x1856')},{'value':'ur-PK','option':_0x1faa61('0x2226')},{'value':_0x1faa61('0x1a12'),'option':'Urdu\x20(India)'},{'value':_0x1faa61('0x1536'),'option':'Greek\x20(Greece)'},{'value':_0x1faa61('0xce3'),'option':'Bulgarian\x20(Bulgaria)'},{'value':_0x1faa61('0x1d9b'),'option':'Russian\x20(Russia)'},{'value':_0x1faa61('0x2f5'),'option':_0x1faa61('0x9b4')},{'value':'uk-UA','option':'Ukrainian\x20(Ukraine)'},{'value':_0x1faa61('0x2062'),'option':_0x1faa61('0x1a92')},{'value':_0x1faa61('0x2267'),'option':_0x1faa61('0x1324')},{'value':'ar-JO','option':_0x1faa61('0x3e1')},{'value':_0x1faa61('0x112b'),'option':_0x1faa61('0x16d9')},{'value':_0x1faa61('0x707'),'option':'Arabic\x20(Bahrain)'},{'value':_0x1faa61('0x1200'),'option':_0x1faa61('0x1abb')},{'value':_0x1faa61('0x673'),'option':_0x1faa61('0x233c')},{'value':_0x1faa61('0x1168'),'option':_0x1faa61('0x8d8')},{'value':_0x1faa61('0x18b8'),'option':_0x1faa61('0x1717')},{'value':_0x1faa61('0x1a13'),'option':'Arabic\x20(Morocco)'},{'value':_0x1faa61('0x1a9e'),'option':_0x1faa61('0x551')},{'value':_0x1faa61('0x723'),'option':'Arabic\x20(Oman)'},{'value':_0x1faa61('0x1c3'),'option':_0x1faa61('0x219b')},{'value':_0x1faa61('0x8f6'),'option':_0x1faa61('0x1bcd')},{'value':_0x1faa61('0x1ed8'),'option':_0x1faa61('0x1b04')},{'value':_0x1faa61('0xe8b'),'option':'Arabic\x20(Egypt)'},{'value':_0x1faa61('0x18b7'),'option':_0x1faa61('0xfc4')},{'value':'hi-IN','option':_0x1faa61('0x1001')},{'value':'th-TH','option':_0x1faa61('0x1b0f')},{'value':'ko-KR','option':_0x1faa61('0x768')},{'value':_0x1faa61('0xf42'),'option':'Chinese,\x20Mandarin\x20(Traditional,\x20Taiwan)'},{'value':_0x1faa61('0x1e6d'),'option':_0x1faa61('0xee7')},{'value':_0x1faa61('0x2757'),'option':_0x1faa61('0xe02')},{'value':_0x1faa61('0x1f20'),'option':_0x1faa61('0x1edb')},{'value':'cmn-Hans-CN','option':_0x1faa61('0x20be')}];}function _0x31342a(){const _0x3a89bb=_0x21d0f5;return[{'value':'usenglishfemale','option':_0x3a89bb('0x298')},{'value':_0x3a89bb('0x1b4c'),'option':_0x3a89bb('0x23c9')},{'value':_0x3a89bb('0x1f32'),'option':_0x3a89bb('0x1a4')},{'value':_0x3a89bb('0xaf3'),'option':'UK\x20English\x20Male'},{'value':'auenglishfemale','option':_0x3a89bb('0x5e0')},{'value':_0x3a89bb('0x1cfa'),'option':_0x3a89bb('0x1d7f')},{'value':_0x3a89bb('0x17fe'),'option':_0x3a89bb('0x245b')},{'value':_0x3a89bb('0xf1'),'option':'Chinese\x20Female'},{'value':_0x3a89bb('0x24a3'),'option':_0x3a89bb('0x2848')},{'value':'hkchinesefemale','option':'Hong\x20Kong\x20Cantonese\x20Female'},{'value':_0x3a89bb('0x172'),'option':_0x3a89bb('0x179f')},{'value':'jpjapanesefemale','option':_0x3a89bb('0x2038')},{'value':_0x3a89bb('0x2619'),'option':_0x3a89bb('0x3fe')},{'value':'krkoreanfemale','option':_0x3a89bb('0x2528')},{'value':_0x3a89bb('0x1716'),'option':_0x3a89bb('0x1ef1')},{'value':_0x3a89bb('0x1913'),'option':_0x3a89bb('0x2819')},{'value':_0x3a89bb('0x1f0e'),'option':'Hungarian\x20Female'},{'value':_0x3a89bb('0x1a22'),'option':_0x3a89bb('0x1c1b')},{'value':'eurportuguesefemale','option':_0x3a89bb('0x2268')},{'value':'eurportuguesemale','option':_0x3a89bb('0xab9')},{'value':_0x3a89bb('0x15e8'),'option':'European\x20Spanish\x20Female'},{'value':'eurspanishmale','option':_0x3a89bb('0xb03')},{'value':_0x3a89bb('0xcc4'),'option':_0x3a89bb('0x22da')},{'value':_0x3a89bb('0x1aa'),'option':_0x3a89bb('0x17b4')},{'value':_0x3a89bb('0x3c8'),'option':_0x3a89bb('0x9ef')},{'value':_0x3a89bb('0x2375'),'option':_0x3a89bb('0x1947')},{'value':_0x3a89bb('0x273d'),'option':_0x3a89bb('0x251c')},{'value':_0x3a89bb('0x221a'),'option':'European\x20French\x20Male'},{'value':_0x3a89bb('0x116a'),'option':_0x3a89bb('0x102f')},{'value':_0x3a89bb('0x1798'),'option':_0x3a89bb('0x2402')},{'value':'eurpolishfemale','option':_0x3a89bb('0xdf2')},{'value':_0x3a89bb('0x2847'),'option':_0x3a89bb('0x2105')},{'value':_0x3a89bb('0x6ee'),'option':'European\x20Italian\x20Male'},{'value':'eurturkishfemale','option':_0x3a89bb('0x2679')},{'value':_0x3a89bb('0x248c'),'option':_0x3a89bb('0xca4')},{'value':_0x3a89bb('0xcf6'),'option':'European\x20German\x20Female'},{'value':_0x3a89bb('0x9ed'),'option':_0x3a89bb('0x17c5')},{'value':_0x3a89bb('0x243e'),'option':_0x3a89bb('0x691')},{'value':'rurussianmale','option':_0x3a89bb('0x1068')},{'value':'swswedishfemale','option':_0x3a89bb('0x24a4')},{'value':_0x3a89bb('0x2187'),'option':_0x3a89bb('0xf92')},{'value':'cafrenchmale','option':_0x3a89bb('0x110')}];}function _0xfe7f86(){const _0x39f061=_0x21d0f5;return[{'value':_0x39f061('0xa8a'),'option':_0x39f061('0x2623')},{'value':'en-CA','option':_0x39f061('0x1eb5')},{'value':_0x39f061('0x127f'),'option':'English\x20(UK)'},{'value':'en-AU','option':_0x39f061('0x2067')},{'value':_0x39f061('0x17a9'),'option':_0x39f061('0x452')},{'value':_0x39f061('0x11dd'),'option':_0x39f061('0x567')},{'value':_0x39f061('0x1714'),'option':_0x39f061('0x15')},{'value':'fr-FR','option':_0x39f061('0x38a')},{'value':_0x39f061('0x1423'),'option':_0x39f061('0x1404')},{'value':_0x39f061('0x1e62'),'option':'Polish\x20(Poland)'},{'value':_0x39f061('0x134d'),'option':_0x39f061('0x1949')},{'value':_0x39f061('0x1af4'),'option':'Catalan\x20(Catalan)'},{'value':_0x39f061('0x2cd'),'option':_0x39f061('0x150d')},{'value':'da-DK','option':_0x39f061('0xa2c')},{'value':'ja-JP','option':_0x39f061('0xe02')},{'value':_0x39f061('0x23f0'),'option':_0x39f061('0xabf')},{'value':_0x39f061('0x23f3'),'option':_0x39f061('0x183e')},{'value':'nb-NO','option':'Norwegian\x20(Norway)'},{'value':'pt-BR','option':_0x39f061('0x1476')},{'value':'ru-RU','option':'Russian\x20(Russia)'},{'value':_0x39f061('0x1d4d'),'option':'Swedish\x20(Sweden)'},{'value':_0x39f061('0x25fa'),'option':_0x39f061('0x1da2')},{'value':_0x39f061('0x88b'),'option':_0x39f061('0x1b2')}];}function _0x31de37(){const _0x4ebe86=_0x21d0f5;return[{'value':'0','option':_0x4ebe86('0x29f')},{'value':_0x4ebe86('0x22f7'),'option':_0x4ebe86('0x1d88')},{'value':'usmoney','option':_0x4ebe86('0x288e')},{'value':_0x4ebe86('0xf48'),'option':_0x4ebe86('0x133f')},{'value':_0x4ebe86('0x2037'),'option':'Numbers\x20to\x2099'},{'value':_0x4ebe86('0x1012'),'option':_0x4ebe86('0xdb2')},{'value':_0x4ebe86('0x260a'),'option':_0x4ebe86('0xc63')},{'value':'phonenumber','option':_0x4ebe86('0x177b')},{'value':_0x4ebe86('0x2774'),'option':_0x4ebe86('0x132f')},{'value':_0x4ebe86('0x1070'),'option':_0x4ebe86('0xa49')}];}function _0xc1ba67(){const _0x3f46be=_0x21d0f5;return[{'value':'Amy','option':_0x3f46be('0x230a')},{'value':_0x3f46be('0x234e'),'option':'Astrid\x20(Swedish,\x20Female)'},{'value':_0x3f46be('0x1a5f'),'option':_0x3f46be('0x18e2')},{'value':'Carla','option':_0x3f46be('0x14c7')},{'value':_0x3f46be('0x1ef6'),'option':_0x3f46be('0x917')},{'value':_0x3f46be('0x1cc7'),'option':_0x3f46be('0x1fc6')},{'value':_0x3f46be('0x6b1'),'option':'Chantal\x20(French,\x20Canadian,\x20Female)'},{'value':_0x3f46be('0x26b3'),'option':_0x3f46be('0xfc')},{'value':_0x3f46be('0x121c'),'option':_0x3f46be('0x236d')},{'value':_0x3f46be('0x1c58'),'option':_0x3f46be('0x5f9')},{'value':'Emma','option':'Emma\x20(English,\x20British,\x20Female)'},{'value':'Enrique','option':_0x3f46be('0x27e4')},{'value':_0x3f46be('0x12e1'),'option':'Ewa\x20(Polish,\x20Female)'},{'value':_0x3f46be('0x149b'),'option':_0x3f46be('0x1723')},{'value':_0x3f46be('0x6b6'),'option':_0x3f46be('0x274d')},{'value':_0x3f46be('0x1771'),'option':_0x3f46be('0x121')},{'value':_0x3f46be('0x1dd'),'option':_0x3f46be('0x1ba1')},{'value':_0x3f46be('0x1876'),'option':_0x3f46be('0x167e')},{'value':_0x3f46be('0x27d7'),'option':'Ines\x20(Portuguese,\x20Female)'},{'value':'Ivy','option':'Ivy\x20(English,\x20US,\x20Female)'},{'value':_0x3f46be('0x1aca'),'option':_0x3f46be('0x7f')},{'value':'Jan','option':_0x3f46be('0x2245')},{'value':'Joanna','option':'Joanna\x20(English,\x20US,\x20Female)'},{'value':_0x3f46be('0x1ba6'),'option':_0x3f46be('0x1370')},{'value':_0x3f46be('0x9d'),'option':_0x3f46be('0x6f4')},{'value':_0x3f46be('0x467'),'option':_0x3f46be('0x2016')},{'value':'Kendra','option':_0x3f46be('0x618')},{'value':_0x3f46be('0x1662'),'option':_0x3f46be('0x2691')},{'value':_0x3f46be('0x15d9'),'option':_0x3f46be('0x2659')},{'value':'Lotte','option':_0x3f46be('0x1e42')},{'value':'Mads','option':_0x3f46be('0x24e2')},{'value':_0x3f46be('0x21dd'),'option':'Maja\x20(Polish,\x20Female)'},{'value':_0x3f46be('0x238b'),'option':_0x3f46be('0x850')},{'value':_0x3f46be('0x21f3'),'option':'Mathieu\x20(French,\x20Male)'},{'value':'Maxim','option':'Maxim\x20(Russian,\x20Male)'},{'value':_0x3f46be('0xb1'),'option':'Miguel\x20(Spanish,\x20US,\x20Male)'},{'value':_0x3f46be('0x1911'),'option':_0x3f46be('0x23dc')},{'value':_0x3f46be('0xd91'),'option':'Naja\x20(Danish,\x20Female)'},{'value':_0x3f46be('0x1670'),'option':_0x3f46be('0x1d72')},{'value':_0x3f46be('0x16ef'),'option':_0x3f46be('0x26ad')},{'value':_0x3f46be('0xa43'),'option':_0x3f46be('0x272a')},{'value':_0x3f46be('0x6e9'),'option':_0x3f46be('0x18f0')},{'value':_0x3f46be('0x1658'),'option':'Ruben\x20(Dutch,\x20Male)'},{'value':_0x3f46be('0x2882'),'option':_0x3f46be('0x2170')},{'value':'Salli','option':_0x3f46be('0x2591')},{'value':_0x3f46be('0x2221'),'option':_0x3f46be('0x1a25')},{'value':_0x3f46be('0x2893'),'option':_0x3f46be('0x546')}];}function _0xf44ad1(){const _0x2714bc=_0x21d0f5;return[{'value':_0x2714bc('0xbbe'),'option':'US\x20East\x20(N.\x20Virginia)'},{'value':_0x2714bc('0x1962'),'option':_0x2714bc('0x2406')},{'value':_0x2714bc('0x2405'),'option':_0x2714bc('0xde3')},{'value':_0x2714bc('0x1ea3'),'option':'US\x20West\x20(Oregon)'},{'value':_0x2714bc('0x17a4'),'option':'Canada\x20(Central)'},{'value':_0x2714bc('0x205'),'option':_0x2714bc('0x1c40')},{'value':_0x2714bc('0x103f'),'option':'EU\x20(Frankfurt)'},{'value':_0x2714bc('0x1781'),'option':'EU\x20(London)'},{'value':_0x2714bc('0x28'),'option':_0x2714bc('0x1fc3')},{'value':_0x2714bc('0x16cf'),'option':_0x2714bc('0x225d')},{'value':_0x2714bc('0x23e7'),'option':'Asia\x20Pacific\x20(Sydney)'},{'value':_0x2714bc('0x2421'),'option':_0x2714bc('0x211')},{'value':_0x2714bc('0x27ef'),'option':_0x2714bc('0x1dda')},{'value':'ap-south-1','option':_0x2714bc('0x864')},{'value':_0x2714bc('0xe0b'),'option':'South\x20America\x20(São\x20Paulo)'}];}function _0x5bbf23(){const _0xff6731=_0x21d0f5;return[{'value':'us-east-1','option':_0xff6731('0x13be')},{'value':_0xff6731('0x1ea3'),'option':'US\x20West\x20(Oregon)'},{'value':_0xff6731('0x205'),'option':_0xff6731('0x1c40')},{'value':_0xff6731('0x23e7'),'option':_0xff6731('0x2704')}];}_0x16f381[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1ca2'),_0x21d0f5('0x142d'),_0x21d0f5('0x177f'),'saveCallback'];function _0x16f381(_0x5867fc,_0x14ad29,_0x552963,_0x3e884f){const _0x495234=_0x21d0f5,_0x255287=this;_0x255287[_0x495234('0xef0')]={'preproduction':_0x552963};function _0x3f6501(_0x58b942){const _0x585f2d=_0x495234;_0x58b942?(_0x3e884f(_0x255287[_0x585f2d('0xef0')][_0x585f2d('0x2003')]),_0x5867fc[_0x585f2d('0x237e')](_0x255287[_0x585f2d('0xef0')][_0x585f2d('0x2003')])):_0x5867fc[_0x585f2d('0x237e')]();}_0x255287[_0x495234('0xc4e')]=_0x3f6501;}const _0x4f1a36=_0x16f381;_0x44583d[_0x21d0f5('0x1e9a')]=['$mdDialog','saveCallback'];function _0x44583d(_0x1a1c72,_0x78f2cf){const _0x2b9340=_0x21d0f5,_0x207349=this,_0x161e9b=0x5,_0x6c2da=_0x161e9b*0x400*0x400;_0x207349[_0x2b9340('0x120f')]=[],_0x207349['ngFlowOptions']={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x6c2da,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x207349[_0x2b9340('0x13b8')]={'flow':{}},_0x207349[_0x2b9340('0x92e')]=![],_0x207349[_0x2b9340('0xc4e')]=_0x41f637,_0x207349[_0x2b9340('0x1c03')]=_0xd9709;function _0xd9709(_0x104739){const _0xa5de3e=_0x2b9340;_0x207349[_0xa5de3e('0x120f')]=[];const _0x4fe5c5=[_0xa5de3e('0x1df1')];!_0x36f548()['includes'](_0x4fe5c5,_0x104739[_0xa5de3e('0x115f')]())&&_0x207349[_0xa5de3e('0x120f')][_0xa5de3e('0x105d')]({'message':_0xa5de3e('0x1169')+_0x104739[_0xa5de3e('0x115f')]()+'\x20is\x20not\x20supported!'});_0x104739['size']>_0x6c2da&&_0x207349[_0xa5de3e('0x120f')][_0xa5de3e('0x105d')]({'message':'The\x20file\x20is\x20too\x20big.\x20The\x20max\x20allowed\x20size\x20is\x20'+_0x161e9b+'MB'});if(!_0x207349['errors'][_0xa5de3e('0x1e22')]){const _0x1e9828=new FileReader();_0x1e9828['onload']=function(_0x126388){const _0xe3151a=_0xa5de3e;_0x41f637(_0x126388[_0xe3151a('0xc7a')][_0xe3151a('0x252e')]);},_0x1e9828[_0xa5de3e('0x2858')](_0x104739[_0xa5de3e('0x2889')]);}}function _0x41f637(_0x3852cb){const _0x10f6d7=_0x2b9340;_0x3852cb?(_0x78f2cf(_0x3852cb),_0x1a1c72[_0x10f6d7('0x237e')](_0x3852cb)):_0x1a1c72[_0x10f6d7('0x237e')]();}}const _0x468323=_0x44583d;_0x5c5472['$inject']=[_0x21d0f5('0x1ca2'),'toasty',_0x21d0f5('0xef0'),'api'];function _0x5c5472(_0x4dd77b,_0x41291e,_0x2b3c38,_0x6d3025){const _0x5bbef1=_0x21d0f5,_0x967db7=this;_0x967db7[_0x5bbef1('0xef0')]=_0x36f548()['clone'](_0x2b3c38);function _0x5bdcf7(){const _0x2c3183=_0x5bbef1;_0x967db7[_0x2c3183('0x120f')]=[],_0x6d3025['squareProject'][_0x2c3183('0x5ab')]({'id':_0x967db7[_0x2c3183('0xef0')]['id']},{'notes':_0x967db7[_0x2c3183('0xef0')][_0x2c3183('0xa4f')],'description':_0x967db7['project'][_0x2c3183('0x1659')]})[_0x2c3183('0x1549')][_0x2c3183('0x11bf')](function(_0x3af570){const _0x37507f=_0x2c3183;_0x41291e['success']({'title':_0x37507f('0x1835'),'msg':_0x967db7[_0x37507f('0xef0')]['name']?_0x967db7[_0x37507f('0xef0')][_0x37507f('0x1909')]+_0x37507f('0xd7'):''}),_0x4dd77b[_0x37507f('0x237e')](_0x3af570);})[_0x2c3183('0x151d')](function(_0x1ee0b9){const _0x5a9489=_0x2c3183;console[_0x5a9489('0x255')](_0x1ee0b9),_0x967db7[_0x5a9489('0x120f')]=_0x1ee0b9[_0x5a9489('0x4e8')][_0x5a9489('0x120f')]||[{'message':_0x1ee0b9[_0x5a9489('0xaab')](),'type':_0x5a9489('0xf88')}];});}function _0x3c2ba6(){const _0x15f36f=_0x5bbef1;_0x4dd77b[_0x15f36f('0x237e')]();}_0x967db7[_0x5bbef1('0xc4e')]=_0x3c2ba6,_0x967db7[_0x5bbef1('0x259')]=_0x5bdcf7;}const _0x436235=_0x5c5472;_0x4ee10b[_0x21d0f5('0x1e9a')]=['$mdDialog',_0x21d0f5('0x142d'),_0x21d0f5('0xa62'),_0x21d0f5('0x2143'),_0x21d0f5('0xcbc')];function _0x4ee10b(_0x29b154,_0x482e2f,_0x336257,_0xc31a41,_0x2b77e6){const _0x46aa5a=_0x21d0f5,_0x2d5b8c=this;_0x2d5b8c[_0x46aa5a('0xa62')]=_0x336257,_0x2d5b8c['id']='',_0x2d5b8c[_0x46aa5a('0x13d5')]=!![];function _0x5f0e7d(_0x293528){const _0x38335b=_0x46aa5a;_0x2d5b8c['errors']=[],_0x293528?(_0x29b154[_0x38335b('0x237e')](),_0x2d5b8c[_0x38335b('0x13d5')]?_0xc31a41[_0x38335b('0x2570')](_0x38335b('0x9f8')+_0x2d5b8c['id'],'_blank'):_0x2b77e6['go']('app.callysquare.projects.edit',{'id':_0x2d5b8c['id']})):_0x29b154['hide']();}_0x2d5b8c['closeDialog']=_0x5f0e7d;}const _0xa8a0c5=_0x4ee10b;_0x552ec7[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1ca2'),_0x21d0f5('0x142d'),_0x21d0f5('0x12a5'),_0x21d0f5('0xef0'),_0x21d0f5('0xa62'),_0x21d0f5('0xb6b')];function _0x552ec7(_0xb1fcaf,_0x30a31e,_0x3e75de,_0x5280aa,_0x156ac8,_0x1d36f7){const _0xe16887=_0x21d0f5,_0x41f0c3=this;_0x41f0c3['project']=_0x5280aa,_0x41f0c3[_0xe16887('0xf47')]=0x0,_0x41f0c3[_0xe16887('0x22')]=[],_0x41f0c3['selectedItems']=[],_0x41f0c3['closeDialog']=_0xeb3232,_0x41f0c3['dualMultiselectOptions']={'readOnly':![],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':'name','line1':_0xe16887('0x27af'),'line2':[_0xe16887('0x1909'),'internal'],'line3':_0xe16887('0xf47'),'labelAll':_0x1d36f7[_0xe16887('0x10c2')](_0xe16887('0x103a')),'labelSelected':_0x1d36f7['instant'](_0xe16887('0x1b29')),'transferCallback':function(_0x11ec48,_0x36f4bd){const _0x4b987e=_0xe16887;_0x3e75de[_0x4b987e('0x1671')][_0x36f4bd?_0x4b987e('0x18'):_0x4b987e('0x124f')]({'id':_0x41f0c3[_0x4b987e('0xef0')]['id'],'ids':_0x36f548()[_0x4b987e('0x2171')](_0x11ec48,'id'),'penalty':_0x41f0c3[_0x4b987e('0xf47')]||0x0})[_0x4b987e('0x1549')][_0x4b987e('0x11bf')](function(){const _0x501645=_0x4b987e;_0x30a31e['success']({'title':_0x501645('0xb6a')+(_0x36f4bd?_0x501645('0x2895'):_0x501645('0x727')),'msg':_0x501645('0x4d7')+(_0x36f4bd?_0x501645('0x2895'):_0x501645('0x727'))+'!'}),!_0x36f4bd&&_0x53f954();})['catch'](function(_0x26132b){const _0x3090c1=_0x4b987e;_0x30a31e[_0x3090c1('0x255')]({'title':_0x26132b[_0x3090c1('0xff9')]?_0x3090c1('0x574')+_0x26132b[_0x3090c1('0xff9')]+_0x3090c1('0xb0b')+_0x26132b['statusText']:'SYSTEM:squareProjects.ADDUSERS','msg':_0x26132b[_0x3090c1('0xff9')]?JSON[_0x3090c1('0x3e')](_0x26132b[_0x3090c1('0x4e8')]):_0x26132b[_0x3090c1('0xaab')]()});});}};function _0x53f954(){const _0x3f5b33=_0xe16887;return _0x3e75de[_0x3f5b33('0x1671')][_0x3f5b33('0x26b4')]({'id':_0x41f0c3[_0x3f5b33('0xef0')]['id'],'fields':_0x3f5b33('0x21fb'),'nolimit':!![],'role':'user'})[_0x3f5b33('0x1549')]['then'](function(_0x3ae5ce){const _0x9d41f6=_0x3f5b33;return _0x41f0c3[_0x9d41f6('0x26cc')]=_0x3ae5ce[_0x9d41f6('0x19b2')]?_0x36f548()[_0x9d41f6('0x2171')](_0x3ae5ce['rows'],function(_0x9443f9){return _0x9443f9;}):[],_0x41f0c3[_0x9d41f6('0xec5')][_0x9d41f6('0x26cc')]=_0x41f0c3[_0x9d41f6('0x26cc')],_0x3e75de[_0x9d41f6('0x21d9')][_0x9d41f6('0xbaa')]({'fields':_0x9d41f6('0xf93'),'role':_0x9d41f6('0x21d9'),'nolimit':!![]})[_0x9d41f6('0x1549')];})[_0x3f5b33('0x11bf')](function(_0x10e7b1){const _0x51d000=_0x3f5b33;_0x41f0c3[_0x51d000('0x22')]=_0x10e7b1[_0x51d000('0x19b2')]?_0x36f548()['map'](_0x10e7b1[_0x51d000('0x19b2')],function(_0x202909){return _0x202909;}):[],_0x41f0c3[_0x51d000('0xec5')][_0x51d000('0x22')]=_0x36f548()[_0x51d000('0x2753')](_0x41f0c3[_0x51d000('0x22')],_0x41f0c3['selectedItems'],'id');})[_0x3f5b33('0x151d')](function(_0xfe26f4){const _0x50eb36=_0x3f5b33;_0x30a31e[_0x50eb36('0x255')]({'title':_0xfe26f4[_0x50eb36('0xff9')]?_0x50eb36('0x574')+_0xfe26f4[_0x50eb36('0xff9')]+_0x50eb36('0xb0b')+_0xfe26f4[_0x50eb36('0x212f')]:_0x50eb36('0x11f8'),'msg':_0xfe26f4[_0x50eb36('0xff9')]?JSON[_0x50eb36('0x3e')](_0xfe26f4[_0x50eb36('0x4e8')]):_0xfe26f4['toString']()});});}function _0xeb3232(){const _0xc514ef=_0xe16887;_0xb1fcaf[_0xc514ef('0x237e')]();}_0x53f954();}const _0x2fa74e=_0x552ec7;_0x2f3de5[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1ca2'),_0x21d0f5('0x142d'),_0x21d0f5('0xef0'),'currentXML',_0x21d0f5('0x12a5'),_0x21d0f5('0x2143'),_0x21d0f5('0xcbc')];function _0x2f3de5(_0x4af875,_0x2cb8cf,_0x1a0a4b,_0x4d766d,_0xf9a8f7,_0x30c726,_0x281bdb){const _0x117d05=_0x21d0f5,_0x14e355=this;_0x14e355[_0x117d05('0xef0')]=angular[_0x117d05('0x6fb')](_0x1a0a4b),_0x14e355['project'][_0x117d05('0x1909')]+=_0x117d05('0x24d3'),_0x14e355[_0x117d05('0xef0')][_0x117d05('0x2003')]=_0x4d766d,_0x14e355[_0x117d05('0x13d5')]=!![];function _0x460ccf(){const _0x59d4d7=_0x117d05;delete _0x14e355[_0x59d4d7('0xef0')]['id'],_0xf9a8f7[_0x59d4d7('0x1671')]['save'](_0x14e355['project'])[_0x59d4d7('0x1549')][_0x59d4d7('0x11bf')](function(_0x112710){const _0x557853=_0x59d4d7;_0x2cb8cf[_0x557853('0x2693')]({'title':_0x557853('0x421'),'msg':_0x14e355['project'][_0x557853('0x1909')]?_0x14e355['project'][_0x557853('0x1909')]+'\x20has\x20been\x20created!':''}),_0x4af875[_0x557853('0x237e')](_0x112710),_0x14e355['newWindow']?_0x30c726['open'](_0x557853('0x9f8')+_0x112710['id'],'_blank'):_0x281bdb['go'](_0x557853('0x662'),{'id':_0x112710['id']});})[_0x59d4d7('0x151d')](function(_0x3ef255){const _0xcb39b1=_0x59d4d7;console[_0xcb39b1('0x255')](_0x3ef255),_0x14e355[_0xcb39b1('0x120f')]=_0x3ef255[_0xcb39b1('0x4e8')][_0xcb39b1('0x120f')]||[{'message':_0x3ef255[_0xcb39b1('0xaab')](),'type':'api.squareProject.save'}];});}function _0x29cd92(){const _0x22d4a3=_0x117d05;_0x4af875[_0x22d4a3('0x237e')]();}_0x14e355[_0x117d05('0xc4e')]=_0x29cd92,_0x14e355[_0x117d05('0x259')]=_0x460ccf;}const _0x32fd30=_0x2f3de5,_0x3626bd=_0x351988['p']+_0x21d0f5('0x1d06'),_0x56d733=_0x351988['p']+_0x21d0f5('0x2657'),_0x2bb7b7=_0x351988['p']+_0x21d0f5('0x1c3e'),_0xeec55a=_0x351988['p']+_0x21d0f5('0x21ab'),_0x1bdc18=_0x351988['p']+_0x21d0f5('0x1df2'),_0x149d16=_0x351988['p']+_0x21d0f5('0x22d6'),_0x4aa9fb=_0x351988['p']+_0x21d0f5('0x1db5');_0x67f80a[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0xcbc'),_0x21d0f5('0x1b30'),_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0xb6b'),_0x21d0f5('0x142d'),_0x21d0f5('0x12a5'),_0x21d0f5('0xef0'),_0x21d0f5('0x17c0'),_0x21d0f5('0x1b24'),_0x21d0f5('0x1de3'),'sounds',_0x21d0f5('0x1700'),'databases',_0x21d0f5('0x803'),_0x21d0f5('0xa62'),_0x21d0f5('0xe82'),_0x21d0f5('0xf1a'),_0x21d0f5('0x1302'),_0x21d0f5('0x2410'),_0x21d0f5('0x27d9'),'pauses','userProfileSection','Auth'];const _0xec6cd6=window['EditorUi'],_0x2f40e0=window[_0x21d0f5('0x13fd')];function _0x67f80a(_0x13f0d6,_0x4abddd,_0x397c35,_0x43b40,_0x303d3e,_0x4252c9,_0xb53b8e,_0x283ce7,_0x47053a,_0x4acff9,_0x217857,_0x48860c,_0x43de1f,_0x599b04,_0x5705df,_0x5f148d,_0x9c5594,_0x21ce95,_0x490390,_0x3cf4d6,_0x1c17a2,_0x23c703,_0x28c9df,_0x38504f){const _0x435030=_0x21d0f5,_0x5ef374=this;_0x5ef374['currentUser']=_0x38504f[_0x435030('0x2428')](),_0x5ef374[_0x435030('0xef0')]=_0x283ce7||{},_0x5ef374[_0x435030('0x1d63')]=_0x28c9df&&_0x28c9df[_0x435030('0x27d2')]==0x1?_0x28c9df[_0x435030('0x19b2')][0x0]:null,_0x5ef374[_0x435030('0xb25')]=_0x38504f[_0x435030('0x1530')](_0x5ef374['userProfileSection']?_0x5ef374[_0x435030('0x1d63')]['crudPermissions']:null),_0x5ef374[_0x435030('0x277c')]=_0x1a2003,_0x5ef374[_0x435030('0xe0a')]=_0x4a8673,_0x5ef374[_0x435030('0x1d33')]=_0x4be429,_0x5ef374[_0x435030('0x1de')]=_0x1f4fa4,_0x5ef374[_0x435030('0x1080')]=_0x5d03bd,_0x5ef374[_0x435030('0x246a')]=_0x138eab,_0x5ef374[_0x435030('0x1905')]=_0x488573,_0x5ef374['updateInfo']=_0x12b25a,_0x5ef374[_0x435030('0x752')]=_0x4f0179,_0x5ef374[_0x435030('0x10a8')]=_0x2deb80,_0x5ef374[_0x435030('0x2e3')]=_0x1c1695;function _0x1a2003(){const _0x3c0f70=_0x435030,_0x36a269=new _0xec6cd6(_0x5ef374,new _0x2f40e0(),document[_0x3c0f70('0x1451')](_0x3c0f70('0x2214')));_0x36a269[_0x3c0f70('0x132a')](_0x5ef374[_0x3c0f70('0xef0')][_0x3c0f70('0x2003')],_0x5ef374[_0x3c0f70('0xef0')][_0x3c0f70('0x1909')],_0x5ef374['project']);}function _0x4be429(_0x163d86,_0x13b0c8){const _0x2444b4=_0x435030;_0x397c35[_0x2444b4('0xb9')]({'controller':_0x2444b4('0x25bf'),'controllerAs':'vm','templateUrl':_0x3626bd,'parent':angular[_0x2444b4('0x1e73')](_0x4abddd[_0x2444b4('0x1d2')]),'clickOutsideToClose':!![],'locals':{'users':_0x47053a[_0x2444b4('0x19b2')]||[],'trunks':_0x4acff9['rows']||[],'queues':_0x217857[_0x2444b4('0x19b2')]||[],'sounds':_0x48860c[_0x2444b4('0x19b2')]||[],'variables':_0x43de1f[_0x2444b4('0x19b2')]||[],'databases':_0x599b04[_0x2444b4('0x19b2')]||[],'contexts':_0x5705df[_0x2444b4('0x19b2')]||[],'projects':_0x5f148d[_0x2444b4('0x19b2')]||[],'intervals':_0x9c5594[_0x2444b4('0x19b2')]||[],'mailAccounts':_0x21ce95['rows']||[],'smsAccounts':_0x1c17a2[_0x2444b4('0x19b2')]||[],'pauses':_0x23c703[_0x2444b4('0x19b2')]||[],'templates':_0x490390[_0x2444b4('0x19b2')]||[],'lists':_0x3cf4d6[_0x2444b4('0x19b2')]||[],'cell':_0x163d86,'saveCallback':_0x13b0c8,'crudPermissions':_0x5ef374[_0x2444b4('0xb25')]}});}function _0x1f4fa4(_0x1a9d54){const _0xf15d52=_0x435030;_0x397c35[_0xf15d52('0xb9')]({'controller':_0xf15d52('0x1300'),'controllerAs':'vm','templateUrl':_0x56d733,'parent':angular['element'](_0x4abddd['body']),'clickOutsideToClose':!![],'locals':{'project':_0x1a9d54,'projects':_0x5f148d[_0xf15d52('0x19b2')],'openFromEditor':!![],'license':null,'setting':null,'crudPermissions':_0x5ef374[_0xf15d52('0xb25')]}});}function _0x5d03bd(){const _0x33e8ae=_0x435030;_0x397c35[_0x33e8ae('0xb9')]({'controller':_0x33e8ae('0xd9d'),'controllerAs':'vm','templateUrl':_0x2bb7b7,'parent':angular[_0x33e8ae('0x1e73')](_0x4abddd['body']),'clickOutsideToClose':!![],'locals':{'projects':_0x5f148d[_0x33e8ae('0x19b2')]||[]}});}function _0x138eab(_0x35ac57){const _0x323531=_0x435030;_0x397c35[_0x323531('0xb9')]({'controller':_0x323531('0x1f13'),'controllerAs':'vm','templateUrl':_0xeec55a,'parent':angular['element'](_0x4abddd[_0x323531('0x1d2')]),'clickOutsideToClose':!![],'locals':{'project':_0x5ef374['project'],'currentXML':_0x35ac57}})[_0x323531('0x11bf')](function(_0x12e565){const _0x4b9641=_0x323531;_0x12e565&&_0x5f148d['rows'][_0x4b9641('0x105d')](_0x12e565);});}function _0x34fda5(){return _0x43b40(function(_0x38e3df,_0x541170){const _0x107ad3=a0_0xaf0c;return _0xb53b8e['userProfileSection']['get']({'userProfileId':_0x5ef374[_0x107ad3('0x32a')]['userProfileId'],'sectionId':0x3f4})['$promise'][_0x107ad3('0x11bf')](function(_0x110131){const _0x4bd18a=_0x107ad3,_0x12e44e=_0x110131[_0x4bd18a('0x19b2')]?_0x110131[_0x4bd18a('0x19b2')][0x0]:null,_0x1a6ee8=_0x38504f[_0x4bd18a('0x1530')](_0x12e44e?_0x12e44e[_0x4bd18a('0xb25')]:null);_0x38e3df(_0x1a6ee8);})[_0x107ad3('0x151d')](function(_0x58c9b5){_0x541170(_0x58c9b5);});});}function _0x488573(_0xa0f6a7){const _0x410333=_0x435030;return _0x34fda5()['then'](function(_0xb56ebc){const _0x29dfdb=a0_0xaf0c;_0xb56ebc[_0x29dfdb('0x25db')]?_0x397c35[_0x29dfdb('0xb9')]({'controller':_0x29dfdb('0x23a6'),'controllerAs':'vm','templateUrl':_0x3f6ce4,'parent':angular[_0x29dfdb('0x1e73')](_0x4abddd[_0x29dfdb('0x1d2')]),'clickOutsideToClose':!![],'locals':{'variable':_0xa0f6a7,'variables':_0x43de1f[_0x29dfdb('0x19b2')],'license':null,'setting':null,'crudPermissions':_0xb56ebc}}):_0x4252c9[_0x29dfdb('0x870')]({'title':_0x303d3e[_0x29dfdb('0x10c2')](_0x29dfdb('0xbff')),'msg':_0x303d3e[_0x29dfdb('0x10c2')](_0x29dfdb('0xa22'))});})[_0x410333('0x151d')](function(_0x2dcd30){const _0x46d6c7=_0x410333;_0x4252c9['error']({'title':_0x2dcd30[_0x46d6c7('0xff9')]?'API:'+_0x2dcd30['status']+_0x46d6c7('0xb0b')+_0x2dcd30[_0x46d6c7('0x212f')]:'API:NEW_VARIABLE','msg':_0x2dcd30[_0x46d6c7('0x4e8')]?JSON[_0x46d6c7('0x3e')](_0x2dcd30[_0x46d6c7('0x4e8')]):_0x2dcd30['toString']()});});}function _0x12b25a(_0x129110){const _0x879b16=_0x435030;_0x397c35[_0x879b16('0xb9')]({'controller':_0x879b16('0x6fe'),'controllerAs':'vm','templateUrl':_0x1bdc18,'parent':angular['element'](_0x4abddd['body']),'targetEvent':_0x129110,'clickOutsideToClose':!![],'locals':{'project':_0x5ef374[_0x879b16('0xef0')]}})[_0x879b16('0x11bf')](function(_0x20bc39){const _0x2e51fa=_0x879b16;_0x20bc39&&_0x36f548()[_0x2e51fa('0x47b')](_0x5ef374[_0x2e51fa('0xef0')],_0x20bc39);});}function _0x4f0179(_0x4f2f64,_0x3f9bb6){const _0xcb5cc=_0x435030;_0x397c35['show']({'controller':'MxGraphEditXMLController','controllerAs':'vm','templateUrl':_0x149d16,'parent':angular['element'](_0x4abddd[_0xcb5cc('0x1d2')]),'clickOutsideToClose':!![],'locals':{'currentXML':_0x4f2f64,'saveCallback':_0x3f9bb6}})['then'](function(_0x58a69e){const _0x2760c9=_0xcb5cc;_0x58a69e&&(_0x5ef374[_0x2760c9('0xef0')][_0x2760c9('0x2003')]=_0x58a69e);});}function _0x2deb80(_0x437697){const _0x5af169=_0x435030;_0x397c35[_0x5af169('0xb9')]({'controller':_0x5af169('0x20a5'),'controllerAs':'vm','templateUrl':_0x4aa9fb,'parent':angular[_0x5af169('0x1e73')](_0x4abddd[_0x5af169('0x1d2')]),'clickOutsideToClose':!![],'locals':{'saveCallback':_0x437697}})[_0x5af169('0x11bf')](function(_0x4a395c){const _0x5c9f93=_0x5af169;_0x4a395c&&(_0x5ef374[_0x5c9f93('0xef0')]['preproduction']=_0x4a395c);});}function _0x4a8673(_0x1563a8,_0x20827d){const _0x13da24=_0x435030,_0x39eb46={'preproduction':_0x1563a8};_0x20827d&&(_0x39eb46[_0x13da24('0x364')]=_0x1563a8),_0xb53b8e['squareProject'][_0x13da24('0x5ab')]({'id':_0x5ef374[_0x13da24('0xef0')]['id']},_0x39eb46)['$promise'][_0x13da24('0x11bf')](function(_0x240b17){const _0x52ccc2=_0x13da24;_0x4252c9[_0x52ccc2('0x2693')]({'title':_0x52ccc2('0x7cb')+(_0x20827d?_0x52ccc2('0x134c'):_0x52ccc2('0xf06'))+'!','msg':_0x5ef374[_0x52ccc2('0xef0')]['name']?_0x5ef374['project'][_0x52ccc2('0x1909')]+_0x52ccc2('0x23d1')+(_0x20827d?_0x52ccc2('0x134c'):'saved')+'!':''}),_0x5ef374[_0x52ccc2('0xef0')][_0x52ccc2('0x2003')]=_0x240b17[_0x52ccc2('0x2003')];})[_0x13da24('0x151d')](function(_0x27594b){const _0x2bdba4=_0x13da24;_0x4252c9[_0x2bdba4('0x255')]({'title':_0x27594b['status']?_0x2bdba4('0x574')+_0x27594b[_0x2bdba4('0xff9')]+_0x2bdba4('0xb0b')+_0x27594b[_0x2bdba4('0x212f')]:'SYSTEM:GETsquareProject','msg':_0x27594b['data']?JSON[_0x2bdba4('0x3e')](_0x27594b[_0x2bdba4('0x4e8')]):_0x27594b[_0x2bdba4('0xaab')]()});});}function _0x1c1695(){const _0x190974=_0x435030;_0x13f0d6['go'](_0x190974('0x15a3'),{},{'reload':_0x190974('0x15a3')});}}const _0x168fd5=_0x67f80a;_0xcece99['$inject']=[_0x21d0f5('0x1b80'),_0x21d0f5('0xcbc'),_0x21d0f5('0x18fe'),_0x21d0f5('0xa62'),_0x21d0f5('0x25bc'),_0x21d0f5('0x1d63'),_0x21d0f5('0x12a5'),_0x21d0f5('0xda9'),_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),'$timeout','toasty','Auth'];function _0xcece99(_0x2edb03,_0x574bdb,_0x10ad59,_0x2b1cd7,_0x2db305,_0x438e5a,_0x85487a,_0x454e25,_0x418e37,_0x5e1241,_0x1e2c81,_0x209f6c,_0x1e21f6){const _0x1d1586=_0x21d0f5,_0x1a6b19=this;_0x1a6b19[_0x1d1586('0x32a')]=_0x1e21f6['getCurrentUser'](),_0x1a6b19['projects']=_0x2b1cd7||{'count':0x0,'rows':[]},_0x1a6b19[_0x1d1586('0x25bc')]=_0x2db305,_0x1a6b19[_0x1d1586('0x1d63')]=_0x438e5a&&_0x438e5a[_0x1d1586('0x27d2')]==0x1?_0x438e5a[_0x1d1586('0x19b2')][0x0]:null,_0x1a6b19[_0x1d1586('0xb25')]=_0x1e21f6[_0x1d1586('0x1530')](_0x1a6b19[_0x1d1586('0x1d63')]?_0x1a6b19[_0x1d1586('0x1d63')]['crudPermissions']:null),_0x1a6b19[_0x1d1586('0x13e8')]=_0x1d1586('0xa62'),_0x1a6b19[_0x1d1586('0x724')]='',_0x1a6b19[_0x1d1586('0xe3c')]=null,_0x1a6b19[_0x1d1586('0x24b1')]=[],_0x1a6b19['query']={'fields':'id,name,description,notes','sort':_0x1d1586('0x1c74'),'limit':0xa,'page':0x1},_0x1a6b19[_0x1d1586('0x757')]=_0x37a84a,_0x1a6b19[_0x1d1586('0x549')]=_0x117e0e,_0x1a6b19[_0x1d1586('0x2693')]=_0x912de1,_0x1a6b19[_0x1d1586('0x145e')]=_0x3c5468,_0x1a6b19[_0x1d1586('0x1466')]=_0x3eedb4,_0x1a6b19[_0x1d1586('0x8c4')]=_0x11c26a,_0x1a6b19[_0x1d1586('0x266a')]=_0x234335,_0x1a6b19[_0x1d1586('0x12d9')]=_0x5c04b4,_0x1a6b19[_0x1d1586('0x3ba')]=_0x8ad9c8,_0x1a6b19[_0x1d1586('0x1044')]=_0x1b2e3c;function _0x37a84a(_0x2f4178){const _0x4a6f9c=_0x1d1586;_0x574bdb['go']('app.callysquare.projects.edit',{'id':_0x2f4178['id'],'crudPermissions':_0x1a6b19[_0x4a6f9c('0xb25')]});}function _0x117e0e(_0xb5513e,_0x96b87){const _0x34cce2=_0x1d1586,_0xe8c3b5=_0x418e37[_0x34cce2('0x132b')]()[_0x34cce2('0x134b')](_0x34cce2('0x2821'))[_0x34cce2('0x1d03')](_0x34cce2('0x2061')+_0xb5513e[_0x34cce2('0x1909')]+_0x34cce2('0x1c78')+_0x34cce2('0x1a'))[_0x34cce2('0xb2e')](_0x34cce2('0x986'))[_0x34cce2('0x1e25')](_0x96b87)['ok']('OK')['cancel'](_0x34cce2('0x772'));_0x418e37['show'](_0xe8c3b5)[_0x34cce2('0x11bf')](function(){_0x11c26a(_0xb5513e);},function(){const _0x53fed5=_0x34cce2;console['log'](_0x53fed5('0x772'));});}let _0x459222=!![],_0x17f2fd=0x1;_0x2edb03[_0x1d1586('0x2087')](_0x1d1586('0x842'),function(_0x3c569c,_0x6ead33){const _0x3fd202=_0x1d1586;_0x459222?_0x1e2c81(function(){_0x459222=![];}):(!_0x6ead33&&(_0x17f2fd=_0x1a6b19['query'][_0x3fd202('0x1c2')]),_0x3c569c!==_0x6ead33&&(_0x1a6b19[_0x3fd202('0x1f2a')][_0x3fd202('0x1c2')]=0x1),!_0x3c569c&&(_0x1a6b19[_0x3fd202('0x1f2a')][_0x3fd202('0x1c2')]=_0x17f2fd),_0x1a6b19['getProjects']());});function _0x912de1(_0x13b9f3){const _0x11a0b2=_0x1d1586;_0x1a6b19[_0x11a0b2('0xa62')]=_0x13b9f3||{'count':0x0,'rows':[]};}function _0x3c5468(){const _0x8de71e=_0x1d1586;_0x1a6b19[_0x8de71e('0x1f2a')][_0x8de71e('0x1393')]=(_0x1a6b19[_0x8de71e('0x1f2a')]['page']-0x1)*_0x1a6b19[_0x8de71e('0x1f2a')]['limit'],_0x1e21f6['hasRole'](_0x8de71e('0xf45'))?_0x1a6b19[_0x8de71e('0x13f')]=_0x85487a[_0x8de71e('0x1671')][_0x8de71e('0xbaa')](_0x1a6b19[_0x8de71e('0x1f2a')],_0x912de1)[_0x8de71e('0x1549')]:(_0x1a6b19[_0x8de71e('0x1f2a')]['id']=_0x1a6b19['userProfile']['id'],_0x1a6b19[_0x8de71e('0x1f2a')][_0x8de71e('0xe6')]='SquareProjects',_0x1a6b19[_0x8de71e('0x13f')]=_0x85487a[_0x8de71e('0x25bc')][_0x8de71e('0x228e')](_0x1a6b19[_0x8de71e('0x1f2a')],_0x912de1)[_0x8de71e('0x1549')]);}function _0x3eedb4(_0x2ce901,_0x2a04fe){const _0x10a3cd=_0x1d1586;_0x418e37[_0x10a3cd('0xb9')]({'controller':_0x10a3cd('0x1300'),'controllerAs':'vm','templateUrl':_0x56d733,'parent':angular[_0x10a3cd('0x1e73')](_0x5e1241['body']),'targetEvent':_0x2ce901,'clickOutsideToClose':!![],'locals':{'project':_0x2a04fe,'projects':_0x1a6b19[_0x10a3cd('0xa62')][_0x10a3cd('0x19b2')],'openFromEditor':null,'setting':null,'crudPermissions':_0x1a6b19[_0x10a3cd('0xb25')]}});}function _0x11c26a(_0x33c5ef){const _0x2a3e7c=_0x1d1586;_0x85487a[_0x2a3e7c('0x1671')][_0x2a3e7c('0x2088')]({'id':_0x33c5ef['id']})[_0x2a3e7c('0x1549')]['then'](function(){const _0x19d54e=_0x2a3e7c;_0x36f548()[_0x19d54e('0x14a5')](_0x1a6b19['projects'][_0x19d54e('0x19b2')],{'id':_0x33c5ef['id']}),_0x1a6b19['projects'][_0x19d54e('0x27d2')]-=0x1,!_0x1a6b19[_0x19d54e('0xa62')][_0x19d54e('0x19b2')]['length']&&_0x1a6b19[_0x19d54e('0x145e')](),_0x209f6c[_0x19d54e('0x2693')]({'title':'Project\x20deleted!','msg':_0x33c5ef[_0x19d54e('0x1909')]?_0x33c5ef['name']+_0x19d54e('0x433'):''});})[_0x2a3e7c('0x151d')](function(_0xb68e81){const _0x1ad05a=_0x2a3e7c;if(_0xb68e81[_0x1ad05a('0x4e8')]&&_0xb68e81['data']['errors']&&_0xb68e81[_0x1ad05a('0x4e8')][_0x1ad05a('0x120f')]['length']){_0x1a6b19['errors']=_0xb68e81['data'][_0x1ad05a('0x120f')]||[{'message':_0xb68e81[_0x1ad05a('0xaab')](),'type':_0x1ad05a('0x8aa')}];for(let _0x3bc6bc=0x0;_0x3bc6bc<_0xb68e81['data']['errors'][_0x1ad05a('0x1e22')];_0x3bc6bc++){_0x209f6c['error']({'title':_0xb68e81[_0x1ad05a('0x4e8')]['errors'][_0x3bc6bc][_0x1ad05a('0x19fd')],'msg':_0xb68e81[_0x1ad05a('0x4e8')][_0x1ad05a('0x120f')][_0x3bc6bc][_0x1ad05a('0x1b86')]});}}else _0x209f6c['error']({'title':_0xb68e81[_0x1ad05a('0xff9')]?'API:'+_0xb68e81[_0x1ad05a('0xff9')]+_0x1ad05a('0xb0b')+_0xb68e81[_0x1ad05a('0x212f')]:'api.project.delete','msg':_0xb68e81[_0x1ad05a('0x4e8')]?JSON[_0x1ad05a('0x3e')](_0xb68e81[_0x1ad05a('0x4e8')][_0x1ad05a('0x1b86')]):_0xb68e81['message']||_0xb68e81[_0x1ad05a('0xaab')]()});});}function _0x234335(){const _0x4cd758=_0x1d1586,_0xd3eaca=angular[_0x4cd758('0x6fb')](_0x1a6b19[_0x4cd758('0x24b1')]);return _0x1a6b19['selectedProjects']=[],_0xd3eaca;}function _0x5c04b4(_0x5959b9){const _0x1845b5=_0x1d1586,_0x2e5b00=_0x418e37['confirm']()[_0x1845b5('0x134b')](_0x1845b5('0x1069'))['htmlContent'](_0x1845b5('0x2061')+_0x1a6b19['selectedProjects']['length']+_0x1845b5('0xac6')+'\x20will\x20be\x20deleted.')[_0x1845b5('0xb2e')](_0x1845b5('0x1f48'))[_0x1845b5('0x1e25')](_0x5959b9)['ok']('OK')[_0x1845b5('0x26c9')](_0x1845b5('0x772'));_0x418e37['show'](_0x2e5b00)[_0x1845b5('0x11bf')](function(){const _0x2ba595=_0x1845b5;_0x1a6b19[_0x2ba595('0x24b1')][_0x2ba595('0x1f88')](function(_0x5e4224){_0x11c26a(_0x5e4224);}),_0x1a6b19['selectedProjects']=[];});}function _0x8ad9c8(){_0x1a6b19['selectedProjects']=[];}function _0x1b2e3c(){const _0x46f0aa=_0x1d1586;_0x1a6b19[_0x46f0aa('0x24b1')]=_0x1a6b19[_0x46f0aa('0xa62')][_0x46f0aa('0x19b2')];}}const _0x38621f=_0xcece99;_0xb5b64f[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x13d6')];function _0xb5b64f(_0x12066c){const _0x38f8f9=_0x21d0f5;_0x12066c[_0x38f8f9('0x2124')]('app.callysquare.projects',{'url':_0x38f8f9('0x16d'),'views':{'content@app':{'templateUrl':_0x2edaa2,'controller':'ProjectsController\x20as\x20vm'}},'resolve':{'projects':[_0x38f8f9('0x218e'),_0x38f8f9('0x1150'),function(_0x2a0ff1,_0x33e315){const _0x41cd41=_0x38f8f9;return _0x33e315[_0x41cd41('0x4ee')](_0x41cd41('0xf45'))?_0x2a0ff1[_0x41cd41('0xa28')](_0x41cd41('0x169c'),{'fields':_0x41cd41('0x137f'),'sort':'name','limit':0xa,'offset':0x0}):_0x2a0ff1[_0x41cd41('0xa28')](_0x41cd41('0xb0d'),{'id':_0x33e315[_0x41cd41('0x2428')]()[_0x41cd41('0x781')],'section':'SquareProjects','fields':_0x41cd41('0x137f'),'sort':_0x41cd41('0x1909'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x38f8f9('0x218e'),_0x38f8f9('0x1150'),function(_0x492cf7,_0x41462f){const _0x281cb6=_0x38f8f9;return _0x492cf7[_0x281cb6('0xa28')](_0x281cb6('0x428'),{'fields':_0x281cb6('0xd30'),'id':_0x41462f[_0x281cb6('0x2428')]()[_0x281cb6('0x781')]});}],'userProfileSection':[_0x38f8f9('0x218e'),_0x38f8f9('0x1150'),function(_0x303daa,_0x387e6a){const _0x1c6a9d=_0x38f8f9;return _0x303daa[_0x1c6a9d('0xa28')](_0x1c6a9d('0x2762'),{'fields':_0x1c6a9d('0x36d'),'userProfileId':_0x387e6a['getCurrentUser']()[_0x1c6a9d('0x781')],'sectionId':0x44f});}]},'authenticate':!![],'permissionId':0x44f,'bodyClass':_0x38f8f9('0x89f')})[_0x38f8f9('0x2124')]('app.callysquare.projects.edit',{'url':_0x38f8f9('0x1d17'),'views':{'content@app':{'templateUrl':_0x5d1303,'controller':_0x38f8f9('0x185')}},'params':{'crudPermissions':undefined},'resolve':{'project':['apiResolver','$stateParams',function(_0xe396e8,_0x56a4a7){const _0x38bb27=_0x38f8f9;return _0xe396e8[_0x38bb27('0xa28')]('squareProject@get',{'id':_0x56a4a7['id']});}],'users':['apiResolver',_0x38f8f9('0x1150'),function(_0xdad1f5,_0x20d10b){const _0x4368f3=_0x38f8f9;return _0x20d10b['hasRole']('admin')?_0xdad1f5[_0x4368f3('0xa28')](_0x4368f3('0x2166'),{'fields':'id,fullname,role','sort':_0x4368f3('0x1909'),'nolimit':!![]}):_0xdad1f5[_0x4368f3('0xa28')](_0x4368f3('0xb0d'),{'id':_0x20d10b[_0x4368f3('0x2428')]()[_0x4368f3('0x781')],'section':'Users','mergeResources':!![],'fields':_0x4368f3('0x8e'),'sort':_0x4368f3('0x1909'),'nolimit':!![]});}],'trunks':[_0x38f8f9('0x218e'),_0x38f8f9('0x1150'),function(_0x545e07,_0x30feb4){const _0x5106e2=_0x38f8f9;return _0x30feb4[_0x5106e2('0x4ee')]('admin')?_0x545e07[_0x5106e2('0xa28')](_0x5106e2('0x23cd'),{'fields':'id,name','sort':_0x5106e2('0x1909'),'nolimit':!![]}):_0x545e07[_0x5106e2('0xa28')]('userProfile@getResources',{'id':_0x30feb4[_0x5106e2('0x2428')]()['userProfileId'],'section':'Trunks','fields':'id,name','sort':_0x5106e2('0x1909'),'nolimit':!![]});}],'queues':[_0x38f8f9('0x218e'),_0x38f8f9('0x1150'),function(_0x428a62,_0x54b5a8){const _0x55df5c=_0x38f8f9;return _0x54b5a8[_0x55df5c('0x4ee')](_0x55df5c('0xf45'))?_0x428a62['resolve'](_0x55df5c('0x987'),{'type':_0x55df5c('0x18a2'),'fields':_0x55df5c('0x721'),'sort':_0x55df5c('0x1909'),'nolimit':!![]}):_0x428a62[_0x55df5c('0xa28')](_0x55df5c('0xb0d'),{'id':_0x54b5a8[_0x55df5c('0x2428')]()[_0x55df5c('0x781')],'section':_0x55df5c('0xc85'),'type':_0x55df5c('0x18a2'),'fields':'id,name','sort':'name','nolimit':!![]});}],'sounds':[_0x38f8f9('0x218e'),_0x38f8f9('0x1150'),function(_0x531357,_0x3f9463){const _0x4a7bd7=_0x38f8f9;return _0x3f9463[_0x4a7bd7('0x4ee')](_0x4a7bd7('0xf45'))?_0x531357[_0x4a7bd7('0xa28')](_0x4a7bd7('0x2163'),{'fields':_0x4a7bd7('0x721'),'sort':_0x4a7bd7('0x1909'),'nolimit':!![]}):_0x531357[_0x4a7bd7('0xa28')](_0x4a7bd7('0xb0d'),{'id':_0x3f9463[_0x4a7bd7('0x2428')]()['userProfileId'],'section':_0x4a7bd7('0x1bfe'),'fields':_0x4a7bd7('0x721'),'sort':_0x4a7bd7('0x1909'),'nolimit':!![]});}],'variables':['apiResolver',_0x38f8f9('0x1150'),function(_0x59cda3,_0x2f99f1){const _0x314b4=_0x38f8f9;return _0x2f99f1[_0x314b4('0x4ee')]('admin')?_0x59cda3[_0x314b4('0xa28')](_0x314b4('0xa01'),{'fields':_0x314b4('0x721'),'sort':'name','nolimit':!![]}):_0x59cda3[_0x314b4('0xa28')]('userProfile@getResources',{'id':_0x2f99f1[_0x314b4('0x2428')]()[_0x314b4('0x781')],'section':_0x314b4('0xa83'),'fields':_0x314b4('0x721'),'sort':_0x314b4('0x1909'),'nolimit':!![]});}],'databases':[_0x38f8f9('0x218e'),_0x38f8f9('0x1150'),function(_0x7724d1,_0x55785a){const _0x595551=_0x38f8f9;return _0x55785a['hasRole'](_0x595551('0xf45'))?_0x7724d1[_0x595551('0xa28')](_0x595551('0x44e'),{'fields':'id,name','sort':'name','nolimit':!![]}):_0x7724d1[_0x595551('0xa28')](_0x595551('0xb0d'),{'id':_0x55785a['getCurrentUser']()[_0x595551('0x781')],'section':_0x595551('0x17b3'),'fields':_0x595551('0x721'),'sort':_0x595551('0x1909'),'nolimit':!![]});}],'projects':[_0x38f8f9('0x218e'),_0x38f8f9('0x1150'),function(_0x367f92,_0xc93738){const _0x233b69=_0x38f8f9;return _0xc93738[_0x233b69('0x4ee')](_0x233b69('0xf45'))?_0x367f92[_0x233b69('0xa28')](_0x233b69('0x169c'),{'fields':_0x233b69('0x721'),'sort':_0x233b69('0x1909'),'nolimit':!![]}):_0x367f92[_0x233b69('0xa28')](_0x233b69('0xb0d'),{'id':_0xc93738[_0x233b69('0x2428')]()['userProfileId'],'section':_0x233b69('0xc40'),'fields':_0x233b69('0x721'),'sort':_0x233b69('0x1909'),'nolimit':!![]});}],'contexts':[_0x38f8f9('0x218e'),_0x38f8f9('0x1150'),function(_0x5d81eb,_0xff6525){const _0x4f12c2=_0x38f8f9;return _0xff6525[_0x4f12c2('0x4ee')](_0x4f12c2('0xf45'))?_0x5d81eb['resolve'](_0x4f12c2('0x1309'),{'fields':_0x4f12c2('0x721'),'sort':'name','nolimit':!![]}):_0x5d81eb[_0x4f12c2('0xa28')]('userProfile@getResources',{'id':_0xff6525[_0x4f12c2('0x2428')]()[_0x4f12c2('0x781')],'section':_0x4f12c2('0xfcb'),'fields':'id,name','sort':_0x4f12c2('0x1909'),'nolimit':!![]});}],'intervals':[_0x38f8f9('0x218e'),_0x38f8f9('0x1150'),function(_0xe4872f,_0x1e0bec){const _0xd8e76=_0x38f8f9;return _0x1e0bec[_0xd8e76('0x4ee')](_0xd8e76('0xf45'))?_0xe4872f[_0xd8e76('0xa28')](_0xd8e76('0x18f3'),{'fields':_0xd8e76('0x1ab1'),'sort':_0xd8e76('0x1909'),'nolimit':!![]}):_0xe4872f[_0xd8e76('0xa28')](_0xd8e76('0xb0d'),{'id':_0x1e0bec[_0xd8e76('0x2428')]()[_0xd8e76('0x781')],'section':_0xd8e76('0x233e'),'fields':_0xd8e76('0x1ab1'),'sort':'name','nolimit':!![]});}],'mailAccounts':[_0x38f8f9('0x218e'),'Auth',function(_0x51dbf5,_0x44b21a){const _0x2d798f=_0x38f8f9;return _0x44b21a[_0x2d798f('0x4ee')](_0x2d798f('0xf45'))?_0x51dbf5['resolve'](_0x2d798f('0x3f0'),{'fields':_0x2d798f('0x721'),'sort':_0x2d798f('0x1909'),'nolimit':!![]}):_0x51dbf5['resolve'](_0x2d798f('0xb0d'),{'id':_0x44b21a[_0x2d798f('0x2428')]()[_0x2d798f('0x781')],'section':'MailAccounts','fields':_0x2d798f('0x721'),'sort':_0x2d798f('0x1909'),'nolimit':!![]});}],'templates':[_0x38f8f9('0x218e'),_0x38f8f9('0x1150'),function(_0x55d10c,_0x1ae51c){const _0x481205=_0x38f8f9;return _0x1ae51c[_0x481205('0x4ee')]('admin')?_0x55d10c[_0x481205('0xa28')](_0x481205('0x1da3'),{'fields':_0x481205('0x721'),'sort':_0x481205('0x1909'),'nolimit':!![]}):_0x55d10c['resolve'](_0x481205('0xb0d'),{'id':_0x1ae51c[_0x481205('0x2428')]()[_0x481205('0x781')],'section':_0x481205('0x61d'),'fields':_0x481205('0x721'),'sort':_0x481205('0x1909'),'nolimit':!![]});}],'lists':[_0x38f8f9('0x218e'),'Auth',function(_0xd2eabe,_0x24b5ff){const _0xea1c8d=_0x38f8f9;return _0x24b5ff['hasRole'](_0xea1c8d('0xf45'))?_0xd2eabe[_0xea1c8d('0xa28')](_0xea1c8d('0x1f69'),{'fields':_0xea1c8d('0x721'),'sort':_0xea1c8d('0x1909'),'nolimit':!![]}):_0xd2eabe[_0xea1c8d('0xa28')](_0xea1c8d('0xb0d'),{'id':_0x24b5ff[_0xea1c8d('0x2428')]()[_0xea1c8d('0x781')],'section':_0xea1c8d('0x2244'),'fields':_0xea1c8d('0x721'),'sort':_0xea1c8d('0x1909'),'nolimit':!![]});}],'smsAccounts':[_0x38f8f9('0x218e'),_0x38f8f9('0x1150'),function(_0x22bf50,_0x51d33d){const _0x344938=_0x38f8f9;return _0x51d33d[_0x344938('0x4ee')](_0x344938('0xf45'))?_0x22bf50[_0x344938('0xa28')](_0x344938('0xc77'),{'fields':'id,name','sort':_0x344938('0x1909'),'nolimit':!![]}):_0x22bf50['resolve'](_0x344938('0xb0d'),{'id':_0x51d33d[_0x344938('0x2428')]()[_0x344938('0x781')],'section':'SmsAccounts','fields':_0x344938('0x721'),'sort':_0x344938('0x1909'),'nolimit':!![]});}],'pauses':[_0x38f8f9('0x218e'),'Auth',function(_0x4b7327,_0x472f5f){const _0x5e5672=_0x38f8f9;return _0x472f5f[_0x5e5672('0x4ee')](_0x5e5672('0xf45'))?_0x4b7327[_0x5e5672('0xa28')]('pause@get',{'fields':_0x5e5672('0x721'),'sort':_0x5e5672('0x1909'),'nolimit':!![]}):_0x4b7327['resolve']('userProfile@getResources',{'id':_0x472f5f[_0x5e5672('0x2428')]()['userProfileId'],'section':'Pauses','fields':_0x5e5672('0x721'),'sort':_0x5e5672('0x1909'),'nolimit':!![]});}],'userProfileSection':['apiResolver',_0x38f8f9('0x1150'),function(_0x418a11,_0x48cc2a){const _0x552eb1=_0x38f8f9;return _0x418a11[_0x552eb1('0xa28')](_0x552eb1('0x2762'),{'fields':_0x552eb1('0x36d'),'userProfileId':_0x48cc2a[_0x552eb1('0x2428')]()[_0x552eb1('0x781')],'sectionId':0x44f});}]},'authenticate':!![],'permissionId':0x44f,'bodyClass':_0x38f8f9('0x89f')});}angular[_0x21d0f5('0x2768')](_0x21d0f5('0x15a3'),[])['config'](_0xb5b64f)[_0x21d0f5('0x23eb')]('CreateOrEditSquareProjectDialogController',_0x2fb3a0)[_0x21d0f5('0x23eb')]('MxGraphDialogController',_0x252e5b)['directive']('stringToNumber',_0x25bd4f)[_0x21d0f5('0x2729')](_0x21d0f5('0x123e'),_0x31de37)[_0x21d0f5('0x2729')](_0x21d0f5('0xadc'),_0xfe7f86)[_0x21d0f5('0x2729')](_0x21d0f5('0x54f'),_0x31342a)['factory'](_0x21d0f5('0x17f4'),_0x4d2810)[_0x21d0f5('0x2729')](_0x21d0f5('0x2711'),_0x141f01)[_0x21d0f5('0x2729')](_0x21d0f5('0x1576'),_0x2f753e)[_0x21d0f5('0x2729')]('awsPollyVoice',_0xc1ba67)['factory'](_0x21d0f5('0x1b5f'),_0xf44ad1)[_0x21d0f5('0x2729')]('awsLexRegion',_0x5bbf23)[_0x21d0f5('0x2729')]('dialogFlowLanguage',_0x1ff649)['factory'](_0x21d0f5('0x6de'),_0x3f60b0)[_0x21d0f5('0x23eb')](_0x21d0f5('0x18ad'),_0x4f1a36)[_0x21d0f5('0x23eb')](_0x21d0f5('0x20a5'),_0x468323)[_0x21d0f5('0x23eb')](_0x21d0f5('0x6fe'),_0x436235)[_0x21d0f5('0x23eb')](_0x21d0f5('0xd9d'),_0xa8a0c5)[_0x21d0f5('0x23eb')](_0x21d0f5('0x25'),_0x2fa74e)[_0x21d0f5('0x23eb')](_0x21d0f5('0x1f13'),_0x32fd30)[_0x21d0f5('0x23eb')](_0x21d0f5('0x15f6'),_0x168fd5)[_0x21d0f5('0x23eb')](_0x21d0f5('0x3e4'),_0x38621f);const _0x2a053e=_0x351988['p']+'src/js/modules/main/apps/callysquare/views/odbcs/odbcs.html/odbcs.html',_0x5729da=_0x351988['p']+_0x21d0f5('0x1c86');_0x3d0843[_0x21d0f5('0x1e9a')]=['$scope',_0x21d0f5('0xcbc'),_0x21d0f5('0x16b9'),_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0xb6b'),'toasty','odbcs',_0x21d0f5('0xdef'),'api',_0x21d0f5('0x1150'),_0x21d0f5('0x17ff'),'setting',_0x21d0f5('0xb25')];function _0x3d0843(_0x575b70,_0x3bb175,_0x3f9c0b,_0x55706e,_0x11c8d6,_0x5ecea8,_0x596233,_0x4e4922,_0x856a46,_0x130274,_0x37037a,_0x1913da,_0x19560d,_0x845a55){const _0x57fdb0=_0x21d0f5,_0x96d54a=this;_0x96d54a[_0x57fdb0('0x32a')]=_0x37037a['getCurrentUser'](),_0x96d54a[_0x57fdb0('0x120f')]=[],_0x96d54a[_0x57fdb0('0x23e1')]=_0x19560d,_0x96d54a[_0x57fdb0('0x17ff')]=_0x1913da,_0x96d54a[_0x57fdb0('0xb25')]=_0x845a55,_0x96d54a['hasModulePermissions']={},_0x96d54a[_0x57fdb0('0x2834')]=_0x96d54a[_0x57fdb0('0x23e1')]&&_0x96d54a[_0x57fdb0('0x23e1')][_0x57fdb0('0x1d4')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x96d54a[_0x57fdb0('0x134b')]='CALLYSQUARE.EDIT_ODBC',_0x96d54a['odbc']=angular[_0x57fdb0('0x6fb')](_0x856a46),_0x96d54a['odbcs']=_0x4e4922,_0x96d54a['newOdbc']=![];!_0x96d54a[_0x57fdb0('0xdef')]&&(_0x96d54a[_0x57fdb0('0xdef')]={},_0x96d54a[_0x57fdb0('0x134b')]='CALLYSQUARE.NEW_ODBC',_0x96d54a[_0x57fdb0('0x271b')]=!![]);_0x96d54a[_0x57fdb0('0x106d')]=_0x37bb53,_0x96d54a['saveOdbc']=_0x3587c2,_0x96d54a[_0x57fdb0('0x180')]=_0x1eaed9,_0x96d54a[_0x57fdb0('0x1bd1')]=_0x517ab5,_0x96d54a[_0x57fdb0('0xc4e')]=_0x4fd5e8;function _0x37bb53(){const _0x409917=_0x57fdb0;_0x96d54a[_0x409917('0x120f')]=[],_0x130274[_0x409917('0x80d')][_0x409917('0x259')](_0x96d54a[_0x409917('0xdef')])['$promise']['then'](function(_0x5097b0){const _0xa4c702=_0x409917;_0x96d54a['odbcs']['unshift'](_0x5097b0[_0xa4c702('0x2866')]()),_0x596233['success']({'title':_0xa4c702('0x270c'),'msg':_0x96d54a['odbc'][_0xa4c702('0x1909')]?_0x96d54a['odbc']['name']+_0xa4c702('0x7fb'):''}),_0x4fd5e8(_0x5097b0);})[_0x409917('0x151d')](function(_0x1c94b9){const _0x3fd430=_0x409917;if(_0x1c94b9[_0x3fd430('0x4e8')]&&_0x1c94b9[_0x3fd430('0x4e8')][_0x3fd430('0x120f')]&&_0x1c94b9[_0x3fd430('0x4e8')][_0x3fd430('0x120f')][_0x3fd430('0x1e22')]){_0x96d54a[_0x3fd430('0x120f')]=_0x1c94b9[_0x3fd430('0x4e8')][_0x3fd430('0x120f')]||[{'message':_0x1c94b9[_0x3fd430('0xaab')](),'type':_0x3fd430('0x219c')}];for(let _0x3aeef3=0x0;_0x3aeef3<_0x1c94b9[_0x3fd430('0x4e8')][_0x3fd430('0x120f')][_0x3fd430('0x1e22')];_0x3aeef3+=0x1){_0x596233[_0x3fd430('0x255')]({'title':_0x1c94b9[_0x3fd430('0x4e8')][_0x3fd430('0x120f')][_0x3aeef3][_0x3fd430('0x19fd')],'msg':_0x1c94b9[_0x3fd430('0x4e8')][_0x3fd430('0x120f')][_0x3aeef3][_0x3fd430('0x1b86')]});}}else _0x596233[_0x3fd430('0x255')]({'title':_0x1c94b9[_0x3fd430('0xff9')]?_0x3fd430('0x574')+_0x1c94b9[_0x3fd430('0xff9')]+_0x3fd430('0xb0b')+_0x1c94b9[_0x3fd430('0x212f')]:_0x3fd430('0x219c'),'msg':_0x1c94b9[_0x3fd430('0x4e8')]?JSON[_0x3fd430('0x3e')](_0x1c94b9[_0x3fd430('0x4e8')][_0x3fd430('0x1b86')]):_0x1c94b9[_0x3fd430('0xaab')]()});});}function _0x3587c2(){const _0x19bb1c=_0x57fdb0;_0x96d54a[_0x19bb1c('0x120f')]=[],_0x130274['squareOdbc'][_0x19bb1c('0x5ab')]({'id':_0x96d54a[_0x19bb1c('0xdef')]['id']},_0x96d54a[_0x19bb1c('0xdef')])[_0x19bb1c('0x1549')][_0x19bb1c('0x11bf')](function(_0x1beecd){const _0x371fde=_0x19bb1c,_0x354b84=_0x36f548()[_0x371fde('0x1ad4')](_0x96d54a[_0x371fde('0x25d7')],{'id':_0x1beecd['id']});_0x354b84&&_0x36f548()[_0x371fde('0x47b')](_0x354b84,_0x36f548()[_0x371fde('0x258')](_0x1beecd[_0x371fde('0x2866')](),_0x36f548()[_0x371fde('0xe22')](_0x354b84))),_0x596233[_0x371fde('0x2693')]({'title':'Odbc\x20properly\x20saved!','msg':_0x96d54a[_0x371fde('0xdef')]['name']?_0x96d54a[_0x371fde('0xdef')][_0x371fde('0x1909')]+_0x371fde('0x1a78'):''}),_0x4fd5e8(_0x1beecd);})['catch'](function(_0x4d35cd){const _0x279077=_0x19bb1c;if(_0x4d35cd[_0x279077('0x4e8')]&&_0x4d35cd[_0x279077('0x4e8')][_0x279077('0x120f')]&&_0x4d35cd['data'][_0x279077('0x120f')]['length']){_0x96d54a['errors']=_0x4d35cd['data'][_0x279077('0x120f')]||[{'message':_0x4d35cd[_0x279077('0xaab')](),'type':_0x279077('0x1613')}];for(let _0x483f32=0x0;_0x483f32<_0x4d35cd['data'][_0x279077('0x120f')]['length'];_0x483f32++){_0x596233[_0x279077('0x255')]({'title':_0x4d35cd[_0x279077('0x4e8')][_0x279077('0x120f')][_0x483f32][_0x279077('0x19fd')],'msg':_0x4d35cd[_0x279077('0x4e8')]['errors'][_0x483f32][_0x279077('0x1b86')]});}}else _0x596233[_0x279077('0x255')]({'title':_0x4d35cd[_0x279077('0xff9')]?_0x279077('0x574')+_0x4d35cd[_0x279077('0xff9')]+_0x279077('0xb0b')+_0x4d35cd[_0x279077('0x212f')]:_0x279077('0x1613'),'msg':_0x4d35cd[_0x279077('0x4e8')]?JSON['stringify'](_0x4d35cd[_0x279077('0x4e8')][_0x279077('0x1b86')]):_0x4d35cd[_0x279077('0xaab')]()});});}function _0x1eaed9(_0x2c120b){const _0x40ef61=_0x57fdb0;_0x96d54a[_0x40ef61('0x120f')]=[];const _0x41bab5=_0x55706e[_0x40ef61('0x132b')]()['title']('Are\x20you\x20sure?')[_0x40ef61('0x252a')]('The\x20odbc\x20will\x20be\x20deleted.')[_0x40ef61('0xb2e')](_0x40ef61('0x14af'))['ok'](_0x40ef61('0x1167'))[_0x40ef61('0x26c9')]('Cancel')[_0x40ef61('0x1e25')](_0x2c120b);_0x55706e[_0x40ef61('0xb9')](_0x41bab5)[_0x40ef61('0x11bf')](function(){const _0x54291d=_0x40ef61;_0x130274[_0x54291d('0x80d')][_0x54291d('0x2088')]({'id':_0x96d54a[_0x54291d('0xdef')]['id']})[_0x54291d('0x1549')][_0x54291d('0x11bf')](function(){const _0x7d0f9d=_0x54291d;_0x36f548()['remove'](_0x96d54a[_0x7d0f9d('0x25d7')],{'id':_0x96d54a[_0x7d0f9d('0xdef')]['id']}),_0x596233[_0x7d0f9d('0x2693')]({'title':_0x7d0f9d('0x21cc'),'msg':(_0x96d54a['odbc']['name']||'odbc')+'\x20has\x20been\x20deleted!'}),_0x4fd5e8(_0x96d54a[_0x7d0f9d('0xdef')]);})[_0x54291d('0x151d')](function(_0x4f41bb){const _0x266005=_0x54291d;if(_0x4f41bb[_0x266005('0x4e8')]&&_0x4f41bb[_0x266005('0x4e8')][_0x266005('0x120f')]&&_0x4f41bb['data'][_0x266005('0x120f')][_0x266005('0x1e22')]){_0x96d54a['errors']=_0x4f41bb['data'][_0x266005('0x120f')]||[{'message':_0x4f41bb[_0x266005('0xaab')](),'type':_0x266005('0xbdf')}];for(let _0x468e2d=0x0;_0x468e2d<_0x4f41bb[_0x266005('0x4e8')][_0x266005('0x120f')][_0x266005('0x1e22')];_0x468e2d++){_0x596233[_0x266005('0x255')]({'title':_0x4f41bb[_0x266005('0x4e8')][_0x266005('0x120f')][_0x468e2d]['type'],'msg':_0x4f41bb[_0x266005('0x4e8')]['errors'][_0x468e2d][_0x266005('0x1b86')]});}}else _0x596233[_0x266005('0x255')]({'title':_0x4f41bb[_0x266005('0xff9')]?_0x266005('0x574')+_0x4f41bb[_0x266005('0xff9')]+'\x20-\x20'+_0x4f41bb[_0x266005('0x212f')]:_0x266005('0xbdf'),'msg':_0x4f41bb[_0x266005('0x4e8')]?JSON[_0x266005('0x3e')](_0x4f41bb[_0x266005('0x4e8')][_0x266005('0x1b86')]):_0x4f41bb['message']||_0x4f41bb[_0x266005('0xaab')]()});});},function(){});}function _0x517ab5(_0x4d8a66){return _0x4d8a66===null?undefined:new Date(_0x4d8a66);}function _0x4fd5e8(_0x1f25d4){_0x55706e['hide'](_0x1f25d4);}}const _0x8fbd09=_0x3d0843,_0x4b6637=_0x351988['p']+_0x21d0f5('0x22f8');_0x15ba87['$inject']=['$scope','$window',_0x21d0f5('0xcbc'),'$mdSidenav',_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),_0x21d0f5('0x17f5'),_0x21d0f5('0xb6b'),_0x21d0f5('0x25d7'),'userProfile',_0x21d0f5('0x1d63'),'api','msUtils',_0x21d0f5('0x142d'),_0x21d0f5('0x1150'),_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1')];function _0x15ba87(_0x3c971a,_0x12257f,_0x182828,_0x15bf83,_0x2e25aa,_0x5e0aeb,_0x1f63dc,_0x3b911c,_0x1c1c26,_0x1b0195,_0x3d939c,_0x1cdd51,_0x995e5e,_0x430ccb,_0x148027,_0x146b61,_0x3d6823){const _0xba72fa=_0x21d0f5,_0x4d7174=this;_0x4d7174[_0xba72fa('0x17ff')]=_0x146b61,_0x4d7174[_0xba72fa('0x23e1')]=_0x3d6823,_0x4d7174[_0xba72fa('0x32a')]=_0x148027[_0xba72fa('0x2428')](),_0x4d7174[_0xba72fa('0x25d7')]=_0x1c1c26||{'count':0x0,'rows':[]},_0x4d7174['userProfile']=_0x1b0195,_0x4d7174['userProfileSection']=_0x3d939c&&_0x3d939c[_0xba72fa('0x27d2')]==0x1?_0x3d939c[_0xba72fa('0x19b2')][0x0]:null,_0x4d7174[_0xba72fa('0xb25')]=_0x148027[_0xba72fa('0x1530')](_0x4d7174['userProfileSection']?_0x4d7174[_0xba72fa('0x1d63')][_0xba72fa('0xb25')]:null),_0x4d7174[_0xba72fa('0x13e8')]=_0xba72fa('0x25d7'),_0x4d7174['listOrder']='',_0x4d7174[_0xba72fa('0xe3c')]=null,_0x4d7174[_0xba72fa('0x8c3')]=[],_0x4d7174[_0xba72fa('0x1f2a')]={'fields':_0xba72fa('0xeb1'),'sort':_0xba72fa('0x1c74'),'limit':0xa,'page':0x1},_0x4d7174[_0xba72fa('0xc03')]=_0x29ba68,_0x4d7174[_0xba72fa('0x240')]=_0x2bb8dd,_0x4d7174['deleteconfirm']=_0x472938,_0x4d7174[_0xba72fa('0x2693')]=_0x38e85a,_0x4d7174['getODBC']=_0x517b5d,_0x4d7174[_0xba72fa('0x222e')]=_0x1af791,_0x4d7174[_0xba72fa('0x180')]=_0xc8d1c3,_0x4d7174[_0xba72fa('0x1a4c')]=_0x386daa,_0x4d7174[_0xba72fa('0xc9b')]=_0x1f1ade,_0x4d7174[_0xba72fa('0x1cc8')]=_0x2ff554,_0x4d7174['selectAllODBC']=_0x59a901;function _0x29ba68(_0x4d40c5,_0xfd8762){const _0x2527b4=_0xba72fa;_0x2e25aa[_0x2527b4('0xb9')]({'controller':_0x2527b4('0x1722'),'controllerAs':'vm','templateUrl':_0x4b6637,'parent':angular[_0x2527b4('0x1e73')](_0x5e0aeb[_0x2527b4('0x1d2')]),'targetEvent':_0xfd8762,'clickOutsideToClose':!![],'locals':{'odbc':_0x4d40c5,'odbcs':_0x4d7174[_0x2527b4('0x25d7')][_0x2527b4('0x19b2')],'license':_0x4d7174[_0x2527b4('0x17ff')],'setting':null,'crudPermissions':_0x4d7174[_0x2527b4('0xb25')]}});}function _0x2bb8dd(_0x365602){const _0x174f0c=_0xba72fa;return _0x1cdd51[_0x174f0c('0x80d')][_0x174f0c('0x6eb')]({'id':_0x365602['id']})['$promise']['then'](function(){const _0x54972c=_0x174f0c;_0x430ccb[_0x54972c('0x2693')]({'title':_0x54972c('0x1989'),'msg':_0x54972c('0x1b13')});})[_0x174f0c('0x151d')](function(_0x2cf2da){const _0x1b3a1d=_0x174f0c;_0x430ccb[_0x1b3a1d('0x255')]({'title':_0x1b3a1d('0x1989'),'msg':_0x2cf2da[_0x1b3a1d('0x4e8')]?JSON[_0x1b3a1d('0x3e')](_0x2cf2da[_0x1b3a1d('0x4e8')]):_0x2cf2da['toString']()});});}function _0x472938(_0x490426,_0x3ea925){const _0x25a46f=_0xba72fa,_0x23d332=_0x2e25aa[_0x25a46f('0x132b')]()[_0x25a46f('0x134b')](_0x25a46f('0x1796')+_0x36f548()[_0x25a46f('0x13cf')](_0x25a46f('0xdef'))+'?')[_0x25a46f('0x1d03')](_0x25a46f('0x2061')+(_0x490426[_0x25a46f('0x1909')]||_0x25a46f('0xdef'))+_0x25a46f('0x1c78')+_0x25a46f('0x1a'))['ariaLabel']('delete\x20odbc')['targetEvent'](_0x3ea925)['ok']('OK')[_0x25a46f('0x26c9')](_0x25a46f('0x772'));_0x2e25aa[_0x25a46f('0xb9')](_0x23d332)['then'](function(){_0xc8d1c3(_0x490426);},function(){console['log']('CANCEL');});}let _0x1e9430=!![],_0x426c5b=0x1;_0x3c971a[_0xba72fa('0x2087')](_0xba72fa('0x842'),function(_0x4652d1,_0xc4be8d){const _0x3ae812=_0xba72fa;_0x1e9430?_0x1f63dc(function(){_0x1e9430=![];}):(!_0xc4be8d&&(_0x426c5b=_0x4d7174[_0x3ae812('0x1f2a')][_0x3ae812('0x1c2')]),_0x4652d1!==_0xc4be8d&&(_0x4d7174['query']['page']=0x1),!_0x4652d1&&(_0x4d7174[_0x3ae812('0x1f2a')][_0x3ae812('0x1c2')]=_0x426c5b),_0x4d7174[_0x3ae812('0x1d1d')]());});function _0x38e85a(_0x9feaac){const _0x4dc0ac=_0xba72fa;_0x4d7174[_0x4dc0ac('0x25d7')]=_0x9feaac||{'count':0x0,'rows':[]};}function _0x517b5d(){const _0x14446d=_0xba72fa;_0x4d7174[_0x14446d('0x1f2a')][_0x14446d('0x1393')]=(_0x4d7174[_0x14446d('0x1f2a')]['page']-0x1)*_0x4d7174[_0x14446d('0x1f2a')][_0x14446d('0xd5c')],_0x148027[_0x14446d('0x4ee')](_0x14446d('0xf45'))?_0x4d7174[_0x14446d('0x13f')]=_0x1cdd51['squareOdbc'][_0x14446d('0xbaa')](_0x4d7174[_0x14446d('0x1f2a')],_0x38e85a)[_0x14446d('0x1549')]:(_0x4d7174['query']['id']=_0x4d7174[_0x14446d('0x25bc')]['id'],_0x4d7174[_0x14446d('0x1f2a')][_0x14446d('0xe6')]='ODBC',_0x4d7174[_0x14446d('0x13f')]=_0x1cdd51[_0x14446d('0x25bc')][_0x14446d('0x228e')](_0x4d7174[_0x14446d('0x1f2a')],_0x38e85a)[_0x14446d('0x1549')]);}function _0x1af791(_0x754d49,_0x4d47aa){const _0x25ee9e=_0xba72fa;_0x2e25aa['show']({'controller':_0x25ee9e('0x1722'),'controllerAs':'vm','templateUrl':_0x4b6637,'parent':angular[_0x25ee9e('0x1e73')](_0x5e0aeb[_0x25ee9e('0x1d2')]),'targetEvent':_0x754d49,'clickOutsideToClose':!![],'locals':{'odbc':_0x4d47aa,'odbcs':_0x4d7174[_0x25ee9e('0x25d7')][_0x25ee9e('0x19b2')],'license':_0x4d7174[_0x25ee9e('0x17ff')],'setting':_0x4d7174[_0x25ee9e('0x23e1')],'crudPermissions':_0x4d7174[_0x25ee9e('0xb25')]}});}function _0xc8d1c3(_0x5c3d0d){const _0x33327e=_0xba72fa;_0x1cdd51[_0x33327e('0x80d')][_0x33327e('0x2088')]({'id':_0x5c3d0d['id']})[_0x33327e('0x1549')][_0x33327e('0x11bf')](function(){const _0x5d9f91=_0x33327e;_0x36f548()[_0x5d9f91('0x14a5')](_0x4d7174[_0x5d9f91('0x25d7')][_0x5d9f91('0x19b2')],{'id':_0x5c3d0d['id']}),_0x4d7174['odbcs'][_0x5d9f91('0x27d2')]-=0x1,!_0x4d7174['odbcs'][_0x5d9f91('0x19b2')][_0x5d9f91('0x1e22')]&&_0x4d7174[_0x5d9f91('0x1d1d')](),_0x430ccb[_0x5d9f91('0x2693')]({'title':_0x36f548()['startCase']('Odbc')+_0x5d9f91('0x2113'),'msg':_0x5c3d0d['name']?_0x5c3d0d[_0x5d9f91('0x1909')]+_0x5d9f91('0x433'):''});})[_0x33327e('0x151d')](function(_0x2ce415){const _0x36ecaf=_0x33327e;if(_0x2ce415['data']&&_0x2ce415[_0x36ecaf('0x4e8')][_0x36ecaf('0x120f')]&&_0x2ce415['data'][_0x36ecaf('0x120f')][_0x36ecaf('0x1e22')]){_0x4d7174[_0x36ecaf('0x120f')]=_0x2ce415[_0x36ecaf('0x4e8')][_0x36ecaf('0x120f')]||[{'message':_0x2ce415['toString'](),'type':_0x36ecaf('0x4e4')}];for(let _0xa31ef8=0x0;_0xa31ef8<_0x2ce415[_0x36ecaf('0x4e8')][_0x36ecaf('0x120f')][_0x36ecaf('0x1e22')];_0xa31ef8++){_0x430ccb[_0x36ecaf('0x255')]({'title':_0x2ce415[_0x36ecaf('0x4e8')][_0x36ecaf('0x120f')][_0xa31ef8][_0x36ecaf('0x19fd')],'msg':_0x2ce415[_0x36ecaf('0x4e8')]['errors'][_0xa31ef8][_0x36ecaf('0x1b86')]});}}else _0x430ccb[_0x36ecaf('0x255')]({'title':_0x2ce415['status']?_0x36ecaf('0x574')+_0x2ce415[_0x36ecaf('0xff9')]+_0x36ecaf('0xb0b')+_0x2ce415[_0x36ecaf('0x212f')]:'SYSTEM:DELETEsquareOdbc','msg':_0x2ce415[_0x36ecaf('0x4e8')]?JSON[_0x36ecaf('0x3e')](_0x2ce415[_0x36ecaf('0x4e8')][_0x36ecaf('0x1b86')]):_0x2ce415[_0x36ecaf('0x1b86')]||_0x2ce415[_0x36ecaf('0xaab')]()});});}function _0x386daa(){const _0x22cf44=_0xba72fa,_0x4a745a=angular['copy'](_0x4d7174[_0x22cf44('0x8c3')]);return _0x4d7174[_0x22cf44('0x8c3')]=[],_0x4a745a;}function _0x1f1ade(_0x2e2fe5){const _0x50e8c8=_0xba72fa,_0x375aa6=_0x2e25aa[_0x50e8c8('0x132b')]()[_0x50e8c8('0x134b')](_0x50e8c8('0x11b7'))[_0x50e8c8('0x1d03')](_0x50e8c8('0x2061')+_0x4d7174['selectedODBC'][_0x50e8c8('0x1e22')]+_0x50e8c8('0xac6')+_0x50e8c8('0x1a'))['ariaLabel']('delete\x20Odbcs')[_0x50e8c8('0x1e25')](_0x2e2fe5)['ok']('OK')['cancel'](_0x50e8c8('0x772'));_0x2e25aa[_0x50e8c8('0xb9')](_0x375aa6)[_0x50e8c8('0x11bf')](function(){const _0x2778ab=_0x50e8c8;_0x4d7174[_0x2778ab('0x8c3')]['forEach'](function(_0x54be5b){_0xc8d1c3(_0x54be5b);}),_0x4d7174[_0x2778ab('0x8c3')]=[];});}function _0x2ff554(){const _0x26db67=_0xba72fa;_0x4d7174[_0x26db67('0x8c3')]=[];}function _0x59a901(){const _0x23b8ff=_0xba72fa;_0x4d7174[_0x23b8ff('0x8c3')]=_0x4d7174[_0x23b8ff('0x25d7')][_0x23b8ff('0x19b2')];}}const _0x7dde92=_0x15ba87;_0x39448d[_0x21d0f5('0x1e9a')]=['$scope','$state','$location',_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0xb6b'),_0x21d0f5('0x142d'),_0x21d0f5('0x2a5'),_0x21d0f5('0x26d5'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1'),_0x21d0f5('0xb25')];function _0x39448d(_0x53d209,_0x3cfe9e,_0x3ed292,_0x1087dd,_0xdf196c,_0x545f5d,_0x4c0bad,_0x3307e0,_0x111057,_0x3989aa,_0x1ce7ad,_0x571725,_0x411a2a,_0x1e8edb){const _0xb7b072=_0x21d0f5,_0x2361ee=this;_0x2361ee[_0xb7b072('0x32a')]=_0x1ce7ad[_0xb7b072('0x2428')](),_0x2361ee[_0xb7b072('0x120f')]=[],_0x2361ee[_0xb7b072('0x23e1')]=_0x411a2a,_0x2361ee['license']=_0x571725,_0x2361ee[_0xb7b072('0xb25')]=_0x1e8edb,_0x2361ee['hasModulePermissions']={},_0x2361ee[_0xb7b072('0x2834')]=_0x2361ee[_0xb7b072('0x23e1')]&&_0x2361ee[_0xb7b072('0x23e1')][_0xb7b072('0x1d4')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2361ee['title']='CALLYSQUARE.EDIT_SQUARERECORDING',_0x2361ee[_0xb7b072('0x26d5')]=angular['copy'](_0x111057),_0x2361ee[_0xb7b072('0x2a5')]=_0x3307e0,_0x2361ee[_0xb7b072('0xa7d')]=![];!_0x2361ee['squareRecording']&&(_0x2361ee['squareRecording']={},_0x2361ee[_0xb7b072('0x134b')]='CALLYSQUARE.NEW_SQUARERECORDING',_0x2361ee['newSquareRecording']=!![]);_0x2361ee[_0xb7b072('0x152d')]=_0x563942,_0x2361ee[_0xb7b072('0x5ea')]=_0x4a4888,_0x2361ee['deleteSquareRecording']=_0x44bb3c,_0x2361ee[_0xb7b072('0x1bd1')]=_0x1d7b44,_0x2361ee[_0xb7b072('0xc4e')]=_0x23df8f;function _0x563942(){const _0x30ff14=_0xb7b072;_0x2361ee[_0x30ff14('0x120f')]=[],_0x3989aa['squareRecording']['save'](_0x2361ee[_0x30ff14('0x26d5')])[_0x30ff14('0x1549')][_0x30ff14('0x11bf')](function(_0x43aab3){const _0x474788=_0x30ff14;_0x2361ee['squareRecordings'][_0x474788('0x880')](_0x43aab3['toJSON']()),_0x4c0bad['success']({'title':'SquareRecording\x20properly\x20created','msg':_0x2361ee[_0x474788('0x26d5')][_0x474788('0x1909')]?_0x2361ee[_0x474788('0x26d5')][_0x474788('0x1909')]+_0x474788('0x7fb'):''}),_0x23df8f(_0x43aab3);})[_0x30ff14('0x151d')](function(_0x120333){const _0xbf0a8f=_0x30ff14;if(_0x120333[_0xbf0a8f('0x4e8')]&&_0x120333[_0xbf0a8f('0x4e8')]['errors']&&_0x120333[_0xbf0a8f('0x4e8')]['errors']['length']){_0x2361ee[_0xbf0a8f('0x120f')]=_0x120333[_0xbf0a8f('0x4e8')]['errors']||[{'message':_0x120333[_0xbf0a8f('0xaab')](),'type':_0xbf0a8f('0x2845')}];for(let _0x262acf=0x0;_0x262acf<_0x120333[_0xbf0a8f('0x4e8')][_0xbf0a8f('0x120f')][_0xbf0a8f('0x1e22')];_0x262acf+=0x1){_0x4c0bad[_0xbf0a8f('0x255')]({'title':_0x120333['data'][_0xbf0a8f('0x120f')][_0x262acf][_0xbf0a8f('0x19fd')],'msg':_0x120333[_0xbf0a8f('0x4e8')][_0xbf0a8f('0x120f')][_0x262acf][_0xbf0a8f('0x1b86')]});}}else _0x4c0bad[_0xbf0a8f('0x255')]({'title':_0x120333[_0xbf0a8f('0xff9')]?_0xbf0a8f('0x574')+_0x120333[_0xbf0a8f('0xff9')]+_0xbf0a8f('0xb0b')+_0x120333[_0xbf0a8f('0x212f')]:_0xbf0a8f('0x2845'),'msg':_0x120333[_0xbf0a8f('0x4e8')]?JSON[_0xbf0a8f('0x3e')](_0x120333[_0xbf0a8f('0x4e8')]['message']):_0x120333[_0xbf0a8f('0xaab')]()});});}function _0x4a4888(){const _0x3f8943=_0xb7b072;_0x2361ee[_0x3f8943('0x120f')]=[],_0x3989aa[_0x3f8943('0x26d5')][_0x3f8943('0x5ab')]({'id':_0x2361ee['squareRecording']['id']},_0x2361ee['squareRecording'])[_0x3f8943('0x1549')]['then'](function(_0x279465){const _0x1d8384=_0x3f8943,_0x5b5ae0=_0x36f548()['find'](_0x2361ee[_0x1d8384('0x2a5')],{'id':_0x279465['id']});_0x5b5ae0&&_0x36f548()['merge'](_0x5b5ae0,_0x36f548()[_0x1d8384('0x258')](_0x279465[_0x1d8384('0x2866')](),_0x36f548()['keys'](_0x5b5ae0))),_0x4c0bad[_0x1d8384('0x2693')]({'title':_0x1d8384('0x2857'),'msg':_0x2361ee['squareRecording'][_0x1d8384('0x1909')]?_0x2361ee[_0x1d8384('0x26d5')]['name']+_0x1d8384('0x1a78'):''}),_0x23df8f(_0x279465);})[_0x3f8943('0x151d')](function(_0x3523ab){const _0x60685a=_0x3f8943;if(_0x3523ab[_0x60685a('0x4e8')]&&_0x3523ab[_0x60685a('0x4e8')][_0x60685a('0x120f')]&&_0x3523ab[_0x60685a('0x4e8')]['errors'][_0x60685a('0x1e22')]){_0x2361ee[_0x60685a('0x120f')]=_0x3523ab[_0x60685a('0x4e8')]['errors']||[{'message':_0x3523ab[_0x60685a('0xaab')](),'type':_0x60685a('0x10e')}];for(let _0x4ba11e=0x0;_0x4ba11e<_0x3523ab[_0x60685a('0x4e8')][_0x60685a('0x120f')]['length'];_0x4ba11e++){_0x4c0bad['error']({'title':_0x3523ab[_0x60685a('0x4e8')][_0x60685a('0x120f')][_0x4ba11e][_0x60685a('0x19fd')],'msg':_0x3523ab[_0x60685a('0x4e8')][_0x60685a('0x120f')][_0x4ba11e][_0x60685a('0x1b86')]});}}else _0x4c0bad['error']({'title':_0x3523ab[_0x60685a('0xff9')]?'API:'+_0x3523ab[_0x60685a('0xff9')]+_0x60685a('0xb0b')+_0x3523ab['statusText']:_0x60685a('0x10e'),'msg':_0x3523ab[_0x60685a('0x4e8')]?JSON[_0x60685a('0x3e')](_0x3523ab[_0x60685a('0x4e8')][_0x60685a('0x1b86')]):_0x3523ab['toString']()});});}function _0x44bb3c(_0x127529){const _0x677d66=_0xb7b072;_0x2361ee[_0x677d66('0x120f')]=[];const _0x10cfad=_0x1087dd[_0x677d66('0x132b')]()[_0x677d66('0x134b')](_0x677d66('0x1fa9'))[_0x677d66('0x252a')](_0x677d66('0x1598'))['ariaLabel'](_0x677d66('0xed4'))['ok'](_0x677d66('0x1167'))[_0x677d66('0x26c9')](_0x677d66('0x784'))['targetEvent'](_0x127529);_0x1087dd[_0x677d66('0xb9')](_0x10cfad)[_0x677d66('0x11bf')](function(){const _0x4ac6ff=_0x677d66;_0x3989aa[_0x4ac6ff('0x26d5')][_0x4ac6ff('0x2088')]({'id':_0x2361ee[_0x4ac6ff('0x26d5')]['id']})[_0x4ac6ff('0x1549')][_0x4ac6ff('0x11bf')](function(){const _0x3c977f=_0x4ac6ff;_0x36f548()[_0x3c977f('0x14a5')](_0x2361ee[_0x3c977f('0x2a5')],{'id':_0x2361ee['squareRecording']['id']}),_0x4c0bad[_0x3c977f('0x2693')]({'title':'SquareRecording\x20properly\x20deleted!','msg':(_0x2361ee[_0x3c977f('0x26d5')][_0x3c977f('0x1909')]||_0x3c977f('0x26d5'))+_0x3c977f('0x433')}),_0x23df8f(_0x2361ee[_0x3c977f('0x26d5')]);})['catch'](function(_0x5da820){const _0x4c4d58=_0x4ac6ff;if(_0x5da820[_0x4c4d58('0x4e8')]&&_0x5da820['data'][_0x4c4d58('0x120f')]&&_0x5da820[_0x4c4d58('0x4e8')]['errors'][_0x4c4d58('0x1e22')]){_0x2361ee[_0x4c4d58('0x120f')]=_0x5da820[_0x4c4d58('0x4e8')][_0x4c4d58('0x120f')]||[{'message':_0x5da820['toString'](),'type':'api.squareRecording.delete'}];for(let _0x588adf=0x0;_0x588adf<_0x5da820['data']['errors']['length'];_0x588adf++){_0x4c0bad[_0x4c4d58('0x255')]({'title':_0x5da820[_0x4c4d58('0x4e8')]['errors'][_0x588adf][_0x4c4d58('0x19fd')],'msg':_0x5da820[_0x4c4d58('0x4e8')][_0x4c4d58('0x120f')][_0x588adf][_0x4c4d58('0x1b86')]});}}else _0x4c0bad[_0x4c4d58('0x255')]({'title':_0x5da820[_0x4c4d58('0xff9')]?'API:'+_0x5da820[_0x4c4d58('0xff9')]+_0x4c4d58('0xb0b')+_0x5da820[_0x4c4d58('0x212f')]:'api.squareRecording.delete','msg':_0x5da820['data']?JSON['stringify'](_0x5da820[_0x4c4d58('0x4e8')][_0x4c4d58('0x1b86')]):_0x5da820['message']||_0x5da820[_0x4c4d58('0xaab')]()});});},function(){});}function _0x1d7b44(_0x38a6f0){return _0x38a6f0===null?undefined:new Date(_0x38a6f0);}function _0x23df8f(_0x1c6acd){const _0x3886cc=_0xb7b072;_0x1087dd[_0x3886cc('0x237e')](_0x1c6acd);}}const _0x56b45a=_0x39448d,_0x5cc487=_0x351988['p']+'src/js/modules/main/apps/callysquare/views/squareRecordings/create/dialog.html/dialog.html';_0x60431[_0x21d0f5('0x1e9a')]=['$scope',_0x21d0f5('0x2143'),_0x21d0f5('0xcbc'),_0x21d0f5('0x18fe'),_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),'$timeout',_0x21d0f5('0xb6b'),_0x21d0f5('0x2a5'),'userProfile',_0x21d0f5('0x1d63'),_0x21d0f5('0x12a5'),_0x21d0f5('0xda9'),_0x21d0f5('0x142d'),_0x21d0f5('0x1150'),_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1')];function _0x60431(_0x125408,_0x4f5c7a,_0x53421c,_0x1a7a78,_0x492ef4,_0x3bfdeb,_0x41fe8e,_0x5a646b,_0x127267,_0x318802,_0x5f04b2,_0x4d4d27,_0x3909a7,_0x1e8eb3,_0x506716,_0x4f927e,_0x5750f6){const _0x5e9f95=_0x21d0f5,_0x56ff53=this;_0x56ff53['license']=_0x4f927e,_0x56ff53[_0x5e9f95('0x23e1')]=_0x5750f6,_0x56ff53['currentUser']=_0x506716['getCurrentUser'](),_0x56ff53[_0x5e9f95('0x2a5')]=_0x127267||{'count':0x0,'rows':[]},_0x56ff53[_0x5e9f95('0x25bc')]=_0x318802,_0x56ff53[_0x5e9f95('0x1d63')]=_0x5f04b2&&_0x5f04b2['count']==0x1?_0x5f04b2['rows'][0x0]:null,_0x56ff53[_0x5e9f95('0xb25')]=_0x506716[_0x5e9f95('0x1530')](_0x56ff53[_0x5e9f95('0x1d63')]?_0x56ff53[_0x5e9f95('0x1d63')]['crudPermissions']:null),_0x56ff53['table']=_0x5e9f95('0x2a5'),_0x56ff53[_0x5e9f95('0x724')]='',_0x56ff53[_0x5e9f95('0xe3c')]=null,_0x56ff53[_0x5e9f95('0x24d')]=[],_0x56ff53[_0x5e9f95('0x1f2a')]={'fields':_0x5e9f95('0xbf1'),'sort':_0x5e9f95('0x1c74'),'limit':0xa,'page':0x1},_0x56ff53[_0x5e9f95('0x3b3')]=_0x123dad,_0x56ff53[_0x5e9f95('0x549')]=_0x22084f,_0x56ff53['success']=_0x16b4d9,_0x56ff53[_0x5e9f95('0x1278')]=_0x3f5825,_0x56ff53[_0x5e9f95('0x100')]=_0x1fefe3,_0x56ff53[_0x5e9f95('0x23e2')]=_0x188be6,_0x56ff53[_0x5e9f95('0x73')]=_0x5684af,_0x56ff53[_0x5e9f95('0x2538')]=_0x5a2f3c,_0x56ff53[_0x5e9f95('0x837')]=_0x5be2c7,_0x56ff53['selectAllSquareRecordings']=_0xb596e4;function _0x123dad(_0x4f2067){const _0x56719a=_0x5e9f95;return _0x4d4d27[_0x56719a('0x26d5')][_0x56719a('0x149c')]({'id':_0x4f2067['id']})[_0x56719a('0x1549')][_0x56719a('0x11bf')](function(_0x2498b3){const _0x5472f6=_0x56719a,_0x592ddb=[_0x2498b3[_0x5472f6('0x1e94')]];let _0x3c431a=_0x5472f6('0x149c');const _0xcd20ac=new Blob(_0x592ddb,{'type':_0x2498b3[_0x5472f6('0x19fd')]});_0x3c431a=_0x4f2067[_0x5472f6('0x938')]+_0x4f2067[_0x5472f6('0x1826')];const _0x38d200=window[_0x5472f6('0xb54')][_0x5472f6('0x2773')]('a');_0x38d200['setAttribute'](_0x5472f6('0xead'),URL['createObjectURL'](_0xcd20ac)),_0x38d200['setAttribute'](_0x5472f6('0x149c'),_0x3c431a),document['body'][_0x5472f6('0x131c')](_0x38d200),_0x38d200[_0x5472f6('0x1371')]();})[_0x56719a('0x151d')](function(_0x43236e){const _0xe9034b=_0x56719a;if(_0x43236e[_0xe9034b('0x4e8')]&&_0x43236e[_0xe9034b('0x4e8')][_0xe9034b('0x120f')]&&_0x43236e[_0xe9034b('0x4e8')][_0xe9034b('0x120f')]['length'])for(let _0xba5067=0x0;_0xba5067<_0x43236e[_0xe9034b('0x4e8')][_0xe9034b('0x120f')][_0xe9034b('0x1e22')];_0xba5067++){_0x1e8eb3[_0xe9034b('0x255')]({'title':_0x43236e['data']['errors'][_0xba5067][_0xe9034b('0x19fd')],'msg':_0x43236e[_0xe9034b('0x4e8')][_0xe9034b('0x120f')][_0xba5067][_0xe9034b('0x1b86')]});}else _0x1e8eb3[_0xe9034b('0x255')]({'title':_0x43236e[_0xe9034b('0xff9')]?_0xe9034b('0x574')+_0x43236e[_0xe9034b('0xff9')]+_0xe9034b('0xb0b')+_0x43236e[_0xe9034b('0x212f')]:_0xe9034b('0x2845'),'msg':_0x43236e[_0xe9034b('0x4e8')]?JSON[_0xe9034b('0x3e')](_0x43236e['data'][_0xe9034b('0x1b86')]):_0x43236e[_0xe9034b('0xaab')]()});});}function _0x22084f(_0x27feb7,_0x5d9889){const _0x6f3929=_0x5e9f95,_0x306a2d=_0x492ef4[_0x6f3929('0x132b')]()[_0x6f3929('0x134b')](_0x6f3929('0x1796')+_0x36f548()[_0x6f3929('0x13cf')](_0x6f3929('0x26d5'))+'?')[_0x6f3929('0x1d03')](_0x6f3929('0x2061')+(_0x27feb7[_0x6f3929('0x1909')]||_0x6f3929('0x26d5'))+_0x6f3929('0x1c78')+'\x20will\x20be\x20deleted.')[_0x6f3929('0xb2e')](_0x6f3929('0x11b6'))[_0x6f3929('0x1e25')](_0x5d9889)['ok']('OK')[_0x6f3929('0x26c9')]('CANCEL');_0x492ef4[_0x6f3929('0xb9')](_0x306a2d)[_0x6f3929('0x11bf')](function(){_0x188be6(_0x27feb7);},function(){console['log']('CANCEL');});}let _0x4a66ed=!![],_0x27f72c=0x1;_0x125408['$watch']('vm.query.filter',function(_0x4be8b5,_0x4bc288){const _0x193834=_0x5e9f95;_0x4a66ed?_0x41fe8e(function(){_0x4a66ed=![];}):(!_0x4bc288&&(_0x27f72c=_0x56ff53[_0x193834('0x1f2a')][_0x193834('0x1c2')]),_0x4be8b5!==_0x4bc288&&(_0x56ff53['query'][_0x193834('0x1c2')]=0x1),!_0x4be8b5&&(_0x56ff53[_0x193834('0x1f2a')][_0x193834('0x1c2')]=_0x27f72c),_0x56ff53[_0x193834('0x1278')]());});function _0x16b4d9(_0x912ab2){const _0x5777d2=_0x5e9f95;_0x56ff53[_0x5777d2('0x2a5')]=_0x912ab2||{'count':0x0,'rows':[]};}function _0x3f5825(){const _0x529460=_0x5e9f95;_0x56ff53[_0x529460('0x1f2a')][_0x529460('0x1393')]=(_0x56ff53[_0x529460('0x1f2a')][_0x529460('0x1c2')]-0x1)*_0x56ff53[_0x529460('0x1f2a')][_0x529460('0xd5c')],_0x506716[_0x529460('0x4ee')](_0x529460('0xf45'))?_0x56ff53[_0x529460('0x13f')]=_0x4d4d27[_0x529460('0x26d5')]['get'](_0x56ff53[_0x529460('0x1f2a')],_0x16b4d9)[_0x529460('0x1549')]:(_0x56ff53[_0x529460('0x1f2a')]['id']=_0x56ff53[_0x529460('0x25bc')]['id'],_0x56ff53[_0x529460('0x1f2a')]['section']='SquareRecordings',_0x56ff53[_0x529460('0x13f')]=_0x4d4d27[_0x529460('0x25bc')][_0x529460('0x228e')](_0x56ff53['query'],_0x16b4d9)[_0x529460('0x1549')]);}function _0x1fefe3(_0x236a2e,_0x15de9b){const _0x2a9c2a=_0x5e9f95;_0x492ef4[_0x2a9c2a('0xb9')]({'controller':_0x2a9c2a('0x160c'),'controllerAs':'vm','templateUrl':_0x5cc487,'parent':angular['element'](_0x3bfdeb[_0x2a9c2a('0x1d2')]),'targetEvent':_0x236a2e,'clickOutsideToClose':!![],'locals':{'squareRecording':_0x15de9b,'squareRecordings':_0x56ff53[_0x2a9c2a('0x2a5')][_0x2a9c2a('0x19b2')],'license':_0x56ff53[_0x2a9c2a('0x17ff')],'setting':_0x56ff53['setting'],'crudPermissions':_0x56ff53['crudPermissions']}});}function _0x188be6(_0x203651){const _0x291098=_0x5e9f95;_0x4d4d27['squareRecording'][_0x291098('0x2088')]({'id':_0x203651['id']})['$promise'][_0x291098('0x11bf')](function(){const _0x3d44b8=_0x291098;_0x36f548()[_0x3d44b8('0x14a5')](_0x56ff53[_0x3d44b8('0x2a5')][_0x3d44b8('0x19b2')],{'id':_0x203651['id']}),_0x56ff53[_0x3d44b8('0x2a5')][_0x3d44b8('0x27d2')]-=0x1,!_0x56ff53[_0x3d44b8('0x2a5')][_0x3d44b8('0x19b2')]['length']&&_0x56ff53['getSquareRecordings'](),_0x1e8eb3[_0x3d44b8('0x2693')]({'title':_0x36f548()[_0x3d44b8('0x13cf')](_0x3d44b8('0x853'))+_0x3d44b8('0x2113'),'msg':_0x203651[_0x3d44b8('0x1909')]?_0x203651[_0x3d44b8('0x1909')]+_0x3d44b8('0x433'):''});})[_0x291098('0x151d')](function(_0x2b490c){const _0x3013c7=_0x291098;if(_0x2b490c[_0x3013c7('0x4e8')]&&_0x2b490c[_0x3013c7('0x4e8')][_0x3013c7('0x120f')]&&_0x2b490c[_0x3013c7('0x4e8')]['errors'][_0x3013c7('0x1e22')]){_0x56ff53['errors']=_0x2b490c[_0x3013c7('0x4e8')][_0x3013c7('0x120f')]||[{'message':_0x2b490c[_0x3013c7('0xaab')](),'type':_0x3013c7('0x224a')}];for(let _0x28934d=0x0;_0x28934d<_0x2b490c[_0x3013c7('0x4e8')][_0x3013c7('0x120f')][_0x3013c7('0x1e22')];_0x28934d++){_0x1e8eb3[_0x3013c7('0x255')]({'title':_0x2b490c[_0x3013c7('0x4e8')]['errors'][_0x28934d][_0x3013c7('0x19fd')],'msg':_0x2b490c[_0x3013c7('0x4e8')][_0x3013c7('0x120f')][_0x28934d][_0x3013c7('0x1b86')]});}}else _0x1e8eb3['error']({'title':_0x2b490c[_0x3013c7('0xff9')]?_0x3013c7('0x574')+_0x2b490c['status']+_0x3013c7('0xb0b')+_0x2b490c[_0x3013c7('0x212f')]:_0x3013c7('0x224a'),'msg':_0x2b490c[_0x3013c7('0x4e8')]?JSON['stringify'](_0x2b490c[_0x3013c7('0x4e8')]['message']):_0x2b490c[_0x3013c7('0x1b86')]||_0x2b490c[_0x3013c7('0xaab')]()});});}function _0x5684af(){const _0x3471f0=_0x5e9f95,_0x1dcc98=angular['copy'](_0x56ff53[_0x3471f0('0x24d')]);return _0x56ff53['selectedSquareRecordings']=[],_0x1dcc98;}function _0x5a2f3c(_0xbecd37){const _0x2f132e=_0x5e9f95,_0x2f4f73=_0x492ef4[_0x2f132e('0x132b')]()[_0x2f132e('0x134b')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20squareRecordings?')[_0x2f132e('0x1d03')](''+_0x56ff53[_0x2f132e('0x24d')][_0x2f132e('0x1e22')]+_0x2f132e('0xac6')+'\x20will\x20be\x20deleted.')['ariaLabel']('delete\x20SquareRecordings')[_0x2f132e('0x1e25')](_0xbecd37)['ok']('OK')[_0x2f132e('0x26c9')]('CANCEL');_0x492ef4[_0x2f132e('0xb9')](_0x2f4f73)[_0x2f132e('0x11bf')](function(){_0x56ff53['selectedSquareRecordings']['forEach'](function(_0xa6b9bc){_0x188be6(_0xa6b9bc);}),_0x56ff53['selectedSquareRecordings']=[];});}function _0x5be2c7(){_0x56ff53['selectedSquareRecordings']=[];}function _0xb596e4(){const _0x2576b7=_0x5e9f95;_0x56ff53[_0x2576b7('0x24d')]=_0x56ff53[_0x2576b7('0x2a5')]['rows'];}}const _0x1ba322=_0x60431;_0x4d83be[_0x21d0f5('0x1e9a')]=['$stateProvider','$translatePartialLoaderProvider'];function _0x4d83be(_0x185bde,_0x32de47){const _0x4a7c96=_0x21d0f5;_0x185bde[_0x4a7c96('0x2124')](_0x4a7c96('0x159c'),{'abstract':!![],'url':_0x4a7c96('0x283d')})['state'](_0x4a7c96('0xf44'),{'url':_0x4a7c96('0x1102'),'views':{'content@app':{'templateUrl':_0x2a053e,'controller':_0x4a7c96('0xe38')}},'resolve':{'odbcs':['apiResolver','Auth',function(_0x18f73b,_0x2e541e){const _0x2010d1=_0x4a7c96;return _0x2e541e[_0x2010d1('0x4ee')](_0x2010d1('0xf45'))?_0x18f73b['resolve'](_0x2010d1('0x44e'),{'fields':'createdAt,updatedAt,id,name,dsn,description','sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x18f73b[_0x2010d1('0xa28')](_0x2010d1('0xb0d'),{'id':_0x2e541e[_0x2010d1('0x2428')]()[_0x2010d1('0x781')],'section':_0x2010d1('0x17b3'),'fields':_0x2010d1('0xeb1'),'sort':_0x2010d1('0x1c74'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x4a7c96('0x218e'),_0x4a7c96('0x1150'),function(_0x5ce786,_0x47ed49){const _0x35b6a9=_0x4a7c96;return _0x47ed49[_0x35b6a9('0x4ee')](_0x35b6a9('0xf45'))?null:_0x5ce786['resolve'](_0x35b6a9('0x428'),{'fields':_0x35b6a9('0xd30'),'id':_0x47ed49[_0x35b6a9('0x2428')]()[_0x35b6a9('0x781')]});}],'userProfileSection':['apiResolver',_0x4a7c96('0x1150'),function(_0xac1b24,_0x3aaf1d){const _0x13beeb=_0x4a7c96;return _0x3aaf1d[_0x13beeb('0x4ee')]('admin')?null:_0xac1b24[_0x13beeb('0xa28')](_0x13beeb('0x2762'),{'fields':_0x13beeb('0x36d'),'userProfileId':_0x3aaf1d[_0x13beeb('0x2428')]()[_0x13beeb('0x781')],'sectionId':0x44d});}]},'authenticate':!![],'permissionId':0x44d,'bodyClass':_0x4a7c96('0x89f')})[_0x4a7c96('0x2124')](_0x4a7c96('0x239f'),{'url':_0x4a7c96('0x6a4'),'views':{'content@app':{'templateUrl':_0x5729da,'controller':_0x4a7c96('0xed')}},'resolve':{'squareRecordings':['apiResolver',_0x4a7c96('0x1150'),function(_0x259698,_0x3eb489){const _0x40c615=_0x4a7c96;return _0x3eb489[_0x40c615('0x4ee')](_0x40c615('0xf45'))?_0x259698[_0x40c615('0xa28')](_0x40c615('0x107e'),{'fields':_0x40c615('0xbf1'),'sort':_0x40c615('0x1c74'),'limit':0xa,'offset':0x0}):_0x259698[_0x40c615('0xa28')]('userProfile@getResources',{'id':_0x3eb489[_0x40c615('0x2428')]()[_0x40c615('0x781')],'section':'SquareRecordings','fields':_0x40c615('0xbf1'),'sort':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':[_0x4a7c96('0x218e'),_0x4a7c96('0x1150'),function(_0x49fe86,_0x411b81){const _0x21353a=_0x4a7c96;return _0x411b81['hasRole'](_0x21353a('0xf45'))?null:_0x49fe86['resolve'](_0x21353a('0x428'),{'fields':_0x21353a('0xd30'),'id':_0x411b81[_0x21353a('0x2428')]()[_0x21353a('0x781')]});}],'userProfileSection':[_0x4a7c96('0x218e'),_0x4a7c96('0x1150'),function(_0x360d4f,_0x18db97){const _0x13d11e=_0x4a7c96;return _0x18db97[_0x13d11e('0x4ee')]('admin')?null:_0x360d4f[_0x13d11e('0xa28')](_0x13d11e('0x2762'),{'fields':_0x13d11e('0x36d'),'userProfileId':_0x18db97[_0x13d11e('0x2428')]()[_0x13d11e('0x781')],'sectionId':0x44e});}]},'authenticate':!![],'permissionId':0x44e,'bodyClass':_0x4a7c96('0x89f')}),_0x32de47[_0x4a7c96('0x471')]('app/main/apps/callysquare');}angular['module']('app.callysquare',[_0x21d0f5('0x22d5'),_0x21d0f5('0x1fb3'),_0x21d0f5('0x3c4'),_0x21d0f5('0x2414'),_0x21d0f5('0xd61'),_0x21d0f5('0x2096'),_0x21d0f5('0x24a2'),'ngAria','ngAnimate','mdPickers',_0x21d0f5('0x29b'),_0x21d0f5('0xc46'),_0x21d0f5('0x950'),'ngclipboard',_0x21d0f5('0x31e'),'ngEmbed',_0x21d0f5('0x2625'),_0x21d0f5('0x1622'),'chart.js',_0x21d0f5('0xf7f'),'app.callysquare.projects'])[_0x21d0f5('0x53a')](_0x4d83be)['controller']('CreateOrEditOdbcDialogController',_0x8fbd09)[_0x21d0f5('0x23eb')](_0x21d0f5('0x2715'),_0x7dde92)[_0x21d0f5('0x23eb')]('CreateOrEditSquareRecordingDialogController',_0x56b45a)[_0x21d0f5('0x23eb')](_0x21d0f5('0x63d'),_0x1ba322);const _0x1b246d=_0x351988['p']+_0x21d0f5('0x8a8'),_0x16c9b7=_0x351988['p']+_0x21d0f5('0x1866'),_0x5ac9e8=_0x351988['p']+'src/js/modules/main/apps/analytics/views/reports/reports.html/reports.html',_0x18935f=_0x351988['p']+_0x21d0f5('0xe33');var _0x4df539=_0x351988(0xd5a);_0x22879d[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x16b9'),_0x21d0f5('0x1ca2'),_0x21d0f5('0x142d'),'report',_0x21d0f5('0x12a5'),_0x21d0f5('0x2c5'),_0x21d0f5('0x1e0')];function _0x22879d(_0x11ac59,_0x43cb10,_0x538bed,_0x584a49,_0x1c0321,_0x2d0b73,_0x23d52c){const _0x134c8d=_0x21d0f5,_0x54f2a4=this;_0x54f2a4[_0x134c8d('0x120f')]=[],_0x54f2a4[_0x134c8d('0x1964')]=angular['copy'](_0x584a49),_0x54f2a4[_0x134c8d('0x1964')][_0x134c8d('0x1909')]+=_0x134c8d('0x288d'),_0x54f2a4['treeCustomData']=_0x23d52c,_0x54f2a4[_0x134c8d('0x891')]={'core':{'multiple':![],'animation':!![],'error':function(_0x155f11){const _0x3715b8=_0x134c8d;console[_0x3715b8('0x255')]('treeCtrl:\x20error\x20from\x20js\x20tree\x20-\x20'+angular[_0x3715b8('0x460')](_0x155f11));},'check_callback':!![],'worker':!![]},'version':0x1,'plugins':[_0x134c8d('0x1435')]},_0x54f2a4['treeCustomEvents']={'select_node':_0x4cd000},_0x54f2a4[_0x134c8d('0x13ac')]=_0x2f8d76,_0x54f2a4[_0x134c8d('0xc4e')]=_0x3665f2;function _0x2f8d76(){const _0x3fe704=_0x134c8d;_0x54f2a4[_0x3fe704('0x120f')]=[];let _0xca4d0a;_0x1c0321[_0x3fe704('0x13ee')]['save']({'name':_0x54f2a4[_0x3fe704('0x1964')]['name'],'description':_0x54f2a4[_0x3fe704('0x1964')][_0x3fe704('0x1659')],'table':_0x54f2a4[_0x3fe704('0x1964')][_0x3fe704('0x13e8')],'conditions':_0x54f2a4[_0x3fe704('0x1964')][_0x3fe704('0x15b7')],'joins':_0x54f2a4[_0x3fe704('0x1964')]['joins'],'parent':_0x54f2a4[_0x3fe704('0x1049')]['id']})[_0x3fe704('0x1549')]['then'](function(_0x47da63){const _0x68b859=_0x3fe704;_0xca4d0a=_0x47da63,_0x538bed[_0x68b859('0x2693')]({'title':_0x68b859('0x2740'),'msg':_0x54f2a4[_0x68b859('0x1964')][_0x68b859('0x1909')]?_0x54f2a4['report'][_0x68b859('0x1909')]+_0x68b859('0x164d'):''});const _0x15caea={'fields':_0x68b859('0x33'),'nolimit':!![]};return _0x15caea[_0x2d0b73==='analyticCustomReport'?_0x68b859('0x2066'):_0x68b859('0x38e')]=_0x54f2a4['report']['id'],_0x1c0321['analyticFieldReport'][_0x68b859('0xbaa')](_0x15caea)[_0x68b859('0x1549')];})['then'](function(_0x5d0ad9){const _0x57b7b3=_0x3fe704,_0xe48d28=_0x36f548()[_0x57b7b3('0x2171')](_0x5d0ad9[_0x57b7b3('0x19b2')],function(_0x47cf5d){const _0x19e8f9=_0x57b7b3;return _0x36f548()[_0x19e8f9('0x218f')]({},_0x47cf5d,{'CustomReportId':_0xca4d0a['id']});});return _0x1c0321[_0x57b7b3('0x15ad')][_0x57b7b3('0x18b9')](_0xe48d28)[_0x57b7b3('0x1549')];})[_0x3fe704('0x11bf')](function(){const _0x1635f9=_0x3fe704;_0x538bed[_0x1635f9('0x2693')]({'title':'Fields\x20copied!','msg':'Fields\x20has\x20been\x20copied!'}),_0x3665f2();})['catch'](function(_0x44b6c0){const _0x24812c=_0x3fe704;_0x538bed['error']({'title':_0x44b6c0['status']?'API:'+_0x44b6c0[_0x24812c('0xff9')]+_0x24812c('0xb0b')+_0x44b6c0['statusText']:'SYSTEM:COPYREPORT','msg':_0x44b6c0['data']?JSON[_0x24812c('0x3e')](_0x44b6c0[_0x24812c('0x4e8')][_0x24812c('0x1b86')]):_0x44b6c0[_0x24812c('0xaab')]()});});}function _0x4cd000(_0x43e0c1,_0x50ebf2){const _0x412634=_0x134c8d;_0x54f2a4[_0x412634('0x1049')]=_0x50ebf2[_0x412634('0xb14')];}function _0x3665f2(){const _0x4b4891=_0x134c8d;_0x43cb10[_0x4b4891('0x237e')]();}}const _0x1d2892=_0x22879d;_0x124ab4[_0x21d0f5('0x1e9a')]=['$location','$mdDialog',_0x21d0f5('0x142d'),_0x21d0f5('0x991'),'report',_0x21d0f5('0x12a5'),_0x21d0f5('0x2c5'),_0x21d0f5('0x1049'),_0x21d0f5('0x1350'),_0x21d0f5('0xb25')];function _0x124ab4(_0x33519f,_0x64222a,_0x2c1e13,_0x2bc636,_0x3e820e,_0x2306f4,_0x18197a,_0x14b3f3,_0x270d38,_0x28f4a5){const _0x4db207=_0x21d0f5,_0x363e9e=this;_0x363e9e[_0x4db207('0x120f')]=[],_0x363e9e[_0x4db207('0x127e')]=[],_0x363e9e[_0x4db207('0x134b')]='ANALYTICS.EDIT_REPORT',_0x363e9e[_0x4db207('0xb25')]=_0x28f4a5,_0x363e9e[_0x4db207('0x1964')]=angular[_0x4db207('0x6fb')](_0x3e820e),_0x363e9e[_0x4db207('0x991')]=_0x2bc636,_0x363e9e[_0x4db207('0x133e')]=![],_0x363e9e[_0x4db207('0x699')]=_0x270d38[_0x4db207('0xe9f')](),_0x363e9e[_0x4db207('0x1b91')]=[{'key':_0x4db207('0xa04'),'value':_0x4db207('0xaff')},{'key':'left_join','value':_0x4db207('0x442')},{'key':'right_join','value':_0x4db207('0x2791')},{'key':_0x4db207('0x1538'),'value':_0x4db207('0x153f')}];!_0x363e9e['report']&&(_0x363e9e[_0x4db207('0x1964')]={'name':'','table':_0x4db207('0x681'),'description':'','parent':_0x14b3f3['id']},_0x363e9e[_0x4db207('0x134b')]=_0x4db207('0x1f1b'),_0x363e9e[_0x4db207('0x133e')]=!![]);_0x363e9e['addNewReport']=_0x5874ad,_0x363e9e['saveReport']=_0x31612d,_0x363e9e[_0x4db207('0x26f8')]=_0x4c7abe,_0x363e9e[_0x4db207('0xc4e')]=_0x5e0af0,_0x363e9e[_0x4db207('0x1943')]=_0x4c50e2,_0x363e9e[_0x4db207('0x6be')]=_0x114e82,_0x363e9e['getFields']=_0x4cfba0;function _0x114e82(_0x113bbb){const _0x5ee54d=_0x4db207;_0x363e9e[_0x5ee54d('0x127e')]['splice'](_0x113bbb,0x1);}function _0x4cfba0(_0x413054,_0x25e7e0,_0x357f58){const _0x41fa3c=_0x4db207,_0x2428da=_0x36f548()[_0x41fa3c('0x1ad4')](_0x363e9e[_0x41fa3c('0x699')],{'name':_0x357f58});_0x2428da&&_0x2428da[_0x41fa3c('0x12a5')]&&_0x2306f4[_0x2428da[_0x41fa3c('0x12a5')]][_0x41fa3c('0x19a5')]()[_0x41fa3c('0x1549')][_0x41fa3c('0x11bf')](function(_0x489c16){const _0x51959d=_0x41fa3c;_0x413054[_0x25e7e0]=_0x36f548()[_0x51959d('0x1271')](_0x36f548()[_0x51959d('0xe22')](_0x489c16),['$promise',_0x51959d('0x1619')]);})[_0x41fa3c('0x151d')](function(_0x4c1ac1){const _0x1a2940=_0x41fa3c;console[_0x1a2940('0x255')](_0x4c1ac1);});}function _0x4c50e2(_0x923e09){const _0x51ebbe=_0x4db207;_0x923e09&&(delete _0x363e9e['selectedItem'],_0x363e9e[_0x51ebbe('0x127e')][_0x51ebbe('0x105d')](_0x923e09));}function _0x5874ad(){const _0x58d4c4=_0x4db207;_0x363e9e[_0x58d4c4('0x120f')]=[],_0x363e9e['report'][_0x58d4c4('0xd54')]=_0x36f548()[_0x58d4c4('0x2171')](_0x363e9e[_0x58d4c4('0x127e')]||[],function(_0x27a433){const _0x29f25d=_0x58d4c4;return{'parentKey':_0x27a433['parentKey'],'foreignTable':_0x27a433[_0x29f25d('0x1909')],'foreignKey':_0x27a433[_0x29f25d('0x27d4')],'type':_0x27a433['type'][_0x29f25d('0x20d5')]()};}),_0x363e9e[_0x58d4c4('0x1964')]['joins']=JSON[_0x58d4c4('0x3e')](_0x363e9e['report'][_0x58d4c4('0xd54')]),_0x2306f4[_0x18197a]['save'](_0x363e9e[_0x58d4c4('0x1964')])[_0x58d4c4('0x1549')][_0x58d4c4('0x11bf')](function(_0x20b9be){const _0x168003=_0x58d4c4;_0x363e9e[_0x168003('0x991')][_0x168003('0x880')](_0x20b9be),_0x2c1e13[_0x168003('0x2693')]({'title':_0x168003('0x155c'),'msg':_0x363e9e[_0x168003('0x1964')][_0x168003('0x1909')]?_0x363e9e[_0x168003('0x1964')][_0x168003('0x1909')]+_0x168003('0x7fb'):''}),_0x5e0af0();})['catch'](function(_0x233029){const _0x34767d=_0x58d4c4;if(_0x233029[_0x34767d('0x4e8')]&&_0x233029[_0x34767d('0x4e8')][_0x34767d('0x120f')]&&_0x233029[_0x34767d('0x4e8')]['errors']['length']){_0x363e9e['errors']=_0x233029[_0x34767d('0x4e8')][_0x34767d('0x120f')]||[{'message':_0x233029[_0x34767d('0xaab')](),'type':'api.analyticReport.save'}];for(let _0x2c2f31=0x0;_0x2c2f31<_0x233029['data'][_0x34767d('0x120f')][_0x34767d('0x1e22')];_0x2c2f31++){_0x2c1e13[_0x34767d('0x255')]({'title':_0x233029[_0x34767d('0x4e8')][_0x34767d('0x120f')][_0x2c2f31][_0x34767d('0x19fd')],'msg':_0x233029['data']['errors'][_0x2c2f31][_0x34767d('0x1b86')]});}}else _0x2c1e13[_0x34767d('0x255')]({'title':_0x233029['status']?_0x34767d('0x574')+_0x233029['status']+'\x20-\x20'+_0x233029['statusText']:'api.analyticReport.save','msg':_0x233029['data']?JSON[_0x34767d('0x3e')](_0x233029[_0x34767d('0x4e8')][_0x34767d('0x1b86')]):_0x233029[_0x34767d('0xaab')]()});});}function _0x31612d(){const _0x521949=_0x4db207;_0x363e9e[_0x521949('0x120f')]=[],_0x2306f4[_0x18197a]['update']({'id':_0x363e9e[_0x521949('0x1964')]['id']},_0x363e9e[_0x521949('0x1964')])['$promise'][_0x521949('0x11bf')](function(_0x44f9cc){const _0x53292a=_0x521949,_0x450b05=_0x36f548()[_0x53292a('0x1ad4')](_0x363e9e[_0x53292a('0x991')],{'id':_0x44f9cc['id']});_0x450b05&&_0x36f548()[_0x53292a('0x47b')](_0x450b05,_0x44f9cc),_0x2c1e13[_0x53292a('0x2693')]({'title':_0x53292a('0x379'),'msg':_0x363e9e[_0x53292a('0x1964')][_0x53292a('0x1909')]?_0x363e9e[_0x53292a('0x1964')]['name']+_0x53292a('0x1a78'):''}),_0x5e0af0();})[_0x521949('0x151d')](function(_0x23d524){const _0x5209d4=_0x521949;if(_0x23d524[_0x5209d4('0x4e8')]&&_0x23d524['data'][_0x5209d4('0x120f')]&&_0x23d524[_0x5209d4('0x4e8')]['errors'][_0x5209d4('0x1e22')]){_0x363e9e[_0x5209d4('0x120f')]=_0x23d524[_0x5209d4('0x4e8')][_0x5209d4('0x120f')]||[{'message':_0x23d524['toString'](),'type':_0x5209d4('0x1bc5')}];for(let _0x5a92b5=0x0;_0x5a92b5<_0x23d524[_0x5209d4('0x4e8')][_0x5209d4('0x120f')][_0x5209d4('0x1e22')];_0x5a92b5++){_0x2c1e13[_0x5209d4('0x255')]({'title':_0x23d524[_0x5209d4('0x4e8')]['errors'][_0x5a92b5][_0x5209d4('0x19fd')],'msg':_0x23d524[_0x5209d4('0x4e8')][_0x5209d4('0x120f')][_0x5a92b5][_0x5209d4('0x1b86')]});}}else _0x2c1e13[_0x5209d4('0x255')]({'title':_0x23d524[_0x5209d4('0xff9')]?'API:'+_0x23d524['status']+'\x20-\x20'+_0x23d524[_0x5209d4('0x212f')]:_0x5209d4('0x1bc5'),'msg':_0x23d524['data']?JSON[_0x5209d4('0x3e')](_0x23d524['data'][_0x5209d4('0x1b86')]):_0x23d524[_0x5209d4('0xaab')]()});});}function _0x4c7abe(){const _0xdfde12=_0x4db207;_0x363e9e[_0xdfde12('0x120f')]=[];const _0x4beacd=_0x64222a[_0xdfde12('0x132b')]()[_0xdfde12('0x134b')](_0xdfde12('0x1fa9'))[_0xdfde12('0x252a')](_0xdfde12('0x24f5'))['ariaLabel']('Delete\x20Report')['ok']('Delete')[_0xdfde12('0x26c9')](_0xdfde12('0x784'))[_0xdfde12('0x1e25')](event);_0x64222a[_0xdfde12('0xb9')](_0x4beacd)[_0xdfde12('0x11bf')](function(){const _0x396b70=_0xdfde12;_0x2306f4[_0x18197a]['delete']({'id':_0x363e9e[_0x396b70('0x1964')]['id']})[_0x396b70('0x1549')][_0x396b70('0x11bf')](function(){const _0x1da28f=_0x396b70;_0x36f548()[_0x1da28f('0x14a5')](_0x363e9e['reports'],{'id':_0x363e9e[_0x1da28f('0x1964')]['id']}),_0x2c1e13[_0x1da28f('0x2693')]({'title':'Report\x20properly\x20deleted!','msg':_0x363e9e['report']['name']?_0x363e9e['report'][_0x1da28f('0x1909')]+'\x20has\x20been\x20deleted!':''}),_0x5e0af0();})[_0x396b70('0x151d')](function(_0x253f6c){const _0x3941ac=_0x396b70;_0x363e9e['errors']=_0x253f6c[_0x3941ac('0x4e8')][_0x3941ac('0x120f')]||[{'message':_0x253f6c[_0x3941ac('0xaab')](),'type':_0x3941ac('0x9ff')}];});},function(){});}function _0x5e0af0(){const _0x38a789=_0x4db207;_0x64222a[_0x38a789('0x237e')]();}}const _0x1ac202=_0x124ab4;_0x4b8c10[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1ca2'),_0x21d0f5('0x1350'),'toasty',_0x21d0f5('0x9d8')];function _0x4b8c10(_0x47d359,_0x47553b,_0x4dcfd6,_0x45f556){const _0x3f8c78=_0x21d0f5,_0x3591bb=this;_0x3591bb['report']={},_0x3591bb[_0x3f8c78('0x15b7')]=_0x45f556['getConditions'],_0x3591bb[_0x3f8c78('0x286f')]=_0x24dd2b,_0x3591bb[_0x3f8c78('0x198a')]=_0x1200a2,_0x3591bb[_0x3f8c78('0x1e4b')]=_0x11f85f,_0x3591bb[_0x3f8c78('0x560')]=_0x430fcc,_0x3591bb[_0x3f8c78('0x16a4')]=_0x5d4c3e;function _0x24dd2b(_0x1b05f6,_0x286a8d){const _0x2ffd39=_0x3f8c78;_0x3591bb[_0x2ffd39('0x1964')]=_0x1b05f6,_0x3591bb['report'][_0x2ffd39('0xccd')]=angular[_0x2ffd39('0xa03')](_0x1b05f6[_0x2ffd39('0x15b7')])||{'group':{'operator':'AND','rules':[]}},_0x3591bb[_0x2ffd39('0xb25')]=typeof _0x286a8d!=='undefined'?_0x286a8d:{'readOnly':!![],'canEdit':![],'canDelete':![]};for(let _0x33008b=0x0;_0x33008b<_0x3591bb[_0x2ffd39('0x1964')][_0x2ffd39('0xccd')][_0x2ffd39('0xdb')][_0x2ffd39('0x13ef')]['length'];_0x33008b++){if(_0x3591bb['report']['condition'][_0x2ffd39('0xdb')][_0x2ffd39('0x13ef')][_0x33008b]['field']){const _0x31a86a=_0x3591bb[_0x2ffd39('0x1964')][_0x2ffd39('0xccd')][_0x2ffd39('0xdb')][_0x2ffd39('0x13ef')][_0x33008b][_0x2ffd39('0x485')][_0x2ffd39('0xaf8')]('.');_0x31a86a[_0x2ffd39('0x1e22')]===0x1&&(_0x3591bb['report']['condition'][_0x2ffd39('0xdb')][_0x2ffd39('0x13ef')][_0x33008b]['field']=_0x3591bb['report'][_0x2ffd39('0x13e8')]+'.'+_0x3591bb[_0x2ffd39('0x1964')][_0x2ffd39('0xccd')]['group'][_0x2ffd39('0x13ef')][_0x33008b][_0x2ffd39('0x485')]);}}_0x47553b[_0x2ffd39('0x1036')](_0x3591bb[_0x2ffd39('0x1964')][_0x2ffd39('0x13e8')])['then'](function(_0x22f384){const _0x512527=_0x2ffd39;_0x3591bb[_0x512527('0x13c6')]=_0x36f548()[_0x512527('0x1271')](_0x36f548()[_0x512527('0xe22')](_0x22f384),[_0x512527('0x1549'),_0x512527('0x1619'),_0x512527('0x1779'),_0x512527('0x14ea')]);})['catch'](function(_0x325293){const _0x5a7927=_0x2ffd39;_0x4dcfd6[_0x5a7927('0x255')]({'title':_0x325293[_0x5a7927('0xff9')]?_0x5a7927('0x574')+_0x325293[_0x5a7927('0xff9')]+_0x5a7927('0xb0b')+_0x325293['statusText']:_0x5a7927('0x27c3'),'msg':_0x325293['data']?JSON[_0x5a7927('0x3e')](_0x325293['data']):_0x325293[_0x5a7927('0xaab')]()});});}function _0x1200a2(_0x484d2c){_0x484d2c['unshift']({'condition':'=','field':'','value':''});}function _0x11f85f(_0x51ea96){const _0x4bb8a6=_0x3f8c78;_0x51ea96[_0x4bb8a6('0x105d')]({'group':{'operator':'AND','rules':[]}});}function _0x430fcc(_0x31f9d6,_0x1fb98c,_0x5933d0){const _0x1c1f35=_0x3f8c78,_0xb58118=_0x47d359['confirm']()[_0x1c1f35('0x134b')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20item?')[_0x1c1f35('0x1d03')]('The\x20item\x20will\x20be\x20deleted.')['ariaLabel'](_0x1c1f35('0x10'))[_0x1c1f35('0x1e25')](_0x5933d0)['ok']('OK')[_0x1c1f35('0x26c9')](_0x1c1f35('0x772'));_0x47d359[_0x1c1f35('0xb9')](_0xb58118)[_0x1c1f35('0x11bf')](function(){const _0x5e2259=_0x1c1f35;_0x31f9d6[_0x5e2259('0x1ae')](_0x1fb98c,0x1);},function(){const _0x93394d=_0x1c1f35;console[_0x93394d('0xc78')](_0x93394d('0x772'));});}function _0x5d4c3e(_0x576d0c){const _0x3bca7d=_0x3f8c78;return!_0x36f548()[_0x3bca7d('0x55a')](['IS\x20NULL','IS\x20NOT\x20NULL',_0x3bca7d('0x1753'),'IS\x20NOT\x20EMPTY'],_0x576d0c);}}const _0x4c235b=_0x4b8c10;_0x300355[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x12a5')];function _0x300355(_0x20aaa5){const _0x485260=_0x21d0f5,_0x48fc31={'cm_companies':_0x485260('0x9ba'),'cm_contacts':_0x485260('0x1b8f'),'cm_hopper':_0x485260('0x1d11'),'cm_hopper_final':'cmHopperFinal','cm_hopper_history':_0x485260('0x246'),'cm_lists':_0x485260('0xbef'),'chat_websites':_0x485260('0xb50'),'chat_queues':'chatQueue','chat_interactions':_0x485260('0x6ed'),'chat_messages':_0x485260('0x21c'),'chat_offline_messages':_0x485260('0x180f'),'report_chat_queue':_0x485260('0x2453'),'report_chat_transfer':'chatTransferReport','mail_accounts':_0x485260('0x1d47'),'mail_queues':_0x485260('0x251b'),'mail_interactions':'mailInteraction','mail_messages':_0x485260('0x1b14'),'report_mail_queue':_0x485260('0x1ad'),'report_mail_transfer':_0x485260('0xfa'),'openchannel_accounts':'openchannelAccount','openchannel_queues':'openchannelQueue','openchannel_interactions':_0x485260('0x165e'),'openchannel_messages':'openchannelMessage','report_openchannel_queue':_0x485260('0x434'),'report_openchannel_transfer':_0x485260('0x2606'),'sms_accounts':_0x485260('0x234b'),'sms_queues':_0x485260('0x1257'),'sms_interactions':_0x485260('0x2877'),'sms_messages':_0x485260('0x2482'),'report_sms_queue':_0x485260('0xc89'),'report_sms_transfer':_0x485260('0x2806'),'fax_accounts':_0x485260('0x19dc'),'fax_queues':'faxQueue','fax_interactions':_0x485260('0x27d'),'fax_messages':_0x485260('0x156a'),'report_fax_transfer':'faxTransferReport','report_fax_queue':_0x485260('0x1477'),'report_call':_0x485260('0xdd8'),'report_agent':_0x485260('0x1313'),'report_square':_0x485260('0x1ad8'),'report_member':_0x485260('0x4ea'),'report_queue':_0x485260('0xfad'),'report_square_details':'squareReportDetail','report_dial':_0x485260('0x14fc'),'report_jscripty_sessions':_0x485260('0x1d99'),'report_jscripty_questions':_0x485260('0x23cf'),'report_jscripty_answers':_0x485260('0x1dc'),'users':_0x485260('0x21d9'),'voice_recordings':_0x485260('0x262'),'cdr':_0x485260('0x12f1'),'whatsapp_accounts':'whatsappAccount','whatsapp_queues':_0x485260('0x1d53'),'whatsapp_interactions':_0x485260('0x1266'),'whatsapp_messages':_0x485260('0x2046'),'report_whatsapp_queue':_0x485260('0x16ce'),'report_whatsapp_transfer':'whatsappTransferReport'};return{'getMap':function(){const _0xfd8248=_0x485260,_0xcd228d=[];return _0x36f548()[_0xfd8248('0x41e')](_0x48fc31,function(_0x4c678f,_0x3ea2ce){const _0x4ac33e=_0xfd8248;_0xcd228d[_0x4ac33e('0x105d')]({'name':_0x3ea2ce,'api':_0x4c678f});}),_0xcd228d;},'getColumns':function(_0x32f794){const _0x8b0ceb=_0x485260,_0x2dbebc=_0x48fc31[_0x32f794];return _0x20aaa5[_0x2dbebc][_0x8b0ceb('0x19a5')]()[_0x8b0ceb('0x1549')];}};}const _0x3b87fa=_0x300355;_0x346757[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0x16b9'),_0x21d0f5('0x1ca2'),_0x21d0f5('0x142d'),'report',_0x21d0f5('0x8d1'),_0x21d0f5('0x1931'),_0x21d0f5('0x2767'),'columns',_0x21d0f5('0x9d8'),'api',_0x21d0f5('0xb25')];function _0x346757(_0x4d3e47,_0x24ed99,_0x57cd93,_0x42c8c5,_0x16c476,_0xcca93b,_0x2b9276,_0xf68850,_0x2de86e,_0x10c1d5,_0x445faa,_0x1a5170){const _0x2faf59=_0x21d0f5,_0x31c41d=this;_0x31c41d[_0x2faf59('0x120f')]=[],_0x31c41d[_0x2faf59('0x134b')]=_0x2faf59('0x25c5'),_0x31c41d['report']=_0x16c476,_0x31c41d[_0x2faf59('0x1931')]=angular[_0x2faf59('0x6fb')](_0x2b9276),_0x31c41d[_0x2faf59('0x8d1')]=_0xcca93b,_0x31c41d[_0x2faf59('0x2767')]=_0xf68850,_0x31c41d[_0x2faf59('0x13c6')]=_0x2de86e,_0x31c41d['sqlUtil']=_0x10c1d5,_0x31c41d[_0x2faf59('0x17c6')]=![],_0x31c41d[_0x2faf59('0xb25')]=_0x1a5170;if(!_0x31c41d[_0x2faf59('0x1931')])_0x31c41d[_0x2faf59('0x1931')]={'type':_0x2faf59('0x6a3'),'function':null,'format':null,'groupBy':![],'orderBy':null},_0x31c41d[_0x2faf59('0x134b')]=_0x2faf59('0x103d'),_0x31c41d[_0x2faf59('0x17c6')]=!![];else{_0x31c41d[_0x2faf59('0x1931')][_0x2faf59('0x19fd')]=_0x31c41d[_0x2faf59('0x1931')][_0x2faf59('0xa8d')]?_0x2faf59('0xa8d'):_0x31c41d[_0x2faf59('0x1931')][_0x2faf59('0x871')]?'metric':'column';if(_0x31c41d[_0x2faf59('0x1931')]['field']&&!_0x31c41d[_0x2faf59('0x1931')][_0x2faf59('0xa8d')]&&_0x36f548()[_0x2faf59('0x1a80')](_0x31c41d[_0x2faf59('0x1931')][_0x2faf59('0x871')])){const _0x428d04=_0x31c41d[_0x2faf59('0x1931')][_0x2faf59('0x485')][_0x2faf59('0xaf8')]('.');_0x428d04[_0x2faf59('0x1e22')]===0x1&&(_0x31c41d[_0x2faf59('0x1931')][_0x2faf59('0x485')]=_0x31c41d['report'][_0x2faf59('0x13e8')]+'.'+_0x31c41d[_0x2faf59('0x1931')][_0x2faf59('0x485')]);}}_0x31c41d[_0x2faf59('0x1c9a')]=_0x2da61a,_0x31c41d[_0x2faf59('0xc19')]=_0x5458d9,_0x31c41d['deleteReportField']=_0x316817,_0x31c41d[_0x2faf59('0xc4e')]=_0x242086;function _0x2da61a(){const _0x477e4d=_0x2faf59;_0x31c41d[_0x477e4d('0x120f')]=[],_0x31c41d[_0x477e4d('0x1931')][_0x477e4d('0xa8d')]=_0x31c41d[_0x477e4d('0x1931')][_0x477e4d('0x19fd')]===_0x477e4d('0xa8d'),_0x31c41d[_0x477e4d('0x1931')]['MetricId']=_0x31c41d[_0x477e4d('0x1931')][_0x477e4d('0x19fd')]===_0x477e4d('0x1bed')?_0x31c41d[_0x477e4d('0x1931')][_0x477e4d('0x871')]:null,_0x31c41d[_0x477e4d('0x1931')]['CustomReportId']=_0x31c41d[_0x477e4d('0x1964')]['id'],_0x445faa[_0x477e4d('0x15ad')][_0x477e4d('0x259')](_0x31c41d[_0x477e4d('0x1931')])[_0x477e4d('0x1549')]['then'](function(_0x3f52ae){const _0x2ca74d=_0x477e4d;_0x31c41d[_0x2ca74d('0x8d1')][_0x2ca74d('0x105d')](_0x3f52ae),_0x42c8c5[_0x2ca74d('0x2693')]({'title':'Report\x20field\x20properly\x20created','msg':_0x31c41d[_0x2ca74d('0x1931')]['field']?_0x31c41d[_0x2ca74d('0x1931')][_0x2ca74d('0x485')]+'\x20has\x20been\x20created!':_0x31c41d[_0x2ca74d('0x1931')][_0x2ca74d('0x19fd')]+'\x20has\x20been\x20created!'}),_0x242086();})[_0x477e4d('0x151d')](function(_0x1c718a){const _0x85178b=_0x477e4d;_0x31c41d[_0x85178b('0x120f')]=_0x1c718a[_0x85178b('0x4e8')]['errors']||[{'message':_0x1c718a[_0x85178b('0xaab')](),'type':_0x85178b('0x2618')}];});}function _0x5458d9(){const _0x38857e=_0x2faf59;_0x31c41d[_0x38857e('0x120f')]=[],_0x31c41d[_0x38857e('0x1931')][_0x38857e('0xa8d')]=_0x31c41d[_0x38857e('0x1931')]['type']===_0x38857e('0xa8d'),_0x31c41d[_0x38857e('0x1931')][_0x38857e('0x871')]=_0x31c41d[_0x38857e('0x1931')][_0x38857e('0x19fd')]===_0x38857e('0x1bed')?_0x31c41d['reportField'][_0x38857e('0x871')]:null,_0x445faa[_0x38857e('0x15ad')]['update']({'id':_0x31c41d[_0x38857e('0x1931')]['id']},_0x31c41d['reportField'])[_0x38857e('0x1549')][_0x38857e('0x11bf')](function(_0x2c73a7){const _0x718d52=_0x38857e,_0x2a9bb4=_0x36f548()[_0x718d52('0x1ad4')](_0x31c41d['reportFields'],{'id':_0x2c73a7['id']});_0x2a9bb4&&_0x36f548()['merge'](_0x2a9bb4,_0x2c73a7),_0x42c8c5['success']({'title':'Report\x20Field\x20properly\x20saved!','msg':_0x31c41d['reportField'][_0x718d52('0x485')]?_0x31c41d['reportField']['field']+_0x718d52('0x1a78'):''}),_0x242086();})['catch'](function(_0x145145){const _0x21e699=_0x38857e;_0x31c41d[_0x21e699('0x120f')]=_0x145145[_0x21e699('0x4e8')]['errors']||[{'message':_0x145145[_0x21e699('0xaab')](),'type':_0x21e699('0x221c')}];});}function _0x316817(_0x26ce00){const _0x383a06=_0x2faf59;_0x31c41d['errors']=[];const _0x49ec49=_0x57cd93[_0x383a06('0x132b')]()['title'](_0x383a06('0x1fa9'))[_0x383a06('0x252a')]('The\x20field\x20will\x20be\x20deleted.')[_0x383a06('0xb2e')](_0x383a06('0x7c9'))['ok'](_0x383a06('0x1167'))[_0x383a06('0x26c9')](_0x383a06('0x784'))[_0x383a06('0x1e25')](_0x26ce00);_0x57cd93[_0x383a06('0xb9')](_0x49ec49)['then'](function(){const _0x57e329=_0x383a06;_0x445faa[_0x57e329('0x15ad')][_0x57e329('0x2088')]({'id':_0x31c41d[_0x57e329('0x1931')]['id']})['$promise'][_0x57e329('0x11bf')](function(){const _0x389d6f=_0x57e329;_0x36f548()['remove'](_0x31c41d[_0x389d6f('0x8d1')],{'id':_0x31c41d['reportField']['id']}),_0x42c8c5['success']({'title':'Report\x20Field\x20properly\x20deleted!','msg':_0x31c41d['reportField'][_0x389d6f('0x485')]?_0x31c41d['reportField'][_0x389d6f('0x485')]+_0x389d6f('0x433'):''}),_0x242086();})['catch'](function(_0x53a0a5){const _0x435b5b=_0x57e329;_0x31c41d['errors']=_0x53a0a5['data'][_0x435b5b('0x120f')]||[{'message':_0x53a0a5['toString'](),'type':_0x435b5b('0x10a9')}];});},function(){});}function _0x242086(){const _0x572ef3=_0x2faf59;_0x57cd93[_0x572ef3('0x237e')]();}}const _0x2adfa5=_0x346757,_0x163c93=_0x351988['p']+_0x21d0f5('0x12ba');_0x19da02['$inject']=[_0x21d0f5('0x5d8'),_0x21d0f5('0x1b80'),'$timeout',_0x21d0f5('0x1ca2'),'$document',_0x21d0f5('0x142d'),_0x21d0f5('0x12a5'),'describeTable',_0x21d0f5('0x9d8'),'$translate'];function _0x19da02(_0x465423,_0x4fe970,_0x80cc9e,_0x2b5f97,_0x315115,_0x523764,_0x4f7275,_0x5dcc58,_0x3df382,_0x575cd2){const _0x29769a=_0x21d0f5,_0x1a557a=this;_0x1a557a[_0x29769a('0x1964')]={},_0x1a557a[_0x29769a('0x8d1')]={'count':0x0,'rows':[]},_0x1a557a[_0x29769a('0xc0f')]=_0x36f548()['keyBy'](_0x3df382['getFunctions'],_0x29769a('0x10cc')),_0x1a557a[_0x29769a('0x73e')]=_0x36f548()[_0x29769a('0x2130')](_0x3df382[_0x29769a('0x6db')],_0x29769a('0x10cc')),_0x1a557a['groupBy']=_0x36f548()['keyBy'](_0x3df382[_0x29769a('0x17be')],'value'),_0x1a557a[_0x29769a('0x17d7')]=_0x36f548()[_0x29769a('0x2130')](_0x3df382[_0x29769a('0xd6b')],_0x29769a('0x10cc')),_0x1a557a[_0x29769a('0x25ca')]=[],_0x1a557a[_0x29769a('0x1f2a')]={'fields':_0x29769a('0x61f'),'nolimit':!![]},_0x1a557a[_0x29769a('0x127a')]={'animation':0x64,'onSort':function(_0x3c8560){const _0x137845=_0x29769a;_0x4f7275['analyticFieldReport'][_0x137845('0x281f')]({'id':_0x1a557a[_0x137845('0x1964')]['id']},_0x3c8560[_0x137845('0x208c')])[_0x137845('0x1549')][_0x137845('0x11bf')](function(_0x2e0692){const _0x550046=_0x137845;_0x1a557a[_0x550046('0x8d1')][_0x550046('0x19b2')]=_0x2e0692;})['catch'](function(_0x33ed74){const _0x24a766=_0x137845;_0x523764[_0x24a766('0x255')]({'title':_0x33ed74[_0x24a766('0xff9')]?_0x24a766('0x574')+_0x33ed74['status']+_0x24a766('0xb0b')+_0x33ed74[_0x24a766('0x212f')]:_0x24a766('0x1ba8')});});}},_0x1a557a[_0x29769a('0x286f')]=_0x566a81,_0x1a557a['deleteConfirm']=_0x3a98ba,_0x1a557a[_0x29769a('0x2693')]=_0x1d47ef,_0x1a557a['getReportFields']=_0x34d564,_0x1a557a['createOrEditReportField']=_0x1316b6,_0x1a557a[_0x29769a('0x175d')]=_0x18c474,_0x1a557a[_0x29769a('0xaed')]=_0x434c10,_0x1a557a[_0x29769a('0x1fe')]=_0x1b1d0e,_0x1a557a[_0x29769a('0x473')]=_0x3c2827;function _0x566a81(_0x5067d0,_0x265ce7){const _0x576536=_0x29769a;_0x1a557a[_0x576536('0x1964')]=_0x5067d0,_0x1a557a[_0x576536('0x1f2a')][_0x576536('0x2066')]=_0x1a557a[_0x576536('0x1964')]['id'],_0x1a557a[_0x576536('0xb25')]=typeof _0x265ce7!==_0x576536('0x13e9')?_0x265ce7:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x1a557a[_0x576536('0x127a')][_0x576536('0xa4b')]=!_0x1a557a[_0x576536('0xb25')][_0x576536('0x25db')]?!![]:![],_0x5dcc58['getColumns'](_0x1a557a['report']['table'])['then'](function(_0x5dc0ab){const _0x12ef9b=_0x576536;return _0x1a557a[_0x12ef9b('0x13c6')]=_0x36f548()[_0x12ef9b('0x1271')](_0x36f548()[_0x12ef9b('0xe22')](_0x5dc0ab),[_0x12ef9b('0x1549'),_0x12ef9b('0x1619')]),_0x4f7275[_0x12ef9b('0xde8')][_0x12ef9b('0xbaa')]({'fields':_0x12ef9b('0x1e33'),'nolimit':!![]})[_0x12ef9b('0x1549')];})[_0x576536('0x11bf')](function(_0x2566c1){const _0x41cc3a=_0x576536;_0x1a557a[_0x41cc3a('0x2767')]=_0x2566c1[_0x41cc3a('0x19b2')];})['catch'](function(_0x291036){const _0x2ece5f=_0x576536;_0x523764['error']({'title':_0x291036['status']?'API:'+_0x291036[_0x2ece5f('0xff9')]+'\x20-\x20'+_0x291036[_0x2ece5f('0x212f')]:'SYSTEM:DESCRIBE','msg':_0x291036[_0x2ece5f('0x4e8')]?JSON[_0x2ece5f('0x3e')](_0x291036[_0x2ece5f('0x4e8')]):_0x291036[_0x2ece5f('0xaab')]()});}),_0x1a557a[_0x576536('0xe49')]();}function _0x3a98ba(_0x5006cd,_0x1ea329){const _0x202aed=_0x29769a,_0x14cfa7=_0x2b5f97['confirm']()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20field?')[_0x202aed('0x1d03')](_0x202aed('0x2061')+_0x5006cd[_0x202aed('0x485')]+''+_0x202aed('0x1a'))[_0x202aed('0xb2e')]('delete\x20field')[_0x202aed('0x1e25')](_0x1ea329)['ok']('OK')['cancel']('CANCEL');_0x2b5f97[_0x202aed('0xb9')](_0x14cfa7)['then'](function(){_0x18c474(_0x5006cd);},function(){const _0x4b35eb=_0x202aed;console[_0x4b35eb('0xc78')](_0x4b35eb('0x772'));});}let _0x2a8da6=!![];_0x4fe970[_0x29769a('0x2087')](_0x29769a('0x2741'),function(){const _0x511ecc=_0x29769a;_0x2a8da6?_0x80cc9e(function(){_0x2a8da6=![];}):_0x1a557a[_0x511ecc('0xe49')]();});function _0x1d47ef(_0x5a9164){const _0x4ab2f8=_0x29769a;_0x1a557a[_0x4ab2f8('0x8d1')]=_0x5a9164||{'count':0x0,'rows':[]};}function _0x34d564(){const _0x1c0f56=_0x29769a;_0x1a557a[_0x1c0f56('0x13f')]=_0x4f7275[_0x1c0f56('0x15ad')][_0x1c0f56('0xbaa')](_0x1a557a[_0x1c0f56('0x1f2a')],_0x1d47ef)[_0x1c0f56('0x1549')];}function _0x1316b6(_0x55a7cb,_0x4ed135){const _0x5ae183=_0x29769a;_0x2b5f97[_0x5ae183('0xb9')]({'controller':_0x5ae183('0x1f72'),'controllerAs':'vm','templateUrl':_0x163c93,'parent':angular[_0x5ae183('0x1e73')](_0x315115[_0x5ae183('0x1d2')]),'targetEvent':_0x55a7cb,'clickOutsideToClose':!![],'locals':{'report':_0x1a557a[_0x5ae183('0x1964')],'reportField':_0x4ed135,'reportFields':_0x1a557a[_0x5ae183('0x8d1')][_0x5ae183('0x19b2')],'metrics':_0x1a557a[_0x5ae183('0x2767')],'columns':_0x1a557a[_0x5ae183('0x13c6')],'setting':null,'crudPermissions':_0x1a557a[_0x5ae183('0xb25')]}});}function _0x18c474(_0xe21e77){const _0x5e1e0b=_0x29769a;_0x4f7275[_0x5e1e0b('0x15ad')][_0x5e1e0b('0x2088')]({'id':_0xe21e77['id']})[_0x5e1e0b('0x1549')][_0x5e1e0b('0x11bf')](function(){const _0x4b1ab5=_0x5e1e0b;_0x1a557a[_0x4b1ab5('0x25ca')]=[],_0x36f548()[_0x4b1ab5('0x14a5')](_0x1a557a['reportFields'][_0x4b1ab5('0x19b2')],{'id':_0xe21e77['id']}),_0x1a557a[_0x4b1ab5('0x8d1')]['count']-=0x1,!_0x1a557a['reportFields'][_0x4b1ab5('0x19b2')]['length']&&_0x1a557a[_0x4b1ab5('0xe49')](),_0x523764[_0x4b1ab5('0x2693')]({'title':_0x4b1ab5('0x4da'),'msg':_0xe21e77[_0x4b1ab5('0x485')]?_0xe21e77[_0x4b1ab5('0x485')]+'\x20has\x20been\x20deleted!':''});})['catch'](function(_0x41a8bb){const _0x4f4be8=_0x5e1e0b;_0x523764[_0x4f4be8('0x255')]({'title':_0x41a8bb[_0x4f4be8('0xff9')]?_0x4f4be8('0x574')+_0x41a8bb['status']+_0x4f4be8('0xb0b')+_0x41a8bb['statusText']:_0x4f4be8('0x20b5'),'msg':_0x41a8bb[_0x4f4be8('0x4e8')]?JSON[_0x4f4be8('0x3e')](_0x41a8bb[_0x4f4be8('0x4e8')]):_0x41a8bb[_0x4f4be8('0xaab')]()});});}function _0x434c10(_0x2d4003){const _0x1d2a09=_0x29769a,_0x39cd4a=_0x2b5f97['confirm']()[_0x1d2a09('0x134b')](_0x1d2a09('0x25cc'))[_0x1d2a09('0x1d03')](_0x1d2a09('0x2061')+_0x1a557a[_0x1d2a09('0x25ca')][_0x1d2a09('0x1e22')]+_0x1d2a09('0xac6')+_0x1d2a09('0x1a'))[_0x1d2a09('0xb2e')]('delete\x20fields')[_0x1d2a09('0x1e25')](_0x2d4003)['ok']('OK')[_0x1d2a09('0x26c9')]('CANCEL');_0x2b5f97[_0x1d2a09('0xb9')](_0x39cd4a)[_0x1d2a09('0x11bf')](function(){const _0x1d3f19=_0x1d2a09;_0x1a557a[_0x1d3f19('0x25ca')]['forEach'](function(_0x21df03){_0x18c474(_0x21df03);}),_0x1a557a[_0x1d3f19('0x25ca')]=[];});}function _0x1b1d0e(_0x1cd066){const _0x34b929=_0x29769a,_0x46fff7=_0x36f548()[_0x34b929('0x1ad4')](_0x1a557a['metrics'],{'id':_0x1cd066});return _0x46fff7?_0x46fff7[_0x34b929('0x1909')]:_0x575cd2[_0x34b929('0x10c2')](_0x34b929('0x2df'));}function _0x3c2827(_0x5c54fd){const _0x26e56d=_0x29769a,_0x652ec2=_0x36f548()[_0x26e56d('0x1ad4')](_0x1a557a[_0x26e56d('0x2767')],{'id':_0x5c54fd});return _0x652ec2?_0x652ec2[_0x26e56d('0x1bed')]:_0x575cd2[_0x26e56d('0x10c2')]('ANALYTICS.NO_METRIC_FOUND');}}const _0x1412d8=_0x19da02;function _0x2da240(){const _0x211519=_0x21d0f5,_0x2e9b5c=[{'value':_0x211519('0x2736'),'option':function(_0x523996){return'SUM\x20('+_0x523996+')';}},{'value':'COUNT','option':function(_0x81adff){const _0x2b26fd=_0x211519;return _0x2b26fd('0x21b1')+_0x81adff+')';}},{'value':_0x211519('0x1806'),'option':function(_0x4e29fa){return'COUNT\x20(DISTINCT\x20'+_0x4e29fa+')';}},{'value':_0x211519('0x1b47'),'option':function(_0x12b051){const _0x16f6eb=_0x211519;return _0x16f6eb('0x228b')+_0x12b051+')';}},{'value':_0x211519('0x157c'),'option':function(_0xf5b2b){const _0x3e8e7b=_0x211519;return _0x3e8e7b('0x1d1f')+_0xf5b2b+')';}},{'value':_0x211519('0x429'),'option':function(_0x587016){const _0x267807=_0x211519;return _0x267807('0x1575')+_0x587016+')';}},{'value':_0x211519('0x1abe'),'option':function(_0x2e9b7b){const _0x48d76f=_0x211519;return _0x48d76f('0x3ef')+_0x2e9b7b+')';}},{'value':'GROUP_CONCAT\x20ASC','option':function(_0x3c1a05){const _0x1fca5d=_0x211519;return _0x1fca5d('0x3ef')+_0x3c1a05+_0x1fca5d('0x12a3')+_0x3c1a05+'\x20ASC)';}},{'value':'GROUP_CONCAT\x20DESC','option':function(_0x12244a){const _0x7b6497=_0x211519;return _0x7b6497('0x3ef')+_0x12244a+_0x7b6497('0x12a3')+_0x12244a+_0x7b6497('0x7de');}}],_0x345403=[{'value':_0x211519('0xfeb'),'option':function(_0x2ea1ad){const _0x3e05ba=_0x211519;return _0x3e05ba('0x1e0d')+_0x2ea1ad+')';}},{'value':_0x211519('0x2238'),'option':function(_0x47cbaf){return'DATE\x20('+_0x47cbaf+')';}},{'value':_0x211519('0xa38'),'option':function(_0x37c6ba){const _0x310f2f=_0x211519;return _0x310f2f('0x76')+_0x37c6ba+')';}},{'value':'ROUND','option':function(_0x5931a6){return'ROUND\x20('+_0x5931a6+')';}},{'value':_0x211519('0x59c'),'option':function(_0x10f5fe){const _0x7d1d56=_0x211519;return _0x7d1d56('0x23fd')+_0x10f5fe+')';}}],_0x37cb47=[{'value':![],'option':function(){return'No';}},{'value':!![],'option':function(_0x29c984){const _0x4f57d8=_0x211519;return _0x4f57d8('0x18c9')+_0x29c984;}}],_0x4381a9=[{'value':_0x211519('0x170a'),'option':function(_0x383bdc){const _0x530a7c=_0x211519;return _0x530a7c('0x783')+_0x383bdc+_0x530a7c('0x207b');}},{'value':_0x211519('0x1b11'),'option':function(_0x10ded1){const _0x4aedf9=_0x211519;return'ORDER\x20BY\x20'+_0x10ded1+_0x4aedf9('0x23b7');}}],_0x33b0d4=['=','!=','<','<=','>','>=','LIKE',_0x211519('0x1efe'),_0x211519('0x15f'),_0x211519('0x2385'),'IS\x20EMPTY',_0x211519('0x50d')];return{'getFunctions':_0x2e9b5c,'getFormats':_0x345403,'getGroupBy':_0x37cb47,'getOrderBy':_0x4381a9,'getConditions':_0x33b0d4};}const _0x560e4c=_0x2da240;_0x16f00b[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0xcbc'),_0x21d0f5('0x142d'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1964'),'Auth',_0x21d0f5('0x1d63')];function _0x16f00b(_0x494ca2,_0x589b24,_0x491c7e,_0x273655,_0x3017b1,_0x321ea0){const _0x265de2=_0x21d0f5,_0x14a482=this;_0x14a482[_0x265de2('0x1964')]=_0x273655||{},_0x14a482[_0x265de2('0x1d63')]=_0x321ea0&&_0x321ea0['count']==0x1?_0x321ea0[_0x265de2('0x19b2')][0x0]:null,_0x14a482['crudPermissions']=_0x3017b1[_0x265de2('0x1530')](_0x14a482[_0x265de2('0x1d63')]?_0x14a482[_0x265de2('0x1d63')][_0x265de2('0xb25')]:null),_0x14a482[_0x265de2('0x1179')]=_0x494ca2[_0x265de2('0x1ab3')][_0x265de2('0x205c')]||0x0,_0x14a482['gotoReports']=_0x53cbcd,_0x14a482[_0x265de2('0x1a8f')]=_0xce272c,_0x14a482['previewReport']=_0x57bc91,_0x14a482['queryReport']=_0x1d87ec,_0x14a482['mapArray']=_0xbb0644,_0x14a482[_0x265de2('0x32c')]=_0x5a7223,_0x14a482['valueReplacer']=_0x5cd8df;function _0x53cbcd(){const _0x10c828=_0x265de2;_0x494ca2['go'](_0x10c828('0x20d9'),{},{'reload':_0x10c828('0x20d9')});}function _0xce272c(){const _0x2255ec=_0x265de2;_0x14a482[_0x2255ec('0x1964')][_0x2255ec('0x15b7')]=angular['toJson'](_0x14a482['report'][_0x2255ec('0xccd')]),_0x491c7e['analyticCustomReport']['update']({'id':_0x14a482['report']['id']},_0x36f548()[_0x2255ec('0x196f')](_0x14a482[_0x2255ec('0x1964')],_0x2255ec('0xd54')))['$promise'][_0x2255ec('0x11bf')](function(){const _0x5b87dc=_0x2255ec;_0x589b24[_0x5b87dc('0x2693')]({'title':_0x5b87dc('0x2460'),'msg':_0x14a482[_0x5b87dc('0x1964')][_0x5b87dc('0x1909')]?_0x14a482['report']['name']+'\x20has\x20been\x20updated!':''});})[_0x2255ec('0x151d')](function(_0x4ef9a9){const _0x504453=_0x2255ec;_0x589b24[_0x504453('0x255')]({'title':_0x4ef9a9['status']?_0x504453('0x574')+_0x4ef9a9['status']+_0x504453('0xb0b')+_0x4ef9a9[_0x504453('0x212f')]:_0x504453('0x205d'),'msg':_0x4ef9a9['data']?JSON[_0x504453('0x3e')](_0x4ef9a9['data']):_0x4ef9a9['toString']()});});}function _0x57bc91(){const _0x12f16c=_0x265de2;_0x14a482[_0x12f16c('0x13c6')]=[],_0x14a482['rows']=[],_0x14a482[_0x12f16c('0x255')]=![],_0x491c7e['analyticFieldReport'][_0x12f16c('0xbaa')]({'fields':_0x12f16c('0x1c53'),'nolimit':!![],'CustomReportId':_0x14a482[_0x12f16c('0x1964')]['id']})[_0x12f16c('0x1549')][_0x12f16c('0x11bf')](function(_0x16cda0){const _0x56c1c9=_0x12f16c;return _0x14a482[_0x56c1c9('0x13c6')]=_0x16cda0?_0x16cda0[_0x56c1c9('0x19b2')]:[],_0x491c7e[_0x56c1c9('0x13ee')][_0x56c1c9('0x541')]({'id':_0x14a482[_0x56c1c9('0x1964')]['id']})['$promise'];})['then'](function(_0x544388){const _0x21536e=_0x12f16c;_0x14a482[_0x21536e('0x19b2')]=_0x544388;})[_0x12f16c('0x151d')](function(_0x27f1b2){const _0x8a0414=_0x12f16c;console[_0x8a0414('0xc78')](_0x27f1b2),_0x14a482['error']={'title':_0x27f1b2['status']?_0x8a0414('0x574')+_0x27f1b2[_0x8a0414('0xff9')]+_0x8a0414('0xb0b')+_0x27f1b2[_0x8a0414('0x212f')]:_0x8a0414('0x186e'),'msg':_0x27f1b2[_0x8a0414('0x4e8')]?_0x27f1b2[_0x8a0414('0x4e8')][_0x8a0414('0x1b86')]:_0x27f1b2[_0x8a0414('0xaab')](),'sql':_0x27f1b2[_0x8a0414('0x4e8')]?_0x27f1b2['data'][_0x8a0414('0x1592')]?_0x27f1b2['data'][_0x8a0414('0x1592')][_0x8a0414('0x1aa6')]:'NO\x20QUERY':_0x8a0414('0x1101')},_0x589b24[_0x8a0414('0x255')](_0x14a482['error']);});}function _0x5cd8df(_0x2702f8,_0x2b73b8){const _0x53d77b=_0x265de2;return _0x57d4d1()(_0x2b73b8,_0x53d77b('0x1b1e'),!![])[_0x53d77b('0xde9')]()&&(_0x2b73b8=_0x57d4d1()(_0x2b73b8,'')['format']('YYYY-MM-DD\x20HH:mm:ss')),_0x2b73b8;}function _0x1d87ec(){const _0x307e4f=_0x265de2;return _0x14a482[_0x307e4f('0x24')]=_0x307e4f('0x2334'),_0x491c7e[_0x307e4f('0x13ee')][_0x307e4f('0x1f2a')]({'id':_0x14a482[_0x307e4f('0x1964')]['id']})['$promise'][_0x307e4f('0x11bf')](function(_0x454c21){const _0x2f2af4=_0x307e4f;_0x14a482['queryResult']=_0x454c21[_0x2f2af4('0x1aa6')];})['catch'](function(_0x3021fe){const _0x4ce5ce=_0x307e4f;_0x14a482[_0x4ce5ce('0x24')]='',console['log'](_0x3021fe),_0x14a482['error']={'title':_0x3021fe[_0x4ce5ce('0xff9')]?_0x4ce5ce('0x574')+_0x3021fe[_0x4ce5ce('0xff9')]+_0x4ce5ce('0xb0b')+_0x3021fe['statusText']:_0x4ce5ce('0x186e'),'msg':_0x3021fe[_0x4ce5ce('0x4e8')]?_0x3021fe[_0x4ce5ce('0x4e8')]['message']:_0x3021fe[_0x4ce5ce('0xaab')](),'sql':_0x3021fe[_0x4ce5ce('0x4e8')]?_0x3021fe[_0x4ce5ce('0x4e8')]['parent']?_0x3021fe[_0x4ce5ce('0x4e8')][_0x4ce5ce('0x1592')][_0x4ce5ce('0x1aa6')]:_0x4ce5ce('0x1101'):'NO\x20QUERY'},_0x589b24[_0x4ce5ce('0x255')](_0x14a482['error']);});}function _0xbb0644(_0x5c43be,_0x396c47){if(_0x5a7223(_0x5c43be))return _0x36f548()['map'](_0x5c43be,_0x396c47)['join'](',');return'';}function _0x5a7223(_0x2a8662){const _0x59e602=_0x265de2;return _0x36f548()[_0x59e602('0x32c')](_0x2a8662);}}const _0x3c5702=_0x16f00b;_0x97c29b['$inject']=[_0x21d0f5('0x16b9'),_0x21d0f5('0x1ca2'),_0x21d0f5('0x142d'),_0x21d0f5('0x1964'),'api',_0x21d0f5('0x2c5')];function _0x97c29b(_0x120d4e,_0x4a0168,_0x48b0c7,_0x524283,_0x43df10,_0x4e5843){const _0x36db35=_0x21d0f5,_0x3caf6a=this;_0x3caf6a[_0x36db35('0x120f')]=[],_0x3caf6a['report']=angular[_0x36db35('0x6fb')](_0x524283),_0x3caf6a[_0x36db35('0x23fb')]=_0x2481b8,_0x3caf6a[_0x36db35('0xc4e')]=_0x35f7ea,_0x51ee02();function _0x51ee02(){const _0x3285bd=_0x36db35;_0x3caf6a[_0x3285bd('0x13c6')]=[],_0x3caf6a[_0x3285bd('0x19b2')]=[],_0x3caf6a[_0x3285bd('0x255')]=![];const _0x3bc09e={'fields':'field,alias','nolimit':!![]};_0x3bc09e[_0x4e5843===_0x3285bd('0x13ee')?'CustomReportId':'DefaultReportId']=_0x3caf6a[_0x3285bd('0x1964')]['id'],_0x3caf6a[_0x3285bd('0x13f')]=_0x43df10[_0x3285bd('0x15ad')][_0x3285bd('0xbaa')](_0x3bc09e)[_0x3285bd('0x1549')]['then'](function(_0x185ca7){const _0x5b2f35=_0x3285bd;return _0x3caf6a[_0x5b2f35('0x13c6')]=_0x185ca7?_0x185ca7[_0x5b2f35('0x19b2')]:[],_0x43df10[_0x4e5843][_0x5b2f35('0x541')]({'id':_0x3caf6a[_0x5b2f35('0x1964')]['id']})[_0x5b2f35('0x1549')];})[_0x3285bd('0x11bf')](function(_0x56e173){const _0x5e46a8=_0x3285bd;_0x3caf6a[_0x5e46a8('0x19b2')]=_0x56e173;})[_0x3285bd('0x151d')](function(_0xa36fdd){const _0x15f42e=_0x3285bd;console[_0x15f42e('0xc78')](_0xa36fdd),_0x3caf6a[_0x15f42e('0x255')]={'title':_0xa36fdd[_0x15f42e('0xff9')]?_0x15f42e('0x574')+_0xa36fdd[_0x15f42e('0xff9')]+_0x15f42e('0xb0b')+_0xa36fdd[_0x15f42e('0x212f')]:_0x15f42e('0x186e'),'msg':_0xa36fdd['data']?_0xa36fdd[_0x15f42e('0x4e8')]['message']:_0xa36fdd[_0x15f42e('0xaab')](),'sql':_0xa36fdd[_0x15f42e('0x4e8')]?_0xa36fdd[_0x15f42e('0x4e8')][_0x15f42e('0x1592')]?_0xa36fdd[_0x15f42e('0x4e8')][_0x15f42e('0x1592')][_0x15f42e('0x1aa6')]:_0x15f42e('0x1101'):_0x15f42e('0x1101')},_0x48b0c7[_0x15f42e('0x255')](_0x3caf6a[_0x15f42e('0x255')]);});}function _0x2481b8(_0x45f9ea,_0x22b011){const _0x42a12c=_0x36db35;return _0x57d4d1()(_0x22b011,_0x42a12c('0x1b1e'),!![])[_0x42a12c('0xde9')]()&&(_0x22b011=_0x57d4d1()(_0x22b011,'')[_0x42a12c('0x1826')]('YYYY-MM-DD\x20HH:mm:ss')),_0x22b011;}function _0x35f7ea(){const _0x14f672=_0x36db35;_0x4a0168[_0x14f672('0x237e')]();}}const _0x5b691e=_0x97c29b,_0x3b54f4=_0x351988['p']+'src/js/modules/main/apps/analytics/views/reports/copy/dialog.html/dialog.html',_0x4d3108=_0x351988['p']+_0x21d0f5('0xd7e'),_0x3d0dc2=_0x351988['p']+'src/js/modules/main/apps/analytics/views/reports/run/dialog.html/dialog.html',_0x5cb577=_0x351988['p']+'src/js/modules/main/apps/analytics/views/reports/create/dialog.html/dialog.html';_0x5d9bd1[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0x17f5'),_0x21d0f5('0x1b30'),_0x21d0f5('0x1ca2'),_0x21d0f5('0xcbc'),_0x21d0f5('0x2143'),'$translate',_0x21d0f5('0x25bc'),'userProfileSection',_0x21d0f5('0x12a5'),_0x21d0f5('0x179e'),'toasty','Auth'];function _0x5d9bd1(_0x3d8301,_0x225914,_0x1e0c4a,_0xb0644b,_0x2a8c70,_0x4c8c12,_0x25f469,_0x589fc3,_0x261b58,_0x4958f3,_0x4f3c68,_0x2b0088,_0x2726b5){const _0x1bea53=_0x21d0f5,_0x4f24fe=this;_0x4f24fe[_0x1bea53('0x32a')]=_0x2726b5[_0x1bea53('0x2428')](),_0x4f24fe['reports']={'count':0x0,'rows':[]},_0x4f24fe['userProfile']=_0x589fc3,_0x4f24fe[_0x1bea53('0x1d63')]=_0x261b58&&_0x261b58['count']==0x1?_0x261b58[_0x1bea53('0x19b2')][0x0]:null,_0x4f24fe[_0x1bea53('0xb25')]=_0x2726b5['parseCrudPermissions'](_0x4f24fe['userProfileSection']?_0x4f24fe['userProfileSection'][_0x1bea53('0xb25')]:null),_0x4f24fe['selectedReports']=[],_0x4f24fe[_0x1bea53('0x1f2a')]={'fields':_0x1bea53('0x960'),'limit':0xa,'page':0x1,'sort':_0x1bea53('0x1c74')},_0x4f24fe['apiName']=null,_0x4f24fe['currentPath']='',_0x4f24fe[_0x1bea53('0x20a2')]=!![],_0x4f24fe[_0x1bea53('0x757')]=_0x3718c6,_0x4f24fe[_0x1bea53('0x16b')]=_0x27ba2d,_0x4f24fe[_0x1bea53('0xfee')]=_0x32d5e1,_0x4f24fe['rundialog']=_0x232080,_0x4f24fe[_0x1bea53('0x1c07')]=_0x54a99b,_0x4f24fe[_0x1bea53('0x549')]=_0x353bce,_0x4f24fe[_0x1bea53('0x2693')]=_0x6a5c3a,_0x4f24fe[_0x1bea53('0xbd3')]=_0x2241d6,_0x4f24fe[_0x1bea53('0x244b')]=_0x11ae73,_0x4f24fe['importReport']=_0x494c1c,_0x4f24fe['deleteReport']=_0x52a0f2,_0x4f24fe[_0x1bea53('0x1b64')]=_0xed0f79,_0x4f24fe[_0x1bea53('0x15ce')]=_0x2a962e,_0x4f24fe[_0x1bea53('0x2810')]=_0x3b6154,_0x4f24fe[_0x1bea53('0xd')]=_0x15b6cd,_0x4f24fe[_0x1bea53('0x589')]=_0x4f3c68[_0x1bea53('0x19b2')][0x0]?angular['fromJson'](_0x4f3c68[_0x1bea53('0x19b2')][0x0]['tree']):[],_0x4f24fe['treeCustomData']=_0x4f3c68[_0x1bea53('0x19b2')][0x1]?angular[_0x1bea53('0xa03')](_0x4f3c68[_0x1bea53('0x19b2')][0x1][_0x1bea53('0x88f')]):[],_0x4f24fe[_0x1bea53('0x1b2b')]=_0x2feff9(![]),_0x4f24fe[_0x1bea53('0x891')]=_0x2feff9(!![]),_0x4f24fe[_0x1bea53('0x196')]=_0x1e829c(![]),_0x4f24fe[_0x1bea53('0x846')]=_0x1e829c(!![]);function _0x3718c6(_0x233c92){const _0x41f67c=_0x1bea53;_0x2a8c70['go'](_0x41f67c('0x411'),{'id':_0x233c92['id'],'crudPermissions':_0x4f24fe['crudPermissions']});}function _0x27ba2d(_0x59468b,_0x5f456f){const _0x4cc0be=_0x1bea53;_0xb0644b['show']({'controller':'CopyReportDialogController','controllerAs':'vm','templateUrl':_0x3b54f4,'parent':angular['element'](_0x1e0c4a[_0x4cc0be('0x1d2')]),'targetEvent':_0x5f456f,'clickOutsideToClose':!![],'locals':{'report':_0x59468b,'apiName':_0x4f24fe[_0x4cc0be('0x2c5')],'treeCustomData':_0x4f24fe[_0x4cc0be('0x5e')]['jstree'](!![])[_0x4cc0be('0x1cd7')]('#')}})[_0x4cc0be('0xa9b')](function(){});}function _0x32d5e1(_0x1cd54d,_0x3a47a8){const _0x28d0d7=_0x1bea53;_0xb0644b[_0x28d0d7('0xb9')]({'controller':_0x28d0d7('0x18a1'),'controllerAs':'vm','templateUrl':_0x4d3108,'parent':angular['element'](_0x1e0c4a[_0x28d0d7('0x1d2')]),'targetEvent':_0x3a47a8,'clickOutsideToClose':!![],'locals':{'report':_0x1cd54d,'apiName':_0x4f24fe[_0x28d0d7('0x2c5')]}});}function _0x232080(_0x5713fa,_0x282b98){const _0x36b0a0=_0x1bea53;_0xb0644b['show']({'controller':_0x36b0a0('0x24ec'),'controllerAs':'vm','templateUrl':_0x3d0dc2,'parent':angular[_0x36b0a0('0x1e73')](_0x1e0c4a[_0x36b0a0('0x1d2')]),'targetEvent':_0x282b98,'clickOutsideToClose':!![],'locals':{'report':_0x5713fa,'apiName':_0x4f24fe[_0x36b0a0('0x2c5')],'currentPath':_0x4f24fe[_0x36b0a0('0x8db')]}});}function _0x54a99b(_0x6ba5e6){const _0x3133f9=_0x1bea53;let _0x486c21;_0x4958f3[_0x3133f9('0xde8')][_0x3133f9('0xbaa')]({'fields':_0x3133f9('0x1e33'),'nolimit':!![]})[_0x3133f9('0x1549')][_0x3133f9('0x11bf')](function(_0xcdbaec){const _0x5dbdc5=_0x3133f9;_0x486c21=_0x36f548()[_0x5dbdc5('0x2130')](_0xcdbaec[_0x5dbdc5('0x19b2')],'id');const _0x4a8b65={'fields':'field,alias,function,format,groupBy,orderBy,custom,MetricId','nolimit':!![]};return _0x4a8b65[_0x4f24fe[_0x5dbdc5('0x2c5')]==='analyticCustomReport'?_0x5dbdc5('0x2066'):_0x5dbdc5('0x38e')]=_0x6ba5e6['id'],_0x4958f3[_0x5dbdc5('0x15ad')]['get'](_0x4a8b65)[_0x5dbdc5('0x1549')];})[_0x3133f9('0x11bf')](function(_0x56f41c){const _0x45c5bb=_0x3133f9;for(let _0x1ea127=0x0;_0x1ea127<_0x56f41c[_0x45c5bb('0x19b2')][_0x45c5bb('0x1e22')];_0x1ea127+=0x1){_0x56f41c[_0x45c5bb('0x19b2')][_0x1ea127][_0x45c5bb('0x871')]&&(_0x56f41c[_0x45c5bb('0x19b2')][_0x1ea127][_0x45c5bb('0x485')]=_0x486c21[_0x56f41c['rows'][_0x1ea127]['MetricId']][_0x45c5bb('0x1bed')],_0x56f41c[_0x45c5bb('0x19b2')][_0x1ea127][_0x45c5bb('0xa8d')]=!![]),delete _0x56f41c[_0x45c5bb('0x19b2')][_0x1ea127][_0x45c5bb('0x871')];}const _0x561d40=_0x4c8c12[_0x45c5bb('0xb54')]['createElement']('a');_0x561d40['href']=_0x45c5bb('0x2376')+_0x4c8c12[_0x45c5bb('0x8cc')](angular[_0x45c5bb('0x460')]({'name':_0x6ba5e6[_0x45c5bb('0x1909')],'description':_0x6ba5e6[_0x45c5bb('0x1659')],'table':_0x6ba5e6[_0x45c5bb('0x13e8')],'conditions':_0x6ba5e6[_0x45c5bb('0x15b7')],'joins':_0x6ba5e6[_0x45c5bb('0xd54')],'fields':_0x56f41c[_0x45c5bb('0x19b2')]})),_0x561d40[_0x45c5bb('0x149c')]=_0x6ba5e6[_0x45c5bb('0x1909')]+_0x45c5bb('0x1003'),_0x561d40['target']=_0x45c5bb('0x550'),_0x561d40[_0x45c5bb('0x1371')](),_0x2b0088[_0x45c5bb('0x2693')]({'title':_0x45c5bb('0x3b6'),'msg':_0x6ba5e6[_0x45c5bb('0x1909')]?_0x6ba5e6[_0x45c5bb('0x1909')]+_0x45c5bb('0xd64'):''});})['catch'](function(_0x47ce51){const _0x511fed=_0x3133f9;_0x2b0088[_0x511fed('0x255')]({'title':_0x47ce51[_0x511fed('0xff9')]?_0x511fed('0x574')+_0x47ce51[_0x511fed('0xff9')]+_0x511fed('0xb0b')+_0x47ce51['statusText']:_0x511fed('0x189c'),'msg':_0x47ce51[_0x511fed('0x4e8')]?JSON[_0x511fed('0x3e')](_0x47ce51[_0x511fed('0x4e8')]):_0x47ce51['toString']()});});}function _0x353bce(_0x17cf21,_0x2eba27){const _0x23b9cf=_0x1bea53,_0x29ed34=_0xb0644b[_0x23b9cf('0x132b')]()[_0x23b9cf('0x134b')](_0x23b9cf('0x273f'))[_0x23b9cf('0x1d03')](_0x23b9cf('0x2061')+_0x17cf21[_0x23b9cf('0x1909')]+_0x23b9cf('0x1c78')+_0x23b9cf('0x1a'))[_0x23b9cf('0xb2e')]('delete\x20report')[_0x23b9cf('0x1e25')](_0x2eba27)['ok']('OK')['cancel'](_0x23b9cf('0x772'));_0xb0644b[_0x23b9cf('0xb9')](_0x29ed34)[_0x23b9cf('0x11bf')](function(){_0x52a0f2(_0x17cf21);},function(){const _0x316f37=_0x23b9cf;console[_0x316f37('0xc78')]('CANCEL');});}let _0x498e74=!![],_0xe48e2b=0x1;_0x3d8301[_0x1bea53('0x2087')]('vm.query.filter',function(_0x586160,_0x274956){const _0x5ab4fa=_0x1bea53;_0x498e74?_0x225914(function(){_0x498e74=![];}):(!_0x274956&&(_0xe48e2b=_0x4f24fe['query'][_0x5ab4fa('0x1c2')]),_0x586160!==_0x274956&&(_0x4f24fe[_0x5ab4fa('0x1f2a')][_0x5ab4fa('0x1c2')]=0x1),!_0x586160&&(_0x4f24fe[_0x5ab4fa('0x1f2a')][_0x5ab4fa('0x1c2')]=_0xe48e2b),_0x4f24fe['getReports']());}),_0x3d8301[_0x1bea53('0x2087')](_0x1bea53('0x8e7'),function(_0x8a4d86){const _0x4824d2=_0x1bea53;_0x4f24fe[_0x4824d2('0x2275')]&&_0x4f24fe[_0x4824d2('0x2275')]['jstree'](!![])[_0x4824d2('0xce2')](_0x8a4d86),_0x4f24fe[_0x4824d2('0x5e')]&&_0x4f24fe[_0x4824d2('0x5e')][_0x4824d2('0x823')](!![])[_0x4824d2('0xce2')](_0x8a4d86);});function _0x6a5c3a(_0x53f5d2){const _0x97a537=_0x1bea53;_0x4f24fe[_0x97a537('0x991')]=_0x53f5d2||{'count':0x0,'rows':[]};}function _0x2241d6(){const _0x2236ec=_0x1bea53;_0x4f24fe[_0x2236ec('0x1f2a')]['offset']=(_0x4f24fe[_0x2236ec('0x1f2a')][_0x2236ec('0x1c2')]-0x1)*_0x4f24fe[_0x2236ec('0x1f2a')]['limit'];if(_0x4f24fe[_0x2236ec('0x2c5')]){if(_0x4f24fe['currentUser']['role']===_0x2236ec('0xf45')||_0x4f24fe[_0x2236ec('0x1d63')][_0x2236ec('0xf11')])_0x4f24fe[_0x2236ec('0x13f')]=_0x4958f3[_0x4f24fe['apiName']]['get'](_0x4f24fe['query'],_0x6a5c3a)['$promise'];else{let _0x321358=[];_0x4f24fe[_0x2236ec('0x13f')]=_0x4958f3[_0x4f24fe['apiName']][_0x2236ec('0xbaa')](_0x4f24fe[_0x2236ec('0x1f2a')])[_0x2236ec('0x1549')][_0x2236ec('0x11bf')](function(_0x333dfc){const _0x215281=_0x2236ec;return _0x321358=_0x333dfc&&_0x333dfc['rows']?_0x333dfc[_0x215281('0x19b2')]:[],_0x321358[_0x215281('0x1e22')]>0x0?_0x4958f3[_0x215281('0x26d1')][_0x215281('0xbaa')]({'sectionId':_0x4f24fe[_0x215281('0x1d63')]['id'],'type':_0x4f24fe[_0x215281('0x2c5')]===_0x215281('0x19f4')?_0x215281('0x951'):'CustomReports'})[_0x215281('0x1549')][_0x215281('0x11bf')](function(_0x525c4f){const _0x138fda=_0x215281,_0x182e82=_0x525c4f&&_0x525c4f[_0x138fda('0x19b2')]?_0x525c4f[_0x138fda('0x19b2')]:[];if(_0x182e82['length']>0x0){const _0x260ec9=[];return _0x321358['forEach'](function(_0x2e69e1){const _0x300ddc=_0x138fda,_0x4c34bc=_0x36f548()[_0x300ddc('0x1ad4')](_0x182e82,['resourceId',_0x2e69e1['id']]);if(_0x4c34bc)_0x260ec9[_0x300ddc('0x105d')](_0x2e69e1);}),_0x6a5c3a({'count':_0x260ec9[_0x138fda('0x1e22')],'rows':_0x260ec9});}else return _0x6a5c3a(null);}):_0x6a5c3a(null);});}}}function _0x11ae73(_0x47bbf1,_0x4b92ce){const _0x3bab6a=_0x1bea53;_0xb0644b[_0x3bab6a('0xb9')]({'controller':_0x3bab6a('0xb26'),'controllerAs':'vm','templateUrl':_0x5cb577,'parent':angular[_0x3bab6a('0x1e73')](_0x1e0c4a['body']),'targetEvent':_0x47bbf1,'clickOutsideToClose':!![],'locals':{'report':_0x4b92ce,'reports':_0x4f24fe[_0x3bab6a('0x991')][_0x3bab6a('0x19b2')],'apiName':_0x4f24fe[_0x3bab6a('0x2c5')],'currentNode':_0x4f24fe[_0x3bab6a('0x1049')],'setting':null,'crudPermissions':_0x4f24fe[_0x3bab6a('0xb25')]}});}function _0x494c1c(_0x265d9e){const _0x3512ca=_0x1bea53;if(_0x265d9e[_0x3512ca('0x2889')]['type']==='application/json'){const _0x323a59=new FileReader();_0x323a59[_0x3512ca('0x1403')]=function(_0x3233ff){const _0xf84c3c=_0x3512ca;console[_0xf84c3c('0xc78')](_0x3233ff[_0xf84c3c('0xc7a')][_0xf84c3c('0x252e')]);try{let _0x201f97=atob(_0x3233ff['target'][_0xf84c3c('0x252e')]['split'](',')[0x1]);_0x201f97=angular[_0xf84c3c('0xa03')](_0x201f97),_0x4958f3['analyticCustomReport'][_0xf84c3c('0x259')]({'name':_0x201f97[_0xf84c3c('0x1909')],'description':_0x201f97['description'],'table':_0x201f97[_0xf84c3c('0x13e8')],'conditions':_0x201f97[_0xf84c3c('0x15b7')],'joins':_0x201f97[_0xf84c3c('0xd54')],'parent':_0x4f24fe['currentNode']['id']})['$promise']['then'](function(_0x4a1e0b){const _0x20b3d8=_0xf84c3c;_0x4f24fe[_0x20b3d8('0x991')][_0x20b3d8('0x19b2')][_0x20b3d8('0x880')](_0x4a1e0b),_0x2b0088[_0x20b3d8('0x2693')]({'title':_0x20b3d8('0x1bd7'),'msg':_0x4a1e0b[_0x20b3d8('0x1909')]?_0x4a1e0b[_0x20b3d8('0x1909')]+'\x20has\x20been\x20saved!':''});const _0x757584=_0x36f548()[_0x20b3d8('0x2171')](_0x201f97[_0x20b3d8('0x1067')],function(_0x23412c){const _0x35f5c8=_0x20b3d8;return _0x36f548()[_0x35f5c8('0x218f')]({},_0x23412c,{'CustomReportId':_0x4a1e0b['id']});});return _0x4958f3[_0x20b3d8('0x15ad')][_0x20b3d8('0x18b9')](_0x757584)[_0x20b3d8('0x1549')];})[_0xf84c3c('0x11bf')](function(){const _0x49afbe=_0xf84c3c;_0x2b0088[_0x49afbe('0x2693')]({'title':_0x49afbe('0xc3'),'msg':_0x49afbe('0x1458')});})['catch'](function(_0x5bdfce){const _0x34cc26=_0xf84c3c;_0x2b0088[_0x34cc26('0x255')]({'title':_0x5bdfce[_0x34cc26('0xff9')]?_0x34cc26('0x574')+_0x5bdfce[_0x34cc26('0xff9')]+_0x34cc26('0xb0b')+_0x5bdfce[_0x34cc26('0x212f')]:_0x34cc26('0xe15'),'msg':_0x5bdfce[_0x34cc26('0x4e8')]?JSON[_0x34cc26('0x3e')](_0x5bdfce['data']):_0x5bdfce[_0x34cc26('0xaab')]()});});}catch(_0x2b70ae){console[_0xf84c3c('0x255')](_0x2b70ae),_0x2b0088[_0xf84c3c('0x255')]({'title':'Decode\x20File\x20Error','msg':_0x2b70ae[_0xf84c3c('0xaab')]()});}},_0x323a59[_0x3512ca('0x26dd')](_0x265d9e['file']);}else _0x2b0088[_0x3512ca('0x255')]({'title':'Format\x20Error','msg':'Please\x20use\x20only\x20json\x20files'});}function _0x52a0f2(_0x45b129){const _0x439a15=_0x1bea53;_0x4f24fe['apiName']&&_0x4958f3[_0x4f24fe['apiName']][_0x439a15('0x2088')]({'id':_0x45b129['id']})[_0x439a15('0x1549')][_0x439a15('0x11bf')](function(){const _0x51087f=_0x439a15;_0x36f548()['remove'](_0x4f24fe[_0x51087f('0x991')]['rows'],{'id':_0x45b129['id']}),_0x4f24fe['reports'][_0x51087f('0x27d2')]-=0x1,!_0x4f24fe['reports'][_0x51087f('0x19b2')][_0x51087f('0x1e22')]&&_0x4f24fe[_0x51087f('0xbd3')](),_0x2b0088[_0x51087f('0x2693')]({'title':_0x51087f('0x1a83'),'msg':_0x45b129[_0x51087f('0x1909')]?_0x45b129[_0x51087f('0x1909')]+_0x51087f('0x433'):''});})[_0x439a15('0x151d')](function(_0x2cabbf){const _0x4b66d1=_0x439a15;if(_0x2cabbf['data']&&_0x2cabbf[_0x4b66d1('0x4e8')][_0x4b66d1('0x120f')]&&_0x2cabbf[_0x4b66d1('0x4e8')][_0x4b66d1('0x120f')][_0x4b66d1('0x1e22')]){_0x4f24fe[_0x4b66d1('0x120f')]=_0x2cabbf['data'][_0x4b66d1('0x120f')]||[{'message':_0x2cabbf[_0x4b66d1('0xaab')](),'type':'api.analyticreport.delete'}];for(let _0x25b97d=0x0;_0x25b97d<_0x2cabbf[_0x4b66d1('0x4e8')]['errors'][_0x4b66d1('0x1e22')];_0x25b97d++){_0x2b0088['error']({'title':_0x2cabbf[_0x4b66d1('0x4e8')][_0x4b66d1('0x120f')][_0x25b97d][_0x4b66d1('0x19fd')],'msg':_0x2cabbf['data'][_0x4b66d1('0x120f')][_0x25b97d]['message']});}}else _0x2b0088[_0x4b66d1('0x255')]({'title':_0x2cabbf[_0x4b66d1('0xff9')]?_0x4b66d1('0x574')+_0x2cabbf[_0x4b66d1('0xff9')]+'\x20-\x20'+_0x2cabbf[_0x4b66d1('0x212f')]:'api.analyticreport.delete','msg':_0x2cabbf[_0x4b66d1('0x4e8')]?JSON['stringify'](_0x2cabbf[_0x4b66d1('0x4e8')][_0x4b66d1('0x1b86')]):_0x2cabbf[_0x4b66d1('0x1b86')]||_0x2cabbf['toString']()});});}function _0xed0f79(){const _0x4c8ace=_0x1bea53,_0x4686ab=angular[_0x4c8ace('0x6fb')](_0x4f24fe[_0x4c8ace('0x2795')]);return _0x4f24fe['selectedReports']=[],_0x4686ab;}function _0x2a962e(_0x46d2c0){const _0x36755d=_0x1bea53,_0x535450=_0xb0644b['confirm']()[_0x36755d('0x134b')](_0x36755d('0x1f16'))[_0x36755d('0x1d03')](_0x36755d('0x2061')+_0x4f24fe[_0x36755d('0x2795')][_0x36755d('0x1e22')]+_0x36755d('0xac6')+_0x36755d('0x1a'))[_0x36755d('0xb2e')]('delete\x20Reports')[_0x36755d('0x1e25')](_0x46d2c0)['ok']('OK')['cancel'](_0x36755d('0x772'));_0xb0644b[_0x36755d('0xb9')](_0x535450)[_0x36755d('0x11bf')](function(){const _0x178edb=_0x36755d;_0x4f24fe['selectedReports'][_0x178edb('0x1f88')](function(_0x4246b3){_0x52a0f2(_0x4246b3);}),_0x4f24fe[_0x178edb('0x2795')]=[];});}function _0x3b6154(){const _0x3465ef=_0x1bea53;_0x4f24fe[_0x3465ef('0x2795')]=[];}function _0x15b6cd(){const _0x404576=_0x1bea53;_0x4f24fe[_0x404576('0x2795')]=_0x4f24fe[_0x404576('0x991')][_0x404576('0x19b2')];}function _0x4d5ac3(_0x418788,_0x758a07){const _0x47fee0=_0x1bea53;_0x4f24fe[_0x47fee0('0x2275')][_0x47fee0('0x823')](!![])[_0x47fee0('0x26f4')](),_0x4f24fe['treeDefaultInstance'][_0x47fee0('0x823')](!![])[_0x47fee0('0x13e5')](),_0x4f24fe['currentNode']=_0x758a07['node'],_0x4f24fe[_0x47fee0('0x1049')][_0x47fee0('0xa8d')]=!![],_0x4f24fe[_0x47fee0('0x8db')]=_0x4f24fe[_0x47fee0('0x5e')][_0x47fee0('0x823')](!![])[_0x47fee0('0x1877')](_0x4f24fe['currentNode'])[_0x47fee0('0xa04')]('/\x20'),_0x4f24fe[_0x47fee0('0x2c5')]=_0x47fee0('0x13ee'),_0x4f24fe['query'][_0x47fee0('0x1592')]=_0x758a07[_0x47fee0('0xb14')]['id'],_0x2241d6();}function _0x25ce49(_0x1178c2,_0xae55d0){const _0x47af48=_0x1bea53;_0x4f24fe[_0x47af48('0x5e')][_0x47af48('0x823')](!![])['deselect_all'](),_0x4f24fe[_0x47af48('0x5e')][_0x47af48('0x823')](!![])[_0x47af48('0x13e5')](),_0x4f24fe[_0x47af48('0x1049')]=_0xae55d0[_0x47af48('0xb14')],_0x4f24fe[_0x47af48('0x1049')][_0x47af48('0xa8d')]=![],_0x4f24fe[_0x47af48('0x8db')]=_0x4f24fe['treeDefaultInstance'][_0x47af48('0x823')](!![])['get_path'](_0x4f24fe[_0x47af48('0x1049')])[_0x47af48('0xa04')]('/\x20'),_0x4f24fe[_0x47af48('0x2c5')]='analyticDefaultReport',_0x4f24fe[_0x47af48('0x1f2a')]['parent']=_0xae55d0[_0x47af48('0xb14')]['id'],_0x2241d6();}function _0x82382e(_0x340dce,_0x27cadc){const _0x1a99dc=_0x1bea53,_0x27f55b=angular[_0x1a99dc('0x460')](_0x4f24fe[_0x1a99dc('0x5e')][_0x1a99dc('0x823')](!![])[_0x1a99dc('0x1cd7')]('#'));_0x4958f3[_0x1a99dc('0x32b')][_0x1a99dc('0x5ab')]({'id':0x2,'tree':_0x27f55b})[_0x1a99dc('0x1549')][_0x1a99dc('0x11bf')](function(){const _0x1a98a1=_0x1a99dc;_0x4f3c68[_0x1a98a1('0x19b2')][0x1]&&(_0x4f3c68[_0x1a98a1('0x19b2')][0x1][_0x1a98a1('0x88f')]=_0x27f55b),_0x2b0088[_0x1a98a1('0x2693')]({'title':_0x1a98a1('0x1117'),'msg':_0x27cadc[_0x1a98a1('0xb14')][_0x1a98a1('0x25ed')]?_0x27cadc[_0x1a98a1('0xb14')]['text']+_0x1a98a1('0xd7'):_0x1a98a1('0x19c7')});})[_0x1a99dc('0x151d')](function(_0x403b67){const _0x517a3a=_0x1a99dc;_0x2b0088[_0x517a3a('0x255')]({'title':_0x403b67[_0x517a3a('0xff9')]?_0x517a3a('0x574')+_0x403b67[_0x517a3a('0xff9')]+_0x517a3a('0xb0b')+_0x403b67[_0x517a3a('0x212f')]:_0x517a3a('0x24a'),'msg':_0x403b67[_0x517a3a('0x4e8')]?JSON['stringify'](_0x403b67[_0x517a3a('0x4e8')]):_0x403b67['toString']()});});}function _0x2feff9(_0x28827e){const _0x1ef496=_0x1bea53;return{'core':{'multiple':![],'animation':!![],'error':function(_0xbefa77){const _0x1d6a98=a0_0xaf0c;console[_0x1d6a98('0x255')](_0x1d6a98('0x61a')+angular[_0x1d6a98('0x460')](_0xbefa77));},'check_callback':!![],'worker':!![]},'version':0x1,'plugins':_0x28827e?[_0x1ef496('0xfe5'),_0x1ef496('0x401'),_0x1ef496('0xce2'),_0x1ef496('0x2124'),_0x1ef496('0x1435')]:[_0x1ef496('0xce2'),_0x1ef496('0x2124'),'wholerow'],'contextmenu':{'items':function(_0x163102){const _0x536751=_0x1ef496,_0x1c40c6={};return _0x4f24fe[_0x536751('0xb25')][_0x536751('0x25db')]&&_0x36f548()['assign'](_0x1c40c6,{'create':{'label':_0x25f469[_0x536751('0x10c2')](_0x536751('0x1968')),'action':function(){const _0x9878b7=_0x536751;_0x163102=_0x4f24fe['treeCustomInstance'][_0x9878b7('0x823')](!![])[_0x9878b7('0xb93')](_0x163102),_0x4f24fe[_0x9878b7('0x5e')][_0x9878b7('0x823')](!![])[_0x9878b7('0x43f')](_0x163102);}},'rename':{'_disabled':_0x163102[_0x536751('0x1592')]==='#','label':_0x25f469[_0x536751('0x10c2')]('ANALYTICS.RENAME'),'action':function(){const _0x559530=_0x536751;_0x4f24fe[_0x559530('0x5e')][_0x559530('0x823')](!![])['edit'](_0x163102);}}}),_0x4f24fe['crudPermissions']['canDelete']&&_0x36f548()[_0x536751('0x25da')](_0x1c40c6,{'remove':{'_disabled':_0x163102[_0x536751('0x1592')]==='#','label':_0x25f469[_0x536751('0x10c2')](_0x536751('0x716')),'action':function(){const _0x6f5959=_0x536751,_0x5bd691=_0xb0644b['confirm']()[_0x6f5959('0x134b')](_0x6f5959('0x20b'))[_0x6f5959('0x1d03')](_0x6f5959('0x2061')+(_0x163102[_0x6f5959('0x25ed')]?_0x163102[_0x6f5959('0x25ed')]:'Node')+_0x6f5959('0x1c78')+_0x6f5959('0x1d40'))[_0x6f5959('0xb2e')](_0x6f5959('0x1978'))['ok']('OK')[_0x6f5959('0x26c9')](_0x6f5959('0x772'));_0xb0644b[_0x6f5959('0xb9')](_0x5bd691)[_0x6f5959('0x11bf')](function(){const _0x64b3f8=_0x6f5959;let _0x186532=_0x4f24fe[_0x64b3f8('0x5e')][_0x64b3f8('0x823')](!![])[_0x64b3f8('0x1705')](_0x163102);_0x186532=_0x4f24fe['treeCustomInstance'][_0x64b3f8('0x823')](!![])[_0x64b3f8('0xb86')](_0x186532),_0x4f24fe[_0x64b3f8('0x5e')][_0x64b3f8('0x823')](!![])[_0x64b3f8('0x241b')](_0x163102),_0x464eae([_0x163102['id']][_0x64b3f8('0x20bf')](_0x163102[_0x64b3f8('0x6ff')]||[])),_0x4f24fe[_0x64b3f8('0x5e')]['jstree'](!![])[_0x64b3f8('0x15b3')](_0x186532);});}}}),_0x1c40c6;}}};}function _0x464eae(_0x47c6d8){const _0xe18916=_0x1bea53;return _0x4958f3[_0xe18916('0x13ee')][_0xe18916('0xbaa')]({'parent':_0x47c6d8[_0xe18916('0xa04')](','),'fields':'id,name'})[_0xe18916('0x1549')][_0xe18916('0x11bf')](function(_0x39ccda){const _0x4632dc=_0xe18916;_0x39ccda&&_0x39ccda['rows']&&_0x39ccda[_0x4632dc('0x19b2')][_0x4632dc('0x1f88')](function(_0x53b841){_0x52a0f2(_0x53b841);});})[_0xe18916('0x151d')](function(_0x476a11){const _0x36f85f=_0xe18916;_0x2b0088[_0x36f85f('0x255')]({'title':_0x476a11['status']?_0x36f85f('0x574')+_0x476a11[_0x36f85f('0xff9')]+_0x36f85f('0xb0b')+_0x476a11['statusText']:_0x36f85f('0x8da'),'msg':_0x476a11[_0x36f85f('0x4e8')]?JSON[_0x36f85f('0x3e')](_0x476a11[_0x36f85f('0x4e8')]):_0x476a11['toString']()});});}function _0x1e829c(_0x5f0986){return _0x5f0986?{'create_node':_0x82382e,'rename_node':_0x82382e,'move_node':_0x82382e,'delete_node':_0x82382e,'select_node':_0x4d5ac3}:{'select_node':_0x25ce49};}}const _0x1bdf10=_0x5d9bd1,_0xbbda30=_0x351988['p']+'src/js/modules/main/apps/analytics/views/reports/run/web/dialog.html/dialog.html';_0xdc8bfa[_0x21d0f5('0x1e9a')]=['$location','$mdDialog',_0x21d0f5('0x142d'),'report','api',_0x21d0f5('0x2c5'),_0x21d0f5('0x1b30'),'currentPath'];function _0xdc8bfa(_0x2e9f0e,_0x36e94a,_0x37df29,_0x528c7f,_0x5129f7,_0x5d4a95,_0x449c3f,_0x181962){const _0x2ab33e=_0x21d0f5,_0xc0beda=this;_0xc0beda[_0x2ab33e('0x120f')]=[],_0xc0beda[_0x2ab33e('0x1964')]=angular[_0x2ab33e('0x6fb')](_0x528c7f),_0xc0beda[_0x2ab33e('0x1b2c')]={},_0xc0beda[_0x2ab33e('0x19a3')]=_0x268dcf,_0xc0beda[_0x2ab33e('0xc4e')]=_0x1d9031,_0xc0beda[_0x2ab33e('0x101a')]=_0x127417,_0x127417();function _0x127417(){const _0x437e10=_0x2ab33e;_0xc0beda['export']={'id':_0xc0beda[_0x437e10('0x1964')]['id'],'name':_0xc0beda['report'][_0x437e10('0x1909')],'startDate':new Date(_0x57d4d1()()[_0x437e10('0x2655')](_0x437e10('0x2161'))),'endDate':new Date(_0x57d4d1()()[_0x437e10('0x2ba')]('day')),'output':'xlsx','fullPath':_0x181962?_0x181962+'/'+_0xc0beda[_0x437e10('0x1964')][_0x437e10('0x1909')]:_0xc0beda['report'][_0x437e10('0x1909')]};}function _0x268dcf(_0x42b063){const _0xec00cb=_0x2ab33e;_0xc0beda[_0xec00cb('0x120f')]=[],_0xc0beda[_0xec00cb('0x2689')]=_0x36f548()['assign']({},_0xc0beda[_0xec00cb('0x1b2c')],{'startDate':_0x57d4d1()(_0xc0beda[_0xec00cb('0x1b2c')][_0xec00cb('0x2288')])[_0xec00cb('0x1826')](_0xec00cb('0xfae')),'endDate':_0x57d4d1()(_0xc0beda[_0xec00cb('0x1b2c')][_0xec00cb('0x2816')])[_0xec00cb('0x1826')](_0xec00cb('0xfae'))}),_0x5129f7[_0x5d4a95][_0xec00cb('0x237a')](_0xc0beda[_0xec00cb('0x2689')])[_0xec00cb('0x1549')][_0xec00cb('0x11bf')](function(_0x20f0d5){const _0x1dd190=_0xec00cb;_0xc0beda['export']['output']===_0x1dd190('0x424')?_0x36e94a[_0x1dd190('0xb9')]({'controller':'WebReportDialogController','controllerAs':'vm','templateUrl':_0xbbda30,'parent':angular['element'](_0x449c3f[_0x1dd190('0x1d2')]),'targetEvent':_0x42b063,'skipHide':!![],'locals':{'apiName':_0x5d4a95,'exportDate':_0xc0beda[_0x1dd190('0x2689')],'results':_0x20f0d5},'resolve':{'columns':['apiResolver',function(_0x23f00f){const _0x3bcf45=_0x1dd190,_0x492f8b={'fields':_0x3bcf45('0x1c53'),'nolimit':!![]};return _0x492f8b[_0x5d4a95===_0x3bcf45('0x13ee')?_0x3bcf45('0x2066'):_0x3bcf45('0x38e')]=_0xc0beda[_0x3bcf45('0x1964')]['id'],_0x23f00f[_0x3bcf45('0xa28')](_0x3bcf45('0x18e3'),_0x492f8b);}]}}):(_0x37df29[_0x1dd190('0x2693')]({'title':_0x1dd190('0x19fb'),'msg':_0xc0beda[_0x1dd190('0x1964')][_0x1dd190('0x1909')]?_0xc0beda[_0x1dd190('0x1964')][_0x1dd190('0x1909')]+_0x1dd190('0x2343'):''}),_0x1d9031());})[_0xec00cb('0x151d')](function(_0x21a6a6){const _0x536904=_0xec00cb;_0x37df29[_0x536904('0x255')]({'title':_0x21a6a6[_0x536904('0xff9')]?_0x536904('0x574')+_0x21a6a6[_0x536904('0xff9')]+'\x20-\x20'+_0x21a6a6[_0x536904('0x212f')]:'SYSTEM:DESCRIBE','msg':_0x21a6a6[_0x536904('0x4e8')]?JSON[_0x536904('0x3e')](_0x21a6a6[_0x536904('0x4e8')][_0x536904('0x1b86')]):_0x21a6a6[_0x536904('0xaab')]()});});}function _0x1d9031(){const _0x183a0c=_0x2ab33e;_0x36e94a[_0x183a0c('0x237e')]();}}const _0x1579f0=_0xdc8bfa;_0x26408a[_0x21d0f5('0x1e9a')]=['$mdDialog',_0x21d0f5('0x142d'),_0x21d0f5('0x12a5'),'columns',_0x21d0f5('0x819'),_0x21d0f5('0x2c5'),_0x21d0f5('0x2689')];function _0x26408a(_0x301593,_0x5046cb,_0x41bccd,_0x562c7d,_0x10db42,_0x310a63,_0x30bdf2){const _0x1bfb2a=_0x21d0f5,_0x538c30=this;_0x538c30['errors']=[],_0x538c30[_0x1bfb2a('0x13c6')]=_0x562c7d?_0x562c7d[_0x1bfb2a('0x19b2')]:[],_0x538c30[_0x1bfb2a('0x819')]=_0x10db42||{'rows':[],'count':0x0},_0x538c30['query']={'limit':0xa,'page':0x1},_0x538c30[_0x1bfb2a('0xc4e')]=_0x4c5f3d,_0x538c30[_0x1bfb2a('0x199e')]=_0x5a6f75,_0x538c30[_0x1bfb2a('0x23fb')]=_0x480c1c;function _0x5a6f75(){const _0x3d9b34=_0x1bfb2a;_0x30bdf2[_0x3d9b34('0x1393')]=(_0x538c30['query']['page']-0x1)*_0x538c30[_0x3d9b34('0x1f2a')]['limit'],_0x30bdf2[_0x3d9b34('0xd5c')]=_0x538c30[_0x3d9b34('0x1f2a')][_0x3d9b34('0xd5c')],_0x538c30[_0x3d9b34('0x13f')]=_0x41bccd[_0x310a63]['run'](_0x30bdf2,_0x45b6e2)[_0x3d9b34('0x1549')];}function _0x480c1c(_0x1f4fd6,_0x36753e){const _0x2a22b9=_0x1bfb2a;return _0x57d4d1()(_0x36753e,_0x2a22b9('0x1b1e'),!![])[_0x2a22b9('0xde9')]()&&(_0x36753e=_0x57d4d1()(_0x36753e,'')[_0x2a22b9('0x1826')](_0x2a22b9('0xfae'))),_0x36753e;}function _0x45b6e2(_0x323719){const _0x285b70=_0x1bfb2a;_0x538c30[_0x285b70('0x819')]=_0x323719||{'count':0x0,'rows':[]};}function _0x4c5f3d(){const _0x5ca856=_0x1bfb2a;_0x301593[_0x5ca856('0x237e')]();}}const _0x17f4ee=_0x26408a;_0x5d7360[_0x21d0f5('0x1e9a')]=['$stateProvider'];function _0x5d7360(_0x125554){const _0x34df32=_0x21d0f5;_0x125554[_0x34df32('0x2124')](_0x34df32('0x20d9'),{'url':'/reports','views':{'content@app':{'templateUrl':_0x5ac9e8,'controller':_0x34df32('0xda0')}},'resolve':{'treeReports':[_0x34df32('0x218e'),function(_0x242aae){const _0x4debc7=_0x34df32;return _0x242aae[_0x4debc7('0xa28')](_0x4debc7('0x2277'),{'fields':_0x4debc7('0xd09'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x34df32('0x218e'),_0x34df32('0x1150'),function(_0x40ae2b,_0x316bb2){const _0x11552a=_0x34df32;return _0x40ae2b[_0x11552a('0xa28')](_0x11552a('0x428'),{'fields':_0x11552a('0xd30'),'id':_0x316bb2[_0x11552a('0x2428')]()[_0x11552a('0x781')]});}],'userProfileSection':[_0x34df32('0x218e'),_0x34df32('0x1150'),function(_0x43f420,_0x1ea11a){const _0x119ca9=_0x34df32;return _0x43f420['resolve'](_0x119ca9('0x2762'),{'fields':_0x119ca9('0x36d'),'userProfileId':_0x1ea11a[_0x119ca9('0x2428')]()[_0x119ca9('0x781')],'sectionId':0x4b3});}]},'authenticate':!![],'permissionId':0x4b3,'bodyClass':_0x34df32('0x24f')})[_0x34df32('0x2124')](_0x34df32('0x411'),{'url':'/:id?tab','views':{'content@app':{'templateUrl':_0x18935f,'controller':'ReportController\x20as\x20vm'}},'resolve':{'report':[_0x34df32('0x218e'),_0x34df32('0x1573'),'$q',_0x34df32('0x1350'),function(_0x27cac1,_0x46e6a7,_0x25b9f6,_0x3cbecc){const _0x2c964f=_0x34df32;let _0x1f2e4d;return _0x27cac1[_0x2c964f('0xa28')](_0x2c964f('0x1bc9'),{'fields':_0x2c964f('0x170'),'id':_0x46e6a7['id']})['then'](function(_0x160da1){const _0x3167e4=_0x2c964f,_0x2f009c=[];_0x1f2e4d=_0x160da1;if(_0x1f2e4d['joins'])try{_0x1f2e4d[_0x3167e4('0xd54')]=JSON['parse'](_0x1f2e4d['joins']);for(let _0xe722e3=0x0;_0xe722e3<_0x1f2e4d[_0x3167e4('0xd54')][_0x3167e4('0x1e22')];_0xe722e3+=0x1){_0x2f009c['push'](_0x3cbecc[_0x3167e4('0x1036')](_0x1f2e4d[_0x3167e4('0xd54')][_0xe722e3]['foreignTable']));}}catch(_0x554b56){console[_0x3167e4('0xc78')](_0x554b56);}return _0x25b9f6[_0x3167e4('0x7c')](_0x2f009c);})[_0x2c964f('0x11bf')](function(_0x1c1ad2){const _0x1fe359=_0x2c964f;for(let _0x24a9be=0x0;_0x24a9be<_0x1c1ad2[_0x1fe359('0x1e22')];_0x24a9be+=0x1){_0x1f2e4d[_0x1fe359('0xd54')][_0x24a9be][_0x1fe359('0x1bcf')]=_0x36f548()['difference'](_0x36f548()[_0x1fe359('0xe22')](_0x1c1ad2[_0x24a9be]),[_0x1fe359('0x1549'),_0x1fe359('0x1619')]);}return _0x1f2e4d;});}],'userProfileSection':['apiResolver',_0x34df32('0x1150'),function(_0x4ab45a,_0x1f1dbe){const _0x388ac9=_0x34df32;return _0x4ab45a[_0x388ac9('0xa28')](_0x388ac9('0x2762'),{'fields':_0x388ac9('0x36d'),'userProfileId':_0x1f1dbe[_0x388ac9('0x2428')]()['userProfileId'],'sectionId':0x4b3});}]},'authenticate':!![],'permissionId':0x4b3,'bodyClass':_0x34df32('0x24f')});}angular[_0x21d0f5('0x2768')](_0x21d0f5('0x20d9'),[_0x21d0f5('0x2285')])['config'](_0x5d7360)[_0x21d0f5('0x23eb')](_0x21d0f5('0xae2'),_0x1d2892)[_0x21d0f5('0x23eb')]('CreateOrEditReportDialogController',_0x1ac202)[_0x21d0f5('0x23eb')](_0x21d0f5('0x139c'),_0x4c235b)[_0x21d0f5('0x2729')](_0x21d0f5('0x1350'),_0x3b87fa)[_0x21d0f5('0x23eb')]('CreateOrEditReportFieldDialogController',_0x2adfa5)[_0x21d0f5('0x23eb')](_0x21d0f5('0x148c'),_0x1412d8)[_0x21d0f5('0x2729')]('sqlUtil',_0x560e4c)[_0x21d0f5('0x23eb')](_0x21d0f5('0x173c'),_0x3c5702)[_0x21d0f5('0x23eb')]('PreviewReportDialogController',_0x5b691e)['controller']('ReportsController',_0x1bdf10)[_0x21d0f5('0x23eb')]('RunReportDialogController',_0x1579f0)[_0x21d0f5('0x23eb')](_0x21d0f5('0x1711'),_0x17f4ee),_0x2880b5[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),'$state',_0x21d0f5('0x16b9'),'$mdDialog','$q','$translate',_0x21d0f5('0x142d'),_0x21d0f5('0x18dd'),_0x21d0f5('0x11a9'),'api',_0x21d0f5('0x1150'),'license',_0x21d0f5('0x23e1'),_0x21d0f5('0xb25')];function _0x2880b5(_0x57f05d,_0x29bfc1,_0x426966,_0x59170c,_0x154f12,_0x13153b,_0x50687b,_0x5760b4,_0x3194b2,_0x22e193,_0x29ecad,_0xba06a8,_0x164a31,_0x248a42){const _0x5d6cf7=_0x21d0f5,_0x14e98a=this;_0x14e98a[_0x5d6cf7('0x32a')]=_0x29ecad['getCurrentUser'](),_0x14e98a[_0x5d6cf7('0x120f')]=[],_0x14e98a[_0x5d6cf7('0x23e1')]=_0x164a31,_0x14e98a[_0x5d6cf7('0x17ff')]=_0xba06a8,_0x14e98a[_0x5d6cf7('0xb25')]=_0x248a42,_0x14e98a[_0x5d6cf7('0x2c9')]={},_0x14e98a[_0x5d6cf7('0x2834')]=_0x14e98a[_0x5d6cf7('0x23e1')]&&_0x14e98a['setting'][_0x5d6cf7('0x1d4')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x14e98a[_0x5d6cf7('0x134b')]=_0x5d6cf7('0x21b2'),_0x14e98a[_0x5d6cf7('0x11a9')]=angular[_0x5d6cf7('0x6fb')](_0x3194b2),_0x14e98a[_0x5d6cf7('0x18dd')]=_0x5760b4,_0x14e98a['newExtractedReport']=![];!_0x14e98a[_0x5d6cf7('0x11a9')]&&(_0x14e98a['extractedReport']={},_0x14e98a['title']=_0x5d6cf7('0x1ce5'),_0x14e98a[_0x5d6cf7('0x1cb5')]=!![]);_0x14e98a[_0x5d6cf7('0x155b')]=_0x4ec862,_0x14e98a[_0x5d6cf7('0x1a74')]=_0x46be88,_0x14e98a[_0x5d6cf7('0xecc')]=_0x1dac8f,_0x14e98a[_0x5d6cf7('0x1bd1')]=_0x3cce98,_0x14e98a['closeDialog']=_0x3df4b6;function _0x4ec862(){const _0x546f9d=_0x5d6cf7;_0x14e98a[_0x546f9d('0x120f')]=[],_0x22e193[_0x546f9d('0x1136')][_0x546f9d('0x259')](_0x14e98a[_0x546f9d('0x11a9')])[_0x546f9d('0x1549')][_0x546f9d('0x11bf')](function(_0x20b35f){const _0x290316=_0x546f9d;_0x14e98a[_0x290316('0x18dd')]['unshift'](_0x20b35f[_0x290316('0x2866')]()),_0x50687b['success']({'title':_0x290316('0x26c2'),'msg':_0x14e98a[_0x290316('0x11a9')][_0x290316('0x1909')]?_0x14e98a[_0x290316('0x11a9')][_0x290316('0x1909')]+_0x290316('0x7fb'):''}),_0x3df4b6(_0x20b35f);})[_0x546f9d('0x151d')](function(_0x5733a0){const _0x355b6b=_0x546f9d;if(_0x5733a0[_0x355b6b('0x4e8')]&&_0x5733a0[_0x355b6b('0x4e8')][_0x355b6b('0x120f')]&&_0x5733a0[_0x355b6b('0x4e8')][_0x355b6b('0x120f')][_0x355b6b('0x1e22')]){_0x14e98a[_0x355b6b('0x120f')]=_0x5733a0['data'][_0x355b6b('0x120f')]||[{'message':_0x5733a0[_0x355b6b('0xaab')](),'type':'api.analyticExtractedReport.save'}];for(let _0x27b5ea=0x0;_0x27b5ea<_0x5733a0[_0x355b6b('0x4e8')][_0x355b6b('0x120f')][_0x355b6b('0x1e22')];_0x27b5ea+=0x1){_0x50687b[_0x355b6b('0x255')]({'title':_0x5733a0[_0x355b6b('0x4e8')][_0x355b6b('0x120f')][_0x27b5ea][_0x355b6b('0x19fd')],'msg':_0x5733a0['data'][_0x355b6b('0x120f')][_0x27b5ea]['message']});}}else _0x50687b['error']({'title':_0x5733a0[_0x355b6b('0xff9')]?_0x355b6b('0x574')+_0x5733a0['status']+_0x355b6b('0xb0b')+_0x5733a0[_0x355b6b('0x212f')]:_0x355b6b('0x746'),'msg':_0x5733a0[_0x355b6b('0x4e8')]?JSON[_0x355b6b('0x3e')](_0x5733a0[_0x355b6b('0x4e8')][_0x355b6b('0x1b86')]):_0x5733a0['toString']()});});}function _0x46be88(){const _0x6abd1b=_0x5d6cf7;_0x14e98a[_0x6abd1b('0x120f')]=[],_0x22e193[_0x6abd1b('0x1136')][_0x6abd1b('0x5ab')]({'id':_0x14e98a[_0x6abd1b('0x11a9')]['id']},_0x14e98a[_0x6abd1b('0x11a9')])['$promise'][_0x6abd1b('0x11bf')](function(_0x457a28){const _0x5ed7be=_0x6abd1b,_0x445d9f=_0x36f548()['find'](_0x14e98a['extractedReports'],{'id':_0x457a28['id']});_0x445d9f&&_0x36f548()['merge'](_0x445d9f,_0x36f548()[_0x5ed7be('0x258')](_0x457a28[_0x5ed7be('0x2866')](),_0x36f548()[_0x5ed7be('0xe22')](_0x445d9f))),_0x50687b[_0x5ed7be('0x2693')]({'title':_0x5ed7be('0x1839'),'msg':_0x14e98a[_0x5ed7be('0x11a9')][_0x5ed7be('0x1909')]?_0x14e98a[_0x5ed7be('0x11a9')][_0x5ed7be('0x1909')]+_0x5ed7be('0x1a78'):''}),_0x3df4b6(_0x457a28);})[_0x6abd1b('0x151d')](function(_0x52388f){const _0x49f3f8=_0x6abd1b;if(_0x52388f[_0x49f3f8('0x4e8')]&&_0x52388f[_0x49f3f8('0x4e8')][_0x49f3f8('0x120f')]&&_0x52388f[_0x49f3f8('0x4e8')][_0x49f3f8('0x120f')][_0x49f3f8('0x1e22')]){_0x14e98a[_0x49f3f8('0x120f')]=_0x52388f['data'][_0x49f3f8('0x120f')]||[{'message':_0x52388f[_0x49f3f8('0xaab')](),'type':'api.analyticExtractedReport.update'}];for(let _0x1f4996=0x0;_0x1f4996<_0x52388f['data'][_0x49f3f8('0x120f')][_0x49f3f8('0x1e22')];_0x1f4996++){_0x50687b[_0x49f3f8('0x255')]({'title':_0x52388f[_0x49f3f8('0x4e8')][_0x49f3f8('0x120f')][_0x1f4996][_0x49f3f8('0x19fd')],'msg':_0x52388f[_0x49f3f8('0x4e8')]['errors'][_0x1f4996][_0x49f3f8('0x1b86')]});}}else _0x50687b['error']({'title':_0x52388f[_0x49f3f8('0xff9')]?'API:'+_0x52388f[_0x49f3f8('0xff9')]+_0x49f3f8('0xb0b')+_0x52388f[_0x49f3f8('0x212f')]:_0x49f3f8('0x22ac'),'msg':_0x52388f[_0x49f3f8('0x4e8')]?JSON[_0x49f3f8('0x3e')](_0x52388f['data'][_0x49f3f8('0x1b86')]):_0x52388f[_0x49f3f8('0xaab')]()});});}function _0x1dac8f(_0x1a89f7){const _0x172afc=_0x5d6cf7;_0x14e98a[_0x172afc('0x120f')]=[];const _0x4fda94=_0x59170c[_0x172afc('0x132b')]()['title']('Are\x20you\x20sure?')['content']('The\x20extractedReport\x20will\x20be\x20deleted.')['ariaLabel'](_0x172afc('0x798'))['ok'](_0x172afc('0x1167'))[_0x172afc('0x26c9')](_0x172afc('0x784'))[_0x172afc('0x1e25')](_0x1a89f7);_0x59170c[_0x172afc('0xb9')](_0x4fda94)['then'](function(){const _0x5071ca=_0x172afc;_0x22e193[_0x5071ca('0x1136')][_0x5071ca('0x2088')]({'id':_0x14e98a[_0x5071ca('0x11a9')]['id']})[_0x5071ca('0x1549')][_0x5071ca('0x11bf')](function(){const _0x3b4f0c=_0x5071ca;_0x36f548()[_0x3b4f0c('0x14a5')](_0x14e98a[_0x3b4f0c('0x18dd')],{'id':_0x14e98a[_0x3b4f0c('0x11a9')]['id']}),_0x50687b[_0x3b4f0c('0x2693')]({'title':_0x3b4f0c('0x258b'),'msg':(_0x14e98a[_0x3b4f0c('0x11a9')]['name']||_0x3b4f0c('0x11a9'))+'\x20has\x20been\x20deleted!'}),_0x3df4b6(_0x14e98a[_0x3b4f0c('0x11a9')]);})[_0x5071ca('0x151d')](function(_0x2d9627){const _0x12518c=_0x5071ca;if(_0x2d9627[_0x12518c('0x4e8')]&&_0x2d9627[_0x12518c('0x4e8')][_0x12518c('0x120f')]&&_0x2d9627[_0x12518c('0x4e8')]['errors'][_0x12518c('0x1e22')]){_0x14e98a[_0x12518c('0x120f')]=_0x2d9627[_0x12518c('0x4e8')][_0x12518c('0x120f')]||[{'message':_0x2d9627['toString'](),'type':_0x12518c('0xd3c')}];for(let _0x2def14=0x0;_0x2def14<_0x2d9627['data']['errors'][_0x12518c('0x1e22')];_0x2def14++){_0x50687b[_0x12518c('0x255')]({'title':_0x2d9627['data'][_0x12518c('0x120f')][_0x2def14]['type'],'msg':_0x2d9627[_0x12518c('0x4e8')][_0x12518c('0x120f')][_0x2def14]['message']});}}else _0x50687b[_0x12518c('0x255')]({'title':_0x2d9627['status']?_0x12518c('0x574')+_0x2d9627[_0x12518c('0xff9')]+_0x12518c('0xb0b')+_0x2d9627['statusText']:_0x12518c('0xd3c'),'msg':_0x2d9627[_0x12518c('0x4e8')]?JSON['stringify'](_0x2d9627[_0x12518c('0x4e8')][_0x12518c('0x1b86')]):_0x2d9627[_0x12518c('0x1b86')]||_0x2d9627[_0x12518c('0xaab')]()});});},function(){});}function _0x3cce98(_0x11211e){return _0x11211e===null?undefined:new Date(_0x11211e);}function _0x3df4b6(_0x313e2f){_0x59170c['hide'](_0x313e2f);}}const _0x2a2dee=_0x2880b5,_0x2efe1e=_0x351988['p']+'src/js/modules/main/apps/analytics/views/extractedReports/create/dialog.html/dialog.html';_0x2fde5b[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0x2143'),_0x21d0f5('0xcbc'),_0x21d0f5('0x18fe'),_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),_0x21d0f5('0x17f5'),_0x21d0f5('0xb6b'),_0x21d0f5('0x18dd'),_0x21d0f5('0x25bc'),_0x21d0f5('0x1d63'),'api',_0x21d0f5('0xda9'),_0x21d0f5('0x142d'),_0x21d0f5('0x1150'),'license',_0x21d0f5('0x23e1')];function _0x2fde5b(_0x28d7e9,_0x200781,_0x4d0f24,_0x1569ff,_0xb4e344,_0x181def,_0x13e179,_0x4fcca9,_0x2c2ffa,_0x3784bd,_0x2262fb,_0x567b25,_0x26f743,_0x521dc9,_0x1c906f,_0x307776,_0x129902){const _0x2c13a8=_0x21d0f5,_0x5ba3ab=this;_0x5ba3ab[_0x2c13a8('0x17ff')]=_0x307776,_0x5ba3ab['setting']=_0x129902,_0x5ba3ab['currentUser']=_0x1c906f[_0x2c13a8('0x2428')](),_0x5ba3ab['extractedReports']=_0x2c2ffa||{'count':0x0,'rows':[]},_0x5ba3ab[_0x2c13a8('0x25bc')]=_0x3784bd,_0x5ba3ab[_0x2c13a8('0x1d63')]=_0x2262fb&&_0x2262fb[_0x2c13a8('0x27d2')]==0x1?_0x2262fb[_0x2c13a8('0x19b2')][0x0]:null,_0x5ba3ab[_0x2c13a8('0xb25')]=_0x1c906f['parseCrudPermissions'](_0x5ba3ab[_0x2c13a8('0x1d63')]?_0x5ba3ab[_0x2c13a8('0x1d63')][_0x2c13a8('0xb25')]:null),_0x5ba3ab[_0x2c13a8('0x13e8')]='extractedReports',_0x5ba3ab[_0x2c13a8('0x724')]='',_0x5ba3ab[_0x2c13a8('0xe3c')]=null,_0x5ba3ab[_0x2c13a8('0x32d')]=[],_0x5ba3ab[_0x2c13a8('0x1f2a')]={'fields':_0x2c13a8('0x6e4'),'sort':_0x2c13a8('0x1c74'),'limit':0xa,'page':0x1},_0x5ba3ab[_0x2c13a8('0xc03')]=_0x5edf82,_0x5ba3ab[_0x2c13a8('0x3b3')]=_0x5a8fb6,_0x5ba3ab[_0x2c13a8('0x549')]=_0x2c1662,_0x5ba3ab[_0x2c13a8('0x2693')]=_0x21f21f,_0x5ba3ab['getExtractedReports']=_0x15d1fb,_0x5ba3ab[_0x2c13a8('0x1cdb')]=_0x4f7756,_0x5ba3ab[_0x2c13a8('0xecc')]=_0x781e1e,_0x5ba3ab[_0x2c13a8('0x1e5f')]=_0x43dc23,_0x5ba3ab['deleteSelectedExtractedReports']=_0x1fd560,_0x5ba3ab[_0x2c13a8('0x1959')]=_0x197044,_0x5ba3ab[_0x2c13a8('0x4e5')]=_0x280513;function _0x5edf82(_0x26c1d4,_0x35ded4){const _0x409ee2=_0x2c13a8;_0xb4e344[_0x409ee2('0xb9')]({'controller':_0x409ee2('0x2075'),'controllerAs':'vm','templateUrl':_0x2efe1e,'parent':angular[_0x409ee2('0x1e73')](_0x181def[_0x409ee2('0x1d2')]),'targetEvent':_0x35ded4,'clickOutsideToClose':!![],'locals':{'extractedReport':_0x26c1d4,'extractedReports':_0x5ba3ab[_0x409ee2('0x18dd')][_0x409ee2('0x19b2')],'license':_0x5ba3ab[_0x409ee2('0x17ff')],'setting':null,'crudPermissions':_0x5ba3ab[_0x409ee2('0xb25')]}});}function _0x5a8fb6(_0x52564c){const _0x245d83=_0x2c13a8;return _0x567b25[_0x245d83('0x1136')][_0x245d83('0x149c')]({'id':_0x52564c['id']})[_0x245d83('0x1549')][_0x245d83('0x11bf')](function(_0x23b4f6){const _0x510f0a=_0x245d83,_0x4ce02d=[_0x23b4f6[_0x510f0a('0x1e94')]];let _0x30075e=_0x510f0a('0x149c');const _0x1eccce=new Blob(_0x4ce02d,{'type':_0x23b4f6[_0x510f0a('0x19fd')]});_0x30075e=_0x52564c['savename'];const _0x21399e=window[_0x510f0a('0xb54')][_0x510f0a('0x2773')]('a');_0x21399e[_0x510f0a('0x1e1b')](_0x510f0a('0xead'),URL[_0x510f0a('0x44b')](_0x1eccce)),_0x21399e[_0x510f0a('0x1e1b')](_0x510f0a('0x149c'),_0x30075e),document['body']['appendChild'](_0x21399e),_0x21399e[_0x510f0a('0x1371')]();})[_0x245d83('0x151d')](function(_0x3445c9){const _0x224914=_0x245d83;if(_0x3445c9[_0x224914('0x4e8')]&&_0x3445c9['data'][_0x224914('0x120f')]&&_0x3445c9[_0x224914('0x4e8')][_0x224914('0x120f')][_0x224914('0x1e22')])for(let _0xe6aa55=0x0;_0xe6aa55<_0x3445c9['data']['errors']['length'];_0xe6aa55++){_0x521dc9[_0x224914('0x255')]({'title':_0x3445c9[_0x224914('0x4e8')][_0x224914('0x120f')][_0xe6aa55][_0x224914('0x19fd')],'msg':_0x3445c9['data']['errors'][_0xe6aa55][_0x224914('0x1b86')]});}else _0x521dc9[_0x224914('0x255')]({'title':_0x3445c9[_0x224914('0xff9')]?_0x224914('0x574')+_0x3445c9[_0x224914('0xff9')]+_0x224914('0xb0b')+_0x3445c9[_0x224914('0x212f')]:_0x224914('0x746'),'msg':_0x3445c9[_0x224914('0x4e8')]?JSON[_0x224914('0x3e')](_0x3445c9[_0x224914('0x4e8')]['message']):_0x3445c9['toString']()});});}function _0x2c1662(_0x6d231b,_0x268ddb){const _0x1ca304=_0x2c13a8,_0x51a84c=_0xb4e344[_0x1ca304('0x132b')]()[_0x1ca304('0x134b')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x36f548()[_0x1ca304('0x13cf')](_0x1ca304('0x11a9'))+'?')[_0x1ca304('0x1d03')](_0x1ca304('0x2061')+(_0x6d231b[_0x1ca304('0x1909')]||_0x1ca304('0x11a9'))+_0x1ca304('0x1c78')+'\x20will\x20be\x20deleted.')[_0x1ca304('0xb2e')]('delete\x20extractedReport')[_0x1ca304('0x1e25')](_0x268ddb)['ok']('OK')[_0x1ca304('0x26c9')]('CANCEL');_0xb4e344[_0x1ca304('0xb9')](_0x51a84c)[_0x1ca304('0x11bf')](function(){_0x781e1e(_0x6d231b);},function(){const _0x5eb314=_0x1ca304;console[_0x5eb314('0xc78')](_0x5eb314('0x772'));});}let _0x243b73=!![],_0x5a5eba=0x1;_0x28d7e9['$watch'](_0x2c13a8('0x842'),function(_0x5af908,_0x62c128){const _0x5c9e60=_0x2c13a8;_0x243b73?_0x13e179(function(){_0x243b73=![];}):(!_0x62c128&&(_0x5a5eba=_0x5ba3ab[_0x5c9e60('0x1f2a')][_0x5c9e60('0x1c2')]),_0x5af908!==_0x62c128&&(_0x5ba3ab['query']['page']=0x1),!_0x5af908&&(_0x5ba3ab[_0x5c9e60('0x1f2a')][_0x5c9e60('0x1c2')]=_0x5a5eba),_0x5ba3ab[_0x5c9e60('0xc35')]());});function _0x21f21f(_0x947c50){const _0x13122f=_0x2c13a8;_0x5ba3ab[_0x13122f('0x18dd')]=_0x947c50||{'count':0x0,'rows':[]};}function _0x15d1fb(){const _0x3d0c4f=_0x2c13a8;_0x5ba3ab[_0x3d0c4f('0x1f2a')][_0x3d0c4f('0x1393')]=(_0x5ba3ab[_0x3d0c4f('0x1f2a')][_0x3d0c4f('0x1c2')]-0x1)*_0x5ba3ab[_0x3d0c4f('0x1f2a')][_0x3d0c4f('0xd5c')],_0x1c906f[_0x3d0c4f('0x4ee')]('admin')?_0x5ba3ab['promise']=_0x567b25['analyticExtractedReport'][_0x3d0c4f('0xbaa')](_0x5ba3ab[_0x3d0c4f('0x1f2a')],_0x21f21f)[_0x3d0c4f('0x1549')]:(_0x5ba3ab[_0x3d0c4f('0x1f2a')]['id']=_0x5ba3ab['userProfile']['id'],_0x5ba3ab[_0x3d0c4f('0x1f2a')][_0x3d0c4f('0xe6')]=_0x3d0c4f('0x161a'),_0x5ba3ab[_0x3d0c4f('0x13f')]=_0x567b25[_0x3d0c4f('0x25bc')][_0x3d0c4f('0x228e')](_0x5ba3ab[_0x3d0c4f('0x1f2a')],_0x21f21f)[_0x3d0c4f('0x1549')]);}function _0x4f7756(_0xf15f48,_0x476ed6){const _0x10e198=_0x2c13a8;_0xb4e344[_0x10e198('0xb9')]({'controller':'CreateOrEditExtractedReportDialogController','controllerAs':'vm','templateUrl':_0x2efe1e,'parent':angular[_0x10e198('0x1e73')](_0x181def[_0x10e198('0x1d2')]),'targetEvent':_0xf15f48,'clickOutsideToClose':!![],'locals':{'extractedReport':_0x476ed6,'extractedReports':_0x5ba3ab[_0x10e198('0x18dd')][_0x10e198('0x19b2')],'license':_0x5ba3ab[_0x10e198('0x17ff')],'setting':_0x5ba3ab[_0x10e198('0x23e1')],'crudPermissions':_0x5ba3ab[_0x10e198('0xb25')]}});}function _0x781e1e(_0x203ebd){const _0x2a203c=_0x2c13a8;_0x567b25[_0x2a203c('0x1136')][_0x2a203c('0x2088')]({'id':_0x203ebd['id']})[_0x2a203c('0x1549')][_0x2a203c('0x11bf')](function(){const _0x2d828d=_0x2a203c;_0x36f548()[_0x2d828d('0x14a5')](_0x5ba3ab[_0x2d828d('0x18dd')]['rows'],{'id':_0x203ebd['id']}),_0x5ba3ab[_0x2d828d('0x18dd')][_0x2d828d('0x27d2')]-=0x1,!_0x5ba3ab[_0x2d828d('0x18dd')]['rows'][_0x2d828d('0x1e22')]&&_0x5ba3ab[_0x2d828d('0xc35')](),_0x521dc9[_0x2d828d('0x2693')]({'title':_0x36f548()[_0x2d828d('0x13cf')]('ExtractedReport')+_0x2d828d('0x2113'),'msg':_0x203ebd[_0x2d828d('0x1909')]?_0x203ebd['name']+_0x2d828d('0x433'):''});})['catch'](function(_0x1fa496){const _0x5a4564=_0x2a203c;if(_0x1fa496['data']&&_0x1fa496['data'][_0x5a4564('0x120f')]&&_0x1fa496['data'][_0x5a4564('0x120f')][_0x5a4564('0x1e22')]){_0x5ba3ab[_0x5a4564('0x120f')]=_0x1fa496[_0x5a4564('0x4e8')][_0x5a4564('0x120f')]||[{'message':_0x1fa496[_0x5a4564('0xaab')](),'type':_0x5a4564('0x9f')}];for(let _0x12b9bf=0x0;_0x12b9bf<_0x1fa496[_0x5a4564('0x4e8')][_0x5a4564('0x120f')][_0x5a4564('0x1e22')];_0x12b9bf++){_0x521dc9[_0x5a4564('0x255')]({'title':_0x1fa496[_0x5a4564('0x4e8')]['errors'][_0x12b9bf][_0x5a4564('0x19fd')],'msg':_0x1fa496['data'][_0x5a4564('0x120f')][_0x12b9bf]['message']});}}else _0x521dc9[_0x5a4564('0x255')]({'title':_0x1fa496[_0x5a4564('0xff9')]?'API:'+_0x1fa496[_0x5a4564('0xff9')]+'\x20-\x20'+_0x1fa496[_0x5a4564('0x212f')]:_0x5a4564('0x9f'),'msg':_0x1fa496[_0x5a4564('0x4e8')]?JSON[_0x5a4564('0x3e')](_0x1fa496[_0x5a4564('0x4e8')][_0x5a4564('0x1b86')]):_0x1fa496['message']||_0x1fa496[_0x5a4564('0xaab')]()});});}function _0x43dc23(){const _0x4a4729=_0x2c13a8,_0x24e050=angular[_0x4a4729('0x6fb')](_0x5ba3ab['selectedExtractedReports']);return _0x5ba3ab['selectedExtractedReports']=[],_0x24e050;}function _0x1fd560(_0x1ab4fe){const _0x2b6148=_0x2c13a8,_0x13f140=_0xb4e344['confirm']()['title'](_0x2b6148('0x19c5'))[_0x2b6148('0x1d03')](_0x2b6148('0x2061')+_0x5ba3ab[_0x2b6148('0x32d')][_0x2b6148('0x1e22')]+'\x20selected'+_0x2b6148('0x1a'))[_0x2b6148('0xb2e')](_0x2b6148('0x14d3'))['targetEvent'](_0x1ab4fe)['ok']('OK')[_0x2b6148('0x26c9')](_0x2b6148('0x772'));_0xb4e344[_0x2b6148('0xb9')](_0x13f140)['then'](function(){const _0x2917ad=_0x2b6148;_0x5ba3ab[_0x2917ad('0x32d')]['forEach'](function(_0x3eeb47){_0x781e1e(_0x3eeb47);}),_0x5ba3ab[_0x2917ad('0x32d')]=[];});}function _0x197044(){_0x5ba3ab['selectedExtractedReports']=[];}function _0x280513(){const _0xc7df08=_0x2c13a8;_0x5ba3ab[_0xc7df08('0x32d')]=_0x5ba3ab[_0xc7df08('0x18dd')][_0xc7df08('0x19b2')];}}const _0x421979=_0x2fde5b;_0x37334d[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0xcbc'),_0x21d0f5('0x16b9'),_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0xb6b'),_0x21d0f5('0x142d'),'metrics','metric','api',_0x21d0f5('0x1150'),_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1'),_0x21d0f5('0xb25')];function _0x37334d(_0x288b58,_0x224f6a,_0x628289,_0x5f4820,_0x4bdcea,_0x49372c,_0x49e823,_0x4a598d,_0x1b1b99,_0x40fee6,_0x419302,_0xc6c330,_0xf3cc0e,_0x54373a){const _0x1a90ea=_0x21d0f5,_0x49fe69=this;_0x49fe69[_0x1a90ea('0x32a')]=_0x419302[_0x1a90ea('0x2428')](),_0x49fe69['errors']=[],_0x49fe69[_0x1a90ea('0x23e1')]=_0xf3cc0e,_0x49fe69['license']=_0xc6c330,_0x49fe69[_0x1a90ea('0xb25')]=_0x54373a,_0x49fe69[_0x1a90ea('0x2c9')]={},_0x49fe69[_0x1a90ea('0x2834')]=_0x49fe69[_0x1a90ea('0x23e1')]&&_0x49fe69[_0x1a90ea('0x23e1')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x49fe69[_0x1a90ea('0x134b')]=_0x1a90ea('0x1aef'),_0x49fe69[_0x1a90ea('0x1bed')]=angular[_0x1a90ea('0x6fb')](_0x1b1b99),_0x49fe69['metrics']=_0x4a598d,_0x49fe69[_0x1a90ea('0x1dc1')]=![];!_0x49fe69[_0x1a90ea('0x1bed')]&&(_0x49fe69[_0x1a90ea('0x1bed')]={'table':_0x1a90ea('0x681')},_0x49fe69[_0x1a90ea('0x134b')]=_0x1a90ea('0x317'),_0x49fe69[_0x1a90ea('0x1dc1')]=!![]);_0x49fe69[_0x1a90ea('0x1a15')]=_0x1e3950,_0x49fe69[_0x1a90ea('0x216d')]=_0x500d34,_0x49fe69['deleteMetric']=_0x2dcd8a,_0x49fe69['getDateFromString']=_0x1c927c,_0x49fe69[_0x1a90ea('0xc4e')]=_0x5dbcc6;function _0x1e3950(){const _0x1208c3=_0x1a90ea;_0x49fe69[_0x1208c3('0x120f')]=[],_0x40fee6[_0x1208c3('0xde8')][_0x1208c3('0x259')](_0x49fe69[_0x1208c3('0x1bed')])[_0x1208c3('0x1549')][_0x1208c3('0x11bf')](function(_0x325031){const _0x44f008=_0x1208c3;_0x49fe69[_0x44f008('0x2767')][_0x44f008('0x880')](_0x325031[_0x44f008('0x2866')]()),_0x49e823['success']({'title':_0x44f008('0x2610'),'msg':_0x49fe69[_0x44f008('0x1bed')][_0x44f008('0x1909')]?_0x49fe69[_0x44f008('0x1bed')]['name']+_0x44f008('0x7fb'):''}),_0x5dbcc6(_0x325031);})[_0x1208c3('0x151d')](function(_0x160250){const _0xff4876=_0x1208c3;if(_0x160250['data']&&_0x160250[_0xff4876('0x4e8')][_0xff4876('0x120f')]&&_0x160250[_0xff4876('0x4e8')][_0xff4876('0x120f')]['length']){_0x49fe69[_0xff4876('0x120f')]=_0x160250['data'][_0xff4876('0x120f')]||[{'message':_0x160250['toString'](),'type':_0xff4876('0x1e8')}];for(let _0x2c8aad=0x0;_0x2c8aad<_0x160250[_0xff4876('0x4e8')][_0xff4876('0x120f')][_0xff4876('0x1e22')];_0x2c8aad+=0x1){_0x49e823['error']({'title':_0x160250[_0xff4876('0x4e8')][_0xff4876('0x120f')][_0x2c8aad][_0xff4876('0x19fd')],'msg':_0x160250[_0xff4876('0x4e8')][_0xff4876('0x120f')][_0x2c8aad][_0xff4876('0x1b86')]});}}else _0x49e823[_0xff4876('0x255')]({'title':_0x160250[_0xff4876('0xff9')]?_0xff4876('0x574')+_0x160250[_0xff4876('0xff9')]+_0xff4876('0xb0b')+_0x160250[_0xff4876('0x212f')]:_0xff4876('0x1e8'),'msg':_0x160250[_0xff4876('0x4e8')]?JSON[_0xff4876('0x3e')](_0x160250[_0xff4876('0x4e8')][_0xff4876('0x1b86')]):_0x160250[_0xff4876('0xaab')]()});});}function _0x500d34(){const _0x3e36a7=_0x1a90ea;_0x49fe69[_0x3e36a7('0x120f')]=[],_0x40fee6[_0x3e36a7('0xde8')][_0x3e36a7('0x5ab')]({'id':_0x49fe69[_0x3e36a7('0x1bed')]['id']},_0x49fe69['metric'])[_0x3e36a7('0x1549')][_0x3e36a7('0x11bf')](function(_0x5ef9b1){const _0x2c54b9=_0x3e36a7,_0x145144=_0x36f548()[_0x2c54b9('0x1ad4')](_0x49fe69[_0x2c54b9('0x2767')],{'id':_0x5ef9b1['id']});_0x145144&&_0x36f548()[_0x2c54b9('0x47b')](_0x145144,_0x36f548()[_0x2c54b9('0x258')](_0x5ef9b1[_0x2c54b9('0x2866')](),_0x36f548()[_0x2c54b9('0xe22')](_0x145144))),_0x49e823[_0x2c54b9('0x2693')]({'title':_0x2c54b9('0x1b9'),'msg':_0x49fe69[_0x2c54b9('0x1bed')][_0x2c54b9('0x1909')]?_0x49fe69[_0x2c54b9('0x1bed')][_0x2c54b9('0x1909')]+_0x2c54b9('0x1a78'):''}),_0x5dbcc6(_0x5ef9b1);})['catch'](function(_0x5c73ad){const _0x3433c3=_0x3e36a7;if(_0x5c73ad[_0x3433c3('0x4e8')]&&_0x5c73ad[_0x3433c3('0x4e8')]['errors']&&_0x5c73ad[_0x3433c3('0x4e8')]['errors'][_0x3433c3('0x1e22')]){_0x49fe69[_0x3433c3('0x120f')]=_0x5c73ad[_0x3433c3('0x4e8')]['errors']||[{'message':_0x5c73ad[_0x3433c3('0xaab')](),'type':'api.analyticMetric.update'}];for(let _0x403975=0x0;_0x403975<_0x5c73ad[_0x3433c3('0x4e8')][_0x3433c3('0x120f')][_0x3433c3('0x1e22')];_0x403975++){_0x49e823[_0x3433c3('0x255')]({'title':_0x5c73ad[_0x3433c3('0x4e8')][_0x3433c3('0x120f')][_0x403975][_0x3433c3('0x19fd')],'msg':_0x5c73ad[_0x3433c3('0x4e8')]['errors'][_0x403975][_0x3433c3('0x1b86')]});}}else _0x49e823[_0x3433c3('0x255')]({'title':_0x5c73ad['status']?_0x3433c3('0x574')+_0x5c73ad[_0x3433c3('0xff9')]+'\x20-\x20'+_0x5c73ad[_0x3433c3('0x212f')]:_0x3433c3('0x1481'),'msg':_0x5c73ad[_0x3433c3('0x4e8')]?JSON[_0x3433c3('0x3e')](_0x5c73ad[_0x3433c3('0x4e8')]['message']):_0x5c73ad[_0x3433c3('0xaab')]()});});}function _0x2dcd8a(_0x163b61){const _0x47ebe8=_0x1a90ea;_0x49fe69[_0x47ebe8('0x120f')]=[];const _0x2ec18d=_0x5f4820['confirm']()[_0x47ebe8('0x134b')](_0x47ebe8('0x1fa9'))[_0x47ebe8('0x252a')](_0x47ebe8('0xf38'))[_0x47ebe8('0xb2e')](_0x47ebe8('0xdad'))['ok'](_0x47ebe8('0x1167'))[_0x47ebe8('0x26c9')](_0x47ebe8('0x784'))[_0x47ebe8('0x1e25')](_0x163b61);_0x5f4820['show'](_0x2ec18d)[_0x47ebe8('0x11bf')](function(){const _0x3255b1=_0x47ebe8;_0x40fee6[_0x3255b1('0xde8')][_0x3255b1('0x2088')]({'id':_0x49fe69[_0x3255b1('0x1bed')]['id']})[_0x3255b1('0x1549')][_0x3255b1('0x11bf')](function(){const _0x3ec5b2=_0x3255b1;_0x36f548()['remove'](_0x49fe69[_0x3ec5b2('0x2767')],{'id':_0x49fe69[_0x3ec5b2('0x1bed')]['id']}),_0x49e823[_0x3ec5b2('0x2693')]({'title':_0x3ec5b2('0x1628'),'msg':(_0x49fe69['metric'][_0x3ec5b2('0x1909')]||_0x3ec5b2('0x1bed'))+'\x20has\x20been\x20deleted!'}),_0x5dbcc6(_0x49fe69[_0x3ec5b2('0x1bed')]);})['catch'](function(_0x2abcbf){const _0x5a6fc5=_0x3255b1;if(_0x2abcbf['data']&&_0x2abcbf['data'][_0x5a6fc5('0x120f')]&&_0x2abcbf[_0x5a6fc5('0x4e8')]['errors'][_0x5a6fc5('0x1e22')]){_0x49fe69['errors']=_0x2abcbf['data']['errors']||[{'message':_0x2abcbf['toString'](),'type':'api.analyticMetric.delete'}];for(let _0x497356=0x0;_0x497356<_0x2abcbf['data'][_0x5a6fc5('0x120f')]['length'];_0x497356++){_0x49e823['error']({'title':_0x2abcbf[_0x5a6fc5('0x4e8')][_0x5a6fc5('0x120f')][_0x497356]['type'],'msg':_0x2abcbf[_0x5a6fc5('0x4e8')][_0x5a6fc5('0x120f')][_0x497356][_0x5a6fc5('0x1b86')]});}}else _0x49e823[_0x5a6fc5('0x255')]({'title':_0x2abcbf['status']?_0x5a6fc5('0x574')+_0x2abcbf['status']+_0x5a6fc5('0xb0b')+_0x2abcbf[_0x5a6fc5('0x212f')]:'api.analyticMetric.delete','msg':_0x2abcbf['data']?JSON[_0x5a6fc5('0x3e')](_0x2abcbf[_0x5a6fc5('0x4e8')][_0x5a6fc5('0x1b86')]):_0x2abcbf[_0x5a6fc5('0x1b86')]||_0x2abcbf['toString']()});});},function(){});}function _0x1c927c(_0x116ad7){return _0x116ad7===null?undefined:new Date(_0x116ad7);}function _0x5dbcc6(_0x1ac97a){_0x5f4820['hide'](_0x1ac97a);}}const _0x4dec36=_0x37334d,_0x2a29bd=_0x351988['p']+_0x21d0f5('0x1483');_0x16f2f7[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),'$window',_0x21d0f5('0xcbc'),_0x21d0f5('0x18fe'),_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),_0x21d0f5('0x17f5'),_0x21d0f5('0xb6b'),_0x21d0f5('0x2767'),_0x21d0f5('0x25bc'),_0x21d0f5('0x1d63'),_0x21d0f5('0x12a5'),'msUtils','toasty',_0x21d0f5('0x1150'),_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1')];function _0x16f2f7(_0x52954c,_0x2eceec,_0x2c687d,_0x3ec5ef,_0x49b1fb,_0x39dd33,_0x570bc7,_0x1c0ccf,_0x2bb44a,_0x58cd0d,_0x5f4b10,_0x35b0f5,_0x13ec4f,_0x577079,_0x360a91,_0x304b15,_0x16862d){const _0x1394e2=_0x21d0f5,_0x2a177c=this;_0x2a177c['license']=_0x304b15,_0x2a177c['setting']=_0x16862d,_0x2a177c[_0x1394e2('0x32a')]=_0x360a91[_0x1394e2('0x2428')](),_0x2a177c[_0x1394e2('0x2767')]=_0x2bb44a||{'count':0x0,'rows':[]},_0x2a177c['userProfile']=_0x58cd0d,_0x2a177c[_0x1394e2('0x1d63')]=_0x5f4b10&&_0x5f4b10['count']==0x1?_0x5f4b10[_0x1394e2('0x19b2')][0x0]:null,_0x2a177c['crudPermissions']=_0x360a91['parseCrudPermissions'](_0x2a177c['userProfileSection']?_0x2a177c[_0x1394e2('0x1d63')]['crudPermissions']:null),_0x2a177c[_0x1394e2('0x13e8')]=_0x1394e2('0x2767'),_0x2a177c[_0x1394e2('0x724')]='',_0x2a177c[_0x1394e2('0xe3c')]=null,_0x2a177c['selectedMetrics']=[],_0x2a177c['query']={'fields':'createdAt,updatedAt,id,name,table,metric,description','sort':'-updatedAt','limit':0xa,'page':0x1},_0x2a177c[_0x1394e2('0x2602')]=_0x36f548()['keyBy']([{'option':_0x1394e2('0x5ae'),'value':'\x27report_agent\x27'},{'option':_0x1394e2('0x2292'),'value':_0x1394e2('0x2449')},{'option':_0x1394e2('0x8e8'),'value':'\x27cdr\x27'},{'option':'Chat\x20Website','value':_0x1394e2('0x1c0c')},{'option':_0x1394e2('0x739'),'value':_0x1394e2('0x11af')},{'option':_0x1394e2('0x2797'),'value':'\x27chat_messages\x27'},{'option':_0x1394e2('0x3c3'),'value':_0x1394e2('0xa70')},{'option':'Chat\x20Queues','value':_0x1394e2('0x184b')},{'option':_0x1394e2('0x11a0'),'value':_0x1394e2('0x22ef')},{'option':'Chat\x20Report\x20Transfer','value':_0x1394e2('0x1d8e')},{'option':_0x1394e2('0x1638'),'value':_0x1394e2('0x1e3d')},{'option':_0x1394e2('0xe64'),'value':_0x1394e2('0x276f')},{'option':_0x1394e2('0x1a33'),'value':_0x1394e2('0x1a40')},{'option':_0x1394e2('0x20c7'),'value':'\x27report_square_details\x27'},{'option':_0x1394e2('0x22f3'),'value':_0x1394e2('0x209d')},{'option':'Dialer\x20Hopper\x20Processing','value':_0x1394e2('0x2005')},{'option':_0x1394e2('0x86a'),'value':_0x1394e2('0x18c')},{'option':_0x1394e2('0x1da6'),'value':_0x1394e2('0x2654')},{'option':'Email\x20Account','value':_0x1394e2('0x125e')},{'option':'Email\x20Interaction','value':_0x1394e2('0x128c')},{'option':_0x1394e2('0x14e9'),'value':'\x27mail_messages\x27'},{'option':_0x1394e2('0x1a87'),'value':_0x1394e2('0x17e4')},{'option':_0x1394e2('0x1a69'),'value':_0x1394e2('0x1c17')},{'option':_0x1394e2('0xaa'),'value':_0x1394e2('0x1ed3')},{'option':_0x1394e2('0xc39'),'value':_0x1394e2('0x26f6')},{'option':'Fax\x20Interaction','value':'\x27fax_interactions\x27'},{'option':_0x1394e2('0x119'),'value':_0x1394e2('0x51')},{'option':_0x1394e2('0x26a8'),'value':_0x1394e2('0x852')},{'option':_0x1394e2('0xefc'),'value':'\x27report_fax_queue\x27'},{'option':_0x1394e2('0x12e2'),'value':_0x1394e2('0x1e66')},{'option':_0x1394e2('0x24b7'),'value':'\x27report_jscripty_sessions\x27'},{'option':_0x1394e2('0x26b0'),'value':_0x1394e2('0x140a')},{'option':_0x1394e2('0x11d1'),'value':_0x1394e2('0xfa7')},{'option':_0x1394e2('0x2244'),'value':_0x1394e2('0x1f59')},{'option':_0x1394e2('0xb80'),'value':_0x1394e2('0x1eed')},{'option':'Openchannel\x20Account','value':_0x1394e2('0x1d90')},{'option':'Openchannel\x20Interaction','value':'\x27openchannel_interactions\x27'},{'option':_0x1394e2('0x1f2d'),'value':_0x1394e2('0xd92')},{'option':_0x1394e2('0x501'),'value':_0x1394e2('0x1330')},{'option':_0x1394e2('0xb13'),'value':_0x1394e2('0xa73')},{'option':_0x1394e2('0x56d'),'value':'\x27report_openchannel_transfer\x27'},{'option':_0x1394e2('0x20d1'),'value':_0x1394e2('0x19b3')},{'option':_0x1394e2('0x185d'),'value':'\x27sms_accounts\x27'},{'option':_0x1394e2('0x7e2'),'value':_0x1394e2('0x181b')},{'option':_0x1394e2('0x155f'),'value':_0x1394e2('0x59d')},{'option':_0x1394e2('0xcf7'),'value':'\x27sms_queues\x27'},{'option':_0x1394e2('0x650'),'value':_0x1394e2('0x2426')},{'option':'SMS\x20Report\x20Transfer','value':_0x1394e2('0x1a11')},{'option':_0x1394e2('0xc42'),'value':_0x1394e2('0x123c')},{'option':'Voice\x20Recordings','value':_0x1394e2('0xfb')},{'option':_0x1394e2('0x96b'),'value':'\x27whatsapp_accounts\x27'},{'option':_0x1394e2('0xf46'),'value':_0x1394e2('0x25c')},{'option':_0x1394e2('0x15a2'),'value':_0x1394e2('0x678')},{'option':_0x1394e2('0x16e3'),'value':_0x1394e2('0x2566')},{'option':_0x1394e2('0x218'),'value':'\x27report_whatsapp_queue\x27'},{'option':_0x1394e2('0x27'),'value':_0x1394e2('0x1240')}],function(_0x29433f){const _0x2fea34=_0x1394e2;return _0x36f548()[_0x2fea34('0x814')](_0x29433f['value'],new RegExp('\x27','g'),'');}),_0x2a177c[_0x1394e2('0xc03')]=_0x215d32,_0x2a177c['deleteconfirm']=_0x190375,_0x2a177c[_0x1394e2('0x2693')]=_0x1b184f,_0x2a177c['getMetrics']=_0x5433d3,_0x2a177c[_0x1394e2('0x2f3')]=_0x3aed2d,_0x2a177c[_0x1394e2('0x2085')]=_0x535024,_0x2a177c[_0x1394e2('0xd40')]=_0x249ed0,_0x2a177c[_0x1394e2('0x2281')]=_0x123e89,_0x2a177c[_0x1394e2('0x9e')]=_0x1ee569,_0x2a177c[_0x1394e2('0x14b2')]=_0x3ceceb;function _0x215d32(_0x616f10,_0x247b29){const _0x4a16ce=_0x1394e2;_0x49b1fb[_0x4a16ce('0xb9')]({'controller':'CreateOrEditMetricDialogController','controllerAs':'vm','templateUrl':_0x2a29bd,'parent':angular[_0x4a16ce('0x1e73')](_0x39dd33[_0x4a16ce('0x1d2')]),'targetEvent':_0x247b29,'clickOutsideToClose':!![],'locals':{'metric':_0x616f10,'metrics':_0x2a177c[_0x4a16ce('0x2767')]['rows'],'license':_0x2a177c['license'],'setting':null,'crudPermissions':_0x2a177c['crudPermissions']}});}function _0x190375(_0x44062c,_0x153b32){const _0x2fa958=_0x1394e2,_0x2f8e46=_0x49b1fb[_0x2fa958('0x132b')]()[_0x2fa958('0x134b')](_0x2fa958('0x1796')+_0x36f548()[_0x2fa958('0x13cf')](_0x2fa958('0x1bed'))+'?')[_0x2fa958('0x1d03')](_0x2fa958('0x2061')+(_0x44062c[_0x2fa958('0x1909')]||'metric')+_0x2fa958('0x1c78')+_0x2fa958('0x1a'))[_0x2fa958('0xb2e')](_0x2fa958('0x1ab4'))[_0x2fa958('0x1e25')](_0x153b32)['ok']('OK')[_0x2fa958('0x26c9')]('CANCEL');_0x49b1fb[_0x2fa958('0xb9')](_0x2f8e46)[_0x2fa958('0x11bf')](function(){_0x535024(_0x44062c);},function(){const _0xa73479=_0x2fa958;console[_0xa73479('0xc78')](_0xa73479('0x772'));});}let _0x7a3db1=!![],_0x3111be=0x1;_0x52954c[_0x1394e2('0x2087')](_0x1394e2('0x842'),function(_0x550fb2,_0x218326){const _0x99846=_0x1394e2;_0x7a3db1?_0x570bc7(function(){_0x7a3db1=![];}):(!_0x218326&&(_0x3111be=_0x2a177c[_0x99846('0x1f2a')][_0x99846('0x1c2')]),_0x550fb2!==_0x218326&&(_0x2a177c['query']['page']=0x1),!_0x550fb2&&(_0x2a177c[_0x99846('0x1f2a')]['page']=_0x3111be),_0x2a177c['getMetrics']());});function _0x1b184f(_0x2ce9e0){const _0x46eca7=_0x1394e2;_0x2a177c[_0x46eca7('0x2767')]=_0x2ce9e0||{'count':0x0,'rows':[]};}function _0x5433d3(){const _0x104e44=_0x1394e2;_0x2a177c[_0x104e44('0x1f2a')][_0x104e44('0x1393')]=(_0x2a177c[_0x104e44('0x1f2a')][_0x104e44('0x1c2')]-0x1)*_0x2a177c[_0x104e44('0x1f2a')][_0x104e44('0xd5c')],_0x360a91[_0x104e44('0x4ee')](_0x104e44('0xf45'))?_0x2a177c[_0x104e44('0x13f')]=_0x35b0f5['analyticMetric']['get'](_0x2a177c[_0x104e44('0x1f2a')],_0x1b184f)[_0x104e44('0x1549')]:(_0x2a177c[_0x104e44('0x1f2a')]['id']=_0x2a177c[_0x104e44('0x25bc')]['id'],_0x2a177c[_0x104e44('0x1f2a')][_0x104e44('0xe6')]='Metrics',_0x2a177c[_0x104e44('0x13f')]=_0x35b0f5[_0x104e44('0x25bc')]['getResources'](_0x2a177c[_0x104e44('0x1f2a')],_0x1b184f)['$promise']);}function _0x3aed2d(_0x1e5e4e,_0x20ddbb){const _0x3aa11c=_0x1394e2;_0x49b1fb['show']({'controller':_0x3aa11c('0x9f5'),'controllerAs':'vm','templateUrl':_0x2a29bd,'parent':angular[_0x3aa11c('0x1e73')](_0x39dd33[_0x3aa11c('0x1d2')]),'targetEvent':_0x1e5e4e,'clickOutsideToClose':!![],'locals':{'metric':_0x20ddbb,'metrics':_0x2a177c[_0x3aa11c('0x2767')][_0x3aa11c('0x19b2')],'license':_0x2a177c[_0x3aa11c('0x17ff')],'setting':_0x2a177c['setting'],'crudPermissions':_0x2a177c[_0x3aa11c('0xb25')]}});}function _0x535024(_0x3ecdac){const _0x32ea20=_0x1394e2;_0x35b0f5[_0x32ea20('0xde8')][_0x32ea20('0x2088')]({'id':_0x3ecdac['id']})[_0x32ea20('0x1549')][_0x32ea20('0x11bf')](function(){const _0x575de0=_0x32ea20;_0x36f548()[_0x575de0('0x14a5')](_0x2a177c[_0x575de0('0x2767')][_0x575de0('0x19b2')],{'id':_0x3ecdac['id']}),_0x2a177c[_0x575de0('0x2767')][_0x575de0('0x27d2')]-=0x1,!_0x2a177c[_0x575de0('0x2767')]['rows'][_0x575de0('0x1e22')]&&_0x2a177c[_0x575de0('0x1f2b')](),_0x577079[_0x575de0('0x2693')]({'title':_0x36f548()['startCase'](_0x575de0('0x1e7a'))+_0x575de0('0x2113'),'msg':_0x3ecdac[_0x575de0('0x1909')]?_0x3ecdac[_0x575de0('0x1909')]+_0x575de0('0x433'):''});})[_0x32ea20('0x151d')](function(_0x13679a){const _0x462d7e=_0x32ea20;if(_0x13679a[_0x462d7e('0x4e8')]&&_0x13679a[_0x462d7e('0x4e8')][_0x462d7e('0x120f')]&&_0x13679a[_0x462d7e('0x4e8')][_0x462d7e('0x120f')][_0x462d7e('0x1e22')]){_0x2a177c['errors']=_0x13679a[_0x462d7e('0x4e8')][_0x462d7e('0x120f')]||[{'message':_0x13679a[_0x462d7e('0xaab')](),'type':_0x462d7e('0xf5')}];for(let _0x282dcb=0x0;_0x282dcb<_0x13679a['data'][_0x462d7e('0x120f')][_0x462d7e('0x1e22')];_0x282dcb++){_0x577079['error']({'title':_0x13679a['data'][_0x462d7e('0x120f')][_0x282dcb][_0x462d7e('0x19fd')],'msg':_0x13679a[_0x462d7e('0x4e8')][_0x462d7e('0x120f')][_0x282dcb][_0x462d7e('0x1b86')]});}}else _0x577079[_0x462d7e('0x255')]({'title':_0x13679a[_0x462d7e('0xff9')]?_0x462d7e('0x574')+_0x13679a[_0x462d7e('0xff9')]+_0x462d7e('0xb0b')+_0x13679a[_0x462d7e('0x212f')]:_0x462d7e('0xf5'),'msg':_0x13679a[_0x462d7e('0x4e8')]?JSON[_0x462d7e('0x3e')](_0x13679a[_0x462d7e('0x4e8')][_0x462d7e('0x1b86')]):_0x13679a[_0x462d7e('0x1b86')]||_0x13679a[_0x462d7e('0xaab')]()});});}function _0x249ed0(){const _0x50bbc7=_0x1394e2,_0x447b15=angular[_0x50bbc7('0x6fb')](_0x2a177c[_0x50bbc7('0xf79')]);return _0x2a177c[_0x50bbc7('0xf79')]=[],_0x447b15;}function _0x123e89(_0x4eae0a){const _0x168c00=_0x1394e2,_0x35e8b6=_0x49b1fb[_0x168c00('0x132b')]()[_0x168c00('0x134b')](_0x168c00('0x2841'))[_0x168c00('0x1d03')](_0x168c00('0x2061')+_0x2a177c[_0x168c00('0xf79')][_0x168c00('0x1e22')]+_0x168c00('0xac6')+_0x168c00('0x1a'))[_0x168c00('0xb2e')]('delete\x20Metrics')[_0x168c00('0x1e25')](_0x4eae0a)['ok']('OK')[_0x168c00('0x26c9')](_0x168c00('0x772'));_0x49b1fb[_0x168c00('0xb9')](_0x35e8b6)['then'](function(){const _0x30bdaf=_0x168c00;_0x2a177c[_0x30bdaf('0xf79')][_0x30bdaf('0x1f88')](function(_0x357b9e){_0x535024(_0x357b9e);}),_0x2a177c[_0x30bdaf('0xf79')]=[];});}function _0x1ee569(){const _0x6f98e4=_0x1394e2;_0x2a177c[_0x6f98e4('0xf79')]=[];}function _0x3ceceb(){const _0x4310c3=_0x1394e2;_0x2a177c['selectedMetrics']=_0x2a177c[_0x4310c3('0x2767')][_0x4310c3('0x19b2')];}}const _0x45710f=_0x16f2f7;_0x2efdd2[_0x21d0f5('0x1e9a')]=['$stateProvider',_0x21d0f5('0xc3e')];function _0x2efdd2(_0x346248,_0x46ef12){const _0x255821=_0x21d0f5;_0x346248[_0x255821('0x2124')](_0x255821('0x578'),{'abstract':!![],'url':_0x255821('0xc55')})[_0x255821('0x2124')]('app.analytics.metrics',{'url':_0x255821('0x22d0'),'views':{'content@app':{'templateUrl':_0x1b246d,'controller':_0x255821('0x11d4')}},'resolve':{'metrics':[_0x255821('0x218e'),_0x255821('0x1150'),function(_0x58015e,_0x5624bf){const _0x555fba=_0x255821;return _0x5624bf['hasRole'](_0x555fba('0xf45'))?_0x58015e['resolve'](_0x555fba('0x1c54'),{'fields':'createdAt,updatedAt,id,name,table,metric,description','sort':_0x555fba('0x1c74'),'limit':0xa,'offset':0x0}):_0x58015e[_0x555fba('0xa28')](_0x555fba('0xb0d'),{'id':_0x5624bf['getCurrentUser']()[_0x555fba('0x781')],'section':_0x555fba('0x664'),'fields':_0x555fba('0xa5b'),'sort':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':[_0x255821('0x218e'),_0x255821('0x1150'),function(_0x5b5f79,_0x303e61){const _0x213cf4=_0x255821;return _0x303e61['hasRole'](_0x213cf4('0xf45'))?null:_0x5b5f79[_0x213cf4('0xa28')]('userProfile@get',{'fields':_0x213cf4('0xd30'),'id':_0x303e61['getCurrentUser']()['userProfileId']});}],'userProfileSection':['apiResolver',_0x255821('0x1150'),function(_0x5f2899,_0x27b52c){const _0x21084b=_0x255821;return _0x27b52c[_0x21084b('0x4ee')](_0x21084b('0xf45'))?null:_0x5f2899[_0x21084b('0xa28')]('userProfileSection@get',{'fields':_0x21084b('0x36d'),'userProfileId':_0x27b52c[_0x21084b('0x2428')]()[_0x21084b('0x781')],'sectionId':0x4b1});}]},'authenticate':!![],'permissionId':0x4b1,'bodyClass':_0x255821('0x24f')})[_0x255821('0x2124')](_0x255821('0x1338'),{'url':_0x255821('0x24f9'),'views':{'content@app':{'templateUrl':_0x16c9b7,'controller':_0x255821('0x1e01')}},'resolve':{'extractedReports':[_0x255821('0x218e'),'Auth',function(_0x212300,_0x100322){const _0x328527=_0x255821;return _0x100322['hasRole'](_0x328527('0xf45'))?_0x212300[_0x328527('0xa28')](_0x328527('0x225c'),{'fields':_0x328527('0x6e4'),'sort':_0x328527('0x1c74'),'limit':0xa,'offset':0x0}):_0x212300[_0x328527('0xa28')](_0x328527('0xb0d'),{'id':_0x100322['getCurrentUser']()[_0x328527('0x781')],'section':_0x328527('0x161a'),'fields':_0x328527('0x6e4'),'sort':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':[_0x255821('0x218e'),_0x255821('0x1150'),function(_0x991a47,_0x4cfec6){const _0x4a3459=_0x255821;return _0x4cfec6['hasRole'](_0x4a3459('0xf45'))?null:_0x991a47['resolve'](_0x4a3459('0x428'),{'fields':'id,name,crudPermissions','id':_0x4cfec6[_0x4a3459('0x2428')]()[_0x4a3459('0x781')]});}],'userProfileSection':['apiResolver','Auth',function(_0x1600f7,_0x933b2b){const _0x2e435f=_0x255821;return _0x933b2b[_0x2e435f('0x4ee')]('admin')?null:_0x1600f7['resolve']('userProfileSection@get',{'fields':_0x2e435f('0x36d'),'userProfileId':_0x933b2b[_0x2e435f('0x2428')]()[_0x2e435f('0x781')],'sectionId':0x4b2});}]},'authenticate':!![],'permissionId':0x4b2,'bodyClass':'analytics'}),_0x46ef12[_0x255821('0x471')](_0x255821('0x29'));}angular[_0x21d0f5('0x2768')](_0x21d0f5('0x578'),[_0x21d0f5('0x22d5'),'ngPassword',_0x21d0f5('0x3c4'),_0x21d0f5('0x2414'),_0x21d0f5('0xd61'),_0x21d0f5('0x2096'),'ng-sortable',_0x21d0f5('0x446'),_0x21d0f5('0x113d'),_0x21d0f5('0x21d5'),_0x21d0f5('0x29b'),_0x21d0f5('0xc46'),_0x21d0f5('0x950'),_0x21d0f5('0xf49'),_0x21d0f5('0x31e'),_0x21d0f5('0xed9'),'angularMaterialFormBuilder',_0x21d0f5('0x1622'),'chart.js','angular.filter',_0x21d0f5('0x20d9')])[_0x21d0f5('0x53a')](_0x2efdd2)[_0x21d0f5('0x23eb')]('CreateOrEditExtractedReportDialogController',_0x2a2dee)[_0x21d0f5('0x23eb')](_0x21d0f5('0x180a'),_0x421979)[_0x21d0f5('0x23eb')](_0x21d0f5('0x9f5'),_0x4dec36)[_0x21d0f5('0x23eb')](_0x21d0f5('0x46'),_0x45710f);const _0x5802e7=_0x351988['p']+_0x21d0f5('0x2092'),_0x4bd25f=_0x351988['p']+_0x21d0f5('0x1c4f'),_0x459698=_0x351988['p']+_0x21d0f5('0x1492'),_0x5ddd7a=_0x351988['p']+'src/js/modules/main/apps/integrations/views/salesforceAccounts/edit/view.html/view.html',_0x52eb15=_0x351988['p']+_0x21d0f5('0x1b99'),_0xc43925=_0x351988['p']+_0x21d0f5('0x2470'),_0x120b1b=_0x351988['p']+_0x21d0f5('0xf3c'),_0x8b3f5a=_0x351988['p']+_0x21d0f5('0x2851'),_0x45169e=_0x351988['p']+'src/js/modules/main/apps/integrations/views/deskAccounts/deskAccounts.html/deskAccounts.html',_0x1e23ee=_0x351988['p']+'src/js/modules/main/apps/integrations/views/deskAccounts/edit/view.html/view.html',_0x473ad2=_0x351988['p']+_0x21d0f5('0x70'),_0xafaecc=_0x351988['p']+_0x21d0f5('0x1686'),_0x3b471d=_0x351988['p']+'src/js/modules/main/apps/integrations/views/vtigerAccounts/vtigerAccounts.html/vtigerAccounts.html',_0x26319d=_0x351988['p']+_0x21d0f5('0x284c'),_0x4a34d0=_0x351988['p']+_0x21d0f5('0x2080'),_0xc082ce=_0x351988['p']+_0x21d0f5('0xf82'),_0x2d97a0=_0x351988['p']+'src/js/modules/main/apps/integrations/views/servicenowAccounts/servicenowAccounts.html/servicenowAccounts.html',_0x1511b3=_0x351988['p']+_0x21d0f5('0x5a4'),_0x1bbf64=_0x351988['p']+_0x21d0f5('0x1eaa'),_0x1a673e=_0x351988['p']+_0x21d0f5('0xa67');_0x259549['$inject']=[_0x21d0f5('0x1b80'),_0x21d0f5('0xcbc'),'$location',_0x21d0f5('0x1ca2'),'$q','$translate',_0x21d0f5('0x142d'),_0x21d0f5('0xd97'),_0x21d0f5('0x634'),_0x21d0f5('0x12a5'),'Auth',_0x21d0f5('0x17ff'),'setting',_0x21d0f5('0xb25')];function _0x259549(_0x30ffe3,_0x8c909d,_0x3ea2cc,_0x95c659,_0x34afa0,_0x558fe3,_0x323cd8,_0x4eaa79,_0x243734,_0x31b704,_0x208571,_0x407581,_0x153238,_0xeb02b6){const _0xdaf1d5=_0x21d0f5,_0x4e77c9=this;_0x4e77c9['currentUser']=_0x208571[_0xdaf1d5('0x2428')](),_0x4e77c9['errors']=[],_0x4e77c9[_0xdaf1d5('0x23e1')]=_0x153238,_0x4e77c9[_0xdaf1d5('0x17ff')]=_0x407581,_0x4e77c9[_0xdaf1d5('0xb25')]=_0xeb02b6,_0x4e77c9[_0xdaf1d5('0x2c9')]={},_0x4e77c9[_0xdaf1d5('0x2834')]=_0x4e77c9[_0xdaf1d5('0x23e1')]&&_0x4e77c9['setting'][_0xdaf1d5('0x1d4')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x4e77c9['title']=_0xdaf1d5('0x10d6'),_0x4e77c9[_0xdaf1d5('0x634')]=angular[_0xdaf1d5('0x6fb')](_0x243734),_0x4e77c9[_0xdaf1d5('0xd97')]=_0x4eaa79,_0x4e77c9[_0xdaf1d5('0xe6d')]=![];!_0x4e77c9[_0xdaf1d5('0x634')]&&(_0x4e77c9[_0xdaf1d5('0x634')]={'type':_0xdaf1d5('0xd41'),'authType':'basic','serverUrl':_0x3ea2cc[_0xdaf1d5('0x1797')]()+_0xdaf1d5('0x16a1')+_0x3ea2cc[_0xdaf1d5('0x14ec')]()+(_0x3ea2cc[_0xdaf1d5('0x235b')]()?':'+_0x3ea2cc[_0xdaf1d5('0x235b')]():'')},_0x4e77c9[_0xdaf1d5('0x134b')]=_0xdaf1d5('0x24d2'),_0x4e77c9[_0xdaf1d5('0xe6d')]=!![]);_0x4e77c9[_0xdaf1d5('0x1140')]=_0xf55d71,_0x4e77c9[_0xdaf1d5('0x545')]=_0x268e3c,_0x4e77c9[_0xdaf1d5('0x245f')]=_0x3e3721,_0x4e77c9[_0xdaf1d5('0x1bd1')]=_0x311ed6,_0x4e77c9[_0xdaf1d5('0xc4e')]=_0x2dadf7;function _0xf55d71(){const _0x74fdcf=_0xdaf1d5;_0x4e77c9[_0x74fdcf('0x120f')]=[],_0x31b704[_0x74fdcf('0x26da')][_0x74fdcf('0x259')](_0x4e77c9[_0x74fdcf('0x634')])[_0x74fdcf('0x1549')]['then'](function(_0x5eec5b){const _0x4055f0=_0x74fdcf;_0x4e77c9[_0x4055f0('0xd97')][_0x4055f0('0x880')](_0x5eec5b['toJSON']()),_0x323cd8[_0x4055f0('0x2693')]({'title':_0x4055f0('0xd16'),'msg':_0x4e77c9['deskAccount'][_0x4055f0('0x1909')]?_0x4e77c9['deskAccount'][_0x4055f0('0x1909')]+_0x4055f0('0x7fb'):''}),_0x2dadf7(_0x5eec5b);})[_0x74fdcf('0x151d')](function(_0x4a35cb){const _0x4051ea=_0x74fdcf;if(_0x4a35cb[_0x4051ea('0x4e8')]&&_0x4a35cb[_0x4051ea('0x4e8')][_0x4051ea('0x120f')]&&_0x4a35cb['data'][_0x4051ea('0x120f')][_0x4051ea('0x1e22')]){_0x4e77c9[_0x4051ea('0x120f')]=_0x4a35cb[_0x4051ea('0x4e8')][_0x4051ea('0x120f')]||[{'message':_0x4a35cb[_0x4051ea('0xaab')](),'type':_0x4051ea('0x14a0')}];for(let _0x134a06=0x0;_0x134a06<_0x4a35cb['data'][_0x4051ea('0x120f')][_0x4051ea('0x1e22')];_0x134a06+=0x1){_0x323cd8[_0x4051ea('0x255')]({'title':_0x4a35cb[_0x4051ea('0x4e8')][_0x4051ea('0x120f')][_0x134a06][_0x4051ea('0x19fd')],'msg':_0x4a35cb[_0x4051ea('0x4e8')][_0x4051ea('0x120f')][_0x134a06][_0x4051ea('0x1b86')]});}}else _0x323cd8[_0x4051ea('0x255')]({'title':_0x4a35cb[_0x4051ea('0xff9')]?_0x4051ea('0x574')+_0x4a35cb[_0x4051ea('0xff9')]+_0x4051ea('0xb0b')+_0x4a35cb[_0x4051ea('0x212f')]:_0x4051ea('0x14a0'),'msg':_0x4a35cb[_0x4051ea('0x4e8')]?JSON[_0x4051ea('0x3e')](_0x4a35cb[_0x4051ea('0x4e8')][_0x4051ea('0x1b86')]):_0x4a35cb[_0x4051ea('0xaab')]()});});}function _0x268e3c(){const _0x3b4676=_0xdaf1d5;_0x4e77c9[_0x3b4676('0x120f')]=[],_0x31b704[_0x3b4676('0x26da')][_0x3b4676('0x5ab')]({'id':_0x4e77c9[_0x3b4676('0x634')]['id']},_0x4e77c9['deskAccount'])['$promise'][_0x3b4676('0x11bf')](function(_0x286ad0){const _0x55e240=_0x3b4676,_0x4c7314=_0x36f548()[_0x55e240('0x1ad4')](_0x4e77c9['deskAccounts'],{'id':_0x286ad0['id']});_0x4c7314&&_0x36f548()[_0x55e240('0x47b')](_0x4c7314,_0x36f548()[_0x55e240('0x258')](_0x286ad0['toJSON'](),_0x36f548()['keys'](_0x4c7314))),_0x323cd8[_0x55e240('0x2693')]({'title':_0x55e240('0x67b'),'msg':_0x4e77c9[_0x55e240('0x634')][_0x55e240('0x1909')]?_0x4e77c9['deskAccount'][_0x55e240('0x1909')]+_0x55e240('0x1a78'):''}),_0x2dadf7(_0x286ad0);})[_0x3b4676('0x151d')](function(_0x347f84){const _0x3abfa5=_0x3b4676;if(_0x347f84['data']&&_0x347f84[_0x3abfa5('0x4e8')][_0x3abfa5('0x120f')]&&_0x347f84[_0x3abfa5('0x4e8')][_0x3abfa5('0x120f')]['length']){_0x4e77c9[_0x3abfa5('0x120f')]=_0x347f84['data'][_0x3abfa5('0x120f')]||[{'message':_0x347f84['toString'](),'type':_0x3abfa5('0x1e76')}];for(let _0x262b4d=0x0;_0x262b4d<_0x347f84[_0x3abfa5('0x4e8')][_0x3abfa5('0x120f')][_0x3abfa5('0x1e22')];_0x262b4d++){_0x323cd8[_0x3abfa5('0x255')]({'title':_0x347f84['data'][_0x3abfa5('0x120f')][_0x262b4d][_0x3abfa5('0x19fd')],'msg':_0x347f84['data'][_0x3abfa5('0x120f')][_0x262b4d]['message']});}}else _0x323cd8[_0x3abfa5('0x255')]({'title':_0x347f84[_0x3abfa5('0xff9')]?'API:'+_0x347f84[_0x3abfa5('0xff9')]+_0x3abfa5('0xb0b')+_0x347f84[_0x3abfa5('0x212f')]:_0x3abfa5('0x1e76'),'msg':_0x347f84[_0x3abfa5('0x4e8')]?JSON[_0x3abfa5('0x3e')](_0x347f84[_0x3abfa5('0x4e8')][_0x3abfa5('0x1b86')]):_0x347f84[_0x3abfa5('0xaab')]()});});}function _0x3e3721(_0x6254c8){const _0x1ee562=_0xdaf1d5;_0x4e77c9[_0x1ee562('0x120f')]=[];const _0x37f1c7=_0x95c659['confirm']()[_0x1ee562('0x134b')](_0x1ee562('0x1fa9'))[_0x1ee562('0x252a')](_0x1ee562('0x7a3'))['ariaLabel'](_0x1ee562('0x23fc'))['ok'](_0x1ee562('0x1167'))['cancel'](_0x1ee562('0x784'))[_0x1ee562('0x1e25')](_0x6254c8);_0x95c659['show'](_0x37f1c7)['then'](function(){const _0x270ba0=_0x1ee562;_0x31b704[_0x270ba0('0x26da')][_0x270ba0('0x2088')]({'id':_0x4e77c9['deskAccount']['id']})[_0x270ba0('0x1549')]['then'](function(){const _0x38d4fc=_0x270ba0;_0x36f548()[_0x38d4fc('0x14a5')](_0x4e77c9[_0x38d4fc('0xd97')],{'id':_0x4e77c9[_0x38d4fc('0x634')]['id']}),_0x323cd8[_0x38d4fc('0x2693')]({'title':'DeskAccount\x20properly\x20deleted!','msg':(_0x4e77c9[_0x38d4fc('0x634')][_0x38d4fc('0x1909')]||_0x38d4fc('0x634'))+_0x38d4fc('0x433')}),_0x2dadf7(_0x4e77c9[_0x38d4fc('0x634')]);})['catch'](function(_0x138698){const _0x4fd242=_0x270ba0;if(_0x138698[_0x4fd242('0x4e8')]&&_0x138698[_0x4fd242('0x4e8')][_0x4fd242('0x120f')]&&_0x138698[_0x4fd242('0x4e8')][_0x4fd242('0x120f')][_0x4fd242('0x1e22')]){_0x4e77c9['errors']=_0x138698[_0x4fd242('0x4e8')]['errors']||[{'message':_0x138698[_0x4fd242('0xaab')](),'type':_0x4fd242('0x191a')}];for(let _0x25c232=0x0;_0x25c232<_0x138698[_0x4fd242('0x4e8')][_0x4fd242('0x120f')][_0x4fd242('0x1e22')];_0x25c232++){_0x323cd8[_0x4fd242('0x255')]({'title':_0x138698[_0x4fd242('0x4e8')][_0x4fd242('0x120f')][_0x25c232][_0x4fd242('0x19fd')],'msg':_0x138698[_0x4fd242('0x4e8')][_0x4fd242('0x120f')][_0x25c232]['message']});}}else _0x323cd8[_0x4fd242('0x255')]({'title':_0x138698[_0x4fd242('0xff9')]?'API:'+_0x138698[_0x4fd242('0xff9')]+_0x4fd242('0xb0b')+_0x138698[_0x4fd242('0x212f')]:_0x4fd242('0x191a'),'msg':_0x138698['data']?JSON[_0x4fd242('0x3e')](_0x138698[_0x4fd242('0x4e8')]['message']):_0x138698[_0x4fd242('0x1b86')]||_0x138698['toString']()});});},function(){});}function _0x311ed6(_0x34f0e9){return _0x34f0e9===null?undefined:new Date(_0x34f0e9);}function _0x2dadf7(_0x40cc7d){_0x95c659['hide'](_0x40cc7d);}}const _0x5273d8=_0x259549,_0x1b4cf9=_0x351988['p']+_0x21d0f5('0x181e');_0x1a0170[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),'$window',_0x21d0f5('0xcbc'),_0x21d0f5('0x18fe'),_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),_0x21d0f5('0x17f5'),_0x21d0f5('0xb6b'),_0x21d0f5('0xd97'),_0x21d0f5('0x25bc'),_0x21d0f5('0x1d63'),_0x21d0f5('0x12a5'),_0x21d0f5('0xda9'),_0x21d0f5('0x142d'),'Auth',_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1')];function _0x1a0170(_0x1b5ca4,_0x54739f,_0x243adc,_0x546858,_0x4174d3,_0x174bdc,_0x22c6e5,_0x122085,_0x3da9b6,_0x46fc5c,_0x24b27a,_0x278813,_0x540748,_0x31ee79,_0x40cfd1,_0x881709,_0x10f795){const _0x287368=_0x21d0f5,_0x28d8a3=this;_0x28d8a3[_0x287368('0x17ff')]=_0x881709,_0x28d8a3[_0x287368('0x23e1')]=_0x10f795,_0x28d8a3[_0x287368('0x32a')]=_0x40cfd1[_0x287368('0x2428')](),_0x28d8a3['deskAccounts']=_0x3da9b6||{'count':0x0,'rows':[]},_0x28d8a3[_0x287368('0x25bc')]=_0x46fc5c,_0x28d8a3[_0x287368('0x1d63')]=_0x24b27a&&_0x24b27a[_0x287368('0x27d2')]==0x1?_0x24b27a[_0x287368('0x19b2')][0x0]:null,_0x28d8a3[_0x287368('0xb25')]=_0x40cfd1[_0x287368('0x1530')](_0x28d8a3[_0x287368('0x1d63')]?_0x28d8a3[_0x287368('0x1d63')][_0x287368('0xb25')]:null),_0x28d8a3[_0x287368('0x13e8')]=_0x287368('0xd97'),_0x28d8a3['listOrder']='',_0x28d8a3['listOrderAsc']=null,_0x28d8a3['selectedDeskAccounts']=[],_0x28d8a3[_0x287368('0x1f2a')]={'fields':'createdAt,updatedAt,id,name,type,remoteUri,authType,username,password,serverUrl,description','limit':0xa,'page':0x1},_0x28d8a3['arraytype']=_0x36f548()[_0x287368('0x2130')]([{'option':_0x287368('0x97d'),'value':_0x287368('0xe4')},{'option':_0x287368('0x796'),'value':_0x287368('0x2c7')}],function(_0x2f57c6){const _0x18749d=_0x287368;return _0x36f548()['replace'](_0x2f57c6[_0x18749d('0x10cc')],new RegExp('\x27','g'),'');}),_0x28d8a3['arrayauthType']=_0x36f548()['keyBy']([{'option':'Basic','value':_0x287368('0x405')}],function(_0x26e662){const _0x4ced4d=_0x287368;return _0x36f548()[_0x4ced4d('0x814')](_0x26e662[_0x4ced4d('0x10cc')],new RegExp('\x27','g'),'');}),_0x28d8a3['editstate']=_0x2627cf,_0x28d8a3[_0x287368('0x776')]=_0x1f0e8b,_0x28d8a3[_0x287368('0x549')]=_0x25204d,_0x28d8a3['success']=_0x32161d,_0x28d8a3[_0x287368('0x1fef')]=_0x3d6788,_0x28d8a3[_0x287368('0x1304')]=_0x5e670a,_0x28d8a3['deleteDeskAccount']=_0x45b960,_0x28d8a3['exportSelectedDeskAccounts']=_0x4a8a16,_0x28d8a3['deleteSelectedDeskAccounts']=_0x4548c9,_0x28d8a3['deselectDeskAccounts']=_0x423ad3,_0x28d8a3['selectAllDeskAccounts']=_0x3f6565;function _0x2627cf(_0x4aef2f){const _0x2ca71d=_0x287368;_0x243adc['go'](_0x2ca71d('0x45b'),{'id':_0x4aef2f['id'],'deskAccount':_0x4aef2f,'crudPermissions':_0x28d8a3[_0x2ca71d('0xb25')]});}function _0x1f0e8b(_0x440e04){const _0x44c144=_0x287368;return _0x278813[_0x44c144('0x26da')][_0x44c144('0x8ff')]({'id':_0x440e04['id'],'test':!![]})[_0x44c144('0x1549')][_0x44c144('0x11bf')](function(){const _0x5af495=_0x44c144;_0x31ee79['success']({'title':_0x5af495('0x2708'),'msg':_0x5af495('0x1b13')});})[_0x44c144('0x151d')](function(_0xdb1a59){const _0x21ad85=_0x44c144;_0x31ee79[_0x21ad85('0x255')]({'title':_0x21ad85('0x2708'),'msg':_0xdb1a59[_0x21ad85('0x4e8')]?_0xdb1a59[_0x21ad85('0x4e8')][_0x21ad85('0x1b86')]?_0xdb1a59[_0x21ad85('0x4e8')][_0x21ad85('0x1b86')]:JSON[_0x21ad85('0x3e')](_0xdb1a59['data']):_0xdb1a59[_0x21ad85('0xaab')]()});});}function _0x25204d(_0x27456b,_0x58bb60){const _0x3a5886=_0x287368,_0x42f0ea=_0x4174d3[_0x3a5886('0x132b')]()[_0x3a5886('0x134b')](_0x3a5886('0x1796')+_0x36f548()[_0x3a5886('0x13cf')](_0x3a5886('0x634'))+'?')['htmlContent'](''+(_0x27456b['name']||_0x3a5886('0x634'))+_0x3a5886('0x1c78')+_0x3a5886('0x1a'))[_0x3a5886('0xb2e')]('delete\x20deskAccount')[_0x3a5886('0x1e25')](_0x58bb60)['ok']('OK')[_0x3a5886('0x26c9')]('CANCEL');_0x4174d3[_0x3a5886('0xb9')](_0x42f0ea)[_0x3a5886('0x11bf')](function(){_0x45b960(_0x27456b);},function(){const _0x36e1d7=_0x3a5886;console[_0x36e1d7('0xc78')](_0x36e1d7('0x772'));});}let _0x56ad9a=!![],_0x52e7e2=0x1;_0x1b5ca4['$watch']('vm.query.filter',function(_0x2f3dec,_0x323f9a){const _0x3a6778=_0x287368;_0x56ad9a?_0x22c6e5(function(){_0x56ad9a=![];}):(!_0x323f9a&&(_0x52e7e2=_0x28d8a3[_0x3a6778('0x1f2a')][_0x3a6778('0x1c2')]),_0x2f3dec!==_0x323f9a&&(_0x28d8a3[_0x3a6778('0x1f2a')]['page']=0x1),!_0x2f3dec&&(_0x28d8a3[_0x3a6778('0x1f2a')][_0x3a6778('0x1c2')]=_0x52e7e2),_0x28d8a3[_0x3a6778('0x1fef')]());});function _0x32161d(_0x18bc09){const _0x14cc3d=_0x287368;_0x28d8a3[_0x14cc3d('0xd97')]=_0x18bc09||{'count':0x0,'rows':[]};}function _0x3d6788(){const _0x59f0f0=_0x287368;_0x28d8a3['query'][_0x59f0f0('0x1393')]=(_0x28d8a3['query'][_0x59f0f0('0x1c2')]-0x1)*_0x28d8a3[_0x59f0f0('0x1f2a')][_0x59f0f0('0xd5c')],_0x40cfd1[_0x59f0f0('0x4ee')](_0x59f0f0('0xf45'))?_0x28d8a3[_0x59f0f0('0x13f')]=_0x278813[_0x59f0f0('0x26da')][_0x59f0f0('0xbaa')](_0x28d8a3[_0x59f0f0('0x1f2a')],_0x32161d)['$promise']:(_0x28d8a3[_0x59f0f0('0x1f2a')]['id']=_0x28d8a3['userProfile']['id'],_0x28d8a3[_0x59f0f0('0x1f2a')][_0x59f0f0('0xe6')]=_0x59f0f0('0x56f'),_0x28d8a3[_0x59f0f0('0x13f')]=_0x278813[_0x59f0f0('0x25bc')][_0x59f0f0('0x228e')](_0x28d8a3['query'],_0x32161d)['$promise']);}function _0x5e670a(_0x4a70e8,_0x33d36f){const _0x4911f2=_0x287368;_0x4174d3[_0x4911f2('0xb9')]({'controller':_0x4911f2('0x1322'),'controllerAs':'vm','templateUrl':_0x1b4cf9,'parent':angular[_0x4911f2('0x1e73')](_0x174bdc['body']),'targetEvent':_0x4a70e8,'clickOutsideToClose':!![],'locals':{'deskAccount':_0x33d36f,'deskAccounts':_0x28d8a3[_0x4911f2('0xd97')][_0x4911f2('0x19b2')],'license':_0x28d8a3['license'],'setting':_0x28d8a3[_0x4911f2('0x23e1')],'crudPermissions':_0x28d8a3[_0x4911f2('0xb25')]}});}function _0x45b960(_0xfe7156){const _0x4250b5=_0x287368;_0x278813[_0x4250b5('0x26da')][_0x4250b5('0x2088')]({'id':_0xfe7156['id']})[_0x4250b5('0x1549')]['then'](function(){const _0xd1f666=_0x4250b5;_0x36f548()[_0xd1f666('0x14a5')](_0x28d8a3[_0xd1f666('0xd97')]['rows'],{'id':_0xfe7156['id']}),_0x28d8a3[_0xd1f666('0xd97')][_0xd1f666('0x27d2')]-=0x1,!_0x28d8a3[_0xd1f666('0xd97')][_0xd1f666('0x19b2')][_0xd1f666('0x1e22')]&&_0x28d8a3[_0xd1f666('0x1fef')](),_0x31ee79['success']({'title':_0x36f548()[_0xd1f666('0x13cf')](_0xd1f666('0x1ee2'))+_0xd1f666('0x2113'),'msg':_0xfe7156[_0xd1f666('0x1909')]?_0xfe7156[_0xd1f666('0x1909')]+_0xd1f666('0x433'):''});})[_0x4250b5('0x151d')](function(_0x39cf77){const _0x21eaaa=_0x4250b5;if(_0x39cf77[_0x21eaaa('0x4e8')]&&_0x39cf77[_0x21eaaa('0x4e8')][_0x21eaaa('0x120f')]&&_0x39cf77[_0x21eaaa('0x4e8')][_0x21eaaa('0x120f')][_0x21eaaa('0x1e22')]){_0x28d8a3['errors']=_0x39cf77[_0x21eaaa('0x4e8')]['errors']||[{'message':_0x39cf77[_0x21eaaa('0xaab')](),'type':'SYSTEM:DELETEintDeskAccount'}];for(let _0x311d55=0x0;_0x311d55<_0x39cf77['data'][_0x21eaaa('0x120f')][_0x21eaaa('0x1e22')];_0x311d55++){_0x31ee79[_0x21eaaa('0x255')]({'title':_0x39cf77[_0x21eaaa('0x4e8')][_0x21eaaa('0x120f')][_0x311d55]['type'],'msg':_0x39cf77[_0x21eaaa('0x4e8')]['errors'][_0x311d55][_0x21eaaa('0x1b86')]});}}else _0x31ee79[_0x21eaaa('0x255')]({'title':_0x39cf77[_0x21eaaa('0xff9')]?_0x21eaaa('0x574')+_0x39cf77[_0x21eaaa('0xff9')]+'\x20-\x20'+_0x39cf77[_0x21eaaa('0x212f')]:_0x21eaaa('0xae4'),'msg':_0x39cf77[_0x21eaaa('0x4e8')]?JSON[_0x21eaaa('0x3e')](_0x39cf77[_0x21eaaa('0x4e8')][_0x21eaaa('0x1b86')]):_0x39cf77[_0x21eaaa('0x1b86')]||_0x39cf77[_0x21eaaa('0xaab')]()});});}function _0x4a8a16(){const _0x4a531f=_0x287368,_0x5728f6=angular[_0x4a531f('0x6fb')](_0x28d8a3[_0x4a531f('0x167')]);return _0x28d8a3[_0x4a531f('0x167')]=[],_0x5728f6;}function _0x4548c9(_0x366c11){const _0x1a72e1=_0x287368,_0x1fb63e=_0x4174d3['confirm']()['title'](_0x1a72e1('0x1da5'))[_0x1a72e1('0x1d03')](_0x1a72e1('0x2061')+_0x28d8a3[_0x1a72e1('0x167')][_0x1a72e1('0x1e22')]+_0x1a72e1('0xac6')+_0x1a72e1('0x1a'))['ariaLabel'](_0x1a72e1('0x10a0'))[_0x1a72e1('0x1e25')](_0x366c11)['ok']('OK')[_0x1a72e1('0x26c9')](_0x1a72e1('0x772'));_0x4174d3[_0x1a72e1('0xb9')](_0x1fb63e)[_0x1a72e1('0x11bf')](function(){const _0x3aeebe=_0x1a72e1;_0x28d8a3[_0x3aeebe('0x167')][_0x3aeebe('0x1f88')](function(_0xfebe64){_0x45b960(_0xfebe64);}),_0x28d8a3[_0x3aeebe('0x167')]=[];});}function _0x423ad3(){const _0x11fd5a=_0x287368;_0x28d8a3[_0x11fd5a('0x167')]=[];}function _0x3f6565(){const _0x3927b8=_0x287368;_0x28d8a3[_0x3927b8('0x167')]=_0x28d8a3['deskAccounts'][_0x3927b8('0x19b2')];}}const _0x27b57e=_0x1a0170,_0x2c69da=_0x351988['p']+'src/js/modules/main/apps/integrations/views/deskAccounts/edit/configurations/dialog.html/dialog.html',_0x34146a=_0x351988['p']+_0x21d0f5('0xc69');_0x9e2b98[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1ca2'),'$document','api',_0x21d0f5('0x142d'),_0x21d0f5('0x1150')];function _0x9e2b98(_0x87b810,_0x5db2d4,_0x3fbc4f,_0x490324,_0x3dc21e){const _0x5c26c2=_0x21d0f5,_0x57dfa4=this;_0x57dfa4[_0x5c26c2('0x32a')]=_0x3dc21e['getCurrentUser'](),_0x57dfa4[_0x5c26c2('0x634')]={},_0x57dfa4['deskConfiguration']={},_0x57dfa4[_0x5c26c2('0x2766')]=[],_0x57dfa4[_0x5c26c2('0x2836')]=-0x1,_0x57dfa4['crudPermissions'],_0x57dfa4[_0x5c26c2('0x286f')]=_0x53eb1c,_0x57dfa4[_0x5c26c2('0x529')]=_0x580410,_0x57dfa4['createOrEditDeskConfiguration']=_0x1e336e,_0x57dfa4[_0x5c26c2('0x12b6')]=_0x1b0a87,_0x57dfa4['selectedTags']=[],_0x57dfa4[_0x5c26c2('0x974')]=_0x45b3ad,_0x3fbc4f['tag'][_0x5c26c2('0xbaa')]({'nolimit':!![],'sort':_0x5c26c2('0x1909')})['$promise'][_0x5c26c2('0x11bf')](function(_0x3d3fa0){const _0x2987c2=_0x5c26c2;_0x57dfa4[_0x2987c2('0x2763')]=_0x3d3fa0[_0x2987c2('0x19b2')]?_0x3d3fa0[_0x2987c2('0x19b2')]:[];})['catch'](function(_0x17f7ae){const _0x4133f2=_0x5c26c2;_0x490324[_0x4133f2('0x255')]({'title':_0x17f7ae[_0x4133f2('0xff9')]?_0x4133f2('0x574')+_0x17f7ae[_0x4133f2('0xff9')]+_0x4133f2('0xb0b')+_0x17f7ae[_0x4133f2('0x212f')]:_0x4133f2('0x24ee'),'msg':_0x17f7ae[_0x4133f2('0x4e8')]?JSON[_0x4133f2('0x3e')](_0x17f7ae['data']):_0x17f7ae[_0x4133f2('0xaab')]()});});function _0x45b3ad(){const _0x5178b8=_0x5c26c2;_0x3fbc4f[_0x5178b8('0x85a')][_0x5178b8('0x12c4')]({'id':_0x57dfa4[_0x5178b8('0x1c73')]['id'],'ids':_0x57dfa4[_0x5178b8('0xd11')]})[_0x5178b8('0x1549')][_0x5178b8('0x11bf')](function(){const _0x485a3e=_0x5178b8;_0x490324[_0x485a3e('0x2693')]({'title':_0x485a3e('0x1acc'),'msg':_0x485a3e('0x49')});})[_0x5178b8('0x151d')](function(_0x5a109a){const _0x4dd046=_0x5178b8;_0x490324[_0x4dd046('0x255')]({'title':_0x5a109a['status']?'API:'+_0x5a109a[_0x4dd046('0xff9')]+_0x4dd046('0xb0b')+_0x5a109a[_0x4dd046('0x212f')]:'SYSTEM:ADDTAGS','msg':_0x5a109a[_0x4dd046('0x4e8')]?JSON[_0x4dd046('0x3e')](_0x5a109a['data']):_0x5a109a[_0x4dd046('0xaab')]()});});}function _0x53eb1c(_0x317e76,_0x5e64a0){const _0x59276d=_0x5c26c2;_0x57dfa4[_0x59276d('0x634')]=_0x317e76,_0x57dfa4['crudPermissions']=typeof _0x5e64a0!=='undefined'?_0x5e64a0:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x3fbc4f[_0x59276d('0x26da')][_0x59276d('0x26af')]({'id':_0x57dfa4[_0x59276d('0x634')]['id'],'sort':_0x59276d('0x1c74')})[_0x59276d('0x1549')]['then'](function(_0x54e1d1){const _0x3cdfdb=_0x59276d;return _0x57dfa4[_0x3cdfdb('0x2766')]=_0x54e1d1[_0x3cdfdb('0x19b2')]?_0x54e1d1['rows']:[],_0x57dfa4[_0x3cdfdb('0x2766')][_0x3cdfdb('0x1e22')]&&_0x57dfa4['getDeskConfiguration'](0x0),_0x3fbc4f[_0x3cdfdb('0xb0')][_0x3cdfdb('0xbaa')]({'nolimit':!![],'sort':_0x3cdfdb('0x1909')})[_0x3cdfdb('0x1549')];})['then'](function(_0x59ec14){const _0x1ddc58=_0x59276d;_0x57dfa4['variables']=_0x59ec14[_0x1ddc58('0x19b2')]?_0x59ec14[_0x1ddc58('0x19b2')]:[],_0x57dfa4[_0x1ddc58('0x90')]=_0x36f548()['keyBy'](_0x57dfa4[_0x1ddc58('0x1700')],'id');})['catch'](function(_0x47e48c){const _0x2c51f2=_0x59276d;_0x490324[_0x2c51f2('0x255')]({'title':_0x47e48c[_0x2c51f2('0xff9')]?_0x2c51f2('0x574')+_0x47e48c['status']+_0x2c51f2('0xb0b')+_0x47e48c['statusText']:'SYSTEM:GETCONFIGURATION','msg':_0x47e48c[_0x2c51f2('0x4e8')]?JSON[_0x2c51f2('0x3e')](_0x47e48c[_0x2c51f2('0x4e8')]):_0x47e48c[_0x2c51f2('0xaab')]()});});}function _0x580410(_0x2a0c10){const _0x5b0fda=_0x5c26c2;_0x57dfa4[_0x5b0fda('0x1c73')]=_0x57dfa4['configurations'][_0x2a0c10],_0x57dfa4[_0x5b0fda('0x2836')]=_0x2a0c10,_0x3fbc4f[_0x5b0fda('0x85a')][_0x5b0fda('0xace')]({'id':_0x57dfa4[_0x5b0fda('0x1c73')]['id']})[_0x5b0fda('0x1549')]['then'](function(_0x462dcf){const _0xb4aa25=_0x5b0fda;return _0x57dfa4[_0xb4aa25('0x1318')]=_0x462dcf['rows']?_0x462dcf[_0xb4aa25('0x19b2')]:[],_0x3fbc4f['intDeskConfiguration']['getDescriptions']({'id':_0x57dfa4[_0xb4aa25('0x1c73')]['id']})['$promise'];})['then'](function(_0x597923){const _0x1ab9b0=_0x5b0fda;return _0x57dfa4[_0x1ab9b0('0xe12')]=_0x597923['rows']?_0x597923[_0x1ab9b0('0x19b2')]:[],_0x3fbc4f['intDeskConfiguration']['getFields']({'id':_0x57dfa4[_0x1ab9b0('0x1c73')]['id']})[_0x1ab9b0('0x1549')];})[_0x5b0fda('0x11bf')](function(_0x1cf137){const _0x325675=_0x5b0fda;_0x57dfa4[_0x325675('0x1067')]=_0x1cf137[_0x325675('0x19b2')]?_0x1cf137[_0x325675('0x19b2')]:[];})[_0x5b0fda('0x151d')](function(_0x292c1e){const _0x57c57a=_0x5b0fda;_0x490324[_0x57c57a('0x255')]({'title':_0x292c1e[_0x57c57a('0xff9')]?_0x57c57a('0x574')+_0x292c1e[_0x57c57a('0xff9')]+'\x20-\x20'+_0x292c1e['statusText']:_0x57c57a('0x1023'),'msg':_0x292c1e['data']?JSON[_0x57c57a('0x3e')](_0x292c1e['data']):_0x292c1e[_0x57c57a('0xaab')]()});}),_0x3fbc4f[_0x5b0fda('0x85a')][_0x5b0fda('0x2129')]({'id':_0x57dfa4['deskConfiguration']['id']})['$promise']['then'](function(_0x3768d8){const _0x32b831=_0x5b0fda;_0x57dfa4[_0x32b831('0xd11')]=_0x3768d8[_0x32b831('0x19b2')]?_0x36f548()[_0x32b831('0x2171')](_0x3768d8[_0x32b831('0x19b2')],'id'):[];})[_0x5b0fda('0x151d')](function(_0x1d6141){const _0xddce7b=_0x5b0fda;_0x490324['error']({'title':_0x1d6141[_0xddce7b('0xff9')]?'API:'+_0x1d6141[_0xddce7b('0xff9')]+_0xddce7b('0xb0b')+_0x1d6141[_0xddce7b('0x212f')]:_0xddce7b('0x24ee'),'msg':_0x1d6141['data']?JSON[_0xddce7b('0x3e')](_0x1d6141[_0xddce7b('0x4e8')]):_0x1d6141[_0xddce7b('0xaab')]()});});}function _0x1e336e(_0x49f474,_0x177198){const _0x55a56f=_0x5c26c2;_0x87b810['show']({'controller':'CreateOrEditDeskConfigurationDialogController','controllerAs':'vm','templateUrl':_0x2c69da,'parent':angular[_0x55a56f('0x1e73')](_0x5db2d4[_0x55a56f('0x1d2')]),'targetEvent':_0x49f474,'clickOutsideToClose':!![],'locals':{'deskConfiguration':_0x177198,'configurations':_0x57dfa4['configurations'],'license':null,'setting':null,'crudPermissions':_0x57dfa4[_0x55a56f('0xb25')]}})[_0x55a56f('0xa9b')](function(){const _0x4e46e0=_0x55a56f;_0x57dfa4[_0x4e46e0('0x529')](0x0);});}function _0x1b0a87(_0x17134a,_0x4d7784){const _0x3b3469=_0x5c26c2,_0x5e87b9=_0x87b810[_0x3b3469('0x132b')]()[_0x3b3469('0x134b')](_0x3b3469('0x2117'))['htmlContent'](_0x3b3469('0x2061')+(_0x4d7784['name']||'deskConfiguration')+_0x3b3469('0x1c78')+_0x3b3469('0x1a'))[_0x3b3469('0xb2e')](_0x3b3469('0xd5f'))['targetEvent'](_0x17134a)['ok']('OK')[_0x3b3469('0x26c9')]('CANCEL');_0x87b810[_0x3b3469('0xb9')](_0x5e87b9)[_0x3b3469('0x11bf')](function(){const _0xa73595=_0x3b3469;_0x3fbc4f[_0xa73595('0x85a')][_0xa73595('0x2088')]({'id':_0x4d7784['id']})[_0xa73595('0x1549')][_0xa73595('0x11bf')](function(){const _0x40dd84=_0xa73595;_0x36f548()[_0x40dd84('0x14a5')](_0x57dfa4[_0x40dd84('0x2766')],{'id':_0x4d7784['id']}),_0x490324['success']({'title':'DeskConfiguration\x20deleted!','msg':_0x4d7784['name']?_0x4d7784[_0x40dd84('0x1909')]+_0x40dd84('0x433'):''});})[_0xa73595('0x151d')](function(_0x4b1b0b){const _0x578755=_0xa73595;_0x490324[_0x578755('0x255')]({'title':_0x4b1b0b['status']?_0x578755('0x574')+_0x4b1b0b[_0x578755('0xff9')]+_0x578755('0xb0b')+_0x4b1b0b['statusText']:_0x578755('0x15ea'),'msg':_0x4b1b0b['data']?JSON[_0x578755('0x3e')](_0x4b1b0b[_0x578755('0x4e8')]):_0x4b1b0b[_0x578755('0xaab')]()});})[_0xa73595('0xa9b')](function(){const _0x2c84de=_0xa73595;_0x57dfa4[_0x2c84de('0x529')](0x0);});},function(){const _0xfa8a88=_0x3b3469;console['log'](_0xfa8a88('0x772'));});}_0x57dfa4[_0x5c26c2('0x1151')]=[],_0x57dfa4[_0x5c26c2('0x1ec8')]=_0x531f6b,_0x57dfa4[_0x5c26c2('0x14ae')]=_0x36ff9c,_0x57dfa4[_0x5c26c2('0x1ab')]=_0x2472c0;function _0x531f6b(_0x1c8898,_0x337b6f){const _0x369cb5=_0x5c26c2;_0x87b810[_0x369cb5('0xb9')]({'controller':_0x369cb5('0x985'),'controllerAs':'vm','templateUrl':_0x34146a,'parent':angular[_0x369cb5('0x1e73')](_0x5db2d4[_0x369cb5('0x1d2')]),'targetEvent':_0x1c8898,'clickOutsideToClose':!![],'locals':{'type':'subject','item':_0x337b6f,'items':_0x57dfa4[_0x369cb5('0x1318')],'configuration':_0x57dfa4[_0x369cb5('0x1c73')],'account':_0x57dfa4[_0x369cb5('0x634')],'license':null,'setting':null,'crudPermissions':_0x57dfa4[_0x369cb5('0xb25')]}});}function _0x363571(_0x322dcb){const _0x11d175=_0x5c26c2;_0x3fbc4f[_0x11d175('0x66')]['delete']({'id':_0x322dcb['id']})[_0x11d175('0x1549')][_0x11d175('0x11bf')](function(){const _0x2490d7=_0x11d175;_0x36f548()['remove'](_0x57dfa4[_0x2490d7('0x1318')],{'id':_0x322dcb['id']}),_0x490324[_0x2490d7('0x2693')]({'title':_0x2490d7('0x1845'),'msg':_0x2490d7('0x4c1')});})[_0x11d175('0x151d')](function(_0x1bbebe){const _0x234eb3=_0x11d175;_0x490324['error']({'title':_0x1bbebe[_0x234eb3('0xff9')]?'API:'+_0x1bbebe[_0x234eb3('0xff9')]+'\x20-\x20'+_0x1bbebe['statusText']:_0x234eb3('0xc27'),'msg':_0x1bbebe['data']?JSON[_0x234eb3('0x3e')](_0x1bbebe[_0x234eb3('0x4e8')]):_0x1bbebe['toString']()});});}function _0x36ff9c(_0x8f0813,_0x2f6873){const _0x426e4a=_0x5c26c2,_0xe5315c=_0x87b810[_0x426e4a('0x132b')]()[_0x426e4a('0x134b')](_0x426e4a('0x98e'))[_0x426e4a('0x1d03')]('Subject'+_0x426e4a('0x1a'))[_0x426e4a('0xb2e')](_0x426e4a('0x259c'))[_0x426e4a('0x1e25')](_0x8f0813)['ok']('OK')[_0x426e4a('0x26c9')](_0x426e4a('0x772'));_0x87b810[_0x426e4a('0xb9')](_0xe5315c)[_0x426e4a('0x11bf')](function(){_0x363571(_0x2f6873);},function(){const _0x2a4932=_0x426e4a;console[_0x2a4932('0xc78')](_0x2a4932('0x772'));});}function _0x2472c0(_0x20e036){const _0x3eb34e=_0x5c26c2,_0x3606cb=_0x87b810[_0x3eb34e('0x132b')]()['title'](_0x3eb34e('0x188d'))['htmlContent'](_0x3eb34e('0x2061')+_0x57dfa4[_0x3eb34e('0x1151')][_0x3eb34e('0x1e22')]+'\x20selected'+'\x20will\x20be\x20deleted.')[_0x3eb34e('0xb2e')](_0x3eb34e('0x1c7c'))[_0x3eb34e('0x1e25')](_0x20e036)['ok']('OK')[_0x3eb34e('0x26c9')](_0x3eb34e('0x772'));_0x87b810[_0x3eb34e('0xb9')](_0x3606cb)[_0x3eb34e('0x11bf')](function(){const _0x32de78=_0x3eb34e;_0x57dfa4[_0x32de78('0x1151')]['forEach'](function(_0x31f5cc){_0x363571(_0x31f5cc);}),_0x57dfa4[_0x32de78('0x1151')]=[];});}_0x57dfa4['selectedDescriptions']=[],_0x57dfa4['createOrEditDescription']=_0x1311bd,_0x57dfa4[_0x5c26c2('0x183b')]=_0x3b35d0,_0x57dfa4[_0x5c26c2('0x1a3e')]=_0x2bb0bb;function _0x1311bd(_0x2b1665,_0x2f3d2a){const _0x16acac=_0x5c26c2;_0x87b810[_0x16acac('0xb9')]({'controller':_0x16acac('0x985'),'controllerAs':'vm','templateUrl':_0x34146a,'parent':angular[_0x16acac('0x1e73')](_0x5db2d4[_0x16acac('0x1d2')]),'targetEvent':_0x2b1665,'clickOutsideToClose':!![],'locals':{'type':_0x16acac('0x1659'),'item':_0x2f3d2a,'items':_0x57dfa4[_0x16acac('0xe12')],'configuration':_0x57dfa4[_0x16acac('0x1c73')],'account':_0x57dfa4[_0x16acac('0x634')],'license':null,'setting':null,'crudPermissions':_0x57dfa4[_0x16acac('0xb25')]}});}function _0x4f5a84(_0x3dd0b8){const _0x259651=_0x5c26c2;_0x3fbc4f[_0x259651('0x66')][_0x259651('0x2088')]({'id':_0x3dd0b8['id']})[_0x259651('0x1549')]['then'](function(){const _0x557c1d=_0x259651;_0x36f548()['remove'](_0x57dfa4[_0x557c1d('0xe12')],{'id':_0x3dd0b8['id']}),_0x490324[_0x557c1d('0x2693')]({'title':_0x557c1d('0x1221'),'msg':_0x557c1d('0x40e')});})['catch'](function(_0xce2f0f){const _0x540d30=_0x259651;_0x490324[_0x540d30('0x255')]({'title':_0xce2f0f[_0x540d30('0xff9')]?_0x540d30('0x574')+_0xce2f0f['status']+'\x20-\x20'+_0xce2f0f[_0x540d30('0x212f')]:_0x540d30('0xc27'),'msg':_0xce2f0f['data']?JSON['stringify'](_0xce2f0f['data']):_0xce2f0f[_0x540d30('0xaab')]()});});}function _0x3b35d0(_0x468bad,_0x56b888){const _0x48a8df=_0x5c26c2,_0x405bef=_0x87b810[_0x48a8df('0x132b')]()['title'](_0x48a8df('0x46b'))[_0x48a8df('0x1d03')]('Description'+_0x48a8df('0x1a'))[_0x48a8df('0xb2e')](_0x48a8df('0xd32'))[_0x48a8df('0x1e25')](_0x468bad)['ok']('OK')['cancel'](_0x48a8df('0x772'));_0x87b810[_0x48a8df('0xb9')](_0x405bef)[_0x48a8df('0x11bf')](function(){_0x4f5a84(_0x56b888);},function(){const _0x49610b=_0x48a8df;console[_0x49610b('0xc78')]('CANCEL');});}function _0x2bb0bb(_0x4d2650){const _0x5a99b8=_0x5c26c2,_0x28caba=_0x87b810[_0x5a99b8('0x132b')]()[_0x5a99b8('0x134b')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20descriptions?')['htmlContent'](_0x5a99b8('0x2061')+_0x57dfa4['selectedDescriptions'][_0x5a99b8('0x1e22')]+_0x5a99b8('0xac6')+'\x20will\x20be\x20deleted.')[_0x5a99b8('0xb2e')](_0x5a99b8('0xade'))[_0x5a99b8('0x1e25')](_0x4d2650)['ok']('OK')[_0x5a99b8('0x26c9')](_0x5a99b8('0x772'));_0x87b810['show'](_0x28caba)[_0x5a99b8('0x11bf')](function(){const _0x372ea8=_0x5a99b8;_0x57dfa4[_0x372ea8('0x73f')][_0x372ea8('0x1f88')](function(_0x3fa4a8){_0x4f5a84(_0x3fa4a8);}),_0x57dfa4[_0x372ea8('0x73f')]=[];});}_0x57dfa4['selectedFields']=[],_0x57dfa4[_0x5c26c2('0x18be')]=_0x393d02,_0x57dfa4[_0x5c26c2('0x21c9')]=_0x56f931,_0x57dfa4['deleteSelectedFields']=_0x507f92;function _0x393d02(_0x448e8b,_0x4dc3c2){const _0x54f5a5=_0x5c26c2;_0x87b810[_0x54f5a5('0xb9')]({'controller':'CreateOrEditDeskAccountItemDialogController','controllerAs':'vm','templateUrl':_0x34146a,'parent':angular[_0x54f5a5('0x1e73')](_0x5db2d4[_0x54f5a5('0x1d2')]),'targetEvent':_0x448e8b,'clickOutsideToClose':!![],'locals':{'type':_0x54f5a5('0x485'),'item':_0x4dc3c2,'items':_0x57dfa4[_0x54f5a5('0x1067')],'configuration':_0x57dfa4[_0x54f5a5('0x1c73')],'account':_0x57dfa4[_0x54f5a5('0x634')],'license':null,'setting':null,'crudPermissions':_0x57dfa4[_0x54f5a5('0xb25')]}});}function _0x566c41(_0x477e57){const _0x2b859a=_0x5c26c2;_0x3fbc4f[_0x2b859a('0x66')][_0x2b859a('0x2088')]({'id':_0x477e57['id']})[_0x2b859a('0x1549')][_0x2b859a('0x11bf')](function(){const _0x39cf30=_0x2b859a;_0x36f548()[_0x39cf30('0x14a5')](_0x57dfa4[_0x39cf30('0x1067')],{'id':_0x477e57['id']}),_0x490324[_0x39cf30('0x2693')]({'title':_0x39cf30('0x4da'),'msg':_0x39cf30('0x264f')});})['catch'](function(_0x35ca3b){const _0x5ed5c7=_0x2b859a;_0x490324['error']({'title':_0x35ca3b['status']?_0x5ed5c7('0x574')+_0x35ca3b['status']+_0x5ed5c7('0xb0b')+_0x35ca3b[_0x5ed5c7('0x212f')]:'SYSTEM:DELETECONFIGURATIONFIELD','msg':_0x35ca3b[_0x5ed5c7('0x4e8')]?JSON['stringify'](_0x35ca3b['data']):_0x35ca3b[_0x5ed5c7('0xaab')]()});});}function _0x56f931(_0x3ae365,_0x8610ce){const _0x5db9e9=_0x5c26c2,_0x51037b=_0x87b810[_0x5db9e9('0x132b')]()[_0x5db9e9('0x134b')](_0x5db9e9('0x915'))['htmlContent'](_0x5db9e9('0xdc8')+'\x20will\x20be\x20deleted.')[_0x5db9e9('0xb2e')]('delete\x20field')['targetEvent'](_0x3ae365)['ok']('OK')[_0x5db9e9('0x26c9')]('CANCEL');_0x87b810['show'](_0x51037b)[_0x5db9e9('0x11bf')](function(){_0x566c41(_0x8610ce);},function(){const _0x976b1b=_0x5db9e9;console['log'](_0x976b1b('0x772'));});}function _0x507f92(_0x4f5b7d){const _0x3723eb=_0x5c26c2,_0x1b1297=_0x87b810[_0x3723eb('0x132b')]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20fields?')[_0x3723eb('0x1d03')](''+_0x57dfa4['selectedFields']['length']+'\x20selected'+_0x3723eb('0x1a'))[_0x3723eb('0xb2e')](_0x3723eb('0x15b8'))[_0x3723eb('0x1e25')](_0x4f5b7d)['ok']('OK')[_0x3723eb('0x26c9')](_0x3723eb('0x772'));_0x87b810['show'](_0x1b1297)[_0x3723eb('0x11bf')](function(){const _0x33696a=_0x3723eb;_0x57dfa4[_0x33696a('0xfea')][_0x33696a('0x1f88')](function(_0x5f07af){_0x566c41(_0x5f07af);}),_0x57dfa4[_0x33696a('0xfea')]=[];});}}const _0x3ed50c=_0x9e2b98;_0x5db7bc[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0xcbc'),_0x21d0f5('0x16b9'),_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0xb6b'),_0x21d0f5('0x142d'),_0x21d0f5('0x2766'),_0x21d0f5('0x1c73'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1'),_0x21d0f5('0xb25')];function _0x5db7bc(_0x852401,_0x50a4a4,_0x493ef3,_0x436273,_0x3ba50a,_0x518778,_0x11f957,_0x17263f,_0x8e659e,_0x14b73f,_0x125889,_0x1005d3,_0x238255,_0x344904){const _0xc8dad7=_0x21d0f5,_0x5b2979=this;_0x5b2979[_0xc8dad7('0x32a')]=_0x125889['getCurrentUser'](),_0x5b2979['errors']=[],_0x5b2979[_0xc8dad7('0x23e1')]=_0x238255,_0x5b2979['license']=_0x1005d3,_0x5b2979[_0xc8dad7('0xb25')]=_0x344904,_0x5b2979[_0xc8dad7('0x2c9')]={},_0x5b2979[_0xc8dad7('0x2834')]=_0x5b2979[_0xc8dad7('0x23e1')]&&_0x5b2979['setting'][_0xc8dad7('0x1d4')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x5b2979[_0xc8dad7('0x134b')]=_0xc8dad7('0x152f'),_0x5b2979[_0xc8dad7('0x1c73')]=angular[_0xc8dad7('0x6fb')](_0x8e659e),_0x5b2979[_0xc8dad7('0x2766')]=_0x17263f,_0x5b2979[_0xc8dad7('0x3ab')]=![];!_0x5b2979['deskConfiguration']&&(_0x5b2979[_0xc8dad7('0x1c73')]={'channel':_0xc8dad7('0x1bc3'),'type':'inbound'},_0x5b2979['title']='INTEGRATIONS.NEW_DESKCONFIGURATION',_0x5b2979[_0xc8dad7('0x3ab')]=!![]);_0x5b2979[_0xc8dad7('0x372')]=_0x461529,_0x5b2979[_0xc8dad7('0x257c')]=_0x2c9dec,_0x5b2979[_0xc8dad7('0x12b6')]=_0xfce9da,_0x5b2979[_0xc8dad7('0x1bd1')]=_0x58526e,_0x5b2979['closeDialog']=_0x1b2396;function _0x461529(){const _0x4149bc=_0xc8dad7;_0x5b2979[_0x4149bc('0x120f')]=[],_0x14b73f[_0x4149bc('0x26da')]['addConfiguration']({'id':_0x50a4a4['params']['id']},_0x5b2979[_0x4149bc('0x1c73')])[_0x4149bc('0x1549')][_0x4149bc('0x11bf')](function(_0xb1ea04){const _0x30cd46=_0x4149bc;_0x5b2979[_0x30cd46('0x2766')]['unshift'](_0xb1ea04['toJSON']()),_0x11f957['success']({'title':_0x30cd46('0x1fe8'),'msg':_0x5b2979[_0x30cd46('0x1c73')][_0x30cd46('0x1909')]?_0x5b2979[_0x30cd46('0x1c73')][_0x30cd46('0x1909')]+'\x20has\x20been\x20created!':''}),_0x1b2396(_0xb1ea04);})['catch'](function(_0x16cbd2){const _0x407c71=_0x4149bc;if(_0x16cbd2['data']&&_0x16cbd2[_0x407c71('0x4e8')]['errors']&&_0x16cbd2[_0x407c71('0x4e8')][_0x407c71('0x120f')][_0x407c71('0x1e22')]){_0x5b2979[_0x407c71('0x120f')]=_0x16cbd2[_0x407c71('0x4e8')]['errors']||[{'message':_0x16cbd2[_0x407c71('0xaab')](),'type':'api.intDeskConfiguration.save'}];for(let _0x607e44=0x0;_0x607e44<_0x16cbd2[_0x407c71('0x4e8')][_0x407c71('0x120f')][_0x407c71('0x1e22')];_0x607e44+=0x1){_0x11f957['error']({'title':_0x16cbd2[_0x407c71('0x4e8')][_0x407c71('0x120f')][_0x607e44]['type'],'msg':_0x16cbd2[_0x407c71('0x4e8')][_0x407c71('0x120f')][_0x607e44][_0x407c71('0x1b86')]});}}else _0x11f957[_0x407c71('0x255')]({'title':_0x16cbd2[_0x407c71('0xff9')]?_0x407c71('0x574')+_0x16cbd2[_0x407c71('0xff9')]+'\x20-\x20'+_0x16cbd2[_0x407c71('0x212f')]:'api.intDeskConfiguration.save','msg':_0x16cbd2[_0x407c71('0x4e8')]?JSON[_0x407c71('0x3e')](_0x16cbd2[_0x407c71('0x4e8')][_0x407c71('0x1b86')]):_0x16cbd2[_0x407c71('0xaab')]()});});}function _0x2c9dec(){const _0x3d398f=_0xc8dad7;_0x5b2979[_0x3d398f('0x120f')]=[],_0x14b73f[_0x3d398f('0x85a')]['update']({'id':_0x5b2979['deskConfiguration']['id']},_0x5b2979[_0x3d398f('0x1c73')])['$promise'][_0x3d398f('0x11bf')](function(_0x50dc25){const _0x420b81=_0x3d398f,_0x14c6a9=_0x36f548()[_0x420b81('0x1ad4')](_0x5b2979[_0x420b81('0x2766')],{'id':_0x50dc25['id']});_0x14c6a9&&_0x36f548()[_0x420b81('0x47b')](_0x14c6a9,_0x36f548()[_0x420b81('0x258')](_0x50dc25[_0x420b81('0x2866')](),_0x36f548()[_0x420b81('0xe22')](_0x14c6a9))),_0x11f957['success']({'title':_0x420b81('0x250'),'msg':_0x5b2979[_0x420b81('0x1c73')][_0x420b81('0x1909')]?_0x5b2979['deskConfiguration'][_0x420b81('0x1909')]+_0x420b81('0x1a78'):''}),_0x1b2396(_0x50dc25);})[_0x3d398f('0x151d')](function(_0x6d4ae2){const _0x1a1b42=_0x3d398f;if(_0x6d4ae2[_0x1a1b42('0x4e8')]&&_0x6d4ae2[_0x1a1b42('0x4e8')][_0x1a1b42('0x120f')]&&_0x6d4ae2[_0x1a1b42('0x4e8')]['errors'][_0x1a1b42('0x1e22')]){_0x5b2979['errors']=_0x6d4ae2[_0x1a1b42('0x4e8')]['errors']||[{'message':_0x6d4ae2[_0x1a1b42('0xaab')](),'type':_0x1a1b42('0x4aa')}];for(let _0xf36f51=0x0;_0xf36f51<_0x6d4ae2[_0x1a1b42('0x4e8')]['errors']['length'];_0xf36f51++){_0x11f957[_0x1a1b42('0x255')]({'title':_0x6d4ae2[_0x1a1b42('0x4e8')][_0x1a1b42('0x120f')][_0xf36f51][_0x1a1b42('0x19fd')],'msg':_0x6d4ae2[_0x1a1b42('0x4e8')][_0x1a1b42('0x120f')][_0xf36f51][_0x1a1b42('0x1b86')]});}}else _0x11f957['error']({'title':_0x6d4ae2[_0x1a1b42('0xff9')]?_0x1a1b42('0x574')+_0x6d4ae2['status']+'\x20-\x20'+_0x6d4ae2[_0x1a1b42('0x212f')]:_0x1a1b42('0x4aa'),'msg':_0x6d4ae2[_0x1a1b42('0x4e8')]?JSON['stringify'](_0x6d4ae2[_0x1a1b42('0x4e8')][_0x1a1b42('0x1b86')]):_0x6d4ae2[_0x1a1b42('0xaab')]()});});}function _0xfce9da(_0x4a69ea){const _0x2d9255=_0xc8dad7;_0x5b2979[_0x2d9255('0x120f')]=[];const _0x363c9b=_0x436273[_0x2d9255('0x132b')]()[_0x2d9255('0x134b')](_0x2d9255('0x1fa9'))['content']('The\x20deskConfiguration\x20will\x20be\x20deleted.')[_0x2d9255('0xb2e')](_0x2d9255('0x22fd'))['ok'](_0x2d9255('0x1167'))[_0x2d9255('0x26c9')]('Cancel')[_0x2d9255('0x1e25')](_0x4a69ea);_0x436273['show'](_0x363c9b)['then'](function(){const _0x10acd2=_0x2d9255;_0x14b73f[_0x10acd2('0x85a')][_0x10acd2('0x2088')]({'id':_0x5b2979[_0x10acd2('0x1c73')]['id']})['$promise'][_0x10acd2('0x11bf')](function(){const _0x342a3a=_0x10acd2;_0x36f548()[_0x342a3a('0x14a5')](_0x5b2979[_0x342a3a('0x2766')],{'id':_0x5b2979[_0x342a3a('0x1c73')]['id']}),_0x11f957[_0x342a3a('0x2693')]({'title':'DeskConfiguration\x20properly\x20deleted!','msg':(_0x5b2979['deskConfiguration'][_0x342a3a('0x1909')]||'deskConfiguration')+_0x342a3a('0x433')}),_0x1b2396(_0x5b2979[_0x342a3a('0x1c73')]);})[_0x10acd2('0x151d')](function(_0x11c7cb){const _0x4add2f=_0x10acd2;if(_0x11c7cb[_0x4add2f('0x4e8')]&&_0x11c7cb[_0x4add2f('0x4e8')][_0x4add2f('0x120f')]&&_0x11c7cb[_0x4add2f('0x4e8')][_0x4add2f('0x120f')]['length']){_0x5b2979[_0x4add2f('0x120f')]=_0x11c7cb[_0x4add2f('0x4e8')][_0x4add2f('0x120f')]||[{'message':_0x11c7cb[_0x4add2f('0xaab')](),'type':_0x4add2f('0x1976')}];for(let _0x20c517=0x0;_0x20c517<_0x11c7cb[_0x4add2f('0x4e8')][_0x4add2f('0x120f')][_0x4add2f('0x1e22')];_0x20c517++){_0x11f957[_0x4add2f('0x255')]({'title':_0x11c7cb['data']['errors'][_0x20c517][_0x4add2f('0x19fd')],'msg':_0x11c7cb[_0x4add2f('0x4e8')]['errors'][_0x20c517][_0x4add2f('0x1b86')]});}}else _0x11f957[_0x4add2f('0x255')]({'title':_0x11c7cb['status']?_0x4add2f('0x574')+_0x11c7cb['status']+_0x4add2f('0xb0b')+_0x11c7cb[_0x4add2f('0x212f')]:_0x4add2f('0x1976'),'msg':_0x11c7cb[_0x4add2f('0x4e8')]?JSON[_0x4add2f('0x3e')](_0x11c7cb['data'][_0x4add2f('0x1b86')]):_0x11c7cb[_0x4add2f('0x1b86')]||_0x11c7cb[_0x4add2f('0xaab')]()});});},function(){});}function _0x58526e(_0x382019){return _0x382019===null?undefined:new Date(_0x382019);}function _0x1b2396(_0x2c22ea){const _0x3a910b=_0xc8dad7;_0x436273[_0x3a910b('0x237e')](_0x2c22ea);}}const _0x5f7b1c=_0x5db7bc;_0x447724[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0xcbc'),_0x21d0f5('0x16b9'),_0x21d0f5('0x1ca2'),_0x21d0f5('0x142d'),_0x21d0f5('0xc09'),_0x21d0f5('0x22'),_0x21d0f5('0xa9c'),_0x21d0f5('0x2565'),'type',_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),'crudPermissions'];function _0x447724(_0x56ac63,_0x15d98c,_0x5d1619,_0x2aaaf4,_0xe41f65,_0x1426ca,_0x57f702,_0x21ac99,_0x12320a,_0x2106c4,_0x578c64,_0x24c9cd,_0x25c7d4){const _0x176732=_0x21d0f5,_0x4d4d9f=this;_0x4d4d9f[_0x176732('0x32a')]=_0x24c9cd[_0x176732('0x2428')](),_0x4d4d9f['errors']=[],_0x4d4d9f[_0x176732('0x134b')]='INTEGRATIONS.EDIT_'+_0x36f548()[_0x176732('0x1a31')](_0x2106c4),_0x4d4d9f[_0x176732('0xa9c')]=angular['copy'](_0x21ac99),_0x4d4d9f[_0x176732('0x22')]=_0x57f702,_0x4d4d9f[_0x176732('0x19fd')]=_0x2106c4,_0x4d4d9f[_0x176732('0xb25')]=_0x25c7d4,_0x4d4d9f[_0x176732('0x1f63')]=![];!_0x4d4d9f['item']&&(_0x4d4d9f['item']={'type':'string'},_0x4d4d9f['item'][_0x36f548()['capitalize'](_0x2106c4)+'Id']=_0x1426ca['id'],_0x4d4d9f['title']=_0x176732('0x26b9')+_0x36f548()[_0x176732('0x1a31')](_0x2106c4),_0x4d4d9f['newItem']=!![]);_0x4d4d9f[_0x176732('0x2bc')]=_0x8d52d3,_0x4d4d9f[_0x176732('0x265e')]=_0x55c82b,_0x4d4d9f[_0x176732('0x2639')]=_0x4c2c10,_0x4d4d9f['getSelectedVariable']=_0x5f4af9,_0x4d4d9f['closeDialog']=_0x2e2b65,_0x578c64['variable']['get']({'nolimit':!![]})[_0x176732('0x1549')][_0x176732('0x11bf')](function(_0x3e32c9){const _0x18500c=_0x176732;return _0x4d4d9f['variables']=_0x3e32c9[_0x18500c('0x19b2')]?_0x3e32c9['rows']:[],_0x578c64[_0x18500c('0x1313')][_0x18500c('0x19a5')]()['$promise'];})[_0x176732('0x11bf')](function(_0x4b8804){const _0x993f09=_0x176732;return _0x4d4d9f[_0x993f09('0x1720')]=_0x36f548()[_0x993f09('0x1271')](_0x36f548()[_0x993f09('0xe22')](_0x4b8804),[_0x993f09('0x1549'),'$resolved',_0x993f09('0x1779'),_0x993f09('0x14ea'),'sourceid']),_0x4d4d9f[_0x993f09('0x1720')]['push'](_0x993f09('0xbf8')),_0x578c64['voiceDialReport'][_0x993f09('0x19a5')]()[_0x993f09('0x1549')];})[_0x176732('0x11bf')](function(_0x2bc8ef){const _0x4d6a32=_0x176732;_0x4d4d9f[_0x4d6a32('0x77c')]=_0x36f548()[_0x4d6a32('0x1271')](_0x36f548()['keys'](_0x2bc8ef),[_0x4d6a32('0x1549'),'$resolved','createdAt',_0x4d6a32('0x14ea'),'sourceid']),_0x4d4d9f['voiceDialReportColumns'][_0x4d6a32('0x105d')]('recordingURL');})[_0x176732('0x151d')](function(_0x19a2cf){const _0x16faa6=_0x176732;_0xe41f65[_0x16faa6('0x255')]({'title':_0x19a2cf[_0x16faa6('0xff9')]?'API:'+_0x19a2cf['status']+_0x16faa6('0xb0b')+_0x19a2cf[_0x16faa6('0x212f')]:_0x16faa6('0x2010'),'msg':_0x19a2cf[_0x16faa6('0x4e8')]?JSON[_0x16faa6('0x3e')](_0x19a2cf[_0x16faa6('0x4e8')]):_0x19a2cf[_0x16faa6('0xaab')]()});}),_0x578c64['intDeskAccount'][_0x176732('0x8ff')]({'id':_0x12320a['id'],'ticketType':_0x1426ca['ticketType']?_0x1426ca[_0x176732('0x1bd2')]:undefined})[_0x176732('0x1549')][_0x176732('0x11bf')](function(_0x54230b){const _0x3469db=_0x176732;_0x4d4d9f['accountConnected']=!![],_0x4d4d9f[_0x3469db('0x1067')]=_0x54230b['rows']?_0x54230b[_0x3469db('0x19b2')]:[],_0x4d4d9f['item'][_0x3469db('0x223a')]&&(_0x4d4d9f['customField']=_0x36f548()['find'](_0x4d4d9f[_0x3469db('0x1067')],{'id':_0x4d4d9f[_0x3469db('0xa9c')][_0x3469db('0x223a')]}));})[_0x176732('0x151d')](function(_0x482699){const _0x4931b9=_0x176732;_0x4d4d9f[_0x4931b9('0xf69')]=![],console[_0x4931b9('0x255')](_0x482699);});function _0x8d52d3(){const _0x29fb10=_0x176732;_0x4d4d9f[_0x29fb10('0x120f')]=[],_0x4d4d9f['customField']&&(_0x4d4d9f[_0x29fb10('0xa9c')][_0x29fb10('0x223a')]=_0x4d4d9f[_0x29fb10('0x2830')]['id'],_0x4d4d9f[_0x29fb10('0xa9c')]['nameField']=_0x4d4d9f[_0x29fb10('0x2830')][_0x29fb10('0x1909')],_0x4d4d9f[_0x29fb10('0xa9c')]['customField']=_0x4d4d9f[_0x29fb10('0x2830')][_0x29fb10('0xa8d')]),_0x578c64['intDeskField'][_0x29fb10('0x259')](_0x4d4d9f['item'])[_0x29fb10('0x1549')][_0x29fb10('0x11bf')](function(_0x546a08){const _0x423ee5=_0x29fb10;_0x4d4d9f[_0x423ee5('0x22')][_0x423ee5('0x880')](_0x546a08),_0xe41f65[_0x423ee5('0x2693')]({'title':_0x36f548()[_0x423ee5('0x22c2')](_0x2106c4)+_0x423ee5('0x1c0e'),'msg':_0x36f548()[_0x423ee5('0x22c2')](_0x2106c4)+_0x423ee5('0x7fb')}),_0x2e2b65();})[_0x29fb10('0x151d')](function(_0x20dd0e){const _0x4684dd=_0x29fb10;console[_0x4684dd('0x255')](_0x20dd0e),_0x4d4d9f[_0x4684dd('0x120f')]=_0x20dd0e[_0x4684dd('0x4e8')]['errors']||[{'message':_0x20dd0e[_0x4684dd('0xaab')](),'type':_0x4684dd('0x20a1')}];});}function _0x55c82b(){const _0x2b8dad=_0x176732;_0x4d4d9f[_0x2b8dad('0x120f')]=[],_0x4d4d9f[_0x2b8dad('0x2830')]&&(_0x4d4d9f[_0x2b8dad('0xa9c')][_0x2b8dad('0x223a')]=_0x4d4d9f[_0x2b8dad('0x2830')]['id'],_0x4d4d9f[_0x2b8dad('0xa9c')][_0x2b8dad('0x1992')]=_0x4d4d9f[_0x2b8dad('0x2830')][_0x2b8dad('0x1909')],_0x4d4d9f[_0x2b8dad('0xa9c')][_0x2b8dad('0x2830')]=_0x4d4d9f[_0x2b8dad('0x2830')]['custom']),_0x578c64[_0x2b8dad('0x66')][_0x2b8dad('0x5ab')]({'id':_0x4d4d9f[_0x2b8dad('0xa9c')]['id']},_0x4d4d9f[_0x2b8dad('0xa9c')])[_0x2b8dad('0x1549')][_0x2b8dad('0x11bf')](function(_0x23d3f7){const _0x473d0e=_0x2b8dad,_0x1f5c35=_0x36f548()['find'](_0x4d4d9f[_0x473d0e('0x22')],{'id':_0x23d3f7['id']});_0x1f5c35&&_0x36f548()[_0x473d0e('0x47b')](_0x1f5c35,_0x23d3f7),_0xe41f65[_0x473d0e('0x2693')]({'title':_0x36f548()[_0x473d0e('0x22c2')](_0x2106c4)+_0x473d0e('0x157b'),'msg':_0x36f548()['capitalize'](_0x2106c4)+_0x473d0e('0x1a78')}),_0x2e2b65();})['catch'](function(_0x109c0f){const _0x2ad4c9=_0x2b8dad;console[_0x2ad4c9('0x255')](_0x109c0f),_0x4d4d9f[_0x2ad4c9('0x120f')]=_0x109c0f[_0x2ad4c9('0x4e8')][_0x2ad4c9('0x120f')]||[{'message':_0x109c0f['toString'](),'type':'api.intItem.update'}];});}function _0x4c2c10(_0x25edc5){const _0xbcefad=_0x176732;_0x4d4d9f[_0xbcefad('0x120f')]=[];const _0x198bc7=_0x2aaaf4[_0xbcefad('0x132b')]()[_0xbcefad('0x134b')](_0xbcefad('0x1fa9'))[_0xbcefad('0x252a')](_0xbcefad('0x2155')+_0x2106c4+_0xbcefad('0x1a'))[_0xbcefad('0xb2e')]('Delete\x20'+_0x36f548()[_0xbcefad('0x22c2')](_0x2106c4))['ok'](_0xbcefad('0x1167'))['cancel'](_0xbcefad('0x784'))[_0xbcefad('0x1e25')](_0x25edc5);_0x2aaaf4[_0xbcefad('0xb9')](_0x198bc7)['then'](function(){const _0x255099=_0xbcefad;_0x578c64['intDeskField'][_0x255099('0x2088')]({'id':_0x4d4d9f[_0x255099('0xa9c')]['id']})[_0x255099('0x1549')]['then'](function(){const _0x1477fe=_0x255099;_0x36f548()[_0x1477fe('0x14a5')](_0x4d4d9f['items'],{'id':_0x4d4d9f['item']['id']}),_0xe41f65['success']({'title':_0x36f548()[_0x1477fe('0x22c2')](_0x2106c4)+_0x1477fe('0x12bc'),'msg':_0x36f548()[_0x1477fe('0x22c2')](_0x2106c4)+_0x1477fe('0x433')}),_0x2e2b65();})[_0x255099('0x151d')](function(_0x433cfd){const _0x564e6d=_0x255099;console['error'](_0x433cfd),_0x4d4d9f[_0x564e6d('0x120f')]=_0x433cfd[_0x564e6d('0x4e8')][_0x564e6d('0x120f')]||[{'message':_0x433cfd[_0x564e6d('0xaab')](),'type':_0x564e6d('0x20f0')}];});},function(){});}function _0x5f4af9(){const _0x14a560=_0x176732;return _0x4d4d9f['item']['variableName']!==undefined?_0x4d4d9f[_0x14a560('0xa9c')][_0x14a560('0x209e')]:_0x14a560('0xbc2');}function _0x2e2b65(){const _0x2146e5=_0x176732;_0x2aaaf4[_0x2146e5('0x237e')]();}}const _0x175798=_0x447724;_0x4b22af[_0x21d0f5('0x1e9a')]=['$state',_0x21d0f5('0x16b9'),_0x21d0f5('0x1ca2'),'$document',_0x21d0f5('0xb6b'),_0x21d0f5('0x17ff'),'setting',_0x21d0f5('0x12a5'),'toasty','Auth',_0x21d0f5('0x634'),_0x21d0f5('0x1d63')];function _0x4b22af(_0xb6ab7d,_0x234c1b,_0x3e0d96,_0x3d7184,_0xfb1377,_0x2940d4,_0x26aa62,_0x2a0d5b,_0x1e0ca5,_0xee3698,_0x3924ac,_0x2725cf){const _0x354878=_0x21d0f5,_0x29ece3=this;_0x29ece3[_0x354878('0x32a')]=_0xee3698['getCurrentUser'](),_0x29ece3['license']=_0x2940d4,_0x29ece3[_0x354878('0x23e1')]=_0x26aa62,_0x29ece3[_0x354878('0x2834')]=_0x29ece3['setting'][_0x354878('0x1d4')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x29ece3[_0x354878('0x1d9a')]=_0x234c1b[_0x354878('0x1797')]()+_0x354878('0x16a1')+_0x234c1b['host'](),_0x29ece3['deskAccount']=_0x3924ac||_0xb6ab7d[_0x354878('0x1ab3')][_0x354878('0x634')]||{},_0x29ece3[_0x354878('0x1d63')]=_0x2725cf&&_0x2725cf[_0x354878('0x27d2')]==0x1?_0x2725cf[_0x354878('0x19b2')][0x0]:null,_0x29ece3[_0x354878('0xb25')]=_0xee3698['parseCrudPermissions'](_0x29ece3['userProfileSection']?_0x29ece3[_0x354878('0x1d63')][_0x354878('0xb25')]:null),_0x29ece3['hasModulePermissions']={},_0x29ece3['selectedTab']=_0xb6ab7d[_0x354878('0x1ab3')][_0x354878('0x205c')]||0x0,_0x29ece3[_0x354878('0xb30')]=_0x1e0ca5[_0x354878('0x870')],_0x29ece3[_0x354878('0x6f')]=_0x327891,_0x29ece3[_0x354878('0x545')]=_0x11b959;function _0x327891(){const _0x574116=_0x354878;_0xb6ab7d['go'](_0x574116('0x20f6'),{},{'reload':_0x574116('0x20f6')});}function _0x11b959(){const _0x4035a9=_0x354878;_0x2a0d5b['intDeskAccount']['update']({'id':_0x29ece3[_0x4035a9('0x634')]['id']},_0x29ece3['deskAccount'])['$promise']['then'](function(){const _0x345d4b=_0x4035a9;_0x1e0ca5[_0x345d4b('0x2693')]({'title':_0x345d4b('0xef4'),'msg':_0x29ece3[_0x345d4b('0x634')][_0x345d4b('0x1909')]?_0x29ece3[_0x345d4b('0x634')][_0x345d4b('0x1909')]+_0x345d4b('0xd7'):''});})[_0x4035a9('0x151d')](function(_0x15ecf8){const _0x55f6c7=_0x4035a9;_0x1e0ca5[_0x55f6c7('0x255')]({'title':_0x15ecf8[_0x55f6c7('0xff9')]?_0x55f6c7('0x574')+_0x15ecf8[_0x55f6c7('0xff9')]+_0x55f6c7('0xb0b')+_0x15ecf8[_0x55f6c7('0x212f')]:_0x55f6c7('0x1b2f'),'msg':_0x15ecf8[_0x55f6c7('0x4e8')]?JSON[_0x55f6c7('0x3e')](_0x15ecf8[_0x55f6c7('0x4e8')]):_0x15ecf8[_0x55f6c7('0xaab')]()});});}}const _0x1e38af=_0x4b22af;_0x2fefaf[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0xcbc'),'$location',_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0xb6b'),_0x21d0f5('0x142d'),_0x21d0f5('0xf7b'),'dynamics365Account',_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1'),'crudPermissions'];function _0x2fefaf(_0x4eb4ad,_0x2d7775,_0x186dfe,_0x48b9d2,_0x4f997f,_0xc8ab17,_0x4b3200,_0x238ca5,_0x37003f,_0x14c088,_0xede8b5,_0x5f4390,_0xda7acc,_0x9f890d){const _0x4bf3c7=_0x21d0f5,_0x3ecbc0=this;_0x3ecbc0[_0x4bf3c7('0x32a')]=_0xede8b5[_0x4bf3c7('0x2428')](),_0x3ecbc0[_0x4bf3c7('0x120f')]=[],_0x3ecbc0['setting']=_0xda7acc,_0x3ecbc0['license']=_0x5f4390,_0x3ecbc0['crudPermissions']=_0x9f890d,_0x3ecbc0[_0x4bf3c7('0x2c9')]={},_0x3ecbc0['passwordPattern']=_0x3ecbc0[_0x4bf3c7('0x23e1')]&&_0x3ecbc0[_0x4bf3c7('0x23e1')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3ecbc0[_0x4bf3c7('0x134b')]='INTEGRATIONS.EDIT_DYNAMICS365ACCOUNT',_0x3ecbc0[_0x4bf3c7('0x234c')]=angular[_0x4bf3c7('0x6fb')](_0x37003f),_0x3ecbc0['dynamics365Accounts']=_0x238ca5,_0x3ecbc0['newDynamics365Account']=![];!_0x3ecbc0[_0x4bf3c7('0x234c')]&&(_0x3ecbc0['dynamics365Account']={'serverUrl':_0x186dfe[_0x4bf3c7('0x1797')]()+'://'+_0x186dfe['host']()+(_0x186dfe[_0x4bf3c7('0x235b')]()?':'+_0x186dfe['port']():'')},_0x3ecbc0['title']=_0x4bf3c7('0xb69'),_0x3ecbc0[_0x4bf3c7('0x179b')]=!![]);_0x3ecbc0[_0x4bf3c7('0xe7e')]=_0x1c8b36,_0x3ecbc0[_0x4bf3c7('0x21ec')]=_0x22ac23,_0x3ecbc0[_0x4bf3c7('0x151')]=_0x34efc1,_0x3ecbc0[_0x4bf3c7('0x1bd1')]=_0x33958c,_0x3ecbc0[_0x4bf3c7('0xc4e')]=_0x182032;function _0x1c8b36(){const _0x2f7473=_0x4bf3c7;_0x3ecbc0[_0x2f7473('0x120f')]=[],_0x14c088[_0x2f7473('0x24e0')][_0x2f7473('0x259')](_0x3ecbc0['dynamics365Account'])[_0x2f7473('0x1549')][_0x2f7473('0x11bf')](function(_0x5ec2bd){const _0x4b81cd=_0x2f7473;_0x3ecbc0[_0x4b81cd('0xf7b')][_0x4b81cd('0x880')](_0x5ec2bd[_0x4b81cd('0x2866')]()),_0x4b3200[_0x4b81cd('0x2693')]({'title':'Dynamics365Account\x20properly\x20created','msg':_0x3ecbc0['dynamics365Account'][_0x4b81cd('0x1909')]?_0x3ecbc0[_0x4b81cd('0x234c')][_0x4b81cd('0x1909')]+_0x4b81cd('0x7fb'):''}),_0x182032(_0x5ec2bd);})['catch'](function(_0x2f01e7){const _0x101984=_0x2f7473;if(_0x2f01e7['data']&&_0x2f01e7['data'][_0x101984('0x120f')]&&_0x2f01e7[_0x101984('0x4e8')][_0x101984('0x120f')][_0x101984('0x1e22')]){_0x3ecbc0[_0x101984('0x120f')]=_0x2f01e7['data']['errors']||[{'message':_0x2f01e7[_0x101984('0xaab')](),'type':_0x101984('0x737')}];for(let _0x5845c8=0x0;_0x5845c8<_0x2f01e7[_0x101984('0x4e8')][_0x101984('0x120f')][_0x101984('0x1e22')];_0x5845c8+=0x1){_0x4b3200['error']({'title':_0x2f01e7[_0x101984('0x4e8')][_0x101984('0x120f')][_0x5845c8][_0x101984('0x19fd')],'msg':_0x2f01e7['data']['errors'][_0x5845c8]['message']});}}else _0x4b3200['error']({'title':_0x2f01e7[_0x101984('0xff9')]?_0x101984('0x574')+_0x2f01e7[_0x101984('0xff9')]+'\x20-\x20'+_0x2f01e7['statusText']:_0x101984('0x737'),'msg':_0x2f01e7['data']?JSON['stringify'](_0x2f01e7[_0x101984('0x4e8')][_0x101984('0x1b86')]):_0x2f01e7[_0x101984('0xaab')]()});});}function _0x22ac23(){const _0x18c017=_0x4bf3c7;_0x3ecbc0[_0x18c017('0x120f')]=[],_0x14c088[_0x18c017('0x24e0')][_0x18c017('0x5ab')]({'id':_0x3ecbc0[_0x18c017('0x234c')]['id']},_0x3ecbc0[_0x18c017('0x234c')])[_0x18c017('0x1549')]['then'](function(_0x21fc33){const _0x1ff8d0=_0x18c017,_0x14ec8c=_0x36f548()[_0x1ff8d0('0x1ad4')](_0x3ecbc0[_0x1ff8d0('0xf7b')],{'id':_0x21fc33['id']});_0x14ec8c&&_0x36f548()[_0x1ff8d0('0x47b')](_0x14ec8c,_0x36f548()['pick'](_0x21fc33[_0x1ff8d0('0x2866')](),_0x36f548()[_0x1ff8d0('0xe22')](_0x14ec8c))),_0x4b3200[_0x1ff8d0('0x2693')]({'title':'Dynamics365Account\x20properly\x20saved!','msg':_0x3ecbc0['dynamics365Account'][_0x1ff8d0('0x1909')]?_0x3ecbc0[_0x1ff8d0('0x234c')][_0x1ff8d0('0x1909')]+_0x1ff8d0('0x1a78'):''}),_0x182032(_0x21fc33);})[_0x18c017('0x151d')](function(_0x20fc95){const _0x4cc59a=_0x18c017;if(_0x20fc95[_0x4cc59a('0x4e8')]&&_0x20fc95['data']['errors']&&_0x20fc95[_0x4cc59a('0x4e8')]['errors'][_0x4cc59a('0x1e22')]){_0x3ecbc0[_0x4cc59a('0x120f')]=_0x20fc95['data']['errors']||[{'message':_0x20fc95['toString'](),'type':'api.intDynamics365Account.update'}];for(let _0x3a28f3=0x0;_0x3a28f3<_0x20fc95['data']['errors'][_0x4cc59a('0x1e22')];_0x3a28f3++){_0x4b3200['error']({'title':_0x20fc95[_0x4cc59a('0x4e8')][_0x4cc59a('0x120f')][_0x3a28f3]['type'],'msg':_0x20fc95[_0x4cc59a('0x4e8')][_0x4cc59a('0x120f')][_0x3a28f3][_0x4cc59a('0x1b86')]});}}else _0x4b3200[_0x4cc59a('0x255')]({'title':_0x20fc95['status']?_0x4cc59a('0x574')+_0x20fc95[_0x4cc59a('0xff9')]+_0x4cc59a('0xb0b')+_0x20fc95[_0x4cc59a('0x212f')]:_0x4cc59a('0x23c4'),'msg':_0x20fc95[_0x4cc59a('0x4e8')]?JSON['stringify'](_0x20fc95['data'][_0x4cc59a('0x1b86')]):_0x20fc95[_0x4cc59a('0xaab')]()});});}function _0x34efc1(_0x10a692){const _0x2668fa=_0x4bf3c7;_0x3ecbc0[_0x2668fa('0x120f')]=[];const _0x34043e=_0x48b9d2[_0x2668fa('0x132b')]()[_0x2668fa('0x134b')](_0x2668fa('0x1fa9'))[_0x2668fa('0x252a')](_0x2668fa('0x1ac8'))[_0x2668fa('0xb2e')](_0x2668fa('0x5a8'))['ok'](_0x2668fa('0x1167'))[_0x2668fa('0x26c9')](_0x2668fa('0x784'))['targetEvent'](_0x10a692);_0x48b9d2[_0x2668fa('0xb9')](_0x34043e)['then'](function(){const _0x48dfe1=_0x2668fa;_0x14c088[_0x48dfe1('0x24e0')][_0x48dfe1('0x2088')]({'id':_0x3ecbc0[_0x48dfe1('0x234c')]['id']})[_0x48dfe1('0x1549')][_0x48dfe1('0x11bf')](function(){const _0x3d68aa=_0x48dfe1;_0x36f548()[_0x3d68aa('0x14a5')](_0x3ecbc0[_0x3d68aa('0xf7b')],{'id':_0x3ecbc0['dynamics365Account']['id']}),_0x4b3200[_0x3d68aa('0x2693')]({'title':_0x3d68aa('0x19ba'),'msg':(_0x3ecbc0[_0x3d68aa('0x234c')][_0x3d68aa('0x1909')]||'dynamics365Account')+_0x3d68aa('0x433')}),_0x182032(_0x3ecbc0[_0x3d68aa('0x234c')]);})[_0x48dfe1('0x151d')](function(_0x3e764e){const _0x2b2117=_0x48dfe1;if(_0x3e764e['data']&&_0x3e764e[_0x2b2117('0x4e8')][_0x2b2117('0x120f')]&&_0x3e764e['data'][_0x2b2117('0x120f')]['length']){_0x3ecbc0[_0x2b2117('0x120f')]=_0x3e764e['data'][_0x2b2117('0x120f')]||[{'message':_0x3e764e[_0x2b2117('0xaab')](),'type':_0x2b2117('0x1b1b')}];for(let _0x48abaf=0x0;_0x48abaf<_0x3e764e[_0x2b2117('0x4e8')][_0x2b2117('0x120f')][_0x2b2117('0x1e22')];_0x48abaf++){_0x4b3200[_0x2b2117('0x255')]({'title':_0x3e764e[_0x2b2117('0x4e8')][_0x2b2117('0x120f')][_0x48abaf]['type'],'msg':_0x3e764e[_0x2b2117('0x4e8')][_0x2b2117('0x120f')][_0x48abaf][_0x2b2117('0x1b86')]});}}else _0x4b3200['error']({'title':_0x3e764e[_0x2b2117('0xff9')]?_0x2b2117('0x574')+_0x3e764e[_0x2b2117('0xff9')]+_0x2b2117('0xb0b')+_0x3e764e['statusText']:'api.intDynamics365Account.delete','msg':_0x3e764e['data']?JSON['stringify'](_0x3e764e['data']['message']):_0x3e764e[_0x2b2117('0x1b86')]||_0x3e764e[_0x2b2117('0xaab')]()});});},function(){});}function _0x33958c(_0x4d42b6){return _0x4d42b6===null?undefined:new Date(_0x4d42b6);}function _0x182032(_0x179e38){const _0x9a4f1=_0x4bf3c7;_0x48b9d2[_0x9a4f1('0x237e')](_0x179e38);}}const _0x5975e8=_0x2fefaf,_0x148ca8=_0x351988['p']+'src/js/modules/main/apps/integrations/views/dynamics365Accounts/create/dialog.html/dialog.html';_0x1d4ebc[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0x2143'),_0x21d0f5('0xcbc'),_0x21d0f5('0x18fe'),_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),_0x21d0f5('0x17f5'),_0x21d0f5('0xb6b'),_0x21d0f5('0xf7b'),_0x21d0f5('0x25bc'),'userProfileSection','api',_0x21d0f5('0xda9'),_0x21d0f5('0x142d'),_0x21d0f5('0x1150'),_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1')];function _0x1d4ebc(_0x52aed2,_0x29a0d3,_0x4fedd4,_0x2b30c7,_0x572ee6,_0x1c5819,_0x3618ae,_0x1be95e,_0x5085da,_0x44f629,_0x4dd913,_0x35cc36,_0x1d2997,_0x248630,_0x15e013,_0x15c488,_0x4d14ae){const _0x147f41=_0x21d0f5,_0x3fb952=this;_0x3fb952['license']=_0x15c488,_0x3fb952[_0x147f41('0x23e1')]=_0x4d14ae,_0x3fb952[_0x147f41('0x32a')]=_0x15e013[_0x147f41('0x2428')](),_0x3fb952[_0x147f41('0xf7b')]=_0x5085da||{'count':0x0,'rows':[]},_0x3fb952[_0x147f41('0x25bc')]=_0x44f629,_0x3fb952['userProfileSection']=_0x4dd913&&_0x4dd913[_0x147f41('0x27d2')]==0x1?_0x4dd913['rows'][0x0]:null,_0x3fb952[_0x147f41('0xb25')]=_0x15e013['parseCrudPermissions'](_0x3fb952[_0x147f41('0x1d63')]?_0x3fb952['userProfileSection'][_0x147f41('0xb25')]:null),_0x3fb952[_0x147f41('0x13e8')]=_0x147f41('0xf7b'),_0x3fb952[_0x147f41('0x724')]='',_0x3fb952[_0x147f41('0xe3c')]=null,_0x3fb952['selectedDynamics365Accounts']=[],_0x3fb952[_0x147f41('0x1f2a')]={'fields':'createdAt,updatedAt,id,name,username,password,remoteUri,tenantId,clientId,clientSecret,serverUrl,description','limit':0xa,'page':0x1},_0x3fb952[_0x147f41('0x757')]=_0x4c5a3c,_0x3fb952['testtestintegrationaccount']=_0x493753,_0x3fb952[_0x147f41('0x549')]=_0x50ee68,_0x3fb952[_0x147f41('0x2693')]=_0x2605a6,_0x3fb952[_0x147f41('0x1e55')]=_0x22b984,_0x3fb952[_0x147f41('0x264b')]=_0x780708,_0x3fb952[_0x147f41('0x151')]=_0x276891,_0x3fb952[_0x147f41('0x190a')]=_0x263258,_0x3fb952[_0x147f41('0x2d9')]=_0x30a97c,_0x3fb952[_0x147f41('0x2609')]=_0x3e0c60,_0x3fb952['selectAllDynamics365Accounts']=_0x113454;function _0x4c5a3c(_0x14322e){const _0x1f91f3=_0x147f41;_0x4fedd4['go'](_0x1f91f3('0x1600'),{'id':_0x14322e['id'],'dynamics365Account':_0x14322e,'crudPermissions':_0x3fb952[_0x1f91f3('0xb25')]});}function _0x493753(_0x2bbc0c){const _0x575a7b=_0x147f41;return _0x35cc36[_0x575a7b('0x24e0')][_0x575a7b('0x8ff')]({'id':_0x2bbc0c['id'],'test':!![]})[_0x575a7b('0x1549')]['then'](function(){const _0x10ac4a=_0x575a7b;_0x248630[_0x10ac4a('0x2693')]({'title':_0x10ac4a('0x274f'),'msg':_0x10ac4a('0x1b13')});})[_0x575a7b('0x151d')](function(_0x3c4232){const _0x98808e=_0x575a7b;_0x248630['error']({'title':_0x98808e('0x274f'),'msg':_0x3c4232[_0x98808e('0x4e8')]?_0x3c4232[_0x98808e('0x4e8')][_0x98808e('0x1b86')]?_0x3c4232[_0x98808e('0x4e8')][_0x98808e('0x1b86')]:JSON[_0x98808e('0x3e')](_0x3c4232[_0x98808e('0x4e8')]):_0x3c4232[_0x98808e('0xaab')]()});});}function _0x50ee68(_0x2f57ad,_0x26c780){const _0x22c6b7=_0x147f41,_0x26b583=_0x572ee6['confirm']()[_0x22c6b7('0x134b')](_0x22c6b7('0x1796')+_0x36f548()[_0x22c6b7('0x13cf')](_0x22c6b7('0x234c'))+'?')['htmlContent'](_0x22c6b7('0x2061')+(_0x2f57ad['name']||'dynamics365Account')+_0x22c6b7('0x1c78')+_0x22c6b7('0x1a'))[_0x22c6b7('0xb2e')](_0x22c6b7('0x174f'))[_0x22c6b7('0x1e25')](_0x26c780)['ok']('OK')[_0x22c6b7('0x26c9')](_0x22c6b7('0x772'));_0x572ee6['show'](_0x26b583)[_0x22c6b7('0x11bf')](function(){_0x276891(_0x2f57ad);},function(){const _0xc8ea53=_0x22c6b7;console[_0xc8ea53('0xc78')]('CANCEL');});}let _0x28dd2f=!![],_0x20d851=0x1;_0x52aed2[_0x147f41('0x2087')](_0x147f41('0x842'),function(_0xbafd75,_0x74d918){const _0x114298=_0x147f41;_0x28dd2f?_0x3618ae(function(){_0x28dd2f=![];}):(!_0x74d918&&(_0x20d851=_0x3fb952['query'][_0x114298('0x1c2')]),_0xbafd75!==_0x74d918&&(_0x3fb952[_0x114298('0x1f2a')][_0x114298('0x1c2')]=0x1),!_0xbafd75&&(_0x3fb952['query']['page']=_0x20d851),_0x3fb952['getDynamics365Accounts']());});function _0x2605a6(_0x27e888){const _0x487137=_0x147f41;_0x3fb952[_0x487137('0xf7b')]=_0x27e888||{'count':0x0,'rows':[]};}function _0x22b984(){const _0x453eaa=_0x147f41;_0x3fb952['query'][_0x453eaa('0x1393')]=(_0x3fb952[_0x453eaa('0x1f2a')]['page']-0x1)*_0x3fb952[_0x453eaa('0x1f2a')][_0x453eaa('0xd5c')],_0x15e013['hasRole'](_0x453eaa('0xf45'))?_0x3fb952[_0x453eaa('0x13f')]=_0x35cc36['intDynamics365Account'][_0x453eaa('0xbaa')](_0x3fb952['query'],_0x2605a6)[_0x453eaa('0x1549')]:(_0x3fb952[_0x453eaa('0x1f2a')]['id']=_0x3fb952[_0x453eaa('0x25bc')]['id'],_0x3fb952[_0x453eaa('0x1f2a')]['section']=_0x453eaa('0x71c'),_0x3fb952[_0x453eaa('0x13f')]=_0x35cc36['userProfile'][_0x453eaa('0x228e')](_0x3fb952[_0x453eaa('0x1f2a')],_0x2605a6)[_0x453eaa('0x1549')]);}function _0x780708(_0x1ebc74,_0x5d11f9){const _0x56f4f5=_0x147f41;_0x572ee6[_0x56f4f5('0xb9')]({'controller':_0x56f4f5('0xfd2'),'controllerAs':'vm','templateUrl':_0x148ca8,'parent':angular[_0x56f4f5('0x1e73')](_0x1c5819[_0x56f4f5('0x1d2')]),'targetEvent':_0x1ebc74,'clickOutsideToClose':!![],'locals':{'dynamics365Account':_0x5d11f9,'dynamics365Accounts':_0x3fb952[_0x56f4f5('0xf7b')]['rows'],'license':_0x3fb952[_0x56f4f5('0x17ff')],'setting':_0x3fb952[_0x56f4f5('0x23e1')],'crudPermissions':_0x3fb952[_0x56f4f5('0xb25')]}});}function _0x276891(_0x1fec2d){const _0x38b257=_0x147f41;_0x35cc36['intDynamics365Account'][_0x38b257('0x2088')]({'id':_0x1fec2d['id']})[_0x38b257('0x1549')]['then'](function(){const _0x2240e3=_0x38b257;_0x36f548()[_0x2240e3('0x14a5')](_0x3fb952[_0x2240e3('0xf7b')][_0x2240e3('0x19b2')],{'id':_0x1fec2d['id']}),_0x3fb952[_0x2240e3('0xf7b')][_0x2240e3('0x27d2')]-=0x1,!_0x3fb952[_0x2240e3('0xf7b')][_0x2240e3('0x19b2')][_0x2240e3('0x1e22')]&&_0x3fb952['getDynamics365Accounts'](),_0x248630['success']({'title':_0x36f548()[_0x2240e3('0x13cf')](_0x2240e3('0x267b'))+_0x2240e3('0x2113'),'msg':_0x1fec2d[_0x2240e3('0x1909')]?_0x1fec2d[_0x2240e3('0x1909')]+_0x2240e3('0x433'):''});})[_0x38b257('0x151d')](function(_0x370353){const _0x286af0=_0x38b257;if(_0x370353[_0x286af0('0x4e8')]&&_0x370353['data'][_0x286af0('0x120f')]&&_0x370353['data'][_0x286af0('0x120f')]['length']){_0x3fb952[_0x286af0('0x120f')]=_0x370353[_0x286af0('0x4e8')][_0x286af0('0x120f')]||[{'message':_0x370353[_0x286af0('0xaab')](),'type':_0x286af0('0x59f')}];for(let _0x4a75bb=0x0;_0x4a75bb<_0x370353[_0x286af0('0x4e8')]['errors']['length'];_0x4a75bb++){_0x248630['error']({'title':_0x370353[_0x286af0('0x4e8')][_0x286af0('0x120f')][_0x4a75bb][_0x286af0('0x19fd')],'msg':_0x370353[_0x286af0('0x4e8')][_0x286af0('0x120f')][_0x4a75bb][_0x286af0('0x1b86')]});}}else _0x248630[_0x286af0('0x255')]({'title':_0x370353[_0x286af0('0xff9')]?_0x286af0('0x574')+_0x370353[_0x286af0('0xff9')]+'\x20-\x20'+_0x370353[_0x286af0('0x212f')]:_0x286af0('0x59f'),'msg':_0x370353[_0x286af0('0x4e8')]?JSON[_0x286af0('0x3e')](_0x370353[_0x286af0('0x4e8')][_0x286af0('0x1b86')]):_0x370353[_0x286af0('0x1b86')]||_0x370353['toString']()});});}function _0x263258(){const _0x1ac32c=_0x147f41,_0x5a7a20=angular[_0x1ac32c('0x6fb')](_0x3fb952[_0x1ac32c('0xef8')]);return _0x3fb952[_0x1ac32c('0xef8')]=[],_0x5a7a20;}function _0x30a97c(_0x1780cc){const _0x4121fb=_0x147f41,_0x36b219=_0x572ee6[_0x4121fb('0x132b')]()['title'](_0x4121fb('0x2165'))[_0x4121fb('0x1d03')](_0x4121fb('0x2061')+_0x3fb952['selectedDynamics365Accounts'][_0x4121fb('0x1e22')]+'\x20selected'+'\x20will\x20be\x20deleted.')[_0x4121fb('0xb2e')]('delete\x20Dynamics365Accounts')[_0x4121fb('0x1e25')](_0x1780cc)['ok']('OK')[_0x4121fb('0x26c9')]('CANCEL');_0x572ee6[_0x4121fb('0xb9')](_0x36b219)[_0x4121fb('0x11bf')](function(){const _0x2df459=_0x4121fb;_0x3fb952[_0x2df459('0xef8')]['forEach'](function(_0x4e580){_0x276891(_0x4e580);}),_0x3fb952[_0x2df459('0xef8')]=[];});}function _0x3e0c60(){const _0x1dbcb1=_0x147f41;_0x3fb952[_0x1dbcb1('0xef8')]=[];}function _0x113454(){const _0x4e9423=_0x147f41;_0x3fb952[_0x4e9423('0xef8')]=_0x3fb952[_0x4e9423('0xf7b')]['rows'];}}const _0x44cc36=_0x1d4ebc,_0x4b6d71=_0x351988['p']+_0x21d0f5('0x2284'),_0x1d4063=_0x351988['p']+_0x21d0f5('0x1c6d');_0x20e1a4[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),_0x21d0f5('0x12a5'),_0x21d0f5('0x142d'),_0x21d0f5('0x1150')];function _0x20e1a4(_0x17ae3a,_0x5efdad,_0x34db02,_0x474809,_0x442ad2){const _0x2c56cd=_0x21d0f5,_0x7b609=this;_0x7b609[_0x2c56cd('0x32a')]=_0x442ad2[_0x2c56cd('0x2428')](),_0x7b609[_0x2c56cd('0x234c')]={},_0x7b609[_0x2c56cd('0x1146')]={},_0x7b609['configurations']=[],_0x7b609['selectedDynamics365Configuration']=-0x1,_0x7b609[_0x2c56cd('0xb25')],_0x7b609[_0x2c56cd('0x286f')]=_0x41a087,_0x7b609[_0x2c56cd('0x1721')]=_0x4c4662,_0x7b609[_0x2c56cd('0x8d')]=_0x44b9ed,_0x7b609[_0x2c56cd('0x64e')]=_0x1994b3;function _0x41a087(_0x325b62,_0x403633){const _0x2bafe3=_0x2c56cd;_0x7b609['dynamics365Account']=_0x325b62,_0x7b609[_0x2bafe3('0xb25')]=typeof _0x403633!==_0x2bafe3('0x13e9')?_0x403633:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x34db02[_0x2bafe3('0x24e0')][_0x2bafe3('0x26af')]({'id':_0x7b609[_0x2bafe3('0x234c')]['id'],'sort':_0x2bafe3('0x1c74')})[_0x2bafe3('0x1549')]['then'](function(_0x486393){const _0x5161fc=_0x2bafe3;return _0x7b609['configurations']=_0x486393[_0x5161fc('0x19b2')]?_0x486393[_0x5161fc('0x19b2')]:[],_0x7b609['configurations'][_0x5161fc('0x1e22')]&&_0x7b609[_0x5161fc('0x1721')](0x0),_0x34db02[_0x5161fc('0xb0')][_0x5161fc('0xbaa')]({'nolimit':!![],'sort':_0x5161fc('0x1909')})[_0x5161fc('0x1549')];})[_0x2bafe3('0x11bf')](function(_0x20f2d3){const _0x3337c5=_0x2bafe3;_0x7b609[_0x3337c5('0x1700')]=_0x20f2d3[_0x3337c5('0x19b2')]?_0x20f2d3[_0x3337c5('0x19b2')]:[],_0x7b609[_0x3337c5('0x90')]=_0x36f548()['keyBy'](_0x7b609[_0x3337c5('0x1700')],'id');})[_0x2bafe3('0x151d')](function(_0x3d5367){const _0x2427d7=_0x2bafe3;_0x474809['error']({'title':_0x3d5367['status']?_0x2427d7('0x574')+_0x3d5367[_0x2427d7('0xff9')]+_0x2427d7('0xb0b')+_0x3d5367[_0x2427d7('0x212f')]:_0x2427d7('0x2752'),'msg':_0x3d5367[_0x2427d7('0x4e8')]?JSON[_0x2427d7('0x3e')](_0x3d5367[_0x2427d7('0x4e8')]):_0x3d5367[_0x2427d7('0xaab')]()});});}function _0x4c4662(_0x26d88a){const _0x423647=_0x2c56cd;_0x7b609[_0x423647('0x1146')]=_0x7b609['configurations'][_0x26d88a],_0x7b609[_0x423647('0x16fc')]=_0x26d88a,_0x34db02[_0x423647('0x136b')]['getSubjects']({'id':_0x7b609[_0x423647('0x1146')]['id']})[_0x423647('0x1549')][_0x423647('0x11bf')](function(_0x4bdd72){const _0x5423e9=_0x423647;return _0x7b609[_0x5423e9('0x1318')]=_0x4bdd72[_0x5423e9('0x19b2')]?_0x4bdd72[_0x5423e9('0x19b2')]:[],_0x34db02[_0x5423e9('0x136b')][_0x5423e9('0x20e8')]({'id':_0x7b609[_0x5423e9('0x1146')]['id']})[_0x5423e9('0x1549')];})['then'](function(_0x4f47af){const _0x1408eb=_0x423647;return _0x7b609[_0x1408eb('0xe12')]=_0x4f47af['rows']?_0x4f47af['rows']:[],_0x34db02[_0x1408eb('0x136b')]['getFields']({'id':_0x7b609[_0x1408eb('0x1146')]['id']})['$promise'];})[_0x423647('0x11bf')](function(_0xbb18cd){const _0x40da3b=_0x423647;_0x7b609[_0x40da3b('0x1067')]=_0xbb18cd['rows']?_0xbb18cd[_0x40da3b('0x19b2')]:[];})[_0x423647('0x151d')](function(_0x27291d){const _0x3ae47c=_0x423647;_0x474809[_0x3ae47c('0x255')]({'title':_0x27291d[_0x3ae47c('0xff9')]?'API:'+_0x27291d['status']+_0x3ae47c('0xb0b')+_0x27291d[_0x3ae47c('0x212f')]:_0x3ae47c('0x1023'),'msg':_0x27291d['data']?JSON[_0x3ae47c('0x3e')](_0x27291d[_0x3ae47c('0x4e8')]):_0x27291d[_0x3ae47c('0xaab')]()});});}function _0x44b9ed(_0x4b0ff3,_0xa8bae9){const _0x32b617=_0x2c56cd;_0x17ae3a['show']({'controller':'CreateOrEditDynamics365ConfigurationDialogController','controllerAs':'vm','templateUrl':_0x4b6d71,'parent':angular['element'](_0x5efdad['body']),'targetEvent':_0x4b0ff3,'clickOutsideToClose':!![],'locals':{'dynamics365Configuration':_0xa8bae9,'configurations':_0x7b609[_0x32b617('0x2766')],'license':null,'setting':null,'crudPermissions':_0x7b609[_0x32b617('0xb25')]}})[_0x32b617('0xa9b')](function(){const _0x4f3457=_0x32b617;_0x7b609[_0x4f3457('0x1721')](0x0);});}function _0x1994b3(_0x11c5e3,_0x4edc0e){const _0x2d6592=_0x2c56cd,_0x40565f=_0x17ae3a[_0x2d6592('0x132b')]()[_0x2d6592('0x134b')](_0x2d6592('0x2073'))[_0x2d6592('0x1d03')](_0x2d6592('0x2061')+(_0x4edc0e[_0x2d6592('0x1909')]||_0x2d6592('0x1146'))+''+_0x2d6592('0x1a'))[_0x2d6592('0xb2e')]('delete\x20dynamics365Configuration')['targetEvent'](_0x11c5e3)['ok']('OK')['cancel'](_0x2d6592('0x772'));_0x17ae3a[_0x2d6592('0xb9')](_0x40565f)[_0x2d6592('0x11bf')](function(){const _0x8fefa4=_0x2d6592;_0x34db02[_0x8fefa4('0x136b')][_0x8fefa4('0x2088')]({'id':_0x4edc0e['id']})[_0x8fefa4('0x1549')][_0x8fefa4('0x11bf')](function(){const _0x32b877=_0x8fefa4;_0x36f548()[_0x32b877('0x14a5')](_0x7b609[_0x32b877('0x2766')],{'id':_0x4edc0e['id']}),_0x474809[_0x32b877('0x2693')]({'title':_0x32b877('0x1d3a'),'msg':_0x4edc0e[_0x32b877('0x1909')]?_0x4edc0e[_0x32b877('0x1909')]+'\x20has\x20been\x20deleted!':''});})[_0x8fefa4('0x151d')](function(_0x29ed29){const _0xf1b37=_0x8fefa4;_0x474809[_0xf1b37('0x255')]({'title':_0x29ed29[_0xf1b37('0xff9')]?_0xf1b37('0x574')+_0x29ed29[_0xf1b37('0xff9')]+_0xf1b37('0xb0b')+_0x29ed29[_0xf1b37('0x212f')]:_0xf1b37('0x15ea'),'msg':_0x29ed29['data']?JSON['stringify'](_0x29ed29[_0xf1b37('0x4e8')]):_0x29ed29[_0xf1b37('0xaab')]()});})[_0x8fefa4('0xa9b')](function(){_0x7b609['getDynamics365Configuration'](0x0);});},function(){const _0x2aad26=_0x2d6592;console['log'](_0x2aad26('0x772'));});}_0x7b609['selectedSubjects']=[],_0x7b609[_0x2c56cd('0x1ec8')]=_0x230229,_0x7b609[_0x2c56cd('0x14ae')]=_0xdfc259,_0x7b609['deleteSelectedSubjects']=_0x19a9be;function _0x230229(_0x4cd11c,_0x351ec9){const _0x1214ee=_0x2c56cd;_0x17ae3a[_0x1214ee('0xb9')]({'controller':_0x1214ee('0x15a8'),'controllerAs':'vm','templateUrl':_0x1d4063,'parent':angular[_0x1214ee('0x1e73')](_0x5efdad['body']),'targetEvent':_0x4cd11c,'clickOutsideToClose':!![],'locals':{'type':_0x1214ee('0x20eb'),'item':_0x351ec9,'items':_0x7b609[_0x1214ee('0x1318')],'configuration':_0x7b609[_0x1214ee('0x1146')],'account':_0x7b609[_0x1214ee('0x234c')],'license':null,'setting':null,'crudPermissions':_0x7b609[_0x1214ee('0xb25')]}});}function _0x495a40(_0x1342d2){const _0x656f00=_0x2c56cd;_0x34db02[_0x656f00('0x18b0')][_0x656f00('0x2088')]({'id':_0x1342d2['id']})[_0x656f00('0x1549')][_0x656f00('0x11bf')](function(){const _0x1c83ea=_0x656f00;_0x36f548()[_0x1c83ea('0x14a5')](_0x7b609[_0x1c83ea('0x1318')],{'id':_0x1342d2['id']}),_0x474809[_0x1c83ea('0x2693')]({'title':_0x1c83ea('0x1845'),'msg':_0x1c83ea('0x4c1')});})['catch'](function(_0x22c1fc){const _0x2979e6=_0x656f00;_0x474809[_0x2979e6('0x255')]({'title':_0x22c1fc[_0x2979e6('0xff9')]?_0x2979e6('0x574')+_0x22c1fc[_0x2979e6('0xff9')]+_0x2979e6('0xb0b')+_0x22c1fc[_0x2979e6('0x212f')]:_0x2979e6('0xc27'),'msg':_0x22c1fc[_0x2979e6('0x4e8')]?JSON[_0x2979e6('0x3e')](_0x22c1fc[_0x2979e6('0x4e8')]):_0x22c1fc['toString']()});});}function _0xdfc259(_0x17d34a,_0x38dd7e){const _0x12a456=_0x2c56cd,_0xadf4b2=_0x17ae3a[_0x12a456('0x132b')]()[_0x12a456('0x134b')](_0x12a456('0x98e'))[_0x12a456('0x1d03')](_0x12a456('0xb46')+'\x20will\x20be\x20deleted.')[_0x12a456('0xb2e')]('delete\x20subject')['targetEvent'](_0x17d34a)['ok']('OK')[_0x12a456('0x26c9')](_0x12a456('0x772'));_0x17ae3a[_0x12a456('0xb9')](_0xadf4b2)[_0x12a456('0x11bf')](function(){_0x495a40(_0x38dd7e);},function(){const _0x368d70=_0x12a456;console[_0x368d70('0xc78')](_0x368d70('0x772'));});}function _0x19a9be(_0x388935){const _0x5e0653=_0x2c56cd,_0x56b761=_0x17ae3a['confirm']()[_0x5e0653('0x134b')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20subjects?')[_0x5e0653('0x1d03')](_0x5e0653('0x2061')+_0x7b609['selectedSubjects']['length']+_0x5e0653('0xac6')+_0x5e0653('0x1a'))[_0x5e0653('0xb2e')]('delete\x20subjects')[_0x5e0653('0x1e25')](_0x388935)['ok']('OK')['cancel'](_0x5e0653('0x772'));_0x17ae3a[_0x5e0653('0xb9')](_0x56b761)[_0x5e0653('0x11bf')](function(){const _0x1ebcc5=_0x5e0653;_0x7b609['selectedSubjects'][_0x1ebcc5('0x1f88')](function(_0x45d563){_0x495a40(_0x45d563);}),_0x7b609[_0x1ebcc5('0x1151')]=[];});}_0x7b609['selectedDescriptions']=[],_0x7b609[_0x2c56cd('0x25fe')]=_0x454b0b,_0x7b609['deleteDescriptionConfirm']=_0x4aabbc,_0x7b609[_0x2c56cd('0x1a3e')]=_0x24aea3;function _0x454b0b(_0x2cb926,_0x2eed61){const _0x9ba15d=_0x2c56cd;_0x17ae3a[_0x9ba15d('0xb9')]({'controller':'CreateOrEditDynamics365AccountItemDialogController','controllerAs':'vm','templateUrl':_0x1d4063,'parent':angular[_0x9ba15d('0x1e73')](_0x5efdad[_0x9ba15d('0x1d2')]),'targetEvent':_0x2cb926,'clickOutsideToClose':!![],'locals':{'type':'description','item':_0x2eed61,'items':_0x7b609['descriptions'],'configuration':_0x7b609[_0x9ba15d('0x1146')],'account':_0x7b609[_0x9ba15d('0x234c')],'license':null,'setting':null,'crudPermissions':_0x7b609[_0x9ba15d('0xb25')]}});}function _0x4938e5(_0x4724c6){const _0x189f39=_0x2c56cd;_0x34db02[_0x189f39('0x18b0')][_0x189f39('0x2088')]({'id':_0x4724c6['id']})[_0x189f39('0x1549')][_0x189f39('0x11bf')](function(){const _0x1243d4=_0x189f39;_0x36f548()[_0x1243d4('0x14a5')](_0x7b609['descriptions'],{'id':_0x4724c6['id']}),_0x474809['success']({'title':_0x1243d4('0x1221'),'msg':_0x1243d4('0x40e')});})[_0x189f39('0x151d')](function(_0x39d667){const _0xf1c65f=_0x189f39;_0x474809[_0xf1c65f('0x255')]({'title':_0x39d667[_0xf1c65f('0xff9')]?_0xf1c65f('0x574')+_0x39d667[_0xf1c65f('0xff9')]+_0xf1c65f('0xb0b')+_0x39d667[_0xf1c65f('0x212f')]:_0xf1c65f('0xc27'),'msg':_0x39d667[_0xf1c65f('0x4e8')]?JSON[_0xf1c65f('0x3e')](_0x39d667[_0xf1c65f('0x4e8')]):_0x39d667[_0xf1c65f('0xaab')]()});});}function _0x4aabbc(_0x477938,_0x2eede3){const _0x2301c5=_0x2c56cd,_0x231ebe=_0x17ae3a[_0x2301c5('0x132b')]()[_0x2301c5('0x134b')](_0x2301c5('0x46b'))[_0x2301c5('0x1d03')]('Description'+_0x2301c5('0x1a'))['ariaLabel'](_0x2301c5('0xd32'))['targetEvent'](_0x477938)['ok']('OK')['cancel'](_0x2301c5('0x772'));_0x17ae3a[_0x2301c5('0xb9')](_0x231ebe)['then'](function(){_0x4938e5(_0x2eede3);},function(){const _0x18ccea=_0x2301c5;console[_0x18ccea('0xc78')](_0x18ccea('0x772'));});}function _0x24aea3(_0x23b303){const _0x4a04c0=_0x2c56cd,_0x5f1ef4=_0x17ae3a[_0x4a04c0('0x132b')]()['title'](_0x4a04c0('0x1795'))[_0x4a04c0('0x1d03')](''+_0x7b609[_0x4a04c0('0x73f')][_0x4a04c0('0x1e22')]+'\x20selected'+'\x20will\x20be\x20deleted.')[_0x4a04c0('0xb2e')](_0x4a04c0('0xade'))['targetEvent'](_0x23b303)['ok']('OK')[_0x4a04c0('0x26c9')](_0x4a04c0('0x772'));_0x17ae3a[_0x4a04c0('0xb9')](_0x5f1ef4)[_0x4a04c0('0x11bf')](function(){const _0x468d3c=_0x4a04c0;_0x7b609[_0x468d3c('0x73f')][_0x468d3c('0x1f88')](function(_0x3b41d1){_0x4938e5(_0x3b41d1);}),_0x7b609['selectedDescriptions']=[];});}_0x7b609[_0x2c56cd('0xfea')]=[],_0x7b609[_0x2c56cd('0x18be')]=_0xace851,_0x7b609[_0x2c56cd('0x21c9')]=_0x421e56,_0x7b609[_0x2c56cd('0xd20')]=_0x167a09;function _0xace851(_0x599f1,_0x1241ba){const _0x470bed=_0x2c56cd;_0x17ae3a[_0x470bed('0xb9')]({'controller':_0x470bed('0x15a8'),'controllerAs':'vm','templateUrl':_0x1d4063,'parent':angular['element'](_0x5efdad[_0x470bed('0x1d2')]),'targetEvent':_0x599f1,'clickOutsideToClose':!![],'locals':{'type':_0x470bed('0x485'),'item':_0x1241ba,'items':_0x7b609['fields'],'configuration':_0x7b609[_0x470bed('0x1146')],'account':_0x7b609[_0x470bed('0x234c')],'license':null,'setting':null,'crudPermissions':_0x7b609[_0x470bed('0xb25')]}});}function _0x2a8175(_0x147dc0){const _0x2fd67b=_0x2c56cd;_0x34db02[_0x2fd67b('0x18b0')]['delete']({'id':_0x147dc0['id']})[_0x2fd67b('0x1549')]['then'](function(){const _0x58c1d4=_0x2fd67b;_0x36f548()[_0x58c1d4('0x14a5')](_0x7b609[_0x58c1d4('0x1067')],{'id':_0x147dc0['id']}),_0x474809[_0x58c1d4('0x2693')]({'title':_0x58c1d4('0x4da'),'msg':_0x58c1d4('0x264f')});})['catch'](function(_0x278a6d){const _0xcb7596=_0x2fd67b;_0x474809[_0xcb7596('0x255')]({'title':_0x278a6d[_0xcb7596('0xff9')]?'API:'+_0x278a6d['status']+_0xcb7596('0xb0b')+_0x278a6d[_0xcb7596('0x212f')]:_0xcb7596('0xc27'),'msg':_0x278a6d[_0xcb7596('0x4e8')]?JSON[_0xcb7596('0x3e')](_0x278a6d['data']):_0x278a6d['toString']()});});}function _0x421e56(_0x4d9e3c,_0x4128d3){const _0x2597d4=_0x2c56cd,_0x28ed6f=_0x17ae3a[_0x2597d4('0x132b')]()[_0x2597d4('0x134b')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20field?')[_0x2597d4('0x1d03')](_0x2597d4('0xdc8')+'\x20will\x20be\x20deleted.')[_0x2597d4('0xb2e')](_0x2597d4('0xc52'))[_0x2597d4('0x1e25')](_0x4d9e3c)['ok']('OK')[_0x2597d4('0x26c9')](_0x2597d4('0x772'));_0x17ae3a[_0x2597d4('0xb9')](_0x28ed6f)[_0x2597d4('0x11bf')](function(){_0x2a8175(_0x4128d3);},function(){const _0x6706b1=_0x2597d4;console[_0x6706b1('0xc78')]('CANCEL');});}function _0x167a09(_0x348d93){const _0x18539b=_0x2c56cd,_0x38b9d0=_0x17ae3a[_0x18539b('0x132b')]()['title'](_0x18539b('0x25cc'))[_0x18539b('0x1d03')](_0x18539b('0x2061')+_0x7b609[_0x18539b('0xfea')][_0x18539b('0x1e22')]+_0x18539b('0xac6')+_0x18539b('0x1a'))[_0x18539b('0xb2e')]('delete\x20fields')['targetEvent'](_0x348d93)['ok']('OK')[_0x18539b('0x26c9')](_0x18539b('0x772'));_0x17ae3a[_0x18539b('0xb9')](_0x38b9d0)[_0x18539b('0x11bf')](function(){const _0x3281d2=_0x18539b;_0x7b609[_0x3281d2('0xfea')]['forEach'](function(_0x3ae2f8){_0x2a8175(_0x3ae2f8);}),_0x7b609['selectedFields']=[];});}}const _0x14cd80=_0x20e1a4;_0x1ff3ac[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0xcbc'),_0x21d0f5('0x16b9'),'$mdDialog','$q','$translate','toasty',_0x21d0f5('0x2766'),_0x21d0f5('0x1146'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),'license',_0x21d0f5('0x23e1'),_0x21d0f5('0xb25')];function _0x1ff3ac(_0x14bdcd,_0x18c5dd,_0x640028,_0x374b82,_0x46fcac,_0x1710d1,_0x2b3c7d,_0x41a809,_0x4431dd,_0x339f35,_0x28fe5a,_0x1bab07,_0x1a1268,_0x5db44c){const _0x12eaa5=_0x21d0f5,_0x43a6c5=this;_0x43a6c5[_0x12eaa5('0x32a')]=_0x28fe5a['getCurrentUser'](),_0x43a6c5[_0x12eaa5('0x120f')]=[],_0x43a6c5[_0x12eaa5('0x23e1')]=_0x1a1268,_0x43a6c5[_0x12eaa5('0x17ff')]=_0x1bab07,_0x43a6c5[_0x12eaa5('0xb25')]=_0x5db44c,_0x43a6c5[_0x12eaa5('0x2c9')]={},_0x43a6c5[_0x12eaa5('0x2834')]=_0x43a6c5[_0x12eaa5('0x23e1')]&&_0x43a6c5[_0x12eaa5('0x23e1')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x43a6c5[_0x12eaa5('0x134b')]=_0x12eaa5('0x1433'),_0x43a6c5['dynamics365Configuration']=angular[_0x12eaa5('0x6fb')](_0x4431dd),_0x43a6c5[_0x12eaa5('0x2766')]=_0x41a809,_0x43a6c5[_0x12eaa5('0x28c')]=![];!_0x43a6c5[_0x12eaa5('0x1146')]&&(_0x43a6c5['dynamics365Configuration']={'channel':_0x12eaa5('0x1bc3'),'type':_0x12eaa5('0x18a2'),'ticketType':_0x12eaa5('0x6ad')},_0x43a6c5['title']='INTEGRATIONS.NEW_DYNAMICS365CONFIGURATION',_0x43a6c5['newDynamics365Configuration']=!![]);_0x43a6c5[_0x12eaa5('0x5b3')]=_0x3959a1,_0x43a6c5['saveDynamics365Configuration']=_0x551f74,_0x43a6c5['deleteDynamics365Configuration']=_0x207824,_0x43a6c5[_0x12eaa5('0x1bd1')]=_0x473536,_0x43a6c5[_0x12eaa5('0xc4e')]=_0x25932c;function _0x3959a1(){const _0x49b07d=_0x12eaa5;_0x43a6c5[_0x49b07d('0x120f')]=[],_0x339f35[_0x49b07d('0x24e0')][_0x49b07d('0x157f')]({'id':_0x18c5dd['params']['id']},_0x43a6c5[_0x49b07d('0x1146')])[_0x49b07d('0x1549')]['then'](function(_0xe7f0e0){const _0x3d535c=_0x49b07d;_0x43a6c5[_0x3d535c('0x2766')][_0x3d535c('0x880')](_0xe7f0e0[_0x3d535c('0x2866')]()),_0x2b3c7d[_0x3d535c('0x2693')]({'title':_0x3d535c('0x9f2'),'msg':_0x43a6c5[_0x3d535c('0x1146')][_0x3d535c('0x1909')]?_0x43a6c5[_0x3d535c('0x1146')]['name']+'\x20has\x20been\x20created!':''}),_0x25932c(_0xe7f0e0);})['catch'](function(_0x558415){const _0x59f863=_0x49b07d;if(_0x558415[_0x59f863('0x4e8')]&&_0x558415[_0x59f863('0x4e8')][_0x59f863('0x120f')]&&_0x558415[_0x59f863('0x4e8')][_0x59f863('0x120f')][_0x59f863('0x1e22')]){_0x43a6c5[_0x59f863('0x120f')]=_0x558415[_0x59f863('0x4e8')][_0x59f863('0x120f')]||[{'message':_0x558415[_0x59f863('0xaab')](),'type':'api.intDynamics365Configuration.save'}];for(let _0xa9fcc2=0x0;_0xa9fcc2<_0x558415[_0x59f863('0x4e8')][_0x59f863('0x120f')]['length'];_0xa9fcc2+=0x1){_0x2b3c7d['error']({'title':_0x558415[_0x59f863('0x4e8')][_0x59f863('0x120f')][_0xa9fcc2][_0x59f863('0x19fd')],'msg':_0x558415[_0x59f863('0x4e8')][_0x59f863('0x120f')][_0xa9fcc2][_0x59f863('0x1b86')]});}}else _0x2b3c7d[_0x59f863('0x255')]({'title':_0x558415[_0x59f863('0xff9')]?'API:'+_0x558415[_0x59f863('0xff9')]+_0x59f863('0xb0b')+_0x558415[_0x59f863('0x212f')]:_0x59f863('0x2cf'),'msg':_0x558415[_0x59f863('0x4e8')]?JSON['stringify'](_0x558415[_0x59f863('0x4e8')][_0x59f863('0x1b86')]):_0x558415[_0x59f863('0xaab')]()});});}function _0x551f74(){const _0x2a5928=_0x12eaa5;_0x43a6c5[_0x2a5928('0x120f')]=[],_0x339f35['intDynamics365Configuration'][_0x2a5928('0x5ab')]({'id':_0x43a6c5[_0x2a5928('0x1146')]['id']},_0x43a6c5[_0x2a5928('0x1146')])[_0x2a5928('0x1549')][_0x2a5928('0x11bf')](function(_0x2d3f14){const _0x3af719=_0x2a5928,_0x7ef3f0=_0x36f548()['find'](_0x43a6c5[_0x3af719('0x2766')],{'id':_0x2d3f14['id']});_0x7ef3f0&&_0x36f548()['merge'](_0x7ef3f0,_0x36f548()[_0x3af719('0x258')](_0x2d3f14[_0x3af719('0x2866')](),_0x36f548()[_0x3af719('0xe22')](_0x7ef3f0))),_0x2b3c7d['success']({'title':_0x3af719('0x206a'),'msg':_0x43a6c5[_0x3af719('0x1146')]['name']?_0x43a6c5['dynamics365Configuration'][_0x3af719('0x1909')]+'\x20has\x20been\x20saved!':''}),_0x25932c(_0x2d3f14);})[_0x2a5928('0x151d')](function(_0x4b3756){const _0x57eaf4=_0x2a5928;if(_0x4b3756[_0x57eaf4('0x4e8')]&&_0x4b3756[_0x57eaf4('0x4e8')][_0x57eaf4('0x120f')]&&_0x4b3756['data'][_0x57eaf4('0x120f')]['length']){_0x43a6c5['errors']=_0x4b3756[_0x57eaf4('0x4e8')][_0x57eaf4('0x120f')]||[{'message':_0x4b3756[_0x57eaf4('0xaab')](),'type':_0x57eaf4('0x189a')}];for(let _0x101979=0x0;_0x101979<_0x4b3756['data'][_0x57eaf4('0x120f')]['length'];_0x101979++){_0x2b3c7d['error']({'title':_0x4b3756[_0x57eaf4('0x4e8')][_0x57eaf4('0x120f')][_0x101979][_0x57eaf4('0x19fd')],'msg':_0x4b3756[_0x57eaf4('0x4e8')][_0x57eaf4('0x120f')][_0x101979][_0x57eaf4('0x1b86')]});}}else _0x2b3c7d[_0x57eaf4('0x255')]({'title':_0x4b3756[_0x57eaf4('0xff9')]?_0x57eaf4('0x574')+_0x4b3756[_0x57eaf4('0xff9')]+_0x57eaf4('0xb0b')+_0x4b3756[_0x57eaf4('0x212f')]:_0x57eaf4('0x189a'),'msg':_0x4b3756[_0x57eaf4('0x4e8')]?JSON[_0x57eaf4('0x3e')](_0x4b3756[_0x57eaf4('0x4e8')][_0x57eaf4('0x1b86')]):_0x4b3756[_0x57eaf4('0xaab')]()});});}function _0x207824(_0x16eed3){const _0xaa6b61=_0x12eaa5;_0x43a6c5[_0xaa6b61('0x120f')]=[];const _0x739e5b=_0x374b82['confirm']()[_0xaa6b61('0x134b')](_0xaa6b61('0x1fa9'))['content'](_0xaa6b61('0x2700'))[_0xaa6b61('0xb2e')](_0xaa6b61('0xb79'))['ok'](_0xaa6b61('0x1167'))['cancel'](_0xaa6b61('0x784'))[_0xaa6b61('0x1e25')](_0x16eed3);_0x374b82['show'](_0x739e5b)[_0xaa6b61('0x11bf')](function(){const _0x32f1a7=_0xaa6b61;_0x339f35[_0x32f1a7('0x136b')][_0x32f1a7('0x2088')]({'id':_0x43a6c5['dynamics365Configuration']['id']})[_0x32f1a7('0x1549')][_0x32f1a7('0x11bf')](function(){const _0x117e35=_0x32f1a7;_0x36f548()[_0x117e35('0x14a5')](_0x43a6c5[_0x117e35('0x2766')],{'id':_0x43a6c5['dynamics365Configuration']['id']}),_0x2b3c7d['success']({'title':_0x117e35('0x114e'),'msg':(_0x43a6c5[_0x117e35('0x1146')][_0x117e35('0x1909')]||_0x117e35('0x1146'))+_0x117e35('0x433')}),_0x25932c(_0x43a6c5['dynamics365Configuration']);})[_0x32f1a7('0x151d')](function(_0x4291d4){const _0x578a0=_0x32f1a7;if(_0x4291d4['data']&&_0x4291d4[_0x578a0('0x4e8')]['errors']&&_0x4291d4[_0x578a0('0x4e8')][_0x578a0('0x120f')][_0x578a0('0x1e22')]){_0x43a6c5[_0x578a0('0x120f')]=_0x4291d4[_0x578a0('0x4e8')][_0x578a0('0x120f')]||[{'message':_0x4291d4[_0x578a0('0xaab')](),'type':_0x578a0('0x1550')}];for(let _0x488f68=0x0;_0x488f68<_0x4291d4['data']['errors'][_0x578a0('0x1e22')];_0x488f68++){_0x2b3c7d[_0x578a0('0x255')]({'title':_0x4291d4[_0x578a0('0x4e8')][_0x578a0('0x120f')][_0x488f68][_0x578a0('0x19fd')],'msg':_0x4291d4['data'][_0x578a0('0x120f')][_0x488f68][_0x578a0('0x1b86')]});}}else _0x2b3c7d[_0x578a0('0x255')]({'title':_0x4291d4[_0x578a0('0xff9')]?_0x578a0('0x574')+_0x4291d4[_0x578a0('0xff9')]+_0x578a0('0xb0b')+_0x4291d4['statusText']:'api.intDynamics365Configuration.delete','msg':_0x4291d4[_0x578a0('0x4e8')]?JSON[_0x578a0('0x3e')](_0x4291d4['data'][_0x578a0('0x1b86')]):_0x4291d4['message']||_0x4291d4[_0x578a0('0xaab')]()});});},function(){});}function _0x473536(_0x8db7f6){return _0x8db7f6===null?undefined:new Date(_0x8db7f6);}function _0x25932c(_0xbae6c3){const _0x8a0bab=_0x12eaa5;_0x374b82[_0x8a0bab('0x237e')](_0xbae6c3);}}const _0x25259f=_0x1ff3ac;_0x301bd5[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0xcbc'),_0x21d0f5('0x16b9'),_0x21d0f5('0x1ca2'),'toasty',_0x21d0f5('0xc09'),_0x21d0f5('0x22'),_0x21d0f5('0xa9c'),'account',_0x21d0f5('0x19fd'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),_0x21d0f5('0xb25')];function _0x301bd5(_0x3c0a6b,_0x238434,_0x21d560,_0x10350d,_0x5ded1a,_0x44ba39,_0x467f4b,_0x2fc34c,_0x2349c7,_0x1e2765,_0x2e2c14,_0x3b52e9,_0x335e6e){const _0x1cf327=_0x21d0f5,_0x57f3bb=this;_0x57f3bb['currentUser']=_0x3b52e9[_0x1cf327('0x2428')](),_0x57f3bb[_0x1cf327('0x120f')]=[],_0x57f3bb[_0x1cf327('0x134b')]=_0x1cf327('0x1e35')+_0x36f548()[_0x1cf327('0x1a31')](_0x1e2765),_0x57f3bb[_0x1cf327('0xa9c')]=angular['copy'](_0x2fc34c),_0x57f3bb['items']=_0x467f4b,_0x57f3bb[_0x1cf327('0x19fd')]=_0x1e2765,_0x57f3bb['crudPermissions']=_0x335e6e,_0x57f3bb['newItem']=![];!_0x57f3bb[_0x1cf327('0xa9c')]&&(_0x57f3bb[_0x1cf327('0xa9c')]={'type':_0x1cf327('0x2380')},_0x57f3bb[_0x1cf327('0xa9c')][_0x36f548()[_0x1cf327('0x22c2')](_0x1e2765)+'Id']=_0x44ba39['id'],_0x57f3bb[_0x1cf327('0x134b')]='INTEGRATIONS.NEW_'+_0x36f548()[_0x1cf327('0x1a31')](_0x1e2765),_0x57f3bb[_0x1cf327('0x1f63')]=!![]);_0x57f3bb[_0x1cf327('0x2bc')]=_0x450225,_0x57f3bb[_0x1cf327('0x265e')]=_0xe95fbf,_0x57f3bb[_0x1cf327('0x2639')]=_0x2b17ac,_0x57f3bb[_0x1cf327('0x6e1')]=_0x4c49d4,_0x57f3bb[_0x1cf327('0xc4e')]=_0x25b866,_0x2e2c14[_0x1cf327('0xb0')]['get']({'nolimit':!![]})[_0x1cf327('0x1549')]['then'](function(_0x4c2365){const _0x366464=_0x1cf327;return _0x57f3bb[_0x366464('0x1700')]=_0x4c2365[_0x366464('0x19b2')]?_0x4c2365[_0x366464('0x19b2')]:[],_0x2e2c14['voiceAgentReport'][_0x366464('0x19a5')]()[_0x366464('0x1549')];})['then'](function(_0x525e15){const _0x3d8951=_0x1cf327;return _0x57f3bb[_0x3d8951('0x1720')]=_0x36f548()[_0x3d8951('0x1271')](_0x36f548()[_0x3d8951('0xe22')](_0x525e15),['$promise',_0x3d8951('0x1619'),_0x3d8951('0x1779'),'updatedAt',_0x3d8951('0x14b4')]),_0x57f3bb[_0x3d8951('0x1720')]['push'](_0x3d8951('0xbf8')),_0x2e2c14[_0x3d8951('0x14fc')][_0x3d8951('0x19a5')]()['$promise'];})[_0x1cf327('0x11bf')](function(_0x24de15){const _0x52ea31=_0x1cf327;_0x57f3bb[_0x52ea31('0x77c')]=_0x36f548()[_0x52ea31('0x1271')](_0x36f548()[_0x52ea31('0xe22')](_0x24de15),[_0x52ea31('0x1549'),_0x52ea31('0x1619'),_0x52ea31('0x1779'),_0x52ea31('0x14ea'),_0x52ea31('0x14b4')]),_0x57f3bb[_0x52ea31('0x77c')][_0x52ea31('0x105d')](_0x52ea31('0xbf8'));})[_0x1cf327('0x151d')](function(_0xd416a5){const _0x352b1e=_0x1cf327;_0x5ded1a[_0x352b1e('0x255')]({'title':_0xd416a5[_0x352b1e('0xff9')]?_0x352b1e('0x574')+_0xd416a5[_0x352b1e('0xff9')]+_0x352b1e('0xb0b')+_0xd416a5[_0x352b1e('0x212f')]:_0x352b1e('0x2010'),'msg':_0xd416a5[_0x352b1e('0x4e8')]?JSON[_0x352b1e('0x3e')](_0xd416a5[_0x352b1e('0x4e8')]):_0xd416a5[_0x352b1e('0xaab')]()});}),_0x2e2c14[_0x1cf327('0x24e0')][_0x1cf327('0x8ff')]({'id':_0x2349c7['id'],'ticketType':_0x44ba39['ticketType']?_0x44ba39['ticketType']:undefined})['$promise'][_0x1cf327('0x11bf')](function(_0x3cbd25){const _0x57940f=_0x1cf327;_0x57f3bb[_0x57940f('0xf69')]=!![],_0x57f3bb[_0x57940f('0x1067')]=_0x3cbd25[_0x57940f('0x19b2')]?_0x3cbd25[_0x57940f('0x19b2')]:[],_0x57f3bb[_0x57940f('0xa9c')][_0x57940f('0x223a')]&&(_0x57f3bb[_0x57940f('0x2830')]=_0x36f548()[_0x57940f('0x1ad4')](_0x57f3bb['fields'],{'id':_0x57f3bb[_0x57940f('0xa9c')][_0x57940f('0x223a')]}));})['catch'](function(_0x564025){const _0x50a679=_0x1cf327;_0x57f3bb[_0x50a679('0xf69')]=![],console[_0x50a679('0x255')](_0x564025);});function _0x450225(){const _0x2d60ea=_0x1cf327;_0x57f3bb['errors']=[],_0x57f3bb[_0x2d60ea('0x2830')]&&(_0x57f3bb[_0x2d60ea('0xa9c')][_0x2d60ea('0x223a')]=_0x57f3bb[_0x2d60ea('0x2830')]['id'],_0x57f3bb['item']['nameField']=_0x57f3bb['customField'][_0x2d60ea('0x1909')],_0x57f3bb[_0x2d60ea('0xa9c')][_0x2d60ea('0x2830')]=_0x57f3bb[_0x2d60ea('0x2830')]['custom']),_0x2e2c14[_0x2d60ea('0x18b0')][_0x2d60ea('0x259')](_0x57f3bb[_0x2d60ea('0xa9c')])[_0x2d60ea('0x1549')]['then'](function(_0x2329a6){const _0x4fe656=_0x2d60ea;_0x57f3bb[_0x4fe656('0x22')]['unshift'](_0x2329a6),_0x5ded1a[_0x4fe656('0x2693')]({'title':_0x36f548()[_0x4fe656('0x22c2')](_0x1e2765)+_0x4fe656('0x1c0e'),'msg':_0x36f548()['capitalize'](_0x1e2765)+_0x4fe656('0x7fb')}),_0x25b866();})[_0x2d60ea('0x151d')](function(_0x35d78d){const _0x29fccb=_0x2d60ea;console['error'](_0x35d78d),_0x57f3bb['errors']=_0x35d78d[_0x29fccb('0x4e8')][_0x29fccb('0x120f')]||[{'message':_0x35d78d['toString'](),'type':_0x29fccb('0x20a1')}];});}function _0xe95fbf(){const _0x270a7b=_0x1cf327;_0x57f3bb[_0x270a7b('0x120f')]=[],_0x57f3bb[_0x270a7b('0x2830')]&&(_0x57f3bb['item'][_0x270a7b('0x223a')]=_0x57f3bb[_0x270a7b('0x2830')]['id'],_0x57f3bb['item'][_0x270a7b('0x1992')]=_0x57f3bb[_0x270a7b('0x2830')][_0x270a7b('0x1909')],_0x57f3bb[_0x270a7b('0xa9c')][_0x270a7b('0x2830')]=_0x57f3bb['customField'][_0x270a7b('0xa8d')]),_0x2e2c14[_0x270a7b('0x18b0')][_0x270a7b('0x5ab')]({'id':_0x57f3bb[_0x270a7b('0xa9c')]['id']},_0x57f3bb[_0x270a7b('0xa9c')])['$promise'][_0x270a7b('0x11bf')](function(_0x4b431d){const _0x3d99ec=_0x270a7b,_0x36d187=_0x36f548()['find'](_0x57f3bb['items'],{'id':_0x4b431d['id']});_0x36d187&&_0x36f548()['merge'](_0x36d187,_0x4b431d),_0x5ded1a[_0x3d99ec('0x2693')]({'title':_0x36f548()[_0x3d99ec('0x22c2')](_0x1e2765)+_0x3d99ec('0x157b'),'msg':_0x36f548()[_0x3d99ec('0x22c2')](_0x1e2765)+_0x3d99ec('0x1a78')}),_0x25b866();})[_0x270a7b('0x151d')](function(_0x4beb5b){const _0x4c469d=_0x270a7b;console[_0x4c469d('0x255')](_0x4beb5b),_0x57f3bb[_0x4c469d('0x120f')]=_0x4beb5b['data']['errors']||[{'message':_0x4beb5b[_0x4c469d('0xaab')](),'type':_0x4c469d('0xbab')}];});}function _0x2b17ac(_0x7999b7){const _0x1caffe=_0x1cf327;_0x57f3bb[_0x1caffe('0x120f')]=[];const _0xbd8142=_0x10350d[_0x1caffe('0x132b')]()[_0x1caffe('0x134b')]('Are\x20you\x20sure?')['content'](_0x1caffe('0x2155')+_0x1e2765+_0x1caffe('0x1a'))[_0x1caffe('0xb2e')](_0x1caffe('0x13ea')+_0x36f548()['capitalize'](_0x1e2765))['ok']('Delete')['cancel'](_0x1caffe('0x784'))[_0x1caffe('0x1e25')](_0x7999b7);_0x10350d[_0x1caffe('0xb9')](_0xbd8142)['then'](function(){const _0x181050=_0x1caffe;_0x2e2c14[_0x181050('0x18b0')][_0x181050('0x2088')]({'id':_0x57f3bb[_0x181050('0xa9c')]['id']})['$promise'][_0x181050('0x11bf')](function(){const _0x4af0dd=_0x181050;_0x36f548()['remove'](_0x57f3bb[_0x4af0dd('0x22')],{'id':_0x57f3bb[_0x4af0dd('0xa9c')]['id']}),_0x5ded1a[_0x4af0dd('0x2693')]({'title':_0x36f548()[_0x4af0dd('0x22c2')](_0x1e2765)+'\x20properly\x20deleted!','msg':_0x36f548()['capitalize'](_0x1e2765)+'\x20has\x20been\x20deleted!'}),_0x25b866();})['catch'](function(_0x4dbc20){const _0x947553=_0x181050;console[_0x947553('0x255')](_0x4dbc20),_0x57f3bb[_0x947553('0x120f')]=_0x4dbc20[_0x947553('0x4e8')][_0x947553('0x120f')]||[{'message':_0x4dbc20[_0x947553('0xaab')](),'type':_0x947553('0x20f0')}];});},function(){});}function _0x4c49d4(){const _0xa0abbb=_0x1cf327;return _0x57f3bb['item']['variableName']!==undefined?_0x57f3bb[_0xa0abbb('0xa9c')][_0xa0abbb('0x209e')]:_0xa0abbb('0xbc2');}function _0x25b866(){const _0x182e50=_0x1cf327;_0x10350d[_0x182e50('0x237e')]();}}const _0x173981=_0x301bd5;_0x5c15f8['$inject']=[_0x21d0f5('0xcbc'),_0x21d0f5('0x16b9'),'$mdDialog','$document',_0x21d0f5('0xb6b'),_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1'),_0x21d0f5('0x12a5'),_0x21d0f5('0x142d'),_0x21d0f5('0x1150'),_0x21d0f5('0x234c'),_0x21d0f5('0x1d63')];function _0x5c15f8(_0xe01363,_0x4b4057,_0x2a16d9,_0xd68627,_0x19253d,_0x3b275b,_0xf27a44,_0x204447,_0x264568,_0x595559,_0x434a7f,_0x32475d){const _0x3dd2cb=_0x21d0f5,_0x10ea62=this;_0x10ea62[_0x3dd2cb('0x32a')]=_0x595559['getCurrentUser'](),_0x10ea62[_0x3dd2cb('0x17ff')]=_0x3b275b,_0x10ea62[_0x3dd2cb('0x23e1')]=_0xf27a44,_0x10ea62[_0x3dd2cb('0x2834')]=_0x10ea62['setting']['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x10ea62['location']=_0x4b4057[_0x3dd2cb('0x1797')]()+_0x3dd2cb('0x16a1')+_0x4b4057[_0x3dd2cb('0x14ec')](),_0x10ea62['dynamics365Account']=_0x434a7f||_0xe01363['params'][_0x3dd2cb('0x234c')]||{},_0x10ea62[_0x3dd2cb('0x1d63')]=_0x32475d&&_0x32475d[_0x3dd2cb('0x27d2')]==0x1?_0x32475d[_0x3dd2cb('0x19b2')][0x0]:null,_0x10ea62['crudPermissions']=_0x595559[_0x3dd2cb('0x1530')](_0x10ea62[_0x3dd2cb('0x1d63')]?_0x10ea62[_0x3dd2cb('0x1d63')][_0x3dd2cb('0xb25')]:null),_0x10ea62[_0x3dd2cb('0x2c9')]={},_0x10ea62['selectedTab']=_0xe01363['params'][_0x3dd2cb('0x205c')]||0x0,_0x10ea62[_0x3dd2cb('0xb30')]=_0x264568[_0x3dd2cb('0x870')],_0x10ea62['gotoDynamics365Accounts']=_0x3247dd,_0x10ea62[_0x3dd2cb('0x21ec')]=_0xff0f64;function _0x3247dd(){const _0x35b18b=_0x3dd2cb;_0xe01363['go'](_0x35b18b('0x7cc'),{},{'reload':'app.integrations.dynamics365Accounts'});}function _0xff0f64(){const _0x408847=_0x3dd2cb;_0x204447['intDynamics365Account'][_0x408847('0x5ab')]({'id':_0x10ea62[_0x408847('0x234c')]['id']},_0x10ea62[_0x408847('0x234c')])[_0x408847('0x1549')]['then'](function(){const _0x50ea84=_0x408847;_0x264568['success']({'title':'Dynamics365Account\x20updated!','msg':_0x10ea62['dynamics365Account']['name']?_0x10ea62[_0x50ea84('0x234c')][_0x50ea84('0x1909')]+'\x20has\x20been\x20updated!':''});})['catch'](function(_0x1cf7df){const _0x5f12f5=_0x408847;_0x264568['error']({'title':_0x1cf7df[_0x5f12f5('0xff9')]?_0x5f12f5('0x574')+_0x1cf7df[_0x5f12f5('0xff9')]+_0x5f12f5('0xb0b')+_0x1cf7df['statusText']:_0x5f12f5('0xaa4'),'msg':_0x1cf7df[_0x5f12f5('0x4e8')]?JSON[_0x5f12f5('0x3e')](_0x1cf7df[_0x5f12f5('0x4e8')]):_0x1cf7df[_0x5f12f5('0xaab')]()});});}}const _0x16f656=_0x5c15f8;_0x3edbd3['$inject']=[_0x21d0f5('0x1b80'),_0x21d0f5('0xcbc'),'$location',_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0xb6b'),_0x21d0f5('0x142d'),_0x21d0f5('0xe2'),_0x21d0f5('0x7b0'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1'),_0x21d0f5('0xb25')];function _0x3edbd3(_0x52641f,_0x29179d,_0x226b39,_0xa94873,_0x4cff16,_0x1daade,_0x5d3f2a,_0x977b87,_0x5745e5,_0x282eb9,_0x223c75,_0x5b3657,_0xf91681,_0x3eb77a){const _0x1677f9=_0x21d0f5,_0x1091aa=this;_0x1091aa['currentUser']=_0x223c75[_0x1677f9('0x2428')](),_0x1091aa[_0x1677f9('0x120f')]=[],_0x1091aa[_0x1677f9('0x23e1')]=_0xf91681,_0x1091aa[_0x1677f9('0x17ff')]=_0x5b3657,_0x1091aa['crudPermissions']=_0x3eb77a,_0x1091aa['hasModulePermissions']={},_0x1091aa[_0x1677f9('0x2834')]=_0x1091aa['setting']&&_0x1091aa['setting']['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1091aa[_0x1677f9('0x134b')]=_0x1677f9('0x1a0a'),_0x1091aa[_0x1677f9('0x7b0')]=angular[_0x1677f9('0x6fb')](_0x5745e5),_0x1091aa[_0x1677f9('0xe2')]=_0x977b87,_0x1091aa[_0x1677f9('0x14f')]=![];!_0x1091aa[_0x1677f9('0x7b0')]&&(_0x1091aa[_0x1677f9('0x7b0')]={'serverUrl':_0x226b39[_0x1677f9('0x1797')]()+_0x1677f9('0x16a1')+_0x226b39['host']()+(_0x226b39['port']()?':'+_0x226b39[_0x1677f9('0x235b')]():'')},_0x1091aa['title']=_0x1677f9('0x184'),_0x1091aa[_0x1677f9('0x14f')]=!![]);_0x1091aa[_0x1677f9('0xf7c')]=_0x5eeb51,_0x1091aa['saveFreshdeskAccount']=_0xf00a49,_0x1091aa[_0x1677f9('0x21d0')]=_0x2c7a1c,_0x1091aa['getDateFromString']=_0x3d4a2e,_0x1091aa['closeDialog']=_0x345402;function _0x5eeb51(){const _0x3cace4=_0x1677f9;_0x1091aa[_0x3cace4('0x120f')]=[],_0x282eb9[_0x3cace4('0x144e')][_0x3cace4('0x259')](_0x1091aa[_0x3cace4('0x7b0')])['$promise']['then'](function(_0x12a317){const _0x34d452=_0x3cace4;_0x1091aa[_0x34d452('0xe2')]['unshift'](_0x12a317[_0x34d452('0x2866')]()),_0x5d3f2a[_0x34d452('0x2693')]({'title':_0x34d452('0x1539'),'msg':_0x1091aa[_0x34d452('0x7b0')][_0x34d452('0x1909')]?_0x1091aa[_0x34d452('0x7b0')][_0x34d452('0x1909')]+'\x20has\x20been\x20created!':''}),_0x345402(_0x12a317);})[_0x3cace4('0x151d')](function(_0x558be4){const _0x5f109e=_0x3cace4;if(_0x558be4[_0x5f109e('0x4e8')]&&_0x558be4[_0x5f109e('0x4e8')][_0x5f109e('0x120f')]&&_0x558be4['data']['errors'][_0x5f109e('0x1e22')]){_0x1091aa['errors']=_0x558be4[_0x5f109e('0x4e8')]['errors']||[{'message':_0x558be4[_0x5f109e('0xaab')](),'type':_0x5f109e('0xf77')}];for(let _0x42a71b=0x0;_0x42a71b<_0x558be4[_0x5f109e('0x4e8')][_0x5f109e('0x120f')][_0x5f109e('0x1e22')];_0x42a71b+=0x1){_0x5d3f2a[_0x5f109e('0x255')]({'title':_0x558be4[_0x5f109e('0x4e8')][_0x5f109e('0x120f')][_0x42a71b][_0x5f109e('0x19fd')],'msg':_0x558be4['data'][_0x5f109e('0x120f')][_0x42a71b][_0x5f109e('0x1b86')]});}}else _0x5d3f2a[_0x5f109e('0x255')]({'title':_0x558be4['status']?_0x5f109e('0x574')+_0x558be4[_0x5f109e('0xff9')]+'\x20-\x20'+_0x558be4[_0x5f109e('0x212f')]:_0x5f109e('0xf77'),'msg':_0x558be4['data']?JSON['stringify'](_0x558be4[_0x5f109e('0x4e8')][_0x5f109e('0x1b86')]):_0x558be4[_0x5f109e('0xaab')]()});});}function _0xf00a49(){const _0x304c60=_0x1677f9;_0x1091aa[_0x304c60('0x120f')]=[],_0x282eb9['intFreshdeskAccount'][_0x304c60('0x5ab')]({'id':_0x1091aa['freshdeskAccount']['id']},_0x1091aa[_0x304c60('0x7b0')])['$promise'][_0x304c60('0x11bf')](function(_0xaa69e){const _0x186aca=_0x304c60,_0x149ffc=_0x36f548()['find'](_0x1091aa[_0x186aca('0xe2')],{'id':_0xaa69e['id']});_0x149ffc&&_0x36f548()['merge'](_0x149ffc,_0x36f548()[_0x186aca('0x258')](_0xaa69e['toJSON'](),_0x36f548()[_0x186aca('0xe22')](_0x149ffc))),_0x5d3f2a[_0x186aca('0x2693')]({'title':'FreshdeskAccount\x20properly\x20saved!','msg':_0x1091aa[_0x186aca('0x7b0')][_0x186aca('0x1909')]?_0x1091aa[_0x186aca('0x7b0')][_0x186aca('0x1909')]+_0x186aca('0x1a78'):''}),_0x345402(_0xaa69e);})[_0x304c60('0x151d')](function(_0x438408){const _0x3b17ff=_0x304c60;if(_0x438408[_0x3b17ff('0x4e8')]&&_0x438408['data']['errors']&&_0x438408[_0x3b17ff('0x4e8')]['errors'][_0x3b17ff('0x1e22')]){_0x1091aa['errors']=_0x438408['data'][_0x3b17ff('0x120f')]||[{'message':_0x438408[_0x3b17ff('0xaab')](),'type':'api.intFreshdeskAccount.update'}];for(let _0xdf4d80=0x0;_0xdf4d80<_0x438408[_0x3b17ff('0x4e8')][_0x3b17ff('0x120f')][_0x3b17ff('0x1e22')];_0xdf4d80++){_0x5d3f2a[_0x3b17ff('0x255')]({'title':_0x438408[_0x3b17ff('0x4e8')][_0x3b17ff('0x120f')][_0xdf4d80][_0x3b17ff('0x19fd')],'msg':_0x438408[_0x3b17ff('0x4e8')]['errors'][_0xdf4d80]['message']});}}else _0x5d3f2a['error']({'title':_0x438408[_0x3b17ff('0xff9')]?'API:'+_0x438408[_0x3b17ff('0xff9')]+_0x3b17ff('0xb0b')+_0x438408[_0x3b17ff('0x212f')]:_0x3b17ff('0x2097'),'msg':_0x438408[_0x3b17ff('0x4e8')]?JSON[_0x3b17ff('0x3e')](_0x438408['data'][_0x3b17ff('0x1b86')]):_0x438408[_0x3b17ff('0xaab')]()});});}function _0x2c7a1c(_0x5a6e65){const _0x15285e=_0x1677f9;_0x1091aa[_0x15285e('0x120f')]=[];const _0x5e4ab2=_0xa94873[_0x15285e('0x132b')]()['title'](_0x15285e('0x1fa9'))['content'](_0x15285e('0x9f0'))['ariaLabel'](_0x15285e('0x16df'))['ok'](_0x15285e('0x1167'))['cancel'](_0x15285e('0x784'))[_0x15285e('0x1e25')](_0x5a6e65);_0xa94873[_0x15285e('0xb9')](_0x5e4ab2)[_0x15285e('0x11bf')](function(){const _0x591bcb=_0x15285e;_0x282eb9[_0x591bcb('0x144e')][_0x591bcb('0x2088')]({'id':_0x1091aa[_0x591bcb('0x7b0')]['id']})[_0x591bcb('0x1549')][_0x591bcb('0x11bf')](function(){const _0x224ab6=_0x591bcb;_0x36f548()['remove'](_0x1091aa[_0x224ab6('0xe2')],{'id':_0x1091aa[_0x224ab6('0x7b0')]['id']}),_0x5d3f2a[_0x224ab6('0x2693')]({'title':_0x224ab6('0x1588'),'msg':(_0x1091aa[_0x224ab6('0x7b0')]['name']||_0x224ab6('0x7b0'))+'\x20has\x20been\x20deleted!'}),_0x345402(_0x1091aa['freshdeskAccount']);})[_0x591bcb('0x151d')](function(_0x3f387b){const _0x143da4=_0x591bcb;if(_0x3f387b[_0x143da4('0x4e8')]&&_0x3f387b[_0x143da4('0x4e8')][_0x143da4('0x120f')]&&_0x3f387b[_0x143da4('0x4e8')][_0x143da4('0x120f')][_0x143da4('0x1e22')]){_0x1091aa['errors']=_0x3f387b[_0x143da4('0x4e8')]['errors']||[{'message':_0x3f387b[_0x143da4('0xaab')](),'type':_0x143da4('0x2200')}];for(let _0x11c6e8=0x0;_0x11c6e8<_0x3f387b[_0x143da4('0x4e8')][_0x143da4('0x120f')][_0x143da4('0x1e22')];_0x11c6e8++){_0x5d3f2a[_0x143da4('0x255')]({'title':_0x3f387b[_0x143da4('0x4e8')]['errors'][_0x11c6e8]['type'],'msg':_0x3f387b[_0x143da4('0x4e8')][_0x143da4('0x120f')][_0x11c6e8][_0x143da4('0x1b86')]});}}else _0x5d3f2a['error']({'title':_0x3f387b['status']?_0x143da4('0x574')+_0x3f387b[_0x143da4('0xff9')]+_0x143da4('0xb0b')+_0x3f387b['statusText']:_0x143da4('0x2200'),'msg':_0x3f387b[_0x143da4('0x4e8')]?JSON[_0x143da4('0x3e')](_0x3f387b[_0x143da4('0x4e8')][_0x143da4('0x1b86')]):_0x3f387b[_0x143da4('0x1b86')]||_0x3f387b[_0x143da4('0xaab')]()});});},function(){});}function _0x3d4a2e(_0x277597){return _0x277597===null?undefined:new Date(_0x277597);}function _0x345402(_0x3eb6fc){const _0x221d8d=_0x1677f9;_0xa94873[_0x221d8d('0x237e')](_0x3eb6fc);}}const _0x6682a8=_0x3edbd3,_0x23a66a=_0x351988['p']+_0x21d0f5('0x10cf'),_0x35cf26=_0x351988['p']+'src/js/modules/main/apps/integrations/views/freshdeskAccounts/edit/item/dialog.html/dialog.html';_0x1a71e8['$inject']=[_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),_0x21d0f5('0x12a5'),'toasty','Auth'];function _0x1a71e8(_0x4216ee,_0x3144b5,_0x21c0b6,_0x248bd6,_0xb26d3d){const _0x5df310=_0x21d0f5,_0x1e5a70=this;_0x1e5a70[_0x5df310('0x32a')]=_0xb26d3d[_0x5df310('0x2428')](),_0x1e5a70[_0x5df310('0x7b0')]={},_0x1e5a70[_0x5df310('0x1d3')]={},_0x1e5a70[_0x5df310('0x2766')]=[],_0x1e5a70['selectedFreshdeskConfiguration']=-0x1,_0x1e5a70[_0x5df310('0xb25')],_0x1e5a70[_0x5df310('0x286f')]=_0x15eefe,_0x1e5a70['getFreshdeskConfiguration']=_0x55ed02,_0x1e5a70[_0x5df310('0x2179')]=_0x335f7f,_0x1e5a70[_0x5df310('0x8eb')]=_0x3e54af,_0x1e5a70[_0x5df310('0xd11')]=[],_0x1e5a70[_0x5df310('0x974')]=_0x3a78cf,_0x21c0b6[_0x5df310('0x1d73')][_0x5df310('0xbaa')]({'nolimit':!![],'sort':_0x5df310('0x1909')})[_0x5df310('0x1549')][_0x5df310('0x11bf')](function(_0x2ca681){const _0x20d0d2=_0x5df310;_0x1e5a70[_0x20d0d2('0x2763')]=_0x2ca681[_0x20d0d2('0x19b2')]?_0x2ca681['rows']:[];})[_0x5df310('0x151d')](function(_0x1be0a9){const _0x198d20=_0x5df310;_0x248bd6[_0x198d20('0x255')]({'title':_0x1be0a9[_0x198d20('0xff9')]?_0x198d20('0x574')+_0x1be0a9[_0x198d20('0xff9')]+_0x198d20('0xb0b')+_0x1be0a9[_0x198d20('0x212f')]:_0x198d20('0x24ee'),'msg':_0x1be0a9[_0x198d20('0x4e8')]?JSON[_0x198d20('0x3e')](_0x1be0a9[_0x198d20('0x4e8')]):_0x1be0a9[_0x198d20('0xaab')]()});});function _0x3a78cf(){const _0x31b612=_0x5df310;_0x21c0b6[_0x31b612('0x10fa')][_0x31b612('0x12c4')]({'id':_0x1e5a70[_0x31b612('0x1d3')]['id'],'ids':_0x1e5a70[_0x31b612('0xd11')]})[_0x31b612('0x1549')][_0x31b612('0x11bf')](function(){const _0x100275=_0x31b612;_0x248bd6[_0x100275('0x2693')]({'title':'Tags\x20set!','msg':_0x100275('0x49')});})[_0x31b612('0x151d')](function(_0x38e4fd){const _0x27fdf7=_0x31b612;_0x248bd6[_0x27fdf7('0x255')]({'title':_0x38e4fd[_0x27fdf7('0xff9')]?'API:'+_0x38e4fd[_0x27fdf7('0xff9')]+'\x20-\x20'+_0x38e4fd['statusText']:'SYSTEM:ADDTAGS','msg':_0x38e4fd[_0x27fdf7('0x4e8')]?JSON[_0x27fdf7('0x3e')](_0x38e4fd[_0x27fdf7('0x4e8')]):_0x38e4fd[_0x27fdf7('0xaab')]()});});}function _0x15eefe(_0x394542,_0x33f24e){const _0x3322cb=_0x5df310;_0x1e5a70[_0x3322cb('0x7b0')]=_0x394542,_0x1e5a70['crudPermissions']=typeof _0x33f24e!==_0x3322cb('0x13e9')?_0x33f24e:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x21c0b6[_0x3322cb('0x144e')]['getConfigurations']({'id':_0x1e5a70[_0x3322cb('0x7b0')]['id'],'sort':_0x3322cb('0x1c74')})[_0x3322cb('0x1549')]['then'](function(_0x5acc55){const _0x49ff25=_0x3322cb;return _0x1e5a70[_0x49ff25('0x2766')]=_0x5acc55[_0x49ff25('0x19b2')]?_0x5acc55[_0x49ff25('0x19b2')]:[],_0x1e5a70['configurations'][_0x49ff25('0x1e22')]&&_0x1e5a70[_0x49ff25('0x1cf9')](0x0),_0x21c0b6[_0x49ff25('0xb0')][_0x49ff25('0xbaa')]({'nolimit':!![],'sort':_0x49ff25('0x1909')})[_0x49ff25('0x1549')];})[_0x3322cb('0x11bf')](function(_0x535034){const _0x16ac9e=_0x3322cb;_0x1e5a70[_0x16ac9e('0x1700')]=_0x535034['rows']?_0x535034[_0x16ac9e('0x19b2')]:[],_0x1e5a70[_0x16ac9e('0x90')]=_0x36f548()['keyBy'](_0x1e5a70['variables'],'id');})[_0x3322cb('0x151d')](function(_0x5b702a){const _0x3a415b=_0x3322cb;_0x248bd6['error']({'title':_0x5b702a[_0x3a415b('0xff9')]?_0x3a415b('0x574')+_0x5b702a[_0x3a415b('0xff9')]+_0x3a415b('0xb0b')+_0x5b702a[_0x3a415b('0x212f')]:_0x3a415b('0x2752'),'msg':_0x5b702a[_0x3a415b('0x4e8')]?JSON['stringify'](_0x5b702a[_0x3a415b('0x4e8')]):_0x5b702a[_0x3a415b('0xaab')]()});});}function _0x55ed02(_0x2f24ad){const _0x43e1f9=_0x5df310;_0x1e5a70[_0x43e1f9('0x1d3')]=_0x1e5a70['configurations'][_0x2f24ad],_0x1e5a70[_0x43e1f9('0x392')]=_0x2f24ad,_0x21c0b6['intFreshdeskConfiguration'][_0x43e1f9('0xace')]({'id':_0x1e5a70[_0x43e1f9('0x1d3')]['id']})[_0x43e1f9('0x1549')][_0x43e1f9('0x11bf')](function(_0x195764){const _0xe21fd9=_0x43e1f9;return _0x1e5a70['subjects']=_0x195764[_0xe21fd9('0x19b2')]?_0x195764['rows']:[],_0x21c0b6[_0xe21fd9('0x10fa')][_0xe21fd9('0x20e8')]({'id':_0x1e5a70['freshdeskConfiguration']['id']})['$promise'];})[_0x43e1f9('0x11bf')](function(_0x184ec2){const _0x270575=_0x43e1f9;return _0x1e5a70['descriptions']=_0x184ec2[_0x270575('0x19b2')]?_0x184ec2[_0x270575('0x19b2')]:[],_0x21c0b6[_0x270575('0x10fa')][_0x270575('0x8ff')]({'id':_0x1e5a70[_0x270575('0x1d3')]['id']})['$promise'];})['then'](function(_0x5be688){const _0x461048=_0x43e1f9;_0x1e5a70['fields']=_0x5be688[_0x461048('0x19b2')]?_0x5be688['rows']:[];})[_0x43e1f9('0x151d')](function(_0x32e074){const _0x4a6f48=_0x43e1f9;_0x248bd6[_0x4a6f48('0x255')]({'title':_0x32e074[_0x4a6f48('0xff9')]?_0x4a6f48('0x574')+_0x32e074[_0x4a6f48('0xff9')]+_0x4a6f48('0xb0b')+_0x32e074[_0x4a6f48('0x212f')]:_0x4a6f48('0x1023'),'msg':_0x32e074[_0x4a6f48('0x4e8')]?JSON[_0x4a6f48('0x3e')](_0x32e074[_0x4a6f48('0x4e8')]):_0x32e074['toString']()});}),_0x21c0b6[_0x43e1f9('0x10fa')]['getTags']({'id':_0x1e5a70[_0x43e1f9('0x1d3')]['id']})[_0x43e1f9('0x1549')]['then'](function(_0x3123de){const _0x2d7574=_0x43e1f9;_0x1e5a70[_0x2d7574('0xd11')]=_0x3123de[_0x2d7574('0x19b2')]?_0x36f548()[_0x2d7574('0x2171')](_0x3123de['rows'],'id'):[];})[_0x43e1f9('0x151d')](function(_0x1bacd0){const _0x40bd6c=_0x43e1f9;_0x248bd6['error']({'title':_0x1bacd0[_0x40bd6c('0xff9')]?_0x40bd6c('0x574')+_0x1bacd0[_0x40bd6c('0xff9')]+'\x20-\x20'+_0x1bacd0[_0x40bd6c('0x212f')]:_0x40bd6c('0x24ee'),'msg':_0x1bacd0[_0x40bd6c('0x4e8')]?JSON['stringify'](_0x1bacd0[_0x40bd6c('0x4e8')]):_0x1bacd0['toString']()});});}function _0x335f7f(_0x5a001b,_0x536bb6){const _0x3e21db=_0x5df310;_0x4216ee[_0x3e21db('0xb9')]({'controller':_0x3e21db('0x7'),'controllerAs':'vm','templateUrl':_0x23a66a,'parent':angular['element'](_0x3144b5['body']),'targetEvent':_0x5a001b,'clickOutsideToClose':!![],'locals':{'freshdeskConfiguration':_0x536bb6,'configurations':_0x1e5a70[_0x3e21db('0x2766')],'license':null,'setting':null,'crudPermissions':_0x1e5a70[_0x3e21db('0xb25')]}})[_0x3e21db('0xa9b')](function(){const _0x33c6d8=_0x3e21db;_0x1e5a70[_0x33c6d8('0x1cf9')](0x0);});}function _0x3e54af(_0x3fb959,_0x3504c0){const _0x4a203b=_0x5df310,_0x98f728=_0x4216ee['confirm']()[_0x4a203b('0x134b')](_0x4a203b('0x1971'))[_0x4a203b('0x1d03')](_0x4a203b('0x2061')+(_0x3504c0[_0x4a203b('0x1909')]||_0x4a203b('0x1d3'))+_0x4a203b('0x1c78')+_0x4a203b('0x1a'))[_0x4a203b('0xb2e')]('delete\x20freshdeskConfiguration')[_0x4a203b('0x1e25')](_0x3fb959)['ok']('OK')[_0x4a203b('0x26c9')]('CANCEL');_0x4216ee[_0x4a203b('0xb9')](_0x98f728)[_0x4a203b('0x11bf')](function(){const _0x462d44=_0x4a203b;_0x21c0b6['intFreshdeskConfiguration']['delete']({'id':_0x3504c0['id']})[_0x462d44('0x1549')][_0x462d44('0x11bf')](function(){const _0x5d528d=_0x462d44;_0x36f548()[_0x5d528d('0x14a5')](_0x1e5a70['configurations'],{'id':_0x3504c0['id']}),_0x248bd6[_0x5d528d('0x2693')]({'title':_0x5d528d('0x17fa'),'msg':_0x3504c0[_0x5d528d('0x1909')]?_0x3504c0[_0x5d528d('0x1909')]+_0x5d528d('0x433'):''});})['catch'](function(_0x522ddc){const _0x49e2fb=_0x462d44;_0x248bd6[_0x49e2fb('0x255')]({'title':_0x522ddc[_0x49e2fb('0xff9')]?_0x49e2fb('0x574')+_0x522ddc[_0x49e2fb('0xff9')]+_0x49e2fb('0xb0b')+_0x522ddc[_0x49e2fb('0x212f')]:'SYSTEM:DELETECONFIGURATION','msg':_0x522ddc[_0x49e2fb('0x4e8')]?JSON['stringify'](_0x522ddc[_0x49e2fb('0x4e8')]):_0x522ddc[_0x49e2fb('0xaab')]()});})[_0x462d44('0xa9b')](function(){const _0x126bfd=_0x462d44;_0x1e5a70[_0x126bfd('0x1cf9')](0x0);});},function(){const _0x458e97=_0x4a203b;console[_0x458e97('0xc78')]('CANCEL');});}_0x1e5a70['selectedSubjects']=[],_0x1e5a70['createOrEditSubject']=_0x8f4a24,_0x1e5a70[_0x5df310('0x14ae')]=_0x569d0c,_0x1e5a70[_0x5df310('0x1ab')]=_0x359110;function _0x8f4a24(_0x31f0dc,_0x36457a){const _0x4a5315=_0x5df310;_0x4216ee[_0x4a5315('0xb9')]({'controller':_0x4a5315('0x2813'),'controllerAs':'vm','templateUrl':_0x35cf26,'parent':angular[_0x4a5315('0x1e73')](_0x3144b5[_0x4a5315('0x1d2')]),'targetEvent':_0x31f0dc,'clickOutsideToClose':!![],'locals':{'type':_0x4a5315('0x20eb'),'item':_0x36457a,'items':_0x1e5a70[_0x4a5315('0x1318')],'configuration':_0x1e5a70[_0x4a5315('0x1d3')],'account':_0x1e5a70[_0x4a5315('0x7b0')],'license':null,'setting':null,'crudPermissions':_0x1e5a70['crudPermissions']}});}function _0x313fb2(_0x38e8b8){const _0x3f6009=_0x5df310;_0x21c0b6['intFreshdeskField'][_0x3f6009('0x2088')]({'id':_0x38e8b8['id']})['$promise'][_0x3f6009('0x11bf')](function(){const _0x29015b=_0x3f6009;_0x36f548()[_0x29015b('0x14a5')](_0x1e5a70[_0x29015b('0x1318')],{'id':_0x38e8b8['id']}),_0x248bd6[_0x29015b('0x2693')]({'title':_0x29015b('0x1845'),'msg':_0x29015b('0x4c1')});})['catch'](function(_0x229b2c){const _0x4bd2e9=_0x3f6009;_0x248bd6[_0x4bd2e9('0x255')]({'title':_0x229b2c['status']?_0x4bd2e9('0x574')+_0x229b2c[_0x4bd2e9('0xff9')]+'\x20-\x20'+_0x229b2c[_0x4bd2e9('0x212f')]:_0x4bd2e9('0xc27'),'msg':_0x229b2c[_0x4bd2e9('0x4e8')]?JSON['stringify'](_0x229b2c[_0x4bd2e9('0x4e8')]):_0x229b2c[_0x4bd2e9('0xaab')]()});});}function _0x569d0c(_0x1ce8b8,_0x1e0996){const _0x362b50=_0x5df310,_0x9273fb=_0x4216ee[_0x362b50('0x132b')]()[_0x362b50('0x134b')](_0x362b50('0x98e'))['htmlContent']('Subject'+_0x362b50('0x1a'))[_0x362b50('0xb2e')](_0x362b50('0x259c'))[_0x362b50('0x1e25')](_0x1ce8b8)['ok']('OK')[_0x362b50('0x26c9')]('CANCEL');_0x4216ee['show'](_0x9273fb)[_0x362b50('0x11bf')](function(){_0x313fb2(_0x1e0996);},function(){const _0x1597dc=_0x362b50;console[_0x1597dc('0xc78')](_0x1597dc('0x772'));});}function _0x359110(_0x46ea5e){const _0x3eed7b=_0x5df310,_0x36c941=_0x4216ee[_0x3eed7b('0x132b')]()[_0x3eed7b('0x134b')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20subjects?')[_0x3eed7b('0x1d03')](_0x3eed7b('0x2061')+_0x1e5a70[_0x3eed7b('0x1151')][_0x3eed7b('0x1e22')]+'\x20selected'+_0x3eed7b('0x1a'))[_0x3eed7b('0xb2e')](_0x3eed7b('0x1c7c'))[_0x3eed7b('0x1e25')](_0x46ea5e)['ok']('OK')[_0x3eed7b('0x26c9')](_0x3eed7b('0x772'));_0x4216ee[_0x3eed7b('0xb9')](_0x36c941)[_0x3eed7b('0x11bf')](function(){const _0xe638bb=_0x3eed7b;_0x1e5a70[_0xe638bb('0x1151')][_0xe638bb('0x1f88')](function(_0x2936ec){_0x313fb2(_0x2936ec);}),_0x1e5a70[_0xe638bb('0x1151')]=[];});}_0x1e5a70['selectedDescriptions']=[],_0x1e5a70[_0x5df310('0x25fe')]=_0x25cd2c,_0x1e5a70[_0x5df310('0x183b')]=_0x32bfe8,_0x1e5a70['deleteSelectedDescriptions']=_0x488334;function _0x25cd2c(_0x41a09b,_0x2c7f84){const _0x383405=_0x5df310;_0x4216ee['show']({'controller':_0x383405('0x2813'),'controllerAs':'vm','templateUrl':_0x35cf26,'parent':angular['element'](_0x3144b5[_0x383405('0x1d2')]),'targetEvent':_0x41a09b,'clickOutsideToClose':!![],'locals':{'type':_0x383405('0x1659'),'item':_0x2c7f84,'items':_0x1e5a70[_0x383405('0xe12')],'configuration':_0x1e5a70[_0x383405('0x1d3')],'account':_0x1e5a70[_0x383405('0x7b0')],'license':null,'setting':null,'crudPermissions':_0x1e5a70['crudPermissions']}});}function _0x21f2d7(_0x38e5bc){const _0x27ee14=_0x5df310;_0x21c0b6['intFreshdeskField'][_0x27ee14('0x2088')]({'id':_0x38e5bc['id']})[_0x27ee14('0x1549')][_0x27ee14('0x11bf')](function(){const _0x582a91=_0x27ee14;_0x36f548()['remove'](_0x1e5a70[_0x582a91('0xe12')],{'id':_0x38e5bc['id']}),_0x248bd6[_0x582a91('0x2693')]({'title':'Description\x20deleted!','msg':_0x582a91('0x40e')});})[_0x27ee14('0x151d')](function(_0x378040){const _0x14b5fe=_0x27ee14;_0x248bd6['error']({'title':_0x378040[_0x14b5fe('0xff9')]?_0x14b5fe('0x574')+_0x378040[_0x14b5fe('0xff9')]+_0x14b5fe('0xb0b')+_0x378040[_0x14b5fe('0x212f')]:_0x14b5fe('0xc27'),'msg':_0x378040[_0x14b5fe('0x4e8')]?JSON[_0x14b5fe('0x3e')](_0x378040[_0x14b5fe('0x4e8')]):_0x378040[_0x14b5fe('0xaab')]()});});}function _0x32bfe8(_0x289972,_0x499fa9){const _0x298233=_0x5df310,_0x35a79a=_0x4216ee[_0x298233('0x132b')]()[_0x298233('0x134b')](_0x298233('0x46b'))[_0x298233('0x1d03')](_0x298233('0x48a')+_0x298233('0x1a'))[_0x298233('0xb2e')](_0x298233('0xd32'))[_0x298233('0x1e25')](_0x289972)['ok']('OK')['cancel']('CANCEL');_0x4216ee['show'](_0x35a79a)['then'](function(){_0x21f2d7(_0x499fa9);},function(){const _0x59ab67=_0x298233;console[_0x59ab67('0xc78')](_0x59ab67('0x772'));});}function _0x488334(_0xa77902){const _0x184410=_0x5df310,_0x4004ae=_0x4216ee['confirm']()[_0x184410('0x134b')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20descriptions?')[_0x184410('0x1d03')](_0x184410('0x2061')+_0x1e5a70[_0x184410('0x73f')][_0x184410('0x1e22')]+_0x184410('0xac6')+_0x184410('0x1a'))[_0x184410('0xb2e')]('delete\x20descriptions')[_0x184410('0x1e25')](_0xa77902)['ok']('OK')[_0x184410('0x26c9')](_0x184410('0x772'));_0x4216ee[_0x184410('0xb9')](_0x4004ae)[_0x184410('0x11bf')](function(){const _0x377544=_0x184410;_0x1e5a70[_0x377544('0x73f')][_0x377544('0x1f88')](function(_0x4a90a6){_0x21f2d7(_0x4a90a6);}),_0x1e5a70[_0x377544('0x73f')]=[];});}_0x1e5a70[_0x5df310('0xfea')]=[],_0x1e5a70['createOrEditField']=_0x4e31df,_0x1e5a70[_0x5df310('0x21c9')]=_0x4f3971,_0x1e5a70[_0x5df310('0xd20')]=_0x287464;function _0x4e31df(_0x248e6e,_0x33e020){const _0x2b38be=_0x5df310;_0x4216ee['show']({'controller':_0x2b38be('0x2813'),'controllerAs':'vm','templateUrl':_0x35cf26,'parent':angular['element'](_0x3144b5[_0x2b38be('0x1d2')]),'targetEvent':_0x248e6e,'clickOutsideToClose':!![],'locals':{'type':_0x2b38be('0x485'),'item':_0x33e020,'items':_0x1e5a70['fields'],'configuration':_0x1e5a70['freshdeskConfiguration'],'account':_0x1e5a70['freshdeskAccount'],'license':null,'setting':null,'crudPermissions':_0x1e5a70['crudPermissions']}});}function _0x5741ff(_0x52565c){const _0x496747=_0x5df310;_0x21c0b6['intFreshdeskField']['delete']({'id':_0x52565c['id']})['$promise'][_0x496747('0x11bf')](function(){const _0x5abf2b=_0x496747;_0x36f548()[_0x5abf2b('0x14a5')](_0x1e5a70[_0x5abf2b('0x1067')],{'id':_0x52565c['id']}),_0x248bd6[_0x5abf2b('0x2693')]({'title':_0x5abf2b('0x4da'),'msg':_0x5abf2b('0x264f')});})[_0x496747('0x151d')](function(_0x68f0da){const _0x1a9c7d=_0x496747;_0x248bd6[_0x1a9c7d('0x255')]({'title':_0x68f0da[_0x1a9c7d('0xff9')]?'API:'+_0x68f0da[_0x1a9c7d('0xff9')]+_0x1a9c7d('0xb0b')+_0x68f0da[_0x1a9c7d('0x212f')]:_0x1a9c7d('0xc27'),'msg':_0x68f0da['data']?JSON[_0x1a9c7d('0x3e')](_0x68f0da[_0x1a9c7d('0x4e8')]):_0x68f0da[_0x1a9c7d('0xaab')]()});});}function _0x4f3971(_0x511e1e,_0x311e40){const _0x414911=_0x5df310,_0x5754c9=_0x4216ee[_0x414911('0x132b')]()[_0x414911('0x134b')](_0x414911('0x915'))[_0x414911('0x1d03')](_0x414911('0xdc8')+_0x414911('0x1a'))[_0x414911('0xb2e')](_0x414911('0xc52'))[_0x414911('0x1e25')](_0x511e1e)['ok']('OK')[_0x414911('0x26c9')](_0x414911('0x772'));_0x4216ee[_0x414911('0xb9')](_0x5754c9)['then'](function(){_0x5741ff(_0x311e40);},function(){const _0x12fd11=_0x414911;console[_0x12fd11('0xc78')](_0x12fd11('0x772'));});}function _0x287464(_0x2b79f8){const _0xcd0d19=_0x5df310,_0x27a76b=_0x4216ee[_0xcd0d19('0x132b')]()[_0xcd0d19('0x134b')](_0xcd0d19('0x25cc'))[_0xcd0d19('0x1d03')](_0xcd0d19('0x2061')+_0x1e5a70[_0xcd0d19('0xfea')][_0xcd0d19('0x1e22')]+'\x20selected'+_0xcd0d19('0x1a'))['ariaLabel']('delete\x20fields')[_0xcd0d19('0x1e25')](_0x2b79f8)['ok']('OK')[_0xcd0d19('0x26c9')](_0xcd0d19('0x772'));_0x4216ee[_0xcd0d19('0xb9')](_0x27a76b)['then'](function(){const _0x4d8032=_0xcd0d19;_0x1e5a70[_0x4d8032('0xfea')]['forEach'](function(_0x229f05){_0x5741ff(_0x229f05);}),_0x1e5a70[_0x4d8032('0xfea')]=[];});}}const _0x217dbe=_0x1a71e8;_0x40be4e[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),'$state','$location','$mdDialog','$q',_0x21d0f5('0xb6b'),_0x21d0f5('0x142d'),_0x21d0f5('0x2766'),_0x21d0f5('0x1d3'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1'),'crudPermissions'];function _0x40be4e(_0x26f393,_0x24a624,_0xd51062,_0x3877fa,_0x48bf2a,_0x328eac,_0x2d7d28,_0x15234e,_0x352698,_0x464964,_0x18bc7a,_0x3a31c7,_0x2cd350,_0x513bfa){const _0x50878b=_0x21d0f5,_0x1990d3=this;_0x1990d3[_0x50878b('0x32a')]=_0x18bc7a[_0x50878b('0x2428')](),_0x1990d3[_0x50878b('0x120f')]=[],_0x1990d3['setting']=_0x2cd350,_0x1990d3['license']=_0x3a31c7,_0x1990d3[_0x50878b('0xb25')]=_0x513bfa,_0x1990d3[_0x50878b('0x2c9')]={},_0x1990d3[_0x50878b('0x2834')]=_0x1990d3[_0x50878b('0x23e1')]&&_0x1990d3[_0x50878b('0x23e1')][_0x50878b('0x1d4')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1990d3['title']='INTEGRATIONS.EDIT_FRESHDESKCONFIGURATION',_0x1990d3[_0x50878b('0x1d3')]=angular['copy'](_0x352698),_0x1990d3[_0x50878b('0x2766')]=_0x15234e,_0x1990d3[_0x50878b('0x19ae')]=![];!_0x1990d3[_0x50878b('0x1d3')]&&(_0x1990d3[_0x50878b('0x1d3')]={'channel':_0x50878b('0x1bc3'),'type':_0x50878b('0x18a2')},_0x1990d3[_0x50878b('0x134b')]=_0x50878b('0x1582'),_0x1990d3[_0x50878b('0x19ae')]=!![]);_0x1990d3['addNewFreshdeskConfiguration']=_0x5ad2f4,_0x1990d3[_0x50878b('0x1924')]=_0x5dc01e,_0x1990d3[_0x50878b('0x8eb')]=_0xc581b8,_0x1990d3[_0x50878b('0x1bd1')]=_0x32e1e8,_0x1990d3[_0x50878b('0xc4e')]=_0x50b6db;function _0x5ad2f4(){const _0x3c23f8=_0x50878b;_0x1990d3[_0x3c23f8('0x120f')]=[],_0x464964['intFreshdeskAccount'][_0x3c23f8('0x157f')]({'id':_0x24a624[_0x3c23f8('0x1ab3')]['id']},_0x1990d3[_0x3c23f8('0x1d3')])[_0x3c23f8('0x1549')][_0x3c23f8('0x11bf')](function(_0x59fbc1){const _0x1ca69a=_0x3c23f8;_0x1990d3[_0x1ca69a('0x2766')][_0x1ca69a('0x880')](_0x59fbc1[_0x1ca69a('0x2866')]()),_0x2d7d28[_0x1ca69a('0x2693')]({'title':'FreshdeskConfiguration\x20properly\x20created','msg':_0x1990d3[_0x1ca69a('0x1d3')][_0x1ca69a('0x1909')]?_0x1990d3[_0x1ca69a('0x1d3')][_0x1ca69a('0x1909')]+_0x1ca69a('0x7fb'):''}),_0x50b6db(_0x59fbc1);})['catch'](function(_0x4455cd){const _0x215a40=_0x3c23f8;if(_0x4455cd[_0x215a40('0x4e8')]&&_0x4455cd[_0x215a40('0x4e8')]['errors']&&_0x4455cd[_0x215a40('0x4e8')]['errors']['length']){_0x1990d3['errors']=_0x4455cd['data'][_0x215a40('0x120f')]||[{'message':_0x4455cd[_0x215a40('0xaab')](),'type':_0x215a40('0x25ee')}];for(let _0x464ff7=0x0;_0x464ff7<_0x4455cd['data'][_0x215a40('0x120f')][_0x215a40('0x1e22')];_0x464ff7+=0x1){_0x2d7d28[_0x215a40('0x255')]({'title':_0x4455cd[_0x215a40('0x4e8')][_0x215a40('0x120f')][_0x464ff7][_0x215a40('0x19fd')],'msg':_0x4455cd[_0x215a40('0x4e8')]['errors'][_0x464ff7][_0x215a40('0x1b86')]});}}else _0x2d7d28['error']({'title':_0x4455cd[_0x215a40('0xff9')]?'API:'+_0x4455cd['status']+_0x215a40('0xb0b')+_0x4455cd[_0x215a40('0x212f')]:_0x215a40('0x25ee'),'msg':_0x4455cd[_0x215a40('0x4e8')]?JSON[_0x215a40('0x3e')](_0x4455cd['data'][_0x215a40('0x1b86')]):_0x4455cd['toString']()});});}function _0x5dc01e(){const _0x51a8f7=_0x50878b;_0x1990d3[_0x51a8f7('0x120f')]=[],_0x464964[_0x51a8f7('0x10fa')][_0x51a8f7('0x5ab')]({'id':_0x1990d3[_0x51a8f7('0x1d3')]['id']},_0x1990d3[_0x51a8f7('0x1d3')])[_0x51a8f7('0x1549')]['then'](function(_0x13c771){const _0x4868e5=_0x51a8f7,_0x3fd8ac=_0x36f548()['find'](_0x1990d3[_0x4868e5('0x2766')],{'id':_0x13c771['id']});_0x3fd8ac&&_0x36f548()[_0x4868e5('0x47b')](_0x3fd8ac,_0x36f548()[_0x4868e5('0x258')](_0x13c771['toJSON'](),_0x36f548()[_0x4868e5('0xe22')](_0x3fd8ac))),_0x2d7d28[_0x4868e5('0x2693')]({'title':'FreshdeskConfiguration\x20properly\x20saved!','msg':_0x1990d3[_0x4868e5('0x1d3')][_0x4868e5('0x1909')]?_0x1990d3[_0x4868e5('0x1d3')][_0x4868e5('0x1909')]+_0x4868e5('0x1a78'):''}),_0x50b6db(_0x13c771);})['catch'](function(_0x556265){const _0x357ce2=_0x51a8f7;if(_0x556265['data']&&_0x556265[_0x357ce2('0x4e8')]['errors']&&_0x556265[_0x357ce2('0x4e8')][_0x357ce2('0x120f')][_0x357ce2('0x1e22')]){_0x1990d3[_0x357ce2('0x120f')]=_0x556265['data'][_0x357ce2('0x120f')]||[{'message':_0x556265[_0x357ce2('0xaab')](),'type':'api.intFreshdeskConfiguration.update'}];for(let _0x102826=0x0;_0x102826<_0x556265['data']['errors']['length'];_0x102826++){_0x2d7d28['error']({'title':_0x556265[_0x357ce2('0x4e8')][_0x357ce2('0x120f')][_0x102826][_0x357ce2('0x19fd')],'msg':_0x556265[_0x357ce2('0x4e8')][_0x357ce2('0x120f')][_0x102826][_0x357ce2('0x1b86')]});}}else _0x2d7d28[_0x357ce2('0x255')]({'title':_0x556265[_0x357ce2('0xff9')]?_0x357ce2('0x574')+_0x556265['status']+'\x20-\x20'+_0x556265['statusText']:'api.intFreshdeskConfiguration.update','msg':_0x556265[_0x357ce2('0x4e8')]?JSON[_0x357ce2('0x3e')](_0x556265[_0x357ce2('0x4e8')][_0x357ce2('0x1b86')]):_0x556265[_0x357ce2('0xaab')]()});});}function _0xc581b8(_0x4ae595){const _0x2720ef=_0x50878b;_0x1990d3['errors']=[];const _0x58386c=_0x3877fa['confirm']()['title']('Are\x20you\x20sure?')[_0x2720ef('0x252a')](_0x2720ef('0x1418'))[_0x2720ef('0xb2e')](_0x2720ef('0x232b'))['ok'](_0x2720ef('0x1167'))['cancel'](_0x2720ef('0x784'))['targetEvent'](_0x4ae595);_0x3877fa[_0x2720ef('0xb9')](_0x58386c)[_0x2720ef('0x11bf')](function(){const _0xfd74af=_0x2720ef;_0x464964['intFreshdeskConfiguration'][_0xfd74af('0x2088')]({'id':_0x1990d3['freshdeskConfiguration']['id']})[_0xfd74af('0x1549')][_0xfd74af('0x11bf')](function(){const _0x2e91e4=_0xfd74af;_0x36f548()[_0x2e91e4('0x14a5')](_0x1990d3[_0x2e91e4('0x2766')],{'id':_0x1990d3[_0x2e91e4('0x1d3')]['id']}),_0x2d7d28[_0x2e91e4('0x2693')]({'title':_0x2e91e4('0x1b50'),'msg':(_0x1990d3[_0x2e91e4('0x1d3')][_0x2e91e4('0x1909')]||'freshdeskConfiguration')+_0x2e91e4('0x433')}),_0x50b6db(_0x1990d3[_0x2e91e4('0x1d3')]);})[_0xfd74af('0x151d')](function(_0x25cd58){const _0x531319=_0xfd74af;if(_0x25cd58[_0x531319('0x4e8')]&&_0x25cd58['data']['errors']&&_0x25cd58[_0x531319('0x4e8')][_0x531319('0x120f')]['length']){_0x1990d3['errors']=_0x25cd58['data'][_0x531319('0x120f')]||[{'message':_0x25cd58[_0x531319('0xaab')](),'type':_0x531319('0x1c1a')}];for(let _0x50304d=0x0;_0x50304d<_0x25cd58['data'][_0x531319('0x120f')][_0x531319('0x1e22')];_0x50304d++){_0x2d7d28[_0x531319('0x255')]({'title':_0x25cd58['data'][_0x531319('0x120f')][_0x50304d][_0x531319('0x19fd')],'msg':_0x25cd58[_0x531319('0x4e8')][_0x531319('0x120f')][_0x50304d]['message']});}}else _0x2d7d28['error']({'title':_0x25cd58[_0x531319('0xff9')]?_0x531319('0x574')+_0x25cd58['status']+_0x531319('0xb0b')+_0x25cd58[_0x531319('0x212f')]:_0x531319('0x1c1a'),'msg':_0x25cd58[_0x531319('0x4e8')]?JSON['stringify'](_0x25cd58[_0x531319('0x4e8')][_0x531319('0x1b86')]):_0x25cd58[_0x531319('0x1b86')]||_0x25cd58[_0x531319('0xaab')]()});});},function(){});}function _0x32e1e8(_0xf22113){return _0xf22113===null?undefined:new Date(_0xf22113);}function _0x50b6db(_0x286d39){_0x3877fa['hide'](_0x286d39);}}const _0x3c460c=_0x40be4e;_0x324c41[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0xcbc'),_0x21d0f5('0x16b9'),'$mdDialog',_0x21d0f5('0x142d'),_0x21d0f5('0xc09'),_0x21d0f5('0x22'),_0x21d0f5('0xa9c'),_0x21d0f5('0x2565'),_0x21d0f5('0x19fd'),_0x21d0f5('0x12a5'),'Auth',_0x21d0f5('0xb25')];function _0x324c41(_0x293346,_0x53c1f,_0xf75410,_0x1d38ce,_0x4cba68,_0xd6d35d,_0x34280c,_0x1340ce,_0x30d43,_0x243a86,_0x37373c,_0x9ed8fd,_0x23c2f7){const _0x372fe1=_0x21d0f5,_0x4314a1=this;_0x4314a1['currentUser']=_0x9ed8fd[_0x372fe1('0x2428')](),_0x4314a1[_0x372fe1('0x120f')]=[],_0x4314a1[_0x372fe1('0x134b')]=_0x372fe1('0x1e35')+_0x36f548()[_0x372fe1('0x1a31')](_0x243a86),_0x4314a1[_0x372fe1('0xa9c')]=angular[_0x372fe1('0x6fb')](_0x1340ce),_0x4314a1[_0x372fe1('0x22')]=_0x34280c,_0x4314a1[_0x372fe1('0x19fd')]=_0x243a86,_0x4314a1[_0x372fe1('0xb25')]=_0x23c2f7,_0x4314a1['newItem']=![];!_0x4314a1[_0x372fe1('0xa9c')]&&(_0x4314a1[_0x372fe1('0xa9c')]={'type':_0x372fe1('0x2380')},_0x4314a1['item'][_0x36f548()[_0x372fe1('0x22c2')](_0x243a86)+'Id']=_0xd6d35d['id'],_0x4314a1[_0x372fe1('0x134b')]=_0x372fe1('0x26b9')+_0x36f548()[_0x372fe1('0x1a31')](_0x243a86),_0x4314a1[_0x372fe1('0x1f63')]=!![]);_0x4314a1[_0x372fe1('0x2bc')]=_0x53f550,_0x4314a1[_0x372fe1('0x265e')]=_0x4884d9,_0x4314a1[_0x372fe1('0x2639')]=_0x2d0a96,_0x4314a1[_0x372fe1('0x6e1')]=_0x363f8d,_0x4314a1[_0x372fe1('0xc4e')]=_0x3ad970,_0x37373c[_0x372fe1('0xb0')][_0x372fe1('0xbaa')]({'nolimit':!![]})[_0x372fe1('0x1549')]['then'](function(_0x4be6fc){const _0x1b0068=_0x372fe1;return _0x4314a1[_0x1b0068('0x1700')]=_0x4be6fc[_0x1b0068('0x19b2')]?_0x4be6fc[_0x1b0068('0x19b2')]:[],_0x37373c['voiceAgentReport']['describe']()[_0x1b0068('0x1549')];})[_0x372fe1('0x11bf')](function(_0x4cb6da){const _0x1df346=_0x372fe1;return _0x4314a1[_0x1df346('0x1720')]=_0x36f548()['difference'](_0x36f548()['keys'](_0x4cb6da),[_0x1df346('0x1549'),_0x1df346('0x1619'),'createdAt','updatedAt',_0x1df346('0x14b4')]),_0x4314a1['voiceAgentReportColumns'][_0x1df346('0x105d')](_0x1df346('0xbf8')),_0x37373c[_0x1df346('0x14fc')][_0x1df346('0x19a5')]()[_0x1df346('0x1549')];})['then'](function(_0x35585d){const _0x1af67d=_0x372fe1;_0x4314a1[_0x1af67d('0x77c')]=_0x36f548()[_0x1af67d('0x1271')](_0x36f548()['keys'](_0x35585d),[_0x1af67d('0x1549'),_0x1af67d('0x1619'),_0x1af67d('0x1779'),_0x1af67d('0x14ea'),_0x1af67d('0x14b4')]),_0x4314a1[_0x1af67d('0x77c')][_0x1af67d('0x105d')](_0x1af67d('0xbf8'));})['catch'](function(_0x5b8781){const _0xb9dd6b=_0x372fe1;_0x4cba68[_0xb9dd6b('0x255')]({'title':_0x5b8781['status']?_0xb9dd6b('0x574')+_0x5b8781[_0xb9dd6b('0xff9')]+_0xb9dd6b('0xb0b')+_0x5b8781[_0xb9dd6b('0x212f')]:_0xb9dd6b('0x2010'),'msg':_0x5b8781[_0xb9dd6b('0x4e8')]?JSON[_0xb9dd6b('0x3e')](_0x5b8781[_0xb9dd6b('0x4e8')]):_0x5b8781[_0xb9dd6b('0xaab')]()});}),_0x37373c['intFreshdeskAccount']['getFields']({'id':_0x30d43['id'],'ticketType':_0xd6d35d['ticketType']?_0xd6d35d[_0x372fe1('0x1bd2')]:undefined})[_0x372fe1('0x1549')][_0x372fe1('0x11bf')](function(_0x281a95){const _0x3bf616=_0x372fe1;_0x4314a1[_0x3bf616('0xf69')]=!![],_0x4314a1[_0x3bf616('0x1067')]=_0x281a95['rows']?_0x281a95[_0x3bf616('0x19b2')]:[],_0x4314a1[_0x3bf616('0xa9c')][_0x3bf616('0x223a')]&&(_0x4314a1['customField']=_0x36f548()[_0x3bf616('0x1ad4')](_0x4314a1[_0x3bf616('0x1067')],{'id':_0x4314a1['item'][_0x3bf616('0x223a')]}));})[_0x372fe1('0x151d')](function(_0x4d0903){const _0x19754b=_0x372fe1;_0x4314a1['accountConnected']=![],console[_0x19754b('0x255')](_0x4d0903);});function _0x53f550(){const _0x5467b5=_0x372fe1;_0x4314a1[_0x5467b5('0x120f')]=[],_0x4314a1['customField']&&(_0x4314a1[_0x5467b5('0xa9c')][_0x5467b5('0x223a')]=_0x4314a1[_0x5467b5('0x2830')]['id'],_0x4314a1[_0x5467b5('0xa9c')][_0x5467b5('0x1992')]=_0x4314a1[_0x5467b5('0x2830')]['name'],_0x4314a1[_0x5467b5('0xa9c')][_0x5467b5('0x2830')]=_0x4314a1['customField'][_0x5467b5('0xa8d')]),_0x37373c['intFreshdeskField'][_0x5467b5('0x259')](_0x4314a1[_0x5467b5('0xa9c')])[_0x5467b5('0x1549')]['then'](function(_0x37b87f){const _0x496857=_0x5467b5;_0x4314a1['items']['unshift'](_0x37b87f),_0x4cba68[_0x496857('0x2693')]({'title':_0x36f548()['capitalize'](_0x243a86)+_0x496857('0x1c0e'),'msg':_0x36f548()['capitalize'](_0x243a86)+_0x496857('0x7fb')}),_0x3ad970();})[_0x5467b5('0x151d')](function(_0x363dd4){const _0x121ddb=_0x5467b5;console[_0x121ddb('0x255')](_0x363dd4),_0x4314a1['errors']=_0x363dd4[_0x121ddb('0x4e8')][_0x121ddb('0x120f')]||[{'message':_0x363dd4[_0x121ddb('0xaab')](),'type':_0x121ddb('0x20a1')}];});}function _0x4884d9(){const _0x5a953b=_0x372fe1;_0x4314a1[_0x5a953b('0x120f')]=[],_0x4314a1[_0x5a953b('0x2830')]&&(_0x4314a1[_0x5a953b('0xa9c')][_0x5a953b('0x223a')]=_0x4314a1[_0x5a953b('0x2830')]['id'],_0x4314a1['item'][_0x5a953b('0x1992')]=_0x4314a1[_0x5a953b('0x2830')][_0x5a953b('0x1909')],_0x4314a1[_0x5a953b('0xa9c')][_0x5a953b('0x2830')]=_0x4314a1[_0x5a953b('0x2830')][_0x5a953b('0xa8d')]),_0x37373c[_0x5a953b('0x26ae')][_0x5a953b('0x5ab')]({'id':_0x4314a1[_0x5a953b('0xa9c')]['id']},_0x4314a1[_0x5a953b('0xa9c')])[_0x5a953b('0x1549')][_0x5a953b('0x11bf')](function(_0x299284){const _0x22595e=_0x5a953b,_0x21b0c3=_0x36f548()[_0x22595e('0x1ad4')](_0x4314a1[_0x22595e('0x22')],{'id':_0x299284['id']});_0x21b0c3&&_0x36f548()[_0x22595e('0x47b')](_0x21b0c3,_0x299284),_0x4cba68[_0x22595e('0x2693')]({'title':_0x36f548()[_0x22595e('0x22c2')](_0x243a86)+'\x20properly\x20saved!','msg':_0x36f548()[_0x22595e('0x22c2')](_0x243a86)+_0x22595e('0x1a78')}),_0x3ad970();})[_0x5a953b('0x151d')](function(_0x684577){const _0x26e407=_0x5a953b;console[_0x26e407('0x255')](_0x684577),_0x4314a1[_0x26e407('0x120f')]=_0x684577['data'][_0x26e407('0x120f')]||[{'message':_0x684577[_0x26e407('0xaab')](),'type':'api.intItem.update'}];});}function _0x2d0a96(_0x24d36d){const _0x42665a=_0x372fe1;_0x4314a1[_0x42665a('0x120f')]=[];const _0x4ac5f3=_0x1d38ce[_0x42665a('0x132b')]()['title'](_0x42665a('0x1fa9'))[_0x42665a('0x252a')](_0x42665a('0x2155')+_0x243a86+_0x42665a('0x1a'))['ariaLabel'](_0x42665a('0x13ea')+_0x36f548()['capitalize'](_0x243a86))['ok'](_0x42665a('0x1167'))[_0x42665a('0x26c9')](_0x42665a('0x784'))[_0x42665a('0x1e25')](_0x24d36d);_0x1d38ce['show'](_0x4ac5f3)[_0x42665a('0x11bf')](function(){const _0x1b6fcb=_0x42665a;_0x37373c[_0x1b6fcb('0x26ae')][_0x1b6fcb('0x2088')]({'id':_0x4314a1[_0x1b6fcb('0xa9c')]['id']})[_0x1b6fcb('0x1549')][_0x1b6fcb('0x11bf')](function(){const _0x4f3a45=_0x1b6fcb;_0x36f548()[_0x4f3a45('0x14a5')](_0x4314a1[_0x4f3a45('0x22')],{'id':_0x4314a1[_0x4f3a45('0xa9c')]['id']}),_0x4cba68[_0x4f3a45('0x2693')]({'title':_0x36f548()[_0x4f3a45('0x22c2')](_0x243a86)+_0x4f3a45('0x12bc'),'msg':_0x36f548()[_0x4f3a45('0x22c2')](_0x243a86)+_0x4f3a45('0x433')}),_0x3ad970();})['catch'](function(_0x34a1bc){const _0x55935f=_0x1b6fcb;console[_0x55935f('0x255')](_0x34a1bc),_0x4314a1[_0x55935f('0x120f')]=_0x34a1bc[_0x55935f('0x4e8')][_0x55935f('0x120f')]||[{'message':_0x34a1bc[_0x55935f('0xaab')](),'type':'api.item.delete'}];});},function(){});}function _0x363f8d(){const _0x2e43f2=_0x372fe1;return _0x4314a1[_0x2e43f2('0xa9c')]['variableName']!==undefined?_0x4314a1['item'][_0x2e43f2('0x209e')]:_0x2e43f2('0xbc2');}function _0x3ad970(){const _0x5bdbca=_0x372fe1;_0x1d38ce[_0x5bdbca('0x237e')]();}}const _0x347ed=_0x324c41;_0x5e8510[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0xcbc'),'$location','$mdDialog',_0x21d0f5('0x1b30'),_0x21d0f5('0xb6b'),_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1'),'api','toasty','Auth',_0x21d0f5('0x7b0'),_0x21d0f5('0x1d63')];function _0x5e8510(_0xc9fe7,_0x1cfce4,_0x13e31e,_0x3fe199,_0x150331,_0x3ad00f,_0x12f8f8,_0x204697,_0x301366,_0x360a08,_0x2ea166,_0x198b12){const _0x39361b=_0x21d0f5,_0x144e4a=this;_0x144e4a[_0x39361b('0x32a')]=_0x360a08[_0x39361b('0x2428')](),_0x144e4a[_0x39361b('0x17ff')]=_0x3ad00f,_0x144e4a[_0x39361b('0x23e1')]=_0x12f8f8,_0x144e4a[_0x39361b('0x2834')]=_0x144e4a[_0x39361b('0x23e1')][_0x39361b('0x1d4')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x144e4a['location']=_0x1cfce4[_0x39361b('0x1797')]()+'://'+_0x1cfce4[_0x39361b('0x14ec')](),_0x144e4a[_0x39361b('0x7b0')]=_0x2ea166||_0xc9fe7[_0x39361b('0x1ab3')][_0x39361b('0x7b0')]||{},_0x144e4a[_0x39361b('0x1d63')]=_0x198b12&&_0x198b12['count']==0x1?_0x198b12['rows'][0x0]:null,_0x144e4a[_0x39361b('0xb25')]=_0x360a08[_0x39361b('0x1530')](_0x144e4a[_0x39361b('0x1d63')]?_0x144e4a[_0x39361b('0x1d63')]['crudPermissions']:null),_0x144e4a[_0x39361b('0x2c9')]={},_0x144e4a['selectedTab']=_0xc9fe7[_0x39361b('0x1ab3')][_0x39361b('0x205c')]||0x0,_0x144e4a[_0x39361b('0xb30')]=_0x301366[_0x39361b('0x870')],_0x144e4a[_0x39361b('0x12fa')]=_0x4269d0,_0x144e4a[_0x39361b('0x279b')]=_0x162a95;function _0x4269d0(){const _0x55ab30=_0x39361b;_0xc9fe7['go'](_0x55ab30('0x1c02'),{},{'reload':'app.integrations.freshdeskAccounts'});}function _0x162a95(){const _0x5a3a1a=_0x39361b;_0x204697[_0x5a3a1a('0x144e')][_0x5a3a1a('0x5ab')]({'id':_0x144e4a[_0x5a3a1a('0x7b0')]['id']},_0x144e4a[_0x5a3a1a('0x7b0')])[_0x5a3a1a('0x1549')][_0x5a3a1a('0x11bf')](function(){const _0x5c8873=_0x5a3a1a;_0x301366['success']({'title':'FreshdeskAccount\x20updated!','msg':_0x144e4a['freshdeskAccount']['name']?_0x144e4a['freshdeskAccount'][_0x5c8873('0x1909')]+_0x5c8873('0xd7'):''});})[_0x5a3a1a('0x151d')](function(_0x19aa42){const _0x593d6c=_0x5a3a1a;_0x301366[_0x593d6c('0x255')]({'title':_0x19aa42[_0x593d6c('0xff9')]?_0x593d6c('0x574')+_0x19aa42[_0x593d6c('0xff9')]+_0x593d6c('0xb0b')+_0x19aa42['statusText']:_0x593d6c('0x21bb'),'msg':_0x19aa42['data']?JSON[_0x593d6c('0x3e')](_0x19aa42[_0x593d6c('0x4e8')]):_0x19aa42[_0x593d6c('0xaab')]()});});}}const _0x5ee398=_0x5e8510,_0x49356b=_0x351988['p']+'src/js/modules/main/apps/integrations/views/freshdeskAccounts/create/dialog.html/dialog.html';_0x295c2e[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0x2143'),_0x21d0f5('0xcbc'),_0x21d0f5('0x18fe'),'$mdDialog','$document',_0x21d0f5('0x17f5'),_0x21d0f5('0xb6b'),_0x21d0f5('0xe2'),_0x21d0f5('0x25bc'),_0x21d0f5('0x1d63'),_0x21d0f5('0x12a5'),_0x21d0f5('0xda9'),_0x21d0f5('0x142d'),_0x21d0f5('0x1150'),'license',_0x21d0f5('0x23e1')];function _0x295c2e(_0x1ccb7f,_0x4eeee3,_0x584dc0,_0x39d3ae,_0x2046c2,_0x233b4d,_0x3ec9c4,_0x1de34b,_0x1fe88a,_0x270698,_0x3f99fb,_0x1dec06,_0x4ba060,_0x2eccb8,_0x511b32,_0x23429b,_0x14c239){const _0x4833ad=_0x21d0f5,_0x14523c=this;_0x14523c[_0x4833ad('0x17ff')]=_0x23429b,_0x14523c['setting']=_0x14c239,_0x14523c['currentUser']=_0x511b32[_0x4833ad('0x2428')](),_0x14523c['freshdeskAccounts']=_0x1fe88a||{'count':0x0,'rows':[]},_0x14523c[_0x4833ad('0x25bc')]=_0x270698,_0x14523c[_0x4833ad('0x1d63')]=_0x3f99fb&&_0x3f99fb[_0x4833ad('0x27d2')]==0x1?_0x3f99fb[_0x4833ad('0x19b2')][0x0]:null,_0x14523c[_0x4833ad('0xb25')]=_0x511b32[_0x4833ad('0x1530')](_0x14523c['userProfileSection']?_0x14523c[_0x4833ad('0x1d63')]['crudPermissions']:null),_0x14523c[_0x4833ad('0x13e8')]='freshdeskAccounts',_0x14523c[_0x4833ad('0x724')]='',_0x14523c[_0x4833ad('0xe3c')]=null,_0x14523c[_0x4833ad('0x2701')]=[],_0x14523c['query']={'fields':_0x4833ad('0x1a6b'),'limit':0xa,'page':0x1},_0x14523c['editstate']=_0x11261e,_0x14523c[_0x4833ad('0x776')]=_0x7f5c1f,_0x14523c[_0x4833ad('0x549')]=_0x1bc5ad,_0x14523c[_0x4833ad('0x2693')]=_0x30091a,_0x14523c['getFreshdeskAccounts']=_0x2e9d83,_0x14523c['createOrEditFreshdeskAccount']=_0x332f98,_0x14523c[_0x4833ad('0x21d0')]=_0x19b13b,_0x14523c['exportSelectedFreshdeskAccounts']=_0x290cfa,_0x14523c['deleteSelectedFreshdeskAccounts']=_0x5c026e,_0x14523c[_0x4833ad('0xfd6')]=_0x4dccb2,_0x14523c['selectAllFreshdeskAccounts']=_0x58c6e2;function _0x11261e(_0x24fb8e){const _0x50ee60=_0x4833ad;_0x584dc0['go'](_0x50ee60('0x1de5'),{'id':_0x24fb8e['id'],'freshdeskAccount':_0x24fb8e,'crudPermissions':_0x14523c[_0x50ee60('0xb25')]});}function _0x7f5c1f(_0x3eae01){const _0x2dcf82=_0x4833ad;return _0x1dec06['intFreshdeskAccount'][_0x2dcf82('0x8ff')]({'id':_0x3eae01['id'],'test':!![]})[_0x2dcf82('0x1549')][_0x2dcf82('0x11bf')](function(){const _0x495bd7=_0x2dcf82;_0x2eccb8[_0x495bd7('0x2693')]({'title':_0x495bd7('0x16bc'),'msg':_0x495bd7('0x1b13')});})[_0x2dcf82('0x151d')](function(_0x1a87ad){const _0x41b367=_0x2dcf82;_0x2eccb8[_0x41b367('0x255')]({'title':_0x41b367('0x16bc'),'msg':_0x1a87ad[_0x41b367('0x4e8')]?_0x1a87ad[_0x41b367('0x4e8')]['message']?_0x1a87ad[_0x41b367('0x4e8')][_0x41b367('0x1b86')]:JSON[_0x41b367('0x3e')](_0x1a87ad[_0x41b367('0x4e8')]):_0x1a87ad['toString']()});});}function _0x1bc5ad(_0x4a13e0,_0x249b31){const _0x3efb24=_0x4833ad,_0x29a948=_0x2046c2[_0x3efb24('0x132b')]()[_0x3efb24('0x134b')](_0x3efb24('0x1796')+_0x36f548()['startCase'](_0x3efb24('0x7b0'))+'?')[_0x3efb24('0x1d03')](''+(_0x4a13e0[_0x3efb24('0x1909')]||_0x3efb24('0x7b0'))+_0x3efb24('0x1c78')+_0x3efb24('0x1a'))[_0x3efb24('0xb2e')](_0x3efb24('0x1521'))[_0x3efb24('0x1e25')](_0x249b31)['ok']('OK')[_0x3efb24('0x26c9')](_0x3efb24('0x772'));_0x2046c2[_0x3efb24('0xb9')](_0x29a948)['then'](function(){_0x19b13b(_0x4a13e0);},function(){const _0x54dd5b=_0x3efb24;console[_0x54dd5b('0xc78')]('CANCEL');});}let _0x25f109=!![],_0x31caee=0x1;_0x1ccb7f[_0x4833ad('0x2087')](_0x4833ad('0x842'),function(_0x1eb444,_0x11582e){const _0x2c7421=_0x4833ad;_0x25f109?_0x3ec9c4(function(){_0x25f109=![];}):(!_0x11582e&&(_0x31caee=_0x14523c[_0x2c7421('0x1f2a')][_0x2c7421('0x1c2')]),_0x1eb444!==_0x11582e&&(_0x14523c['query'][_0x2c7421('0x1c2')]=0x1),!_0x1eb444&&(_0x14523c[_0x2c7421('0x1f2a')][_0x2c7421('0x1c2')]=_0x31caee),_0x14523c[_0x2c7421('0x5e1')]());});function _0x30091a(_0x30c29b){const _0x3b1c2c=_0x4833ad;_0x14523c[_0x3b1c2c('0xe2')]=_0x30c29b||{'count':0x0,'rows':[]};}function _0x2e9d83(){const _0x44dd8a=_0x4833ad;_0x14523c[_0x44dd8a('0x1f2a')]['offset']=(_0x14523c[_0x44dd8a('0x1f2a')][_0x44dd8a('0x1c2')]-0x1)*_0x14523c[_0x44dd8a('0x1f2a')]['limit'],_0x511b32['hasRole']('admin')?_0x14523c[_0x44dd8a('0x13f')]=_0x1dec06[_0x44dd8a('0x144e')][_0x44dd8a('0xbaa')](_0x14523c[_0x44dd8a('0x1f2a')],_0x30091a)[_0x44dd8a('0x1549')]:(_0x14523c[_0x44dd8a('0x1f2a')]['id']=_0x14523c['userProfile']['id'],_0x14523c[_0x44dd8a('0x1f2a')][_0x44dd8a('0xe6')]='FreshdeskAccounts',_0x14523c[_0x44dd8a('0x13f')]=_0x1dec06['userProfile']['getResources'](_0x14523c[_0x44dd8a('0x1f2a')],_0x30091a)['$promise']);}function _0x332f98(_0x757a31,_0x2ee3f8){const _0x502d2d=_0x4833ad;_0x2046c2[_0x502d2d('0xb9')]({'controller':_0x502d2d('0x1d60'),'controllerAs':'vm','templateUrl':_0x49356b,'parent':angular[_0x502d2d('0x1e73')](_0x233b4d['body']),'targetEvent':_0x757a31,'clickOutsideToClose':!![],'locals':{'freshdeskAccount':_0x2ee3f8,'freshdeskAccounts':_0x14523c[_0x502d2d('0xe2')][_0x502d2d('0x19b2')],'license':_0x14523c[_0x502d2d('0x17ff')],'setting':_0x14523c['setting'],'crudPermissions':_0x14523c[_0x502d2d('0xb25')]}});}function _0x19b13b(_0x518a48){const _0x5f18a1=_0x4833ad;_0x1dec06[_0x5f18a1('0x144e')]['delete']({'id':_0x518a48['id']})[_0x5f18a1('0x1549')][_0x5f18a1('0x11bf')](function(){const _0x408566=_0x5f18a1;_0x36f548()['remove'](_0x14523c[_0x408566('0xe2')][_0x408566('0x19b2')],{'id':_0x518a48['id']}),_0x14523c[_0x408566('0xe2')]['count']-=0x1,!_0x14523c[_0x408566('0xe2')][_0x408566('0x19b2')]['length']&&_0x14523c[_0x408566('0x5e1')](),_0x2eccb8[_0x408566('0x2693')]({'title':_0x36f548()[_0x408566('0x13cf')](_0x408566('0x1739'))+_0x408566('0x2113'),'msg':_0x518a48[_0x408566('0x1909')]?_0x518a48['name']+'\x20has\x20been\x20deleted!':''});})['catch'](function(_0x197a52){const _0x207828=_0x5f18a1;if(_0x197a52[_0x207828('0x4e8')]&&_0x197a52[_0x207828('0x4e8')][_0x207828('0x120f')]&&_0x197a52['data']['errors'][_0x207828('0x1e22')]){_0x14523c[_0x207828('0x120f')]=_0x197a52[_0x207828('0x4e8')]['errors']||[{'message':_0x197a52['toString'](),'type':'SYSTEM:DELETEintFreshdeskAccount'}];for(let _0x4f1325=0x0;_0x4f1325<_0x197a52[_0x207828('0x4e8')][_0x207828('0x120f')][_0x207828('0x1e22')];_0x4f1325++){_0x2eccb8['error']({'title':_0x197a52[_0x207828('0x4e8')][_0x207828('0x120f')][_0x4f1325][_0x207828('0x19fd')],'msg':_0x197a52[_0x207828('0x4e8')][_0x207828('0x120f')][_0x4f1325]['message']});}}else _0x2eccb8[_0x207828('0x255')]({'title':_0x197a52[_0x207828('0xff9')]?_0x207828('0x574')+_0x197a52[_0x207828('0xff9')]+_0x207828('0xb0b')+_0x197a52[_0x207828('0x212f')]:_0x207828('0x25b8'),'msg':_0x197a52[_0x207828('0x4e8')]?JSON[_0x207828('0x3e')](_0x197a52['data'][_0x207828('0x1b86')]):_0x197a52[_0x207828('0x1b86')]||_0x197a52['toString']()});});}function _0x290cfa(){const _0x4a14b3=_0x4833ad,_0x404e8d=angular[_0x4a14b3('0x6fb')](_0x14523c[_0x4a14b3('0x2701')]);return _0x14523c[_0x4a14b3('0x2701')]=[],_0x404e8d;}function _0x5c026e(_0x1dd77a){const _0x2dc38d=_0x4833ad,_0x1ad897=_0x2046c2['confirm']()[_0x2dc38d('0x134b')](_0x2dc38d('0x2140'))[_0x2dc38d('0x1d03')](''+_0x14523c[_0x2dc38d('0x2701')]['length']+_0x2dc38d('0xac6')+_0x2dc38d('0x1a'))[_0x2dc38d('0xb2e')]('delete\x20FreshdeskAccounts')[_0x2dc38d('0x1e25')](_0x1dd77a)['ok']('OK')[_0x2dc38d('0x26c9')](_0x2dc38d('0x772'));_0x2046c2['show'](_0x1ad897)['then'](function(){const _0x568aed=_0x2dc38d;_0x14523c[_0x568aed('0x2701')]['forEach'](function(_0x873e5c){_0x19b13b(_0x873e5c);}),_0x14523c[_0x568aed('0x2701')]=[];});}function _0x4dccb2(){const _0x1331c2=_0x4833ad;_0x14523c[_0x1331c2('0x2701')]=[];}function _0x58c6e2(){const _0x42e61f=_0x4833ad;_0x14523c[_0x42e61f('0x2701')]=_0x14523c[_0x42e61f('0xe2')]['rows'];}}const _0x1b9f69=_0x295c2e;_0x3ca9f5[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0xcbc'),_0x21d0f5('0x16b9'),'$mdDialog','$q',_0x21d0f5('0xb6b'),_0x21d0f5('0x142d'),_0x21d0f5('0x1277'),'freshsalesAccount','api',_0x21d0f5('0x1150'),_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1'),_0x21d0f5('0xb25')];function _0x3ca9f5(_0x3614c0,_0x547e97,_0x55f87f,_0x11b07f,_0x11435c,_0x2b6ce9,_0x567c53,_0x4ad401,_0x5e2f5c,_0x273bf6,_0x2a9740,_0xb9723e,_0xe01350,_0x158c81){const _0x1adf35=_0x21d0f5,_0x1cded6=this;_0x1cded6[_0x1adf35('0x32a')]=_0x2a9740[_0x1adf35('0x2428')](),_0x1cded6['errors']=[],_0x1cded6['setting']=_0xe01350,_0x1cded6['license']=_0xb9723e,_0x1cded6[_0x1adf35('0xb25')]=_0x158c81,_0x1cded6[_0x1adf35('0x2c9')]={},_0x1cded6[_0x1adf35('0x2834')]=_0x1cded6[_0x1adf35('0x23e1')]&&_0x1cded6[_0x1adf35('0x23e1')][_0x1adf35('0x1d4')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1cded6[_0x1adf35('0x134b')]=_0x1adf35('0xd55'),_0x1cded6[_0x1adf35('0x124e')]=angular[_0x1adf35('0x6fb')](_0x5e2f5c),_0x1cded6['freshsalesAccounts']=_0x4ad401,_0x1cded6[_0x1adf35('0x759')]=![];!_0x1cded6[_0x1adf35('0x124e')]&&(_0x1cded6['freshsalesAccount']={'serverUrl':_0x55f87f[_0x1adf35('0x1797')]()+_0x1adf35('0x16a1')+_0x55f87f[_0x1adf35('0x14ec')]()+(_0x55f87f['port']()?':'+_0x55f87f[_0x1adf35('0x235b')]():'')},_0x1cded6[_0x1adf35('0x134b')]=_0x1adf35('0x2116'),_0x1cded6[_0x1adf35('0x759')]=!![]);_0x1cded6['addNewFreshsalesAccount']=_0x21fcb0,_0x1cded6[_0x1adf35('0x2e6')]=_0x51b794,_0x1cded6[_0x1adf35('0xdcd')]=_0x4a2b91,_0x1cded6[_0x1adf35('0x1bd1')]=_0x259268,_0x1cded6[_0x1adf35('0xc4e')]=_0x33aef1;function _0x21fcb0(){const _0x4eadbd=_0x1adf35;_0x1cded6[_0x4eadbd('0x120f')]=[],_0x273bf6['intFreshsalesAccount']['save'](_0x1cded6[_0x4eadbd('0x124e')])['$promise']['then'](function(_0x49ac0f){const _0x4d7fec=_0x4eadbd;_0x1cded6[_0x4d7fec('0x1277')]['unshift'](_0x49ac0f[_0x4d7fec('0x2866')]()),_0x567c53['success']({'title':_0x4d7fec('0x84c'),'msg':_0x1cded6[_0x4d7fec('0x124e')][_0x4d7fec('0x1909')]?_0x1cded6['freshsalesAccount'][_0x4d7fec('0x1909')]+_0x4d7fec('0x7fb'):''}),_0x33aef1(_0x49ac0f);})[_0x4eadbd('0x151d')](function(_0x1eb3dd){const _0x5ae77c=_0x4eadbd;if(_0x1eb3dd['data']&&_0x1eb3dd[_0x5ae77c('0x4e8')][_0x5ae77c('0x120f')]&&_0x1eb3dd['data'][_0x5ae77c('0x120f')]['length']){_0x1cded6[_0x5ae77c('0x120f')]=_0x1eb3dd[_0x5ae77c('0x4e8')][_0x5ae77c('0x120f')]||[{'message':_0x1eb3dd['toString'](),'type':'api.intFreshsalesAccount.save'}];for(let _0x5e2ec7=0x0;_0x5e2ec7<_0x1eb3dd[_0x5ae77c('0x4e8')][_0x5ae77c('0x120f')][_0x5ae77c('0x1e22')];_0x5e2ec7+=0x1){_0x567c53[_0x5ae77c('0x255')]({'title':_0x1eb3dd['data'][_0x5ae77c('0x120f')][_0x5e2ec7][_0x5ae77c('0x19fd')],'msg':_0x1eb3dd[_0x5ae77c('0x4e8')]['errors'][_0x5e2ec7][_0x5ae77c('0x1b86')]});}}else _0x567c53[_0x5ae77c('0x255')]({'title':_0x1eb3dd[_0x5ae77c('0xff9')]?_0x5ae77c('0x574')+_0x1eb3dd['status']+_0x5ae77c('0xb0b')+_0x1eb3dd[_0x5ae77c('0x212f')]:_0x5ae77c('0x1c26'),'msg':_0x1eb3dd[_0x5ae77c('0x4e8')]?JSON[_0x5ae77c('0x3e')](_0x1eb3dd['data'][_0x5ae77c('0x1b86')]):_0x1eb3dd[_0x5ae77c('0xaab')]()});});}function _0x51b794(){const _0x4f7047=_0x1adf35;_0x1cded6[_0x4f7047('0x120f')]=[],_0x273bf6['intFreshsalesAccount'][_0x4f7047('0x5ab')]({'id':_0x1cded6[_0x4f7047('0x124e')]['id']},_0x1cded6[_0x4f7047('0x124e')])[_0x4f7047('0x1549')][_0x4f7047('0x11bf')](function(_0x6ce528){const _0x697df8=_0x4f7047,_0x1ef94c=_0x36f548()['find'](_0x1cded6[_0x697df8('0x1277')],{'id':_0x6ce528['id']});_0x1ef94c&&_0x36f548()['merge'](_0x1ef94c,_0x36f548()[_0x697df8('0x258')](_0x6ce528[_0x697df8('0x2866')](),_0x36f548()['keys'](_0x1ef94c))),_0x567c53[_0x697df8('0x2693')]({'title':_0x697df8('0x15e9'),'msg':_0x1cded6[_0x697df8('0x124e')][_0x697df8('0x1909')]?_0x1cded6[_0x697df8('0x124e')][_0x697df8('0x1909')]+_0x697df8('0x1a78'):''}),_0x33aef1(_0x6ce528);})[_0x4f7047('0x151d')](function(_0xd04b18){const _0x1a06e=_0x4f7047;if(_0xd04b18['data']&&_0xd04b18[_0x1a06e('0x4e8')][_0x1a06e('0x120f')]&&_0xd04b18['data'][_0x1a06e('0x120f')][_0x1a06e('0x1e22')]){_0x1cded6['errors']=_0xd04b18[_0x1a06e('0x4e8')]['errors']||[{'message':_0xd04b18[_0x1a06e('0xaab')](),'type':_0x1a06e('0x20a')}];for(let _0xd61e64=0x0;_0xd61e64<_0xd04b18[_0x1a06e('0x4e8')]['errors']['length'];_0xd61e64++){_0x567c53[_0x1a06e('0x255')]({'title':_0xd04b18['data']['errors'][_0xd61e64]['type'],'msg':_0xd04b18[_0x1a06e('0x4e8')][_0x1a06e('0x120f')][_0xd61e64][_0x1a06e('0x1b86')]});}}else _0x567c53[_0x1a06e('0x255')]({'title':_0xd04b18['status']?_0x1a06e('0x574')+_0xd04b18[_0x1a06e('0xff9')]+_0x1a06e('0xb0b')+_0xd04b18[_0x1a06e('0x212f')]:_0x1a06e('0x20a'),'msg':_0xd04b18[_0x1a06e('0x4e8')]?JSON[_0x1a06e('0x3e')](_0xd04b18['data'][_0x1a06e('0x1b86')]):_0xd04b18[_0x1a06e('0xaab')]()});});}function _0x4a2b91(_0x1f8b5d){const _0x46c6ce=_0x1adf35;_0x1cded6[_0x46c6ce('0x120f')]=[];const _0x179b24=_0x11b07f[_0x46c6ce('0x132b')]()['title'](_0x46c6ce('0x1fa9'))[_0x46c6ce('0x252a')](_0x46c6ce('0x271a'))[_0x46c6ce('0xb2e')](_0x46c6ce('0x15e3'))['ok'](_0x46c6ce('0x1167'))['cancel'](_0x46c6ce('0x784'))[_0x46c6ce('0x1e25')](_0x1f8b5d);_0x11b07f[_0x46c6ce('0xb9')](_0x179b24)[_0x46c6ce('0x11bf')](function(){const _0x32890a=_0x46c6ce;_0x273bf6['intFreshsalesAccount'][_0x32890a('0x2088')]({'id':_0x1cded6[_0x32890a('0x124e')]['id']})[_0x32890a('0x1549')][_0x32890a('0x11bf')](function(){const _0x2b7578=_0x32890a;_0x36f548()['remove'](_0x1cded6[_0x2b7578('0x1277')],{'id':_0x1cded6[_0x2b7578('0x124e')]['id']}),_0x567c53[_0x2b7578('0x2693')]({'title':_0x2b7578('0x1fbb'),'msg':(_0x1cded6[_0x2b7578('0x124e')][_0x2b7578('0x1909')]||_0x2b7578('0x124e'))+_0x2b7578('0x433')}),_0x33aef1(_0x1cded6[_0x2b7578('0x124e')]);})[_0x32890a('0x151d')](function(_0x1e1565){const _0x469da7=_0x32890a;if(_0x1e1565[_0x469da7('0x4e8')]&&_0x1e1565[_0x469da7('0x4e8')][_0x469da7('0x120f')]&&_0x1e1565[_0x469da7('0x4e8')][_0x469da7('0x120f')][_0x469da7('0x1e22')]){_0x1cded6['errors']=_0x1e1565[_0x469da7('0x4e8')][_0x469da7('0x120f')]||[{'message':_0x1e1565[_0x469da7('0xaab')](),'type':_0x469da7('0x8ec')}];for(let _0x215675=0x0;_0x215675<_0x1e1565[_0x469da7('0x4e8')][_0x469da7('0x120f')]['length'];_0x215675++){_0x567c53[_0x469da7('0x255')]({'title':_0x1e1565[_0x469da7('0x4e8')][_0x469da7('0x120f')][_0x215675][_0x469da7('0x19fd')],'msg':_0x1e1565[_0x469da7('0x4e8')][_0x469da7('0x120f')][_0x215675][_0x469da7('0x1b86')]});}}else _0x567c53['error']({'title':_0x1e1565['status']?_0x469da7('0x574')+_0x1e1565[_0x469da7('0xff9')]+_0x469da7('0xb0b')+_0x1e1565['statusText']:_0x469da7('0x8ec'),'msg':_0x1e1565[_0x469da7('0x4e8')]?JSON['stringify'](_0x1e1565[_0x469da7('0x4e8')][_0x469da7('0x1b86')]):_0x1e1565['message']||_0x1e1565[_0x469da7('0xaab')]()});});},function(){});}function _0x259268(_0x4499da){return _0x4499da===null?undefined:new Date(_0x4499da);}function _0x33aef1(_0x395d1e){const _0x495301=_0x1adf35;_0x11b07f[_0x495301('0x237e')](_0x395d1e);}}const _0x4909aa=_0x3ca9f5,_0x4a665f=_0x351988['p']+_0x21d0f5('0xd31'),_0x581320=_0x351988['p']+'src/js/modules/main/apps/integrations/views/freshsalesAccounts/edit/item/dialog.html/dialog.html';_0x1873ea[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),_0x21d0f5('0x12a5'),'toasty',_0x21d0f5('0x1150')];function _0x1873ea(_0x4c2441,_0x2f82e0,_0x3ce421,_0xcc7b00,_0x1d37a4){const _0x376166=_0x21d0f5,_0x19a41e=this;_0x19a41e[_0x376166('0x32a')]=_0x1d37a4[_0x376166('0x2428')](),_0x19a41e[_0x376166('0x124e')]={},_0x19a41e[_0x376166('0x130d')]={},_0x19a41e[_0x376166('0x2766')]=[],_0x19a41e[_0x376166('0x24c7')]=-0x1,_0x19a41e[_0x376166('0xb25')],_0x19a41e[_0x376166('0x286f')]=_0x15c0f1,_0x19a41e['getFreshsalesConfiguration']=_0x12b976,_0x19a41e['createOrEditFreshsalesConfiguration']=_0xf40573,_0x19a41e['deleteFreshsalesConfiguration']=_0x2e24b2;function _0x15c0f1(_0x3e303b,_0x195f54){const _0x3c5716=_0x376166;_0x19a41e[_0x3c5716('0x124e')]=_0x3e303b,_0x19a41e['crudPermissions']=typeof _0x195f54!==_0x3c5716('0x13e9')?_0x195f54:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x3ce421[_0x3c5716('0xda4')][_0x3c5716('0x26af')]({'id':_0x19a41e['freshsalesAccount']['id'],'sort':'-updatedAt'})['$promise'][_0x3c5716('0x11bf')](function(_0x4fa590){const _0x26355d=_0x3c5716;return _0x19a41e[_0x26355d('0x2766')]=_0x4fa590['rows']?_0x4fa590[_0x26355d('0x19b2')]:[],_0x19a41e[_0x26355d('0x2766')][_0x26355d('0x1e22')]&&_0x19a41e[_0x26355d('0x1034')](0x0),_0x3ce421[_0x26355d('0xb0')][_0x26355d('0xbaa')]({'nolimit':!![],'sort':_0x26355d('0x1909')})[_0x26355d('0x1549')];})[_0x3c5716('0x11bf')](function(_0x3327c7){const _0x1b8ab9=_0x3c5716;_0x19a41e[_0x1b8ab9('0x1700')]=_0x3327c7[_0x1b8ab9('0x19b2')]?_0x3327c7[_0x1b8ab9('0x19b2')]:[],_0x19a41e[_0x1b8ab9('0x90')]=_0x36f548()[_0x1b8ab9('0x2130')](_0x19a41e[_0x1b8ab9('0x1700')],'id');})[_0x3c5716('0x151d')](function(_0x437bed){const _0x44f6b9=_0x3c5716;_0xcc7b00[_0x44f6b9('0x255')]({'title':_0x437bed[_0x44f6b9('0xff9')]?_0x44f6b9('0x574')+_0x437bed[_0x44f6b9('0xff9')]+_0x44f6b9('0xb0b')+_0x437bed['statusText']:_0x44f6b9('0x2752'),'msg':_0x437bed[_0x44f6b9('0x4e8')]?JSON[_0x44f6b9('0x3e')](_0x437bed[_0x44f6b9('0x4e8')]):_0x437bed[_0x44f6b9('0xaab')]()});});}function _0x12b976(_0x29875a){const _0x3e1112=_0x376166;_0x19a41e[_0x3e1112('0x130d')]=_0x19a41e[_0x3e1112('0x2766')][_0x29875a],_0x19a41e[_0x3e1112('0x24c7')]=_0x29875a,_0x3ce421[_0x3e1112('0xf5d')]['getSubjects']({'id':_0x19a41e[_0x3e1112('0x130d')]['id']})[_0x3e1112('0x1549')][_0x3e1112('0x11bf')](function(_0x3017e6){const _0x5ae110=_0x3e1112;return _0x19a41e[_0x5ae110('0x1318')]=_0x3017e6[_0x5ae110('0x19b2')]?_0x3017e6[_0x5ae110('0x19b2')]:[],_0x3ce421[_0x5ae110('0xf5d')][_0x5ae110('0x20e8')]({'id':_0x19a41e['freshsalesConfiguration']['id']})['$promise'];})[_0x3e1112('0x11bf')](function(_0x572198){const _0x5ab44c=_0x3e1112;return _0x19a41e['descriptions']=_0x572198[_0x5ab44c('0x19b2')]?_0x572198[_0x5ab44c('0x19b2')]:[],_0x3ce421[_0x5ab44c('0xf5d')]['getFields']({'id':_0x19a41e[_0x5ab44c('0x130d')]['id']})[_0x5ab44c('0x1549')];})[_0x3e1112('0x11bf')](function(_0x31720d){const _0x5d17f6=_0x3e1112;_0x19a41e[_0x5d17f6('0x1067')]=_0x31720d['rows']?_0x31720d[_0x5d17f6('0x19b2')]:[];})[_0x3e1112('0x151d')](function(_0x3763e8){const _0x1fc652=_0x3e1112;_0xcc7b00[_0x1fc652('0x255')]({'title':_0x3763e8[_0x1fc652('0xff9')]?_0x1fc652('0x574')+_0x3763e8[_0x1fc652('0xff9')]+_0x1fc652('0xb0b')+_0x3763e8[_0x1fc652('0x212f')]:_0x1fc652('0x1023'),'msg':_0x3763e8['data']?JSON['stringify'](_0x3763e8['data']):_0x3763e8[_0x1fc652('0xaab')]()});});}function _0xf40573(_0x216817,_0x54f825){const _0x2c6020=_0x376166;_0x4c2441['show']({'controller':'CreateOrEditFreshsalesConfigurationDialogController','controllerAs':'vm','templateUrl':_0x4a665f,'parent':angular['element'](_0x2f82e0[_0x2c6020('0x1d2')]),'targetEvent':_0x216817,'clickOutsideToClose':!![],'locals':{'freshsalesConfiguration':_0x54f825,'configurations':_0x19a41e['configurations'],'license':null,'setting':null,'crudPermissions':_0x19a41e[_0x2c6020('0xb25')]}})[_0x2c6020('0xa9b')](function(){const _0x35cac2=_0x2c6020;_0x19a41e[_0x35cac2('0x1034')](0x0);});}function _0x2e24b2(_0x9eed41,_0x5c2689){const _0x2ec6e1=_0x376166,_0x1a0e59=_0x4c2441[_0x2ec6e1('0x132b')]()['title'](_0x2ec6e1('0x1018'))[_0x2ec6e1('0x1d03')](_0x2ec6e1('0x2061')+(_0x5c2689['name']||_0x2ec6e1('0x130d'))+''+_0x2ec6e1('0x1a'))['ariaLabel'](_0x2ec6e1('0xe4e'))[_0x2ec6e1('0x1e25')](_0x9eed41)['ok']('OK')[_0x2ec6e1('0x26c9')]('CANCEL');_0x4c2441[_0x2ec6e1('0xb9')](_0x1a0e59)['then'](function(){const _0x29bdb4=_0x2ec6e1;_0x3ce421[_0x29bdb4('0xf5d')]['delete']({'id':_0x5c2689['id']})[_0x29bdb4('0x1549')][_0x29bdb4('0x11bf')](function(){const _0x3552cf=_0x29bdb4;_0x36f548()[_0x3552cf('0x14a5')](_0x19a41e[_0x3552cf('0x2766')],{'id':_0x5c2689['id']}),_0xcc7b00[_0x3552cf('0x2693')]({'title':'FreshsalesConfiguration\x20deleted!','msg':_0x5c2689['name']?_0x5c2689[_0x3552cf('0x1909')]+_0x3552cf('0x433'):''});})['catch'](function(_0x465663){const _0x5ce408=_0x29bdb4;_0xcc7b00['error']({'title':_0x465663['status']?_0x5ce408('0x574')+_0x465663[_0x5ce408('0xff9')]+_0x5ce408('0xb0b')+_0x465663[_0x5ce408('0x212f')]:_0x5ce408('0x15ea'),'msg':_0x465663[_0x5ce408('0x4e8')]?JSON['stringify'](_0x465663[_0x5ce408('0x4e8')]):_0x465663[_0x5ce408('0xaab')]()});})[_0x29bdb4('0xa9b')](function(){const _0x393e06=_0x29bdb4;_0x19a41e[_0x393e06('0x1034')](0x0);});},function(){const _0xf7da6a=_0x2ec6e1;console[_0xf7da6a('0xc78')](_0xf7da6a('0x772'));});}_0x19a41e['selectedSubjects']=[],_0x19a41e[_0x376166('0x1ec8')]=_0x25ff60,_0x19a41e[_0x376166('0x14ae')]=_0x23a429,_0x19a41e[_0x376166('0x1ab')]=_0x7958bf;function _0x25ff60(_0x400d13,_0x353918){const _0x4c2bdf=_0x376166;_0x4c2441[_0x4c2bdf('0xb9')]({'controller':_0x4c2bdf('0x13c7'),'controllerAs':'vm','templateUrl':_0x581320,'parent':angular[_0x4c2bdf('0x1e73')](_0x2f82e0[_0x4c2bdf('0x1d2')]),'targetEvent':_0x400d13,'clickOutsideToClose':!![],'locals':{'type':_0x4c2bdf('0x20eb'),'item':_0x353918,'items':_0x19a41e[_0x4c2bdf('0x1318')],'configuration':_0x19a41e[_0x4c2bdf('0x130d')],'account':_0x19a41e[_0x4c2bdf('0x124e')],'license':null,'setting':null,'crudPermissions':_0x19a41e[_0x4c2bdf('0xb25')]}});}function _0x3f69ea(_0x57718f){const _0x2bfcf2=_0x376166;_0x3ce421['intFreshsalesField']['delete']({'id':_0x57718f['id']})[_0x2bfcf2('0x1549')][_0x2bfcf2('0x11bf')](function(){const _0x1ebb33=_0x2bfcf2;_0x36f548()[_0x1ebb33('0x14a5')](_0x19a41e['subjects'],{'id':_0x57718f['id']}),_0xcc7b00[_0x1ebb33('0x2693')]({'title':'Subject\x20deleted!','msg':_0x1ebb33('0x4c1')});})[_0x2bfcf2('0x151d')](function(_0x1ff0a8){const _0x38cb9c=_0x2bfcf2;_0xcc7b00[_0x38cb9c('0x255')]({'title':_0x1ff0a8[_0x38cb9c('0xff9')]?_0x38cb9c('0x574')+_0x1ff0a8[_0x38cb9c('0xff9')]+'\x20-\x20'+_0x1ff0a8[_0x38cb9c('0x212f')]:_0x38cb9c('0xc27'),'msg':_0x1ff0a8[_0x38cb9c('0x4e8')]?JSON[_0x38cb9c('0x3e')](_0x1ff0a8[_0x38cb9c('0x4e8')]):_0x1ff0a8[_0x38cb9c('0xaab')]()});});}function _0x23a429(_0x31c3c0,_0x6df83){const _0x591026=_0x376166,_0x2ca35c=_0x4c2441[_0x591026('0x132b')]()[_0x591026('0x134b')](_0x591026('0x98e'))[_0x591026('0x1d03')](_0x591026('0xb46')+'\x20will\x20be\x20deleted.')[_0x591026('0xb2e')](_0x591026('0x259c'))['targetEvent'](_0x31c3c0)['ok']('OK')['cancel'](_0x591026('0x772'));_0x4c2441[_0x591026('0xb9')](_0x2ca35c)['then'](function(){_0x3f69ea(_0x6df83);},function(){const _0x38bbac=_0x591026;console[_0x38bbac('0xc78')](_0x38bbac('0x772'));});}function _0x7958bf(_0x40fe07){const _0x3d7fc9=_0x376166,_0x123e95=_0x4c2441[_0x3d7fc9('0x132b')]()['title'](_0x3d7fc9('0x188d'))[_0x3d7fc9('0x1d03')](_0x3d7fc9('0x2061')+_0x19a41e[_0x3d7fc9('0x1151')][_0x3d7fc9('0x1e22')]+'\x20selected'+'\x20will\x20be\x20deleted.')[_0x3d7fc9('0xb2e')]('delete\x20subjects')[_0x3d7fc9('0x1e25')](_0x40fe07)['ok']('OK')['cancel'](_0x3d7fc9('0x772'));_0x4c2441[_0x3d7fc9('0xb9')](_0x123e95)[_0x3d7fc9('0x11bf')](function(){const _0x4a9f9d=_0x3d7fc9;_0x19a41e[_0x4a9f9d('0x1151')][_0x4a9f9d('0x1f88')](function(_0x1096a1){_0x3f69ea(_0x1096a1);}),_0x19a41e['selectedSubjects']=[];});}_0x19a41e[_0x376166('0x73f')]=[],_0x19a41e[_0x376166('0x25fe')]=_0x4ce5fd,_0x19a41e['deleteDescriptionConfirm']=_0x14c69a,_0x19a41e['deleteSelectedDescriptions']=_0x4a0bec;function _0x4ce5fd(_0x28bef9,_0x594858){const _0x171080=_0x376166;_0x4c2441['show']({'controller':_0x171080('0x13c7'),'controllerAs':'vm','templateUrl':_0x581320,'parent':angular[_0x171080('0x1e73')](_0x2f82e0[_0x171080('0x1d2')]),'targetEvent':_0x28bef9,'clickOutsideToClose':!![],'locals':{'type':_0x171080('0x1659'),'item':_0x594858,'items':_0x19a41e[_0x171080('0xe12')],'configuration':_0x19a41e[_0x171080('0x130d')],'account':_0x19a41e[_0x171080('0x124e')],'license':null,'setting':null,'crudPermissions':_0x19a41e[_0x171080('0xb25')]}});}function _0x50b430(_0x4f4167){const _0x18a703=_0x376166;_0x3ce421[_0x18a703('0x1a53')]['delete']({'id':_0x4f4167['id']})['$promise']['then'](function(){const _0x59c6c3=_0x18a703;_0x36f548()['remove'](_0x19a41e[_0x59c6c3('0xe12')],{'id':_0x4f4167['id']}),_0xcc7b00[_0x59c6c3('0x2693')]({'title':_0x59c6c3('0x1221'),'msg':_0x59c6c3('0x40e')});})[_0x18a703('0x151d')](function(_0x1e7cca){const _0x470110=_0x18a703;_0xcc7b00[_0x470110('0x255')]({'title':_0x1e7cca['status']?'API:'+_0x1e7cca[_0x470110('0xff9')]+_0x470110('0xb0b')+_0x1e7cca[_0x470110('0x212f')]:_0x470110('0xc27'),'msg':_0x1e7cca[_0x470110('0x4e8')]?JSON[_0x470110('0x3e')](_0x1e7cca['data']):_0x1e7cca['toString']()});});}function _0x14c69a(_0x57478e,_0x22ead0){const _0x28813e=_0x376166,_0xabee0b=_0x4c2441[_0x28813e('0x132b')]()[_0x28813e('0x134b')](_0x28813e('0x46b'))[_0x28813e('0x1d03')](_0x28813e('0x48a')+_0x28813e('0x1a'))[_0x28813e('0xb2e')](_0x28813e('0xd32'))[_0x28813e('0x1e25')](_0x57478e)['ok']('OK')[_0x28813e('0x26c9')](_0x28813e('0x772'));_0x4c2441[_0x28813e('0xb9')](_0xabee0b)['then'](function(){_0x50b430(_0x22ead0);},function(){const _0x1760a7=_0x28813e;console[_0x1760a7('0xc78')]('CANCEL');});}function _0x4a0bec(_0x4672e5){const _0x59f478=_0x376166,_0x12eedc=_0x4c2441[_0x59f478('0x132b')]()[_0x59f478('0x134b')](_0x59f478('0x1795'))['htmlContent'](''+_0x19a41e[_0x59f478('0x73f')][_0x59f478('0x1e22')]+_0x59f478('0xac6')+_0x59f478('0x1a'))[_0x59f478('0xb2e')](_0x59f478('0xade'))['targetEvent'](_0x4672e5)['ok']('OK')[_0x59f478('0x26c9')]('CANCEL');_0x4c2441['show'](_0x12eedc)['then'](function(){const _0x417bad=_0x59f478;_0x19a41e[_0x417bad('0x73f')][_0x417bad('0x1f88')](function(_0x3c0b3c){_0x50b430(_0x3c0b3c);}),_0x19a41e['selectedDescriptions']=[];});}_0x19a41e[_0x376166('0xfea')]=[],_0x19a41e['createOrEditField']=_0x4b0281,_0x19a41e['deleteFieldConfirm']=_0x5eec68,_0x19a41e[_0x376166('0xd20')]=_0x12a86c;function _0x4b0281(_0x3a61e8,_0x50a892){const _0x5c5635=_0x376166;_0x4c2441['show']({'controller':_0x5c5635('0x13c7'),'controllerAs':'vm','templateUrl':_0x581320,'parent':angular[_0x5c5635('0x1e73')](_0x2f82e0[_0x5c5635('0x1d2')]),'targetEvent':_0x3a61e8,'clickOutsideToClose':!![],'locals':{'type':_0x5c5635('0x485'),'item':_0x50a892,'items':_0x19a41e[_0x5c5635('0x1067')],'configuration':_0x19a41e['freshsalesConfiguration'],'account':_0x19a41e['freshsalesAccount'],'license':null,'setting':null,'crudPermissions':_0x19a41e['crudPermissions']}});}function _0x4dd685(_0x2a8b6d){const _0x36f17a=_0x376166;_0x3ce421[_0x36f17a('0x1a53')]['delete']({'id':_0x2a8b6d['id']})[_0x36f17a('0x1549')][_0x36f17a('0x11bf')](function(){const _0x4e43a4=_0x36f17a;_0x36f548()[_0x4e43a4('0x14a5')](_0x19a41e['fields'],{'id':_0x2a8b6d['id']}),_0xcc7b00[_0x4e43a4('0x2693')]({'title':'Field\x20deleted!','msg':'Field\x20has\x20been\x20deleted!'});})[_0x36f17a('0x151d')](function(_0x477b33){const _0x4b6ada=_0x36f17a;_0xcc7b00[_0x4b6ada('0x255')]({'title':_0x477b33[_0x4b6ada('0xff9')]?'API:'+_0x477b33[_0x4b6ada('0xff9')]+_0x4b6ada('0xb0b')+_0x477b33['statusText']:_0x4b6ada('0xc27'),'msg':_0x477b33[_0x4b6ada('0x4e8')]?JSON['stringify'](_0x477b33['data']):_0x477b33[_0x4b6ada('0xaab')]()});});}function _0x5eec68(_0x56207d,_0x1ae834){const _0x449995=_0x376166,_0x631926=_0x4c2441[_0x449995('0x132b')]()[_0x449995('0x134b')](_0x449995('0x915'))[_0x449995('0x1d03')](_0x449995('0xdc8')+_0x449995('0x1a'))['ariaLabel'](_0x449995('0xc52'))['targetEvent'](_0x56207d)['ok']('OK')['cancel'](_0x449995('0x772'));_0x4c2441['show'](_0x631926)[_0x449995('0x11bf')](function(){_0x4dd685(_0x1ae834);},function(){const _0x5a81d2=_0x449995;console[_0x5a81d2('0xc78')](_0x5a81d2('0x772'));});}function _0x12a86c(_0xa2266e){const _0xfc1f9=_0x376166,_0x3d3354=_0x4c2441[_0xfc1f9('0x132b')]()[_0xfc1f9('0x134b')](_0xfc1f9('0x25cc'))['htmlContent'](_0xfc1f9('0x2061')+_0x19a41e[_0xfc1f9('0xfea')][_0xfc1f9('0x1e22')]+_0xfc1f9('0xac6')+_0xfc1f9('0x1a'))[_0xfc1f9('0xb2e')](_0xfc1f9('0x15b8'))['targetEvent'](_0xa2266e)['ok']('OK')[_0xfc1f9('0x26c9')]('CANCEL');_0x4c2441['show'](_0x3d3354)[_0xfc1f9('0x11bf')](function(){const _0x145b68=_0xfc1f9;_0x19a41e[_0x145b68('0xfea')][_0x145b68('0x1f88')](function(_0x73886f){_0x4dd685(_0x73886f);}),_0x19a41e[_0x145b68('0xfea')]=[];});}}const _0x2bd0b8=_0x1873ea;_0x574c10[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),'$state',_0x21d0f5('0x16b9'),'$mdDialog','$q','$translate',_0x21d0f5('0x142d'),_0x21d0f5('0x2766'),'freshsalesConfiguration','api',_0x21d0f5('0x1150'),_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1'),_0x21d0f5('0xb25')];function _0x574c10(_0x355d37,_0x13ec9e,_0x4d5f03,_0x5db150,_0x31c45f,_0x1edc45,_0x16aeed,_0x2b5cef,_0x3b7be0,_0x1eb1eb,_0x162b77,_0x2a818f,_0xde2ba5,_0x42348f){const _0x31228f=_0x21d0f5,_0x5819df=this;_0x5819df[_0x31228f('0x32a')]=_0x162b77[_0x31228f('0x2428')](),_0x5819df[_0x31228f('0x120f')]=[],_0x5819df[_0x31228f('0x23e1')]=_0xde2ba5,_0x5819df[_0x31228f('0x17ff')]=_0x2a818f,_0x5819df[_0x31228f('0xb25')]=_0x42348f,_0x5819df[_0x31228f('0x2c9')]={},_0x5819df[_0x31228f('0x2834')]=_0x5819df[_0x31228f('0x23e1')]&&_0x5819df['setting'][_0x31228f('0x1d4')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x5819df[_0x31228f('0x134b')]='INTEGRATIONS.EDIT_FRESHSALESCONFIGURATION',_0x5819df['freshsalesConfiguration']=angular[_0x31228f('0x6fb')](_0x3b7be0),_0x5819df[_0x31228f('0x2766')]=_0x2b5cef,_0x5819df['newFreshsalesConfiguration']=![];!_0x5819df[_0x31228f('0x130d')]&&(_0x5819df[_0x31228f('0x130d')]={'channel':_0x31228f('0x1bc3'),'type':_0x31228f('0x18a2')},_0x5819df[_0x31228f('0x134b')]=_0x31228f('0x1712'),_0x5819df[_0x31228f('0x16f2')]=!![]);_0x5819df[_0x31228f('0x2835')]=_0x16bae8,_0x5819df['saveFreshsalesConfiguration']=_0x993b75,_0x5819df[_0x31228f('0x1e7e')]=_0x272df3,_0x5819df[_0x31228f('0x1bd1')]=_0x24fc17,_0x5819df[_0x31228f('0xc4e')]=_0x25760c;function _0x16bae8(){const _0x483286=_0x31228f;_0x5819df['errors']=[],_0x1eb1eb[_0x483286('0xda4')][_0x483286('0x157f')]({'id':_0x13ec9e[_0x483286('0x1ab3')]['id']},_0x5819df['freshsalesConfiguration'])[_0x483286('0x1549')][_0x483286('0x11bf')](function(_0x1d79f5){const _0xdf7736=_0x483286;_0x5819df['configurations']['unshift'](_0x1d79f5[_0xdf7736('0x2866')]()),_0x16aeed[_0xdf7736('0x2693')]({'title':_0xdf7736('0x100c'),'msg':_0x5819df['freshsalesConfiguration'][_0xdf7736('0x1909')]?_0x5819df[_0xdf7736('0x130d')]['name']+_0xdf7736('0x7fb'):''}),_0x25760c(_0x1d79f5);})[_0x483286('0x151d')](function(_0x1c464a){const _0xb0c89e=_0x483286;if(_0x1c464a[_0xb0c89e('0x4e8')]&&_0x1c464a[_0xb0c89e('0x4e8')][_0xb0c89e('0x120f')]&&_0x1c464a[_0xb0c89e('0x4e8')][_0xb0c89e('0x120f')][_0xb0c89e('0x1e22')]){_0x5819df[_0xb0c89e('0x120f')]=_0x1c464a[_0xb0c89e('0x4e8')]['errors']||[{'message':_0x1c464a['toString'](),'type':_0xb0c89e('0x2430')}];for(let _0x456f02=0x0;_0x456f02<_0x1c464a[_0xb0c89e('0x4e8')][_0xb0c89e('0x120f')][_0xb0c89e('0x1e22')];_0x456f02+=0x1){_0x16aeed['error']({'title':_0x1c464a[_0xb0c89e('0x4e8')][_0xb0c89e('0x120f')][_0x456f02][_0xb0c89e('0x19fd')],'msg':_0x1c464a[_0xb0c89e('0x4e8')][_0xb0c89e('0x120f')][_0x456f02][_0xb0c89e('0x1b86')]});}}else _0x16aeed['error']({'title':_0x1c464a[_0xb0c89e('0xff9')]?_0xb0c89e('0x574')+_0x1c464a[_0xb0c89e('0xff9')]+_0xb0c89e('0xb0b')+_0x1c464a[_0xb0c89e('0x212f')]:'api.intFreshsalesConfiguration.save','msg':_0x1c464a[_0xb0c89e('0x4e8')]?JSON[_0xb0c89e('0x3e')](_0x1c464a[_0xb0c89e('0x4e8')][_0xb0c89e('0x1b86')]):_0x1c464a['toString']()});});}function _0x993b75(){const _0x1f54dc=_0x31228f;_0x5819df[_0x1f54dc('0x120f')]=[],_0x1eb1eb[_0x1f54dc('0xf5d')]['update']({'id':_0x5819df['freshsalesConfiguration']['id']},_0x5819df[_0x1f54dc('0x130d')])['$promise'][_0x1f54dc('0x11bf')](function(_0x1b7397){const _0x3fdedd=_0x1f54dc,_0x57e16a=_0x36f548()[_0x3fdedd('0x1ad4')](_0x5819df[_0x3fdedd('0x2766')],{'id':_0x1b7397['id']});_0x57e16a&&_0x36f548()[_0x3fdedd('0x47b')](_0x57e16a,_0x36f548()[_0x3fdedd('0x258')](_0x1b7397[_0x3fdedd('0x2866')](),_0x36f548()[_0x3fdedd('0xe22')](_0x57e16a))),_0x16aeed['success']({'title':_0x3fdedd('0x2805'),'msg':_0x5819df[_0x3fdedd('0x130d')]['name']?_0x5819df[_0x3fdedd('0x130d')][_0x3fdedd('0x1909')]+'\x20has\x20been\x20saved!':''}),_0x25760c(_0x1b7397);})[_0x1f54dc('0x151d')](function(_0x28aeca){const _0x3db417=_0x1f54dc;if(_0x28aeca[_0x3db417('0x4e8')]&&_0x28aeca[_0x3db417('0x4e8')][_0x3db417('0x120f')]&&_0x28aeca[_0x3db417('0x4e8')][_0x3db417('0x120f')][_0x3db417('0x1e22')]){_0x5819df[_0x3db417('0x120f')]=_0x28aeca[_0x3db417('0x4e8')][_0x3db417('0x120f')]||[{'message':_0x28aeca['toString'](),'type':'api.intFreshsalesConfiguration.update'}];for(let _0x3cf489=0x0;_0x3cf489<_0x28aeca[_0x3db417('0x4e8')][_0x3db417('0x120f')][_0x3db417('0x1e22')];_0x3cf489++){_0x16aeed['error']({'title':_0x28aeca[_0x3db417('0x4e8')][_0x3db417('0x120f')][_0x3cf489][_0x3db417('0x19fd')],'msg':_0x28aeca[_0x3db417('0x4e8')][_0x3db417('0x120f')][_0x3cf489][_0x3db417('0x1b86')]});}}else _0x16aeed[_0x3db417('0x255')]({'title':_0x28aeca['status']?'API:'+_0x28aeca[_0x3db417('0xff9')]+_0x3db417('0xb0b')+_0x28aeca[_0x3db417('0x212f')]:_0x3db417('0x108'),'msg':_0x28aeca[_0x3db417('0x4e8')]?JSON[_0x3db417('0x3e')](_0x28aeca['data'][_0x3db417('0x1b86')]):_0x28aeca[_0x3db417('0xaab')]()});});}function _0x272df3(_0x18a3cb){const _0x1ff27b=_0x31228f;_0x5819df[_0x1ff27b('0x120f')]=[];const _0x36842e=_0x5db150[_0x1ff27b('0x132b')]()['title']('Are\x20you\x20sure?')[_0x1ff27b('0x252a')](_0x1ff27b('0x21dc'))[_0x1ff27b('0xb2e')]('Delete\x20FreshsalesConfiguration')['ok'](_0x1ff27b('0x1167'))[_0x1ff27b('0x26c9')](_0x1ff27b('0x784'))[_0x1ff27b('0x1e25')](_0x18a3cb);_0x5db150[_0x1ff27b('0xb9')](_0x36842e)[_0x1ff27b('0x11bf')](function(){const _0x4f087c=_0x1ff27b;_0x1eb1eb['intFreshsalesConfiguration']['delete']({'id':_0x5819df[_0x4f087c('0x130d')]['id']})[_0x4f087c('0x1549')][_0x4f087c('0x11bf')](function(){const _0x22a324=_0x4f087c;_0x36f548()['remove'](_0x5819df[_0x22a324('0x2766')],{'id':_0x5819df[_0x22a324('0x130d')]['id']}),_0x16aeed[_0x22a324('0x2693')]({'title':'FreshsalesConfiguration\x20properly\x20deleted!','msg':(_0x5819df[_0x22a324('0x130d')][_0x22a324('0x1909')]||'freshsalesConfiguration')+_0x22a324('0x433')}),_0x25760c(_0x5819df[_0x22a324('0x130d')]);})[_0x4f087c('0x151d')](function(_0x5a7961){const _0xb866f6=_0x4f087c;if(_0x5a7961['data']&&_0x5a7961[_0xb866f6('0x4e8')][_0xb866f6('0x120f')]&&_0x5a7961[_0xb866f6('0x4e8')][_0xb866f6('0x120f')][_0xb866f6('0x1e22')]){_0x5819df[_0xb866f6('0x120f')]=_0x5a7961[_0xb866f6('0x4e8')][_0xb866f6('0x120f')]||[{'message':_0x5a7961[_0xb866f6('0xaab')](),'type':_0xb866f6('0xe85')}];for(let _0x5cdee5=0x0;_0x5cdee5<_0x5a7961['data'][_0xb866f6('0x120f')]['length'];_0x5cdee5++){_0x16aeed[_0xb866f6('0x255')]({'title':_0x5a7961[_0xb866f6('0x4e8')][_0xb866f6('0x120f')][_0x5cdee5][_0xb866f6('0x19fd')],'msg':_0x5a7961['data'][_0xb866f6('0x120f')][_0x5cdee5]['message']});}}else _0x16aeed[_0xb866f6('0x255')]({'title':_0x5a7961[_0xb866f6('0xff9')]?_0xb866f6('0x574')+_0x5a7961[_0xb866f6('0xff9')]+_0xb866f6('0xb0b')+_0x5a7961[_0xb866f6('0x212f')]:_0xb866f6('0xe85'),'msg':_0x5a7961[_0xb866f6('0x4e8')]?JSON['stringify'](_0x5a7961[_0xb866f6('0x4e8')]['message']):_0x5a7961['message']||_0x5a7961[_0xb866f6('0xaab')]()});});},function(){});}function _0x24fc17(_0x578ac7){return _0x578ac7===null?undefined:new Date(_0x578ac7);}function _0x25760c(_0x165888){const _0x1400f5=_0x31228f;_0x5db150[_0x1400f5('0x237e')](_0x165888);}}const _0x7a88a3=_0x574c10;_0x484639['$inject']=[_0x21d0f5('0x1b80'),_0x21d0f5('0xcbc'),_0x21d0f5('0x16b9'),_0x21d0f5('0x1ca2'),'toasty',_0x21d0f5('0xc09'),_0x21d0f5('0x22'),_0x21d0f5('0xa9c'),_0x21d0f5('0x2565'),_0x21d0f5('0x19fd'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),_0x21d0f5('0xb25')];function _0x484639(_0x256a94,_0x18a730,_0x5b4cb6,_0xa1a028,_0x2fb6e8,_0x1de39a,_0x223b6a,_0x469f21,_0x17384b,_0x1f69d8,_0x3d10e2,_0xe0a90a,_0x49d848){const _0x2e486c=_0x21d0f5,_0x4fc73d=this;_0x4fc73d['currentUser']=_0xe0a90a['getCurrentUser'](),_0x4fc73d[_0x2e486c('0x120f')]=[],_0x4fc73d[_0x2e486c('0x134b')]=_0x2e486c('0x1e35')+_0x36f548()[_0x2e486c('0x1a31')](_0x1f69d8),_0x4fc73d[_0x2e486c('0xa9c')]=angular[_0x2e486c('0x6fb')](_0x469f21),_0x4fc73d[_0x2e486c('0x22')]=_0x223b6a,_0x4fc73d[_0x2e486c('0x19fd')]=_0x1f69d8,_0x4fc73d[_0x2e486c('0xb25')]=_0x49d848,_0x4fc73d[_0x2e486c('0x1f63')]=![];!_0x4fc73d[_0x2e486c('0xa9c')]&&(_0x4fc73d[_0x2e486c('0xa9c')]={'type':_0x2e486c('0x2380')},_0x4fc73d[_0x2e486c('0xa9c')][_0x36f548()[_0x2e486c('0x22c2')](_0x1f69d8)+'Id']=_0x1de39a['id'],_0x4fc73d['title']=_0x2e486c('0x26b9')+_0x36f548()['toUpper'](_0x1f69d8),_0x4fc73d['newItem']=!![]);_0x4fc73d['addNewItem']=_0x25bc7f,_0x4fc73d['saveItem']=_0x4396a3,_0x4fc73d[_0x2e486c('0x2639')]=_0x553069,_0x4fc73d[_0x2e486c('0x6e1')]=_0xce8ced,_0x4fc73d['closeDialog']=_0x496b3b,_0x3d10e2[_0x2e486c('0xb0')][_0x2e486c('0xbaa')]({'nolimit':!![]})['$promise']['then'](function(_0x123afc){const _0x15b29e=_0x2e486c;return _0x4fc73d['variables']=_0x123afc[_0x15b29e('0x19b2')]?_0x123afc[_0x15b29e('0x19b2')]:[],_0x3d10e2[_0x15b29e('0x1313')][_0x15b29e('0x19a5')]()[_0x15b29e('0x1549')];})[_0x2e486c('0x11bf')](function(_0x221145){const _0xccce7c=_0x2e486c;return _0x4fc73d[_0xccce7c('0x1720')]=_0x36f548()[_0xccce7c('0x1271')](_0x36f548()['keys'](_0x221145),[_0xccce7c('0x1549'),_0xccce7c('0x1619'),_0xccce7c('0x1779'),_0xccce7c('0x14ea'),_0xccce7c('0x14b4')]),_0x4fc73d['voiceAgentReportColumns'][_0xccce7c('0x105d')]('recordingURL'),_0x3d10e2['voiceDialReport'][_0xccce7c('0x19a5')]()[_0xccce7c('0x1549')];})[_0x2e486c('0x11bf')](function(_0x30251e){const _0x2bcdd0=_0x2e486c;_0x4fc73d[_0x2bcdd0('0x77c')]=_0x36f548()[_0x2bcdd0('0x1271')](_0x36f548()[_0x2bcdd0('0xe22')](_0x30251e),[_0x2bcdd0('0x1549'),'$resolved',_0x2bcdd0('0x1779'),'updatedAt',_0x2bcdd0('0x14b4')]),_0x4fc73d[_0x2bcdd0('0x77c')][_0x2bcdd0('0x105d')]('recordingURL');})['catch'](function(_0x603a5a){const _0xae4a81=_0x2e486c;_0x2fb6e8[_0xae4a81('0x255')]({'title':_0x603a5a[_0xae4a81('0xff9')]?_0xae4a81('0x574')+_0x603a5a[_0xae4a81('0xff9')]+'\x20-\x20'+_0x603a5a[_0xae4a81('0x212f')]:_0xae4a81('0x2010'),'msg':_0x603a5a[_0xae4a81('0x4e8')]?JSON[_0xae4a81('0x3e')](_0x603a5a['data']):_0x603a5a[_0xae4a81('0xaab')]()});}),_0x3d10e2[_0x2e486c('0xda4')][_0x2e486c('0x8ff')]({'id':_0x17384b['id'],'ticketType':_0x1de39a[_0x2e486c('0x1bd2')]?_0x1de39a['ticketType']:undefined})[_0x2e486c('0x1549')][_0x2e486c('0x11bf')](function(_0x20800e){const _0x290d2b=_0x2e486c;_0x4fc73d['accountConnected']=!![],_0x4fc73d['fields']=_0x20800e[_0x290d2b('0x19b2')]?_0x20800e[_0x290d2b('0x19b2')]:[],_0x4fc73d['item']['idField']&&(_0x4fc73d[_0x290d2b('0x2830')]=_0x36f548()[_0x290d2b('0x1ad4')](_0x4fc73d[_0x290d2b('0x1067')],{'id':_0x4fc73d[_0x290d2b('0xa9c')]['idField']}));})[_0x2e486c('0x151d')](function(_0x1c2109){const _0x5f2c26=_0x2e486c;_0x4fc73d['accountConnected']=![],console[_0x5f2c26('0x255')](_0x1c2109);});function _0x25bc7f(){const _0x142190=_0x2e486c;_0x4fc73d[_0x142190('0x120f')]=[],_0x4fc73d[_0x142190('0x2830')]&&(_0x4fc73d[_0x142190('0xa9c')][_0x142190('0x223a')]=_0x4fc73d[_0x142190('0x2830')]['id'],_0x4fc73d[_0x142190('0xa9c')]['nameField']=_0x4fc73d[_0x142190('0x2830')][_0x142190('0x1909')],_0x4fc73d[_0x142190('0xa9c')]['customField']=_0x4fc73d[_0x142190('0x2830')][_0x142190('0xa8d')]),_0x3d10e2[_0x142190('0x1a53')]['save'](_0x4fc73d['item'])['$promise'][_0x142190('0x11bf')](function(_0x379b64){const _0x292574=_0x142190;_0x4fc73d[_0x292574('0x22')]['unshift'](_0x379b64),_0x2fb6e8[_0x292574('0x2693')]({'title':_0x36f548()[_0x292574('0x22c2')](_0x1f69d8)+_0x292574('0x1c0e'),'msg':_0x36f548()[_0x292574('0x22c2')](_0x1f69d8)+_0x292574('0x7fb')}),_0x496b3b();})[_0x142190('0x151d')](function(_0x4557e2){const _0xcb2745=_0x142190;console[_0xcb2745('0x255')](_0x4557e2),_0x4fc73d[_0xcb2745('0x120f')]=_0x4557e2[_0xcb2745('0x4e8')][_0xcb2745('0x120f')]||[{'message':_0x4557e2['toString'](),'type':'api.item.save'}];});}function _0x4396a3(){const _0x51bbdb=_0x2e486c;_0x4fc73d['errors']=[],_0x4fc73d['customField']&&(_0x4fc73d[_0x51bbdb('0xa9c')]['idField']=_0x4fc73d[_0x51bbdb('0x2830')]['id'],_0x4fc73d[_0x51bbdb('0xa9c')][_0x51bbdb('0x1992')]=_0x4fc73d['customField'][_0x51bbdb('0x1909')],_0x4fc73d['item'][_0x51bbdb('0x2830')]=_0x4fc73d[_0x51bbdb('0x2830')][_0x51bbdb('0xa8d')]),_0x3d10e2[_0x51bbdb('0x1a53')][_0x51bbdb('0x5ab')]({'id':_0x4fc73d[_0x51bbdb('0xa9c')]['id']},_0x4fc73d[_0x51bbdb('0xa9c')])[_0x51bbdb('0x1549')][_0x51bbdb('0x11bf')](function(_0x143769){const _0xcb2caf=_0x51bbdb,_0x2f60d5=_0x36f548()[_0xcb2caf('0x1ad4')](_0x4fc73d[_0xcb2caf('0x22')],{'id':_0x143769['id']});_0x2f60d5&&_0x36f548()['merge'](_0x2f60d5,_0x143769),_0x2fb6e8[_0xcb2caf('0x2693')]({'title':_0x36f548()[_0xcb2caf('0x22c2')](_0x1f69d8)+_0xcb2caf('0x157b'),'msg':_0x36f548()[_0xcb2caf('0x22c2')](_0x1f69d8)+_0xcb2caf('0x1a78')}),_0x496b3b();})[_0x51bbdb('0x151d')](function(_0x3805c3){const _0x5b6b86=_0x51bbdb;console['error'](_0x3805c3),_0x4fc73d[_0x5b6b86('0x120f')]=_0x3805c3[_0x5b6b86('0x4e8')]['errors']||[{'message':_0x3805c3['toString'](),'type':_0x5b6b86('0xbab')}];});}function _0x553069(_0xb275a8){const _0x4285f4=_0x2e486c;_0x4fc73d[_0x4285f4('0x120f')]=[];const _0x3abbf5=_0xa1a028[_0x4285f4('0x132b')]()[_0x4285f4('0x134b')]('Are\x20you\x20sure?')[_0x4285f4('0x252a')](_0x4285f4('0x2155')+_0x1f69d8+_0x4285f4('0x1a'))[_0x4285f4('0xb2e')](_0x4285f4('0x13ea')+_0x36f548()[_0x4285f4('0x22c2')](_0x1f69d8))['ok']('Delete')[_0x4285f4('0x26c9')](_0x4285f4('0x784'))[_0x4285f4('0x1e25')](_0xb275a8);_0xa1a028[_0x4285f4('0xb9')](_0x3abbf5)[_0x4285f4('0x11bf')](function(){const _0x1efa2c=_0x4285f4;_0x3d10e2['intFreshsalesField'][_0x1efa2c('0x2088')]({'id':_0x4fc73d[_0x1efa2c('0xa9c')]['id']})[_0x1efa2c('0x1549')][_0x1efa2c('0x11bf')](function(){const _0x20adce=_0x1efa2c;_0x36f548()[_0x20adce('0x14a5')](_0x4fc73d[_0x20adce('0x22')],{'id':_0x4fc73d[_0x20adce('0xa9c')]['id']}),_0x2fb6e8['success']({'title':_0x36f548()[_0x20adce('0x22c2')](_0x1f69d8)+'\x20properly\x20deleted!','msg':_0x36f548()[_0x20adce('0x22c2')](_0x1f69d8)+'\x20has\x20been\x20deleted!'}),_0x496b3b();})[_0x1efa2c('0x151d')](function(_0x39bd49){const _0x280ec0=_0x1efa2c;console[_0x280ec0('0x255')](_0x39bd49),_0x4fc73d[_0x280ec0('0x120f')]=_0x39bd49[_0x280ec0('0x4e8')][_0x280ec0('0x120f')]||[{'message':_0x39bd49['toString'](),'type':_0x280ec0('0x20f0')}];});},function(){});}function _0xce8ced(){const _0x19b597=_0x2e486c;return _0x4fc73d[_0x19b597('0xa9c')][_0x19b597('0x209e')]!==undefined?_0x4fc73d[_0x19b597('0xa9c')][_0x19b597('0x209e')]:_0x19b597('0xbc2');}function _0x496b3b(){const _0x432d4e=_0x2e486c;_0xa1a028[_0x432d4e('0x237e')]();}}const _0x3ed703=_0x484639;_0x4ed0ae[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0xcbc'),'$location','$mdDialog',_0x21d0f5('0x1b30'),_0x21d0f5('0xb6b'),_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1'),'api',_0x21d0f5('0x142d'),'Auth',_0x21d0f5('0x124e'),'userProfileSection'];function _0x4ed0ae(_0xc3e659,_0x2b3997,_0xca61dc,_0x34d75f,_0x39d516,_0x43ed31,_0x35a918,_0x1c5cad,_0x370190,_0x2745f6,_0x4f60ed,_0x320fb2){const _0x42a7f1=_0x21d0f5,_0x4eebc1=this;_0x4eebc1[_0x42a7f1('0x32a')]=_0x2745f6['getCurrentUser'](),_0x4eebc1['license']=_0x43ed31,_0x4eebc1[_0x42a7f1('0x23e1')]=_0x35a918,_0x4eebc1[_0x42a7f1('0x2834')]=_0x4eebc1[_0x42a7f1('0x23e1')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x4eebc1[_0x42a7f1('0x1d9a')]=_0x2b3997[_0x42a7f1('0x1797')]()+_0x42a7f1('0x16a1')+_0x2b3997['host'](),_0x4eebc1[_0x42a7f1('0x124e')]=_0x4f60ed||_0xc3e659[_0x42a7f1('0x1ab3')][_0x42a7f1('0x124e')]||{},_0x4eebc1[_0x42a7f1('0x1d63')]=_0x320fb2&&_0x320fb2['count']==0x1?_0x320fb2[_0x42a7f1('0x19b2')][0x0]:null,_0x4eebc1[_0x42a7f1('0xb25')]=_0x2745f6[_0x42a7f1('0x1530')](_0x4eebc1[_0x42a7f1('0x1d63')]?_0x4eebc1[_0x42a7f1('0x1d63')][_0x42a7f1('0xb25')]:null),_0x4eebc1[_0x42a7f1('0x2c9')]={},_0x4eebc1[_0x42a7f1('0x1179')]=_0xc3e659[_0x42a7f1('0x1ab3')][_0x42a7f1('0x205c')]||0x0,_0x4eebc1[_0x42a7f1('0xb30')]=_0x370190['info'],_0x4eebc1[_0x42a7f1('0x39d')]=_0x180caf,_0x4eebc1[_0x42a7f1('0x2e6')]=_0x1a04a5;function _0x180caf(){const _0x16b74e=_0x42a7f1;_0xc3e659['go'](_0x16b74e('0x45d'),{},{'reload':_0x16b74e('0x45d')});}function _0x1a04a5(){const _0x5839dc=_0x42a7f1;_0x1c5cad[_0x5839dc('0xda4')]['update']({'id':_0x4eebc1[_0x5839dc('0x124e')]['id']},_0x4eebc1['freshsalesAccount'])[_0x5839dc('0x1549')][_0x5839dc('0x11bf')](function(){const _0x244c99=_0x5839dc;_0x370190[_0x244c99('0x2693')]({'title':'FreshsalesAccount\x20updated!','msg':_0x4eebc1[_0x244c99('0x124e')][_0x244c99('0x1909')]?_0x4eebc1['freshsalesAccount'][_0x244c99('0x1909')]+_0x244c99('0xd7'):''});})[_0x5839dc('0x151d')](function(_0x11ae7e){const _0x26dc27=_0x5839dc;_0x370190[_0x26dc27('0x255')]({'title':_0x11ae7e[_0x26dc27('0xff9')]?_0x26dc27('0x574')+_0x11ae7e['status']+_0x26dc27('0xb0b')+_0x11ae7e[_0x26dc27('0x212f')]:_0x26dc27('0x1b65'),'msg':_0x11ae7e['data']?JSON[_0x26dc27('0x3e')](_0x11ae7e[_0x26dc27('0x4e8')]):_0x11ae7e[_0x26dc27('0xaab')]()});});}}const _0x209f00=_0x4ed0ae,_0xb4d802=_0x351988['p']+_0x21d0f5('0x898');_0x365705[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0x2143'),_0x21d0f5('0xcbc'),_0x21d0f5('0x18fe'),_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),'$timeout',_0x21d0f5('0xb6b'),_0x21d0f5('0x1277'),'userProfile','userProfileSection',_0x21d0f5('0x12a5'),'msUtils','toasty',_0x21d0f5('0x1150'),'license','setting'];function _0x365705(_0x41a1e0,_0x335525,_0x5a351b,_0x4ceac9,_0x2b520a,_0x51b47e,_0x583f8f,_0x73cbe8,_0x33dd38,_0x2bedea,_0x2f92d2,_0x5612e0,_0x3c7308,_0x39934c,_0x23182f,_0x584751,_0x5a49ec){const _0x7c212d=_0x21d0f5,_0x31a4d8=this;_0x31a4d8[_0x7c212d('0x17ff')]=_0x584751,_0x31a4d8[_0x7c212d('0x23e1')]=_0x5a49ec,_0x31a4d8[_0x7c212d('0x32a')]=_0x23182f['getCurrentUser'](),_0x31a4d8[_0x7c212d('0x1277')]=_0x33dd38||{'count':0x0,'rows':[]},_0x31a4d8[_0x7c212d('0x25bc')]=_0x2bedea,_0x31a4d8['userProfileSection']=_0x2f92d2&&_0x2f92d2[_0x7c212d('0x27d2')]==0x1?_0x2f92d2[_0x7c212d('0x19b2')][0x0]:null,_0x31a4d8['crudPermissions']=_0x23182f[_0x7c212d('0x1530')](_0x31a4d8['userProfileSection']?_0x31a4d8[_0x7c212d('0x1d63')]['crudPermissions']:null),_0x31a4d8['table']=_0x7c212d('0x1277'),_0x31a4d8['listOrder']='',_0x31a4d8['listOrderAsc']=null,_0x31a4d8[_0x7c212d('0xbe')]=[],_0x31a4d8[_0x7c212d('0x1f2a')]={'fields':_0x7c212d('0x1a6b'),'limit':0xa,'page':0x1},_0x31a4d8[_0x7c212d('0x757')]=_0x3fc6a4,_0x31a4d8['testtestintegrationaccount']=_0x4161c2,_0x31a4d8[_0x7c212d('0x549')]=_0x2c5bfe,_0x31a4d8['success']=_0x982e90,_0x31a4d8['getFreshsalesAccounts']=_0x446a84,_0x31a4d8[_0x7c212d('0x117e')]=_0x41e208,_0x31a4d8[_0x7c212d('0xdcd')]=_0xd646c0,_0x31a4d8['exportSelectedFreshsalesAccounts']=_0x3478a3,_0x31a4d8[_0x7c212d('0xfc6')]=_0x5d3ae6,_0x31a4d8['deselectFreshsalesAccounts']=_0x213915,_0x31a4d8['selectAllFreshsalesAccounts']=_0x3adc02;function _0x3fc6a4(_0xf6af8d){const _0x3a0295=_0x7c212d;_0x5a351b['go'](_0x3a0295('0x1614'),{'id':_0xf6af8d['id'],'freshsalesAccount':_0xf6af8d,'crudPermissions':_0x31a4d8[_0x3a0295('0xb25')]});}function _0x4161c2(_0x403d00){const _0x5daeab=_0x7c212d;return _0x5612e0['intFreshsalesAccount']['getFields']({'id':_0x403d00['id'],'test':!![]})[_0x5daeab('0x1549')][_0x5daeab('0x11bf')](function(){const _0x2851ac=_0x5daeab;_0x39934c[_0x2851ac('0x2693')]({'title':'FreshsalesAccount\x20properly\x20tested','msg':_0x2851ac('0x1b13')});})[_0x5daeab('0x151d')](function(_0x30f52d){const _0x15e49a=_0x5daeab;_0x39934c['error']({'title':'FreshsalesAccount\x20properly\x20tested','msg':_0x30f52d['data']?_0x30f52d[_0x15e49a('0x4e8')]['message']?_0x30f52d[_0x15e49a('0x4e8')][_0x15e49a('0x1b86')]:JSON['stringify'](_0x30f52d[_0x15e49a('0x4e8')]):_0x30f52d[_0x15e49a('0xaab')]()});});}function _0x2c5bfe(_0x2d4d9a,_0x4dc1dc){const _0x249781=_0x7c212d,_0x18c0b0=_0x2b520a['confirm']()[_0x249781('0x134b')](_0x249781('0x1796')+_0x36f548()[_0x249781('0x13cf')](_0x249781('0x124e'))+'?')[_0x249781('0x1d03')](_0x249781('0x2061')+(_0x2d4d9a[_0x249781('0x1909')]||_0x249781('0x124e'))+_0x249781('0x1c78')+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x249781('0x1e13'))[_0x249781('0x1e25')](_0x4dc1dc)['ok']('OK')['cancel'](_0x249781('0x772'));_0x2b520a[_0x249781('0xb9')](_0x18c0b0)[_0x249781('0x11bf')](function(){_0xd646c0(_0x2d4d9a);},function(){const _0x2e8bdb=_0x249781;console[_0x2e8bdb('0xc78')](_0x2e8bdb('0x772'));});}let _0x26325c=!![],_0x5b0393=0x1;_0x41a1e0[_0x7c212d('0x2087')](_0x7c212d('0x842'),function(_0x4fa18f,_0x4d0cac){const _0x371baa=_0x7c212d;_0x26325c?_0x583f8f(function(){_0x26325c=![];}):(!_0x4d0cac&&(_0x5b0393=_0x31a4d8[_0x371baa('0x1f2a')]['page']),_0x4fa18f!==_0x4d0cac&&(_0x31a4d8[_0x371baa('0x1f2a')][_0x371baa('0x1c2')]=0x1),!_0x4fa18f&&(_0x31a4d8[_0x371baa('0x1f2a')][_0x371baa('0x1c2')]=_0x5b0393),_0x31a4d8[_0x371baa('0xfd4')]());});function _0x982e90(_0x32de7f){const _0x585d0b=_0x7c212d;_0x31a4d8[_0x585d0b('0x1277')]=_0x32de7f||{'count':0x0,'rows':[]};}function _0x446a84(){const _0x5c2094=_0x7c212d;_0x31a4d8[_0x5c2094('0x1f2a')][_0x5c2094('0x1393')]=(_0x31a4d8[_0x5c2094('0x1f2a')][_0x5c2094('0x1c2')]-0x1)*_0x31a4d8[_0x5c2094('0x1f2a')][_0x5c2094('0xd5c')],_0x23182f[_0x5c2094('0x4ee')](_0x5c2094('0xf45'))?_0x31a4d8[_0x5c2094('0x13f')]=_0x5612e0['intFreshsalesAccount']['get'](_0x31a4d8['query'],_0x982e90)[_0x5c2094('0x1549')]:(_0x31a4d8[_0x5c2094('0x1f2a')]['id']=_0x31a4d8[_0x5c2094('0x25bc')]['id'],_0x31a4d8[_0x5c2094('0x1f2a')][_0x5c2094('0xe6')]=_0x5c2094('0xfab'),_0x31a4d8[_0x5c2094('0x13f')]=_0x5612e0[_0x5c2094('0x25bc')]['getResources'](_0x31a4d8[_0x5c2094('0x1f2a')],_0x982e90)[_0x5c2094('0x1549')]);}function _0x41e208(_0x47bfe7,_0x10df35){const _0x467105=_0x7c212d;_0x2b520a[_0x467105('0xb9')]({'controller':'CreateOrEditFreshsalesAccountDialogController','controllerAs':'vm','templateUrl':_0xb4d802,'parent':angular['element'](_0x51b47e[_0x467105('0x1d2')]),'targetEvent':_0x47bfe7,'clickOutsideToClose':!![],'locals':{'freshsalesAccount':_0x10df35,'freshsalesAccounts':_0x31a4d8['freshsalesAccounts'][_0x467105('0x19b2')],'license':_0x31a4d8[_0x467105('0x17ff')],'setting':_0x31a4d8['setting'],'crudPermissions':_0x31a4d8[_0x467105('0xb25')]}});}function _0xd646c0(_0x4c272c){const _0x2e77a2=_0x7c212d;_0x5612e0[_0x2e77a2('0xda4')]['delete']({'id':_0x4c272c['id']})['$promise']['then'](function(){const _0x51bbd8=_0x2e77a2;_0x36f548()[_0x51bbd8('0x14a5')](_0x31a4d8['freshsalesAccounts']['rows'],{'id':_0x4c272c['id']}),_0x31a4d8[_0x51bbd8('0x1277')]['count']-=0x1,!_0x31a4d8['freshsalesAccounts'][_0x51bbd8('0x19b2')][_0x51bbd8('0x1e22')]&&_0x31a4d8[_0x51bbd8('0xfd4')](),_0x39934c[_0x51bbd8('0x2693')]({'title':_0x36f548()[_0x51bbd8('0x13cf')](_0x51bbd8('0x1a6a'))+_0x51bbd8('0x2113'),'msg':_0x4c272c['name']?_0x4c272c[_0x51bbd8('0x1909')]+'\x20has\x20been\x20deleted!':''});})[_0x2e77a2('0x151d')](function(_0x30e1b8){const _0x1fa40d=_0x2e77a2;if(_0x30e1b8['data']&&_0x30e1b8[_0x1fa40d('0x4e8')]['errors']&&_0x30e1b8['data'][_0x1fa40d('0x120f')][_0x1fa40d('0x1e22')]){_0x31a4d8[_0x1fa40d('0x120f')]=_0x30e1b8[_0x1fa40d('0x4e8')][_0x1fa40d('0x120f')]||[{'message':_0x30e1b8[_0x1fa40d('0xaab')](),'type':_0x1fa40d('0xed5')}];for(let _0x50e274=0x0;_0x50e274<_0x30e1b8[_0x1fa40d('0x4e8')]['errors'][_0x1fa40d('0x1e22')];_0x50e274++){_0x39934c[_0x1fa40d('0x255')]({'title':_0x30e1b8['data']['errors'][_0x50e274][_0x1fa40d('0x19fd')],'msg':_0x30e1b8[_0x1fa40d('0x4e8')]['errors'][_0x50e274][_0x1fa40d('0x1b86')]});}}else _0x39934c[_0x1fa40d('0x255')]({'title':_0x30e1b8[_0x1fa40d('0xff9')]?'API:'+_0x30e1b8[_0x1fa40d('0xff9')]+_0x1fa40d('0xb0b')+_0x30e1b8[_0x1fa40d('0x212f')]:_0x1fa40d('0xed5'),'msg':_0x30e1b8[_0x1fa40d('0x4e8')]?JSON[_0x1fa40d('0x3e')](_0x30e1b8[_0x1fa40d('0x4e8')][_0x1fa40d('0x1b86')]):_0x30e1b8['message']||_0x30e1b8[_0x1fa40d('0xaab')]()});});}function _0x3478a3(){const _0x38b328=_0x7c212d,_0x10d358=angular[_0x38b328('0x6fb')](_0x31a4d8[_0x38b328('0xbe')]);return _0x31a4d8[_0x38b328('0xbe')]=[],_0x10d358;}function _0x5d3ae6(_0x137cf4){const _0x401892=_0x7c212d,_0xf714ee=_0x2b520a[_0x401892('0x132b')]()[_0x401892('0x134b')](_0x401892('0x7a2'))[_0x401892('0x1d03')](_0x401892('0x2061')+_0x31a4d8[_0x401892('0xbe')]['length']+_0x401892('0xac6')+_0x401892('0x1a'))[_0x401892('0xb2e')](_0x401892('0x2581'))[_0x401892('0x1e25')](_0x137cf4)['ok']('OK')[_0x401892('0x26c9')](_0x401892('0x772'));_0x2b520a['show'](_0xf714ee)[_0x401892('0x11bf')](function(){const _0x2488a8=_0x401892;_0x31a4d8[_0x2488a8('0xbe')]['forEach'](function(_0x20be63){_0xd646c0(_0x20be63);}),_0x31a4d8[_0x2488a8('0xbe')]=[];});}function _0x213915(){const _0x21bdad=_0x7c212d;_0x31a4d8[_0x21bdad('0xbe')]=[];}function _0x3adc02(){const _0xd2bea3=_0x7c212d;_0x31a4d8[_0xd2bea3('0xbe')]=_0x31a4d8[_0xd2bea3('0x1277')]['rows'];}}const _0x21a714=_0x365705;_0x75d8a2['$inject']=[_0x21d0f5('0x1b80'),_0x21d0f5('0xcbc'),'$location',_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0xb6b'),_0x21d0f5('0x142d'),_0x21d0f5('0x1f90'),_0x21d0f5('0x25cd'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1'),_0x21d0f5('0xb25')];function _0x75d8a2(_0x4b6849,_0x5e7b76,_0x340f08,_0x1a01a7,_0x307d47,_0x4f9f23,_0xef838f,_0x44bfb0,_0x20f344,_0x26eae4,_0xa0d859,_0x3d5b55,_0x2f2e7a,_0x3dd44f){const _0x1dad27=_0x21d0f5,_0x1f47bd=this;_0x1f47bd[_0x1dad27('0x32a')]=_0xa0d859[_0x1dad27('0x2428')](),_0x1f47bd['errors']=[],_0x1f47bd[_0x1dad27('0x23e1')]=_0x2f2e7a,_0x1f47bd['license']=_0x3d5b55,_0x1f47bd['crudPermissions']=_0x3dd44f,_0x1f47bd[_0x1dad27('0x2c9')]={},_0x1f47bd[_0x1dad27('0x2834')]=_0x1f47bd['setting']&&_0x1f47bd[_0x1dad27('0x23e1')][_0x1dad27('0x1d4')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1f47bd[_0x1dad27('0x134b')]=_0x1dad27('0x137c'),_0x1f47bd['salesforceAccount']=angular[_0x1dad27('0x6fb')](_0x20f344),_0x1f47bd['salesforceAccounts']=_0x44bfb0,_0x1f47bd[_0x1dad27('0x102')]=![];!_0x1f47bd[_0x1dad27('0x25cd')]&&(_0x1f47bd[_0x1dad27('0x25cd')]={'type':_0x1dad27('0xd41'),'serverUrl':_0x340f08[_0x1dad27('0x1797')]()+_0x1dad27('0x16a1')+_0x340f08[_0x1dad27('0x14ec')]()+(_0x340f08[_0x1dad27('0x235b')]()?':'+_0x340f08[_0x1dad27('0x235b')]():'')},_0x1f47bd[_0x1dad27('0x134b')]='INTEGRATIONS.NEW_SALESFORCEACCOUNT',_0x1f47bd['newSalesforceAccount']=!![]);_0x1f47bd[_0x1dad27('0xe08')]=_0x16bf12,_0x1f47bd[_0x1dad27('0x11ea')]=_0x104ca3,_0x1f47bd[_0x1dad27('0x285c')]=_0x55da2e,_0x1f47bd[_0x1dad27('0x1bd1')]=_0x133242,_0x1f47bd['closeDialog']=_0xf57a55;function _0x16bf12(){const _0x2d1ca8=_0x1dad27;_0x1f47bd[_0x2d1ca8('0x120f')]=[],_0x26eae4['intSalesforceAccount'][_0x2d1ca8('0x259')](_0x1f47bd[_0x2d1ca8('0x25cd')])['$promise'][_0x2d1ca8('0x11bf')](function(_0x1acaef){const _0x112d48=_0x2d1ca8;_0x1f47bd[_0x112d48('0x1f90')][_0x112d48('0x880')](_0x1acaef['toJSON']()),_0xef838f[_0x112d48('0x2693')]({'title':'SalesforceAccount\x20properly\x20created','msg':_0x1f47bd['salesforceAccount'][_0x112d48('0x1909')]?_0x1f47bd[_0x112d48('0x25cd')]['name']+_0x112d48('0x7fb'):''}),_0xf57a55(_0x1acaef);})[_0x2d1ca8('0x151d')](function(_0x460587){const _0x365249=_0x2d1ca8;if(_0x460587['data']&&_0x460587[_0x365249('0x4e8')]['errors']&&_0x460587[_0x365249('0x4e8')]['errors']['length']){_0x1f47bd[_0x365249('0x120f')]=_0x460587[_0x365249('0x4e8')][_0x365249('0x120f')]||[{'message':_0x460587['toString'](),'type':_0x365249('0x5ff')}];for(let _0x28f8cb=0x0;_0x28f8cb<_0x460587[_0x365249('0x4e8')]['errors']['length'];_0x28f8cb+=0x1){_0xef838f[_0x365249('0x255')]({'title':_0x460587[_0x365249('0x4e8')]['errors'][_0x28f8cb][_0x365249('0x19fd')],'msg':_0x460587['data'][_0x365249('0x120f')][_0x28f8cb]['message']});}}else _0xef838f[_0x365249('0x255')]({'title':_0x460587[_0x365249('0xff9')]?_0x365249('0x574')+_0x460587[_0x365249('0xff9')]+_0x365249('0xb0b')+_0x460587[_0x365249('0x212f')]:_0x365249('0x5ff'),'msg':_0x460587[_0x365249('0x4e8')]?JSON['stringify'](_0x460587['data'][_0x365249('0x1b86')]):_0x460587['toString']()});});}function _0x104ca3(){const _0x31d062=_0x1dad27;_0x1f47bd[_0x31d062('0x120f')]=[],_0x26eae4[_0x31d062('0x1165')][_0x31d062('0x5ab')]({'id':_0x1f47bd[_0x31d062('0x25cd')]['id']},_0x1f47bd[_0x31d062('0x25cd')])[_0x31d062('0x1549')]['then'](function(_0x3ce353){const _0x3221a9=_0x31d062,_0x3c1607=_0x36f548()[_0x3221a9('0x1ad4')](_0x1f47bd[_0x3221a9('0x1f90')],{'id':_0x3ce353['id']});_0x3c1607&&_0x36f548()[_0x3221a9('0x47b')](_0x3c1607,_0x36f548()['pick'](_0x3ce353[_0x3221a9('0x2866')](),_0x36f548()['keys'](_0x3c1607))),_0xef838f[_0x3221a9('0x2693')]({'title':_0x3221a9('0x104e'),'msg':_0x1f47bd[_0x3221a9('0x25cd')][_0x3221a9('0x1909')]?_0x1f47bd[_0x3221a9('0x25cd')]['name']+_0x3221a9('0x1a78'):''}),_0xf57a55(_0x3ce353);})[_0x31d062('0x151d')](function(_0x57f7b){const _0x3196cd=_0x31d062;if(_0x57f7b['data']&&_0x57f7b[_0x3196cd('0x4e8')][_0x3196cd('0x120f')]&&_0x57f7b['data']['errors']['length']){_0x1f47bd[_0x3196cd('0x120f')]=_0x57f7b[_0x3196cd('0x4e8')][_0x3196cd('0x120f')]||[{'message':_0x57f7b[_0x3196cd('0xaab')](),'type':_0x3196cd('0x491')}];for(let _0x5a2a68=0x0;_0x5a2a68<_0x57f7b[_0x3196cd('0x4e8')][_0x3196cd('0x120f')][_0x3196cd('0x1e22')];_0x5a2a68++){_0xef838f['error']({'title':_0x57f7b[_0x3196cd('0x4e8')][_0x3196cd('0x120f')][_0x5a2a68][_0x3196cd('0x19fd')],'msg':_0x57f7b[_0x3196cd('0x4e8')][_0x3196cd('0x120f')][_0x5a2a68][_0x3196cd('0x1b86')]});}}else _0xef838f[_0x3196cd('0x255')]({'title':_0x57f7b['status']?_0x3196cd('0x574')+_0x57f7b[_0x3196cd('0xff9')]+_0x3196cd('0xb0b')+_0x57f7b[_0x3196cd('0x212f')]:_0x3196cd('0x491'),'msg':_0x57f7b[_0x3196cd('0x4e8')]?JSON[_0x3196cd('0x3e')](_0x57f7b[_0x3196cd('0x4e8')][_0x3196cd('0x1b86')]):_0x57f7b['toString']()});});}function _0x55da2e(_0x3d47ef){const _0x259636=_0x1dad27;_0x1f47bd[_0x259636('0x120f')]=[];const _0x119332=_0x1a01a7['confirm']()['title'](_0x259636('0x1fa9'))[_0x259636('0x252a')](_0x259636('0x9cb'))[_0x259636('0xb2e')](_0x259636('0x22ba'))['ok'](_0x259636('0x1167'))[_0x259636('0x26c9')](_0x259636('0x784'))[_0x259636('0x1e25')](_0x3d47ef);_0x1a01a7[_0x259636('0xb9')](_0x119332)['then'](function(){const _0x3a0a42=_0x259636;_0x26eae4['intSalesforceAccount']['delete']({'id':_0x1f47bd[_0x3a0a42('0x25cd')]['id']})[_0x3a0a42('0x1549')][_0x3a0a42('0x11bf')](function(){const _0x352acf=_0x3a0a42;_0x36f548()[_0x352acf('0x14a5')](_0x1f47bd[_0x352acf('0x1f90')],{'id':_0x1f47bd['salesforceAccount']['id']}),_0xef838f[_0x352acf('0x2693')]({'title':_0x352acf('0x1aae'),'msg':(_0x1f47bd[_0x352acf('0x25cd')][_0x352acf('0x1909')]||_0x352acf('0x25cd'))+_0x352acf('0x433')}),_0xf57a55(_0x1f47bd['salesforceAccount']);})[_0x3a0a42('0x151d')](function(_0x43cf7c){const _0x1f9809=_0x3a0a42;if(_0x43cf7c[_0x1f9809('0x4e8')]&&_0x43cf7c[_0x1f9809('0x4e8')][_0x1f9809('0x120f')]&&_0x43cf7c[_0x1f9809('0x4e8')][_0x1f9809('0x120f')][_0x1f9809('0x1e22')]){_0x1f47bd[_0x1f9809('0x120f')]=_0x43cf7c[_0x1f9809('0x4e8')][_0x1f9809('0x120f')]||[{'message':_0x43cf7c[_0x1f9809('0xaab')](),'type':'api.intSalesforceAccount.delete'}];for(let _0x447d13=0x0;_0x447d13<_0x43cf7c[_0x1f9809('0x4e8')][_0x1f9809('0x120f')][_0x1f9809('0x1e22')];_0x447d13++){_0xef838f[_0x1f9809('0x255')]({'title':_0x43cf7c[_0x1f9809('0x4e8')][_0x1f9809('0x120f')][_0x447d13][_0x1f9809('0x19fd')],'msg':_0x43cf7c[_0x1f9809('0x4e8')][_0x1f9809('0x120f')][_0x447d13]['message']});}}else _0xef838f['error']({'title':_0x43cf7c[_0x1f9809('0xff9')]?_0x1f9809('0x574')+_0x43cf7c[_0x1f9809('0xff9')]+'\x20-\x20'+_0x43cf7c['statusText']:_0x1f9809('0x1416'),'msg':_0x43cf7c[_0x1f9809('0x4e8')]?JSON[_0x1f9809('0x3e')](_0x43cf7c[_0x1f9809('0x4e8')][_0x1f9809('0x1b86')]):_0x43cf7c[_0x1f9809('0x1b86')]||_0x43cf7c['toString']()});});},function(){});}function _0x133242(_0x5a3a30){return _0x5a3a30===null?undefined:new Date(_0x5a3a30);}function _0xf57a55(_0x354b6f){const _0xe42203=_0x1dad27;_0x1a01a7[_0xe42203('0x237e')](_0x354b6f);}}const _0x211cdd=_0x75d8a2,_0x33df56=_0x351988['p']+_0x21d0f5('0x674'),_0x4485fc=_0x351988['p']+_0x21d0f5('0x2416');_0xb4b7f[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),_0x21d0f5('0x12a5'),_0x21d0f5('0x142d'),_0x21d0f5('0x1150')];function _0xb4b7f(_0x622f9b,_0x28f4be,_0x14cd31,_0x5a5e98,_0x4228d8){const _0x1c1d14=_0x21d0f5,_0x3e5093=this;_0x3e5093[_0x1c1d14('0x32a')]=_0x4228d8[_0x1c1d14('0x2428')](),_0x3e5093[_0x1c1d14('0x25cd')]={},_0x3e5093['salesforceConfiguration']={},_0x3e5093[_0x1c1d14('0x2766')]=[],_0x3e5093[_0x1c1d14('0x830')]=-0x1,_0x3e5093[_0x1c1d14('0xb25')],_0x3e5093[_0x1c1d14('0x286f')]=_0x5f3e44,_0x3e5093[_0x1c1d14('0x7fe')]=_0x537a07,_0x3e5093[_0x1c1d14('0x1b69')]=_0xd014d2,_0x3e5093['deleteSalesforceConfiguration']=_0x230338,_0x3e5093[_0x1c1d14('0xf57')]=_0x4a42d2;function _0x4a42d2(){const _0x126b55=_0x1c1d14;return _0x14cd31['intSalesforceConfiguration'][_0x126b55('0x5ab')]({'id':_0x3e5093[_0x126b55('0x20d3')]['id']},_0x3e5093[_0x126b55('0x20d3')])[_0x126b55('0x1549')][_0x126b55('0x11bf')](function(){const _0x1cf2f2=_0x126b55;_0x5a5e98[_0x1cf2f2('0x2693')]({'title':'Module\x20updated!','msg':_0x1cf2f2('0xf67')});})[_0x126b55('0x151d')](function(_0x30e196){const _0x47d54a=_0x126b55;_0x5a5e98[_0x47d54a('0x255')]({'title':_0x30e196[_0x47d54a('0xff9')]?_0x47d54a('0x574')+_0x30e196['status']+_0x47d54a('0xb0b')+_0x30e196['statusText']:_0x47d54a('0x131f'),'msg':_0x30e196[_0x47d54a('0x4e8')]?JSON['stringify'](_0x30e196['data']):_0x30e196['toString']()});});}function _0x5f3e44(_0x179cdd,_0x53a44c){const _0x331d3f=_0x1c1d14;_0x3e5093[_0x331d3f('0x25cd')]=_0x179cdd,_0x3e5093[_0x331d3f('0xb25')]=typeof _0x53a44c!=='undefined'?_0x53a44c:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x14cd31[_0x331d3f('0x1165')][_0x331d3f('0x26af')]({'id':_0x3e5093[_0x331d3f('0x25cd')]['id'],'sort':_0x331d3f('0x1c74')})[_0x331d3f('0x1549')][_0x331d3f('0x11bf')](function(_0x4f6912){const _0x538617=_0x331d3f;return _0x3e5093[_0x538617('0x2766')]=_0x4f6912[_0x538617('0x19b2')]?_0x4f6912['rows']:[],_0x3e5093[_0x538617('0x2766')][_0x538617('0x1e22')]&&_0x3e5093[_0x538617('0x7fe')](0x0),_0x14cd31[_0x538617('0xb0')][_0x538617('0xbaa')]({'nolimit':!![],'sort':_0x538617('0x1909')})[_0x538617('0x1549')];})[_0x331d3f('0x11bf')](function(_0x45aae2){const _0x17dc39=_0x331d3f;_0x3e5093[_0x17dc39('0x1700')]=_0x45aae2[_0x17dc39('0x19b2')]?_0x45aae2[_0x17dc39('0x19b2')]:[],_0x3e5093[_0x17dc39('0x90')]=_0x36f548()[_0x17dc39('0x2130')](_0x3e5093['variables'],'id');})[_0x331d3f('0x151d')](function(_0x3dcbdd){const _0x19ff52=_0x331d3f;_0x5a5e98[_0x19ff52('0x255')]({'title':_0x3dcbdd['status']?_0x19ff52('0x574')+_0x3dcbdd['status']+_0x19ff52('0xb0b')+_0x3dcbdd[_0x19ff52('0x212f')]:_0x19ff52('0x2752'),'msg':_0x3dcbdd[_0x19ff52('0x4e8')]?JSON[_0x19ff52('0x3e')](_0x3dcbdd[_0x19ff52('0x4e8')]):_0x3dcbdd[_0x19ff52('0xaab')]()});});}function _0x537a07(_0x4b12d8){const _0x5c3759=_0x1c1d14;_0x3e5093[_0x5c3759('0x20d3')]=_0x3e5093[_0x5c3759('0x2766')][_0x4b12d8],_0x3e5093[_0x5c3759('0x830')]=_0x4b12d8,_0x14cd31[_0x5c3759('0x1188')][_0x5c3759('0xace')]({'id':_0x3e5093['salesforceConfiguration']['id']})[_0x5c3759('0x1549')][_0x5c3759('0x11bf')](function(_0xfe548f){const _0x2500c8=_0x5c3759;return _0x3e5093[_0x2500c8('0x1318')]=_0xfe548f[_0x2500c8('0x19b2')]?_0xfe548f[_0x2500c8('0x19b2')]:[],_0x14cd31[_0x2500c8('0x1188')][_0x2500c8('0x20e8')]({'id':_0x3e5093[_0x2500c8('0x20d3')]['id']})[_0x2500c8('0x1549')];})[_0x5c3759('0x11bf')](function(_0x1306d3){const _0xa6e0=_0x5c3759;return _0x3e5093[_0xa6e0('0xe12')]=_0x1306d3['rows']?_0x1306d3[_0xa6e0('0x19b2')]:[],_0x14cd31[_0xa6e0('0x1188')][_0xa6e0('0x8ff')]({'id':_0x3e5093[_0xa6e0('0x20d3')]['id']})[_0xa6e0('0x1549')];})[_0x5c3759('0x11bf')](function(_0x174a6a){const _0x554ae5=_0x5c3759;_0x3e5093[_0x554ae5('0x1067')]=_0x174a6a[_0x554ae5('0x19b2')]?_0x174a6a['rows']:[];})[_0x5c3759('0x151d')](function(_0xe89dd3){const _0xacc867=_0x5c3759;_0x5a5e98[_0xacc867('0x255')]({'title':_0xe89dd3['status']?_0xacc867('0x574')+_0xe89dd3[_0xacc867('0xff9')]+'\x20-\x20'+_0xe89dd3[_0xacc867('0x212f')]:_0xacc867('0x1023'),'msg':_0xe89dd3['data']?JSON['stringify'](_0xe89dd3[_0xacc867('0x4e8')]):_0xe89dd3[_0xacc867('0xaab')]()});});}function _0xd014d2(_0x1440cd,_0x32fa02){const _0x372847=_0x1c1d14;_0x622f9b[_0x372847('0xb9')]({'controller':'CreateOrEditSalesforceConfigurationDialogController','controllerAs':'vm','templateUrl':_0x33df56,'parent':angular[_0x372847('0x1e73')](_0x28f4be[_0x372847('0x1d2')]),'targetEvent':_0x1440cd,'clickOutsideToClose':!![],'locals':{'salesforceConfiguration':_0x32fa02,'configurations':_0x3e5093['configurations'],'license':null,'setting':null,'crudPermissions':_0x3e5093[_0x372847('0xb25')]}})['finally'](function(){_0x3e5093['getSalesforceConfiguration'](0x0);});}function _0x230338(_0x1cd71d,_0x36ff7f){const _0x50b37e=_0x1c1d14,_0x51321b=_0x622f9b['confirm']()[_0x50b37e('0x134b')](_0x50b37e('0x626'))['htmlContent'](_0x50b37e('0x2061')+(_0x36ff7f[_0x50b37e('0x1909')]||_0x50b37e('0x20d3'))+_0x50b37e('0x1c78')+_0x50b37e('0x1a'))[_0x50b37e('0xb2e')](_0x50b37e('0x1c49'))[_0x50b37e('0x1e25')](_0x1cd71d)['ok']('OK')['cancel'](_0x50b37e('0x772'));_0x622f9b[_0x50b37e('0xb9')](_0x51321b)['then'](function(){const _0x483d0f=_0x50b37e;_0x14cd31[_0x483d0f('0x1188')][_0x483d0f('0x2088')]({'id':_0x36ff7f['id']})[_0x483d0f('0x1549')][_0x483d0f('0x11bf')](function(){const _0x238bd0=_0x483d0f;_0x36f548()[_0x238bd0('0x14a5')](_0x3e5093[_0x238bd0('0x2766')],{'id':_0x36ff7f['id']}),_0x5a5e98[_0x238bd0('0x2693')]({'title':_0x238bd0('0x27e7'),'msg':_0x36ff7f['name']?_0x36ff7f['name']+_0x238bd0('0x433'):''});})[_0x483d0f('0x151d')](function(_0x12441e){const _0x4db4f8=_0x483d0f;_0x5a5e98[_0x4db4f8('0x255')]({'title':_0x12441e[_0x4db4f8('0xff9')]?_0x4db4f8('0x574')+_0x12441e[_0x4db4f8('0xff9')]+_0x4db4f8('0xb0b')+_0x12441e['statusText']:'SYSTEM:DELETECONFIGURATION','msg':_0x12441e[_0x4db4f8('0x4e8')]?JSON[_0x4db4f8('0x3e')](_0x12441e[_0x4db4f8('0x4e8')]):_0x12441e[_0x4db4f8('0xaab')]()});})['finally'](function(){const _0x36e928=_0x483d0f;_0x3e5093[_0x36e928('0x7fe')](0x0);});},function(){const _0x575ac3=_0x50b37e;console[_0x575ac3('0xc78')](_0x575ac3('0x772'));});}_0x3e5093['selectedSubjects']=[],_0x3e5093[_0x1c1d14('0x1ec8')]=_0x12cc09,_0x3e5093[_0x1c1d14('0x14ae')]=_0x205374,_0x3e5093['deleteSelectedSubjects']=_0x4fbddd;function _0x12cc09(_0xeb944d,_0x43ab9a){const _0x112cb3=_0x1c1d14;_0x622f9b[_0x112cb3('0xb9')]({'controller':_0x112cb3('0x24db'),'controllerAs':'vm','templateUrl':_0x4485fc,'parent':angular[_0x112cb3('0x1e73')](_0x28f4be[_0x112cb3('0x1d2')]),'targetEvent':_0xeb944d,'clickOutsideToClose':!![],'locals':{'type':'subject','item':_0x43ab9a,'items':_0x3e5093[_0x112cb3('0x1318')],'configuration':_0x3e5093[_0x112cb3('0x20d3')],'account':_0x3e5093['salesforceAccount'],'license':null,'setting':null,'crudPermissions':_0x3e5093[_0x112cb3('0xb25')]}});}function _0x36908a(_0x2e10e5){const _0x15f017=_0x1c1d14;_0x14cd31[_0x15f017('0x22fb')]['delete']({'id':_0x2e10e5['id']})[_0x15f017('0x1549')][_0x15f017('0x11bf')](function(){const _0x46a862=_0x15f017;_0x36f548()[_0x46a862('0x14a5')](_0x3e5093['subjects'],{'id':_0x2e10e5['id']}),_0x5a5e98['success']({'title':_0x46a862('0x1845'),'msg':'Subject\x20has\x20been\x20deleted!'});})[_0x15f017('0x151d')](function(_0x45cab3){const _0x3c67f8=_0x15f017;_0x5a5e98['error']({'title':_0x45cab3['status']?'API:'+_0x45cab3[_0x3c67f8('0xff9')]+_0x3c67f8('0xb0b')+_0x45cab3[_0x3c67f8('0x212f')]:'SYSTEM:DELETECONFIGURATIONFIELD','msg':_0x45cab3[_0x3c67f8('0x4e8')]?JSON['stringify'](_0x45cab3['data']):_0x45cab3[_0x3c67f8('0xaab')]()});});}function _0x205374(_0x4fc588,_0x4b2e4d){const _0x52ae57=_0x1c1d14,_0x439c47=_0x622f9b[_0x52ae57('0x132b')]()[_0x52ae57('0x134b')](_0x52ae57('0x98e'))['htmlContent'](_0x52ae57('0xb46')+_0x52ae57('0x1a'))[_0x52ae57('0xb2e')](_0x52ae57('0x259c'))[_0x52ae57('0x1e25')](_0x4fc588)['ok']('OK')[_0x52ae57('0x26c9')](_0x52ae57('0x772'));_0x622f9b[_0x52ae57('0xb9')](_0x439c47)[_0x52ae57('0x11bf')](function(){_0x36908a(_0x4b2e4d);},function(){const _0xa3ade9=_0x52ae57;console['log'](_0xa3ade9('0x772'));});}function _0x4fbddd(_0x4e8508){const _0x8da3fe=_0x1c1d14,_0x22b73a=_0x622f9b[_0x8da3fe('0x132b')]()[_0x8da3fe('0x134b')](_0x8da3fe('0x188d'))['htmlContent'](_0x8da3fe('0x2061')+_0x3e5093[_0x8da3fe('0x1151')][_0x8da3fe('0x1e22')]+_0x8da3fe('0xac6')+_0x8da3fe('0x1a'))[_0x8da3fe('0xb2e')](_0x8da3fe('0x1c7c'))[_0x8da3fe('0x1e25')](_0x4e8508)['ok']('OK')[_0x8da3fe('0x26c9')](_0x8da3fe('0x772'));_0x622f9b['show'](_0x22b73a)['then'](function(){const _0x1ff414=_0x8da3fe;_0x3e5093[_0x1ff414('0x1151')][_0x1ff414('0x1f88')](function(_0x5e0403){_0x36908a(_0x5e0403);}),_0x3e5093['selectedSubjects']=[];});}_0x3e5093[_0x1c1d14('0x73f')]=[],_0x3e5093[_0x1c1d14('0x25fe')]=_0x1ba264,_0x3e5093[_0x1c1d14('0x183b')]=_0x145e60,_0x3e5093[_0x1c1d14('0x1a3e')]=_0x5aab49;function _0x1ba264(_0x4060e1,_0x3215e3){const _0x525ee5=_0x1c1d14;_0x622f9b[_0x525ee5('0xb9')]({'controller':_0x525ee5('0x24db'),'controllerAs':'vm','templateUrl':_0x4485fc,'parent':angular['element'](_0x28f4be[_0x525ee5('0x1d2')]),'targetEvent':_0x4060e1,'clickOutsideToClose':!![],'locals':{'type':_0x525ee5('0x1659'),'item':_0x3215e3,'items':_0x3e5093[_0x525ee5('0xe12')],'configuration':_0x3e5093[_0x525ee5('0x20d3')],'account':_0x3e5093[_0x525ee5('0x25cd')],'license':null,'setting':null,'crudPermissions':_0x3e5093[_0x525ee5('0xb25')]}});}function _0x308b68(_0x29cb34){const _0x1cb131=_0x1c1d14;_0x14cd31[_0x1cb131('0x22fb')][_0x1cb131('0x2088')]({'id':_0x29cb34['id']})[_0x1cb131('0x1549')][_0x1cb131('0x11bf')](function(){const _0x451120=_0x1cb131;_0x36f548()['remove'](_0x3e5093[_0x451120('0xe12')],{'id':_0x29cb34['id']}),_0x5a5e98[_0x451120('0x2693')]({'title':_0x451120('0x1221'),'msg':_0x451120('0x40e')});})[_0x1cb131('0x151d')](function(_0x3db4b7){const _0xec250b=_0x1cb131;_0x5a5e98[_0xec250b('0x255')]({'title':_0x3db4b7[_0xec250b('0xff9')]?_0xec250b('0x574')+_0x3db4b7[_0xec250b('0xff9')]+'\x20-\x20'+_0x3db4b7[_0xec250b('0x212f')]:_0xec250b('0xc27'),'msg':_0x3db4b7[_0xec250b('0x4e8')]?JSON[_0xec250b('0x3e')](_0x3db4b7[_0xec250b('0x4e8')]):_0x3db4b7[_0xec250b('0xaab')]()});});}function _0x145e60(_0x375cbf,_0x3fd82d){const _0x4ea900=_0x1c1d14,_0x204512=_0x622f9b[_0x4ea900('0x132b')]()[_0x4ea900('0x134b')](_0x4ea900('0x46b'))[_0x4ea900('0x1d03')](_0x4ea900('0x48a')+_0x4ea900('0x1a'))[_0x4ea900('0xb2e')](_0x4ea900('0xd32'))['targetEvent'](_0x375cbf)['ok']('OK')[_0x4ea900('0x26c9')](_0x4ea900('0x772'));_0x622f9b[_0x4ea900('0xb9')](_0x204512)[_0x4ea900('0x11bf')](function(){_0x308b68(_0x3fd82d);},function(){const _0x5e7906=_0x4ea900;console[_0x5e7906('0xc78')]('CANCEL');});}function _0x5aab49(_0x2ab119){const _0x5554c8=_0x1c1d14,_0x3652ed=_0x622f9b[_0x5554c8('0x132b')]()['title'](_0x5554c8('0x1795'))[_0x5554c8('0x1d03')](_0x5554c8('0x2061')+_0x3e5093['selectedDescriptions'][_0x5554c8('0x1e22')]+'\x20selected'+_0x5554c8('0x1a'))[_0x5554c8('0xb2e')](_0x5554c8('0xade'))[_0x5554c8('0x1e25')](_0x2ab119)['ok']('OK')['cancel']('CANCEL');_0x622f9b['show'](_0x3652ed)[_0x5554c8('0x11bf')](function(){const _0x3701e8=_0x5554c8;_0x3e5093[_0x3701e8('0x73f')][_0x3701e8('0x1f88')](function(_0xc410f9){_0x308b68(_0xc410f9);}),_0x3e5093[_0x3701e8('0x73f')]=[];});}_0x3e5093[_0x1c1d14('0xfea')]=[],_0x3e5093['createOrEditField']=_0x41b2a9,_0x3e5093[_0x1c1d14('0x21c9')]=_0x5f214d,_0x3e5093[_0x1c1d14('0xd20')]=_0x2d1785;function _0x41b2a9(_0x345ee0,_0xe9b4c6){const _0x2502ae=_0x1c1d14;_0x622f9b['show']({'controller':'CreateOrEditSalesforceAccountItemDialogController','controllerAs':'vm','templateUrl':_0x4485fc,'parent':angular['element'](_0x28f4be[_0x2502ae('0x1d2')]),'targetEvent':_0x345ee0,'clickOutsideToClose':!![],'locals':{'type':_0x2502ae('0x485'),'item':_0xe9b4c6,'items':_0x3e5093['fields'],'configuration':_0x3e5093[_0x2502ae('0x20d3')],'account':_0x3e5093['salesforceAccount'],'license':null,'setting':null,'crudPermissions':_0x3e5093[_0x2502ae('0xb25')]}});}function _0x56d3a7(_0x18e4b2){const _0x419e92=_0x1c1d14;_0x14cd31[_0x419e92('0x22fb')][_0x419e92('0x2088')]({'id':_0x18e4b2['id']})[_0x419e92('0x1549')][_0x419e92('0x11bf')](function(){const _0x52ae1c=_0x419e92;_0x36f548()['remove'](_0x3e5093['fields'],{'id':_0x18e4b2['id']}),_0x5a5e98[_0x52ae1c('0x2693')]({'title':_0x52ae1c('0x4da'),'msg':_0x52ae1c('0x264f')});})[_0x419e92('0x151d')](function(_0x4decdf){const _0x40d282=_0x419e92;_0x5a5e98['error']({'title':_0x4decdf['status']?_0x40d282('0x574')+_0x4decdf['status']+'\x20-\x20'+_0x4decdf[_0x40d282('0x212f')]:_0x40d282('0xc27'),'msg':_0x4decdf['data']?JSON[_0x40d282('0x3e')](_0x4decdf[_0x40d282('0x4e8')]):_0x4decdf[_0x40d282('0xaab')]()});});}function _0x5f214d(_0x367d84,_0x396326){const _0x4d9905=_0x1c1d14,_0x17b526=_0x622f9b[_0x4d9905('0x132b')]()[_0x4d9905('0x134b')](_0x4d9905('0x915'))[_0x4d9905('0x1d03')](_0x4d9905('0xdc8')+_0x4d9905('0x1a'))['ariaLabel'](_0x4d9905('0xc52'))[_0x4d9905('0x1e25')](_0x367d84)['ok']('OK')['cancel'](_0x4d9905('0x772'));_0x622f9b[_0x4d9905('0xb9')](_0x17b526)[_0x4d9905('0x11bf')](function(){_0x56d3a7(_0x396326);},function(){const _0x3c9f82=_0x4d9905;console[_0x3c9f82('0xc78')](_0x3c9f82('0x772'));});}function _0x2d1785(_0x1388ca){const _0x61986e=_0x1c1d14,_0x1324fb=_0x622f9b[_0x61986e('0x132b')]()[_0x61986e('0x134b')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20fields?')[_0x61986e('0x1d03')](_0x61986e('0x2061')+_0x3e5093[_0x61986e('0xfea')][_0x61986e('0x1e22')]+_0x61986e('0xac6')+_0x61986e('0x1a'))[_0x61986e('0xb2e')](_0x61986e('0x15b8'))[_0x61986e('0x1e25')](_0x1388ca)['ok']('OK')['cancel'](_0x61986e('0x772'));_0x622f9b[_0x61986e('0xb9')](_0x1324fb)[_0x61986e('0x11bf')](function(){const _0x21467d=_0x61986e;_0x3e5093[_0x21467d('0xfea')][_0x21467d('0x1f88')](function(_0x203747){_0x56d3a7(_0x203747);}),_0x3e5093['selectedFields']=[];});}}const _0x75fb0f=_0xb4b7f;_0x25c6d0['$inject']=[_0x21d0f5('0x1b80'),_0x21d0f5('0xcbc'),'$location','$mdDialog','$q',_0x21d0f5('0xb6b'),_0x21d0f5('0x142d'),_0x21d0f5('0x2766'),_0x21d0f5('0x20d3'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),'license',_0x21d0f5('0x23e1'),_0x21d0f5('0xb25')];function _0x25c6d0(_0x26e7a3,_0x5f140c,_0x49cb46,_0x7bf41c,_0x2391a7,_0x341a2c,_0x52986c,_0x2a07dd,_0x40b616,_0x3c844b,_0x5a7db1,_0x596727,_0xb2c5cc,_0x218262){const _0x58b2d9=_0x21d0f5,_0x17d920=this;_0x17d920[_0x58b2d9('0x32a')]=_0x5a7db1[_0x58b2d9('0x2428')](),_0x17d920[_0x58b2d9('0x120f')]=[],_0x17d920[_0x58b2d9('0x23e1')]=_0xb2c5cc,_0x17d920[_0x58b2d9('0x17ff')]=_0x596727,_0x17d920[_0x58b2d9('0xb25')]=_0x218262,_0x17d920[_0x58b2d9('0x2c9')]={},_0x17d920[_0x58b2d9('0x2834')]=_0x17d920[_0x58b2d9('0x23e1')]&&_0x17d920[_0x58b2d9('0x23e1')][_0x58b2d9('0x1d4')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x17d920[_0x58b2d9('0x134b')]='INTEGRATIONS.EDIT_SALESFORCECONFIGURATION',_0x17d920[_0x58b2d9('0x20d3')]=angular[_0x58b2d9('0x6fb')](_0x40b616),_0x17d920['configurations']=_0x2a07dd,_0x17d920[_0x58b2d9('0x105c')]=![];!_0x17d920[_0x58b2d9('0x20d3')]&&(_0x17d920['salesforceConfiguration']={'channel':_0x58b2d9('0x1bc3'),'type':'inbound','ticketType':_0x58b2d9('0x237c')},_0x17d920[_0x58b2d9('0x134b')]='INTEGRATIONS.NEW_SALESFORCECONFIGURATION',_0x17d920[_0x58b2d9('0x105c')]=!![]);_0x17d920[_0x58b2d9('0xa3')]=_0x269c0e,_0x17d920['saveSalesforceConfiguration']=_0x281768,_0x17d920[_0x58b2d9('0x1368')]=_0x73f5d7,_0x17d920[_0x58b2d9('0x1bd1')]=_0x5599d2,_0x17d920[_0x58b2d9('0xc4e')]=_0x3314f4;function _0x269c0e(){const _0x4fcbce=_0x58b2d9;_0x17d920[_0x4fcbce('0x120f')]=[],_0x3c844b[_0x4fcbce('0x1165')][_0x4fcbce('0x157f')]({'id':_0x5f140c[_0x4fcbce('0x1ab3')]['id']},_0x17d920[_0x4fcbce('0x20d3')])['$promise'][_0x4fcbce('0x11bf')](function(_0x1cbbc2){const _0x1c722d=_0x4fcbce;_0x17d920['configurations'][_0x1c722d('0x880')](_0x1cbbc2['toJSON']()),_0x52986c[_0x1c722d('0x2693')]({'title':'SalesforceConfiguration\x20properly\x20created','msg':_0x17d920[_0x1c722d('0x20d3')]['name']?_0x17d920['salesforceConfiguration'][_0x1c722d('0x1909')]+_0x1c722d('0x7fb'):''}),_0x3314f4(_0x1cbbc2);})[_0x4fcbce('0x151d')](function(_0x3d3ea0){const _0x11b136=_0x4fcbce;if(_0x3d3ea0[_0x11b136('0x4e8')]&&_0x3d3ea0[_0x11b136('0x4e8')]['errors']&&_0x3d3ea0[_0x11b136('0x4e8')][_0x11b136('0x120f')][_0x11b136('0x1e22')]){_0x17d920[_0x11b136('0x120f')]=_0x3d3ea0[_0x11b136('0x4e8')]['errors']||[{'message':_0x3d3ea0[_0x11b136('0xaab')](),'type':'api.intSalesforceConfiguration.save'}];for(let _0x1b33be=0x0;_0x1b33be<_0x3d3ea0['data'][_0x11b136('0x120f')][_0x11b136('0x1e22')];_0x1b33be+=0x1){_0x52986c[_0x11b136('0x255')]({'title':_0x3d3ea0[_0x11b136('0x4e8')][_0x11b136('0x120f')][_0x1b33be][_0x11b136('0x19fd')],'msg':_0x3d3ea0[_0x11b136('0x4e8')][_0x11b136('0x120f')][_0x1b33be][_0x11b136('0x1b86')]});}}else _0x52986c[_0x11b136('0x255')]({'title':_0x3d3ea0['status']?_0x11b136('0x574')+_0x3d3ea0[_0x11b136('0xff9')]+_0x11b136('0xb0b')+_0x3d3ea0['statusText']:'api.intSalesforceConfiguration.save','msg':_0x3d3ea0[_0x11b136('0x4e8')]?JSON['stringify'](_0x3d3ea0[_0x11b136('0x4e8')][_0x11b136('0x1b86')]):_0x3d3ea0['toString']()});});}function _0x281768(){const _0x4367b1=_0x58b2d9;_0x17d920[_0x4367b1('0x120f')]=[],_0x3c844b['intSalesforceConfiguration'][_0x4367b1('0x5ab')]({'id':_0x17d920[_0x4367b1('0x20d3')]['id']},_0x17d920['salesforceConfiguration'])[_0x4367b1('0x1549')][_0x4367b1('0x11bf')](function(_0x810e83){const _0x167dfa=_0x4367b1,_0xa3f146=_0x36f548()[_0x167dfa('0x1ad4')](_0x17d920[_0x167dfa('0x2766')],{'id':_0x810e83['id']});_0xa3f146&&_0x36f548()[_0x167dfa('0x47b')](_0xa3f146,_0x36f548()['pick'](_0x810e83['toJSON'](),_0x36f548()[_0x167dfa('0xe22')](_0xa3f146))),_0x52986c[_0x167dfa('0x2693')]({'title':_0x167dfa('0x1ebe'),'msg':_0x17d920[_0x167dfa('0x20d3')][_0x167dfa('0x1909')]?_0x17d920['salesforceConfiguration']['name']+_0x167dfa('0x1a78'):''}),_0x3314f4(_0x810e83);})['catch'](function(_0x45c663){const _0x39a575=_0x4367b1;if(_0x45c663[_0x39a575('0x4e8')]&&_0x45c663['data'][_0x39a575('0x120f')]&&_0x45c663[_0x39a575('0x4e8')]['errors'][_0x39a575('0x1e22')]){_0x17d920[_0x39a575('0x120f')]=_0x45c663[_0x39a575('0x4e8')][_0x39a575('0x120f')]||[{'message':_0x45c663[_0x39a575('0xaab')](),'type':_0x39a575('0x2624')}];for(let _0x41f3c0=0x0;_0x41f3c0<_0x45c663['data']['errors'][_0x39a575('0x1e22')];_0x41f3c0++){_0x52986c['error']({'title':_0x45c663['data'][_0x39a575('0x120f')][_0x41f3c0][_0x39a575('0x19fd')],'msg':_0x45c663[_0x39a575('0x4e8')][_0x39a575('0x120f')][_0x41f3c0][_0x39a575('0x1b86')]});}}else _0x52986c['error']({'title':_0x45c663[_0x39a575('0xff9')]?_0x39a575('0x574')+_0x45c663[_0x39a575('0xff9')]+_0x39a575('0xb0b')+_0x45c663[_0x39a575('0x212f')]:_0x39a575('0x2624'),'msg':_0x45c663[_0x39a575('0x4e8')]?JSON[_0x39a575('0x3e')](_0x45c663[_0x39a575('0x4e8')][_0x39a575('0x1b86')]):_0x45c663[_0x39a575('0xaab')]()});});}function _0x73f5d7(_0xc197a5){const _0x10c033=_0x58b2d9;_0x17d920[_0x10c033('0x120f')]=[];const _0x346c05=_0x7bf41c[_0x10c033('0x132b')]()[_0x10c033('0x134b')](_0x10c033('0x1fa9'))['content']('The\x20salesforceConfiguration\x20will\x20be\x20deleted.')['ariaLabel'](_0x10c033('0x1361'))['ok'](_0x10c033('0x1167'))[_0x10c033('0x26c9')](_0x10c033('0x784'))[_0x10c033('0x1e25')](_0xc197a5);_0x7bf41c[_0x10c033('0xb9')](_0x346c05)[_0x10c033('0x11bf')](function(){const _0x430666=_0x10c033;_0x3c844b[_0x430666('0x1188')][_0x430666('0x2088')]({'id':_0x17d920[_0x430666('0x20d3')]['id']})['$promise'][_0x430666('0x11bf')](function(){const _0x531cf0=_0x430666;_0x36f548()['remove'](_0x17d920[_0x531cf0('0x2766')],{'id':_0x17d920[_0x531cf0('0x20d3')]['id']}),_0x52986c[_0x531cf0('0x2693')]({'title':_0x531cf0('0x47c'),'msg':(_0x17d920[_0x531cf0('0x20d3')]['name']||_0x531cf0('0x20d3'))+_0x531cf0('0x433')}),_0x3314f4(_0x17d920['salesforceConfiguration']);})[_0x430666('0x151d')](function(_0x7d1a15){const _0x1ea613=_0x430666;if(_0x7d1a15['data']&&_0x7d1a15[_0x1ea613('0x4e8')][_0x1ea613('0x120f')]&&_0x7d1a15[_0x1ea613('0x4e8')][_0x1ea613('0x120f')][_0x1ea613('0x1e22')]){_0x17d920[_0x1ea613('0x120f')]=_0x7d1a15['data'][_0x1ea613('0x120f')]||[{'message':_0x7d1a15['toString'](),'type':_0x1ea613('0x5d4')}];for(let _0x35c33c=0x0;_0x35c33c<_0x7d1a15[_0x1ea613('0x4e8')][_0x1ea613('0x120f')]['length'];_0x35c33c++){_0x52986c[_0x1ea613('0x255')]({'title':_0x7d1a15[_0x1ea613('0x4e8')][_0x1ea613('0x120f')][_0x35c33c][_0x1ea613('0x19fd')],'msg':_0x7d1a15['data'][_0x1ea613('0x120f')][_0x35c33c][_0x1ea613('0x1b86')]});}}else _0x52986c[_0x1ea613('0x255')]({'title':_0x7d1a15[_0x1ea613('0xff9')]?_0x1ea613('0x574')+_0x7d1a15[_0x1ea613('0xff9')]+_0x1ea613('0xb0b')+_0x7d1a15[_0x1ea613('0x212f')]:_0x1ea613('0x5d4'),'msg':_0x7d1a15[_0x1ea613('0x4e8')]?JSON[_0x1ea613('0x3e')](_0x7d1a15['data']['message']):_0x7d1a15['message']||_0x7d1a15[_0x1ea613('0xaab')]()});});},function(){});}function _0x5599d2(_0x5a4b58){return _0x5a4b58===null?undefined:new Date(_0x5a4b58);}function _0x3314f4(_0x2d45ff){_0x7bf41c['hide'](_0x2d45ff);}}const _0x1123ca=_0x25c6d0;_0xe82f56[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0xcbc'),_0x21d0f5('0x16b9'),_0x21d0f5('0x1ca2'),'toasty','configuration',_0x21d0f5('0x22'),_0x21d0f5('0xa9c'),_0x21d0f5('0x2565'),_0x21d0f5('0x19fd'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),_0x21d0f5('0xb25')];function _0xe82f56(_0x2ab134,_0x24f6d9,_0x3afd57,_0x2900f5,_0xfac026,_0x22e34a,_0x4d9c54,_0x10e63f,_0x1572c6,_0x2fcb30,_0x245a07,_0x29d129,_0x21cee0){const _0x38d434=_0x21d0f5,_0x61b2ef=this;_0x61b2ef[_0x38d434('0x32a')]=_0x29d129[_0x38d434('0x2428')](),_0x61b2ef[_0x38d434('0x120f')]=[],_0x61b2ef[_0x38d434('0x134b')]=_0x38d434('0x1e35')+_0x36f548()[_0x38d434('0x1a31')](_0x2fcb30),_0x61b2ef['item']=angular[_0x38d434('0x6fb')](_0x10e63f),_0x61b2ef['items']=_0x4d9c54,_0x61b2ef[_0x38d434('0x19fd')]=_0x2fcb30,_0x61b2ef[_0x38d434('0xb25')]=_0x21cee0,_0x61b2ef['newItem']=![];!_0x61b2ef[_0x38d434('0xa9c')]&&(_0x61b2ef[_0x38d434('0xa9c')]={'type':'string'},_0x61b2ef['item'][_0x36f548()[_0x38d434('0x22c2')](_0x2fcb30)+'Id']=_0x22e34a['id'],_0x61b2ef[_0x38d434('0x134b')]=_0x38d434('0x26b9')+_0x36f548()['toUpper'](_0x2fcb30),_0x61b2ef[_0x38d434('0x1f63')]=!![]);_0x61b2ef['addNewItem']=_0x1cdd5a,_0x61b2ef[_0x38d434('0x265e')]=_0x53917b,_0x61b2ef[_0x38d434('0x2639')]=_0x411b7d,_0x61b2ef[_0x38d434('0x6e1')]=_0xae3a32,_0x61b2ef[_0x38d434('0xc4e')]=_0x463794,_0x245a07[_0x38d434('0xb0')][_0x38d434('0xbaa')]({'nolimit':!![]})[_0x38d434('0x1549')][_0x38d434('0x11bf')](function(_0x4805a5){const _0x463fe5=_0x38d434;return _0x61b2ef['variables']=_0x4805a5[_0x463fe5('0x19b2')]?_0x4805a5[_0x463fe5('0x19b2')]:[],_0x245a07[_0x463fe5('0x1313')][_0x463fe5('0x19a5')]()['$promise'];})[_0x38d434('0x11bf')](function(_0x301352){const _0x4e7b37=_0x38d434;return _0x61b2ef[_0x4e7b37('0x1720')]=_0x36f548()[_0x4e7b37('0x1271')](_0x36f548()[_0x4e7b37('0xe22')](_0x301352),[_0x4e7b37('0x1549'),_0x4e7b37('0x1619'),_0x4e7b37('0x1779'),_0x4e7b37('0x14ea'),'sourceid']),_0x61b2ef['voiceAgentReportColumns'][_0x4e7b37('0x105d')](_0x4e7b37('0xbf8')),_0x245a07['voiceDialReport'][_0x4e7b37('0x19a5')]()[_0x4e7b37('0x1549')];})['then'](function(_0x312523){const _0x3afb39=_0x38d434;_0x61b2ef[_0x3afb39('0x77c')]=_0x36f548()[_0x3afb39('0x1271')](_0x36f548()[_0x3afb39('0xe22')](_0x312523),['$promise',_0x3afb39('0x1619'),_0x3afb39('0x1779'),_0x3afb39('0x14ea'),_0x3afb39('0x14b4')]),_0x61b2ef['voiceDialReportColumns'][_0x3afb39('0x105d')](_0x3afb39('0xbf8'));})[_0x38d434('0x151d')](function(_0x3e5525){const _0x1ccdde=_0x38d434;_0xfac026[_0x1ccdde('0x255')]({'title':_0x3e5525['status']?_0x1ccdde('0x574')+_0x3e5525[_0x1ccdde('0xff9')]+_0x1ccdde('0xb0b')+_0x3e5525[_0x1ccdde('0x212f')]:_0x1ccdde('0x2010'),'msg':_0x3e5525[_0x1ccdde('0x4e8')]?JSON[_0x1ccdde('0x3e')](_0x3e5525[_0x1ccdde('0x4e8')]):_0x3e5525['toString']()});}),_0x245a07[_0x38d434('0x1165')][_0x38d434('0x8ff')]({'id':_0x1572c6['id'],'ticketType':_0x22e34a[_0x38d434('0x1bd2')]?_0x22e34a[_0x38d434('0x1bd2')]:undefined})[_0x38d434('0x1549')][_0x38d434('0x11bf')](function(_0x52246c){const _0x1e31d1=_0x38d434;_0x61b2ef[_0x1e31d1('0xf69')]=!![],_0x61b2ef['fields']=_0x52246c[_0x1e31d1('0x19b2')]?_0x52246c['rows']:[],_0x61b2ef[_0x1e31d1('0xa9c')][_0x1e31d1('0x223a')]&&(_0x61b2ef[_0x1e31d1('0x2830')]=_0x36f548()[_0x1e31d1('0x1ad4')](_0x61b2ef[_0x1e31d1('0x1067')],{'id':_0x61b2ef[_0x1e31d1('0xa9c')]['idField']}));})['catch'](function(_0x2e680e){const _0x181339=_0x38d434;_0x61b2ef['accountConnected']=![],console[_0x181339('0x255')](_0x2e680e);});function _0x1cdd5a(){const _0xb952c7=_0x38d434;_0x61b2ef['errors']=[],_0x61b2ef[_0xb952c7('0x2830')]&&(_0x61b2ef[_0xb952c7('0xa9c')]['idField']=_0x61b2ef[_0xb952c7('0x2830')]['id'],_0x61b2ef['item'][_0xb952c7('0x1992')]=_0x61b2ef[_0xb952c7('0x2830')]['name'],_0x61b2ef[_0xb952c7('0xa9c')][_0xb952c7('0x2830')]=_0x61b2ef[_0xb952c7('0x2830')]['custom']),_0x245a07[_0xb952c7('0x22fb')]['save'](_0x61b2ef[_0xb952c7('0xa9c')])['$promise'][_0xb952c7('0x11bf')](function(_0x2623f7){const _0x4d4305=_0xb952c7;_0x61b2ef[_0x4d4305('0x22')][_0x4d4305('0x880')](_0x2623f7),_0xfac026[_0x4d4305('0x2693')]({'title':_0x36f548()[_0x4d4305('0x22c2')](_0x2fcb30)+'\x20properly\x20created','msg':_0x36f548()['capitalize'](_0x2fcb30)+_0x4d4305('0x7fb')}),_0x463794();})[_0xb952c7('0x151d')](function(_0x195fa9){const _0x27caaf=_0xb952c7;console[_0x27caaf('0x255')](_0x195fa9),_0x61b2ef[_0x27caaf('0x120f')]=_0x195fa9[_0x27caaf('0x4e8')]['errors']||[{'message':_0x195fa9[_0x27caaf('0xaab')](),'type':_0x27caaf('0x20a1')}];});}function _0x53917b(){const _0x4e0bb5=_0x38d434;_0x61b2ef[_0x4e0bb5('0x120f')]=[],_0x61b2ef[_0x4e0bb5('0x2830')]&&(_0x61b2ef['item'][_0x4e0bb5('0x223a')]=_0x61b2ef[_0x4e0bb5('0x2830')]['id'],_0x61b2ef[_0x4e0bb5('0xa9c')][_0x4e0bb5('0x1992')]=_0x61b2ef[_0x4e0bb5('0x2830')][_0x4e0bb5('0x1909')],_0x61b2ef['item'][_0x4e0bb5('0x2830')]=_0x61b2ef['customField'][_0x4e0bb5('0xa8d')]),_0x245a07[_0x4e0bb5('0x22fb')]['update']({'id':_0x61b2ef['item']['id']},_0x61b2ef[_0x4e0bb5('0xa9c')])['$promise'][_0x4e0bb5('0x11bf')](function(_0x3d02ab){const _0x15c283=_0x4e0bb5,_0x1e8064=_0x36f548()[_0x15c283('0x1ad4')](_0x61b2ef[_0x15c283('0x22')],{'id':_0x3d02ab['id']});_0x1e8064&&_0x36f548()['merge'](_0x1e8064,_0x3d02ab),_0xfac026[_0x15c283('0x2693')]({'title':_0x36f548()[_0x15c283('0x22c2')](_0x2fcb30)+_0x15c283('0x157b'),'msg':_0x36f548()[_0x15c283('0x22c2')](_0x2fcb30)+_0x15c283('0x1a78')}),_0x463794();})[_0x4e0bb5('0x151d')](function(_0x196abd){const _0x38fac2=_0x4e0bb5;console[_0x38fac2('0x255')](_0x196abd),_0x61b2ef[_0x38fac2('0x120f')]=_0x196abd[_0x38fac2('0x4e8')][_0x38fac2('0x120f')]||[{'message':_0x196abd['toString'](),'type':_0x38fac2('0xbab')}];});}function _0x411b7d(_0x3aa80e){const _0xd959b4=_0x38d434;_0x61b2ef[_0xd959b4('0x120f')]=[];const _0x218bdd=_0x2900f5[_0xd959b4('0x132b')]()[_0xd959b4('0x134b')](_0xd959b4('0x1fa9'))[_0xd959b4('0x252a')](_0xd959b4('0x2155')+_0x2fcb30+_0xd959b4('0x1a'))[_0xd959b4('0xb2e')](_0xd959b4('0x13ea')+_0x36f548()[_0xd959b4('0x22c2')](_0x2fcb30))['ok'](_0xd959b4('0x1167'))['cancel'](_0xd959b4('0x784'))[_0xd959b4('0x1e25')](_0x3aa80e);_0x2900f5['show'](_0x218bdd)['then'](function(){const _0x4a5a3d=_0xd959b4;_0x245a07['intSalesforceField'][_0x4a5a3d('0x2088')]({'id':_0x61b2ef[_0x4a5a3d('0xa9c')]['id']})[_0x4a5a3d('0x1549')][_0x4a5a3d('0x11bf')](function(){const _0x55dcfc=_0x4a5a3d;_0x36f548()['remove'](_0x61b2ef[_0x55dcfc('0x22')],{'id':_0x61b2ef['item']['id']}),_0xfac026['success']({'title':_0x36f548()['capitalize'](_0x2fcb30)+_0x55dcfc('0x12bc'),'msg':_0x36f548()[_0x55dcfc('0x22c2')](_0x2fcb30)+'\x20has\x20been\x20deleted!'}),_0x463794();})[_0x4a5a3d('0x151d')](function(_0x22203f){const _0x38932c=_0x4a5a3d;console[_0x38932c('0x255')](_0x22203f),_0x61b2ef[_0x38932c('0x120f')]=_0x22203f[_0x38932c('0x4e8')][_0x38932c('0x120f')]||[{'message':_0x22203f[_0x38932c('0xaab')](),'type':_0x38932c('0x20f0')}];});},function(){});}function _0xae3a32(){const _0x5c6576=_0x38d434;return _0x61b2ef[_0x5c6576('0xa9c')][_0x5c6576('0x209e')]!==undefined?_0x61b2ef[_0x5c6576('0xa9c')][_0x5c6576('0x209e')]:_0x5c6576('0xbc2');}function _0x463794(){_0x2900f5['hide']();}}const _0x5f4821=_0xe82f56;_0x6884d5[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0xcbc'),_0x21d0f5('0x16b9'),'$mdDialog',_0x21d0f5('0x1b30'),_0x21d0f5('0xb6b'),_0x21d0f5('0x17ff'),'setting','api',_0x21d0f5('0x142d'),_0x21d0f5('0x1150'),_0x21d0f5('0x25cd'),_0x21d0f5('0x1d63')];function _0x6884d5(_0x1d4fe9,_0x469b68,_0xaabc3c,_0x592dc1,_0x4cbebb,_0xcaad00,_0x3f72d0,_0x3a15e0,_0x5c662e,_0x5b1a84,_0x50e82c,_0x18e09b){const _0x4ce07a=_0x21d0f5,_0x35a9e8=this;_0x35a9e8[_0x4ce07a('0x32a')]=_0x5b1a84['getCurrentUser'](),_0x35a9e8['license']=_0xcaad00,_0x35a9e8[_0x4ce07a('0x23e1')]=_0x3f72d0,_0x35a9e8[_0x4ce07a('0x2834')]=_0x35a9e8['setting'][_0x4ce07a('0x1d4')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x35a9e8[_0x4ce07a('0x1d9a')]=_0x469b68[_0x4ce07a('0x1797')]()+_0x4ce07a('0x16a1')+_0x469b68[_0x4ce07a('0x14ec')](),_0x35a9e8[_0x4ce07a('0x25cd')]=_0x50e82c||_0x1d4fe9['params']['salesforceAccount']||{},_0x35a9e8[_0x4ce07a('0x1d63')]=_0x18e09b&&_0x18e09b['count']==0x1?_0x18e09b[_0x4ce07a('0x19b2')][0x0]:null,_0x35a9e8[_0x4ce07a('0xb25')]=_0x5b1a84[_0x4ce07a('0x1530')](_0x35a9e8[_0x4ce07a('0x1d63')]?_0x35a9e8[_0x4ce07a('0x1d63')][_0x4ce07a('0xb25')]:null),_0x35a9e8[_0x4ce07a('0x2c9')]={},_0x35a9e8[_0x4ce07a('0x1179')]=_0x1d4fe9[_0x4ce07a('0x1ab3')]['tab']||0x0,_0x35a9e8[_0x4ce07a('0xb30')]=_0x5c662e[_0x4ce07a('0x870')],_0x35a9e8[_0x4ce07a('0xbd2')]=_0x18d8b3,_0x35a9e8[_0x4ce07a('0x11ea')]=_0x53af10;function _0x18d8b3(){const _0x10fc42=_0x4ce07a;_0x1d4fe9['go']('app.integrations.salesforceAccounts',{},{'reload':_0x10fc42('0x1365')});}function _0x53af10(){const _0x2d9bfb=_0x4ce07a;_0x3a15e0[_0x2d9bfb('0x1165')][_0x2d9bfb('0x5ab')]({'id':_0x35a9e8[_0x2d9bfb('0x25cd')]['id']},_0x35a9e8[_0x2d9bfb('0x25cd')])[_0x2d9bfb('0x1549')][_0x2d9bfb('0x11bf')](function(){const _0x21b6dc=_0x2d9bfb;_0x5c662e[_0x21b6dc('0x2693')]({'title':_0x21b6dc('0x319'),'msg':_0x35a9e8[_0x21b6dc('0x25cd')][_0x21b6dc('0x1909')]?_0x35a9e8[_0x21b6dc('0x25cd')][_0x21b6dc('0x1909')]+_0x21b6dc('0xd7'):''});})['catch'](function(_0x2bc452){const _0x4d8fa9=_0x2d9bfb;_0x5c662e['error']({'title':_0x2bc452[_0x4d8fa9('0xff9')]?_0x4d8fa9('0x574')+_0x2bc452[_0x4d8fa9('0xff9')]+'\x20-\x20'+_0x2bc452[_0x4d8fa9('0x212f')]:_0x4d8fa9('0x21bc'),'msg':_0x2bc452[_0x4d8fa9('0x4e8')]?JSON['stringify'](_0x2bc452[_0x4d8fa9('0x4e8')]):_0x2bc452['toString']()});});}}const _0x21c20e=_0x6884d5,_0x26c473=_0x351988['p']+_0x21d0f5('0x12fd');_0x36adb2[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0x2143'),_0x21d0f5('0xcbc'),_0x21d0f5('0x18fe'),_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),_0x21d0f5('0x17f5'),_0x21d0f5('0xb6b'),'salesforceAccounts',_0x21d0f5('0x25bc'),_0x21d0f5('0x1d63'),_0x21d0f5('0x12a5'),_0x21d0f5('0xda9'),'toasty',_0x21d0f5('0x1150'),'license','setting'];function _0x36adb2(_0x3df4e9,_0x3ae89a,_0x359338,_0x209ac7,_0x2ba61b,_0x55aeec,_0x192e8b,_0x5f0952,_0x500aa0,_0xe3a726,_0x1f27ff,_0x1692f8,_0x37acda,_0x3d2404,_0xd3a25a,_0x1320cd,_0x2dcce9){const _0x33e6eb=_0x21d0f5,_0x5bec65=this;_0x5bec65[_0x33e6eb('0x17ff')]=_0x1320cd,_0x5bec65[_0x33e6eb('0x23e1')]=_0x2dcce9,_0x5bec65[_0x33e6eb('0x32a')]=_0xd3a25a[_0x33e6eb('0x2428')](),_0x5bec65[_0x33e6eb('0x1f90')]=_0x500aa0||{'count':0x0,'rows':[]},_0x5bec65[_0x33e6eb('0x25bc')]=_0xe3a726,_0x5bec65[_0x33e6eb('0x1d63')]=_0x1f27ff&&_0x1f27ff[_0x33e6eb('0x27d2')]==0x1?_0x1f27ff[_0x33e6eb('0x19b2')][0x0]:null,_0x5bec65[_0x33e6eb('0xb25')]=_0xd3a25a[_0x33e6eb('0x1530')](_0x5bec65[_0x33e6eb('0x1d63')]?_0x5bec65[_0x33e6eb('0x1d63')][_0x33e6eb('0xb25')]:null),_0x5bec65[_0x33e6eb('0x13e8')]=_0x33e6eb('0x1f90'),_0x5bec65[_0x33e6eb('0x724')]='',_0x5bec65[_0x33e6eb('0xe3c')]=null,_0x5bec65[_0x33e6eb('0x294')]=[],_0x5bec65[_0x33e6eb('0x1f2a')]={'fields':_0x33e6eb('0x12ae'),'limit':0xa,'page':0x1},_0x5bec65[_0x33e6eb('0x5fd')]=_0x36f548()[_0x33e6eb('0x2130')]([{'option':_0x33e6eb('0x97d'),'value':_0x33e6eb('0xe4')},{'option':_0x33e6eb('0x796'),'value':_0x33e6eb('0x2c7')}],function(_0x3a0028){const _0x318dd0=_0x33e6eb;return _0x36f548()[_0x318dd0('0x814')](_0x3a0028[_0x318dd0('0x10cc')],new RegExp('\x27','g'),'');}),_0x5bec65['editstate']=_0x299088,_0x5bec65['testtestintegrationaccount']=_0x55a1e6,_0x5bec65[_0x33e6eb('0x549')]=_0x406825,_0x5bec65['success']=_0x25c700,_0x5bec65[_0x33e6eb('0x1505')]=_0x54a1aa,_0x5bec65[_0x33e6eb('0x1fcb')]=_0x20f9a5,_0x5bec65[_0x33e6eb('0x285c')]=_0x25672a,_0x5bec65[_0x33e6eb('0x2825')]=_0x387e1d,_0x5bec65[_0x33e6eb('0x2408')]=_0x518d63,_0x5bec65[_0x33e6eb('0x262c')]=_0x3ab87d,_0x5bec65[_0x33e6eb('0x3fc')]=_0x203e69;function _0x299088(_0x5c8ae1){const _0x481af9=_0x33e6eb;_0x359338['go'](_0x481af9('0xeb0'),{'id':_0x5c8ae1['id'],'salesforceAccount':_0x5c8ae1,'crudPermissions':_0x5bec65['crudPermissions']});}function _0x55a1e6(_0x56c623){const _0x3fa296=_0x33e6eb;return _0x1692f8[_0x3fa296('0x1165')][_0x3fa296('0x8ff')]({'id':_0x56c623['id'],'test':!![]})[_0x3fa296('0x1549')][_0x3fa296('0x11bf')](function(){const _0x3b94d8=_0x3fa296;_0x3d2404[_0x3b94d8('0x2693')]({'title':_0x3b94d8('0xcda'),'msg':_0x3b94d8('0x1b13')});})[_0x3fa296('0x151d')](function(_0x441bad){const _0x3785bb=_0x3fa296;_0x3d2404['error']({'title':_0x3785bb('0xcda'),'msg':_0x441bad['data']?_0x441bad[_0x3785bb('0x4e8')][_0x3785bb('0x1b86')]?_0x441bad[_0x3785bb('0x4e8')][_0x3785bb('0x1b86')]:JSON['stringify'](_0x441bad['data']):_0x441bad[_0x3785bb('0xaab')]()});});}function _0x406825(_0x447914,_0x2abd9c){const _0x506437=_0x33e6eb,_0x59b180=_0x2ba61b[_0x506437('0x132b')]()[_0x506437('0x134b')](_0x506437('0x1796')+_0x36f548()[_0x506437('0x13cf')]('salesforceAccount')+'?')[_0x506437('0x1d03')](''+(_0x447914[_0x506437('0x1909')]||_0x506437('0x25cd'))+_0x506437('0x1c78')+_0x506437('0x1a'))[_0x506437('0xb2e')]('delete\x20salesforceAccount')[_0x506437('0x1e25')](_0x2abd9c)['ok']('OK')[_0x506437('0x26c9')](_0x506437('0x772'));_0x2ba61b[_0x506437('0xb9')](_0x59b180)[_0x506437('0x11bf')](function(){_0x25672a(_0x447914);},function(){const _0x203b5d=_0x506437;console[_0x203b5d('0xc78')](_0x203b5d('0x772'));});}let _0x32a774=!![],_0x209ef2=0x1;_0x3df4e9[_0x33e6eb('0x2087')](_0x33e6eb('0x842'),function(_0x189fd9,_0x206cc9){const _0x560423=_0x33e6eb;_0x32a774?_0x192e8b(function(){_0x32a774=![];}):(!_0x206cc9&&(_0x209ef2=_0x5bec65[_0x560423('0x1f2a')][_0x560423('0x1c2')]),_0x189fd9!==_0x206cc9&&(_0x5bec65[_0x560423('0x1f2a')][_0x560423('0x1c2')]=0x1),!_0x189fd9&&(_0x5bec65[_0x560423('0x1f2a')][_0x560423('0x1c2')]=_0x209ef2),_0x5bec65[_0x560423('0x1505')]());});function _0x25c700(_0x498353){const _0x40aade=_0x33e6eb;_0x5bec65[_0x40aade('0x1f90')]=_0x498353||{'count':0x0,'rows':[]};}function _0x54a1aa(){const _0x36cb51=_0x33e6eb;_0x5bec65[_0x36cb51('0x1f2a')][_0x36cb51('0x1393')]=(_0x5bec65[_0x36cb51('0x1f2a')][_0x36cb51('0x1c2')]-0x1)*_0x5bec65[_0x36cb51('0x1f2a')][_0x36cb51('0xd5c')],_0xd3a25a[_0x36cb51('0x4ee')]('admin')?_0x5bec65[_0x36cb51('0x13f')]=_0x1692f8[_0x36cb51('0x1165')]['get'](_0x5bec65[_0x36cb51('0x1f2a')],_0x25c700)[_0x36cb51('0x1549')]:(_0x5bec65[_0x36cb51('0x1f2a')]['id']=_0x5bec65['userProfile']['id'],_0x5bec65['query'][_0x36cb51('0xe6')]='SalesforceAccounts',_0x5bec65['promise']=_0x1692f8[_0x36cb51('0x25bc')][_0x36cb51('0x228e')](_0x5bec65[_0x36cb51('0x1f2a')],_0x25c700)[_0x36cb51('0x1549')]);}function _0x20f9a5(_0x34dc78,_0x2f1407){const _0x238f31=_0x33e6eb;_0x2ba61b['show']({'controller':_0x238f31('0x1512'),'controllerAs':'vm','templateUrl':_0x26c473,'parent':angular[_0x238f31('0x1e73')](_0x55aeec[_0x238f31('0x1d2')]),'targetEvent':_0x34dc78,'clickOutsideToClose':!![],'locals':{'salesforceAccount':_0x2f1407,'salesforceAccounts':_0x5bec65[_0x238f31('0x1f90')]['rows'],'license':_0x5bec65[_0x238f31('0x17ff')],'setting':_0x5bec65['setting'],'crudPermissions':_0x5bec65[_0x238f31('0xb25')]}});}function _0x25672a(_0x3be42e){const _0x50b331=_0x33e6eb;_0x1692f8[_0x50b331('0x1165')][_0x50b331('0x2088')]({'id':_0x3be42e['id']})['$promise']['then'](function(){const _0x158fe5=_0x50b331;_0x36f548()[_0x158fe5('0x14a5')](_0x5bec65[_0x158fe5('0x1f90')]['rows'],{'id':_0x3be42e['id']}),_0x5bec65[_0x158fe5('0x1f90')][_0x158fe5('0x27d2')]-=0x1,!_0x5bec65[_0x158fe5('0x1f90')]['rows'][_0x158fe5('0x1e22')]&&_0x5bec65['getSalesforceAccounts'](),_0x3d2404[_0x158fe5('0x2693')]({'title':_0x36f548()[_0x158fe5('0x13cf')](_0x158fe5('0x3f3'))+_0x158fe5('0x2113'),'msg':_0x3be42e[_0x158fe5('0x1909')]?_0x3be42e['name']+_0x158fe5('0x433'):''});})['catch'](function(_0x18c54a){const _0x4ac736=_0x50b331;if(_0x18c54a[_0x4ac736('0x4e8')]&&_0x18c54a[_0x4ac736('0x4e8')][_0x4ac736('0x120f')]&&_0x18c54a[_0x4ac736('0x4e8')][_0x4ac736('0x120f')][_0x4ac736('0x1e22')]){_0x5bec65[_0x4ac736('0x120f')]=_0x18c54a[_0x4ac736('0x4e8')][_0x4ac736('0x120f')]||[{'message':_0x18c54a[_0x4ac736('0xaab')](),'type':_0x4ac736('0x14f3')}];for(let _0x36bce0=0x0;_0x36bce0<_0x18c54a[_0x4ac736('0x4e8')][_0x4ac736('0x120f')][_0x4ac736('0x1e22')];_0x36bce0++){_0x3d2404[_0x4ac736('0x255')]({'title':_0x18c54a['data'][_0x4ac736('0x120f')][_0x36bce0]['type'],'msg':_0x18c54a[_0x4ac736('0x4e8')][_0x4ac736('0x120f')][_0x36bce0][_0x4ac736('0x1b86')]});}}else _0x3d2404[_0x4ac736('0x255')]({'title':_0x18c54a[_0x4ac736('0xff9')]?_0x4ac736('0x574')+_0x18c54a[_0x4ac736('0xff9')]+_0x4ac736('0xb0b')+_0x18c54a[_0x4ac736('0x212f')]:_0x4ac736('0x14f3'),'msg':_0x18c54a[_0x4ac736('0x4e8')]?JSON[_0x4ac736('0x3e')](_0x18c54a[_0x4ac736('0x4e8')][_0x4ac736('0x1b86')]):_0x18c54a[_0x4ac736('0x1b86')]||_0x18c54a[_0x4ac736('0xaab')]()});});}function _0x387e1d(){const _0xccad05=_0x33e6eb,_0xb06792=angular[_0xccad05('0x6fb')](_0x5bec65[_0xccad05('0x294')]);return _0x5bec65['selectedSalesforceAccounts']=[],_0xb06792;}function _0x518d63(_0x432f27){const _0xe09dd7=_0x33e6eb,_0x5839e7=_0x2ba61b[_0xe09dd7('0x132b')]()[_0xe09dd7('0x134b')](_0xe09dd7('0x8b8'))[_0xe09dd7('0x1d03')](_0xe09dd7('0x2061')+_0x5bec65['selectedSalesforceAccounts']['length']+_0xe09dd7('0xac6')+_0xe09dd7('0x1a'))['ariaLabel'](_0xe09dd7('0x1468'))[_0xe09dd7('0x1e25')](_0x432f27)['ok']('OK')[_0xe09dd7('0x26c9')](_0xe09dd7('0x772'));_0x2ba61b[_0xe09dd7('0xb9')](_0x5839e7)[_0xe09dd7('0x11bf')](function(){const _0x129bed=_0xe09dd7;_0x5bec65[_0x129bed('0x294')][_0x129bed('0x1f88')](function(_0x7b7f1){_0x25672a(_0x7b7f1);}),_0x5bec65[_0x129bed('0x294')]=[];});}function _0x3ab87d(){const _0x30d4aa=_0x33e6eb;_0x5bec65[_0x30d4aa('0x294')]=[];}function _0x203e69(){const _0x48f093=_0x33e6eb;_0x5bec65[_0x48f093('0x294')]=_0x5bec65['salesforceAccounts'][_0x48f093('0x19b2')];}}const _0x3216cc=_0x36adb2;_0x1e6caf[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0xcbc'),'$location','$mdDialog','$q',_0x21d0f5('0xb6b'),_0x21d0f5('0x142d'),_0x21d0f5('0x1484'),'servicenowAccount',_0x21d0f5('0x12a5'),'Auth',_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1'),_0x21d0f5('0xb25')];function _0x1e6caf(_0x648c84,_0xac03f9,_0x17c797,_0x177c1a,_0x5ca755,_0x6cb66,_0x30e4fd,_0x5e037d,_0x4a17ea,_0x1c9ba6,_0x838ff3,_0x2f7a18,_0x5b9fac,_0xefd0a8){const _0xe7db20=_0x21d0f5,_0x3e7755=this;_0x3e7755[_0xe7db20('0x32a')]=_0x838ff3[_0xe7db20('0x2428')](),_0x3e7755[_0xe7db20('0x120f')]=[],_0x3e7755[_0xe7db20('0x23e1')]=_0x5b9fac,_0x3e7755[_0xe7db20('0x17ff')]=_0x2f7a18,_0x3e7755[_0xe7db20('0xb25')]=_0xefd0a8,_0x3e7755[_0xe7db20('0x2c9')]={},_0x3e7755[_0xe7db20('0x2834')]=_0x3e7755['setting']&&_0x3e7755[_0xe7db20('0x23e1')][_0xe7db20('0x1d4')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3e7755[_0xe7db20('0x134b')]='INTEGRATIONS.EDIT_SERVICENOWACCOUNT',_0x3e7755['servicenowAccount']=angular[_0xe7db20('0x6fb')](_0x4a17ea),_0x3e7755[_0xe7db20('0x1484')]=_0x5e037d,_0x3e7755[_0xe7db20('0x248b')]=![];!_0x3e7755[_0xe7db20('0x2641')]&&(_0x3e7755['servicenowAccount']={'serverUrl':_0x17c797[_0xe7db20('0x1797')]()+_0xe7db20('0x16a1')+_0x17c797[_0xe7db20('0x14ec')]()+(_0x17c797[_0xe7db20('0x235b')]()?':'+_0x17c797['port']():'')},_0x3e7755[_0xe7db20('0x134b')]=_0xe7db20('0x15a0'),_0x3e7755[_0xe7db20('0x248b')]=!![]);_0x3e7755[_0xe7db20('0x1a2f')]=_0x14e28c,_0x3e7755[_0xe7db20('0x183d')]=_0x5387d1,_0x3e7755[_0xe7db20('0xb84')]=_0x1cd9fd,_0x3e7755['getDateFromString']=_0x2ce163,_0x3e7755[_0xe7db20('0xc4e')]=_0x126833;function _0x14e28c(){const _0x50e7d4=_0xe7db20;_0x3e7755[_0x50e7d4('0x120f')]=[],_0x1c9ba6[_0x50e7d4('0x2661')][_0x50e7d4('0x259')](_0x3e7755[_0x50e7d4('0x2641')])[_0x50e7d4('0x1549')]['then'](function(_0x1adf7b){const _0x6b0e57=_0x50e7d4;_0x3e7755[_0x6b0e57('0x1484')][_0x6b0e57('0x880')](_0x1adf7b[_0x6b0e57('0x2866')]()),_0x30e4fd[_0x6b0e57('0x2693')]({'title':'ServicenowAccount\x20properly\x20created','msg':_0x3e7755[_0x6b0e57('0x2641')][_0x6b0e57('0x1909')]?_0x3e7755[_0x6b0e57('0x2641')][_0x6b0e57('0x1909')]+_0x6b0e57('0x7fb'):''}),_0x126833(_0x1adf7b);})[_0x50e7d4('0x151d')](function(_0x55a9b6){const _0xb7be9f=_0x50e7d4;if(_0x55a9b6[_0xb7be9f('0x4e8')]&&_0x55a9b6['data'][_0xb7be9f('0x120f')]&&_0x55a9b6[_0xb7be9f('0x4e8')][_0xb7be9f('0x120f')]['length']){_0x3e7755[_0xb7be9f('0x120f')]=_0x55a9b6[_0xb7be9f('0x4e8')][_0xb7be9f('0x120f')]||[{'message':_0x55a9b6[_0xb7be9f('0xaab')](),'type':_0xb7be9f('0x1bb5')}];for(let _0x38d958=0x0;_0x38d958<_0x55a9b6[_0xb7be9f('0x4e8')][_0xb7be9f('0x120f')][_0xb7be9f('0x1e22')];_0x38d958+=0x1){_0x30e4fd[_0xb7be9f('0x255')]({'title':_0x55a9b6['data'][_0xb7be9f('0x120f')][_0x38d958]['type'],'msg':_0x55a9b6[_0xb7be9f('0x4e8')][_0xb7be9f('0x120f')][_0x38d958][_0xb7be9f('0x1b86')]});}}else _0x30e4fd[_0xb7be9f('0x255')]({'title':_0x55a9b6['status']?_0xb7be9f('0x574')+_0x55a9b6['status']+_0xb7be9f('0xb0b')+_0x55a9b6[_0xb7be9f('0x212f')]:_0xb7be9f('0x1bb5'),'msg':_0x55a9b6[_0xb7be9f('0x4e8')]?JSON['stringify'](_0x55a9b6[_0xb7be9f('0x4e8')][_0xb7be9f('0x1b86')]):_0x55a9b6['toString']()});});}function _0x5387d1(){const _0x2e3931=_0xe7db20;_0x3e7755['errors']=[],_0x1c9ba6[_0x2e3931('0x2661')][_0x2e3931('0x5ab')]({'id':_0x3e7755[_0x2e3931('0x2641')]['id']},_0x3e7755[_0x2e3931('0x2641')])[_0x2e3931('0x1549')][_0x2e3931('0x11bf')](function(_0x400905){const _0xeefd84=_0x2e3931,_0x3f6b9a=_0x36f548()[_0xeefd84('0x1ad4')](_0x3e7755[_0xeefd84('0x1484')],{'id':_0x400905['id']});_0x3f6b9a&&_0x36f548()[_0xeefd84('0x47b')](_0x3f6b9a,_0x36f548()['pick'](_0x400905['toJSON'](),_0x36f548()[_0xeefd84('0xe22')](_0x3f6b9a))),_0x30e4fd[_0xeefd84('0x2693')]({'title':_0xeefd84('0xbcc'),'msg':_0x3e7755[_0xeefd84('0x2641')][_0xeefd84('0x1909')]?_0x3e7755[_0xeefd84('0x2641')][_0xeefd84('0x1909')]+'\x20has\x20been\x20saved!':''}),_0x126833(_0x400905);})[_0x2e3931('0x151d')](function(_0x18e513){const _0x558b66=_0x2e3931;if(_0x18e513['data']&&_0x18e513[_0x558b66('0x4e8')][_0x558b66('0x120f')]&&_0x18e513[_0x558b66('0x4e8')]['errors'][_0x558b66('0x1e22')]){_0x3e7755[_0x558b66('0x120f')]=_0x18e513[_0x558b66('0x4e8')]['errors']||[{'message':_0x18e513[_0x558b66('0xaab')](),'type':_0x558b66('0x665')}];for(let _0x2f3326=0x0;_0x2f3326<_0x18e513[_0x558b66('0x4e8')][_0x558b66('0x120f')][_0x558b66('0x1e22')];_0x2f3326++){_0x30e4fd[_0x558b66('0x255')]({'title':_0x18e513[_0x558b66('0x4e8')][_0x558b66('0x120f')][_0x2f3326][_0x558b66('0x19fd')],'msg':_0x18e513['data'][_0x558b66('0x120f')][_0x2f3326][_0x558b66('0x1b86')]});}}else _0x30e4fd[_0x558b66('0x255')]({'title':_0x18e513[_0x558b66('0xff9')]?_0x558b66('0x574')+_0x18e513[_0x558b66('0xff9')]+'\x20-\x20'+_0x18e513[_0x558b66('0x212f')]:_0x558b66('0x665'),'msg':_0x18e513[_0x558b66('0x4e8')]?JSON['stringify'](_0x18e513[_0x558b66('0x4e8')][_0x558b66('0x1b86')]):_0x18e513[_0x558b66('0xaab')]()});});}function _0x1cd9fd(_0x3e01f6){const _0x2dc829=_0xe7db20;_0x3e7755[_0x2dc829('0x120f')]=[];const _0x35466b=_0x177c1a[_0x2dc829('0x132b')]()[_0x2dc829('0x134b')](_0x2dc829('0x1fa9'))[_0x2dc829('0x252a')](_0x2dc829('0x87b'))[_0x2dc829('0xb2e')](_0x2dc829('0xccb'))['ok'](_0x2dc829('0x1167'))['cancel'](_0x2dc829('0x784'))[_0x2dc829('0x1e25')](_0x3e01f6);_0x177c1a[_0x2dc829('0xb9')](_0x35466b)['then'](function(){const _0x23cb8c=_0x2dc829;_0x1c9ba6['intServicenowAccount'][_0x23cb8c('0x2088')]({'id':_0x3e7755[_0x23cb8c('0x2641')]['id']})[_0x23cb8c('0x1549')][_0x23cb8c('0x11bf')](function(){const _0x37311d=_0x23cb8c;_0x36f548()['remove'](_0x3e7755['servicenowAccounts'],{'id':_0x3e7755['servicenowAccount']['id']}),_0x30e4fd['success']({'title':'ServicenowAccount\x20properly\x20deleted!','msg':(_0x3e7755[_0x37311d('0x2641')][_0x37311d('0x1909')]||_0x37311d('0x2641'))+'\x20has\x20been\x20deleted!'}),_0x126833(_0x3e7755[_0x37311d('0x2641')]);})[_0x23cb8c('0x151d')](function(_0x321ea9){const _0x4e507f=_0x23cb8c;if(_0x321ea9[_0x4e507f('0x4e8')]&&_0x321ea9['data']['errors']&&_0x321ea9[_0x4e507f('0x4e8')][_0x4e507f('0x120f')][_0x4e507f('0x1e22')]){_0x3e7755['errors']=_0x321ea9[_0x4e507f('0x4e8')][_0x4e507f('0x120f')]||[{'message':_0x321ea9[_0x4e507f('0xaab')](),'type':'api.intServicenowAccount.delete'}];for(let _0x55a198=0x0;_0x55a198<_0x321ea9['data'][_0x4e507f('0x120f')][_0x4e507f('0x1e22')];_0x55a198++){_0x30e4fd[_0x4e507f('0x255')]({'title':_0x321ea9[_0x4e507f('0x4e8')][_0x4e507f('0x120f')][_0x55a198][_0x4e507f('0x19fd')],'msg':_0x321ea9['data'][_0x4e507f('0x120f')][_0x55a198][_0x4e507f('0x1b86')]});}}else _0x30e4fd[_0x4e507f('0x255')]({'title':_0x321ea9[_0x4e507f('0xff9')]?'API:'+_0x321ea9[_0x4e507f('0xff9')]+_0x4e507f('0xb0b')+_0x321ea9[_0x4e507f('0x212f')]:_0x4e507f('0x2478'),'msg':_0x321ea9['data']?JSON[_0x4e507f('0x3e')](_0x321ea9[_0x4e507f('0x4e8')][_0x4e507f('0x1b86')]):_0x321ea9[_0x4e507f('0x1b86')]||_0x321ea9[_0x4e507f('0xaab')]()});});},function(){});}function _0x2ce163(_0x28e861){return _0x28e861===null?undefined:new Date(_0x28e861);}function _0x126833(_0x40f189){const _0x466281=_0xe7db20;_0x177c1a[_0x466281('0x237e')](_0x40f189);}}const _0x37c6cc=_0x1e6caf,_0x4e3562=_0x351988['p']+_0x21d0f5('0x135c'),_0x4c2d02=_0x351988['p']+'src/js/modules/main/apps/integrations/views/servicenowAccounts/edit/item/dialog.html/dialog.html';_0x1162bf[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),_0x21d0f5('0x12a5'),_0x21d0f5('0x142d'),'Auth'];function _0x1162bf(_0x3a10cb,_0x199ca4,_0xcecaff,_0x32a5fe,_0x74da4){const _0xd79dbb=_0x21d0f5,_0x234bb8=this;_0x234bb8['currentUser']=_0x74da4[_0xd79dbb('0x2428')](),_0x234bb8[_0xd79dbb('0x2641')]={},_0x234bb8[_0xd79dbb('0x3bc')]={},_0x234bb8[_0xd79dbb('0x2766')]=[],_0x234bb8[_0xd79dbb('0x21ff')]=-0x1,_0x234bb8[_0xd79dbb('0xb25')],_0x234bb8[_0xd79dbb('0x286f')]=_0x2ae953,_0x234bb8[_0xd79dbb('0x1189')]=_0x5477b0,_0x234bb8[_0xd79dbb('0xd0f')]=_0x199d16,_0x234bb8[_0xd79dbb('0x997')]=_0x53dc3a;function _0x2ae953(_0x5bc7b6,_0x5051bf){const _0x5b0cc4=_0xd79dbb;_0x234bb8[_0x5b0cc4('0x2641')]=_0x5bc7b6,_0x234bb8['crudPermissions']=typeof _0x5051bf!==_0x5b0cc4('0x13e9')?_0x5051bf:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0xcecaff[_0x5b0cc4('0x2661')][_0x5b0cc4('0x26af')]({'id':_0x234bb8[_0x5b0cc4('0x2641')]['id'],'sort':_0x5b0cc4('0x1c74')})['$promise'][_0x5b0cc4('0x11bf')](function(_0xc37068){const _0x5311da=_0x5b0cc4;return _0x234bb8[_0x5311da('0x2766')]=_0xc37068[_0x5311da('0x19b2')]?_0xc37068['rows']:[],_0x234bb8[_0x5311da('0x2766')][_0x5311da('0x1e22')]&&_0x234bb8['getServicenowConfiguration'](0x0),_0xcecaff['variable'][_0x5311da('0xbaa')]({'nolimit':!![],'sort':_0x5311da('0x1909')})[_0x5311da('0x1549')];})[_0x5b0cc4('0x11bf')](function(_0x6ed629){const _0x583d53=_0x5b0cc4;_0x234bb8['variables']=_0x6ed629[_0x583d53('0x19b2')]?_0x6ed629[_0x583d53('0x19b2')]:[],_0x234bb8[_0x583d53('0x90')]=_0x36f548()[_0x583d53('0x2130')](_0x234bb8['variables'],'id');})[_0x5b0cc4('0x151d')](function(_0x2b49ec){const _0x2ff2d4=_0x5b0cc4;_0x32a5fe[_0x2ff2d4('0x255')]({'title':_0x2b49ec['status']?_0x2ff2d4('0x574')+_0x2b49ec[_0x2ff2d4('0xff9')]+_0x2ff2d4('0xb0b')+_0x2b49ec[_0x2ff2d4('0x212f')]:_0x2ff2d4('0x2752'),'msg':_0x2b49ec[_0x2ff2d4('0x4e8')]?JSON[_0x2ff2d4('0x3e')](_0x2b49ec[_0x2ff2d4('0x4e8')]):_0x2b49ec['toString']()});});}function _0x5477b0(_0x3aafd8){const _0x35badf=_0xd79dbb;_0x234bb8[_0x35badf('0x3bc')]=_0x234bb8['configurations'][_0x3aafd8],_0x234bb8[_0x35badf('0x21ff')]=_0x3aafd8,_0xcecaff[_0x35badf('0x1e64')][_0x35badf('0xace')]({'id':_0x234bb8['servicenowConfiguration']['id']})[_0x35badf('0x1549')][_0x35badf('0x11bf')](function(_0xb038f4){const _0x2e2cff=_0x35badf;return _0x234bb8[_0x2e2cff('0x1318')]=_0xb038f4[_0x2e2cff('0x19b2')]?_0xb038f4['rows']:[],_0xcecaff['intServicenowConfiguration']['getDescriptions']({'id':_0x234bb8[_0x2e2cff('0x3bc')]['id']})[_0x2e2cff('0x1549')];})[_0x35badf('0x11bf')](function(_0x1be3d6){const _0x22fd8b=_0x35badf;return _0x234bb8['descriptions']=_0x1be3d6[_0x22fd8b('0x19b2')]?_0x1be3d6['rows']:[],_0xcecaff[_0x22fd8b('0x1e64')]['getFields']({'id':_0x234bb8['servicenowConfiguration']['id']})[_0x22fd8b('0x1549')];})[_0x35badf('0x11bf')](function(_0x4bdc16){_0x234bb8['fields']=_0x4bdc16['rows']?_0x4bdc16['rows']:[];})['catch'](function(_0x24e461){const _0x42a765=_0x35badf;_0x32a5fe[_0x42a765('0x255')]({'title':_0x24e461[_0x42a765('0xff9')]?_0x42a765('0x574')+_0x24e461['status']+_0x42a765('0xb0b')+_0x24e461[_0x42a765('0x212f')]:_0x42a765('0x1023'),'msg':_0x24e461[_0x42a765('0x4e8')]?JSON[_0x42a765('0x3e')](_0x24e461[_0x42a765('0x4e8')]):_0x24e461[_0x42a765('0xaab')]()});});}function _0x199d16(_0x4a2e3d,_0x4bedb9){const _0x53f004=_0xd79dbb;_0x3a10cb['show']({'controller':_0x53f004('0x1cc2'),'controllerAs':'vm','templateUrl':_0x4e3562,'parent':angular[_0x53f004('0x1e73')](_0x199ca4['body']),'targetEvent':_0x4a2e3d,'clickOutsideToClose':!![],'locals':{'servicenowConfiguration':_0x4bedb9,'configurations':_0x234bb8['configurations'],'license':null,'setting':null,'crudPermissions':_0x234bb8[_0x53f004('0xb25')]}})[_0x53f004('0xa9b')](function(){const _0x4a06d2=_0x53f004;_0x234bb8[_0x4a06d2('0x1189')](0x0);});}function _0x53dc3a(_0x5eb397,_0x193328){const _0x24baa2=_0xd79dbb,_0x40d61d=_0x3a10cb[_0x24baa2('0x132b')]()[_0x24baa2('0x134b')](_0x24baa2('0xa19'))[_0x24baa2('0x1d03')](_0x24baa2('0x2061')+(_0x193328[_0x24baa2('0x1909')]||_0x24baa2('0x3bc'))+_0x24baa2('0x1c78')+_0x24baa2('0x1a'))['ariaLabel'](_0x24baa2('0x225a'))[_0x24baa2('0x1e25')](_0x5eb397)['ok']('OK')[_0x24baa2('0x26c9')](_0x24baa2('0x772'));_0x3a10cb[_0x24baa2('0xb9')](_0x40d61d)[_0x24baa2('0x11bf')](function(){const _0x12f334=_0x24baa2;_0xcecaff[_0x12f334('0x1e64')][_0x12f334('0x2088')]({'id':_0x193328['id']})[_0x12f334('0x1549')]['then'](function(){const _0xc6e95c=_0x12f334;_0x36f548()['remove'](_0x234bb8['configurations'],{'id':_0x193328['id']}),_0x32a5fe[_0xc6e95c('0x2693')]({'title':_0xc6e95c('0x2374'),'msg':_0x193328['name']?_0x193328[_0xc6e95c('0x1909')]+_0xc6e95c('0x433'):''});})['catch'](function(_0x55cb7b){const _0x58dd0c=_0x12f334;_0x32a5fe[_0x58dd0c('0x255')]({'title':_0x55cb7b[_0x58dd0c('0xff9')]?_0x58dd0c('0x574')+_0x55cb7b[_0x58dd0c('0xff9')]+_0x58dd0c('0xb0b')+_0x55cb7b['statusText']:_0x58dd0c('0x15ea'),'msg':_0x55cb7b[_0x58dd0c('0x4e8')]?JSON[_0x58dd0c('0x3e')](_0x55cb7b[_0x58dd0c('0x4e8')]):_0x55cb7b[_0x58dd0c('0xaab')]()});})[_0x12f334('0xa9b')](function(){_0x234bb8['getServicenowConfiguration'](0x0);});},function(){const _0x2cc5c7=_0x24baa2;console[_0x2cc5c7('0xc78')](_0x2cc5c7('0x772'));});}_0x234bb8['selectedSubjects']=[],_0x234bb8[_0xd79dbb('0x1ec8')]=_0x2364b4,_0x234bb8['deleteSubjectConfirm']=_0x57f742,_0x234bb8[_0xd79dbb('0x1ab')]=_0x2495a1;function _0x2364b4(_0x290d2f,_0x29e56d){const _0x131a7b=_0xd79dbb;_0x3a10cb[_0x131a7b('0xb9')]({'controller':'CreateOrEditServicenowAccountItemDialogController','controllerAs':'vm','templateUrl':_0x4c2d02,'parent':angular['element'](_0x199ca4[_0x131a7b('0x1d2')]),'targetEvent':_0x290d2f,'clickOutsideToClose':!![],'locals':{'type':_0x131a7b('0x20eb'),'item':_0x29e56d,'items':_0x234bb8['subjects'],'configuration':_0x234bb8[_0x131a7b('0x3bc')],'account':_0x234bb8[_0x131a7b('0x2641')],'license':null,'setting':null,'crudPermissions':_0x234bb8[_0x131a7b('0xb25')]}});}function _0x335b3f(_0x21d3d6){const _0x1df87e=_0xd79dbb;_0xcecaff['intServicenowField'][_0x1df87e('0x2088')]({'id':_0x21d3d6['id']})[_0x1df87e('0x1549')][_0x1df87e('0x11bf')](function(){const _0x3d6d25=_0x1df87e;_0x36f548()[_0x3d6d25('0x14a5')](_0x234bb8[_0x3d6d25('0x1318')],{'id':_0x21d3d6['id']}),_0x32a5fe[_0x3d6d25('0x2693')]({'title':'Subject\x20deleted!','msg':_0x3d6d25('0x4c1')});})[_0x1df87e('0x151d')](function(_0x39de9f){const _0x2b8564=_0x1df87e;_0x32a5fe[_0x2b8564('0x255')]({'title':_0x39de9f[_0x2b8564('0xff9')]?_0x2b8564('0x574')+_0x39de9f['status']+_0x2b8564('0xb0b')+_0x39de9f['statusText']:_0x2b8564('0xc27'),'msg':_0x39de9f[_0x2b8564('0x4e8')]?JSON[_0x2b8564('0x3e')](_0x39de9f['data']):_0x39de9f['toString']()});});}function _0x57f742(_0x1e18e8,_0x4b123e){const _0x3fdef7=_0xd79dbb,_0x463e14=_0x3a10cb['confirm']()['title'](_0x3fdef7('0x98e'))[_0x3fdef7('0x1d03')](_0x3fdef7('0xb46')+_0x3fdef7('0x1a'))[_0x3fdef7('0xb2e')](_0x3fdef7('0x259c'))[_0x3fdef7('0x1e25')](_0x1e18e8)['ok']('OK')['cancel'](_0x3fdef7('0x772'));_0x3a10cb[_0x3fdef7('0xb9')](_0x463e14)[_0x3fdef7('0x11bf')](function(){_0x335b3f(_0x4b123e);},function(){const _0x2a26b9=_0x3fdef7;console[_0x2a26b9('0xc78')](_0x2a26b9('0x772'));});}function _0x2495a1(_0x432fed){const _0x1cfd2f=_0xd79dbb,_0x37892c=_0x3a10cb['confirm']()[_0x1cfd2f('0x134b')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20subjects?')[_0x1cfd2f('0x1d03')](''+_0x234bb8[_0x1cfd2f('0x1151')]['length']+_0x1cfd2f('0xac6')+'\x20will\x20be\x20deleted.')[_0x1cfd2f('0xb2e')](_0x1cfd2f('0x1c7c'))[_0x1cfd2f('0x1e25')](_0x432fed)['ok']('OK')[_0x1cfd2f('0x26c9')](_0x1cfd2f('0x772'));_0x3a10cb[_0x1cfd2f('0xb9')](_0x37892c)[_0x1cfd2f('0x11bf')](function(){const _0x2843e9=_0x1cfd2f;_0x234bb8[_0x2843e9('0x1151')]['forEach'](function(_0x161147){_0x335b3f(_0x161147);}),_0x234bb8[_0x2843e9('0x1151')]=[];});}_0x234bb8[_0xd79dbb('0x73f')]=[],_0x234bb8[_0xd79dbb('0x25fe')]=_0x2bdfcb,_0x234bb8[_0xd79dbb('0x183b')]=_0x1f8783,_0x234bb8[_0xd79dbb('0x1a3e')]=_0x7b492f;function _0x2bdfcb(_0x1a1064,_0x838a40){const _0xf5b33d=_0xd79dbb;_0x3a10cb['show']({'controller':_0xf5b33d('0x21cd'),'controllerAs':'vm','templateUrl':_0x4c2d02,'parent':angular[_0xf5b33d('0x1e73')](_0x199ca4[_0xf5b33d('0x1d2')]),'targetEvent':_0x1a1064,'clickOutsideToClose':!![],'locals':{'type':_0xf5b33d('0x1659'),'item':_0x838a40,'items':_0x234bb8[_0xf5b33d('0xe12')],'configuration':_0x234bb8[_0xf5b33d('0x3bc')],'account':_0x234bb8[_0xf5b33d('0x2641')],'license':null,'setting':null,'crudPermissions':_0x234bb8[_0xf5b33d('0xb25')]}});}function _0x2c9004(_0x244d49){const _0x4a596f=_0xd79dbb;_0xcecaff[_0x4a596f('0xcb3')][_0x4a596f('0x2088')]({'id':_0x244d49['id']})[_0x4a596f('0x1549')][_0x4a596f('0x11bf')](function(){const _0xb9dd81=_0x4a596f;_0x36f548()[_0xb9dd81('0x14a5')](_0x234bb8[_0xb9dd81('0xe12')],{'id':_0x244d49['id']}),_0x32a5fe[_0xb9dd81('0x2693')]({'title':_0xb9dd81('0x1221'),'msg':_0xb9dd81('0x40e')});})[_0x4a596f('0x151d')](function(_0x4238a3){const _0x21f546=_0x4a596f;_0x32a5fe[_0x21f546('0x255')]({'title':_0x4238a3['status']?_0x21f546('0x574')+_0x4238a3[_0x21f546('0xff9')]+'\x20-\x20'+_0x4238a3[_0x21f546('0x212f')]:_0x21f546('0xc27'),'msg':_0x4238a3['data']?JSON[_0x21f546('0x3e')](_0x4238a3[_0x21f546('0x4e8')]):_0x4238a3[_0x21f546('0xaab')]()});});}function _0x1f8783(_0x235bb4,_0x4effd0){const _0x1580c8=_0xd79dbb,_0x42e310=_0x3a10cb[_0x1580c8('0x132b')]()[_0x1580c8('0x134b')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20description?')[_0x1580c8('0x1d03')](_0x1580c8('0x48a')+_0x1580c8('0x1a'))[_0x1580c8('0xb2e')](_0x1580c8('0xd32'))['targetEvent'](_0x235bb4)['ok']('OK')[_0x1580c8('0x26c9')]('CANCEL');_0x3a10cb[_0x1580c8('0xb9')](_0x42e310)['then'](function(){_0x2c9004(_0x4effd0);},function(){const _0xbe82cb=_0x1580c8;console['log'](_0xbe82cb('0x772'));});}function _0x7b492f(_0x1f60c2){const _0x45ae97=_0xd79dbb,_0x25f4d4=_0x3a10cb[_0x45ae97('0x132b')]()[_0x45ae97('0x134b')](_0x45ae97('0x1795'))[_0x45ae97('0x1d03')](_0x45ae97('0x2061')+_0x234bb8[_0x45ae97('0x73f')]['length']+_0x45ae97('0xac6')+_0x45ae97('0x1a'))[_0x45ae97('0xb2e')]('delete\x20descriptions')[_0x45ae97('0x1e25')](_0x1f60c2)['ok']('OK')[_0x45ae97('0x26c9')](_0x45ae97('0x772'));_0x3a10cb['show'](_0x25f4d4)['then'](function(){const _0x2c5e9e=_0x45ae97;_0x234bb8[_0x2c5e9e('0x73f')][_0x2c5e9e('0x1f88')](function(_0x24b998){_0x2c9004(_0x24b998);}),_0x234bb8[_0x2c5e9e('0x73f')]=[];});}_0x234bb8[_0xd79dbb('0xfea')]=[],_0x234bb8[_0xd79dbb('0x18be')]=_0x9cc185,_0x234bb8[_0xd79dbb('0x21c9')]=_0x3088cd,_0x234bb8['deleteSelectedFields']=_0xaabbca;function _0x9cc185(_0x27ac86,_0xe357a6){const _0x8d182b=_0xd79dbb;_0x3a10cb[_0x8d182b('0xb9')]({'controller':_0x8d182b('0x21cd'),'controllerAs':'vm','templateUrl':_0x4c2d02,'parent':angular['element'](_0x199ca4[_0x8d182b('0x1d2')]),'targetEvent':_0x27ac86,'clickOutsideToClose':!![],'locals':{'type':_0x8d182b('0x485'),'item':_0xe357a6,'items':_0x234bb8['fields'],'configuration':_0x234bb8[_0x8d182b('0x3bc')],'account':_0x234bb8[_0x8d182b('0x2641')],'license':null,'setting':null,'crudPermissions':_0x234bb8['crudPermissions']}});}function _0xbc5926(_0x58d84a){const _0x26b4fb=_0xd79dbb;_0xcecaff[_0x26b4fb('0xcb3')]['delete']({'id':_0x58d84a['id']})[_0x26b4fb('0x1549')][_0x26b4fb('0x11bf')](function(){const _0x45ec83=_0x26b4fb;_0x36f548()[_0x45ec83('0x14a5')](_0x234bb8[_0x45ec83('0x1067')],{'id':_0x58d84a['id']}),_0x32a5fe[_0x45ec83('0x2693')]({'title':_0x45ec83('0x4da'),'msg':_0x45ec83('0x264f')});})['catch'](function(_0x59ab24){const _0x9c3d61=_0x26b4fb;_0x32a5fe[_0x9c3d61('0x255')]({'title':_0x59ab24[_0x9c3d61('0xff9')]?_0x9c3d61('0x574')+_0x59ab24[_0x9c3d61('0xff9')]+_0x9c3d61('0xb0b')+_0x59ab24[_0x9c3d61('0x212f')]:_0x9c3d61('0xc27'),'msg':_0x59ab24['data']?JSON[_0x9c3d61('0x3e')](_0x59ab24[_0x9c3d61('0x4e8')]):_0x59ab24[_0x9c3d61('0xaab')]()});});}function _0x3088cd(_0x389dac,_0x57c7ca){const _0x254378=_0xd79dbb,_0x32e929=_0x3a10cb['confirm']()['title'](_0x254378('0x915'))[_0x254378('0x1d03')](_0x254378('0xdc8')+'\x20will\x20be\x20deleted.')[_0x254378('0xb2e')](_0x254378('0xc52'))[_0x254378('0x1e25')](_0x389dac)['ok']('OK')[_0x254378('0x26c9')](_0x254378('0x772'));_0x3a10cb['show'](_0x32e929)[_0x254378('0x11bf')](function(){_0xbc5926(_0x57c7ca);},function(){const _0x3e276e=_0x254378;console[_0x3e276e('0xc78')](_0x3e276e('0x772'));});}function _0xaabbca(_0x2378e3){const _0x5124f0=_0xd79dbb,_0xdaa2e=_0x3a10cb[_0x5124f0('0x132b')]()['title'](_0x5124f0('0x25cc'))[_0x5124f0('0x1d03')](_0x5124f0('0x2061')+_0x234bb8[_0x5124f0('0xfea')][_0x5124f0('0x1e22')]+_0x5124f0('0xac6')+_0x5124f0('0x1a'))[_0x5124f0('0xb2e')](_0x5124f0('0x15b8'))['targetEvent'](_0x2378e3)['ok']('OK')[_0x5124f0('0x26c9')]('CANCEL');_0x3a10cb[_0x5124f0('0xb9')](_0xdaa2e)[_0x5124f0('0x11bf')](function(){const _0x4d439a=_0x5124f0;_0x234bb8['selectedFields'][_0x4d439a('0x1f88')](function(_0x18c4ee){_0xbc5926(_0x18c4ee);}),_0x234bb8[_0x4d439a('0xfea')]=[];});}}const _0x54e98f=_0x1162bf;_0x2d7297[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0xcbc'),_0x21d0f5('0x16b9'),_0x21d0f5('0x1ca2'),'$q','$translate',_0x21d0f5('0x142d'),_0x21d0f5('0x2766'),'servicenowConfiguration',_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),_0x21d0f5('0x17ff'),'setting',_0x21d0f5('0xb25')];function _0x2d7297(_0x29e3da,_0x2d8d93,_0x4235d7,_0x2c9854,_0x6be559,_0x1505d7,_0x4103a9,_0x1258c6,_0x35e5ba,_0x23ef45,_0x2a8a47,_0x5e61b5,_0x289962,_0x455415){const _0x352d86=_0x21d0f5,_0x313cdf=this;_0x313cdf[_0x352d86('0x32a')]=_0x2a8a47[_0x352d86('0x2428')](),_0x313cdf[_0x352d86('0x120f')]=[],_0x313cdf['setting']=_0x289962,_0x313cdf[_0x352d86('0x17ff')]=_0x5e61b5,_0x313cdf[_0x352d86('0xb25')]=_0x455415,_0x313cdf[_0x352d86('0x2c9')]={},_0x313cdf[_0x352d86('0x2834')]=_0x313cdf[_0x352d86('0x23e1')]&&_0x313cdf[_0x352d86('0x23e1')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x313cdf[_0x352d86('0x134b')]='INTEGRATIONS.EDIT_SERVICENOWCONFIGURATION',_0x313cdf[_0x352d86('0x3bc')]=angular[_0x352d86('0x6fb')](_0x35e5ba),_0x313cdf[_0x352d86('0x2766')]=_0x1258c6,_0x313cdf[_0x352d86('0x844')]=![];!_0x313cdf['servicenowConfiguration']&&(_0x313cdf['servicenowConfiguration']={'channel':_0x352d86('0x1bc3'),'type':_0x352d86('0x18a2')},_0x313cdf[_0x352d86('0x134b')]='INTEGRATIONS.NEW_SERVICENOWCONFIGURATION',_0x313cdf[_0x352d86('0x844')]=!![]);_0x313cdf[_0x352d86('0x20bc')]=_0x3aa92f,_0x313cdf[_0x352d86('0x1cd')]=_0x5b5b44,_0x313cdf['deleteServicenowConfiguration']=_0x2d1b7c,_0x313cdf[_0x352d86('0x1bd1')]=_0x519cff,_0x313cdf[_0x352d86('0xc4e')]=_0xddde50;function _0x3aa92f(){const _0x114f6b=_0x352d86;_0x313cdf[_0x114f6b('0x120f')]=[],_0x23ef45[_0x114f6b('0x2661')][_0x114f6b('0x157f')]({'id':_0x2d8d93[_0x114f6b('0x1ab3')]['id']},_0x313cdf[_0x114f6b('0x3bc')])[_0x114f6b('0x1549')][_0x114f6b('0x11bf')](function(_0x54064a){const _0x434ae6=_0x114f6b;_0x313cdf[_0x434ae6('0x2766')][_0x434ae6('0x880')](_0x54064a[_0x434ae6('0x2866')]()),_0x4103a9[_0x434ae6('0x2693')]({'title':'ServicenowConfiguration\x20properly\x20created','msg':_0x313cdf[_0x434ae6('0x3bc')][_0x434ae6('0x1909')]?_0x313cdf[_0x434ae6('0x3bc')][_0x434ae6('0x1909')]+_0x434ae6('0x7fb'):''}),_0xddde50(_0x54064a);})['catch'](function(_0x47ccd2){const _0x2cdc31=_0x114f6b;if(_0x47ccd2[_0x2cdc31('0x4e8')]&&_0x47ccd2[_0x2cdc31('0x4e8')][_0x2cdc31('0x120f')]&&_0x47ccd2['data']['errors']['length']){_0x313cdf[_0x2cdc31('0x120f')]=_0x47ccd2[_0x2cdc31('0x4e8')][_0x2cdc31('0x120f')]||[{'message':_0x47ccd2[_0x2cdc31('0xaab')](),'type':_0x2cdc31('0xc12')}];for(let _0x1d1301=0x0;_0x1d1301<_0x47ccd2[_0x2cdc31('0x4e8')][_0x2cdc31('0x120f')][_0x2cdc31('0x1e22')];_0x1d1301+=0x1){_0x4103a9[_0x2cdc31('0x255')]({'title':_0x47ccd2[_0x2cdc31('0x4e8')][_0x2cdc31('0x120f')][_0x1d1301][_0x2cdc31('0x19fd')],'msg':_0x47ccd2[_0x2cdc31('0x4e8')][_0x2cdc31('0x120f')][_0x1d1301][_0x2cdc31('0x1b86')]});}}else _0x4103a9[_0x2cdc31('0x255')]({'title':_0x47ccd2['status']?_0x2cdc31('0x574')+_0x47ccd2['status']+_0x2cdc31('0xb0b')+_0x47ccd2['statusText']:_0x2cdc31('0xc12'),'msg':_0x47ccd2['data']?JSON[_0x2cdc31('0x3e')](_0x47ccd2[_0x2cdc31('0x4e8')]['message']):_0x47ccd2['toString']()});});}function _0x5b5b44(){const _0x45aa0a=_0x352d86;_0x313cdf[_0x45aa0a('0x120f')]=[],_0x23ef45[_0x45aa0a('0x1e64')]['update']({'id':_0x313cdf[_0x45aa0a('0x3bc')]['id']},_0x313cdf[_0x45aa0a('0x3bc')])['$promise'][_0x45aa0a('0x11bf')](function(_0x32e64b){const _0x16ac29=_0x45aa0a,_0x3a5f9f=_0x36f548()['find'](_0x313cdf[_0x16ac29('0x2766')],{'id':_0x32e64b['id']});_0x3a5f9f&&_0x36f548()[_0x16ac29('0x47b')](_0x3a5f9f,_0x36f548()[_0x16ac29('0x258')](_0x32e64b['toJSON'](),_0x36f548()[_0x16ac29('0xe22')](_0x3a5f9f))),_0x4103a9[_0x16ac29('0x2693')]({'title':_0x16ac29('0x13b7'),'msg':_0x313cdf[_0x16ac29('0x3bc')][_0x16ac29('0x1909')]?_0x313cdf[_0x16ac29('0x3bc')]['name']+_0x16ac29('0x1a78'):''}),_0xddde50(_0x32e64b);})[_0x45aa0a('0x151d')](function(_0x239724){const _0x280e03=_0x45aa0a;if(_0x239724[_0x280e03('0x4e8')]&&_0x239724[_0x280e03('0x4e8')][_0x280e03('0x120f')]&&_0x239724[_0x280e03('0x4e8')][_0x280e03('0x120f')]['length']){_0x313cdf[_0x280e03('0x120f')]=_0x239724['data'][_0x280e03('0x120f')]||[{'message':_0x239724['toString'](),'type':'api.intServicenowConfiguration.update'}];for(let _0x2b14e8=0x0;_0x2b14e8<_0x239724[_0x280e03('0x4e8')]['errors'][_0x280e03('0x1e22')];_0x2b14e8++){_0x4103a9['error']({'title':_0x239724[_0x280e03('0x4e8')][_0x280e03('0x120f')][_0x2b14e8][_0x280e03('0x19fd')],'msg':_0x239724[_0x280e03('0x4e8')]['errors'][_0x2b14e8][_0x280e03('0x1b86')]});}}else _0x4103a9[_0x280e03('0x255')]({'title':_0x239724[_0x280e03('0xff9')]?_0x280e03('0x574')+_0x239724[_0x280e03('0xff9')]+_0x280e03('0xb0b')+_0x239724[_0x280e03('0x212f')]:_0x280e03('0x257'),'msg':_0x239724[_0x280e03('0x4e8')]?JSON['stringify'](_0x239724[_0x280e03('0x4e8')][_0x280e03('0x1b86')]):_0x239724[_0x280e03('0xaab')]()});});}function _0x2d1b7c(_0xfd8693){const _0x6f735f=_0x352d86;_0x313cdf[_0x6f735f('0x120f')]=[];const _0x341875=_0x2c9854[_0x6f735f('0x132b')]()[_0x6f735f('0x134b')](_0x6f735f('0x1fa9'))['content']('The\x20servicenowConfiguration\x20will\x20be\x20deleted.')[_0x6f735f('0xb2e')](_0x6f735f('0x2287'))['ok']('Delete')['cancel'](_0x6f735f('0x784'))[_0x6f735f('0x1e25')](_0xfd8693);_0x2c9854[_0x6f735f('0xb9')](_0x341875)[_0x6f735f('0x11bf')](function(){const _0x32f5fe=_0x6f735f;_0x23ef45[_0x32f5fe('0x1e64')][_0x32f5fe('0x2088')]({'id':_0x313cdf[_0x32f5fe('0x3bc')]['id']})[_0x32f5fe('0x1549')][_0x32f5fe('0x11bf')](function(){const _0x4b8517=_0x32f5fe;_0x36f548()[_0x4b8517('0x14a5')](_0x313cdf[_0x4b8517('0x2766')],{'id':_0x313cdf[_0x4b8517('0x3bc')]['id']}),_0x4103a9['success']({'title':_0x4b8517('0x2712'),'msg':(_0x313cdf['servicenowConfiguration']['name']||'servicenowConfiguration')+_0x4b8517('0x433')}),_0xddde50(_0x313cdf[_0x4b8517('0x3bc')]);})[_0x32f5fe('0x151d')](function(_0x59e67a){const _0xec3fbf=_0x32f5fe;if(_0x59e67a[_0xec3fbf('0x4e8')]&&_0x59e67a[_0xec3fbf('0x4e8')][_0xec3fbf('0x120f')]&&_0x59e67a[_0xec3fbf('0x4e8')][_0xec3fbf('0x120f')][_0xec3fbf('0x1e22')]){_0x313cdf[_0xec3fbf('0x120f')]=_0x59e67a[_0xec3fbf('0x4e8')]['errors']||[{'message':_0x59e67a[_0xec3fbf('0xaab')](),'type':_0xec3fbf('0x2779')}];for(let _0x1477b3=0x0;_0x1477b3<_0x59e67a['data'][_0xec3fbf('0x120f')][_0xec3fbf('0x1e22')];_0x1477b3++){_0x4103a9[_0xec3fbf('0x255')]({'title':_0x59e67a['data'][_0xec3fbf('0x120f')][_0x1477b3][_0xec3fbf('0x19fd')],'msg':_0x59e67a[_0xec3fbf('0x4e8')][_0xec3fbf('0x120f')][_0x1477b3]['message']});}}else _0x4103a9[_0xec3fbf('0x255')]({'title':_0x59e67a[_0xec3fbf('0xff9')]?_0xec3fbf('0x574')+_0x59e67a[_0xec3fbf('0xff9')]+'\x20-\x20'+_0x59e67a[_0xec3fbf('0x212f')]:_0xec3fbf('0x2779'),'msg':_0x59e67a['data']?JSON[_0xec3fbf('0x3e')](_0x59e67a[_0xec3fbf('0x4e8')][_0xec3fbf('0x1b86')]):_0x59e67a[_0xec3fbf('0x1b86')]||_0x59e67a['toString']()});});},function(){});}function _0x519cff(_0x977ac0){return _0x977ac0===null?undefined:new Date(_0x977ac0);}function _0xddde50(_0x10acd0){const _0x1ea671=_0x352d86;_0x2c9854[_0x1ea671('0x237e')](_0x10acd0);}}const _0x329db4=_0x2d7297;_0x46f811['$inject']=[_0x21d0f5('0x1b80'),_0x21d0f5('0xcbc'),_0x21d0f5('0x16b9'),_0x21d0f5('0x1ca2'),_0x21d0f5('0x142d'),'configuration',_0x21d0f5('0x22'),'item',_0x21d0f5('0x2565'),_0x21d0f5('0x19fd'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),_0x21d0f5('0xb25')];function _0x46f811(_0x42aae6,_0x424070,_0x2f7312,_0x12e761,_0x28162f,_0x30b175,_0x366c43,_0x42e9ac,_0x21812a,_0x23a152,_0x4f3a11,_0x4404b4,_0xee13a3){const _0x511ce5=_0x21d0f5,_0x743984=this;_0x743984[_0x511ce5('0x32a')]=_0x4404b4[_0x511ce5('0x2428')](),_0x743984[_0x511ce5('0x120f')]=[],_0x743984[_0x511ce5('0x134b')]=_0x511ce5('0x1e35')+_0x36f548()[_0x511ce5('0x1a31')](_0x23a152),_0x743984[_0x511ce5('0xa9c')]=angular[_0x511ce5('0x6fb')](_0x42e9ac),_0x743984[_0x511ce5('0x22')]=_0x366c43,_0x743984[_0x511ce5('0x19fd')]=_0x23a152,_0x743984[_0x511ce5('0xb25')]=_0xee13a3,_0x743984[_0x511ce5('0x1f63')]=![];!_0x743984[_0x511ce5('0xa9c')]&&(_0x743984[_0x511ce5('0xa9c')]={'type':_0x511ce5('0x2380')},_0x743984[_0x511ce5('0xa9c')][_0x36f548()[_0x511ce5('0x22c2')](_0x23a152)+'Id']=_0x30b175['id'],_0x743984[_0x511ce5('0x134b')]=_0x511ce5('0x26b9')+_0x36f548()[_0x511ce5('0x1a31')](_0x23a152),_0x743984[_0x511ce5('0x1f63')]=!![]);_0x743984[_0x511ce5('0x2bc')]=_0x3492fb,_0x743984[_0x511ce5('0x265e')]=_0x4386e4,_0x743984['deleteItem']=_0x1b9689,_0x743984[_0x511ce5('0x6e1')]=_0x4d4e42,_0x743984['closeDialog']=_0x142c3e,_0x4f3a11[_0x511ce5('0xb0')][_0x511ce5('0xbaa')]({'nolimit':!![]})['$promise'][_0x511ce5('0x11bf')](function(_0x52937c){const _0x3a1a8b=_0x511ce5;return _0x743984['variables']=_0x52937c[_0x3a1a8b('0x19b2')]?_0x52937c['rows']:[],_0x4f3a11[_0x3a1a8b('0x1313')][_0x3a1a8b('0x19a5')]()[_0x3a1a8b('0x1549')];})['then'](function(_0x4fb685){const _0x15a6b6=_0x511ce5;return _0x743984['voiceAgentReportColumns']=_0x36f548()['difference'](_0x36f548()[_0x15a6b6('0xe22')](_0x4fb685),[_0x15a6b6('0x1549'),_0x15a6b6('0x1619'),_0x15a6b6('0x1779'),_0x15a6b6('0x14ea'),_0x15a6b6('0x14b4')]),_0x743984[_0x15a6b6('0x1720')][_0x15a6b6('0x105d')](_0x15a6b6('0xbf8')),_0x4f3a11['voiceDialReport']['describe']()['$promise'];})['then'](function(_0x233714){const _0x196d63=_0x511ce5;_0x743984[_0x196d63('0x77c')]=_0x36f548()[_0x196d63('0x1271')](_0x36f548()[_0x196d63('0xe22')](_0x233714),[_0x196d63('0x1549'),'$resolved',_0x196d63('0x1779'),'updatedAt',_0x196d63('0x14b4')]),_0x743984[_0x196d63('0x77c')][_0x196d63('0x105d')](_0x196d63('0xbf8'));})[_0x511ce5('0x151d')](function(_0x3e954a){const _0x1599be=_0x511ce5;_0x28162f[_0x1599be('0x255')]({'title':_0x3e954a['status']?_0x1599be('0x574')+_0x3e954a[_0x1599be('0xff9')]+_0x1599be('0xb0b')+_0x3e954a['statusText']:_0x1599be('0x2010'),'msg':_0x3e954a[_0x1599be('0x4e8')]?JSON[_0x1599be('0x3e')](_0x3e954a[_0x1599be('0x4e8')]):_0x3e954a[_0x1599be('0xaab')]()});}),_0x4f3a11[_0x511ce5('0x2661')]['getFields']({'id':_0x21812a['id'],'ticketType':_0x30b175[_0x511ce5('0x1bd2')]?_0x30b175[_0x511ce5('0x1bd2')]:undefined})[_0x511ce5('0x1549')][_0x511ce5('0x11bf')](function(_0x375277){const _0x36b89c=_0x511ce5;_0x743984[_0x36b89c('0xf69')]=!![],_0x743984[_0x36b89c('0x1067')]=_0x375277[_0x36b89c('0x19b2')]?_0x375277[_0x36b89c('0x19b2')]:[],_0x743984[_0x36b89c('0xa9c')][_0x36b89c('0x223a')]&&(_0x743984[_0x36b89c('0x2830')]=_0x36f548()[_0x36b89c('0x1ad4')](_0x743984[_0x36b89c('0x1067')],{'id':_0x743984[_0x36b89c('0xa9c')][_0x36b89c('0x223a')]}));})['catch'](function(_0x27dbf9){const _0x7d733c=_0x511ce5;_0x743984[_0x7d733c('0xf69')]=![],console['error'](_0x27dbf9);});function _0x3492fb(){const _0x43bb34=_0x511ce5;_0x743984[_0x43bb34('0x120f')]=[],_0x743984[_0x43bb34('0x2830')]&&(_0x743984['item']['idField']=_0x743984[_0x43bb34('0x2830')]['id'],_0x743984['item'][_0x43bb34('0x1992')]=_0x743984[_0x43bb34('0x2830')][_0x43bb34('0x1909')],_0x743984[_0x43bb34('0xa9c')]['customField']=_0x743984[_0x43bb34('0x2830')]['custom']),_0x4f3a11[_0x43bb34('0xcb3')][_0x43bb34('0x259')](_0x743984['item'])[_0x43bb34('0x1549')]['then'](function(_0x5c36df){const _0x2b4226=_0x43bb34;_0x743984['items'][_0x2b4226('0x880')](_0x5c36df),_0x28162f[_0x2b4226('0x2693')]({'title':_0x36f548()[_0x2b4226('0x22c2')](_0x23a152)+'\x20properly\x20created','msg':_0x36f548()[_0x2b4226('0x22c2')](_0x23a152)+_0x2b4226('0x7fb')}),_0x142c3e();})['catch'](function(_0x504c32){const _0x155bc9=_0x43bb34;console[_0x155bc9('0x255')](_0x504c32),_0x743984[_0x155bc9('0x120f')]=_0x504c32[_0x155bc9('0x4e8')][_0x155bc9('0x120f')]||[{'message':_0x504c32[_0x155bc9('0xaab')](),'type':_0x155bc9('0x20a1')}];});}function _0x4386e4(){const _0x58e9a6=_0x511ce5;_0x743984['errors']=[],_0x743984[_0x58e9a6('0x2830')]&&(_0x743984[_0x58e9a6('0xa9c')][_0x58e9a6('0x223a')]=_0x743984[_0x58e9a6('0x2830')]['id'],_0x743984['item'][_0x58e9a6('0x1992')]=_0x743984[_0x58e9a6('0x2830')][_0x58e9a6('0x1909')],_0x743984['item'][_0x58e9a6('0x2830')]=_0x743984[_0x58e9a6('0x2830')][_0x58e9a6('0xa8d')]),_0x4f3a11['intServicenowField'][_0x58e9a6('0x5ab')]({'id':_0x743984['item']['id']},_0x743984[_0x58e9a6('0xa9c')])['$promise'][_0x58e9a6('0x11bf')](function(_0x509993){const _0x318086=_0x58e9a6,_0x15e7cc=_0x36f548()[_0x318086('0x1ad4')](_0x743984[_0x318086('0x22')],{'id':_0x509993['id']});_0x15e7cc&&_0x36f548()[_0x318086('0x47b')](_0x15e7cc,_0x509993),_0x28162f['success']({'title':_0x36f548()[_0x318086('0x22c2')](_0x23a152)+'\x20properly\x20saved!','msg':_0x36f548()[_0x318086('0x22c2')](_0x23a152)+_0x318086('0x1a78')}),_0x142c3e();})['catch'](function(_0xb9e69f){const _0x4d3c78=_0x58e9a6;console['error'](_0xb9e69f),_0x743984[_0x4d3c78('0x120f')]=_0xb9e69f[_0x4d3c78('0x4e8')][_0x4d3c78('0x120f')]||[{'message':_0xb9e69f[_0x4d3c78('0xaab')](),'type':_0x4d3c78('0xbab')}];});}function _0x1b9689(_0x44d7c7){const _0x26894f=_0x511ce5;_0x743984['errors']=[];const _0x34a19f=_0x12e761['confirm']()[_0x26894f('0x134b')](_0x26894f('0x1fa9'))['content'](_0x26894f('0x2155')+_0x23a152+_0x26894f('0x1a'))[_0x26894f('0xb2e')]('Delete\x20'+_0x36f548()[_0x26894f('0x22c2')](_0x23a152))['ok']('Delete')[_0x26894f('0x26c9')](_0x26894f('0x784'))['targetEvent'](_0x44d7c7);_0x12e761[_0x26894f('0xb9')](_0x34a19f)[_0x26894f('0x11bf')](function(){const _0x93895f=_0x26894f;_0x4f3a11['intServicenowField'][_0x93895f('0x2088')]({'id':_0x743984['item']['id']})[_0x93895f('0x1549')][_0x93895f('0x11bf')](function(){const _0x207d2a=_0x93895f;_0x36f548()['remove'](_0x743984[_0x207d2a('0x22')],{'id':_0x743984['item']['id']}),_0x28162f[_0x207d2a('0x2693')]({'title':_0x36f548()['capitalize'](_0x23a152)+_0x207d2a('0x12bc'),'msg':_0x36f548()[_0x207d2a('0x22c2')](_0x23a152)+'\x20has\x20been\x20deleted!'}),_0x142c3e();})[_0x93895f('0x151d')](function(_0x3ac7b8){const _0x5f2854=_0x93895f;console['error'](_0x3ac7b8),_0x743984[_0x5f2854('0x120f')]=_0x3ac7b8[_0x5f2854('0x4e8')]['errors']||[{'message':_0x3ac7b8[_0x5f2854('0xaab')](),'type':_0x5f2854('0x20f0')}];});},function(){});}function _0x4d4e42(){const _0x27d77e=_0x511ce5;return _0x743984[_0x27d77e('0xa9c')]['variableName']!==undefined?_0x743984[_0x27d77e('0xa9c')][_0x27d77e('0x209e')]:_0x27d77e('0xbc2');}function _0x142c3e(){const _0x5b928e=_0x511ce5;_0x12e761[_0x5b928e('0x237e')]();}}const _0x314b32=_0x46f811;_0x37c446[_0x21d0f5('0x1e9a')]=['$state',_0x21d0f5('0x16b9'),'$mdDialog',_0x21d0f5('0x1b30'),_0x21d0f5('0xb6b'),_0x21d0f5('0x17ff'),'setting','api',_0x21d0f5('0x142d'),_0x21d0f5('0x1150'),_0x21d0f5('0x2641'),_0x21d0f5('0x1d63')];function _0x37c446(_0x511916,_0x2af6f8,_0x23d9e0,_0x31b83b,_0x16138c,_0xdeea91,_0x5433fc,_0x2e2e3f,_0x526dcd,_0x4d5e7e,_0x76e884,_0x2b4a07){const _0x5b4d8f=_0x21d0f5,_0xca83e1=this;_0xca83e1['currentUser']=_0x4d5e7e['getCurrentUser'](),_0xca83e1[_0x5b4d8f('0x17ff')]=_0xdeea91,_0xca83e1['setting']=_0x5433fc,_0xca83e1[_0x5b4d8f('0x2834')]=_0xca83e1[_0x5b4d8f('0x23e1')][_0x5b4d8f('0x1d4')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0xca83e1[_0x5b4d8f('0x1d9a')]=_0x2af6f8[_0x5b4d8f('0x1797')]()+'://'+_0x2af6f8[_0x5b4d8f('0x14ec')](),_0xca83e1[_0x5b4d8f('0x2641')]=_0x76e884||_0x511916[_0x5b4d8f('0x1ab3')][_0x5b4d8f('0x2641')]||{},_0xca83e1[_0x5b4d8f('0x1d63')]=_0x2b4a07&&_0x2b4a07[_0x5b4d8f('0x27d2')]==0x1?_0x2b4a07['rows'][0x0]:null,_0xca83e1['crudPermissions']=_0x4d5e7e[_0x5b4d8f('0x1530')](_0xca83e1[_0x5b4d8f('0x1d63')]?_0xca83e1[_0x5b4d8f('0x1d63')][_0x5b4d8f('0xb25')]:null),_0xca83e1[_0x5b4d8f('0x2c9')]={},_0xca83e1[_0x5b4d8f('0x1179')]=_0x511916[_0x5b4d8f('0x1ab3')][_0x5b4d8f('0x205c')]||0x0,_0xca83e1['alert']=_0x526dcd[_0x5b4d8f('0x870')],_0xca83e1[_0x5b4d8f('0x4ae')]=_0x247b9b,_0xca83e1['saveServicenowAccount']=_0x2a1836;function _0x247b9b(){const _0x1fc840=_0x5b4d8f;_0x511916['go'](_0x1fc840('0x533'),{},{'reload':_0x1fc840('0x533')});}function _0x2a1836(){const _0x36816a=_0x5b4d8f;_0x2e2e3f[_0x36816a('0x2661')][_0x36816a('0x5ab')]({'id':_0xca83e1['servicenowAccount']['id']},_0xca83e1[_0x36816a('0x2641')])[_0x36816a('0x1549')][_0x36816a('0x11bf')](function(){const _0x10e955=_0x36816a;_0x526dcd['success']({'title':_0x10e955('0x20cf'),'msg':_0xca83e1[_0x10e955('0x2641')][_0x10e955('0x1909')]?_0xca83e1[_0x10e955('0x2641')][_0x10e955('0x1909')]+_0x10e955('0xd7'):''});})[_0x36816a('0x151d')](function(_0x109fba){const _0x2f2331=_0x36816a;_0x526dcd[_0x2f2331('0x255')]({'title':_0x109fba[_0x2f2331('0xff9')]?_0x2f2331('0x574')+_0x109fba[_0x2f2331('0xff9')]+_0x2f2331('0xb0b')+_0x109fba[_0x2f2331('0x212f')]:_0x2f2331('0x330'),'msg':_0x109fba[_0x2f2331('0x4e8')]?JSON[_0x2f2331('0x3e')](_0x109fba[_0x2f2331('0x4e8')]):_0x109fba[_0x2f2331('0xaab')]()});});}}const _0x59b0ec=_0x37c446,_0x3fffe2=_0x351988['p']+_0x21d0f5('0x1b82');_0x427544['$inject']=['$scope',_0x21d0f5('0x2143'),_0x21d0f5('0xcbc'),_0x21d0f5('0x18fe'),_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),_0x21d0f5('0x17f5'),'$translate',_0x21d0f5('0x1484'),'userProfile',_0x21d0f5('0x1d63'),_0x21d0f5('0x12a5'),'msUtils',_0x21d0f5('0x142d'),_0x21d0f5('0x1150'),_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1')];function _0x427544(_0x4e058a,_0x2653e4,_0x2e08f1,_0x261626,_0x32fd7a,_0x4bc73f,_0x59ae0c,_0x56abc2,_0x35ea27,_0x5089e0,_0x403a7a,_0x29d4ea,_0x1424a9,_0x249476,_0x3ad85e,_0x5bbf1e,_0x2881c){const _0x1bf24b=_0x21d0f5,_0x51ae70=this;_0x51ae70[_0x1bf24b('0x17ff')]=_0x5bbf1e,_0x51ae70[_0x1bf24b('0x23e1')]=_0x2881c,_0x51ae70[_0x1bf24b('0x32a')]=_0x3ad85e[_0x1bf24b('0x2428')](),_0x51ae70[_0x1bf24b('0x1484')]=_0x35ea27||{'count':0x0,'rows':[]},_0x51ae70[_0x1bf24b('0x25bc')]=_0x5089e0,_0x51ae70[_0x1bf24b('0x1d63')]=_0x403a7a&&_0x403a7a[_0x1bf24b('0x27d2')]==0x1?_0x403a7a['rows'][0x0]:null,_0x51ae70[_0x1bf24b('0xb25')]=_0x3ad85e['parseCrudPermissions'](_0x51ae70[_0x1bf24b('0x1d63')]?_0x51ae70[_0x1bf24b('0x1d63')][_0x1bf24b('0xb25')]:null),_0x51ae70[_0x1bf24b('0x13e8')]=_0x1bf24b('0x1484'),_0x51ae70[_0x1bf24b('0x724')]='',_0x51ae70[_0x1bf24b('0xe3c')]=null,_0x51ae70[_0x1bf24b('0x23ab')]=[],_0x51ae70[_0x1bf24b('0x1f2a')]={'fields':_0x1bf24b('0x1c27'),'limit':0xa,'page':0x1},_0x51ae70['editstate']=_0x1b8052,_0x51ae70[_0x1bf24b('0x776')]=_0x1f3bcf,_0x51ae70[_0x1bf24b('0x549')]=_0x48a5b2,_0x51ae70['success']=_0x4296e2,_0x51ae70[_0x1bf24b('0xbda')]=_0x451955,_0x51ae70[_0x1bf24b('0x16cb')]=_0x5e3910,_0x51ae70['deleteServicenowAccount']=_0x2bc743,_0x51ae70[_0x1bf24b('0xe84')]=_0x5a1f31,_0x51ae70['deleteSelectedServicenowAccounts']=_0x4751fb,_0x51ae70[_0x1bf24b('0x91c')]=_0x30c43b,_0x51ae70[_0x1bf24b('0x1b8')]=_0x3972e4;function _0x1b8052(_0x343d98){const _0xda0cbf=_0x1bf24b;_0x2e08f1['go'](_0xda0cbf('0xf99'),{'id':_0x343d98['id'],'servicenowAccount':_0x343d98,'crudPermissions':_0x51ae70[_0xda0cbf('0xb25')]});}function _0x1f3bcf(_0x68deba){const _0x117062=_0x1bf24b;return _0x29d4ea['intServicenowAccount'][_0x117062('0x8ff')]({'id':_0x68deba['id'],'test':!![]})['$promise'][_0x117062('0x11bf')](function(){const _0x5a7a8f=_0x117062;_0x249476[_0x5a7a8f('0x2693')]({'title':_0x5a7a8f('0x23b0'),'msg':_0x5a7a8f('0x1b13')});})[_0x117062('0x151d')](function(_0x2afec8){const _0x3af2bd=_0x117062;_0x249476[_0x3af2bd('0x255')]({'title':_0x3af2bd('0x23b0'),'msg':_0x2afec8[_0x3af2bd('0x4e8')]?_0x2afec8[_0x3af2bd('0x4e8')][_0x3af2bd('0x1b86')]?_0x2afec8['data'][_0x3af2bd('0x1b86')]:JSON[_0x3af2bd('0x3e')](_0x2afec8[_0x3af2bd('0x4e8')]):_0x2afec8[_0x3af2bd('0xaab')]()});});}function _0x48a5b2(_0x3fc638,_0x5c920c){const _0x3b0d33=_0x1bf24b,_0x5c79c6=_0x32fd7a[_0x3b0d33('0x132b')]()[_0x3b0d33('0x134b')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x36f548()[_0x3b0d33('0x13cf')](_0x3b0d33('0x2641'))+'?')[_0x3b0d33('0x1d03')](_0x3b0d33('0x2061')+(_0x3fc638[_0x3b0d33('0x1909')]||'servicenowAccount')+_0x3b0d33('0x1c78')+_0x3b0d33('0x1a'))[_0x3b0d33('0xb2e')](_0x3b0d33('0x220a'))['targetEvent'](_0x5c920c)['ok']('OK')['cancel'](_0x3b0d33('0x772'));_0x32fd7a[_0x3b0d33('0xb9')](_0x5c79c6)[_0x3b0d33('0x11bf')](function(){_0x2bc743(_0x3fc638);},function(){const _0x5ee10f=_0x3b0d33;console[_0x5ee10f('0xc78')](_0x5ee10f('0x772'));});}let _0x38e0bd=!![],_0x2fd986=0x1;_0x4e058a['$watch'](_0x1bf24b('0x842'),function(_0x156d2e,_0x41616b){const _0x46d3ed=_0x1bf24b;_0x38e0bd?_0x59ae0c(function(){_0x38e0bd=![];}):(!_0x41616b&&(_0x2fd986=_0x51ae70[_0x46d3ed('0x1f2a')][_0x46d3ed('0x1c2')]),_0x156d2e!==_0x41616b&&(_0x51ae70[_0x46d3ed('0x1f2a')][_0x46d3ed('0x1c2')]=0x1),!_0x156d2e&&(_0x51ae70[_0x46d3ed('0x1f2a')][_0x46d3ed('0x1c2')]=_0x2fd986),_0x51ae70[_0x46d3ed('0xbda')]());});function _0x4296e2(_0x362645){_0x51ae70['servicenowAccounts']=_0x362645||{'count':0x0,'rows':[]};}function _0x451955(){const _0xc1ac4e=_0x1bf24b;_0x51ae70[_0xc1ac4e('0x1f2a')][_0xc1ac4e('0x1393')]=(_0x51ae70[_0xc1ac4e('0x1f2a')]['page']-0x1)*_0x51ae70[_0xc1ac4e('0x1f2a')][_0xc1ac4e('0xd5c')],_0x3ad85e['hasRole']('admin')?_0x51ae70[_0xc1ac4e('0x13f')]=_0x29d4ea['intServicenowAccount'][_0xc1ac4e('0xbaa')](_0x51ae70['query'],_0x4296e2)['$promise']:(_0x51ae70[_0xc1ac4e('0x1f2a')]['id']=_0x51ae70[_0xc1ac4e('0x25bc')]['id'],_0x51ae70['query'][_0xc1ac4e('0xe6')]=_0xc1ac4e('0x774'),_0x51ae70['promise']=_0x29d4ea[_0xc1ac4e('0x25bc')][_0xc1ac4e('0x228e')](_0x51ae70['query'],_0x4296e2)[_0xc1ac4e('0x1549')]);}function _0x5e3910(_0x369fc1,_0x3a83eb){const _0x3a3555=_0x1bf24b;_0x32fd7a[_0x3a3555('0xb9')]({'controller':'CreateOrEditServicenowAccountDialogController','controllerAs':'vm','templateUrl':_0x3fffe2,'parent':angular[_0x3a3555('0x1e73')](_0x4bc73f[_0x3a3555('0x1d2')]),'targetEvent':_0x369fc1,'clickOutsideToClose':!![],'locals':{'servicenowAccount':_0x3a83eb,'servicenowAccounts':_0x51ae70[_0x3a3555('0x1484')]['rows'],'license':_0x51ae70[_0x3a3555('0x17ff')],'setting':_0x51ae70['setting'],'crudPermissions':_0x51ae70[_0x3a3555('0xb25')]}});}function _0x2bc743(_0x4a8dc5){const _0x32941d=_0x1bf24b;_0x29d4ea['intServicenowAccount'][_0x32941d('0x2088')]({'id':_0x4a8dc5['id']})['$promise'][_0x32941d('0x11bf')](function(){const _0x5d7568=_0x32941d;_0x36f548()[_0x5d7568('0x14a5')](_0x51ae70[_0x5d7568('0x1484')][_0x5d7568('0x19b2')],{'id':_0x4a8dc5['id']}),_0x51ae70[_0x5d7568('0x1484')][_0x5d7568('0x27d2')]-=0x1,!_0x51ae70[_0x5d7568('0x1484')][_0x5d7568('0x19b2')][_0x5d7568('0x1e22')]&&_0x51ae70['getServicenowAccounts'](),_0x249476[_0x5d7568('0x2693')]({'title':_0x36f548()['startCase']('ServicenowAccount')+_0x5d7568('0x2113'),'msg':_0x4a8dc5[_0x5d7568('0x1909')]?_0x4a8dc5[_0x5d7568('0x1909')]+_0x5d7568('0x433'):''});})[_0x32941d('0x151d')](function(_0x1fc3ba){const _0x29073b=_0x32941d;if(_0x1fc3ba[_0x29073b('0x4e8')]&&_0x1fc3ba[_0x29073b('0x4e8')]['errors']&&_0x1fc3ba[_0x29073b('0x4e8')][_0x29073b('0x120f')]['length']){_0x51ae70[_0x29073b('0x120f')]=_0x1fc3ba[_0x29073b('0x4e8')][_0x29073b('0x120f')]||[{'message':_0x1fc3ba[_0x29073b('0xaab')](),'type':_0x29073b('0x1328')}];for(let _0xe2793e=0x0;_0xe2793e<_0x1fc3ba[_0x29073b('0x4e8')][_0x29073b('0x120f')]['length'];_0xe2793e++){_0x249476[_0x29073b('0x255')]({'title':_0x1fc3ba[_0x29073b('0x4e8')][_0x29073b('0x120f')][_0xe2793e][_0x29073b('0x19fd')],'msg':_0x1fc3ba[_0x29073b('0x4e8')][_0x29073b('0x120f')][_0xe2793e]['message']});}}else _0x249476[_0x29073b('0x255')]({'title':_0x1fc3ba['status']?_0x29073b('0x574')+_0x1fc3ba[_0x29073b('0xff9')]+_0x29073b('0xb0b')+_0x1fc3ba['statusText']:'SYSTEM:DELETEintServicenowAccount','msg':_0x1fc3ba[_0x29073b('0x4e8')]?JSON[_0x29073b('0x3e')](_0x1fc3ba[_0x29073b('0x4e8')][_0x29073b('0x1b86')]):_0x1fc3ba[_0x29073b('0x1b86')]||_0x1fc3ba[_0x29073b('0xaab')]()});});}function _0x5a1f31(){const _0x4b118f=_0x1bf24b,_0x56e20c=angular[_0x4b118f('0x6fb')](_0x51ae70[_0x4b118f('0x23ab')]);return _0x51ae70[_0x4b118f('0x23ab')]=[],_0x56e20c;}function _0x4751fb(_0x120625){const _0x26b319=_0x1bf24b,_0x185d08=_0x32fd7a[_0x26b319('0x132b')]()[_0x26b319('0x134b')](_0x26b319('0x7d8'))['htmlContent'](_0x26b319('0x2061')+_0x51ae70[_0x26b319('0x23ab')][_0x26b319('0x1e22')]+'\x20selected'+_0x26b319('0x1a'))[_0x26b319('0xb2e')](_0x26b319('0xd3d'))['targetEvent'](_0x120625)['ok']('OK')[_0x26b319('0x26c9')](_0x26b319('0x772'));_0x32fd7a[_0x26b319('0xb9')](_0x185d08)['then'](function(){const _0x1ac462=_0x26b319;_0x51ae70[_0x1ac462('0x23ab')][_0x1ac462('0x1f88')](function(_0x422cd7){_0x2bc743(_0x422cd7);}),_0x51ae70['selectedServicenowAccounts']=[];});}function _0x30c43b(){const _0x240957=_0x1bf24b;_0x51ae70[_0x240957('0x23ab')]=[];}function _0x3972e4(){const _0x3a73f2=_0x1bf24b;_0x51ae70[_0x3a73f2('0x23ab')]=_0x51ae70[_0x3a73f2('0x1484')][_0x3a73f2('0x19b2')];}}const _0x1c1148=_0x427544;_0x9b37ed[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),'$state','$location',_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0xb6b'),_0x21d0f5('0x142d'),_0x21d0f5('0x21'),'sugarcrmAccount',_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),'license',_0x21d0f5('0x23e1'),_0x21d0f5('0xb25')];function _0x9b37ed(_0x22c6fe,_0x56bc3e,_0x1d9475,_0x254a29,_0x39e28d,_0x10a25b,_0x407544,_0x39b794,_0xebabb5,_0x3e6777,_0x4835ba,_0x1a0b39,_0x228f1e,_0x249492){const _0x20e5e2=_0x21d0f5,_0x2131cc=this;_0x2131cc['currentUser']=_0x4835ba['getCurrentUser'](),_0x2131cc[_0x20e5e2('0x120f')]=[],_0x2131cc[_0x20e5e2('0x23e1')]=_0x228f1e,_0x2131cc[_0x20e5e2('0x17ff')]=_0x1a0b39,_0x2131cc['crudPermissions']=_0x249492,_0x2131cc[_0x20e5e2('0x2c9')]={},_0x2131cc[_0x20e5e2('0x2834')]=_0x2131cc['setting']&&_0x2131cc['setting']['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2131cc[_0x20e5e2('0x134b')]=_0x20e5e2('0xf19'),_0x2131cc[_0x20e5e2('0x8e3')]=angular['copy'](_0xebabb5),_0x2131cc[_0x20e5e2('0x21')]=_0x39b794,_0x2131cc[_0x20e5e2('0x1135')]=![];!_0x2131cc[_0x20e5e2('0x8e3')]&&(_0x2131cc[_0x20e5e2('0x8e3')]={'serverUrl':_0x1d9475[_0x20e5e2('0x1797')]()+'://'+_0x1d9475[_0x20e5e2('0x14ec')]()+(_0x1d9475['port']()?':'+_0x1d9475[_0x20e5e2('0x235b')]():'')},_0x2131cc[_0x20e5e2('0x134b')]=_0x20e5e2('0x1d8b'),_0x2131cc[_0x20e5e2('0x1135')]=!![]);_0x2131cc[_0x20e5e2('0x6d2')]=_0x4fd4f7,_0x2131cc[_0x20e5e2('0x25b2')]=_0xd3a7bb,_0x2131cc['deleteSugarcrmAccount']=_0x29b19c,_0x2131cc[_0x20e5e2('0x1bd1')]=_0x53ef0e,_0x2131cc['closeDialog']=_0x2dc0bb;function _0x4fd4f7(){const _0x23f8b3=_0x20e5e2;_0x2131cc[_0x23f8b3('0x120f')]=[],_0x3e6777['intSugarcrmAccount'][_0x23f8b3('0x259')](_0x2131cc['sugarcrmAccount'])['$promise'][_0x23f8b3('0x11bf')](function(_0x41897d){const _0x38dd0e=_0x23f8b3;_0x2131cc[_0x38dd0e('0x21')][_0x38dd0e('0x880')](_0x41897d['toJSON']()),_0x407544[_0x38dd0e('0x2693')]({'title':_0x38dd0e('0xd07'),'msg':_0x2131cc[_0x38dd0e('0x8e3')][_0x38dd0e('0x1909')]?_0x2131cc[_0x38dd0e('0x8e3')]['name']+_0x38dd0e('0x7fb'):''}),_0x2dc0bb(_0x41897d);})['catch'](function(_0xe1560a){const _0x4fa779=_0x23f8b3;if(_0xe1560a[_0x4fa779('0x4e8')]&&_0xe1560a[_0x4fa779('0x4e8')][_0x4fa779('0x120f')]&&_0xe1560a[_0x4fa779('0x4e8')][_0x4fa779('0x120f')][_0x4fa779('0x1e22')]){_0x2131cc[_0x4fa779('0x120f')]=_0xe1560a[_0x4fa779('0x4e8')][_0x4fa779('0x120f')]||[{'message':_0xe1560a[_0x4fa779('0xaab')](),'type':_0x4fa779('0x1507')}];for(let _0x4e2563=0x0;_0x4e2563<_0xe1560a[_0x4fa779('0x4e8')][_0x4fa779('0x120f')][_0x4fa779('0x1e22')];_0x4e2563+=0x1){_0x407544['error']({'title':_0xe1560a[_0x4fa779('0x4e8')][_0x4fa779('0x120f')][_0x4e2563][_0x4fa779('0x19fd')],'msg':_0xe1560a[_0x4fa779('0x4e8')][_0x4fa779('0x120f')][_0x4e2563][_0x4fa779('0x1b86')]});}}else _0x407544[_0x4fa779('0x255')]({'title':_0xe1560a[_0x4fa779('0xff9')]?_0x4fa779('0x574')+_0xe1560a[_0x4fa779('0xff9')]+_0x4fa779('0xb0b')+_0xe1560a['statusText']:_0x4fa779('0x1507'),'msg':_0xe1560a[_0x4fa779('0x4e8')]?JSON[_0x4fa779('0x3e')](_0xe1560a[_0x4fa779('0x4e8')]['message']):_0xe1560a['toString']()});});}function _0xd3a7bb(){const _0x3b4444=_0x20e5e2;_0x2131cc['errors']=[],_0x3e6777[_0x3b4444('0xdfd')]['update']({'id':_0x2131cc[_0x3b4444('0x8e3')]['id']},_0x2131cc[_0x3b4444('0x8e3')])['$promise'][_0x3b4444('0x11bf')](function(_0x5d203a){const _0x16bfc8=_0x3b4444,_0x55e025=_0x36f548()['find'](_0x2131cc[_0x16bfc8('0x21')],{'id':_0x5d203a['id']});_0x55e025&&_0x36f548()[_0x16bfc8('0x47b')](_0x55e025,_0x36f548()[_0x16bfc8('0x258')](_0x5d203a[_0x16bfc8('0x2866')](),_0x36f548()[_0x16bfc8('0xe22')](_0x55e025))),_0x407544[_0x16bfc8('0x2693')]({'title':_0x16bfc8('0x12ec'),'msg':_0x2131cc[_0x16bfc8('0x8e3')]['name']?_0x2131cc[_0x16bfc8('0x8e3')][_0x16bfc8('0x1909')]+_0x16bfc8('0x1a78'):''}),_0x2dc0bb(_0x5d203a);})[_0x3b4444('0x151d')](function(_0x320999){const _0x2647a1=_0x3b4444;if(_0x320999['data']&&_0x320999[_0x2647a1('0x4e8')][_0x2647a1('0x120f')]&&_0x320999[_0x2647a1('0x4e8')][_0x2647a1('0x120f')][_0x2647a1('0x1e22')]){_0x2131cc['errors']=_0x320999['data'][_0x2647a1('0x120f')]||[{'message':_0x320999[_0x2647a1('0xaab')](),'type':'api.intSugarcrmAccount.update'}];for(let _0x5550c1=0x0;_0x5550c1<_0x320999[_0x2647a1('0x4e8')][_0x2647a1('0x120f')]['length'];_0x5550c1++){_0x407544[_0x2647a1('0x255')]({'title':_0x320999['data'][_0x2647a1('0x120f')][_0x5550c1]['type'],'msg':_0x320999[_0x2647a1('0x4e8')][_0x2647a1('0x120f')][_0x5550c1]['message']});}}else _0x407544[_0x2647a1('0x255')]({'title':_0x320999[_0x2647a1('0xff9')]?_0x2647a1('0x574')+_0x320999['status']+_0x2647a1('0xb0b')+_0x320999[_0x2647a1('0x212f')]:_0x2647a1('0x1b18'),'msg':_0x320999['data']?JSON[_0x2647a1('0x3e')](_0x320999['data'][_0x2647a1('0x1b86')]):_0x320999['toString']()});});}function _0x29b19c(_0x2e4022){const _0x390992=_0x20e5e2;_0x2131cc['errors']=[];const _0x6a611b=_0x254a29[_0x390992('0x132b')]()[_0x390992('0x134b')]('Are\x20you\x20sure?')['content']('The\x20sugarcrmAccount\x20will\x20be\x20deleted.')[_0x390992('0xb2e')](_0x390992('0xaf'))['ok'](_0x390992('0x1167'))[_0x390992('0x26c9')](_0x390992('0x784'))[_0x390992('0x1e25')](_0x2e4022);_0x254a29['show'](_0x6a611b)[_0x390992('0x11bf')](function(){const _0x5a409e=_0x390992;_0x3e6777[_0x5a409e('0xdfd')][_0x5a409e('0x2088')]({'id':_0x2131cc[_0x5a409e('0x8e3')]['id']})['$promise'][_0x5a409e('0x11bf')](function(){const _0x5eca04=_0x5a409e;_0x36f548()[_0x5eca04('0x14a5')](_0x2131cc[_0x5eca04('0x21')],{'id':_0x2131cc['sugarcrmAccount']['id']}),_0x407544[_0x5eca04('0x2693')]({'title':_0x5eca04('0x15cc'),'msg':(_0x2131cc[_0x5eca04('0x8e3')][_0x5eca04('0x1909')]||_0x5eca04('0x8e3'))+'\x20has\x20been\x20deleted!'}),_0x2dc0bb(_0x2131cc['sugarcrmAccount']);})[_0x5a409e('0x151d')](function(_0x5128ef){const _0x15b5c1=_0x5a409e;if(_0x5128ef[_0x15b5c1('0x4e8')]&&_0x5128ef[_0x15b5c1('0x4e8')]['errors']&&_0x5128ef['data'][_0x15b5c1('0x120f')][_0x15b5c1('0x1e22')]){_0x2131cc[_0x15b5c1('0x120f')]=_0x5128ef['data'][_0x15b5c1('0x120f')]||[{'message':_0x5128ef['toString'](),'type':_0x15b5c1('0x1ed0')}];for(let _0x450143=0x0;_0x450143<_0x5128ef['data'][_0x15b5c1('0x120f')][_0x15b5c1('0x1e22')];_0x450143++){_0x407544['error']({'title':_0x5128ef['data'][_0x15b5c1('0x120f')][_0x450143][_0x15b5c1('0x19fd')],'msg':_0x5128ef[_0x15b5c1('0x4e8')]['errors'][_0x450143][_0x15b5c1('0x1b86')]});}}else _0x407544[_0x15b5c1('0x255')]({'title':_0x5128ef[_0x15b5c1('0xff9')]?'API:'+_0x5128ef['status']+_0x15b5c1('0xb0b')+_0x5128ef['statusText']:_0x15b5c1('0x1ed0'),'msg':_0x5128ef['data']?JSON[_0x15b5c1('0x3e')](_0x5128ef[_0x15b5c1('0x4e8')][_0x15b5c1('0x1b86')]):_0x5128ef[_0x15b5c1('0x1b86')]||_0x5128ef[_0x15b5c1('0xaab')]()});});},function(){});}function _0x53ef0e(_0x2e45f8){return _0x2e45f8===null?undefined:new Date(_0x2e45f8);}function _0x2dc0bb(_0x33cbb2){const _0x4b5db5=_0x20e5e2;_0x254a29[_0x4b5db5('0x237e')](_0x33cbb2);}}const _0x482d3e=_0x9b37ed,_0x10be94=_0x351988['p']+_0x21d0f5('0x21c0'),_0x16bf48=_0x351988['p']+'src/js/modules/main/apps/integrations/views/sugarcrmAccounts/edit/item/dialog.html/dialog.html';_0x4165ec[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),_0x21d0f5('0x12a5'),_0x21d0f5('0x142d'),_0x21d0f5('0x1150')];function _0x4165ec(_0xabccef,_0xa74d98,_0x4e1d4c,_0x4196e8,_0x2d78ea){const _0x5ea516=_0x21d0f5,_0x1d464d=this;_0x1d464d[_0x5ea516('0x32a')]=_0x2d78ea[_0x5ea516('0x2428')](),_0x1d464d[_0x5ea516('0x8e3')]={},_0x1d464d['sugarcrmConfiguration']={},_0x1d464d[_0x5ea516('0x2766')]=[],_0x1d464d[_0x5ea516('0x8c8')]=-0x1,_0x1d464d[_0x5ea516('0xb25')],_0x1d464d['init']=_0x54ed47,_0x1d464d[_0x5ea516('0x2042')]=_0x491e20,_0x1d464d[_0x5ea516('0x3b9')]=_0x4cdef1,_0x1d464d['deleteSugarcrmConfiguration']=_0x461e23;function _0x54ed47(_0x28b5fc,_0x247c19){const _0x55cbf5=_0x5ea516;_0x1d464d['sugarcrmAccount']=_0x28b5fc,_0x1d464d[_0x55cbf5('0xb25')]=typeof _0x247c19!=='undefined'?_0x247c19:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x4e1d4c[_0x55cbf5('0xdfd')][_0x55cbf5('0x26af')]({'id':_0x1d464d[_0x55cbf5('0x8e3')]['id'],'sort':_0x55cbf5('0x1c74')})[_0x55cbf5('0x1549')]['then'](function(_0x1d59ab){const _0x39ec81=_0x55cbf5;return _0x1d464d[_0x39ec81('0x2766')]=_0x1d59ab['rows']?_0x1d59ab[_0x39ec81('0x19b2')]:[],_0x1d464d[_0x39ec81('0x2766')][_0x39ec81('0x1e22')]&&_0x1d464d[_0x39ec81('0x2042')](0x0),_0x4e1d4c['variable']['get']({'nolimit':!![],'sort':'name'})[_0x39ec81('0x1549')];})['then'](function(_0x157af1){const _0x13dbcd=_0x55cbf5;_0x1d464d[_0x13dbcd('0x1700')]=_0x157af1[_0x13dbcd('0x19b2')]?_0x157af1['rows']:[],_0x1d464d['variablesById']=_0x36f548()[_0x13dbcd('0x2130')](_0x1d464d[_0x13dbcd('0x1700')],'id');})['catch'](function(_0x59887a){const _0x3d0fd2=_0x55cbf5;_0x4196e8[_0x3d0fd2('0x255')]({'title':_0x59887a[_0x3d0fd2('0xff9')]?_0x3d0fd2('0x574')+_0x59887a['status']+_0x3d0fd2('0xb0b')+_0x59887a[_0x3d0fd2('0x212f')]:_0x3d0fd2('0x2752'),'msg':_0x59887a['data']?JSON[_0x3d0fd2('0x3e')](_0x59887a['data']):_0x59887a[_0x3d0fd2('0xaab')]()});});}function _0x491e20(_0x482870){const _0x4b2c7c=_0x5ea516;_0x1d464d[_0x4b2c7c('0x1e96')]=_0x1d464d['configurations'][_0x482870],_0x1d464d['selectedSugarcrmConfiguration']=_0x482870,_0x4e1d4c['intSugarcrmConfiguration'][_0x4b2c7c('0xace')]({'id':_0x1d464d[_0x4b2c7c('0x1e96')]['id']})[_0x4b2c7c('0x1549')][_0x4b2c7c('0x11bf')](function(_0x1db97f){const _0x34e405=_0x4b2c7c;return _0x1d464d[_0x34e405('0x1318')]=_0x1db97f[_0x34e405('0x19b2')]?_0x1db97f[_0x34e405('0x19b2')]:[],_0x4e1d4c[_0x34e405('0x186b')][_0x34e405('0x20e8')]({'id':_0x1d464d['sugarcrmConfiguration']['id']})['$promise'];})[_0x4b2c7c('0x11bf')](function(_0x78c4a0){const _0x639350=_0x4b2c7c;return _0x1d464d['descriptions']=_0x78c4a0[_0x639350('0x19b2')]?_0x78c4a0[_0x639350('0x19b2')]:[],_0x4e1d4c[_0x639350('0x186b')]['getFields']({'id':_0x1d464d[_0x639350('0x1e96')]['id']})[_0x639350('0x1549')];})['then'](function(_0x28def9){const _0x334215=_0x4b2c7c;_0x1d464d['fields']=_0x28def9[_0x334215('0x19b2')]?_0x28def9['rows']:[];})['catch'](function(_0x295d6a){const _0x4fff80=_0x4b2c7c;_0x4196e8[_0x4fff80('0x255')]({'title':_0x295d6a[_0x4fff80('0xff9')]?_0x4fff80('0x574')+_0x295d6a['status']+_0x4fff80('0xb0b')+_0x295d6a[_0x4fff80('0x212f')]:'SYSTEM:GETConfigurations','msg':_0x295d6a['data']?JSON['stringify'](_0x295d6a['data']):_0x295d6a[_0x4fff80('0xaab')]()});});}function _0x4cdef1(_0x47813c,_0x1d1ad1){const _0x3add43=_0x5ea516;_0xabccef[_0x3add43('0xb9')]({'controller':'CreateOrEditSugarcrmConfigurationDialogController','controllerAs':'vm','templateUrl':_0x10be94,'parent':angular[_0x3add43('0x1e73')](_0xa74d98[_0x3add43('0x1d2')]),'targetEvent':_0x47813c,'clickOutsideToClose':!![],'locals':{'sugarcrmConfiguration':_0x1d1ad1,'configurations':_0x1d464d[_0x3add43('0x2766')],'license':null,'setting':null,'crudPermissions':_0x1d464d[_0x3add43('0xb25')]}})[_0x3add43('0xa9b')](function(){const _0x1e0acc=_0x3add43;_0x1d464d[_0x1e0acc('0x2042')](0x0);});}function _0x461e23(_0x4ea5a6,_0x4d5290){const _0xc5a01b=_0x5ea516,_0x1f9fea=_0xabccef[_0xc5a01b('0x132b')]()[_0xc5a01b('0x134b')](_0xc5a01b('0x1e3e'))[_0xc5a01b('0x1d03')](_0xc5a01b('0x2061')+(_0x4d5290['name']||'sugarcrmConfiguration')+_0xc5a01b('0x1c78')+_0xc5a01b('0x1a'))[_0xc5a01b('0xb2e')](_0xc5a01b('0x1d32'))[_0xc5a01b('0x1e25')](_0x4ea5a6)['ok']('OK')[_0xc5a01b('0x26c9')]('CANCEL');_0xabccef[_0xc5a01b('0xb9')](_0x1f9fea)['then'](function(){const _0x2dd02d=_0xc5a01b;_0x4e1d4c[_0x2dd02d('0x186b')]['delete']({'id':_0x4d5290['id']})[_0x2dd02d('0x1549')][_0x2dd02d('0x11bf')](function(){const _0x513a56=_0x2dd02d;_0x36f548()[_0x513a56('0x14a5')](_0x1d464d[_0x513a56('0x2766')],{'id':_0x4d5290['id']}),_0x4196e8[_0x513a56('0x2693')]({'title':'SugarcrmConfiguration\x20deleted!','msg':_0x4d5290[_0x513a56('0x1909')]?_0x4d5290[_0x513a56('0x1909')]+_0x513a56('0x433'):''});})['catch'](function(_0x379548){const _0x411939=_0x2dd02d;_0x4196e8[_0x411939('0x255')]({'title':_0x379548[_0x411939('0xff9')]?_0x411939('0x574')+_0x379548[_0x411939('0xff9')]+_0x411939('0xb0b')+_0x379548[_0x411939('0x212f')]:_0x411939('0x15ea'),'msg':_0x379548[_0x411939('0x4e8')]?JSON[_0x411939('0x3e')](_0x379548[_0x411939('0x4e8')]):_0x379548['toString']()});})['finally'](function(){_0x1d464d['getSugarcrmConfiguration'](0x0);});},function(){const _0x4fe476=_0xc5a01b;console[_0x4fe476('0xc78')](_0x4fe476('0x772'));});}_0x1d464d[_0x5ea516('0x1151')]=[],_0x1d464d[_0x5ea516('0x1ec8')]=_0x353b4f,_0x1d464d[_0x5ea516('0x14ae')]=_0x4f2237,_0x1d464d[_0x5ea516('0x1ab')]=_0x16e3b3;function _0x353b4f(_0x496535,_0x2f2958){const _0x120baf=_0x5ea516;_0xabccef[_0x120baf('0xb9')]({'controller':_0x120baf('0x5ec'),'controllerAs':'vm','templateUrl':_0x16bf48,'parent':angular[_0x120baf('0x1e73')](_0xa74d98[_0x120baf('0x1d2')]),'targetEvent':_0x496535,'clickOutsideToClose':!![],'locals':{'type':_0x120baf('0x20eb'),'item':_0x2f2958,'items':_0x1d464d[_0x120baf('0x1318')],'configuration':_0x1d464d['sugarcrmConfiguration'],'account':_0x1d464d[_0x120baf('0x8e3')],'license':null,'setting':null,'crudPermissions':_0x1d464d[_0x120baf('0xb25')]}});}function _0xe1ba88(_0x1995ee){const _0x1904af=_0x5ea516;_0x4e1d4c[_0x1904af('0x19af')][_0x1904af('0x2088')]({'id':_0x1995ee['id']})[_0x1904af('0x1549')][_0x1904af('0x11bf')](function(){const _0x13972a=_0x1904af;_0x36f548()['remove'](_0x1d464d[_0x13972a('0x1318')],{'id':_0x1995ee['id']}),_0x4196e8[_0x13972a('0x2693')]({'title':_0x13972a('0x1845'),'msg':_0x13972a('0x4c1')});})[_0x1904af('0x151d')](function(_0x2ef2af){const _0x3bf654=_0x1904af;_0x4196e8[_0x3bf654('0x255')]({'title':_0x2ef2af[_0x3bf654('0xff9')]?'API:'+_0x2ef2af['status']+_0x3bf654('0xb0b')+_0x2ef2af[_0x3bf654('0x212f')]:_0x3bf654('0xc27'),'msg':_0x2ef2af['data']?JSON[_0x3bf654('0x3e')](_0x2ef2af[_0x3bf654('0x4e8')]):_0x2ef2af[_0x3bf654('0xaab')]()});});}function _0x4f2237(_0x3b270d,_0x5e9ef0){const _0x418e46=_0x5ea516,_0x56c481=_0xabccef[_0x418e46('0x132b')]()[_0x418e46('0x134b')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20subject?')['htmlContent']('Subject'+_0x418e46('0x1a'))[_0x418e46('0xb2e')]('delete\x20subject')['targetEvent'](_0x3b270d)['ok']('OK')['cancel'](_0x418e46('0x772'));_0xabccef['show'](_0x56c481)[_0x418e46('0x11bf')](function(){_0xe1ba88(_0x5e9ef0);},function(){const _0x3ea96b=_0x418e46;console['log'](_0x3ea96b('0x772'));});}function _0x16e3b3(_0xf5227c){const _0x10c6df=_0x5ea516,_0x412714=_0xabccef['confirm']()[_0x10c6df('0x134b')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20subjects?')[_0x10c6df('0x1d03')](_0x10c6df('0x2061')+_0x1d464d[_0x10c6df('0x1151')][_0x10c6df('0x1e22')]+_0x10c6df('0xac6')+_0x10c6df('0x1a'))[_0x10c6df('0xb2e')](_0x10c6df('0x1c7c'))[_0x10c6df('0x1e25')](_0xf5227c)['ok']('OK')['cancel'](_0x10c6df('0x772'));_0xabccef['show'](_0x412714)[_0x10c6df('0x11bf')](function(){const _0x1735fa=_0x10c6df;_0x1d464d['selectedSubjects'][_0x1735fa('0x1f88')](function(_0x191a3a){_0xe1ba88(_0x191a3a);}),_0x1d464d[_0x1735fa('0x1151')]=[];});}_0x1d464d[_0x5ea516('0x73f')]=[],_0x1d464d[_0x5ea516('0x25fe')]=_0x24657f,_0x1d464d[_0x5ea516('0x183b')]=_0x1bbd68,_0x1d464d[_0x5ea516('0x1a3e')]=_0x5b93c4;function _0x24657f(_0x51bf49,_0x4d278d){const _0x2f3ac1=_0x5ea516;_0xabccef[_0x2f3ac1('0xb9')]({'controller':'CreateOrEditSugarcrmAccountItemDialogController','controllerAs':'vm','templateUrl':_0x16bf48,'parent':angular[_0x2f3ac1('0x1e73')](_0xa74d98[_0x2f3ac1('0x1d2')]),'targetEvent':_0x51bf49,'clickOutsideToClose':!![],'locals':{'type':'description','item':_0x4d278d,'items':_0x1d464d[_0x2f3ac1('0xe12')],'configuration':_0x1d464d[_0x2f3ac1('0x1e96')],'account':_0x1d464d[_0x2f3ac1('0x8e3')],'license':null,'setting':null,'crudPermissions':_0x1d464d[_0x2f3ac1('0xb25')]}});}function _0x169a48(_0x4aa3d2){const _0x3a548f=_0x5ea516;_0x4e1d4c[_0x3a548f('0x19af')][_0x3a548f('0x2088')]({'id':_0x4aa3d2['id']})[_0x3a548f('0x1549')][_0x3a548f('0x11bf')](function(){const _0x382c81=_0x3a548f;_0x36f548()[_0x382c81('0x14a5')](_0x1d464d['descriptions'],{'id':_0x4aa3d2['id']}),_0x4196e8[_0x382c81('0x2693')]({'title':'Description\x20deleted!','msg':_0x382c81('0x40e')});})[_0x3a548f('0x151d')](function(_0x36f27b){const _0x2aee88=_0x3a548f;_0x4196e8[_0x2aee88('0x255')]({'title':_0x36f27b[_0x2aee88('0xff9')]?_0x2aee88('0x574')+_0x36f27b['status']+_0x2aee88('0xb0b')+_0x36f27b[_0x2aee88('0x212f')]:_0x2aee88('0xc27'),'msg':_0x36f27b[_0x2aee88('0x4e8')]?JSON['stringify'](_0x36f27b[_0x2aee88('0x4e8')]):_0x36f27b[_0x2aee88('0xaab')]()});});}function _0x1bbd68(_0x595d6a,_0x5c3045){const _0x10a688=_0x5ea516,_0x501318=_0xabccef[_0x10a688('0x132b')]()[_0x10a688('0x134b')](_0x10a688('0x46b'))[_0x10a688('0x1d03')](_0x10a688('0x48a')+_0x10a688('0x1a'))['ariaLabel'](_0x10a688('0xd32'))['targetEvent'](_0x595d6a)['ok']('OK')[_0x10a688('0x26c9')](_0x10a688('0x772'));_0xabccef[_0x10a688('0xb9')](_0x501318)['then'](function(){_0x169a48(_0x5c3045);},function(){const _0x3a40b4=_0x10a688;console[_0x3a40b4('0xc78')](_0x3a40b4('0x772'));});}function _0x5b93c4(_0x5dc784){const _0x663a=_0x5ea516,_0x2f77aa=_0xabccef[_0x663a('0x132b')]()['title'](_0x663a('0x1795'))['htmlContent'](_0x663a('0x2061')+_0x1d464d[_0x663a('0x73f')][_0x663a('0x1e22')]+_0x663a('0xac6')+_0x663a('0x1a'))[_0x663a('0xb2e')](_0x663a('0xade'))['targetEvent'](_0x5dc784)['ok']('OK')['cancel'](_0x663a('0x772'));_0xabccef['show'](_0x2f77aa)['then'](function(){const _0x4a733f=_0x663a;_0x1d464d['selectedDescriptions']['forEach'](function(_0x5da6f0){_0x169a48(_0x5da6f0);}),_0x1d464d[_0x4a733f('0x73f')]=[];});}_0x1d464d[_0x5ea516('0xfea')]=[],_0x1d464d[_0x5ea516('0x18be')]=_0x1b40d0,_0x1d464d[_0x5ea516('0x21c9')]=_0x25366f,_0x1d464d['deleteSelectedFields']=_0x19da98;function _0x1b40d0(_0x4ee0fc,_0x572c81){const _0x25ceec=_0x5ea516;_0xabccef['show']({'controller':'CreateOrEditSugarcrmAccountItemDialogController','controllerAs':'vm','templateUrl':_0x16bf48,'parent':angular[_0x25ceec('0x1e73')](_0xa74d98[_0x25ceec('0x1d2')]),'targetEvent':_0x4ee0fc,'clickOutsideToClose':!![],'locals':{'type':_0x25ceec('0x485'),'item':_0x572c81,'items':_0x1d464d[_0x25ceec('0x1067')],'configuration':_0x1d464d[_0x25ceec('0x1e96')],'account':_0x1d464d[_0x25ceec('0x8e3')],'license':null,'setting':null,'crudPermissions':_0x1d464d[_0x25ceec('0xb25')]}});}function _0x58e1ab(_0x1598c9){const _0x3ec5f7=_0x5ea516;_0x4e1d4c[_0x3ec5f7('0x19af')][_0x3ec5f7('0x2088')]({'id':_0x1598c9['id']})[_0x3ec5f7('0x1549')][_0x3ec5f7('0x11bf')](function(){const _0x277347=_0x3ec5f7;_0x36f548()[_0x277347('0x14a5')](_0x1d464d[_0x277347('0x1067')],{'id':_0x1598c9['id']}),_0x4196e8['success']({'title':_0x277347('0x4da'),'msg':'Field\x20has\x20been\x20deleted!'});})['catch'](function(_0x45f70e){const _0x26e92a=_0x3ec5f7;_0x4196e8[_0x26e92a('0x255')]({'title':_0x45f70e[_0x26e92a('0xff9')]?'API:'+_0x45f70e[_0x26e92a('0xff9')]+_0x26e92a('0xb0b')+_0x45f70e[_0x26e92a('0x212f')]:'SYSTEM:DELETECONFIGURATIONFIELD','msg':_0x45f70e[_0x26e92a('0x4e8')]?JSON[_0x26e92a('0x3e')](_0x45f70e[_0x26e92a('0x4e8')]):_0x45f70e[_0x26e92a('0xaab')]()});});}function _0x25366f(_0x4a7654,_0x51e30a){const _0x419d36=_0x5ea516,_0x7a4bd5=_0xabccef[_0x419d36('0x132b')]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20field?')[_0x419d36('0x1d03')](_0x419d36('0xdc8')+_0x419d36('0x1a'))['ariaLabel'](_0x419d36('0xc52'))[_0x419d36('0x1e25')](_0x4a7654)['ok']('OK')[_0x419d36('0x26c9')](_0x419d36('0x772'));_0xabccef[_0x419d36('0xb9')](_0x7a4bd5)[_0x419d36('0x11bf')](function(){_0x58e1ab(_0x51e30a);},function(){const _0x28f2f0=_0x419d36;console[_0x28f2f0('0xc78')]('CANCEL');});}function _0x19da98(_0x327c0b){const _0x133c0c=_0x5ea516,_0x5840cf=_0xabccef[_0x133c0c('0x132b')]()[_0x133c0c('0x134b')](_0x133c0c('0x25cc'))[_0x133c0c('0x1d03')](_0x133c0c('0x2061')+_0x1d464d['selectedFields'][_0x133c0c('0x1e22')]+_0x133c0c('0xac6')+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x133c0c('0x15b8'))[_0x133c0c('0x1e25')](_0x327c0b)['ok']('OK')[_0x133c0c('0x26c9')](_0x133c0c('0x772'));_0xabccef[_0x133c0c('0xb9')](_0x5840cf)[_0x133c0c('0x11bf')](function(){const _0x4659b9=_0x133c0c;_0x1d464d['selectedFields'][_0x4659b9('0x1f88')](function(_0x5e3a2a){_0x58e1ab(_0x5e3a2a);}),_0x1d464d[_0x4659b9('0xfea')]=[];});}}const _0xa7b02a=_0x4165ec;_0x57e27b[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),'$state',_0x21d0f5('0x16b9'),_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0xb6b'),'toasty',_0x21d0f5('0x2766'),_0x21d0f5('0x1e96'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1'),_0x21d0f5('0xb25')];function _0x57e27b(_0x274a0d,_0x15418c,_0x2d8b9c,_0x1b217e,_0x436585,_0xae1355,_0x36f1e2,_0x486a6d,_0x2a8e03,_0x4d1146,_0x589ae3,_0x285d43,_0x3e3c6a,_0x389dc5){const _0x4f0e21=_0x21d0f5,_0x14d87a=this;_0x14d87a[_0x4f0e21('0x32a')]=_0x589ae3['getCurrentUser'](),_0x14d87a[_0x4f0e21('0x120f')]=[],_0x14d87a[_0x4f0e21('0x23e1')]=_0x3e3c6a,_0x14d87a[_0x4f0e21('0x17ff')]=_0x285d43,_0x14d87a[_0x4f0e21('0xb25')]=_0x389dc5,_0x14d87a[_0x4f0e21('0x2c9')]={},_0x14d87a[_0x4f0e21('0x2834')]=_0x14d87a['setting']&&_0x14d87a[_0x4f0e21('0x23e1')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x14d87a[_0x4f0e21('0x134b')]=_0x4f0e21('0xf63'),_0x14d87a[_0x4f0e21('0x1e96')]=angular['copy'](_0x2a8e03),_0x14d87a[_0x4f0e21('0x2766')]=_0x486a6d,_0x14d87a[_0x4f0e21('0x994')]=![];!_0x14d87a[_0x4f0e21('0x1e96')]&&(_0x14d87a[_0x4f0e21('0x1e96')]={'channel':_0x4f0e21('0x1bc3'),'type':_0x4f0e21('0x18a2')},_0x14d87a['title']=_0x4f0e21('0xf86'),_0x14d87a[_0x4f0e21('0x994')]=!![]);_0x14d87a['addNewSugarcrmConfiguration']=_0x1b1719,_0x14d87a[_0x4f0e21('0x8e4')]=_0x159c8b,_0x14d87a[_0x4f0e21('0x154e')]=_0x232e75,_0x14d87a[_0x4f0e21('0x1bd1')]=_0x2d65b1,_0x14d87a[_0x4f0e21('0xc4e')]=_0x144994;function _0x1b1719(){const _0xbc0383=_0x4f0e21;_0x14d87a[_0xbc0383('0x120f')]=[],_0x4d1146[_0xbc0383('0xdfd')][_0xbc0383('0x157f')]({'id':_0x15418c[_0xbc0383('0x1ab3')]['id']},_0x14d87a[_0xbc0383('0x1e96')])[_0xbc0383('0x1549')]['then'](function(_0x40ea0f){const _0x2e8299=_0xbc0383;_0x14d87a[_0x2e8299('0x2766')][_0x2e8299('0x880')](_0x40ea0f['toJSON']()),_0x36f1e2['success']({'title':_0x2e8299('0x24d6'),'msg':_0x14d87a[_0x2e8299('0x1e96')][_0x2e8299('0x1909')]?_0x14d87a[_0x2e8299('0x1e96')][_0x2e8299('0x1909')]+'\x20has\x20been\x20created!':''}),_0x144994(_0x40ea0f);})[_0xbc0383('0x151d')](function(_0x598a0f){const _0x2e0608=_0xbc0383;if(_0x598a0f['data']&&_0x598a0f[_0x2e0608('0x4e8')][_0x2e0608('0x120f')]&&_0x598a0f[_0x2e0608('0x4e8')][_0x2e0608('0x120f')][_0x2e0608('0x1e22')]){_0x14d87a[_0x2e0608('0x120f')]=_0x598a0f[_0x2e0608('0x4e8')]['errors']||[{'message':_0x598a0f[_0x2e0608('0xaab')](),'type':'api.intSugarcrmConfiguration.save'}];for(let _0x108b45=0x0;_0x108b45<_0x598a0f[_0x2e0608('0x4e8')][_0x2e0608('0x120f')][_0x2e0608('0x1e22')];_0x108b45+=0x1){_0x36f1e2[_0x2e0608('0x255')]({'title':_0x598a0f[_0x2e0608('0x4e8')][_0x2e0608('0x120f')][_0x108b45][_0x2e0608('0x19fd')],'msg':_0x598a0f[_0x2e0608('0x4e8')][_0x2e0608('0x120f')][_0x108b45]['message']});}}else _0x36f1e2[_0x2e0608('0x255')]({'title':_0x598a0f['status']?_0x2e0608('0x574')+_0x598a0f[_0x2e0608('0xff9')]+_0x2e0608('0xb0b')+_0x598a0f[_0x2e0608('0x212f')]:'api.intSugarcrmConfiguration.save','msg':_0x598a0f[_0x2e0608('0x4e8')]?JSON[_0x2e0608('0x3e')](_0x598a0f[_0x2e0608('0x4e8')][_0x2e0608('0x1b86')]):_0x598a0f[_0x2e0608('0xaab')]()});});}function _0x159c8b(){const _0x2c7b88=_0x4f0e21;_0x14d87a[_0x2c7b88('0x120f')]=[],_0x4d1146[_0x2c7b88('0x186b')][_0x2c7b88('0x5ab')]({'id':_0x14d87a[_0x2c7b88('0x1e96')]['id']},_0x14d87a[_0x2c7b88('0x1e96')])[_0x2c7b88('0x1549')]['then'](function(_0x53305c){const _0x21b2f2=_0x2c7b88,_0x36ddb0=_0x36f548()[_0x21b2f2('0x1ad4')](_0x14d87a[_0x21b2f2('0x2766')],{'id':_0x53305c['id']});_0x36ddb0&&_0x36f548()[_0x21b2f2('0x47b')](_0x36ddb0,_0x36f548()['pick'](_0x53305c['toJSON'](),_0x36f548()[_0x21b2f2('0xe22')](_0x36ddb0))),_0x36f1e2[_0x21b2f2('0x2693')]({'title':_0x21b2f2('0x10c6'),'msg':_0x14d87a[_0x21b2f2('0x1e96')][_0x21b2f2('0x1909')]?_0x14d87a['sugarcrmConfiguration'][_0x21b2f2('0x1909')]+_0x21b2f2('0x1a78'):''}),_0x144994(_0x53305c);})['catch'](function(_0x45441f){const _0x40fae3=_0x2c7b88;if(_0x45441f[_0x40fae3('0x4e8')]&&_0x45441f[_0x40fae3('0x4e8')][_0x40fae3('0x120f')]&&_0x45441f[_0x40fae3('0x4e8')]['errors'][_0x40fae3('0x1e22')]){_0x14d87a[_0x40fae3('0x120f')]=_0x45441f['data'][_0x40fae3('0x120f')]||[{'message':_0x45441f['toString'](),'type':_0x40fae3('0x177d')}];for(let _0x38f4f1=0x0;_0x38f4f1<_0x45441f['data']['errors'][_0x40fae3('0x1e22')];_0x38f4f1++){_0x36f1e2['error']({'title':_0x45441f[_0x40fae3('0x4e8')][_0x40fae3('0x120f')][_0x38f4f1][_0x40fae3('0x19fd')],'msg':_0x45441f['data'][_0x40fae3('0x120f')][_0x38f4f1][_0x40fae3('0x1b86')]});}}else _0x36f1e2[_0x40fae3('0x255')]({'title':_0x45441f[_0x40fae3('0xff9')]?'API:'+_0x45441f[_0x40fae3('0xff9')]+_0x40fae3('0xb0b')+_0x45441f['statusText']:_0x40fae3('0x177d'),'msg':_0x45441f[_0x40fae3('0x4e8')]?JSON[_0x40fae3('0x3e')](_0x45441f['data'][_0x40fae3('0x1b86')]):_0x45441f[_0x40fae3('0xaab')]()});});}function _0x232e75(_0x46d58b){const _0x375ce8=_0x4f0e21;_0x14d87a[_0x375ce8('0x120f')]=[];const _0x1eb1a1=_0x1b217e[_0x375ce8('0x132b')]()[_0x375ce8('0x134b')]('Are\x20you\x20sure?')[_0x375ce8('0x252a')](_0x375ce8('0x10f3'))['ariaLabel'](_0x375ce8('0x14c4'))['ok']('Delete')[_0x375ce8('0x26c9')]('Cancel')[_0x375ce8('0x1e25')](_0x46d58b);_0x1b217e[_0x375ce8('0xb9')](_0x1eb1a1)[_0x375ce8('0x11bf')](function(){const _0x4ff687=_0x375ce8;_0x4d1146[_0x4ff687('0x186b')][_0x4ff687('0x2088')]({'id':_0x14d87a[_0x4ff687('0x1e96')]['id']})[_0x4ff687('0x1549')][_0x4ff687('0x11bf')](function(){const _0x4ef7ec=_0x4ff687;_0x36f548()['remove'](_0x14d87a['configurations'],{'id':_0x14d87a[_0x4ef7ec('0x1e96')]['id']}),_0x36f1e2[_0x4ef7ec('0x2693')]({'title':'SugarcrmConfiguration\x20properly\x20deleted!','msg':(_0x14d87a['sugarcrmConfiguration'][_0x4ef7ec('0x1909')]||'sugarcrmConfiguration')+'\x20has\x20been\x20deleted!'}),_0x144994(_0x14d87a['sugarcrmConfiguration']);})[_0x4ff687('0x151d')](function(_0x10284b){const _0x3d9508=_0x4ff687;if(_0x10284b[_0x3d9508('0x4e8')]&&_0x10284b['data'][_0x3d9508('0x120f')]&&_0x10284b['data'][_0x3d9508('0x120f')]['length']){_0x14d87a[_0x3d9508('0x120f')]=_0x10284b[_0x3d9508('0x4e8')][_0x3d9508('0x120f')]||[{'message':_0x10284b[_0x3d9508('0xaab')](),'type':_0x3d9508('0xd51')}];for(let _0x20346e=0x0;_0x20346e<_0x10284b[_0x3d9508('0x4e8')][_0x3d9508('0x120f')][_0x3d9508('0x1e22')];_0x20346e++){_0x36f1e2['error']({'title':_0x10284b[_0x3d9508('0x4e8')]['errors'][_0x20346e][_0x3d9508('0x19fd')],'msg':_0x10284b[_0x3d9508('0x4e8')][_0x3d9508('0x120f')][_0x20346e]['message']});}}else _0x36f1e2[_0x3d9508('0x255')]({'title':_0x10284b['status']?_0x3d9508('0x574')+_0x10284b[_0x3d9508('0xff9')]+_0x3d9508('0xb0b')+_0x10284b[_0x3d9508('0x212f')]:_0x3d9508('0xd51'),'msg':_0x10284b['data']?JSON['stringify'](_0x10284b[_0x3d9508('0x4e8')][_0x3d9508('0x1b86')]):_0x10284b[_0x3d9508('0x1b86')]||_0x10284b[_0x3d9508('0xaab')]()});});},function(){});}function _0x2d65b1(_0x56befd){return _0x56befd===null?undefined:new Date(_0x56befd);}function _0x144994(_0x994fbe){_0x1b217e['hide'](_0x994fbe);}}const _0x3a2fa2=_0x57e27b;_0x4371f[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0xcbc'),_0x21d0f5('0x16b9'),'$mdDialog',_0x21d0f5('0x142d'),_0x21d0f5('0xc09'),_0x21d0f5('0x22'),_0x21d0f5('0xa9c'),_0x21d0f5('0x2565'),_0x21d0f5('0x19fd'),_0x21d0f5('0x12a5'),'Auth',_0x21d0f5('0xb25')];function _0x4371f(_0x21b1a5,_0x47b122,_0x3a7b34,_0x57759d,_0x203566,_0x35a082,_0x5f4818,_0x18e580,_0x505a36,_0x87abeb,_0x1ace4b,_0x161fde,_0x32c443){const _0x5e0ac6=_0x21d0f5,_0x5dd226=this;_0x5dd226[_0x5e0ac6('0x32a')]=_0x161fde[_0x5e0ac6('0x2428')](),_0x5dd226[_0x5e0ac6('0x120f')]=[],_0x5dd226[_0x5e0ac6('0x134b')]=_0x5e0ac6('0x1e35')+_0x36f548()[_0x5e0ac6('0x1a31')](_0x87abeb),_0x5dd226[_0x5e0ac6('0xa9c')]=angular['copy'](_0x18e580),_0x5dd226[_0x5e0ac6('0x22')]=_0x5f4818,_0x5dd226['type']=_0x87abeb,_0x5dd226[_0x5e0ac6('0xb25')]=_0x32c443,_0x5dd226[_0x5e0ac6('0x1f63')]=![];!_0x5dd226[_0x5e0ac6('0xa9c')]&&(_0x5dd226[_0x5e0ac6('0xa9c')]={'type':_0x5e0ac6('0x2380')},_0x5dd226[_0x5e0ac6('0xa9c')][_0x36f548()['capitalize'](_0x87abeb)+'Id']=_0x35a082['id'],_0x5dd226[_0x5e0ac6('0x134b')]=_0x5e0ac6('0x26b9')+_0x36f548()[_0x5e0ac6('0x1a31')](_0x87abeb),_0x5dd226['newItem']=!![]);_0x5dd226[_0x5e0ac6('0x2bc')]=_0xb199c0,_0x5dd226[_0x5e0ac6('0x265e')]=_0x28a57d,_0x5dd226[_0x5e0ac6('0x2639')]=_0x267476,_0x5dd226[_0x5e0ac6('0x6e1')]=_0x338745,_0x5dd226[_0x5e0ac6('0xc4e')]=_0x536fcb,_0x1ace4b[_0x5e0ac6('0xb0')][_0x5e0ac6('0xbaa')]({'nolimit':!![]})[_0x5e0ac6('0x1549')]['then'](function(_0x19e5c0){const _0x57c2aa=_0x5e0ac6;return _0x5dd226[_0x57c2aa('0x1700')]=_0x19e5c0[_0x57c2aa('0x19b2')]?_0x19e5c0['rows']:[],_0x1ace4b[_0x57c2aa('0x1313')]['describe']()[_0x57c2aa('0x1549')];})[_0x5e0ac6('0x11bf')](function(_0x1408a9){const _0x26d225=_0x5e0ac6;return _0x5dd226[_0x26d225('0x1720')]=_0x36f548()[_0x26d225('0x1271')](_0x36f548()[_0x26d225('0xe22')](_0x1408a9),['$promise','$resolved',_0x26d225('0x1779'),'updatedAt',_0x26d225('0x14b4')]),_0x5dd226['voiceAgentReportColumns'][_0x26d225('0x105d')](_0x26d225('0xbf8')),_0x1ace4b[_0x26d225('0x14fc')][_0x26d225('0x19a5')]()[_0x26d225('0x1549')];})[_0x5e0ac6('0x11bf')](function(_0x62139f){const _0x459287=_0x5e0ac6;_0x5dd226[_0x459287('0x77c')]=_0x36f548()['difference'](_0x36f548()[_0x459287('0xe22')](_0x62139f),[_0x459287('0x1549'),_0x459287('0x1619'),_0x459287('0x1779'),_0x459287('0x14ea'),_0x459287('0x14b4')]),_0x5dd226[_0x459287('0x77c')][_0x459287('0x105d')](_0x459287('0xbf8'));})[_0x5e0ac6('0x151d')](function(_0x40f09c){const _0x3d45a9=_0x5e0ac6;_0x203566[_0x3d45a9('0x255')]({'title':_0x40f09c[_0x3d45a9('0xff9')]?'API:'+_0x40f09c[_0x3d45a9('0xff9')]+_0x3d45a9('0xb0b')+_0x40f09c['statusText']:'SYSTEM:GETVARIABLES','msg':_0x40f09c[_0x3d45a9('0x4e8')]?JSON[_0x3d45a9('0x3e')](_0x40f09c['data']):_0x40f09c[_0x3d45a9('0xaab')]()});}),_0x1ace4b[_0x5e0ac6('0xdfd')][_0x5e0ac6('0x8ff')]({'id':_0x505a36['id'],'ticketType':_0x35a082[_0x5e0ac6('0x1bd2')]?_0x35a082[_0x5e0ac6('0x1bd2')]:undefined})[_0x5e0ac6('0x1549')]['then'](function(_0x454ca1){const _0x1eb860=_0x5e0ac6;_0x5dd226[_0x1eb860('0xf69')]=!![],_0x5dd226['fields']=_0x454ca1[_0x1eb860('0x19b2')]?_0x454ca1[_0x1eb860('0x19b2')]:[],_0x5dd226[_0x1eb860('0xa9c')]['idField']&&(_0x5dd226[_0x1eb860('0x2830')]=_0x36f548()[_0x1eb860('0x1ad4')](_0x5dd226[_0x1eb860('0x1067')],{'id':_0x5dd226[_0x1eb860('0xa9c')][_0x1eb860('0x223a')]}));})[_0x5e0ac6('0x151d')](function(_0x36017b){const _0x1609eb=_0x5e0ac6;_0x5dd226[_0x1609eb('0xf69')]=![],console[_0x1609eb('0x255')](_0x36017b);});function _0xb199c0(){const _0x33dc2c=_0x5e0ac6;_0x5dd226[_0x33dc2c('0x120f')]=[],_0x5dd226[_0x33dc2c('0x2830')]&&(_0x5dd226[_0x33dc2c('0xa9c')][_0x33dc2c('0x223a')]=_0x5dd226[_0x33dc2c('0x2830')]['id'],_0x5dd226[_0x33dc2c('0xa9c')][_0x33dc2c('0x1992')]=_0x5dd226[_0x33dc2c('0x2830')][_0x33dc2c('0x1909')],_0x5dd226[_0x33dc2c('0xa9c')][_0x33dc2c('0x2830')]=_0x5dd226[_0x33dc2c('0x2830')][_0x33dc2c('0xa8d')]),_0x1ace4b[_0x33dc2c('0x19af')][_0x33dc2c('0x259')](_0x5dd226[_0x33dc2c('0xa9c')])[_0x33dc2c('0x1549')]['then'](function(_0x18f8d7){const _0x5ccbe7=_0x33dc2c;_0x5dd226[_0x5ccbe7('0x22')]['unshift'](_0x18f8d7),_0x203566[_0x5ccbe7('0x2693')]({'title':_0x36f548()[_0x5ccbe7('0x22c2')](_0x87abeb)+_0x5ccbe7('0x1c0e'),'msg':_0x36f548()[_0x5ccbe7('0x22c2')](_0x87abeb)+'\x20has\x20been\x20created!'}),_0x536fcb();})[_0x33dc2c('0x151d')](function(_0xc7a3c2){const _0x34e8ef=_0x33dc2c;console['error'](_0xc7a3c2),_0x5dd226['errors']=_0xc7a3c2[_0x34e8ef('0x4e8')][_0x34e8ef('0x120f')]||[{'message':_0xc7a3c2[_0x34e8ef('0xaab')](),'type':_0x34e8ef('0x20a1')}];});}function _0x28a57d(){const _0x3643ca=_0x5e0ac6;_0x5dd226[_0x3643ca('0x120f')]=[],_0x5dd226[_0x3643ca('0x2830')]&&(_0x5dd226['item']['idField']=_0x5dd226[_0x3643ca('0x2830')]['id'],_0x5dd226[_0x3643ca('0xa9c')][_0x3643ca('0x1992')]=_0x5dd226[_0x3643ca('0x2830')][_0x3643ca('0x1909')],_0x5dd226['item']['customField']=_0x5dd226[_0x3643ca('0x2830')][_0x3643ca('0xa8d')]),_0x1ace4b[_0x3643ca('0x19af')]['update']({'id':_0x5dd226['item']['id']},_0x5dd226[_0x3643ca('0xa9c')])['$promise'][_0x3643ca('0x11bf')](function(_0x308afc){const _0xb782d5=_0x3643ca,_0xa3ec8a=_0x36f548()[_0xb782d5('0x1ad4')](_0x5dd226[_0xb782d5('0x22')],{'id':_0x308afc['id']});_0xa3ec8a&&_0x36f548()[_0xb782d5('0x47b')](_0xa3ec8a,_0x308afc),_0x203566[_0xb782d5('0x2693')]({'title':_0x36f548()[_0xb782d5('0x22c2')](_0x87abeb)+'\x20properly\x20saved!','msg':_0x36f548()[_0xb782d5('0x22c2')](_0x87abeb)+_0xb782d5('0x1a78')}),_0x536fcb();})[_0x3643ca('0x151d')](function(_0x5d9dfc){const _0x5f5923=_0x3643ca;console[_0x5f5923('0x255')](_0x5d9dfc),_0x5dd226[_0x5f5923('0x120f')]=_0x5d9dfc[_0x5f5923('0x4e8')][_0x5f5923('0x120f')]||[{'message':_0x5d9dfc[_0x5f5923('0xaab')](),'type':_0x5f5923('0xbab')}];});}function _0x267476(_0xa91ada){const _0x4df02c=_0x5e0ac6;_0x5dd226[_0x4df02c('0x120f')]=[];const _0x2863b1=_0x57759d[_0x4df02c('0x132b')]()['title']('Are\x20you\x20sure?')[_0x4df02c('0x252a')]('The\x20'+_0x87abeb+_0x4df02c('0x1a'))[_0x4df02c('0xb2e')](_0x4df02c('0x13ea')+_0x36f548()[_0x4df02c('0x22c2')](_0x87abeb))['ok'](_0x4df02c('0x1167'))[_0x4df02c('0x26c9')](_0x4df02c('0x784'))['targetEvent'](_0xa91ada);_0x57759d['show'](_0x2863b1)[_0x4df02c('0x11bf')](function(){const _0x2e27d3=_0x4df02c;_0x1ace4b['intSugarcrmField'][_0x2e27d3('0x2088')]({'id':_0x5dd226[_0x2e27d3('0xa9c')]['id']})[_0x2e27d3('0x1549')][_0x2e27d3('0x11bf')](function(){const _0x4b22da=_0x2e27d3;_0x36f548()['remove'](_0x5dd226[_0x4b22da('0x22')],{'id':_0x5dd226[_0x4b22da('0xa9c')]['id']}),_0x203566[_0x4b22da('0x2693')]({'title':_0x36f548()['capitalize'](_0x87abeb)+'\x20properly\x20deleted!','msg':_0x36f548()[_0x4b22da('0x22c2')](_0x87abeb)+_0x4b22da('0x433')}),_0x536fcb();})['catch'](function(_0x1b8315){const _0x1b9ca6=_0x2e27d3;console['error'](_0x1b8315),_0x5dd226[_0x1b9ca6('0x120f')]=_0x1b8315[_0x1b9ca6('0x4e8')][_0x1b9ca6('0x120f')]||[{'message':_0x1b8315[_0x1b9ca6('0xaab')](),'type':_0x1b9ca6('0x20f0')}];});},function(){});}function _0x338745(){const _0x31dab3=_0x5e0ac6;return _0x5dd226[_0x31dab3('0xa9c')][_0x31dab3('0x209e')]!==undefined?_0x5dd226['item'][_0x31dab3('0x209e')]:_0x31dab3('0xbc2');}function _0x536fcb(){const _0x319215=_0x5e0ac6;_0x57759d[_0x319215('0x237e')]();}}const _0x378fac=_0x4371f;_0x419562[_0x21d0f5('0x1e9a')]=['$state',_0x21d0f5('0x16b9'),_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),_0x21d0f5('0xb6b'),'license',_0x21d0f5('0x23e1'),_0x21d0f5('0x12a5'),'toasty',_0x21d0f5('0x1150'),_0x21d0f5('0x8e3'),_0x21d0f5('0x1d63')];function _0x419562(_0x3d7133,_0x5e2d3b,_0x4197ce,_0x3b535f,_0x480d71,_0x3f842c,_0x2f78cf,_0x44e26d,_0x127311,_0x341b7c,_0x1d464c,_0x1ff42d){const _0x5f0518=_0x21d0f5,_0x196b7b=this;_0x196b7b[_0x5f0518('0x32a')]=_0x341b7c['getCurrentUser'](),_0x196b7b[_0x5f0518('0x17ff')]=_0x3f842c,_0x196b7b['setting']=_0x2f78cf,_0x196b7b[_0x5f0518('0x2834')]=_0x196b7b[_0x5f0518('0x23e1')][_0x5f0518('0x1d4')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x196b7b[_0x5f0518('0x1d9a')]=_0x5e2d3b['protocol']()+_0x5f0518('0x16a1')+_0x5e2d3b[_0x5f0518('0x14ec')](),_0x196b7b[_0x5f0518('0x8e3')]=_0x1d464c||_0x3d7133[_0x5f0518('0x1ab3')][_0x5f0518('0x8e3')]||{},_0x196b7b[_0x5f0518('0x1d63')]=_0x1ff42d&&_0x1ff42d[_0x5f0518('0x27d2')]==0x1?_0x1ff42d[_0x5f0518('0x19b2')][0x0]:null,_0x196b7b[_0x5f0518('0xb25')]=_0x341b7c[_0x5f0518('0x1530')](_0x196b7b['userProfileSection']?_0x196b7b['userProfileSection'][_0x5f0518('0xb25')]:null),_0x196b7b[_0x5f0518('0x2c9')]={},_0x196b7b['selectedTab']=_0x3d7133['params'][_0x5f0518('0x205c')]||0x0,_0x196b7b['alert']=_0x127311[_0x5f0518('0x870')],_0x196b7b['gotoSugarcrmAccounts']=_0x5895c7,_0x196b7b[_0x5f0518('0x25b2')]=_0x1773f7;function _0x5895c7(){const _0x7a8d70=_0x5f0518;_0x3d7133['go'](_0x7a8d70('0x633'),{},{'reload':_0x7a8d70('0x633')});}function _0x1773f7(){const _0x39f1ad=_0x5f0518;_0x44e26d[_0x39f1ad('0xdfd')][_0x39f1ad('0x5ab')]({'id':_0x196b7b[_0x39f1ad('0x8e3')]['id']},_0x196b7b[_0x39f1ad('0x8e3')])[_0x39f1ad('0x1549')][_0x39f1ad('0x11bf')](function(){const _0x2d2c06=_0x39f1ad;_0x127311[_0x2d2c06('0x2693')]({'title':_0x2d2c06('0x63a'),'msg':_0x196b7b['sugarcrmAccount']['name']?_0x196b7b[_0x2d2c06('0x8e3')]['name']+_0x2d2c06('0xd7'):''});})[_0x39f1ad('0x151d')](function(_0x1b4e40){const _0x5612a4=_0x39f1ad;_0x127311[_0x5612a4('0x255')]({'title':_0x1b4e40[_0x5612a4('0xff9')]?_0x5612a4('0x574')+_0x1b4e40['status']+_0x5612a4('0xb0b')+_0x1b4e40[_0x5612a4('0x212f')]:'SYSTEM:GETintSugarcrmAccount','msg':_0x1b4e40['data']?JSON[_0x5612a4('0x3e')](_0x1b4e40[_0x5612a4('0x4e8')]):_0x1b4e40[_0x5612a4('0xaab')]()});});}}const _0x23002f=_0x419562,_0x10a85f=_0x351988['p']+_0x21d0f5('0xd53');_0x9ad44a['$inject']=['$scope',_0x21d0f5('0x2143'),'$state',_0x21d0f5('0x18fe'),_0x21d0f5('0x1ca2'),'$document',_0x21d0f5('0x17f5'),_0x21d0f5('0xb6b'),_0x21d0f5('0x21'),_0x21d0f5('0x25bc'),_0x21d0f5('0x1d63'),_0x21d0f5('0x12a5'),_0x21d0f5('0xda9'),_0x21d0f5('0x142d'),_0x21d0f5('0x1150'),'license',_0x21d0f5('0x23e1')];function _0x9ad44a(_0x2b6eef,_0x5578b0,_0x451803,_0x530e57,_0x30f9b4,_0x3d57cd,_0x2f1667,_0x44f57e,_0x4f2f4b,_0x37cb7b,_0x188495,_0x3b4251,_0x50c59b,_0x23378d,_0x39a578,_0xda74da,_0x32c081){const _0x1d77a5=_0x21d0f5,_0x103e41=this;_0x103e41[_0x1d77a5('0x17ff')]=_0xda74da,_0x103e41[_0x1d77a5('0x23e1')]=_0x32c081,_0x103e41['currentUser']=_0x39a578['getCurrentUser'](),_0x103e41['sugarcrmAccounts']=_0x4f2f4b||{'count':0x0,'rows':[]},_0x103e41[_0x1d77a5('0x25bc')]=_0x37cb7b,_0x103e41[_0x1d77a5('0x1d63')]=_0x188495&&_0x188495[_0x1d77a5('0x27d2')]==0x1?_0x188495['rows'][0x0]:null,_0x103e41[_0x1d77a5('0xb25')]=_0x39a578[_0x1d77a5('0x1530')](_0x103e41['userProfileSection']?_0x103e41['userProfileSection'][_0x1d77a5('0xb25')]:null),_0x103e41['table']=_0x1d77a5('0x21'),_0x103e41[_0x1d77a5('0x724')]='',_0x103e41[_0x1d77a5('0xe3c')]=null,_0x103e41[_0x1d77a5('0x24c5')]=[],_0x103e41[_0x1d77a5('0x1f2a')]={'fields':'createdAt,updatedAt,id,name,username,remoteUri,password,serverUrl,description','limit':0xa,'page':0x1},_0x103e41['editstate']=_0x5a7c2c,_0x103e41[_0x1d77a5('0x776')]=_0x5d131d,_0x103e41['deleteconfirm']=_0x250a0d,_0x103e41['success']=_0x3e1782,_0x103e41[_0x1d77a5('0x51e')]=_0x13864e,_0x103e41[_0x1d77a5('0x235e')]=_0x240b33,_0x103e41[_0x1d77a5('0x2089')]=_0xf313f5,_0x103e41['exportSelectedSugarcrmAccounts']=_0x2d746f,_0x103e41[_0x1d77a5('0x1460')]=_0x333d2b,_0x103e41['deselectSugarcrmAccounts']=_0x4eeb44,_0x103e41['selectAllSugarcrmAccounts']=_0xe7bad0;function _0x5a7c2c(_0x28654a){const _0x2c13ae=_0x1d77a5;_0x451803['go'](_0x2c13ae('0x2263'),{'id':_0x28654a['id'],'sugarcrmAccount':_0x28654a,'crudPermissions':_0x103e41[_0x2c13ae('0xb25')]});}function _0x5d131d(_0x194a42){const _0x3d712a=_0x1d77a5;return _0x3b4251[_0x3d712a('0xdfd')][_0x3d712a('0x8ff')]({'id':_0x194a42['id'],'test':!![]})[_0x3d712a('0x1549')][_0x3d712a('0x11bf')](function(){const _0x3c9278=_0x3d712a;_0x23378d[_0x3c9278('0x2693')]({'title':'SugarcrmAccount\x20properly\x20tested','msg':_0x3c9278('0x1b13')});})[_0x3d712a('0x151d')](function(_0x3f32b1){const _0x2080cd=_0x3d712a;_0x23378d[_0x2080cd('0x255')]({'title':_0x2080cd('0x1cf6'),'msg':_0x3f32b1['data']?_0x3f32b1['data']['message']?_0x3f32b1[_0x2080cd('0x4e8')][_0x2080cd('0x1b86')]:JSON[_0x2080cd('0x3e')](_0x3f32b1[_0x2080cd('0x4e8')]):_0x3f32b1[_0x2080cd('0xaab')]()});});}function _0x250a0d(_0x4539bc,_0x50d8e1){const _0x45fe43=_0x1d77a5,_0x50afff=_0x30f9b4['confirm']()[_0x45fe43('0x134b')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x36f548()[_0x45fe43('0x13cf')]('sugarcrmAccount')+'?')[_0x45fe43('0x1d03')](_0x45fe43('0x2061')+(_0x4539bc['name']||_0x45fe43('0x8e3'))+_0x45fe43('0x1c78')+_0x45fe43('0x1a'))['ariaLabel'](_0x45fe43('0x1585'))[_0x45fe43('0x1e25')](_0x50d8e1)['ok']('OK')['cancel']('CANCEL');_0x30f9b4[_0x45fe43('0xb9')](_0x50afff)[_0x45fe43('0x11bf')](function(){_0xf313f5(_0x4539bc);},function(){const _0x4a69cd=_0x45fe43;console[_0x4a69cd('0xc78')]('CANCEL');});}let _0x4f2693=!![],_0x281f9b=0x1;_0x2b6eef[_0x1d77a5('0x2087')](_0x1d77a5('0x842'),function(_0x27a3fb,_0xe51bad){const _0x363755=_0x1d77a5;_0x4f2693?_0x2f1667(function(){_0x4f2693=![];}):(!_0xe51bad&&(_0x281f9b=_0x103e41[_0x363755('0x1f2a')]['page']),_0x27a3fb!==_0xe51bad&&(_0x103e41[_0x363755('0x1f2a')][_0x363755('0x1c2')]=0x1),!_0x27a3fb&&(_0x103e41[_0x363755('0x1f2a')][_0x363755('0x1c2')]=_0x281f9b),_0x103e41['getSugarcrmAccounts']());});function _0x3e1782(_0x5cf245){const _0xc9cab8=_0x1d77a5;_0x103e41[_0xc9cab8('0x21')]=_0x5cf245||{'count':0x0,'rows':[]};}function _0x13864e(){const _0xddfa00=_0x1d77a5;_0x103e41['query'][_0xddfa00('0x1393')]=(_0x103e41[_0xddfa00('0x1f2a')][_0xddfa00('0x1c2')]-0x1)*_0x103e41['query'][_0xddfa00('0xd5c')],_0x39a578['hasRole'](_0xddfa00('0xf45'))?_0x103e41[_0xddfa00('0x13f')]=_0x3b4251[_0xddfa00('0xdfd')][_0xddfa00('0xbaa')](_0x103e41[_0xddfa00('0x1f2a')],_0x3e1782)['$promise']:(_0x103e41[_0xddfa00('0x1f2a')]['id']=_0x103e41[_0xddfa00('0x25bc')]['id'],_0x103e41[_0xddfa00('0x1f2a')][_0xddfa00('0xe6')]='SugarcrmAccounts',_0x103e41['promise']=_0x3b4251[_0xddfa00('0x25bc')][_0xddfa00('0x228e')](_0x103e41[_0xddfa00('0x1f2a')],_0x3e1782)[_0xddfa00('0x1549')]);}function _0x240b33(_0x387763,_0x3eae86){const _0x5148f7=_0x1d77a5;_0x30f9b4[_0x5148f7('0xb9')]({'controller':_0x5148f7('0xebe'),'controllerAs':'vm','templateUrl':_0x10a85f,'parent':angular['element'](_0x3d57cd[_0x5148f7('0x1d2')]),'targetEvent':_0x387763,'clickOutsideToClose':!![],'locals':{'sugarcrmAccount':_0x3eae86,'sugarcrmAccounts':_0x103e41[_0x5148f7('0x21')][_0x5148f7('0x19b2')],'license':_0x103e41[_0x5148f7('0x17ff')],'setting':_0x103e41[_0x5148f7('0x23e1')],'crudPermissions':_0x103e41['crudPermissions']}});}function _0xf313f5(_0x2e7c06){const _0x4aa613=_0x1d77a5;_0x3b4251['intSugarcrmAccount'][_0x4aa613('0x2088')]({'id':_0x2e7c06['id']})[_0x4aa613('0x1549')][_0x4aa613('0x11bf')](function(){const _0x4f45c6=_0x4aa613;_0x36f548()[_0x4f45c6('0x14a5')](_0x103e41[_0x4f45c6('0x21')][_0x4f45c6('0x19b2')],{'id':_0x2e7c06['id']}),_0x103e41[_0x4f45c6('0x21')][_0x4f45c6('0x27d2')]-=0x1,!_0x103e41['sugarcrmAccounts'][_0x4f45c6('0x19b2')]['length']&&_0x103e41[_0x4f45c6('0x51e')](),_0x23378d[_0x4f45c6('0x2693')]({'title':_0x36f548()[_0x4f45c6('0x13cf')](_0x4f45c6('0x1465'))+'\x20deleted!','msg':_0x2e7c06[_0x4f45c6('0x1909')]?_0x2e7c06[_0x4f45c6('0x1909')]+'\x20has\x20been\x20deleted!':''});})[_0x4aa613('0x151d')](function(_0x4e259e){const _0x2ddc6e=_0x4aa613;if(_0x4e259e['data']&&_0x4e259e[_0x2ddc6e('0x4e8')][_0x2ddc6e('0x120f')]&&_0x4e259e['data'][_0x2ddc6e('0x120f')]['length']){_0x103e41[_0x2ddc6e('0x120f')]=_0x4e259e['data'][_0x2ddc6e('0x120f')]||[{'message':_0x4e259e[_0x2ddc6e('0xaab')](),'type':'SYSTEM:DELETEintSugarcrmAccount'}];for(let _0x69bfe7=0x0;_0x69bfe7<_0x4e259e[_0x2ddc6e('0x4e8')]['errors']['length'];_0x69bfe7++){_0x23378d[_0x2ddc6e('0x255')]({'title':_0x4e259e['data'][_0x2ddc6e('0x120f')][_0x69bfe7][_0x2ddc6e('0x19fd')],'msg':_0x4e259e[_0x2ddc6e('0x4e8')][_0x2ddc6e('0x120f')][_0x69bfe7]['message']});}}else _0x23378d['error']({'title':_0x4e259e[_0x2ddc6e('0xff9')]?'API:'+_0x4e259e[_0x2ddc6e('0xff9')]+_0x2ddc6e('0xb0b')+_0x4e259e[_0x2ddc6e('0x212f')]:'SYSTEM:DELETEintSugarcrmAccount','msg':_0x4e259e[_0x2ddc6e('0x4e8')]?JSON[_0x2ddc6e('0x3e')](_0x4e259e['data'][_0x2ddc6e('0x1b86')]):_0x4e259e[_0x2ddc6e('0x1b86')]||_0x4e259e[_0x2ddc6e('0xaab')]()});});}function _0x2d746f(){const _0x257876=_0x1d77a5,_0x30ab8f=angular[_0x257876('0x6fb')](_0x103e41[_0x257876('0x24c5')]);return _0x103e41[_0x257876('0x24c5')]=[],_0x30ab8f;}function _0x333d2b(_0x3d2c30){const _0x2fa4a2=_0x1d77a5,_0x5bd4d6=_0x30f9b4[_0x2fa4a2('0x132b')]()[_0x2fa4a2('0x134b')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20sugarcrmAccounts?')[_0x2fa4a2('0x1d03')](''+_0x103e41[_0x2fa4a2('0x24c5')][_0x2fa4a2('0x1e22')]+_0x2fa4a2('0xac6')+'\x20will\x20be\x20deleted.')['ariaLabel']('delete\x20SugarcrmAccounts')[_0x2fa4a2('0x1e25')](_0x3d2c30)['ok']('OK')['cancel'](_0x2fa4a2('0x772'));_0x30f9b4[_0x2fa4a2('0xb9')](_0x5bd4d6)['then'](function(){const _0x35f1c4=_0x2fa4a2;_0x103e41[_0x35f1c4('0x24c5')][_0x35f1c4('0x1f88')](function(_0x5d8b47){_0xf313f5(_0x5d8b47);}),_0x103e41[_0x35f1c4('0x24c5')]=[];});}function _0x4eeb44(){const _0x38d02b=_0x1d77a5;_0x103e41[_0x38d02b('0x24c5')]=[];}function _0xe7bad0(){const _0x383e04=_0x1d77a5;_0x103e41[_0x383e04('0x24c5')]=_0x103e41[_0x383e04('0x21')][_0x383e04('0x19b2')];}}const _0x4db580=_0x9ad44a;_0x56cb07[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0xcbc'),_0x21d0f5('0x16b9'),'$mdDialog','$q','$translate',_0x21d0f5('0x142d'),_0x21d0f5('0x232d'),'vtigerAccount',_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1'),_0x21d0f5('0xb25')];function _0x56cb07(_0x22f8ba,_0xe106ab,_0x5aa795,_0x339377,_0x59d5c2,_0x1f24c2,_0x1be226,_0x1652d3,_0x5ffa3c,_0x597140,_0x45a822,_0x3518c8,_0x6921ff,_0x46098e){const _0x313f85=_0x21d0f5,_0x1a0b74=this;_0x1a0b74['currentUser']=_0x45a822[_0x313f85('0x2428')](),_0x1a0b74[_0x313f85('0x120f')]=[],_0x1a0b74[_0x313f85('0x23e1')]=_0x6921ff,_0x1a0b74[_0x313f85('0x17ff')]=_0x3518c8,_0x1a0b74[_0x313f85('0xb25')]=_0x46098e,_0x1a0b74[_0x313f85('0x2c9')]={},_0x1a0b74[_0x313f85('0x2834')]=_0x1a0b74[_0x313f85('0x23e1')]&&_0x1a0b74[_0x313f85('0x23e1')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1a0b74[_0x313f85('0x134b')]=_0x313f85('0x117c'),_0x1a0b74[_0x313f85('0x138a')]=angular[_0x313f85('0x6fb')](_0x5ffa3c),_0x1a0b74['vtigerAccounts']=_0x1652d3,_0x1a0b74[_0x313f85('0x2c2')]=![];!_0x1a0b74[_0x313f85('0x138a')]&&(_0x1a0b74[_0x313f85('0x138a')]={'serverUrl':_0x5aa795[_0x313f85('0x1797')]()+_0x313f85('0x16a1')+_0x5aa795[_0x313f85('0x14ec')]()+(_0x5aa795[_0x313f85('0x235b')]()?':'+_0x5aa795[_0x313f85('0x235b')]():'')},_0x1a0b74[_0x313f85('0x134b')]=_0x313f85('0x10ae'),_0x1a0b74['newVtigerAccount']=!![]);_0x1a0b74[_0x313f85('0xcca')]=_0x9f8b1c,_0x1a0b74['saveVtigerAccount']=_0xe5ecf1,_0x1a0b74[_0x313f85('0x184a')]=_0x2c5aa1,_0x1a0b74[_0x313f85('0x1bd1')]=_0x3bd6b1,_0x1a0b74[_0x313f85('0xc4e')]=_0x1ecaed;function _0x9f8b1c(){const _0x3f7b96=_0x313f85;_0x1a0b74[_0x3f7b96('0x120f')]=[],_0x597140[_0x3f7b96('0x1955')][_0x3f7b96('0x259')](_0x1a0b74[_0x3f7b96('0x138a')])[_0x3f7b96('0x1549')][_0x3f7b96('0x11bf')](function(_0x45a1eb){const _0x18a886=_0x3f7b96;_0x1a0b74[_0x18a886('0x232d')][_0x18a886('0x880')](_0x45a1eb[_0x18a886('0x2866')]()),_0x1be226['success']({'title':_0x18a886('0x131e'),'msg':_0x1a0b74[_0x18a886('0x138a')]['name']?_0x1a0b74['vtigerAccount'][_0x18a886('0x1909')]+_0x18a886('0x7fb'):''}),_0x1ecaed(_0x45a1eb);})[_0x3f7b96('0x151d')](function(_0x529596){const _0x5c25b2=_0x3f7b96;if(_0x529596['data']&&_0x529596[_0x5c25b2('0x4e8')][_0x5c25b2('0x120f')]&&_0x529596[_0x5c25b2('0x4e8')][_0x5c25b2('0x120f')]['length']){_0x1a0b74[_0x5c25b2('0x120f')]=_0x529596[_0x5c25b2('0x4e8')][_0x5c25b2('0x120f')]||[{'message':_0x529596[_0x5c25b2('0xaab')](),'type':_0x5c25b2('0x1c08')}];for(let _0x1d3ef8=0x0;_0x1d3ef8<_0x529596[_0x5c25b2('0x4e8')]['errors'][_0x5c25b2('0x1e22')];_0x1d3ef8+=0x1){_0x1be226[_0x5c25b2('0x255')]({'title':_0x529596[_0x5c25b2('0x4e8')]['errors'][_0x1d3ef8][_0x5c25b2('0x19fd')],'msg':_0x529596[_0x5c25b2('0x4e8')]['errors'][_0x1d3ef8]['message']});}}else _0x1be226[_0x5c25b2('0x255')]({'title':_0x529596[_0x5c25b2('0xff9')]?'API:'+_0x529596[_0x5c25b2('0xff9')]+_0x5c25b2('0xb0b')+_0x529596['statusText']:'api.intVtigerAccount.save','msg':_0x529596['data']?JSON[_0x5c25b2('0x3e')](_0x529596[_0x5c25b2('0x4e8')]['message']):_0x529596[_0x5c25b2('0xaab')]()});});}function _0xe5ecf1(){const _0x2bf563=_0x313f85;_0x1a0b74[_0x2bf563('0x120f')]=[],_0x597140[_0x2bf563('0x1955')][_0x2bf563('0x5ab')]({'id':_0x1a0b74['vtigerAccount']['id']},_0x1a0b74[_0x2bf563('0x138a')])[_0x2bf563('0x1549')]['then'](function(_0x5202eb){const _0xf372e7=_0x2bf563,_0x32008f=_0x36f548()[_0xf372e7('0x1ad4')](_0x1a0b74[_0xf372e7('0x232d')],{'id':_0x5202eb['id']});_0x32008f&&_0x36f548()[_0xf372e7('0x47b')](_0x32008f,_0x36f548()[_0xf372e7('0x258')](_0x5202eb[_0xf372e7('0x2866')](),_0x36f548()[_0xf372e7('0xe22')](_0x32008f))),_0x1be226[_0xf372e7('0x2693')]({'title':_0xf372e7('0x913'),'msg':_0x1a0b74[_0xf372e7('0x138a')]['name']?_0x1a0b74[_0xf372e7('0x138a')][_0xf372e7('0x1909')]+_0xf372e7('0x1a78'):''}),_0x1ecaed(_0x5202eb);})[_0x2bf563('0x151d')](function(_0x529a8f){const _0x3186f5=_0x2bf563;if(_0x529a8f[_0x3186f5('0x4e8')]&&_0x529a8f[_0x3186f5('0x4e8')][_0x3186f5('0x120f')]&&_0x529a8f[_0x3186f5('0x4e8')]['errors'][_0x3186f5('0x1e22')]){_0x1a0b74['errors']=_0x529a8f[_0x3186f5('0x4e8')][_0x3186f5('0x120f')]||[{'message':_0x529a8f[_0x3186f5('0xaab')](),'type':_0x3186f5('0x1a55')}];for(let _0x4004a1=0x0;_0x4004a1<_0x529a8f['data'][_0x3186f5('0x120f')][_0x3186f5('0x1e22')];_0x4004a1++){_0x1be226[_0x3186f5('0x255')]({'title':_0x529a8f[_0x3186f5('0x4e8')][_0x3186f5('0x120f')][_0x4004a1]['type'],'msg':_0x529a8f[_0x3186f5('0x4e8')]['errors'][_0x4004a1][_0x3186f5('0x1b86')]});}}else _0x1be226[_0x3186f5('0x255')]({'title':_0x529a8f['status']?'API:'+_0x529a8f[_0x3186f5('0xff9')]+_0x3186f5('0xb0b')+_0x529a8f['statusText']:_0x3186f5('0x1a55'),'msg':_0x529a8f[_0x3186f5('0x4e8')]?JSON[_0x3186f5('0x3e')](_0x529a8f[_0x3186f5('0x4e8')][_0x3186f5('0x1b86')]):_0x529a8f[_0x3186f5('0xaab')]()});});}function _0x2c5aa1(_0x1f05f0){const _0x5b9474=_0x313f85;_0x1a0b74[_0x5b9474('0x120f')]=[];const _0x30c34b=_0x339377[_0x5b9474('0x132b')]()[_0x5b9474('0x134b')](_0x5b9474('0x1fa9'))['content'](_0x5b9474('0x2173'))[_0x5b9474('0xb2e')]('Delete\x20VtigerAccount')['ok'](_0x5b9474('0x1167'))[_0x5b9474('0x26c9')](_0x5b9474('0x784'))['targetEvent'](_0x1f05f0);_0x339377[_0x5b9474('0xb9')](_0x30c34b)['then'](function(){const _0x5c16fa=_0x5b9474;_0x597140['intVtigerAccount']['delete']({'id':_0x1a0b74[_0x5c16fa('0x138a')]['id']})['$promise'][_0x5c16fa('0x11bf')](function(){const _0x501311=_0x5c16fa;_0x36f548()[_0x501311('0x14a5')](_0x1a0b74[_0x501311('0x232d')],{'id':_0x1a0b74['vtigerAccount']['id']}),_0x1be226['success']({'title':_0x501311('0x1ab0'),'msg':(_0x1a0b74[_0x501311('0x138a')]['name']||_0x501311('0x138a'))+'\x20has\x20been\x20deleted!'}),_0x1ecaed(_0x1a0b74[_0x501311('0x138a')]);})[_0x5c16fa('0x151d')](function(_0x38bf06){const _0x40b813=_0x5c16fa;if(_0x38bf06[_0x40b813('0x4e8')]&&_0x38bf06[_0x40b813('0x4e8')][_0x40b813('0x120f')]&&_0x38bf06[_0x40b813('0x4e8')]['errors'][_0x40b813('0x1e22')]){_0x1a0b74['errors']=_0x38bf06[_0x40b813('0x4e8')][_0x40b813('0x120f')]||[{'message':_0x38bf06[_0x40b813('0xaab')](),'type':_0x40b813('0x20fc')}];for(let _0x9d5c5f=0x0;_0x9d5c5f<_0x38bf06['data']['errors'][_0x40b813('0x1e22')];_0x9d5c5f++){_0x1be226[_0x40b813('0x255')]({'title':_0x38bf06[_0x40b813('0x4e8')][_0x40b813('0x120f')][_0x9d5c5f][_0x40b813('0x19fd')],'msg':_0x38bf06[_0x40b813('0x4e8')][_0x40b813('0x120f')][_0x9d5c5f][_0x40b813('0x1b86')]});}}else _0x1be226[_0x40b813('0x255')]({'title':_0x38bf06[_0x40b813('0xff9')]?_0x40b813('0x574')+_0x38bf06['status']+'\x20-\x20'+_0x38bf06[_0x40b813('0x212f')]:_0x40b813('0x20fc'),'msg':_0x38bf06[_0x40b813('0x4e8')]?JSON[_0x40b813('0x3e')](_0x38bf06[_0x40b813('0x4e8')][_0x40b813('0x1b86')]):_0x38bf06[_0x40b813('0x1b86')]||_0x38bf06[_0x40b813('0xaab')]()});});},function(){});}function _0x3bd6b1(_0x54cc60){return _0x54cc60===null?undefined:new Date(_0x54cc60);}function _0x1ecaed(_0x43fc0a){const _0x513466=_0x313f85;_0x339377[_0x513466('0x237e')](_0x43fc0a);}}const _0x4e9d8e=_0x56cb07,_0x3372c=_0x351988['p']+_0x21d0f5('0xd1a'),_0x5399c0=_0x351988['p']+_0x21d0f5('0xe67');_0xcffa33['$inject']=[_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),_0x21d0f5('0x12a5'),_0x21d0f5('0x142d'),_0x21d0f5('0x1150')];function _0xcffa33(_0x40680a,_0x1c8fec,_0x31f28a,_0x5778d9,_0x847462){const _0xd8e7c4=_0x21d0f5,_0x875c3c=this;_0x875c3c[_0xd8e7c4('0x32a')]=_0x847462[_0xd8e7c4('0x2428')](),_0x875c3c['vtigerAccount']={},_0x875c3c['vtigerConfiguration']={},_0x875c3c['configurations']=[],_0x875c3c[_0xd8e7c4('0x304')]=-0x1,_0x875c3c[_0xd8e7c4('0xb25')],_0x875c3c[_0xd8e7c4('0x286f')]=_0x27a440,_0x875c3c['getVtigerConfiguration']=_0x335690,_0x875c3c[_0xd8e7c4('0xc1e')]=_0xad83ad,_0x875c3c[_0xd8e7c4('0x6da')]=_0x4e0d9f;function _0x27a440(_0x11d311,_0x769911){const _0x50172b=_0xd8e7c4;_0x875c3c[_0x50172b('0x138a')]=_0x11d311,_0x875c3c['crudPermissions']=typeof _0x769911!==_0x50172b('0x13e9')?_0x769911:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x31f28a[_0x50172b('0x1955')]['getConfigurations']({'id':_0x875c3c[_0x50172b('0x138a')]['id'],'sort':_0x50172b('0x1c74')})[_0x50172b('0x1549')][_0x50172b('0x11bf')](function(_0x1a748f){const _0x1bf579=_0x50172b;return _0x875c3c[_0x1bf579('0x2766')]=_0x1a748f[_0x1bf579('0x19b2')]?_0x1a748f[_0x1bf579('0x19b2')]:[],_0x875c3c['configurations'][_0x1bf579('0x1e22')]&&_0x875c3c[_0x1bf579('0x9c7')](0x0),_0x31f28a[_0x1bf579('0xb0')][_0x1bf579('0xbaa')]({'nolimit':!![],'sort':'name'})[_0x1bf579('0x1549')];})[_0x50172b('0x11bf')](function(_0x1d94d1){const _0x133c17=_0x50172b;_0x875c3c['variables']=_0x1d94d1[_0x133c17('0x19b2')]?_0x1d94d1[_0x133c17('0x19b2')]:[],_0x875c3c[_0x133c17('0x90')]=_0x36f548()[_0x133c17('0x2130')](_0x875c3c[_0x133c17('0x1700')],'id');})['catch'](function(_0x1a3053){const _0x5bce1d=_0x50172b;_0x5778d9['error']({'title':_0x1a3053[_0x5bce1d('0xff9')]?_0x5bce1d('0x574')+_0x1a3053[_0x5bce1d('0xff9')]+_0x5bce1d('0xb0b')+_0x1a3053[_0x5bce1d('0x212f')]:'SYSTEM:GETCONFIGURATION','msg':_0x1a3053[_0x5bce1d('0x4e8')]?JSON[_0x5bce1d('0x3e')](_0x1a3053[_0x5bce1d('0x4e8')]):_0x1a3053[_0x5bce1d('0xaab')]()});});}function _0x335690(_0x4902b2){const _0x432a86=_0xd8e7c4;_0x875c3c[_0x432a86('0x279f')]=_0x875c3c[_0x432a86('0x2766')][_0x4902b2],_0x875c3c[_0x432a86('0x304')]=_0x4902b2,_0x31f28a[_0x432a86('0x1d66')][_0x432a86('0xace')]({'id':_0x875c3c[_0x432a86('0x279f')]['id']})['$promise'][_0x432a86('0x11bf')](function(_0xbe0efb){const _0x3dce6f=_0x432a86;return _0x875c3c[_0x3dce6f('0x1318')]=_0xbe0efb['rows']?_0xbe0efb[_0x3dce6f('0x19b2')]:[],_0x31f28a[_0x3dce6f('0x1d66')][_0x3dce6f('0x20e8')]({'id':_0x875c3c[_0x3dce6f('0x279f')]['id']})['$promise'];})[_0x432a86('0x11bf')](function(_0x45fba2){const _0x581391=_0x432a86;return _0x875c3c['descriptions']=_0x45fba2[_0x581391('0x19b2')]?_0x45fba2[_0x581391('0x19b2')]:[],_0x31f28a[_0x581391('0x1d66')][_0x581391('0x8ff')]({'id':_0x875c3c['vtigerConfiguration']['id']})[_0x581391('0x1549')];})[_0x432a86('0x11bf')](function(_0x18a76b){const _0x33b388=_0x432a86;_0x875c3c[_0x33b388('0x1067')]=_0x18a76b['rows']?_0x18a76b[_0x33b388('0x19b2')]:[];})[_0x432a86('0x151d')](function(_0x129f9e){const _0x11ba2d=_0x432a86;_0x5778d9[_0x11ba2d('0x255')]({'title':_0x129f9e[_0x11ba2d('0xff9')]?_0x11ba2d('0x574')+_0x129f9e[_0x11ba2d('0xff9')]+'\x20-\x20'+_0x129f9e[_0x11ba2d('0x212f')]:_0x11ba2d('0x1023'),'msg':_0x129f9e[_0x11ba2d('0x4e8')]?JSON[_0x11ba2d('0x3e')](_0x129f9e['data']):_0x129f9e[_0x11ba2d('0xaab')]()});});}function _0xad83ad(_0x480bf0,_0x1c9fb9){const _0x13148a=_0xd8e7c4;_0x40680a[_0x13148a('0xb9')]({'controller':'CreateOrEditVtigerConfigurationDialogController','controllerAs':'vm','templateUrl':_0x3372c,'parent':angular[_0x13148a('0x1e73')](_0x1c8fec[_0x13148a('0x1d2')]),'targetEvent':_0x480bf0,'clickOutsideToClose':!![],'locals':{'vtigerConfiguration':_0x1c9fb9,'configurations':_0x875c3c[_0x13148a('0x2766')],'license':null,'setting':null,'crudPermissions':_0x875c3c[_0x13148a('0xb25')]}})[_0x13148a('0xa9b')](function(){const _0x113045=_0x13148a;_0x875c3c[_0x113045('0x9c7')](0x0);});}function _0x4e0d9f(_0x27c9cc,_0x1e4606){const _0x3692c3=_0xd8e7c4,_0x4d9048=_0x40680a[_0x3692c3('0x132b')]()[_0x3692c3('0x134b')](_0x3692c3('0x965'))[_0x3692c3('0x1d03')](_0x3692c3('0x2061')+(_0x1e4606['name']||_0x3692c3('0x279f'))+_0x3692c3('0x1c78')+_0x3692c3('0x1a'))[_0x3692c3('0xb2e')](_0x3692c3('0xfaf'))['targetEvent'](_0x27c9cc)['ok']('OK')['cancel']('CANCEL');_0x40680a[_0x3692c3('0xb9')](_0x4d9048)[_0x3692c3('0x11bf')](function(){const _0x5ec553=_0x3692c3;_0x31f28a[_0x5ec553('0x1d66')]['delete']({'id':_0x1e4606['id']})[_0x5ec553('0x1549')][_0x5ec553('0x11bf')](function(){const _0x66a048=_0x5ec553;_0x36f548()[_0x66a048('0x14a5')](_0x875c3c[_0x66a048('0x2766')],{'id':_0x1e4606['id']}),_0x5778d9[_0x66a048('0x2693')]({'title':'VtigerConfiguration\x20deleted!','msg':_0x1e4606[_0x66a048('0x1909')]?_0x1e4606[_0x66a048('0x1909')]+_0x66a048('0x433'):''});})[_0x5ec553('0x151d')](function(_0x1a6b2e){const _0x28be45=_0x5ec553;_0x5778d9[_0x28be45('0x255')]({'title':_0x1a6b2e['status']?'API:'+_0x1a6b2e['status']+_0x28be45('0xb0b')+_0x1a6b2e[_0x28be45('0x212f')]:_0x28be45('0x15ea'),'msg':_0x1a6b2e[_0x28be45('0x4e8')]?JSON['stringify'](_0x1a6b2e[_0x28be45('0x4e8')]):_0x1a6b2e[_0x28be45('0xaab')]()});})[_0x5ec553('0xa9b')](function(){const _0x156f5a=_0x5ec553;_0x875c3c[_0x156f5a('0x9c7')](0x0);});},function(){const _0xee30a8=_0x3692c3;console[_0xee30a8('0xc78')](_0xee30a8('0x772'));});}_0x875c3c[_0xd8e7c4('0x1151')]=[],_0x875c3c[_0xd8e7c4('0x1ec8')]=_0x13aea5,_0x875c3c['deleteSubjectConfirm']=_0x3ae5e8,_0x875c3c[_0xd8e7c4('0x1ab')]=_0x287719;function _0x13aea5(_0x338251,_0x1b2ad1){const _0x2741ab=_0xd8e7c4;_0x40680a[_0x2741ab('0xb9')]({'controller':'CreateOrEditVtigerAccountItemDialogController','controllerAs':'vm','templateUrl':_0x5399c0,'parent':angular['element'](_0x1c8fec['body']),'targetEvent':_0x338251,'clickOutsideToClose':!![],'locals':{'type':'subject','item':_0x1b2ad1,'items':_0x875c3c[_0x2741ab('0x1318')],'configuration':_0x875c3c[_0x2741ab('0x279f')],'account':_0x875c3c[_0x2741ab('0x138a')],'license':null,'setting':null,'crudPermissions':_0x875c3c[_0x2741ab('0xb25')]}});}function _0x5c2089(_0x6dfc81){const _0x1cddde=_0xd8e7c4;_0x31f28a[_0x1cddde('0xb92')][_0x1cddde('0x2088')]({'id':_0x6dfc81['id']})[_0x1cddde('0x1549')]['then'](function(){const _0x5e6e10=_0x1cddde;_0x36f548()[_0x5e6e10('0x14a5')](_0x875c3c[_0x5e6e10('0x1318')],{'id':_0x6dfc81['id']}),_0x5778d9[_0x5e6e10('0x2693')]({'title':_0x5e6e10('0x1845'),'msg':'Subject\x20has\x20been\x20deleted!'});})['catch'](function(_0x81a527){const _0x1fa060=_0x1cddde;_0x5778d9[_0x1fa060('0x255')]({'title':_0x81a527['status']?_0x1fa060('0x574')+_0x81a527[_0x1fa060('0xff9')]+_0x1fa060('0xb0b')+_0x81a527[_0x1fa060('0x212f')]:_0x1fa060('0xc27'),'msg':_0x81a527[_0x1fa060('0x4e8')]?JSON[_0x1fa060('0x3e')](_0x81a527[_0x1fa060('0x4e8')]):_0x81a527[_0x1fa060('0xaab')]()});});}function _0x3ae5e8(_0x683a53,_0xcbf728){const _0x158e95=_0xd8e7c4,_0xd23c7e=_0x40680a['confirm']()[_0x158e95('0x134b')](_0x158e95('0x98e'))[_0x158e95('0x1d03')](_0x158e95('0xb46')+_0x158e95('0x1a'))[_0x158e95('0xb2e')]('delete\x20subject')[_0x158e95('0x1e25')](_0x683a53)['ok']('OK')['cancel'](_0x158e95('0x772'));_0x40680a['show'](_0xd23c7e)[_0x158e95('0x11bf')](function(){_0x5c2089(_0xcbf728);},function(){const _0x2fbb5d=_0x158e95;console[_0x2fbb5d('0xc78')](_0x2fbb5d('0x772'));});}function _0x287719(_0x1a5d64){const _0x1a342e=_0xd8e7c4,_0x4d0d62=_0x40680a[_0x1a342e('0x132b')]()['title'](_0x1a342e('0x188d'))['htmlContent'](_0x1a342e('0x2061')+_0x875c3c['selectedSubjects'][_0x1a342e('0x1e22')]+_0x1a342e('0xac6')+'\x20will\x20be\x20deleted.')[_0x1a342e('0xb2e')](_0x1a342e('0x1c7c'))['targetEvent'](_0x1a5d64)['ok']('OK')['cancel'](_0x1a342e('0x772'));_0x40680a[_0x1a342e('0xb9')](_0x4d0d62)[_0x1a342e('0x11bf')](function(){const _0xaaedc=_0x1a342e;_0x875c3c['selectedSubjects'][_0xaaedc('0x1f88')](function(_0x14c35f){_0x5c2089(_0x14c35f);}),_0x875c3c['selectedSubjects']=[];});}_0x875c3c[_0xd8e7c4('0x73f')]=[],_0x875c3c[_0xd8e7c4('0x25fe')]=_0x42ca5b,_0x875c3c['deleteDescriptionConfirm']=_0x44f1fd,_0x875c3c['deleteSelectedDescriptions']=_0x4c8535;function _0x42ca5b(_0x257ca5,_0x34b234){const _0x1608c4=_0xd8e7c4;_0x40680a[_0x1608c4('0xb9')]({'controller':_0x1608c4('0x11d3'),'controllerAs':'vm','templateUrl':_0x5399c0,'parent':angular[_0x1608c4('0x1e73')](_0x1c8fec[_0x1608c4('0x1d2')]),'targetEvent':_0x257ca5,'clickOutsideToClose':!![],'locals':{'type':'description','item':_0x34b234,'items':_0x875c3c['descriptions'],'configuration':_0x875c3c['vtigerConfiguration'],'account':_0x875c3c[_0x1608c4('0x138a')],'license':null,'setting':null,'crudPermissions':_0x875c3c[_0x1608c4('0xb25')]}});}function _0x3066ae(_0xbf74a8){const _0x18d547=_0xd8e7c4;_0x31f28a[_0x18d547('0xb92')]['delete']({'id':_0xbf74a8['id']})[_0x18d547('0x1549')][_0x18d547('0x11bf')](function(){const _0x19aafb=_0x18d547;_0x36f548()[_0x19aafb('0x14a5')](_0x875c3c[_0x19aafb('0xe12')],{'id':_0xbf74a8['id']}),_0x5778d9['success']({'title':_0x19aafb('0x1221'),'msg':_0x19aafb('0x40e')});})[_0x18d547('0x151d')](function(_0x510465){const _0x3548fd=_0x18d547;_0x5778d9[_0x3548fd('0x255')]({'title':_0x510465[_0x3548fd('0xff9')]?_0x3548fd('0x574')+_0x510465[_0x3548fd('0xff9')]+_0x3548fd('0xb0b')+_0x510465[_0x3548fd('0x212f')]:_0x3548fd('0xc27'),'msg':_0x510465[_0x3548fd('0x4e8')]?JSON[_0x3548fd('0x3e')](_0x510465[_0x3548fd('0x4e8')]):_0x510465['toString']()});});}function _0x44f1fd(_0x4d4542,_0x34a545){const _0xe0eae7=_0xd8e7c4,_0x1ce09b=_0x40680a['confirm']()[_0xe0eae7('0x134b')](_0xe0eae7('0x46b'))[_0xe0eae7('0x1d03')]('Description'+'\x20will\x20be\x20deleted.')[_0xe0eae7('0xb2e')](_0xe0eae7('0xd32'))[_0xe0eae7('0x1e25')](_0x4d4542)['ok']('OK')['cancel'](_0xe0eae7('0x772'));_0x40680a[_0xe0eae7('0xb9')](_0x1ce09b)[_0xe0eae7('0x11bf')](function(){_0x3066ae(_0x34a545);},function(){const _0x595204=_0xe0eae7;console[_0x595204('0xc78')]('CANCEL');});}function _0x4c8535(_0xfa12ee){const _0x49b530=_0xd8e7c4,_0x1fc565=_0x40680a[_0x49b530('0x132b')]()[_0x49b530('0x134b')](_0x49b530('0x1795'))[_0x49b530('0x1d03')](_0x49b530('0x2061')+_0x875c3c['selectedDescriptions'][_0x49b530('0x1e22')]+'\x20selected'+_0x49b530('0x1a'))[_0x49b530('0xb2e')](_0x49b530('0xade'))[_0x49b530('0x1e25')](_0xfa12ee)['ok']('OK')[_0x49b530('0x26c9')]('CANCEL');_0x40680a[_0x49b530('0xb9')](_0x1fc565)[_0x49b530('0x11bf')](function(){const _0x3dead5=_0x49b530;_0x875c3c[_0x3dead5('0x73f')][_0x3dead5('0x1f88')](function(_0x4fbe02){_0x3066ae(_0x4fbe02);}),_0x875c3c['selectedDescriptions']=[];});}_0x875c3c[_0xd8e7c4('0xfea')]=[],_0x875c3c[_0xd8e7c4('0x18be')]=_0x5eed47,_0x875c3c[_0xd8e7c4('0x21c9')]=_0x15d4a5,_0x875c3c[_0xd8e7c4('0xd20')]=_0xa9cd4f;function _0x5eed47(_0x5980fb,_0x26ad18){const _0x55dff4=_0xd8e7c4;_0x40680a[_0x55dff4('0xb9')]({'controller':_0x55dff4('0x11d3'),'controllerAs':'vm','templateUrl':_0x5399c0,'parent':angular[_0x55dff4('0x1e73')](_0x1c8fec['body']),'targetEvent':_0x5980fb,'clickOutsideToClose':!![],'locals':{'type':_0x55dff4('0x485'),'item':_0x26ad18,'items':_0x875c3c[_0x55dff4('0x1067')],'configuration':_0x875c3c['vtigerConfiguration'],'account':_0x875c3c[_0x55dff4('0x138a')],'license':null,'setting':null,'crudPermissions':_0x875c3c['crudPermissions']}});}function _0x3c0ff5(_0x55debe){const _0x5ae4ad=_0xd8e7c4;_0x31f28a[_0x5ae4ad('0xb92')]['delete']({'id':_0x55debe['id']})[_0x5ae4ad('0x1549')][_0x5ae4ad('0x11bf')](function(){const _0xda1048=_0x5ae4ad;_0x36f548()['remove'](_0x875c3c[_0xda1048('0x1067')],{'id':_0x55debe['id']}),_0x5778d9[_0xda1048('0x2693')]({'title':_0xda1048('0x4da'),'msg':_0xda1048('0x264f')});})[_0x5ae4ad('0x151d')](function(_0x4250c8){const _0x5a2a1e=_0x5ae4ad;_0x5778d9[_0x5a2a1e('0x255')]({'title':_0x4250c8['status']?'API:'+_0x4250c8[_0x5a2a1e('0xff9')]+_0x5a2a1e('0xb0b')+_0x4250c8[_0x5a2a1e('0x212f')]:_0x5a2a1e('0xc27'),'msg':_0x4250c8[_0x5a2a1e('0x4e8')]?JSON[_0x5a2a1e('0x3e')](_0x4250c8[_0x5a2a1e('0x4e8')]):_0x4250c8[_0x5a2a1e('0xaab')]()});});}function _0x15d4a5(_0x1f9480,_0x49a368){const _0x500ea5=_0xd8e7c4,_0x485c17=_0x40680a[_0x500ea5('0x132b')]()['title'](_0x500ea5('0x915'))[_0x500ea5('0x1d03')](_0x500ea5('0xdc8')+'\x20will\x20be\x20deleted.')[_0x500ea5('0xb2e')](_0x500ea5('0xc52'))[_0x500ea5('0x1e25')](_0x1f9480)['ok']('OK')[_0x500ea5('0x26c9')]('CANCEL');_0x40680a[_0x500ea5('0xb9')](_0x485c17)[_0x500ea5('0x11bf')](function(){_0x3c0ff5(_0x49a368);},function(){const _0x5089d3=_0x500ea5;console['log'](_0x5089d3('0x772'));});}function _0xa9cd4f(_0x26400){const _0x430b32=_0xd8e7c4,_0x57bce9=_0x40680a[_0x430b32('0x132b')]()['title'](_0x430b32('0x25cc'))[_0x430b32('0x1d03')](_0x430b32('0x2061')+_0x875c3c[_0x430b32('0xfea')]['length']+_0x430b32('0xac6')+_0x430b32('0x1a'))[_0x430b32('0xb2e')](_0x430b32('0x15b8'))[_0x430b32('0x1e25')](_0x26400)['ok']('OK')[_0x430b32('0x26c9')]('CANCEL');_0x40680a[_0x430b32('0xb9')](_0x57bce9)[_0x430b32('0x11bf')](function(){const _0x3fbbf6=_0x430b32;_0x875c3c['selectedFields'][_0x3fbbf6('0x1f88')](function(_0x1b70f6){_0x3c0ff5(_0x1b70f6);}),_0x875c3c[_0x3fbbf6('0xfea')]=[];});}}const _0x5b1a9a=_0xcffa33;_0x16d3f4[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0xcbc'),_0x21d0f5('0x16b9'),_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0xb6b'),_0x21d0f5('0x142d'),'configurations','vtigerConfiguration','api',_0x21d0f5('0x1150'),_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1'),_0x21d0f5('0xb25')];function _0x16d3f4(_0x5f5332,_0x11018a,_0x275c3e,_0x3981fd,_0x2a205a,_0x236bd0,_0x3644da,_0x3b08e9,_0xd33f49,_0x2addc9,_0x320fea,_0x1e5016,_0x5385cd,_0x3338a5){const _0x1089e7=_0x21d0f5,_0x42892d=this;_0x42892d['currentUser']=_0x320fea['getCurrentUser'](),_0x42892d[_0x1089e7('0x120f')]=[],_0x42892d[_0x1089e7('0x23e1')]=_0x5385cd,_0x42892d[_0x1089e7('0x17ff')]=_0x1e5016,_0x42892d[_0x1089e7('0xb25')]=_0x3338a5,_0x42892d[_0x1089e7('0x2c9')]={},_0x42892d[_0x1089e7('0x2834')]=_0x42892d[_0x1089e7('0x23e1')]&&_0x42892d[_0x1089e7('0x23e1')][_0x1089e7('0x1d4')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x42892d[_0x1089e7('0x134b')]=_0x1089e7('0xce0'),_0x42892d[_0x1089e7('0x279f')]=angular[_0x1089e7('0x6fb')](_0xd33f49),_0x42892d[_0x1089e7('0x2766')]=_0x3b08e9,_0x42892d[_0x1089e7('0x1f23')]=![];!_0x42892d[_0x1089e7('0x279f')]&&(_0x42892d[_0x1089e7('0x279f')]={'channel':_0x1089e7('0x1bc3'),'type':_0x1089e7('0x18a2')},_0x42892d[_0x1089e7('0x134b')]=_0x1089e7('0xa75'),_0x42892d[_0x1089e7('0x1f23')]=!![]);_0x42892d['addNewVtigerConfiguration']=_0x326d35,_0x42892d[_0x1089e7('0x19c1')]=_0x4cd9d5,_0x42892d[_0x1089e7('0x6da')]=_0x2418f6,_0x42892d[_0x1089e7('0x1bd1')]=_0x33d07c,_0x42892d[_0x1089e7('0xc4e')]=_0x2d9dfc;function _0x326d35(){const _0x41b51d=_0x1089e7;_0x42892d[_0x41b51d('0x120f')]=[],_0x2addc9[_0x41b51d('0x1955')][_0x41b51d('0x157f')]({'id':_0x11018a[_0x41b51d('0x1ab3')]['id']},_0x42892d[_0x41b51d('0x279f')])[_0x41b51d('0x1549')][_0x41b51d('0x11bf')](function(_0x4745d6){const _0x327312=_0x41b51d;_0x42892d[_0x327312('0x2766')]['unshift'](_0x4745d6[_0x327312('0x2866')]()),_0x3644da['success']({'title':_0x327312('0x4ab'),'msg':_0x42892d[_0x327312('0x279f')][_0x327312('0x1909')]?_0x42892d[_0x327312('0x279f')][_0x327312('0x1909')]+_0x327312('0x7fb'):''}),_0x2d9dfc(_0x4745d6);})['catch'](function(_0x459a84){const _0x2dcb59=_0x41b51d;if(_0x459a84[_0x2dcb59('0x4e8')]&&_0x459a84[_0x2dcb59('0x4e8')]['errors']&&_0x459a84[_0x2dcb59('0x4e8')]['errors'][_0x2dcb59('0x1e22')]){_0x42892d['errors']=_0x459a84[_0x2dcb59('0x4e8')][_0x2dcb59('0x120f')]||[{'message':_0x459a84['toString'](),'type':_0x2dcb59('0x21a1')}];for(let _0x2af7df=0x0;_0x2af7df<_0x459a84[_0x2dcb59('0x4e8')]['errors'][_0x2dcb59('0x1e22')];_0x2af7df+=0x1){_0x3644da[_0x2dcb59('0x255')]({'title':_0x459a84[_0x2dcb59('0x4e8')][_0x2dcb59('0x120f')][_0x2af7df][_0x2dcb59('0x19fd')],'msg':_0x459a84[_0x2dcb59('0x4e8')]['errors'][_0x2af7df]['message']});}}else _0x3644da[_0x2dcb59('0x255')]({'title':_0x459a84[_0x2dcb59('0xff9')]?_0x2dcb59('0x574')+_0x459a84[_0x2dcb59('0xff9')]+_0x2dcb59('0xb0b')+_0x459a84[_0x2dcb59('0x212f')]:_0x2dcb59('0x21a1'),'msg':_0x459a84[_0x2dcb59('0x4e8')]?JSON[_0x2dcb59('0x3e')](_0x459a84[_0x2dcb59('0x4e8')][_0x2dcb59('0x1b86')]):_0x459a84[_0x2dcb59('0xaab')]()});});}function _0x4cd9d5(){const _0x1f0685=_0x1089e7;_0x42892d[_0x1f0685('0x120f')]=[],_0x2addc9[_0x1f0685('0x1d66')][_0x1f0685('0x5ab')]({'id':_0x42892d[_0x1f0685('0x279f')]['id']},_0x42892d[_0x1f0685('0x279f')])['$promise'][_0x1f0685('0x11bf')](function(_0x3a4f3f){const _0x57388a=_0x1f0685,_0x27efdc=_0x36f548()['find'](_0x42892d[_0x57388a('0x2766')],{'id':_0x3a4f3f['id']});_0x27efdc&&_0x36f548()[_0x57388a('0x47b')](_0x27efdc,_0x36f548()[_0x57388a('0x258')](_0x3a4f3f[_0x57388a('0x2866')](),_0x36f548()['keys'](_0x27efdc))),_0x3644da[_0x57388a('0x2693')]({'title':'VtigerConfiguration\x20properly\x20saved!','msg':_0x42892d[_0x57388a('0x279f')][_0x57388a('0x1909')]?_0x42892d[_0x57388a('0x279f')][_0x57388a('0x1909')]+_0x57388a('0x1a78'):''}),_0x2d9dfc(_0x3a4f3f);})['catch'](function(_0x376488){const _0x30dc7e=_0x1f0685;if(_0x376488[_0x30dc7e('0x4e8')]&&_0x376488[_0x30dc7e('0x4e8')][_0x30dc7e('0x120f')]&&_0x376488[_0x30dc7e('0x4e8')][_0x30dc7e('0x120f')]['length']){_0x42892d[_0x30dc7e('0x120f')]=_0x376488[_0x30dc7e('0x4e8')]['errors']||[{'message':_0x376488[_0x30dc7e('0xaab')](),'type':_0x30dc7e('0x2461')}];for(let _0x4e555e=0x0;_0x4e555e<_0x376488['data'][_0x30dc7e('0x120f')][_0x30dc7e('0x1e22')];_0x4e555e++){_0x3644da[_0x30dc7e('0x255')]({'title':_0x376488['data'][_0x30dc7e('0x120f')][_0x4e555e]['type'],'msg':_0x376488['data'][_0x30dc7e('0x120f')][_0x4e555e][_0x30dc7e('0x1b86')]});}}else _0x3644da[_0x30dc7e('0x255')]({'title':_0x376488['status']?_0x30dc7e('0x574')+_0x376488['status']+_0x30dc7e('0xb0b')+_0x376488['statusText']:'api.intVtigerConfiguration.update','msg':_0x376488[_0x30dc7e('0x4e8')]?JSON[_0x30dc7e('0x3e')](_0x376488['data']['message']):_0x376488['toString']()});});}function _0x2418f6(_0x4857af){const _0x2f6351=_0x1089e7;_0x42892d[_0x2f6351('0x120f')]=[];const _0x52915a=_0x3981fd['confirm']()[_0x2f6351('0x134b')]('Are\x20you\x20sure?')[_0x2f6351('0x252a')](_0x2f6351('0xc60'))[_0x2f6351('0xb2e')](_0x2f6351('0x1115'))['ok'](_0x2f6351('0x1167'))['cancel'](_0x2f6351('0x784'))[_0x2f6351('0x1e25')](_0x4857af);_0x3981fd[_0x2f6351('0xb9')](_0x52915a)['then'](function(){const _0x973f01=_0x2f6351;_0x2addc9[_0x973f01('0x1d66')][_0x973f01('0x2088')]({'id':_0x42892d[_0x973f01('0x279f')]['id']})[_0x973f01('0x1549')]['then'](function(){const _0x5132ec=_0x973f01;_0x36f548()['remove'](_0x42892d['configurations'],{'id':_0x42892d[_0x5132ec('0x279f')]['id']}),_0x3644da['success']({'title':'VtigerConfiguration\x20properly\x20deleted!','msg':(_0x42892d[_0x5132ec('0x279f')][_0x5132ec('0x1909')]||_0x5132ec('0x279f'))+_0x5132ec('0x433')}),_0x2d9dfc(_0x42892d['vtigerConfiguration']);})[_0x973f01('0x151d')](function(_0x1b3849){const _0x46ef5c=_0x973f01;if(_0x1b3849['data']&&_0x1b3849[_0x46ef5c('0x4e8')]['errors']&&_0x1b3849['data'][_0x46ef5c('0x120f')]['length']){_0x42892d[_0x46ef5c('0x120f')]=_0x1b3849['data']['errors']||[{'message':_0x1b3849[_0x46ef5c('0xaab')](),'type':_0x46ef5c('0xd3b')}];for(let _0x12fbdf=0x0;_0x12fbdf<_0x1b3849[_0x46ef5c('0x4e8')]['errors'][_0x46ef5c('0x1e22')];_0x12fbdf++){_0x3644da[_0x46ef5c('0x255')]({'title':_0x1b3849[_0x46ef5c('0x4e8')]['errors'][_0x12fbdf][_0x46ef5c('0x19fd')],'msg':_0x1b3849['data']['errors'][_0x12fbdf][_0x46ef5c('0x1b86')]});}}else _0x3644da['error']({'title':_0x1b3849[_0x46ef5c('0xff9')]?_0x46ef5c('0x574')+_0x1b3849[_0x46ef5c('0xff9')]+_0x46ef5c('0xb0b')+_0x1b3849[_0x46ef5c('0x212f')]:_0x46ef5c('0xd3b'),'msg':_0x1b3849['data']?JSON[_0x46ef5c('0x3e')](_0x1b3849[_0x46ef5c('0x4e8')]['message']):_0x1b3849[_0x46ef5c('0x1b86')]||_0x1b3849[_0x46ef5c('0xaab')]()});});},function(){});}function _0x33d07c(_0x3ef772){return _0x3ef772===null?undefined:new Date(_0x3ef772);}function _0x2d9dfc(_0x43c414){const _0x14ad9e=_0x1089e7;_0x3981fd[_0x14ad9e('0x237e')](_0x43c414);}}const _0x30bf54=_0x16d3f4;_0x45e66c['$inject']=['$scope',_0x21d0f5('0xcbc'),'$location',_0x21d0f5('0x1ca2'),_0x21d0f5('0x142d'),_0x21d0f5('0xc09'),'items',_0x21d0f5('0xa9c'),_0x21d0f5('0x2565'),_0x21d0f5('0x19fd'),_0x21d0f5('0x12a5'),'Auth',_0x21d0f5('0xb25')];function _0x45e66c(_0x48133a,_0x7c281e,_0x1d659e,_0x5d7b1c,_0x181594,_0x37a564,_0x3da1dc,_0x321f9e,_0x2dd64e,_0x10e1bb,_0xb02b4b,_0x5e69bc,_0x7d7227){const _0x36708d=_0x21d0f5,_0x4628b3=this;_0x4628b3['currentUser']=_0x5e69bc['getCurrentUser'](),_0x4628b3[_0x36708d('0x120f')]=[],_0x4628b3[_0x36708d('0x134b')]='INTEGRATIONS.EDIT_'+_0x36f548()[_0x36708d('0x1a31')](_0x10e1bb),_0x4628b3[_0x36708d('0xa9c')]=angular[_0x36708d('0x6fb')](_0x321f9e),_0x4628b3['items']=_0x3da1dc,_0x4628b3[_0x36708d('0x19fd')]=_0x10e1bb,_0x4628b3[_0x36708d('0xb25')]=_0x7d7227,_0x4628b3['newItem']=![];!_0x4628b3[_0x36708d('0xa9c')]&&(_0x4628b3[_0x36708d('0xa9c')]={'type':_0x36708d('0x2380')},_0x4628b3[_0x36708d('0xa9c')][_0x36f548()[_0x36708d('0x22c2')](_0x10e1bb)+'Id']=_0x37a564['id'],_0x4628b3['title']=_0x36708d('0x26b9')+_0x36f548()[_0x36708d('0x1a31')](_0x10e1bb),_0x4628b3[_0x36708d('0x1f63')]=!![]);_0x4628b3['addNewItem']=_0x2fd8cc,_0x4628b3[_0x36708d('0x265e')]=_0xd342f3,_0x4628b3[_0x36708d('0x2639')]=_0x3151cb,_0x4628b3[_0x36708d('0x6e1')]=_0x47d4a1,_0x4628b3[_0x36708d('0xc4e')]=_0x2f2492,_0xb02b4b[_0x36708d('0xb0')][_0x36708d('0xbaa')]({'nolimit':!![]})[_0x36708d('0x1549')]['then'](function(_0x601ef){const _0xb26649=_0x36708d;return _0x4628b3[_0xb26649('0x1700')]=_0x601ef['rows']?_0x601ef[_0xb26649('0x19b2')]:[],_0xb02b4b[_0xb26649('0x1313')][_0xb26649('0x19a5')]()[_0xb26649('0x1549')];})[_0x36708d('0x11bf')](function(_0x3f1e1c){const _0x4ebc32=_0x36708d;return _0x4628b3[_0x4ebc32('0x1720')]=_0x36f548()['difference'](_0x36f548()['keys'](_0x3f1e1c),['$promise',_0x4ebc32('0x1619'),_0x4ebc32('0x1779'),'updatedAt',_0x4ebc32('0x14b4')]),_0x4628b3[_0x4ebc32('0x1720')]['push'](_0x4ebc32('0xbf8')),_0xb02b4b[_0x4ebc32('0x14fc')][_0x4ebc32('0x19a5')]()[_0x4ebc32('0x1549')];})['then'](function(_0x4ba27c){const _0x1e141d=_0x36708d;_0x4628b3['voiceDialReportColumns']=_0x36f548()[_0x1e141d('0x1271')](_0x36f548()['keys'](_0x4ba27c),[_0x1e141d('0x1549'),_0x1e141d('0x1619'),_0x1e141d('0x1779'),_0x1e141d('0x14ea'),'sourceid']),_0x4628b3[_0x1e141d('0x77c')][_0x1e141d('0x105d')](_0x1e141d('0xbf8'));})[_0x36708d('0x151d')](function(_0x1b6d7d){const _0x18e523=_0x36708d;_0x181594[_0x18e523('0x255')]({'title':_0x1b6d7d[_0x18e523('0xff9')]?_0x18e523('0x574')+_0x1b6d7d[_0x18e523('0xff9')]+_0x18e523('0xb0b')+_0x1b6d7d[_0x18e523('0x212f')]:_0x18e523('0x2010'),'msg':_0x1b6d7d[_0x18e523('0x4e8')]?JSON[_0x18e523('0x3e')](_0x1b6d7d['data']):_0x1b6d7d[_0x18e523('0xaab')]()});}),_0xb02b4b[_0x36708d('0x1955')]['getFields']({'id':_0x2dd64e['id'],'ticketType':_0x37a564['ticketType']?_0x37a564['ticketType']:undefined})['$promise'][_0x36708d('0x11bf')](function(_0x567eb4){const _0x2c199b=_0x36708d;_0x4628b3['accountConnected']=!![],_0x4628b3['fields']=_0x567eb4[_0x2c199b('0x19b2')]?_0x567eb4[_0x2c199b('0x19b2')]:[],_0x4628b3[_0x2c199b('0xa9c')][_0x2c199b('0x223a')]&&(_0x4628b3['customField']=_0x36f548()[_0x2c199b('0x1ad4')](_0x4628b3[_0x2c199b('0x1067')],{'id':_0x4628b3[_0x2c199b('0xa9c')]['idField']}));})[_0x36708d('0x151d')](function(_0x120df7){const _0x5e44f8=_0x36708d;_0x4628b3[_0x5e44f8('0xf69')]=![],console[_0x5e44f8('0x255')](_0x120df7);});function _0x2fd8cc(){const _0x53c1b5=_0x36708d;_0x4628b3['errors']=[],_0x4628b3['customField']&&(_0x4628b3[_0x53c1b5('0xa9c')][_0x53c1b5('0x223a')]=_0x4628b3['customField']['id'],_0x4628b3[_0x53c1b5('0xa9c')][_0x53c1b5('0x1992')]=_0x4628b3[_0x53c1b5('0x2830')][_0x53c1b5('0x1909')],_0x4628b3[_0x53c1b5('0xa9c')][_0x53c1b5('0x2830')]=_0x4628b3[_0x53c1b5('0x2830')][_0x53c1b5('0xa8d')]),_0xb02b4b[_0x53c1b5('0xb92')]['save'](_0x4628b3['item'])[_0x53c1b5('0x1549')][_0x53c1b5('0x11bf')](function(_0x584a14){const _0x51d6fc=_0x53c1b5;_0x4628b3[_0x51d6fc('0x22')]['unshift'](_0x584a14),_0x181594[_0x51d6fc('0x2693')]({'title':_0x36f548()[_0x51d6fc('0x22c2')](_0x10e1bb)+_0x51d6fc('0x1c0e'),'msg':_0x36f548()[_0x51d6fc('0x22c2')](_0x10e1bb)+_0x51d6fc('0x7fb')}),_0x2f2492();})[_0x53c1b5('0x151d')](function(_0x4d428a){const _0x5000cc=_0x53c1b5;console[_0x5000cc('0x255')](_0x4d428a),_0x4628b3[_0x5000cc('0x120f')]=_0x4d428a[_0x5000cc('0x4e8')][_0x5000cc('0x120f')]||[{'message':_0x4d428a[_0x5000cc('0xaab')](),'type':_0x5000cc('0x20a1')}];});}function _0xd342f3(){const _0x26652e=_0x36708d;_0x4628b3[_0x26652e('0x120f')]=[],_0x4628b3[_0x26652e('0x2830')]&&(_0x4628b3[_0x26652e('0xa9c')][_0x26652e('0x223a')]=_0x4628b3[_0x26652e('0x2830')]['id'],_0x4628b3['item'][_0x26652e('0x1992')]=_0x4628b3[_0x26652e('0x2830')][_0x26652e('0x1909')],_0x4628b3[_0x26652e('0xa9c')]['customField']=_0x4628b3[_0x26652e('0x2830')][_0x26652e('0xa8d')]),_0xb02b4b[_0x26652e('0xb92')][_0x26652e('0x5ab')]({'id':_0x4628b3[_0x26652e('0xa9c')]['id']},_0x4628b3[_0x26652e('0xa9c')])['$promise'][_0x26652e('0x11bf')](function(_0x25f448){const _0x52dd34=_0x26652e,_0x21e321=_0x36f548()[_0x52dd34('0x1ad4')](_0x4628b3[_0x52dd34('0x22')],{'id':_0x25f448['id']});_0x21e321&&_0x36f548()[_0x52dd34('0x47b')](_0x21e321,_0x25f448),_0x181594[_0x52dd34('0x2693')]({'title':_0x36f548()[_0x52dd34('0x22c2')](_0x10e1bb)+_0x52dd34('0x157b'),'msg':_0x36f548()[_0x52dd34('0x22c2')](_0x10e1bb)+'\x20has\x20been\x20saved!'}),_0x2f2492();})['catch'](function(_0x37ef77){const _0x51013e=_0x26652e;console[_0x51013e('0x255')](_0x37ef77),_0x4628b3[_0x51013e('0x120f')]=_0x37ef77['data'][_0x51013e('0x120f')]||[{'message':_0x37ef77[_0x51013e('0xaab')](),'type':_0x51013e('0xbab')}];});}function _0x3151cb(_0x50ca53){const _0x37348b=_0x36708d;_0x4628b3[_0x37348b('0x120f')]=[];const _0x3df971=_0x5d7b1c['confirm']()['title'](_0x37348b('0x1fa9'))[_0x37348b('0x252a')](_0x37348b('0x2155')+_0x10e1bb+'\x20will\x20be\x20deleted.')[_0x37348b('0xb2e')](_0x37348b('0x13ea')+_0x36f548()[_0x37348b('0x22c2')](_0x10e1bb))['ok'](_0x37348b('0x1167'))['cancel'](_0x37348b('0x784'))['targetEvent'](_0x50ca53);_0x5d7b1c['show'](_0x3df971)[_0x37348b('0x11bf')](function(){const _0x25afba=_0x37348b;_0xb02b4b[_0x25afba('0xb92')][_0x25afba('0x2088')]({'id':_0x4628b3[_0x25afba('0xa9c')]['id']})['$promise']['then'](function(){const _0x4199ba=_0x25afba;_0x36f548()['remove'](_0x4628b3[_0x4199ba('0x22')],{'id':_0x4628b3['item']['id']}),_0x181594[_0x4199ba('0x2693')]({'title':_0x36f548()['capitalize'](_0x10e1bb)+'\x20properly\x20deleted!','msg':_0x36f548()[_0x4199ba('0x22c2')](_0x10e1bb)+_0x4199ba('0x433')}),_0x2f2492();})['catch'](function(_0x12ed38){const _0x4474af=_0x25afba;console[_0x4474af('0x255')](_0x12ed38),_0x4628b3['errors']=_0x12ed38[_0x4474af('0x4e8')]['errors']||[{'message':_0x12ed38[_0x4474af('0xaab')](),'type':_0x4474af('0x20f0')}];});},function(){});}function _0x47d4a1(){const _0x40edc4=_0x36708d;return _0x4628b3[_0x40edc4('0xa9c')][_0x40edc4('0x209e')]!==undefined?_0x4628b3['item'][_0x40edc4('0x209e')]:_0x40edc4('0xbc2');}function _0x2f2492(){const _0x2d62a2=_0x36708d;_0x5d7b1c[_0x2d62a2('0x237e')]();}}const _0x54c12b=_0x45e66c;_0x2f59ae['$inject']=[_0x21d0f5('0xcbc'),_0x21d0f5('0x16b9'),'$mdDialog','$document',_0x21d0f5('0xb6b'),_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1'),_0x21d0f5('0x12a5'),_0x21d0f5('0x142d'),_0x21d0f5('0x1150'),_0x21d0f5('0x138a'),_0x21d0f5('0x1d63')];function _0x2f59ae(_0x55410c,_0x337ee3,_0x4517b1,_0x19f621,_0x29eb44,_0x28442f,_0x4f4a81,_0x3b3e52,_0x8e543b,_0xcfcb38,_0x2c8688,_0x161183){const _0x1e39ba=_0x21d0f5,_0xdbb6de=this;_0xdbb6de[_0x1e39ba('0x32a')]=_0xcfcb38[_0x1e39ba('0x2428')](),_0xdbb6de[_0x1e39ba('0x17ff')]=_0x28442f,_0xdbb6de[_0x1e39ba('0x23e1')]=_0x4f4a81,_0xdbb6de[_0x1e39ba('0x2834')]=_0xdbb6de[_0x1e39ba('0x23e1')][_0x1e39ba('0x1d4')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0xdbb6de['location']=_0x337ee3[_0x1e39ba('0x1797')]()+_0x1e39ba('0x16a1')+_0x337ee3[_0x1e39ba('0x14ec')](),_0xdbb6de[_0x1e39ba('0x138a')]=_0x2c8688||_0x55410c['params']['vtigerAccount']||{},_0xdbb6de[_0x1e39ba('0x1d63')]=_0x161183&&_0x161183[_0x1e39ba('0x27d2')]==0x1?_0x161183[_0x1e39ba('0x19b2')][0x0]:null,_0xdbb6de[_0x1e39ba('0xb25')]=_0xcfcb38[_0x1e39ba('0x1530')](_0xdbb6de['userProfileSection']?_0xdbb6de[_0x1e39ba('0x1d63')][_0x1e39ba('0xb25')]:null),_0xdbb6de[_0x1e39ba('0x2c9')]={},_0xdbb6de['selectedTab']=_0x55410c['params'][_0x1e39ba('0x205c')]||0x0,_0xdbb6de[_0x1e39ba('0xb30')]=_0x8e543b[_0x1e39ba('0x870')],_0xdbb6de[_0x1e39ba('0x476')]=_0xa9bc16,_0xdbb6de[_0x1e39ba('0x1409')]=_0x2b7179;function _0xa9bc16(){const _0x2d083a=_0x1e39ba;_0x55410c['go'](_0x2d083a('0x1258'),{},{'reload':_0x2d083a('0x1258')});}function _0x2b7179(){const _0x3d7cd6=_0x1e39ba;_0x3b3e52[_0x3d7cd6('0x1955')][_0x3d7cd6('0x5ab')]({'id':_0xdbb6de[_0x3d7cd6('0x138a')]['id']},_0xdbb6de['vtigerAccount'])[_0x3d7cd6('0x1549')][_0x3d7cd6('0x11bf')](function(){const _0x342610=_0x3d7cd6;_0x8e543b[_0x342610('0x2693')]({'title':_0x342610('0x2600'),'msg':_0xdbb6de[_0x342610('0x138a')]['name']?_0xdbb6de['vtigerAccount'][_0x342610('0x1909')]+_0x342610('0xd7'):''});})[_0x3d7cd6('0x151d')](function(_0x3a4d9c){const _0x28b823=_0x3d7cd6;_0x8e543b[_0x28b823('0x255')]({'title':_0x3a4d9c[_0x28b823('0xff9')]?_0x28b823('0x574')+_0x3a4d9c[_0x28b823('0xff9')]+_0x28b823('0xb0b')+_0x3a4d9c[_0x28b823('0x212f')]:_0x28b823('0x18d8'),'msg':_0x3a4d9c['data']?JSON[_0x28b823('0x3e')](_0x3a4d9c[_0x28b823('0x4e8')]):_0x3a4d9c[_0x28b823('0xaab')]()});});}}const _0x545fb4=_0x2f59ae,_0x5bc8b8=_0x351988['p']+_0x21d0f5('0x23d2');_0x119c49['$inject']=[_0x21d0f5('0x1b80'),_0x21d0f5('0x2143'),_0x21d0f5('0xcbc'),_0x21d0f5('0x18fe'),_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),_0x21d0f5('0x17f5'),_0x21d0f5('0xb6b'),_0x21d0f5('0x232d'),_0x21d0f5('0x25bc'),_0x21d0f5('0x1d63'),_0x21d0f5('0x12a5'),_0x21d0f5('0xda9'),_0x21d0f5('0x142d'),_0x21d0f5('0x1150'),_0x21d0f5('0x17ff'),'setting'];function _0x119c49(_0x53e32a,_0x91f2ee,_0x191344,_0x49efa9,_0x32dda3,_0x51858a,_0x28ef87,_0x247e18,_0x3ad638,_0x29dab9,_0x2c2e05,_0x1adb32,_0x54b64b,_0x4faa6d,_0x2221c2,_0x20843f,_0x51194d){const _0x348a6d=_0x21d0f5,_0x4ca9da=this;_0x4ca9da[_0x348a6d('0x17ff')]=_0x20843f,_0x4ca9da[_0x348a6d('0x23e1')]=_0x51194d,_0x4ca9da['currentUser']=_0x2221c2[_0x348a6d('0x2428')](),_0x4ca9da[_0x348a6d('0x232d')]=_0x3ad638||{'count':0x0,'rows':[]},_0x4ca9da[_0x348a6d('0x25bc')]=_0x29dab9,_0x4ca9da[_0x348a6d('0x1d63')]=_0x2c2e05&&_0x2c2e05['count']==0x1?_0x2c2e05[_0x348a6d('0x19b2')][0x0]:null,_0x4ca9da[_0x348a6d('0xb25')]=_0x2221c2['parseCrudPermissions'](_0x4ca9da[_0x348a6d('0x1d63')]?_0x4ca9da[_0x348a6d('0x1d63')]['crudPermissions']:null),_0x4ca9da['table']='vtigerAccounts',_0x4ca9da[_0x348a6d('0x724')]='',_0x4ca9da['listOrderAsc']=null,_0x4ca9da['selectedVtigerAccounts']=[],_0x4ca9da[_0x348a6d('0x1f2a')]={'fields':_0x348a6d('0x1aa9'),'limit':0xa,'page':0x1},_0x4ca9da['editstate']=_0x41b266,_0x4ca9da[_0x348a6d('0x776')]=_0xf4acb0,_0x4ca9da['deleteconfirm']=_0x13766a,_0x4ca9da['success']=_0x4ea514,_0x4ca9da[_0x348a6d('0x1ad5')]=_0x39d1d2,_0x4ca9da[_0x348a6d('0x6c4')]=_0x45aef1,_0x4ca9da[_0x348a6d('0x184a')]=_0x248d53,_0x4ca9da['exportSelectedVtigerAccounts']=_0x5f4cfc,_0x4ca9da[_0x348a6d('0x178e')]=_0x574a81,_0x4ca9da[_0x348a6d('0x75a')]=_0x26f765,_0x4ca9da[_0x348a6d('0x8c9')]=_0xd46e06;function _0x41b266(_0x5b9046){const _0x7f40a3=_0x348a6d;_0x191344['go'](_0x7f40a3('0x275e'),{'id':_0x5b9046['id'],'vtigerAccount':_0x5b9046,'crudPermissions':_0x4ca9da[_0x7f40a3('0xb25')]});}function _0xf4acb0(_0x3628b3){const _0x1a7c06=_0x348a6d;return _0x1adb32[_0x1a7c06('0x1955')]['getFields']({'id':_0x3628b3['id'],'test':!![]})['$promise'][_0x1a7c06('0x11bf')](function(){const _0x3acab4=_0x1a7c06;_0x4faa6d[_0x3acab4('0x2693')]({'title':_0x3acab4('0x2640'),'msg':'Connection\x20succeded!'});})[_0x1a7c06('0x151d')](function(_0x454f71){const _0x58afd2=_0x1a7c06;_0x4faa6d[_0x58afd2('0x255')]({'title':'VtigerAccount\x20properly\x20tested','msg':_0x454f71[_0x58afd2('0x4e8')]?_0x454f71[_0x58afd2('0x4e8')]['message']?_0x454f71['data']['message']:JSON[_0x58afd2('0x3e')](_0x454f71[_0x58afd2('0x4e8')]):_0x454f71[_0x58afd2('0xaab')]()});});}function _0x13766a(_0x56eba7,_0x4a19d2){const _0xe2d2b5=_0x348a6d,_0x12df40=_0x32dda3[_0xe2d2b5('0x132b')]()[_0xe2d2b5('0x134b')](_0xe2d2b5('0x1796')+_0x36f548()[_0xe2d2b5('0x13cf')](_0xe2d2b5('0x138a'))+'?')[_0xe2d2b5('0x1d03')](''+(_0x56eba7['name']||_0xe2d2b5('0x138a'))+_0xe2d2b5('0x1c78')+_0xe2d2b5('0x1a'))[_0xe2d2b5('0xb2e')](_0xe2d2b5('0xd83'))[_0xe2d2b5('0x1e25')](_0x4a19d2)['ok']('OK')[_0xe2d2b5('0x26c9')](_0xe2d2b5('0x772'));_0x32dda3['show'](_0x12df40)[_0xe2d2b5('0x11bf')](function(){_0x248d53(_0x56eba7);},function(){const _0x4b4eca=_0xe2d2b5;console[_0x4b4eca('0xc78')](_0x4b4eca('0x772'));});}let _0x87672=!![],_0x235d3c=0x1;_0x53e32a['$watch'](_0x348a6d('0x842'),function(_0x2d250f,_0x1935ab){const _0x2a75bf=_0x348a6d;_0x87672?_0x28ef87(function(){_0x87672=![];}):(!_0x1935ab&&(_0x235d3c=_0x4ca9da['query'][_0x2a75bf('0x1c2')]),_0x2d250f!==_0x1935ab&&(_0x4ca9da['query'][_0x2a75bf('0x1c2')]=0x1),!_0x2d250f&&(_0x4ca9da[_0x2a75bf('0x1f2a')][_0x2a75bf('0x1c2')]=_0x235d3c),_0x4ca9da[_0x2a75bf('0x1ad5')]());});function _0x4ea514(_0x1dd65c){const _0x4501fb=_0x348a6d;_0x4ca9da[_0x4501fb('0x232d')]=_0x1dd65c||{'count':0x0,'rows':[]};}function _0x39d1d2(){const _0x47b4fa=_0x348a6d;_0x4ca9da[_0x47b4fa('0x1f2a')][_0x47b4fa('0x1393')]=(_0x4ca9da['query'][_0x47b4fa('0x1c2')]-0x1)*_0x4ca9da[_0x47b4fa('0x1f2a')][_0x47b4fa('0xd5c')],_0x2221c2[_0x47b4fa('0x4ee')](_0x47b4fa('0xf45'))?_0x4ca9da['promise']=_0x1adb32[_0x47b4fa('0x1955')][_0x47b4fa('0xbaa')](_0x4ca9da['query'],_0x4ea514)['$promise']:(_0x4ca9da['query']['id']=_0x4ca9da['userProfile']['id'],_0x4ca9da[_0x47b4fa('0x1f2a')][_0x47b4fa('0xe6')]=_0x47b4fa('0xbe4'),_0x4ca9da[_0x47b4fa('0x13f')]=_0x1adb32['userProfile'][_0x47b4fa('0x228e')](_0x4ca9da[_0x47b4fa('0x1f2a')],_0x4ea514)[_0x47b4fa('0x1549')]);}function _0x45aef1(_0x344c9a,_0x212a4b){const _0x2488c4=_0x348a6d;_0x32dda3['show']({'controller':_0x2488c4('0x11ab'),'controllerAs':'vm','templateUrl':_0x5bc8b8,'parent':angular[_0x2488c4('0x1e73')](_0x51858a[_0x2488c4('0x1d2')]),'targetEvent':_0x344c9a,'clickOutsideToClose':!![],'locals':{'vtigerAccount':_0x212a4b,'vtigerAccounts':_0x4ca9da[_0x2488c4('0x232d')][_0x2488c4('0x19b2')],'license':_0x4ca9da[_0x2488c4('0x17ff')],'setting':_0x4ca9da[_0x2488c4('0x23e1')],'crudPermissions':_0x4ca9da[_0x2488c4('0xb25')]}});}function _0x248d53(_0x10ff68){const _0x28596b=_0x348a6d;_0x1adb32[_0x28596b('0x1955')][_0x28596b('0x2088')]({'id':_0x10ff68['id']})['$promise'][_0x28596b('0x11bf')](function(){const _0x1d3725=_0x28596b;_0x36f548()[_0x1d3725('0x14a5')](_0x4ca9da['vtigerAccounts'][_0x1d3725('0x19b2')],{'id':_0x10ff68['id']}),_0x4ca9da[_0x1d3725('0x232d')]['count']-=0x1,!_0x4ca9da[_0x1d3725('0x232d')][_0x1d3725('0x19b2')][_0x1d3725('0x1e22')]&&_0x4ca9da[_0x1d3725('0x1ad5')](),_0x4faa6d[_0x1d3725('0x2693')]({'title':_0x36f548()[_0x1d3725('0x13cf')]('VtigerAccount')+_0x1d3725('0x2113'),'msg':_0x10ff68['name']?_0x10ff68[_0x1d3725('0x1909')]+_0x1d3725('0x433'):''});})[_0x28596b('0x151d')](function(_0x1df34c){const _0x2768e7=_0x28596b;if(_0x1df34c[_0x2768e7('0x4e8')]&&_0x1df34c['data'][_0x2768e7('0x120f')]&&_0x1df34c['data'][_0x2768e7('0x120f')][_0x2768e7('0x1e22')]){_0x4ca9da[_0x2768e7('0x120f')]=_0x1df34c[_0x2768e7('0x4e8')][_0x2768e7('0x120f')]||[{'message':_0x1df34c[_0x2768e7('0xaab')](),'type':_0x2768e7('0x1a7b')}];for(let _0x2f9387=0x0;_0x2f9387<_0x1df34c['data'][_0x2768e7('0x120f')][_0x2768e7('0x1e22')];_0x2f9387++){_0x4faa6d[_0x2768e7('0x255')]({'title':_0x1df34c[_0x2768e7('0x4e8')][_0x2768e7('0x120f')][_0x2f9387][_0x2768e7('0x19fd')],'msg':_0x1df34c[_0x2768e7('0x4e8')][_0x2768e7('0x120f')][_0x2f9387][_0x2768e7('0x1b86')]});}}else _0x4faa6d[_0x2768e7('0x255')]({'title':_0x1df34c[_0x2768e7('0xff9')]?'API:'+_0x1df34c[_0x2768e7('0xff9')]+'\x20-\x20'+_0x1df34c[_0x2768e7('0x212f')]:'SYSTEM:DELETEintVtigerAccount','msg':_0x1df34c['data']?JSON['stringify'](_0x1df34c['data'][_0x2768e7('0x1b86')]):_0x1df34c[_0x2768e7('0x1b86')]||_0x1df34c[_0x2768e7('0xaab')]()});});}function _0x5f4cfc(){const _0x4abb68=_0x348a6d,_0x3795a3=angular[_0x4abb68('0x6fb')](_0x4ca9da[_0x4abb68('0x1a85')]);return _0x4ca9da['selectedVtigerAccounts']=[],_0x3795a3;}function _0x574a81(_0x90d671){const _0x229eb6=_0x348a6d,_0x62c15f=_0x32dda3[_0x229eb6('0x132b')]()[_0x229eb6('0x134b')](_0x229eb6('0x1906'))[_0x229eb6('0x1d03')](''+_0x4ca9da[_0x229eb6('0x1a85')][_0x229eb6('0x1e22')]+_0x229eb6('0xac6')+_0x229eb6('0x1a'))[_0x229eb6('0xb2e')]('delete\x20VtigerAccounts')[_0x229eb6('0x1e25')](_0x90d671)['ok']('OK')[_0x229eb6('0x26c9')](_0x229eb6('0x772'));_0x32dda3[_0x229eb6('0xb9')](_0x62c15f)[_0x229eb6('0x11bf')](function(){const _0x260908=_0x229eb6;_0x4ca9da[_0x260908('0x1a85')][_0x260908('0x1f88')](function(_0xc247a1){_0x248d53(_0xc247a1);}),_0x4ca9da[_0x260908('0x1a85')]=[];});}function _0x26f765(){_0x4ca9da['selectedVtigerAccounts']=[];}function _0xd46e06(){const _0x56c97a=_0x348a6d;_0x4ca9da['selectedVtigerAccounts']=_0x4ca9da[_0x56c97a('0x232d')][_0x56c97a('0x19b2')];}}const _0x41a58f=_0x119c49;_0x7ac68c[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0xcbc'),_0x21d0f5('0x16b9'),_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0xb6b'),'toasty',_0x21d0f5('0x845'),'zendeskAccount',_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),_0x21d0f5('0x17ff'),'setting',_0x21d0f5('0xb25')];function _0x7ac68c(_0x1fd418,_0xe6228b,_0xc1ff2a,_0x429f78,_0xc050db,_0x2468ca,_0x388828,_0x1a56b1,_0x11fd9c,_0x572508,_0x1253c7,_0x2051e7,_0x563519,_0x5ae924){const _0x44ef0d=_0x21d0f5,_0x2c4169=this;_0x2c4169[_0x44ef0d('0x32a')]=_0x1253c7[_0x44ef0d('0x2428')](),_0x2c4169[_0x44ef0d('0x120f')]=[],_0x2c4169[_0x44ef0d('0x23e1')]=_0x563519,_0x2c4169['license']=_0x2051e7,_0x2c4169['crudPermissions']=_0x5ae924,_0x2c4169[_0x44ef0d('0x2c9')]={},_0x2c4169[_0x44ef0d('0x2834')]=_0x2c4169[_0x44ef0d('0x23e1')]&&_0x2c4169[_0x44ef0d('0x23e1')][_0x44ef0d('0x1d4')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2c4169['title']=_0x44ef0d('0x2646'),_0x2c4169[_0x44ef0d('0x14f5')]=angular['copy'](_0x11fd9c),_0x2c4169[_0x44ef0d('0x845')]=_0x1a56b1,_0x2c4169[_0x44ef0d('0xcd8')]=![];!_0x2c4169[_0x44ef0d('0x14f5')]&&(_0x2c4169[_0x44ef0d('0x14f5')]={'type':_0x44ef0d('0xd41'),'authType':_0x44ef0d('0x74'),'serverUrl':_0xc1ff2a['protocol']()+_0x44ef0d('0x16a1')+_0xc1ff2a[_0x44ef0d('0x14ec')]()+(_0xc1ff2a[_0x44ef0d('0x235b')]()?':'+_0xc1ff2a[_0x44ef0d('0x235b')]():'')},_0x2c4169[_0x44ef0d('0x134b')]=_0x44ef0d('0x17cb'),_0x2c4169[_0x44ef0d('0xcd8')]=!![]);_0x2c4169[_0x44ef0d('0x705')]=_0x6f2ead,_0x2c4169[_0x44ef0d('0x1a36')]=_0x43ebe8,_0x2c4169['deleteZendeskAccount']=_0x3ad964,_0x2c4169['getDateFromString']=_0x470485,_0x2c4169[_0x44ef0d('0xc4e')]=_0x944c74;function _0x6f2ead(){const _0x2d6d98=_0x44ef0d;_0x2c4169[_0x2d6d98('0x120f')]=[],_0x572508[_0x2d6d98('0x27f2')][_0x2d6d98('0x259')](_0x2c4169['zendeskAccount'])['$promise'][_0x2d6d98('0x11bf')](function(_0x1b37cb){const _0x4e3a9b=_0x2d6d98;_0x2c4169[_0x4e3a9b('0x845')]['unshift'](_0x1b37cb[_0x4e3a9b('0x2866')]()),_0x388828[_0x4e3a9b('0x2693')]({'title':_0x4e3a9b('0x1e8b'),'msg':_0x2c4169[_0x4e3a9b('0x14f5')][_0x4e3a9b('0x1909')]?_0x2c4169['zendeskAccount']['name']+'\x20has\x20been\x20created!':''}),_0x944c74(_0x1b37cb);})['catch'](function(_0x4bc891){const _0x19c3a7=_0x2d6d98;if(_0x4bc891[_0x19c3a7('0x4e8')]&&_0x4bc891[_0x19c3a7('0x4e8')]['errors']&&_0x4bc891['data'][_0x19c3a7('0x120f')][_0x19c3a7('0x1e22')]){_0x2c4169[_0x19c3a7('0x120f')]=_0x4bc891[_0x19c3a7('0x4e8')][_0x19c3a7('0x120f')]||[{'message':_0x4bc891[_0x19c3a7('0xaab')](),'type':_0x19c3a7('0x13')}];for(let _0x5570f3=0x0;_0x5570f3<_0x4bc891[_0x19c3a7('0x4e8')][_0x19c3a7('0x120f')][_0x19c3a7('0x1e22')];_0x5570f3+=0x1){_0x388828[_0x19c3a7('0x255')]({'title':_0x4bc891[_0x19c3a7('0x4e8')][_0x19c3a7('0x120f')][_0x5570f3]['type'],'msg':_0x4bc891[_0x19c3a7('0x4e8')][_0x19c3a7('0x120f')][_0x5570f3][_0x19c3a7('0x1b86')]});}}else _0x388828[_0x19c3a7('0x255')]({'title':_0x4bc891[_0x19c3a7('0xff9')]?'API:'+_0x4bc891['status']+_0x19c3a7('0xb0b')+_0x4bc891[_0x19c3a7('0x212f')]:_0x19c3a7('0x13'),'msg':_0x4bc891[_0x19c3a7('0x4e8')]?JSON['stringify'](_0x4bc891[_0x19c3a7('0x4e8')][_0x19c3a7('0x1b86')]):_0x4bc891['toString']()});});}function _0x43ebe8(){const _0x30cbb4=_0x44ef0d;_0x2c4169[_0x30cbb4('0x120f')]=[],_0x572508[_0x30cbb4('0x27f2')][_0x30cbb4('0x5ab')]({'id':_0x2c4169[_0x30cbb4('0x14f5')]['id']},_0x2c4169[_0x30cbb4('0x14f5')])['$promise']['then'](function(_0x2d2f71){const _0x4977aa=_0x30cbb4,_0x578ef0=_0x36f548()['find'](_0x2c4169[_0x4977aa('0x845')],{'id':_0x2d2f71['id']});_0x578ef0&&_0x36f548()[_0x4977aa('0x47b')](_0x578ef0,_0x36f548()[_0x4977aa('0x258')](_0x2d2f71[_0x4977aa('0x2866')](),_0x36f548()[_0x4977aa('0xe22')](_0x578ef0))),_0x388828['success']({'title':_0x4977aa('0x58a'),'msg':_0x2c4169[_0x4977aa('0x14f5')][_0x4977aa('0x1909')]?_0x2c4169[_0x4977aa('0x14f5')][_0x4977aa('0x1909')]+_0x4977aa('0x1a78'):''}),_0x944c74(_0x2d2f71);})[_0x30cbb4('0x151d')](function(_0xdaa35a){const _0x37ef75=_0x30cbb4;if(_0xdaa35a[_0x37ef75('0x4e8')]&&_0xdaa35a[_0x37ef75('0x4e8')][_0x37ef75('0x120f')]&&_0xdaa35a[_0x37ef75('0x4e8')][_0x37ef75('0x120f')][_0x37ef75('0x1e22')]){_0x2c4169['errors']=_0xdaa35a[_0x37ef75('0x4e8')]['errors']||[{'message':_0xdaa35a[_0x37ef75('0xaab')](),'type':'api.intZendeskAccount.update'}];for(let _0x5245c7=0x0;_0x5245c7<_0xdaa35a[_0x37ef75('0x4e8')][_0x37ef75('0x120f')][_0x37ef75('0x1e22')];_0x5245c7++){_0x388828[_0x37ef75('0x255')]({'title':_0xdaa35a[_0x37ef75('0x4e8')][_0x37ef75('0x120f')][_0x5245c7][_0x37ef75('0x19fd')],'msg':_0xdaa35a[_0x37ef75('0x4e8')][_0x37ef75('0x120f')][_0x5245c7][_0x37ef75('0x1b86')]});}}else _0x388828['error']({'title':_0xdaa35a[_0x37ef75('0xff9')]?_0x37ef75('0x574')+_0xdaa35a[_0x37ef75('0xff9')]+_0x37ef75('0xb0b')+_0xdaa35a[_0x37ef75('0x212f')]:_0x37ef75('0xf4d'),'msg':_0xdaa35a['data']?JSON[_0x37ef75('0x3e')](_0xdaa35a['data'][_0x37ef75('0x1b86')]):_0xdaa35a[_0x37ef75('0xaab')]()});});}function _0x3ad964(_0x3ae223){const _0x5802be=_0x44ef0d;_0x2c4169[_0x5802be('0x120f')]=[];const _0x4a3058=_0x429f78[_0x5802be('0x132b')]()[_0x5802be('0x134b')](_0x5802be('0x1fa9'))[_0x5802be('0x252a')](_0x5802be('0x1d4f'))[_0x5802be('0xb2e')](_0x5802be('0x27d0'))['ok']('Delete')[_0x5802be('0x26c9')](_0x5802be('0x784'))[_0x5802be('0x1e25')](_0x3ae223);_0x429f78[_0x5802be('0xb9')](_0x4a3058)[_0x5802be('0x11bf')](function(){const _0xfc1ff9=_0x5802be;_0x572508[_0xfc1ff9('0x27f2')][_0xfc1ff9('0x2088')]({'id':_0x2c4169[_0xfc1ff9('0x14f5')]['id']})[_0xfc1ff9('0x1549')][_0xfc1ff9('0x11bf')](function(){const _0x2baf68=_0xfc1ff9;_0x36f548()[_0x2baf68('0x14a5')](_0x2c4169['zendeskAccounts'],{'id':_0x2c4169['zendeskAccount']['id']}),_0x388828[_0x2baf68('0x2693')]({'title':_0x2baf68('0x2393'),'msg':(_0x2c4169['zendeskAccount'][_0x2baf68('0x1909')]||_0x2baf68('0x14f5'))+_0x2baf68('0x433')}),_0x944c74(_0x2c4169[_0x2baf68('0x14f5')]);})[_0xfc1ff9('0x151d')](function(_0x30c6e4){const _0x3ca4a3=_0xfc1ff9;if(_0x30c6e4[_0x3ca4a3('0x4e8')]&&_0x30c6e4[_0x3ca4a3('0x4e8')][_0x3ca4a3('0x120f')]&&_0x30c6e4[_0x3ca4a3('0x4e8')][_0x3ca4a3('0x120f')][_0x3ca4a3('0x1e22')]){_0x2c4169[_0x3ca4a3('0x120f')]=_0x30c6e4['data'][_0x3ca4a3('0x120f')]||[{'message':_0x30c6e4[_0x3ca4a3('0xaab')](),'type':'api.intZendeskAccount.delete'}];for(let _0x5e33d8=0x0;_0x5e33d8<_0x30c6e4[_0x3ca4a3('0x4e8')][_0x3ca4a3('0x120f')]['length'];_0x5e33d8++){_0x388828[_0x3ca4a3('0x255')]({'title':_0x30c6e4['data'][_0x3ca4a3('0x120f')][_0x5e33d8][_0x3ca4a3('0x19fd')],'msg':_0x30c6e4[_0x3ca4a3('0x4e8')][_0x3ca4a3('0x120f')][_0x5e33d8][_0x3ca4a3('0x1b86')]});}}else _0x388828[_0x3ca4a3('0x255')]({'title':_0x30c6e4[_0x3ca4a3('0xff9')]?_0x3ca4a3('0x574')+_0x30c6e4['status']+_0x3ca4a3('0xb0b')+_0x30c6e4['statusText']:_0x3ca4a3('0x2786'),'msg':_0x30c6e4[_0x3ca4a3('0x4e8')]?JSON[_0x3ca4a3('0x3e')](_0x30c6e4[_0x3ca4a3('0x4e8')][_0x3ca4a3('0x1b86')]):_0x30c6e4[_0x3ca4a3('0x1b86')]||_0x30c6e4[_0x3ca4a3('0xaab')]()});});},function(){});}function _0x470485(_0x3ba998){return _0x3ba998===null?undefined:new Date(_0x3ba998);}function _0x944c74(_0x1c14c8){_0x429f78['hide'](_0x1c14c8);}}const _0x1d1f3d=_0x7ac68c;_0x37cf4e[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0xcbc'),_0x21d0f5('0x16b9'),_0x21d0f5('0x1ca2'),'toasty','configuration',_0x21d0f5('0x22'),_0x21d0f5('0xa9c'),_0x21d0f5('0x2565'),_0x21d0f5('0x19fd'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),'crudPermissions'];function _0x37cf4e(_0x1c9a8f,_0x45625b,_0x43d93f,_0x4d06a6,_0x2233e6,_0x43dead,_0x505cf0,_0x222b74,_0x40f371,_0x55b44b,_0x16343d,_0x3b85f4,_0x4fad07){const _0x3266cb=_0x21d0f5,_0x2317fd=this;_0x2317fd[_0x3266cb('0x32a')]=_0x3b85f4['getCurrentUser'](),_0x2317fd[_0x3266cb('0x120f')]=[],_0x2317fd[_0x3266cb('0x134b')]=_0x3266cb('0x1e35')+_0x36f548()[_0x3266cb('0x1a31')](_0x55b44b),_0x2317fd['item']=angular[_0x3266cb('0x6fb')](_0x222b74),_0x2317fd[_0x3266cb('0x22')]=_0x505cf0,_0x2317fd[_0x3266cb('0x19fd')]=_0x55b44b,_0x2317fd[_0x3266cb('0xb25')]=_0x4fad07,_0x2317fd[_0x3266cb('0x1f63')]=![];!_0x2317fd[_0x3266cb('0xa9c')]&&(_0x2317fd['item']={'type':_0x3266cb('0x2380')},_0x2317fd[_0x3266cb('0xa9c')][_0x36f548()[_0x3266cb('0x22c2')](_0x55b44b)+'Id']=_0x43dead['id'],_0x2317fd[_0x3266cb('0x134b')]=_0x3266cb('0x26b9')+_0x36f548()[_0x3266cb('0x1a31')](_0x55b44b),_0x2317fd[_0x3266cb('0x1f63')]=!![]);_0x2317fd['addNewItem']=_0x344aad,_0x2317fd[_0x3266cb('0x265e')]=_0x1e2878,_0x2317fd[_0x3266cb('0x2639')]=_0x47bc5c,_0x2317fd[_0x3266cb('0x6e1')]=_0x5d88c3,_0x2317fd['closeDialog']=_0xbb4fc2,_0x16343d[_0x3266cb('0xb0')]['get']({'nolimit':!![]})[_0x3266cb('0x1549')][_0x3266cb('0x11bf')](function(_0x4ac5a0){const _0x770af1=_0x3266cb;return _0x2317fd[_0x770af1('0x1700')]=_0x4ac5a0['rows']?_0x4ac5a0[_0x770af1('0x19b2')]:[],_0x16343d[_0x770af1('0x1313')][_0x770af1('0x19a5')]()[_0x770af1('0x1549')];})[_0x3266cb('0x11bf')](function(_0x1f64ed){const _0x47c37b=_0x3266cb;return _0x2317fd[_0x47c37b('0x1720')]=_0x36f548()[_0x47c37b('0x1271')](_0x36f548()[_0x47c37b('0xe22')](_0x1f64ed),['$promise',_0x47c37b('0x1619'),_0x47c37b('0x1779'),'updatedAt','sourceid']),_0x2317fd[_0x47c37b('0x1720')][_0x47c37b('0x105d')]('recordingURL'),_0x16343d[_0x47c37b('0x14fc')][_0x47c37b('0x19a5')]()[_0x47c37b('0x1549')];})[_0x3266cb('0x11bf')](function(_0x32cee2){const _0x1d11c7=_0x3266cb;_0x2317fd[_0x1d11c7('0x77c')]=_0x36f548()[_0x1d11c7('0x1271')](_0x36f548()[_0x1d11c7('0xe22')](_0x32cee2),[_0x1d11c7('0x1549'),_0x1d11c7('0x1619'),'createdAt','updatedAt',_0x1d11c7('0x14b4')]),_0x2317fd[_0x1d11c7('0x77c')][_0x1d11c7('0x105d')](_0x1d11c7('0xbf8'));})[_0x3266cb('0x151d')](function(_0x4dafd5){const _0x105e6d=_0x3266cb;_0x2233e6[_0x105e6d('0x255')]({'title':_0x4dafd5[_0x105e6d('0xff9')]?_0x105e6d('0x574')+_0x4dafd5[_0x105e6d('0xff9')]+_0x105e6d('0xb0b')+_0x4dafd5['statusText']:'SYSTEM:GETVARIABLES','msg':_0x4dafd5[_0x105e6d('0x4e8')]?JSON['stringify'](_0x4dafd5[_0x105e6d('0x4e8')]):_0x4dafd5[_0x105e6d('0xaab')]()});}),_0x16343d[_0x3266cb('0x27f2')][_0x3266cb('0x8ff')]({'id':_0x40f371['id'],'ticketType':_0x43dead['ticketType']?_0x43dead[_0x3266cb('0x1bd2')]:undefined})[_0x3266cb('0x1549')][_0x3266cb('0x11bf')](function(_0x1f26f2){const _0x4a3301=_0x3266cb;_0x2317fd['accountConnected']=!![],_0x2317fd['fields']=_0x1f26f2[_0x4a3301('0x19b2')]?_0x1f26f2[_0x4a3301('0x19b2')]:[],_0x2317fd['item'][_0x4a3301('0x223a')]&&(_0x2317fd['customField']=_0x36f548()['find'](_0x2317fd[_0x4a3301('0x1067')],{'id':_0x2317fd[_0x4a3301('0xa9c')][_0x4a3301('0x223a')]}));})[_0x3266cb('0x151d')](function(_0x37d1b){const _0x34e247=_0x3266cb;_0x2317fd[_0x34e247('0xf69')]=![],console[_0x34e247('0x255')](_0x37d1b);});function _0x344aad(){const _0x1d5f4a=_0x3266cb;_0x2317fd[_0x1d5f4a('0x120f')]=[],_0x2317fd[_0x1d5f4a('0x2830')]&&(_0x2317fd['item'][_0x1d5f4a('0x223a')]=_0x2317fd['customField']['id'],_0x2317fd[_0x1d5f4a('0xa9c')][_0x1d5f4a('0x1992')]=_0x2317fd['customField'][_0x1d5f4a('0x1909')],_0x2317fd[_0x1d5f4a('0xa9c')]['customField']=_0x2317fd[_0x1d5f4a('0x2830')][_0x1d5f4a('0xa8d')]),_0x16343d[_0x1d5f4a('0x1d04')]['save'](_0x2317fd[_0x1d5f4a('0xa9c')])['$promise'][_0x1d5f4a('0x11bf')](function(_0x25a0c7){const _0x108e24=_0x1d5f4a;_0x2317fd[_0x108e24('0x22')][_0x108e24('0x880')](_0x25a0c7),_0x2233e6[_0x108e24('0x2693')]({'title':_0x36f548()[_0x108e24('0x22c2')](_0x55b44b)+_0x108e24('0x1c0e'),'msg':_0x36f548()[_0x108e24('0x22c2')](_0x55b44b)+_0x108e24('0x7fb')}),_0xbb4fc2();})[_0x1d5f4a('0x151d')](function(_0x119078){const _0x1777ab=_0x1d5f4a;console[_0x1777ab('0x255')](_0x119078),_0x2317fd['errors']=_0x119078[_0x1777ab('0x4e8')][_0x1777ab('0x120f')]||[{'message':_0x119078['toString'](),'type':_0x1777ab('0x20a1')}];});}function _0x1e2878(){const _0x517c33=_0x3266cb;_0x2317fd[_0x517c33('0x120f')]=[],_0x2317fd[_0x517c33('0x2830')]&&(_0x2317fd['item'][_0x517c33('0x223a')]=_0x2317fd[_0x517c33('0x2830')]['id'],_0x2317fd[_0x517c33('0xa9c')][_0x517c33('0x1992')]=_0x2317fd[_0x517c33('0x2830')]['name'],_0x2317fd['item'][_0x517c33('0x2830')]=_0x2317fd['customField'][_0x517c33('0xa8d')]),_0x16343d['intZendeskField'][_0x517c33('0x5ab')]({'id':_0x2317fd[_0x517c33('0xa9c')]['id']},_0x2317fd[_0x517c33('0xa9c')])['$promise'][_0x517c33('0x11bf')](function(_0x2b6235){const _0x322ed2=_0x517c33,_0x10fb0b=_0x36f548()['find'](_0x2317fd[_0x322ed2('0x22')],{'id':_0x2b6235['id']});_0x10fb0b&&_0x36f548()[_0x322ed2('0x47b')](_0x10fb0b,_0x2b6235),_0x2233e6[_0x322ed2('0x2693')]({'title':_0x36f548()[_0x322ed2('0x22c2')](_0x55b44b)+'\x20properly\x20saved!','msg':_0x36f548()[_0x322ed2('0x22c2')](_0x55b44b)+'\x20has\x20been\x20saved!'}),_0xbb4fc2();})[_0x517c33('0x151d')](function(_0x4b0347){const _0x31441c=_0x517c33;console[_0x31441c('0x255')](_0x4b0347),_0x2317fd['errors']=_0x4b0347['data']['errors']||[{'message':_0x4b0347[_0x31441c('0xaab')](),'type':_0x31441c('0xbab')}];});}function _0x47bc5c(_0x4d9029){const _0x34de01=_0x3266cb;_0x2317fd[_0x34de01('0x120f')]=[];const _0x5b13e3=_0x4d06a6[_0x34de01('0x132b')]()[_0x34de01('0x134b')]('Are\x20you\x20sure?')[_0x34de01('0x252a')](_0x34de01('0x2155')+_0x55b44b+_0x34de01('0x1a'))['ariaLabel'](_0x34de01('0x13ea')+_0x36f548()[_0x34de01('0x22c2')](_0x55b44b))['ok']('Delete')[_0x34de01('0x26c9')](_0x34de01('0x784'))['targetEvent'](_0x4d9029);_0x4d06a6[_0x34de01('0xb9')](_0x5b13e3)[_0x34de01('0x11bf')](function(){const _0xe47fa9=_0x34de01;_0x16343d[_0xe47fa9('0x1d04')][_0xe47fa9('0x2088')]({'id':_0x2317fd[_0xe47fa9('0xa9c')]['id']})['$promise'][_0xe47fa9('0x11bf')](function(){const _0x1ff3d1=_0xe47fa9;_0x36f548()[_0x1ff3d1('0x14a5')](_0x2317fd[_0x1ff3d1('0x22')],{'id':_0x2317fd['item']['id']}),_0x2233e6[_0x1ff3d1('0x2693')]({'title':_0x36f548()[_0x1ff3d1('0x22c2')](_0x55b44b)+_0x1ff3d1('0x12bc'),'msg':_0x36f548()[_0x1ff3d1('0x22c2')](_0x55b44b)+_0x1ff3d1('0x433')}),_0xbb4fc2();})[_0xe47fa9('0x151d')](function(_0x1acef4){const _0x3b0a83=_0xe47fa9;console[_0x3b0a83('0x255')](_0x1acef4),_0x2317fd[_0x3b0a83('0x120f')]=_0x1acef4[_0x3b0a83('0x4e8')][_0x3b0a83('0x120f')]||[{'message':_0x1acef4[_0x3b0a83('0xaab')](),'type':_0x3b0a83('0x20f0')}];});},function(){});}function _0x5d88c3(){const _0x1a4294=_0x3266cb;return _0x2317fd[_0x1a4294('0xa9c')][_0x1a4294('0x209e')]!==undefined?_0x2317fd[_0x1a4294('0xa9c')][_0x1a4294('0x209e')]:_0x1a4294('0xbc2');}function _0xbb4fc2(){const _0xd446e9=_0x3266cb;_0x4d06a6[_0xd446e9('0x237e')]();}}const _0x4cdc99=_0x37cf4e;_0x12909a[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0xcbc'),'$location',_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),_0x21d0f5('0xb6b'),_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1'),_0x21d0f5('0x12a5'),'toasty','Auth',_0x21d0f5('0x14f5'),_0x21d0f5('0x1d63')];function _0x12909a(_0x5b1b56,_0xb849b,_0xa266e2,_0x2b1195,_0x337931,_0x497023,_0x68a7a5,_0x3f735a,_0x591841,_0x2b84ba,_0x44ca1d,_0x2260ec){const _0x842a7b=_0x21d0f5,_0x2d87a9=this;_0x2d87a9[_0x842a7b('0x32a')]=_0x2b84ba[_0x842a7b('0x2428')](),_0x2d87a9[_0x842a7b('0x17ff')]=_0x497023,_0x2d87a9['setting']=_0x68a7a5,_0x2d87a9[_0x842a7b('0x2834')]=_0x2d87a9[_0x842a7b('0x23e1')][_0x842a7b('0x1d4')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2d87a9[_0x842a7b('0x1d9a')]=_0xb849b[_0x842a7b('0x1797')]()+_0x842a7b('0x16a1')+_0xb849b['host'](),_0x2d87a9[_0x842a7b('0x14f5')]=_0x44ca1d||_0x5b1b56[_0x842a7b('0x1ab3')][_0x842a7b('0x14f5')]||{},_0x2d87a9['userProfileSection']=_0x2260ec&&_0x2260ec[_0x842a7b('0x27d2')]==0x1?_0x2260ec['rows'][0x0]:null,_0x2d87a9[_0x842a7b('0xb25')]=_0x2b84ba[_0x842a7b('0x1530')](_0x2d87a9[_0x842a7b('0x1d63')]?_0x2d87a9['userProfileSection']['crudPermissions']:null),_0x2d87a9[_0x842a7b('0x2c9')]={},_0x2d87a9[_0x842a7b('0x1179')]=_0x5b1b56[_0x842a7b('0x1ab3')][_0x842a7b('0x205c')]||0x0,_0x2d87a9[_0x842a7b('0xb30')]=_0x591841[_0x842a7b('0x870')],_0x2d87a9[_0x842a7b('0x201')]=_0xf111f8,_0x2d87a9['saveZendeskAccount']=_0x5f09b8;function _0xf111f8(){const _0x3e938b=_0x842a7b;_0x5b1b56['go'](_0x3e938b('0x59b'),{},{'reload':_0x3e938b('0x59b')});}function _0x5f09b8(){const _0x3632c9=_0x842a7b;_0x3f735a[_0x3632c9('0x27f2')][_0x3632c9('0x5ab')]({'id':_0x2d87a9[_0x3632c9('0x14f5')]['id']},_0x2d87a9['zendeskAccount'])[_0x3632c9('0x1549')]['then'](function(){const _0x1d9204=_0x3632c9;_0x591841[_0x1d9204('0x2693')]({'title':_0x1d9204('0x22e4'),'msg':_0x2d87a9[_0x1d9204('0x14f5')][_0x1d9204('0x1909')]?_0x2d87a9[_0x1d9204('0x14f5')]['name']+'\x20has\x20been\x20updated!':''});})[_0x3632c9('0x151d')](function(_0x118d13){const _0x1bcf2d=_0x3632c9;_0x591841[_0x1bcf2d('0x255')]({'title':_0x118d13[_0x1bcf2d('0xff9')]?_0x1bcf2d('0x574')+_0x118d13[_0x1bcf2d('0xff9')]+'\x20-\x20'+_0x118d13[_0x1bcf2d('0x212f')]:_0x1bcf2d('0x1163'),'msg':_0x118d13[_0x1bcf2d('0x4e8')]?JSON[_0x1bcf2d('0x3e')](_0x118d13[_0x1bcf2d('0x4e8')]):_0x118d13[_0x1bcf2d('0xaab')]()});});}}const _0x94874=_0x12909a,_0x397129=_0x351988['p']+_0x21d0f5('0x21d'),_0x19c9cd=_0x351988['p']+_0x21d0f5('0xcf4');_0x185ddf[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),_0x21d0f5('0x12a5'),_0x21d0f5('0x142d'),'Auth'];function _0x185ddf(_0x477722,_0x8018d,_0x139fd1,_0x24d15e,_0x3a12c1){const _0x43d3e8=_0x21d0f5,_0x4c09ee=this;_0x4c09ee[_0x43d3e8('0x32a')]=_0x3a12c1[_0x43d3e8('0x2428')](),_0x4c09ee[_0x43d3e8('0x14f5')]={},_0x4c09ee[_0x43d3e8('0x1a94')]={},_0x4c09ee[_0x43d3e8('0x414')]=[],_0x4c09ee['selectedZendeskConfiguration']=-0x1,_0x4c09ee['crudPermissions'],_0x4c09ee[_0x43d3e8('0x286f')]=_0x4c0781,_0x4c09ee[_0x43d3e8('0x1402')]=_0xac9025,_0x4c09ee[_0x43d3e8('0x23d8')]=_0x151a7f,_0x4c09ee[_0x43d3e8('0x11e')]=_0x4abbdb,_0x4c09ee['selectedTags']=[],_0x4c09ee[_0x43d3e8('0x974')]=_0xbd4e1,_0x139fd1[_0x43d3e8('0x1d73')][_0x43d3e8('0xbaa')]({'nolimit':!![],'sort':_0x43d3e8('0x1909')})[_0x43d3e8('0x1549')][_0x43d3e8('0x11bf')](function(_0x2d610a){const _0x49d155=_0x43d3e8;_0x4c09ee[_0x49d155('0x2763')]=_0x2d610a['rows']?_0x2d610a['rows']:[];})[_0x43d3e8('0x151d')](function(_0x152164){const _0x258feb=_0x43d3e8;_0x24d15e[_0x258feb('0x255')]({'title':_0x152164[_0x258feb('0xff9')]?_0x258feb('0x574')+_0x152164[_0x258feb('0xff9')]+_0x258feb('0xb0b')+_0x152164['statusText']:_0x258feb('0x24ee'),'msg':_0x152164['data']?JSON[_0x258feb('0x3e')](_0x152164['data']):_0x152164[_0x258feb('0xaab')]()});});function _0xbd4e1(){const _0x5f3ead=_0x43d3e8;_0x139fd1['intZendeskConfiguration'][_0x5f3ead('0x12c4')]({'id':_0x4c09ee[_0x5f3ead('0x1a94')]['id'],'ids':_0x4c09ee[_0x5f3ead('0xd11')]})['$promise'][_0x5f3ead('0x11bf')](function(){const _0xcde3b4=_0x5f3ead;_0x24d15e['success']({'title':_0xcde3b4('0x1acc'),'msg':_0xcde3b4('0x49')});})['catch'](function(_0x213683){const _0x575aaf=_0x5f3ead;_0x24d15e['error']({'title':_0x213683[_0x575aaf('0xff9')]?'API:'+_0x213683[_0x575aaf('0xff9')]+_0x575aaf('0xb0b')+_0x213683['statusText']:_0x575aaf('0x20'),'msg':_0x213683[_0x575aaf('0x4e8')]?JSON['stringify'](_0x213683[_0x575aaf('0x4e8')]):_0x213683['toString']()});});}function _0x4c0781(_0x2ce783,_0x4bee20){const _0x2d8a1e=_0x43d3e8;_0x4c09ee[_0x2d8a1e('0x14f5')]=_0x2ce783,_0x4c09ee[_0x2d8a1e('0xb25')]=typeof _0x4bee20!=='undefined'?_0x4bee20:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x139fd1[_0x2d8a1e('0x27f2')][_0x2d8a1e('0x26af')]({'id':_0x4c09ee[_0x2d8a1e('0x14f5')]['id'],'sort':_0x2d8a1e('0x1c74')})['$promise']['then'](function(_0x5ece7e){const _0x2e386a=_0x2d8a1e;return _0x4c09ee['zendeskConfigurations']=_0x5ece7e['rows']?_0x5ece7e[_0x2e386a('0x19b2')]:[],_0x4c09ee['zendeskConfigurations'][_0x2e386a('0x1e22')]&&_0x4c09ee['getZendeskConfiguration'](0x0),_0x139fd1[_0x2e386a('0xb0')][_0x2e386a('0xbaa')]({'nolimit':!![],'sort':_0x2e386a('0x1909')})[_0x2e386a('0x1549')];})['then'](function(_0xc69970){const _0x341c63=_0x2d8a1e;_0x4c09ee[_0x341c63('0x1700')]=_0xc69970[_0x341c63('0x19b2')]?_0xc69970['rows']:[],_0x4c09ee[_0x341c63('0x90')]=_0x36f548()[_0x341c63('0x2130')](_0x4c09ee[_0x341c63('0x1700')],'id');})[_0x2d8a1e('0x151d')](function(_0x54c38e){const _0x2c6e6d=_0x2d8a1e;_0x24d15e['error']({'title':_0x54c38e[_0x2c6e6d('0xff9')]?'API:'+_0x54c38e[_0x2c6e6d('0xff9')]+_0x2c6e6d('0xb0b')+_0x54c38e[_0x2c6e6d('0x212f')]:_0x2c6e6d('0x2752'),'msg':_0x54c38e[_0x2c6e6d('0x4e8')]?JSON[_0x2c6e6d('0x3e')](_0x54c38e[_0x2c6e6d('0x4e8')]):_0x54c38e[_0x2c6e6d('0xaab')]()});});}function _0xac9025(_0x35cc94){const _0x51bd67=_0x43d3e8;_0x4c09ee[_0x51bd67('0x1a94')]=_0x4c09ee[_0x51bd67('0x414')][_0x35cc94],_0x4c09ee[_0x51bd67('0xe1c')]=_0x35cc94,_0x139fd1[_0x51bd67('0x616')][_0x51bd67('0xace')]({'id':_0x4c09ee[_0x51bd67('0x1a94')]['id']})['$promise']['then'](function(_0x3bcebe){const _0x5a4b3e=_0x51bd67;return _0x4c09ee[_0x5a4b3e('0x1318')]=_0x3bcebe['rows']?_0x3bcebe[_0x5a4b3e('0x19b2')]:[],_0x139fd1[_0x5a4b3e('0x616')][_0x5a4b3e('0x20e8')]({'id':_0x4c09ee['zendeskConfiguration']['id']})['$promise'];})[_0x51bd67('0x11bf')](function(_0x5a7a65){const _0x2c3dfc=_0x51bd67;return _0x4c09ee['descriptions']=_0x5a7a65[_0x2c3dfc('0x19b2')]?_0x5a7a65[_0x2c3dfc('0x19b2')]:[],_0x139fd1[_0x2c3dfc('0x616')][_0x2c3dfc('0x8ff')]({'id':_0x4c09ee[_0x2c3dfc('0x1a94')]['id']})[_0x2c3dfc('0x1549')];})['then'](function(_0x5d9c66){const _0x49d3c6=_0x51bd67;_0x4c09ee[_0x49d3c6('0x1067')]=_0x5d9c66[_0x49d3c6('0x19b2')]?_0x5d9c66[_0x49d3c6('0x19b2')]:[];})['catch'](function(_0x4ccff4){const _0x243b07=_0x51bd67;_0x24d15e[_0x243b07('0x255')]({'title':_0x4ccff4[_0x243b07('0xff9')]?'API:'+_0x4ccff4[_0x243b07('0xff9')]+_0x243b07('0xb0b')+_0x4ccff4['statusText']:'SYSTEM:GETConfigurations','msg':_0x4ccff4[_0x243b07('0x4e8')]?JSON[_0x243b07('0x3e')](_0x4ccff4[_0x243b07('0x4e8')]):_0x4ccff4['toString']()});}),_0x139fd1[_0x51bd67('0x616')][_0x51bd67('0x2129')]({'id':_0x4c09ee[_0x51bd67('0x1a94')]['id']})[_0x51bd67('0x1549')][_0x51bd67('0x11bf')](function(_0x28fb9a){const _0x226027=_0x51bd67;_0x4c09ee[_0x226027('0xd11')]=_0x28fb9a[_0x226027('0x19b2')]?_0x36f548()[_0x226027('0x2171')](_0x28fb9a['rows'],'id'):[];})[_0x51bd67('0x151d')](function(_0x5ba3c4){const _0xcb3369=_0x51bd67;_0x24d15e['error']({'title':_0x5ba3c4[_0xcb3369('0xff9')]?_0xcb3369('0x574')+_0x5ba3c4['status']+_0xcb3369('0xb0b')+_0x5ba3c4[_0xcb3369('0x212f')]:'SYSTEM:GETTAGS','msg':_0x5ba3c4[_0xcb3369('0x4e8')]?JSON[_0xcb3369('0x3e')](_0x5ba3c4[_0xcb3369('0x4e8')]):_0x5ba3c4[_0xcb3369('0xaab')]()});});}function _0x151a7f(_0x4f01e8,_0x1ea302){const _0x17edac=_0x43d3e8;_0x477722[_0x17edac('0xb9')]({'controller':'CreateOrEditZendeskConfigurationDialogController','controllerAs':'vm','templateUrl':_0x397129,'parent':angular[_0x17edac('0x1e73')](_0x8018d[_0x17edac('0x1d2')]),'targetEvent':_0x4f01e8,'clickOutsideToClose':!![],'locals':{'zendeskConfiguration':_0x1ea302,'zendeskConfigurations':_0x4c09ee[_0x17edac('0x414')],'license':null,'setting':null,'crudPermissions':_0x4c09ee[_0x17edac('0xb25')]}})[_0x17edac('0xa9b')](function(){const _0x34cad4=_0x17edac;_0x4c09ee[_0x34cad4('0x1402')](0x0);});}function _0x4abbdb(_0x2947d4,_0x2ac823){const _0x59f59a=_0x43d3e8,_0xfff619=_0x477722[_0x59f59a('0x132b')]()[_0x59f59a('0x134b')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20zendeskConfiguration?')[_0x59f59a('0x1d03')](_0x59f59a('0x2061')+(_0x2ac823[_0x59f59a('0x1909')]||'zendeskConfiguration')+_0x59f59a('0x1c78')+_0x59f59a('0x1a'))[_0x59f59a('0xb2e')]('delete\x20zendeskConfiguration')['targetEvent'](_0x2947d4)['ok']('OK')['cancel'](_0x59f59a('0x772'));_0x477722[_0x59f59a('0xb9')](_0xfff619)[_0x59f59a('0x11bf')](function(){const _0x31a6bc=_0x59f59a;_0x139fd1['intZendeskConfiguration'][_0x31a6bc('0x2088')]({'id':_0x2ac823['id']})[_0x31a6bc('0x1549')][_0x31a6bc('0x11bf')](function(){const _0x158437=_0x31a6bc;_0x36f548()[_0x158437('0x14a5')](_0x4c09ee[_0x158437('0x414')],{'id':_0x2ac823['id']}),_0x24d15e['success']({'title':_0x158437('0x710'),'msg':_0x2ac823[_0x158437('0x1909')]?_0x2ac823['name']+'\x20has\x20been\x20deleted!':''});})[_0x31a6bc('0x151d')](function(_0x4bb0dc){const _0x41744d=_0x31a6bc;_0x24d15e['error']({'title':_0x4bb0dc['status']?_0x41744d('0x574')+_0x4bb0dc[_0x41744d('0xff9')]+_0x41744d('0xb0b')+_0x4bb0dc[_0x41744d('0x212f')]:_0x41744d('0x15ea'),'msg':_0x4bb0dc['data']?JSON[_0x41744d('0x3e')](_0x4bb0dc[_0x41744d('0x4e8')]):_0x4bb0dc[_0x41744d('0xaab')]()});})['finally'](function(){_0x4c09ee['getZendeskConfiguration'](0x0);});},function(){const _0x22ac73=_0x59f59a;console[_0x22ac73('0xc78')]('CANCEL');});}_0x4c09ee['selectedSubjects']=[],_0x4c09ee[_0x43d3e8('0x1ec8')]=_0x4c07d4,_0x4c09ee[_0x43d3e8('0x14ae')]=_0x18ee72,_0x4c09ee['deleteSelectedSubjects']=_0x3bb252;function _0x4c07d4(_0x28821d,_0x23a6ba){const _0xf7e5ea=_0x43d3e8;_0x477722[_0xf7e5ea('0xb9')]({'controller':'CreateOrEditZendeskAccountItemDialogController','controllerAs':'vm','templateUrl':_0x19c9cd,'parent':angular[_0xf7e5ea('0x1e73')](_0x8018d[_0xf7e5ea('0x1d2')]),'targetEvent':_0x28821d,'clickOutsideToClose':!![],'locals':{'type':_0xf7e5ea('0x20eb'),'item':_0x23a6ba,'items':_0x4c09ee['subjects'],'configuration':_0x4c09ee[_0xf7e5ea('0x1a94')],'account':_0x4c09ee[_0xf7e5ea('0x14f5')],'license':null,'setting':null,'crudPermissions':_0x4c09ee[_0xf7e5ea('0xb25')]}});}function _0x301a36(_0x3a4d79){const _0x228d29=_0x43d3e8;_0x139fd1['intZendeskField'][_0x228d29('0x2088')]({'id':_0x3a4d79['id']})['$promise'][_0x228d29('0x11bf')](function(){const _0x13c4d9=_0x228d29;_0x36f548()[_0x13c4d9('0x14a5')](_0x4c09ee[_0x13c4d9('0x1318')],{'id':_0x3a4d79['id']}),_0x24d15e[_0x13c4d9('0x2693')]({'title':_0x13c4d9('0x1845'),'msg':'Subject\x20has\x20been\x20deleted!'});})[_0x228d29('0x151d')](function(_0x1e2448){const _0x3c9330=_0x228d29;_0x24d15e[_0x3c9330('0x255')]({'title':_0x1e2448[_0x3c9330('0xff9')]?_0x3c9330('0x574')+_0x1e2448[_0x3c9330('0xff9')]+'\x20-\x20'+_0x1e2448[_0x3c9330('0x212f')]:'SYSTEM:DELETECONFIGURATIONFIELD','msg':_0x1e2448[_0x3c9330('0x4e8')]?JSON['stringify'](_0x1e2448[_0x3c9330('0x4e8')]):_0x1e2448[_0x3c9330('0xaab')]()});});}function _0x18ee72(_0xbb45e0,_0x4ddf67){const _0x407b55=_0x43d3e8,_0x5795fa=_0x477722['confirm']()[_0x407b55('0x134b')](_0x407b55('0x98e'))[_0x407b55('0x1d03')](_0x407b55('0xb46')+_0x407b55('0x1a'))[_0x407b55('0xb2e')](_0x407b55('0x259c'))[_0x407b55('0x1e25')](_0xbb45e0)['ok']('OK')[_0x407b55('0x26c9')](_0x407b55('0x772'));_0x477722[_0x407b55('0xb9')](_0x5795fa)[_0x407b55('0x11bf')](function(){_0x301a36(_0x4ddf67);},function(){const _0x4135d6=_0x407b55;console[_0x4135d6('0xc78')](_0x4135d6('0x772'));});}function _0x3bb252(_0x2e451d){const _0x41d18f=_0x43d3e8,_0x17b099=_0x477722['confirm']()['title'](_0x41d18f('0x188d'))['htmlContent'](_0x41d18f('0x2061')+_0x4c09ee[_0x41d18f('0x1151')]['length']+_0x41d18f('0xac6')+_0x41d18f('0x1a'))['ariaLabel'](_0x41d18f('0x1c7c'))[_0x41d18f('0x1e25')](_0x2e451d)['ok']('OK')['cancel'](_0x41d18f('0x772'));_0x477722[_0x41d18f('0xb9')](_0x17b099)[_0x41d18f('0x11bf')](function(){const _0xccdef3=_0x41d18f;_0x4c09ee['selectedSubjects'][_0xccdef3('0x1f88')](function(_0x8a049b){_0x301a36(_0x8a049b);}),_0x4c09ee['selectedSubjects']=[];});}_0x4c09ee[_0x43d3e8('0x73f')]=[],_0x4c09ee[_0x43d3e8('0x25fe')]=_0x5dc46d,_0x4c09ee[_0x43d3e8('0x183b')]=_0x4c5da5,_0x4c09ee[_0x43d3e8('0x1a3e')]=_0x5742db;function _0x5dc46d(_0x570e63,_0x1e6311){const _0x325339=_0x43d3e8;_0x477722[_0x325339('0xb9')]({'controller':'CreateOrEditZendeskAccountItemDialogController','controllerAs':'vm','templateUrl':_0x19c9cd,'parent':angular[_0x325339('0x1e73')](_0x8018d[_0x325339('0x1d2')]),'targetEvent':_0x570e63,'clickOutsideToClose':!![],'locals':{'type':'description','item':_0x1e6311,'items':_0x4c09ee[_0x325339('0xe12')],'configuration':_0x4c09ee[_0x325339('0x1a94')],'account':_0x4c09ee['zendeskAccount'],'license':null,'setting':null,'crudPermissions':_0x4c09ee[_0x325339('0xb25')]}});}function _0x1bcac8(_0x3aef12){const _0x387221=_0x43d3e8;_0x139fd1['intZendeskField'][_0x387221('0x2088')]({'id':_0x3aef12['id']})[_0x387221('0x1549')]['then'](function(){const _0x5bf88c=_0x387221;_0x36f548()[_0x5bf88c('0x14a5')](_0x4c09ee[_0x5bf88c('0xe12')],{'id':_0x3aef12['id']}),_0x24d15e['success']({'title':'Description\x20deleted!','msg':_0x5bf88c('0x40e')});})['catch'](function(_0x414277){const _0x289737=_0x387221;_0x24d15e[_0x289737('0x255')]({'title':_0x414277[_0x289737('0xff9')]?_0x289737('0x574')+_0x414277['status']+_0x289737('0xb0b')+_0x414277['statusText']:_0x289737('0xc27'),'msg':_0x414277[_0x289737('0x4e8')]?JSON[_0x289737('0x3e')](_0x414277[_0x289737('0x4e8')]):_0x414277[_0x289737('0xaab')]()});});}function _0x4c5da5(_0x2c9162,_0xe98db9){const _0x7d9dc5=_0x43d3e8,_0x19eaa7=_0x477722['confirm']()[_0x7d9dc5('0x134b')](_0x7d9dc5('0x46b'))[_0x7d9dc5('0x1d03')]('Description'+_0x7d9dc5('0x1a'))[_0x7d9dc5('0xb2e')](_0x7d9dc5('0xd32'))[_0x7d9dc5('0x1e25')](_0x2c9162)['ok']('OK')[_0x7d9dc5('0x26c9')](_0x7d9dc5('0x772'));_0x477722[_0x7d9dc5('0xb9')](_0x19eaa7)['then'](function(){_0x1bcac8(_0xe98db9);},function(){const _0x58dae0=_0x7d9dc5;console[_0x58dae0('0xc78')](_0x58dae0('0x772'));});}function _0x5742db(_0x1549c6){const _0x56060e=_0x43d3e8,_0x5a4eb4=_0x477722[_0x56060e('0x132b')]()[_0x56060e('0x134b')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20descriptions?')[_0x56060e('0x1d03')](_0x56060e('0x2061')+_0x4c09ee[_0x56060e('0x73f')][_0x56060e('0x1e22')]+_0x56060e('0xac6')+_0x56060e('0x1a'))['ariaLabel']('delete\x20descriptions')[_0x56060e('0x1e25')](_0x1549c6)['ok']('OK')['cancel'](_0x56060e('0x772'));_0x477722['show'](_0x5a4eb4)[_0x56060e('0x11bf')](function(){const _0xebdebb=_0x56060e;_0x4c09ee[_0xebdebb('0x73f')][_0xebdebb('0x1f88')](function(_0x425898){_0x1bcac8(_0x425898);}),_0x4c09ee['selectedDescriptions']=[];});}_0x4c09ee[_0x43d3e8('0xfea')]=[],_0x4c09ee[_0x43d3e8('0x18be')]=_0x48de9f,_0x4c09ee[_0x43d3e8('0x21c9')]=_0x5e9a23,_0x4c09ee[_0x43d3e8('0xd20')]=_0xe379aa;function _0x48de9f(_0x5af5a9,_0x2ec7c5){const _0x45090c=_0x43d3e8;_0x477722[_0x45090c('0xb9')]({'controller':_0x45090c('0x2256'),'controllerAs':'vm','templateUrl':_0x19c9cd,'parent':angular[_0x45090c('0x1e73')](_0x8018d[_0x45090c('0x1d2')]),'targetEvent':_0x5af5a9,'clickOutsideToClose':!![],'locals':{'type':_0x45090c('0x485'),'item':_0x2ec7c5,'items':_0x4c09ee[_0x45090c('0x1067')],'configuration':_0x4c09ee[_0x45090c('0x1a94')],'account':_0x4c09ee[_0x45090c('0x14f5')],'license':null,'setting':null,'crudPermissions':_0x4c09ee['crudPermissions']}});}function _0xbc9c07(_0xa8b0ce){const _0x4ae44f=_0x43d3e8;_0x139fd1[_0x4ae44f('0x1d04')][_0x4ae44f('0x2088')]({'id':_0xa8b0ce['id']})[_0x4ae44f('0x1549')]['then'](function(){const _0x2dba33=_0x4ae44f;_0x36f548()[_0x2dba33('0x14a5')](_0x4c09ee[_0x2dba33('0x1067')],{'id':_0xa8b0ce['id']}),_0x24d15e['success']({'title':_0x2dba33('0x4da'),'msg':_0x2dba33('0x264f')});})[_0x4ae44f('0x151d')](function(_0x1407cd){const _0x194152=_0x4ae44f;_0x24d15e['error']({'title':_0x1407cd[_0x194152('0xff9')]?_0x194152('0x574')+_0x1407cd[_0x194152('0xff9')]+_0x194152('0xb0b')+_0x1407cd['statusText']:_0x194152('0xc27'),'msg':_0x1407cd[_0x194152('0x4e8')]?JSON['stringify'](_0x1407cd[_0x194152('0x4e8')]):_0x1407cd['toString']()});});}function _0x5e9a23(_0x101a7e,_0x1e311f){const _0xbbd16f=_0x43d3e8,_0x4694df=_0x477722[_0xbbd16f('0x132b')]()[_0xbbd16f('0x134b')](_0xbbd16f('0x915'))[_0xbbd16f('0x1d03')](_0xbbd16f('0xdc8')+_0xbbd16f('0x1a'))[_0xbbd16f('0xb2e')](_0xbbd16f('0xc52'))[_0xbbd16f('0x1e25')](_0x101a7e)['ok']('OK')[_0xbbd16f('0x26c9')](_0xbbd16f('0x772'));_0x477722[_0xbbd16f('0xb9')](_0x4694df)[_0xbbd16f('0x11bf')](function(){_0xbc9c07(_0x1e311f);},function(){const _0x3c7f80=_0xbbd16f;console['log'](_0x3c7f80('0x772'));});}function _0xe379aa(_0x539c8a){const _0x57bae3=_0x43d3e8,_0x495a70=_0x477722[_0x57bae3('0x132b')]()[_0x57bae3('0x134b')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20fields?')[_0x57bae3('0x1d03')](_0x57bae3('0x2061')+_0x4c09ee[_0x57bae3('0xfea')]['length']+'\x20selected'+_0x57bae3('0x1a'))[_0x57bae3('0xb2e')]('delete\x20fields')[_0x57bae3('0x1e25')](_0x539c8a)['ok']('OK')[_0x57bae3('0x26c9')](_0x57bae3('0x772'));_0x477722[_0x57bae3('0xb9')](_0x495a70)[_0x57bae3('0x11bf')](function(){const _0x4492f2=_0x57bae3;_0x4c09ee['selectedFields'][_0x4492f2('0x1f88')](function(_0xe408e9){_0xbc9c07(_0xe408e9);}),_0x4c09ee[_0x4492f2('0xfea')]=[];});}}const _0x573c56=_0x185ddf;_0x10a999[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),'$state','$location','$mdDialog','$q','$translate',_0x21d0f5('0x142d'),_0x21d0f5('0x414'),'zendeskConfiguration',_0x21d0f5('0x12a5'),'Auth',_0x21d0f5('0x17ff'),'setting',_0x21d0f5('0xb25')];function _0x10a999(_0x4c9b9c,_0x569eea,_0x77c374,_0x96b804,_0x384a27,_0x802083,_0x205dd2,_0x3a136e,_0x2e59f2,_0x457bac,_0x5a036b,_0x2989e0,_0x45dafe,_0x1aa962){const _0xf4bef0=_0x21d0f5,_0x43ea9e=this;_0x43ea9e[_0xf4bef0('0x32a')]=_0x5a036b[_0xf4bef0('0x2428')](),_0x43ea9e['errors']=[],_0x43ea9e[_0xf4bef0('0x23e1')]=_0x45dafe,_0x43ea9e['license']=_0x2989e0,_0x43ea9e['crudPermissions']=_0x1aa962,_0x43ea9e[_0xf4bef0('0x2c9')]={},_0x43ea9e[_0xf4bef0('0x2834')]=_0x43ea9e['setting']&&_0x43ea9e[_0xf4bef0('0x23e1')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x43ea9e['title']=_0xf4bef0('0x875'),_0x43ea9e['zendeskConfiguration']=angular[_0xf4bef0('0x6fb')](_0x2e59f2),_0x43ea9e['zendeskConfigurations']=_0x3a136e,_0x43ea9e[_0xf4bef0('0x1289')]=![];!_0x43ea9e[_0xf4bef0('0x1a94')]&&(_0x43ea9e[_0xf4bef0('0x1a94')]={'channel':_0xf4bef0('0x1bc3'),'type':'inbound'},_0x43ea9e['title']=_0xf4bef0('0x1847'),_0x43ea9e['newZendeskConfiguration']=!![]);_0x43ea9e['addNewZendeskConfiguration']=_0x2bd1b3,_0x43ea9e['saveZendeskConfiguration']=_0x54506e,_0x43ea9e[_0xf4bef0('0x11e')]=_0x5ac710,_0x43ea9e[_0xf4bef0('0x1bd1')]=_0x7b75d3,_0x43ea9e[_0xf4bef0('0xc4e')]=_0x4c553a;function _0x2bd1b3(){const _0x4dd197=_0xf4bef0;_0x43ea9e['errors']=[],_0x457bac[_0x4dd197('0x27f2')]['addConfiguration']({'id':_0x569eea[_0x4dd197('0x1ab3')]['id']},_0x43ea9e[_0x4dd197('0x1a94')])[_0x4dd197('0x1549')][_0x4dd197('0x11bf')](function(_0x1cbff6){const _0x38d76d=_0x4dd197;_0x43ea9e[_0x38d76d('0x414')][_0x38d76d('0x880')](_0x1cbff6[_0x38d76d('0x2866')]()),_0x205dd2['success']({'title':'ZendeskConfiguration\x20properly\x20created','msg':_0x43ea9e[_0x38d76d('0x1a94')][_0x38d76d('0x1909')]?_0x43ea9e['zendeskConfiguration']['name']+'\x20has\x20been\x20created!':''}),_0x4c553a(_0x1cbff6);})[_0x4dd197('0x151d')](function(_0x584afc){const _0x49f771=_0x4dd197;if(_0x584afc[_0x49f771('0x4e8')]&&_0x584afc[_0x49f771('0x4e8')][_0x49f771('0x120f')]&&_0x584afc['data'][_0x49f771('0x120f')][_0x49f771('0x1e22')]){_0x43ea9e[_0x49f771('0x120f')]=_0x584afc[_0x49f771('0x4e8')]['errors']||[{'message':_0x584afc[_0x49f771('0xaab')](),'type':_0x49f771('0x19')}];for(let _0x134273=0x0;_0x134273<_0x584afc[_0x49f771('0x4e8')][_0x49f771('0x120f')][_0x49f771('0x1e22')];_0x134273+=0x1){_0x205dd2[_0x49f771('0x255')]({'title':_0x584afc[_0x49f771('0x4e8')][_0x49f771('0x120f')][_0x134273][_0x49f771('0x19fd')],'msg':_0x584afc['data'][_0x49f771('0x120f')][_0x134273][_0x49f771('0x1b86')]});}}else _0x205dd2[_0x49f771('0x255')]({'title':_0x584afc[_0x49f771('0xff9')]?_0x49f771('0x574')+_0x584afc[_0x49f771('0xff9')]+_0x49f771('0xb0b')+_0x584afc['statusText']:_0x49f771('0x19'),'msg':_0x584afc[_0x49f771('0x4e8')]?JSON[_0x49f771('0x3e')](_0x584afc[_0x49f771('0x4e8')]['message']):_0x584afc['toString']()});});}function _0x54506e(){const _0x200678=_0xf4bef0;_0x43ea9e[_0x200678('0x120f')]=[],_0x457bac['intZendeskConfiguration'][_0x200678('0x5ab')]({'id':_0x43ea9e['zendeskConfiguration']['id']},_0x43ea9e[_0x200678('0x1a94')])[_0x200678('0x1549')][_0x200678('0x11bf')](function(_0x52bdb4){const _0x429d92=_0x200678,_0x574bfd=_0x36f548()[_0x429d92('0x1ad4')](_0x43ea9e[_0x429d92('0x414')],{'id':_0x52bdb4['id']});_0x574bfd&&_0x36f548()[_0x429d92('0x47b')](_0x574bfd,_0x36f548()[_0x429d92('0x258')](_0x52bdb4[_0x429d92('0x2866')](),_0x36f548()[_0x429d92('0xe22')](_0x574bfd))),_0x205dd2[_0x429d92('0x2693')]({'title':'ZendeskConfiguration\x20properly\x20saved!','msg':_0x43ea9e[_0x429d92('0x1a94')]['name']?_0x43ea9e['zendeskConfiguration'][_0x429d92('0x1909')]+_0x429d92('0x1a78'):''}),_0x4c553a(_0x52bdb4);})[_0x200678('0x151d')](function(_0x3ede26){const _0x3ac5b1=_0x200678;if(_0x3ede26[_0x3ac5b1('0x4e8')]&&_0x3ede26['data']['errors']&&_0x3ede26[_0x3ac5b1('0x4e8')][_0x3ac5b1('0x120f')][_0x3ac5b1('0x1e22')]){_0x43ea9e['errors']=_0x3ede26[_0x3ac5b1('0x4e8')][_0x3ac5b1('0x120f')]||[{'message':_0x3ede26['toString'](),'type':_0x3ac5b1('0x135e')}];for(let _0xd5a8bb=0x0;_0xd5a8bb<_0x3ede26[_0x3ac5b1('0x4e8')][_0x3ac5b1('0x120f')]['length'];_0xd5a8bb++){_0x205dd2[_0x3ac5b1('0x255')]({'title':_0x3ede26[_0x3ac5b1('0x4e8')][_0x3ac5b1('0x120f')][_0xd5a8bb][_0x3ac5b1('0x19fd')],'msg':_0x3ede26['data'][_0x3ac5b1('0x120f')][_0xd5a8bb][_0x3ac5b1('0x1b86')]});}}else _0x205dd2[_0x3ac5b1('0x255')]({'title':_0x3ede26[_0x3ac5b1('0xff9')]?_0x3ac5b1('0x574')+_0x3ede26[_0x3ac5b1('0xff9')]+'\x20-\x20'+_0x3ede26[_0x3ac5b1('0x212f')]:'api.intZendeskConfiguration.update','msg':_0x3ede26[_0x3ac5b1('0x4e8')]?JSON['stringify'](_0x3ede26[_0x3ac5b1('0x4e8')][_0x3ac5b1('0x1b86')]):_0x3ede26[_0x3ac5b1('0xaab')]()});});}function _0x5ac710(_0x2f275e){const _0x5521fb=_0xf4bef0;_0x43ea9e['errors']=[];const _0x3f1ae3=_0x96b804[_0x5521fb('0x132b')]()[_0x5521fb('0x134b')](_0x5521fb('0x1fa9'))['content'](_0x5521fb('0x1ad3'))[_0x5521fb('0xb2e')](_0x5521fb('0x2790'))['ok']('Delete')['cancel'](_0x5521fb('0x784'))[_0x5521fb('0x1e25')](_0x2f275e);_0x96b804[_0x5521fb('0xb9')](_0x3f1ae3)[_0x5521fb('0x11bf')](function(){const _0x812fa8=_0x5521fb;_0x457bac[_0x812fa8('0x616')][_0x812fa8('0x2088')]({'id':_0x43ea9e[_0x812fa8('0x1a94')]['id']})['$promise'][_0x812fa8('0x11bf')](function(){const _0x1cf524=_0x812fa8;_0x36f548()[_0x1cf524('0x14a5')](_0x43ea9e['zendeskConfigurations'],{'id':_0x43ea9e[_0x1cf524('0x1a94')]['id']}),_0x205dd2[_0x1cf524('0x2693')]({'title':_0x1cf524('0x8a7'),'msg':(_0x43ea9e['zendeskConfiguration'][_0x1cf524('0x1909')]||_0x1cf524('0x1a94'))+'\x20has\x20been\x20deleted!'}),_0x4c553a(_0x43ea9e[_0x1cf524('0x1a94')]);})[_0x812fa8('0x151d')](function(_0x269132){const _0x20cc51=_0x812fa8;if(_0x269132[_0x20cc51('0x4e8')]&&_0x269132['data'][_0x20cc51('0x120f')]&&_0x269132['data'][_0x20cc51('0x120f')][_0x20cc51('0x1e22')]){_0x43ea9e[_0x20cc51('0x120f')]=_0x269132[_0x20cc51('0x4e8')][_0x20cc51('0x120f')]||[{'message':_0x269132[_0x20cc51('0xaab')](),'type':_0x20cc51('0x244a')}];for(let _0xd1f830=0x0;_0xd1f830<_0x269132[_0x20cc51('0x4e8')][_0x20cc51('0x120f')][_0x20cc51('0x1e22')];_0xd1f830++){_0x205dd2[_0x20cc51('0x255')]({'title':_0x269132[_0x20cc51('0x4e8')][_0x20cc51('0x120f')][_0xd1f830]['type'],'msg':_0x269132[_0x20cc51('0x4e8')]['errors'][_0xd1f830][_0x20cc51('0x1b86')]});}}else _0x205dd2['error']({'title':_0x269132['status']?_0x20cc51('0x574')+_0x269132[_0x20cc51('0xff9')]+'\x20-\x20'+_0x269132[_0x20cc51('0x212f')]:'api.intZendeskConfiguration.delete','msg':_0x269132['data']?JSON[_0x20cc51('0x3e')](_0x269132[_0x20cc51('0x4e8')][_0x20cc51('0x1b86')]):_0x269132[_0x20cc51('0x1b86')]||_0x269132[_0x20cc51('0xaab')]()});});},function(){});}function _0x7b75d3(_0x423ce7){return _0x423ce7===null?undefined:new Date(_0x423ce7);}function _0x4c553a(_0x4eb946){const _0xbc31f3=_0xf4bef0;_0x96b804[_0xbc31f3('0x237e')](_0x4eb946);}}const _0x6dbe62=_0x10a999,_0x13b79a=_0x351988['p']+'src/js/modules/main/apps/integrations/views/zendeskAccounts/create/dialog.html/dialog.html';_0x5eb6b5['$inject']=[_0x21d0f5('0x1b80'),_0x21d0f5('0x2143'),_0x21d0f5('0xcbc'),_0x21d0f5('0x18fe'),_0x21d0f5('0x1ca2'),'$document',_0x21d0f5('0x17f5'),'$translate','zendeskAccounts',_0x21d0f5('0x25bc'),_0x21d0f5('0x1d63'),'api',_0x21d0f5('0xda9'),_0x21d0f5('0x142d'),_0x21d0f5('0x1150'),_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1')];function _0x5eb6b5(_0x50bd12,_0x2961bb,_0x13d73a,_0x49e817,_0x1291f6,_0x7a97a3,_0x5bbb7a,_0x3a3857,_0x1b4b54,_0x539bb0,_0x467c4a,_0x180df4,_0x6a87d5,_0x349c5a,_0x3eb470,_0x8fee5,_0x52673a){const _0x3fca7d=_0x21d0f5,_0x3442da=this;_0x3442da[_0x3fca7d('0x17ff')]=_0x8fee5,_0x3442da[_0x3fca7d('0x23e1')]=_0x52673a,_0x3442da[_0x3fca7d('0x32a')]=_0x3eb470['getCurrentUser'](),_0x3442da[_0x3fca7d('0x845')]=_0x1b4b54||{'count':0x0,'rows':[]},_0x3442da[_0x3fca7d('0x25bc')]=_0x539bb0,_0x3442da[_0x3fca7d('0x1d63')]=_0x467c4a&&_0x467c4a[_0x3fca7d('0x27d2')]==0x1?_0x467c4a[_0x3fca7d('0x19b2')][0x0]:null,_0x3442da['crudPermissions']=_0x3eb470['parseCrudPermissions'](_0x3442da['userProfileSection']?_0x3442da[_0x3fca7d('0x1d63')]['crudPermissions']:null),_0x3442da[_0x3fca7d('0x13e8')]='zendeskAccounts',_0x3442da[_0x3fca7d('0x724')]='',_0x3442da[_0x3fca7d('0xe3c')]=null,_0x3442da[_0x3fca7d('0x2217')]=[],_0x3442da['query']={'fields':_0x3fca7d('0x18ff'),'limit':0xa,'page':0x1},_0x3442da[_0x3fca7d('0x5fd')]=_0x36f548()['keyBy']([{'option':_0x3fca7d('0x97d'),'value':_0x3fca7d('0xe4')},{'option':_0x3fca7d('0x796'),'value':_0x3fca7d('0x2c7')}],function(_0x33cee3){const _0x92ea7f=_0x3fca7d;return _0x36f548()[_0x92ea7f('0x814')](_0x33cee3[_0x92ea7f('0x10cc')],new RegExp('\x27','g'),'');}),_0x3442da['arrayauthType']=_0x36f548()[_0x3fca7d('0x2130')]([{'option':'Password','value':'\x27password\x27'},{'option':_0x3fca7d('0x1882'),'value':'\x27token\x27'}],function(_0x235335){const _0x5194a4=_0x3fca7d;return _0x36f548()[_0x5194a4('0x814')](_0x235335[_0x5194a4('0x10cc')],new RegExp('\x27','g'),'');}),_0x3442da['editstate']=_0x368f3e,_0x3442da[_0x3fca7d('0x776')]=_0x4f94a,_0x3442da[_0x3fca7d('0x549')]=_0x3b103a,_0x3442da[_0x3fca7d('0x2693')]=_0x4c3567,_0x3442da[_0x3fca7d('0x1a88')]=_0x3782f8,_0x3442da[_0x3fca7d('0xc5b')]=_0xa5c6bb,_0x3442da['deleteZendeskAccount']=_0x2621d5,_0x3442da[_0x3fca7d('0x60e')]=_0x5bcf52,_0x3442da[_0x3fca7d('0xebc')]=_0x5381cd,_0x3442da[_0x3fca7d('0x67d')]=_0x497988,_0x3442da[_0x3fca7d('0x2024')]=_0x24b86d;function _0x368f3e(_0xeaaad5){const _0x4ab734=_0x3fca7d;_0x13d73a['go'](_0x4ab734('0x253b'),{'id':_0xeaaad5['id'],'zendeskAccount':_0xeaaad5,'crudPermissions':_0x3442da['crudPermissions']});}function _0x4f94a(_0x8abba5){const _0x28c972=_0x3fca7d;return _0x180df4[_0x28c972('0x27f2')][_0x28c972('0x8ff')]({'id':_0x8abba5['id'],'test':!![]})[_0x28c972('0x1549')]['then'](function(){const _0x47a38f=_0x28c972;_0x349c5a['success']({'title':_0x47a38f('0x1c21'),'msg':_0x47a38f('0x1b13')});})[_0x28c972('0x151d')](function(_0x202f83){const _0x109e13=_0x28c972;_0x349c5a[_0x109e13('0x255')]({'title':_0x109e13('0x1c21'),'msg':_0x202f83[_0x109e13('0x4e8')]?_0x202f83[_0x109e13('0x4e8')][_0x109e13('0x1b86')]?_0x202f83[_0x109e13('0x4e8')][_0x109e13('0x1b86')]:JSON[_0x109e13('0x3e')](_0x202f83[_0x109e13('0x4e8')]):_0x202f83[_0x109e13('0xaab')]()});});}function _0x3b103a(_0x5c3730,_0x267789){const _0x4eda11=_0x3fca7d,_0x5d9d55=_0x1291f6['confirm']()[_0x4eda11('0x134b')](_0x4eda11('0x1796')+_0x36f548()[_0x4eda11('0x13cf')]('zendeskAccount')+'?')['htmlContent'](_0x4eda11('0x2061')+(_0x5c3730[_0x4eda11('0x1909')]||_0x4eda11('0x14f5'))+_0x4eda11('0x1c78')+'\x20will\x20be\x20deleted.')[_0x4eda11('0xb2e')](_0x4eda11('0x24c0'))[_0x4eda11('0x1e25')](_0x267789)['ok']('OK')['cancel'](_0x4eda11('0x772'));_0x1291f6[_0x4eda11('0xb9')](_0x5d9d55)[_0x4eda11('0x11bf')](function(){_0x2621d5(_0x5c3730);},function(){const _0x4d5871=_0x4eda11;console[_0x4d5871('0xc78')]('CANCEL');});}let _0x1728cd=!![],_0x492a1d=0x1;_0x50bd12[_0x3fca7d('0x2087')](_0x3fca7d('0x842'),function(_0x407b37,_0x11979c){const _0x200277=_0x3fca7d;_0x1728cd?_0x5bbb7a(function(){_0x1728cd=![];}):(!_0x11979c&&(_0x492a1d=_0x3442da[_0x200277('0x1f2a')][_0x200277('0x1c2')]),_0x407b37!==_0x11979c&&(_0x3442da[_0x200277('0x1f2a')][_0x200277('0x1c2')]=0x1),!_0x407b37&&(_0x3442da[_0x200277('0x1f2a')][_0x200277('0x1c2')]=_0x492a1d),_0x3442da['getZendeskAccounts']());});function _0x4c3567(_0x57ce39){const _0x2d2834=_0x3fca7d;_0x3442da[_0x2d2834('0x845')]=_0x57ce39||{'count':0x0,'rows':[]};}function _0x3782f8(){const _0x4da035=_0x3fca7d;_0x3442da[_0x4da035('0x1f2a')][_0x4da035('0x1393')]=(_0x3442da['query'][_0x4da035('0x1c2')]-0x1)*_0x3442da[_0x4da035('0x1f2a')]['limit'],_0x3eb470[_0x4da035('0x4ee')](_0x4da035('0xf45'))?_0x3442da['promise']=_0x180df4[_0x4da035('0x27f2')][_0x4da035('0xbaa')](_0x3442da[_0x4da035('0x1f2a')],_0x4c3567)['$promise']:(_0x3442da[_0x4da035('0x1f2a')]['id']=_0x3442da[_0x4da035('0x25bc')]['id'],_0x3442da[_0x4da035('0x1f2a')]['section']='ZendeskAccounts',_0x3442da[_0x4da035('0x13f')]=_0x180df4[_0x4da035('0x25bc')]['getResources'](_0x3442da[_0x4da035('0x1f2a')],_0x4c3567)[_0x4da035('0x1549')]);}function _0xa5c6bb(_0x2c9df3,_0x354245){const _0x189979=_0x3fca7d;_0x1291f6[_0x189979('0xb9')]({'controller':_0x189979('0x2778'),'controllerAs':'vm','templateUrl':_0x13b79a,'parent':angular[_0x189979('0x1e73')](_0x7a97a3[_0x189979('0x1d2')]),'targetEvent':_0x2c9df3,'clickOutsideToClose':!![],'locals':{'zendeskAccount':_0x354245,'zendeskAccounts':_0x3442da['zendeskAccounts']['rows'],'license':_0x3442da[_0x189979('0x17ff')],'setting':_0x3442da[_0x189979('0x23e1')],'crudPermissions':_0x3442da[_0x189979('0xb25')]}});}function _0x2621d5(_0x23f11c){const _0x4c0e08=_0x3fca7d;_0x180df4[_0x4c0e08('0x27f2')][_0x4c0e08('0x2088')]({'id':_0x23f11c['id']})[_0x4c0e08('0x1549')]['then'](function(){const _0x4cd35a=_0x4c0e08;_0x36f548()[_0x4cd35a('0x14a5')](_0x3442da[_0x4cd35a('0x845')][_0x4cd35a('0x19b2')],{'id':_0x23f11c['id']}),_0x3442da[_0x4cd35a('0x845')][_0x4cd35a('0x27d2')]-=0x1,!_0x3442da[_0x4cd35a('0x845')][_0x4cd35a('0x19b2')][_0x4cd35a('0x1e22')]&&_0x3442da['getZendeskAccounts'](),_0x349c5a['success']({'title':_0x36f548()['startCase'](_0x4cd35a('0x1b66'))+_0x4cd35a('0x2113'),'msg':_0x23f11c[_0x4cd35a('0x1909')]?_0x23f11c[_0x4cd35a('0x1909')]+'\x20has\x20been\x20deleted!':''});})['catch'](function(_0x462d49){const _0x1ad44d=_0x4c0e08;if(_0x462d49[_0x1ad44d('0x4e8')]&&_0x462d49[_0x1ad44d('0x4e8')][_0x1ad44d('0x120f')]&&_0x462d49['data']['errors'][_0x1ad44d('0x1e22')]){_0x3442da[_0x1ad44d('0x120f')]=_0x462d49[_0x1ad44d('0x4e8')][_0x1ad44d('0x120f')]||[{'message':_0x462d49[_0x1ad44d('0xaab')](),'type':_0x1ad44d('0xd22')}];for(let _0x269574=0x0;_0x269574<_0x462d49['data'][_0x1ad44d('0x120f')][_0x1ad44d('0x1e22')];_0x269574++){_0x349c5a[_0x1ad44d('0x255')]({'title':_0x462d49[_0x1ad44d('0x4e8')][_0x1ad44d('0x120f')][_0x269574][_0x1ad44d('0x19fd')],'msg':_0x462d49[_0x1ad44d('0x4e8')][_0x1ad44d('0x120f')][_0x269574][_0x1ad44d('0x1b86')]});}}else _0x349c5a['error']({'title':_0x462d49['status']?_0x1ad44d('0x574')+_0x462d49[_0x1ad44d('0xff9')]+_0x1ad44d('0xb0b')+_0x462d49[_0x1ad44d('0x212f')]:_0x1ad44d('0xd22'),'msg':_0x462d49[_0x1ad44d('0x4e8')]?JSON[_0x1ad44d('0x3e')](_0x462d49[_0x1ad44d('0x4e8')][_0x1ad44d('0x1b86')]):_0x462d49[_0x1ad44d('0x1b86')]||_0x462d49[_0x1ad44d('0xaab')]()});});}function _0x5bcf52(){const _0x7c6735=_0x3fca7d,_0x2fa029=angular['copy'](_0x3442da[_0x7c6735('0x2217')]);return _0x3442da[_0x7c6735('0x2217')]=[],_0x2fa029;}function _0x5381cd(_0x191407){const _0x5bcf3d=_0x3fca7d,_0xd9bdf6=_0x1291f6[_0x5bcf3d('0x132b')]()[_0x5bcf3d('0x134b')](_0x5bcf3d('0x9b'))[_0x5bcf3d('0x1d03')](_0x5bcf3d('0x2061')+_0x3442da[_0x5bcf3d('0x2217')][_0x5bcf3d('0x1e22')]+_0x5bcf3d('0xac6')+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x5bcf3d('0x227e'))[_0x5bcf3d('0x1e25')](_0x191407)['ok']('OK')[_0x5bcf3d('0x26c9')](_0x5bcf3d('0x772'));_0x1291f6['show'](_0xd9bdf6)[_0x5bcf3d('0x11bf')](function(){const _0xbec354=_0x5bcf3d;_0x3442da[_0xbec354('0x2217')][_0xbec354('0x1f88')](function(_0x33abda){_0x2621d5(_0x33abda);}),_0x3442da[_0xbec354('0x2217')]=[];});}function _0x497988(){const _0x52df17=_0x3fca7d;_0x3442da[_0x52df17('0x2217')]=[];}function _0x24b86d(){const _0x362032=_0x3fca7d;_0x3442da[_0x362032('0x2217')]=_0x3442da[_0x362032('0x845')]['rows'];}}const _0x54fe3a=_0x5eb6b5;_0x2e84c8[_0x21d0f5('0x1e9a')]=['$scope',_0x21d0f5('0xcbc'),'$location','$mdDialog','$q','$translate',_0x21d0f5('0x142d'),_0x21d0f5('0xfbf'),_0x21d0f5('0x54e'),'api',_0x21d0f5('0x1150'),_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1'),_0x21d0f5('0xb25')];function _0x2e84c8(_0x330293,_0x2b8d31,_0x3799e6,_0x45a53e,_0x530c21,_0x2ff3a7,_0x16d354,_0xd5a69c,_0x1a3598,_0x5357c8,_0x390ac5,_0x48fa40,_0x4fdff8,_0x493d25){const _0x8bcc2a=_0x21d0f5,_0x1dfd66=this;_0x1dfd66[_0x8bcc2a('0x32a')]=_0x390ac5['getCurrentUser'](),_0x1dfd66[_0x8bcc2a('0x120f')]=[],_0x1dfd66['setting']=_0x4fdff8,_0x1dfd66[_0x8bcc2a('0x17ff')]=_0x48fa40,_0x1dfd66[_0x8bcc2a('0xb25')]=_0x493d25,_0x1dfd66[_0x8bcc2a('0x2c9')]={},_0x1dfd66[_0x8bcc2a('0x2834')]=_0x1dfd66['setting']&&_0x1dfd66[_0x8bcc2a('0x23e1')][_0x8bcc2a('0x1d4')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1dfd66[_0x8bcc2a('0x134b')]='INTEGRATIONS.EDIT_ZOHOACCOUNT',_0x1dfd66[_0x8bcc2a('0x54e')]=angular['copy'](_0x1a3598),_0x1dfd66[_0x8bcc2a('0xfbf')]=_0xd5a69c,_0x1dfd66[_0x8bcc2a('0x1af')]=![];!_0x1dfd66[_0x8bcc2a('0x54e')]&&(_0x1dfd66[_0x8bcc2a('0x54e')]={'host':_0x8bcc2a('0x1ea9'),'zone':'EU','serverUrl':_0x3799e6[_0x8bcc2a('0x1797')]()+_0x8bcc2a('0x16a1')+_0x3799e6[_0x8bcc2a('0x14ec')]()+(_0x3799e6[_0x8bcc2a('0x235b')]()?':'+_0x3799e6[_0x8bcc2a('0x235b')]():'')},_0x1dfd66[_0x8bcc2a('0x134b')]=_0x8bcc2a('0xbf7'),_0x1dfd66[_0x8bcc2a('0x1af')]=!![]);_0x1dfd66[_0x8bcc2a('0x69a')]=_0x159118,_0x1dfd66[_0x8bcc2a('0x1c7b')]=_0x744565,_0x1dfd66[_0x8bcc2a('0x208a')]=_0x34df25,_0x1dfd66[_0x8bcc2a('0x1bd1')]=_0x25f29f,_0x1dfd66[_0x8bcc2a('0xc4e')]=_0x3aa156;function _0x159118(){const _0x34c59b=_0x8bcc2a;_0x1dfd66[_0x34c59b('0x120f')]=[],_0x5357c8[_0x34c59b('0x1437')][_0x34c59b('0x259')](_0x1dfd66[_0x34c59b('0x54e')])[_0x34c59b('0x1549')][_0x34c59b('0x11bf')](function(_0x4462b8){const _0x3e3ae5=_0x34c59b;_0x1dfd66[_0x3e3ae5('0xfbf')][_0x3e3ae5('0x880')](_0x4462b8[_0x3e3ae5('0x2866')]()),_0x16d354['success']({'title':'ZohoAccount\x20properly\x20created','msg':_0x1dfd66[_0x3e3ae5('0x54e')][_0x3e3ae5('0x1909')]?_0x1dfd66[_0x3e3ae5('0x54e')][_0x3e3ae5('0x1909')]+_0x3e3ae5('0x7fb'):''}),_0x3aa156(_0x4462b8);})[_0x34c59b('0x151d')](function(_0x6afc3c){const _0x53e45f=_0x34c59b;if(_0x6afc3c[_0x53e45f('0x4e8')]&&_0x6afc3c[_0x53e45f('0x4e8')][_0x53e45f('0x120f')]&&_0x6afc3c['data'][_0x53e45f('0x120f')][_0x53e45f('0x1e22')]){_0x1dfd66[_0x53e45f('0x120f')]=_0x6afc3c[_0x53e45f('0x4e8')][_0x53e45f('0x120f')]||[{'message':_0x6afc3c['toString'](),'type':_0x53e45f('0x6cb')}];for(let _0x308342=0x0;_0x308342<_0x6afc3c['data'][_0x53e45f('0x120f')]['length'];_0x308342+=0x1){_0x16d354[_0x53e45f('0x255')]({'title':_0x6afc3c[_0x53e45f('0x4e8')][_0x53e45f('0x120f')][_0x308342][_0x53e45f('0x19fd')],'msg':_0x6afc3c['data'][_0x53e45f('0x120f')][_0x308342][_0x53e45f('0x1b86')]});}}else _0x16d354[_0x53e45f('0x255')]({'title':_0x6afc3c[_0x53e45f('0xff9')]?_0x53e45f('0x574')+_0x6afc3c[_0x53e45f('0xff9')]+'\x20-\x20'+_0x6afc3c[_0x53e45f('0x212f')]:'api.intZohoAccount.save','msg':_0x6afc3c[_0x53e45f('0x4e8')]?JSON[_0x53e45f('0x3e')](_0x6afc3c[_0x53e45f('0x4e8')]['message']):_0x6afc3c['toString']()});});}function _0x744565(){const _0x26f750=_0x8bcc2a;_0x1dfd66['errors']=[],_0x5357c8[_0x26f750('0x1437')]['update']({'id':_0x1dfd66['zohoAccount']['id']},_0x1dfd66[_0x26f750('0x54e')])[_0x26f750('0x1549')][_0x26f750('0x11bf')](function(_0x5968de){const _0x5110a0=_0x26f750,_0xb749d7=_0x36f548()[_0x5110a0('0x1ad4')](_0x1dfd66['zohoAccounts'],{'id':_0x5968de['id']});_0xb749d7&&_0x36f548()[_0x5110a0('0x47b')](_0xb749d7,_0x36f548()['pick'](_0x5968de['toJSON'](),_0x36f548()['keys'](_0xb749d7))),_0x16d354[_0x5110a0('0x2693')]({'title':'ZohoAccount\x20properly\x20saved!','msg':_0x1dfd66[_0x5110a0('0x54e')]['name']?_0x1dfd66[_0x5110a0('0x54e')][_0x5110a0('0x1909')]+_0x5110a0('0x1a78'):''}),_0x3aa156(_0x5968de);})[_0x26f750('0x151d')](function(_0x55c023){const _0x3d4308=_0x26f750;if(_0x55c023[_0x3d4308('0x4e8')]&&_0x55c023[_0x3d4308('0x4e8')][_0x3d4308('0x120f')]&&_0x55c023[_0x3d4308('0x4e8')][_0x3d4308('0x120f')][_0x3d4308('0x1e22')]){_0x1dfd66[_0x3d4308('0x120f')]=_0x55c023[_0x3d4308('0x4e8')][_0x3d4308('0x120f')]||[{'message':_0x55c023[_0x3d4308('0xaab')](),'type':_0x3d4308('0x7b4')}];for(let _0x1abbf1=0x0;_0x1abbf1<_0x55c023[_0x3d4308('0x4e8')]['errors']['length'];_0x1abbf1++){_0x16d354['error']({'title':_0x55c023['data']['errors'][_0x1abbf1][_0x3d4308('0x19fd')],'msg':_0x55c023[_0x3d4308('0x4e8')]['errors'][_0x1abbf1][_0x3d4308('0x1b86')]});}}else _0x16d354['error']({'title':_0x55c023[_0x3d4308('0xff9')]?_0x3d4308('0x574')+_0x55c023['status']+'\x20-\x20'+_0x55c023[_0x3d4308('0x212f')]:_0x3d4308('0x7b4'),'msg':_0x55c023[_0x3d4308('0x4e8')]?JSON[_0x3d4308('0x3e')](_0x55c023['data'][_0x3d4308('0x1b86')]):_0x55c023[_0x3d4308('0xaab')]()});});}function _0x34df25(_0x205564){const _0x46ff27=_0x8bcc2a;_0x1dfd66[_0x46ff27('0x120f')]=[];const _0x52f4d0=_0x45a53e['confirm']()[_0x46ff27('0x134b')](_0x46ff27('0x1fa9'))['content'](_0x46ff27('0x20dc'))[_0x46ff27('0xb2e')](_0x46ff27('0xad6'))['ok'](_0x46ff27('0x1167'))['cancel'](_0x46ff27('0x784'))[_0x46ff27('0x1e25')](_0x205564);_0x45a53e[_0x46ff27('0xb9')](_0x52f4d0)[_0x46ff27('0x11bf')](function(){const _0x498052=_0x46ff27;_0x5357c8[_0x498052('0x1437')][_0x498052('0x2088')]({'id':_0x1dfd66['zohoAccount']['id']})[_0x498052('0x1549')][_0x498052('0x11bf')](function(){const _0xe493a7=_0x498052;_0x36f548()[_0xe493a7('0x14a5')](_0x1dfd66['zohoAccounts'],{'id':_0x1dfd66[_0xe493a7('0x54e')]['id']}),_0x16d354[_0xe493a7('0x2693')]({'title':'ZohoAccount\x20properly\x20deleted!','msg':(_0x1dfd66[_0xe493a7('0x54e')][_0xe493a7('0x1909')]||_0xe493a7('0x54e'))+_0xe493a7('0x433')}),_0x3aa156(_0x1dfd66[_0xe493a7('0x54e')]);})['catch'](function(_0x3d0241){const _0x4ece33=_0x498052;if(_0x3d0241['data']&&_0x3d0241[_0x4ece33('0x4e8')]['errors']&&_0x3d0241[_0x4ece33('0x4e8')][_0x4ece33('0x120f')][_0x4ece33('0x1e22')]){_0x1dfd66['errors']=_0x3d0241['data'][_0x4ece33('0x120f')]||[{'message':_0x3d0241[_0x4ece33('0xaab')](),'type':_0x4ece33('0x271d')}];for(let _0x59bd57=0x0;_0x59bd57<_0x3d0241[_0x4ece33('0x4e8')][_0x4ece33('0x120f')][_0x4ece33('0x1e22')];_0x59bd57++){_0x16d354['error']({'title':_0x3d0241[_0x4ece33('0x4e8')]['errors'][_0x59bd57][_0x4ece33('0x19fd')],'msg':_0x3d0241[_0x4ece33('0x4e8')]['errors'][_0x59bd57]['message']});}}else _0x16d354[_0x4ece33('0x255')]({'title':_0x3d0241['status']?'API:'+_0x3d0241[_0x4ece33('0xff9')]+'\x20-\x20'+_0x3d0241[_0x4ece33('0x212f')]:_0x4ece33('0x271d'),'msg':_0x3d0241[_0x4ece33('0x4e8')]?JSON[_0x4ece33('0x3e')](_0x3d0241['data'][_0x4ece33('0x1b86')]):_0x3d0241[_0x4ece33('0x1b86')]||_0x3d0241[_0x4ece33('0xaab')]()});});},function(){});}function _0x25f29f(_0x121373){return _0x121373===null?undefined:new Date(_0x121373);}function _0x3aa156(_0x3f9462){const _0x48426b=_0x8bcc2a;_0x45a53e[_0x48426b('0x237e')](_0x3f9462);}}const _0x5b39bd=_0x2e84c8,_0x9058a=_0x351988['p']+_0x21d0f5('0x1311'),_0x4bb884=_0x351988['p']+'src/js/modules/main/apps/integrations/views/zohoAccounts/edit/item/dialog.html/dialog.html';_0x2f7fb0[_0x21d0f5('0x1e9a')]=['$mdDialog',_0x21d0f5('0x1b30'),'api',_0x21d0f5('0x142d'),_0x21d0f5('0x1150')];function _0x2f7fb0(_0x1ceb66,_0x546bb4,_0x4debfe,_0x3397ed,_0x345678){const _0x4e44db=_0x21d0f5,_0x4613ad=this;_0x4613ad[_0x4e44db('0x32a')]=_0x345678[_0x4e44db('0x2428')](),_0x4613ad['zohoAccount']={},_0x4613ad[_0x4e44db('0x9de')]={},_0x4613ad[_0x4e44db('0x2766')]=[],_0x4613ad[_0x4e44db('0x52a')]=-0x1,_0x4613ad[_0x4e44db('0xb25')],_0x4613ad[_0x4e44db('0x286f')]=_0x51172b,_0x4613ad[_0x4e44db('0x1450')]=_0x40e0a6,_0x4613ad[_0x4e44db('0x9b5')]=_0x1d7545,_0x4613ad[_0x4e44db('0x1d36')]=_0x347ceb,_0x4613ad['selectChangedAdvanced']=_0x539250;function _0x539250(){const _0x5f0118=_0x4e44db;return _0x4debfe[_0x5f0118('0x6f2')][_0x5f0118('0x5ab')]({'id':_0x4613ad['zohoConfiguration']['id']},_0x4613ad[_0x5f0118('0x9de')])['$promise'][_0x5f0118('0x11bf')](function(){_0x3397ed['success']({'title':'Module\x20updated!','msg':'Module\x20has\x20been\x20updated!'});})['catch'](function(_0xfbf229){const _0x576c31=_0x5f0118;_0x3397ed[_0x576c31('0x255')]({'title':_0xfbf229['status']?_0x576c31('0x574')+_0xfbf229[_0x576c31('0xff9')]+_0x576c31('0xb0b')+_0xfbf229['statusText']:_0x576c31('0x131f'),'msg':_0xfbf229[_0x576c31('0x4e8')]?JSON[_0x576c31('0x3e')](_0xfbf229['data']):_0xfbf229['toString']()});});}function _0x51172b(_0x1f31bb,_0x340738){const _0x1f3e5f=_0x4e44db;_0x4613ad['zohoAccount']=_0x1f31bb,_0x4613ad[_0x1f3e5f('0xb25')]=typeof _0x340738!==_0x1f3e5f('0x13e9')?_0x340738:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x4debfe[_0x1f3e5f('0x1437')][_0x1f3e5f('0x26af')]({'id':_0x4613ad[_0x1f3e5f('0x54e')]['id'],'sort':_0x1f3e5f('0x1c74')})[_0x1f3e5f('0x1549')]['then'](function(_0x166403){const _0x40df28=_0x1f3e5f;return _0x4613ad[_0x40df28('0x2766')]=_0x166403[_0x40df28('0x19b2')]?_0x166403[_0x40df28('0x19b2')]:[],_0x4613ad[_0x40df28('0x2766')]['length']&&_0x4613ad['getZohoConfiguration'](0x0),_0x4debfe[_0x40df28('0xb0')][_0x40df28('0xbaa')]({'nolimit':!![],'sort':'name'})[_0x40df28('0x1549')];})[_0x1f3e5f('0x11bf')](function(_0xfdd8c8){const _0x3e4beb=_0x1f3e5f;_0x4613ad[_0x3e4beb('0x1700')]=_0xfdd8c8['rows']?_0xfdd8c8[_0x3e4beb('0x19b2')]:[],_0x4613ad[_0x3e4beb('0x90')]=_0x36f548()[_0x3e4beb('0x2130')](_0x4613ad[_0x3e4beb('0x1700')],'id');})[_0x1f3e5f('0x151d')](function(_0x5b94b5){const _0x1fb256=_0x1f3e5f;_0x3397ed[_0x1fb256('0x255')]({'title':_0x5b94b5[_0x1fb256('0xff9')]?_0x1fb256('0x574')+_0x5b94b5['status']+'\x20-\x20'+_0x5b94b5[_0x1fb256('0x212f')]:_0x1fb256('0x2752'),'msg':_0x5b94b5[_0x1fb256('0x4e8')]?JSON[_0x1fb256('0x3e')](_0x5b94b5[_0x1fb256('0x4e8')]):_0x5b94b5['toString']()});});}function _0x40e0a6(_0x48d8f2){const _0x2d23a2=_0x4e44db;_0x4613ad[_0x2d23a2('0x9de')]=_0x4613ad[_0x2d23a2('0x2766')][_0x48d8f2],_0x4613ad[_0x2d23a2('0x52a')]=_0x48d8f2,_0x4debfe[_0x2d23a2('0x6f2')][_0x2d23a2('0xace')]({'id':_0x4613ad[_0x2d23a2('0x9de')]['id']})[_0x2d23a2('0x1549')][_0x2d23a2('0x11bf')](function(_0x1c52f6){const _0x2ca35d=_0x2d23a2;return _0x4613ad[_0x2ca35d('0x1318')]=_0x1c52f6[_0x2ca35d('0x19b2')]?_0x1c52f6[_0x2ca35d('0x19b2')]:[],_0x4debfe[_0x2ca35d('0x6f2')][_0x2ca35d('0x20e8')]({'id':_0x4613ad[_0x2ca35d('0x9de')]['id']})[_0x2ca35d('0x1549')];})[_0x2d23a2('0x11bf')](function(_0x40c582){const _0x3973c5=_0x2d23a2;return _0x4613ad[_0x3973c5('0xe12')]=_0x40c582[_0x3973c5('0x19b2')]?_0x40c582['rows']:[],_0x4debfe[_0x3973c5('0x6f2')][_0x3973c5('0x8ff')]({'id':_0x4613ad[_0x3973c5('0x9de')]['id']})[_0x3973c5('0x1549')];})[_0x2d23a2('0x11bf')](function(_0x565c6a){const _0xbc39c=_0x2d23a2;_0x4613ad[_0xbc39c('0x1067')]=_0x565c6a[_0xbc39c('0x19b2')]?_0x565c6a['rows']:[];})[_0x2d23a2('0x151d')](function(_0xf38114){const _0x5ddb29=_0x2d23a2;_0x3397ed['error']({'title':_0xf38114['status']?_0x5ddb29('0x574')+_0xf38114[_0x5ddb29('0xff9')]+'\x20-\x20'+_0xf38114['statusText']:_0x5ddb29('0x1023'),'msg':_0xf38114['data']?JSON[_0x5ddb29('0x3e')](_0xf38114[_0x5ddb29('0x4e8')]):_0xf38114[_0x5ddb29('0xaab')]()});});}function _0x1d7545(_0x165f57,_0x1b01d3){const _0x2c5faf=_0x4e44db;_0x1ceb66['show']({'controller':'CreateOrEditZohoConfigurationDialogController','controllerAs':'vm','templateUrl':_0x9058a,'parent':angular['element'](_0x546bb4['body']),'targetEvent':_0x165f57,'clickOutsideToClose':!![],'locals':{'zohoConfiguration':_0x1b01d3,'configurations':_0x4613ad['configurations'],'license':null,'setting':null,'crudPermissions':_0x4613ad[_0x2c5faf('0xb25')]}})[_0x2c5faf('0xa9b')](function(){const _0x21ef34=_0x2c5faf;_0x4613ad[_0x21ef34('0x1450')](0x0);});}function _0x347ceb(_0x587bc6,_0x43ea4b){const _0xc54820=_0x4e44db,_0x159f4f=_0x1ceb66[_0xc54820('0x132b')]()[_0xc54820('0x134b')](_0xc54820('0x27f4'))['htmlContent'](''+(_0x43ea4b[_0xc54820('0x1909')]||_0xc54820('0x9de'))+_0xc54820('0x1c78')+_0xc54820('0x1a'))['ariaLabel'](_0xc54820('0x2372'))[_0xc54820('0x1e25')](_0x587bc6)['ok']('OK')[_0xc54820('0x26c9')](_0xc54820('0x772'));_0x1ceb66[_0xc54820('0xb9')](_0x159f4f)[_0xc54820('0x11bf')](function(){const _0x1abcd3=_0xc54820;_0x4debfe[_0x1abcd3('0x6f2')][_0x1abcd3('0x2088')]({'id':_0x43ea4b['id']})['$promise'][_0x1abcd3('0x11bf')](function(){const _0x34792d=_0x1abcd3;_0x36f548()[_0x34792d('0x14a5')](_0x4613ad[_0x34792d('0x2766')],{'id':_0x43ea4b['id']}),_0x3397ed[_0x34792d('0x2693')]({'title':_0x34792d('0x1932'),'msg':_0x43ea4b[_0x34792d('0x1909')]?_0x43ea4b[_0x34792d('0x1909')]+'\x20has\x20been\x20deleted!':''});})[_0x1abcd3('0x151d')](function(_0x228778){const _0x559f10=_0x1abcd3;_0x3397ed['error']({'title':_0x228778[_0x559f10('0xff9')]?_0x559f10('0x574')+_0x228778[_0x559f10('0xff9')]+_0x559f10('0xb0b')+_0x228778[_0x559f10('0x212f')]:_0x559f10('0x15ea'),'msg':_0x228778[_0x559f10('0x4e8')]?JSON[_0x559f10('0x3e')](_0x228778[_0x559f10('0x4e8')]):_0x228778[_0x559f10('0xaab')]()});})['finally'](function(){_0x4613ad['getZohoConfiguration'](0x0);});},function(){const _0x55cb63=_0xc54820;console['log'](_0x55cb63('0x772'));});}_0x4613ad[_0x4e44db('0x1151')]=[],_0x4613ad[_0x4e44db('0x1ec8')]=_0x430949,_0x4613ad[_0x4e44db('0x14ae')]=_0x5c74db,_0x4613ad[_0x4e44db('0x1ab')]=_0x552782;function _0x430949(_0x552d1c,_0x33cf67){const _0x73fc38=_0x4e44db;_0x1ceb66['show']({'controller':'CreateOrEditZohoAccountItemDialogController','controllerAs':'vm','templateUrl':_0x4bb884,'parent':angular[_0x73fc38('0x1e73')](_0x546bb4['body']),'targetEvent':_0x552d1c,'clickOutsideToClose':!![],'locals':{'type':_0x73fc38('0x20eb'),'item':_0x33cf67,'items':_0x4613ad['subjects'],'configuration':_0x4613ad[_0x73fc38('0x9de')],'account':_0x4613ad[_0x73fc38('0x54e')],'license':null,'setting':null,'crudPermissions':_0x4613ad[_0x73fc38('0xb25')]}});}function _0x1074cb(_0x5f2b49){const _0x42d1e4=_0x4e44db;_0x4debfe['intZohoField']['delete']({'id':_0x5f2b49['id']})[_0x42d1e4('0x1549')]['then'](function(){const _0x174853=_0x42d1e4;_0x36f548()[_0x174853('0x14a5')](_0x4613ad[_0x174853('0x1318')],{'id':_0x5f2b49['id']}),_0x3397ed['success']({'title':_0x174853('0x1845'),'msg':_0x174853('0x4c1')});})[_0x42d1e4('0x151d')](function(_0xf7a9dd){const _0x5d3ecf=_0x42d1e4;_0x3397ed[_0x5d3ecf('0x255')]({'title':_0xf7a9dd['status']?'API:'+_0xf7a9dd[_0x5d3ecf('0xff9')]+_0x5d3ecf('0xb0b')+_0xf7a9dd[_0x5d3ecf('0x212f')]:_0x5d3ecf('0xc27'),'msg':_0xf7a9dd[_0x5d3ecf('0x4e8')]?JSON[_0x5d3ecf('0x3e')](_0xf7a9dd['data']):_0xf7a9dd[_0x5d3ecf('0xaab')]()});});}function _0x5c74db(_0x1c8cbd,_0x3abeed){const _0x2dcce7=_0x4e44db,_0x45ccc3=_0x1ceb66[_0x2dcce7('0x132b')]()[_0x2dcce7('0x134b')](_0x2dcce7('0x98e'))['htmlContent'](_0x2dcce7('0xb46')+_0x2dcce7('0x1a'))[_0x2dcce7('0xb2e')](_0x2dcce7('0x259c'))[_0x2dcce7('0x1e25')](_0x1c8cbd)['ok']('OK')[_0x2dcce7('0x26c9')](_0x2dcce7('0x772'));_0x1ceb66[_0x2dcce7('0xb9')](_0x45ccc3)[_0x2dcce7('0x11bf')](function(){_0x1074cb(_0x3abeed);},function(){const _0x3ef589=_0x2dcce7;console[_0x3ef589('0xc78')]('CANCEL');});}function _0x552782(_0x2350c5){const _0x5f5d9e=_0x4e44db,_0x292648=_0x1ceb66[_0x5f5d9e('0x132b')]()[_0x5f5d9e('0x134b')](_0x5f5d9e('0x188d'))[_0x5f5d9e('0x1d03')](_0x5f5d9e('0x2061')+_0x4613ad[_0x5f5d9e('0x1151')][_0x5f5d9e('0x1e22')]+_0x5f5d9e('0xac6')+_0x5f5d9e('0x1a'))[_0x5f5d9e('0xb2e')](_0x5f5d9e('0x1c7c'))[_0x5f5d9e('0x1e25')](_0x2350c5)['ok']('OK')[_0x5f5d9e('0x26c9')](_0x5f5d9e('0x772'));_0x1ceb66[_0x5f5d9e('0xb9')](_0x292648)[_0x5f5d9e('0x11bf')](function(){const _0x4382a8=_0x5f5d9e;_0x4613ad[_0x4382a8('0x1151')][_0x4382a8('0x1f88')](function(_0x15d779){_0x1074cb(_0x15d779);}),_0x4613ad[_0x4382a8('0x1151')]=[];});}_0x4613ad[_0x4e44db('0x73f')]=[],_0x4613ad[_0x4e44db('0x25fe')]=_0xd113f7,_0x4613ad['deleteDescriptionConfirm']=_0x3423ea,_0x4613ad['deleteSelectedDescriptions']=_0x3bfd15;function _0xd113f7(_0x301d1b,_0x4b6de6){const _0x440b3e=_0x4e44db;_0x1ceb66['show']({'controller':_0x440b3e('0x2076'),'controllerAs':'vm','templateUrl':_0x4bb884,'parent':angular[_0x440b3e('0x1e73')](_0x546bb4[_0x440b3e('0x1d2')]),'targetEvent':_0x301d1b,'clickOutsideToClose':!![],'locals':{'type':_0x440b3e('0x1659'),'item':_0x4b6de6,'items':_0x4613ad[_0x440b3e('0xe12')],'configuration':_0x4613ad['zohoConfiguration'],'account':_0x4613ad[_0x440b3e('0x54e')],'license':null,'setting':null,'crudPermissions':_0x4613ad['crudPermissions']}});}function _0x4e2bef(_0x1b25fc){const _0x10d13e=_0x4e44db;_0x4debfe[_0x10d13e('0xa0d')]['delete']({'id':_0x1b25fc['id']})[_0x10d13e('0x1549')][_0x10d13e('0x11bf')](function(){const _0x59205d=_0x10d13e;_0x36f548()[_0x59205d('0x14a5')](_0x4613ad['descriptions'],{'id':_0x1b25fc['id']}),_0x3397ed[_0x59205d('0x2693')]({'title':'Description\x20deleted!','msg':_0x59205d('0x40e')});})[_0x10d13e('0x151d')](function(_0x1ebadf){const _0x6956e4=_0x10d13e;_0x3397ed[_0x6956e4('0x255')]({'title':_0x1ebadf[_0x6956e4('0xff9')]?_0x6956e4('0x574')+_0x1ebadf[_0x6956e4('0xff9')]+'\x20-\x20'+_0x1ebadf[_0x6956e4('0x212f')]:_0x6956e4('0xc27'),'msg':_0x1ebadf['data']?JSON[_0x6956e4('0x3e')](_0x1ebadf[_0x6956e4('0x4e8')]):_0x1ebadf['toString']()});});}function _0x3423ea(_0x2c1612,_0x132515){const _0x3fed5a=_0x4e44db,_0x2f9e11=_0x1ceb66['confirm']()['title'](_0x3fed5a('0x46b'))['htmlContent'](_0x3fed5a('0x48a')+_0x3fed5a('0x1a'))['ariaLabel'](_0x3fed5a('0xd32'))[_0x3fed5a('0x1e25')](_0x2c1612)['ok']('OK')[_0x3fed5a('0x26c9')](_0x3fed5a('0x772'));_0x1ceb66[_0x3fed5a('0xb9')](_0x2f9e11)[_0x3fed5a('0x11bf')](function(){_0x4e2bef(_0x132515);},function(){const _0x42319b=_0x3fed5a;console[_0x42319b('0xc78')](_0x42319b('0x772'));});}function _0x3bfd15(_0x5058f7){const _0x31e4d2=_0x4e44db,_0x274d98=_0x1ceb66[_0x31e4d2('0x132b')]()[_0x31e4d2('0x134b')](_0x31e4d2('0x1795'))[_0x31e4d2('0x1d03')](''+_0x4613ad['selectedDescriptions'][_0x31e4d2('0x1e22')]+_0x31e4d2('0xac6')+_0x31e4d2('0x1a'))[_0x31e4d2('0xb2e')]('delete\x20descriptions')[_0x31e4d2('0x1e25')](_0x5058f7)['ok']('OK')[_0x31e4d2('0x26c9')](_0x31e4d2('0x772'));_0x1ceb66[_0x31e4d2('0xb9')](_0x274d98)[_0x31e4d2('0x11bf')](function(){const _0x1263bd=_0x31e4d2;_0x4613ad[_0x1263bd('0x73f')][_0x1263bd('0x1f88')](function(_0x1a552a){_0x4e2bef(_0x1a552a);}),_0x4613ad[_0x1263bd('0x73f')]=[];});}_0x4613ad[_0x4e44db('0xfea')]=[],_0x4613ad[_0x4e44db('0x18be')]=_0x26b2a4,_0x4613ad[_0x4e44db('0x21c9')]=_0x4e952d,_0x4613ad[_0x4e44db('0xd20')]=_0x48ddf9;function _0x26b2a4(_0x2569a4,_0x505e30){const _0x54d86a=_0x4e44db;_0x1ceb66[_0x54d86a('0xb9')]({'controller':'CreateOrEditZohoAccountItemDialogController','controllerAs':'vm','templateUrl':_0x4bb884,'parent':angular[_0x54d86a('0x1e73')](_0x546bb4[_0x54d86a('0x1d2')]),'targetEvent':_0x2569a4,'clickOutsideToClose':!![],'locals':{'type':_0x54d86a('0x485'),'item':_0x505e30,'items':_0x4613ad[_0x54d86a('0x1067')],'configuration':_0x4613ad[_0x54d86a('0x9de')],'account':_0x4613ad['zohoAccount'],'license':null,'setting':null,'crudPermissions':_0x4613ad['crudPermissions']}});}function _0x3d267c(_0x4c054a){const _0x4e1245=_0x4e44db;_0x4debfe[_0x4e1245('0xa0d')][_0x4e1245('0x2088')]({'id':_0x4c054a['id']})['$promise'][_0x4e1245('0x11bf')](function(){const _0x166aed=_0x4e1245;_0x36f548()[_0x166aed('0x14a5')](_0x4613ad['fields'],{'id':_0x4c054a['id']}),_0x3397ed[_0x166aed('0x2693')]({'title':'Field\x20deleted!','msg':_0x166aed('0x264f')});})['catch'](function(_0x20f72f){const _0x5ea5ba=_0x4e1245;_0x3397ed[_0x5ea5ba('0x255')]({'title':_0x20f72f[_0x5ea5ba('0xff9')]?_0x5ea5ba('0x574')+_0x20f72f[_0x5ea5ba('0xff9')]+_0x5ea5ba('0xb0b')+_0x20f72f[_0x5ea5ba('0x212f')]:'SYSTEM:DELETECONFIGURATIONFIELD','msg':_0x20f72f[_0x5ea5ba('0x4e8')]?JSON[_0x5ea5ba('0x3e')](_0x20f72f[_0x5ea5ba('0x4e8')]):_0x20f72f[_0x5ea5ba('0xaab')]()});});}function _0x4e952d(_0x5efdd4,_0x5c93ab){const _0x2106fd=_0x4e44db,_0x361aad=_0x1ceb66[_0x2106fd('0x132b')]()[_0x2106fd('0x134b')](_0x2106fd('0x915'))[_0x2106fd('0x1d03')](_0x2106fd('0xdc8')+'\x20will\x20be\x20deleted.')[_0x2106fd('0xb2e')](_0x2106fd('0xc52'))[_0x2106fd('0x1e25')](_0x5efdd4)['ok']('OK')['cancel'](_0x2106fd('0x772'));_0x1ceb66[_0x2106fd('0xb9')](_0x361aad)[_0x2106fd('0x11bf')](function(){_0x3d267c(_0x5c93ab);},function(){const _0xb67cbd=_0x2106fd;console[_0xb67cbd('0xc78')](_0xb67cbd('0x772'));});}function _0x48ddf9(_0x42f2c5){const _0x5a568e=_0x4e44db,_0x1d53a7=_0x1ceb66[_0x5a568e('0x132b')]()[_0x5a568e('0x134b')](_0x5a568e('0x25cc'))[_0x5a568e('0x1d03')](''+_0x4613ad[_0x5a568e('0xfea')][_0x5a568e('0x1e22')]+'\x20selected'+_0x5a568e('0x1a'))['ariaLabel'](_0x5a568e('0x15b8'))[_0x5a568e('0x1e25')](_0x42f2c5)['ok']('OK')[_0x5a568e('0x26c9')](_0x5a568e('0x772'));_0x1ceb66[_0x5a568e('0xb9')](_0x1d53a7)[_0x5a568e('0x11bf')](function(){const _0x422fba=_0x5a568e;_0x4613ad[_0x422fba('0xfea')][_0x422fba('0x1f88')](function(_0x1b801e){_0x3d267c(_0x1b801e);}),_0x4613ad['selectedFields']=[];});}}const _0x2daa60=_0x2f7fb0;_0x37bc92[_0x21d0f5('0x1e9a')]=['$scope','$state','$location',_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0xb6b'),_0x21d0f5('0x142d'),_0x21d0f5('0x2766'),_0x21d0f5('0x9de'),_0x21d0f5('0x12a5'),'Auth',_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1'),_0x21d0f5('0xb25')];function _0x37bc92(_0x263670,_0x2f792a,_0x158892,_0x209fe0,_0xf72a5f,_0x31e71a,_0x401d4d,_0x4f2306,_0x5ce383,_0x3ddbf1,_0xaf335d,_0x199e86,_0x57f6b4,_0x40d7dc){const _0x11eece=_0x21d0f5,_0x373455=this;_0x373455[_0x11eece('0x32a')]=_0xaf335d['getCurrentUser'](),_0x373455[_0x11eece('0x120f')]=[],_0x373455[_0x11eece('0x23e1')]=_0x57f6b4,_0x373455['license']=_0x199e86,_0x373455[_0x11eece('0xb25')]=_0x40d7dc,_0x373455[_0x11eece('0x2c9')]={},_0x373455[_0x11eece('0x2834')]=_0x373455[_0x11eece('0x23e1')]&&_0x373455[_0x11eece('0x23e1')][_0x11eece('0x1d4')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x373455['title']=_0x11eece('0xdf8'),_0x373455[_0x11eece('0x9de')]=angular[_0x11eece('0x6fb')](_0x5ce383),_0x373455[_0x11eece('0x2766')]=_0x4f2306,_0x373455[_0x11eece('0x2a2')]=![];!_0x373455[_0x11eece('0x9de')]&&(_0x373455[_0x11eece('0x9de')]={'channel':_0x11eece('0x1bc3'),'type':_0x11eece('0x18a2')},_0x373455[_0x11eece('0x134b')]=_0x11eece('0x639'),_0x373455[_0x11eece('0x2a2')]=!![]);_0x373455[_0x11eece('0xe41')]=_0x2f5142,_0x373455['saveZohoConfiguration']=_0x475792,_0x373455[_0x11eece('0x1d36')]=_0x37e045,_0x373455[_0x11eece('0x1bd1')]=_0x13af2d,_0x373455['closeDialog']=_0x1217a8;function _0x2f5142(){const _0x388b5d=_0x11eece;_0x373455[_0x388b5d('0x120f')]=[],_0x3ddbf1[_0x388b5d('0x1437')][_0x388b5d('0x157f')]({'id':_0x2f792a[_0x388b5d('0x1ab3')]['id']},_0x373455[_0x388b5d('0x9de')])[_0x388b5d('0x1549')]['then'](function(_0x26c8a9){const _0x2124c2=_0x388b5d;_0x373455[_0x2124c2('0x2766')]['unshift'](_0x26c8a9['toJSON']()),_0x401d4d[_0x2124c2('0x2693')]({'title':_0x2124c2('0x60'),'msg':_0x373455[_0x2124c2('0x9de')][_0x2124c2('0x1909')]?_0x373455['zohoConfiguration'][_0x2124c2('0x1909')]+_0x2124c2('0x7fb'):''}),_0x1217a8(_0x26c8a9);})[_0x388b5d('0x151d')](function(_0x191889){const _0x4277d0=_0x388b5d;if(_0x191889[_0x4277d0('0x4e8')]&&_0x191889['data'][_0x4277d0('0x120f')]&&_0x191889['data'][_0x4277d0('0x120f')][_0x4277d0('0x1e22')]){_0x373455['errors']=_0x191889['data'][_0x4277d0('0x120f')]||[{'message':_0x191889[_0x4277d0('0xaab')](),'type':'api.intZohoConfiguration.save'}];for(let _0xbdfa56=0x0;_0xbdfa56<_0x191889[_0x4277d0('0x4e8')][_0x4277d0('0x120f')][_0x4277d0('0x1e22')];_0xbdfa56+=0x1){_0x401d4d['error']({'title':_0x191889['data'][_0x4277d0('0x120f')][_0xbdfa56]['type'],'msg':_0x191889['data']['errors'][_0xbdfa56][_0x4277d0('0x1b86')]});}}else _0x401d4d[_0x4277d0('0x255')]({'title':_0x191889['status']?_0x4277d0('0x574')+_0x191889[_0x4277d0('0xff9')]+_0x4277d0('0xb0b')+_0x191889[_0x4277d0('0x212f')]:_0x4277d0('0x1e17'),'msg':_0x191889[_0x4277d0('0x4e8')]?JSON['stringify'](_0x191889[_0x4277d0('0x4e8')][_0x4277d0('0x1b86')]):_0x191889[_0x4277d0('0xaab')]()});});}function _0x475792(){const _0x5c67d6=_0x11eece;_0x373455[_0x5c67d6('0x120f')]=[],_0x3ddbf1['intZohoConfiguration'][_0x5c67d6('0x5ab')]({'id':_0x373455['zohoConfiguration']['id']},_0x373455['zohoConfiguration'])[_0x5c67d6('0x1549')][_0x5c67d6('0x11bf')](function(_0x281c36){const _0x1b98f1=_0x5c67d6,_0x43b0ef=_0x36f548()[_0x1b98f1('0x1ad4')](_0x373455[_0x1b98f1('0x2766')],{'id':_0x281c36['id']});_0x43b0ef&&_0x36f548()[_0x1b98f1('0x47b')](_0x43b0ef,_0x36f548()['pick'](_0x281c36[_0x1b98f1('0x2866')](),_0x36f548()[_0x1b98f1('0xe22')](_0x43b0ef))),_0x401d4d[_0x1b98f1('0x2693')]({'title':_0x1b98f1('0x733'),'msg':_0x373455[_0x1b98f1('0x9de')][_0x1b98f1('0x1909')]?_0x373455['zohoConfiguration'][_0x1b98f1('0x1909')]+'\x20has\x20been\x20saved!':''}),_0x1217a8(_0x281c36);})['catch'](function(_0xebb1fb){const _0x2e3867=_0x5c67d6;if(_0xebb1fb[_0x2e3867('0x4e8')]&&_0xebb1fb[_0x2e3867('0x4e8')][_0x2e3867('0x120f')]&&_0xebb1fb[_0x2e3867('0x4e8')]['errors'][_0x2e3867('0x1e22')]){_0x373455[_0x2e3867('0x120f')]=_0xebb1fb[_0x2e3867('0x4e8')][_0x2e3867('0x120f')]||[{'message':_0xebb1fb[_0x2e3867('0xaab')](),'type':_0x2e3867('0x2491')}];for(let _0x16d4d3=0x0;_0x16d4d3<_0xebb1fb[_0x2e3867('0x4e8')][_0x2e3867('0x120f')][_0x2e3867('0x1e22')];_0x16d4d3++){_0x401d4d['error']({'title':_0xebb1fb[_0x2e3867('0x4e8')]['errors'][_0x16d4d3][_0x2e3867('0x19fd')],'msg':_0xebb1fb[_0x2e3867('0x4e8')]['errors'][_0x16d4d3][_0x2e3867('0x1b86')]});}}else _0x401d4d[_0x2e3867('0x255')]({'title':_0xebb1fb['status']?_0x2e3867('0x574')+_0xebb1fb['status']+_0x2e3867('0xb0b')+_0xebb1fb[_0x2e3867('0x212f')]:_0x2e3867('0x2491'),'msg':_0xebb1fb[_0x2e3867('0x4e8')]?JSON[_0x2e3867('0x3e')](_0xebb1fb[_0x2e3867('0x4e8')][_0x2e3867('0x1b86')]):_0xebb1fb['toString']()});});}function _0x37e045(_0x561741){const _0x1d96e2=_0x11eece;_0x373455[_0x1d96e2('0x120f')]=[];const _0xf7ce5d=_0x209fe0[_0x1d96e2('0x132b')]()[_0x1d96e2('0x134b')](_0x1d96e2('0x1fa9'))[_0x1d96e2('0x252a')]('The\x20zohoConfiguration\x20will\x20be\x20deleted.')[_0x1d96e2('0xb2e')]('Delete\x20ZohoConfiguration')['ok'](_0x1d96e2('0x1167'))[_0x1d96e2('0x26c9')](_0x1d96e2('0x784'))['targetEvent'](_0x561741);_0x209fe0['show'](_0xf7ce5d)[_0x1d96e2('0x11bf')](function(){const _0x31ced4=_0x1d96e2;_0x3ddbf1[_0x31ced4('0x6f2')][_0x31ced4('0x2088')]({'id':_0x373455['zohoConfiguration']['id']})[_0x31ced4('0x1549')]['then'](function(){const _0x5dcd4d=_0x31ced4;_0x36f548()[_0x5dcd4d('0x14a5')](_0x373455[_0x5dcd4d('0x2766')],{'id':_0x373455[_0x5dcd4d('0x9de')]['id']}),_0x401d4d['success']({'title':_0x5dcd4d('0x297'),'msg':(_0x373455[_0x5dcd4d('0x9de')][_0x5dcd4d('0x1909')]||'zohoConfiguration')+_0x5dcd4d('0x433')}),_0x1217a8(_0x373455['zohoConfiguration']);})[_0x31ced4('0x151d')](function(_0x28531a){const _0x8a544a=_0x31ced4;if(_0x28531a[_0x8a544a('0x4e8')]&&_0x28531a[_0x8a544a('0x4e8')][_0x8a544a('0x120f')]&&_0x28531a[_0x8a544a('0x4e8')][_0x8a544a('0x120f')]['length']){_0x373455[_0x8a544a('0x120f')]=_0x28531a[_0x8a544a('0x4e8')][_0x8a544a('0x120f')]||[{'message':_0x28531a[_0x8a544a('0xaab')](),'type':'api.intZohoConfiguration.delete'}];for(let _0x156935=0x0;_0x156935<_0x28531a[_0x8a544a('0x4e8')]['errors'][_0x8a544a('0x1e22')];_0x156935++){_0x401d4d['error']({'title':_0x28531a[_0x8a544a('0x4e8')][_0x8a544a('0x120f')][_0x156935]['type'],'msg':_0x28531a[_0x8a544a('0x4e8')]['errors'][_0x156935][_0x8a544a('0x1b86')]});}}else _0x401d4d['error']({'title':_0x28531a['status']?_0x8a544a('0x574')+_0x28531a[_0x8a544a('0xff9')]+'\x20-\x20'+_0x28531a[_0x8a544a('0x212f')]:_0x8a544a('0x4b8'),'msg':_0x28531a[_0x8a544a('0x4e8')]?JSON[_0x8a544a('0x3e')](_0x28531a[_0x8a544a('0x4e8')]['message']):_0x28531a[_0x8a544a('0x1b86')]||_0x28531a[_0x8a544a('0xaab')]()});});},function(){});}function _0x13af2d(_0x36162a){return _0x36162a===null?undefined:new Date(_0x36162a);}function _0x1217a8(_0x9d9b6e){const _0x1f68e9=_0x11eece;_0x209fe0[_0x1f68e9('0x237e')](_0x9d9b6e);}}const _0xd928c8=_0x37bc92;_0x4984f6[_0x21d0f5('0x1e9a')]=['$scope','$state','$location',_0x21d0f5('0x1ca2'),_0x21d0f5('0x142d'),_0x21d0f5('0xc09'),_0x21d0f5('0x22'),'item',_0x21d0f5('0x2565'),_0x21d0f5('0x19fd'),'api',_0x21d0f5('0x1150'),_0x21d0f5('0xb25')];function _0x4984f6(_0x2ca6ea,_0x1a5aa2,_0x209bfc,_0x304854,_0x4daaf2,_0x220595,_0x1b4ca4,_0x29c374,_0x1ff1ed,_0x5b7f2b,_0xcd6f49,_0x4151ce,_0x424e09){const _0x2b485b=_0x21d0f5,_0x557589=this;_0x557589[_0x2b485b('0x32a')]=_0x4151ce[_0x2b485b('0x2428')](),_0x557589['errors']=[],_0x557589['title']=_0x2b485b('0x1e35')+_0x36f548()[_0x2b485b('0x1a31')](_0x5b7f2b),_0x557589['item']=angular['copy'](_0x29c374),_0x557589[_0x2b485b('0x22')]=_0x1b4ca4,_0x557589['type']=_0x5b7f2b,_0x557589[_0x2b485b('0xb25')]=_0x424e09,_0x557589['newItem']=![];!_0x557589['item']&&(_0x557589[_0x2b485b('0xa9c')]={'type':'string'},_0x557589[_0x2b485b('0xa9c')][_0x36f548()['capitalize'](_0x5b7f2b)+'Id']=_0x220595['id'],_0x557589[_0x2b485b('0x134b')]=_0x2b485b('0x26b9')+_0x36f548()[_0x2b485b('0x1a31')](_0x5b7f2b),_0x557589['newItem']=!![]);_0x557589[_0x2b485b('0x2bc')]=_0x446b9a,_0x557589[_0x2b485b('0x265e')]=_0xbbfaf3,_0x557589[_0x2b485b('0x2639')]=_0x26c7ec,_0x557589[_0x2b485b('0x6e1')]=_0x159516,_0x557589['closeDialog']=_0x451960,_0xcd6f49['variable'][_0x2b485b('0xbaa')]({'nolimit':!![]})[_0x2b485b('0x1549')][_0x2b485b('0x11bf')](function(_0x34862b){const _0x303081=_0x2b485b;return _0x557589[_0x303081('0x1700')]=_0x34862b[_0x303081('0x19b2')]?_0x34862b[_0x303081('0x19b2')]:[],_0xcd6f49[_0x303081('0x1313')][_0x303081('0x19a5')]()['$promise'];})[_0x2b485b('0x11bf')](function(_0x29efe2){const _0x3aa2a1=_0x2b485b;return _0x557589[_0x3aa2a1('0x1720')]=_0x36f548()[_0x3aa2a1('0x1271')](_0x36f548()[_0x3aa2a1('0xe22')](_0x29efe2),[_0x3aa2a1('0x1549'),_0x3aa2a1('0x1619'),_0x3aa2a1('0x1779'),_0x3aa2a1('0x14ea'),_0x3aa2a1('0x14b4')]),_0x557589['voiceAgentReportColumns'][_0x3aa2a1('0x105d')](_0x3aa2a1('0xbf8')),_0xcd6f49[_0x3aa2a1('0x14fc')][_0x3aa2a1('0x19a5')]()[_0x3aa2a1('0x1549')];})[_0x2b485b('0x11bf')](function(_0x30fdd0){const _0x51114c=_0x2b485b;_0x557589['voiceDialReportColumns']=_0x36f548()[_0x51114c('0x1271')](_0x36f548()[_0x51114c('0xe22')](_0x30fdd0),['$promise',_0x51114c('0x1619'),_0x51114c('0x1779'),_0x51114c('0x14ea'),_0x51114c('0x14b4')]),_0x557589[_0x51114c('0x77c')][_0x51114c('0x105d')]('recordingURL');})['catch'](function(_0x1cd735){const _0x2ccdc1=_0x2b485b;_0x4daaf2[_0x2ccdc1('0x255')]({'title':_0x1cd735[_0x2ccdc1('0xff9')]?'API:'+_0x1cd735[_0x2ccdc1('0xff9')]+_0x2ccdc1('0xb0b')+_0x1cd735[_0x2ccdc1('0x212f')]:'SYSTEM:GETVARIABLES','msg':_0x1cd735[_0x2ccdc1('0x4e8')]?JSON[_0x2ccdc1('0x3e')](_0x1cd735[_0x2ccdc1('0x4e8')]):_0x1cd735[_0x2ccdc1('0xaab')]()});}),_0xcd6f49[_0x2b485b('0x1437')][_0x2b485b('0x8ff')]({'id':_0x1ff1ed['id'],'ticketType':_0x220595[_0x2b485b('0x1bd2')]?_0x220595[_0x2b485b('0x1bd2')]:undefined})[_0x2b485b('0x1549')]['then'](function(_0xee466f){const _0x293776=_0x2b485b;_0x557589[_0x293776('0xf69')]=!![],_0x557589[_0x293776('0x1067')]=_0xee466f[_0x293776('0x19b2')]?_0xee466f[_0x293776('0x19b2')]:[],_0x557589[_0x293776('0xa9c')][_0x293776('0x223a')]&&(_0x557589[_0x293776('0x2830')]=_0x36f548()[_0x293776('0x1ad4')](_0x557589[_0x293776('0x1067')],{'id':_0x557589[_0x293776('0xa9c')][_0x293776('0x223a')]}));})['catch'](function(_0x43d774){const _0x2f6046=_0x2b485b;_0x557589[_0x2f6046('0xf69')]=![],console[_0x2f6046('0x255')](_0x43d774);});function _0x446b9a(){const _0x2c1f29=_0x2b485b;_0x557589[_0x2c1f29('0x120f')]=[],_0x557589[_0x2c1f29('0x2830')]&&(_0x557589[_0x2c1f29('0xa9c')][_0x2c1f29('0x223a')]=_0x557589[_0x2c1f29('0x2830')]['id'],_0x557589['item'][_0x2c1f29('0x1992')]=_0x557589[_0x2c1f29('0x2830')][_0x2c1f29('0x1909')],_0x557589[_0x2c1f29('0xa9c')][_0x2c1f29('0x2830')]=_0x557589['customField'][_0x2c1f29('0xa8d')]),_0xcd6f49[_0x2c1f29('0xa0d')][_0x2c1f29('0x259')](_0x557589[_0x2c1f29('0xa9c')])[_0x2c1f29('0x1549')][_0x2c1f29('0x11bf')](function(_0x3b65d5){const _0x2519a7=_0x2c1f29;_0x557589[_0x2519a7('0x22')][_0x2519a7('0x880')](_0x3b65d5),_0x4daaf2['success']({'title':_0x36f548()[_0x2519a7('0x22c2')](_0x5b7f2b)+'\x20properly\x20created','msg':_0x36f548()['capitalize'](_0x5b7f2b)+_0x2519a7('0x7fb')}),_0x451960();})[_0x2c1f29('0x151d')](function(_0x2d6339){const _0xc649ba=_0x2c1f29;console['error'](_0x2d6339),_0x557589[_0xc649ba('0x120f')]=_0x2d6339[_0xc649ba('0x4e8')][_0xc649ba('0x120f')]||[{'message':_0x2d6339[_0xc649ba('0xaab')](),'type':_0xc649ba('0x20a1')}];});}function _0xbbfaf3(){const _0x322557=_0x2b485b;_0x557589[_0x322557('0x120f')]=[],_0x557589[_0x322557('0x2830')]&&(_0x557589[_0x322557('0xa9c')][_0x322557('0x223a')]=_0x557589[_0x322557('0x2830')]['id'],_0x557589[_0x322557('0xa9c')]['nameField']=_0x557589[_0x322557('0x2830')][_0x322557('0x1909')],_0x557589['item'][_0x322557('0x2830')]=_0x557589[_0x322557('0x2830')][_0x322557('0xa8d')]),_0xcd6f49[_0x322557('0xa0d')]['update']({'id':_0x557589[_0x322557('0xa9c')]['id']},_0x557589[_0x322557('0xa9c')])[_0x322557('0x1549')][_0x322557('0x11bf')](function(_0x257c60){const _0x17380b=_0x322557,_0x516c36=_0x36f548()['find'](_0x557589[_0x17380b('0x22')],{'id':_0x257c60['id']});_0x516c36&&_0x36f548()[_0x17380b('0x47b')](_0x516c36,_0x257c60),_0x4daaf2[_0x17380b('0x2693')]({'title':_0x36f548()[_0x17380b('0x22c2')](_0x5b7f2b)+_0x17380b('0x157b'),'msg':_0x36f548()[_0x17380b('0x22c2')](_0x5b7f2b)+_0x17380b('0x1a78')}),_0x451960();})[_0x322557('0x151d')](function(_0x707e81){const _0x1c21f6=_0x322557;console[_0x1c21f6('0x255')](_0x707e81),_0x557589['errors']=_0x707e81['data'][_0x1c21f6('0x120f')]||[{'message':_0x707e81['toString'](),'type':'api.intItem.update'}];});}function _0x26c7ec(_0x5166ec){const _0x4acb2d=_0x2b485b;_0x557589[_0x4acb2d('0x120f')]=[];const _0x56677c=_0x304854[_0x4acb2d('0x132b')]()['title'](_0x4acb2d('0x1fa9'))[_0x4acb2d('0x252a')]('The\x20'+_0x5b7f2b+'\x20will\x20be\x20deleted.')[_0x4acb2d('0xb2e')](_0x4acb2d('0x13ea')+_0x36f548()[_0x4acb2d('0x22c2')](_0x5b7f2b))['ok'](_0x4acb2d('0x1167'))[_0x4acb2d('0x26c9')](_0x4acb2d('0x784'))[_0x4acb2d('0x1e25')](_0x5166ec);_0x304854[_0x4acb2d('0xb9')](_0x56677c)['then'](function(){const _0x141c20=_0x4acb2d;_0xcd6f49[_0x141c20('0xa0d')]['delete']({'id':_0x557589[_0x141c20('0xa9c')]['id']})['$promise']['then'](function(){const _0x71b920=_0x141c20;_0x36f548()[_0x71b920('0x14a5')](_0x557589[_0x71b920('0x22')],{'id':_0x557589['item']['id']}),_0x4daaf2[_0x71b920('0x2693')]({'title':_0x36f548()[_0x71b920('0x22c2')](_0x5b7f2b)+_0x71b920('0x12bc'),'msg':_0x36f548()[_0x71b920('0x22c2')](_0x5b7f2b)+'\x20has\x20been\x20deleted!'}),_0x451960();})['catch'](function(_0x4bacb4){const _0x54c1fb=_0x141c20;console['error'](_0x4bacb4),_0x557589[_0x54c1fb('0x120f')]=_0x4bacb4[_0x54c1fb('0x4e8')][_0x54c1fb('0x120f')]||[{'message':_0x4bacb4[_0x54c1fb('0xaab')](),'type':_0x54c1fb('0x20f0')}];});},function(){});}function _0x159516(){const _0x380d21=_0x2b485b;return _0x557589['item'][_0x380d21('0x209e')]!==undefined?_0x557589[_0x380d21('0xa9c')][_0x380d21('0x209e')]:_0x380d21('0xbc2');}function _0x451960(){const _0x4f1085=_0x2b485b;_0x304854[_0x4f1085('0x237e')]();}}const _0x4dbaec=_0x4984f6;_0x470f7e[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0xcbc'),_0x21d0f5('0x16b9'),_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),_0x21d0f5('0xb6b'),_0x21d0f5('0x17ff'),'setting',_0x21d0f5('0x12a5'),_0x21d0f5('0x142d'),_0x21d0f5('0x1150'),_0x21d0f5('0x54e'),_0x21d0f5('0x1d63')];function _0x470f7e(_0x15d357,_0x1a6c65,_0x3aed9b,_0x2e48a8,_0x1bb7d0,_0x538d0a,_0x5c22e6,_0x5ee6b3,_0x4bc27f,_0x4df92c,_0x5577c0,_0x113bf){const _0x4de493=_0x21d0f5,_0x2d336e=this;_0x2d336e[_0x4de493('0x32a')]=_0x4df92c[_0x4de493('0x2428')](),_0x2d336e[_0x4de493('0x17ff')]=_0x538d0a,_0x2d336e[_0x4de493('0x23e1')]=_0x5c22e6,_0x2d336e[_0x4de493('0x2834')]=_0x2d336e[_0x4de493('0x23e1')][_0x4de493('0x1d4')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2d336e[_0x4de493('0x1d9a')]=_0x1a6c65[_0x4de493('0x1797')]()+_0x4de493('0x16a1')+_0x1a6c65[_0x4de493('0x14ec')](),_0x2d336e[_0x4de493('0x54e')]=_0x5577c0||_0x15d357[_0x4de493('0x1ab3')]['zohoAccount']||{},_0x2d336e[_0x4de493('0x1d63')]=_0x113bf&&_0x113bf[_0x4de493('0x27d2')]==0x1?_0x113bf[_0x4de493('0x19b2')][0x0]:null,_0x2d336e[_0x4de493('0xb25')]=_0x4df92c[_0x4de493('0x1530')](_0x2d336e[_0x4de493('0x1d63')]?_0x2d336e[_0x4de493('0x1d63')][_0x4de493('0xb25')]:null),_0x2d336e['hasModulePermissions']={},_0x2d336e[_0x4de493('0x1179')]=_0x15d357['params'][_0x4de493('0x205c')]||0x0,_0x2d336e['alert']=_0x4bc27f[_0x4de493('0x870')],_0x2d336e['gotoZohoAccounts']=_0x58a443,_0x2d336e[_0x4de493('0x1c7b')]=_0x3601c7;function _0x58a443(){const _0x1b7aff=_0x4de493;_0x15d357['go'](_0x1b7aff('0xe80'),{},{'reload':_0x1b7aff('0xe80')});}function _0x3601c7(){const _0x3c519e=_0x4de493;_0x5ee6b3[_0x3c519e('0x1437')][_0x3c519e('0x5ab')]({'id':_0x2d336e[_0x3c519e('0x54e')]['id']},_0x2d336e['zohoAccount'])['$promise'][_0x3c519e('0x11bf')](function(){const _0x535afb=_0x3c519e;_0x4bc27f[_0x535afb('0x2693')]({'title':'ZohoAccount\x20updated!','msg':_0x2d336e['zohoAccount'][_0x535afb('0x1909')]?_0x2d336e['zohoAccount'][_0x535afb('0x1909')]+_0x535afb('0xd7'):''});})['catch'](function(_0x491a53){const _0xc8eb27=_0x3c519e;_0x4bc27f[_0xc8eb27('0x255')]({'title':_0x491a53[_0xc8eb27('0xff9')]?'API:'+_0x491a53[_0xc8eb27('0xff9')]+_0xc8eb27('0xb0b')+_0x491a53[_0xc8eb27('0x212f')]:_0xc8eb27('0xc0b'),'msg':_0x491a53[_0xc8eb27('0x4e8')]?JSON[_0xc8eb27('0x3e')](_0x491a53[_0xc8eb27('0x4e8')]):_0x491a53[_0xc8eb27('0xaab')]()});});}}const _0x28c432=_0x470f7e,_0x5e3c0d=_0x351988['p']+_0x21d0f5('0x92d');_0x4233d8[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),'$window',_0x21d0f5('0xcbc'),'$mdSidenav',_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),_0x21d0f5('0x17f5'),_0x21d0f5('0xb6b'),_0x21d0f5('0xfbf'),_0x21d0f5('0x25bc'),_0x21d0f5('0x1d63'),_0x21d0f5('0x12a5'),'msUtils','toasty',_0x21d0f5('0x1150'),_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1')];function _0x4233d8(_0x1227b4,_0x3be9a7,_0x2d4152,_0x5c36bd,_0x3452c8,_0x34d44a,_0x1e538f,_0x46f004,_0x13504b,_0x94be14,_0xcaa6f6,_0x508f23,_0x28853b,_0x38de9e,_0x1a3ef0,_0x252191,_0x2e9249){const _0x18d960=_0x21d0f5,_0x36d86b=this;_0x36d86b[_0x18d960('0x17ff')]=_0x252191,_0x36d86b[_0x18d960('0x23e1')]=_0x2e9249,_0x36d86b[_0x18d960('0x32a')]=_0x1a3ef0['getCurrentUser'](),_0x36d86b[_0x18d960('0xfbf')]=_0x13504b||{'count':0x0,'rows':[]},_0x36d86b[_0x18d960('0x25bc')]=_0x94be14,_0x36d86b[_0x18d960('0x1d63')]=_0xcaa6f6&&_0xcaa6f6[_0x18d960('0x27d2')]==0x1?_0xcaa6f6[_0x18d960('0x19b2')][0x0]:null,_0x36d86b[_0x18d960('0xb25')]=_0x1a3ef0[_0x18d960('0x1530')](_0x36d86b[_0x18d960('0x1d63')]?_0x36d86b[_0x18d960('0x1d63')][_0x18d960('0xb25')]:null),_0x36d86b['table']=_0x18d960('0xfbf'),_0x36d86b[_0x18d960('0x724')]='',_0x36d86b['listOrderAsc']=null,_0x36d86b[_0x18d960('0x2e5')]=[],_0x36d86b['query']={'fields':_0x18d960('0x215e'),'limit':0xa,'page':0x1},_0x36d86b[_0x18d960('0x1e2d')]=_0x36f548()[_0x18d960('0x2130')]([{'option':_0x18d960('0x1ea9'),'value':'\x27zoho.com\x27'},{'option':_0x18d960('0x1914'),'value':_0x18d960('0x2316')}],function(_0x3fcab9){const _0x3e63a6=_0x18d960;return _0x36f548()[_0x3e63a6('0x814')](_0x3fcab9[_0x3e63a6('0x10cc')],new RegExp('\x27','g'),'');}),_0x36d86b['arrayzone']=_0x36f548()[_0x18d960('0x2130')]([{'option':'US','value':'\x27US\x27'},{'option':'AU','value':_0x18d960('0x13d2')},{'option':'EU','value':_0x18d960('0x2537')},{'option':'IN','value':'\x27IN\x27'},{'option':'CN','value':_0x18d960('0x583')}],function(_0x583f39){const _0x26f5b8=_0x18d960;return _0x36f548()[_0x26f5b8('0x814')](_0x583f39[_0x26f5b8('0x10cc')],new RegExp('\x27','g'),'');}),_0x36d86b[_0x18d960('0x757')]=_0x3b381a,_0x36d86b[_0x18d960('0x776')]=_0x3019b7,_0x36d86b[_0x18d960('0x549')]=_0x2b9dc3,_0x36d86b[_0x18d960('0x2693')]=_0x48a674,_0x36d86b[_0x18d960('0x1aed')]=_0x679f1f,_0x36d86b[_0x18d960('0x22c5')]=_0x1ac476,_0x36d86b[_0x18d960('0x208a')]=_0x1be49b,_0x36d86b[_0x18d960('0x112d')]=_0x1cbaf7,_0x36d86b[_0x18d960('0x14c9')]=_0x12b9c1,_0x36d86b[_0x18d960('0x268a')]=_0xe847bd,_0x36d86b[_0x18d960('0x83b')]=_0x27b7a8;function _0x3b381a(_0x242909){_0x2d4152['go']('app.integrations.zohoAccounts.edit',{'id':_0x242909['id'],'zohoAccount':_0x242909,'crudPermissions':_0x36d86b['crudPermissions']});}function _0x3019b7(_0x2ea443){const _0x2ee9c6=_0x18d960;return _0x508f23['intZohoAccount'][_0x2ee9c6('0x8ff')]({'id':_0x2ea443['id'],'test':!![]})[_0x2ee9c6('0x1549')][_0x2ee9c6('0x11bf')](function(){const _0x2f13a0=_0x2ee9c6;_0x38de9e[_0x2f13a0('0x2693')]({'title':_0x2f13a0('0x1e39'),'msg':_0x2f13a0('0x1b13')});})[_0x2ee9c6('0x151d')](function(_0x27e2a1){const _0x5aed4c=_0x2ee9c6;_0x38de9e[_0x5aed4c('0x255')]({'title':'ZohoAccount\x20properly\x20tested','msg':_0x27e2a1['data']?_0x27e2a1[_0x5aed4c('0x4e8')]['message']?_0x27e2a1[_0x5aed4c('0x4e8')][_0x5aed4c('0x1b86')]:JSON[_0x5aed4c('0x3e')](_0x27e2a1['data']):_0x27e2a1[_0x5aed4c('0xaab')]()});});}function _0x2b9dc3(_0xd2c39a,_0x36f2f3){const _0x219a72=_0x18d960,_0x1f262a=_0x3452c8[_0x219a72('0x132b')]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x36f548()[_0x219a72('0x13cf')](_0x219a72('0x54e'))+'?')['htmlContent'](_0x219a72('0x2061')+(_0xd2c39a[_0x219a72('0x1909')]||_0x219a72('0x54e'))+''+'\x20will\x20be\x20deleted.')[_0x219a72('0xb2e')](_0x219a72('0x1a4e'))[_0x219a72('0x1e25')](_0x36f2f3)['ok']('OK')[_0x219a72('0x26c9')](_0x219a72('0x772'));_0x3452c8['show'](_0x1f262a)[_0x219a72('0x11bf')](function(){_0x1be49b(_0xd2c39a);},function(){const _0x53cc3a=_0x219a72;console[_0x53cc3a('0xc78')](_0x53cc3a('0x772'));});}let _0x759da8=!![],_0x139875=0x1;_0x1227b4[_0x18d960('0x2087')](_0x18d960('0x842'),function(_0x5f4081,_0xe750cc){const _0x503ad0=_0x18d960;_0x759da8?_0x1e538f(function(){_0x759da8=![];}):(!_0xe750cc&&(_0x139875=_0x36d86b[_0x503ad0('0x1f2a')]['page']),_0x5f4081!==_0xe750cc&&(_0x36d86b[_0x503ad0('0x1f2a')]['page']=0x1),!_0x5f4081&&(_0x36d86b[_0x503ad0('0x1f2a')][_0x503ad0('0x1c2')]=_0x139875),_0x36d86b[_0x503ad0('0x1aed')]());});function _0x48a674(_0x5e836d){const _0x415d74=_0x18d960;_0x36d86b[_0x415d74('0xfbf')]=_0x5e836d||{'count':0x0,'rows':[]};}function _0x679f1f(){const _0x12da53=_0x18d960;_0x36d86b[_0x12da53('0x1f2a')][_0x12da53('0x1393')]=(_0x36d86b[_0x12da53('0x1f2a')][_0x12da53('0x1c2')]-0x1)*_0x36d86b[_0x12da53('0x1f2a')][_0x12da53('0xd5c')],_0x1a3ef0['hasRole']('admin')?_0x36d86b[_0x12da53('0x13f')]=_0x508f23[_0x12da53('0x1437')]['get'](_0x36d86b[_0x12da53('0x1f2a')],_0x48a674)[_0x12da53('0x1549')]:(_0x36d86b[_0x12da53('0x1f2a')]['id']=_0x36d86b[_0x12da53('0x25bc')]['id'],_0x36d86b[_0x12da53('0x1f2a')][_0x12da53('0xe6')]=_0x12da53('0xa0'),_0x36d86b[_0x12da53('0x13f')]=_0x508f23[_0x12da53('0x25bc')][_0x12da53('0x228e')](_0x36d86b[_0x12da53('0x1f2a')],_0x48a674)['$promise']);}function _0x1ac476(_0x4e472b,_0x59cd76){const _0x4e538e=_0x18d960;_0x3452c8[_0x4e538e('0xb9')]({'controller':_0x4e538e('0x2a7'),'controllerAs':'vm','templateUrl':_0x5e3c0d,'parent':angular[_0x4e538e('0x1e73')](_0x34d44a[_0x4e538e('0x1d2')]),'targetEvent':_0x4e472b,'clickOutsideToClose':!![],'locals':{'zohoAccount':_0x59cd76,'zohoAccounts':_0x36d86b[_0x4e538e('0xfbf')][_0x4e538e('0x19b2')],'license':_0x36d86b[_0x4e538e('0x17ff')],'setting':_0x36d86b[_0x4e538e('0x23e1')],'crudPermissions':_0x36d86b[_0x4e538e('0xb25')]}});}function _0x1be49b(_0xf3c892){const _0x46b9fd=_0x18d960;_0x508f23[_0x46b9fd('0x1437')][_0x46b9fd('0x2088')]({'id':_0xf3c892['id']})[_0x46b9fd('0x1549')]['then'](function(){const _0x44e719=_0x46b9fd;_0x36f548()[_0x44e719('0x14a5')](_0x36d86b[_0x44e719('0xfbf')]['rows'],{'id':_0xf3c892['id']}),_0x36d86b['zohoAccounts'][_0x44e719('0x27d2')]-=0x1,!_0x36d86b[_0x44e719('0xfbf')][_0x44e719('0x19b2')][_0x44e719('0x1e22')]&&_0x36d86b[_0x44e719('0x1aed')](),_0x38de9e[_0x44e719('0x2693')]({'title':_0x36f548()[_0x44e719('0x13cf')](_0x44e719('0x1f19'))+_0x44e719('0x2113'),'msg':_0xf3c892[_0x44e719('0x1909')]?_0xf3c892[_0x44e719('0x1909')]+'\x20has\x20been\x20deleted!':''});})[_0x46b9fd('0x151d')](function(_0xa5e34e){const _0x354cea=_0x46b9fd;if(_0xa5e34e[_0x354cea('0x4e8')]&&_0xa5e34e['data'][_0x354cea('0x120f')]&&_0xa5e34e[_0x354cea('0x4e8')]['errors'][_0x354cea('0x1e22')]){_0x36d86b[_0x354cea('0x120f')]=_0xa5e34e['data'][_0x354cea('0x120f')]||[{'message':_0xa5e34e['toString'](),'type':_0x354cea('0x1b49')}];for(let _0x45cc4d=0x0;_0x45cc4d<_0xa5e34e[_0x354cea('0x4e8')][_0x354cea('0x120f')]['length'];_0x45cc4d++){_0x38de9e['error']({'title':_0xa5e34e[_0x354cea('0x4e8')][_0x354cea('0x120f')][_0x45cc4d][_0x354cea('0x19fd')],'msg':_0xa5e34e[_0x354cea('0x4e8')][_0x354cea('0x120f')][_0x45cc4d][_0x354cea('0x1b86')]});}}else _0x38de9e['error']({'title':_0xa5e34e[_0x354cea('0xff9')]?_0x354cea('0x574')+_0xa5e34e[_0x354cea('0xff9')]+'\x20-\x20'+_0xa5e34e[_0x354cea('0x212f')]:_0x354cea('0x1b49'),'msg':_0xa5e34e[_0x354cea('0x4e8')]?JSON['stringify'](_0xa5e34e[_0x354cea('0x4e8')]['message']):_0xa5e34e['message']||_0xa5e34e[_0x354cea('0xaab')]()});});}function _0x1cbaf7(){const _0x31d055=_0x18d960,_0x28c35e=angular[_0x31d055('0x6fb')](_0x36d86b[_0x31d055('0x2e5')]);return _0x36d86b[_0x31d055('0x2e5')]=[],_0x28c35e;}function _0x12b9c1(_0xc850f6){const _0x11e0e3=_0x18d960,_0x21a390=_0x3452c8['confirm']()[_0x11e0e3('0x134b')](_0x11e0e3('0x25e0'))[_0x11e0e3('0x1d03')](_0x11e0e3('0x2061')+_0x36d86b[_0x11e0e3('0x2e5')][_0x11e0e3('0x1e22')]+_0x11e0e3('0xac6')+'\x20will\x20be\x20deleted.')[_0x11e0e3('0xb2e')](_0x11e0e3('0x11d6'))[_0x11e0e3('0x1e25')](_0xc850f6)['ok']('OK')[_0x11e0e3('0x26c9')](_0x11e0e3('0x772'));_0x3452c8[_0x11e0e3('0xb9')](_0x21a390)[_0x11e0e3('0x11bf')](function(){const _0x48acc7=_0x11e0e3;_0x36d86b[_0x48acc7('0x2e5')]['forEach'](function(_0x246cc7){_0x1be49b(_0x246cc7);}),_0x36d86b[_0x48acc7('0x2e5')]=[];});}function _0xe847bd(){_0x36d86b['selectedZohoAccounts']=[];}function _0x27b7a8(){const _0x41ed67=_0x18d960;_0x36d86b[_0x41ed67('0x2e5')]=_0x36d86b[_0x41ed67('0xfbf')]['rows'];}}const _0x5e2f9b=_0x4233d8;_0x1ff395[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x13d6'),'$translatePartialLoaderProvider'];function _0x1ff395(_0x27db4f,_0x4f28bf){const _0x17ece3=_0x21d0f5;_0x27db4f[_0x17ece3('0x2124')]('app.integrations',{'abstract':!![],'url':_0x17ece3('0x152')})['state'](_0x17ece3('0x59b'),{'url':'/zendeskAccounts','views':{'content@app':{'templateUrl':_0x5802e7,'controller':_0x17ece3('0x14e5')}},'resolve':{'zendeskAccounts':[_0x17ece3('0x218e'),_0x17ece3('0x1150'),function(_0x5cf55c,_0x1a6adb){const _0xaa17b1=_0x17ece3;return _0x1a6adb[_0xaa17b1('0x4ee')](_0xaa17b1('0xf45'))?_0x5cf55c[_0xaa17b1('0xa28')]('intZendeskAccount@get',{'fields':'createdAt,updatedAt,id,name,type,username,remoteUri,authType,password,token,serverUrl,description','limit':0xa,'offset':0x0}):_0x5cf55c[_0xaa17b1('0xa28')](_0xaa17b1('0xb0d'),{'id':_0x1a6adb['getCurrentUser']()[_0xaa17b1('0x781')],'section':_0xaa17b1('0x95c'),'fields':'createdAt,updatedAt,id,name,type,username,remoteUri,authType,password,token,serverUrl,description','limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x17ece3('0x1150'),function(_0xe1d6e9,_0x91d98f){const _0x21cc64=_0x17ece3;return _0x91d98f[_0x21cc64('0x4ee')]('admin')?null:_0xe1d6e9[_0x21cc64('0xa28')](_0x21cc64('0x428'),{'fields':_0x21cc64('0xd30'),'id':_0x91d98f[_0x21cc64('0x2428')]()[_0x21cc64('0x781')]});}],'userProfileSection':[_0x17ece3('0x218e'),_0x17ece3('0x1150'),function(_0x5547b9,_0x36f607){const _0x2ca16e=_0x17ece3;return _0x36f607['hasRole'](_0x2ca16e('0xf45'))?null:_0x5547b9[_0x2ca16e('0xa28')](_0x2ca16e('0x2762'),{'fields':_0x2ca16e('0x36d'),'userProfileId':_0x36f607[_0x2ca16e('0x2428')]()[_0x2ca16e('0x781')],'sectionId':0x515});}]},'authenticate':!![],'permissionId':0x515,'bodyClass':_0x17ece3('0x27cb')})[_0x17ece3('0x2124')](_0x17ece3('0x253b'),{'url':_0x17ece3('0x142b'),'params':{'zendeskAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x4bd25f,'controller':'ZendeskAccountController\x20as\x20vm'}},'resolve':{'zendeskAccount':[_0x17ece3('0x218e'),_0x17ece3('0x1573'),function(_0xde4abd,_0x2c0f59){const _0x4b171f=_0x17ece3;return _0xde4abd['resolve']('intZendeskAccount@get',{'fields':_0x4b171f('0x18ff'),'id':_0x2c0f59['id']});}],'userProfileSection':[_0x17ece3('0x218e'),_0x17ece3('0x1150'),function(_0x47877f,_0x184c05){const _0x3a0fab=_0x17ece3;return _0x47877f[_0x3a0fab('0xa28')](_0x3a0fab('0x2762'),{'fields':_0x3a0fab('0x36d'),'userProfileId':_0x184c05[_0x3a0fab('0x2428')]()[_0x3a0fab('0x781')],'sectionId':0x515});}]},'authenticate':!![],'permissionId':0x515,'bodyClass':_0x17ece3('0x27cb')})[_0x17ece3('0x2124')](_0x17ece3('0x1365'),{'url':_0x17ece3('0x57'),'views':{'content@app':{'templateUrl':_0x459698,'controller':'SalesforceAccountsController\x20as\x20vm'}},'resolve':{'salesforceAccounts':[_0x17ece3('0x218e'),'Auth',function(_0xf422f2,_0x2d922d){const _0x4e1443=_0x17ece3;return _0x2d922d[_0x4e1443('0x4ee')](_0x4e1443('0xf45'))?_0xf422f2[_0x4e1443('0xa28')]('intSalesforceAccount@get',{'fields':_0x4e1443('0x12ae'),'limit':0xa,'offset':0x0}):_0xf422f2[_0x4e1443('0xa28')](_0x4e1443('0xb0d'),{'id':_0x2d922d['getCurrentUser']()['userProfileId'],'section':_0x4e1443('0x60c'),'fields':_0x4e1443('0x12ae'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x17ece3('0x218e'),_0x17ece3('0x1150'),function(_0x10dca1,_0x47999e){const _0x265204=_0x17ece3;return _0x47999e[_0x265204('0x4ee')](_0x265204('0xf45'))?null:_0x10dca1[_0x265204('0xa28')](_0x265204('0x428'),{'fields':'id,name,crudPermissions','id':_0x47999e['getCurrentUser']()[_0x265204('0x781')]});}],'userProfileSection':[_0x17ece3('0x218e'),_0x17ece3('0x1150'),function(_0x202d60,_0x23b568){const _0x22de22=_0x17ece3;return _0x23b568[_0x22de22('0x4ee')](_0x22de22('0xf45'))?null:_0x202d60[_0x22de22('0xa28')]('userProfileSection@get',{'fields':_0x22de22('0x36d'),'userProfileId':_0x23b568[_0x22de22('0x2428')]()[_0x22de22('0x781')],'sectionId':0x516});}]},'authenticate':!![],'permissionId':0x516,'bodyClass':_0x17ece3('0x27cb')})['state']('app.integrations.salesforceAccounts.edit',{'url':'/:id?tab','params':{'salesforceAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x5ddd7a,'controller':_0x17ece3('0x1e23')}},'resolve':{'salesforceAccount':[_0x17ece3('0x218e'),_0x17ece3('0x1573'),function(_0xe0583,_0x4de965){const _0xa5bc55=_0x17ece3;return _0xe0583['resolve'](_0xa5bc55('0x1dae'),{'fields':_0xa5bc55('0x12ae'),'id':_0x4de965['id']});}],'userProfileSection':[_0x17ece3('0x218e'),_0x17ece3('0x1150'),function(_0x15cb0b,_0x21e94b){const _0x12188e=_0x17ece3;return _0x15cb0b[_0x12188e('0xa28')](_0x12188e('0x2762'),{'fields':_0x12188e('0x36d'),'userProfileId':_0x21e94b[_0x12188e('0x2428')]()['userProfileId'],'sectionId':0x516});}]},'authenticate':!![],'permissionId':0x516,'bodyClass':_0x17ece3('0x27cb')})[_0x17ece3('0x2124')]('app.integrations.freshdeskAccounts',{'url':_0x17ece3('0x1a43'),'views':{'content@app':{'templateUrl':_0x52eb15,'controller':_0x17ece3('0x17ef')}},'resolve':{'freshdeskAccounts':[_0x17ece3('0x218e'),'Auth',function(_0x2d8c00,_0x2eb1f4){const _0x113762=_0x17ece3;return _0x2eb1f4[_0x113762('0x4ee')](_0x113762('0xf45'))?_0x2d8c00[_0x113762('0xa28')]('intFreshdeskAccount@get',{'fields':_0x113762('0x1a6b'),'limit':0xa,'offset':0x0}):_0x2d8c00[_0x113762('0xa28')]('userProfile@getResources',{'id':_0x2eb1f4[_0x113762('0x2428')]()[_0x113762('0x781')],'section':_0x113762('0x1f65'),'fields':_0x113762('0x1a6b'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x17ece3('0x218e'),_0x17ece3('0x1150'),function(_0x15b1ed,_0x11ac76){const _0x25ce85=_0x17ece3;return _0x11ac76[_0x25ce85('0x4ee')](_0x25ce85('0xf45'))?null:_0x15b1ed[_0x25ce85('0xa28')](_0x25ce85('0x428'),{'fields':_0x25ce85('0xd30'),'id':_0x11ac76[_0x25ce85('0x2428')]()['userProfileId']});}],'userProfileSection':['apiResolver',_0x17ece3('0x1150'),function(_0x58c5fa,_0x143940){const _0x4ae8d5=_0x17ece3;return _0x143940[_0x4ae8d5('0x4ee')](_0x4ae8d5('0xf45'))?null:_0x58c5fa[_0x4ae8d5('0xa28')]('userProfileSection@get',{'fields':_0x4ae8d5('0x36d'),'userProfileId':_0x143940[_0x4ae8d5('0x2428')]()[_0x4ae8d5('0x781')],'sectionId':0x517});}]},'authenticate':!![],'permissionId':0x517,'bodyClass':_0x17ece3('0x27cb')})['state'](_0x17ece3('0x1de5'),{'url':_0x17ece3('0x142b'),'params':{'freshdeskAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0xc43925,'controller':_0x17ece3('0xddd')}},'resolve':{'freshdeskAccount':[_0x17ece3('0x218e'),_0x17ece3('0x1573'),function(_0x124df,_0x364ecd){const _0x321db0=_0x17ece3;return _0x124df['resolve']('intFreshdeskAccount@get',{'fields':_0x321db0('0x1a6b'),'id':_0x364ecd['id']});}],'userProfileSection':[_0x17ece3('0x218e'),'Auth',function(_0x1a3e8d,_0x554111){const _0x3d609f=_0x17ece3;return _0x1a3e8d[_0x3d609f('0xa28')]('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x554111[_0x3d609f('0x2428')]()['userProfileId'],'sectionId':0x517});}]},'authenticate':!![],'permissionId':0x517,'bodyClass':_0x17ece3('0x27cb')})['state'](_0x17ece3('0x633'),{'url':_0x17ece3('0x9fb'),'views':{'content@app':{'templateUrl':_0x120b1b,'controller':_0x17ece3('0x279e')}},'resolve':{'sugarcrmAccounts':[_0x17ece3('0x218e'),_0x17ece3('0x1150'),function(_0x5eca50,_0x5ccb04){const _0x34bab9=_0x17ece3;return _0x5ccb04[_0x34bab9('0x4ee')](_0x34bab9('0xf45'))?_0x5eca50[_0x34bab9('0xa28')](_0x34bab9('0x258f'),{'fields':_0x34bab9('0x1143'),'limit':0xa,'offset':0x0}):_0x5eca50[_0x34bab9('0xa28')]('userProfile@getResources',{'id':_0x5ccb04[_0x34bab9('0x2428')]()[_0x34bab9('0x781')],'section':_0x34bab9('0x280b'),'fields':'createdAt,updatedAt,id,name,username,remoteUri,password,serverUrl,description','limit':0xa,'offset':0x0});}],'userProfile':[_0x17ece3('0x218e'),_0x17ece3('0x1150'),function(_0x5335c0,_0x591f19){const _0x41a8c7=_0x17ece3;return _0x591f19['hasRole'](_0x41a8c7('0xf45'))?null:_0x5335c0['resolve'](_0x41a8c7('0x428'),{'fields':_0x41a8c7('0xd30'),'id':_0x591f19['getCurrentUser']()[_0x41a8c7('0x781')]});}],'userProfileSection':[_0x17ece3('0x218e'),_0x17ece3('0x1150'),function(_0x129f07,_0x511a9d){const _0x2d6adb=_0x17ece3;return _0x511a9d[_0x2d6adb('0x4ee')](_0x2d6adb('0xf45'))?null:_0x129f07[_0x2d6adb('0xa28')]('userProfileSection@get',{'fields':_0x2d6adb('0x36d'),'userProfileId':_0x511a9d[_0x2d6adb('0x2428')]()[_0x2d6adb('0x781')],'sectionId':0x519});}]},'authenticate':!![],'permissionId':0x519,'bodyClass':'integrations'})[_0x17ece3('0x2124')](_0x17ece3('0x2263'),{'url':_0x17ece3('0x142b'),'params':{'sugarcrmAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x8b3f5a,'controller':_0x17ece3('0x1495')}},'resolve':{'sugarcrmAccount':[_0x17ece3('0x218e'),_0x17ece3('0x1573'),function(_0x18f5b4,_0x1d3779){const _0x7e3a46=_0x17ece3;return _0x18f5b4[_0x7e3a46('0xa28')](_0x7e3a46('0x258f'),{'fields':_0x7e3a46('0x1143'),'id':_0x1d3779['id']});}],'userProfileSection':[_0x17ece3('0x218e'),_0x17ece3('0x1150'),function(_0x26433d,_0x2b1caf){const _0xc588a5=_0x17ece3;return _0x26433d[_0xc588a5('0xa28')](_0xc588a5('0x2762'),{'fields':_0xc588a5('0x36d'),'userProfileId':_0x2b1caf[_0xc588a5('0x2428')]()[_0xc588a5('0x781')],'sectionId':0x519});}]},'authenticate':!![],'permissionId':0x519,'bodyClass':_0x17ece3('0x27cb')})[_0x17ece3('0x2124')](_0x17ece3('0x20f6'),{'url':_0x17ece3('0x1c37'),'views':{'content@app':{'templateUrl':_0x45169e,'controller':'DeskAccountsController\x20as\x20vm'}},'resolve':{'deskAccounts':[_0x17ece3('0x218e'),_0x17ece3('0x1150'),function(_0x1abdf4,_0x54271f){const _0x3fedd1=_0x17ece3;return _0x54271f['hasRole'](_0x3fedd1('0xf45'))?_0x1abdf4['resolve'](_0x3fedd1('0x1afd'),{'fields':'createdAt,updatedAt,id,name,type,remoteUri,authType,username,password,serverUrl,description','limit':0xa,'offset':0x0}):_0x1abdf4[_0x3fedd1('0xa28')]('userProfile@getResources',{'id':_0x54271f[_0x3fedd1('0x2428')]()[_0x3fedd1('0x781')],'section':_0x3fedd1('0x56f'),'fields':_0x3fedd1('0x248f'),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x17ece3('0x1150'),function(_0x1e3902,_0xe459c7){const _0x1b4736=_0x17ece3;return _0xe459c7[_0x1b4736('0x4ee')](_0x1b4736('0xf45'))?null:_0x1e3902[_0x1b4736('0xa28')](_0x1b4736('0x428'),{'fields':_0x1b4736('0xd30'),'id':_0xe459c7[_0x1b4736('0x2428')]()['userProfileId']});}],'userProfileSection':[_0x17ece3('0x218e'),_0x17ece3('0x1150'),function(_0x27e4bb,_0x1f293f){const _0x46d23d=_0x17ece3;return _0x1f293f[_0x46d23d('0x4ee')](_0x46d23d('0xf45'))?null:_0x27e4bb[_0x46d23d('0xa28')](_0x46d23d('0x2762'),{'fields':_0x46d23d('0x36d'),'userProfileId':_0x1f293f['getCurrentUser']()[_0x46d23d('0x781')],'sectionId':0x51a});}]},'authenticate':!![],'permissionId':0x51a,'bodyClass':'integrations'})[_0x17ece3('0x2124')](_0x17ece3('0x45b'),{'url':_0x17ece3('0x142b'),'params':{'deskAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x1e23ee,'controller':_0x17ece3('0x2231')}},'resolve':{'deskAccount':[_0x17ece3('0x218e'),_0x17ece3('0x1573'),function(_0x20a28a,_0x32224f){const _0x3f7199=_0x17ece3;return _0x20a28a[_0x3f7199('0xa28')]('intDeskAccount@get',{'fields':_0x3f7199('0x248f'),'id':_0x32224f['id']});}],'userProfileSection':[_0x17ece3('0x218e'),_0x17ece3('0x1150'),function(_0xa5ccad,_0x71843f){const _0x18763c=_0x17ece3;return _0xa5ccad['resolve'](_0x18763c('0x2762'),{'fields':_0x18763c('0x36d'),'userProfileId':_0x71843f[_0x18763c('0x2428')]()[_0x18763c('0x781')],'sectionId':0x51a});}]},'authenticate':!![],'permissionId':0x51a,'bodyClass':_0x17ece3('0x27cb')})[_0x17ece3('0x2124')](_0x17ece3('0xe80'),{'url':'/zohoAccounts','views':{'content@app':{'templateUrl':_0x473ad2,'controller':_0x17ece3('0x1e57')}},'resolve':{'zohoAccounts':[_0x17ece3('0x218e'),_0x17ece3('0x1150'),function(_0x14f897,_0x59e1fe){const _0x5929ad=_0x17ece3;return _0x59e1fe[_0x5929ad('0x4ee')](_0x5929ad('0xf45'))?_0x14f897['resolve'](_0x5929ad('0x1692'),{'fields':_0x5929ad('0x215e'),'limit':0xa,'offset':0x0}):_0x14f897[_0x5929ad('0xa28')](_0x5929ad('0xb0d'),{'id':_0x59e1fe[_0x5929ad('0x2428')]()[_0x5929ad('0x781')],'section':_0x5929ad('0xa0'),'fields':'createdAt,updatedAt,id,name,host,zone,clientId,clientSecret,code,refreshToken,serverUrl,description','limit':0xa,'offset':0x0});}],'userProfile':[_0x17ece3('0x218e'),_0x17ece3('0x1150'),function(_0x22a0a0,_0x2b9ba3){const _0x571579=_0x17ece3;return _0x2b9ba3[_0x571579('0x4ee')](_0x571579('0xf45'))?null:_0x22a0a0[_0x571579('0xa28')](_0x571579('0x428'),{'fields':_0x571579('0xd30'),'id':_0x2b9ba3[_0x571579('0x2428')]()[_0x571579('0x781')]});}],'userProfileSection':[_0x17ece3('0x218e'),'Auth',function(_0x34c1a4,_0x2021fa){const _0x481ccd=_0x17ece3;return _0x2021fa[_0x481ccd('0x4ee')](_0x481ccd('0xf45'))?null:_0x34c1a4[_0x481ccd('0xa28')](_0x481ccd('0x2762'),{'fields':_0x481ccd('0x36d'),'userProfileId':_0x2021fa[_0x481ccd('0x2428')]()[_0x481ccd('0x781')],'sectionId':0x51b});}]},'authenticate':!![],'permissionId':0x51b,'bodyClass':_0x17ece3('0x27cb')})['state'](_0x17ece3('0x1759'),{'url':'/:id?tab','params':{'zohoAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0xafaecc,'controller':_0x17ece3('0xd7b')}},'resolve':{'zohoAccount':['apiResolver',_0x17ece3('0x1573'),function(_0x2a1e4a,_0x4e7cfe){const _0x12a8a1=_0x17ece3;return _0x2a1e4a[_0x12a8a1('0xa28')]('intZohoAccount@get',{'fields':_0x12a8a1('0x215e'),'id':_0x4e7cfe['id']});}],'userProfileSection':[_0x17ece3('0x218e'),_0x17ece3('0x1150'),function(_0x29b0d5,_0x576247){const _0x4b84a4=_0x17ece3;return _0x29b0d5['resolve'](_0x4b84a4('0x2762'),{'fields':_0x4b84a4('0x36d'),'userProfileId':_0x576247[_0x4b84a4('0x2428')]()[_0x4b84a4('0x781')],'sectionId':0x51b});}]},'authenticate':!![],'permissionId':0x51b,'bodyClass':'integrations'})[_0x17ece3('0x2124')](_0x17ece3('0x1258'),{'url':_0x17ece3('0x144a'),'views':{'content@app':{'templateUrl':_0x3b471d,'controller':'VtigerAccountsController\x20as\x20vm'}},'resolve':{'vtigerAccounts':['apiResolver','Auth',function(_0x42f463,_0x4de18f){const _0x273922=_0x17ece3;return _0x4de18f[_0x273922('0x4ee')](_0x273922('0xf45'))?_0x42f463[_0x273922('0xa28')](_0x273922('0x11ae'),{'fields':_0x273922('0x1aa9'),'limit':0xa,'offset':0x0}):_0x42f463[_0x273922('0xa28')](_0x273922('0xb0d'),{'id':_0x4de18f[_0x273922('0x2428')]()[_0x273922('0x781')],'section':'VtigerAccounts','fields':_0x273922('0x1aa9'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x17ece3('0x218e'),_0x17ece3('0x1150'),function(_0x398ed5,_0x324fbb){const _0x2cf890=_0x17ece3;return _0x324fbb[_0x2cf890('0x4ee')](_0x2cf890('0xf45'))?null:_0x398ed5[_0x2cf890('0xa28')]('userProfile@get',{'fields':'id,name,crudPermissions','id':_0x324fbb['getCurrentUser']()[_0x2cf890('0x781')]});}],'userProfileSection':[_0x17ece3('0x218e'),_0x17ece3('0x1150'),function(_0x5e6cc0,_0x460086){const _0xaa9624=_0x17ece3;return _0x460086[_0xaa9624('0x4ee')](_0xaa9624('0xf45'))?null:_0x5e6cc0['resolve'](_0xaa9624('0x2762'),{'fields':_0xaa9624('0x36d'),'userProfileId':_0x460086[_0xaa9624('0x2428')]()['userProfileId'],'sectionId':0x51c});}]},'authenticate':!![],'permissionId':0x51c,'bodyClass':_0x17ece3('0x27cb')})['state'](_0x17ece3('0x275e'),{'url':_0x17ece3('0x142b'),'params':{'vtigerAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x26319d,'controller':'VtigerAccountController\x20as\x20vm'}},'resolve':{'vtigerAccount':[_0x17ece3('0x218e'),_0x17ece3('0x1573'),function(_0x41cced,_0x5229d3){const _0x461511=_0x17ece3;return _0x41cced[_0x461511('0xa28')]('intVtigerAccount@get',{'fields':_0x461511('0x1aa9'),'id':_0x5229d3['id']});}],'userProfileSection':[_0x17ece3('0x218e'),'Auth',function(_0x61c157,_0x52b7c7){const _0xbfa58=_0x17ece3;return _0x61c157[_0xbfa58('0xa28')](_0xbfa58('0x2762'),{'fields':_0xbfa58('0x36d'),'userProfileId':_0x52b7c7[_0xbfa58('0x2428')]()['userProfileId'],'sectionId':0x51c});}]},'authenticate':!![],'permissionId':0x51c,'bodyClass':_0x17ece3('0x27cb')})[_0x17ece3('0x2124')](_0x17ece3('0x7cc'),{'url':'/dynamics365Accounts','views':{'content@app':{'templateUrl':_0x4a34d0,'controller':_0x17ece3('0x537')}},'resolve':{'dynamics365Accounts':['apiResolver','Auth',function(_0x74bdec,_0x32eb45){const _0x3ec4e2=_0x17ece3;return _0x32eb45[_0x3ec4e2('0x4ee')](_0x3ec4e2('0xf45'))?_0x74bdec[_0x3ec4e2('0xa28')](_0x3ec4e2('0x2396'),{'fields':_0x3ec4e2('0x24f3'),'limit':0xa,'offset':0x0}):_0x74bdec['resolve']('userProfile@getResources',{'id':_0x32eb45[_0x3ec4e2('0x2428')]()[_0x3ec4e2('0x781')],'section':_0x3ec4e2('0x71c'),'fields':'createdAt,updatedAt,id,name,username,password,remoteUri,tenantId,clientId,clientSecret,serverUrl,description','limit':0xa,'offset':0x0});}],'userProfile':[_0x17ece3('0x218e'),_0x17ece3('0x1150'),function(_0x14b6d9,_0x212ec0){const _0x111c1c=_0x17ece3;return _0x212ec0['hasRole'](_0x111c1c('0xf45'))?null:_0x14b6d9[_0x111c1c('0xa28')](_0x111c1c('0x428'),{'fields':_0x111c1c('0xd30'),'id':_0x212ec0[_0x111c1c('0x2428')]()[_0x111c1c('0x781')]});}],'userProfileSection':['apiResolver',_0x17ece3('0x1150'),function(_0x3e60ea,_0x36f6e1){const _0x2a8fa9=_0x17ece3;return _0x36f6e1[_0x2a8fa9('0x4ee')]('admin')?null:_0x3e60ea[_0x2a8fa9('0xa28')]('userProfileSection@get',{'fields':_0x2a8fa9('0x36d'),'userProfileId':_0x36f6e1[_0x2a8fa9('0x2428')]()[_0x2a8fa9('0x781')],'sectionId':0x51d});}]},'authenticate':!![],'permissionId':0x51d,'bodyClass':'integrations'})['state'](_0x17ece3('0x1600'),{'url':_0x17ece3('0x142b'),'params':{'dynamics365Account':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0xc082ce,'controller':_0x17ece3('0x1e31')}},'resolve':{'dynamics365Account':['apiResolver',_0x17ece3('0x1573'),function(_0x58623e,_0x2056dc){const _0x17e853=_0x17ece3;return _0x58623e[_0x17e853('0xa28')](_0x17e853('0x2396'),{'fields':_0x17e853('0x24f3'),'id':_0x2056dc['id']});}],'userProfileSection':[_0x17ece3('0x218e'),_0x17ece3('0x1150'),function(_0x1f7b95,_0x277bd4){const _0x127a6b=_0x17ece3;return _0x1f7b95['resolve'](_0x127a6b('0x2762'),{'fields':_0x127a6b('0x36d'),'userProfileId':_0x277bd4[_0x127a6b('0x2428')]()[_0x127a6b('0x781')],'sectionId':0x51d});}]},'authenticate':!![],'permissionId':0x51d,'bodyClass':_0x17ece3('0x27cb')})['state']('app.integrations.servicenowAccounts',{'url':_0x17ece3('0x158a'),'views':{'content@app':{'templateUrl':_0x2d97a0,'controller':_0x17ece3('0x576')}},'resolve':{'servicenowAccounts':[_0x17ece3('0x218e'),_0x17ece3('0x1150'),function(_0x14797e,_0x55e959){const _0x568e81=_0x17ece3;return _0x55e959['hasRole'](_0x568e81('0xf45'))?_0x14797e[_0x568e81('0xa28')](_0x568e81('0x214c'),{'fields':_0x568e81('0x1c27'),'limit':0xa,'offset':0x0}):_0x14797e[_0x568e81('0xa28')]('userProfile@getResources',{'id':_0x55e959[_0x568e81('0x2428')]()[_0x568e81('0x781')],'section':_0x568e81('0x774'),'fields':_0x568e81('0x1c27'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x17ece3('0x218e'),_0x17ece3('0x1150'),function(_0x2bb5ef,_0x683965){const _0x115b50=_0x17ece3;return _0x683965['hasRole'](_0x115b50('0xf45'))?null:_0x2bb5ef[_0x115b50('0xa28')]('userProfile@get',{'fields':'id,name,crudPermissions','id':_0x683965['getCurrentUser']()['userProfileId']});}],'userProfileSection':[_0x17ece3('0x218e'),_0x17ece3('0x1150'),function(_0x1aafcd,_0x20b293){const _0x375801=_0x17ece3;return _0x20b293[_0x375801('0x4ee')](_0x375801('0xf45'))?null:_0x1aafcd[_0x375801('0xa28')](_0x375801('0x2762'),{'fields':_0x375801('0x36d'),'userProfileId':_0x20b293[_0x375801('0x2428')]()[_0x375801('0x781')],'sectionId':0x51e});}]},'authenticate':!![],'permissionId':0x51e,'bodyClass':_0x17ece3('0x27cb')})['state'](_0x17ece3('0xf99'),{'url':'/:id?tab','params':{'servicenowAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x1511b3,'controller':_0x17ece3('0x1472')}},'resolve':{'servicenowAccount':[_0x17ece3('0x218e'),_0x17ece3('0x1573'),function(_0x4708cd,_0x47db20){const _0x73abc6=_0x17ece3;return _0x4708cd[_0x73abc6('0xa28')](_0x73abc6('0x214c'),{'fields':'createdAt,updatedAt,id,name,username,password,email,remoteUri,serverUrl,description','id':_0x47db20['id']});}],'userProfileSection':[_0x17ece3('0x218e'),_0x17ece3('0x1150'),function(_0x31e26f,_0x236485){const _0x2559ee=_0x17ece3;return _0x31e26f[_0x2559ee('0xa28')](_0x2559ee('0x2762'),{'fields':_0x2559ee('0x36d'),'userProfileId':_0x236485[_0x2559ee('0x2428')]()[_0x2559ee('0x781')],'sectionId':0x51e});}]},'authenticate':!![],'permissionId':0x51e,'bodyClass':_0x17ece3('0x27cb')})[_0x17ece3('0x2124')](_0x17ece3('0x45d'),{'url':_0x17ece3('0x1b6b'),'views':{'content@app':{'templateUrl':_0x1bbf64,'controller':_0x17ece3('0xce6')}},'resolve':{'freshsalesAccounts':[_0x17ece3('0x218e'),_0x17ece3('0x1150'),function(_0x152fb5,_0x142f21){const _0x374871=_0x17ece3;return _0x142f21['hasRole']('admin')?_0x152fb5[_0x374871('0xa28')]('intFreshsalesAccount@get',{'fields':_0x374871('0x1a6b'),'limit':0xa,'offset':0x0}):_0x152fb5['resolve'](_0x374871('0xb0d'),{'id':_0x142f21[_0x374871('0x2428')]()['userProfileId'],'section':_0x374871('0xfab'),'fields':'createdAt,updatedAt,id,name,username,remoteUri,apiKey,serverUrl,description','limit':0xa,'offset':0x0});}],'userProfile':[_0x17ece3('0x218e'),'Auth',function(_0x5743d6,_0x3e4071){const _0xed708f=_0x17ece3;return _0x3e4071[_0xed708f('0x4ee')](_0xed708f('0xf45'))?null:_0x5743d6[_0xed708f('0xa28')]('userProfile@get',{'fields':_0xed708f('0xd30'),'id':_0x3e4071[_0xed708f('0x2428')]()[_0xed708f('0x781')]});}],'userProfileSection':[_0x17ece3('0x218e'),'Auth',function(_0x3d0745,_0x4c80bf){const _0x148c34=_0x17ece3;return _0x4c80bf[_0x148c34('0x4ee')]('admin')?null:_0x3d0745['resolve']('userProfileSection@get',{'fields':_0x148c34('0x36d'),'userProfileId':_0x4c80bf['getCurrentUser']()['userProfileId'],'sectionId':0x518});}]},'authenticate':!![],'permissionId':0x518,'bodyClass':_0x17ece3('0x27cb')})[_0x17ece3('0x2124')]('app.integrations.freshsalesAccounts.edit',{'url':_0x17ece3('0x142b'),'params':{'freshsalesAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x1a673e,'controller':_0x17ece3('0x142')}},'resolve':{'freshsalesAccount':[_0x17ece3('0x218e'),'$stateParams',function(_0x5852ec,_0x5b9e35){const _0x4c50a9=_0x17ece3;return _0x5852ec[_0x4c50a9('0xa28')](_0x4c50a9('0x24e3'),{'fields':_0x4c50a9('0x1a6b'),'id':_0x5b9e35['id']});}],'userProfileSection':[_0x17ece3('0x218e'),_0x17ece3('0x1150'),function(_0x339962,_0x565395){const _0x40ff51=_0x17ece3;return _0x339962[_0x40ff51('0xa28')](_0x40ff51('0x2762'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x565395['getCurrentUser']()[_0x40ff51('0x781')],'sectionId':0x518});}]},'authenticate':!![],'permissionId':0x518,'bodyClass':'integrations'}),_0x4f28bf[_0x17ece3('0x471')]('app/main/apps/integrations');}angular[_0x21d0f5('0x2768')]('app.integrations',[_0x21d0f5('0x22d5'),'ngPassword',_0x21d0f5('0x3c4'),_0x21d0f5('0x2414'),_0x21d0f5('0xd61'),_0x21d0f5('0x2096'),_0x21d0f5('0x24a2'),_0x21d0f5('0x446'),_0x21d0f5('0x113d'),_0x21d0f5('0x21d5'),'mwFormBuilder','mwFormViewer',_0x21d0f5('0x950'),_0x21d0f5('0xf49'),'angular-cron-jobs','ngEmbed',_0x21d0f5('0x2625'),_0x21d0f5('0x1622'),'chart.js',_0x21d0f5('0xf7f')])[_0x21d0f5('0x53a')](_0x1ff395)[_0x21d0f5('0x23eb')](_0x21d0f5('0x1322'),_0x5273d8)[_0x21d0f5('0x23eb')](_0x21d0f5('0x27f7'),_0x27b57e)['controller'](_0x21d0f5('0x24dc'),_0x3ed50c)[_0x21d0f5('0x23eb')](_0x21d0f5('0x21ac'),_0x5f7b1c)[_0x21d0f5('0x23eb')](_0x21d0f5('0x985'),_0x175798)[_0x21d0f5('0x23eb')](_0x21d0f5('0x136e'),_0x1e38af)[_0x21d0f5('0x23eb')]('CreateOrEditDynamics365AccountDialogController',_0x5975e8)[_0x21d0f5('0x23eb')]('Dynamics365AccountsController',_0x44cc36)[_0x21d0f5('0x23eb')](_0x21d0f5('0x15e2'),_0x14cd80)['controller'](_0x21d0f5('0x1e80'),_0x25259f)[_0x21d0f5('0x23eb')](_0x21d0f5('0x15a8'),_0x173981)[_0x21d0f5('0x23eb')]('Dynamics365AccountController',_0x16f656)[_0x21d0f5('0x23eb')](_0x21d0f5('0x1d60'),_0x6682a8)[_0x21d0f5('0x23eb')](_0x21d0f5('0x2ec'),_0x217dbe)[_0x21d0f5('0x23eb')](_0x21d0f5('0x7'),_0x3c460c)[_0x21d0f5('0x23eb')](_0x21d0f5('0x2813'),_0x347ed)[_0x21d0f5('0x23eb')](_0x21d0f5('0x26f9'),_0x5ee398)['controller'](_0x21d0f5('0x15cd'),_0x1b9f69)[_0x21d0f5('0x23eb')](_0x21d0f5('0x25b1'),_0x4909aa)[_0x21d0f5('0x23eb')]('FreshsalesAccountConfigurationsController',_0x2bd0b8)['controller'](_0x21d0f5('0x121b'),_0x7a88a3)[_0x21d0f5('0x23eb')](_0x21d0f5('0x13c7'),_0x3ed703)[_0x21d0f5('0x23eb')](_0x21d0f5('0x2441'),_0x209f00)[_0x21d0f5('0x23eb')](_0x21d0f5('0x13fb'),_0x21a714)[_0x21d0f5('0x23eb')]('CreateOrEditSalesforceAccountDialogController',_0x211cdd)[_0x21d0f5('0x23eb')](_0x21d0f5('0x4e9'),_0x75fb0f)['controller'](_0x21d0f5('0x2147'),_0x1123ca)[_0x21d0f5('0x23eb')](_0x21d0f5('0x24db'),_0x5f4821)[_0x21d0f5('0x23eb')]('SalesforceAccountController',_0x21c20e)['controller'](_0x21d0f5('0x1d67'),_0x3216cc)['controller'](_0x21d0f5('0x1bcb'),_0x37c6cc)[_0x21d0f5('0x23eb')](_0x21d0f5('0xfe1'),_0x54e98f)[_0x21d0f5('0x23eb')]('CreateOrEditServicenowConfigurationDialogController',_0x329db4)[_0x21d0f5('0x23eb')]('CreateOrEditServicenowAccountItemDialogController',_0x314b32)[_0x21d0f5('0x23eb')](_0x21d0f5('0xcd'),_0x59b0ec)[_0x21d0f5('0x23eb')](_0x21d0f5('0x2083'),_0x1c1148)[_0x21d0f5('0x23eb')](_0x21d0f5('0xebe'),_0x482d3e)[_0x21d0f5('0x23eb')](_0x21d0f5('0x25ad'),_0xa7b02a)[_0x21d0f5('0x23eb')](_0x21d0f5('0x1689'),_0x3a2fa2)[_0x21d0f5('0x23eb')](_0x21d0f5('0x5ec'),_0x378fac)[_0x21d0f5('0x23eb')](_0x21d0f5('0x122f'),_0x23002f)['controller'](_0x21d0f5('0x288c'),_0x4db580)[_0x21d0f5('0x23eb')]('CreateOrEditVtigerAccountDialogController',_0x4e9d8e)[_0x21d0f5('0x23eb')](_0x21d0f5('0xb23'),_0x5b1a9a)[_0x21d0f5('0x23eb')]('CreateOrEditVtigerConfigurationDialogController',_0x30bf54)[_0x21d0f5('0x23eb')](_0x21d0f5('0x11d3'),_0x54c12b)[_0x21d0f5('0x23eb')](_0x21d0f5('0x2134'),_0x545fb4)[_0x21d0f5('0x23eb')](_0x21d0f5('0xcd0'),_0x41a58f)[_0x21d0f5('0x23eb')](_0x21d0f5('0x2778'),_0x1d1f3d)['controller']('CreateOrEditZendeskAccountItemDialogController',_0x4cdc99)[_0x21d0f5('0x23eb')](_0x21d0f5('0x1a7e'),_0x94874)[_0x21d0f5('0x23eb')](_0x21d0f5('0x2674'),_0x573c56)[_0x21d0f5('0x23eb')](_0x21d0f5('0x2502'),_0x6dbe62)[_0x21d0f5('0x23eb')](_0x21d0f5('0x1c0a'),_0x54fe3a)[_0x21d0f5('0x23eb')](_0x21d0f5('0x2a7'),_0x5b39bd)[_0x21d0f5('0x23eb')]('ZohoAccountConfigurationsController',_0x2daa60)[_0x21d0f5('0x23eb')](_0x21d0f5('0x1c42'),_0xd928c8)['controller'](_0x21d0f5('0x2076'),_0x4dbaec)[_0x21d0f5('0x23eb')](_0x21d0f5('0x812'),_0x28c432)[_0x21d0f5('0x23eb')](_0x21d0f5('0x1755'),_0x5e2f9b);const _0x315de7=_0x351988['p']+'src/js/modules/main/apps/settings/views/license/license.html/license.html',_0x36d2e1=_0x351988['p']+_0x21d0f5('0x1543'),_0x424220=_0x351988['p']+_0x21d0f5('0x290');_0x4581ec['$inject']=[_0x21d0f5('0x1b30'),_0x21d0f5('0x1ca2'),_0x21d0f5('0xcbc'),_0x21d0f5('0x17ff'),_0x21d0f5('0x142d'),'api'];function _0x4581ec(_0xf7c4df,_0x1e56f9,_0x7960b0,_0xaa66d,_0x144cf2,_0x1a4f60){const _0x3e58dd=_0x21d0f5,_0x460759=this;_0x460759[_0x3e58dd('0x17ff')]=_0xaa66d||{},_0x460759[_0x3e58dd('0x1401')]=0x0,_0x460759[_0x3e58dd('0x17c0')]=0x0,_0x460759[_0x3e58dd('0x156e')]=0x0,_0x460759['channels']=[{'name':_0x3e58dd('0x1bc3'),'icon':_0x3e58dd('0x22d4')},{'name':_0x3e58dd('0x1800'),'icon':_0x3e58dd('0x444')},{'name':_0x3e58dd('0x2030'),'icon':_0x3e58dd('0xedc')},{'name':_0x3e58dd('0x1b42'),'icon':_0x3e58dd('0x1767')},{'name':_0x3e58dd('0x2104'),'icon':'icon-deskphone'},{'name':'openchannel','icon':_0x3e58dd('0x1817')},{'name':'whatsapp','icon':_0x3e58dd('0x2536')}],_0x460759[_0x3e58dd('0x2213')]=[{'name':'cm','icon':'icon-account-circle'},{'name':_0x3e58dd('0x14be'),'icon':'icon-crosshairs'},{'name':'jscripty','icon':_0x3e58dd('0xcde')}],_0x460759[_0x3e58dd('0x1b85')]=[{'name':_0x3e58dd('0x75'),'icon':_0x3e58dd('0x354')},{'name':_0x3e58dd('0x1b32'),'icon':_0x3e58dd('0x262d')},{'name':_0x3e58dd('0xa8d'),'icon':'icon-table-edit'},{'name':_0x3e58dd('0xcb7'),'icon':'icon-video'},{'name':'ai','icon':_0x3e58dd('0xdfe')}],_0x460759['sessions']=[{'name':'callysquare','icon':_0x3e58dd('0x1b43'),'restart':!![],'label':_0x3e58dd('0xc68'),'enabled':_0x3e58dd('0x1bc3')},{'name':_0x3e58dd('0xf4'),'icon':_0x3e58dd('0x2695'),'restart':![],'label':_0x3e58dd('0x314'),'enabled':_0x3e58dd('0x1800')}],_0x460759['others']=[{'name':'update','icon':_0x3e58dd('0xaeb')}],_0x1a4f60[_0x3e58dd('0x21d9')][_0x3e58dd('0xbaa')]({'fields':'id','role':_0x3e58dd('0x18c4'),'online':!![]})[_0x3e58dd('0x1549')]['then'](function(_0x570a97){const _0x511b4f=_0x3e58dd;return _0x460759[_0x511b4f('0x1401')]=_0x570a97&&_0x570a97[_0x511b4f('0x27d2')]?_0x570a97[_0x511b4f('0x27d2')]:0x0,_0x1a4f60[_0x511b4f('0x21d9')][_0x511b4f('0xbaa')]({'fields':'id','role':_0x511b4f('0xecb')})[_0x511b4f('0x1549')];})['then'](function(_0x13db6e){const _0x1bb753=_0x3e58dd;return _0x460759[_0x1bb753('0x17c0')]=_0x13db6e&&_0x13db6e[_0x1bb753('0x27d2')]?_0x13db6e[_0x1bb753('0x27d2')]:0x0,_0x1a4f60['user'][_0x1bb753('0xbaa')]({'fields':'id','role':_0x1bb753('0x2650')})[_0x1bb753('0x1549')];})[_0x3e58dd('0x11bf')](function(_0x1121d1){const _0x22a37c=_0x3e58dd;_0x460759[_0x22a37c('0x156e')]=_0x1121d1&&_0x1121d1[_0x22a37c('0x27d2')]?_0x1121d1[_0x22a37c('0x27d2')]:0x0;})['catch'](function(_0x5693a9){const _0x54f7f5=_0x3e58dd;console[_0x54f7f5('0xc78')](_0x5693a9);});function _0x3e6de3(_0x1c4c91){const _0x29ca70=_0x3e58dd;_0x1e56f9['show']({'controller':_0x29ca70('0x22f1'),'controllerAs':'vm','templateUrl':_0x36d2e1,'parent':angular[_0x29ca70('0x1e73')](_0xf7c4df['body']),'targetEvent':_0x1c4c91,'clickOutsideToClose':!![],'locals':{'license':_0xaa66d}});}function _0x465db2(_0x5e989a){const _0x142ba8=_0x3e58dd;_0x1e56f9[_0x142ba8('0xb9')]({'controller':_0x142ba8('0x1ca4'),'controllerAs':'vm','templateUrl':_0x424220,'parent':angular[_0x142ba8('0x1e73')](_0xf7c4df[_0x142ba8('0x1d2')]),'targetEvent':_0x5e989a,'clickOutsideToClose':!![],'locals':{'license':_0xaa66d,'channels':_0x460759[_0x142ba8('0xc68')],'modules':_0x460759[_0x142ba8('0x2213')],'addons':_0x460759[_0x142ba8('0x1b85')],'sessions':_0x460759[_0x142ba8('0x314')],'others':_0x460759[_0x142ba8('0x2743')]}});}function _0x4b4b93(){const _0x559578=_0x3e58dd;_0x7960b0['go'](_0x559578('0x26c0'),{'tab':0x1});}_0x460759[_0x3e58dd('0x17bb')]=_0x465db2,_0x460759[_0x3e58dd('0x1560')]=_0x3e6de3,_0x460759[_0x3e58dd('0x1074')]=_0x4b4b93;}const _0x32f358=_0x4581ec;_0x5102b6['$inject']=[_0x21d0f5('0x1ca2'),'toasty','license',_0x21d0f5('0xc68'),_0x21d0f5('0x2213'),'addons',_0x21d0f5('0x314'),_0x21d0f5('0x2743'),_0x21d0f5('0x12a5'),'Auth','$translate'];function _0x5102b6(_0x25aee6,_0x121a42,_0x2e511e,_0x6ce713,_0x558351,_0x3d888f,_0x505e50,_0x522ff1,_0x140ec9,_0x268355,_0x5ea5ce){const _0x1a132b=_0x21d0f5,_0x5342f0=this;_0x5342f0[_0x1a132b('0x120f')]=[],_0x5342f0[_0x1a132b('0x21d9')]=_0x268355[_0x1a132b('0x2428')](),_0x5342f0[_0x1a132b('0x17ff')]=angular[_0x1a132b('0x6fb')](_0x2e511e),_0x5342f0['channels']=_0x6ce713,_0x5342f0['modules']=_0x558351,_0x5342f0[_0x1a132b('0x1b85')]=_0x3d888f,_0x5342f0[_0x1a132b('0x314')]=_0x505e50,_0x5342f0[_0x1a132b('0x2743')]=_0x522ff1,_0x5342f0[_0x1a132b('0x17ff')]['name']=_0x5342f0[_0x1a132b('0x21d9')][_0x1a132b('0x27af')],_0x5342f0[_0x1a132b('0x17ff')][_0x1a132b('0x15d3')]=_0x5342f0['user'][_0x1a132b('0x15d3')],_0x5342f0[_0x1a132b('0xf5b')]=_0x4c9437,_0x5342f0[_0x1a132b('0xc4e')]=_0x50273e;function _0x4c9437(){const _0x1cd3d1=_0x1a132b;_0x5342f0[_0x1cd3d1('0x120f')]=[],_0x5342f0[_0x1cd3d1('0x13e8')]=_0x1cd3d1('0x50a');for(const _0x5d51c2 in _0x5342f0[_0x1cd3d1('0x17ff')]){typeof _0x5342f0[_0x1cd3d1('0x17ff')][_0x5d51c2]!==_0x1cd3d1('0x13e9')&&!_0x36f548()['includes']([_0x1cd3d1('0x1549'),_0x1cd3d1('0x1619')],_0x5d51c2)&&(_0x2e511e[_0x5d51c2]===_0x5342f0['license'][_0x5d51c2]?_0x5342f0[_0x1cd3d1('0x13e8')]+='|'+_0x5d51c2+'|'+(_0x2e511e[_0x5d51c2]!==undefined?_0x2e511e[_0x5d51c2]:'')+'|'+_0x5342f0[_0x1cd3d1('0x17ff')][_0x5d51c2]+'|\x0a':_0x5342f0[_0x1cd3d1('0x13e8')]+='|'+_0x5d51c2+_0x1cd3d1('0x1e1f')+(_0x2e511e[_0x5d51c2]!==undefined?_0x2e511e[_0x5d51c2]:'')+_0x1cd3d1('0x19f6')+_0x5342f0[_0x1cd3d1('0x17ff')][_0x5d51c2]+_0x1cd3d1('0x740'));}_0x140ec9[_0x1cd3d1('0x136c')][_0x1cd3d1('0x259')]({'key':'MOTLICENSE','summary':_0x1cd3d1('0x1edf'),'description':_0x5342f0[_0x1cd3d1('0x13e8')],'issuetype':_0x1cd3d1('0x1b28')})[_0x1cd3d1('0x1549')]['then'](function(){const _0x4f0d8b=_0x1cd3d1;_0x121a42[_0x4f0d8b('0x2693')]({'title':_0x4f0d8b('0x21d2'),'msg':_0x5ea5ce[_0x4f0d8b('0x10c2')](_0x4f0d8b('0x20a0')),'timeout':0x3a98}),_0x50273e();})[_0x1cd3d1('0x151d')](function(_0x3bd295){const _0x2bfbde=_0x1cd3d1;console['error'](_0x3bd295),_0x5342f0['errors']=[{'message':_0x5ea5ce[_0x2bfbde('0x10c2')](_0x2bfbde('0xaf7')),'type':_0x2bfbde('0x18db')}];});}function _0x50273e(){const _0x3982af=_0x1a132b;_0x25aee6[_0x3982af('0x237e')]();}}const _0x3521f2=_0x5102b6;_0x142101['$inject']=[_0x21d0f5('0x1ca2'),_0x21d0f5('0x142d'),_0x21d0f5('0x17ff'),_0x21d0f5('0x12a5')];function _0x142101(_0x3b23e6,_0x28e448,_0x38faf7,_0x6581ee){const _0x742299=_0x21d0f5,_0x194ccb=this;_0x194ccb[_0x742299('0x120f')]=[],_0x194ccb['license']=angular['copy'](_0x38faf7),_0x194ccb[_0x742299('0x224f')],_0x194ccb[_0x742299('0x1560')]=_0x81d858,_0x194ccb[_0x742299('0xc4e')]=_0x35a286;function _0x81d858(){const _0x39f314=_0x742299;return _0x6581ee['license'][_0x39f314('0x5ab')]({'id':0x1,'key':_0x194ccb['licenseKey']})[_0x39f314('0x1549')]['then'](function(_0x38db9b){const _0x6aa889=_0x39f314;_0x38db9b&&(_0x38db9b[_0x6aa889('0x1eea')]?_0x28e448[_0x6aa889('0x255')]({'title':'License\x20update\x20failed!','msg':'Invalid\x20license\x20key'}):_0x28e448['success']({'title':_0x6aa889('0xc8c'),'msg':_0x6aa889('0x5a9')}));})['catch'](function(_0x548189){const _0x447f69=_0x39f314;_0x28e448['error']({'title':_0x548189[_0x447f69('0xff9')]?_0x447f69('0x574')+_0x548189['status']+_0x447f69('0xb0b')+_0x548189[_0x447f69('0x212f')]:'SYSTEM:UPDATElicense','msg':_0x548189[_0x447f69('0x4e8')]?JSON[_0x447f69('0x3e')](_0x548189[_0x447f69('0x4e8')]):_0x548189[_0x447f69('0xaab')]()});});}function _0x35a286(){const _0x43f662=_0x742299;_0x3b23e6[_0x43f662('0x237e')]();}}const _0x5b447b=_0x142101;_0x2742c3[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x13d6')];function _0x2742c3(_0x2ae974){const _0x560c56=_0x21d0f5;_0x2ae974[_0x560c56('0x2124')](_0x560c56('0x1e74'),{'url':'/license','views':{'content@app':{'templateUrl':_0x315de7,'controller':_0x560c56('0x87c')}},'authenticate':!![],'permissionId':0x578,'bodyClass':'settings'});}angular[_0x21d0f5('0x2768')](_0x21d0f5('0x1e74'),[])[_0x21d0f5('0x53a')](_0x2742c3)['controller'](_0x21d0f5('0x624'),_0x32f358)[_0x21d0f5('0x23eb')](_0x21d0f5('0x1ca4'),_0x3521f2)[_0x21d0f5('0x23eb')](_0x21d0f5('0x22f1'),_0x5b447b);const _0x112a57=_0x351988['p']+_0x21d0f5('0x27e0');_0x20789e['$inject']=[_0x21d0f5('0x1b80'),'$interval',_0x21d0f5('0x1ca2'),'$state',_0x21d0f5('0x196d'),_0x21d0f5('0x1859'),_0x21d0f5('0x142d'),_0x21d0f5('0x12a5')];function _0x20789e(_0x3af669,_0x5ee5fc,_0x1fb4ad,_0x33f903,_0x3e95b7,_0x5bdc68,_0x5596b9,_0x478327){const _0x262be8=_0x21d0f5,_0x427482=this;let _0x143d68=null;_0x427482['system']=_0x3e95b7||{},_0x427482[_0x262be8('0x1859')]=_0x5bdc68?_0x5bdc68[_0x262be8('0x19b2')]:[],_0x427482['processLimit']=0x7,_0x427482[_0x262be8('0x1179')]=_0x33f903[_0x262be8('0x1ab3')][_0x262be8('0x205c')]||0x0,_0x427482[_0x262be8('0x21f2')]=_0x5011ff,_0x427482[_0x262be8('0x1894')]=_0xb048e4,_0x427482['cancelInterval']=_0x1279f1,_0x427482['updateProcess']=_0x36c3bb;function _0x1279f1(){const _0x3c37d9=_0x262be8;_0x5ee5fc[_0x3c37d9('0x26c9')](_0x143d68),_0x143d68=null;}function _0x36c3bb(_0x18e466,_0x549a38,_0x1cda42){const _0x37ebbe=_0x262be8,_0x5d5427=_0x1fb4ad[_0x37ebbe('0x132b')]()['title']('Would\x20you\x20like\x20to\x20change\x20the\x20status\x20of\x20the\x20process\x20#'+_0x549a38+'?')['textContent'](_0x37ebbe('0x78b')+_0x1cda42['toUpperCase']())[_0x37ebbe('0xb2e')]('Lucky\x20day')['targetEvent'](_0x18e466)['ok']('Ok')[_0x37ebbe('0x26c9')](_0x37ebbe('0x784'));_0x1fb4ad[_0x37ebbe('0xb9')](_0x5d5427)[_0x37ebbe('0x11bf')](function(){const _0x2b8690=_0x37ebbe;return _0x478327[_0x2b8690('0x14b7')][_0x2b8690('0x5ab')]({'id':_0x549a38,'status':_0x1cda42});})[_0x37ebbe('0x11bf')](function(){const _0x17d02=_0x37ebbe;_0x5ee5fc(_0x427482[_0x17d02('0x1894')],0x3e8,0x1);})[_0x37ebbe('0x11bf')](function(){const _0x32f83f=_0x37ebbe;_0x5596b9['success']({'title':'Process\x20updated!','msg':_0x32f83f('0x285f')+_0x1cda42});});}function _0x5011ff(){const _0x5f1c4f=_0x262be8;return _0x478327['system'][_0x5f1c4f('0xbaa')]()[_0x5f1c4f('0x1549')]['then'](function(_0x30310c){const _0xbd3dc1=_0x5f1c4f;_0x36f548()[_0xbd3dc1('0x47b')](_0x427482[_0xbd3dc1('0x196d')],_0x30310c);})[_0x5f1c4f('0x151d')](_0x427482[_0x5f1c4f('0x3ac')]);}function _0xb048e4(){const _0x3a8525=_0x262be8;return _0x478327[_0x3a8525('0x14b7')]['get']()[_0x3a8525('0x1549')][_0x3a8525('0x11bf')](function(_0x568a05){const _0x2a7023=_0x3a8525;_0x36f548()[_0x2a7023('0x47b')](_0x427482[_0x2a7023('0x1859')],_0x568a05?_0x568a05[_0x2a7023('0x19b2')]:[]);})[_0x3a8525('0x151d')](_0x427482['cancelInterval']);}_0x143d68=_0x5ee5fc(_0x427482[_0x262be8('0x21f2')],0x1388),_0x3af669[_0x262be8('0x12d8')](_0x262be8('0x4f7'),function(){const _0x26b9f5=_0x262be8;_0x427482[_0x26b9f5('0x3ac')]();});}const _0x2ef1e6=_0x20789e;_0x4e7dd2[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x13d6')];function _0x4e7dd2(_0x325105){const _0x42c2ec=_0x21d0f5;_0x325105[_0x42c2ec('0x2124')]('app.settings.system',{'url':_0x42c2ec('0x16e9'),'views':{'content@app':{'templateUrl':_0x112a57,'controller':_0x42c2ec('0x22e5')}},'resolve':{'system':['apiResolver',function(_0x433907){const _0x56c6ca=_0x42c2ec;return _0x433907[_0x56c6ca('0xa28')]('system@get');}],'processes':[_0x42c2ec('0x218e'),function(_0x360ad5){const _0x1d8487=_0x42c2ec;return _0x360ad5[_0x1d8487('0xa28')](_0x1d8487('0x530'));}]},'authenticate':!![],'permissionId':0x578,'bodyClass':_0x42c2ec('0x760')});}angular['module'](_0x21d0f5('0x26c0'),[])[_0x21d0f5('0x53a')](_0x4e7dd2)[_0x21d0f5('0x23eb')]('SystemController',_0x2ef1e6);const _0x53ca15=_0x351988['p']+_0x21d0f5('0xd2f');_0x29b02f[_0x21d0f5('0x1e9a')]=['$mdDialog',_0x21d0f5('0x1fd'),_0x21d0f5('0x2143'),'$timeout',_0x21d0f5('0x12a5')];function _0x29b02f(_0x18b81d,_0x43a443,_0x552ff9,_0x280bef,_0xad906b){const _0x58fe05=_0x21d0f5,_0x3e1884=this;_0x3e1884['title']=_0x58fe05('0xae5'),_0x3e1884[_0x58fe05('0x41c')]=0x0,_0x3e1884[_0x58fe05('0x5c4')]=!![],_0x3e1884[_0x58fe05('0x19aa')]='Waiting...',_0x3e1884[_0x58fe05('0x2693')]=!![],_0x3e1884[_0x58fe05('0x507')]=_0x43a443(function(){const _0x4b7ac3=_0x58fe05;_0x3e1884['progress']<0x5a&&(_0x3e1884[_0x4b7ac3('0x41c')]+=0x1);},0x3e8),_0xad906b['version'][_0x58fe05('0x1774')]()['$promise'][_0x58fe05('0x11bf')](function(_0x1eb7c9){const _0x5221cf=_0x58fe05;return _0x3e1884['output']=_0x1eb7c9[_0x5221cf('0x19aa')]+_0x5221cf('0x205e'),_0xad906b[_0x5221cf('0x23d3')][_0x5221cf('0xf58')]()['$promise'];})[_0x58fe05('0x11bf')](function(_0x13058c){const _0xca65b7=_0x58fe05;return _0x3e1884[_0xca65b7('0x19aa')]=_0x13058c['output']+_0xca65b7('0x205e'),_0xad906b['version'][_0xca65b7('0x21e2')]()[_0xca65b7('0x1549')];})['then'](function(_0x3b5161){const _0x570143=_0x58fe05;return _0x3e1884[_0x570143('0x19aa')]=_0x3b5161['output']+_0x570143('0x205e'),_0xad906b['version'][_0x570143('0x2013')]()[_0x570143('0x1549')];})[_0x58fe05('0x11bf')](function(_0x5e7ef8){const _0x24c2d9=_0x58fe05;return _0x3e1884[_0x24c2d9('0x19aa')]=_0x5e7ef8[_0x24c2d9('0x19aa')]+_0x24c2d9('0x205e'),_0xad906b[_0x24c2d9('0x23d3')][_0x24c2d9('0x8b')]()[_0x24c2d9('0x1549')];})[_0x58fe05('0x11bf')](function(){const _0xe622c0=_0x58fe05;_0x3e1884['output']=_0xe622c0('0xaa5'),_0x280bef(function(){const _0x20b4f4=_0xe622c0;_0x3e1884[_0x20b4f4('0x1270')]();},0x7530);})[_0x58fe05('0x151d')](function(_0xda865e){const _0x37a0d4=_0x58fe05;_0x3e1884[_0x37a0d4('0x2693')]=![],_0x3e1884['stopInterval'](),_0x3e1884[_0x37a0d4('0x19aa')]=JSON[_0x37a0d4('0x3e')](_0xda865e);});function _0x59610a(){const _0x4a4cee=_0x58fe05;angular[_0x4a4cee('0x17c8')](_0x3e1884['interval'])&&(_0x43a443[_0x4a4cee('0x26c9')](_0x3e1884[_0x4a4cee('0x507')]),_0x3e1884[_0x4a4cee('0x507')]=undefined),_0x3e1884['progress']=0x64,_0x3e1884['updating']=![];}function _0x129d8c(){_0x552ff9['location']['reload']();}function _0x5ce8a0(){const _0x901ade=_0x58fe05;_0x18b81d[_0x901ade('0x237e')]();}_0x3e1884[_0x58fe05('0xc4e')]=_0x5ce8a0,_0x3e1884[_0x58fe05('0x2304')]=_0x129d8c,_0x3e1884['stopInterval']=_0x59610a;}const _0x3676ca=_0x29b02f,_0x11c3a5=_0x351988['p']+_0x21d0f5('0x207e');_0x2e5ae1[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1ca2'),_0x21d0f5('0x1fd'),_0x21d0f5('0x1b30'),_0x21d0f5('0x23d3')];function _0x2e5ae1(_0x18b47b,_0x13a4ff,_0x2d9482,_0x5e3804){const _0x25e109=_0x21d0f5,_0x3eeb57=this;_0x3eeb57[_0x25e109('0x23d3')]=_0x5e3804||{};function _0x1160b8(_0xba7eed){const _0x348a0b=_0x25e109,_0x329700=_0x18b47b[_0x348a0b('0x132b')]()[_0x348a0b('0x134b')](_0x348a0b('0x2894'))[_0x348a0b('0x1d03')](_0x348a0b('0x11f2'))[_0x348a0b('0xb2e')]('')[_0x348a0b('0x1e25')](_0xba7eed)['clickOutsideToClose'](!![])[_0x348a0b('0x1592')](angular['element'](_0x2d9482[_0x348a0b('0x1d2')]))['ok'](_0x348a0b('0x1948'))[_0x348a0b('0x26c9')](_0x348a0b('0x1baa'));_0x18b47b['show'](_0x329700)['then'](function(){const _0x4b1ff9=_0x348a0b;_0x18b47b[_0x4b1ff9('0xb9')]({'controller':'UpdateDialogController','controllerAs':'vm','templateUrl':_0x11c3a5,'parent':angular[_0x4b1ff9('0x1e73')](_0x2d9482[_0x4b1ff9('0x1d2')]),'targetEvent':_0xba7eed,'clickOutsideToClose':![]});});}_0x3eeb57[_0x25e109('0x1276')]=_0x1160b8;}const _0x560f7e=_0x2e5ae1;_0x5ef097[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x13d6')];function _0x5ef097(_0x3afd1b){const _0x3dbe78=_0x21d0f5;_0x3afd1b[_0x3dbe78('0x2124')](_0x3dbe78('0x147c'),{'url':_0x3dbe78('0x2412'),'views':{'content@app':{'templateUrl':_0x53ca15,'controller':_0x3dbe78('0x2730')}},'resolve':{'version':['apiResolver',function(_0x34e411){const _0x335f0d=_0x3dbe78;return _0x34e411['resolve'](_0x335f0d('0x1024'),{'latest':!![]});}],'userProfile':[_0x3dbe78('0x218e'),_0x3dbe78('0x1150'),function(_0x1cee5c,_0x6acb05){const _0x4f7c79=_0x3dbe78;return _0x1cee5c[_0x4f7c79('0xa28')](_0x4f7c79('0x428'),{'fields':_0x4f7c79('0xd30'),'id':_0x6acb05['getCurrentUser']()[_0x4f7c79('0x781')]});}],'userProfileSection':[_0x3dbe78('0x218e'),_0x3dbe78('0x1150'),function(_0x491b29,_0x55b334){const _0x5071ee=_0x3dbe78;return _0x491b29[_0x5071ee('0xa28')](_0x5071ee('0x2762'),{'fields':_0x5071ee('0x36d'),'userProfileId':_0x55b334['getCurrentUser']()['userProfileId'],'sectionId':0x578});}]},'authenticate':!![],'permissionId':0x578,'bodyClass':_0x3dbe78('0x760')});}angular['module'](_0x21d0f5('0x147c'),[])['config'](_0x5ef097)[_0x21d0f5('0x23eb')]('UpdateDialogController',_0x3676ca)['controller'](_0x21d0f5('0x27de'),_0x560f7e);const _0x339d2c=_0x351988['p']+_0x21d0f5('0x1226'),_0x49dfc=_0x351988['p']+'src/js/modules/main/apps/settings/views/smtps/smtps.html/smtps.html',_0x10c2ea=_0x351988['p']+_0x21d0f5('0x1fdd'),_0x4f8439=_0x351988['p']+_0x21d0f5('0xc13'),_0x13eb7b=_0x351988['p']+_0x21d0f5('0x2324'),_0x9e9df=_0x351988['p']+_0x21d0f5('0x17c4');_0x437439[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),'$window',_0x21d0f5('0xcbc'),_0x21d0f5('0x18fe'),'$mdDialog',_0x21d0f5('0x1b30'),_0x21d0f5('0x17f5'),_0x21d0f5('0xb6b'),_0x21d0f5('0xfd3'),_0x21d0f5('0x12a5'),_0x21d0f5('0xda9'),_0x21d0f5('0x142d'),'Auth',_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1')];function _0x437439(_0x3eef98,_0x101507,_0x45f994,_0x8baf1d,_0x472a5e,_0x19a6bb,_0xee493b,_0x4e28dd,_0x58d2f7,_0x441e17,_0x519b5d,_0x4ee973,_0x53379d,_0x4820fc,_0x522b00){const _0x358029=_0x21d0f5,_0x4a1740=this;_0x4a1740[_0x358029('0x17ff')]=_0x4820fc,_0x4a1740[_0x358029('0x23e1')]=_0x522b00,_0x4a1740[_0x358029('0x32a')]=_0x53379d[_0x358029('0x2428')](),_0x4a1740[_0x358029('0xfd3')]=_0x58d2f7||{'count':0x0,'rows':[]},_0x4a1740[_0x358029('0x13e8')]='cloudProviders',_0x4a1740[_0x358029('0x724')]='',_0x4a1740['listOrderAsc']=null,_0x4a1740[_0x358029('0x24c4')]=[],_0x4a1740[_0x358029('0x1f2a')]={'fields':_0x358029('0x1c24'),'sort':_0x358029('0x1c74'),'limit':0xa,'page':0x1},_0x4a1740['arrayservice']=_0x36f548()[_0x358029('0x2130')]([{'option':'AmazonAWS','value':'\x27AmazonAWS\x27'}],function(_0xea9950){const _0xdbc897=_0x358029;return _0x36f548()[_0xdbc897('0x814')](_0xea9950['value'],new RegExp('\x27','g'),'');}),_0x4a1740[_0x358029('0xc03')]=_0x299d85,_0x4a1740[_0x358029('0x549')]=_0x552bd7,_0x4a1740[_0x358029('0x2693')]=_0x1fc614,_0x4a1740['getAiTools']=_0x303452,_0x4a1740[_0x358029('0xbaf')]=_0x4f410f,_0x4a1740[_0x358029('0x1f92')]=_0xbcb09,_0x4a1740[_0x358029('0x312')]=_0x383314,_0x4a1740[_0x358029('0xfe8')]=_0x5e1fdd,_0x4a1740['deselectAiTools']=_0x160247,_0x4a1740[_0x358029('0x1cb9')]=_0x5811a5;function _0x299d85(_0xfd46c8,_0x3ee995){const _0x509bde=_0x358029;_0x472a5e[_0x509bde('0xb9')]({'controller':'CreateOrEditCloudProviderDialogController','controllerAs':'vm','templateUrl':_0x9e9df,'parent':angular[_0x509bde('0x1e73')](_0x19a6bb[_0x509bde('0x1d2')]),'targetEvent':_0x3ee995,'clickOutsideToClose':!![],'locals':{'cloudProvider':_0xfd46c8,'cloudProviders':_0x4a1740['cloudProviders'][_0x509bde('0x19b2')],'license':_0x4a1740[_0x509bde('0x17ff')],'setting':null,'crudPermissions':_0x4a1740[_0x509bde('0xb25')]}});}function _0x552bd7(_0x18e02c,_0x20354f){const _0x13e433=_0x358029,_0x357317=_0x472a5e[_0x13e433('0x132b')]()[_0x13e433('0x134b')](_0x13e433('0x1796')+_0x36f548()[_0x13e433('0x13cf')](_0x13e433('0x1384'))+'?')[_0x13e433('0x1d03')](_0x13e433('0x2061')+(_0x18e02c[_0x13e433('0x1909')]||'cloudProvider')+''+'\x20will\x20be\x20deleted.')[_0x13e433('0xb2e')]('delete\x20cloudProvider')[_0x13e433('0x1e25')](_0x20354f)['ok']('OK')[_0x13e433('0x26c9')](_0x13e433('0x772'));_0x472a5e[_0x13e433('0xb9')](_0x357317)[_0x13e433('0x11bf')](function(){_0xbcb09(_0x18e02c);},function(){const _0x17da2e=_0x13e433;console[_0x17da2e('0xc78')](_0x17da2e('0x772'));});}let _0x2dfda9=!![],_0x89e0f2=0x1;_0x3eef98[_0x358029('0x2087')](_0x358029('0x842'),function(_0x32d3e8,_0xd013d0){const _0x17f080=_0x358029;_0x2dfda9?_0xee493b(function(){_0x2dfda9=![];}):(!_0xd013d0&&(_0x89e0f2=_0x4a1740[_0x17f080('0x1f2a')]['page']),_0x32d3e8!==_0xd013d0&&(_0x4a1740['query'][_0x17f080('0x1c2')]=0x1),!_0x32d3e8&&(_0x4a1740[_0x17f080('0x1f2a')][_0x17f080('0x1c2')]=_0x89e0f2),_0x4a1740[_0x17f080('0xb3d')]());});function _0x1fc614(_0x3b3559){_0x4a1740['cloudProviders']=_0x3b3559||{'count':0x0,'rows':[]};}function _0x303452(){const _0x1cda13=_0x358029;_0x4a1740[_0x1cda13('0x1f2a')][_0x1cda13('0x1393')]=(_0x4a1740['query'][_0x1cda13('0x1c2')]-0x1)*_0x4a1740[_0x1cda13('0x1f2a')][_0x1cda13('0xd5c')],_0x53379d['hasRole'](_0x1cda13('0xf45'))?_0x4a1740[_0x1cda13('0x13f')]=_0x441e17[_0x1cda13('0x1384')][_0x1cda13('0xbaa')](_0x4a1740[_0x1cda13('0x1f2a')],_0x1fc614)['$promise']:(_0x4a1740[_0x1cda13('0x1f2a')]['id']=_0x4a1740[_0x1cda13('0x25bc')]['id'],_0x4a1740[_0x1cda13('0x1f2a')][_0x1cda13('0xe6')]=_0x1cda13('0x1dcf'),_0x4a1740[_0x1cda13('0x13f')]=_0x441e17[_0x1cda13('0x25bc')]['getResources'](_0x4a1740['query'],_0x1fc614)[_0x1cda13('0x1549')]);}function _0x4f410f(_0x3e1021,_0x3da1de){const _0x3d432=_0x358029;_0x472a5e['show']({'controller':'CreateOrEditCloudProviderDialogController','controllerAs':'vm','templateUrl':_0x9e9df,'parent':angular[_0x3d432('0x1e73')](_0x19a6bb[_0x3d432('0x1d2')]),'targetEvent':_0x3e1021,'clickOutsideToClose':!![],'locals':{'cloudProvider':_0x3da1de,'cloudProviders':_0x4a1740[_0x3d432('0xfd3')][_0x3d432('0x19b2')],'license':_0x4a1740[_0x3d432('0x17ff')],'setting':_0x4a1740['setting'],'crudPermissions':_0x4a1740['crudPermissions']}});}function _0xbcb09(_0xb4ee8d){const _0x1bb4ed=_0x358029;_0x441e17['cloudProvider'][_0x1bb4ed('0x2088')]({'id':_0xb4ee8d['id']})[_0x1bb4ed('0x1549')][_0x1bb4ed('0x11bf')](function(){const _0x2ba5f3=_0x1bb4ed;_0x36f548()[_0x2ba5f3('0x14a5')](_0x4a1740[_0x2ba5f3('0xfd3')]['rows'],{'id':_0xb4ee8d['id']}),_0x4a1740[_0x2ba5f3('0xfd3')][_0x2ba5f3('0x27d2')]-=0x1,!_0x4a1740[_0x2ba5f3('0xfd3')][_0x2ba5f3('0x19b2')][_0x2ba5f3('0x1e22')]&&_0x4a1740[_0x2ba5f3('0xb3d')](),_0x4ee973[_0x2ba5f3('0x2693')]({'title':_0x36f548()['startCase'](_0x2ba5f3('0x2445'))+_0x2ba5f3('0x2113'),'msg':_0xb4ee8d[_0x2ba5f3('0x1909')]?_0xb4ee8d[_0x2ba5f3('0x1909')]+_0x2ba5f3('0x433'):''});})[_0x1bb4ed('0x151d')](function(_0x496177){const _0xcb9f0c=_0x1bb4ed;if(_0x496177[_0xcb9f0c('0x4e8')]&&_0x496177[_0xcb9f0c('0x4e8')][_0xcb9f0c('0x120f')]&&_0x496177['data'][_0xcb9f0c('0x120f')][_0xcb9f0c('0x1e22')]){_0x4a1740[_0xcb9f0c('0x120f')]=_0x496177[_0xcb9f0c('0x4e8')][_0xcb9f0c('0x120f')]||[{'message':_0x496177[_0xcb9f0c('0xaab')](),'type':_0xcb9f0c('0x27d1')}];for(let _0x321fd2=0x0;_0x321fd2<_0x496177[_0xcb9f0c('0x4e8')]['errors'][_0xcb9f0c('0x1e22')];_0x321fd2++){_0x4ee973[_0xcb9f0c('0x255')]({'title':_0x496177[_0xcb9f0c('0x4e8')][_0xcb9f0c('0x120f')][_0x321fd2][_0xcb9f0c('0x19fd')],'msg':_0x496177[_0xcb9f0c('0x4e8')][_0xcb9f0c('0x120f')][_0x321fd2]['message']});}}else _0x4ee973[_0xcb9f0c('0x255')]({'title':_0x496177[_0xcb9f0c('0xff9')]?_0xcb9f0c('0x574')+_0x496177[_0xcb9f0c('0xff9')]+'\x20-\x20'+_0x496177['statusText']:_0xcb9f0c('0x27d1'),'msg':_0x496177['data']?JSON[_0xcb9f0c('0x3e')](_0x496177['data'][_0xcb9f0c('0x1b86')]):_0x496177[_0xcb9f0c('0x1b86')]||_0x496177[_0xcb9f0c('0xaab')]()});});}function _0x383314(){const _0x35b669=_0x358029,_0xb82382=angular['copy'](_0x4a1740[_0x35b669('0x24c4')]);return _0x4a1740[_0x35b669('0x24c4')]=[],_0xb82382;}function _0x5e1fdd(_0x30d4fe){const _0x473d76=_0x358029,_0x13aaea=_0x472a5e['confirm']()[_0x473d76('0x134b')](_0x473d76('0x15e'))[_0x473d76('0x1d03')](_0x473d76('0x2061')+_0x4a1740['selectedAiTools'][_0x473d76('0x1e22')]+_0x473d76('0xac6')+_0x473d76('0x1a'))[_0x473d76('0xb2e')](_0x473d76('0xb10'))[_0x473d76('0x1e25')](_0x30d4fe)['ok']('OK')[_0x473d76('0x26c9')]('CANCEL');_0x472a5e[_0x473d76('0xb9')](_0x13aaea)['then'](function(){const _0x286291=_0x473d76;_0x4a1740[_0x286291('0x24c4')][_0x286291('0x1f88')](function(_0x18a114){_0xbcb09(_0x18a114);}),_0x4a1740['selectedAiTools']=[];});}function _0x160247(){_0x4a1740['selectedAiTools']=[];}function _0x5811a5(){const _0x6e41f5=_0x358029;_0x4a1740['selectedAiTools']=_0x4a1740['cloudProviders'][_0x6e41f5('0x19b2')];}}const _0x243ab2=_0x437439;_0x482c91[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0xcbc'),_0x21d0f5('0x16b9'),_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0xb6b'),_0x21d0f5('0x142d'),'cloudProviders',_0x21d0f5('0x1384'),'api',_0x21d0f5('0x1150'),'license',_0x21d0f5('0x23e1')];function _0x482c91(_0x316265,_0x3d840f,_0x1b6bd7,_0x1af27d,_0x5dc5d7,_0xfbe5fa,_0x524892,_0x8d612e,_0x4332be,_0x279a8a,_0x45ac41,_0x40a90c,_0x4812c3){const _0x2e188f=_0x21d0f5,_0x2a969d=this;_0x2a969d[_0x2e188f('0x32a')]=_0x45ac41[_0x2e188f('0x2428')](),_0x2a969d[_0x2e188f('0x120f')]=[],_0x2a969d[_0x2e188f('0x23e1')]=_0x4812c3,_0x2a969d[_0x2e188f('0x17ff')]=_0x40a90c,_0x2a969d['hasModulePermissions']={},_0x2a969d[_0x2e188f('0x2834')]=_0x2a969d[_0x2e188f('0x23e1')]&&_0x2a969d[_0x2e188f('0x23e1')][_0x2e188f('0x1d4')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2a969d[_0x2e188f('0x134b')]='SETTINGS.EDIT_CLOUDPROVIDER',_0x2a969d['cloudProvider']=angular[_0x2e188f('0x6fb')](_0x4332be),_0x2a969d[_0x2e188f('0xfd3')]=_0x8d612e,_0x2a969d[_0x2e188f('0x1ee6')]=![];!_0x2a969d[_0x2e188f('0x1384')]&&(_0x2a969d[_0x2e188f('0x1384')]={},_0x2a969d[_0x2e188f('0x134b')]='SETTINGS.NEW_CLOUDPROVIDER',_0x2a969d[_0x2e188f('0x1ee6')]=!![]);_0x2a969d[_0x2e188f('0x1dfd')]=_0x4d5f4f,_0x2a969d[_0x2e188f('0x11b5')]=_0x52e82f,_0x2a969d['deleteCloudProvider']=_0x24e131,_0x2a969d[_0x2e188f('0x1bd1')]=_0x2193fe,_0x2a969d[_0x2e188f('0xc4e')]=_0x562a60;function _0x4d5f4f(){const _0xa99dad=_0x2e188f;_0x2a969d[_0xa99dad('0x120f')]=[],_0x279a8a['cloudProvider'][_0xa99dad('0x259')](_0x2a969d[_0xa99dad('0x1384')])[_0xa99dad('0x1549')]['then'](function(_0x18cef8){const _0x1fa342=_0xa99dad;_0x2a969d[_0x1fa342('0xfd3')]['unshift'](_0x18cef8['toJSON']()),_0x524892[_0x1fa342('0x2693')]({'title':_0x1fa342('0x7f5'),'msg':_0x2a969d[_0x1fa342('0x1384')][_0x1fa342('0x1909')]?_0x2a969d[_0x1fa342('0x1384')][_0x1fa342('0x1909')]+_0x1fa342('0x7fb'):''}),_0x562a60(_0x18cef8);})[_0xa99dad('0x151d')](function(_0xd42fd4){const _0x353c7b=_0xa99dad;if(_0xd42fd4[_0x353c7b('0x4e8')]&&_0xd42fd4[_0x353c7b('0x4e8')][_0x353c7b('0x120f')]&&_0xd42fd4['data'][_0x353c7b('0x120f')][_0x353c7b('0x1e22')]){_0x2a969d[_0x353c7b('0x120f')]=_0xd42fd4['data'][_0x353c7b('0x120f')]||[{'message':_0xd42fd4[_0x353c7b('0xaab')](),'type':_0x353c7b('0x25e6')}];for(let _0x26198b=0x0;_0x26198b<_0xd42fd4['data']['errors']['length'];_0x26198b+=0x1){_0x524892[_0x353c7b('0x255')]({'title':_0xd42fd4[_0x353c7b('0x4e8')]['errors'][_0x26198b]['type'],'msg':_0xd42fd4[_0x353c7b('0x4e8')][_0x353c7b('0x120f')][_0x26198b][_0x353c7b('0x1b86')]});}}else _0x524892[_0x353c7b('0x255')]({'title':_0xd42fd4['status']?_0x353c7b('0x574')+_0xd42fd4[_0x353c7b('0xff9')]+_0x353c7b('0xb0b')+_0xd42fd4[_0x353c7b('0x212f')]:_0x353c7b('0x25e6'),'msg':_0xd42fd4[_0x353c7b('0x4e8')]?JSON['stringify'](_0xd42fd4[_0x353c7b('0x4e8')]['message']):_0xd42fd4[_0x353c7b('0xaab')]()});});}function _0x52e82f(){const _0x528a48=_0x2e188f;_0x2a969d[_0x528a48('0x120f')]=[],_0x279a8a[_0x528a48('0x1384')][_0x528a48('0x5ab')]({'id':_0x2a969d[_0x528a48('0x1384')]['id']},_0x2a969d[_0x528a48('0x1384')])['$promise'][_0x528a48('0x11bf')](function(_0x21b9db){const _0x2373eb=_0x528a48,_0x1ee678=_0x36f548()['find'](_0x2a969d[_0x2373eb('0xfd3')],{'id':_0x21b9db['id']});_0x1ee678&&_0x36f548()[_0x2373eb('0x47b')](_0x1ee678,_0x36f548()[_0x2373eb('0x258')](_0x21b9db[_0x2373eb('0x2866')](),_0x36f548()[_0x2373eb('0xe22')](_0x1ee678))),_0x524892['success']({'title':_0x2373eb('0x17a5'),'msg':_0x2a969d[_0x2373eb('0x1384')][_0x2373eb('0x1909')]?_0x2a969d[_0x2373eb('0x1384')][_0x2373eb('0x1909')]+'\x20has\x20been\x20saved!':''}),_0x562a60(_0x21b9db);})[_0x528a48('0x151d')](function(_0xf97a7){const _0x397c15=_0x528a48;if(_0xf97a7[_0x397c15('0x4e8')]&&_0xf97a7[_0x397c15('0x4e8')][_0x397c15('0x120f')]&&_0xf97a7[_0x397c15('0x4e8')]['errors'][_0x397c15('0x1e22')]){_0x2a969d[_0x397c15('0x120f')]=_0xf97a7[_0x397c15('0x4e8')][_0x397c15('0x120f')]||[{'message':_0xf97a7[_0x397c15('0xaab')](),'type':_0x397c15('0x1d4a')}];for(let _0x25c7bd=0x0;_0x25c7bd<_0xf97a7[_0x397c15('0x4e8')]['errors']['length'];_0x25c7bd++){_0x524892[_0x397c15('0x255')]({'title':_0xf97a7['data']['errors'][_0x25c7bd][_0x397c15('0x19fd')],'msg':_0xf97a7[_0x397c15('0x4e8')][_0x397c15('0x120f')][_0x25c7bd][_0x397c15('0x1b86')]});}}else _0x524892[_0x397c15('0x255')]({'title':_0xf97a7['status']?'API:'+_0xf97a7[_0x397c15('0xff9')]+_0x397c15('0xb0b')+_0xf97a7[_0x397c15('0x212f')]:_0x397c15('0x1d4a'),'msg':_0xf97a7['data']?JSON[_0x397c15('0x3e')](_0xf97a7[_0x397c15('0x4e8')]['message']):_0xf97a7['toString']()});});}function _0x24e131(_0x2b1490){const _0x1ede50=_0x2e188f;_0x2a969d[_0x1ede50('0x120f')]=[];const _0x18ee6f=_0x1af27d[_0x1ede50('0x132b')]()[_0x1ede50('0x134b')](_0x1ede50('0x1fa9'))[_0x1ede50('0x252a')]('The\x20cloudProvider\x20will\x20be\x20deleted.')[_0x1ede50('0xb2e')](_0x1ede50('0xded'))['ok'](_0x1ede50('0x1167'))[_0x1ede50('0x26c9')](_0x1ede50('0x784'))[_0x1ede50('0x1e25')](_0x2b1490);_0x1af27d[_0x1ede50('0xb9')](_0x18ee6f)[_0x1ede50('0x11bf')](function(){const _0x8f101f=_0x1ede50;_0x279a8a['cloudProvider'][_0x8f101f('0x2088')]({'id':_0x2a969d[_0x8f101f('0x1384')]['id']})[_0x8f101f('0x1549')][_0x8f101f('0x11bf')](function(){const _0x517843=_0x8f101f;_0x36f548()['remove'](_0x2a969d['cloudProviders'],{'id':_0x2a969d['cloudProvider']['id']}),_0x524892[_0x517843('0x2693')]({'title':_0x517843('0x2535'),'msg':(_0x2a969d[_0x517843('0x1384')][_0x517843('0x1909')]||_0x517843('0x1384'))+_0x517843('0x433')}),_0x562a60(_0x2a969d['cloudProvider']);})['catch'](function(_0x132f2e){const _0x17b3cd=_0x8f101f;if(_0x132f2e[_0x17b3cd('0x4e8')]&&_0x132f2e[_0x17b3cd('0x4e8')][_0x17b3cd('0x120f')]&&_0x132f2e[_0x17b3cd('0x4e8')][_0x17b3cd('0x120f')][_0x17b3cd('0x1e22')]){_0x2a969d[_0x17b3cd('0x120f')]=_0x132f2e[_0x17b3cd('0x4e8')]['errors']||[{'message':_0x132f2e[_0x17b3cd('0xaab')](),'type':_0x17b3cd('0x21b5')}];for(let _0x3903be=0x0;_0x3903be<_0x132f2e[_0x17b3cd('0x4e8')][_0x17b3cd('0x120f')][_0x17b3cd('0x1e22')];_0x3903be++){_0x524892['error']({'title':_0x132f2e[_0x17b3cd('0x4e8')][_0x17b3cd('0x120f')][_0x3903be][_0x17b3cd('0x19fd')],'msg':_0x132f2e[_0x17b3cd('0x4e8')][_0x17b3cd('0x120f')][_0x3903be]['message']});}}else _0x524892[_0x17b3cd('0x255')]({'title':_0x132f2e[_0x17b3cd('0xff9')]?_0x17b3cd('0x574')+_0x132f2e[_0x17b3cd('0xff9')]+_0x17b3cd('0xb0b')+_0x132f2e[_0x17b3cd('0x212f')]:'api.cloudProvider.delete','msg':_0x132f2e['data']?JSON[_0x17b3cd('0x3e')](_0x132f2e['data']['message']):_0x132f2e[_0x17b3cd('0x1b86')]||_0x132f2e[_0x17b3cd('0xaab')]()});});},function(){});}function _0x2193fe(_0x1dc26b){return _0x1dc26b===null?undefined:new Date(_0x1dc26b);}function _0x562a60(_0x4fe75c){_0x1af27d['hide'](_0x4fe75c);}}const _0x4fcc76=_0x482c91;_0x2bc5a3[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),'$state',_0x21d0f5('0x16b9'),_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0xb6b'),_0x21d0f5('0x142d'),'customizations',_0x21d0f5('0xbc3'),'api',_0x21d0f5('0x1150'),'license',_0x21d0f5('0x23e1'),_0x21d0f5('0xb25')];function _0x2bc5a3(_0x144d6d,_0x2c5a39,_0x438ef7,_0x514976,_0x50c4fc,_0x1dce97,_0x43344d,_0x575e39,_0x4ae718,_0x2af375,_0x2d6b10,_0x453189,_0x5dceb7,_0x37ed81){const _0x9b8969=_0x21d0f5,_0x13de05=this;_0x13de05[_0x9b8969('0x32a')]=_0x2d6b10[_0x9b8969('0x2428')](),_0x13de05[_0x9b8969('0x120f')]=[],_0x13de05[_0x9b8969('0x23e1')]=_0x5dceb7,_0x13de05[_0x9b8969('0x17ff')]=_0x453189,_0x13de05['crudPermissions']=_0x37ed81,_0x13de05[_0x9b8969('0x2c9')]={},_0x13de05[_0x9b8969('0x2834')]=_0x13de05[_0x9b8969('0x23e1')]&&_0x13de05[_0x9b8969('0x23e1')][_0x9b8969('0x1d4')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x13de05[_0x9b8969('0x134b')]=_0x9b8969('0x24b0'),_0x13de05[_0x9b8969('0xbc3')]=angular[_0x9b8969('0x6fb')](_0x4ae718),_0x13de05[_0x9b8969('0x2843')]=_0x575e39,_0x13de05[_0x9b8969('0x1893')]=![];!_0x13de05[_0x9b8969('0xbc3')]&&(_0x13de05[_0x9b8969('0xbc3')]={},_0x13de05[_0x9b8969('0x134b')]=_0x9b8969('0xcb1'),_0x13de05['newCustomization']=!![]);_0x13de05['addNewCustomization']=_0x3fe3a7,_0x13de05[_0x9b8969('0x2340')]=_0x5eb07a,_0x13de05['deleteCustomization']=_0x2601f6,_0x13de05['getDateFromString']=_0x3b728a,_0x13de05[_0x9b8969('0xc4e')]=_0x26a5d6;function _0x3fe3a7(){const _0x4bd645=_0x9b8969;_0x13de05[_0x4bd645('0x120f')]=[],_0x2af375[_0x4bd645('0x23e1')]['save'](_0x13de05[_0x4bd645('0xbc3')])[_0x4bd645('0x1549')][_0x4bd645('0x11bf')](function(_0x5ceff9){const _0x54881f=_0x4bd645;_0x13de05[_0x54881f('0x2843')][_0x54881f('0x880')](_0x5ceff9[_0x54881f('0x2866')]()),_0x43344d[_0x54881f('0x2693')]({'title':_0x54881f('0x2247'),'msg':_0x13de05[_0x54881f('0xbc3')][_0x54881f('0x1909')]?_0x13de05[_0x54881f('0xbc3')]['name']+_0x54881f('0x7fb'):''}),_0x26a5d6(_0x5ceff9);})[_0x4bd645('0x151d')](function(_0x5a1284){const _0x410ee2=_0x4bd645;if(_0x5a1284[_0x410ee2('0x4e8')]&&_0x5a1284['data']['errors']&&_0x5a1284[_0x410ee2('0x4e8')]['errors'][_0x410ee2('0x1e22')]){_0x13de05[_0x410ee2('0x120f')]=_0x5a1284[_0x410ee2('0x4e8')]['errors']||[{'message':_0x5a1284['toString'](),'type':_0x410ee2('0x1fcc')}];for(let _0x64f07c=0x0;_0x64f07c<_0x5a1284['data']['errors'][_0x410ee2('0x1e22')];_0x64f07c+=0x1){_0x43344d[_0x410ee2('0x255')]({'title':_0x5a1284['data'][_0x410ee2('0x120f')][_0x64f07c]['type'],'msg':_0x5a1284[_0x410ee2('0x4e8')][_0x410ee2('0x120f')][_0x64f07c][_0x410ee2('0x1b86')]});}}else _0x43344d[_0x410ee2('0x255')]({'title':_0x5a1284['status']?'API:'+_0x5a1284['status']+_0x410ee2('0xb0b')+_0x5a1284[_0x410ee2('0x212f')]:_0x410ee2('0x1fcc'),'msg':_0x5a1284['data']?JSON[_0x410ee2('0x3e')](_0x5a1284['data'][_0x410ee2('0x1b86')]):_0x5a1284[_0x410ee2('0xaab')]()});});}function _0x5eb07a(){const _0x440cbb=_0x9b8969;_0x13de05['errors']=[],_0x2af375[_0x440cbb('0x23e1')][_0x440cbb('0x5ab')]({'id':_0x13de05['customization']['id']},_0x13de05[_0x440cbb('0xbc3')])[_0x440cbb('0x1549')][_0x440cbb('0x11bf')](function(_0x3dd151){const _0x46e658=_0x440cbb,_0x5da7ee=_0x36f548()['find'](_0x13de05[_0x46e658('0x2843')],{'id':_0x3dd151['id']});_0x5da7ee&&_0x36f548()['merge'](_0x5da7ee,_0x36f548()[_0x46e658('0x258')](_0x3dd151[_0x46e658('0x2866')](),_0x36f548()['keys'](_0x5da7ee))),_0x43344d['success']({'title':'Customization\x20properly\x20saved!','msg':_0x13de05[_0x46e658('0xbc3')][_0x46e658('0x1909')]?_0x13de05[_0x46e658('0xbc3')]['name']+_0x46e658('0x1a78'):''}),_0x26a5d6(_0x3dd151);})[_0x440cbb('0x151d')](function(_0x24ae04){const _0x11048a=_0x440cbb;if(_0x24ae04[_0x11048a('0x4e8')]&&_0x24ae04[_0x11048a('0x4e8')][_0x11048a('0x120f')]&&_0x24ae04['data'][_0x11048a('0x120f')]['length']){_0x13de05[_0x11048a('0x120f')]=_0x24ae04[_0x11048a('0x4e8')][_0x11048a('0x120f')]||[{'message':_0x24ae04[_0x11048a('0xaab')](),'type':_0x11048a('0x756')}];for(let _0x2b5ea8=0x0;_0x2b5ea8<_0x24ae04['data'][_0x11048a('0x120f')][_0x11048a('0x1e22')];_0x2b5ea8++){_0x43344d[_0x11048a('0x255')]({'title':_0x24ae04[_0x11048a('0x4e8')][_0x11048a('0x120f')][_0x2b5ea8][_0x11048a('0x19fd')],'msg':_0x24ae04[_0x11048a('0x4e8')][_0x11048a('0x120f')][_0x2b5ea8]['message']});}}else _0x43344d['error']({'title':_0x24ae04[_0x11048a('0xff9')]?_0x11048a('0x574')+_0x24ae04[_0x11048a('0xff9')]+'\x20-\x20'+_0x24ae04[_0x11048a('0x212f')]:_0x11048a('0x756'),'msg':_0x24ae04[_0x11048a('0x4e8')]?JSON[_0x11048a('0x3e')](_0x24ae04['data'][_0x11048a('0x1b86')]):_0x24ae04['toString']()});});}function _0x2601f6(_0xa46073){const _0x2ec0bb=_0x9b8969;_0x13de05[_0x2ec0bb('0x120f')]=[];const _0x251ea6=_0x514976['confirm']()[_0x2ec0bb('0x134b')](_0x2ec0bb('0x1fa9'))[_0x2ec0bb('0x252a')]('The\x20customization\x20will\x20be\x20deleted.')[_0x2ec0bb('0xb2e')](_0x2ec0bb('0x1fa5'))['ok'](_0x2ec0bb('0x1167'))[_0x2ec0bb('0x26c9')](_0x2ec0bb('0x784'))[_0x2ec0bb('0x1e25')](_0xa46073);_0x514976[_0x2ec0bb('0xb9')](_0x251ea6)['then'](function(){const _0x1fb8c3=_0x2ec0bb;_0x2af375[_0x1fb8c3('0x23e1')][_0x1fb8c3('0x2088')]({'id':_0x13de05[_0x1fb8c3('0xbc3')]['id']})[_0x1fb8c3('0x1549')][_0x1fb8c3('0x11bf')](function(){const _0x329548=_0x1fb8c3;_0x36f548()[_0x329548('0x14a5')](_0x13de05[_0x329548('0x2843')],{'id':_0x13de05[_0x329548('0xbc3')]['id']}),_0x43344d['success']({'title':_0x329548('0x1110'),'msg':(_0x13de05[_0x329548('0xbc3')][_0x329548('0x1909')]||_0x329548('0xbc3'))+_0x329548('0x433')}),_0x26a5d6(_0x13de05['customization']);})[_0x1fb8c3('0x151d')](function(_0x4bc0f1){const _0x19ecf0=_0x1fb8c3;if(_0x4bc0f1['data']&&_0x4bc0f1['data']['errors']&&_0x4bc0f1['data'][_0x19ecf0('0x120f')][_0x19ecf0('0x1e22')]){_0x13de05[_0x19ecf0('0x120f')]=_0x4bc0f1[_0x19ecf0('0x4e8')][_0x19ecf0('0x120f')]||[{'message':_0x4bc0f1[_0x19ecf0('0xaab')](),'type':_0x19ecf0('0x23ad')}];for(let _0x1a36bb=0x0;_0x1a36bb<_0x4bc0f1['data'][_0x19ecf0('0x120f')]['length'];_0x1a36bb++){_0x43344d[_0x19ecf0('0x255')]({'title':_0x4bc0f1['data'][_0x19ecf0('0x120f')][_0x1a36bb][_0x19ecf0('0x19fd')],'msg':_0x4bc0f1[_0x19ecf0('0x4e8')][_0x19ecf0('0x120f')][_0x1a36bb][_0x19ecf0('0x1b86')]});}}else _0x43344d['error']({'title':_0x4bc0f1['status']?_0x19ecf0('0x574')+_0x4bc0f1[_0x19ecf0('0xff9')]+'\x20-\x20'+_0x4bc0f1[_0x19ecf0('0x212f')]:_0x19ecf0('0x23ad'),'msg':_0x4bc0f1[_0x19ecf0('0x4e8')]?JSON[_0x19ecf0('0x3e')](_0x4bc0f1[_0x19ecf0('0x4e8')][_0x19ecf0('0x1b86')]):_0x4bc0f1[_0x19ecf0('0x1b86')]||_0x4bc0f1[_0x19ecf0('0xaab')]()});});},function(){});}function _0x3b728a(_0x35fda9){return _0x35fda9===null?undefined:new Date(_0x35fda9);}function _0x26a5d6(_0x1b34e6){_0x514976['hide'](_0x1b34e6);}}const _0x5ac2d6=_0x2bc5a3;_0x2cf7dd[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x2843'),_0x21d0f5('0x12a5'),_0x21d0f5('0x142d'),_0x21d0f5('0x17ff'),'Auth'];function _0x2cf7dd(_0x553444,_0x2089ba,_0x3e3b2b,_0x51c786,_0x5f3185){const _0x1efda3=_0x21d0f5,_0xade3ca=this;_0xade3ca[_0x1efda3('0x32a')]=_0x5f3185['getCurrentUser'](),_0xade3ca[_0x1efda3('0x17ff')]=_0x51c786,_0xade3ca[_0x1efda3('0x2843')]=_0x553444,_0xade3ca[_0x1efda3('0xbc3')]={};_0xade3ca[_0x1efda3('0x2843')]&&_0xade3ca[_0x1efda3('0x2843')][_0x1efda3('0x19b2')]&&_0xade3ca[_0x1efda3('0x2843')]['rows'][_0x1efda3('0x1e22')]&&(_0xade3ca[_0x1efda3('0xbc3')]=_0xade3ca[_0x1efda3('0x2843')]['rows'][0x0]);_0xade3ca[_0x1efda3('0x2340')]=_0x3f0d85;function _0x3f0d85(){const _0x5e6962=_0x1efda3;_0xade3ca[_0x5e6962('0xbc3')]['id']?_0x2089ba['setting'][_0x5e6962('0x5ab')]({'id':_0xade3ca[_0x5e6962('0xbc3')]['id']},_0xade3ca[_0x5e6962('0xbc3')])[_0x5e6962('0x1549')]['then'](function(){const _0x45c91b=_0x5e6962;_0x3e3b2b['success']({'title':_0x45c91b('0x2220'),'msg':_0xade3ca[_0x45c91b('0xbc3')]['name']?_0xade3ca[_0x45c91b('0xbc3')][_0x45c91b('0x1909')]+_0x45c91b('0xd7'):''});})[_0x5e6962('0x151d')](function(_0x1f9864){const _0x95c776=_0x5e6962;_0x3e3b2b[_0x95c776('0x255')]({'title':_0x1f9864[_0x95c776('0xff9')]?'API:'+_0x1f9864[_0x95c776('0xff9')]+_0x95c776('0xb0b')+_0x1f9864[_0x95c776('0x212f')]:_0x95c776('0x20e0'),'msg':_0x1f9864['data']?JSON['stringify'](_0x1f9864[_0x95c776('0x4e8')]):_0x1f9864[_0x95c776('0xaab')]()});}):_0x2089ba[_0x5e6962('0x23e1')][_0x5e6962('0x259')](_0xade3ca['customization'])['$promise'][_0x5e6962('0x11bf')](function(_0x131aac){const _0x57a630=_0x5e6962;_0x36f548()[_0x57a630('0x47b')](_0xade3ca[_0x57a630('0xbc3')],_0x131aac),_0x3e3b2b[_0x57a630('0x2693')]({'title':_0x57a630('0x2220'),'msg':_0xade3ca[_0x57a630('0xbc3')][_0x57a630('0x1909')]?_0xade3ca[_0x57a630('0xbc3')][_0x57a630('0x1909')]+_0x57a630('0xd7'):''});})[_0x5e6962('0x151d')](function(_0x5e7361){const _0x145da4=_0x5e6962;_0x3e3b2b[_0x145da4('0x255')]({'title':_0x5e7361[_0x145da4('0xff9')]?_0x145da4('0x574')+_0x5e7361[_0x145da4('0xff9')]+_0x145da4('0xb0b')+_0x5e7361[_0x145da4('0x212f')]:_0x145da4('0x20e0'),'msg':_0x5e7361[_0x145da4('0x4e8')]?JSON['stringify'](_0x5e7361['data']):_0x5e7361[_0x145da4('0xaab')]()});});}}const _0x221f71=_0x2cf7dd;_0x1137ea[_0x21d0f5('0x1e9a')]=['$cookies','toasty'];function _0x1137ea(_0x5695ed,_0x4f9801){const _0x2430b0=_0x21d0f5,_0x41bc7b=this,_0x1faf84=0x8,_0x2e6859=_0x1faf84*0x400*0x400;_0x41bc7b[_0x2430b0('0xbc3')]={},_0x41bc7b[_0x2430b0('0x1fad')]={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x2e6859,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x41bc7b[_0x2430b0('0x13b8')]={'flow':{}},_0x41bc7b['dropping']=![],_0x41bc7b[_0x2430b0('0x1c03')]=_0x552c43,_0x41bc7b[_0x2430b0('0x1d01')]=_0x58f64f,_0x41bc7b['fileSuccess']=_0x1591fb,_0x41bc7b[_0x2430b0('0x286f')]=_0x5296dc;function _0x5296dc(_0x7d9e85){const _0x47440b=_0x2430b0;_0x41bc7b['customization']=angular[_0x47440b('0x6fb')](_0x7d9e85),_0x41bc7b[_0x47440b('0x1fad')][_0x47440b('0xc7a')]=_0x47440b('0x4a8')['replace'](_0x47440b('0xa2d'),_0x41bc7b[_0x47440b('0xbc3')]['id']),_0x41bc7b['customization'][_0x47440b('0x25e2')]=[];}function _0x552c43(_0x408938){const _0x3f997c=_0x2430b0,_0x55f108=[_0x3f997c('0x2043'),'jpg',_0x3f997c('0x17cf')];if(!_0x36f548()[_0x3f997c('0x55a')](_0x55f108,_0x408938[_0x3f997c('0x115f')]()))return _0x4f9801[_0x3f997c('0x255')]({'title':_0x3f997c('0x782')+_0x408938['getExtension'](),'msg':'Supported\x20extension:\x20'+_0x55f108[_0x3f997c('0xa04')]()}),![];if(_0x408938[_0x3f997c('0x12dd')]>_0x2e6859)return _0x4f9801[_0x3f997c('0x255')]({'title':_0x3f997c('0xc56'),'msg':_0x3f997c('0x686')+_0x1faf84+'MB'}),![];const _0x441e8a={'id':_0x408938[_0x3f997c('0x40b')],'file':_0x408938,'type':'uploading'};return _0x41bc7b['customization'][_0x3f997c('0x25e2')][_0x3f997c('0x880')](_0x441e8a),!![];}function _0x58f64f(){const _0xc96292=_0x2430b0;_0x41bc7b[_0xc96292('0x13b8')][_0xc96292('0x2414')][_0xc96292('0x2440')][_0xc96292('0x1f61')]={'X-Requested-With':_0xc96292('0x19a7'),'Authorization':_0xc96292('0x2723')+_0x5695ed[_0xc96292('0xbaa')](_0xc96292('0xc2b'))},_0x41bc7b[_0xc96292('0x13b8')][_0xc96292('0x2414')]['upload']();}function _0x1591fb(_0x2f4003){const _0x98394b=_0x2430b0;angular[_0x98394b('0x1f88')](_0x41bc7b[_0x98394b('0xbc3')][_0x98394b('0x25e2')],function(_0x9f523d){const _0x24c723=_0x98394b;if(_0x9f523d['id']===_0x2f4003['uniqueIdentifier']){const _0x88f216=new FileReader();_0x88f216[_0x24c723('0x26dd')](_0x9f523d[_0x24c723('0x2889')]['file']),_0x88f216[_0x24c723('0x1403')]=function(_0x3ef99b){const _0xe92612=_0x24c723;_0x9f523d[_0xe92612('0x259e')]=_0x3ef99b[_0xe92612('0xc7a')][_0xe92612('0x252e')];},_0x9f523d['type']=_0x24c723('0x5b1');}});}}const _0x350f1f=_0x1137ea;_0x4f9a95[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x5d8'),_0x21d0f5('0x142d')];function _0x4f9a95(_0x2c7dc6,_0x28f401){const _0x50adfa=_0x21d0f5,_0x581381=this,_0x5e3b4a=0x8,_0x4359e4=_0x5e3b4a*0x400*0x400;_0x581381[_0x50adfa('0xbc3')]={},_0x581381[_0x50adfa('0x1fad')]={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x4359e4,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x581381[_0x50adfa('0x13b8')]={'flow':{}},_0x581381[_0x50adfa('0x92e')]=![],_0x581381[_0x50adfa('0x1c03')]=_0x1aa02e,_0x581381[_0x50adfa('0x1d01')]=_0x51d239,_0x581381[_0x50adfa('0x272b')]=_0x394677,_0x581381[_0x50adfa('0x286f')]=_0x10c113;function _0x10c113(_0x3e73e5){const _0x59024f=_0x50adfa;_0x581381[_0x59024f('0xbc3')]=angular[_0x59024f('0x6fb')](_0x3e73e5),_0x581381['ngFlowOptions'][_0x59024f('0xc7a')]=_0x59024f('0x1124')[_0x59024f('0x814')](_0x59024f('0xa2d'),_0x581381[_0x59024f('0xbc3')]['id']),_0x581381[_0x59024f('0xbc3')][_0x59024f('0x25e2')]=[];}function _0x1aa02e(_0x435245){const _0x2c0a8e=_0x50adfa,_0x434929=[_0x2c0a8e('0x2043'),_0x2c0a8e('0x51d')];if(!_0x36f548()[_0x2c0a8e('0x55a')](_0x434929,_0x435245[_0x2c0a8e('0x115f')]()))return _0x28f401[_0x2c0a8e('0x255')]({'title':'Invalid\x20extension:\x20'+_0x435245['getExtension'](),'msg':_0x2c0a8e('0x9bf')+_0x434929['join']()}),![];if(_0x435245[_0x2c0a8e('0x12dd')]>_0x4359e4)return _0x28f401['error']({'title':_0x2c0a8e('0xc56'),'msg':_0x2c0a8e('0x686')+_0x5e3b4a+'MB'}),![];const _0x4e5da4={'id':_0x435245[_0x2c0a8e('0x40b')],'file':_0x435245,'type':_0x2c0a8e('0xd9b')};return _0x581381[_0x2c0a8e('0xbc3')][_0x2c0a8e('0x25e2')]['unshift'](_0x4e5da4),!![];}function _0x51d239(){const _0x4787af=_0x50adfa;_0x581381[_0x4787af('0x13b8')][_0x4787af('0x2414')]['opts'][_0x4787af('0x1f61')]={'X-Requested-With':'XMLHttpRequest','Authorization':_0x4787af('0x2723')+_0x2c7dc6[_0x4787af('0xbaa')]('motion.token')},_0x581381[_0x4787af('0x13b8')][_0x4787af('0x2414')]['upload']();}function _0x394677(_0x529942){const _0x33ad78=_0x50adfa;angular['forEach'](_0x581381[_0x33ad78('0xbc3')][_0x33ad78('0x25e2')],function(_0x50cabb){const _0x5e477d=_0x33ad78;if(_0x50cabb['id']===_0x529942[_0x5e477d('0x40b')]){const _0x46852c=new FileReader();_0x46852c[_0x5e477d('0x26dd')](_0x50cabb[_0x5e477d('0x2889')][_0x5e477d('0x2889')]),_0x46852c[_0x5e477d('0x1403')]=function(_0x3852be){const _0x3eecf6=_0x5e477d;_0x50cabb[_0x3eecf6('0x259e')]=_0x3852be[_0x3eecf6('0xc7a')]['result'];},_0x50cabb[_0x5e477d('0x19fd')]=_0x5e477d('0x5b1');}});}}const _0x138fb0=_0x4f9a95;_0x54447e['$inject']=[_0x21d0f5('0x5d8'),_0x21d0f5('0x142d')];function _0x54447e(_0x215040,_0x103b9b){const _0x1b0def=_0x21d0f5,_0x59cb6b=this,_0x2da04a=0x8,_0x32a034=_0x2da04a*0x400*0x400;_0x59cb6b[_0x1b0def('0xbc3')]={},_0x59cb6b['ngFlowOptions']={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x32a034,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x59cb6b[_0x1b0def('0x13b8')]={'flow':{}},_0x59cb6b[_0x1b0def('0x92e')]=![],_0x59cb6b[_0x1b0def('0x1c03')]=_0x341b02,_0x59cb6b['upload']=_0x264584,_0x59cb6b[_0x1b0def('0x272b')]=_0x435853,_0x59cb6b[_0x1b0def('0x286f')]=_0x4d17ff;function _0x4d17ff(_0x2a7b01){const _0x5f3396=_0x1b0def;_0x59cb6b[_0x5f3396('0xbc3')]=angular[_0x5f3396('0x6fb')](_0x2a7b01),_0x59cb6b[_0x5f3396('0x1fad')][_0x5f3396('0xc7a')]=_0x5f3396('0x2240')[_0x5f3396('0x814')](_0x5f3396('0xa2d'),_0x59cb6b['customization']['id']),_0x59cb6b[_0x5f3396('0xbc3')][_0x5f3396('0x25e2')]=[];}function _0x341b02(_0x189ebf){const _0x164d88=_0x1b0def,_0x53c7ea=[_0x164d88('0x2043'),_0x164d88('0x51d')];if(!_0x36f548()[_0x164d88('0x55a')](_0x53c7ea,_0x189ebf['getExtension']()))return _0x103b9b[_0x164d88('0x255')]({'title':_0x164d88('0x782')+_0x189ebf[_0x164d88('0x115f')](),'msg':'Supported\x20extension:\x20'+_0x53c7ea['join']()}),![];if(_0x189ebf['size']>_0x32a034)return _0x103b9b['error']({'title':_0x164d88('0xc56'),'msg':'The\x20max\x20allowed\x20size\x20is\x20'+_0x2da04a+'MB'}),![];const _0x2b41f5={'id':_0x189ebf[_0x164d88('0x40b')],'file':_0x189ebf,'type':_0x164d88('0xd9b')};return _0x59cb6b['customization']['images']['unshift'](_0x2b41f5),!![];}function _0x264584(){const _0x35662b=_0x1b0def;_0x59cb6b['ngFlow'][_0x35662b('0x2414')][_0x35662b('0x2440')]['headers']={'X-Requested-With':_0x35662b('0x19a7'),'Authorization':_0x35662b('0x2723')+_0x215040['get'](_0x35662b('0xc2b'))},_0x59cb6b[_0x35662b('0x13b8')][_0x35662b('0x2414')]['upload']();}function _0x435853(_0x215d56){const _0x3d495d=_0x1b0def;angular['forEach'](_0x59cb6b[_0x3d495d('0xbc3')][_0x3d495d('0x25e2')],function(_0x4c0c10){const _0xd6d76d=_0x3d495d;if(_0x4c0c10['id']===_0x215d56['uniqueIdentifier']){const _0x1e2b05=new FileReader();_0x1e2b05[_0xd6d76d('0x26dd')](_0x4c0c10[_0xd6d76d('0x2889')][_0xd6d76d('0x2889')]),_0x1e2b05[_0xd6d76d('0x1403')]=function(_0x1ebf0f){const _0x4fd6ac=_0xd6d76d;_0x4c0c10[_0x4fd6ac('0x259e')]=_0x1ebf0f[_0x4fd6ac('0xc7a')][_0x4fd6ac('0x252e')];},_0x4c0c10[_0xd6d76d('0x19fd')]=_0xd6d76d('0x5b1');}});}}const _0xb61028=_0x54447e;_0x227c6e[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x5d8'),'toasty'];function _0x227c6e(_0x2c52d0,_0x4934a5){const _0x19adb0=_0x21d0f5,_0x58a0f4=this,_0x22c9f0=0x8,_0x5e9cf0=_0x22c9f0*0x400*0x400;_0x58a0f4[_0x19adb0('0xbc3')]={},_0x58a0f4['ngFlowOptions']={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x5e9cf0,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x58a0f4[_0x19adb0('0x13b8')]={'flow':{}},_0x58a0f4['dropping']=![],_0x58a0f4['fileAdded']=_0x46fc83,_0x58a0f4[_0x19adb0('0x1d01')]=_0x231bb4,_0x58a0f4['fileSuccess']=_0x449098,_0x58a0f4['init']=_0x474eec;function _0x474eec(_0x56b3d9){const _0x58566b=_0x19adb0;_0x58a0f4[_0x58566b('0xbc3')]=angular['copy'](_0x56b3d9),_0x58a0f4[_0x58566b('0x1fad')][_0x58566b('0xc7a')]='/api/settings/1/preferred'[_0x58566b('0x814')](':id',_0x58a0f4[_0x58566b('0xbc3')]['id']),_0x58a0f4[_0x58566b('0xbc3')][_0x58566b('0x25e2')]=[];}function _0x46fc83(_0xe4523f){const _0xcb4813=_0x19adb0,_0x54f640=[_0xcb4813('0x2043'),'jpg'];if(!_0x36f548()[_0xcb4813('0x55a')](_0x54f640,_0xe4523f[_0xcb4813('0x115f')]()))return _0x4934a5[_0xcb4813('0x255')]({'title':'Invalid\x20extension:\x20'+_0xe4523f[_0xcb4813('0x115f')](),'msg':_0xcb4813('0x9bf')+_0x54f640['join']()}),![];if(_0xe4523f[_0xcb4813('0x12dd')]>_0x5e9cf0)return _0x4934a5[_0xcb4813('0x255')]({'title':'File\x20too\x20big','msg':_0xcb4813('0x686')+_0x22c9f0+'MB'}),![];const _0x59cbd6={'id':_0xe4523f[_0xcb4813('0x40b')],'file':_0xe4523f,'type':_0xcb4813('0xd9b')};return _0x58a0f4[_0xcb4813('0xbc3')][_0xcb4813('0x25e2')]['unshift'](_0x59cbd6),!![];}function _0x231bb4(){const _0x4e2690=_0x19adb0;_0x58a0f4[_0x4e2690('0x13b8')][_0x4e2690('0x2414')][_0x4e2690('0x2440')]['headers']={'X-Requested-With':_0x4e2690('0x19a7'),'Authorization':_0x4e2690('0x2723')+_0x2c52d0[_0x4e2690('0xbaa')]('motion.token')},_0x58a0f4[_0x4e2690('0x13b8')]['flow'][_0x4e2690('0x1d01')]();}function _0x449098(_0x4c83a2){const _0x4c1006=_0x19adb0;angular[_0x4c1006('0x1f88')](_0x58a0f4[_0x4c1006('0xbc3')]['images'],function(_0x549b49){const _0x73f6c5=_0x4c1006;if(_0x549b49['id']===_0x4c83a2[_0x73f6c5('0x40b')]){const _0x5c2850=new FileReader();_0x5c2850[_0x73f6c5('0x26dd')](_0x549b49[_0x73f6c5('0x2889')][_0x73f6c5('0x2889')]),_0x5c2850[_0x73f6c5('0x1403')]=function(_0x3cc6a4){const _0x28b0b2=_0x73f6c5;_0x549b49['url']=_0x3cc6a4[_0x28b0b2('0xc7a')][_0x28b0b2('0x252e')];},_0x549b49['type']='image';}});}}const _0x1577c8=_0x227c6e;_0x2d8352[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0xcbc'),'$location',_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0xb6b'),'toasty',_0x21d0f5('0xc87'),_0x21d0f5('0x769'),'api','Auth',_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1'),_0x21d0f5('0xb25')];function _0x2d8352(_0x4cb478,_0x21798f,_0x4cf362,_0x4580f8,_0x471669,_0x4f7481,_0x42e5c0,_0x2e78f8,_0x171838,_0x1ad703,_0x4ab317,_0x1e1271,_0x2b013b,_0x136e5c){const _0x4e93ea=_0x21d0f5,_0x49696f=this;_0x49696f[_0x4e93ea('0x32a')]=_0x4ab317[_0x4e93ea('0x2428')](),_0x49696f['errors']=[],_0x49696f[_0x4e93ea('0x23e1')]=_0x2b013b,_0x49696f[_0x4e93ea('0x17ff')]=_0x1e1271,_0x49696f['crudPermissions']=_0x136e5c,_0x49696f[_0x4e93ea('0x2c9')]={},_0x49696f[_0x4e93ea('0x2834')]=_0x49696f[_0x4e93ea('0x23e1')]&&_0x49696f['setting'][_0x4e93ea('0x1d4')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x49696f[_0x4e93ea('0x134b')]='SETTINGS.EDIT_GENERAL',_0x49696f[_0x4e93ea('0x769')]=angular[_0x4e93ea('0x6fb')](_0x171838),_0x49696f[_0x4e93ea('0xc87')]=_0x2e78f8,_0x49696f['newGeneral']=![];!_0x49696f[_0x4e93ea('0x769')]&&(_0x49696f[_0x4e93ea('0x769')]={'min_internal':0x3e8,'chatTimeout':0x1e,'phoneBarAutoUpdater':!![],'phoneBarAutoUpdaterUrl':_0x4e93ea('0x8cb'),'splitSizeCsv':0x1388,'splitSizePdf':0x3e8,'splitSizeXlsx':0x1388,'messagesAlignment':_0x4e93ea('0xbfd'),'phoneBarRememberMeEnabled':!![],'allowedLoginAttempts':0x5,'blockDuration':0xa,'loginMailFrequency':0xa,'enforcePasswordHistory':!![],'passwordHistoryLimit':0x3},_0x49696f[_0x4e93ea('0x134b')]='SETTINGS.NEW_GENERAL',_0x49696f[_0x4e93ea('0x2e1')]=!![]);_0x49696f[_0x4e93ea('0x922')]=_0x490e5f,_0x49696f[_0x4e93ea('0x2579')]=_0x288b57,_0x49696f[_0x4e93ea('0xfcf')]=_0x299809,_0x49696f[_0x4e93ea('0x1bd1')]=_0x3bffff,_0x49696f[_0x4e93ea('0xc4e')]=_0x5cf738,_0x1ad703['cloudProvider'][_0x4e93ea('0xbaa')]({'fields':_0x4e93ea('0x721'),'sort':'name','nolimit':_0x4e93ea('0x204c')})[_0x4e93ea('0x1549')]['then'](function(_0x218d61){const _0x2eb85f=_0x4e93ea;_0x49696f[_0x2eb85f('0xfd3')]=_0x218d61[_0x2eb85f('0x19b2')]||[];})[_0x4e93ea('0x151d')](function(_0x583963){const _0x4575d1=_0x4e93ea;_0x42e5c0['error']({'title':_0x583963[_0x4575d1('0xff9')]?_0x4575d1('0x574')+_0x583963[_0x4575d1('0xff9')]+'\x20-\x20'+_0x583963[_0x4575d1('0x212f')]:_0x4575d1('0x85c'),'msg':_0x583963[_0x4575d1('0x4e8')]?JSON[_0x4575d1('0x3e')](_0x583963[_0x4575d1('0x4e8')]):_0x583963[_0x4575d1('0xaab')]()});});function _0x490e5f(){const _0x46e218=_0x4e93ea;_0x49696f[_0x46e218('0x120f')]=[],_0x1ad703[_0x46e218('0x23e1')][_0x46e218('0x259')](_0x49696f[_0x46e218('0x769')])[_0x46e218('0x1549')][_0x46e218('0x11bf')](function(_0x533f30){const _0x48d27e=_0x46e218;_0x49696f['generals'][_0x48d27e('0x880')](_0x533f30[_0x48d27e('0x2866')]()),_0x42e5c0[_0x48d27e('0x2693')]({'title':_0x48d27e('0x180d'),'msg':_0x49696f[_0x48d27e('0x769')]['name']?_0x49696f['general'][_0x48d27e('0x1909')]+'\x20has\x20been\x20created!':''}),_0x5cf738(_0x533f30);})[_0x46e218('0x151d')](function(_0x4c1a50){const _0xb8a329=_0x46e218;if(_0x4c1a50[_0xb8a329('0x4e8')]&&_0x4c1a50[_0xb8a329('0x4e8')]['errors']&&_0x4c1a50[_0xb8a329('0x4e8')][_0xb8a329('0x120f')][_0xb8a329('0x1e22')]){_0x49696f[_0xb8a329('0x120f')]=_0x4c1a50[_0xb8a329('0x4e8')][_0xb8a329('0x120f')]||[{'message':_0x4c1a50[_0xb8a329('0xaab')](),'type':_0xb8a329('0x1fcc')}];for(let _0x50778c=0x0;_0x50778c<_0x4c1a50[_0xb8a329('0x4e8')][_0xb8a329('0x120f')][_0xb8a329('0x1e22')];_0x50778c+=0x1){_0x42e5c0[_0xb8a329('0x255')]({'title':_0x4c1a50[_0xb8a329('0x4e8')]['errors'][_0x50778c][_0xb8a329('0x19fd')],'msg':_0x4c1a50[_0xb8a329('0x4e8')]['errors'][_0x50778c][_0xb8a329('0x1b86')]});}}else _0x42e5c0[_0xb8a329('0x255')]({'title':_0x4c1a50[_0xb8a329('0xff9')]?_0xb8a329('0x574')+_0x4c1a50['status']+_0xb8a329('0xb0b')+_0x4c1a50[_0xb8a329('0x212f')]:'api.setting.save','msg':_0x4c1a50[_0xb8a329('0x4e8')]?JSON['stringify'](_0x4c1a50[_0xb8a329('0x4e8')][_0xb8a329('0x1b86')]):_0x4c1a50['toString']()});});}function _0x288b57(){const _0x45678c=_0x4e93ea;_0x49696f[_0x45678c('0x120f')]=[],_0x1ad703['setting']['update']({'id':_0x49696f[_0x45678c('0x769')]['id']},_0x49696f[_0x45678c('0x769')])['$promise'][_0x45678c('0x11bf')](function(_0x46a950){const _0x32c886=_0x45678c,_0x21da76=_0x36f548()[_0x32c886('0x1ad4')](_0x49696f[_0x32c886('0xc87')],{'id':_0x46a950['id']});_0x21da76&&_0x36f548()['merge'](_0x21da76,_0x36f548()[_0x32c886('0x258')](_0x46a950[_0x32c886('0x2866')](),_0x36f548()[_0x32c886('0xe22')](_0x21da76))),_0x42e5c0[_0x32c886('0x2693')]({'title':_0x32c886('0x1a1f'),'msg':_0x49696f[_0x32c886('0x769')]['name']?_0x49696f[_0x32c886('0x769')]['name']+'\x20has\x20been\x20saved!':''}),_0x5cf738(_0x46a950);})[_0x45678c('0x151d')](function(_0x1f1ad5){const _0x509815=_0x45678c;if(_0x1f1ad5['data']&&_0x1f1ad5[_0x509815('0x4e8')][_0x509815('0x120f')]&&_0x1f1ad5[_0x509815('0x4e8')][_0x509815('0x120f')][_0x509815('0x1e22')]){_0x49696f[_0x509815('0x120f')]=_0x1f1ad5[_0x509815('0x4e8')][_0x509815('0x120f')]||[{'message':_0x1f1ad5[_0x509815('0xaab')](),'type':_0x509815('0x756')}];for(let _0xeec490=0x0;_0xeec490<_0x1f1ad5['data']['errors'][_0x509815('0x1e22')];_0xeec490++){_0x42e5c0[_0x509815('0x255')]({'title':_0x1f1ad5[_0x509815('0x4e8')][_0x509815('0x120f')][_0xeec490]['type'],'msg':_0x1f1ad5[_0x509815('0x4e8')][_0x509815('0x120f')][_0xeec490][_0x509815('0x1b86')]});}}else _0x42e5c0['error']({'title':_0x1f1ad5['status']?_0x509815('0x574')+_0x1f1ad5[_0x509815('0xff9')]+_0x509815('0xb0b')+_0x1f1ad5[_0x509815('0x212f')]:_0x509815('0x756'),'msg':_0x1f1ad5[_0x509815('0x4e8')]?JSON[_0x509815('0x3e')](_0x1f1ad5[_0x509815('0x4e8')]['message']):_0x1f1ad5['toString']()});});}function _0x299809(_0x56d625){const _0x336bcb=_0x4e93ea;_0x49696f['errors']=[];const _0x3ac35a=_0x4580f8['confirm']()[_0x336bcb('0x134b')](_0x336bcb('0x1fa9'))[_0x336bcb('0x252a')](_0x336bcb('0x213a'))[_0x336bcb('0xb2e')](_0x336bcb('0x3c'))['ok'](_0x336bcb('0x1167'))[_0x336bcb('0x26c9')](_0x336bcb('0x784'))[_0x336bcb('0x1e25')](_0x56d625);_0x4580f8[_0x336bcb('0xb9')](_0x3ac35a)[_0x336bcb('0x11bf')](function(){const _0x40762c=_0x336bcb;_0x1ad703[_0x40762c('0x23e1')][_0x40762c('0x2088')]({'id':_0x49696f['general']['id']})[_0x40762c('0x1549')]['then'](function(){const _0x308cbd=_0x40762c;_0x36f548()[_0x308cbd('0x14a5')](_0x49696f[_0x308cbd('0xc87')],{'id':_0x49696f['general']['id']}),_0x42e5c0[_0x308cbd('0x2693')]({'title':_0x308cbd('0x45c'),'msg':(_0x49696f['general'][_0x308cbd('0x1909')]||_0x308cbd('0x769'))+_0x308cbd('0x433')}),_0x5cf738(_0x49696f['general']);})[_0x40762c('0x151d')](function(_0x5df47a){const _0x293810=_0x40762c;if(_0x5df47a[_0x293810('0x4e8')]&&_0x5df47a[_0x293810('0x4e8')]['errors']&&_0x5df47a['data'][_0x293810('0x120f')][_0x293810('0x1e22')]){_0x49696f['errors']=_0x5df47a[_0x293810('0x4e8')]['errors']||[{'message':_0x5df47a['toString'](),'type':_0x293810('0x23ad')}];for(let _0x3ea6f9=0x0;_0x3ea6f9<_0x5df47a[_0x293810('0x4e8')][_0x293810('0x120f')][_0x293810('0x1e22')];_0x3ea6f9++){_0x42e5c0['error']({'title':_0x5df47a[_0x293810('0x4e8')][_0x293810('0x120f')][_0x3ea6f9]['type'],'msg':_0x5df47a[_0x293810('0x4e8')][_0x293810('0x120f')][_0x3ea6f9][_0x293810('0x1b86')]});}}else _0x42e5c0[_0x293810('0x255')]({'title':_0x5df47a[_0x293810('0xff9')]?'API:'+_0x5df47a['status']+_0x293810('0xb0b')+_0x5df47a['statusText']:_0x293810('0x23ad'),'msg':_0x5df47a[_0x293810('0x4e8')]?JSON[_0x293810('0x3e')](_0x5df47a['data'][_0x293810('0x1b86')]):_0x5df47a['message']||_0x5df47a[_0x293810('0xaab')]()});});},function(){});}function _0x3bffff(_0x2d5f39){return _0x2d5f39===null?undefined:new Date(_0x2d5f39);}function _0x5cf738(_0xf6649f){const _0x1f0745=_0x4e93ea;_0x4580f8[_0x1f0745('0x237e')](_0xf6649f);}}const _0x4d1e8d=_0x2d8352;_0x14f86a[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0xc87'),_0x21d0f5('0x12a5'),_0x21d0f5('0x142d'),_0x21d0f5('0x17ff'),'Auth'];function _0x14f86a(_0x87bfdd,_0x8b8674,_0x10f0e3,_0x38a6e9,_0x38eac4){const _0x38d848=_0x21d0f5,_0x3326c5=this;_0x3326c5[_0x38d848('0x32a')]=_0x38eac4[_0x38d848('0x2428')](),_0x3326c5['license']=_0x38a6e9,_0x3326c5[_0x38d848('0xc87')]=_0x87bfdd,_0x3326c5['general']={};_0x3326c5[_0x38d848('0xc87')]&&_0x3326c5[_0x38d848('0xc87')][_0x38d848('0x19b2')]&&_0x3326c5[_0x38d848('0xc87')][_0x38d848('0x19b2')][_0x38d848('0x1e22')]&&(_0x3326c5[_0x38d848('0x769')]=_0x3326c5['generals']['rows'][0x0]);_0x8b8674[_0x38d848('0x1384')]['get']({'fields':_0x38d848('0x721'),'sort':_0x38d848('0x1909'),'nolimit':_0x38d848('0x204c')})[_0x38d848('0x1549')][_0x38d848('0x11bf')](function(_0x303dc6){const _0x32e043=_0x38d848;_0x3326c5[_0x32e043('0xfd3')]=_0x303dc6[_0x32e043('0x19b2')]||[];})['catch'](function(_0x281d0e){const _0x39aa32=_0x38d848;_0x10f0e3['error']({'title':_0x281d0e[_0x39aa32('0xff9')]?'API:'+_0x281d0e['status']+_0x39aa32('0xb0b')+_0x281d0e['statusText']:_0x39aa32('0x85c'),'msg':_0x281d0e[_0x39aa32('0x4e8')]?JSON['stringify'](_0x281d0e[_0x39aa32('0x4e8')]):_0x281d0e[_0x39aa32('0xaab')]()});}),_0x3326c5[_0x38d848('0x2579')]=_0x38f923;function _0x38f923(){const _0x14c11a=_0x38d848;_0x3326c5[_0x14c11a('0x769')]['id']?_0x8b8674['setting'][_0x14c11a('0x5ab')]({'id':_0x3326c5[_0x14c11a('0x769')]['id']},_0x3326c5[_0x14c11a('0x769')])[_0x14c11a('0x1549')][_0x14c11a('0x11bf')](function(){const _0x1ee3a2=_0x14c11a;_0x10f0e3[_0x1ee3a2('0x2693')]({'title':_0x1ee3a2('0x1075'),'msg':_0x3326c5[_0x1ee3a2('0x769')][_0x1ee3a2('0x1909')]?_0x3326c5[_0x1ee3a2('0x769')][_0x1ee3a2('0x1909')]+'\x20has\x20been\x20updated!':''});})['catch'](function(_0x256dcd){const _0x325325=_0x14c11a;_0x10f0e3[_0x325325('0x255')]({'title':_0x256dcd[_0x325325('0xff9')]?_0x325325('0x574')+_0x256dcd[_0x325325('0xff9')]+_0x325325('0xb0b')+_0x256dcd[_0x325325('0x212f')]:_0x325325('0x20e0'),'msg':_0x256dcd[_0x325325('0x4e8')]?JSON[_0x325325('0x3e')](_0x256dcd[_0x325325('0x4e8')]):_0x256dcd[_0x325325('0xaab')]()});}):_0x8b8674[_0x14c11a('0x23e1')]['save'](_0x3326c5[_0x14c11a('0x769')])[_0x14c11a('0x1549')][_0x14c11a('0x11bf')](function(_0x2a7c08){const _0x258938=_0x14c11a;_0x36f548()['merge'](_0x3326c5[_0x258938('0x769')],_0x2a7c08),_0x10f0e3[_0x258938('0x2693')]({'title':_0x258938('0x1075'),'msg':_0x3326c5['general']['name']?_0x3326c5[_0x258938('0x769')][_0x258938('0x1909')]+_0x258938('0xd7'):''});})[_0x14c11a('0x151d')](function(_0x224809){const _0x1fd78e=_0x14c11a;_0x10f0e3['error']({'title':_0x224809[_0x1fd78e('0xff9')]?_0x1fd78e('0x574')+_0x224809[_0x1fd78e('0xff9')]+_0x1fd78e('0xb0b')+_0x224809[_0x1fd78e('0x212f')]:_0x1fd78e('0x20e0'),'msg':_0x224809[_0x1fd78e('0x4e8')]?JSON[_0x1fd78e('0x3e')](_0x224809['data']):_0x224809['toString']()});});}}const _0x151a7d=_0x14f86a;_0x20c640[_0x21d0f5('0x1e9a')]=['$scope',_0x21d0f5('0xcbc'),'$location',_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0xb6b'),_0x21d0f5('0x142d'),_0x21d0f5('0x1b0d'),'network','api',_0x21d0f5('0x1150'),_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1')];function _0x20c640(_0x15d28d,_0x5eaa55,_0x3e8133,_0x197108,_0x5999a7,_0x40018d,_0x156325,_0x5e6a12,_0x47f953,_0x4b9dc0,_0x3d3003,_0x25ed6a,_0x3657d7){const _0x5854af=_0x21d0f5,_0x2e526a=this;_0x2e526a[_0x5854af('0x32a')]=_0x3d3003['getCurrentUser'](),_0x2e526a[_0x5854af('0x120f')]=[],_0x2e526a[_0x5854af('0x23e1')]=_0x3657d7,_0x2e526a['license']=_0x25ed6a,_0x2e526a[_0x5854af('0x2c9')]={},_0x2e526a[_0x5854af('0x2834')]=_0x2e526a[_0x5854af('0x23e1')]&&_0x2e526a[_0x5854af('0x23e1')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2e526a[_0x5854af('0x134b')]=_0x5854af('0x1a5b'),_0x2e526a[_0x5854af('0x3cf')]=angular[_0x5854af('0x6fb')](_0x47f953),_0x2e526a[_0x5854af('0x1b0d')]=_0x5e6a12,_0x2e526a[_0x5854af('0x7c6')]=![];!_0x2e526a['network']&&(_0x2e526a[_0x5854af('0x3cf')]={'type':_0x5854af('0x1a44')},_0x2e526a[_0x5854af('0x134b')]=_0x5854af('0xe6e'),_0x2e526a[_0x5854af('0x7c6')]=!![]);_0x2e526a[_0x5854af('0x276d')]=_0x12c71c,_0x2e526a[_0x5854af('0xcd6')]=_0x42c7f7,_0x2e526a[_0x5854af('0x1154')]=_0x6f0907,_0x2e526a[_0x5854af('0x1bd1')]=_0x35b98e,_0x2e526a[_0x5854af('0xc4e')]=_0x2bb9a9;function _0x12c71c(){const _0x245ed1=_0x5854af;_0x2e526a[_0x245ed1('0x120f')]=[],_0x4b9dc0['network'][_0x245ed1('0x259')](_0x2e526a[_0x245ed1('0x3cf')])['$promise'][_0x245ed1('0x11bf')](function(_0x110a2f){const _0x4143ba=_0x245ed1;_0x2e526a[_0x4143ba('0x1b0d')][_0x4143ba('0x880')](_0x110a2f[_0x4143ba('0x2866')]()),_0x156325[_0x4143ba('0x2693')]({'title':_0x4143ba('0xcc9'),'msg':_0x2e526a[_0x4143ba('0x3cf')][_0x4143ba('0x1909')]?_0x2e526a[_0x4143ba('0x3cf')]['name']+_0x4143ba('0x7fb'):''}),_0x2bb9a9(_0x110a2f);})[_0x245ed1('0x151d')](function(_0xc88fb2){const _0x3e7381=_0x245ed1;if(_0xc88fb2['data']&&_0xc88fb2[_0x3e7381('0x4e8')][_0x3e7381('0x120f')]&&_0xc88fb2['data'][_0x3e7381('0x120f')][_0x3e7381('0x1e22')]){_0x2e526a[_0x3e7381('0x120f')]=_0xc88fb2[_0x3e7381('0x4e8')][_0x3e7381('0x120f')]||[{'message':_0xc88fb2[_0x3e7381('0xaab')](),'type':'api.network.save'}];for(let _0x5d6910=0x0;_0x5d6910<_0xc88fb2[_0x3e7381('0x4e8')][_0x3e7381('0x120f')][_0x3e7381('0x1e22')];_0x5d6910+=0x1){_0x156325[_0x3e7381('0x255')]({'title':_0xc88fb2['data']['errors'][_0x5d6910][_0x3e7381('0x19fd')],'msg':_0xc88fb2['data'][_0x3e7381('0x120f')][_0x5d6910][_0x3e7381('0x1b86')]});}}else _0x156325[_0x3e7381('0x255')]({'title':_0xc88fb2['status']?_0x3e7381('0x574')+_0xc88fb2[_0x3e7381('0xff9')]+_0x3e7381('0xb0b')+_0xc88fb2[_0x3e7381('0x212f')]:_0x3e7381('0x2620'),'msg':_0xc88fb2[_0x3e7381('0x4e8')]?JSON[_0x3e7381('0x3e')](_0xc88fb2[_0x3e7381('0x4e8')]['message']):_0xc88fb2[_0x3e7381('0xaab')]()});});}function _0x42c7f7(){const _0x1be7ac=_0x5854af;_0x2e526a[_0x1be7ac('0x120f')]=[],_0x4b9dc0[_0x1be7ac('0x3cf')][_0x1be7ac('0x5ab')]({'id':_0x2e526a['network']['id']},_0x2e526a[_0x1be7ac('0x3cf')])[_0x1be7ac('0x1549')]['then'](function(_0x4c391d){const _0x18210d=_0x1be7ac,_0x559577=_0x36f548()['find'](_0x2e526a[_0x18210d('0x1b0d')],{'id':_0x4c391d['id']});_0x559577&&_0x36f548()['merge'](_0x559577,_0x36f548()[_0x18210d('0x258')](_0x4c391d[_0x18210d('0x2866')](),_0x36f548()[_0x18210d('0xe22')](_0x559577))),_0x156325[_0x18210d('0x2693')]({'title':_0x18210d('0x15f8'),'msg':_0x2e526a[_0x18210d('0x3cf')][_0x18210d('0x1909')]?_0x2e526a[_0x18210d('0x3cf')][_0x18210d('0x1909')]+_0x18210d('0x1a78'):''}),_0x2bb9a9(_0x4c391d);})[_0x1be7ac('0x151d')](function(_0x3d9ee1){const _0x55fdae=_0x1be7ac;if(_0x3d9ee1[_0x55fdae('0x4e8')]&&_0x3d9ee1[_0x55fdae('0x4e8')][_0x55fdae('0x120f')]&&_0x3d9ee1[_0x55fdae('0x4e8')]['errors'][_0x55fdae('0x1e22')]){_0x2e526a['errors']=_0x3d9ee1[_0x55fdae('0x4e8')][_0x55fdae('0x120f')]||[{'message':_0x3d9ee1[_0x55fdae('0xaab')](),'type':_0x55fdae('0x1cce')}];for(let _0x1dcc85=0x0;_0x1dcc85<_0x3d9ee1[_0x55fdae('0x4e8')][_0x55fdae('0x120f')][_0x55fdae('0x1e22')];_0x1dcc85++){_0x156325[_0x55fdae('0x255')]({'title':_0x3d9ee1[_0x55fdae('0x4e8')][_0x55fdae('0x120f')][_0x1dcc85]['type'],'msg':_0x3d9ee1[_0x55fdae('0x4e8')][_0x55fdae('0x120f')][_0x1dcc85]['message']});}}else _0x156325[_0x55fdae('0x255')]({'title':_0x3d9ee1[_0x55fdae('0xff9')]?_0x55fdae('0x574')+_0x3d9ee1['status']+_0x55fdae('0xb0b')+_0x3d9ee1[_0x55fdae('0x212f')]:'api.network.update','msg':_0x3d9ee1['data']?JSON[_0x55fdae('0x3e')](_0x3d9ee1[_0x55fdae('0x4e8')][_0x55fdae('0x1b86')]):_0x3d9ee1['toString']()});});}function _0x6f0907(_0x9b054f){const _0x368002=_0x5854af;_0x2e526a['errors']=[];const _0x4c4d33=_0x197108[_0x368002('0x132b')]()[_0x368002('0x134b')](_0x368002('0x1fa9'))[_0x368002('0x252a')](_0x368002('0x110f'))[_0x368002('0xb2e')](_0x368002('0x15f5'))['ok']('Delete')['cancel'](_0x368002('0x784'))[_0x368002('0x1e25')](_0x9b054f);_0x197108[_0x368002('0xb9')](_0x4c4d33)['then'](function(){const _0x5cd856=_0x368002;_0x4b9dc0[_0x5cd856('0x3cf')][_0x5cd856('0x2088')]({'id':_0x2e526a[_0x5cd856('0x3cf')]['id']})[_0x5cd856('0x1549')]['then'](function(){const _0x197a49=_0x5cd856;_0x36f548()[_0x197a49('0x14a5')](_0x2e526a[_0x197a49('0x1b0d')],{'id':_0x2e526a[_0x197a49('0x3cf')]['id']}),_0x156325[_0x197a49('0x2693')]({'title':_0x197a49('0x3ae'),'msg':(_0x2e526a[_0x197a49('0x3cf')][_0x197a49('0x1909')]||_0x197a49('0x3cf'))+_0x197a49('0x433')}),_0x2bb9a9(_0x2e526a[_0x197a49('0x3cf')]);})['catch'](function(_0xc18975){const _0x56dcfd=_0x5cd856;if(_0xc18975['data']&&_0xc18975['data']['errors']&&_0xc18975[_0x56dcfd('0x4e8')][_0x56dcfd('0x120f')][_0x56dcfd('0x1e22')]){_0x2e526a['errors']=_0xc18975[_0x56dcfd('0x4e8')][_0x56dcfd('0x120f')]||[{'message':_0xc18975[_0x56dcfd('0xaab')](),'type':_0x56dcfd('0x509')}];for(let _0x4a1026=0x0;_0x4a1026<_0xc18975[_0x56dcfd('0x4e8')][_0x56dcfd('0x120f')][_0x56dcfd('0x1e22')];_0x4a1026++){_0x156325[_0x56dcfd('0x255')]({'title':_0xc18975[_0x56dcfd('0x4e8')][_0x56dcfd('0x120f')][_0x4a1026]['type'],'msg':_0xc18975['data'][_0x56dcfd('0x120f')][_0x4a1026]['message']});}}else _0x156325[_0x56dcfd('0x255')]({'title':_0xc18975[_0x56dcfd('0xff9')]?_0x56dcfd('0x574')+_0xc18975[_0x56dcfd('0xff9')]+'\x20-\x20'+_0xc18975[_0x56dcfd('0x212f')]:'api.network.delete','msg':_0xc18975['data']?JSON[_0x56dcfd('0x3e')](_0xc18975[_0x56dcfd('0x4e8')][_0x56dcfd('0x1b86')]):_0xc18975['message']||_0xc18975[_0x56dcfd('0xaab')]()});});},function(){});}function _0x35b98e(_0x394d9d){return _0x394d9d===null?undefined:new Date(_0x394d9d);}function _0x2bb9a9(_0x4cbbd7){_0x197108['hide'](_0x4cbbd7);}}const _0x3c776d=_0x20c640,_0x4fa572=_0x351988['p']+_0x21d0f5('0x16f8');_0xfc5fef[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0x2143'),_0x21d0f5('0xcbc'),_0x21d0f5('0x18fe'),'$mdDialog',_0x21d0f5('0x1b30'),_0x21d0f5('0x17f5'),_0x21d0f5('0xb6b'),_0x21d0f5('0x1b0d'),_0x21d0f5('0x12a5'),'msUtils','toasty',_0x21d0f5('0x1150'),_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1')];function _0xfc5fef(_0x44835e,_0x3700f2,_0x1cd1df,_0x2a6b5d,_0x37b335,_0x23c822,_0x410aaf,_0x38586f,_0x62e957,_0x5dbc4e,_0x10f5c1,_0x7524c0,_0x19d2f5,_0x532d20,_0x5d5859){const _0x51db17=_0x21d0f5,_0x4daac5=this;_0x4daac5[_0x51db17('0x17ff')]=_0x532d20,_0x4daac5[_0x51db17('0x23e1')]=_0x5d5859,_0x4daac5[_0x51db17('0x32a')]=_0x19d2f5[_0x51db17('0x2428')](),_0x4daac5[_0x51db17('0x1b0d')]=_0x62e957||{'count':0x0,'rows':[]},_0x4daac5[_0x51db17('0x13e8')]=_0x51db17('0x1b0d'),_0x4daac5['listOrder']='',_0x4daac5[_0x51db17('0xe3c')]=null,_0x4daac5['selectedNetworks']=[],_0x4daac5[_0x51db17('0x1f2a')]={'fields':_0x51db17('0x9f3'),'sort':_0x51db17('0x1c74'),'limit':0xa,'page':0x1},_0x4daac5[_0x51db17('0x5fd')]=_0x36f548()[_0x51db17('0x2130')]([{'option':_0x51db17('0xb19'),'value':_0x51db17('0x92b')},{'option':_0x51db17('0x1bd4'),'value':_0x51db17('0x2e0')},{'option':_0x51db17('0x2607'),'value':_0x51db17('0xb95')},{'option':'Stun','value':_0x51db17('0x1921')}],function(_0x8fd105){const _0x155075=_0x51db17;return _0x36f548()[_0x155075('0x814')](_0x8fd105['value'],new RegExp('\x27','g'),'');}),_0x4daac5['editdialog']=_0x5d1bab,_0x4daac5['deleteconfirm']=_0x553118,_0x4daac5[_0x51db17('0x2693')]=_0x29ee06,_0x4daac5[_0x51db17('0x13df')]=_0x4be572,_0x4daac5['createOrEditNetwork']=_0x41404b,_0x4daac5['deleteNetwork']=_0x55939e,_0x4daac5[_0x51db17('0x1aab')]=_0x256ad7,_0x4daac5['deleteSelectedNetworks']=_0x4e1b25,_0x4daac5[_0x51db17('0x171b')]=_0x5b6b27,_0x4daac5[_0x51db17('0x1f17')]=_0x405387;function _0x5d1bab(_0x28f21e,_0x55b93b){const _0x207365=_0x51db17;_0x37b335[_0x207365('0xb9')]({'controller':_0x207365('0x10b5'),'controllerAs':'vm','templateUrl':_0x4fa572,'parent':angular['element'](_0x23c822[_0x207365('0x1d2')]),'targetEvent':_0x55b93b,'clickOutsideToClose':!![],'locals':{'network':_0x28f21e,'networks':_0x4daac5['networks'][_0x207365('0x19b2')],'license':_0x4daac5[_0x207365('0x17ff')],'setting':null,'crudPermissions':_0x4daac5['crudPermissions']}});}function _0x553118(_0x2b1c72,_0x2931ea){const _0x1c4498=_0x51db17,_0x55ec11=_0x37b335[_0x1c4498('0x132b')]()[_0x1c4498('0x134b')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x36f548()[_0x1c4498('0x13cf')](_0x1c4498('0x3cf'))+'?')[_0x1c4498('0x1d03')](_0x1c4498('0x2061')+(_0x2b1c72[_0x1c4498('0x1909')]||_0x1c4498('0x3cf'))+''+_0x1c4498('0x1a'))['ariaLabel']('delete\x20network')[_0x1c4498('0x1e25')](_0x2931ea)['ok']('OK')['cancel']('CANCEL');_0x37b335[_0x1c4498('0xb9')](_0x55ec11)['then'](function(){_0x55939e(_0x2b1c72);},function(){const _0x56d297=_0x1c4498;console[_0x56d297('0xc78')](_0x56d297('0x772'));});}let _0x416e2e=!![],_0x58e940=0x1;_0x44835e[_0x51db17('0x2087')]('vm.query.filter',function(_0x71e284,_0x550937){const _0x1a9278=_0x51db17;_0x416e2e?_0x410aaf(function(){_0x416e2e=![];}):(!_0x550937&&(_0x58e940=_0x4daac5[_0x1a9278('0x1f2a')][_0x1a9278('0x1c2')]),_0x71e284!==_0x550937&&(_0x4daac5[_0x1a9278('0x1f2a')][_0x1a9278('0x1c2')]=0x1),!_0x71e284&&(_0x4daac5[_0x1a9278('0x1f2a')]['page']=_0x58e940),_0x4daac5[_0x1a9278('0x13df')]());});function _0x29ee06(_0x1fcd4f){const _0x245234=_0x51db17;_0x4daac5[_0x245234('0x1b0d')]=_0x1fcd4f||{'count':0x0,'rows':[]};}function _0x4be572(){const _0x3c5a95=_0x51db17;_0x4daac5['query'][_0x3c5a95('0x1393')]=(_0x4daac5[_0x3c5a95('0x1f2a')][_0x3c5a95('0x1c2')]-0x1)*_0x4daac5[_0x3c5a95('0x1f2a')][_0x3c5a95('0xd5c')],_0x19d2f5[_0x3c5a95('0x4ee')](_0x3c5a95('0xf45'))?_0x4daac5['promise']=_0x5dbc4e[_0x3c5a95('0x3cf')][_0x3c5a95('0xbaa')](_0x4daac5[_0x3c5a95('0x1f2a')],_0x29ee06)[_0x3c5a95('0x1549')]:(_0x4daac5['query']['id']=_0x4daac5[_0x3c5a95('0x25bc')]['id'],_0x4daac5[_0x3c5a95('0x1f2a')][_0x3c5a95('0xe6')]='Networks',_0x4daac5['promise']=_0x5dbc4e[_0x3c5a95('0x25bc')][_0x3c5a95('0x228e')](_0x4daac5['query'],_0x29ee06)[_0x3c5a95('0x1549')]);}function _0x41404b(_0x1ac9fc,_0x325a85){const _0x17d046=_0x51db17;_0x37b335[_0x17d046('0xb9')]({'controller':_0x17d046('0x10b5'),'controllerAs':'vm','templateUrl':_0x4fa572,'parent':angular[_0x17d046('0x1e73')](_0x23c822[_0x17d046('0x1d2')]),'targetEvent':_0x1ac9fc,'clickOutsideToClose':!![],'locals':{'network':_0x325a85,'networks':_0x4daac5[_0x17d046('0x1b0d')][_0x17d046('0x19b2')],'license':_0x4daac5['license'],'setting':_0x4daac5['setting'],'crudPermissions':_0x4daac5[_0x17d046('0xb25')]}});}function _0x55939e(_0x168130){const _0x4cba9d=_0x51db17;_0x5dbc4e[_0x4cba9d('0x3cf')]['delete']({'id':_0x168130['id']})[_0x4cba9d('0x1549')][_0x4cba9d('0x11bf')](function(){const _0xec4b35=_0x4cba9d;_0x36f548()['remove'](_0x4daac5[_0xec4b35('0x1b0d')][_0xec4b35('0x19b2')],{'id':_0x168130['id']}),_0x4daac5[_0xec4b35('0x1b0d')][_0xec4b35('0x27d2')]-=0x1,!_0x4daac5[_0xec4b35('0x1b0d')]['rows'][_0xec4b35('0x1e22')]&&_0x4daac5[_0xec4b35('0x13df')](),_0x7524c0[_0xec4b35('0x2693')]({'title':_0x36f548()[_0xec4b35('0x13cf')]('Network')+_0xec4b35('0x2113'),'msg':_0x168130[_0xec4b35('0x1909')]?_0x168130[_0xec4b35('0x1909')]+_0xec4b35('0x433'):''});})[_0x4cba9d('0x151d')](function(_0x5e196f){const _0x1a2ec9=_0x4cba9d;if(_0x5e196f[_0x1a2ec9('0x4e8')]&&_0x5e196f[_0x1a2ec9('0x4e8')]['errors']&&_0x5e196f[_0x1a2ec9('0x4e8')][_0x1a2ec9('0x120f')][_0x1a2ec9('0x1e22')]){_0x4daac5['errors']=_0x5e196f[_0x1a2ec9('0x4e8')][_0x1a2ec9('0x120f')]||[{'message':_0x5e196f[_0x1a2ec9('0xaab')](),'type':'SYSTEM:DELETEnetwork'}];for(let _0x1a2a9d=0x0;_0x1a2a9d<_0x5e196f[_0x1a2ec9('0x4e8')][_0x1a2ec9('0x120f')][_0x1a2ec9('0x1e22')];_0x1a2a9d++){_0x7524c0[_0x1a2ec9('0x255')]({'title':_0x5e196f[_0x1a2ec9('0x4e8')][_0x1a2ec9('0x120f')][_0x1a2a9d]['type'],'msg':_0x5e196f['data'][_0x1a2ec9('0x120f')][_0x1a2a9d]['message']});}}else _0x7524c0[_0x1a2ec9('0x255')]({'title':_0x5e196f[_0x1a2ec9('0xff9')]?_0x1a2ec9('0x574')+_0x5e196f['status']+_0x1a2ec9('0xb0b')+_0x5e196f[_0x1a2ec9('0x212f')]:_0x1a2ec9('0xc7e'),'msg':_0x5e196f[_0x1a2ec9('0x4e8')]?JSON[_0x1a2ec9('0x3e')](_0x5e196f[_0x1a2ec9('0x4e8')][_0x1a2ec9('0x1b86')]):_0x5e196f[_0x1a2ec9('0x1b86')]||_0x5e196f['toString']()});});}function _0x256ad7(){const _0x241a7a=_0x51db17,_0x5240bc=angular[_0x241a7a('0x6fb')](_0x4daac5[_0x241a7a('0x19cb')]);return _0x4daac5['selectedNetworks']=[],_0x5240bc;}function _0x4e1b25(_0x7ba0f6){const _0x454813=_0x51db17,_0x3b23a6=_0x37b335[_0x454813('0x132b')]()['title'](_0x454813('0x1511'))[_0x454813('0x1d03')](_0x454813('0x2061')+_0x4daac5[_0x454813('0x19cb')][_0x454813('0x1e22')]+'\x20selected'+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x454813('0x1456'))[_0x454813('0x1e25')](_0x7ba0f6)['ok']('OK')[_0x454813('0x26c9')](_0x454813('0x772'));_0x37b335['show'](_0x3b23a6)[_0x454813('0x11bf')](function(){const _0x342669=_0x454813;_0x4daac5[_0x342669('0x19cb')][_0x342669('0x1f88')](function(_0x354710){_0x55939e(_0x354710);}),_0x4daac5[_0x342669('0x19cb')]=[];});}function _0x5b6b27(){_0x4daac5['selectedNetworks']=[];}function _0x405387(){const _0x22b37e=_0x51db17;_0x4daac5['selectedNetworks']=_0x4daac5['networks'][_0x22b37e('0x19b2')];}}const _0xe161c8=_0xfc5fef;_0x1fa5a0[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0xcbc'),_0x21d0f5('0x16b9'),_0x21d0f5('0x1ca2'),'$q','$translate',_0x21d0f5('0x142d'),_0x21d0f5('0x805'),_0x21d0f5('0xf76'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),_0x21d0f5('0x17ff'),'setting',_0x21d0f5('0xb25')];function _0x1fa5a0(_0x3a65f2,_0x28527e,_0x19d84b,_0x3d7cba,_0x18b749,_0x5ea532,_0x2ae092,_0x2e5273,_0x58a6c8,_0x466ca7,_0x2185bf,_0x2601c9,_0x16f867,_0x21269f){const _0x49645d=_0x21d0f5,_0x1c8de2=this;_0x1c8de2[_0x49645d('0x32a')]=_0x2185bf['getCurrentUser'](),_0x1c8de2[_0x49645d('0x120f')]=[],_0x1c8de2[_0x49645d('0x23e1')]=_0x16f867,_0x1c8de2['license']=_0x2601c9,_0x1c8de2[_0x49645d('0xb25')]=_0x21269f,_0x1c8de2[_0x49645d('0x2c9')]={},_0x1c8de2[_0x49645d('0x2834')]=_0x1c8de2[_0x49645d('0x23e1')]&&_0x1c8de2[_0x49645d('0x23e1')][_0x49645d('0x1d4')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1c8de2[_0x49645d('0x134b')]=_0x49645d('0x655'),_0x1c8de2[_0x49645d('0xf76')]=angular[_0x49645d('0x6fb')](_0x58a6c8),_0x1c8de2[_0x49645d('0x805')]=_0x2e5273,_0x1c8de2['newSmtp']=![];!_0x1c8de2[_0x49645d('0xf76')]&&(_0x1c8de2['smtp']={'service':!![]},_0x1c8de2[_0x49645d('0x134b')]=_0x49645d('0x9b2'),_0x1c8de2['newSmtp']=!![]);_0x1c8de2[_0x49645d('0x906')]=_0x405c4b,_0x1c8de2[_0x49645d('0x1d4b')]=_0x1f25d9,_0x1c8de2[_0x49645d('0x1552')]=_0x1fc4f8,_0x1c8de2['getDateFromString']=_0x595588,_0x1c8de2[_0x49645d('0xc4e')]=_0x226f99;function _0x405c4b(){const _0xbe9640=_0x49645d;_0x1c8de2[_0xbe9640('0x120f')]=[],_0x466ca7[_0xbe9640('0x1d47')][_0xbe9640('0x259')](_0x1c8de2[_0xbe9640('0xf76')])[_0xbe9640('0x1549')][_0xbe9640('0x11bf')](function(_0x44f2ec){const _0x10191a=_0xbe9640;_0x1c8de2[_0x10191a('0x805')]['unshift'](_0x44f2ec[_0x10191a('0x2866')]()),_0x2ae092[_0x10191a('0x2693')]({'title':_0x10191a('0x1e7c'),'msg':_0x1c8de2[_0x10191a('0xf76')]['name']?_0x1c8de2[_0x10191a('0xf76')][_0x10191a('0x1909')]+_0x10191a('0x7fb'):''}),_0x226f99(_0x44f2ec);})['catch'](function(_0x52e44e){const _0x344b27=_0xbe9640;if(_0x52e44e['data']&&_0x52e44e['data'][_0x344b27('0x120f')]&&_0x52e44e[_0x344b27('0x4e8')][_0x344b27('0x120f')]['length']){_0x1c8de2[_0x344b27('0x120f')]=_0x52e44e[_0x344b27('0x4e8')]['errors']||[{'message':_0x52e44e[_0x344b27('0xaab')](),'type':_0x344b27('0x1333')}];for(let _0x497e20=0x0;_0x497e20<_0x52e44e['data'][_0x344b27('0x120f')][_0x344b27('0x1e22')];_0x497e20+=0x1){_0x2ae092['error']({'title':_0x52e44e[_0x344b27('0x4e8')][_0x344b27('0x120f')][_0x497e20][_0x344b27('0x19fd')],'msg':_0x52e44e['data'][_0x344b27('0x120f')][_0x497e20][_0x344b27('0x1b86')]});}}else _0x2ae092['error']({'title':_0x52e44e[_0x344b27('0xff9')]?_0x344b27('0x574')+_0x52e44e[_0x344b27('0xff9')]+_0x344b27('0xb0b')+_0x52e44e[_0x344b27('0x212f')]:_0x344b27('0x1333'),'msg':_0x52e44e[_0x344b27('0x4e8')]?JSON[_0x344b27('0x3e')](_0x52e44e[_0x344b27('0x4e8')]['message']):_0x52e44e[_0x344b27('0xaab')]()});});}function _0x1f25d9(){const _0x20b4e8=_0x49645d;_0x1c8de2[_0x20b4e8('0x120f')]=[],_0x466ca7[_0x20b4e8('0x1d47')]['update']({'id':_0x1c8de2[_0x20b4e8('0xf76')]['id']},_0x1c8de2[_0x20b4e8('0xf76')])[_0x20b4e8('0x1549')][_0x20b4e8('0x11bf')](function(_0x377103){const _0x8ab9e7=_0x20b4e8,_0x23f0b7=_0x36f548()[_0x8ab9e7('0x1ad4')](_0x1c8de2[_0x8ab9e7('0x805')],{'id':_0x377103['id']});_0x23f0b7&&_0x36f548()['merge'](_0x23f0b7,_0x36f548()[_0x8ab9e7('0x258')](_0x377103['toJSON'](),_0x36f548()[_0x8ab9e7('0xe22')](_0x23f0b7))),_0x2ae092['success']({'title':'Smtp\x20properly\x20saved!','msg':_0x1c8de2[_0x8ab9e7('0xf76')][_0x8ab9e7('0x1909')]?_0x1c8de2[_0x8ab9e7('0xf76')][_0x8ab9e7('0x1909')]+'\x20has\x20been\x20saved!':''}),_0x226f99(_0x377103);})[_0x20b4e8('0x151d')](function(_0x3002be){const _0x4e0f5b=_0x20b4e8;if(_0x3002be[_0x4e0f5b('0x4e8')]&&_0x3002be[_0x4e0f5b('0x4e8')][_0x4e0f5b('0x120f')]&&_0x3002be[_0x4e0f5b('0x4e8')][_0x4e0f5b('0x120f')][_0x4e0f5b('0x1e22')]){_0x1c8de2[_0x4e0f5b('0x120f')]=_0x3002be[_0x4e0f5b('0x4e8')][_0x4e0f5b('0x120f')]||[{'message':_0x3002be[_0x4e0f5b('0xaab')](),'type':_0x4e0f5b('0x1348')}];for(let _0x4b26f5=0x0;_0x4b26f5<_0x3002be[_0x4e0f5b('0x4e8')]['errors'][_0x4e0f5b('0x1e22')];_0x4b26f5++){_0x2ae092[_0x4e0f5b('0x255')]({'title':_0x3002be['data'][_0x4e0f5b('0x120f')][_0x4b26f5][_0x4e0f5b('0x19fd')],'msg':_0x3002be['data'][_0x4e0f5b('0x120f')][_0x4b26f5][_0x4e0f5b('0x1b86')]});}}else _0x2ae092['error']({'title':_0x3002be['status']?_0x4e0f5b('0x574')+_0x3002be[_0x4e0f5b('0xff9')]+_0x4e0f5b('0xb0b')+_0x3002be[_0x4e0f5b('0x212f')]:_0x4e0f5b('0x1348'),'msg':_0x3002be[_0x4e0f5b('0x4e8')]?JSON['stringify'](_0x3002be[_0x4e0f5b('0x4e8')][_0x4e0f5b('0x1b86')]):_0x3002be[_0x4e0f5b('0xaab')]()});});}function _0x1fc4f8(_0x516a7e){const _0x5ee6ec=_0x49645d;_0x1c8de2[_0x5ee6ec('0x120f')]=[];const _0x4a8466=_0x3d7cba[_0x5ee6ec('0x132b')]()[_0x5ee6ec('0x134b')](_0x5ee6ec('0x1fa9'))[_0x5ee6ec('0x252a')](_0x5ee6ec('0xa26'))[_0x5ee6ec('0xb2e')](_0x5ee6ec('0x1fa0'))['ok'](_0x5ee6ec('0x1167'))[_0x5ee6ec('0x26c9')]('Cancel')[_0x5ee6ec('0x1e25')](_0x516a7e);_0x3d7cba[_0x5ee6ec('0xb9')](_0x4a8466)[_0x5ee6ec('0x11bf')](function(){const _0x2aa257=_0x5ee6ec;_0x466ca7[_0x2aa257('0x1d47')]['delete']({'id':_0x1c8de2['smtp']['id']})['$promise'][_0x2aa257('0x11bf')](function(){const _0x158993=_0x2aa257;_0x36f548()[_0x158993('0x14a5')](_0x1c8de2[_0x158993('0x805')],{'id':_0x1c8de2[_0x158993('0xf76')]['id']}),_0x2ae092['success']({'title':_0x158993('0x5bc'),'msg':(_0x1c8de2[_0x158993('0xf76')][_0x158993('0x1909')]||_0x158993('0xf76'))+_0x158993('0x433')}),_0x226f99(_0x1c8de2[_0x158993('0xf76')]);})[_0x2aa257('0x151d')](function(_0x121013){const _0x519041=_0x2aa257;if(_0x121013['data']&&_0x121013[_0x519041('0x4e8')]['errors']&&_0x121013[_0x519041('0x4e8')][_0x519041('0x120f')][_0x519041('0x1e22')]){_0x1c8de2[_0x519041('0x120f')]=_0x121013[_0x519041('0x4e8')][_0x519041('0x120f')]||[{'message':_0x121013['toString'](),'type':'api.mailAccount.delete'}];for(let _0x44a541=0x0;_0x44a541<_0x121013['data']['errors'][_0x519041('0x1e22')];_0x44a541++){_0x2ae092[_0x519041('0x255')]({'title':_0x121013[_0x519041('0x4e8')]['errors'][_0x44a541][_0x519041('0x19fd')],'msg':_0x121013[_0x519041('0x4e8')][_0x519041('0x120f')][_0x44a541][_0x519041('0x1b86')]});}}else _0x2ae092[_0x519041('0x255')]({'title':_0x121013[_0x519041('0xff9')]?_0x519041('0x574')+_0x121013[_0x519041('0xff9')]+'\x20-\x20'+_0x121013[_0x519041('0x212f')]:'api.mailAccount.delete','msg':_0x121013['data']?JSON[_0x519041('0x3e')](_0x121013[_0x519041('0x4e8')][_0x519041('0x1b86')]):_0x121013[_0x519041('0x1b86')]||_0x121013[_0x519041('0xaab')]()});});},function(){});}function _0x595588(_0x2af611){return _0x2af611===null?undefined:new Date(_0x2af611);}function _0x226f99(_0x344259){const _0x987a1f=_0x49645d;_0x3d7cba[_0x987a1f('0x237e')](_0x344259);}}const _0x3f89ec=_0x1fa5a0;_0x420ad9['$inject']=['smtps',_0x21d0f5('0x12a5'),'toasty',_0x21d0f5('0x17ff'),'Auth'];function _0x420ad9(_0x4f07df,_0xb1ad00,_0x1800ed,_0x46def8,_0x116eae){const _0x5be0d6=_0x21d0f5,_0x224f51=this;_0x224f51[_0x5be0d6('0x32a')]=_0x116eae[_0x5be0d6('0x2428')](),_0x224f51['license']=_0x46def8,_0x224f51[_0x5be0d6('0x805')]=_0x4f07df,_0x224f51[_0x5be0d6('0xf76')]={};_0x224f51[_0x5be0d6('0x805')]&&_0x224f51[_0x5be0d6('0x805')]['rows']&&_0x224f51[_0x5be0d6('0x805')][_0x5be0d6('0x19b2')][_0x5be0d6('0x1e22')]?_0x224f51[_0x5be0d6('0xf76')]=_0x224f51['smtps'][_0x5be0d6('0x19b2')][0x0]:_0x224f51['smtp']={'service':!![],'Smtp':{'service':null}};_0x224f51[_0x5be0d6('0x1d4b')]=_0x49fff9,_0x224f51[_0x5be0d6('0x925')]=_0x16be67;function _0x16be67(){const _0x3de92a=_0x5be0d6;_0x224f51[_0x3de92a('0xf76')]['id']&&_0xb1ad00['mailAccount']['verifySmtp']({'id':_0x224f51[_0x3de92a('0xf76')]['id']})['$promise'][_0x3de92a('0x11bf')](function(){const _0x2ab1d4=_0x3de92a;_0x1800ed['success']({'title':_0x2ab1d4('0x1fa7'),'msg':_0x224f51[_0x2ab1d4('0xf76')][_0x2ab1d4('0x1909')]?_0x224f51[_0x2ab1d4('0xf76')][_0x2ab1d4('0x1909')]+'\x20has\x20been\x20verified!':''});})[_0x3de92a('0x151d')](function(_0x4984a9){const _0x492758=_0x3de92a;_0x1800ed[_0x492758('0x255')]({'title':_0x492758('0x1d2b'),'msg':_0x4984a9[_0x492758('0x4e8')]?JSON[_0x492758('0x3e')](_0x4984a9['data']):_0x4984a9['toString'](),'timeout':0x2710});});}function _0x49fff9(){const _0xaa14d7=_0x5be0d6;_0x224f51[_0xaa14d7('0xf76')]['id']?_0xb1ad00[_0xaa14d7('0x1d47')][_0xaa14d7('0x5ab')]({'id':_0x224f51[_0xaa14d7('0xf76')]['id']},_0x224f51[_0xaa14d7('0xf76')])['$promise'][_0xaa14d7('0x11bf')](function(){const _0x159312=_0xaa14d7;_0x1800ed[_0x159312('0x2693')]({'title':_0x159312('0x1a42'),'msg':_0x224f51['smtp'][_0x159312('0x1909')]?_0x224f51[_0x159312('0xf76')]['name']+_0x159312('0xd7'):''});})[_0xaa14d7('0x151d')](function(_0x1459ab){const _0x23e7ad=_0xaa14d7;_0x1800ed[_0x23e7ad('0x255')]({'title':_0x1459ab[_0x23e7ad('0xff9')]?'API:'+_0x1459ab[_0x23e7ad('0xff9')]+_0x23e7ad('0xb0b')+_0x1459ab[_0x23e7ad('0x212f')]:'SYSTEM:GETmailAccount','msg':_0x1459ab[_0x23e7ad('0x4e8')]?JSON['stringify'](_0x1459ab[_0x23e7ad('0x4e8')]):_0x1459ab[_0x23e7ad('0xaab')]()});}):_0xb1ad00[_0xaa14d7('0x1d47')][_0xaa14d7('0x259')](_0x224f51[_0xaa14d7('0xf76')])[_0xaa14d7('0x1549')]['then'](function(_0x37f2a9){const _0x1eae61=_0xaa14d7;_0x36f548()[_0x1eae61('0x47b')](_0x224f51[_0x1eae61('0xf76')],_0x37f2a9),_0x1800ed[_0x1eae61('0x2693')]({'title':_0x1eae61('0x1a42'),'msg':_0x224f51[_0x1eae61('0xf76')][_0x1eae61('0x1909')]?_0x224f51[_0x1eae61('0xf76')][_0x1eae61('0x1909')]+_0x1eae61('0xd7'):''});})[_0xaa14d7('0x151d')](function(_0x2f69fc){const _0x16f399=_0xaa14d7;_0x1800ed['error']({'title':_0x2f69fc[_0x16f399('0xff9')]?_0x16f399('0x574')+_0x2f69fc[_0x16f399('0xff9')]+_0x16f399('0xb0b')+_0x2f69fc[_0x16f399('0x212f')]:_0x16f399('0x186c'),'msg':_0x2f69fc[_0x16f399('0x4e8')]?JSON[_0x16f399('0x3e')](_0x2f69fc[_0x16f399('0x4e8')]):_0x2f69fc['toString']()});});}}const _0x459e5f=_0x420ad9;_0x38f1f6[_0x21d0f5('0x1e9a')]=['$stateProvider','$translatePartialLoaderProvider'];function _0x38f1f6(_0x4b3570,_0x25cc6a){const _0x1b635b=_0x21d0f5;_0x4b3570['state'](_0x1b635b('0x515'),{'abstract':!![],'url':_0x1b635b('0x1b73')})['state']('app.settings.generals',{'url':'/generals','views':{'content@app':{'templateUrl':_0x339d2c,'controller':'GeneralsController\x20as\x20vm'}},'resolve':{'generals':[_0x1b635b('0x218e'),function(_0x2276bd){const _0x4312e0=_0x1b635b;return _0x2276bd[_0x4312e0('0xa28')](_0x4312e0('0x1112'),{'fields':_0x4312e0('0x1ff'),'limit':0xa,'offset':0x0});}]},'authenticate':!![],'permissionId':0x578,'bodyClass':_0x1b635b('0x760')})[_0x1b635b('0x2124')](_0x1b635b('0x23bb'),{'url':_0x1b635b('0x2827'),'views':{'content@app':{'templateUrl':_0x49dfc,'controller':_0x1b635b('0xa7a')}},'resolve':{'smtps':['apiResolver',function(_0x473631){const _0x7ded1b=_0x1b635b;return _0x473631[_0x7ded1b('0xa28')](_0x7ded1b('0x3f0'),{'fields':'createdAt,updatedAt,id,service,name,email,Smtp.service,Smtp.host,Smtp.port,Smtp.secure,Smtp.authentication,Smtp.user,Smtp.pass,description','service':'1','limit':0xa,'offset':0x0});}]},'authenticate':!![],'permissionId':0x578,'bodyClass':_0x1b635b('0x760')})[_0x1b635b('0x2124')]('app.settings.networks',{'url':'/networks','views':{'content@app':{'templateUrl':_0x10c2ea,'controller':_0x1b635b('0x133c')}},'resolve':{'networks':[_0x1b635b('0x218e'),function(_0x1599de){const _0x1f96cb=_0x1b635b;return _0x1599de['resolve']('network@get',{'fields':_0x1f96cb('0x9f3'),'sort':'-updatedAt','limit':0xa,'offset':0x0});}]},'authenticate':!![],'permissionId':0x578,'bodyClass':_0x1b635b('0x760')})[_0x1b635b('0x2124')]('app.settings.customizations',{'url':'/customizations','views':{'content@app':{'templateUrl':_0x4f8439,'controller':'CustomizationsController\x20as\x20vm'}},'resolve':{'customizations':[_0x1b635b('0x218e'),function(_0x4cac4c){const _0x56d3ad=_0x1b635b;return _0x4cac4c['resolve']('setting@get',{'fields':_0x56d3ad('0xf16'),'limit':0xa,'offset':0x0});}]},'authenticate':!![],'permissionId':0x578,'bodyClass':_0x1b635b('0x760')})[_0x1b635b('0x2124')]('app.settings.cloudProviders',{'url':_0x1b635b('0xc8a'),'views':{'content@app':{'templateUrl':_0x13eb7b,'controller':'CloudProvidersController\x20as\x20vm'}},'resolve':{'cloudProviders':[_0x1b635b('0x218e'),function(_0x2b0569){const _0x22b30a=_0x1b635b;return _0x2b0569[_0x22b30a('0xa28')](_0x22b30a('0x2081'),{'fields':_0x22b30a('0x1c24'),'sort':_0x22b30a('0x1c74'),'limit':0xa,'offset':0x0});}]},'authenticate':!![],'permissionId':0x578,'bodyClass':_0x1b635b('0x760')}),_0x25cc6a[_0x1b635b('0x471')](_0x1b635b('0x882'));}angular[_0x21d0f5('0x2768')](_0x21d0f5('0x515'),[_0x21d0f5('0x22d5'),_0x21d0f5('0x1fb3'),'md.data.table',_0x21d0f5('0x2414'),_0x21d0f5('0xd61'),_0x21d0f5('0x2096'),'ng-sortable',_0x21d0f5('0x446'),_0x21d0f5('0x113d'),_0x21d0f5('0x21d5'),_0x21d0f5('0x29b'),'mwFormViewer',_0x21d0f5('0x950'),_0x21d0f5('0xf49'),_0x21d0f5('0x31e'),_0x21d0f5('0xed9'),_0x21d0f5('0x2625'),_0x21d0f5('0x1622'),_0x21d0f5('0x1584'),_0x21d0f5('0xf7f'),'app.settings.updates',_0x21d0f5('0x1e74'),_0x21d0f5('0x26c0')])[_0x21d0f5('0x53a')](_0x38f1f6)[_0x21d0f5('0x23eb')](_0x21d0f5('0xf97'),_0x243ab2)[_0x21d0f5('0x23eb')]('CreateOrEditCloudProviderDialogController',_0x4fcc76)[_0x21d0f5('0x23eb')](_0x21d0f5('0x1c6b'),_0x5ac2d6)[_0x21d0f5('0x23eb')](_0x21d0f5('0x1b34'),_0x221f71)['controller'](_0x21d0f5('0x1f86'),_0x350f1f)['controller'](_0x21d0f5('0x2db'),_0x138fb0)['controller'](_0x21d0f5('0x16d4'),_0xb61028)[_0x21d0f5('0x23eb')](_0x21d0f5('0x1f3f'),_0x1577c8)['controller'](_0x21d0f5('0x3b4'),_0x4d1e8d)['controller'](_0x21d0f5('0x1b4'),_0x151a7d)[_0x21d0f5('0x23eb')]('CreateOrEditNetworkDialogController',_0x3c776d)[_0x21d0f5('0x23eb')](_0x21d0f5('0x11f6'),_0xe161c8)[_0x21d0f5('0x23eb')]('CreateOrEditSmtpDialogController',_0x3f89ec)[_0x21d0f5('0x23eb')](_0x21d0f5('0x288f'),_0x459e5f);const _0x4fb54b=_0x351988['p']+_0x21d0f5('0x118a'),_0x375178=_0x351988['p']+_0x21d0f5('0x68c'),_0x35398b=_0x351988['p']+'src/js/modules/main/apps/motiondialer/views/realtime/queues/view.html/view.html',_0x194cb0=_0x351988['p']+_0x21d0f5('0x146e'),_0x571ccf=_0x351988['p']+'src/js/modules/main/apps/motiondialer/views/realtime/abandonedcalls/view.html/view.html',_0x47edd6=_0x351988['p']+_0x21d0f5('0x1377'),_0x2ed71b=_0x351988['p']+_0x21d0f5('0x1089'),_0xeb81f8=_0x351988['p']+_0x21d0f5('0xe36');_0x228835['$inject']=[_0x21d0f5('0x1b80'),_0x21d0f5('0x17f5'),'$mdDialog',_0x21d0f5('0x1b30'),_0x21d0f5('0x2143'),_0x21d0f5('0xb6b'),'api',_0x21d0f5('0x25bc'),_0x21d0f5('0x1d63'),_0x21d0f5('0x1150'),_0x21d0f5('0x1d56'),'toasty',_0x21d0f5('0x1401'),_0x21d0f5('0x1394')];function _0x228835(_0xd7a218,_0xebfaf1,_0x4ef45b,_0x3a21c3,_0x42be07,_0x4baccc,_0x3d7e60,_0xfd7b42,_0x1b3bb0,_0x416285,_0x5bd67d,_0x341793,_0x1a0b8c,_0x3fc250){const _0x4e8263=_0x21d0f5,_0xaa9551=this;_0xaa9551[_0x4e8263('0x32a')]=_0x416285[_0x4e8263('0x2428')](),_0xaa9551[_0x4e8263('0x1401')]=_0x1a0b8c?_0x1a0b8c:[],_0xaa9551[_0x4e8263('0x1394')]=_0x3fc250,_0xaa9551['abandonedCalls']={'count':0x0,'rows':[]},_0xaa9551[_0x4e8263('0x1d5')]=![],_0xaa9551['refresh']=!![],_0xaa9551[_0x4e8263('0x25bc')]=_0xfd7b42,_0xaa9551[_0x4e8263('0x1d63')]=_0x1b3bb0&&_0x1b3bb0[_0x4e8263('0x27d2')]==0x1?_0x1b3bb0[_0x4e8263('0x19b2')][0x0]:null,_0xaa9551[_0x4e8263('0xb25')]=_0x416285[_0x4e8263('0x1530')](_0xaa9551[_0x4e8263('0x1d63')]?_0xaa9551[_0x4e8263('0x1d63')][_0x4e8263('0xb25')]:null),_0xaa9551[_0x4e8263('0x1f2a')]={'fields':_0x4e8263('0x2390'),'type':_0x4e8263('0x25b6'),'queuecallerexitreason':_0x4e8263('0x1164')+','+_0x4e8263('0x12d3'),'sort':_0x4e8263('0x1c74'),'limit':0xa,'page':0x1},_0xaa9551[_0x4e8263('0x2742')]=_0x180312,_0xaa9551[_0x4e8263('0xba3')]=_0x1fad4d,_0xaa9551[_0x4e8263('0x432')]=_0x3f296b,_0xaa9551[_0x4e8263('0x14a8')]=_0x3f1237,_0xaa9551[_0x4e8263('0x15c2')]=_0xaf1f0c,_0xaa9551[_0x4e8263('0x23a2')]=_0x4ece35,_0x5bd67d[_0x4e8263('0x284d')](_0x4e8263('0xfe4'),_0xaa9551['onSaveVoiceQueueReport']),_0x5bd67d['on'](_0x4e8263('0x132e'),_0xaa9551[_0x4e8263('0x23a2')]),_0x1522ac();function _0x1522ac(){const _0x807a79=_0x4e8263;let _0x15dfa8=_0x42be07[_0x807a79('0xe4a')][_0x807a79('0x2356')](_0x807a79('0x1a28')+_0xaa9551['currentUser']['id']);if(_0x15dfa8)_0x15dfa8=JSON[_0x807a79('0x1850')](_0x15dfa8),_0x15dfa8&&_0x15dfa8[_0x807a79('0x1f2a')]&&(_0xaa9551['query']=_0x36f548()[_0x807a79('0x47b')](_0x15dfa8[_0x807a79('0x1f2a')],_0x36f548()[_0x807a79('0x196f')](_0xaa9551[_0x807a79('0x1f2a')],['sort','limit',_0x807a79('0x1c2')])),_0xaa9551[_0x807a79('0x1f2a')]=_0x36f548()['omit'](_0xaa9551[_0x807a79('0x1f2a')],_0x807a79('0xdb4')));else{const _0x2d3774={'$gte':_0x57d4d1()()[_0x807a79('0x2655')](_0x807a79('0x4d8'))[_0x807a79('0x1fb1')](0x0,!![])[_0x807a79('0x1826')](),'$lte':_0x57d4d1()()['endOf']('month')[_0x807a79('0x1fb1')](0x0,!![])[_0x807a79('0x1826')]()};_0xaa9551[_0x807a79('0x1f2a')][_0x807a79('0x1779')]=_0x2d3774;}_0x416285[_0x807a79('0x4ee')](_0x807a79('0xf45'))?_0x3d7e60['user'][_0x807a79('0x373')]({'id':_0x416285[_0x807a79('0x2428')]()['id'],'fields':_0x807a79('0x721'),'channel':'voice','type':_0x807a79('0x25b6'),'nolimit':!![]})[_0x807a79('0x1549')][_0x807a79('0x11bf')](function(_0x2710d7){const _0x499aaf=_0x807a79;_0xaa9551[_0x499aaf('0x1de3')]=_0x2710d7||{'count':0x0,'rows':[]},_0xaa9551[_0x499aaf('0x1ff7')]=_0x36f548()[_0x499aaf('0xbdb')](_0x36f548()['keyBy'](_0xaa9551[_0x499aaf('0x1de3')][_0x499aaf('0x19b2')],_0x499aaf('0x1909')),_0x499aaf('0x1909'));})[_0x807a79('0x151d')](function(_0x4611ff){const _0x25abe4=_0x807a79;console[_0x25abe4('0x255')](_0x4611ff);})[_0x807a79('0xa9b')](function(){const _0x399d6d=_0x807a79;_0xaa9551['quickFilters']=_0x3c16c6(),_0xaa9551[_0x399d6d('0x2742')]();}):_0x3d7e60['userProfile'][_0x807a79('0x228e')]({'id':_0xaa9551[_0x807a79('0x32a')]['userProfileId'],'section':_0x807a79('0x1e95'),'channel':_0x807a79('0x1bc3'),'type':_0x807a79('0x25b6'),'sort':'-updatedAt','nolimit':!![]})['$promise'][_0x807a79('0x11bf')](function(_0x1ba500){const _0x1e6aec=_0x807a79;_0xaa9551['queues']=_0x1ba500||{'count':0x0,'rows':[]},_0xaa9551['queuesMap']=_0x36f548()[_0x1e6aec('0xbdb')](_0x36f548()[_0x1e6aec('0x2130')](_0xaa9551['queues'][_0x1e6aec('0x19b2')],_0x1e6aec('0x1909')),_0x1e6aec('0x1909'));})[_0x807a79('0x151d')](function(_0x9f380a){const _0x413ca7=_0x807a79;console[_0x413ca7('0x255')](_0x9f380a);})[_0x807a79('0xa9b')](function(){const _0x2c7a42=_0x807a79;_0xaa9551[_0x2c7a42('0x7db')]=_0x3c16c6(),_0xaa9551[_0x2c7a42('0x2742')]();});}function _0x3c16c6(){const _0x104516=_0x4e8263;return[{'name':'Start\x20Date','key':_0x104516('0x1779'),'type':'date','label':'DASHBOARDS.SELECT_DATE'},{'name':_0x104516('0x701'),'key':_0x104516('0x7a0'),'type':_0x104516('0x2350'),'label':_0x104516('0x84a'),'options':_0xaa9551[_0x104516('0x1401')][_0x104516('0x19b2')],'customOptions':[{'value':_0x104516('0x77b'),'translate':'DASHBOARDS.NOT_ASSIGNED'},{'value':undefined,'translate':'DASHBOARDS.ALL'}]},{'name':_0x104516('0x10ef'),'key':_0x104516('0x150b'),'type':_0x104516('0xe83'),'label':'DASHBOARDS.SELECT_CAMPAIGN','options':_0xaa9551[_0x104516('0x1de3')][_0x104516('0x19b2')]}];}function _0x180312(){const _0x6c89be=_0x4e8263;_0xaa9551[_0x6c89be('0x15a1')]=![],_0xaa9551[_0x6c89be('0x1de3')][_0x6c89be('0x27d2')]>0x0?(_0xaa9551[_0x6c89be('0x1f2a')][_0x6c89be('0x150b')]=_0xaa9551[_0x6c89be('0x1de3')]['count']===0x1?_0xaa9551['queues'][_0x6c89be('0x19b2')][0x0][_0x6c89be('0x1909')]:_0xaa9551[_0x6c89be('0x1f2a')][_0x6c89be('0x150b')],_0xaa9551[_0x6c89be('0x1f2a')][_0x6c89be('0x1393')]=(_0xaa9551['query'][_0x6c89be('0x1c2')]-0x1)*_0xaa9551[_0x6c89be('0x1f2a')][_0x6c89be('0xd5c')],_0x42be07[_0x6c89be('0xe4a')][_0x6c89be('0x26d6')](_0x6c89be('0x1a28')+_0xaa9551[_0x6c89be('0x32a')]['id'],JSON['stringify']({'query':_0x36f548()[_0x6c89be('0x196f')](_0xaa9551[_0x6c89be('0x1f2a')],_0x6c89be('0x150b'))})),_0xaa9551[_0x6c89be('0x13f')]=_0x3d7e60[_0x6c89be('0xfad')][_0x6c89be('0x15ee')](_0xaa9551[_0x6c89be('0x1f2a')],_0x5a65cf)[_0x6c89be('0x1549')]):_0x5a65cf(null);}function _0x5a65cf(_0x42afa0){_0xaa9551['abandonedCalls']=_0x42afa0||{'count':0x0,'rows':[]},_0xaa9551['refresh']=!![];}function _0x1fad4d(){_0xaa9551['showTooltip']=![],_0xaa9551['getAbandonedCalls']();}function _0xaf1f0c(_0x11bfd5){const _0x1d7e4b=_0x4e8263,_0x369761=_0x1d7e4b('0x25b6');_0x11bfd5&&_0xaa9551[_0x1d7e4b('0x1ff7')]&&_0x11bfd5[_0x1d7e4b('0x150b')][_0x1d7e4b('0x19fd')]===_0x369761&&_0xaa9551[_0x1d7e4b('0x1ff7')][_0x11bfd5[_0x1d7e4b('0x150b')]]&&(_0xaa9551[_0x1d7e4b('0x1d5')]=!![]);}function _0x4ece35(_0x2238b1){const _0x3f6f5e=_0x4e8263;if(_0x2238b1){const _0x1abc67=_0x36f548()[_0x3f6f5e('0x1b12')](_0xaa9551[_0x3f6f5e('0x14ce')][_0x3f6f5e('0x19b2')],['id',_0x2238b1['id']]);_0x1abc67>=0x0&&_0x36f548()[_0x3f6f5e('0x47b')](_0xaa9551[_0x3f6f5e('0x14ce')][_0x3f6f5e('0x19b2')][_0x1abc67],_0x2238b1);}}function _0x3f296b(_0x487b30,_0x863770){const _0x22de92=_0x4e8263;_0x487b30&&_0x3d7e60['voiceQueueReport']['update']({'id':_0x487b30['id'],'lastAssignedTo':_0x863770?_0x863770[_0x22de92('0x1909')]:null,'assigned':_0x863770?!![]:![]})['$promise'][_0x22de92('0x151d')](function(_0x83841d){const _0x25fedb=_0x22de92;console[_0x25fedb('0xc78')](_0x83841d);});}function _0x3f1237(_0x2e4203){const _0x5af987=_0x4e8263;_0x4ef45b['show']({'controller':_0x5af987('0xeb8'),'controllerAs':'vm','templateUrl':_0xeb81f8,'parent':angular[_0x5af987('0x1e73')](_0x3a21c3['body']),'targetEvent':_0x2e4203,'resolve':{'globalDispositions':[_0x5af987('0x218e'),function(_0x301723){const _0x4007b1=_0x5af987;return _0x301723[_0x4007b1('0xa28')]('disposition@get',{'MailAccountId':'null','FaxAccountId':_0x4007b1('0xb5f'),'SmsAccountId':'null','WhatsappAccountId':_0x4007b1('0xb5f'),'OpenchannelAccountId':_0x4007b1('0xb5f'),'ChatWebsiteId':_0x4007b1('0xb5f'),'ListId':'null'});}]},'locals':{'dispositions':_0xaa9551[_0x5af987('0x1394')],'call':_0x2e4203}})[_0x5af987('0x11bf')](function(_0x1eba40){const _0x5d5d15=_0x5af987;if(_0x1eba40){const _0x3ecfe3={'id':_0x2e4203['id'],'disposition':_0x1eba40[_0x5d5d15('0x1fc4')]||null,'secondDisposition':_0x1eba40[_0x5d5d15('0x172b')]||null,'thirdDisposition':_0x1eba40[_0x5d5d15('0x12b5')]||null};_0x3d7e60[_0x5d5d15('0xfad')][_0x5d5d15('0x5ab')](_0x3ecfe3)[_0x5d5d15('0x1549')]['catch'](function(_0x8a3eb8){console['log'](_0x8a3eb8);});}});}let _0x1abd4f=!![],_0x1caba3=0x1;_0xd7a218[_0x4e8263('0x2087')](_0x4e8263('0x842'),function(_0x2fb038,_0x1e42c2){const _0x47c1eb=_0x4e8263;_0x1abd4f?_0xebfaf1(function(){_0x1abd4f=![];}):(!_0x1e42c2&&(_0x1caba3=_0xaa9551[_0x47c1eb('0x1f2a')][_0x47c1eb('0x1c2')]),_0x2fb038!==_0x1e42c2&&(_0xaa9551[_0x47c1eb('0x1f2a')]['page']=0x1),!_0x2fb038&&(_0xaa9551[_0x47c1eb('0x1f2a')][_0x47c1eb('0x1c2')]=_0x1caba3),_0xaa9551[_0x47c1eb('0x2742')]());}),_0xd7a218[_0x4e8263('0x12d8')]('$destroy',function(){const _0x1b71ba=_0x4e8263;_0x5bd67d[_0x1b71ba('0x1b2e')](_0x1b71ba('0xfe4')),_0x5bd67d['removeAllListeners'](_0x1b71ba('0x132e'));});}const _0x31bbb5=_0x228835;_0x37bcd3['$inject']=['$scope','$q',_0x21d0f5('0x17f5'),'$mdDialog','$document',_0x21d0f5('0x2212'),'pauses',_0x21d0f5('0x1401'),_0x21d0f5('0xaa0'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1d56'),_0x21d0f5('0x142d'),_0x21d0f5('0x927'),_0x21d0f5('0x25bc'),'userProfileSection','Auth',_0x21d0f5('0x17ff'),'$interval'];function _0x37bcd3(_0x53c054,_0x2da57f,_0x37e5f5,_0x588f77,_0x226321,_0x1e4813,_0x47719b,_0xad0df6,_0x2e509e,_0x493938,_0x1b7343,_0x274db4,_0x5760d2,_0x34e180,_0x2fe476,_0x3f083d,_0x1c81ee,_0x4d24be){const _0x263db4=_0x21d0f5,_0x3908dc=this,_0x2a3576=[_0x263db4('0x88'),_0x263db4('0x81c'),_0x263db4('0x3bd'),_0x263db4('0x1e10'),_0x263db4('0x2628'),_0x263db4('0x1e10'),'internal','address',_0x263db4('0x13c9'),_0x263db4('0xfc0'),'mailPause',_0x263db4('0x55e'),_0x263db4('0x1ed1'),_0x263db4('0x2501'),_0x263db4('0x20d'),'chatCapacity',_0x263db4('0x93c'),_0x263db4('0x2271'),_0x263db4('0xcc5'),'whatsappCapacity',_0x263db4('0x790'),_0x263db4('0x539'),'openchannelCurrentCapacity','mailCurrentCapacity',_0x263db4('0x19de'),_0x263db4('0xa81'),_0x263db4('0x21d4'),_0x263db4('0x1572'),'openchannelStatus',_0x263db4('0x1683'),_0x263db4('0x245c'),_0x263db4('0x14d4'),'faxStatus','voiceStatus','chatStatusTime',_0x263db4('0x22cb'),_0x263db4('0x1bab'),_0x263db4('0x1ac6'),'whatsappStatusTime',_0x263db4('0x1ce2'),_0x263db4('0x24e5'),'queue',_0x263db4('0x1562'),_0x263db4('0xcb7'),_0x263db4('0x15e0'),_0x263db4('0x1f38')],_0xb51ce1=[_0x263db4('0x13c9'),_0x263db4('0xfc0'),'mailPause','smsPause',_0x263db4('0x1ed1'),'faxPause','voicePause',_0x263db4('0x81c')];_0x3908dc['currentUser']=_0x3f083d[_0x263db4('0x2428')](),_0x3908dc['availableStates']=['ringing','inuse',_0x263db4('0x23a3'),_0x263db4('0x26ac'),'not_inuse'],_0x3908dc[_0x263db4('0x12f2')]=_0x47719b||{'count':0x0,'rows':[]},_0x3908dc[_0x263db4('0x17ff')]=_0x1c81ee,_0x3908dc['userProfile']=_0x34e180,_0x3908dc['userProfileSection']=_0x2fe476&&_0x2fe476['count']==0x1?_0x2fe476['rows'][0x0]:null,_0x3908dc[_0x263db4('0xb25')]=_0x3f083d[_0x263db4('0x1530')](_0x3908dc[_0x263db4('0x1d63')]?_0x3908dc[_0x263db4('0x1d63')][_0x263db4('0xb25')]:null),_0x3908dc[_0x263db4('0x1401')]=_0xad0df6?_0x36f548()[_0x263db4('0x2130')](_0xad0df6[_0x263db4('0x19b2')]?_0xad0df6[_0x263db4('0x19b2')]:[],'id'):{},_0x3908dc['rpcAgents']=_0x2e509e?_0x36f548()[_0x263db4('0x2130')](_0x2e509e['rows']?_0x2e509e[_0x263db4('0x19b2')]:[],'id'):{},_0x3908dc[_0x263db4('0x18bd')]={},_0x3908dc[_0x263db4('0x215b')]=![],_0x3908dc['order']=[],_0x3908dc[_0x263db4('0x14fd')]={};for(const _0x4c39e8 in _0x3908dc[_0x263db4('0x1401')]){typeof _0x3908dc['agents'][_0x4c39e8]!==_0x263db4('0x13e9')&&(_0x3908dc['agents'][_0x4c39e8][_0x263db4('0x286f')]=!![]);}_0x3908dc[_0x263db4('0x1f2a')]={'limit':0xa,'page':0x1,'order':'fullname','globalStatusFilter':'','pauseTypeFilter':''},_0x3908dc[_0x263db4('0x18f7')]=_0x5f03cd,_0x3908dc['queueAdd']=_0xff008f,_0x3908dc[_0x263db4('0x92a')]=_0xfce180,_0x3908dc[_0x263db4('0x1ab7')]=_0xb884ad,_0x3908dc[_0x263db4('0x1410')]=_0x1fa462,_0x3908dc[_0x263db4('0x12e5')]=_0x372979,_0x3908dc[_0x263db4('0x11a2')]=_0x4d48be,_0x3908dc[_0x263db4('0x1191')]=_0x556d5e,_0x3908dc[_0x263db4('0x1869')]=_0x3816fe,_0x3908dc['isPartialPause']=_0x1c6b60,_0x3908dc['onSave']=_0x28734b,_0x3908dc[_0x263db4('0xfdd')]=_0x5cbcdc,_0x3908dc[_0x263db4('0x277c')]=_0x4fd16b,_0x3908dc[_0x263db4('0x1e2e')]=_0x3749f5,_0x3908dc[_0x263db4('0x162a')]=_0x5a7505,_0x3908dc['screenRecording']=_0x2a50e8,_0x1b7343['on'](_0x263db4('0x1ce9'),_0x3908dc[_0x263db4('0xc8f')]),_0x1b7343['on'](_0x263db4('0x15bd'),_0x3908dc[_0x263db4('0xfdd')]),_0x1b7343['on'](_0x263db4('0x90c'),_0x3908dc['onConnect']),_0x1b7343['on'](_0x263db4('0xffb'),_0x3908dc[_0x263db4('0x162a')]),_0x4fd16b();let _0x2aa4e7=_0x4d24be(function(){const _0x20890c=_0x263db4;_0x3908dc['load']&&(_0x3908dc[_0x20890c('0x215b')]=![],_0x4fd16b());},0x3e7);function _0x4fd16b(){const _0x5c197b=_0x263db4;_0x3908dc[_0x5c197b('0x215b')]=![];const _0x969821=_0x2da57f[_0x5c197b('0xa93')]();_0x3908dc[_0x5c197b('0x13f')]=_0x969821[_0x5c197b('0x13f')],_0x3908dc[_0x5c197b('0x15f2')]=[],_0x3908dc['order']=[],_0x36f548()[_0x5c197b('0x41e')](_0x3908dc[_0x5c197b('0x1401')],function(_0x1271a1,_0x27f3fc){const _0x45cb88=_0x5c197b;_0x3908dc['rpcAgents'][_0x27f3fc]&&_0x36f548()[_0x45cb88('0x47b')](_0x1271a1,_0x36f548()[_0x45cb88('0x258')](_0x36f548()[_0x45cb88('0x196f')](_0x3908dc['rpcAgents'][_0x27f3fc],_0xb51ce1),_0x2a3576)),_0x4d48be(_0x1271a1),_0x1271a1[_0x45cb88('0x81c')]?(_0x3908dc[_0x45cb88('0x15f2')][_0x45cb88('0x105d')](_0x1271a1),_0x3908dc[_0x45cb88('0x14fd')][_0x1271a1[_0x45cb88('0x1a04')]]=_0x27f3fc):_0x1271a1[_0x45cb88('0xd4')]=_0x36f548()[_0x45cb88('0x17c2')](_0x57d4d1()()[_0x45cb88('0x1826')]('x'));});_0x3908dc['query'][_0x5c197b('0x270')]&&_0x36f548()[_0x5c197b('0x14a5')](_0x3908dc[_0x5c197b('0x15f2')],function(_0xeff8de){const _0x5cc5be=_0x5c197b;return _0xeff8de[_0x5cc5be('0x797')]!==_0x3908dc[_0x5cc5be('0x1f2a')][_0x5cc5be('0x270')];});_0x3908dc[_0x5c197b('0x1f2a')][_0x5c197b('0xa12')]&&_0x36f548()[_0x5c197b('0x14a5')](_0x3908dc[_0x5c197b('0x15f2')],function(_0x1e893a){const _0x1d6522=_0x5c197b;return _0x1e893a[_0x1d6522('0x2628')]!==_0x3908dc[_0x1d6522('0x1f2a')]['pauseTypeFilter'];});_0x3908dc[_0x5c197b('0x1f2a')][_0x5c197b('0xdb4')]&&_0x36f548()['remove'](_0x3908dc[_0x5c197b('0x15f2')],function(_0x19a095){const _0x3e8dfe=_0x5c197b;return _0x19a095[_0x3e8dfe('0x27af')][_0x3e8dfe('0x20d5')]()['indexOf'](_0x3908dc[_0x3e8dfe('0x1f2a')][_0x3e8dfe('0xdb4')][_0x3e8dfe('0x20d5')]())<0x0;});_0x3908dc['filteredAgents']=_0x2ad940(_0x3908dc['filteredAgents']);const _0x16529d=(_0x3908dc[_0x5c197b('0x1f2a')][_0x5c197b('0x1c2')]-0x1)*_0x3908dc[_0x5c197b('0x1f2a')][_0x5c197b('0xd5c')];_0x3908dc[_0x5c197b('0x18bd')]=_0x36f548()[_0x5c197b('0x1077')](_0x3908dc['filteredAgents'],_0x16529d)[_0x5c197b('0x1b77')](0x0,_0x3908dc[_0x5c197b('0x1f2a')][_0x5c197b('0xd5c')]);for(let _0x14298e=0x0;_0x14298e<_0x3908dc[_0x5c197b('0x18bd')][_0x5c197b('0x1e22')];_0x14298e+=0x1){_0x3908dc[_0x5c197b('0x59')][_0x5c197b('0x105d')](_0x3908dc[_0x5c197b('0x18bd')][_0x14298e]['id']);}_0x969821[_0x5c197b('0xa28')](),_0x3908dc[_0x5c197b('0x215b')]=!![];}function _0x28734b(_0x2d58cc){const _0x35732c=_0x263db4;_0x3908dc[_0x35732c('0x1401')][_0x2d58cc['id']]&&(_0x36f548()[_0x35732c('0x47b')](_0x3908dc[_0x35732c('0x1401')][_0x2d58cc['id']],_0x36f548()['pick'](_0x36f548()[_0x35732c('0x196f')](_0x2d58cc,_0xb51ce1),_0x2a3576)),_0x36f548()[_0x35732c('0x47b')](_0x3908dc[_0x35732c('0xaa0')][_0x2d58cc['id']],_0x36f548()[_0x35732c('0x258')](_0x36f548()[_0x35732c('0x196f')](_0x2d58cc,_0xb51ce1),_0x2a3576)),_0x4d48be(_0x3908dc[_0x35732c('0x1401')][_0x2d58cc['id']]));}function _0x5cbcdc(_0x54eda5){const _0x4b1caa=_0x263db4;_0x3908dc[_0x4b1caa('0x1401')][_0x54eda5['id']]&&(_0x36f548()[_0x4b1caa('0x47b')](_0x3908dc[_0x4b1caa('0x1401')][_0x54eda5['id']],_0x36f548()[_0x4b1caa('0x258')](_0x54eda5,_0x2a3576)),_0x36f548()[_0x4b1caa('0x47b')](_0x3908dc[_0x4b1caa('0xaa0')][_0x54eda5['id']],_0x36f548()[_0x4b1caa('0x258')](_0x54eda5,_0x2a3576)),_0x54eda5[_0x4b1caa('0x1e10')]&&(_0x3908dc[_0x4b1caa('0x1401')][_0x54eda5['id']][_0x4b1caa('0xd4')]=_0x54eda5[_0x4b1caa('0x1e10')],_0x3908dc['rpcAgents'][_0x54eda5['id']][_0x4b1caa('0xd4')]=_0x54eda5[_0x4b1caa('0x1e10')]),_0x4d48be(_0x3908dc[_0x4b1caa('0x1401')][_0x54eda5['id']]));}function _0x3749f5(_0x540115){const _0x4542f6=_0x263db4;_0x3908dc[_0x4542f6('0x1401')][_0x3908dc[_0x4542f6('0x14fd')][_0x540115[_0x4542f6('0x1fd0')]]]&&(_0x36f548()[_0x4542f6('0x47b')](_0x3908dc[_0x4542f6('0x1401')][_0x3908dc[_0x4542f6('0x14fd')][_0x540115[_0x4542f6('0x1fd0')]]],_0x36f548()[_0x4542f6('0x258')](_0x540115,[_0x4542f6('0x150b'),'destconnectedlinenum'])),_0x36f548()[_0x4542f6('0x47b')](_0x3908dc[_0x4542f6('0xaa0')][_0x3908dc[_0x4542f6('0x14fd')][_0x540115[_0x4542f6('0x1fd0')]]],_0x36f548()[_0x4542f6('0x258')](_0x540115,[_0x4542f6('0x150b'),_0x4542f6('0x1562')])));}function _0x5a7505(_0x104417){const _0x40d612=_0x263db4;_0x3908dc[_0x40d612('0x1401')][_0x3908dc[_0x40d612('0x14fd')][_0x104417[_0x40d612('0x1fd0')]]]&&(_0x3908dc['agents'][_0x3908dc[_0x40d612('0x14fd')][_0x104417[_0x40d612('0x1fd0')]]]=_0x36f548()[_0x40d612('0x196f')](_0x3908dc[_0x40d612('0x1401')][_0x3908dc[_0x40d612('0x14fd')][_0x104417['destaccountcode']]],[_0x40d612('0x150b'),_0x40d612('0x1562')]),_0x3908dc[_0x40d612('0xaa0')][_0x3908dc[_0x40d612('0x14fd')][_0x104417['destaccountcode']]]=_0x36f548()[_0x40d612('0x196f')](_0x3908dc[_0x40d612('0xaa0')][_0x3908dc[_0x40d612('0x14fd')][_0x104417[_0x40d612('0x1fd0')]]],[_0x40d612('0x150b'),'destconnectedlinenum']));}function _0x5f03cd(_0x3c7f7b){const _0x5e2552=_0x263db4;return _0x493938[_0x5e2552('0x21d9')][_0x5e2552('0x18f7')]({'id':_0x3c7f7b['id'],'device':_0x5e2552('0x25f9'),'agent_id':_0x3c7f7b['id'],'agent_name':_0x3c7f7b[_0x5e2552('0x1909')]})[_0x5e2552('0x1549')][_0x5e2552('0x11bf')](function(){const _0x20d461=_0x5e2552;_0x274db4['success']({'title':_0x20d461('0x21e1'),'msg':_0x3c7f7b[_0x20d461('0x27af')]+_0x20d461('0xf73')}),_0x3908dc['agents'][_0x3c7f7b['id']]&&(_0x3908dc[_0x20d461('0x1401')][_0x3c7f7b['id']][_0x20d461('0x81c')]=![]),_0x3908dc['rpcAgents'][_0x3c7f7b['id']]&&(_0x3908dc[_0x20d461('0xaa0')][_0x3c7f7b['id']]['online']=![]),_0x4fd16b();})[_0x5e2552('0x151d')](function(_0x1080eb){const _0x90b69d=_0x5e2552;_0x274db4[_0x90b69d('0x255')]({'title':_0x1080eb[_0x90b69d('0xff9')]?_0x90b69d('0x574')+_0x1080eb[_0x90b69d('0xff9')]+'\x20-\x20'+_0x1080eb[_0x90b69d('0x212f')]:'api.staff.save','msg':_0x1080eb[_0x90b69d('0x4e8')]?JSON[_0x90b69d('0x3e')](_0x1080eb[_0x90b69d('0x4e8')][_0x90b69d('0x1b86')]):_0x1080eb['toString']()});});}function _0xfce180(_0xe64c78,_0x5ee1f4){const _0x9522ee=_0x263db4;return _0x493938[_0x9522ee('0x21d9')][_0x9522ee('0x92a')]({'id':_0xe64c78['id'],'type':_0x5ee1f4})[_0x9522ee('0x1549')][_0x9522ee('0x11bf')](function(_0x5bc1de){const _0x343934=_0x9522ee;_0x3908dc[_0x343934('0x1401')][_0xe64c78['id']]&&_0x36f548()['merge'](_0x3908dc[_0x343934('0x1401')][_0xe64c78['id']],_0x36f548()[_0x343934('0x258')](_0x5bc1de,_0x2a3576)),_0x3908dc[_0x343934('0xaa0')][_0xe64c78['id']]&&_0x36f548()[_0x343934('0x47b')](_0x3908dc[_0x343934('0xaa0')][_0xe64c78['id']],_0x36f548()[_0x343934('0x258')](_0x5bc1de,_0x2a3576)),_0x4d48be(_0x3908dc[_0x343934('0x1401')][_0xe64c78['id']]);})[_0x9522ee('0x151d')](function(_0x12f354){const _0x17db38=_0x9522ee;_0x274db4[_0x17db38('0x255')]({'title':_0x12f354[_0x17db38('0xff9')]?_0x17db38('0x574')+_0x12f354[_0x17db38('0xff9')]+_0x17db38('0xb0b')+_0x12f354[_0x17db38('0x212f')]:_0x17db38('0x9'),'msg':_0x12f354['data']?JSON[_0x17db38('0x3e')](_0x12f354[_0x17db38('0x4e8')][_0x17db38('0x1b86')]):_0x12f354[_0x17db38('0xaab')]()});});}function _0xb884ad(_0x2ac6a8){const _0x1cfefb=_0x263db4;return _0x493938[_0x1cfefb('0x21d9')][_0x1cfefb('0xb6f')]({'id':_0x2ac6a8['id']})[_0x1cfefb('0x1549')][_0x1cfefb('0x11bf')](function(_0x4668a5){const _0x704492=_0x1cfefb;_0x3908dc['agents'][_0x2ac6a8['id']]&&_0x36f548()[_0x704492('0x47b')](_0x3908dc[_0x704492('0x1401')][_0x2ac6a8['id']],_0x36f548()[_0x704492('0x258')](_0x4668a5,_0x2a3576)),_0x3908dc[_0x704492('0xaa0')][_0x2ac6a8['id']]&&_0x36f548()[_0x704492('0x47b')](_0x3908dc['rpcAgents'][_0x2ac6a8['id']],_0x36f548()[_0x704492('0x258')](_0x4668a5,_0x2a3576)),_0x4d48be(_0x3908dc[_0x704492('0x1401')][_0x2ac6a8['id']]);})[_0x1cfefb('0x151d')](function(_0x120d43){const _0x171758=_0x1cfefb;_0x274db4['error']({'title':_0x120d43[_0x171758('0xff9')]?_0x171758('0x574')+_0x120d43[_0x171758('0xff9')]+_0x171758('0xb0b')+_0x120d43[_0x171758('0x212f')]:_0x171758('0x9'),'msg':_0x120d43['data']?JSON[_0x171758('0x3e')](_0x120d43['data'][_0x171758('0x1b86')]):_0x120d43['toString']()});});}function _0x1fa462(_0x2314c6){const _0x2ad0e7=_0x263db4;_0x588f77['show'](_0x588f77[_0x2ad0e7('0xb30')]()[_0x2ad0e7('0x728')](!![])['title']('Legend')[_0x2ad0e7('0x1d03')](_0x2ad0e7('0x193c'))['ok']('Ok')[_0x2ad0e7('0x1e25')](_0x2314c6));}function _0xff008f(_0x1f193a,_0x23eb6b){const _0x23f905=_0x263db4;_0x588f77[_0x23f905('0xb9')]({'controller':_0x23f905('0x1730'),'controllerAs':'vm','templateUrl':_0x43dcce,'parent':angular['element'](_0x226321['body']),'targetEvent':_0x23eb6b,'clickOutsideToClose':!![],'locals':{'agent':_0x1f193a,'agents':[],'channel':_0x23f905('0x1bc3'),'direction':_0x23f905('0x25b6'),'crudPermissions':_0x3908dc['crudPermissions']}});}function _0x556d5e(_0x5304d6){const _0x2f79c1=_0x263db4;return _0x5304d6==='pause'||_0x5304d6===_0x2f79c1('0x1050');}function _0x3816fe(_0x35b7c2){const _0x4f7ae9=_0x263db4;return _0x35b7c2===_0x4f7ae9('0x92a');}function _0x1c6b60(_0x10b975){const _0x1203ef=_0x263db4;return _0x10b975===_0x1203ef('0x1050');}function _0x1ad26d(_0x3a111f){const _0x185228=_0x263db4;return _0x3a111f==='idle'||_0x3a111f===_0x185228('0x6b0')||_0x3a111f===_0x185228('0x181f')||_0x3a111f===_0x185228('0x19b')||_0x36f548()[_0x185228('0x1a80')](_0x3a111f);}function _0x372979(_0x1d7209,_0x114ec3){const _0x31dcf3=_0x263db4;if(_0x114ec3===_0x31dcf3('0x1bc3')){if(_0x1d7209[_0x114ec3+_0x31dcf3('0x971')]!==_0x31dcf3('0x1533'))return _0x1d7209[_0x114ec3+'Status'];if(_0x1d7209[_0x114ec3+_0x31dcf3('0x6c5')])return _0x1d7209[_0x114ec3+_0x31dcf3('0x971')]=_0x31dcf3('0x92a'),_0x31dcf3('0x92a');return _0x31dcf3('0x1533');}else{if(_0x1d7209[_0x114ec3+_0x31dcf3('0x6c5')])return _0x1d7209[_0x114ec3+_0x31dcf3('0x971')]='pause','pause';return _0x1d7209[_0x114ec3+_0x31dcf3('0x971')];}}function _0x4d48be(_0x1db64b){const _0x3a6dc8=_0x263db4;let _0xa0317f=_0x3a6dc8('0x6b0');if(_0x36f548()[_0x3a6dc8('0x1d1')]([_0x372979(_0x1db64b,_0x3a6dc8('0x1bc3')),_0x372979(_0x1db64b,_0x3a6dc8('0x1800')),_0x372979(_0x1db64b,_0x3a6dc8('0x2030')),_0x372979(_0x1db64b,_0x3a6dc8('0xb18')),_0x372979(_0x1db64b,'sms'),_0x372979(_0x1db64b,_0x3a6dc8('0xe7c')),_0x372979(_0x1db64b,_0x3a6dc8('0x2104'))],_0x556d5e))_0xa0317f=_0x3a6dc8('0x92a');else{if(_0x36f548()['some']([_0x372979(_0x1db64b,_0x3a6dc8('0x1bc3')),_0x372979(_0x1db64b,_0x3a6dc8('0x1800')),_0x372979(_0x1db64b,'mail'),_0x372979(_0x1db64b,_0x3a6dc8('0xb18')),_0x372979(_0x1db64b,_0x3a6dc8('0x4df')),_0x372979(_0x1db64b,_0x3a6dc8('0xe7c')),_0x372979(_0x1db64b,_0x3a6dc8('0x2104'))],_0x556d5e))_0xa0317f=_0x3a6dc8('0x1050');else _0x36f548()[_0x3a6dc8('0x1d1')]([_0x372979(_0x1db64b,_0x3a6dc8('0x1bc3')),_0x372979(_0x1db64b,_0x3a6dc8('0x1800')),_0x372979(_0x1db64b,'mail'),_0x372979(_0x1db64b,_0x3a6dc8('0xb18')),_0x372979(_0x1db64b,_0x3a6dc8('0x4df')),_0x372979(_0x1db64b,_0x3a6dc8('0xe7c')),_0x372979(_0x1db64b,_0x3a6dc8('0x2104'))],_0x1ad26d)?_0xa0317f=_0x3a6dc8('0x1533'):_0xa0317f=_0x3a6dc8('0x23a3');}_0x1db64b[_0x3a6dc8('0x797')]!==_0xa0317f&&(_0x1db64b['globalStatus']=_0xa0317f,_0x1db64b[_0x3a6dc8('0x286f')]?(_0x1db64b[_0x3a6dc8('0x286f')]=![],_0x1db64b[_0x3a6dc8('0xd4')]=_0x556d5e(_0xa0317f)?_0x36f548()[_0x3a6dc8('0x17c2')](_0x57d4d1()(_0x1db64b['lastPauseAt'])[_0x3a6dc8('0x1826')]('x')):_0x36f548()['max']([_0x1db64b[_0x3a6dc8('0x24e5')],_0x1db64b[_0x3a6dc8('0xe6a')],_0x1db64b[_0x3a6dc8('0x1bab')],_0x1db64b[_0x3a6dc8('0x1ac6')],_0x1db64b[_0x3a6dc8('0x3ee')],_0x1db64b['openchannelStatusTime'],_0x1db64b[_0x3a6dc8('0x1ce2')]])):_0x1db64b[_0x3a6dc8('0xd4')]=_0x36f548()[_0x3a6dc8('0x17c2')](_0x57d4d1()()[_0x3a6dc8('0x1826')]('x')));}function _0x2ad940(_0x3b480e){const _0x61a134=_0x263db4,_0xe5c85c=_0x36f548()['startsWith'](_0x3908dc[_0x61a134('0x1f2a')]['order'],'-')?_0x61a134('0x121a'):'asc';return _0x36f548()['orderBy'](_0x3b480e,[_0x3908dc['query'][_0x61a134('0x59')]['replace']('-','')],[_0xe5c85c]);}function _0x105789(){const _0x1184e5=_0x263db4;_0x2aa4e7&&(_0x4d24be[_0x1184e5('0x26c9')](_0x2aa4e7),_0x2aa4e7=null);}function _0x2a50e8(_0x269bc3,_0x22bc7d){const _0x5a0ba1=_0x263db4;return _0x493938['user'][_0x5a0ba1('0x5ab')]({'id':_0x269bc3['id']},{'screenrecording':_0x22bc7d})['$promise'][_0x5a0ba1('0x151d')](function(_0x480c14){const _0x3eb6a8=_0x5a0ba1;_0x274db4[_0x3eb6a8('0x255')]({'title':_0x480c14[_0x3eb6a8('0xff9')]?_0x3eb6a8('0x574')+_0x480c14[_0x3eb6a8('0xff9')]+_0x3eb6a8('0xb0b')+_0x480c14[_0x3eb6a8('0x212f')]:'api.user.update','msg':_0x480c14[_0x3eb6a8('0x4e8')]?JSON[_0x3eb6a8('0x3e')](_0x480c14[_0x3eb6a8('0x4e8')][_0x3eb6a8('0x1b86')]):_0x480c14['toString']()});});}_0x53c054[_0x263db4('0x12d8')](_0x263db4('0x4f7'),function(){const _0x3455a4=_0x263db4;_0x1b7343[_0x3455a4('0x1b2e')](_0x3455a4('0x1ce9')),_0x1b7343[_0x3455a4('0x1b2e')](_0x3455a4('0x15bd')),_0x1b7343['removeAllListeners'](_0x3455a4('0x90c')),_0x1b7343[_0x3455a4('0x1b2e')]('user:agentcomplete'),_0x105789();});}const _0x73ce3b=_0x37bcd3,_0x5e9483=_0x351988['p']+_0x21d0f5('0x27f8');_0x51d70e['$inject']=[_0x21d0f5('0x1b80'),_0x21d0f5('0x17f5'),_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),_0x21d0f5('0x1fd'),'rpcCampaigns',_0x21d0f5('0x791'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1d56'),_0x21d0f5('0x25bc'),_0x21d0f5('0x1d63'),_0x21d0f5('0x1150')];function _0x51d70e(_0x2c461f,_0x104292,_0x18eba1,_0x1dd63c,_0x27d998,_0x120599,_0x3d77bf,_0x2e63e1,_0x31858c,_0x118f55,_0x1aea0f,_0x3ce3f3){const _0x2b0706=_0x21d0f5,_0x4c198c=this,_0x5a9a92=['name',_0x2b0706('0x2668'),_0x2b0706('0x284'),_0x2b0706('0x1b86'),'originated',_0x2b0706('0x6b4'),_0x2b0706('0x1cd6'),'Trunk','TrunkId','ivrAnswerCallsDay',_0x2b0706('0x18b2'),_0x2b0706('0x24fd'),_0x2b0706('0x1659')];_0x4c198c[_0x2b0706('0x32a')]=_0x3ce3f3[_0x2b0706('0x2428')](),_0x4c198c[_0x2b0706('0x27d2')]=_0x3d77bf[_0x2b0706('0x27d2')],_0x4c198c[_0x2b0706('0x791')]=_0x3d77bf?_0x36f548()[_0x2b0706('0x2130')](_0x3d77bf[_0x2b0706('0x19b2')]?_0x3d77bf[_0x2b0706('0x19b2')]:[],'id'):{},_0x4c198c['rpcCampaigns']=_0x120599?_0x36f548()['keyBy'](_0x120599[_0x2b0706('0x19b2')]?_0x120599[_0x2b0706('0x19b2')]:[],'id'):{},_0x4c198c[_0x2b0706('0x25bc')]=_0x118f55,_0x4c198c[_0x2b0706('0x1d63')]=_0x1aea0f&&_0x1aea0f[_0x2b0706('0x27d2')]==0x1?_0x1aea0f[_0x2b0706('0x19b2')][0x0]:null,_0x4c198c[_0x2b0706('0xb25')]=_0x3ce3f3['parseCrudPermissions'](_0x4c198c[_0x2b0706('0x1d63')]?_0x4c198c[_0x2b0706('0x1d63')][_0x2b0706('0xb25')]:null),_0x4c198c[_0x2b0706('0x1f2a')]={'sort':'-updatedAt','limit':0xa,'page':0x1},_0x4c198c[_0x2b0706('0x2693')]=_0x11036b,_0x4c198c[_0x2b0706('0x143c')]=_0x1a4eec,_0x4c198c['onSave']=_0x383358,_0x4c198c['$onInit']=_0x5651f0,_0x4c198c[_0x2b0706('0x1421')]=_0x551444,_0x31858c['onWithoutApply'](_0x2b0706('0x1515'),_0x4c198c[_0x2b0706('0xc8f')]),_0x4c198c[_0x2b0706('0x507')]=_0x27d998(function(){},0x3e7);function _0x5651f0(){const _0x1901df=_0x2b0706;_0x36f548()[_0x1901df('0x41e')](_0x4c198c[_0x1901df('0x791')],function(_0xa1ac8a,_0x5d5028){const _0x168e65=_0x1901df;_0x4c198c['rpcCampaigns'][_0x5d5028]&&_0x36f548()[_0x168e65('0x47b')](_0xa1ac8a,_0x36f548()[_0x168e65('0x258')](_0x4c198c[_0x168e65('0x1555')][_0x5d5028],_0x5a9a92));});}function _0x383358(_0x3be39b){const _0x3a38ef=_0x2b0706;_0x4c198c[_0x3a38ef('0x791')][_0x3be39b['id']]&&(_0x36f548()[_0x3a38ef('0x47b')](_0x4c198c['campaigns'][_0x3be39b['id']],_0x36f548()[_0x3a38ef('0x258')](_0x3be39b,_0x5a9a92)),_0x36f548()[_0x3a38ef('0x47b')](_0x4c198c[_0x3a38ef('0x1555')][_0x3be39b['id']],_0x36f548()[_0x3a38ef('0x258')](_0x3be39b,_0x5a9a92)));}let _0x4c478e=!![],_0x2f719a=0x1;_0x2c461f[_0x2b0706('0x2087')](_0x2b0706('0x842'),function(_0x4baf48,_0x188ff0){const _0x24b86b=_0x2b0706;_0x4c478e?_0x104292(function(){_0x4c478e=![];}):(!_0x188ff0&&(_0x2f719a=_0x4c198c[_0x24b86b('0x1f2a')][_0x24b86b('0x1c2')]),_0x4baf48!==_0x188ff0&&(_0x4c198c[_0x24b86b('0x1f2a')]['page']=0x1),!_0x4baf48&&(_0x4c198c[_0x24b86b('0x1f2a')][_0x24b86b('0x1c2')]=_0x2f719a),_0x4c198c[_0x24b86b('0x143c')]());});function _0x11036b(_0x26214f){const _0x3f0bd1=_0x2b0706;_0x4c198c[_0x3f0bd1('0x27d2')]=_0x26214f[_0x3f0bd1('0x27d2')],_0x4c198c[_0x3f0bd1('0x791')]=_0x26214f?_0x36f548()[_0x3f0bd1('0x2130')](_0x26214f[_0x3f0bd1('0x19b2')]?_0x26214f[_0x3f0bd1('0x19b2')]:[],'id'):{},_0x5651f0();}function _0x1a4eec(){const _0x1026ca=_0x2b0706;_0x4c198c[_0x1026ca('0x1f2a')][_0x1026ca('0x1393')]=(_0x4c198c['query']['page']-0x1)*_0x4c198c[_0x1026ca('0x1f2a')]['limit'],_0x3ce3f3[_0x1026ca('0x4ee')](_0x1026ca('0xf45'))?_0x4c198c[_0x1026ca('0x13f')]=_0x2e63e1[_0x1026ca('0x145d')]['get'](_0x4c198c[_0x1026ca('0x1f2a')],_0x11036b)[_0x1026ca('0x1549')]:(_0x4c198c['query']['id']=_0x4c198c[_0x1026ca('0x25bc')]['id'],_0x4c198c[_0x1026ca('0x1f2a')][_0x1026ca('0xe6')]=_0x1026ca('0xec'),_0x4c198c['promise']=_0x2e63e1[_0x1026ca('0x25bc')][_0x1026ca('0x228e')](_0x4c198c['query'],_0x11036b)[_0x1026ca('0x1549')]);}function _0x551444(_0x21255a,_0x1061c0){const _0xf8d0c6=_0x2b0706;_0x18eba1[_0xf8d0c6('0xb9')]({'controller':_0xf8d0c6('0x176b'),'controllerAs':'vm','templateUrl':_0x5e9483,'parent':angular[_0xf8d0c6('0x1e73')](_0x1dd63c[_0xf8d0c6('0x1d2')]),'targetEvent':_0x21255a,'clickOutsideToClose':!![],'locals':{'ivrCampaign':_0x1061c0,'ivrCampaigns':_0x36f548()['values'](_0x4c198c['campaigns']),'license':null,'setting':null,'crudPermissions':_0x4c198c[_0xf8d0c6('0xb25')]}});}_0x2c461f[_0x2b0706('0x12d8')](_0x2b0706('0x4f7'),function(){const _0x27b939=_0x2b0706;_0x31858c['removeAllListeners']('campaign:save'),_0x4c198c[_0x27b939('0x507')]&&_0x27d998[_0x27b939('0x26c9')](_0x4c198c[_0x27b939('0x507')]);});}const _0x222ac9=_0x51d70e;_0x528516[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),'$timeout',_0x21d0f5('0x1ca2'),'agents',_0x21d0f5('0x1de3'),'rpcVoiceQueuesChannels',_0x21d0f5('0x12a5'),_0x21d0f5('0x1d56'),_0x21d0f5('0x927'),_0x21d0f5('0x142d'),_0x21d0f5('0x25bc'),_0x21d0f5('0x1d63'),_0x21d0f5('0x1150')];function _0x528516(_0x1340ee,_0x1d69d3,_0x5892c9,_0x41c244,_0x21c263,_0x1fb883,_0x41f16a,_0x1e525d,_0x337c08,_0x219276,_0x5d369a,_0x21d8bc,_0x2e763b){const _0x1a1706=_0x21d0f5,_0x3adb49=this;_0x3adb49[_0x1a1706('0x32a')]=_0x2e763b['getCurrentUser'](),_0x3adb49[_0x1a1706('0x1401')]=_0x41c244||{'count':0x0,'rows':[]},_0x3adb49[_0x1a1706('0x1de3')]=_0x21c263?_0x36f548()[_0x1a1706('0x2130')](_0x21c263[_0x1a1706('0x19b2')]?_0x21c263['rows']:[],_0x1a1706('0x1909')):{},_0x3adb49['rpcVoiceQueuesChannelsTmp']=_0x1fb883?_0x36f548()['keyBy'](_0x1fb883['rows']?_0x36f548()[_0x1a1706('0xdb4')](_0x1fb883[_0x1a1706('0x19b2')],{'type':_0x1a1706('0x25b6')}):[],_0x1a1706('0x938')):{},_0x3adb49[_0x1a1706('0x101e')]={},_0x3adb49['userProfile']=_0x5d369a,_0x3adb49['userProfileSection']=_0x21d8bc&&_0x21d8bc[_0x1a1706('0x27d2')]==0x1?_0x21d8bc[_0x1a1706('0x19b2')][0x0]:null,_0x3adb49[_0x1a1706('0xb25')]=_0x2e763b[_0x1a1706('0x1530')](_0x3adb49['userProfileSection']?_0x3adb49['userProfileSection'][_0x1a1706('0xb25')]:null),_0x3adb49[_0x1a1706('0x316')]={'limit':0xa,'page':0x1},_0x3adb49[_0x1a1706('0x1885')]=_0x37e1f7,_0x3adb49['$onInit']=_0x3070c8,_0x3adb49[_0x1a1706('0xc8f')]=_0x5df2c1,_0x3adb49[_0x1a1706('0x400')]=_0x526ea5,_0x3adb49[_0x1a1706('0xcef')]=_0x10fedc,_0x3adb49[_0x1a1706('0x181c')]=_0x3ccfa5,_0x3adb49[_0x1a1706('0x17ee')]=_0x173062,_0x1e525d['on'](_0x1a1706('0x1d09'),_0x3adb49['onSave']),_0x1e525d['on']('voice_queue_channel:remove',_0x3adb49[_0x1a1706('0x400')]);function _0x37e1f7(_0x55b4ac){const _0x4b90d2=_0x1a1706;return _0x36f548()[_0x4b90d2('0x12dd')](_0x55b4ac);}function _0x3070c8(){const _0x48cffc=_0x1a1706;_0x36f548()[_0x48cffc('0x41e')](_0x3adb49['rpcVoiceQueuesChannelsTmp'],function(_0x5ea0a8,_0x1d2cb9){const _0x17100f=_0x48cffc;_0x36f548()[_0x17100f('0x1ad4')](_0x3adb49[_0x17100f('0x1de3')],{'name':_0x5ea0a8['name']})&&(_0x3adb49[_0x17100f('0x101e')][_0x1d2cb9]=_0x5ea0a8);});}function _0x5df2c1(_0x7a77b5){const _0x456081=_0x1a1706;_0x7a77b5['type']==='outbound'&&(_0x36f548()[_0x456081('0x1ad4')](_0x3adb49[_0x456081('0x1de3')],{'name':_0x7a77b5[_0x456081('0x1909')]})&&(_0x3adb49['rpcVoiceQueuesChannels'][_0x7a77b5['uniqueid']]=_0x7a77b5));}function _0x526ea5(_0x25a0d7){const _0x1bd389=_0x1a1706;_0x3adb49[_0x1bd389('0x101e')][_0x25a0d7[_0x1bd389('0x938')]]&&delete _0x3adb49[_0x1bd389('0x101e')][_0x25a0d7[_0x1bd389('0x938')]];}function _0x10fedc(_0x2df4cd){const _0x3dcb91=_0x1a1706;return _0x41f16a[_0x3dcb91('0x4db')][_0x3dcb91('0x1fe4')]({'uniqueid':_0x2df4cd})['$promise'][_0x3dcb91('0x11bf')](function(_0x14aec9){const _0x2a52ca=_0x3dcb91;_0x219276[_0x2a52ca('0x2693')]({'title':'Channel\x20'+_0x2df4cd+'\x20properly\x20hangup!','msg':_0x14aec9[_0x2a52ca('0x1b86')]||''});})[_0x3dcb91('0x151d')](function(_0x13fa59){const _0x114598=_0x3dcb91;_0x219276['error']({'title':_0x13fa59[_0x114598('0xff9')]+_0x114598('0xb0b')+_0x13fa59[_0x114598('0x212f')],'msg':JSON[_0x114598('0x3e')](_0x13fa59[_0x114598('0x4e8')])||_0x13fa59[_0x114598('0x1b86')][_0x114598('0xa04')]('\x20')});});}function _0x3ccfa5(_0x24609e,_0x5c3df2,_0x24c7cc){const _0x3f0f8b=_0x1a1706;return _0x41f16a[_0x3f0f8b('0x4db')][_0x3f0f8b('0x27c7')]({'uniqueid':_0x24609e,'exten':_0x5c3df2,'context':_0x24c7cc})[_0x3f0f8b('0x1549')][_0x3f0f8b('0x11bf')](function(_0x365beb){const _0x250295=_0x3f0f8b;_0x219276[_0x250295('0x2693')]({'title':'Channel\x20'+_0x24609e+'\x20properly\x20redirect!','msg':_0x365beb[_0x250295('0x1b86')]||''});})[_0x3f0f8b('0x151d')](function(_0x15d150){const _0x38d44e=_0x3f0f8b;_0x219276['error']({'title':_0x15d150[_0x38d44e('0xff9')]+_0x38d44e('0xb0b')+_0x15d150[_0x38d44e('0x212f')],'msg':JSON['stringify'](_0x15d150['data'])||_0x15d150['message'][_0x38d44e('0xa04')]('\x20')});});}function _0x173062(_0x29de82,_0x289253){const _0x5e77c4=_0x1a1706,_0x512efc=_0x5892c9[_0x5e77c4('0xff5')]()[_0x5e77c4('0x134b')]('Which\x20number\x20do\x20you\x20want\x20transfer\x20the\x20call\x20to?')[_0x5e77c4('0x1772')](_0x5e77c4('0x211b'))[_0x5e77c4('0x1e25')](_0x29de82)['ok']('Ok')[_0x5e77c4('0x26c9')](_0x5e77c4('0x784'));return _0x5892c9[_0x5e77c4('0xb9')](_0x512efc)[_0x5e77c4('0x11bf')](function(_0x3d62e8){const _0x397436=_0x5e77c4;return _0x41f16a['rpc'][_0x397436('0x27c7')]({'uniqueid':_0x289253,'exten':_0x3d62e8})[_0x397436('0x1549')];})[_0x5e77c4('0x11bf')](function(_0x42f100){const _0x525b57=_0x5e77c4;_0x219276[_0x525b57('0x2693')]({'title':_0x525b57('0x1fac')+_0x289253+_0x525b57('0x596'),'msg':_0x42f100[_0x525b57('0x1b86')]||''});})['catch'](function(_0x6118d1){const _0x34debc=_0x5e77c4;_0x219276[_0x34debc('0x255')]({'title':_0x6118d1[_0x34debc('0xff9')]+_0x34debc('0xb0b')+_0x6118d1[_0x34debc('0x212f')],'msg':JSON[_0x34debc('0x3e')](_0x6118d1[_0x34debc('0x4e8')])||_0x6118d1['message'][_0x34debc('0xa04')]('\x20')});});}_0x1340ee[_0x1a1706('0x12d8')]('$destroy',function(){const _0x1d519d=_0x1a1706;_0x1e525d[_0x1d519d('0x1b2e')](_0x1d519d('0x1d09')),_0x1e525d['removeAllListeners'](_0x1d519d('0x1125'));});}const _0x5f09ba=_0x528516;_0x181352[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),'$timeout','$interval',_0x21d0f5('0x1de3'),_0x21d0f5('0x1223'),_0x21d0f5('0x12a5'),'socket',_0x21d0f5('0x25bc'),_0x21d0f5('0x1d63'),_0x21d0f5('0x1150')];function _0x181352(_0x50ef18,_0x1bb530,_0x35a07a,_0x1bf4b5,_0x51047c,_0x4d7948,_0x5edf54,_0x57e973,_0x39dfc4,_0x42502a){const _0x28c7ff=_0x21d0f5,_0x21d430=this,_0x27c8e9=['total',_0x28c7ff('0x150f'),_0x28c7ff('0x71f'),'sumDuration','sumBillable','outboundNoAnswerCallsDay',_0x28c7ff('0x13b2'),_0x28c7ff('0xedf'),_0x28c7ff('0x22a9'),'outboundUnknownCallsDay','outboundDropCallsDayTimeout','outboundDropCallsDayCallersExit',_0x28c7ff('0xbb9'),_0x28c7ff('0x732'),_0x28c7ff('0x1ad9'),_0x28c7ff('0x21e'),_0x28c7ff('0x252f')];_0x21d430[_0x28c7ff('0x27d2')]=_0x1bf4b5[_0x28c7ff('0x27d2')],_0x21d430[_0x28c7ff('0x1de3')]=_0x1bf4b5?_0x36f548()[_0x28c7ff('0x2130')](_0x1bf4b5[_0x28c7ff('0x19b2')]?_0x1bf4b5['rows']:[],'id'):{},_0x21d430[_0x28c7ff('0x1223')]=_0x51047c?_0x36f548()[_0x28c7ff('0x2130')](_0x51047c[_0x28c7ff('0x19b2')]?_0x51047c[_0x28c7ff('0x19b2')]:[],'id'):{},_0x21d430[_0x28c7ff('0x25bc')]=_0x57e973,_0x21d430[_0x28c7ff('0x1d63')]=_0x39dfc4&&_0x39dfc4['count']==0x1?_0x39dfc4[_0x28c7ff('0x19b2')][0x0]:null,_0x21d430[_0x28c7ff('0xb25')]=_0x42502a[_0x28c7ff('0x1530')](_0x21d430[_0x28c7ff('0x1d63')]?_0x21d430['userProfileSection'][_0x28c7ff('0xb25')]:null);_0x42502a['hasRole'](_0x28c7ff('0xf45'))?_0x21d430[_0x28c7ff('0x1f2a')]={'type':_0x28c7ff('0x25b6'),'fields':_0x28c7ff('0x721'),'sort':_0x28c7ff('0x1c74'),'limit':0xa,'page':0x1}:_0x21d430['query']={'id':_0x42502a['getCurrentUser']()['id'],'channel':_0x28c7ff('0x1bc3'),'type':_0x28c7ff('0x25b6'),'fields':_0x28c7ff('0x721'),'sort':_0x28c7ff('0x1c74'),'limit':0xa,'page':0x1};_0x21d430[_0x28c7ff('0x2693')]=_0x271c6c,_0x21d430[_0x28c7ff('0x373')]=_0x44022e,_0x21d430[_0x28c7ff('0xc8f')]=_0x4115c4,_0x21d430['$onInit']=_0x5efaff,_0x5edf54[_0x28c7ff('0x284d')](_0x28c7ff('0x259b'),_0x21d430['onSave']),_0x21d430[_0x28c7ff('0x507')]=_0x35a07a(function(){},0x3e7);function _0x5efaff(){const _0x5abb74=_0x28c7ff;_0x36f548()[_0x5abb74('0x41e')](_0x21d430[_0x5abb74('0x1de3')],function(_0x3e2819,_0x330ebc){const _0x3895b9=_0x5abb74;_0x21d430['rpcQueues'][_0x330ebc]&&_0x36f548()[_0x3895b9('0x47b')](_0x3e2819,_0x36f548()['pick'](_0x21d430[_0x3895b9('0x1223')][_0x330ebc],_0x27c8e9));});}function _0x4115c4(_0x35dc01){const _0x3889b0=_0x28c7ff;_0x21d430[_0x3889b0('0x1de3')][_0x35dc01['id']]&&_0x36f548()[_0x3889b0('0x47b')](_0x21d430[_0x3889b0('0x1de3')][_0x35dc01['id']],_0x36f548()[_0x3889b0('0x258')](_0x35dc01,_0x27c8e9));}let _0x47c209=!![],_0x253a46=0x1;_0x50ef18['$watch'](_0x28c7ff('0x842'),function(_0x4cf6f6,_0x29c33b){const _0x379098=_0x28c7ff;_0x47c209?_0x1bb530(function(){_0x47c209=![];}):(!_0x29c33b&&(_0x253a46=_0x21d430[_0x379098('0x1f2a')][_0x379098('0x1c2')]),_0x4cf6f6!==_0x29c33b&&(_0x21d430[_0x379098('0x1f2a')]['page']=0x1),!_0x4cf6f6&&(_0x21d430[_0x379098('0x1f2a')][_0x379098('0x1c2')]=_0x253a46),_0x21d430['getQueues']());});function _0x271c6c(_0x27e0e4){const _0x3004e3=_0x28c7ff;_0x21d430[_0x3004e3('0x27d2')]=_0x27e0e4['count'],_0x21d430[_0x3004e3('0x1de3')]=_0x27e0e4?_0x36f548()[_0x3004e3('0x2130')](_0x27e0e4[_0x3004e3('0x19b2')]?_0x27e0e4[_0x3004e3('0x19b2')]:[],'id'):{},_0x5efaff();}function _0x44022e(){const _0x2c5c05=_0x28c7ff;_0x21d430[_0x2c5c05('0x1f2a')]['offset']=(_0x21d430['query'][_0x2c5c05('0x1c2')]-0x1)*_0x21d430[_0x2c5c05('0x1f2a')][_0x2c5c05('0xd5c')],_0x42502a['hasRole'](_0x2c5c05('0xf45'))?_0x21d430[_0x2c5c05('0x13f')]=_0x4d7948[_0x2c5c05('0x1043')][_0x2c5c05('0xbaa')](_0x21d430[_0x2c5c05('0x1f2a')],_0x271c6c)[_0x2c5c05('0x1549')]:(_0x21d430['query']['id']=_0x21d430['userProfile']['id'],_0x21d430[_0x2c5c05('0x1f2a')][_0x2c5c05('0xe6')]=_0x2c5c05('0x1e95'),_0x21d430[_0x2c5c05('0x13f')]=_0x4d7948[_0x2c5c05('0x25bc')][_0x2c5c05('0x228e')](_0x21d430[_0x2c5c05('0x1f2a')],_0x271c6c)['$promise']);}_0x50ef18['$on'](_0x28c7ff('0x4f7'),function(){const _0x4283a6=_0x28c7ff;_0x5edf54[_0x4283a6('0x1b2e')](_0x4283a6('0x259b')),_0x21d430[_0x4283a6('0x507')]&&_0x35a07a[_0x4283a6('0x26c9')](_0x21d430[_0x4283a6('0x507')]);});}const _0x1b942b=_0x181352,_0x3cea48=_0x351988['p']+_0x21d0f5('0x1e3b'),_0xa42157=_0x351988['p']+_0x21d0f5('0x1236'),_0xefff11=_0x351988['p']+_0x21d0f5('0x265');_0x2e805e[_0x21d0f5('0x1e9a')]=['$scope',_0x21d0f5('0x17f5'),_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0x1b30'),_0x21d0f5('0x1fd'),'queues','rpcQueues',_0x21d0f5('0x12a5'),_0x21d0f5('0x1d56'),'toasty','userProfile','userProfileSection','Auth'];function _0x2e805e(_0x11ab1c,_0x53134e,_0xd9149e,_0x289f09,_0x3fea0e,_0x3885d5,_0x55fd7b,_0x57bcd2,_0x2771de,_0x1b7763,_0x3953ab,_0x43a0bd,_0x101950,_0x5ee02b){const _0x59104a=_0x21d0f5,_0x1fe2ee=this,_0x2258d8=[_0x59104a('0xdbd'),_0x59104a('0x126a'),_0x59104a('0x1491'),'talking',_0x59104a('0x17ba'),_0x59104a('0x1fab'),_0x59104a('0x1b86'),_0x59104a('0x8b6'),_0x59104a('0xcd7'),_0x59104a('0x10d'),_0x59104a('0xdb0'),_0x59104a('0x4a0'),'startProgressive','erlangCalls','erlangCallToSecond',_0x59104a('0x802'),_0x59104a('0x3a'),'dialPredictiveInterval',_0x59104a('0x26f'),_0x59104a('0x62a'),'predictiveIntervalAvailable',_0x59104a('0x243b'),_0x59104a('0x1e8e'),_0x59104a('0x1783'),_0x59104a('0x1c6a'),_0x59104a('0xdf5'),'predictiveIntervalAvgTalktime'];_0x1fe2ee[_0x59104a('0x32a')]=_0x5ee02b[_0x59104a('0x2428')](),_0x1fe2ee['count']=_0x55fd7b[_0x59104a('0x27d2')]?_0x55fd7b['count']:0x0,_0x1fe2ee['queues']=_0x55fd7b?_0x36f548()['keyBy'](_0x55fd7b[_0x59104a('0x19b2')]?_0x55fd7b[_0x59104a('0x19b2')]:[],'id'):{},_0x1fe2ee[_0x59104a('0x1223')]=_0x57bcd2?_0x36f548()['keyBy'](_0x57bcd2[_0x59104a('0x19b2')]?_0x57bcd2[_0x59104a('0x19b2')]:[],'id'):{},_0x1fe2ee['userProfile']=_0x43a0bd,_0x1fe2ee[_0x59104a('0x1d63')]=_0x101950&&_0x101950[_0x59104a('0x27d2')]==0x1?_0x101950[_0x59104a('0x19b2')][0x0]:null,_0x1fe2ee[_0x59104a('0xb25')]=_0x5ee02b[_0x59104a('0x1530')](_0x1fe2ee['userProfileSection']?_0x1fe2ee['userProfileSection'][_0x59104a('0xb25')]:null);_0x5ee02b['hasRole'](_0x59104a('0xf45'))?_0x1fe2ee[_0x59104a('0x1f2a')]={'type':_0x59104a('0x25b6'),'sort':_0x59104a('0x1c74'),'limit':0xa,'page':0x1}:_0x1fe2ee['query']={'id':_0x1fe2ee[_0x59104a('0x32a')]['id'],'channel':'voice','type':_0x59104a('0x25b6'),'sort':_0x59104a('0x1c74'),'limit':0xa,'page':0x1};_0x1fe2ee[_0x59104a('0x2693')]=_0x3421bd,_0x1fe2ee[_0x59104a('0x373')]=_0x15ae08,_0x1fe2ee['createOrEditMotionDialerQueue']=_0x39f2ef,_0x1fe2ee[_0x59104a('0x4c0')]=_0x2bfb66,_0x1fe2ee['agentAdd']=_0x3f464d,_0x1fe2ee[_0x59104a('0xdd9')]=_0x29d60f,_0x1fe2ee['onSave']=_0x24240d,_0x1fe2ee['onSaveMember']=_0x16e1fe,_0x1fe2ee['onPause']=_0x53a30a,_0x1fe2ee[_0x59104a('0x722')]=_0x3cc207,_0x1fe2ee[_0x59104a('0x37f')]=_0x30f3d7,_0x1fe2ee[_0x59104a('0x224d')]=_0x356cc1,_0x1fe2ee[_0x59104a('0x59')]=[],_0x36f548()[_0x59104a('0x41e')](_0x1fe2ee[_0x59104a('0x1de3')],function(_0x2246c7){const _0x68733e=_0x59104a;_0x1fe2ee[_0x68733e('0x59')][_0x68733e('0x105d')](_0x2246c7['id']);}),_0x1b7763[_0x59104a('0x284d')](_0x59104a('0x259b'),_0x1fe2ee[_0x59104a('0xc8f')]),_0x1fe2ee[_0x59104a('0x507')]=_0x3885d5(function(){},0x3e7),_0x1b7763['on'](_0x59104a('0x2026'),_0x1fe2ee[_0x59104a('0x17b7')]),_0x1b7763['on'](_0x59104a('0x15bd'),_0x1fe2ee[_0x59104a('0x199c')]),_0x1b7763['on'](_0x59104a('0x5c6'),_0x1fe2ee['onLogout']),_0x1b7763['on'](_0x59104a('0x1929'),_0x1fe2ee['onLogin']);function _0x356cc1(){const _0x28a9f2=_0x59104a,_0x3ffd9c=[];return _0x36f548()[_0x28a9f2('0x41e')](_0x1fe2ee['queues'],function(_0x747201,_0x210238){const _0x13a1a1=_0x28a9f2;_0x747201[_0x13a1a1('0xdb0')]=0x0,_0x747201[_0x13a1a1('0x1e84')]=0x0,_0x1fe2ee[_0x13a1a1('0x1de3')][_0x210238][_0x13a1a1('0x1401')]={},_0x3ffd9c['push'](_0x2771de['voiceQueue'][_0x13a1a1('0x226d')]({'id':_0x210238})[_0x13a1a1('0x1549')]),_0x1fe2ee[_0x13a1a1('0x1223')][_0x210238]&&_0x36f548()[_0x13a1a1('0x47b')](_0x747201,_0x36f548()[_0x13a1a1('0x258')](_0x1fe2ee[_0x13a1a1('0x1223')][_0x210238],_0x2258d8));}),_0x289f09[_0x28a9f2('0x7c')](_0x3ffd9c)['then'](function(_0x360b72){const _0x5f0a9c=_0x28a9f2;for(let _0x1ede3a=0x0;_0x1ede3a<_0x360b72[_0x5f0a9c('0x1e22')];_0x1ede3a+=0x1){for(let _0x350e12=0x0;_0x350e12<_0x360b72[_0x1ede3a][_0x5f0a9c('0x19b2')][_0x5f0a9c('0x1e22')];_0x350e12++){_0x360b72[_0x1ede3a][_0x5f0a9c('0x19b2')][_0x350e12][_0x5f0a9c('0xdb0')]&&_0x1fe2ee['queues'][_0x360b72[_0x1ede3a][_0x5f0a9c('0x19b2')][_0x350e12][_0x5f0a9c('0x19b6')]][_0x5f0a9c('0xdb0')]++,_0x1fe2ee[_0x5f0a9c('0x1de3')][_0x360b72[_0x1ede3a][_0x5f0a9c('0x19b2')][_0x350e12][_0x5f0a9c('0x19b6')]][_0x5f0a9c('0x1e84')]++,_0x1fe2ee['queues'][_0x360b72[_0x1ede3a][_0x5f0a9c('0x19b2')][_0x350e12][_0x5f0a9c('0x19b6')]][_0x5f0a9c('0x1401')][_0x360b72[_0x1ede3a][_0x5f0a9c('0x19b2')][_0x350e12]['UserId']]=_0x360b72[_0x1ede3a][_0x5f0a9c('0x19b2')][_0x350e12][_0x5f0a9c('0x19b6')];}}})[_0x28a9f2('0x151d')](function(_0x34f4ca){const _0x9b0579=_0x28a9f2;console[_0x9b0579('0x255')](_0x34f4ca);});}function _0x24240d(_0x2bf48f){const _0x339af0=_0x59104a;_0x1fe2ee[_0x339af0('0x1de3')][_0x2bf48f['id']]&&(_0x36f548()[_0x339af0('0x47b')](_0x1fe2ee[_0x339af0('0x1de3')][_0x2bf48f['id']],_0x36f548()[_0x339af0('0x258')](_0x2bf48f,_0x2258d8)),_0x36f548()['isNil'](_0x2bf48f[_0x339af0('0x4a0')])&&(_0x1fe2ee[_0x339af0('0x1de3')][_0x2bf48f['id']][_0x339af0('0x4a0')]=undefined));}function _0x16e1fe(_0x203898){const _0x2d4bc7=_0x59104a;_0x1fe2ee[_0x2d4bc7('0x1de3')][_0x203898[_0x2d4bc7('0xfc2')]]&&_0x1fe2ee[_0x2d4bc7('0x1de3')][_0x203898[_0x2d4bc7('0xfc2')]][_0x2d4bc7('0x1e84')]++;}function _0x53a30a(_0x2ada41){const _0x3c2de7=_0x59104a;console[_0x3c2de7('0xc78')](_0x3c2de7('0x199c'),_0x2ada41);if(_0x2ada41[_0x3c2de7('0x20d')])_0x36f548()[_0x3c2de7('0x41e')](_0x1fe2ee[_0x3c2de7('0x1de3')],function(_0x1fbddf){const _0x37e865=_0x3c2de7;_0x1fbddf[_0x37e865('0x1401')][_0x2ada41['id']]&&(_0x1fbddf[_0x37e865('0xdb0')]+=0x1,console[_0x37e865('0xc78')]('pause'));});else!_0x2ada41['voicePause']&&_0x36f548()['forIn'](_0x1fe2ee[_0x3c2de7('0x1de3')],function(_0x46b73a){const _0x5730af=_0x3c2de7;_0x46b73a['agents'][_0x2ada41['id']]&&(_0x46b73a[_0x5730af('0xdb0')]>0x0&&(_0x46b73a['paused']-=0x1,console[_0x5730af('0xc78')](_0x5730af('0xb6f'))));});}function _0x3cc207(_0x4fd00b){const _0x54e59f=_0x59104a;console['log'](_0x54e59f('0x107b'),_0x4fd00b),_0x1fe2ee['queues'][_0x4fd00b[_0x54e59f('0x19b6')]]&&(_0x1fe2ee[_0x54e59f('0x1de3')][_0x4fd00b['VoiceQueueId']][_0x54e59f('0x1e84')]+=0x1,_0x1fe2ee[_0x54e59f('0x1de3')][_0x4fd00b[_0x54e59f('0x19b6')]][_0x54e59f('0x1401')][_0x4fd00b['UserId']]=_0x4fd00b[_0x54e59f('0x19b6')]);}function _0x30f3d7(_0x1e4d3a){const _0x1265b2=_0x59104a;console[_0x1265b2('0xc78')]('onLogout',_0x1e4d3a),_0x1fe2ee[_0x1265b2('0x1de3')][_0x1e4d3a[_0x1265b2('0x19b6')]]&&_0x1fe2ee['queues'][_0x1e4d3a[_0x1265b2('0x19b6')]][_0x1265b2('0x1e84')]>0x0&&(_0x1fe2ee['queues'][_0x1e4d3a['VoiceQueueId']][_0x1265b2('0x1e84')]-=0x1,delete _0x1fe2ee[_0x1265b2('0x1de3')][_0x1e4d3a[_0x1265b2('0x19b6')]][_0x1265b2('0x1401')][_0x1e4d3a[_0x1265b2('0x2342')]]);}let _0x11886a=!![],_0x1efe1f=0x1;_0x11ab1c['$watch'](_0x59104a('0x842'),function(_0xf9190d,_0x414453){const _0x3febb2=_0x59104a;_0x11886a?_0x53134e(function(){_0x11886a=![];}):(!_0x414453&&(_0x1efe1f=_0x1fe2ee[_0x3febb2('0x1f2a')][_0x3febb2('0x1c2')]),_0xf9190d!==_0x414453&&(_0x1fe2ee[_0x3febb2('0x1f2a')][_0x3febb2('0x1c2')]=0x1),!_0xf9190d&&(_0x1fe2ee[_0x3febb2('0x1f2a')][_0x3febb2('0x1c2')]=_0x1efe1f),_0x1fe2ee[_0x3febb2('0x373')]());});function _0x3421bd(_0xd82045){const _0x72a0ac=_0x59104a;_0x1fe2ee['count']=_0xd82045['count'],_0x1fe2ee[_0x72a0ac('0x1de3')]=_0xd82045?_0x36f548()[_0x72a0ac('0x2130')](_0xd82045['rows']?_0xd82045[_0x72a0ac('0x19b2')]:[],'id'):{};if(_0xd82045[_0x72a0ac('0x19b2')]){_0x1fe2ee[_0x72a0ac('0x59')]=[];for(let _0x3238ca=0x0;_0x3238ca<_0xd82045[_0x72a0ac('0x19b2')]['length'];_0x3238ca++){_0x1fe2ee['order'][_0x72a0ac('0x105d')](_0xd82045[_0x72a0ac('0x19b2')][_0x3238ca]['id']);}}_0x356cc1();}function _0x15ae08(){const _0x2b9370=_0x59104a;_0x1fe2ee[_0x2b9370('0x1f2a')][_0x2b9370('0x1393')]=(_0x1fe2ee[_0x2b9370('0x1f2a')][_0x2b9370('0x1c2')]-0x1)*_0x1fe2ee[_0x2b9370('0x1f2a')][_0x2b9370('0xd5c')],_0x5ee02b[_0x2b9370('0x4ee')]('admin')?_0x1fe2ee['promise']=_0x2771de[_0x2b9370('0x1043')][_0x2b9370('0xbaa')](_0x1fe2ee[_0x2b9370('0x1f2a')],_0x3421bd)[_0x2b9370('0x1549')]:(_0x1fe2ee['query']['id']=_0x1fe2ee[_0x2b9370('0x25bc')]['id'],_0x1fe2ee[_0x2b9370('0x1f2a')][_0x2b9370('0xe6')]=_0x2b9370('0x1e95'),_0x1fe2ee['promise']=_0x2771de[_0x2b9370('0x25bc')]['getResources'](_0x1fe2ee[_0x2b9370('0x1f2a')],_0x3421bd)[_0x2b9370('0x1549')]);}function _0x39f2ef(_0x5d4c86,_0x56dee7){const _0x3b967c=_0x59104a;_0xd9149e[_0x3b967c('0xb9')]({'controller':_0x3b967c('0xf41'),'controllerAs':'vm','templateUrl':_0x3cea48,'parent':angular['element'](_0x3fea0e[_0x3b967c('0x1d2')]),'targetEvent':_0x5d4c86,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x56dee7,'queueCampaigns':_0x36f548()[_0x3b967c('0x1643')](_0x1fe2ee[_0x3b967c('0x1de3')]),'license':null,'setting':null,'crudPermissions':_0x1fe2ee[_0x3b967c('0xb25')]}});}function _0x2bfb66(_0x23e5aa,_0xeda447){const _0x43910c=_0x59104a;_0xd9149e[_0x43910c('0xb9')]({'controller':_0x43910c('0x13cc'),'controllerAs':'vm','templateUrl':_0xa42157,'parent':angular[_0x43910c('0x1e73')](_0x3fea0e[_0x43910c('0x1d2')]),'targetEvent':_0x23e5aa,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0xeda447}});}function _0x3f464d(_0x156cdd,_0x53eb4a){const _0x3d4a13=_0x59104a;_0xd9149e[_0x3d4a13('0xb9')]({'controller':_0x3d4a13('0x188e'),'controllerAs':'vm','templateUrl':_0xefff11,'parent':angular[_0x3d4a13('0x1e73')](_0x3fea0e[_0x3d4a13('0x1d2')]),'targetEvent':_0x156cdd,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x53eb4a,'queueCampaigns':_0x1fe2ee['queues']?_0x1fe2ee['queues'][_0x3d4a13('0x19b2')]:[],'realtime':!![],'crudPermissions':_0x1fe2ee[_0x3d4a13('0xb25')]}});}function _0x29d60f(_0x566f1d){const _0x54d8db=_0x59104a;return _0x2771de[_0x54d8db('0x1043')]['update'](_0x566f1d)['$promise'][_0x54d8db('0x11bf')](function(){const _0x40918a=_0x54d8db;_0x3953ab[_0x40918a('0x2693')]({'title':_0x40918a('0x1544'),'msg':_0x566f1d[_0x40918a('0x1909')]?_0x566f1d[_0x40918a('0x1909')]+_0x40918a('0xd7'):''});})[_0x54d8db('0x151d')](function(_0x1f7a2c){const _0x221aae=_0x54d8db;_0x3953ab[_0x221aae('0x255')]({'title':_0x221aae('0xdc1'),'msg':_0x1f7a2c[_0x221aae('0x1b86')]});});}_0x11ab1c[_0x59104a('0x12d8')](_0x59104a('0x4f7'),function(){const _0x393c55=_0x59104a;_0x1b7763['removeAllListeners']('voice_queue:save'),_0x1fe2ee[_0x393c55('0x507')]&&_0x3885d5['cancel'](_0x1fe2ee[_0x393c55('0x507')]),_0x1b7763['removeAllListeners'](_0x393c55('0x2026')),_0x1b7763[_0x393c55('0x1b2e')](_0x393c55('0x15bd')),_0x1b7763[_0x393c55('0x1b2e')](_0x393c55('0x5c6')),_0x1b7763['removeAllListeners'](_0x393c55('0x1929'));});}const _0x41fd9f=_0x2e805e;_0xb31abf[_0x21d0f5('0x1e9a')]=['$mdDialog','$interval',_0x21d0f5('0xf08')];function _0xb31abf(_0x3c3926,_0x5461f8,_0x499ba4){const _0x2316eb=_0x21d0f5,_0x5b319c=this;_0x5b319c[_0x2316eb('0xf08')]=_0x499ba4,_0x5b319c['addMinutes']=_0x21676b,_0x5b319c['setFormatTime']=_0x5d97b2,_0x5b319c[_0x2316eb('0xc4e')]=_0x383e02;function _0x21676b(_0x350a28,_0x1fda35){const _0x362805=_0x2316eb;return _0x57d4d1()(_0x350a28)[_0x362805('0x23c1')]('m',_0x1fda35)[_0x362805('0x1826')](_0x362805('0x7f7'));}function _0x5d97b2(_0x37a0af){const _0x377167=_0x2316eb;return _0x57d4d1()(_0x37a0af)[_0x377167('0x1826')]('HH:mm:ss');}function _0x383e02(){const _0x368e9c=_0x2316eb;_0x3c3926[_0x368e9c('0x237e')]();}}const _0x3fbafe=_0xb31abf;function _0x4ade10(){const _0x3207f8=_0x21d0f5;return{'status':{'registered':_0x3207f8('0x2747'),'unregistered':_0x3207f8('0x58e'),'lagged':'red-300-fg\x20icon-close-circle','reachable':_0x3207f8('0x2747'),'unreachable':_0x3207f8('0x58e'),'unknown':_0x3207f8('0xcc')},'state':{'unknown':_0x3207f8('0x95b'),'not_inuse':_0x3207f8('0x8b2'),'inuse':_0x3207f8('0x52b'),'busy':'red-300-fg\x20icon-phone-locked','invalid':_0x3207f8('0x95b'),'unavailable':_0x3207f8('0x95b'),'ringing':_0x3207f8('0x1df'),'ringinuse':_0x3207f8('0x1df'),'onhold':_0x3207f8('0x142a')},'channelStatus':{'ring':_0x3207f8('0x1df'),'up':'green-300-fg\x20icon-phone-in-talk','hangup':'red-300-fg\x20icon-phone-hangup'},'channelStatusOut':{'ring':'blue-300-fg\x20icon-phone-outgoing','up':_0x3207f8('0x198'),'hangup':'red-300-fg\x20icon-phone-hangup'}};}const _0x3f099c=_0x4ade10;_0x101d23[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0xcbc'),_0x21d0f5('0x1d56')];function _0x101d23(_0x2086b1,_0x1d436a,_0x59be7d){const _0x2337ac=_0x21d0f5,_0x289dc8=this;_0x59be7d['disconnect'](),_0x59be7d[_0x2337ac('0x196c')](),_0x289dc8[_0x2337ac('0x1179')]=0x0;switch(_0x1d436a[_0x2337ac('0x191')]['name']){case _0x2337ac('0x19ce'):_0x289dc8['selectedTab']=0x0;break;case _0x2337ac('0x1fd4'):_0x289dc8[_0x2337ac('0x1179')]=0x1;break;case _0x2337ac('0x1b9b'):_0x289dc8['selectedTab']=0x2;break;case _0x2337ac('0x1776'):_0x289dc8[_0x2337ac('0x1179')]=0x3;break;case _0x2337ac('0xf3d'):_0x289dc8[_0x2337ac('0x1179')]=0x4;break;case _0x2337ac('0x26d9'):_0x289dc8[_0x2337ac('0x1179')]=0x5;break;default:_0x289dc8[_0x2337ac('0x1179')]=0x0,_0x1d436a['go'](_0x2337ac('0x19ce'));}_0x2086b1[_0x2337ac('0x2087')]('vm.selectedTab',function(_0xc51f65,_0x4f2d56){const _0x281ea2=_0x2337ac;if(_0xc51f65!==_0x4f2d56)switch(_0xc51f65){case 0x0:_0x1d436a['go'](_0x281ea2('0x19ce'));break;case 0x1:_0x1d436a['go'](_0x281ea2('0x1fd4'));break;case 0x2:_0x1d436a['go'](_0x281ea2('0x1b9b'));break;case 0x3:_0x1d436a['go'](_0x281ea2('0x1776'));break;case 0x4:_0x1d436a['go'](_0x281ea2('0xf3d'));break;case 0x5:_0x1d436a['go']('app.motiondialer.realtime.ivr_campaigns');break;default:_0x1d436a['go'](_0x281ea2('0x19ce'));}});}const _0x366f61=_0x101d23;_0x581b69[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x13d6')];function _0x581b69(_0x3c6e09){const _0x519a83=_0x21d0f5;_0x3c6e09[_0x519a83('0x2124')](_0x519a83('0x10a3'),{'url':_0x519a83('0x25aa'),'views':{'content@app':{'templateUrl':_0x4fb54b,'controller':_0x519a83('0x79b')}},'resolve':{'userProfile':['apiResolver',_0x519a83('0x1150'),function(_0x5ca912,_0x21127d){const _0x3adcaa=_0x519a83;return _0x21127d[_0x3adcaa('0x4ee')]('admin')?null:_0x5ca912[_0x3adcaa('0xa28')]('userProfile@get',{'fields':_0x3adcaa('0xd30'),'id':_0x21127d[_0x3adcaa('0x2428')]()['userProfileId']});}],'userProfileSection':[_0x519a83('0x218e'),_0x519a83('0x1150'),function(_0x6a75f1,_0x593b9c){const _0x5298e2=_0x519a83;return _0x593b9c[_0x5298e2('0x4ee')](_0x5298e2('0xf45'))?null:_0x6a75f1[_0x5298e2('0xa28')](_0x5298e2('0x2762'),{'fields':_0x5298e2('0x36d'),'userProfileId':_0x593b9c[_0x5298e2('0x2428')]()[_0x5298e2('0x781')],'sectionId':0x5e6});}]},'authenticate':!![],'permissionId':0x5e6})[_0x519a83('0x2124')](_0x519a83('0x19ce'),{'url':_0x519a83('0x2260'),'controller':'AgentsMotionDialerRealtimeController\x20as\x20vm','templateUrl':_0x375178,'resolve':{'pauses':[_0x519a83('0x218e'),function(_0x4ba598){const _0x1ccf11=_0x519a83;return _0x4ba598[_0x1ccf11('0xa28')](_0x1ccf11('0x2178'),{'nolimit':!![]});}],'agents':[_0x519a83('0x218e'),'Auth',function(_0x35d853,_0x4bf35f){const _0x3a08f6=_0x519a83;return _0x4bf35f['hasRole']('admin')?_0x35d853[_0x3a08f6('0xa28')](_0x3a08f6('0x2166'),{'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':_0x3a08f6('0x27af'),'nolimit':!![]}):_0x35d853[_0x3a08f6('0xa28')](_0x3a08f6('0xb0d'),{'id':_0x4bf35f['getCurrentUser']()['userProfileId'],'section':_0x3a08f6('0x4b1'),'fields':_0x3a08f6('0xd80'),'role':_0x3a08f6('0x18c4'),'sort':_0x3a08f6('0x27af'),'nolimit':!![]});}],'userProfile':[_0x519a83('0x218e'),'Auth',function(_0x405324,_0x657bfd){const _0x33f412=_0x519a83;return _0x657bfd[_0x33f412('0x4ee')]('admin')?null:_0x405324[_0x33f412('0xa28')](_0x33f412('0x428'),{'fields':_0x33f412('0xd30'),'id':_0x657bfd[_0x33f412('0x2428')]()[_0x33f412('0x781')]});}],'userProfileSection':[_0x519a83('0x218e'),_0x519a83('0x1150'),function(_0x2ea024,_0x5c28e3){const _0x1cc826=_0x519a83;return _0x5c28e3[_0x1cc826('0x4ee')](_0x1cc826('0xf45'))?null:_0x2ea024['resolve'](_0x1cc826('0x2762'),{'fields':_0x1cc826('0x36d'),'userProfileId':_0x5c28e3['getCurrentUser']()[_0x1cc826('0x781')],'sectionId':0xca});}],'rpcAgents':['apiResolver',function(_0x4fd35a){return _0x4fd35a['resolve']('rpc@getAgents');}]},'authenticate':!![],'permissionId':0x5e6})['state'](_0x519a83('0x1fd4'),{'url':_0x519a83('0xb98'),'controller':_0x519a83('0x1ba'),'templateUrl':_0x35398b,'resolve':{'queues':[_0x519a83('0x218e'),'Auth',function(_0x5b1d48,_0x18ec19){const _0x52398f=_0x519a83;return _0x18ec19[_0x52398f('0x4ee')](_0x52398f('0xf45'))?_0x5b1d48[_0x52398f('0xa28')](_0x52398f('0x987'),{'type':_0x52398f('0x25b6'),'sort':_0x52398f('0x1c74'),'limit':0xa,'offset':0x0}):_0x5b1d48[_0x52398f('0xa28')](_0x52398f('0xb0d'),{'id':_0x18ec19[_0x52398f('0x2428')]()[_0x52398f('0x781')],'section':_0x52398f('0x1e95'),'channel':'voice','type':_0x52398f('0x25b6'),'sort':'-updatedAt','limit':0xa,'page':0x1});}],'userProfile':[_0x519a83('0x218e'),_0x519a83('0x1150'),function(_0x119fad,_0x507b1a){const _0xd36c11=_0x519a83;return _0x507b1a['hasRole'](_0xd36c11('0xf45'))?null:_0x119fad[_0xd36c11('0xa28')](_0xd36c11('0x428'),{'fields':_0xd36c11('0xd30'),'id':_0x507b1a['getCurrentUser']()['userProfileId']});}],'userProfileSection':['apiResolver',_0x519a83('0x1150'),function(_0x2ed4fc,_0x179d61){const _0x9afbbd=_0x519a83;return _0x179d61['hasRole'](_0x9afbbd('0xf45'))?null:_0x2ed4fc[_0x9afbbd('0xa28')]('userProfileSection@get',{'fields':_0x9afbbd('0x36d'),'userProfileId':_0x179d61[_0x9afbbd('0x2428')]()[_0x9afbbd('0x781')],'sectionId':0x5dd});}],'rpcQueues':[_0x519a83('0x218e'),function(_0x35d644){return _0x35d644['resolve']('rpc@getVoiceQueues');}]},'authenticate':!![],'permissionId':0x5e6})['state']('app.motiondialer.realtime.queue_calls',{'url':_0x519a83('0x1c71'),'controller':_0x519a83('0x2331'),'templateUrl':_0x194cb0,'resolve':{'agents':[_0x519a83('0x218e'),_0x519a83('0x1150'),function(_0x202bd7,_0x2bb490){const _0x5ef633=_0x519a83;return _0x2bb490[_0x5ef633('0x4ee')](_0x5ef633('0xf45'))?_0x202bd7[_0x5ef633('0xa28')](_0x5ef633('0x2166'),{'fields':_0x5ef633('0xe6c'),'role':'agent','nolimit':!![]}):_0x202bd7[_0x5ef633('0xa28')](_0x5ef633('0xb0d'),{'id':_0x2bb490['getCurrentUser']()[_0x5ef633('0x781')],'section':_0x5ef633('0x4b1'),'fields':_0x5ef633('0xe6c'),'role':_0x5ef633('0x18c4'),'nolimit':!![]});}],'queues':['apiResolver',_0x519a83('0x1150'),function(_0x8022cc,_0x1a071d){const _0x2dd809=_0x519a83;return _0x1a071d[_0x2dd809('0x4ee')]('admin')?_0x8022cc[_0x2dd809('0xa28')](_0x2dd809('0x987'),{'type':_0x2dd809('0x25b6'),'sort':_0x2dd809('0x1c74'),'nolimit':!![]}):_0x8022cc[_0x2dd809('0xa28')](_0x2dd809('0xb0d'),{'id':_0x1a071d['getCurrentUser']()[_0x2dd809('0x781')],'section':_0x2dd809('0x1e95'),'channel':_0x2dd809('0x1bc3'),'type':_0x2dd809('0x25b6'),'sort':_0x2dd809('0x1c74'),'nolimit':!![]});}],'userProfile':['apiResolver',_0x519a83('0x1150'),function(_0x216378,_0x25e3b2){const _0x549bdb=_0x519a83;return _0x25e3b2['hasRole']('admin')?null:_0x216378[_0x549bdb('0xa28')](_0x549bdb('0x428'),{'fields':_0x549bdb('0xd30'),'id':_0x25e3b2[_0x549bdb('0x2428')]()['userProfileId']});}],'userProfileSection':['apiResolver',_0x519a83('0x1150'),function(_0x2fe027,_0x6b98f0){const _0x5188c0=_0x519a83;return _0x6b98f0[_0x5188c0('0x4ee')](_0x5188c0('0xf45'))?null:_0x2fe027[_0x5188c0('0xa28')]('userProfileSection@get',{'fields':_0x5188c0('0x36d'),'userProfileId':_0x6b98f0[_0x5188c0('0x2428')]()[_0x5188c0('0x781')],'sectionId':0x5dd});}],'rpcVoiceQueuesChannels':[_0x519a83('0x218e'),function(_0x21d759){const _0x133baf=_0x519a83;return _0x21d759[_0x133baf('0xa28')](_0x133baf('0x20fb'));}]},'authenticate':!![],'permissionId':0x5e6})[_0x519a83('0x2124')]('app.motiondialer.realtime.abandonedcalls',{'url':'/abandonedcalls','controller':_0x519a83('0x1791'),'templateUrl':_0x571ccf,'resolve':{'agents':[_0x519a83('0x218e'),_0x519a83('0x1150'),function(_0x5c108d,_0x59d341){const _0x58ba4d=_0x519a83;return _0x59d341[_0x58ba4d('0x4ee')]('admin')?_0x5c108d[_0x58ba4d('0xa28')](_0x58ba4d('0x2166'),{'fields':_0x58ba4d('0xe6c'),'role':_0x58ba4d('0x18c4'),'nolimit':!![]}):_0x5c108d[_0x58ba4d('0xa28')](_0x58ba4d('0xb0d'),{'id':_0x59d341[_0x58ba4d('0x2428')]()[_0x58ba4d('0x781')],'section':_0x58ba4d('0x4b1'),'fields':'id,name,role,context','role':_0x58ba4d('0x18c4'),'nolimit':!![]});}],'queues':[_0x519a83('0x218e'),'Auth',function(_0x13631d,_0x39dba0){const _0x1088c9=_0x519a83;return _0x39dba0[_0x1088c9('0x4ee')](_0x1088c9('0xf45'))?_0x13631d[_0x1088c9('0xa28')]('voiceQueue@get',{'type':'outbound','sort':'-updatedAt','nolimit':!![]}):_0x13631d[_0x1088c9('0xa28')](_0x1088c9('0xb0d'),{'id':_0x39dba0[_0x1088c9('0x2428')]()['userProfileId'],'section':_0x1088c9('0x1e95'),'channel':_0x1088c9('0x1bc3'),'type':_0x1088c9('0x25b6'),'sort':_0x1088c9('0x1c74'),'nolimit':!![]});}],'dispositions':[_0x519a83('0x218e'),'Auth',function(_0x5ddaca,_0x377182){const _0x4df00f=_0x519a83;return _0x377182[_0x4df00f('0x4ee')]('admin')?_0x5ddaca['resolve'](_0x4df00f('0x24a5'),{'fields':_0x4df00f('0x1dd5'),'sort':_0x4df00f('0x1c74'),'MailAccountId':_0x4df00f('0xb5f'),'FaxAccountId':_0x4df00f('0xb5f'),'SmsAccountId':_0x4df00f('0xb5f'),'WhatsappAccountId':'null','OpenchannelAccountId':_0x4df00f('0xb5f'),'ChatWebsiteId':_0x4df00f('0xb5f'),'ListId':'null','nolimit':!![]}):_0x5ddaca['resolve'](_0x4df00f('0xb0d'),{'id':_0x377182['getCurrentUser']()[_0x4df00f('0x781')],'section':_0x4df00f('0xc76'),'fields':'createdAt,updatedAt,id,name','sort':_0x4df00f('0x1c74'),'MailAccountId':'null','FaxAccountId':_0x4df00f('0xb5f'),'SmsAccountId':_0x4df00f('0xb5f'),'WhatsappAccountId':_0x4df00f('0xb5f'),'OpenchannelAccountId':'null','ChatWebsiteId':_0x4df00f('0xb5f'),'ListId':_0x4df00f('0xb5f'),'nolimit':!![]});}],'userProfile':[_0x519a83('0x218e'),_0x519a83('0x1150'),function(_0x3cc1da,_0x592e8e){const _0x49283e=_0x519a83;return _0x592e8e['hasRole'](_0x49283e('0xf45'))?null:_0x3cc1da[_0x49283e('0xa28')](_0x49283e('0x428'),{'fields':_0x49283e('0xd30'),'id':_0x592e8e['getCurrentUser']()[_0x49283e('0x781')]});}],'userProfileSection':[_0x519a83('0x218e'),_0x519a83('0x1150'),function(_0x12fd5c,_0x3dbda3){const _0x2dbc5d=_0x519a83;return _0x3dbda3['hasRole']('admin')?null:_0x12fd5c[_0x2dbc5d('0xa28')](_0x2dbc5d('0x2762'),{'fields':_0x2dbc5d('0x36d'),'userProfileId':_0x3dbda3[_0x2dbc5d('0x2428')]()[_0x2dbc5d('0x781')],'sectionId':0x5dd});}]},'authenticate':!![],'permissionId':0x5e6})[_0x519a83('0x2124')]('app.motiondialer.realtime.queue_params',{'url':_0x519a83('0x11a6'),'controller':_0x519a83('0xbee'),'templateUrl':_0x47edd6,'resolve':{'queues':['apiResolver',_0x519a83('0x1150'),function(_0x1539f5,_0x1a8772){const _0x49d9dd=_0x519a83;return _0x1a8772[_0x49d9dd('0x4ee')](_0x49d9dd('0xf45'))?_0x1539f5[_0x49d9dd('0xa28')](_0x49d9dd('0x987'),{'type':_0x49d9dd('0x25b6'),'fields':_0x49d9dd('0x721'),'sort':_0x49d9dd('0x1c74'),'limit':0xa,'offset':0x0}):_0x1539f5[_0x49d9dd('0xa28')](_0x49d9dd('0xb0d'),{'id':_0x1a8772[_0x49d9dd('0x2428')]()[_0x49d9dd('0x781')],'section':_0x49d9dd('0x1e95'),'channel':_0x49d9dd('0x1bc3'),'type':_0x49d9dd('0x25b6'),'sort':'-updatedAt','nolimit':!![]});}],'userProfile':[_0x519a83('0x218e'),_0x519a83('0x1150'),function(_0x3c44d6,_0xd5a450){const _0x243af0=_0x519a83;return _0xd5a450[_0x243af0('0x4ee')]('admin')?null:_0x3c44d6[_0x243af0('0xa28')](_0x243af0('0x428'),{'fields':_0x243af0('0xd30'),'id':_0xd5a450[_0x243af0('0x2428')]()[_0x243af0('0x781')]});}],'userProfileSection':['apiResolver',_0x519a83('0x1150'),function(_0xa794f3,_0x2e90fb){const _0x3a308c=_0x519a83;return _0x2e90fb[_0x3a308c('0x4ee')](_0x3a308c('0xf45'))?null:_0xa794f3[_0x3a308c('0xa28')]('userProfileSection@get',{'fields':_0x3a308c('0x36d'),'userProfileId':_0x2e90fb['getCurrentUser']()[_0x3a308c('0x781')],'sectionId':0x5dd});}],'rpcQueues':[_0x519a83('0x218e'),function(_0x360fd3){const _0x162bac=_0x519a83;return _0x360fd3[_0x162bac('0xa28')]('rpc@getVoiceQueues');}]},'authenticate':!![],'permissionId':0x5e6})[_0x519a83('0x2124')](_0x519a83('0x26d9'),{'url':_0x519a83('0x11e3'),'controller':'IvrCampaignsMotionDialerRealtimeController\x20as\x20vm','templateUrl':_0x2ed71b,'resolve':{'campaigns':[_0x519a83('0x218e'),_0x519a83('0x1150'),function(_0x566f85,_0x56076c){const _0x85f02d=_0x519a83;return _0x56076c[_0x85f02d('0x4ee')](_0x85f02d('0xf45'))?_0x566f85[_0x85f02d('0xa28')](_0x85f02d('0x112a'),{'sort':_0x85f02d('0x1c74'),'limit':0xa,'offset':0x0}):_0x566f85['resolve'](_0x85f02d('0xb0d'),{'id':_0x56076c[_0x85f02d('0x2428')]()['userProfileId'],'section':_0x85f02d('0xec'),'sort':_0x85f02d('0x1c74'),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x519a83('0x1150'),function(_0x1aca37,_0x220007){const _0x29a003=_0x519a83;return _0x220007['hasRole']('admin')?null:_0x1aca37[_0x29a003('0xa28')](_0x29a003('0x428'),{'fields':_0x29a003('0xd30'),'id':_0x220007['getCurrentUser']()[_0x29a003('0x781')]});}],'userProfileSection':[_0x519a83('0x218e'),_0x519a83('0x1150'),function(_0x1f9b1f,_0x27603b){const _0x23e33d=_0x519a83;return _0x27603b['hasRole'](_0x23e33d('0xf45'))?null:_0x1f9b1f[_0x23e33d('0xa28')](_0x23e33d('0x2762'),{'fields':_0x23e33d('0x36d'),'userProfileId':_0x27603b[_0x23e33d('0x2428')]()[_0x23e33d('0x781')],'sectionId':0x5de});}],'rpcCampaigns':['apiResolver',function(_0x26b50b){const _0x561370=_0x519a83;return _0x26b50b['resolve'](_0x561370('0x1c59'));}]},'authenticate':!![],'permissionId':0x5e6});}angular[_0x21d0f5('0x2768')]('app.motiondialer.realtime',[])[_0x21d0f5('0x53a')](_0x581b69)[_0x21d0f5('0x23eb')](_0x21d0f5('0x425'),_0x31bbb5)[_0x21d0f5('0x23eb')](_0x21d0f5('0x143d'),_0x73ce3b)['controller'](_0x21d0f5('0x382'),_0x222ac9)[_0x21d0f5('0x23eb')]('QueueCallsMotionDialerRealtimeController',_0x5f09ba)[_0x21d0f5('0x23eb')](_0x21d0f5('0x2027'),_0x1b942b)[_0x21d0f5('0x23eb')]('QueuesMotionDialerRealtimeController',_0x41fd9f)[_0x21d0f5('0x23eb')]('PredictiveQueueCampaignDialogController',_0x3fbafe)[_0x21d0f5('0x2729')]('helperClasses',_0x3f099c)['controller']('MotionDialerRealtimeController',_0x366f61);const _0x1cfe37=_0x351988['p']+_0x21d0f5('0x1cc6'),_0x354e8d=_0x351988['p']+_0x21d0f5('0x1b26'),_0x131b45=_0x351988['p']+_0x21d0f5('0x1417'),_0x31d8de=_0x351988['p']+'src/js/modules/main/apps/motiondialer/views/ivrCampaigns/edit/view.html/view.html';_0x4681ad['$inject']=[_0x21d0f5('0x1b80'),_0x21d0f5('0xcbc'),_0x21d0f5('0x16b9'),_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0xb6b'),_0x21d0f5('0x142d'),_0x21d0f5('0x1e48'),_0x21d0f5('0x13fa'),'api',_0x21d0f5('0x1150'),'license','setting',_0x21d0f5('0xb25')];function _0x4681ad(_0x51ea87,_0x179b2f,_0x310b9a,_0x30023b,_0x3563f1,_0x2c30d1,_0x3c3176,_0x43458b,_0x4c3b83,_0x3ad0c8,_0x42234a,_0x29c184,_0x5b3671,_0xec91ac){const _0x2cc98d=_0x21d0f5,_0x2ebfbb=this;_0x2ebfbb[_0x2cc98d('0x32a')]=_0x42234a[_0x2cc98d('0x2428')](),_0x2ebfbb[_0x2cc98d('0x120f')]=[],_0x2ebfbb['setting']=_0x5b3671,_0x2ebfbb[_0x2cc98d('0x17ff')]=_0x29c184,_0x2ebfbb['crudPermissions']=_0xec91ac,_0x2ebfbb[_0x2cc98d('0x2c9')]={},_0x2ebfbb[_0x2cc98d('0x2834')]=_0x2ebfbb[_0x2cc98d('0x23e1')]&&_0x2ebfbb[_0x2cc98d('0x23e1')][_0x2cc98d('0x1d4')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2ebfbb[_0x2cc98d('0x134b')]=_0x2cc98d('0x7cd'),_0x2ebfbb[_0x2cc98d('0x13fa')]=angular[_0x2cc98d('0x6fb')](_0x4c3b83),_0x2ebfbb[_0x2cc98d('0x1e48')]=_0x43458b,_0x2ebfbb[_0x2cc98d('0x26bf')]=![];!_0x2ebfbb[_0x2cc98d('0x13fa')]&&(_0x2ebfbb[_0x2cc98d('0x13fa')]={'active':!![],'type':_0x2cc98d('0x1316'),'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':_0x2cc98d('0x170a'),'dialGlobalInterval':_0x2cc98d('0x1519'),'dialAMDInitialSilence':0x9c4,'dialAMDGreeting':0x5dc,'dialAMDAfterGreetingSilence':0x320,'dialAMDTotalAnalysisTime':0x1388,'dialAMDMinWordLength':0x64,'dialAMDBetweenWordsSilence':0x32,'dialAMDMaximumNumberOfWords':0x3,'dialAMDSilenceThreshold':0x100,'dialAMDMaximumWordLength':0x1388},_0x2ebfbb[_0x2cc98d('0x134b')]=_0x2cc98d('0xbe1'),_0x2ebfbb[_0x2cc98d('0x26bf')]=!![]);_0x2ebfbb[_0x2cc98d('0x19e0')]=_0x2a05ab,_0x2ebfbb['saveIvrCampaign']=_0x53c427,_0x2ebfbb[_0x2cc98d('0x1a0e')]=_0x212507,_0x2ebfbb[_0x2cc98d('0x1bd1')]=_0x1f6d1c,_0x2ebfbb[_0x2cc98d('0xc4e')]=_0x21fa4d,_0x42234a[_0x2cc98d('0x4ee')](_0x2cc98d('0xf45'))?_0x3ad0c8['trunk'][_0x2cc98d('0xbaa')]({'fields':_0x2cc98d('0x721'),'sort':_0x2cc98d('0x1909'),'table':'true'})[_0x2cc98d('0x1549')]['then'](function(_0x8b5820){_0x2ebfbb['trunks']=_0x8b5820['rows']||[];})[_0x2cc98d('0x151d')](function(_0x318666){const _0x4e30a6=_0x2cc98d;_0x3c3176[_0x4e30a6('0x255')]({'title':_0x318666['status']?_0x4e30a6('0x574')+_0x318666[_0x4e30a6('0xff9')]+_0x4e30a6('0xb0b')+_0x318666[_0x4e30a6('0x212f')]:_0x4e30a6('0x35f'),'msg':_0x318666['data']?JSON[_0x4e30a6('0x3e')](_0x318666['data']):_0x318666[_0x4e30a6('0xaab')]()});}):_0x3ad0c8[_0x2cc98d('0x264e')]['get']({'fields':_0x2cc98d('0x721'),'sort':_0x2cc98d('0x1909'),'table':_0x2cc98d('0x204c')})[_0x2cc98d('0x1549')][_0x2cc98d('0x11bf')](function(_0xce29e3){const _0x4d9102=_0x2cc98d;_0x2ebfbb[_0x4d9102('0x1b24')]=_0xce29e3[_0x4d9102('0x19b2')]||[];})[_0x2cc98d('0x11bf')](function(){const _0x219987=_0x2cc98d;return _0x3ad0c8[_0x219987('0x1d63')]['get']({'userProfileId':_0x2ebfbb['currentUser'][_0x219987('0x781')],'sectionId':0x3f3})[_0x219987('0x1549')];})[_0x2cc98d('0x11bf')](function(_0x832c67){const _0x2ca293=_0x2cc98d,_0x4d2c07=_0x832c67&&_0x832c67[_0x2ca293('0x19b2')]?_0x832c67[_0x2ca293('0x19b2')][0x0]:null;if(!_0x4d2c07)_0x2ebfbb[_0x2ca293('0x1b24')]=[];else{if(!_0x4d2c07[_0x2ca293('0xf11')])return _0x3ad0c8['userProfileResource'][_0x2ca293('0xbaa')]({'sectionId':_0x4d2c07['id']})[_0x2ca293('0x1549')][_0x2ca293('0x11bf')](function(_0x11d75f){const _0x20dcd2=_0x2ca293,_0x3872c4=_0x36f548()[_0x20dcd2('0x2171')](_0x11d75f[_0x20dcd2('0x19b2')],function(_0x139fa6){const _0x2c590f=_0x20dcd2;return _0x36f548()[_0x2c590f('0x1ad4')](_0x2ebfbb[_0x2c590f('0x1b24')],{'id':_0x139fa6[_0x2c590f('0x15a5')]});});_0x2ebfbb[_0x20dcd2('0x1b24')]['forEach'](function(_0x3afe7a){const _0x5431fb=_0x20dcd2;!_0x36f548()[_0x5431fb('0x1cb3')](_0x3872c4,['id',_0x3afe7a['id']])&&(_0x3afe7a[_0x5431fb('0x254a')]=![]),_0x3872c4[_0x5431fb('0x105d')](_0x3afe7a);}),_0x2ebfbb['trunks']=_0x3872c4;});}})['catch'](function(_0x3ca620){const _0x4a6889=_0x2cc98d;_0x3c3176[_0x4a6889('0x255')]({'title':_0x3ca620[_0x4a6889('0xff9')]?_0x4a6889('0x574')+_0x3ca620[_0x4a6889('0xff9')]+_0x4a6889('0xb0b')+_0x3ca620[_0x4a6889('0x212f')]:_0x4a6889('0xf39'),'msg':_0x3ca620[_0x4a6889('0x4e8')]?JSON[_0x4a6889('0x3e')](_0x3ca620[_0x4a6889('0x4e8')]):_0x3ca620[_0x4a6889('0xaab')]()});}),_0x42234a[_0x2cc98d('0x4ee')](_0x2cc98d('0xf45'))?_0x3ad0c8[_0x2cc98d('0x1671')]['get']({'fields':_0x2cc98d('0x721'),'sort':'name'})['$promise']['then'](function(_0x4837d5){const _0x339265=_0x2cc98d;_0x2ebfbb[_0x339265('0xa62')]=_0x4837d5[_0x339265('0x19b2')]||[];})['catch'](function(_0x151d83){const _0x41ba03=_0x2cc98d;_0x3c3176['error']({'title':_0x151d83[_0x41ba03('0xff9')]?_0x41ba03('0x574')+_0x151d83[_0x41ba03('0xff9')]+_0x41ba03('0xb0b')+_0x151d83[_0x41ba03('0x212f')]:'SYSTEM:GET_PROJECTS','msg':_0x151d83[_0x41ba03('0x4e8')]?JSON[_0x41ba03('0x3e')](_0x151d83['data']):_0x151d83[_0x41ba03('0xaab')]()});}):_0x3ad0c8[_0x2cc98d('0x1671')][_0x2cc98d('0xbaa')]({'fields':_0x2cc98d('0x721'),'sort':_0x2cc98d('0x1909')})['$promise'][_0x2cc98d('0x11bf')](function(_0x198c7f){const _0x5f5b62=_0x2cc98d;_0x2ebfbb['projects']=_0x198c7f[_0x5f5b62('0x19b2')]||[];})[_0x2cc98d('0x11bf')](function(){const _0x41565c=_0x2cc98d;return _0x3ad0c8[_0x41565c('0x1d63')][_0x41565c('0xbaa')]({'userProfileId':_0x2ebfbb[_0x41565c('0x32a')][_0x41565c('0x781')],'sectionId':0x44f})['$promise'];})[_0x2cc98d('0x11bf')](function(_0x3a2435){const _0x41e14a=_0x2cc98d,_0x4b8571=_0x3a2435&&_0x3a2435[_0x41e14a('0x19b2')]?_0x3a2435[_0x41e14a('0x19b2')][0x0]:null;if(!_0x4b8571){const _0x5be651=[];let _0x205e6b=null;_0x2ebfbb[_0x41e14a('0x13fa')]&&(_0x205e6b=_0x36f548()[_0x41e14a('0x1ad4')](_0x2ebfbb[_0x41e14a('0xa62')],{'id':Number(_0x2ebfbb[_0x41e14a('0x13fa')]['SquareProjectId'])}));for(let _0x15e867=0x0;_0x15e867<_0x2ebfbb[_0x41e14a('0xa62')]['length'];_0x15e867++){_0x205e6b&&_0x2ebfbb['projects'][_0x15e867]['id']===_0x205e6b['id']&&(_0x2ebfbb['projects'][_0x15e867][_0x41e14a('0x254a')]=![],_0x5be651['push'](_0x2ebfbb[_0x41e14a('0xa62')][_0x15e867]));}_0x2ebfbb[_0x41e14a('0xa62')]=_0x5be651;}else{if(!_0x4b8571[_0x41e14a('0xf11')])return _0x3ad0c8['userProfileResource'][_0x41e14a('0xbaa')]({'sectionId':_0x4b8571['id']})['$promise']['then'](function(_0x2a6ca0){const _0x44136a=_0x41e14a,_0xb7e90=_0x36f548()[_0x44136a('0x2171')](_0x2a6ca0[_0x44136a('0x19b2')],function(_0x2afdcb){const _0x2b6f33=_0x44136a;return _0x36f548()['find'](_0x2ebfbb[_0x2b6f33('0xa62')],{'id':_0x2afdcb[_0x2b6f33('0x15a5')]});});let _0x279d3c=null;_0x2ebfbb[_0x44136a('0x13fa')]&&(_0x279d3c=_0x36f548()[_0x44136a('0x1ad4')](_0x2ebfbb['projects'],{'id':Number(_0x2ebfbb[_0x44136a('0x13fa')][_0x44136a('0x1cd6')])}));if(_0x279d3c&&!_0x36f548()['some'](_0xb7e90,['id',_0x279d3c['id']])){const _0x535c39=_0x36f548()[_0x44136a('0x1ad4')](_0x2ebfbb[_0x44136a('0xa62')],{'id':_0x279d3c['id']});_0x535c39['canSelect']=![],_0xb7e90[_0x44136a('0x105d')](_0x535c39);}_0x2ebfbb[_0x44136a('0xa62')]=_0xb7e90;});}})[_0x2cc98d('0x151d')](function(_0x348b89){const _0x1a37c5=_0x2cc98d;_0x3c3176[_0x1a37c5('0x255')]({'title':_0x348b89[_0x1a37c5('0xff9')]?_0x1a37c5('0x574')+_0x348b89[_0x1a37c5('0xff9')]+_0x1a37c5('0xb0b')+_0x348b89['statusText']:_0x1a37c5('0x1b27'),'msg':_0x348b89[_0x1a37c5('0x4e8')]?JSON[_0x1a37c5('0x3e')](_0x348b89[_0x1a37c5('0x4e8')]):_0x348b89[_0x1a37c5('0xaab')]()});}),_0x42234a[_0x2cc98d('0x4ee')]('admin')?_0x3ad0c8['interval'][_0x2cc98d('0xbaa')]({'fields':'id,name','sort':_0x2cc98d('0x1909'),'IntervalId':_0x2cc98d('0xb5f')})[_0x2cc98d('0x1549')]['then'](function(_0x5a722a){const _0x2dfaad=_0x2cc98d;_0x2ebfbb[_0x2dfaad('0x507')]=_0x5a722a['rows']||[];})['catch'](function(_0x452c0a){const _0x354004=_0x2cc98d;_0x3c3176[_0x354004('0x255')]({'title':_0x452c0a['status']?'API:'+_0x452c0a[_0x354004('0xff9')]+'\x20-\x20'+_0x452c0a[_0x354004('0x212f')]:_0x354004('0x135a'),'msg':_0x452c0a['data']?JSON[_0x354004('0x3e')](_0x452c0a['data']):_0x452c0a[_0x354004('0xaab')]()});}):_0x3ad0c8[_0x2cc98d('0x507')][_0x2cc98d('0xbaa')]({'fields':_0x2cc98d('0x721'),'sort':'name','IntervalId':_0x2cc98d('0xb5f')})[_0x2cc98d('0x1549')]['then'](function(_0x1b8e7b){const _0x293c98=_0x2cc98d;_0x2ebfbb[_0x293c98('0x507')]=_0x1b8e7b[_0x293c98('0x19b2')]||[];})[_0x2cc98d('0x11bf')](function(){const _0x3f4138=_0x2cc98d;return _0x3ad0c8[_0x3f4138('0x1d63')]['get']({'userProfileId':_0x2ebfbb[_0x3f4138('0x32a')][_0x3f4138('0x781')],'sectionId':0x3ec})['$promise'];})['then'](function(_0x50b33d){const _0x5086b4=_0x2cc98d,_0x5db333=_0x50b33d&&_0x50b33d[_0x5086b4('0x19b2')]?_0x50b33d[_0x5086b4('0x19b2')][0x0]:null;if(!_0x5db333){const _0x29a2b0=[];let _0x4174cd=null;_0x2ebfbb[_0x5086b4('0x13fa')]&&(_0x4174cd=_0x36f548()[_0x5086b4('0x1ad4')](_0x2ebfbb['interval'],{'id':Number(_0x2ebfbb[_0x5086b4('0x13fa')][_0x5086b4('0x6b4')])}));for(let _0x1c3fe7=0x0;_0x1c3fe7<_0x2ebfbb[_0x5086b4('0x507')][_0x5086b4('0x1e22')];_0x1c3fe7++){_0x4174cd&&_0x2ebfbb[_0x5086b4('0x507')][_0x1c3fe7]['id']===_0x4174cd['id']&&(_0x2ebfbb[_0x5086b4('0x507')][_0x1c3fe7][_0x5086b4('0x254a')]=![],_0x29a2b0[_0x5086b4('0x105d')](_0x2ebfbb[_0x5086b4('0x507')][_0x1c3fe7]));}_0x2ebfbb[_0x5086b4('0x507')]=_0x29a2b0;}else{if(!_0x5db333[_0x5086b4('0xf11')])return _0x3ad0c8['userProfileResource']['get']({'sectionId':_0x5db333['id']})['$promise']['then'](function(_0x28fdd5){const _0xa422f0=_0x5086b4,_0x4a53a7=_0x36f548()['map'](_0x28fdd5[_0xa422f0('0x19b2')],function(_0x356e7c){const _0x39a73a=_0xa422f0;return _0x36f548()[_0x39a73a('0x1ad4')](_0x2ebfbb[_0x39a73a('0x507')],{'id':_0x356e7c['resourceId']});});let _0x3d92ae=null;_0x2ebfbb['ivrCampaign']&&(_0x3d92ae=_0x36f548()[_0xa422f0('0x1ad4')](_0x2ebfbb['interval'],{'id':Number(_0x2ebfbb['ivrCampaign'][_0xa422f0('0x6b4')])}));if(_0x3d92ae&&!_0x36f548()[_0xa422f0('0x1cb3')](_0x4a53a7,['id',_0x3d92ae['id']])){const _0x542874=_0x36f548()[_0xa422f0('0x1ad4')](_0x2ebfbb[_0xa422f0('0x507')],{'id':_0x3d92ae['id']});_0x542874[_0xa422f0('0x254a')]=![],_0x4a53a7['push'](_0x542874);}_0x2ebfbb[_0xa422f0('0x507')]=_0x4a53a7;});}})[_0x2cc98d('0x151d')](function(_0x4a80e6){const _0x35374b=_0x2cc98d;_0x3c3176[_0x35374b('0x255')]({'title':_0x4a80e6[_0x35374b('0xff9')]?_0x35374b('0x574')+_0x4a80e6[_0x35374b('0xff9')]+'\x20-\x20'+_0x4a80e6[_0x35374b('0x212f')]:'SYSTEM:GETinterval','msg':_0x4a80e6[_0x35374b('0x4e8')]?JSON['stringify'](_0x4a80e6[_0x35374b('0x4e8')]):_0x4a80e6[_0x35374b('0xaab')]()});});function _0x2a05ab(){const _0x132f09=_0x2cc98d;_0x2ebfbb[_0x132f09('0x120f')]=[],_0x3ad0c8['campaign']['save'](_0x2ebfbb[_0x132f09('0x13fa')])[_0x132f09('0x1549')][_0x132f09('0x11bf')](function(_0x517f7b){const _0x1ea181=_0x132f09;_0x2ebfbb['ivrCampaigns']['unshift'](_0x517f7b[_0x1ea181('0x2866')]()),_0x3c3176[_0x1ea181('0x2693')]({'title':_0x1ea181('0x2496'),'msg':_0x2ebfbb['ivrCampaign']['name']?_0x2ebfbb[_0x1ea181('0x13fa')][_0x1ea181('0x1909')]+'\x20has\x20been\x20created!':''}),_0x21fa4d(_0x517f7b);})[_0x132f09('0x151d')](function(_0x166664){const _0x5c6654=_0x132f09;if(_0x166664[_0x5c6654('0x4e8')]&&_0x166664[_0x5c6654('0x4e8')][_0x5c6654('0x120f')]&&_0x166664['data'][_0x5c6654('0x120f')]['length']){_0x2ebfbb['errors']=_0x166664['data']['errors']||[{'message':_0x166664['toString'](),'type':'api.campaign.save'}];for(let _0x6f1371=0x0;_0x6f1371<_0x166664[_0x5c6654('0x4e8')][_0x5c6654('0x120f')][_0x5c6654('0x1e22')];_0x6f1371+=0x1){_0x3c3176['error']({'title':_0x166664[_0x5c6654('0x4e8')][_0x5c6654('0x120f')][_0x6f1371]['type'],'msg':_0x166664[_0x5c6654('0x4e8')][_0x5c6654('0x120f')][_0x6f1371][_0x5c6654('0x1b86')]});}}else _0x3c3176[_0x5c6654('0x255')]({'title':_0x166664['status']?_0x5c6654('0x574')+_0x166664[_0x5c6654('0xff9')]+_0x5c6654('0xb0b')+_0x166664['statusText']:_0x5c6654('0xe7a'),'msg':_0x166664[_0x5c6654('0x4e8')]?JSON[_0x5c6654('0x3e')](_0x166664[_0x5c6654('0x4e8')]['message']):_0x166664[_0x5c6654('0xaab')]()});});}function _0x53c427(){const _0x24496d=_0x2cc98d;_0x2ebfbb[_0x24496d('0x120f')]=[],_0x3ad0c8[_0x24496d('0x145d')]['update']({'id':_0x2ebfbb['ivrCampaign']['id']},_0x2ebfbb[_0x24496d('0x13fa')])[_0x24496d('0x1549')]['then'](function(_0x407040){const _0x3a7e27=_0x24496d,_0x638160=_0x36f548()['find'](_0x2ebfbb['ivrCampaigns'],{'id':_0x407040['id']});_0x638160&&_0x36f548()[_0x3a7e27('0x47b')](_0x638160,_0x36f548()[_0x3a7e27('0x258')](_0x407040[_0x3a7e27('0x2866')](),_0x36f548()[_0x3a7e27('0xe22')](_0x638160))),_0x3c3176[_0x3a7e27('0x2693')]({'title':'IvrCampaign\x20properly\x20saved!','msg':_0x2ebfbb[_0x3a7e27('0x13fa')][_0x3a7e27('0x1909')]?_0x2ebfbb['ivrCampaign'][_0x3a7e27('0x1909')]+'\x20has\x20been\x20saved!':''}),_0x21fa4d(_0x407040);})[_0x24496d('0x151d')](function(_0x5573a6){const _0x6913c2=_0x24496d;if(_0x5573a6[_0x6913c2('0x4e8')]&&_0x5573a6[_0x6913c2('0x4e8')]['errors']&&_0x5573a6['data'][_0x6913c2('0x120f')][_0x6913c2('0x1e22')]){_0x2ebfbb['errors']=_0x5573a6['data'][_0x6913c2('0x120f')]||[{'message':_0x5573a6[_0x6913c2('0xaab')](),'type':_0x6913c2('0x26f5')}];for(let _0x22b8f7=0x0;_0x22b8f7<_0x5573a6[_0x6913c2('0x4e8')][_0x6913c2('0x120f')][_0x6913c2('0x1e22')];_0x22b8f7++){_0x3c3176[_0x6913c2('0x255')]({'title':_0x5573a6[_0x6913c2('0x4e8')][_0x6913c2('0x120f')][_0x22b8f7][_0x6913c2('0x19fd')],'msg':_0x5573a6[_0x6913c2('0x4e8')][_0x6913c2('0x120f')][_0x22b8f7]['message']});}}else _0x3c3176[_0x6913c2('0x255')]({'title':_0x5573a6[_0x6913c2('0xff9')]?'API:'+_0x5573a6[_0x6913c2('0xff9')]+_0x6913c2('0xb0b')+_0x5573a6[_0x6913c2('0x212f')]:_0x6913c2('0x26f5'),'msg':_0x5573a6[_0x6913c2('0x4e8')]?JSON['stringify'](_0x5573a6[_0x6913c2('0x4e8')]['message']):_0x5573a6['toString']()});});}function _0x212507(_0x9b60ba){const _0x3be12c=_0x2cc98d;_0x2ebfbb[_0x3be12c('0x120f')]=[];const _0x5d9791=_0x30023b[_0x3be12c('0x132b')]()[_0x3be12c('0x134b')](_0x3be12c('0x1fa9'))['content'](_0x3be12c('0x2424'))['ariaLabel'](_0x3be12c('0xf53'))['ok'](_0x3be12c('0x1167'))[_0x3be12c('0x26c9')]('Cancel')['targetEvent'](_0x9b60ba);_0x30023b['show'](_0x5d9791)[_0x3be12c('0x11bf')](function(){const _0x16bb2a=_0x3be12c;_0x3ad0c8[_0x16bb2a('0x145d')][_0x16bb2a('0x2088')]({'id':_0x2ebfbb[_0x16bb2a('0x13fa')]['id']})[_0x16bb2a('0x1549')][_0x16bb2a('0x11bf')](function(){const _0x4e7e14=_0x16bb2a;_0x36f548()['remove'](_0x2ebfbb[_0x4e7e14('0x1e48')],{'id':_0x2ebfbb[_0x4e7e14('0x13fa')]['id']}),_0x3c3176[_0x4e7e14('0x2693')]({'title':'IvrCampaign\x20properly\x20deleted!','msg':(_0x2ebfbb[_0x4e7e14('0x13fa')]['name']||_0x4e7e14('0x13fa'))+'\x20has\x20been\x20deleted!'}),_0x21fa4d(_0x2ebfbb['ivrCampaign']);})[_0x16bb2a('0x151d')](function(_0x20a64b){const _0x18c97b=_0x16bb2a;if(_0x20a64b['data']&&_0x20a64b['data'][_0x18c97b('0x120f')]&&_0x20a64b[_0x18c97b('0x4e8')]['errors'][_0x18c97b('0x1e22')]){_0x2ebfbb['errors']=_0x20a64b[_0x18c97b('0x4e8')][_0x18c97b('0x120f')]||[{'message':_0x20a64b[_0x18c97b('0xaab')](),'type':_0x18c97b('0x1e52')}];for(let _0x193e44=0x0;_0x193e44<_0x20a64b[_0x18c97b('0x4e8')][_0x18c97b('0x120f')][_0x18c97b('0x1e22')];_0x193e44++){_0x3c3176[_0x18c97b('0x255')]({'title':_0x20a64b[_0x18c97b('0x4e8')][_0x18c97b('0x120f')][_0x193e44][_0x18c97b('0x19fd')],'msg':_0x20a64b['data'][_0x18c97b('0x120f')][_0x193e44][_0x18c97b('0x1b86')]});}}else _0x3c3176[_0x18c97b('0x255')]({'title':_0x20a64b[_0x18c97b('0xff9')]?'API:'+_0x20a64b[_0x18c97b('0xff9')]+_0x18c97b('0xb0b')+_0x20a64b['statusText']:_0x18c97b('0x1e52'),'msg':_0x20a64b[_0x18c97b('0x4e8')]?JSON[_0x18c97b('0x3e')](_0x20a64b['data'][_0x18c97b('0x1b86')]):_0x20a64b[_0x18c97b('0x1b86')]||_0x20a64b[_0x18c97b('0xaab')]()});});},function(){});}function _0x1f6d1c(_0x1b988a){return _0x1b988a===null?undefined:new Date(_0x1b988a);}function _0x21fa4d(_0x46c24b){const _0x5742a3=_0x2cc98d;_0x30023b[_0x5742a3('0x237e')](_0x46c24b);}}const _0x606e4e=_0x4681ad;_0x5d2ac3['$inject']=['$mdDialog','$q',_0x21d0f5('0x142d'),_0x21d0f5('0x12a5'),_0x21d0f5('0x13fa'),'$translate','$timeout',_0x21d0f5('0x1150'),_0x21d0f5('0xb25')];function _0x5d2ac3(_0x5abfd7,_0x2e1feb,_0x48c281,_0x172dfa,_0x872014,_0x200a9b,_0x58fe38,_0xcfceeb,_0x3ccd47){const _0x2b9f2a=_0x21d0f5,_0x5865dc=this;_0x5865dc[_0x2b9f2a('0x32a')]=_0xcfceeb[_0x2b9f2a('0x2428')](),_0x5865dc[_0x2b9f2a('0x13fa')]=_0x872014,_0x5865dc['crudPermissions']=_0x3ccd47,_0x5865dc[_0x2b9f2a('0x1727')]=_0x2b9f2a('0x1043'),_0x5865dc[_0x2b9f2a('0x10ab')]=_0x2b9f2a('0x228c'),_0x5865dc[_0x2b9f2a('0x35b')]=_0x2b9f2a('0x1b78'),_0x5865dc['removeApi']=_0x2b9f2a('0x1848'),_0x5865dc[_0x2b9f2a('0x22')]=[],_0x5865dc['allowedItems']=[],_0x5865dc[_0x2b9f2a('0x26cc')]=[],_0x5865dc[_0x2b9f2a('0x1c6f')]=[],_0x5865dc['startingSelectedItems']=[],_0x5865dc[_0x2b9f2a('0x1eda')]=![],_0x5865dc[_0x2b9f2a('0x632')]=![],_0x5865dc['dualMultiselectOptions']={'readOnly':!_0x5865dc[_0x2b9f2a('0xb25')][_0x2b9f2a('0x25db')],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':![],'orderBy':_0x2b9f2a('0x1909'),'line1':_0x2b9f2a('0x1909'),'line2':'','line3':'','labelAll':_0x200a9b['instant'](_0x2b9f2a('0x1ac1')),'labelSelected':_0x200a9b[_0x2b9f2a('0x10c2')](_0x2b9f2a('0x1cb7')),'transferCallback':function(){const _0x203b68=_0x2b9f2a,_0x5d5804=_0x36f548()['xorBy'](_0x5865dc[_0x203b68('0x21ed')],_0x5865dc[_0x203b68('0x26cc')],'id');_0x5865dc[_0x203b68('0x1eda')]=_0x36f548()[_0x203b68('0x1fc5')](_0x5d5804)?![]:!![];}},_0x5865dc['onInit']=_0xa6add4,_0x5865dc[_0x2b9f2a('0x40c')]=_0x903a57,_0x5865dc[_0x2b9f2a('0xc4e')]=_0x356908;function _0xa6add4(){const _0x5e6f64=_0x2b9f2a;return _0xcfceeb[_0x5e6f64('0x4ee')](_0x5e6f64('0xf45'))?_0x5d0328()[_0x5e6f64('0x151d')](function(_0x5482f0){const _0x174d76=_0x5e6f64;_0x48c281[_0x174d76('0x255')]({'title':_0x5482f0[_0x174d76('0xff9')]?_0x174d76('0x574')+_0x5482f0[_0x174d76('0xff9')]+_0x174d76('0xb0b')+_0x5482f0['statusText']:_0x174d76('0x1364'),'msg':_0x5482f0[_0x174d76('0xff9')]?JSON[_0x174d76('0x3e')](_0x5482f0['data']):_0x5482f0[_0x174d76('0xaab')]()});}):_0xf42b9c()[_0x5e6f64('0x11bf')](function(_0x119b46){const _0x46de6e=_0x5e6f64;return _0x5865dc[_0x46de6e('0xe6')]=_0x119b46,_0x5d0328();})['catch'](function(_0x11eb69){const _0x487f52=_0x5e6f64;_0x48c281[_0x487f52('0x255')]({'title':_0x11eb69[_0x487f52('0xff9')]?_0x487f52('0x574')+_0x11eb69[_0x487f52('0xff9')]+'\x20-\x20'+_0x11eb69[_0x487f52('0x212f')]:'SYSTEM:GETLISTS','msg':_0x11eb69['status']?JSON[_0x487f52('0x3e')](_0x11eb69[_0x487f52('0x4e8')]):_0x11eb69[_0x487f52('0xaab')]()});});}function _0xf42b9c(){return _0x2e1feb(function(_0x2087d4,_0x3a92b6){const _0x1c251e=a0_0xaf0c;_0x172dfa[_0x1c251e('0x1d63')][_0x1c251e('0xbaa')]({'userProfileId':_0x5865dc[_0x1c251e('0x32a')]['userProfileId'],'name':_0x1c251e('0x2244')})[_0x1c251e('0x1549')][_0x1c251e('0x11bf')](function(_0x21bfaa){const _0x409f57=_0x1c251e,_0x2c16fc=_0x21bfaa&&_0x21bfaa['rows']?_0x21bfaa[_0x409f57('0x19b2')][0x0]:null;_0x2087d4(_0x2c16fc);})['catch'](function(_0x2da2bc){_0x3a92b6(_0x2da2bc);});});}function _0x5d0328(){return _0x2e1feb(function(_0x284697,_0x4348ab){const _0x241c7d=a0_0xaf0c;return _0x206e12()['then'](function(_0x37ca79){const _0x2353cf=a0_0xaf0c;return _0x5865dc[_0x2353cf('0x22')]=_0x37ca79[_0x2353cf('0x19b2')]?_0x37ca79[_0x2353cf('0x19b2')]:[],_0xcfceeb[_0x2353cf('0x4ee')](_0x2353cf('0xf45'))?_0x37ca79:_0x5865dc[_0x2353cf('0xe6')]?_0x5865dc[_0x2353cf('0xe6')][_0x2353cf('0xf11')]?_0x37ca79:_0x276d4f():null;})[_0x241c7d('0x11bf')](function(_0x506bc9){const _0xb62bec=_0x241c7d,_0x819bb4=_0x506bc9&&_0x506bc9[_0xb62bec('0x19b2')]?_0x506bc9['rows']:[];return _0x5865dc[_0xb62bec('0x63')]=_0x36f548()[_0xb62bec('0x2171')](_0x819bb4,function(_0x43a95c){const _0x3facce=_0xb62bec;return _0x36f548()['find'](_0x5865dc['items'],{'id':_0xcfceeb[_0x3facce('0x4ee')](_0x3facce('0xf45'))||_0x5865dc[_0x3facce('0xe6')][_0x3facce('0xf11')]?_0x43a95c['id']:_0x43a95c['resourceId']});}),_0x5865dc[_0xb62bec('0x1c6f')]=angular[_0xb62bec('0x6fb')](_0x5865dc[_0xb62bec('0x63')]),_0x5865dc['items'][_0xb62bec('0x1f88')](function(_0x1baf8c){const _0x3d82f1=_0xb62bec,_0x59cf01=_0x36f548()[_0x3d82f1('0x1ad4')](_0x5865dc['allowedItems'],{'id':_0x1baf8c['id']});_0x5865dc['currentUser']['role']==='admin'?_0x1baf8c[_0x3d82f1('0xde9')]=!![]:_0x1baf8c['isValid']=typeof _0x59cf01!==_0x3d82f1('0x13e9')?!![]:![];}),_0x2a62ec();})[_0x241c7d('0x11bf')](function(_0x3af2ef){const _0x550e09=_0x241c7d,_0x381d05=_0x3af2ef&&_0x3af2ef[_0x550e09('0x19b2')]?_0x3af2ef[_0x550e09('0x19b2')]:[];_0x5865dc[_0x550e09('0x26cc')]=_0x36f548()[_0x550e09('0x2171')](_0x381d05,function(_0x3281c9){const _0x417493=_0x550e09;return _0x36f548()[_0x417493('0x1ad4')](_0x5865dc[_0x417493('0x22')],{'id':_0x3281c9['id']});}),_0x5865dc['startingSelectedItems']=angular['copy'](_0x5865dc[_0x550e09('0x26cc')]),_0x5865dc['dualMultiselectOptions'][_0x550e09('0x26cc')]=_0x5865dc[_0x550e09('0x26cc')],_0x5865dc['dualMultiselectOptions'][_0x550e09('0x22')]=_0x36f548()[_0x550e09('0x2753')](_0x5865dc[_0x550e09('0x63')],_0x5865dc[_0x550e09('0xec5')][_0x550e09('0x26cc')],'id'),_0x284697();})[_0x241c7d('0x151d')](function(_0x424243){_0x4348ab(_0x424243);});});}function _0x276d4f(){return _0x2e1feb(function(_0x285b6b,_0x5b10e6){const _0x4eae5f=a0_0xaf0c;return _0x172dfa[_0x4eae5f('0x26d1')][_0x4eae5f('0xbaa')]({'sectionId':_0x5865dc[_0x4eae5f('0xe6')]['id'],'nolimit':!![]})[_0x4eae5f('0x1549')][_0x4eae5f('0x11bf')](function(_0x1ae396){_0x285b6b(_0x1ae396);})[_0x4eae5f('0x151d')](function(_0x211238){_0x5b10e6(_0x211238);});});}function _0x2a62ec(){return _0x2e1feb(function(_0x331cfa,_0xa49033){const _0x12afbc=a0_0xaf0c,_0x34c21f=_0x172dfa[_0x5865dc[_0x12afbc('0x1727')]];return _0x34c21f[_0x5865dc[_0x12afbc('0x10ab')]]({'id':_0x5865dc[_0x12afbc('0x13fa')]['id'],'fields':'id,name','nolimit':!![]})[_0x12afbc('0x1549')][_0x12afbc('0x11bf')](function(_0x46ed8b){_0x331cfa(_0x46ed8b);})[_0x12afbc('0x151d')](function(_0x3fefaf){_0xa49033(_0x3fefaf);});});}function _0x206e12(){return _0x2e1feb(function(_0x1c46af,_0x3fcbce){const _0x1e0778=a0_0xaf0c;return _0x172dfa['cmList'][_0x1e0778('0xbaa')]({'fields':_0x1e0778('0x721'),'nolimit':!![]})[_0x1e0778('0x1549')][_0x1e0778('0x11bf')](function(_0x458164){_0x1c46af(_0x458164);})[_0x1e0778('0x151d')](function(_0x39559d){_0x3fcbce(_0x39559d);});});}function _0x299c5e(_0x8515b5){return _0x2e1feb(function(_0x29b65b,_0x4eef8f){const _0x1b0969=a0_0xaf0c;if(_0x36f548()[_0x1b0969('0x1fc5')](_0x8515b5))_0x29b65b();else{const _0x3b93d3=_0x172dfa[_0x5865dc[_0x1b0969('0x1727')]];_0x3b93d3[_0x5865dc[_0x1b0969('0x35b')]]({'id':_0x5865dc[_0x1b0969('0x13fa')]['id'],'ids':_0x36f548()[_0x1b0969('0x2171')](_0x8515b5,'id')})['$promise']['then'](function(){_0x29b65b();})['catch'](function(_0x3d4611){_0x4eef8f(_0x3d4611);});}});}function _0x9ba9bc(_0x21877a){return _0x2e1feb(function(_0x1540ae,_0x17d569){const _0x4c873d=a0_0xaf0c;if(_0x36f548()['isEmpty'](_0x21877a))_0x1540ae();else{const _0x56ff66=_0x172dfa[_0x5865dc[_0x4c873d('0x1727')]];_0x56ff66[_0x5865dc[_0x4c873d('0x933')]]({'id':_0x5865dc[_0x4c873d('0x13fa')]['id'],'ids':_0x36f548()[_0x4c873d('0x2171')](_0x21877a,'id')})['$promise']['then'](function(){_0x1540ae();})[_0x4c873d('0x151d')](function(_0x343f06){_0x17d569(_0x343f06);});}});}function _0x903a57(){const _0x2d9712=_0x2b9f2a;_0x5865dc[_0x2d9712('0x632')]=!![];const _0x5c5c5b=_0x36f548()[_0x2d9712('0x2753')](_0x5865dc[_0x2d9712('0x21ed')],_0x5865dc['selectedItems'],'id'),_0x5d5946=_0x36f548()[_0x2d9712('0x2753')](_0x5865dc[_0x2d9712('0x26cc')],_0x5865dc['startingSelectedItems'],'id');return _0x9ba9bc(_0x5c5c5b)[_0x2d9712('0x11bf')](function(){return _0x299c5e(_0x5d5946);})['then'](function(){const _0x137169=_0x2d9712;_0x5865dc['pendingChanges']=![],_0x5865dc[_0x137169('0x1c6f')]=angular[_0x137169('0x6fb')](_0x5865dc['allowedItems']),_0x5865dc[_0x137169('0x21ed')]=angular[_0x137169('0x6fb')](_0x5865dc[_0x137169('0x26cc')]),_0x48c281[_0x137169('0x2693')]({'title':_0x137169('0x2243'),'msg':_0x137169('0x14b3')});})[_0x2d9712('0x151d')](function(_0x4e8e6e){const _0x52a2a5=_0x2d9712;_0x48c281['error']({'title':_0x4e8e6e['status']?_0x52a2a5('0x574')+_0x4e8e6e[_0x52a2a5('0xff9')]+_0x52a2a5('0xb0b')+_0x4e8e6e[_0x52a2a5('0x212f')]:'SYSTEM:LISTS_ASSOCIATION','msg':_0x4e8e6e[_0x52a2a5('0xff9')]?JSON['stringify'](_0x4e8e6e[_0x52a2a5('0x4e8')]):_0x4e8e6e[_0x52a2a5('0xaab')]()});})['finally'](function(){const _0x2bc442=_0x2d9712;_0x5865dc[_0x2bc442('0x632')]=![];});}function _0x356908(){_0x5abfd7['hide']();}}const _0xb17c2b=_0x5d2ac3;_0x2e4f9e['$inject']=[_0x21d0f5('0x1ca2'),'$state',_0x21d0f5('0x142d'),_0x21d0f5('0x12a5'),_0x21d0f5('0x13fa'),'ivrCampaigns',_0x21d0f5('0xb6b')];function _0x2e4f9e(_0xd4da8b,_0x3b662a,_0x35eb00,_0x324f77,_0x35cfb0,_0x123120,_0x4ef559){const _0x17f83e=_0x21d0f5,_0x374ff8=this;_0x374ff8[_0x17f83e('0x26bf')]=!![],_0x374ff8[_0x17f83e('0x13fa')]=angular[_0x17f83e('0x6fb')](_0x35cfb0),_0x374ff8[_0x17f83e('0x1e48')]=_0x123120,_0x374ff8[_0x17f83e('0x134b')]=_0x4ef559['instant'](_0x17f83e('0xe3e'));_0x35cfb0&&_0x35cfb0['name']&&(_0x374ff8[_0x17f83e('0x134b')]+=':\x20'+_0x35cfb0[_0x17f83e('0x1909')]);_0x374ff8['cloneIvrCampaign']=_0x340202,_0x374ff8['closeDialog']=_0x47fa20;function _0x340202(){const _0x2867c4=_0x17f83e;return _0x324f77[_0x2867c4('0x145d')][_0x2867c4('0x208b')]({'id':_0x35cfb0['id']},_0x374ff8[_0x2867c4('0x13fa')])['$promise'][_0x2867c4('0x11bf')](function(_0x2672a5){const _0x596f9a=_0x2867c4;_0x374ff8[_0x596f9a('0x1e48')][_0x596f9a('0x880')](_0x2672a5['toJSON']()),_0x35eb00[_0x596f9a('0x2693')]({'title':_0x596f9a('0x207f'),'msg':_0x374ff8[_0x596f9a('0x13fa')][_0x596f9a('0x1909')]?_0x374ff8['ivrCampaign'][_0x596f9a('0x1909')]+_0x596f9a('0x9d2'):''}),_0x3b662a['go'](_0x596f9a('0x2605'),{'id':_0x2672a5['id']}),_0x47fa20(_0x2672a5);})[_0x2867c4('0x151d')](function(_0x258888){const _0x3390b1=_0x2867c4;if(_0x258888[_0x3390b1('0x4e8')]&&_0x258888[_0x3390b1('0x4e8')][_0x3390b1('0x120f')]&&_0x258888[_0x3390b1('0x4e8')]['errors'][_0x3390b1('0x1e22')]){_0x374ff8['errors']=_0x258888[_0x3390b1('0x4e8')][_0x3390b1('0x120f')]||[{'message':_0x258888[_0x3390b1('0xaab')](),'type':_0x3390b1('0x1669')}];for(let _0x180e18=0x0;_0x180e18<_0x258888[_0x3390b1('0x4e8')]['errors'][_0x3390b1('0x1e22')];_0x180e18+=0x1){_0x35eb00[_0x3390b1('0x255')]({'title':_0x258888['data'][_0x3390b1('0x120f')][_0x180e18][_0x3390b1('0x19fd')],'msg':_0x258888[_0x3390b1('0x4e8')][_0x3390b1('0x120f')][_0x180e18][_0x3390b1('0x1b86')]});}}else _0x35eb00[_0x3390b1('0x255')]({'title':_0x258888['status']?_0x3390b1('0x574')+_0x258888[_0x3390b1('0xff9')]+_0x3390b1('0xb0b')+_0x258888[_0x3390b1('0x212f')]:_0x3390b1('0x1669'),'msg':_0x258888[_0x3390b1('0x4e8')]?JSON[_0x3390b1('0x3e')](_0x258888[_0x3390b1('0x4e8')]['message']):_0x258888[_0x3390b1('0xaab')]()});});}function _0x47fa20(_0x4302ee){const _0x64251c=_0x17f83e;_0xd4da8b[_0x64251c('0x237e')](_0x4302ee);}}const _0x3db9db=_0x2e4f9e;_0x1d311c['$inject']=['$cookies',_0x21d0f5('0x1b80'),_0x21d0f5('0xcbc'),'$q',_0x21d0f5('0xb6b'),'$timeout',_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),_0x21d0f5('0x142d'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150')];function _0x1d311c(_0x53a15e,_0x4a1f30,_0x4d56cd,_0xc9c854,_0x478843,_0x7d44e8,_0x5a40ea,_0x35ac12,_0x21ad6e,_0x1f45b3,_0x3a1038){const _0xb16c77=_0x21d0f5,_0xe18e9f=this;_0xe18e9f[_0xb16c77('0x32a')]=_0x3a1038[_0xb16c77('0x2428')](),_0xe18e9f[_0xb16c77('0x13fa')]={},_0xe18e9f[_0xb16c77('0x811')]={'count':0x0,'rows':[]},_0xe18e9f[_0xb16c77('0x1376')]=[],_0xe18e9f[_0xb16c77('0xb25')],_0xe18e9f[_0xb16c77('0x1f2a')]={'fields':_0xb16c77('0x139d'),'sort':'-id','limit':0xa,'page':0x1},_0xe18e9f[_0xb16c77('0x286f')]=_0x1b2daa,_0xe18e9f['deleteConfirm']=_0x5e8ba1,_0xe18e9f[_0xb16c77('0x2693')]=_0x1ef9cc,_0xe18e9f[_0xb16c77('0x1061')]=_0x89411,_0xe18e9f[_0xb16c77('0xd25')]=_0x1892aa,_0xe18e9f['deleteIvrCampaignHopperBlack']=_0x3e7569,_0xe18e9f[_0xb16c77('0x262a')]=_0x5ae992;function _0x1b2daa(_0x1cace4,_0x4d9fc9){const _0x4fdf97=_0xb16c77;_0xe18e9f['ivrCampaign']=_0x1cace4,_0xe18e9f[_0x4fdf97('0xb25')]=typeof _0x4d9fc9!==_0x4fdf97('0x13e9')?_0x4d9fc9:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0xe18e9f['query']['CampaignId']=_0xe18e9f['ivrCampaign']['id'],_0xe18e9f[_0x4fdf97('0x1f2a')]['id']=_0xe18e9f[_0x4fdf97('0x13fa')]['id'],_0x89411();}function _0x5e8ba1(_0x57960,_0x10a497){const _0x4b5431=_0xb16c77,_0x2cfc99=_0x5a40ea[_0x4b5431('0x132b')]()[_0x4b5431('0x134b')](_0x4b5431('0x851'))[_0x4b5431('0x1d03')](_0x4b5431('0x2061')+(_0x57960[_0x4b5431('0x1909')]||_0x57960['id']&&_0x36f548()[_0x4b5431('0x24b5')](_0x4b5431('0xcdc'))+_0x57960['id']||'hopperBlack')+_0x4b5431('0x1c78')+_0x4b5431('0x1a'))['ariaLabel'](_0x4b5431('0x1d2c'))[_0x4b5431('0x1e25')](_0x10a497)['ok']('OK')['cancel'](_0x4b5431('0x772'));_0x5a40ea['show'](_0x2cfc99)['then'](function(){_0x3e7569(_0x57960);},function(){const _0x3f24a4=_0x4b5431;console[_0x3f24a4('0xc78')](_0x3f24a4('0x772'));});}function _0x1ef9cc(_0x463d16){const _0x54f5af=_0xb16c77;_0xe18e9f[_0x54f5af('0x811')]=_0x463d16||{'count':0x0,'rows':[]};}function _0x89411(){const _0x2e6d58=_0xb16c77;_0xe18e9f[_0x2e6d58('0x1f2a')][_0x2e6d58('0x1393')]=(_0xe18e9f[_0x2e6d58('0x1f2a')]['page']-0x1)*_0xe18e9f[_0x2e6d58('0x1f2a')][_0x2e6d58('0xd5c')],_0xe18e9f[_0x2e6d58('0x13f')]=_0x1f45b3[_0x2e6d58('0x145d')]['getHopperBlacks'](_0xe18e9f[_0x2e6d58('0x1f2a')],_0x1ef9cc)[_0x2e6d58('0x1549')];}function _0x3e7569(_0x1a6dda){const _0x3f4d9e=_0xb16c77;_0x1f45b3[_0x3f4d9e('0x36c')]['delete']({'id':_0x1a6dda['id']})[_0x3f4d9e('0x1549')][_0x3f4d9e('0x11bf')](function(){const _0x3998d1=_0x3f4d9e;_0x36f548()[_0x3998d1('0x14a5')](_0xe18e9f['ivrCampaignHopperBlacks'][_0x3998d1('0x19b2')],{'id':_0x1a6dda['id']}),_0xe18e9f[_0x3998d1('0x811')]['count']-=0x1,!_0xe18e9f[_0x3998d1('0x811')]['rows']['length']&&_0x89411(),_0x21ad6e[_0x3998d1('0x2693')]({'title':_0x3998d1('0x1726'),'msg':_0x1a6dda[_0x3998d1('0x1909')]?_0x1a6dda[_0x3998d1('0x1909')]+'\x20has\x20been\x20deleted!':''});})[_0x3f4d9e('0x151d')](function(_0x2ae65a){const _0xdfdb22=_0x3f4d9e;if(_0x2ae65a['data']&&_0x2ae65a[_0xdfdb22('0x4e8')][_0xdfdb22('0x120f')]&&_0x2ae65a[_0xdfdb22('0x4e8')][_0xdfdb22('0x120f')][_0xdfdb22('0x1e22')]){_0xe18e9f[_0xdfdb22('0x120f')]=_0x2ae65a['data'][_0xdfdb22('0x120f')]||[{'message':_0x2ae65a[_0xdfdb22('0xaab')](),'type':_0xdfdb22('0xc53')}];for(let _0x92c0ef=0x0;_0x92c0ef<_0x2ae65a[_0xdfdb22('0x4e8')][_0xdfdb22('0x120f')][_0xdfdb22('0x1e22')];_0x92c0ef++){_0x21ad6e[_0xdfdb22('0x255')]({'title':_0x2ae65a['data']['errors'][_0x92c0ef][_0xdfdb22('0x19fd')],'msg':_0x2ae65a[_0xdfdb22('0x4e8')][_0xdfdb22('0x120f')][_0x92c0ef][_0xdfdb22('0x1b86')]});}}else _0x21ad6e['error']({'title':_0x2ae65a[_0xdfdb22('0xff9')]?_0xdfdb22('0x574')+_0x2ae65a[_0xdfdb22('0xff9')]+'\x20-\x20'+_0x2ae65a['statusText']:_0xdfdb22('0xc53'),'msg':_0x2ae65a[_0xdfdb22('0x4e8')]?JSON[_0xdfdb22('0x3e')](_0x2ae65a[_0xdfdb22('0x4e8')][_0xdfdb22('0x1b86')]):_0x2ae65a[_0xdfdb22('0x1b86')]||_0x2ae65a[_0xdfdb22('0xaab')]()});});}function _0x1892aa(){const _0x42249c=_0xb16c77,_0x542d2a=angular[_0x42249c('0x6fb')](_0xe18e9f[_0x42249c('0x1376')]);return _0xe18e9f[_0x42249c('0x1376')]=[],_0x542d2a;}function _0x5ae992(_0x399f7c){const _0x542a18=_0xb16c77,_0x2523fb=_0x5a40ea[_0x542a18('0x132b')]()[_0x542a18('0x134b')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20hopperBlacks?')['htmlContent'](_0x542a18('0x2061')+_0xe18e9f[_0x542a18('0x1376')][_0x542a18('0x1e22')]+_0x542a18('0xac6')+'\x20will\x20be\x20deleted.')[_0x542a18('0xb2e')](_0x542a18('0x181'))['targetEvent'](_0x399f7c)['ok']('OK')[_0x542a18('0x26c9')](_0x542a18('0x772'));_0x5a40ea[_0x542a18('0xb9')](_0x2523fb)[_0x542a18('0x11bf')](function(){const _0x3ec499=_0x542a18;_0xe18e9f['selectedIvrCampaignHopperBlacks']['forEach'](function(_0x5390c6){_0x3e7569(_0x5390c6);}),_0xe18e9f[_0x3ec499('0x1376')]=[];});}let _0x8d50bc=!![],_0x144c7f=0x1;_0x4a1f30[_0xb16c77('0x2087')](_0xb16c77('0x1d12'),function(_0x30da84,_0x246a4b){const _0x553a93=_0xb16c77;_0x8d50bc?_0x7d44e8(function(){_0x8d50bc=![];}):(!_0x246a4b&&(_0x144c7f=_0xe18e9f[_0x553a93('0x1f2a')][_0x553a93('0x1c2')]),_0x30da84!==_0x246a4b&&(_0xe18e9f[_0x553a93('0x1f2a')][_0x553a93('0x1c2')]=0x1),!_0x30da84&&(_0xe18e9f[_0x553a93('0x1f2a')][_0x553a93('0x1c2')]=_0x144c7f),_0x89411());});}const _0x52ce8e=_0x1d311c;_0x39d4e7[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x5d8'),'$scope',_0x21d0f5('0xcbc'),'$q',_0x21d0f5('0xb6b'),'$timeout','$mdDialog',_0x21d0f5('0x1b30'),_0x21d0f5('0x142d'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150')];function _0x39d4e7(_0x5e78ef,_0xea968d,_0x1d236f,_0xe430b7,_0x32f2ec,_0x6a4b15,_0x3c28df,_0x100e48,_0x2cb355,_0x5bee38,_0x1140bd){const _0x34bf9a=_0x21d0f5,_0x5152ee=this;_0x5152ee['currentUser']=_0x1140bd[_0x34bf9a('0x2428')](),_0x5152ee[_0x34bf9a('0x206c')]={},_0x5152ee[_0x34bf9a('0x13fa')]={},_0x5152ee[_0x34bf9a('0xfb1')]={'count':0x0,'rows':[]},_0x5152ee[_0x34bf9a('0x1b87')]=[],_0x5152ee[_0x34bf9a('0xb25')],_0x5152ee['query']={'fields':_0x34bf9a('0x72d'),'sort':_0x34bf9a('0x1157'),'limit':0xa,'page':0x1},_0x5152ee[_0x34bf9a('0x286f')]=_0x561f7a,_0x5152ee[_0x34bf9a('0x560')]=_0x10184c,_0x5152ee['success']=_0x1a52f7,_0x5152ee[_0x34bf9a('0x35e')]=_0x4db035,_0x5152ee[_0x34bf9a('0x24b6')]=_0x2463ab,_0x5152ee[_0x34bf9a('0x1bf7')]=_0x421de4,_0x5152ee[_0x34bf9a('0x1479')]=_0x6b4163,_0x5152ee[_0x34bf9a('0x984')]=_0x59245d,_0x5152ee[_0x34bf9a('0x4c2')]=_0x42bd79,_0x5152ee['countContactsIvrCampaignHopperFinal']=_0x47c461,_0x5152ee['moveConfirm']=_0x55129d,_0x5152ee[_0x34bf9a('0x10ca')]=_0x4033f5;function _0x561f7a(_0x350266,_0xcce18b){const _0x2cb1e9=_0x34bf9a;_0x5152ee[_0x2cb1e9('0x13fa')]=_0x350266,_0x5152ee[_0x2cb1e9('0xb25')]=typeof _0xcce18b!==_0x2cb1e9('0x13e9')?_0xcce18b:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x5152ee['query'][_0x2cb1e9('0x23c3')]=_0x5152ee[_0x2cb1e9('0x13fa')]['id'],_0x5152ee[_0x2cb1e9('0x1f2a')]['id']=_0x5152ee[_0x2cb1e9('0x13fa')]['id'],_0x4db035();}function _0x10184c(_0x162a8b,_0x53abfa){const _0x495131=_0x34bf9a,_0x45ec9a=_0x3c28df['confirm']()[_0x495131('0x134b')](_0x495131('0x1d3b'))[_0x495131('0x1d03')](''+(_0x162a8b[_0x495131('0x1909')]||_0x162a8b['id']&&_0x36f548()['upperFirst'](_0x495131('0x4c3'))+_0x162a8b['id']||_0x495131('0x15c9'))+_0x495131('0x1c78')+_0x495131('0x1a'))[_0x495131('0xb2e')](_0x495131('0x555'))[_0x495131('0x1e25')](_0x53abfa)['ok']('OK')[_0x495131('0x26c9')]('CANCEL');_0x3c28df[_0x495131('0xb9')](_0x45ec9a)['then'](function(){_0x421de4(_0x162a8b);},function(){const _0x1cd796=_0x495131;console[_0x1cd796('0xc78')]('CANCEL');});}function _0x1a52f7(_0x5a16fb){const _0x245137=_0x34bf9a;_0x5152ee[_0x245137('0xfb1')]=_0x5a16fb||{'count':0x0,'rows':[]};}function _0x4db035(){const _0x1af491=_0x34bf9a;_0x5152ee[_0x1af491('0x1f2a')][_0x1af491('0x1393')]=(_0x5152ee['query'][_0x1af491('0x1c2')]-0x1)*_0x5152ee[_0x1af491('0x1f2a')][_0x1af491('0xd5c')],_0x5152ee[_0x1af491('0x13f')]=_0x5bee38[_0x1af491('0x145d')][_0x1af491('0x8dc')](_0x5152ee[_0x1af491('0x1f2a')],_0x1a52f7)['$promise'];}function _0x421de4(_0x51b1dd){const _0x24c8f8=_0x34bf9a;_0x5bee38[_0x24c8f8('0x15c9')][_0x24c8f8('0x2088')]({'id':_0x51b1dd['id']})[_0x24c8f8('0x1549')]['then'](function(){const _0x48648b=_0x24c8f8;_0x36f548()[_0x48648b('0x14a5')](_0x5152ee[_0x48648b('0xfb1')]['rows'],{'id':_0x51b1dd['id']}),_0x5152ee[_0x48648b('0xfb1')][_0x48648b('0x27d2')]-=0x1,!_0x5152ee['ivrCampaignHopperFinals'][_0x48648b('0x19b2')]['length']&&_0x4db035(),_0x2cb355[_0x48648b('0x2693')]({'title':'HopperFinal\x20deleted!','msg':_0x51b1dd['name']?_0x51b1dd[_0x48648b('0x1909')]+_0x48648b('0x433'):''});})[_0x24c8f8('0x151d')](function(_0x38a546){const _0x3d96ae=_0x24c8f8;if(_0x38a546[_0x3d96ae('0x4e8')]&&_0x38a546[_0x3d96ae('0x4e8')]['errors']&&_0x38a546[_0x3d96ae('0x4e8')][_0x3d96ae('0x120f')][_0x3d96ae('0x1e22')]){_0x5152ee['errors']=_0x38a546[_0x3d96ae('0x4e8')][_0x3d96ae('0x120f')]||[{'message':_0x38a546['toString'](),'type':'SYSTEM:GETcampaign'}];for(let _0x1aaa80=0x0;_0x1aaa80<_0x38a546[_0x3d96ae('0x4e8')]['errors']['length'];_0x1aaa80++){_0x2cb355[_0x3d96ae('0x255')]({'title':_0x38a546[_0x3d96ae('0x4e8')][_0x3d96ae('0x120f')][_0x1aaa80]['type'],'msg':_0x38a546[_0x3d96ae('0x4e8')]['errors'][_0x1aaa80][_0x3d96ae('0x1b86')]});}}else _0x2cb355[_0x3d96ae('0x255')]({'title':_0x38a546[_0x3d96ae('0xff9')]?_0x3d96ae('0x574')+_0x38a546[_0x3d96ae('0xff9')]+_0x3d96ae('0xb0b')+_0x38a546[_0x3d96ae('0x212f')]:_0x3d96ae('0xc53'),'msg':_0x38a546[_0x3d96ae('0x4e8')]?JSON[_0x3d96ae('0x3e')](_0x38a546['data'][_0x3d96ae('0x1b86')]):_0x38a546['message']||_0x38a546[_0x3d96ae('0xaab')]()});});}function _0x2463ab(){const _0x3e46c2=_0x34bf9a,_0x46507e=angular['copy'](_0x5152ee[_0x3e46c2('0x1b87')]);return _0x5152ee[_0x3e46c2('0x1b87')]=[],_0x46507e;}function _0x6b4163(_0x2715b6){const _0x4608ec=_0x34bf9a,_0x433cf8=_0x3c28df['confirm']()[_0x4608ec('0x134b')](_0x4608ec('0x93b'))[_0x4608ec('0x1d03')](_0x4608ec('0x2061')+_0x5152ee[_0x4608ec('0x1b87')][_0x4608ec('0x1e22')]+_0x4608ec('0xac6')+_0x4608ec('0x1a'))[_0x4608ec('0xb2e')]('delete\x20hopperFinals')[_0x4608ec('0x1e25')](_0x2715b6)['ok']('OK')[_0x4608ec('0x26c9')]('CANCEL');_0x3c28df[_0x4608ec('0xb9')](_0x433cf8)[_0x4608ec('0x11bf')](function(){const _0xb997fc=_0x4608ec;_0x5152ee[_0xb997fc('0x1b87')][_0xb997fc('0x1f88')](function(_0xd69386){_0x421de4(_0xd69386);}),_0x5152ee[_0xb997fc('0x1b87')]=[];});}function _0x42bd79(_0x71417c){const _0x21e759=_0x34bf9a;_0x5bee38[_0x21e759('0x1794')]['moveContactsIvrCampaignHopperFinal']({'id':_0x5152ee[_0x21e759('0x1f2a')]['id'],'state':_0x71417c})[_0x21e759('0x1549')][_0x21e759('0x11bf')](function(_0x59b317){const _0x385872=_0x21e759;_0x36f548()[_0x385872('0x1a80')](_0x59b317)&&_0x36f548()[_0x385872('0x1a80')](_0x59b317[0x0])?_0x2cb355['info']({'title':_0x385872('0x1887'),'msg':'0'}):_0x2cb355['info']({'title':'Restored\x20Contacts','msg':JSON[_0x385872('0x3e')](_0x59b317[0x0][_0x385872('0x1152')])});})[_0x21e759('0x151d')](function(_0x2a448a){const _0x5248cf=_0x21e759;_0x2cb355[_0x5248cf('0x255')]({'title':_0x2a448a[_0x5248cf('0xff9')]?'API:'+_0x2a448a['status']+_0x5248cf('0xb0b')+_0x2a448a[_0x5248cf('0x212f')]:_0x5248cf('0x21e9'),'msg':_0x2a448a[_0x5248cf('0x4e8')]?JSON['stringify'](_0x2a448a[_0x5248cf('0x4e8')][_0x5248cf('0x1b86')]):_0x2a448a[_0x5248cf('0x1b86')]||_0x2a448a[_0x5248cf('0xaab')]()});});}function _0x47c461(_0x50134b){const _0x2a4a70=_0x34bf9a;_0x5bee38[_0x2a4a70('0x1794')][_0x2a4a70('0xbdd')]({'id':_0x50134b})[_0x2a4a70('0x1549')]['then'](function(_0x10b52e){const _0x2bbeba=_0x2a4a70;_0x36f548()[_0x2bbeba('0x47b')](_0x5152ee[_0x2bbeba('0x206c')],_0x10b52e[0x0]);})[_0x2a4a70('0x151d')](function(_0x2fc7db){const _0x153754=_0x2a4a70;_0x2cb355['error']({'title':_0x2fc7db[_0x153754('0xff9')]?_0x153754('0x574')+_0x2fc7db[_0x153754('0xff9')]+'\x20-\x20'+_0x2fc7db[_0x153754('0x212f')]:_0x153754('0xc53'),'msg':_0x2fc7db[_0x153754('0x4e8')]?JSON[_0x153754('0x3e')](_0x2fc7db['data'][_0x153754('0x1b86')]):_0x2fc7db[_0x153754('0x1b86')]||_0x2fc7db[_0x153754('0xaab')]()});});}function _0x4033f5(_0x49af40){const _0x18a53c=_0x34bf9a,_0x5b47d9=_0x3c28df['confirm']()[_0x18a53c('0x134b')](_0x18a53c('0xa7e'))['htmlContent']('\x20Contacts\x20selected'+_0x18a53c('0x8ca'))[_0x18a53c('0xb2e')](_0x18a53c('0xa37'))[_0x18a53c('0x1e25')](_0x49af40)['ok']('OK')[_0x18a53c('0x26c9')]('CANCEL');_0x3c28df[_0x18a53c('0xb9')](_0x5b47d9)[_0x18a53c('0x11bf')](function(){const _0x380bb=_0x18a53c;_0x5152ee[_0x380bb('0x1b87')]['forEach'](function(_0x249c7d){_0x59245d(_0x249c7d);}),_0x5152ee[_0x380bb('0x1b87')]=[];});}function _0x55129d(_0x284a22,_0x19c1f2){const _0x1211f2=_0x34bf9a,_0x198648=_0x3c28df['confirm']()[_0x1211f2('0x134b')](_0x1211f2('0x10be'))[_0x1211f2('0x1d03')](''+'Contact'+''+'\x20will\x20be\x20restored.')[_0x1211f2('0xb2e')]('Restore\x20Contact')['targetEvent'](_0x19c1f2)['ok']('OK')[_0x1211f2('0x26c9')](_0x1211f2('0x772'));_0x3c28df['show'](_0x198648)[_0x1211f2('0x11bf')](function(){_0x59245d(_0x284a22);},function(){const _0x3ce6a5=_0x1211f2;console['log'](_0x3ce6a5('0x772'));});}function _0x58ba64(_0x51522e){const _0x2e6f77=_0x34bf9a,_0x2f2842={};return _0x2f2842['phone']=_0x51522e['calleridnum'],_0x2f2842[_0x2e6f77('0x16c')]=_0x57d4d1()()[_0x2e6f77('0x1826')](_0x2e6f77('0xfae')),_0x2f2842['countbusyretry']=0x0,_0x2f2842[_0x2e6f77('0x22df')]=0x0,_0x2f2842[_0x2e6f77('0x1b81')]=0x0,_0x2f2842[_0x2e6f77('0x21f9')]=0x0,_0x2f2842[_0x2e6f77('0x23f1')]=_0x51522e['ContactId'],_0x2f2842['ListId']=_0x51522e[_0x2e6f77('0x1e91')],_0x2f2842[_0x2e6f77('0x2342')]=_0x51522e[_0x2e6f77('0x1254')]?null:_0x51522e['UserId'],_0x2f2842[_0x2e6f77('0x19b6')]=_0x51522e['VoiceQueueId'],_0x2f2842[_0x2e6f77('0x23c3')]=_0x51522e['CampaignId'],_0x2f2842[_0x2e6f77('0x2804')]=_0x51522e['recallme']?0x3:0x2,_0x2f2842[_0x2e6f77('0x173e')]=_0x51522e[_0x2e6f77('0x173e')]?!![]:![],_0x2f2842;}function _0x59cc62(_0x3a8f33){const _0xdd2e9b=_0x34bf9a,_0x4162c3={};return _0x4162c3[_0xdd2e9b('0x1f8a')]=_0x3a8f33[_0xdd2e9b('0x1f8a')],_0x4162c3[_0xdd2e9b('0x5ed')]=_0x3a8f33[_0xdd2e9b('0x5ed')],_0x4162c3[_0xdd2e9b('0x16c')]=_0x57d4d1()()[_0xdd2e9b('0x1826')](_0xdd2e9b('0xfae')),_0x4162c3[_0xdd2e9b('0x268')]=_0x3a8f33[_0xdd2e9b('0x268')],_0x4162c3['countcongestionretry']=_0x3a8f33[_0xdd2e9b('0x22df')],_0x4162c3['countnoanswerretry']=_0x3a8f33[_0xdd2e9b('0x1b81')],_0x4162c3[_0xdd2e9b('0x21f9')]=_0x3a8f33[_0xdd2e9b('0x21f9')],_0x4162c3[_0xdd2e9b('0x23f1')]=_0x3a8f33[_0xdd2e9b('0x23f1')],_0x4162c3['ListId']=_0x3a8f33[_0xdd2e9b('0x1e91')],_0x4162c3['UserId']=_0x1140bd[_0xdd2e9b('0x2428')]()['id'],_0x4162c3[_0xdd2e9b('0x19b6')]=_0x3a8f33['VoiceQueueId'],_0x4162c3[_0xdd2e9b('0x23c3')]=_0x3a8f33[_0xdd2e9b('0x23c3')],_0x4162c3[_0xdd2e9b('0x264d')]=_0x57d4d1()()['format'](_0xdd2e9b('0xfae')),_0x4162c3[_0xdd2e9b('0x60f')]=!![],_0x4162c3[_0xdd2e9b('0x2124')]=0x19,_0x4162c3['statedesc']=_0xdd2e9b('0x2698'),_0x4162c3[_0xdd2e9b('0x145d')]=_0x3a8f33[_0xdd2e9b('0x145d')],_0x4162c3['campaigntype']=_0x3a8f33['VoiceQueueId']?_0xdd2e9b('0x150b'):_0xdd2e9b('0x1316'),_0x4162c3;}function _0x59245d(_0x1007cc){const _0x2d8d57=_0x34bf9a;_0x5bee38['cmHopperFinal'][_0x2d8d57('0x70d')](_0x1007cc)['$promise']['then'](function(_0x3d3565){const _0x497de3=_0x2d8d57;_0x2cb355['info']({'title':_0x497de3('0x1099'),'msg':_0x497de3('0x1d48')+_0x3d3565[_0x497de3('0x23f1')]});})[_0x2d8d57('0x151d')](function(_0x3257e2){const _0x3f46ac=_0x2d8d57;_0x3257e2[_0x3f46ac('0x4e8')]===_0x3f46ac('0xf4a')?_0x5bee38[_0x3f46ac('0x1d11')][_0x3f46ac('0x259')](_0x58ba64(_0x1007cc))[_0x3f46ac('0x1549')][_0x3f46ac('0x11bf')](function(_0x34f122){const _0x47bf21=_0x3f46ac;_0x2cb355[_0x47bf21('0x870')]({'title':_0x47bf21('0x149e'),'msg':'Contact\x20ID\x20'+_0x34f122[_0x47bf21('0x23f1')]}),_0x34f122[_0x47bf21('0x23f1')]&&_0x5bee38[_0x47bf21('0x246')][_0x47bf21('0x259')](_0x59cc62(_0x1007cc));})[_0x3f46ac('0x151d')](function(_0x27d051){const _0x165ff1=_0x3f46ac;!_0x36f548()[_0x165ff1('0x1a80')](_0x27d051[_0x165ff1('0x4e8')])&&_0x27d051['data'][_0x165ff1('0x1b86')]===_0x165ff1('0x2b2')?_0x2cb355[_0x165ff1('0x870')]({'title':_0x165ff1('0x1099'),'msg':_0x165ff1('0x1d48')+_0x1007cc['ContactId']}):_0x2cb355[_0x165ff1('0x255')]({'title':_0x27d051[_0x165ff1('0xff9')]?'API:'+_0x27d051['status']+_0x165ff1('0xb0b')+_0x27d051[_0x165ff1('0x212f')]:_0x165ff1('0x21e9'),'msg':_0x27d051[_0x165ff1('0x4e8')]?JSON[_0x165ff1('0x3e')](_0x27d051[_0x165ff1('0x4e8')][_0x165ff1('0x1b86')]):_0x27d051[_0x165ff1('0x1b86')]||_0x27d051[_0x165ff1('0xaab')]()});}):_0x2cb355[_0x3f46ac('0x255')]({'title':_0x3257e2[_0x3f46ac('0xff9')]?_0x3f46ac('0x574')+_0x3257e2[_0x3f46ac('0xff9')]+'\x20-\x20'+_0x3257e2[_0x3f46ac('0x212f')]:_0x3f46ac('0x21e9'),'msg':_0x3257e2[_0x3f46ac('0x4e8')]?JSON[_0x3f46ac('0x3e')](_0x3257e2[_0x3f46ac('0x4e8')][_0x3f46ac('0x1b86')]):_0x3257e2[_0x3f46ac('0x1b86')]||_0x3257e2[_0x3f46ac('0xaab')]()});});}let _0x3cfa98=!![],_0x44f750=0x1;_0xea968d['$watch'](_0x34bf9a('0x1d12'),function(_0x2570a6,_0xfb69b2){const _0x21f30f=_0x34bf9a;_0x3cfa98?_0x6a4b15(function(){_0x3cfa98=![];}):(!_0xfb69b2&&(_0x44f750=_0x5152ee[_0x21f30f('0x1f2a')]['page']),_0x2570a6!==_0xfb69b2&&(_0x5152ee[_0x21f30f('0x1f2a')][_0x21f30f('0x1c2')]=0x1),!_0x2570a6&&(_0x5152ee['query'][_0x21f30f('0x1c2')]=_0x44f750),_0x4db035());});}const _0x519bb8=_0x39d4e7;_0x3a90af[_0x21d0f5('0x1e9a')]=['$cookies',_0x21d0f5('0x1b80'),_0x21d0f5('0xcbc'),'$q','$translate','$timeout','$mdDialog','$document','toasty',_0x21d0f5('0x12a5'),_0x21d0f5('0x1150')];function _0x3a90af(_0x346db0,_0x19bf00,_0x2b927f,_0x39ee4e,_0x225e99,_0x16835f,_0x44295f,_0xaf22ab,_0x4a2bf7,_0x5a9f0d,_0x54a603){const _0x540e71=_0x21d0f5,_0x4a91de=this;_0x4a91de[_0x540e71('0x32a')]=_0x54a603[_0x540e71('0x2428')](),_0x4a91de[_0x540e71('0x13fa')]={},_0x4a91de['ivrCampaignHopperHistories']={'count':0x0,'rows':[]},_0x4a91de[_0x540e71('0x1f3c')]=[],_0x4a91de[_0x540e71('0xb25')],_0x4a91de['query']={'fields':'createdAt,updatedAt,uniqueid,ContactId,calleridnum,calleridname,statedesc,scheduledat,starttime,responsetime,endtime','sort':_0x540e71('0x1157'),'limit':0xa,'page':0x1},_0x4a91de['init']=_0x23dc49,_0x4a91de['deleteConfirm']=_0x37f0b7,_0x4a91de[_0x540e71('0x2693')]=_0x46ab2e,_0x4a91de[_0x540e71('0x61b')]=_0xa0a690,_0x4a91de[_0x540e71('0x2312')]=_0x4fa97f,_0x4a91de[_0x540e71('0xe03')]=_0x2b9685,_0x4a91de[_0x540e71('0x167d')]=_0x2e3c97;function _0x23dc49(_0x11d660,_0x42b6bd){const _0x16d224=_0x540e71;_0x4a91de[_0x16d224('0x13fa')]=_0x11d660,_0x4a91de['crudPermissions']=typeof _0x42b6bd!==_0x16d224('0x13e9')?_0x42b6bd:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x4a91de[_0x16d224('0x1f2a')][_0x16d224('0x23c3')]=_0x4a91de[_0x16d224('0x13fa')]['id'],_0x4a91de[_0x16d224('0x1f2a')]['id']=_0x4a91de[_0x16d224('0x13fa')]['id'],_0xa0a690();}function _0x37f0b7(_0x3679a2,_0x137991){const _0x24af3d=_0x540e71,_0x58ec10=_0x44295f[_0x24af3d('0x132b')]()[_0x24af3d('0x134b')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20hopperHistory?')[_0x24af3d('0x1d03')](_0x24af3d('0x2061')+(_0x3679a2[_0x24af3d('0x1909')]||_0x3679a2['id']&&_0x36f548()[_0x24af3d('0x24b5')]('hopperHistory\x20#')+_0x3679a2['id']||_0x24af3d('0x1803'))+_0x24af3d('0x1c78')+_0x24af3d('0x1a'))[_0x24af3d('0xb2e')]('delete\x20hopperHistory')['targetEvent'](_0x137991)['ok']('OK')[_0x24af3d('0x26c9')]('CANCEL');_0x44295f['show'](_0x58ec10)[_0x24af3d('0x11bf')](function(){_0x2b9685(_0x3679a2);},function(){const _0x170691=_0x24af3d;console[_0x170691('0xc78')](_0x170691('0x772'));});}function _0x46ab2e(_0x534b0c){_0x4a91de['ivrCampaignHopperHistories']=_0x534b0c||{'count':0x0,'rows':[]};}function _0xa0a690(){const _0x414958=_0x540e71;_0x4a91de['query'][_0x414958('0x1393')]=(_0x4a91de[_0x414958('0x1f2a')][_0x414958('0x1c2')]-0x1)*_0x4a91de[_0x414958('0x1f2a')]['limit'],_0x4a91de[_0x414958('0x13f')]=_0x5a9f0d[_0x414958('0x145d')]['getHopperHistories'](_0x4a91de[_0x414958('0x1f2a')],_0x46ab2e)['$promise'];}function _0x2b9685(_0x2bca26){const _0xb3c1bb=_0x540e71;_0x5a9f0d[_0xb3c1bb('0x1803')][_0xb3c1bb('0x2088')]({'id':_0x2bca26['id']})[_0xb3c1bb('0x1549')][_0xb3c1bb('0x11bf')](function(){const _0x39cf35=_0xb3c1bb;_0x36f548()[_0x39cf35('0x14a5')](_0x4a91de[_0x39cf35('0xf29')][_0x39cf35('0x19b2')],{'id':_0x2bca26['id']}),_0x4a91de[_0x39cf35('0xf29')]['count']-=0x1,!_0x4a91de['ivrCampaignHopperHistories'][_0x39cf35('0x19b2')][_0x39cf35('0x1e22')]&&_0xa0a690(),_0x4a2bf7[_0x39cf35('0x2693')]({'title':_0x39cf35('0x234a'),'msg':_0x2bca26[_0x39cf35('0x1909')]?_0x2bca26['name']+_0x39cf35('0x433'):''});})[_0xb3c1bb('0x151d')](function(_0x127f95){const _0x2ec24c=_0xb3c1bb;if(_0x127f95[_0x2ec24c('0x4e8')]&&_0x127f95[_0x2ec24c('0x4e8')][_0x2ec24c('0x120f')]&&_0x127f95[_0x2ec24c('0x4e8')][_0x2ec24c('0x120f')][_0x2ec24c('0x1e22')]){_0x4a91de['errors']=_0x127f95[_0x2ec24c('0x4e8')][_0x2ec24c('0x120f')]||[{'message':_0x127f95[_0x2ec24c('0xaab')](),'type':_0x2ec24c('0xc53')}];for(let _0x1f6948=0x0;_0x1f6948<_0x127f95['data'][_0x2ec24c('0x120f')][_0x2ec24c('0x1e22')];_0x1f6948++){_0x4a2bf7[_0x2ec24c('0x255')]({'title':_0x127f95['data'][_0x2ec24c('0x120f')][_0x1f6948][_0x2ec24c('0x19fd')],'msg':_0x127f95[_0x2ec24c('0x4e8')][_0x2ec24c('0x120f')][_0x1f6948][_0x2ec24c('0x1b86')]});}}else _0x4a2bf7['error']({'title':_0x127f95[_0x2ec24c('0xff9')]?'API:'+_0x127f95[_0x2ec24c('0xff9')]+_0x2ec24c('0xb0b')+_0x127f95['statusText']:_0x2ec24c('0xc53'),'msg':_0x127f95[_0x2ec24c('0x4e8')]?JSON[_0x2ec24c('0x3e')](_0x127f95[_0x2ec24c('0x4e8')][_0x2ec24c('0x1b86')]):_0x127f95[_0x2ec24c('0x1b86')]||_0x127f95[_0x2ec24c('0xaab')]()});});}function _0x4fa97f(){const _0x206786=_0x540e71,_0x46475d=angular['copy'](_0x4a91de[_0x206786('0x1f3c')]);return _0x4a91de[_0x206786('0x1f3c')]=[],_0x46475d;}function _0x2e3c97(_0x1a8dbd){const _0x56b1f5=_0x540e71,_0xa2934a=_0x44295f[_0x56b1f5('0x132b')]()['title'](_0x56b1f5('0x1954'))[_0x56b1f5('0x1d03')](_0x56b1f5('0x2061')+_0x4a91de[_0x56b1f5('0x1f3c')][_0x56b1f5('0x1e22')]+_0x56b1f5('0xac6')+_0x56b1f5('0x1a'))[_0x56b1f5('0xb2e')]('delete\x20hopperHistories')[_0x56b1f5('0x1e25')](_0x1a8dbd)['ok']('OK')[_0x56b1f5('0x26c9')](_0x56b1f5('0x772'));_0x44295f['show'](_0xa2934a)[_0x56b1f5('0x11bf')](function(){const _0x2b21a9=_0x56b1f5;_0x4a91de['selectedIvrCampaignHopperHistories'][_0x2b21a9('0x1f88')](function(_0x4e0262){_0x2b9685(_0x4e0262);}),_0x4a91de[_0x2b21a9('0x1f3c')]=[];});}let _0x3decdd=!![],_0x31b834=0x1;_0x19bf00[_0x540e71('0x2087')](_0x540e71('0x1d12'),function(_0x41ca11,_0x5d7c54){const _0x1fbdb2=_0x540e71;_0x3decdd?_0x16835f(function(){_0x3decdd=![];}):(!_0x5d7c54&&(_0x31b834=_0x4a91de[_0x1fbdb2('0x1f2a')][_0x1fbdb2('0x1c2')]),_0x41ca11!==_0x5d7c54&&(_0x4a91de[_0x1fbdb2('0x1f2a')][_0x1fbdb2('0x1c2')]=0x1),!_0x41ca11&&(_0x4a91de[_0x1fbdb2('0x1f2a')][_0x1fbdb2('0x1c2')]=_0x31b834),_0xa0a690());});}const _0x5be0fc=_0x3a90af;_0x48b4d1[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x5d8'),'$scope',_0x21d0f5('0xcbc'),'$q',_0x21d0f5('0xb6b'),_0x21d0f5('0x17f5'),_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),_0x21d0f5('0x142d'),_0x21d0f5('0x12a5'),'Auth'];function _0x48b4d1(_0x3dc3a2,_0x3b022b,_0x56dbaf,_0x4a567a,_0x13cffd,_0x328114,_0x34499b,_0x194c0c,_0x49664a,_0xb1ef5a,_0x2e94c2){const _0x4b8613=_0x21d0f5,_0x4c3918=this;_0x4c3918['currentUser']=_0x2e94c2[_0x4b8613('0x2428')](),_0x4c3918['ivrCampaign']={},_0x4c3918[_0x4b8613('0x168f')]={'count':0x0,'rows':[]},_0x4c3918['selectedIvrCampaignHoppers']=[],_0x4c3918[_0x4b8613('0xb25')],_0x4c3918[_0x4b8613('0x1f2a')]={'fields':'createdAt,updatedAt,id,ContactId,phone,countcongestionretry,countbusyretry,countnoanswerretry,countnosuchnumberretry,countdropretry,countabandonedretry,countmachineretry,countagentrejectretry,scheduledat,priority','sort':'-updatedAt','limit':0xa,'page':0x1},_0x4c3918[_0x4b8613('0x1337')]=_0x36f548()['keyBy']([{'option':_0x4b8613('0x2f9'),'value':_0x4b8613('0x21bf')},{'option':_0x4b8613('0x947'),'value':_0x4b8613('0x1392')},{'option':_0x4b8613('0x1fec'),'value':_0x4b8613('0x786')},{'option':'Low','value':_0x4b8613('0x211f')},{'option':_0x4b8613('0x1f9b'),'value':_0x4b8613('0x7d2')}],function(_0x32c0ad){const _0x113b6d=_0x4b8613;return _0x36f548()[_0x113b6d('0x814')](_0x32c0ad[_0x113b6d('0x10cc')],new RegExp('\x27','g'),'');}),_0x4c3918[_0x4b8613('0x286f')]=_0x4bcfc8,_0x4c3918[_0x4b8613('0x560')]=_0xccf3fe,_0x4c3918[_0x4b8613('0x2693')]=_0x59f701,_0x4c3918[_0x4b8613('0xb8d')]=_0x307f3d,_0x4c3918[_0x4b8613('0x128b')]=_0x2d8631,_0x4c3918[_0x4b8613('0x1545')]=_0x5d1c36,_0x4c3918[_0x4b8613('0x1fcd')]=_0x2a5a74,_0x4c3918[_0x4b8613('0x128a')]=_0x332795,_0x2e94c2[_0x4b8613('0x4ee')](_0x4b8613('0xf45'))?_0xb1ef5a[_0x4b8613('0x21d9')]['get']({'fields':_0x4b8613('0x721'),'role':'agent','sort':_0x4b8613('0x1909'),'nolimit':'true'})[_0x4b8613('0x1549')][_0x4b8613('0x11bf')](function(_0x363a2e){const _0x4ad5c9=_0x4b8613;_0x4c3918[_0x4ad5c9('0x1401')]=_0x363a2e['rows']||[];})[_0x4b8613('0x151d')](function(_0x8a86cf){const _0x3f6234=_0x4b8613;_0x49664a['error']({'title':_0x8a86cf['status']?'API:'+_0x8a86cf[_0x3f6234('0xff9')]+_0x3f6234('0xb0b')+_0x8a86cf['statusText']:_0x3f6234('0x912'),'msg':_0x8a86cf[_0x3f6234('0x4e8')]?JSON[_0x3f6234('0x3e')](_0x8a86cf['data']):_0x8a86cf['toString']()});}):_0xb1ef5a[_0x4b8613('0x21d9')][_0x4b8613('0xbaa')]({'fields':_0x4b8613('0x721'),'role':_0x4b8613('0x18c4'),'sort':_0x4b8613('0x1909'),'nolimit':_0x4b8613('0x204c')})['$promise']['then'](function(_0x377af4){const _0x204a21=_0x4b8613;_0x4c3918[_0x204a21('0x1401')]=_0x377af4[_0x204a21('0x19b2')]||[];})[_0x4b8613('0x11bf')](function(){const _0x1fbc13=_0x4b8613;return _0xb1ef5a[_0x1fbc13('0x1d63')][_0x1fbc13('0xbaa')]({'userProfileId':_0x4c3918['currentUser']['userProfileId'],'sectionId':0xca})[_0x1fbc13('0x1549')];})[_0x4b8613('0x11bf')](function(_0x2513ba){const _0x17a4d6=_0x4b8613,_0x341ff1=_0x2513ba&&_0x2513ba['rows']?_0x2513ba[_0x17a4d6('0x19b2')][0x0]:null;if(!_0x341ff1)_0x4c3918[_0x17a4d6('0x1401')]=[];else{if(!_0x341ff1[_0x17a4d6('0xf11')])return _0xb1ef5a[_0x17a4d6('0x26d1')][_0x17a4d6('0xbaa')]({'sectionId':_0x341ff1['id']})[_0x17a4d6('0x1549')][_0x17a4d6('0x11bf')](function(_0x450cd5){const _0x32dd79=_0x17a4d6,_0x5097f1=_0x36f548()[_0x32dd79('0x2171')](_0x450cd5[_0x32dd79('0x19b2')],function(_0x2bb683){const _0x43fdbc=_0x32dd79;return _0x36f548()['find'](_0x4c3918[_0x43fdbc('0x1401')],{'id':_0x2bb683[_0x43fdbc('0x15a5')]});});_0x4c3918[_0x32dd79('0x1401')][_0x32dd79('0x1f88')](function(_0x25250d){const _0x1fd57a=_0x32dd79;!_0x36f548()['some'](_0x5097f1,['id',_0x25250d['id']])&&(_0x25250d[_0x1fd57a('0x254a')]=![]),_0x5097f1[_0x1fd57a('0x105d')](_0x25250d);}),_0x4c3918['agents']=_0x5097f1;});}})['catch'](function(_0x17a654){const _0x4f8e25=_0x4b8613;_0x49664a[_0x4f8e25('0x255')]({'title':_0x17a654[_0x4f8e25('0xff9')]?_0x4f8e25('0x574')+_0x17a654[_0x4f8e25('0xff9')]+'\x20-\x20'+_0x17a654[_0x4f8e25('0x212f')]:_0x4f8e25('0x1939'),'msg':_0x17a654[_0x4f8e25('0x4e8')]?JSON[_0x4f8e25('0x3e')](_0x17a654[_0x4f8e25('0x4e8')]):_0x17a654[_0x4f8e25('0xaab')]()});});function _0x4bcfc8(_0x941884,_0x5d7764){const _0x37fb13=_0x4b8613;_0x4c3918['ivrCampaign']=_0x941884,_0x4c3918['crudPermissions']=typeof _0x5d7764!==_0x37fb13('0x13e9')?_0x5d7764:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x4c3918[_0x37fb13('0x1f2a')][_0x37fb13('0x23c3')]=_0x4c3918[_0x37fb13('0x13fa')]['id'],_0x4c3918[_0x37fb13('0x1f2a')]['id']=_0x4c3918[_0x37fb13('0x13fa')]['id'],_0x307f3d();}function _0xccf3fe(_0x1687fa,_0x4088cc){const _0x5b9919=_0x4b8613,_0x4be6f8=_0x34499b[_0x5b9919('0x132b')]()[_0x5b9919('0x134b')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20hopper?')[_0x5b9919('0x1d03')](''+(_0x1687fa[_0x5b9919('0x1909')]||_0x1687fa['id']&&_0x36f548()[_0x5b9919('0x24b5')]('hopper\x20#')+_0x1687fa['id']||_0x5b9919('0x244f'))+_0x5b9919('0x1c78')+'\x20will\x20be\x20deleted.')[_0x5b9919('0xb2e')](_0x5b9919('0x10e7'))[_0x5b9919('0x1e25')](_0x4088cc)['ok']('OK')[_0x5b9919('0x26c9')](_0x5b9919('0x772'));_0x34499b[_0x5b9919('0xb9')](_0x4be6f8)[_0x5b9919('0x11bf')](function(){_0x2a5a74(_0x1687fa);},function(){const _0x3e32b0=_0x5b9919;console[_0x3e32b0('0xc78')]('CANCEL');});}function _0x59f701(_0x571040){_0x4c3918['ivrCampaignHoppers']=_0x571040||{'count':0x0,'rows':[]};}function _0x307f3d(){const _0x4c9f74=_0x4b8613;_0x4c3918[_0x4c9f74('0x1f2a')][_0x4c9f74('0x1393')]=(_0x4c3918[_0x4c9f74('0x1f2a')][_0x4c9f74('0x1c2')]-0x1)*_0x4c3918[_0x4c9f74('0x1f2a')][_0x4c9f74('0xd5c')],_0x4c3918[_0x4c9f74('0x13f')]=_0xb1ef5a[_0x4c9f74('0x145d')]['getHoppers'](_0x4c3918[_0x4c9f74('0x1f2a')],_0x59f701)[_0x4c9f74('0x1549')];}function _0x2d8631(_0x2d60ed,_0x38c0c0){const _0x498894=_0x4b8613;_0x34499b['show']({'controller':_0x498894('0x1e24'),'controllerAs':'vm','templateUrl':_0x4f93d4,'parent':angular[_0x498894('0x1e73')](_0x194c0c[_0x498894('0x1d2')]),'targetEvent':_0x2d60ed,'clickOutsideToClose':!![],'locals':{'ivrCampaign':_0x4c3918['ivrCampaign'],'hopper':_0x38c0c0,'hoppers':_0x4c3918[_0x498894('0x168f')][_0x498894('0x19b2')],'license':null,'setting':null,'crudPermissions':_0x4c3918[_0x498894('0xb25')]}});}function _0x2a5a74(_0x2e257b){const _0x2d7eaa=_0x4b8613;_0xb1ef5a[_0x2d7eaa('0x1d11')][_0x2d7eaa('0x2088')]({'id':_0x2e257b['id']})['$promise']['then'](function(){const _0x35fbe1=_0x2d7eaa;_0x36f548()[_0x35fbe1('0x14a5')](_0x4c3918['ivrCampaignHoppers']['rows'],{'id':_0x2e257b['id']}),_0x4c3918['ivrCampaignHoppers'][_0x35fbe1('0x27d2')]-=0x1,!_0x4c3918[_0x35fbe1('0x168f')][_0x35fbe1('0x19b2')][_0x35fbe1('0x1e22')]&&_0x307f3d(),_0x49664a['success']({'title':_0x35fbe1('0x1aa8'),'msg':_0x2e257b[_0x35fbe1('0x1909')]?_0x2e257b[_0x35fbe1('0x1909')]+'\x20has\x20been\x20deleted!':''});})['catch'](function(_0x42c99b){const _0x2c91a1=_0x2d7eaa;if(_0x42c99b['data']&&_0x42c99b['data'][_0x2c91a1('0x120f')]&&_0x42c99b[_0x2c91a1('0x4e8')][_0x2c91a1('0x120f')]['length']){_0x4c3918[_0x2c91a1('0x120f')]=_0x42c99b[_0x2c91a1('0x4e8')][_0x2c91a1('0x120f')]||[{'message':_0x42c99b[_0x2c91a1('0xaab')](),'type':_0x2c91a1('0xc53')}];for(let _0x147c6c=0x0;_0x147c6c<_0x42c99b['data']['errors']['length'];_0x147c6c++){_0x49664a[_0x2c91a1('0x255')]({'title':_0x42c99b['data'][_0x2c91a1('0x120f')][_0x147c6c][_0x2c91a1('0x19fd')],'msg':_0x42c99b[_0x2c91a1('0x4e8')][_0x2c91a1('0x120f')][_0x147c6c][_0x2c91a1('0x1b86')]});}}else _0x49664a[_0x2c91a1('0x255')]({'title':_0x42c99b['status']?_0x2c91a1('0x574')+_0x42c99b[_0x2c91a1('0xff9')]+_0x2c91a1('0xb0b')+_0x42c99b['statusText']:_0x2c91a1('0xc53'),'msg':_0x42c99b['data']?JSON[_0x2c91a1('0x3e')](_0x42c99b[_0x2c91a1('0x4e8')]['message']):_0x42c99b[_0x2c91a1('0x1b86')]||_0x42c99b[_0x2c91a1('0xaab')]()});});}function _0x5d1c36(){const _0x246f2c=_0x4b8613,_0x2fe263=angular['copy'](_0x4c3918[_0x246f2c('0x1a50')]);return _0x4c3918[_0x246f2c('0x1a50')]=[],_0x2fe263;}function _0x332795(_0x553cca){const _0x4edeaa=_0x4b8613,_0x4d8375=_0x34499b[_0x4edeaa('0x132b')]()['title'](_0x4edeaa('0x1ac5'))[_0x4edeaa('0x1d03')](_0x4edeaa('0x2061')+_0x4c3918[_0x4edeaa('0x1a50')][_0x4edeaa('0x1e22')]+_0x4edeaa('0xac6')+_0x4edeaa('0x1a'))['ariaLabel']('delete\x20hoppers')[_0x4edeaa('0x1e25')](_0x553cca)['ok']('OK')['cancel']('CANCEL');_0x34499b[_0x4edeaa('0xb9')](_0x4d8375)['then'](function(){const _0x181472=_0x4edeaa;_0x4c3918[_0x181472('0x1a50')][_0x181472('0x1f88')](function(_0x3dcc31){_0x2a5a74(_0x3dcc31);}),_0x4c3918[_0x181472('0x1a50')]=[];});}let _0x31df78=!![],_0x4b8531=0x1;_0x3b022b[_0x4b8613('0x2087')](_0x4b8613('0x1d12'),function(_0x4247d1,_0x2f0257){const _0x314bf4=_0x4b8613;_0x31df78?_0x328114(function(){_0x31df78=![];}):(!_0x2f0257&&(_0x4b8531=_0x4c3918[_0x314bf4('0x1f2a')]['page']),_0x4247d1!==_0x2f0257&&(_0x4c3918[_0x314bf4('0x1f2a')][_0x314bf4('0x1c2')]=0x1),!_0x4247d1&&(_0x4c3918[_0x314bf4('0x1f2a')][_0x314bf4('0x1c2')]=_0x4b8531),_0x307f3d());});}const _0x5b15df=_0x48b4d1;_0x26a36e[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0xcbc'),_0x21d0f5('0x16b9'),_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0xb6b'),_0x21d0f5('0x142d'),'hoppers',_0x21d0f5('0x244f'),_0x21d0f5('0x12a5'),'Auth',_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1'),_0x21d0f5('0xb25')];function _0x26a36e(_0x48a7ea,_0x5ce433,_0xc06f2,_0x2d7e4b,_0x105e67,_0x36fe56,_0x21f7ac,_0x474104,_0x3dc019,_0x4c7f39,_0x37a23c,_0x3d7fff,_0xfa255a,_0x1f8047){const _0x5135bb=_0x21d0f5,_0x1098d3=this;_0x1098d3[_0x5135bb('0x32a')]=_0x37a23c[_0x5135bb('0x2428')](),_0x1098d3[_0x5135bb('0x120f')]=[],_0x1098d3[_0x5135bb('0x23e1')]=_0xfa255a,_0x1098d3[_0x5135bb('0x17ff')]=_0x3d7fff,_0x1098d3['crudPermissions']=_0x1f8047,_0x1098d3[_0x5135bb('0x2c9')]={},_0x1098d3[_0x5135bb('0x2834')]=_0x1098d3[_0x5135bb('0x23e1')]&&_0x1098d3['setting'][_0x5135bb('0x1d4')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1098d3['title']=_0x5135bb('0x1b08'),_0x1098d3['hopper']=angular[_0x5135bb('0x6fb')](_0x3dc019),_0x1098d3['hoppers']=_0x474104,_0x1098d3[_0x5135bb('0x201f')]=![];!_0x1098d3['hopper']&&(_0x1098d3[_0x5135bb('0x244f')]={},_0x1098d3['title']='MOTIONDIALER.NEW_HOPPER',_0x1098d3[_0x5135bb('0x201f')]=!![]);_0x5ce433[_0x5135bb('0x1ab3')]['id']&&(_0x1098d3['hopper'][_0x5135bb('0x23c3')]=_0x5ce433[_0x5135bb('0x1ab3')]['id']);_0x1098d3[_0x5135bb('0x51f')]=_0x28f534,_0x1098d3['saveHopper']=_0x14850f,_0x1098d3[_0x5135bb('0x1ec7')]=_0x1bdec8,_0x1098d3[_0x5135bb('0x1bd1')]=_0x5684de,_0x1098d3['closeDialog']=_0x412624,_0x37a23c[_0x5135bb('0x4ee')]('admin')?_0x4c7f39['user']['get']({'fields':_0x5135bb('0x721'),'role':_0x5135bb('0x18c4'),'sort':_0x5135bb('0x1909'),'nolimit':_0x5135bb('0x204c')})[_0x5135bb('0x1549')][_0x5135bb('0x11bf')](function(_0x1baa92){const _0x4f890b=_0x5135bb;_0x1098d3[_0x4f890b('0x1401')]=_0x1baa92[_0x4f890b('0x19b2')]||[];})[_0x5135bb('0x151d')](function(_0x2ca902){const _0x35ff7f=_0x5135bb;_0x21f7ac[_0x35ff7f('0x255')]({'title':_0x2ca902[_0x35ff7f('0xff9')]?_0x35ff7f('0x574')+_0x2ca902[_0x35ff7f('0xff9')]+'\x20-\x20'+_0x2ca902['statusText']:_0x35ff7f('0x912'),'msg':_0x2ca902[_0x35ff7f('0x4e8')]?JSON[_0x35ff7f('0x3e')](_0x2ca902[_0x35ff7f('0x4e8')]):_0x2ca902[_0x35ff7f('0xaab')]()});}):_0x4c7f39[_0x5135bb('0x21d9')][_0x5135bb('0xbaa')]({'fields':_0x5135bb('0x721'),'role':_0x5135bb('0x18c4'),'sort':_0x5135bb('0x1909'),'nolimit':'true'})[_0x5135bb('0x1549')][_0x5135bb('0x11bf')](function(_0x594fe8){const _0x19849b=_0x5135bb;_0x1098d3[_0x19849b('0x1401')]=_0x594fe8[_0x19849b('0x19b2')]||[];})[_0x5135bb('0x11bf')](function(){const _0x2777c8=_0x5135bb;return _0x4c7f39['userProfileSection'][_0x2777c8('0xbaa')]({'userProfileId':_0x1098d3['currentUser'][_0x2777c8('0x781')],'sectionId':0xca})[_0x2777c8('0x1549')];})[_0x5135bb('0x11bf')](function(_0x5ba72b){const _0x5ca132=_0x5135bb,_0x63496e=_0x5ba72b&&_0x5ba72b[_0x5ca132('0x19b2')]?_0x5ba72b[_0x5ca132('0x19b2')][0x0]:null;if(!_0x63496e)_0x1098d3['agents']=[];else{if(!_0x63496e[_0x5ca132('0xf11')])return _0x4c7f39[_0x5ca132('0x26d1')][_0x5ca132('0xbaa')]({'sectionId':_0x63496e['id']})[_0x5ca132('0x1549')][_0x5ca132('0x11bf')](function(_0x158f48){const _0x561ae1=_0x5ca132,_0x3f50f6=_0x36f548()[_0x561ae1('0x2171')](_0x158f48[_0x561ae1('0x19b2')],function(_0x5e6959){const _0x3cc7c4=_0x561ae1;return _0x36f548()[_0x3cc7c4('0x1ad4')](_0x1098d3[_0x3cc7c4('0x1401')],{'id':_0x5e6959[_0x3cc7c4('0x15a5')]});});_0x1098d3['agents'][_0x561ae1('0x1f88')](function(_0xc41f80){const _0x2a374e=_0x561ae1;!_0x36f548()[_0x2a374e('0x1cb3')](_0x3f50f6,['id',_0xc41f80['id']])&&(_0xc41f80['canSelect']=![]),_0x3f50f6[_0x2a374e('0x105d')](_0xc41f80);}),_0x1098d3[_0x561ae1('0x1401')]=_0x3f50f6;});}})[_0x5135bb('0x151d')](function(_0x473759){const _0x195e35=_0x5135bb;_0x21f7ac[_0x195e35('0x255')]({'title':_0x473759[_0x195e35('0xff9')]?_0x195e35('0x574')+_0x473759[_0x195e35('0xff9')]+_0x195e35('0xb0b')+_0x473759['statusText']:_0x195e35('0x1939'),'msg':_0x473759[_0x195e35('0x4e8')]?JSON[_0x195e35('0x3e')](_0x473759['data']):_0x473759[_0x195e35('0xaab')]()});});function _0x28f534(){const _0x3860ae=_0x5135bb;_0x1098d3[_0x3860ae('0x120f')]=[],_0x4c7f39[_0x3860ae('0x1d11')][_0x3860ae('0x259')](_0x1098d3['hopper'])[_0x3860ae('0x1549')]['then'](function(_0x15eccb){const _0x39a436=_0x3860ae;_0x1098d3['hoppers'][_0x39a436('0x880')](_0x15eccb['toJSON']()),_0x21f7ac[_0x39a436('0x2693')]({'title':_0x39a436('0x145a'),'msg':_0x1098d3[_0x39a436('0x244f')]['name']?_0x1098d3[_0x39a436('0x244f')]['name']+_0x39a436('0x7fb'):''}),_0x412624(_0x15eccb);})[_0x3860ae('0x151d')](function(_0x39a4bf){const _0x253dee=_0x3860ae;if(_0x39a4bf['data']&&_0x39a4bf['data'][_0x253dee('0x120f')]&&_0x39a4bf[_0x253dee('0x4e8')]['errors'][_0x253dee('0x1e22')]){_0x1098d3['errors']=_0x39a4bf[_0x253dee('0x4e8')]['errors']||[{'message':_0x39a4bf[_0x253dee('0xaab')](),'type':_0x253dee('0x1a7d')}];for(let _0xa253c1=0x0;_0xa253c1<_0x39a4bf[_0x253dee('0x4e8')]['errors'][_0x253dee('0x1e22')];_0xa253c1+=0x1){_0x21f7ac[_0x253dee('0x255')]({'title':_0x39a4bf['data'][_0x253dee('0x120f')][_0xa253c1][_0x253dee('0x19fd')],'msg':_0x39a4bf[_0x253dee('0x4e8')]['errors'][_0xa253c1]['message']});}}else _0x21f7ac[_0x253dee('0x255')]({'title':_0x39a4bf['status']?_0x253dee('0x574')+_0x39a4bf[_0x253dee('0xff9')]+_0x253dee('0xb0b')+_0x39a4bf[_0x253dee('0x212f')]:'api.cmHopper.save','msg':_0x39a4bf[_0x253dee('0x4e8')]?JSON['stringify'](_0x39a4bf[_0x253dee('0x4e8')][_0x253dee('0x1b86')]):_0x39a4bf[_0x253dee('0xaab')]()});});}function _0x14850f(){const _0x256afd=_0x5135bb;_0x1098d3[_0x256afd('0x120f')]=[];let _0x3b557c,_0x505175,_0xefafee,_0x49a274;_0x1098d3[_0x256afd('0x244f')]['UserId']=_0x1098d3[_0x256afd('0x244f')][_0x256afd('0x173e')]?_0x1098d3[_0x256afd('0x244f')]['UserId']:null,_0x1098d3['hopper'][_0x256afd('0x1f27')]=_0x37a23c[_0x256afd('0x2428')]()['id'],_0x4c7f39[_0x256afd('0x1d11')][_0x256afd('0xbaa')]({'id':_0x1098d3[_0x256afd('0x244f')]['id'],'attributes':[_0x256afd('0x16c')]})[_0x256afd('0x1549')][_0x256afd('0x11bf')](function(_0x25be68){const _0x3409cb=_0x256afd;_0x36f548()[_0x3409cb('0x1a80')](_0x25be68)||_0x36f548()[_0x3409cb('0x1fc5')](_0x25be68)?_0x3b557c=_0x57d4d1()()[_0x3409cb('0x1826')]('YYYY-MM-DD\x20HH:mm:ss'):_0x3b557c=_0x25be68[_0x3409cb('0x16c')];})[_0x256afd('0xa9b')](function(){const _0x53e234=_0x256afd;_0x4c7f39[_0x53e234('0x1d11')][_0x53e234('0x5ab')]({'id':_0x1098d3['hopper']['id']},_0x36f548()['omit'](_0x1098d3[_0x53e234('0x244f')],[_0x53e234('0x19b6'),_0x53e234('0x23c3'),'ContactId',_0x53e234('0x1e91')]))['$promise'][_0x53e234('0x11bf')](function(_0x3ab705){const _0xc36524=_0x53e234;_0x505175=_0x3ab705,_0x4c7f39['cmContact'][_0xc36524('0xbaa')]({'id':_0x505175['ContactId'],'attributes':['firstName',_0xc36524('0xcf3')]})['$promise'][_0xc36524('0x11bf')](function(_0x13ddd0){const _0x158371=_0xc36524;!_0x36f548()[_0x158371('0x1a80')](_0x13ddd0)&&!_0x36f548()[_0x158371('0x1a80')](_0x13ddd0[_0x158371('0x13a0')])&&(_0xefafee=_0x13ddd0[_0x158371('0x13a0')],!_0x36f548()[_0x158371('0x1a80')](_0x13ddd0[_0x158371('0xcf3')])&&(_0xefafee+='\x20'+_0x13ddd0[_0x158371('0xcf3')]));})[_0xc36524('0x151d')](function(){_0xefafee=undefined;})[_0xc36524('0xa9b')](function(){const _0x5da0a9=_0xc36524;_0x4c7f39['campaign'][_0x5da0a9('0xbaa')]({'raw':![],'id':_0x505175[_0x5da0a9('0x23c3')],'attributes':[_0x5da0a9('0x1909')]})['$promise'][_0x5da0a9('0x11bf')](function(_0x11153f){const _0x1e9da7=_0x5da0a9;_0x49a274=_0x11153f[_0x1e9da7('0x1909')];})[_0x5da0a9('0x151d')](function(){_0x49a274=undefined;})['finally'](function(){const _0x2b0d5a=_0x5da0a9;_0x4c7f39[_0x2b0d5a('0x246')][_0x2b0d5a('0x259')]({'state':0x18,'statedesc':_0x2b0d5a('0x1e2f'),'scheduledat':_0x3b557c,'calleridnum':_0x505175[_0x2b0d5a('0x1546')],'calleridname':_0xefafee,'campaigntype':_0x505175[_0x2b0d5a('0x19b6')]?_0x2b0d5a('0x150b'):'ivr','campaign':_0x49a274,'editedat':_0x57d4d1()()[_0x2b0d5a('0x1826')](_0x2b0d5a('0xfae')),'edited':!![],'ListId':_0x505175[_0x2b0d5a('0x1e91')],'UserId':_0x37a23c['getCurrentUser']()['id'],'VoiceQueueId':_0x505175[_0x2b0d5a('0x19b6')],'CampaignId':_0x505175['CampaignId'],'ContactId':_0x505175['ContactId'],'callback':_0x505175['callback'],'callbackuniqueid':_0x505175[_0x2b0d5a('0x1c38')],'countbusyretry':_0x505175[_0x2b0d5a('0x268')],'countcongestionretry':_0x505175[_0x2b0d5a('0x22df')],'countglobal':_0x505175[_0x2b0d5a('0x21f9')],'countnoanswerretry':_0x505175[_0x2b0d5a('0x1b81')],'followuptime':_0x505175[_0x2b0d5a('0x18fb')],'recallme':_0x505175[_0x2b0d5a('0x173e')]});});});const _0x313dc6=_0x36f548()[_0xc36524('0x1ad4')](_0x1098d3[_0xc36524('0xc8d')],{'id':_0x3ab705['id']});_0x313dc6&&_0x36f548()[_0xc36524('0x47b')](_0x313dc6,_0x36f548()[_0xc36524('0x258')](_0x3ab705[_0xc36524('0x2866')](),_0x36f548()['keys'](_0x313dc6))),_0x21f7ac['success']({'title':_0xc36524('0x1e59'),'msg':_0x1098d3['hopper'][_0xc36524('0x1909')]?_0x1098d3[_0xc36524('0x244f')][_0xc36524('0x1909')]+_0xc36524('0x1a78'):''}),_0x412624(_0x3ab705);})[_0x53e234('0x151d')](function(_0x2f81d5){const _0x1c1790=_0x53e234;if(_0x2f81d5[_0x1c1790('0x4e8')]&&_0x2f81d5[_0x1c1790('0x4e8')][_0x1c1790('0x120f')]&&_0x2f81d5[_0x1c1790('0x4e8')][_0x1c1790('0x120f')]['length']){_0x1098d3[_0x1c1790('0x120f')]=_0x2f81d5[_0x1c1790('0x4e8')][_0x1c1790('0x120f')]||[{'message':_0x2f81d5['toString'](),'type':_0x1c1790('0x25d9')}];for(let _0x3a36d1=0x0;_0x3a36d1<_0x2f81d5['data'][_0x1c1790('0x120f')][_0x1c1790('0x1e22')];_0x3a36d1++){_0x21f7ac['error']({'title':_0x2f81d5[_0x1c1790('0x4e8')][_0x1c1790('0x120f')][_0x3a36d1][_0x1c1790('0x19fd')],'msg':_0x2f81d5[_0x1c1790('0x4e8')][_0x1c1790('0x120f')][_0x3a36d1][_0x1c1790('0x1b86')]});}}else _0x21f7ac[_0x1c1790('0x255')]({'title':_0x2f81d5['status']?_0x1c1790('0x574')+_0x2f81d5[_0x1c1790('0xff9')]+_0x1c1790('0xb0b')+_0x2f81d5[_0x1c1790('0x212f')]:'api.cmHopper.update','msg':_0x2f81d5['data']?JSON[_0x1c1790('0x3e')](_0x2f81d5[_0x1c1790('0x4e8')][_0x1c1790('0x1b86')]):_0x2f81d5[_0x1c1790('0xaab')]()});});});}function _0x1bdec8(_0x11fd43){const _0x386a2b=_0x5135bb;_0x1098d3[_0x386a2b('0x120f')]=[];const _0x43011b=_0x2d7e4b[_0x386a2b('0x132b')]()['title'](_0x386a2b('0x1fa9'))[_0x386a2b('0x252a')](_0x386a2b('0xf81'))[_0x386a2b('0xb2e')](_0x386a2b('0x1a2d'))['ok'](_0x386a2b('0x1167'))[_0x386a2b('0x26c9')]('Cancel')[_0x386a2b('0x1e25')](_0x11fd43);_0x2d7e4b[_0x386a2b('0xb9')](_0x43011b)[_0x386a2b('0x11bf')](function(){const _0x5835f4=_0x386a2b;_0x4c7f39[_0x5835f4('0x1d11')]['delete']({'id':_0x1098d3['hopper']['id']})[_0x5835f4('0x1549')][_0x5835f4('0x11bf')](function(){const _0x28747d=_0x5835f4;_0x36f548()[_0x28747d('0x14a5')](_0x1098d3[_0x28747d('0xc8d')],{'id':_0x1098d3['hopper']['id']}),_0x21f7ac['success']({'title':_0x28747d('0x1f60'),'msg':(_0x1098d3[_0x28747d('0x244f')][_0x28747d('0x1909')]||_0x28747d('0x244f'))+_0x28747d('0x433')}),_0x412624(_0x1098d3[_0x28747d('0x244f')]);})['catch'](function(_0x1c06d8){const _0x2b6218=_0x5835f4;if(_0x1c06d8['data']&&_0x1c06d8['data'][_0x2b6218('0x120f')]&&_0x1c06d8['data'][_0x2b6218('0x120f')][_0x2b6218('0x1e22')]){_0x1098d3[_0x2b6218('0x120f')]=_0x1c06d8[_0x2b6218('0x4e8')][_0x2b6218('0x120f')]||[{'message':_0x1c06d8[_0x2b6218('0xaab')](),'type':_0x2b6218('0x2489')}];for(let _0x2570db=0x0;_0x2570db<_0x1c06d8[_0x2b6218('0x4e8')]['errors'][_0x2b6218('0x1e22')];_0x2570db++){_0x21f7ac['error']({'title':_0x1c06d8[_0x2b6218('0x4e8')][_0x2b6218('0x120f')][_0x2570db][_0x2b6218('0x19fd')],'msg':_0x1c06d8['data'][_0x2b6218('0x120f')][_0x2570db][_0x2b6218('0x1b86')]});}}else _0x21f7ac['error']({'title':_0x1c06d8[_0x2b6218('0xff9')]?_0x2b6218('0x574')+_0x1c06d8[_0x2b6218('0xff9')]+_0x2b6218('0xb0b')+_0x1c06d8['statusText']:_0x2b6218('0x2489'),'msg':_0x1c06d8[_0x2b6218('0x4e8')]?JSON[_0x2b6218('0x3e')](_0x1c06d8[_0x2b6218('0x4e8')][_0x2b6218('0x1b86')]):_0x1c06d8['message']||_0x1c06d8[_0x2b6218('0xaab')]()});});},function(){});}function _0x5684de(_0x938e68){return _0x938e68===null?undefined:new Date(_0x938e68);}function _0x412624(_0x179745){_0x2d7e4b['hide'](_0x179745);}}const _0x3f8a26=_0x26a36e;_0x30aec1['$inject']=[_0x21d0f5('0x12a5'),_0x21d0f5('0x142d')];function _0x30aec1(_0x544eeb,_0x1ece11){const _0x4a947c=_0x21d0f5,_0x1982f7=this;_0x1982f7[_0x4a947c('0x13fa')]={},_0x1982f7[_0x4a947c('0x286f')]=_0xb9174b;function _0xb9174b(_0x9066db){const _0xa2b8c1=_0x4a947c;_0x1982f7[_0xa2b8c1('0x13fa')]=_0x9066db,_0x544eeb['cmHopper']['get']({'limit':0x0,'CampaignId':_0x9066db['id']})[_0xa2b8c1('0x1549')][_0xa2b8c1('0x11bf')](function(_0x27c54d){const _0x34db2c=_0xa2b8c1;return _0x1982f7[_0x34db2c('0x4af')]=_0x27c54d[_0x34db2c('0x27d2')]||0x0,_0x544eeb[_0x34db2c('0x1d11')][_0x34db2c('0xbaa')]({'limit':0x0,'CampaignId':_0x9066db['id'],'active':![],'countbusyretry':0x0,'countcongestionretry':0x0,'countnoanswerretry':0x0})[_0x34db2c('0x1549')];})[_0xa2b8c1('0x11bf')](function(_0x52724f){const _0x33e570=_0xa2b8c1;return _0x1982f7[_0x33e570('0x13bc')]=_0x52724f[_0x33e570('0x27d2')]||0x0,_0x544eeb[_0x33e570('0x1794')][_0x33e570('0xbaa')]({'limit':0x0,'CampaignId':_0x9066db['id']})['$promise'];})['then'](function(_0x38101d){const _0x25adec=_0xa2b8c1;_0x1982f7[_0x25adec('0x949')]=_0x38101d[_0x25adec('0x27d2')]||0x0;})[_0xa2b8c1('0x151d')](function(_0x133b92){const _0x2ca181=_0xa2b8c1;_0x1ece11[_0x2ca181('0x255')]({'title':_0x133b92[_0x2ca181('0xff9')]?'API:'+_0x133b92[_0x2ca181('0xff9')]+_0x2ca181('0xb0b')+_0x133b92['statusText']:_0x2ca181('0x24ee'),'msg':_0x133b92[_0x2ca181('0x4e8')]?JSON[_0x2ca181('0x3e')](_0x133b92['data']):_0x133b92[_0x2ca181('0xaab')]()});});}}const _0x11eb15=_0x30aec1;_0x3a570a[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1ca2'),'$q','toasty',_0x21d0f5('0x12a5'),'ivrCampaign','$translate',_0x21d0f5('0x17f5'),_0x21d0f5('0x1150'),'crudPermissions'];function _0x3a570a(_0x13b425,_0x4226aa,_0x1312b7,_0x31d5e2,_0xf6cfc8,_0x3aa68c,_0x3f5f04,_0x60e069,_0x20d59f){const _0x571956=_0x21d0f5,_0x42518c=this;_0x42518c[_0x571956('0x32a')]=_0x60e069[_0x571956('0x2428')](),_0x42518c[_0x571956('0x13fa')]=_0xf6cfc8,_0x42518c[_0x571956('0xb25')]=_0x20d59f,_0x42518c[_0x571956('0x1727')]=_0x571956('0x145d'),_0x42518c[_0x571956('0x10ab')]='getLists',_0x42518c[_0x571956('0x35b')]=_0x571956('0x26d8'),_0x42518c[_0x571956('0x933')]=_0x571956('0x293'),_0x42518c[_0x571956('0x22')]=[],_0x42518c[_0x571956('0x63')]=[],_0x42518c[_0x571956('0x26cc')]=[],_0x42518c[_0x571956('0x1c6f')]=[],_0x42518c[_0x571956('0x21ed')]=[],_0x42518c[_0x571956('0x1eda')]=![],_0x42518c[_0x571956('0x632')]=![],_0x42518c[_0x571956('0xec5')]={'readOnly':!_0x42518c[_0x571956('0xb25')][_0x571956('0x25db')],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':![],'orderBy':_0x571956('0x1909'),'line1':_0x571956('0x1909'),'line2':'','line3':'','labelAll':_0x3aa68c['instant'](_0x571956('0x1ac1')),'labelSelected':_0x3aa68c[_0x571956('0x10c2')]('MOTIONDIALER.SELECTED_LISTS'),'transferCallback':function(){const _0x3fc61f=_0x571956,_0x90a561=_0x36f548()['xorBy'](_0x42518c[_0x3fc61f('0x21ed')],_0x42518c['selectedItems'],'id');_0x42518c[_0x3fc61f('0x1eda')]=_0x36f548()[_0x3fc61f('0x1fc5')](_0x90a561)?![]:!![];}},_0x42518c[_0x571956('0x277c')]=_0xccd5b4,_0x42518c[_0x571956('0x40c')]=_0x9f6fe9,_0x42518c[_0x571956('0xc4e')]=_0x327b8b;function _0xccd5b4(){const _0x3ebc75=_0x571956;return _0x60e069[_0x3ebc75('0x4ee')]('admin')?_0x46cdce()[_0x3ebc75('0x151d')](function(_0x1eeaa5){const _0xad3dd6=_0x3ebc75;_0x1312b7[_0xad3dd6('0x255')]({'title':_0x1eeaa5[_0xad3dd6('0xff9')]?'API:'+_0x1eeaa5[_0xad3dd6('0xff9')]+'\x20-\x20'+_0x1eeaa5['statusText']:'SYSTEM:GETLISTS','msg':_0x1eeaa5[_0xad3dd6('0xff9')]?JSON[_0xad3dd6('0x3e')](_0x1eeaa5['data']):_0x1eeaa5['toString']()});}):_0x59746f()[_0x3ebc75('0x11bf')](function(_0x2d8a55){return _0x42518c['section']=_0x2d8a55,_0x46cdce();})[_0x3ebc75('0x151d')](function(_0x5ff144){const _0x324e48=_0x3ebc75;_0x1312b7[_0x324e48('0x255')]({'title':_0x5ff144[_0x324e48('0xff9')]?'API:'+_0x5ff144[_0x324e48('0xff9')]+_0x324e48('0xb0b')+_0x5ff144[_0x324e48('0x212f')]:_0x324e48('0x1364'),'msg':_0x5ff144[_0x324e48('0xff9')]?JSON[_0x324e48('0x3e')](_0x5ff144['data']):_0x5ff144[_0x324e48('0xaab')]()});});}function _0x59746f(){return _0x4226aa(function(_0x4b5afc,_0x3682b8){const _0x219632=a0_0xaf0c;_0x31d5e2[_0x219632('0x1d63')]['get']({'userProfileId':_0x42518c['currentUser'][_0x219632('0x781')],'name':_0x219632('0x2244')})[_0x219632('0x1549')][_0x219632('0x11bf')](function(_0x2d409a){const _0xe0c84d=_0x219632,_0x37a5e7=_0x2d409a&&_0x2d409a[_0xe0c84d('0x19b2')]?_0x2d409a[_0xe0c84d('0x19b2')][0x0]:null;_0x4b5afc(_0x37a5e7);})['catch'](function(_0x545f3a){_0x3682b8(_0x545f3a);});});}function _0x46cdce(){return _0x4226aa(function(_0x5a935a,_0x547297){const _0x838151=a0_0xaf0c;return _0x29ce63()[_0x838151('0x11bf')](function(_0x331c5c){const _0x31161e=_0x838151;return _0x42518c['items']=_0x331c5c['rows']?_0x331c5c[_0x31161e('0x19b2')]:[],_0x60e069['hasRole'](_0x31161e('0xf45'))?_0x331c5c:_0x42518c[_0x31161e('0xe6')]?_0x42518c['section'][_0x31161e('0xf11')]?_0x331c5c:_0x4f23d6():null;})[_0x838151('0x11bf')](function(_0x3c8ec5){const _0x9e338f=_0x838151,_0x4ed656=_0x3c8ec5&&_0x3c8ec5[_0x9e338f('0x19b2')]?_0x3c8ec5[_0x9e338f('0x19b2')]:[];return _0x42518c['allowedItems']=_0x36f548()[_0x9e338f('0x2171')](_0x4ed656,function(_0x4ecb99){const _0x516d2e=_0x9e338f;return _0x36f548()[_0x516d2e('0x1ad4')](_0x42518c[_0x516d2e('0x22')],{'id':_0x60e069[_0x516d2e('0x4ee')](_0x516d2e('0xf45'))||_0x42518c[_0x516d2e('0xe6')][_0x516d2e('0xf11')]?_0x4ecb99['id']:_0x4ecb99[_0x516d2e('0x15a5')]});}),_0x42518c[_0x9e338f('0x1c6f')]=angular[_0x9e338f('0x6fb')](_0x42518c[_0x9e338f('0x63')]),_0x42518c['items']['forEach'](function(_0x4c6063){const _0xa26717=_0x9e338f,_0x5eaa6d=_0x36f548()[_0xa26717('0x1ad4')](_0x42518c['allowedItems'],{'id':_0x4c6063['id']});_0x42518c[_0xa26717('0x32a')][_0xa26717('0x111d')]===_0xa26717('0xf45')?_0x4c6063[_0xa26717('0xde9')]=!![]:_0x4c6063[_0xa26717('0xde9')]=typeof _0x5eaa6d!==_0xa26717('0x13e9')?!![]:![];}),_0x1dba35();})[_0x838151('0x11bf')](function(_0x3501ae){const _0x219518=_0x838151,_0x16931f=_0x3501ae&&_0x3501ae[_0x219518('0x19b2')]?_0x3501ae[_0x219518('0x19b2')]:[];_0x42518c[_0x219518('0x26cc')]=_0x36f548()[_0x219518('0x2171')](_0x16931f,function(_0x1c296b){const _0x1646fe=_0x219518;return _0x36f548()[_0x1646fe('0x1ad4')](_0x42518c[_0x1646fe('0x22')],{'id':_0x1c296b['id']});}),_0x42518c[_0x219518('0x21ed')]=angular[_0x219518('0x6fb')](_0x42518c[_0x219518('0x26cc')]),_0x42518c[_0x219518('0xec5')]['selectedItems']=_0x42518c[_0x219518('0x26cc')],_0x42518c[_0x219518('0xec5')][_0x219518('0x22')]=_0x36f548()[_0x219518('0x2753')](_0x42518c[_0x219518('0x63')],_0x42518c[_0x219518('0xec5')][_0x219518('0x26cc')],'id'),_0x5a935a();})[_0x838151('0x151d')](function(_0x5466f9){_0x547297(_0x5466f9);});});}function _0x4f23d6(){return _0x4226aa(function(_0x3b4105,_0x3b47bc){const _0x79ece6=a0_0xaf0c;return _0x31d5e2[_0x79ece6('0x26d1')]['get']({'sectionId':_0x42518c['section']['id'],'nolimit':!![]})['$promise'][_0x79ece6('0x11bf')](function(_0x152e1b){_0x3b4105(_0x152e1b);})[_0x79ece6('0x151d')](function(_0x14a08c){_0x3b47bc(_0x14a08c);});});}function _0x1dba35(){return _0x4226aa(function(_0x2e61fd,_0x2849f9){const _0x32e690=a0_0xaf0c,_0x25cc87=_0x31d5e2[_0x42518c[_0x32e690('0x1727')]];return _0x25cc87[_0x42518c[_0x32e690('0x10ab')]]({'id':_0x42518c['ivrCampaign']['id'],'fields':'id,name','nolimit':!![]})[_0x32e690('0x1549')][_0x32e690('0x11bf')](function(_0x39a254){_0x2e61fd(_0x39a254);})[_0x32e690('0x151d')](function(_0x404431){_0x2849f9(_0x404431);});});}function _0x29ce63(){return _0x4226aa(function(_0x11701e,_0x1ec829){const _0x2050cf=a0_0xaf0c;return _0x31d5e2[_0x2050cf('0xbef')][_0x2050cf('0xbaa')]({'fields':'id,name','nolimit':!![]})[_0x2050cf('0x1549')][_0x2050cf('0x11bf')](function(_0x2dde68){_0x11701e(_0x2dde68);})['catch'](function(_0x2a1bb7){_0x1ec829(_0x2a1bb7);});});}function _0x15f542(_0x34e814){return _0x4226aa(function(_0x1d5f34,_0x535a93){const _0x1b54cf=a0_0xaf0c;if(_0x36f548()[_0x1b54cf('0x1fc5')](_0x34e814))_0x1d5f34();else{const _0x494acd=_0x31d5e2[_0x42518c['apiRoute']];_0x494acd[_0x42518c['addApi']]({'id':_0x42518c['ivrCampaign']['id'],'ids':_0x36f548()['map'](_0x34e814,'id')})['$promise'][_0x1b54cf('0x11bf')](function(){_0x1d5f34();})['catch'](function(_0x3b1833){_0x535a93(_0x3b1833);});}});}function _0x41977a(_0x542731){return _0x4226aa(function(_0x48b506,_0x1ad5e6){const _0x45e3bb=a0_0xaf0c;if(_0x36f548()[_0x45e3bb('0x1fc5')](_0x542731))_0x48b506();else{const _0x2f390b=_0x31d5e2[_0x42518c[_0x45e3bb('0x1727')]];_0x2f390b[_0x42518c[_0x45e3bb('0x933')]]({'id':_0x42518c[_0x45e3bb('0x13fa')]['id'],'ids':_0x36f548()['map'](_0x542731,'id')})[_0x45e3bb('0x1549')]['then'](function(){_0x48b506();})[_0x45e3bb('0x151d')](function(_0x415804){_0x1ad5e6(_0x415804);});}});}function _0x9f6fe9(){const _0x532ee6=_0x571956;_0x42518c['loading']=!![];const _0x2a64d4=_0x36f548()[_0x532ee6('0x2753')](_0x42518c['startingSelectedItems'],_0x42518c[_0x532ee6('0x26cc')],'id'),_0x46f502=_0x36f548()[_0x532ee6('0x2753')](_0x42518c[_0x532ee6('0x26cc')],_0x42518c['startingSelectedItems'],'id');return _0x41977a(_0x2a64d4)[_0x532ee6('0x11bf')](function(){return _0x15f542(_0x46f502);})[_0x532ee6('0x11bf')](function(){const _0xe3d081=_0x532ee6;_0x42518c[_0xe3d081('0x1eda')]=![],_0x42518c[_0xe3d081('0x1c6f')]=angular['copy'](_0x42518c[_0xe3d081('0x63')]),_0x42518c['startingSelectedItems']=angular[_0xe3d081('0x6fb')](_0x42518c[_0xe3d081('0x26cc')]),_0x1312b7[_0xe3d081('0x2693')]({'title':'SUCCESS','msg':_0xe3d081('0x14b3')});})['catch'](function(_0x3aff7f){const _0x253c29=_0x532ee6;_0x1312b7[_0x253c29('0x255')]({'title':_0x3aff7f[_0x253c29('0xff9')]?_0x253c29('0x574')+_0x3aff7f['status']+_0x253c29('0xb0b')+_0x3aff7f[_0x253c29('0x212f')]:_0x253c29('0x1b7f'),'msg':_0x3aff7f['status']?JSON['stringify'](_0x3aff7f[_0x253c29('0x4e8')]):_0x3aff7f[_0x253c29('0xaab')]()});})[_0x532ee6('0xa9b')](function(){_0x42518c['loading']=![];});}function _0x327b8b(){const _0x394ffa=_0x571956;_0x13b425[_0x394ffa('0x237e')]();}}const _0xcfd77d=_0x3a570a;_0x425233[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0x1ca2'),'toasty','api',_0x21d0f5('0x13fa'),_0x21d0f5('0x1c13'),'Sequence','$q'];function _0x425233(_0x5cb4b0,_0x4d0ae6,_0x28afbf,_0x1d3bfd,_0x2abddc,_0xfd0441,_0x580c2a,_0x46c984){const _0x18f3e4=_0x21d0f5,_0x24b20e=this;_0x24b20e['selected']=[],_0x24b20e[_0x18f3e4('0x22')]=_0xfd0441?_0xfd0441:[],_0x24b20e[_0x18f3e4('0x632')]=![],_0x24b20e['closeDialog']=_0xc5e2e2,_0x24b20e[_0x18f3e4('0x26b')]=_0x12306a,_0x24b20e[_0x18f3e4('0x113b')]=_0x487d65,_0x24b20e[_0x18f3e4('0x1062')]=_0x5719ab,_0x24b20e['isChecked']=_0x5d6b25,_0x24b20e[_0x18f3e4('0x386')]=_0x107436,_0x24b20e['listSelected']=_0x44c91c;function _0x487d65(_0x2037c6,_0x2f4762){const _0x4025f3=_0x18f3e4,_0x4aea80=_0x2f4762['indexOf'](_0x2037c6);_0x4aea80>-0x1?_0x2f4762[_0x4025f3('0x1ae')](_0x4aea80,0x1):_0x2f4762[_0x4025f3('0x105d')](_0x2037c6);}function _0x12306a(_0x5c34e6,_0x160067){const _0x5e797b=_0x18f3e4;return _0x160067[_0x5e797b('0x203c')](_0x5c34e6)>-0x1;}function _0x5719ab(){const _0x1ebac9=_0x18f3e4;return _0x24b20e[_0x1ebac9('0x1506')][_0x1ebac9('0x1e22')]!==0x0&&_0x24b20e['selected'][_0x1ebac9('0x1e22')]!==_0x24b20e['items'][_0x1ebac9('0x1e22')];}function _0x5d6b25(){const _0x59f962=_0x18f3e4;return _0x24b20e[_0x59f962('0x1506')][_0x59f962('0x1e22')]===_0x24b20e[_0x59f962('0x22')][_0x59f962('0x1e22')];}function _0x107436(){const _0x24b737=_0x18f3e4;if(_0x24b20e[_0x24b737('0x1506')][_0x24b737('0x1e22')]===_0x24b20e[_0x24b737('0x22')][_0x24b737('0x1e22')])_0x24b20e[_0x24b737('0x1506')]=[];else(_0x24b20e['selected']['length']===0x0||_0x24b20e[_0x24b737('0x1506')]['length']>0x0)&&(_0x24b20e[_0x24b737('0x1506')]=_0x24b20e[_0x24b737('0x22')]['slice'](0x0));}function _0xc5e2e2(){const _0x42dcc6=_0x18f3e4;_0x4d0ae6[_0x42dcc6('0x237e')]();}function _0x44c91c(){const _0x2335b8=_0x18f3e4;_0x24b20e[_0x2335b8('0x632')]=!![];const _0x3cb01d=_0x19743b();_0x3cb01d[_0x2335b8('0xa9b')](function(){const _0x42912d=_0x2335b8;_0x24b20e[_0x42912d('0x632')]=![],_0xc5e2e2();});}function _0x19743b(){return _0x46c984(function(_0x2e8461){const _0x5587d8=a0_0xaf0c;for(let _0x3c3213=0x0;_0x3c3213<_0x24b20e[_0x5587d8('0x1506')][_0x5587d8('0x1e22')];_0x3c3213+=0x1){_0x4a5f56(_0x2abddc['id'],_0x24b20e['selected'][_0x3c3213]);}_0x1cc12d(_0x2e8461);});}function _0x4a5f56(_0x3dc130,_0xf5f488){const _0x26a875=_0x18f3e4,_0x54acd3=_0xf5f488['id'];_0x580c2a[_0x26a875('0x1baf')](function(){const _0x4b257a=_0x26a875;return _0x1d3bfd[_0x4b257a('0x145d')][_0x4b257a('0x293')]({'id':_0x3dc130,'ids':_0x54acd3})[_0x4b257a('0x1549')][_0x4b257a('0x11bf')](function(){const _0x23527e=_0x4b257a;return _0x1d3bfd[_0x23527e('0x145d')][_0x23527e('0x26d8')]({'id':_0x3dc130,'ids':_0x54acd3,'dialCheckDuplicateType':_0x23527e('0xf95')})[_0x23527e('0x1549')];})[_0x4b257a('0x11bf')](function(){const _0x557475=_0x4b257a;_0x28afbf[_0x557475('0x2693')]({'title':_0x557475('0x1290'),'msg':_0x557475('0x6d1')+_0xf5f488[_0x557475('0x1909')]+_0x557475('0xa8e')});})[_0x4b257a('0x151d')](function(_0x3f5bfe){const _0x3f93c7=_0x4b257a;_0x28afbf[_0x3f93c7('0x255')]({'title':_0x3f5bfe[_0x3f93c7('0xff9')]?'API:'+_0x3f5bfe[_0x3f93c7('0xff9')]+_0x3f93c7('0xb0b')+_0x3f5bfe[_0x3f93c7('0x212f')]:_0x3f93c7('0xc4a'),'msg':_0x3f5bfe[_0x3f93c7('0xff9')]?JSON['stringify'](_0x3f5bfe[_0x3f93c7('0x4e8')]):_0x3f5bfe[_0x3f93c7('0xaab')]()});});});}function _0x1cc12d(_0xc273e6){_0x580c2a['enqueue'](function(){return _0xc273e6();});}}const _0x1321cf=_0x425233,_0x5e9e43=_0x351988['p']+_0x21d0f5('0x12b3'),_0x2a1ff9=_0x351988['p']+_0x21d0f5('0x2728'),_0x4e0949=_0x351988['p']+'src/js/modules/main/apps/motiondialer/views/ivrCampaigns/edit/blacklistadd/blacklistadd.html/blacklistadd.html',_0x228422=_0x351988['p']+_0x21d0f5('0xfac');_0x882572[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0xcbc'),_0x21d0f5('0x16b9'),_0x21d0f5('0x1ca2'),'$document',_0x21d0f5('0xb6b'),'license',_0x21d0f5('0x23e1'),_0x21d0f5('0x12a5'),'toasty','Auth',_0x21d0f5('0x13fa'),_0x21d0f5('0x1d63')];function _0x882572(_0x404d59,_0x503cb5,_0x34daee,_0x44708f,_0x2e0859,_0x2ba9a7,_0xeb1da2,_0x5b245a,_0x490a20,_0x4b19bf,_0x42860f,_0xa75bb1){const _0x2188ed=_0x21d0f5,_0x5c691e=this;_0x5c691e[_0x2188ed('0x32a')]=_0x4b19bf[_0x2188ed('0x2428')](),_0x5c691e[_0x2188ed('0x17ff')]=_0x2ba9a7,_0x5c691e[_0x2188ed('0x23e1')]=_0xeb1da2,_0x5c691e[_0x2188ed('0x2834')]=_0x5c691e[_0x2188ed('0x23e1')][_0x2188ed('0x1d4')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x5c691e[_0x2188ed('0x1d9a')]=_0x503cb5[_0x2188ed('0x1797')]()+_0x2188ed('0x16a1')+_0x503cb5[_0x2188ed('0x14ec')](),_0x5c691e[_0x2188ed('0x13fa')]=_0x42860f||_0x404d59[_0x2188ed('0x1ab3')][_0x2188ed('0x13fa')]||{},_0x5c691e[_0x2188ed('0x1d63')]=_0xa75bb1&&_0xa75bb1[_0x2188ed('0x27d2')]==0x1?_0xa75bb1[_0x2188ed('0x19b2')][0x0]:null,_0x5c691e['crudPermissions']=_0x4b19bf[_0x2188ed('0x1530')](_0x5c691e['userProfileSection']?_0x5c691e['userProfileSection'][_0x2188ed('0xb25')]:null),_0x5c691e[_0x2188ed('0x2c9')]={},_0x5c691e[_0x2188ed('0x1179')]=_0x404d59[_0x2188ed('0x1ab3')][_0x2188ed('0x205c')]||0x0,_0x5c691e[_0x2188ed('0xf0f')]=_0x4f9d4b,_0x5c691e['listadddialog']=_0x58c5da,_0x5c691e['blacklistadddialog']=_0x4c1e31,_0x5c691e[_0x2188ed('0x277b')]=_0x22d9b7,_0x5c691e[_0x2188ed('0x15dc')]=_0x1da029,_0x5c691e['alert']=_0x490a20[_0x2188ed('0x870')],_0x5c691e[_0x2188ed('0x1641')]=_0x284550,_0x5c691e[_0x2188ed('0x2420')]=_0x2376a5,_0x4b19bf[_0x2188ed('0x4ee')](_0x2188ed('0xf45'))?_0x5b245a[_0x2188ed('0x264e')]['get']({'fields':'id,name','sort':_0x2188ed('0x1909')})[_0x2188ed('0x1549')]['then'](function(_0x12f0d9){const _0x249e06=_0x2188ed;_0x5c691e[_0x249e06('0x1b24')]=_0x12f0d9[_0x249e06('0x19b2')]||[];})[_0x2188ed('0x151d')](function(_0x499dbc){const _0xb234b3=_0x2188ed;_0x490a20[_0xb234b3('0x255')]({'title':_0x499dbc[_0xb234b3('0xff9')]?_0xb234b3('0x574')+_0x499dbc[_0xb234b3('0xff9')]+_0xb234b3('0xb0b')+_0x499dbc['statusText']:'SYSTEM:GET_TRUNKS','msg':_0x499dbc[_0xb234b3('0x4e8')]?JSON[_0xb234b3('0x3e')](_0x499dbc[_0xb234b3('0x4e8')]):_0x499dbc[_0xb234b3('0xaab')]()});}):_0x5b245a[_0x2188ed('0x264e')][_0x2188ed('0xbaa')]({'fields':_0x2188ed('0x721'),'sort':'name'})[_0x2188ed('0x1549')][_0x2188ed('0x11bf')](function(_0x44a0fc){const _0x33e4e2=_0x2188ed;_0x5c691e['trunks']=_0x44a0fc[_0x33e4e2('0x19b2')]||[];})[_0x2188ed('0x11bf')](function(){const _0x49f13a=_0x2188ed;return _0x5b245a[_0x49f13a('0x1d63')][_0x49f13a('0xbaa')]({'userProfileId':_0x5c691e[_0x49f13a('0x32a')][_0x49f13a('0x781')],'sectionId':0x3f3})[_0x49f13a('0x1549')];})[_0x2188ed('0x11bf')](function(_0x58f5d7){const _0x5d7074=_0x2188ed,_0x733ac1=_0x58f5d7&&_0x58f5d7[_0x5d7074('0x19b2')]?_0x58f5d7[_0x5d7074('0x19b2')][0x0]:null;if(!_0x733ac1)_0x5c691e['trunks']=[];else{if(!_0x733ac1[_0x5d7074('0xf11')])return _0x5b245a[_0x5d7074('0x26d1')]['get']({'sectionId':_0x733ac1['id']})[_0x5d7074('0x1549')]['then'](function(_0x5098ce){const _0x22e22a=_0x5d7074,_0x4bc1c1=_0x36f548()[_0x22e22a('0x2171')](_0x5098ce[_0x22e22a('0x19b2')],function(_0x3d43ab){const _0x31c128=_0x22e22a;return _0x36f548()[_0x31c128('0x1ad4')](_0x5c691e['trunks'],{'id':_0x3d43ab[_0x31c128('0x15a5')]});});_0x5c691e['trunks'][_0x22e22a('0x1f88')](function(_0x32b107){const _0x279df0=_0x22e22a;!_0x36f548()['some'](_0x4bc1c1,['id',_0x32b107['id']])&&(_0x32b107[_0x279df0('0x254a')]=![]),_0x4bc1c1[_0x279df0('0x105d')](_0x32b107);}),_0x5c691e['trunks']=_0x4bc1c1;});}})['catch'](function(_0x1a332d){const _0x327726=_0x2188ed;_0x490a20['error']({'title':_0x1a332d[_0x327726('0xff9')]?_0x327726('0x574')+_0x1a332d[_0x327726('0xff9')]+'\x20-\x20'+_0x1a332d['statusText']:_0x327726('0xf39'),'msg':_0x1a332d[_0x327726('0x4e8')]?JSON[_0x327726('0x3e')](_0x1a332d['data']):_0x1a332d[_0x327726('0xaab')]()});}),_0x4b19bf['hasRole'](_0x2188ed('0xf45'))?_0x5b245a['squareProject'][_0x2188ed('0xbaa')]({'fields':_0x2188ed('0x721'),'sort':_0x2188ed('0x1909')})['$promise']['then'](function(_0x591fd3){const _0x2ed0de=_0x2188ed;_0x5c691e[_0x2ed0de('0xa62')]=_0x591fd3['rows']||[];})[_0x2188ed('0x151d')](function(_0x2fd984){const _0x2b5ddd=_0x2188ed;_0x490a20[_0x2b5ddd('0x255')]({'title':_0x2fd984[_0x2b5ddd('0xff9')]?_0x2b5ddd('0x574')+_0x2fd984[_0x2b5ddd('0xff9')]+_0x2b5ddd('0xb0b')+_0x2fd984[_0x2b5ddd('0x212f')]:_0x2b5ddd('0x21e4'),'msg':_0x2fd984['data']?JSON[_0x2b5ddd('0x3e')](_0x2fd984['data']):_0x2fd984['toString']()});}):_0x5b245a[_0x2188ed('0x1671')]['get']({'fields':_0x2188ed('0x721'),'sort':_0x2188ed('0x1909')})[_0x2188ed('0x1549')][_0x2188ed('0x11bf')](function(_0xa6dbb){const _0xfbd612=_0x2188ed;_0x5c691e[_0xfbd612('0xa62')]=_0xa6dbb['rows']||[];})[_0x2188ed('0x11bf')](function(){const _0x55daa1=_0x2188ed;return _0x5b245a[_0x55daa1('0x1d63')][_0x55daa1('0xbaa')]({'userProfileId':_0x5c691e[_0x55daa1('0x32a')]['userProfileId'],'sectionId':0x44f})[_0x55daa1('0x1549')];})[_0x2188ed('0x11bf')](function(_0x2a199f){const _0x16d6ef=_0x2188ed,_0x411814=_0x2a199f&&_0x2a199f['rows']?_0x2a199f[_0x16d6ef('0x19b2')][0x0]:null;if(!_0x411814){const _0x375731=[];let _0x18e98a=null;_0x5c691e[_0x16d6ef('0x13fa')]&&(_0x18e98a=_0x36f548()['find'](_0x5c691e[_0x16d6ef('0xa62')],{'id':Number(_0x5c691e[_0x16d6ef('0x13fa')][_0x16d6ef('0x1cd6')])}));for(let _0x557146=0x0;_0x557146<_0x5c691e[_0x16d6ef('0xa62')][_0x16d6ef('0x1e22')];_0x557146++){_0x18e98a&&_0x5c691e[_0x16d6ef('0xa62')][_0x557146]['id']===_0x18e98a['id']&&(_0x5c691e[_0x16d6ef('0xa62')][_0x557146][_0x16d6ef('0x254a')]=![],_0x375731[_0x16d6ef('0x105d')](_0x5c691e[_0x16d6ef('0xa62')][_0x557146]));}_0x5c691e[_0x16d6ef('0xa62')]=_0x375731;}else{if(!_0x411814['autoAssociation'])return _0x5b245a['userProfileResource'][_0x16d6ef('0xbaa')]({'sectionId':_0x411814['id']})[_0x16d6ef('0x1549')]['then'](function(_0x4525bc){const _0x47484f=_0x16d6ef,_0x24e510=_0x36f548()['map'](_0x4525bc['rows'],function(_0x30697e){const _0x2df996=a0_0xaf0c;return _0x36f548()[_0x2df996('0x1ad4')](_0x5c691e[_0x2df996('0xa62')],{'id':_0x30697e['resourceId']});});let _0xab6e38=null;_0x5c691e[_0x47484f('0x13fa')]&&(_0xab6e38=_0x36f548()[_0x47484f('0x1ad4')](_0x5c691e[_0x47484f('0xa62')],{'id':Number(_0x5c691e[_0x47484f('0x13fa')]['SquareProjectId'])}));if(_0xab6e38&&!_0x36f548()[_0x47484f('0x1cb3')](_0x24e510,['id',_0xab6e38['id']])){const _0x21e7a3=_0x36f548()[_0x47484f('0x1ad4')](_0x5c691e[_0x47484f('0xa62')],{'id':_0xab6e38['id']});_0x21e7a3[_0x47484f('0x254a')]=![],_0x24e510[_0x47484f('0x105d')](_0x21e7a3);}_0x5c691e[_0x47484f('0xa62')]=_0x24e510;});}})['catch'](function(_0x1f8f42){const _0x2f8377=_0x2188ed;_0x490a20[_0x2f8377('0x255')]({'title':_0x1f8f42[_0x2f8377('0xff9')]?_0x2f8377('0x574')+_0x1f8f42['status']+'\x20-\x20'+_0x1f8f42['statusText']:_0x2f8377('0x1b27'),'msg':_0x1f8f42[_0x2f8377('0x4e8')]?JSON[_0x2f8377('0x3e')](_0x1f8f42[_0x2f8377('0x4e8')]):_0x1f8f42[_0x2f8377('0xaab')]()});}),_0x4b19bf['hasRole'](_0x2188ed('0xf45'))?_0x5b245a[_0x2188ed('0x507')][_0x2188ed('0xbaa')]({'fields':'id,name','sort':_0x2188ed('0x1909'),'IntervalId':_0x2188ed('0xb5f')})[_0x2188ed('0x1549')][_0x2188ed('0x11bf')](function(_0x4374ca){const _0x4a6e9a=_0x2188ed;_0x5c691e[_0x4a6e9a('0x507')]=_0x4374ca['rows']||[];})[_0x2188ed('0x151d')](function(_0x177280){const _0x2dbbce=_0x2188ed;_0x490a20['error']({'title':_0x177280['status']?_0x2dbbce('0x574')+_0x177280['status']+_0x2dbbce('0xb0b')+_0x177280[_0x2dbbce('0x212f')]:_0x2dbbce('0x135a'),'msg':_0x177280[_0x2dbbce('0x4e8')]?JSON[_0x2dbbce('0x3e')](_0x177280['data']):_0x177280[_0x2dbbce('0xaab')]()});}):_0x5b245a['interval']['get']({'fields':_0x2188ed('0x721'),'sort':_0x2188ed('0x1909'),'IntervalId':'null'})[_0x2188ed('0x1549')][_0x2188ed('0x11bf')](function(_0x44245e){const _0x418345=_0x2188ed;_0x5c691e[_0x418345('0x507')]=_0x44245e[_0x418345('0x19b2')]||[];})[_0x2188ed('0x11bf')](function(){const _0x45371e=_0x2188ed;return _0x5b245a[_0x45371e('0x1d63')][_0x45371e('0xbaa')]({'userProfileId':_0x5c691e['currentUser'][_0x45371e('0x781')],'sectionId':0x3ec})['$promise'];})[_0x2188ed('0x11bf')](function(_0xf4252f){const _0x468824=_0x2188ed,_0x12ce68=_0xf4252f&&_0xf4252f[_0x468824('0x19b2')]?_0xf4252f['rows'][0x0]:null;if(!_0x12ce68){const _0x4dd26d=[];let _0x34886f=null;_0x5c691e['ivrCampaign']&&(_0x34886f=_0x36f548()[_0x468824('0x1ad4')](_0x5c691e[_0x468824('0x507')],{'id':Number(_0x5c691e['ivrCampaign'][_0x468824('0x6b4')])}));for(let _0x553fb8=0x0;_0x553fb8<_0x5c691e['interval'][_0x468824('0x1e22')];_0x553fb8++){_0x34886f&&_0x5c691e[_0x468824('0x507')][_0x553fb8]['id']===_0x34886f['id']&&(_0x5c691e[_0x468824('0x507')][_0x553fb8]['canSelect']=![],_0x4dd26d['push'](_0x5c691e['interval'][_0x553fb8]));}_0x5c691e[_0x468824('0x507')]=_0x4dd26d;}else{if(!_0x12ce68[_0x468824('0xf11')])return _0x5b245a[_0x468824('0x26d1')][_0x468824('0xbaa')]({'sectionId':_0x12ce68['id']})['$promise']['then'](function(_0x5dcc80){const _0x10663a=_0x468824,_0x3f12a1=_0x36f548()[_0x10663a('0x2171')](_0x5dcc80['rows'],function(_0x387307){const _0x20ef7b=_0x10663a;return _0x36f548()[_0x20ef7b('0x1ad4')](_0x5c691e[_0x20ef7b('0x507')],{'id':_0x387307[_0x20ef7b('0x15a5')]});});let _0x15fcf7=null;_0x5c691e[_0x10663a('0x13fa')]&&(_0x15fcf7=_0x36f548()[_0x10663a('0x1ad4')](_0x5c691e['interval'],{'id':Number(_0x5c691e['ivrCampaign']['IntervalId'])}));if(_0x15fcf7&&!_0x36f548()[_0x10663a('0x1cb3')](_0x3f12a1,['id',_0x15fcf7['id']])){const _0xce1405=_0x36f548()['find'](_0x5c691e[_0x10663a('0x507')],{'id':_0x15fcf7['id']});_0xce1405[_0x10663a('0x254a')]=![],_0x3f12a1['push'](_0xce1405);}_0x5c691e[_0x10663a('0x507')]=_0x3f12a1;});}})[_0x2188ed('0x151d')](function(_0x1c466b){const _0x3c62f5=_0x2188ed;_0x490a20['error']({'title':_0x1c466b[_0x3c62f5('0xff9')]?_0x3c62f5('0x574')+_0x1c466b[_0x3c62f5('0xff9')]+_0x3c62f5('0xb0b')+_0x1c466b['statusText']:_0x3c62f5('0xa8b'),'msg':_0x1c466b['data']?JSON[_0x3c62f5('0x3e')](_0x1c466b[_0x3c62f5('0x4e8')]):_0x1c466b['toString']()});});function _0x4f9d4b(_0x429825,_0x3e500b){const _0x36840f=_0x2188ed;_0x34daee['show']({'controller':'IvrCampaigncloneController','controllerAs':'vm','templateUrl':_0x5e9e43,'parent':angular['element'](_0x44708f[_0x36840f('0x1d2')]),'targetEvent':_0x3e500b,'clickOutsideToClose':!![],'locals':{'ivrCampaign':_0x429825,'ivrCampaigns':_0x5c691e[_0x36840f('0x1e48')]?_0x5c691e['ivrCampaigns'][_0x36840f('0x19b2')]:[],'crudPermissions':_0x5c691e[_0x36840f('0xb25')]}});}function _0x58c5da(_0x4db9ae,_0x4bea45){const _0x5d8b3a=_0x2188ed;_0x34daee[_0x5d8b3a('0xb9')]({'controller':_0x5d8b3a('0x14f9'),'controllerAs':'vm','templateUrl':_0x2a1ff9,'parent':angular[_0x5d8b3a('0x1e73')](_0x44708f[_0x5d8b3a('0x1d2')]),'targetEvent':_0x4bea45,'clickOutsideToClose':!![],'locals':{'ivrCampaign':_0x4db9ae,'ivrCampaigns':_0x5c691e[_0x5d8b3a('0x1e48')]?_0x5c691e['ivrCampaigns'][_0x5d8b3a('0x19b2')]:[],'crudPermissions':_0x5c691e['crudPermissions']}});}function _0x4c1e31(_0x61f991,_0x1fc8f5){const _0x697e7d=_0x2188ed;_0x34daee['show']({'controller':_0x697e7d('0x2801'),'controllerAs':'vm','templateUrl':_0x4e0949,'parent':angular[_0x697e7d('0x1e73')](_0x44708f[_0x697e7d('0x1d2')]),'targetEvent':_0x1fc8f5,'clickOutsideToClose':!![],'locals':{'ivrCampaign':_0x61f991,'ivrCampaigns':_0x5c691e[_0x697e7d('0x1e48')]?_0x5c691e['ivrCampaigns'][_0x697e7d('0x19b2')]:[],'crudPermissions':_0x5c691e[_0x697e7d('0xb25')]}});}function _0x29f9b8(_0x1441d3,_0x5de9eb){const _0x40b10d=_0x2188ed,_0x395538=_0x5de9eb['id'];_0x5b245a[_0x40b10d('0x145d')]['removeLists']({'id':_0x1441d3,'ids':_0x395538})[_0x40b10d('0x1549')][_0x40b10d('0x11bf')](function(){const _0x51b80a=_0x40b10d;return _0x5b245a[_0x51b80a('0x145d')]['addLists']({'id':_0x1441d3,'ids':_0x395538,'dialCheckDuplicateType':_0x51b80a('0xf95')})[_0x51b80a('0x1549')];})[_0x40b10d('0x11bf')](function(){const _0x3bcbc9=_0x40b10d;_0x490a20[_0x3bcbc9('0x2693')]({'title':_0x3bcbc9('0x1290'),'msg':'List\x20'+_0x5de9eb[_0x3bcbc9('0x1909')]+_0x3bcbc9('0xa8e')});})[_0x40b10d('0x151d')](function(_0x4e41f7){const _0x48133c=_0x40b10d;_0x490a20[_0x48133c('0x255')]({'title':_0x4e41f7[_0x48133c('0xff9')]?'API:'+_0x4e41f7[_0x48133c('0xff9')]+'\x20-\x20'+_0x4e41f7[_0x48133c('0x212f')]:_0x48133c('0x1c32'),'msg':_0x4e41f7[_0x48133c('0xff9')]?JSON[_0x48133c('0x3e')](_0x4e41f7[_0x48133c('0x4e8')]):_0x4e41f7[_0x48133c('0xaab')]()});});}function _0x22d9b7(_0xa2698a,_0x33a9ac){const _0x1979a6=_0x2188ed;_0x5b245a['campaign']['getLists']({'id':_0xa2698a['id'],'fields':'id,name','nolimit':!![]})[_0x1979a6('0x1549')]['then'](function(_0x3543b1){const _0x49e0c4=_0x1979a6;if(_0x36f548()[_0x49e0c4('0x1a80')](_0x3543b1[_0x49e0c4('0x19b2')])||_0x36f548()[_0x49e0c4('0x1fc5')](_0x3543b1[_0x49e0c4('0x19b2')]))_0x490a20[_0x49e0c4('0x870')]({'title':_0x49e0c4('0x1951')});else{if(_0x3543b1[_0x49e0c4('0x19b2')][_0x49e0c4('0x1e22')]===0x1){const _0x4a9177=_0x34daee['confirm']()[_0x49e0c4('0x134b')](_0x49e0c4('0x11e1')+_0x3543b1[_0x49e0c4('0x19b2')][0x0][_0x49e0c4('0x1909')]+'\x20?')['htmlContent'](''+_0x3543b1[_0x49e0c4('0x19b2')][0x0][_0x49e0c4('0x1909')]+_0x49e0c4('0x1c78')+_0x49e0c4('0x170b'))['ariaLabel'](_0x49e0c4('0x1cc0'))[_0x49e0c4('0x1e25')](_0x33a9ac)['ok']('OK')[_0x49e0c4('0x26c9')](_0x49e0c4('0x772'));_0x34daee[_0x49e0c4('0xb9')](_0x4a9177)[_0x49e0c4('0x11bf')](function(){_0x29f9b8(_0x5c691e['ivrCampaign']['id'],_0x3543b1['rows'][0x0]);});}else _0x34daee[_0x49e0c4('0xb9')]({'controller':_0x49e0c4('0xb4f'),'controllerAs':'vm','templateUrl':_0x228422,'parent':angular['element'](_0x44708f[_0x49e0c4('0x1d2')]),'targetEvent':_0x33a9ac,'clickOutsideToClose':![],'locals':{'ivrCampaign':_0xa2698a,'listsCampaign':_0x3543b1?_0x3543b1[_0x49e0c4('0x19b2')]:[]}});}})[_0x1979a6('0x151d')](function(_0x235ac3){const _0x2c3b0a=_0x1979a6;_0x490a20['error']({'title':_0x235ac3[_0x2c3b0a('0xff9')]?'API:'+_0x235ac3[_0x2c3b0a('0xff9')]+_0x2c3b0a('0xb0b')+_0x235ac3[_0x2c3b0a('0x212f')]:_0x2c3b0a('0x1427'),'msg':_0x235ac3[_0x2c3b0a('0xff9')]?JSON[_0x2c3b0a('0x3e')](_0x235ac3[_0x2c3b0a('0x4e8')]):_0x235ac3['toString']()});});}function _0x1da029(){const _0x38806c=_0x2188ed;if(_0x4b19bf['hasRole'](_0x38806c('0xf45')))_0x404d59['go'](_0x38806c('0x26d9'),{});else return _0x5b245a[_0x38806c('0x1d63')][_0x38806c('0xbaa')]({'userProfileId':_0x4b19bf[_0x38806c('0x2428')]()['userProfileId'],'sectionId':0x5e6})[_0x38806c('0x1549')][_0x38806c('0x11bf')](function(_0x212221){const _0x381ef9=_0x38806c,_0x5ebe02=_0x212221&&_0x212221['rows']?_0x212221[_0x381ef9('0x19b2')][0x0]:null;_0x5ebe02&&_0x5ebe02['enabled']?_0x404d59['go'](_0x381ef9('0x26d9'),{}):_0x490a20[_0x381ef9('0x870')]({'title':_0x2e0859[_0x381ef9('0x10c2')](_0x381ef9('0xbff')),'msg':_0x2e0859[_0x381ef9('0x10c2')]('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_MESSAGE')});})[_0x38806c('0x151d')](function(_0xee3be2){const _0x208103=_0x38806c;_0x490a20[_0x208103('0x255')]({'title':_0xee3be2[_0x208103('0xff9')]?_0x208103('0x574')+_0xee3be2['status']+'\x20-\x20'+_0xee3be2[_0x208103('0x212f')]:_0x208103('0x1011'),'msg':_0xee3be2[_0x208103('0xff9')]?JSON['stringify'](_0xee3be2['data']):_0xee3be2[_0x208103('0xaab')]()});});}function _0x284550(){const _0x14cfe8=_0x2188ed;_0x404d59['go'](_0x14cfe8('0x7ec'),{},{'reload':_0x14cfe8('0x7ec')});}function _0x2376a5(){const _0x2c36a6=_0x2188ed;_0x5b245a[_0x2c36a6('0x145d')][_0x2c36a6('0x5ab')]({'id':_0x5c691e['ivrCampaign']['id']},_0x5c691e[_0x2c36a6('0x13fa')])[_0x2c36a6('0x1549')]['then'](function(){const _0x472aac=_0x2c36a6;_0x490a20[_0x472aac('0x2693')]({'title':'IvrCampaign\x20updated!','msg':_0x5c691e[_0x472aac('0x13fa')][_0x472aac('0x1909')]?_0x5c691e[_0x472aac('0x13fa')][_0x472aac('0x1909')]+_0x472aac('0xd7'):''});})[_0x2c36a6('0x151d')](function(_0x3fa503){const _0x479402=_0x2c36a6;_0x490a20['error']({'title':_0x3fa503[_0x479402('0xff9')]?'API:'+_0x3fa503['status']+'\x20-\x20'+_0x3fa503[_0x479402('0x212f')]:_0x479402('0xc53'),'msg':_0x3fa503['data']?JSON[_0x479402('0x3e')](_0x3fa503['data']):_0x3fa503[_0x479402('0xaab')]()});});}}const _0x5ac523=_0x882572;_0x386e98['$inject']=[_0x21d0f5('0x1b80'),'$window',_0x21d0f5('0xcbc'),_0x21d0f5('0x18fe'),'$mdDialog',_0x21d0f5('0x1b30'),_0x21d0f5('0x17f5'),_0x21d0f5('0xb6b'),_0x21d0f5('0x1e48'),_0x21d0f5('0x25bc'),_0x21d0f5('0x1d63'),_0x21d0f5('0x12a5'),'msUtils',_0x21d0f5('0x142d'),_0x21d0f5('0x1150'),_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1')];function _0x386e98(_0x3f6150,_0x30e79b,_0x2c444a,_0x5945a4,_0x258de0,_0x3b1a9f,_0x3bb7cf,_0x15aaaa,_0x7356a5,_0x105b0b,_0x538927,_0x2e748a,_0x298a12,_0x2c557c,_0x3c7079,_0x5cbc55,_0x15cd18){const _0xa7c34c=_0x21d0f5,_0x2ee374=this;_0x2ee374[_0xa7c34c('0x17ff')]=_0x5cbc55,_0x2ee374[_0xa7c34c('0x23e1')]=_0x15cd18,_0x2ee374[_0xa7c34c('0x32a')]=_0x3c7079[_0xa7c34c('0x2428')](),_0x2ee374[_0xa7c34c('0x1e48')]=_0x7356a5||{'count':0x0,'rows':[]},_0x2ee374[_0xa7c34c('0x25bc')]=_0x105b0b,_0x2ee374['userProfileSection']=_0x538927&&_0x538927[_0xa7c34c('0x27d2')]==0x1?_0x538927[_0xa7c34c('0x19b2')][0x0]:null,_0x2ee374[_0xa7c34c('0xb25')]=_0x3c7079['parseCrudPermissions'](_0x2ee374[_0xa7c34c('0x1d63')]?_0x2ee374[_0xa7c34c('0x1d63')][_0xa7c34c('0xb25')]:null),_0x2ee374[_0xa7c34c('0x13e8')]=_0xa7c34c('0x1e48'),_0x2ee374[_0xa7c34c('0x724')]='',_0x2ee374[_0xa7c34c('0xe3c')]=null,_0x2ee374['selectedIvrCampaigns']=[],_0x2ee374[_0xa7c34c('0x1f2a')]={'fields':_0xa7c34c('0x2656'),'type':_0xa7c34c('0x1316'),'sort':'-updatedAt','limit':0xa,'page':0x1},_0x2ee374[_0xa7c34c('0x4b2')]=_0x36f548()[_0xa7c34c('0x2130')]([{'option':_0xa7c34c('0x14b0'),'value':_0xa7c34c('0x538')},{'option':_0xa7c34c('0xb7d'),'value':_0xa7c34c('0x1d91')},{'option':_0xa7c34c('0x11e8'),'value':_0xa7c34c('0x120b')}],function(_0x166f89){const _0x26a3a7=_0xa7c34c;return _0x36f548()[_0x26a3a7('0x814')](_0x166f89[_0x26a3a7('0x10cc')],new RegExp('\x27','g'),'');}),_0x2ee374['arraydialOrderByScheduledAt']=_0x36f548()[_0xa7c34c('0x2130')]([{'option':'DESC','value':_0xa7c34c('0x274e')},{'option':'ASC','value':_0xa7c34c('0x156d')}],function(_0x4a07e4){const _0x5d72a2=_0xa7c34c;return _0x36f548()[_0x5d72a2('0x814')](_0x4a07e4[_0x5d72a2('0x10cc')],new RegExp('\x27','g'),'');}),_0x2ee374[_0xa7c34c('0x757')]=_0x52f824,_0x2ee374['clonedialog']=_0x216ac1,_0x2ee374[_0xa7c34c('0x1dd8')]=_0x483474,_0x2ee374[_0xa7c34c('0x170f')]=_0x55d5f0,_0x2ee374['deleteconfirm']=_0x4af641,_0x2ee374[_0xa7c34c('0x19a9')]=_0x4472d4,_0x2ee374[_0xa7c34c('0x2693')]=_0x5dce2c,_0x2ee374[_0xa7c34c('0x1262')]=_0x947478,_0x2ee374[_0xa7c34c('0x1421')]=_0x595087,_0x2ee374[_0xa7c34c('0x1a0e')]=_0x43b211,_0x2ee374['exportSelectedIvrCampaigns']=_0x3e233b,_0x2ee374[_0xa7c34c('0xa10')]=_0x53ada2,_0x2ee374[_0xa7c34c('0x7e5')]=_0x505151,_0x2ee374['selectAllIvrCampaigns']=_0x1edc5b,_0x3c7079['hasRole'](_0xa7c34c('0xf45'))?_0x2e748a[_0xa7c34c('0x264e')][_0xa7c34c('0xbaa')]({'fields':_0xa7c34c('0x721'),'sort':_0xa7c34c('0x1909'),'table':_0xa7c34c('0x204c')})[_0xa7c34c('0x1549')][_0xa7c34c('0x11bf')](function(_0x3e8810){const _0x16678f=_0xa7c34c;_0x2ee374['trunks']=_0x3e8810[_0x16678f('0x19b2')]||[];})[_0xa7c34c('0x151d')](function(_0x13a8c3){const _0xc0c6f4=_0xa7c34c;_0x2c557c['error']({'title':_0x13a8c3[_0xc0c6f4('0xff9')]?_0xc0c6f4('0x574')+_0x13a8c3[_0xc0c6f4('0xff9')]+_0xc0c6f4('0xb0b')+_0x13a8c3[_0xc0c6f4('0x212f')]:_0xc0c6f4('0x35f'),'msg':_0x13a8c3['data']?JSON[_0xc0c6f4('0x3e')](_0x13a8c3[_0xc0c6f4('0x4e8')]):_0x13a8c3[_0xc0c6f4('0xaab')]()});}):_0x2e748a[_0xa7c34c('0x264e')][_0xa7c34c('0xbaa')]({'fields':_0xa7c34c('0x721'),'sort':_0xa7c34c('0x1909'),'table':_0xa7c34c('0x204c')})['$promise'][_0xa7c34c('0x11bf')](function(_0x55a675){const _0x19d097=_0xa7c34c;_0x2ee374[_0x19d097('0x1b24')]=_0x55a675[_0x19d097('0x19b2')]||[];})[_0xa7c34c('0x11bf')](function(){const _0x20465c=_0xa7c34c;return _0x2e748a[_0x20465c('0x1d63')][_0x20465c('0xbaa')]({'userProfileId':_0x2ee374[_0x20465c('0x32a')][_0x20465c('0x781')],'sectionId':0x3f3})[_0x20465c('0x1549')];})[_0xa7c34c('0x11bf')](function(_0x402eba){const _0x391c75=_0xa7c34c,_0x5565dd=_0x402eba&&_0x402eba[_0x391c75('0x19b2')]?_0x402eba[_0x391c75('0x19b2')][0x0]:null;if(!_0x5565dd)_0x2ee374[_0x391c75('0x1b24')]=[];else{if(!_0x5565dd[_0x391c75('0xf11')])return _0x2e748a[_0x391c75('0x26d1')][_0x391c75('0xbaa')]({'sectionId':_0x5565dd['id']})[_0x391c75('0x1549')]['then'](function(_0x37ac15){const _0x3b5b40=_0x391c75,_0x2682f8=_0x36f548()[_0x3b5b40('0x2171')](_0x37ac15[_0x3b5b40('0x19b2')],function(_0x24b545){const _0x41ef7d=_0x3b5b40;return _0x36f548()[_0x41ef7d('0x1ad4')](_0x2ee374['trunks'],{'id':_0x24b545[_0x41ef7d('0x15a5')]});});_0x2ee374[_0x3b5b40('0x1b24')][_0x3b5b40('0x1f88')](function(_0x195c9b){const _0x1b7930=_0x3b5b40;!_0x36f548()[_0x1b7930('0x1cb3')](_0x2682f8,['id',_0x195c9b['id']])&&(_0x195c9b[_0x1b7930('0x254a')]=![]),_0x2682f8[_0x1b7930('0x105d')](_0x195c9b);}),_0x2ee374[_0x3b5b40('0x1b24')]=_0x2682f8;});}})['catch'](function(_0x38c3ca){const _0x269688=_0xa7c34c;_0x2c557c[_0x269688('0x255')]({'title':_0x38c3ca[_0x269688('0xff9')]?_0x269688('0x574')+_0x38c3ca[_0x269688('0xff9')]+_0x269688('0xb0b')+_0x38c3ca[_0x269688('0x212f')]:_0x269688('0xf39'),'msg':_0x38c3ca['data']?JSON[_0x269688('0x3e')](_0x38c3ca[_0x269688('0x4e8')]):_0x38c3ca['toString']()});}),_0x3c7079[_0xa7c34c('0x4ee')](_0xa7c34c('0xf45'))?_0x2e748a[_0xa7c34c('0x1671')]['get']({'fields':_0xa7c34c('0x721'),'sort':_0xa7c34c('0x1909')})['$promise'][_0xa7c34c('0x11bf')](function(_0x2e403b){const _0x3e5f41=_0xa7c34c;_0x2ee374[_0x3e5f41('0xa62')]=_0x2e403b['rows']||[];})[_0xa7c34c('0x151d')](function(_0x21d420){const _0x7a8ef6=_0xa7c34c;_0x2c557c[_0x7a8ef6('0x255')]({'title':_0x21d420['status']?_0x7a8ef6('0x574')+_0x21d420[_0x7a8ef6('0xff9')]+'\x20-\x20'+_0x21d420[_0x7a8ef6('0x212f')]:_0x7a8ef6('0x21e4'),'msg':_0x21d420[_0x7a8ef6('0x4e8')]?JSON[_0x7a8ef6('0x3e')](_0x21d420[_0x7a8ef6('0x4e8')]):_0x21d420[_0x7a8ef6('0xaab')]()});}):_0x2e748a[_0xa7c34c('0x1671')]['get']({'fields':_0xa7c34c('0x721'),'sort':_0xa7c34c('0x1909')})[_0xa7c34c('0x1549')][_0xa7c34c('0x11bf')](function(_0x4cb7c1){const _0x3ccefa=_0xa7c34c;_0x2ee374[_0x3ccefa('0xa62')]=_0x4cb7c1[_0x3ccefa('0x19b2')]||[];})[_0xa7c34c('0x11bf')](function(){const _0x25c8be=_0xa7c34c;return _0x2e748a[_0x25c8be('0x1d63')][_0x25c8be('0xbaa')]({'userProfileId':_0x2ee374['currentUser']['userProfileId'],'sectionId':0x44f})[_0x25c8be('0x1549')];})[_0xa7c34c('0x11bf')](function(_0x509ef4){const _0x340189=_0xa7c34c,_0x33a764=_0x509ef4&&_0x509ef4[_0x340189('0x19b2')]?_0x509ef4[_0x340189('0x19b2')][0x0]:null;if(!_0x33a764){const _0x179d2f=[],_0x313f04=[];_0x2ee374[_0x340189('0x1e48')][_0x340189('0x19b2')][_0x340189('0x1f88')](function(_0xbb2524){const _0x39029f=_0x340189,_0x5b8c26=_0x36f548()['find'](_0x2ee374[_0x39029f('0xa62')],{'id':Number(_0xbb2524[_0x39029f('0x1cd6')])});_0x313f04[_0x39029f('0x105d')](_0x5b8c26);});for(let _0xbc355a=0x0;_0xbc355a<_0x2ee374[_0x340189('0xa62')][_0x340189('0x1e22')];_0xbc355a++){const _0x3bf816=_0x36f548()[_0x340189('0x1cb3')](_0x313f04,{'id':_0x2ee374[_0x340189('0xa62')][_0xbc355a]['id']});_0x3bf816&&(_0x2ee374[_0x340189('0xa62')][_0xbc355a][_0x340189('0x254a')]=![],_0x179d2f[_0x340189('0x105d')](_0x2ee374[_0x340189('0xa62')][_0xbc355a]));}_0x2ee374[_0x340189('0xa62')]=_0x179d2f;}else{if(!_0x33a764[_0x340189('0xf11')])return _0x2e748a[_0x340189('0x26d1')][_0x340189('0xbaa')]({'sectionId':_0x33a764['id']})[_0x340189('0x1549')][_0x340189('0x11bf')](function(_0xfa83ce){const _0x3cc4b7=_0x340189,_0x563bd0=_0x36f548()[_0x3cc4b7('0x2171')](_0xfa83ce[_0x3cc4b7('0x19b2')],function(_0x327883){const _0x3e9afb=_0x3cc4b7;return _0x36f548()[_0x3e9afb('0x1ad4')](_0x2ee374[_0x3e9afb('0xa62')],{'id':_0x327883[_0x3e9afb('0x15a5')]});});let _0x206262=null;_0x206262=[],_0x2ee374[_0x3cc4b7('0x1e48')][_0x3cc4b7('0x19b2')][_0x3cc4b7('0x1f88')](function(_0x502f43){const _0xb35942=_0x3cc4b7,_0x17789e=_0x36f548()['find'](_0x2ee374[_0xb35942('0xa62')],{'id':Number(_0x502f43[_0xb35942('0x1cd6')])});_0x206262[_0xb35942('0x105d')](_0x17789e);}),!_0x36f548()[_0x3cc4b7('0x1fc5')](_0x206262)&&_0x206262[_0x3cc4b7('0x1f88')](function(_0x2043bd){const _0x1aa26c=_0x3cc4b7;if(!_0x36f548()['some'](_0x563bd0,['id',_0x2043bd['id']])){const _0x32535c=_0x36f548()[_0x1aa26c('0x1ad4')](_0x2ee374[_0x1aa26c('0xa62')],{'id':_0x2043bd['id']});_0x32535c['canSelect']=![],_0x563bd0[_0x1aa26c('0x105d')](_0x32535c);}}),_0x2ee374[_0x3cc4b7('0xa62')]=_0x563bd0;});}})[_0xa7c34c('0x151d')](function(_0xe9ba89){const _0x2d8878=_0xa7c34c;_0x2c557c['error']({'title':_0xe9ba89['status']?_0x2d8878('0x574')+_0xe9ba89[_0x2d8878('0xff9')]+_0x2d8878('0xb0b')+_0xe9ba89[_0x2d8878('0x212f')]:_0x2d8878('0x1b27'),'msg':_0xe9ba89[_0x2d8878('0x4e8')]?JSON[_0x2d8878('0x3e')](_0xe9ba89[_0x2d8878('0x4e8')]):_0xe9ba89[_0x2d8878('0xaab')]()});}),_0x3c7079[_0xa7c34c('0x4ee')]('admin')?_0x2e748a['interval'][_0xa7c34c('0xbaa')]({'fields':_0xa7c34c('0x721'),'sort':_0xa7c34c('0x1909'),'IntervalId':'null'})[_0xa7c34c('0x1549')][_0xa7c34c('0x11bf')](function(_0xe5dedd){const _0x5688e6=_0xa7c34c;_0x2ee374['interval']=_0xe5dedd[_0x5688e6('0x19b2')]||[];})[_0xa7c34c('0x151d')](function(_0x1f1747){const _0x233658=_0xa7c34c;_0x2c557c[_0x233658('0x255')]({'title':_0x1f1747[_0x233658('0xff9')]?_0x233658('0x574')+_0x1f1747[_0x233658('0xff9')]+_0x233658('0xb0b')+_0x1f1747[_0x233658('0x212f')]:_0x233658('0x135a'),'msg':_0x1f1747[_0x233658('0x4e8')]?JSON[_0x233658('0x3e')](_0x1f1747['data']):_0x1f1747[_0x233658('0xaab')]()});}):_0x2e748a[_0xa7c34c('0x507')][_0xa7c34c('0xbaa')]({'fields':_0xa7c34c('0x721'),'sort':_0xa7c34c('0x1909'),'IntervalId':_0xa7c34c('0xb5f')})['$promise']['then'](function(_0xa0b6ae){const _0x3f3541=_0xa7c34c;_0x2ee374[_0x3f3541('0x507')]=_0xa0b6ae[_0x3f3541('0x19b2')]||[];})[_0xa7c34c('0x11bf')](function(){const _0xc50e1d=_0xa7c34c;return _0x2e748a[_0xc50e1d('0x1d63')][_0xc50e1d('0xbaa')]({'userProfileId':_0x2ee374['currentUser'][_0xc50e1d('0x781')],'sectionId':0x3ec})[_0xc50e1d('0x1549')];})['then'](function(_0x229d5c){const _0x218eb9=_0xa7c34c,_0x47bf3e=_0x229d5c&&_0x229d5c[_0x218eb9('0x19b2')]?_0x229d5c[_0x218eb9('0x19b2')][0x0]:null;if(!_0x47bf3e){const _0xf0376b=[];let _0x4fe1aa=null;_0x2ee374[_0x218eb9('0x13fa')]&&(_0x4fe1aa=_0x36f548()[_0x218eb9('0x1ad4')](_0x2ee374['interval'],{'id':Number(_0x2ee374[_0x218eb9('0x13fa')][_0x218eb9('0x6b4')])}));for(let _0x45b6e0=0x0;_0x45b6e0<_0x2ee374[_0x218eb9('0x507')][_0x218eb9('0x1e22')];_0x45b6e0++){_0x4fe1aa&&_0x2ee374['interval'][_0x45b6e0]['id']===_0x4fe1aa['id']&&(_0x2ee374[_0x218eb9('0x507')][_0x45b6e0]['canSelect']=![],_0xf0376b[_0x218eb9('0x105d')](_0x2ee374['interval'][_0x45b6e0]));}_0x2ee374[_0x218eb9('0x507')]=_0xf0376b;}else{if(!_0x47bf3e['autoAssociation'])return _0x2e748a['userProfileResource'][_0x218eb9('0xbaa')]({'sectionId':_0x47bf3e['id']})[_0x218eb9('0x1549')][_0x218eb9('0x11bf')](function(_0x32ea85){const _0x22c391=_0x218eb9,_0x4fa888=_0x36f548()[_0x22c391('0x2171')](_0x32ea85['rows'],function(_0x2ac3ac){const _0x180973=_0x22c391;return _0x36f548()[_0x180973('0x1ad4')](_0x2ee374[_0x180973('0x507')],{'id':_0x2ac3ac[_0x180973('0x15a5')]});});let _0x39592f=null;_0x2ee374[_0x22c391('0x13fa')]&&(_0x39592f=_0x36f548()[_0x22c391('0x1ad4')](_0x2ee374[_0x22c391('0x507')],{'id':Number(_0x2ee374[_0x22c391('0x13fa')][_0x22c391('0x6b4')])}));if(_0x39592f&&!_0x36f548()[_0x22c391('0x1cb3')](_0x4fa888,['id',_0x39592f['id']])){const _0x14840a=_0x36f548()[_0x22c391('0x1ad4')](_0x2ee374[_0x22c391('0x507')],{'id':_0x39592f['id']});_0x14840a['canSelect']=![],_0x4fa888[_0x22c391('0x105d')](_0x14840a);}_0x2ee374[_0x22c391('0x507')]=_0x4fa888;});}})[_0xa7c34c('0x151d')](function(_0xde141){const _0x14525a=_0xa7c34c;_0x2c557c[_0x14525a('0x255')]({'title':_0xde141[_0x14525a('0xff9')]?_0x14525a('0x574')+_0xde141['status']+_0x14525a('0xb0b')+_0xde141['statusText']:'SYSTEM:GETinterval','msg':_0xde141[_0x14525a('0x4e8')]?JSON[_0x14525a('0x3e')](_0xde141[_0x14525a('0x4e8')]):_0xde141[_0x14525a('0xaab')]()});});function _0x52f824(_0x253bbe){const _0x201454=_0xa7c34c;_0x2c444a['go']('app.motiondialer.ivrCampaigns.edit',{'id':_0x253bbe['id'],'ivrCampaign':_0x253bbe,'crudPermissions':_0x2ee374[_0x201454('0xb25')]});}function _0x216ac1(_0x1254a0,_0x2cb586){const _0x5b6b32=_0xa7c34c;_0x258de0[_0x5b6b32('0xb9')]({'controller':_0x5b6b32('0x10ac'),'controllerAs':'vm','templateUrl':_0x5e9e43,'parent':angular[_0x5b6b32('0x1e73')](_0x3b1a9f[_0x5b6b32('0x1d2')]),'targetEvent':_0x2cb586,'clickOutsideToClose':!![],'locals':{'ivrCampaign':_0x1254a0,'ivrCampaigns':_0x2ee374[_0x5b6b32('0x1e48')]?_0x2ee374['ivrCampaigns'][_0x5b6b32('0x19b2')]:[],'crudPermissions':_0x2ee374[_0x5b6b32('0xb25')]}});}function _0x483474(_0x379a69,_0x309d14){const _0x6e2ff6=_0xa7c34c;_0x258de0[_0x6e2ff6('0xb9')]({'controller':'IvrCampaignlistaddController','controllerAs':'vm','templateUrl':_0x2a1ff9,'parent':angular[_0x6e2ff6('0x1e73')](_0x3b1a9f[_0x6e2ff6('0x1d2')]),'targetEvent':_0x309d14,'clickOutsideToClose':!![],'locals':{'ivrCampaign':_0x379a69,'ivrCampaigns':_0x2ee374[_0x6e2ff6('0x1e48')]?_0x2ee374['ivrCampaigns']['rows']:[],'crudPermissions':_0x2ee374[_0x6e2ff6('0xb25')]}});}function _0x55d5f0(_0x580d80,_0x1a389d){const _0x69ca09=_0xa7c34c;_0x258de0[_0x69ca09('0xb9')]({'controller':_0x69ca09('0x2801'),'controllerAs':'vm','templateUrl':_0x4e0949,'parent':angular[_0x69ca09('0x1e73')](_0x3b1a9f[_0x69ca09('0x1d2')]),'targetEvent':_0x1a389d,'clickOutsideToClose':!![],'locals':{'ivrCampaign':_0x580d80,'ivrCampaigns':_0x2ee374[_0x69ca09('0x1e48')]?_0x2ee374['ivrCampaigns']['rows']:[],'crudPermissions':_0x2ee374[_0x69ca09('0xb25')]}});}function _0x4af641(_0x113a47,_0x10a56e){const _0x4f0236=_0xa7c34c,_0x3920c7=_0x258de0[_0x4f0236('0x132b')]()[_0x4f0236('0x134b')](_0x4f0236('0x1796')+_0x36f548()['startCase'](_0x4f0236('0x13fa'))+'?')[_0x4f0236('0x1d03')](_0x4f0236('0x2061')+(_0x113a47[_0x4f0236('0x1909')]||_0x4f0236('0x13fa'))+_0x4f0236('0x1c78')+_0x4f0236('0x1a'))[_0x4f0236('0xb2e')]('delete\x20ivrCampaign')['targetEvent'](_0x10a56e)['ok']('OK')[_0x4f0236('0x26c9')]('CANCEL');_0x258de0['show'](_0x3920c7)[_0x4f0236('0x11bf')](function(){_0x43b211(_0x113a47);},function(){const _0x70ed53=_0x4f0236;console[_0x70ed53('0xc78')]('CANCEL');});}function _0x4472d4(){const _0xa233d9=_0xa7c34c;if(_0x3c7079[_0xa233d9('0x4ee')](_0xa233d9('0xf45')))_0x2c444a['go']('app.motiondialer.realtime.ivr_campaigns',{});else return _0x2e748a['userProfileSection'][_0xa233d9('0xbaa')]({'userProfileId':_0x3c7079['getCurrentUser']()[_0xa233d9('0x781')],'sectionId':0x5e6})['$promise'][_0xa233d9('0x11bf')](function(_0x5c8de4){const _0x3a2124=_0xa233d9,_0xf10ba0=_0x5c8de4&&_0x5c8de4[_0x3a2124('0x19b2')]?_0x5c8de4[_0x3a2124('0x19b2')][0x0]:null;_0xf10ba0&&_0xf10ba0[_0x3a2124('0x1f0a')]?_0x2c444a['go'](_0x3a2124('0x26d9'),{}):_0x2c557c[_0x3a2124('0x870')]({'title':_0x15aaaa[_0x3a2124('0x10c2')](_0x3a2124('0xbff')),'msg':_0x15aaaa[_0x3a2124('0x10c2')](_0x3a2124('0x10d1'))});})[_0xa233d9('0x151d')](function(_0x6479eb){const _0x4b5149=_0xa233d9;_0x2c557c['error']({'title':_0x6479eb[_0x4b5149('0xff9')]?_0x4b5149('0x574')+_0x6479eb[_0x4b5149('0xff9')]+_0x4b5149('0xb0b')+_0x6479eb[_0x4b5149('0x212f')]:_0x4b5149('0x1011'),'msg':_0x6479eb[_0x4b5149('0xff9')]?JSON['stringify'](_0x6479eb[_0x4b5149('0x4e8')]):_0x6479eb[_0x4b5149('0xaab')]()});});}let _0x441a72=!![],_0x386cd0=0x1;_0x3f6150[_0xa7c34c('0x2087')](_0xa7c34c('0x842'),function(_0x4de1fd,_0x27044a){const _0x5dd65c=_0xa7c34c;_0x441a72?_0x3bb7cf(function(){_0x441a72=![];}):(!_0x27044a&&(_0x386cd0=_0x2ee374['query'][_0x5dd65c('0x1c2')]),_0x4de1fd!==_0x27044a&&(_0x2ee374['query'][_0x5dd65c('0x1c2')]=0x1),!_0x4de1fd&&(_0x2ee374[_0x5dd65c('0x1f2a')]['page']=_0x386cd0),_0x2ee374[_0x5dd65c('0x1262')]());});function _0x5dce2c(_0x33a692){const _0x120b8d=_0xa7c34c;_0x2ee374[_0x120b8d('0x1e48')]=_0x33a692||{'count':0x0,'rows':[]};}function _0x947478(){const _0x49d1d5=_0xa7c34c;_0x2ee374[_0x49d1d5('0x1f2a')][_0x49d1d5('0x1393')]=(_0x2ee374[_0x49d1d5('0x1f2a')][_0x49d1d5('0x1c2')]-0x1)*_0x2ee374[_0x49d1d5('0x1f2a')][_0x49d1d5('0xd5c')],_0x3c7079[_0x49d1d5('0x4ee')](_0x49d1d5('0xf45'))?_0x2ee374['promise']=_0x2e748a[_0x49d1d5('0x145d')][_0x49d1d5('0xbaa')](_0x2ee374[_0x49d1d5('0x1f2a')],_0x5dce2c)[_0x49d1d5('0x1549')]:(_0x2ee374['query']['id']=_0x2ee374['userProfile']['id'],_0x2ee374['query'][_0x49d1d5('0xe6')]=_0x49d1d5('0xec'),_0x2ee374['promise']=_0x2e748a[_0x49d1d5('0x25bc')][_0x49d1d5('0x228e')](_0x2ee374[_0x49d1d5('0x1f2a')],_0x5dce2c)[_0x49d1d5('0x1549')]);}function _0x595087(_0x1176df,_0x35ba98){const _0x935ac1=_0xa7c34c;_0x258de0[_0x935ac1('0xb9')]({'controller':'CreateOrEditIvrCampaignDialogController','controllerAs':'vm','templateUrl':_0x5e9483,'parent':angular['element'](_0x3b1a9f['body']),'targetEvent':_0x1176df,'clickOutsideToClose':!![],'locals':{'ivrCampaign':_0x35ba98,'ivrCampaigns':_0x2ee374[_0x935ac1('0x1e48')][_0x935ac1('0x19b2')],'license':_0x2ee374['license'],'setting':_0x2ee374[_0x935ac1('0x23e1')],'crudPermissions':_0x2ee374[_0x935ac1('0xb25')]}});}function _0x43b211(_0x48b14b){const _0x41ebb9=_0xa7c34c;_0x2e748a[_0x41ebb9('0x145d')][_0x41ebb9('0x2088')]({'id':_0x48b14b['id']})[_0x41ebb9('0x1549')][_0x41ebb9('0x11bf')](function(){const _0x7db86c=_0x41ebb9;_0x36f548()[_0x7db86c('0x14a5')](_0x2ee374[_0x7db86c('0x1e48')][_0x7db86c('0x19b2')],{'id':_0x48b14b['id']}),_0x2ee374[_0x7db86c('0x1e48')][_0x7db86c('0x27d2')]-=0x1,!_0x2ee374[_0x7db86c('0x1e48')][_0x7db86c('0x19b2')]['length']&&_0x2ee374['getIvrCampaigns'](),_0x2c557c[_0x7db86c('0x2693')]({'title':_0x36f548()['startCase'](_0x7db86c('0x1355'))+_0x7db86c('0x2113'),'msg':_0x48b14b['name']?_0x48b14b[_0x7db86c('0x1909')]+_0x7db86c('0x433'):''});})[_0x41ebb9('0x151d')](function(_0x1c3c1f){const _0x116aa3=_0x41ebb9;if(_0x1c3c1f[_0x116aa3('0x4e8')]&&_0x1c3c1f[_0x116aa3('0x4e8')][_0x116aa3('0x120f')]&&_0x1c3c1f[_0x116aa3('0x4e8')][_0x116aa3('0x120f')][_0x116aa3('0x1e22')]){_0x2ee374['errors']=_0x1c3c1f['data'][_0x116aa3('0x120f')]||[{'message':_0x1c3c1f[_0x116aa3('0xaab')](),'type':'SYSTEM:DELETEcampaign'}];for(let _0x109d7f=0x0;_0x109d7f<_0x1c3c1f[_0x116aa3('0x4e8')][_0x116aa3('0x120f')]['length'];_0x109d7f++){_0x2c557c[_0x116aa3('0x255')]({'title':_0x1c3c1f[_0x116aa3('0x4e8')]['errors'][_0x109d7f][_0x116aa3('0x19fd')],'msg':_0x1c3c1f[_0x116aa3('0x4e8')][_0x116aa3('0x120f')][_0x109d7f][_0x116aa3('0x1b86')]});}}else _0x2c557c['error']({'title':_0x1c3c1f[_0x116aa3('0xff9')]?_0x116aa3('0x574')+_0x1c3c1f[_0x116aa3('0xff9')]+_0x116aa3('0xb0b')+_0x1c3c1f[_0x116aa3('0x212f')]:_0x116aa3('0xc2f'),'msg':_0x1c3c1f['data']?JSON[_0x116aa3('0x3e')](_0x1c3c1f[_0x116aa3('0x4e8')]['message']):_0x1c3c1f[_0x116aa3('0x1b86')]||_0x1c3c1f[_0x116aa3('0xaab')]()});});}function _0x3e233b(){const _0x508d8d=_0xa7c34c,_0x585d5d=angular['copy'](_0x2ee374['selectedIvrCampaigns']);return _0x2ee374[_0x508d8d('0x1a05')]=[],_0x585d5d;}function _0x53ada2(_0x3b413d){const _0x10d04e=_0xa7c34c,_0x10eb4a=_0x258de0[_0x10d04e('0x132b')]()['title'](_0x10d04e('0x2218'))['htmlContent'](_0x10d04e('0x2061')+_0x2ee374['selectedIvrCampaigns'][_0x10d04e('0x1e22')]+_0x10d04e('0xac6')+_0x10d04e('0x1a'))['ariaLabel']('delete\x20IvrCampaigns')[_0x10d04e('0x1e25')](_0x3b413d)['ok']('OK')[_0x10d04e('0x26c9')](_0x10d04e('0x772'));_0x258de0[_0x10d04e('0xb9')](_0x10eb4a)[_0x10d04e('0x11bf')](function(){const _0x4083d0=_0x10d04e;_0x2ee374['selectedIvrCampaigns']['forEach'](function(_0x4b246e){_0x43b211(_0x4b246e);}),_0x2ee374[_0x4083d0('0x1a05')]=[];});}function _0x505151(){_0x2ee374['selectedIvrCampaigns']=[];}function _0x1edc5b(){const _0x5455fc=_0xa7c34c;_0x2ee374['selectedIvrCampaigns']=_0x2ee374[_0x5455fc('0x1e48')]['rows'];}}const _0x4e6e4f=_0x386e98;_0x63664e[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0xcbc'),_0x21d0f5('0x16b9'),_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0xb6b'),_0x21d0f5('0x142d'),_0x21d0f5('0x8bb'),_0x21d0f5('0xf08'),'api','Auth',_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1'),_0x21d0f5('0xb25')];function _0x63664e(_0x32d9e3,_0x5637b3,_0x540724,_0x2e2c04,_0x261233,_0x14ab23,_0x4f21a5,_0x2f4bb6,_0x34d2be,_0x312c07,_0x454275,_0x465125,_0x136a3c,_0x1abb07){const _0x46c7a4=_0x21d0f5,_0xfab9f7=this;_0xfab9f7[_0x46c7a4('0x32a')]=_0x454275[_0x46c7a4('0x2428')](),_0xfab9f7[_0x46c7a4('0x120f')]=[],_0xfab9f7[_0x46c7a4('0x23e1')]=_0x136a3c,_0xfab9f7[_0x46c7a4('0x17ff')]=_0x465125,_0xfab9f7[_0x46c7a4('0xb25')]=_0x1abb07,_0xfab9f7[_0x46c7a4('0x2c9')]={},_0xfab9f7['passwordPattern']=_0xfab9f7[_0x46c7a4('0x23e1')]&&_0xfab9f7['setting'][_0x46c7a4('0x1d4')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0xfab9f7[_0x46c7a4('0x134b')]='MOTIONDIALER.EDIT_QUEUECAMPAIGN',_0xfab9f7[_0x46c7a4('0xf08')]=angular['copy'](_0x34d2be),_0xfab9f7[_0x46c7a4('0x8bb')]=_0x2f4bb6,_0xfab9f7[_0x46c7a4('0x4b0')]=![];!_0xfab9f7['queueCampaign']&&(_0xfab9f7[_0x46c7a4('0xf08')]={'dialActive':!![],'type':'outbound','dialCheckDuplicateType':_0x46c7a4('0x27e5'),'dialCutDigit':0x0,'autopause':'no','ringinuse':'no','timeoutrestart':'no','setinterfacevar':'no','setqueuevar':'no','setqueueentryvar':'no','dialOrderByScheduledAt':_0x46c7a4('0x170a'),'dialGlobalInterval':'07:00-22:00,*,*,*','dialAMDInitialSilence':0x9c4,'dialAMDGreeting':0x5dc,'dialAMDAfterGreetingSilence':0x320,'dialAMDTotalAnalysisTime':0x1388,'dialAMDMinWordLength':0x64,'dialAMDBetweenWordsSilence':0x32,'dialAMDMaximumNumberOfWords':0x3,'dialAMDSilenceThreshold':0x100,'dialAMDMaximumWordLength':0x1388,'dialMethod':'progressive','dialPowerLevel':0x1,'dialPredictiveOptimization':_0x46c7a4('0x1fa8'),'dialPredictiveOptimizationPercentage':0x3,'dialPredictiveInterval':0xa,'dialLimitQueue':0x0,'dialRandomLastDigitCallerIdNumber':0x0,'dialOriginateTimeout':0x1e,'dialQueueOptions':_0x46c7a4('0x1c96'),'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},_0xfab9f7[_0x46c7a4('0x134b')]=_0x46c7a4('0x83'),_0xfab9f7[_0x46c7a4('0x4b0')]=!![]);_0xfab9f7['addNewQueueCampaign']=_0x47dd60,_0xfab9f7[_0x46c7a4('0x23c7')]=_0x43d6cf,_0xfab9f7[_0x46c7a4('0x25fd')]=_0x4d6d5f,_0xfab9f7[_0x46c7a4('0x1bd1')]=_0x1c55b5,_0xfab9f7[_0x46c7a4('0xc4e')]=_0x1b09f3,_0x454275['hasRole'](_0x46c7a4('0xf45'))?_0x312c07['trunk'][_0x46c7a4('0xbaa')]({'fields':_0x46c7a4('0x721'),'sort':_0x46c7a4('0x1909')})[_0x46c7a4('0x1549')][_0x46c7a4('0x11bf')](function(_0x46a400){_0xfab9f7['trunks']=_0x46a400['rows']||[];})[_0x46c7a4('0x151d')](function(_0x4362a8){const _0x2327df=_0x46c7a4;_0x4f21a5['error']({'title':_0x4362a8[_0x2327df('0xff9')]?_0x2327df('0x574')+_0x4362a8['status']+_0x2327df('0xb0b')+_0x4362a8[_0x2327df('0x212f')]:_0x2327df('0x35f'),'msg':_0x4362a8['data']?JSON[_0x2327df('0x3e')](_0x4362a8[_0x2327df('0x4e8')]):_0x4362a8[_0x2327df('0xaab')]()});}):_0x312c07[_0x46c7a4('0x264e')][_0x46c7a4('0xbaa')]({'fields':_0x46c7a4('0x721'),'sort':_0x46c7a4('0x1909')})[_0x46c7a4('0x1549')][_0x46c7a4('0x11bf')](function(_0x44520c){const _0x499c49=_0x46c7a4;_0xfab9f7[_0x499c49('0x1b24')]=_0x44520c[_0x499c49('0x19b2')]||[];})['then'](function(){const _0x1202dc=_0x46c7a4;return _0x312c07[_0x1202dc('0x1d63')][_0x1202dc('0xbaa')]({'userProfileId':_0xfab9f7['currentUser'][_0x1202dc('0x781')],'sectionId':0x3f3})[_0x1202dc('0x1549')];})[_0x46c7a4('0x11bf')](function(_0x5b5f8e){const _0x15835c=_0x46c7a4,_0x57519e=_0x5b5f8e&&_0x5b5f8e[_0x15835c('0x19b2')]?_0x5b5f8e['rows'][0x0]:null;if(!_0x57519e){const _0x556747=[];let _0x5e5216=null;_0xfab9f7[_0x15835c('0xf08')]&&(_0x5e5216=_0x36f548()[_0x15835c('0x1ad4')](_0xfab9f7[_0x15835c('0x1b24')],{'id':Number(_0xfab9f7[_0x15835c('0xf08')][_0x15835c('0x1016')])}));for(let _0x5e006b=0x0;_0x5e006b<_0xfab9f7[_0x15835c('0x1b24')][_0x15835c('0x1e22')];_0x5e006b++){_0x5e5216&&_0xfab9f7[_0x15835c('0x1b24')][_0x5e006b]['id']===_0x5e5216['id']&&(_0xfab9f7[_0x15835c('0x1b24')][_0x5e006b][_0x15835c('0x254a')]=![],_0x556747[_0x15835c('0x105d')](_0xfab9f7[_0x15835c('0x1b24')][_0x5e006b]));}_0xfab9f7['trunks']=_0x556747;}else{if(!_0x57519e['autoAssociation'])return _0x312c07[_0x15835c('0x26d1')]['get']({'sectionId':_0x57519e['id']})[_0x15835c('0x1549')][_0x15835c('0x11bf')](function(_0x55ceee){const _0x4f5945=_0x15835c,_0x320dc0=_0x36f548()['map'](_0x55ceee[_0x4f5945('0x19b2')],function(_0x1e1ad2){const _0x295aa3=_0x4f5945;return _0x36f548()[_0x295aa3('0x1ad4')](_0xfab9f7[_0x295aa3('0x1b24')],{'id':_0x1e1ad2['resourceId']});});let _0x376a59=null;_0xfab9f7[_0x4f5945('0xf08')]&&(_0x376a59=_0x36f548()[_0x4f5945('0x1ad4')](_0xfab9f7[_0x4f5945('0x1b24')],{'id':Number(_0xfab9f7[_0x4f5945('0xf08')][_0x4f5945('0x1016')])}));if(_0x376a59&&!_0x36f548()['some'](_0x320dc0,['id',_0x376a59['id']])){const _0x12f391=_0x36f548()[_0x4f5945('0x1ad4')](_0xfab9f7['trunks'],{'id':_0x376a59['id']});_0x12f391['canSelect']=![],_0x320dc0[_0x4f5945('0x105d')](_0x12f391);}_0xfab9f7['trunks']=_0x320dc0;});}})[_0x46c7a4('0x151d')](function(_0xf1e20c){const _0x78afbe=_0x46c7a4;_0x4f21a5[_0x78afbe('0x255')]({'title':_0xf1e20c['status']?_0x78afbe('0x574')+_0xf1e20c['status']+_0x78afbe('0xb0b')+_0xf1e20c[_0x78afbe('0x212f')]:_0x78afbe('0xf39'),'msg':_0xf1e20c[_0x78afbe('0x4e8')]?JSON[_0x78afbe('0x3e')](_0xf1e20c[_0x78afbe('0x4e8')]):_0xf1e20c[_0x78afbe('0xaab')]()});}),_0x454275[_0x46c7a4('0x4ee')]('admin')?_0x312c07[_0x46c7a4('0x507')][_0x46c7a4('0xbaa')]({'fields':_0x46c7a4('0x721'),'sort':_0x46c7a4('0x1909'),'IntervalId':_0x46c7a4('0xb5f')})['$promise'][_0x46c7a4('0x11bf')](function(_0x4cf4d9){const _0xc94cbe=_0x46c7a4;_0xfab9f7[_0xc94cbe('0x507')]=_0x4cf4d9[_0xc94cbe('0x19b2')]||[];})[_0x46c7a4('0x151d')](function(_0x31abc8){const _0x13fb2c=_0x46c7a4;_0x4f21a5[_0x13fb2c('0x255')]({'title':_0x31abc8[_0x13fb2c('0xff9')]?_0x13fb2c('0x574')+_0x31abc8[_0x13fb2c('0xff9')]+_0x13fb2c('0xb0b')+_0x31abc8[_0x13fb2c('0x212f')]:_0x13fb2c('0x135a'),'msg':_0x31abc8['data']?JSON[_0x13fb2c('0x3e')](_0x31abc8[_0x13fb2c('0x4e8')]):_0x31abc8[_0x13fb2c('0xaab')]()});}):_0x312c07[_0x46c7a4('0x507')][_0x46c7a4('0xbaa')]({'fields':'id,name','sort':'name','IntervalId':'null'})[_0x46c7a4('0x1549')][_0x46c7a4('0x11bf')](function(_0x553954){const _0x1fced0=_0x46c7a4;_0xfab9f7[_0x1fced0('0x507')]=_0x553954[_0x1fced0('0x19b2')]||[];})[_0x46c7a4('0x11bf')](function(){const _0xd4bcb2=_0x46c7a4;return _0x312c07[_0xd4bcb2('0x1d63')][_0xd4bcb2('0xbaa')]({'userProfileId':_0xfab9f7[_0xd4bcb2('0x32a')]['userProfileId'],'sectionId':0x3ec})[_0xd4bcb2('0x1549')];})['then'](function(_0x1962be){const _0x382927=_0x46c7a4,_0x32837a=_0x1962be&&_0x1962be['rows']?_0x1962be['rows'][0x0]:null;if(!_0x32837a){const _0x2c607b=[];let _0x2d1be1=null;_0xfab9f7[_0x382927('0xf08')]&&(_0x2d1be1=_0x36f548()[_0x382927('0x1ad4')](_0xfab9f7[_0x382927('0x507')],{'id':Number(_0xfab9f7['queueCampaign'][_0x382927('0x6b4')])}));for(let _0x4a4764=0x0;_0x4a4764<_0xfab9f7[_0x382927('0x507')]['length'];_0x4a4764++){_0x2d1be1&&_0xfab9f7['interval'][_0x4a4764]['id']===_0x2d1be1['id']&&(_0xfab9f7[_0x382927('0x507')][_0x4a4764][_0x382927('0x254a')]=![],_0x2c607b[_0x382927('0x105d')](_0xfab9f7['interval'][_0x4a4764]));}_0xfab9f7[_0x382927('0x507')]=_0x2c607b;}else{if(!_0x32837a[_0x382927('0xf11')])return _0x312c07[_0x382927('0x26d1')][_0x382927('0xbaa')]({'sectionId':_0x32837a['id']})[_0x382927('0x1549')][_0x382927('0x11bf')](function(_0x4f4e46){const _0x557b21=_0x382927,_0xbaa882=_0x36f548()['map'](_0x4f4e46['rows'],function(_0x5a3052){return _0x36f548()['find'](_0xfab9f7['interval'],{'id':_0x5a3052['resourceId']});});let _0x4d7744=null;_0xfab9f7['queueCampaign']&&(_0x4d7744=_0x36f548()[_0x557b21('0x1ad4')](_0xfab9f7['interval'],{'id':Number(_0xfab9f7[_0x557b21('0xf08')][_0x557b21('0x6b4')])}));if(_0x4d7744&&!_0x36f548()['some'](_0xbaa882,['id',_0x4d7744['id']])){const _0x557ff8=_0x36f548()[_0x557b21('0x1ad4')](_0xfab9f7[_0x557b21('0x507')],{'id':_0x4d7744['id']});_0x557ff8['canSelect']=![],_0xbaa882[_0x557b21('0x105d')](_0x557ff8);}_0xfab9f7[_0x557b21('0x507')]=_0xbaa882;});}})['catch'](function(_0x26aced){const _0x270aa8=_0x46c7a4;_0x4f21a5[_0x270aa8('0x255')]({'title':_0x26aced[_0x270aa8('0xff9')]?_0x270aa8('0x574')+_0x26aced[_0x270aa8('0xff9')]+_0x270aa8('0xb0b')+_0x26aced[_0x270aa8('0x212f')]:_0x270aa8('0xa8b'),'msg':_0x26aced[_0x270aa8('0x4e8')]?JSON[_0x270aa8('0x3e')](_0x26aced[_0x270aa8('0x4e8')]):_0x26aced[_0x270aa8('0xaab')]()});});function _0x47dd60(){const _0x54f46d=_0x46c7a4;_0xfab9f7[_0x54f46d('0x120f')]=[],_0x312c07['voiceQueue'][_0x54f46d('0x259')](_0xfab9f7['queueCampaign'])['$promise'][_0x54f46d('0x11bf')](function(_0xc2d76f){const _0x2c2f1=_0x54f46d;_0xfab9f7[_0x2c2f1('0x8bb')][_0x2c2f1('0x880')](_0xc2d76f[_0x2c2f1('0x2866')]()),_0x4f21a5[_0x2c2f1('0x2693')]({'title':_0x2c2f1('0xa20'),'msg':_0xfab9f7[_0x2c2f1('0xf08')][_0x2c2f1('0x1909')]?_0xfab9f7[_0x2c2f1('0xf08')][_0x2c2f1('0x1909')]+_0x2c2f1('0x7fb'):''}),_0x1b09f3(_0xc2d76f);})['catch'](function(_0x2fac5a){const _0x3e8951=_0x54f46d;if(_0x2fac5a[_0x3e8951('0x4e8')]&&_0x2fac5a[_0x3e8951('0x4e8')][_0x3e8951('0x120f')]&&_0x2fac5a['data'][_0x3e8951('0x120f')][_0x3e8951('0x1e22')]){_0xfab9f7[_0x3e8951('0x120f')]=_0x2fac5a[_0x3e8951('0x4e8')]['errors']||[{'message':_0x2fac5a['toString'](),'type':'api.voiceQueue.save'}];for(let _0x36d711=0x0;_0x36d711<_0x2fac5a[_0x3e8951('0x4e8')]['errors'][_0x3e8951('0x1e22')];_0x36d711+=0x1){_0x4f21a5[_0x3e8951('0x255')]({'title':_0x2fac5a[_0x3e8951('0x4e8')][_0x3e8951('0x120f')][_0x36d711][_0x3e8951('0x19fd')],'msg':_0x2fac5a[_0x3e8951('0x4e8')][_0x3e8951('0x120f')][_0x36d711]['message']});}}else _0x4f21a5[_0x3e8951('0x255')]({'title':_0x2fac5a[_0x3e8951('0xff9')]?_0x3e8951('0x574')+_0x2fac5a['status']+_0x3e8951('0xb0b')+_0x2fac5a[_0x3e8951('0x212f')]:_0x3e8951('0x1db3'),'msg':_0x2fac5a[_0x3e8951('0x4e8')]?JSON['stringify'](_0x2fac5a['data'][_0x3e8951('0x1b86')]):_0x2fac5a['toString']()});});}function _0x43d6cf(){const _0x572f76=_0x46c7a4;_0xfab9f7['errors']=[],_0x312c07['voiceQueue'][_0x572f76('0x5ab')]({'id':_0xfab9f7[_0x572f76('0xf08')]['id']},_0xfab9f7[_0x572f76('0xf08')])[_0x572f76('0x1549')][_0x572f76('0x11bf')](function(_0x28508d){const _0x3263c2=_0x572f76,_0x4455cf=_0x36f548()[_0x3263c2('0x1ad4')](_0xfab9f7['queueCampaigns'],{'id':_0x28508d['id']});_0x4455cf&&_0x36f548()['merge'](_0x4455cf,_0x36f548()['pick'](_0x28508d[_0x3263c2('0x2866')](),_0x36f548()[_0x3263c2('0xe22')](_0x4455cf))),_0x4f21a5[_0x3263c2('0x2693')]({'title':'QueueCampaign\x20properly\x20saved!','msg':_0xfab9f7[_0x3263c2('0xf08')]['name']?_0xfab9f7['queueCampaign'][_0x3263c2('0x1909')]+_0x3263c2('0x1a78'):''}),_0x1b09f3(_0x28508d);})['catch'](function(_0x2fcdbb){const _0x4c4a61=_0x572f76;if(_0x2fcdbb['data']&&_0x2fcdbb[_0x4c4a61('0x4e8')][_0x4c4a61('0x120f')]&&_0x2fcdbb['data'][_0x4c4a61('0x120f')][_0x4c4a61('0x1e22')]){_0xfab9f7[_0x4c4a61('0x120f')]=_0x2fcdbb[_0x4c4a61('0x4e8')][_0x4c4a61('0x120f')]||[{'message':_0x2fcdbb['toString'](),'type':_0x4c4a61('0x1c4c')}];for(let _0xa152b8=0x0;_0xa152b8<_0x2fcdbb[_0x4c4a61('0x4e8')][_0x4c4a61('0x120f')][_0x4c4a61('0x1e22')];_0xa152b8++){_0x4f21a5[_0x4c4a61('0x255')]({'title':_0x2fcdbb['data']['errors'][_0xa152b8][_0x4c4a61('0x19fd')],'msg':_0x2fcdbb['data'][_0x4c4a61('0x120f')][_0xa152b8][_0x4c4a61('0x1b86')]});}}else _0x4f21a5[_0x4c4a61('0x255')]({'title':_0x2fcdbb['status']?_0x4c4a61('0x574')+_0x2fcdbb[_0x4c4a61('0xff9')]+_0x4c4a61('0xb0b')+_0x2fcdbb[_0x4c4a61('0x212f')]:_0x4c4a61('0x1c4c'),'msg':_0x2fcdbb[_0x4c4a61('0x4e8')]?JSON[_0x4c4a61('0x3e')](_0x2fcdbb[_0x4c4a61('0x4e8')][_0x4c4a61('0x1b86')]):_0x2fcdbb['toString']()});});}function _0x4d6d5f(_0xd7dee5){const _0x152daf=_0x46c7a4;_0xfab9f7[_0x152daf('0x120f')]=[];const _0x4653db=_0x2e2c04[_0x152daf('0x132b')]()[_0x152daf('0x134b')](_0x152daf('0x1fa9'))[_0x152daf('0x252a')](_0x152daf('0x24ff'))[_0x152daf('0xb2e')]('Delete\x20QueueCampaign')['ok'](_0x152daf('0x1167'))[_0x152daf('0x26c9')](_0x152daf('0x784'))[_0x152daf('0x1e25')](_0xd7dee5);_0x2e2c04[_0x152daf('0xb9')](_0x4653db)[_0x152daf('0x11bf')](function(){const _0xf9fd39=_0x152daf;_0x312c07['voiceQueue']['delete']({'id':_0xfab9f7[_0xf9fd39('0xf08')]['id']})[_0xf9fd39('0x1549')][_0xf9fd39('0x11bf')](function(){const _0x1ccaa1=_0xf9fd39;_0x36f548()[_0x1ccaa1('0x14a5')](_0xfab9f7[_0x1ccaa1('0x8bb')],{'id':_0xfab9f7['queueCampaign']['id']}),_0x4f21a5[_0x1ccaa1('0x2693')]({'title':_0x1ccaa1('0x2367'),'msg':(_0xfab9f7[_0x1ccaa1('0xf08')][_0x1ccaa1('0x1909')]||_0x1ccaa1('0xf08'))+_0x1ccaa1('0x433')}),_0x1b09f3(_0xfab9f7[_0x1ccaa1('0xf08')]);})[_0xf9fd39('0x151d')](function(_0x1688d0){const _0x45b8b5=_0xf9fd39;if(_0x1688d0[_0x45b8b5('0x4e8')]&&_0x1688d0[_0x45b8b5('0x4e8')][_0x45b8b5('0x120f')]&&_0x1688d0[_0x45b8b5('0x4e8')][_0x45b8b5('0x120f')][_0x45b8b5('0x1e22')]){_0xfab9f7[_0x45b8b5('0x120f')]=_0x1688d0['data'][_0x45b8b5('0x120f')]||[{'message':_0x1688d0['toString'](),'type':_0x45b8b5('0xde2')}];for(let _0x272a6f=0x0;_0x272a6f<_0x1688d0[_0x45b8b5('0x4e8')][_0x45b8b5('0x120f')][_0x45b8b5('0x1e22')];_0x272a6f++){_0x4f21a5['error']({'title':_0x1688d0['data'][_0x45b8b5('0x120f')][_0x272a6f][_0x45b8b5('0x19fd')],'msg':_0x1688d0[_0x45b8b5('0x4e8')][_0x45b8b5('0x120f')][_0x272a6f][_0x45b8b5('0x1b86')]});}}else _0x4f21a5[_0x45b8b5('0x255')]({'title':_0x1688d0[_0x45b8b5('0xff9')]?_0x45b8b5('0x574')+_0x1688d0[_0x45b8b5('0xff9')]+_0x45b8b5('0xb0b')+_0x1688d0[_0x45b8b5('0x212f')]:_0x45b8b5('0xde2'),'msg':_0x1688d0[_0x45b8b5('0x4e8')]?JSON[_0x45b8b5('0x3e')](_0x1688d0[_0x45b8b5('0x4e8')]['message']):_0x1688d0[_0x45b8b5('0x1b86')]||_0x1688d0[_0x45b8b5('0xaab')]()});});},function(){});}function _0x1c55b5(_0x403833){return _0x403833===null?undefined:new Date(_0x403833);}function _0x1b09f3(_0x2c1f2a){_0x2e2c04['hide'](_0x2c1f2a);}}const _0x55b0ca=_0x63664e;_0x46274c[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0x142d'),_0x21d0f5('0x12a5'),_0x21d0f5('0xf08'),_0x21d0f5('0x8bb'),_0x21d0f5('0x25f9'),'$translate',_0x21d0f5('0x1150'),'crudPermissions'];function _0x46274c(_0xf86fa1,_0x3747f0,_0x1a8d9b,_0x5acc02,_0x1f8223,_0x5e8ea3,_0x2975cd,_0x32e253,_0x397ee7,_0x1ad29d){const _0x642349=_0x21d0f5,_0x143ffc=this;_0x143ffc['currentUser']=_0x397ee7[_0x642349('0x2428')](),_0x143ffc[_0x642349('0xf08')]=_0x1f8223,_0x143ffc[_0x642349('0xb25')]=_0x1ad29d,_0x143ffc[_0x642349('0xf47')]=0x0,_0x143ffc['realtime']=_0x2975cd,_0x143ffc[_0x642349('0x22')]=[],_0x143ffc['allowedItems']=[],_0x143ffc[_0x642349('0x26cc')]=[],_0x143ffc[_0x642349('0x1c6f')]=[],_0x143ffc[_0x642349('0x21ed')]=[],_0x143ffc['pendingChanges']=![],_0x143ffc['onInit']=_0x40bd56,_0x143ffc[_0x642349('0x280')]=_0x5ced5d,_0x143ffc[_0x642349('0xc4e')]=_0x594a28,_0x143ffc[_0x642349('0xec5')]={'readOnly':!_0x143ffc[_0x642349('0xb25')][_0x642349('0x25db')],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x642349('0x1909'),'line1':'fullname','line2':[_0x642349('0x1909'),'internal'],'line3':_0x642349('0xf47'),'labelAll':_0x32e253[_0x642349('0x10c2')](_0x642349('0x250e')),'labelSelected':_0x32e253[_0x642349('0x10c2')](_0x642349('0x24b4')),'transferCallback':function(_0x28e413,_0x33f3f2){const _0xe23468=_0x642349;_0x33f3f2?_0x28e413['forEach'](function(_0x1fb6f2){const _0x31857b=a0_0xaf0c;_0x1fb6f2[_0x31857b('0xf47')]=undefined;}):_0x28e413[_0xe23468('0x1f88')](function(_0xfaa6c6){const _0x56f1f3=_0xe23468;_0xfaa6c6[_0x56f1f3('0xf47')]=_0x56f1f3('0x1caa')+_0x143ffc[_0x56f1f3('0xf47')];});const _0x4576c8=_0x36f548()[_0xe23468('0x1513')](_0x143ffc['startingSelectedItems'],_0x143ffc['selectedItems'],function(_0x47d5dc,_0x4d4e24){const _0x5465fb=_0xe23468;return _0x47d5dc['id']===_0x4d4e24['id']&&_0x47d5dc[_0x5465fb('0xf47')]===_0x4d4e24[_0x5465fb('0xf47')];});_0x143ffc['pendingChanges']=_0x36f548()['isEmpty'](_0x4576c8)?![]:!![];}};function _0x40bd56(){const _0x368a29=_0x642349;return _0x397ee7['hasRole']('admin')?_0x269d5f()[_0x368a29('0x151d')](function(_0x40bbd5){const _0x1be903=_0x368a29;_0x1a8d9b[_0x1be903('0x255')]({'title':_0x40bbd5['status']?_0x1be903('0x574')+_0x40bbd5[_0x1be903('0xff9')]+_0x1be903('0xb0b')+_0x40bbd5[_0x1be903('0x212f')]:_0x1be903('0x912'),'msg':_0x40bbd5[_0x1be903('0xff9')]?JSON['stringify'](_0x40bbd5[_0x1be903('0x4e8')]):_0x40bbd5['toString']()});}):_0x336b6b()[_0x368a29('0x11bf')](function(_0x3e023e){const _0x504161=_0x368a29;return _0x143ffc[_0x504161('0xe6')]=_0x3e023e,_0x269d5f();})[_0x368a29('0x151d')](function(_0x4bba32){const _0x24de9f=_0x368a29;_0x1a8d9b[_0x24de9f('0x255')]({'title':_0x4bba32[_0x24de9f('0xff9')]?_0x24de9f('0x574')+_0x4bba32[_0x24de9f('0xff9')]+_0x24de9f('0xb0b')+_0x4bba32[_0x24de9f('0x212f')]:_0x24de9f('0x912'),'msg':_0x4bba32[_0x24de9f('0xff9')]?JSON[_0x24de9f('0x3e')](_0x4bba32[_0x24de9f('0x4e8')]):_0x4bba32[_0x24de9f('0xaab')]()});});}function _0x336b6b(){return _0x3747f0(function(_0x4c9309,_0x29de8c){const _0x3f7791=a0_0xaf0c;_0x5acc02['userProfileSection'][_0x3f7791('0xbaa')]({'userProfileId':_0x143ffc['currentUser']['userProfileId'],'name':_0x3f7791('0x4b1')})[_0x3f7791('0x1549')][_0x3f7791('0x11bf')](function(_0x215c16){const _0x1cd6f3=_0x3f7791,_0x5be420=_0x215c16&&_0x215c16[_0x1cd6f3('0x19b2')]?_0x215c16['rows'][0x0]:null;_0x4c9309(_0x5be420);})[_0x3f7791('0x151d')](function(_0x40701d){_0x29de8c(_0x40701d);});});}function _0x269d5f(){return _0x3747f0(function(_0x536ffe,_0x446e45){const _0x3a98dd=a0_0xaf0c;return _0x496675()[_0x3a98dd('0x11bf')](function(_0x2abf40){const _0x207151=_0x3a98dd;return _0x143ffc[_0x207151('0x22')]=_0x2abf40[_0x207151('0x19b2')]?_0x2abf40[_0x207151('0x19b2')]:[],_0x397ee7['hasRole'](_0x207151('0xf45'))?_0x2abf40:_0x143ffc[_0x207151('0xe6')]?_0x143ffc[_0x207151('0xe6')][_0x207151('0xf11')]?_0x2abf40:_0x62cfae():null;})[_0x3a98dd('0x11bf')](function(_0x7d237c){const _0x3b3726=_0x3a98dd,_0x3be069=_0x7d237c&&_0x7d237c[_0x3b3726('0x19b2')]?_0x7d237c[_0x3b3726('0x19b2')]:[];return _0x143ffc[_0x3b3726('0x63')]=_0x36f548()[_0x3b3726('0x2171')](_0x3be069,function(_0x4c90c1){const _0x5f0922=_0x3b3726;return _0x36f548()[_0x5f0922('0x1ad4')](_0x143ffc[_0x5f0922('0x22')],{'id':_0x397ee7['hasRole']('admin')||_0x143ffc[_0x5f0922('0xe6')][_0x5f0922('0xf11')]?_0x4c90c1['id']:_0x4c90c1[_0x5f0922('0x15a5')]});}),_0x143ffc[_0x3b3726('0x1c6f')]=angular[_0x3b3726('0x6fb')](_0x143ffc[_0x3b3726('0x63')]),_0x143ffc[_0x3b3726('0x22')][_0x3b3726('0x1f88')](function(_0x4dcf88){const _0x5b609c=_0x3b3726,_0x2c76b9=_0x36f548()[_0x5b609c('0x1ad4')](_0x143ffc['allowedItems'],{'id':_0x4dcf88['id']});_0x397ee7['hasRole'](_0x5b609c('0xf45'))?_0x4dcf88[_0x5b609c('0xde9')]=!![]:_0x4dcf88[_0x5b609c('0xde9')]=typeof _0x2c76b9!==_0x5b609c('0x13e9')?!![]:![];}),_0x1723d8();})['then'](function(_0x5eeac3){const _0xe5d1af=_0x3a98dd,_0x53f892=_0x5eeac3&&_0x5eeac3[_0xe5d1af('0x19b2')]?_0x5eeac3[_0xe5d1af('0x19b2')]:[];_0x143ffc[_0xe5d1af('0x26cc')]=_0x36f548()[_0xe5d1af('0x2171')](_0x53f892,function(_0x1ff004){const _0x207e09=_0xe5d1af,_0x44c619=_0x36f548()[_0x207e09('0x1ad4')](_0x143ffc['items'],{'id':_0x1ff004['id']});return _0x44c619[_0x207e09('0xf47')]=_0x1ff004[_0x207e09('0x8')]?'penalty\x20'+_0x1ff004['UserVoiceQueue']['penalty']:'',_0x44c619[_0x207e09('0x1a04')]=typeof _0x1ff004[_0x207e09('0x1a04')]!==_0x207e09('0x13e9')?'<'+_0x1ff004[_0x207e09('0x1a04')]+'>':'',_0x44c619;}),_0x143ffc[_0xe5d1af('0x21ed')]=angular[_0xe5d1af('0x6fb')](_0x143ffc['selectedItems']),_0x143ffc[_0xe5d1af('0xec5')][_0xe5d1af('0x26cc')]=_0x143ffc[_0xe5d1af('0x26cc')],_0x143ffc['dualMultiselectOptions']['items']=_0x36f548()[_0xe5d1af('0x2753')](_0x143ffc['allowedItems'],_0x143ffc[_0xe5d1af('0xec5')][_0xe5d1af('0x26cc')],'id'),_0x536ffe();})[_0x3a98dd('0x151d')](function(_0x51caca){_0x446e45(_0x51caca);});});}function _0x62cfae(){return _0x3747f0(function(_0x39abb7,_0x3cb761){const _0x442ead=a0_0xaf0c;return _0x5acc02['userProfileResource'][_0x442ead('0xbaa')]({'sectionId':_0x143ffc[_0x442ead('0xe6')]['id'],'nolimit':!![]})[_0x442ead('0x1549')][_0x442ead('0x11bf')](function(_0xbb96c){_0x39abb7(_0xbb96c);})[_0x442ead('0x151d')](function(_0x5b5782){_0x3cb761(_0x5b5782);});});}function _0x1723d8(){return _0x3747f0(function(_0x288768,_0x46f775){const _0x34b170=a0_0xaf0c;return _0x5acc02['voiceQueue'][_0x34b170('0x2783')]({'id':_0x143ffc['queueCampaign']['id'],'fields':_0x34b170('0x13d3'),'nolimit':!![],'role':_0x34b170('0x18c4')})['$promise'][_0x34b170('0x11bf')](function(_0x56fd4c){_0x288768(_0x56fd4c);})[_0x34b170('0x151d')](function(_0x15ebdd){_0x46f775(_0x15ebdd);});});}function _0x496675(){return _0x3747f0(function(_0x5c191e,_0x3bcaa8){const _0x12ce6f=a0_0xaf0c;return _0x5acc02[_0x12ce6f('0x21d9')][_0x12ce6f('0xbaa')]({'fields':_0x12ce6f('0x13d3'),'nolimit':!![],'role':_0x12ce6f('0x18c4')})[_0x12ce6f('0x1549')][_0x12ce6f('0x11bf')](function(_0x2a36ea){_0x5c191e(_0x2a36ea);})['catch'](function(_0xfacf5a){_0x3bcaa8(_0xfacf5a);});});}function _0x1d3240(_0x289c92){return _0x3747f0(function(_0x4946c4,_0x300b91){const _0xe755b1=a0_0xaf0c;if(_0x36f548()['isEmpty'](_0x289c92))_0x4946c4();else{const _0x1e6bd3=[],_0x31028b=_0x36f548()[_0xe755b1('0x11a5')](_0x289c92,_0xe755b1('0xf47'));for(let _0x2ace17=0x0;_0x2ace17'+_0x58c13e('0x1a'))['ariaLabel'](_0x58c13e('0x1d2c'))[_0x58c13e('0x1e25')](_0x583a3c)['ok']('OK')[_0x58c13e('0x26c9')](_0x58c13e('0x772'));_0xe753c[_0x58c13e('0xb9')](_0x1c7307)['then'](function(){_0x4565c9(_0x56d6dd);},function(){const _0x5be9da=_0x58c13e;console['log'](_0x5be9da('0x772'));});}function _0xe62fdb(_0x53c73f){const _0x1842b3=_0x394d12;_0x4e3f03[_0x1842b3('0x17a8')]=_0x53c73f||{'count':0x0,'rows':[]};}function _0x4d019c(){const _0x132d93=_0x394d12;_0x4e3f03['query']['offset']=(_0x4e3f03[_0x132d93('0x1f2a')][_0x132d93('0x1c2')]-0x1)*_0x4e3f03['query']['limit'],_0x4e3f03[_0x132d93('0x13f')]=_0x2b83aa['voiceQueue'][_0x132d93('0x153')](_0x4e3f03[_0x132d93('0x1f2a')],_0xe62fdb)['$promise'];}function _0x4565c9(_0x3d9404){const _0x4c1d2b=_0x394d12;_0x2b83aa['hopperBlack'][_0x4c1d2b('0x2088')]({'id':_0x3d9404['id']})['$promise'][_0x4c1d2b('0x11bf')](function(){const _0x3a3478=_0x4c1d2b;_0x36f548()[_0x3a3478('0x14a5')](_0x4e3f03[_0x3a3478('0x17a8')][_0x3a3478('0x19b2')],{'id':_0x3d9404['id']}),_0x4e3f03['queueCampaignHopperBlacks']['count']-=0x1,!_0x4e3f03[_0x3a3478('0x17a8')]['rows'][_0x3a3478('0x1e22')]&&_0x4d019c(),_0x2e43ad[_0x3a3478('0x2693')]({'title':_0x3a3478('0x1726'),'msg':_0x3d9404[_0x3a3478('0x1909')]?_0x3d9404[_0x3a3478('0x1909')]+_0x3a3478('0x433'):''});})[_0x4c1d2b('0x151d')](function(_0x8edc4b){const _0x4b1f50=_0x4c1d2b;if(_0x8edc4b[_0x4b1f50('0x4e8')]&&_0x8edc4b[_0x4b1f50('0x4e8')][_0x4b1f50('0x120f')]&&_0x8edc4b[_0x4b1f50('0x4e8')][_0x4b1f50('0x120f')][_0x4b1f50('0x1e22')]){_0x4e3f03[_0x4b1f50('0x120f')]=_0x8edc4b[_0x4b1f50('0x4e8')][_0x4b1f50('0x120f')]||[{'message':_0x8edc4b['toString'](),'type':_0x4b1f50('0x21e9')}];for(let _0x3fd981=0x0;_0x3fd981<_0x8edc4b[_0x4b1f50('0x4e8')][_0x4b1f50('0x120f')][_0x4b1f50('0x1e22')];_0x3fd981++){_0x2e43ad['error']({'title':_0x8edc4b[_0x4b1f50('0x4e8')]['errors'][_0x3fd981][_0x4b1f50('0x19fd')],'msg':_0x8edc4b[_0x4b1f50('0x4e8')][_0x4b1f50('0x120f')][_0x3fd981]['message']});}}else _0x2e43ad[_0x4b1f50('0x255')]({'title':_0x8edc4b[_0x4b1f50('0xff9')]?_0x4b1f50('0x574')+_0x8edc4b[_0x4b1f50('0xff9')]+_0x4b1f50('0xb0b')+_0x8edc4b[_0x4b1f50('0x212f')]:_0x4b1f50('0x21e9'),'msg':_0x8edc4b[_0x4b1f50('0x4e8')]?JSON[_0x4b1f50('0x3e')](_0x8edc4b[_0x4b1f50('0x4e8')][_0x4b1f50('0x1b86')]):_0x8edc4b['message']||_0x8edc4b[_0x4b1f50('0xaab')]()});});}function _0x38a88d(){const _0x3fde43=_0x394d12,_0x571d98=angular[_0x3fde43('0x6fb')](_0x4e3f03[_0x3fde43('0x1246')]);return _0x4e3f03[_0x3fde43('0x1246')]=[],_0x571d98;}function _0x3bbba9(_0x417c1a){const _0x49f9b2=_0x394d12,_0x4840dc=_0xe753c[_0x49f9b2('0x132b')]()['title'](_0x49f9b2('0x181d'))[_0x49f9b2('0x1d03')](''+_0x4e3f03[_0x49f9b2('0x1246')][_0x49f9b2('0x1e22')]+_0x49f9b2('0xac6')+_0x49f9b2('0x1a'))[_0x49f9b2('0xb2e')](_0x49f9b2('0x181'))['targetEvent'](_0x417c1a)['ok']('OK')[_0x49f9b2('0x26c9')]('CANCEL');_0xe753c['show'](_0x4840dc)[_0x49f9b2('0x11bf')](function(){const _0x3f59e0=_0x49f9b2;_0x4e3f03[_0x3f59e0('0x1246')]['forEach'](function(_0x4ed2c4){_0x4565c9(_0x4ed2c4);}),_0x4e3f03[_0x3f59e0('0x1246')]=[];});}let _0x239308=!![],_0x48380a=0x1;_0x9fab9f[_0x394d12('0x2087')](_0x394d12('0x1d12'),function(_0x5b9cb7,_0x562168){const _0x7a1105=_0x394d12;_0x239308?_0x2b2938(function(){_0x239308=![];}):(!_0x562168&&(_0x48380a=_0x4e3f03[_0x7a1105('0x1f2a')][_0x7a1105('0x1c2')]),_0x5b9cb7!==_0x562168&&(_0x4e3f03[_0x7a1105('0x1f2a')][_0x7a1105('0x1c2')]=0x1),!_0x5b9cb7&&(_0x4e3f03[_0x7a1105('0x1f2a')]['page']=_0x48380a),_0x4d019c());});}const _0x3c6a19=_0x581436;_0x42c3de[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x5d8'),_0x21d0f5('0x1b80'),_0x21d0f5('0xcbc'),'$q',_0x21d0f5('0xb6b'),_0x21d0f5('0x17f5'),'$mdDialog',_0x21d0f5('0x1b30'),_0x21d0f5('0x142d'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150')];function _0x42c3de(_0x1fbe41,_0x327ac1,_0x59b872,_0x313ba0,_0xaff9d8,_0x286122,_0x6de515,_0x16554c,_0x1821c6,_0x50c1a6,_0x4a83f0){const _0x95f904=_0x21d0f5,_0xdbff25=this;_0xdbff25[_0x95f904('0x32a')]=_0x4a83f0[_0x95f904('0x2428')](),_0xdbff25[_0x95f904('0x206c')]={},_0xdbff25['queueCampaign']={},_0xdbff25[_0x95f904('0xaf9')]={'count':0x0,'rows':[]},_0xdbff25['selectedQueueCampaignHopperFinals']=[],_0xdbff25[_0x95f904('0xb25')],_0xdbff25[_0x95f904('0x1f2a')]={'fields':_0x95f904('0x17bf'),'sort':'-id','limit':0xa,'page':0x1},_0xdbff25['init']=_0x133f61,_0xdbff25[_0x95f904('0x560')]=_0x48fe48,_0xdbff25['success']=_0x294de5,_0xdbff25['getQueueCampaignHopperFinals']=_0xdbdd59,_0xdbff25[_0x95f904('0x2210')]=_0x555c8c,_0xdbff25[_0x95f904('0x789')]=_0x45f7a3,_0xdbff25['deleteSelectedQueueCampaignHopperFinals']=_0x1e6423,_0xdbff25[_0x95f904('0xc2e')]=_0x2e26f8,_0xdbff25[_0x95f904('0xe7b')]=_0x191f8a,_0xdbff25['countContactsQueueCampaignHopperFinal']=_0x47fcae,_0xdbff25[_0x95f904('0xb12')]=_0x288e69,_0xdbff25[_0x95f904('0x17a3')]=_0x50a891;function _0x133f61(_0xe05671,_0x5a6316){const _0x58dc02=_0x95f904;_0xdbff25[_0x58dc02('0xf08')]=_0xe05671,_0xdbff25[_0x58dc02('0xb25')]=typeof _0x5a6316!==_0x58dc02('0x13e9')?_0x5a6316:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0xdbff25['query'][_0x58dc02('0x19b6')]=_0xdbff25[_0x58dc02('0xf08')]['id'],_0xdbff25[_0x58dc02('0x1f2a')]['id']=_0xdbff25[_0x58dc02('0xf08')]['id'],_0xdbdd59();}function _0x48fe48(_0x121557,_0x590c27){const _0x2a72dd=_0x95f904,_0x6cae6d=_0x6de515[_0x2a72dd('0x132b')]()[_0x2a72dd('0x134b')](_0x2a72dd('0x1d3b'))[_0x2a72dd('0x1d03')](_0x2a72dd('0x2061')+(_0x121557['name']||_0x121557['id']&&_0x36f548()[_0x2a72dd('0x24b5')]('hopperFinal\x20#')+_0x121557['id']||_0x2a72dd('0x15c9'))+_0x2a72dd('0x1c78')+_0x2a72dd('0x1a'))[_0x2a72dd('0xb2e')]('delete\x20hopperFinal')[_0x2a72dd('0x1e25')](_0x590c27)['ok']('OK')['cancel'](_0x2a72dd('0x772'));_0x6de515[_0x2a72dd('0xb9')](_0x6cae6d)[_0x2a72dd('0x11bf')](function(){_0x45f7a3(_0x121557);},function(){const _0xe83b45=_0x2a72dd;console[_0xe83b45('0xc78')](_0xe83b45('0x772'));});}function _0x294de5(_0x5e3ad6){const _0xccf8da=_0x95f904;_0xdbff25[_0xccf8da('0xaf9')]=_0x5e3ad6||{'count':0x0,'rows':[]};}function _0xdbdd59(){const _0x5277f1=_0x95f904;_0xdbff25['query'][_0x5277f1('0x1393')]=(_0xdbff25[_0x5277f1('0x1f2a')]['page']-0x1)*_0xdbff25[_0x5277f1('0x1f2a')]['limit'],_0xdbff25[_0x5277f1('0x13f')]=_0x50c1a6[_0x5277f1('0x1043')]['getHopperFinals'](_0xdbff25[_0x5277f1('0x1f2a')],_0x294de5)[_0x5277f1('0x1549')];}function _0x45f7a3(_0x51af0d){const _0x2bef96=_0x95f904;_0x50c1a6['hopperFinal'][_0x2bef96('0x2088')]({'id':_0x51af0d['id']})[_0x2bef96('0x1549')][_0x2bef96('0x11bf')](function(){const _0x2c09ba=_0x2bef96;_0x36f548()[_0x2c09ba('0x14a5')](_0xdbff25[_0x2c09ba('0xaf9')][_0x2c09ba('0x19b2')],{'id':_0x51af0d['id']}),_0xdbff25[_0x2c09ba('0xaf9')]['count']-=0x1,!_0xdbff25['queueCampaignHopperFinals'][_0x2c09ba('0x19b2')][_0x2c09ba('0x1e22')]&&_0xdbdd59(),_0x1821c6[_0x2c09ba('0x2693')]({'title':_0x2c09ba('0x653'),'msg':_0x51af0d['name']?_0x51af0d[_0x2c09ba('0x1909')]+_0x2c09ba('0x433'):''});})[_0x2bef96('0x151d')](function(_0x363fe9){const _0x19e2ec=_0x2bef96;if(_0x363fe9[_0x19e2ec('0x4e8')]&&_0x363fe9['data']['errors']&&_0x363fe9[_0x19e2ec('0x4e8')][_0x19e2ec('0x120f')][_0x19e2ec('0x1e22')]){_0xdbff25['errors']=_0x363fe9[_0x19e2ec('0x4e8')][_0x19e2ec('0x120f')]||[{'message':_0x363fe9['toString'](),'type':_0x19e2ec('0x21e9')}];for(let _0x103b61=0x0;_0x103b61<_0x363fe9[_0x19e2ec('0x4e8')][_0x19e2ec('0x120f')][_0x19e2ec('0x1e22')];_0x103b61++){_0x1821c6[_0x19e2ec('0x255')]({'title':_0x363fe9['data'][_0x19e2ec('0x120f')][_0x103b61][_0x19e2ec('0x19fd')],'msg':_0x363fe9[_0x19e2ec('0x4e8')]['errors'][_0x103b61][_0x19e2ec('0x1b86')]});}}else _0x1821c6['error']({'title':_0x363fe9[_0x19e2ec('0xff9')]?_0x19e2ec('0x574')+_0x363fe9[_0x19e2ec('0xff9')]+_0x19e2ec('0xb0b')+_0x363fe9[_0x19e2ec('0x212f')]:_0x19e2ec('0x21e9'),'msg':_0x363fe9[_0x19e2ec('0x4e8')]?JSON[_0x19e2ec('0x3e')](_0x363fe9['data'][_0x19e2ec('0x1b86')]):_0x363fe9[_0x19e2ec('0x1b86')]||_0x363fe9[_0x19e2ec('0xaab')]()});});}function _0x555c8c(){const _0x4f2771=_0x95f904,_0xd54590=angular[_0x4f2771('0x6fb')](_0xdbff25['selectedQueueCampaignHopperFinals']);return _0xdbff25[_0x4f2771('0x988')]=[],_0xd54590;}function _0x1e6423(_0x3e68d1){const _0x5d0f05=_0x95f904,_0x3402e3=_0x6de515[_0x5d0f05('0x132b')]()[_0x5d0f05('0x134b')](_0x5d0f05('0x93b'))[_0x5d0f05('0x1d03')](_0x5d0f05('0x2061')+_0xdbff25['selectedQueueCampaignHopperFinals'][_0x5d0f05('0x1e22')]+_0x5d0f05('0xac6')+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x5d0f05('0x7ac'))[_0x5d0f05('0x1e25')](_0x3e68d1)['ok']('OK')['cancel'](_0x5d0f05('0x772'));_0x6de515[_0x5d0f05('0xb9')](_0x3402e3)[_0x5d0f05('0x11bf')](function(){const _0x2bb831=_0x5d0f05;_0xdbff25[_0x2bb831('0x988')][_0x2bb831('0x1f88')](function(_0x3ebce9){_0x45f7a3(_0x3ebce9);}),_0xdbff25[_0x2bb831('0x988')]=[];});}function _0x191f8a(_0x17e6ae){const _0x2ccee6=_0x95f904;_0x50c1a6[_0x2ccee6('0x1794')]['moveContactsQueueCampaignHopperFinal']({'id':_0xdbff25[_0x2ccee6('0x1f2a')]['id'],'state':_0x17e6ae})['$promise'][_0x2ccee6('0x11bf')](function(_0x5177c1){const _0x6ca945=_0x2ccee6;_0x36f548()[_0x6ca945('0x1a80')](_0x5177c1)&&_0x36f548()[_0x6ca945('0x1a80')](_0x5177c1[0x0])?_0x1821c6[_0x6ca945('0x870')]({'title':_0x6ca945('0x1887'),'msg':'0'}):_0x1821c6['info']({'title':_0x6ca945('0x1887'),'msg':JSON['stringify'](_0x5177c1[0x0][_0x6ca945('0x1152')])});})[_0x2ccee6('0x151d')](function(_0x4239bc){const _0x18feb8=_0x2ccee6;_0x1821c6[_0x18feb8('0x255')]({'title':_0x4239bc['status']?_0x18feb8('0x574')+_0x4239bc[_0x18feb8('0xff9')]+_0x18feb8('0xb0b')+_0x4239bc[_0x18feb8('0x212f')]:_0x18feb8('0x21e9'),'msg':_0x4239bc[_0x18feb8('0x4e8')]?JSON[_0x18feb8('0x3e')](_0x4239bc[_0x18feb8('0x4e8')][_0x18feb8('0x1b86')]):_0x4239bc[_0x18feb8('0x1b86')]||_0x4239bc[_0x18feb8('0xaab')]()});});}function _0x47fcae(_0x3aacb1){const _0x4f3346=_0x95f904;_0x50c1a6[_0x4f3346('0x1794')][_0x4f3346('0xe77')]({'id':_0x3aacb1})[_0x4f3346('0x1549')][_0x4f3346('0x11bf')](function(_0x5d0634){const _0x426f80=_0x4f3346;_0x36f548()[_0x426f80('0x47b')](_0xdbff25[_0x426f80('0x206c')],_0x5d0634[0x0]);})[_0x4f3346('0x151d')](function(_0x377eb0){const _0x4f2e2a=_0x4f3346;_0x1821c6[_0x4f2e2a('0x255')]({'title':_0x377eb0[_0x4f2e2a('0xff9')]?_0x4f2e2a('0x574')+_0x377eb0[_0x4f2e2a('0xff9')]+_0x4f2e2a('0xb0b')+_0x377eb0[_0x4f2e2a('0x212f')]:_0x4f2e2a('0x21e9'),'msg':_0x377eb0[_0x4f2e2a('0x4e8')]?JSON[_0x4f2e2a('0x3e')](_0x377eb0[_0x4f2e2a('0x4e8')][_0x4f2e2a('0x1b86')]):_0x377eb0[_0x4f2e2a('0x1b86')]||_0x377eb0['toString']()});});}function _0x50a891(_0x583216){const _0x16ad4a=_0x95f904,_0x5e39da=_0x6de515[_0x16ad4a('0x132b')]()[_0x16ad4a('0x134b')]('Are\x20you\x20sure\x20want\x20to\x20restore\x20the\x20selected\x20contacts?')[_0x16ad4a('0x1d03')](_0x16ad4a('0xc4b')+_0x16ad4a('0x8ca'))[_0x16ad4a('0xb2e')](_0x16ad4a('0xa37'))[_0x16ad4a('0x1e25')](_0x583216)['ok']('OK')[_0x16ad4a('0x26c9')]('CANCEL');_0x6de515[_0x16ad4a('0xb9')](_0x5e39da)['then'](function(){const _0x462946=_0x16ad4a;_0xdbff25[_0x462946('0x988')][_0x462946('0x1f88')](function(_0x191542){_0x2e26f8(_0x191542);}),_0xdbff25['selectedQueueCampaignHopperFinals']=[];});}function _0x288e69(_0x439101,_0x4d443b){const _0x2c7c3d=_0x95f904,_0x389d73=_0x6de515[_0x2c7c3d('0x132b')]()[_0x2c7c3d('0x134b')](_0x2c7c3d('0x10be'))[_0x2c7c3d('0x1d03')](_0x2c7c3d('0x2061')+_0x2c7c3d('0xf10')+_0x2c7c3d('0x1c78')+'\x20will\x20be\x20restored.')[_0x2c7c3d('0xb2e')](_0x2c7c3d('0x65d'))[_0x2c7c3d('0x1e25')](_0x4d443b)['ok']('OK')[_0x2c7c3d('0x26c9')]('CANCEL');_0x6de515[_0x2c7c3d('0xb9')](_0x389d73)[_0x2c7c3d('0x11bf')](function(){_0x2e26f8(_0x439101);},function(){const _0x100bd7=_0x2c7c3d;console[_0x100bd7('0xc78')](_0x100bd7('0x772'));});}function _0x23f38e(_0x4715ac){const _0x5b9107=_0x95f904,_0x3a09a1={};return _0x3a09a1[_0x5b9107('0x1546')]=_0x4715ac[_0x5b9107('0x1f8a')],_0x3a09a1[_0x5b9107('0x16c')]=_0x57d4d1()()['format']('YYYY-MM-DD\x20HH:mm:ss'),_0x3a09a1[_0x5b9107('0x268')]=0x0,_0x3a09a1[_0x5b9107('0x22df')]=0x0,_0x3a09a1['countnoanswerretry']=0x0,_0x3a09a1[_0x5b9107('0x21f9')]=0x0,_0x3a09a1[_0x5b9107('0x23f1')]=_0x4715ac[_0x5b9107('0x23f1')],_0x3a09a1[_0x5b9107('0x1e91')]=_0x4715ac['ListId'],_0x3a09a1[_0x5b9107('0x2342')]=_0x4715ac['deleted']?null:_0x4715ac[_0x5b9107('0x2342')],_0x3a09a1[_0x5b9107('0x19b6')]=_0x4715ac[_0x5b9107('0x19b6')],_0x3a09a1[_0x5b9107('0x23c3')]=_0x4715ac[_0x5b9107('0x23c3')],_0x3a09a1['priority']=_0x4715ac[_0x5b9107('0x173e')]?0x3:0x2,_0x3a09a1[_0x5b9107('0x173e')]=_0x4715ac[_0x5b9107('0x173e')]?!![]:![],_0x3a09a1;}function _0x2a3657(_0x4cd00e){const _0x7574e6=_0x95f904,_0x3e3cc5={};return _0x3e3cc5[_0x7574e6('0x1f8a')]=_0x4cd00e[_0x7574e6('0x1f8a')],_0x3e3cc5['calleridname']=_0x4cd00e['calleridname'],_0x3e3cc5[_0x7574e6('0x16c')]=_0x57d4d1()()[_0x7574e6('0x1826')](_0x7574e6('0xfae')),_0x3e3cc5[_0x7574e6('0x268')]=_0x4cd00e[_0x7574e6('0x268')],_0x3e3cc5[_0x7574e6('0x22df')]=_0x4cd00e[_0x7574e6('0x22df')],_0x3e3cc5[_0x7574e6('0x1b81')]=_0x4cd00e['countnoanswerretry'],_0x3e3cc5[_0x7574e6('0x21f9')]=_0x4cd00e[_0x7574e6('0x21f9')],_0x3e3cc5['ContactId']=_0x4cd00e[_0x7574e6('0x23f1')],_0x3e3cc5[_0x7574e6('0x1e91')]=_0x4cd00e['ListId'],_0x3e3cc5[_0x7574e6('0x2342')]=_0x4a83f0[_0x7574e6('0x2428')]()['id'],_0x3e3cc5[_0x7574e6('0x19b6')]=_0x4cd00e[_0x7574e6('0x19b6')],_0x3e3cc5[_0x7574e6('0x23c3')]=_0x4cd00e[_0x7574e6('0x23c3')],_0x3e3cc5[_0x7574e6('0x264d')]=_0x57d4d1()()[_0x7574e6('0x1826')](_0x7574e6('0xfae')),_0x3e3cc5[_0x7574e6('0x60f')]=!![],_0x3e3cc5[_0x7574e6('0x2124')]=0x19,_0x3e3cc5[_0x7574e6('0x1ffa')]=_0x7574e6('0x2698'),_0x3e3cc5[_0x7574e6('0x145d')]=_0x4cd00e[_0x7574e6('0x145d')],_0x3e3cc5[_0x7574e6('0x58')]=_0x4cd00e[_0x7574e6('0x19b6')]?_0x7574e6('0x150b'):_0x7574e6('0x1316'),_0x3e3cc5;}function _0x2e26f8(_0x20d71d){const _0x376dec=_0x95f904;_0x50c1a6['cmHopperFinal']['checkContactHopper'](_0x20d71d)[_0x376dec('0x1549')][_0x376dec('0x11bf')](function(_0x1e7937){const _0x5b28e1=_0x376dec;_0x1821c6[_0x5b28e1('0x870')]({'title':_0x5b28e1('0x1099'),'msg':_0x5b28e1('0x1d48')+_0x1e7937[_0x5b28e1('0x23f1')]});})[_0x376dec('0x151d')](function(_0x8081ae){const _0x5eea56=_0x376dec;_0x8081ae['data']===_0x5eea56('0xf4a')?_0x50c1a6[_0x5eea56('0x1d11')][_0x5eea56('0x259')](_0x23f38e(_0x20d71d))[_0x5eea56('0x1549')]['then'](function(_0xc00a26){const _0x23beef=_0x5eea56;_0x1821c6[_0x23beef('0x870')]({'title':'Restored\x20Contact','msg':_0x23beef('0x1d48')+_0xc00a26['ContactId']}),_0xc00a26[_0x23beef('0x23f1')]&&_0x50c1a6[_0x23beef('0x246')][_0x23beef('0x259')](_0x2a3657(_0x20d71d));})[_0x5eea56('0x151d')](function(_0x5d9c4b){const _0x5941b8=_0x5eea56;!_0x36f548()[_0x5941b8('0x1a80')](_0x5d9c4b[_0x5941b8('0x4e8')])&&_0x5d9c4b[_0x5941b8('0x4e8')]['message']==='Validation\x20error'?_0x1821c6[_0x5941b8('0x870')]({'title':_0x5941b8('0x1099'),'msg':'Contact\x20ID\x20'+_0x20d71d[_0x5941b8('0x23f1')]}):_0x1821c6[_0x5941b8('0x255')]({'title':_0x5d9c4b[_0x5941b8('0xff9')]?_0x5941b8('0x574')+_0x5d9c4b[_0x5941b8('0xff9')]+_0x5941b8('0xb0b')+_0x5d9c4b[_0x5941b8('0x212f')]:_0x5941b8('0x21e9'),'msg':_0x5d9c4b['data']?JSON[_0x5941b8('0x3e')](_0x5d9c4b['data'][_0x5941b8('0x1b86')]):_0x5d9c4b[_0x5941b8('0x1b86')]||_0x5d9c4b[_0x5941b8('0xaab')]()});}):_0x1821c6[_0x5eea56('0x255')]({'title':_0x8081ae[_0x5eea56('0xff9')]?_0x5eea56('0x574')+_0x8081ae[_0x5eea56('0xff9')]+_0x5eea56('0xb0b')+_0x8081ae['statusText']:'SYSTEM:GETvoiceQueue','msg':_0x8081ae['data']?JSON[_0x5eea56('0x3e')](_0x8081ae[_0x5eea56('0x4e8')][_0x5eea56('0x1b86')]):_0x8081ae['message']||_0x8081ae[_0x5eea56('0xaab')]()});});}let _0x31cf77=!![],_0x5afeb8=0x1;_0x327ac1[_0x95f904('0x2087')](_0x95f904('0x1d12'),function(_0x1abc69,_0x31b836){const _0x114890=_0x95f904;_0x31cf77?_0x286122(function(){_0x31cf77=![];}):(!_0x31b836&&(_0x5afeb8=_0xdbff25[_0x114890('0x1f2a')]['page']),_0x1abc69!==_0x31b836&&(_0xdbff25[_0x114890('0x1f2a')]['page']=0x1),!_0x1abc69&&(_0xdbff25[_0x114890('0x1f2a')][_0x114890('0x1c2')]=_0x5afeb8),_0xdbdd59());});}const _0x3e957b=_0x42c3de;_0x80fc7d[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x5d8'),'$scope',_0x21d0f5('0xcbc'),'$q',_0x21d0f5('0xb6b'),_0x21d0f5('0x17f5'),_0x21d0f5('0x1ca2'),'$document',_0x21d0f5('0x142d'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150')];function _0x80fc7d(_0x38fa45,_0x336469,_0x335131,_0x218490,_0x41c2b1,_0x262323,_0x465e52,_0x150121,_0xad6e30,_0x1a1a5c,_0x227c6f){const _0x236ce9=_0x21d0f5,_0x2ad322=this;_0x2ad322[_0x236ce9('0x32a')]=_0x227c6f[_0x236ce9('0x2428')](),_0x2ad322['queueCampaign']={},_0x2ad322[_0x236ce9('0x1add')]={'count':0x0,'rows':[]},_0x2ad322[_0x236ce9('0x800')]=[],_0x2ad322[_0x236ce9('0xb25')],_0x2ad322[_0x236ce9('0x1f2a')]={'fields':_0x236ce9('0x18c2'),'sort':_0x236ce9('0x1157'),'limit':0xa,'page':0x1},_0x2ad322[_0x236ce9('0x286f')]=_0x7c967f,_0x2ad322[_0x236ce9('0x560')]=_0xa74d08,_0x2ad322['success']=_0x3a68f1,_0x2ad322['getQueueCampaignHopperHistories']=_0x15a8c4,_0x2ad322['exportSelectedQueueCampaignHopperHistories']=_0x56cfd8,_0x2ad322[_0x236ce9('0x1b74')]=_0x2155bf,_0x2ad322[_0x236ce9('0x1c64')]=_0x5df71d;function _0x7c967f(_0x1c2acb,_0x56e8ef){const _0x55ac0e=_0x236ce9;_0x2ad322['queueCampaign']=_0x1c2acb,_0x2ad322['crudPermissions']=typeof _0x56e8ef!==_0x55ac0e('0x13e9')?_0x56e8ef:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x2ad322[_0x55ac0e('0x1f2a')]['VoiceQueueId']=_0x2ad322[_0x55ac0e('0xf08')]['id'],_0x2ad322[_0x55ac0e('0x1f2a')]['id']=_0x2ad322[_0x55ac0e('0xf08')]['id'],_0x15a8c4();}function _0xa74d08(_0x218d58,_0x1286be){const _0x5dafc1=_0x236ce9,_0x12df6d=_0x465e52['confirm']()[_0x5dafc1('0x134b')](_0x5dafc1('0x162b'))[_0x5dafc1('0x1d03')](_0x5dafc1('0x2061')+(_0x218d58[_0x5dafc1('0x1909')]||_0x218d58['id']&&_0x36f548()['upperFirst']('hopperHistory\x20#')+_0x218d58['id']||_0x5dafc1('0x1803'))+''+_0x5dafc1('0x1a'))[_0x5dafc1('0xb2e')](_0x5dafc1('0x508'))[_0x5dafc1('0x1e25')](_0x1286be)['ok']('OK')[_0x5dafc1('0x26c9')]('CANCEL');_0x465e52['show'](_0x12df6d)['then'](function(){_0x2155bf(_0x218d58);},function(){console['log']('CANCEL');});}function _0x3a68f1(_0x1f02d1){const _0x217bc5=_0x236ce9;_0x2ad322[_0x217bc5('0x1add')]=_0x1f02d1||{'count':0x0,'rows':[]};}function _0x15a8c4(){const _0x222563=_0x236ce9;_0x2ad322[_0x222563('0x1f2a')][_0x222563('0x1393')]=(_0x2ad322[_0x222563('0x1f2a')][_0x222563('0x1c2')]-0x1)*_0x2ad322['query'][_0x222563('0xd5c')],_0x2ad322['promise']=_0x1a1a5c['voiceQueue'][_0x222563('0xf6f')](_0x2ad322[_0x222563('0x1f2a')],_0x3a68f1)[_0x222563('0x1549')];}function _0x2155bf(_0xd16611){const _0x5dc7f2=_0x236ce9;_0x1a1a5c[_0x5dc7f2('0x1803')][_0x5dc7f2('0x2088')]({'id':_0xd16611['id']})[_0x5dc7f2('0x1549')]['then'](function(){const _0x44a7c0=_0x5dc7f2;_0x36f548()['remove'](_0x2ad322['queueCampaignHopperHistories'][_0x44a7c0('0x19b2')],{'id':_0xd16611['id']}),_0x2ad322[_0x44a7c0('0x1add')][_0x44a7c0('0x27d2')]-=0x1,!_0x2ad322[_0x44a7c0('0x1add')][_0x44a7c0('0x19b2')][_0x44a7c0('0x1e22')]&&_0x15a8c4(),_0xad6e30[_0x44a7c0('0x2693')]({'title':'HopperHistory\x20deleted!','msg':_0xd16611[_0x44a7c0('0x1909')]?_0xd16611['name']+_0x44a7c0('0x433'):''});})[_0x5dc7f2('0x151d')](function(_0x412bff){const _0x6a40d0=_0x5dc7f2;if(_0x412bff['data']&&_0x412bff['data']['errors']&&_0x412bff[_0x6a40d0('0x4e8')]['errors'][_0x6a40d0('0x1e22')]){_0x2ad322[_0x6a40d0('0x120f')]=_0x412bff[_0x6a40d0('0x4e8')][_0x6a40d0('0x120f')]||[{'message':_0x412bff['toString'](),'type':_0x6a40d0('0x21e9')}];for(let _0x178ffc=0x0;_0x178ffc<_0x412bff[_0x6a40d0('0x4e8')]['errors'][_0x6a40d0('0x1e22')];_0x178ffc++){_0xad6e30[_0x6a40d0('0x255')]({'title':_0x412bff['data'][_0x6a40d0('0x120f')][_0x178ffc][_0x6a40d0('0x19fd')],'msg':_0x412bff[_0x6a40d0('0x4e8')][_0x6a40d0('0x120f')][_0x178ffc][_0x6a40d0('0x1b86')]});}}else _0xad6e30[_0x6a40d0('0x255')]({'title':_0x412bff['status']?_0x6a40d0('0x574')+_0x412bff['status']+'\x20-\x20'+_0x412bff[_0x6a40d0('0x212f')]:'SYSTEM:GETvoiceQueue','msg':_0x412bff[_0x6a40d0('0x4e8')]?JSON[_0x6a40d0('0x3e')](_0x412bff[_0x6a40d0('0x4e8')][_0x6a40d0('0x1b86')]):_0x412bff[_0x6a40d0('0x1b86')]||_0x412bff[_0x6a40d0('0xaab')]()});});}function _0x56cfd8(){const _0xa83934=_0x236ce9,_0x4cb857=angular['copy'](_0x2ad322[_0xa83934('0x800')]);return _0x2ad322[_0xa83934('0x800')]=[],_0x4cb857;}function _0x5df71d(_0x4d764d){const _0x36a478=_0x236ce9,_0x573a28=_0x465e52[_0x36a478('0x132b')]()[_0x36a478('0x134b')](_0x36a478('0x1954'))[_0x36a478('0x1d03')](''+_0x2ad322[_0x36a478('0x800')][_0x36a478('0x1e22')]+_0x36a478('0xac6')+_0x36a478('0x1a'))['ariaLabel'](_0x36a478('0x248'))['targetEvent'](_0x4d764d)['ok']('OK')[_0x36a478('0x26c9')](_0x36a478('0x772'));_0x465e52[_0x36a478('0xb9')](_0x573a28)[_0x36a478('0x11bf')](function(){const _0x4bfebb=_0x36a478;_0x2ad322[_0x4bfebb('0x800')][_0x4bfebb('0x1f88')](function(_0x4a118a){_0x2155bf(_0x4a118a);}),_0x2ad322['selectedQueueCampaignHopperHistories']=[];});}let _0x25a865=!![],_0xc7629=0x1;_0x336469[_0x236ce9('0x2087')](_0x236ce9('0x1d12'),function(_0x553e6e,_0x12a266){const _0x2e9034=_0x236ce9;_0x25a865?_0x262323(function(){_0x25a865=![];}):(!_0x12a266&&(_0xc7629=_0x2ad322[_0x2e9034('0x1f2a')][_0x2e9034('0x1c2')]),_0x553e6e!==_0x12a266&&(_0x2ad322[_0x2e9034('0x1f2a')][_0x2e9034('0x1c2')]=0x1),!_0x553e6e&&(_0x2ad322[_0x2e9034('0x1f2a')]['page']=_0xc7629),_0x15a8c4());});}const _0x4a1d82=_0x80fc7d;_0x4569e2[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x5d8'),'$scope',_0x21d0f5('0xcbc'),'$q',_0x21d0f5('0xb6b'),'$timeout',_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),_0x21d0f5('0x142d'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150')];function _0x4569e2(_0x2231fa,_0x1ae6bc,_0xdbd3c2,_0x5a5ac0,_0x283213,_0x19b635,_0x3ee7cd,_0xbcdfea,_0x5f57a5,_0x2406dd,_0x4b6d47){const _0x13ffae=_0x21d0f5,_0x4e0f87=this;_0x4e0f87[_0x13ffae('0x32a')]=_0x4b6d47[_0x13ffae('0x2428')](),_0x4e0f87[_0x13ffae('0xf08')]={},_0x4e0f87[_0x13ffae('0x4a5')]={'count':0x0,'rows':[]},_0x4e0f87['selectedQueueCampaignHoppers']=[],_0x4e0f87[_0x13ffae('0xb25')],_0x4e0f87['query']={'fields':_0x13ffae('0x142e'),'sort':'-updatedAt','limit':0xa,'page':0x1},_0x4e0f87[_0x13ffae('0x1337')]=_0x36f548()[_0x13ffae('0x2130')]([{'option':_0x13ffae('0x2f9'),'value':_0x13ffae('0x21bf')},{'option':_0x13ffae('0x947'),'value':_0x13ffae('0x1392')},{'option':_0x13ffae('0x1fec'),'value':_0x13ffae('0x786')},{'option':_0x13ffae('0x2612'),'value':_0x13ffae('0x211f')},{'option':_0x13ffae('0x1f9b'),'value':_0x13ffae('0x7d2')}],function(_0x75ad56){return _0x36f548()['replace'](_0x75ad56['value'],new RegExp('\x27','g'),'');}),_0x4e0f87['init']=_0x29c819,_0x4e0f87[_0x13ffae('0x560')]=_0xdf05c4,_0x4e0f87[_0x13ffae('0x2693')]=_0x3a0082,_0x4e0f87['getQueueCampaignHoppers']=_0x9ecd9c,_0x4e0f87[_0x13ffae('0x402')]=_0x3ae710,_0x4e0f87[_0x13ffae('0x1852')]=_0x3d3b6e,_0x4e0f87[_0x13ffae('0x20c3')]=_0xacda78,_0x4e0f87[_0x13ffae('0xe05')]=_0x186138,_0x4b6d47[_0x13ffae('0x4ee')]('admin')?_0x2406dd['user']['get']({'fields':_0x13ffae('0x721'),'role':'agent','sort':_0x13ffae('0x1909'),'nolimit':_0x13ffae('0x204c')})[_0x13ffae('0x1549')][_0x13ffae('0x11bf')](function(_0xa9d8f2){const _0x59d4d5=_0x13ffae;_0x4e0f87[_0x59d4d5('0x1401')]=_0xa9d8f2[_0x59d4d5('0x19b2')]||[];})['catch'](function(_0x397b41){const _0x592177=_0x13ffae;_0x5f57a5['error']({'title':_0x397b41['status']?_0x592177('0x574')+_0x397b41[_0x592177('0xff9')]+'\x20-\x20'+_0x397b41['statusText']:'SYSTEM:GET_AGENTS','msg':_0x397b41[_0x592177('0x4e8')]?JSON[_0x592177('0x3e')](_0x397b41[_0x592177('0x4e8')]):_0x397b41[_0x592177('0xaab')]()});}):_0x2406dd[_0x13ffae('0x21d9')][_0x13ffae('0xbaa')]({'fields':_0x13ffae('0x721'),'role':_0x13ffae('0x18c4'),'sort':_0x13ffae('0x1909'),'nolimit':_0x13ffae('0x204c')})[_0x13ffae('0x1549')][_0x13ffae('0x11bf')](function(_0x4f2cd9){const _0x1da96e=_0x13ffae;_0x4e0f87[_0x1da96e('0x1401')]=_0x4f2cd9[_0x1da96e('0x19b2')]||[];})[_0x13ffae('0x11bf')](function(){const _0x359131=_0x13ffae;return _0x2406dd[_0x359131('0x1d63')][_0x359131('0xbaa')]({'userProfileId':_0x4e0f87['currentUser'][_0x359131('0x781')],'sectionId':0xca})[_0x359131('0x1549')];})[_0x13ffae('0x11bf')](function(_0x3a51a7){const _0x471dd3=_0x13ffae,_0x34bb5=_0x3a51a7&&_0x3a51a7[_0x471dd3('0x19b2')]?_0x3a51a7['rows'][0x0]:null;if(!_0x34bb5){const _0x164051=[];let _0x3ca8be=null;_0x4e0f87['queueCampaign']&&(_0x3ca8be=_0x36f548()[_0x471dd3('0x1ad4')](_0x4e0f87[_0x471dd3('0x1401')],{'id':Number(_0x4e0f87[_0x471dd3('0xf08')][_0x471dd3('0x2342')])}));for(let _0x35afe4=0x0;_0x35afe4<_0x4e0f87[_0x471dd3('0x1401')][_0x471dd3('0x1e22')];_0x35afe4++){_0x3ca8be&&_0x4e0f87[_0x471dd3('0x1401')][_0x35afe4]['id']===_0x3ca8be['id']&&(_0x4e0f87[_0x471dd3('0x1401')][_0x35afe4]['canSelect']=![],_0x164051['push'](_0x4e0f87['agents'][_0x35afe4]));}_0x4e0f87['agents']=_0x164051;}else{if(!_0x34bb5['autoAssociation'])return _0x2406dd[_0x471dd3('0x26d1')][_0x471dd3('0xbaa')]({'sectionId':_0x34bb5['id']})[_0x471dd3('0x1549')][_0x471dd3('0x11bf')](function(_0x362540){const _0x3f60ec=_0x471dd3,_0x39f6d4=_0x36f548()[_0x3f60ec('0x2171')](_0x362540[_0x3f60ec('0x19b2')],function(_0x255bc8){const _0x49e2a1=_0x3f60ec;return _0x36f548()[_0x49e2a1('0x1ad4')](_0x4e0f87['agents'],{'id':_0x255bc8[_0x49e2a1('0x15a5')]});});let _0xd9134b=null;_0x4e0f87['queueCampaign']&&(_0xd9134b=_0x36f548()['find'](_0x4e0f87[_0x3f60ec('0x1401')],{'id':Number(_0x4e0f87[_0x3f60ec('0xf08')]['UserId'])}));if(_0xd9134b&&!_0x36f548()[_0x3f60ec('0x1cb3')](_0x39f6d4,['id',_0xd9134b['id']])){const _0x49c092=_0x36f548()['find'](_0x4e0f87[_0x3f60ec('0x1401')],{'id':_0xd9134b['id']});_0x49c092[_0x3f60ec('0x254a')]=![],_0x39f6d4['push'](_0x49c092);}_0x4e0f87[_0x3f60ec('0x1401')]=_0x39f6d4;});}})[_0x13ffae('0x151d')](function(_0x1741e0){const _0x464201=_0x13ffae;_0x5f57a5['error']({'title':_0x1741e0['status']?_0x464201('0x574')+_0x1741e0[_0x464201('0xff9')]+'\x20-\x20'+_0x1741e0[_0x464201('0x212f')]:_0x464201('0x1939'),'msg':_0x1741e0[_0x464201('0x4e8')]?JSON['stringify'](_0x1741e0[_0x464201('0x4e8')]):_0x1741e0['toString']()});});function _0x29c819(_0x250c1f,_0x55379c){const _0x18845f=_0x13ffae;_0x4e0f87[_0x18845f('0xf08')]=_0x250c1f,_0x4e0f87['crudPermissions']=typeof _0x55379c!==_0x18845f('0x13e9')?_0x55379c:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x4e0f87[_0x18845f('0x1f2a')]['VoiceQueueId']=_0x4e0f87[_0x18845f('0xf08')]['id'],_0x4e0f87[_0x18845f('0x1f2a')]['id']=_0x4e0f87['queueCampaign']['id'],_0x9ecd9c();}function _0xdf05c4(_0x319f0c,_0x2ef6d8){const _0x7deb30=_0x13ffae,_0x5bf24a=_0x3ee7cd['confirm']()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20hopper?')['htmlContent'](_0x7deb30('0x2061')+(_0x319f0c[_0x7deb30('0x1909')]||_0x319f0c['id']&&_0x36f548()[_0x7deb30('0x24b5')](_0x7deb30('0x23ec'))+_0x319f0c['id']||'hopper')+_0x7deb30('0x1c78')+_0x7deb30('0x1a'))[_0x7deb30('0xb2e')](_0x7deb30('0x10e7'))[_0x7deb30('0x1e25')](_0x2ef6d8)['ok']('OK')[_0x7deb30('0x26c9')](_0x7deb30('0x772'));_0x3ee7cd['show'](_0x5bf24a)[_0x7deb30('0x11bf')](function(){_0xacda78(_0x319f0c);},function(){const _0x4cf1ac=_0x7deb30;console[_0x4cf1ac('0xc78')](_0x4cf1ac('0x772'));});}function _0x3a0082(_0x37945d){_0x4e0f87['queueCampaignHoppers']=_0x37945d||{'count':0x0,'rows':[]};}function _0x9ecd9c(){const _0x236cb6=_0x13ffae;_0x4e0f87[_0x236cb6('0x1f2a')][_0x236cb6('0x1393')]=(_0x4e0f87['query'][_0x236cb6('0x1c2')]-0x1)*_0x4e0f87['query'][_0x236cb6('0xd5c')],_0x4e0f87[_0x236cb6('0x13f')]=_0x2406dd['voiceQueue'][_0x236cb6('0x1945')](_0x4e0f87[_0x236cb6('0x1f2a')],_0x3a0082)[_0x236cb6('0x1549')];}function _0x3ae710(_0x170231,_0x3c8d35){const _0x47b9c3=_0x13ffae;_0x3ee7cd[_0x47b9c3('0xb9')]({'controller':_0x47b9c3('0x1653'),'controllerAs':'vm','templateUrl':_0x5368d2,'parent':angular[_0x47b9c3('0x1e73')](_0xbcdfea[_0x47b9c3('0x1d2')]),'targetEvent':_0x170231,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x4e0f87[_0x47b9c3('0xf08')],'hopper':_0x3c8d35,'hoppers':_0x4e0f87[_0x47b9c3('0x4a5')][_0x47b9c3('0x19b2')],'license':null,'setting':null,'crudPermissions':_0x4e0f87[_0x47b9c3('0xb25')]}});}function _0xacda78(_0x236caa){const _0xdc66e0=_0x13ffae;_0x2406dd[_0xdc66e0('0x1d11')][_0xdc66e0('0x2088')]({'id':_0x236caa['id']})[_0xdc66e0('0x1549')]['then'](function(){const _0x4d8b7c=_0xdc66e0;_0x36f548()[_0x4d8b7c('0x14a5')](_0x4e0f87[_0x4d8b7c('0x4a5')][_0x4d8b7c('0x19b2')],{'id':_0x236caa['id']}),_0x4e0f87[_0x4d8b7c('0x4a5')][_0x4d8b7c('0x27d2')]-=0x1,!_0x4e0f87['queueCampaignHoppers'][_0x4d8b7c('0x19b2')][_0x4d8b7c('0x1e22')]&&_0x9ecd9c(),_0x5f57a5[_0x4d8b7c('0x2693')]({'title':_0x4d8b7c('0x1aa8'),'msg':_0x236caa[_0x4d8b7c('0x1909')]?_0x236caa[_0x4d8b7c('0x1909')]+'\x20has\x20been\x20deleted!':''});})[_0xdc66e0('0x151d')](function(_0x37906f){const _0x2b7c2c=_0xdc66e0;if(_0x37906f[_0x2b7c2c('0x4e8')]&&_0x37906f[_0x2b7c2c('0x4e8')][_0x2b7c2c('0x120f')]&&_0x37906f[_0x2b7c2c('0x4e8')][_0x2b7c2c('0x120f')][_0x2b7c2c('0x1e22')]){_0x4e0f87[_0x2b7c2c('0x120f')]=_0x37906f[_0x2b7c2c('0x4e8')][_0x2b7c2c('0x120f')]||[{'message':_0x37906f['toString'](),'type':_0x2b7c2c('0x21e9')}];for(let _0x34d73a=0x0;_0x34d73a<_0x37906f[_0x2b7c2c('0x4e8')][_0x2b7c2c('0x120f')][_0x2b7c2c('0x1e22')];_0x34d73a++){_0x5f57a5[_0x2b7c2c('0x255')]({'title':_0x37906f['data'][_0x2b7c2c('0x120f')][_0x34d73a][_0x2b7c2c('0x19fd')],'msg':_0x37906f[_0x2b7c2c('0x4e8')][_0x2b7c2c('0x120f')][_0x34d73a][_0x2b7c2c('0x1b86')]});}}else _0x5f57a5[_0x2b7c2c('0x255')]({'title':_0x37906f[_0x2b7c2c('0xff9')]?_0x2b7c2c('0x574')+_0x37906f[_0x2b7c2c('0xff9')]+_0x2b7c2c('0xb0b')+_0x37906f[_0x2b7c2c('0x212f')]:_0x2b7c2c('0x21e9'),'msg':_0x37906f[_0x2b7c2c('0x4e8')]?JSON['stringify'](_0x37906f[_0x2b7c2c('0x4e8')]['message']):_0x37906f['message']||_0x37906f[_0x2b7c2c('0xaab')]()});});}function _0x3d3b6e(){const _0x14cfa6=_0x13ffae,_0x2891de=angular[_0x14cfa6('0x6fb')](_0x4e0f87[_0x14cfa6('0xc2d')]);return _0x4e0f87['selectedQueueCampaignHoppers']=[],_0x2891de;}function _0x186138(_0x5a7250){const _0x11eb65=_0x13ffae,_0x4928a9=_0x3ee7cd[_0x11eb65('0x132b')]()[_0x11eb65('0x134b')](_0x11eb65('0x1ac5'))[_0x11eb65('0x1d03')](_0x11eb65('0x2061')+_0x4e0f87['selectedQueueCampaignHoppers']['length']+'\x20selected'+_0x11eb65('0x1a'))[_0x11eb65('0xb2e')](_0x11eb65('0xcad'))[_0x11eb65('0x1e25')](_0x5a7250)['ok']('OK')['cancel']('CANCEL');_0x3ee7cd[_0x11eb65('0xb9')](_0x4928a9)[_0x11eb65('0x11bf')](function(){const _0x4df742=_0x11eb65;_0x4e0f87[_0x4df742('0xc2d')][_0x4df742('0x1f88')](function(_0x3efffe){_0xacda78(_0x3efffe);}),_0x4e0f87[_0x4df742('0xc2d')]=[];});}let _0x305b38=!![],_0x411652=0x1;_0x1ae6bc[_0x13ffae('0x2087')](_0x13ffae('0x1d12'),function(_0x41f18b,_0x34bfcf){const _0x2a1f14=_0x13ffae;_0x305b38?_0x19b635(function(){_0x305b38=![];}):(!_0x34bfcf&&(_0x411652=_0x4e0f87[_0x2a1f14('0x1f2a')][_0x2a1f14('0x1c2')]),_0x41f18b!==_0x34bfcf&&(_0x4e0f87[_0x2a1f14('0x1f2a')][_0x2a1f14('0x1c2')]=0x1),!_0x41f18b&&(_0x4e0f87['query']['page']=_0x411652),_0x9ecd9c());});}const _0x64322c=_0x4569e2;_0x272748[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0xcbc'),'$location','$mdDialog','$q',_0x21d0f5('0xb6b'),_0x21d0f5('0x142d'),'hoppers',_0x21d0f5('0x244f'),_0x21d0f5('0x12a5'),'Auth','license','setting',_0x21d0f5('0xb25')];function _0x272748(_0x2f89dd,_0x3d533c,_0x23630c,_0x2f9a0f,_0x552391,_0x1e6e43,_0x5ac3b8,_0x27b3a1,_0x316ebe,_0xc1b088,_0x3150b9,_0x404039,_0x4556ee,_0x4a7838){const _0x3a5f7f=_0x21d0f5,_0x39f45e=this;_0x39f45e[_0x3a5f7f('0x32a')]=_0x3150b9[_0x3a5f7f('0x2428')](),_0x39f45e[_0x3a5f7f('0x120f')]=[],_0x39f45e[_0x3a5f7f('0x23e1')]=_0x4556ee,_0x39f45e['license']=_0x404039,_0x39f45e[_0x3a5f7f('0xb25')]=_0x4a7838,_0x39f45e[_0x3a5f7f('0x2c9')]={},_0x39f45e[_0x3a5f7f('0x2834')]=_0x39f45e[_0x3a5f7f('0x23e1')]&&_0x39f45e['setting'][_0x3a5f7f('0x1d4')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x39f45e['title']=_0x3a5f7f('0x1b08'),_0x39f45e[_0x3a5f7f('0x244f')]=angular[_0x3a5f7f('0x6fb')](_0x316ebe),_0x39f45e[_0x3a5f7f('0xc8d')]=_0x27b3a1,_0x39f45e['newHopper']=![];!_0x39f45e[_0x3a5f7f('0x244f')]&&(_0x39f45e[_0x3a5f7f('0x244f')]={},_0x39f45e[_0x3a5f7f('0x134b')]=_0x3a5f7f('0x4f6'),_0x39f45e[_0x3a5f7f('0x201f')]=!![]);_0x3d533c[_0x3a5f7f('0x1ab3')]['id']&&(_0x39f45e[_0x3a5f7f('0x244f')][_0x3a5f7f('0x19b6')]=_0x3d533c[_0x3a5f7f('0x1ab3')]['id']);_0x39f45e[_0x3a5f7f('0x51f')]=_0x18664e,_0x39f45e['saveHopper']=_0x38378f,_0x39f45e['deleteHopper']=_0x1a45e5,_0x39f45e[_0x3a5f7f('0x1bd1')]=_0x228728,_0x39f45e['closeDialog']=_0x528cf0,_0x3150b9[_0x3a5f7f('0x4ee')](_0x3a5f7f('0xf45'))?_0xc1b088['user']['get']({'fields':'id,name','role':_0x3a5f7f('0x18c4'),'sort':_0x3a5f7f('0x1909'),'nolimit':_0x3a5f7f('0x204c')})['$promise'][_0x3a5f7f('0x11bf')](function(_0x524ea4){const _0x53f94b=_0x3a5f7f;_0x39f45e['agents']=_0x524ea4[_0x53f94b('0x19b2')]||[];})[_0x3a5f7f('0x151d')](function(_0x14d091){const _0x21e678=_0x3a5f7f;_0x5ac3b8[_0x21e678('0x255')]({'title':_0x14d091[_0x21e678('0xff9')]?_0x21e678('0x574')+_0x14d091[_0x21e678('0xff9')]+_0x21e678('0xb0b')+_0x14d091[_0x21e678('0x212f')]:_0x21e678('0x912'),'msg':_0x14d091['data']?JSON['stringify'](_0x14d091[_0x21e678('0x4e8')]):_0x14d091['toString']()});}):_0xc1b088[_0x3a5f7f('0x21d9')][_0x3a5f7f('0xbaa')]({'fields':_0x3a5f7f('0x721'),'role':'agent','sort':_0x3a5f7f('0x1909'),'nolimit':'true'})[_0x3a5f7f('0x1549')]['then'](function(_0x565a5d){const _0xff2dd7=_0x3a5f7f;_0x39f45e[_0xff2dd7('0x1401')]=_0x565a5d[_0xff2dd7('0x19b2')]||[];})[_0x3a5f7f('0x11bf')](function(){const _0x59e7fb=_0x3a5f7f;return _0xc1b088[_0x59e7fb('0x1d63')][_0x59e7fb('0xbaa')]({'userProfileId':_0x39f45e[_0x59e7fb('0x32a')][_0x59e7fb('0x781')],'sectionId':0xca})['$promise'];})[_0x3a5f7f('0x11bf')](function(_0x24c608){const _0x396ef8=_0x3a5f7f,_0x2c0d5f=_0x24c608&&_0x24c608['rows']?_0x24c608[_0x396ef8('0x19b2')][0x0]:null;if(!_0x2c0d5f){const _0x39bc35=[];let _0x3d00fc=null;_0x39f45e[_0x396ef8('0x244f')]&&(_0x3d00fc=_0x36f548()['find'](_0x39f45e[_0x396ef8('0x1401')],{'id':Number(_0x39f45e['hopper'][_0x396ef8('0x2342')])}));for(let _0x241aba=0x0;_0x241aba<_0x39f45e[_0x396ef8('0x1401')]['length'];_0x241aba++){_0x3d00fc&&_0x39f45e[_0x396ef8('0x1401')][_0x241aba]['id']===_0x3d00fc['id']&&(_0x39f45e[_0x396ef8('0x1401')][_0x241aba]['canSelect']=![],_0x39bc35['push'](_0x39f45e[_0x396ef8('0x1401')][_0x241aba]));}_0x39f45e[_0x396ef8('0x1401')]=_0x39bc35;}else{if(!_0x2c0d5f[_0x396ef8('0xf11')])return _0xc1b088[_0x396ef8('0x26d1')]['get']({'sectionId':_0x2c0d5f['id']})['$promise'][_0x396ef8('0x11bf')](function(_0xc5ea73){const _0x5196f8=_0x396ef8,_0x3334fa=_0x36f548()[_0x5196f8('0x2171')](_0xc5ea73[_0x5196f8('0x19b2')],function(_0x2e195f){const _0x38e554=_0x5196f8;return _0x36f548()[_0x38e554('0x1ad4')](_0x39f45e[_0x38e554('0x1401')],{'id':_0x2e195f['resourceId']});});let _0x418774=null;_0x39f45e[_0x5196f8('0x244f')]&&(_0x418774=_0x36f548()[_0x5196f8('0x1ad4')](_0x39f45e['agents'],{'id':Number(_0x39f45e[_0x5196f8('0x244f')]['UserId'])}));if(_0x418774&&!_0x36f548()['some'](_0x3334fa,['id',_0x418774['id']])){const _0x5ab7ce=_0x36f548()[_0x5196f8('0x1ad4')](_0x39f45e[_0x5196f8('0x1401')],{'id':_0x418774['id']});_0x5ab7ce['canSelect']=![],_0x3334fa[_0x5196f8('0x105d')](_0x5ab7ce);}_0x39f45e['agents']=_0x3334fa;});}})[_0x3a5f7f('0x151d')](function(_0x1fbfa2){const _0x2f76eb=_0x3a5f7f;_0x5ac3b8[_0x2f76eb('0x255')]({'title':_0x1fbfa2[_0x2f76eb('0xff9')]?_0x2f76eb('0x574')+_0x1fbfa2[_0x2f76eb('0xff9')]+_0x2f76eb('0xb0b')+_0x1fbfa2[_0x2f76eb('0x212f')]:_0x2f76eb('0x1939'),'msg':_0x1fbfa2[_0x2f76eb('0x4e8')]?JSON[_0x2f76eb('0x3e')](_0x1fbfa2[_0x2f76eb('0x4e8')]):_0x1fbfa2['toString']()});});function _0x18664e(){const _0xba4b5c=_0x3a5f7f;_0x39f45e['errors']=[],_0xc1b088['cmHopper'][_0xba4b5c('0x259')](_0x39f45e['hopper'])[_0xba4b5c('0x1549')][_0xba4b5c('0x11bf')](function(_0x420224){const _0x5ca47=_0xba4b5c;_0x39f45e['hoppers']['unshift'](_0x420224['toJSON']()),_0x5ac3b8['success']({'title':'Hopper\x20properly\x20created','msg':_0x39f45e[_0x5ca47('0x244f')]['name']?_0x39f45e[_0x5ca47('0x244f')][_0x5ca47('0x1909')]+_0x5ca47('0x7fb'):''}),_0x528cf0(_0x420224);})[_0xba4b5c('0x151d')](function(_0xb4f9b2){const _0x5269c5=_0xba4b5c;if(_0xb4f9b2['data']&&_0xb4f9b2[_0x5269c5('0x4e8')][_0x5269c5('0x120f')]&&_0xb4f9b2[_0x5269c5('0x4e8')][_0x5269c5('0x120f')][_0x5269c5('0x1e22')]){_0x39f45e[_0x5269c5('0x120f')]=_0xb4f9b2[_0x5269c5('0x4e8')]['errors']||[{'message':_0xb4f9b2['toString'](),'type':'api.cmHopper.save'}];for(let _0x3a66da=0x0;_0x3a66da<_0xb4f9b2[_0x5269c5('0x4e8')][_0x5269c5('0x120f')][_0x5269c5('0x1e22')];_0x3a66da+=0x1){_0x5ac3b8['error']({'title':_0xb4f9b2[_0x5269c5('0x4e8')][_0x5269c5('0x120f')][_0x3a66da][_0x5269c5('0x19fd')],'msg':_0xb4f9b2[_0x5269c5('0x4e8')][_0x5269c5('0x120f')][_0x3a66da][_0x5269c5('0x1b86')]});}}else _0x5ac3b8['error']({'title':_0xb4f9b2[_0x5269c5('0xff9')]?_0x5269c5('0x574')+_0xb4f9b2['status']+'\x20-\x20'+_0xb4f9b2[_0x5269c5('0x212f')]:_0x5269c5('0x1a7d'),'msg':_0xb4f9b2[_0x5269c5('0x4e8')]?JSON['stringify'](_0xb4f9b2[_0x5269c5('0x4e8')]['message']):_0xb4f9b2[_0x5269c5('0xaab')]()});});}function _0x38378f(){const _0x18cab8=_0x3a5f7f;_0x39f45e[_0x18cab8('0x120f')]=[];let _0x58659b,_0x2765cf,_0x541337,_0xef9dea;_0x39f45e[_0x18cab8('0x244f')]['UserId']=_0x39f45e[_0x18cab8('0x244f')][_0x18cab8('0x173e')]?_0x39f45e[_0x18cab8('0x244f')][_0x18cab8('0x2342')]:null,_0x39f45e[_0x18cab8('0x244f')][_0x18cab8('0x1f27')]=_0x3150b9['getCurrentUser']()['id'],_0xc1b088[_0x18cab8('0x1d11')][_0x18cab8('0xbaa')]({'id':_0x39f45e[_0x18cab8('0x244f')]['id'],'attributes':[_0x18cab8('0x16c')]})[_0x18cab8('0x1549')][_0x18cab8('0x11bf')](function(_0x544d59){const _0x2e1711=_0x18cab8;_0x36f548()[_0x2e1711('0x1a80')](_0x544d59)||_0x36f548()['isEmpty'](_0x544d59)?_0x58659b=_0x57d4d1()()[_0x2e1711('0x1826')](_0x2e1711('0xfae')):_0x58659b=_0x544d59['scheduledat'];})['finally'](function(){const _0x4eed95=_0x18cab8;_0xc1b088['cmHopper'][_0x4eed95('0x5ab')]({'id':_0x39f45e[_0x4eed95('0x244f')]['id']},_0x36f548()[_0x4eed95('0x196f')](_0x39f45e[_0x4eed95('0x244f')],[_0x4eed95('0x19b6'),_0x4eed95('0x23c3'),_0x4eed95('0x23f1'),_0x4eed95('0x1e91')]))[_0x4eed95('0x1549')][_0x4eed95('0x11bf')](function(_0x101ad1){const _0x139c4a=_0x4eed95;_0x2765cf=_0x101ad1,_0xc1b088[_0x139c4a('0x1b8f')][_0x139c4a('0xbaa')]({'id':_0x2765cf['ContactId'],'attributes':['firstName',_0x139c4a('0xcf3')]})[_0x139c4a('0x1549')][_0x139c4a('0x11bf')](function(_0x52c172){const _0x31c2c0=_0x139c4a;!_0x36f548()[_0x31c2c0('0x1a80')](_0x52c172)&&!_0x36f548()['isNil'](_0x52c172[_0x31c2c0('0x13a0')])&&(_0x541337=_0x52c172[_0x31c2c0('0x13a0')],!_0x36f548()[_0x31c2c0('0x1a80')](_0x52c172[_0x31c2c0('0xcf3')])&&(_0x541337+='\x20'+_0x52c172['lastName']));})[_0x139c4a('0x151d')](function(){_0x541337=undefined;})[_0x139c4a('0xa9b')](function(){const _0x429039=_0x139c4a;_0xc1b088['voiceQueue'][_0x429039('0xbaa')]({'raw':![],'id':_0x2765cf[_0x429039('0x19b6')],'attributes':['name']})[_0x429039('0x1549')][_0x429039('0x11bf')](function(_0x2be13f){const _0x2aa8f4=_0x429039;_0xef9dea=_0x2be13f[_0x2aa8f4('0x1909')];})['catch'](function(){_0xef9dea=undefined;})[_0x429039('0xa9b')](function(){const _0x4c40b7=_0x429039;_0xc1b088['cmHopperHistory'][_0x4c40b7('0x259')]({'state':0x18,'statedesc':_0x4c40b7('0x1e2f'),'scheduledat':_0x58659b,'calleridnum':_0x2765cf[_0x4c40b7('0x1546')],'calleridname':_0x541337,'campaigntype':_0x2765cf[_0x4c40b7('0x19b6')]?_0x4c40b7('0x150b'):_0x4c40b7('0x1316'),'campaign':_0xef9dea,'editedat':_0x57d4d1()()['format'](_0x4c40b7('0xfae')),'edited':!![],'ListId':_0x2765cf[_0x4c40b7('0x1e91')],'UserId':_0x3150b9['getCurrentUser']()['id'],'VoiceQueueId':_0x2765cf[_0x4c40b7('0x19b6')],'CampaignId':_0x2765cf[_0x4c40b7('0x23c3')],'ContactId':_0x2765cf[_0x4c40b7('0x23f1')],'callback':_0x2765cf[_0x4c40b7('0x193')],'callbackuniqueid':_0x2765cf[_0x4c40b7('0x1c38')],'countbusyretry':_0x2765cf[_0x4c40b7('0x268')],'countcongestionretry':_0x2765cf[_0x4c40b7('0x22df')],'countglobal':_0x2765cf[_0x4c40b7('0x21f9')],'countnoanswerretry':_0x2765cf['countnoanswerretry'],'followuptime':_0x2765cf[_0x4c40b7('0x18fb')],'recallme':_0x2765cf[_0x4c40b7('0x173e')]});});});const _0x125744=_0x36f548()[_0x139c4a('0x1ad4')](_0x39f45e[_0x139c4a('0xc8d')],{'id':_0x101ad1['id']});_0x125744&&_0x36f548()[_0x139c4a('0x47b')](_0x125744,_0x36f548()[_0x139c4a('0x258')](_0x101ad1[_0x139c4a('0x2866')](),_0x36f548()[_0x139c4a('0xe22')](_0x125744))),_0x5ac3b8[_0x139c4a('0x2693')]({'title':_0x139c4a('0x1e59'),'msg':_0x39f45e[_0x139c4a('0x244f')][_0x139c4a('0x1909')]?_0x39f45e[_0x139c4a('0x244f')]['name']+'\x20has\x20been\x20saved!':''}),_0x528cf0(_0x101ad1);})[_0x4eed95('0x151d')](function(_0x50e5e0){const _0x480ede=_0x4eed95;if(_0x50e5e0[_0x480ede('0x4e8')]&&_0x50e5e0['data'][_0x480ede('0x120f')]&&_0x50e5e0[_0x480ede('0x4e8')]['errors'][_0x480ede('0x1e22')]){_0x39f45e[_0x480ede('0x120f')]=_0x50e5e0[_0x480ede('0x4e8')][_0x480ede('0x120f')]||[{'message':_0x50e5e0[_0x480ede('0xaab')](),'type':_0x480ede('0x25d9')}];for(let _0xa069bd=0x0;_0xa069bd<_0x50e5e0[_0x480ede('0x4e8')][_0x480ede('0x120f')][_0x480ede('0x1e22')];_0xa069bd++){_0x5ac3b8[_0x480ede('0x255')]({'title':_0x50e5e0[_0x480ede('0x4e8')][_0x480ede('0x120f')][_0xa069bd]['type'],'msg':_0x50e5e0[_0x480ede('0x4e8')]['errors'][_0xa069bd][_0x480ede('0x1b86')]});}}else _0x5ac3b8[_0x480ede('0x255')]({'title':_0x50e5e0[_0x480ede('0xff9')]?_0x480ede('0x574')+_0x50e5e0['status']+_0x480ede('0xb0b')+_0x50e5e0['statusText']:_0x480ede('0x25d9'),'msg':_0x50e5e0[_0x480ede('0x4e8')]?JSON[_0x480ede('0x3e')](_0x50e5e0['data'][_0x480ede('0x1b86')]):_0x50e5e0[_0x480ede('0xaab')]()});});});}function _0x1a45e5(_0x26af54){const _0x3a2fbf=_0x3a5f7f;_0x39f45e[_0x3a2fbf('0x120f')]=[];const _0x8d0eef=_0x2f9a0f[_0x3a2fbf('0x132b')]()[_0x3a2fbf('0x134b')](_0x3a2fbf('0x1fa9'))[_0x3a2fbf('0x252a')](_0x3a2fbf('0xf81'))[_0x3a2fbf('0xb2e')]('Delete\x20Hopper')['ok'](_0x3a2fbf('0x1167'))[_0x3a2fbf('0x26c9')](_0x3a2fbf('0x784'))[_0x3a2fbf('0x1e25')](_0x26af54);_0x2f9a0f[_0x3a2fbf('0xb9')](_0x8d0eef)[_0x3a2fbf('0x11bf')](function(){const _0x1e0a0a=_0x3a2fbf;_0xc1b088['cmHopper'][_0x1e0a0a('0x2088')]({'id':_0x39f45e['hopper']['id']})['$promise']['then'](function(){const _0x214a15=_0x1e0a0a;_0x36f548()[_0x214a15('0x14a5')](_0x39f45e['hoppers'],{'id':_0x39f45e[_0x214a15('0x244f')]['id']}),_0x5ac3b8[_0x214a15('0x2693')]({'title':'Hopper\x20properly\x20deleted!','msg':(_0x39f45e[_0x214a15('0x244f')]['name']||_0x214a15('0x244f'))+'\x20has\x20been\x20deleted!'}),_0x528cf0(_0x39f45e[_0x214a15('0x244f')]);})[_0x1e0a0a('0x151d')](function(_0x4ddf5d){const _0x3ecaf5=_0x1e0a0a;if(_0x4ddf5d[_0x3ecaf5('0x4e8')]&&_0x4ddf5d[_0x3ecaf5('0x4e8')][_0x3ecaf5('0x120f')]&&_0x4ddf5d[_0x3ecaf5('0x4e8')][_0x3ecaf5('0x120f')]['length']){_0x39f45e[_0x3ecaf5('0x120f')]=_0x4ddf5d[_0x3ecaf5('0x4e8')][_0x3ecaf5('0x120f')]||[{'message':_0x4ddf5d[_0x3ecaf5('0xaab')](),'type':_0x3ecaf5('0x2489')}];for(let _0x2dae75=0x0;_0x2dae75<_0x4ddf5d[_0x3ecaf5('0x4e8')][_0x3ecaf5('0x120f')][_0x3ecaf5('0x1e22')];_0x2dae75++){_0x5ac3b8[_0x3ecaf5('0x255')]({'title':_0x4ddf5d[_0x3ecaf5('0x4e8')][_0x3ecaf5('0x120f')][_0x2dae75]['type'],'msg':_0x4ddf5d['data'][_0x3ecaf5('0x120f')][_0x2dae75][_0x3ecaf5('0x1b86')]});}}else _0x5ac3b8['error']({'title':_0x4ddf5d[_0x3ecaf5('0xff9')]?'API:'+_0x4ddf5d['status']+'\x20-\x20'+_0x4ddf5d['statusText']:_0x3ecaf5('0x2489'),'msg':_0x4ddf5d[_0x3ecaf5('0x4e8')]?JSON['stringify'](_0x4ddf5d[_0x3ecaf5('0x4e8')][_0x3ecaf5('0x1b86')]):_0x4ddf5d[_0x3ecaf5('0x1b86')]||_0x4ddf5d[_0x3ecaf5('0xaab')]()});});},function(){});}function _0x228728(_0x507625){return _0x507625===null?undefined:new Date(_0x507625);}function _0x528cf0(_0x21ce04){const _0x4d2ff3=_0x3a5f7f;_0x2f9a0f[_0x4d2ff3('0x237e')](_0x21ce04);}}const _0x2a08a5=_0x272748;_0x1b72a3[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x12a5'),_0x21d0f5('0x142d')];function _0x1b72a3(_0x4163a4,_0x49656c){const _0x1dc9a4=_0x21d0f5,_0x5d8c34=this;_0x5d8c34[_0x1dc9a4('0xf08')]={},_0x5d8c34[_0x1dc9a4('0x286f')]=_0x4c836b;function _0x4c836b(_0x3fc22c){const _0x2a51e4=_0x1dc9a4;_0x5d8c34[_0x2a51e4('0xf08')]=_0x3fc22c,_0x4163a4[_0x2a51e4('0x1d11')][_0x2a51e4('0xbaa')]({'limit':0x0,'VoiceQueueId':_0x3fc22c['id']})[_0x2a51e4('0x1549')][_0x2a51e4('0x11bf')](function(_0x571fc0){const _0x217c52=_0x2a51e4;return _0x5d8c34[_0x217c52('0x4af')]=_0x571fc0['count']||0x0,_0x4163a4[_0x217c52('0x1d11')][_0x217c52('0xbaa')]({'limit':0x0,'VoiceQueueId':_0x3fc22c['id'],'active':![],'countbusyretry':0x0,'countcongestionretry':0x0,'countnoanswerretry':0x0})['$promise'];})[_0x2a51e4('0x11bf')](function(_0x48109f){const _0x196be9=_0x2a51e4;return _0x5d8c34[_0x196be9('0x13bc')]=_0x48109f[_0x196be9('0x27d2')]||0x0,_0x4163a4[_0x196be9('0x1794')][_0x196be9('0xbaa')]({'limit':0x0,'VoiceQueueId':_0x3fc22c['id']})[_0x196be9('0x1549')];})[_0x2a51e4('0x11bf')](function(_0x19a0af){const _0x4fbf05=_0x2a51e4;_0x5d8c34[_0x4fbf05('0x949')]=_0x19a0af[_0x4fbf05('0x27d2')]||0x0;})[_0x2a51e4('0x151d')](function(_0x4e0ee5){const _0x5328c7=_0x2a51e4;_0x49656c['error']({'title':_0x4e0ee5['status']?'API:'+_0x4e0ee5[_0x5328c7('0xff9')]+_0x5328c7('0xb0b')+_0x4e0ee5[_0x5328c7('0x212f')]:_0x5328c7('0x24ee'),'msg':_0x4e0ee5[_0x5328c7('0x4e8')]?JSON['stringify'](_0x4e0ee5[_0x5328c7('0x4e8')]):_0x4e0ee5[_0x5328c7('0xaab')]()});});}}const _0x4175e0=_0x1b72a3;_0x5e1f91[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0x142d'),_0x21d0f5('0x12a5'),_0x21d0f5('0xf08'),_0x21d0f5('0xb6b'),_0x21d0f5('0x17f5'),'Auth',_0x21d0f5('0xb25')];function _0x5e1f91(_0x35be5d,_0x41fc38,_0x21b777,_0x54cc5f,_0x180961,_0x2eb6fa,_0x592c0e,_0x1c8f7a,_0x369599){const _0x5cf88b=_0x21d0f5,_0x206f22=this;_0x206f22[_0x5cf88b('0x32a')]=_0x1c8f7a['getCurrentUser'](),_0x206f22['queueCampaign']=_0x180961,_0x206f22[_0x5cf88b('0xb25')]=_0x369599,_0x206f22['apiRoute']=_0x5cf88b('0x1043'),_0x206f22[_0x5cf88b('0x10ab')]=_0x5cf88b('0x1161'),_0x206f22[_0x5cf88b('0x35b')]=_0x5cf88b('0x26d8'),_0x206f22[_0x5cf88b('0x933')]=_0x5cf88b('0x293'),_0x206f22[_0x5cf88b('0x22')]=[],_0x206f22[_0x5cf88b('0x63')]=[],_0x206f22['selectedItems']=[],_0x206f22[_0x5cf88b('0x1c6f')]=[],_0x206f22[_0x5cf88b('0x21ed')]=[],_0x206f22['pendingChanges']=![],_0x206f22['loading']=![],_0x206f22[_0x5cf88b('0xec5')]={'readOnly':!_0x206f22[_0x5cf88b('0xb25')][_0x5cf88b('0x25db')],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':![],'orderBy':_0x5cf88b('0x1909'),'line1':'name','line2':'','line3':'','labelAll':_0x2eb6fa[_0x5cf88b('0x10c2')](_0x5cf88b('0x1ac1')),'labelSelected':_0x2eb6fa[_0x5cf88b('0x10c2')]('MOTIONDIALER.SELECTED_LISTS'),'transferCallback':function(){const _0x2bc078=_0x5cf88b,_0x4bea06=_0x36f548()[_0x2bc078('0x1a1b')](_0x206f22['startingSelectedItems'],_0x206f22[_0x2bc078('0x26cc')],'id');_0x206f22[_0x2bc078('0x1eda')]=_0x36f548()[_0x2bc078('0x1fc5')](_0x4bea06)?![]:!![];}},_0x206f22[_0x5cf88b('0x277c')]=_0x1ed425,_0x206f22[_0x5cf88b('0x40c')]=_0x1c4f80,_0x206f22[_0x5cf88b('0xc4e')]=_0x3c3a5e;function _0x1ed425(){const _0x5cf75f=_0x5cf88b;return _0x1c8f7a[_0x5cf75f('0x4ee')]('admin')?_0xebca01()[_0x5cf75f('0x151d')](function(_0x30a4bd){const _0x8229f9=_0x5cf75f;_0x21b777[_0x8229f9('0x255')]({'title':_0x30a4bd[_0x8229f9('0xff9')]?'API:'+_0x30a4bd['status']+_0x8229f9('0xb0b')+_0x30a4bd[_0x8229f9('0x212f')]:_0x8229f9('0x1364'),'msg':_0x30a4bd[_0x8229f9('0xff9')]?JSON[_0x8229f9('0x3e')](_0x30a4bd[_0x8229f9('0x4e8')]):_0x30a4bd[_0x8229f9('0xaab')]()});}):_0x46e5ea()[_0x5cf75f('0x11bf')](function(_0x19454f){const _0x937dbc=_0x5cf75f;return _0x206f22[_0x937dbc('0xe6')]=_0x19454f,_0xebca01();})[_0x5cf75f('0x151d')](function(_0x49326f){const _0x1fa70a=_0x5cf75f;_0x21b777[_0x1fa70a('0x255')]({'title':_0x49326f[_0x1fa70a('0xff9')]?_0x1fa70a('0x574')+_0x49326f['status']+'\x20-\x20'+_0x49326f[_0x1fa70a('0x212f')]:_0x1fa70a('0x1364'),'msg':_0x49326f[_0x1fa70a('0xff9')]?JSON['stringify'](_0x49326f[_0x1fa70a('0x4e8')]):_0x49326f[_0x1fa70a('0xaab')]()});});}function _0x46e5ea(){return _0x41fc38(function(_0x1cfa9d,_0x10391e){const _0xc55f8b=a0_0xaf0c;_0x54cc5f[_0xc55f8b('0x1d63')][_0xc55f8b('0xbaa')]({'userProfileId':_0x206f22[_0xc55f8b('0x32a')][_0xc55f8b('0x781')],'name':_0xc55f8b('0x2244')})[_0xc55f8b('0x1549')][_0xc55f8b('0x11bf')](function(_0x236d93){const _0x2e8766=_0xc55f8b,_0x2e2244=_0x236d93&&_0x236d93['rows']?_0x236d93[_0x2e8766('0x19b2')][0x0]:null;_0x1cfa9d(_0x2e2244);})[_0xc55f8b('0x151d')](function(_0x2c9201){_0x10391e(_0x2c9201);});});}function _0xebca01(){return _0x41fc38(function(_0x41dfbf,_0x1d3d4a){const _0x27eaf5=a0_0xaf0c;return _0x334758()[_0x27eaf5('0x11bf')](function(_0x604dcc){const _0x5264ac=_0x27eaf5;return _0x206f22[_0x5264ac('0x22')]=_0x604dcc[_0x5264ac('0x19b2')]?_0x604dcc[_0x5264ac('0x19b2')]:[],_0x1c8f7a[_0x5264ac('0x4ee')](_0x5264ac('0xf45'))?_0x604dcc:_0x206f22['section']?_0x206f22[_0x5264ac('0xe6')][_0x5264ac('0xf11')]?_0x604dcc:_0x5e7feb():null;})[_0x27eaf5('0x11bf')](function(_0x29a4d8){const _0x473593=_0x27eaf5,_0x39de03=_0x29a4d8&&_0x29a4d8[_0x473593('0x19b2')]?_0x29a4d8[_0x473593('0x19b2')]:[];return _0x206f22[_0x473593('0x63')]=_0x36f548()[_0x473593('0x2171')](_0x39de03,function(_0x38422f){const _0x3b2492=_0x473593;return _0x36f548()[_0x3b2492('0x1ad4')](_0x206f22[_0x3b2492('0x22')],{'id':_0x1c8f7a[_0x3b2492('0x4ee')](_0x3b2492('0xf45'))||_0x206f22[_0x3b2492('0xe6')][_0x3b2492('0xf11')]?_0x38422f['id']:_0x38422f[_0x3b2492('0x15a5')]});}),_0x206f22['startingAllowedItems']=angular[_0x473593('0x6fb')](_0x206f22[_0x473593('0x63')]),_0x206f22['items']['forEach'](function(_0x6a5e16){const _0x4a5c26=_0x473593,_0x147019=_0x36f548()['find'](_0x206f22['allowedItems'],{'id':_0x6a5e16['id']});_0x206f22[_0x4a5c26('0x32a')][_0x4a5c26('0x111d')]===_0x4a5c26('0xf45')?_0x6a5e16[_0x4a5c26('0xde9')]=!![]:_0x6a5e16[_0x4a5c26('0xde9')]=typeof _0x147019!==_0x4a5c26('0x13e9')?!![]:![];}),_0xc6a7cb();})[_0x27eaf5('0x11bf')](function(_0x1b04dc){const _0x324c15=_0x27eaf5,_0xc1c545=_0x1b04dc&&_0x1b04dc['rows']?_0x1b04dc['rows']:[];_0x206f22[_0x324c15('0x26cc')]=_0x36f548()[_0x324c15('0x2171')](_0xc1c545,function(_0x169f98){const _0x176077=_0x324c15;return _0x36f548()[_0x176077('0x1ad4')](_0x206f22[_0x176077('0x22')],{'id':_0x169f98['id']});}),_0x206f22['startingSelectedItems']=angular['copy'](_0x206f22[_0x324c15('0x26cc')]),_0x206f22[_0x324c15('0xec5')]['selectedItems']=_0x206f22[_0x324c15('0x26cc')],_0x206f22[_0x324c15('0xec5')][_0x324c15('0x22')]=_0x36f548()[_0x324c15('0x2753')](_0x206f22[_0x324c15('0x63')],_0x206f22['dualMultiselectOptions']['selectedItems'],'id'),_0x41dfbf();})[_0x27eaf5('0x151d')](function(_0x1ec143){_0x1d3d4a(_0x1ec143);});});}function _0x5e7feb(){return _0x41fc38(function(_0x41c58e,_0x50e1e1){const _0xfe3281=a0_0xaf0c;return _0x54cc5f['userProfileResource'][_0xfe3281('0xbaa')]({'sectionId':_0x206f22['section']['id'],'nolimit':!![]})[_0xfe3281('0x1549')]['then'](function(_0xe02c49){_0x41c58e(_0xe02c49);})[_0xfe3281('0x151d')](function(_0x18feb3){_0x50e1e1(_0x18feb3);});});}function _0xc6a7cb(){return _0x41fc38(function(_0x807c18,_0x3ba7e2){const _0xdec70b=a0_0xaf0c,_0x2d3a67=_0x54cc5f[_0x206f22[_0xdec70b('0x1727')]];return _0x2d3a67[_0x206f22[_0xdec70b('0x10ab')]]({'id':_0x206f22[_0xdec70b('0xf08')]['id'],'fields':_0xdec70b('0x721'),'nolimit':!![]})['$promise'][_0xdec70b('0x11bf')](function(_0x11f17d){_0x807c18(_0x11f17d);})[_0xdec70b('0x151d')](function(_0x3757ac){_0x3ba7e2(_0x3757ac);});});}function _0x334758(){return _0x41fc38(function(_0x26a703,_0x2d89e9){const _0x3707b6=a0_0xaf0c;return _0x54cc5f[_0x3707b6('0xbef')][_0x3707b6('0xbaa')]({'fields':_0x3707b6('0x721'),'nolimit':!![]})[_0x3707b6('0x1549')][_0x3707b6('0x11bf')](function(_0x414a04){_0x26a703(_0x414a04);})['catch'](function(_0xa57c8){_0x2d89e9(_0xa57c8);});});}function _0x20f9f4(_0x52f157){return _0x41fc38(function(_0xef1108,_0x3ab5fa){const _0x1dde86=a0_0xaf0c;if(_0x36f548()[_0x1dde86('0x1fc5')](_0x52f157))_0xef1108();else{const _0x6a7d66=_0x54cc5f[_0x206f22[_0x1dde86('0x1727')]];_0x6a7d66[_0x206f22[_0x1dde86('0x35b')]]({'id':_0x206f22[_0x1dde86('0xf08')]['id'],'ids':_0x36f548()['map'](_0x52f157,'id')})[_0x1dde86('0x1549')][_0x1dde86('0x11bf')](function(){_0xef1108();})[_0x1dde86('0x151d')](function(_0x5c9325){_0x3ab5fa(_0x5c9325);});}});}function _0x3afc9b(_0x4c0acc){return _0x41fc38(function(_0x3f6dd2,_0x4e3b12){const _0xe949fe=a0_0xaf0c;if(_0x36f548()[_0xe949fe('0x1fc5')](_0x4c0acc))_0x3f6dd2();else{const _0x37da17=_0x54cc5f[_0x206f22[_0xe949fe('0x1727')]];_0x37da17[_0x206f22['removeApi']]({'id':_0x206f22['queueCampaign']['id'],'ids':_0x36f548()['map'](_0x4c0acc,'id')})['$promise'][_0xe949fe('0x11bf')](function(){_0x3f6dd2();})[_0xe949fe('0x151d')](function(_0x3f478a){_0x4e3b12(_0x3f478a);});}});}function _0x1c4f80(){const _0x10d0c9=_0x5cf88b;_0x206f22['loading']=!![];const _0x306ebd=_0x36f548()['differenceBy'](_0x206f22[_0x10d0c9('0x21ed')],_0x206f22[_0x10d0c9('0x26cc')],'id'),_0x2605d7=_0x36f548()['differenceBy'](_0x206f22[_0x10d0c9('0x26cc')],_0x206f22[_0x10d0c9('0x21ed')],'id');return _0x3afc9b(_0x306ebd)[_0x10d0c9('0x11bf')](function(){return _0x20f9f4(_0x2605d7);})[_0x10d0c9('0x11bf')](function(){const _0x231832=_0x10d0c9;_0x206f22['pendingChanges']=![],_0x206f22[_0x231832('0x1c6f')]=angular[_0x231832('0x6fb')](_0x206f22[_0x231832('0x63')]),_0x206f22[_0x231832('0x21ed')]=angular['copy'](_0x206f22[_0x231832('0x26cc')]),_0x21b777[_0x231832('0x2693')]({'title':_0x231832('0x2243'),'msg':'Lists\x20association\x20has\x20been\x20updated!'});})[_0x10d0c9('0x151d')](function(_0x123a1d){const _0x432e5f=_0x10d0c9;_0x21b777[_0x432e5f('0x255')]({'title':_0x123a1d[_0x432e5f('0xff9')]?_0x432e5f('0x574')+_0x123a1d[_0x432e5f('0xff9')]+_0x432e5f('0xb0b')+_0x123a1d[_0x432e5f('0x212f')]:_0x432e5f('0x1b7f'),'msg':_0x123a1d[_0x432e5f('0xff9')]?JSON[_0x432e5f('0x3e')](_0x123a1d[_0x432e5f('0x4e8')]):_0x123a1d['toString']()});})[_0x10d0c9('0xa9b')](function(){const _0x4c59b4=_0x10d0c9;_0x206f22[_0x4c59b4('0x632')]=![];});}function _0x3c3a5e(){const _0x8c37b2=_0x5cf88b;_0x35be5d[_0x8c37b2('0x237e')]();}}const _0x20ea41=_0x5e1f91;_0x1b4589['$inject']=[_0x21d0f5('0x1b80'),_0x21d0f5('0x1ca2'),_0x21d0f5('0x142d'),_0x21d0f5('0x12a5'),_0x21d0f5('0xf08'),'listsCampaign',_0x21d0f5('0x2705'),'$q'];function _0x1b4589(_0x980286,_0x15b37a,_0x362d69,_0x4aa5d4,_0x6fff9c,_0xbc3d3,_0x39f455,_0x354b6e){const _0x201061=_0x21d0f5,_0x3a1f58=this;_0x3a1f58[_0x201061('0x1506')]=[],_0x3a1f58[_0x201061('0x22')]=_0xbc3d3?_0xbc3d3:[],_0x3a1f58[_0x201061('0x632')]=![],_0x3a1f58[_0x201061('0xc4e')]=_0x347aa9,_0x3a1f58[_0x201061('0x26b')]=_0xf09232,_0x3a1f58[_0x201061('0x113b')]=_0x208321,_0x3a1f58['isIndeterminate']=_0x1134d9,_0x3a1f58[_0x201061('0x2232')]=_0x281ff2,_0x3a1f58[_0x201061('0x386')]=_0x56f43b,_0x3a1f58[_0x201061('0x40a')]=_0x310db7;function _0x208321(_0x35880a,_0x3ef232){const _0x196be1=_0x201061,_0x1ad2d9=_0x3ef232[_0x196be1('0x203c')](_0x35880a);_0x1ad2d9>-0x1?_0x3ef232[_0x196be1('0x1ae')](_0x1ad2d9,0x1):_0x3ef232['push'](_0x35880a);}function _0xf09232(_0x1c0183,_0x192075){return _0x192075['indexOf'](_0x1c0183)>-0x1;}function _0x1134d9(){const _0x12a826=_0x201061;return _0x3a1f58[_0x12a826('0x1506')]['length']!==0x0&&_0x3a1f58[_0x12a826('0x1506')][_0x12a826('0x1e22')]!==_0x3a1f58[_0x12a826('0x22')][_0x12a826('0x1e22')];}function _0x281ff2(){const _0x2d76bf=_0x201061;return _0x3a1f58['selected'][_0x2d76bf('0x1e22')]===_0x3a1f58[_0x2d76bf('0x22')]['length'];}function _0x56f43b(){const _0x2af493=_0x201061;if(_0x3a1f58[_0x2af493('0x1506')]['length']===_0x3a1f58[_0x2af493('0x22')]['length'])_0x3a1f58[_0x2af493('0x1506')]=[];else(_0x3a1f58['selected'][_0x2af493('0x1e22')]===0x0||_0x3a1f58[_0x2af493('0x1506')][_0x2af493('0x1e22')]>0x0)&&(_0x3a1f58[_0x2af493('0x1506')]=_0x3a1f58[_0x2af493('0x22')][_0x2af493('0x1b77')](0x0));}function _0x347aa9(){const _0x3bb3ce=_0x201061;_0x15b37a[_0x3bb3ce('0x237e')]();}function _0x310db7(){const _0x41cad0=_0x201061;_0x3a1f58[_0x41cad0('0x632')]=!![];const _0x2667bf=_0x2c7709();_0x2667bf['finally'](function(){const _0x5b5123=_0x41cad0;_0x3a1f58[_0x5b5123('0x632')]=![],_0x347aa9();});}function _0x2c7709(){return _0x354b6e(function(_0x372bf4){const _0x26a246=a0_0xaf0c;for(let _0x2a5669=0x0;_0x2a5669<_0x3a1f58[_0x26a246('0x1506')][_0x26a246('0x1e22')];_0x2a5669+=0x1){_0x1655f7(_0x6fff9c['id'],_0x3a1f58[_0x26a246('0x1506')][_0x2a5669]);}_0x34589a(_0x372bf4);});}function _0x1655f7(_0xcda579,_0x22477c){const _0x4d75e3=_0x201061,_0x848064=_0x22477c['id'];_0x39f455[_0x4d75e3('0x1baf')](function(){const _0x51c8b6=_0x4d75e3;return _0x4aa5d4[_0x51c8b6('0x1043')][_0x51c8b6('0x293')]({'id':_0xcda579,'ids':_0x848064})['$promise']['then'](function(){const _0x4fe40c=_0x51c8b6;return _0x4aa5d4[_0x4fe40c('0x1043')]['addLists']({'id':_0xcda579,'ids':_0x848064,'dialCheckDuplicateType':_0x4fe40c('0xf95')})[_0x4fe40c('0x1549')];})[_0x51c8b6('0x11bf')](function(){const _0x250674=_0x51c8b6;_0x362d69[_0x250674('0x2693')]({'title':_0x250674('0x1290'),'msg':_0x250674('0x6d1')+_0x22477c[_0x250674('0x1909')]+_0x250674('0xa8e')});})[_0x51c8b6('0x151d')](function(_0x4e7699){const _0xc54611=_0x51c8b6;_0x362d69['error']({'title':_0x4e7699['status']?'API:'+_0x4e7699['status']+'\x20-\x20'+_0x4e7699[_0xc54611('0x212f')]:_0xc54611('0xc4a'),'msg':_0x4e7699[_0xc54611('0xff9')]?JSON['stringify'](_0x4e7699[_0xc54611('0x4e8')]):_0x4e7699[_0xc54611('0xaab')]()});});});}function _0x34589a(_0x43ef7b){_0x39f455['enqueue'](function(){return _0x43ef7b();});}}const _0x385f3e=_0x1b4589;_0x3acf3a[_0x21d0f5('0x1e9a')]=['$mdDialog','$q','toasty',_0x21d0f5('0x12a5'),'queueCampaign',_0x21d0f5('0xb6b'),_0x21d0f5('0x1150'),'crudPermissions'];function _0x3acf3a(_0x54b8d2,_0x3b42a5,_0xd651c0,_0x26c1c7,_0x3f699a,_0x5509b9,_0x410dbf,_0x573345){const _0x50ac5a=_0x21d0f5,_0x3d5314=this;_0x3d5314[_0x50ac5a('0x32a')]=_0x410dbf[_0x50ac5a('0x2428')](),_0x3d5314[_0x50ac5a('0xf08')]=_0x3f699a,_0x3d5314[_0x50ac5a('0xb25')]=_0x573345,_0x3d5314[_0x50ac5a('0xf47')]=0x0,_0x3d5314[_0x50ac5a('0x22')]=[],_0x3d5314['allowedItems']=[],_0x3d5314[_0x50ac5a('0x26cc')]=[],_0x3d5314[_0x50ac5a('0x1c6f')]=[],_0x3d5314[_0x50ac5a('0x21ed')]=[],_0x3d5314[_0x50ac5a('0x1eda')]=![],_0x3d5314[_0x50ac5a('0xec5')]={'readOnly':!_0x3d5314[_0x50ac5a('0xb25')][_0x50ac5a('0x25db')],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x50ac5a('0x1909'),'line1':_0x50ac5a('0x1909'),'line2':'','line3':'','labelAll':_0x5509b9[_0x50ac5a('0x10c2')](_0x50ac5a('0x1f5')),'labelSelected':_0x5509b9['instant']('APP.SELECTED_TEAMS'),'transferCallback':function(_0x2d03ef,_0x3cc573){const _0x1d6481=_0x50ac5a;_0x3cc573?_0x2d03ef[_0x1d6481('0x1f88')](function(_0x3531ce){const _0x354c8d=_0x1d6481;_0x3531ce[_0x354c8d('0xf47')]=undefined;}):_0x2d03ef[_0x1d6481('0x1f88')](function(_0x5bb23f){const _0x4efb56=_0x1d6481;_0x5bb23f[_0x4efb56('0xf47')]=_0x4efb56('0x1caa')+_0x3d5314['penalty'];});const _0x1ab6de=_0x36f548()['xorBy'](_0x3d5314['startingSelectedItems'],_0x3d5314[_0x1d6481('0x26cc')],'id');_0x3d5314[_0x1d6481('0x1eda')]=_0x36f548()[_0x1d6481('0x1fc5')](_0x1ab6de)?![]:!![];}},_0x3d5314['onInit']=_0x17a398,_0x3d5314[_0x50ac5a('0x1581')]=_0x396a8b,_0x3d5314[_0x50ac5a('0xc4e')]=_0x2a1334;function _0x17a398(){const _0x1097e5=_0x50ac5a;return _0x410dbf[_0x1097e5('0x4ee')](_0x1097e5('0xf45'))?_0x5f3534()[_0x1097e5('0x151d')](function(_0x2def08){const _0x3d861b=_0x1097e5;_0xd651c0['error']({'title':_0x2def08[_0x3d861b('0xff9')]?_0x3d861b('0x574')+_0x2def08['status']+_0x3d861b('0xb0b')+_0x2def08[_0x3d861b('0x212f')]:_0x3d861b('0x2059'),'msg':_0x2def08[_0x3d861b('0xff9')]?JSON['stringify'](_0x2def08[_0x3d861b('0x4e8')]):_0x2def08['toString']()});}):_0x49977c()[_0x1097e5('0x11bf')](function(_0x451f60){return _0x3d5314['section']=_0x451f60,_0x5f3534();})[_0x1097e5('0x151d')](function(_0x974ba2){const _0x59e49a=_0x1097e5;_0xd651c0[_0x59e49a('0x255')]({'title':_0x974ba2[_0x59e49a('0xff9')]?_0x59e49a('0x574')+_0x974ba2[_0x59e49a('0xff9')]+_0x59e49a('0xb0b')+_0x974ba2['statusText']:_0x59e49a('0x2059'),'msg':_0x974ba2[_0x59e49a('0xff9')]?JSON[_0x59e49a('0x3e')](_0x974ba2['data']):_0x974ba2[_0x59e49a('0xaab')]()});});}function _0x49977c(){return _0x3b42a5(function(_0x19bdee,_0x4e7d96){const _0x120320=a0_0xaf0c;_0x26c1c7['userProfileSection']['get']({'userProfileId':_0x3d5314[_0x120320('0x32a')][_0x120320('0x781')],'name':_0x120320('0xc3f')})[_0x120320('0x1549')][_0x120320('0x11bf')](function(_0x4a013c){const _0x32fd67=_0x120320,_0x5ad606=_0x4a013c&&_0x4a013c[_0x32fd67('0x19b2')]?_0x4a013c[_0x32fd67('0x19b2')][0x0]:null;_0x19bdee(_0x5ad606);})['catch'](function(_0xd1f476){_0x4e7d96(_0xd1f476);});});}function _0x5f3534(){return _0x3b42a5(function(_0x3cd4cf,_0x5cf138){const _0x21c564=a0_0xaf0c;return _0x43f118()[_0x21c564('0x11bf')](function(_0x2eb26c){const _0x4a906c=_0x21c564;return _0x3d5314[_0x4a906c('0x22')]=_0x2eb26c['rows']?_0x2eb26c[_0x4a906c('0x19b2')]:[],_0x410dbf[_0x4a906c('0x4ee')](_0x4a906c('0xf45'))?_0x2eb26c:_0x3d5314['section']?_0x3d5314[_0x4a906c('0xe6')]['autoAssociation']?_0x2eb26c:_0x18521c():null;})['then'](function(_0x518947){const _0x95d175=_0x21c564,_0x1ff3b5=_0x518947&&_0x518947['rows']?_0x518947[_0x95d175('0x19b2')]:[];return _0x3d5314[_0x95d175('0x63')]=_0x36f548()[_0x95d175('0x2171')](_0x1ff3b5,function(_0x29ebd1){const _0x463ea8=_0x95d175;return _0x36f548()['find'](_0x3d5314[_0x463ea8('0x22')],{'id':_0x410dbf[_0x463ea8('0x4ee')](_0x463ea8('0xf45'))||_0x3d5314[_0x463ea8('0xe6')][_0x463ea8('0xf11')]?_0x29ebd1['id']:_0x29ebd1[_0x463ea8('0x15a5')]});}),_0x3d5314[_0x95d175('0x22')][_0x95d175('0x1f88')](function(_0x45b999){const _0x4fef52=_0x95d175,_0x2d7a0e=_0x36f548()[_0x4fef52('0x1ad4')](_0x3d5314[_0x4fef52('0x63')],{'id':_0x45b999['id']});_0x410dbf['hasRole'](_0x4fef52('0xf45'))?_0x45b999[_0x4fef52('0xde9')]=!![]:_0x45b999[_0x4fef52('0xde9')]=typeof _0x2d7a0e!==_0x4fef52('0x13e9')?!![]:![];}),_0x3940f6();})['then'](function(_0x22f786){const _0x5741ab=_0x21c564,_0x3df3d4=_0x22f786&&_0x22f786['rows']?_0x22f786[_0x5741ab('0x19b2')]:[];_0x3d5314[_0x5741ab('0x26cc')]=_0x36f548()['map'](_0x3df3d4,function(_0x561863){const _0x591a95=_0x5741ab;return _0x36f548()[_0x591a95('0x1ad4')](_0x3d5314[_0x591a95('0x22')],{'id':_0x561863['id']});}),_0x3d5314['startingSelectedItems']=angular[_0x5741ab('0x6fb')](_0x3d5314[_0x5741ab('0x26cc')]),_0x3d5314[_0x5741ab('0xec5')]['selectedItems']=_0x3d5314['selectedItems'],_0x3d5314[_0x5741ab('0xec5')][_0x5741ab('0x22')]=_0x36f548()[_0x5741ab('0x2753')](_0x3d5314[_0x5741ab('0x63')],_0x3d5314['dualMultiselectOptions'][_0x5741ab('0x26cc')],'id'),_0x3cd4cf();})[_0x21c564('0x151d')](function(_0x2d65ab){_0x5cf138(_0x2d65ab);});});}function _0x18521c(){return _0x3b42a5(function(_0x1239fa,_0x5de9ac){const _0x5f2399=a0_0xaf0c;return _0x26c1c7['userProfileResource'][_0x5f2399('0xbaa')]({'sectionId':_0x3d5314[_0x5f2399('0xe6')]['id'],'nolimit':!![]})[_0x5f2399('0x1549')][_0x5f2399('0x11bf')](function(_0x28faa7){_0x1239fa(_0x28faa7);})[_0x5f2399('0x151d')](function(_0x39b1a6){_0x5de9ac(_0x39b1a6);});});}function _0x3940f6(){return _0x3b42a5(function(_0x56946e,_0x91c075){const _0x539b30=a0_0xaf0c;return _0x26c1c7[_0x539b30('0x1043')][_0x539b30('0x306')]({'id':_0x3d5314[_0x539b30('0xf08')]['id'],'fields':_0x539b30('0x721'),'nolimit':!![]})[_0x539b30('0x1549')]['then'](function(_0x49b1ae){_0x56946e(_0x49b1ae);})[_0x539b30('0x151d')](function(_0x5efa96){_0x91c075(_0x5efa96);});});}function _0x43f118(){return _0x3b42a5(function(_0x4904dc,_0x1d8f03){const _0x1fc403=a0_0xaf0c;return _0x26c1c7[_0x1fc403('0xae6')]['get']({'fields':_0x1fc403('0x721'),'nolimit':!![]})[_0x1fc403('0x1549')]['then'](function(_0x3c8a99){_0x4904dc(_0x3c8a99);})[_0x1fc403('0x151d')](function(_0x4427f0){_0x1d8f03(_0x4427f0);});});}function _0x113d73(_0xcad522){return _0x3b42a5(function(_0x4014c5,_0x5795c5){const _0x5b83c7=a0_0xaf0c;if(_0x36f548()[_0x5b83c7('0x1fc5')](_0xcad522))_0x4014c5();else{const _0x18e058=_0x36f548()[_0x5b83c7('0x2171')](_0xcad522,function(_0x5cb2b4){const _0xbd4932=_0x5b83c7;return{'id':_0x5cb2b4['id'],'penalty':_0x36f548()[_0xbd4932('0x3ec')](_0x5cb2b4[_0xbd4932('0xf47')],_0xbd4932('0x1caa'))};});return _0x26c1c7[_0x5b83c7('0x1043')]['addTeams']({'id':_0x3d5314[_0x5b83c7('0xf08')]['id'],'teams':_0x18e058})['$promise'][_0x5b83c7('0x11bf')](function(){_0x4014c5();})['catch'](function(_0x5e2569){_0x5795c5(_0x5e2569);});}});}function _0x4a02a8(_0x486bd1){return _0x3b42a5(function(_0x5c0350,_0x40b164){const _0x3f29d3=a0_0xaf0c;_0x36f548()[_0x3f29d3('0x1fc5')](_0x486bd1)?_0x5c0350():_0x26c1c7['voiceQueue']['removeTeams']({'id':_0x3d5314['queueCampaign']['id'],'ids':_0x36f548()[_0x3f29d3('0x2171')](_0x486bd1,'id')})['$promise']['then'](function(){_0x5c0350();})[_0x3f29d3('0x151d')](function(_0x3668a1){_0x40b164(_0x3668a1);});});}function _0x396a8b(){const _0x3e103e=_0x50ac5a,_0x409e0b=_0x36f548()['differenceBy'](_0x3d5314[_0x3e103e('0x21ed')],_0x3d5314[_0x3e103e('0x26cc')],'id'),_0x1ccbad=_0x36f548()[_0x3e103e('0x2753')](_0x3d5314['selectedItems'],_0x3d5314[_0x3e103e('0x21ed')],'id');return _0x4a02a8(_0x409e0b)[_0x3e103e('0x11bf')](function(){return _0x113d73(_0x1ccbad);})[_0x3e103e('0x11bf')](function(){const _0x1680c6=_0x3e103e;_0x3d5314['pendingChanges']=![],_0x3d5314['startingAllowedItems']=angular['copy'](_0x3d5314[_0x1680c6('0x63')]),_0x3d5314[_0x1680c6('0x21ed')]=angular[_0x1680c6('0x6fb')](_0x3d5314[_0x1680c6('0x26cc')]),_0xd651c0[_0x1680c6('0x2693')]({'title':'SUCCESS','msg':'Teams\x20association\x20has\x20been\x20updated!'});})[_0x3e103e('0x151d')](function(_0x21368b){const _0xedaf36=_0x3e103e;_0xd651c0[_0xedaf36('0x255')]({'title':_0x21368b['status']?_0xedaf36('0x574')+_0x21368b['status']+_0xedaf36('0xb0b')+_0x21368b[_0xedaf36('0x212f')]:_0xedaf36('0x1b7f'),'msg':_0x21368b['status']?JSON[_0xedaf36('0x3e')](_0x21368b['data']):_0x21368b[_0xedaf36('0xaab')]()});});}function _0x2a1334(){const _0x2a7d91=_0x50ac5a;_0x54b8d2[_0x2a7d91('0x237e')]();}}const _0x208e96=_0x3acf3a,_0x52e3f6=_0x351988['p']+'src/js/modules/main/apps/motiondialer/views/queueCampaigns/edit/clone/clone.html/clone.html',_0x313aa3=_0x351988['p']+_0x21d0f5('0x1ec9'),_0x506dc5=_0x351988['p']+'src/js/modules/main/apps/motiondialer/views/queueCampaigns/edit/blacklistadd/blacklistadd.html/blacklistadd.html',_0x283da6=_0x351988['p']+_0x21d0f5('0x8ef'),_0x2681c3=_0x351988['p']+_0x21d0f5('0x1df7');_0xa3fe98['$inject']=[_0x21d0f5('0xcbc'),_0x21d0f5('0x16b9'),_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),'$translate',_0x21d0f5('0x17ff'),'setting',_0x21d0f5('0x12a5'),_0x21d0f5('0x142d'),'Auth',_0x21d0f5('0xf08'),_0x21d0f5('0x1d63')];function _0xa3fe98(_0x3ac469,_0x6eef39,_0x48ac12,_0x120165,_0x45305f,_0x1d814c,_0x4ab6f1,_0x5e5805,_0x15ab0a,_0x256a40,_0x20a6da,_0x5f2453){const _0x5387d9=_0x21d0f5,_0x3cbe61=this;_0x3cbe61['currentUser']=_0x256a40['getCurrentUser'](),_0x3cbe61['license']=_0x1d814c,_0x3cbe61[_0x5387d9('0x23e1')]=_0x4ab6f1,_0x3cbe61[_0x5387d9('0x2834')]=_0x3cbe61[_0x5387d9('0x23e1')][_0x5387d9('0x1d4')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3cbe61['location']=_0x6eef39[_0x5387d9('0x1797')]()+_0x5387d9('0x16a1')+_0x6eef39[_0x5387d9('0x14ec')](),_0x3cbe61[_0x5387d9('0xf08')]=_0x20a6da||_0x3ac469[_0x5387d9('0x1ab3')]['queueCampaign']||{},_0x3cbe61[_0x5387d9('0x1d63')]=_0x5f2453&&_0x5f2453[_0x5387d9('0x27d2')]==0x1?_0x5f2453['rows'][0x0]:null,_0x3cbe61['crudPermissions']=_0x256a40[_0x5387d9('0x1530')](_0x3cbe61[_0x5387d9('0x1d63')]?_0x3cbe61[_0x5387d9('0x1d63')]['crudPermissions']:null),_0x3cbe61['hasModulePermissions']={},_0x3cbe61[_0x5387d9('0x1179')]=_0x3ac469[_0x5387d9('0x1ab3')]['tab']||0x0,_0x3cbe61['clonedialog']=_0x1eaf91,_0x3cbe61[_0x5387d9('0x1dd8')]=_0x30c6b2,_0x3cbe61[_0x5387d9('0x170f')]=_0x2a4f24,_0x3cbe61[_0x5387d9('0x11b8')]=_0x3de923,_0x3cbe61[_0x5387d9('0x2363')]=_0x4f6ec8,_0x3cbe61[_0x5387d9('0x277b')]=_0x51e1ab,_0x3cbe61[_0x5387d9('0x15dc')]=_0x10ec6e,_0x3cbe61[_0x5387d9('0xb30')]=_0x15ab0a[_0x5387d9('0x870')],_0x3cbe61[_0x5387d9('0x2e')]=_0x23c8b8,_0x3cbe61[_0x5387d9('0x23c7')]=_0x1d7221,_0x256a40[_0x5387d9('0x4ee')](_0x5387d9('0xf45'))?_0x5e5805[_0x5387d9('0x11c7')][_0x5387d9('0xbaa')]({'fields':_0x5387d9('0x721'),'nolimit':_0x5387d9('0x204c')})[_0x5387d9('0x1549')][_0x5387d9('0x11bf')](function(_0x463685){const _0x3e35ab=_0x5387d9;_0x3cbe61[_0x3e35ab('0x2094')]=_0x463685[_0x3e35ab('0x19b2')]||[];})[_0x5387d9('0x151d')](function(_0x59d3ec){const _0x1df183=_0x5387d9;_0x15ab0a[_0x1df183('0x255')]({'title':_0x59d3ec['status']?_0x1df183('0x574')+_0x59d3ec['status']+_0x1df183('0xb0b')+_0x59d3ec[_0x1df183('0x212f')]:_0x1df183('0x1857'),'msg':_0x59d3ec[_0x1df183('0x4e8')]?JSON['stringify'](_0x59d3ec[_0x1df183('0x4e8')]):_0x59d3ec[_0x1df183('0xaab')]()});}):_0x5e5805[_0x5387d9('0x11c7')][_0x5387d9('0xbaa')]({'fields':_0x5387d9('0x721'),'nolimit':'true'})['$promise'][_0x5387d9('0x11bf')](function(_0x4c4157){const _0x2239cd=_0x5387d9;_0x3cbe61[_0x2239cd('0x2094')]=_0x4c4157[_0x2239cd('0x19b2')]||[];})['then'](function(){const _0x4c08c0=_0x5387d9;return _0x5e5805[_0x4c08c0('0x1d63')]['get']({'userProfileId':_0x3cbe61[_0x4c08c0('0x32a')]['userProfileId'],'sectionId':0x197})[_0x4c08c0('0x1549')];})[_0x5387d9('0x11bf')](function(_0x1f0b97){const _0x10b086=_0x5387d9,_0x59aaef=_0x1f0b97&&_0x1f0b97[_0x10b086('0x19b2')]?_0x1f0b97[_0x10b086('0x19b2')][0x0]:null;if(!_0x59aaef)return _0x5e5805[_0x10b086('0x11c7')][_0x10b086('0xbaa')]({'fields':'id,name','nolimit':'true','defaultEntry':0x1})['$promise']['then'](function(_0x5f056d){const _0x4117f5=_0x10b086;_0x3cbe61['musiconholds']=_0x5f056d[_0x4117f5('0x19b2')]||[];});else{if(!_0x59aaef[_0x10b086('0xf11')])return _0x5e5805[_0x10b086('0x26d1')][_0x10b086('0xbaa')]({'sectionId':_0x59aaef['id']})['$promise'][_0x10b086('0x11bf')](function(_0x4a7785){const _0x5759bb=_0x10b086,_0xaae8af=_0x36f548()[_0x5759bb('0x2171')](_0x4a7785['rows'],function(_0xb8124b){const _0x55b82e=_0x5759bb;return _0x36f548()[_0x55b82e('0x1ad4')](_0x3cbe61[_0x55b82e('0x2094')],{'id':_0xb8124b[_0x55b82e('0x15a5')]});});let _0x2e50b9=null;_0x3cbe61[_0x5759bb('0xf08')]&&(_0x2e50b9=_0x36f548()['find'](_0x3cbe61[_0x5759bb('0x2094')],{'name':_0x3cbe61[_0x5759bb('0xf08')][_0x5759bb('0x1961')]}));if(_0x2e50b9&&!_0x36f548()[_0x5759bb('0x1cb3')](_0xaae8af,['id',_0x2e50b9['id']])){const _0x36047d=_0x36f548()[_0x5759bb('0x1ad4')](_0x3cbe61[_0x5759bb('0x2094')],{'id':_0x2e50b9['id']});_0x36047d[_0x5759bb('0x254a')]=![],_0xaae8af['push'](_0x36047d);}_0x3cbe61[_0x5759bb('0x2094')]=_0xaae8af;});}})[_0x5387d9('0x151d')](function(_0x4e7794){const _0x28be27=_0x5387d9;_0x15ab0a[_0x28be27('0x255')]({'title':_0x4e7794[_0x28be27('0xff9')]?_0x28be27('0x574')+_0x4e7794[_0x28be27('0xff9')]+'\x20-\x20'+_0x4e7794['statusText']:_0x28be27('0x2887'),'msg':_0x4e7794[_0x28be27('0x4e8')]?JSON[_0x28be27('0x3e')](_0x4e7794['data']):_0x4e7794['toString']()});}),_0x256a40[_0x5387d9('0x4ee')](_0x5387d9('0xf45'))?_0x5e5805[_0x5387d9('0x264e')][_0x5387d9('0xbaa')]({'fields':_0x5387d9('0x721'),'sort':'name'})[_0x5387d9('0x1549')][_0x5387d9('0x11bf')](function(_0x521e32){const _0x52771d=_0x5387d9;_0x3cbe61[_0x52771d('0x1b24')]=_0x521e32[_0x52771d('0x19b2')]||[];})[_0x5387d9('0x151d')](function(_0x555eec){const _0x5a7c86=_0x5387d9;_0x15ab0a['error']({'title':_0x555eec['status']?_0x5a7c86('0x574')+_0x555eec[_0x5a7c86('0xff9')]+'\x20-\x20'+_0x555eec[_0x5a7c86('0x212f')]:'SYSTEM:GET_TRUNKS','msg':_0x555eec[_0x5a7c86('0x4e8')]?JSON[_0x5a7c86('0x3e')](_0x555eec['data']):_0x555eec[_0x5a7c86('0xaab')]()});}):_0x5e5805[_0x5387d9('0x264e')][_0x5387d9('0xbaa')]({'fields':'id,name','sort':'name'})[_0x5387d9('0x1549')][_0x5387d9('0x11bf')](function(_0xd3c83f){const _0x5db51c=_0x5387d9;_0x3cbe61[_0x5db51c('0x1b24')]=_0xd3c83f[_0x5db51c('0x19b2')]||[];})[_0x5387d9('0x11bf')](function(){const _0xf7983=_0x5387d9;return _0x5e5805[_0xf7983('0x1d63')]['get']({'userProfileId':_0x3cbe61[_0xf7983('0x32a')][_0xf7983('0x781')],'sectionId':0x3f3})[_0xf7983('0x1549')];})[_0x5387d9('0x11bf')](function(_0x1c18d6){const _0x51ce9b=_0x5387d9,_0x58b173=_0x1c18d6&&_0x1c18d6[_0x51ce9b('0x19b2')]?_0x1c18d6[_0x51ce9b('0x19b2')][0x0]:null;if(!_0x58b173){const _0x5e2045=[];let _0x3defe0=null;_0x3cbe61[_0x51ce9b('0xf08')]&&(_0x3defe0=_0x36f548()['find'](_0x3cbe61['trunks'],{'id':Number(_0x3cbe61[_0x51ce9b('0xf08')]['TrunkId'])}));for(let _0x488c73=0x0;_0x488c73<_0x3cbe61['trunks']['length'];_0x488c73++){_0x3defe0&&_0x3cbe61[_0x51ce9b('0x1b24')][_0x488c73]['id']===_0x3defe0['id']&&(_0x3cbe61[_0x51ce9b('0x1b24')][_0x488c73]['canSelect']=![],_0x5e2045[_0x51ce9b('0x105d')](_0x3cbe61['trunks'][_0x488c73]));}_0x3cbe61['trunks']=_0x5e2045;}else{if(!_0x58b173['autoAssociation'])return _0x5e5805[_0x51ce9b('0x26d1')][_0x51ce9b('0xbaa')]({'sectionId':_0x58b173['id']})[_0x51ce9b('0x1549')][_0x51ce9b('0x11bf')](function(_0x4adb30){const _0x2cb09c=_0x51ce9b,_0x3a978c=_0x36f548()[_0x2cb09c('0x2171')](_0x4adb30['rows'],function(_0xbaf06c){const _0x28dee5=_0x2cb09c;return _0x36f548()[_0x28dee5('0x1ad4')](_0x3cbe61[_0x28dee5('0x1b24')],{'id':_0xbaf06c['resourceId']});});let _0x46f4a8=null;_0x3cbe61[_0x2cb09c('0xf08')]&&(_0x46f4a8=_0x36f548()[_0x2cb09c('0x1ad4')](_0x3cbe61['trunks'],{'id':Number(_0x3cbe61['queueCampaign']['TrunkId'])}));if(_0x46f4a8&&!_0x36f548()[_0x2cb09c('0x1cb3')](_0x3a978c,['id',_0x46f4a8['id']])){const _0x5add02=_0x36f548()[_0x2cb09c('0x1ad4')](_0x3cbe61[_0x2cb09c('0x1b24')],{'id':_0x46f4a8['id']});_0x5add02[_0x2cb09c('0x254a')]=![],_0x3a978c[_0x2cb09c('0x105d')](_0x5add02);}_0x3cbe61[_0x2cb09c('0x1b24')]=_0x3a978c;});}})[_0x5387d9('0x151d')](function(_0x4d177d){const _0x3c502b=_0x5387d9;_0x15ab0a[_0x3c502b('0x255')]({'title':_0x4d177d[_0x3c502b('0xff9')]?'API:'+_0x4d177d[_0x3c502b('0xff9')]+_0x3c502b('0xb0b')+_0x4d177d[_0x3c502b('0x212f')]:_0x3c502b('0xf39'),'msg':_0x4d177d['data']?JSON[_0x3c502b('0x3e')](_0x4d177d[_0x3c502b('0x4e8')]):_0x4d177d[_0x3c502b('0xaab')]()});}),_0x256a40[_0x5387d9('0x4ee')]('admin')?_0x5e5805[_0x5387d9('0x1671')][_0x5387d9('0xbaa')]({'fields':_0x5387d9('0x721'),'sort':'name'})[_0x5387d9('0x1549')][_0x5387d9('0x11bf')](function(_0x21e140){const _0x2e9e09=_0x5387d9;_0x3cbe61['projects']=_0x21e140[_0x2e9e09('0x19b2')]||[];})['catch'](function(_0x489fa3){const _0x464f15=_0x5387d9;_0x15ab0a[_0x464f15('0x255')]({'title':_0x489fa3['status']?_0x464f15('0x574')+_0x489fa3[_0x464f15('0xff9')]+_0x464f15('0xb0b')+_0x489fa3[_0x464f15('0x212f')]:_0x464f15('0x21e4'),'msg':_0x489fa3[_0x464f15('0x4e8')]?JSON[_0x464f15('0x3e')](_0x489fa3[_0x464f15('0x4e8')]):_0x489fa3[_0x464f15('0xaab')]()});}):_0x5e5805['squareProject'][_0x5387d9('0xbaa')]({'fields':_0x5387d9('0x721'),'sort':_0x5387d9('0x1909')})['$promise'][_0x5387d9('0x11bf')](function(_0x24df6a){_0x3cbe61['projects']=_0x24df6a['rows']||[];})['then'](function(){const _0x2260c8=_0x5387d9;return _0x5e5805[_0x2260c8('0x1d63')][_0x2260c8('0xbaa')]({'userProfileId':_0x3cbe61[_0x2260c8('0x32a')][_0x2260c8('0x781')],'sectionId':0x44f})[_0x2260c8('0x1549')];})[_0x5387d9('0x11bf')](function(_0x1b3efd){const _0x319575=_0x5387d9,_0x44742d=_0x1b3efd&&_0x1b3efd['rows']?_0x1b3efd[_0x319575('0x19b2')][0x0]:null;if(!_0x44742d){const _0x15e198=[];let _0x2b8b09=null;_0x3cbe61[_0x319575('0xf08')]&&(_0x2b8b09=_0x36f548()['find'](_0x3cbe61[_0x319575('0xa62')],{'name':_0x3cbe61[_0x319575('0xf08')]['dialQueueProject']}));for(let _0x143f4c=0x0;_0x143f4c<_0x3cbe61[_0x319575('0xa62')][_0x319575('0x1e22')];_0x143f4c++){_0x2b8b09&&_0x3cbe61[_0x319575('0xa62')][_0x143f4c]['id']===_0x2b8b09['id']&&(_0x3cbe61[_0x319575('0xa62')][_0x143f4c][_0x319575('0x254a')]=![],_0x15e198['push'](_0x3cbe61[_0x319575('0xa62')][_0x143f4c]));}_0x3cbe61[_0x319575('0xa62')]=_0x15e198;}else{if(!_0x44742d[_0x319575('0xf11')])return _0x5e5805['userProfileResource'][_0x319575('0xbaa')]({'sectionId':_0x44742d['id']})[_0x319575('0x1549')]['then'](function(_0x4f7a34){const _0x42eaa8=_0x319575,_0x437ff7=_0x36f548()[_0x42eaa8('0x2171')](_0x4f7a34[_0x42eaa8('0x19b2')],function(_0x1987d7){const _0x33c1d2=_0x42eaa8;return _0x36f548()['find'](_0x3cbe61['projects'],{'id':_0x1987d7[_0x33c1d2('0x15a5')]});});let _0xd23bc6=null;_0x3cbe61[_0x42eaa8('0xf08')]&&(_0xd23bc6=_0x36f548()[_0x42eaa8('0x1ad4')](_0x3cbe61[_0x42eaa8('0xa62')],{'name':_0x3cbe61[_0x42eaa8('0xf08')][_0x42eaa8('0x18b2')]}));if(_0xd23bc6&&!_0x36f548()['some'](_0x437ff7,['id',_0xd23bc6['id']])){const _0x5eb749=_0x36f548()[_0x42eaa8('0x1ad4')](_0x3cbe61[_0x42eaa8('0xa62')],{'id':_0xd23bc6['id']});_0x5eb749[_0x42eaa8('0x254a')]=![],_0x437ff7['push'](_0x5eb749);}_0x3cbe61[_0x42eaa8('0xa62')]=_0x437ff7;});}})[_0x5387d9('0x151d')](function(_0x4fe405){const _0x5bf51e=_0x5387d9;_0x15ab0a[_0x5bf51e('0x255')]({'title':_0x4fe405[_0x5bf51e('0xff9')]?'API:'+_0x4fe405[_0x5bf51e('0xff9')]+_0x5bf51e('0xb0b')+_0x4fe405[_0x5bf51e('0x212f')]:_0x5bf51e('0x1b27'),'msg':_0x4fe405[_0x5bf51e('0x4e8')]?JSON['stringify'](_0x4fe405[_0x5bf51e('0x4e8')]):_0x4fe405['toString']()});}),_0x256a40['hasRole'](_0x5387d9('0xf45'))?_0x5e5805[_0x5387d9('0x507')]['get']({'fields':_0x5387d9('0x721'),'sort':_0x5387d9('0x1909'),'IntervalId':_0x5387d9('0xb5f')})[_0x5387d9('0x1549')][_0x5387d9('0x11bf')](function(_0x1f8870){const _0x37fa06=_0x5387d9;_0x3cbe61[_0x37fa06('0x507')]=_0x1f8870[_0x37fa06('0x19b2')]||[];})['catch'](function(_0x56d776){const _0x5f1a4c=_0x5387d9;_0x15ab0a[_0x5f1a4c('0x255')]({'title':_0x56d776[_0x5f1a4c('0xff9')]?_0x5f1a4c('0x574')+_0x56d776[_0x5f1a4c('0xff9')]+'\x20-\x20'+_0x56d776[_0x5f1a4c('0x212f')]:_0x5f1a4c('0x135a'),'msg':_0x56d776[_0x5f1a4c('0x4e8')]?JSON[_0x5f1a4c('0x3e')](_0x56d776[_0x5f1a4c('0x4e8')]):_0x56d776['toString']()});}):_0x5e5805[_0x5387d9('0x507')]['get']({'fields':'id,name','sort':_0x5387d9('0x1909'),'IntervalId':_0x5387d9('0xb5f')})[_0x5387d9('0x1549')]['then'](function(_0x18786d){const _0x52e823=_0x5387d9;_0x3cbe61[_0x52e823('0x507')]=_0x18786d[_0x52e823('0x19b2')]||[];})[_0x5387d9('0x11bf')](function(){const _0x306da1=_0x5387d9;return _0x5e5805[_0x306da1('0x1d63')][_0x306da1('0xbaa')]({'userProfileId':_0x3cbe61[_0x306da1('0x32a')][_0x306da1('0x781')],'sectionId':0x3ec})[_0x306da1('0x1549')];})[_0x5387d9('0x11bf')](function(_0x1c92a9){const _0x343b14=_0x5387d9,_0xffc77a=_0x1c92a9&&_0x1c92a9['rows']?_0x1c92a9[_0x343b14('0x19b2')][0x0]:null;if(!_0xffc77a){const _0x1633d7=[];let _0x1cb5cb=null;_0x3cbe61[_0x343b14('0xf08')]&&(_0x1cb5cb=_0x36f548()[_0x343b14('0x1ad4')](_0x3cbe61['interval'],{'id':Number(_0x3cbe61['queueCampaign'][_0x343b14('0x6b4')])}));for(let _0x463a49=0x0;_0x463a49<_0x3cbe61[_0x343b14('0x507')][_0x343b14('0x1e22')];_0x463a49++){_0x1cb5cb&&_0x3cbe61[_0x343b14('0x507')][_0x463a49]['id']===_0x1cb5cb['id']&&(_0x3cbe61[_0x343b14('0x507')][_0x463a49]['canSelect']=![],_0x1633d7[_0x343b14('0x105d')](_0x3cbe61[_0x343b14('0x507')][_0x463a49]));}_0x3cbe61[_0x343b14('0x507')]=_0x1633d7;}else{if(!_0xffc77a[_0x343b14('0xf11')])return _0x5e5805[_0x343b14('0x26d1')][_0x343b14('0xbaa')]({'sectionId':_0xffc77a['id']})[_0x343b14('0x1549')][_0x343b14('0x11bf')](function(_0x291cc0){const _0x20a611=_0x343b14,_0x594a71=_0x36f548()['map'](_0x291cc0[_0x20a611('0x19b2')],function(_0x1edb00){const _0x595f93=_0x20a611;return _0x36f548()[_0x595f93('0x1ad4')](_0x3cbe61['interval'],{'id':_0x1edb00[_0x595f93('0x15a5')]});});let _0xe42184=null;_0x3cbe61[_0x20a611('0xf08')]&&(_0xe42184=_0x36f548()[_0x20a611('0x1ad4')](_0x3cbe61[_0x20a611('0x507')],{'id':Number(_0x3cbe61['queueCampaign'][_0x20a611('0x6b4')])}));if(_0xe42184&&!_0x36f548()['some'](_0x594a71,['id',_0xe42184['id']])){const _0x149ffb=_0x36f548()[_0x20a611('0x1ad4')](_0x3cbe61['interval'],{'id':_0xe42184['id']});_0x149ffb[_0x20a611('0x254a')]=![],_0x594a71['push'](_0x149ffb);}_0x3cbe61[_0x20a611('0x507')]=_0x594a71;});}})[_0x5387d9('0x151d')](function(_0x3aa84f){const _0x5090a7=_0x5387d9;_0x15ab0a[_0x5090a7('0x255')]({'title':_0x3aa84f[_0x5090a7('0xff9')]?_0x5090a7('0x574')+_0x3aa84f[_0x5090a7('0xff9')]+_0x5090a7('0xb0b')+_0x3aa84f['statusText']:_0x5090a7('0xa8b'),'msg':_0x3aa84f[_0x5090a7('0x4e8')]?JSON[_0x5090a7('0x3e')](_0x3aa84f[_0x5090a7('0x4e8')]):_0x3aa84f['toString']()});}),_0x256a40[_0x5387d9('0x4ee')]('admin')?_0x5e5805[_0x5387d9('0x92a')][_0x5387d9('0xbaa')]({'fields':_0x5387d9('0xaae'),'sort':_0x5387d9('0x1909'),'nolimit':_0x5387d9('0x204c')})[_0x5387d9('0x1549')]['then'](function(_0x280921){const _0x4cd6e0=_0x5387d9;_0x3cbe61[_0x4cd6e0('0x12f2')]=_0x280921[_0x4cd6e0('0x19b2')]||[];})[_0x5387d9('0x151d')](function(_0x4fdfac){const _0x560dde=_0x5387d9;_0x15ab0a['error']({'title':_0x4fdfac[_0x560dde('0xff9')]?'API:'+_0x4fdfac[_0x560dde('0xff9')]+'\x20-\x20'+_0x4fdfac['statusText']:_0x560dde('0x1306'),'msg':_0x4fdfac['data']?JSON[_0x560dde('0x3e')](_0x4fdfac[_0x560dde('0x4e8')]):_0x4fdfac[_0x560dde('0xaab')]()});}):_0x5e5805[_0x5387d9('0x92a')][_0x5387d9('0xbaa')]({'fields':'name,id','sort':'name','nolimit':_0x5387d9('0x204c')})[_0x5387d9('0x1549')]['then'](function(_0x5197e0){_0x3cbe61['pauses']=_0x5197e0['rows']||[];})['then'](function(){const _0x5aec87=_0x5387d9;return _0x5e5805[_0x5aec87('0x1d63')][_0x5aec87('0xbaa')]({'userProfileId':_0x3cbe61[_0x5aec87('0x32a')][_0x5aec87('0x781')],'sectionId':0x3ed})['$promise'];})['then'](function(_0xb15ccd){const _0x11ae2d=_0x5387d9,_0x4d4e59=_0xb15ccd&&_0xb15ccd[_0x11ae2d('0x19b2')]?_0xb15ccd[_0x11ae2d('0x19b2')][0x0]:null;if(!_0x4d4e59)_0x3cbe61['pauses']=[];else{if(!_0x4d4e59[_0x11ae2d('0xf11')])return _0x5e5805[_0x11ae2d('0x26d1')][_0x11ae2d('0xbaa')]({'sectionId':_0x4d4e59['id']})[_0x11ae2d('0x1549')]['then'](function(_0x1fe29a){const _0x28c961=_0x11ae2d,_0x3db57f=_0x36f548()['map'](_0x1fe29a[_0x28c961('0x19b2')],function(_0xde2caf){const _0x53c74d=_0x28c961;return _0x36f548()[_0x53c74d('0x1ad4')](_0x3cbe61['pauses'],{'id':_0xde2caf[_0x53c74d('0x15a5')]});});_0x3cbe61['pauses'][_0x28c961('0x1f88')](function(_0x2985e1){const _0x5204c3=_0x28c961;!_0x36f548()[_0x5204c3('0x1cb3')](_0x3db57f,['id',_0x2985e1['id']])&&(_0x2985e1['canSelect']=![]),_0x3db57f[_0x5204c3('0x105d')](_0x2985e1);}),_0x3cbe61[_0x28c961('0x12f2')]=_0x3db57f;});}})[_0x5387d9('0x151d')](function(_0x35655b){const _0x5cbcd4=_0x5387d9;_0x15ab0a[_0x5cbcd4('0x255')]({'title':_0x35655b[_0x5cbcd4('0xff9')]?_0x5cbcd4('0x574')+_0x35655b[_0x5cbcd4('0xff9')]+_0x5cbcd4('0xb0b')+_0x35655b['statusText']:_0x5cbcd4('0x1c82'),'msg':_0x35655b[_0x5cbcd4('0x4e8')]?JSON[_0x5cbcd4('0x3e')](_0x35655b[_0x5cbcd4('0x4e8')]):_0x35655b['toString']()});});function _0x1eaf91(_0x82edc6,_0x14bdad){const _0x391e17=_0x5387d9;_0x48ac12[_0x391e17('0xb9')]({'controller':_0x391e17('0x18a4'),'controllerAs':'vm','templateUrl':_0x52e3f6,'parent':angular[_0x391e17('0x1e73')](_0x120165[_0x391e17('0x1d2')]),'targetEvent':_0x14bdad,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x82edc6,'queueCampaigns':_0x3cbe61[_0x391e17('0x8bb')]?_0x3cbe61['queueCampaigns']['rows']:[],'crudPermissions':_0x3cbe61[_0x391e17('0xb25')]}});}function _0x30c6b2(_0x4edb25,_0x2464ce){const _0xbf7fbd=_0x5387d9;_0x48ac12[_0xbf7fbd('0xb9')]({'controller':'QueueCampaignlistaddController','controllerAs':'vm','templateUrl':_0x313aa3,'parent':angular[_0xbf7fbd('0x1e73')](_0x120165['body']),'targetEvent':_0x2464ce,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x4edb25,'queueCampaigns':_0x3cbe61['queueCampaigns']?_0x3cbe61[_0xbf7fbd('0x8bb')]['rows']:[],'crudPermissions':_0x3cbe61[_0xbf7fbd('0xb25')]}});}function _0x2a4f24(_0x1aca32,_0x5972a5){const _0x55059d=_0x5387d9;_0x48ac12[_0x55059d('0xb9')]({'controller':_0x55059d('0x241c'),'controllerAs':'vm','templateUrl':_0x506dc5,'parent':angular['element'](_0x120165[_0x55059d('0x1d2')]),'targetEvent':_0x5972a5,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x1aca32,'queueCampaigns':_0x3cbe61[_0x55059d('0x8bb')]?_0x3cbe61[_0x55059d('0x8bb')]['rows']:[],'crudPermissions':_0x3cbe61[_0x55059d('0xb25')]}});}function _0x3de923(_0x5b5bba,_0x58e4c4){const _0x5d6444=_0x5387d9;_0x48ac12[_0x5d6444('0xb9')]({'controller':_0x5d6444('0x141d'),'controllerAs':'vm','templateUrl':_0x283da6,'parent':angular['element'](_0x120165[_0x5d6444('0x1d2')]),'targetEvent':_0x58e4c4,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x5b5bba,'queueCampaigns':_0x3cbe61['queueCampaigns']?_0x3cbe61[_0x5d6444('0x8bb')][_0x5d6444('0x19b2')]:[],'crudPermissions':_0x3cbe61[_0x5d6444('0xb25')]}});}function _0x4f6ec8(_0x79066f,_0x1152d4){const _0x51bfe7=_0x5387d9;_0x48ac12['show']({'controller':_0x51bfe7('0x188e'),'controllerAs':'vm','templateUrl':_0xefff11,'parent':angular[_0x51bfe7('0x1e73')](_0x120165['body']),'targetEvent':_0x1152d4,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x79066f,'queueCampaigns':_0x3cbe61[_0x51bfe7('0x8bb')]?_0x3cbe61[_0x51bfe7('0x8bb')][_0x51bfe7('0x19b2')]:[],'crudPermissions':_0x3cbe61[_0x51bfe7('0xb25')],'realtime':![]}});}function _0x343c04(_0x1d5049,_0x356531){const _0x13f033=_0x5387d9,_0x2b03fc=_0x356531['id'];_0x5e5805['voiceQueue'][_0x13f033('0x293')]({'id':_0x1d5049,'ids':_0x2b03fc})['$promise'][_0x13f033('0x11bf')](function(){const _0x1e66b1=_0x13f033;return _0x5e5805[_0x1e66b1('0x1043')][_0x1e66b1('0x26d8')]({'id':_0x1d5049,'ids':_0x2b03fc,'dialCheckDuplicateType':_0x1e66b1('0xf95')})[_0x1e66b1('0x1549')];})[_0x13f033('0x11bf')](function(){const _0x2c9c8e=_0x13f033;_0x15ab0a[_0x2c9c8e('0x2693')]({'title':_0x2c9c8e('0x1290'),'msg':_0x2c9c8e('0x6d1')+_0x356531[_0x2c9c8e('0x1909')]+_0x2c9c8e('0xa8e')});})['catch'](function(_0x47f18e){const _0x3a4cc1=_0x13f033;_0x15ab0a[_0x3a4cc1('0x255')]({'title':_0x47f18e[_0x3a4cc1('0xff9')]?'API:'+_0x47f18e[_0x3a4cc1('0xff9')]+_0x3a4cc1('0xb0b')+_0x47f18e[_0x3a4cc1('0x212f')]:_0x3a4cc1('0xe3b'),'msg':_0x47f18e['status']?JSON['stringify'](_0x47f18e[_0x3a4cc1('0x4e8')]):_0x47f18e['toString']()});});}function _0x51e1ab(_0x1b6c06,_0x341dbd){const _0x363f1f=_0x5387d9;_0x5e5805[_0x363f1f('0x1043')][_0x363f1f('0x1161')]({'id':_0x1b6c06['id'],'fields':'id,name','nolimit':!![]})[_0x363f1f('0x1549')][_0x363f1f('0x11bf')](function(_0x1ca925){const _0x9cb569=_0x363f1f;if(_0x36f548()[_0x9cb569('0x1a80')](_0x1ca925[_0x9cb569('0x19b2')])||_0x36f548()['isEmpty'](_0x1ca925[_0x9cb569('0x19b2')]))_0x15ab0a[_0x9cb569('0x870')]({'title':_0x9cb569('0x1951')});else{if(_0x1ca925[_0x9cb569('0x19b2')][_0x9cb569('0x1e22')]===0x1){const _0x11fd3a=_0x48ac12[_0x9cb569('0x132b')]()[_0x9cb569('0x134b')]('Are\x20you\x20sure\x20want\x20to\x20reset\x20the\x20list\x20'+_0x1ca925[_0x9cb569('0x19b2')][0x0][_0x9cb569('0x1909')]+'\x20?')[_0x9cb569('0x1d03')](_0x9cb569('0x2061')+_0x1ca925[_0x9cb569('0x19b2')][0x0][_0x9cb569('0x1909')]+''+_0x9cb569('0x170b'))[_0x9cb569('0xb2e')]('Reset\x20List')['targetEvent'](_0x341dbd)['ok']('OK')[_0x9cb569('0x26c9')]('CANCEL');_0x48ac12['show'](_0x11fd3a)['then'](function(){const _0x3db560=_0x9cb569;_0x343c04(_0x3cbe61['queueCampaign']['id'],_0x1ca925[_0x3db560('0x19b2')][0x0]);});}else _0x48ac12['show']({'controller':_0x9cb569('0x190e'),'controllerAs':'vm','templateUrl':_0x2681c3,'parent':angular[_0x9cb569('0x1e73')](_0x120165[_0x9cb569('0x1d2')]),'targetEvent':_0x341dbd,'clickOutsideToClose':![],'locals':{'queueCampaign':_0x1b6c06,'listsCampaign':_0x1ca925?_0x1ca925[_0x9cb569('0x19b2')]:[]}});}})[_0x363f1f('0x151d')](function(_0x5bf6a6){const _0x505d65=_0x363f1f;_0x15ab0a[_0x505d65('0x255')]({'title':_0x5bf6a6[_0x505d65('0xff9')]?'API:'+_0x5bf6a6[_0x505d65('0xff9')]+_0x505d65('0xb0b')+_0x5bf6a6['statusText']:_0x505d65('0x1427'),'msg':_0x5bf6a6[_0x505d65('0xff9')]?JSON[_0x505d65('0x3e')](_0x5bf6a6[_0x505d65('0x4e8')]):_0x5bf6a6['toString']()});});}function _0x10ec6e(){const _0x235bb2=_0x5387d9;if(_0x256a40[_0x235bb2('0x4ee')](_0x235bb2('0xf45')))_0x3ac469['go'](_0x235bb2('0x1fd4'),{});else return _0x5e5805[_0x235bb2('0x1d63')][_0x235bb2('0xbaa')]({'userProfileId':_0x256a40[_0x235bb2('0x2428')]()[_0x235bb2('0x781')],'sectionId':0x5e6})[_0x235bb2('0x1549')][_0x235bb2('0x11bf')](function(_0x3a3f9e){const _0x2bdfb9=_0x235bb2,_0x133259=_0x3a3f9e&&_0x3a3f9e[_0x2bdfb9('0x19b2')]?_0x3a3f9e[_0x2bdfb9('0x19b2')][0x0]:null;_0x133259&&_0x133259[_0x2bdfb9('0x1f0a')]?_0x3ac469['go'](_0x2bdfb9('0x1fd4'),{}):_0x15ab0a[_0x2bdfb9('0x870')]({'title':_0x45305f['instant'](_0x2bdfb9('0xbff')),'msg':_0x45305f[_0x2bdfb9('0x10c2')](_0x2bdfb9('0x10d1'))});})['catch'](function(_0x53c790){const _0x20ffe8=_0x235bb2;_0x15ab0a[_0x20ffe8('0x255')]({'title':_0x53c790[_0x20ffe8('0xff9')]?'API:'+_0x53c790['status']+_0x20ffe8('0xb0b')+_0x53c790[_0x20ffe8('0x212f')]:_0x20ffe8('0x1011'),'msg':_0x53c790[_0x20ffe8('0xff9')]?JSON[_0x20ffe8('0x3e')](_0x53c790[_0x20ffe8('0x4e8')]):_0x53c790[_0x20ffe8('0xaab')]()});});}function _0x23c8b8(){const _0x5945fa=_0x5387d9;_0x3ac469['go'](_0x5945fa('0x269d'),{},{'reload':_0x5945fa('0x269d')});}function _0x1d7221(){const _0x4c3321=_0x5387d9;_0x5e5805[_0x4c3321('0x1043')][_0x4c3321('0x5ab')]({'id':_0x3cbe61[_0x4c3321('0xf08')]['id']},_0x3cbe61['queueCampaign'])[_0x4c3321('0x1549')][_0x4c3321('0x11bf')](function(){const _0x361aba=_0x4c3321;_0x15ab0a[_0x361aba('0x2693')]({'title':_0x361aba('0xe09'),'msg':_0x3cbe61[_0x361aba('0xf08')][_0x361aba('0x1909')]?_0x3cbe61[_0x361aba('0xf08')][_0x361aba('0x1909')]+'\x20has\x20been\x20updated!':''});})[_0x4c3321('0x151d')](function(_0xd71fbc){const _0x36b527=_0x4c3321;_0x15ab0a['error']({'title':_0xd71fbc[_0x36b527('0xff9')]?_0x36b527('0x574')+_0xd71fbc[_0x36b527('0xff9')]+_0x36b527('0xb0b')+_0xd71fbc['statusText']:'SYSTEM:GETvoiceQueue','msg':_0xd71fbc[_0x36b527('0x4e8')]?JSON[_0x36b527('0x3e')](_0xd71fbc[_0x36b527('0x4e8')]):_0xd71fbc[_0x36b527('0xaab')]()});});}}const _0xc328e=_0xa3fe98;_0x11263c['$inject']=[_0x21d0f5('0x1b80'),_0x21d0f5('0x2143'),_0x21d0f5('0xcbc'),_0x21d0f5('0x18fe'),_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),'$timeout',_0x21d0f5('0xb6b'),_0x21d0f5('0x8bb'),_0x21d0f5('0x25bc'),'userProfileSection',_0x21d0f5('0x12a5'),_0x21d0f5('0xda9'),_0x21d0f5('0x142d'),'Auth',_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1')];function _0x11263c(_0x4e2afb,_0x3ccaf0,_0x5785e6,_0x59fa55,_0x1ae232,_0x1e0f95,_0x5cd5fd,_0xe739d5,_0x451a99,_0x2091fd,_0x5345bb,_0x5252ab,_0xf0dfde,_0x58c590,_0x48faa3,_0x501f14,_0xa79458){const _0x2e059b=_0x21d0f5,_0x9474b7=this;_0x9474b7[_0x2e059b('0x17ff')]=_0x501f14,_0x9474b7[_0x2e059b('0x23e1')]=_0xa79458,_0x9474b7[_0x2e059b('0x32a')]=_0x48faa3[_0x2e059b('0x2428')](),_0x9474b7[_0x2e059b('0x8bb')]=_0x451a99||{'count':0x0,'rows':[]},_0x9474b7[_0x2e059b('0x25bc')]=_0x2091fd,_0x9474b7[_0x2e059b('0x1d63')]=_0x5345bb&&_0x5345bb[_0x2e059b('0x27d2')]==0x1?_0x5345bb[_0x2e059b('0x19b2')][0x0]:null,_0x9474b7[_0x2e059b('0xb25')]=_0x48faa3[_0x2e059b('0x1530')](_0x9474b7[_0x2e059b('0x1d63')]?_0x9474b7[_0x2e059b('0x1d63')]['crudPermissions']:null),_0x9474b7[_0x2e059b('0x13e8')]=_0x2e059b('0x8bb'),_0x9474b7[_0x2e059b('0x724')]='',_0x9474b7[_0x2e059b('0xe3c')]=null,_0x9474b7[_0x2e059b('0xa09')]=[],_0x9474b7['query']={'fields':_0x2e059b('0x1f9e'),'type':'outbound','sort':'-updatedAt','channel':'voice','limit':0xa,'page':0x1},_0x9474b7['arraydialCheckDuplicateType']=_0x36f548()[_0x2e059b('0x2130')]([{'option':_0x2e059b('0x14b0'),'value':_0x2e059b('0x538')},{'option':_0x2e059b('0xb7d'),'value':_0x2e059b('0x1d91')},{'option':_0x2e059b('0x11e8'),'value':_0x2e059b('0x120b')}],function(_0x2b598d){const _0x1e417b=_0x2e059b;return _0x36f548()[_0x1e417b('0x814')](_0x2b598d[_0x1e417b('0x10cc')],new RegExp('\x27','g'),'');}),_0x9474b7[_0x2e059b('0xcb5')]=_0x36f548()['keyBy']([{'option':_0x2e059b('0xaa2'),'value':_0x2e059b('0x1651')},{'option':'No','value':_0x2e059b('0x19bb')}],function(_0x49de6f){const _0xb46b1a=_0x2e059b;return _0x36f548()['replace'](_0x49de6f[_0xb46b1a('0x10cc')],new RegExp('\x27','g'),'');}),_0x9474b7[_0x2e059b('0x232c')]=_0x36f548()['keyBy']([{'option':'Yes','value':_0x2e059b('0x1d9')},{'option':'No','value':'\x27no\x27'}],function(_0x5cb6ca){const _0x32be7f=_0x2e059b;return _0x36f548()['replace'](_0x5cb6ca[_0x32be7f('0x10cc')],new RegExp('\x27','g'),'');}),_0x9474b7[_0x2e059b('0x13d4')]=_0x36f548()[_0x2e059b('0x2130')]([{'option':_0x2e059b('0xaa2'),'value':_0x2e059b('0x1d9')},{'option':'No','value':_0x2e059b('0x19bb')}],function(_0x4b78f9){const _0x508f1d=_0x2e059b;return _0x36f548()[_0x508f1d('0x814')](_0x4b78f9['value'],new RegExp('\x27','g'),'');}),_0x9474b7[_0x2e059b('0xfa1')]=_0x36f548()[_0x2e059b('0x2130')]([{'option':_0x2e059b('0x110c'),'value':'\x27\x27'},{'option':_0x2e059b('0x519'),'value':_0x2e059b('0x20ce')},{'option':_0x2e059b('0x2311'),'value':_0x2e059b('0xc96')},{'option':_0x2e059b('0x3da'),'value':_0x2e059b('0x5af')}],function(_0xbdb23b){const _0x4ec7ba=_0x2e059b;return _0x36f548()[_0x4ec7ba('0x814')](_0xbdb23b['value'],new RegExp('\x27','g'),'');}),_0x9474b7['arraysetinterfacevar']=_0x36f548()[_0x2e059b('0x2130')]([{'option':_0x2e059b('0xaa2'),'value':_0x2e059b('0x1d9')},{'option':'No','value':_0x2e059b('0x19bb')}],function(_0x150f0b){const _0xcecae5=_0x2e059b;return _0x36f548()[_0xcecae5('0x814')](_0x150f0b[_0xcecae5('0x10cc')],new RegExp('\x27','g'),'');}),_0x9474b7[_0x2e059b('0x147f')]=_0x36f548()[_0x2e059b('0x2130')]([{'option':_0x2e059b('0xaa2'),'value':'\x27yes\x27'},{'option':'No','value':'\x27no\x27'}],function(_0x59b1b9){const _0x1ae6dc=_0x2e059b;return _0x36f548()[_0x1ae6dc('0x814')](_0x59b1b9[_0x1ae6dc('0x10cc')],new RegExp('\x27','g'),'');}),_0x9474b7['arraysetqueueentryvar']=_0x36f548()[_0x2e059b('0x2130')]([{'option':_0x2e059b('0xaa2'),'value':_0x2e059b('0x1d9')},{'option':'No','value':_0x2e059b('0x19bb')}],function(_0x29f1f5){const _0x2a1f35=_0x2e059b;return _0x36f548()[_0x2a1f35('0x814')](_0x29f1f5['value'],new RegExp('\x27','g'),'');}),_0x9474b7[_0x2e059b('0x49f')]=_0x36f548()[_0x2e059b('0x2130')]([{'option':_0x2e059b('0x1b11'),'value':'\x27DESC\x27'},{'option':_0x2e059b('0x170a'),'value':_0x2e059b('0x156d')}],function(_0xe23c9c){const _0x1f124f=_0x2e059b;return _0x36f548()[_0x1f124f('0x814')](_0xe23c9c[_0x1f124f('0x10cc')],new RegExp('\x27','g'),'');}),_0x9474b7['arraydialMethod']=_0x36f548()[_0x2e059b('0x2130')]([{'option':_0x2e059b('0xdd2'),'value':'\x27progressive\x27'},{'option':_0x2e059b('0xfd7'),'value':_0x2e059b('0x1374')},{'option':_0x2e059b('0x1681'),'value':_0x2e059b('0x24f8')},{'option':_0x2e059b('0x11df'),'value':_0x2e059b('0x1d25')},{'option':_0x2e059b('0xe'),'value':_0x2e059b('0xa')}],function(_0x45479f){return _0x36f548()['replace'](_0x45479f['value'],new RegExp('\x27','g'),'');}),_0x9474b7[_0x2e059b('0x4fa')]=_0x36f548()['keyBy']([{'option':_0x2e059b('0xa1e'),'value':'\x27agentBusyFactor\x27'},{'option':_0x2e059b('0x1908'),'value':'\x27dropRate\x27'}],function(_0x311a76){const _0x14b9af=_0x2e059b;return _0x36f548()[_0x14b9af('0x814')](_0x311a76[_0x14b9af('0x10cc')],new RegExp('\x27','g'),'');}),_0x9474b7['arraystrategy']=_0x36f548()[_0x2e059b('0x2130')]([{'option':_0x2e059b('0x1b02'),'value':_0x2e059b('0x166d')},{'option':_0x2e059b('0x339'),'value':_0x2e059b('0xfe7'),'ngIf':'vm.queueCampaign.dialMethod\x20===\x20\x27booked\x27'},{'option':_0x2e059b('0x174d'),'value':_0x2e059b('0x1695'),'ngIf':_0x2e059b('0x1f8b')},{'option':_0x2e059b('0x152a'),'value':'\x27fewestcalls\x27','ngIf':_0x2e059b('0x1f8b')},{'option':'Random','value':'\x27random\x27','ngIf':_0x2e059b('0x1f8b')},{'option':_0x2e059b('0x1d24'),'value':_0x2e059b('0x2017'),'ngIf':'vm.queueCampaign.dialMethod\x20!==\x20\x27booked\x27'},{'option':'Weight\x20Random','value':_0x2e059b('0x16e1'),'ngIf':_0x2e059b('0x1f8b')}],function(_0x180a0b){const _0x36496b=_0x2e059b;return _0x36f548()[_0x36496b('0x814')](_0x180a0b[_0x36496b('0x10cc')],new RegExp('\x27','g'),'');}),_0x9474b7[_0x2e059b('0x757')]=_0x10deec,_0x9474b7[_0x2e059b('0xf0f')]=_0x189f53,_0x9474b7[_0x2e059b('0x1dd8')]=_0x52c3b3,_0x9474b7[_0x2e059b('0x170f')]=_0x464639,_0x9474b7[_0x2e059b('0x11b8')]=_0x30cc35,_0x9474b7['agentadddialog']=_0x1e41f6,_0x9474b7[_0x2e059b('0x549')]=_0x2a4510,_0x9474b7[_0x2e059b('0x19a9')]=_0x2a3740,_0x9474b7[_0x2e059b('0x2693')]=_0x5cbbd2,_0x9474b7[_0x2e059b('0x8cf')]=_0x565d2c,_0x9474b7[_0x2e059b('0x1408')]=_0x56262c,_0x9474b7[_0x2e059b('0x25fd')]=_0x4c81ef,_0x9474b7[_0x2e059b('0xad9')]=_0x30f0a5,_0x9474b7[_0x2e059b('0x22e8')]=_0x3c12bd,_0x9474b7['deselectQueueCampaigns']=_0x421103,_0x9474b7[_0x2e059b('0x321')]=_0x4e2f29,_0x48faa3['hasRole'](_0x2e059b('0xf45'))?_0x5252ab[_0x2e059b('0x264e')][_0x2e059b('0xbaa')]({'fields':'id,name','sort':_0x2e059b('0x1909')})[_0x2e059b('0x1549')][_0x2e059b('0x11bf')](function(_0x27ce69){const _0x3bf081=_0x2e059b;_0x9474b7['trunks']=_0x27ce69[_0x3bf081('0x19b2')]||[];})['catch'](function(_0xbd005c){const _0x38b69e=_0x2e059b;_0x58c590[_0x38b69e('0x255')]({'title':_0xbd005c[_0x38b69e('0xff9')]?_0x38b69e('0x574')+_0xbd005c[_0x38b69e('0xff9')]+'\x20-\x20'+_0xbd005c[_0x38b69e('0x212f')]:'SYSTEM:GET_TRUNKS','msg':_0xbd005c[_0x38b69e('0x4e8')]?JSON[_0x38b69e('0x3e')](_0xbd005c[_0x38b69e('0x4e8')]):_0xbd005c[_0x38b69e('0xaab')]()});}):_0x5252ab[_0x2e059b('0x264e')][_0x2e059b('0xbaa')]({'fields':'id,name','sort':'name'})[_0x2e059b('0x1549')][_0x2e059b('0x11bf')](function(_0x27342d){const _0x12f630=_0x2e059b;_0x9474b7['trunks']=_0x27342d[_0x12f630('0x19b2')]||[];})[_0x2e059b('0x11bf')](function(){const _0x42343a=_0x2e059b;return _0x5252ab[_0x42343a('0x1d63')]['get']({'userProfileId':_0x9474b7[_0x42343a('0x32a')][_0x42343a('0x781')],'sectionId':0x3f3})[_0x42343a('0x1549')];})[_0x2e059b('0x11bf')](function(_0x5b9eb5){const _0x9c67cd=_0x2e059b,_0x15fe97=_0x5b9eb5&&_0x5b9eb5['rows']?_0x5b9eb5[_0x9c67cd('0x19b2')][0x0]:null;if(!_0x15fe97){const _0x3e75c5=[],_0x34e873=[];_0x9474b7['queueCampaigns'][_0x9c67cd('0x19b2')][_0x9c67cd('0x1f88')](function(_0x3a53e8){const _0x332a86=_0x9c67cd,_0x2a09fd=_0x36f548()[_0x332a86('0x1ad4')](_0x9474b7[_0x332a86('0x1b24')],{'id':Number(_0x3a53e8[_0x332a86('0x1016')])});_0x34e873[_0x332a86('0x105d')](_0x2a09fd);});for(let _0x1a7e4a=0x0;_0x1a7e4a<_0x9474b7['trunks'][_0x9c67cd('0x1e22')];_0x1a7e4a++){const _0x5685d3=_0x36f548()['some'](_0x34e873,{'id':_0x9474b7[_0x9c67cd('0x1b24')][_0x1a7e4a]['id']});_0x5685d3&&(_0x9474b7['trunks'][_0x1a7e4a][_0x9c67cd('0x254a')]=![],_0x3e75c5[_0x9c67cd('0x105d')](_0x9474b7[_0x9c67cd('0x1b24')][_0x1a7e4a]));}_0x9474b7[_0x9c67cd('0x1b24')]=_0x3e75c5;}else{if(!_0x15fe97[_0x9c67cd('0xf11')])return _0x5252ab[_0x9c67cd('0x26d1')]['get']({'sectionId':_0x15fe97['id']})[_0x9c67cd('0x1549')][_0x9c67cd('0x11bf')](function(_0x7f8ef8){const _0x8e0429=_0x9c67cd,_0x16c455=_0x36f548()[_0x8e0429('0x2171')](_0x7f8ef8[_0x8e0429('0x19b2')],function(_0x17cd6d){const _0x35128a=_0x8e0429;return _0x36f548()[_0x35128a('0x1ad4')](_0x9474b7[_0x35128a('0x1b24')],{'id':_0x17cd6d[_0x35128a('0x15a5')]});});let _0x27764c=null;_0x27764c=[],_0x9474b7[_0x8e0429('0x8bb')]['rows'][_0x8e0429('0x1f88')](function(_0x26694f){const _0x14ba89=_0x8e0429,_0x40bf87=_0x36f548()['find'](_0x9474b7['trunks'],{'id':Number(_0x26694f['TrunkId'])});_0x27764c[_0x14ba89('0x105d')](_0x40bf87);}),!_0x36f548()[_0x8e0429('0x1fc5')](_0x27764c)&&_0x27764c['forEach'](function(_0x3f873b){const _0x5265be=_0x8e0429;if(!_0x36f548()[_0x5265be('0x1cb3')](_0x16c455,['id',_0x3f873b['id']])){const _0x5b51d2=_0x36f548()[_0x5265be('0x1ad4')](_0x9474b7[_0x5265be('0x1b24')],{'id':_0x3f873b['id']});_0x5b51d2['canSelect']=![],_0x16c455[_0x5265be('0x105d')](_0x5b51d2);}}),_0x9474b7[_0x8e0429('0x1b24')]=_0x16c455;});}})[_0x2e059b('0x151d')](function(_0x179b11){const _0x408c98=_0x2e059b;_0x58c590[_0x408c98('0x255')]({'title':_0x179b11[_0x408c98('0xff9')]?'API:'+_0x179b11[_0x408c98('0xff9')]+_0x408c98('0xb0b')+_0x179b11['statusText']:_0x408c98('0xf39'),'msg':_0x179b11[_0x408c98('0x4e8')]?JSON[_0x408c98('0x3e')](_0x179b11[_0x408c98('0x4e8')]):_0x179b11['toString']()});}),_0x48faa3[_0x2e059b('0x4ee')](_0x2e059b('0xf45'))?_0x5252ab[_0x2e059b('0x507')][_0x2e059b('0xbaa')]({'fields':_0x2e059b('0x721'),'sort':_0x2e059b('0x1909'),'IntervalId':_0x2e059b('0xb5f')})[_0x2e059b('0x1549')]['then'](function(_0x12c34e){const _0xdea6c5=_0x2e059b;_0x9474b7[_0xdea6c5('0x507')]=_0x12c34e[_0xdea6c5('0x19b2')]||[];})[_0x2e059b('0x151d')](function(_0x362f41){const _0x2d89c7=_0x2e059b;_0x58c590[_0x2d89c7('0x255')]({'title':_0x362f41[_0x2d89c7('0xff9')]?_0x2d89c7('0x574')+_0x362f41['status']+_0x2d89c7('0xb0b')+_0x362f41[_0x2d89c7('0x212f')]:_0x2d89c7('0x135a'),'msg':_0x362f41[_0x2d89c7('0x4e8')]?JSON['stringify'](_0x362f41[_0x2d89c7('0x4e8')]):_0x362f41['toString']()});}):_0x5252ab[_0x2e059b('0x507')][_0x2e059b('0xbaa')]({'fields':_0x2e059b('0x721'),'sort':_0x2e059b('0x1909'),'IntervalId':'null'})[_0x2e059b('0x1549')]['then'](function(_0x76a38e){const _0x32cb18=_0x2e059b;_0x9474b7['interval']=_0x76a38e[_0x32cb18('0x19b2')]||[];})[_0x2e059b('0x11bf')](function(){const _0x49e24a=_0x2e059b;return _0x5252ab['userProfileSection'][_0x49e24a('0xbaa')]({'userProfileId':_0x9474b7[_0x49e24a('0x32a')]['userProfileId'],'sectionId':0x3ec})['$promise'];})[_0x2e059b('0x11bf')](function(_0x5cfcce){const _0x139b34=_0x2e059b,_0x13240b=_0x5cfcce&&_0x5cfcce[_0x139b34('0x19b2')]?_0x5cfcce[_0x139b34('0x19b2')][0x0]:null;if(!_0x13240b){const _0x44fb24=[];let _0x240a37=null;_0x9474b7[_0x139b34('0xf08')]&&(_0x240a37=_0x36f548()[_0x139b34('0x1ad4')](_0x9474b7[_0x139b34('0x507')],{'id':Number(_0x9474b7[_0x139b34('0xf08')][_0x139b34('0x6b4')])}));for(let _0x37a359=0x0;_0x37a359<_0x9474b7[_0x139b34('0x507')][_0x139b34('0x1e22')];_0x37a359++){_0x240a37&&_0x9474b7[_0x139b34('0x507')][_0x37a359]['id']===_0x240a37['id']&&(_0x9474b7['interval'][_0x37a359]['canSelect']=![],_0x44fb24['push'](_0x9474b7[_0x139b34('0x507')][_0x37a359]));}_0x9474b7[_0x139b34('0x507')]=_0x44fb24;}else{if(!_0x13240b[_0x139b34('0xf11')])return _0x5252ab[_0x139b34('0x26d1')][_0x139b34('0xbaa')]({'sectionId':_0x13240b['id']})['$promise'][_0x139b34('0x11bf')](function(_0x5985a1){const _0x262bd7=_0x139b34,_0x21edab=_0x36f548()[_0x262bd7('0x2171')](_0x5985a1[_0x262bd7('0x19b2')],function(_0x438779){const _0x5492e5=_0x262bd7;return _0x36f548()[_0x5492e5('0x1ad4')](_0x9474b7[_0x5492e5('0x507')],{'id':_0x438779['resourceId']});});let _0x129548=null;_0x9474b7['queueCampaign']&&(_0x129548=_0x36f548()[_0x262bd7('0x1ad4')](_0x9474b7[_0x262bd7('0x507')],{'id':Number(_0x9474b7['queueCampaign'][_0x262bd7('0x6b4')])}));if(_0x129548&&!_0x36f548()[_0x262bd7('0x1cb3')](_0x21edab,['id',_0x129548['id']])){const _0xa96c8b=_0x36f548()[_0x262bd7('0x1ad4')](_0x9474b7[_0x262bd7('0x507')],{'id':_0x129548['id']});_0xa96c8b['canSelect']=![],_0x21edab['push'](_0xa96c8b);}_0x9474b7[_0x262bd7('0x507')]=_0x21edab;});}})[_0x2e059b('0x151d')](function(_0x1309e9){const _0x3e34e8=_0x2e059b;_0x58c590['error']({'title':_0x1309e9[_0x3e34e8('0xff9')]?_0x3e34e8('0x574')+_0x1309e9[_0x3e34e8('0xff9')]+_0x3e34e8('0xb0b')+_0x1309e9[_0x3e34e8('0x212f')]:_0x3e34e8('0xa8b'),'msg':_0x1309e9[_0x3e34e8('0x4e8')]?JSON[_0x3e34e8('0x3e')](_0x1309e9[_0x3e34e8('0x4e8')]):_0x1309e9['toString']()});});function _0x10deec(_0x5f31cb){const _0x3e2473=_0x2e059b;_0x5785e6['go'](_0x3e2473('0x20ea'),{'id':_0x5f31cb['id'],'queueCampaign':_0x5f31cb,'crudPermissions':_0x9474b7[_0x3e2473('0xb25')]});}function _0x189f53(_0x3758ad,_0xb491e8){const _0x5d38d8=_0x2e059b;_0x1ae232[_0x5d38d8('0xb9')]({'controller':_0x5d38d8('0x18a4'),'controllerAs':'vm','templateUrl':_0x52e3f6,'parent':angular[_0x5d38d8('0x1e73')](_0x1e0f95[_0x5d38d8('0x1d2')]),'targetEvent':_0xb491e8,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x3758ad,'queueCampaigns':_0x9474b7[_0x5d38d8('0x8bb')]?_0x9474b7[_0x5d38d8('0x8bb')][_0x5d38d8('0x19b2')]:[],'crudPermissions':_0x9474b7['crudPermissions']}});}function _0x52c3b3(_0x270578,_0x599245){const _0xb5e75f=_0x2e059b;_0x1ae232['show']({'controller':'QueueCampaignlistaddController','controllerAs':'vm','templateUrl':_0x313aa3,'parent':angular[_0xb5e75f('0x1e73')](_0x1e0f95['body']),'targetEvent':_0x599245,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x270578,'queueCampaigns':_0x9474b7['queueCampaigns']?_0x9474b7[_0xb5e75f('0x8bb')][_0xb5e75f('0x19b2')]:[],'crudPermissions':_0x9474b7[_0xb5e75f('0xb25')]}});}function _0x464639(_0x3296a4,_0x5a197a){const _0x4cebcc=_0x2e059b;_0x1ae232[_0x4cebcc('0xb9')]({'controller':_0x4cebcc('0x241c'),'controllerAs':'vm','templateUrl':_0x506dc5,'parent':angular['element'](_0x1e0f95[_0x4cebcc('0x1d2')]),'targetEvent':_0x5a197a,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x3296a4,'queueCampaigns':_0x9474b7[_0x4cebcc('0x8bb')]?_0x9474b7[_0x4cebcc('0x8bb')][_0x4cebcc('0x19b2')]:[],'crudPermissions':_0x9474b7['crudPermissions']}});}function _0x30cc35(_0x35fce9,_0x170f32){const _0x463246=_0x2e059b;_0x1ae232['show']({'controller':'QueueCampaignteamaddController','controllerAs':'vm','templateUrl':_0x283da6,'parent':angular[_0x463246('0x1e73')](_0x1e0f95[_0x463246('0x1d2')]),'targetEvent':_0x170f32,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x35fce9,'queueCampaigns':_0x9474b7[_0x463246('0x8bb')]?_0x9474b7[_0x463246('0x8bb')][_0x463246('0x19b2')]:[],'crudPermissions':_0x9474b7[_0x463246('0xb25')]}});}function _0x1e41f6(_0x44d3c1,_0x2eb9e1){const _0x1c0d41=_0x2e059b;_0x1ae232['show']({'controller':'QueueCampaignagentaddController','controllerAs':'vm','templateUrl':_0xefff11,'parent':angular[_0x1c0d41('0x1e73')](_0x1e0f95[_0x1c0d41('0x1d2')]),'targetEvent':_0x2eb9e1,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x44d3c1,'queueCampaigns':_0x9474b7[_0x1c0d41('0x8bb')]?_0x9474b7[_0x1c0d41('0x8bb')][_0x1c0d41('0x19b2')]:[],'crudPermissions':_0x9474b7[_0x1c0d41('0xb25')],'realtime':![]}});}function _0x2a4510(_0x5088c4,_0x48b712){const _0x5077f0=_0x2e059b,_0x59b054=_0x1ae232['confirm']()[_0x5077f0('0x134b')](_0x5077f0('0x1796')+_0x36f548()[_0x5077f0('0x13cf')](_0x5077f0('0xf08'))+'?')[_0x5077f0('0x1d03')](_0x5077f0('0x2061')+(_0x5088c4['name']||'queueCampaign')+_0x5077f0('0x1c78')+_0x5077f0('0x1a'))[_0x5077f0('0xb2e')](_0x5077f0('0x69c'))[_0x5077f0('0x1e25')](_0x48b712)['ok']('OK')[_0x5077f0('0x26c9')](_0x5077f0('0x772'));_0x1ae232[_0x5077f0('0xb9')](_0x59b054)[_0x5077f0('0x11bf')](function(){_0x4c81ef(_0x5088c4);},function(){const _0x5e7925=_0x5077f0;console['log'](_0x5e7925('0x772'));});}function _0x2a3740(){const _0x20370a=_0x2e059b;if(_0x48faa3[_0x20370a('0x4ee')](_0x20370a('0xf45')))_0x5785e6['go'](_0x20370a('0x1fd4'),{});else return _0x5252ab[_0x20370a('0x1d63')][_0x20370a('0xbaa')]({'userProfileId':_0x48faa3['getCurrentUser']()[_0x20370a('0x781')],'sectionId':0x5e6})['$promise'][_0x20370a('0x11bf')](function(_0x33ef06){const _0x1deb13=_0x20370a,_0x3aace8=_0x33ef06&&_0x33ef06['rows']?_0x33ef06[_0x1deb13('0x19b2')][0x0]:null;_0x3aace8&&_0x3aace8[_0x1deb13('0x1f0a')]?_0x5785e6['go'](_0x1deb13('0x1fd4'),{}):_0x58c590['info']({'title':_0xe739d5[_0x1deb13('0x10c2')]('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_TITLE'),'msg':_0xe739d5[_0x1deb13('0x10c2')](_0x1deb13('0x10d1'))});})['catch'](function(_0x59e10a){const _0x1792ed=_0x20370a;_0x58c590['error']({'title':_0x59e10a[_0x1792ed('0xff9')]?'API:'+_0x59e10a['status']+_0x1792ed('0xb0b')+_0x59e10a[_0x1792ed('0x212f')]:_0x1792ed('0x1011'),'msg':_0x59e10a[_0x1792ed('0xff9')]?JSON[_0x1792ed('0x3e')](_0x59e10a['data']):_0x59e10a[_0x1792ed('0xaab')]()});});}let _0x29a4dd=!![],_0x2ce448=0x1;_0x4e2afb['$watch'](_0x2e059b('0x842'),function(_0xc14e0,_0x106544){const _0x3294b9=_0x2e059b;_0x29a4dd?_0x5cd5fd(function(){_0x29a4dd=![];}):(!_0x106544&&(_0x2ce448=_0x9474b7[_0x3294b9('0x1f2a')][_0x3294b9('0x1c2')]),_0xc14e0!==_0x106544&&(_0x9474b7['query'][_0x3294b9('0x1c2')]=0x1),!_0xc14e0&&(_0x9474b7[_0x3294b9('0x1f2a')][_0x3294b9('0x1c2')]=_0x2ce448),_0x9474b7[_0x3294b9('0x8cf')]());});function _0x5cbbd2(_0x513c3b){const _0xe93705=_0x2e059b;_0x9474b7[_0xe93705('0x8bb')]=_0x513c3b||{'count':0x0,'rows':[]};}function _0x565d2c(){const _0x13ec7b=_0x2e059b;_0x9474b7[_0x13ec7b('0x1f2a')]['offset']=(_0x9474b7[_0x13ec7b('0x1f2a')]['page']-0x1)*_0x9474b7[_0x13ec7b('0x1f2a')][_0x13ec7b('0xd5c')],_0x48faa3[_0x13ec7b('0x4ee')](_0x13ec7b('0xf45'))?_0x9474b7[_0x13ec7b('0x13f')]=_0x5252ab[_0x13ec7b('0x1043')][_0x13ec7b('0xbaa')](_0x9474b7[_0x13ec7b('0x1f2a')],_0x5cbbd2)['$promise']:(_0x9474b7[_0x13ec7b('0x1f2a')]['id']=_0x9474b7[_0x13ec7b('0x25bc')]['id'],_0x9474b7[_0x13ec7b('0x1f2a')]['section']=_0x13ec7b('0x1e95'),_0x9474b7['promise']=_0x5252ab[_0x13ec7b('0x25bc')][_0x13ec7b('0x228e')](_0x9474b7[_0x13ec7b('0x1f2a')],_0x5cbbd2)[_0x13ec7b('0x1549')]);}function _0x56262c(_0x11b168,_0xca9fb7){const _0x35529d=_0x2e059b;_0x1ae232['show']({'controller':_0x35529d('0xf41'),'controllerAs':'vm','templateUrl':_0x3cea48,'parent':angular['element'](_0x1e0f95[_0x35529d('0x1d2')]),'targetEvent':_0x11b168,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0xca9fb7,'queueCampaigns':_0x9474b7['queueCampaigns']['rows'],'license':_0x9474b7[_0x35529d('0x17ff')],'setting':_0x9474b7[_0x35529d('0x23e1')],'crudPermissions':_0x9474b7[_0x35529d('0xb25')]}});}function _0x4c81ef(_0xe2ee6a){const _0x2387cb=_0x2e059b;_0x5252ab[_0x2387cb('0x1043')][_0x2387cb('0x2088')]({'id':_0xe2ee6a['id']})[_0x2387cb('0x1549')][_0x2387cb('0x11bf')](function(){const _0x1e8cff=_0x2387cb;_0x36f548()[_0x1e8cff('0x14a5')](_0x9474b7[_0x1e8cff('0x8bb')][_0x1e8cff('0x19b2')],{'id':_0xe2ee6a['id']}),_0x9474b7[_0x1e8cff('0x8bb')]['count']-=0x1,!_0x9474b7[_0x1e8cff('0x8bb')][_0x1e8cff('0x19b2')][_0x1e8cff('0x1e22')]&&_0x9474b7['getQueueCampaigns'](),_0x58c590[_0x1e8cff('0x2693')]({'title':_0x36f548()[_0x1e8cff('0x13cf')](_0x1e8cff('0x12bb'))+'\x20deleted!','msg':_0xe2ee6a['name']?_0xe2ee6a[_0x1e8cff('0x1909')]+_0x1e8cff('0x433'):''});})['catch'](function(_0x8bef84){const _0x5eb672=_0x2387cb;if(_0x8bef84[_0x5eb672('0x4e8')]&&_0x8bef84['data'][_0x5eb672('0x120f')]&&_0x8bef84[_0x5eb672('0x4e8')][_0x5eb672('0x120f')][_0x5eb672('0x1e22')]){_0x9474b7[_0x5eb672('0x120f')]=_0x8bef84[_0x5eb672('0x4e8')][_0x5eb672('0x120f')]||[{'message':_0x8bef84[_0x5eb672('0xaab')](),'type':_0x5eb672('0x1841')}];for(let _0x8d651f=0x0;_0x8d651f<_0x8bef84[_0x5eb672('0x4e8')][_0x5eb672('0x120f')][_0x5eb672('0x1e22')];_0x8d651f++){_0x58c590['error']({'title':_0x8bef84[_0x5eb672('0x4e8')][_0x5eb672('0x120f')][_0x8d651f][_0x5eb672('0x19fd')],'msg':_0x8bef84['data'][_0x5eb672('0x120f')][_0x8d651f][_0x5eb672('0x1b86')]});}}else _0x58c590['error']({'title':_0x8bef84['status']?_0x5eb672('0x574')+_0x8bef84[_0x5eb672('0xff9')]+_0x5eb672('0xb0b')+_0x8bef84[_0x5eb672('0x212f')]:_0x5eb672('0x1841'),'msg':_0x8bef84[_0x5eb672('0x4e8')]?JSON[_0x5eb672('0x3e')](_0x8bef84[_0x5eb672('0x4e8')]['message']):_0x8bef84[_0x5eb672('0x1b86')]||_0x8bef84[_0x5eb672('0xaab')]()});});}function _0x30f0a5(){const _0x28fdc3=_0x2e059b,_0x550ba0=angular[_0x28fdc3('0x6fb')](_0x9474b7[_0x28fdc3('0xa09')]);return _0x9474b7[_0x28fdc3('0xa09')]=[],_0x550ba0;}function _0x3c12bd(_0x5635d4){const _0x51d74f=_0x2e059b,_0x460a2c=_0x1ae232[_0x51d74f('0x132b')]()[_0x51d74f('0x134b')](_0x51d74f('0xf26'))['htmlContent'](_0x51d74f('0x2061')+_0x9474b7['selectedQueueCampaigns'][_0x51d74f('0x1e22')]+_0x51d74f('0xac6')+'\x20will\x20be\x20deleted.')[_0x51d74f('0xb2e')](_0x51d74f('0x5a7'))[_0x51d74f('0x1e25')](_0x5635d4)['ok']('OK')[_0x51d74f('0x26c9')](_0x51d74f('0x772'));_0x1ae232[_0x51d74f('0xb9')](_0x460a2c)[_0x51d74f('0x11bf')](function(){const _0x5e7cbc=_0x51d74f;_0x9474b7[_0x5e7cbc('0xa09')][_0x5e7cbc('0x1f88')](function(_0x12e11c){_0x4c81ef(_0x12e11c);}),_0x9474b7[_0x5e7cbc('0xa09')]=[];});}function _0x421103(){_0x9474b7['selectedQueueCampaigns']=[];}function _0x4e2f29(){const _0x4324ad=_0x2e059b;_0x9474b7['selectedQueueCampaigns']=_0x9474b7[_0x4324ad('0x8bb')][_0x4324ad('0x19b2')];}}const _0x457f0c=_0x11263c;_0x458da8[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x13d6'),_0x21d0f5('0xc3e')];function _0x458da8(_0x5e5426,_0x6f6307){const _0x4be02c=_0x21d0f5;_0x5e5426[_0x4be02c('0x2124')](_0x4be02c('0x1f49'),{'abstract':!![],'url':_0x4be02c('0x17d4')})['state'](_0x4be02c('0x269d'),{'url':'/queueCampaigns','views':{'content@app':{'templateUrl':_0x1cfe37,'controller':'QueueCampaignsController\x20as\x20vm'}},'resolve':{'queueCampaigns':[_0x4be02c('0x218e'),_0x4be02c('0x1150'),function(_0x602d0d,_0x342c73){const _0x18dd97=_0x4be02c;return _0x342c73['hasRole'](_0x18dd97('0xf45'))?_0x602d0d[_0x18dd97('0xa28')]('voiceQueue@get',{'fields':'createdAt,updatedAt,id,name,dialActive,TrunkId,TrunkBackupId,type,IntervalId,dialCheckDuplicateType,dialCutDigit,acw,acwTimeout,autopause,ringinuse,memberdelay,timeoutrestart,monitor_format,context,setinterfacevar,setqueuevar,setqueueentryvar,dialOrderByScheduledAt,dialRecallMeTimeout,dialRecallInQueue,dialGlobalInterval,dialTimezone,dialAMDActive,dialAMDInitialSilence,dialAMDGreeting,dialAMDAfterGreetingSilence,dialAMDTotalAnalysisTime,dialAMDMinWordLength,dialAMDBetweenWordsSilence,dialAMDMaximumNumberOfWords,dialAMDSilenceThreshold,dialAMDMaximumWordLength,dialMethod,dialPowerLevel,dialPredictiveOptimization,dialPredictiveOptimizationPercentage,dialPredictiveInterval,dialLimitQueue,dialOriginateCallerIdName,dialOriginateCallerIdNumber,dialRandomLastDigitCallerIdNumber,dialOriginateTimeout,dialPrefix,dialQueueOptions,dialQueueTimeout,strategy,timeout,retry,wrapuptime,weight,musiconhold,dialQueueProject,dialQueueProject2,dialAgiAfterHangupAgent,dialGlobalMaxRetry,dialCongestionMaxRetry,dialCongestionRetryFrequency,dialBusyMaxRetry,dialBusyRetryFrequency,dialNoAnswerMaxRetry,dialNoAnswerRetryFrequency,dialNoSuchNumberMaxRetry,dialNoSuchNumberRetryFrequency,dialDropMaxRetry,dialDropRetryFrequency,dialAbandonedMaxRetry,dialAbandonedRetryFrequency,dialMachineMaxRetry,dialMachineRetryFrequency,dialAgentRejectMaxRetry,dialAgentRejectRetryFrequency,description,mandatoryDisposition,mandatoryDispositionPauseId,dialPredictiveIntervalMaxThreshold,dialPredictiveIntervalMinThreshold','type':_0x18dd97('0x25b6'),'sort':_0x18dd97('0x1c74'),'channel':_0x18dd97('0x1bc3'),'limit':0xa,'offset':0x0}):_0x602d0d[_0x18dd97('0xa28')](_0x18dd97('0xb0d'),{'id':_0x342c73[_0x18dd97('0x2428')]()[_0x18dd97('0x781')],'section':_0x18dd97('0x1e95'),'fields':_0x18dd97('0x1f9e'),'type':_0x18dd97('0x25b6'),'sort':_0x18dd97('0x1c74'),'channel':'voice','limit':0xa,'offset':0x0});}],'userProfile':[_0x4be02c('0x218e'),_0x4be02c('0x1150'),function(_0x312b42,_0x4f8551){const _0x51e42e=_0x4be02c;return _0x4f8551[_0x51e42e('0x4ee')]('admin')?null:_0x312b42[_0x51e42e('0xa28')]('userProfile@get',{'fields':'id,name,crudPermissions','id':_0x4f8551[_0x51e42e('0x2428')]()[_0x51e42e('0x781')]});}],'userProfileSection':[_0x4be02c('0x218e'),_0x4be02c('0x1150'),function(_0x1a976e,_0x182baa){const _0x46a3f6=_0x4be02c;return _0x182baa[_0x46a3f6('0x4ee')]('admin')?null:_0x1a976e[_0x46a3f6('0xa28')](_0x46a3f6('0x2762'),{'fields':_0x46a3f6('0x36d'),'userProfileId':_0x182baa[_0x46a3f6('0x2428')]()[_0x46a3f6('0x781')],'sectionId':0x5dd});}]},'authenticate':!![],'permissionId':0x5dd,'bodyClass':_0x4be02c('0x1862')})[_0x4be02c('0x2124')](_0x4be02c('0x20ea'),{'url':_0x4be02c('0x142b'),'params':{'queueCampaign':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x354e8d,'controller':'QueueCampaignController\x20as\x20vm'}},'resolve':{'queueCampaign':['apiResolver','$stateParams',function(_0x49ba89,_0x1f0ba2){const _0x4886c2=_0x4be02c;return _0x49ba89[_0x4886c2('0xa28')](_0x4886c2('0x987'),{'fields':_0x4886c2('0x1f9e'),'id':_0x1f0ba2['id']});}],'userProfileSection':[_0x4be02c('0x218e'),_0x4be02c('0x1150'),function(_0x3ac7d8,_0x118e1c){const _0xbf9e69=_0x4be02c;return _0x3ac7d8['resolve'](_0xbf9e69('0x2762'),{'fields':_0xbf9e69('0x36d'),'userProfileId':_0x118e1c[_0xbf9e69('0x2428')]()[_0xbf9e69('0x781')],'sectionId':0x5dd});}]},'authenticate':!![],'permissionId':0x5dd,'bodyClass':_0x4be02c('0x1862')})[_0x4be02c('0x2124')]('app.motiondialer.ivrCampaigns',{'url':_0x4be02c('0xf8e'),'views':{'content@app':{'templateUrl':_0x131b45,'controller':_0x4be02c('0x27e2')}},'resolve':{'ivrCampaigns':[_0x4be02c('0x218e'),'Auth',function(_0x3de197,_0x556754){const _0x1395c8=_0x4be02c;return _0x556754[_0x1395c8('0x4ee')]('admin')?_0x3de197[_0x1395c8('0xa28')](_0x1395c8('0x112a'),{'fields':_0x1395c8('0x2656'),'type':_0x1395c8('0x1316'),'sort':_0x1395c8('0x1c74'),'limit':0xa,'offset':0x0}):_0x3de197[_0x1395c8('0xa28')](_0x1395c8('0xb0d'),{'id':_0x556754[_0x1395c8('0x2428')]()['userProfileId'],'section':_0x1395c8('0xec'),'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':_0x1395c8('0x1316'),'sort':_0x1395c8('0x1c74'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x4be02c('0x218e'),_0x4be02c('0x1150'),function(_0x46b450,_0x311c0d){const _0x3e92cf=_0x4be02c;return _0x311c0d[_0x3e92cf('0x4ee')](_0x3e92cf('0xf45'))?null:_0x46b450[_0x3e92cf('0xa28')](_0x3e92cf('0x428'),{'fields':_0x3e92cf('0xd30'),'id':_0x311c0d['getCurrentUser']()[_0x3e92cf('0x781')]});}],'userProfileSection':[_0x4be02c('0x218e'),_0x4be02c('0x1150'),function(_0x2945eb,_0xb3a571){const _0x30c90e=_0x4be02c;return _0xb3a571['hasRole'](_0x30c90e('0xf45'))?null:_0x2945eb[_0x30c90e('0xa28')](_0x30c90e('0x2762'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0xb3a571[_0x30c90e('0x2428')]()['userProfileId'],'sectionId':0x5de});}]},'authenticate':!![],'permissionId':0x5de,'bodyClass':_0x4be02c('0x1862')})[_0x4be02c('0x2124')](_0x4be02c('0x2605'),{'url':_0x4be02c('0x142b'),'params':{'ivrCampaign':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x31d8de,'controller':_0x4be02c('0x74d')}},'resolve':{'ivrCampaign':[_0x4be02c('0x218e'),_0x4be02c('0x1573'),function(_0x7fc470,_0x2b29f8){const _0xd79786=_0x4be02c;return _0x7fc470[_0xd79786('0xa28')](_0xd79786('0x112a'),{'fields':_0xd79786('0x2656'),'id':_0x2b29f8['id']});}],'userProfileSection':[_0x4be02c('0x218e'),_0x4be02c('0x1150'),function(_0x5248f9,_0x27c698){const _0x4b8e59=_0x4be02c;return _0x5248f9[_0x4b8e59('0xa28')](_0x4b8e59('0x2762'),{'fields':_0x4b8e59('0x36d'),'userProfileId':_0x27c698[_0x4b8e59('0x2428')]()[_0x4b8e59('0x781')],'sectionId':0x5de});}]},'authenticate':!![],'permissionId':0x5de,'bodyClass':_0x4be02c('0x1862')}),_0x6f6307['addPart']('app/main/apps/motiondialer');}angular['module'](_0x21d0f5('0x1f49'),[_0x21d0f5('0x22d5'),_0x21d0f5('0x1fb3'),_0x21d0f5('0x3c4'),_0x21d0f5('0x2414'),'mdColorPicker',_0x21d0f5('0x2096'),'ng-sortable',_0x21d0f5('0x446'),'ngAnimate',_0x21d0f5('0x21d5'),_0x21d0f5('0x29b'),_0x21d0f5('0xc46'),_0x21d0f5('0x950'),_0x21d0f5('0xf49'),'angular-cron-jobs',_0x21d0f5('0xed9'),_0x21d0f5('0x2625'),_0x21d0f5('0x1622'),_0x21d0f5('0x1584'),_0x21d0f5('0xf7f'),'app.motiondialer.realtime'])['config'](_0x458da8)['controller'](_0x21d0f5('0x176b'),_0x606e4e)[_0x21d0f5('0x23eb')](_0x21d0f5('0x2801'),_0xb17c2b)['controller']('IvrCampaigncloneController',_0x3db9db)[_0x21d0f5('0x23eb')](_0x21d0f5('0x561'),_0x52ce8e)[_0x21d0f5('0x23eb')]('IvrCampaignHopperFinalsController',_0x519bb8)['controller'](_0x21d0f5('0xc4c'),_0x5be0fc)['controller'](_0x21d0f5('0x9d0'),_0x5b15df)[_0x21d0f5('0x23eb')](_0x21d0f5('0x1e24'),_0x3f8a26)[_0x21d0f5('0x23eb')](_0x21d0f5('0xf2e'),_0x11eb15)[_0x21d0f5('0x23eb')](_0x21d0f5('0x14f9'),_0xcfd77d)['controller'](_0x21d0f5('0xb4f'),_0x1321cf)[_0x21d0f5('0x23eb')](_0x21d0f5('0x277d'),_0x5ac523)['controller'](_0x21d0f5('0x1633'),_0x4e6e4f)[_0x21d0f5('0x23eb')]('CreateOrEditQueueCampaignDialogController',_0x55b0ca)['controller']('QueueCampaignagentaddController',_0x44f80d)[_0x21d0f5('0x23eb')](_0x21d0f5('0x241c'),_0x11050c)[_0x21d0f5('0x23eb')]('QueueCampaigncloneController',_0x3fdfec)[_0x21d0f5('0x23eb')]('QueueCampaignHopperBlacksController',_0x3c6a19)[_0x21d0f5('0x23eb')](_0x21d0f5('0x82a'),_0x3e957b)['controller']('QueueCampaignHopperHistoriesController',_0x4a1d82)[_0x21d0f5('0x23eb')](_0x21d0f5('0x145f'),_0x64322c)[_0x21d0f5('0x23eb')]('CreateOrEditHopperVoiceQueueIdDialogController',_0x2a08a5)['controller'](_0x21d0f5('0x6ca'),_0x4175e0)[_0x21d0f5('0x23eb')]('QueueCampaignlistaddController',_0x20ea41)[_0x21d0f5('0x23eb')](_0x21d0f5('0x190e'),_0x385f3e)[_0x21d0f5('0x23eb')](_0x21d0f5('0x141d'),_0x208e96)['controller'](_0x21d0f5('0xd9c'),_0xc328e)[_0x21d0f5('0x23eb')](_0x21d0f5('0x34'),_0x457f0c);const _0x73184a=_0x351988['p']+'src/js/modules/main/apps/help/views/about/about.html/about.html';_0x4b6d94[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x870'),_0x21d0f5('0x17ff'),_0x21d0f5('0x12a5')];function _0x7641b2(_0x38dedb){const _0x59e51d=_0x21d0f5,_0x23a0f7=_0x57d4d1()(_0x38dedb);return _0x23a0f7[_0x59e51d('0xde9')]()?_0x23a0f7[_0x59e51d('0x1826')](_0x59e51d('0x9ac')):'';}function _0x4b6d94(_0x3ad778,_0x4fa5ef,_0x152ff2){const _0x313699=_0x21d0f5,_0x33aae5=this;_0x33aae5[_0x313699('0x23f4')]=_0x152ff2['baseUrl'],_0x33aae5[_0x313699('0x870')]={..._0x3ad778,'buildDate':_0x7641b2(_0x3ad778['buildDate']),'commitDate':_0x7641b2(_0x3ad778[_0x313699('0xbb')]),'client':{'name':_0x313699('0x156c'),'version':'3.0.0-alpha','shortHash':_0x313699('0x17e8'),'branch':_0x313699('0x5bd'),'tag':'','committedOn':_0x313699('0x1f2f'),'buildDate':'2020-11-18T15:37:14.827Z'}},_0x33aae5[_0x313699('0x17ff')]=_0x4fa5ef;}const _0x384899=_0x4b6d94;_0x5d9710[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x13d6')];function _0x5d9710(_0x316f25){const _0x76b190=_0x21d0f5;_0x316f25[_0x76b190('0x2124')](_0x76b190('0x269'),{'url':_0x76b190('0x60b'),'views':{'content@app':{'templateUrl':_0x73184a,'controller':_0x76b190('0x233d')}},'resolve':{'info':['apiResolver',function(_0x2a4438){const _0x5abf26=_0x76b190;return _0x2a4438[_0x5abf26('0xa28')](_0x5abf26('0x1024'));}]},'authenticate':!![],'permissionId':0x640,'bodyClass':_0x76b190('0x9bb')});}angular[_0x21d0f5('0x2768')]('app.help.about',[])[_0x21d0f5('0x53a')](_0x5d9710)[_0x21d0f5('0x23eb')]('AboutController',_0x384899),_0x2525e5[_0x21d0f5('0x1e9a')]=['$stateProvider','$translatePartialLoaderProvider'];function _0x2525e5(_0x1508ac,_0x478ffd){const _0xb39abe=_0x21d0f5;_0x1508ac[_0xb39abe('0x2124')](_0xb39abe('0x21a6'),{'abstract':!![],'url':_0xb39abe('0x2497')}),_0x478ffd[_0xb39abe('0x471')](_0xb39abe('0x1680'));}angular[_0x21d0f5('0x2768')](_0x21d0f5('0x21a6'),[_0x21d0f5('0x22d5'),_0x21d0f5('0x1fb3'),'md.data.table',_0x21d0f5('0x2414'),_0x21d0f5('0xd61'),_0x21d0f5('0x2096'),_0x21d0f5('0x24a2'),_0x21d0f5('0x446'),'ngAnimate',_0x21d0f5('0x21d5'),_0x21d0f5('0x29b'),_0x21d0f5('0xc46'),_0x21d0f5('0x950'),'ngclipboard','angular-cron-jobs',_0x21d0f5('0xed9'),_0x21d0f5('0x2625'),_0x21d0f5('0x1622'),_0x21d0f5('0x1584'),_0x21d0f5('0xf7f'),_0x21d0f5('0x269')])[_0x21d0f5('0x53a')](_0x2525e5);const _0x2a6b66=_0x351988['p']+_0x21d0f5('0x115d'),_0x59c5aa=_0x351988['p']+_0x21d0f5('0x2643');_0x72c20a[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0xcbc'),_0x21d0f5('0x16b9'),'$mdDialog','$q',_0x21d0f5('0xb6b'),_0x21d0f5('0x142d'),_0x21d0f5('0xa62'),'project','api',_0x21d0f5('0x1150'),_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1'),_0x21d0f5('0xb25')];function _0x72c20a(_0x4c690a,_0xaabb45,_0x5adfe3,_0x44a979,_0x1e1a0c,_0x2038e5,_0xe757c0,_0x55e9b3,_0x5c7503,_0x3f111a,_0x3d5b30,_0x18bade,_0x4a6608,_0xb6ea38){const _0x589c7b=_0x21d0f5,_0x1fe0e3=this;_0x1fe0e3['currentUser']=_0x3d5b30[_0x589c7b('0x2428')](),_0x1fe0e3[_0x589c7b('0x120f')]=[],_0x1fe0e3[_0x589c7b('0x23e1')]=_0x4a6608,_0x1fe0e3['license']=_0x18bade,_0x1fe0e3[_0x589c7b('0xb25')]=_0xb6ea38,_0x1fe0e3[_0x589c7b('0x2c9')]={},_0x1fe0e3['passwordPattern']=_0x1fe0e3[_0x589c7b('0x23e1')]&&_0x1fe0e3[_0x589c7b('0x23e1')][_0x589c7b('0x1d4')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1fe0e3[_0x589c7b('0x134b')]=_0x589c7b('0x1f0b'),_0x1fe0e3[_0x589c7b('0xef0')]=angular['copy'](_0x5c7503),_0x1fe0e3[_0x589c7b('0xa62')]=_0x55e9b3,_0x1fe0e3['newProject']=![];!_0x1fe0e3[_0x589c7b('0xef0')]&&(_0x1fe0e3[_0x589c7b('0xef0')]={'enableUncompleteSave':!![],'sendUnpauseOnSubmit':!![]},_0x1fe0e3['title']=_0x589c7b('0x5c2'),_0x1fe0e3[_0x589c7b('0x1de')]=!![]);_0x1fe0e3[_0x589c7b('0x2842')]=_0x21bb86,_0x1fe0e3[_0x589c7b('0x245a')]=_0xefe6d,_0x1fe0e3[_0x589c7b('0x8c4')]=_0x1eb9b5,_0x1fe0e3[_0x589c7b('0x1bd1')]=_0x3eb989,_0x1fe0e3[_0x589c7b('0xc4e')]=_0x59f085;function _0x21bb86(){const _0x673199=_0x589c7b;_0x1fe0e3['errors']=[],_0x3f111a[_0x673199('0xf34')]['save'](_0x1fe0e3[_0x673199('0xef0')])['$promise'][_0x673199('0x11bf')](function(_0x58e407){const _0x5d0d77=_0x673199;_0x1fe0e3[_0x5d0d77('0xa62')][_0x5d0d77('0x880')](_0x58e407[_0x5d0d77('0x2866')]()),_0xe757c0[_0x5d0d77('0x2693')]({'title':_0x5d0d77('0x421'),'msg':_0x1fe0e3['project'][_0x5d0d77('0x1909')]?_0x1fe0e3[_0x5d0d77('0xef0')][_0x5d0d77('0x1909')]+'\x20has\x20been\x20created!':''}),_0x59f085(_0x58e407);})['catch'](function(_0x43ca9a){const _0x34bb7d=_0x673199;if(_0x43ca9a[_0x34bb7d('0x4e8')]&&_0x43ca9a[_0x34bb7d('0x4e8')][_0x34bb7d('0x120f')]&&_0x43ca9a['data'][_0x34bb7d('0x120f')][_0x34bb7d('0x1e22')]){_0x1fe0e3[_0x34bb7d('0x120f')]=_0x43ca9a[_0x34bb7d('0x4e8')][_0x34bb7d('0x120f')]||[{'message':_0x43ca9a[_0x34bb7d('0xaab')](),'type':_0x34bb7d('0x995')}];for(let _0x134314=0x0;_0x134314<_0x43ca9a[_0x34bb7d('0x4e8')][_0x34bb7d('0x120f')][_0x34bb7d('0x1e22')];_0x134314+=0x1){_0xe757c0['error']({'title':_0x43ca9a[_0x34bb7d('0x4e8')][_0x34bb7d('0x120f')][_0x134314]['type'],'msg':_0x43ca9a[_0x34bb7d('0x4e8')][_0x34bb7d('0x120f')][_0x134314][_0x34bb7d('0x1b86')]});}}else _0xe757c0['error']({'title':_0x43ca9a['status']?_0x34bb7d('0x574')+_0x43ca9a[_0x34bb7d('0xff9')]+_0x34bb7d('0xb0b')+_0x43ca9a[_0x34bb7d('0x212f')]:_0x34bb7d('0x995'),'msg':_0x43ca9a[_0x34bb7d('0x4e8')]?JSON[_0x34bb7d('0x3e')](_0x43ca9a['data']['message']):_0x43ca9a[_0x34bb7d('0xaab')]()});});}function _0xefe6d(){const _0x384fe2=_0x589c7b;_0x1fe0e3[_0x384fe2('0x120f')]=[],_0x3f111a[_0x384fe2('0xf34')][_0x384fe2('0x5ab')]({'id':_0x1fe0e3['project']['id']},_0x1fe0e3[_0x384fe2('0xef0')])[_0x384fe2('0x1549')][_0x384fe2('0x11bf')](function(_0x51e875){const _0x19a222=_0x384fe2,_0x14487f=_0x36f548()[_0x19a222('0x1ad4')](_0x1fe0e3[_0x19a222('0xa62')],{'id':_0x51e875['id']});_0x14487f&&_0x36f548()['merge'](_0x14487f,_0x36f548()[_0x19a222('0x258')](_0x51e875[_0x19a222('0x2866')](),_0x36f548()[_0x19a222('0xe22')](_0x14487f))),_0xe757c0[_0x19a222('0x2693')]({'title':'Project\x20properly\x20saved!','msg':_0x1fe0e3[_0x19a222('0xef0')][_0x19a222('0x1909')]?_0x1fe0e3[_0x19a222('0xef0')][_0x19a222('0x1909')]+_0x19a222('0x1a78'):''}),_0x59f085(_0x51e875);})[_0x384fe2('0x151d')](function(_0x322101){const _0x22c832=_0x384fe2;if(_0x322101[_0x22c832('0x4e8')]&&_0x322101['data'][_0x22c832('0x120f')]&&_0x322101[_0x22c832('0x4e8')][_0x22c832('0x120f')][_0x22c832('0x1e22')]){_0x1fe0e3[_0x22c832('0x120f')]=_0x322101[_0x22c832('0x4e8')][_0x22c832('0x120f')]||[{'message':_0x322101['toString'](),'type':_0x22c832('0x1631')}];for(let _0x306195=0x0;_0x306195<_0x322101[_0x22c832('0x4e8')][_0x22c832('0x120f')][_0x22c832('0x1e22')];_0x306195++){_0xe757c0['error']({'title':_0x322101[_0x22c832('0x4e8')]['errors'][_0x306195]['type'],'msg':_0x322101[_0x22c832('0x4e8')][_0x22c832('0x120f')][_0x306195][_0x22c832('0x1b86')]});}}else _0xe757c0[_0x22c832('0x255')]({'title':_0x322101[_0x22c832('0xff9')]?'API:'+_0x322101[_0x22c832('0xff9')]+_0x22c832('0xb0b')+_0x322101['statusText']:_0x22c832('0x1631'),'msg':_0x322101[_0x22c832('0x4e8')]?JSON[_0x22c832('0x3e')](_0x322101[_0x22c832('0x4e8')]['message']):_0x322101[_0x22c832('0xaab')]()});});}function _0x1eb9b5(_0x39ddad){const _0x25a13a=_0x589c7b;_0x1fe0e3[_0x25a13a('0x120f')]=[];const _0x120093=_0x44a979[_0x25a13a('0x132b')]()[_0x25a13a('0x134b')](_0x25a13a('0x1fa9'))[_0x25a13a('0x252a')](_0x25a13a('0x2112'))[_0x25a13a('0xb2e')](_0x25a13a('0x2133'))['ok'](_0x25a13a('0x1167'))[_0x25a13a('0x26c9')](_0x25a13a('0x784'))['targetEvent'](_0x39ddad);_0x44a979[_0x25a13a('0xb9')](_0x120093)['then'](function(){const _0x5df2d8=_0x25a13a;_0x3f111a[_0x5df2d8('0xf34')]['delete']({'id':_0x1fe0e3[_0x5df2d8('0xef0')]['id']})[_0x5df2d8('0x1549')]['then'](function(){const _0x515f55=_0x5df2d8;_0x36f548()[_0x515f55('0x14a5')](_0x1fe0e3[_0x515f55('0xa62')],{'id':_0x1fe0e3[_0x515f55('0xef0')]['id']}),_0xe757c0[_0x515f55('0x2693')]({'title':_0x515f55('0x150c'),'msg':(_0x1fe0e3[_0x515f55('0xef0')][_0x515f55('0x1909')]||_0x515f55('0xef0'))+_0x515f55('0x433')}),_0x59f085(_0x1fe0e3[_0x515f55('0xef0')]);})[_0x5df2d8('0x151d')](function(_0x45b23a){const _0x280b88=_0x5df2d8;if(_0x45b23a[_0x280b88('0x4e8')]&&_0x45b23a['data'][_0x280b88('0x120f')]&&_0x45b23a[_0x280b88('0x4e8')][_0x280b88('0x120f')]['length']){_0x1fe0e3[_0x280b88('0x120f')]=_0x45b23a['data']['errors']||[{'message':_0x45b23a[_0x280b88('0xaab')](),'type':_0x280b88('0xc07')}];for(let _0x261e33=0x0;_0x261e33<_0x45b23a[_0x280b88('0x4e8')][_0x280b88('0x120f')][_0x280b88('0x1e22')];_0x261e33++){_0xe757c0[_0x280b88('0x255')]({'title':_0x45b23a[_0x280b88('0x4e8')][_0x280b88('0x120f')][_0x261e33][_0x280b88('0x19fd')],'msg':_0x45b23a[_0x280b88('0x4e8')][_0x280b88('0x120f')][_0x261e33][_0x280b88('0x1b86')]});}}else _0xe757c0['error']({'title':_0x45b23a[_0x280b88('0xff9')]?_0x280b88('0x574')+_0x45b23a['status']+'\x20-\x20'+_0x45b23a[_0x280b88('0x212f')]:'api.jscriptyProject.delete','msg':_0x45b23a[_0x280b88('0x4e8')]?JSON[_0x280b88('0x3e')](_0x45b23a[_0x280b88('0x4e8')]['message']):_0x45b23a[_0x280b88('0x1b86')]||_0x45b23a[_0x280b88('0xaab')]()});});},function(){});}function _0x3eb989(_0x2f9465){return _0x2f9465===null?undefined:new Date(_0x2f9465);}function _0x59f085(_0x34f979){const _0x57f09f=_0x589c7b;_0x44a979[_0x57f09f('0x237e')](_0x34f979);}}const _0x3d9eb2=_0x72c20a;_0x3488d1[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),'$window','api',_0x21d0f5('0x142d'),_0x21d0f5('0xc9')];function _0x3488d1(_0x2b59a6,_0x55263f,_0x4e16f4,_0x7a6735,_0x2816b6,_0x32bb04){const _0x331b32=_0x21d0f5,_0x111f60=this;_0x111f60[_0x331b32('0xef0')]={},_0x111f60['localizationMap']=_0x32bb04;const _0x82877c=new Date();_0x82877c[_0x331b32('0x29e')](0x0,0x0,0x0,0x0),_0x111f60['pickerModel']={'dateStart':new Date(_0x82877c[_0x331b32('0x153a')](),_0x82877c['getMonth'](),0x1),'dateEnd':new Date(_0x82877c[_0x331b32('0x153a')](),_0x82877c[_0x331b32('0x2670')]()+0x1,0x0),'selectedTemplate':'TM'},_0x111f60[_0x331b32('0x286f')]=_0x2b34f2,_0x111f60['getSummary']=_0x8927f8,_0x111f60[_0x331b32('0x2785')]=_0x3aaab1;function _0x3aaab1(){const _0x5eaa1d=_0x331b32;return _0x111f60[_0x5eaa1d('0x2532')]=![],_0x7a6735[_0x5eaa1d('0xf34')][_0x5eaa1d('0x2785')]({'id':_0x111f60[_0x5eaa1d('0xef0')]['id'],'sort':'-createdAt,questionId','createdAt':{'$gte':_0x57d4d1()(_0x111f60[_0x5eaa1d('0x1c15')]['dateStart'])['add'](0x0,'hours')[_0x5eaa1d('0x23c1')](0x0,_0x5eaa1d('0xd66'))[_0x5eaa1d('0x23c1')](0x0,'seconds')[_0x5eaa1d('0x1fb1')](0x0,!![])[_0x5eaa1d('0x1826')](),'$lte':_0x57d4d1()(_0x111f60[_0x5eaa1d('0x1c15')][_0x5eaa1d('0xcf9')])['add'](0x17,_0x5eaa1d('0xf51'))[_0x5eaa1d('0x23c1')](0x3b,_0x5eaa1d('0xd66'))[_0x5eaa1d('0x23c1')](0x3b,'seconds')[_0x5eaa1d('0x1fb1')](0x0,!![])[_0x5eaa1d('0x1826')]()},'nolimit':!![]})['$promise'][_0x5eaa1d('0x11bf')](function(_0x288a65){const _0xcc0532=_0x5eaa1d;if(_0x288a65&&_0x288a65['rows']&&typeof _0x288a65[_0xcc0532('0x27d2')]!==_0xcc0532('0x13e9')){_0x111f60['answers']={};for(let _0x53d3ab=0x0,_0x1fd426=_0x288a65[_0xcc0532('0x27d2')];_0x53d3ab<_0x1fd426;_0x53d3ab++){_0x288a65[_0xcc0532('0x19b2')][_0x53d3ab]['questionId']&&(_0x111f60[_0xcc0532('0x2532')]=!![],typeof _0x111f60['answers'][_0x288a65[_0xcc0532('0x19b2')][_0x53d3ab]['questionId']]===_0xcc0532('0x13e9')&&(_0x111f60[_0xcc0532('0xce4')][_0x288a65[_0xcc0532('0x19b2')][_0x53d3ab][_0xcc0532('0x1ffe')]]={'question':_0x288a65[_0xcc0532('0x19b2')][_0x53d3ab][_0xcc0532('0x749')],'answers':{},'sum':0x0}),_0x288a65['rows'][_0x53d3ab][_0xcc0532('0xc1f')]===''&&(_0x288a65['rows'][_0x53d3ab]['answer']=_0xcc0532('0x186a')),_0x111f60['answers'][_0x288a65['rows'][_0x53d3ab][_0xcc0532('0x1ffe')]][_0xcc0532('0xce4')][_0x288a65[_0xcc0532('0x19b2')][_0x53d3ab]['answer']]?_0x111f60[_0xcc0532('0xce4')][_0x288a65[_0xcc0532('0x19b2')][_0x53d3ab][_0xcc0532('0x1ffe')]][_0xcc0532('0xce4')][_0x288a65[_0xcc0532('0x19b2')][_0x53d3ab][_0xcc0532('0xc1f')]]+=0x1:_0x111f60[_0xcc0532('0xce4')][_0x288a65[_0xcc0532('0x19b2')][_0x53d3ab][_0xcc0532('0x1ffe')]]['answers'][_0x288a65[_0xcc0532('0x19b2')][_0x53d3ab]['answer']]=0x1,_0x111f60['answers'][_0x288a65[_0xcc0532('0x19b2')][_0x53d3ab][_0xcc0532('0x1ffe')]][_0xcc0532('0x17cc')]+=0x1);}}})[_0x5eaa1d('0x151d')](function(_0x4758a3){const _0x4db79e=_0x5eaa1d;_0x2816b6[_0x4db79e('0x255')]({'title':_0x4758a3[_0x4db79e('0xff9')]?_0x4db79e('0x574')+_0x4758a3[_0x4db79e('0xff9')]+_0x4db79e('0xb0b')+_0x4758a3['statusText']:_0x4db79e('0xb3a'),'msg':_0x4758a3[_0x4db79e('0x4e8')]?JSON[_0x4db79e('0x3e')](_0x4758a3[_0x4db79e('0x4e8')]):_0x4758a3['toString']()});});}function _0x2b34f2(_0x1e3852){const _0x313612=_0x331b32;_0x111f60[_0x313612('0xef0')]=_0x1e3852,_0x111f60[_0x313612('0x2785')]();}function _0x8927f8(){const _0x14052c=_0x331b32;return _0x7a6735['jscriptyProject'][_0x14052c('0x1db2')]({'id':_0x111f60['project']['id'],'startTime':{'$gte':_0x111f60[_0x14052c('0x1c15')][_0x14052c('0x3b8')],'$lte':_0x57d4d1()(_0x111f60[_0x14052c('0x1c15')][_0x14052c('0xcf9')])['add'](0x17,_0x14052c('0xf51'))[_0x14052c('0x23c1')](0x3b,_0x14052c('0xd66'))[_0x14052c('0x23c1')](0x3b,_0x14052c('0x278'))[_0x14052c('0x1826')]()},'nolimit':!![]})[_0x14052c('0x1549')][_0x14052c('0x11bf')](function(_0x579676){const _0x39100f=_0x14052c;if(typeof _0x579676[_0x39100f('0x1e22')]!==_0x39100f('0x13e9')){const _0xd3964b=[_0x579676['buffer']],_0x32584b=new Blob(_0xd3964b,{'type':_0x579676[_0x39100f('0x19fd')]}),_0x44beae=window['document']['createElement']('a');_0x44beae[_0x39100f('0x1e1b')](_0x39100f('0xead'),URL[_0x39100f('0x44b')](_0x32584b)),_0x44beae['setAttribute']('download',_0x39100f('0x9c4')+_0x111f60[_0x39100f('0xef0')]['id']+'.csv'),_0x44beae['click']();}else _0x2816b6[_0x39100f('0x870')]({'title':'EXPORT','msg':_0x39100f('0x239b')});})[_0x14052c('0x151d')](function(_0x375894){const _0x4718b3=_0x14052c;_0x2816b6[_0x4718b3('0x255')]({'title':_0x375894[_0x4718b3('0xff9')]?'API:'+_0x375894['status']+_0x4718b3('0xb0b')+_0x375894[_0x4718b3('0x212f')]:_0x4718b3('0x21c3'),'msg':_0x375894[_0x4718b3('0x4e8')]?JSON[_0x4718b3('0x3e')](_0x375894[_0x4718b3('0x4e8')]):_0x375894[_0x4718b3('0xaab')]()});});}}const _0x331d67=_0x3488d1;;function _0x517a41(){const _0x36f308=_0x21d0f5,_0x2ad768=this;_0x2ad768[_0x36f308('0xef0')]={},_0x2ad768['optionsBuilder']={'questionTypes':['text',_0x36f308('0x265f'),_0x36f308('0x23ce'),_0x36f308('0xad1'),_0x36f308('0x2350'),_0x36f308('0x139e'),_0x36f308('0x22f7'),_0x36f308('0x260a'),_0x36f308('0x15d3'),_0x36f308('0x1193'),_0x36f308('0x259e')],'elementTypes':[_0x36f308('0x749'),_0x36f308('0x1760')]},_0x2ad768[_0x36f308('0x286f')]=_0x380b01,_0x2ad768[_0x36f308('0x145')]=_0x437088;function _0x437088(_0x49224d){const _0x308954=_0x36f308;if(_0x36f548()[_0x308954('0x1a80')](_0x49224d))return![];try{JSON['parse'](_0x49224d);}catch(_0x809291){return![];}return!![];}function _0x380b01(_0x658887){const _0x274efc=_0x36f308;_0x2ad768[_0x274efc('0xef0')]=_0x658887;if(_0x36f548()[_0x274efc('0x26ca')](_0x658887[_0x274efc('0x1b56')]))_0x2ad768[_0x274efc('0xef0')]['formData']=_0x658887[_0x274efc('0x1b56')];else _0x2ad768[_0x274efc('0x145')](_0x658887[_0x274efc('0x1b56')])?_0x2ad768[_0x274efc('0xef0')][_0x274efc('0x1b56')]=JSON[_0x274efc('0x1850')](_0x658887[_0x274efc('0x1b56')]):_0x2ad768[_0x274efc('0xef0')][_0x274efc('0x1b56')]={};}}const _0x1ce920=_0x517a41;_0x23469f[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1ca2'),'$state','toasty',_0x21d0f5('0x12a5'),'project',_0x21d0f5('0xa62'),'$translate'];function _0x23469f(_0x2fc491,_0xd43271,_0xf2c3a7,_0x45e891,_0xbb42c7,_0x57a87e,_0x3c758d){const _0x4e4eef=_0x21d0f5,_0x2388f7=this;_0x2388f7['newProject']=!![],_0x2388f7[_0x4e4eef('0xef0')]=angular[_0x4e4eef('0x6fb')](_0xbb42c7),_0x2388f7['projects']=_0x57a87e,_0x2388f7[_0x4e4eef('0x134b')]=_0x3c758d[_0x4e4eef('0x10c2')](_0x4e4eef('0x153c'));_0xbb42c7&&_0xbb42c7['name']&&(_0x2388f7['title']+=':\x20'+_0xbb42c7['name']);_0x2388f7[_0x4e4eef('0xd18')]=_0x13f695,_0x2388f7['closeDialog']=_0x4c8226;function _0x13f695(){const _0x49b54a=_0x4e4eef;return _0x45e891[_0x49b54a('0xf34')][_0x49b54a('0x208b')]({'id':_0xbb42c7['id']},_0x2388f7['project'])['$promise'][_0x49b54a('0x11bf')](function(_0x3a9dd5){const _0x43c41c=_0x49b54a;_0x2388f7[_0x43c41c('0xa62')][_0x43c41c('0x880')](_0x3a9dd5[_0x43c41c('0x2866')]()),_0xf2c3a7[_0x43c41c('0x2693')]({'title':_0x43c41c('0x2490'),'msg':_0x2388f7[_0x43c41c('0xef0')][_0x43c41c('0x1909')]?_0x2388f7[_0x43c41c('0xef0')][_0x43c41c('0x1909')]+_0x43c41c('0x9d2'):''}),_0xd43271['go'](_0x43c41c('0x23f7'),{'id':_0x3a9dd5['id']}),_0x4c8226(_0x3a9dd5);})[_0x49b54a('0x151d')](function(_0x21eb70){const _0x46a683=_0x49b54a;if(_0x21eb70[_0x46a683('0x4e8')]&&_0x21eb70[_0x46a683('0x4e8')]['errors']&&_0x21eb70[_0x46a683('0x4e8')]['errors']['length']){_0x2388f7[_0x46a683('0x120f')]=_0x21eb70['data'][_0x46a683('0x120f')]||[{'message':_0x21eb70[_0x46a683('0xaab')](),'type':'api.jscriptyProject.clone'}];for(let _0x15d1c8=0x0;_0x15d1c8<_0x21eb70['data']['errors'][_0x46a683('0x1e22')];_0x15d1c8+=0x1){_0xf2c3a7['error']({'title':_0x21eb70[_0x46a683('0x4e8')][_0x46a683('0x120f')][_0x15d1c8]['type'],'msg':_0x21eb70[_0x46a683('0x4e8')][_0x46a683('0x120f')][_0x15d1c8][_0x46a683('0x1b86')]});}}else _0xf2c3a7[_0x46a683('0x255')]({'title':_0x21eb70[_0x46a683('0xff9')]?'API:'+_0x21eb70[_0x46a683('0xff9')]+_0x46a683('0xb0b')+_0x21eb70[_0x46a683('0x212f')]:_0x46a683('0x1fb5'),'msg':_0x21eb70[_0x46a683('0x4e8')]?JSON['stringify'](_0x21eb70[_0x46a683('0x4e8')][_0x46a683('0x1b86')]):_0x21eb70[_0x46a683('0xaab')]()});});}function _0x4c8226(_0x589948){_0x2fc491['hide'](_0x589948);}}const _0x11b0a9=_0x23469f;_0x17e75b[_0x21d0f5('0x1e9a')]=['$q',_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b80')];function _0x17e75b(_0x1a3f2c,_0x496488,_0x2cdb59){const _0x50177b=_0x21d0f5,_0x5385ca=this;_0x5385ca[_0x50177b('0xef0')]={},_0x5385ca['responseData']={},_0x5385ca[_0x50177b('0x1a19')]={},_0x5385ca[_0x50177b('0x286f')]=_0x177a61,_0x5385ca[_0x50177b('0x1bc')]=_0x452f3c,_0x5385ca['resetViewer']=_0x3aa1de;function _0x177a61(_0x1301b8){const _0x23f970=_0x50177b;_0x5385ca['project']=_0x1301b8,_0x2cdb59[_0x23f970('0x12d8')](_0x23f970('0x2205'),function(_0x2637b6,_0x12e434){const _0xdb7845=_0x23f970;if(_0x12e434[_0xdb7845('0xe21')]&&_0x5385ca[_0xdb7845('0xef0')][_0xdb7845('0x1b56')]&&_0x5385ca[_0xdb7845('0xef0')][_0xdb7845('0x1b56')][_0xdb7845('0x2432')])for(let _0x5ed468=0x0,_0x3c24f9=_0x5385ca['project'][_0xdb7845('0x1b56')][_0xdb7845('0x2432')]['length'];_0x5ed468<_0x3c24f9;_0x5ed468++){if(_0x12e434['currentPage'][_0xdb7845('0x139e')]<_0x5ed468+0x1&&_0x5385ca['project'][_0xdb7845('0x1b56')][_0xdb7845('0x2432')][_0x5ed468][_0xdb7845('0x1780')])for(let _0x18f843=0x0,_0x5873dc=_0x5385ca[_0xdb7845('0xef0')][_0xdb7845('0x1b56')][_0xdb7845('0x2432')][_0x5ed468][_0xdb7845('0x1780')]['length'];_0x18f843<_0x5873dc;_0x18f843++){_0x5385ca['project']['formData'][_0xdb7845('0x2432')][_0x5ed468][_0xdb7845('0x1780')][_0x18f843][_0xdb7845('0x19fd')]===_0xdb7845('0x749')&&_0x5385ca['project'][_0xdb7845('0x1b56')][_0xdb7845('0x2432')][_0x5ed468][_0xdb7845('0x1780')][_0x18f843]['question']&&delete _0x5385ca['responseData'][_0x5385ca[_0xdb7845('0xef0')][_0xdb7845('0x1b56')][_0xdb7845('0x2432')][_0x5ed468][_0xdb7845('0x1780')][_0x18f843][_0xdb7845('0x749')]['id']];}}});}function _0x452f3c(_0x3dcb51){const _0x2c1738=_0x50177b,_0x84adfd=_0x1a3f2c[_0x2c1738('0xa93')](),_0x297019=_0x496488[_0x2c1738('0x132b')]()[_0x2c1738('0x134b')](_0x2c1738('0x1b4a'))[_0x2c1738('0xad7')]('')[_0x2c1738('0xb2e')](_0x2c1738('0x809'))[_0x2c1738('0x1e25')](_0x3dcb51)['ok'](_0x2c1738('0x652'))[_0x2c1738('0x26c9')]('CANCEL');return _0x496488[_0x2c1738('0xb9')](_0x297019)['then'](function(){const _0x483417=_0x2c1738;_0x84adfd[_0x483417('0xa28')](!![]);},function(){const _0xac42ec=_0x2c1738;_0x84adfd[_0xac42ec('0x4a')]();}),_0x84adfd['promise'];}function _0x3aa1de(){const _0x5f254d=_0x50177b;_0x5385ca['formViewer'][_0x5f254d('0xf58')]&&_0x5385ca[_0x5f254d('0x1a19')][_0x5f254d('0xf58')]();}}const _0x11ed7a=_0x17e75b,_0x203191=_0x351988['p']+_0x21d0f5('0x2589');_0x2525ea['$inject']=['$cookies',_0x21d0f5('0x1b80'),'$state','$q',_0x21d0f5('0xb6b'),'$timeout',_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),'toasty',_0x21d0f5('0x12a5'),_0x21d0f5('0x1150')];function _0x2525ea(_0x3a04cd,_0x57863a,_0x51e253,_0x242d7b,_0x40e51d,_0x69f1,_0x1a57d0,_0x2e536c,_0x2a89b1,_0x10886e,_0x4ba612){const _0xabddff=_0x21d0f5,_0x57378b=this;_0x57378b[_0xabddff('0x32a')]=_0x4ba612['getCurrentUser'](),_0x57378b['project']={},_0x57378b[_0xabddff('0x23ff')]={'count':0x0,'rows':[]},_0x57378b[_0xabddff('0x1133')]=[],_0x57378b[_0xabddff('0xb25')],_0x57378b[_0xabddff('0x1f2a')]={'fields':_0xabddff('0xcd2'),'sort':_0xabddff('0x178'),'limit':0xa,'page':0x1},_0x57378b[_0xabddff('0x286f')]=_0x1fe4c3,_0x57378b[_0xabddff('0x560')]=_0xb16b5e,_0x57378b['success']=_0x1e4ac4,_0x57378b[_0xabddff('0xad')]=_0x156e87,_0x57378b[_0xabddff('0x1186')]=_0x59b19d,_0x57378b[_0xabddff('0x242a')]=_0x13331b,_0x57378b[_0xabddff('0x251d')]=_0x3d8828,_0x57378b[_0xabddff('0x1d20')]=_0x2832c5,_0x57378b[_0xabddff('0x17bd')]=_0x45a10d;function _0x1fe4c3(_0x154eff,_0x201d01){const _0x55755b=_0xabddff;_0x57378b[_0x55755b('0xef0')]=_0x154eff,_0x57378b[_0x55755b('0xb25')]=typeof _0x201d01!==_0x55755b('0x13e9')?_0x201d01:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x57378b[_0x55755b('0x1f2a')]['id']=_0x57378b[_0x55755b('0xef0')]['id'],_0x156e87();}function _0xb16b5e(_0xc665b9,_0x1ee18d){const _0x127c4d=_0xabddff,_0x43295a=_0x1a57d0[_0x127c4d('0x132b')]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20session?')[_0x127c4d('0x1d03')](''+(_0xc665b9[_0x127c4d('0x1909')]||_0xc665b9['id']&&_0x36f548()[_0x127c4d('0x24b5')](_0x127c4d('0x2586'))+_0xc665b9['id']||_0x127c4d('0x1225'))+_0x127c4d('0x1c78')+_0x127c4d('0x1a'))[_0x127c4d('0xb2e')](_0x127c4d('0xc0a'))['targetEvent'](_0x1ee18d)['ok']('OK')[_0x127c4d('0x26c9')]('CANCEL');_0x1a57d0[_0x127c4d('0xb9')](_0x43295a)[_0x127c4d('0x11bf')](function(){_0x2832c5(_0xc665b9);},function(){const _0x57385a=_0x127c4d;console[_0x57385a('0xc78')](_0x57385a('0x772'));});}function _0x1e4ac4(_0x2fafd0){_0x57378b['projectSessions']=_0x2fafd0||{'count':0x0,'rows':[]};}function _0x156e87(){const _0x2de899=_0xabddff;_0x57378b[_0x2de899('0x1f2a')][_0x2de899('0x1393')]=(_0x57378b['query'][_0x2de899('0x1c2')]-0x1)*_0x57378b['query'][_0x2de899('0xd5c')],_0x57378b['promise']=_0x10886e['jscriptyProject'][_0x2de899('0xc3c')](_0x57378b[_0x2de899('0x1f2a')],_0x1e4ac4)[_0x2de899('0x1549')];}function _0x59b19d(_0x241348,_0x30f308){const _0x14336d=_0xabddff;_0x1a57d0[_0x14336d('0xb9')]({'controller':'CreateOrEditSessionDialogController','controllerAs':'vm','templateUrl':_0x203191,'parent':angular[_0x14336d('0x1e73')](_0x2e536c[_0x14336d('0x1d2')]),'targetEvent':_0x241348,'clickOutsideToClose':!![],'locals':{'project':_0x57378b['project'],'session':_0x30f308,'sessions':_0x57378b['projectSessions'][_0x14336d('0x19b2')],'license':null,'setting':null,'crudPermissions':_0x57378b['crudPermissions']}});}function _0x13331b(_0x2dd698,_0x2fb8b2){const _0x45d6e5=_0xabddff;_0x1a57d0[_0x45d6e5('0xb9')]({'controller':_0x45d6e5('0x13db'),'controllerAs':'vm','templateUrl':_0x203191,'parent':angular[_0x45d6e5('0x1e73')](_0x2e536c['body']),'targetEvent':_0x2dd698,'clickOutsideToClose':!![],'resolve':{'questions':['apiResolver',function(_0x228eb3){const _0x54a033=_0x45d6e5;return _0x228eb3[_0x54a033('0xa28')](_0x54a033('0x14c6'),{'fields':_0x54a033('0x1a9c'),'sort':'id','id':_0x2fb8b2['id']});}]},'locals':{'project':_0x57378b[_0x45d6e5('0xef0')],'session':_0x2fb8b2}});}function _0x2832c5(_0x4e35ff){const _0x3f36c4=_0xabddff;_0x10886e[_0x3f36c4('0x1d99')][_0x3f36c4('0x2088')]({'id':_0x4e35ff['id']})['$promise'][_0x3f36c4('0x11bf')](function(){const _0x270777=_0x3f36c4;_0x36f548()[_0x270777('0x14a5')](_0x57378b[_0x270777('0x23ff')][_0x270777('0x19b2')],{'id':_0x4e35ff['id']}),_0x57378b[_0x270777('0x23ff')][_0x270777('0x27d2')]-=0x1,!_0x57378b[_0x270777('0x23ff')][_0x270777('0x19b2')][_0x270777('0x1e22')]&&_0x156e87(),_0x2a89b1[_0x270777('0x2693')]({'title':'Session\x20deleted!','msg':_0x4e35ff[_0x270777('0x1909')]?_0x4e35ff[_0x270777('0x1909')]+_0x270777('0x433'):''});})[_0x3f36c4('0x151d')](function(_0x1b901b){const _0x279f09=_0x3f36c4;if(_0x1b901b[_0x279f09('0x4e8')]&&_0x1b901b[_0x279f09('0x4e8')][_0x279f09('0x120f')]&&_0x1b901b['data']['errors'][_0x279f09('0x1e22')]){_0x57378b[_0x279f09('0x120f')]=_0x1b901b[_0x279f09('0x4e8')][_0x279f09('0x120f')]||[{'message':_0x1b901b[_0x279f09('0xaab')](),'type':_0x279f09('0xe8')}];for(let _0x12ea8d=0x0;_0x12ea8d<_0x1b901b[_0x279f09('0x4e8')][_0x279f09('0x120f')][_0x279f09('0x1e22')];_0x12ea8d++){_0x2a89b1['error']({'title':_0x1b901b[_0x279f09('0x4e8')][_0x279f09('0x120f')][_0x12ea8d]['type'],'msg':_0x1b901b[_0x279f09('0x4e8')][_0x279f09('0x120f')][_0x12ea8d]['message']});}}else _0x2a89b1[_0x279f09('0x255')]({'title':_0x1b901b[_0x279f09('0xff9')]?_0x279f09('0x574')+_0x1b901b[_0x279f09('0xff9')]+_0x279f09('0xb0b')+_0x1b901b[_0x279f09('0x212f')]:_0x279f09('0xe8'),'msg':_0x1b901b['data']?JSON[_0x279f09('0x3e')](_0x1b901b['data'][_0x279f09('0x1b86')]):_0x1b901b[_0x279f09('0x1b86')]||_0x1b901b[_0x279f09('0xaab')]()});});}function _0x3d8828(){const _0x2b2e1e=_0xabddff,_0x959e8a=angular[_0x2b2e1e('0x6fb')](_0x57378b[_0x2b2e1e('0x1133')]);return _0x57378b['selectedProjectSessions']=[],_0x959e8a;}function _0x45a10d(_0xce014d){const _0x3c479b=_0xabddff,_0x1181e5=_0x1a57d0[_0x3c479b('0x132b')]()[_0x3c479b('0x134b')](_0x3c479b('0x23b4'))[_0x3c479b('0x1d03')](''+_0x57378b[_0x3c479b('0x1133')][_0x3c479b('0x1e22')]+_0x3c479b('0xac6')+_0x3c479b('0x1a'))['ariaLabel'](_0x3c479b('0x197f'))[_0x3c479b('0x1e25')](_0xce014d)['ok']('OK')[_0x3c479b('0x26c9')]('CANCEL');_0x1a57d0[_0x3c479b('0xb9')](_0x1181e5)[_0x3c479b('0x11bf')](function(){const _0x5e3dd1=_0x3c479b;_0x57378b['selectedProjectSessions'][_0x5e3dd1('0x1f88')](function(_0x4f9d83){_0x2832c5(_0x4f9d83);}),_0x57378b[_0x5e3dd1('0x1133')]=[];});}let _0x2dda6f=!![],_0x51fce7=0x1;_0x57863a['$watch'](_0xabddff('0x1d12'),function(_0x2e1f64,_0x434c29){const _0x3dae07=_0xabddff;_0x2dda6f?_0x69f1(function(){_0x2dda6f=![];}):(!_0x434c29&&(_0x51fce7=_0x57378b[_0x3dae07('0x1f2a')][_0x3dae07('0x1c2')]),_0x2e1f64!==_0x434c29&&(_0x57378b[_0x3dae07('0x1f2a')][_0x3dae07('0x1c2')]=0x1),!_0x2e1f64&&(_0x57378b[_0x3dae07('0x1f2a')][_0x3dae07('0x1c2')]=_0x51fce7),_0x156e87());});}const _0x5d614e=_0x2525ea;_0x43376[_0x21d0f5('0x1e9a')]=['$scope',_0x21d0f5('0xcbc'),_0x21d0f5('0x16b9'),_0x21d0f5('0x1ca2'),_0x21d0f5('0x142d'),_0x21d0f5('0x1225'),_0x21d0f5('0x11c0'),'project'];function _0x43376(_0x33cb73,_0x3992f9,_0x4b093e,_0x3eb21f,_0x5bb6cf,_0x46222e,_0x1bbde3,_0x256dca){const _0x4ef6f7=_0x21d0f5,_0x2d9459=this;_0x2d9459['title']=_0x4ef6f7('0x2775'),_0x2d9459[_0x4ef6f7('0x1225')]=_0x46222e,_0x2d9459['questions']=_0x1bbde3,_0x2d9459[_0x4ef6f7('0xef0')]=_0x256dca;function _0x12aceb(_0x4f3dd0){const _0x2b8add=_0x4ef6f7;_0x3eb21f[_0x2b8add('0x237e')](_0x4f3dd0);}_0x2d9459[_0x4ef6f7('0xc4e')]=_0x12aceb;}const _0x2e40a0=_0x43376,_0xb6915d=_0x351988['p']+_0x21d0f5('0xa5c');_0x48ad8b['$inject']=[_0x21d0f5('0xcbc'),'$location','$mdDialog',_0x21d0f5('0x1b30'),_0x21d0f5('0xb6b'),_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1'),_0x21d0f5('0x12a5'),_0x21d0f5('0x142d'),_0x21d0f5('0x1150'),_0x21d0f5('0xef0'),_0x21d0f5('0x1d63')];function _0x48ad8b(_0x547206,_0x3bdbfd,_0x719979,_0x47df6f,_0x3ddbce,_0x5a722f,_0x16f3e2,_0x2f655a,_0x6b1ef5,_0x117414,_0x2bdc3c,_0x2761cb){const _0x3376dc=_0x21d0f5,_0x465937=this;_0x465937['currentUser']=_0x117414[_0x3376dc('0x2428')](),_0x465937[_0x3376dc('0x17ff')]=_0x5a722f,_0x465937[_0x3376dc('0x23e1')]=_0x16f3e2,_0x465937['passwordPattern']=_0x465937[_0x3376dc('0x23e1')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x465937[_0x3376dc('0x1d9a')]=_0x3bdbfd[_0x3376dc('0x1797')]()+_0x3376dc('0x16a1')+_0x3bdbfd[_0x3376dc('0x14ec')](),_0x465937[_0x3376dc('0xef0')]=_0x2bdc3c||_0x547206[_0x3376dc('0x1ab3')][_0x3376dc('0xef0')]||{},_0x465937['userProfileSection']=_0x2761cb&&_0x2761cb['count']==0x1?_0x2761cb[_0x3376dc('0x19b2')][0x0]:null,_0x465937[_0x3376dc('0xb25')]=_0x117414['parseCrudPermissions'](_0x465937[_0x3376dc('0x1d63')]?_0x465937[_0x3376dc('0x1d63')][_0x3376dc('0xb25')]:null),_0x465937[_0x3376dc('0x2c9')]={},_0x465937[_0x3376dc('0x1179')]=_0x547206[_0x3376dc('0x1ab3')][_0x3376dc('0x205c')]||0x0,_0x465937[_0x3376dc('0xf0f')]=_0x291dfa,_0x465937['alert']=_0x6b1ef5['info'],_0x465937[_0x3376dc('0x2e3')]=_0x98147a,_0x465937['saveProject']=_0x6dd011;function _0x291dfa(_0x13af31,_0x2fd428){const _0x35edb0=_0x3376dc;_0x719979[_0x35edb0('0xb9')]({'controller':_0x35edb0('0x104'),'controllerAs':'vm','templateUrl':_0xb6915d,'parent':angular['element'](_0x47df6f[_0x35edb0('0x1d2')]),'targetEvent':_0x2fd428,'clickOutsideToClose':!![],'locals':{'project':_0x13af31,'projects':_0x465937['projects']?_0x465937[_0x35edb0('0xa62')]['rows']:[],'crudPermissions':_0x465937[_0x35edb0('0xb25')]}});}function _0x98147a(){const _0x4ba311=_0x3376dc;_0x547206['go'](_0x4ba311('0xcfc'),{},{'reload':_0x4ba311('0xcfc')});}function _0x6dd011(){const _0x54a65d=_0x3376dc;_0x2f655a[_0x54a65d('0xf34')][_0x54a65d('0x5ab')]({'id':_0x465937['project']['id']},_0x465937[_0x54a65d('0xef0')])['$promise'][_0x54a65d('0x11bf')](function(){const _0x3f1701=_0x54a65d;_0x6b1ef5['success']({'title':'Project\x20updated!','msg':_0x465937[_0x3f1701('0xef0')][_0x3f1701('0x1909')]?_0x465937[_0x3f1701('0xef0')][_0x3f1701('0x1909')]+_0x3f1701('0xd7'):''});})[_0x54a65d('0x151d')](function(_0x3f1850){const _0x1579d6=_0x54a65d;_0x6b1ef5[_0x1579d6('0x255')]({'title':_0x3f1850[_0x1579d6('0xff9')]?_0x1579d6('0x574')+_0x3f1850[_0x1579d6('0xff9')]+_0x1579d6('0xb0b')+_0x3f1850[_0x1579d6('0x212f')]:_0x1579d6('0xe8'),'msg':_0x3f1850['data']?JSON['stringify'](_0x3f1850['data']):_0x3f1850[_0x1579d6('0xaab')]()});});}}const _0xc43c0d=_0x48ad8b,_0x24bbd5=_0x351988['p']+_0x21d0f5('0x1f8');_0x3285a6[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0x2143'),_0x21d0f5('0xcbc'),_0x21d0f5('0x18fe'),_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),_0x21d0f5('0x17f5'),_0x21d0f5('0xb6b'),_0x21d0f5('0xa62'),_0x21d0f5('0x25bc'),_0x21d0f5('0x1d63'),_0x21d0f5('0x12a5'),_0x21d0f5('0xda9'),'toasty',_0x21d0f5('0x1150'),_0x21d0f5('0x17ff'),'setting'];function _0x3285a6(_0x325e2f,_0x5e2288,_0x1bb2ea,_0x15d4a9,_0x2a7459,_0x4ffd13,_0x416d6d,_0x674f22,_0x571d87,_0x4aa215,_0x318ee1,_0x4a6011,_0x323b36,_0x3ea52b,_0xb9511f,_0x1fa7dc,_0x1323d5){const _0x50944d=_0x21d0f5,_0x1bdfa6=this;_0x1bdfa6[_0x50944d('0x17ff')]=_0x1fa7dc,_0x1bdfa6[_0x50944d('0x23e1')]=_0x1323d5,_0x1bdfa6[_0x50944d('0x32a')]=_0xb9511f[_0x50944d('0x2428')](),_0x1bdfa6[_0x50944d('0xa62')]=_0x571d87||{'count':0x0,'rows':[]},_0x1bdfa6[_0x50944d('0x25bc')]=_0x4aa215,_0x1bdfa6[_0x50944d('0x1d63')]=_0x318ee1&&_0x318ee1[_0x50944d('0x27d2')]==0x1?_0x318ee1['rows'][0x0]:null,_0x1bdfa6[_0x50944d('0xb25')]=_0xb9511f[_0x50944d('0x1530')](_0x1bdfa6[_0x50944d('0x1d63')]?_0x1bdfa6[_0x50944d('0x1d63')][_0x50944d('0xb25')]:null),_0x1bdfa6['table']=_0x50944d('0xa62'),_0x1bdfa6['listOrder']='',_0x1bdfa6[_0x50944d('0xe3c')]=null,_0x1bdfa6['selectedProjects']=[],_0x1bdfa6[_0x50944d('0x1f2a')]={'fields':_0x50944d('0x18ac'),'sort':_0x50944d('0x1c74'),'limit':0xa,'page':0x1},_0x1bdfa6[_0x50944d('0x757')]=_0x4b2982,_0x1bdfa6[_0x50944d('0xf0f')]=_0x14615d,_0x1bdfa6[_0x50944d('0xc91')]=_0x25667b,_0x1bdfa6[_0x50944d('0x549')]=_0x5d3d6b,_0x1bdfa6[_0x50944d('0x2693')]=_0x19d22a,_0x1bdfa6['getProjects']=_0x19a86c,_0x1bdfa6[_0x50944d('0x1466')]=_0x1e3d35,_0x1bdfa6[_0x50944d('0x8c4')]=_0x4ca474,_0x1bdfa6[_0x50944d('0x266a')]=_0x360c8d,_0x1bdfa6[_0x50944d('0x12d9')]=_0x2e23b4,_0x1bdfa6['deselectProjects']=_0x484acb,_0x1bdfa6[_0x50944d('0x1044')]=_0xd54b04;function _0x4b2982(_0x69d214){const _0x211f9f=_0x50944d;_0x1bb2ea['go']('app.jscripty.projects.edit',{'id':_0x69d214['id'],'project':_0x69d214,'crudPermissions':_0x1bdfa6[_0x211f9f('0xb25')]});}function _0x14615d(_0x564c61,_0x4ed5d6){const _0x22fa43=_0x50944d;_0x2a7459[_0x22fa43('0xb9')]({'controller':'ProjectcloneController','controllerAs':'vm','templateUrl':_0xb6915d,'parent':angular[_0x22fa43('0x1e73')](_0x4ffd13[_0x22fa43('0x1d2')]),'targetEvent':_0x4ed5d6,'clickOutsideToClose':!![],'locals':{'project':_0x564c61,'projects':_0x1bdfa6[_0x22fa43('0xa62')]?_0x1bdfa6[_0x22fa43('0xa62')][_0x22fa43('0x19b2')]:[],'crudPermissions':_0x1bdfa6[_0x22fa43('0xb25')]}});}function _0x25667b(_0x2e837b){const _0x40108f=_0x50944d;_0x1bb2ea['go'](_0x40108f('0x23f7'),{'id':_0x2e837b['id'],'tab':0x3});}function _0x5d3d6b(_0x3c8951,_0x5a1196){const _0x32a4ab=_0x50944d,_0x2a4a00=_0x2a7459[_0x32a4ab('0x132b')]()[_0x32a4ab('0x134b')](_0x32a4ab('0x1796')+_0x36f548()[_0x32a4ab('0x13cf')](_0x32a4ab('0xef0'))+'?')[_0x32a4ab('0x1d03')](''+(_0x3c8951[_0x32a4ab('0x1909')]||_0x32a4ab('0xef0'))+_0x32a4ab('0x1c78')+'\x20will\x20be\x20deleted.')[_0x32a4ab('0xb2e')](_0x32a4ab('0x986'))[_0x32a4ab('0x1e25')](_0x5a1196)['ok']('OK')[_0x32a4ab('0x26c9')](_0x32a4ab('0x772'));_0x2a7459[_0x32a4ab('0xb9')](_0x2a4a00)[_0x32a4ab('0x11bf')](function(){_0x4ca474(_0x3c8951);},function(){const _0x34c62d=_0x32a4ab;console[_0x34c62d('0xc78')](_0x34c62d('0x772'));});}let _0x161f0f=!![],_0x44263a=0x1;_0x325e2f[_0x50944d('0x2087')](_0x50944d('0x842'),function(_0x58c791,_0x51d727){const _0x1f78fb=_0x50944d;_0x161f0f?_0x416d6d(function(){_0x161f0f=![];}):(!_0x51d727&&(_0x44263a=_0x1bdfa6[_0x1f78fb('0x1f2a')][_0x1f78fb('0x1c2')]),_0x58c791!==_0x51d727&&(_0x1bdfa6[_0x1f78fb('0x1f2a')][_0x1f78fb('0x1c2')]=0x1),!_0x58c791&&(_0x1bdfa6[_0x1f78fb('0x1f2a')][_0x1f78fb('0x1c2')]=_0x44263a),_0x1bdfa6['getProjects']());});function _0x19d22a(_0x4b1b33){const _0x1b7efe=_0x50944d;_0x1bdfa6[_0x1b7efe('0xa62')]=_0x4b1b33||{'count':0x0,'rows':[]};}function _0x19a86c(){const _0x13f08c=_0x50944d;_0x1bdfa6[_0x13f08c('0x1f2a')][_0x13f08c('0x1393')]=(_0x1bdfa6[_0x13f08c('0x1f2a')][_0x13f08c('0x1c2')]-0x1)*_0x1bdfa6['query'][_0x13f08c('0xd5c')],_0xb9511f[_0x13f08c('0x4ee')](_0x13f08c('0xf45'))?_0x1bdfa6[_0x13f08c('0x13f')]=_0x4a6011[_0x13f08c('0xf34')][_0x13f08c('0xbaa')](_0x1bdfa6[_0x13f08c('0x1f2a')],_0x19d22a)[_0x13f08c('0x1549')]:(_0x1bdfa6[_0x13f08c('0x1f2a')]['id']=_0x1bdfa6[_0x13f08c('0x25bc')]['id'],_0x1bdfa6[_0x13f08c('0x1f2a')][_0x13f08c('0xe6')]=_0x13f08c('0x70c'),_0x1bdfa6[_0x13f08c('0x13f')]=_0x4a6011['userProfile'][_0x13f08c('0x228e')](_0x1bdfa6['query'],_0x19d22a)[_0x13f08c('0x1549')]);}function _0x1e3d35(_0x587e3b,_0x167539){const _0x53b047=_0x50944d;_0x2a7459[_0x53b047('0xb9')]({'controller':'CreateOrEditProjectDialogController','controllerAs':'vm','templateUrl':_0x24bbd5,'parent':angular['element'](_0x4ffd13[_0x53b047('0x1d2')]),'targetEvent':_0x587e3b,'clickOutsideToClose':!![],'locals':{'project':_0x167539,'projects':_0x1bdfa6[_0x53b047('0xa62')]['rows'],'license':_0x1bdfa6[_0x53b047('0x17ff')],'setting':_0x1bdfa6[_0x53b047('0x23e1')],'crudPermissions':_0x1bdfa6[_0x53b047('0xb25')]}});}function _0x4ca474(_0x5802c8){const _0x3a6ca5=_0x50944d;_0x4a6011[_0x3a6ca5('0xf34')]['delete']({'id':_0x5802c8['id']})[_0x3a6ca5('0x1549')][_0x3a6ca5('0x11bf')](function(){const _0x5a6282=_0x3a6ca5;_0x36f548()[_0x5a6282('0x14a5')](_0x1bdfa6['projects'][_0x5a6282('0x19b2')],{'id':_0x5802c8['id']}),_0x1bdfa6['projects'][_0x5a6282('0x27d2')]-=0x1,!_0x1bdfa6[_0x5a6282('0xa62')][_0x5a6282('0x19b2')][_0x5a6282('0x1e22')]&&_0x1bdfa6[_0x5a6282('0x145e')](),_0x3ea52b[_0x5a6282('0x2693')]({'title':_0x36f548()[_0x5a6282('0x13cf')](_0x5a6282('0x14d7'))+_0x5a6282('0x2113'),'msg':_0x5802c8[_0x5a6282('0x1909')]?_0x5802c8[_0x5a6282('0x1909')]+_0x5a6282('0x433'):''});})[_0x3a6ca5('0x151d')](function(_0x33a0bd){const _0x4f978a=_0x3a6ca5;if(_0x33a0bd[_0x4f978a('0x4e8')]&&_0x33a0bd[_0x4f978a('0x4e8')][_0x4f978a('0x120f')]&&_0x33a0bd[_0x4f978a('0x4e8')][_0x4f978a('0x120f')]['length']){_0x1bdfa6['errors']=_0x33a0bd[_0x4f978a('0x4e8')][_0x4f978a('0x120f')]||[{'message':_0x33a0bd[_0x4f978a('0xaab')](),'type':'SYSTEM:DELETEjscriptyProject'}];for(let _0xcdb4d3=0x0;_0xcdb4d3<_0x33a0bd[_0x4f978a('0x4e8')][_0x4f978a('0x120f')]['length'];_0xcdb4d3++){_0x3ea52b[_0x4f978a('0x255')]({'title':_0x33a0bd['data'][_0x4f978a('0x120f')][_0xcdb4d3]['type'],'msg':_0x33a0bd['data'][_0x4f978a('0x120f')][_0xcdb4d3][_0x4f978a('0x1b86')]});}}else _0x3ea52b[_0x4f978a('0x255')]({'title':_0x33a0bd['status']?_0x4f978a('0x574')+_0x33a0bd[_0x4f978a('0xff9')]+_0x4f978a('0xb0b')+_0x33a0bd[_0x4f978a('0x212f')]:_0x4f978a('0x13f3'),'msg':_0x33a0bd[_0x4f978a('0x4e8')]?JSON[_0x4f978a('0x3e')](_0x33a0bd['data'][_0x4f978a('0x1b86')]):_0x33a0bd['message']||_0x33a0bd['toString']()});});}function _0x360c8d(){const _0x70e6ce=_0x50944d,_0x5f3f7c=angular['copy'](_0x1bdfa6[_0x70e6ce('0x24b1')]);return _0x1bdfa6['selectedProjects']=[],_0x5f3f7c;}function _0x2e23b4(_0x598c67){const _0x42d497=_0x50944d,_0x5f26b0=_0x2a7459[_0x42d497('0x132b')]()[_0x42d497('0x134b')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20projects?')[_0x42d497('0x1d03')](_0x42d497('0x2061')+_0x1bdfa6[_0x42d497('0x24b1')][_0x42d497('0x1e22')]+_0x42d497('0xac6')+_0x42d497('0x1a'))['ariaLabel'](_0x42d497('0x1f48'))[_0x42d497('0x1e25')](_0x598c67)['ok']('OK')['cancel']('CANCEL');_0x2a7459['show'](_0x5f26b0)[_0x42d497('0x11bf')](function(){const _0x4b0add=_0x42d497;_0x1bdfa6[_0x4b0add('0x24b1')]['forEach'](function(_0x745be7){_0x4ca474(_0x745be7);}),_0x1bdfa6[_0x4b0add('0x24b1')]=[];});}function _0x484acb(){const _0x2d4c89=_0x50944d;_0x1bdfa6[_0x2d4c89('0x24b1')]=[];}function _0xd54b04(){const _0x40cf10=_0x50944d;_0x1bdfa6[_0x40cf10('0x24b1')]=_0x1bdfa6[_0x40cf10('0xa62')]['rows'];}}const _0x59474a=_0x3285a6;_0x39f436[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x13d6'),_0x21d0f5('0xc3e')];function _0x39f436(_0x1ffd29,_0x4bd41a){const _0x8d5005=_0x21d0f5;_0x1ffd29[_0x8d5005('0x2124')](_0x8d5005('0x1f9f'),{'abstract':!![],'url':_0x8d5005('0x49a')})[_0x8d5005('0x2124')]('app.jscripty.projects',{'url':_0x8d5005('0x16d'),'views':{'content@app':{'templateUrl':_0x2a6b66,'controller':_0x8d5005('0xcd1')}},'resolve':{'projects':[_0x8d5005('0x218e'),_0x8d5005('0x1150'),function(_0x52cfab,_0x194462){const _0x2a3225=_0x8d5005;return _0x194462[_0x2a3225('0x4ee')]('admin')?_0x52cfab['resolve']('jscriptyProject@get',{'fields':_0x2a3225('0x18ac'),'sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x52cfab[_0x2a3225('0xa28')]('userProfile@getResources',{'id':_0x194462['getCurrentUser']()[_0x2a3225('0x781')],'section':'Projects','fields':_0x2a3225('0x18ac'),'sort':_0x2a3225('0x1c74'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x8d5005('0x218e'),_0x8d5005('0x1150'),function(_0x23bc08,_0xd3aebf){const _0x57a1e1=_0x8d5005;return _0xd3aebf[_0x57a1e1('0x4ee')](_0x57a1e1('0xf45'))?null:_0x23bc08[_0x57a1e1('0xa28')]('userProfile@get',{'fields':_0x57a1e1('0xd30'),'id':_0xd3aebf[_0x57a1e1('0x2428')]()['userProfileId']});}],'userProfileSection':['apiResolver',_0x8d5005('0x1150'),function(_0x1da569,_0x371d07){const _0x1aa055=_0x8d5005;return _0x371d07[_0x1aa055('0x4ee')](_0x1aa055('0xf45'))?null:_0x1da569[_0x1aa055('0xa28')](_0x1aa055('0x2762'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x371d07[_0x1aa055('0x2428')]()[_0x1aa055('0x781')],'sectionId':0x6a5});}]},'authenticate':!![],'permissionId':0x6a5,'bodyClass':_0x8d5005('0x163c')})[_0x8d5005('0x2124')](_0x8d5005('0x23f7'),{'url':'/:id?tab','params':{'project':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x59c5aa,'controller':_0x8d5005('0x714')}},'resolve':{'project':[_0x8d5005('0x218e'),'$stateParams',function(_0x3d4106,_0x5cf30e){const _0x21eb53=_0x8d5005;return _0x3d4106[_0x21eb53('0xa28')](_0x21eb53('0x525'),{'fields':_0x21eb53('0x18ac'),'id':_0x5cf30e['id']});}],'userProfileSection':[_0x8d5005('0x218e'),_0x8d5005('0x1150'),function(_0xd35a37,_0x23cf72){const _0x571ee4=_0x8d5005;return _0xd35a37[_0x571ee4('0xa28')]('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x23cf72[_0x571ee4('0x2428')]()[_0x571ee4('0x781')],'sectionId':0x6a5});}]},'authenticate':!![],'permissionId':0x6a5,'bodyClass':'jscripty'}),_0x4bd41a[_0x8d5005('0x471')](_0x8d5005('0xd9a'));}angular[_0x21d0f5('0x2768')](_0x21d0f5('0x1f9f'),[_0x21d0f5('0x22d5'),_0x21d0f5('0x1fb3'),_0x21d0f5('0x3c4'),'flow',_0x21d0f5('0xd61'),_0x21d0f5('0x2096'),_0x21d0f5('0x24a2'),'ngAria',_0x21d0f5('0x113d'),_0x21d0f5('0x21d5'),_0x21d0f5('0x29b'),_0x21d0f5('0xc46'),'mwFormUtils',_0x21d0f5('0xf49'),_0x21d0f5('0x31e'),_0x21d0f5('0xed9'),_0x21d0f5('0x2625'),_0x21d0f5('0x1622'),_0x21d0f5('0x1584'),'angular.filter'])[_0x21d0f5('0x53a')](_0x39f436)[_0x21d0f5('0x23eb')]('CreateOrEditProjectDialogController',_0x3d9eb2)[_0x21d0f5('0x23eb')](_0x21d0f5('0x2503'),_0x331d67)[_0x21d0f5('0x23eb')](_0x21d0f5('0x64b'),_0x1ce920)[_0x21d0f5('0x23eb')](_0x21d0f5('0x104'),_0x11b0a9)[_0x21d0f5('0x23eb')](_0x21d0f5('0xa45'),_0x11ed7a)[_0x21d0f5('0x23eb')](_0x21d0f5('0x75b'),_0x5d614e)[_0x21d0f5('0x23eb')]('ShowQuestionsSessionDialogController',_0x2e40a0)['controller'](_0x21d0f5('0x468'),_0xc43c0d)[_0x21d0f5('0x23eb')]('JscriptyProjectsController',_0x59474a);const _0x169fe0=_0x351988['p']+'src/js/modules/main/apps/marketplace/views/plugins/plugins.html/plugins.html',_0xba2b4=_0x351988['p']+_0x21d0f5('0x130e');_0x495068[_0x21d0f5('0x1e9a')]=['$scope',_0x21d0f5('0xcbc'),'$location','$mdDialog','$q',_0x21d0f5('0xb6b'),_0x21d0f5('0x142d'),_0x21d0f5('0x924'),_0x21d0f5('0x1674'),_0x21d0f5('0x12a5'),'Auth',_0x21d0f5('0x17ff'),'setting',_0x21d0f5('0xb25')];function _0x495068(_0x1f76f6,_0x269ec3,_0x1007b5,_0x5c0055,_0x55f793,_0x2e83b9,_0x3b708f,_0x4b7b97,_0x4dbf49,_0x5c2cf5,_0x9a0817,_0x3afe80,_0x37540d,_0x54cd1e){const _0x4965b3=_0x21d0f5,_0x2fa9af=this;_0x2fa9af[_0x4965b3('0x32a')]=_0x9a0817[_0x4965b3('0x2428')](),_0x2fa9af[_0x4965b3('0x120f')]=[],_0x2fa9af[_0x4965b3('0x23e1')]=_0x37540d,_0x2fa9af[_0x4965b3('0x17ff')]=_0x3afe80,_0x2fa9af[_0x4965b3('0xb25')]=_0x54cd1e,_0x2fa9af[_0x4965b3('0x2c9')]={},_0x2fa9af['passwordPattern']=_0x2fa9af[_0x4965b3('0x23e1')]&&_0x2fa9af[_0x4965b3('0x23e1')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2fa9af[_0x4965b3('0x134b')]=_0x4965b3('0x183a'),_0x2fa9af['plugin']=angular[_0x4965b3('0x6fb')](_0x4dbf49),_0x2fa9af['plugins']=_0x4b7b97,_0x2fa9af['newPlugin']=![];!_0x2fa9af['plugin']&&(_0x2fa9af[_0x4965b3('0x1674')]={},_0x2fa9af[_0x4965b3('0x134b')]='MARKETPLACE.NEW_PLUGIN',_0x2fa9af[_0x4965b3('0x53b')]=!![]);_0x2fa9af['addNewPlugin']=_0x2224ff,_0x2fa9af['savePlugin']=_0x309582,_0x2fa9af[_0x4965b3('0x614')]=_0x5a1e11,_0x2fa9af['getDateFromString']=_0x3501fa,_0x2fa9af['closeDialog']=_0x1d62a9;function _0x2224ff(){const _0xf9e05f=_0x4965b3;_0x2fa9af[_0xf9e05f('0x120f')]=[],_0x5c2cf5['plugin'][_0xf9e05f('0x259')](_0x2fa9af[_0xf9e05f('0x1674')])['$promise'][_0xf9e05f('0x11bf')](function(_0x44f920){const _0x199f5e=_0xf9e05f;_0x2fa9af[_0x199f5e('0x924')][_0x199f5e('0x880')](_0x44f920[_0x199f5e('0x2866')]()),_0x3b708f[_0x199f5e('0x2693')]({'title':'Plugin\x20properly\x20created','msg':_0x2fa9af[_0x199f5e('0x1674')]['name']?_0x2fa9af['plugin']['name']+_0x199f5e('0x7fb'):''}),_0x1d62a9(_0x44f920);})[_0xf9e05f('0x151d')](function(_0x2f4500){const _0x4d8f91=_0xf9e05f;if(_0x2f4500[_0x4d8f91('0x4e8')]&&_0x2f4500[_0x4d8f91('0x4e8')][_0x4d8f91('0x120f')]&&_0x2f4500['data'][_0x4d8f91('0x120f')][_0x4d8f91('0x1e22')]){_0x2fa9af[_0x4d8f91('0x120f')]=_0x2f4500[_0x4d8f91('0x4e8')][_0x4d8f91('0x120f')]||[{'message':_0x2f4500[_0x4d8f91('0xaab')](),'type':_0x4d8f91('0x27b')}];for(let _0xb9df87=0x0;_0xb9df87<_0x2f4500[_0x4d8f91('0x4e8')][_0x4d8f91('0x120f')]['length'];_0xb9df87+=0x1){_0x3b708f[_0x4d8f91('0x255')]({'title':_0x2f4500['data'][_0x4d8f91('0x120f')][_0xb9df87][_0x4d8f91('0x19fd')],'msg':_0x2f4500[_0x4d8f91('0x4e8')][_0x4d8f91('0x120f')][_0xb9df87]['message']});}}else _0x3b708f[_0x4d8f91('0x255')]({'title':_0x2f4500[_0x4d8f91('0xff9')]?_0x4d8f91('0x574')+_0x2f4500[_0x4d8f91('0xff9')]+_0x4d8f91('0xb0b')+_0x2f4500[_0x4d8f91('0x212f')]:_0x4d8f91('0x27b'),'msg':_0x2f4500['data']?JSON['stringify'](_0x2f4500['data'][_0x4d8f91('0x1b86')]):_0x2f4500['toString']()});});}function _0x309582(){const _0x55c4a2=_0x4965b3;_0x2fa9af[_0x55c4a2('0x120f')]=[],_0x5c2cf5[_0x55c4a2('0x1674')]['update']({'id':_0x2fa9af[_0x55c4a2('0x1674')]['id']},_0x2fa9af[_0x55c4a2('0x1674')])[_0x55c4a2('0x1549')][_0x55c4a2('0x11bf')](function(_0x52adfb){const _0x386b8b=_0x55c4a2,_0x183a95=_0x36f548()[_0x386b8b('0x1ad4')](_0x2fa9af[_0x386b8b('0x924')],{'id':_0x52adfb['id']});_0x183a95&&_0x36f548()[_0x386b8b('0x47b')](_0x183a95,_0x36f548()[_0x386b8b('0x258')](_0x52adfb['toJSON'](),_0x36f548()[_0x386b8b('0xe22')](_0x183a95))),_0x3b708f['success']({'title':_0x386b8b('0x9c9'),'msg':_0x2fa9af[_0x386b8b('0x1674')]['name']?_0x2fa9af[_0x386b8b('0x1674')][_0x386b8b('0x1909')]+_0x386b8b('0x1a78'):''}),_0x1d62a9(_0x52adfb);})[_0x55c4a2('0x151d')](function(_0x9cf251){const _0x2153d2=_0x55c4a2;if(_0x9cf251['data']&&_0x9cf251[_0x2153d2('0x4e8')][_0x2153d2('0x120f')]&&_0x9cf251[_0x2153d2('0x4e8')][_0x2153d2('0x120f')]['length']){_0x2fa9af[_0x2153d2('0x120f')]=_0x9cf251[_0x2153d2('0x4e8')][_0x2153d2('0x120f')]||[{'message':_0x9cf251['toString'](),'type':_0x2153d2('0x387')}];for(let _0x2a1df6=0x0;_0x2a1df6<_0x9cf251[_0x2153d2('0x4e8')][_0x2153d2('0x120f')][_0x2153d2('0x1e22')];_0x2a1df6++){_0x3b708f[_0x2153d2('0x255')]({'title':_0x9cf251[_0x2153d2('0x4e8')][_0x2153d2('0x120f')][_0x2a1df6][_0x2153d2('0x19fd')],'msg':_0x9cf251[_0x2153d2('0x4e8')][_0x2153d2('0x120f')][_0x2a1df6][_0x2153d2('0x1b86')]});}}else _0x3b708f[_0x2153d2('0x255')]({'title':_0x9cf251['status']?_0x2153d2('0x574')+_0x9cf251[_0x2153d2('0xff9')]+_0x2153d2('0xb0b')+_0x9cf251[_0x2153d2('0x212f')]:'api.plugin.update','msg':_0x9cf251[_0x2153d2('0x4e8')]?JSON['stringify'](_0x9cf251[_0x2153d2('0x4e8')][_0x2153d2('0x1b86')]):_0x9cf251[_0x2153d2('0xaab')]()});});}function _0x5a1e11(_0xc0d45a){const _0x7a16d8=_0x4965b3;_0x2fa9af['errors']=[];const _0x3aabd8=_0x5c0055[_0x7a16d8('0x132b')]()[_0x7a16d8('0x134b')]('Are\x20you\x20sure?')[_0x7a16d8('0x252a')](_0x7a16d8('0x1269'))[_0x7a16d8('0xb2e')](_0x7a16d8('0xe0d'))['ok']('Delete')[_0x7a16d8('0x26c9')](_0x7a16d8('0x784'))[_0x7a16d8('0x1e25')](_0xc0d45a);_0x5c0055['show'](_0x3aabd8)[_0x7a16d8('0x11bf')](function(){const _0xa05f28=_0x7a16d8;_0x5c2cf5[_0xa05f28('0x1674')][_0xa05f28('0x2088')]({'id':_0x2fa9af[_0xa05f28('0x1674')]['id']})[_0xa05f28('0x1549')][_0xa05f28('0x11bf')](function(){const _0x9bc9a8=_0xa05f28;_0x36f548()[_0x9bc9a8('0x14a5')](_0x2fa9af[_0x9bc9a8('0x924')],{'id':_0x2fa9af[_0x9bc9a8('0x1674')]['id']}),_0x3b708f[_0x9bc9a8('0x2693')]({'title':'Plugin\x20properly\x20deleted!','msg':(_0x2fa9af[_0x9bc9a8('0x1674')][_0x9bc9a8('0x1909')]||'plugin')+_0x9bc9a8('0x433')}),_0x1d62a9(_0x2fa9af[_0x9bc9a8('0x1674')]);})[_0xa05f28('0x151d')](function(_0x541b49){const _0x1e7cb0=_0xa05f28;if(_0x541b49[_0x1e7cb0('0x4e8')]&&_0x541b49[_0x1e7cb0('0x4e8')][_0x1e7cb0('0x120f')]&&_0x541b49['data'][_0x1e7cb0('0x120f')][_0x1e7cb0('0x1e22')]){_0x2fa9af[_0x1e7cb0('0x120f')]=_0x541b49[_0x1e7cb0('0x4e8')]['errors']||[{'message':_0x541b49[_0x1e7cb0('0xaab')](),'type':_0x1e7cb0('0x1ba4')}];for(let _0x56ef14=0x0;_0x56ef14<_0x541b49['data'][_0x1e7cb0('0x120f')][_0x1e7cb0('0x1e22')];_0x56ef14++){_0x3b708f[_0x1e7cb0('0x255')]({'title':_0x541b49[_0x1e7cb0('0x4e8')][_0x1e7cb0('0x120f')][_0x56ef14][_0x1e7cb0('0x19fd')],'msg':_0x541b49['data'][_0x1e7cb0('0x120f')][_0x56ef14]['message']});}}else _0x3b708f[_0x1e7cb0('0x255')]({'title':_0x541b49[_0x1e7cb0('0xff9')]?'API:'+_0x541b49[_0x1e7cb0('0xff9')]+_0x1e7cb0('0xb0b')+_0x541b49[_0x1e7cb0('0x212f')]:'api.plugin.delete','msg':_0x541b49[_0x1e7cb0('0x4e8')]?JSON[_0x1e7cb0('0x3e')](_0x541b49['data'][_0x1e7cb0('0x1b86')]):_0x541b49[_0x1e7cb0('0x1b86')]||_0x541b49['toString']()});});},function(){});}function _0x3501fa(_0x153df2){return _0x153df2===null?undefined:new Date(_0x153df2);}function _0x1d62a9(_0x3b4a1e){_0x5c0055['hide'](_0x3b4a1e);}}const _0x3857c2=_0x495068;_0x44b351['$inject']=[_0x21d0f5('0xcbc'),'$location','$mdDialog',_0x21d0f5('0x1b30'),'$translate',_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1'),_0x21d0f5('0x12a5'),_0x21d0f5('0x142d'),_0x21d0f5('0x1150'),_0x21d0f5('0x1674'),_0x21d0f5('0x1d63')];function _0x44b351(_0x4e490e,_0x188a2a,_0x5762e8,_0x41c558,_0x1e663c,_0x4269b9,_0x159210,_0x549275,_0x34a603,_0x3b36f4,_0x262523,_0x582b12){const _0x46abfe=_0x21d0f5,_0x49460e=this;_0x49460e[_0x46abfe('0x32a')]=_0x3b36f4[_0x46abfe('0x2428')](),_0x49460e['license']=_0x4269b9,_0x49460e[_0x46abfe('0x23e1')]=_0x159210,_0x49460e[_0x46abfe('0x2834')]=_0x49460e['setting'][_0x46abfe('0x1d4')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x49460e[_0x46abfe('0x1d9a')]=_0x188a2a[_0x46abfe('0x1797')]()+_0x46abfe('0x16a1')+_0x188a2a[_0x46abfe('0x14ec')](),_0x49460e['plugin']=_0x262523||_0x4e490e[_0x46abfe('0x1ab3')]['plugin']||{},_0x49460e[_0x46abfe('0x1d63')]=_0x582b12&&_0x582b12[_0x46abfe('0x27d2')]==0x1?_0x582b12['rows'][0x0]:null,_0x49460e['crudPermissions']=_0x3b36f4[_0x46abfe('0x1530')](_0x49460e[_0x46abfe('0x1d63')]?_0x49460e[_0x46abfe('0x1d63')][_0x46abfe('0xb25')]:null),_0x49460e['hasModulePermissions']={},_0x49460e[_0x46abfe('0x1179')]=_0x4e490e['params'][_0x46abfe('0x205c')]||0x0,_0x49460e[_0x46abfe('0xb30')]=_0x34a603[_0x46abfe('0x870')],_0x49460e[_0x46abfe('0x1363')]=_0x570729,_0x49460e[_0x46abfe('0x1b07')]=_0x68ba25;function _0x570729(){const _0xcf8a1c=_0x46abfe;_0x4e490e['go'](_0xcf8a1c('0x21aa'),{},{'reload':'app.marketplace.plugins'});}function _0x68ba25(){const _0x9b189e=_0x46abfe;_0x549275['plugin'][_0x9b189e('0x5ab')]({'id':_0x49460e[_0x9b189e('0x1674')]['id']},_0x49460e[_0x9b189e('0x1674')])[_0x9b189e('0x1549')][_0x9b189e('0x11bf')](function(){const _0x7a30db=_0x9b189e;_0x34a603[_0x7a30db('0x2693')]({'title':'Plugin\x20updated!','msg':_0x49460e['plugin'][_0x7a30db('0x1909')]?_0x49460e[_0x7a30db('0x1674')][_0x7a30db('0x1909')]+'\x20has\x20been\x20updated!':''});})[_0x9b189e('0x151d')](function(_0x18812d){const _0x55cfba=_0x9b189e;_0x34a603[_0x55cfba('0x255')]({'title':_0x18812d[_0x55cfba('0xff9')]?_0x55cfba('0x574')+_0x18812d['status']+'\x20-\x20'+_0x18812d[_0x55cfba('0x212f')]:'SYSTEM:GETplugin','msg':_0x18812d[_0x55cfba('0x4e8')]?JSON['stringify'](_0x18812d[_0x55cfba('0x4e8')]):_0x18812d[_0x55cfba('0xaab')]()});});}}const _0x53d750=_0x44b351,_0x2604a0=_0x351988['p']+_0x21d0f5('0x600'),_0x11dc39=_0x351988['p']+_0x21d0f5('0x26c8');_0x3cb07a[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0x2143'),'$state',_0x21d0f5('0x18fe'),_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),'$timeout',_0x21d0f5('0xb6b'),_0x21d0f5('0x924'),_0x21d0f5('0x25bc'),_0x21d0f5('0x1d63'),_0x21d0f5('0x12a5'),'msUtils',_0x21d0f5('0x142d'),_0x21d0f5('0x1150'),'license','setting'];function _0x3cb07a(_0x4e54d6,_0x28268f,_0x393501,_0x1aff13,_0x466308,_0x19f330,_0xb79ae8,_0x4a350c,_0x4bb861,_0x4ef022,_0x9e6f7,_0x3c7564,_0x168a37,_0x108e47,_0x14832a,_0x4448ce,_0xefe17a){const _0x588308=_0x21d0f5,_0x335fcf=this;_0x335fcf[_0x588308('0x17ff')]=_0x4448ce,_0x335fcf[_0x588308('0x23e1')]=_0xefe17a,_0x335fcf[_0x588308('0x32a')]=_0x14832a[_0x588308('0x2428')](),_0x335fcf[_0x588308('0x924')]=_0x4bb861||{'count':0x0,'rows':[]},_0x335fcf[_0x588308('0x25bc')]=_0x4ef022,_0x335fcf[_0x588308('0x1d63')]=_0x9e6f7&&_0x9e6f7[_0x588308('0x27d2')]==0x1?_0x9e6f7[_0x588308('0x19b2')][0x0]:null,_0x335fcf[_0x588308('0xb25')]=_0x14832a[_0x588308('0x1530')](_0x335fcf['userProfileSection']?_0x335fcf[_0x588308('0x1d63')][_0x588308('0xb25')]:null),_0x335fcf[_0x588308('0x13e8')]=_0x588308('0x924'),_0x335fcf['listOrder']='',_0x335fcf[_0x588308('0xe3c')]=null,_0x335fcf[_0x588308('0x439')]=[],_0x335fcf[_0x588308('0x1f2a')]={'fields':_0x588308('0x2865'),'sort':'name','limit':0xa,'page':0x1},_0x335fcf[_0x588308('0x11fa')]=![],_0x335fcf['arraysidebar']=_0x36f548()['keyBy']([{'option':'Always','value':_0x588308('0x538')},{'option':'Admin\x20Only','value':_0x588308('0x5f6')},{'option':_0x588308('0x23d9'),'value':_0x588308('0xd24')},{'option':_0x588308('0x14e8'),'value':_0x588308('0x1d91')}],function(_0x52f4b3){const _0x1b6458=_0x588308;return _0x36f548()[_0x1b6458('0x814')](_0x52f4b3['value'],new RegExp('\x27','g'),'');}),_0x335fcf[_0x588308('0x286e')]=_0x48448c,_0x335fcf[_0x588308('0x757')]=_0x5b5c66,_0x335fcf[_0x588308('0x67f')]=_0x13c2a8,_0x335fcf[_0x588308('0x15b4')]=_0x40ef9c,_0x335fcf[_0x588308('0x3b3')]=_0x3bd9d0,_0x335fcf['uninstallplugin']=_0x30df43,_0x335fcf[_0x588308('0x549')]=_0x228d12,_0x335fcf[_0x588308('0x2693')]=_0xe3c8df,_0x335fcf[_0x588308('0x70e')]=_0x247613,_0x335fcf[_0x588308('0x52')]=_0x170a64,_0x335fcf[_0x588308('0x614')]=_0x50d885,_0x335fcf['exportSelectedPlugins']=_0x575dd2,_0x335fcf[_0x588308('0x2796')]=_0x9718ac,_0x335fcf[_0x588308('0x11e2')]=_0x450d83,_0x335fcf[_0x588308('0x2434')]=_0x29e613,_0x335fcf[_0x588308('0x118c')]=_0x4f6bc6;function _0x48448c(_0x37930e){const _0x4b9330=_0x588308;if(_0x37930e[_0x4b9330('0x19fd')]==='script')_0x335fcf['installing']=!![],_0x3c7564[_0x4b9330('0x14b7')][_0x4b9330('0x259')]({'name':_0x37930e[_0x4b9330('0x34b')],'script':_0x37930e[_0x4b9330('0x24e7')]+'/'+_0x37930e[_0x4b9330('0x1d9e')]})[_0x4b9330('0x1549')]['then'](function(){const _0xb0857=_0x4b9330;return _0x37930e[_0xb0857('0x2668')]=!![],_0x3c7564['plugin'][_0xb0857('0x5ab')]({'id':_0x37930e['id']},_0x37930e)['$promise'];})[_0x4b9330('0x11bf')](function(){const _0x54807a=_0x4b9330;_0x335fcf[_0x54807a('0x11fa')]=![],_0x108e47[_0x54807a('0x2693')]({'title':_0x54807a('0x2506'),'msg':_0x37930e['name']?_0x37930e[_0x54807a('0x1909')]+_0x54807a('0x18e9'):''});})['catch'](function(_0x539259){const _0x5ae16d=_0x4b9330;if(_0x539259[_0x5ae16d('0x4e8')]&&_0x539259[_0x5ae16d('0x4e8')][_0x5ae16d('0x120f')]&&_0x539259['data'][_0x5ae16d('0x120f')][_0x5ae16d('0x1e22')]){_0x335fcf['errors']=_0x539259[_0x5ae16d('0x4e8')][_0x5ae16d('0x120f')]||[{'message':_0x539259['toString'](),'type':_0x5ae16d('0x168e')}];for(let _0x2c1c99=0x0;_0x2c1c99<_0x539259[_0x5ae16d('0x4e8')][_0x5ae16d('0x120f')]['length'];_0x2c1c99++){_0x108e47[_0x5ae16d('0x255')]({'title':_0x539259[_0x5ae16d('0x4e8')]['errors'][_0x2c1c99][_0x5ae16d('0x19fd')],'msg':_0x539259[_0x5ae16d('0x4e8')]['errors'][_0x2c1c99][_0x5ae16d('0x1b86')]});}}else _0x108e47[_0x5ae16d('0x255')]({'title':_0x539259[_0x5ae16d('0xff9')]?_0x5ae16d('0x574')+_0x539259[_0x5ae16d('0xff9')]+_0x5ae16d('0xb0b')+_0x539259[_0x5ae16d('0x212f')]:_0x5ae16d('0x168e'),'msg':_0x539259[_0x5ae16d('0x4e8')]?JSON[_0x5ae16d('0x3e')](_0x539259[_0x5ae16d('0x4e8')][_0x5ae16d('0x1b86')]):_0x539259[_0x5ae16d('0x1b86')]||_0x539259[_0x5ae16d('0xaab')]()});});else return _0x37930e['active']=!![],_0x3c7564['plugin']['update']({'id':_0x37930e['id']},_0x37930e)[_0x4b9330('0x1549')][_0x4b9330('0x11bf')](function(){const _0x5a8f54=_0x4b9330;_0x108e47[_0x5a8f54('0x2693')]({'title':_0x5a8f54('0x2506'),'msg':_0x37930e[_0x5a8f54('0x1909')]?_0x37930e['name']+'\x20has\x20been\x20installed!':''});})[_0x4b9330('0x151d')](function(_0x3f32d8){const _0x47e3b7=_0x4b9330;if(_0x3f32d8[_0x47e3b7('0x4e8')]&&_0x3f32d8[_0x47e3b7('0x4e8')]['errors']&&_0x3f32d8[_0x47e3b7('0x4e8')][_0x47e3b7('0x120f')]['length']){_0x335fcf[_0x47e3b7('0x120f')]=_0x3f32d8[_0x47e3b7('0x4e8')][_0x47e3b7('0x120f')]||[{'message':_0x3f32d8['toString'](),'type':'api.plugin.update'}];for(let _0x57d25c=0x0;_0x57d25c<_0x3f32d8[_0x47e3b7('0x4e8')][_0x47e3b7('0x120f')]['length'];_0x57d25c++){_0x108e47[_0x47e3b7('0x255')]({'title':_0x3f32d8[_0x47e3b7('0x4e8')]['errors'][_0x57d25c]['type'],'msg':_0x3f32d8[_0x47e3b7('0x4e8')][_0x47e3b7('0x120f')][_0x57d25c][_0x47e3b7('0x1b86')]});}}else _0x108e47[_0x47e3b7('0x255')]({'title':_0x3f32d8['status']?_0x47e3b7('0x574')+_0x3f32d8[_0x47e3b7('0xff9')]+_0x47e3b7('0xb0b')+_0x3f32d8[_0x47e3b7('0x212f')]:'api.plugin.update','msg':_0x3f32d8['data']?JSON[_0x47e3b7('0x3e')](_0x3f32d8[_0x47e3b7('0x4e8')][_0x47e3b7('0x1b86')]):_0x3f32d8['message']||_0x3f32d8[_0x47e3b7('0xaab')]()});});}function _0x5b5c66(_0x5b93ea){const _0x5d4d0a=_0x588308;_0x393501['go'](_0x5d4d0a('0xe13'),{'id':_0x5b93ea['id'],'plugin':_0x5b93ea,'crudPermissions':_0x335fcf[_0x5d4d0a('0xb25')]});}function _0x13c2a8(_0x19f48d,_0x3605ea){const _0x1cdaec=_0x588308,_0x3e7cfd=_0x466308[_0x1cdaec('0x132b')]()[_0x1cdaec('0x134b')](_0x1cdaec('0x1ef7'))[_0x1cdaec('0x1d03')](_0x1cdaec('0x2061')+(_0x19f48d[_0x1cdaec('0x1909')]||_0x1cdaec('0x1674'))+_0x1cdaec('0x1c78')+_0x1cdaec('0x169d'))[_0x1cdaec('0xb2e')](_0x1cdaec('0x16e0'))[_0x1cdaec('0x1e25')](_0x3605ea)['ok']('OK')[_0x1cdaec('0x26c9')](_0x1cdaec('0x772'));_0x466308[_0x1cdaec('0xb9')](_0x3e7cfd)[_0x1cdaec('0x11bf')](function(){_0x5acb8b(_0x19f48d);},function(){const _0x44ec87=_0x1cdaec;console[_0x44ec87('0xc78')](_0x44ec87('0x772'));});}function _0x5acb8b(_0x444fbd){const _0xf9c678=_0x588308;_0x3c7564['pm2']['get']()[_0xf9c678('0x1549')][_0xf9c678('0x11bf')](function(_0x2e9b99){const _0x52b45d=_0xf9c678;if(!_0x2e9b99||!_0x2e9b99[_0x52b45d('0x19b2')])throw new Error(_0x52b45d('0x1352'));const _0x3981b8=_0x36f548()[_0x52b45d('0x1ad4')](_0x2e9b99[_0x52b45d('0x19b2')],{'name':_0x444fbd['scriptName']});if(!_0x3981b8)throw new Error(_0x52b45d('0x19f3'));_0x3c7564[_0x52b45d('0x14b7')][_0x52b45d('0x5ab')]({'id':_0x3981b8['pm_id'],'status':_0x52b45d('0x25e8')})[_0x52b45d('0x1549')][_0x52b45d('0x11bf')](function(){const _0x5bafe4=_0x52b45d;_0x108e47['success']({'title':_0x5bafe4('0x8c'),'msg':_0x5bafe4('0x569')});});})[_0xf9c678('0x151d')](function(_0x207eac){const _0x135e3c=_0xf9c678;if(_0x207eac['data']&&_0x207eac[_0x135e3c('0x4e8')]['errors']&&_0x207eac[_0x135e3c('0x4e8')]['errors'][_0x135e3c('0x1e22')]){_0x335fcf[_0x135e3c('0x120f')]=_0x207eac['data'][_0x135e3c('0x120f')]||[{'message':_0x207eac[_0x135e3c('0xaab')](),'type':_0x135e3c('0x1808')}];for(let _0x518585=0x0;_0x518585<_0x207eac[_0x135e3c('0x4e8')]['errors'][_0x135e3c('0x1e22')];_0x518585++){_0x108e47[_0x135e3c('0x255')]({'title':_0x207eac['data'][_0x135e3c('0x120f')][_0x518585][_0x135e3c('0x19fd')],'msg':_0x207eac['data'][_0x135e3c('0x120f')][_0x518585][_0x135e3c('0x1b86')]});}}else _0x108e47['error']({'title':_0x207eac[_0x135e3c('0xff9')]?_0x135e3c('0x574')+_0x207eac['status']+'\x20-\x20'+_0x207eac[_0x135e3c('0x212f')]:'api.pm2.update','msg':_0x207eac['data']?JSON['stringify'](_0x207eac[_0x135e3c('0x4e8')][_0x135e3c('0x1b86')]):_0x207eac['message']||_0x207eac[_0x135e3c('0xaab')]()});});}function _0x40ef9c(_0x3d920d,_0x2c215c){const _0x23443c=_0x588308,_0x36b8ee=_0x466308[_0x23443c('0x132b')]()[_0x23443c('0x134b')](_0x23443c('0xab8'))[_0x23443c('0x1d03')](_0x23443c('0x2061')+(_0x3d920d[_0x23443c('0x1909')]||'plugin')+_0x23443c('0x1c78')+_0x23443c('0x13da'))[_0x23443c('0xb2e')](_0x23443c('0x1b98'))['targetEvent'](_0x2c215c)['ok']('OK')[_0x23443c('0x26c9')](_0x23443c('0x772'));_0x466308['show'](_0x36b8ee)[_0x23443c('0x11bf')](function(){_0x1bd62b(_0x3d920d);},function(){const _0x354532=_0x23443c;console[_0x354532('0xc78')]('CANCEL');});}function _0x1bd62b(_0x413a65){const _0x5271f2=_0x588308;_0x3c7564[_0x5271f2('0x14b7')]['get']()[_0x5271f2('0x1549')][_0x5271f2('0x11bf')](function(_0x3a52b7){const _0x4a62d7=_0x5271f2;if(!_0x3a52b7||!_0x3a52b7[_0x4a62d7('0x19b2')])throw new Error('Failed\x20to\x20retrieve\x20pm2\x20processes');const _0x260276=_0x36f548()[_0x4a62d7('0x1ad4')](_0x3a52b7[_0x4a62d7('0x19b2')],{'name':_0x413a65[_0x4a62d7('0x34b')]});if(!_0x260276)throw new Error(_0x4a62d7('0x19f3'));_0x3c7564[_0x4a62d7('0x14b7')][_0x4a62d7('0x5ab')]({'id':_0x260276[_0x4a62d7('0x2451')],'status':'online'})[_0x4a62d7('0x1549')][_0x4a62d7('0x11bf')](function(){const _0x3b5dfe=_0x4a62d7;_0x108e47[_0x3b5dfe('0x2693')]({'title':_0x3b5dfe('0x111'),'msg':_0x3b5dfe('0x2252')});});})['catch'](function(_0x1fbb0e){const _0x5eec79=_0x5271f2;if(_0x1fbb0e[_0x5eec79('0x4e8')]&&_0x1fbb0e['data'][_0x5eec79('0x120f')]&&_0x1fbb0e['data'][_0x5eec79('0x120f')][_0x5eec79('0x1e22')]){_0x335fcf[_0x5eec79('0x120f')]=_0x1fbb0e[_0x5eec79('0x4e8')][_0x5eec79('0x120f')]||[{'message':_0x1fbb0e['toString'](),'type':_0x5eec79('0x1808')}];for(let _0x3c2058=0x0;_0x3c2058<_0x1fbb0e[_0x5eec79('0x4e8')]['errors'][_0x5eec79('0x1e22')];_0x3c2058++){_0x108e47[_0x5eec79('0x255')]({'title':_0x1fbb0e[_0x5eec79('0x4e8')][_0x5eec79('0x120f')][_0x3c2058][_0x5eec79('0x19fd')],'msg':_0x1fbb0e[_0x5eec79('0x4e8')]['errors'][_0x3c2058][_0x5eec79('0x1b86')]});}}else _0x108e47[_0x5eec79('0x255')]({'title':_0x1fbb0e[_0x5eec79('0xff9')]?_0x5eec79('0x574')+_0x1fbb0e['status']+_0x5eec79('0xb0b')+_0x1fbb0e['statusText']:_0x5eec79('0x1808'),'msg':_0x1fbb0e['data']?JSON['stringify'](_0x1fbb0e[_0x5eec79('0x4e8')][_0x5eec79('0x1b86')]):_0x1fbb0e['message']||_0x1fbb0e[_0x5eec79('0xaab')]()});});}function _0x3bd9d0(_0x24a827){const _0x3f88dd=_0x588308;return _0x3c7564[_0x3f88dd('0x1674')]['download']({'id':_0x24a827['id']})[_0x3f88dd('0x1549')][_0x3f88dd('0x11bf')](function(_0x16198e){const _0x8e5434=_0x3f88dd,_0x51ef58=[_0x16198e[_0x8e5434('0x1e94')]];let _0x2d4343=_0x8e5434('0x149c');const _0x160f1d=new Blob(_0x51ef58,{'type':_0x16198e['type']});_0x2d4343=_0x24a827[_0x8e5434('0x1909')][_0x8e5434('0x814')]('\x20','_')['toLowerCase']()+_0x8e5434('0x4a7');const _0xfde388=window[_0x8e5434('0xb54')][_0x8e5434('0x2773')]('a');_0xfde388[_0x8e5434('0x1e1b')](_0x8e5434('0xead'),URL['createObjectURL'](_0x160f1d)),_0xfde388['setAttribute'](_0x8e5434('0x149c'),_0x2d4343),document[_0x8e5434('0x1d2')]['appendChild'](_0xfde388),_0xfde388[_0x8e5434('0x1371')]();})['catch'](function(_0x26cbb9){const _0x37d7d3=_0x3f88dd;if(_0x26cbb9[_0x37d7d3('0x4e8')]&&_0x26cbb9[_0x37d7d3('0x4e8')][_0x37d7d3('0x120f')]&&_0x26cbb9['data'][_0x37d7d3('0x120f')][_0x37d7d3('0x1e22')])for(let _0x69c592=0x0;_0x69c592<_0x26cbb9[_0x37d7d3('0x4e8')]['errors'][_0x37d7d3('0x1e22')];_0x69c592++){_0x108e47['error']({'title':_0x26cbb9[_0x37d7d3('0x4e8')]['errors'][_0x69c592][_0x37d7d3('0x19fd')],'msg':_0x26cbb9[_0x37d7d3('0x4e8')][_0x37d7d3('0x120f')][_0x69c592]['message']});}else _0x108e47['error']({'title':_0x26cbb9[_0x37d7d3('0xff9')]?_0x37d7d3('0x574')+_0x26cbb9[_0x37d7d3('0xff9')]+_0x37d7d3('0xb0b')+_0x26cbb9[_0x37d7d3('0x212f')]:_0x37d7d3('0x27b'),'msg':_0x26cbb9[_0x37d7d3('0x4e8')]?JSON['stringify'](_0x26cbb9['data']['message']):_0x26cbb9[_0x37d7d3('0xaab')]()});});}function _0x30df43(_0x53a849,_0x522d64){const _0x39b97b=_0x588308,_0x5c6e7c=_0x466308[_0x39b97b('0x132b')]()[_0x39b97b('0x134b')]('Are\x20you\x20sure\x20want\x20to\x20uninstall\x20the\x20plugin?')[_0x39b97b('0x1d03')](''+(_0x53a849['name']||_0x39b97b('0x1674'))+_0x39b97b('0x1c78')+_0x39b97b('0x761'))[_0x39b97b('0xb2e')](_0x39b97b('0x85f'))[_0x39b97b('0x1e25')](_0x522d64)['ok']('OK')[_0x39b97b('0x26c9')](_0x39b97b('0x772'));_0x466308[_0x39b97b('0xb9')](_0x5c6e7c)['then'](function(){_0x2c44d6(_0x53a849);},function(){const _0x581bd6=_0x39b97b;console[_0x581bd6('0xc78')](_0x581bd6('0x772'));});}function _0x2c44d6(_0x20c5b3){const _0x3fc095=_0x588308;return _0x20c5b3[_0x3fc095('0x19fd')]===_0x3fc095('0x1a21')&&_0x3c7564[_0x3fc095('0x14b7')][_0x3fc095('0xbaa')]()['$promise']['then'](function(_0x24b531){const _0x18b470=_0x3fc095;if(!_0x24b531||!_0x24b531[_0x18b470('0x19b2')])throw new Error(_0x18b470('0x1352'));const _0x57f32f=_0x36f548()[_0x18b470('0x1ad4')](_0x24b531[_0x18b470('0x19b2')],{'name':_0x20c5b3[_0x18b470('0x34b')]});if(!_0x57f32f)throw new Error('No\x20corresponding\x20process\x20found');_0x3c7564[_0x18b470('0x14b7')]['delete']({'id':_0x57f32f['pm_id'],'name':_0x20c5b3[_0x18b470('0x34b')]})[_0x18b470('0x1549')];})[_0x3fc095('0x151d')](function(_0x4024fb){const _0x38ec2b=_0x3fc095;_0x108e47['error']({'title':_0x4024fb[_0x38ec2b('0xff9')]?_0x38ec2b('0x574')+_0x4024fb[_0x38ec2b('0xff9')]+_0x38ec2b('0xb0b')+_0x4024fb[_0x38ec2b('0x212f')]:_0x38ec2b('0x2215'),'msg':_0x4024fb[_0x38ec2b('0x4e8')]?JSON[_0x38ec2b('0x3e')](_0x4024fb[_0x38ec2b('0x4e8')][_0x38ec2b('0x1b86')]):_0x4024fb['message']||_0x4024fb[_0x38ec2b('0xaab')]()});}),_0x20c5b3[_0x3fc095('0x2668')]=![],_0x3c7564[_0x3fc095('0x1674')]['update']({'id':_0x20c5b3['id']},_0x20c5b3)[_0x3fc095('0x1549')][_0x3fc095('0x11bf')](function(){const _0x4b51d0=_0x3fc095;_0x108e47[_0x4b51d0('0x2693')]({'title':_0x4b51d0('0x1efa'),'msg':_0x20c5b3[_0x4b51d0('0x1909')]?_0x20c5b3[_0x4b51d0('0x1909')]+_0x4b51d0('0x172f'):''});})[_0x3fc095('0x151d')](function(_0x2b1c19){const _0x31c289=_0x3fc095;if(_0x2b1c19[_0x31c289('0x4e8')]&&_0x2b1c19['data'][_0x31c289('0x120f')]&&_0x2b1c19[_0x31c289('0x4e8')][_0x31c289('0x120f')][_0x31c289('0x1e22')]){_0x335fcf[_0x31c289('0x120f')]=_0x2b1c19[_0x31c289('0x4e8')][_0x31c289('0x120f')]||[{'message':_0x2b1c19[_0x31c289('0xaab')](),'type':'api.plugin.update'}];for(let _0x6da269=0x0;_0x6da269<_0x2b1c19[_0x31c289('0x4e8')][_0x31c289('0x120f')][_0x31c289('0x1e22')];_0x6da269++){_0x108e47['error']({'title':_0x2b1c19[_0x31c289('0x4e8')][_0x31c289('0x120f')][_0x6da269]['type'],'msg':_0x2b1c19[_0x31c289('0x4e8')][_0x31c289('0x120f')][_0x6da269][_0x31c289('0x1b86')]});}}else _0x108e47[_0x31c289('0x255')]({'title':_0x2b1c19[_0x31c289('0xff9')]?_0x31c289('0x574')+_0x2b1c19[_0x31c289('0xff9')]+_0x31c289('0xb0b')+_0x2b1c19['statusText']:_0x31c289('0x387'),'msg':_0x2b1c19[_0x31c289('0x4e8')]?JSON[_0x31c289('0x3e')](_0x2b1c19['data'][_0x31c289('0x1b86')]):_0x2b1c19[_0x31c289('0x1b86')]||_0x2b1c19[_0x31c289('0xaab')]()});});}function _0x228d12(_0x520895,_0x55e36e){const _0x20ce37=_0x588308,_0x35ec87=_0x466308[_0x20ce37('0x132b')]()[_0x20ce37('0x134b')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x36f548()[_0x20ce37('0x13cf')](_0x20ce37('0x1674'))+'?')['htmlContent'](_0x20ce37('0x2061')+(_0x520895[_0x20ce37('0x1909')]||_0x20ce37('0x1674'))+_0x20ce37('0x1c78')+'\x20will\x20be\x20deleted.')[_0x20ce37('0xb2e')]('delete\x20plugin')[_0x20ce37('0x1e25')](_0x55e36e)['ok']('OK')[_0x20ce37('0x26c9')](_0x20ce37('0x772'));_0x466308[_0x20ce37('0xb9')](_0x35ec87)[_0x20ce37('0x11bf')](function(){_0x50d885(_0x520895);},function(){const _0x28a4cb=_0x20ce37;console[_0x28a4cb('0xc78')](_0x28a4cb('0x772'));});}let _0x358bf4=!![],_0x49cacc=0x1;_0x4e54d6['$watch']('vm.query.filter',function(_0x21394c,_0x4dea9a){const _0x4f6c20=_0x588308;_0x358bf4?_0xb79ae8(function(){_0x358bf4=![];}):(!_0x4dea9a&&(_0x49cacc=_0x335fcf['query']['page']),_0x21394c!==_0x4dea9a&&(_0x335fcf[_0x4f6c20('0x1f2a')][_0x4f6c20('0x1c2')]=0x1),!_0x21394c&&(_0x335fcf[_0x4f6c20('0x1f2a')][_0x4f6c20('0x1c2')]=_0x49cacc),_0x335fcf[_0x4f6c20('0x70e')]());});function _0xe3c8df(_0x15cad5){const _0x5842b7=_0x588308;_0x335fcf[_0x5842b7('0x924')]=_0x15cad5||{'count':0x0,'rows':[]};}function _0x247613(){const _0x34649d=_0x588308;_0x335fcf['query'][_0x34649d('0x1393')]=(_0x335fcf[_0x34649d('0x1f2a')]['page']-0x1)*_0x335fcf['query']['limit'],_0x14832a[_0x34649d('0x4ee')](_0x34649d('0xf45'))?_0x335fcf['promise']=_0x3c7564[_0x34649d('0x1674')][_0x34649d('0xbaa')](_0x335fcf[_0x34649d('0x1f2a')],_0xe3c8df)[_0x34649d('0x1549')]:(_0x335fcf[_0x34649d('0x1f2a')]['id']=_0x335fcf[_0x34649d('0x25bc')]['id'],_0x335fcf[_0x34649d('0x1f2a')][_0x34649d('0xe6')]=_0x34649d('0x2443'),_0x335fcf['promise']=_0x3c7564[_0x34649d('0x25bc')][_0x34649d('0x228e')](_0x335fcf[_0x34649d('0x1f2a')],_0xe3c8df)[_0x34649d('0x1549')]);}function _0x170a64(_0x4e84b3,_0x3ad5f2){const _0x11a93d=_0x588308;_0x466308[_0x11a93d('0xb9')]({'controller':_0x11a93d('0x25ac'),'controllerAs':'vm','templateUrl':_0x2604a0,'parent':angular['element'](_0x19f330[_0x11a93d('0x1d2')]),'targetEvent':_0x4e84b3,'clickOutsideToClose':!![],'locals':{'plugin':_0x3ad5f2,'plugins':_0x335fcf[_0x11a93d('0x924')]['rows'],'license':_0x335fcf[_0x11a93d('0x17ff')],'setting':_0x335fcf['setting'],'crudPermissions':_0x335fcf[_0x11a93d('0xb25')]}});}function _0x50d885(_0x54440f){const _0x3b1aef=_0x588308;_0x54440f['active']&&_0x54440f[_0x3b1aef('0x19fd')]==_0x3b1aef('0x1a21')&&_0x3c7564[_0x3b1aef('0x14b7')][_0x3b1aef('0xbaa')]()[_0x3b1aef('0x1549')][_0x3b1aef('0x11bf')](function(_0x10670e){const _0x560b3c=_0x3b1aef;if(!_0x10670e||!_0x10670e[_0x560b3c('0x19b2')])return _0x108e47[_0x560b3c('0x255')]({'title':_0x560b3c('0x108b'),'msg':_0x560b3c('0x1352')});const _0x4b97ee=_0x36f548()[_0x560b3c('0x1ad4')](_0x10670e['rows'],{'name':_0x54440f[_0x560b3c('0x34b')]});if(!_0x4b97ee){console[_0x560b3c('0xc78')](_0x560b3c('0x24b8'),_0x54440f[_0x560b3c('0x34b')]);return;}_0x3c7564[_0x560b3c('0x14b7')][_0x560b3c('0x2088')]({'id':_0x4b97ee[_0x560b3c('0x2451')],'name':_0x54440f[_0x560b3c('0x34b')]})[_0x560b3c('0x1549')];})[_0x3b1aef('0x151d')](function(){const _0x13c81a=_0x3b1aef;return _0x108e47[_0x13c81a('0x255')]({'title':_0x13c81a('0x1ea0'),'msg':_0x13c81a('0xd04')});}),_0x3c7564[_0x3b1aef('0x1674')][_0x3b1aef('0x2088')]({'id':_0x54440f['id']})[_0x3b1aef('0x1549')][_0x3b1aef('0x11bf')](function(){const _0x948621=_0x3b1aef;_0x36f548()[_0x948621('0x14a5')](_0x335fcf[_0x948621('0x924')][_0x948621('0x19b2')],{'id':_0x54440f['id']}),_0x335fcf[_0x948621('0x924')]['count']-=0x1,!_0x335fcf[_0x948621('0x924')][_0x948621('0x19b2')][_0x948621('0x1e22')]&&_0x335fcf[_0x948621('0x70e')](),_0x108e47['success']({'title':_0x36f548()['startCase']('Plugin')+'\x20deleted!','msg':_0x54440f[_0x948621('0x1909')]?_0x54440f[_0x948621('0x1909')]+_0x948621('0x433'):''});})[_0x3b1aef('0x151d')](function(_0xed90e6){const _0x1f3d5e=_0x3b1aef;if(_0xed90e6['data']&&_0xed90e6[_0x1f3d5e('0x4e8')][_0x1f3d5e('0x120f')]&&_0xed90e6['data'][_0x1f3d5e('0x120f')][_0x1f3d5e('0x1e22')]){_0x335fcf[_0x1f3d5e('0x120f')]=_0xed90e6[_0x1f3d5e('0x4e8')][_0x1f3d5e('0x120f')]||[{'message':_0xed90e6[_0x1f3d5e('0xaab')](),'type':_0x1f3d5e('0x6f8')}];for(let _0x2f2a10=0x0;_0x2f2a10<_0xed90e6['data'][_0x1f3d5e('0x120f')][_0x1f3d5e('0x1e22')];_0x2f2a10++){_0x108e47[_0x1f3d5e('0x255')]({'title':_0xed90e6[_0x1f3d5e('0x4e8')]['errors'][_0x2f2a10][_0x1f3d5e('0x19fd')],'msg':_0xed90e6[_0x1f3d5e('0x4e8')]['errors'][_0x2f2a10][_0x1f3d5e('0x1b86')]});}}else _0x108e47['error']({'title':_0xed90e6['status']?'API:'+_0xed90e6[_0x1f3d5e('0xff9')]+'\x20-\x20'+_0xed90e6[_0x1f3d5e('0x212f')]:_0x1f3d5e('0x6f8'),'msg':_0xed90e6[_0x1f3d5e('0x4e8')]?JSON[_0x1f3d5e('0x3e')](_0xed90e6['data'][_0x1f3d5e('0x1b86')]):_0xed90e6[_0x1f3d5e('0x1b86')]||_0xed90e6[_0x1f3d5e('0xaab')]()});});}function _0x575dd2(){const _0x1ac903=angular['copy'](_0x335fcf['selectedPlugins']);return _0x335fcf['selectedPlugins']=[],_0x1ac903;}function _0x9718ac(_0xfb44cc){const _0x3ff567=_0x588308,_0x1a6828=_0x466308[_0x3ff567('0x132b')]()[_0x3ff567('0x134b')](_0x3ff567('0x220c'))[_0x3ff567('0x1d03')](_0x3ff567('0x2061')+_0x335fcf[_0x3ff567('0x439')][_0x3ff567('0x1e22')]+_0x3ff567('0xac6')+_0x3ff567('0x1a'))[_0x3ff567('0xb2e')](_0x3ff567('0x97a'))[_0x3ff567('0x1e25')](_0xfb44cc)['ok']('OK')[_0x3ff567('0x26c9')](_0x3ff567('0x772'));_0x466308[_0x3ff567('0xb9')](_0x1a6828)[_0x3ff567('0x11bf')](function(){const _0x5832af=_0x3ff567;_0x335fcf[_0x5832af('0x439')][_0x5832af('0x1f88')](function(_0x1c856b){_0x50d885(_0x1c856b);}),_0x335fcf['selectedPlugins']=[];});}function _0x450d83(){const _0x1ad251=_0x588308;_0x335fcf[_0x1ad251('0x439')]=[];}function _0x29e613(){const _0x470a9a=_0x588308;_0x335fcf['selectedPlugins']=_0x335fcf['plugins'][_0x470a9a('0x19b2')];}function _0x4f6bc6(_0x422545){const _0x338c83=_0x588308;_0x466308[_0x338c83('0xb9')]({'controller':_0x338c83('0x21a0'),'controllerAs':'vm','templateUrl':_0x11dc39,'parent':angular[_0x338c83('0x1e73')](_0x19f330[_0x338c83('0x1d2')]),'targetEvent':_0x422545,'clickOutsideToClose':!![],'locals':{'plugins':_0x335fcf[_0x338c83('0x924')][_0x338c83('0x19b2')]}});}}const _0x5ad96c=_0x3cb07a;_0x360e54['$inject']=[_0x21d0f5('0x5d8'),'$mdDialog',_0x21d0f5('0x142d'),_0x21d0f5('0x924'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150')];function _0x360e54(_0x1ff82d,_0x33b0b0,_0x54614c,_0x309553,_0x2bb509,_0x1aad98){const _0x5cbc9f=_0x21d0f5,_0x51e6d8=this,_0x341505=0x2,_0x4ec2e9=_0x341505*0x400*0x400;_0x51e6d8['currentUser']=_0x1aad98[_0x5cbc9f('0x2428')](),_0x51e6d8['errors']=[],_0x51e6d8[_0x5cbc9f('0x134b')]=_0x5cbc9f('0x1810'),_0x51e6d8['plugins']=_0x309553,_0x51e6d8[_0x5cbc9f('0xa6a')]=[],_0x51e6d8[_0x5cbc9f('0x18b6')]='none',_0x51e6d8[_0x5cbc9f('0x1674')]={},_0x51e6d8[_0x5cbc9f('0x1fad')]={'maxChunkRetries':0x1,'chunkSize':_0x4ec2e9,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![],'target':_0x5cbc9f('0x20de')},_0x51e6d8['ngFlow']={'flow':{}},_0x51e6d8['dropping']=![],_0x51e6d8['fileAdded']=_0x5e8c57,_0x51e6d8[_0x5cbc9f('0x1d01')]=_0x36a251,_0x51e6d8[_0x5cbc9f('0x272b')]=_0x5ea46e,_0x51e6d8[_0x5cbc9f('0x1904')]=_0x366ca3,_0x51e6d8[_0x5cbc9f('0x1b03')]=_0x4cc3b9,_0x51e6d8[_0x5cbc9f('0xc4e')]=_0xb2eb4b;function _0x5e8c57(_0x554a3e){const _0x3f4419=_0x5cbc9f,_0x414919=[_0x3f4419('0x1022')];if(!_0x36f548()[_0x3f4419('0x55a')](_0x414919,_0x554a3e[_0x3f4419('0x115f')]()))return _0x54614c[_0x3f4419('0x255')]({'title':'Invalid\x20extension:\x20'+_0x554a3e[_0x3f4419('0x115f')](),'msg':_0x3f4419('0x9bf')+_0x414919[_0x3f4419('0xa04')]()}),![];if(_0x554a3e['size']>_0x4ec2e9)return _0x54614c[_0x3f4419('0x255')]({'title':_0x3f4419('0xc56'),'msg':_0x3f4419('0x686')+_0x341505+'MB'}),![];return _0x51e6d8[_0x3f4419('0x1674')]={'id':_0x554a3e[_0x3f4419('0x40b')],'file':_0x554a3e},_0x51e6d8[_0x3f4419('0xa6a')][_0x3f4419('0x880')](_0x51e6d8[_0x3f4419('0x1674')]),!![];}function _0x36a251(){const _0x5459cc=_0x5cbc9f;_0x51e6d8[_0x5459cc('0x18b6')]=_0x5459cc('0xd9b'),_0x51e6d8[_0x5459cc('0x13b8')]['flow'][_0x5459cc('0x2440')][_0x5459cc('0x1f61')]={'X-Requested-With':'XMLHttpRequest','Authorization':_0x5459cc('0x2723')+_0x1ff82d[_0x5459cc('0xbaa')](_0x5459cc('0xc2b'))},_0x51e6d8[_0x5459cc('0x13b8')]['flow'][_0x5459cc('0x2440')]['query']={'role':_0x51e6d8[_0x5459cc('0x32a')]['role'],'userProfileId':_0x51e6d8[_0x5459cc('0x32a')][_0x5459cc('0x781')]},_0x51e6d8[_0x5459cc('0x13b8')]['flow']['upload']();}function _0x5ea46e(_0x16f09b,_0x2c22b2){const _0x2924af=_0x5cbc9f;_0x51e6d8[_0x2924af('0x924')][_0x2924af('0x880')](JSON['parse'](_0x2c22b2)),angular[_0x2924af('0x1f88')](_0x51e6d8[_0x2924af('0xa6a')],function(_0x3a5464){const _0x10028f=_0x2924af;if(_0x3a5464['id']===_0x16f09b['uniqueIdentifier']){const _0xca8f4=new FileReader();_0xca8f4[_0x10028f('0x26dd')](_0x3a5464['file'][_0x10028f('0x2889')]),_0xca8f4['onload']=function(_0x173b8b){const _0x13c52a=_0x10028f;_0x3a5464['url']=_0x173b8b['target'][_0x13c52a('0x252e')];};}});}function _0x366ca3(){const _0x2b2217=_0x5cbc9f;_0x51e6d8[_0x2b2217('0x13b8')][_0x2b2217('0x2414')][_0x2b2217('0x26c9')](),_0x54614c[_0x2b2217('0x255')]({'title':_0x2b2217('0x8b7'),'msg':_0x2b2217('0x1db6')}),_0x51e6d8[_0x2b2217('0x18b6')]='failed';}function _0x4cc3b9(){const _0x2ddcfb=_0x5cbc9f;_0x51e6d8[_0x2ddcfb('0x18b6')]!==_0x2ddcfb('0x1fa1')&&(_0x51e6d8['uploadState']=_0x2ddcfb('0x1426'),_0x54614c['success']({'title':_0x2ddcfb('0x1849'),'msg':_0x51e6d8[_0x2ddcfb('0x1674')][_0x2ddcfb('0x2889')][_0x2ddcfb('0x1909')]+_0x2ddcfb('0x24a8')}));}function _0xb2eb4b(){const _0x46c97b=_0x5cbc9f;_0x33b0b0[_0x46c97b('0x237e')]();}}const _0x21a920=_0x360e54;_0xfc7916[_0x21d0f5('0x1e9a')]=['$stateProvider',_0x21d0f5('0xc3e')];function _0xfc7916(_0x321925,_0x51a113){const _0x1cf813=_0x21d0f5;_0x321925[_0x1cf813('0x2124')](_0x1cf813('0x15d2'),{'abstract':!![],'url':'/marketplace'})[_0x1cf813('0x2124')](_0x1cf813('0x21aa'),{'url':'/plugins','views':{'content@app':{'templateUrl':_0x169fe0,'controller':'MarketplacePluginsController\x20as\x20vm'}},'resolve':{'plugins':[_0x1cf813('0x218e'),_0x1cf813('0x1150'),function(_0xd9c4a0,_0x5371f6){const _0x562214=_0x1cf813;return _0x5371f6['hasRole'](_0x562214('0xf45'))?_0xd9c4a0[_0x562214('0xa28')](_0x562214('0x1bd9'),{'fields':'createdAt,updatedAt,id,name,type,active,description,icon,sidebar,path,adminUrl,agentUrl,scriptName,scriptPath,version','sort':_0x562214('0x1909'),'limit':0xa,'offset':0x0}):_0xd9c4a0[_0x562214('0xa28')](_0x562214('0xb0d'),{'id':_0x5371f6[_0x562214('0x2428')]()[_0x562214('0x781')],'section':_0x562214('0x2443'),'fields':'createdAt,updatedAt,id,name,type,active,description,icon,sidebar,path,adminUrl,agentUrl,scriptName,scriptPath,version','sort':_0x562214('0x1909'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x1cf813('0x218e'),_0x1cf813('0x1150'),function(_0xe92945,_0x32b03a){const _0x886e86=_0x1cf813;return _0x32b03a[_0x886e86('0x4ee')](_0x886e86('0xf45'))?null:_0xe92945['resolve']('userProfile@get',{'fields':'id,name,crudPermissions','id':_0x32b03a[_0x886e86('0x2428')]()['userProfileId']});}],'userProfileSection':[_0x1cf813('0x218e'),_0x1cf813('0x1150'),function(_0x3c1535,_0x318373){const _0x18bc62=_0x1cf813;return _0x318373[_0x18bc62('0x4ee')](_0x18bc62('0xf45'))?null:_0x3c1535['resolve'](_0x18bc62('0x2762'),{'fields':_0x18bc62('0x36d'),'userProfileId':_0x318373[_0x18bc62('0x2428')]()[_0x18bc62('0x781')],'sectionId':0x709});}]},'authenticate':!![],'permissionId':0x709,'bodyClass':_0x1cf813('0x1a65')})[_0x1cf813('0x2124')](_0x1cf813('0xe13'),{'url':_0x1cf813('0x142b'),'params':{'plugin':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0xba2b4,'controller':_0x1cf813('0x102d')}},'resolve':{'plugin':['apiResolver',_0x1cf813('0x1573'),function(_0x1e92da,_0x113df4){const _0x3f966f=_0x1cf813;return _0x1e92da['resolve'](_0x3f966f('0x1bd9'),{'fields':'createdAt,updatedAt,id,name,type,active,description,icon,sidebar,path,adminUrl,agentUrl,scriptName,scriptPath,version','id':_0x113df4['id']});}],'userProfileSection':[_0x1cf813('0x218e'),_0x1cf813('0x1150'),function(_0x15aad1,_0x1ac089){const _0x4a93ef=_0x1cf813;return _0x15aad1[_0x4a93ef('0xa28')](_0x4a93ef('0x2762'),{'fields':_0x4a93ef('0x36d'),'userProfileId':_0x1ac089[_0x4a93ef('0x2428')]()[_0x4a93ef('0x781')],'sectionId':0x709});}]},'authenticate':!![],'permissionId':0x709,'bodyClass':_0x1cf813('0x1a65')}),_0x51a113[_0x1cf813('0x471')](_0x1cf813('0x180b'));}angular[_0x21d0f5('0x2768')]('app.marketplace',[_0x21d0f5('0x22d5'),_0x21d0f5('0x1fb3'),_0x21d0f5('0x3c4'),'flow',_0x21d0f5('0xd61'),_0x21d0f5('0x2096'),_0x21d0f5('0x24a2'),'ngAria',_0x21d0f5('0x113d'),'mdPickers',_0x21d0f5('0x29b'),_0x21d0f5('0xc46'),_0x21d0f5('0x950'),_0x21d0f5('0xf49'),'angular-cron-jobs',_0x21d0f5('0xed9'),_0x21d0f5('0x2625'),_0x21d0f5('0x1622'),_0x21d0f5('0x1584'),_0x21d0f5('0xf7f')])['config'](_0xfc7916)['controller'](_0x21d0f5('0x25ac'),_0x3857c2)[_0x21d0f5('0x23eb')](_0x21d0f5('0xcdd'),_0x53d750)[_0x21d0f5('0x23eb')](_0x21d0f5('0x1656'),_0x5ad96c)['controller']('UploadPluginDialogController',_0x21a920);const _0xfe84b1=_0x351988['p']+_0x21d0f5('0x2559');_0x223ff1['$inject']=['$state','$scope',_0x21d0f5('0x1dbf'),_0x21d0f5('0x12a5'),'socket',_0x21d0f5('0x1150')];function _0x223ff1(_0x590e09,_0x4fe439,_0x404238,_0x4e9c41,_0x5f121d,_0x501d7c){const _0x4ab532=_0x21d0f5,_0x9711c3=this;_0x9711c3[_0x4ab532('0x32a')]=_0x501d7c[_0x4ab532('0x2428')](),_0x9711c3[_0x4ab532('0x1674')]={},_0x9711c3[_0x4ab532('0x9ad')]=_0x2afb39,_0x4e9c41['plugin'][_0x4ab532('0xbaa')]({'id':_0x590e09[_0x4ab532('0x1ab3')]['id']})[_0x4ab532('0x1549')]['then'](function(_0x318097){const _0x27c5f6=_0x4ab532;if(_0x318097)return _0x9711c3['plugin']=_0x318097,_0x4e9c41[_0x27c5f6('0x1674')][_0x27c5f6('0xbaa')]({'id':_0x9711c3[_0x27c5f6('0x1674')]['id']})[_0x27c5f6('0x1549')];})[_0x4ab532('0x151d')](function(){const _0x47b97f=_0x4ab532;_0x9711c3[_0x47b97f('0x1674')]=undefined;});function _0x2afb39(){const _0x32bd0e=_0x4ab532;return _0x404238[_0x32bd0e('0xaa8')](_0x9711c3[_0x32bd0e('0x1674')][_0x32bd0e('0x5d')]);}}const _0x5431cb=_0x223ff1;_0x192f56[_0x21d0f5('0x1e9a')]=['$stateProvider'];function _0x192f56(_0x1aae94){const _0x5ea729=_0x21d0f5;_0x1aae94['state'](_0x5ea729('0x179a'),{'url':_0x5ea729('0x25f'),'views':{'content@app':{'templateUrl':_0xfe84b1,'controller':'PluginController\x20as\x20vm'}},'resolve':{},'authenticate':!![],'bodyClass':_0x5ea729('0x924')});}angular[_0x21d0f5('0x2768')](_0x21d0f5('0x179a'),[])['config'](_0x192f56)[_0x21d0f5('0x23eb')](_0x21d0f5('0x1d8'),_0x5431cb),_0x1d9764[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x13d6'),_0x21d0f5('0xc3e')];function _0x1d9764(_0x75eba7,_0x557e85){const _0x1f49f9=_0x21d0f5;_0x75eba7[_0x1f49f9('0x2124')](_0x1f49f9('0x5a2'),{'abstract':!![],'url':'/plugins'}),_0x557e85['addPart']('app/main/apps/plugins');}angular['module'](_0x21d0f5('0x5a2'),['ngCsv',_0x21d0f5('0x1fb3'),_0x21d0f5('0x3c4'),_0x21d0f5('0x2414'),_0x21d0f5('0xd61'),_0x21d0f5('0x2096'),_0x21d0f5('0x24a2'),_0x21d0f5('0x446'),_0x21d0f5('0x113d'),_0x21d0f5('0x21d5'),'mwFormBuilder','mwFormViewer',_0x21d0f5('0x950'),_0x21d0f5('0xf49'),_0x21d0f5('0x31e'),_0x21d0f5('0xed9'),'angularMaterialFormBuilder',_0x21d0f5('0x1622'),_0x21d0f5('0x1584'),_0x21d0f5('0xf7f'),'app.plugins.plugin'])[_0x21d0f5('0x53a')](_0x1d9764);const _0x2a8a7f=_0x351988['p']+_0x21d0f5('0x1561');_0x54865a[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),'$state',_0x21d0f5('0x16b9'),_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0xb6b'),_0x21d0f5('0x142d'),_0x21d0f5('0xd23'),_0x21d0f5('0x1520'),'api',_0x21d0f5('0x1150'),_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1'),'crudPermissions'];function _0x54865a(_0x21fc5b,_0x1c2c64,_0xdc5de9,_0x507195,_0x5f4419,_0x5f3106,_0x361c77,_0x4867ea,_0x3c544c,_0x5a63b8,_0x147201,_0x4f9b40,_0x44f237,_0x32cb95){const _0x4d58c3=_0x21d0f5,_0x2c2a12=this;_0x2c2a12['currentUser']=_0x147201[_0x4d58c3('0x2428')](),_0x2c2a12['errors']=[],_0x2c2a12[_0x4d58c3('0x23e1')]=_0x44f237,_0x2c2a12[_0x4d58c3('0x17ff')]=_0x4f9b40,_0x2c2a12[_0x4d58c3('0xb25')]=_0x32cb95,_0x2c2a12['hasModulePermissions']={},_0x2c2a12['passwordPattern']=_0x2c2a12[_0x4d58c3('0x23e1')]&&_0x2c2a12[_0x4d58c3('0x23e1')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2c2a12[_0x4d58c3('0x134b')]=_0x4d58c3('0x1aec'),_0x2c2a12[_0x4d58c3('0x1520')]=angular[_0x4d58c3('0x6fb')](_0x3c544c),_0x2c2a12[_0x4d58c3('0xd23')]=_0x4867ea,_0x2c2a12[_0x4d58c3('0x606')]=![];!_0x2c2a12['screenRecording']&&(_0x2c2a12[_0x4d58c3('0x1520')]={},_0x2c2a12[_0x4d58c3('0x134b')]=_0x4d58c3('0x16c7'),_0x2c2a12[_0x4d58c3('0x606')]=!![]);_0x2c2a12[_0x4d58c3('0x2332')]=_0x4c11ca,_0x2c2a12[_0x4d58c3('0x31c')]=_0x1f56b8,_0x2c2a12['deletescreenRecording']=_0x5c5623,_0x2c2a12[_0x4d58c3('0x1bd1')]=_0x588dda,_0x2c2a12[_0x4d58c3('0xc4e')]=_0xaf28b2,_0x5a63b8['user'][_0x4d58c3('0xbaa')]({'fields':_0x4d58c3('0x919'),'sort':'name','nolimit':'true'})['$promise'][_0x4d58c3('0x11bf')](function(_0x5f5c5c){const _0x4d2eb8=_0x4d58c3;_0x2c2a12[_0x4d2eb8('0x17c0')]=_0x5f5c5c[_0x4d2eb8('0x19b2')]||[];})[_0x4d58c3('0x151d')](function(_0x5c9261){const _0x2bb62a=_0x4d58c3;_0x361c77['error']({'title':_0x5c9261[_0x2bb62a('0xff9')]?_0x2bb62a('0x574')+_0x5c9261[_0x2bb62a('0xff9')]+_0x2bb62a('0xb0b')+_0x5c9261[_0x2bb62a('0x212f')]:_0x2bb62a('0x16ea'),'msg':_0x5c9261['data']?JSON['stringify'](_0x5c9261[_0x2bb62a('0x4e8')]):_0x5c9261[_0x2bb62a('0xaab')]()});});function _0x4c11ca(){const _0x4c35b6=_0x4d58c3;_0x2c2a12[_0x4c35b6('0x120f')]=[],_0x5a63b8['screenRecording']['save'](_0x2c2a12[_0x4c35b6('0x1520')])['$promise'][_0x4c35b6('0x11bf')](function(_0x1bc587){const _0x288efe=_0x4c35b6;_0x2c2a12[_0x288efe('0xd23')][_0x288efe('0x880')](_0x1bc587[_0x288efe('0x2866')]()),_0x361c77[_0x288efe('0x2693')]({'title':'screenRecording\x20properly\x20created','msg':_0x2c2a12['screenRecording']['name']?_0x2c2a12[_0x288efe('0x1520')][_0x288efe('0x1909')]+_0x288efe('0x7fb'):''}),_0xaf28b2(_0x1bc587);})[_0x4c35b6('0x151d')](function(_0x23eb3d){const _0x21b739=_0x4c35b6;if(_0x23eb3d[_0x21b739('0x4e8')]&&_0x23eb3d[_0x21b739('0x4e8')]['errors']&&_0x23eb3d[_0x21b739('0x4e8')]['errors'][_0x21b739('0x1e22')]){_0x2c2a12['errors']=_0x23eb3d[_0x21b739('0x4e8')][_0x21b739('0x120f')]||[{'message':_0x23eb3d[_0x21b739('0xaab')](),'type':_0x21b739('0x25d2')}];for(let _0xa6eb86=0x0;_0xa6eb86<_0x23eb3d['data']['errors'][_0x21b739('0x1e22')];_0xa6eb86+=0x1){_0x361c77[_0x21b739('0x255')]({'title':_0x23eb3d['data'][_0x21b739('0x120f')][_0xa6eb86][_0x21b739('0x19fd')],'msg':_0x23eb3d['data'][_0x21b739('0x120f')][_0xa6eb86][_0x21b739('0x1b86')]});}}else _0x361c77[_0x21b739('0x255')]({'title':_0x23eb3d[_0x21b739('0xff9')]?_0x21b739('0x574')+_0x23eb3d[_0x21b739('0xff9')]+_0x21b739('0xb0b')+_0x23eb3d['statusText']:_0x21b739('0x25d2'),'msg':_0x23eb3d[_0x21b739('0x4e8')]?JSON[_0x21b739('0x3e')](_0x23eb3d['data'][_0x21b739('0x1b86')]):_0x23eb3d[_0x21b739('0xaab')]()});});}function _0x1f56b8(){const _0x5b4f79=_0x4d58c3;_0x2c2a12[_0x5b4f79('0x120f')]=[],_0x5a63b8[_0x5b4f79('0x1520')][_0x5b4f79('0x5ab')]({'id':_0x2c2a12[_0x5b4f79('0x1520')]['id']},_0x2c2a12[_0x5b4f79('0x1520')])[_0x5b4f79('0x1549')][_0x5b4f79('0x11bf')](function(_0x82b16c){const _0x19e705=_0x5b4f79,_0x17c61c=_0x36f548()[_0x19e705('0x1ad4')](_0x2c2a12[_0x19e705('0xd23')],{'id':_0x82b16c['id']});_0x17c61c&&_0x36f548()['merge'](_0x17c61c,_0x36f548()['pick'](_0x82b16c[_0x19e705('0x2866')](),_0x36f548()[_0x19e705('0xe22')](_0x17c61c))),_0x361c77[_0x19e705('0x2693')]({'title':_0x19e705('0x8df'),'msg':_0x2c2a12[_0x19e705('0x1520')][_0x19e705('0x1909')]?_0x2c2a12[_0x19e705('0x1520')][_0x19e705('0x1909')]+_0x19e705('0x1a78'):''}),_0xaf28b2(_0x82b16c);})[_0x5b4f79('0x151d')](function(_0xfc46da){const _0x83f564=_0x5b4f79;if(_0xfc46da[_0x83f564('0x4e8')]&&_0xfc46da[_0x83f564('0x4e8')]['errors']&&_0xfc46da[_0x83f564('0x4e8')][_0x83f564('0x120f')][_0x83f564('0x1e22')]){_0x2c2a12[_0x83f564('0x120f')]=_0xfc46da['data'][_0x83f564('0x120f')]||[{'message':_0xfc46da['toString'](),'type':_0x83f564('0x205f')}];for(let _0x5ac465=0x0;_0x5ac465<_0xfc46da['data']['errors'][_0x83f564('0x1e22')];_0x5ac465++){_0x361c77[_0x83f564('0x255')]({'title':_0xfc46da['data'][_0x83f564('0x120f')][_0x5ac465][_0x83f564('0x19fd')],'msg':_0xfc46da['data'][_0x83f564('0x120f')][_0x5ac465][_0x83f564('0x1b86')]});}}else _0x361c77[_0x83f564('0x255')]({'title':_0xfc46da[_0x83f564('0xff9')]?_0x83f564('0x574')+_0xfc46da[_0x83f564('0xff9')]+_0x83f564('0xb0b')+_0xfc46da['statusText']:'api.screenRecording.update','msg':_0xfc46da[_0x83f564('0x4e8')]?JSON[_0x83f564('0x3e')](_0xfc46da[_0x83f564('0x4e8')][_0x83f564('0x1b86')]):_0xfc46da[_0x83f564('0xaab')]()});});}function _0x5c5623(_0x2fe2dd){const _0x5d9681=_0x4d58c3;_0x2c2a12[_0x5d9681('0x120f')]=[];const _0x159999=_0x507195['confirm']()[_0x5d9681('0x134b')](_0x5d9681('0x1fa9'))[_0x5d9681('0x252a')](_0x5d9681('0xda2'))[_0x5d9681('0xb2e')](_0x5d9681('0x2395'))['ok']('Delete')[_0x5d9681('0x26c9')]('Cancel')['targetEvent'](_0x2fe2dd);_0x507195[_0x5d9681('0xb9')](_0x159999)['then'](function(){const _0x5cdc9c=_0x5d9681;_0x5a63b8[_0x5cdc9c('0x1520')][_0x5cdc9c('0x2088')]({'id':_0x2c2a12['screenRecording']['id']})[_0x5cdc9c('0x1549')][_0x5cdc9c('0x11bf')](function(){const _0x270ae5=_0x5cdc9c;_0x36f548()[_0x270ae5('0x14a5')](_0x2c2a12[_0x270ae5('0xd23')],{'id':_0x2c2a12['screenRecording']['id']}),_0x361c77[_0x270ae5('0x2693')]({'title':'screenRecording\x20properly\x20deleted!','msg':(_0x2c2a12[_0x270ae5('0x1520')][_0x270ae5('0x1909')]||'screenRecording')+_0x270ae5('0x433')}),_0xaf28b2(_0x2c2a12[_0x270ae5('0x1520')]);})[_0x5cdc9c('0x151d')](function(_0x45f7d2){const _0xcfa3c6=_0x5cdc9c;if(_0x45f7d2[_0xcfa3c6('0x4e8')]&&_0x45f7d2['data'][_0xcfa3c6('0x120f')]&&_0x45f7d2[_0xcfa3c6('0x4e8')]['errors']['length']){_0x2c2a12[_0xcfa3c6('0x120f')]=_0x45f7d2[_0xcfa3c6('0x4e8')][_0xcfa3c6('0x120f')]||[{'message':_0x45f7d2[_0xcfa3c6('0xaab')](),'type':_0xcfa3c6('0x96')}];for(let _0x3bebe3=0x0;_0x3bebe3<_0x45f7d2[_0xcfa3c6('0x4e8')][_0xcfa3c6('0x120f')][_0xcfa3c6('0x1e22')];_0x3bebe3++){_0x361c77['error']({'title':_0x45f7d2['data'][_0xcfa3c6('0x120f')][_0x3bebe3][_0xcfa3c6('0x19fd')],'msg':_0x45f7d2[_0xcfa3c6('0x4e8')][_0xcfa3c6('0x120f')][_0x3bebe3]['message']});}}else _0x361c77[_0xcfa3c6('0x255')]({'title':_0x45f7d2[_0xcfa3c6('0xff9')]?'API:'+_0x45f7d2[_0xcfa3c6('0xff9')]+_0xcfa3c6('0xb0b')+_0x45f7d2['statusText']:_0xcfa3c6('0x96'),'msg':_0x45f7d2['data']?JSON['stringify'](_0x45f7d2[_0xcfa3c6('0x4e8')]['message']):_0x45f7d2['message']||_0x45f7d2['toString']()});});},function(){});}function _0x588dda(_0x44ff76){return _0x44ff76===null?undefined:new Date(_0x44ff76);}function _0xaf28b2(_0x10f593){const _0x213fad=_0x4d58c3;_0x507195[_0x213fad('0x237e')](_0x10f593);}}const _0x303917=_0x54865a;_0x3fc58c[_0x21d0f5('0x1e9a')]=['$scope',_0x21d0f5('0x1ca2'),_0x21d0f5('0x142d'),_0x21d0f5('0x12a5'),_0x21d0f5('0x2706'),_0x21d0f5('0x13ab'),_0x21d0f5('0x1811'),_0x21d0f5('0x92'),_0x21d0f5('0xa5e'),'$q'];function _0x3fc58c(_0x5e7b38,_0x55e757,_0x2f9d9f,_0x3a5456,_0xb30d21,_0x349b9a,_0x258b3f,_0x401128,_0x748d2c,_0x343a85){const _0xec230f=_0x21d0f5,_0x58020b=this;_0x58020b[_0xec230f('0x632')]=![],_0x58020b['recording']=Object['assign']({},_0xb30d21),_0x58020b[_0xec230f('0x17d8')]=_0xec230f('0x1520'),_0x58020b[_0xec230f('0x1e73')]=_0x748d2c,_0x58020b['actionOptions']=Object['assign']({},_0x349b9a),_0x58020b[_0xec230f('0x24e7')]=_0x401128,_0x58020b[_0xec230f('0x1811')]=_0x258b3f,_0x58020b['app']='video',_0x58020b[_0xec230f('0x60d')]=_0xec230f('0x1520'),console[_0xec230f('0xc78')]('TCL:\x20vm.path',_0x58020b[_0xec230f('0x24e7')]),console['log'](_0xec230f('0x13f6'),_0x58020b['recording'][_0x58020b['path']]),_0x58020b[_0xec230f('0x65f')]=_0x58020b['recording'][_0x58020b['path']][_0xec230f('0x203c')]('/')>-0x1?_0x58020b[_0xec230f('0x2706')][_0x58020b[_0xec230f('0x24e7')]]['substring'](_0x58020b[_0xec230f('0x2706')][_0x58020b[_0xec230f('0x24e7')]][_0xec230f('0x1d19')]('/')+0x1):_0x58020b[_0xec230f('0x2706')][_0x58020b[_0xec230f('0x24e7')]]['indexOf']('\x5c')>-0x1?_0x58020b['recording'][_0x58020b[_0xec230f('0x24e7')]]['substring'](_0x58020b[_0xec230f('0x2706')][_0x58020b[_0xec230f('0x24e7')]][_0xec230f('0x1d19')]('\x5c')+0x1):_0x58020b[_0xec230f('0x2706')][_0x58020b[_0xec230f('0x24e7')]],_0x58020b[_0xec230f('0x1826')]=![];_0x36f548()[_0xec230f('0x1a80')](_0x58020b['recording'][_0xec230f('0x1826')])&&(_0x58020b['recording'][_0xec230f('0x1826')]=_0x58020b[_0xec230f('0x65f')]['slice'](_0x58020b[_0xec230f('0x65f')][_0xec230f('0x1d19')]('.')));(_0x58020b[_0xec230f('0x2706')][_0xec230f('0x1826')]===_0xec230f('0x15da')&&_0x58020b[_0xec230f('0x1e73')]==='audio'||_0x58020b[_0xec230f('0x2706')]['format']===_0xec230f('0x1a84')&&_0x58020b[_0xec230f('0x1e73')]==='video')&&(_0x58020b['format']=!![]);_0x58020b[_0xec230f('0x244')]=!![];_0x58020b[_0xec230f('0x1826')]&&_0x154ca2();function _0x154ca2(){const _0x5829e9=_0xec230f,_0x29ce9c=_0x343a85[_0x5829e9('0xa93')]();return _0x3a5456[_0x5829e9('0x1520')][_0x5829e9('0x149c')]({'id':_0x58020b[_0x5829e9('0x2706')]['id'],'path':String(_0x58020b[_0x5829e9('0x24e7')])})['$promise'][_0x5829e9('0x11bf')](function(){const _0x27c465=_0x5829e9;_0x58020b[_0x27c465('0x1826')]=!![],_0x58020b['found']=!![],_0x29ce9c['resolve']();})['catch'](function(){const _0xfc66db=_0x5829e9;console[_0xfc66db('0xc78')]('err'),_0x58020b[_0xfc66db('0x1826')]=![],_0x58020b[_0xfc66db('0x244')]=![],_0x29ce9c[_0xfc66db('0xa28')]();}),_0x29ce9c[_0x5829e9('0x13f')];}if(!_0x36f548()[_0xec230f('0x1a80')](_0x349b9a[_0xec230f('0x371')])&&_0x349b9a['properties']){_0x58020b[_0xec230f('0x371')]=Object[_0xec230f('0x25da')]({},_0xb30d21);const _0x39d440=Object[_0xec230f('0xe22')](_0xb30d21);_0x39d440[_0xec230f('0x1f88')](function(_0x2506c6){const _0xefaa9c=_0xec230f;String(_0x2506c6[0x0][_0xefaa9c('0xa6f')]())===String(_0x2506c6[0x0])&&delete _0x58020b['properties'][_0x2506c6];}),_0x58020b[_0xec230f('0x1cbe')]={};if(!_0x36f548()[_0xec230f('0x1a80')](_0x349b9a[_0xec230f('0x134f')])&&_0x349b9a[_0xec230f('0x134f')]['length']>0x0){_0x58020b[_0xec230f('0x1cbe')]=Object[_0xec230f('0x25da')]({},_0xb30d21);const _0x1af0d3=_0x349b9a['propertiesList'],_0x5b3e3e=Object[_0xec230f('0xe22')](_0xb30d21);let _0x7187cc=!![];_0x5b3e3e[_0xec230f('0x1f88')](function(_0x3e4694){const _0x3ba416=_0xec230f;_0x7187cc=!![],_0x1af0d3[_0x3ba416('0x1f88')](function(_0x18fa8a){String(_0x3e4694)===String(_0x18fa8a)&&(_0x7187cc=![]);}),_0x7187cc&&delete _0x58020b[_0x3ba416('0x1cbe')][_0x3e4694];}),_0x58020b['properties']=_0x58020b[_0xec230f('0x1cbe')];}if(!_0x36f548()['isNil'](_0x349b9a[_0xec230f('0xc28')])&&_0x349b9a['extraData'][_0xec230f('0x1e22')]>0x0){_0x58020b['propertiesExtra']={};const _0x5efb18=_0x349b9a[_0xec230f('0xc28')];for(let _0x72c3c2=0x0;_0x72c3c2<_0x5efb18[_0xec230f('0x1e22')];_0x72c3c2++){const _0x3f4972=_0x5efb18[_0x72c3c2]['values'],_0x2699b0=_0x5efb18[_0x72c3c2][_0xec230f('0x60d')];for(let _0x328c72=0x0;_0x328c72<_0x3f4972[_0xec230f('0x1e22')];_0x328c72++){_0x58020b[_0xec230f('0x17af')][_0x3f4972[_0x328c72][_0xec230f('0x25ed')]]=_0xb30d21[_0x2699b0][_0x3f4972[_0x328c72][_0xec230f('0xa0c')]];}}_0x58020b[_0xec230f('0x371')]=Object[_0xec230f('0x25da')]({},_0x58020b[_0xec230f('0x1cbe')],_0x58020b['propertiesExtra']);}}_0x58020b[_0xec230f('0xc4e')]=_0x1b8e4e;function _0x1b8e4e(){const _0x8162a1=_0xec230f;_0x55e757[_0x8162a1('0x237e')]();}}const _0x524fef=_0x3fc58c,_0x3304da=_0x351988['p']+_0x21d0f5('0xd6f'),_0x363e82=_0x351988['p']+_0x21d0f5('0xe75');_0x171fb3[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),'$window',_0x21d0f5('0xcbc'),'$mdSidenav',_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),_0x21d0f5('0x17f5'),_0x21d0f5('0xb6b'),_0x21d0f5('0xd23'),_0x21d0f5('0x25bc'),'userProfileSection',_0x21d0f5('0x12a5'),_0x21d0f5('0xda9'),_0x21d0f5('0x142d'),'Auth',_0x21d0f5('0x17ff'),'setting'];function _0x171fb3(_0x30ff8c,_0xc9913e,_0x559bd5,_0x9cd039,_0xf88130,_0x2d1fca,_0x54f333,_0x31fc70,_0x1bf0ae,_0x1d2f2b,_0x373007,_0x13ec86,_0x2144bd,_0x49ab89,_0x159bd5,_0x577314,_0x94158c){const _0x1d182a=_0x21d0f5,_0x397b76=this;_0x397b76[_0x1d182a('0x17ff')]=_0x577314,_0x397b76[_0x1d182a('0x23e1')]=_0x94158c,_0x397b76[_0x1d182a('0x32a')]=_0x159bd5[_0x1d182a('0x2428')](),_0x397b76[_0x1d182a('0xd23')]=_0x1bf0ae||{'count':0x0,'rows':[]},_0x397b76[_0x1d182a('0x25bc')]=_0x1d2f2b,_0x397b76['userProfileSection']=_0x373007&&_0x373007[_0x1d182a('0x27d2')]==0x1?_0x373007[_0x1d182a('0x19b2')][0x0]:null,_0x397b76['crudPermissions']=_0x159bd5[_0x1d182a('0x1530')](_0x397b76[_0x1d182a('0x1d63')]?_0x397b76[_0x1d182a('0x1d63')]['crudPermissions']:null),_0x397b76[_0x1d182a('0x13e8')]=_0x1d182a('0xd23'),_0x397b76[_0x1d182a('0x724')]='',_0x397b76['listOrderAsc']=null,_0x397b76[_0x1d182a('0xa07')]=[],_0x397b76[_0x1d182a('0x1f2a')]={'fields':_0x1d182a('0x1dcc'),'createdAt':_0x1d182a('0x8f7'),'includeAll':_0x1d182a('0x204c'),'sort':_0x1d182a('0x1c74'),'limit':0xa,'page':0x1},_0x397b76[_0x1d182a('0x1f2a')][_0x1d182a('0x1779')]=_0x2144bd[_0x1d182a('0x7eb')](),_0x397b76['quickFilters']=_0x2538ae();function _0x2538ae(){const _0x41837c=_0x1d182a;return[{'name':_0x41837c('0xa68'),'key':_0x41837c('0x1779'),'type':'date','label':_0x41837c('0x1b7e')}];}_0x397b76[_0x1d182a('0xe7')]=_0x128f1b,_0x397b76[_0x1d182a('0x3b3')]=_0x51ab64,_0x397b76[_0x1d182a('0x549')]=_0x2aaee7,_0x397b76[_0x1d182a('0x2693')]=_0x53f30b,_0x397b76[_0x1d182a('0x13a2')]=_0x44c576,_0x397b76[_0x1d182a('0x1aee')]=_0x46e046,_0x397b76[_0x1d182a('0xc4f')]=_0x58b170,_0x397b76[_0x1d182a('0x11ad')]=_0xf2975,_0x397b76[_0x1d182a('0x1eec')]=_0x2465b5,_0x397b76[_0x1d182a('0x230c')]=_0x331e14,_0x397b76[_0x1d182a('0x37a')]=_0xba7c77,_0x397b76[_0x1d182a('0xebb')]=_0x424cc5,_0x13ec86[_0x1d182a('0x21d9')][_0x1d182a('0xbaa')]({'fields':'id,name,fullname','sort':_0x1d182a('0x1909'),'nolimit':_0x1d182a('0x204c')})['$promise'][_0x1d182a('0x11bf')](function(_0x5662a5){const _0x4a85a7=_0x1d182a;_0x397b76[_0x4a85a7('0x17c0')]=_0x5662a5['rows']||[];})[_0x1d182a('0x151d')](function(_0x31db51){const _0x238e7e=_0x1d182a;_0x49ab89['error']({'title':_0x31db51['status']?'API:'+_0x31db51[_0x238e7e('0xff9')]+'\x20-\x20'+_0x31db51['statusText']:'SYSTEM:GET_USERS','msg':_0x31db51['data']?JSON['stringify'](_0x31db51['data']):_0x31db51['toString']()});});function _0x128f1b(_0x49a7eb,_0xac82a,_0x3ec446,_0x49c833,_0x371be2){const _0x5b3103=_0x1d182a,_0x2302a1={'upperTitle':![],'lowerTitle':!![],'properties':!![],'propertiesIcon':_0x5b3103('0xe25'),'propertiesList':[_0x5b3103('0x1826'),'interactionid','duration',_0x5b3103('0x18e7'),_0x5b3103('0x1daa'),_0x5b3103('0x1779')],'extraData':[{'model':_0x5b3103('0x24ab'),'values':[{'key':_0x5b3103('0x1909'),'text':'agentname'}]}]},_0x2cd5f9={};_0x2cd5f9[_0x5b3103('0x17d8')]=_0x5b3103('0x1520'),_0x2cd5f9['name']=_0x5b3103('0xd23'),_0x2cd5f9[_0x5b3103('0x60d')]='screenRecording',_0x2cd5f9[_0x5b3103('0x1eb6')]='screenRecording',_0x49c833=String(_0x49c833);const _0x2497bb=String(_0x3ec446);console[_0x5b3103('0xc78')](_0x5b3103('0x217f'),String(_0x3ec446)),_0xf88130[_0x5b3103('0xb9')]({'controller':_0x5b3103('0xc71'),'controllerAs':'vm','templateUrl':_0x363e82,'parent':angular[_0x5b3103('0x1e73')](_0x2d1fca[_0x5b3103('0x1d2')]),'targetEvent':_0xac82a,'clickOutsideToClose':!![],'locals':{'recording':_0x49a7eb,'recordings':_0x397b76[_0x5b3103('0xd23')][_0x5b3103('0x19b2')],'license':_0x397b76[_0x5b3103('0x17ff')],'setting':null,'item':_0x2cd5f9,'actionOptions':_0x2302a1,'label':_0x49c833,'varPath':_0x2497bb,'elementTag':String(_0x371be2)}});}function _0x51ab64(_0x6fbd2f){const _0x47ff65=_0x1d182a;let _0x6aade5=![];const _0x427be0=!_0x36f548()[_0x47ff65('0x1a80')](_0x6fbd2f[_0x47ff65('0x1826')])?_0x6fbd2f['format']:_0x6fbd2f['value'][_0x47ff65('0x66d')](_0x6fbd2f[_0x47ff65('0x10cc')][_0x47ff65('0x1d19')]('.'));_0x6aade5=_0x427be0==='.mp4'?!![]:![];const _0x2de0d4=_0x6fbd2f['value'][_0x47ff65('0x1d19')]('/')>-0x1?_0x6fbd2f[_0x47ff65('0x10cc')]['substring'](_0x6fbd2f['value'][_0x47ff65('0x1d19')]('/')+0x1):_0x6fbd2f[_0x47ff65('0x10cc')][_0x47ff65('0x1d19')]('\x5c')>-0x1?_0x6fbd2f[_0x47ff65('0x10cc')][_0x47ff65('0x66d')](_0x6fbd2f[_0x47ff65('0x10cc')]['lastIndexOf']('\x5c')+0x1):_0x6fbd2f[_0x47ff65('0x10cc')];return _0x13ec86[_0x47ff65('0x1520')][_0x47ff65('0x149c')]({'id':_0x6fbd2f['id']})[_0x47ff65('0x1549')]['then'](function(_0x4f242e){const _0x19ac7f=_0x47ff65,_0x358180=[_0x4f242e[_0x19ac7f('0x1e94')]];let _0xcf200e=_0x19ac7f('0x149c');const _0x1f7483=new Blob(_0x358180,{'type':_0x4f242e['type']});_0xcf200e=_0x2de0d4;const _0x4e3788=window[_0x19ac7f('0xb54')][_0x19ac7f('0x2773')]('a');_0x4e3788[_0x19ac7f('0x1e1b')](_0x19ac7f('0xead'),URL[_0x19ac7f('0x44b')](_0x1f7483)),_0x4e3788[_0x19ac7f('0x1e1b')](_0x19ac7f('0x149c'),_0xcf200e),document['body'][_0x19ac7f('0x131c')](_0x4e3788),_0x4e3788[_0x19ac7f('0x1371')]();})['catch'](function(_0x5cdc15){const _0x34a65e=_0x47ff65;if(_0x5cdc15[_0x34a65e('0x4e8')]&&_0x5cdc15[_0x34a65e('0x4e8')]['errors']&&_0x5cdc15['data'][_0x34a65e('0x120f')][_0x34a65e('0x1e22')])for(let _0x3654cc=0x0;_0x3654cc<_0x5cdc15[_0x34a65e('0x4e8')][_0x34a65e('0x120f')][_0x34a65e('0x1e22')];_0x3654cc++){_0x49ab89[_0x34a65e('0x255')]({'title':_0x5cdc15[_0x34a65e('0x4e8')][_0x34a65e('0x120f')][_0x3654cc][_0x34a65e('0x19fd')],'msg':_0x5cdc15[_0x34a65e('0x4e8')]['errors'][_0x3654cc][_0x34a65e('0x1b86')]});}else{if(String(_0x5cdc15[_0x34a65e('0xff9')])===_0x34a65e('0x1dde')&&_0x6aade5===![])_0x49ab89[_0x34a65e('0x870')]({'title':_0x31fc70[_0x34a65e('0x10c2')](_0x34a65e('0x2824')),'msg':_0x31fc70['instant'](_0x34a65e('0x18e'))});else String(_0x5cdc15[_0x34a65e('0xff9')])===_0x34a65e('0x1dde')?_0x49ab89[_0x34a65e('0x870')]({'title':_0x31fc70['instant']('APP.CANT_DOWNLOAD_THIS_FILE'),'msg':_0x31fc70[_0x34a65e('0x10c2')](_0x34a65e('0x1284'))}):_0x49ab89[_0x34a65e('0x255')]({'title':_0x5cdc15[_0x34a65e('0xff9')]?_0x34a65e('0x574')+_0x5cdc15[_0x34a65e('0xff9')]+'\x20-\x20'+_0x5cdc15['statusText']:_0x34a65e('0x25d2'),'msg':_0x5cdc15[_0x34a65e('0x4e8')]?JSON[_0x34a65e('0x3e')](_0x5cdc15[_0x34a65e('0x4e8')][_0x34a65e('0x1b86')]):_0x5cdc15['toString']()});}});}function _0x2aaee7(_0x4d3c2a,_0x13871d){const _0x94366a=_0x1d182a,_0x4839aa=_0xf88130['confirm']()['title'](_0x94366a('0x1796')+_0x36f548()['startCase']('screenRecording')+'?')[_0x94366a('0x1d03')](_0x94366a('0x2061')+(_0x4d3c2a['name']||_0x94366a('0x1520'))+''+_0x94366a('0x1a'))[_0x94366a('0xb2e')](_0x94366a('0xeed'))[_0x94366a('0x1e25')](_0x13871d)['ok']('OK')[_0x94366a('0x26c9')](_0x94366a('0x772'));_0xf88130[_0x94366a('0xb9')](_0x4839aa)[_0x94366a('0x11bf')](function(){_0x58b170(_0x4d3c2a);},function(){const _0x751ca0=_0x94366a;console[_0x751ca0('0xc78')](_0x751ca0('0x772'));});}let _0x95c64f=!![],_0x38b3f7=0x1;_0x30ff8c[_0x1d182a('0x2087')](_0x1d182a('0x842'),function(_0x5481b4,_0x2dd1cd){const _0x183cd9=_0x1d182a;_0x95c64f?_0x54f333(function(){_0x95c64f=![];}):(!_0x2dd1cd&&(_0x38b3f7=_0x397b76[_0x183cd9('0x1f2a')][_0x183cd9('0x1c2')]),_0x5481b4!==_0x2dd1cd&&(_0x397b76['query'][_0x183cd9('0x1c2')]=0x1),!_0x5481b4&&(_0x397b76[_0x183cd9('0x1f2a')][_0x183cd9('0x1c2')]=_0x38b3f7),_0x397b76['getScreenRecordings']());});function _0x424cc5(_0x9ec112){const _0x41a479=_0x1d182a,_0x3e50c0=Math[_0x41a479('0x1008')](_0x9ec112/0x3e8%0x3c),_0x17de30=Math[_0x41a479('0x1008')](_0x9ec112/(0x3e8*0x3c)%0x3c),_0x4d2e8d=Math[_0x41a479('0x1008')](_0x9ec112/(0x3e8*0x3c*0x3c)%0x18),_0x4b6842=_0x4d2e8d<0xa?'0'+String(_0x4d2e8d):String(_0x4d2e8d),_0x963e9d=_0x17de30<0xa?'0'+String(_0x17de30):String(_0x17de30),_0xa12902=_0x3e50c0<0xa?'0'+String(_0x3e50c0):String(_0x3e50c0);return _0x4b6842+':'+_0x963e9d+':'+_0xa12902;}function _0x53f30b(_0x46f03e){const _0x3ed5a8=_0x1d182a;_0x397b76[_0x3ed5a8('0xd23')]=_0x46f03e||{'count':0x0,'rows':[]};}function _0x44c576(){const _0x56ff9a=_0x1d182a;_0x397b76[_0x56ff9a('0x1f2a')][_0x56ff9a('0x1393')]=(_0x397b76[_0x56ff9a('0x1f2a')][_0x56ff9a('0x1c2')]-0x1)*_0x397b76['query'][_0x56ff9a('0xd5c')],_0x159bd5['hasRole'](_0x56ff9a('0xf45'))?_0x397b76[_0x56ff9a('0x13f')]=_0x13ec86[_0x56ff9a('0x1520')][_0x56ff9a('0xbaa')](_0x397b76['query'],_0x53f30b)[_0x56ff9a('0x1549')]:(_0x397b76[_0x56ff9a('0x1f2a')]['id']=_0x397b76[_0x56ff9a('0x25bc')]['id'],_0x397b76[_0x56ff9a('0x1f2a')]['section']='ScreenRecordings',_0x397b76[_0x56ff9a('0x13f')]=_0x13ec86['userProfile']['getResources'](_0x397b76[_0x56ff9a('0x1f2a')],_0x53f30b)[_0x56ff9a('0x1549')]);}function _0x46e046(_0x4fdb65,_0x33cde1){const _0x1e5144=_0x1d182a;_0xf88130[_0x1e5144('0xb9')]({'controller':_0x1e5144('0x22d7'),'controllerAs':'vm','templateUrl':_0x3304da,'parent':angular['element'](_0x2d1fca[_0x1e5144('0x1d2')]),'targetEvent':_0x4fdb65,'clickOutsideToClose':!![],'locals':{'screenRecording':_0x33cde1,'screenRecordings':_0x397b76[_0x1e5144('0xd23')][_0x1e5144('0x19b2')],'license':_0x397b76[_0x1e5144('0x17ff')],'setting':_0x397b76[_0x1e5144('0x23e1')],'crudPermissions':_0x397b76[_0x1e5144('0xb25')]}});}function _0x58b170(_0x326f33){const _0x5b6a80=_0x1d182a;_0x13ec86[_0x5b6a80('0x1520')][_0x5b6a80('0x2088')]({'id':_0x326f33['id']})[_0x5b6a80('0x1549')][_0x5b6a80('0x11bf')](function(){const _0xe9bcf5=_0x5b6a80;_0x36f548()[_0xe9bcf5('0x14a5')](_0x397b76['screenRecordings'][_0xe9bcf5('0x19b2')],{'id':_0x326f33['id']}),_0x397b76['screenRecordings'][_0xe9bcf5('0x27d2')]-=0x1,!_0x397b76[_0xe9bcf5('0xd23')]['rows'][_0xe9bcf5('0x1e22')]&&_0x397b76[_0xe9bcf5('0x13a2')](),_0x49ab89['success']({'title':_0x36f548()[_0xe9bcf5('0x13cf')](_0xe9bcf5('0x1520'))+_0xe9bcf5('0x2113'),'msg':_0x326f33['name']?_0x326f33[_0xe9bcf5('0x1909')]+_0xe9bcf5('0x433'):''});})['catch'](function(_0x4a82f1){const _0x203b9a=_0x5b6a80;if(_0x4a82f1[_0x203b9a('0x4e8')]&&_0x4a82f1['data']['errors']&&_0x4a82f1[_0x203b9a('0x4e8')][_0x203b9a('0x120f')]['length']){_0x397b76[_0x203b9a('0x120f')]=_0x4a82f1[_0x203b9a('0x4e8')][_0x203b9a('0x120f')]||[{'message':_0x4a82f1['toString'](),'type':_0x203b9a('0x1c')}];for(let _0x80a19a=0x0;_0x80a19a<_0x4a82f1[_0x203b9a('0x4e8')][_0x203b9a('0x120f')][_0x203b9a('0x1e22')];_0x80a19a++){_0x49ab89[_0x203b9a('0x255')]({'title':_0x4a82f1[_0x203b9a('0x4e8')][_0x203b9a('0x120f')][_0x80a19a][_0x203b9a('0x19fd')],'msg':_0x4a82f1[_0x203b9a('0x4e8')]['errors'][_0x80a19a]['message']});}}else _0x49ab89[_0x203b9a('0x255')]({'title':_0x4a82f1[_0x203b9a('0xff9')]?_0x203b9a('0x574')+_0x4a82f1['status']+_0x203b9a('0xb0b')+_0x4a82f1['statusText']:_0x203b9a('0x1c'),'msg':_0x4a82f1[_0x203b9a('0x4e8')]?JSON[_0x203b9a('0x3e')](_0x4a82f1['data'][_0x203b9a('0x1b86')]):_0x4a82f1[_0x203b9a('0x1b86')]||_0x4a82f1[_0x203b9a('0xaab')]()});});}function _0xf2975(){const _0x3085dc=_0x1d182a,_0x352bb5=angular[_0x3085dc('0x6fb')](_0x397b76[_0x3085dc('0xa07')]);return _0x397b76['selectedScreenRecordings']=[],_0x352bb5;}function _0x2465b5(_0x2e4901){const _0x6de7ee=_0x1d182a,_0x2da25d=_0xf88130[_0x6de7ee('0x132b')]()[_0x6de7ee('0x134b')](_0x6de7ee('0x15bf'))[_0x6de7ee('0x1d03')](''+_0x397b76[_0x6de7ee('0xa07')][_0x6de7ee('0x1e22')]+'\x20selected'+_0x6de7ee('0x1a'))[_0x6de7ee('0xb2e')](_0x6de7ee('0x22f6'))['targetEvent'](_0x2e4901)['ok']('OK')[_0x6de7ee('0x26c9')](_0x6de7ee('0x772'));_0xf88130['show'](_0x2da25d)[_0x6de7ee('0x11bf')](function(){const _0x107009=_0x6de7ee;_0x397b76[_0x107009('0xa07')]['forEach'](function(_0x481cce){_0x58b170(_0x481cce);}),_0x397b76['selectedScreenRecordings']=[];});}function _0x331e14(){_0x397b76['selectedScreenRecordings']=[];}function _0xba7c77(){const _0x5bd402=_0x1d182a;_0x397b76['selectedScreenRecordings']=_0x397b76['screenRecordings'][_0x5bd402('0x19b2')];}}const _0x8b680c=_0x171fb3;_0x5e8e15['$inject']=[_0x21d0f5('0x13d6'),'$translatePartialLoaderProvider'];function _0x5e8e15(_0xdafb34,_0x53cdde){const _0x1851ed=_0x21d0f5;_0xdafb34['state'](_0x1851ed('0x744'),{'abstract':!![],'url':_0x1851ed('0x1142')})['state'](_0x1851ed('0x2554'),{'url':_0x1851ed('0x1ece'),'views':{'content@app':{'templateUrl':_0x2a8a7f,'controller':'ScreenRecordingsController\x20as\x20vm'}},'resolve':{'screenRecordings':['apiResolver','Auth','msUtils',function(_0x2cc0b0,_0x1f6177,_0x34bee6){const _0x4525f1=_0x1851ed;return _0x1f6177[_0x4525f1('0x4ee')]('admin')?_0x2cc0b0[_0x4525f1('0xa28')](_0x4525f1('0x2e9'),{'fields':_0x4525f1('0x1dcc'),'createdAt':_0x34bee6[_0x4525f1('0x7eb')](),'includeAll':_0x4525f1('0x204c'),'sort':_0x4525f1('0x1c74'),'limit':0xa,'offset':0x0}):_0x2cc0b0[_0x4525f1('0xa28')](_0x4525f1('0xb0d'),{'id':_0x1f6177[_0x4525f1('0x2428')]()[_0x4525f1('0x781')],'section':_0x4525f1('0x412'),'fields':'createdAt,updatedAt,id,interactionid,channel,format,value,rating,UserId,duration,startedAt,closedAt','createdAt':_0x34bee6['firstLastDayMonth'](),'includeAll':'true','sort':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':[_0x1851ed('0x218e'),'Auth',function(_0x5bd3f4,_0x4a4687){const _0x1d60c6=_0x1851ed;return _0x4a4687[_0x1d60c6('0x4ee')](_0x1d60c6('0xf45'))?null:_0x5bd3f4['resolve'](_0x1d60c6('0x428'),{'fields':_0x1d60c6('0xd30'),'id':_0x4a4687[_0x1d60c6('0x2428')]()[_0x1d60c6('0x781')]});}],'userProfileSection':[_0x1851ed('0x218e'),_0x1851ed('0x1150'),function(_0x32997d,_0x44079f){const _0x1bcd1d=_0x1851ed;return _0x44079f[_0x1bcd1d('0x4ee')](_0x1bcd1d('0xf45'))?null:_0x32997d[_0x1bcd1d('0xa28')](_0x1bcd1d('0x2762'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x44079f[_0x1bcd1d('0x2428')]()['userProfileId'],'sectionId':0x7d1});}]},'authenticate':!![],'permissionId':0x7d1,'bodyClass':'video'}),_0x53cdde[_0x1851ed('0x471')](_0x1851ed('0x164a'));}angular[_0x21d0f5('0x2768')](_0x21d0f5('0x744'),[_0x21d0f5('0x22d5'),'ngPassword',_0x21d0f5('0x3c4'),'flow',_0x21d0f5('0xd61'),'ckeditor',_0x21d0f5('0x24a2'),_0x21d0f5('0x446'),_0x21d0f5('0x113d'),_0x21d0f5('0x21d5'),_0x21d0f5('0x29b'),_0x21d0f5('0xc46'),_0x21d0f5('0x950'),_0x21d0f5('0xf49'),_0x21d0f5('0x31e'),'ngEmbed',_0x21d0f5('0x2625'),'material.components.expansionPanels',_0x21d0f5('0x1584'),_0x21d0f5('0xf7f')])['config'](_0x5e8e15)[_0x21d0f5('0x23eb')]('CreateOrEditscreenRecordingDialogController',_0x303917)['controller'](_0x21d0f5('0xc71'),_0x524fef)[_0x21d0f5('0x23eb')]('ScreenRecordingsController',_0x8b680c);const _0x435a7e=_0x351988['p']+_0x21d0f5('0x1df6'),_0x2b699c=_0x351988['p']+'src/js/modules/main/apps/whatsapp/views/realtime/agents/view.html/view.html',_0x206ac8=_0x351988['p']+_0x21d0f5('0x25a2');_0x1070a4['$inject']=[_0x21d0f5('0x1b80'),'$q','$timeout','$mdDialog','$document',_0x21d0f5('0x2212'),_0x21d0f5('0x12f2'),_0x21d0f5('0x1401'),_0x21d0f5('0xaa0'),_0x21d0f5('0x12a5'),'socket',_0x21d0f5('0x142d'),_0x21d0f5('0x927'),_0x21d0f5('0x25bc'),'userProfileSection',_0x21d0f5('0x1150'),'license',_0x21d0f5('0x1fd')];function _0x1070a4(_0x1492b4,_0x5d47d1,_0x37e478,_0xf332a8,_0x4a6d37,_0x52511e,_0x550996,_0x3440ab,_0x4471ff,_0x59b46d,_0x546bb1,_0x1bcab9,_0x1ff28f,_0x5b3c6b,_0x17b14a,_0x16584a,_0x2923f4,_0x3174a4){const _0x327a14=_0x21d0f5,_0x197088=this,_0x6d6f1e=[_0x327a14('0x88'),_0x327a14('0x81c'),'lastLoginAt',_0x327a14('0x1e10'),_0x327a14('0x2628'),_0x327a14('0x1e10'),_0x327a14('0x1a04'),_0x327a14('0x5fc'),'chatPause',_0x327a14('0xfc0'),_0x327a14('0x1f53'),_0x327a14('0x55e'),'whatsappPause',_0x327a14('0x2501'),'voicePause','chatCapacity','openchannelCapacity',_0x327a14('0x2271'),_0x327a14('0xcc5'),_0x327a14('0xf0d'),'faxCapacity',_0x327a14('0x539'),_0x327a14('0x1a2e'),_0x327a14('0x10a2'),'smsCurrentCapacity',_0x327a14('0xa81'),_0x327a14('0x21d4'),_0x327a14('0x1572'),'openchannelStatus','mailStatus',_0x327a14('0x245c'),_0x327a14('0x14d4'),_0x327a14('0x8dd'),_0x327a14('0x1715'),_0x327a14('0xe6a'),_0x327a14('0x22cb'),_0x327a14('0x1bab'),'smsStatusTime',_0x327a14('0x3ee'),_0x327a14('0x1ce2'),'voiceStatusTime',_0x327a14('0x150b'),_0x327a14('0x1562'),_0x327a14('0xcb7'),_0x327a14('0x15e0'),_0x327a14('0x1f38')],_0x13d47b=[_0x327a14('0x13c9'),_0x327a14('0xfc0'),_0x327a14('0x1f53'),_0x327a14('0x55e'),_0x327a14('0x1ed1'),_0x327a14('0x2501'),_0x327a14('0x20d'),_0x327a14('0x81c')];_0x197088[_0x327a14('0x32a')]=_0x16584a[_0x327a14('0x2428')](),_0x197088['availableStates']=[_0x327a14('0x19b'),_0x327a14('0x1218'),'busy',_0x327a14('0x26ac'),_0x327a14('0x753')],_0x197088[_0x327a14('0x12f2')]=_0x550996||{'count':0x0,'rows':[]},_0x197088[_0x327a14('0x17ff')]=_0x2923f4,_0x197088['userProfile']=_0x5b3c6b,_0x197088['userProfileSection']=_0x17b14a&&_0x17b14a[_0x327a14('0x27d2')]==0x1?_0x17b14a['rows'][0x0]:null,_0x197088[_0x327a14('0xb25')]=_0x16584a[_0x327a14('0x1530')](_0x197088['userProfileSection']?_0x197088[_0x327a14('0x1d63')][_0x327a14('0xb25')]:null),_0x197088[_0x327a14('0x1401')]=_0x3440ab?_0x36f548()[_0x327a14('0x2130')](_0x3440ab[_0x327a14('0x19b2')]?_0x3440ab['rows']:[],'id'):{},_0x197088[_0x327a14('0xaa0')]=_0x4471ff?_0x36f548()['keyBy'](_0x4471ff[_0x327a14('0x19b2')]?_0x4471ff['rows']:[],'id'):{},_0x197088['paginatedAgents']={},_0x197088['load']=![],_0x197088['order']=[],_0x197088[_0x327a14('0x14fd')]={};for(const _0x27f73c in _0x197088[_0x327a14('0x1401')]){typeof _0x197088['agents'][_0x27f73c]!==_0x327a14('0x13e9')&&(_0x197088['agents'][_0x27f73c][_0x327a14('0x286f')]=!![]);}_0x197088[_0x327a14('0x1f2a')]={'limit':0xa,'page':0x1,'order':_0x327a14('0x27af'),'globalStatusFilter':'','pauseTypeFilter':''},_0x197088[_0x327a14('0x18f7')]=_0x18e1a0,_0x197088['queueAdd']=_0x5b60ee,_0x197088['pause']=_0x294af1,_0x197088[_0x327a14('0x1ab7')]=_0x1029a5,_0x197088[_0x327a14('0x1410')]=_0x583af8,_0x197088[_0x327a14('0x12e5')]=_0x5e6f95,_0x197088[_0x327a14('0x11a2')]=_0x3c4d22,_0x197088[_0x327a14('0x1191')]=_0x1a3d20,_0x197088[_0x327a14('0x1869')]=_0x424d2e,_0x197088[_0x327a14('0x2384')]=_0x42ace1,_0x197088[_0x327a14('0xc8f')]=_0x5c09f3,_0x197088[_0x327a14('0xfdd')]=_0x57ffa6,_0x197088['onInit']=_0x43e0cc,_0x197088[_0x327a14('0x1e2e')]=_0x900fd4,_0x197088[_0x327a14('0x162a')]=_0x842d4b,_0x197088[_0x327a14('0x1520')]=_0x57c5f1,_0x546bb1['on'](_0x327a14('0x1ce9'),_0x197088[_0x327a14('0xc8f')]),_0x546bb1['on'](_0x327a14('0x15bd'),_0x197088[_0x327a14('0xfdd')]),_0x546bb1['on']('user:agentconnect',_0x197088[_0x327a14('0x1e2e')]),_0x546bb1['on'](_0x327a14('0xffb'),_0x197088[_0x327a14('0x162a')]),_0x43e0cc();let _0x55f624=_0x3174a4(function(){const _0x2e1997=_0x327a14;_0x197088[_0x2e1997('0x215b')]&&(_0x197088[_0x2e1997('0x215b')]=![],_0x43e0cc());},0x3e7);function _0x43e0cc(){const _0x3662a4=_0x327a14;_0x197088['load']=![];const _0x34d586=_0x5d47d1[_0x3662a4('0xa93')]();_0x197088['promise']=_0x34d586[_0x3662a4('0x13f')],_0x197088[_0x3662a4('0x15f2')]=[],_0x197088[_0x3662a4('0x59')]=[],_0x36f548()[_0x3662a4('0x41e')](_0x197088['agents'],function(_0x181d7f,_0x103191){const _0x49372d=_0x3662a4;_0x197088[_0x49372d('0xaa0')][_0x103191]&&_0x36f548()['merge'](_0x181d7f,_0x36f548()[_0x49372d('0x258')](_0x36f548()[_0x49372d('0x196f')](_0x197088[_0x49372d('0xaa0')][_0x103191],_0x13d47b),_0x6d6f1e)),_0x3c4d22(_0x181d7f),_0x181d7f[_0x49372d('0x81c')]?(_0x197088[_0x49372d('0x15f2')][_0x49372d('0x105d')](_0x181d7f),_0x197088['agentInternal'][_0x181d7f['internal']]=_0x103191):_0x181d7f['globalStatusTime']=_0x36f548()['toNumber'](_0x57d4d1()()[_0x49372d('0x1826')]('x'));});_0x197088[_0x3662a4('0x1f2a')][_0x3662a4('0x270')]&&_0x36f548()[_0x3662a4('0x14a5')](_0x197088[_0x3662a4('0x15f2')],function(_0x59277d){const _0x343374=_0x3662a4;return _0x59277d[_0x343374('0x797')]!==_0x197088[_0x343374('0x1f2a')][_0x343374('0x270')];});_0x197088[_0x3662a4('0x1f2a')][_0x3662a4('0xa12')]&&_0x36f548()[_0x3662a4('0x14a5')](_0x197088[_0x3662a4('0x15f2')],function(_0x194218){const _0x21a5df=_0x3662a4;return _0x194218[_0x21a5df('0x2628')]!==_0x197088[_0x21a5df('0x1f2a')]['pauseTypeFilter'];});_0x197088[_0x3662a4('0x1f2a')]['filter']&&_0x36f548()[_0x3662a4('0x14a5')](_0x197088[_0x3662a4('0x15f2')],function(_0x42be1f){const _0x2b756e=_0x3662a4;return _0x42be1f[_0x2b756e('0x27af')]['toLowerCase']()['indexOf'](_0x197088[_0x2b756e('0x1f2a')][_0x2b756e('0xdb4')]['toLowerCase']())<0x0;});_0x197088[_0x3662a4('0x15f2')]=_0x9b6d3(_0x197088[_0x3662a4('0x15f2')]);const _0x5b5b48=(_0x197088['query']['page']-0x1)*_0x197088[_0x3662a4('0x1f2a')][_0x3662a4('0xd5c')];_0x197088['paginatedAgents']=_0x36f548()[_0x3662a4('0x1077')](_0x197088['filteredAgents'],_0x5b5b48)[_0x3662a4('0x1b77')](0x0,_0x197088[_0x3662a4('0x1f2a')][_0x3662a4('0xd5c')]);for(let _0x15700e=0x0;_0x15700e<_0x197088[_0x3662a4('0x18bd')]['length'];_0x15700e+=0x1){_0x197088[_0x3662a4('0x59')]['push'](_0x197088['paginatedAgents'][_0x15700e]['id']);}_0x34d586[_0x3662a4('0xa28')](),_0x197088[_0x3662a4('0x215b')]=!![];}function _0x5c09f3(_0x5bb732){const _0x3a4606=_0x327a14;_0x197088['agents'][_0x5bb732['id']]&&(_0x36f548()[_0x3a4606('0x47b')](_0x197088[_0x3a4606('0x1401')][_0x5bb732['id']],_0x36f548()['pick'](_0x36f548()[_0x3a4606('0x196f')](_0x5bb732,_0x13d47b),_0x6d6f1e)),_0x36f548()[_0x3a4606('0x47b')](_0x197088[_0x3a4606('0xaa0')][_0x5bb732['id']],_0x36f548()[_0x3a4606('0x258')](_0x36f548()[_0x3a4606('0x196f')](_0x5bb732,_0x13d47b),_0x6d6f1e)),_0x3c4d22(_0x197088[_0x3a4606('0x1401')][_0x5bb732['id']]));}function _0x57ffa6(_0x47ef9d){const _0x37249c=_0x327a14;_0x197088[_0x37249c('0x1401')][_0x47ef9d['id']]&&(_0x36f548()[_0x37249c('0x47b')](_0x197088[_0x37249c('0x1401')][_0x47ef9d['id']],_0x36f548()[_0x37249c('0x258')](_0x47ef9d,_0x6d6f1e)),_0x36f548()['merge'](_0x197088[_0x37249c('0xaa0')][_0x47ef9d['id']],_0x36f548()[_0x37249c('0x258')](_0x47ef9d,_0x6d6f1e)),_0x47ef9d[_0x37249c('0x1e10')]&&(_0x197088[_0x37249c('0x1401')][_0x47ef9d['id']][_0x37249c('0xd4')]=_0x47ef9d[_0x37249c('0x1e10')],_0x197088[_0x37249c('0xaa0')][_0x47ef9d['id']][_0x37249c('0xd4')]=_0x47ef9d[_0x37249c('0x1e10')]),_0x3c4d22(_0x197088[_0x37249c('0x1401')][_0x47ef9d['id']]));}function _0x900fd4(_0xa38f62){const _0x3f9e8f=_0x327a14;_0x197088['agents'][_0x197088['agentInternal'][_0xa38f62['destaccountcode']]]&&(_0x36f548()[_0x3f9e8f('0x47b')](_0x197088['agents'][_0x197088['agentInternal'][_0xa38f62[_0x3f9e8f('0x1fd0')]]],_0x36f548()['pick'](_0xa38f62,['queue',_0x3f9e8f('0x1562')])),_0x36f548()[_0x3f9e8f('0x47b')](_0x197088[_0x3f9e8f('0xaa0')][_0x197088['agentInternal'][_0xa38f62[_0x3f9e8f('0x1fd0')]]],_0x36f548()['pick'](_0xa38f62,[_0x3f9e8f('0x150b'),_0x3f9e8f('0x1562')])));}function _0x842d4b(_0x3249c5){const _0x289916=_0x327a14;_0x197088[_0x289916('0x1401')][_0x197088['agentInternal'][_0x3249c5[_0x289916('0x1fd0')]]]&&(_0x197088[_0x289916('0x1401')][_0x197088['agentInternal'][_0x3249c5[_0x289916('0x1fd0')]]]=_0x36f548()[_0x289916('0x196f')](_0x197088[_0x289916('0x1401')][_0x197088[_0x289916('0x14fd')][_0x3249c5['destaccountcode']]],['queue','destconnectedlinenum']),_0x197088[_0x289916('0xaa0')][_0x197088[_0x289916('0x14fd')][_0x3249c5[_0x289916('0x1fd0')]]]=_0x36f548()[_0x289916('0x196f')](_0x197088[_0x289916('0xaa0')][_0x197088[_0x289916('0x14fd')][_0x3249c5['destaccountcode']]],[_0x289916('0x150b'),_0x289916('0x1562')]));}function _0x18e1a0(_0x12abd9){const _0x21a4ff=_0x327a14;return _0x59b46d[_0x21a4ff('0x21d9')][_0x21a4ff('0x18f7')]({'id':_0x12abd9['id'],'device':'realtime','agent_id':_0x12abd9['id'],'agent_name':_0x12abd9['name']})['$promise'][_0x21a4ff('0x11bf')](function(){const _0x4727f7=_0x21a4ff;_0x1bcab9[_0x4727f7('0x2693')]({'title':_0x4727f7('0x21e1'),'msg':_0x12abd9[_0x4727f7('0x27af')]+_0x4727f7('0xf73')}),_0x197088['agents'][_0x12abd9['id']]&&(_0x197088['agents'][_0x12abd9['id']][_0x4727f7('0x81c')]=![]),_0x197088['rpcAgents'][_0x12abd9['id']]&&(_0x197088[_0x4727f7('0xaa0')][_0x12abd9['id']]['online']=![]),_0x43e0cc();})[_0x21a4ff('0x151d')](function(_0x30b08a){const _0x50dfdb=_0x21a4ff;_0x1bcab9[_0x50dfdb('0x255')]({'title':_0x30b08a[_0x50dfdb('0xff9')]?_0x50dfdb('0x574')+_0x30b08a[_0x50dfdb('0xff9')]+_0x50dfdb('0xb0b')+_0x30b08a[_0x50dfdb('0x212f')]:'api.staff.save','msg':_0x30b08a[_0x50dfdb('0x4e8')]?JSON[_0x50dfdb('0x3e')](_0x30b08a['data'][_0x50dfdb('0x1b86')]):_0x30b08a[_0x50dfdb('0xaab')]()});});}function _0x294af1(_0x51f32f,_0x2952fa){const _0x1f8fbf=_0x327a14;return _0x59b46d[_0x1f8fbf('0x21d9')][_0x1f8fbf('0x92a')]({'id':_0x51f32f['id'],'type':_0x2952fa})[_0x1f8fbf('0x1549')][_0x1f8fbf('0x11bf')](function(_0x4deb99){const _0xf0ab4a=_0x1f8fbf;_0x197088[_0xf0ab4a('0x1401')][_0x51f32f['id']]&&_0x36f548()[_0xf0ab4a('0x47b')](_0x197088['agents'][_0x51f32f['id']],_0x36f548()[_0xf0ab4a('0x258')](_0x4deb99,_0x6d6f1e)),_0x197088['rpcAgents'][_0x51f32f['id']]&&_0x36f548()['merge'](_0x197088['rpcAgents'][_0x51f32f['id']],_0x36f548()[_0xf0ab4a('0x258')](_0x4deb99,_0x6d6f1e)),_0x3c4d22(_0x197088['agents'][_0x51f32f['id']]);})[_0x1f8fbf('0x151d')](function(_0x175195){const _0x1e3a0d=_0x1f8fbf;_0x1bcab9[_0x1e3a0d('0x255')]({'title':_0x175195['status']?_0x1e3a0d('0x574')+_0x175195['status']+_0x1e3a0d('0xb0b')+_0x175195[_0x1e3a0d('0x212f')]:_0x1e3a0d('0x9'),'msg':_0x175195[_0x1e3a0d('0x4e8')]?JSON[_0x1e3a0d('0x3e')](_0x175195[_0x1e3a0d('0x4e8')][_0x1e3a0d('0x1b86')]):_0x175195[_0x1e3a0d('0xaab')]()});});}function _0x1029a5(_0x260392){const _0x188fd9=_0x327a14;return _0x59b46d[_0x188fd9('0x21d9')][_0x188fd9('0xb6f')]({'id':_0x260392['id']})[_0x188fd9('0x1549')]['then'](function(_0xf79fbf){const _0xfe2054=_0x188fd9;_0x197088['agents'][_0x260392['id']]&&_0x36f548()[_0xfe2054('0x47b')](_0x197088['agents'][_0x260392['id']],_0x36f548()['pick'](_0xf79fbf,_0x6d6f1e)),_0x197088['rpcAgents'][_0x260392['id']]&&_0x36f548()[_0xfe2054('0x47b')](_0x197088[_0xfe2054('0xaa0')][_0x260392['id']],_0x36f548()['pick'](_0xf79fbf,_0x6d6f1e)),_0x3c4d22(_0x197088[_0xfe2054('0x1401')][_0x260392['id']]);})[_0x188fd9('0x151d')](function(_0xffb606){const _0x32e412=_0x188fd9;_0x1bcab9['error']({'title':_0xffb606[_0x32e412('0xff9')]?_0x32e412('0x574')+_0xffb606[_0x32e412('0xff9')]+_0x32e412('0xb0b')+_0xffb606['statusText']:'api.staff.save','msg':_0xffb606[_0x32e412('0x4e8')]?JSON[_0x32e412('0x3e')](_0xffb606[_0x32e412('0x4e8')]['message']):_0xffb606[_0x32e412('0xaab')]()});});}function _0x583af8(_0x129d4a){const _0x5a38bd=_0x327a14;_0xf332a8['show'](_0xf332a8[_0x5a38bd('0xb30')]()[_0x5a38bd('0x728')](!![])[_0x5a38bd('0x134b')](_0x5a38bd('0x24f0'))[_0x5a38bd('0x1d03')]('
    TODO\x20legend\x20status\x20+\x20state
    ')['ok']('Ok')[_0x5a38bd('0x1e25')](_0x129d4a));}function _0x5b60ee(_0x61c5b1,_0x50bcbf){const _0x1de12f=_0x327a14;_0xf332a8[_0x1de12f('0xb9')]({'controller':_0x1de12f('0x1730'),'controllerAs':'vm','templateUrl':_0x43dcce,'parent':angular[_0x1de12f('0x1e73')](_0x4a6d37[_0x1de12f('0x1d2')]),'targetEvent':_0x50bcbf,'clickOutsideToClose':!![],'locals':{'agent':_0x61c5b1,'agents':[],'channel':_0x1de12f('0xe7c'),'direction':_0x1de12f('0x18a2'),'crudPermissions':_0x197088[_0x1de12f('0xb25')]}});}function _0x1a3d20(_0x4a2cf0){const _0x167336=_0x327a14;return _0x4a2cf0===_0x167336('0x92a')||_0x4a2cf0==='*pause';}function _0x424d2e(_0x2704d4){return _0x2704d4==='pause';}function _0x42ace1(_0x232ab8){const _0x4b507f=_0x327a14;return _0x232ab8===_0x4b507f('0x1050');}function _0x1993f8(_0x4aa050){const _0x5da9f5=_0x327a14;return _0x4aa050===_0x5da9f5('0x1533')||_0x4aa050==='unknown'||_0x4aa050==='unavailable'||_0x4aa050===_0x5da9f5('0x19b')||_0x36f548()['isNil'](_0x4aa050);}function _0x5e6f95(_0x32051c,_0x13d570){const _0x30c084=_0x327a14;if(_0x13d570===_0x30c084('0x1bc3')){if(_0x32051c[_0x13d570+_0x30c084('0x971')]!==_0x30c084('0x1533'))return _0x32051c[_0x13d570+'Status'];if(_0x32051c[_0x13d570+_0x30c084('0x6c5')])return _0x32051c[_0x13d570+'Status']='pause',_0x30c084('0x92a');return _0x30c084('0x1533');}else{if(_0x32051c[_0x13d570+'Pause'])return _0x32051c[_0x13d570+_0x30c084('0x971')]=_0x30c084('0x92a'),_0x30c084('0x92a');return _0x32051c[_0x13d570+_0x30c084('0x971')];}}function _0x3c4d22(_0x273c79){const _0x43bfb0=_0x327a14;let _0x1f561b='unknown';if(_0x36f548()[_0x43bfb0('0x1d1')]([_0x5e6f95(_0x273c79,'voice'),_0x5e6f95(_0x273c79,_0x43bfb0('0x1800')),_0x5e6f95(_0x273c79,'mail'),_0x5e6f95(_0x273c79,_0x43bfb0('0xb18')),_0x5e6f95(_0x273c79,_0x43bfb0('0x4df')),_0x5e6f95(_0x273c79,_0x43bfb0('0xe7c')),_0x5e6f95(_0x273c79,_0x43bfb0('0x2104'))],_0x1a3d20))_0x1f561b='pause';else{if(_0x36f548()['some']([_0x5e6f95(_0x273c79,_0x43bfb0('0x1bc3')),_0x5e6f95(_0x273c79,_0x43bfb0('0x1800')),_0x5e6f95(_0x273c79,_0x43bfb0('0x2030')),_0x5e6f95(_0x273c79,'openchannel'),_0x5e6f95(_0x273c79,_0x43bfb0('0x4df')),_0x5e6f95(_0x273c79,_0x43bfb0('0xe7c')),_0x5e6f95(_0x273c79,_0x43bfb0('0x2104'))],_0x1a3d20))_0x1f561b=_0x43bfb0('0x1050');else _0x36f548()[_0x43bfb0('0x1d1')]([_0x5e6f95(_0x273c79,_0x43bfb0('0x1bc3')),_0x5e6f95(_0x273c79,_0x43bfb0('0x1800')),_0x5e6f95(_0x273c79,_0x43bfb0('0x2030')),_0x5e6f95(_0x273c79,_0x43bfb0('0xb18')),_0x5e6f95(_0x273c79,'sms'),_0x5e6f95(_0x273c79,_0x43bfb0('0xe7c')),_0x5e6f95(_0x273c79,_0x43bfb0('0x2104'))],_0x1993f8)?_0x1f561b=_0x43bfb0('0x1533'):_0x1f561b=_0x43bfb0('0x23a3');}_0x273c79[_0x43bfb0('0x797')]!==_0x1f561b&&(_0x273c79[_0x43bfb0('0x797')]=_0x1f561b,_0x273c79[_0x43bfb0('0x286f')]?(_0x273c79[_0x43bfb0('0x286f')]=![],_0x273c79[_0x43bfb0('0xd4')]=_0x1a3d20(_0x1f561b)?_0x36f548()['toNumber'](_0x57d4d1()(_0x273c79[_0x43bfb0('0x1e10')])[_0x43bfb0('0x1826')]('x')):_0x36f548()['max']([_0x273c79['voiceStatusTime'],_0x273c79[_0x43bfb0('0xe6a')],_0x273c79[_0x43bfb0('0x1bab')],_0x273c79[_0x43bfb0('0x1ac6')],_0x273c79[_0x43bfb0('0x3ee')],_0x273c79[_0x43bfb0('0x22cb')],_0x273c79[_0x43bfb0('0x1ce2')]])):_0x273c79[_0x43bfb0('0xd4')]=_0x36f548()[_0x43bfb0('0x17c2')](_0x57d4d1()()[_0x43bfb0('0x1826')]('x')));}function _0x9b6d3(_0x4250a1){const _0x24d653=_0x327a14,_0x1c030e=_0x36f548()[_0x24d653('0x1eb7')](_0x197088[_0x24d653('0x1f2a')][_0x24d653('0x59')],'-')?_0x24d653('0x121a'):_0x24d653('0x1875');return _0x36f548()['orderBy'](_0x4250a1,[_0x197088[_0x24d653('0x1f2a')]['order'][_0x24d653('0x814')]('-','')],[_0x1c030e]);}function _0x1b860c(){const _0x39a963=_0x327a14;_0x55f624&&(_0x3174a4[_0x39a963('0x26c9')](_0x55f624),_0x55f624=null);}function _0x57c5f1(_0x32a5f9,_0x4ec3ee){const _0x4a1ac2=_0x327a14;return _0x59b46d['user'][_0x4a1ac2('0x5ab')]({'id':_0x32a5f9['id']},{'screenrecording':_0x4ec3ee})[_0x4a1ac2('0x1549')][_0x4a1ac2('0x151d')](function(_0xe74336){const _0x4a9241=_0x4a1ac2;_0x1bcab9[_0x4a9241('0x255')]({'title':_0xe74336[_0x4a9241('0xff9')]?'API:'+_0xe74336[_0x4a9241('0xff9')]+_0x4a9241('0xb0b')+_0xe74336['statusText']:_0x4a9241('0x165b'),'msg':_0xe74336[_0x4a9241('0x4e8')]?JSON[_0x4a9241('0x3e')](_0xe74336[_0x4a9241('0x4e8')][_0x4a9241('0x1b86')]):_0xe74336[_0x4a9241('0xaab')]()});});}_0x1492b4[_0x327a14('0x12d8')]('$destroy',function(){const _0x2cc613=_0x327a14;_0x546bb1[_0x2cc613('0x1b2e')](_0x2cc613('0x1ce9')),_0x546bb1[_0x2cc613('0x1b2e')](_0x2cc613('0x15bd')),_0x546bb1[_0x2cc613('0x1b2e')](_0x2cc613('0x90c')),_0x546bb1[_0x2cc613('0x1b2e')](_0x2cc613('0xffb')),_0x1b860c();});}const _0x49ff70=_0x1070a4,_0x3ef18e=_0x351988['p']+_0x21d0f5('0x1b38'),_0x31bb0d=_0x351988['p']+_0x21d0f5('0x1d2a');_0x30ab75[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0x17f5'),_0x21d0f5('0x1ca2'),'$q','$document',_0x21d0f5('0x1fd'),_0x21d0f5('0x1de3'),_0x21d0f5('0x1223'),_0x21d0f5('0x12a5'),'socket','toasty',_0x21d0f5('0x25bc'),'userProfileSection','Auth'];function _0x30ab75(_0x595f5c,_0x4d20ce,_0x30d039,_0x15ddff,_0x36c727,_0x3fe21e,_0x4ff6d5,_0xc50dc,_0x3f7eed,_0x286dbd,_0x47128e,_0x1575c1,_0x2a4f50,_0x294dda){const _0x547717=_0x21d0f5,_0x27dad7=this,_0x29c1da=[_0x547717('0xdbd'),_0x547717('0x126a'),_0x547717('0x1491'),_0x547717('0x11ed'),_0x547717('0x17ba'),_0x547717('0x1fab'),'message','dialActive','dialMethod','Trunk','paused'];_0x27dad7[_0x547717('0x32a')]=_0x294dda['getCurrentUser'](),_0x27dad7[_0x547717('0x27d2')]=_0x4ff6d5[_0x547717('0x27d2')]?_0x4ff6d5[_0x547717('0x27d2')]:0x0,_0x27dad7[_0x547717('0x1de3')]=_0x4ff6d5?_0x36f548()[_0x547717('0x2130')](_0x4ff6d5[_0x547717('0x19b2')]?_0x4ff6d5['rows']:[],'id'):{},_0x27dad7[_0x547717('0x1223')]=_0xc50dc?_0x36f548()[_0x547717('0x2130')](_0xc50dc[_0x547717('0x19b2')]?_0xc50dc[_0x547717('0x19b2')]:[],'id'):{},_0x27dad7[_0x547717('0x25bc')]=_0x1575c1,_0x27dad7['userProfileSection']=_0x2a4f50&&_0x2a4f50['count']==0x1?_0x2a4f50[_0x547717('0x19b2')][0x0]:null,_0x27dad7['crudPermissions']=_0x294dda[_0x547717('0x1530')](_0x27dad7['userProfileSection']?_0x27dad7[_0x547717('0x1d63')]['crudPermissions']:null);_0x294dda[_0x547717('0x4ee')](_0x547717('0xf45'))?_0x27dad7[_0x547717('0x1f2a')]={'type':'inbound','sort':_0x547717('0x1c74'),'limit':0xa,'page':0x1}:_0x27dad7[_0x547717('0x1f2a')]={'id':_0x27dad7[_0x547717('0x32a')]['id'],'channel':'whatsapp','type':_0x547717('0x18a2'),'sort':_0x547717('0x1c74'),'limit':0xa,'page':0x1};_0x27dad7[_0x547717('0x2693')]=_0x5aebc4,_0x27dad7['getQueues']=_0x3eb260,_0x27dad7[_0x547717('0x151f')]=_0x5c8d30,_0x27dad7[_0x547717('0x20dd')]=_0x5026d8,_0x27dad7[_0x547717('0xdd9')]=_0x2cc49f,_0x27dad7[_0x547717('0xc8f')]=_0x447227,_0x27dad7['onSaveMember']=_0x26ddb4,_0x27dad7['onRemoveMember']=_0x25188e,_0x27dad7[_0x547717('0x199c')]=_0x4eefc9,_0x27dad7[_0x547717('0x722')]=_0x2a24b3,_0x27dad7[_0x547717('0x37f')]=_0x4750b9,_0x27dad7['$onInit']=_0x57cf63,_0x27dad7[_0x547717('0x59')]=[],_0x36f548()[_0x547717('0x41e')](_0x27dad7[_0x547717('0x1de3')],function(_0x3ed3c6){const _0x549cca=_0x547717;_0x27dad7[_0x549cca('0x59')][_0x549cca('0x105d')](_0x3ed3c6['id']);}),_0x286dbd['on'](_0x547717('0x2290'),_0x27dad7['onSave']),_0x286dbd['on'](_0x547717('0x1861'),_0x27dad7['onSaveMember']),_0x286dbd['on'](_0x547717('0x151b'),_0x27dad7[_0x547717('0xcaf')]),_0x286dbd['on']('user:update',_0x27dad7[_0x547717('0x199c')]),_0x286dbd['on'](_0x547717('0x5c6'),_0x27dad7[_0x547717('0x37f')]),_0x286dbd['on'](_0x547717('0x1929'),_0x27dad7['onLogin']);function _0x57cf63(){const _0x1a2603=_0x547717,_0x419bcd=[];return _0x36f548()[_0x1a2603('0x41e')](_0x27dad7[_0x1a2603('0x1de3')],function(_0x20549a,_0x49ed77){const _0x5df869=_0x1a2603;_0x20549a[_0x5df869('0xdb0')]=0x0,_0x20549a['loggedInDb']=0x0,_0x27dad7[_0x5df869('0x1de3')][_0x49ed77][_0x5df869('0x1401')]={},_0x419bcd[_0x5df869('0x105d')](_0x3f7eed[_0x5df869('0x1d53')][_0x5df869('0x226d')]({'id':_0x49ed77})['$promise']),_0x27dad7[_0x5df869('0x1223')][_0x49ed77]&&_0x36f548()[_0x5df869('0x47b')](_0x20549a,_0x36f548()['pick'](_0x27dad7['rpcQueues'][_0x49ed77],_0x29c1da));}),_0x15ddff['all'](_0x419bcd)[_0x1a2603('0x11bf')](function(_0x7be9a0){const _0x3d2447=_0x1a2603;for(let _0x436ac1=0x0;_0x436ac1<_0x7be9a0[_0x3d2447('0x1e22')];_0x436ac1+=0x1){for(let _0x4019dd=0x0;_0x4019dd<_0x7be9a0[_0x436ac1][_0x3d2447('0x19b2')]['length'];_0x4019dd++){_0x7be9a0[_0x436ac1]['rows'][_0x4019dd][_0x3d2447('0xdb0')]&&_0x27dad7[_0x3d2447('0x1de3')][_0x7be9a0[_0x436ac1]['rows'][_0x4019dd][_0x3d2447('0x1d5b')]][_0x3d2447('0xdb0')]++,_0x27dad7['queues'][_0x7be9a0[_0x436ac1][_0x3d2447('0x19b2')][_0x4019dd]['WhatsappQueueId']][_0x3d2447('0x1e84')]++,_0x27dad7[_0x3d2447('0x1de3')][_0x7be9a0[_0x436ac1]['rows'][_0x4019dd][_0x3d2447('0x1d5b')]][_0x3d2447('0x1401')][_0x7be9a0[_0x436ac1][_0x3d2447('0x19b2')][_0x4019dd][_0x3d2447('0x2342')]]=_0x7be9a0[_0x436ac1][_0x3d2447('0x19b2')][_0x4019dd][_0x3d2447('0x1d5b')];}}})[_0x1a2603('0x151d')](function(_0xee168){const _0x15c19d=_0x1a2603;console[_0x15c19d('0x255')](_0xee168);});}function _0x447227(_0xa7bf88){const _0x54ef54=_0x547717;_0x27dad7[_0x54ef54('0x1de3')][_0xa7bf88['id']]&&_0x36f548()[_0x54ef54('0x47b')](_0x27dad7[_0x54ef54('0x1de3')][_0xa7bf88['id']],_0x36f548()[_0x54ef54('0x258')](_0xa7bf88,_0x29c1da));}function _0x26ddb4(_0x592721){const _0x4777cf=_0x547717;_0x27dad7[_0x4777cf('0x1de3')][_0x592721[_0x4777cf('0x1d5b')]]&&_0x27dad7[_0x4777cf('0x1de3')][_0x592721[_0x4777cf('0x1d5b')]]['loggedInDb']++;}function _0x25188e(_0x382449){const _0x235342=_0x547717;_0x27dad7[_0x235342('0x1de3')][_0x382449[_0x235342('0x1d5b')]]&&_0x27dad7[_0x235342('0x1de3')][_0x382449[_0x235342('0x1d5b')]][_0x235342('0x1e84')]--;}function _0x4eefc9(_0x56cf39){const _0xebd280=_0x547717;console['log'](_0xebd280('0x199c'),_0x56cf39);if(_0x56cf39['voicePause'])_0x36f548()[_0xebd280('0x41e')](_0x27dad7[_0xebd280('0x1de3')],function(_0x1d2ca1){const _0x57d4d3=_0xebd280;_0x1d2ca1[_0x57d4d3('0x1401')][_0x56cf39['id']]&&(_0x1d2ca1[_0x57d4d3('0xdb0')]+=0x1,console['log'](_0x57d4d3('0x92a')));});else!_0x56cf39[_0xebd280('0x20d')]&&_0x36f548()['forIn'](_0x27dad7[_0xebd280('0x1de3')],function(_0xe439a1){const _0x5eae38=_0xebd280;_0xe439a1['agents'][_0x56cf39['id']]&&(_0xe439a1[_0x5eae38('0xdb0')]>0x0&&(_0xe439a1['paused']-=0x1,console[_0x5eae38('0xc78')](_0x5eae38('0xb6f'))));});}function _0x2a24b3(_0x1de911){const _0x5d4ccb=_0x547717;console[_0x5d4ccb('0xc78')](_0x5d4ccb('0x107b'),_0x1de911),_0x27dad7[_0x5d4ccb('0x1de3')][_0x1de911[_0x5d4ccb('0x1d5b')]]&&(_0x27dad7[_0x5d4ccb('0x1de3')][_0x1de911[_0x5d4ccb('0x1d5b')]][_0x5d4ccb('0x1e84')]+=0x1,_0x27dad7[_0x5d4ccb('0x1de3')][_0x1de911[_0x5d4ccb('0x1d5b')]]['agents'][_0x1de911[_0x5d4ccb('0x2342')]]=_0x1de911[_0x5d4ccb('0x1d5b')]);}function _0x4750b9(_0x3141b4){const _0xe8381b=_0x547717;console[_0xe8381b('0xc78')](_0xe8381b('0x37f'),_0x3141b4),_0x27dad7[_0xe8381b('0x1de3')][_0x3141b4[_0xe8381b('0x1d5b')]]&&_0x27dad7[_0xe8381b('0x1de3')][_0x3141b4['WhatsappQueueId']][_0xe8381b('0x1e84')]>0x0&&(_0x27dad7['queues'][_0x3141b4[_0xe8381b('0x1d5b')]][_0xe8381b('0x1e84')]-=0x1,delete _0x27dad7[_0xe8381b('0x1de3')][_0x3141b4[_0xe8381b('0x1d5b')]]['agents'][_0x3141b4[_0xe8381b('0x2342')]]);}let _0x587f5b=!![],_0x51c7c8=0x1;_0x595f5c['$watch'](_0x547717('0x842'),function(_0x490e16,_0x38e379){const _0x460915=_0x547717;_0x587f5b?_0x4d20ce(function(){_0x587f5b=![];}):(!_0x38e379&&(_0x51c7c8=_0x27dad7[_0x460915('0x1f2a')]['page']),_0x490e16!==_0x38e379&&(_0x27dad7['query'][_0x460915('0x1c2')]=0x1),!_0x490e16&&(_0x27dad7['query'][_0x460915('0x1c2')]=_0x51c7c8),_0x27dad7[_0x460915('0x373')]());});function _0x5aebc4(_0x102ad7){const _0x472838=_0x547717;_0x27dad7[_0x472838('0x27d2')]=_0x102ad7[_0x472838('0x27d2')],_0x27dad7[_0x472838('0x1de3')]=_0x102ad7?_0x36f548()[_0x472838('0x2130')](_0x102ad7[_0x472838('0x19b2')]?_0x102ad7[_0x472838('0x19b2')]:[],'id'):{};if(_0x102ad7[_0x472838('0x19b2')]){_0x27dad7[_0x472838('0x59')]=[];for(let _0x1b5e85=0x0;_0x1b5e85<_0x102ad7[_0x472838('0x19b2')]['length'];_0x1b5e85++){_0x27dad7[_0x472838('0x59')][_0x472838('0x105d')](_0x102ad7[_0x472838('0x19b2')][_0x1b5e85]['id']);}}_0x57cf63();}function _0x3eb260(){const _0x458c90=_0x547717;_0x27dad7[_0x458c90('0x1f2a')][_0x458c90('0x1393')]=(_0x27dad7[_0x458c90('0x1f2a')]['page']-0x1)*_0x27dad7[_0x458c90('0x1f2a')][_0x458c90('0xd5c')],_0x294dda[_0x458c90('0x4ee')](_0x458c90('0xf45'))?_0x27dad7[_0x458c90('0x13f')]=_0x3f7eed[_0x458c90('0x1d53')][_0x458c90('0xbaa')](_0x27dad7['query'],_0x5aebc4)[_0x458c90('0x1549')]:(_0x27dad7['query']['id']=_0x27dad7[_0x458c90('0x25bc')]['id'],_0x27dad7['query'][_0x458c90('0xe6')]='WhatsappQueues',_0x27dad7['promise']=_0x3f7eed[_0x458c90('0x25bc')][_0x458c90('0x228e')](_0x27dad7[_0x458c90('0x1f2a')],_0x5aebc4)[_0x458c90('0x1549')]);}function _0x5c8d30(_0x400224,_0x543b6f){const _0x563ed1=_0x547717;_0x30d039[_0x563ed1('0xb9')]({'controller':_0x563ed1('0x23dd'),'controllerAs':'vm','templateUrl':_0x3ef18e,'parent':angular[_0x563ed1('0x1e73')](_0x36c727[_0x563ed1('0x1d2')]),'targetEvent':_0x400224,'clickOutsideToClose':!![],'locals':{'whatsappQueue':_0x543b6f,'whatsappQueues':_0x36f548()['values'](_0x27dad7['queues']),'license':null,'setting':null,'crudPermissions':_0x27dad7[_0x563ed1('0xb25')]}});}function _0x5026d8(_0x5d93b4,_0x5db2e8){const _0x44a032=_0x547717;_0x30d039[_0x44a032('0xb9')]({'controller':_0x44a032('0x216c'),'controllerAs':'vm','templateUrl':_0x31bb0d,'parent':angular[_0x44a032('0x1e73')](_0x36c727[_0x44a032('0x1d2')]),'targetEvent':_0x5d93b4,'clickOutsideToClose':!![],'locals':{'whatsappQueue':_0x5db2e8,'whatsappQueues':_0x27dad7[_0x44a032('0x1de3')]?_0x27dad7[_0x44a032('0x1de3')][_0x44a032('0x19b2')]:[],'realtime':![],'crudPermissions':_0x27dad7[_0x44a032('0xb25')]}});}function _0x2cc49f(_0x5b8c75){const _0x862182=_0x547717;return _0x3f7eed[_0x862182('0x1d53')][_0x862182('0x5ab')](_0x5b8c75)[_0x862182('0x1549')][_0x862182('0x11bf')](function(){const _0x279cd0=_0x862182;_0x47128e[_0x279cd0('0x2693')]({'title':'Queue\x20properly\x20updated!','msg':_0x5b8c75[_0x279cd0('0x1909')]?_0x5b8c75[_0x279cd0('0x1909')]+_0x279cd0('0xd7'):''});})[_0x862182('0x151d')](function(_0x2cddff){const _0x310e61=_0x862182;_0x47128e[_0x310e61('0x255')]({'title':'Error\x20creating\x20queue!','msg':_0x2cddff[_0x310e61('0x1b86')]});});}_0x595f5c[_0x547717('0x12d8')](_0x547717('0x4f7'),function(){const _0x5444af=_0x547717;_0x286dbd[_0x5444af('0x1b2e')](_0x5444af('0x2290')),_0x286dbd['removeAllListeners'](_0x5444af('0x151b')),_0x286dbd[_0x5444af('0x1b2e')](_0x5444af('0x1861')),_0x286dbd[_0x5444af('0x1b2e')](_0x5444af('0x15bd')),_0x286dbd['removeAllListeners'](_0x5444af('0x5c6')),_0x286dbd[_0x5444af('0x1b2e')](_0x5444af('0x1929'));});}const _0xadb75f=_0x30ab75;function _0x1e84c2(){const _0x4f2102=_0x21d0f5;return{'status':{'registered':_0x4f2102('0x2747'),'unregistered':'red-300-fg\x20icon-close-circle','lagged':_0x4f2102('0x58e'),'reachable':_0x4f2102('0x2747'),'unreachable':'red-300-fg\x20icon-close-circle','unknown':_0x4f2102('0xcc')},'state':{'unknown':_0x4f2102('0x95b'),'not_inuse':_0x4f2102('0x8b2'),'inuse':_0x4f2102('0x52b'),'busy':_0x4f2102('0x16a5'),'invalid':'grey-fg\x20icon-phone-hangup','unavailable':'grey-fg\x20icon-phone-hangup','ringing':_0x4f2102('0x1df'),'ringinuse':'blue-300-fg\x20icon-phone-incoming','onhold':'blue-300-fg\x20icon-phone-paused'},'channelStatus':{'ring':_0x4f2102('0x1df'),'up':_0x4f2102('0x198'),'hangup':_0x4f2102('0x393')},'channelStatusOut':{'ring':_0x4f2102('0x27f5'),'up':'green-300-fg\x20icon-phone-in-talk','hangup':_0x4f2102('0x393')}};}const _0x5c210a=_0x1e84c2;_0x1eef8f[_0x21d0f5('0x1e9a')]=['$scope','$state','socket'];function _0x1eef8f(_0x525859,_0x2066c2,_0x47b5f6){const _0x403243=_0x21d0f5,_0x251efc=this;_0x47b5f6[_0x403243('0x143e')](),_0x47b5f6[_0x403243('0x196c')](),_0x251efc['selectedTab']=0x0;switch(_0x2066c2[_0x403243('0x191')][_0x403243('0x1909')]){case'app.whatsapp.realtime.agents':_0x251efc[_0x403243('0x1179')]=0x0;break;case _0x403243('0x1c4a'):_0x251efc['selectedTab']=0x1;break;default:_0x251efc[_0x403243('0x1179')]=0x0,_0x2066c2['go'](_0x403243('0x69e'));}_0x525859[_0x403243('0x2087')]('vm.selectedTab',function(_0x233423,_0x31a8ce){const _0xa92e26=_0x403243;if(_0x233423!==_0x31a8ce)switch(_0x233423){case 0x0:_0x2066c2['go']('app.whatsapp.realtime.agents');break;case 0x1:_0x2066c2['go'](_0xa92e26('0x1c4a'));break;default:_0x2066c2['go'](_0xa92e26('0x69e'));break;}});}const _0x161f7e=_0x1eef8f;_0x4debd9[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x13d6')];function _0x4debd9(_0x561aa5){const _0xcb2d06=_0x21d0f5;_0x561aa5[_0xcb2d06('0x2124')](_0xcb2d06('0x1ddd'),{'url':_0xcb2d06('0x25aa'),'views':{'content@app':{'templateUrl':_0x435a7e,'controller':_0xcb2d06('0x12dc')}},'resolve':{'userProfile':['apiResolver',_0xcb2d06('0x1150'),function(_0x4ed0ea,_0x10aa54){const _0x3ca5b4=_0xcb2d06;return _0x10aa54['hasRole']('admin')?null:_0x4ed0ea[_0x3ca5b4('0xa28')](_0x3ca5b4('0x428'),{'fields':'id,name,crudPermissions','id':_0x10aa54[_0x3ca5b4('0x2428')]()['userProfileId']});}],'userProfileSection':[_0xcb2d06('0x218e'),'Auth',function(_0x3af364,_0x3979a8){const _0x4eb769=_0xcb2d06;return _0x3979a8[_0x4eb769('0x4ee')](_0x4eb769('0xf45'))?null:_0x3af364[_0x4eb769('0xa28')](_0x4eb769('0x2762'),{'fields':_0x4eb769('0x36d'),'userProfileId':_0x3979a8[_0x4eb769('0x2428')]()['userProfileId'],'sectionId':0x83e});}]},'authenticate':!![],'permissionId':0x83e})[_0xcb2d06('0x2124')](_0xcb2d06('0x69e'),{'url':_0xcb2d06('0x2260'),'controller':'AgentsWhatsappRealtimeController\x20as\x20vm','templateUrl':_0x2b699c,'resolve':{'pauses':[_0xcb2d06('0x218e'),function(_0x11b0b4){const _0x45e597=_0xcb2d06;return _0x11b0b4[_0x45e597('0xa28')](_0x45e597('0x2178'),{'nolimit':!![]});}],'agents':[_0xcb2d06('0x218e'),_0xcb2d06('0x1150'),function(_0x52d393,_0xa13acc){const _0x1821f5=_0xcb2d06;return _0xa13acc['hasRole'](_0x1821f5('0xf45'))?_0x52d393['resolve'](_0x1821f5('0x2166'),{'fields':_0x1821f5('0xd80'),'role':'agent','sort':_0x1821f5('0x27af'),'nolimit':!![]}):_0x52d393[_0x1821f5('0xa28')]('userProfile@getResources',{'id':_0xa13acc[_0x1821f5('0x2428')]()['userProfileId'],'section':_0x1821f5('0x4b1'),'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':_0x1821f5('0x27af'),'nolimit':!![]});}],'userProfile':[_0xcb2d06('0x218e'),_0xcb2d06('0x1150'),function(_0x1e86cd,_0x19fd36){const _0x5dd7cf=_0xcb2d06;return _0x19fd36['hasRole'](_0x5dd7cf('0xf45'))?null:_0x1e86cd[_0x5dd7cf('0xa28')](_0x5dd7cf('0x428'),{'fields':_0x5dd7cf('0xd30'),'id':_0x19fd36[_0x5dd7cf('0x2428')]()[_0x5dd7cf('0x781')]});}],'userProfileSection':[_0xcb2d06('0x218e'),_0xcb2d06('0x1150'),function(_0x549bba,_0x571988){const _0x3bd8c2=_0xcb2d06;return _0x571988[_0x3bd8c2('0x4ee')]('admin')?null:_0x549bba[_0x3bd8c2('0xa28')](_0x3bd8c2('0x2762'),{'fields':_0x3bd8c2('0x36d'),'userProfileId':_0x571988[_0x3bd8c2('0x2428')]()[_0x3bd8c2('0x781')],'sectionId':0xca});}],'rpcAgents':['apiResolver',function(_0xe8ccf0){const _0x1830f4=_0xcb2d06;return _0xe8ccf0['resolve'](_0x1830f4('0x1bbe'));}]},'authenticate':!![],'permissionId':0x83e})[_0xcb2d06('0x2124')](_0xcb2d06('0x1c4a'),{'url':_0xcb2d06('0xb98'),'controller':_0xcb2d06('0x258d'),'templateUrl':_0x206ac8,'resolve':{'queues':[_0xcb2d06('0x218e'),_0xcb2d06('0x1150'),function(_0x238b4b,_0x492191){const _0x4966b5=_0xcb2d06;return _0x492191[_0x4966b5('0x4ee')]('admin')?_0x238b4b[_0x4966b5('0xa28')](_0x4966b5('0x1cb1'),{'type':_0x4966b5('0x18a2'),'sort':_0x4966b5('0x1c74'),'limit':0xa,'offset':0x0}):_0x238b4b['resolve']('userProfile@getResources',{'id':_0x492191['getCurrentUser']()[_0x4966b5('0x781')],'section':'WhatsappQueues','channel':_0x4966b5('0xe7c'),'type':'inbound','sort':_0x4966b5('0x1c74'),'limit':0xa,'page':0x1});}],'userProfile':[_0xcb2d06('0x218e'),_0xcb2d06('0x1150'),function(_0x203902,_0x4de142){const _0x131deb=_0xcb2d06;return _0x4de142[_0x131deb('0x4ee')](_0x131deb('0xf45'))?null:_0x203902['resolve'](_0x131deb('0x428'),{'fields':'id,name,crudPermissions','id':_0x4de142[_0x131deb('0x2428')]()[_0x131deb('0x781')]});}],'userProfileSection':[_0xcb2d06('0x218e'),_0xcb2d06('0x1150'),function(_0x296380,_0x1597e5){const _0x3f5fab=_0xcb2d06;return _0x1597e5[_0x3f5fab('0x4ee')](_0x3f5fab('0xf45'))?null:_0x296380[_0x3f5fab('0xa28')]('userProfileSection@get',{'fields':_0x3f5fab('0x36d'),'userProfileId':_0x1597e5[_0x3f5fab('0x2428')]()[_0x3f5fab('0x781')],'sectionId':0x835});}],'rpcQueues':[_0xcb2d06('0x218e'),function(_0x12bf60){const _0x3c12dc=_0xcb2d06;return _0x12bf60[_0x3c12dc('0xa28')](_0x3c12dc('0x369'));}]},'authenticate':!![],'permissionId':0x83e});}angular[_0x21d0f5('0x2768')](_0x21d0f5('0x1ddd'),[])[_0x21d0f5('0x53a')](_0x4debd9)['controller'](_0x21d0f5('0x404'),_0x49ff70)[_0x21d0f5('0x23eb')]('QueuesWhatsappRealtimeController',_0xadb75f)['factory'](_0x21d0f5('0x927'),_0x5c210a)[_0x21d0f5('0x23eb')](_0x21d0f5('0xbbc'),_0x161f7e);const _0x5bbdbc=_0x351988['p']+_0x21d0f5('0x13e6'),_0x4d397d=_0x351988['p']+'src/js/modules/main/apps/whatsapp/views/whatsappQueues/edit/view.html/view.html',_0xa9df9c=_0x351988['p']+_0x21d0f5('0x41b'),_0x3ea807=_0x351988['p']+_0x21d0f5('0x547');_0x48c9c8[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0xcbc'),_0x21d0f5('0x16b9'),_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0xb6b'),'toasty',_0x21d0f5('0xeaa'),_0x21d0f5('0x2295'),'api',_0x21d0f5('0x1150'),'license','setting',_0x21d0f5('0xb25')];function _0x48c9c8(_0x55223e,_0x3bd88c,_0x613ba5,_0x3da915,_0x1b8058,_0x410a73,_0x1ad6f2,_0x41a7c5,_0x829875,_0x22d878,_0x492095,_0x1fae26,_0x34e50a,_0x129655){const _0x567ebf=_0x21d0f5,_0x14026c=this;_0x14026c['currentUser']=_0x492095[_0x567ebf('0x2428')](),_0x14026c['errors']=[],_0x14026c[_0x567ebf('0x23e1')]=_0x34e50a,_0x14026c[_0x567ebf('0x17ff')]=_0x1fae26,_0x14026c[_0x567ebf('0xb25')]=_0x129655,_0x14026c[_0x567ebf('0x2c9')]={},_0x14026c[_0x567ebf('0x2834')]=_0x14026c[_0x567ebf('0x23e1')]&&_0x14026c[_0x567ebf('0x23e1')][_0x567ebf('0x1d4')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x14026c[_0x567ebf('0x134b')]=_0x567ebf('0x20c4'),_0x14026c['whatsappAccount']=angular[_0x567ebf('0x6fb')](_0x829875),_0x14026c[_0x567ebf('0xeaa')]=_0x41a7c5,_0x14026c[_0x567ebf('0x16ee')]=![];!_0x14026c[_0x567ebf('0x2295')]&&(_0x14026c[_0x567ebf('0x2295')]={'remote':_0x613ba5[_0x567ebf('0x1797')]()+'://'+_0x613ba5[_0x567ebf('0x14ec')]()+(_0x613ba5[_0x567ebf('0x235b')]()?':'+_0x613ba5['port']():''),'type':_0x567ebf('0x1ddb'),'notificationSound':!![],'queueTransferTimeout':0x12c,'waitForTheAssignedAgent':0xa,'agentTransferTimeout':0x12c},_0x14026c[_0x567ebf('0x134b')]=_0x567ebf('0x79'),_0x14026c[_0x567ebf('0x16ee')]=!![]);_0x3bd88c[_0x567ebf('0x1ab3')]['id']&&(_0x14026c[_0x567ebf('0x2295')][_0x567ebf('0x146a')]=_0x3bd88c['params']['id']);_0x14026c[_0x567ebf('0x7b8')]=_0x15c142,_0x14026c['saveWhatsappAccount']=_0x20bdee,_0x14026c[_0x567ebf('0x228')]=_0x55c83b,_0x14026c[_0x567ebf('0x1bd1')]=_0x26bcbc,_0x14026c[_0x567ebf('0xc4e')]=_0xea0326,_0x492095['hasRole'](_0x567ebf('0xf45'))?_0x22d878[_0x567ebf('0xbef')]['get']({'fields':_0x567ebf('0x721'),'sort':'name'})[_0x567ebf('0x1549')][_0x567ebf('0x11bf')](function(_0x457cbb){_0x14026c['lists']=_0x457cbb['rows']||[];})[_0x567ebf('0x151d')](function(_0xa0fb85){const _0x9788fe=_0x567ebf;_0x1ad6f2['error']({'title':_0xa0fb85[_0x9788fe('0xff9')]?_0x9788fe('0x574')+_0xa0fb85[_0x9788fe('0xff9')]+'\x20-\x20'+_0xa0fb85[_0x9788fe('0x212f')]:'SYSTEM:GET_LISTS','msg':_0xa0fb85[_0x9788fe('0x4e8')]?JSON[_0x9788fe('0x3e')](_0xa0fb85[_0x9788fe('0x4e8')]):_0xa0fb85[_0x9788fe('0xaab')]()});}):_0x22d878['cmList']['get']({'fields':'id,name','sort':_0x567ebf('0x1909')})[_0x567ebf('0x1549')][_0x567ebf('0x11bf')](function(_0x20b772){const _0x436b56=_0x567ebf;_0x14026c[_0x436b56('0x2410')]=_0x20b772[_0x436b56('0x19b2')]||[];})['then'](function(){const _0x74775c=_0x567ebf;return _0x22d878[_0x74775c('0x1d63')][_0x74775c('0xbaa')]({'userProfileId':_0x14026c[_0x74775c('0x32a')][_0x74775c('0x781')],'sectionId':0x12d})[_0x74775c('0x1549')];})[_0x567ebf('0x11bf')](function(_0x27dc94){const _0x49e4b0=_0x567ebf,_0x29b50f=_0x27dc94&&_0x27dc94['rows']?_0x27dc94['rows'][0x0]:null;if(!_0x29b50f){const _0x1c6c01=[];let _0x3ee3ce=null;_0x14026c[_0x49e4b0('0x2295')]&&(_0x3ee3ce=_0x36f548()[_0x49e4b0('0x1ad4')](_0x14026c['lists'],{'id':Number(_0x14026c[_0x49e4b0('0x2295')][_0x49e4b0('0x1e91')])}));for(let _0x1c86d4=0x0;_0x1c86d4<_0x14026c[_0x49e4b0('0x2410')]['length'];_0x1c86d4++){_0x3ee3ce&&_0x14026c['lists'][_0x1c86d4]['id']===_0x3ee3ce['id']&&(_0x14026c[_0x49e4b0('0x2410')][_0x1c86d4]['canSelect']=![],_0x1c6c01[_0x49e4b0('0x105d')](_0x14026c[_0x49e4b0('0x2410')][_0x1c86d4]));}_0x14026c['lists']=_0x1c6c01;}else{if(!_0x29b50f[_0x49e4b0('0xf11')])return _0x22d878[_0x49e4b0('0x26d1')][_0x49e4b0('0xbaa')]({'sectionId':_0x29b50f['id']})[_0x49e4b0('0x1549')][_0x49e4b0('0x11bf')](function(_0x2925cc){const _0x45a0af=_0x49e4b0,_0x3a5400=_0x36f548()[_0x45a0af('0x2171')](_0x2925cc[_0x45a0af('0x19b2')],function(_0x2eef1f){const _0x51405e=_0x45a0af;return _0x36f548()['find'](_0x14026c[_0x51405e('0x2410')],{'id':_0x2eef1f[_0x51405e('0x15a5')]});});let _0x6da9de=null;_0x14026c[_0x45a0af('0x2295')]&&(_0x6da9de=_0x36f548()[_0x45a0af('0x1ad4')](_0x14026c['lists'],{'id':Number(_0x14026c[_0x45a0af('0x2295')][_0x45a0af('0x1e91')])}));if(_0x6da9de&&!_0x36f548()['some'](_0x3a5400,['id',_0x6da9de['id']])){const _0x128be9=_0x36f548()[_0x45a0af('0x1ad4')](_0x14026c[_0x45a0af('0x2410')],{'id':_0x6da9de['id']});_0x128be9[_0x45a0af('0x254a')]=![],_0x3a5400[_0x45a0af('0x105d')](_0x128be9);}_0x14026c['lists']=_0x3a5400;});}})[_0x567ebf('0x151d')](function(_0x4b1573){const _0x3e55b9=_0x567ebf;_0x1ad6f2[_0x3e55b9('0x255')]({'title':_0x4b1573[_0x3e55b9('0xff9')]?'API:'+_0x4b1573[_0x3e55b9('0xff9')]+_0x3e55b9('0xb0b')+_0x4b1573['statusText']:_0x3e55b9('0xb71'),'msg':_0x4b1573['data']?JSON[_0x3e55b9('0x3e')](_0x4b1573[_0x3e55b9('0x4e8')]):_0x4b1573[_0x3e55b9('0xaab')]()});}),_0x492095[_0x567ebf('0x4ee')](_0x567ebf('0xf45'))?_0x22d878[_0x567ebf('0x92a')][_0x567ebf('0xbaa')]({'fields':'name,id','sort':_0x567ebf('0x1909'),'nolimit':'true'})[_0x567ebf('0x1549')][_0x567ebf('0x11bf')](function(_0x500a4c){const _0x9cd732=_0x567ebf;_0x14026c[_0x9cd732('0x12f2')]=_0x500a4c['rows']||[];})[_0x567ebf('0x151d')](function(_0x224c3f){const _0x528cd0=_0x567ebf;_0x1ad6f2[_0x528cd0('0x255')]({'title':_0x224c3f[_0x528cd0('0xff9')]?_0x528cd0('0x574')+_0x224c3f['status']+_0x528cd0('0xb0b')+_0x224c3f[_0x528cd0('0x212f')]:_0x528cd0('0x1306'),'msg':_0x224c3f[_0x528cd0('0x4e8')]?JSON[_0x528cd0('0x3e')](_0x224c3f[_0x528cd0('0x4e8')]):_0x224c3f[_0x528cd0('0xaab')]()});}):_0x22d878['pause']['get']({'fields':'name,id','sort':_0x567ebf('0x1909'),'nolimit':_0x567ebf('0x204c')})[_0x567ebf('0x1549')][_0x567ebf('0x11bf')](function(_0x348319){_0x14026c['pauses']=_0x348319['rows']||[];})[_0x567ebf('0x11bf')](function(){const _0xc5e7bd=_0x567ebf;return _0x22d878[_0xc5e7bd('0x1d63')][_0xc5e7bd('0xbaa')]({'userProfileId':_0x14026c[_0xc5e7bd('0x32a')][_0xc5e7bd('0x781')],'sectionId':0x3ed})[_0xc5e7bd('0x1549')];})['then'](function(_0x1c16f4){const _0x53880e=_0x567ebf,_0x290bdc=_0x1c16f4&&_0x1c16f4[_0x53880e('0x19b2')]?_0x1c16f4['rows'][0x0]:null;if(!_0x290bdc)_0x14026c['pauses']=[];else{if(!_0x290bdc[_0x53880e('0xf11')])return _0x22d878[_0x53880e('0x26d1')][_0x53880e('0xbaa')]({'sectionId':_0x290bdc['id']})[_0x53880e('0x1549')][_0x53880e('0x11bf')](function(_0x5e4dfe){const _0x16bc22=_0x53880e,_0xf4b1aa=_0x36f548()[_0x16bc22('0x2171')](_0x5e4dfe[_0x16bc22('0x19b2')],function(_0x1838dd){const _0x2a6894=_0x16bc22;return _0x36f548()[_0x2a6894('0x1ad4')](_0x14026c['pauses'],{'id':_0x1838dd[_0x2a6894('0x15a5')]});});_0x14026c[_0x16bc22('0x12f2')]['forEach'](function(_0x50acfb){const _0x39891a=_0x16bc22;!_0x36f548()['some'](_0xf4b1aa,['id',_0x50acfb['id']])&&(_0x50acfb[_0x39891a('0x254a')]=![]),_0xf4b1aa[_0x39891a('0x105d')](_0x50acfb);}),_0x14026c[_0x16bc22('0x12f2')]=_0xf4b1aa;});}})[_0x567ebf('0x151d')](function(_0x56a0d2){const _0x24b84f=_0x567ebf;_0x1ad6f2[_0x24b84f('0x255')]({'title':_0x56a0d2[_0x24b84f('0xff9')]?_0x24b84f('0x574')+_0x56a0d2[_0x24b84f('0xff9')]+'\x20-\x20'+_0x56a0d2['statusText']:'SYSTEM:GETpauses','msg':_0x56a0d2[_0x24b84f('0x4e8')]?JSON['stringify'](_0x56a0d2[_0x24b84f('0x4e8')]):_0x56a0d2[_0x24b84f('0xaab')]()});});function _0x15c142(){const _0x3aeac8=_0x567ebf;_0x14026c[_0x3aeac8('0x120f')]=[],_0x22d878[_0x3aeac8('0x2295')][_0x3aeac8('0x259')](_0x14026c[_0x3aeac8('0x2295')])[_0x3aeac8('0x1549')][_0x3aeac8('0x11bf')](function(_0x344f94){const _0x14e589=_0x3aeac8;_0x14026c['whatsappAccounts'][_0x14e589('0x880')](_0x344f94[_0x14e589('0x2866')]()),_0x1ad6f2[_0x14e589('0x2693')]({'title':_0x14e589('0x4de'),'msg':_0x14026c[_0x14e589('0x2295')][_0x14e589('0x1909')]?_0x14026c[_0x14e589('0x2295')]['name']+_0x14e589('0x7fb'):''}),_0xea0326(_0x344f94);})[_0x3aeac8('0x151d')](function(_0x4eb34c){const _0x23ad32=_0x3aeac8;if(_0x4eb34c['data']&&_0x4eb34c[_0x23ad32('0x4e8')][_0x23ad32('0x120f')]&&_0x4eb34c['data'][_0x23ad32('0x120f')][_0x23ad32('0x1e22')]){_0x14026c['errors']=_0x4eb34c[_0x23ad32('0x4e8')]['errors']||[{'message':_0x4eb34c[_0x23ad32('0xaab')](),'type':_0x23ad32('0xc24')}];for(let _0x69bae5=0x0;_0x69bae5<_0x4eb34c['data'][_0x23ad32('0x120f')][_0x23ad32('0x1e22')];_0x69bae5+=0x1){_0x1ad6f2[_0x23ad32('0x255')]({'title':_0x4eb34c[_0x23ad32('0x4e8')][_0x23ad32('0x120f')][_0x69bae5][_0x23ad32('0x19fd')],'msg':_0x4eb34c['data'][_0x23ad32('0x120f')][_0x69bae5][_0x23ad32('0x1b86')]});}}else _0x1ad6f2[_0x23ad32('0x255')]({'title':_0x4eb34c[_0x23ad32('0xff9')]?_0x23ad32('0x574')+_0x4eb34c['status']+'\x20-\x20'+_0x4eb34c['statusText']:_0x23ad32('0xc24'),'msg':_0x4eb34c[_0x23ad32('0x4e8')]?JSON[_0x23ad32('0x3e')](_0x4eb34c[_0x23ad32('0x4e8')]['message']):_0x4eb34c[_0x23ad32('0xaab')]()});});}function _0x20bdee(){const _0x56b089=_0x567ebf;_0x14026c[_0x56b089('0x120f')]=[],_0x22d878['whatsappAccount']['update']({'id':_0x14026c[_0x56b089('0x2295')]['id']},_0x14026c[_0x56b089('0x2295')])[_0x56b089('0x1549')][_0x56b089('0x11bf')](function(_0x2f7384){const _0x2ee956=_0x56b089,_0x33b6ab=_0x36f548()[_0x2ee956('0x1ad4')](_0x14026c[_0x2ee956('0xeaa')],{'id':_0x2f7384['id']});_0x33b6ab&&_0x36f548()[_0x2ee956('0x47b')](_0x33b6ab,_0x36f548()[_0x2ee956('0x258')](_0x2f7384[_0x2ee956('0x2866')](),_0x36f548()[_0x2ee956('0xe22')](_0x33b6ab))),_0x1ad6f2['success']({'title':'WhatsappAccount\x20properly\x20saved!','msg':_0x14026c[_0x2ee956('0x2295')][_0x2ee956('0x1909')]?_0x14026c[_0x2ee956('0x2295')][_0x2ee956('0x1909')]+_0x2ee956('0x1a78'):''}),_0xea0326(_0x2f7384);})[_0x56b089('0x151d')](function(_0x5b6dc3){const _0x849284=_0x56b089;if(_0x5b6dc3[_0x849284('0x4e8')]&&_0x5b6dc3['data']['errors']&&_0x5b6dc3['data']['errors'][_0x849284('0x1e22')]){_0x14026c['errors']=_0x5b6dc3[_0x849284('0x4e8')][_0x849284('0x120f')]||[{'message':_0x5b6dc3['toString'](),'type':_0x849284('0xe88')}];for(let _0xdc3f06=0x0;_0xdc3f06<_0x5b6dc3[_0x849284('0x4e8')][_0x849284('0x120f')][_0x849284('0x1e22')];_0xdc3f06++){_0x1ad6f2[_0x849284('0x255')]({'title':_0x5b6dc3[_0x849284('0x4e8')][_0x849284('0x120f')][_0xdc3f06][_0x849284('0x19fd')],'msg':_0x5b6dc3['data'][_0x849284('0x120f')][_0xdc3f06]['message']});}}else _0x1ad6f2['error']({'title':_0x5b6dc3[_0x849284('0xff9')]?_0x849284('0x574')+_0x5b6dc3[_0x849284('0xff9')]+_0x849284('0xb0b')+_0x5b6dc3['statusText']:_0x849284('0xe88'),'msg':_0x5b6dc3[_0x849284('0x4e8')]?JSON[_0x849284('0x3e')](_0x5b6dc3['data'][_0x849284('0x1b86')]):_0x5b6dc3[_0x849284('0xaab')]()});});}function _0x55c83b(_0x2a4ffa){const _0x39de16=_0x567ebf;_0x14026c[_0x39de16('0x120f')]=[];const _0x536082=_0x3da915[_0x39de16('0x132b')]()[_0x39de16('0x134b')](_0x39de16('0x1fa9'))[_0x39de16('0x252a')]('The\x20whatsappAccount\x20will\x20be\x20deleted.')[_0x39de16('0xb2e')]('Delete\x20WhatsappAccount')['ok']('Delete')[_0x39de16('0x26c9')](_0x39de16('0x784'))['targetEvent'](_0x2a4ffa);_0x3da915[_0x39de16('0xb9')](_0x536082)['then'](function(){const _0x51a174=_0x39de16;_0x22d878[_0x51a174('0x2295')][_0x51a174('0x2088')]({'id':_0x14026c['whatsappAccount']['id']})[_0x51a174('0x1549')]['then'](function(){const _0x410f75=_0x51a174;_0x36f548()[_0x410f75('0x14a5')](_0x14026c[_0x410f75('0xeaa')],{'id':_0x14026c[_0x410f75('0x2295')]['id']}),_0x1ad6f2['success']({'title':_0x410f75('0x143a'),'msg':(_0x14026c['whatsappAccount'][_0x410f75('0x1909')]||_0x410f75('0x2295'))+_0x410f75('0x433')}),_0xea0326(_0x14026c[_0x410f75('0x2295')]);})[_0x51a174('0x151d')](function(_0xb0dd3f){const _0x3f989e=_0x51a174;if(_0xb0dd3f[_0x3f989e('0x4e8')]&&_0xb0dd3f[_0x3f989e('0x4e8')][_0x3f989e('0x120f')]&&_0xb0dd3f[_0x3f989e('0x4e8')][_0x3f989e('0x120f')][_0x3f989e('0x1e22')]){_0x14026c[_0x3f989e('0x120f')]=_0xb0dd3f['data'][_0x3f989e('0x120f')]||[{'message':_0xb0dd3f[_0x3f989e('0xaab')](),'type':_0x3f989e('0x162e')}];for(let _0x55e4fa=0x0;_0x55e4fa<_0xb0dd3f[_0x3f989e('0x4e8')][_0x3f989e('0x120f')][_0x3f989e('0x1e22')];_0x55e4fa++){_0x1ad6f2[_0x3f989e('0x255')]({'title':_0xb0dd3f[_0x3f989e('0x4e8')][_0x3f989e('0x120f')][_0x55e4fa]['type'],'msg':_0xb0dd3f[_0x3f989e('0x4e8')][_0x3f989e('0x120f')][_0x55e4fa][_0x3f989e('0x1b86')]});}}else _0x1ad6f2[_0x3f989e('0x255')]({'title':_0xb0dd3f['status']?_0x3f989e('0x574')+_0xb0dd3f['status']+_0x3f989e('0xb0b')+_0xb0dd3f[_0x3f989e('0x212f')]:_0x3f989e('0x162e'),'msg':_0xb0dd3f[_0x3f989e('0x4e8')]?JSON[_0x3f989e('0x3e')](_0xb0dd3f['data'][_0x3f989e('0x1b86')]):_0xb0dd3f[_0x3f989e('0x1b86')]||_0xb0dd3f[_0x3f989e('0xaab')]()});});},function(){});}function _0x26bcbc(_0x4a5284){return _0x4a5284===null?undefined:new Date(_0x4a5284);}function _0xea0326(_0x110f11){const _0x140aed=_0x567ebf;_0x3da915[_0x140aed('0x237e')](_0x110f11);}}const _0x3423e2=_0x48c9c8,_0x1a46b8=_0x351988['p']+_0x21d0f5('0x1f09'),_0x11b00c=_0x351988['p']+_0x21d0f5('0x3c1'),_0x5df751=_0x351988['p']+_0x21d0f5('0x195b'),_0x375b97=_0x351988['p']+_0x21d0f5('0x2006'),_0xde586d=_0x351988['p']+'src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/dialogflow/dialog.html/dialog.html',_0x597226=_0x351988['p']+'src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/gotoif/dialog.html/dialog.html',_0x431c69=_0x351988['p']+_0x21d0f5('0x27ea'),_0x4580b2=_0x351988['p']+_0x21d0f5('0x688'),_0x51cd7a=_0x351988['p']+_0x21d0f5('0x564'),_0x2d5d87=_0x351988['p']+'src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/queue/dialog.html/dialog.html',_0x3f3fc4=_0x351988['p']+_0x21d0f5('0xf5c'),_0x14419e=_0x351988['p']+'src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/tag/dialog.html/dialog.html';_0x2f136a[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x12a5'),_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),_0x21d0f5('0x142d'),_0x21d0f5('0x1150')];const _0x3d3b4d={'agent':_0x1a46b8,'amazonlex':_0x11b00c,'autoreply':_0x5df751,'close':_0x375b97,'dialogflow':_0xde586d,'gotoif':_0x597226,'gotop':_0x431c69,'interval':_0x4580b2,'noop':_0x51cd7a,'queue':_0x2d5d87,'system':_0x3f3fc4,'tag':_0x14419e};function _0x2f136a(_0x49ac1b,_0x144556,_0x1ab9b7,_0x4a4089,_0xd6b19e){const _0x5af912=_0x21d0f5,_0x2f0bd7=this;_0x2f0bd7['currentUser']=_0xd6b19e[_0x5af912('0x2428')](),_0x2f0bd7[_0x5af912('0x2295')]={},_0x2f0bd7[_0x5af912('0x6ce')]={'count':0x0,'rows':[]},_0x2f0bd7[_0x5af912('0x700')]=[],_0x2f0bd7[_0x5af912('0xb25')],_0x2f0bd7[_0x5af912('0x1f2a')]={'sort':_0x5af912('0x2804')},_0x2f0bd7['apps']=_0x36f548()[_0x5af912('0x4a')](_0x36f548()[_0x5af912('0xd39')]([{'app':_0x5af912('0x1979'),'appType':_0x5af912('0x507'),'types':['always',_0x5af912('0xa8d'),_0x5af912('0x257d')],'fields':[],'isApp':![]},{'app':_0x5af912('0x2b8'),'appType':'noop','type':_0x5af912('0x2b8'),'icon':_0x5af912('0x206d'),'interval':_0x5af912('0x1830'),'required':!![],'isApp':!![],'fields':[{'title':_0x5af912('0x255a'),'name':_0x5af912('0x10cc'),'type':'text','param':0x0}]},{'app':_0x5af912('0x196d'),'appType':'system','type':'system','icon':_0x5af912('0x206d'),'interval':_0x5af912('0x1830'),'required':!![],'isApp':!![],'extraApi':[{'name':_0x5af912('0x1700'),'field':{'name':_0x5af912('0xb0'),'key':_0x5af912('0x1909')},'route':'variable','filters':{'fields':_0x5af912('0x721'),'sort':_0x5af912('0x1909'),'nolimit':!![]},'permissions':{'section':0x3f4}}],'fields':[{'title':'Command','name':'command','type':_0x5af912('0x25ed'),'required':!![],'param':0x0},{'title':_0x5af912('0xb76'),'name':_0x5af912('0xb0'),'type':'apiselect','values':'variables','value':_0x5af912('0x1509'),'option':_0x5af912('0x1509'),'defaultValues':[{'value':'\x27\x27','option':'None'}],'defaultValue':'\x27\x27','param':0x1}]},{'app':_0x5af912('0x110d'),'appType':_0x5af912('0x110d'),'type':_0x5af912('0x2190'),'icon':'icon-apps','interval':_0x5af912('0x1830'),'isApp':!![],'fields':[{'title':_0x5af912('0x1c98'),'name':'priority','type':'number','required':!![],'min':0x0,'param':0x0}]},{'app':_0x5af912('0x7cf'),'appType':_0x5af912('0x7cf'),'type':'gotoif','icon':_0x5af912('0x206d'),'interval':_0x5af912('0x1830'),'isApp':!![],'fields':[{'title':_0x5af912('0x1c99'),'name':_0x5af912('0xccd'),'type':_0x5af912('0x25ed'),'required':!![],'param':0x0},{'title':'truepriority','name':_0x5af912('0x1deb'),'type':'number','min':0x1,'required':!![],'param':0x1},{'title':'falsepriority','name':'falsepriority','type':'number','min':0x1,'required':!![],'param':0x2}]},{'app':'queue','appType':'queue','foreignKey':_0x5af912('0x1d5b'),'type':_0x5af912('0x150b'),'icon':_0x5af912('0x206d'),'interval':_0x5af912('0x1830'),'isApp':!![],'extraApi':[{'name':_0x5af912('0x1de3'),'field':{'name':'queue','key':_0x5af912('0x1909')},'route':_0x5af912('0x1d53'),'filters':{'fields':_0x5af912('0xde'),'sort':_0x5af912('0x1909'),'nolimit':!![]},'permissions':{'section':0x836}}],'fields':[{'title':_0x5af912('0x1c29'),'name':_0x5af912('0x150b'),'type':_0x5af912('0x108f'),'values':_0x5af912('0x1de3'),'value':'queue.name','option':'queue.name','defaultValue':0x12c,'required':!![],'param':0x0},{'title':_0x5af912('0x65'),'name':_0x5af912('0xfbe'),'type':'number','max':0x20c49b,'min':0x0,'required':!![],'defaultValue':0x12c,'param':0x1}]},{'app':_0x5af912('0x18c4'),'appType':_0x5af912('0x18c4'),'type':_0x5af912('0x18c4'),'foreignKey':_0x5af912('0x2342'),'icon':_0x5af912('0x206d'),'interval':'*,*,*,*','isApp':!![],'extraApi':[{'name':_0x5af912('0x1401'),'field':{'name':_0x5af912('0x18c4'),'key':'name'},'route':_0x5af912('0x21d9'),'filters':{'fields':_0x5af912('0x721'),'sort':'name','nolimit':!![],'role':_0x5af912('0x18c4')},'permissions':{'section':0xca}}],'fields':[{'title':_0x5af912('0x701'),'name':'agent','type':_0x5af912('0x108f'),'values':_0x5af912('0x1401'),'value':_0x5af912('0xf71'),'option':'agent.name','required':!![],'param':0x0},{'title':_0x5af912('0x65'),'name':_0x5af912('0xfbe'),'type':_0x5af912('0x139e'),'max':0x20c49b,'min':0x0,'required':!![],'defaultValue':0x1e,'param':0x1}]},{'app':_0x5af912('0x187b'),'appType':_0x5af912('0x187b'),'type':_0x5af912('0x187b'),'icon':'icon-apps','interval':_0x5af912('0x1830'),'isApp':!![],'fields':[{'title':'times','name':_0x5af912('0x663'),'type':_0x5af912('0x2350'),'defaultValue':'1','values':[{'option':_0x5af912('0x594'),'value':'1'},{'option':'Always','value':'0'}],'required':!![],'param':0x0},{'title':_0x5af912('0x1823'),'name':_0x5af912('0x25ed'),'type':_0x5af912('0x265f'),'required':!![],'param':0x1}]},{'app':_0x5af912('0x2132'),'appType':'close','type':_0x5af912('0x2132'),'icon':'icon-apps','interval':_0x5af912('0x1830'),'isApp':!![],'fields':[{'title':_0x5af912('0x16e7'),'name':_0x5af912('0x107a'),'type':_0x5af912('0x25ed'),'required':!![],'param':0x0}]},{'app':_0x5af912('0x1d73'),'appType':'tag','type':_0x5af912('0x1d73'),'foreignKey':_0x5af912('0x3a3'),'icon':_0x5af912('0x206d'),'interval':'*,*,*,*','isApp':!![],'extraApi':[{'name':_0x5af912('0x2763'),'field':{'name':_0x5af912('0x1d73'),'key':_0x5af912('0x1909')},'route':_0x5af912('0x1d73'),'filters':{'fields':_0x5af912('0x721'),'sort':_0x5af912('0x1909'),'nolimit':!![]},'permissions':{'section':0x3f0}}],'fields':[{'title':'Tag','name':_0x5af912('0x1d73'),'type':_0x5af912('0x108f'),'values':'tags','value':_0x5af912('0x6aa'),'option':_0x5af912('0x6aa'),'required':!![],'param':0x0}]},{'app':_0x5af912('0x185e'),'appType':_0x5af912('0x185e'),'type':'dialogflow','icon':_0x5af912('0x206d'),'interval':_0x5af912('0x1830'),'isApp':!![],'fields':[{'title':_0x5af912('0x1554'),'name':'key','type':_0x5af912('0x25ed'),'required':!![],'param':0x0},{'title':_0x5af912('0xeff'),'name':_0x5af912('0xeff'),'type':_0x5af912('0x2350'),'defaultValue':_0x5af912('0x55f'),'values':[{'option':_0x5af912('0xaa9'),'value':'\x27da\x27'},{'option':_0x5af912('0x1e7'),'value':_0x5af912('0x55f')},{'option':_0x5af912('0x1750'),'value':'\x27de\x27'},{'option':_0x5af912('0x12cc'),'value':_0x5af912('0x141c')},{'option':'Spanish','value':'\x27es\x27'},{'option':'French','value':_0x5af912('0x140e')},{'option':_0x5af912('0xea'),'value':_0x5af912('0x149a')},{'option':'Japanese','value':'\x27ja\x27'},{'option':_0x5af912('0x768'),'value':_0x5af912('0x1749')},{'option':_0x5af912('0x18fa'),'value':'\x27nl\x27'},{'option':_0x5af912('0x210'),'value':_0x5af912('0x19bb')},{'option':_0x5af912('0x11e5'),'value':_0x5af912('0x1621')},{'option':'Portuguese\x20(Nrazilian)','value':_0x5af912('0x1ad6')},{'option':_0x5af912('0x1995'),'value':'\x27ru\x27'},{'option':_0x5af912('0x52e'),'value':_0x5af912('0x5f')},{'option':_0x5af912('0x17ed'),'value':_0x5af912('0x14e2')},{'option':_0x5af912('0x2199'),'value':_0x5af912('0x189f')},{'option':_0x5af912('0x16e4'),'value':'\x27zh-CN\x27'},{'option':_0x5af912('0x1b2'),'value':'\x27zh-HK\x27'},{'option':_0x5af912('0x1f06'),'value':_0x5af912('0x1c65')}],'required':!![],'param':0x1},{'title':'welcomemessage','name':'welcomemessage','type':'textarea','maxlength':0xff,'required':![],'param':0x2,'help':!![]}]},{'app':_0x5af912('0x1de4'),'appType':_0x5af912('0x21a8'),'type':_0x5af912('0x21a8'),'icon':'icon-apps','interval':'*,*,*,*','isApp':!![],'fields':[{'title':_0x5af912('0x24fa'),'name':_0x5af912('0x20e'),'type':_0x5af912('0x25ed'),'required':!![],'param':0x0},{'title':'ClientEmail','name':_0x5af912('0x1f91'),'type':_0x5af912('0x25ed'),'required':!![],'param':0x1},{'title':_0x5af912('0xc1c'),'name':_0x5af912('0x1c6c'),'type':'textarea','required':!![],'param':0x2},{'title':_0x5af912('0xeff'),'name':_0x5af912('0xeff'),'type':_0x5af912('0x2350'),'defaultValue':_0x5af912('0x55f'),'values':[{'value':_0x5af912('0x114b'),'option':_0x5af912('0x2444')},{'value':_0x5af912('0xd3e'),'option':_0x5af912('0x16e4')},{'value':_0x5af912('0x1c65'),'option':_0x5af912('0x1f06')},{'value':'\x27da\x27','option':'Danish'},{'value':_0x5af912('0x84'),'option':'Dutch'},{'value':_0x5af912('0x55f'),'option':_0x5af912('0x1e7')},{'value':_0x5af912('0x1e99'),'option':_0x5af912('0x2067')},{'value':_0x5af912('0x130a'),'option':_0x5af912('0x1eb5')},{'value':_0x5af912('0x1933'),'option':_0x5af912('0x15af')},{'value':'\x27en-IN\x27','option':'English\x20(India)'},{'value':_0x5af912('0x24d4'),'option':'English\x20(US)'},{'value':_0x5af912('0x140e'),'option':_0x5af912('0x352')},{'value':'\x27fr-CA\x27','option':_0x5af912('0x1404')},{'value':_0x5af912('0x276e'),'option':_0x5af912('0x2722')},{'value':'\x27de\x27','option':_0x5af912('0x1750')},{'value':'\x27hi\x27','option':'Hindi'},{'value':_0x5af912('0x149a'),'option':_0x5af912('0xea')},{'value':'\x27it\x27','option':_0x5af912('0x12cc')},{'value':_0x5af912('0x1296'),'option':_0x5af912('0x1b3d')},{'value':_0x5af912('0x1749'),'option':_0x5af912('0x27cd')},{'value':_0x5af912('0x19bb'),'option':'Norwegian'},{'value':'\x27pl\x27','option':_0x5af912('0xab7')},{'value':'\x27pt-BR\x27','option':_0x5af912('0x1476')},{'value':'\x27pt-PT\x27','option':_0x5af912('0x1949')},{'value':_0x5af912('0x19dd'),'option':_0x5af912('0x1995')},{'value':_0x5af912('0x1537'),'option':'Spanish'},{'value':'\x27es-419\x27','option':_0x5af912('0xc6c')},{'value':_0x5af912('0x1314'),'option':_0x5af912('0x452')},{'value':'\x27sw\x27','option':_0x5af912('0x52e')},{'value':_0x5af912('0x14e2'),'option':'Thai'},{'value':_0x5af912('0x1da1'),'option':_0x5af912('0x2122')},{'value':_0x5af912('0x189f'),'option':_0x5af912('0x2199')}],'required':!![],'param':0x3},{'title':_0x5af912('0x1cbc'),'name':'welcomemessage','type':_0x5af912('0x265f'),'maxlength':0xff,'param':0x4,'help':!![]}]},{'app':'amazonlex','appType':_0x5af912('0x102c'),'type':'amazonlex','icon':_0x5af912('0x206d'),'interval':'*,*,*,*','isApp':!![],'fields':[{'title':'accesskeyid','name':'accesskeyid','type':'text','required':!![],'param':0x0},{'title':'secretaccesskey','name':_0x5af912('0x1422'),'type':_0x5af912('0x25ed'),'required':!![],'param':0x1},{'title':_0x5af912('0x165a'),'name':_0x5af912('0x165a'),'type':_0x5af912('0x2350'),'defaultValue':_0x5af912('0xa80'),'values':[{'option':_0x5af912('0x13be'),'value':_0x5af912('0xa80')},{'option':_0x5af912('0x27e6'),'value':_0x5af912('0xa8')},{'option':_0x5af912('0x1c40'),'value':_0x5af912('0x17a6')},{'option':_0x5af912('0x2704'),'value':_0x5af912('0x1942')}],'required':!![],'param':0x2},{'title':'botname','name':'botname','type':_0x5af912('0x25ed'),'required':!![],'param':0x3},{'title':_0x5af912('0x1cbc'),'name':_0x5af912('0x1cbc'),'type':_0x5af912('0x265f'),'maxlength':0xff,'required':![],'param':0x4,'help':!![]}]}],[_0x5af912('0x18f5')]),{'isApp':![]}),_0x2f0bd7['list']={'group':{'name':'opt1','pull':_0x5af912('0x208b')},'animation':0x64,'sort':![]},_0x2f0bd7[_0x5af912('0xb9b')]={'group':{'name':'opt2','put':_0x5af912('0x1525')},'animation':0x64,'onAdd':function(_0x4d7ce6){const _0x37d31a=_0x5af912;_0x4dc63e(_0x4d7ce6,_0x4d7ce6[_0x37d31a('0x384')]);},'onSort':function(){_0x4341e5();}},_0x2f0bd7['init']=_0x213ae3,_0x2f0bd7[_0x5af912('0x560')]=_0x3d3afe,_0x2f0bd7[_0x5af912('0x1ccf')]=_0xadfcc5,_0x2f0bd7[_0x5af912('0x543')]=_0x4dc63e,_0x2f0bd7[_0x5af912('0x1452')]=_0x5dcf8a,_0x2f0bd7[_0x5af912('0x1bbf')]=_0x4a3207,_0x2f0bd7[_0x5af912('0x2485')]=_0x3ca5b1,_0x2f0bd7[_0x5af912('0xf09')]=_0x4341e5,_0x2f0bd7[_0x5af912('0x431')]=_0x381820;function _0x213ae3(_0xe1925e,_0x26db2e){const _0x3b8d06=_0x5af912;_0x2f0bd7[_0x3b8d06('0x2295')]=_0xe1925e,_0x2f0bd7[_0x3b8d06('0xb25')]=typeof _0x26db2e!=='undefined'?_0x26db2e:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x2f0bd7[_0x3b8d06('0xb9b')][_0x3b8d06('0xa4b')]=!_0x2f0bd7[_0x3b8d06('0xb25')][_0x3b8d06('0x25db')]?!![]:![],_0x2f0bd7[_0x3b8d06('0x1f2a')]['id']=_0xe1925e['id'],_0x2f0bd7[_0x3b8d06('0x1f2a')][_0x3b8d06('0x1210')]=!![],_0x2f0bd7['query'][_0x3b8d06('0x287')]=!![],_0x2f0bd7[_0x3b8d06('0x1ccf')](),_0x2f0bd7['getIntervals']();}function _0x3d3afe(_0x3ffe0d,_0x9efdcd,_0xb5a319){const _0x5c5e21=_0x5af912,_0x565585=_0x144556[_0x5c5e21('0x132b')]()[_0x5c5e21('0x134b')](_0x5c5e21('0x93a'))[_0x5c5e21('0x1d03')](_0x5c5e21('0x2061')+_0x3ffe0d['app']+_0x5c5e21('0x1c78')+_0x5c5e21('0x1a'))['ariaLabel'](_0x5c5e21('0x177'))[_0x5c5e21('0x1e25')](_0xb5a319)['ok']('OK')[_0x5c5e21('0x26c9')](_0x5c5e21('0x772'));_0x144556[_0x5c5e21('0xb9')](_0x565585)['then'](function(){const _0x2d19c7=_0x5c5e21;_0x2f0bd7[_0x2d19c7('0x6ce')]['rows'][_0x2d19c7('0x1ae')](_0x9efdcd,0x1),_0x4341e5();},function(){const _0x5d23b7=_0x5c5e21;console[_0x5d23b7('0xc78')](_0x5d23b7('0x772'));});}function _0x4dc63e(_0x42f8cd,_0x3b03d5){const _0x531fa3=_0x5af912;if(_0x2f0bd7['whatsappAccountApps'][_0x531fa3('0x19b2')][_0x531fa3('0x1e22')]){const _0x72fbe=_0x2f0bd7[_0x531fa3('0x6ce')][_0x531fa3('0x19b2')][_0x3b03d5]?_0x2f0bd7[_0x531fa3('0x6ce')][_0x531fa3('0x19b2')][_0x3b03d5]:_0x2f0bd7['whatsappAccountApps'][_0x531fa3('0x19b2')][0x0],_0x32bbcc=(_0x72fbe[_0x531fa3('0x27c0')]||_0x72fbe['app'])['toLowerCase']();_0x144556[_0x531fa3('0xb9')]({'controller':_0x531fa3('0x14e6')+_0x32bbcc+_0x531fa3('0xf3f'),'controllerAs':'vm','templateUrl':_0x3d3b4d[_0x32bbcc],'parent':angular['element'](_0x1ab9b7['body']),'targetEvent':_0x42f8cd,'clickOutsideToClose':!![],'locals':{'whatsappAccountApp':_0x72fbe,'whatsappAccount':_0x2f0bd7['whatsappAccount'],'crudPermissions':_0x2f0bd7[_0x531fa3('0xb25')]}})[_0x531fa3('0x11bf')](function(_0x2f01f4){const _0x2d9623=_0x531fa3;_0x2f01f4&&(_0x2f01f4['id']?_0x2f0bd7['whatsappAccountApps']['rows'][_0x3b03d5]=_0x2f01f4:_0x2f0bd7['whatsappAccountApps'][_0x2d9623('0x19b2')][_0x2d9623('0x1ae')](_0x3b03d5,0x0,_0x2f01f4),_0x4341e5());})[_0x531fa3('0x151d')](function(_0x3722e2){const _0x13ac4c=_0x531fa3;_0x3722e2&&_0x4a4089[_0x13ac4c('0x255')]({'title':_0x3722e2[_0x13ac4c('0xff9')]?_0x13ac4c('0x574')+_0x3722e2[_0x13ac4c('0xff9')]+_0x13ac4c('0xb0b')+_0x3722e2[_0x13ac4c('0x212f')]:_0x13ac4c('0x154c'),'msg':_0x3722e2[_0x13ac4c('0x4e8')]?JSON['stringify'](_0x3722e2[_0x13ac4c('0x4e8')]):_0x3722e2[_0x13ac4c('0xaab')]()});});}}function _0x5dcf8a(_0x32c42b,_0x22a731){const _0x195fb4=_0x5af912;if(_0x2f0bd7['whatsappAccountApps'][_0x195fb4('0x19b2')][_0x195fb4('0x1e22')]){const _0x5884c0=_0x2f0bd7['whatsappAccountApps'][_0x195fb4('0x19b2')][_0x22a731]?_0x2f0bd7[_0x195fb4('0x6ce')]['rows'][_0x22a731]:_0x2f0bd7[_0x195fb4('0x6ce')][_0x195fb4('0x19b2')][0x0];_0x144556['show']({'controller':'EditWhatsappAccountAppintervalDialogController','controllerAs':'vm','templateUrl':_0x4580b2,'parent':angular[_0x195fb4('0x1e73')](_0x1ab9b7[_0x195fb4('0x1d2')]),'targetEvent':_0x32c42b,'clickOutsideToClose':!![],'locals':{'interval':{'interval':_0x5884c0[_0x195fb4('0x507')],'IntervalId':_0x5884c0[_0x195fb4('0x6b4')],'application':!![]},'intervals':[],'crudPermissions':_0x2f0bd7[_0x195fb4('0xb25')]}})[_0x195fb4('0x11bf')](function(_0x8f1130){const _0x477063=_0x195fb4;_0x8f1130&&(_0x5884c0[_0x477063('0x507')]=_0x8f1130['interval']||_0x477063('0x1830'),_0x5884c0[_0x477063('0x6b4')]=_0x8f1130['IntervalId']||null,_0x4341e5());});}}function _0x4341e5(){const _0x4d48c9=_0x5af912;let _0x17bc5e=0x1,_0x4ae965=[];for(let _0x4b5957=0x0;_0x4b5957<_0x2f0bd7[_0x4d48c9('0x6ce')][_0x4d48c9('0x19b2')]['length'];_0x4b5957++){const _0x13212b=_0x2f0bd7[_0x4d48c9('0x6ce')][_0x4d48c9('0x19b2')][_0x4b5957],_0x2b6a93=[],_0x1f1377=[];_0x13212b[_0x4d48c9('0xe82')]=_0x13212b[_0x4d48c9('0x507')]!=='*,*,*,*'?[_0x13212b[_0x4d48c9('0x507')]]:_0x13212b['IntervalId']?_0x36f548()['map'](_0x36f548()[_0x4d48c9('0xdb4')](_0x2f0bd7[_0x4d48c9('0xe82')][_0x4d48c9('0x19b2')],{'IntervalId':_0x13212b[_0x4d48c9('0x6b4')]}),'interval'):[],_0x13212b['context']=_0x2f0bd7[_0x4d48c9('0x2295')]['context'],_0x13212b[_0x4d48c9('0x4c6')]=_0x2f0bd7[_0x4d48c9('0x2295')]['exten'],_0x13212b['type']&&(_0x13212b[_0x4d48c9('0x19fd')]=_0x13212b[_0x4d48c9('0x19fd')][_0x4d48c9('0x20d5')]()),_0x13212b[_0x4d48c9('0x2804')]=_0x2b6a93[_0x4d48c9('0x1e22')]?_0x36f548()[_0x4d48c9('0x1093')](_0x2b6a93)[_0x4d48c9('0x2804')]+0x1:_0x17bc5e,_0x17bc5e=(_0x1f1377[_0x4d48c9('0x1e22')]?_0x36f548()['last'](_0x1f1377)[_0x4d48c9('0x2804')]:_0x13212b[_0x4d48c9('0x2804')])+0x1,_0x4ae965=_0x36f548()[_0x4d48c9('0x20bf')](_0x4ae965,_0x2b6a93,[_0x13212b],_0x1f1377);}_0x49ac1b[_0x4d48c9('0x2295')]['addApplications']({'id':_0x2f0bd7[_0x4d48c9('0x2295')]['id']},_0x36f548()['sortBy'](_0x4ae965,_0x4d48c9('0x2804')))[_0x4d48c9('0x1549')]['then'](function(_0xb1f4cc){const _0x4917b3=_0x4d48c9;_0x2f0bd7[_0x4917b3('0x6ce')][_0x4917b3('0x19b2')]=_0xb1f4cc[_0x4917b3('0x19b2')];})[_0x4d48c9('0x151d')](function(_0x573b9f){const _0x21a110=_0x4d48c9;console[_0x21a110('0x255')](_0x573b9f);});}function _0x2f88cf(_0x21c9d9){const _0x474776=_0x5af912;_0x2f0bd7[_0x474776('0x6ce')]=_0x21c9d9||{'count':0x0,'rows':[]};}function _0x381820(){const _0x3df93b=_0x5af912;return _0x49ac1b[_0x3df93b('0x507')][_0x3df93b('0xbaa')]({'fields':'id,interval,IntervalId'})[_0x3df93b('0x1549')][_0x3df93b('0x11bf')](function(_0x21c22a){const _0x4221f7=_0x3df93b;_0x2f0bd7[_0x4221f7('0xe82')]=_0x21c22a;})[_0x3df93b('0x151d')](function(_0x3e7e4b){const _0x4eaf27=_0x3df93b;console[_0x4eaf27('0x255')](_0x3e7e4b);});}function _0xadfcc5(){const _0x57e101=_0x5af912;_0x2f0bd7[_0x57e101('0x13f')]=_0x49ac1b['whatsappAccount'][_0x57e101('0xc99')](_0x2f0bd7[_0x57e101('0x1f2a')],_0x2f88cf)[_0x57e101('0x1549')];}function _0x4a3207(_0x106b29){const _0x3d20d0=_0x5af912;_0x36f548()['remove'](_0x2f0bd7[_0x3d20d0('0x6ce')][_0x3d20d0('0x19b2')],{'id':_0x106b29['id']}),_0x4341e5(),_0x4a4089[_0x3d20d0('0x2693')]({'title':_0x3d20d0('0xb44'),'msg':_0x106b29[_0x3d20d0('0x18f5')]?_0x106b29[_0x3d20d0('0x18f5')]+_0x3d20d0('0x433'):''});}function _0x3ca5b1(_0x559752){const _0xa52de1=_0x5af912,_0x560804=_0x144556[_0xa52de1('0x132b')]()[_0xa52de1('0x134b')](_0xa52de1('0x2780'))[_0xa52de1('0x1d03')](_0xa52de1('0x2061')+_0x2f0bd7[_0xa52de1('0x700')][_0xa52de1('0x1e22')]+'\x20selected
    '+_0xa52de1('0x1a'))[_0xa52de1('0xb2e')](_0xa52de1('0x1aa4'))[_0xa52de1('0x1e25')](_0x559752)['ok']('OK')[_0xa52de1('0x26c9')](_0xa52de1('0x772'));_0x144556[_0xa52de1('0xb9')](_0x560804)[_0xa52de1('0x11bf')](function(){const _0x2b936c=_0xa52de1;_0x2f0bd7[_0x2b936c('0x700')][_0x2b936c('0x1f88')](function(_0x594089){const _0x298aa8=_0x2b936c;_0x36f548()[_0x298aa8('0x14a5')](_0x2f0bd7[_0x298aa8('0x6ce')]['rows'],{'id':_0x594089['id']});}),_0x2f0bd7[_0x2b936c('0x700')]=[],_0x4341e5();});}}const _0x38f274=_0x2f136a;_0x67fe0f[_0x21d0f5('0x1e9a')]=['$mdDialog','$q','toasty','api',_0x21d0f5('0x2295'),_0x21d0f5('0xeaa'),_0x21d0f5('0x25f9'),'$translate',_0x21d0f5('0x1150'),_0x21d0f5('0xb25')];function _0x67fe0f(_0xbe5c57,_0x275b88,_0x2ce0cb,_0xc94700,_0x9b0a37,_0x4c58ed,_0x9f19cf,_0x43d57b,_0x5d8571,_0x3690f9){const _0x59c2c9=_0x21d0f5,_0x257c2e=this;_0x257c2e[_0x59c2c9('0x32a')]=_0x5d8571[_0x59c2c9('0x2428')](),_0x257c2e[_0x59c2c9('0x2295')]=_0x9b0a37,_0x257c2e[_0x59c2c9('0xb25')]=_0x3690f9,_0x257c2e[_0x59c2c9('0x25f9')]=_0x9f19cf,_0x257c2e[_0x59c2c9('0x22')]=[],_0x257c2e[_0x59c2c9('0x63')]=[],_0x257c2e[_0x59c2c9('0x26cc')]=[],_0x257c2e[_0x59c2c9('0x1c6f')]=[],_0x257c2e[_0x59c2c9('0x21ed')]=[],_0x257c2e['pendingChanges']=![],_0x257c2e[_0x59c2c9('0x277c')]=_0x3fed68,_0x257c2e[_0x59c2c9('0x280')]=_0x1d8905,_0x257c2e['closeDialog']=_0x3a6df4,_0x257c2e[_0x59c2c9('0xec5')]={'readOnly':!_0x257c2e[_0x59c2c9('0xb25')][_0x59c2c9('0x25db')],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x59c2c9('0x1909'),'line1':_0x59c2c9('0x27af'),'line2':[_0x59c2c9('0x1909'),_0x59c2c9('0x1a04')],'line3':'','labelAll':_0x43d57b['instant']('APP.ALL_AGENTS'),'labelSelected':_0x43d57b[_0x59c2c9('0x10c2')](_0x59c2c9('0x24b4')),'transferCallback':function(){const _0x830373=_0x59c2c9,_0x7a10b7=_0x36f548()[_0x830373('0x1a1b')](_0x257c2e[_0x830373('0x21ed')],_0x257c2e[_0x830373('0x26cc')],'id');_0x257c2e[_0x830373('0x1eda')]=_0x36f548()[_0x830373('0x1fc5')](_0x7a10b7)?![]:!![];}};function _0x3fed68(){const _0x2a0076=_0x59c2c9;return _0x5d8571['hasRole'](_0x2a0076('0xf45'))?_0x51dea6()[_0x2a0076('0x151d')](function(_0x2c6e99){const _0xfb0a5f=_0x2a0076;_0x2ce0cb[_0xfb0a5f('0x255')]({'title':_0x2c6e99[_0xfb0a5f('0xff9')]?'API:'+_0x2c6e99[_0xfb0a5f('0xff9')]+_0xfb0a5f('0xb0b')+_0x2c6e99['statusText']:_0xfb0a5f('0x912'),'msg':_0x2c6e99['status']?JSON[_0xfb0a5f('0x3e')](_0x2c6e99[_0xfb0a5f('0x4e8')]):_0x2c6e99[_0xfb0a5f('0xaab')]()});}):_0x2df982()['then'](function(_0x39e98f){const _0x15716a=_0x2a0076;return _0x257c2e[_0x15716a('0xe6')]=_0x39e98f,_0x51dea6();})[_0x2a0076('0x151d')](function(_0x994576){const _0x183d8d=_0x2a0076;_0x2ce0cb[_0x183d8d('0x255')]({'title':_0x994576[_0x183d8d('0xff9')]?_0x183d8d('0x574')+_0x994576[_0x183d8d('0xff9')]+_0x183d8d('0xb0b')+_0x994576[_0x183d8d('0x212f')]:'SYSTEM:GET_AGENTS','msg':_0x994576['status']?JSON[_0x183d8d('0x3e')](_0x994576['data']):_0x994576['toString']()});});}function _0x2df982(){return _0x275b88(function(_0x5675c0,_0x35a593){const _0x3b8100=a0_0xaf0c;_0xc94700[_0x3b8100('0x1d63')]['get']({'userProfileId':_0x257c2e[_0x3b8100('0x32a')]['userProfileId'],'name':_0x3b8100('0x4b1')})['$promise'][_0x3b8100('0x11bf')](function(_0x2a44e7){const _0x568a6e=_0x3b8100,_0x53f1cd=_0x2a44e7&&_0x2a44e7[_0x568a6e('0x19b2')]?_0x2a44e7[_0x568a6e('0x19b2')][0x0]:null;_0x5675c0(_0x53f1cd);})[_0x3b8100('0x151d')](function(_0x5e7b01){_0x35a593(_0x5e7b01);});});}function _0x51dea6(){return _0x275b88(function(_0x6839cc,_0x5eea1d){const _0x12d9f6=a0_0xaf0c;return _0x5b54fc()[_0x12d9f6('0x11bf')](function(_0xd280e9){const _0x4c72fd=_0x12d9f6;return _0x257c2e['items']=_0xd280e9[_0x4c72fd('0x19b2')]?_0xd280e9[_0x4c72fd('0x19b2')]:[],_0x5d8571[_0x4c72fd('0x4ee')]('admin')?_0xd280e9:_0x257c2e[_0x4c72fd('0xe6')]?_0x257c2e['section'][_0x4c72fd('0xf11')]?_0xd280e9:_0xe07e89():null;})[_0x12d9f6('0x11bf')](function(_0x20bbb9){const _0x3b522d=_0x12d9f6,_0x20851d=_0x20bbb9&&_0x20bbb9[_0x3b522d('0x19b2')]?_0x20bbb9['rows']:[];return _0x257c2e[_0x3b522d('0x63')]=_0x36f548()[_0x3b522d('0x2171')](_0x20851d,function(_0x1a7516){const _0x14f6d4=_0x3b522d;return _0x36f548()['find'](_0x257c2e[_0x14f6d4('0x22')],{'id':_0x5d8571[_0x14f6d4('0x4ee')](_0x14f6d4('0xf45'))||_0x257c2e[_0x14f6d4('0xe6')][_0x14f6d4('0xf11')]?_0x1a7516['id']:_0x1a7516[_0x14f6d4('0x15a5')]});}),_0x257c2e[_0x3b522d('0x1c6f')]=angular[_0x3b522d('0x6fb')](_0x257c2e[_0x3b522d('0x63')]),_0x257c2e[_0x3b522d('0x22')][_0x3b522d('0x1f88')](function(_0x5dac5d){const _0x4b512b=_0x3b522d,_0x4f063f=_0x36f548()[_0x4b512b('0x1ad4')](_0x257c2e[_0x4b512b('0x63')],{'id':_0x5dac5d['id']});_0x5d8571[_0x4b512b('0x4ee')]('admin')?_0x5dac5d[_0x4b512b('0xde9')]=!![]:_0x5dac5d['isValid']=typeof _0x4f063f!==_0x4b512b('0x13e9')?!![]:![];}),_0x53426a();})[_0x12d9f6('0x11bf')](function(_0x9f9417){const _0x44e5cb=_0x12d9f6,_0x332dee=_0x9f9417&&_0x9f9417[_0x44e5cb('0x19b2')]?_0x9f9417[_0x44e5cb('0x19b2')]:[];_0x257c2e[_0x44e5cb('0x26cc')]=_0x36f548()[_0x44e5cb('0x2171')](_0x332dee,function(_0x58b1b3){const _0x2ee7e7=_0x44e5cb,_0x477fcb=_0x36f548()[_0x2ee7e7('0x1ad4')](_0x257c2e[_0x2ee7e7('0x22')],{'id':_0x58b1b3['id']});return _0x477fcb['penalty']=_0x58b1b3['UserWhatsappAccount']?'penalty\x20'+_0x58b1b3[_0x2ee7e7('0x357')][_0x2ee7e7('0xf47')]:'',_0x477fcb['internal']=typeof _0x58b1b3[_0x2ee7e7('0x1a04')]!==_0x2ee7e7('0x13e9')?'<'+_0x58b1b3[_0x2ee7e7('0x1a04')]+'>':'',_0x477fcb;}),_0x257c2e['startingSelectedItems']=angular[_0x44e5cb('0x6fb')](_0x257c2e[_0x44e5cb('0x26cc')]),_0x257c2e[_0x44e5cb('0xec5')]['selectedItems']=_0x257c2e[_0x44e5cb('0x26cc')],_0x257c2e[_0x44e5cb('0xec5')][_0x44e5cb('0x22')]=_0x36f548()[_0x44e5cb('0x2753')](_0x257c2e[_0x44e5cb('0x63')],_0x257c2e['dualMultiselectOptions'][_0x44e5cb('0x26cc')],'id'),_0x6839cc();})[_0x12d9f6('0x151d')](function(_0x49258c){_0x5eea1d(_0x49258c);});});}function _0xe07e89(){return _0x275b88(function(_0x5afd8f,_0x3c3810){const _0x203f67=a0_0xaf0c;return _0xc94700[_0x203f67('0x26d1')][_0x203f67('0xbaa')]({'sectionId':_0x257c2e[_0x203f67('0xe6')]['id'],'nolimit':!![]})[_0x203f67('0x1549')][_0x203f67('0x11bf')](function(_0x1953c4){_0x5afd8f(_0x1953c4);})[_0x203f67('0x151d')](function(_0x524161){_0x3c3810(_0x524161);});});}function _0x53426a(){return _0x275b88(function(_0x2a7927,_0x3b7b5b){const _0x220fb3=a0_0xaf0c;return _0xc94700[_0x220fb3('0x2295')][_0x220fb3('0x2783')]({'id':_0x257c2e[_0x220fb3('0x2295')]['id'],'fields':_0x220fb3('0x13d3'),'nolimit':!![],'role':'agent'})[_0x220fb3('0x1549')][_0x220fb3('0x11bf')](function(_0x4c8b5e){_0x2a7927(_0x4c8b5e);})[_0x220fb3('0x151d')](function(_0x16fbab){_0x3b7b5b(_0x16fbab);});});}function _0x5b54fc(){return _0x275b88(function(_0x5c544f,_0x52e86e){const _0x513d26=a0_0xaf0c;return _0xc94700['user']['get']({'fields':_0x513d26('0x13d3'),'nolimit':!![],'role':_0x513d26('0x18c4')})[_0x513d26('0x1549')][_0x513d26('0x11bf')](function(_0x4f0d6b){_0x5c544f(_0x4f0d6b);})[_0x513d26('0x151d')](function(_0xe20bb1){_0x52e86e(_0xe20bb1);});});}function _0x1b8e3b(_0x527186){return _0x275b88(function(_0x56b7d6,_0x48d245){const _0xe81f2c=a0_0xaf0c;_0x36f548()[_0xe81f2c('0x1fc5')](_0x527186)?_0x56b7d6():_0xc94700[_0xe81f2c('0x2295')][_0xe81f2c('0x110a')]({'id':_0x257c2e[_0xe81f2c('0x2295')]['id'],'ids':_0x36f548()['map'](_0x527186,'id')})[_0xe81f2c('0x1549')][_0xe81f2c('0x11bf')](function(){_0x56b7d6();})[_0xe81f2c('0x151d')](function(_0x4bf01b){_0x48d245(_0x4bf01b);});});}function _0x1dc50c(_0x2db91c){return _0x275b88(function(_0x397505,_0x2c11e6){const _0x98f1d3=a0_0xaf0c;_0x36f548()[_0x98f1d3('0x1fc5')](_0x2db91c)?_0x397505():_0xc94700[_0x98f1d3('0x2295')]['removeAgents']({'id':_0x257c2e[_0x98f1d3('0x2295')]['id'],'ids':_0x36f548()[_0x98f1d3('0x2171')](_0x2db91c,'id')})['$promise'][_0x98f1d3('0x11bf')](function(){_0x397505();})[_0x98f1d3('0x151d')](function(_0x115e9f){_0x2c11e6(_0x115e9f);});});}function _0x1d8905(){const _0x6d8551=_0x59c2c9,_0x32b8bc=_0x36f548()['differenceBy'](_0x257c2e[_0x6d8551('0x21ed')],_0x257c2e['selectedItems'],'id'),_0x56d606=_0x36f548()['differenceBy'](_0x257c2e[_0x6d8551('0x26cc')],_0x257c2e[_0x6d8551('0x21ed')],'id');return _0x1dc50c(_0x32b8bc)[_0x6d8551('0x11bf')](function(){return _0x1b8e3b(_0x56d606);})[_0x6d8551('0x11bf')](function(){const _0x35a0a4=_0x6d8551;_0x257c2e[_0x35a0a4('0x1eda')]=![],_0x257c2e[_0x35a0a4('0x1c6f')]=angular[_0x35a0a4('0x6fb')](_0x257c2e['allowedItems']),_0x257c2e[_0x35a0a4('0x21ed')]=angular['copy'](_0x257c2e['selectedItems']),_0x2ce0cb[_0x35a0a4('0x2693')]({'title':_0x35a0a4('0x2243'),'msg':_0x35a0a4('0x2273')});})['catch'](function(_0x5eb216){const _0x12c05d=_0x6d8551;_0x2ce0cb[_0x12c05d('0x255')]({'title':_0x5eb216[_0x12c05d('0xff9')]?_0x12c05d('0x574')+_0x5eb216[_0x12c05d('0xff9')]+_0x12c05d('0xb0b')+_0x5eb216[_0x12c05d('0x212f')]:'SYSTEM:LISTS_ASSOCIATION','msg':_0x5eb216['status']?JSON['stringify'](_0x5eb216[_0x12c05d('0x4e8')]):_0x5eb216['toString']()});});}function _0x3a6df4(){const _0x116b3d=_0x59c2c9;_0xbe5c57[_0x116b3d('0x237e')]();}}const _0x5af05e=_0x67fe0f;_0x349478[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1ca2'),'$q','toasty',_0x21d0f5('0x1ed9'),_0x21d0f5('0x2295'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),_0x21d0f5('0xb25')];function _0x349478(_0x2eb0f3,_0x1bb8db,_0x297114,_0x540c75,_0x2c6885,_0x52dcca,_0x507a9b,_0x5a524c){const _0x29af79=_0x21d0f5,_0x10b223=this;_0x10b223['currentUser']=_0x507a9b[_0x29af79('0x2428')](),_0x10b223[_0x29af79('0x120f')]=[],_0x10b223[_0x29af79('0x134b')]=_0x29af79('0x257e')+(_0x540c75['appType']||_0x540c75[_0x29af79('0x18f5')])[_0x29af79('0xa6f')](),_0x10b223[_0x29af79('0x18c4')]=angular[_0x29af79('0x6fb')](_0x540c75),_0x10b223[_0x29af79('0xb25')]=_0x5a524c,_0x10b223['hasModulePermissions']={};if(_0x10b223[_0x29af79('0x18c4')][_0x29af79('0x13fc')])switch(_0x10b223[_0x29af79('0x18c4')][_0x29af79('0x27c0')]?_0x10b223['agent']['appType'][_0x29af79('0x20d5')]():_0x10b223['agent']['app']['toLowerCase']()){case _0x29af79('0xa8d'):break;case _0x29af79('0x185e'):{const _0x96bf3e=_0x10b223[_0x29af79('0x18c4')][_0x29af79('0x13fc')][_0x29af79('0xaf8')](',');_0x10b223[_0x29af79('0x18c4')]['key']=_0x96bf3e[0x0],_0x10b223[_0x29af79('0x18c4')][_0x29af79('0xeff')]=_0x96bf3e[0x1],_0x10b223[_0x29af79('0x18c4')][_0x29af79('0x1cbc')]=_0x96bf3e[_0x29af79('0x1b77')](0x2,_0x96bf3e['length'])[_0x29af79('0xa04')](',');}break;case _0x29af79('0x21a8'):{const _0x338b3c=_0x10b223[_0x29af79('0x18c4')][_0x29af79('0x13fc')]['split'](',');_0x10b223[_0x29af79('0x18c4')][_0x29af79('0x20e')]=_0x338b3c[0x0],_0x10b223[_0x29af79('0x18c4')][_0x29af79('0x1f91')]=_0x338b3c[0x1],_0x10b223['agent'][_0x29af79('0x1c6c')]=_0x338b3c[0x2],_0x10b223[_0x29af79('0x18c4')][_0x29af79('0xeff')]=_0x338b3c[0x3],_0x10b223[_0x29af79('0x18c4')]['welcomemessage']=_0x338b3c['slice'](0x4,_0x338b3c[_0x29af79('0x1e22')])['join'](',');}break;case'amazonlex':{const _0x4efc41=_0x10b223[_0x29af79('0x18c4')]['appdata']['split'](',');_0x10b223['agent'][_0x29af79('0x1a82')]=_0x4efc41[0x0],_0x10b223[_0x29af79('0x18c4')]['secretaccesskey']=_0x4efc41[0x1],_0x10b223['agent']['lexregion']=_0x4efc41[0x2],_0x10b223[_0x29af79('0x18c4')]['botname']=_0x4efc41[0x3],_0x10b223[_0x29af79('0x18c4')]['welcomemessage']=_0x4efc41[_0x29af79('0x1b77')](0x4,_0x4efc41['length'])[_0x29af79('0xa04')](',');}break;case _0x29af79('0x187b'):{const _0x59c37e=_0x10b223[_0x29af79('0x18c4')][_0x29af79('0x13fc')][_0x29af79('0xaf8')](',');_0x10b223[_0x29af79('0x18c4')][_0x29af79('0x663')]=isNaN(_0x59c37e[0x0])?_0x59c37e[0x0]:parseInt(_0x59c37e[0x0],0xa),_0x10b223[_0x29af79('0x18c4')][_0x29af79('0x25ed')]=_0x59c37e[_0x29af79('0x1b77')](0x1,_0x59c37e[_0x29af79('0x1e22')])[_0x29af79('0xa04')](',');}break;case'message':_0x10b223[_0x29af79('0x18c4')][_0x29af79('0x25ed')]=_0x10b223[_0x29af79('0x18c4')]['appdata'];break;case'set':_0x10b223[_0x29af79('0x18c4')]['name']=_0x10b223[_0x29af79('0x18c4')][_0x29af79('0x13fc')][_0x29af79('0xaf8')]('=')[0x0],_0x10b223[_0x29af79('0x18c4')][_0x29af79('0x10cc')]=_0x10b223[_0x29af79('0x18c4')][_0x29af79('0x13fc')][_0x29af79('0xaf8')]('=')[0x1];break;case _0x29af79('0x1efd'):_0x10b223[_0x29af79('0x18c4')]['project']=_0x10b223[_0x29af79('0x18c4')][_0x29af79('0x13fc')];break;default:{const _0x5dc5f1=_0x10b223[_0x29af79('0x18c4')][_0x29af79('0x13fc')][_0x29af79('0xaf8')](',');_0x10b223[_0x29af79('0x18c4')][_0x29af79('0x18c4')]=_0x36f548()[_0x29af79('0x1fc5')](_0x5dc5f1[0x0])?_0x5dc5f1[0x0]:isNaN(_0x5dc5f1[0x0])?_0x5dc5f1[0x0]:parseInt(_0x5dc5f1[0x0],0xa),_0x10b223[_0x29af79('0x18c4')][_0x29af79('0xfbe')]=_0x36f548()['isEmpty'](_0x5dc5f1[0x1])?_0x5dc5f1[0x1]:isNaN(_0x5dc5f1[0x1])?_0x5dc5f1[0x1]:parseInt(_0x5dc5f1[0x1],0xa);}break;}else _0x10b223[_0x29af79('0x18c4')][_0x29af79('0xfbe')]=0x1e;_0x10b223[_0x29af79('0x18c4')][_0x29af79('0x19fd')]&&_0x10b223['agent'][_0x29af79('0x19fd')][_0x29af79('0x20d5')]()===_0x29af79('0x25b6')&&_0x10b223[_0x29af79('0x18c4')][_0x29af79('0x27c0')]['toLowerCase']()==='outbounddial'&&(_0x10b223[_0x29af79('0x18c4')][_0x29af79('0x2137')]=_0x10b223['agent'][_0x29af79('0x1546')]?_0x10b223['agent']['phone'][_0x29af79('0xaf8')]('$')[0x0]:undefined,_0x10b223[_0x29af79('0x18c4')]['callerId']=_0x10b223[_0x29af79('0x18c4')][_0x29af79('0xc38')]?'CALLERID(all)='+_0x10b223[_0x29af79('0x18c4')]['callerID']:undefined);_0x10b223[_0x29af79('0x1c36')]=_0x279086,_0x10b223[_0x29af79('0xc4e')]=_0x2adc7e,_0x507a9b['hasRole'](_0x29af79('0xf45'))?_0x52dcca[_0x29af79('0x21d9')][_0x29af79('0xbaa')]({'fields':_0x29af79('0x721'),'sort':'name','nolimit':_0x29af79('0x204c'),'role':_0x29af79('0x18c4')})[_0x29af79('0x1549')]['then'](function(_0x2ef896){const _0x4ab90a=_0x29af79;_0x10b223[_0x4ab90a('0x1401')]=_0x2ef896[_0x4ab90a('0x19b2')]||[];})[_0x29af79('0x151d')](function(_0x5b42ba){const _0x42bce1=_0x29af79;_0x297114[_0x42bce1('0x255')]({'title':_0x5b42ba[_0x42bce1('0xff9')]?_0x42bce1('0x574')+_0x5b42ba[_0x42bce1('0xff9')]+'\x20-\x20'+_0x5b42ba[_0x42bce1('0x212f')]:_0x42bce1('0x912'),'msg':_0x5b42ba[_0x42bce1('0x4e8')]?JSON[_0x42bce1('0x3e')](_0x5b42ba[_0x42bce1('0x4e8')]):_0x5b42ba['toString']()});}):_0x52dcca[_0x29af79('0x21d9')]['get']({'fields':_0x29af79('0x721'),'sort':_0x29af79('0x1909'),'nolimit':_0x29af79('0x204c'),'role':'agent'})[_0x29af79('0x1549')][_0x29af79('0x11bf')](function(_0x313084){const _0x276015=_0x29af79;_0x10b223[_0x276015('0x1401')]=_0x313084[_0x276015('0x19b2')]||[];})['then'](function(){const _0x1a63c1=_0x29af79;return _0x52dcca[_0x1a63c1('0x1d63')]['get']({'userProfileId':_0x10b223['currentUser'][_0x1a63c1('0x781')],'sectionId':0xca})[_0x1a63c1('0x1549')];})[_0x29af79('0x11bf')](function(_0x1cb439){const _0x54476e=_0x29af79,_0x5c0c33=_0x1cb439&&_0x1cb439[_0x54476e('0x19b2')]?_0x1cb439['rows'][0x0]:null;if(!_0x5c0c33){const _0x21edf7=[];let _0x5ddf58=null;_0x10b223[_0x54476e('0x18c4')]&&(_0x5ddf58=_0x36f548()[_0x54476e('0x1ad4')](_0x10b223[_0x54476e('0x1401')],{'name':_0x10b223[_0x54476e('0x18c4')]['agent']}));for(let _0x308508=0x0;_0x308508<_0x10b223[_0x54476e('0x1401')][_0x54476e('0x1e22')];_0x308508++){_0x5ddf58&&_0x10b223[_0x54476e('0x1401')][_0x308508]['id']===_0x5ddf58['id']&&(_0x10b223[_0x54476e('0x1401')][_0x308508][_0x54476e('0x254a')]=![],_0x21edf7[_0x54476e('0x105d')](_0x10b223[_0x54476e('0x1401')][_0x308508]));}_0x10b223[_0x54476e('0x1401')]=_0x21edf7;}else{if(!_0x5c0c33[_0x54476e('0xf11')])return _0x52dcca[_0x54476e('0x26d1')][_0x54476e('0xbaa')]({'sectionId':_0x5c0c33['id']})[_0x54476e('0x1549')][_0x54476e('0x11bf')](function(_0x2fd445){const _0x59c94c=_0x54476e,_0x3b3403=_0x36f548()['map'](_0x2fd445[_0x59c94c('0x19b2')],function(_0x122b0a){const _0x1064ea=_0x59c94c;return _0x36f548()[_0x1064ea('0x1ad4')](_0x10b223['agents'],{'id':_0x122b0a[_0x1064ea('0x15a5')]});});let _0x12dc24=null;_0x10b223['agent']&&(_0x12dc24=_0x36f548()['find'](_0x10b223[_0x59c94c('0x1401')],{'name':_0x10b223[_0x59c94c('0x18c4')][_0x59c94c('0x18c4')]}));if(_0x12dc24&&!_0x36f548()[_0x59c94c('0x1cb3')](_0x3b3403,['id',_0x12dc24['id']])){const _0x47fdfe=_0x36f548()[_0x59c94c('0x1ad4')](_0x10b223[_0x59c94c('0x1401')],{'id':_0x12dc24['id']});_0x47fdfe['canSelect']=![],_0x3b3403['push'](_0x47fdfe);}_0x10b223[_0x59c94c('0x1401')]=_0x3b3403;});}})[_0x29af79('0x151d')](function(_0x59e9bf){const _0xc3218e=_0x29af79;_0x297114[_0xc3218e('0x255')]({'title':_0x59e9bf[_0xc3218e('0xff9')]?_0xc3218e('0x574')+_0x59e9bf[_0xc3218e('0xff9')]+'\x20-\x20'+_0x59e9bf['statusText']:'SYSTEM:GETagents','msg':_0x59e9bf['data']?JSON['stringify'](_0x59e9bf[_0xc3218e('0x4e8')]):_0x59e9bf['toString']()});});function _0x279086(){const _0x119476=_0x29af79;_0x10b223[_0x119476('0x120f')]=[];const _0x185f13=[];_0x10b223['agent'][_0x119476('0x19fd')]&&_0x10b223['agent'][_0x119476('0x19fd')][_0x119476('0x20d5')]()===_0x119476('0x25b6')&&_0x10b223['agent'][_0x119476('0x27c0')]==='outboundDial'&&(_0x10b223[_0x119476('0x18c4')][_0x119476('0x1546')]=_0x2c6885[_0x119476('0x388')]?(_0x10b223[_0x119476('0x18c4')][_0x119476('0x2137')]||'')+_0x119476('0x2100')+_0x2c6885[_0x119476('0x388')]+'}':(_0x10b223[_0x119476('0x18c4')][_0x119476('0x2137')]||'')+_0x119476('0x1f76'),_0x2c6885[_0x119476('0x897')]!=='none'?_0x10b223[_0x119476('0x18c4')][_0x119476('0x249a')]['indexOf'](_0x119476('0x22c9'))<0x0&&(_0x10b223[_0x119476('0x18c4')][_0x119476('0x249a')]+='U(xcally-mixmonitor-context)'):_0x10b223[_0x119476('0x18c4')]['options']=_0x10b223[_0x119476('0x18c4')][_0x119476('0x249a')][_0x119476('0x814')](_0x119476('0x22c9'),''));const _0x1a407e=_0x36f548()[_0x119476('0x1ad4')](_0x10b223[_0x119476('0x1401')],{'name':_0x10b223[_0x119476('0x18c4')][_0x119476('0x18c4')]});_0x1a407e&&(_0x10b223['agent'][_0x119476('0x2342')]=_0x1a407e['id']);if(_0x10b223['agent'][_0x119476('0x27c0')]&&_0x10b223[_0x119476('0x18c4')][_0x119476('0x27c0')]==='custom'){}else switch((_0x10b223[_0x119476('0x18c4')]['app']||_0x10b223[_0x119476('0x18c4')][_0x119476('0x27c0')])[_0x119476('0x20d5')]()){case'set':_0x10b223[_0x119476('0x18c4')][_0x119476('0x13fc')]=_0x10b223['agent'][_0x119476('0x1909')]+'='+_0x10b223[_0x119476('0x18c4')][_0x119476('0x10cc')];break;case _0x119476('0xa8d'):break;default:_0x185f13[0x0]=_0x10b223[_0x119476('0x18c4')][_0x119476('0x18c4')],_0x185f13[0x1]=_0x10b223[_0x119476('0x18c4')][_0x119476('0xfbe')],_0x10b223[_0x119476('0x18c4')][_0x119476('0x13fc')]=_0x185f13['join'](',');}_0x2adc7e(_0x10b223['agent']);}function _0x2adc7e(_0x19db05){const _0x1fd3f7=_0x29af79;_0x2eb0f3[_0x1fd3f7('0x237e')](_0x19db05);}}const _0x428134=_0x349478;_0x26420f[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0x142d'),_0x21d0f5('0x1ed9'),_0x21d0f5('0x2295'),'api',_0x21d0f5('0x1150'),_0x21d0f5('0xb25')];function _0x26420f(_0x2f34f3,_0x3e3a53,_0x443ba6,_0xaad92e,_0x2122ef,_0x6719e5,_0x58989b,_0x11ff78){const _0x5b3cc6=_0x21d0f5,_0x1b91fb=this;_0x1b91fb[_0x5b3cc6('0x32a')]=_0x58989b[_0x5b3cc6('0x2428')](),_0x1b91fb['errors']=[],_0x1b91fb[_0x5b3cc6('0x134b')]=_0x5b3cc6('0x257e')+(_0xaad92e[_0x5b3cc6('0x27c0')]||_0xaad92e[_0x5b3cc6('0x18f5')])[_0x5b3cc6('0xa6f')](),_0x1b91fb[_0x5b3cc6('0x102c')]=angular[_0x5b3cc6('0x6fb')](_0xaad92e),_0x1b91fb['crudPermissions']=_0x11ff78,_0x1b91fb[_0x5b3cc6('0x2c9')]={};if(_0x1b91fb[_0x5b3cc6('0x102c')][_0x5b3cc6('0x13fc')])switch(_0x1b91fb[_0x5b3cc6('0x102c')]['appType']?_0x1b91fb[_0x5b3cc6('0x102c')][_0x5b3cc6('0x27c0')][_0x5b3cc6('0x20d5')]():_0x1b91fb[_0x5b3cc6('0x102c')]['app'][_0x5b3cc6('0x20d5')]()){case'custom':break;case'dialogflow':{const _0x99e0a4=_0x1b91fb['amazonlex'][_0x5b3cc6('0x13fc')]['split'](',');_0x1b91fb['amazonlex'][_0x5b3cc6('0xa0c')]=_0x99e0a4[0x0],_0x1b91fb[_0x5b3cc6('0x102c')][_0x5b3cc6('0xeff')]=_0x99e0a4[0x1],_0x1b91fb[_0x5b3cc6('0x102c')][_0x5b3cc6('0x1cbc')]=_0x99e0a4[_0x5b3cc6('0x1b77')](0x2,_0x99e0a4[_0x5b3cc6('0x1e22')])[_0x5b3cc6('0xa04')](',');}break;case _0x5b3cc6('0x21a8'):{const _0x2e8ae9=_0x1b91fb[_0x5b3cc6('0x102c')][_0x5b3cc6('0x13fc')][_0x5b3cc6('0xaf8')](',');_0x1b91fb[_0x5b3cc6('0x102c')]['projectId']=_0x2e8ae9[0x0],_0x1b91fb['amazonlex'][_0x5b3cc6('0x1f91')]=_0x2e8ae9[0x1],_0x1b91fb[_0x5b3cc6('0x102c')]['privateKey']=_0x2e8ae9[0x2],_0x1b91fb[_0x5b3cc6('0x102c')][_0x5b3cc6('0xeff')]=_0x2e8ae9[0x3],_0x1b91fb[_0x5b3cc6('0x102c')][_0x5b3cc6('0x1cbc')]=_0x2e8ae9[_0x5b3cc6('0x1b77')](0x4,_0x2e8ae9[_0x5b3cc6('0x1e22')])[_0x5b3cc6('0xa04')](',');}break;case _0x5b3cc6('0x102c'):{const _0x59275a=_0x1b91fb['amazonlex'][_0x5b3cc6('0x13fc')][_0x5b3cc6('0xaf8')](',');_0x1b91fb[_0x5b3cc6('0x102c')][_0x5b3cc6('0x1a82')]=_0x59275a[0x0],_0x1b91fb[_0x5b3cc6('0x102c')][_0x5b3cc6('0x1422')]=_0x59275a[0x1],_0x1b91fb['amazonlex'][_0x5b3cc6('0x165a')]=_0x59275a[0x2],_0x1b91fb[_0x5b3cc6('0x102c')]['botname']=_0x59275a[0x3],_0x1b91fb['amazonlex'][_0x5b3cc6('0x1cbc')]=_0x59275a[_0x5b3cc6('0x1b77')](0x4,_0x59275a[_0x5b3cc6('0x1e22')])[_0x5b3cc6('0xa04')](',');}break;case _0x5b3cc6('0x187b'):{const _0x9fb33c=_0x1b91fb[_0x5b3cc6('0x102c')][_0x5b3cc6('0x13fc')][_0x5b3cc6('0xaf8')](',');_0x1b91fb[_0x5b3cc6('0x102c')]['times']=isNaN(_0x9fb33c[0x0])?_0x9fb33c[0x0]:parseInt(_0x9fb33c[0x0],0xa),_0x1b91fb[_0x5b3cc6('0x102c')][_0x5b3cc6('0x25ed')]=_0x9fb33c[_0x5b3cc6('0x1b77')](0x1,_0x9fb33c[_0x5b3cc6('0x1e22')])[_0x5b3cc6('0xa04')](',');}break;case'message':_0x1b91fb['amazonlex'][_0x5b3cc6('0x25ed')]=_0x1b91fb['amazonlex']['appdata'];break;case _0x5b3cc6('0xe50'):_0x1b91fb['amazonlex'][_0x5b3cc6('0x1909')]=_0x1b91fb['amazonlex'][_0x5b3cc6('0x13fc')]['split']('=')[0x0],_0x1b91fb[_0x5b3cc6('0x102c')][_0x5b3cc6('0x10cc')]=_0x1b91fb[_0x5b3cc6('0x102c')][_0x5b3cc6('0x13fc')]['split']('=')[0x1];break;case'agi':_0x1b91fb['amazonlex'][_0x5b3cc6('0xef0')]=_0x1b91fb[_0x5b3cc6('0x102c')][_0x5b3cc6('0x13fc')];break;default:{const _0x580ca7=_0x1b91fb[_0x5b3cc6('0x102c')][_0x5b3cc6('0x13fc')][_0x5b3cc6('0xaf8')](',');_0x1b91fb[_0x5b3cc6('0x102c')][_0x5b3cc6('0x1a82')]=_0x36f548()[_0x5b3cc6('0x1fc5')](_0x580ca7[0x0])?_0x580ca7[0x0]:isNaN(_0x580ca7[0x0])?_0x580ca7[0x0]:parseInt(_0x580ca7[0x0],0xa),_0x1b91fb[_0x5b3cc6('0x102c')][_0x5b3cc6('0x1422')]=_0x36f548()[_0x5b3cc6('0x1fc5')](_0x580ca7[0x1])?_0x580ca7[0x1]:isNaN(_0x580ca7[0x1])?_0x580ca7[0x1]:parseInt(_0x580ca7[0x1],0xa),_0x1b91fb['amazonlex'][_0x5b3cc6('0x165a')]=_0x36f548()[_0x5b3cc6('0x1fc5')](_0x580ca7[0x2])?_0x580ca7[0x2]:isNaN(_0x580ca7[0x2])?_0x580ca7[0x2]:parseInt(_0x580ca7[0x2],0xa),_0x1b91fb['amazonlex'][_0x5b3cc6('0x1e8f')]=_0x36f548()[_0x5b3cc6('0x1fc5')](_0x580ca7[0x3])?_0x580ca7[0x3]:isNaN(_0x580ca7[0x3])?_0x580ca7[0x3]:parseInt(_0x580ca7[0x3],0xa),_0x1b91fb[_0x5b3cc6('0x102c')][_0x5b3cc6('0x1cbc')]=_0x36f548()['isEmpty'](_0x580ca7[0x4])?_0x580ca7[0x4]:isNaN(_0x580ca7[0x4])?_0x580ca7[0x4]:parseInt(_0x580ca7[0x4],0xa);}break;}else _0x1b91fb[_0x5b3cc6('0x102c')][_0x5b3cc6('0x165a')]=_0x5b3cc6('0xbbe');_0x1b91fb['amazonlex']['type']&&_0x1b91fb['amazonlex'][_0x5b3cc6('0x19fd')][_0x5b3cc6('0x20d5')]()===_0x5b3cc6('0x25b6')&&_0x1b91fb[_0x5b3cc6('0x102c')][_0x5b3cc6('0x27c0')][_0x5b3cc6('0x20d5')]()===_0x5b3cc6('0x1a64')&&(_0x1b91fb[_0x5b3cc6('0x102c')][_0x5b3cc6('0x2137')]=_0x1b91fb[_0x5b3cc6('0x102c')][_0x5b3cc6('0x1546')]?_0x1b91fb['amazonlex'][_0x5b3cc6('0x1546')][_0x5b3cc6('0xaf8')]('$')[0x0]:undefined,_0x1b91fb[_0x5b3cc6('0x102c')][_0x5b3cc6('0x7d0')]=_0x1b91fb[_0x5b3cc6('0x102c')][_0x5b3cc6('0xc38')]?_0x5b3cc6('0x83a')+_0x1b91fb[_0x5b3cc6('0x102c')][_0x5b3cc6('0xc38')]:undefined);_0x1b91fb[_0x5b3cc6('0x1c36')]=_0x51785f,_0x1b91fb[_0x5b3cc6('0xc4e')]=_0x15abdf;function _0x51785f(){const _0x50dfb4=_0x5b3cc6;_0x1b91fb[_0x50dfb4('0x120f')]=[];const _0x149539=[];_0x1b91fb[_0x50dfb4('0x102c')][_0x50dfb4('0x19fd')]&&_0x1b91fb[_0x50dfb4('0x102c')][_0x50dfb4('0x19fd')][_0x50dfb4('0x20d5')]()==='outbound'&&_0x1b91fb['amazonlex'][_0x50dfb4('0x27c0')]===_0x50dfb4('0x1bf6')&&(_0x1b91fb[_0x50dfb4('0x102c')][_0x50dfb4('0x1546')]=_0x2122ef['cutdigits']?(_0x1b91fb[_0x50dfb4('0x102c')][_0x50dfb4('0x2137')]||'')+_0x50dfb4('0x2100')+_0x2122ef['cutdigits']+'}':(_0x1b91fb[_0x50dfb4('0x102c')][_0x50dfb4('0x2137')]||'')+_0x50dfb4('0x1f76'),_0x2122ef['recordingFormat']!==_0x50dfb4('0x3e6')?_0x1b91fb[_0x50dfb4('0x102c')][_0x50dfb4('0x249a')]['indexOf'](_0x50dfb4('0x22c9'))<0x0&&(_0x1b91fb[_0x50dfb4('0x102c')]['options']+=_0x50dfb4('0x22c9')):_0x1b91fb[_0x50dfb4('0x102c')]['options']=_0x1b91fb[_0x50dfb4('0x102c')][_0x50dfb4('0x249a')][_0x50dfb4('0x814')](_0x50dfb4('0x22c9'),''));if(_0x1b91fb[_0x50dfb4('0x102c')][_0x50dfb4('0x27c0')]&&_0x1b91fb[_0x50dfb4('0x102c')][_0x50dfb4('0x27c0')]==='custom'){}else switch((_0x1b91fb[_0x50dfb4('0x102c')][_0x50dfb4('0x18f5')]||_0x1b91fb[_0x50dfb4('0x102c')][_0x50dfb4('0x27c0')])['toLowerCase']()){case _0x50dfb4('0xe50'):_0x1b91fb[_0x50dfb4('0x102c')][_0x50dfb4('0x13fc')]=_0x1b91fb[_0x50dfb4('0x102c')][_0x50dfb4('0x1909')]+'='+_0x1b91fb[_0x50dfb4('0x102c')][_0x50dfb4('0x10cc')];break;case'custom':break;default:_0x149539[0x0]=_0x1b91fb['amazonlex'][_0x50dfb4('0x1a82')],_0x149539[0x1]=_0x1b91fb[_0x50dfb4('0x102c')][_0x50dfb4('0x1422')],_0x149539[0x2]=_0x1b91fb[_0x50dfb4('0x102c')][_0x50dfb4('0x165a')],_0x149539[0x3]=_0x1b91fb[_0x50dfb4('0x102c')][_0x50dfb4('0x1e8f')],_0x149539[0x4]=_0x1b91fb[_0x50dfb4('0x102c')][_0x50dfb4('0x1cbc')],_0x1b91fb[_0x50dfb4('0x102c')]['appdata']=_0x149539[_0x50dfb4('0xa04')](',');}_0x15abdf(_0x1b91fb['amazonlex']);}function _0x15abdf(_0x4acbde){_0x2f34f3['hide'](_0x4acbde);}}const _0x16fac1=_0x26420f;_0x3ed6ce['$inject']=[_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0x142d'),'whatsappAccountApp',_0x21d0f5('0x2295'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),'crudPermissions'];function _0x3ed6ce(_0xdf221d,_0x28ca63,_0x11ed68,_0x9b0903,_0x80d26d,_0x4127c5,_0x4245ff,_0x3536b4){const _0x2594c7=_0x21d0f5,_0xb25a01=this;_0xb25a01[_0x2594c7('0x32a')]=_0x4245ff[_0x2594c7('0x2428')](),_0xb25a01[_0x2594c7('0x120f')]=[],_0xb25a01[_0x2594c7('0x134b')]=_0x2594c7('0x257e')+(_0x9b0903[_0x2594c7('0x27c0')]||_0x9b0903['app'])[_0x2594c7('0xa6f')](),_0xb25a01['autoreply']=angular['copy'](_0x9b0903),_0xb25a01['crudPermissions']=_0x3536b4,_0xb25a01['hasModulePermissions']={};if(_0xb25a01['autoreply'][_0x2594c7('0x13fc')])switch(_0xb25a01[_0x2594c7('0x187b')][_0x2594c7('0x27c0')]?_0xb25a01[_0x2594c7('0x187b')][_0x2594c7('0x27c0')][_0x2594c7('0x20d5')]():_0xb25a01[_0x2594c7('0x187b')][_0x2594c7('0x18f5')]['toLowerCase']()){case _0x2594c7('0xa8d'):break;case _0x2594c7('0x185e'):{const _0x59a0a2=_0xb25a01['autoreply'][_0x2594c7('0x13fc')][_0x2594c7('0xaf8')](',');_0xb25a01[_0x2594c7('0x187b')][_0x2594c7('0xa0c')]=_0x59a0a2[0x0],_0xb25a01[_0x2594c7('0x187b')]['language']=_0x59a0a2[0x1],_0xb25a01[_0x2594c7('0x187b')][_0x2594c7('0x1cbc')]=_0x59a0a2['slice'](0x2,_0x59a0a2[_0x2594c7('0x1e22')])[_0x2594c7('0xa04')](',');}break;case _0x2594c7('0x21a8'):{const _0x33f069=_0xb25a01['autoreply']['appdata']['split'](',');_0xb25a01[_0x2594c7('0x187b')][_0x2594c7('0x20e')]=_0x33f069[0x0],_0xb25a01[_0x2594c7('0x187b')]['clientEmail']=_0x33f069[0x1],_0xb25a01[_0x2594c7('0x187b')][_0x2594c7('0x1c6c')]=_0x33f069[0x2],_0xb25a01[_0x2594c7('0x187b')][_0x2594c7('0xeff')]=_0x33f069[0x3],_0xb25a01['autoreply'][_0x2594c7('0x1cbc')]=_0x33f069['slice'](0x4,_0x33f069[_0x2594c7('0x1e22')])['join'](',');}break;case _0x2594c7('0x102c'):{const _0x21827c=_0xb25a01['autoreply'][_0x2594c7('0x13fc')][_0x2594c7('0xaf8')](',');_0xb25a01[_0x2594c7('0x187b')][_0x2594c7('0x1a82')]=_0x21827c[0x0],_0xb25a01[_0x2594c7('0x187b')][_0x2594c7('0x1422')]=_0x21827c[0x1],_0xb25a01[_0x2594c7('0x187b')][_0x2594c7('0x165a')]=_0x21827c[0x2],_0xb25a01[_0x2594c7('0x187b')][_0x2594c7('0x1e8f')]=_0x21827c[0x3],_0xb25a01[_0x2594c7('0x187b')][_0x2594c7('0x1cbc')]=_0x21827c[_0x2594c7('0x1b77')](0x4,_0x21827c[_0x2594c7('0x1e22')])['join'](',');}break;case _0x2594c7('0x187b'):{const _0x239277=_0xb25a01[_0x2594c7('0x187b')][_0x2594c7('0x13fc')]['split'](',');_0xb25a01[_0x2594c7('0x187b')][_0x2594c7('0x663')]=isNaN(_0x239277[0x0])?_0x239277[0x0]:parseInt(_0x239277[0x0],0xa),_0xb25a01[_0x2594c7('0x187b')][_0x2594c7('0x25ed')]=_0x239277[_0x2594c7('0x1b77')](0x1,_0x239277['length'])[_0x2594c7('0xa04')](',');}break;case _0x2594c7('0x1b86'):_0xb25a01[_0x2594c7('0x187b')][_0x2594c7('0x25ed')]=_0xb25a01['autoreply'][_0x2594c7('0x13fc')];break;case'set':_0xb25a01[_0x2594c7('0x187b')][_0x2594c7('0x1909')]=_0xb25a01[_0x2594c7('0x187b')]['appdata'][_0x2594c7('0xaf8')]('=')[0x0],_0xb25a01['autoreply'][_0x2594c7('0x10cc')]=_0xb25a01['autoreply'][_0x2594c7('0x13fc')][_0x2594c7('0xaf8')]('=')[0x1];break;case _0x2594c7('0x1efd'):_0xb25a01[_0x2594c7('0x187b')][_0x2594c7('0xef0')]=_0xb25a01[_0x2594c7('0x187b')][_0x2594c7('0x13fc')];break;default:{const _0x34df19=_0xb25a01[_0x2594c7('0x187b')][_0x2594c7('0x13fc')][_0x2594c7('0xaf8')](',');_0xb25a01[_0x2594c7('0x187b')][_0x2594c7('0x663')]=_0x36f548()['isEmpty'](_0x34df19[0x0])?_0x34df19[0x0]:isNaN(_0x34df19[0x0])?_0x34df19[0x0]:parseInt(_0x34df19[0x0],0xa),_0xb25a01[_0x2594c7('0x187b')][_0x2594c7('0x25ed')]=_0x36f548()[_0x2594c7('0x1fc5')](_0x34df19[0x1])?_0x34df19[0x1]:isNaN(_0x34df19[0x1])?_0x34df19[0x1]:parseInt(_0x34df19[0x1],0xa);}break;}else _0xb25a01['autoreply'][_0x2594c7('0x663')]=0x1;_0xb25a01[_0x2594c7('0x187b')][_0x2594c7('0x19fd')]&&_0xb25a01[_0x2594c7('0x187b')][_0x2594c7('0x19fd')][_0x2594c7('0x20d5')]()===_0x2594c7('0x25b6')&&_0xb25a01[_0x2594c7('0x187b')]['appType'][_0x2594c7('0x20d5')]()===_0x2594c7('0x1a64')&&(_0xb25a01[_0x2594c7('0x187b')][_0x2594c7('0x2137')]=_0xb25a01[_0x2594c7('0x187b')][_0x2594c7('0x1546')]?_0xb25a01['autoreply'][_0x2594c7('0x1546')]['split']('$')[0x0]:undefined,_0xb25a01['autoreply'][_0x2594c7('0x7d0')]=_0xb25a01['autoreply'][_0x2594c7('0xc38')]?'CALLERID(all)='+_0xb25a01['autoreply'][_0x2594c7('0xc38')]:undefined);_0xb25a01['saveWhatsappAccountApp']=_0x943437,_0xb25a01[_0x2594c7('0xc4e')]=_0x16e060;function _0x943437(){const _0x3dd3bb=_0x2594c7;_0xb25a01[_0x3dd3bb('0x120f')]=[];const _0x5ae4dd=[];_0xb25a01[_0x3dd3bb('0x187b')][_0x3dd3bb('0x19fd')]&&_0xb25a01[_0x3dd3bb('0x187b')][_0x3dd3bb('0x19fd')][_0x3dd3bb('0x20d5')]()===_0x3dd3bb('0x25b6')&&_0xb25a01[_0x3dd3bb('0x187b')][_0x3dd3bb('0x27c0')]===_0x3dd3bb('0x1bf6')&&(_0xb25a01[_0x3dd3bb('0x187b')][_0x3dd3bb('0x1546')]=_0x80d26d[_0x3dd3bb('0x388')]?(_0xb25a01[_0x3dd3bb('0x187b')][_0x3dd3bb('0x2137')]||'')+_0x3dd3bb('0x2100')+_0x80d26d['cutdigits']+'}':(_0xb25a01[_0x3dd3bb('0x187b')][_0x3dd3bb('0x2137')]||'')+'${EXTEN}',_0x80d26d['recordingFormat']!==_0x3dd3bb('0x3e6')?_0xb25a01[_0x3dd3bb('0x187b')][_0x3dd3bb('0x249a')][_0x3dd3bb('0x203c')](_0x3dd3bb('0x22c9'))<0x0&&(_0xb25a01[_0x3dd3bb('0x187b')][_0x3dd3bb('0x249a')]+='U(xcally-mixmonitor-context)'):_0xb25a01['autoreply'][_0x3dd3bb('0x249a')]=_0xb25a01[_0x3dd3bb('0x187b')][_0x3dd3bb('0x249a')]['replace'](_0x3dd3bb('0x22c9'),''));if(_0xb25a01[_0x3dd3bb('0x187b')][_0x3dd3bb('0x27c0')]&&_0xb25a01[_0x3dd3bb('0x187b')][_0x3dd3bb('0x27c0')]===_0x3dd3bb('0xa8d')){}else switch((_0xb25a01[_0x3dd3bb('0x187b')][_0x3dd3bb('0x18f5')]||_0xb25a01[_0x3dd3bb('0x187b')][_0x3dd3bb('0x27c0')])[_0x3dd3bb('0x20d5')]()){case _0x3dd3bb('0xe50'):_0xb25a01[_0x3dd3bb('0x187b')][_0x3dd3bb('0x13fc')]=_0xb25a01[_0x3dd3bb('0x187b')][_0x3dd3bb('0x1909')]+'='+_0xb25a01[_0x3dd3bb('0x187b')][_0x3dd3bb('0x10cc')];break;case _0x3dd3bb('0xa8d'):break;default:_0x5ae4dd[0x0]=_0xb25a01[_0x3dd3bb('0x187b')][_0x3dd3bb('0x663')],_0x5ae4dd[0x1]=_0xb25a01[_0x3dd3bb('0x187b')][_0x3dd3bb('0x25ed')],_0xb25a01['autoreply'][_0x3dd3bb('0x13fc')]=_0x5ae4dd[_0x3dd3bb('0xa04')](',');}_0x16e060(_0xb25a01[_0x3dd3bb('0x187b')]);}function _0x16e060(_0x4d7ed1){_0xdf221d['hide'](_0x4d7ed1);}}const _0x11690f=_0x3ed6ce;_0x2aa73a[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0x142d'),'whatsappAccountApp',_0x21d0f5('0x2295'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),_0x21d0f5('0xb25')];function _0x2aa73a(_0x231347,_0x2bea60,_0x35a3f7,_0x346327,_0x318078,_0x27273a,_0x35ab74,_0x27f656){const _0x11e093=_0x21d0f5,_0x4554d7=this;_0x4554d7[_0x11e093('0x32a')]=_0x35ab74[_0x11e093('0x2428')](),_0x4554d7['errors']=[],_0x4554d7[_0x11e093('0x134b')]=_0x11e093('0x257e')+(_0x346327['appType']||_0x346327[_0x11e093('0x18f5')])[_0x11e093('0xa6f')](),_0x4554d7['close']=angular[_0x11e093('0x6fb')](_0x346327),_0x4554d7[_0x11e093('0xb25')]=_0x27f656,_0x4554d7[_0x11e093('0x2c9')]={};if(_0x4554d7[_0x11e093('0x2132')][_0x11e093('0x13fc')])switch(_0x4554d7[_0x11e093('0x2132')][_0x11e093('0x27c0')]?_0x4554d7[_0x11e093('0x2132')][_0x11e093('0x27c0')][_0x11e093('0x20d5')]():_0x4554d7[_0x11e093('0x2132')][_0x11e093('0x18f5')][_0x11e093('0x20d5')]()){case _0x11e093('0xa8d'):break;case _0x11e093('0x185e'):{const _0x10259a=_0x4554d7[_0x11e093('0x2132')][_0x11e093('0x13fc')][_0x11e093('0xaf8')](',');_0x4554d7[_0x11e093('0x2132')][_0x11e093('0xa0c')]=_0x10259a[0x0],_0x4554d7[_0x11e093('0x2132')][_0x11e093('0xeff')]=_0x10259a[0x1],_0x4554d7['close'][_0x11e093('0x1cbc')]=_0x10259a[_0x11e093('0x1b77')](0x2,_0x10259a[_0x11e093('0x1e22')])[_0x11e093('0xa04')](',');}break;case _0x11e093('0x21a8'):{const _0x356471=_0x4554d7[_0x11e093('0x2132')][_0x11e093('0x13fc')]['split'](',');_0x4554d7[_0x11e093('0x2132')][_0x11e093('0x20e')]=_0x356471[0x0],_0x4554d7[_0x11e093('0x2132')]['clientEmail']=_0x356471[0x1],_0x4554d7[_0x11e093('0x2132')][_0x11e093('0x1c6c')]=_0x356471[0x2],_0x4554d7[_0x11e093('0x2132')][_0x11e093('0xeff')]=_0x356471[0x3],_0x4554d7['close'][_0x11e093('0x1cbc')]=_0x356471['slice'](0x4,_0x356471[_0x11e093('0x1e22')])[_0x11e093('0xa04')](',');}break;case'amazonlex':{const _0x196310=_0x4554d7[_0x11e093('0x2132')][_0x11e093('0x13fc')]['split'](',');_0x4554d7[_0x11e093('0x2132')][_0x11e093('0x1a82')]=_0x196310[0x0],_0x4554d7[_0x11e093('0x2132')]['secretaccesskey']=_0x196310[0x1],_0x4554d7[_0x11e093('0x2132')]['lexregion']=_0x196310[0x2],_0x4554d7[_0x11e093('0x2132')][_0x11e093('0x1e8f')]=_0x196310[0x3],_0x4554d7[_0x11e093('0x2132')]['welcomemessage']=_0x196310[_0x11e093('0x1b77')](0x4,_0x196310['length'])[_0x11e093('0xa04')](',');}break;case _0x11e093('0x187b'):{const _0x32da27=_0x4554d7[_0x11e093('0x2132')]['appdata'][_0x11e093('0xaf8')](',');_0x4554d7[_0x11e093('0x2132')][_0x11e093('0x663')]=isNaN(_0x32da27[0x0])?_0x32da27[0x0]:parseInt(_0x32da27[0x0],0xa),_0x4554d7['close'][_0x11e093('0x25ed')]=_0x32da27['slice'](0x1,_0x32da27[_0x11e093('0x1e22')])['join'](',');}break;case _0x11e093('0x1b86'):_0x4554d7[_0x11e093('0x2132')]['text']=_0x4554d7['close'][_0x11e093('0x13fc')];break;case _0x11e093('0xe50'):_0x4554d7['close'][_0x11e093('0x1909')]=_0x4554d7[_0x11e093('0x2132')][_0x11e093('0x13fc')][_0x11e093('0xaf8')]('=')[0x0],_0x4554d7[_0x11e093('0x2132')]['value']=_0x4554d7[_0x11e093('0x2132')][_0x11e093('0x13fc')][_0x11e093('0xaf8')]('=')[0x1];break;case _0x11e093('0x1efd'):_0x4554d7[_0x11e093('0x2132')]['project']=_0x4554d7[_0x11e093('0x2132')][_0x11e093('0x13fc')];break;default:{const _0x28201a=_0x4554d7[_0x11e093('0x2132')]['appdata'][_0x11e093('0xaf8')](',');_0x4554d7['close'][_0x11e093('0x107a')]=_0x36f548()['isEmpty'](_0x28201a[0x0])?_0x28201a[0x0]:isNaN(_0x28201a[0x0])?_0x28201a[0x0]:parseInt(_0x28201a[0x0],0xa);}break;}else{}_0x4554d7[_0x11e093('0x2132')][_0x11e093('0x19fd')]&&_0x4554d7[_0x11e093('0x2132')][_0x11e093('0x19fd')]['toLowerCase']()===_0x11e093('0x25b6')&&_0x4554d7[_0x11e093('0x2132')]['appType'][_0x11e093('0x20d5')]()==='outbounddial'&&(_0x4554d7['close'][_0x11e093('0x2137')]=_0x4554d7[_0x11e093('0x2132')][_0x11e093('0x1546')]?_0x4554d7['close'][_0x11e093('0x1546')][_0x11e093('0xaf8')]('$')[0x0]:undefined,_0x4554d7[_0x11e093('0x2132')][_0x11e093('0x7d0')]=_0x4554d7[_0x11e093('0x2132')][_0x11e093('0xc38')]?'CALLERID(all)='+_0x4554d7['close']['callerID']:undefined);_0x4554d7[_0x11e093('0x1c36')]=_0x17659d,_0x4554d7['closeDialog']=_0x27c293;function _0x17659d(){const _0x3ee479=_0x11e093;_0x4554d7[_0x3ee479('0x120f')]=[];const _0x325bf0=[];_0x4554d7[_0x3ee479('0x2132')]['type']&&_0x4554d7[_0x3ee479('0x2132')]['type'][_0x3ee479('0x20d5')]()==='outbound'&&_0x4554d7[_0x3ee479('0x2132')][_0x3ee479('0x27c0')]===_0x3ee479('0x1bf6')&&(_0x4554d7[_0x3ee479('0x2132')][_0x3ee479('0x1546')]=_0x318078['cutdigits']?(_0x4554d7['close'][_0x3ee479('0x2137')]||'')+_0x3ee479('0x2100')+_0x318078[_0x3ee479('0x388')]+'}':(_0x4554d7['close'][_0x3ee479('0x2137')]||'')+_0x3ee479('0x1f76'),_0x318078[_0x3ee479('0x897')]!==_0x3ee479('0x3e6')?_0x4554d7[_0x3ee479('0x2132')]['options'][_0x3ee479('0x203c')]('U(xcally-mixmonitor-context)')<0x0&&(_0x4554d7[_0x3ee479('0x2132')][_0x3ee479('0x249a')]+='U(xcally-mixmonitor-context)'):_0x4554d7[_0x3ee479('0x2132')][_0x3ee479('0x249a')]=_0x4554d7['close'][_0x3ee479('0x249a')][_0x3ee479('0x814')](_0x3ee479('0x22c9'),''));if(_0x4554d7['close'][_0x3ee479('0x27c0')]&&_0x4554d7[_0x3ee479('0x2132')][_0x3ee479('0x27c0')]===_0x3ee479('0xa8d')){}else switch((_0x4554d7[_0x3ee479('0x2132')][_0x3ee479('0x18f5')]||_0x4554d7[_0x3ee479('0x2132')]['appType'])[_0x3ee479('0x20d5')]()){case _0x3ee479('0xe50'):_0x4554d7[_0x3ee479('0x2132')]['appdata']=_0x4554d7['close'][_0x3ee479('0x1909')]+'='+_0x4554d7[_0x3ee479('0x2132')][_0x3ee479('0x10cc')];break;case'custom':break;default:_0x325bf0[0x0]=_0x4554d7[_0x3ee479('0x2132')][_0x3ee479('0x107a')],_0x4554d7[_0x3ee479('0x2132')][_0x3ee479('0x13fc')]=_0x325bf0['join'](',');}_0x27c293(_0x4554d7['close']);}function _0x27c293(_0x5a219d){const _0x3f1c4c=_0x11e093;_0x231347[_0x3f1c4c('0x237e')](_0x5a219d);}}const _0x4311ce=_0x2aa73a;_0x5d93a9[_0x21d0f5('0x1e9a')]=['$mdDialog','$q',_0x21d0f5('0x142d'),_0x21d0f5('0x1ed9'),_0x21d0f5('0x2295'),'api','Auth',_0x21d0f5('0xb25')];function _0x5d93a9(_0x521c76,_0x1aa4a9,_0x9dd8d4,_0xb893fe,_0x12dac9,_0x1a35c4,_0x356c24,_0xe8e758){const _0x9201f3=_0x21d0f5,_0x405af7=this;_0x405af7[_0x9201f3('0x32a')]=_0x356c24[_0x9201f3('0x2428')](),_0x405af7[_0x9201f3('0x120f')]=[],_0x405af7[_0x9201f3('0x134b')]='WHATSAPP.EDIT_'+(_0xb893fe[_0x9201f3('0x27c0')]||_0xb893fe[_0x9201f3('0x18f5')])[_0x9201f3('0xa6f')](),_0x405af7['dialogflow']=angular['copy'](_0xb893fe),_0x405af7[_0x9201f3('0xb25')]=_0xe8e758,_0x405af7[_0x9201f3('0x2c9')]={};if(_0x405af7[_0x9201f3('0x185e')][_0x9201f3('0x13fc')])switch(_0x405af7[_0x9201f3('0x185e')][_0x9201f3('0x27c0')]?_0x405af7[_0x9201f3('0x185e')][_0x9201f3('0x27c0')][_0x9201f3('0x20d5')]():_0x405af7['dialogflow'][_0x9201f3('0x18f5')][_0x9201f3('0x20d5')]()){case _0x9201f3('0xa8d'):break;case _0x9201f3('0x185e'):{const _0x4b3380=_0x405af7['dialogflow'][_0x9201f3('0x13fc')]['split'](',');_0x405af7[_0x9201f3('0x185e')]['key']=_0x4b3380[0x0],_0x405af7['dialogflow'][_0x9201f3('0xeff')]=_0x4b3380[0x1],_0x405af7['dialogflow']['welcomemessage']=_0x4b3380[_0x9201f3('0x1b77')](0x2,_0x4b3380[_0x9201f3('0x1e22')])[_0x9201f3('0xa04')](',');}break;case _0x9201f3('0x21a8'):{const _0x2879fc=_0x405af7['dialogflow']['appdata'][_0x9201f3('0xaf8')](',');_0x405af7[_0x9201f3('0x185e')][_0x9201f3('0x20e')]=_0x2879fc[0x0],_0x405af7[_0x9201f3('0x185e')][_0x9201f3('0x1f91')]=_0x2879fc[0x1],_0x405af7[_0x9201f3('0x185e')][_0x9201f3('0x1c6c')]=_0x2879fc[0x2],_0x405af7[_0x9201f3('0x185e')]['language']=_0x2879fc[0x3],_0x405af7[_0x9201f3('0x185e')]['welcomemessage']=_0x2879fc[_0x9201f3('0x1b77')](0x4,_0x2879fc[_0x9201f3('0x1e22')])[_0x9201f3('0xa04')](',');}break;case'amazonlex':{const _0x29d112=_0x405af7[_0x9201f3('0x185e')][_0x9201f3('0x13fc')][_0x9201f3('0xaf8')](',');_0x405af7['dialogflow']['accesskeyid']=_0x29d112[0x0],_0x405af7[_0x9201f3('0x185e')][_0x9201f3('0x1422')]=_0x29d112[0x1],_0x405af7[_0x9201f3('0x185e')][_0x9201f3('0x165a')]=_0x29d112[0x2],_0x405af7['dialogflow'][_0x9201f3('0x1e8f')]=_0x29d112[0x3],_0x405af7['dialogflow']['welcomemessage']=_0x29d112['slice'](0x4,_0x29d112[_0x9201f3('0x1e22')])['join'](',');}break;case _0x9201f3('0x187b'):{const _0x1e5e83=_0x405af7[_0x9201f3('0x185e')][_0x9201f3('0x13fc')][_0x9201f3('0xaf8')](',');_0x405af7[_0x9201f3('0x185e')][_0x9201f3('0x663')]=isNaN(_0x1e5e83[0x0])?_0x1e5e83[0x0]:parseInt(_0x1e5e83[0x0],0xa),_0x405af7[_0x9201f3('0x185e')][_0x9201f3('0x25ed')]=_0x1e5e83['slice'](0x1,_0x1e5e83[_0x9201f3('0x1e22')])[_0x9201f3('0xa04')](',');}break;case _0x9201f3('0x1b86'):_0x405af7[_0x9201f3('0x185e')][_0x9201f3('0x25ed')]=_0x405af7[_0x9201f3('0x185e')][_0x9201f3('0x13fc')];break;case _0x9201f3('0xe50'):_0x405af7[_0x9201f3('0x185e')][_0x9201f3('0x1909')]=_0x405af7[_0x9201f3('0x185e')][_0x9201f3('0x13fc')][_0x9201f3('0xaf8')]('=')[0x0],_0x405af7['dialogflow'][_0x9201f3('0x10cc')]=_0x405af7[_0x9201f3('0x185e')][_0x9201f3('0x13fc')][_0x9201f3('0xaf8')]('=')[0x1];break;case _0x9201f3('0x1efd'):_0x405af7[_0x9201f3('0x185e')]['project']=_0x405af7[_0x9201f3('0x185e')][_0x9201f3('0x13fc')];break;default:{const _0x21d6a4=_0x405af7[_0x9201f3('0x185e')]['appdata']['split'](',');_0x405af7['dialogflow'][_0x9201f3('0xa0c')]=_0x36f548()[_0x9201f3('0x1fc5')](_0x21d6a4[0x0])?_0x21d6a4[0x0]:isNaN(_0x21d6a4[0x0])?_0x21d6a4[0x0]:parseInt(_0x21d6a4[0x0],0xa),_0x405af7['dialogflow'][_0x9201f3('0xeff')]=_0x36f548()[_0x9201f3('0x1fc5')](_0x21d6a4[0x1])?_0x21d6a4[0x1]:isNaN(_0x21d6a4[0x1])?_0x21d6a4[0x1]:parseInt(_0x21d6a4[0x1],0xa),_0x405af7[_0x9201f3('0x185e')][_0x9201f3('0x1cbc')]=_0x36f548()[_0x9201f3('0x1fc5')](_0x21d6a4[0x2])?_0x21d6a4[0x2]:isNaN(_0x21d6a4[0x2])?_0x21d6a4[0x2]:parseInt(_0x21d6a4[0x2],0xa);}break;}else _0x405af7[_0x9201f3('0x185e')][_0x9201f3('0xeff')]='en';_0x405af7['dialogflow'][_0x9201f3('0x19fd')]&&_0x405af7['dialogflow'][_0x9201f3('0x19fd')][_0x9201f3('0x20d5')]()===_0x9201f3('0x25b6')&&_0x405af7[_0x9201f3('0x185e')][_0x9201f3('0x27c0')][_0x9201f3('0x20d5')]()===_0x9201f3('0x1a64')&&(_0x405af7['dialogflow'][_0x9201f3('0x2137')]=_0x405af7[_0x9201f3('0x185e')][_0x9201f3('0x1546')]?_0x405af7[_0x9201f3('0x185e')]['phone'][_0x9201f3('0xaf8')]('$')[0x0]:undefined,_0x405af7['dialogflow'][_0x9201f3('0x7d0')]=_0x405af7[_0x9201f3('0x185e')][_0x9201f3('0xc38')]?'CALLERID(all)='+_0x405af7['dialogflow'][_0x9201f3('0xc38')]:undefined);_0x405af7['saveWhatsappAccountApp']=_0x18b49c,_0x405af7[_0x9201f3('0xc4e')]=_0x4b21d2;function _0x18b49c(){const _0x3a49d7=_0x9201f3;_0x405af7[_0x3a49d7('0x120f')]=[];const _0x5e37b0=[];_0x405af7[_0x3a49d7('0x185e')][_0x3a49d7('0x19fd')]&&_0x405af7[_0x3a49d7('0x185e')][_0x3a49d7('0x19fd')][_0x3a49d7('0x20d5')]()===_0x3a49d7('0x25b6')&&_0x405af7[_0x3a49d7('0x185e')][_0x3a49d7('0x27c0')]===_0x3a49d7('0x1bf6')&&(_0x405af7[_0x3a49d7('0x185e')][_0x3a49d7('0x1546')]=_0x12dac9[_0x3a49d7('0x388')]?(_0x405af7[_0x3a49d7('0x185e')][_0x3a49d7('0x2137')]||'')+_0x3a49d7('0x2100')+_0x12dac9[_0x3a49d7('0x388')]+'}':(_0x405af7['dialogflow'][_0x3a49d7('0x2137')]||'')+_0x3a49d7('0x1f76'),_0x12dac9[_0x3a49d7('0x897')]!==_0x3a49d7('0x3e6')?_0x405af7['dialogflow'][_0x3a49d7('0x249a')]['indexOf'](_0x3a49d7('0x22c9'))<0x0&&(_0x405af7[_0x3a49d7('0x185e')][_0x3a49d7('0x249a')]+=_0x3a49d7('0x22c9')):_0x405af7[_0x3a49d7('0x185e')][_0x3a49d7('0x249a')]=_0x405af7['dialogflow'][_0x3a49d7('0x249a')][_0x3a49d7('0x814')](_0x3a49d7('0x22c9'),''));if(_0x405af7[_0x3a49d7('0x185e')][_0x3a49d7('0x27c0')]&&_0x405af7['dialogflow']['appType']===_0x3a49d7('0xa8d')){}else switch((_0x405af7[_0x3a49d7('0x185e')][_0x3a49d7('0x18f5')]||_0x405af7[_0x3a49d7('0x185e')]['appType'])['toLowerCase']()){case _0x3a49d7('0xe50'):_0x405af7[_0x3a49d7('0x185e')][_0x3a49d7('0x13fc')]=_0x405af7[_0x3a49d7('0x185e')]['name']+'='+_0x405af7[_0x3a49d7('0x185e')][_0x3a49d7('0x10cc')];break;case _0x3a49d7('0xa8d'):break;default:_0x5e37b0[0x0]=_0x405af7['dialogflow'][_0x3a49d7('0xa0c')],_0x5e37b0[0x1]=_0x405af7[_0x3a49d7('0x185e')][_0x3a49d7('0xeff')],_0x5e37b0[0x2]=_0x405af7[_0x3a49d7('0x185e')][_0x3a49d7('0x1cbc')],_0x405af7[_0x3a49d7('0x185e')]['appdata']=_0x5e37b0['join'](',');}_0x4b21d2(_0x405af7['dialogflow']);}function _0x4b21d2(_0x3bb072){const _0x50d5d9=_0x9201f3;_0x521c76[_0x50d5d9('0x237e')](_0x3bb072);}}const _0x3ede25=_0x5d93a9;_0x1469ca['$inject']=[_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0x142d'),'whatsappAccountApp',_0x21d0f5('0x2295'),'api',_0x21d0f5('0x1150'),_0x21d0f5('0xb25')];function _0x1469ca(_0x38b103,_0x4d4ccf,_0x3f52e9,_0x147fe9,_0x3c8726,_0x1b7362,_0x5e642d,_0x4866a4){const _0x5cd7fe=_0x21d0f5,_0x1d7bf9=this;_0x1d7bf9['currentUser']=_0x5e642d[_0x5cd7fe('0x2428')](),_0x1d7bf9[_0x5cd7fe('0x120f')]=[],_0x1d7bf9[_0x5cd7fe('0x134b')]=_0x5cd7fe('0x257e')+(_0x147fe9[_0x5cd7fe('0x27c0')]||_0x147fe9[_0x5cd7fe('0x18f5')])[_0x5cd7fe('0xa6f')](),_0x1d7bf9[_0x5cd7fe('0x7cf')]=angular[_0x5cd7fe('0x6fb')](_0x147fe9),_0x1d7bf9[_0x5cd7fe('0xb25')]=_0x4866a4,_0x1d7bf9['hasModulePermissions']={};if(_0x1d7bf9[_0x5cd7fe('0x7cf')]['appdata'])switch(_0x1d7bf9[_0x5cd7fe('0x7cf')]['appType']?_0x1d7bf9[_0x5cd7fe('0x7cf')][_0x5cd7fe('0x27c0')][_0x5cd7fe('0x20d5')]():_0x1d7bf9['gotoif'][_0x5cd7fe('0x18f5')][_0x5cd7fe('0x20d5')]()){case _0x5cd7fe('0xa8d'):break;case _0x5cd7fe('0x185e'):{const _0x49b787=_0x1d7bf9['gotoif']['appdata'][_0x5cd7fe('0xaf8')](',');_0x1d7bf9[_0x5cd7fe('0x7cf')]['key']=_0x49b787[0x0],_0x1d7bf9[_0x5cd7fe('0x7cf')][_0x5cd7fe('0xeff')]=_0x49b787[0x1],_0x1d7bf9[_0x5cd7fe('0x7cf')][_0x5cd7fe('0x1cbc')]=_0x49b787['slice'](0x2,_0x49b787[_0x5cd7fe('0x1e22')])['join'](',');}break;case _0x5cd7fe('0x21a8'):{const _0x448d71=_0x1d7bf9['gotoif'][_0x5cd7fe('0x13fc')][_0x5cd7fe('0xaf8')](',');_0x1d7bf9[_0x5cd7fe('0x7cf')][_0x5cd7fe('0x20e')]=_0x448d71[0x0],_0x1d7bf9[_0x5cd7fe('0x7cf')]['clientEmail']=_0x448d71[0x1],_0x1d7bf9[_0x5cd7fe('0x7cf')][_0x5cd7fe('0x1c6c')]=_0x448d71[0x2],_0x1d7bf9['gotoif']['language']=_0x448d71[0x3],_0x1d7bf9[_0x5cd7fe('0x7cf')][_0x5cd7fe('0x1cbc')]=_0x448d71['slice'](0x4,_0x448d71[_0x5cd7fe('0x1e22')])['join'](',');}break;case _0x5cd7fe('0x102c'):{const _0x25d82d=_0x1d7bf9[_0x5cd7fe('0x7cf')]['appdata'][_0x5cd7fe('0xaf8')](',');_0x1d7bf9[_0x5cd7fe('0x7cf')][_0x5cd7fe('0x1a82')]=_0x25d82d[0x0],_0x1d7bf9['gotoif']['secretaccesskey']=_0x25d82d[0x1],_0x1d7bf9[_0x5cd7fe('0x7cf')][_0x5cd7fe('0x165a')]=_0x25d82d[0x2],_0x1d7bf9[_0x5cd7fe('0x7cf')][_0x5cd7fe('0x1e8f')]=_0x25d82d[0x3],_0x1d7bf9['gotoif'][_0x5cd7fe('0x1cbc')]=_0x25d82d[_0x5cd7fe('0x1b77')](0x4,_0x25d82d['length'])[_0x5cd7fe('0xa04')](',');}break;case _0x5cd7fe('0x187b'):{const _0x4a9f74=_0x1d7bf9['gotoif'][_0x5cd7fe('0x13fc')][_0x5cd7fe('0xaf8')](',');_0x1d7bf9[_0x5cd7fe('0x7cf')][_0x5cd7fe('0x663')]=isNaN(_0x4a9f74[0x0])?_0x4a9f74[0x0]:parseInt(_0x4a9f74[0x0],0xa),_0x1d7bf9[_0x5cd7fe('0x7cf')][_0x5cd7fe('0x25ed')]=_0x4a9f74[_0x5cd7fe('0x1b77')](0x1,_0x4a9f74[_0x5cd7fe('0x1e22')])[_0x5cd7fe('0xa04')](',');}break;case _0x5cd7fe('0x1b86'):_0x1d7bf9[_0x5cd7fe('0x7cf')][_0x5cd7fe('0x25ed')]=_0x1d7bf9[_0x5cd7fe('0x7cf')][_0x5cd7fe('0x13fc')];break;case _0x5cd7fe('0xe50'):_0x1d7bf9['gotoif'][_0x5cd7fe('0x1909')]=_0x1d7bf9[_0x5cd7fe('0x7cf')]['appdata'][_0x5cd7fe('0xaf8')]('=')[0x0],_0x1d7bf9[_0x5cd7fe('0x7cf')][_0x5cd7fe('0x10cc')]=_0x1d7bf9[_0x5cd7fe('0x7cf')][_0x5cd7fe('0x13fc')][_0x5cd7fe('0xaf8')]('=')[0x1];break;case _0x5cd7fe('0x1efd'):_0x1d7bf9[_0x5cd7fe('0x7cf')][_0x5cd7fe('0xef0')]=_0x1d7bf9[_0x5cd7fe('0x7cf')][_0x5cd7fe('0x13fc')];break;default:{const _0x3890de=_0x1d7bf9[_0x5cd7fe('0x7cf')][_0x5cd7fe('0x13fc')]['split'](',');_0x1d7bf9[_0x5cd7fe('0x7cf')][_0x5cd7fe('0xccd')]=_0x36f548()[_0x5cd7fe('0x1fc5')](_0x3890de[0x0])?_0x3890de[0x0]:isNaN(_0x3890de[0x0])?_0x3890de[0x0]:parseInt(_0x3890de[0x0],0xa),_0x1d7bf9[_0x5cd7fe('0x7cf')]['truepriority']=_0x36f548()[_0x5cd7fe('0x1fc5')](_0x3890de[0x1])?_0x3890de[0x1]:isNaN(_0x3890de[0x1])?_0x3890de[0x1]:parseInt(_0x3890de[0x1],0xa),_0x1d7bf9['gotoif'][_0x5cd7fe('0x7ed')]=_0x36f548()[_0x5cd7fe('0x1fc5')](_0x3890de[0x2])?_0x3890de[0x2]:isNaN(_0x3890de[0x2])?_0x3890de[0x2]:parseInt(_0x3890de[0x2],0xa);}break;}else{}_0x1d7bf9[_0x5cd7fe('0x7cf')]['type']&&_0x1d7bf9[_0x5cd7fe('0x7cf')][_0x5cd7fe('0x19fd')]['toLowerCase']()===_0x5cd7fe('0x25b6')&&_0x1d7bf9[_0x5cd7fe('0x7cf')][_0x5cd7fe('0x27c0')][_0x5cd7fe('0x20d5')]()==='outbounddial'&&(_0x1d7bf9[_0x5cd7fe('0x7cf')]['prefix']=_0x1d7bf9[_0x5cd7fe('0x7cf')]['phone']?_0x1d7bf9[_0x5cd7fe('0x7cf')][_0x5cd7fe('0x1546')][_0x5cd7fe('0xaf8')]('$')[0x0]:undefined,_0x1d7bf9[_0x5cd7fe('0x7cf')]['callerId']=_0x1d7bf9['gotoif'][_0x5cd7fe('0xc38')]?'CALLERID(all)='+_0x1d7bf9[_0x5cd7fe('0x7cf')]['callerID']:undefined);_0x1d7bf9[_0x5cd7fe('0x1c36')]=_0x375c34,_0x1d7bf9['closeDialog']=_0x93580c;function _0x375c34(){const _0x279ba2=_0x5cd7fe;_0x1d7bf9['errors']=[];const _0x25bc8e=[];_0x1d7bf9[_0x279ba2('0x7cf')]['type']&&_0x1d7bf9['gotoif']['type'][_0x279ba2('0x20d5')]()===_0x279ba2('0x25b6')&&_0x1d7bf9[_0x279ba2('0x7cf')][_0x279ba2('0x27c0')]==='outboundDial'&&(_0x1d7bf9['gotoif'][_0x279ba2('0x1546')]=_0x3c8726[_0x279ba2('0x388')]?(_0x1d7bf9['gotoif'][_0x279ba2('0x2137')]||'')+_0x279ba2('0x2100')+_0x3c8726[_0x279ba2('0x388')]+'}':(_0x1d7bf9[_0x279ba2('0x7cf')][_0x279ba2('0x2137')]||'')+_0x279ba2('0x1f76'),_0x3c8726[_0x279ba2('0x897')]!==_0x279ba2('0x3e6')?_0x1d7bf9[_0x279ba2('0x7cf')][_0x279ba2('0x249a')][_0x279ba2('0x203c')](_0x279ba2('0x22c9'))<0x0&&(_0x1d7bf9['gotoif'][_0x279ba2('0x249a')]+=_0x279ba2('0x22c9')):_0x1d7bf9[_0x279ba2('0x7cf')][_0x279ba2('0x249a')]=_0x1d7bf9[_0x279ba2('0x7cf')][_0x279ba2('0x249a')]['replace']('U(xcally-mixmonitor-context)',''));if(_0x1d7bf9[_0x279ba2('0x7cf')][_0x279ba2('0x27c0')]&&_0x1d7bf9[_0x279ba2('0x7cf')][_0x279ba2('0x27c0')]===_0x279ba2('0xa8d')){}else switch((_0x1d7bf9['gotoif'][_0x279ba2('0x18f5')]||_0x1d7bf9['gotoif'][_0x279ba2('0x27c0')])['toLowerCase']()){case _0x279ba2('0xe50'):_0x1d7bf9[_0x279ba2('0x7cf')][_0x279ba2('0x13fc')]=_0x1d7bf9[_0x279ba2('0x7cf')][_0x279ba2('0x1909')]+'='+_0x1d7bf9[_0x279ba2('0x7cf')][_0x279ba2('0x10cc')];break;case _0x279ba2('0xa8d'):break;default:_0x25bc8e[0x0]=_0x1d7bf9[_0x279ba2('0x7cf')][_0x279ba2('0xccd')],_0x25bc8e[0x1]=_0x1d7bf9[_0x279ba2('0x7cf')][_0x279ba2('0x1deb')],_0x25bc8e[0x2]=_0x1d7bf9[_0x279ba2('0x7cf')][_0x279ba2('0x7ed')],_0x1d7bf9[_0x279ba2('0x7cf')]['appdata']=_0x25bc8e[_0x279ba2('0xa04')](',');}_0x93580c(_0x1d7bf9['gotoif']);}function _0x93580c(_0x43cce9){_0x38b103['hide'](_0x43cce9);}}const _0x463650=_0x1469ca;_0x2daa84[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0x142d'),_0x21d0f5('0x1ed9'),_0x21d0f5('0x2295'),_0x21d0f5('0x12a5'),'Auth',_0x21d0f5('0xb25')];function _0x2daa84(_0x14fc95,_0x2e4dce,_0x1d1f19,_0x23eb08,_0x4a7b82,_0x1f6367,_0xf76155,_0x3e5620){const _0x2e464d=_0x21d0f5,_0x54e8dd=this;_0x54e8dd[_0x2e464d('0x32a')]=_0xf76155[_0x2e464d('0x2428')](),_0x54e8dd[_0x2e464d('0x120f')]=[],_0x54e8dd['title']=_0x2e464d('0x257e')+(_0x23eb08[_0x2e464d('0x27c0')]||_0x23eb08[_0x2e464d('0x18f5')])['toUpperCase'](),_0x54e8dd[_0x2e464d('0x110d')]=angular[_0x2e464d('0x6fb')](_0x23eb08),_0x54e8dd[_0x2e464d('0xb25')]=_0x3e5620,_0x54e8dd[_0x2e464d('0x2c9')]={};if(_0x54e8dd[_0x2e464d('0x110d')]['appdata'])switch(_0x54e8dd[_0x2e464d('0x110d')][_0x2e464d('0x27c0')]?_0x54e8dd[_0x2e464d('0x110d')][_0x2e464d('0x27c0')][_0x2e464d('0x20d5')]():_0x54e8dd[_0x2e464d('0x110d')][_0x2e464d('0x18f5')][_0x2e464d('0x20d5')]()){case _0x2e464d('0xa8d'):break;case'dialogflow':{const _0x4c8840=_0x54e8dd[_0x2e464d('0x110d')]['appdata'][_0x2e464d('0xaf8')](',');_0x54e8dd['gotop']['key']=_0x4c8840[0x0],_0x54e8dd[_0x2e464d('0x110d')]['language']=_0x4c8840[0x1],_0x54e8dd[_0x2e464d('0x110d')]['welcomemessage']=_0x4c8840['slice'](0x2,_0x4c8840[_0x2e464d('0x1e22')])[_0x2e464d('0xa04')](',');}break;case'dialogflowv2':{const _0x12e580=_0x54e8dd['gotop'][_0x2e464d('0x13fc')][_0x2e464d('0xaf8')](',');_0x54e8dd[_0x2e464d('0x110d')][_0x2e464d('0x20e')]=_0x12e580[0x0],_0x54e8dd[_0x2e464d('0x110d')][_0x2e464d('0x1f91')]=_0x12e580[0x1],_0x54e8dd['gotop'][_0x2e464d('0x1c6c')]=_0x12e580[0x2],_0x54e8dd['gotop'][_0x2e464d('0xeff')]=_0x12e580[0x3],_0x54e8dd[_0x2e464d('0x110d')][_0x2e464d('0x1cbc')]=_0x12e580['slice'](0x4,_0x12e580[_0x2e464d('0x1e22')])['join'](',');}break;case _0x2e464d('0x102c'):{const _0x17b2fb=_0x54e8dd[_0x2e464d('0x110d')][_0x2e464d('0x13fc')][_0x2e464d('0xaf8')](',');_0x54e8dd[_0x2e464d('0x110d')][_0x2e464d('0x1a82')]=_0x17b2fb[0x0],_0x54e8dd['gotop'][_0x2e464d('0x1422')]=_0x17b2fb[0x1],_0x54e8dd['gotop'][_0x2e464d('0x165a')]=_0x17b2fb[0x2],_0x54e8dd[_0x2e464d('0x110d')][_0x2e464d('0x1e8f')]=_0x17b2fb[0x3],_0x54e8dd[_0x2e464d('0x110d')][_0x2e464d('0x1cbc')]=_0x17b2fb[_0x2e464d('0x1b77')](0x4,_0x17b2fb[_0x2e464d('0x1e22')])[_0x2e464d('0xa04')](',');}break;case _0x2e464d('0x187b'):{const _0x48e785=_0x54e8dd['gotop'][_0x2e464d('0x13fc')][_0x2e464d('0xaf8')](',');_0x54e8dd[_0x2e464d('0x110d')][_0x2e464d('0x663')]=isNaN(_0x48e785[0x0])?_0x48e785[0x0]:parseInt(_0x48e785[0x0],0xa),_0x54e8dd['gotop'][_0x2e464d('0x25ed')]=_0x48e785[_0x2e464d('0x1b77')](0x1,_0x48e785[_0x2e464d('0x1e22')])['join'](',');}break;case _0x2e464d('0x1b86'):_0x54e8dd[_0x2e464d('0x110d')][_0x2e464d('0x25ed')]=_0x54e8dd[_0x2e464d('0x110d')]['appdata'];break;case _0x2e464d('0xe50'):_0x54e8dd[_0x2e464d('0x110d')][_0x2e464d('0x1909')]=_0x54e8dd[_0x2e464d('0x110d')]['appdata']['split']('=')[0x0],_0x54e8dd[_0x2e464d('0x110d')][_0x2e464d('0x10cc')]=_0x54e8dd['gotop'][_0x2e464d('0x13fc')]['split']('=')[0x1];break;case _0x2e464d('0x1efd'):_0x54e8dd[_0x2e464d('0x110d')]['project']=_0x54e8dd[_0x2e464d('0x110d')][_0x2e464d('0x13fc')];break;default:{const _0x104175=_0x54e8dd[_0x2e464d('0x110d')]['appdata'][_0x2e464d('0xaf8')](',');_0x54e8dd['gotop'][_0x2e464d('0x2804')]=_0x36f548()['isEmpty'](_0x104175[0x0])?_0x104175[0x0]:isNaN(_0x104175[0x0])?_0x104175[0x0]:parseInt(_0x104175[0x0],0xa);}break;}else{}_0x54e8dd['gotop'][_0x2e464d('0x19fd')]&&_0x54e8dd[_0x2e464d('0x110d')]['type'][_0x2e464d('0x20d5')]()===_0x2e464d('0x25b6')&&_0x54e8dd['gotop'][_0x2e464d('0x27c0')][_0x2e464d('0x20d5')]()===_0x2e464d('0x1a64')&&(_0x54e8dd[_0x2e464d('0x110d')][_0x2e464d('0x2137')]=_0x54e8dd[_0x2e464d('0x110d')]['phone']?_0x54e8dd[_0x2e464d('0x110d')][_0x2e464d('0x1546')]['split']('$')[0x0]:undefined,_0x54e8dd[_0x2e464d('0x110d')][_0x2e464d('0x7d0')]=_0x54e8dd[_0x2e464d('0x110d')][_0x2e464d('0xc38')]?_0x2e464d('0x83a')+_0x54e8dd[_0x2e464d('0x110d')][_0x2e464d('0xc38')]:undefined);_0x54e8dd[_0x2e464d('0x1c36')]=_0x27da73,_0x54e8dd['closeDialog']=_0x219d3f;function _0x27da73(){const _0x2c2774=_0x2e464d;_0x54e8dd[_0x2c2774('0x120f')]=[];const _0x41d812=[];_0x54e8dd['gotop'][_0x2c2774('0x19fd')]&&_0x54e8dd[_0x2c2774('0x110d')]['type'][_0x2c2774('0x20d5')]()===_0x2c2774('0x25b6')&&_0x54e8dd[_0x2c2774('0x110d')][_0x2c2774('0x27c0')]===_0x2c2774('0x1bf6')&&(_0x54e8dd['gotop'][_0x2c2774('0x1546')]=_0x4a7b82[_0x2c2774('0x388')]?(_0x54e8dd[_0x2c2774('0x110d')][_0x2c2774('0x2137')]||'')+_0x2c2774('0x2100')+_0x4a7b82[_0x2c2774('0x388')]+'}':(_0x54e8dd[_0x2c2774('0x110d')][_0x2c2774('0x2137')]||'')+_0x2c2774('0x1f76'),_0x4a7b82['recordingFormat']!==_0x2c2774('0x3e6')?_0x54e8dd[_0x2c2774('0x110d')][_0x2c2774('0x249a')][_0x2c2774('0x203c')]('U(xcally-mixmonitor-context)')<0x0&&(_0x54e8dd[_0x2c2774('0x110d')][_0x2c2774('0x249a')]+=_0x2c2774('0x22c9')):_0x54e8dd[_0x2c2774('0x110d')]['options']=_0x54e8dd[_0x2c2774('0x110d')][_0x2c2774('0x249a')][_0x2c2774('0x814')](_0x2c2774('0x22c9'),''));if(_0x54e8dd[_0x2c2774('0x110d')]['appType']&&_0x54e8dd['gotop'][_0x2c2774('0x27c0')]==='custom'){}else switch((_0x54e8dd[_0x2c2774('0x110d')]['app']||_0x54e8dd[_0x2c2774('0x110d')][_0x2c2774('0x27c0')])[_0x2c2774('0x20d5')]()){case _0x2c2774('0xe50'):_0x54e8dd[_0x2c2774('0x110d')][_0x2c2774('0x13fc')]=_0x54e8dd[_0x2c2774('0x110d')]['name']+'='+_0x54e8dd['gotop'][_0x2c2774('0x10cc')];break;case'custom':break;default:_0x41d812[0x0]=_0x54e8dd[_0x2c2774('0x110d')]['priority'],_0x54e8dd[_0x2c2774('0x110d')][_0x2c2774('0x13fc')]=_0x41d812[_0x2c2774('0xa04')](',');}_0x219d3f(_0x54e8dd[_0x2c2774('0x110d')]);}function _0x219d3f(_0x380f79){const _0x9f358e=_0x2e464d;_0x14fc95[_0x9f358e('0x237e')](_0x380f79);}}const _0x5143a9=_0x2daa84;_0x2a9995[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0xcbc'),_0x21d0f5('0x1ca2'),_0x21d0f5('0x1d2f'),_0x21d0f5('0x216f'),_0x21d0f5('0x507'),'intervals',_0x21d0f5('0x142d'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),_0x21d0f5('0xb25')];function _0x2a9995(_0x476e7d,_0x159d5c,_0x47b4c6,_0x4bf93f,_0x41bb60,_0x523f75,_0x585a52,_0x1b38e8,_0x3f59dc,_0x5b713e){const _0x32907f=_0x21d0f5,_0x6c77e6=this;_0x6c77e6['currentUser']=_0x3f59dc['getCurrentUser'](),_0x6c77e6[_0x32907f('0x120f')]=[],_0x6c77e6[_0x32907f('0x134b')]=_0x32907f('0x1d07'),_0x6c77e6[_0x32907f('0x507')]=angular[_0x32907f('0x6fb')](_0x41bb60),_0x6c77e6['intervals']=_0x523f75,_0x6c77e6[_0x32907f('0x18cf')]=![],_0x6c77e6[_0x32907f('0x1660')]=[_0x32907f('0x27e5'),'custom',_0x32907f('0x257d')],_0x6c77e6[_0x32907f('0xb25')]=_0x5b713e,_0x6c77e6['daysOfWeek']=_0x4bf93f['getDaysOfWeek'](),_0x6c77e6['monthNumber']=_0x4bf93f[_0x32907f('0xf7a')](),_0x6c77e6[_0x32907f('0x19c8')]=_0x4bf93f[_0x32907f('0x311')](),_0x6c77e6[_0x32907f('0x256b')]=_0x4bf93f[_0x32907f('0x1ebc')]();if(!_0x6c77e6['interval'])_0x6c77e6[_0x32907f('0x507')]={'interval':'*,*,*,*'},_0x6c77e6[_0x32907f('0x19fd')]=_0x32907f('0x27e5'),_0x6c77e6[_0x32907f('0x134b')]='TOOLS.NEW_INTERVAL',_0x6c77e6[_0x32907f('0x18cf')]=!![];else{if(_0x6c77e6[_0x32907f('0x507')][_0x32907f('0x507')]!==_0x32907f('0x1830')){_0x6c77e6[_0x32907f('0x19fd')]='custom';const _0x40adbe=_0x6c77e6[_0x32907f('0x507')]['interval'][_0x32907f('0xaf8')](','),_0xd26236=_0x40adbe[0x0],_0x116887=_0x40adbe[0x1],_0xa98830=_0x40adbe[0x2],_0x16da19=_0x40adbe[0x3];if(_0xd26236!=='*'){const _0x4ffc81=_0xd26236['split']('-')[0x0],_0x13803d=_0xd26236[_0x32907f('0xaf8')]('-')[0x1];let _0x46ea2a;_0x46ea2a=new Date(),_0x46ea2a['setHours'](Number(_0x4ffc81[_0x32907f('0xaf8')](':')[0x0])),_0x46ea2a['setMinutes'](Number(_0x4ffc81[_0x32907f('0xaf8')](':')[0x1])),_0x6c77e6['timeRangeFrom']=_0x46ea2a,_0x46ea2a=new Date(),_0x46ea2a['setHours'](Number(_0x13803d['split'](':')[0x0])),_0x46ea2a[_0x32907f('0x7b6')](Number(_0x13803d[_0x32907f('0xaf8')](':')[0x1])),_0x6c77e6[_0x32907f('0x19e5')]=_0x46ea2a;}_0x116887!=='*'&&(_0x6c77e6['dayOfWeekFrom']=_0x116887[_0x32907f('0xaf8')]('-')[0x0],_0x6c77e6['dayOfWeekTo']=_0x116887[_0x32907f('0xaf8')]('-')[0x1]),_0xa98830!=='*'&&(_0x6c77e6[_0x32907f('0xecd')]=_0xa98830[_0x32907f('0xaf8')]('-')[0x0],_0x6c77e6[_0x32907f('0x1883')]=_0xa98830['split']('-')[0x1]),_0x16da19!=='*'&&(_0x6c77e6[_0x32907f('0xad3')]=_0x16da19['split']('-')[0x0],_0x6c77e6[_0x32907f('0x1155')]=_0x16da19[_0x32907f('0xaf8')]('-')[0x1]);}else _0x6c77e6[_0x32907f('0x19fd')]=_0x32907f('0x27e5');}_0x476e7d[_0x32907f('0x1ab3')]['id']&&!_0x6c77e6['interval'][_0x32907f('0x1cf1')]&&(_0x6c77e6[_0x32907f('0x507')][_0x32907f('0x6b4')]=_0x476e7d['params']['id']);_0x6c77e6['interval'][_0x32907f('0x6b4')]&&_0x6c77e6[_0x32907f('0x507')][_0x32907f('0x1cf1')]&&(_0x6c77e6[_0x32907f('0x19fd')]=_0x32907f('0x257d'));_0x6c77e6[_0x32907f('0x119a')]=_0x48f3e0,_0x6c77e6[_0x32907f('0x26c6')]=_0x54b212,_0x6c77e6['closeDialog']=_0x50829e;_0x6c77e6[_0x32907f('0x507')][_0x32907f('0x1cf1')]&&(_0x3f59dc[_0x32907f('0x4ee')](_0x32907f('0xf45'))?_0x1b38e8[_0x32907f('0x507')]['get']({'fields':_0x32907f('0x1af5'),'IntervalId':'null','nolimit':!![]})[_0x32907f('0x1549')][_0x32907f('0x11bf')](function(_0x2b6a2d){_0x6c77e6['intervals']=_0x2b6a2d['rows']||[];})[_0x32907f('0x151d')](function(_0xa9b044){const _0x4e0579=_0x32907f;_0x585a52[_0x4e0579('0x255')]({'title':_0xa9b044['status']?_0x4e0579('0x574')+_0xa9b044[_0x4e0579('0xff9')]+_0x4e0579('0xb0b')+_0xa9b044[_0x4e0579('0x212f')]:'SYSTEM:GET_INTERVALS','msg':_0xa9b044[_0x4e0579('0x4e8')]?JSON[_0x4e0579('0x3e')](_0xa9b044[_0x4e0579('0x4e8')]):_0xa9b044['toString']()});}):_0x1b38e8[_0x32907f('0x507')]['get']({'fields':_0x32907f('0x1af5'),'IntervalId':_0x32907f('0xb5f'),'nolimit':!![]})[_0x32907f('0x1549')][_0x32907f('0x11bf')](function(_0x4271a8){const _0x36b11e=_0x32907f;_0x6c77e6[_0x36b11e('0xe82')]=_0x4271a8[_0x36b11e('0x19b2')]||[];})[_0x32907f('0x11bf')](function(){const _0x5d8504=_0x32907f;return _0x1b38e8[_0x5d8504('0x1d63')]['get']({'userProfileId':_0x6c77e6[_0x5d8504('0x32a')][_0x5d8504('0x781')],'sectionId':0x3ec})[_0x5d8504('0x1549')];})['then'](function(_0x4ad403){const _0x474c44=_0x32907f,_0x316a81=_0x4ad403&&_0x4ad403[_0x474c44('0x19b2')]?_0x4ad403[_0x474c44('0x19b2')][0x0]:null;if(!_0x316a81)_0x6c77e6[_0x474c44('0xe82')]=[];else{if(!_0x316a81[_0x474c44('0xf11')])return _0x1b38e8[_0x474c44('0x26d1')][_0x474c44('0xbaa')]({'sectionId':_0x316a81['id']})['$promise']['then'](function(_0x2438df){const _0x976280=_0x474c44,_0xd385e6=_0x2438df&&_0x2438df['rows']?_0x2438df[_0x976280('0x19b2')]:[],_0x180c16=[];let _0x364ab6=null;_0x6c77e6['interval']&&(_0x364ab6=_0x36f548()[_0x976280('0x1ad4')](_0x6c77e6[_0x976280('0xe82')],{'name':_0x6c77e6[_0x976280('0x507')][_0x976280('0x6b4')]})),_0x364ab6&&!_0x36f548()['some'](_0xd385e6,[_0x976280('0x15a5'),_0x364ab6['id']])&&_0x6c77e6[_0x976280('0xe82')]['forEach'](function(_0x54bba8){const _0x46511c=_0x976280;_0x54bba8['id']===_0x364ab6['id']&&(_0x54bba8[_0x46511c('0x254a')]=![],_0x180c16[_0x46511c('0x105d')](_0x54bba8));}),_0x6c77e6[_0x976280('0xe82')]=_0x180c16;});}})[_0x32907f('0x151d')](function(_0xbb5533){const _0x136d3b=_0x32907f;_0x585a52['error']({'title':_0xbb5533['status']?'API:'+_0xbb5533[_0x136d3b('0xff9')]+_0x136d3b('0xb0b')+_0xbb5533[_0x136d3b('0x212f')]:_0x136d3b('0x611'),'msg':_0xbb5533[_0x136d3b('0x4e8')]?JSON[_0x136d3b('0x3e')](_0xbb5533[_0x136d3b('0x4e8')]):_0xbb5533[_0x136d3b('0xaab')]()});}));function _0x40ce30(){const _0x5d8713=_0x32907f;switch(_0x6c77e6[_0x5d8713('0x19fd')]){case'always':case'list':return _0x5d8713('0x1830');case _0x5d8713('0xa8d'):{const _0x2f2ff0=[];if(_0x6c77e6[_0x5d8713('0x269b')]!=='*'&&_0x6c77e6[_0x5d8713('0x269b')]&&_0x6c77e6[_0x5d8713('0x19e5')]){const _0x3f3e55=(_0x6c77e6['timeRangeFrom']['getHours']()<0xa?'0':'')+_0x6c77e6['timeRangeFrom']['getHours']()+':'+((_0x6c77e6[_0x5d8713('0x269b')][_0x5d8713('0xdcc')]()<0xa?'0':'')+_0x6c77e6[_0x5d8713('0x269b')]['getMinutes']()),_0x199bd9=(_0x6c77e6[_0x5d8713('0x19e5')]['getHours']()<0xa?'0':'')+_0x6c77e6[_0x5d8713('0x19e5')]['getHours']()+':'+((_0x6c77e6[_0x5d8713('0x19e5')][_0x5d8713('0xdcc')]()<0xa?'0':'')+_0x6c77e6['timeRangeTo'][_0x5d8713('0xdcc')]());_0x2f2ff0[_0x5d8713('0x105d')](_0x3f3e55+'-'+_0x199bd9);}else _0x2f2ff0[_0x5d8713('0x105d')]('*');return _0x6c77e6['dayOfWeekFrom']?_0x6c77e6['dayOfWeekTo']?_0x2f2ff0[_0x5d8713('0x105d')](_0x6c77e6[_0x5d8713('0x126e')]+'-'+_0x6c77e6[_0x5d8713('0x261')]):_0x2f2ff0[_0x5d8713('0x105d')](_0x6c77e6['dayOfWeekFrom']):_0x2f2ff0[_0x5d8713('0x105d')]('*'),_0x6c77e6['monthDayFrom']?_0x6c77e6['monthDayTo']?_0x2f2ff0[_0x5d8713('0x105d')](_0x6c77e6[_0x5d8713('0xecd')]+'-'+_0x6c77e6['monthDayTo']):_0x2f2ff0['push'](_0x6c77e6[_0x5d8713('0xecd')]):_0x2f2ff0[_0x5d8713('0x105d')]('*'),_0x6c77e6[_0x5d8713('0xad3')]?_0x6c77e6['monthTo']?_0x2f2ff0[_0x5d8713('0x105d')](_0x6c77e6[_0x5d8713('0xad3')]+'-'+_0x6c77e6[_0x5d8713('0x1155')]):_0x2f2ff0['push'](_0x6c77e6[_0x5d8713('0xad3')]):_0x2f2ff0[_0x5d8713('0x105d')]('*'),_0x2f2ff0[_0x5d8713('0xa04')]();}}}function _0x48f3e0(){const _0x13dec3=_0x32907f;_0x6c77e6['errors']=[],_0x6c77e6[_0x13dec3('0x507')][_0x13dec3('0x507')]=_0x40ce30(),_0x1b38e8[_0x13dec3('0x507')]['save'](_0x6c77e6[_0x13dec3('0x507')])[_0x13dec3('0x1549')][_0x13dec3('0x11bf')](function(_0x219df0){const _0x1e0d25=_0x13dec3;_0x6c77e6[_0x1e0d25('0xe82')]['push'](_0x219df0),_0x585a52[_0x1e0d25('0x2693')]({'title':_0x1e0d25('0x747'),'msg':_0x6c77e6[_0x1e0d25('0x507')]['name']?_0x6c77e6[_0x1e0d25('0x507')]['name']+_0x1e0d25('0x7fb'):''}),_0x50829e();})[_0x13dec3('0x151d')](function(_0x771d70){const _0x5da3f3=_0x13dec3;console[_0x5da3f3('0x255')](_0x771d70),_0x6c77e6['errors']=_0x771d70[_0x5da3f3('0x4e8')][_0x5da3f3('0x120f')]||[{'message':_0x771d70[_0x5da3f3('0xaab')](),'type':_0x5da3f3('0x200b')}];});}function _0x54b212(){const _0x5f3fb8=_0x32907f;_0x6c77e6[_0x5f3fb8('0x120f')]=[],_0x6c77e6[_0x5f3fb8('0x507')][_0x5f3fb8('0x507')]=_0x40ce30(),_0x6c77e6[_0x5f3fb8('0x507')][_0x5f3fb8('0x1cf1')]?(_0x6c77e6[_0x5f3fb8('0x19fd')]!=='list'&&(_0x6c77e6[_0x5f3fb8('0x507')]['IntervalId']=null),_0x50829e(_0x6c77e6[_0x5f3fb8('0x507')])):_0x1b38e8[_0x5f3fb8('0x507')][_0x5f3fb8('0x5ab')]({'id':_0x6c77e6[_0x5f3fb8('0x507')]['id']},_0x6c77e6['interval'])[_0x5f3fb8('0x1549')][_0x5f3fb8('0x11bf')](function(_0x423c11){const _0x5e5ae3=_0x5f3fb8,_0x58b35f=_0x36f548()[_0x5e5ae3('0x1ad4')](_0x6c77e6[_0x5e5ae3('0xe82')],{'id':_0x423c11['id']});_0x58b35f&&_0x36f548()[_0x5e5ae3('0x47b')](_0x58b35f,_0x423c11),_0x585a52[_0x5e5ae3('0x2693')]({'title':_0x5e5ae3('0x1177'),'msg':'Interval\x20has\x20been\x20saved!'}),_0x50829e();})[_0x5f3fb8('0x151d')](function(_0x11cbb5){const _0x4496f8=_0x5f3fb8;console[_0x4496f8('0x255')](_0x11cbb5),_0x6c77e6[_0x4496f8('0x120f')]=_0x11cbb5['data'][_0x4496f8('0x120f')]||[{'message':_0x11cbb5[_0x4496f8('0xaab')](),'type':_0x4496f8('0x3dd')}];});}function _0x50829e(_0x4b5d46){_0x159d5c['hide'](_0x4b5d46);}}const _0x1ffc54=_0x2a9995;_0x154658['$inject']=[_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0x142d'),_0x21d0f5('0x1ed9'),_0x21d0f5('0x2295'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),_0x21d0f5('0xb25')];function _0x154658(_0x274d1e,_0x51ad98,_0x3c907a,_0x2882d8,_0x20d57d,_0x2d83a0,_0x8e719f,_0x313a56){const _0x5243a8=_0x21d0f5,_0x17bae1=this;_0x17bae1[_0x5243a8('0x32a')]=_0x8e719f['getCurrentUser'](),_0x17bae1['errors']=[],_0x17bae1[_0x5243a8('0x134b')]='WHATSAPP.EDIT_'+(_0x2882d8[_0x5243a8('0x27c0')]||_0x2882d8['app'])[_0x5243a8('0xa6f')](),_0x17bae1[_0x5243a8('0x2b8')]=angular[_0x5243a8('0x6fb')](_0x2882d8),_0x17bae1[_0x5243a8('0xb25')]=_0x313a56,_0x17bae1[_0x5243a8('0x2c9')]={};if(_0x17bae1[_0x5243a8('0x2b8')][_0x5243a8('0x13fc')])switch(_0x17bae1['noop'][_0x5243a8('0x27c0')]?_0x17bae1[_0x5243a8('0x2b8')]['appType'][_0x5243a8('0x20d5')]():_0x17bae1['noop']['app'][_0x5243a8('0x20d5')]()){case _0x5243a8('0xa8d'):break;case'dialogflow':{const _0x2ab647=_0x17bae1['noop'][_0x5243a8('0x13fc')]['split'](',');_0x17bae1['noop'][_0x5243a8('0xa0c')]=_0x2ab647[0x0],_0x17bae1[_0x5243a8('0x2b8')][_0x5243a8('0xeff')]=_0x2ab647[0x1],_0x17bae1[_0x5243a8('0x2b8')]['welcomemessage']=_0x2ab647['slice'](0x2,_0x2ab647[_0x5243a8('0x1e22')])['join'](',');}break;case _0x5243a8('0x21a8'):{const _0x480637=_0x17bae1['noop'][_0x5243a8('0x13fc')]['split'](',');_0x17bae1['noop'][_0x5243a8('0x20e')]=_0x480637[0x0],_0x17bae1[_0x5243a8('0x2b8')][_0x5243a8('0x1f91')]=_0x480637[0x1],_0x17bae1[_0x5243a8('0x2b8')][_0x5243a8('0x1c6c')]=_0x480637[0x2],_0x17bae1[_0x5243a8('0x2b8')][_0x5243a8('0xeff')]=_0x480637[0x3],_0x17bae1['noop'][_0x5243a8('0x1cbc')]=_0x480637['slice'](0x4,_0x480637['length'])[_0x5243a8('0xa04')](',');}break;case'amazonlex':{const _0xed09bc=_0x17bae1[_0x5243a8('0x2b8')][_0x5243a8('0x13fc')][_0x5243a8('0xaf8')](',');_0x17bae1[_0x5243a8('0x2b8')][_0x5243a8('0x1a82')]=_0xed09bc[0x0],_0x17bae1[_0x5243a8('0x2b8')][_0x5243a8('0x1422')]=_0xed09bc[0x1],_0x17bae1[_0x5243a8('0x2b8')][_0x5243a8('0x165a')]=_0xed09bc[0x2],_0x17bae1['noop'][_0x5243a8('0x1e8f')]=_0xed09bc[0x3],_0x17bae1[_0x5243a8('0x2b8')][_0x5243a8('0x1cbc')]=_0xed09bc[_0x5243a8('0x1b77')](0x4,_0xed09bc['length'])[_0x5243a8('0xa04')](',');}break;case _0x5243a8('0x187b'):{const _0x35ac62=_0x17bae1[_0x5243a8('0x2b8')][_0x5243a8('0x13fc')][_0x5243a8('0xaf8')](',');_0x17bae1[_0x5243a8('0x2b8')][_0x5243a8('0x663')]=isNaN(_0x35ac62[0x0])?_0x35ac62[0x0]:parseInt(_0x35ac62[0x0],0xa),_0x17bae1[_0x5243a8('0x2b8')][_0x5243a8('0x25ed')]=_0x35ac62[_0x5243a8('0x1b77')](0x1,_0x35ac62[_0x5243a8('0x1e22')])[_0x5243a8('0xa04')](',');}break;case _0x5243a8('0x1b86'):_0x17bae1['noop']['text']=_0x17bae1[_0x5243a8('0x2b8')][_0x5243a8('0x13fc')];break;case _0x5243a8('0xe50'):_0x17bae1[_0x5243a8('0x2b8')][_0x5243a8('0x1909')]=_0x17bae1[_0x5243a8('0x2b8')]['appdata']['split']('=')[0x0],_0x17bae1['noop'][_0x5243a8('0x10cc')]=_0x17bae1[_0x5243a8('0x2b8')][_0x5243a8('0x13fc')][_0x5243a8('0xaf8')]('=')[0x1];break;case _0x5243a8('0x1efd'):_0x17bae1['noop'][_0x5243a8('0xef0')]=_0x17bae1['noop'][_0x5243a8('0x13fc')];break;default:{const _0x2cb40d=_0x17bae1[_0x5243a8('0x2b8')]['appdata'][_0x5243a8('0xaf8')](',');_0x17bae1[_0x5243a8('0x2b8')]['value']=_0x36f548()['isEmpty'](_0x2cb40d[0x0])?_0x2cb40d[0x0]:isNaN(_0x2cb40d[0x0])?_0x2cb40d[0x0]:parseInt(_0x2cb40d[0x0],0xa);}break;}else{}_0x17bae1[_0x5243a8('0x2b8')]['type']&&_0x17bae1[_0x5243a8('0x2b8')][_0x5243a8('0x19fd')][_0x5243a8('0x20d5')]()==='outbound'&&_0x17bae1[_0x5243a8('0x2b8')][_0x5243a8('0x27c0')][_0x5243a8('0x20d5')]()===_0x5243a8('0x1a64')&&(_0x17bae1[_0x5243a8('0x2b8')][_0x5243a8('0x2137')]=_0x17bae1[_0x5243a8('0x2b8')][_0x5243a8('0x1546')]?_0x17bae1[_0x5243a8('0x2b8')][_0x5243a8('0x1546')][_0x5243a8('0xaf8')]('$')[0x0]:undefined,_0x17bae1[_0x5243a8('0x2b8')][_0x5243a8('0x7d0')]=_0x17bae1[_0x5243a8('0x2b8')][_0x5243a8('0xc38')]?_0x5243a8('0x83a')+_0x17bae1[_0x5243a8('0x2b8')][_0x5243a8('0xc38')]:undefined);_0x17bae1[_0x5243a8('0x1c36')]=_0x2056a6,_0x17bae1[_0x5243a8('0xc4e')]=_0x184e90;function _0x2056a6(){const _0x495582=_0x5243a8;_0x17bae1[_0x495582('0x120f')]=[];const _0x2612b3=[];_0x17bae1[_0x495582('0x2b8')]['type']&&_0x17bae1['noop'][_0x495582('0x19fd')][_0x495582('0x20d5')]()==='outbound'&&_0x17bae1[_0x495582('0x2b8')]['appType']===_0x495582('0x1bf6')&&(_0x17bae1['noop'][_0x495582('0x1546')]=_0x20d57d[_0x495582('0x388')]?(_0x17bae1[_0x495582('0x2b8')]['prefix']||'')+_0x495582('0x2100')+_0x20d57d[_0x495582('0x388')]+'}':(_0x17bae1['noop'][_0x495582('0x2137')]||'')+_0x495582('0x1f76'),_0x20d57d[_0x495582('0x897')]!==_0x495582('0x3e6')?_0x17bae1[_0x495582('0x2b8')][_0x495582('0x249a')]['indexOf']('U(xcally-mixmonitor-context)')<0x0&&(_0x17bae1[_0x495582('0x2b8')][_0x495582('0x249a')]+='U(xcally-mixmonitor-context)'):_0x17bae1[_0x495582('0x2b8')][_0x495582('0x249a')]=_0x17bae1['noop'][_0x495582('0x249a')][_0x495582('0x814')](_0x495582('0x22c9'),''));if(_0x17bae1['noop'][_0x495582('0x27c0')]&&_0x17bae1[_0x495582('0x2b8')][_0x495582('0x27c0')]===_0x495582('0xa8d')){}else switch((_0x17bae1[_0x495582('0x2b8')][_0x495582('0x18f5')]||_0x17bae1[_0x495582('0x2b8')][_0x495582('0x27c0')])[_0x495582('0x20d5')]()){case'set':_0x17bae1[_0x495582('0x2b8')][_0x495582('0x13fc')]=_0x17bae1[_0x495582('0x2b8')][_0x495582('0x1909')]+'='+_0x17bae1[_0x495582('0x2b8')]['value'];break;case _0x495582('0xa8d'):break;default:_0x2612b3[0x0]=_0x17bae1[_0x495582('0x2b8')][_0x495582('0x10cc')],_0x17bae1[_0x495582('0x2b8')][_0x495582('0x13fc')]=_0x2612b3['join'](',');}_0x184e90(_0x17bae1['noop']);}function _0x184e90(_0x5965fb){const _0x5e56b4=_0x5243a8;_0x274d1e[_0x5e56b4('0x237e')](_0x5965fb);}}const _0x45cd91=_0x154658;_0x3b0331['$inject']=['$mdDialog','$q','toasty','whatsappAccountApp',_0x21d0f5('0x2295'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),_0x21d0f5('0xb25')];function _0x3b0331(_0x5a9bc2,_0x569a55,_0x3913e3,_0x4082f0,_0x4a7d90,_0x1cef55,_0x390827,_0xa4afa){const _0x487052=_0x21d0f5,_0x3e8be8=this;_0x3e8be8[_0x487052('0x32a')]=_0x390827[_0x487052('0x2428')](),_0x3e8be8[_0x487052('0x120f')]=[],_0x3e8be8[_0x487052('0x134b')]=_0x487052('0x257e')+(_0x4082f0['appType']||_0x4082f0[_0x487052('0x18f5')])['toUpperCase'](),_0x3e8be8[_0x487052('0x150b')]=angular[_0x487052('0x6fb')](_0x4082f0),_0x3e8be8['crudPermissions']=_0xa4afa,_0x3e8be8[_0x487052('0x2c9')]={};if(_0x3e8be8[_0x487052('0x150b')][_0x487052('0x13fc')])switch(_0x3e8be8['queue']['appType']?_0x3e8be8['queue']['appType'][_0x487052('0x20d5')]():_0x3e8be8[_0x487052('0x150b')]['app']['toLowerCase']()){case _0x487052('0xa8d'):break;case _0x487052('0x185e'):{const _0x5b2fa7=_0x3e8be8[_0x487052('0x150b')][_0x487052('0x13fc')][_0x487052('0xaf8')](',');_0x3e8be8[_0x487052('0x150b')][_0x487052('0xa0c')]=_0x5b2fa7[0x0],_0x3e8be8[_0x487052('0x150b')]['language']=_0x5b2fa7[0x1],_0x3e8be8[_0x487052('0x150b')][_0x487052('0x1cbc')]=_0x5b2fa7[_0x487052('0x1b77')](0x2,_0x5b2fa7[_0x487052('0x1e22')])[_0x487052('0xa04')](',');}break;case _0x487052('0x21a8'):{const _0xe07118=_0x3e8be8[_0x487052('0x150b')][_0x487052('0x13fc')]['split'](',');_0x3e8be8[_0x487052('0x150b')][_0x487052('0x20e')]=_0xe07118[0x0],_0x3e8be8[_0x487052('0x150b')]['clientEmail']=_0xe07118[0x1],_0x3e8be8[_0x487052('0x150b')][_0x487052('0x1c6c')]=_0xe07118[0x2],_0x3e8be8[_0x487052('0x150b')]['language']=_0xe07118[0x3],_0x3e8be8['queue'][_0x487052('0x1cbc')]=_0xe07118[_0x487052('0x1b77')](0x4,_0xe07118[_0x487052('0x1e22')])[_0x487052('0xa04')](',');}break;case _0x487052('0x102c'):{const _0xe871b6=_0x3e8be8[_0x487052('0x150b')][_0x487052('0x13fc')][_0x487052('0xaf8')](',');_0x3e8be8[_0x487052('0x150b')]['accesskeyid']=_0xe871b6[0x0],_0x3e8be8['queue'][_0x487052('0x1422')]=_0xe871b6[0x1],_0x3e8be8[_0x487052('0x150b')][_0x487052('0x165a')]=_0xe871b6[0x2],_0x3e8be8[_0x487052('0x150b')][_0x487052('0x1e8f')]=_0xe871b6[0x3],_0x3e8be8[_0x487052('0x150b')][_0x487052('0x1cbc')]=_0xe871b6['slice'](0x4,_0xe871b6[_0x487052('0x1e22')])[_0x487052('0xa04')](',');}break;case'autoreply':{const _0xdf861f=_0x3e8be8[_0x487052('0x150b')][_0x487052('0x13fc')][_0x487052('0xaf8')](',');_0x3e8be8[_0x487052('0x150b')][_0x487052('0x663')]=isNaN(_0xdf861f[0x0])?_0xdf861f[0x0]:parseInt(_0xdf861f[0x0],0xa),_0x3e8be8['queue'][_0x487052('0x25ed')]=_0xdf861f['slice'](0x1,_0xdf861f[_0x487052('0x1e22')])['join'](',');}break;case _0x487052('0x1b86'):_0x3e8be8[_0x487052('0x150b')]['text']=_0x3e8be8[_0x487052('0x150b')][_0x487052('0x13fc')];break;case _0x487052('0xe50'):_0x3e8be8['queue'][_0x487052('0x1909')]=_0x3e8be8[_0x487052('0x150b')][_0x487052('0x13fc')][_0x487052('0xaf8')]('=')[0x0],_0x3e8be8[_0x487052('0x150b')][_0x487052('0x10cc')]=_0x3e8be8[_0x487052('0x150b')][_0x487052('0x13fc')]['split']('=')[0x1];break;case'agi':_0x3e8be8[_0x487052('0x150b')][_0x487052('0xef0')]=_0x3e8be8[_0x487052('0x150b')]['appdata'];break;default:{const _0x323856=_0x3e8be8['queue'][_0x487052('0x13fc')][_0x487052('0xaf8')](',');_0x3e8be8[_0x487052('0x150b')][_0x487052('0x150b')]=_0x36f548()['isEmpty'](_0x323856[0x0])?_0x323856[0x0]:isNaN(_0x323856[0x0])?_0x323856[0x0]:parseInt(_0x323856[0x0],0xa),_0x3e8be8['queue'][_0x487052('0xfbe')]=_0x36f548()[_0x487052('0x1fc5')](_0x323856[0x1])?_0x323856[0x1]:isNaN(_0x323856[0x1])?_0x323856[0x1]:parseInt(_0x323856[0x1],0xa);}break;}else _0x3e8be8[_0x487052('0x150b')][_0x487052('0x150b')]=0x12c,_0x3e8be8[_0x487052('0x150b')][_0x487052('0xfbe')]=0x12c;_0x3e8be8[_0x487052('0x150b')][_0x487052('0x19fd')]&&_0x3e8be8[_0x487052('0x150b')][_0x487052('0x19fd')][_0x487052('0x20d5')]()===_0x487052('0x25b6')&&_0x3e8be8[_0x487052('0x150b')][_0x487052('0x27c0')]['toLowerCase']()===_0x487052('0x1a64')&&(_0x3e8be8['queue'][_0x487052('0x2137')]=_0x3e8be8[_0x487052('0x150b')][_0x487052('0x1546')]?_0x3e8be8[_0x487052('0x150b')]['phone'][_0x487052('0xaf8')]('$')[0x0]:undefined,_0x3e8be8[_0x487052('0x150b')]['callerId']=_0x3e8be8[_0x487052('0x150b')][_0x487052('0xc38')]?'CALLERID(all)='+_0x3e8be8['queue'][_0x487052('0xc38')]:undefined);_0x3e8be8[_0x487052('0x1c36')]=_0x497b23,_0x3e8be8['closeDialog']=_0x4a5865,_0x390827[_0x487052('0x4ee')]('admin')?_0x1cef55[_0x487052('0x1d53')]['get']({'fields':_0x487052('0xde'),'sort':'name','nolimit':'true'})[_0x487052('0x1549')][_0x487052('0x11bf')](function(_0x35d75c){const _0x438a08=_0x487052;_0x3e8be8[_0x438a08('0x1de3')]=_0x35d75c[_0x438a08('0x19b2')]||[];})[_0x487052('0x151d')](function(_0x123606){const _0x16dcd3=_0x487052;_0x3913e3[_0x16dcd3('0x255')]({'title':_0x123606[_0x16dcd3('0xff9')]?_0x16dcd3('0x574')+_0x123606[_0x16dcd3('0xff9')]+_0x16dcd3('0xb0b')+_0x123606[_0x16dcd3('0x212f')]:_0x16dcd3('0x23e0'),'msg':_0x123606[_0x16dcd3('0x4e8')]?JSON[_0x16dcd3('0x3e')](_0x123606[_0x16dcd3('0x4e8')]):_0x123606['toString']()});}):_0x1cef55[_0x487052('0x1d53')][_0x487052('0xbaa')]({'fields':'id,name,type','sort':_0x487052('0x1909'),'nolimit':_0x487052('0x204c')})['$promise'][_0x487052('0x11bf')](function(_0x409f13){const _0x2e6c59=_0x487052;_0x3e8be8[_0x2e6c59('0x1de3')]=_0x409f13[_0x2e6c59('0x19b2')]||[];})[_0x487052('0x11bf')](function(){const _0x320fa0=_0x487052;return _0x1cef55[_0x320fa0('0x1d63')][_0x320fa0('0xbaa')]({'userProfileId':_0x3e8be8[_0x320fa0('0x32a')][_0x320fa0('0x781')],'sectionId':0x836})[_0x320fa0('0x1549')];})['then'](function(_0x498e17){const _0x35259f=_0x487052,_0x3a6dfe=_0x498e17&&_0x498e17[_0x35259f('0x19b2')]?_0x498e17[_0x35259f('0x19b2')][0x0]:null;if(!_0x3a6dfe){const _0x2e946c=[];let _0x4e2a56=null;_0x3e8be8[_0x35259f('0x150b')]&&(_0x4e2a56=_0x36f548()[_0x35259f('0x1ad4')](_0x3e8be8['queues'],{'name':_0x3e8be8[_0x35259f('0x150b')][_0x35259f('0x150b')]}));for(let _0x5bbe05=0x0;_0x5bbe05<_0x3e8be8[_0x35259f('0x1de3')][_0x35259f('0x1e22')];_0x5bbe05++){_0x4e2a56&&_0x3e8be8[_0x35259f('0x1de3')][_0x5bbe05]['id']===_0x4e2a56['id']&&(_0x3e8be8['queues'][_0x5bbe05][_0x35259f('0x254a')]=![],_0x2e946c[_0x35259f('0x105d')](_0x3e8be8[_0x35259f('0x1de3')][_0x5bbe05]));}_0x3e8be8[_0x35259f('0x1de3')]=_0x2e946c;}else{if(!_0x3a6dfe[_0x35259f('0xf11')])return _0x1cef55['userProfileResource'][_0x35259f('0xbaa')]({'sectionId':_0x3a6dfe['id']})[_0x35259f('0x1549')][_0x35259f('0x11bf')](function(_0x236770){const _0x54b714=_0x35259f,_0x1720e6=_0x36f548()[_0x54b714('0x2171')](_0x236770['rows'],function(_0x132949){const _0x7e968e=_0x54b714;return _0x36f548()[_0x7e968e('0x1ad4')](_0x3e8be8['queues'],{'id':_0x132949[_0x7e968e('0x15a5')]});});let _0x430d0c=null;_0x3e8be8['queue']&&(_0x430d0c=_0x36f548()['find'](_0x3e8be8[_0x54b714('0x1de3')],{'name':_0x3e8be8['queue'][_0x54b714('0x150b')]}));if(_0x430d0c&&!_0x36f548()[_0x54b714('0x1cb3')](_0x1720e6,['id',_0x430d0c['id']])){const _0x420cfb=_0x36f548()['find'](_0x3e8be8['queues'],{'id':_0x430d0c['id']});_0x420cfb['canSelect']=![],_0x1720e6[_0x54b714('0x105d')](_0x420cfb);}_0x3e8be8[_0x54b714('0x1de3')]=_0x1720e6;});}})[_0x487052('0x151d')](function(_0x5c11b5){const _0x4bb3c8=_0x487052;_0x3913e3[_0x4bb3c8('0x255')]({'title':_0x5c11b5[_0x4bb3c8('0xff9')]?_0x4bb3c8('0x574')+_0x5c11b5[_0x4bb3c8('0xff9')]+'\x20-\x20'+_0x5c11b5['statusText']:'SYSTEM:GETqueues','msg':_0x5c11b5['data']?JSON['stringify'](_0x5c11b5['data']):_0x5c11b5[_0x4bb3c8('0xaab')]()});});function _0x497b23(){const _0x58ba80=_0x487052;_0x3e8be8[_0x58ba80('0x120f')]=[];const _0x220c69=[];_0x3e8be8['queue'][_0x58ba80('0x19fd')]&&_0x3e8be8['queue'][_0x58ba80('0x19fd')][_0x58ba80('0x20d5')]()===_0x58ba80('0x25b6')&&_0x3e8be8[_0x58ba80('0x150b')][_0x58ba80('0x27c0')]==='outboundDial'&&(_0x3e8be8[_0x58ba80('0x150b')]['phone']=_0x4a7d90[_0x58ba80('0x388')]?(_0x3e8be8[_0x58ba80('0x150b')][_0x58ba80('0x2137')]||'')+'${EXTEN:'+_0x4a7d90[_0x58ba80('0x388')]+'}':(_0x3e8be8[_0x58ba80('0x150b')]['prefix']||'')+_0x58ba80('0x1f76'),_0x4a7d90['recordingFormat']!==_0x58ba80('0x3e6')?_0x3e8be8[_0x58ba80('0x150b')][_0x58ba80('0x249a')][_0x58ba80('0x203c')]('U(xcally-mixmonitor-context)')<0x0&&(_0x3e8be8[_0x58ba80('0x150b')][_0x58ba80('0x249a')]+=_0x58ba80('0x22c9')):_0x3e8be8['queue'][_0x58ba80('0x249a')]=_0x3e8be8[_0x58ba80('0x150b')][_0x58ba80('0x249a')]['replace']('U(xcally-mixmonitor-context)',''));const _0xb80682=_0x36f548()['find'](_0x3e8be8[_0x58ba80('0x1de3')],{'name':_0x3e8be8[_0x58ba80('0x150b')][_0x58ba80('0x150b')]});_0xb80682&&(_0x3e8be8[_0x58ba80('0x150b')][_0x36f548()[_0x58ba80('0x22c2')](_0x58ba80('0xe7c'))+_0x58ba80('0x128')]=_0xb80682['id']);if(_0x3e8be8['queue']['appType']&&_0x3e8be8[_0x58ba80('0x150b')][_0x58ba80('0x27c0')]===_0x58ba80('0xa8d')){}else switch((_0x3e8be8[_0x58ba80('0x150b')][_0x58ba80('0x18f5')]||_0x3e8be8[_0x58ba80('0x150b')][_0x58ba80('0x27c0')])[_0x58ba80('0x20d5')]()){case _0x58ba80('0xe50'):_0x3e8be8[_0x58ba80('0x150b')][_0x58ba80('0x13fc')]=_0x3e8be8['queue']['name']+'='+_0x3e8be8[_0x58ba80('0x150b')][_0x58ba80('0x10cc')];break;case'custom':break;default:_0x220c69[0x0]=_0x3e8be8['queue'][_0x58ba80('0x150b')],_0x220c69[0x1]=_0x3e8be8[_0x58ba80('0x150b')][_0x58ba80('0xfbe')],_0x3e8be8[_0x58ba80('0x150b')][_0x58ba80('0x13fc')]=_0x220c69['join'](',');}_0x4a5865(_0x3e8be8[_0x58ba80('0x150b')]);}function _0x4a5865(_0x63bca8){const _0x276765=_0x487052;_0x5a9bc2[_0x276765('0x237e')](_0x63bca8);}}const _0x50e611=_0x3b0331;_0x3e5832['$inject']=[_0x21d0f5('0x1ca2'),'$q','toasty',_0x21d0f5('0x1ed9'),'whatsappAccount',_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),'crudPermissions'];function _0x3e5832(_0x340953,_0x581ba6,_0x4fd660,_0x3189c7,_0x563dfc,_0x4bd649,_0x1014f7,_0x3206fa){const _0x338041=_0x21d0f5,_0x4d2fe3=this;_0x4d2fe3[_0x338041('0x32a')]=_0x1014f7[_0x338041('0x2428')](),_0x4d2fe3[_0x338041('0x120f')]=[],_0x4d2fe3['title']='WHATSAPP.EDIT_'+(_0x3189c7[_0x338041('0x27c0')]||_0x3189c7[_0x338041('0x18f5')])['toUpperCase'](),_0x4d2fe3[_0x338041('0x196d')]=angular[_0x338041('0x6fb')](_0x3189c7),_0x4d2fe3[_0x338041('0xb25')]=_0x3206fa,_0x4d2fe3[_0x338041('0x2c9')]={};if(_0x4d2fe3[_0x338041('0x196d')][_0x338041('0x13fc')])switch(_0x4d2fe3['system'][_0x338041('0x27c0')]?_0x4d2fe3[_0x338041('0x196d')][_0x338041('0x27c0')][_0x338041('0x20d5')]():_0x4d2fe3[_0x338041('0x196d')]['app'][_0x338041('0x20d5')]()){case _0x338041('0xa8d'):break;case'dialogflow':{const _0x29d2ee=_0x4d2fe3[_0x338041('0x196d')][_0x338041('0x13fc')][_0x338041('0xaf8')](',');_0x4d2fe3['system'][_0x338041('0xa0c')]=_0x29d2ee[0x0],_0x4d2fe3[_0x338041('0x196d')]['language']=_0x29d2ee[0x1],_0x4d2fe3[_0x338041('0x196d')][_0x338041('0x1cbc')]=_0x29d2ee[_0x338041('0x1b77')](0x2,_0x29d2ee[_0x338041('0x1e22')])[_0x338041('0xa04')](',');}break;case _0x338041('0x21a8'):{const _0x219840=_0x4d2fe3[_0x338041('0x196d')]['appdata']['split'](',');_0x4d2fe3['system'][_0x338041('0x20e')]=_0x219840[0x0],_0x4d2fe3['system'][_0x338041('0x1f91')]=_0x219840[0x1],_0x4d2fe3['system']['privateKey']=_0x219840[0x2],_0x4d2fe3[_0x338041('0x196d')][_0x338041('0xeff')]=_0x219840[0x3],_0x4d2fe3[_0x338041('0x196d')][_0x338041('0x1cbc')]=_0x219840['slice'](0x4,_0x219840[_0x338041('0x1e22')])[_0x338041('0xa04')](',');}break;case _0x338041('0x102c'):{const _0x1d9d4c=_0x4d2fe3[_0x338041('0x196d')][_0x338041('0x13fc')][_0x338041('0xaf8')](',');_0x4d2fe3['system'][_0x338041('0x1a82')]=_0x1d9d4c[0x0],_0x4d2fe3[_0x338041('0x196d')][_0x338041('0x1422')]=_0x1d9d4c[0x1],_0x4d2fe3[_0x338041('0x196d')][_0x338041('0x165a')]=_0x1d9d4c[0x2],_0x4d2fe3[_0x338041('0x196d')][_0x338041('0x1e8f')]=_0x1d9d4c[0x3],_0x4d2fe3[_0x338041('0x196d')][_0x338041('0x1cbc')]=_0x1d9d4c[_0x338041('0x1b77')](0x4,_0x1d9d4c[_0x338041('0x1e22')])['join'](',');}break;case _0x338041('0x187b'):{const _0x42268f=_0x4d2fe3[_0x338041('0x196d')][_0x338041('0x13fc')][_0x338041('0xaf8')](',');_0x4d2fe3[_0x338041('0x196d')][_0x338041('0x663')]=isNaN(_0x42268f[0x0])?_0x42268f[0x0]:parseInt(_0x42268f[0x0],0xa),_0x4d2fe3['system'][_0x338041('0x25ed')]=_0x42268f['slice'](0x1,_0x42268f[_0x338041('0x1e22')])[_0x338041('0xa04')](',');}break;case'message':_0x4d2fe3[_0x338041('0x196d')][_0x338041('0x25ed')]=_0x4d2fe3[_0x338041('0x196d')][_0x338041('0x13fc')];break;case'set':_0x4d2fe3[_0x338041('0x196d')][_0x338041('0x1909')]=_0x4d2fe3['system'][_0x338041('0x13fc')][_0x338041('0xaf8')]('=')[0x0],_0x4d2fe3[_0x338041('0x196d')][_0x338041('0x10cc')]=_0x4d2fe3['system'][_0x338041('0x13fc')][_0x338041('0xaf8')]('=')[0x1];break;case'agi':_0x4d2fe3[_0x338041('0x196d')][_0x338041('0xef0')]=_0x4d2fe3[_0x338041('0x196d')]['appdata'];break;default:{const _0x282d30=_0x4d2fe3[_0x338041('0x196d')]['appdata'][_0x338041('0xaf8')](',');_0x4d2fe3[_0x338041('0x196d')]['command']=_0x36f548()['isEmpty'](_0x282d30[0x0])?_0x282d30[0x0]:isNaN(_0x282d30[0x0])?_0x282d30[0x0]:parseInt(_0x282d30[0x0],0xa),_0x4d2fe3[_0x338041('0x196d')][_0x338041('0xb0')]=_0x36f548()[_0x338041('0x1fc5')](_0x282d30[0x1])?_0x282d30[0x1]:isNaN(_0x282d30[0x1])?_0x282d30[0x1]:parseInt(_0x282d30[0x1],0xa);}break;}else _0x4d2fe3['system'][_0x338041('0xb0')]='';_0x4d2fe3[_0x338041('0x196d')][_0x338041('0x19fd')]&&_0x4d2fe3[_0x338041('0x196d')][_0x338041('0x19fd')][_0x338041('0x20d5')]()===_0x338041('0x25b6')&&_0x4d2fe3[_0x338041('0x196d')][_0x338041('0x27c0')][_0x338041('0x20d5')]()===_0x338041('0x1a64')&&(_0x4d2fe3[_0x338041('0x196d')]['prefix']=_0x4d2fe3[_0x338041('0x196d')][_0x338041('0x1546')]?_0x4d2fe3[_0x338041('0x196d')][_0x338041('0x1546')]['split']('$')[0x0]:undefined,_0x4d2fe3['system']['callerId']=_0x4d2fe3['system'][_0x338041('0xc38')]?_0x338041('0x83a')+_0x4d2fe3[_0x338041('0x196d')]['callerID']:undefined);_0x4d2fe3[_0x338041('0x1c36')]=_0x5506f9,_0x4d2fe3[_0x338041('0xc4e')]=_0x27cbf6,_0x1014f7[_0x338041('0x4ee')](_0x338041('0xf45'))?_0x4bd649[_0x338041('0xb0')][_0x338041('0xbaa')]({'fields':'id,name','sort':_0x338041('0x1909'),'nolimit':_0x338041('0x204c')})[_0x338041('0x1549')][_0x338041('0x11bf')](function(_0x277921){const _0x44909c=_0x338041;_0x4d2fe3[_0x44909c('0x1700')]=_0x277921[_0x44909c('0x19b2')]||[];})[_0x338041('0x151d')](function(_0x27bacc){const _0xf96512=_0x338041;_0x4fd660[_0xf96512('0x255')]({'title':_0x27bacc[_0xf96512('0xff9')]?_0xf96512('0x574')+_0x27bacc['status']+_0xf96512('0xb0b')+_0x27bacc[_0xf96512('0x212f')]:_0xf96512('0x1130'),'msg':_0x27bacc[_0xf96512('0x4e8')]?JSON[_0xf96512('0x3e')](_0x27bacc[_0xf96512('0x4e8')]):_0x27bacc[_0xf96512('0xaab')]()});}):_0x4bd649[_0x338041('0xb0')][_0x338041('0xbaa')]({'fields':_0x338041('0x721'),'sort':_0x338041('0x1909'),'nolimit':_0x338041('0x204c')})[_0x338041('0x1549')][_0x338041('0x11bf')](function(_0x8cafa0){const _0x3404ce=_0x338041;_0x4d2fe3[_0x3404ce('0x1700')]=_0x8cafa0['rows']||[];})[_0x338041('0x11bf')](function(){const _0x2945f6=_0x338041;return _0x4bd649[_0x2945f6('0x1d63')][_0x2945f6('0xbaa')]({'userProfileId':_0x4d2fe3['currentUser'][_0x2945f6('0x781')],'sectionId':0x3f4})[_0x2945f6('0x1549')];})[_0x338041('0x11bf')](function(_0xd0793f){const _0x1237a8=_0x338041,_0x5e8641=_0xd0793f&&_0xd0793f['rows']?_0xd0793f[_0x1237a8('0x19b2')][0x0]:null;if(!_0x5e8641){const _0x508f5f=[];let _0xd0cae8=null;_0x4d2fe3[_0x1237a8('0x196d')]&&(_0xd0cae8=_0x36f548()[_0x1237a8('0x1ad4')](_0x4d2fe3[_0x1237a8('0x1700')],{'name':_0x4d2fe3[_0x1237a8('0x196d')][_0x1237a8('0xb0')]}));for(let _0xd98c9e=0x0;_0xd98c9e<_0x4d2fe3[_0x1237a8('0x1700')][_0x1237a8('0x1e22')];_0xd98c9e++){_0xd0cae8&&_0x4d2fe3['variables'][_0xd98c9e]['id']===_0xd0cae8['id']&&(_0x4d2fe3[_0x1237a8('0x1700')][_0xd98c9e][_0x1237a8('0x254a')]=![],_0x508f5f[_0x1237a8('0x105d')](_0x4d2fe3[_0x1237a8('0x1700')][_0xd98c9e]));}_0x4d2fe3[_0x1237a8('0x1700')]=_0x508f5f;}else{if(!_0x5e8641[_0x1237a8('0xf11')])return _0x4bd649['userProfileResource'][_0x1237a8('0xbaa')]({'sectionId':_0x5e8641['id']})[_0x1237a8('0x1549')][_0x1237a8('0x11bf')](function(_0x24fcf3){const _0x1ff15f=_0x1237a8,_0x290996=_0x36f548()[_0x1ff15f('0x2171')](_0x24fcf3[_0x1ff15f('0x19b2')],function(_0x1ceeae){const _0x214390=_0x1ff15f;return _0x36f548()[_0x214390('0x1ad4')](_0x4d2fe3[_0x214390('0x1700')],{'id':_0x1ceeae['resourceId']});});let _0x24859c=null;_0x4d2fe3[_0x1ff15f('0x196d')]&&(_0x24859c=_0x36f548()[_0x1ff15f('0x1ad4')](_0x4d2fe3[_0x1ff15f('0x1700')],{'name':_0x4d2fe3[_0x1ff15f('0x196d')][_0x1ff15f('0xb0')]}));if(_0x24859c&&!_0x36f548()[_0x1ff15f('0x1cb3')](_0x290996,['id',_0x24859c['id']])){const _0xf4188c=_0x36f548()[_0x1ff15f('0x1ad4')](_0x4d2fe3[_0x1ff15f('0x1700')],{'id':_0x24859c['id']});_0xf4188c[_0x1ff15f('0x254a')]=![],_0x290996[_0x1ff15f('0x105d')](_0xf4188c);}_0x4d2fe3[_0x1ff15f('0x1700')]=_0x290996;});}})[_0x338041('0x151d')](function(_0x1d87a1){const _0x40622d=_0x338041;_0x4fd660[_0x40622d('0x255')]({'title':_0x1d87a1[_0x40622d('0xff9')]?_0x40622d('0x574')+_0x1d87a1['status']+_0x40622d('0xb0b')+_0x1d87a1['statusText']:'SYSTEM:GETvariables','msg':_0x1d87a1[_0x40622d('0x4e8')]?JSON['stringify'](_0x1d87a1[_0x40622d('0x4e8')]):_0x1d87a1[_0x40622d('0xaab')]()});});function _0x5506f9(){const _0x179fbf=_0x338041;_0x4d2fe3[_0x179fbf('0x120f')]=[];const _0x530441=[];_0x4d2fe3[_0x179fbf('0x196d')][_0x179fbf('0x19fd')]&&_0x4d2fe3['system'][_0x179fbf('0x19fd')]['toLowerCase']()===_0x179fbf('0x25b6')&&_0x4d2fe3[_0x179fbf('0x196d')][_0x179fbf('0x27c0')]===_0x179fbf('0x1bf6')&&(_0x4d2fe3[_0x179fbf('0x196d')][_0x179fbf('0x1546')]=_0x563dfc[_0x179fbf('0x388')]?(_0x4d2fe3[_0x179fbf('0x196d')][_0x179fbf('0x2137')]||'')+_0x179fbf('0x2100')+_0x563dfc[_0x179fbf('0x388')]+'}':(_0x4d2fe3[_0x179fbf('0x196d')][_0x179fbf('0x2137')]||'')+_0x179fbf('0x1f76'),_0x563dfc[_0x179fbf('0x897')]!==_0x179fbf('0x3e6')?_0x4d2fe3[_0x179fbf('0x196d')][_0x179fbf('0x249a')][_0x179fbf('0x203c')](_0x179fbf('0x22c9'))<0x0&&(_0x4d2fe3[_0x179fbf('0x196d')][_0x179fbf('0x249a')]+=_0x179fbf('0x22c9')):_0x4d2fe3[_0x179fbf('0x196d')]['options']=_0x4d2fe3[_0x179fbf('0x196d')][_0x179fbf('0x249a')]['replace'](_0x179fbf('0x22c9'),''));if(_0x4d2fe3['system'][_0x179fbf('0x27c0')]&&_0x4d2fe3[_0x179fbf('0x196d')][_0x179fbf('0x27c0')]==='custom'){}else switch((_0x4d2fe3[_0x179fbf('0x196d')][_0x179fbf('0x18f5')]||_0x4d2fe3['system']['appType'])[_0x179fbf('0x20d5')]()){case _0x179fbf('0xe50'):_0x4d2fe3['system'][_0x179fbf('0x13fc')]=_0x4d2fe3[_0x179fbf('0x196d')][_0x179fbf('0x1909')]+'='+_0x4d2fe3[_0x179fbf('0x196d')][_0x179fbf('0x10cc')];break;case _0x179fbf('0xa8d'):break;default:_0x530441[0x0]=_0x4d2fe3[_0x179fbf('0x196d')][_0x179fbf('0x1b9f')],_0x530441[0x1]=_0x4d2fe3[_0x179fbf('0x196d')][_0x179fbf('0xb0')],_0x4d2fe3[_0x179fbf('0x196d')]['appdata']=_0x530441['join'](',');}_0x27cbf6(_0x4d2fe3['system']);}function _0x27cbf6(_0x22a47b){const _0x3d6e07=_0x338041;_0x340953[_0x3d6e07('0x237e')](_0x22a47b);}}const _0xc4bf64=_0x3e5832;_0x2e7a98[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0x142d'),_0x21d0f5('0x1ed9'),_0x21d0f5('0x2295'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),_0x21d0f5('0xb25')];function _0x2e7a98(_0x499e83,_0x27a48c,_0x3b8282,_0x17868d,_0x4d643c,_0x54896f,_0x590061,_0x4e12e5){const _0x523c49=_0x21d0f5,_0x434843=this;_0x434843['currentUser']=_0x590061[_0x523c49('0x2428')](),_0x434843[_0x523c49('0x120f')]=[],_0x434843[_0x523c49('0x134b')]='WHATSAPP.EDIT_'+(_0x17868d[_0x523c49('0x27c0')]||_0x17868d[_0x523c49('0x18f5')])[_0x523c49('0xa6f')](),_0x434843[_0x523c49('0x1d73')]=angular[_0x523c49('0x6fb')](_0x17868d),_0x434843[_0x523c49('0xb25')]=_0x4e12e5,_0x434843[_0x523c49('0x2c9')]={};if(_0x434843['tag'][_0x523c49('0x13fc')])switch(_0x434843[_0x523c49('0x1d73')][_0x523c49('0x27c0')]?_0x434843[_0x523c49('0x1d73')]['appType'][_0x523c49('0x20d5')]():_0x434843[_0x523c49('0x1d73')][_0x523c49('0x18f5')][_0x523c49('0x20d5')]()){case _0x523c49('0xa8d'):break;case'dialogflow':{const _0x106240=_0x434843[_0x523c49('0x1d73')][_0x523c49('0x13fc')][_0x523c49('0xaf8')](',');_0x434843[_0x523c49('0x1d73')][_0x523c49('0xa0c')]=_0x106240[0x0],_0x434843[_0x523c49('0x1d73')][_0x523c49('0xeff')]=_0x106240[0x1],_0x434843[_0x523c49('0x1d73')][_0x523c49('0x1cbc')]=_0x106240[_0x523c49('0x1b77')](0x2,_0x106240[_0x523c49('0x1e22')])[_0x523c49('0xa04')](',');}break;case'dialogflowv2':{const _0xfd2522=_0x434843[_0x523c49('0x1d73')][_0x523c49('0x13fc')][_0x523c49('0xaf8')](',');_0x434843[_0x523c49('0x1d73')][_0x523c49('0x20e')]=_0xfd2522[0x0],_0x434843[_0x523c49('0x1d73')]['clientEmail']=_0xfd2522[0x1],_0x434843[_0x523c49('0x1d73')][_0x523c49('0x1c6c')]=_0xfd2522[0x2],_0x434843[_0x523c49('0x1d73')][_0x523c49('0xeff')]=_0xfd2522[0x3],_0x434843[_0x523c49('0x1d73')][_0x523c49('0x1cbc')]=_0xfd2522[_0x523c49('0x1b77')](0x4,_0xfd2522[_0x523c49('0x1e22')])[_0x523c49('0xa04')](',');}break;case'amazonlex':{const _0x4b22c1=_0x434843[_0x523c49('0x1d73')][_0x523c49('0x13fc')]['split'](',');_0x434843['tag']['accesskeyid']=_0x4b22c1[0x0],_0x434843[_0x523c49('0x1d73')][_0x523c49('0x1422')]=_0x4b22c1[0x1],_0x434843[_0x523c49('0x1d73')][_0x523c49('0x165a')]=_0x4b22c1[0x2],_0x434843[_0x523c49('0x1d73')]['botname']=_0x4b22c1[0x3],_0x434843[_0x523c49('0x1d73')][_0x523c49('0x1cbc')]=_0x4b22c1[_0x523c49('0x1b77')](0x4,_0x4b22c1[_0x523c49('0x1e22')])[_0x523c49('0xa04')](',');}break;case _0x523c49('0x187b'):{const _0x486006=_0x434843[_0x523c49('0x1d73')]['appdata'][_0x523c49('0xaf8')](',');_0x434843[_0x523c49('0x1d73')][_0x523c49('0x663')]=isNaN(_0x486006[0x0])?_0x486006[0x0]:parseInt(_0x486006[0x0],0xa),_0x434843['tag'][_0x523c49('0x25ed')]=_0x486006[_0x523c49('0x1b77')](0x1,_0x486006['length'])[_0x523c49('0xa04')](',');}break;case'message':_0x434843[_0x523c49('0x1d73')][_0x523c49('0x25ed')]=_0x434843[_0x523c49('0x1d73')]['appdata'];break;case _0x523c49('0xe50'):_0x434843[_0x523c49('0x1d73')][_0x523c49('0x1909')]=_0x434843[_0x523c49('0x1d73')]['appdata']['split']('=')[0x0],_0x434843['tag'][_0x523c49('0x10cc')]=_0x434843[_0x523c49('0x1d73')][_0x523c49('0x13fc')]['split']('=')[0x1];break;case _0x523c49('0x1efd'):_0x434843['tag']['project']=_0x434843[_0x523c49('0x1d73')][_0x523c49('0x13fc')];break;default:{const _0x393f1a=_0x434843[_0x523c49('0x1d73')][_0x523c49('0x13fc')][_0x523c49('0xaf8')](',');_0x434843['tag'][_0x523c49('0x1d73')]=_0x36f548()['isEmpty'](_0x393f1a[0x0])?_0x393f1a[0x0]:isNaN(_0x393f1a[0x0])?_0x393f1a[0x0]:parseInt(_0x393f1a[0x0],0xa);}break;}else{}_0x434843['tag'][_0x523c49('0x19fd')]&&_0x434843[_0x523c49('0x1d73')][_0x523c49('0x19fd')][_0x523c49('0x20d5')]()==='outbound'&&_0x434843[_0x523c49('0x1d73')]['appType'][_0x523c49('0x20d5')]()===_0x523c49('0x1a64')&&(_0x434843[_0x523c49('0x1d73')]['prefix']=_0x434843[_0x523c49('0x1d73')][_0x523c49('0x1546')]?_0x434843['tag']['phone'][_0x523c49('0xaf8')]('$')[0x0]:undefined,_0x434843[_0x523c49('0x1d73')][_0x523c49('0x7d0')]=_0x434843[_0x523c49('0x1d73')][_0x523c49('0xc38')]?_0x523c49('0x83a')+_0x434843[_0x523c49('0x1d73')][_0x523c49('0xc38')]:undefined);_0x434843[_0x523c49('0x1c36')]=_0x2ea3a3,_0x434843['closeDialog']=_0x4200fd,_0x590061[_0x523c49('0x4ee')]('admin')?_0x54896f[_0x523c49('0x1d73')][_0x523c49('0xbaa')]({'fields':_0x523c49('0x721'),'sort':'name','nolimit':_0x523c49('0x204c')})[_0x523c49('0x1549')]['then'](function(_0x524b34){const _0x36b475=_0x523c49;_0x434843[_0x36b475('0x2763')]=_0x524b34['rows']||[];})['catch'](function(_0x558e37){const _0x502257=_0x523c49;_0x3b8282[_0x502257('0x255')]({'title':_0x558e37[_0x502257('0xff9')]?'API:'+_0x558e37[_0x502257('0xff9')]+_0x502257('0xb0b')+_0x558e37[_0x502257('0x212f')]:_0x502257('0x1138'),'msg':_0x558e37['data']?JSON['stringify'](_0x558e37['data']):_0x558e37[_0x502257('0xaab')]()});}):_0x54896f[_0x523c49('0x1d73')][_0x523c49('0xbaa')]({'fields':_0x523c49('0x721'),'sort':_0x523c49('0x1909'),'nolimit':_0x523c49('0x204c')})['$promise']['then'](function(_0x306db2){const _0x41fecc=_0x523c49;_0x434843[_0x41fecc('0x2763')]=_0x306db2[_0x41fecc('0x19b2')]||[];})[_0x523c49('0x11bf')](function(){const _0x56dff5=_0x523c49;return _0x54896f[_0x56dff5('0x1d63')][_0x56dff5('0xbaa')]({'userProfileId':_0x434843[_0x56dff5('0x32a')]['userProfileId'],'sectionId':0x3f0})['$promise'];})[_0x523c49('0x11bf')](function(_0x215bfe){const _0xb22631=_0x523c49,_0x29e8cf=_0x215bfe&&_0x215bfe[_0xb22631('0x19b2')]?_0x215bfe[_0xb22631('0x19b2')][0x0]:null;if(!_0x29e8cf){const _0x3852a2=[];let _0x50a330=null;_0x434843['tag']&&(_0x50a330=_0x36f548()[_0xb22631('0x1ad4')](_0x434843[_0xb22631('0x2763')],{'name':_0x434843[_0xb22631('0x1d73')][_0xb22631('0x1d73')]}));for(let _0x183868=0x0;_0x183868<_0x434843[_0xb22631('0x2763')]['length'];_0x183868++){_0x50a330&&_0x434843[_0xb22631('0x2763')][_0x183868]['id']===_0x50a330['id']&&(_0x434843[_0xb22631('0x2763')][_0x183868][_0xb22631('0x254a')]=![],_0x3852a2[_0xb22631('0x105d')](_0x434843['tags'][_0x183868]));}_0x434843[_0xb22631('0x2763')]=_0x3852a2;}else{if(!_0x29e8cf['autoAssociation'])return _0x54896f[_0xb22631('0x26d1')][_0xb22631('0xbaa')]({'sectionId':_0x29e8cf['id']})[_0xb22631('0x1549')][_0xb22631('0x11bf')](function(_0xd4d583){const _0x1a6dbf=_0xb22631,_0x528216=_0x36f548()[_0x1a6dbf('0x2171')](_0xd4d583[_0x1a6dbf('0x19b2')],function(_0x3ed36c){const _0x1d519c=_0x1a6dbf;return _0x36f548()[_0x1d519c('0x1ad4')](_0x434843[_0x1d519c('0x2763')],{'id':_0x3ed36c['resourceId']});});let _0x1cbcd9=null;_0x434843['tag']&&(_0x1cbcd9=_0x36f548()[_0x1a6dbf('0x1ad4')](_0x434843[_0x1a6dbf('0x2763')],{'name':_0x434843[_0x1a6dbf('0x1d73')][_0x1a6dbf('0x1d73')]}));if(_0x1cbcd9&&!_0x36f548()['some'](_0x528216,['id',_0x1cbcd9['id']])){const _0x5e1df=_0x36f548()[_0x1a6dbf('0x1ad4')](_0x434843[_0x1a6dbf('0x2763')],{'id':_0x1cbcd9['id']});_0x5e1df['canSelect']=![],_0x528216[_0x1a6dbf('0x105d')](_0x5e1df);}_0x434843['tags']=_0x528216;});}})[_0x523c49('0x151d')](function(_0x404ca6){const _0x5f2c00=_0x523c49;_0x3b8282['error']({'title':_0x404ca6[_0x5f2c00('0xff9')]?_0x5f2c00('0x574')+_0x404ca6['status']+_0x5f2c00('0xb0b')+_0x404ca6['statusText']:'SYSTEM:GETtags','msg':_0x404ca6['data']?JSON[_0x5f2c00('0x3e')](_0x404ca6['data']):_0x404ca6[_0x5f2c00('0xaab')]()});});function _0x2ea3a3(){const _0x30bfc0=_0x523c49;_0x434843['errors']=[];const _0x4266ef=[];_0x434843[_0x30bfc0('0x1d73')][_0x30bfc0('0x19fd')]&&_0x434843[_0x30bfc0('0x1d73')][_0x30bfc0('0x19fd')][_0x30bfc0('0x20d5')]()===_0x30bfc0('0x25b6')&&_0x434843['tag'][_0x30bfc0('0x27c0')]===_0x30bfc0('0x1bf6')&&(_0x434843[_0x30bfc0('0x1d73')][_0x30bfc0('0x1546')]=_0x4d643c[_0x30bfc0('0x388')]?(_0x434843[_0x30bfc0('0x1d73')][_0x30bfc0('0x2137')]||'')+_0x30bfc0('0x2100')+_0x4d643c[_0x30bfc0('0x388')]+'}':(_0x434843[_0x30bfc0('0x1d73')][_0x30bfc0('0x2137')]||'')+_0x30bfc0('0x1f76'),_0x4d643c[_0x30bfc0('0x897')]!==_0x30bfc0('0x3e6')?_0x434843[_0x30bfc0('0x1d73')][_0x30bfc0('0x249a')][_0x30bfc0('0x203c')](_0x30bfc0('0x22c9'))<0x0&&(_0x434843[_0x30bfc0('0x1d73')][_0x30bfc0('0x249a')]+=_0x30bfc0('0x22c9')):_0x434843[_0x30bfc0('0x1d73')][_0x30bfc0('0x249a')]=_0x434843[_0x30bfc0('0x1d73')][_0x30bfc0('0x249a')]['replace'](_0x30bfc0('0x22c9'),''));const _0x4b22d0=_0x36f548()[_0x30bfc0('0x1ad4')](_0x434843[_0x30bfc0('0x2763')],{'name':_0x434843[_0x30bfc0('0x1d73')][_0x30bfc0('0x1d73')]});_0x4b22d0&&(_0x434843[_0x30bfc0('0x1d73')]['TagId']=_0x4b22d0['id']);if(_0x434843['tag'][_0x30bfc0('0x27c0')]&&_0x434843['tag'][_0x30bfc0('0x27c0')]===_0x30bfc0('0xa8d')){}else switch((_0x434843['tag']['app']||_0x434843[_0x30bfc0('0x1d73')][_0x30bfc0('0x27c0')])[_0x30bfc0('0x20d5')]()){case'set':_0x434843[_0x30bfc0('0x1d73')]['appdata']=_0x434843[_0x30bfc0('0x1d73')][_0x30bfc0('0x1909')]+'='+_0x434843[_0x30bfc0('0x1d73')][_0x30bfc0('0x10cc')];break;case _0x30bfc0('0xa8d'):break;default:_0x4266ef[0x0]=_0x434843[_0x30bfc0('0x1d73')][_0x30bfc0('0x1d73')],_0x434843['tag'][_0x30bfc0('0x13fc')]=_0x4266ef[_0x30bfc0('0xa04')](',');}_0x4200fd(_0x434843[_0x30bfc0('0x1d73')]);}function _0x4200fd(_0x19fdaa){const _0x56780e=_0x523c49;_0x499e83[_0x56780e('0x237e')](_0x19fdaa);}}const _0x407717=_0x2e7a98;_0x22416d[_0x21d0f5('0x1e9a')]=['$cookies',_0x21d0f5('0x1b80'),'$state','$q','$translate',_0x21d0f5('0x17f5'),_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),'toasty',_0x21d0f5('0x12a5'),_0x21d0f5('0x1150')];function _0x22416d(_0xe39314,_0x42dc10,_0x2157bc,_0x24edb0,_0x1b8a6a,_0x7d80,_0x13ef3a,_0x1066a7,_0x255b09,_0x53f4a1,_0x4afe53){const _0x5f2f47=_0x21d0f5,_0x429214=this;_0x429214[_0x5f2f47('0x32a')]=_0x4afe53[_0x5f2f47('0x2428')](),_0x429214[_0x5f2f47('0x2295')]={},_0x429214['whatsappAccountInteractions']={'count':0x0,'rows':[]},_0x429214[_0x5f2f47('0xbde')]=[],_0x429214[_0x5f2f47('0xb25')],_0x429214[_0x5f2f47('0x1f2a')]={'read':_0x5f2f47('0xb5f'),'closed':_0x5f2f47('0xb5f'),'sort':_0x5f2f47('0xb8c'),'includeAll':_0x5f2f47('0x204c'),'limit':0xa,'page':0x1},_0x429214[_0x5f2f47('0x286f')]=_0x84ab65,_0x429214['deleteConfirm']=_0x3f4f46,_0x429214[_0x5f2f47('0x247a')]=_0x2f24bb,_0x429214[_0x5f2f47('0x2693')]=_0xdd871e,_0x429214[_0x5f2f47('0x1d52')]=_0x7812b0,_0x429214['spywhatsappInteraction']=_0x268b7a,_0x429214[_0x5f2f47('0x2297')]=_0x4855a1,_0x429214[_0x5f2f47('0xc45')]=_0x105f6d,_0x429214[_0x5f2f47('0x23e9')]=_0x595f94,_0x429214[_0x5f2f47('0x13c4')]=_0x10ce65;function _0x84ab65(_0x2b7797,_0x1f4fc3){const _0xbf2ea9=_0x5f2f47;_0x429214[_0xbf2ea9('0x2295')]=_0x2b7797,_0x429214[_0xbf2ea9('0xb25')]=typeof _0x1f4fc3!==_0xbf2ea9('0x13e9')?_0x1f4fc3:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x429214[_0xbf2ea9('0x1f2a')][_0xbf2ea9('0x146a')]=_0x429214[_0xbf2ea9('0x2295')]['id'],_0x429214[_0xbf2ea9('0xd6d')]={'fields':_0x5ad420()},_0x16ad04();}function _0x16ad04(){const _0x5bb52a=_0x5f2f47;return _0x53f4a1[_0x5bb52a('0x1d73')]['get']()['$promise'][_0x5bb52a('0x11bf')](function(_0x62a02f){const _0x587dd3=_0x5bb52a;_0x429214[_0x587dd3('0x2763')]=_0x62a02f||{'count':0x0,'rows':[]};})['then'](function(){const _0xa3dd3c=_0x5bb52a;_0x429214[_0xa3dd3c('0x7db')]=_0xac8b4b();});}function _0xac8b4b(){const _0xc00713=_0x5f2f47;return[{'name':_0xc00713('0xa68'),'key':_0xc00713('0x1779'),'type':_0xc00713('0x22f7'),'label':_0xc00713('0x1c11')},{'name':'Messages','key':_0xc00713('0x1601'),'type':_0xc00713('0x2350'),'label':_0xc00713('0x22a0'),'customOptions':[{'value':0x0,'translate':_0xc00713('0x1dd4')},{'value':0x1,'translate':'DASHBOARDS.READ'},{'value':null,'translate':_0xc00713('0x211a')}]},{'name':_0xc00713('0x971'),'key':'closed','type':'select','label':_0xc00713('0xa96'),'customOptions':[{'value':0x0,'translate':_0xc00713('0x2846')},{'value':0x1,'translate':_0xc00713('0x199')},{'value':null,'translate':_0xc00713('0x211a')}]},{'name':_0xc00713('0x701'),'key':_0xc00713('0x2342'),'type':'select','label':_0xc00713('0x84a'),'customOptions':[{'value':_0xc00713('0xb5f'),'translate':_0xc00713('0x1a02')},{'value':undefined,'translate':_0xc00713('0x211a')}]},{'name':_0xc00713('0x23ba'),'key':_0xc00713('0x1d73'),'type':_0xc00713('0xe83'),'label':_0xc00713('0x9b9'),'options':_0x429214[_0xc00713('0x2763')]['rows'],'placeholder':_0xc00713('0x1f9a')}];}function _0x5ad420(){const _0x58fd06=_0x5f2f47;return[{'name':'Id','column':'id','type':'number'},{'name':'Contact','column':_0x58fd06('0xf10'),'type':_0x58fd06('0x282b'),'options':{'searchFields':[_0x58fd06('0x13a0'),_0x58fd06('0xcf3'),_0x58fd06('0x15d3')],'route':{'model':_0x58fd06('0x1b8f'),'action':_0x58fd06('0xbaa'),'params':{'fields':_0x58fd06('0xd81'),'Contact':'@autocomplete','nolimit':!![]}},'extraOperators':[_0x58fd06('0x512')],'excludedOperators':[_0x58fd06('0x27c1')]}},{'name':_0x58fd06('0x8a9'),'column':_0x58fd06('0x20eb'),'type':_0x58fd06('0x25ed'),'options':{'excludedOperators':[_0x58fd06('0x23de'),_0x58fd06('0x27c1')]}},{'name':'Body','column':_0x58fd06('0x4d1'),'type':_0x58fd06('0x25ed'),'options':{'excludedOperators':[_0x58fd06('0x23de'),'$ne']}},{'name':'Status','column':_0x58fd06('0x949'),'type':_0x58fd06('0x2350'),'values':[{'id':0x0,'translate':'DASHBOARDS.OPENED'},{'id':0x1,'translate':_0x58fd06('0x199')}],'options':{'excludedOperators':['$ne']}},{'name':_0x58fd06('0x701'),'column':_0x58fd06('0x24ab'),'type':'autocomplete','options':{'table':'i','route':{'model':_0x58fd06('0x21d9'),'action':'get','params':{'role':'agent','fields':_0x58fd06('0x919'),'nolimit':!![]}},'searchFields':['fullname','name'],'extraOperators':[_0x58fd06('0x512')],'excludedOperators':[_0x58fd06('0x27c1')]}},{'name':_0x58fd06('0x806'),'column':_0x58fd06('0x23ba'),'type':_0x58fd06('0xe83'),'options':{'route':{'model':_0x58fd06('0x1d73'),'action':'get','params':{'nolimit':!![]}},'excludedOperators':[_0x58fd06('0x1239')]}},{'name':'Start\x20Date','column':_0x58fd06('0x1779'),'type':_0x58fd06('0x22f7'),'options':{'excludedOperators':[_0x58fd06('0x27c1')]}},{'name':_0x58fd06('0xf18'),'column':_0x58fd06('0xf2'),'type':'select','values':[{'id':0x1,'translate':_0x58fd06('0x22a5')},{'id':0x0,'translate':_0x58fd06('0x1dd4')}],'options':{'excludedOperators':[_0x58fd06('0x27c1')]}}];}function _0x4855a1(){const _0x2bed7b=_0x5f2f47;_0x13ef3a[_0x2bed7b('0xb9')]({'controller':_0x2bed7b('0x5'),'controllerAs':'vm','templateUrl':_0x19602a,'parent':angular['element'](_0x1066a7[_0x2bed7b('0x1d2')]),'clickOutsideToClose':![],'locals':{'fields':_0x429214[_0x2bed7b('0xd6d')][_0x2bed7b('0x1067')],'color':undefined,'storagePath':_0x2bed7b('0x9da')},'fullscreen':!![]})[_0x2bed7b('0x11bf')](function(_0x1b6ae5){const _0x1e13ca=_0x2bed7b;_0x429214['query'][_0x1e13ca('0xce2')]=_0x1b6ae5===![]?undefined:_0x1b6ae5;if(_0x429214[_0x1e13ca('0x1f2a')][_0x1e13ca('0xce2')])_0x7812b0();else _0x1b6ae5===![]&&_0x7812b0();})[_0x2bed7b('0x151d')](function(_0x9364af){const _0x611bdd=_0x2bed7b;_0x255b09['error']({'title':_0x611bdd('0x1d30'),'msg':_0x9364af[_0x611bdd('0x4e8')]?JSON[_0x611bdd('0x3e')](_0x9364af[_0x611bdd('0x4e8')]['message']):_0x9364af[_0x611bdd('0xaab')]()});});}function _0x2f24bb(_0x569b21,_0x4d2a38,_0x58a72f){const _0x34758d=_0x5f2f47;return _0x53f4a1[_0x34758d('0x1266')][_0x34758d('0x149c')]({'id':_0x569b21['id'],'exists':!![],'attachments':_0x58a72f})[_0x34758d('0x1549')]['then'](function(_0x1fd721){const _0x2531ad=_0x34758d,_0x28d289=[_0x1fd721[_0x2531ad('0x1e94')]];let _0x4ccda8=_0x2531ad('0x4e6')+_0x569b21['id'];const _0x513558=new Blob(_0x28d289,{'type':_0x1fd721[_0x2531ad('0x19fd')]});_0x4ccda8=_0x2531ad('0x161e')+_0x569b21['id']+_0x2531ad('0x4a7');const _0xc314ea=window['document'][_0x2531ad('0x2773')]('a');_0xc314ea[_0x2531ad('0x1e1b')](_0x2531ad('0xead'),URL[_0x2531ad('0x44b')](_0x513558)),_0xc314ea[_0x2531ad('0x1e1b')](_0x2531ad('0x149c'),_0x4ccda8),document['body'][_0x2531ad('0x131c')](_0xc314ea),_0xc314ea['click']();})[_0x34758d('0x151d')](function(_0x364b59){const _0x453a6b=_0x34758d;if(_0x364b59['data']&&_0x364b59['data'][_0x453a6b('0x120f')]&&_0x364b59['data'][_0x453a6b('0x120f')][_0x453a6b('0x1e22')])for(let _0x300eb6=0x0;_0x300eb6<_0x364b59['data'][_0x453a6b('0x120f')]['length'];_0x300eb6+=0x1){_0x255b09[_0x453a6b('0x255')]({'title':_0x364b59[_0x453a6b('0x4e8')][_0x453a6b('0x120f')][_0x300eb6][_0x453a6b('0x19fd')],'msg':_0x364b59['data'][_0x453a6b('0x120f')][_0x300eb6][_0x453a6b('0x1b86')]});}else _0x255b09['error']({'title':_0x364b59[_0x453a6b('0xff9')]?'API:'+_0x364b59[_0x453a6b('0xff9')]+_0x453a6b('0xb0b')+_0x364b59[_0x453a6b('0x212f')]:_0x453a6b('0xc24'),'msg':_0x364b59[_0x453a6b('0x4e8')]?JSON[_0x453a6b('0x3e')](_0x364b59[_0x453a6b('0x4e8')][_0x453a6b('0x1b86')]):_0x364b59[_0x453a6b('0xaab')]()});});}function _0x3f4f46(_0x236deb,_0xfbd738){const _0x4d57d2=_0x5f2f47,_0x472a2e=_0x13ef3a[_0x4d57d2('0x132b')]()[_0x4d57d2('0x134b')](_0x4d57d2('0x1d6a'))[_0x4d57d2('0x1d03')](_0x4d57d2('0x2061')+(_0x236deb[_0x4d57d2('0x1909')]||_0x236deb['id']&&_0x36f548()[_0x4d57d2('0x24b5')](_0x4d57d2('0x161c'))+_0x236deb['id']||'interaction')+_0x4d57d2('0x1c78')+_0x4d57d2('0x1a'))[_0x4d57d2('0xb2e')](_0x4d57d2('0x14fe'))[_0x4d57d2('0x1e25')](_0xfbd738)['ok']('OK')[_0x4d57d2('0x26c9')](_0x4d57d2('0x772'));_0x13ef3a[_0x4d57d2('0xb9')](_0x472a2e)[_0x4d57d2('0x11bf')](function(){_0x595f94(_0x236deb);},function(){const _0x537b1a=_0x4d57d2;console[_0x537b1a('0xc78')](_0x537b1a('0x772'));});}function _0xdd871e(_0x219865){const _0xda2938=_0x5f2f47;_0x429214['whatsappAccountInteractions']=_0x219865||{'count':0x0,'rows':[]};for(let _0x3e6c56=0x0;_0x3e6c56<_0x429214['whatsappAccountInteractions'][_0xda2938('0x19b2')][_0xda2938('0x1e22')];_0x3e6c56+=0x1){const _0x14b122=_0x429214[_0xda2938('0x62e')]['rows'][_0x3e6c56];_0x30ecc5(_0x14b122),_0x14b122[_0xda2938('0x657')][_0xda2938('0x1909')]=_0x3d29a4(_0x14b122);}}function _0x7812b0(){const _0x2022f0=_0x5f2f47;_0x429214[_0x2022f0('0x1f2a')][_0x2022f0('0x1393')]=(_0x429214[_0x2022f0('0x1f2a')][_0x2022f0('0x1c2')]-0x1)*_0x429214['query'][_0x2022f0('0xd5c')],_0x429214['promise']=_0x53f4a1['whatsappInteraction'][_0x2022f0('0xbaa')](_0x429214[_0x2022f0('0x1f2a')],_0xdd871e)[_0x2022f0('0x1549')];}function _0x268b7a(_0xd35f53,_0x25c618){const _0xbfb589=_0x5f2f47;_0x13ef3a['show']({'controller':_0xbfb589('0x15fe'),'controllerAs':'vm','templateUrl':_0x1742d8,'parent':angular['element'](_0x1066a7[_0xbfb589('0x1d2')]),'targetEvent':_0xd35f53,'clickOutsideToClose':!![],'onShowing':function(_0x1080c7){const _0x122c8e=_0xbfb589;_0x1080c7['vm'][_0x122c8e('0x286f')]({'id':0x1,'channel':_0x122c8e('0xe7c'),'interaction':_0x25c618,'spy':!![]},_0x42dc10[_0x122c8e('0x25f5')]['vm'][_0x122c8e('0x23e1')]);}});}function _0x595f94(_0x431277){const _0x2fbb6a=_0x5f2f47;_0x53f4a1[_0x2fbb6a('0x1266')][_0x2fbb6a('0x2088')]({'id':_0x431277['id']})[_0x2fbb6a('0x1549')][_0x2fbb6a('0x11bf')](function(){const _0x1be990=_0x2fbb6a;_0x36f548()[_0x1be990('0x14a5')](_0x429214[_0x1be990('0x62e')]['rows'],{'id':_0x431277['id']}),_0x429214['whatsappAccountInteractions'][_0x1be990('0x27d2')]-=0x1,!_0x429214[_0x1be990('0x62e')][_0x1be990('0x19b2')][_0x1be990('0x1e22')]&&_0x7812b0(),_0x255b09[_0x1be990('0x2693')]({'title':_0x1be990('0xc64'),'msg':_0x431277['name']?_0x431277[_0x1be990('0x1909')]+_0x1be990('0x433'):''});})[_0x2fbb6a('0x151d')](function(_0x48748e){const _0x8f0d68=_0x2fbb6a;if(_0x48748e[_0x8f0d68('0x4e8')]&&_0x48748e[_0x8f0d68('0x4e8')][_0x8f0d68('0x120f')]&&_0x48748e[_0x8f0d68('0x4e8')]['errors'][_0x8f0d68('0x1e22')]){_0x429214[_0x8f0d68('0x120f')]=_0x48748e['data']['errors']||[{'message':_0x48748e[_0x8f0d68('0xaab')](),'type':_0x8f0d68('0x2594')}];for(let _0x2621a6=0x0;_0x2621a6<_0x48748e['data'][_0x8f0d68('0x120f')]['length'];_0x2621a6++){_0x255b09[_0x8f0d68('0x255')]({'title':_0x48748e[_0x8f0d68('0x4e8')]['errors'][_0x2621a6][_0x8f0d68('0x19fd')],'msg':_0x48748e[_0x8f0d68('0x4e8')][_0x8f0d68('0x120f')][_0x2621a6][_0x8f0d68('0x1b86')]});}}else _0x255b09[_0x8f0d68('0x255')]({'title':_0x48748e['status']?_0x8f0d68('0x574')+_0x48748e[_0x8f0d68('0xff9')]+_0x8f0d68('0xb0b')+_0x48748e[_0x8f0d68('0x212f')]:_0x8f0d68('0x2594'),'msg':_0x48748e[_0x8f0d68('0x4e8')]?JSON[_0x8f0d68('0x3e')](_0x48748e[_0x8f0d68('0x4e8')][_0x8f0d68('0x1b86')]):_0x48748e['message']||_0x48748e['toString']()});});}function _0x105f6d(){const _0x205f49=_0x5f2f47,_0x54ea3d=angular[_0x205f49('0x6fb')](_0x429214[_0x205f49('0xbde')]);return _0x429214[_0x205f49('0xbde')]=[],_0x54ea3d;}function _0x10ce65(_0x4ddc70){const _0x557b1d=_0x5f2f47,_0x4074c3=_0x13ef3a[_0x557b1d('0x132b')]()[_0x557b1d('0x134b')](_0x557b1d('0x1c8d'))[_0x557b1d('0x1d03')](''+_0x429214[_0x557b1d('0xbde')]['length']+'\x20selected'+_0x557b1d('0x1a'))[_0x557b1d('0xb2e')](_0x557b1d('0xcbb'))[_0x557b1d('0x1e25')](_0x4ddc70)['ok']('OK')[_0x557b1d('0x26c9')]('CANCEL');_0x13ef3a['show'](_0x4074c3)[_0x557b1d('0x11bf')](function(){const _0x51889a=_0x557b1d;_0x429214[_0x51889a('0xbde')][_0x51889a('0x1f88')](function(_0xe199ed){_0x595f94(_0xe199ed);}),_0x429214['selectedWhatsappAccountInteractions']=[];});}function _0x30ecc5(_0x338623){const _0x316ea8=_0x5f2f47;_0x338623['Contact']?_0x338623[_0x316ea8('0xca9')]=(_0x338623['Contact'][_0x316ea8('0x13a0')]||'')+'\x20'+(_0x338623[_0x316ea8('0xf10')][_0x316ea8('0xcf3')]||''):_0x338623[_0x316ea8('0xca9')]=_0x1b8a6a['instant'](_0x316ea8('0x1d85'));}function _0x3d29a4(_0x1db46f){const _0x19b2fb=_0x5f2f47;if(_0x1db46f[_0x19b2fb('0x2342')])return _0x1db46f[_0x19b2fb('0x2342')]===_0x429214[_0x19b2fb('0x32a')]['id']?_0x1b8a6a[_0x19b2fb('0x10c2')](_0x19b2fb('0x275d')):_0x1db46f['Owner'][_0x19b2fb('0x27af')]+'\x20<'+_0x1db46f[_0x19b2fb('0x657')][_0x19b2fb('0x1a04')]+'>';return _0x1b8a6a['instant'](_0x19b2fb('0x1a02'));}let _0x1f414b=!![],_0x4af32d=0x1;_0x42dc10[_0x5f2f47('0x2087')](_0x5f2f47('0x1d12'),function(_0xe95067,_0x1334f9){const _0x4f8e90=_0x5f2f47;_0x1f414b?_0x7d80(function(){_0x1f414b=![];}):(!_0x1334f9&&(_0x4af32d=_0x429214['query'][_0x4f8e90('0x1c2')]),_0xe95067!==_0x1334f9&&(_0x429214[_0x4f8e90('0x1f2a')][_0x4f8e90('0x1c2')]=0x1),!_0xe95067&&(_0x429214[_0x4f8e90('0x1f2a')]['page']=_0x4af32d),_0x7812b0());});}const _0x38fbab=_0x22416d,_0x184283=_0x351988['p']+_0x21d0f5('0x26ba');_0x31959b[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0xcbc'),_0x21d0f5('0x16b9'),'$mdDialog',_0x21d0f5('0x1b30'),_0x21d0f5('0xb6b'),_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1'),'api','toasty','Auth',_0x21d0f5('0x2295'),'userProfileSection'];function _0x31959b(_0x1c0b8d,_0x45c95a,_0x15bf22,_0x167346,_0x10930a,_0x2426e5,_0x5dbb70,_0x7732b3,_0x2f5404,_0x113797,_0xa261ef,_0x1d1c30){const _0x4d72a3=_0x21d0f5,_0x25ffee=this;_0x25ffee[_0x4d72a3('0x32a')]=_0x113797[_0x4d72a3('0x2428')](),_0x25ffee[_0x4d72a3('0x17ff')]=_0x2426e5,_0x25ffee[_0x4d72a3('0x23e1')]=_0x5dbb70,_0x25ffee[_0x4d72a3('0x2834')]=_0x25ffee[_0x4d72a3('0x23e1')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x25ffee[_0x4d72a3('0x1d9a')]=_0x45c95a['protocol']()+_0x4d72a3('0x16a1')+_0x45c95a[_0x4d72a3('0x14ec')](),_0x25ffee[_0x4d72a3('0x2295')]=_0xa261ef||_0x1c0b8d[_0x4d72a3('0x1ab3')][_0x4d72a3('0x2295')]||{},_0x25ffee[_0x4d72a3('0x1d63')]=_0x1d1c30&&_0x1d1c30['count']==0x1?_0x1d1c30[_0x4d72a3('0x19b2')][0x0]:null,_0x25ffee[_0x4d72a3('0xb25')]=_0x113797[_0x4d72a3('0x1530')](_0x25ffee['userProfileSection']?_0x25ffee[_0x4d72a3('0x1d63')]['crudPermissions']:null),_0x25ffee[_0x4d72a3('0x2c9')]={},_0x25ffee[_0x4d72a3('0x1179')]=_0x1c0b8d['params'][_0x4d72a3('0x205c')]||0x0,_0x25ffee['agentadddialog']=_0x176738,_0x25ffee['alert']=_0x2f5404['info'],_0x25ffee[_0x4d72a3('0x9f1')]=_0x4d95da,_0x25ffee['saveWhatsappAccount']=_0x57f46e,_0x113797[_0x4d72a3('0x4ee')]('admin')?_0x7732b3[_0x4d72a3('0xbef')][_0x4d72a3('0xbaa')]({'fields':_0x4d72a3('0x721'),'sort':_0x4d72a3('0x1909')})[_0x4d72a3('0x1549')][_0x4d72a3('0x11bf')](function(_0x5111a2){const _0x13d56c=_0x4d72a3;_0x25ffee[_0x13d56c('0x2410')]=_0x5111a2[_0x13d56c('0x19b2')]||[];})['catch'](function(_0x5d1115){const _0x2f5df8=_0x4d72a3;_0x2f5404['error']({'title':_0x5d1115[_0x2f5df8('0xff9')]?'API:'+_0x5d1115[_0x2f5df8('0xff9')]+'\x20-\x20'+_0x5d1115[_0x2f5df8('0x212f')]:_0x2f5df8('0x27ed'),'msg':_0x5d1115['data']?JSON[_0x2f5df8('0x3e')](_0x5d1115['data']):_0x5d1115[_0x2f5df8('0xaab')]()});}):_0x7732b3['cmList'][_0x4d72a3('0xbaa')]({'fields':_0x4d72a3('0x721'),'sort':_0x4d72a3('0x1909')})['$promise'][_0x4d72a3('0x11bf')](function(_0xcf9f25){const _0x3e2248=_0x4d72a3;_0x25ffee[_0x3e2248('0x2410')]=_0xcf9f25['rows']||[];})[_0x4d72a3('0x11bf')](function(){const _0x54e5a4=_0x4d72a3;return _0x7732b3[_0x54e5a4('0x1d63')][_0x54e5a4('0xbaa')]({'userProfileId':_0x25ffee['currentUser'][_0x54e5a4('0x781')],'sectionId':0x12d})['$promise'];})['then'](function(_0x259d7b){const _0x2f4a0f=_0x4d72a3,_0x3bc470=_0x259d7b&&_0x259d7b[_0x2f4a0f('0x19b2')]?_0x259d7b[_0x2f4a0f('0x19b2')][0x0]:null;if(!_0x3bc470){const _0x16c215=[];let _0x1e6907=null;_0x25ffee['whatsappAccount']&&(_0x1e6907=_0x36f548()[_0x2f4a0f('0x1ad4')](_0x25ffee[_0x2f4a0f('0x2410')],{'id':Number(_0x25ffee[_0x2f4a0f('0x2295')]['ListId'])}));for(let _0x53a749=0x0;_0x53a749<_0x25ffee[_0x2f4a0f('0x2410')][_0x2f4a0f('0x1e22')];_0x53a749++){_0x1e6907&&_0x25ffee[_0x2f4a0f('0x2410')][_0x53a749]['id']===_0x1e6907['id']&&(_0x25ffee[_0x2f4a0f('0x2410')][_0x53a749][_0x2f4a0f('0x254a')]=![],_0x16c215[_0x2f4a0f('0x105d')](_0x25ffee[_0x2f4a0f('0x2410')][_0x53a749]));}_0x25ffee[_0x2f4a0f('0x2410')]=_0x16c215;}else{if(!_0x3bc470['autoAssociation'])return _0x7732b3[_0x2f4a0f('0x26d1')]['get']({'sectionId':_0x3bc470['id']})[_0x2f4a0f('0x1549')][_0x2f4a0f('0x11bf')](function(_0x3ea7f2){const _0x20a83d=_0x2f4a0f,_0x182dd6=_0x36f548()[_0x20a83d('0x2171')](_0x3ea7f2['rows'],function(_0x5e1bb6){const _0x4c3116=_0x20a83d;return _0x36f548()[_0x4c3116('0x1ad4')](_0x25ffee[_0x4c3116('0x2410')],{'id':_0x5e1bb6[_0x4c3116('0x15a5')]});});let _0x153b08=null;_0x25ffee[_0x20a83d('0x2295')]&&(_0x153b08=_0x36f548()[_0x20a83d('0x1ad4')](_0x25ffee['lists'],{'id':Number(_0x25ffee[_0x20a83d('0x2295')][_0x20a83d('0x1e91')])}));if(_0x153b08&&!_0x36f548()[_0x20a83d('0x1cb3')](_0x182dd6,['id',_0x153b08['id']])){const _0xdd541c=_0x36f548()[_0x20a83d('0x1ad4')](_0x25ffee[_0x20a83d('0x2410')],{'id':_0x153b08['id']});_0xdd541c['canSelect']=![],_0x182dd6['push'](_0xdd541c);}_0x25ffee[_0x20a83d('0x2410')]=_0x182dd6;});}})['catch'](function(_0xa924c8){const _0x33da18=_0x4d72a3;_0x2f5404[_0x33da18('0x255')]({'title':_0xa924c8[_0x33da18('0xff9')]?_0x33da18('0x574')+_0xa924c8[_0x33da18('0xff9')]+'\x20-\x20'+_0xa924c8[_0x33da18('0x212f')]:_0x33da18('0xb71'),'msg':_0xa924c8[_0x33da18('0x4e8')]?JSON[_0x33da18('0x3e')](_0xa924c8[_0x33da18('0x4e8')]):_0xa924c8['toString']()});}),_0x113797[_0x4d72a3('0x4ee')]('admin')?_0x7732b3[_0x4d72a3('0x92a')][_0x4d72a3('0xbaa')]({'fields':_0x4d72a3('0xaae'),'sort':_0x4d72a3('0x1909'),'nolimit':_0x4d72a3('0x204c')})['$promise'][_0x4d72a3('0x11bf')](function(_0x3e429c){const _0x4fa83d=_0x4d72a3;_0x25ffee[_0x4fa83d('0x12f2')]=_0x3e429c[_0x4fa83d('0x19b2')]||[];})[_0x4d72a3('0x151d')](function(_0x4727ef){const _0x363374=_0x4d72a3;_0x2f5404[_0x363374('0x255')]({'title':_0x4727ef[_0x363374('0xff9')]?_0x363374('0x574')+_0x4727ef['status']+_0x363374('0xb0b')+_0x4727ef[_0x363374('0x212f')]:_0x363374('0x1306'),'msg':_0x4727ef[_0x363374('0x4e8')]?JSON['stringify'](_0x4727ef['data']):_0x4727ef[_0x363374('0xaab')]()});}):_0x7732b3[_0x4d72a3('0x92a')][_0x4d72a3('0xbaa')]({'fields':_0x4d72a3('0xaae'),'sort':_0x4d72a3('0x1909'),'nolimit':_0x4d72a3('0x204c')})[_0x4d72a3('0x1549')][_0x4d72a3('0x11bf')](function(_0xb12f6e){_0x25ffee['pauses']=_0xb12f6e['rows']||[];})[_0x4d72a3('0x11bf')](function(){const _0x36a039=_0x4d72a3;return _0x7732b3['userProfileSection'][_0x36a039('0xbaa')]({'userProfileId':_0x25ffee[_0x36a039('0x32a')][_0x36a039('0x781')],'sectionId':0x3ed})[_0x36a039('0x1549')];})['then'](function(_0xb1756b){const _0x4f6c83=_0x4d72a3,_0x3d5d6f=_0xb1756b&&_0xb1756b[_0x4f6c83('0x19b2')]?_0xb1756b[_0x4f6c83('0x19b2')][0x0]:null;if(!_0x3d5d6f)_0x25ffee['pauses']=[];else{if(!_0x3d5d6f[_0x4f6c83('0xf11')])return _0x7732b3[_0x4f6c83('0x26d1')][_0x4f6c83('0xbaa')]({'sectionId':_0x3d5d6f['id']})[_0x4f6c83('0x1549')]['then'](function(_0x15fd26){const _0x953c46=_0x4f6c83,_0x2e8a93=_0x36f548()['map'](_0x15fd26[_0x953c46('0x19b2')],function(_0x21a008){const _0x41e074=_0x953c46;return _0x36f548()[_0x41e074('0x1ad4')](_0x25ffee[_0x41e074('0x12f2')],{'id':_0x21a008[_0x41e074('0x15a5')]});});_0x25ffee[_0x953c46('0x12f2')][_0x953c46('0x1f88')](function(_0x532bb6){const _0x57421b=_0x953c46;!_0x36f548()['some'](_0x2e8a93,['id',_0x532bb6['id']])&&(_0x532bb6[_0x57421b('0x254a')]=![]),_0x2e8a93['push'](_0x532bb6);}),_0x25ffee[_0x953c46('0x12f2')]=_0x2e8a93;});}})[_0x4d72a3('0x151d')](function(_0x1b32ed){const _0x57dbb4=_0x4d72a3;_0x2f5404['error']({'title':_0x1b32ed[_0x57dbb4('0xff9')]?_0x57dbb4('0x574')+_0x1b32ed[_0x57dbb4('0xff9')]+_0x57dbb4('0xb0b')+_0x1b32ed[_0x57dbb4('0x212f')]:_0x57dbb4('0x1c82'),'msg':_0x1b32ed[_0x57dbb4('0x4e8')]?JSON[_0x57dbb4('0x3e')](_0x1b32ed[_0x57dbb4('0x4e8')]):_0x1b32ed[_0x57dbb4('0xaab')]()});});function _0x176738(_0x2caf00,_0x44db79){const _0x2c20e0=_0x4d72a3;_0x15bf22[_0x2c20e0('0xb9')]({'controller':_0x2c20e0('0x253c'),'controllerAs':'vm','templateUrl':_0x184283,'parent':angular[_0x2c20e0('0x1e73')](_0x167346['body']),'targetEvent':_0x44db79,'clickOutsideToClose':!![],'locals':{'whatsappAccount':_0x2caf00,'whatsappAccounts':_0x25ffee['whatsappAccounts']?_0x25ffee['whatsappAccounts'][_0x2c20e0('0x19b2')]:[],'crudPermissions':_0x25ffee[_0x2c20e0('0xb25')],'realtime':![]}});}function _0x4d95da(){const _0x12a614=_0x4d72a3;_0x1c0b8d['go']('app.whatsapp.whatsappAccounts',{},{'reload':_0x12a614('0xf66')});}function _0x57f46e(){const _0x32d721=_0x4d72a3;_0x7732b3[_0x32d721('0x2295')]['update']({'id':_0x25ffee[_0x32d721('0x2295')]['id']},_0x25ffee[_0x32d721('0x2295')])['$promise'][_0x32d721('0x11bf')](function(){const _0x156056=_0x32d721;_0x2f5404[_0x156056('0x2693')]({'title':_0x156056('0xac1'),'msg':_0x25ffee[_0x156056('0x2295')][_0x156056('0x1909')]?_0x25ffee[_0x156056('0x2295')]['name']+_0x156056('0xd7'):''});})[_0x32d721('0x151d')](function(_0x1763a2){const _0x280719=_0x32d721;_0x2f5404[_0x280719('0x255')]({'title':_0x1763a2['status']?_0x280719('0x574')+_0x1763a2[_0x280719('0xff9')]+_0x280719('0xb0b')+_0x1763a2['statusText']:_0x280719('0x2594'),'msg':_0x1763a2['data']?JSON['stringify'](_0x1763a2[_0x280719('0x4e8')]):_0x1763a2[_0x280719('0xaab')]()});});}}const _0x536f32=_0x31959b,_0x46b378=_0x351988['p']+'src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/whatsappCannedAnswers/dialog.html/dialog.html';_0x443465[_0x21d0f5('0x1e9a')]=['$cookies',_0x21d0f5('0x1b80'),_0x21d0f5('0xcbc'),'$q',_0x21d0f5('0xb6b'),'$timeout','$mdDialog',_0x21d0f5('0x1b30'),_0x21d0f5('0x142d'),_0x21d0f5('0x12a5'),'Auth'];function _0x443465(_0x25b3f5,_0x468e3d,_0x5efd99,_0x47f0ea,_0x498024,_0x1d6918,_0x5750b5,_0x36eab0,_0x3308ba,_0x5e488c,_0x5826de){const _0x29484e=_0x21d0f5,_0x2bf27a=this;_0x2bf27a[_0x29484e('0x32a')]=_0x5826de[_0x29484e('0x2428')](),_0x2bf27a[_0x29484e('0x2295')]={},_0x2bf27a[_0x29484e('0x27cf')]={'count':0x0,'rows':[]},_0x2bf27a[_0x29484e('0xb8f')]=[],_0x2bf27a[_0x29484e('0xb25')],_0x2bf27a[_0x29484e('0x1f2a')]={'fields':_0x29484e('0x1cb4'),'limit':0xa,'page':0x1},_0x2bf27a['init']=_0x49c9c0,_0x2bf27a[_0x29484e('0x560')]=_0xc57f25,_0x2bf27a[_0x29484e('0x2693')]=_0x3bc465,_0x2bf27a[_0x29484e('0x1597')]=_0xd21364,_0x2bf27a[_0x29484e('0x9f9')]=_0x2e92ae,_0x2bf27a['exportSelectedWhatsappAccountWhatsappCannedAnswers']=_0x33d8d8,_0x2bf27a[_0x29484e('0x19f8')]=_0x331c19,_0x2bf27a[_0x29484e('0x6cf')]=_0xd84b00;function _0x49c9c0(_0xac0295,_0x3b429e){const _0x174a0b=_0x29484e;_0x2bf27a[_0x174a0b('0x2295')]=_0xac0295,_0x2bf27a['crudPermissions']=typeof _0x3b429e!=='undefined'?_0x3b429e:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x2bf27a['query'][_0x174a0b('0x146a')]=_0x2bf27a[_0x174a0b('0x2295')]['id'],_0x2bf27a['query']['id']=_0x2bf27a['whatsappAccount']['id'],_0xd21364();}function _0xc57f25(_0x509ef3,_0x64a7bd){const _0x15ae48=_0x29484e,_0x44c3e0=_0x5750b5[_0x15ae48('0x132b')]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20whatsappCannedAnswer?')[_0x15ae48('0x1d03')](_0x15ae48('0x2061')+(_0x509ef3[_0x15ae48('0x1909')]||_0x509ef3['id']&&_0x36f548()[_0x15ae48('0x24b5')](_0x15ae48('0x187e'))+_0x509ef3['id']||_0x15ae48('0x215f'))+_0x15ae48('0x1c78')+_0x15ae48('0x1a'))[_0x15ae48('0xb2e')](_0x15ae48('0x1691'))[_0x15ae48('0x1e25')](_0x64a7bd)['ok']('OK')[_0x15ae48('0x26c9')](_0x15ae48('0x772'));_0x5750b5['show'](_0x44c3e0)[_0x15ae48('0x11bf')](function(){_0x331c19(_0x509ef3);},function(){const _0x324170=_0x15ae48;console[_0x324170('0xc78')](_0x324170('0x772'));});}function _0x3bc465(_0x1147a8){const _0x41b62f=_0x29484e;_0x2bf27a[_0x41b62f('0x27cf')]=_0x1147a8||{'count':0x0,'rows':[]};}function _0xd21364(){const _0x536812=_0x29484e;_0x2bf27a[_0x536812('0x1f2a')]['offset']=(_0x2bf27a[_0x536812('0x1f2a')]['page']-0x1)*_0x2bf27a['query'][_0x536812('0xd5c')],_0x2bf27a[_0x536812('0x13f')]=_0x5e488c['whatsappAccount'][_0x536812('0x2785')](_0x2bf27a['query'],_0x3bc465)[_0x536812('0x1549')];}function _0x2e92ae(_0x3242e4,_0x2de152){const _0x9850c6=_0x29484e;_0x5750b5['show']({'controller':_0x9850c6('0xf6a'),'controllerAs':'vm','templateUrl':_0x46b378,'parent':angular[_0x9850c6('0x1e73')](_0x36eab0['body']),'targetEvent':_0x3242e4,'clickOutsideToClose':!![],'locals':{'whatsappAccount':_0x2bf27a['whatsappAccount'],'whatsappCannedAnswer':_0x2de152,'whatsappCannedAnswers':_0x2bf27a['whatsappAccountWhatsappCannedAnswers']['rows'],'license':null,'setting':null,'crudPermissions':_0x2bf27a[_0x9850c6('0xb25')]}});}function _0x331c19(_0x3b579b){const _0x68f9ce=_0x29484e;_0x5e488c['cannedAnswer']['delete']({'id':_0x3b579b['id']})[_0x68f9ce('0x1549')][_0x68f9ce('0x11bf')](function(){const _0xece85a=_0x68f9ce;_0x36f548()[_0xece85a('0x14a5')](_0x2bf27a['whatsappAccountWhatsappCannedAnswers']['rows'],{'id':_0x3b579b['id']}),_0x2bf27a[_0xece85a('0x27cf')]['count']-=0x1,!_0x2bf27a['whatsappAccountWhatsappCannedAnswers'][_0xece85a('0x19b2')][_0xece85a('0x1e22')]&&_0xd21364(),_0x3308ba['success']({'title':_0xece85a('0xeca'),'msg':_0x3b579b[_0xece85a('0x1909')]?_0x3b579b['name']+'\x20has\x20been\x20deleted!':''});})[_0x68f9ce('0x151d')](function(_0x2655a1){const _0x3d8f02=_0x68f9ce;if(_0x2655a1[_0x3d8f02('0x4e8')]&&_0x2655a1[_0x3d8f02('0x4e8')][_0x3d8f02('0x120f')]&&_0x2655a1[_0x3d8f02('0x4e8')]['errors'][_0x3d8f02('0x1e22')]){_0x2bf27a[_0x3d8f02('0x120f')]=_0x2655a1[_0x3d8f02('0x4e8')][_0x3d8f02('0x120f')]||[{'message':_0x2655a1[_0x3d8f02('0xaab')](),'type':_0x3d8f02('0x2594')}];for(let _0x52020a=0x0;_0x52020a<_0x2655a1[_0x3d8f02('0x4e8')][_0x3d8f02('0x120f')][_0x3d8f02('0x1e22')];_0x52020a++){_0x3308ba['error']({'title':_0x2655a1[_0x3d8f02('0x4e8')][_0x3d8f02('0x120f')][_0x52020a][_0x3d8f02('0x19fd')],'msg':_0x2655a1[_0x3d8f02('0x4e8')][_0x3d8f02('0x120f')][_0x52020a][_0x3d8f02('0x1b86')]});}}else _0x3308ba[_0x3d8f02('0x255')]({'title':_0x2655a1[_0x3d8f02('0xff9')]?'API:'+_0x2655a1['status']+_0x3d8f02('0xb0b')+_0x2655a1[_0x3d8f02('0x212f')]:_0x3d8f02('0x2594'),'msg':_0x2655a1['data']?JSON[_0x3d8f02('0x3e')](_0x2655a1[_0x3d8f02('0x4e8')][_0x3d8f02('0x1b86')]):_0x2655a1[_0x3d8f02('0x1b86')]||_0x2655a1[_0x3d8f02('0xaab')]()});});}function _0x33d8d8(){const _0x1ab3dd=_0x29484e,_0x5d2db0=angular['copy'](_0x2bf27a[_0x1ab3dd('0xb8f')]);return _0x2bf27a['selectedWhatsappAccountWhatsappCannedAnswers']=[],_0x5d2db0;}function _0xd84b00(_0x5f0103){const _0x44bc5d=_0x29484e,_0x41d7d6=_0x5750b5[_0x44bc5d('0x132b')]()['title'](_0x44bc5d('0x718'))[_0x44bc5d('0x1d03')](_0x44bc5d('0x2061')+_0x2bf27a['selectedWhatsappAccountWhatsappCannedAnswers']['length']+_0x44bc5d('0xac6')+'\x20will\x20be\x20deleted.')[_0x44bc5d('0xb2e')](_0x44bc5d('0x2398'))[_0x44bc5d('0x1e25')](_0x5f0103)['ok']('OK')[_0x44bc5d('0x26c9')](_0x44bc5d('0x772'));_0x5750b5[_0x44bc5d('0xb9')](_0x41d7d6)['then'](function(){const _0x59f6c3=_0x44bc5d;_0x2bf27a['selectedWhatsappAccountWhatsappCannedAnswers']['forEach'](function(_0x20d8a1){_0x331c19(_0x20d8a1);}),_0x2bf27a[_0x59f6c3('0xb8f')]=[];});}let _0x49fa6d=!![],_0x4f3ab5=0x1;_0x468e3d[_0x29484e('0x2087')](_0x29484e('0x1d12'),function(_0x21f9f3,_0x3f5961){const _0x40e5ca=_0x29484e;_0x49fa6d?_0x1d6918(function(){_0x49fa6d=![];}):(!_0x3f5961&&(_0x4f3ab5=_0x2bf27a['query'][_0x40e5ca('0x1c2')]),_0x21f9f3!==_0x3f5961&&(_0x2bf27a['query'][_0x40e5ca('0x1c2')]=0x1),!_0x21f9f3&&(_0x2bf27a[_0x40e5ca('0x1f2a')][_0x40e5ca('0x1c2')]=_0x4f3ab5),_0xd21364());});}const _0x23263f=_0x443465;_0x508ada[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0xcbc'),_0x21d0f5('0x16b9'),_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0xb6b'),'toasty',_0x21d0f5('0x1153'),'whatsappCannedAnswer',_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),_0x21d0f5('0x17ff'),'setting',_0x21d0f5('0xb25')];function _0x508ada(_0x264834,_0x95879,_0x5ee9eb,_0x13c1aa,_0x3ec647,_0x59ca5c,_0x278102,_0x39016a,_0x2867cb,_0x5e648a,_0x4c8acf,_0x1bd296,_0x493be2,_0x2c1c87){const _0x4702ed=_0x21d0f5,_0x1f48e1=this;_0x1f48e1['currentUser']=_0x4c8acf[_0x4702ed('0x2428')](),_0x1f48e1[_0x4702ed('0x120f')]=[],_0x1f48e1[_0x4702ed('0x23e1')]=_0x493be2,_0x1f48e1[_0x4702ed('0x17ff')]=_0x1bd296,_0x1f48e1[_0x4702ed('0xb25')]=_0x2c1c87,_0x1f48e1['hasModulePermissions']={},_0x1f48e1[_0x4702ed('0x2834')]=_0x1f48e1[_0x4702ed('0x23e1')]&&_0x1f48e1[_0x4702ed('0x23e1')][_0x4702ed('0x1d4')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1f48e1['title']=_0x4702ed('0x862'),_0x1f48e1[_0x4702ed('0x215f')]=angular['copy'](_0x2867cb),_0x1f48e1['whatsappCannedAnswers']=_0x39016a,_0x1f48e1[_0x4702ed('0x349')]=![];!_0x1f48e1['whatsappCannedAnswer']&&(_0x1f48e1[_0x4702ed('0x215f')]={},_0x1f48e1['title']=_0x4702ed('0xa18'),_0x1f48e1[_0x4702ed('0x349')]=!![]);_0x95879[_0x4702ed('0x1ab3')]['id']&&(_0x1f48e1[_0x4702ed('0x215f')][_0x4702ed('0x146a')]=_0x95879[_0x4702ed('0x1ab3')]['id']);_0x1f48e1['addNewWhatsappCannedAnswer']=_0x4d05f8,_0x1f48e1[_0x4702ed('0xa27')]=_0x27e597,_0x1f48e1[_0x4702ed('0x2236')]=_0x2b19ae,_0x1f48e1['getDateFromString']=_0x22ff56,_0x1f48e1[_0x4702ed('0xc4e')]=_0x1d2da5;function _0x4d05f8(){const _0x2096e0=_0x4702ed;_0x1f48e1[_0x2096e0('0x120f')]=[],_0x5e648a[_0x2096e0('0x81')][_0x2096e0('0x259')](_0x1f48e1['whatsappCannedAnswer'])[_0x2096e0('0x1549')][_0x2096e0('0x11bf')](function(_0x56f353){const _0xb31c67=_0x2096e0;_0x1f48e1[_0xb31c67('0x1153')]['unshift'](_0x56f353[_0xb31c67('0x2866')]()),_0x278102[_0xb31c67('0x2693')]({'title':_0xb31c67('0x25c6'),'msg':_0x1f48e1[_0xb31c67('0x215f')][_0xb31c67('0x1909')]?_0x1f48e1[_0xb31c67('0x215f')][_0xb31c67('0x1909')]+_0xb31c67('0x7fb'):''}),_0x1d2da5(_0x56f353);})['catch'](function(_0x447f92){const _0x4a4e5a=_0x2096e0;if(_0x447f92[_0x4a4e5a('0x4e8')]&&_0x447f92[_0x4a4e5a('0x4e8')]['errors']&&_0x447f92[_0x4a4e5a('0x4e8')][_0x4a4e5a('0x120f')]['length']){_0x1f48e1[_0x4a4e5a('0x120f')]=_0x447f92['data'][_0x4a4e5a('0x120f')]||[{'message':_0x447f92['toString'](),'type':'api.cannedAnswer.save'}];for(let _0xeb0700=0x0;_0xeb0700<_0x447f92['data'][_0x4a4e5a('0x120f')]['length'];_0xeb0700+=0x1){_0x278102[_0x4a4e5a('0x255')]({'title':_0x447f92[_0x4a4e5a('0x4e8')][_0x4a4e5a('0x120f')][_0xeb0700][_0x4a4e5a('0x19fd')],'msg':_0x447f92[_0x4a4e5a('0x4e8')][_0x4a4e5a('0x120f')][_0xeb0700]['message']});}}else _0x278102[_0x4a4e5a('0x255')]({'title':_0x447f92[_0x4a4e5a('0xff9')]?_0x4a4e5a('0x574')+_0x447f92[_0x4a4e5a('0xff9')]+_0x4a4e5a('0xb0b')+_0x447f92[_0x4a4e5a('0x212f')]:_0x4a4e5a('0x23b5'),'msg':_0x447f92[_0x4a4e5a('0x4e8')]?JSON[_0x4a4e5a('0x3e')](_0x447f92[_0x4a4e5a('0x4e8')][_0x4a4e5a('0x1b86')]):_0x447f92[_0x4a4e5a('0xaab')]()});});}function _0x27e597(){const _0x511bca=_0x4702ed;_0x1f48e1[_0x511bca('0x120f')]=[],_0x5e648a[_0x511bca('0x81')]['update']({'id':_0x1f48e1['whatsappCannedAnswer']['id']},_0x1f48e1['whatsappCannedAnswer'])['$promise'][_0x511bca('0x11bf')](function(_0x8ed14a){const _0x3d2e1b=_0x511bca,_0x2492e5=_0x36f548()[_0x3d2e1b('0x1ad4')](_0x1f48e1[_0x3d2e1b('0x1153')],{'id':_0x8ed14a['id']});_0x2492e5&&_0x36f548()[_0x3d2e1b('0x47b')](_0x2492e5,_0x36f548()['pick'](_0x8ed14a[_0x3d2e1b('0x2866')](),_0x36f548()[_0x3d2e1b('0xe22')](_0x2492e5))),_0x278102[_0x3d2e1b('0x2693')]({'title':_0x3d2e1b('0x2150'),'msg':_0x1f48e1[_0x3d2e1b('0x215f')][_0x3d2e1b('0x1909')]?_0x1f48e1[_0x3d2e1b('0x215f')][_0x3d2e1b('0x1909')]+_0x3d2e1b('0x1a78'):''}),_0x1d2da5(_0x8ed14a);})[_0x511bca('0x151d')](function(_0x15acbf){const _0x5df0c2=_0x511bca;if(_0x15acbf['data']&&_0x15acbf[_0x5df0c2('0x4e8')][_0x5df0c2('0x120f')]&&_0x15acbf['data'][_0x5df0c2('0x120f')]['length']){_0x1f48e1[_0x5df0c2('0x120f')]=_0x15acbf[_0x5df0c2('0x4e8')][_0x5df0c2('0x120f')]||[{'message':_0x15acbf['toString'](),'type':_0x5df0c2('0x1698')}];for(let _0x5f417f=0x0;_0x5f417f<_0x15acbf[_0x5df0c2('0x4e8')]['errors'][_0x5df0c2('0x1e22')];_0x5f417f++){_0x278102[_0x5df0c2('0x255')]({'title':_0x15acbf[_0x5df0c2('0x4e8')]['errors'][_0x5f417f][_0x5df0c2('0x19fd')],'msg':_0x15acbf[_0x5df0c2('0x4e8')][_0x5df0c2('0x120f')][_0x5f417f][_0x5df0c2('0x1b86')]});}}else _0x278102[_0x5df0c2('0x255')]({'title':_0x15acbf[_0x5df0c2('0xff9')]?_0x5df0c2('0x574')+_0x15acbf[_0x5df0c2('0xff9')]+_0x5df0c2('0xb0b')+_0x15acbf['statusText']:_0x5df0c2('0x1698'),'msg':_0x15acbf['data']?JSON[_0x5df0c2('0x3e')](_0x15acbf[_0x5df0c2('0x4e8')][_0x5df0c2('0x1b86')]):_0x15acbf[_0x5df0c2('0xaab')]()});});}function _0x2b19ae(_0x2ff279){const _0xd0f9f1=_0x4702ed;_0x1f48e1[_0xd0f9f1('0x120f')]=[];const _0x5ba067=_0x13c1aa[_0xd0f9f1('0x132b')]()[_0xd0f9f1('0x134b')]('Are\x20you\x20sure?')[_0xd0f9f1('0x252a')](_0xd0f9f1('0x8c1'))[_0xd0f9f1('0xb2e')](_0xd0f9f1('0x9ea'))['ok'](_0xd0f9f1('0x1167'))[_0xd0f9f1('0x26c9')](_0xd0f9f1('0x784'))[_0xd0f9f1('0x1e25')](_0x2ff279);_0x13c1aa[_0xd0f9f1('0xb9')](_0x5ba067)[_0xd0f9f1('0x11bf')](function(){const _0x5cd6d2=_0xd0f9f1;_0x5e648a[_0x5cd6d2('0x81')][_0x5cd6d2('0x2088')]({'id':_0x1f48e1[_0x5cd6d2('0x215f')]['id']})[_0x5cd6d2('0x1549')][_0x5cd6d2('0x11bf')](function(){const _0x198c8e=_0x5cd6d2;_0x36f548()[_0x198c8e('0x14a5')](_0x1f48e1[_0x198c8e('0x1153')],{'id':_0x1f48e1[_0x198c8e('0x215f')]['id']}),_0x278102[_0x198c8e('0x2693')]({'title':_0x198c8e('0x2647'),'msg':(_0x1f48e1[_0x198c8e('0x215f')][_0x198c8e('0x1909')]||_0x198c8e('0x215f'))+'\x20has\x20been\x20deleted!'}),_0x1d2da5(_0x1f48e1['whatsappCannedAnswer']);})[_0x5cd6d2('0x151d')](function(_0x255f16){const _0x1ff59a=_0x5cd6d2;if(_0x255f16[_0x1ff59a('0x4e8')]&&_0x255f16[_0x1ff59a('0x4e8')][_0x1ff59a('0x120f')]&&_0x255f16[_0x1ff59a('0x4e8')][_0x1ff59a('0x120f')]['length']){_0x1f48e1[_0x1ff59a('0x120f')]=_0x255f16[_0x1ff59a('0x4e8')][_0x1ff59a('0x120f')]||[{'message':_0x255f16[_0x1ff59a('0xaab')](),'type':_0x1ff59a('0x2279')}];for(let _0x346052=0x0;_0x346052<_0x255f16[_0x1ff59a('0x4e8')]['errors'][_0x1ff59a('0x1e22')];_0x346052++){_0x278102[_0x1ff59a('0x255')]({'title':_0x255f16['data']['errors'][_0x346052][_0x1ff59a('0x19fd')],'msg':_0x255f16['data'][_0x1ff59a('0x120f')][_0x346052][_0x1ff59a('0x1b86')]});}}else _0x278102[_0x1ff59a('0x255')]({'title':_0x255f16[_0x1ff59a('0xff9')]?_0x1ff59a('0x574')+_0x255f16['status']+_0x1ff59a('0xb0b')+_0x255f16[_0x1ff59a('0x212f')]:_0x1ff59a('0x2279'),'msg':_0x255f16['data']?JSON[_0x1ff59a('0x3e')](_0x255f16['data']['message']):_0x255f16[_0x1ff59a('0x1b86')]||_0x255f16[_0x1ff59a('0xaab')]()});});},function(){});}function _0x22ff56(_0x4fbebb){return _0x4fbebb===null?undefined:new Date(_0x4fbebb);}function _0x1d2da5(_0x233f36){const _0xc5b674=_0x4702ed;_0x13c1aa[_0xc5b674('0x237e')](_0x233f36);}}const _0x469bfe=_0x508ada;_0x1b1393[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0x2143'),_0x21d0f5('0xcbc'),_0x21d0f5('0x18fe'),_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),_0x21d0f5('0x17f5'),'$translate','api',_0x21d0f5('0x142d'),_0x21d0f5('0x1150')];function _0x1b1393(_0x1bab1c,_0x579086,_0x2ed0f7,_0x22a747,_0x1c6425,_0x167658,_0x33d0f1,_0x56203a,_0x374de9,_0x16d176,_0x46eae5){const _0x2dcffc=_0x21d0f5,_0x4f83e7=this;_0x4f83e7[_0x2dcffc('0x32a')]=_0x46eae5[_0x2dcffc('0x2428')](),_0x4f83e7['dispositions']={'count':0x0,'rows':[]},_0x4f83e7[_0x2dcffc('0x21ae')]=[],_0x4f83e7[_0x2dcffc('0xb25')],_0x4f83e7[_0x2dcffc('0x1526')]={'first':_0x2dcffc('0x1558'),'second':'2nd','third':_0x2dcffc('0x10e6')},_0x4f83e7[_0x2dcffc('0x1f2a')]={'fields':_0x2dcffc('0x12c1'),'sort':_0x2dcffc('0x1c74'),'limit':0xa,'page':0x1},_0x4f83e7[_0x2dcffc('0x286f')]=_0x2c9aae,_0x4f83e7[_0x2dcffc('0x560')]=_0xeefc18,_0x4f83e7[_0x2dcffc('0x2693')]=_0x31b9ef,_0x4f83e7['getDispositions']=_0x51d0c2,_0x4f83e7['createOrEditDisposition']=_0xbe1d88,_0x4f83e7[_0x2dcffc('0x2776')]=_0x4a6178,_0x4f83e7['exportSelectedDispositions']=_0x2d4201,_0x4f83e7['deleteSelectedDispositions']=_0x460b04,_0x4f83e7[_0x2dcffc('0x1d8f')]=_0x39521c,_0x4f83e7[_0x2dcffc('0x94f')]=_0x8d62fa;function _0x2c9aae(_0x240029,_0xcba481){const _0x193d17=_0x2dcffc;_0x4f83e7[_0x193d17('0x2295')]=_0x240029||{},_0x4f83e7[_0x193d17('0xb25')]=typeof _0xcba481!=='undefined'?_0xcba481:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x4f83e7['query']['WhatsappAccountId']=_0x4f83e7[_0x193d17('0x2295')]['id'],_0x4f83e7[_0x193d17('0x1f2a')]['id']=_0x4f83e7[_0x193d17('0x2295')]['id'],_0x51d0c2();}function _0xbe1d88(_0x2f3ea9,_0x2ad41f){const _0x16f28=_0x2dcffc;_0x1c6425[_0x16f28('0xb9')]({'controller':_0x16f28('0x21b7'),'controllerAs':'vm','templateUrl':_0xd803cc,'parent':angular[_0x16f28('0x1e73')](_0x167658[_0x16f28('0x1d2')]),'targetEvent':_0x2f3ea9,'clickOutsideToClose':!![],'locals':{'disposition':_0x2ad41f,'dispositions':_0x4f83e7[_0x16f28('0x1394')][_0x16f28('0x19b2')],'model':{'id':_0x4f83e7['whatsappAccount']['id'],'field':_0x16f28('0x146a')},'license':null,'setting':null,'crudPermissions':_0x4f83e7['crudPermissions']}})['then'](function(_0x2864f9){if(_0x2864f9)_0x51d0c2();});}function _0xeefc18(_0x39d1f5,_0x200b90){const _0x4184b7=_0x2dcffc,_0x51992b=_0x36f548()[_0x4184b7('0x1cb3')](_0x4f83e7['dispositions'][_0x4184b7('0x19b2')],[_0x4184b7('0x2ac'),_0x39d1f5['id']]),_0x105f13=_0x1c6425['confirm']()[_0x4184b7('0x134b')](_0x56203a['instant'](_0x4184b7('0x221d')))['content'](_0x56203a[_0x4184b7('0x10c2')](_0x4184b7('0x869')+(_0x51992b?_0x4184b7('0x4bd'):_0x4184b7('0x16d7')),{'name':_0x39d1f5[_0x4184b7('0x1909')]}))['ariaLabel'](_0x4184b7('0x1c19'))[_0x4184b7('0x1e25')](_0x200b90)['ok']('OK')[_0x4184b7('0x26c9')](_0x56203a['instant'](_0x4184b7('0xa5d')));_0x1c6425[_0x4184b7('0xb9')](_0x105f13)[_0x4184b7('0x11bf')](function(){_0x4a6178(_0x39d1f5);});}function _0x31b9ef(_0x2a56c5){const _0x247f15=_0x2dcffc;_0x4f83e7[_0x247f15('0x1394')]=_0x2a56c5||{'count':0x0,'rows':[]};}function _0x51d0c2(){const _0x547c6a=_0x2dcffc;_0x4f83e7[_0x547c6a('0x1f2a')][_0x547c6a('0x1393')]=(_0x4f83e7[_0x547c6a('0x1f2a')][_0x547c6a('0x1c2')]-0x1)*_0x4f83e7[_0x547c6a('0x1f2a')][_0x547c6a('0xd5c')],_0x4f83e7['promise']=_0x374de9[_0x547c6a('0x2295')][_0x547c6a('0x200')](_0x4f83e7['query'],_0x31b9ef)[_0x547c6a('0x1549')];}function _0x4a6178(_0x54893e){const _0x412ad1=_0x2dcffc;_0x374de9[_0x412ad1('0x107a')][_0x412ad1('0x2088')]({'id':_0x54893e['id']})[_0x412ad1('0x1549')]['then'](function(){const _0x54bdcf=_0x412ad1;_0x51d0c2(),_0x16d176[_0x54bdcf('0x2693')]({'title':_0x56203a[_0x54bdcf('0x10c2')](_0x54bdcf('0x1548'))});})[_0x412ad1('0x151d')](function(_0x22309e){const _0x26d864=_0x412ad1;if(_0x22309e[_0x26d864('0x4e8')]&&_0x22309e['data'][_0x26d864('0x120f')]&&_0x22309e['data'][_0x26d864('0x120f')]['length']){_0x4f83e7['errors']=_0x22309e[_0x26d864('0x4e8')]['errors']||[{'message':_0x22309e[_0x26d864('0xaab')](),'type':_0x26d864('0x1551')}];for(let _0x17b43f=0x0;_0x17b43f<_0x22309e[_0x26d864('0x4e8')]['errors'][_0x26d864('0x1e22')];_0x17b43f++){_0x16d176['error']({'title':_0x22309e[_0x26d864('0x4e8')][_0x26d864('0x120f')][_0x17b43f][_0x26d864('0x19fd')],'msg':_0x22309e[_0x26d864('0x4e8')]['errors'][_0x17b43f][_0x26d864('0x1b86')]});}}else _0x16d176[_0x26d864('0x255')]({'title':_0x22309e[_0x26d864('0xff9')]?_0x26d864('0x574')+_0x22309e[_0x26d864('0xff9')]+'\x20-\x20'+_0x22309e[_0x26d864('0x212f')]:'SYSTEM:DELETEdisposition','msg':_0x22309e['data']?JSON[_0x26d864('0x3e')](_0x22309e[_0x26d864('0x4e8')]['message']):_0x22309e['message']||_0x22309e[_0x26d864('0xaab')]()});});}function _0x2d4201(){const _0x5790c0=_0x2dcffc,_0x14a44e=angular[_0x5790c0('0x6fb')](_0x4f83e7['selectedDispositions']);return _0x4f83e7[_0x5790c0('0x21ae')]=[],_0x14a44e;}function _0x460b04(_0x1c3aba){const _0x11049d=_0x2dcffc,_0x3e7113=_0x1c6425[_0x11049d('0x132b')]()['title'](_0x56203a[_0x11049d('0x10c2')](_0x11049d('0x1cd5')))[_0x11049d('0x252a')](_0x56203a[_0x11049d('0x10c2')](_0x11049d('0x20f4'),{'total':_0x4f83e7['selectedDispositions'][_0x11049d('0x1e22')]}))[_0x11049d('0xb2e')](_0x11049d('0x1ef9'))[_0x11049d('0x1e25')](_0x1c3aba)['ok']('OK')[_0x11049d('0x26c9')](_0x56203a[_0x11049d('0x10c2')](_0x11049d('0xa5d')));_0x1c6425[_0x11049d('0xb9')](_0x3e7113)[_0x11049d('0x11bf')](function(){const _0x5643e9=_0x11049d;_0x4f83e7[_0x5643e9('0x21ae')]['forEach'](function(_0x3aea5b){_0x4a6178(_0x3aea5b);}),_0x4f83e7[_0x5643e9('0x21ae')]=[];});}function _0x39521c(){const _0x1b5bca=_0x2dcffc;_0x4f83e7[_0x1b5bca('0x21ae')]=[];}function _0x8d62fa(){const _0xed2a6f=_0x2dcffc;_0x4f83e7[_0xed2a6f('0x21ae')]=_0x4f83e7[_0xed2a6f('0x1394')][_0xed2a6f('0x19b2')];}let _0x2fbc43=!![],_0x5e5fb1=0x1;_0x1bab1c[_0x2dcffc('0x2087')](_0x2dcffc('0x1d12'),function(_0x38ef91,_0x2ddb1){const _0x2467af=_0x2dcffc;_0x2fbc43?_0x33d0f1(function(){_0x2fbc43=![];}):(!_0x2ddb1&&(_0x5e5fb1=_0x4f83e7[_0x2467af('0x1f2a')][_0x2467af('0x1c2')]),_0x38ef91!==_0x2ddb1&&(_0x4f83e7['query'][_0x2467af('0x1c2')]=0x1),!_0x38ef91&&(_0x4f83e7[_0x2467af('0x1f2a')]['page']=_0x5e5fb1),_0x51d0c2());});}const _0x1d37a2=_0x1b1393,_0x48ba71=_0x351988['p']+_0x21d0f5('0x2746');_0x4bcda7[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0x2143'),_0x21d0f5('0xcbc'),'$mdSidenav',_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),_0x21d0f5('0x17f5'),_0x21d0f5('0xb6b'),_0x21d0f5('0xeaa'),_0x21d0f5('0x25bc'),'userProfileSection',_0x21d0f5('0x12a5'),_0x21d0f5('0xda9'),_0x21d0f5('0x142d'),'Auth',_0x21d0f5('0x17ff'),'setting'];function _0x4bcda7(_0x41bfd0,_0x35672b,_0xbfd71f,_0x427c87,_0x57f469,_0x541693,_0xbd9433,_0x223b70,_0x558510,_0x3d9889,_0x52a560,_0x21cb94,_0x7c0c93,_0x35360b,_0x371a10,_0xcc9032,_0xe30797){const _0x490293=_0x21d0f5,_0x1768f=this;_0x1768f['license']=_0xcc9032,_0x1768f['setting']=_0xe30797,_0x1768f['currentUser']=_0x371a10['getCurrentUser'](),_0x1768f[_0x490293('0xeaa')]=_0x558510||{'count':0x0,'rows':[]},_0x1768f[_0x490293('0x25bc')]=_0x3d9889,_0x1768f['userProfileSection']=_0x52a560&&_0x52a560[_0x490293('0x27d2')]==0x1?_0x52a560[_0x490293('0x19b2')][0x0]:null,_0x1768f['crudPermissions']=_0x371a10['parseCrudPermissions'](_0x1768f[_0x490293('0x1d63')]?_0x1768f[_0x490293('0x1d63')][_0x490293('0xb25')]:null),_0x1768f['table']=_0x490293('0xeaa'),_0x1768f[_0x490293('0x724')]='',_0x1768f[_0x490293('0xe3c')]=null,_0x1768f[_0x490293('0x208')]=[],_0x1768f[_0x490293('0x1f2a')]={'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':_0x490293('0x1c74'),'limit':0xa,'page':0x1},_0x1768f['arraytype']=_0x36f548()[_0x490293('0x2130')]([{'option':_0x490293('0x16ad'),'value':_0x490293('0x108d')}],function(_0x5b3ee1){const _0x277e45=_0x490293;return _0x36f548()[_0x277e45('0x814')](_0x5b3ee1[_0x277e45('0x10cc')],new RegExp('\x27','g'),'');}),_0x1768f[_0x490293('0x757')]=_0x4a6adb,_0x1768f[_0x490293('0x1ab2')]=_0x32f5f1,_0x1768f[_0x490293('0x2363')]=_0x3fff94,_0x1768f[_0x490293('0x549')]=_0x851916,_0x1768f[_0x490293('0x2693')]=_0x4cfb94,_0x1768f['getWhatsappAccounts']=_0x52b583,_0x1768f['createOrEditWhatsappAccount']=_0x94957e,_0x1768f[_0x490293('0x228')]=_0x8379ac,_0x1768f['exportSelectedWhatsappAccounts']=_0xa9118a,_0x1768f[_0x490293('0x283c')]=_0x368226,_0x1768f[_0x490293('0x937')]=_0x48c7dd,_0x1768f[_0x490293('0x4cd')]=_0x43344e,_0x371a10[_0x490293('0x4ee')](_0x490293('0xf45'))?_0x21cb94[_0x490293('0xbef')][_0x490293('0xbaa')]({'fields':_0x490293('0x721'),'sort':_0x490293('0x1909')})[_0x490293('0x1549')][_0x490293('0x11bf')](function(_0x2d4372){const _0x5e7e64=_0x490293;_0x1768f['lists']=_0x2d4372[_0x5e7e64('0x19b2')]||[];})['catch'](function(_0x3f7ebe){const _0x526941=_0x490293;_0x35360b['error']({'title':_0x3f7ebe[_0x526941('0xff9')]?_0x526941('0x574')+_0x3f7ebe[_0x526941('0xff9')]+_0x526941('0xb0b')+_0x3f7ebe[_0x526941('0x212f')]:'SYSTEM:GET_LISTS','msg':_0x3f7ebe[_0x526941('0x4e8')]?JSON[_0x526941('0x3e')](_0x3f7ebe['data']):_0x3f7ebe[_0x526941('0xaab')]()});}):_0x21cb94[_0x490293('0xbef')][_0x490293('0xbaa')]({'fields':_0x490293('0x721'),'sort':_0x490293('0x1909')})[_0x490293('0x1549')]['then'](function(_0x58e97a){const _0x3724f0=_0x490293;_0x1768f[_0x3724f0('0x2410')]=_0x58e97a['rows']||[];})[_0x490293('0x11bf')](function(){const _0x44b032=_0x490293;return _0x21cb94[_0x44b032('0x1d63')][_0x44b032('0xbaa')]({'userProfileId':_0x1768f[_0x44b032('0x32a')][_0x44b032('0x781')],'sectionId':0x12d})[_0x44b032('0x1549')];})[_0x490293('0x11bf')](function(_0x4c2146){const _0x483023=_0x490293,_0x87eec=_0x4c2146&&_0x4c2146[_0x483023('0x19b2')]?_0x4c2146[_0x483023('0x19b2')][0x0]:null;if(!_0x87eec){const _0x5a76ed=[];let _0x5e37e4=null;_0x1768f['whatsappAccount']&&(_0x5e37e4=_0x36f548()[_0x483023('0x1ad4')](_0x1768f[_0x483023('0x2410')],{'id':Number(_0x1768f[_0x483023('0x2295')][_0x483023('0x1e91')])}));for(let _0x526079=0x0;_0x526079<_0x1768f[_0x483023('0x2410')][_0x483023('0x1e22')];_0x526079++){_0x5e37e4&&_0x1768f[_0x483023('0x2410')][_0x526079]['id']===_0x5e37e4['id']&&(_0x1768f['lists'][_0x526079][_0x483023('0x254a')]=![],_0x5a76ed[_0x483023('0x105d')](_0x1768f[_0x483023('0x2410')][_0x526079]));}_0x1768f['lists']=_0x5a76ed;}else{if(!_0x87eec[_0x483023('0xf11')])return _0x21cb94[_0x483023('0x26d1')]['get']({'sectionId':_0x87eec['id']})[_0x483023('0x1549')][_0x483023('0x11bf')](function(_0x1434a4){const _0x236287=_0x483023,_0x547211=_0x36f548()[_0x236287('0x2171')](_0x1434a4[_0x236287('0x19b2')],function(_0x24064a){const _0x28bbc0=_0x236287;return _0x36f548()[_0x28bbc0('0x1ad4')](_0x1768f['lists'],{'id':_0x24064a[_0x28bbc0('0x15a5')]});});let _0x5ba08b=null;_0x1768f['whatsappAccount']&&(_0x5ba08b=_0x36f548()[_0x236287('0x1ad4')](_0x1768f['lists'],{'id':Number(_0x1768f['whatsappAccount'][_0x236287('0x1e91')])}));if(_0x5ba08b&&!_0x36f548()[_0x236287('0x1cb3')](_0x547211,['id',_0x5ba08b['id']])){const _0x298e4e=_0x36f548()[_0x236287('0x1ad4')](_0x1768f['lists'],{'id':_0x5ba08b['id']});_0x298e4e[_0x236287('0x254a')]=![],_0x547211[_0x236287('0x105d')](_0x298e4e);}_0x1768f['lists']=_0x547211;});}})[_0x490293('0x151d')](function(_0x2c218e){const _0x588a7b=_0x490293;_0x35360b[_0x588a7b('0x255')]({'title':_0x2c218e[_0x588a7b('0xff9')]?'API:'+_0x2c218e[_0x588a7b('0xff9')]+'\x20-\x20'+_0x2c218e[_0x588a7b('0x212f')]:_0x588a7b('0xb71'),'msg':_0x2c218e['data']?JSON[_0x588a7b('0x3e')](_0x2c218e[_0x588a7b('0x4e8')]):_0x2c218e[_0x588a7b('0xaab')]()});}),_0x371a10[_0x490293('0x4ee')]('admin')?_0x21cb94[_0x490293('0x92a')][_0x490293('0xbaa')]({'fields':_0x490293('0xaae'),'sort':_0x490293('0x1909'),'nolimit':_0x490293('0x204c')})['$promise'][_0x490293('0x11bf')](function(_0x44d762){const _0x27efa6=_0x490293;_0x1768f[_0x27efa6('0x12f2')]=_0x44d762[_0x27efa6('0x19b2')]||[];})['catch'](function(_0xeba1c4){const _0x5826ba=_0x490293;_0x35360b[_0x5826ba('0x255')]({'title':_0xeba1c4['status']?_0x5826ba('0x574')+_0xeba1c4[_0x5826ba('0xff9')]+_0x5826ba('0xb0b')+_0xeba1c4[_0x5826ba('0x212f')]:'SYSTEM:GET_PAUSES','msg':_0xeba1c4[_0x5826ba('0x4e8')]?JSON[_0x5826ba('0x3e')](_0xeba1c4[_0x5826ba('0x4e8')]):_0xeba1c4[_0x5826ba('0xaab')]()});}):_0x21cb94[_0x490293('0x92a')][_0x490293('0xbaa')]({'fields':_0x490293('0xaae'),'sort':_0x490293('0x1909'),'nolimit':'true'})[_0x490293('0x1549')][_0x490293('0x11bf')](function(_0x2934f5){const _0x2a536e=_0x490293;_0x1768f['pauses']=_0x2934f5[_0x2a536e('0x19b2')]||[];})[_0x490293('0x11bf')](function(){const _0x3a6d3a=_0x490293;return _0x21cb94[_0x3a6d3a('0x1d63')][_0x3a6d3a('0xbaa')]({'userProfileId':_0x1768f[_0x3a6d3a('0x32a')][_0x3a6d3a('0x781')],'sectionId':0x3ed})[_0x3a6d3a('0x1549')];})['then'](function(_0x423ae0){const _0x5c51f0=_0x490293,_0x1f5d59=_0x423ae0&&_0x423ae0['rows']?_0x423ae0[_0x5c51f0('0x19b2')][0x0]:null;if(!_0x1f5d59)_0x1768f[_0x5c51f0('0x12f2')]=[];else{if(!_0x1f5d59['autoAssociation'])return _0x21cb94[_0x5c51f0('0x26d1')][_0x5c51f0('0xbaa')]({'sectionId':_0x1f5d59['id']})[_0x5c51f0('0x1549')][_0x5c51f0('0x11bf')](function(_0x30e1b2){const _0x803aba=_0x5c51f0,_0x54d1de=_0x36f548()[_0x803aba('0x2171')](_0x30e1b2[_0x803aba('0x19b2')],function(_0x239ba6){const _0x59294f=_0x803aba;return _0x36f548()[_0x59294f('0x1ad4')](_0x1768f[_0x59294f('0x12f2')],{'id':_0x239ba6[_0x59294f('0x15a5')]});});_0x1768f[_0x803aba('0x12f2')][_0x803aba('0x1f88')](function(_0x2cdc05){const _0x389f55=_0x803aba;!_0x36f548()[_0x389f55('0x1cb3')](_0x54d1de,['id',_0x2cdc05['id']])&&(_0x2cdc05[_0x389f55('0x254a')]=![]),_0x54d1de[_0x389f55('0x105d')](_0x2cdc05);}),_0x1768f[_0x803aba('0x12f2')]=_0x54d1de;});}})[_0x490293('0x151d')](function(_0x233e45){const _0xe039fe=_0x490293;_0x35360b['error']({'title':_0x233e45[_0xe039fe('0xff9')]?_0xe039fe('0x574')+_0x233e45[_0xe039fe('0xff9')]+_0xe039fe('0xb0b')+_0x233e45[_0xe039fe('0x212f')]:_0xe039fe('0x1c82'),'msg':_0x233e45['data']?JSON[_0xe039fe('0x3e')](_0x233e45['data']):_0x233e45[_0xe039fe('0xaab')]()});});function _0x4a6adb(_0x1a3906){const _0x1bd3c1=_0x490293;_0xbfd71f['go'](_0x1bd3c1('0x1c35'),{'id':_0x1a3906['id'],'whatsappAccount':_0x1a3906,'crudPermissions':_0x1768f[_0x1bd3c1('0xb25')]});}function _0x32f5f1(_0x4bdf0e){const _0x3579b0=_0x490293;_0xbfd71f['go'](_0x3579b0('0x1c35'),{'id':_0x4bdf0e['id'],'tab':0x5});}function _0x3fff94(_0x26f81c,_0x14fe63){const _0x519779=_0x490293;_0x57f469[_0x519779('0xb9')]({'controller':'WhatsappAccountagentaddController','controllerAs':'vm','templateUrl':_0x184283,'parent':angular['element'](_0x541693[_0x519779('0x1d2')]),'targetEvent':_0x14fe63,'clickOutsideToClose':!![],'locals':{'whatsappAccount':_0x26f81c,'whatsappAccounts':_0x1768f[_0x519779('0xeaa')]?_0x1768f[_0x519779('0xeaa')][_0x519779('0x19b2')]:[],'crudPermissions':_0x1768f[_0x519779('0xb25')],'realtime':![]}});}function _0x851916(_0x4edb5f,_0x37dadb){const _0x293cb6=_0x490293,_0x443a2d=_0x57f469[_0x293cb6('0x132b')]()[_0x293cb6('0x134b')](_0x293cb6('0x1796')+_0x36f548()[_0x293cb6('0x13cf')](_0x293cb6('0x2295'))+'?')[_0x293cb6('0x1d03')](''+(_0x4edb5f[_0x293cb6('0x1909')]||'whatsappAccount')+''+_0x293cb6('0x1a'))['ariaLabel'](_0x293cb6('0xbd0'))[_0x293cb6('0x1e25')](_0x37dadb)['ok']('OK')['cancel'](_0x293cb6('0x772'));_0x57f469[_0x293cb6('0xb9')](_0x443a2d)[_0x293cb6('0x11bf')](function(){_0x8379ac(_0x4edb5f);},function(){const _0xb885b5=_0x293cb6;console[_0xb885b5('0xc78')](_0xb885b5('0x772'));});}let _0x1e23dc=!![],_0x4162ac=0x1;_0x41bfd0[_0x490293('0x2087')](_0x490293('0x842'),function(_0x4cba3c,_0x2e2d7e){const _0x2eafad=_0x490293;_0x1e23dc?_0xbd9433(function(){_0x1e23dc=![];}):(!_0x2e2d7e&&(_0x4162ac=_0x1768f[_0x2eafad('0x1f2a')][_0x2eafad('0x1c2')]),_0x4cba3c!==_0x2e2d7e&&(_0x1768f[_0x2eafad('0x1f2a')]['page']=0x1),!_0x4cba3c&&(_0x1768f[_0x2eafad('0x1f2a')][_0x2eafad('0x1c2')]=_0x4162ac),_0x1768f[_0x2eafad('0x1a81')]());});function _0x4cfb94(_0x5c71dd){_0x1768f['whatsappAccounts']=_0x5c71dd||{'count':0x0,'rows':[]};}function _0x52b583(){const _0x34d027=_0x490293;_0x1768f[_0x34d027('0x1f2a')][_0x34d027('0x1393')]=(_0x1768f[_0x34d027('0x1f2a')]['page']-0x1)*_0x1768f['query']['limit'],_0x371a10[_0x34d027('0x4ee')](_0x34d027('0xf45'))?_0x1768f[_0x34d027('0x13f')]=_0x21cb94[_0x34d027('0x2295')][_0x34d027('0xbaa')](_0x1768f['query'],_0x4cfb94)['$promise']:(_0x1768f[_0x34d027('0x1f2a')]['id']=_0x1768f[_0x34d027('0x25bc')]['id'],_0x1768f[_0x34d027('0x1f2a')]['section']=_0x34d027('0x95f'),_0x1768f[_0x34d027('0x13f')]=_0x21cb94['userProfile'][_0x34d027('0x228e')](_0x1768f[_0x34d027('0x1f2a')],_0x4cfb94)[_0x34d027('0x1549')]);}function _0x94957e(_0x453ba0,_0x5dd9f3){const _0xa1d9ed=_0x490293;_0x57f469['show']({'controller':_0xa1d9ed('0xb7c'),'controllerAs':'vm','templateUrl':_0x48ba71,'parent':angular[_0xa1d9ed('0x1e73')](_0x541693['body']),'targetEvent':_0x453ba0,'clickOutsideToClose':!![],'locals':{'whatsappAccount':_0x5dd9f3,'whatsappAccounts':_0x1768f[_0xa1d9ed('0xeaa')][_0xa1d9ed('0x19b2')],'license':_0x1768f[_0xa1d9ed('0x17ff')],'setting':_0x1768f[_0xa1d9ed('0x23e1')],'crudPermissions':_0x1768f[_0xa1d9ed('0xb25')]}});}function _0x8379ac(_0x49c291){const _0xe535c1=_0x490293;_0x21cb94['whatsappAccount']['delete']({'id':_0x49c291['id']})['$promise'][_0xe535c1('0x11bf')](function(){const _0x59d9bd=_0xe535c1;_0x36f548()['remove'](_0x1768f[_0x59d9bd('0xeaa')][_0x59d9bd('0x19b2')],{'id':_0x49c291['id']}),_0x1768f[_0x59d9bd('0xeaa')]['count']-=0x1,!_0x1768f[_0x59d9bd('0xeaa')][_0x59d9bd('0x19b2')][_0x59d9bd('0x1e22')]&&_0x1768f[_0x59d9bd('0x1a81')](),_0x35360b[_0x59d9bd('0x2693')]({'title':_0x36f548()[_0x59d9bd('0x13cf')](_0x59d9bd('0x243d'))+_0x59d9bd('0x2113'),'msg':_0x49c291[_0x59d9bd('0x1909')]?_0x49c291['name']+'\x20has\x20been\x20deleted!':''});})[_0xe535c1('0x151d')](function(_0x99a439){const _0x1c4481=_0xe535c1;if(_0x99a439['data']&&_0x99a439[_0x1c4481('0x4e8')][_0x1c4481('0x120f')]&&_0x99a439[_0x1c4481('0x4e8')]['errors'][_0x1c4481('0x1e22')]){_0x1768f[_0x1c4481('0x120f')]=_0x99a439['data'][_0x1c4481('0x120f')]||[{'message':_0x99a439['toString'](),'type':_0x1c4481('0x1f35')}];for(let _0x4db4d4=0x0;_0x4db4d4<_0x99a439[_0x1c4481('0x4e8')][_0x1c4481('0x120f')][_0x1c4481('0x1e22')];_0x4db4d4++){_0x35360b['error']({'title':_0x99a439[_0x1c4481('0x4e8')]['errors'][_0x4db4d4][_0x1c4481('0x19fd')],'msg':_0x99a439['data']['errors'][_0x4db4d4]['message']});}}else _0x35360b[_0x1c4481('0x255')]({'title':_0x99a439[_0x1c4481('0xff9')]?_0x1c4481('0x574')+_0x99a439[_0x1c4481('0xff9')]+_0x1c4481('0xb0b')+_0x99a439[_0x1c4481('0x212f')]:_0x1c4481('0x1f35'),'msg':_0x99a439[_0x1c4481('0x4e8')]?JSON['stringify'](_0x99a439['data'][_0x1c4481('0x1b86')]):_0x99a439[_0x1c4481('0x1b86')]||_0x99a439[_0x1c4481('0xaab')]()});});}function _0xa9118a(){const _0x1fdcee=_0x490293,_0x979ffb=angular[_0x1fdcee('0x6fb')](_0x1768f[_0x1fdcee('0x208')]);return _0x1768f[_0x1fdcee('0x208')]=[],_0x979ffb;}function _0x368226(_0x489701){const _0x550415=_0x490293,_0x447afd=_0x57f469[_0x550415('0x132b')]()[_0x550415('0x134b')](_0x550415('0x26cf'))[_0x550415('0x1d03')](_0x550415('0x2061')+_0x1768f[_0x550415('0x208')][_0x550415('0x1e22')]+_0x550415('0xac6')+_0x550415('0x1a'))[_0x550415('0xb2e')](_0x550415('0x23a7'))[_0x550415('0x1e25')](_0x489701)['ok']('OK')['cancel']('CANCEL');_0x57f469[_0x550415('0xb9')](_0x447afd)[_0x550415('0x11bf')](function(){const _0x15fae7=_0x550415;_0x1768f[_0x15fae7('0x208')][_0x15fae7('0x1f88')](function(_0xc5ff15){_0x8379ac(_0xc5ff15);}),_0x1768f[_0x15fae7('0x208')]=[];});}function _0x48c7dd(){const _0x24ba41=_0x490293;_0x1768f[_0x24ba41('0x208')]=[];}function _0x43344e(){const _0x47ee6f=_0x490293;_0x1768f[_0x47ee6f('0x208')]=_0x1768f[_0x47ee6f('0xeaa')][_0x47ee6f('0x19b2')];}}const _0x2d3fbf=_0x4bcda7;_0x5242ac[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0xcbc'),_0x21d0f5('0x16b9'),'$mdDialog','$q',_0x21d0f5('0xb6b'),_0x21d0f5('0x142d'),'whatsappQueues',_0x21d0f5('0x1d53'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1'),_0x21d0f5('0xb25')];function _0x5242ac(_0x47638b,_0x2ec97f,_0x527176,_0x1e6a8b,_0x9cd2eb,_0x51af45,_0x399342,_0x18def2,_0x5d07f2,_0x2eba1f,_0x371436,_0x508c3c,_0x5f5bd8,_0xa45d4d){const _0x57c7dd=_0x21d0f5,_0x1521e9=this;_0x1521e9['currentUser']=_0x371436[_0x57c7dd('0x2428')](),_0x1521e9[_0x57c7dd('0x120f')]=[],_0x1521e9[_0x57c7dd('0x23e1')]=_0x5f5bd8,_0x1521e9[_0x57c7dd('0x17ff')]=_0x508c3c,_0x1521e9['crudPermissions']=_0xa45d4d,_0x1521e9[_0x57c7dd('0x2c9')]={},_0x1521e9[_0x57c7dd('0x2834')]=_0x1521e9[_0x57c7dd('0x23e1')]&&_0x1521e9[_0x57c7dd('0x23e1')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1521e9['title']=_0x57c7dd('0x1e54'),_0x1521e9['whatsappQueue']=angular[_0x57c7dd('0x6fb')](_0x5d07f2),_0x1521e9[_0x57c7dd('0x1e0c')]=_0x18def2,_0x1521e9[_0x57c7dd('0xaa6')]=![];!_0x1521e9[_0x57c7dd('0x1d53')]&&(_0x1521e9[_0x57c7dd('0x1d53')]={'strategy':_0x57c7dd('0x1b76'),'timeout':0xa},_0x1521e9[_0x57c7dd('0x134b')]='WHATSAPP.NEW_WHATSAPPQUEUE',_0x1521e9[_0x57c7dd('0xaa6')]=!![]);_0x1521e9[_0x57c7dd('0x23df')]=_0x30792c,_0x1521e9[_0x57c7dd('0x1938')]=_0x4b9fb8,_0x1521e9[_0x57c7dd('0x1547')]=_0x115a4f,_0x1521e9[_0x57c7dd('0x1bd1')]=_0x312beb,_0x1521e9[_0x57c7dd('0xc4e')]=_0x56c223;function _0x30792c(){const _0x488dfe=_0x57c7dd;_0x1521e9['errors']=[],_0x2eba1f[_0x488dfe('0x1d53')][_0x488dfe('0x259')](_0x1521e9[_0x488dfe('0x1d53')])[_0x488dfe('0x1549')]['then'](function(_0x3109dc){const _0x47648=_0x488dfe;_0x1521e9['whatsappQueues'][_0x47648('0x880')](_0x3109dc[_0x47648('0x2866')]()),_0x399342[_0x47648('0x2693')]({'title':_0x47648('0x42c'),'msg':_0x1521e9[_0x47648('0x1d53')][_0x47648('0x1909')]?_0x1521e9[_0x47648('0x1d53')][_0x47648('0x1909')]+_0x47648('0x7fb'):''}),_0x56c223(_0x3109dc);})[_0x488dfe('0x151d')](function(_0x483d73){const _0xae8444=_0x488dfe;if(_0x483d73[_0xae8444('0x4e8')]&&_0x483d73[_0xae8444('0x4e8')][_0xae8444('0x120f')]&&_0x483d73[_0xae8444('0x4e8')]['errors'][_0xae8444('0x1e22')]){_0x1521e9[_0xae8444('0x120f')]=_0x483d73[_0xae8444('0x4e8')][_0xae8444('0x120f')]||[{'message':_0x483d73[_0xae8444('0xaab')](),'type':_0xae8444('0x242c')}];for(let _0x3b91c3=0x0;_0x3b91c3<_0x483d73[_0xae8444('0x4e8')][_0xae8444('0x120f')]['length'];_0x3b91c3+=0x1){_0x399342[_0xae8444('0x255')]({'title':_0x483d73[_0xae8444('0x4e8')][_0xae8444('0x120f')][_0x3b91c3]['type'],'msg':_0x483d73[_0xae8444('0x4e8')][_0xae8444('0x120f')][_0x3b91c3]['message']});}}else _0x399342[_0xae8444('0x255')]({'title':_0x483d73[_0xae8444('0xff9')]?_0xae8444('0x574')+_0x483d73[_0xae8444('0xff9')]+_0xae8444('0xb0b')+_0x483d73[_0xae8444('0x212f')]:'api.whatsappQueue.save','msg':_0x483d73[_0xae8444('0x4e8')]?JSON[_0xae8444('0x3e')](_0x483d73[_0xae8444('0x4e8')][_0xae8444('0x1b86')]):_0x483d73[_0xae8444('0xaab')]()});});}function _0x4b9fb8(){const _0x51e41a=_0x57c7dd;_0x1521e9['errors']=[],_0x2eba1f[_0x51e41a('0x1d53')][_0x51e41a('0x5ab')]({'id':_0x1521e9[_0x51e41a('0x1d53')]['id']},_0x1521e9['whatsappQueue'])[_0x51e41a('0x1549')][_0x51e41a('0x11bf')](function(_0x4bad1a){const _0x3af82f=_0x51e41a,_0x153e3c=_0x36f548()[_0x3af82f('0x1ad4')](_0x1521e9['whatsappQueues'],{'id':_0x4bad1a['id']});_0x153e3c&&_0x36f548()[_0x3af82f('0x47b')](_0x153e3c,_0x36f548()[_0x3af82f('0x258')](_0x4bad1a[_0x3af82f('0x2866')](),_0x36f548()[_0x3af82f('0xe22')](_0x153e3c))),_0x399342[_0x3af82f('0x2693')]({'title':_0x3af82f('0x74a'),'msg':_0x1521e9[_0x3af82f('0x1d53')]['name']?_0x1521e9[_0x3af82f('0x1d53')]['name']+_0x3af82f('0x1a78'):''}),_0x56c223(_0x4bad1a);})['catch'](function(_0x252e63){const _0xd8ff4=_0x51e41a;if(_0x252e63[_0xd8ff4('0x4e8')]&&_0x252e63['data']['errors']&&_0x252e63[_0xd8ff4('0x4e8')][_0xd8ff4('0x120f')]['length']){_0x1521e9[_0xd8ff4('0x120f')]=_0x252e63['data'][_0xd8ff4('0x120f')]||[{'message':_0x252e63[_0xd8ff4('0xaab')](),'type':'api.whatsappQueue.update'}];for(let _0xbb2d81=0x0;_0xbb2d81<_0x252e63[_0xd8ff4('0x4e8')][_0xd8ff4('0x120f')]['length'];_0xbb2d81++){_0x399342['error']({'title':_0x252e63[_0xd8ff4('0x4e8')]['errors'][_0xbb2d81]['type'],'msg':_0x252e63[_0xd8ff4('0x4e8')]['errors'][_0xbb2d81][_0xd8ff4('0x1b86')]});}}else _0x399342[_0xd8ff4('0x255')]({'title':_0x252e63[_0xd8ff4('0xff9')]?_0xd8ff4('0x574')+_0x252e63['status']+_0xd8ff4('0xb0b')+_0x252e63[_0xd8ff4('0x212f')]:'api.whatsappQueue.update','msg':_0x252e63['data']?JSON[_0xd8ff4('0x3e')](_0x252e63[_0xd8ff4('0x4e8')][_0xd8ff4('0x1b86')]):_0x252e63[_0xd8ff4('0xaab')]()});});}function _0x115a4f(_0x41908c){const _0x4d7c1e=_0x57c7dd;_0x1521e9['errors']=[];const _0xdbbf5e=_0x1e6a8b[_0x4d7c1e('0x132b')]()[_0x4d7c1e('0x134b')](_0x4d7c1e('0x1fa9'))[_0x4d7c1e('0x252a')](_0x4d7c1e('0x1e6'))['ariaLabel']('Delete\x20WhatsappQueue')['ok'](_0x4d7c1e('0x1167'))[_0x4d7c1e('0x26c9')](_0x4d7c1e('0x784'))[_0x4d7c1e('0x1e25')](_0x41908c);_0x1e6a8b[_0x4d7c1e('0xb9')](_0xdbbf5e)[_0x4d7c1e('0x11bf')](function(){const _0x9e2a4c=_0x4d7c1e;_0x2eba1f[_0x9e2a4c('0x1d53')][_0x9e2a4c('0x2088')]({'id':_0x1521e9[_0x9e2a4c('0x1d53')]['id']})['$promise'][_0x9e2a4c('0x11bf')](function(){const _0x401aa3=_0x9e2a4c;_0x36f548()[_0x401aa3('0x14a5')](_0x1521e9['whatsappQueues'],{'id':_0x1521e9['whatsappQueue']['id']}),_0x399342[_0x401aa3('0x2693')]({'title':'WhatsappQueue\x20properly\x20deleted!','msg':(_0x1521e9[_0x401aa3('0x1d53')][_0x401aa3('0x1909')]||'whatsappQueue')+'\x20has\x20been\x20deleted!'}),_0x56c223(_0x1521e9['whatsappQueue']);})[_0x9e2a4c('0x151d')](function(_0x2bff2a){const _0x4bd4d2=_0x9e2a4c;if(_0x2bff2a['data']&&_0x2bff2a[_0x4bd4d2('0x4e8')]['errors']&&_0x2bff2a[_0x4bd4d2('0x4e8')]['errors'][_0x4bd4d2('0x1e22')]){_0x1521e9[_0x4bd4d2('0x120f')]=_0x2bff2a['data'][_0x4bd4d2('0x120f')]||[{'message':_0x2bff2a[_0x4bd4d2('0xaab')](),'type':_0x4bd4d2('0x3a1')}];for(let _0x2fc538=0x0;_0x2fc538<_0x2bff2a[_0x4bd4d2('0x4e8')][_0x4bd4d2('0x120f')]['length'];_0x2fc538++){_0x399342['error']({'title':_0x2bff2a[_0x4bd4d2('0x4e8')]['errors'][_0x2fc538][_0x4bd4d2('0x19fd')],'msg':_0x2bff2a[_0x4bd4d2('0x4e8')][_0x4bd4d2('0x120f')][_0x2fc538][_0x4bd4d2('0x1b86')]});}}else _0x399342[_0x4bd4d2('0x255')]({'title':_0x2bff2a[_0x4bd4d2('0xff9')]?'API:'+_0x2bff2a['status']+_0x4bd4d2('0xb0b')+_0x2bff2a[_0x4bd4d2('0x212f')]:_0x4bd4d2('0x3a1'),'msg':_0x2bff2a[_0x4bd4d2('0x4e8')]?JSON['stringify'](_0x2bff2a['data']['message']):_0x2bff2a['message']||_0x2bff2a['toString']()});});},function(){});}function _0x312beb(_0x39d0ec){return _0x39d0ec===null?undefined:new Date(_0x39d0ec);}function _0x56c223(_0x407607){const _0x590093=_0x57c7dd;_0x1e6a8b[_0x590093('0x237e')](_0x407607);}}const _0x3e665a=_0x5242ac;_0x7bb256[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0x142d'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1d53'),_0x21d0f5('0x1e0c'),_0x21d0f5('0x25f9'),_0x21d0f5('0xb6b'),_0x21d0f5('0x1150'),'crudPermissions'];function _0x7bb256(_0xd1b181,_0x4b0889,_0x5503ec,_0x53ce54,_0x359107,_0x29e6f9,_0x3c8d1c,_0x26794f,_0x64e32,_0x1a9c83){const _0x2a6b49=_0x21d0f5,_0x5a2346=this;_0x5a2346[_0x2a6b49('0x32a')]=_0x64e32[_0x2a6b49('0x2428')](),_0x5a2346[_0x2a6b49('0x1d53')]=_0x359107,_0x5a2346[_0x2a6b49('0xb25')]=_0x1a9c83,_0x5a2346['realtime']=_0x3c8d1c,_0x5a2346['items']=[],_0x5a2346[_0x2a6b49('0x63')]=[],_0x5a2346[_0x2a6b49('0x26cc')]=[],_0x5a2346['startingAllowedItems']=[],_0x5a2346['startingSelectedItems']=[],_0x5a2346[_0x2a6b49('0x1eda')]=![],_0x5a2346[_0x2a6b49('0x277c')]=_0x1e0f2f,_0x5a2346[_0x2a6b49('0x280')]=_0x1d5da2,_0x5a2346[_0x2a6b49('0xc4e')]=_0x573132,_0x5a2346[_0x2a6b49('0xec5')]={'readOnly':!_0x5a2346['crudPermissions'][_0x2a6b49('0x25db')],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x2a6b49('0x1909'),'line1':_0x2a6b49('0x27af'),'line2':[_0x2a6b49('0x1909'),_0x2a6b49('0x1a04')],'line3':'','labelAll':_0x26794f[_0x2a6b49('0x10c2')](_0x2a6b49('0x250e')),'labelSelected':_0x26794f[_0x2a6b49('0x10c2')]('APP.SELECTED_AGENTS'),'transferCallback':function(){const _0x1352f4=_0x2a6b49,_0x26cf8d=_0x36f548()['xorBy'](_0x5a2346[_0x1352f4('0x21ed')],_0x5a2346[_0x1352f4('0x26cc')],'id');_0x5a2346['pendingChanges']=_0x36f548()[_0x1352f4('0x1fc5')](_0x26cf8d)?![]:!![];}};function _0x1e0f2f(){const _0x2c3081=_0x2a6b49;return _0x64e32[_0x2c3081('0x4ee')](_0x2c3081('0xf45'))?_0x404da9()[_0x2c3081('0x151d')](function(_0x310b55){const _0x4685e8=_0x2c3081;_0x5503ec['error']({'title':_0x310b55[_0x4685e8('0xff9')]?_0x4685e8('0x574')+_0x310b55[_0x4685e8('0xff9')]+'\x20-\x20'+_0x310b55[_0x4685e8('0x212f')]:_0x4685e8('0x912'),'msg':_0x310b55['status']?JSON[_0x4685e8('0x3e')](_0x310b55[_0x4685e8('0x4e8')]):_0x310b55[_0x4685e8('0xaab')]()});}):_0x17a8f3()[_0x2c3081('0x11bf')](function(_0x5464c1){return _0x5a2346['section']=_0x5464c1,_0x404da9();})[_0x2c3081('0x151d')](function(_0x3c90a4){const _0x19ccc8=_0x2c3081;_0x5503ec[_0x19ccc8('0x255')]({'title':_0x3c90a4['status']?_0x19ccc8('0x574')+_0x3c90a4[_0x19ccc8('0xff9')]+_0x19ccc8('0xb0b')+_0x3c90a4[_0x19ccc8('0x212f')]:_0x19ccc8('0x912'),'msg':_0x3c90a4['status']?JSON[_0x19ccc8('0x3e')](_0x3c90a4[_0x19ccc8('0x4e8')]):_0x3c90a4['toString']()});});}function _0x17a8f3(){return _0x4b0889(function(_0x16a779,_0x57c337){const _0xd6f30f=a0_0xaf0c;_0x53ce54[_0xd6f30f('0x1d63')]['get']({'userProfileId':_0x5a2346[_0xd6f30f('0x32a')][_0xd6f30f('0x781')],'name':'Agents'})[_0xd6f30f('0x1549')][_0xd6f30f('0x11bf')](function(_0x33164d){const _0x16e0f7=_0xd6f30f,_0x2eda48=_0x33164d&&_0x33164d['rows']?_0x33164d[_0x16e0f7('0x19b2')][0x0]:null;_0x16a779(_0x2eda48);})[_0xd6f30f('0x151d')](function(_0x1a378f){_0x57c337(_0x1a378f);});});}function _0x404da9(){return _0x4b0889(function(_0xd103f9,_0x4a3042){const _0x1f5a97=a0_0xaf0c;return _0x2b855c()[_0x1f5a97('0x11bf')](function(_0x4a94eb){const _0x378a12=_0x1f5a97;return _0x5a2346[_0x378a12('0x22')]=_0x4a94eb['rows']?_0x4a94eb[_0x378a12('0x19b2')]:[],_0x64e32[_0x378a12('0x4ee')]('admin')?_0x4a94eb:_0x5a2346[_0x378a12('0xe6')]?_0x5a2346[_0x378a12('0xe6')][_0x378a12('0xf11')]?_0x4a94eb:_0x54cc36():null;})[_0x1f5a97('0x11bf')](function(_0x2f9977){const _0x4db136=_0x1f5a97,_0x175a17=_0x2f9977&&_0x2f9977[_0x4db136('0x19b2')]?_0x2f9977['rows']:[];return _0x5a2346[_0x4db136('0x63')]=_0x36f548()[_0x4db136('0x2171')](_0x175a17,function(_0x1d6add){const _0x5d4887=_0x4db136;return _0x36f548()[_0x5d4887('0x1ad4')](_0x5a2346['items'],{'id':_0x64e32[_0x5d4887('0x4ee')](_0x5d4887('0xf45'))||_0x5a2346['section'][_0x5d4887('0xf11')]?_0x1d6add['id']:_0x1d6add[_0x5d4887('0x15a5')]});}),_0x5a2346[_0x4db136('0x1c6f')]=angular[_0x4db136('0x6fb')](_0x5a2346[_0x4db136('0x63')]),_0x5a2346[_0x4db136('0x22')][_0x4db136('0x1f88')](function(_0x3a5b53){const _0x1f9a1a=_0x4db136,_0xebe9d0=_0x36f548()[_0x1f9a1a('0x1ad4')](_0x5a2346[_0x1f9a1a('0x63')],{'id':_0x3a5b53['id']});_0x64e32[_0x1f9a1a('0x4ee')](_0x1f9a1a('0xf45'))?_0x3a5b53['isValid']=!![]:_0x3a5b53['isValid']=typeof _0xebe9d0!==_0x1f9a1a('0x13e9')?!![]:![];}),_0x5c816d();})['then'](function(_0x3b65e6){const _0x1a0d14=_0x1f5a97,_0x300712=_0x3b65e6&&_0x3b65e6[_0x1a0d14('0x19b2')]?_0x3b65e6[_0x1a0d14('0x19b2')]:[];_0x5a2346[_0x1a0d14('0x26cc')]=_0x36f548()[_0x1a0d14('0x2171')](_0x300712,function(_0x53f053){const _0x1cbff8=_0x1a0d14,_0x1c1b82=_0x36f548()[_0x1cbff8('0x1ad4')](_0x5a2346[_0x1cbff8('0x22')],{'id':_0x53f053['id']});return _0x1c1b82[_0x1cbff8('0xf47')]=_0x53f053[_0x1cbff8('0x9aa')]?_0x1cbff8('0x1caa')+_0x53f053[_0x1cbff8('0x9aa')][_0x1cbff8('0xf47')]:'',_0x1c1b82[_0x1cbff8('0x1a04')]=typeof _0x53f053[_0x1cbff8('0x1a04')]!==_0x1cbff8('0x13e9')?'<'+_0x53f053[_0x1cbff8('0x1a04')]+'>':'',_0x1c1b82;}),_0x5a2346['startingSelectedItems']=angular[_0x1a0d14('0x6fb')](_0x5a2346['selectedItems']),_0x5a2346[_0x1a0d14('0xec5')]['selectedItems']=_0x5a2346['selectedItems'],_0x5a2346[_0x1a0d14('0xec5')]['items']=_0x36f548()[_0x1a0d14('0x2753')](_0x5a2346[_0x1a0d14('0x63')],_0x5a2346['dualMultiselectOptions'][_0x1a0d14('0x26cc')],'id'),_0xd103f9();})[_0x1f5a97('0x151d')](function(_0x1e9085){_0x4a3042(_0x1e9085);});});}function _0x54cc36(){return _0x4b0889(function(_0xd08fed,_0x3776e1){const _0x1f46af=a0_0xaf0c;return _0x53ce54[_0x1f46af('0x26d1')]['get']({'sectionId':_0x5a2346['section']['id'],'nolimit':!![]})[_0x1f46af('0x1549')][_0x1f46af('0x11bf')](function(_0x2d6cdf){_0xd08fed(_0x2d6cdf);})['catch'](function(_0x232a09){_0x3776e1(_0x232a09);});});}function _0x5c816d(){return _0x4b0889(function(_0x38ec9e,_0x259c11){const _0x53b807=a0_0xaf0c;return _0x53ce54[_0x53b807('0x1d53')]['getAgents']({'id':_0x5a2346[_0x53b807('0x1d53')]['id'],'fields':'id,name,internal,fullname','nolimit':!![],'role':_0x53b807('0x18c4')})[_0x53b807('0x1549')][_0x53b807('0x11bf')](function(_0x516978){_0x38ec9e(_0x516978);})[_0x53b807('0x151d')](function(_0x5d6556){_0x259c11(_0x5d6556);});});}function _0x2b855c(){return _0x4b0889(function(_0x43c12c,_0x2b01d7){const _0x553e16=a0_0xaf0c;return _0x53ce54[_0x553e16('0x21d9')][_0x553e16('0xbaa')]({'fields':'id,name,internal,fullname','nolimit':!![],'role':_0x553e16('0x18c4')})[_0x553e16('0x1549')]['then'](function(_0x3c6cde){_0x43c12c(_0x3c6cde);})['catch'](function(_0x40afe2){_0x2b01d7(_0x40afe2);});});}function _0x4ee173(_0x346086){return _0x4b0889(function(_0x5ed8fb,_0x4ec90a){const _0x2191ba=a0_0xaf0c;_0x36f548()[_0x2191ba('0x1fc5')](_0x346086)?_0x5ed8fb():_0x53ce54[_0x2191ba('0x1d53')]['addAgents']({'id':_0x5a2346[_0x2191ba('0x1d53')]['id'],'ids':_0x36f548()[_0x2191ba('0x2171')](_0x346086,'id')})['$promise'][_0x2191ba('0x11bf')](function(){_0x5ed8fb();})['catch'](function(_0x5e9d77){_0x4ec90a(_0x5e9d77);});});}function _0x27ae90(_0x1fb841){return _0x4b0889(function(_0x186625,_0x846c7a){const _0x3f04d9=a0_0xaf0c;_0x36f548()[_0x3f04d9('0x1fc5')](_0x1fb841)?_0x186625():_0x53ce54[_0x3f04d9('0x1d53')][_0x3f04d9('0x1ec0')]({'id':_0x5a2346['whatsappQueue']['id'],'ids':_0x36f548()['map'](_0x1fb841,'id')})[_0x3f04d9('0x1549')][_0x3f04d9('0x11bf')](function(){_0x186625();})['catch'](function(_0x202810){_0x846c7a(_0x202810);});});}function _0x1d5da2(){const _0x2e27f6=_0x2a6b49,_0x42d79b=_0x36f548()[_0x2e27f6('0x2753')](_0x5a2346[_0x2e27f6('0x21ed')],_0x5a2346[_0x2e27f6('0x26cc')],'id'),_0x1241c3=_0x36f548()[_0x2e27f6('0x2753')](_0x5a2346[_0x2e27f6('0x26cc')],_0x5a2346[_0x2e27f6('0x21ed')],'id');return _0x27ae90(_0x42d79b)[_0x2e27f6('0x11bf')](function(){return _0x4ee173(_0x1241c3);})[_0x2e27f6('0x11bf')](function(){const _0x181f9=_0x2e27f6;_0x5a2346[_0x181f9('0x1eda')]=![],_0x5a2346['startingAllowedItems']=angular['copy'](_0x5a2346[_0x181f9('0x63')]),_0x5a2346[_0x181f9('0x21ed')]=angular[_0x181f9('0x6fb')](_0x5a2346[_0x181f9('0x26cc')]),_0x5503ec[_0x181f9('0x2693')]({'title':_0x181f9('0x2243'),'msg':_0x181f9('0x2273')});})['catch'](function(_0x104230){const _0x237ea4=_0x2e27f6;_0x5503ec['error']({'title':_0x104230['status']?_0x237ea4('0x574')+_0x104230[_0x237ea4('0xff9')]+_0x237ea4('0xb0b')+_0x104230[_0x237ea4('0x212f')]:_0x237ea4('0x1b7f'),'msg':_0x104230['status']?JSON[_0x237ea4('0x3e')](_0x104230['data']):_0x104230['toString']()});});}function _0x573132(){_0xd1b181['hide']();}}const _0x309c4d=_0x7bb256;_0x19ad87[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1ca2'),'$q',_0x21d0f5('0x142d'),'api','whatsappQueue',_0x21d0f5('0xb6b'),'Auth',_0x21d0f5('0xb25')];function _0x19ad87(_0x29a82a,_0xa57067,_0x46dade,_0x344f1c,_0x38406b,_0x2a0f04,_0x4b2d2d,_0x51e958){const _0x26dbd3=_0x21d0f5,_0x25ade8=this;_0x25ade8[_0x26dbd3('0x32a')]=_0x4b2d2d[_0x26dbd3('0x2428')](),_0x25ade8['whatsappQueue']=_0x38406b,_0x25ade8[_0x26dbd3('0xb25')]=_0x51e958,_0x25ade8[_0x26dbd3('0x22')]=[],_0x25ade8['allowedItems']=[],_0x25ade8['selectedItems']=[],_0x25ade8[_0x26dbd3('0x1c6f')]=[],_0x25ade8[_0x26dbd3('0x21ed')]=[],_0x25ade8['pendingChanges']=![],_0x25ade8['dualMultiselectOptions']={'readOnly':!_0x25ade8[_0x26dbd3('0xb25')][_0x26dbd3('0x25db')],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x26dbd3('0x1909'),'line1':_0x26dbd3('0x1909'),'line2':'','line3':'','labelAll':_0x2a0f04[_0x26dbd3('0x10c2')](_0x26dbd3('0x1f5')),'labelSelected':_0x2a0f04[_0x26dbd3('0x10c2')](_0x26dbd3('0x16b7')),'transferCallback':function(){const _0x394615=_0x26dbd3,_0xbe6d0d=_0x36f548()['xorBy'](_0x25ade8[_0x394615('0x21ed')],_0x25ade8[_0x394615('0x26cc')],'id');_0x25ade8[_0x394615('0x1eda')]=_0x36f548()['isEmpty'](_0xbe6d0d)?![]:!![];}},_0x25ade8[_0x26dbd3('0x277c')]=_0x53a6a9,_0x25ade8[_0x26dbd3('0x1581')]=_0x480c08,_0x25ade8[_0x26dbd3('0xc4e')]=_0x5b5cde;function _0x53a6a9(){const _0x2f8a51=_0x26dbd3;return _0x4b2d2d['hasRole'](_0x2f8a51('0xf45'))?_0x589603()['catch'](function(_0x3d662d){const _0x2a985d=_0x2f8a51;_0x46dade['error']({'title':_0x3d662d['status']?_0x2a985d('0x574')+_0x3d662d[_0x2a985d('0xff9')]+'\x20-\x20'+_0x3d662d['statusText']:_0x2a985d('0x2059'),'msg':_0x3d662d['status']?JSON['stringify'](_0x3d662d['data']):_0x3d662d[_0x2a985d('0xaab')]()});}):_0x176cb5()[_0x2f8a51('0x11bf')](function(_0x2c0931){const _0x3371c2=_0x2f8a51;return _0x25ade8[_0x3371c2('0xe6')]=_0x2c0931,_0x589603();})[_0x2f8a51('0x151d')](function(_0xed9311){const _0x5e2af3=_0x2f8a51;_0x46dade['error']({'title':_0xed9311[_0x5e2af3('0xff9')]?_0x5e2af3('0x574')+_0xed9311['status']+'\x20-\x20'+_0xed9311[_0x5e2af3('0x212f')]:'SYSTEM:GET_TEAMS','msg':_0xed9311[_0x5e2af3('0xff9')]?JSON['stringify'](_0xed9311[_0x5e2af3('0x4e8')]):_0xed9311['toString']()});});}function _0x176cb5(){return _0xa57067(function(_0x4cefca,_0x3e4d0f){const _0x275752=a0_0xaf0c;_0x344f1c[_0x275752('0x1d63')]['get']({'userProfileId':_0x25ade8[_0x275752('0x32a')][_0x275752('0x781')],'name':_0x275752('0xc3f')})[_0x275752('0x1549')][_0x275752('0x11bf')](function(_0x284d57){const _0x1bb01e=_0x275752,_0x156a9b=_0x284d57&&_0x284d57[_0x1bb01e('0x19b2')]?_0x284d57[_0x1bb01e('0x19b2')][0x0]:null;_0x4cefca(_0x156a9b);})[_0x275752('0x151d')](function(_0xbe7bc9){_0x3e4d0f(_0xbe7bc9);});});}function _0x589603(){return _0xa57067(function(_0x29ccbe,_0x33d75a){const _0x40d131=a0_0xaf0c;return _0x3ec101()[_0x40d131('0x11bf')](function(_0x30d469){const _0x44fe4a=_0x40d131;return _0x25ade8[_0x44fe4a('0x22')]=_0x30d469[_0x44fe4a('0x19b2')]?_0x30d469['rows']:[],_0x4b2d2d[_0x44fe4a('0x4ee')]('admin')?_0x30d469:_0x25ade8[_0x44fe4a('0xe6')]?_0x25ade8[_0x44fe4a('0xe6')][_0x44fe4a('0xf11')]?_0x30d469:_0x30aba9():null;})[_0x40d131('0x11bf')](function(_0x25a16e){const _0x1fc8cb=_0x40d131,_0x5cadd9=_0x25a16e&&_0x25a16e['rows']?_0x25a16e['rows']:[];return _0x25ade8[_0x1fc8cb('0x63')]=_0x36f548()[_0x1fc8cb('0x2171')](_0x5cadd9,function(_0x5b0e87){const _0x19a963=_0x1fc8cb;return _0x36f548()['find'](_0x25ade8[_0x19a963('0x22')],{'id':_0x4b2d2d[_0x19a963('0x4ee')]('admin')||_0x25ade8[_0x19a963('0xe6')][_0x19a963('0xf11')]?_0x5b0e87['id']:_0x5b0e87[_0x19a963('0x15a5')]});}),_0x25ade8[_0x1fc8cb('0x22')][_0x1fc8cb('0x1f88')](function(_0x2bc62c){const _0x29299e=_0x1fc8cb,_0x4343ad=_0x36f548()['find'](_0x25ade8[_0x29299e('0x63')],{'id':_0x2bc62c['id']});_0x4b2d2d['hasRole'](_0x29299e('0xf45'))?_0x2bc62c[_0x29299e('0xde9')]=!![]:_0x2bc62c[_0x29299e('0xde9')]=typeof _0x4343ad!=='undefined'?!![]:![];}),_0x1e92bd();})[_0x40d131('0x11bf')](function(_0x1182c9){const _0x55b76e=_0x40d131,_0x355cfd=_0x1182c9&&_0x1182c9[_0x55b76e('0x19b2')]?_0x1182c9[_0x55b76e('0x19b2')]:[];_0x25ade8['selectedItems']=_0x36f548()[_0x55b76e('0x2171')](_0x355cfd,function(_0x2fa95f){const _0xcf5ed5=_0x55b76e;return _0x36f548()[_0xcf5ed5('0x1ad4')](_0x25ade8[_0xcf5ed5('0x22')],{'id':_0x2fa95f['id']});}),_0x25ade8[_0x55b76e('0x21ed')]=angular[_0x55b76e('0x6fb')](_0x25ade8['selectedItems']),_0x25ade8[_0x55b76e('0xec5')][_0x55b76e('0x26cc')]=_0x25ade8[_0x55b76e('0x26cc')],_0x25ade8[_0x55b76e('0xec5')]['items']=_0x36f548()['differenceBy'](_0x25ade8['allowedItems'],_0x25ade8[_0x55b76e('0xec5')][_0x55b76e('0x26cc')],'id'),_0x29ccbe();})[_0x40d131('0x151d')](function(_0x5213c4){_0x33d75a(_0x5213c4);});});}function _0x30aba9(){return _0xa57067(function(_0x2098c8,_0x2260e6){const _0x289159=a0_0xaf0c;return _0x344f1c[_0x289159('0x26d1')][_0x289159('0xbaa')]({'sectionId':_0x25ade8[_0x289159('0xe6')]['id'],'nolimit':!![]})['$promise']['then'](function(_0x2c993a){_0x2098c8(_0x2c993a);})[_0x289159('0x151d')](function(_0x45b537){_0x2260e6(_0x45b537);});});}function _0x1e92bd(){return _0xa57067(function(_0x23426a,_0x467709){const _0xf1e9b7=a0_0xaf0c;return _0x344f1c[_0xf1e9b7('0x1d53')][_0xf1e9b7('0x306')]({'id':_0x25ade8[_0xf1e9b7('0x1d53')]['id'],'fields':_0xf1e9b7('0x721'),'nolimit':!![]})['$promise']['then'](function(_0x3e8ed9){_0x23426a(_0x3e8ed9);})[_0xf1e9b7('0x151d')](function(_0xb49fa0){_0x467709(_0xb49fa0);});});}function _0x3ec101(){return _0xa57067(function(_0x13b06b,_0xd404f9){const _0xf4db36=a0_0xaf0c;return _0x344f1c['team'][_0xf4db36('0xbaa')]({'fields':_0xf4db36('0x721'),'nolimit':!![]})['$promise'][_0xf4db36('0x11bf')](function(_0x4482fd){_0x13b06b(_0x4482fd);})['catch'](function(_0x225f4a){_0xd404f9(_0x225f4a);});});}function _0x27a6a3(_0x374a24){return _0xa57067(function(_0x442c5,_0x357cbf){const _0x147950=a0_0xaf0c;_0x36f548()[_0x147950('0x1fc5')](_0x374a24)?_0x442c5():_0x344f1c['whatsappQueue'][_0x147950('0x1202')]({'id':_0x25ade8[_0x147950('0x1d53')]['id'],'ids':_0x36f548()['map'](_0x374a24,'id')})[_0x147950('0x1549')][_0x147950('0x11bf')](function(){_0x442c5();})['catch'](function(_0x213e67){_0x357cbf(_0x213e67);});});}function _0x47748c(_0x544182){return _0xa57067(function(_0x5fafb9,_0x2b062f){const _0x35c17c=a0_0xaf0c;_0x36f548()[_0x35c17c('0x1fc5')](_0x544182)?_0x5fafb9():_0x344f1c[_0x35c17c('0x1d53')]['removeTeams']({'id':_0x25ade8['whatsappQueue']['id'],'ids':_0x36f548()[_0x35c17c('0x2171')](_0x544182,'id')})[_0x35c17c('0x1549')][_0x35c17c('0x11bf')](function(){_0x5fafb9();})[_0x35c17c('0x151d')](function(_0x5c6f2f){_0x2b062f(_0x5c6f2f);});});}function _0x480c08(){const _0x56a9c2=_0x26dbd3,_0x5ab1e0=_0x36f548()['differenceBy'](_0x25ade8[_0x56a9c2('0x21ed')],_0x25ade8[_0x56a9c2('0x26cc')],'id'),_0x528587=_0x36f548()[_0x56a9c2('0x2753')](_0x25ade8[_0x56a9c2('0x26cc')],_0x25ade8['startingSelectedItems'],'id');return _0x47748c(_0x5ab1e0)[_0x56a9c2('0x11bf')](function(){return _0x27a6a3(_0x528587);})[_0x56a9c2('0x11bf')](function(){const _0x42a993=_0x56a9c2;_0x25ade8['pendingChanges']=![],_0x25ade8['startingAllowedItems']=angular[_0x42a993('0x6fb')](_0x25ade8['allowedItems']),_0x25ade8[_0x42a993('0x21ed')]=angular['copy'](_0x25ade8[_0x42a993('0x26cc')]),_0x46dade['success']({'title':_0x42a993('0x2243'),'msg':_0x42a993('0x1a68')});})[_0x56a9c2('0x151d')](function(_0x48c73b){const _0x55774a=_0x56a9c2;_0x46dade[_0x55774a('0x255')]({'title':_0x48c73b['status']?_0x55774a('0x574')+_0x48c73b[_0x55774a('0xff9')]+_0x55774a('0xb0b')+_0x48c73b['statusText']:_0x55774a('0x1b7f'),'msg':_0x48c73b['status']?JSON[_0x55774a('0x3e')](_0x48c73b[_0x55774a('0x4e8')]):_0x48c73b['toString']()});});}function _0x5b5cde(){const _0x43baca=_0x26dbd3;_0x29a82a[_0x43baca('0x237e')]();}}const _0x3aa815=_0x19ad87,_0x5b4317=_0x351988['p']+_0x21d0f5('0x15c5');_0x40ad80[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0xcbc'),'$location',_0x21d0f5('0x1ca2'),_0x21d0f5('0x1b30'),_0x21d0f5('0xb6b'),_0x21d0f5('0x17ff'),'setting','api',_0x21d0f5('0x142d'),_0x21d0f5('0x1150'),_0x21d0f5('0x1d53'),_0x21d0f5('0x1d63')];function _0x40ad80(_0x1128d4,_0x37f46f,_0x35e994,_0x2cbde2,_0x2cbf44,_0x48b021,_0xbbd966,_0x479af9,_0x9a0d8f,_0x58244b,_0xbffa9a,_0x18ffbd){const _0x5f0ce5=_0x21d0f5,_0x17b275=this;_0x17b275[_0x5f0ce5('0x32a')]=_0x58244b[_0x5f0ce5('0x2428')](),_0x17b275[_0x5f0ce5('0x17ff')]=_0x48b021,_0x17b275[_0x5f0ce5('0x23e1')]=_0xbbd966,_0x17b275[_0x5f0ce5('0x2834')]=_0x17b275[_0x5f0ce5('0x23e1')][_0x5f0ce5('0x1d4')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x17b275[_0x5f0ce5('0x1d9a')]=_0x37f46f['protocol']()+_0x5f0ce5('0x16a1')+_0x37f46f[_0x5f0ce5('0x14ec')](),_0x17b275[_0x5f0ce5('0x1d53')]=_0xbffa9a||_0x1128d4[_0x5f0ce5('0x1ab3')][_0x5f0ce5('0x1d53')]||{},_0x17b275['userProfileSection']=_0x18ffbd&&_0x18ffbd['count']==0x1?_0x18ffbd[_0x5f0ce5('0x19b2')][0x0]:null,_0x17b275[_0x5f0ce5('0xb25')]=_0x58244b[_0x5f0ce5('0x1530')](_0x17b275[_0x5f0ce5('0x1d63')]?_0x17b275[_0x5f0ce5('0x1d63')]['crudPermissions']:null),_0x17b275[_0x5f0ce5('0x2c9')]={},_0x17b275['selectedTab']=_0x1128d4['params'][_0x5f0ce5('0x205c')]||0x0,_0x17b275[_0x5f0ce5('0x11b8')]=_0x40940f,_0x17b275[_0x5f0ce5('0x2363')]=_0x1d8e33,_0x17b275[_0x5f0ce5('0xb30')]=_0x9a0d8f[_0x5f0ce5('0x870')],_0x17b275[_0x5f0ce5('0x144c')]=_0x373fb7,_0x17b275[_0x5f0ce5('0x1938')]=_0x2ba53f;function _0x40940f(_0x674d3f,_0x182aaa){const _0x4965e2=_0x5f0ce5;_0x35e994['show']({'controller':_0x4965e2('0x4fb'),'controllerAs':'vm','templateUrl':_0x5b4317,'parent':angular['element'](_0x2cbde2[_0x4965e2('0x1d2')]),'targetEvent':_0x182aaa,'clickOutsideToClose':!![],'locals':{'whatsappQueue':_0x674d3f,'whatsappQueues':_0x17b275[_0x4965e2('0x1e0c')]?_0x17b275[_0x4965e2('0x1e0c')][_0x4965e2('0x19b2')]:[],'crudPermissions':_0x17b275[_0x4965e2('0xb25')]}});}function _0x1d8e33(_0x14b6ce,_0x52be36){const _0x3439ba=_0x5f0ce5;_0x35e994[_0x3439ba('0xb9')]({'controller':'WhatsappQueueagentaddController','controllerAs':'vm','templateUrl':_0x31bb0d,'parent':angular['element'](_0x2cbde2[_0x3439ba('0x1d2')]),'targetEvent':_0x52be36,'clickOutsideToClose':!![],'locals':{'whatsappQueue':_0x14b6ce,'whatsappQueues':_0x17b275['whatsappQueues']?_0x17b275[_0x3439ba('0x1e0c')][_0x3439ba('0x19b2')]:[],'crudPermissions':_0x17b275['crudPermissions'],'realtime':![]}});}function _0x373fb7(){const _0x2e44f4=_0x5f0ce5;_0x1128d4['go']('app.whatsapp.whatsappQueues',{},{'reload':_0x2e44f4('0xe8e')});}function _0x2ba53f(){const _0x4a9b8a=_0x5f0ce5;_0x479af9['whatsappQueue'][_0x4a9b8a('0x5ab')]({'id':_0x17b275['whatsappQueue']['id']},_0x17b275[_0x4a9b8a('0x1d53')])[_0x4a9b8a('0x1549')][_0x4a9b8a('0x11bf')](function(){const _0x5915c0=_0x4a9b8a;_0x9a0d8f[_0x5915c0('0x2693')]({'title':_0x5915c0('0xdd6'),'msg':_0x17b275['whatsappQueue']['name']?_0x17b275[_0x5915c0('0x1d53')][_0x5915c0('0x1909')]+_0x5915c0('0xd7'):''});})[_0x4a9b8a('0x151d')](function(_0x750deb){const _0x35eae1=_0x4a9b8a;_0x9a0d8f[_0x35eae1('0x255')]({'title':_0x750deb[_0x35eae1('0xff9')]?'API:'+_0x750deb[_0x35eae1('0xff9')]+_0x35eae1('0xb0b')+_0x750deb[_0x35eae1('0x212f')]:_0x35eae1('0x275f'),'msg':_0x750deb[_0x35eae1('0x4e8')]?JSON[_0x35eae1('0x3e')](_0x750deb[_0x35eae1('0x4e8')]):_0x750deb['toString']()});});}}const _0x3d2d02=_0x40ad80;_0x41f0d6[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0x2143'),_0x21d0f5('0xcbc'),'$mdSidenav','$mdDialog','$document',_0x21d0f5('0x17f5'),_0x21d0f5('0xb6b'),_0x21d0f5('0x1e0c'),_0x21d0f5('0x25bc'),_0x21d0f5('0x1d63'),'api',_0x21d0f5('0xda9'),_0x21d0f5('0x142d'),_0x21d0f5('0x1150'),_0x21d0f5('0x17ff'),_0x21d0f5('0x23e1')];function _0x41f0d6(_0x3b7d21,_0x118090,_0x3e9777,_0x165e87,_0x54ec7f,_0x449938,_0x1ef53a,_0x1d8e7f,_0x41d0c3,_0x4dcbd0,_0x5d727c,_0x144d13,_0x2fcc99,_0x30aa80,_0x2b1230,_0x46a1c5,_0x16cddc){const _0x583ae2=_0x21d0f5,_0x3b9495=this;_0x3b9495[_0x583ae2('0x17ff')]=_0x46a1c5,_0x3b9495[_0x583ae2('0x23e1')]=_0x16cddc,_0x3b9495[_0x583ae2('0x32a')]=_0x2b1230[_0x583ae2('0x2428')](),_0x3b9495[_0x583ae2('0x1e0c')]=_0x41d0c3||{'count':0x0,'rows':[]},_0x3b9495['userProfile']=_0x4dcbd0,_0x3b9495[_0x583ae2('0x1d63')]=_0x5d727c&&_0x5d727c[_0x583ae2('0x27d2')]==0x1?_0x5d727c[_0x583ae2('0x19b2')][0x0]:null,_0x3b9495[_0x583ae2('0xb25')]=_0x2b1230['parseCrudPermissions'](_0x3b9495[_0x583ae2('0x1d63')]?_0x3b9495['userProfileSection'][_0x583ae2('0xb25')]:null),_0x3b9495['table']=_0x583ae2('0x1e0c'),_0x3b9495[_0x583ae2('0x724')]='',_0x3b9495[_0x583ae2('0xe3c')]=null,_0x3b9495['selectedWhatsappQueues']=[],_0x3b9495['query']={'fields':_0x583ae2('0xe24'),'sort':'-updatedAt','channel':_0x583ae2('0xe7c'),'limit':0xa,'page':0x1},_0x3b9495[_0x583ae2('0x1612')]=_0x36f548()[_0x583ae2('0x2130')]([{'option':_0x583ae2('0x1ace'),'value':_0x583ae2('0x16c6')},{'option':_0x583ae2('0x2510'),'value':_0x583ae2('0x166d')}],function(_0x2173b0){const _0x56b081=_0x583ae2;return _0x36f548()['replace'](_0x2173b0[_0x56b081('0x10cc')],new RegExp('\x27','g'),'');}),_0x3b9495['editstate']=_0x554069,_0x3b9495[_0x583ae2('0x11b8')]=_0x1e2305,_0x3b9495[_0x583ae2('0x2363')]=_0x35a88b,_0x3b9495[_0x583ae2('0x549')]=_0x491bb7,_0x3b9495[_0x583ae2('0x19a9')]=_0x75352a,_0x3b9495[_0x583ae2('0x2693')]=_0x17338e,_0x3b9495[_0x583ae2('0x1d83')]=_0x4ca62c,_0x3b9495[_0x583ae2('0x151f')]=_0x55bf2b,_0x3b9495[_0x583ae2('0x1547')]=_0x5e605c,_0x3b9495[_0x583ae2('0x703')]=_0x3ad1a6,_0x3b9495[_0x583ae2('0x1cec')]=_0x3f63b1,_0x3b9495[_0x583ae2('0x1c6e')]=_0x2fd78c,_0x3b9495[_0x583ae2('0x1e4d')]=_0x39a76a;function _0x554069(_0x181c75){const _0x2ad7d0=_0x583ae2;_0x3e9777['go'](_0x2ad7d0('0x21e8'),{'id':_0x181c75['id'],'whatsappQueue':_0x181c75,'crudPermissions':_0x3b9495['crudPermissions']});}function _0x1e2305(_0x3550d6,_0x5a6295){const _0x412dfe=_0x583ae2;_0x54ec7f[_0x412dfe('0xb9')]({'controller':_0x412dfe('0x4fb'),'controllerAs':'vm','templateUrl':_0x5b4317,'parent':angular[_0x412dfe('0x1e73')](_0x449938[_0x412dfe('0x1d2')]),'targetEvent':_0x5a6295,'clickOutsideToClose':!![],'locals':{'whatsappQueue':_0x3550d6,'whatsappQueues':_0x3b9495[_0x412dfe('0x1e0c')]?_0x3b9495['whatsappQueues'][_0x412dfe('0x19b2')]:[],'crudPermissions':_0x3b9495[_0x412dfe('0xb25')]}});}function _0x35a88b(_0x1450e7,_0x34f848){const _0x2721c1=_0x583ae2;_0x54ec7f[_0x2721c1('0xb9')]({'controller':_0x2721c1('0x216c'),'controllerAs':'vm','templateUrl':_0x31bb0d,'parent':angular[_0x2721c1('0x1e73')](_0x449938[_0x2721c1('0x1d2')]),'targetEvent':_0x34f848,'clickOutsideToClose':!![],'locals':{'whatsappQueue':_0x1450e7,'whatsappQueues':_0x3b9495[_0x2721c1('0x1e0c')]?_0x3b9495[_0x2721c1('0x1e0c')]['rows']:[],'crudPermissions':_0x3b9495[_0x2721c1('0xb25')],'realtime':![]}});}function _0x491bb7(_0x3c23ba,_0xb2e6e8){const _0x48067f=_0x583ae2,_0x3d11f9=_0x54ec7f['confirm']()[_0x48067f('0x134b')](_0x48067f('0x1796')+_0x36f548()[_0x48067f('0x13cf')]('whatsappQueue')+'?')[_0x48067f('0x1d03')](_0x48067f('0x2061')+(_0x3c23ba[_0x48067f('0x1909')]||_0x48067f('0x1d53'))+_0x48067f('0x1c78')+_0x48067f('0x1a'))['ariaLabel']('delete\x20whatsappQueue')['targetEvent'](_0xb2e6e8)['ok']('OK')[_0x48067f('0x26c9')](_0x48067f('0x772'));_0x54ec7f['show'](_0x3d11f9)['then'](function(){_0x5e605c(_0x3c23ba);},function(){const _0x1f232b=_0x48067f;console['log'](_0x1f232b('0x772'));});}function _0x75352a(){const _0x406848=_0x583ae2;if(_0x2b1230['hasRole'](_0x406848('0xf45')))_0x3e9777['go']('app.whatsapp.realtime.queues',{});else return _0x144d13[_0x406848('0x1d63')][_0x406848('0xbaa')]({'userProfileId':_0x2b1230[_0x406848('0x2428')]()[_0x406848('0x781')],'sectionId':0x83e})[_0x406848('0x1549')]['then'](function(_0x49c6e6){const _0x188154=_0x406848,_0x59585a=_0x49c6e6&&_0x49c6e6[_0x188154('0x19b2')]?_0x49c6e6['rows'][0x0]:null;_0x59585a&&_0x59585a[_0x188154('0x1f0a')]?_0x3e9777['go']('app.whatsapp.realtime.queues',{}):_0x30aa80[_0x188154('0x870')]({'title':_0x1d8e7f['instant']('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_TITLE'),'msg':_0x1d8e7f[_0x188154('0x10c2')](_0x188154('0x10d1'))});})[_0x406848('0x151d')](function(_0x5ccaa6){const _0x4492b2=_0x406848;_0x30aa80[_0x4492b2('0x255')]({'title':_0x5ccaa6[_0x4492b2('0xff9')]?'API:'+_0x5ccaa6[_0x4492b2('0xff9')]+'\x20-\x20'+_0x5ccaa6[_0x4492b2('0x212f')]:_0x4492b2('0x1011'),'msg':_0x5ccaa6[_0x4492b2('0xff9')]?JSON[_0x4492b2('0x3e')](_0x5ccaa6[_0x4492b2('0x4e8')]):_0x5ccaa6[_0x4492b2('0xaab')]()});});}let _0x412c23=!![],_0x519184=0x1;_0x3b7d21['$watch'](_0x583ae2('0x842'),function(_0xc34e81,_0x173398){const _0x5d1e73=_0x583ae2;_0x412c23?_0x1ef53a(function(){_0x412c23=![];}):(!_0x173398&&(_0x519184=_0x3b9495[_0x5d1e73('0x1f2a')][_0x5d1e73('0x1c2')]),_0xc34e81!==_0x173398&&(_0x3b9495[_0x5d1e73('0x1f2a')][_0x5d1e73('0x1c2')]=0x1),!_0xc34e81&&(_0x3b9495[_0x5d1e73('0x1f2a')][_0x5d1e73('0x1c2')]=_0x519184),_0x3b9495['getWhatsappQueues']());});function _0x17338e(_0x147192){_0x3b9495['whatsappQueues']=_0x147192||{'count':0x0,'rows':[]};}function _0x4ca62c(){const _0x10ddd6=_0x583ae2;_0x3b9495[_0x10ddd6('0x1f2a')][_0x10ddd6('0x1393')]=(_0x3b9495[_0x10ddd6('0x1f2a')][_0x10ddd6('0x1c2')]-0x1)*_0x3b9495['query'][_0x10ddd6('0xd5c')],_0x2b1230[_0x10ddd6('0x4ee')]('admin')?_0x3b9495[_0x10ddd6('0x13f')]=_0x144d13[_0x10ddd6('0x1d53')][_0x10ddd6('0xbaa')](_0x3b9495[_0x10ddd6('0x1f2a')],_0x17338e)[_0x10ddd6('0x1549')]:(_0x3b9495[_0x10ddd6('0x1f2a')]['id']=_0x3b9495['userProfile']['id'],_0x3b9495['query']['section']='WhatsappQueues',_0x3b9495['promise']=_0x144d13[_0x10ddd6('0x25bc')][_0x10ddd6('0x228e')](_0x3b9495[_0x10ddd6('0x1f2a')],_0x17338e)[_0x10ddd6('0x1549')]);}function _0x55bf2b(_0x4c2927,_0x5cd885){const _0x8ce617=_0x583ae2;_0x54ec7f[_0x8ce617('0xb9')]({'controller':_0x8ce617('0x23dd'),'controllerAs':'vm','templateUrl':_0x3ef18e,'parent':angular['element'](_0x449938[_0x8ce617('0x1d2')]),'targetEvent':_0x4c2927,'clickOutsideToClose':!![],'locals':{'whatsappQueue':_0x5cd885,'whatsappQueues':_0x3b9495[_0x8ce617('0x1e0c')][_0x8ce617('0x19b2')],'license':_0x3b9495[_0x8ce617('0x17ff')],'setting':_0x3b9495[_0x8ce617('0x23e1')],'crudPermissions':_0x3b9495[_0x8ce617('0xb25')]}});}function _0x5e605c(_0x1a8f5a){const _0xbe6a34=_0x583ae2;_0x144d13[_0xbe6a34('0x1d53')]['delete']({'id':_0x1a8f5a['id']})[_0xbe6a34('0x1549')][_0xbe6a34('0x11bf')](function(){const _0x288152=_0xbe6a34;_0x36f548()[_0x288152('0x14a5')](_0x3b9495[_0x288152('0x1e0c')][_0x288152('0x19b2')],{'id':_0x1a8f5a['id']}),_0x3b9495[_0x288152('0x1e0c')]['count']-=0x1,!_0x3b9495[_0x288152('0x1e0c')][_0x288152('0x19b2')][_0x288152('0x1e22')]&&_0x3b9495['getWhatsappQueues'](),_0x30aa80['success']({'title':_0x36f548()[_0x288152('0x13cf')]('WhatsappQueue')+_0x288152('0x2113'),'msg':_0x1a8f5a[_0x288152('0x1909')]?_0x1a8f5a['name']+'\x20has\x20been\x20deleted!':''});})[_0xbe6a34('0x151d')](function(_0x1011b3){const _0x3a1202=_0xbe6a34;if(_0x1011b3['data']&&_0x1011b3[_0x3a1202('0x4e8')]['errors']&&_0x1011b3[_0x3a1202('0x4e8')][_0x3a1202('0x120f')][_0x3a1202('0x1e22')]){_0x3b9495['errors']=_0x1011b3[_0x3a1202('0x4e8')][_0x3a1202('0x120f')]||[{'message':_0x1011b3[_0x3a1202('0xaab')](),'type':_0x3a1202('0x27b8')}];for(let _0x42f629=0x0;_0x42f629<_0x1011b3[_0x3a1202('0x4e8')]['errors'][_0x3a1202('0x1e22')];_0x42f629++){_0x30aa80[_0x3a1202('0x255')]({'title':_0x1011b3[_0x3a1202('0x4e8')]['errors'][_0x42f629][_0x3a1202('0x19fd')],'msg':_0x1011b3[_0x3a1202('0x4e8')][_0x3a1202('0x120f')][_0x42f629]['message']});}}else _0x30aa80[_0x3a1202('0x255')]({'title':_0x1011b3[_0x3a1202('0xff9')]?_0x3a1202('0x574')+_0x1011b3[_0x3a1202('0xff9')]+_0x3a1202('0xb0b')+_0x1011b3['statusText']:'SYSTEM:DELETEwhatsappQueue','msg':_0x1011b3[_0x3a1202('0x4e8')]?JSON['stringify'](_0x1011b3[_0x3a1202('0x4e8')][_0x3a1202('0x1b86')]):_0x1011b3[_0x3a1202('0x1b86')]||_0x1011b3[_0x3a1202('0xaab')]()});});}function _0x3ad1a6(){const _0x20093c=_0x583ae2,_0x264b43=angular[_0x20093c('0x6fb')](_0x3b9495[_0x20093c('0x18bb')]);return _0x3b9495['selectedWhatsappQueues']=[],_0x264b43;}function _0x3f63b1(_0x66f1b2){const _0x4845df=_0x583ae2,_0x57e44e=_0x54ec7f['confirm']()[_0x4845df('0x134b')](_0x4845df('0xd6'))[_0x4845df('0x1d03')](_0x4845df('0x2061')+_0x3b9495[_0x4845df('0x18bb')][_0x4845df('0x1e22')]+_0x4845df('0xac6')+_0x4845df('0x1a'))['ariaLabel'](_0x4845df('0x77f'))[_0x4845df('0x1e25')](_0x66f1b2)['ok']('OK')[_0x4845df('0x26c9')]('CANCEL');_0x54ec7f[_0x4845df('0xb9')](_0x57e44e)[_0x4845df('0x11bf')](function(){const _0x4689fa=_0x4845df;_0x3b9495[_0x4689fa('0x18bb')][_0x4689fa('0x1f88')](function(_0x547a3c){_0x5e605c(_0x547a3c);}),_0x3b9495[_0x4689fa('0x18bb')]=[];});}function _0x2fd78c(){const _0x5f0124=_0x583ae2;_0x3b9495[_0x5f0124('0x18bb')]=[];}function _0x39a76a(){const _0xfc515=_0x583ae2;_0x3b9495[_0xfc515('0x18bb')]=_0x3b9495[_0xfc515('0x1e0c')][_0xfc515('0x19b2')];}}const _0x359e12=_0x41f0d6;_0x1d1af6[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x13d6'),_0x21d0f5('0xc3e')];function _0x1d1af6(_0x1fb7e8,_0x3a65be){const _0x3437e2=_0x21d0f5;_0x1fb7e8[_0x3437e2('0x2124')]('app.whatsapp',{'abstract':!![],'url':_0x3437e2('0x2828')})[_0x3437e2('0x2124')](_0x3437e2('0xe8e'),{'url':_0x3437e2('0xf07'),'views':{'content@app':{'templateUrl':_0x5bbdbc,'controller':'WhatsappQueuesController\x20as\x20vm'}},'resolve':{'whatsappQueues':['apiResolver','Auth',function(_0x1501a3,_0x3ef28c){const _0x1217db=_0x3437e2;return _0x3ef28c[_0x1217db('0x4ee')](_0x1217db('0xf45'))?_0x1501a3[_0x1217db('0xa28')](_0x1217db('0x1cb1'),{'fields':_0x1217db('0xe24'),'sort':_0x1217db('0x1c74'),'channel':'whatsapp','limit':0xa,'offset':0x0}):_0x1501a3[_0x1217db('0xa28')](_0x1217db('0xb0d'),{'id':_0x3ef28c[_0x1217db('0x2428')]()[_0x1217db('0x781')],'section':'WhatsappQueues','fields':_0x1217db('0xe24'),'sort':_0x1217db('0x1c74'),'channel':_0x1217db('0xe7c'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x3437e2('0x218e'),_0x3437e2('0x1150'),function(_0x2a92e8,_0x3535d3){const _0x4b870a=_0x3437e2;return _0x3535d3['hasRole'](_0x4b870a('0xf45'))?null:_0x2a92e8['resolve'](_0x4b870a('0x428'),{'fields':_0x4b870a('0xd30'),'id':_0x3535d3[_0x4b870a('0x2428')]()[_0x4b870a('0x781')]});}],'userProfileSection':[_0x3437e2('0x218e'),_0x3437e2('0x1150'),function(_0x10506e,_0x24db3c){const _0x26a496=_0x3437e2;return _0x24db3c[_0x26a496('0x4ee')](_0x26a496('0xf45'))?null:_0x10506e[_0x26a496('0xa28')](_0x26a496('0x2762'),{'fields':_0x26a496('0x36d'),'userProfileId':_0x24db3c[_0x26a496('0x2428')]()[_0x26a496('0x781')],'sectionId':0x835});}]},'authenticate':!![],'permissionId':0x835,'bodyClass':_0x3437e2('0xe7c')})[_0x3437e2('0x2124')](_0x3437e2('0x21e8'),{'url':_0x3437e2('0x142b'),'params':{'whatsappQueue':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x4d397d,'controller':_0x3437e2('0x1624')}},'resolve':{'whatsappQueue':['apiResolver',_0x3437e2('0x1573'),function(_0xc441e1,_0x405682){const _0x231368=_0x3437e2;return _0xc441e1[_0x231368('0xa28')]('whatsappQueue@get',{'fields':_0x231368('0xe24'),'id':_0x405682['id']});}],'userProfileSection':[_0x3437e2('0x218e'),_0x3437e2('0x1150'),function(_0x2b7ae7,_0x18abe8){const _0x58d811=_0x3437e2;return _0x2b7ae7[_0x58d811('0xa28')](_0x58d811('0x2762'),{'fields':_0x58d811('0x36d'),'userProfileId':_0x18abe8[_0x58d811('0x2428')]()[_0x58d811('0x781')],'sectionId':0x835});}]},'authenticate':!![],'permissionId':0x835,'bodyClass':'whatsapp'})[_0x3437e2('0x2124')](_0x3437e2('0xf66'),{'url':_0x3437e2('0xdc2'),'views':{'content@app':{'templateUrl':_0xa9df9c,'controller':_0x3437e2('0x408')}},'resolve':{'whatsappAccounts':[_0x3437e2('0x218e'),_0x3437e2('0x1150'),function(_0x3b0b3e,_0x534515){const _0x397791=_0x3437e2;return _0x534515[_0x397791('0x4ee')](_0x397791('0xf45'))?_0x3b0b3e[_0x397791('0xa28')](_0x397791('0x1ae6'),{'fields':_0x397791('0x1854'),'sort':_0x397791('0x1c74'),'limit':0xa,'offset':0x0}):_0x3b0b3e['resolve'](_0x397791('0xb0d'),{'id':_0x534515['getCurrentUser']()[_0x397791('0x781')],'section':'WhatsappAccounts','fields':_0x397791('0x1854'),'sort':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':[_0x3437e2('0x218e'),'Auth',function(_0x220483,_0xb425bc){const _0x4740ea=_0x3437e2;return _0xb425bc[_0x4740ea('0x4ee')](_0x4740ea('0xf45'))?null:_0x220483[_0x4740ea('0xa28')](_0x4740ea('0x428'),{'fields':_0x4740ea('0xd30'),'id':_0xb425bc['getCurrentUser']()[_0x4740ea('0x781')]});}],'userProfileSection':['apiResolver',_0x3437e2('0x1150'),function(_0x421e6d,_0x5bd915){const _0xe85f9c=_0x3437e2;return _0x5bd915[_0xe85f9c('0x4ee')](_0xe85f9c('0xf45'))?null:_0x421e6d[_0xe85f9c('0xa28')](_0xe85f9c('0x2762'),{'fields':_0xe85f9c('0x36d'),'userProfileId':_0x5bd915[_0xe85f9c('0x2428')]()[_0xe85f9c('0x781')],'sectionId':0x836});}]},'authenticate':!![],'permissionId':0x836,'bodyClass':_0x3437e2('0xe7c')})[_0x3437e2('0x2124')]('app.whatsapp.whatsappAccounts.edit',{'url':_0x3437e2('0x142b'),'params':{'whatsappAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x3ea807,'controller':_0x3437e2('0x1f07')}},'resolve':{'whatsappAccount':[_0x3437e2('0x218e'),'$stateParams',function(_0x419804,_0x3a3429){const _0x277e20=_0x3437e2;return _0x419804[_0x277e20('0xa28')]('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':_0x3a3429['id']});}],'userProfileSection':[_0x3437e2('0x218e'),_0x3437e2('0x1150'),function(_0x43a7ae,_0x4b9aa2){const _0x3b62cc=_0x3437e2;return _0x43a7ae['resolve'](_0x3b62cc('0x2762'),{'fields':_0x3b62cc('0x36d'),'userProfileId':_0x4b9aa2[_0x3b62cc('0x2428')]()[_0x3b62cc('0x781')],'sectionId':0x836});}]},'authenticate':!![],'permissionId':0x836,'bodyClass':_0x3437e2('0xe7c')}),_0x3a65be[_0x3437e2('0x471')]('app/main/apps/whatsapp');}angular[_0x21d0f5('0x2768')](_0x21d0f5('0x12a4'),[_0x21d0f5('0x22d5'),_0x21d0f5('0x1fb3'),_0x21d0f5('0x3c4'),'flow',_0x21d0f5('0xd61'),_0x21d0f5('0x2096'),'ng-sortable',_0x21d0f5('0x446'),'ngAnimate',_0x21d0f5('0x21d5'),_0x21d0f5('0x29b'),_0x21d0f5('0xc46'),_0x21d0f5('0x950'),'ngclipboard','angular-cron-jobs','ngEmbed',_0x21d0f5('0x2625'),_0x21d0f5('0x1622'),_0x21d0f5('0x1584'),_0x21d0f5('0xf7f'),_0x21d0f5('0x1ddd')])[_0x21d0f5('0x53a')](_0x1d1af6)[_0x21d0f5('0x23eb')](_0x21d0f5('0xb7c'),_0x3423e2)[_0x21d0f5('0x23eb')](_0x21d0f5('0x13cd'),_0x38f274)['controller'](_0x21d0f5('0x253c'),_0x5af05e)[_0x21d0f5('0x23eb')](_0x21d0f5('0x1ff4'),_0x428134)[_0x21d0f5('0x23eb')](_0x21d0f5('0x13a5'),_0x16fac1)[_0x21d0f5('0x23eb')](_0x21d0f5('0x500'),_0x11690f)[_0x21d0f5('0x23eb')](_0x21d0f5('0x1029'),_0x4311ce)[_0x21d0f5('0x23eb')](_0x21d0f5('0x1f8c'),_0x3ede25)['controller']('EditWhatsappAccountAppgotoifDialogController',_0x463650)[_0x21d0f5('0x23eb')](_0x21d0f5('0x1e0a'),_0x5143a9)[_0x21d0f5('0x23eb')](_0x21d0f5('0x2358'),_0x1ffc54)[_0x21d0f5('0x23eb')]('EditWhatsappAccountAppnoopDialogController',_0x45cd91)[_0x21d0f5('0x23eb')](_0x21d0f5('0x462'),_0x50e611)[_0x21d0f5('0x23eb')]('EditWhatsappAccountAppsystemDialogController',_0xc4bf64)[_0x21d0f5('0x23eb')](_0x21d0f5('0x1da'),_0x407717)['controller'](_0x21d0f5('0x27a3'),_0x38fbab)[_0x21d0f5('0x23eb')](_0x21d0f5('0x13ff'),_0x536f32)[_0x21d0f5('0x23eb')](_0x21d0f5('0x25f3'),_0x23263f)[_0x21d0f5('0x23eb')](_0x21d0f5('0xf6a'),_0x469bfe)[_0x21d0f5('0x23eb')](_0x21d0f5('0x203f'),_0x1d37a2)['controller'](_0x21d0f5('0x1cbb'),_0x2d3fbf)[_0x21d0f5('0x23eb')]('CreateOrEditWhatsappQueueDialogController',_0x3e665a)[_0x21d0f5('0x23eb')](_0x21d0f5('0x216c'),_0x309c4d)['controller'](_0x21d0f5('0x4fb'),_0x3aa815)[_0x21d0f5('0x23eb')](_0x21d0f5('0x253a'),_0x3d2d02)[_0x21d0f5('0x23eb')](_0x21d0f5('0x1dff'),_0x359e12);const _0x9f18c1=_0x351988['p']+_0x21d0f5('0x65c'),_0x343385=_0x351988['p']+_0x21d0f5('0x248e'),_0x479945=_0x351988['p']+_0x21d0f5('0x13f2'),_0x2afa6d=_0x351988['p']+_0x21d0f5('0x20a6'),_0x41d0ef=_0x351988['p']+_0x21d0f5('0x137d'),_0xda0144=_0x351988['p']+_0x21d0f5('0x11ef'),_0x3c927c=_0x351988['p']+_0x21d0f5('0xe8a');_0x19c007[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0xcbc'),_0x21d0f5('0x2143'),'$cookies',_0x21d0f5('0x17f5'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1150'),_0x21d0f5('0x23e1')];function _0x19c007(_0x2878d7,_0x2b1ac8,_0x1ad875,_0x543a6b,_0x2111b3,_0x2da3dd,_0x1a0247){const _0x1db34a=_0x21d0f5,_0x1a8f6b=this;_0x1a8f6b['progresslogin']=![],_0x1a8f6b['googleSsoEnabled']=![],_0x1a8f6b[_0x1db34a('0x23f4')]=_0x2111b3[_0x1db34a('0x23f4')];function _0x120f60(){const _0x1226c1=_0x1db34a;if(_0x2878d7['params'][_0x1226c1('0xa6e')]&&_0x2878d7[_0x1226c1('0x1ab3')][_0x1226c1('0x2047')])return _0x2da3dd['removeCookies'](),_0x1a8f6b['progresslogin']=!![],_0x1ad875[_0x1226c1('0x2318')](_0x1226c1('0xc2b'),_0x2878d7['params']['token']),_0x2111b3[_0x1226c1('0x21d9')][_0x1226c1('0xbaa')]({'id':_0x2878d7[_0x1226c1('0x1ab3')][_0x1226c1('0x2047')]})[_0x1226c1('0x1549')]['then'](function(_0x255452){const _0x38f088=_0x1226c1;_0x255452&&(_0x2da3dd[_0x38f088('0xc0')](_0x255452),_0x2878d7['go'](_0x38f088('0xe28')));})[_0x1226c1('0xa9b')](function(){const _0x37c026=_0x1226c1;_0x1a8f6b[_0x37c026('0x12e6')]=![];});else _0x2da3dd[_0x1226c1('0xbc8')]()&&_0x2878d7['go'](_0x1226c1('0xe28'));_0x1a8f6b[_0x1226c1('0xc00')]=_0x1a0247[_0x1226c1('0xc00')];}function _0x1093cd(){const _0x1b2442=_0x1db34a;return _0x1a8f6b[_0x1b2442('0x12e6')]=!![],_0x1a8f6b[_0x1b2442('0x1b86')]='',_0x2da3dd[_0x1b2442('0x4c4')](_0x1a8f6b[_0x1b2442('0xcc7')])['then'](function(){return _0x2878d7['go']('app.dashboards.general');})[_0x1b2442('0x151d')](function(_0x23bef8){const _0x2e7058=_0x1b2442;_0x1a8f6b[_0x2e7058('0x1b86')]=_0x23bef8[_0x2e7058('0x4e8')]?_0x23bef8[_0x2e7058('0x4e8')][_0x2e7058('0x1b86')]:_0x23bef8[_0x2e7058('0x1b86')];})[_0x1b2442('0xa9b')](function(){const _0x5336dd=_0x1b2442;_0x1a8f6b[_0x5336dd('0x12e6')]=![];});}function _0x59a5c1(_0x1b2307){const _0x508eb4=_0x1db34a;_0x1a8f6b['message']='',_0x2b1ac8[_0x508eb4('0x1d9a')][_0x508eb4('0xead')]=_0x2da3dd[_0x508eb4('0x4bf')](_0x1b2307);}_0x1a8f6b[_0x1db34a('0x4c4')]=_0x1093cd,_0x1a8f6b[_0x1db34a('0x40f')]=_0x59a5c1,_0x1a8f6b['onInit']=_0x120f60,_0x1a8f6b[_0x1db34a('0x277c')]();}const _0x49da0d=_0x19c007;_0x59c5dd[_0x21d0f5('0x1e9a')]=['$stateProvider',_0x21d0f5('0xc3e')];function _0x59c5dd(_0x386cd8,_0x7118bc){const _0x115e6e=_0x21d0f5;_0x386cd8[_0x115e6e('0x2124')]('app.login',{'url':_0x115e6e('0x97f'),'views':{'main@':{'templateUrl':_0x343385,'controller':_0x115e6e('0x1d23')},'content@app.login':{'templateUrl':_0x9f18c1,'controller':_0x115e6e('0x1f93')}},'bodyClass':_0x115e6e('0x4c4')}),_0x7118bc[_0x115e6e('0x471')](_0x115e6e('0x72c'));}angular['module']('app.login',[])[_0x21d0f5('0x53a')](_0x59c5dd)[_0x21d0f5('0x23eb')](_0x21d0f5('0x1e5b'),_0x49da0d);const _0x56f028=_0x351988['p']+_0x21d0f5('0x26fd');_0x35926f['$inject']=['Auth','toasty',_0x21d0f5('0xb6b'),_0x21d0f5('0xcbc'),_0x21d0f5('0x12a5')];function _0x35926f(_0x3e6aef,_0x6def8e,_0x1beb35,_0x33c95b,_0xfd5bea){const _0x51b36c=_0x21d0f5,_0x2c5d7c=this;_0x2c5d7c[_0x51b36c('0xcc7')]={},_0x2c5d7c[_0x51b36c('0x23f4')]=_0xfd5bea['baseUrl'];function _0x30f482(){const _0x484090=_0x51b36c;_0x3e6aef[_0x484090('0xbc8')]()&&_0x33c95b['go'](_0x484090('0xe28'));}function _0x1b880f(){const _0x504986=_0x51b36c;return _0xfd5bea[_0x504986('0xe20')][_0x504986('0x1f15')](_0x2c5d7c[_0x504986('0xcc7')])[_0x504986('0x1549')][_0x504986('0x11bf')](function(){const _0x2732ea=_0x504986;_0x6def8e[_0x2732ea('0x2693')]({'title':_0x1beb35[_0x2732ea('0x10c2')](_0x2732ea('0x152e')),'msg':_0x1beb35[_0x2732ea('0x10c2')](_0x2732ea('0x1469'))});})[_0x504986('0x151d')](function(_0x2f5452){const _0x29bb84=_0x504986;_0x2f5452&&_0x6def8e['error']({'title':_0x1beb35['instant']('FORGOTPASSWORD.PASSWORD_RESET_ERROR'),'msg':_0x2f5452[_0x29bb84('0x4e8')]?_0x2f5452[_0x29bb84('0x4e8')][_0x29bb84('0x1b86')]||_0x2f5452[_0x29bb84('0x1b86')]||_0x2f5452:_0x2f5452[_0x29bb84('0x1b86')]||_0x2f5452});});}_0x2c5d7c[_0x51b36c('0x23aa')]=_0x1b880f,_0x2c5d7c['onInit']=_0x30f482;}const _0x102319=_0x35926f;_0x56affc[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x13d6'),_0x21d0f5('0xc3e')];function _0x56affc(_0x207b47,_0x131b8d){const _0x113121=_0x21d0f5;_0x207b47[_0x113121('0x2124')](_0x113121('0x206e'),{'url':_0x113121('0x19d2'),'views':{'main@':{'templateUrl':_0x343385,'controller':'MainController\x20as\x20vm'},'content@app.forgot':{'templateUrl':_0x56f028,'controller':'ForgotPasswordController\x20as\x20vm'}},'bodyClass':'forgot'}),_0x131b8d[_0x113121('0x471')]('app/forgot');}angular[_0x21d0f5('0x2768')](_0x21d0f5('0x206e'),[])['config'](_0x56affc)[_0x21d0f5('0x23eb')](_0x21d0f5('0x1900'),_0x102319);const _0x57935a=_0x351988['p']+_0x21d0f5('0x16db');_0xe0ca69['$inject']=[_0x21d0f5('0x1150'),_0x21d0f5('0x142d'),_0x21d0f5('0xb6b'),_0x21d0f5('0xcbc'),_0x21d0f5('0x12a5'),_0x21d0f5('0x1573')];function _0xe0ca69(_0x1eea4e,_0x1a898c,_0x3cb9f8,_0x2c95a5,_0x263a93,_0x3ec8af){const _0x380053=_0x21d0f5,_0x2b11d9=this;_0x2b11d9[_0x380053('0xcc7')]={'token':_0x3ec8af['token']},_0x2b11d9[_0x380053('0x23e1')]={},_0x2b11d9[_0x380053('0x23f4')]=_0x263a93[_0x380053('0x23f4')];function _0x2f3767(){const _0x59ba55=_0x380053;return _0x1eea4e[_0x59ba55('0xbc8')]()&&_0x2c95a5['go']('app.dashboards.general'),_0x263a93['setting'][_0x59ba55('0xb36')]({'id':0x1})[_0x59ba55('0x1549')][_0x59ba55('0x11bf')](function(_0x4ed7c6){const _0x2c9bb1=_0x59ba55;_0x2b11d9[_0x2c9bb1('0x23e1')]=_0x4ed7c6,_0x2b11d9[_0x2c9bb1('0x2834')]=_0x2b11d9[_0x2c9bb1('0x23e1')][_0x2c9bb1('0x1d4')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'';})[_0x59ba55('0x151d')](function(_0x38c006){const _0x561890=_0x59ba55;_0x38c006&&_0x1a898c[_0x561890('0x255')]({'title':_0x561890('0x17c'),'msg':_0x38c006[_0x561890('0x4e8')]?_0x38c006[_0x561890('0x4e8')]['message']||_0x38c006[_0x561890('0x1b86')]||_0x38c006:_0x38c006[_0x561890('0x1b86')]||_0x38c006});});}function _0x469bfd(){const _0xde4917=_0x380053;return _0x263a93[_0xde4917('0xe20')][_0xde4917('0xf58')](_0x2b11d9['form'])[_0xde4917('0x1549')][_0xde4917('0x11bf')](function(){const _0xacd3bf=_0xde4917;_0x1a898c[_0xacd3bf('0x2693')]({'title':_0x3cb9f8[_0xacd3bf('0x10c2')](_0xacd3bf('0x2745')),'msg':_0x3cb9f8[_0xacd3bf('0x10c2')](_0xacd3bf('0x498'))}),_0x2c95a5['go'](_0xacd3bf('0x97e'));})['catch'](function(_0x766194){const _0x170fa9=_0xde4917;_0x766194&&_0x1a898c[_0x170fa9('0x255')]({'title':_0x3cb9f8[_0x170fa9('0x10c2')]('RESETPASSWORD.PASSWORD_RESET_ERROR'),'msg':_0x766194[_0x170fa9('0x4e8')]?_0x766194[_0x170fa9('0x4e8')][_0x170fa9('0x1b86')]||_0x766194[_0x170fa9('0x1b86')]||_0x766194:_0x766194['message']||_0x766194});});}_0x2b11d9[_0x380053('0x10fb')]=_0x469bfd,_0x2b11d9[_0x380053('0x277c')]=_0x2f3767;}const _0x4ec640=_0xe0ca69;_0x15af0f['$inject']=[_0x21d0f5('0x13d6'),'$translatePartialLoaderProvider'];function _0x15af0f(_0xb34783,_0x1239c2){const _0x473213=_0x21d0f5;_0xb34783[_0x473213('0x2124')](_0x473213('0x2189'),{'url':_0x473213('0x1310'),'views':{'main@':{'templateUrl':_0x343385,'controller':_0x473213('0x1d23')},'content@app.reset':{'templateUrl':_0x57935a,'controller':'ResetPasswordController\x20as\x20vm'}},'bodyClass':_0x473213('0xf58')}),_0x1239c2[_0x473213('0x471')](_0x473213('0x17bc'));}angular[_0x21d0f5('0x2768')](_0x21d0f5('0x2189'),[])[_0x21d0f5('0x53a')](_0x15af0f)[_0x21d0f5('0x23eb')](_0x21d0f5('0x146f'),_0x4ec640);const _0x636c70=_0x351988['p']+_0x21d0f5('0x7a4');_0x24c8bf['$inject']=[_0x21d0f5('0xcbc'),_0x21d0f5('0x17f5'),'$q','msNavigationService'];function _0x24c8bf(_0xca042,_0xf56050,_0x5c957b,_0x5dd97a){const _0x5095fb=_0x21d0f5,_0x9d6472=this;function _0x5d1c6b(_0x21421d){const _0x18b2f1=a0_0xaf0c;let _0x35140c=[];const _0x14734a=_0x5dd97a['getFlatNavigation'](),_0x2e7861=_0x5c957b[_0x18b2f1('0xa93')]();for(let _0x65e68f=0x0;_0x65e68f<_0x14734a[_0x18b2f1('0x1e22')];_0x65e68f+=0x1){_0x14734a[_0x65e68f][_0x18b2f1('0x14bf')]&&_0x35140c['push'](_0x14734a[_0x65e68f]);}return _0x21421d&&(_0x35140c=_0x35140c[_0x18b2f1('0xdb4')](function(_0x35bf50){const _0x3f23b2=_0x18b2f1;if(_0x35bf50['title'][_0x3f23b2('0x20d5')]()[_0x3f23b2('0x55a')](_0x21421d[_0x3f23b2('0x20d5')]()))return!![];})),_0xf56050(function(){const _0x3ba321=_0x18b2f1;_0x2e7861[_0x3ba321('0xa28')](_0x35140c);},0x3e8),_0x2e7861['promise'];}function _0x2592f5(_0x1e77b1){const _0x927219=a0_0xaf0c;_0x1e77b1['uisref']&&(_0x1e77b1[_0x927219('0x191f')]?_0xca042['go'](_0x1e77b1[_0x927219('0x2124')],_0x1e77b1[_0x927219('0x191f')]):_0xca042['go'](_0x1e77b1[_0x927219('0x2124')]));}_0x9d6472[_0x5095fb('0xce2')]=_0x5d1c6b,_0x9d6472[_0x5095fb('0xdc0')]=_0x2592f5;}const _0x33a5c0=_0x24c8bf;_0x649284[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x13d6'),_0x21d0f5('0xc3e')];function _0x649284(_0x255811,_0x306edf){const _0x5c9b5f=_0x21d0f5;_0x255811[_0x5c9b5f('0x2124')]('app.errors_error-404',{'url':_0x5c9b5f('0x1ffb'),'views':{'main@':{'templateUrl':_0x343385,'controller':'MainController\x20as\x20vm'},'content@app.errors_error-404':{'templateUrl':_0x636c70,'controller':_0x5c9b5f('0x1f46')}},'params':{'status':0x194,'statusText':'','data':{},'config':{}},'bodyClass':_0x5c9b5f('0x8e1')}),_0x306edf[_0x5c9b5f('0x471')]('app/errors/404');}angular[_0x21d0f5('0x2768')](_0x21d0f5('0x1853'),[])[_0x21d0f5('0x53a')](_0x649284)[_0x21d0f5('0x23eb')]('Error404Controller',_0x33a5c0);const _0x42643f=_0x351988['p']+_0x21d0f5('0x224e');_0x1da1c5['$inject']=['$state',_0x21d0f5('0x1379')];function _0x1da1c5(_0x101d9e,_0x194df2){const _0x5d1f3a=_0x21d0f5,_0x2ec9ab=this;function _0x5f03bd(){const _0x70ae0a=a0_0xaf0c;_0x194df2[_0x70ae0a('0x1718')](_0x70ae0a('0x2383'),_0x2ec9ab[_0x70ae0a('0x255')])['then'](function(_0x54ee7a){const _0x5d9ac6=_0x70ae0a;_0x2ec9ab['send']=!![],_0x54ee7a[_0x5d9ac6('0x4e8')]&&(_0x2ec9ab[_0x5d9ac6('0x344')]=_0x54ee7a[_0x5d9ac6('0x4e8')]['id']);},function(){const _0x5a9373=_0x70ae0a;_0x2ec9ab[_0x5a9373('0x2481')]=![];});}_0x2ec9ab['code']='',_0x2ec9ab[_0x5d1f3a('0x2481')]=![],_0x2ec9ab[_0x5d1f3a('0x255')]=_0x101d9e[_0x5d1f3a('0x1ab3')],_0x2ec9ab['sendReport']=_0x5f03bd;}const _0x36bfe4=_0x1da1c5;_0x20e4b8[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x13d6'),'$translatePartialLoaderProvider'];function _0x20e4b8(_0x51ac93,_0xd6b99){const _0x21923d=_0x21d0f5;_0x51ac93[_0x21923d('0x2124')](_0x21923d('0xc8b'),{'url':_0x21923d('0x1661'),'views':{'main@':{'templateUrl':_0x343385,'controller':_0x21923d('0x1d23')},'content@app.errors_error-500':{'templateUrl':_0x42643f,'controller':_0x21923d('0x1317')}},'params':{'status':0x1f4,'statusText':'','data':{},'config':{}},'bodyClass':_0x21923d('0xb6d')}),_0xd6b99['addPart'](_0x21923d('0xb1f'));}angular[_0x21d0f5('0x2768')](_0x21d0f5('0x29a'),[])[_0x21d0f5('0x53a')](_0x20e4b8)[_0x21d0f5('0x23eb')](_0x21d0f5('0x1927'),_0x36bfe4);;angular[_0x21d0f5('0x2768')]('app.errors',[_0x21d0f5('0x1853'),_0x21d0f5('0x29a')]),_0x4543ef[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1a24')];function _0x4543ef(_0x20477b){const _0x168502=_0x21d0f5,_0x56d22b={};return _0x56d22b[_0x168502('0x23f4')]=!![]?'/':0x0,_0x56d22b[_0x168502('0xe20')]=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+'api/auth/local',{},{'local':{'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1294')},'forgot':{'method':_0x168502('0x1718'),'url':_0x56d22b['baseUrl']+'api/auth/local/forgot'},'reset':{'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1935'),'params':{'token':_0x168502('0x64d')}},'user':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x4a4'),'params':{'token':_0x168502('0x64d')}},'google':{'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/auth/google'}}),_0x56d22b[_0x168502('0x136c')]=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+'api/jira'),_0x56d22b[_0x168502('0x4db')]=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+_0x168502('0xcd3'),{},{'startMonitor':{'method':_0x168502('0xbaa'),'url':_0x56d22b['baseUrl']+'api/rpc/voice/channels/:uniqueid/mixmonitor','params':{'uniqueid':'@uniqueid'}},'stopMonitor':{'method':'get','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1085'),'params':{'uniqueid':_0x168502('0x18f8')}},'getVoiceChannels':{'method':_0x168502('0xbaa'),'url':_0x56d22b['baseUrl']+'api/rpc/voice/channels'},'getVoiceQueues':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x10e8')},'getChatQueues':{'method':_0x168502('0xbaa'),'url':_0x56d22b['baseUrl']+_0x168502('0xa15')},'getMailQueues':{'method':'get','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x31a')},'getSmsQueues':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0xa1d')},'getWhatsappQueues':{'method':'get','url':_0x56d22b['baseUrl']+_0x168502('0xa1d')},'getOpenchannelQueues':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/rpc/openchannel/queues'},'getFaxQueues':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x2136')},'getVoiceQueuesPreview':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x13e1')},'getVoiceQueuesChannels':{'method':'get','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x106e')},'getVoiceQueuesChannel':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x58c')},'getVoiceQueuesChannelHangup':{'method':'get','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0xeb2')},'getVoiceQueuesChannelRedirect':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x598')},'getOutbound':{'method':_0x168502('0xbaa'),'url':_0x56d22b['baseUrl']+_0x168502('0x19e2')},'getOutboundChannels':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1b1')},'getAgents':{'method':'get','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x155')},'setAgentCapacity':{'method':_0x168502('0x2318'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x2676'),'params':{'id':_0x168502('0x101d')}},'getTelephones':{'method':'get','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0xd90')},'getTrunks':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x11c2')},'getCampaigns':{'method':'get','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x593')},'getMailAccounts':{'method':_0x168502('0xbaa'),'url':_0x56d22b['baseUrl']+'api/rpc/mail/accounts'},'getFaxAccounts':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/rpc/fax/accounts'},'getChatQueuesWaitingInteractions':{'method':'get','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x256')},'getMailQueuesWaitingInteractions':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/rpc/mail/queues/waitinginteractions'},'getOpenchannelQueuesWaitingInteractions':{'method':'get','url':_0x56d22b['baseUrl']+_0x168502('0x341')},'getOpenchannelQueuesIdWaitingInteractions':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/rpc/openchannel/queues/:id/waitinginteractions'},'getSmsQueuesWaitingInteractions':{'method':'get','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x25df')},'getFaxQueuesWaitingInteractions':{'method':'get','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x24d9')},'getWhatsappQueuesWaitingInteractions':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x211e')},'mailQueueNotify':{'method':_0x168502('0x1718'),'url':_0x56d22b['baseUrl']+_0x168502('0x1744'),'params':{'id':_0x168502('0x101d')}},'chatQueueNotify':{'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1583'),'params':{'id':_0x168502('0x101d')}},'faxQueueNotify':{'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x195'),'params':{'id':'@id'}},'smsQueueNotify':{'method':_0x168502('0x1718'),'url':_0x56d22b['baseUrl']+_0x168502('0xd87'),'params':{'id':_0x168502('0x101d')}},'openchannelQueueNotify':{'method':'post','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1bb4'),'params':{'id':'@id'}},'agentNotify':{'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/rpc/agents/:id/notify','params':{'id':_0x168502('0x101d')}}}),_0x56d22b['version']=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+_0x168502('0xe9c'),{},{'fetch':{'method':_0x168502('0xbaa'),'url':_0x56d22b['baseUrl']+_0x168502('0x233b')},'reset':{'method':'get','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x9cc')},'pull':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x9a8')},'restart':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x242b')},'migrations':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/version/migrations'}}),_0x56d22b[_0x168502('0x196d')]=_0x20477b(_0x56d22b['baseUrl']+'api/system',{},{'killProcess':{'method':'get','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x658'),'params':{'pid':_0x168502('0x2020')}}}),_0x56d22b[_0x168502('0x14b7')]=_0x20477b(_0x56d22b['baseUrl']+_0x168502('0xb91'),{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318'),'isArray':!![]}}),_0x56d22b['user']=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x2627'),{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1e1')},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b['baseUrl']+_0x168502('0x15d8'),'params':{'includeAll':'@includeAll'}},'bulkCreate':{'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x2498'),'isArray':!![]},'addContacts':{'isArray':!![],'method':'post','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x268c')},'changePassword':{'isArray':![],'method':_0x168502('0x2318'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1fd5')},'addQueues':{'isArray':!![],'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x63f')},'removeQueues':{'isArray':![],'method':'delete','url':_0x56d22b[_0x168502('0x23f4')]+'api/users/:id/queues'},'addAvatar':{'isArray':![],'method':'post','url':_0x56d22b[_0x168502('0x23f4')]+'api/users/:id/avatar'},'getAvatar':{'isArray':![],'method':'get','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0xf56')},'getContacts':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b['baseUrl']+_0x168502('0x268c')},'getQueues':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/users/:id/queues'},'getVoiceQueuesRt':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b['baseUrl']+_0x168502('0x2197')},'getGroups':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/users/:id/groups'},'getRecordings':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b['baseUrl']+_0x168502('0x11a3')},'getScreenRecordings':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b['baseUrl']+'api/users/:id/screen_recordings'},'getChatInteractions':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/users/:id/chat/interactions'},'getOpenchannelInteractions':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/users/:id/openchannel/interactions'},'getMailInteractions':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/users/:id/mail/interactions'},'getSmsInteractions':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x2658')},'getFaxInteractions':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/users/:id/fax/interactions'},'getWhatsappInteractions':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/users/:id/whatsapp/interactions'},'login':{'isArray':![],'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x39a')},'logout':{'isArray':![],'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x153b')},'pause':{'isArray':![],'method':'post','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x627')},'unpause':{'isArray':![],'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0xe34')},'getTeams':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x39b')},'addTeams':{'isArray':!![],'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/users/:id/teams'},'removeTeams':{'isArray':![],'method':_0x168502('0x2088'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x39b')},'getLists':{'isArray':![],'method':'get','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1091')},'getAgents':{'isArray':![],'method':'get','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0xd0a')},'addChatInteractions':{'isArray':!![],'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1054')},'removeChatInteractions':{'isArray':![],'method':_0x168502('0x2088'),'url':_0x56d22b['baseUrl']+_0x168502('0x1054')},'addMailInteractions':{'isArray':!![],'method':'post','url':_0x56d22b['baseUrl']+_0x168502('0x42a')},'removeMailInteractions':{'isArray':![],'method':_0x168502('0x2088'),'url':_0x56d22b['baseUrl']+'api/users/:id/mail_interactions'},'addFaxInteractions':{'isArray':!![],'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x14c8')},'removeFaxInteractions':{'isArray':![],'method':_0x168502('0x2088'),'url':_0x56d22b['baseUrl']+_0x168502('0x14c8')},'addSmsInteractions':{'isArray':!![],'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1746')},'removeSmsInteractions':{'isArray':![],'method':_0x168502('0x2088'),'url':_0x56d22b['baseUrl']+'api/users/:id/sms_interactions'},'addOpenchannelInteractions':{'isArray':!![],'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x139')},'removeOpenchannelInteractions':{'isArray':![],'method':'delete','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x139')},'addWhatsappInteractions':{'isArray':!![],'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1535')},'removeWhatsappInteractions':{'isArray':![],'method':_0x168502('0x2088'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/users/:id/whatsapp_interactions'},'getVoicePrefixes':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1b22')},'getFaxAccounts':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b['baseUrl']+'api/users/:id/fax_accounts'},'addFaxAccounts':{'isArray':!![],'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x17dc')},'removeFaxAccounts':{'isArray':![],'method':_0x168502('0x2088'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x17dc')},'getMailAccounts':{'isArray':![],'method':'get','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1785')},'addMailAccounts':{'isArray':!![],'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1785')},'removeMailAccounts':{'isArray':![],'method':_0x168502('0x2088'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1785')},'getOpenchannelAccounts':{'isArray':![],'method':'get','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x16bf')},'addOpenchannelAccounts':{'isArray':!![],'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/users/:id/openchannel_accounts'},'removeOpenchannelAccounts':{'isArray':![],'method':_0x168502('0x2088'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x16bf')},'getSmsAccounts':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b['baseUrl']+'api/users/:id/sms_accounts'},'addSmsAccounts':{'isArray':!![],'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0xf8f')},'removeSmsAccounts':{'isArray':![],'method':'delete','url':_0x56d22b['baseUrl']+_0x168502('0xf8f')},'getChatWebsites':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1c61')},'addChatWebsites':{'isArray':!![],'method':'post','url':_0x56d22b[_0x168502('0x23f4')]+'api/users/:id/chat_websites'},'removeChatWebsites':{'isArray':![],'method':_0x168502('0x2088'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1c61')},'getWhatsappAccounts':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x15b9')},'addWhatsappAccounts':{'isArray':!![],'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x15b9')},'removeWhatsappAccounts':{'isArray':![],'method':'delete','url':_0x56d22b['baseUrl']+_0x168502('0x15b9')},'getSquareProjects':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x266f')},'addSquareProjects':{'isArray':!![],'method':_0x168502('0x1718'),'url':_0x56d22b['baseUrl']+_0x168502('0x266f')},'removeSquareProjects':{'isArray':![],'method':_0x168502('0x2088'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x266f')},'getScheduledCalls':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x222')},'getApiKey':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x124b')},'createApiKey':{'isArray':![],'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x124b')},'removeApiKey':{'isArray':![],'method':_0x168502('0x2088'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x124b')},'whoami':{'isArray':![],'method':'get','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x22c0')}}),_0x56d22b[_0x168502('0x92f')]=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+'api/voice/chanspy/:id',{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/voice/chanspy/describe'},'clone':{'method':'post','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x2168'),'params':{'includeAll':_0x168502('0x1665')}}}),_0x56d22b[_0x168502('0x1279')]=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+'api/voice/contexts/:id',{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1e2b')},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/voice/contexts/:id/clone','params':{'includeAll':_0x168502('0x1665')}}}),_0x56d22b['voiceExtension']=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+_0x168502('0xc70'),{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0xc4')},'clone':{'method':'post','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x204d'),'params':{'includeAll':_0x168502('0x1665')}},'addApplications':{'isArray':![],'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1c84')}}),_0x56d22b['voiceMusicOnHold']=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+'api/voice/mohs/:id',{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x18c7')},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/voice/mohs/:id/clone','params':{'includeAll':_0x168502('0x1665')}},'addSound':{'isArray':![],'method':'post','url':_0x56d22b[_0x168502('0x23f4')]+'api/voice/mohs/:id/sounds'},'removeSound':{'isArray':![],'method':'delete','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x10fd')},'getSounds':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x252b')}}),_0x56d22b[_0x168502('0x1043')]=_0x20477b(_0x56d22b['baseUrl']+_0x168502('0x20ef'),{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':'get','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1e5')},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x158'),'params':{'includeAll':_0x168502('0x1665')}},'getHoppers':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b['baseUrl']+'api/voice/queues/:id/hoppers'},'getHopperHistories':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x144')},'getHopperFinals':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1773')},'getHopperBlacks':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/voice/queues/:id/hopper_black'},'getTeams':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x6bb')},'addTeams':{'isArray':!![],'method':'post','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x6bb')},'removeTeams':{'isArray':![],'method':_0x168502('0x2088'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x6bb')},'addAgents':{'isArray':!![],'method':_0x168502('0x1718'),'url':_0x56d22b['baseUrl']+_0x168502('0x1b6c')},'removeAgents':{'isArray':![],'method':_0x168502('0x2088'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/voice/queues/:id/users'},'getAgents':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b['baseUrl']+_0x168502('0x1b6c')},'getMembers':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b['baseUrl']+'api/voice/queues/:id/members'},'getLists':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x2505')},'addLists':{'isArray':!![],'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x2505')},'removeLists':{'isArray':!![],'method':_0x168502('0x2088'),'url':_0x56d22b['baseUrl']+_0x168502('0x2505')},'getBlackLists':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b['baseUrl']+'api/voice/queues/:id/blacklists'},'addBlackLists':{'isArray':!![],'method':_0x168502('0x1718'),'url':_0x56d22b['baseUrl']+_0x168502('0xe5e')},'removeBlackLists':{'isArray':!![],'method':'delete','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0xe5e')}}),_0x56d22b[_0x168502('0x262')]=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+'api/voice/recordings/:id',{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':'get','url':_0x56d22b['baseUrl']+_0x168502('0xaaf')},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x18a5'),'params':{'includeAll':_0x168502('0x1665')}},'download':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1413'),'responseType':_0x168502('0xdd0'),'cache':![],'transformResponse':function(_0x7f8c65,_0xb2c22b){const _0x5299c3=_0x168502,_0xf6f55e=_0xb2c22b();return{'type':_0xf6f55e['content-type'],'length':_0xf6f55e[_0x5299c3('0x1d7c')],'buffer':_0x7f8c65};}},'downloads':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x198f')},'runTranscribe':{'isArray':![],'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/voice/recordings/:id/transcribe'},'downloadTranscribe':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x216a'),'responseType':_0x168502('0xdd0'),'cache':![],'transformResponse':function(_0x406882,_0x1c6642){const _0x1a9ed5=_0x168502,_0x44e689=_0x1c6642();return{'type':_0x44e689[_0x1a9ed5('0x1aaa')],'length':_0x44e689[_0x1a9ed5('0x1d7c')],'buffer':_0x406882};}}}),_0x56d22b[_0x168502('0x1520')]=_0x20477b(_0x56d22b['baseUrl']+_0x168502('0x1754'),{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x55b')},'clone':{'method':'post','url':_0x56d22b['baseUrl']+_0x168502('0x8d0'),'params':{'includeAll':_0x168502('0x1665')}},'download':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x2504'),'responseType':_0x168502('0xdd0'),'cache':![],'transformResponse':function(_0x4455c2,_0x590def){const _0x3d1bcc=_0x168502,_0x5164eb=_0x590def();return{'type':_0x5164eb['content-type'],'length':_0x5164eb[_0x3d1bcc('0x1d7c')],'buffer':_0x4455c2};}}}),_0x56d22b[_0x168502('0x2516')]=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x208f'),{'id':'@id'},{'update':{'method':_0x168502('0x2318')},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b['baseUrl']+_0x168502('0x11ca')},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b['baseUrl']+'api/voice/mails/:id/clone','params':{'includeAll':'@includeAll'}},'getMessages':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x188c')}}),_0x56d22b[_0x168502('0x18c6')]=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1b25'),{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x52f')},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0xbad'),'params':{'includeAll':_0x168502('0x1665')}},'download':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x18dc'),'responseType':'arraybuffer','cache':![],'transformResponse':function(_0x33b5da,_0x46f850){const _0x249d63=_0x168502,_0x16b6e8=_0x46f850();return{'type':_0x16b6e8[_0x249d63('0x1aaa')],'length':_0x16b6e8[_0x249d63('0x1d7c')],'buffer':_0x33b5da};}}}),_0x56d22b[_0x168502('0xdd8')]=_0x20477b(_0x56d22b['baseUrl']+_0x168502('0x1b4b'),{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x5bb')},'clone':{'method':'post','url':_0x56d22b[_0x168502('0x23f4')]+'api/voice/calls/reports/:id/clone','params':{'includeAll':'@includeAll'}}}),_0x56d22b['voiceDialReport']=_0x20477b(_0x56d22b['baseUrl']+_0x168502('0x1a9d'),{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x25a')},'clone':{'method':'post','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x21d8'),'params':{'includeAll':_0x168502('0x1665')}}}),_0x56d22b[_0x168502('0x1313')]=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x3db'),{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x923')},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b['baseUrl']+_0x168502('0x2694'),'params':{'includeAll':'@includeAll'}}}),_0x56d22b['voiceQueueReport']=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1d5f'),{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':'get','url':_0x56d22b['baseUrl']+_0x168502('0x17d5')},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x2585'),'params':{'includeAll':_0x168502('0x1665')}},'getVoiceQueuesReport':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0xb85')}}),_0x56d22b[_0x168502('0x4ea')]=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+'api/members/reports/:id',{'id':'@id'},{'update':{'method':_0x168502('0x2318')},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x22b4')},'clone':{'method':'post','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x2669'),'params':{'includeAll':_0x168502('0x1665')}}}),_0x56d22b[_0x168502('0x264e')]=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1af7'),{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1996')},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b['baseUrl']+_0x168502('0xe1'),'params':{'includeAll':_0x168502('0x1665')}}}),_0x56d22b['voiceTransferReport']=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1568'),{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b['baseUrl']+'api/voice/transfers/reports/describe'},'clone':{'method':'post','url':_0x56d22b[_0x168502('0x23f4')]+'api/voice/transfers/reports/:id/clone','params':{'includeAll':'@includeAll'}}}),_0x56d22b[_0x168502('0x1cc3')]=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+'api/mail/out_servers/:id',{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b['baseUrl']+_0x168502('0xc5c')},'clone':{'method':'post','url':_0x56d22b['baseUrl']+'api/mail/out_servers/:id/clone','params':{'includeAll':_0x168502('0x1665')}}}),_0x56d22b[_0x168502('0x1d47')]=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1430'),{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/mail/accounts/describe'},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x204e'),'params':{'includeAll':'@includeAll'}},'addDisposition':{'isArray':![],'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/mail/accounts/:id/dispositions'},'getDispositions':{'isArray':![],'method':'get','url':_0x56d22b['baseUrl']+_0x168502('0x21c5')},'removeDispositions':{'isArray':![],'method':_0x168502('0x2088'),'url':_0x56d22b['baseUrl']+'api/mail/accounts/:id/dispositions'},'addAnswer':{'isArray':![],'method':_0x168502('0x1718'),'url':_0x56d22b['baseUrl']+'api/mail/accounts/:id/canned_answers'},'getAnswers':{'isArray':![],'method':'get','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0xe92')},'removeAnswers':{'isArray':![],'method':_0x168502('0x2088'),'url':_0x56d22b['baseUrl']+_0x168502('0xe92')},'getImap':{'isArray':![],'method':'get','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x257f')},'addImap':{'isArray':![],'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/mail/accounts/:id/in_servers'},'removeImap':{'isArray':![],'method':'delete','url':_0x56d22b['baseUrl']+_0x168502('0x257f')},'getSmtp':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b['baseUrl']+_0x168502('0x2483')},'addSmtp':{'isArray':![],'method':_0x168502('0x1718'),'url':_0x56d22b['baseUrl']+_0x168502('0x2483')},'removeSmtp':{'isArray':![],'method':_0x168502('0x2088'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x2483')},'addInteraction':{'isArray':![],'method':_0x168502('0x1718'),'url':_0x56d22b['baseUrl']+_0x168502('0x2fe')},'getInteractions':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/mail/accounts/:id/interactions'},'addApplications':{'isArray':![],'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0xcab')},'getApplications':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b['baseUrl']+_0x168502('0xcab')},'getMessages':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/mail/accounts/:id/messages'},'send':{'isArray':![],'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/mail/accounts/:id/send'},'verifySmtp':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x18ae')},'addAgents':{'isArray':!![],'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x20f5')},'removeAgents':{'isArray':![],'method':'delete','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x20f5')},'getAgents':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b['baseUrl']+_0x168502('0x20f5')}}),_0x56d22b[_0x168502('0x251b')]=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x26ff'),{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':'get','url':_0x56d22b['baseUrl']+_0x168502('0x2511')},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1fa'),'params':{'includeAll':_0x168502('0x1665')}},'getMembers':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/mail/queues/:id/members'},'getTeams':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1965')},'addTeams':{'isArray':!![],'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1965')},'removeTeams':{'isArray':![],'method':_0x168502('0x2088'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1965')},'addAgents':{'isArray':!![],'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/mail/queues/:id/users'},'removeAgents':{'isArray':![],'method':'delete','url':_0x56d22b['baseUrl']+_0x168502('0x23be')},'getAgents':{'isArray':![],'method':'get','url':_0x56d22b[_0x168502('0x23f4')]+'api/mail/queues/:id/users'}}),_0x56d22b['mailSubstatus']=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x309'),{'id':_0x168502('0x101d')},{'update':{'method':'put'},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/mail/substatuses/describe'},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/mail/substatuses/:id/clone','params':{'includeAll':_0x168502('0x1665')}}}),_0x56d22b[_0x168502('0x26e3')]=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x50e'),{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/mail/interactions/describe'},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x175e'),'params':{'includeAll':'@includeAll'}},'addMessage':{'isArray':![],'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x909')},'getMessages':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x909')},'addTags':{'isArray':![],'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x22bc')},'removeTags':{'isArray':![],'method':_0x168502('0x2088'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x22bc')},'download':{'isArray':![],'method':'get','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x712'),'responseType':_0x168502('0xdd0'),'cache':![],'transformResponse':function(_0x3321ed,_0x138614){const _0x3b7c15=_0x168502,_0x200043=_0x138614();return{'type':_0x200043[_0x3b7c15('0x1aaa')],'length':_0x200043[_0x3b7c15('0x1d7c')],'buffer':_0x3321ed};}}}),_0x56d22b[_0x168502('0x1b14')]=_0x20477b(_0x56d22b['baseUrl']+_0x168502('0x9d6'),{'id':'@id'},{'update':{'method':_0x168502('0x2318')},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x7ae')},'clone':{'method':'post','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x3f2'),'params':{'includeAll':'@includeAll'}},'accept':{'isArray':![],'method':'put','url':_0x56d22b[_0x168502('0x23f4')]+'api/mail/messages/:id/accept'},'reject':{'isArray':![],'method':_0x168502('0x2318'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x719')},'download':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x5d7'),'responseType':_0x168502('0xdd0'),'cache':![],'transformResponse':function(_0x1092b3,_0x324c6f){const _0x4f5751=_0x168502,_0x5f3535=_0x324c6f();return{'type':_0x5f3535[_0x4f5751('0x1aaa')],'length':_0x5f3535[_0x4f5751('0x1d7c')],'buffer':_0x1092b3};}}}),_0x56d22b[_0x168502('0xf0')]=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1ead'),{'id':'@id'},{'update':{'method':_0x168502('0x2318')},'describe':{'method':'get','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0xe9a')},'clone':{'method':'post','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x16a3'),'params':{'includeAll':_0x168502('0x1665')}}}),_0x56d22b['mailQueueReport']=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+'api/mail/reports/queue/:id',{'id':_0x168502('0x101d')},{'update':{'method':'put'},'describe':{'method':'get','url':_0x56d22b['baseUrl']+'api/mail/reports/queue/describe'},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1c80'),'params':{'includeAll':_0x168502('0x1665')}}}),_0x56d22b['dashboard']=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+'api/dashboards/:id',{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':'get','url':_0x56d22b['baseUrl']+_0x168502('0x2223')},'clone':{'method':'post','url':_0x56d22b['baseUrl']+_0x168502('0xa7b'),'params':{'includeAll':_0x168502('0x1665')}},'addItem':{'isArray':![],'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/dashboards/:id/items'},'getItems':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b['baseUrl']+_0x168502('0xcff')}}),_0x56d22b['dashboardItem']=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+'api/dashboards/items/:id',{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b['baseUrl']+_0x168502('0x2283')},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1cc'),'params':{'includeAll':_0x168502('0x1665')}}}),_0x56d22b[_0x168502('0x19dc')]=_0x20477b(_0x56d22b['baseUrl']+_0x168502('0x1f1d'),{'id':'@id'},{'update':{'method':_0x168502('0x2318')},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x169f')},'clone':{'method':'post','url':_0x56d22b['baseUrl']+_0x168502('0x1de6'),'params':{'includeAll':'@includeAll'}},'addDisposition':{'isArray':![],'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1094')},'getDispositions':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1094')},'removeDispositions':{'isArray':![],'method':_0x168502('0x2088'),'url':_0x56d22b['baseUrl']+'api/fax/accounts/:id/dispositions'},'addAnswer':{'isArray':![],'method':'post','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x27dc')},'getAnswers':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x27dc')},'removeAnswers':{'isArray':![],'method':_0x168502('0x2088'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/fax/accounts/:id/canned_answers'},'addInteraction':{'isArray':![],'method':_0x168502('0x1718'),'url':_0x56d22b['baseUrl']+_0x168502('0x1fb0')},'getInteractions':{'isArray':![],'method':'get','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1fb0')},'addApplications':{'isArray':![],'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/fax/accounts/:id/applications'},'getApplications':{'isArray':![],'method':'get','url':_0x56d22b['baseUrl']+_0x168502('0xe1d')},'addAccountApplications':{'isArray':![],'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x194b')},'updateAccountApplications':{'isArray':![],'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x141a')},'getMessages':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1c7d')},'send':{'isArray':![],'method':'post','url':_0x56d22b[_0x168502('0x23f4')]+'api/fax/accounts/:id/send'},'addAgents':{'isArray':!![],'method':'post','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x903')},'removeAgents':{'isArray':![],'method':_0x168502('0x2088'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x903')},'getAgents':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b['baseUrl']+_0x168502('0x903')}}),_0x56d22b[_0x168502('0x125a')]=_0x20477b(_0x56d22b['baseUrl']+_0x168502('0x1e98'),{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x31d')},'clone':{'method':'post','url':_0x56d22b['baseUrl']+_0x168502('0x577'),'params':{'includeAll':_0x168502('0x1665')}}}),_0x56d22b[_0x168502('0x27d')]=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x511'),{'id':'@id'},{'update':{'method':'put'},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x6c')},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x243f'),'params':{'includeAll':_0x168502('0x1665')}},'addMessage':{'isArray':![],'method':'post','url':_0x56d22b['baseUrl']+_0x168502('0x2875')},'getMessages':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x2875')},'addTags':{'isArray':![],'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x2e2')},'removeTags':{'isArray':![],'method':'delete','url':_0x56d22b[_0x168502('0x23f4')]+'api/fax/interactions/:id/tags'},'download':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/fax/interactions/:id/download','responseType':_0x168502('0xdd0'),'cache':![],'transformResponse':function(_0x4ea36f,_0x11def1){const _0x371c40=_0x11def1();return{'type':_0x371c40['content-type'],'length':_0x371c40['content-length'],'buffer':_0x4ea36f};}}}),_0x56d22b[_0x168502('0x156a')]=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x892'),{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b['baseUrl']+_0x168502('0x470')},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/fax/messages/:id/clone','params':{'includeAll':'@includeAll'}},'accept':{'isArray':![],'method':_0x168502('0x2318'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x56b')},'reject':{'isArray':![],'method':_0x168502('0x2318'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/fax/messages/:id/reject'},'download':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0xafa'),'responseType':_0x168502('0xdd0'),'cache':![],'transformResponse':function(_0x5c0454,_0x21d498){const _0x36dfe4=_0x168502,_0x2abc4d=_0x21d498();return{'type':_0x2abc4d[_0x36dfe4('0x1aaa')],'length':_0x2abc4d[_0x36dfe4('0x1d7c')],'buffer':_0x5c0454};}}}),_0x56d22b[_0x168502('0x189d')]=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x24a7'),{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1af3')},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/fax/queues/:id/clone','params':{'includeAll':_0x168502('0x1665')}},'getMembers':{'isArray':![],'method':'get','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x2577')},'getTeams':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x269c')},'addTeams':{'isArray':!![],'method':'post','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x269c')},'removeTeams':{'isArray':![],'method':_0x168502('0x2088'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x269c')},'addAgents':{'isArray':!![],'method':'post','url':_0x56d22b[_0x168502('0x23f4')]+'api/fax/queues/:id/users'},'removeAgents':{'isArray':![],'method':_0x168502('0x2088'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1397')},'getAgents':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b['baseUrl']+'api/fax/queues/:id/users'}}),_0x56d22b[_0x168502('0x1477')]=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x2019'),{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1c79')},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x20ca'),'params':{'includeAll':'@includeAll'}}}),_0x56d22b['smsAccount']=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1454'),{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':'get','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x2888')},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b['baseUrl']+_0x168502('0x10d0'),'params':{'includeAll':_0x168502('0x1665')}},'addDisposition':{'isArray':![],'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1cb8')},'getDispositions':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1cb8')},'removeDispositions':{'isArray':![],'method':_0x168502('0x2088'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1cb8')},'addAnswer':{'isArray':![],'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/sms/accounts/:id/canned_answers'},'getAnswers':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/sms/accounts/:id/canned_answers'},'removeAnswers':{'isArray':![],'method':_0x168502('0x2088'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x445')},'notify':{'isArray':![],'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1b3a')},'addApplications':{'isArray':![],'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x5e7')},'getApplications':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x5e7')},'getInteractions':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b['baseUrl']+_0x168502('0x8b4')},'send':{'isArray':![],'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1737')},'status':{'isArray':![],'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x27b3')},'statusGet':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b['baseUrl']+'api/sms/accounts/:id/status'},'addAgents':{'isArray':!![],'method':_0x168502('0x1718'),'url':_0x56d22b['baseUrl']+'api/sms/accounts/:id/users'},'removeAgents':{'isArray':![],'method':_0x168502('0x2088'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x200e')},'getAgents':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x200e')}}),_0x56d22b[_0x168502('0xc98')]=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+_0x168502('0xa51'),{'id':'@id'},{'update':{'method':_0x168502('0x2318')},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/sms/applications/describe'},'clone':{'method':'post','url':_0x56d22b['baseUrl']+'api/sms/applications/:id/clone','params':{'includeAll':_0x168502('0x1665')}}}),_0x56d22b[_0x168502('0x2877')]=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1553'),{'id':_0x168502('0x101d')},{'update':{'method':'put'},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/sms/interactions/describe'},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/sms/interactions/:id/clone','params':{'includeAll':'@includeAll'}},'addMessage':{'isArray':![],'method':_0x168502('0x1718'),'url':_0x56d22b['baseUrl']+_0x168502('0x1dd6')},'getMessages':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1dd6')},'addTags':{'isArray':![],'method':'post','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0xb64')},'removeTags':{'isArray':![],'method':_0x168502('0x2088'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0xb64')},'download':{'isArray':![],'method':'get','url':_0x56d22b['baseUrl']+_0x168502('0x9b0'),'responseType':_0x168502('0xdd0'),'cache':![],'transformResponse':function(_0x2fef76,_0xfa6f22){const _0x3dd74d=_0x168502,_0x4f5017=_0xfa6f22();return{'type':_0x4f5017[_0x3dd74d('0x1aaa')],'length':_0x4f5017['content-length'],'buffer':_0x2fef76};}}}),_0x56d22b[_0x168502('0x2482')]=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x2541'),{'id':'@id'},{'update':{'method':'put'},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/sms/messages/describe'},'clone':{'method':'post','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0xf36'),'params':{'includeAll':'@includeAll'}},'accept':{'isArray':![],'method':'put','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x16dd')},'reject':{'isArray':![],'method':_0x168502('0x2318'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/sms/messages/:id/reject'},'status':{'isArray':![],'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/sms/messages/:id/status'}}),_0x56d22b[_0x168502('0x1257')]=_0x20477b(_0x56d22b['baseUrl']+_0x168502('0x2770'),{'id':'@id'},{'update':{'method':_0x168502('0x2318')},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/sms/queues/describe'},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0xc18'),'params':{'includeAll':'@includeAll'}},'getMembers':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/sms/queues/:id/members'},'getTeams':{'isArray':![],'method':'get','url':_0x56d22b['baseUrl']+_0x168502('0xd0')},'addTeams':{'isArray':!![],'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0xd0')},'removeTeams':{'isArray':![],'method':_0x168502('0x2088'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/sms/queues/:id/teams'},'addAgents':{'isArray':!![],'method':'post','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x157a')},'removeAgents':{'isArray':![],'method':_0x168502('0x2088'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x157a')},'getAgents':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b['baseUrl']+_0x168502('0x157a')}}),_0x56d22b['openchannelAccount']=_0x20477b(_0x56d22b['baseUrl']+'api/openchannel/accounts/:id',{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/openchannel/accounts/describe'},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x16d1'),'params':{'includeAll':'@includeAll'}},'addDisposition':{'isArray':![],'method':_0x168502('0x1718'),'url':_0x56d22b['baseUrl']+'api/openchannel/accounts/:id/dispositions'},'getDispositions':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1fbe')},'removeDispositions':{'isArray':![],'method':_0x168502('0x2088'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1fbe')},'addAnswer':{'isArray':![],'method':_0x168502('0x1718'),'url':_0x56d22b['baseUrl']+_0x168502('0x10ea')},'getAnswers':{'isArray':![],'method':'get','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x10ea')},'removeAnswers':{'isArray':![],'method':_0x168502('0x2088'),'url':_0x56d22b['baseUrl']+_0x168502('0x10ea')},'notify':{'isArray':![],'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x5de')},'addApplications':{'isArray':![],'method':_0x168502('0x1718'),'url':_0x56d22b['baseUrl']+_0x168502('0x488')},'getApplications':{'isArray':![],'method':'get','url':_0x56d22b['baseUrl']+_0x168502('0x488')},'getInteractions':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b['baseUrl']+'api/openchannel/accounts/:id/interactions'},'addAgents':{'isArray':!![],'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x2399')},'removeAgents':{'isArray':![],'method':'delete','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x2399')},'getAgents':{'isArray':![],'method':'get','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x2399')},'send':{'isArray':![],'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x16')}}),_0x56d22b[_0x168502('0x7e7')]=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+'api/openchannel/applications/:id',{'id':_0x168502('0x101d')},{'update':{'method':'put'},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b['baseUrl']+_0x168502('0x2738')},'clone':{'method':'post','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1666'),'params':{'includeAll':_0x168502('0x1665')}}}),_0x56d22b[_0x168502('0x165e')]=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x2838'),{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x100f')},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x843'),'params':{'includeAll':_0x168502('0x1665')}},'addMessage':{'isArray':![],'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0xb0c')},'getMessages':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b['baseUrl']+'api/openchannel/interactions/:id/messages'},'addTags':{'isArray':![],'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x12af')},'removeTags':{'isArray':![],'method':'delete','url':_0x56d22b[_0x168502('0x23f4')]+'api/openchannel/interactions/:id/tags'},'download':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/openchannel/interactions/:id/download','responseType':_0x168502('0xdd0'),'cache':![],'transformResponse':function(_0x358813,_0x40f7cd){const _0x5571b2=_0x168502,_0x3ea96a=_0x40f7cd();return{'type':_0x3ea96a[_0x5571b2('0x1aaa')],'length':_0x3ea96a[_0x5571b2('0x1d7c')],'buffer':_0x358813};}}}),_0x56d22b['openchannelMessage']=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+'api/openchannel/messages/:id',{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x250f')},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/openchannel/messages/:id/clone','params':{'includeAll':_0x168502('0x1665')}},'accept':{'isArray':![],'method':_0x168502('0x2318'),'url':_0x56d22b['baseUrl']+_0x168502('0x2388')},'reject':{'isArray':![],'method':_0x168502('0x2318'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x173')}}),_0x56d22b[_0x168502('0x121f')]=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x6c6'),{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':'get','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x223d')},'clone':{'method':'post','url':_0x56d22b['baseUrl']+_0x168502('0x827'),'params':{'includeAll':_0x168502('0x1665')}},'getMembers':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b['baseUrl']+'api/openchannel/queues/:id/members'},'getTeams':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/openchannel/queues/:id/teams'},'addTeams':{'isArray':!![],'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1ef0')},'removeTeams':{'isArray':![],'method':_0x168502('0x2088'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1ef0')},'addAgents':{'isArray':!![],'method':'post','url':_0x56d22b['baseUrl']+'api/openchannel/queues/:id/users'},'removeAgents':{'isArray':![],'method':_0x168502('0x2088'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1e60')},'getAgents':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b['baseUrl']+_0x168502('0x1e60')}}),_0x56d22b[_0x168502('0xb50')]=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x190b'),{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b['baseUrl']+_0x168502('0x1dc0')},'clone':{'method':'post','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x17d9'),'params':{'includeAll':'@includeAll'}},'addDisposition':{'isArray':![],'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/chat/websites/:id/dispositions'},'getDispositions':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x3c6')},'removeDispositions':{'isArray':![],'method':'delete','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x3c6')},'addAnswer':{'isArray':![],'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/chat/websites/:id/canned_answers'},'getAnswers':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0xf02')},'removeAnswers':{'isArray':![],'method':_0x168502('0x2088'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0xf02')},'addLogo':{'isArray':![],'method':_0x168502('0x1718'),'url':_0x56d22b['baseUrl']+'api/chat/websites/:id/logo'},'addAvatar':{'isArray':![],'method':_0x168502('0x1718'),'url':_0x56d22b['baseUrl']+'api/chat/websites/:id/avatar'},'addCustomerAvatar':{'isArray':![],'method':'post','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1c95')},'addSystemAvatar':{'isArray':![],'method':_0x168502('0x1718'),'url':_0x56d22b['baseUrl']+_0x168502('0xc36')},'getLogo':{'isArray':![],'method':'get','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0xcba')},'getAvatar':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/chat/websites/:id/avatar'},'getCustomerAvatar':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b['baseUrl']+_0x168502('0x1c95')},'getSystemAvatar':{'isArray':![],'method':'get','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0xc36')},'notify':{'isArray':![],'method':'post','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x194d')},'offline':{'isArray':![],'method':'post','url':_0x56d22b['baseUrl']+'api/chat/websites/:id/offline'},'addInteraction':{'isArray':![],'method':'post','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x15ac')},'getInteractions':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x15ac')},'getSnippet':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/chat/websites/:id/snippet'},'addApplications':{'isArray':![],'method':'post','url':_0x56d22b[_0x168502('0x23f4')]+'api/chat/websites/:id/applications'},'getApplications':{'isArray':![],'method':'get','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1a9')},'addProactiveActions':{'isArray':![],'method':_0x168502('0x1718'),'url':_0x56d22b['baseUrl']+_0x168502('0x14ca')},'getProactiveActions':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x14ca')},'getFields':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b['baseUrl']+'api/chat/websites/:id/fields'},'getOfflineMessages':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0xc86')},'addAgents':{'isArray':!![],'method':'post','url':_0x56d22b['baseUrl']+_0x168502('0x1fba')},'removeAgents':{'isArray':![],'method':_0x168502('0x2088'),'url':_0x56d22b['baseUrl']+_0x168502('0x1fba')},'getAgents':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/chat/websites/:id/users'}}),_0x56d22b[_0x168502('0x434')]=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+_0x168502('0xa14'),{'id':_0x168502('0x101d')},{'update':{'method':'put'},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/openchannel/reports/queue/describe'},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x89d'),'params':{'includeAll':_0x168502('0x1665')}}}),_0x56d22b[_0x168502('0x2015')]=_0x20477b(_0x56d22b['baseUrl']+_0x168502('0xed3'),{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x23e3')},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x19fc'),'params':{'includeAll':'@includeAll'}}}),_0x56d22b[_0x168502('0x6ed')]=_0x20477b(_0x56d22b['baseUrl']+_0x168502('0x2370'),{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b['baseUrl']+'api/chat/interactions/describe'},'clone':{'method':'post','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x8ce'),'params':{'includeAll':_0x168502('0x1665')}},'createVidaooSession':{'isArray':![],'method':'post','url':_0x56d22b['baseUrl']+_0x168502('0x1211')},'customUpdate':{'isArray':![],'method':_0x168502('0x2318'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x2457')},'abandon':{'isArray':![],'method':'put','url':_0x56d22b['baseUrl']+_0x168502('0x2648')},'attachmentUpload':{'isArray':![],'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/chat/interactions/:id/attachment_upload'},'attachmentDownload':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x2611')},'close':{'isArray':![],'method':_0x168502('0x2318'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x881')},'addMessage':{'isArray':![],'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1f94')},'getMessages':{'isArray':![],'method':'get','url':_0x56d22b['baseUrl']+'api/chat/interactions/:id/messages'},'getMyMessages':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b['baseUrl']+_0x168502('0x229e')},'addTags':{'isArray':![],'method':'post','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x23f5')},'removeTags':{'isArray':![],'method':'delete','url':_0x56d22b[_0x168502('0x23f4')]+'api/chat/interactions/:id/tags'},'download':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/chat/interactions/:id/download','responseType':'arraybuffer','cache':![],'transformResponse':function(_0x431c89,_0x390a84){const _0x265f29=_0x168502,_0x4f89c9=_0x390a84();return{'type':_0x4f89c9[_0x265f29('0x1aaa')],'length':_0x4f89c9[_0x265f29('0x1d7c')],'buffer':_0x431c89};}}}),_0x56d22b['chatMessage']=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1e5c'),{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x26fb')},'clone':{'method':'post','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1c2b'),'params':{'includeAll':'@includeAll'}},'accept':{'isArray':![],'method':_0x168502('0x2318'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0xdc5')},'reject':{'isArray':![],'method':_0x168502('0x2318'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1dcb')}}),_0x56d22b[_0x168502('0x180f')]=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+_0x168502('0xa9f'),{'id':_0x168502('0x101d')},{'update':{'method':'put'},'describe':{'method':'get','url':_0x56d22b[_0x168502('0x23f4')]+'api/chat/offline_messages/describe'},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/chat/offline_messages/:id/clone','params':{'includeAll':_0x168502('0x1665')}}}),_0x56d22b[_0x168502('0x1c23')]=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x9cd'),{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':'get','url':_0x56d22b[_0x168502('0x23f4')]+'api/chat/queues/describe'},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1131'),'params':{'includeAll':_0x168502('0x1665')}},'getMembers':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b['baseUrl']+_0x168502('0x141')},'getTeams':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1e29')},'addTeams':{'isArray':!![],'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1e29')},'removeTeams':{'isArray':![],'method':'delete','url':_0x56d22b['baseUrl']+'api/chat/queues/:id/teams'},'addAgents':{'isArray':!![],'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1cbd')},'removeAgents':{'isArray':![],'method':_0x168502('0x2088'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1cbd')},'getAgents':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1cbd')}}),_0x56d22b['chatGroup']=_0x20477b(_0x56d22b['baseUrl']+_0x168502('0x12d4'),{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':'get','url':_0x56d22b[_0x168502('0x23f4')]+'api/chat/groups/describe'},'clone':{'method':'post','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x838'),'params':{'includeAll':'@includeAll'}},'getUnread':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/chat/groups/:id/unread'},'addMembers':{'isArray':!![],'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1de1')},'getMembers':{'isArray':![],'method':'get','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1de1')},'removeMembers':{'isArray':![],'method':_0x168502('0x2088'),'url':_0x56d22b['baseUrl']+'api/chat/groups/:id/members'},'addMessage':{'isArray':![],'method':'post','url':_0x56d22b['baseUrl']+_0x168502('0x19ca')},'getMessages':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/chat/groups/:id/messages'}}),_0x56d22b[_0x168502('0x1082')]=_0x20477b(_0x56d22b['baseUrl']+'api/chat/proactive_actions/:id',{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b['baseUrl']+_0x168502('0x73c')},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x2788'),'params':{'includeAll':_0x168502('0x1665')}}}),_0x56d22b[_0x168502('0x9ba')]=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+'api/cm/companies/:id',{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b['baseUrl']+_0x168502('0x366')},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1d31'),'params':{'includeAll':_0x168502('0x1665')}},'addContacts':{'isArray':![],'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x34e')},'getContacts':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x34e')}}),_0x56d22b[_0x168502('0x1b8f')]=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x105a'),{'id':'@id'},{'update':{'method':_0x168502('0x2318')},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x24ea')},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1d95'),'params':{'includeAll':_0x168502('0x1665')}},'merge':{'isArray':![],'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1214')},'bulkCreate':{'isArray':![],'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x2303')},'getTags':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b['baseUrl']+_0x168502('0x2120')},'setTags':{'isArray':!![],'method':_0x168502('0x1718'),'url':_0x56d22b['baseUrl']+_0x168502('0x2120')},'getHoppers':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/cm/contacts/:id/hoppers'},'getHopperHistories':{'isArray':![],'method':'get','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x129b')},'getHopperFinals':{'isArray':![],'method':'get','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1357')},'getJscriptySessions':{'isArray':![],'method':'get','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x2175')},'upload':{'isArray':![],'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x299')},'import':{'isArray':![],'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x5e2')}}),_0x56d22b['cmHopper']=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1ae7'),{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b['baseUrl']+_0x168502('0x2108')},'clone':{'method':'post','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x225b'),'params':{'includeAll':_0x168502('0x1665')}},'getPreview':{'isArray':![],'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x356')},'getOpenContacts':{'isArray':![],'method':'get','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x20c1')}}),_0x56d22b[_0x168502('0x1719')]=_0x20477b(_0x56d22b['baseUrl']+_0x168502('0x1998'),{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':'get','url':_0x56d22b['baseUrl']+_0x168502('0x2563')},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1d70'),'params':{'includeAll':'@includeAll'}}}),_0x56d22b[_0x168502('0x1794')]=_0x20477b(_0x56d22b['baseUrl']+_0x168502('0xb05'),{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':'get','url':_0x56d22b['baseUrl']+_0x168502('0x1464')},'clone':{'method':'post','url':_0x56d22b[_0x168502('0x23f4')]+'api/cm/hopper_final/:id/clone','params':{'includeAll':'@includeAll'}},'countContactsQueueCampaignHopperFinal':{'isArray':!![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x7ce')},'countContactsIvrCampaignHopperFinal':{'isArray':!![],'method':'get','url':_0x56d22b['baseUrl']+_0x168502('0x2883')},'moveContactsQueueCampaignHopperFinal':{'isArray':!![],'method':_0x168502('0x1718'),'url':_0x56d22b['baseUrl']+'api/cm/hopper_final/voice/queue/moveContacts/:id'},'moveContactsIvrCampaignHopperFinal':{'isArray':!![],'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x2466')},'checkContactHopper':{'isArray':![],'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x522')}}),_0x56d22b[_0x168502('0x246')]=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+_0x168502('0xc65'),{'id':'@id'},{'update':{'method':_0x168502('0x2318')},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0xe69')},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x14eb'),'params':{'includeAll':'@includeAll'}}}),_0x56d22b[_0x168502('0x1540')]=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+_0x168502('0xe9'),{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0xe2d')},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0xc32'),'params':{'includeAll':_0x168502('0x1665')}}}),_0x56d22b[_0x168502('0x1607')]=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+'api/actions/:id',{'id':_0x168502('0x101d')},{'update':{'method':'put'},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/actions/describe'},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0xbcf'),'params':{'includeAll':'@includeAll'}}}),_0x56d22b[_0x168502('0x15d4')]=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+_0x168502('0xe66'),{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':'get','url':_0x56d22b['baseUrl']+_0x168502('0x197c')},'clone':{'method':'post','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x20ae'),'params':{'includeAll':_0x168502('0x1665')}},'addConditions':{'isArray':![],'method':'post','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x35a')},'getConditions':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x35a')},'addActions':{'isArray':![],'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1fa3')},'getActions':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b['baseUrl']+_0x168502('0x1fa3')}}),_0x56d22b[_0x168502('0x81')]=_0x20477b(_0x56d22b['baseUrl']+'api/canned_answers/:id',{'id':_0x168502('0x101d')},{'update':{'method':'put'},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b['baseUrl']+'api/canned_answers/describe'},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b['baseUrl']+_0x168502('0x1880'),'params':{'includeAll':_0x168502('0x1665')}}}),_0x56d22b[_0x168502('0x107a')]=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+'api/dispositions/:id',{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b['baseUrl']+_0x168502('0x1463')},'clone':{'method':'post','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x261f'),'params':{'includeAll':_0x168502('0x1665')}}}),_0x56d22b[_0x168502('0xccd')]=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+'api/conditions/:id',{'id':_0x168502('0x101d')},{'update':{'method':'put'},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x10f1')},'clone':{'method':'post','url':_0x56d22b[_0x168502('0x23f4')]+'api/conditions/:id/clone','params':{'includeAll':'@includeAll'}}}),_0x56d22b[_0x168502('0x507')]=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+_0x168502('0xc3b'),{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b['baseUrl']+_0x168502('0x1224')},'clone':{'method':'post','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x177c'),'params':{'includeAll':_0x168502('0x1665')}},'addInterval':{'isArray':![],'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0xa08')},'getIntervals':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0xa08')},'addIntervals':{'isArray':!![],'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x12b9')}}),_0x56d22b[_0x168502('0x92a')]=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1cf'),{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':'get','url':_0x56d22b['baseUrl']+_0x168502('0x6bc')},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b['baseUrl']+_0x168502('0x261d'),'params':{'includeAll':'@includeAll'}}}),_0x56d22b[_0x168502('0x12f1')]=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1617'),{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0xfba')},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b['baseUrl']+_0x168502('0x6cc'),'params':{'includeAll':_0x168502('0x1665')}}}),_0x56d22b[_0x168502('0x22e9')]=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+_0x168502('0xe2c'),{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':'get','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x19e9')},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b['baseUrl']+_0x168502('0x1c44'),'params':{'includeAll':_0x168502('0x1665')}}}),_0x56d22b[_0x168502('0xc04')]=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x2d8'),{'id':_0x168502('0x101d')},{'update':{'method':'put'},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x159f')},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x19f'),'params':{'includeAll':'@includeAll'}},'run':{'isArray':![],'method':'get','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x8ed')}}),_0x56d22b[_0x168502('0x1d6e')]=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+_0x168502('0xb8a'),{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b['baseUrl']+_0x168502('0x2807')},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b['baseUrl']+_0x168502('0x1707'),'params':{'includeAll':_0x168502('0x1665')}},'download':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/sounds/:id/download','responseType':_0x168502('0xdd0'),'cache':![],'transformResponse':function(_0x29b535,_0x5b8251){const _0x13efd3=_0x168502,_0x300c60=_0x5b8251();return{'type':_0x300c60[_0x13efd3('0x1aaa')],'length':_0x300c60[_0x13efd3('0x1d7c')],'buffer':_0x29b535};}},'delete':{'isArray':![],'method':_0x168502('0x2088'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0xb8a')}}),_0x56d22b[_0x168502('0x1d73')]=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+'api/tags/:id',{'id':_0x168502('0x101d')},{'update':{'method':'put'},'describe':{'method':'get','url':_0x56d22b[_0x168502('0x23f4')]+'api/tags/describe'},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1d0'),'params':{'includeAll':'@includeAll'}}}),_0x56d22b['template']=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x14a'),{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':'get','url':_0x56d22b['baseUrl']+_0x168502('0x3fa')},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b['baseUrl']+_0x168502('0x5cc'),'params':{'includeAll':_0x168502('0x1665')}}}),_0x56d22b[_0x168502('0x1be2')]=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x6af'),{'id':'@id'},{'update':{'method':_0x168502('0x2318')},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x16e2')},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1a48'),'params':{'includeAll':_0x168502('0x1665')}},'addAllCondition':{'isArray':![],'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x336')},'addAnyCondition':{'isArray':![],'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x8bc')},'getAllConditions':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x336')},'getAnyConditions':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/triggers/:id/any_conditions'},'addAction':{'isArray':![],'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1a73')},'getActions':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1a73')}}),_0x56d22b[_0x168502('0xb0')]=_0x20477b(_0x56d22b['baseUrl']+_0x168502('0x15d0'),{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/variables/describe'},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x9a'),'params':{'includeAll':_0x168502('0x1665')}}}),_0x56d22b[_0x168502('0x1be6')]=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x216b'),{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1474')},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0xa8c'),'params':{'includeAll':_0x168502('0x1665')}}}),_0x56d22b[_0x168502('0x2462')]=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x27b9'),{'id':_0x168502('0x101d')},{'update':{'method':'put'},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b['baseUrl']+_0x168502('0x1fb6')},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x12fe'),'params':{'includeAll':'@includeAll'}}}),_0x56d22b[_0x168502('0x13ee')]=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x4e7'),{'id':'@id'},{'update':{'method':_0x168502('0x2318')},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b['baseUrl']+_0x168502('0xaef')},'clone':{'method':'post','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1076'),'params':{'includeAll':_0x168502('0x1665')}},'preview':{'isArray':!![],'method':'get','url':_0x56d22b['baseUrl']+'api/analytics/custom_reports/:id/preview'},'run':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1b0c')},'query':{'isArray':![],'method':'get','url':_0x56d22b['baseUrl']+_0x168502('0x1455')}}),_0x56d22b['analyticDefaultReport']=_0x20477b(_0x56d22b['baseUrl']+_0x168502('0x230d'),{'id':'@id'},{'update':{'method':_0x168502('0x2318')},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b['baseUrl']+_0x168502('0x1a47')},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1490'),'params':{'includeAll':_0x168502('0x1665')}},'preview':{'isArray':!![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/analytics/default_reports/:id/preview'},'run':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/analytics/default_reports/:id/run'},'query':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x2b0')}}),_0x56d22b['analyticExtractedReport']=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x12db'),{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x2684')},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x11b0'),'params':{'includeAll':_0x168502('0x1665')}},'download':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1f2'),'responseType':_0x168502('0xdd0'),'cache':![],'transformResponse':function(_0x5a116d,_0x1885e6){const _0x2b13af=_0x168502,_0x51b799=_0x1885e6();return{'type':_0x51b799[_0x2b13af('0x1aaa')],'length':_0x51b799[_0x2b13af('0x1d7c')],'buffer':_0x5a116d};}}}),_0x56d22b[_0x168502('0xde8')]=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x5c'),{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b['baseUrl']+_0x168502('0x1407')},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0xedd'),'params':{'includeAll':_0x168502('0x1665')}}}),_0x56d22b[_0x168502('0x15ad')]=_0x20477b(_0x56d22b['baseUrl']+_0x168502('0x160f'),{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b['baseUrl']+_0x168502('0x15a6')},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1c83'),'params':{'includeAll':'@includeAll'}},'bulkCreate':{'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1d3e'),'isArray':!![]},'bulkDestroy':{'method':'delete','url':_0x56d22b['baseUrl']+_0x168502('0x135d'),'isArray':!![]},'addFields':{'isArray':!![],'method':_0x168502('0x1718'),'url':_0x56d22b['baseUrl']+_0x168502('0xd13')}}),_0x56d22b[_0x168502('0x32b')]=_0x20477b(_0x56d22b['baseUrl']+_0x168502('0xe44'),{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1126')},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b['baseUrl']+_0x168502('0x1e53'),'params':{'includeAll':_0x168502('0x1665')}}}),_0x56d22b[_0x168502('0x1165')]=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x9c1'),{'id':_0x168502('0x101d')},{'update':{'method':'put'},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/integrations/salesforce/accounts/describe'},'clone':{'method':'post','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0xdd1'),'params':{'includeAll':_0x168502('0x1665')}},'getConfigurations':{'isArray':![],'method':'get','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x5f5')},'addConfiguration':{'isArray':![],'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x5f5')},'getFields':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x18fc')}}),_0x56d22b['intSalesforceConfiguration']=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+_0x168502('0xd67'),{'id':'@id'},{'update':{'method':_0x168502('0x2318')},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1215')},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x22db'),'params':{'includeAll':_0x168502('0x1665')}},'getFields':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/integrations/salesforce/configurations/:id/fields'},'getSubjects':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x16b5')},'getDescriptions':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0xb20')}}),_0x56d22b[_0x168502('0x22fb')]=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x13d'),{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x113')},'clone':{'method':'post','url':_0x56d22b['baseUrl']+_0x168502('0x2164'),'params':{'includeAll':'@includeAll'}}}),_0x56d22b['intSugarcrmAccount']=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x2de'),{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':'get','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0xd72')},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x2518'),'params':{'includeAll':_0x168502('0x1665')}},'getConfigurations':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b['baseUrl']+_0x168502('0xe18')},'addConfiguration':{'isArray':![],'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0xe18')},'getFields':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x22a2')}}),_0x56d22b[_0x168502('0x186b')]=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x112c'),{'id':_0x168502('0x101d')},{'update':{'method':'put'},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x231d')},'clone':{'method':'post','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1cf8'),'params':{'includeAll':_0x168502('0x1665')}},'getFields':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/integrations/sugarcrm/configurations/:id/fields'},'getSubjects':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b['baseUrl']+_0x168502('0x413')},'getDescriptions':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/integrations/sugarcrm/configurations/:id/descriptions'}}),_0x56d22b[_0x168502('0x19af')]=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+'api/integrations/sugarcrm/fields/:id',{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':'get','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x192a')},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/integrations/sugarcrm/fields/:id/clone','params':{'includeAll':_0x168502('0x1665')}}}),_0x56d22b['intDeskAccount']=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x2d4'),{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b['baseUrl']+_0x168502('0x10bf')},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0xfca'),'params':{'includeAll':_0x168502('0x1665')}},'getConfigurations':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b['baseUrl']+'api/integrations/desk/accounts/:id/configurations'},'addConfiguration':{'isArray':![],'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0xc22')},'getFields':{'isArray':![],'method':'get','url':_0x56d22b[_0x168502('0x23f4')]+'api/integrations/desk/accounts/:id/fields'}}),_0x56d22b[_0x168502('0x85a')]=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x22d8'),{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x481')},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1a8b'),'params':{'includeAll':_0x168502('0x1665')}},'getFields':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1599')},'getSubjects':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1953')},'getDescriptions':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x20b4')},'getTags':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/integrations/desk/configurations/:id/tags'},'setTags':{'isArray':!![],'method':'post','url':_0x56d22b[_0x168502('0x23f4')]+'api/integrations/desk/configurations/:id/tags'}}),_0x56d22b[_0x168502('0x66')]=_0x20477b(_0x56d22b['baseUrl']+_0x168502('0x1a16'),{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0xf30')},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x27b5'),'params':{'includeAll':_0x168502('0x1665')}}}),_0x56d22b[_0x168502('0x1437')]=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x57b'),{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b['baseUrl']+'api/integrations/zoho/accounts/describe'},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x26df'),'params':{'includeAll':'@includeAll'}},'getConfigurations':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/integrations/zoho/accounts/:id/configurations'},'addConfiguration':{'isArray':![],'method':_0x168502('0x1718'),'url':_0x56d22b['baseUrl']+_0x168502('0xd34')},'getFields':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x13b0')}}),_0x56d22b['intZohoConfiguration']=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x24c8'),{'id':'@id'},{'update':{'method':'put'},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/integrations/zoho/configurations/describe'},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1c5f'),'params':{'includeAll':_0x168502('0x1665')}},'getFields':{'isArray':![],'method':'get','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x2635')},'getSubjects':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b['baseUrl']+_0x168502('0x27e')},'getDescriptions':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0xe53')}}),_0x56d22b[_0x168502('0xa0d')]=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x27a4'),{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':'get','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0xaad')},'clone':{'method':'post','url':_0x56d22b['baseUrl']+'api/integrations/zoho/fields/:id/clone','params':{'includeAll':_0x168502('0x1665')}}}),_0x56d22b['intZendeskAccount']=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x237b'),{'id':_0x168502('0x101d')},{'update':{'method':'put'},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/integrations/zendesk/accounts/describe'},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x2177'),'params':{'includeAll':_0x168502('0x1665')}},'getConfigurations':{'isArray':![],'method':'get','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0xa6b')},'addConfiguration':{'isArray':![],'method':'post','url':_0x56d22b[_0x168502('0x23f4')]+'api/integrations/zendesk/accounts/:id/configurations'},'getFields':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b['baseUrl']+_0x168502('0x12b')}}),_0x56d22b[_0x168502('0x616')]=_0x20477b(_0x56d22b['baseUrl']+_0x168502('0x2bb'),{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b['baseUrl']+_0x168502('0x2be')},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x199d'),'params':{'includeAll':_0x168502('0x1665')}},'getFields':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1f70')},'getSubjects':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x4d2')},'getDescriptions':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x259a')},'getTags':{'isArray':![],'method':'get','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x2f2')},'setTags':{'isArray':!![],'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x2f2')}}),_0x56d22b[_0x168502('0x1d04')]=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x817'),{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1a18')},'clone':{'method':'post','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1863'),'params':{'includeAll':_0x168502('0x1665')}}}),_0x56d22b[_0x168502('0x144e')]=_0x20477b(_0x56d22b['baseUrl']+_0x168502('0x19c6'),{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b['baseUrl']+_0x168502('0x7a1')},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b['baseUrl']+_0x168502('0x203e'),'params':{'includeAll':_0x168502('0x1665')}},'getConfigurations':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b['baseUrl']+_0x168502('0x2a4')},'addConfiguration':{'isArray':![],'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x2a4')},'getFields':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x26f0')}}),_0x56d22b[_0x168502('0x10fa')]=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+_0x168502('0xf03'),{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b['baseUrl']+_0x168502('0x195f')},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x138e'),'params':{'includeAll':'@includeAll'}},'getFields':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/integrations/freshdesk/configurations/:id/fields'},'getSubjects':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x22b6')},'getDescriptions':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1c3b')},'getTags':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b['baseUrl']+_0x168502('0x282d')},'setTags':{'isArray':!![],'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/integrations/freshdesk/configurations/:id/tags'}}),_0x56d22b[_0x168502('0x26ae')]=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x592'),{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/integrations/freshdesk/fields/describe'},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0xf4f'),'params':{'includeAll':_0x168502('0x1665')}}}),_0x56d22b['intVtigerAccount']=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x6d5'),{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b['baseUrl']+_0x168502('0x2721')},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x7ab'),'params':{'includeAll':_0x168502('0x1665')}},'getConfigurations':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b['baseUrl']+'api/integrations/vtiger/accounts/:id/configurations'},'addConfiguration':{'isArray':![],'method':'post','url':_0x56d22b[_0x168502('0x23f4')]+'api/integrations/vtiger/accounts/:id/configurations'},'getFields':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/integrations/vtiger/accounts/:id/fields'}}),_0x56d22b[_0x168502('0x1d66')]=_0x20477b(_0x56d22b['baseUrl']+_0x168502('0x22f'),{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/integrations/vtiger/configurations/describe'},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b['baseUrl']+_0x168502('0x1a8c'),'params':{'includeAll':'@includeAll'}},'getFields':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b['baseUrl']+_0x168502('0x1207')},'getSubjects':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x277e')},'getDescriptions':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x24b3')}}),_0x56d22b[_0x168502('0xb92')]=_0x20477b(_0x56d22b['baseUrl']+_0x168502('0x183f'),{'id':'@id'},{'update':{'method':'put'},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0xa6c')},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1cf3'),'params':{'includeAll':_0x168502('0x1665')}}}),_0x56d22b[_0x168502('0x2661')]=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x25dd'),{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x599')},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1bba'),'params':{'includeAll':_0x168502('0x1665')}},'getConfigurations':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x261e')},'addConfiguration':{'isArray':![],'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x261e')},'getFields':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x883')}}),_0x56d22b[_0x168502('0x1e64')]=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+_0x168502('0xeee'),{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/integrations/servicenow/configurations/describe'},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1c5c'),'params':{'includeAll':_0x168502('0x1665')}},'getFields':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/integrations/servicenow/configurations/:id/fields'},'getSubjects':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0xe9b')},'getDescriptions':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x75f')}}),_0x56d22b[_0x168502('0xcb3')]=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+'api/integrations/servicenow/fields/:id',{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x2242')},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0xe4f'),'params':{'includeAll':_0x168502('0x1665')}}}),_0x56d22b['intDynamics365Account']=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x150'),{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':'get','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x660')},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x11d2'),'params':{'includeAll':'@includeAll'}},'getConfigurations':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/integrations/dynamics365/accounts/:id/configurations'},'addConfiguration':{'isArray':![],'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1e38')},'getFields':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b['baseUrl']+'api/integrations/dynamics365/accounts/:id/fields'}}),_0x56d22b['intDynamics365Configuration']=_0x20477b(_0x56d22b['baseUrl']+_0x168502('0x1f67'),{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':'get','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x16ba')},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b['baseUrl']+_0x168502('0x9dd'),'params':{'includeAll':_0x168502('0x1665')}},'getFields':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b['baseUrl']+'api/integrations/dynamics365/configurations/:id/fields'},'getSubjects':{'isArray':![],'method':'get','url':_0x56d22b['baseUrl']+_0x168502('0xae3')},'getDescriptions':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x254e')}}),_0x56d22b[_0x168502('0x18b0')]=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+'api/integrations/dynamics365/fields/:id',{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1358')},'clone':{'method':'post','url':_0x56d22b[_0x168502('0x23f4')]+'api/integrations/dynamics365/fields/:id/clone','params':{'includeAll':_0x168502('0x1665')}}}),_0x56d22b[_0x168502('0xda4')]=_0x20477b(_0x56d22b['baseUrl']+_0x168502('0x222d'),{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x2227')},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0xbf'),'params':{'includeAll':_0x168502('0x1665')}},'getConfigurations':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0xd69')},'addConfiguration':{'isArray':![],'method':_0x168502('0x1718'),'url':_0x56d22b['baseUrl']+_0x168502('0xd69')},'getFields':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x200c')}}),_0x56d22b[_0x168502('0xf5d')]=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x741'),{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':'get','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x30c')},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/integrations/freshsales/configurations/:id/clone','params':{'includeAll':_0x168502('0x1665')}},'getSubjects':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b['baseUrl']+_0x168502('0x2021')},'getDescriptions':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x128e')},'getFields':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b['baseUrl']+_0x168502('0x25f4')}}),_0x56d22b[_0x168502('0x1a53')]=_0x20477b(_0x56d22b['baseUrl']+_0x168502('0xc7'),{'id':_0x168502('0x101d')},{'update':{'method':'put'},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x279')},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1860'),'params':{'includeAll':'@includeAll'}}}),_0x56d22b['network']=_0x20477b(_0x56d22b['baseUrl']+_0x168502('0x19f1'),{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':'get','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1731')},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/networks/:id/clone','params':{'includeAll':'@includeAll'}}}),_0x56d22b[_0x168502('0x2453')]=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+_0x168502('0xab4'),{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/chat/reports/queue/describe'},'clone':{'method':'post','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x217c'),'params':{'includeAll':'@includeAll'}}}),_0x56d22b[_0x168502('0xe7d')]=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+'api/chat/internal/messages/:id',{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1528')},'clone':{'method':'post','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x717'),'params':{'includeAll':_0x168502('0x1665')}},'getUsers':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x108e')}}),_0x56d22b[_0x168502('0x1dc')]=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x17e6'),{'id':_0x168502('0x101d')},{'update':{'method':'put'},'describe':{'method':'get','url':_0x56d22b['baseUrl']+_0x168502('0x1a70')},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/jscripty/answers/reports/:id/clone','params':{'includeAll':_0x168502('0x1665')}}}),_0x56d22b[_0x168502('0x23cf')]=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+_0x168502('0xdf3'),{'id':'@id'},{'update':{'method':_0x168502('0x2318')},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/jscripty/questions/reports/describe'},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x2613'),'params':{'includeAll':_0x168502('0x1665')}}}),_0x56d22b[_0x168502('0x1d99')]=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+_0x168502('0xc47'),{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/jscripty/sessions/reports/describe'},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/jscripty/sessions/reports/:id/clone','params':{'includeAll':'@includeAll'}},'getQuestions':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x831')}}),_0x56d22b[_0x168502('0xc89')]=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x4e3'),{'id':'@id'},{'update':{'method':_0x168502('0x2318')},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/sms/reports/queue/describe'},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0xfec'),'params':{'includeAll':_0x168502('0x1665')}}}),_0x56d22b[_0x168502('0x1ad8')]=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+'api/square/reports/:id',{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1b21')},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/square/reports/:id/clone','params':{'includeAll':_0x168502('0x1665')}}}),_0x56d22b[_0x168502('0x224')]=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1056'),{'id':_0x168502('0x101d')},{'update':{'method':'put'},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x2760')},'clone':{'method':'post','url':_0x56d22b['baseUrl']+_0x168502('0x20c0'),'params':{'includeAll':_0x168502('0x1665')}}}),_0x56d22b[_0x168502('0xf34')]=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x20e6'),{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1bf')},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/jscripty/projects/:id/clone','params':{'includeAll':'@includeAll'}},'getSessions':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x25ea')},'getAnswers':{'isArray':![],'method':'get','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x51c')},'getSummary':{'isArray':![],'method':'get','url':_0x56d22b['baseUrl']+_0x168502('0x191e'),'responseType':_0x168502('0xdd0'),'cache':![],'transformResponse':function(_0x32e3c6,_0x161cbd){const _0x4274d2=_0x168502,_0x47dbe9=_0x161cbd();return{'type':_0x47dbe9[_0x4274d2('0x1aaa')],'length':_0x47dbe9['content-length'],'buffer':_0x32e3c6};}}}),_0x56d22b[_0x168502('0x23e1')]=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x273a'),{'id':'@id'},{'update':{'method':'put'},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/settings/describe'},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b['baseUrl']+_0x168502('0x156'),'params':{'includeAll':_0x168502('0x1665')}},'addLogo':{'isArray':![],'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/settings/:id/logo'},'addLogoLogin':{'isArray':![],'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/settings/:id/logo_login'},'getLogo':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b['baseUrl']+_0x168502('0x1057')},'getLogoLogin':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b['baseUrl']+_0x168502('0x1f83')},'gdpr':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0xe23')},'addPreferred':{'isArray':![],'method':_0x168502('0x1718'),'url':_0x56d22b['baseUrl']+_0x168502('0x1729')},'getPreferred':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b['baseUrl']+'api/settings/:id/preferred'},'addFavicon':{'isArray':![],'method':_0x168502('0x1718'),'url':_0x56d22b['baseUrl']+_0x168502('0x11be')},'getFavicon':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x11be')},'getDate':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b['baseUrl']+'api/settings/now'}}),_0x56d22b[_0x168502('0x80d')]=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x604'),{'id':'@id'},{'update':{'method':_0x168502('0x2318')},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x7a')},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x20cd'),'params':{'includeAll':_0x168502('0x1665')}},'test':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x182e')}}),_0x56d22b[_0x168502('0x1671')]=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x184d'),{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b['baseUrl']+_0x168502('0x14a3')},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b['baseUrl']+_0x168502('0xb56'),'params':{'includeAll':_0x168502('0x1665')}},'addUsers':{'isArray':!![],'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x17fc')},'removeUsers':{'isArray':![],'method':'delete','url':_0x56d22b[_0x168502('0x23f4')]+'api/square/projects/:id/users'},'getUsers':{'isArray':![],'method':'get','url':_0x56d22b[_0x168502('0x23f4')]+'api/square/projects/:id/users'}}),_0x56d22b[_0x168502('0x26d5')]=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x189e'),{'id':'@id'},{'update':{'method':'put'},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x9d7')},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/square/recordings/:id/clone','params':{'includeAll':_0x168502('0x1665')}},'download':{'isArray':![],'method':'get','url':_0x56d22b['baseUrl']+_0x168502('0x1c5'),'responseType':_0x168502('0xdd0'),'cache':![],'transformResponse':function(_0x47d1f7,_0x22f6d1){const _0x309fff=_0x168502,_0xf3932=_0x22f6d1();return{'type':_0xf3932['content-type'],'length':_0xf3932[_0x309fff('0x1d7c')],'buffer':_0x47d1f7};}}}),_0x56d22b[_0x168502('0x9db')]=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x27aa'),{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1d42')},'clone':{'method':'post','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x241d'),'params':{'includeAll':'@includeAll'}}}),_0x56d22b[_0x168502('0xae6')]=_0x20477b(_0x56d22b['baseUrl']+_0x168502('0x10f5'),{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':'get','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1b8d')},'clone':{'method':'post','url':_0x56d22b['baseUrl']+_0x168502('0x169e'),'params':{'includeAll':'@includeAll'}},'getQueues':{'isArray':!![],'method':_0x168502('0xbaa'),'url':_0x56d22b['baseUrl']+_0x168502('0x61c')},'addQueues':{'isArray':!![],'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x61c')},'removeQueues':{'isArray':![],'method':_0x168502('0x2088'),'url':_0x56d22b['baseUrl']+_0x168502('0x61c')},'addAgents':{'isArray':!![],'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/teams/:id/users'},'removeAgents':{'isArray':![],'method':_0x168502('0x2088'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x5e6')},'getAgents':{'isArray':![],'method':'get','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x5e6')}}),_0x56d22b[_0x168502('0x17ff')]=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+_0x168502('0xb33'),{'id':_0x168502('0x101d')},{'update':{'method':'put'},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b['baseUrl']+'api/license/describe'},'clone':{'method':'post','url':_0x56d22b[_0x168502('0x23f4')]+'api/license/:id/clone','params':{'includeAll':_0x168502('0x1665')}}}),_0x56d22b[_0x168502('0x145d')]=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+'api/campaigns/:id',{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b['baseUrl']+_0x168502('0x21b8')},'clone':{'method':'post','url':_0x56d22b['baseUrl']+'api/campaigns/:id/clone','params':{'includeAll':_0x168502('0x1665')}},'getHoppers':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/campaigns/:id/hoppers'},'getHopperHistories':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/campaigns/:id/hopper_histories'},'getHopperFinals':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x13d9')},'getHopperBlacks':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x4f2')},'getLists':{'isArray':![],'method':'get','url':_0x56d22b['baseUrl']+_0x168502('0x25ae')},'addLists':{'isArray':!![],'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/campaigns/:id/lists'},'removeLists':{'isArray':!![],'method':_0x168502('0x2088'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x25ae')},'getBlackLists':{'isArray':![],'method':'get','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x236b')},'addBlackLists':{'isArray':!![],'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x236b')},'removeBlackLists':{'isArray':!![],'method':_0x168502('0x2088'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x236b')}}),_0x56d22b[_0x168502('0x1af8')]=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x38d'),{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b['baseUrl']+'api/migrations/describe'},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x224b'),'params':{'includeAll':'@includeAll'}}}),_0x56d22b[_0x168502('0x2811')]=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1abf'),{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x126')},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1ac2'),'params':{'includeAll':_0x168502('0x1665')}},'download':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1d0a'),'responseType':'arraybuffer','cache':![],'transformResponse':function(_0x57b536,_0x242f78){const _0x303961=_0x168502,_0xb25bf2=_0x242f78();return{'type':_0xb25bf2[_0x303961('0x1aaa')],'length':_0xb25bf2['content-length'],'buffer':_0x57b536};}}}),_0x56d22b[_0x168502('0x1674')]=_0x20477b(_0x56d22b['baseUrl']+'api/plugins/:id',{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':'get','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1ada')},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x6'),'params':{'includeAll':'@includeAll'}},'download':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x20f3'),'responseType':_0x168502('0xdd0'),'cache':![],'transformResponse':function(_0x17996f,_0x32c85a){const _0x5a0360=_0x168502,_0xca7cb=_0x32c85a();return{'type':_0xca7cb[_0x5a0360('0x1aaa')],'length':_0xca7cb[_0x5a0360('0x1d7c')],'buffer':_0x17996f};}},'upload':{'isArray':![],'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x27e1')},'delete':{'isArray':![],'method':_0x168502('0x2088'),'url':_0x56d22b['baseUrl']+'api/plugins/:id'},'webhookGet':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b['baseUrl']+_0x168502('0x1bb2')},'webhookPost':{'isArray':![],'method':_0x168502('0x1718'),'url':_0x56d22b['baseUrl']+'api/plugins/webhook'}}),_0x56d22b[_0x168502('0xfa')]=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+'api/mail/reports/transfer/:id',{'id':'@id'},{'update':{'method':'put'},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b['baseUrl']+_0x168502('0x27d6')},'clone':{'method':'post','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0xacc'),'params':{'includeAll':_0x168502('0x1665')}}}),_0x56d22b[_0x168502('0x34d')]=_0x20477b(_0x56d22b['baseUrl']+_0x168502('0x1aea'),{'id':_0x168502('0x101d')},{'update':{'method':'put'},'describe':{'method':'get','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x2765')},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x23f8'),'params':{'includeAll':'@includeAll'}}}),_0x56d22b[_0x168502('0x226b')]=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x164c'),{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/fax/reports/transfer/describe'},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/fax/reports/transfer/:id/clone','params':{'includeAll':_0x168502('0x1665')}}}),_0x56d22b[_0x168502('0x2606')]=_0x20477b(_0x56d22b['baseUrl']+_0x168502('0x861'),{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0xc08')},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b['baseUrl']+'api/openchannel/reports/transfer/:id/clone','params':{'includeAll':_0x168502('0x1665')}}}),_0x56d22b[_0x168502('0x2806')]=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+'api/sms/reports/transfer/:id',{'id':'@id'},{'update':{'method':_0x168502('0x2318')},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/sms/reports/transfer/describe'},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0xb8b'),'params':{'includeAll':'@includeAll'}}}),_0x56d22b[_0x168502('0xbef')]=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1ae3'),{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/cm/lists/describe'},'clone':{'method':'post','url':_0x56d22b['baseUrl']+_0x168502('0x12ff'),'params':{'includeAll':'@includeAll'}},'addDisposition':{'isArray':![],'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0xc01')},'getDispositions':{'isArray':![],'method':'get','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0xc01')},'removeDispositions':{'isArray':![],'method':_0x168502('0x2088'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0xc01')},'addContacts':{'isArray':![],'method':'post','url':_0x56d22b[_0x168502('0x23f4')]+'api/cm/lists/:id/contacts'},'getContacts':{'isArray':!![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/cm/lists/:id/contacts'},'getContactsCsv':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/cm/lists/:id/contacts/csv','responseType':'arraybuffer','cache':![],'transformResponse':function(_0x4732a5,_0x32f1d7){const _0x5ef6ec=_0x168502,_0xc84f3e=_0x32f1d7();return{'type':_0xc84f3e[_0x5ef6ec('0x1aaa')],'length':_0xc84f3e[_0x5ef6ec('0x1d7c')],'buffer':_0x4732a5};}},'addCustomField':{'isArray':![],'method':_0x168502('0x1718'),'url':_0x56d22b['baseUrl']+'api/cm/lists/:id/fields'},'getCustomFields':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1db')},'addAgents':{'isArray':!![],'method':'post','url':_0x56d22b['baseUrl']+_0x168502('0x610')},'removeAgents':{'isArray':![],'method':_0x168502('0x2088'),'url':_0x56d22b['baseUrl']+_0x168502('0x610')},'getAgents':{'isArray':![],'method':'get','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x610')}}),_0x56d22b['voicePrefix']=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x563'),{'id':'@id'},{'update':{'method':_0x168502('0x2318')},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x2185')},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/voice/prefixes/:id/clone','params':{'includeAll':'@includeAll'}},'addAgents':{'isArray':!![],'method':'post','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x5da')},'removeAgents':{'isArray':![],'method':_0x168502('0x2088'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/voice/prefixes/:id/users'},'getAgents':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b['baseUrl']+_0x168502('0x5da')}}),_0x56d22b['userProfile']=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+'api/userProfiles/:id',{'id':_0x168502('0x101d')},{'update':{'method':'put'},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0xfe6')},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b['baseUrl']+_0x168502('0x1cee'),'params':{'includeAll':'@includeAll'}},'addSections':{'isArray':!![],'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x2515')},'removeSections':{'isArray':![],'method':_0x168502('0x2088'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x2515')},'getSections':{'isArray':!![],'method':'get','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x2515')},'addResources':{'isArray':!![],'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x11ec')},'removeResources':{'isArray':![],'method':'delete','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x11ec')},'getResources':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/userProfiles/:id/resources'}}),_0x56d22b['userProfileSection']=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+_0x168502('0xa7f'),{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x2280')},'clone':{'method':'post','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x24e1'),'params':{'includeAll':'@includeAll'}}}),_0x56d22b[_0x168502('0x26d1')]=_0x20477b(_0x56d22b['baseUrl']+'api/userProfile/resources/:id',{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':'get','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x2102')},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x7e9'),'params':{'includeAll':_0x168502('0x1665')}}}),_0x56d22b['notification']=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1eb0'),{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/notifications/describe'},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x64f'),'params':{'includeAll':_0x168502('0x1665')}},'sendNotification':{'isArray':![],'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/notifications/'}}),_0x56d22b[_0x168502('0x2295')]=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x15b5'),{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':'get','url':_0x56d22b[_0x168502('0x23f4')]+'api/whatsapp/accounts/describe'},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1abc'),'params':{'includeAll':_0x168502('0x1665')}},'addDisposition':{'isArray':![],'method':'post','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0xb0f')},'getDispositions':{'isArray':![],'method':'get','url':_0x56d22b['baseUrl']+_0x168502('0xb0f')},'removeDispositions':{'isArray':![],'method':_0x168502('0x2088'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0xb0f')},'addAnswer':{'isArray':![],'method':'post','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1035')},'getAnswers':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1035')},'removeAnswers':{'isArray':![],'method':_0x168502('0x2088'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1035')},'addAgents':{'isArray':!![],'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1d77')},'removeAgents':{'isArray':![],'method':_0x168502('0x2088'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1d77')},'getAgents':{'isArray':![],'method':'get','url':_0x56d22b[_0x168502('0x23f4')]+'api/whatsapp/accounts/:id/users'},'addApplications':{'isArray':![],'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x690')},'getApplications':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x690')},'notify':{'isArray':![],'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x557')},'send':{'isArray':![],'method':'post','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0xa9e')}}),_0x56d22b[_0x168502('0x147a')]=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+_0x168502('0xd6a'),{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':'get','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0xc3a')},'clone':{'method':'post','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x278d'),'params':{'includeAll':_0x168502('0x1665')}}}),_0x56d22b[_0x168502('0x1266')]=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+_0x168502('0xdb5'),{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1444')},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b['baseUrl']+_0x168502('0x17f'),'params':{'includeAll':_0x168502('0x1665')}},'addMessage':{'isArray':![],'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1563')},'getMessages':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/whatsapp/interactions/:id/messages'},'addTags':{'isArray':![],'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x17c9')},'removeTags':{'isArray':![],'method':'delete','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x17c9')},'download':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b['baseUrl']+'api/whatsapp/interactions/:id/download','responseType':_0x168502('0xdd0'),'cache':![],'transformResponse':function(_0x3680e4,_0x3c44cb){const _0x55a0bc=_0x168502,_0x45fe9b=_0x3c44cb();return{'type':_0x45fe9b[_0x55a0bc('0x1aaa')],'length':_0x45fe9b[_0x55a0bc('0x1d7c')],'buffer':_0x3680e4};}}}),_0x56d22b[_0x168502('0x2046')]=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x2188'),{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/whatsapp/messages/describe'},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b['baseUrl']+_0x168502('0xdac'),'params':{'includeAll':_0x168502('0x1665')}},'accept':{'isArray':![],'method':_0x168502('0x2318'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x39c')},'reject':{'isArray':![],'method':_0x168502('0x2318'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x14a2')},'status':{'isArray':![],'method':_0x168502('0x1718'),'url':_0x56d22b['baseUrl']+'api/whatsapp/messages/:id/status'}}),_0x56d22b[_0x168502('0x16ce')]=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+_0x168502('0xca7'),{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b['baseUrl']+_0x168502('0xe6f')},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x24df'),'params':{'includeAll':_0x168502('0x1665')}}}),_0x56d22b[_0x168502('0x17e7')]=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x367'),{'id':'@id'},{'update':{'method':_0x168502('0x2318')},'describe':{'method':'get','url':_0x56d22b[_0x168502('0x23f4')]+'api/whatsapp/reports/transfer/describe'},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+'api/whatsapp/reports/transfer/:id/clone','params':{'includeAll':'@includeAll'}}}),_0x56d22b[_0x168502('0x1d53')]=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+'api/whatsapp/queues/:id',{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x767')},'clone':{'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x1b93'),'params':{'includeAll':_0x168502('0x1665')}},'getMembers':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x283e')},'getTeams':{'isArray':![],'method':_0x168502('0xbaa'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x345')},'addTeams':{'isArray':!![],'method':'post','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x345')},'removeTeams':{'isArray':![],'method':_0x168502('0x2088'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x345')},'addAgents':{'isArray':!![],'method':_0x168502('0x1718'),'url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0xca')},'removeAgents':{'isArray':![],'method':'delete','url':_0x56d22b['baseUrl']+_0x168502('0xca')},'getAgents':{'isArray':![],'method':'get','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0xca')}}),_0x56d22b[_0x168502('0x1384')]=_0x20477b(_0x56d22b[_0x168502('0x23f4')]+_0x168502('0xab'),{'id':_0x168502('0x101d')},{'update':{'method':_0x168502('0x2318')},'describe':{'method':'get','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x215a')},'clone':{'method':'post','url':_0x56d22b[_0x168502('0x23f4')]+_0x168502('0x11d5'),'params':{'includeAll':_0x168502('0x1665')}}}),_0x56d22b;}const _0x1a180b=_0x4543ef;_0x2f8f2b['$inject']=[_0x21d0f5('0x101b'),_0x21d0f5('0xc3e'),_0x21d0f5('0x1bbd')];function _0x2f8f2b(_0xd7f6c7,_0x5024d0,_0x41ce72){const _0x24e890=_0x21d0f5;_0x41ce72[_0x24e890('0x2206')]({'position':_0x24e890('0x58f'),'sound':![],'html':!![],'theme':'material'}),_0xd7f6c7[_0x24e890('0xda3')]('$translatePartialLoader',{'urlTemplate':_0x24e890('0x2eb')}),_0xd7f6c7[_0x24e890('0x670')]('en'),_0x5024d0[_0x24e890('0x471')](_0x24e890('0xce8')),_0xd7f6c7[_0x24e890('0x1336')](null);}const _0xeff34b=_0x2f8f2b;_0x2d397a['$inject']=[_0x21d0f5('0xc94'),_0x21d0f5('0xb6b'),_0x21d0f5('0x5d8'),'api',_0x21d0f5('0x142d')];function _0x2d397a(_0x57ee66,_0x723ba,_0x434ced,_0x56e311,_0x57052f){const _0x3229f7=_0x21d0f5,_0x44d91c=this;_0x44d91c[_0x3229f7('0x24b')]=_0x57ee66[_0x3229f7('0x24b')],_0x44d91c[_0x3229f7('0x7d5')]=_0x3229f7('0x15d5');const _0x4572a1=['ar','fa','he'],_0xa4e0fe=_0x434ced[_0x3229f7('0xbaa')](_0x3229f7('0x247b'));_0xa4e0fe&&(_0x723ba[_0x3229f7('0x7e4')](_0xa4e0fe),_0x4572a1['indexOf'](_0xa4e0fe)>=0x0&&_0x56e311[_0x3229f7('0x23e1')][_0x3229f7('0xbaa')]({'id':0x1})[_0x3229f7('0x1549')][_0x3229f7('0x11bf')](function(_0x55b924){const _0x22c109=_0x3229f7;_0x55b924&&_0x55b924[_0x22c109('0x16f5')]&&(_0x44d91c[_0x22c109('0x7d5')]=_0x22c109('0x12b4'));})['catch'](function(_0x446fe9){const _0x202d40=_0x3229f7;_0x446fe9&&_0x57052f[_0x202d40('0x255')]({'title':_0x202d40('0x17c'),'msg':_0x446fe9[_0x202d40('0x4e8')]?_0x446fe9[_0x202d40('0x4e8')][_0x202d40('0x1b86')]||_0x446fe9['message']||_0x446fe9:_0x446fe9[_0x202d40('0x1b86')]||_0x446fe9});}));}const _0x17572e=_0x2d397a;_0x52d1ec[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0xb6b')],_0x2dd16b[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x2212'),_0x21d0f5('0xb6b')];function _0x2dd16b(_0x2b7baa,_0x4944c8){return function(_0x11137a){const _0x5070be=a0_0xaf0c,_0x387ff9=new Date(),_0xa03c37=new Date(_0x11137a);if(_0xa03c37[_0x5070be('0x2508')]()===_0x387ff9[_0x5070be('0x2508')]()&&_0xa03c37[_0x5070be('0x2670')]()===_0x387ff9[_0x5070be('0x2670')]()&&_0xa03c37['getFullYear']()===_0x387ff9[_0x5070be('0x153a')]())return _0x2b7baa(_0x5070be('0x22f7'))(_0xa03c37[_0x5070be('0x1eee')](),_0x5070be('0xef'));if(_0xa03c37[_0x5070be('0x2508')]()===_0x387ff9['getDate']()-0x1&&_0xa03c37['getMonth']()===_0x387ff9[_0x5070be('0x2670')]()&&_0xa03c37[_0x5070be('0x153a')]()===_0x387ff9[_0x5070be('0x153a')]())return _0x4944c8[_0x5070be('0x10c2')](_0x5070be('0x2531'))+'\x20'+_0x2b7baa(_0x5070be('0x22f7'))(_0xa03c37['getTime'](),'shortTime');return _0x2b7baa(_0x5070be('0x22f7'))(_0xa03c37[_0x5070be('0x1eee')](),_0x5070be('0x1801'));};}function _0x4a396c(){return function(_0x56488d,_0x4fbf67,_0x276c2d){const _0x5a5b9d={};let _0x416498=0x0,_0x432eac;for(_0x432eac in _0x56488d){_0x416498>=_0x276c2d&&(_0x5a5b9d[_0x432eac]=_0x56488d[_0x432eac]);if(++_0x416498===_0x276c2d+_0x4fbf67)break;}return _0x5a5b9d;};}function _0x503448(){const _0x1f362f=_0x21d0f5,_0x510604=[{'value':'jan'},{'value':_0x1f362f('0xf4e')},{'value':_0x1f362f('0x1c1')},{'value':_0x1f362f('0x1820')},{'value':_0x1f362f('0x159e')},{'value':_0x1f362f('0x152c')},{'value':'jul'},{'value':_0x1f362f('0x1f52')},{'value':'sep'},{'value':'oct'},{'value':'nov'},{'value':_0x1f362f('0x1d35')}],_0x57104a=[{'value':'1'},{'value':'2'},{'value':'3'},{'value':'4'},{'value':'5'},{'value':'6'},{'value':'7'},{'value':'8'},{'value':'9'},{'value':'10'},{'value':'11'},{'value':'12'}],_0x367d78=[{'value':_0x1f362f('0x188a')},{'value':'tue'},{'value':'wed'},{'value':_0x1f362f('0xcc8')},{'value':'fri'},{'value':_0x1f362f('0x2881')},{'value':'sun'}],_0x4b1f62=[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 _0x510604;},'getMonthNumber':function(){return _0x57104a;},'getDaysOfWeek':function(){return _0x367d78;},'getDaysOfMonth':function(){return _0x4b1f62;}};}function _0x52d1ec(_0x391ee5){const _0x192515=_0x21d0f5;return{'Today':_0x391ee5[_0x192515('0x10c2')](_0x192515('0x2327')),'Yesterday':_0x391ee5[_0x192515('0x10c2')]('DASHBOARDS.YESTERDAY'),'This\x20Week':_0x391ee5[_0x192515('0x10c2')](_0x192515('0x21c8')),'Last\x20Week':_0x391ee5[_0x192515('0x10c2')](_0x192515('0xacf')),'This\x20Month':_0x391ee5[_0x192515('0x10c2')](_0x192515('0x1259')),'Last\x20Month':_0x391ee5[_0x192515('0x10c2')](_0x192515('0x2349')),'This\x20Year':_0x391ee5[_0x192515('0x10c2')](_0x192515('0x9fa')),'Last\x20Year':_0x391ee5[_0x192515('0x10c2')](_0x192515('0x1d41')),'January':_0x391ee5[_0x192515('0x10c2')](_0x192515('0x106a')),'February':_0x391ee5['instant'](_0x192515('0xa85')),'March':_0x391ee5[_0x192515('0x10c2')]('DASHBOARDS.MARCH'),'April':_0x391ee5['instant'](_0x192515('0x2692')),'May':_0x391ee5['instant'](_0x192515('0x7df')),'June':_0x391ee5[_0x192515('0x10c2')](_0x192515('0x1ac3')),'July':_0x391ee5[_0x192515('0x10c2')](_0x192515('0x22b')),'August':_0x391ee5['instant'](_0x192515('0x1457')),'September':_0x391ee5[_0x192515('0x10c2')](_0x192515('0x158f')),'October':_0x391ee5[_0x192515('0x10c2')]('DASHBOARDS.OCTOBER'),'November':_0x391ee5[_0x192515('0x10c2')](_0x192515('0x1f8f')),'December':_0x391ee5[_0x192515('0x10c2')](_0x192515('0x347')),'Mon':_0x391ee5[_0x192515('0x10c2')](_0x192515('0x87e')),'Tue':_0x391ee5[_0x192515('0x10c2')](_0x192515('0x6ba')),'Wed':_0x391ee5['instant'](_0x192515('0x582')),'Thu':_0x391ee5['instant'](_0x192515('0x856')),'Fri':_0x391ee5[_0x192515('0x10c2')](_0x192515('0x13eb')),'Sat':_0x391ee5['instant'](_0x192515('0x272')),'Sun':_0x391ee5['instant'](_0x192515('0x12ab'))};}function _0x392def(){return{'enqueue':function(_0x3e4fbf){const _0x140f42=a0_0xaf0c;this[_0x140f42('0x2540')]=this[_0x140f42('0x2540')]?this[_0x140f42('0x2540')][_0x140f42('0xa9b')](_0x3e4fbf):_0x3e4fbf();}};}const _0x38123b=_0x351988['p']+_0x21d0f5('0x18d'),_0x34750e=_0x351988['p']+_0x21d0f5('0x2447'),_0x3335d8=_0x351988['p']+'src/js/modules/navigation/layouts/vertical-navigation/navigation.html/navigation.html',_0x12ae58=_0x351988['p']+_0x21d0f5('0x437'),_0x11deca=_0x351988['p']+'src/js/modules/header/layouts/vertical-navigation/header.html/header.html',_0x2ee46b=_0x351988['p']+'src/js/modules/footer/layouts/vertical-navigation/footer.html/footer.html',_0x5f1821=_0x351988['p']+_0x21d0f5('0x20b9');_0x4eafb2[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x13d6'),'$urlRouterProvider',_0x21d0f5('0x3af')];function _0x4eafb2(_0x5ab847,_0x3b9997,_0x141e46){const _0x29503f=_0x21d0f5;_0x141e46['html5Mode'](!![]),_0x3b9997[_0x29503f('0x89a')](_0x29503f('0x22b9'));let _0x36c3ab;angular[_0x29503f('0x160')]([_0x29503f('0x238e')])[_0x29503f('0x2203')]([_0x29503f('0x5d8'),function(_0x5dc29d){_0x36c3ab=_0x5dc29d;}]);const _0x13078b=_0x36c3ab['get'](_0x29503f('0x2339'))||_0x29503f('0x1ebb'),_0x275164={'verticalNavigation':{'main':_0x3c927c,'toolbar':_0x38123b,'navigation':_0x3335d8,'header':_0x11deca,'footer':_0x2ee46b},'verticalNavigationFullwidthToolbar':{'main':_0xda0144,'toolbar':'','navigation':_0x3335d8},'verticalNavigationFullwidthToolbar2':{'main':_0x41d0ef,'toolbar':'','navigation':_0x12ae58},'horizontalNavigation':{'main':_0x2afa6d,'toolbar':'','navigation':_0x34750e},'contentOnly':{'main':_0x343385,'toolbar':'','navigation':''},'contentWithToolbar':{'main':_0x479945,'toolbar':'','navigation':''}};_0x5ab847[_0x29503f('0x2124')]('app',{'abstract':!![],'views':{'main@':{'templateUrl':_0x275164[_0x13078b][_0x29503f('0x1033')],'controller':_0x29503f('0x1d23')},'toolbar@app':{'templateUrl':_0x275164[_0x13078b][_0x29503f('0x138d')],'controller':'ToolbarController\x20as\x20vm'},'navigation@app':{'templateUrl':_0x275164[_0x13078b][_0x29503f('0x7f1')],'controller':_0x29503f('0x23ca')},'quickPanel@app':{'templateUrl':_0x5f1821,'controller':_0x29503f('0xf17')},'header@app':{'templateUrl':_0x275164[_0x13078b][_0x29503f('0x12ca')],'controller':_0x29503f('0x231e')},'footer@app':{'templateUrl':_0x275164[_0x13078b][_0x29503f('0x22bb')],'controller':_0x29503f('0x24bb')}},'resolve':{'license':['apiResolver',function(_0x30c260){const _0x654c58=_0x29503f;return _0x30c260['resolve'](_0x654c58('0xfd9'));}],'setting':[_0x29503f('0x218e'),function(_0xd07988){const _0x2aaece=_0x29503f;return _0xd07988[_0x2aaece('0xa28')](_0x2aaece('0x1112'),{'id':0x1});}]}});}const _0xbd6df4=_0x4eafb2;_0x5f4f5e['$inject']=[_0x21d0f5('0x282f'),'LoadingIndicatorService'];function _0x5f4f5e(_0x2ded6f,_0x39d912){const _0x1d80b9=_0x21d0f5;_0x2ded6f['onStart']({},_0x39d912[_0x1d80b9('0x1adf')]),_0x2ded6f['onFinish']({},_0x39d912[_0x1d80b9('0x1df3')]);}const _0x4ae286=_0x5f4f5e;var _0x5edcfd=_0x351988(0x15ef);_0xf48560['$inject']=[_0x21d0f5('0x5f2'),'Auth'];function _0xf48560(_0x76f239,_0x318711){let _0x48195d;function _0x4c1039(){const _0x3e6154=a0_0xaf0c,_0x4352d0=!![]?window['io']:0x0,_0x35f462={'query':_0x3e6154('0xb6c')+_0x318711[_0x3e6154('0x2428')]()['id'],'transports':[_0x3e6154('0x20a4'),_0x3e6154('0x47f')]};_0x48195d=!![]?_0x4352d0(_0x35f462):0x0;}return{'connect':_0x4c1039,'on':function(_0x51b284,_0x1a4c14){_0x1a4c14=_0x1a4c14||angular['noop'],!_0x48195d&&_0x4c1039(),_0x48195d['on'](_0x51b284,function(){const _0x43040d=arguments;_0x76f239['$apply'](function(){const _0x77e16b=a0_0xaf0c;_0x1a4c14[_0x77e16b('0x129')](_0x48195d,_0x43040d);});});},'onWithoutApply':function(_0x14b396,_0x2660dd){const _0x690f90=a0_0xaf0c;_0x2660dd=_0x2660dd||angular[_0x690f90('0x2b8')],!_0x48195d&&_0x4c1039(),_0x48195d['on'](_0x14b396,function(){const _0x494596=_0x690f90;_0x2660dd[_0x494596('0x129')](_0x48195d,arguments);});},'emit':function(_0x59c07e,_0x5b8d5c,_0x23b0a5){const _0x5a9a48=a0_0xaf0c;_0x23b0a5=_0x23b0a5||angular[_0x5a9a48('0x2b8')],!_0x48195d&&_0x4c1039(),_0x48195d[_0x5a9a48('0x395')](_0x59c07e,_0x5b8d5c,function(){const _0x2bca27=_0x5a9a48,_0x2a1f78=arguments;_0x76f239[_0x2bca27('0x226e')](function(){const _0x25820f=_0x2bca27;_0x23b0a5[_0x25820f('0x129')](_0x48195d,_0x2a1f78);});});},'removeAllListeners':function(_0xc2770d){const _0x575ea9=a0_0xaf0c;!_0x48195d&&_0x4c1039(),_0x48195d[_0x575ea9('0x1b2e')](_0xc2770d);},'removeListener':function(_0x16b0de,_0x497d7b){const _0x41661c=a0_0xaf0c;!_0x48195d&&_0x4c1039(),_0x48195d[_0x41661c('0x2853')](_0x16b0de,_0x497d7b);},'disconnect':function(){const _0x2ec680=a0_0xaf0c;!_0x48195d&&_0x4c1039(),_0x48195d[_0x2ec680('0x143e')]();}};}const _0x44ab0d=_0xf48560;_0x1011fe[_0x21d0f5('0x1e9a')]=[_0x21d0f5('0x1b80'),_0x21d0f5('0x5f2'),_0x21d0f5('0xb6b'),_0x21d0f5('0x1713'),_0x21d0f5('0x1db0'),'Auth',_0x21d0f5('0x142d'),'license','api','setting'];function _0x1011fe(_0x5c5b51,_0x29c316,_0x33d95a,_0x22f3e1,_0x4be31b,_0x198d75,_0x168041,_0x5874c7,_0x5e5d1f,_0x3d2b3b){const _0x51227c=_0x21d0f5,_0x20d5ac=this;_0x168041[_0x51227c('0xb34')]();function _0x24b5d9(){const _0x40b394=_0x51227c;return _0x198d75[_0x40b394('0x2428')]()&&_0x198d75['hasRole'](_0x40b394('0x18c4'));}_0x20d5ac[_0x51227c('0x990')]=_0x24b5d9;function _0x111ff1(_0x538ff0,_0x3aa9c1){const _0x52bf99=_0x51227c;return{'id':_0x538ff0,'title':_0x3aa9c1['name']||'NONAME','state':_0x52bf99('0x214d'),'stateParams':_0x3aa9c1,'weight':0x2,'hidden':function(){const _0x403db8=_0x52bf99;return _0x198d75['hasRole'](_0x403db8('0x18c4'))||!_0x198d75[_0x403db8('0x1709')](_0x538ff0)&&!_0x198d75[_0x403db8('0x4ee')](_0x403db8('0xf45'));}};}function _0x57d3ec(_0x36ef4f,_0x3bd4c9){const _0x3399f5=_0x51227c;return{'id':_0x36ef4f,'title':_0x3bd4c9[_0x3399f5('0x1909')]||_0x3399f5('0x1f4f'),'state':_0x3399f5('0x179a'),'stateParams':_0x3bd4c9,'weight':0x2,'hidden':function(){const _0x5550a4=_0x3399f5;return _0x198d75[_0x5550a4('0x4ee')](_0x5550a4('0x18c4'))||!_0x198d75[_0x5550a4('0x1709')](_0x36ef4f)&&!_0x198d75[_0x5550a4('0x4ee')](_0x5550a4('0xf45'));}};}function _0x4ed317(_0x197803,_0x408bd9){const _0x5df107=_0x51227c,_0x1c354d={'user':_0x36f548()[_0x5df107('0x258')](_0x198d75[_0x5df107('0x2428')](),['id',_0x5df107('0x1909'),_0x5df107('0x27af'),_0x5df107('0x15d3'),_0x5df107('0x111d'),_0x5df107('0x1a04'),_0x5df107('0x13a8')])};_0x408bd9[_0x5df107('0x193a')]=_0x1e5096()[_0x5df107('0x25a5')](_0x408bd9['agentUrl'],_0x1c354d),_0x4be31b[_0x5df107('0x265e')](_0x5df107('0x1840')+_0x197803,{'id':_0x197803,'title':_0x408bd9[_0x5df107('0x1909')],'translate':_0x408bd9[_0x5df107('0x1909')],'state':_0x5df107('0x48')+_0x408bd9['id'],'stateParams':_0x408bd9,'view':_0x5df107('0x1674'),'icon':_0x408bd9[_0x5df107('0x15eb')],'weight':0xc,'hidden':function(){return!_0x198d75['hasPermission'](_0x197803);}});}_0x22f3e1[_0x51227c('0x265e')](_0x51227c('0x1812'),{'title':_0x51227c('0x140b'),'group':!![],'weight':0x1,'hidden':function(){const _0x147f2e=_0x51227c;return _0x198d75[_0x147f2e('0x4ee')](_0x147f2e('0x18c4'));}}),_0x5e5d1f[_0x51227c('0x23d3')][_0x51227c('0xbaa')]()['$promise'][_0x51227c('0x11bf')](function(_0x225774){const _0x229abb=_0x51227c;_0x20d5ac[_0x229abb('0x23d3')]=_0x225774&&_0x225774[_0x229abb('0x191')]?_0x225774[_0x229abb('0x191')]:'UNKNOWN';})[_0x51227c('0x151d')](function(){const _0x4ee8a3=_0x51227c;_0x20d5ac[_0x4ee8a3('0x23d3')]='UNKNOWN';})[_0x51227c('0xa9b')](function(){const _0x315112=_0x51227c;_0x22f3e1[_0x315112('0x265e')](_0x315112('0x23d3'),{'title':_0x315112('0xe57')+_0x20d5ac['version'],'group':!![],'weight':0x2,'hidden':function(){return _0x198d75['hasRole']('agent');}});});function _0x5561b3(_0xeb0ea7){const _0x4f94dc=_0x51227c;return _0x36f548()[_0x4f94dc('0x2171')](_0xeb0ea7[_0x4f94dc('0xbc5')],function(_0x3ec0d3){return _0x3ec0d3['id'];});}_0x198d75[_0x51227c('0xbc8')]()&&(_0x5874c7[_0x51227c('0x15dd')]&&_0x168041[_0x51227c('0x1abd')]({'msg':_0x33d95a[_0x51227c('0x10c2')](_0x51227c('0x14d5')),'showClose':!![],'timeout':![]}),_0x5e5d1f[_0x51227c('0xdb9')][_0x51227c('0xbaa')]()[_0x51227c('0x1549')][_0x51227c('0x11bf')](function(_0x4c768d){const _0x1d7147=_0x51227c;let _0x5bf042=0x0;for(let _0x1a96ae=0x0;_0x1a96ae<_0x4c768d[_0x1d7147('0x19b2')][_0x1d7147('0x1e22')];_0x1a96ae+=0x1){_0x5bf042=0x1869f+_0x4c768d[_0x1d7147('0x19b2')][_0x1a96ae]['id'],_0x22f3e1[_0x1d7147('0x265e')]('apps.dashboards.custom_'+_0x5bf042,_0x111ff1(_0x5bf042,_0x4c768d[_0x1d7147('0x19b2')][_0x1a96ae]));}}),_0x5e5d1f['plugin']['get']({'active':!![]})[_0x51227c('0x1549')]['then'](function(_0x429741){const _0x4acc09=_0x51227c;let _0x309f8e=0x0;if(_0x429741[_0x4acc09('0x27d2')]){const _0x4cda2e=_0x36f548()[_0x4acc09('0xdb4')](_0x429741['rows'],function(_0x71cc13){const _0x3ab249=_0x4acc09;return _0x71cc13[_0x3ab249('0x132d')]!=_0x3ab249('0xf95')&&_0x71cc13['sidebar']!='agentOnly';});if(_0x4cda2e[_0x4acc09('0x1e22')]>0x0){_0x22f3e1[_0x4acc09('0x265e')]('apps.plugins',{'id':0x76c,'title':_0x4acc09('0x2443'),'translate':_0x4acc09('0xc88'),'icon':_0x4acc09('0x206d'),'permissions':{'hidden':!![]},'weight':0x11,'hidden':function(){const _0x299cd=_0x4acc09;return _0x198d75[_0x299cd('0x4ee')](_0x299cd('0x18c4'))||!_0x198d75[_0x299cd('0x26b5')](_0x5561b3(this))&&!_0x198d75['hasRole'](_0x299cd('0xf45'));}});for(let _0x232b83=0x0;_0x232b83<_0x4cda2e[_0x4acc09('0x1e22')];_0x232b83+=0x1){_0x309f8e=0x15b38+_0x4cda2e[_0x232b83]['id'],_0x22f3e1['saveItem'](_0x4acc09('0xb57')+_0x309f8e,_0x57d3ec(_0x309f8e,_0x4cda2e[_0x232b83]));}_0x22f3e1['sort']();}const _0x4c74d=_0x36f548()[_0x4acc09('0xdb4')](_0x429741[_0x4acc09('0x19b2')],function(_0x483614){const _0xcf0697=_0x4acc09;return _0x483614[_0xcf0697('0x132d')]!=_0xcf0697('0xf95')&&_0x483614[_0xcf0697('0x132d')]!='adminOnly';});if(_0x4c74d['length']>0x0)for(let _0x3c6f7a=0x0;_0x3c6f7a<_0x4c74d[_0x4acc09('0x1e22')];_0x3c6f7a+=0x1){_0x309f8e=0x15b38+_0x4c74d[_0x3c6f7a]['id'],_0x4ed317(_0x309f8e,_0x4c74d[_0x3c6f7a]);}}})),_0x5874c7[_0x51227c('0xa8d')]&&!_0x3d2b3b[_0x51227c('0xe98')]&&_0x3d2b3b['pageTitle']&&angular[_0x51227c('0x1e73')](_0x51227c('0x26ed'))[_0x51227c('0x254b')](_0x3d2b3b[_0x51227c('0xf8b')]),_0x22f3e1[_0x51227c('0x265e')](_0x51227c('0x19f7'),{'id':0x64,'title':'Dashboards','translate':_0x51227c('0x2856'),'icon':_0x51227c('0x5d9'),'weight':0x2,'hidden':function(){const _0x18e204=_0x51227c;return _0x198d75[_0x18e204('0x4ee')]('agent')||!_0x198d75['hasChildrenPermissions'](_0x5561b3(this))&&!_0x198d75[_0x18e204('0x4ee')](_0x18e204('0xf45'));}}),_0x22f3e1[_0x51227c('0x265e')](_0x51227c('0xc33'),{'id':0x65,'title':'General','route':'','translate':_0x51227c('0x272d'),'state':_0x51227c('0xe28'),'weight':0x1,'hidden':function(){const _0x5df2e2=_0x51227c;return _0x198d75['hasRole']('agent')||!_0x198d75[_0x5df2e2('0x1709')](0x65)&&!_0x198d75[_0x5df2e2('0x4ee')]('admin');}}),_0x22f3e1['saveItem'](_0x51227c('0x775'),{'id':0xc8,'title':'Staff','translate':_0x51227c('0x104d'),'icon':_0x51227c('0x166'),'weight':0x3,'hidden':function(){const _0x2343b6=_0x51227c;return _0x198d75['hasRole'](_0x2343b6('0x18c4'))||!_0x198d75[_0x2343b6('0x26b5')](_0x5561b3(this))&&!_0x198d75[_0x2343b6('0x4ee')](_0x2343b6('0xf45'));}}),_0x22f3e1[_0x51227c('0x265e')](_0x51227c('0xa65'),{'id':0xc9,'title':_0x51227c('0xc42'),'route':_0x51227c('0x21d9'),'translate':_0x51227c('0xe3d'),'state':_0x51227c('0xc15'),'weight':0x1,'permissions':{'hidden':!![]},'hidden':function(){const _0xd2ff32=_0x51227c;return _0x198d75['hasRole'](_0xd2ff32('0x18c4'))||_0x198d75[_0xd2ff32('0x4ee')]('user')||!_0x198d75[_0xd2ff32('0x1709')](0xc9)&&!_0x198d75[_0xd2ff32('0x4ee')]('admin');}}),_0x22f3e1['saveItem'](_0x51227c('0x154a'),{'id':0xca,'title':_0x51227c('0x4b1'),'route':_0x51227c('0x21d9'),'translate':_0x51227c('0x1eef'),'state':'app.staff.agents','weight':0x1,'hidden':function(){const _0x2b34af=_0x51227c;return _0x198d75[_0x2b34af('0x4ee')]('agent')||!_0x198d75[_0x2b34af('0x1709')](0xca)&&!_0x198d75[_0x2b34af('0x4ee')](_0x2b34af('0xf45'));}}),_0x22f3e1[_0x51227c('0x265e')](_0x51227c('0x559'),{'id':0xcb,'title':'Telephones','route':_0x51227c('0x21d9'),'translate':'APP.TELEPHONES','state':_0x51227c('0x1895'),'weight':0x1,'hidden':function(){const _0x5853a9=_0x51227c;return _0x198d75[_0x5853a9('0x4ee')](_0x5853a9('0x18c4'))||!_0x198d75[_0x5853a9('0x1709')](0xcb)&&!_0x198d75['hasRole'](_0x5853a9('0xf45'));}}),_0x22f3e1[_0x51227c('0x265e')](_0x51227c('0x1da7'),{'id':0xcc,'title':_0x51227c('0xc3f'),'route':'team','translate':'STAFF.TEAMS','state':_0x51227c('0x1e9'),'weight':0x1,'hidden':function(){const _0x4ebada=_0x51227c;return _0x198d75[_0x4ebada('0x4ee')](_0x4ebada('0x18c4'))||!_0x198d75[_0x4ebada('0x1709')](0xcc)&&!_0x198d75['hasRole'](_0x4ebada('0xf45'));}}),_0x22f3e1[_0x51227c('0x265e')](_0x51227c('0x646'),{'id':0xcd,'title':'UserProfiles','route':_0x51227c('0x25bc'),'translate':_0x51227c('0x2418'),'state':'app.staff.userProfiles','weight':0x1,'permissions':{'hidden':!![]},'hidden':function(){const _0x478952=_0x51227c;return _0x198d75[_0x478952('0x4ee')]('agent')||!_0x198d75[_0x478952('0x1709')](0xcd)&&!_0x198d75[_0x478952('0x4ee')](_0x478952('0xf45'));}}),_0x22f3e1['saveItem'](_0x51227c('0x187a'),{'id':0x12c,'title':'ContactManager','translate':_0x51227c('0x697'),'icon':_0x51227c('0xdc7'),'weight':0x4,'license':'cm','hidden':function(){const _0x2758b9=_0x51227c;return!_0x5874c7['cm']||_0x198d75['hasRole'](_0x2758b9('0x18c4'))||!_0x198d75[_0x2758b9('0x26b5')](_0x5561b3(this))&&!_0x198d75[_0x2758b9('0x4ee')](_0x2758b9('0xf45'));}}),_0x22f3e1['saveItem'](_0x51227c('0x1ba2'),{'id':0x12d,'title':_0x51227c('0x2244'),'route':_0x51227c('0xbef'),'translate':_0x51227c('0x1c9e'),'state':'app.contactmanager.lists','weight':0x2,'hidden':function(){const _0x33a980=_0x51227c;return _0x198d75['hasRole'](_0x33a980('0x18c4'))||!_0x198d75[_0x33a980('0x1709')](0x12d)&&!_0x198d75[_0x33a980('0x4ee')]('admin');}}),_0x22f3e1[_0x51227c('0x265e')](_0x51227c('0x6fa'),{'id':0x12e,'title':_0x51227c('0x1638'),'route':_0x51227c('0x9ba'),'translate':_0x51227c('0x2fa'),'state':_0x51227c('0x6c9'),'weight':0x3,'hidden':function(){const _0x5ed2ad=_0x51227c;return _0x198d75['hasRole'](_0x5ed2ad('0x18c4'))||!_0x198d75[_0x5ed2ad('0x1709')](0x12e)&&!_0x198d75[_0x5ed2ad('0x4ee')](_0x5ed2ad('0xf45'));}}),_0x22f3e1[_0x51227c('0x265e')](_0x51227c('0xd5d'),{'id':0x130,'title':_0x51227c('0x1b3'),'route':_0x51227c('0x1540'),'translate':_0x51227c('0x13c5'),'state':_0x51227c('0x1594'),'weight':0x4,'permissions':{'association':![]},'hidden':function(){const _0x208499=_0x51227c;return _0x198d75[_0x208499('0x4ee')]('agent')||!_0x198d75[_0x208499('0x1709')](0x130)&&!_0x198d75[_0x208499('0x4ee')]('admin');}}),_0x22f3e1[_0x51227c('0x265e')](_0x51227c('0xdf6'),{'id':0x12f,'title':_0x51227c('0xe64'),'route':'','translate':'CONTACTMANAGER.CONTACTS','state':'app.contactmanager.contacts','weight':0x1,'permissions':{'association':![]},'hidden':function(){const _0x45331f=_0x51227c;return _0x198d75[_0x45331f('0x4ee')](_0x45331f('0x18c4'))||!_0x198d75[_0x45331f('0x1709')](0x12f)&&!_0x198d75[_0x45331f('0x4ee')]('admin');}}),_0x22f3e1[_0x51227c('0x265e')](_0x51227c('0xfa4'),{'id':0x190,'title':'Voice','translate':'VOICE.VOICE','icon':_0x51227c('0x22d4'),'weight':0x5,'license':'voice','hidden':function(){const _0x1e614d=_0x51227c;return!_0x5874c7[_0x1e614d('0x1bc3')]||_0x198d75[_0x1e614d('0x4ee')]('agent')||!_0x198d75[_0x1e614d('0x26b5')](_0x5561b3(this))&&!_0x198d75[_0x1e614d('0x4ee')]('admin');}}),_0x22f3e1[_0x51227c('0x265e')]('apps.voice.voiceQueues',{'id':0x191,'title':_0x51227c('0xc85'),'route':_0x51227c('0x1043'),'translate':_0x51227c('0x7be'),'state':_0x51227c('0x23a8'),'weight':0x1,'channel':_0x51227c('0x1bc3'),'hidden':function(){const _0x280801=_0x51227c;return _0x198d75[_0x280801('0x4ee')]('agent')||!_0x198d75[_0x280801('0x1709')](0x191)&&!_0x198d75['hasRole'](_0x280801('0xf45'));}}),_0x22f3e1['saveItem'](_0x51227c('0x2222'),{'id':0x192,'title':_0x51227c('0x2209'),'route':_0x51227c('0x417'),'translate':_0x51227c('0x2814'),'state':_0x51227c('0x2229'),'weight':0x1,'hidden':function(){const _0x5a185b=_0x51227c;return _0x198d75[_0x5a185b('0x4ee')](_0x5a185b('0x18c4'))||!_0x198d75[_0x5a185b('0x1709')](0x192)&&!_0x198d75[_0x5a185b('0x4ee')](_0x5a185b('0xf45'));}}),_0x22f3e1[_0x51227c('0x265e')](_0x51227c('0xdc'),{'id':0x193,'title':_0x51227c('0x2028'),'route':_0x51227c('0x417'),'translate':'VOICE.OUTBOUNDROUTES','state':_0x51227c('0x13fe'),'weight':0x1,'hidden':function(){const _0xe20c52=_0x51227c;return _0x198d75[_0xe20c52('0x4ee')](_0xe20c52('0x18c4'))||!_0x198d75['hasPermission'](0x193)&&!_0x198d75[_0xe20c52('0x4ee')](_0xe20c52('0xf45'));}}),_0x22f3e1[_0x51227c('0x265e')](_0x51227c('0x1963'),{'id':0x194,'title':_0x51227c('0x109c'),'route':_0x51227c('0x417'),'translate':_0x51227c('0x1cca'),'state':_0x51227c('0x1e21'),'weight':0x1,'hidden':function(){const _0x1dbc62=_0x51227c;return _0x198d75[_0x1dbc62('0x4ee')](_0x1dbc62('0x18c4'))||!_0x198d75[_0x1dbc62('0x1709')](0x194)&&!_0x198d75[_0x1dbc62('0x4ee')](_0x1dbc62('0xf45'));}}),_0x22f3e1[_0x51227c('0x265e')](_0x51227c('0x199b'),{'id':0x195,'title':'Contexts','route':_0x51227c('0x1279'),'translate':_0x51227c('0x1f12'),'state':_0x51227c('0x1a67'),'weight':0x1,'hidden':function(){const _0x24a443=_0x51227c;return _0x198d75['hasRole']('agent')||!_0x198d75[_0x24a443('0x1709')](0x195)&&!_0x198d75['hasRole']('admin');}}),_0x22f3e1['saveItem']('apps.voice.voicemails',{'id':0x196,'title':'Voicemails','route':'voiceMail','translate':_0x51227c('0x143f'),'state':_0x51227c('0x1326'),'weight':0x1,'hidden':function(){const _0x37c880=_0x51227c;return _0x198d75[_0x37c880('0x4ee')](_0x37c880('0x18c4'))||!_0x198d75[_0x37c880('0x1709')](0x196)&&!_0x198d75['hasRole']('admin');}}),_0x22f3e1[_0x51227c('0x265e')]('apps.voice.musiconholds',{'id':0x197,'title':'MusicOnHolds','route':_0x51227c('0x11c7'),'translate':_0x51227c('0x9e4'),'state':_0x51227c('0x18af'),'weight':0x1,'hidden':function(){const _0x253d84=_0x51227c;return _0x198d75[_0x253d84('0x4ee')](_0x253d84('0x18c4'))||!_0x198d75[_0x253d84('0x1709')](0x197)&&!_0x198d75[_0x253d84('0x4ee')](_0x253d84('0xf45'));}}),_0x22f3e1[_0x51227c('0x265e')]('apps.voice.voiceRecordings',{'id':0x198,'title':_0x51227c('0x1815'),'route':_0x51227c('0x262'),'translate':_0x51227c('0x2802'),'state':_0x51227c('0x7e8'),'weight':0x1,'permissions':{'association':![],'loading':!![]},'hidden':function(){const _0x381aa8=_0x51227c;return _0x198d75[_0x381aa8('0x4ee')]('agent')||!_0x198d75[_0x381aa8('0x1709')](0x198)&&!_0x198d75[_0x381aa8('0x4ee')](_0x381aa8('0xf45'));}}),_0x22f3e1[_0x51227c('0x265e')](_0x51227c('0x6e6'),{'id':0x199,'title':_0x51227c('0x1104'),'route':_0x51227c('0x92f'),'translate':_0x51227c('0x27b2'),'state':'app.voice.chanSpies','weight':0x1,'hidden':function(){const _0x10c037=_0x51227c;return _0x198d75[_0x10c037('0x4ee')](_0x10c037('0x18c4'))||!_0x198d75[_0x10c037('0x1709')](0x199)&&!_0x198d75['hasRole'](_0x10c037('0xf45'));}}),_0x22f3e1['saveItem'](_0x51227c('0x220f'),{'id':0x19a,'title':'VoicePrefixes','route':_0x51227c('0x1f5f'),'translate':_0x51227c('0x115e'),'state':_0x51227c('0x1a91'),'weight':0x1,'hidden':function(){const _0x46dece=_0x51227c;return _0x198d75[_0x46dece('0x4ee')](_0x46dece('0x18c4'))||!_0x198d75[_0x46dece('0x1709')](0x19a)&&!_0x198d75[_0x46dece('0x4ee')](_0x46dece('0xf45'));}}),_0x22f3e1[_0x51227c('0x265e')]('apps.voice.realtime',{'id':0x19b,'title':_0x51227c('0x43c'),'route':'','translate':_0x51227c('0x5b8'),'state':_0x51227c('0x90a'),'weight':0x1,'permissions':{'association':![],'crud':![]},'hidden':function(){const _0x1fee34=_0x51227c;return _0x198d75['hasRole']('agent')||!_0x198d75[_0x1fee34('0x1709')](0x19b)&&!_0x198d75[_0x1fee34('0x4ee')](_0x1fee34('0xf45'));}}),_0x22f3e1['saveItem'](_0x51227c('0x1285'),{'id':0x1f4,'title':_0x51227c('0x25c0'),'translate':_0x51227c('0x1b97'),'icon':_0x51227c('0x444'),'weight':0x6,'license':_0x51227c('0x1800'),'hidden':function(){const _0x282a76=_0x51227c;return!_0x5874c7['chat']||_0x198d75['hasRole'](_0x282a76('0x18c4'))||!_0x198d75[_0x282a76('0x26b5')](_0x5561b3(this))&&!_0x198d75[_0x282a76('0x4ee')](_0x282a76('0xf45'));}}),_0x22f3e1[_0x51227c('0x265e')](_0x51227c('0xf94'),{'id':0x1f5,'title':'ChatQueues','route':_0x51227c('0x1c23'),'translate':_0x51227c('0x2397'),'state':_0x51227c('0x7e'),'weight':0x1,'channel':_0x51227c('0x1800'),'hidden':function(){const _0xcbf0e8=_0x51227c;return _0x198d75[_0xcbf0e8('0x4ee')](_0xcbf0e8('0x18c4'))||!_0x198d75['hasPermission'](0x1f5)&&!_0x198d75[_0xcbf0e8('0x4ee')](_0xcbf0e8('0xf45'));}}),_0x22f3e1['saveItem'](_0x51227c('0xce9'),{'id':0x1f6,'title':_0x51227c('0x368'),'route':_0x51227c('0xb50'),'translate':_0x51227c('0xe46'),'state':_0x51227c('0x1f7f'),'weight':0x1,'channel':'chat','hidden':function(){const _0x1b4af6=_0x51227c;return _0x198d75[_0x1b4af6('0x4ee')](_0x1b4af6('0x18c4'))||!_0x198d75[_0x1b4af6('0x1709')](0x1f6)&&!_0x198d75[_0x1b4af6('0x4ee')](_0x1b4af6('0xf45'));}}),_0x22f3e1[_0x51227c('0x265e')](_0x51227c('0x2630'),{'id':0x1fe,'title':'Realtime','route':'','translate':'CHAT.REALTIME','state':'app.chat.realtime','weight':0x1,'permissions':{'association':![],'crud':![]},'hidden':function(){const _0x5afd70=_0x51227c;return _0x198d75[_0x5afd70('0x4ee')](_0x5afd70('0x18c4'))||!_0x198d75[_0x5afd70('0x1709')](0x1fe)&&!_0x198d75[_0x5afd70('0x4ee')](_0x5afd70('0xf45'));}}),_0x22f3e1['saveItem'](_0x51227c('0x16bb'),{'id':0x258,'title':_0x51227c('0x5f0'),'translate':_0x51227c('0x230e'),'icon':_0x51227c('0xedc'),'weight':0x7,'license':_0x51227c('0x2030'),'hidden':function(){const _0x6d44dc=_0x51227c;return!_0x5874c7['mail']||_0x198d75['hasRole'](_0x6d44dc('0x18c4'))||!_0x198d75['hasChildrenPermissions'](_0x5561b3(this))&&!_0x198d75[_0x6d44dc('0x4ee')]('admin');}}),_0x22f3e1[_0x51227c('0x265e')](_0x51227c('0x5dc'),{'id':0x259,'title':_0x51227c('0x9af'),'route':_0x51227c('0x251b'),'translate':_0x51227c('0x1be'),'state':'app.mail.mailQueues','weight':0x1,'channel':_0x51227c('0x2030'),'hidden':function(){const _0x3a3aff=_0x51227c;return _0x198d75['hasRole'](_0x3a3aff('0x18c4'))||!_0x198d75['hasPermission'](0x259)&&!_0x198d75[_0x3a3aff('0x4ee')](_0x3a3aff('0xf45'));}}),_0x22f3e1[_0x51227c('0x265e')](_0x51227c('0x1faa'),{'id':0x25a,'title':_0x51227c('0x48d'),'route':'mailAccount','translate':_0x51227c('0x1910'),'state':_0x51227c('0x15ec'),'weight':0x1,'channel':'mail','hidden':function(){const _0x295abe=_0x51227c;return _0x198d75['hasRole']('agent')||!_0x198d75[_0x295abe('0x1709')](0x25a)&&!_0x198d75['hasRole']('admin');}}),_0x22f3e1['saveItem'](_0x51227c('0x25f2'),{'id':0x25b,'title':_0x51227c('0x394'),'route':_0x51227c('0x1f96'),'translate':_0x51227c('0x7ee'),'state':'app.mail.mailSubtatuses','weight':0x1,'channel':_0x51227c('0x2030'),'permissions':{'association':![]},'hidden':function(){const _0x33e68b=_0x51227c;return _0x198d75[_0x33e68b('0x4ee')]('agent')||!_0x198d75[_0x33e68b('0x1709')](0x25b)&&!_0x198d75['hasRole'](_0x33e68b('0xf45'));}}),_0x22f3e1[_0x51227c('0x265e')]('apps.mail.realtime',{'id':0x262,'title':_0x51227c('0x43c'),'route':'','translate':_0x51227c('0x25ff'),'state':'app.mail.realtime','weight':0x1,'permissions':{'association':![],'crud':![]},'hidden':function(){const _0x215962=_0x51227c;return _0x198d75[_0x215962('0x4ee')](_0x215962('0x18c4'))||!_0x198d75[_0x215962('0x1709')](0x262)&&!_0x198d75[_0x215962('0x4ee')]('admin');}}),_0x22f3e1[_0x51227c('0x265e')](_0x51227c('0x158b'),{'id':0x2bc,'title':_0x51227c('0x19ac'),'translate':_0x51227c('0x7bf'),'icon':_0x51227c('0x1767'),'weight':0x8,'license':_0x51227c('0x1b42'),'hidden':function(){const _0x48488b=_0x51227c;return!_0x5874c7[_0x48488b('0x1b42')]||_0x198d75[_0x48488b('0x4ee')](_0x48488b('0x18c4'))||!_0x198d75[_0x48488b('0x26b5')](_0x5561b3(this))&&!_0x198d75[_0x48488b('0x4ee')](_0x48488b('0xf45'));}}),_0x22f3e1['saveItem'](_0x51227c('0x268b'),{'id':0x2bd,'title':'SmsQueues','route':_0x51227c('0x1257'),'translate':_0x51227c('0xaee'),'state':_0x51227c('0x10ce'),'weight':0x1,'channel':'sms','hidden':function(){const _0x21c223=_0x51227c;return _0x198d75[_0x21c223('0x4ee')](_0x21c223('0x18c4'))||!_0x198d75[_0x21c223('0x1709')](0x2bd)&&!_0x198d75[_0x21c223('0x4ee')](_0x21c223('0xf45'));}}),_0x22f3e1[_0x51227c('0x265e')](_0x51227c('0xd4a'),{'id':0x2be,'title':'SmsAccounts','route':_0x51227c('0x234b'),'translate':_0x51227c('0x262e'),'state':_0x51227c('0xc74'),'weight':0x1,'channel':_0x51227c('0x4df'),'hidden':function(){const _0x33dca7=_0x51227c;return _0x198d75['hasRole'](_0x33dca7('0x18c4'))||!_0x198d75['hasPermission'](0x2be)&&!_0x198d75[_0x33dca7('0x4ee')](_0x33dca7('0xf45'));}}),_0x22f3e1[_0x51227c('0x265e')](_0x51227c('0x1623'),{'id':0x2c6,'title':'Realtime','route':'','translate':_0x51227c('0x23c'),'state':_0x51227c('0x12f'),'weight':0x1,'permissions':{'association':![],'crud':![]},'hidden':function(){const _0x4e701a=_0x51227c;return _0x198d75[_0x4e701a('0x4ee')](_0x4e701a('0x18c4'))||!_0x198d75[_0x4e701a('0x1709')](0x2c6)&&!_0x198d75[_0x4e701a('0x4ee')]('admin');}}),_0x22f3e1['saveItem']('apps.openchannel',{'id':0x320,'title':'Openchannel','translate':'OPENCHANNEL.OPENCHANNEL','icon':_0x51227c('0x1817'),'weight':0x9,'license':_0x51227c('0xb18'),'hidden':function(){const _0x52a5e9=_0x51227c;return!_0x5874c7[_0x52a5e9('0xb18')]||_0x198d75[_0x52a5e9('0x4ee')](_0x52a5e9('0x18c4'))||!_0x198d75[_0x52a5e9('0x26b5')](_0x5561b3(this))&&!_0x198d75[_0x52a5e9('0x4ee')](_0x52a5e9('0xf45'));}}),_0x22f3e1[_0x51227c('0x265e')](_0x51227c('0x1fce'),{'id':0x321,'title':_0x51227c('0xd29'),'route':_0x51227c('0x121f'),'translate':_0x51227c('0xbb7'),'state':'app.openchannel.openchannelQueues','weight':0x1,'channel':_0x51227c('0x21c1'),'hidden':function(){const _0x3d141c=_0x51227c;return _0x198d75['hasRole'](_0x3d141c('0x18c4'))||!_0x198d75[_0x3d141c('0x1709')](0x321)&&!_0x198d75[_0x3d141c('0x4ee')](_0x3d141c('0xf45'));}}),_0x22f3e1[_0x51227c('0x265e')](_0x51227c('0x13ba'),{'id':0x322,'title':_0x51227c('0x17d3'),'route':_0x51227c('0x13cb'),'translate':_0x51227c('0x163f'),'state':_0x51227c('0x13f7'),'weight':0x1,'channel':'openChannel','hidden':function(){const _0x24c820=_0x51227c;return _0x198d75[_0x24c820('0x4ee')](_0x24c820('0x18c4'))||!_0x198d75[_0x24c820('0x1709')](0x322)&&!_0x198d75[_0x24c820('0x4ee')](_0x24c820('0xf45'));}}),_0x22f3e1['saveItem'](_0x51227c('0x22ce'),{'id':0x32a,'title':_0x51227c('0x43c'),'route':'','translate':_0x51227c('0x1e6a'),'state':'app.openchannel.realtime','weight':0x1,'permissions':{'association':![],'crud':![]},'hidden':function(){const _0x2e4211=_0x51227c;return _0x198d75[_0x2e4211('0x4ee')](_0x2e4211('0x18c4'))||!_0x198d75[_0x2e4211('0x1709')](0x32a)&&!_0x198d75[_0x2e4211('0x4ee')](_0x2e4211('0xf45'));}}),_0x22f3e1[_0x51227c('0x265e')](_0x51227c('0x2381'),{'id':0x384,'title':'Fax','translate':_0x51227c('0x27f1'),'icon':_0x51227c('0x1994'),'weight':0xa,'license':_0x51227c('0x2104'),'hidden':function(){const _0x572124=_0x51227c;return!_0x5874c7[_0x572124('0x2104')]||_0x198d75[_0x572124('0x4ee')](_0x572124('0x18c4'))||!_0x198d75[_0x572124('0x26b5')](_0x5561b3(this))&&!_0x198d75[_0x572124('0x4ee')](_0x572124('0xf45'));}}),_0x22f3e1['saveItem'](_0x51227c('0x4ff'),{'id':0x385,'title':'FaxQueues','route':_0x51227c('0x189d'),'translate':'FAX.FAXQUEUES','state':_0x51227c('0x1647'),'weight':0x1,'channel':_0x51227c('0x2104'),'hidden':function(){const _0x17e01d=_0x51227c;return _0x198d75[_0x17e01d('0x4ee')](_0x17e01d('0x18c4'))||!_0x198d75['hasPermission'](0x385)&&!_0x198d75['hasRole'](_0x17e01d('0xf45'));}}),_0x22f3e1[_0x51227c('0x265e')]('apps.fax.faxAccounts',{'id':0x386,'title':_0x51227c('0x6bd'),'route':_0x51227c('0x19dc'),'translate':_0x51227c('0x1ae5'),'state':'app.fax.faxAccounts','weight':0x1,'channel':_0x51227c('0x2104'),'hidden':function(){const _0x15ab61=_0x51227c;return _0x198d75[_0x15ab61('0x4ee')](_0x15ab61('0x18c4'))||!_0x198d75[_0x15ab61('0x1709')](0x386)&&!_0x198d75[_0x15ab61('0x4ee')](_0x15ab61('0xf45'));}}),_0x22f3e1[_0x51227c('0x265e')](_0x51227c('0x2677'),{'id':0x38e,'title':_0x51227c('0x43c'),'route':'','translate':_0x51227c('0x13c'),'state':_0x51227c('0x275a'),'weight':0x1,'permissions':{'association':![],'crud':![]},'hidden':function(){const _0x3ed3f6=_0x51227c;return _0x198d75[_0x3ed3f6('0x4ee')](_0x3ed3f6('0x18c4'))||!_0x198d75[_0x3ed3f6('0x1709')](0x38e)&&!_0x198d75['hasRole'](_0x3ed3f6('0xf45'));}}),_0x22f3e1[_0x51227c('0x265e')](_0x51227c('0x79a'),{'id':0x3e8,'title':_0x51227c('0x1bef'),'translate':'TOOLS.TOOLS','icon':_0x51227c('0xb3b'),'weight':0xf,'hidden':function(){const _0x142514=_0x51227c;return _0x198d75['hasRole'](_0x142514('0x18c4'))||!_0x198d75['hasChildrenPermissions'](_0x5561b3(this))&&!_0x198d75[_0x142514('0x4ee')](_0x142514('0xf45'));}}),_0x22f3e1['saveItem'](_0x51227c('0x1c0'),{'id':0x3e9,'title':_0x51227c('0x1a4b'),'route':_0x51227c('0x81'),'translate':'TOOLS.CANNEDANSWERS','state':_0x51227c('0x1bd8'),'weight':0x1,'hidden':function(){const _0x386f0f=_0x51227c;return _0x198d75[_0x386f0f('0x4ee')](_0x386f0f('0x18c4'))||!_0x198d75[_0x386f0f('0x1709')](0x3e9)&&!_0x198d75[_0x386f0f('0x4ee')]('admin');}}),_0x22f3e1[_0x51227c('0x265e')](_0x51227c('0x2101'),{'id':0x3eb,'title':_0x51227c('0x1ee0'),'route':'dashboard','translate':'TOOLS.CUSTOMDASHBOARDS','state':_0x51227c('0x1395'),'weight':0x3,'hidden':function(){const _0x4e1837=_0x51227c;return _0x198d75['hasRole'](_0x4e1837('0x18c4'))||!_0x198d75['hasPermission'](0x3eb)&&!_0x198d75[_0x4e1837('0x4ee')]('admin');}}),_0x22f3e1['saveItem'](_0x51227c('0x96c'),{'id':0x3ec,'title':_0x51227c('0x233e'),'route':_0x51227c('0x507'),'translate':_0x51227c('0x1bd5'),'state':'app.tools.intervals','weight':0x4,'hidden':function(){const _0xfa1e6b=_0x51227c;return _0x198d75[_0xfa1e6b('0x4ee')]('agent')||!_0x198d75['hasPermission'](0x3ec)&&!_0x198d75['hasRole'](_0xfa1e6b('0xf45'));}}),_0x22f3e1[_0x51227c('0x265e')](_0x51227c('0x134'),{'id':0x3ed,'title':_0x51227c('0x1566'),'route':_0x51227c('0x92a'),'translate':_0x51227c('0xcf2'),'state':_0x51227c('0x267c'),'weight':0x5,'hidden':function(){const _0x172eea=_0x51227c;return _0x198d75['hasRole'](_0x172eea('0x18c4'))||!_0x198d75[_0x172eea('0x1709')](0x3ed)&&!_0x198d75[_0x172eea('0x4ee')](_0x172eea('0xf45'));}}),_0x22f3e1[_0x51227c('0x265e')]('apps.tools.schedules',{'id':0x3ee,'title':_0x51227c('0x85d'),'route':_0x51227c('0xc04'),'translate':'TOOLS.SCHEDULER','state':_0x51227c('0x849'),'weight':0x6,'hidden':function(){const _0x6795e7=_0x51227c;return _0x198d75[_0x6795e7('0x4ee')](_0x6795e7('0x18c4'))||!_0x198d75['hasPermission'](0x3ee)&&!_0x198d75['hasRole'](_0x6795e7('0xf45'));}}),_0x22f3e1[_0x51227c('0x265e')]('apps.tools.sounds',{'id':0x3ef,'title':_0x51227c('0x1bfe'),'route':_0x51227c('0x1d6e'),'translate':'TOOLS.SOUNDS','state':_0x51227c('0x115'),'weight':0x7,'hidden':function(){const _0x19cfe0=_0x51227c;return _0x198d75[_0x19cfe0('0x4ee')]('agent')||!_0x198d75['hasPermission'](0x3ef)&&!_0x198d75[_0x19cfe0('0x4ee')](_0x19cfe0('0xf45'));}}),_0x22f3e1[_0x51227c('0x265e')]('apps.tools.tags',{'id':0x3f0,'title':'Tags','route':_0x51227c('0x1d73'),'translate':_0x51227c('0x7b'),'state':_0x51227c('0x16d2'),'weight':0x8,'hidden':function(){const _0x515190=_0x51227c;return _0x198d75[_0x515190('0x4ee')]('agent')||!_0x198d75[_0x515190('0x1709')](0x3f0)&&!_0x198d75[_0x515190('0x4ee')](_0x515190('0xf45'));}}),_0x22f3e1[_0x51227c('0x265e')]('apps.tools.templates',{'id':0x3f1,'title':_0x51227c('0x61d'),'route':_0x51227c('0x13b6'),'translate':_0x51227c('0xe95'),'state':'app.tools.templates','weight':0x9,'hidden':function(){const _0x3f05fa=_0x51227c;return _0x198d75[_0x3f05fa('0x4ee')](_0x3f05fa('0x18c4'))||!_0x198d75['hasPermission'](0x3f1)&&!_0x198d75[_0x3f05fa('0x4ee')](_0x3f05fa('0xf45'));}}),_0x22f3e1['saveItem'](_0x51227c('0x554'),{'id':0x3f3,'title':_0x51227c('0x2174'),'route':_0x51227c('0x264e'),'translate':_0x51227c('0xdca'),'state':_0x51227c('0xb61'),'weight':0xb,'hidden':function(){const _0x44352b=_0x51227c;return _0x198d75[_0x44352b('0x4ee')]('agent')||!_0x198d75['hasPermission'](0x3f3)&&!_0x198d75[_0x44352b('0x4ee')](_0x44352b('0xf45'));}}),_0x22f3e1['saveItem']('apps.tools.variables',{'id':0x3f4,'title':_0x51227c('0xa83'),'route':_0x51227c('0xb0'),'translate':_0x51227c('0x1f95'),'state':_0x51227c('0xa1c'),'weight':0xc,'hidden':function(){const _0x48ae51=_0x51227c;return _0x198d75[_0x48ae51('0x4ee')](_0x48ae51('0x18c4'))||!_0x198d75[_0x48ae51('0x1709')](0x3f4)&&!_0x198d75[_0x48ae51('0x4ee')](_0x48ae51('0xf45'));}}),_0x22f3e1[_0x51227c('0x265e')](_0x51227c('0x13dd'),{'id':0x3ea,'title':_0x51227c('0xc76'),'route':_0x51227c('0x107a'),'translate':_0x51227c('0x192b'),'state':_0x51227c('0xef6'),'weight':0x2,'hidden':function(){const _0x54ed89=_0x51227c;return _0x198d75[_0x54ed89('0x4ee')](_0x54ed89('0x18c4'))||!_0x198d75['hasPermission'](0x3ea)&&!_0x198d75['hasRole'](_0x54ed89('0xf45'));}}),_0x22f3e1[_0x51227c('0x265e')](_0x51227c('0x963'),{'id':0x3f2,'title':'Triggers','route':'','translate':_0x51227c('0x4be'),'state':'app.tools.triggers','weight':0xa,'hidden':function(){const _0x1203bf=_0x51227c;return _0x198d75[_0x1203bf('0x4ee')](_0x1203bf('0x18c4'))||!_0x198d75[_0x1203bf('0x1709')](0x3f2)&&!_0x198d75[_0x1203bf('0x4ee')]('admin');}}),_0x22f3e1[_0x51227c('0x265e')](_0x51227c('0x2436'),{'id':0x44c,'title':_0x51227c('0x1901'),'translate':_0x51227c('0x10d8'),'icon':'icon-sitemap','weight':0xd,'license':_0x51227c('0x1bc3'),'hidden':function(){const _0x402f0a=_0x51227c;return!_0x5874c7['voice']||_0x198d75[_0x402f0a('0x4ee')](_0x402f0a('0x18c4'))||!_0x198d75['hasChildrenPermissions'](_0x5561b3(this))&&!_0x198d75['hasRole'](_0x402f0a('0xf45'));}}),_0x22f3e1['saveItem']('apps.callysquare.odbcs',{'id':0x44d,'title':_0x51227c('0x17b3'),'route':_0x51227c('0x80d'),'translate':_0x51227c('0x1e81'),'state':_0x51227c('0xf44'),'weight':0x2,'hidden':function(){const _0x478073=_0x51227c;return _0x198d75[_0x478073('0x4ee')]('agent')||!_0x198d75[_0x478073('0x1709')](0x44d)&&!_0x198d75[_0x478073('0x4ee')](_0x478073('0xf45'));}}),_0x22f3e1[_0x51227c('0x265e')](_0x51227c('0x799'),{'id':0x44e,'title':_0x51227c('0x1d7a'),'route':_0x51227c('0x26d5'),'translate':_0x51227c('0x2737'),'state':_0x51227c('0x239f'),'weight':0x3,'permissions':{'association':![],'loading':!![]},'hidden':function(){const _0x2f6bb6=_0x51227c;return _0x198d75[_0x2f6bb6('0x4ee')](_0x2f6bb6('0x18c4'))||!_0x198d75['hasPermission'](0x44e)&&!_0x198d75[_0x2f6bb6('0x4ee')](_0x2f6bb6('0xf45'));}}),_0x22f3e1[_0x51227c('0x265e')](_0x51227c('0x68e'),{'id':0x44f,'title':_0x51227c('0x70c'),'route':_0x51227c('0x1671'),'translate':_0x51227c('0x6e3'),'state':_0x51227c('0x15a3'),'weight':0x1,'hidden':function(){const _0x54cff5=_0x51227c;return _0x198d75[_0x54cff5('0x4ee')](_0x54cff5('0x18c4'))||!_0x198d75['hasPermission'](0x44f)&&!_0x198d75[_0x54cff5('0x4ee')](_0x54cff5('0xf45'));}}),_0x22f3e1[_0x51227c('0x265e')]('apps.analytics',{'id':0x4b0,'title':'Analytics','translate':_0x51227c('0x2181'),'icon':_0x51227c('0x123f'),'weight':0x10,'hidden':function(){const _0x13856a=_0x51227c;return _0x198d75[_0x13856a('0x4ee')](_0x13856a('0x18c4'))||!_0x198d75[_0x13856a('0x26b5')](_0x5561b3(this))&&!_0x198d75[_0x13856a('0x4ee')](_0x13856a('0xf45'));}}),_0x22f3e1[_0x51227c('0x265e')](_0x51227c('0x144f'),{'id':0x4b1,'title':'Metrics','route':_0x51227c('0xde8'),'translate':_0x51227c('0x188'),'state':'app.analytics.metrics','weight':0x3,'hidden':function(){const _0x5903f5=_0x51227c;return _0x198d75[_0x5903f5('0x4ee')](_0x5903f5('0x18c4'))||!_0x198d75[_0x5903f5('0x1709')](0x4b1)&&!_0x198d75[_0x5903f5('0x4ee')](_0x5903f5('0xf45'));}}),_0x22f3e1['saveItem'](_0x51227c('0x1ec1'),{'id':0x4b2,'title':_0x51227c('0x161a'),'route':_0x51227c('0x1136'),'translate':_0x51227c('0xef9'),'state':'app.analytics.extractedReports','weight':0x2,'permissions':{'association':![],'loading':!![]},'hidden':function(){const _0x7fa138=_0x51227c;return _0x198d75[_0x7fa138('0x4ee')](_0x7fa138('0x18c4'))||!_0x198d75['hasPermission'](0x4b2)&&!_0x198d75['hasRole'](_0x7fa138('0xf45'));}}),_0x22f3e1[_0x51227c('0x265e')](_0x51227c('0x1dee'),{'id':0x4b3,'title':_0x51227c('0x14b5'),'route':'','translate':_0x51227c('0x4b3'),'state':_0x51227c('0x20d9'),'weight':0x1,'hidden':function(){const _0x3454a4=_0x51227c;return _0x198d75['hasRole'](_0x3454a4('0x18c4'))||!_0x198d75[_0x3454a4('0x1709')](0x4b3)&&!_0x198d75[_0x3454a4('0x4ee')](_0x3454a4('0xf45'));}}),_0x22f3e1[_0x51227c('0x265e')]('apps.integrations',{'id':0x514,'title':'Integrations','translate':_0x51227c('0xe96'),'icon':_0x51227c('0x1eb'),'weight':0x11,'hidden':function(){const _0x3d90e4=_0x51227c;return _0x198d75[_0x3d90e4('0x4ee')]('agent')||!_0x198d75[_0x3d90e4('0x26b5')](_0x5561b3(this))&&!_0x198d75[_0x3d90e4('0x4ee')](_0x3d90e4('0xf45'));}}),_0x22f3e1[_0x51227c('0x265e')]('apps.integrations.zendeskAccounts',{'id':0x515,'title':'ZendeskAccounts','route':_0x51227c('0x27f2'),'translate':'INTEGRATIONS.ZENDESKACCOUNTS','state':_0x51227c('0x59b'),'weight':0x1,'permissions':{'association':![],'loading':!![]},'hidden':function(){const _0x452d63=_0x51227c;return _0x198d75['hasRole'](_0x452d63('0x18c4'))||!_0x198d75[_0x452d63('0x1709')](0x515)&&!_0x198d75[_0x452d63('0x4ee')](_0x452d63('0xf45'));}}),_0x22f3e1[_0x51227c('0x265e')](_0x51227c('0x1282'),{'id':0x516,'title':_0x51227c('0x60c'),'route':'intSalesforceAccount','translate':'INTEGRATIONS.SALESFORCEACCOUNTS','state':_0x51227c('0x1365'),'weight':0x2,'permissions':{'association':![],'loading':!![]},'hidden':function(){const _0x2f55a8=_0x51227c;return _0x198d75[_0x2f55a8('0x4ee')](_0x2f55a8('0x18c4'))||!_0x198d75[_0x2f55a8('0x1709')](0x516)&&!_0x198d75[_0x2f55a8('0x4ee')](_0x2f55a8('0xf45'));}}),_0x22f3e1[_0x51227c('0x265e')]('apps.integrations.freshdeskAccounts',{'id':0x517,'title':_0x51227c('0x1f65'),'route':'intFreshdeskAccount','translate':_0x51227c('0x259f'),'state':_0x51227c('0x1c02'),'weight':0x3,'permissions':{'association':![],'loading':!![]},'hidden':function(){const _0x1e8a52=_0x51227c;return _0x198d75[_0x1e8a52('0x4ee')]('agent')||!_0x198d75[_0x1e8a52('0x1709')](0x517)&&!_0x198d75[_0x1e8a52('0x4ee')](_0x1e8a52('0xf45'));}}),_0x22f3e1[_0x51227c('0x265e')](_0x51227c('0x1217'),{'id':0x519,'title':'SugarcrmAccounts','route':'intSugarcrmAccount','translate':_0x51227c('0x1673'),'state':'app.integrations.sugarcrmAccounts','weight':0x4,'permissions':{'association':![],'loading':!![]},'hidden':function(){const _0x2be195=_0x51227c;return _0x198d75['hasRole'](_0x2be195('0x18c4'))||!_0x198d75['hasPermission'](0x519)&&!_0x198d75['hasRole'](_0x2be195('0xf45'));}}),_0x22f3e1[_0x51227c('0x265e')](_0x51227c('0x1bfd'),{'id':0x51a,'title':_0x51227c('0x56f'),'route':_0x51227c('0x26da'),'translate':_0x51227c('0x2517'),'state':_0x51227c('0x20f6'),'weight':0x5,'permissions':{'association':![],'loading':!![]},'hidden':function(){const _0x365208=_0x51227c;return _0x198d75[_0x365208('0x4ee')](_0x365208('0x18c4'))||!_0x198d75[_0x365208('0x1709')](0x51a)&&!_0x198d75[_0x365208('0x4ee')](_0x365208('0xf45'));}}),_0x22f3e1[_0x51227c('0x265e')]('apps.integrations.zohoAccounts',{'id':0x51b,'title':_0x51227c('0xa0'),'route':'intZohoAccount','translate':_0x51227c('0x2382'),'state':_0x51227c('0xe80'),'weight':0x6,'permissions':{'association':![],'loading':!![]},'hidden':function(){const _0x539d3d=_0x51227c;return _0x198d75['hasRole'](_0x539d3d('0x18c4'))||!_0x198d75['hasPermission'](0x51b)&&!_0x198d75['hasRole'](_0x539d3d('0xf45'));}}),_0x22f3e1[_0x51227c('0x265e')](_0x51227c('0x161'),{'id':0x51c,'title':'VtigerAccounts','route':'intVtigerAccount','translate':_0x51227c('0x192c'),'state':_0x51227c('0x1258'),'weight':0x7,'permissions':{'association':![],'loading':!![]},'hidden':function(){const _0xc19ac=_0x51227c;return _0x198d75[_0xc19ac('0x4ee')](_0xc19ac('0x18c4'))||!_0x198d75[_0xc19ac('0x1709')](0x51c)&&!_0x198d75[_0xc19ac('0x4ee')](_0xc19ac('0xf45'));}}),_0x22f3e1['saveItem'](_0x51227c('0x1432'),{'id':0x51d,'title':_0x51227c('0x71c'),'route':_0x51227c('0x24e0'),'translate':_0x51227c('0x1405'),'state':_0x51227c('0x7cc'),'weight':0x8,'permissions':{'association':![],'loading':!![]},'hidden':function(){const _0x590e02=_0x51227c;return _0x198d75['hasRole'](_0x590e02('0x18c4'))||!_0x198d75['hasPermission'](0x51d)&&!_0x198d75[_0x590e02('0x4ee')](_0x590e02('0xf45'));}}),_0x22f3e1[_0x51227c('0x265e')](_0x51227c('0xd60'),{'id':0x51e,'title':_0x51227c('0x774'),'route':_0x51227c('0x2661'),'translate':_0x51227c('0x1e50'),'state':'app.integrations.servicenowAccounts','weight':0x9,'permissions':{'association':![],'loading':!![]},'hidden':function(){const _0xaf8eb=_0x51227c;return _0x198d75[_0xaf8eb('0x4ee')]('agent')||!_0x198d75[_0xaf8eb('0x1709')](0x51e)&&!_0x198d75[_0xaf8eb('0x4ee')](_0xaf8eb('0xf45'));}}),_0x22f3e1[_0x51227c('0x265e')](_0x51227c('0x65b'),{'id':0x518,'title':_0x51227c('0xfab'),'route':_0x51227c('0xda4'),'translate':_0x51227c('0x1a97'),'state':'app.integrations.freshsalesAccounts','weight':0xa,'permissions':{'association':![],'loading':!![]},'hidden':function(){const _0x1473e2=_0x51227c;return _0x198d75[_0x1473e2('0x4ee')](_0x1473e2('0x18c4'))||!_0x198d75[_0x1473e2('0x1709')](0x518)&&!_0x198d75[_0x1473e2('0x4ee')](_0x1473e2('0xf45'));}}),_0x22f3e1['saveItem'](_0x51227c('0x161b'),{'id':0x578,'title':_0x51227c('0xb00'),'translate':'SETTINGS.SETTINGS','icon':'icon-cog','weight':0x14,'permissions':{'hidden':!![]},'hidden':function(){const _0x4ef3df=_0x51227c;return _0x198d75[_0x4ef3df('0x4ee')](_0x4ef3df('0x18c4'))||!_0x198d75[_0x4ef3df('0x1709')](0x578)&&!_0x198d75[_0x4ef3df('0x4ee')](_0x4ef3df('0xf45'))||_0x198d75[_0x4ef3df('0x4ee')](_0x4ef3df('0xf45'))&&!_0x198d75[_0x4ef3df('0x2428')]()[_0x4ef3df('0x130b')];}}),_0x22f3e1['saveItem'](_0x51227c('0xcaa'),{'id':0x579,'title':'General','route':_0x51227c('0x23e1'),'translate':'SETTINGS.GENERAL','state':_0x51227c('0xef1'),'weight':0x1,'hidden':function(){const _0x10cef8=_0x51227c;return _0x198d75[_0x10cef8('0x4ee')](_0x10cef8('0x18c4'))||!_0x198d75[_0x10cef8('0x1709')](0x578)&&!_0x198d75[_0x10cef8('0x4ee')](_0x10cef8('0xf45'));}}),_0x22f3e1[_0x51227c('0x265e')]('apps.settings.smtps',{'id':0x57a,'title':_0x51227c('0xa42'),'route':_0x51227c('0x1d47'),'translate':_0x51227c('0x77a'),'state':'app.settings.smtps','weight':0x1,'hidden':function(){const _0x470d5c=_0x51227c;return _0x198d75['hasRole'](_0x470d5c('0x18c4'))||!_0x198d75[_0x470d5c('0x1709')](0x578)&&!_0x198d75[_0x470d5c('0x4ee')](_0x470d5c('0xf45'));}}),_0x22f3e1[_0x51227c('0x265e')](_0x51227c('0x2422'),{'id':0x57b,'title':_0x51227c('0x165f'),'route':_0x51227c('0x3cf'),'translate':_0x51227c('0x1b61'),'state':_0x51227c('0xb1b'),'weight':0x1,'hidden':function(){const _0x5ba92a=_0x51227c;return _0x198d75['hasRole'](_0x5ba92a('0x18c4'))||!_0x198d75['hasPermission'](0x578)&&!_0x198d75[_0x5ba92a('0x4ee')]('admin');}}),_0x22f3e1['saveItem'](_0x51227c('0x980'),{'id':0x57f,'title':'Customizations','route':'setting','translate':_0x51227c('0x6dd'),'state':_0x51227c('0x5a3'),'weight':0x1,'hidden':function(){const _0x1abc3f=_0x51227c;return!_0x5874c7['custom']||_0x198d75[_0x1abc3f('0x4ee')]('agent')||!_0x198d75[_0x1abc3f('0x1709')](0x578)&&!_0x198d75[_0x1abc3f('0x4ee')]('admin');}}),_0x22f3e1['saveItem'](_0x51227c('0x14a1'),{'id':0x580,'title':_0x51227c('0x1dcf'),'route':'cloudProvider','translate':_0x51227c('0x17aa'),'state':'app.settings.cloudProviders','weight':0x1,'hidden':function(){const _0x45c1cf=_0x51227c;return!_0x5874c7['ai']||_0x198d75[_0x45c1cf('0x4ee')](_0x45c1cf('0x18c4'))||!_0x198d75[_0x45c1cf('0x1709')](0x578)&&!_0x198d75['hasRole']('admin');}}),_0x22f3e1[_0x51227c('0x265e')](_0x51227c('0x764'),{'id':0x57c,'title':'Updates','route':'','translate':_0x51227c('0x118e'),'state':_0x51227c('0x147c'),'weight':0x1,'hidden':function(){const _0x2758d5=_0x51227c;return!_0x5874c7[_0x2758d5('0x5ab')]||_0x198d75[_0x2758d5('0x4ee')](_0x2758d5('0x18c4'))||!_0x198d75[_0x2758d5('0x1709')](0x578)&&!_0x198d75['hasRole'](_0x2758d5('0xf45'));}}),_0x22f3e1[_0x51227c('0x265e')](_0x51227c('0x119b'),{'id':0x57d,'title':_0x51227c('0x1792'),'route':'','translate':'SETTINGS.LICENSE','state':'app.settings.license','weight':0x1,'hidden':function(){const _0x23e264=_0x51227c;return _0x198d75[_0x23e264('0x4ee')](_0x23e264('0x18c4'))||!_0x198d75[_0x23e264('0x1709')](0x578)&&!_0x198d75['hasRole'](_0x23e264('0xf45'));}}),_0x22f3e1[_0x51227c('0x265e')]('apps.settings.system',{'id':0x57e,'title':_0x51227c('0x1b1d'),'route':'','translate':'SETTINGS.SYSTEM','state':_0x51227c('0x26c0'),'weight':0x1,'hidden':function(){const _0xa55c50=_0x51227c;return _0x198d75[_0xa55c50('0x4ee')]('agent')||!_0x198d75['hasPermission'](0x578)&&!_0x198d75[_0xa55c50('0x4ee')](_0xa55c50('0xf45'));}}),_0x22f3e1['saveItem'](_0x51227c('0xbe7'),{'id':0x5dc,'title':'MotionDialer','translate':'MOTIONDIALER.MOTIONDIALER','icon':_0x51227c('0x1f41'),'weight':0x5,'license':_0x51227c('0x14be'),'hidden':function(){const _0x27d6d8=_0x51227c;return!_0x5874c7['dialer']||_0x198d75[_0x27d6d8('0x4ee')](_0x27d6d8('0x18c4'))||!_0x198d75['hasChildrenPermissions'](_0x5561b3(this))&&!_0x198d75['hasRole'](_0x27d6d8('0xf45'));}}),_0x22f3e1[_0x51227c('0x265e')](_0x51227c('0x226a'),{'id':0x5dd,'title':'QueueCampaigns','route':_0x51227c('0x1043'),'translate':_0x51227c('0xab3'),'state':_0x51227c('0x269d'),'weight':0x1,'channel':_0x51227c('0x779'),'hidden':function(){const _0x352f63=_0x51227c;return _0x198d75['hasRole'](_0x352f63('0x18c4'))||!_0x198d75[_0x352f63('0x1709')](0x5dd)&&!_0x198d75[_0x352f63('0x4ee')](_0x352f63('0xf45'));}}),_0x22f3e1[_0x51227c('0x265e')](_0x51227c('0x4f'),{'id':0x5de,'title':_0x51227c('0xec'),'route':'campaign','translate':_0x51227c('0x71'),'state':'app.motiondialer.ivrCampaigns','weight':0x1,'hidden':function(){const _0x5cbce9=_0x51227c;return _0x198d75[_0x5cbce9('0x4ee')](_0x5cbce9('0x18c4'))||!_0x198d75[_0x5cbce9('0x1709')](0x5de)&&!_0x198d75[_0x5cbce9('0x4ee')](_0x5cbce9('0xf45'));}}),_0x22f3e1['saveItem'](_0x51227c('0x1def'),{'id':0x5e6,'title':_0x51227c('0x43c'),'route':'','translate':_0x51227c('0x556'),'state':_0x51227c('0x10a3'),'weight':0x1,'permissions':{'association':![],'crud':![]},'hidden':function(){const _0x1c3cde=_0x51227c;return _0x198d75[_0x1c3cde('0x4ee')](_0x1c3cde('0x18c4'))||!_0x198d75[_0x1c3cde('0x1709')](0x5e6)&&!_0x198d75[_0x1c3cde('0x4ee')](_0x1c3cde('0xf45'));}}),_0x22f3e1[_0x51227c('0x265e')](_0x51227c('0xe5c'),{'id':0x640,'title':'Help','translate':_0x51227c('0x1902'),'icon':_0x51227c('0x149'),'weight':0x15,'permissions':{'association':![]},'hidden':function(){const _0x421056=_0x51227c;return _0x198d75[_0x421056('0x4ee')](_0x421056('0x18c4'))||!_0x198d75[_0x421056('0x1709')](0x640)&&!_0x198d75['hasRole']('admin');}}),_0x22f3e1[_0x51227c('0x265e')](_0x51227c('0x1c7'),{'id':0x641,'title':_0x51227c('0x285b'),'route':'','translate':_0x51227c('0x637'),'state':_0x51227c('0x269'),'weight':0x1,'hidden':function(){const _0x233ef9=_0x51227c;return _0x198d75[_0x233ef9('0x4ee')]('agent')||!_0x198d75['hasPermission'](0x640)&&!_0x198d75[_0x233ef9('0x4ee')](_0x233ef9('0xf45'));}}),_0x22f3e1[_0x51227c('0x265e')](_0x51227c('0xd56'),{'id':0x6a4,'title':_0x51227c('0x163c'),'translate':_0x51227c('0x271f'),'icon':_0x51227c('0x2864'),'weight':0xe,'license':_0x51227c('0x163c'),'hidden':function(){const _0x559ee5=_0x51227c;return!_0x5874c7[_0x559ee5('0x163c')]||_0x198d75[_0x559ee5('0x4ee')]('agent')||!_0x198d75[_0x559ee5('0x26b5')](_0x5561b3(this))&&!_0x198d75[_0x559ee5('0x4ee')](_0x559ee5('0xf45'));}}),_0x22f3e1['saveItem']('apps.jscripty.projects',{'id':0x6a5,'title':_0x51227c('0x70c'),'route':_0x51227c('0xf34'),'translate':_0x51227c('0xa32'),'state':'app.jscripty.projects','weight':0x1,'hidden':function(){const _0x1f0aa9=_0x51227c;return _0x198d75[_0x1f0aa9('0x4ee')]('agent')||!_0x198d75[_0x1f0aa9('0x1709')](0x6a5)&&!_0x198d75[_0x1f0aa9('0x4ee')](_0x1f0aa9('0xf45'));}}),_0x22f3e1[_0x51227c('0x265e')](_0x51227c('0x1dc5'),{'id':0x708,'title':_0x51227c('0x81e'),'translate':_0x51227c('0xe00'),'icon':_0x51227c('0xbb3'),'weight':0x12,'hidden':function(){const _0x75131b=_0x51227c;return _0x198d75['hasRole']('agent')||!_0x198d75[_0x75131b('0x26b5')](_0x5561b3(this))&&!_0x198d75[_0x75131b('0x4ee')](_0x75131b('0xf45'));}}),_0x22f3e1['saveItem'](_0x51227c('0x2118'),{'id':0x709,'title':_0x51227c('0x2443'),'route':_0x51227c('0x1674'),'translate':_0x51227c('0x1bae'),'state':_0x51227c('0x21aa'),'weight':0x1,'hidden':function(){const _0x12897b=_0x51227c;return _0x198d75[_0x12897b('0x4ee')](_0x12897b('0x18c4'))||!_0x198d75['hasPermission'](0x709)&&!_0x198d75['hasRole'](_0x12897b('0xf45'));}}),_0x22f3e1[_0x51227c('0x265e')]('apps.video',{'id':0x7d0,'title':_0x51227c('0x1a3c'),'translate':_0x51227c('0x1c5a'),'icon':'icon-video','weight':0xc,'license':_0x51227c('0xcb7'),'hidden':function(){const _0x5705ff=_0x51227c;return!_0x5874c7[_0x5705ff('0xcb7')]||_0x198d75[_0x5705ff('0x4ee')](_0x5705ff('0x18c4'))||!_0x198d75[_0x5705ff('0x26b5')](_0x5561b3(this))&&!_0x198d75[_0x5705ff('0x4ee')](_0x5705ff('0xf45'));}}),_0x22f3e1[_0x51227c('0x265e')](_0x51227c('0x579'),{'id':0x7d1,'title':'ScreenRecordings','route':_0x51227c('0x1520'),'translate':_0x51227c('0x14e7'),'state':_0x51227c('0x2554'),'weight':0x1,'permissions':{'association':![],'loading':!![]},'hidden':function(){const _0x36510d=_0x51227c;return _0x198d75['hasRole'](_0x36510d('0x18c4'))||!_0x198d75[_0x36510d('0x1709')](0x7d1)&&!_0x198d75[_0x36510d('0x4ee')](_0x36510d('0xf45'));}}),_0x22f3e1[_0x51227c('0x265e')](_0x51227c('0x7b9'),{'id':0x834,'title':_0x51227c('0x1d5c'),'translate':_0x51227c('0xd75'),'icon':'icon-whatsapp','weight':0xb,'license':_0x51227c('0xe7c'),'hidden':function(){const _0x2530f2=_0x51227c;return!_0x5874c7[_0x2530f2('0xe7c')]||_0x198d75['hasRole']('agent')||!_0x198d75[_0x2530f2('0x26b5')](_0x5561b3(this))&&!_0x198d75[_0x2530f2('0x4ee')]('admin');}}),_0x22f3e1[_0x51227c('0x265e')]('apps.whatsapp.whatsappQueues',{'id':0x835,'title':_0x51227c('0x1f58'),'route':_0x51227c('0x1d53'),'translate':_0x51227c('0x659'),'state':_0x51227c('0xe8e'),'weight':0x1,'channel':'whatsapp','hidden':function(){const _0x6c08e9=_0x51227c;return _0x198d75['hasRole'](_0x6c08e9('0x18c4'))||!_0x198d75[_0x6c08e9('0x1709')](0x835)&&!_0x198d75[_0x6c08e9('0x4ee')](_0x6c08e9('0xf45'));}}),_0x22f3e1[_0x51227c('0x265e')]('apps.whatsapp.whatsappAccounts',{'id':0x836,'title':_0x51227c('0x95f'),'route':_0x51227c('0x2295'),'translate':_0x51227c('0x16b8'),'state':_0x51227c('0xf66'),'weight':0x1,'channel':_0x51227c('0xe7c'),'hidden':function(){const _0x1f9705=_0x51227c;return _0x198d75[_0x1f9705('0x4ee')](_0x1f9705('0x18c4'))||!_0x198d75[_0x1f9705('0x1709')](0x836)&&!_0x198d75[_0x1f9705('0x4ee')](_0x1f9705('0xf45'));}}),_0x22f3e1['saveItem']('apps.whatsapp.realtime',{'id':0x83e,'title':_0x51227c('0x43c'),'route':'','translate':_0x51227c('0x2051'),'state':'app.whatsapp.realtime','weight':0x1,'permissions':{'association':![],'crud':![]},'hidden':function(){const _0x26e5d7=_0x51227c;return _0x198d75['hasRole'](_0x26e5d7('0x18c4'))||!_0x198d75[_0x26e5d7('0x1709')](0x83e)&&!_0x198d75['hasRole'](_0x26e5d7('0xf45'));}}),_0x22f3e1[_0x51227c('0x1c16')](),_0x4be31b[_0x51227c('0x265e')](_0x51227c('0x1812'),{'title':_0x51227c('0x140b'),'group':!![],'weight':0x1}),_0x4be31b['saveItem'](_0x51227c('0x13ca'),{'id':0x64,'title':_0x51227c('0x1345'),'translate':_0x51227c('0xa4'),'icon':_0x51227c('0x8c6'),'weight':0x1}),_0x4be31b[_0x51227c('0x265e')]('apps.home.dashboard',{'id':0x65,'title':_0x51227c('0x10f'),'translate':_0x51227c('0x4cc'),'state':_0x51227c('0xdb9'),'view':'dashboard','icon':'icon-tile-four','iconClass':_0x51227c('0x1fb7'),'weight':0x1,'hidden':function(){const _0x571bcb=_0x51227c;return!_0x198d75[_0x571bcb('0x1709')](0x65);}}),_0x4be31b[_0x51227c('0x265e')](_0x51227c('0x1ee5'),{'id':0x66,'title':'Contacts','translate':_0x51227c('0x90e'),'state':_0x51227c('0x206c'),'view':_0x51227c('0x206c'),'icon':_0x51227c('0xdc7'),'iconClass':_0x51227c('0xb28'),'weight':0x2,'hidden':function(){const _0x57cc17=_0x51227c;return!_0x5874c7['cm']||!_0x198d75[_0x57cc17('0x1709')](0x66);}}),_0x4be31b[_0x51227c('0x265e')](_0x51227c('0x461'),{'id':0x67,'title':_0x51227c('0xe64'),'translate':'DASHBOARDS.MYCONTACTS','state':_0x51227c('0x17cd'),'view':'mycontacts','icon':_0x51227c('0x166'),'iconClass':_0x51227c('0xb28'),'weight':0x3,'hidden':function(){const _0x96192f=_0x51227c;return!_0x5874c7['cm']||!_0x198d75[_0x96192f('0x1709')](0x67);}}),_0x4be31b['saveItem']('apps.home.scheduled',{'id':0x71,'title':_0x51227c('0x940'),'translate':_0x51227c('0xfc5'),'state':_0x51227c('0x15ae'),'view':_0x51227c('0x15ae'),'icon':_0x51227c('0x1341'),'iconClass':_0x51227c('0x14a7'),'weight':0x3,'hidden':function(){const _0x14164d=_0x51227c;return!_0x5874c7[_0x14164d('0x14be')]||!_0x198d75[_0x14164d('0x1709')](0x71);}}),_0x4be31b['saveItem']('apps.home.voice',{'id':0x6e,'title':_0x51227c('0x287c'),'translate':_0x51227c('0x1a3d'),'state':_0x51227c('0x1bc3'),'view':_0x51227c('0x1bc3'),'icon':_0x51227c('0x22d4'),'iconClass':_0x51227c('0xefb'),'weight':0x4,'hidden':function(){const _0x4551dd=_0x51227c;return!_0x5874c7[_0x4551dd('0x1bc3')]||!_0x198d75[_0x4551dd('0x1709')](0x6e);}}),_0x4be31b[_0x51227c('0x265e')](_0x51227c('0x19c'),{'id':0x6f,'title':_0x51227c('0x284a'),'translate':_0x51227c('0x218d'),'state':_0x51227c('0x23e8'),'view':_0x51227c('0x23e8'),'icon':'icon-phone-missed','iconClass':_0x51227c('0xab2'),'weight':0x5,'hidden':function(){const _0x3dba9c=_0x51227c;return!_0x5874c7['voice']||!_0x198d75[_0x3dba9c('0x1709')](0x6f);}}),_0x4be31b[_0x51227c('0x265e')](_0x51227c('0x816'),{'id':0x68,'title':_0x51227c('0x1faf'),'translate':_0x51227c('0x1007'),'state':'recordings','view':_0x51227c('0x227b'),'icon':_0x51227c('0x239e'),'iconClass':_0x51227c('0x1f4b'),'weight':0x6,'hidden':function(){const _0x5b2cdc=_0x51227c;return!_0x5874c7[_0x5b2cdc('0x1bc3')]||!_0x198d75[_0x5b2cdc('0x1709')](0x68);}}),_0x4be31b[_0x51227c('0x265e')](_0x51227c('0x147e'),{'id':0x69,'title':_0x51227c('0x25c0'),'translate':_0x51227c('0x252d'),'state':_0x51227c('0x1800'),'view':_0x51227c('0x1800'),'icon':_0x51227c('0x444'),'iconClass':_0x51227c('0xa79'),'weight':0x7,'hidden':function(){const _0x47e328=_0x51227c;return!_0x5874c7[_0x47e328('0x1800')]||!_0x198d75[_0x47e328('0x1709')](0x69);}}),_0x4be31b[_0x51227c('0x265e')](_0x51227c('0x427'),{'id':0x6a,'title':_0x51227c('0x5f0'),'translate':'DASHBOARDS.MAIL','state':_0x51227c('0x2030'),'view':_0x51227c('0x2030'),'icon':_0x51227c('0xedc'),'iconClass':_0x51227c('0x1873'),'weight':0x8,'hidden':function(){const _0x4e24fd=_0x51227c;return!_0x5874c7[_0x4e24fd('0x2030')]||!_0x198d75['hasPermission'](0x6a);}}),_0x4be31b[_0x51227c('0x265e')](_0x51227c('0xf0a'),{'id':0x6b,'title':'Sms','translate':'DASHBOARDS.SMS','state':'sms','view':'sms','icon':'icon-message-text','iconClass':'orange-fg','weight':0x9,'hidden':function(){const _0x3cd41c=_0x51227c;return!_0x5874c7['messaging']||!_0x198d75[_0x3cd41c('0x1709')](0x6b);}}),_0x4be31b[_0x51227c('0x265e')](_0x51227c('0x1cf0'),{'id':0x6c,'title':_0x51227c('0x2258'),'translate':'DASHBOARDS.OPENCHANNEL','state':_0x51227c('0xb18'),'view':_0x51227c('0xb18'),'icon':_0x51227c('0x1817'),'iconClass':_0x51227c('0x2328'),'weight':0xa,'hidden':function(){const _0x31afed=_0x51227c;return!_0x5874c7[_0x31afed('0xb18')]||!_0x198d75['hasPermission'](0x6c);}}),_0x4be31b['saveItem']('apps.home.fax',{'id':0x6d,'title':'Fax','translate':'DASHBOARDS.FAX','state':_0x51227c('0x2104'),'view':'fax','icon':'icon-deskphone','iconClass':_0x51227c('0x1127'),'weight':0xb,'hidden':function(){const _0x54310d=_0x51227c;return!_0x5874c7[_0x54310d('0x2104')]||!_0x198d75[_0x54310d('0x1709')](0x6d);}}),_0x4be31b['saveItem'](_0x51227c('0xe27'),{'id':0x72,'title':_0x51227c('0x1d5c'),'translate':_0x51227c('0x1ff6'),'state':_0x51227c('0xe7c'),'view':_0x51227c('0xe7c'),'icon':'icon-whatsapp','iconClass':_0x51227c('0x1775'),'weight':0xc,'hidden':function(){const _0x5c4380=_0x51227c;return!_0x5874c7[_0x5c4380('0xe7c')]||!_0x198d75[_0x5c4380('0x1709')](0x72);}}),_0x5c5b51[_0x51227c('0x12d8')](_0x51227c('0x59e'),function(_0x1d1f84){const _0x45b4d0=_0x51227c;_0x1d1f84[_0x45b4d0('0x234d')][_0x45b4d0('0xfb2')]===_0x5c5b51['$id']&&_0x29c316[_0x45b4d0('0x1c04')]('msSplashScreen::remove');});}const _0x87323=_0x1011fe;;const _0x38f54b=[_0x21d0f5('0x1092'),_0x21d0f5('0x1f34'),_0x21d0f5('0x1c56'),_0x21d0f5('0x22d2'),_0x21d0f5('0x1af9'),'app.quick-panel',_0x21d0f5('0xbc6'),_0x21d0f5('0xfcd'),_0x21d0f5('0xa59'),'app.staff',_0x21d0f5('0x15ab'),'app.voice',_0x21d0f5('0xbb2'),_0x21d0f5('0x265b'),_0x21d0f5('0x1335'),_0x21d0f5('0xb2d'),'app.fax','app.tools',_0x21d0f5('0x159c'),_0x21d0f5('0x578'),'app.integrations',_0x21d0f5('0x515'),_0x21d0f5('0x1f49'),_0x21d0f5('0x21a6'),'app.jscripty','app.marketplace',_0x21d0f5('0x5a2'),_0x21d0f5('0x744'),_0x21d0f5('0x12a4'),'app.login',_0x21d0f5('0x206e'),_0x21d0f5('0x2189'),_0x21d0f5('0xeef')];angular[_0x21d0f5('0x2768')]('motion',_0x38f54b)[_0x21d0f5('0x2729')](_0x21d0f5('0x12a5'),_0x1a180b)[_0x21d0f5('0x53a')](_0xeff34b)[_0x21d0f5('0x23eb')](_0x21d0f5('0xe9d'),_0x17572e)[_0x21d0f5('0xdb4')](_0x21d0f5('0x2663'),_0x4a396c)[_0x21d0f5('0xdb4')]('formatdate',_0x2dd16b)[_0x21d0f5('0x2729')](_0x21d0f5('0x216f'),_0x503448)[_0x21d0f5('0x2729')](_0x21d0f5('0xc9'),_0x52d1ec)[_0x21d0f5('0x2729')]('Sequence',_0x392def)[_0x21d0f5('0x53a')](_0xbd6df4)[_0x21d0f5('0x237a')](_0x4ae286)['factory'](_0x21d0f5('0x1d56'),_0x44ab0d)[_0x21d0f5('0x23eb')]('MainController',_0x87323);},0x1a2c:(_0x35ce1e,_0x1afa67,_0x336e9c)=>{const _0x490116=_0x501cab;var _0x25ea55={'./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 _0x56c599(_0x2cd5f1){var _0x279cd7=_0x3c047f(_0x2cd5f1);return _0x336e9c(_0x279cd7);}function _0x3c047f(_0x505ed1){const _0x4565ab=a0_0xaf0c;if(!_0x336e9c['o'](_0x25ea55,_0x505ed1)){var _0x470792=new Error('Cannot\x20find\x20module\x20\x27'+_0x505ed1+'\x27');_0x470792[_0x4565ab('0x344')]='MODULE_NOT_FOUND';throw _0x470792;}return _0x25ea55[_0x505ed1];}_0x56c599[_0x490116('0xe22')]=function _0x20dfee(){const _0x437959=_0x490116;return Object[_0x437959('0xe22')](_0x25ea55);},_0x56c599[_0x490116('0xa28')]=_0x3c047f,_0x35ce1e['exports']=_0x56c599,_0x56c599['id']=0x1a2c;},0x1666:_0x172eb0=>{const _0x36025c=_0x501cab;'use strict';_0x172eb0[_0x36025c('0x17f7')]=angular;}},0x0,[[0x2069,0x29a,0x301]]]); \ No newline at end of file diff --git a/public/app/main/apps/callysquare/i18n/ar.json b/public/app/main/apps/callysquare/i18n/ar.json index 75d740d..e0603e1 100644 --- a/public/app/main/apps/callysquare/i18n/ar.json +++ b/public/app/main/apps/callysquare/i18n/ar.json @@ -233,6 +233,11 @@ "VARIABLE_ID": "الرقم التعريفى للمتغير", "VARIABLE_VALUE": "قيمه المتغير", "VOICEMAIL": "البريد الصوتي", - "VSWITCH": "تبديل متغير" + "VSWITCH": "تبديل متغير", + "CLIENT_EMAIL": "البريد الإلكتروني للعميل", + "DIALOGFLOWV2": "DialogflowV2", + "DIALOGFLOWV2_LANGUAGE": "لغة", + "DIALOGFLOWV2_PROJECT_ID": "معرف المشروع", + "PRIVATE_KEY": "مفتاح سري" } } diff --git a/public/app/main/apps/callysquare/i18n/cs.json b/public/app/main/apps/callysquare/i18n/cs.json index e3a72a3..c75e6ce 100644 --- a/public/app/main/apps/callysquare/i18n/cs.json +++ b/public/app/main/apps/callysquare/i18n/cs.json @@ -233,6 +233,11 @@ "VARIABLE_ID": "Variable", "VARIABLE_VALUE": "Value", "VOICEMAIL": "Voicemail", - "VSWITCH": "Variable Switch" + "VSWITCH": "Variable Switch", + "CLIENT_EMAIL": "E-mail klienta", + "DIALOGFLOWV2": "DialogflowV2", + "DIALOGFLOWV2_LANGUAGE": "Jazyk", + "DIALOGFLOWV2_PROJECT_ID": "ID projektu", + "PRIVATE_KEY": "Soukromý klíč" } } diff --git a/public/app/main/apps/callysquare/i18n/da.json b/public/app/main/apps/callysquare/i18n/da.json index b26b0b4..ac84cc8 100644 --- a/public/app/main/apps/callysquare/i18n/da.json +++ b/public/app/main/apps/callysquare/i18n/da.json @@ -233,6 +233,11 @@ "VARIABLE_ID": "Variable", "VARIABLE_VALUE": "Value", "VOICEMAIL": "Voicemail", - "VSWITCH": "Variable Switch" + "VSWITCH": "Variable Switch", + "CLIENT_EMAIL": "Klientens e-mail", + "DIALOGFLOWV2": "DialogflowV2", + "DIALOGFLOWV2_LANGUAGE": "Sprog", + "DIALOGFLOWV2_PROJECT_ID": "Projekt-id", + "PRIVATE_KEY": "Privat nøgle" } } diff --git a/public/app/main/apps/callysquare/i18n/de.json b/public/app/main/apps/callysquare/i18n/de.json index 6ccdaf5..bebab4c 100644 --- a/public/app/main/apps/callysquare/i18n/de.json +++ b/public/app/main/apps/callysquare/i18n/de.json @@ -233,6 +233,11 @@ "VARIABLE_ID": "Variable", "VARIABLE_VALUE": "Value", "VOICEMAIL": "Voicemail", - "VSWITCH": "Variable Switch" + "VSWITCH": "Variable Switch", + "CLIENT_EMAIL": "Kunden-E-Mail", + "DIALOGFLOWV2": "DialogflowV2", + "DIALOGFLOWV2_LANGUAGE": "Sprache", + "DIALOGFLOWV2_PROJECT_ID": "Projekt-ID", + "PRIVATE_KEY": "Privat Schlüssel" } } diff --git a/public/app/main/apps/callysquare/i18n/es.json b/public/app/main/apps/callysquare/i18n/es.json index 3fd2a29..08ecb59 100644 --- a/public/app/main/apps/callysquare/i18n/es.json +++ b/public/app/main/apps/callysquare/i18n/es.json @@ -233,6 +233,11 @@ "VARIABLE_ID": "Variable", "VARIABLE_VALUE": "Valor", "VOICEMAIL": "Mensaje de voz", - "VSWITCH": "Interruptor variable" + "VSWITCH": "Interruptor variable", + "CLIENT_EMAIL": "Correo electrónico del cliente", + "DIALOGFLOWV2": "DialogflowV2", + "DIALOGFLOWV2_LANGUAGE": "Idioma", + "DIALOGFLOWV2_PROJECT_ID": "Projecto ID", + "PRIVATE_KEY": "Llave privada" } } diff --git a/public/app/main/apps/callysquare/i18n/et.json b/public/app/main/apps/callysquare/i18n/et.json index b0877b6..c4eafee 100644 --- a/public/app/main/apps/callysquare/i18n/et.json +++ b/public/app/main/apps/callysquare/i18n/et.json @@ -233,6 +233,11 @@ "VARIABLE_ID": "Variable", "VARIABLE_VALUE": "Value", "VOICEMAIL": "Voicemail", - "VSWITCH": "Variable Switch" + "VSWITCH": "Variable Switch", + "CLIENT_EMAIL": "Kliendi e-post", + "DIALOGFLOWV2": "DialoogivoogV2", + "DIALOGFLOWV2_LANGUAGE": "Keel", + "DIALOGFLOWV2_PROJECT_ID": "Projekti ID", + "PRIVATE_KEY": "Privaatne võti" } } diff --git a/public/app/main/apps/callysquare/i18n/fa.json b/public/app/main/apps/callysquare/i18n/fa.json index c783838..239929e 100644 --- a/public/app/main/apps/callysquare/i18n/fa.json +++ b/public/app/main/apps/callysquare/i18n/fa.json @@ -233,6 +233,11 @@ "VARIABLE_ID": "Variable", "VARIABLE_VALUE": "Value", "VOICEMAIL": "Voicemail", - "VSWITCH": "Variable Switch" + "VSWITCH": "Variable Switch", + "CLIENT_EMAIL": "ایمیل مشتری", + "DIALOGFLOWV2": "DialogflowV2", + "DIALOGFLOWV2_LANGUAGE": "زبان", + "DIALOGFLOWV2_PROJECT_ID": "شناسه پروژه", + "PRIVATE_KEY": "کلید خصوصی" } } diff --git a/public/app/main/apps/callysquare/i18n/fi.json b/public/app/main/apps/callysquare/i18n/fi.json index 4ddea17..d78c49a 100644 --- a/public/app/main/apps/callysquare/i18n/fi.json +++ b/public/app/main/apps/callysquare/i18n/fi.json @@ -233,6 +233,11 @@ "VARIABLE_ID": "Variable", "VARIABLE_VALUE": "Value", "VOICEMAIL": "Voicemail", - "VSWITCH": "Variable Switch" + "VSWITCH": "Variable Switch", + "CLIENT_EMAIL": "Asiakkaan sähköposti", + "DIALOGFLOWV2": "DialogflowV2", + "DIALOGFLOWV2_LANGUAGE": "Kieli", + "DIALOGFLOWV2_PROJECT_ID": "Projektin tunnus", + "PRIVATE_KEY": "Yksityinen avain" } } diff --git a/public/app/main/apps/callysquare/i18n/fr.json b/public/app/main/apps/callysquare/i18n/fr.json index 4d87966..305403c 100644 --- a/public/app/main/apps/callysquare/i18n/fr.json +++ b/public/app/main/apps/callysquare/i18n/fr.json @@ -233,6 +233,11 @@ "VARIABLE_ID": "Variable", "VARIABLE_VALUE": "Value", "VOICEMAIL": "Voicemail", - "VSWITCH": "Variable Switch" + "VSWITCH": "Variable Switch", + "CLIENT_EMAIL": "Courriel du client", + "DIALOGFLOWV2": "DialogflowV2", + "DIALOGFLOWV2_LANGUAGE": "Langue", + "DIALOGFLOWV2_PROJECT_ID": "ID du projet", + "PRIVATE_KEY": "Clé privée" } } diff --git a/public/app/main/apps/callysquare/i18n/he.json b/public/app/main/apps/callysquare/i18n/he.json index af1a05f..6388227 100644 --- a/public/app/main/apps/callysquare/i18n/he.json +++ b/public/app/main/apps/callysquare/i18n/he.json @@ -233,6 +233,11 @@ "VARIABLE_ID": " משתנה", "VARIABLE_VALUE": "ערך ", "VOICEMAIL": "הודעה קולית", - "VSWITCH": "בורר משתנים" + "VSWITCH": "בורר משתנים", + "CLIENT_EMAIL": "דוא\"ל לקוח", + "DIALOGFLOWV2": "DialogflowV2", + "DIALOGFLOWV2_LANGUAGE": "שפה", + "DIALOGFLOWV2_PROJECT_ID": "מזהה פרויקט", + "PRIVATE_KEY": "מפתח פרטי" } } diff --git a/public/app/main/apps/callysquare/i18n/hi.json b/public/app/main/apps/callysquare/i18n/hi.json index f884ff1..9ed6d07 100644 --- a/public/app/main/apps/callysquare/i18n/hi.json +++ b/public/app/main/apps/callysquare/i18n/hi.json @@ -233,6 +233,11 @@ "VARIABLE_ID": "Variable", "VARIABLE_VALUE": "Value", "VOICEMAIL": "Voicemail", - "VSWITCH": "Variable Switch" + "VSWITCH": "Variable Switch", + "CLIENT_EMAIL": "ग्राहक ईमेल", + "DIALOGFLOWV2": "DialogflowV2", + "DIALOGFLOWV2_LANGUAGE": "भाषा: हिन्दी", + "DIALOGFLOWV2_PROJECT_ID": "प्रोजेक्ट आईडी", + "PRIVATE_KEY": "निजी चाबी" } } diff --git a/public/app/main/apps/callysquare/i18n/id.json b/public/app/main/apps/callysquare/i18n/id.json index f633bfe..caf1327 100644 --- a/public/app/main/apps/callysquare/i18n/id.json +++ b/public/app/main/apps/callysquare/i18n/id.json @@ -233,6 +233,11 @@ "VARIABLE_ID": "Variabel", "VARIABLE_VALUE": "Nilai", "VOICEMAIL": "Voicemail", - "VSWITCH": "Saklar Variabel" + "VSWITCH": "Saklar Variabel", + "CLIENT_EMAIL": "Email Klien", + "DIALOGFLOWV2": "DialogflowV2", + "DIALOGFLOWV2_LANGUAGE": "Bahasa", + "DIALOGFLOWV2_PROJECT_ID": "ID Proyek", + "PRIVATE_KEY": "Kunci Pribadi" } } diff --git a/public/app/main/apps/callysquare/i18n/it.json b/public/app/main/apps/callysquare/i18n/it.json index b13b65b..5f59f89 100644 --- a/public/app/main/apps/callysquare/i18n/it.json +++ b/public/app/main/apps/callysquare/i18n/it.json @@ -233,6 +233,11 @@ "VARIABLE_ID": "Variabile", "VARIABLE_VALUE": "Valore", "VOICEMAIL": "Casella Vocale", - "VSWITCH": "Switch su Variabile" + "VSWITCH": "Switch su Variabile", + "CLIENT_EMAIL": "Email del cliente", + "DIALOGFLOWV2": "DialogflowV2", + "DIALOGFLOWV2_LANGUAGE": "linguaggio", + "DIALOGFLOWV2_PROJECT_ID": "ID progetto", + "PRIVATE_KEY": "Chiave privata" } } diff --git a/public/app/main/apps/callysquare/i18n/ja.json b/public/app/main/apps/callysquare/i18n/ja.json index 0588fe4..e6b0fa2 100644 --- a/public/app/main/apps/callysquare/i18n/ja.json +++ b/public/app/main/apps/callysquare/i18n/ja.json @@ -233,6 +233,11 @@ "VARIABLE_ID": "変数", "VARIABLE_VALUE": "値", "VOICEMAIL": "ボイスメール", - "VSWITCH": "変数スイッチ" + "VSWITCH": "変数スイッチ", + "CLIENT_EMAIL": "クライアントの電子メール", + "DIALOGFLOWV2": "DialogflowV2", + "DIALOGFLOWV2_LANGUAGE": "言語", + "DIALOGFLOWV2_PROJECT_ID": "プロジェクトID", + "PRIVATE_KEY": "秘密鍵" } } diff --git a/public/app/main/apps/callysquare/i18n/ko.json b/public/app/main/apps/callysquare/i18n/ko.json index 61e1b25..7e43586 100644 --- a/public/app/main/apps/callysquare/i18n/ko.json +++ b/public/app/main/apps/callysquare/i18n/ko.json @@ -233,6 +233,11 @@ "VARIABLE_ID": "변수 ID", "VARIABLE_VALUE": "변수 값", "VOICEMAIL": "보이스메일", - "VSWITCH": "변수 전환" + "VSWITCH": "변수 전환", + "CLIENT_EMAIL": "클라이언트 이메일", + "DIALOGFLOWV2": "DialogflowV2", + "DIALOGFLOWV2_LANGUAGE": "언어", + "DIALOGFLOWV2_PROJECT_ID": "프로젝트 ID", + "PRIVATE_KEY": "개인 키" } } diff --git a/public/app/main/apps/callysquare/i18n/lt.json b/public/app/main/apps/callysquare/i18n/lt.json index c761d4f..ebcfa69 100644 --- a/public/app/main/apps/callysquare/i18n/lt.json +++ b/public/app/main/apps/callysquare/i18n/lt.json @@ -233,6 +233,11 @@ "VARIABLE_ID": "Kintamasis", "VARIABLE_VALUE": "Reikšmė", "VOICEMAIL": "Balso paštas", - "VSWITCH": "Kintamas perjungimas" + "VSWITCH": "Kintamas perjungimas", + "CLIENT_EMAIL": "Kliento el. Paštas", + "DIALOGFLOWV2": "DialogflowV2", + "DIALOGFLOWV2_LANGUAGE": "Kalba", + "DIALOGFLOWV2_PROJECT_ID": "Projekto ID", + "PRIVATE_KEY": "Privatus raktas" } } diff --git a/public/app/main/apps/callysquare/i18n/lv.json b/public/app/main/apps/callysquare/i18n/lv.json index d6948c6..c7e09a9 100644 --- a/public/app/main/apps/callysquare/i18n/lv.json +++ b/public/app/main/apps/callysquare/i18n/lv.json @@ -233,6 +233,11 @@ "VARIABLE_ID": "Mainīgais", "VARIABLE_VALUE": "Vērtība", "VOICEMAIL": "Balss pasts", - "VSWITCH": "Mainīgā nomaiņa" + "VSWITCH": "Mainīgā nomaiņa", + "CLIENT_EMAIL": "Klienta e-pasts", + "DIALOGFLOWV2": "DialogflowV2", + "DIALOGFLOWV2_LANGUAGE": "Valoda", + "DIALOGFLOWV2_PROJECT_ID": "Projekta ID", + "PRIVATE_KEY": "Privātā atslēga" } } diff --git a/public/app/main/apps/callysquare/i18n/nl.json b/public/app/main/apps/callysquare/i18n/nl.json index 573803d..100efda 100644 --- a/public/app/main/apps/callysquare/i18n/nl.json +++ b/public/app/main/apps/callysquare/i18n/nl.json @@ -233,6 +233,11 @@ "VARIABLE_ID": "Variable", "VARIABLE_VALUE": "Value", "VOICEMAIL": "Voicemail", - "VSWITCH": "Variable Switch" + "VSWITCH": "Variable Switch", + "CLIENT_EMAIL": "E-mail van de klant", + "DIALOGFLOWV2": "DialogflowV2", + "DIALOGFLOWV2_LANGUAGE": "Taal", + "DIALOGFLOWV2_PROJECT_ID": "Project-ID", + "PRIVATE_KEY": "Prive sleutel" } } diff --git a/public/app/main/apps/callysquare/i18n/no.json b/public/app/main/apps/callysquare/i18n/no.json index 28ea604..a3648aa 100644 --- a/public/app/main/apps/callysquare/i18n/no.json +++ b/public/app/main/apps/callysquare/i18n/no.json @@ -233,6 +233,11 @@ "VARIABLE_ID": "Variable", "VARIABLE_VALUE": "Value", "VOICEMAIL": "Voicemail", - "VSWITCH": "Variable Switch" + "VSWITCH": "Variable Switch", + "CLIENT_EMAIL": "Klientens e-post", + "DIALOGFLOWV2": "DialogflowV2", + "DIALOGFLOWV2_LANGUAGE": "Språk", + "DIALOGFLOWV2_PROJECT_ID": "Prosjekt-ID", + "PRIVATE_KEY": "Privat nøkkel" } } diff --git a/public/app/main/apps/callysquare/i18n/pl.json b/public/app/main/apps/callysquare/i18n/pl.json index bcae155..b760219 100644 --- a/public/app/main/apps/callysquare/i18n/pl.json +++ b/public/app/main/apps/callysquare/i18n/pl.json @@ -233,6 +233,11 @@ "VARIABLE_ID": "Zmienna", "VARIABLE_VALUE": "Wartość", "VOICEMAIL": "Poczta głosowa", - "VSWITCH": "Przełącznik" + "VSWITCH": "Przełącznik", + "CLIENT_EMAIL": "E-mail klienta", + "DIALOGFLOWV2": "DialogflowV2", + "DIALOGFLOWV2_LANGUAGE": "Język", + "DIALOGFLOWV2_PROJECT_ID": "Identyfikator projektu", + "PRIVATE_KEY": "Prywatny klucz" } } diff --git a/public/app/main/apps/callysquare/i18n/pt-BR.json b/public/app/main/apps/callysquare/i18n/pt-BR.json index ee67e81..873e14d 100644 --- a/public/app/main/apps/callysquare/i18n/pt-BR.json +++ b/public/app/main/apps/callysquare/i18n/pt-BR.json @@ -233,6 +233,11 @@ "VARIABLE_ID": "Variável", "VARIABLE_VALUE": "Valor", "VOICEMAIL": "Correio de voz", - "VSWITCH": "Variable Switch" + "VSWITCH": "Variable Switch", + "CLIENT_EMAIL": "Email do cliente", + "DIALOGFLOWV2": "DialogflowV2", + "DIALOGFLOWV2_LANGUAGE": "Língua", + "DIALOGFLOWV2_PROJECT_ID": "ID do projeto", + "PRIVATE_KEY": "Chave privada" } } diff --git a/public/app/main/apps/callysquare/i18n/pt-PT.json b/public/app/main/apps/callysquare/i18n/pt-PT.json index c7496c9..25d5cb7 100644 --- a/public/app/main/apps/callysquare/i18n/pt-PT.json +++ b/public/app/main/apps/callysquare/i18n/pt-PT.json @@ -233,6 +233,11 @@ "VARIABLE_ID": "Variable", "VARIABLE_VALUE": "Value", "VOICEMAIL": "Voicemail", - "VSWITCH": "Variable Switch" + "VSWITCH": "Variable Switch", + "CLIENT_EMAIL": "Email do cliente", + "DIALOGFLOWV2": "DialogflowV2", + "DIALOGFLOWV2_LANGUAGE": "Língua", + "DIALOGFLOWV2_PROJECT_ID": "ID do projeto", + "PRIVATE_KEY": "Chave privada" } } diff --git a/public/app/main/apps/callysquare/i18n/ru.json b/public/app/main/apps/callysquare/i18n/ru.json index 73f5c2e..b6db3dc 100644 --- a/public/app/main/apps/callysquare/i18n/ru.json +++ b/public/app/main/apps/callysquare/i18n/ru.json @@ -233,6 +233,11 @@ "VARIABLE_ID": "Variable", "VARIABLE_VALUE": "Value", "VOICEMAIL": "Voicemail", - "VSWITCH": "Variable Switch" + "VSWITCH": "Variable Switch", + "CLIENT_EMAIL": "Электронная почта клиента", + "DIALOGFLOWV2": "DialogflowV2", + "DIALOGFLOWV2_LANGUAGE": "Язык", + "DIALOGFLOWV2_PROJECT_ID": "ID проекта", + "PRIVATE_KEY": "Закрытый ключ" } } diff --git a/public/app/main/apps/callysquare/i18n/sv.json b/public/app/main/apps/callysquare/i18n/sv.json index a8000bf..5518b47 100644 --- a/public/app/main/apps/callysquare/i18n/sv.json +++ b/public/app/main/apps/callysquare/i18n/sv.json @@ -233,6 +233,11 @@ "VARIABLE_ID": "Variabel-id", "VARIABLE_VALUE": "Variabelvärde", "VOICEMAIL": "Röstbrevlåda", - "VSWITCH": "Variabel Switch" + "VSWITCH": "Variabel Switch", + "CLIENT_EMAIL": "Kundens e-post", + "DIALOGFLOWV2": "DialogflowV2", + "DIALOGFLOWV2_LANGUAGE": "Språk", + "DIALOGFLOWV2_PROJECT_ID": "Projekt-ID", + "PRIVATE_KEY": "Privat nyckel" } } diff --git a/public/app/main/apps/callysquare/i18n/tr.json b/public/app/main/apps/callysquare/i18n/tr.json index af24a14..51084a1 100644 --- a/public/app/main/apps/callysquare/i18n/tr.json +++ b/public/app/main/apps/callysquare/i18n/tr.json @@ -233,6 +233,11 @@ "VARIABLE_ID": "Variable", "VARIABLE_VALUE": "Value", "VOICEMAIL": "Voicemail", - "VSWITCH": "Variable Switch" + "VSWITCH": "Variable Switch", + "CLIENT_EMAIL": "Müşteri E-postası", + "DIALOGFLOWV2": "DialogflowV2", + "DIALOGFLOWV2_LANGUAGE": "Dil", + "DIALOGFLOWV2_PROJECT_ID": "Proje kimliği", + "PRIVATE_KEY": "Özel anahtar" } } diff --git a/public/app/main/apps/callysquare/i18n/zh-CN.json b/public/app/main/apps/callysquare/i18n/zh-CN.json index 33f60b6..cac1b66 100644 --- a/public/app/main/apps/callysquare/i18n/zh-CN.json +++ b/public/app/main/apps/callysquare/i18n/zh-CN.json @@ -233,6 +233,11 @@ "VARIABLE_ID": "Variable", "VARIABLE_VALUE": "Value", "VOICEMAIL": "Voicemail", - "VSWITCH": "Variable Switch" + "VSWITCH": "Variable Switch", + "CLIENT_EMAIL": "客户电邮", + "DIALOGFLOWV2": "DialogflowV2", + "DIALOGFLOWV2_LANGUAGE": "语言", + "DIALOGFLOWV2_PROJECT_ID": "专案编号", + "PRIVATE_KEY": "私钥" } } diff --git a/public/app/main/apps/callysquare/i18n/zh-TW.json b/public/app/main/apps/callysquare/i18n/zh-TW.json index 488f611..f8c0a4f 100644 --- a/public/app/main/apps/callysquare/i18n/zh-TW.json +++ b/public/app/main/apps/callysquare/i18n/zh-TW.json @@ -233,6 +233,11 @@ "VARIABLE_ID": "Variable", "VARIABLE_VALUE": "Value", "VOICEMAIL": "Voicemail", - "VSWITCH": "Variable Switch" + "VSWITCH": "Variable Switch", + "CLIENT_EMAIL": "客戶電郵", + "DIALOGFLOWV2": "DialogflowV2", + "DIALOGFLOWV2_LANGUAGE": "語言", + "DIALOGFLOWV2_PROJECT_ID": "專案編號", + "PRIVATE_KEY": "私鑰" } } diff --git a/public/app/main/apps/chat/i18n/ar.json b/public/app/main/apps/chat/i18n/ar.json index 354e0f7..ff7a7ca 100644 --- a/public/app/main/apps/chat/i18n/ar.json +++ b/public/app/main/apps/chat/i18n/ar.json @@ -83,7 +83,10 @@ "BOTNAME_REQUIRED": "حقل الزامي", "SECRETACCESSKEY_REQUIRED": "حقل الزامي", "MANDATORYDISPOSITIONPAUSEID_REQUIRED": "حقل الزامي", - "VIDAOOAPIKEY_REQUIRED": "حقل الزامي" + "VIDAOOAPIKEY_REQUIRED": "حقل الزامي", + "CLIENTEMAIL_REQUIRED": "حقل الزامي", + "PRIVATEKEY_REQUIRED": "حقل الزامي", + "PROJECTID_REQUIRED": "حقل الزامي" }, "HELP": { "AGENTIDENTIFIER": "محدد هوية وكيل خدمه العملاء", @@ -416,7 +419,7 @@ "MESSAGEFONTSIZE": "حجم خط الرسالة", "AGENTTRANSFER": "نقل عامل", "AGENTTRANSFERTIMEOUT": "عامل نقل مهلة", - "DIALOGFLOW": "Dialogflow (deprecated)", + "DIALOGFLOW": "Dialogflow", "EDIT_DIALOGFLOW": "تحرير Dialogflow", "LANGUAGE": "لغة", "QUEUETRANSFER": "نقل قائمة الانتظار", @@ -450,6 +453,11 @@ "VIDAOOAPIKEY": "مفتاح Vidaoo Api", "VIDAOOESCALATION": "ابدأ مكالمة فيديو", "VIDAOOSESSION": "ابدأ مكالمة فيديو", - "VIDEO": "فيديو" + "VIDEO": "فيديو", + "CLIENTEMAIL": "البريد الإلكتروني للعميل", + "DIALOGFLOWV2": "Dialogflow V2", + "EDIT_DIALOGFLOWV2": "تحرير Dialogflow V2", + "PRIVATEKEY": "مفتاح سري", + "PROJECTID": "معرف المشروع" } } diff --git a/public/app/main/apps/chat/i18n/cs.json b/public/app/main/apps/chat/i18n/cs.json index fa00001..280991e 100644 --- a/public/app/main/apps/chat/i18n/cs.json +++ b/public/app/main/apps/chat/i18n/cs.json @@ -20,7 +20,7 @@ "WELCOMEMESSAGE": "Welcome Message", "LANGUAGE": "Language", "EDIT_DIALOGFLOW": "Edit Dialogflow", - "DIALOGFLOW": "Dialogflow (deprecated)", + "DIALOGFLOW": "Dialogflow", "BACKGROUNDCOLOR": "Background Color", "MESSAGEFONTSIZE": "Message Font Size", "TAG": "Tag", @@ -241,7 +241,10 @@ "WAITINGTITLE_MAX_LENGTH": "The value must have a maximum length equal to {{max}}", "RATINGSTARSNUMBER_MUST_BE_LESS_THAN_OR_EQUAL_TO": "The value must be less than or equal to", "MANDATORYDISPOSITIONPAUSEID_REQUIRED": "Povinné pole", - "VIDAOOAPIKEY_REQUIRED": "Povinné pole" + "VIDAOOAPIKEY_REQUIRED": "Povinné pole", + "CLIENTEMAIL_REQUIRED": "Povinné pole", + "PRIVATEKEY_REQUIRED": "Povinné pole", + "PROJECTID_REQUIRED": "Povinné pole" }, "CM_FIELD": "Contact Manager Field", "CHATPROACTIVEACTIONS": "Proactive Actions", @@ -450,6 +453,11 @@ "VIDAOOAPIKEY": "Vidaoo Api Key", "VIDAOOESCALATION": "Zahajte videohovor", "VIDAOOSESSION": "Zahajte videohovor", - "VIDEO": "Video" + "VIDEO": "Video", + "CLIENTEMAIL": "E-mail klienta", + "DIALOGFLOWV2": "Dialogflow V2", + "EDIT_DIALOGFLOWV2": "Upravit Dialogflow V2", + "PRIVATEKEY": "Soukromý klíč", + "PROJECTID": "ID projektu" } } diff --git a/public/app/main/apps/chat/i18n/da.json b/public/app/main/apps/chat/i18n/da.json index 10fb9d8..c52482f 100644 --- a/public/app/main/apps/chat/i18n/da.json +++ b/public/app/main/apps/chat/i18n/da.json @@ -139,7 +139,10 @@ "BOTNAME_REQUIRED": "Obligatorisk felt", "SECRETACCESSKEY_REQUIRED": "Obligatorisk felt", "MANDATORYDISPOSITIONPAUSEID_REQUIRED": "Obligatorisk felt", - "VIDAOOAPIKEY_REQUIRED": "Obligatorisk felt" + "VIDAOOAPIKEY_REQUIRED": "Obligatorisk felt", + "CLIENTEMAIL_REQUIRED": "Obligatorisk felt", + "PRIVATEKEY_REQUIRED": "Obligatorisk felt", + "PROJECTID_REQUIRED": "Obligatorisk felt" }, "CM_FIELD": "Kontakt Manager mark", "CHATPROACTIVEACTIONS": "Proaktive handlinger", @@ -416,7 +419,7 @@ "MESSAGEFONTSIZE": "Besked skrifttype størrelse", "AGENTTRANSFER": "Agent Overførsel", "AGENTTRANSFERTIMEOUT": "Agent Transfer Timeout", - "DIALOGFLOW": "Dialogflow (deprecated)", + "DIALOGFLOW": "Dialogflow", "EDIT_DIALOGFLOW": "Rediger Dialog flow", "LANGUAGE": "Sprog", "QUEUETRANSFER": "Køoverførsel", @@ -450,6 +453,11 @@ "VIDAOOAPIKEY": "Vidaoo Api Key", "VIDAOOESCALATION": "Start videoopkald", "VIDAOOSESSION": "Start videoopkald", - "VIDEO": "video" + "VIDEO": "video", + "CLIENTEMAIL": "Klientens e-mail", + "DIALOGFLOWV2": "Dialogflow V2", + "EDIT_DIALOGFLOWV2": "Rediger Dialogflow V2", + "PRIVATEKEY": "Privat nøgle", + "PROJECTID": "Projekt-id" } } diff --git a/public/app/main/apps/chat/i18n/de.json b/public/app/main/apps/chat/i18n/de.json index 4c4e677..6f94e48 100644 --- a/public/app/main/apps/chat/i18n/de.json +++ b/public/app/main/apps/chat/i18n/de.json @@ -2,111 +2,111 @@ "CHAT": { "AMAZONLEX": "Amazon Lex", "TEXT": "Text", - "TIMES": "Die Anzahl der Zeiten pro Interaktion", - "EDIT_AUTOREPLY": "Bearbeiten Sie automatische Antwort", + "TIMES": "Anzahl der Male pro Interaktion", + "EDIT_AUTOREPLY": "Automatische Antwort bearbeiten", "AUTOREPLY": "Automatische Antwort", - "NEW_CHATDISPOSITION": "Neuer Chat Disposition", - "ENABLECUSTOMERATTACHMENT": "Kunden Anlagen aktivieren", + "NEW_CHATDISPOSITION": "Neue Chat-Disposition", + "ENABLECUSTOMERATTACHMENT": "Kundenanhänge aktivieren", "OFFLINE_CHAT_BUTTON": "'Offline Chat'-Taste", "OFFLINESTATUS": "Offline Status", "NAME": "Name", - "CHATQUEUES": "Chat-warteschlangen", - "SEARCH_FOR_ANYONE": "Suche für Jedermann", + "CHATQUEUES": "Chat-Warteschlangen", + "SEARCH_FOR_ANYONE": "Suche", "STRATEGY": "Strategie", "AGENT_TIMEOUT": "Agent Timeout", "DESCRIPTION": "Beschreibung", - "KEY": "Schlüssel", - "ALIAS": "Alias", + "KEY": "Key", + "ALIAS": "Alias-Name", "VARIABLE": "Variable", "INTERVAL": "Intervall", - "EDIT_CLOSE": "Bearbeiten Schließen", + "EDIT_CLOSE": "Bearbeiten Beenden", "TIMEZONE": "Zeitzone", "MESSAGE": "Nachricht", - "ADVANCED": "Erweiterte", - "FORWARDTRANSCRIPT": "Vorwärts Abschrift", - "FORWARDTRANSCRIPTMESSAGE": "Transkript Nachricht weiterleiten", - "SKIPMESSAGEBUTTON": "Taste \"Nachricht überspringen", + "ADVANCED": "Erweitert", + "FORWARDTRANSCRIPT": "Transkript weiterleiten", + "FORWARDTRANSCRIPTMESSAGE": "Transkript-Nachricht weiterleiten", + "SKIPMESSAGEBUTTON": "Taste \"Nachricht\" überspringen", "EDIT_MESSAGE": "Nachricht bearbeiten", - "CONDITION_AGREEMENT": "Zustand Abkommen", + "CONDITION_AGREEMENT": "Bedingungsvereinbarung", "NONE": "Keine", "PRIORITY": "Priorität", "ONLINESTATUS": "Online Status", - "UNMANAGEDSTATUS": "Verwalteter Status", - "AUTOCLOSE": "Aktivieren Autoclose", - "ENABLEUNMANAGEDNOTE": "Aktivieren Sie Nicht verwaltete Nachricht", + "UNMANAGEDSTATUS": "Nicht verwalteter Status", + "AUTOCLOSE": "Automatisches Schließen aktivieren", + "ENABLEUNMANAGEDNOTE": "Nicht verwaltete Nachricht aktivieren", "UNMANAGEDMESSAGE": "Nachricht", "SKIPUNMANAGED": "Nachricht überspringen", "SENDUNMANAGED": "Nachricht senden", - "WEBSITESCRIPT": "Website Script", + "WEBSITESCRIPT": "Website-Script", "DELETE_OFFLINEMESSAGE": "Löschen", "OFFLINEMESSAGES": "Offline Nachrichten", - "FORWARD_OFFLINE": "Freuen Offline", + "FORWARD_OFFLINE": "Offline weiterleiten", "SHOW_OFFLINEMESSAGE": "Zeigen", - "FORWARD_OFFLINE_ADDRESS": "Freuen Offline Adresse", - "CLOSINGFORM": "Schließen der Form", - "ENABLERATING": "Aktivieren Bewertung", - "ENABLECUSTOMERWRITING": "Dem Kunden schriftlich vor akzeptant", - "ENABLEFEEDBACK": "Aktivieren Sie Feedback", - "RATINGTYPE": "Bewertung Typ", + "FORWARD_OFFLINE_ADDRESS": "Offline-Adresse weiterleiten", + "CLOSINGFORM": "Formular schließen", + "ENABLERATING": "Bewertung aktivieren", + "ENABLECUSTOMERWRITING": "Dem Kunden \"schreiben\" erlauben, bevor der Agent akzeptiert", + "ENABLEFEEDBACK": "Feedback aktivieren", + "RATINGTYPE": "Rating-Typ", "CLOSINGMESSAGE": "Nachricht schließen", - "CLOSINGMESSAGEBUTTON": "Schließen Taste Nachricht", - "RATINGSTARSNUMBER": "Bewertung Sterne Anzahl", + "CLOSINGMESSAGEBUTTON": "Nachrichtentaste schließen", + "RATINGSTARSNUMBER": "Anzahl der Bewertungssterne", "EDIT_GOTOIF": "Bearbeiten GotoIf", - "CONDITION": "Zustand", - "TRUEPRIORITY": "Wahre Priorität", + "CONDITION": "Bedingung", + "TRUEPRIORITY": "Echte Priorität", "FALSEPRIORITY": "Falsche Priorität", "VALUE": "Wert", - "WEBSITEALIAS": "Website Alias", + "WEBSITEALIAS": "Website-Alias", "ERRORS": { - "TEXT_REQUIRED": "Der Text ist erforderlich", - "SENDUNMANAGED_REQUIRED": "Das Feld ist erforderlich.", - "SENDUNMANAGED_MAX_LENGTH": "Das Feld muss eine maximale Länge von {{max}}", - "SKIPUNMANAGED_MAX_LENGTH": "Das Feld muss eine maximale Länge von {{max}}", - "UNMANAGEDMESSAGE_MAX_LENGTH": "Das Feld muss eine maximale Länge von {{max}}", - "WEBSITEALIAS_MAX_LENGTH": "Alias darf eine maximale Länge von {{max}}", - "AGENT_REQUIRED": "Der Agent ist erforderlich", - "QUEUE_REQUIRED": "Die Warteschlange ist erforderlich", - "CONDITION_REQUIRED": "Der Zustand ist erforderlich", - "PRIORITY_REQUIRED": "Die Priorität ist erforderlich", - "TRUEPRIORITY_REQUIRED": "Die Priorität ist erforderlich", - "FALSEPRIORITY_REQUIRED": "Die Priorität ist erforderlich", - "NAME_REQUIRED": "Der Name ist erforderlich", - "LIST_REQUIRED": "Die Liste ist erforderlich", - "AGENT_TIMEOUT_REQUIRED": "Der Agent Timeout ist erforderlich", - "MOTIONADDRESS_REQUIRED": "Die Adresse ist erforderlich", - "DISPOSITION_REQUIRED": "Die Disposition ist erforderlich", - "MOTIONADDRESS_MUST_VALID_URL": "Die Adresse muss in einem gültigen Format", - "EMAIL_MUST_BE_VALID": "E-Mail muss eine gültige e-mail Adresse", - "ADDRESS_REQUIRED": "Die Adresse ist erforderlich", - "ADDRESS_MUST_VALID_URL": "Die Adresse muss in einem gültigen Format", - "ENQUIRY_FORWARDING_ADDRESS_REQUIRED": "Die Weiterleitung der Anfrage Adresse ist erforderlich", - "ACCEPTURL_MUST_VALID_URL": "Die URL muss in einem gültigen Format", - "TIMEOUT_REQUIRED": "Der Timeout ist erforderlich", - "REJECTURL_MUST_VALID_URL": "Die URL muss in einem gültigen Format", - "CLOSEURL_MUST_VALID_URL": "Die URL muss in einem gültigen Format", - "PRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Die Priorität muss größer als oder gleich", - "TRUEPRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Die wahre Priorität muss größer als oder gleich", - "FALSEPRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Die falsche Priorität muss größer als oder gleich", - "TIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Der Timeout muss größer als oder gleich", - "POLLING_INTERVAL_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Die Abfrage muss größer als oder gleich", - "WAITINGMESSAGE_REQUIRED": "Der Wartende Nachricht ist erforderlich", - "WAITINGTITLE_REQUIRED": "Die Wartenden Titel ist erforderlich", - "KEY_MAX_LENGTH": "Schlüssel muss eine maximale Länge von {{max}}", - "KEY_REQUIRED": "Der Schlüssel ist erforderlich", - "WAITINGMESSAGE_MAX_LENGTH": "Der Wartende Nachricht darf eine maximale Länge von {{max}}", - "WAITINGTITLE_MAX_LENGTH": "Die Wartenden Titel darf eine maximale Länge von {{max}}", - "RATINGSTARSNUMBER_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Die Bewertung Sterne Zahl muss kleiner als oder gleich", - "HEADER_OFFLINE_MAX_LENGTH": "Beim Wert muss es sich um eine maximale Länge von {{max}}", - "OFFLINE_CHAT_BUTTON_MAX_LENGTH": "Beim Wert muss es sich um eine maximale Länge von {{max}}", - "CLOSINGQUESTION_MAX_LENGTH": "Beim Wert muss es sich um eine maximale Länge von {{max}}", - "TEXT_MAX_LENGTH": "Der Wert muss eine maximale Länge von {{max}} haben", + "TEXT_REQUIRED": "Pflichtfeld", + "SENDUNMANAGED_REQUIRED": "Pflichtfeld", + "SENDUNMANAGED_MAX_LENGTH": "Der Wert muss eine maximale Länge gleich {{max}} haben", + "SKIPUNMANAGED_MAX_LENGTH": "Der Wert muss eine maximale Länge gleich {{{{max}} haben", + "UNMANAGEDMESSAGE_MAX_LENGTH": "Der Wert muss eine maximale Länge gleich {{{{max}} haben", + "WEBSITEALIAS_MAX_LENGTH": "Der Wert muss eine maximale Länge gleich {{{{max}} haben", + "AGENT_REQUIRED": "Pflichtfeld", + "QUEUE_REQUIRED": "Pflichtfeld", + "CONDITION_REQUIRED": "Pflichtfeld", + "PRIORITY_REQUIRED": "Pflichtfeld", + "TRUEPRIORITY_REQUIRED": "Pflichtfeld", + "FALSEPRIORITY_REQUIRED": "Pflichtfeld", + "NAME_REQUIRED": "Pflichtfeld", + "LIST_REQUIRED": "Pflichtfeld", + "AGENT_TIMEOUT_REQUIRED": "Pflichtfeld", + "MOTIONADDRESS_REQUIRED": "Pflichtfeld", + "DISPOSITION_REQUIRED": "Pflichtfeld", + "MOTIONADDRESS_MUST_VALID_URL": "Falsches Format", + "EMAIL_MUST_BE_VALID": "Falsches Format", + "ADDRESS_REQUIRED": "Pflichtfeld", + "ADDRESS_MUST_VALID_URL": "Falsches Format", + "ENQUIRY_FORWARDING_ADDRESS_REQUIRED": "Pflichtfeld", + "ACCEPTURL_MUST_VALID_URL": "Falsches Format", + "TIMEOUT_REQUIRED": "Pflichtfeld", + "REJECTURL_MUST_VALID_URL": "Falsches Format", + "CLOSEURL_MUST_VALID_URL": "Falsches Format", + "PRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Der Wert muss größer oder gleich sein", + "TRUEPRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Der Wert muss größer oder gleich sein", + "FALSEPRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Der Wert muss größer oder gleich sein", + "TIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Der Wert muss größer oder gleich sein", + "POLLING_INTERVAL_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Der Wert muss größer oder gleich sein", + "WAITINGMESSAGE_REQUIRED": "Pflichtfeld", + "WAITINGTITLE_REQUIRED": "Pflichtfeld", + "KEY_MAX_LENGTH": "Der Wert muss eine maximale Länge gleich {{max}} haben", + "KEY_REQUIRED": "Pflichtfeld", + "WAITINGMESSAGE_MAX_LENGTH": "Der Wert muss eine maximale Länge gleich {{max}} haben", + "WAITINGTITLE_MAX_LENGTH": "Der Wert muss eine maximale Länge gleich {{max}} haben", + "RATINGSTARSNUMBER_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Der Wert muss kleiner oder gleich sein", + "HEADER_OFFLINE_MAX_LENGTH": "Der Wert muss eine maximale Länge gleich {{max}} haben", + "OFFLINE_CHAT_BUTTON_MAX_LENGTH": "Der Wert muss eine maximale Länge gleich {{max}} haben", + "CLOSINGQUESTION_MAX_LENGTH": "Der Wert muss eine maximale Länge gleich {{max}} haben", + "TEXT_MAX_LENGTH": "Der Wert muss eine maximale Länge gleich {{max}} haben", "VALUE_REQUIRED": "Pflichtfeld", - "OFFLINEMESSAGESUBJECT_MAX_LENGTH": "Der Wert muss eine maximale Länge von {{max}} haben", - "OFFLINEMESSAGEBODY_MAX_LENGTH": "Der Wert muss eine maximale Länge von {{max}} haben", - "PLACEHOLDERMESSAGE_MAX_LENGTH": "Der Wert muss eine maximale Länge von {{max}} haben", - "NOTETITLE_MAX_LENGTH": "Der Wert muss eine maximale Länge von {{max}} haben", - "FORMSUBMITSUCCESSMESSAGE_MAX_LENGTH": "Der Wert muss eine maximale Länge von {{max}} haben", - "FORMSUBMITFAILUREMESSAGE_MAX_LENGTH": "Der Wert muss eine maximale Länge von {{max}} haben", + "OFFLINEMESSAGESUBJECT_MAX_LENGTH": "Der Wert muss eine maximale Länge gleich {{max}} haben", + "OFFLINEMESSAGEBODY_MAX_LENGTH": "Der Wert muss eine maximale Länge gleich {{max}} haben", + "PLACEHOLDERMESSAGE_MAX_LENGTH": "Der Wert muss eine maximale Länge gleich {{max}} haben", + "NOTETITLE_MAX_LENGTH": "Der Wert muss eine maximale Länge gleich {{max}} haben", + "FORMSUBMITSUCCESSMESSAGE_MAX_LENGTH": "Der Wert muss eine maximale Länge gleich {{max}} haben", + "FORMSUBMITFAILUREMESSAGE_MAX_LENGTH": "Der Wert muss eine maximale Länge gleich {{max}} haben", "FONTSIZE_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Der Wert muss größer oder gleich sein", "FONTSIZE_REQUIRED": "Pflichtfeld", "COMMAND_REQUIRED": "Pflichtfeld", @@ -120,7 +120,7 @@ "VERTICALPOSITION_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Der Wert muss größer oder gleich sein", "VERTICALPOSITION_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Der Wert muss kleiner oder gleich sein", "VERTICALPOSITION_REQUIRED": "Pflichtfeld", - "CUSTOMERALIAS_MAX_LENGTH": "Der Wert muss eine maximale Länge von {{max}} haben", + "CUSTOMERALIAS_MAX_LENGTH": "Der Wert muss eine maximale Länge gleich {{max}} haben", "TAG_REQUIRED": "Pflichtfeld", "MESSAGEFONTSIZE_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Der Wert muss größer oder gleich sein", "MESSAGEFONTSIZE_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Der Wert muss kleiner oder gleich sein", @@ -133,28 +133,31 @@ "QUEUETRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Der Wert muss größer oder gleich sein", "QUEUETRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Der Wert muss kleiner oder gleich sein", "QUEUETRANSFERTIMEOUT_REQUIRED": "Pflichtfeld", - "SYSTEMALIAS_MAX_LENGTH": "Der Wert muss eine maximale Länge von {{max}} haben.", + "SYSTEMALIAS_MAX_LENGTH": "Der Wert muss eine maximale Länge gleich {{max}} haben", "SYSTEMALIAS_REQUIRED": "Pflichtfeld", "ACCESSKEYID_REQUIRED": "Pflichtfeld", "BOTNAME_REQUIRED": "Pflichtfeld", "SECRETACCESSKEY_REQUIRED": "Pflichtfeld", "MANDATORYDISPOSITIONPAUSEID_REQUIRED": "Pflichtfeld", - "VIDAOOAPIKEY_REQUIRED": "Pflichtfeld" + "VIDAOOAPIKEY_REQUIRED": "Pflichtfeld", + "CLIENTEMAIL_REQUIRED": "Pflichtfeld", + "PRIVATEKEY_REQUIRED": "Pflichtfeld", + "PROJECTID_REQUIRED": "Pflichtfeld" }, - "CM_FIELD": "Contact Manager Feld", + "CM_FIELD": "Kontakt Manager Feld", "CHATPROACTIVEACTIONS": "Proaktive Aktionen", - "NEW_CHATPROACTIVEACTION": "Neue proaktive Maßnahmen", - "EDIT_CHATPROACTIVEACTION": "Bearbeiten proaktives Handeln", - "DELETE_CHATPROACTIVEACTION": "Löschen proaktive Maßnahmen", - "ADD_CHATPROACTIVEACTION": "Hinzufügen proaktives Handeln", - "NO_CHATPROACTIVEACTION_AVAILABLE": "Keine proaktive Maßnahmen verfügbar", + "NEW_CHATPROACTIVEACTION": "Neue proaktive Aktion", + "EDIT_CHATPROACTIVEACTION": "Proaktive Aktion bearbeiten", + "DELETE_CHATPROACTIVEACTION": "Proaktive Aktion löschen", + "ADD_CHATPROACTIVEACTION": "Proaktive Aktion hinzufügen", + "NO_CHATPROACTIVEACTION_AVAILABLE": "Keine proaktiven Aktionen verfügbar", "NO_OFFLINEMESSAGE_AVAILABLE": "Keine Offline Nachrichten verfügbar", "MOUSEOVER": "Maus über", "TIMEOUT": "Timeout", "TYPE": "Typ", - "SELECTOR": "Wahlschalter", + "SELECTOR": "Wähler", "AGENT": "Agent", - "GOTO": "Gehe zu", + "GOTO": "Goto", "GOTOIF": "GotoIf", "NOOP": "Noop", "QUEUE": "Warteschlange", @@ -162,25 +165,25 @@ "PREVIEW": "Vorschau", "EDIT_AGENT": "Agent bearbeiten", "EDIT_QUEUE": "Warteschlange bearbeiten", - "EDIT_GOTO": "Bearbeiten Gehe zu", + "EDIT_GOTO": "Bearbeiten Goto", "EDIT_GOTOIf": "Bearbeiten GotoIf", "EDIT_NOOP": "Bearbeiten Noop", - "ADD_CHATQUEUE": "Chat Warteschlange hinzufügen", - "EDIT_CHATQUEUE": "Chat Warteschlange bearbeiten", - "DELETE_CHATQUEUE": "Chat löschen der Warteschlange", + "ADD_CHATQUEUE": "Chat-Warteschlange hinzufügen", + "EDIT_CHATQUEUE": "Chat-Warteschlange bearbeiten", + "DELETE_CHATQUEUE": "Chat-Warteschlange löschen", "SETTINGS": "Einstellungen", "SAVE": "Speichern", "SCRIPT": "Skript", - "TOKEN": "Token", + "TOKEN": "Tooken", "CREATED_AT": "Erstellt am", - "CHATWEBSITES": "Chat Websites", - "MOTIONADDRESS": "Motion Adresse", + "CHATWEBSITES": "Chat-Webseiten", + "MOTIONADDRESS": "Website Domain", "MOTIONPROXY": "Proxy oder Motion Domain", - "ADD_CHATWEBSITE": "Chat Website hinzufügen", - "EDIT_CHATWEBSITE": "Chat Website bearbeiten.", - "DELETE_CHATWEBSITE": "Chat Website löschen.", + "ADD_CHATWEBSITE": "Chat-Webseite hinzufügen", + "EDIT_CHATWEBSITE": "Chat-Webseite bearbeiten", + "DELETE_CHATWEBSITE": "Chat-Webseite löschen", "LIST": "Liste", - "SNIPPET": "Ausschnitt", + "SNIPPET": "Schnipsel", "FORMS": "Formen", "UP": "Bis", "DOWN": "Nach unten", @@ -416,7 +419,7 @@ "MESSAGEFONTSIZE": "Größe der Nachricht", "AGENTTRANSFER": "Agent Transfer", "AGENTTRANSFERTIMEOUT": "Zeitüberschreitung für Agententransfer", - "DIALOGFLOW": "Dialogflow (deprecated)", + "DIALOGFLOW": "Dialogflow", "EDIT_DIALOGFLOW": "Dialogfluss bearbeiten", "LANGUAGE": "Sprache", "QUEUETRANSFER": "Warteschlangenübertragung", @@ -450,6 +453,11 @@ "VIDAOOAPIKEY": "Vidaoo Api Key", "VIDAOOESCALATION": "Videoanruf starten", "VIDAOOSESSION": "Videoanruf starten", - "VIDEO": "Video" + "VIDEO": "Video", + "CLIENTEMAIL": "Kunden-E-Mail", + "DIALOGFLOWV2": "Dialogflow V2", + "EDIT_DIALOGFLOWV2": "Dialogflow V2 bearbeiten", + "PRIVATEKEY": "Privat Schlüssel", + "PROJECTID": "Projekt-ID" } } diff --git a/public/app/main/apps/chat/i18n/en.json b/public/app/main/apps/chat/i18n/en.json index 94ed4f8..be231fb 100644 --- a/public/app/main/apps/chat/i18n/en.json +++ b/public/app/main/apps/chat/i18n/en.json @@ -30,7 +30,7 @@ "WELCOMEMESSAGE": "Welcome Message", "LANGUAGE": "Language", "EDIT_DIALOGFLOW": "Edit Dialogflow", - "DIALOGFLOW": "Dialogflow (deprecated)", + "DIALOGFLOW": "Dialogflow", "BACKGROUNDCOLOR": "Background Color", "MESSAGEFONTSIZE": "Message Font Size", "TAG": "Tag", diff --git a/public/app/main/apps/chat/i18n/es.json b/public/app/main/apps/chat/i18n/es.json index 153f841..1836a20 100644 --- a/public/app/main/apps/chat/i18n/es.json +++ b/public/app/main/apps/chat/i18n/es.json @@ -83,7 +83,10 @@ "BOTNAME_REQUIRED": "Campo obligatorio", "SECRETACCESSKEY_REQUIRED": "Campo obligatorio", "MANDATORYDISPOSITIONPAUSEID_REQUIRED": "Campo obligatorio", - "VIDAOOAPIKEY_REQUIRED": "Campo obligatorio" + "VIDAOOAPIKEY_REQUIRED": "Campo obligatorio", + "CLIENTEMAIL_REQUIRED": "Campo obligatorio", + "PRIVATEKEY_REQUIRED": "Campo obligatorio", + "PROJECTID_REQUIRED": "Campo obligatorio" }, "HELP": { "AUTOCLOSE": "Habilítelo si desea que las sesiones de chat se cierren como No gestionadas si no hay ningún agente disponible. Obtenga más información al respecto en: https://wiki.xcallymotion.com/display/XMV/Chat Websites", @@ -450,6 +453,11 @@ "VIDAOOAPIKEY": "Clave de Api Vidaoo", "VIDAOOESCALATION": "Iniciar videollamada", "VIDAOOSESSION": "Iniciar videollamada", - "VIDEO": "Vídeo" + "VIDEO": "Vídeo", + "CLIENTEMAIL": "Correo electrónico del cliente", + "DIALOGFLOWV2": "Dialogflow V2", + "EDIT_DIALOGFLOWV2": "Editar Dialogflow V2", + "PRIVATEKEY": "Llave privada", + "PROJECTID": "Projecto ID" } } diff --git a/public/app/main/apps/chat/i18n/et.json b/public/app/main/apps/chat/i18n/et.json index b994208..a39c072 100644 --- a/public/app/main/apps/chat/i18n/et.json +++ b/public/app/main/apps/chat/i18n/et.json @@ -20,7 +20,7 @@ "WELCOMEMESSAGE": "Welcome Message", "LANGUAGE": "Language", "EDIT_DIALOGFLOW": "Edit Dialogflow", - "DIALOGFLOW": "Dialogflow (deprecated)", + "DIALOGFLOW": "Dialogflow", "BACKGROUNDCOLOR": "Background Color", "MESSAGEFONTSIZE": "Message Font Size", "TAG": "Tag", @@ -241,7 +241,10 @@ "WAITINGTITLE_MAX_LENGTH": "The value must have a maximum length equal to {{max}}", "RATINGSTARSNUMBER_MUST_BE_LESS_THAN_OR_EQUAL_TO": "The value must be less than or equal to", "MANDATORYDISPOSITIONPAUSEID_REQUIRED": "Kohustuslik väli", - "VIDAOOAPIKEY_REQUIRED": "Kohustuslik väli" + "VIDAOOAPIKEY_REQUIRED": "Kohustuslik väli", + "CLIENTEMAIL_REQUIRED": "Kohustuslik väli", + "PRIVATEKEY_REQUIRED": "Kohustuslik väli", + "PROJECTID_REQUIRED": "Kohustuslik väli" }, "CM_FIELD": "Contact Manager Field", "CHATPROACTIVEACTIONS": "Proactive Actions", @@ -450,6 +453,11 @@ "VIDAOOESCALATION": "Alusta videokõnet", "VIDAOOSESSION": "Alusta videokõnet", "VIDEO": "Video", - "TOOLTIP_SCREENRECORDING_OFF": "Ekraanisalvestus on saadaval" + "TOOLTIP_SCREENRECORDING_OFF": "Ekraanisalvestus on saadaval", + "CLIENTEMAIL": "Kliendi e-post", + "DIALOGFLOWV2": "Dialoogivoog V2", + "EDIT_DIALOGFLOWV2": "Redigeerimise dialoogivoog V2", + "PRIVATEKEY": "Privaatne võti", + "PROJECTID": "Projekti ID" } } diff --git a/public/app/main/apps/chat/i18n/fa.json b/public/app/main/apps/chat/i18n/fa.json index 0327bea..32339a5 100644 --- a/public/app/main/apps/chat/i18n/fa.json +++ b/public/app/main/apps/chat/i18n/fa.json @@ -139,7 +139,10 @@ "BOTNAME_REQUIRED": "زمینه اجباری", "SECRETACCESSKEY_REQUIRED": "زمینه اجباری", "MANDATORYDISPOSITIONPAUSEID_REQUIRED": "زمینه اجباری", - "VIDAOOAPIKEY_REQUIRED": "زمینه اجباری" + "VIDAOOAPIKEY_REQUIRED": "زمینه اجباری", + "CLIENTEMAIL_REQUIRED": "زمینه اجباری", + "PRIVATEKEY_REQUIRED": "زمینه اجباری", + "PROJECTID_REQUIRED": "زمینه اجباری" }, "CM_FIELD": "تماس با مدير گروه رشته", "CHATPROACTIVEACTIONS": "اقدامات فعالانه تر توبيخ", @@ -416,7 +419,7 @@ "MESSAGEFONTSIZE": "اندازه فونت پیام", "AGENTTRANSFER": "انتقال عامل", "AGENTTRANSFERTIMEOUT": "زمان انتقال عامل", - "DIALOGFLOW": "Dialogflow (deprecated)", + "DIALOGFLOW": "Dialogflow", "EDIT_DIALOGFLOW": "ویرایش گفتگو", "LANGUAGE": "زبان", "QUEUETRANSFER": "صف انتقال", @@ -450,6 +453,11 @@ "VIDAOOAPIKEY": "کلید اصلی ویداو", "VIDAOOESCALATION": "تماس ویدیویی را شروع کنید", "VIDAOOSESSION": "تماس ویدیویی را شروع کنید", - "VIDEO": "فیلم" + "VIDEO": "فیلم", + "CLIENTEMAIL": "ایمیل مشتری", + "DIALOGFLOWV2": "Dialogflow V2", + "EDIT_DIALOGFLOWV2": "ویرایش Dialogflow V2", + "PRIVATEKEY": "کلید خصوصی", + "PROJECTID": "شناسه پروژه" } } diff --git a/public/app/main/apps/chat/i18n/fi.json b/public/app/main/apps/chat/i18n/fi.json index 356518d..a60e6ca 100644 --- a/public/app/main/apps/chat/i18n/fi.json +++ b/public/app/main/apps/chat/i18n/fi.json @@ -139,7 +139,10 @@ "BOTNAME_REQUIRED": "Pakollinen kenttä", "SECRETACCESSKEY_REQUIRED": "Pakollinen kenttä", "MANDATORYDISPOSITIONPAUSEID_REQUIRED": "Pakollinen kenttä", - "VIDAOOAPIKEY_REQUIRED": "Pakollinen kenttä" + "VIDAOOAPIKEY_REQUIRED": "Pakollinen kenttä", + "CLIENTEMAIL_REQUIRED": "Pakollinen kenttä", + "PRIVATEKEY_REQUIRED": "Pakollinen kenttä", + "PROJECTID_REQUIRED": "Pakollinen kenttä" }, "CM_FIELD": "Contact Manager kenttä", "CHATPROACTIVEACTIONS": "Ennakoivat toimet", @@ -416,7 +419,7 @@ "MESSAGEFONTSIZE": "Viestin fonttikoko", "AGENTTRANSFER": "Agent Transfer", "AGENTTRANSFERTIMEOUT": "Agentin siirron aikakatkaisu", - "DIALOGFLOW": "Dialogflow (deprecated)", + "DIALOGFLOW": "Dialogflow", "EDIT_DIALOGFLOW": "Muokkaa Dialogflow", "LANGUAGE": "Kieli", "QUEUETRANSFER": "Jono siirto", @@ -450,6 +453,11 @@ "VIDAOOAPIKEY": "Vidaoo Api-avain", "VIDAOOESCALATION": "Aloita videopuhelu", "VIDAOOSESSION": "Aloita videopuhelu", - "VIDEO": "Video" + "VIDEO": "Video", + "CLIENTEMAIL": "Asiakkaan sähköposti", + "DIALOGFLOWV2": "Dialogflow V2", + "EDIT_DIALOGFLOWV2": "Muokkaa valintaikkunaa V2", + "PRIVATEKEY": "Yksityinen avain", + "PROJECTID": "Projektin tunnus" } } diff --git a/public/app/main/apps/chat/i18n/fr.json b/public/app/main/apps/chat/i18n/fr.json index 7f12fcb..5d5370c 100644 --- a/public/app/main/apps/chat/i18n/fr.json +++ b/public/app/main/apps/chat/i18n/fr.json @@ -139,7 +139,10 @@ "BOTNAME_REQUIRED": "Champ obligatoire", "SECRETACCESSKEY_REQUIRED": "Champ obligatoire", "MANDATORYDISPOSITIONPAUSEID_REQUIRED": "Champ obligatoire", - "VIDAOOAPIKEY_REQUIRED": "Champ obligatoire" + "VIDAOOAPIKEY_REQUIRED": "Champ obligatoire", + "CLIENTEMAIL_REQUIRED": "Champ obligatoire", + "PRIVATEKEY_REQUIRED": "Champ obligatoire", + "PROJECTID_REQUIRED": "Champ obligatoire" }, "CM_FIELD": "Contact Manager Domaine", "CHATPROACTIVEACTIONS": "Des actions proactives", @@ -416,7 +419,7 @@ "MESSAGEFONTSIZE": "Taille de la police du message", "AGENTTRANSFER": "Transfert d'agent", "AGENTTRANSFERTIMEOUT": "Délai de transfert d'agent", - "DIALOGFLOW": "Dialogflow (deprecated)", + "DIALOGFLOW": "Dialogflow", "EDIT_DIALOGFLOW": "Editer le dialogue", "LANGUAGE": "La langue", "QUEUETRANSFER": "Transfert de file d'attente", @@ -450,6 +453,11 @@ "VIDAOOAPIKEY": "Clé API Vidaoo", "VIDAOOESCALATION": "Lancer un appel vidéo", "VIDAOOSESSION": "Lancer un appel vidéo", - "VIDEO": "Vidéo" + "VIDEO": "Vidéo", + "CLIENTEMAIL": "Courriel du client", + "DIALOGFLOWV2": "Dialogflow V2", + "EDIT_DIALOGFLOWV2": "Modifier Dialogflow V2", + "PRIVATEKEY": "Clé privée", + "PROJECTID": "ID du projet" } } diff --git a/public/app/main/apps/chat/i18n/he.json b/public/app/main/apps/chat/i18n/he.json index da71ecb..ff82b12 100644 --- a/public/app/main/apps/chat/i18n/he.json +++ b/public/app/main/apps/chat/i18n/he.json @@ -241,7 +241,10 @@ "WAITINGTITLE_MAX_LENGTH": "האורך המרבי המותר של הערך הוא {{max}}", "RATINGSTARSNUMBER_MUST_BE_LESS_THAN_OR_EQUAL_TO": "הערך חייב להיות קטן או שווה ל-", "MANDATORYDISPOSITIONPAUSEID_REQUIRED": "שדה חובה", - "VIDAOOAPIKEY_REQUIRED": "שדה חובה" + "VIDAOOAPIKEY_REQUIRED": "שדה חובה", + "CLIENTEMAIL_REQUIRED": "שדה חובה", + "PRIVATEKEY_REQUIRED": "שדה חובה", + "PROJECTID_REQUIRED": "שדה חובה" }, "CM_FIELD": "שדה 'מנהל אנשי הקשר'", "CHATPROACTIVEACTIONS": "פעולות יזומות", @@ -450,6 +453,11 @@ "VIDAOOAPIKEY": "Vidaoo Api Key", "VIDAOOESCALATION": "התחל שיחת וידאו", "VIDAOOSESSION": "התחל שיחת וידאו", - "VIDEO": "וִידֵאוֹ" + "VIDEO": "וִידֵאוֹ", + "CLIENTEMAIL": "דוא\"ל לקוח", + "DIALOGFLOWV2": "Dialogflow V2", + "EDIT_DIALOGFLOWV2": "ערוך את Dialogflow V2", + "PRIVATEKEY": "מפתח פרטי", + "PROJECTID": "מזהה פרויקט" } } diff --git a/public/app/main/apps/chat/i18n/hi.json b/public/app/main/apps/chat/i18n/hi.json index c186262..80f22e2 100644 --- a/public/app/main/apps/chat/i18n/hi.json +++ b/public/app/main/apps/chat/i18n/hi.json @@ -139,7 +139,10 @@ "BOTNAME_REQUIRED": "आवश्यक स्थान", "SECRETACCESSKEY_REQUIRED": "आवश्यक स्थान", "MANDATORYDISPOSITIONPAUSEID_REQUIRED": "आवश्यक स्थान", - "VIDAOOAPIKEY_REQUIRED": "आवश्यक स्थान" + "VIDAOOAPIKEY_REQUIRED": "आवश्यक स्थान", + "CLIENTEMAIL_REQUIRED": "आवश्यक स्थान", + "PRIVATEKEY_REQUIRED": "आवश्यक स्थान", + "PROJECTID_REQUIRED": "आवश्यक स्थान" }, "CM_FIELD": "संपर्क प्रबंधक क्षेत्र", "CHATPROACTIVEACTIONS": "सक्रिय क्रियाएं", @@ -416,7 +419,7 @@ "MESSAGEFONTSIZE": "संदेश फ़ॉन्ट का आकार", "AGENTTRANSFER": "एजेंट स्थानांतरण", "AGENTTRANSFERTIMEOUT": "एजेंट स्थानांतरण टाइमआउट", - "DIALOGFLOW": "Dialogflow (deprecated)", + "DIALOGFLOW": "Dialogflow", "EDIT_DIALOGFLOW": "संवाद प्रवाह संपादित करें", "LANGUAGE": "भाषा", "QUEUETRANSFER": "कतार स्थानांतरण", @@ -450,6 +453,11 @@ "VIDAOOAPIKEY": "विडू आपी की", "VIDAOOESCALATION": "वीडियो कॉल प्रारंभ करें", "VIDAOOSESSION": "वीडियो कॉल प्रारंभ करें", - "VIDEO": "वीडियो" + "VIDEO": "वीडियो", + "CLIENTEMAIL": "ग्राहक ईमेल", + "DIALOGFLOWV2": "संवाद प्रवाह V2", + "EDIT_DIALOGFLOWV2": "डायलॉगफ़्लो V2 संपादित करें", + "PRIVATEKEY": "निजी चाबी", + "PROJECTID": "प्रोजेक्ट आईडी" } } diff --git a/public/app/main/apps/chat/i18n/id.json b/public/app/main/apps/chat/i18n/id.json index 6b505f0..08f2892 100644 --- a/public/app/main/apps/chat/i18n/id.json +++ b/public/app/main/apps/chat/i18n/id.json @@ -83,7 +83,10 @@ "BOTNAME_REQUIRED": "Bidang wajib", "SECRETACCESSKEY_REQUIRED": "Bidang wajib", "MANDATORYDISPOSITIONPAUSEID_REQUIRED": "Bidang wajib", - "VIDAOOAPIKEY_REQUIRED": "Bidang wajib" + "VIDAOOAPIKEY_REQUIRED": "Bidang wajib", + "CLIENTEMAIL_REQUIRED": "Bidang wajib", + "PRIVATEKEY_REQUIRED": "Bidang wajib", + "PROJECTID_REQUIRED": "Bidang wajib" }, "HELP": { "AGENTIDENTIFIER": "Mewakili pengenal agen dalam sesi obrolan di cuplikan", @@ -416,7 +419,7 @@ "MESSAGEFONTSIZE": "Ukuran Font Pesan", "AGENTTRANSFER": "Transfer Agen", "AGENTTRANSFERTIMEOUT": "Agen Transfer Timeout", - "DIALOGFLOW": "Dialogflow (deprecated)", + "DIALOGFLOW": "Dialogflow", "EDIT_DIALOGFLOW": "Edit Dialogflow", "LANGUAGE": "Bahasa", "QUEUETRANSFER": "Transfer Antrean", @@ -450,6 +453,11 @@ "VIDAOOAPIKEY": "Kunci Api Vidaoo", "VIDAOOESCALATION": "Mulai Panggilan Video", "VIDAOOSESSION": "Mulai Panggilan Video", - "VIDEO": "Video" + "VIDEO": "Video", + "CLIENTEMAIL": "Email Klien", + "DIALOGFLOWV2": "Dialogflow V2", + "EDIT_DIALOGFLOWV2": "Edit Dialogflow V2", + "PRIVATEKEY": "Kunci Pribadi", + "PROJECTID": "ID Proyek" } } diff --git a/public/app/main/apps/chat/i18n/it.json b/public/app/main/apps/chat/i18n/it.json index 30740b0..7f4476b 100644 --- a/public/app/main/apps/chat/i18n/it.json +++ b/public/app/main/apps/chat/i18n/it.json @@ -23,7 +23,7 @@ "WELCOMEMESSAGE": "Messaggio di Benvenuto", "LANGUAGE": "Lingua", "EDIT_DIALOGFLOW": "Modifica Dialogflow", - "DIALOGFLOW": "Dialogflow (deprecated)", + "DIALOGFLOW": "Dialogflow", "BACKGROUNDCOLOR": "Colore di Sfondo", "MESSAGEFONTSIZE": "Dimensione del Font Messaggi", "TAG": "Tag", @@ -215,7 +215,10 @@ "ACCESSKEYID_REQUIRED": "Campo obbligatorio", "BOTNAME_REQUIRED": "Campo obbligatorio", "SECRETACCESSKEY_REQUIRED": "Campo obbligatorio", - "MANDATORYDISPOSITIONPAUSEID_REQUIRED": "Campo obbligatorio" + "MANDATORYDISPOSITIONPAUSEID_REQUIRED": "Campo obbligatorio", + "CLIENTEMAIL_REQUIRED": "Campo obbligatorio", + "PRIVATEKEY_REQUIRED": "Campo obbligatorio", + "PROJECTID_REQUIRED": "Campo obbligatorio" }, "ADD_CHATQUEUE": "Aggiungi Coda Chat", "EDIT_CHATQUEUE": "Modifica Coda Chat", @@ -450,6 +453,11 @@ "DOWNLOAD_WITHOUT_ATTACHMENTS": "Scarica senza allegati", "DOWNLOAD_WITH_ATTACHMENTS": "Scarica con allegati", "VIDAOO": "Vidaoo", - "VIDEO": "video" + "VIDEO": "video", + "CLIENTEMAIL": "Email del cliente", + "DIALOGFLOWV2": "Dialogflow V2", + "EDIT_DIALOGFLOWV2": "Modifica Dialogflow V2", + "PRIVATEKEY": "Chiave privata", + "PROJECTID": "ID progetto" } } diff --git a/public/app/main/apps/chat/i18n/ja.json b/public/app/main/apps/chat/i18n/ja.json index 8cde3b0..b3efdf7 100644 --- a/public/app/main/apps/chat/i18n/ja.json +++ b/public/app/main/apps/chat/i18n/ja.json @@ -83,7 +83,10 @@ "BOTNAME_REQUIRED": "必須フィールド", "SECRETACCESSKEY_REQUIRED": "必須フィールド", "MANDATORYDISPOSITIONPAUSEID_REQUIRED": "必須フィールド", - "VIDAOOAPIKEY_REQUIRED": "必須フィールド" + "VIDAOOAPIKEY_REQUIRED": "必須フィールド", + "CLIENTEMAIL_REQUIRED": "必須フィールド", + "PRIVATEKEY_REQUIRED": "必須フィールド", + "PROJECTID_REQUIRED": "必須フィールド" }, "HELP": { "AUTOCLOSE": "エージェントは応じられない場合は、チャットセッションをアンマネージドとしてクローズする場合に有効にします。詳細はhttps://wiki.xcallymotion.com/display/XMV/Chat+Websites#ChatWebsites-Snippetをご覧ください。", @@ -450,6 +453,11 @@ "VIDAOOAPIKEY": "Vidaoo APIキー", "VIDAOOESCALATION": "ビデオ通話を開始", "VIDAOOSESSION": "ビデオ通話を開始", - "VIDEO": "ビデオ" + "VIDEO": "ビデオ", + "CLIENTEMAIL": "クライアントの電子メール", + "DIALOGFLOWV2": "Dialogflow V2", + "EDIT_DIALOGFLOWV2": "DialogflowV2を編集する", + "PRIVATEKEY": "秘密鍵", + "PROJECTID": "プロジェクトID" } } diff --git a/public/app/main/apps/chat/i18n/ko.json b/public/app/main/apps/chat/i18n/ko.json index 263c24e..f1be550 100644 --- a/public/app/main/apps/chat/i18n/ko.json +++ b/public/app/main/apps/chat/i18n/ko.json @@ -139,7 +139,10 @@ "BOTNAME_REQUIRED": "필수 필드", "SECRETACCESSKEY_REQUIRED": "필수 필드", "MANDATORYDISPOSITIONPAUSEID_REQUIRED": "필수 필드", - "VIDAOOAPIKEY_REQUIRED": "필수 필드" + "VIDAOOAPIKEY_REQUIRED": "필수 필드", + "CLIENTEMAIL_REQUIRED": "필수 필드", + "PRIVATEKEY_REQUIRED": "필수 필드", + "PROJECTID_REQUIRED": "필수 필드" }, "CM_FIELD": "CM 필드", "CHATPROACTIVEACTIONS": "채팅 사전 활동", @@ -450,6 +453,11 @@ "VIDAOOAPIKEY": "Vidaoo API 키", "VIDAOOESCALATION": "영상 통화 시작", "VIDAOOSESSION": "영상 통화 시작", - "VIDEO": "비디오" + "VIDEO": "비디오", + "CLIENTEMAIL": "클라이언트 이메일", + "DIALOGFLOWV2": "Dialogflow V2", + "EDIT_DIALOGFLOWV2": "Dialogflow V2 수정", + "PRIVATEKEY": "개인 키", + "PROJECTID": "프로젝트 ID" } } diff --git a/public/app/main/apps/chat/i18n/lt.json b/public/app/main/apps/chat/i18n/lt.json index 1af9b81..87dacef 100644 --- a/public/app/main/apps/chat/i18n/lt.json +++ b/public/app/main/apps/chat/i18n/lt.json @@ -245,7 +245,10 @@ "WAITINGTITLE_MAX_LENGTH": "Reikšmė turi būti ne ilgesnė kaip {{max}}", "RATINGSTARSNUMBER_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Reikšmė turi būti mažesnė arba lygi", "MANDATORYDISPOSITIONPAUSEID_REQUIRED": "Privalomas laukas", - "VIDAOOAPIKEY_REQUIRED": "Privalomas laukas" + "VIDAOOAPIKEY_REQUIRED": "Privalomas laukas", + "CLIENTEMAIL_REQUIRED": "Privalomas laukas", + "PRIVATEKEY_REQUIRED": "Privalomas laukas", + "PROJECTID_REQUIRED": "Privalomas laukas" }, "CM_FIELD": "Kontaktų vadybininko laukas", "CHATPROACTIVEACTIONS": "Aktyvūs veiksmai", @@ -450,6 +453,11 @@ "VIDAOOAPIKEY": "„Vidaoo Api Key“", "VIDAOOESCALATION": "Pradėti vaizdo skambutį", "VIDAOOSESSION": "Pradėti vaizdo skambutį", - "VIDEO": "Vaizdo įrašas" + "VIDEO": "Vaizdo įrašas", + "CLIENTEMAIL": "Kliento el. Paštas", + "DIALOGFLOWV2": "Dialogflow V2", + "EDIT_DIALOGFLOWV2": "Redaguoti „Dialogflow V2“", + "PRIVATEKEY": "Privatus raktas", + "PROJECTID": "Projekto ID" } } diff --git a/public/app/main/apps/chat/i18n/lv.json b/public/app/main/apps/chat/i18n/lv.json index 27b0278..ae1ea38 100644 --- a/public/app/main/apps/chat/i18n/lv.json +++ b/public/app/main/apps/chat/i18n/lv.json @@ -83,7 +83,10 @@ "BOTNAME_REQUIRED": "Obligāts lauks", "SECRETACCESSKEY_REQUIRED": "Obligāts lauks", "MANDATORYDISPOSITIONPAUSEID_REQUIRED": "Obligāts lauks", - "VIDAOOAPIKEY_REQUIRED": "Obligāts lauks" + "VIDAOOAPIKEY_REQUIRED": "Obligāts lauks", + "CLIENTEMAIL_REQUIRED": "Obligāts lauks", + "PRIVATEKEY_REQUIRED": "Obligāts lauks", + "PROJECTID_REQUIRED": "Obligāts lauks" }, "HELP": { "KEY": "Tīmekļa vietnes īss nosaukums (piecas rakstzīmes), kas ir attēlots cilnē Aģenti", @@ -416,7 +419,7 @@ "MESSAGEFONTSIZE": "Ziņu fonta lielums", "AGENTTRANSFER": "Aģenta nodošana", "AGENTTRANSFERTIMEOUT": "Aģenta nodošanas noildze", - "DIALOGFLOW": "Dialogflow (deprecated)", + "DIALOGFLOW": "Dialogflow", "EDIT_DIALOGFLOW": "Rediģēt Dialogflow", "LANGUAGE": "Valoda", "QUEUETRANSFER": "Rindas nodošana", @@ -450,6 +453,11 @@ "VIDAOOAPIKEY": "Vidaoo Api atslēga", "VIDAOOESCALATION": "Sāciet videozvanu", "VIDAOOSESSION": "Sāciet videozvanu", - "VIDEO": "Video" + "VIDEO": "Video", + "CLIENTEMAIL": "Klienta e-pasts", + "DIALOGFLOWV2": "Dialogflow V2", + "EDIT_DIALOGFLOWV2": "Rediģēt Dialogflow V2", + "PRIVATEKEY": "Privātā atslēga", + "PROJECTID": "Projekta ID" } } diff --git a/public/app/main/apps/chat/i18n/nl.json b/public/app/main/apps/chat/i18n/nl.json index 32f5a85..d942ce6 100644 --- a/public/app/main/apps/chat/i18n/nl.json +++ b/public/app/main/apps/chat/i18n/nl.json @@ -139,7 +139,10 @@ "BOTNAME_REQUIRED": "Verplicht veld", "SECRETACCESSKEY_REQUIRED": "Verplicht veld", "MANDATORYDISPOSITIONPAUSEID_REQUIRED": "Verplicht veld", - "VIDAOOAPIKEY_REQUIRED": "Verplicht veld" + "VIDAOOAPIKEY_REQUIRED": "Verplicht veld", + "CLIENTEMAIL_REQUIRED": "Verplicht veld", + "PRIVATEKEY_REQUIRED": "Verplicht veld", + "PROJECTID_REQUIRED": "Verplicht veld" }, "CM_FIELD": "Contact Manager veld", "CHATPROACTIVEACTIONS": "Proactieve acties", @@ -416,7 +419,7 @@ "MESSAGEFONTSIZE": "Grootte van berichtlettertype", "AGENTTRANSFER": "Agent Transfer", "AGENTTRANSFERTIMEOUT": "Agent Transfer Timeout", - "DIALOGFLOW": "Dialogflow (deprecated)", + "DIALOGFLOW": "Dialogflow", "EDIT_DIALOGFLOW": "Bewerk Dialogflow", "LANGUAGE": "Taal", "QUEUETRANSFER": "Wachtrijoverdracht", @@ -450,6 +453,11 @@ "VIDAOOAPIKEY": "Vidaoo Api-sleutel", "VIDAOOESCALATION": "Start videogesprek", "VIDAOOSESSION": "Start videogesprek", - "VIDEO": "Video" + "VIDEO": "Video", + "CLIENTEMAIL": "E-mail van de klant", + "DIALOGFLOWV2": "Dialogflow V2", + "EDIT_DIALOGFLOWV2": "Bewerk Dialogflow V2", + "PRIVATEKEY": "Prive sleutel", + "PROJECTID": "Project-ID" } } diff --git a/public/app/main/apps/chat/i18n/no.json b/public/app/main/apps/chat/i18n/no.json index 4ba2237..67802ed 100644 --- a/public/app/main/apps/chat/i18n/no.json +++ b/public/app/main/apps/chat/i18n/no.json @@ -139,7 +139,10 @@ "BOTNAME_REQUIRED": "Obligatoriske felt", "SECRETACCESSKEY_REQUIRED": "Obligatoriske felt", "MANDATORYDISPOSITIONPAUSEID_REQUIRED": "Obligatoriske felt", - "VIDAOOAPIKEY_REQUIRED": "Obligatoriske felt" + "VIDAOOAPIKEY_REQUIRED": "Obligatoriske felt", + "CLIENTEMAIL_REQUIRED": "Obligatoriske felt", + "PRIVATEKEY_REQUIRED": "Obligatoriske felt", + "PROJECTID_REQUIRED": "Obligatoriske felt" }, "CM_FIELD": "Kontakt leder", "CHATPROACTIVEACTIONS": "Proaktive tiltak", @@ -416,7 +419,7 @@ "MESSAGEFONTSIZE": "Melding skriftstørrelse", "AGENTTRANSFER": "Agentoverføring", "AGENTTRANSFERTIMEOUT": "Agent Transfer Timeout", - "DIALOGFLOW": "Dialogflow (deprecated)", + "DIALOGFLOW": "Dialogflow", "EDIT_DIALOGFLOW": "Rediger Dialogflow", "LANGUAGE": "Språk", "QUEUETRANSFER": "Køoverføring", @@ -450,6 +453,11 @@ "VIDAOOAPIKEY": "Vidaoo Api Key", "VIDAOOESCALATION": "Start videosamtale", "VIDAOOSESSION": "Start videosamtale", - "VIDEO": "video" + "VIDEO": "video", + "CLIENTEMAIL": "Klientens e-post", + "DIALOGFLOWV2": "Dialogflow V2", + "EDIT_DIALOGFLOWV2": "Rediger Dialogflow V2", + "PRIVATEKEY": "Privat nøkkel", + "PROJECTID": "Prosjekt-ID" } } diff --git a/public/app/main/apps/chat/i18n/pl.json b/public/app/main/apps/chat/i18n/pl.json index 82cf431..b7a5a5a 100644 --- a/public/app/main/apps/chat/i18n/pl.json +++ b/public/app/main/apps/chat/i18n/pl.json @@ -161,7 +161,10 @@ "BOTNAME_REQUIRED": "Pole obowiązkowe", "SECRETACCESSKEY_REQUIRED": "Pole obowiązkowe", "MANDATORYDISPOSITIONPAUSEID_REQUIRED": "Pole obowiązkowe", - "VIDAOOAPIKEY_REQUIRED": "Pole obowiązkowe" + "VIDAOOAPIKEY_REQUIRED": "Pole obowiązkowe", + "CLIENTEMAIL_REQUIRED": "Pole obowiązkowe", + "PRIVATEKEY_REQUIRED": "Pole obowiązkowe", + "PROJECTID_REQUIRED": "Pole obowiązkowe" }, "CM_FIELD": "Pole Contact Manager", "CHATPROACTIVEACTIONS": "Działania proaktywne", @@ -416,7 +419,7 @@ "MESSAGEFONTSIZE": "Rozmiar czcionki wiadomości", "AGENTTRANSFER": "Przeniesienie agenta", "AGENTTRANSFERTIMEOUT": "Limit czasu przeniesienia agenta", - "DIALOGFLOW": "Dialogflow (deprecated)", + "DIALOGFLOW": "Dialogflow", "EDIT_DIALOGFLOW": "Edytuj przepływ dialogowy", "LANGUAGE": "Język", "QUEUETRANSFER": "Transfer kolejki", @@ -450,6 +453,11 @@ "VIDAOOAPIKEY": "Klucz Vidaoo Api", "VIDAOOESCALATION": "Rozpocznij rozmowę wideo", "VIDAOOSESSION": "Rozpocznij rozmowę wideo", - "VIDEO": "Wideo" + "VIDEO": "Wideo", + "CLIENTEMAIL": "E-mail klienta", + "DIALOGFLOWV2": "Dialogflow V2", + "EDIT_DIALOGFLOWV2": "Edytuj Dialogflow V2", + "PRIVATEKEY": "Prywatny klucz", + "PROJECTID": "Identyfikator projektu" } } diff --git a/public/app/main/apps/chat/i18n/pt-BR.json b/public/app/main/apps/chat/i18n/pt-BR.json index 884fdbc..0a139a6 100644 --- a/public/app/main/apps/chat/i18n/pt-BR.json +++ b/public/app/main/apps/chat/i18n/pt-BR.json @@ -20,7 +20,7 @@ "WELCOMEMESSAGE": "Mensagem de boas-vindas", "LANGUAGE": "Idioma", "EDIT_DIALOGFLOW": "Editar Dialogflow", - "DIALOGFLOW": "Dialogflow (deprecated)", + "DIALOGFLOW": "Dialogflow", "BACKGROUNDCOLOR": "Cor de fundo", "MESSAGEFONTSIZE": "Tamanho da fonte da mensagem", "TAG": "Tag", @@ -241,7 +241,10 @@ "WAITINGTITLE_MAX_LENGTH": "O valor deve ter um tamanho máximo igual a {{max}}", "RATINGSTARSNUMBER_MUST_BE_LESS_THAN_OR_EQUAL_TO": "O valor deve ser menor ou igual a", "MANDATORYDISPOSITIONPAUSEID_REQUIRED": "Campo obrigatório", - "VIDAOOAPIKEY_REQUIRED": "Campo Obrigatório" + "VIDAOOAPIKEY_REQUIRED": "Campo Obrigatório", + "CLIENTEMAIL_REQUIRED": "Campo Obrigatório", + "PRIVATEKEY_REQUIRED": "Campo Obrigatório", + "PROJECTID_REQUIRED": "Campo Obrigatório" }, "CM_FIELD": "Contact Manager Field", "CHATPROACTIVEACTIONS": "Ações proativas", @@ -450,6 +453,11 @@ "VIDAOOAPIKEY": "Vidaoo Api Key", "VIDAOOESCALATION": "Iniciar videochamada", "VIDAOOSESSION": "Iniciar videochamada", - "VIDEO": "Vídeo" + "VIDEO": "Vídeo", + "CLIENTEMAIL": "Email do cliente", + "DIALOGFLOWV2": "Dialogflow V2", + "EDIT_DIALOGFLOWV2": "Editar Dialogflow V2", + "PRIVATEKEY": "Chave privada", + "PROJECTID": "ID do projeto" } } diff --git a/public/app/main/apps/chat/i18n/pt-PT.json b/public/app/main/apps/chat/i18n/pt-PT.json index 3573b91..b73603d 100644 --- a/public/app/main/apps/chat/i18n/pt-PT.json +++ b/public/app/main/apps/chat/i18n/pt-PT.json @@ -139,7 +139,10 @@ "BOTNAME_REQUIRED": "Campo Obrigatório", "SECRETACCESSKEY_REQUIRED": "Campo Obrigatório", "MANDATORYDISPOSITIONPAUSEID_REQUIRED": "Campo obrigatório", - "VIDAOOAPIKEY_REQUIRED": "Campo Obrigatório" + "VIDAOOAPIKEY_REQUIRED": "Campo Obrigatório", + "CLIENTEMAIL_REQUIRED": "Campo Obrigatório", + "PRIVATEKEY_REQUIRED": "Campo Obrigatório", + "PROJECTID_REQUIRED": "Campo Obrigatório" }, "CM_FIELD": "Campo Contact Manager", "CHATPROACTIVEACTIONS": "Ações proativas", @@ -416,7 +419,7 @@ "MESSAGEFONTSIZE": "Tamanho da fonte da mensagem", "AGENTTRANSFER": "Transferência de Agente", "AGENTTRANSFERTIMEOUT": "Tempo limite de transferência do agente", - "DIALOGFLOW": "Dialogflow (deprecated)", + "DIALOGFLOW": "Dialogflow", "EDIT_DIALOGFLOW": "Editar Dialogflow", "LANGUAGE": "Língua", "QUEUETRANSFER": "Transferência de fila", @@ -450,6 +453,11 @@ "VIDAOOAPIKEY": "Vidaoo Api Key", "VIDAOOESCALATION": "Iniciar videochamada", "VIDAOOSESSION": "Iniciar videochamada", - "VIDEO": "Vídeo" + "VIDEO": "Vídeo", + "CLIENTEMAIL": "Email do cliente", + "DIALOGFLOWV2": "Dialogflow V2", + "EDIT_DIALOGFLOWV2": "Editar Dialogflow V2", + "PRIVATEKEY": "Chave privada", + "PROJECTID": "ID do projeto" } } diff --git a/public/app/main/apps/chat/i18n/ru.json b/public/app/main/apps/chat/i18n/ru.json index 2cbb410..09c0a32 100644 --- a/public/app/main/apps/chat/i18n/ru.json +++ b/public/app/main/apps/chat/i18n/ru.json @@ -139,7 +139,10 @@ "BOTNAME_REQUIRED": "Обязательное поле", "SECRETACCESSKEY_REQUIRED": "Обязательное поле", "MANDATORYDISPOSITIONPAUSEID_REQUIRED": "Обязательное поле", - "VIDAOOAPIKEY_REQUIRED": "Обязательное поле" + "VIDAOOAPIKEY_REQUIRED": "Обязательное поле", + "CLIENTEMAIL_REQUIRED": "Обязательное поле", + "PRIVATEKEY_REQUIRED": "Обязательное поле", + "PROJECTID_REQUIRED": "Обязательное поле" }, "CM_FIELD": "Контактное поле Менеджер", "CHATPROACTIVEACTIONS": "Профилактические меры", @@ -416,7 +419,7 @@ "MESSAGEFONTSIZE": "Размер шрифта сообщения", "AGENTTRANSFER": "Передача агента", "AGENTTRANSFERTIMEOUT": "Тайм-аут передачи агента", - "DIALOGFLOW": "Dialogflow (deprecated)", + "DIALOGFLOW": "Dialogflow", "EDIT_DIALOGFLOW": "Редактировать диалог", "LANGUAGE": "язык", "QUEUETRANSFER": "Передача очереди", @@ -450,6 +453,11 @@ "VIDAOOAPIKEY": "Ключ Vidaoo Api", "VIDAOOESCALATION": "Начать видеозвонок", "VIDAOOSESSION": "Начать видеозвонок", - "VIDEO": "видео" + "VIDEO": "видео", + "CLIENTEMAIL": "Электронная почта клиента", + "DIALOGFLOWV2": "Dialogflow V2", + "EDIT_DIALOGFLOWV2": "Редактировать Dialogflow V2", + "PRIVATEKEY": "Закрытый ключ", + "PROJECTID": "ID проекта" } } diff --git a/public/app/main/apps/chat/i18n/sv.json b/public/app/main/apps/chat/i18n/sv.json index c848306..d33b66f 100644 --- a/public/app/main/apps/chat/i18n/sv.json +++ b/public/app/main/apps/chat/i18n/sv.json @@ -139,7 +139,10 @@ "BOTNAME_REQUIRED": "Obligatoriskt fält", "SECRETACCESSKEY_REQUIRED": "Obligatoriskt fält", "MANDATORYDISPOSITIONPAUSEID_REQUIRED": "Obligatoriskt fält", - "VIDAOOAPIKEY_REQUIRED": "Obligatoriskt fält" + "VIDAOOAPIKEY_REQUIRED": "Obligatoriskt fält", + "CLIENTEMAIL_REQUIRED": "Obligatoriskt fält", + "PRIVATEKEY_REQUIRED": "Obligatoriskt fält", + "PROJECTID_REQUIRED": "Obligatoriskt fält" }, "CM_FIELD": "Kontakthanterarfältet", "CHATPROACTIVEACTIONS": "Proaktiva åtgärder", @@ -416,7 +419,7 @@ "MESSAGEFONTSIZE": "Meddelandetextstorlek", "AGENTTRANSFER": "Agentöverföring", "AGENTTRANSFERTIMEOUT": "Timeout för agentöverföring", - "DIALOGFLOW": "Dialogflow (deprecated)", + "DIALOGFLOW": "Dialogflow", "EDIT_DIALOGFLOW": "Redigera dialogflow", "LANGUAGE": "Språk", "QUEUETRANSFER": "Kööverföring", @@ -450,6 +453,11 @@ "VIDAOOAPIKEY": "Vidaoo Api Key", "VIDAOOESCALATION": "Starta videosamtal", "VIDAOOSESSION": "Starta videosamtal", - "VIDEO": "Video" + "VIDEO": "Video", + "CLIENTEMAIL": "Kundens e-post", + "DIALOGFLOWV2": "Dialogflow V2", + "EDIT_DIALOGFLOWV2": "Redigera Dialogflow V2", + "PRIVATEKEY": "Privat nyckel", + "PROJECTID": "Projekt-ID" } } diff --git a/public/app/main/apps/chat/i18n/tr.json b/public/app/main/apps/chat/i18n/tr.json index 131f113..9392cb6 100644 --- a/public/app/main/apps/chat/i18n/tr.json +++ b/public/app/main/apps/chat/i18n/tr.json @@ -139,7 +139,10 @@ "BOTNAME_REQUIRED": "Zorunlu alan", "SECRETACCESSKEY_REQUIRED": "Zorunlu alan", "MANDATORYDISPOSITIONPAUSEID_REQUIRED": "Zorunlu alan", - "VIDAOOAPIKEY_REQUIRED": "Zorunlu alan" + "VIDAOOAPIKEY_REQUIRED": "Zorunlu alan", + "CLIENTEMAIL_REQUIRED": "Zorunlu alan", + "PRIVATEKEY_REQUIRED": "Zorunlu alan", + "PROJECTID_REQUIRED": "Zorunlu alan" }, "CM_FIELD": "Kişi Yöneticisi Alan", "CHATPROACTIVEACTIONS": "Proaktif Eylemler", @@ -416,7 +419,7 @@ "MESSAGEFONTSIZE": "Mesaj Yazı Boyutu", "AGENTTRANSFER": "Ajan Transferi", "AGENTTRANSFERTIMEOUT": "Ajan Transfer Zaman Aşımı", - "DIALOGFLOW": "Dialogflow (deprecated)", + "DIALOGFLOW": "Dialogflow", "EDIT_DIALOGFLOW": "Dialogflow'u Düzenle", "LANGUAGE": "Dil", "QUEUETRANSFER": "Kuyruk Aktarımı", @@ -450,6 +453,11 @@ "VIDAOOAPIKEY": "Vidaoo Api Anahtarı", "VIDAOOESCALATION": "Görüntülü Görüşmeyi Başlatın", "VIDAOOSESSION": "Görüntülü Görüşmeyi Başlatın", - "VIDEO": "Video" + "VIDEO": "Video", + "CLIENTEMAIL": "Müşteri E-postası", + "DIALOGFLOWV2": "Dialogflow V2", + "EDIT_DIALOGFLOWV2": "Dialogflow V2'yi düzenle", + "PRIVATEKEY": "Özel anahtar", + "PROJECTID": "Proje kimliği" } } diff --git a/public/app/main/apps/chat/i18n/zh-CN.json b/public/app/main/apps/chat/i18n/zh-CN.json index fb7b26d..88fa5c7 100644 --- a/public/app/main/apps/chat/i18n/zh-CN.json +++ b/public/app/main/apps/chat/i18n/zh-CN.json @@ -139,7 +139,10 @@ "BOTNAME_REQUIRED": "必填项", "SECRETACCESSKEY_REQUIRED": "必填项", "MANDATORYDISPOSITIONPAUSEID_REQUIRED": "必填项", - "VIDAOOAPIKEY_REQUIRED": "必填项" + "VIDAOOAPIKEY_REQUIRED": "必填项", + "CLIENTEMAIL_REQUIRED": "必填项", + "PRIVATEKEY_REQUIRED": "必填项", + "PROJECTID_REQUIRED": "必填项" }, "CM_FIELD": "联系人管理器字段", "CHATPROACTIVEACTIONS": "积极主动的行动。", @@ -416,7 +419,7 @@ "MESSAGEFONTSIZE": "消息字体大小", "AGENTTRANSFER": "代理转移", "AGENTTRANSFERTIMEOUT": "代理转移超时", - "DIALOGFLOW": "Dialogflow (deprecated)", + "DIALOGFLOW": "Dialogflow", "EDIT_DIALOGFLOW": "编辑Dialogflow", "LANGUAGE": "语言", "QUEUETRANSFER": "队列转移", @@ -450,6 +453,11 @@ "VIDAOOAPIKEY": "Vidaoo Api Key", "VIDAOOESCALATION": "开始视频通话", "VIDAOOSESSION": "开始视频通话", - "VIDEO": "视频" + "VIDEO": "视频", + "CLIENTEMAIL": "客户电邮", + "DIALOGFLOWV2": "Dialogflow V2", + "EDIT_DIALOGFLOWV2": "编辑Dialogflow V2", + "PRIVATEKEY": "私钥", + "PROJECTID": "专案编号" } } diff --git a/public/app/main/apps/chat/i18n/zh-TW.json b/public/app/main/apps/chat/i18n/zh-TW.json index f6a6475..32f914d 100644 --- a/public/app/main/apps/chat/i18n/zh-TW.json +++ b/public/app/main/apps/chat/i18n/zh-TW.json @@ -139,7 +139,10 @@ "BOTNAME_REQUIRED": "必填項", "SECRETACCESSKEY_REQUIRED": "必填項", "MANDATORYDISPOSITIONPAUSEID_REQUIRED": "必填項", - "VIDAOOAPIKEY_REQUIRED": "必填項" + "VIDAOOAPIKEY_REQUIRED": "必填項", + "CLIENTEMAIL_REQUIRED": "必填項", + "PRIVATEKEY_REQUIRED": "必填項", + "PROJECTID_REQUIRED": "必填項" }, "CM_FIELD": "Contact Manager 欄位", "CHATPROACTIVEACTIONS": "預防措施", @@ -416,7 +419,7 @@ "MESSAGEFONTSIZE": "消息字體大小", "AGENTTRANSFER": "代理轉移", "AGENTTRANSFERTIMEOUT": "代理轉移超時", - "DIALOGFLOW": "Dialogflow (deprecated)", + "DIALOGFLOW": "Dialogflow", "EDIT_DIALOGFLOW": "編輯Dialogflow", "LANGUAGE": "語言", "QUEUETRANSFER": "隊列轉移", @@ -450,6 +453,11 @@ "VIDAOOAPIKEY": "Vidaoo Api Key", "VIDAOOESCALATION": "開始視頻通話", "VIDAOOSESSION": "開始視頻通話", - "VIDEO": "視頻" + "VIDEO": "視頻", + "CLIENTEMAIL": "客戶電郵", + "DIALOGFLOWV2": "Dialogflow V2", + "EDIT_DIALOGFLOWV2": "編輯Dialogflow V2", + "PRIVATEKEY": "私鑰", + "PROJECTID": "專案編號" } } diff --git a/public/app/main/apps/dashboards/i18n/he.json b/public/app/main/apps/dashboards/i18n/he.json index 2fd39fd..e1b160b 100644 --- a/public/app/main/apps/dashboards/i18n/he.json +++ b/public/app/main/apps/dashboards/i18n/he.json @@ -148,7 +148,7 @@ "MOTION_BULL": "תותח שיחות", "LIMITED": "מוגבל", "LIMITED_TEXT": "שיחות שיזם קמפיין נתב שיחות", - "DASHBOARDS": "לוחות מחוונים", + "DASHBOARDS": "לוחות שעונים", "RECORDINGS": "הקלטות", "TODAY_MOTION_BULL_STATS": "סטטיסטיקה יומית של חייגן אוטומטי", "ORIGINATED": "מקור", @@ -251,7 +251,7 @@ "WELCOME_MESSAGE": "השתמש במסגרת השמאלית לניווט", "ADD": "הוסף", "CONTACTMANAGER": "מנהל אנשי הקשר", - "DASHBOARD": "לוח מחוונים", + "DASHBOARD": "לוח שעונים", "EDIT_CONTACT": "ערוך איש קשר", "EMAIL": "דוא\"ל", "FULLNAME": "שם מלא", diff --git a/public/app/main/apps/motiondialer/i18n/he.json b/public/app/main/apps/motiondialer/i18n/he.json index a66c773..97d014a 100644 --- a/public/app/main/apps/motiondialer/i18n/he.json +++ b/public/app/main/apps/motiondialer/i18n/he.json @@ -25,7 +25,7 @@ "ALL": "הכול", "IDLE": "בהמתנה", "TIMER": "טיימר", - "MOVE_HOPPERFINAL": "שחזר איש קשר למשפך", + "MOVE_HOPPERFINAL": "שחזור איש קשר למשפך", "RESTORECONTACTS": "שחזור אנשי קשר", "NO_SUCH_NUMBER": "אין מספר כזה", "DIALORDERBYSCHEDULEDAT": "סדר לפי תאריך שיבוץ", @@ -77,10 +77,10 @@ "RESPONSETIME": "זמן עד למענה", "ENDTIME": "שעת סיום", "STATUS": "סטטוס", - "HOPPERS": "משפכים", + "HOPPERS": "משפך", "NO_HOPPER_AVAILABLE": "אין פריטים זמינים", - "EDIT_HOPPER": "ערוך משפך", - "DELETE_HOPPER": "מחק משפך", + "EDIT_HOPPER": "עריכת משפך", + "DELETE_HOPPER": "מחיקת משפך", "FINAL": "סופי", "BLACKLIST": "רשימה שחורה", "NAME": "שם", diff --git a/public/app/main/apps/openchannel/i18n/ar.json b/public/app/main/apps/openchannel/i18n/ar.json index db9c655..96690de 100644 --- a/public/app/main/apps/openchannel/i18n/ar.json +++ b/public/app/main/apps/openchannel/i18n/ar.json @@ -1,13 +1,65 @@ { "OPENCHANNEL": { "ERRORS": { + "ACCEPTURL_MUST_VALID_URL": "يجب أن يكون العنوان الالكترونى الخاص بالموافقه صالحا", + "AGENT_TIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "يجب أن يكون إنهاء الوقت من قبل ممثل الخدمة خلال مدة أكبر من أو تساوي", + "AGENT_TIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "يجب أن يكون إنهاء الوقت من قبل ممثل الخدمة خلال مدة أقل من أو تساوي", + "AGENT_TIMEOUT_REQUIRED": "فترة إنهاء الوقت من قبل ممثل الخدمة مطلوبه", + "COMMAND_REQUIRED": "الأمر مطلوب", + "KEY_REQUIRED": "المفتاح مطلوب", + "LIST_REQUIRED": "القائمه مطلوبه", + "MOTIONADDRESS_MUST_VALID_URL": "صيغة خاطئة", + "MOTIONADDRESS_REQUIRED": "حقل الزامي", + "NAME_MUST_VALID_PATTERN": "يجب كتابه الاسم بنمط صحيح", + "NAME_REQUIRED": "الاسم مطلوب", + "REJECTURL_MUST_VALID_URL": "يجب أن يكون العنوان الالكترونى الخاص بالرفض صالحا", + "TEXT_MAX_LENGTH": "الحد الأقصى لطول النص", + "TEXT_REQUIRED": "النص مطلوب", + "TIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "يجب أن يكون إنهاء الوقت خلال مدة أقل من أو تساوي", + "TIMEOUT_REQUIRED": "انتهاء الوقت مطلوب", + "VALUE_REQUIRED": "القيمه مطلوبة", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "يجب أن يكون فترة إنتظار ممثل الخدمة المعين خلال مدة أكبر من أو تساوي", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "يجب أن يكون فترة إنتظار ممثل الخدمة المعين خلال مدة أقل من أو تساوي", + "WAITFORTHEASSIGNEDAGENT_REQUIRED": "فترة إنتظار ممثل الخدمة المعين مطلوبة", + "AGENT_REQUIRED": "ممثل الخدمه مطلوب", + "CLOSEURL_MUST_VALID_URL": "يجب أن يكون العنوان الالكترونى الخاص بالإغلاق صالحا", + "CONDITION_REQUIRED": "الشرط مطلوب", + "DISPOSITION_REQUIRED": "التغير مطلوب", + "FALSEPRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "يجب أن تكون نسبه الأولوية الخاطئه بقيمه اكبر من أو تساوي", + "FALSEPRIORITY_REQUIRED": "الأولوية الخاطئة مطلوبه", + "KEY_MAX_LENGTH": "الحد الأقصى لحجم المفتاح", + "PRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "يجب أن يكون إعطاءالأولوية بقيمه أكبر من أو تساوي", + "PRIORITY_REQUIRED": "الاولويه مطلوبه", + "QUEUE_REQUIRED": "قائمه الانتظار مطلوبه", "REPLYURI_MUST_VALID_URL": "يجب أن يكون رد معرف الموارد الموحد رابطا الكترونى صالح", - "REPLYURI_REQUIRED": " رد معرف الموارد الموحد مطلوب" + "REPLYURI_REQUIRED": " رد معرف الموارد الموحد مطلوب", + "TIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "يجب أن يكون إنهاء الوقت خلال مدة أكبر من أو تساوي", + "TRUEPRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "يجب أن تكون نسبه الاولوية الحقيقيه بقيمه أكبر من أو تساوي", + "TRUEPRIORITY_REQUIRED": " الاولوية الحقيقيه مطلوبه", + "TAG_REQUIRED": "العلامه مطلوبه", + "AGENTTRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "يجب أن تكون القيمة أكبر من أو تساوي", + "AGENTTRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "يجب أن تكون القيمة أقل من أو تساوي", + "AGENTTRANSFERTIMEOUT_REQUIRED": "حقل الزامي", + "QUEUETRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "يجب أن تكون القيمة أكبر من أو تساوي", + "QUEUETRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "يجب أن تكون القيمة أقل من أو تساوي", + "QUEUETRANSFERTIMEOUT_REQUIRED": "حقل الزامي", + "MANDATORYDISPOSITIONPAUSEID_REQUIRED": "حقل الزامي", + "ACCESSKEYID_REQUIRED": "معرف مفتاح الوصول مطلوب", + "BOTNAME_REQUIRED": "اسم بوت مطلوب", + "SECRETACCESSKEY_REQUIRED": "مطلوب مفتاح الوصول السري", + "CLIENTEMAIL_REQUIRED": "حقل الزامي", + "PRIVATEKEY_REQUIRED": "حقل الزامي", + "PROJECTID_REQUIRED": "حقل الزامي" }, "HELP": { "RECEIVEURI": "سلسلة API تم إنشاؤها تلقائيًا لاستخدامها لتلقي الرسائل داخل القناة المفتوحة من التطبيق الخارجي (باستخدام طريقة POST). انقر فوق زر الحافظة لنسخها", "REPLYURI": "عنوان URL الذي ستطلقه القناة المفتوحة عند إرسال رسالة أو الرد عليها. لمزيد من التفاصيل ، اطلع على خطوات تهيئة here", "RECEIVEURI": "Auto-generated API string to be used in order to receive messages inside your open channel from the external application (using POST method). Click the clipboard button to copy it ", - "REPLYURI": "The URL the open channel will call when sending or replying to a message. For more details see the doc here" + "REPLYURI": "The URL the open channel will call when sending or replying to a message. For more details see the doc here", + "NAME": "Only numbers, letters and specific characters (._) are supported", + "LIST": "Contact Manager List used to associate contacts", + "MANDATORYDISPOSITION": "Povinná dispozice", + "MANDATORYDISPOSITIONPAUSEID": "Pokud je povolena povinná dispozice, pozastavte jej", + "WELCOMEMESSAGE": "Toto je první odezva na nové interakce." }, "PAGE": "Page", "ROWSPERPAGE": "Rows per page", @@ -191,7 +245,7 @@ "ACCESSKEYID": "ID přístupového klíče", "AMAZONLEX": "AmazonLex", "BOTNAME": "Název bota", - "DIALOGFLOW": "Dialogflow (deprecated)", + "DIALOGFLOW": "Dialogflow", "DOWNLOAD_WITHOUT_ATTACHMENTS": "Stahujte bez příloh", "DOWNLOAD_WITH_ATTACHMENTS": "Stáhnout s přílohami", "EDIT_AMAZONLEX": "Upravit konfiguraci Lex", @@ -199,9 +253,17 @@ "LANGUAGE": "Jazyk", "LASTMESSAGE": "Poslední zpráva", "LEXREGION": "Kraj", + "MANDATORYDISPOSITION": "Povinná dispozice", + "MANDATORYDISPOSITIONPAUSEID": "Pokud je povolena povinná dispozice, pozastavte jej", "SECRETACCESSKEY": "Přístup k tajným klíčům", "TEAMS_ASSOCIATION": "Asociace týmů", "TOOLTIP_SCREENRECORDING_OFF": "K dispozici je nahrávání obrazovky", - "TOOLTIP_SCREENRECORDING_ON": "Probíhá nahrávání obrazovky" + "TOOLTIP_SCREENRECORDING_ON": "Probíhá nahrávání obrazovky", + "WELCOMEMESSAGE": "Uvítací zpráva", + "CLIENTEMAIL": "E-mail klienta", + "DIALOGFLOWV2": "Dialogflow V2", + "EDIT_DIALOGFLOWV2": "Upravit Dialogflow V2", + "PRIVATEKEY": "Soukromý klíč", + "PROJECTID": "ID projektu" } } diff --git a/public/app/main/apps/openchannel/i18n/da.json b/public/app/main/apps/openchannel/i18n/da.json index 18b4903..f95259d 100644 --- a/public/app/main/apps/openchannel/i18n/da.json +++ b/public/app/main/apps/openchannel/i18n/da.json @@ -4,11 +4,59 @@ "TIMES": "Antal gange pr. interaktion", "EDIT_AUTOREPLY": "Edit Auto svar", "AUTOREPLY": "Automatisk svar", + "NAME": "Navnet", "OPENCHANNELQUEUES": "Åben Kanal køer", "SEARCH_FOR_ANYONE": "Søg efter alle", "ERRORS": { + "TEXT_REQUIRED": "Feltet tekst er påkrævet", + "NAME_REQUIRED": "Navnet er påkrævet", + "AGENT_TIMEOUT_REQUIRED": "Agenten Timeout er påkrævet", + "MOTIONADDRESS_REQUIRED": "Motion Adresse skal angives.", + "MOTIONADDRESS_MUST_VALID_URL": "Motion adresse skal være skrevet i et gyldigt format", + "ACCEPTURL_MUST_VALID_URL": "Det acceptere URL skal være skrevet i et gyldigt format", + "TIMEOUT_REQUIRED": "Timeout er påkrævet", + "REJECTURL_MUST_VALID_URL": "Reject-URL skal være skrevet i et gyldigt format", + "CLOSEURL_MUST_VALID_URL": "Den tætte URL skal være skrevet i et gyldigt format", "REPLYURI_REQUIRED": "Svaret URL er påkrævet", - "REPLYURI_MUST_VALID_URL": "Svaret URL skal være skrevet i et gyldigt format" + "REPLYURI_MUST_VALID_URL": "Svaret URL skal være skrevet i et gyldigt format", + "PRIORITY_REQUIRED": "Indsatsen er påkrævet", + "CONDITION_REQUIRED": "Betingelsen er påkrævet", + "TRUEPRIORITY_REQUIRED": "Den sande prioritering er nødvendig", + "FALSEPRIORITY_REQUIRED": "Den falske prioritet er påkrævet", + "AGENT_REQUIRED": "Obligatorisk felt", + "TIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Værdien skal være større end eller lig med", + "PRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Værdien skal være større end eller lig med", + "TRUEPRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Værdien skal være større end eller lig med", + "FALSEPRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Værdien skal være større end eller lig med", + "DISPOSITION_REQUIRED": "Obligatorisk felt", + "QUEUE_REQUIRED": "Obligatorisk felt", + "KEY_MAX_LENGTH": "Nøgle skal have en maksimal længde på {{max}}", + "TEXT_MAX_LENGTH": "Værdien skal have en maksimal længde svarende til {{max}}", + "VALUE_REQUIRED": "Obligatorisk felt", + "COMMAND_REQUIRED": "Obligatorisk felt", + "LIST_REQUIRED": "Obligatorisk felt", + "KEY_REQUIRED": "Obligatorisk felt", + "AGENT_TIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Værdien skal være større end eller lig med", + "NAME_MUST_VALID_PATTERN": "Forkert format", + "TIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Værdien skal være mindre end eller lig med", + "AGENT_TIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Værdien skal være mindre end eller lig med", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Værdien skal være større end eller lig med", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Værdien skal være mindre end eller lig med", + "WAITFORTHEASSIGNEDAGENT_REQUIRED": "Obligatorisk felt", + "TAG_REQUIRED": "Obligatorisk felt", + "AGENTTRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Værdien skal være større end eller lig med", + "AGENTTRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Værdien skal være mindre end eller lig med", + "AGENTTRANSFERTIMEOUT_REQUIRED": "Obligatorisk felt", + "QUEUETRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Værdien skal være større end eller lig med", + "QUEUETRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Værdien skal være mindre end eller lig med", + "QUEUETRANSFERTIMEOUT_REQUIRED": "Obligatorisk felt", + "MANDATORYDISPOSITIONPAUSEID_REQUIRED": "Obligatorisk felt", + "ACCESSKEYID_REQUIRED": "Adgangsnøgle-ID er påkrævet", + "BOTNAME_REQUIRED": "Bot navn kræves", + "SECRETACCESSKEY_REQUIRED": "Adgangsnøglehemmelighed er påkrævet", + "CLIENTEMAIL_REQUIRED": "Obligatorisk felt", + "PRIVATEKEY_REQUIRED": "Obligatorisk felt", + "PROJECTID_REQUIRED": "Obligatorisk felt" }, "STRATEGY": "Strategi", "AGENT": "Agent", @@ -49,6 +97,7 @@ "DISPOSITIONS": "Dispositions", "WEBHOOKS": "WebHooks", "ACTIONS": "Handlinger", + "LIST": "Listen", "FIDELITY": "Fidelity", "ACCEPT": "Accepter", "ACCEPTMETHOD": "Acceptere metode", @@ -82,7 +131,12 @@ "HELP": { "RECEIVEURI": "Det er autogenereret API string du skal bruge til at modtage beskeder i din åbne kanal fra din eksterne program (POST metode skal anvendes). Du kan trykke på knappen for at kopiere det til Udklipsholder i din udklipsholder.", "REPLYURI": "Det er URL open channel ringer ved afsendelse og besvarelse af en besked", - "TOKEN": "Tilføj denne egenskab som forespørgselsstreng i din webservicewebadresse. For flere detaljer se doc here", "RECEIVEURI": "Auto-generated API string to be used in order to receive messages inside your open channel from the external application (using POST method). Click the clipboard button to copy it ", - "REPLYURI": "The URL the open channel will call when sending or replying to a message. For more details see the doc here" + "REPLYURI": "The URL the open channel will call when sending or replying to a message. For more details see the doc here", + "NAME": "Only numbers, letters and specific characters (._) are supported", + "LIST": "Contact Manager List used to associate contacts", + "MANDATORYDISPOSITION": "Mandatory disposition", + "MANDATORYDISPOSITIONPAUSEID": "Pause to use if mandatory disposition is enabled" }, "PAGE": "Page", "ROWSPERPAGE": "Rows per page", diff --git a/public/app/main/apps/openchannel/i18n/es.json b/public/app/main/apps/openchannel/i18n/es.json index 3657516..aed186d 100644 --- a/public/app/main/apps/openchannel/i18n/es.json +++ b/public/app/main/apps/openchannel/i18n/es.json @@ -1,13 +1,65 @@ { "OPENCHANNEL": { "HELP": { + "LIST": "Lista de contactos de contacto utilizada para asociar contactos", + "NAME": "Solo se admiten números, letras y caracteres específicos (._)", "RECEIVEURI": "La cadena de la API generada automáticamente se utilizará para recibir mensajes dentro de su canal abierto desde la aplicación externa (utilizando el método POST). Haga clic en el botón del portapapeles para copiarlo", "REPLYURI": "La URL a la que llamará el canal abierto cuando envíe o responda un mensaje. Para obtener más información, consulte el documento here", "RECEIVEURI": "Auto-generated API string to be used in order to receive messages inside your open channel from the external application (using POST method). Click the clipboard button to copy it ", - "REPLYURI": "The URL the open channel will call when sending or replying to a message. For more details see the doc here" + "REPLYURI": "The URL the open channel will call when sending or replying to a message. For more details see the doc here", + "NAME": "Only numbers, letters and specific characters (._) are supported", + "LIST": "Contact Manager List used to associate contacts", + "MANDATORYDISPOSITION": "Kohustuslik käsutamine", + "MANDATORYDISPOSITIONPAUSEID": "Kasutamise peatamine, kui kohustuslik käsutamine on lubatud", + "WELCOMEMESSAGE": "See on esimene vastussõnum, mis saadetakse uutele interaktsioonidele." }, "PAGE": "Page", "ROWSPERPAGE": "Rows per page", @@ -199,9 +253,17 @@ "LANGUAGE": "Keel", "LASTMESSAGE": "Viimane teade", "LEXREGION": "Piirkond", + "MANDATORYDISPOSITION": "Kohustuslik käsutamine", + "MANDATORYDISPOSITIONPAUSEID": "Kasutamise peatamine, kui kohustuslik käsutamine on lubatud", "SECRETACCESSKEY": "Juurdepääsu võtme saladus", "TEAMS_ASSOCIATION": "Võistkondade liit", "TOOLTIP_SCREENRECORDING_OFF": "Ekraanisalvestus on saadaval", - "TOOLTIP_SCREENRECORDING_ON": "Ekraanisalvestus pooleli" + "TOOLTIP_SCREENRECORDING_ON": "Ekraanisalvestus pooleli", + "WELCOMEMESSAGE": "Tervitussõnum", + "CLIENTEMAIL": "Kliendi e-post", + "DIALOGFLOWV2": "Dialoogivoog V2", + "EDIT_DIALOGFLOWV2": "Redigeerimise dialoogivoog V2", + "PRIVATEKEY": "Privaatne võti", + "PROJECTID": "Projekti ID" } } diff --git a/public/app/main/apps/openchannel/i18n/fa.json b/public/app/main/apps/openchannel/i18n/fa.json index 1ead395..a0253b7 100644 --- a/public/app/main/apps/openchannel/i18n/fa.json +++ b/public/app/main/apps/openchannel/i18n/fa.json @@ -4,11 +4,59 @@ "TIMES": "تعداد بار در تعامل", "EDIT_AUTOREPLY": "ویرایش پاسخ خودکار", "AUTOREPLY": "پاسخ خودکار", + "NAME": "نام", "OPENCHANNELQUEUES": "صفهای طولانی کانال باز", "SEARCH_FOR_ANYONE": "در جستجوی کسی", "ERRORS": { + "TEXT_REQUIRED": "در حوزه متن لازم است.", + "NAME_REQUIRED": "نام لازم است.", + "AGENT_TIMEOUT_REQUIRED": "عامل پایان زمان لازم است.", + "MOTIONADDRESS_REQUIRED": "آدرس حركت لازم است.", + "MOTIONADDRESS_MUST_VALID_URL": "حركت باید آدرس را در یک فرمت معتبر نوشته شده است", + "ACCEPTURL_MUST_VALID_URL": "از پذیرفتن باید آدرس کامل را در یک فرمت معتبر نوشته شده است", + "TIMEOUT_REQUIRED": "در پایان زمان لازم است.", + "REJECTURL_MUST_VALID_URL": "آدرس کامل را رد كند بايد در فرمت معتبر نوشته شده است", + "CLOSEURL_MUST_VALID_URL": "آدرس کامل باید بسته به فرمت معتبر نوشته شده است", "REPLYURI_REQUIRED": "پاسخ اوري لازم است.", - "REPLYURI_MUST_VALID_URL": "پاسخ اوري بايد به فرمت معتبر نوشته شده است" + "REPLYURI_MUST_VALID_URL": "پاسخ اوري بايد به فرمت معتبر نوشته شده است", + "PRIORITY_REQUIRED": "اولويت لازم است.", + "CONDITION_REQUIRED": "شرط لازم است.", + "TRUEPRIORITY_REQUIRED": "تقدم حقيقي لازم است.", + "FALSEPRIORITY_REQUIRED": "به غلط اولویت لازم است.", + "AGENT_REQUIRED": "رشته الزامی", + "TIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "مقدار باید بیشتر یا مساوی با", + "PRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "مقدار باید بیشتر یا مساوی با", + "TRUEPRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "مقدار باید بیشتر یا مساوی با", + "FALSEPRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "مقدار باید بیشتر یا مساوی با", + "DISPOSITION_REQUIRED": "رشته الزامی", + "QUEUE_REQUIRED": "رشته الزامی", + "KEY_MAX_LENGTH": "کلید باید حداکثر برابر با طول حداکثر}} {{", + "TEXT_MAX_LENGTH": "مقدار باید طول حداکثر {{حداکثر}} باشد", + "VALUE_REQUIRED": "زمینه اجباری", + "COMMAND_REQUIRED": "زمینه اجباری", + "LIST_REQUIRED": "زمینه اجباری", + "KEY_REQUIRED": "زمینه اجباری", + "AGENT_TIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "مقدار باید بیشتر یا برابر باشد", + "NAME_MUST_VALID_PATTERN": "فرمت اشتباه", + "TIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "ارزش باید کمتر یا برابر باشد", + "AGENT_TIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "ارزش باید کمتر یا برابر باشد", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "مقدار باید بیشتر یا برابر باشد", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "ارزش باید کمتر یا برابر باشد", + "WAITFORTHEASSIGNEDAGENT_REQUIRED": "زمینه اجباری", + "TAG_REQUIRED": "زمینه اجباری", + "AGENTTRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "مقدار باید بیشتر یا برابر باشد", + "AGENTTRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "ارزش باید کمتر یا برابر باشد", + "AGENTTRANSFERTIMEOUT_REQUIRED": "زمینه اجباری", + "QUEUETRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "مقدار باید بیشتر یا برابر باشد", + "QUEUETRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "ارزش باید کمتر یا برابر باشد", + "QUEUETRANSFERTIMEOUT_REQUIRED": "زمینه اجباری", + "MANDATORYDISPOSITIONPAUSEID_REQUIRED": "زمینه اجباری", + "ACCESSKEYID_REQUIRED": "شناسه کلید دسترسی لازم است", + "BOTNAME_REQUIRED": "نام ربات لازم است", + "SECRETACCESSKEY_REQUIRED": "راز کلید دسترسی مورد نیاز است", + "CLIENTEMAIL_REQUIRED": "زمینه اجباری", + "PRIVATEKEY_REQUIRED": "زمینه اجباری", + "PROJECTID_REQUIRED": "زمینه اجباری" }, "STRATEGY": "استراتژي", "AGENT": "عامل", @@ -49,6 +97,7 @@ "DISPOSITIONS": "مكتبى", "WEBHOOKS": "WebHooks", "ACTIONS": "اقدامات", + "LIST": "فهرست", "FIDELITY": "وفاداري", "ACCEPT": "پذیرفتن", "ACCEPTMETHOD": "اين روش را قبول", @@ -82,7 +131,12 @@ "HELP": { "RECEIVEURI": "این API تولید خودکار عبارت شما نیاز به استفاده از آن دریافت پیام ها داخل کانال باز شما را از برنامه کاربردی خارجی (روش پست استفاده می شود). شما می توانید دکمه را فشار دهید تا یک کپی از آن را به حافظه موقت شما را در حافظه موقت کپی می کند.", "REPLYURI": "این کانال باز اوري وقتی تلفن یا ارسال پیام را به یک سووال", - "TOKEN": "این ویژگی را به عنوان رشته پرس و جو در URL سرویس وب خود اضافه کنید. برای جزئیات بیشتر به توضیحات مراجعه کنید doc כאן", "RECEIVEURI": "מחרוזת API המופקת באופן אוטומטי, משמשת לקבלת הודעות פתוחות בתוך הערוץ הפתוח שלך מהיישום החיצוני (בשיטת POST). לחץ על לחצן הלוח כדי להעתיק את המחרוזת ", - "REPLYURI": "כתובת ה-URL שהערוץ הפתוח יתקשר אליה בעת שליחת הודעה או תשובה על הודעה. לפרטים נוספים, עיין במסמך כאן" + "REPLYURI": "כתובת ה-URL שהערוץ הפתוח יתקשר אליה בעת שליחת הודעה או תשובה על הודעה. לפרטים נוספים, עיין במסמך כאן", + "NAME": "מותר לכלול רק ספרות, אותיות ותווים ספציפיים (._)", + "LIST": "רשימת 'מנהל אנשי הקשר' המשמשת לשיוך אנשי קשר", + "MANDATORYDISPOSITION": "סיכום", + "MANDATORYDISPOSITIONPAUSEID": "השהה לשימוש אם הסיכום מופעל", + "WELCOMEMESSAGE": "זוהי ההודעה הראשונה שנשלחה לאיש הקשר" }, "PAGE": "דף", "ROWSPERPAGE": "שורות בדף", @@ -189,9 +243,12 @@ "TO": "אל", "MAPKEY": "מפתח מפה", "TEAMS_ASSOCIATION": "איגוד הצוותים", + "MANDATORYDISPOSITION": "סיכום", + "MANDATORYDISPOSITIONPAUSEID": "השהה לשימוש כשהסיכום מופעל", "DIALOGFLOW": "זרימת דיאלוג", "EDIT_DIALOGFLOW": "ערוך את תצורת זרימת הדיאלוג", "LANGUAGE": "שפה", + "WELCOMEMESSAGE": "מסר ברוך הבא", "ACCESSKEYID": "גישה למזהה מפתח", "AMAZONLEX": "אמזון-לקס", "BOTNAME": "שם בוט", @@ -202,6 +259,11 @@ "TOOLTIP_SCREENRECORDING_ON": "הקלטת מסך מתבצעת", "DOWNLOAD_WITHOUT_ATTACHMENTS": "הורד ללא קבצים מצורפים", "DOWNLOAD_WITH_ATTACHMENTS": "הורד עם קבצים מצורפים", - "LASTMESSAGE": "הודעה אחרונה" + "LASTMESSAGE": "הודעה אחרונה", + "CLIENTEMAIL": "דוא\"ל לקוח", + "DIALOGFLOWV2": "Dialogflow V2", + "EDIT_DIALOGFLOWV2": "ערוך את Dialogflow V2", + "PRIVATEKEY": "מפתח פרטי", + "PROJECTID": "מזהה פרויקט" } } diff --git a/public/app/main/apps/openchannel/i18n/hi.json b/public/app/main/apps/openchannel/i18n/hi.json index ff77943..9892e37 100644 --- a/public/app/main/apps/openchannel/i18n/hi.json +++ b/public/app/main/apps/openchannel/i18n/hi.json @@ -4,11 +4,59 @@ "TIMES": "कई बार प्रति विचार-विमर्श", "EDIT_AUTOREPLY": "स् वत: उत्तर संपादित करें", "AUTOREPLY": "स्वत: उत्तर", + "NAME": "नाम", "OPENCHANNELQUEUES": "खुले चैनल कतार", "SEARCH_FOR_ANYONE": "किसी भी व्यक्ति की तलाश", "ERRORS": { + "TEXT_REQUIRED": "पाठ फ़ील्ड को अपेक्षित है।", + "NAME_REQUIRED": "नाम की आवश्यकता है।", + "AGENT_TIMEOUT_REQUIRED": "एजेंट समयबाह्य अपेक्षित है।", + "MOTIONADDRESS_REQUIRED": "अभिभाषण के प्रस्ताव की आवश्यकता है।", + "MOTIONADDRESS_MUST_VALID_URL": "यह प्रस्ताव एक मान्य स्वरूप में लिखा होना पता", + "ACCEPTURL_MUST_VALID_URL": "एक मान्य स्वरूप में लिखा होना URL को स्वीकार करें", + "TIMEOUT_REQUIRED": "इस समय की आवश्यकता है।", + "REJECTURL_MUST_VALID_URL": "एक मान्य स्वरूप में लिखा होना URL को अस्वीकार करें", + "CLOSEURL_MUST_VALID_URL": "एक मान्य स्वरूप में लिखा होना URL के निकट", "REPLYURI_REQUIRED": "उत्तर उरी अपेक्षित है।", - "REPLYURI_MUST_VALID_URL": "एक मान्य स्वरूप में लिखित उत्तर उरी होना" + "REPLYURI_MUST_VALID_URL": "एक मान्य स्वरूप में लिखित उत्तर उरी होना", + "PRIORITY_REQUIRED": "प्राथमिकता की आवश्यकता है।", + "CONDITION_REQUIRED": "की स्थिति की आवश्यकता है।", + "TRUEPRIORITY_REQUIRED": "यह सच प्राथमिकता की आवश्यकता है।", + "FALSEPRIORITY_REQUIRED": "झूठे प्राथमिकता की आवश्यकता है।", + "AGENT_REQUIRED": "अनिवार्य क्षेत्र", + "TIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "मूल्य के बराबर या अधिक होना चाहिए।", + "PRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "मूल्य के बराबर या अधिक होना चाहिए।", + "TRUEPRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "मूल्य के बराबर या अधिक होना चाहिए।", + "FALSEPRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "मूल्य के बराबर या अधिक होना चाहिए।", + "DISPOSITION_REQUIRED": "अनिवार्य क्षेत्र", + "QUEUE_REQUIRED": "अनिवार्य क्षेत्र", + "KEY_MAX_LENGTH": "कुंजी को एक समान सूबेदार सुरिन९दर सिनह को अधिकतम}{} अधिकतम लंबाई", + "TEXT_MAX_LENGTH": "मान {{अधिकतम}} के बराबर अधिकतम लंबाई होना चाहिए", + "VALUE_REQUIRED": "आवश्यक स्थान", + "COMMAND_REQUIRED": "आवश्यक स्थान", + "LIST_REQUIRED": "आवश्यक स्थान", + "KEY_REQUIRED": "आवश्यक स्थान", + "AGENT_TIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "मान से अधिक या बराबर होना चाहिए", + "NAME_MUST_VALID_PATTERN": "गलत प्रारूप", + "TIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "मान कम या बराबर होना चाहिए", + "AGENT_TIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "मान कम या बराबर होना चाहिए", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "मान से अधिक या बराबर होना चाहिए", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "मान कम या बराबर होना चाहिए", + "WAITFORTHEASSIGNEDAGENT_REQUIRED": "आवश्यक स्थान", + "TAG_REQUIRED": "आवश्यक स्थान", + "AGENTTRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "मान से अधिक या बराबर होना चाहिए", + "AGENTTRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "मान कम या बराबर होना चाहिए", + "AGENTTRANSFERTIMEOUT_REQUIRED": "आवश्यक स्थान", + "QUEUETRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "मान से अधिक या बराबर होना चाहिए", + "QUEUETRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "मान कम या बराबर होना चाहिए", + "QUEUETRANSFERTIMEOUT_REQUIRED": "आवश्यक स्थान", + "MANDATORYDISPOSITIONPAUSEID_REQUIRED": "आवश्यक स्थान", + "ACCESSKEYID_REQUIRED": "प्रवेश कुंजी आईडी की आवश्यकता है", + "BOTNAME_REQUIRED": "बॉट नाम आवश्यक है", + "SECRETACCESSKEY_REQUIRED": "प्रवेश कुंजी रहस्य की आवश्यकता है", + "CLIENTEMAIL_REQUIRED": "आवश्यक स्थान", + "PRIVATEKEY_REQUIRED": "आवश्यक स्थान", + "PROJECTID_REQUIRED": "आवश्यक स्थान" }, "STRATEGY": "रणनीति", "AGENT": "कर्ता", @@ -49,6 +97,7 @@ "DISPOSITIONS": "प्रवृतियों", "WEBHOOKS": "WebHooks", "ACTIONS": "क्रियाएं", + "LIST": "की सूची", "FIDELITY": "वास्तविक", "ACCEPT": "स्वीकार करना", "ACCEPTMETHOD": "तरीका स्वीकार करें", @@ -82,7 +131,12 @@ "HELP": { "RECEIVEURI": "यह स्वत: जनरेट वैक्टर तार आपको संदेश प्राप्त करने के लिए प्रयोग करने के लिए आपका अपने बाह्य अनुप्रयोग खोलने के अंदर चैनल (पोस्ट पद्धति का उपयोग किया जाना चाहिए। क्लिपबोर्ड पर कॉपी कर सकते हैं जो आपको आपकी में दबाएं बटन को क्लिपबोर्ड पर कॉपी किया गया.", "REPLYURI": "यह खुले उरी चैनल कॉल का उत्तर देते या संदेश भेजना", - "TOKEN": "इस वेब को अपने वेब सेवा यूआरएल में क्वेरी स्ट्रिंग के रूप में जोड़ें। अधिक जानकारी के लिए दस्तावेज़ di sini ", - "TOKEN": "Tambahkan properti ini sebagai string kueri di URL Layanan Web Anda. Untuk lebih jelasnya lihat dokumen di sini " + "TOKEN": "Tambahkan properti ini sebagai string kueri di URL Layanan Web Anda. Untuk lebih jelasnya lihat dokumen di sini ", + "MANDATORYDISPOSITION": "Disposisi wajib", + "MANDATORYDISPOSITIONPAUSEID": "Jeda untuk digunakan jika disposisi wajib diaktifkan", + "WELCOMEMESSAGE": "Ini adalah pesan pertama yang dikirim ke kontaktor" }, "ACCEPT": "Menerima", "ACCEPTMETHOD": "Terima Metode", @@ -89,10 +141,12 @@ "INTERNAL": "Intern", "IN_USE": "Digunakan", "KEY": "Kunci", + "LIST": "Daftar", "LOGGED_IN": "Masuk", "LOGOUT": "Keluar", "MAIL": "E-mail", "MOTIONADDRESS": "Alamat Gerak", + "NAME": "Nama", "NEW_OPENCHANNELACCOUNT": "Akun Saluran Terbuka baru", "NEW_OPENCHANNELCANNEDANSWER": "Jawaban Kalengan Baru", "NEW_OPENCHANNELDISPOSITION": "Open Channel Disposition Baru", @@ -189,9 +243,12 @@ "LOGIN_TIME": "Waktu masuk", "PAUSE_TIME": "Jeda waktu", "TEAMS_ASSOCIATION": "Asosiasi Tim", + "MANDATORYDISPOSITION": "Disposisi wajib", + "MANDATORYDISPOSITIONPAUSEID": "Jeda untuk digunakan jika disposisi wajib diaktifkan", "DIALOGFLOW": "Dialogflow", "EDIT_DIALOGFLOW": "Edit konfigurasi Dialogflow", "LANGUAGE": "Bahasa", + "WELCOMEMESSAGE": "Pesan Selamat Datang", "ACCESSKEYID": "ID kunci akses", "AMAZONLEX": "AmazonLex", "BOTNAME": "Nama bot", @@ -202,6 +259,11 @@ "TOOLTIP_SCREENRECORDING_ON": "Perekaman Layar sedang berlangsung", "DOWNLOAD_WITHOUT_ATTACHMENTS": "Unduh tanpa lampiran", "DOWNLOAD_WITH_ATTACHMENTS": "Unduh dengan lampiran", - "LASTMESSAGE": "Pesan Terakhir" + "LASTMESSAGE": "Pesan Terakhir", + "CLIENTEMAIL": "Email Klien", + "DIALOGFLOWV2": "Dialogflow V2", + "EDIT_DIALOGFLOWV2": "Edit Dialogflow V2", + "PRIVATEKEY": "Kunci Pribadi", + "PROJECTID": "ID Proyek" } } diff --git a/public/app/main/apps/openchannel/i18n/it.json b/public/app/main/apps/openchannel/i18n/it.json index c80e002..6d3cbad 100644 --- a/public/app/main/apps/openchannel/i18n/it.json +++ b/public/app/main/apps/openchannel/i18n/it.json @@ -44,11 +44,60 @@ "TIMES": "Numero di volte per interazione", "EDIT_AUTOREPLY": "Modifica Risposta Automatica", "AUTOREPLY": "Risposta Automatica", + "NAME": "Nome", "OPENCHANNELQUEUES": "Code Open Channel", "SEARCH_FOR_ANYONE": "Cerca", + "MANDATORYDISPOSITION": "Mandatory disposition", "ERRORS": { + "AGENTTRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Il valore deve essere maggiore o uguale a", + "AGENTTRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Il valore deve essere minore o uguale a", + "AGENTTRANSFERTIMEOUT_REQUIRED": "Campo obbligatorio", + "QUEUETRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Il valore deve essere maggiore o uguale a", + "QUEUETRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Il valore deve essere minore o uguale a", + "QUEUETRANSFERTIMEOUT_REQUIRED": "Campo obbligatorio", + "TAG_REQUIRED": "Campo obbligatorio", + "TEXT_MAX_LENGTH": "Il valore deve avere una lunghezza massima pari a {{max}}", + "VALUE_REQUIRED": "Campo obbligatorio", + "TEXT_REQUIRED": "Campo obbligatorio", + "NAME_REQUIRED": "Campo obbligatorio", + "AGENT_TIMEOUT_REQUIRED": "Campo obbligatorio", + "MOTIONADDRESS_REQUIRED": "Campo obbligatorio", + "MOTIONADDRESS_MUST_VALID_URL": "Il campo deve avere un formato valido", + "ACCEPTURL_MUST_VALID_URL": "Il campo deve avere un formato valido", + "TIMEOUT_REQUIRED": "Campo obbligatorio", + "REJECTURL_MUST_VALID_URL": "Il campo deve avere un formato valido", + "CLOSEURL_MUST_VALID_URL": "Il campo deve avere un formato valido", "REPLYURI_REQUIRED": "Campo obbligatorio", - "REPLYURI_MUST_VALID_URL": "Il campo deve avere un formato valido" + "REPLYURI_MUST_VALID_URL": "Il campo deve avere un formato valido", + "PRIORITY_REQUIRED": "Specificare la priorità", + "CONDITION_REQUIRED": "Campo obbligatorio", + "TRUEPRIORITY_REQUIRED": "Campo Obbligatorio (in caso di TRUE)", + "FALSEPRIORITY_REQUIRED": "Campo Obbligatorio (in caso di FALSE)", + "AGENT_REQUIRED": "Campo obbligatorio", + "TIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Il valore introdotto deve essere più grande di o uguale a", + "PRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Il valore introdotto deve essere più grande di o uguale a", + "TRUEPRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Il valore in caso di TRUE deve essere più grande di o uguale a", + "FALSEPRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Il valore in caso di FALSE deve essere più grande di o uguale a", + "DISPOSITION_REQUIRED": "Campo obbligatorio", + "QUEUE_REQUIRED": "Campo obbligatorio", + "KEY_MAX_LENGTH": "Il valore introdotto non deve essere più lungo di {{max}} caratteri", + "COMMAND_REQUIRED": "Campo obbligatorio", + "LIST_REQUIRED": "Campo obbligatorio", + "KEY_REQUIRED": "Campo obbligatorio", + "AGENT_TIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Il valore deve essere maggiore o uguale a", + "NAME_MUST_VALID_PATTERN": "Formato errato", + "TIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Il valore deve essere minore o uguale a", + "AGENT_TIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Il valore deve essere minore o uguale a", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Il valore deve essere maggiore o uguale a", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Il valore deve essere minore o uguale a", + "WAITFORTHEASSIGNEDAGENT_REQUIRED": "Campo obbligatorio", + "MANDATORYDISPOSITIONPAUSEID_REQUIRED": "Campo obbligatorio", + "ACCESSKEYID_REQUIRED": "È richiesto l'ID chiave di accesso", + "BOTNAME_REQUIRED": "È richiesto il nome del bot", + "SECRETACCESSKEY_REQUIRED": "È richiesto il segreto della chiave di accesso", + "CLIENTEMAIL_REQUIRED": "Campo obbligatorio", + "PRIVATEKEY_REQUIRED": "Campo obbligatorio", + "PROJECTID_REQUIRED": "Campo obbligatorio" }, "STRATEGY": "Strategia", "AGENT_TIMEOUT": "Timeout Agente", @@ -69,6 +118,7 @@ "DISPOSITIONS": "Esiti", "WEBHOOKS": "WebHooks", "ACTIONS": "Azioni", + "LIST": "Lista", "FIDELITY": "Fidelity", "ACCEPT": "Accetta", "ACCEPTMETHOD": "Metodo Accetta", @@ -102,7 +152,12 @@ "HELP": { "TOKEN": "Aggiungi questa proprietà come query string nell'URL del tuo Web Service. Clicca qui per andare alla guida online", "RECEIVEURI": "Stringa API generata automaticamente da usare per ricevere i messaggi provenienti dall'applicatione esterna (metodo POST). Clicca sul bottone blocco note per copiarla negli appunti", - "REPLYURI": "URL usato dal canale open channel quando si invia o si risponde ad un messaggio. Clicca qui per andare alla guida online" + "REPLYURI": "URL usato dal canale open channel quando si invia o si risponde ad un messaggio. Clicca qui per andare alla guida online", + "NAME": "Sono supportati solo numeri, lettere e caratteri specifici (._)", + "LIST": "Lista del Contact Manager usata per associare i contatti", + "MANDATORYDISPOSITION": "Mandatory disposition", + "MANDATORYDISPOSITIONPAUSEID": "Pausa da utilizzare se è abilitata la disposizione obbligatoria", + "WELCOMEMESSAGE": "Questo è il primo messaggio inviato al contatto" }, "PAGE": "Pagina", "ROWSPERPAGE": "Righe per pagina", @@ -190,9 +245,11 @@ "TO": "A", "MAPKEY": "Map Key", "TEAMS_ASSOCIATION": "Associazione Teams", + "MANDATORYDISPOSITIONPAUSEID": "Pausa da utilizzare se è abilitata la disposizione obbligatoria", "DIALOGFLOW": "Dialogflow", "EDIT_DIALOGFLOW": "Modifica la configurazione di Dialogflow", "LANGUAGE": "Lingua", + "WELCOMEMESSAGE": "Messaggio di benvenuto", "ACCESSKEYID": "ID chiave di accesso", "AMAZONLEX": "AmazonLex", "BOTNAME": "Nome del bot", @@ -202,6 +259,11 @@ "TOOLTIP_SCREENRECORDING_OFF": "Registrazione dello schermo disponibile", "TOOLTIP_SCREENRECORDING_ON": "Registrazione dello schermo in corso", "DOWNLOAD_WITHOUT_ATTACHMENTS": "Scarica senza allegati", - "DOWNLOAD_WITH_ATTACHMENTS": "Scarica con allegati" + "DOWNLOAD_WITH_ATTACHMENTS": "Scarica con allegati", + "CLIENTEMAIL": "Email del cliente", + "DIALOGFLOWV2": "Dialogflow V2", + "EDIT_DIALOGFLOWV2": "Modifica Dialogflow V2", + "PRIVATEKEY": "Chiave privata", + "PROJECTID": "ID progetto" } } diff --git a/public/app/main/apps/openchannel/i18n/ja.json b/public/app/main/apps/openchannel/i18n/ja.json index e3a5d22..527b07f 100644 --- a/public/app/main/apps/openchannel/i18n/ja.json +++ b/public/app/main/apps/openchannel/i18n/ja.json @@ -1,13 +1,65 @@ { "OPENCHANNEL": { "ERRORS": { + "ACCEPTURL_MUST_VALID_URL": "間違ったフォーマット", + "AGENT_REQUIRED": "必須フィールド", + "AGENT_TIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "値はこの数値よりも大きいか等しい必要があります:", + "AGENT_TIMEOUT_REQUIRED": "必須フィールド", + "CLOSEURL_MUST_VALID_URL": "間違ったフォーマット", + "COMMAND_REQUIRED": "必須フィールド", + "CONDITION_REQUIRED": "必須フィールド", + "DISPOSITION_REQUIRED": "必須フィールド", + "FALSEPRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "値はこの数値よりも大きいか等しい必要があります:", + "FALSEPRIORITY_REQUIRED": "必須フィールド", + "KEY_MAX_LENGTH": "値の最大長は{{max}}に等しくなければなりません", + "KEY_REQUIRED": "必須フィールド", + "LIST_REQUIRED": "必須フィールド", + "MOTIONADDRESS_MUST_VALID_URL": "間違ったフォーマット", + "MOTIONADDRESS_REQUIRED": "必須フィールド", + "NAME_MUST_VALID_PATTERN": "間違ったフォーマット", + "NAME_REQUIRED": "必須フィールド", + "PRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "値はこの数値よりも大きいか等しい必要があります:", + "PRIORITY_REQUIRED": "必須フィールド", + "QUEUE_REQUIRED": "必須フィールド", + "REJECTURL_MUST_VALID_URL": "間違ったフォーマット", "REPLYURI_MUST_VALID_URL": "間違ったフォーマット", - "REPLYURI_REQUIRED": "必須フィールド" + "REPLYURI_REQUIRED": "必須フィールド", + "TEXT_MAX_LENGTH": "値の最大長は{{max}}に等しくなければなりません", + "TEXT_REQUIRED": "フィールドテキストは必須です", + "TIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "値はこの数値よりも大きいか等しい必要があります:", + "TIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "値はこの数値よりも小さいか等しい必要があります:", + "TIMEOUT_REQUIRED": "必須フィールド", + "TRUEPRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "値はこの数値よりも大きいか等しい必要があります:", + "TRUEPRIORITY_REQUIRED": "必須フィールド", + "VALUE_REQUIRED": "必須フィールド", + "AGENT_TIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "値はこの数値よりも小さいか等しい必要があります:", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "値はこの数値よりも大きいか等しい必要があります:", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "値はこの数値よりも小さいか等しい必要があります:", + "WAITFORTHEASSIGNEDAGENT_REQUIRED": "必須フィールド", + "TAG_REQUIRED": "必須フィールド", + "AGENTTRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "値は、より大きいか等しい必要があります", + "AGENTTRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "値は以下にする必要があります", + "AGENTTRANSFERTIMEOUT_REQUIRED": "必須フィールド", + "QUEUETRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "値は、より大きいか等しい必要があります", + "QUEUETRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "値は以下にする必要があります", + "QUEUETRANSFERTIMEOUT_REQUIRED": "必須フィールド", + "MANDATORYDISPOSITIONPAUSEID_REQUIRED": "必須フィールド", + "ACCESSKEYID_REQUIRED": "アクセスキーIDが必要です", + "BOTNAME_REQUIRED": "ボット名が必要です", + "SECRETACCESSKEY_REQUIRED": "アクセスキーシークレットが必要です", + "CLIENTEMAIL_REQUIRED": "必須フィールド", + "PRIVATEKEY_REQUIRED": "必須フィールド", + "PROJECTID_REQUIRED": "必須フィールド" }, "HELP": { + "LIST": "コンタクトを関連付けるために使用されるコンタクトマネージャーリスト", + "NAME": "数字、文字、および特定の文字(._)のみがサポートされています", "RECEIVEURI": "(POSTメソッドを使用する)外部アプリケーションからオープンチャネル内のメッセージを受信するために使用される自動生成API文字列です。クリップボードボタンをクリックしてコピーします", "REPLYURI": "メッセージを送信または返信するときにオープンチャネルが呼び出すURLです。 詳細はdocを参照してください here\"", - "TOKEN": "このプロパティをWebサービスURLのクエリ文字列として追加します。詳細については、doc here", - "RECEIVEURI": "Auto-generated API string to be used in order to receive messages inside your open channel from the external application (using POST method). Click the clipboard button to copy it ", - "REPLYURI": "The URL the open channel will call when sending or replying to a message. For more details see the doc here" + "WELCOMEMESSAGE": "Tai yra pirmoji atsakymo žinutė, išsiųsta naujoms sąveikoms.", + "TOKEN": "Įtraukite šią ypatybę kaip užklausos eilutę į žiniatinklio aptarnavimo URL. Daugiau informacijos rasite dokumente here", + "RECEIVEURI": "Automatiškai sugeneruota API eilutė, naudojama norint gauti pranešimus atvirame kanale iš išorinės programos (naudojant POST metodą). Norėdami nukopijuoti, spustelėkite iškarpinės mygtuką", + "REPLYURI": "URL, kuriuo skambins atviras kanalas siųsdamas arba atsakydamas į pranešimą. Daugiau informacijos rasite dokumente here", + "NAME": "Palaikomi tik skaičiai, raidės ir konkretūs simboliai (. _)", + "LIST": "Kontaktų tvarkytuvo sąrašas, naudojamas kontaktams susieti", + "MANDATORYDISPOSITION": "Privalomas išdėstymas", + "MANDATORYDISPOSITIONPAUSEID": "Pauzės naudojimas, jei įjungtas privalomas išdėstymas" }, - "PAGE": "Page", - "ROWSPERPAGE": "Rows per page", - "OF": "of", - "CONTACT": "Contact", - "STARTEDAT": "Started At", - "LASTMESSAGE": "Last message", - "STATUS": "Status", - "CLOSED": "Closed", - "OPENED": "Open", - "OPEN": "Open", - "ACCOUNT": "Account", - "INTERACTION": "Interaction", - "INTERACTIONS": "Interactions", - "ALL": "All", - "SELECT_STATUS": "Select a status", - "FILTER": "Filter", - "FILTERS": "Filters", - "CLOSEDAT": "Closed At", - "DISPOSITION": "Disposition", - "NOTES": "Notes", - "NO_INTERACTION_AVAILABLE": "No interactions available", - "SELECT_ACCOUNT": "Select an account", - "GOTOP": "Gotop", - "EDIT_GOTOP": "Edit Gotop", - "EDIT_CLOSE": "Edit Close", - "INFO": "Info", - "KEY": "Key", - "UNKNOWN": "Unknown", - "UNREGISTERED": "Unregistered", - "UNAVAILABLE": "Unavailable", - "NOT_INUSE": "Not in use", - "REACHABLE": "Reachable", - "IN_USE": "In use", - "AGENTS": "Agents", - "QUEUES": "Queues", - "FULLNAME": "Fullname", - "INTERNAL": "Internal", - "PHONE_STATE": "Phone State", - "PHONE_STATUS": "Phone Status", - "PAUSE": "Pause", - "LOGOUT": "Logout", - "AGENTADD_QUEUE": "Add agent to Open Channel queue", - "UNPAUSE": "End Pause", - "DEFAULT_PAUSE": "Default pause", - "LOGGED_IN": "Logged in", - "PAUSED": "Paused", - "READY": "Ready", - "WAITING": "Waiting", - "VOICE": "Voice", - "CHAT": "Chat", - "MAIL": "Email", + "PAGE": "Puslapis", + "ROWSPERPAGE": "Eilutės puslapyje", + "OF": "iš", + "CONTACT": "Kontaktas", + "STARTEDAT": "Pradėjo nuo", + "LASTMESSAGE": "Paskutinė žinutė", + "STATUS": "Statusas", + "CLOSED": "Uždaryta", + "OPENED": "Atidaryta", + "OPEN": "Atidaryta", + "ACCOUNT": "Paskyra", + "INTERACTION": "Sąveika", + "INTERACTIONS": "Sąveikos", + "ALL": "Visi", + "SELECT_STATUS": "Pasirinkti statusą", + "FILTER": "Filtras", + "FILTERS": "Filtrai", + "CLOSEDAT": "Uždaryta", + "DISPOSITION": "Išdėstymas", + "NOTES": "Pastabos", + "NO_INTERACTION_AVAILABLE": "Nėra sąveikų", + "SELECT_ACCOUNT": "Pasirinkite paskyrą", + "GOTOP": "Eiti į viršų", + "EDIT_GOTOP": "Redaguoti Eiti į viršų", + "EDIT_CLOSE": "Redaguoti uždaryti", + "INFO": "Informacija", + "KEY": "Raktas", + "UNKNOWN": "Nežinomas", + "UNREGISTERED": "Neregistruotas", + "UNAVAILABLE": "Nepasiekiamas", + "NOT_INUSE": "Nenaudojamas", + "REACHABLE": "Pasiekiamas", + "IN_USE": "Naudojamas", + "AGENTS": "Agentai", + "QUEUES": "Eilės", + "FULLNAME": "Vardas ir pavardė", + "INTERNAL": "Vidinis", + "PHONE_STATE": "Telefono būsena", + "PHONE_STATUS": "Telefono statusas", + "PAUSE": "Pauzė", + "LOGOUT": "Atsijungti", + "AGENTADD_QUEUE": "Pridėti agentą prie atviro kanalo eilės", + "UNPAUSE": "Pabaigti pauzę", + "DEFAULT_PAUSE": "Numatytoji pauzė", + "LOGGED_IN": "Prisijungęs", + "PAUSED": "Pristabdyta", + "READY": "Paruošta", + "WAITING": "Laukiama", + "VOICE": "Balsas", + "CHAT": "Pokalbis", + "MAIL": "El. paštas", "SMS": "SMS", - "FAX": "Fax", - "AGENTSADD_QUEUE": "Add agents to Open Channel queue", - "INTERACTIONS_OPENCHANNELACCOUNT": "Go to Interactions", - "REFRESH_INTERACTIONS": "Refresh Interactions", - "DELETE_INTERACTION": "Delete Interaction", - "AGENTADD_OPENCHANNELACCOUNT": "Add Agent to Openchannel Account", - "CANNED_ANSWER_SEARCH": "Enter a text to seach a Canned Answer", - "CANNED_ANSWER_NOT_FOUND": "No Canned Answer were found", - "SEND": "Send", - "TO": "To", - "MAPKEY": "Map Key", - "TEAMS_ASSOCIATION": "Teams Association", - "TOOLTIP_SCREENRECORDING_ON": "Screen Recording in progress", - "TOOLTIP_SCREENRECORDING_OFF": "Screen Recording available", - "DOWNLOAD_WITH_ATTACHMENTS": "Download with attachments", - "DOWNLOAD_WITHOUT_ATTACHMENTS": "Download without attachments" + "FAX": "Faksas", + "AGENTSADD_QUEUE": "Pridėti agentus prie atviro kanalo eilės", + "INTERACTIONS_OPENCHANNELACCOUNT": "Eiti į sąveikas", + "REFRESH_INTERACTIONS": "Atnaujinti sąveikas", + "DELETE_INTERACTION": "Ištrinti sąveiką", + "AGENTADD_OPENCHANNELACCOUNT": "Pridėti agentą prie atviro kanalo paskyros", + "CANNED_ANSWER_SEARCH": "Įveskite tekstą, jei norite ieškoti įrašyto atsakymo", + "CANNED_ANSWER_NOT_FOUND": "Nerastas įrašytas atsakymas", + "SEND": "Siųsti", + "TO": "Į", + "MAPKEY": "Žemėlapio raktas", + "TEAMS_ASSOCIATION": "Komandų asociacija", + "TOOLTIP_SCREENRECORDING_ON": "Vykdomas ekrano įrašymas", + "TOOLTIP_SCREENRECORDING_OFF": "Galimas ekrano įrašymas", + "DOWNLOAD_WITH_ATTACHMENTS": "Atsisiųsti su priedais", + "DOWNLOAD_WITHOUT_ATTACHMENTS": "Atsisiųsti be priedų", + "CLIENTEMAIL": "Kliento el. Paštas", + "DIALOGFLOWV2": "Dialogflow V2", + "EDIT_DIALOGFLOWV2": "Redaguoti „Dialogflow V2“", + "PRIVATEKEY": "Privatus raktas", + "PROJECTID": "Projekto ID" } } diff --git a/public/app/main/apps/openchannel/i18n/lv.json b/public/app/main/apps/openchannel/i18n/lv.json index a5d2c7f..f064c85 100644 --- a/public/app/main/apps/openchannel/i18n/lv.json +++ b/public/app/main/apps/openchannel/i18n/lv.json @@ -1,13 +1,65 @@ { "OPENCHANNEL": { "ERRORS": { + "TEXT_MAX_LENGTH": "Vērtībai jābūt ar maksimālo garumu {{max}}", + "VALUE_REQUIRED": "Obligāts lauks", + "TEXT_REQUIRED": "Lauka teksts ir nepieciešams", + "NAME_REQUIRED": "Obligāts lauks", + "AGENT_TIMEOUT_REQUIRED": "Obligāts lauks", + "MOTIONADDRESS_REQUIRED": "Obligāts lauks", + "MOTIONADDRESS_MUST_VALID_URL": "Nepareizs formāts", + "ACCEPTURL_MUST_VALID_URL": "Nepareizs formāts", + "TIMEOUT_REQUIRED": "Obligāts lauks", + "REJECTURL_MUST_VALID_URL": "Nepareizs formāts", + "CLOSEURL_MUST_VALID_URL": "Nepareizs formāts", "REPLYURI_REQUIRED": "Obligāts lauks", - "REPLYURI_MUST_VALID_URL": "Nepareizs formāts" + "REPLYURI_MUST_VALID_URL": "Nepareizs formāts", + "PRIORITY_REQUIRED": "Obligāts lauks", + "CONDITION_REQUIRED": "Obligāts lauks", + "TRUEPRIORITY_REQUIRED": "Obligāts lauks", + "FALSEPRIORITY_REQUIRED": "Obligāts lauks", + "AGENT_REQUIRED": "Obligāts lauks", + "TIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Vērtībai jābūt lielākai vai vienādai ar", + "PRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Vērtībai jābūt lielākai vai vienādai ar", + "TRUEPRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Vērtībai jābūt lielākai vai vienādai ar", + "FALSEPRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Vērtībai jābūt lielākai vai vienādai ar", + "DISPOSITION_REQUIRED": "Obligāts lauks", + "QUEUE_REQUIRED": "Obligāts lauks", + "KEY_MAX_LENGTH": "Atslēgas maksimālais garums ir vienāds ar {{max}}", + "COMMAND_REQUIRED": "Obligāts lauks", + "LIST_REQUIRED": "Obligāts lauks", + "KEY_REQUIRED": "Obligāts lauks", + "AGENT_TIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Vērtībai jābūt lielākai vai vienādai ar", + "NAME_MUST_VALID_PATTERN": "Nepareizs formāts", + "TIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Vērtībai jābūt mazākai vai vienādai ar", + "AGENT_TIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Vērtībai jābūt mazākai vai vienādai ar", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Vērtībai jābūt lielākai vai vienādai ar", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Vērtībai jābūt mazākai vai vienādai ar", + "WAITFORTHEASSIGNEDAGENT_REQUIRED": "Obligāts lauks", + "TAG_REQUIRED": "Obligāts lauks", + "AGENTTRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Vērtībai jābūt lielākai vai vienādai ar", + "AGENTTRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Vērtībai jābūt mazākai vai vienādai ar", + "AGENTTRANSFERTIMEOUT_REQUIRED": "Obligāts lauks", + "QUEUETRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Vērtībai jābūt lielākai vai vienādai ar", + "QUEUETRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Vērtībai jābūt mazākai vai vienādai ar", + "QUEUETRANSFERTIMEOUT_REQUIRED": "Obligāts lauks", + "MANDATORYDISPOSITIONPAUSEID_REQUIRED": "Obligāts lauks", + "ACCESSKEYID_REQUIRED": "Nepieciešams piekļuves atslēgas ID", + "BOTNAME_REQUIRED": "Nepieciešams robotprogrammatūras nosaukums", + "SECRETACCESSKEY_REQUIRED": "Nepieciešams piekļuves atslēgas noslēpums", + "CLIENTEMAIL_REQUIRED": "Obligāts lauks", + "PRIVATEKEY_REQUIRED": "Obligāts lauks", + "PROJECTID_REQUIRED": "Obligāts lauks" }, "HELP": { "RECEIVEURI": "Automātiski ģenerēta API virkne, kas ir jāizmanto, lai saņemtu ziņojumus atvērtajā kanālā no ārējās lietojumprogrammas (izmantojot POST metodi). Noklikšķiniet uz starpliktuves pogas, lai to kopētu ", "REPLYURI": "Tīmekļa adrese, ar ko sazināsies open channel, nosūtot vai atbildot uz ziņojumu. Plašāku informāciju skatiet dokumentā šeit", - "TOKEN": "Pievienojiet šo īpatnību kā vaicājumu virkni jūsu tīmekļa pakalpojuma adresē. Plašāku informāciju skatiet dokumentā šeit" + "NAME": "Tiek atbalstīti tikai numuri, burti un atsevišķas rakstzīmes (._)", + "LIST": "Kontaktpersonu pārvaldnieka saraksts, ko izmanto, lai saistītu kontaktpersonas", + "TOKEN": "Pievienojiet šo īpatnību kā vaicājumu virkni jūsu tīmekļa pakalpojuma adresē. Plašāku informāciju skatiet dokumentā šeit", + "MANDATORYDISPOSITION": "Obligāta rīcība", + "MANDATORYDISPOSITIONPAUSEID": "Lietošanas pārtraukšana, ja ir iespējota obligātā izvietošana", + "WELCOMEMESSAGE": "Šis ir pirmais ziņojums, kas nosūtīts kontaktoram" }, "DELETE": "Dzēst", "NO_OPENCHANNELCANNEDANSWER_AVAILABLE": "Nav pieejamas standarta atbildes", @@ -30,6 +82,7 @@ "TIMES": "Reižu skaits vienas saziņas laikā", "EDIT_AUTOREPLY": "Rediģēt automātisko atbildi", "AUTOREPLY": "Automātiskā atbilde", + "NAME": "Nosaukums", "OPENCHANNELQUEUES": "Open Channel rindas", "SEARCH_FOR_ANYONE": "Meklēt", "STRATEGY": "Stratēģija", @@ -71,6 +124,7 @@ "DISPOSITIONS": "Statusi", "WEBHOOKS": "Tīmekļa aizķeres", "ACTIONS": "Darbības", + "LIST": "Saraksts", "FIDELITY": "Uzticība", "ACCEPT": "Pieņemt", "ACCEPTMETHOD": "Pieņemt metodi", @@ -189,9 +243,12 @@ "LOGIN_TIME": "Pieteikšanās laiks", "PAUSE_TIME": "Pārtraukuma ilgums", "TEAMS_ASSOCIATION": "Komandu asociācija", + "MANDATORYDISPOSITION": "Obligāta rīcība", + "MANDATORYDISPOSITIONPAUSEID": "Lietošanas pārtraukšana, ja ir iespējota obligātā izvietošana", "DIALOGFLOW": "Dialogplūsma", "EDIT_DIALOGFLOW": "Rediģēt Dialogflow konfigurāciju", "LANGUAGE": "Valoda", + "WELCOMEMESSAGE": "Laipni lūdzam Messsage", "ACCESSKEYID": "Piekļuves atslēgas ID", "AMAZONLEX": "AmazonLex", "BOTNAME": "Bot vārds", @@ -202,6 +259,11 @@ "TOOLTIP_SCREENRECORDING_ON": "Notiek ekrāna ierakstīšana", "DOWNLOAD_WITHOUT_ATTACHMENTS": "Lejupielādējiet bez pielikumiem", "DOWNLOAD_WITH_ATTACHMENTS": "Lejupielādējiet ar pielikumiem", - "LASTMESSAGE": "Pēdējā ziņa" + "LASTMESSAGE": "Pēdējā ziņa", + "CLIENTEMAIL": "Klienta e-pasts", + "DIALOGFLOWV2": "Dialogflow V2", + "EDIT_DIALOGFLOWV2": "Rediģēt Dialogflow V2", + "PRIVATEKEY": "Privātā atslēga", + "PROJECTID": "Projekta ID" } } diff --git a/public/app/main/apps/openchannel/i18n/nl.json b/public/app/main/apps/openchannel/i18n/nl.json index 4aef709..7d1b9be 100644 --- a/public/app/main/apps/openchannel/i18n/nl.json +++ b/public/app/main/apps/openchannel/i18n/nl.json @@ -4,11 +4,59 @@ "TIMES": "Aantal keren per interactie", "EDIT_AUTOREPLY": "Edit automatisch antwoord", "AUTOREPLY": "Automatisch antwoord", + "NAME": "Naam", "OPENCHANNELQUEUES": "Open kanaal wachtrijen", "SEARCH_FOR_ANYONE": "Zoeken voor iedereen", "ERRORS": { + "TEXT_REQUIRED": "Het veld tekst nodig is", + "NAME_REQUIRED": "De naam is verplicht", + "AGENT_TIMEOUT_REQUIRED": "De Agent Timeout is vereist", + "MOTIONADDRESS_REQUIRED": "De Motion Adres is vereist.", + "MOTIONADDRESS_MUST_VALID_URL": "De Motion adres moet worden geschreven in een geldige indeling", + "ACCEPTURL_MUST_VALID_URL": "Accepteer URL moet worden geschreven in een geldige indeling", + "TIMEOUT_REQUIRED": "De timeout is vereist", + "REJECTURL_MUST_VALID_URL": "De afwijzing URL moet worden geschreven in een geldige indeling", + "CLOSEURL_MUST_VALID_URL": "De nauwe URL moet worden geschreven in een geldige indeling", "REPLYURI_REQUIRED": "Het antwoord URL is vereist", - "REPLYURI_MUST_VALID_URL": "Het antwoord URL moet worden geschreven in een geldige indeling" + "REPLYURI_MUST_VALID_URL": "Het antwoord URL moet worden geschreven in een geldige indeling", + "PRIORITY_REQUIRED": "De prioriteit is vereist.", + "CONDITION_REQUIRED": "De conditie is vereist", + "TRUEPRIORITY_REQUIRED": "De echte prioriteit is vereist.", + "FALSEPRIORITY_REQUIRED": "De valse prioriteit is vereist.", + "AGENT_REQUIRED": "Verplicht veld", + "TIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "De waarde moet groter zijn dan of gelijk aan", + "PRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "De waarde moet groter zijn dan of gelijk aan", + "TRUEPRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "De waarde moet groter zijn dan of gelijk aan", + "FALSEPRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "De waarde moet groter zijn dan of gelijk aan", + "DISPOSITION_REQUIRED": "Verplicht veld", + "QUEUE_REQUIRED": "Verplicht veld", + "KEY_MAX_LENGTH": "Sleutel moet een lengte gelijk aan {{max.}}", + "TEXT_MAX_LENGTH": "De waarde moet een maximale lengte hebben die gelijk is aan {{max}}", + "VALUE_REQUIRED": "Verplicht veld", + "COMMAND_REQUIRED": "Verplicht veld", + "LIST_REQUIRED": "Verplicht veld", + "KEY_REQUIRED": "Verplicht veld", + "AGENT_TIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "De waarde moet groter zijn dan of gelijk aan", + "NAME_MUST_VALID_PATTERN": "Verkeerd formaat", + "TIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "De waarde moet kleiner zijn dan of gelijk aan", + "AGENT_TIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "De waarde moet kleiner zijn dan of gelijk aan", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "De waarde moet groter zijn dan of gelijk aan", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "De waarde moet kleiner zijn dan of gelijk aan", + "WAITFORTHEASSIGNEDAGENT_REQUIRED": "Verplicht veld", + "TAG_REQUIRED": "Verplicht veld", + "AGENTTRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "De waarde moet groter zijn dan of gelijk aan", + "AGENTTRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "De waarde moet kleiner zijn dan of gelijk aan", + "AGENTTRANSFERTIMEOUT_REQUIRED": "Verplicht veld", + "QUEUETRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "De waarde moet groter zijn dan of gelijk aan", + "QUEUETRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "De waarde moet kleiner zijn dan of gelijk aan", + "QUEUETRANSFERTIMEOUT_REQUIRED": "Verplicht veld", + "MANDATORYDISPOSITIONPAUSEID_REQUIRED": "Verplicht veld", + "ACCESSKEYID_REQUIRED": "Toegangssleutel-ID is vereist", + "BOTNAME_REQUIRED": "Botnaam is verplicht", + "SECRETACCESSKEY_REQUIRED": "Toegangssleutelgeheim is vereist", + "CLIENTEMAIL_REQUIRED": "Verplicht veld", + "PRIVATEKEY_REQUIRED": "Verplicht veld", + "PROJECTID_REQUIRED": "Verplicht veld" }, "STRATEGY": "Strategie", "AGENT": "Agent", @@ -49,6 +97,7 @@ "DISPOSITIONS": "Dispositions", "WEBHOOKS": "WebHooks", "ACTIONS": "Acties", + "LIST": "Lijst", "FIDELITY": "Hifi-geluid", "ACCEPT": "Accepteren", "ACCEPTMETHOD": "Accepteren methode", @@ -82,7 +131,12 @@ "HELP": { "RECEIVEURI": "Dit is het automatisch gegenereerde API string hebt u de berichten in uw open kanaal uit de externe toepassing (POST methode moet worden gebruikt). U kunt op het klembord te kopiëren naar het klembord.", "REPLYURI": "Dit is de URL (Uniform Resource Identifier) het open kanaal zal bellen wanneer u een bericht verstuurt of beantwoorden van een bericht", - "TOKEN": "Voeg deze eigenschap toe als querytekenreeks in de URL van uw webservice. Zie het doc tutaj", - "TOKEN": "Dodaj tę właściwość jako ciąg zapytania w adresie URL usługi sieci Web. Aby uzyskać więcej informacji, zobacz doc aqui ", "RECEIVEURI": "Cadeia de caracteres da API gerada automaticamente para ser usada para receber mensagens dentro de seu canal aberto a partir do aplicativo externo (usando o método POST). Clique no botão da área de transferência para copiá-lo", - "REPLYURI": "O URL que o canal aberto irá chamar ao enviar ou responder a uma mensagem. Para obter mais detalhes, consulte o documento aqui " + "REPLYURI": "O URL que o canal aberto irá chamar ao enviar ou responder a uma mensagem. Para obter mais detalhes, consulte o documento aqui ", + "NAME": "Somente números, letras e caracteres específicos (._) são suportados", + "LIST": "Lista de contatos do gerenciador usada para associar contatos", + "MANDATORYDISPOSITION": "Disposição obrigatória", + "MANDATORYDISPOSITIONPAUSEID": "Pausar para usar se a disposição obrigatória estiver ativada", + "WELCOMEMESSAGE": "Esta é a primeira mensagem enviada ao contator" }, "PAGE": "Página", "ROWSPERPAGE": "Linhas por Página", @@ -189,9 +243,12 @@ "TO": "Para", "MAPKEY": "Map Key", "TEAMS_ASSOCIATION": "Associação de equipes", + "MANDATORYDISPOSITION": "Disposição obrigatória", + "MANDATORYDISPOSITIONPAUSEID": "Pausar para usar se a disposição obrigatória estiver ativada", "DIALOGFLOW": "Fluxo de Diálogo", "EDIT_DIALOGFLOW": "Editar configuração do fluxo de diálogo", "LANGUAGE": "Língua", + "WELCOMEMESSAGE": "Mensagem de boas-vindas", "ACCESSKEYID": "ID da chave de acesso", "AMAZONLEX": "AmazonLex", "BOTNAME": "Nome do bot", @@ -202,6 +259,11 @@ "TOOLTIP_SCREENRECORDING_ON": "Gravação de tela em andamento", "DOWNLOAD_WITHOUT_ATTACHMENTS": "Download sem anexos", "DOWNLOAD_WITH_ATTACHMENTS": "Download com anexos", - "LASTMESSAGE": "Última mensagem" + "LASTMESSAGE": "Última mensagem", + "CLIENTEMAIL": "Email do cliente", + "DIALOGFLOWV2": "Dialogflow V2", + "EDIT_DIALOGFLOWV2": "Editar Dialogflow V2", + "PRIVATEKEY": "Chave privada", + "PROJECTID": "ID do projeto" } } diff --git a/public/app/main/apps/openchannel/i18n/pt-PT.json b/public/app/main/apps/openchannel/i18n/pt-PT.json index 5384fe7..85f5a13 100644 --- a/public/app/main/apps/openchannel/i18n/pt-PT.json +++ b/public/app/main/apps/openchannel/i18n/pt-PT.json @@ -4,11 +4,59 @@ "TIMES": "Número de vezes por interação", "EDIT_AUTOREPLY": "Editar resposta automática", "AUTOREPLY": "Resposta automática", + "NAME": "Nome", "OPENCHANNELQUEUES": "Filas de canal aberto", "SEARCH_FOR_ANYONE": "Pesquisar todos", "ERRORS": { + "TEXT_REQUIRED": "O campo texto é necessário", + "NAME_REQUIRED": "O Nome é obrigatório", + "AGENT_TIMEOUT_REQUIRED": "O Tempo Limite do Agente é necessária", + "MOTIONADDRESS_REQUIRED": "O Movimento de endereço é obrigatório", + "MOTIONADDRESS_MUST_VALID_URL": "A proposta Endereço deve ser escrito em um formato válido", + "ACCEPTURL_MUST_VALID_URL": "A aceitar a URL deve ser escrito em um formato válido", + "TIMEOUT_REQUIRED": "O tempo limite é necessária", + "REJECTURL_MUST_VALID_URL": "A rejeitar a URL deve ser escrito em um formato válido", + "CLOSEURL_MUST_VALID_URL": "A FECHAR A URL deve ser escrito em um formato válido", "REPLYURI_REQUIRED": "A resposta é necessária URL", - "REPLYURI_MUST_VALID_URL": "A resposta URL deve ser escrito em um formato válido" + "REPLYURI_MUST_VALID_URL": "A resposta URL deve ser escrito em um formato válido", + "PRIORITY_REQUIRED": "A prioridade é necessária", + "CONDITION_REQUIRED": "A condição é necessária", + "TRUEPRIORITY_REQUIRED": "A verdadeira prioridade é obrigatório", + "FALSEPRIORITY_REQUIRED": "O falso é necessária prioridade", + "AGENT_REQUIRED": "Campo de preenchimento obrigatório", + "TIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "O valor deve ser maior que ou igual a", + "PRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "O valor deve ser maior que ou igual a", + "TRUEPRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "O valor deve ser maior que ou igual a", + "FALSEPRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "O valor deve ser maior que ou igual a", + "DISPOSITION_REQUIRED": "Campo de preenchimento obrigatório", + "QUEUE_REQUIRED": "Campo de preenchimento obrigatório", + "KEY_MAX_LENGTH": "A chave deve ter um comprimento máximo igual ao máximo {{}}", + "TEXT_MAX_LENGTH": "O valor deve ter um tamanho máximo igual a {{max}}", + "VALUE_REQUIRED": "Campo Obrigatório", + "COMMAND_REQUIRED": "Campo Obrigatório", + "LIST_REQUIRED": "Campo Obrigatório", + "KEY_REQUIRED": "Campo Obrigatório", + "AGENT_TIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "O valor deve ser maior ou igual a", + "NAME_MUST_VALID_PATTERN": "Formato incorreto", + "TIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "O valor deve ser menor ou igual a", + "AGENT_TIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "O valor deve ser menor ou igual a", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "O valor deve ser maior ou igual a", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "O valor deve ser menor ou igual a", + "WAITFORTHEASSIGNEDAGENT_REQUIRED": "Campo Obrigatório", + "TAG_REQUIRED": "Campo Obrigatório", + "AGENTTRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "O valor deve ser maior ou igual a", + "AGENTTRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "O valor deve ser menor ou igual a", + "AGENTTRANSFERTIMEOUT_REQUIRED": "Campo Obrigatório", + "QUEUETRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "O valor deve ser maior ou igual a", + "QUEUETRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "O valor deve ser menor ou igual a", + "QUEUETRANSFERTIMEOUT_REQUIRED": "Campo Obrigatório", + "MANDATORYDISPOSITIONPAUSEID_REQUIRED": "Campo obrigatório", + "ACCESSKEYID_REQUIRED": "O código da chave de acesso é obrigatório", + "BOTNAME_REQUIRED": "O nome do bot é obrigatório", + "SECRETACCESSKEY_REQUIRED": "É necessário segredo da chave de acesso", + "CLIENTEMAIL_REQUIRED": "Campo Obrigatório", + "PRIVATEKEY_REQUIRED": "Campo Obrigatório", + "PROJECTID_REQUIRED": "Campo Obrigatório" }, "STRATEGY": "Estratégia", "AGENT": "Agente", @@ -49,6 +97,7 @@ "DISPOSITIONS": "Disposições", "WEBHOOKS": "WebHooks", "ACTIONS": "Acções", + "LIST": "Lista", "FIDELITY": "Fidelidade", "ACCEPT": "Aceitar", "ACCEPTMETHOD": "Método de Aceitar", @@ -82,7 +131,12 @@ "HELP": { "RECEIVEURI": "Esta é a API de auto-gerados de caracteres que você precisa usar para receber as mensagens no interior do seu canal aberto a partir do seu aplicativo externo (método POST deve ser usado). Você pode pressionar o botão de transferência para copiar na área de transferência.", "REPLYURI": "Esta é a URL canal aberto será chamada quando enviar ou responder a uma mensagem", - "TOKEN": "Adicione esta propriedade como string de consulta em sua URL do serviço da Web. Para obter mais detalhes, consulte o documento : // [: ]. مثال: https: //X.Y.Z.W", + "NAME": "يتم دعم الأرقام والحروف والأحرف المحددة (._) فقط", + "RECEIVEURL": "هذه هي سلسلة واجهة برمجة التطبيقات التي يتم إنشاؤها تلقائيًا والتي تحتاج إلى استخدامها لتلقي الرسائل داخل حسابك من موفر SMS (يجب استخدام طريقة POST): انقر فوق زر الحافظة لنسخها.", + "MANDATORYDISPOSITION": "التصرف الإلزامي", + "MANDATORYDISPOSITIONPAUSEID": "توقف مؤقتًا للاستخدام عند تمكين التخلص الإلزامي", + "WELCOMEMESSAGE": "هذه هي أول رسالة استجابة مرسلة إلى تفاعلات جديدة" }, "ACCEPT": "قبول", "ACCEPTMETHOD": "قبول الطريقة", @@ -54,9 +118,12 @@ "IDLE": "خامل", "INSERT_MESSAGE_HERE": "أدخل رسالتك النصية هنا", "KEY": "مفتاح", + "LIST": "قائمة", "MESSAGE": "رسالة", "METHOD": "طريقة", "MOTIONADDRESS": "عنوان الاتصال", + "MOTIONPROXY": "خادم الاتصال", + "NAME": "اسم", "NEW_SMSACCOUNT": "حساب الرسائل النصية القصيرة الجديد", "NEW_SMSCANNEDANSWER": "إجابه محفوظة جديدة للرسائل القصيرة", "NEW_SMSDISPOSITION": "تغير للرسائل القيرة جديد", @@ -101,6 +168,7 @@ "TIMES": "عدد المرات لكل تفاعل", "TO": "إلى", "TOKEN": "رمز", + "TYPE": "اكتب", "USERNAME": "اسم المستخدم", "VARIABLE": "متغير", "WAITFORTHEASSIGNEDAGENT": "انتظر ممثل الخدمه المعين", @@ -201,6 +269,8 @@ "APIKEY": "مفتاح API", "BASEURL": "عنوان URL الأساسي", "TEAMS_ASSOCIATION": "رابطة الفرق", + "MANDATORYDISPOSITION": "التصرف الإلزامي", + "MANDATORYDISPOSITIONPAUSEID": "توقف مؤقتًا للاستخدام عند تمكين التخلص الإلزامي", "ACCESSKEYID": "معرف مفتاح الوصول", "AMAZONLEX": "AmazonLex", "BOTNAME": "اسم بوت", @@ -210,8 +280,14 @@ "LANGUAGE": "لغة", "LEXREGION": "منطقة", "SECRETACCESSKEY": "سر مفتاح الوصول", + "WELCOMEMESSAGE": "رسالة ترحيب", "DOWNLOAD_WITHOUT_ATTACHMENT": "تحميل بدون مرفق", "DOWNLOAD_WITH_ATTACHMENT": "تنزيل بالمرفق", - "LASTMESSAGE": "اخر رسالة" + "LASTMESSAGE": "اخر رسالة", + "CLIENTEMAIL": "البريد الإلكتروني للعميل", + "DIALOGFLOWV2": "Dialogflow V2", + "EDIT_DIALOGFLOWV2": "تحرير Dialogflow V2", + "PRIVATEKEY": "مفتاح سري", + "PROJECTID": "معرف المشروع" } } diff --git a/public/app/main/apps/sms/i18n/cs.json b/public/app/main/apps/sms/i18n/cs.json index cb42d7f..b0e6182 100644 --- a/public/app/main/apps/sms/i18n/cs.json +++ b/public/app/main/apps/sms/i18n/cs.json @@ -56,13 +56,73 @@ "CAPACITY": "Capacity", "PROXY": "Proxy", "ADVANCED": "Advanced", + "MOTIONPROXY": "Proxy Or Motion Domain", "REALTIME": "Realtime", "KEY": "Key", + "NAME": "Name", "SMSQUEUES": "SMS Queues", "SEARCH_FOR_ANYONE": "Search", "STRATEGY": "Strategy", "ERRORS": { - "AUTHID_REQUIRED": "Mandatory Field" + "QUEUETRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "The value must be less than or equal to", + "QUEUETRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "The value must be greater than or equal to", + "QUEUETRANSFERTIMEOUT_REQUIRED": "Mandatory Field", + "AGENTTRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "The value must be less than or equal to", + "AGENTTRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "The value must be greater than or equal to", + "AGENTTRANSFERTIMEOUT_REQUIRED": "Mandatory Field", + "TAG_REQUIRED": "Mandatory Field", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "The value must be less than or equal to", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "The value must be greater than or equal to", + "WAITFORTHEASSIGNEDAGENT_REQUIRED": "Mandatory Field", + "AGENT_TIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "The value must be less than or equal to", + "TIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "The value must be less than or equal to", + "AGENT_TIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "The value must be greater than or equal to", + "NAME_MUST_VALID_PATTERN": "Wrong format", + "COMMAND_REQUIRED": "Mandatory Field", + "AUTHID_REQUIRED": "Mandatory Field", + "TEXT_MAX_LENGTH": "The value must have a maximum length equal to {{max}}", + "TEXT_REQUIRED": "Mandatory Field", + "VALUE_REQUIRED": "Mandatory Field", + "SENDERSTRING_MAX_LENGTH": "The value must have a maximum length equal to {{max}}", + "SENDERSTRING_MUST_VALID_PATTERN": "Wrong format", + "METHOD_REQUIRED": "Mandatory Field", + "MOTIONPROXY_REQUIRED": "Mandatory Field", + "MOTIONPROXY_MUST_VALID_URL": "Wrong format", + "KEY_MAX_LENGTH": "The value must have a maximum length equal to {{max}}", + "KEY_REQUIRED": "Mandatory Field", + "NAME_REQUIRED": "Mandatory Field", + "AGENT_TIMEOUT_REQUIRED": "Mandatory Field", + "PHONE_REQUIRED": "Mandatory Field", + "SID_REQUIRED": "Mandatory Field", + "TOKEN_REQUIRED": "Mandatory Field", + "USERNAME_REQUIRED": "Mandatory Field", + "PASSWORD_REQUIRED": "Mandatory Field", + "MOTIONADDRESS_REQUIRED": "Mandatory Field", + "MOTIONADDRESS_MUST_VALID_URL": "Wrong format", + "ACCEPTURL_MUST_VALID_URL": "Wrong format", + "TIMEOUT_REQUIRED": "Mandatory Field", + "REJECTURL_MUST_VALID_URL": "Wrong format", + "CLOSEURL_MUST_VALID_URL": "Wrong format", + "TYPE_REQUIRED": "Mandatory Field", + "LIST_REQUIRED": "Mandatory Field", + "PRIORITY_REQUIRED": "Mandatory Field", + "CONDITION_REQUIRED": "Mandatory Field", + "TRUEPRIORITY_REQUIRED": "Mandatory Field", + "FALSEPRIORITY_REQUIRED": "Mandatory Field", + "AGENT_REQUIRED": "Mandatory Field", + "QUEUE_REQUIRED": "Mandatory Field", + "DISPOSITION_REQUIRED": "Mandatory Field", + "ACCOUNTSID_REQUIRED": "Mandatory Field", + "AUTHTOKEN_REQUIRED": "Mandatory Field", + "ACCESSKEYID_REQUIRED": "Je vyžadováno ID přístupového klíče", + "APIKEY_REQUIRED": "Povinné pole", + "BASEURL_REQUIRED": "Povinné pole", + "BOTNAME_REQUIRED": "Název bota je povinný", + "MANDATORYDISPOSITIONPAUSEID_REQUIRED": "Povinné pole", + "SECRETACCESSKEY_REQUIRED": "Je vyžadováno tajemství přístupu", + "CLIENTEMAIL_REQUIRED": "Povinné pole", + "PRIVATEKEY_REQUIRED": "Povinné pole", + "PROJECTID_REQUIRED": "Povinné pole" }, "AGENT_TIMEOUT": "Agent Timeout", "DESCRIPTION": "Description", @@ -74,6 +134,7 @@ "CREATED_AT": "Created At", "SAVE": "Save", "SMSACCOUNTS": "SMS Accounts", + "TYPE": "Type", "PHONE": "Phone", "SID": "SID", "TOKEN": "Token", @@ -84,6 +145,7 @@ "ADD_SMSACCOUNT": "Add SMS Account", "EDIT_SMSACCOUNT": "Edit SMS Account", "DELETE_SMSACCOUNT": "Delete SMS Account", + "LIST": "List", "FIDELITY": "Fidelity", "API": "API", "DISPOSITIONS": "Dispositions", @@ -117,8 +179,14 @@ "ALL_TEAMS": "All Teams", "SELECTED_TEAMS": "Selected Teams", "HELP": { + "MOTIONPROXY": "The field must have the following format: ://[:]. Example: https://X.Y.Z.W", + "NAME": "Only numbers, letters and specific characters (._) are supported", + "LIST": "Contact Manager list used to associate contacts", "RECEIVEURL": "This is the auto-generated API string you need to use to receive the messages inside your account from your SMS provider (POST method must be used): click the clipboard button to copy it", - "DELIVERYREPORTURL": "This is the auto-generated API string you need to use to receive the delivery report of sent messages from your SMS provider (POST method must be used): click the clipboard button to copy it" + "DELIVERYREPORTURL": "This is the auto-generated API string you need to use to receive the delivery report of sent messages from your SMS provider (POST method must be used): click the clipboard button to copy it", + "MANDATORYDISPOSITION": "Povinná dispozice", + "MANDATORYDISPOSITIONPAUSEID": "Pozastavit, pokud je povolena povinná dispozice", + "WELCOMEMESSAGE": "Toto je první odezva na nové interakce" }, "PAGE": "Page", "ROWSPERPAGE": "Rows per page", @@ -211,7 +279,15 @@ "LANGUAGE": "Jazyk", "LASTMESSAGE": "Poslední zpráva", "LEXREGION": "Kraj", + "MANDATORYDISPOSITION": "Povinná dispozice", + "MANDATORYDISPOSITIONPAUSEID": "Pozastavit, pokud je povolena povinná dispozice", "SECRETACCESSKEY": "Přístup k tajným klíčům", - "TEAMS_ASSOCIATION": "Asociace týmů" + "TEAMS_ASSOCIATION": "Asociace týmů", + "WELCOMEMESSAGE": "Uvítací zpráva", + "CLIENTEMAIL": "E-mail klienta", + "DIALOGFLOWV2": "Dialogflow V2", + "EDIT_DIALOGFLOWV2": "Upravit Dialogflow V2", + "PRIVATEKEY": "Soukromý klíč", + "PROJECTID": "ID projektu" } } diff --git a/public/app/main/apps/sms/i18n/da.json b/public/app/main/apps/sms/i18n/da.json index 212c11f..a5fb51b 100644 --- a/public/app/main/apps/sms/i18n/da.json +++ b/public/app/main/apps/sms/i18n/da.json @@ -1,11 +1,70 @@ { "SMS": { "KEY": "Nøgle", + "NAME": "Navnet", "SMSQUEUES": "SMS KØER", "SEARCH_FOR_ANYONE": "Søg efter alle", "STRATEGY": "Strategi", "ERRORS": { - "AUTHID_REQUIRED": "Obligatorisk felt" + "KEY_MAX_LENGTH": "Nøgle skal have en maksimal længde på {{max}}", + "KEY_REQUIRED": "Nøgle er påkrævet", + "NAME_REQUIRED": "Navnet er påkrævet", + "AGENT_TIMEOUT_REQUIRED": "Agenten Timeout er påkrævet", + "PHONE_REQUIRED": "Telefonen er påkrævet", + "SID_REQUIRED": "SID er påkrævet", + "TOKEN_REQUIRED": "Dette token er påkrævet", + "USERNAME_REQUIRED": "Brugernavn er påkrævet", + "PASSWORD_REQUIRED": "Adgangskoden kræves", + "MOTIONADDRESS_REQUIRED": "Motion Adresse skal angives.", + "MOTIONADDRESS_MUST_VALID_URL": "Motion adresse skal være skrevet i et gyldigt format", + "ACCEPTURL_MUST_VALID_URL": "Det acceptere URL skal være skrevet i et gyldigt format", + "TIMEOUT_REQUIRED": "Timeout er påkrævet", + "REJECTURL_MUST_VALID_URL": "Reject-URL skal være skrevet i et gyldigt format", + "CLOSEURL_MUST_VALID_URL": "Den tætte URL skal være skrevet i et gyldigt format", + "TYPE_REQUIRED": "Den Type skal angives", + "LIST_REQUIRED": "Listen er påkrævet", + "PRIORITY_REQUIRED": "Indsatsen er påkrævet", + "CONDITION_REQUIRED": "Betingelsen er påkrævet", + "TRUEPRIORITY_REQUIRED": "Den sande prioritering er nødvendig", + "FALSEPRIORITY_REQUIRED": "Den falske prioritet er påkrævet", + "AGENT_REQUIRED": "Agenten er påkrævet", + "QUEUE_REQUIRED": "Køen er påkrævet", + "DISPOSITION_REQUIRED": "Dispositionen er nødvendig", + "ACCOUNTSID_REQUIRED": "Konto SID er påkrævet", + "AUTHTOKEN_REQUIRED": "Auth token er påkrævet", + "MOTIONPROXY_REQUIRED": "Obligatorisk felt", + "MOTIONPROXY_MUST_VALID_URL": "Forkert format", + "TEXT_MAX_LENGTH": "Værdien skal have en maksimal længde svarende til {{max}}", + "TEXT_REQUIRED": "Obligatorisk felt", + "VALUE_REQUIRED": "Obligatorisk felt", + "SENDERSTRING_MAX_LENGTH": "Værdien skal have en maksimal længde svarende til {{max}}", + "SENDERSTRING_MUST_VALID_PATTERN": "Forkert format", + "METHOD_REQUIRED": "Obligatorisk felt", + "AUTHID_REQUIRED": "Obligatorisk felt", + "COMMAND_REQUIRED": "Obligatorisk felt", + "AGENT_TIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Værdien skal være større end eller lig med", + "NAME_MUST_VALID_PATTERN": "Forkert format", + "TIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Værdien skal være mindre end eller lig med", + "AGENT_TIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Værdien skal være mindre end eller lig med", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Værdien skal være større end eller lig med", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Værdien skal være mindre end eller lig med", + "WAITFORTHEASSIGNEDAGENT_REQUIRED": "Obligatorisk felt", + "TAG_REQUIRED": "Obligatorisk felt", + "AGENTTRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Værdien skal være større end eller lig med", + "AGENTTRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Værdien skal være mindre end eller lig med", + "AGENTTRANSFERTIMEOUT_REQUIRED": "Obligatorisk felt", + "QUEUETRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Værdien skal være større end eller lig med", + "QUEUETRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Værdien skal være mindre end eller lig med", + "QUEUETRANSFERTIMEOUT_REQUIRED": "Obligatorisk felt", + "APIKEY_REQUIRED": "Obligatorisk felt", + "BASEURL_REQUIRED": "Obligatorisk felt", + "MANDATORYDISPOSITIONPAUSEID_REQUIRED": "Obligatorisk felt", + "ACCESSKEYID_REQUIRED": "Adgangsnøgle-ID er påkrævet", + "BOTNAME_REQUIRED": "Bot navn kræves", + "SECRETACCESSKEY_REQUIRED": "Adgangsnøglehemmelighed kræves", + "CLIENTEMAIL_REQUIRED": "Obligatorisk felt", + "PRIVATEKEY_REQUIRED": "Obligatorisk felt", + "PROJECTID_REQUIRED": "Obligatorisk felt" }, "AGENT_TIMEOUT": "Agent Timeout", "DESCRIPTION": "Beskrivelse", @@ -17,6 +76,7 @@ "CREATED_AT": "Oprettet på", "SAVE": "Gem", "SMSACCOUNTS": "SMS konti", + "TYPE": "Type", "PHONE": "Telefonen", "SID": "SID", "TOKEN": "Token", @@ -27,6 +87,7 @@ "ADD_SMSACCOUNT": "Tilføj SMS KONTO", "EDIT_SMSACCOUNT": "Redigere SMS-konto", "DELETE_SMSACCOUNT": "Slet SMS KONTO", + "LIST": "Listen", "FIDELITY": "Fidelity", "API": "API", "DISPOSITIONS": "Dispositions", @@ -60,8 +121,14 @@ "ALL_TEAMS": "Alle hold", "SELECTED_TEAMS": "Udvalgte Teams", "HELP": { + "NAME": "Kun tal og bogstaver og specielle tegn (.________) understøttes", + "LIST": "Kontakt Manager listen bruges til at knytte kontakter", "RECEIVEURL": "Det er autogenereret API string du skal bruge til at modtage beskeder på din konto fra din SMS-udbyder (POST metode skal anvendes). Du kan trykke på knappen for at kopiere det til Udklipsholder i din udklipsholder.", - "DELIVERYREPORTURL": "Dette er den automatisk genererede API-streng, du skal bruge til at modtage leveringsrapporten for sendte beskeder fra din SMS-udbyder (POST-metoden skal bruges): Klik på udklipsholderknappen for at kopiere den" + "MOTIONPROXY": "Feltet skal have følgende format: [:]. Eksempel: https://X.Y.Z.W", + "DELIVERYREPORTURL": "Dette er den automatisk genererede API-streng, du skal bruge til at modtage leveringsrapporten for sendte beskeder fra din SMS-udbyder (POST-metoden skal bruges): Klik på udklipsholderknappen for at kopiere den", + "MANDATORYDISPOSITION": "Obligatorisk disposition", + "MANDATORYDISPOSITIONPAUSEID": "Brug pause, når obligatorisk disposition er aktiveret", + "WELCOMEMESSAGE": "Dette er den første svarmeddelelse sendt til nye interaktioner" }, "PAGE": "Page", "ROWSPERPAGE": "Rækker pr. side", @@ -112,6 +179,7 @@ "AUTHTOKEN": "Auth Token", "PROXY": "Proxy", "ADVANCED": "Avanceret", + "MOTIONPROXY": "Proxy eller Motion domæne", "REALTIME": "Realtime", "UNKNOWN": "Ukendt", "UNREGISTERED": "Uregistreret", @@ -201,6 +269,8 @@ "APIKEY": "ApiKey", "BASEURL": "Basiswebadresse", "TEAMS_ASSOCIATION": "Holdforening", + "MANDATORYDISPOSITION": "Obligatorisk disposition", + "MANDATORYDISPOSITIONPAUSEID": "Brug pause, når obligatorisk disposition er aktiveret", "ACCESSKEYID": "Adgangsnøgle-ID", "AMAZONLEX": "AmazonLex", "BOTNAME": "Bot navn", @@ -210,8 +280,14 @@ "LANGUAGE": "Sprog", "LEXREGION": "Område", "SECRETACCESSKEY": "Adgangsnøglehemmelighed", + "WELCOMEMESSAGE": "Velkomstbesked", "DOWNLOAD_WITHOUT_ATTACHMENT": "Download uden vedhæftet fil", "DOWNLOAD_WITH_ATTACHMENT": "Download med vedhæftet fil", - "LASTMESSAGE": "Sidste besked" + "LASTMESSAGE": "Sidste besked", + "CLIENTEMAIL": "Klientens e-mail", + "DIALOGFLOWV2": "Dialogflow V2", + "EDIT_DIALOGFLOWV2": "Rediger Dialogflow V2", + "PRIVATEKEY": "Privat nøgle", + "PROJECTID": "Projekt-id" } } diff --git a/public/app/main/apps/sms/i18n/de.json b/public/app/main/apps/sms/i18n/de.json index c1f859e..b04be25 100644 --- a/public/app/main/apps/sms/i18n/de.json +++ b/public/app/main/apps/sms/i18n/de.json @@ -1,11 +1,70 @@ { "SMS": { "KEY": "Schlüssel", + "NAME": "Name", "SMSQUEUES": "SMS-Warteschlangen", "SEARCH_FOR_ANYONE": "Suche für Jedermann", "STRATEGY": "Strategie", "ERRORS": { - "AUTHID_REQUIRED": "Pflichtfeld" + "KEY_MAX_LENGTH": "Schlüssel muss eine maximale Länge von {{max}}", + "KEY_REQUIRED": "Schlüssel ist erforderlich", + "NAME_REQUIRED": "Der Name ist erforderlich", + "AGENT_TIMEOUT_REQUIRED": "Der Agent Timeout ist erforderlich", + "PHONE_REQUIRED": "Die Telefonnummer ist erforderlich", + "SID_REQUIRED": "Die SID ist erforderlich", + "TOKEN_REQUIRED": "Das Token ist erforderlich", + "USERNAME_REQUIRED": "Der Benutzername ist erforderlich", + "PASSWORD_REQUIRED": "Das Kennwort ist erforderlich", + "MOTIONADDRESS_REQUIRED": "Die Adresse ist erforderlich", + "MOTIONADDRESS_MUST_VALID_URL": "Die Adresse muss in einem gültigen Format", + "ACCEPTURL_MUST_VALID_URL": "Die URL muss in einem gültigen Format", + "TIMEOUT_REQUIRED": "Der Timeout ist erforderlich", + "REJECTURL_MUST_VALID_URL": "Die URL muss in einem gültigen Format", + "CLOSEURL_MUST_VALID_URL": "Die URL muss in einem gültigen Format", + "TYPE_REQUIRED": "Der Typ ist erforderlich", + "LIST_REQUIRED": "Die Liste ist erforderlich", + "PRIORITY_REQUIRED": "Die Priorität ist erforderlich", + "CONDITION_REQUIRED": "Der Zustand ist erforderlich", + "TRUEPRIORITY_REQUIRED": "Die wahre Priorität ist erforderlich", + "FALSEPRIORITY_REQUIRED": "Die falsche Priorität ist erforderlich", + "AGENT_REQUIRED": "Der Agent ist erforderlich", + "QUEUE_REQUIRED": "Die Warteschlange ist erforderlich", + "DISPOSITION_REQUIRED": "Die Disposition ist erforderlich", + "ACCOUNTSID_REQUIRED": "Konto SID ist erforderlich", + "AUTHTOKEN_REQUIRED": "Auth Token ist erforderlich", + "MOTIONPROXY_REQUIRED": "Pflichtfeld", + "MOTIONPROXY_MUST_VALID_URL": "Falsches Format", + "TEXT_MAX_LENGTH": "Der Wert muss eine maximale Länge von {{max}} haben", + "TEXT_REQUIRED": "Pflichtfeld", + "VALUE_REQUIRED": "Pflichtfeld", + "SENDERSTRING_MAX_LENGTH": "Der Wert muss eine maximale Länge von {{max}} haben", + "SENDERSTRING_MUST_VALID_PATTERN": "Falsches Format", + "METHOD_REQUIRED": "Pflichtfeld", + "AUTHID_REQUIRED": "Pflichtfeld", + "COMMAND_REQUIRED": "Pflichtfeld", + "AGENT_TIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Der Wert muss größer oder gleich sein", + "NAME_MUST_VALID_PATTERN": "Falsches Format", + "TIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Der Wert muss kleiner oder gleich sein", + "AGENT_TIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Der Wert muss kleiner oder gleich sein", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Der Wert muss größer oder gleich sein", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Der Wert muss kleiner oder gleich sein", + "WAITFORTHEASSIGNEDAGENT_REQUIRED": "Pflichtfeld", + "TAG_REQUIRED": "Pflichtfeld", + "AGENTTRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Der Wert muss größer oder gleich sein", + "AGENTTRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Der Wert muss kleiner oder gleich sein", + "AGENTTRANSFERTIMEOUT_REQUIRED": "Pflichtfeld", + "QUEUETRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Der Wert muss größer oder gleich sein", + "QUEUETRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Der Wert muss kleiner oder gleich sein", + "QUEUETRANSFERTIMEOUT_REQUIRED": "Pflichtfeld", + "APIKEY_REQUIRED": "Pflichtfeld", + "BASEURL_REQUIRED": "Pflichtfeld", + "MANDATORYDISPOSITIONPAUSEID_REQUIRED": "Pflichtfeld", + "ACCESSKEYID_REQUIRED": "Die Zugangsschlüssel-ID ist erforderlich", + "BOTNAME_REQUIRED": "Bot Name ist erforderlich", + "SECRETACCESSKEY_REQUIRED": "Zugriffsschlüsselgeheimnis ist erforderlich", + "CLIENTEMAIL_REQUIRED": "Pflichtfeld", + "PRIVATEKEY_REQUIRED": "Pflichtfeld", + "PROJECTID_REQUIRED": "Pflichtfeld" }, "AGENT_TIMEOUT": "Agent Timeout", "DESCRIPTION": "Beschreibung", @@ -17,6 +76,7 @@ "CREATED_AT": "Erstellt am", "SAVE": "Speichern", "SMSACCOUNTS": "SMS-Konten", + "TYPE": "Typ", "PHONE": "Telefon", "SID": "SID", "TOKEN": "Token", @@ -27,6 +87,7 @@ "ADD_SMSACCOUNT": "SMS-Konto hinzufügen", "EDIT_SMSACCOUNT": "SMS-Konto bearbeiten", "DELETE_SMSACCOUNT": "SMS-Konto löschen.", + "LIST": "Liste", "FIDELITY": "Treue", "API": "API", "DISPOSITIONS": "Bestimmungen", @@ -60,8 +121,14 @@ "ALL_TEAMS": "Alle Mannschaften", "SELECTED_TEAMS": "Ausgewählte Teams", "HELP": { + "NAME": "Nur Zahlen, Buchstaben und Sonderzeichen (._) werden unterstützt.", + "LIST": "Contact Manager Liste zu verknüpfen von Kontakten", "RECEIVEURL": "Dies ist die automatisch generierte API-String müssen Sie die Nachrichten in Ihrem Konto von Ihrem SMS-Anbieter zu erhalten (POST-Methode verwendet werden muss). Drücken Sie die Zwischenablage, um Sie in die Zwischenablage zu kopieren.", - "DELIVERYREPORTURL": "Dies ist die automatisch generierte API-Zeichenfolge, die Sie verwenden müssen, um den Zustellungsbericht gesendeter Nachrichten von Ihrem SMS-Anbieter zu empfangen (die POST-Methode muss verwendet werden): Klicken Sie auf die Zwischenablage, um sie zu kopieren" + "MOTIONPROXY": "Das Feld muss das folgende Format haben: ://[:]. Beispiel: https://X.Y.Z.W", + "DELIVERYREPORTURL": "Dies ist die automatisch generierte API-Zeichenfolge, die Sie verwenden müssen, um den Zustellungsbericht gesendeter Nachrichten von Ihrem SMS-Anbieter zu empfangen (die POST-Methode muss verwendet werden): Klicken Sie auf die Zwischenablage, um sie zu kopieren", + "MANDATORYDISPOSITION": "Zwingende Disposition", + "MANDATORYDISPOSITIONPAUSEID": "Anhalten, um zu verwenden, wenn die obligatorische Disposition aktiviert ist", + "WELCOMEMESSAGE": "Dies ist die erste Antwortnachricht, die an neue Interaktionen gesendet wird" }, "PAGE": "Seite", "ROWSPERPAGE": "Zeilen pro Seite", @@ -112,6 +179,7 @@ "AUTHTOKEN": "Auth Token", "PROXY": "Proxy", "ADVANCED": "Erweiterte", + "MOTIONPROXY": "Proxy oder Motion Domain", "REALTIME": "Echtzeit", "UNKNOWN": "Unbekannt", "UNREGISTERED": "Unregistrierte", @@ -201,6 +269,8 @@ "APIKEY": "API-Schlüssel", "BASEURL": "Basis-URL", "TEAMS_ASSOCIATION": "Vereinigung der Mannschaften", + "MANDATORYDISPOSITION": "Zwingende Disposition", + "MANDATORYDISPOSITIONPAUSEID": "Anhalten, um zu verwenden, wenn die obligatorische Disposition aktiviert ist", "ACCESSKEYID": "Zugriffsschlüssel-ID", "AMAZONLEX": "AmazonLex", "BOTNAME": "Bot Name", @@ -210,8 +280,14 @@ "LANGUAGE": "Sprache", "LEXREGION": "Region", "SECRETACCESSKEY": "Zugriffsschlüsselgeheimnis", + "WELCOMEMESSAGE": "Willkommensnachricht", "DOWNLOAD_WITHOUT_ATTACHMENT": "Ohne Anhang herunterladen", "DOWNLOAD_WITH_ATTACHMENT": "Download mit Anhang", - "LASTMESSAGE": "Letzte Nachricht" + "LASTMESSAGE": "Letzte Nachricht", + "CLIENTEMAIL": "Kunden-E-Mail", + "DIALOGFLOWV2": "Dialogflow V2", + "EDIT_DIALOGFLOWV2": "Dialogflow V2 bearbeiten", + "PRIVATEKEY": "Privat Schlüssel", + "PROJECTID": "Projekt-ID" } } diff --git a/public/app/main/apps/sms/i18n/en.json b/public/app/main/apps/sms/i18n/en.json index 09115d6..8d34991 100644 --- a/public/app/main/apps/sms/i18n/en.json +++ b/public/app/main/apps/sms/i18n/en.json @@ -11,6 +11,7 @@ "SECRETACCESSKEY": "Access key secret", "LEXREGION": "Region", "BOTNAME": "Bot name", + "WELCOMEMESSAGE": "Welcome message", "LOGIN_TIME": "Login time", "PAUSE_TIME": "Pause time", "DOWNLOAD_INTERACTION": "Download", @@ -67,14 +68,17 @@ "CAPACITY": "Capacity", "PROXY": "Proxy", "ADVANCED": "Advanced", + "MOTIONPROXY": "Proxy Or Motion Domain", "REALTIME": "Realtime", "KEY": "Key", + "NAME": "Name", "SMSQUEUES": "SMS Queues", "SEARCH_FOR_ANYONE": "Search", "STRATEGY": "Strategy", "BASEURL": "Base URL", + "MANDATORYDISPOSITION": "Mandatory disposition", + "MANDATORYDISPOSITIONPAUSEID": "Pause to use when mandatory disposition is enabled", "ERRORS": { - "AUTHID_REQUIRED": "Mandatory Field", "PROJECTID_REQUIRED": "Mandatory Field", "CLIENTEMAIL_REQUIRED": "Mandatory Field", "PRIVATEKEY_REQUIRED": "Mandatory Field", @@ -96,6 +100,7 @@ "AGENT_TIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "The value must be greater than or equal to", "NAME_MUST_VALID_PATTERN": "Wrong format", "COMMAND_REQUIRED": "Mandatory Field", + "AUTHID_REQUIRED": "Mandatory Field", "TEXT_MAX_LENGTH": "The value must have a maximum length equal to {{max}}", "TEXT_REQUIRED": "Mandatory Field", "VALUE_REQUIRED": "Mandatory Field", @@ -144,6 +149,7 @@ "CREATED_AT": "Created At", "SAVE": "Save", "SMSACCOUNTS": "SMS Accounts", + "TYPE": "Type", "PHONE": "Phone", "SID": "SID", "TOKEN": "Token", @@ -154,6 +160,7 @@ "ADD_SMSACCOUNT": "Add SMS Account", "EDIT_SMSACCOUNT": "Edit SMS Account", "DELETE_SMSACCOUNT": "Delete SMS Account", + "LIST": "List", "FIDELITY": "Fidelity", "API": "API", "DISPOSITIONS": "Dispositions", @@ -191,8 +198,14 @@ "EDIT_DIALOGFLOW": "Edit DialogFlow configuration", "LANGUAGE": "Language", "HELP": { + "WELCOMEMESSAGE": "This is the first response message sent to new interactions", + "MOTIONPROXY": "The field must have the following format: ://[:]. Example: https://X.Y.Z.W", + "NAME": "Only numbers, letters and specific characters (._) are supported", + "LIST": "Contact Manager list used to associate contacts", "RECEIVEURL": "This is the auto-generated API string you need to use to receive the messages inside your account from your SMS provider (POST method must be used): click the clipboard button to copy it", - "DELIVERYREPORTURL": "This is the auto-generated API string you need to use to receive the delivery report of sent messages from your SMS provider (POST method must be used): click the clipboard button to copy it" + "DELIVERYREPORTURL": "This is the auto-generated API string you need to use to receive the delivery report of sent messages from your SMS provider (POST method must be used): click the clipboard button to copy it", + "MANDATORYDISPOSITION": "Mandatory disposition", + "MANDATORYDISPOSITIONPAUSEID": "Pause to use when mandatory disposition is enabled" }, "PAGE": "Page", "ROWSPERPAGE": "Rows per page", diff --git a/public/app/main/apps/sms/i18n/es.json b/public/app/main/apps/sms/i18n/es.json index f1f9337..15ea8ed 100644 --- a/public/app/main/apps/sms/i18n/es.json +++ b/public/app/main/apps/sms/i18n/es.json @@ -2,10 +2,74 @@ "SMS": { "HELP": { "DELIVERYREPORTURL": "Esta es la cadena de API generada automáticamente que necesita usar para recibir el informe de entrega de los mensajes enviados desde su proveedor de SMS (se debe usar el método POST): haga clic en el botón del portapapeles para copiarlo", - "RECEIVEURL": "Esta es la cadena de la API generada automáticamente que necesita usar para recibir los mensajes dentro de su cuenta de su proveedor de SMS (se debe usar el método POST): haga clic en el botón del portapapeles para copiarlo" + "LIST": "Lista de Gestor de Contactos Utilizada para Asociar Contactos", + "MOTIONPROXY": "El campo debe tener el siguiente formato: : // [: ]. Ejemplo: https: //X.Y.Z.W", + "NAME": "Solo se admiten números, letras y caracteres específicos (._)", + "RECEIVEURL": "Esta es la cadena de la API generada automáticamente que necesita usar para recibir los mensajes dentro de su cuenta de su proveedor de SMS (se debe usar el método POST): haga clic en el botón del portapapeles para copiarlo", + "MANDATORYDISPOSITION": "Cierre obligatorio", + "MANDATORYDISPOSITIONPAUSEID": "Pausa a usar si el cierre obligatorio está habilitado", + "WELCOMEMESSAGE": "Este es el primer mensaje de respuesta enviado a nuevas interacciones." }, "ERRORS": { - "AUTHID_REQUIRED": "Campo obligatorio" + "ACCEPTURL_MUST_VALID_URL": "Formato erróneo", + "ACCOUNTSID_REQUIRED": "Campo obligatorio", + "AGENT_REQUIRED": "Campo obligatorio", + "AGENT_TIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "El valor debe ser mayor o igual que", + "AGENT_TIMEOUT_REQUIRED": "Campo obligatorio", + "AUTHID_REQUIRED": "Campo obligatorio", + "AUTHTOKEN_REQUIRED": "Campo obligatorio", + "CLOSEURL_MUST_VALID_URL": "Formato erróneo", + "COMMAND_REQUIRED": "Campo obligatorio", + "CONDITION_REQUIRED": "Campo obligatorio", + "DISPOSITION_REQUIRED": "Campo obligatorio", + "FALSEPRIORITY_REQUIRED": "Campo obligatorio", + "KEY_MAX_LENGTH": "El valor debe tener una longitud máxima igual a {{max}}", + "KEY_REQUIRED": "Campo obligatorio", + "LIST_REQUIRED": "Campo obligatorio", + "METHOD_REQUIRED": "Campo obligatorio", + "MOTIONADDRESS_MUST_VALID_URL": "Formato erróneo", + "MOTIONADDRESS_REQUIRED": "Campo obligatorio", + "MOTIONPROXY_MUST_VALID_URL": "Formato erróneo", + "MOTIONPROXY_REQUIRED": "Campo obligatorio", + "NAME_MUST_VALID_PATTERN": "Formato erróneo", + "NAME_REQUIRED": "Campo obligatorio", + "PASSWORD_REQUIRED": "Campo obligatorio", + "PHONE_REQUIRED": "Campo obligatorio", + "PRIORITY_REQUIRED": "Campo obligatorio", + "QUEUE_REQUIRED": "Campo obligatorio", + "REJECTURL_MUST_VALID_URL": "Formato erróneo", + "SENDERSTRING_MAX_LENGTH": "El valor debe tener una longitud máxima igual a {{max}}", + "SENDERSTRING_MUST_VALID_PATTERN": "Formato erróneo", + "SID_REQUIRED": "Campo obligatorio", + "TEXT_MAX_LENGTH": "El valor debe tener una longitud máxima igual a {{max}}", + "TEXT_REQUIRED": "Campo obligatorio", + "TIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "El valor debe ser menor o igual que", + "TIMEOUT_REQUIRED": "Campo obligatorio", + "TOKEN_REQUIRED": "Campo obligatorio", + "TRUEPRIORITY_REQUIRED": "Campo obligatorio", + "TYPE_REQUIRED": "Campo obligatorio", + "USERNAME_REQUIRED": "Campo obligatorio", + "VALUE_REQUIRED": "Campo obligatorio", + "AGENT_TIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "El valor debe ser menor o igual que", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "El valor debe ser mayor o igual que", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "El valor debe ser menor o igual que", + "WAITFORTHEASSIGNEDAGENT_REQUIRED": "Campo obligatorio", + "TAG_REQUIRED": "Campo obligatorio", + "AGENTTRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "El valor debe ser mayor o igual a", + "AGENTTRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "El valor debe ser menor o igual a", + "AGENTTRANSFERTIMEOUT_REQUIRED": "Campo obligatorio", + "QUEUETRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "El valor debe ser mayor o igual a", + "QUEUETRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "El valor debe ser menor o igual a", + "QUEUETRANSFERTIMEOUT_REQUIRED": "Campo obligatorio", + "APIKEY_REQUIRED": "Campo obligatorio", + "BASEURL_REQUIRED": "Campo obligatorio", + "MANDATORYDISPOSITIONPAUSEID_REQUIRED": "Campo obligatorio", + "ACCESSKEYID_REQUIRED": "Se requiere ID de clave de acceso", + "BOTNAME_REQUIRED": "Se requiere el nombre del bot", + "SECRETACCESSKEY_REQUIRED": "Se requiere clave de acceso secreta", + "CLIENTEMAIL_REQUIRED": "Campo obligatorio", + "PRIVATEKEY_REQUIRED": "Campo obligatorio", + "PROJECTID_REQUIRED": "Campo obligatorio" }, "ACCEPT": "Aceptar", "ACCEPTMETHOD": "Aceptar Método", @@ -93,12 +157,15 @@ "INTERNAL": "Interno", "IN_USE": "En uso", "KEY": "Llave", + "LIST": "Lista", "LOGGED_IN": "Conectado", "LOGOUT": "Cerrar sesión", "MAIL": "Email", "MESSAGE": "Mensaje", "METHOD": "Método", "MOTIONADDRESS": "Dirección Motion", + "MOTIONPROXY": "Dominio o Proxy Motion", + "NAME": "Nombre", "NEW_SMSACCOUNT": "Nueva cuenta SMS", "NEW_SMSCANNEDANSWER": "Nueva respuesta enlatada", "NEW_SMSDISPOSITION": "Nuevo cierre de SMS", @@ -174,6 +241,7 @@ "TO": "A", "TOKEN": "Token", "TRUEPRIORITY": "Prioridad Verdadera", + "TYPE": "Tipo", "UNAVAILABLE": "No Disponible", "UNKNOWN": "Desconocido", "UNPAUSE": "Fin de pausa", @@ -201,6 +269,8 @@ "APIKEY": "Clave API", "BASEURL": "URL base", "TEAMS_ASSOCIATION": "Asociación de equipos", + "MANDATORYDISPOSITION": "Cierre obligatorio", + "MANDATORYDISPOSITIONPAUSEID": "Pausa a usar si el cierre obligatorio está habilitado", "ACCESSKEYID": "ID de clave de acceso", "AMAZONLEX": "AmazonLex", "BOTNAME": "Nombre del bot", @@ -210,8 +280,14 @@ "LANGUAGE": "Idioma", "LEXREGION": "Región", "SECRETACCESSKEY": "Clave de acceso secreto", + "WELCOMEMESSAGE": "Mensaje de bienvenida", "DOWNLOAD_WITHOUT_ATTACHMENT": "Descargar sin adjuntar", "DOWNLOAD_WITH_ATTACHMENT": "Descargar con archivo adjunto", - "LASTMESSAGE": "Ultimo mensaje" + "LASTMESSAGE": "Ultimo mensaje", + "CLIENTEMAIL": "Correo electrónico del cliente", + "DIALOGFLOWV2": "Dialogflow V2", + "EDIT_DIALOGFLOWV2": "Editar Dialogflow V2", + "PRIVATEKEY": "Llave privada", + "PROJECTID": "Projecto ID" } } diff --git a/public/app/main/apps/sms/i18n/et.json b/public/app/main/apps/sms/i18n/et.json index a38d352..18f2dad 100644 --- a/public/app/main/apps/sms/i18n/et.json +++ b/public/app/main/apps/sms/i18n/et.json @@ -56,13 +56,73 @@ "CAPACITY": "Capacity", "PROXY": "Proxy", "ADVANCED": "Advanced", + "MOTIONPROXY": "Proxy Or Motion Domain", "REALTIME": "Realtime", "KEY": "Key", + "NAME": "Name", "SMSQUEUES": "SMS Queues", "SEARCH_FOR_ANYONE": "Search", "STRATEGY": "Strategy", "ERRORS": { - "AUTHID_REQUIRED": "Mandatory Field" + "QUEUETRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "The value must be less than or equal to", + "QUEUETRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "The value must be greater than or equal to", + "QUEUETRANSFERTIMEOUT_REQUIRED": "Mandatory Field", + "AGENTTRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "The value must be less than or equal to", + "AGENTTRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "The value must be greater than or equal to", + "AGENTTRANSFERTIMEOUT_REQUIRED": "Mandatory Field", + "TAG_REQUIRED": "Mandatory Field", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "The value must be less than or equal to", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "The value must be greater than or equal to", + "WAITFORTHEASSIGNEDAGENT_REQUIRED": "Mandatory Field", + "AGENT_TIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "The value must be less than or equal to", + "TIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "The value must be less than or equal to", + "AGENT_TIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "The value must be greater than or equal to", + "NAME_MUST_VALID_PATTERN": "Wrong format", + "COMMAND_REQUIRED": "Mandatory Field", + "AUTHID_REQUIRED": "Mandatory Field", + "TEXT_MAX_LENGTH": "The value must have a maximum length equal to {{max}}", + "TEXT_REQUIRED": "Mandatory Field", + "VALUE_REQUIRED": "Mandatory Field", + "SENDERSTRING_MAX_LENGTH": "The value must have a maximum length equal to {{max}}", + "SENDERSTRING_MUST_VALID_PATTERN": "Wrong format", + "METHOD_REQUIRED": "Mandatory Field", + "MOTIONPROXY_REQUIRED": "Mandatory Field", + "MOTIONPROXY_MUST_VALID_URL": "Wrong format", + "KEY_MAX_LENGTH": "The value must have a maximum length equal to {{max}}", + "KEY_REQUIRED": "Mandatory Field", + "NAME_REQUIRED": "Mandatory Field", + "AGENT_TIMEOUT_REQUIRED": "Mandatory Field", + "PHONE_REQUIRED": "Mandatory Field", + "SID_REQUIRED": "Mandatory Field", + "TOKEN_REQUIRED": "Mandatory Field", + "USERNAME_REQUIRED": "Mandatory Field", + "PASSWORD_REQUIRED": "Mandatory Field", + "MOTIONADDRESS_REQUIRED": "Mandatory Field", + "MOTIONADDRESS_MUST_VALID_URL": "Wrong format", + "ACCEPTURL_MUST_VALID_URL": "Wrong format", + "TIMEOUT_REQUIRED": "Mandatory Field", + "REJECTURL_MUST_VALID_URL": "Wrong format", + "CLOSEURL_MUST_VALID_URL": "Wrong format", + "TYPE_REQUIRED": "Mandatory Field", + "LIST_REQUIRED": "Mandatory Field", + "PRIORITY_REQUIRED": "Mandatory Field", + "CONDITION_REQUIRED": "Mandatory Field", + "TRUEPRIORITY_REQUIRED": "Mandatory Field", + "FALSEPRIORITY_REQUIRED": "Mandatory Field", + "AGENT_REQUIRED": "Mandatory Field", + "QUEUE_REQUIRED": "Mandatory Field", + "DISPOSITION_REQUIRED": "Mandatory Field", + "ACCOUNTSID_REQUIRED": "Mandatory Field", + "AUTHTOKEN_REQUIRED": "Mandatory Field", + "ACCESSKEYID_REQUIRED": "Juurdepääsukoodi ID on vajalik", + "APIKEY_REQUIRED": "Kohustuslik väli", + "BASEURL_REQUIRED": "Kohustuslik väli", + "BOTNAME_REQUIRED": "Boti nimi on kohustuslik", + "MANDATORYDISPOSITIONPAUSEID_REQUIRED": "Kohustuslik väli", + "SECRETACCESSKEY_REQUIRED": "Juurdepääsu võtme saladus on vajalik", + "CLIENTEMAIL_REQUIRED": "Kohustuslik väli", + "PRIVATEKEY_REQUIRED": "Kohustuslik väli", + "PROJECTID_REQUIRED": "Kohustuslik väli" }, "AGENT_TIMEOUT": "Agent Timeout", "DESCRIPTION": "Description", @@ -74,6 +134,7 @@ "CREATED_AT": "Created At", "SAVE": "Save", "SMSACCOUNTS": "SMS Accounts", + "TYPE": "Type", "PHONE": "Phone", "SID": "SID", "TOKEN": "Token", @@ -84,6 +145,7 @@ "ADD_SMSACCOUNT": "Add SMS Account", "EDIT_SMSACCOUNT": "Edit SMS Account", "DELETE_SMSACCOUNT": "Delete SMS Account", + "LIST": "List", "FIDELITY": "Fidelity", "API": "API", "DISPOSITIONS": "Dispositions", @@ -117,8 +179,14 @@ "ALL_TEAMS": "All Teams", "SELECTED_TEAMS": "Selected Teams", "HELP": { + "MOTIONPROXY": "The field must have the following format: ://[:]. Example: https://X.Y.Z.W", + "NAME": "Only numbers, letters and specific characters (._) are supported", + "LIST": "Contact Manager list used to associate contacts", "RECEIVEURL": "This is the auto-generated API string you need to use to receive the messages inside your account from your SMS provider (POST method must be used): click the clipboard button to copy it", - "DELIVERYREPORTURL": "This is the auto-generated API string you need to use to receive the delivery report of sent messages from your SMS provider (POST method must be used): click the clipboard button to copy it" + "DELIVERYREPORTURL": "This is the auto-generated API string you need to use to receive the delivery report of sent messages from your SMS provider (POST method must be used): click the clipboard button to copy it", + "MANDATORYDISPOSITION": "Kohustuslik käsutamine", + "MANDATORYDISPOSITIONPAUSEID": "Kasutamise peatamine, kui kohustuslik käsutamine on lubatud", + "WELCOMEMESSAGE": "See on esimene vastussõnum, mis saadetakse uutele interaktsioonidele" }, "PAGE": "Page", "ROWSPERPAGE": "Rows per page", @@ -211,7 +279,15 @@ "LANGUAGE": "Keel", "LASTMESSAGE": "Viimane teade", "LEXREGION": "Piirkond", + "MANDATORYDISPOSITION": "Kohustuslik käsutamine", + "MANDATORYDISPOSITIONPAUSEID": "Kasutamise peatamine, kui kohustuslik käsutamine on lubatud", "SECRETACCESSKEY": "Juurdepääsu võtme saladus", - "TEAMS_ASSOCIATION": "Võistkondade liit" + "TEAMS_ASSOCIATION": "Võistkondade liit", + "WELCOMEMESSAGE": "Tervitussõnum", + "CLIENTEMAIL": "Kliendi e-post", + "DIALOGFLOWV2": "Dialoogivoog V2", + "EDIT_DIALOGFLOWV2": "Redigeerimise dialoogivoog V2", + "PRIVATEKEY": "Privaatne võti", + "PROJECTID": "Projekti ID" } } diff --git a/public/app/main/apps/sms/i18n/fa.json b/public/app/main/apps/sms/i18n/fa.json index 8686181..25234f8 100644 --- a/public/app/main/apps/sms/i18n/fa.json +++ b/public/app/main/apps/sms/i18n/fa.json @@ -1,11 +1,70 @@ { "SMS": { "KEY": "استاديار دانشگاه علوم پزشكي گرگان", + "NAME": "نام", "SMSQUEUES": "صفهای طولانی SMS", "SEARCH_FOR_ANYONE": "در جستجوی کسی", "STRATEGY": "استراتژي", "ERRORS": { - "AUTHID_REQUIRED": "زمینه اجباری" + "KEY_MAX_LENGTH": "کلید باید حداکثر برابر با طول حداکثر}} {{", + "KEY_REQUIRED": "کلید مورد نیاز است.", + "NAME_REQUIRED": "نام لازم است.", + "AGENT_TIMEOUT_REQUIRED": "عامل پایان زمان لازم است.", + "PHONE_REQUIRED": "تلفن لازم است.", + "SID_REQUIRED": "گرفتن SID، لازم است.", + "TOKEN_REQUIRED": "اين نشانه لازم است.", + "USERNAME_REQUIRED": "نام کاربری مورد نیاز است.", + "PASSWORD_REQUIRED": "رمز عبور لازم است.", + "MOTIONADDRESS_REQUIRED": "آدرس حركت لازم است.", + "MOTIONADDRESS_MUST_VALID_URL": "حركت باید آدرس را در یک فرمت معتبر نوشته شده است", + "ACCEPTURL_MUST_VALID_URL": "از پذیرفتن باید آدرس کامل را در یک فرمت معتبر نوشته شده است", + "TIMEOUT_REQUIRED": "در پایان زمان لازم است.", + "REJECTURL_MUST_VALID_URL": "آدرس کامل را رد كند بايد در فرمت معتبر نوشته شده است", + "CLOSEURL_MUST_VALID_URL": "آدرس کامل باید بسته به فرمت معتبر نوشته شده است", + "TYPE_REQUIRED": "از نوع لازم است.", + "LIST_REQUIRED": "لیست مورد نیاز است.", + "PRIORITY_REQUIRED": "اولويت لازم است.", + "CONDITION_REQUIRED": "شرط لازم است.", + "TRUEPRIORITY_REQUIRED": "تقدم حقيقي لازم است.", + "FALSEPRIORITY_REQUIRED": "به غلط اولویت لازم است.", + "AGENT_REQUIRED": "عامل لازم است.", + "QUEUE_REQUIRED": "توی صف لازم است.", + "DISPOSITION_REQUIRED": "از 1626 مورد نیاز است.", + "ACCOUNTSID_REQUIRED": "گرفتن SID اشتراک مورد نیاز است.", + "AUTHTOKEN_REQUIRED": "Auth نشانه لازم است.", + "MOTIONPROXY_REQUIRED": "رشته الزامی", + "MOTIONPROXY_MUST_VALID_URL": "فرمت نادرست", + "TEXT_MAX_LENGTH": "مقدار باید طول حداکثر {{حداکثر}} باشد", + "TEXT_REQUIRED": "زمینه اجباری", + "VALUE_REQUIRED": "زمینه اجباری", + "SENDERSTRING_MAX_LENGTH": "مقدار باید طول حداکثر {{حداکثر}} باشد", + "SENDERSTRING_MUST_VALID_PATTERN": "فرمت اشتباه", + "METHOD_REQUIRED": "زمینه اجباری", + "AUTHID_REQUIRED": "زمینه اجباری", + "COMMAND_REQUIRED": "زمینه اجباری", + "AGENT_TIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "مقدار باید بیشتر یا برابر باشد", + "NAME_MUST_VALID_PATTERN": "فرمت اشتباه", + "TIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "ارزش باید کمتر یا برابر باشد", + "AGENT_TIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "ارزش باید کمتر یا برابر باشد", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "مقدار باید بیشتر یا برابر باشد", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "ارزش باید کمتر یا برابر باشد", + "WAITFORTHEASSIGNEDAGENT_REQUIRED": "زمینه اجباری", + "TAG_REQUIRED": "زمینه اجباری", + "AGENTTRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "مقدار باید بیشتر یا برابر باشد", + "AGENTTRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "ارزش باید کمتر یا برابر باشد", + "AGENTTRANSFERTIMEOUT_REQUIRED": "زمینه اجباری", + "QUEUETRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "مقدار باید بیشتر یا برابر باشد", + "QUEUETRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "ارزش باید کمتر یا برابر باشد", + "QUEUETRANSFERTIMEOUT_REQUIRED": "زمینه اجباری", + "APIKEY_REQUIRED": "زمینه اجباری", + "BASEURL_REQUIRED": "زمینه اجباری", + "MANDATORYDISPOSITIONPAUSEID_REQUIRED": "زمینه اجباری", + "ACCESSKEYID_REQUIRED": "شناسه کلید دسترسی لازم است", + "BOTNAME_REQUIRED": "نام ربات لازم است", + "SECRETACCESSKEY_REQUIRED": "راز کلید دسترسی مورد نیاز است", + "CLIENTEMAIL_REQUIRED": "زمینه اجباری", + "PRIVATEKEY_REQUIRED": "زمینه اجباری", + "PROJECTID_REQUIRED": "زمینه اجباری" }, "AGENT_TIMEOUT": "عامل زمان مجاز", "DESCRIPTION": "شرح", @@ -17,6 +76,7 @@ "CREATED_AT": "ایجاد شده در", "SAVE": "ذخیره", "SMSACCOUNTS": "SMS حسابداري", + "TYPE": "نوع دستگاه", "PHONE": "تلفن همراه", "SID": "گرفتن SID", "TOKEN": "نشانه", @@ -27,6 +87,7 @@ "ADD_SMSACCOUNT": "افزودن اشتراک SMS", "EDIT_SMSACCOUNT": "ویرایش اشتراک SMS", "DELETE_SMSACCOUNT": "حذف اشتراک SMS", + "LIST": "فهرست", "FIDELITY": "وفاداري", "API": "API", "DISPOSITIONS": "مكتبى", @@ -60,8 +121,14 @@ "ALL_TEAMS": "همه تیم ها", "SELECTED_TEAMS": "تيم هاي برگزيده", "HELP": { + "NAME": "فقط شماره ها و حروف و نویسه های ویژه (_) پشتیبانی می شود.", + "LIST": "مدیر تماس بگیرید لیست تماس ها استفاده می شود تا ٥", "RECEIVEURL": "این API تولید خودکار عبارت شما نیاز به استفاده از آن دریافت پیام داخلی اشتراک شما از روش پست SMS (سرویس دهنده استفاده می شود). شما می توانید دکمه را فشار دهید تا یک کپی از آن را به حافظه موقت شما را در حافظه موقت کپی می کند.", - "DELIVERYREPORTURL": "این رشته API خودکار تولید شده است که شما باید برای دریافت گزارش تحویل پیام های فرستاده شده از ارائه دهنده پیام کوتاه خود استفاده کنید (روش POST باید استفاده شود): روی دکمه کلیپ بورد کلیک کنید تا آن را کپی کنید" + "MOTIONPROXY": "حوزه باید با فرمت زیر است: <پروتكل://>>] است. مثال: https://X.Y.Z.W", + "DELIVERYREPORTURL": "این رشته API خودکار تولید شده است که شما باید برای دریافت گزارش تحویل پیام های فرستاده شده از ارائه دهنده پیام کوتاه خود استفاده کنید (روش POST باید استفاده شود): روی دکمه کلیپ بورد کلیک کنید تا آن را کپی کنید", + "MANDATORYDISPOSITION": "وضع اجباری", + "MANDATORYDISPOSITIONPAUSEID": "در صورت فعال بودن حالت اجباری ، مکث کنید", + "WELCOMEMESSAGE": "این اولین پیام پاسخی است که به تعاملات جدید ارسال می شود" }, "PAGE": "صفحه", "ROWSPERPAGE": "رديف در صفحه", @@ -112,6 +179,7 @@ "AUTHTOKEN": "Auth نشانه", "PROXY": "سيستم", "ADVANCED": "پيش رفت.", + "MOTIONPROXY": "بجنگند يا حركت حوزه", "REALTIME": "Realtime", "UNKNOWN": "ناشناخته", "UNREGISTERED": "ثبت", @@ -201,6 +269,8 @@ "APIKEY": "کلید ای پی ای", "BASEURL": "URL پایه", "TEAMS_ASSOCIATION": "انجمن تیم", + "MANDATORYDISPOSITION": "وضع اجباری", + "MANDATORYDISPOSITIONPAUSEID": "در صورت فعال بودن حالت اجباری ، مکث کنید", "ACCESSKEYID": "دسترسی به شناسه کلید", "AMAZONLEX": "AmazonLex", "BOTNAME": "نام بوت", @@ -210,8 +280,14 @@ "LANGUAGE": "زبان", "LEXREGION": "منطقه", "SECRETACCESSKEY": "راز دسترسی به کلید", + "WELCOMEMESSAGE": "پیام خوش آمد", "DOWNLOAD_WITHOUT_ATTACHMENT": "بارگیری بدون پیوست", "DOWNLOAD_WITH_ATTACHMENT": "با پیوست بارگیری کنید", - "LASTMESSAGE": "آخرین پیام" + "LASTMESSAGE": "آخرین پیام", + "CLIENTEMAIL": "ایمیل مشتری", + "DIALOGFLOWV2": "Dialogflow V2", + "EDIT_DIALOGFLOWV2": "ویرایش Dialogflow V2", + "PRIVATEKEY": "کلید خصوصی", + "PROJECTID": "شناسه پروژه" } } diff --git a/public/app/main/apps/sms/i18n/fi.json b/public/app/main/apps/sms/i18n/fi.json index 28293cf..1416fd5 100644 --- a/public/app/main/apps/sms/i18n/fi.json +++ b/public/app/main/apps/sms/i18n/fi.json @@ -1,11 +1,70 @@ { "SMS": { "KEY": "Avain", + "NAME": "Nimi", "SMSQUEUES": "SMS-jonosta", "SEARCH_FOR_ANYONE": "Etsi joku", "STRATEGY": "Strategia", "ERRORS": { - "AUTHID_REQUIRED": "Pakollinen kenttä" + "KEY_MAX_LENGTH": "Avain on enintään yhtä suuri kuin {{max}}", + "KEY_REQUIRED": "Avain.", + "NAME_REQUIRED": "Nimi on pakollinen", + "AGENT_TIMEOUT_REQUIRED": "Asiakaspalvelijan aikakatkaisu on pakollinen", + "PHONE_REQUIRED": "Puhelin ei tarvita", + "SID_REQUIRED": "SID ei tarvita", + "TOKEN_REQUIRED": "Etätunnistinta ei tarvita", + "USERNAME_REQUIRED": "Käyttäjätunnus on pakollinen", + "PASSWORD_REQUIRED": "Salasana on pakollinen", + "MOTIONADDRESS_REQUIRED": "Liikkeen osoite on pakollinen tieto", + "MOTIONADDRESS_MUST_VALID_URL": "Liikkeen osoite on kirjoitettava kelvollisessa muodossa", + "ACCEPTURL_MUST_VALID_URL": "Hyväksy URL on kirjoitettava kelvollisessa muodossa", + "TIMEOUT_REQUIRED": "Aikakatkaisujakso on pakollinen", + "REJECTURL_MUST_VALID_URL": "Hylätyt URL on kirjoitettava kelvollisessa muodossa", + "CLOSEURL_MUST_VALID_URL": "Sulje URL on kirjoitettava kelvollisessa muodossa", + "TYPE_REQUIRED": "Tyyppi on pakollinen", + "LIST_REQUIRED": "Lista on pakollinen", + "PRIORITY_REQUIRED": "Etusijalla on pakollinen", + "CONDITION_REQUIRED": "Kunto on pakollinen", + "TRUEPRIORITY_REQUIRED": "Todellinen prioriteetti on pakollinen", + "FALSEPRIORITY_REQUIRED": "Väärät prioriteetti on pakollinen", + "AGENT_REQUIRED": "Agentti on pakollinen", + "QUEUE_REQUIRED": "Jono on pakollinen", + "DISPOSITION_REQUIRED": "Jatkokäsittely on pakollinen", + "ACCOUNTSID_REQUIRED": "Account SID ei tarvita", + "AUTHTOKEN_REQUIRED": "Valt token tarvitaan", + "MOTIONPROXY_REQUIRED": "Pakollinen kenttä.", + "MOTIONPROXY_MUST_VALID_URL": "Väärä sovellusmuoto", + "TEXT_MAX_LENGTH": "Arvon enimmäispituus on {{max}}", + "TEXT_REQUIRED": "Pakollinen kenttä", + "VALUE_REQUIRED": "Pakollinen kenttä", + "SENDERSTRING_MAX_LENGTH": "Arvon enimmäispituus on {{max}}", + "SENDERSTRING_MUST_VALID_PATTERN": "Väärä formaatti", + "METHOD_REQUIRED": "Pakollinen kenttä", + "AUTHID_REQUIRED": "Pakollinen kenttä", + "COMMAND_REQUIRED": "Pakollinen kenttä", + "AGENT_TIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Arvon on oltava suurempi tai yhtä suuri kuin", + "NAME_MUST_VALID_PATTERN": "Väärä formaatti", + "TIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Arvon on oltava pienempi tai yhtä suuri kuin", + "AGENT_TIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Arvon on oltava pienempi tai yhtä suuri kuin", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Arvon on oltava suurempi tai yhtä suuri kuin", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Arvon on oltava pienempi tai yhtä suuri kuin", + "WAITFORTHEASSIGNEDAGENT_REQUIRED": "Pakollinen kenttä", + "TAG_REQUIRED": "Pakollinen kenttä", + "AGENTTRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Arvon on oltava suurempi tai yhtä suuri kuin", + "AGENTTRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Arvon on oltava pienempi tai yhtä suuri kuin", + "AGENTTRANSFERTIMEOUT_REQUIRED": "Pakollinen kenttä", + "QUEUETRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Arvon on oltava suurempi tai yhtä suuri kuin", + "QUEUETRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Arvon on oltava pienempi tai yhtä suuri kuin", + "QUEUETRANSFERTIMEOUT_REQUIRED": "Pakollinen kenttä", + "APIKEY_REQUIRED": "Pakollinen kenttä", + "BASEURL_REQUIRED": "Pakollinen kenttä", + "MANDATORYDISPOSITIONPAUSEID_REQUIRED": "Pakollinen kenttä", + "ACCESSKEYID_REQUIRED": "Käyttöavaintunnus vaaditaan", + "BOTNAME_REQUIRED": "Botin nimi vaaditaan", + "SECRETACCESSKEY_REQUIRED": "Käyttöavaimen salaisuus vaaditaan", + "CLIENTEMAIL_REQUIRED": "Pakollinen kenttä", + "PRIVATEKEY_REQUIRED": "Pakollinen kenttä", + "PROJECTID_REQUIRED": "Pakollinen kenttä" }, "AGENT_TIMEOUT": "Agentti aikakatkaisu", "DESCRIPTION": "Kuvaus", @@ -17,6 +76,7 @@ "CREATED_AT": "Luodaan", "SAVE": "Tallenna", "SMSACCOUNTS": "SMS-tilit", + "TYPE": "Tyyppi", "PHONE": "Puhelin", "SID": "SID", "TOKEN": "Etätunnistin", @@ -27,6 +87,7 @@ "ADD_SMSACCOUNT": "Lisää SMS tili", "EDIT_SMSACCOUNT": "Muokkaa SMS tili", "DELETE_SMSACCOUNT": "Poista SMS tili", + "LIST": "Luettelo", "FIDELITY": "Epätarkkaan äänentoistoon", "API": "API", "DISPOSITIONS": "Yhteisyys", @@ -60,8 +121,14 @@ "ALL_TEAMS": "Kaikki joukkueet", "SELECTED_TEAMS": "Valittu työryhmille", "HELP": { + "NAME": "Vain numeroita, kirjaimia ja erikoismerkkejä (._ tuetaan", + "LIST": "Contact Manager -moottorityyppiin yhteystiedot", "RECEIVEURL": "Tämä on automaattisesti luotua API string tarvitset vastaanottamaan viestejä sisällä tililtäsi Tekstiviestipalvelun tarjoaja (POST menetelmän on oltava käytössä). Voit painaa leikepöydän kopioi sen leikepöydälle.", - "DELIVERYREPORTURL": "Tämä on automaattisesti luotu API-merkkijono, jonka haluat vastaanottaa SMS-palveluntarjoajaltasi lähetettyjen viestien lähetysraportista (POST-menetelmää on käytettävä): kopioi leikepöydälle napsauttamalla sitä" + "MOTIONPROXY": "Kenttään on syötettävä seuraavassa muodossa: ://[:]. Esimerkki: https://X.Y.Z.W", + "DELIVERYREPORTURL": "Tämä on automaattisesti luotu API-merkkijono, jonka haluat vastaanottaa SMS-palveluntarjoajaltasi lähetettyjen viestien lähetysraportista (POST-menetelmää on käytettävä): kopioi leikepöydälle napsauttamalla sitä", + "MANDATORYDISPOSITION": "Pakollinen sijoittaminen", + "MANDATORYDISPOSITIONPAUSEID": "Tauko käyttöön, kun pakollinen sijoittaminen on käytössä", + "WELCOMEMESSAGE": "Tämä on ensimmäinen vastausviesti, joka lähetetään uusiin vuorovaikutuksiin" }, "PAGE": "Sivu", "ROWSPERPAGE": "Riviä sivulle", @@ -112,6 +179,7 @@ "AUTHTOKEN": "Valt etätunnistin", "PROXY": "Proxy", "ADVANCED": "Tarkennettu", + "MOTIONPROXY": "Välityspalvelimen tai Liikkeentunnistus Domain", "REALTIME": "Tosiaikainen", "UNKNOWN": "Tuntematon", "UNREGISTERED": "Rekisteröimätön", @@ -201,6 +269,8 @@ "APIKEY": "apikey", "BASEURL": "Perus-URL-osoite", "TEAMS_ASSOCIATION": "Joukkueiden yhdistys", + "MANDATORYDISPOSITION": "Pakollinen sijoittaminen", + "MANDATORYDISPOSITIONPAUSEID": "Tauko käyttöön, kun pakollinen sijoittaminen on käytössä", "ACCESSKEYID": "Käyttöavaintunnus", "AMAZONLEX": "AmazonLex", "BOTNAME": "Botin nimi", @@ -210,8 +280,14 @@ "LANGUAGE": "Kieli", "LEXREGION": "alue", "SECRETACCESSKEY": "Pääsysalaisuus", + "WELCOMEMESSAGE": "Tervetuloviesti", "DOWNLOAD_WITHOUT_ATTACHMENT": "Lataa ilman liitetiedostoja", "DOWNLOAD_WITH_ATTACHMENT": "Lataa liitteenä", - "LASTMESSAGE": "Viimeinen viesti" + "LASTMESSAGE": "Viimeinen viesti", + "CLIENTEMAIL": "Asiakkaan sähköposti", + "DIALOGFLOWV2": "Dialogflow V2", + "EDIT_DIALOGFLOWV2": "Muokkaa valintaikkunaa V2", + "PRIVATEKEY": "Yksityinen avain", + "PROJECTID": "Projektin tunnus" } } diff --git a/public/app/main/apps/sms/i18n/fr.json b/public/app/main/apps/sms/i18n/fr.json index dd4886e..7ccc442 100644 --- a/public/app/main/apps/sms/i18n/fr.json +++ b/public/app/main/apps/sms/i18n/fr.json @@ -1,11 +1,70 @@ { "SMS": { "KEY": "Key", + "NAME": "Nom", "SMSQUEUES": "Les files d'SMS", "SEARCH_FOR_ANYONE": "Vous pouvez chercher n'importe qui", "STRATEGY": "Stratégie", "ERRORS": { - "AUTHID_REQUIRED": "Champ obligatoire" + "KEY_MAX_LENGTH": "Clé doit avoir une longueur maximale égale à {{max}}", + "KEY_REQUIRED": "Clé est nécessaire", + "NAME_REQUIRED": "Le nom est obligatoire", + "AGENT_TIMEOUT_REQUIRED": "L'Agent est nécessaire", + "PHONE_REQUIRED": "Le téléphone est requis", + "SID_REQUIRED": "Le SID est requis", + "TOKEN_REQUIRED": "Le jeton est requis", + "USERNAME_REQUIRED": "L'utilisateur est nécessaire", + "PASSWORD_REQUIRED": "Le mot de passe est requis", + "MOTIONADDRESS_REQUIRED": "La motion est nécessaire", + "MOTIONADDRESS_MUST_VALID_URL": "La motion doit être écrit dans un format valide", + "ACCEPTURL_MUST_VALID_URL": "Accepter l'URL doit être écrit dans un format valide", + "TIMEOUT_REQUIRED": "Le délai est nécessaire", + "REJECTURL_MUST_VALID_URL": "Rejeter l'URL doit être écrit dans un format valide", + "CLOSEURL_MUST_VALID_URL": "Fermer l'URL doit être écrit dans un format valide", + "TYPE_REQUIRED": "Le type est requis", + "LIST_REQUIRED": "La liste est requis", + "PRIORITY_REQUIRED": "La priorité est requise", + "CONDITION_REQUIRED": "L'état est requis", + "TRUEPRIORITY_REQUIRED": "La vraie priorité est requise", + "FALSEPRIORITY_REQUIRED": "La fausse priorité est requise", + "AGENT_REQUIRED": "L'Agent est nécessaire", + "QUEUE_REQUIRED": "La file d'attente est nécessaire", + "DISPOSITION_REQUIRED": "La disposition est nécessaire", + "ACCOUNTSID_REQUIRED": "SID compte est requis", + "AUTHTOKEN_REQUIRED": "Auth Token est nécessaire", + "MOTIONPROXY_REQUIRED": "Champ obligatoire", + "MOTIONPROXY_MUST_VALID_URL": "Format incorrect", + "TEXT_MAX_LENGTH": "La valeur doit avoir une longueur maximale égale à {{max}}", + "TEXT_REQUIRED": "Champ obligatoire", + "VALUE_REQUIRED": "Champ obligatoire", + "SENDERSTRING_MAX_LENGTH": "La valeur doit avoir une longueur maximale égale à {{max}}", + "SENDERSTRING_MUST_VALID_PATTERN": "Mauvais format", + "METHOD_REQUIRED": "Champ obligatoire", + "AUTHID_REQUIRED": "Champ obligatoire", + "COMMAND_REQUIRED": "Champ obligatoire", + "AGENT_TIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "La valeur doit être supérieure ou égale à", + "NAME_MUST_VALID_PATTERN": "Mauvais format", + "TIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "La valeur doit être inférieure ou égale à", + "AGENT_TIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "La valeur doit être inférieure ou égale à", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "La valeur doit être supérieure ou égale à", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "La valeur doit être inférieure ou égale à", + "WAITFORTHEASSIGNEDAGENT_REQUIRED": "Champ obligatoire", + "TAG_REQUIRED": "Champ obligatoire", + "AGENTTRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "La valeur doit être supérieure ou égale à", + "AGENTTRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "La valeur doit être inférieure ou égale à", + "AGENTTRANSFERTIMEOUT_REQUIRED": "Champ obligatoire", + "QUEUETRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "La valeur doit être supérieure ou égale à", + "QUEUETRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "La valeur doit être inférieure ou égale à", + "QUEUETRANSFERTIMEOUT_REQUIRED": "Champ obligatoire", + "APIKEY_REQUIRED": "Champ obligatoire", + "BASEURL_REQUIRED": "Champ obligatoire", + "MANDATORYDISPOSITIONPAUSEID_REQUIRED": "Champ obligatoire", + "ACCESSKEYID_REQUIRED": "Un identifiant de clé d'accès est requis", + "BOTNAME_REQUIRED": "Le nom du bot est requis", + "SECRETACCESSKEY_REQUIRED": "Le secret de la clé d'accès est requis", + "CLIENTEMAIL_REQUIRED": "Champ obligatoire", + "PRIVATEKEY_REQUIRED": "Champ obligatoire", + "PROJECTID_REQUIRED": "Champ obligatoire" }, "AGENT_TIMEOUT": "Délai d'agent", "DESCRIPTION": "Description", @@ -17,6 +76,7 @@ "CREATED_AT": "Créé à", "SAVE": "Sauvegarder", "SMSACCOUNTS": "Comptes SMS", + "TYPE": "Type", "PHONE": "Téléphone", "SID": "SID", "TOKEN": "Coup", @@ -27,6 +87,7 @@ "ADD_SMSACCOUNT": "Ajouter compte SMS", "EDIT_SMSACCOUNT": "Compte SMS Modifier", "DELETE_SMSACCOUNT": "Supprimer compte SMS", + "LIST": "Liste", "FIDELITY": "Fidelity", "API": "API", "DISPOSITIONS": "Dispositions", @@ -60,8 +121,14 @@ "ALL_TEAMS": "Toutes les équipes", "SELECTED_TEAMS": "Les équipes sélectionnées", "HELP": { + "NAME": "Seulement les chiffres, lettres et caractères spécifiques (._) sont pris en charge", + "LIST": "Contact Manager liste utilisée pour associer des contacts", "RECEIVEURL": "C'est auto-généré la chaîne API vous avez besoin d'utiliser pour recevoir les messages à l'intérieur de votre compte à partir de votre fournisseur SMS (méthode POST doit être utilisé). Vous pouvez appuyer sur le bouton du presse-papiers pour copier dans votre presse-papiers.", - "DELIVERYREPORTURL": "Il s'agit de la chaîne d'API générée automatiquement que vous devez utiliser pour recevoir le rapport de remise des messages envoyés par votre fournisseur SMS (la méthode POST doit être utilisée): cliquez sur le bouton du presse-papiers pour le copier" + "MOTIONPROXY": "Le champ doit avoir le format suivant :   :// [ : ]. Exemple : https://X.Y.Z.W", + "DELIVERYREPORTURL": "Il s'agit de la chaîne d'API générée automatiquement que vous devez utiliser pour recevoir le rapport de remise des messages envoyés par votre fournisseur SMS (la méthode POST doit être utilisée): cliquez sur le bouton du presse-papiers pour le copier", + "MANDATORYDISPOSITION": "Disposition obligatoire", + "MANDATORYDISPOSITIONPAUSEID": "Pause à utiliser lorsque la disposition obligatoire est activée", + "WELCOMEMESSAGE": "Il s'agit du premier message de réponse envoyé à de nouvelles interactions" }, "PAGE": "La page", "ROWSPERPAGE": "Les lignes par page", @@ -112,6 +179,7 @@ "AUTHTOKEN": "Authtoken", "PROXY": "Procuration", "ADVANCED": "Recherche avancée", + "MOTIONPROXY": "Proxy ou domaine Motion", "REALTIME": "Des nouvelles en temps réel", "UNKNOWN": "Inconnu", "UNREGISTERED": "Non", @@ -201,6 +269,8 @@ "APIKEY": "Clé API", "BASEURL": "URL de base", "TEAMS_ASSOCIATION": "Association des équipes", + "MANDATORYDISPOSITION": "Disposition obligatoire", + "MANDATORYDISPOSITIONPAUSEID": "Pause à utiliser lorsque la disposition obligatoire est activée", "ACCESSKEYID": "ID de clé d'accès", "AMAZONLEX": "AmazonLex", "BOTNAME": "Nom du bot", @@ -210,8 +280,14 @@ "LANGUAGE": "Langue", "LEXREGION": "Région", "SECRETACCESSKEY": "Clé d'accès secrète", + "WELCOMEMESSAGE": "Message de bienvenue", "DOWNLOAD_WITHOUT_ATTACHMENT": "Télécharger sans pièce jointe", "DOWNLOAD_WITH_ATTACHMENT": "Télécharger avec pièce jointe", - "LASTMESSAGE": "Dernier message" + "LASTMESSAGE": "Dernier message", + "CLIENTEMAIL": "Courriel du client", + "DIALOGFLOWV2": "Dialogflow V2", + "EDIT_DIALOGFLOWV2": "Modifier Dialogflow V2", + "PRIVATEKEY": "Clé privée", + "PROJECTID": "ID du projet" } } diff --git a/public/app/main/apps/sms/i18n/he.json b/public/app/main/apps/sms/i18n/he.json index a3415c2..5e7ee54 100644 --- a/public/app/main/apps/sms/i18n/he.json +++ b/public/app/main/apps/sms/i18n/he.json @@ -56,13 +56,73 @@ "CAPACITY": "קיבולת", "PROXY": "פרוקסי", "ADVANCED": "מתקדם", + "MOTIONPROXY": "פרוקסי או דומיין Motion", "REALTIME": "זמן אמת", "KEY": "מפתח", + "NAME": "שם", "SMSQUEUES": "תורי SMS", "SEARCH_FOR_ANYONE": "חיפוש", "STRATEGY": "אסטרטגיה", "ERRORS": { - "AUTHID_REQUIRED": "שדה חובה" + "QUEUETRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "הערך חייב להיות קטן או שווה ל-", + "QUEUETRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "הערך חייב להיות גדול או שווה ל-", + "QUEUETRANSFERTIMEOUT_REQUIRED": "שדה חובה", + "AGENTTRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "הערך חייב להיות קטן או שווה ל-", + "AGENTTRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "הערך חייב להיות גדול או שווה ל-", + "AGENTTRANSFERTIMEOUT_REQUIRED": "שדה חובה", + "TAG_REQUIRED": "שדה חובה", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "הערך חייב להיות קטן או שווה ל-", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "הערך חייב להיות גדול או שווה ל-", + "WAITFORTHEASSIGNEDAGENT_REQUIRED": "שדה חובה", + "AGENT_TIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "הערך חייב להיות קטן או שווה ל-", + "TIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "הערך חייב להיות קטן או שווה ל-", + "AGENT_TIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "הערך חייב להיות גדול או שווה ל-", + "NAME_MUST_VALID_PATTERN": "תבנית שגויה", + "COMMAND_REQUIRED": "שדה חובה", + "AUTHID_REQUIRED": "שדה חובה", + "TEXT_MAX_LENGTH": "האורך המרבי המותר של הערך הוא {{max}}", + "TEXT_REQUIRED": "שדה חובה", + "VALUE_REQUIRED": "שדה חובה", + "SENDERSTRING_MAX_LENGTH": "האורך המרבי המותר של הערך הוא {{max}}", + "SENDERSTRING_MUST_VALID_PATTERN": "תבנית שגויה", + "METHOD_REQUIRED": "שדה חובה", + "MOTIONPROXY_REQUIRED": "שדה חובה", + "MOTIONPROXY_MUST_VALID_URL": "תבנית שגויה", + "KEY_MAX_LENGTH": "האורך המרבי המותר של הערך הוא {{max}}", + "KEY_REQUIRED": "שדה חובה", + "NAME_REQUIRED": "שדה חובה", + "AGENT_TIMEOUT_REQUIRED": "שדה חובה", + "PHONE_REQUIRED": "שדה חובה", + "SID_REQUIRED": "שדה חובה", + "TOKEN_REQUIRED": "שדה חובה", + "USERNAME_REQUIRED": "שדה חובה", + "PASSWORD_REQUIRED": "שדה חובה", + "MOTIONADDRESS_REQUIRED": "שדה חובה", + "MOTIONADDRESS_MUST_VALID_URL": "תבנית שגויה", + "ACCEPTURL_MUST_VALID_URL": "תבנית שגויה", + "TIMEOUT_REQUIRED": "שדה חובה", + "REJECTURL_MUST_VALID_URL": "תבנית שגויה", + "CLOSEURL_MUST_VALID_URL": "תבנית שגויה", + "TYPE_REQUIRED": "שדה חובה", + "LIST_REQUIRED": "שדה חובה", + "PRIORITY_REQUIRED": "שדה חובה", + "CONDITION_REQUIRED": "שדה חובה", + "TRUEPRIORITY_REQUIRED": "שדה חובה", + "FALSEPRIORITY_REQUIRED": "שדה חובה", + "AGENT_REQUIRED": "שדה חובה", + "QUEUE_REQUIRED": "שדה חובה", + "DISPOSITION_REQUIRED": "שדה חובה", + "ACCOUNTSID_REQUIRED": "שדה חובה", + "AUTHTOKEN_REQUIRED": "שדה חובה", + "APIKEY_REQUIRED": "שדה חובה", + "BASEURL_REQUIRED": "שדה חובה", + "MANDATORYDISPOSITIONPAUSEID_REQUIRED": "שדה חובה", + "ACCESSKEYID_REQUIRED": "דרוש מזהה מפתח גישה", + "BOTNAME_REQUIRED": "שם בוט נדרש", + "SECRETACCESSKEY_REQUIRED": "סוד מפתח הגישה נדרש", + "CLIENTEMAIL_REQUIRED": "שדה חובה", + "PRIVATEKEY_REQUIRED": "שדה חובה", + "PROJECTID_REQUIRED": "שדה חובה" }, "AGENT_TIMEOUT": "סוף זמן קצוב לנציג", "DESCRIPTION": "תיאור", @@ -74,6 +134,7 @@ "CREATED_AT": "נוצר ב-", "SAVE": "שמור", "SMSACCOUNTS": "חשבונות SMS", + "TYPE": "סוג", "PHONE": "טלפון", "SID": "SID", "TOKEN": "אסימון", @@ -84,6 +145,7 @@ "ADD_SMSACCOUNT": "הוסף חשבון SMS", "EDIT_SMSACCOUNT": "ערוך חשבון SMS", "DELETE_SMSACCOUNT": "מחק חשבון SMS", + "LIST": "רשימה", "FIDELITY": "מהימנות", "API": "ממשק API", "DISPOSITIONS": "סיכומים", @@ -117,8 +179,14 @@ "ALL_TEAMS": "כל הצוותים", "SELECTED_TEAMS": "צוותים נבחרים", "HELP": { + "MOTIONPROXY": "התבנית הבאה היא חובה בשדה זה: ://[:]. לדוגמה: https://X.Y.Z.W", + "NAME": "מותר לכלול רק ספרות, אותיות ותווים ספציפיים (._)", + "LIST": "רשימת 'מנהל אנשי הקשר' המשמשת לשיוך אנשי קשר", "RECEIVEURL": "מחרוזת ה-API המופקת באופן אוטומטי שדרושה לך כדי לקבל מספק ה-SMS את ההודעות שבחשבונך (חובה להשתמש בשיטת POST): לחץ על לחצן הלוח כדי להעתיק אותה", - "DELIVERYREPORTURL": "מחרוזת ה-API המופקת באופן אוטומטי שדרושה לך כדי לקבל מספק ה-SMS את דוח המסירה על הודעות שנשלחו (חובה להשתמש בשיטת POST): לחץ על לחצן הלוח כדי להעתיק אותה" + "DELIVERYREPORTURL": "מחרוזת ה-API המופקת באופן אוטומטי שדרושה לך כדי לקבל מספק ה-SMS את דוח המסירה על הודעות שנשלחו (חובה להשתמש בשיטת POST): לחץ על לחצן הלוח כדי להעתיק אותה", + "MANDATORYDISPOSITION": "סיכום", + "MANDATORYDISPOSITIONPAUSEID": "השהה לשימוש כאשר הסיכום מופעל", + "WELCOMEMESSAGE": "זוהי הודעת התגובה הראשונה שנשלחה לאינטראקציות חדשות" }, "PAGE": "דף", "ROWSPERPAGE": "שורות בדף", @@ -201,6 +269,8 @@ "APIKEY": "ApiKey", "BASEURL": "כתובת אתר בסיסית", "TEAMS_ASSOCIATION": "איגוד הצוותים", + "MANDATORYDISPOSITION": "סיכום", + "MANDATORYDISPOSITIONPAUSEID": "השהה לשימוש כאשר הסיכום מופעל", "ACCESSKEYID": "גישה למזהה מפתח", "AMAZONLEX": "אמזון-לקס", "BOTNAME": "שם בוט", @@ -210,8 +280,14 @@ "LANGUAGE": "שפה", "LEXREGION": "אזור", "SECRETACCESSKEY": "גישה לסוד מפתח", + "WELCOMEMESSAGE": "הודעת ברכה", "DOWNLOAD_WITHOUT_ATTACHMENT": "הורד ללא קובץ מצורף", "DOWNLOAD_WITH_ATTACHMENT": "הורד עם קובץ מצורף", - "LASTMESSAGE": "הודעה אחרונה" + "LASTMESSAGE": "הודעה אחרונה", + "CLIENTEMAIL": "דוא\"ל לקוח", + "DIALOGFLOWV2": "Dialogflow V2", + "EDIT_DIALOGFLOWV2": "ערוך את Dialogflow V2", + "PRIVATEKEY": "מפתח פרטי", + "PROJECTID": "מזהה פרויקט" } } diff --git a/public/app/main/apps/sms/i18n/hi.json b/public/app/main/apps/sms/i18n/hi.json index 2cce9ce..daf6991 100644 --- a/public/app/main/apps/sms/i18n/hi.json +++ b/public/app/main/apps/sms/i18n/hi.json @@ -1,11 +1,70 @@ { "SMS": { "KEY": "कुंजी दबाएं", + "NAME": "नाम", "SMSQUEUES": "SMS कतार", "SEARCH_FOR_ANYONE": "किसी भी व्यक्ति की तलाश", "STRATEGY": "रणनीति", "ERRORS": { - "AUTHID_REQUIRED": "आवश्यक स्थान" + "KEY_MAX_LENGTH": "कुंजी को एक समान सूबेदार सुरिन९दर सिनह को अधिकतम}{} अधिकतम लंबाई", + "KEY_REQUIRED": "कुंजी की आवश्यकता है।", + "NAME_REQUIRED": "नाम की आवश्यकता है।", + "AGENT_TIMEOUT_REQUIRED": "एजेंट समयबाह्य अपेक्षित है।", + "PHONE_REQUIRED": "फ़ोन की आवश्यकता है।", + "SID_REQUIRED": "हुए हमलोो की आवश्यकता है।", + "TOKEN_REQUIRED": "टोकन की आवश्यकता है।", + "USERNAME_REQUIRED": "उपयोगकर्ता नाम की आवश्यकता है।", + "PASSWORD_REQUIRED": "पासवर्ड की आवश्यकता है।", + "MOTIONADDRESS_REQUIRED": "अभिभाषण के प्रस्ताव की आवश्यकता है।", + "MOTIONADDRESS_MUST_VALID_URL": "यह प्रस्ताव एक मान्य स्वरूप में लिखा होना पता", + "ACCEPTURL_MUST_VALID_URL": "एक मान्य स्वरूप में लिखा होना URL को स्वीकार करें", + "TIMEOUT_REQUIRED": "इस समय की आवश्यकता है।", + "REJECTURL_MUST_VALID_URL": "एक मान्य स्वरूप में लिखा होना URL को अस्वीकार करें", + "CLOSEURL_MUST_VALID_URL": "एक मान्य स्वरूप में लिखा होना URL के निकट", + "TYPE_REQUIRED": "इस प्रकार की आवश्यकता है।", + "LIST_REQUIRED": "इस सूची में अपेक्षित है।", + "PRIORITY_REQUIRED": "प्राथमिकता की आवश्यकता है।", + "CONDITION_REQUIRED": "की स्थिति की आवश्यकता है।", + "TRUEPRIORITY_REQUIRED": "यह सच प्राथमिकता की आवश्यकता है।", + "FALSEPRIORITY_REQUIRED": "झूठे प्राथमिकता की आवश्यकता है।", + "AGENT_REQUIRED": "एजेंट अपेक्षित है।", + "QUEUE_REQUIRED": "लोकतंत्रमें अपेक्षित है।", + "DISPOSITION_REQUIRED": "शेयरोंका अन्तरण की आवश्यकता है।", + "ACCOUNTSID_REQUIRED": "खाते हुए हमलोो की आवश्यकता है।", + "AUTHTOKEN_REQUIRED": "Auth टोकन की आवश्यकता है।", + "MOTIONPROXY_REQUIRED": "अनिवार्य क्षेत्र", + "MOTIONPROXY_MUST_VALID_URL": "गलत स्वरूप", + "TEXT_MAX_LENGTH": "मान {{अधिकतम}} के बराबर अधिकतम लंबाई होना चाहिए", + "TEXT_REQUIRED": "आवश्यक स्थान", + "VALUE_REQUIRED": "आवश्यक स्थान", + "SENDERSTRING_MAX_LENGTH": "मान {{अधिकतम}} के बराबर अधिकतम लंबाई होना चाहिए", + "SENDERSTRING_MUST_VALID_PATTERN": "गलत प्रारूप", + "METHOD_REQUIRED": "आवश्यक स्थान", + "AUTHID_REQUIRED": "आवश्यक स्थान", + "COMMAND_REQUIRED": "आवश्यक स्थान", + "AGENT_TIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "मान से अधिक या बराबर होना चाहिए", + "NAME_MUST_VALID_PATTERN": "गलत प्रारूप", + "TIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "मान कम या बराबर होना चाहिए", + "AGENT_TIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "मान कम या बराबर होना चाहिए", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "मान से अधिक या बराबर होना चाहिए", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "मान कम या बराबर होना चाहिए", + "WAITFORTHEASSIGNEDAGENT_REQUIRED": "आवश्यक स्थान", + "TAG_REQUIRED": "आवश्यक स्थान", + "AGENTTRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "मान से अधिक या बराबर होना चाहिए", + "AGENTTRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "मान कम या बराबर होना चाहिए", + "AGENTTRANSFERTIMEOUT_REQUIRED": "आवश्यक स्थान", + "QUEUETRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "मान से अधिक या बराबर होना चाहिए", + "QUEUETRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "मान कम या बराबर होना चाहिए", + "QUEUETRANSFERTIMEOUT_REQUIRED": "आवश्यक स्थान", + "APIKEY_REQUIRED": "आवश्यक स्थान", + "BASEURL_REQUIRED": "आवश्यक स्थान", + "MANDATORYDISPOSITIONPAUSEID_REQUIRED": "आवश्यक स्थान", + "ACCESSKEYID_REQUIRED": "प्रवेश कुंजी आईडी की आवश्यकता है", + "BOTNAME_REQUIRED": "बॉट नाम आवश्यक है", + "SECRETACCESSKEY_REQUIRED": "प्रवेश कुंजी रहस्य की आवश्यकता है", + "CLIENTEMAIL_REQUIRED": "आवश्यक स्थान", + "PRIVATEKEY_REQUIRED": "आवश्यक स्थान", + "PROJECTID_REQUIRED": "आवश्यक स्थान" }, "AGENT_TIMEOUT": "एजेंट समयबाह्य", "DESCRIPTION": "वर्णन", @@ -17,6 +76,7 @@ "CREATED_AT": "सृजित", "SAVE": "सहेजें", "SMSACCOUNTS": "SMS लेखा", + "TYPE": "प्रकार", "PHONE": "फ़ोन", "SID": "बताया", "TOKEN": "टोकन", @@ -27,6 +87,7 @@ "ADD_SMSACCOUNT": "खाता जोड़ने के लिए, SMS", "EDIT_SMSACCOUNT": "SMS के कारण संपादित करें", "DELETE_SMSACCOUNT": "SMS खाते को हटाना", + "LIST": "की सूची", "FIDELITY": "वास्तविक", "API": "नोट्स API", "DISPOSITIONS": "प्रवृतियों", @@ -60,8 +121,14 @@ "ALL_TEAMS": "सभी टीमें भाग लेंगी।", "SELECTED_TEAMS": "चयनित टीम", "HELP": { + "NAME": "केवल विशिष्ट वर्ण (।_) और नंबर्स, समर्थित", + "LIST": "संपर्क सूची में संपर्कों को संबद्ध करने के लिए प्रयुक्त प्रबंधक", "RECEIVEURL": "यह स्वत: जनरेट नोट्स API प्रयोग करने के लिए, संदेश प्राप्त करने के लिए आपको एक तार के भीतर अपने खाते से अपने SMS प्रदाता (पोस्ट पद्धति का उपयोग किया जाना चाहिए। क्लिपबोर्ड पर कॉपी कर सकते हैं जो आपको आपकी में दबाएं बटन को क्लिपबोर्ड पर कॉपी किया गया.", - "DELIVERYREPORTURL": "यह स्वतः जनरेट किया गया एपीआई स्ट्रिंग है जिसे आप अपने एसएमएस प्रदाता (पोस्ट पद्धति का उपयोग किया जाना चाहिए) से भेजे गए संदेशों की डिलीवरी रिपोर्ट प्राप्त करने के लिए करना है: इसे कॉपी करने के लिए क्लिपबोर्ड बटन पर क्लिक करें" + "MOTIONPROXY": "यह फ़ील्ड को निम्नलिखित हैं ://><पत्तन>][ : उदाहरण के लिए: https://X.Y.Z.W", + "DELIVERYREPORTURL": "यह स्वतः जनरेट किया गया एपीआई स्ट्रिंग है जिसे आप अपने एसएमएस प्रदाता (पोस्ट पद्धति का उपयोग किया जाना चाहिए) से भेजे गए संदेशों की डिलीवरी रिपोर्ट प्राप्त करने के लिए करना है: इसे कॉपी करने के लिए क्लिपबोर्ड बटन पर क्लिक करें", + "MANDATORYDISPOSITION": "अनिवार्य स्वभाव", + "MANDATORYDISPOSITIONPAUSEID": "अनिवार्य स्वभाव सक्षम होने पर उपयोग करने के लिए रुकें", + "WELCOMEMESSAGE": "यह नई प्रतिक्रियाओं के लिए भेजा गया पहला प्रतिक्रिया संदेश है" }, "PAGE": "पृष्ठ", "ROWSPERPAGE": "पंक्तियां प्रति पृष्ठ", @@ -112,6 +179,7 @@ "AUTHTOKEN": "टोकन Auth", "PROXY": "छद्म", "ADVANCED": "उन्नत", + "MOTIONPROXY": "प्रॉक्सी या प्रस्ताव डोमेन", "REALTIME": "लिएभूकम्पनीय वैधशालाओं", "UNKNOWN": "अज्ञात", "UNREGISTERED": "अपंजीकृत", @@ -201,6 +269,8 @@ "APIKEY": "एपीआई कुंजी", "BASEURL": "आधार URL", "TEAMS_ASSOCIATION": "टीमों एसोसिएशन", + "MANDATORYDISPOSITION": "अनिवार्य स्वभाव", + "MANDATORYDISPOSITIONPAUSEID": "अनिवार्य स्वभाव सक्षम होने पर उपयोग करने के लिए रुकें", "ACCESSKEYID": "एक्सेस कुंजी आईडी", "AMAZONLEX": "AmazonLex", "BOTNAME": "बॉट नाम", @@ -210,8 +280,14 @@ "LANGUAGE": "भाषा: हिन्दी", "LEXREGION": "क्षेत्र", "SECRETACCESSKEY": "पहुंच कुंजी रहस्य", + "WELCOMEMESSAGE": "स्वागत संदेश", "DOWNLOAD_WITHOUT_ATTACHMENT": "अनुलग्नक के बिना डाउनलोड करें", "DOWNLOAD_WITH_ATTACHMENT": "अनुलग्नक के साथ डाउनलोड करें", - "LASTMESSAGE": "अंतिम संदेश" + "LASTMESSAGE": "अंतिम संदेश", + "CLIENTEMAIL": "ग्राहक ईमेल", + "DIALOGFLOWV2": "संवाद प्रवाह V2", + "EDIT_DIALOGFLOWV2": "डायलॉगफ़्लो V2 संपादित करें", + "PRIVATEKEY": "निजी चाबी", + "PROJECTID": "प्रोजेक्ट आईडी" } } diff --git a/public/app/main/apps/sms/i18n/id.json b/public/app/main/apps/sms/i18n/id.json index 12dbea1..035f417 100644 --- a/public/app/main/apps/sms/i18n/id.json +++ b/public/app/main/apps/sms/i18n/id.json @@ -1,11 +1,75 @@ { "SMS": { "ERRORS": { - "AUTHID_REQUIRED": "Bidang wajib" + "ACCEPTURL_MUST_VALID_URL": "Format yang salah", + "ACCOUNTSID_REQUIRED": "Bidang wajib", + "AGENT_REQUIRED": "Bidang wajib", + "AGENT_TIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Nilai harus lebih besar dari atau sama dengan", + "AGENT_TIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Nilai harus kurang dari atau sama dengan", + "AGENT_TIMEOUT_REQUIRED": "Bidang wajib", + "AUTHID_REQUIRED": "Bidang wajib", + "AUTHTOKEN_REQUIRED": "Bidang wajib", + "CLOSEURL_MUST_VALID_URL": "Format yang salah", + "COMMAND_REQUIRED": "Bidang wajib", + "CONDITION_REQUIRED": "Bidang wajib", + "DISPOSITION_REQUIRED": "Bidang wajib", + "FALSEPRIORITY_REQUIRED": "Bidang wajib", + "KEY_MAX_LENGTH": "Nilai harus memiliki panjang maksimum sama dengan {{max}}", + "KEY_REQUIRED": "Bidang wajib", + "LIST_REQUIRED": "Bidang wajib", + "METHOD_REQUIRED": "Bidang wajib", + "MOTIONADDRESS_MUST_VALID_URL": "Format yang salah", + "MOTIONADDRESS_REQUIRED": "Bidang wajib", + "MOTIONPROXY_MUST_VALID_URL": "Format yang salah", + "MOTIONPROXY_REQUIRED": "Bidang wajib", + "NAME_MUST_VALID_PATTERN": "Format yang salah", + "NAME_REQUIRED": "Bidang wajib", + "PASSWORD_REQUIRED": "Bidang wajib", + "PHONE_REQUIRED": "Bidang wajib", + "PRIORITY_REQUIRED": "Bidang wajib", + "QUEUE_REQUIRED": "Bidang wajib", + "REJECTURL_MUST_VALID_URL": "Format yang salah", + "SENDERSTRING_MAX_LENGTH": "Nilai harus memiliki panjang maksimum sama dengan {{max}}", + "SENDERSTRING_MUST_VALID_PATTERN": "Format yang salah", + "SID_REQUIRED": "Bidang wajib", + "TAG_REQUIRED": "Bidang wajib", + "TEXT_MAX_LENGTH": "Nilai harus memiliki panjang maksimum sama dengan {{max}}", + "TEXT_REQUIRED": "Bidang wajib", + "TIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Nilai harus kurang dari atau sama dengan", + "TIMEOUT_REQUIRED": "Bidang wajib", + "TOKEN_REQUIRED": "Bidang wajib", + "TRUEPRIORITY_REQUIRED": "Bidang wajib", + "TYPE_REQUIRED": "Bidang wajib", + "USERNAME_REQUIRED": "Bidang wajib", + "VALUE_REQUIRED": "Bidang wajib", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Nilai harus lebih besar dari atau sama dengan", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Nilai harus kurang dari atau sama dengan", + "WAITFORTHEASSIGNEDAGENT_REQUIRED": "Bidang wajib", + "AGENTTRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Nilai harus lebih besar dari atau sama dengan", + "AGENTTRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Nilai harus kurang dari atau sama dengan", + "AGENTTRANSFERTIMEOUT_REQUIRED": "Bidang wajib", + "QUEUETRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Nilai harus lebih besar dari atau sama dengan", + "QUEUETRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Nilai harus kurang dari atau sama dengan", + "QUEUETRANSFERTIMEOUT_REQUIRED": "Bidang wajib", + "APIKEY_REQUIRED": "Bidang wajib", + "BASEURL_REQUIRED": "Bidang wajib", + "MANDATORYDISPOSITIONPAUSEID_REQUIRED": "Bidang wajib", + "ACCESSKEYID_REQUIRED": "Diperlukan ID kunci akses", + "BOTNAME_REQUIRED": "Nama bot diperlukan", + "SECRETACCESSKEY_REQUIRED": "Rahasia kunci akses diperlukan", + "CLIENTEMAIL_REQUIRED": "Bidang wajib", + "PRIVATEKEY_REQUIRED": "Bidang wajib", + "PROJECTID_REQUIRED": "Bidang wajib" }, "HELP": { "DELIVERYREPORTURL": "Ini adalah string API yang dihasilkan secara otomatis yang perlu Anda gunakan untuk menerima laporan pengiriman pesan terkirim dari penyedia SMS Anda (metode POST harus digunakan): klik tombol clipboard untuk menyalinnya", - "RECEIVEURL": "Ini adalah string API yang dihasilkan secara otomatis yang perlu Anda gunakan untuk menerima pesan di dalam akun Anda dari penyedia SMS Anda (metode POST harus digunakan): klik tombol clipboard untuk menyalinnya" + "LIST": "Daftar Contact Manager yang digunakan untuk menghubungkan kontak", + "MOTIONPROXY": "Field harus memiliki format berikut: : // [: ]. Contoh: https: //X.Y.Z.W", + "NAME": "Hanya angka, huruf, dan karakter tertentu (._) yang didukung", + "RECEIVEURL": "Ini adalah string API yang dihasilkan secara otomatis yang perlu Anda gunakan untuk menerima pesan di dalam akun Anda dari penyedia SMS Anda (metode POST harus digunakan): klik tombol clipboard untuk menyalinnya", + "MANDATORYDISPOSITION": "Disposisi wajib", + "MANDATORYDISPOSITIONPAUSEID": "Jeda untuk digunakan ketika disposisi wajib diaktifkan", + "WELCOMEMESSAGE": "Ini adalah pesan respons pertama yang dikirim ke interaksi baru" }, "ACCEPT": "Menerima", "ACCEPTMETHOD": "Terima Metode", @@ -94,12 +158,15 @@ "INTERNAL": "Intern", "IN_USE": "Digunakan", "KEY": "Kunci", + "LIST": "Daftar", "LOGGED_IN": "Masuk", "LOGOUT": "Keluar", "MAIL": "E-mail", "MESSAGE": "Pesan", "METHOD": "metode", "MOTIONADDRESS": "Alamat Gerak", + "MOTIONPROXY": "Domain Proxy Atau Gerak", + "NAME": "Nama", "NEW_SMSACCOUNT": "Akun SMS Baru", "NEW_SMSCANNEDANSWER": "Jawaban Kalengan Baru", "NEW_SMSDISPOSITION": "Disposisi SMS Baru", @@ -176,6 +243,7 @@ "TO": "Untuk", "TOKEN": "Token", "TRUEPRIORITY": "Prioritas Benar", + "TYPE": "Mengetik", "UNAVAILABLE": "Tidak tersedia", "UNKNOWN": "Tidak dikenal", "UNPAUSE": "Akhiri Jeda", @@ -201,6 +269,8 @@ "APIKEY": "Kunci API", "BASEURL": "URL dasar", "TEAMS_ASSOCIATION": "Asosiasi Tim", + "MANDATORYDISPOSITION": "Disposisi wajib", + "MANDATORYDISPOSITIONPAUSEID": "Jeda untuk digunakan ketika disposisi wajib diaktifkan", "ACCESSKEYID": "ID kunci akses", "AMAZONLEX": "AmazonLex", "BOTNAME": "Nama bot", @@ -210,8 +280,14 @@ "LANGUAGE": "Bahasa", "LEXREGION": "Wilayah", "SECRETACCESSKEY": "Rahasia kunci akses", + "WELCOMEMESSAGE": "Pesan selamat datang", "DOWNLOAD_WITHOUT_ATTACHMENT": "Unduh tanpa lampiran", "DOWNLOAD_WITH_ATTACHMENT": "Unduh dengan lampiran", - "LASTMESSAGE": "Pesan Terakhir" + "LASTMESSAGE": "Pesan Terakhir", + "CLIENTEMAIL": "Email Klien", + "DIALOGFLOWV2": "Dialogflow V2", + "EDIT_DIALOGFLOWV2": "Edit Dialogflow V2", + "PRIVATEKEY": "Kunci Pribadi", + "PROJECTID": "ID Proyek" } } diff --git a/public/app/main/apps/sms/i18n/it.json b/public/app/main/apps/sms/i18n/it.json index 156085f..ff06c03 100644 --- a/public/app/main/apps/sms/i18n/it.json +++ b/public/app/main/apps/sms/i18n/it.json @@ -6,6 +6,7 @@ "SECRETACCESSKEY": "Accesso chiave segreta", "BOTNAME": "Nome del bot", "LEXREGION": "Regione", + "WELCOMEMESSAGE": "Messaggio di benvenuto", "LOGIN_TIME": "Tempo di login", "PAUSE_TIME": "Tempo di pausa", "DOWNLOAD_INTERACTION": "Download", @@ -60,14 +61,74 @@ "CAPACITY": "Capacità", "PROXY": "Proxy", "ADVANCED": "Avanzate", + "MOTIONPROXY": "Proxy O Dominio Motion", "REALTIME": "Realtime", "KEY": "Chiave", + "NAME": "Nome", "SMSQUEUES": "Code SMS", "SEARCH_FOR_ANYONE": "Cerca", "STRATEGY": "Strategia", "BASEURL": "Base URL", "ERRORS": { - "AUTHID_REQUIRED": "Campo Obbligatorio" + "AGENTTRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Il valore deve essere maggiore o uguale a", + "AGENTTRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Il valore deve essere minore o uguale a", + "AGENTTRANSFERTIMEOUT_REQUIRED": "Campo obbligatorio", + "QUEUETRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Il valore deve essere maggiore o uguale a", + "QUEUETRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Il valore deve essere minore o uguale a", + "QUEUETRANSFERTIMEOUT_REQUIRED": "Campo obbligatorio", + "TAG_REQUIRED": "Campo obbligatorio", + "AUTHID_REQUIRED": "Campo Obbligatorio", + "TEXT_MAX_LENGTH": "Il valore deve avere una lunghezza massima pari a {{max}}", + "TEXT_REQUIRED": "Campo obbligatorio", + "VALUE_REQUIRED": "Campo Obbligatorio", + "SENDERSTRING_MAX_LENGTH": "Il valore deve avere una lunghezza massima pari a {{max}}", + "SENDERSTRING_MUST_VALID_PATTERN": "Il campo deve avere un formato valido", + "METHOD_REQUIRED": "Campo obbligatorio", + "MOTIONPROXY_REQUIRED": "Campo obbligatorio", + "MOTIONPROXY_MUST_VALID_URL": "Il campo deve avere un formato valido", + "KEY_MAX_LENGTH": "Il valore introdotto non deve essere più lungo di {{max}} caratteri", + "KEY_REQUIRED": "Campo obbligatorio", + "NAME_REQUIRED": "Campo obbligatorio", + "AGENT_TIMEOUT_REQUIRED": "Campo obbligatorio", + "PHONE_REQUIRED": "Campo obbligatorio", + "SID_REQUIRED": "Campo obbligatorio", + "TOKEN_REQUIRED": "Campo obbligatorio", + "USERNAME_REQUIRED": "Campo obbligatorio", + "PASSWORD_REQUIRED": "Campo obbligatorio", + "MOTIONADDRESS_REQUIRED": "Campo obbligatorio", + "MOTIONADDRESS_MUST_VALID_URL": "Il campo deve avere un formato valido", + "ACCEPTURL_MUST_VALID_URL": "Il campo deve avere un formato valido", + "TIMEOUT_REQUIRED": "Campo obbligatorio", + "REJECTURL_MUST_VALID_URL": "Il campo deve avere un formato valido", + "CLOSEURL_MUST_VALID_URL": "Il campo deve avere un formato valido", + "TYPE_REQUIRED": "Campo obbligatorio", + "LIST_REQUIRED": "Campo obbligatorio", + "PRIORITY_REQUIRED": "Campo obbligatorio", + "CONDITION_REQUIRED": "Campo obbligatorio", + "TRUEPRIORITY_REQUIRED": "Campo obbligatorio", + "FALSEPRIORITY_REQUIRED": "Campo obbligatorio", + "AGENT_REQUIRED": "Campo obbligatorio", + "QUEUE_REQUIRED": "Campo obbligatorio", + "DISPOSITION_REQUIRED": "Campo obbligatorio", + "ACCOUNTSID_REQUIRED": "Campo obbligatorio", + "AUTHTOKEN_REQUIRED": "Campo obbligatorio", + "COMMAND_REQUIRED": "Campo obbligatorio", + "AGENT_TIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Il valore deve essere maggiore o uguale a", + "NAME_MUST_VALID_PATTERN": "Formato errato", + "TIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Il valore deve essere minore o uguale a", + "AGENT_TIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Il valore deve essere minore o uguale a", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Il valore deve essere maggiore o uguale a", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Il valore deve essere minore o uguale a", + "WAITFORTHEASSIGNEDAGENT_REQUIRED": "Campo obbligatorio", + "BASEURL_REQUIRED": "Campo obbligatorio", + "APIKEY_REQUIRED": "Campo obbligatorio", + "MANDATORYDISPOSITIONPAUSEID_REQUIRED": "Campo obbligatorio", + "ACCESSKEYID_REQUIRED": "È richiesto l'ID chiave di accesso", + "BOTNAME_REQUIRED": "È richiesto il nome del bot", + "SECRETACCESSKEY_REQUIRED": "È richiesto il segreto della chiave di accesso", + "CLIENTEMAIL_REQUIRED": "Campo obbligatorio", + "PRIVATEKEY_REQUIRED": "Campo obbligatorio", + "PROJECTID_REQUIRED": "Campo obbligatorio" }, "AGENT_TIMEOUT": "Timeout Agente", "DESCRIPTION": "Descrizione", @@ -79,6 +140,7 @@ "CREATED_AT": "Creato il", "SAVE": "Salva", "SMSACCOUNTS": "Account SMS", + "TYPE": "Tipo", "PHONE": "Telefono", "SID": "SID", "TOKEN": "Token", @@ -89,6 +151,7 @@ "ADD_SMSACCOUNT": "Aggiungi Account SMS", "EDIT_SMSACCOUNT": "Modifica Account SMS", "DELETE_SMSACCOUNT": "Elimina Account SMS", + "LIST": "Lista", "FIDELITY": "Fidelity", "API": "API", "DISPOSITIONS": "Esiti", @@ -127,8 +190,14 @@ "EDIT_DIALOGFLOW": "Modifica la configurazione di Dialogflow", "LANGUAGE": "Lingua", "HELP": { + "WELCOMEMESSAGE": "Messaggio di benvenuto", + "MOTIONPROXY": "Inserire nel seguente formato: <protocollo>://<indirizzoIP>[:<porta>]. Es: https://X.Y.Z.W", + "NAME": "Sono supportati solo numeri, lettere e caratteri specifici (._)", + "LIST": "Lista del Contact Manager usata per associare i contatti", "RECEIVEURL": "Questa è la stringa API generata automaticamente che devi usare per ricevere i messaggi provenienti dal tuo provider SMS (deve essere usato il metodo POST). Clicca sull'icona del blocco note per copiare negli appunti", - "DELIVERYREPORTURL": "Questa è la stringa API generata automaticamente che devi usare per ricevere il rapporto di consegna dei messaggi inviati dal tuo provider SMS (deve essere usato il metodo POST). Clicca sull'icona del blocco note per copiare negli appunti" + "DELIVERYREPORTURL": "Questa è la stringa API generata automaticamente che devi usare per ricevere il rapporto di consegna dei messaggi inviati dal tuo provider SMS (deve essere usato il metodo POST). Clicca sull'icona del blocco note per copiare negli appunti", + "MANDATORYDISPOSITION": "Disposizione obbligatoria", + "MANDATORYDISPOSITIONPAUSEID": "Pausa da utilizzare quando è abilitata la disposizione obbligatoria" }, "PAGE": "Pagina", "ROWSPERPAGE": "Righe per pagina", @@ -211,7 +280,14 @@ "WAITFORTHEASSIGNEDAGENT": "Attendi l'agente assegnato", "AGENTADD_SMSACCOUNT": "Aggiungi Agente ad account SMS", "TEAMS_ASSOCIATION": "Associazione Teams", + "MANDATORYDISPOSITION": "Disposizione obbligatoria", + "MANDATORYDISPOSITIONPAUSEID": "Pausa da utilizzare quando è abilitata la disposizione obbligatoria", "DOWNLOAD_WITHOUT_ATTACHMENT": "Scarica senza allegato", - "DOWNLOAD_WITH_ATTACHMENT": "Scarica con allegato" + "DOWNLOAD_WITH_ATTACHMENT": "Scarica con allegato", + "CLIENTEMAIL": "Email del cliente", + "DIALOGFLOWV2": "Dialogflow V2", + "EDIT_DIALOGFLOWV2": "Modifica Dialogflow V2", + "PRIVATEKEY": "Chiave privata", + "PROJECTID": "ID progetto" } } diff --git a/public/app/main/apps/sms/i18n/ja.json b/public/app/main/apps/sms/i18n/ja.json index 29f41a4..181e37b 100644 --- a/public/app/main/apps/sms/i18n/ja.json +++ b/public/app/main/apps/sms/i18n/ja.json @@ -1,11 +1,75 @@ { "SMS": { "ERRORS": { - "AUTHID_REQUIRED": "必須フィールド" + "ACCEPTURL_MUST_VALID_URL": "間違ったフォーマット", + "ACCOUNTSID_REQUIRED": "必須フィールド", + "AGENT_REQUIRED": "必須フィールド", + "AGENT_TIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "値はこの数値よりも大きいか等しい必要があります:", + "AGENT_TIMEOUT_REQUIRED": "必須フィールド", + "AUTHID_REQUIRED": "必須フィールド", + "AUTHTOKEN_REQUIRED": "必須フィールド", + "CLOSEURL_MUST_VALID_URL": "間違ったフォーマット", + "COMMAND_REQUIRED": "必須フィールド", + "CONDITION_REQUIRED": "必須フィールド", + "DISPOSITION_REQUIRED": "必須フィールド", + "FALSEPRIORITY_REQUIRED": "必須フィールド", + "KEY_MAX_LENGTH": "値の最大長は{{max}}に等しくなければなりません", + "KEY_REQUIRED": "必須フィールド", + "LIST_REQUIRED": "必須フィールド", + "METHOD_REQUIRED": "必須フィールド", + "MOTIONADDRESS_MUST_VALID_URL": "間違ったフォーマット", + "MOTIONADDRESS_REQUIRED": "必須フィールド", + "MOTIONPROXY_MUST_VALID_URL": "間違ったフォーマット", + "MOTIONPROXY_REQUIRED": "必須フィールド", + "NAME_MUST_VALID_PATTERN": "間違ったフォーマット", + "NAME_REQUIRED": "必須フィールド", + "PASSWORD_REQUIRED": "必須フィールド", + "PHONE_REQUIRED": "必須フィールド", + "PRIORITY_REQUIRED": "必須フィールド", + "QUEUE_REQUIRED": "必須フィールド", + "REJECTURL_MUST_VALID_URL": "間違ったフォーマット", + "SENDERSTRING_MAX_LENGTH": "値の最大長は{{max}}に等しくなければなりません", + "SENDERSTRING_MUST_VALID_PATTERN": "間違ったフォーマット", + "SID_REQUIRED": "必須フィールド", + "TEXT_MAX_LENGTH": "値の最大長は{{max}}に等しくなければなりません", + "TEXT_REQUIRED": "必須フィールド", + "TIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "値はこの数値よりも小さいか等しい必要があります:", + "TIMEOUT_REQUIRED": "必須フィールド", + "TOKEN_REQUIRED": "必須フィールド", + "TRUEPRIORITY_REQUIRED": "必須フィールド", + "TYPE_REQUIRED": "必須フィールド", + "USERNAME_REQUIRED": "必須フィールド", + "VALUE_REQUIRED": "必須フィールド", + "AGENT_TIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "値はこの数値よりも小さいか等しい必要があります:", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "値はこの数値よりも大きいか等しい必要があります:", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "値はこの数値よりも小さいか等しい必要があります:", + "WAITFORTHEASSIGNEDAGENT_REQUIRED": "必須フィールド", + "TAG_REQUIRED": "必須フィールド", + "AGENTTRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "値は、より大きいか等しい必要があります", + "AGENTTRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "値は以下にする必要があります", + "AGENTTRANSFERTIMEOUT_REQUIRED": "必須フィールド", + "QUEUETRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "値は、より大きいか等しい必要があります", + "QUEUETRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "値は以下にする必要があります", + "QUEUETRANSFERTIMEOUT_REQUIRED": "必須フィールド", + "APIKEY_REQUIRED": "必須フィールド", + "BASEURL_REQUIRED": "必須フィールド", + "MANDATORYDISPOSITIONPAUSEID_REQUIRED": "必須フィールド", + "ACCESSKEYID_REQUIRED": "アクセスキーIDが必要です", + "BOTNAME_REQUIRED": "ボット名は必須です", + "SECRETACCESSKEY_REQUIRED": "アクセスキーシークレットが必要です", + "CLIENTEMAIL_REQUIRED": "必須フィールド", + "PRIVATEKEY_REQUIRED": "必須フィールド", + "PROJECTID_REQUIRED": "必須フィールド" }, "HELP": { "DELIVERYREPORTURL": "これは、SMSプロバイダから送信されたメッセージの配信レポートを受信するために必要な自動生成されたAPI文字列です(POSTメソッドを使用する必要があります)。クリップボードボタンをクリックしてコピーします", - "RECEIVEURL": "これは、SMSプロバイダからアカウント内のメッセージを受信するために必要な自動生成のAPI文字列です(POSTメソッドを使用する必要があります)。クリップボードボタンをクリックしてコピーします" + "LIST": "コンタクトを関連付けるために使用されるコンタクトマネージャーリスト", + "MOTIONPROXY": "フィールドは、:// [:]の形式でなければなりません。例:https://X.Y.Z.W", + "NAME": "数字、文字、および特定の文字(._)のみがサポートされています", + "RECEIVEURL": "これは、SMSプロバイダからアカウント内のメッセージを受信するために必要な自動生成のAPI文字列です(POSTメソッドを使用する必要があります)。クリップボードボタンをクリックしてコピーします", + "MANDATORYDISPOSITION": "強制処分", + "MANDATORYDISPOSITIONPAUSEID": "強制処分が有効になっているときに使用する一時停止", + "WELCOMEMESSAGE": "これは、新しいインタラクションに送信される最初の応答メッセージです" }, "ACCEPT": "同意する", "ACCEPTMETHOD": "Acceptメソッド", @@ -93,12 +157,15 @@ "INTERNAL": "内部", "IN_USE": "使用中", "KEY": "キー", + "LIST": "リスト", "LOGGED_IN": "ログインした", "LOGOUT": "ログアウト", "MAIL": "メール", "MESSAGE": "メッセージ", "METHOD": "メッソド", "MOTIONADDRESS": "Motionアドレス", + "MOTIONPROXY": "プロキシまたはモーションドメイン", + "NAME": "名前", "NEW_SMSACCOUNT": "新規SMSアカウント", "NEW_SMSCANNEDANSWER": "新規定型文", "NEW_SMSDISPOSITION": "新規SMS処理", @@ -174,6 +241,7 @@ "TO": "To", "TOKEN": "トークン", "TRUEPRIORITY": "True優先度", + "TYPE": "タイプ", "UNAVAILABLE": "不在", "UNKNOWN": "未知", "UNPAUSE": "再生", @@ -201,6 +269,8 @@ "APIKEY": "ApiKey", "BASEURL": "ベースURL", "TEAMS_ASSOCIATION": "チーム協会", + "MANDATORYDISPOSITION": "強制処分", + "MANDATORYDISPOSITIONPAUSEID": "強制処分が有効になっているときに使用する一時停止", "ACCESSKEYID": "アクセスキーID", "AMAZONLEX": "AmazonLex", "BOTNAME": "ボット名", @@ -210,8 +280,14 @@ "LANGUAGE": "言語", "LEXREGION": "領域", "SECRETACCESSKEY": "アクセスキーシークレット", + "WELCOMEMESSAGE": "ウェルカムメッセージ", "DOWNLOAD_WITHOUT_ATTACHMENT": "添付せずにダウンロード", "DOWNLOAD_WITH_ATTACHMENT": "添付してダウンロード", - "LASTMESSAGE": "最後のメッセージ" + "LASTMESSAGE": "最後のメッセージ", + "CLIENTEMAIL": "クライアントの電子メール", + "DIALOGFLOWV2": "Dialogflow V2", + "EDIT_DIALOGFLOWV2": "DialogflowV2を編集する", + "PRIVATEKEY": "秘密鍵", + "PROJECTID": "プロジェクトID" } } diff --git a/public/app/main/apps/sms/i18n/ko.json b/public/app/main/apps/sms/i18n/ko.json index 59acefb..0499639 100644 --- a/public/app/main/apps/sms/i18n/ko.json +++ b/public/app/main/apps/sms/i18n/ko.json @@ -1,11 +1,70 @@ { "SMS": { "KEY": "키", + "NAME": "이름", "SMSQUEUES": "SMS 상담그룹", "SEARCH_FOR_ANYONE": "모두 검색", "STRATEGY": "전략", "ERRORS": { - "AUTHID_REQUIRED": "인증 ID는 필수입니다." + "KEY_MAX_LENGTH": "키 최대 길이", + "KEY_REQUIRED": "키는 필수입니다.", + "NAME_REQUIRED": "이름은 필수입니다.", + "AGENT_TIMEOUT_REQUIRED": "상담원 시간초과는 필수입니다.", + "PHONE_REQUIRED": "전화는 필수입니다.", + "SID_REQUIRED": "SID는 필수입니다.", + "TOKEN_REQUIRED": "토큰은 필수입니다.", + "USERNAME_REQUIRED": "사용자이름은 필수입니다.", + "PASSWORD_REQUIRED": "비밀번호는 필수입니다.", + "MOTIONADDRESS_REQUIRED": "모션 주소는 필수입니다.", + "MOTIONADDRESS_MUST_VALID_URL": "모션주소는 유효한 URL이어야 합니다.", + "ACCEPTURL_MUST_VALID_URL": "수락 URL은 유효해야 합니다.", + "TIMEOUT_REQUIRED": "시간초과는 필수입니다.", + "REJECTURL_MUST_VALID_URL": "거절 URL은 유효해야 합니다.", + "CLOSEURL_MUST_VALID_URL": "닫기 URL은 유효해야 합니다.", + "TYPE_REQUIRED": "타입은 필수입니다.", + "LIST_REQUIRED": "목록은 필수입니다.", + "PRIORITY_REQUIRED": "우선순위는 필수입니다.", + "CONDITION_REQUIRED": "조건은 필수입니다.", + "TRUEPRIORITY_REQUIRED": "참 우선순위는 필수입니다.", + "FALSEPRIORITY_REQUIRED": "거짓 우선순위는 필수입니다.", + "AGENT_REQUIRED": "상담원은 필수입니다.", + "QUEUE_REQUIRED": "상담그룹은 필수입니다.", + "DISPOSITION_REQUIRED": "배치는 필수입니다.", + "ACCOUNTSID_REQUIRED": "계정 SID는 필수입니다.", + "AUTHTOKEN_REQUIRED": "인증토큰은 필수입니다.", + "MOTIONPROXY_REQUIRED": "모션 프록시는 필수입니다.", + "MOTIONPROXY_MUST_VALID_URL": "모션 프록시는 유효한 URL이어야 합니다.", + "TEXT_MAX_LENGTH": "텍스트 최대 길이", + "TEXT_REQUIRED": "텍스트는 필수입니다.", + "VALUE_REQUIRED": "값은 필수입니다.", + "SENDERSTRING_MAX_LENGTH": "발신자 문자열 최대 길이", + "SENDERSTRING_MUST_VALID_PATTERN": "발신자 문자열을 유효한 패턴이어야 합니다.", + "METHOD_REQUIRED": "방법은 필수입니다.", + "AUTHID_REQUIRED": "인증 ID는 필수입니다.", + "COMMAND_REQUIRED": "명령은 필수입니다.", + "AGENT_TIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "상담원 시간초과는 다음과 같거나 커야합니다.", + "NAME_MUST_VALID_PATTERN": "이름은 유효한 패턴이어야합니다.", + "TIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "시간초과는 다음과 같거나 작아야합니다.", + "AGENT_TIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "상담원 시간초과는 다음과 같거나 작아야합니다.", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "할당된 상담원에 대한 대기는 다음과 같거나 커야합니다.", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "할당된 상담원에 대한 대기는 다음과 같거나 작아야합니다.", + "WAITFORTHEASSIGNEDAGENT_REQUIRED": "할당된 상담원에 대한 대기는 필수입니다.", + "TAG_REQUIRED": "필수 필드", + "AGENTTRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "값은 다음보다 크거나 같아야합니다.", + "AGENTTRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "값은 다음보다 작거나 같아야합니다.", + "AGENTTRANSFERTIMEOUT_REQUIRED": "필수 필드", + "QUEUETRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "값은 다음보다 크거나 같아야합니다.", + "QUEUETRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "값은 다음보다 작거나 같아야합니다.", + "QUEUETRANSFERTIMEOUT_REQUIRED": "필수 필드", + "APIKEY_REQUIRED": "필수 필드", + "BASEURL_REQUIRED": "필수 필드", + "MANDATORYDISPOSITIONPAUSEID_REQUIRED": "필수 필드", + "ACCESSKEYID_REQUIRED": "액세스 키 ID가 필요합니다", + "BOTNAME_REQUIRED": "봇 이름이 필요합니다", + "SECRETACCESSKEY_REQUIRED": "액세스 키 비밀이 필요합니다", + "CLIENTEMAIL_REQUIRED": "필수 필드", + "PRIVATEKEY_REQUIRED": "필수 필드", + "PROJECTID_REQUIRED": "필수 필드" }, "AGENT_TIMEOUT": "상담원 시간 초과", "DESCRIPTION": "설명", @@ -17,6 +76,7 @@ "CREATED_AT": "생성 일시", "SAVE": "저장", "SMSACCOUNTS": "SMS 계정", + "TYPE": "타입", "PHONE": "전화", "SID": "SID", "TOKEN": "토큰", @@ -27,6 +87,7 @@ "ADD_SMSACCOUNT": "SMS 계정 추가", "EDIT_SMSACCOUNT": "SMS 계정 수정", "DELETE_SMSACCOUNT": "SMS 계정 삭제", + "LIST": "목록", "FIDELITY": "정확도", "API": "API", "DISPOSITIONS": "배치", @@ -60,8 +121,14 @@ "ALL_TEAMS": "전체 팀", "SELECTED_TEAMS": "선택된 팀", "HELP": { + "NAME": "이름", + "LIST": "목록", "RECEIVEURL": "URL 수신", - "DELIVERYREPORTURL": "레포트 URL 제출" + "MOTIONPROXY": "모션 프록시", + "DELIVERYREPORTURL": "레포트 URL 제출", + "MANDATORYDISPOSITION": "의무 처분", + "MANDATORYDISPOSITIONPAUSEID": "강제 처분이 활성화 된 경우 사용 중지", + "WELCOMEMESSAGE": "새로운 상호 작용으로 보낸 첫 번째 응답 메시지입니다." }, "PAGE": "페이지", "ROWSPERPAGE": "페이지별 행 수", @@ -112,6 +179,7 @@ "AUTHTOKEN": "인증 토큰", "PROXY": "프록시", "ADVANCED": "고급", + "MOTIONPROXY": "모션 프록시", "REALTIME": "실시간", "UNKNOWN": "알 수 없음", "UNREGISTERED": "미등록", @@ -201,6 +269,8 @@ "APIKEY": "ApiKey", "BASEURL": "기본 URL", "TEAMS_ASSOCIATION": "팀 협회", + "MANDATORYDISPOSITION": "의무 처분", + "MANDATORYDISPOSITIONPAUSEID": "강제 처분이 활성화 된 경우 사용 중지", "ACCESSKEYID": "액세스 키 ID", "AMAZONLEX": "아마존 렉스", "BOTNAME": "봇 이름", @@ -210,8 +280,14 @@ "LANGUAGE": "언어", "LEXREGION": "부위", "SECRETACCESSKEY": "액세스 키 비밀", + "WELCOMEMESSAGE": "환영 메시지", "DOWNLOAD_WITHOUT_ATTACHMENT": "첨부 파일없이 다운로드", "DOWNLOAD_WITH_ATTACHMENT": "첨부 파일로 다운로드", - "LASTMESSAGE": "마지막 메시지" + "LASTMESSAGE": "마지막 메시지", + "CLIENTEMAIL": "클라이언트 이메일", + "DIALOGFLOWV2": "Dialogflow V2", + "EDIT_DIALOGFLOWV2": "Dialogflow V2 수정", + "PRIVATEKEY": "개인 키", + "PROJECTID": "프로젝트 ID" } } diff --git a/public/app/main/apps/sms/i18n/lt.json b/public/app/main/apps/sms/i18n/lt.json index 4d9a69a..b4b6c65 100644 --- a/public/app/main/apps/sms/i18n/lt.json +++ b/public/app/main/apps/sms/i18n/lt.json @@ -1,217 +1,293 @@ { "SMS": { "AMAZONLEX": "AmazonLex", - "EDIT_AMAZONLEX": "Edit Lex configuration", - "ACCESSKEYID": "Access key ID", - "SECRETACCESSKEY": "Access key secret", - "LEXREGION": "Region", - "BOTNAME": "Bot name", - "LOGIN_TIME": "Login time", - "PAUSE_TIME": "Pause time", - "DOWNLOAD_INTERACTION": "Download", - "TRANSFER": "Transfer", - "QUEUETRANSFER": "Queue Transfer", - "QUEUETRANSFERTIMEOUT": "Queue Transfer Timeout", - "AGENTTRANSFER": "Agent Transfer", - "AGENTTRANSFERTIMEOUT": "Agent Transfer Timeout", - "TAG": "Tag", - "EDIT_TAG": "Edit Tag", - "WAITFORTHEASSIGNEDAGENT": "Wait for the assigned agent", - "NOTIFICATION": "Notification", - "NOTIFICATIONSOUND": "Sound", - "NOTIFICATIONSHAKE": "Shake", - "NOTIFICATIONTEMPLATE": "Template", - "SYSTEM": "System", - "EDIT_SYSTEM": "Edit System", - "COMMAND": "Command", - "VARIABLE": "Variable", - "AUTHID": "Auth ID", - "NO_SMSDISPOSITIONS_AVAILABLE": "No Sms Disposition Available", - "CANNEDANSWERS": "Canned Answers", - "SMSCANNEDANSWERS": "Canned Answers", - "NO_SMSCANNEDANSWER_AVAILABLE": "No Canned Answers Available", - "NEW_SMSCANNEDANSWER": "New Canned Answer", - "ADD_SMSCANNEDANSWER": "Add Canned Answer", - "EDIT_SMSCANNEDANSWER": "Edit", - "DELETE_SMSCANNEDANSWER": "Delete", - "DELIVERYREPORTURL": "Delivery Report URL", - "DELETE": "Delete", - "SENDERSTRING": "Sender String", - "DELIVERYREPORT": "Delivery Report", - "METHOD": "Method", - "ADD_NOTE": "Add note", - "NOTE": "Note", - "SPYINTERACTION": "Spy", - "AUTOREPLY": "Auto Reply", - "EDIT_AUTOREPLY": "Edit Auto Reply", - "TIMES": "Number of times per interaction", - "TEXT": "Text", - "INSERT_MESSAGE_HERE": "Insert your text message here", - "CANNED_ANSWER_NOT_FOUND": "No Canned Answers were found", - "CANNED_ANSWER_SEARCH": "Enter a text to search a Canned Answer", - "SEND": "Send", - "TO": "To", - "MESSAGE": "Message", - "TAGS": "Tags", - "NO_AGENT_ONLINE": "No Agent Online", - "GOTOREALTIME_SMSQUEUE": "Go To Realtime Sms Queue", - "PARTIALPAUSE": "Parital Pause", - "BUSY": "Busy", - "TIMER": "Timer", - "IDLE": "Idle", - "CAPACITY": "Capacity", - "PROXY": "Proxy", - "ADVANCED": "Advanced", - "REALTIME": "Realtime", - "KEY": "Key", - "SMSQUEUES": "SMS Queues", - "SEARCH_FOR_ANYONE": "Search", - "STRATEGY": "Strategy", - "BASEURL": "Base URL", + "EDIT_AMAZONLEX": "Redaguoti „Lex“ konfigūraciją", + "ACCESSKEYID": "Prieigos rakto ID", + "SECRETACCESSKEY": "Prieigos rakto slėpinys", + "LEXREGION": "Regionas", + "BOTNAME": "Roboto vardas", + "WELCOMEMESSAGE": "Pasisveikinimo žinutė", + "LOGIN_TIME": "Prisijungimo laikas", + "PAUSE_TIME": "Pauzės laikas", + "DOWNLOAD_INTERACTION": "Parsisiųsti", + "TRANSFER": "Perkelti", + "QUEUETRANSFER": "Eilės perkėlimas", + "QUEUETRANSFERTIMEOUT": "Eilės perkėlimo skirtasis laikas", + "AGENTTRANSFER": "Agento perkėlimas", + "AGENTTRANSFERTIMEOUT": "Agento perkėlimo skirtasis laikas", + "TAG": "Žyma", + "EDIT_TAG": "Redaguoti žymą", + "WAITFORTHEASSIGNEDAGENT": "Palaukite paskirto agento", + "NOTIFICATION": "Pranešimas", + "NOTIFICATIONSOUND": "Garsas", + "NOTIFICATIONSHAKE": "Vibracija", + "NOTIFICATIONTEMPLATE": "Šablonas", + "SYSTEM": "Ssitema", + "EDIT_SYSTEM": "Redaguoti sistemą", + "COMMAND": "Komanda", + "VARIABLE": "Kintamas", + "AUTHID": "Autentiškas ID", + "NO_SMSDISPOSITIONS_AVAILABLE": "Nėra SMS išdėstymo", + "CANNEDANSWERS": "Įrašyti atsakymai", + "SMSCANNEDANSWERS": "Įrašyti atsakymai", + "NO_SMSCANNEDANSWER_AVAILABLE": "Nėra įrašytų atsakymų", + "NEW_SMSCANNEDANSWER": "Naujas įrašytas atsakymas", + "ADD_SMSCANNEDANSWER": "Pridėti įrašytą atsakymą", + "EDIT_SMSCANNEDANSWER": "Redaguoti", + "DELETE_SMSCANNEDANSWER": "Ištrinti", + "DELIVERYREPORTURL": "Pristatymo ataskaitos URL", + "DELETE": "Ištrinti", + "SENDERSTRING": "Siuntėjo eilutė", + "DELIVERYREPORT": "Pristatymo ataskaita", + "METHOD": "Metodas", + "ADD_NOTE": "Pridėti pastabą", + "NOTE": "Pastaba", + "SPYINTERACTION": "Sekti", + "AUTOREPLY": "Automatinis atsakymas", + "EDIT_AUTOREPLY": "Redaguoti automatinį atsakymą", + "TIMES": "Sąveikos kartų skaičius", + "TEXT": "Tekstas", + "INSERT_MESSAGE_HERE": "Įterpkite savo teksto pranešimą čia", + "CANNED_ANSWER_NOT_FOUND": "Nerasta įrašytų atsakymų", + "CANNED_ANSWER_SEARCH": "Įveskite tekstą, jei norite ieškoti įrašyto atsakymo", + "SEND": "Siųsti", + "TO": "Į", + "MESSAGE": "Žinutė", + "TAGS": "Žymos", + "NO_AGENT_ONLINE": "Nėra prisijungusio agento", + "GOTOREALTIME_SMSQUEUE": "Eiti į realaus laiko SMS eilę", + "PARTIALPAUSE": "Dalinė pauzė", + "BUSY": "Užimtas", + "TIMER": "Laikmatis", + "IDLE": "Laisvas", + "CAPACITY": "Pajėgumas", + "PROXY": "Įgaliojimas", + "ADVANCED": "Išplėstinė", + "MOTIONPROXY": "Tarpinis serveris arba Motion domenas", + "REALTIME": "Realus laikas", + "KEY": "Raktas", + "NAME": "Vardas", + "SMSQUEUES": "SMS eilės", + "SEARCH_FOR_ANYONE": "Paieška", + "STRATEGY": "Strategija", + "BASEURL": "Pagrindinis URL", + "MANDATORYDISPOSITION": "Privalomas išdėstymas", + "MANDATORYDISPOSITIONPAUSEID": "Pauzės naudojimas, kai įjungtas privalomas išdėstymas", "ERRORS": { - "AUTHID_REQUIRED": "Mandatory Field" + "ACCESSKEYID_REQUIRED": "Būtinas prieigos rakto ID", + "SECRETACCESSKEY_REQUIRED": "Būtinas prieigos rakto slėpinys", + "BOTNAME_REQUIRED": "Būtinas roboto vardas", + "QUEUETRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Reikšmė turi būti mažesnė arba lygi", + "QUEUETRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Reikšmė turi būti didesnė arba lygi", + "QUEUETRANSFERTIMEOUT_REQUIRED": "Privalomas laukas", + "AGENTTRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Reikšmė turi būti mažesnė arba lygi", + "AGENTTRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Reikšmė turi būti didesnė arba lygi", + "AGENTTRANSFERTIMEOUT_REQUIRED": "Privalomas laukas", + "TAG_REQUIRED": "Privalomas laukas", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Reikšmė turi būti mažesnė arba lygi", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Reikšmė turi būti didesnė arba lygi", + "WAITFORTHEASSIGNEDAGENT_REQUIRED": "Privalomas laukas", + "AGENT_TIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Reikšmė turi būti mažesnė arba lygi", + "TIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Reikšmė turi būti mažesnė arba lygi", + "AGENT_TIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Reikšmė turi būti didesnė arba lygi", + "NAME_MUST_VALID_PATTERN": "Blogas formatas", + "COMMAND_REQUIRED": "Privalomas laukas", + "AUTHID_REQUIRED": "Privalomas laukas", + "TEXT_MAX_LENGTH": "Reikšmė turi būti ne ilgesnė kaip {{maks}}", + "TEXT_REQUIRED": "Privalomas laukas", + "VALUE_REQUIRED": "Privalomas laukas", + "SENDERSTRING_MAX_LENGTH": "Reikšmė turi būti ne ilgesnė kaip {{maks}}", + "SENDERSTRING_MUST_VALID_PATTERN": "Blogas formatas", + "METHOD_REQUIRED": "Privalomas laukas", + "MOTIONPROXY_REQUIRED": "Privalomas laukas", + "MOTIONPROXY_MUST_VALID_URL": "Blogas formatas", + "KEY_MAX_LENGTH": "Reikšmė turi būti ne ilgesnė kaip {{maks}}", + "KEY_REQUIRED": "Privalomas laukas", + "NAME_REQUIRED": "Privalomas laukas", + "AGENT_TIMEOUT_REQUIRED": "Privalomas laukas", + "PHONE_REQUIRED": "Privalomas laukas", + "SID_REQUIRED": "Privalomas laukas", + "TOKEN_REQUIRED": "Privalomas laukas", + "USERNAME_REQUIRED": "Privalomas laukas", + "PASSWORD_REQUIRED": "Privalomas laukas", + "MOTIONADDRESS_REQUIRED": "Privalomas laukas", + "MOTIONADDRESS_MUST_VALID_URL": "Blogas formatas", + "ACCEPTURL_MUST_VALID_URL": "Blogas formatas", + "TIMEOUT_REQUIRED": "Privalomas laukas", + "REJECTURL_MUST_VALID_URL": "Blogas formatas", + "CLOSEURL_MUST_VALID_URL": "Blogas formatas", + "TYPE_REQUIRED": "Privalomas laukas", + "LIST_REQUIRED": "Privalomas laukas", + "PRIORITY_REQUIRED": "Privalomas laukas", + "CONDITION_REQUIRED": "Privalomas laukas", + "TRUEPRIORITY_REQUIRED": "Privalomas laukas", + "FALSEPRIORITY_REQUIRED": "Privalomas laukas", + "AGENT_REQUIRED": "Privalomas laukas", + "QUEUE_REQUIRED": "Privalomas laukas", + "DISPOSITION_REQUIRED": "Privalomas laukas", + "ACCOUNTSID_REQUIRED": "Privalomas laukas", + "AUTHTOKEN_REQUIRED": "Privalomas laukas", + "BASEURL_REQUIRED": "Privalomas laukas", + "APIKEY_REQUIRED": "Privalomas laukas", + "MANDATORYDISPOSITIONPAUSEID_REQUIRED": "Privalomas laukas", + "CLIENTEMAIL_REQUIRED": "Privalomas laukas", + "PRIVATEKEY_REQUIRED": "Privalomas laukas", + "PROJECTID_REQUIRED": "Privalomas laukas" }, - "AGENT_TIMEOUT": "Agent Timeout", - "DESCRIPTION": "Description", - "ADD_SMSQUEUE": "Add SMS Queue", - "EDIT_SMSQUEUE": "Edit SMS Queue", - "DELETE_SMSQUEUE": "Delete SMS Queue", - "SETTINGS": "Settings", - "GENERAL": "General", - "CREATED_AT": "Created At", - "SAVE": "Save", - "SMSACCOUNTS": "SMS Accounts", - "PHONE": "Phone", + "AGENT_TIMEOUT": "Agento skirtasis laikas", + "DESCRIPTION": "Aprašymas", + "ADD_SMSQUEUE": "Pridėti SMS eilę", + "EDIT_SMSQUEUE": "Redaguoti SMS eilę", + "DELETE_SMSQUEUE": "Ištrinti SMS eilę", + "SETTINGS": "Nustatymai", + "GENERAL": "Bendras", + "CREATED_AT": "Sukurta", + "SAVE": "Saugoti", + "SMSACCOUNTS": "SMS paskyros", + "TYPE": "Tipas", + "PHONE": "Telefonas", "SID": "SID", - "TOKEN": "Token", - "SMSTYPE": "SMS Type", - "USERNAME": "Username", - "PASSWORD": "Password", - "MOTIONADDRESS": "Motion Address", - "ADD_SMSACCOUNT": "Add SMS Account", - "EDIT_SMSACCOUNT": "Edit SMS Account", - "DELETE_SMSACCOUNT": "Delete SMS Account", - "FIDELITY": "Fidelity", + "TOKEN": "Požymis", + "SMSTYPE": "SMS tipas", + "USERNAME": "Vartotojo vardas", + "PASSWORD": "Slaptažodis", + "MOTIONADDRESS": "Motion adresas", + "ADD_SMSACCOUNT": "Pridėti SMS paskyrą", + "EDIT_SMSACCOUNT": "Redaguoti SMS paskyrą", + "DELETE_SMSACCOUNT": "Ištrinti SMS paskyrą", + "LIST": "Sąrašas", + "FIDELITY": "Tikslumas", "API": "API", - "DISPOSITIONS": "Dispositions", + "DISPOSITIONS": "Išdėstymai", "WEBHOOKS": "WebHooks", - "ACTIONS": "Actions", - "ACCEPT": "Accept", - "ACCEPTMETHOD": "Accept Method", - "ACCEPTURL": "Accept URL", - "REJECT": "Reject", - "REJECTMETHOD": "Reject Method", - "REJECTURL": "Reject URL", - "CLOSE": "Close", - "CLOSEMETHOD": "Close Method", - "CLOSEURL": "Close URL", - "SELECTED": "Selected", - "SELECT_ALL": "Select All", - "SELECT_NONE": "Select None", - "BACK": "Back", + "ACTIONS": "Veiksmai", + "ACCEPT": "Priimti", + "ACCEPTMETHOD": "Priimti metodą", + "ACCEPTURL": "Priimti URL", + "REJECT": "Atmesti", + "REJECTMETHOD": "Atmesti metodą", + "REJECTURL": "Atmesti URL", + "CLOSE": "Uždaryti", + "CLOSEMETHOD": "Uždaryti metodą", + "CLOSEURL": "Uždaryti URL", + "SELECTED": "Pasirinkta", + "SELECT_ALL": "Pasirinkti visus", + "SELECT_NONE": "Nieko nepasirinkti", + "BACK": "Atgal", "SMS": "SMS", "ID": "Id", "APIKEY": "ApiKey", - "CONFIRM_PASSWORD": "Confirm Password", - "SMSDISPOSITIONS": "SMS Dispositions", - "NO_SMSDISPOSITION_AVAILABLE": "No SMS Dispositions available", - "NEW_SMSDISPOSITION": "New SMS Disposition", - "ADD_SMSDISPOSITION": "Add SMS Disposition", - "EDIT_SMSDISPOSITION": "Edit SMS Disposition", - "DELETE_SMSDISPOSITION": "Delete SMS Disposition", - "NEW_SMSQUEUE": "New SMS Queue", - "NEW_SMSACCOUNT": "New SMS Account", - "NO_AVAILABLE_INFO": "No available info", - "ALL_TEAMS": "All Teams", - "SELECTED_TEAMS": "Selected Teams", - "DIALOGFLOW": "DialogFlow", - "EDIT_DIALOGFLOW": "Edit DialogFlow configuration", - "LANGUAGE": "Language", + "CONFIRM_PASSWORD": "Patvirtinti slaptažodį", + "SMSDISPOSITIONS": "SMS išdėstymai", + "NO_SMSDISPOSITION_AVAILABLE": "Nėra SMS išdėstymų", + "NEW_SMSDISPOSITION": "Naujas SMS išdėstymas", + "ADD_SMSDISPOSITION": "Pridėti SMS išdėstymą", + "EDIT_SMSDISPOSITION": "Redaguoti SMS išdėstymą", + "DELETE_SMSDISPOSITION": "Ištrinti SMS išdėstymą", + "NEW_SMSQUEUE": "Nauja SMS eilė", + "NEW_SMSACCOUNT": "Nauja SMS paskyra", + "NO_AVAILABLE_INFO": "Nėra informacijos", + "ALL_TEAMS": "Visos komandos", + "SELECTED_TEAMS": "Pasirinktos komandos", + "DIALOGFLOW": "Dialogo srautas", + "EDIT_DIALOGFLOW": "Redaguoti dialogo srauto konfigūraciją", + "LANGUAGE": "Kalba", "HELP": { - "RECEIVEURL": "This is the auto-generated API string you need to use to receive the messages inside your account from your SMS provider (POST method must be used): click the clipboard button to copy it", - "DELIVERYREPORTURL": "This is the auto-generated API string you need to use to receive the delivery report of sent messages from your SMS provider (POST method must be used): click the clipboard button to copy it" + "WELCOMEMESSAGE": "Tai pirmasis atsakymo pranešimas, išsiųstas naujoms sąveikoms", + "MOTIONPROXY": "Laukas turi būti tokio formato: ://[:]. Pavyzdys: https://X.Y.Z.W", + "NAME": "Palaikomi tik skaičiai, raidės ir konkretūs simboliai (._)", + "LIST": "Kontaktų tvarkyklės sąrašas naudojamas kontaktams susieti", + "RECEIVEURL": "Tai yra automatiškai sugeneruota API eilutė, kurią turite naudoti norėdami gauti pranešimus savo paskyroje iš savo SMS paslaugų teikėjo (turi būti naudojamas POST metodas): spustelėkite iškarpinės mygtuką, kad ją nukopijuotumėte", + "DELIVERYREPORTURL": "Tai yra automatiškai sugeneruota API eilutė, kurią turite naudoti norėdami gauti išsiųstų pranešimų pristatymo ataskaitą iš savo SMS paslaugų teikėjo (turi būti naudojamas POST metodas): spustelėkite iškarpinės mygtuką, kad ją nukopijuotumėte", + "MANDATORYDISPOSITION": "Privalomas išdėstymas", + "MANDATORYDISPOSITIONPAUSEID": "Pauzės naudojimas, kai įjungtas privalomas išdėstymas" }, - "PAGE": "Page", - "ROWSPERPAGE": "Rows per page", - "OF": "of", - "TEAMADD_SMSQUEUE": "Add Team To SMS Queue", - "AGENTADD_SMSQUEUE": "Add Agent To SMS Queue", - "ALL_AGENTS": "All Agents", - "SELECTED_AGENTS": "Selected Agents", - "RECEIVEURL": "Receive URL", - "INTERACTION": "Interaction", - "INTERACTIONS": "Interactions", - "NO_INTERACTION_AVAILABLE": "No interactions available", - "CONTACT": "Contact", - "STARTEDAT": "Started At", - "LASTMESSAGE": "Last message", - "AGENT": "Agent", - "CLOSEDAT": "Closed At", - "DISPOSITION": "Disposition", - "NOTES": "Notes", - "GOTO": "Goto", - "GOTOIF": "Gotoif", + "PAGE": "Puslapis", + "ROWSPERPAGE": "Eilutės puslapyje", + "OF": "iš", + "TEAMADD_SMSQUEUE": "Pridėti komandą prie SMS eilės", + "AGENTADD_SMSQUEUE": "Pridėti agentą prie SMS eilės", + "ALL_AGENTS": "Visi agentai", + "SELECTED_AGENTS": "Pasirinkti agentai", + "RECEIVEURL": "Gauti URL", + "INTERACTION": "Sąveika", + "INTERACTIONS": "Sąveikos", + "NO_INTERACTION_AVAILABLE": "Nėra sąveikų", + "CONTACT": "Kontaktas", + "STARTEDAT": "Pradėjo", + "LASTMESSAGE": "Paskutinė žinutė", + "AGENT": "Agentas", + "CLOSEDAT": "Uždaryta", + "DISPOSITION": "Išdėstymas", + "NOTES": "Pastabos", + "GOTO": "Eiti į", + "GOTOIF": "Eiti į jei", "NOOP": "Noop", - "QUEUE": "Queue", - "TIMEOUT": "Timeout", - "VALUE": "Value", - "EDIT_AGENT": "Edit Agent", - "EDIT_GOTO": "Edit Goto", - "EDIT_NOOP": "Edit Noop", - "EDIT_GOTOIF": "Edit Gotoif", - "EDIT_QUEUE": "Edit Queue", - "CONDITION": "Condition", - "TRUEPRIORITY": "True Priority", - "FALSEPRIORITY": "False Priority", - "PRIORITY": "Priority", - "GOTOP": "Gotop", - "EDIT_GOTOP": "Edit Gotop", - "EDIT_CLOSE": "Edit Close", - "FILTER": "Filter", - "SELECT_STATUS": "Select a status", - "ALL": "All", - "SELECT_ACCOUNT": "Select an account", - "OPENED": "Open", - "CLOSED": "Closed", - "STATUS": "Status", - "ACCOUNT": "Account", - "OPEN": "Open", - "INFO": "Info", - "ACCOUNTSID": "Account SID", - "AUTHTOKEN": "Auth Token", - "UNKNOWN": "Unknown", - "UNREGISTERED": "Unregistered", - "UNAVAILABLE": "Unavailable", - "NOT_INUSE": "Not in use", - "REACHABLE": "Reachable", - "IN_USE": "In use", - "AGENTS": "Agents", - "QUEUES": "Queues", - "FULLNAME": "Fullname", - "INTERNAL": "Internal", - "PHONE_STATE": "Phone State", - "PHONE_STATUS": "Phone Status", - "PAUSE": "Pause", - "LOGOUT": "Logout", - "AGENTADD_QUEUE": "Add agent to SMS queue", - "UNPAUSE": "End Pause", - "DEFAULT_PAUSE": "Default pause", - "LOGGED_IN": "Logged in", - "PAUSED": "Paused", - "READY": "Ready", - "WAITING": "Waiting", - "VOICE": "Voice", - "CHAT": "Chat", - "MAIL": "Email", - "OPENCHANNEL": "Open channel", - "FAX": "Fax", - "AGENTSADD_QUEUE": "Add agents to SMS queue", - "INTERACTIONS_SMSACCOUNT": "Go to Interactions", - "REFRESH_INTERACTIONS": "Refresh Interactions", - "DELETE_INTERACTION": "Delete Interaction", - "AGENTADD_SMSACCOUNT": "Add Agent to SMS Account", - "TEAMS_ASSOCIATION": "Teams Association", - "DOWNLOAD_WITH_ATTACHMENT": "Download with attachment", - "DOWNLOAD_WITHOUT_ATTACHMENT": "Download without attachment" + "QUEUE": "Eilė", + "TIMEOUT": "Skirtasis laikas", + "VALUE": "Reikšmė", + "EDIT_AGENT": "Redaguoti agentą", + "EDIT_GOTO": "Regaduoti Eiti į", + "EDIT_NOOP": "Redaguoti Noop", + "EDIT_GOTOIF": "Redaguoti Eiti į jei", + "EDIT_QUEUE": "Redaguoti eilę", + "CONDITION": "Padėtis", + "TRUEPRIORITY": "Teisingas prioritetas", + "FALSEPRIORITY": "Klaidingas prioritetas", + "PRIORITY": "Prioritetas", + "GOTOP": "Eiti į viršų", + "EDIT_GOTOP": "Redaguoti Eiti į viršų", + "EDIT_CLOSE": "Redaguoti Uždaryti", + "FILTER": "Filtras", + "SELECT_STATUS": "Pasirinkti statusą", + "ALL": "Visi", + "SELECT_ACCOUNT": "Pasirinkti paskyrą", + "OPENED": "Atidaryta", + "CLOSED": "Uždaryta", + "STATUS": "Statusas", + "ACCOUNT": "Paskyra", + "OPEN": "Atidaryti", + "INFO": "Informacija", + "ACCOUNTSID": "Paskyros SID", + "AUTHTOKEN": "Autentiškas požymis", + "UNKNOWN": "Nežinomas", + "UNREGISTERED": "Neregistruotas", + "UNAVAILABLE": "Nepasiekiamas", + "NOT_INUSE": "Nenaudojamas", + "REACHABLE": "Pasiekiamas", + "IN_USE": "Naudojamas", + "AGENTS": "Agentai", + "QUEUES": "Eilės", + "FULLNAME": "Vardas ir pavardė", + "INTERNAL": "Vidinis", + "PHONE_STATE": "Telefono būsena", + "PHONE_STATUS": "Telefono statusas", + "PAUSE": "Pauzė", + "LOGOUT": "Atsijungti", + "AGENTADD_QUEUE": "Pridėti agentą prie SMS eilės", + "UNPAUSE": "Pabaigti pauzę", + "DEFAULT_PAUSE": "Numatytoji pauzė", + "LOGGED_IN": "Prisijungęs", + "PAUSED": "Pristabdyta", + "READY": "Paruošta", + "WAITING": "Laukiama", + "VOICE": "Balsas", + "CHAT": "Pokalbis", + "MAIL": "El. paštas", + "OPENCHANNEL": "Atviras kanalas", + "FAX": "Faksas", + "AGENTSADD_QUEUE": "Pridėti agentus prie SMS eilės", + "INTERACTIONS_SMSACCOUNT": "Eiti į sąveikas", + "REFRESH_INTERACTIONS": "Atnaujinti sąveikas", + "DELETE_INTERACTION": "Itrinti sąveiką", + "AGENTADD_SMSACCOUNT": "Pridėti agentą prie SMS paskyros", + "TEAMS_ASSOCIATION": "Komandų asociacija", + "DOWNLOAD_WITH_ATTACHMENT": "Atsisiųsti su priedu", + "DOWNLOAD_WITHOUT_ATTACHMENT": "Atsisiųsti be priedo", + "CLIENTEMAIL": "Kliento el. Paštas", + "DIALOGFLOWV2": "Dialogflow V2", + "EDIT_DIALOGFLOWV2": "Redaguoti „Dialogflow V2“", + "PRIVATEKEY": "Privatus raktas", + "PROJECTID": "Projekto ID" } } diff --git a/public/app/main/apps/sms/i18n/lv.json b/public/app/main/apps/sms/i18n/lv.json index 41bc770..51b90fd 100644 --- a/public/app/main/apps/sms/i18n/lv.json +++ b/public/app/main/apps/sms/i18n/lv.json @@ -1,11 +1,75 @@ { "SMS": { "ERRORS": { - "AUTHID_REQUIRED": "Obligāts lauks" + "TEXT_MAX_LENGTH": "Vērtībai jābūt ar maksimālo garumu {{max}}", + "TEXT_REQUIRED": "Obligāts lauks", + "VALUE_REQUIRED": "Obligāts lauks", + "SENDERSTRING_MAX_LENGTH": "Vērtībai jābūt ar maksimālo garumu {{max}}", + "SENDERSTRING_MUST_VALID_PATTERN": "Nepareizs formāts", + "METHOD_REQUIRED": "Obligāts lauks", + "MOTIONPROXY_REQUIRED": "Obligāts lauks", + "MOTIONPROXY_MUST_VALID_URL": "Nepareizs formāts", + "KEY_MAX_LENGTH": "Vērtībai jābūt ar maksimālo garumu {{max}}", + "KEY_REQUIRED": "Obligāts lauks", + "NAME_REQUIRED": "Obligāts lauks", + "AGENT_TIMEOUT_REQUIRED": "Obligāts lauks", + "PHONE_REQUIRED": "Obligāts lauks", + "SID_REQUIRED": "Obligāts lauks", + "TOKEN_REQUIRED": "Obligāts lauks", + "USERNAME_REQUIRED": "Obligāts lauks", + "PASSWORD_REQUIRED": "Obligāts lauks", + "MOTIONADDRESS_REQUIRED": "Obligāts lauks", + "MOTIONADDRESS_MUST_VALID_URL": "Nepareizs formāts", + "ACCEPTURL_MUST_VALID_URL": "Nepareizs formāts", + "TIMEOUT_REQUIRED": "Obligāts lauks", + "REJECTURL_MUST_VALID_URL": "Nepareizs formāts", + "CLOSEURL_MUST_VALID_URL": "Nepareizs formāts", + "TYPE_REQUIRED": "Obligāts lauks", + "LIST_REQUIRED": "Obligāts lauks", + "PRIORITY_REQUIRED": "Obligāts lauks", + "CONDITION_REQUIRED": "Obligāts lauks", + "TRUEPRIORITY_REQUIRED": "Obligāts lauks", + "FALSEPRIORITY_REQUIRED": "Obligāts lauks", + "AGENT_REQUIRED": "Obligāts lauks", + "QUEUE_REQUIRED": "Obligāts lauks", + "DISPOSITION_REQUIRED": "Obligāts lauks", + "ACCOUNTSID_REQUIRED": "Obligāts lauks", + "AUTHTOKEN_REQUIRED": "Obligāts lauks", + "AUTHID_REQUIRED": "Obligāts lauks", + "COMMAND_REQUIRED": "Obligāts lauks", + "AGENT_TIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Vērtībai jābūt lielākai vai vienādai ar", + "NAME_MUST_VALID_PATTERN": "Nepareizs formāts", + "TIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Vērtībai jābūt mazākai vai vienādai ar", + "AGENT_TIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Vērtībai jābūt mazākai vai vienādai ar", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Vērtībai jābūt lielākai vai vienādai ar", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Vērtībai jābūt mazākai vai vienādai ar", + "WAITFORTHEASSIGNEDAGENT_REQUIRED": "Obligāts lauks", + "TAG_REQUIRED": "Obligāts lauks", + "AGENTTRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Vērtībai jābūt lielākai vai vienādai ar", + "AGENTTRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Vērtībai jābūt mazākai vai vienādai ar", + "AGENTTRANSFERTIMEOUT_REQUIRED": "Obligāts lauks", + "QUEUETRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Vērtībai jābūt lielākai vai vienādai ar", + "QUEUETRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Vērtībai jābūt mazākai vai vienādai ar", + "QUEUETRANSFERTIMEOUT_REQUIRED": "Obligāts lauks", + "APIKEY_REQUIRED": "Obligāts lauks", + "BASEURL_REQUIRED": "Obligāts lauks", + "MANDATORYDISPOSITIONPAUSEID_REQUIRED": "Obligāts lauks", + "ACCESSKEYID_REQUIRED": "Nepieciešams piekļuves atslēgas ID", + "BOTNAME_REQUIRED": "Nepieciešams robotprogrammatūras nosaukums", + "SECRETACCESSKEY_REQUIRED": "Nepieciešams piekļuves atslēgas noslēpums", + "CLIENTEMAIL_REQUIRED": "Obligāts lauks", + "PRIVATEKEY_REQUIRED": "Obligāts lauks", + "PROJECTID_REQUIRED": "Obligāts lauks" }, "HELP": { + "MOTIONPROXY": "Laukam ir jābūt formatētam šādi: : //[:]. Piemērs: https://XYZW", + "NAME": "Tiek atbalstīti tikai numuri, burti un atsevišķas rakstzīmes (._)", + "LIST": "Kontaktpersonu pārvaldnieku saraksts tiek izmantots, lai saistītu kontaktpersonas", "RECEIVEURL": "Šī ir automātiski ģenerētā API virkne, kas ir jāizmanto, lai saņemtu īsziņas jūsu konta ietvaros no īsziņu pakalpojumu sniedzēja (jāizmanto POST metode): noklikšķiniet uz starpliktuves pogas, lai to kopētu", - "DELIVERYREPORTURL": "Šī ir automātiski ģenerētā API virkne, kas ir jāizmanto, lai saņemtu īsziņu piegādes ziņojumu no jūsu īsziņu pakalpojumu sniedzēja (jāizmanto POST metode): noklikšķiniet uz starpliktuves pogas, lai to kopētu" + "DELIVERYREPORTURL": "Šī ir automātiski ģenerētā API virkne, kas ir jāizmanto, lai saņemtu īsziņu piegādes ziņojumu no jūsu īsziņu pakalpojumu sniedzēja (jāizmanto POST metode): noklikšķiniet uz starpliktuves pogas, lai to kopētu", + "MANDATORYDISPOSITION": "Obligāta rīcība", + "MANDATORYDISPOSITIONPAUSEID": "Lietošanas pārtraukšana, kad ir iespējota obligātā izvietošana", + "WELCOMEMESSAGE": "Šis ir pirmais atbildes ziņojums, kas nosūtīts jaunām mijiedarbībām" }, "NO_SMSDISPOSITIONS_AVAILABLE": "Nav pieejams SMS statuss", "NO_SMSCANNEDANSWER_AVAILABLE": "Nav pieejamas standarta atbildes", @@ -41,8 +105,10 @@ "CAPACITY": "Jauda", "PROXY": "Starpnieks", "ADVANCED": "Paplašināts", + "MOTIONPROXY": "Starpnieka vai Motion domēns", "REALTIME": "Monitorings", "KEY": "Atslēga", + "NAME": "Nosaukums", "SMSQUEUES": "SMS rindas", "SEARCH_FOR_ANYONE": "Meklēt", "STRATEGY": "Stratēģija", @@ -56,6 +122,7 @@ "CREATED_AT": "Izveidots", "SAVE": "Saglabāt", "SMSACCOUNTS": "SMS konti", + "TYPE": "Tips", "PHONE": "Tālrunis", "SID": "Drošības identifikators", "TOKEN": "Marķieris", @@ -66,6 +133,7 @@ "ADD_SMSACCOUNT": "Pievienot SMS kontu", "EDIT_SMSACCOUNT": "Rediģēt SMS kontu", "DELETE_SMSACCOUNT": "Dzēst SMS kontu", + "LIST": "Saraksts", "FIDELITY": "Uzticība", "API": "API", "DISPOSITIONS": "Statusi", @@ -201,6 +269,8 @@ "APIKEY": "ApiKey", "BASEURL": "Bāzes URL", "TEAMS_ASSOCIATION": "Komandu asociācija", + "MANDATORYDISPOSITION": "Obligāta rīcība", + "MANDATORYDISPOSITIONPAUSEID": "Lietošanas pārtraukšana, kad ir iespējota obligātā izvietošana", "ACCESSKEYID": "Piekļuves atslēgas ID", "AMAZONLEX": "AmazonLex", "BOTNAME": "Bot vārds", @@ -210,8 +280,14 @@ "LANGUAGE": "Valoda", "LEXREGION": "Novads", "SECRETACCESSKEY": "Piekļuves atslēgas noslēpums", + "WELCOMEMESSAGE": "Sveiciena ziņa", "DOWNLOAD_WITHOUT_ATTACHMENT": "Lejupielādējiet bez pielikuma", "DOWNLOAD_WITH_ATTACHMENT": "Lejupielādējiet ar pielikumu", - "LASTMESSAGE": "Pēdējā ziņa" + "LASTMESSAGE": "Pēdējā ziņa", + "CLIENTEMAIL": "Klienta e-pasts", + "DIALOGFLOWV2": "Dialogflow V2", + "EDIT_DIALOGFLOWV2": "Rediģēt Dialogflow V2", + "PRIVATEKEY": "Privātā atslēga", + "PROJECTID": "Projekta ID" } } diff --git a/public/app/main/apps/sms/i18n/nl.json b/public/app/main/apps/sms/i18n/nl.json index e8557ea..c8f75b3 100644 --- a/public/app/main/apps/sms/i18n/nl.json +++ b/public/app/main/apps/sms/i18n/nl.json @@ -1,11 +1,70 @@ { "SMS": { "KEY": "Sleutel", + "NAME": "Naam", "SMSQUEUES": "SMS-wachtrijen", "SEARCH_FOR_ANYONE": "Zoeken voor iedereen", "STRATEGY": "Strategie", "ERRORS": { - "AUTHID_REQUIRED": "Verplicht veld" + "KEY_MAX_LENGTH": "Sleutel moet een lengte gelijk aan {{max.}}", + "KEY_REQUIRED": "Sleutel is vereist", + "NAME_REQUIRED": "De naam is verplicht", + "AGENT_TIMEOUT_REQUIRED": "De Agent Timeout is vereist", + "PHONE_REQUIRED": "Het telefoonnummer is verplicht", + "SID_REQUIRED": "De SID is vereist", + "TOKEN_REQUIRED": "Het token is vereist", + "USERNAME_REQUIRED": "De gebruikersnaam is vereist", + "PASSWORD_REQUIRED": "Het wachtwoord is vereist", + "MOTIONADDRESS_REQUIRED": "De Motion Adres is vereist.", + "MOTIONADDRESS_MUST_VALID_URL": "De Motion adres moet worden geschreven in een geldige indeling", + "ACCEPTURL_MUST_VALID_URL": "Accepteer URL moet worden geschreven in een geldige indeling", + "TIMEOUT_REQUIRED": "De timeout is vereist", + "REJECTURL_MUST_VALID_URL": "De afwijzing URL moet worden geschreven in een geldige indeling", + "CLOSEURL_MUST_VALID_URL": "De nauwe URL moet worden geschreven in een geldige indeling", + "TYPE_REQUIRED": "Het type is vereist", + "LIST_REQUIRED": "De lijst is vereist", + "PRIORITY_REQUIRED": "De prioriteit is vereist.", + "CONDITION_REQUIRED": "De conditie is vereist", + "TRUEPRIORITY_REQUIRED": "De echte prioriteit is vereist.", + "FALSEPRIORITY_REQUIRED": "De valse prioriteit is vereist.", + "AGENT_REQUIRED": "De Agent is vereist", + "QUEUE_REQUIRED": "De wachtrij is vereist", + "DISPOSITION_REQUIRED": "De Dispositie is vereist", + "ACCOUNTSID_REQUIRED": "Account SID is vereist", + "AUTHTOKEN_REQUIRED": "Auth Token is vereist", + "MOTIONPROXY_REQUIRED": "Verplicht veld", + "MOTIONPROXY_MUST_VALID_URL": "Onjuist formaat", + "TEXT_MAX_LENGTH": "De waarde moet een maximale lengte hebben die gelijk is aan {{max}}", + "TEXT_REQUIRED": "Verplicht veld", + "VALUE_REQUIRED": "Verplicht veld", + "SENDERSTRING_MAX_LENGTH": "De waarde moet een maximale lengte hebben die gelijk is aan {{max}}", + "SENDERSTRING_MUST_VALID_PATTERN": "Verkeerd formaat", + "METHOD_REQUIRED": "Verplicht veld", + "AUTHID_REQUIRED": "Verplicht veld", + "COMMAND_REQUIRED": "Verplicht veld", + "AGENT_TIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "De waarde moet groter zijn dan of gelijk aan", + "NAME_MUST_VALID_PATTERN": "Verkeerd formaat", + "TIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "De waarde moet kleiner zijn dan of gelijk aan", + "AGENT_TIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "De waarde moet kleiner zijn dan of gelijk aan", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "De waarde moet groter zijn dan of gelijk aan", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "De waarde moet kleiner zijn dan of gelijk aan", + "WAITFORTHEASSIGNEDAGENT_REQUIRED": "Verplicht veld", + "TAG_REQUIRED": "Verplicht veld", + "AGENTTRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "De waarde moet groter zijn dan of gelijk aan", + "AGENTTRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "De waarde moet kleiner zijn dan of gelijk aan", + "AGENTTRANSFERTIMEOUT_REQUIRED": "Verplicht veld", + "QUEUETRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "De waarde moet groter zijn dan of gelijk aan", + "QUEUETRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "De waarde moet kleiner zijn dan of gelijk aan", + "QUEUETRANSFERTIMEOUT_REQUIRED": "Verplicht veld", + "APIKEY_REQUIRED": "Verplicht veld", + "BASEURL_REQUIRED": "Verplicht veld", + "MANDATORYDISPOSITIONPAUSEID_REQUIRED": "Verplicht veld", + "ACCESSKEYID_REQUIRED": "Toegangssleutel-ID is vereist", + "BOTNAME_REQUIRED": "Botnaam is vereist", + "SECRETACCESSKEY_REQUIRED": "Toegangssleutel geheim is vereist", + "CLIENTEMAIL_REQUIRED": "Verplicht veld", + "PRIVATEKEY_REQUIRED": "Verplicht veld", + "PROJECTID_REQUIRED": "Verplicht veld" }, "AGENT_TIMEOUT": "Time-out agent", "DESCRIPTION": "Beschrijving", @@ -17,6 +76,7 @@ "CREATED_AT": "Gemaakt op", "SAVE": "Opslaan", "SMSACCOUNTS": "SMS Accounts", + "TYPE": "Type", "PHONE": "Telefoon", "SID": "SID", "TOKEN": "Token", @@ -27,6 +87,7 @@ "ADD_SMSACCOUNT": "Voeg SMS Account", "EDIT_SMSACCOUNT": "Edit SMS Account", "DELETE_SMSACCOUNT": "SMS-account", + "LIST": "Lijst", "FIDELITY": "Hifi-geluid", "API": "API", "DISPOSITIONS": "Dispositions", @@ -60,8 +121,14 @@ "ALL_TEAMS": "Alle teams", "SELECTED_TEAMS": "Geselecteerde teams", "HELP": { + "NAME": "Alleen cijfers, letters en speciale tekens (_) worden ondersteund", + "LIST": "Contact Manager lijst gebruikt om contactpersonen koppelen", "RECEIVEURL": "Dit is het automatisch gegenereerde API string hebt u de berichten in uw account vanaf uw SMS-provider (POST methode moet worden gebruikt). U kunt op het klembord te kopiëren naar het klembord.", - "DELIVERYREPORTURL": "Dit is de automatisch gegenereerde API-reeks die u moet gebruiken om het bezorgingsrapport van verzonden berichten van uw SMS-provider te ontvangen (POST-methode moet worden gebruikt): klik op de klembordknop om deze te kopiëren" + "MOTIONPROXY": "Het veld moet de volgende notatie: ://[:]. Voorbeeld: https://X.Y.Z.W", + "DELIVERYREPORTURL": "Dit is de automatisch gegenereerde API-reeks die u moet gebruiken om het bezorgingsrapport van verzonden berichten van uw SMS-provider te ontvangen (POST-methode moet worden gebruikt): klik op de klembordknop om deze te kopiëren", + "MANDATORYDISPOSITION": "Verplichte regeling", + "MANDATORYDISPOSITIONPAUSEID": "Pauze om te gebruiken wanneer verplichte dispositie is ingeschakeld", + "WELCOMEMESSAGE": "Dit is het eerste antwoordbericht dat naar nieuwe interacties wordt gestuurd" }, "PAGE": "Pagina", "ROWSPERPAGE": "Rijen per pagina", @@ -112,6 +179,7 @@ "AUTHTOKEN": "Auth Token", "PROXY": "Proxy", "ADVANCED": "Geavanceerd", + "MOTIONPROXY": "Proxy of Motion domein", "REALTIME": "Realtime", "UNKNOWN": "Onbekend", "UNREGISTERED": "Unregistered", @@ -201,6 +269,8 @@ "APIKEY": "API sleutel", "BASEURL": "Basis-URL", "TEAMS_ASSOCIATION": "Teams Association", + "MANDATORYDISPOSITION": "Verplichte regeling", + "MANDATORYDISPOSITIONPAUSEID": "Pauze om te gebruiken wanneer verplichte dispositie is ingeschakeld", "ACCESSKEYID": "Toegangssleutel-ID", "AMAZONLEX": "AmazonLex", "BOTNAME": "Bot naam", @@ -210,8 +280,14 @@ "LANGUAGE": "Taal", "LEXREGION": "Regio", "SECRETACCESSKEY": "Toegangssleutel geheim", + "WELCOMEMESSAGE": "Welkoms bericht", "DOWNLOAD_WITHOUT_ATTACHMENT": "Download zonder bijlage", "DOWNLOAD_WITH_ATTACHMENT": "Download met bijlage", - "LASTMESSAGE": "Laatste bericht" + "LASTMESSAGE": "Laatste bericht", + "CLIENTEMAIL": "E-mail van de klant", + "DIALOGFLOWV2": "Dialogflow V2", + "EDIT_DIALOGFLOWV2": "Bewerk Dialogflow V2", + "PRIVATEKEY": "Prive sleutel", + "PROJECTID": "Project-ID" } } diff --git a/public/app/main/apps/sms/i18n/no.json b/public/app/main/apps/sms/i18n/no.json index 94368f7..4235f2d 100644 --- a/public/app/main/apps/sms/i18n/no.json +++ b/public/app/main/apps/sms/i18n/no.json @@ -1,11 +1,70 @@ { "SMS": { "KEY": "Tasten", + "NAME": "Navn", "SMSQUEUES": "SMS-køer", "SEARCH_FOR_ANYONE": "Søk etter alle", "STRATEGY": "Strategi", "ERRORS": { - "AUTHID_REQUIRED": "Obligatoriske felt" + "KEY_MAX_LENGTH": "Tasten må ha en maksimal lengde lik {{max}}", + "KEY_REQUIRED": "Nøkkelen er nødvendig", + "NAME_REQUIRED": "Navnet er nødvendig", + "AGENT_TIMEOUT_REQUIRED": "Agenten tidsavbrudd er nødvendig", + "PHONE_REQUIRED": "Telefonen er nødvendig", + "SID_REQUIRED": "SID er nødvendig", + "TOKEN_REQUIRED": "Tokenet er nødvendig", + "USERNAME_REQUIRED": "Brukernavnet er nødvendig", + "PASSWORD_REQUIRED": "Passordet er nødvendig", + "MOTIONADDRESS_REQUIRED": "Bevegelsen adresse er påkrevd", + "MOTIONADDRESS_MUST_VALID_URL": "Bevegelsen adresse må være skrevet i et gyldig format", + "ACCEPTURL_MUST_VALID_URL": "Godta URL må være skrevet i et gyldig format", + "TIMEOUT_REQUIRED": "Tidsavbruddet er nødvendig", + "REJECTURL_MUST_VALID_URL": "Avvis URL må være skrevet i et gyldig format", + "CLOSEURL_MUST_VALID_URL": "Lukk URL må være skrevet i et gyldig format", + "TYPE_REQUIRED": "Den typen som er påkrevd", + "LIST_REQUIRED": "Listen er nødvendig", + "PRIORITY_REQUIRED": "Prioriteten er nødvendig", + "CONDITION_REQUIRED": "Tilstanden er nødvendig", + "TRUEPRIORITY_REQUIRED": "Den ekte prioritet er nødvendig", + "FALSEPRIORITY_REQUIRED": "Den falske prioritet er nødvendig", + "AGENT_REQUIRED": "Agenten er nødvendig", + "QUEUE_REQUIRED": "Køen er nødvendig", + "DISPOSITION_REQUIRED": "Disposisjonen er nødvendig", + "ACCOUNTSID_REQUIRED": "Konto SID er nødvendig", + "AUTHTOKEN_REQUIRED": "Attest ID-brikke er nødvendig", + "MOTIONPROXY_REQUIRED": "Obligatorisk felt", + "MOTIONPROXY_MUST_VALID_URL": "Feil format", + "TEXT_MAX_LENGTH": "Verdien må ha en maksimal lengde lik {{max}}", + "TEXT_REQUIRED": "Obligatoriske felt", + "VALUE_REQUIRED": "Obligatoriske felt", + "SENDERSTRING_MAX_LENGTH": "Verdien må ha en maksimal lengde lik {{max}}", + "SENDERSTRING_MUST_VALID_PATTERN": "Feil format", + "METHOD_REQUIRED": "Obligatoriske felt", + "AUTHID_REQUIRED": "Obligatoriske felt", + "COMMAND_REQUIRED": "Obligatoriske felt", + "AGENT_TIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Verdien må være større enn eller lik", + "NAME_MUST_VALID_PATTERN": "Feil format", + "TIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Verdien må være mindre enn eller lik", + "AGENT_TIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Verdien må være mindre enn eller lik", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Verdien må være større enn eller lik", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Verdien må være mindre enn eller lik", + "WAITFORTHEASSIGNEDAGENT_REQUIRED": "Obligatoriske felt", + "TAG_REQUIRED": "Obligatoriske felt", + "AGENTTRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Verdien må være større enn eller lik", + "AGENTTRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Verdien må være mindre enn eller lik", + "AGENTTRANSFERTIMEOUT_REQUIRED": "Obligatoriske felt", + "QUEUETRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Verdien må være større enn eller lik", + "QUEUETRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Verdien må være mindre enn eller lik", + "QUEUETRANSFERTIMEOUT_REQUIRED": "Obligatoriske felt", + "APIKEY_REQUIRED": "Obligatoriske felt", + "BASEURL_REQUIRED": "Obligatoriske felt", + "MANDATORYDISPOSITIONPAUSEID_REQUIRED": "Obligatoriske felt", + "ACCESSKEYID_REQUIRED": "Tilgangsnøkkel-ID er påkrevd", + "BOTNAME_REQUIRED": "Botnavn kreves", + "SECRETACCESSKEY_REQUIRED": "Tilgangsnøkkelhemmelighet er påkrevd", + "CLIENTEMAIL_REQUIRED": "Obligatoriske felt", + "PRIVATEKEY_REQUIRED": "Obligatoriske felt", + "PROJECTID_REQUIRED": "Obligatoriske felt" }, "AGENT_TIMEOUT": "Agent tidsavbrudd", "DESCRIPTION": "Beskrivelse", @@ -17,6 +76,7 @@ "CREATED_AT": "Opprettet i", "SAVE": "Lagre", "SMSACCOUNTS": "SMS-kontoer", + "TYPE": "Type", "PHONE": "Telefon", "SID": "SID", "TOKEN": "Brikke", @@ -27,6 +87,7 @@ "ADD_SMSACCOUNT": "Legg til SMS-konto", "EDIT_SMSACCOUNT": "Redigere SMS-konto", "DELETE_SMSACCOUNT": "Slett SMS-konto", + "LIST": "Liste", "FIDELITY": "Fi", "API": "API", "DISPOSITIONS": "Disposisjoner", @@ -60,8 +121,14 @@ "ALL_TEAMS": "Alle grupper", "SELECTED_TEAMS": "Valgte lag", "HELP": { + "NAME": "Bare tall, bokstaver og bestemte tegn (._) støttes", + "LIST": "Kontakt Manager liste som brukes til å knytte kontakter", "RECEIVEURL": "Dette er auto-generert API-strengen du trenger for å bruke til å motta meldinger inne din konto fra din SMS-leverandør (POST-metoden må brukes). Du kan trykke på utklippstavlen for å kopiere det på utklippstavlen.", - "DELIVERYREPORTURL": "Dette er den automatisk genererte API-strengen du må bruke for å motta leveringsrapporten for sendte meldinger fra SMS-leverandøren din (POST-metoden må brukes): Klikk på utklippstavlen for å kopiere den" + "MOTIONPROXY": "Feltet må ha følgende format: ://[:]. Eksempel: https://X.Y.Z.W", + "DELIVERYREPORTURL": "Dette er den automatisk genererte API-strengen du må bruke for å motta leveringsrapporten for sendte meldinger fra SMS-leverandøren din (POST-metoden må brukes): Klikk på utklippstavlen for å kopiere den", + "MANDATORYDISPOSITION": "Obligatorisk disposisjon", + "MANDATORYDISPOSITIONPAUSEID": "Pause for bruk når obligatorisk disposisjon er aktivert", + "WELCOMEMESSAGE": "Dette er den første svarmeldingen som er sendt til nye interaksjoner" }, "PAGE": "Siden", "ROWSPERPAGE": "Linjer per side", @@ -112,6 +179,7 @@ "AUTHTOKEN": "Attest ID-brikke", "PROXY": "Proxy", "ADVANCED": "Avansert", + "MOTIONPROXY": "Proxy eller Motion domene", "REALTIME": "Sanntid", "UNKNOWN": "Ukjent", "UNREGISTERED": "Uregistrert", @@ -201,6 +269,8 @@ "APIKEY": "apikey", "BASEURL": "Basisadresse", "TEAMS_ASSOCIATION": "Lagforening", + "MANDATORYDISPOSITION": "Obligatorisk disposisjon", + "MANDATORYDISPOSITIONPAUSEID": "Pause for bruk når obligatorisk disposisjon er aktivert", "ACCESSKEYID": "Tilgangsnøkkel-ID", "AMAZONLEX": "AmazonLex", "BOTNAME": "Bot navn", @@ -210,8 +280,14 @@ "LANGUAGE": "Språk", "LEXREGION": "Region", "SECRETACCESSKEY": "Tilgang nøkkelhemmelighet", + "WELCOMEMESSAGE": "Velkomstmelding", "DOWNLOAD_WITHOUT_ATTACHMENT": "Last ned uten vedlegg", "DOWNLOAD_WITH_ATTACHMENT": "Last ned med vedlegg", - "LASTMESSAGE": "Siste melding" + "LASTMESSAGE": "Siste melding", + "CLIENTEMAIL": "Klientens e-post", + "DIALOGFLOWV2": "Dialogflow V2", + "EDIT_DIALOGFLOWV2": "Rediger Dialogflow V2", + "PRIVATEKEY": "Privat nøkkel", + "PROJECTID": "Prosjekt-ID" } } diff --git a/public/app/main/apps/sms/i18n/pl.json b/public/app/main/apps/sms/i18n/pl.json index df7d3bd..04cfca4 100644 --- a/public/app/main/apps/sms/i18n/pl.json +++ b/public/app/main/apps/sms/i18n/pl.json @@ -2,13 +2,73 @@ "SMS": { "PROXY": "Proxy", "ADVANCED": "Zaawansowane", + "MOTIONPROXY": "Proxy lub ruchu domeny", "REALTIME": "Realtime", "KEY": "Klawisz", + "NAME": "Nazwa", "SMSQUEUES": "SMS kolejek", "SEARCH_FOR_ANYONE": "Wyszukaj użytkowników", "STRATEGY": "Strategia", "ERRORS": { - "AUTHID_REQUIRED": "Pole obowiązkowe" + "MOTIONPROXY_REQUIRED": "Pole obowiązkowe", + "MOTIONPROXY_MUST_VALID_URL": "Zły format", + "KEY_MAX_LENGTH": "Klucz musi mieć maksymalną długość równa {{max}}", + "KEY_REQUIRED": "Wymagany jest klucz", + "NAME_REQUIRED": "Nazwisko jest wymagane", + "AGENT_TIMEOUT_REQUIRED": "Agent Timeout jest wymagane", + "PHONE_REQUIRED": "Telefon jest wymagane", + "SID_REQUIRED": "SID jest wymagane", + "TOKEN_REQUIRED": "Token jest wymagane", + "USERNAME_REQUIRED": "Nazwa użytkownika jest wymagany", + "PASSWORD_REQUIRED": "Hasło jest wymagane", + "MOTIONADDRESS_REQUIRED": "Ruch wymagany jest adres", + "MOTIONADDRESS_MUST_VALID_URL": "Ruch adres musi być napisana w poprawnym formacie", + "ACCEPTURL_MUST_VALID_URL": "Akceptuj URL musi być napisana w poprawnym formacie", + "TIMEOUT_REQUIRED": "Limit czasu jest wymagane", + "REJECTURL_MUST_VALID_URL": "Odrzuć URL musi być napisana w poprawnym formacie", + "CLOSEURL_MUST_VALID_URL": "Zamknij URL musi być napisana w poprawnym formacie", + "TYPE_REQUIRED": "Typ jest wymagany", + "LIST_REQUIRED": "Lista jest wymagane", + "PRIORITY_REQUIRED": "Priorytetem jest wymagane", + "CONDITION_REQUIRED": "Stan jest wymagany", + "TRUEPRIORITY_REQUIRED": "Prawdziwym priorytetem jest wymagane", + "FALSEPRIORITY_REQUIRED": "Fałszywe priorytetem jest wymagane", + "AGENT_REQUIRED": "Agent jest wymagane", + "QUEUE_REQUIRED": "Kolejka jest wymagane", + "DISPOSITION_REQUIRED": "Do dyspozycji jest wymagane", + "ACCOUNTSID_REQUIRED": "Konto SID jest wymagane", + "AUTHTOKEN_REQUIRED": "Auth Token jest wymagane", + "TEXT_MAX_LENGTH": "Wartość musi mieć maksymalną długość równą {{max}}", + "TEXT_REQUIRED": "Pole obowiązkowe", + "VALUE_REQUIRED": "Pole obowiązkowe", + "SENDERSTRING_MAX_LENGTH": "Wartość musi mieć maksymalną długość równą {{max}}", + "SENDERSTRING_MUST_VALID_PATTERN": "Zły format", + "METHOD_REQUIRED": "Pole obowiązkowe", + "AUTHID_REQUIRED": "Pole obowiązkowe", + "COMMAND_REQUIRED": "Pole obowiązkowe", + "AGENT_TIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Wartość musi być większa lub równa", + "NAME_MUST_VALID_PATTERN": "Zły format", + "TIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Wartość musi być mniejsza lub równa", + "AGENT_TIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Wartość musi być mniejsza lub równa", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Wartość musi być większa lub równa", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Wartość musi być mniejsza lub równa", + "WAITFORTHEASSIGNEDAGENT_REQUIRED": "Pole obowiązkowe", + "TAG_REQUIRED": "Pole obowiązkowe", + "AGENTTRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Wartość musi być większa lub równa", + "AGENTTRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Wartość musi być mniejsza lub równa", + "AGENTTRANSFERTIMEOUT_REQUIRED": "Pole obowiązkowe", + "QUEUETRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Wartość musi być większa lub równa", + "QUEUETRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Wartość musi być mniejsza lub równa", + "QUEUETRANSFERTIMEOUT_REQUIRED": "Pole obowiązkowe", + "APIKEY_REQUIRED": "Pole obowiązkowe", + "BASEURL_REQUIRED": "Pole obowiązkowe", + "MANDATORYDISPOSITIONPAUSEID_REQUIRED": "Pole obowiązkowe", + "ACCESSKEYID_REQUIRED": "Wymagany jest identyfikator klucza dostępu", + "BOTNAME_REQUIRED": "Nazwa bota jest wymagana", + "SECRETACCESSKEY_REQUIRED": "Wymagany jest klucz tajny", + "CLIENTEMAIL_REQUIRED": "Pole obowiązkowe", + "PRIVATEKEY_REQUIRED": "Pole obowiązkowe", + "PROJECTID_REQUIRED": "Pole obowiązkowe" }, "AGENT_TIMEOUT": "Agent Timeout", "DESCRIPTION": "Opis", @@ -20,6 +80,7 @@ "CREATED_AT": "Utworzone w", "SAVE": "Zapisz", "SMSACCOUNTS": "SMS konta", + "TYPE": "Typ", "PHONE": "Telefon komórkowy", "SID": "SID", "TOKEN": "Token", @@ -30,6 +91,7 @@ "ADD_SMSACCOUNT": "Dodawanie konta SMS", "EDIT_SMSACCOUNT": "Edycja konta SMS", "DELETE_SMSACCOUNT": "Usuwanie konta SMS", + "LIST": "Lista", "FIDELITY": "Wierność", "API": "API", "DISPOSITIONS": "Dyspozycje", @@ -63,8 +125,14 @@ "ALL_TEAMS": "Wszystkie zespoły", "SELECTED_TEAMS": "Wybrane zespoły", "HELP": { + "MOTIONPROXY": "Pole musi mieć następujący format: ://[:]. Przykład: https://X.Y.Z.W", + "NAME": "Tylko cyfry, litery i znaki specjalne (._) są obsługiwane", + "LIST": "Contact Manager lista służy do wiązania kontaktów", "RECEIVEURL": "Jest to automatycznie wygenerowany ciąg API trzeba użyć aby otrzymywać wiadomości inside twoje konto od twojego dostawcy usługi SMS (POST metody muszą być stosowane). Możesz nacisnąć przycisk do schowka, aby go skopiować do schowka.", - "DELIVERYREPORTURL": "Jest to automatycznie wygenerowany ciąg interfejsu API, którego należy użyć do otrzymania raportu doręczenia wysłanych wiadomości od dostawcy wiadomości SMS (należy użyć metody POST): kliknij przycisk schowka, aby go skopiować" + "DELIVERYREPORTURL": "Jest to automatycznie wygenerowany ciąg interfejsu API, którego należy użyć do otrzymania raportu doręczenia wysłanych wiadomości od dostawcy wiadomości SMS (należy użyć metody POST): kliknij przycisk schowka, aby go skopiować", + "MANDATORYDISPOSITION": "Dyspozycja obowiązkowa", + "MANDATORYDISPOSITIONPAUSEID": "Wstrzymaj, aby użyć, gdy włączona jest obowiązkowa dyspozycja", + "WELCOMEMESSAGE": "To pierwszy komunikat odpowiedzi wysłany na nowe interakcje" }, "PAGE": "Page", "ROWSPERPAGE": "Wierszy na stronie", @@ -201,6 +269,8 @@ "APIKEY": "Klucz API", "BASEURL": "Podstawowy adres URL", "TEAMS_ASSOCIATION": "Stowarzyszenie zespołów", + "MANDATORYDISPOSITION": "Dyspozycja obowiązkowa", + "MANDATORYDISPOSITIONPAUSEID": "Wstrzymaj, aby użyć, gdy włączona jest obowiązkowa dyspozycja", "ACCESSKEYID": "Identyfikator klucza dostępu", "AMAZONLEX": "AmazonLex", "BOTNAME": "Nazwa bota", @@ -210,8 +280,14 @@ "LANGUAGE": "Język", "LEXREGION": "Region", "SECRETACCESSKEY": "Tajny klucz dostępu", + "WELCOMEMESSAGE": "Wiadomość powitalna", "DOWNLOAD_WITHOUT_ATTACHMENT": "Pobierz bez załącznika", "DOWNLOAD_WITH_ATTACHMENT": "Pobierz z załącznikiem", - "LASTMESSAGE": "Ostatnia wiadomość" + "LASTMESSAGE": "Ostatnia wiadomość", + "CLIENTEMAIL": "E-mail klienta", + "DIALOGFLOWV2": "Dialogflow V2", + "EDIT_DIALOGFLOWV2": "Edytuj Dialogflow V2", + "PRIVATEKEY": "Prywatny klucz", + "PROJECTID": "Identyfikator projektu" } } diff --git a/public/app/main/apps/sms/i18n/pt-BR.json b/public/app/main/apps/sms/i18n/pt-BR.json index 860870f..dff2b31 100644 --- a/public/app/main/apps/sms/i18n/pt-BR.json +++ b/public/app/main/apps/sms/i18n/pt-BR.json @@ -56,13 +56,73 @@ "CAPACITY": "Capacidade", "PROXY": "Proxy", "ADVANCED": "Avançado", + "MOTIONPROXY": "Proxy ou Dominio do Motion", "REALTIME": "Tempo Real", "KEY": "Key", + "NAME": "Nome", "SMSQUEUES": "Filas de SMS", "SEARCH_FOR_ANYONE": "Procurar", "STRATEGY": "Estratégia", "ERRORS": { - "AUTHID_REQUIRED": "Campo Obrigatório" + "QUEUETRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "O valor deve ser menor ou igual a", + "QUEUETRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "O valor deve ser maior ou igual a", + "QUEUETRANSFERTIMEOUT_REQUIRED": "Campo Obrigatório", + "AGENTTRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "O valor deve ser menor ou igual a", + "AGENTTRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "O valor deve ser maior ou igual a", + "AGENTTRANSFERTIMEOUT_REQUIRED": "Campo Obrigatório", + "TAG_REQUIRED": "Campo Obrigatório", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "O valor deve ser menor ou igual a", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "O valor deve ser maior ou igual a", + "WAITFORTHEASSIGNEDAGENT_REQUIRED": "Campo Obrigatório", + "AGENT_TIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "O valor deve ser menor ou igual a", + "TIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "O valor deve ser menor ou igual a", + "AGENT_TIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "O valor deve ser maior ou igual a", + "NAME_MUST_VALID_PATTERN": "Formato incorreto", + "COMMAND_REQUIRED": "Campo Obrigatório", + "AUTHID_REQUIRED": "Campo Obrigatório", + "TEXT_MAX_LENGTH": "O valor deve ter um tamanho máximo igual a {{max}}", + "TEXT_REQUIRED": "Campo Obrigatório", + "VALUE_REQUIRED": "Campo Obrigatório", + "SENDERSTRING_MAX_LENGTH": "O valor deve ter um tamanho máximo igual a {{max}}", + "SENDERSTRING_MUST_VALID_PATTERN": "Formato incorreto", + "METHOD_REQUIRED": "Campo Obrigatório", + "MOTIONPROXY_REQUIRED": "Campo Obrigatório", + "MOTIONPROXY_MUST_VALID_URL": "Formato incorreto", + "KEY_MAX_LENGTH": "O valor deve ter um tamanho máximo igual a {{max}}", + "KEY_REQUIRED": "Campo Obrigatório", + "NAME_REQUIRED": "Campo Obrigatório", + "AGENT_TIMEOUT_REQUIRED": "Campo Obrigatório", + "PHONE_REQUIRED": "Campo Obrigatório", + "SID_REQUIRED": "Campo Obrigatório", + "TOKEN_REQUIRED": "Campo Obrigatório", + "USERNAME_REQUIRED": "Campo Obrigatório", + "PASSWORD_REQUIRED": "Campo Obrigatório", + "MOTIONADDRESS_REQUIRED": "Campo Obrigatório", + "MOTIONADDRESS_MUST_VALID_URL": "Formato incorreto", + "ACCEPTURL_MUST_VALID_URL": "Formato incorreto", + "TIMEOUT_REQUIRED": "Campo Obrigatório", + "REJECTURL_MUST_VALID_URL": "Formato incorreto", + "CLOSEURL_MUST_VALID_URL": "Formato incorreto", + "TYPE_REQUIRED": "Campo Obrigatório", + "LIST_REQUIRED": "Campo Obrigatório", + "PRIORITY_REQUIRED": "Campo Obrigatório", + "CONDITION_REQUIRED": "Campo Obrigatório", + "TRUEPRIORITY_REQUIRED": "Campo Obrigatório", + "FALSEPRIORITY_REQUIRED": "Campo Obrigatório", + "AGENT_REQUIRED": "Campo Obrigatório", + "QUEUE_REQUIRED": "Campo Obrigatório", + "DISPOSITION_REQUIRED": "Campo Obrigatório", + "ACCOUNTSID_REQUIRED": "Campo Obrigatório", + "AUTHTOKEN_REQUIRED": "Campo Obrigatório", + "APIKEY_REQUIRED": "Campo Obrigatório", + "BASEURL_REQUIRED": "Campo Obrigatório", + "MANDATORYDISPOSITIONPAUSEID_REQUIRED": "Campo obrigatório", + "ACCESSKEYID_REQUIRED": "O código da chave de acesso é obrigatório", + "BOTNAME_REQUIRED": "O nome do bot é obrigatório", + "SECRETACCESSKEY_REQUIRED": "É necessário segredo da chave de acesso", + "CLIENTEMAIL_REQUIRED": "Campo Obrigatório", + "PRIVATEKEY_REQUIRED": "Campo Obrigatório", + "PROJECTID_REQUIRED": "Campo Obrigatório" }, "AGENT_TIMEOUT": "Tempo limite do agente", "DESCRIPTION": "Descrição", @@ -74,6 +134,7 @@ "CREATED_AT": "Criado em", "SAVE": "Salvar", "SMSACCOUNTS": "Conta de SMS", + "TYPE": "Tipo", "PHONE": "Telefone", "SID": "SID", "TOKEN": "Token", @@ -84,6 +145,7 @@ "ADD_SMSACCOUNT": "Adicionar conta SMS", "EDIT_SMSACCOUNT": "Editar conta SMS", "DELETE_SMSACCOUNT": "Excluir conta SMS", + "LIST": "Lista", "FIDELITY": "Fidelidade", "API": "API", "DISPOSITIONS": "Disposições", @@ -117,8 +179,14 @@ "ALL_TEAMS": "Todas as equipes", "SELECTED_TEAMS": "Equipes Selecionadas", "HELP": { + "MOTIONPROXY": "O campo deve ter o seguinte formato: : // [: ]. Exemplo: https: //X.Y.Z.W", + "NAME": "Somente números, letras e caracteres específicos (._) são suportados", + "LIST": "Lista do Gerenciador de contatos usada para associar contatos", "RECEIVEURL": "Esta é a string da API gerada automaticamente que você precisa usar para receber as mensagens dentro da sua conta do seu provedor de SMS (o método POST deve ser usado): clique no botão da área de transferência para copiá-lo", - "DELIVERYREPORTURL": "Essa é a string da API gerada automaticamente que você precisa usar para receber o relatório de entrega das mensagens enviadas do seu provedor de SMS (o método POST deve ser usado): clique no botão da área de transferência para copiá-lo" + "DELIVERYREPORTURL": "Essa é a string da API gerada automaticamente que você precisa usar para receber o relatório de entrega das mensagens enviadas do seu provedor de SMS (o método POST deve ser usado): clique no botão da área de transferência para copiá-lo", + "MANDATORYDISPOSITION": "Disposição obrigatória", + "MANDATORYDISPOSITIONPAUSEID": "Pausar para usar quando a disposição obrigatória estiver ativada", + "WELCOMEMESSAGE": "Esta é a primeira mensagem de resposta enviada para novas interações" }, "PAGE": "Página", "ROWSPERPAGE": "Linhas por Página", @@ -201,6 +269,8 @@ "APIKEY": "Chave API", "BASEURL": "URL base", "TEAMS_ASSOCIATION": "Associação de equipes", + "MANDATORYDISPOSITION": "Disposição obrigatória", + "MANDATORYDISPOSITIONPAUSEID": "Pausar para usar quando a disposição obrigatória estiver ativada", "ACCESSKEYID": "ID da chave de acesso", "AMAZONLEX": "AmazonLex", "BOTNAME": "Nome do bot", @@ -210,8 +280,14 @@ "LANGUAGE": "Língua", "LEXREGION": "Região", "SECRETACCESSKEY": "Segredo da chave de acesso", + "WELCOMEMESSAGE": "Mensagem de boas-vindas", "DOWNLOAD_WITHOUT_ATTACHMENT": "Download sem anexo", "DOWNLOAD_WITH_ATTACHMENT": "Download com anexo", - "LASTMESSAGE": "Última mensagem" + "LASTMESSAGE": "Última mensagem", + "CLIENTEMAIL": "Email do cliente", + "DIALOGFLOWV2": "Dialogflow V2", + "EDIT_DIALOGFLOWV2": "Editar Dialogflow V2", + "PRIVATEKEY": "Chave privada", + "PROJECTID": "ID do projeto" } } diff --git a/public/app/main/apps/sms/i18n/pt-PT.json b/public/app/main/apps/sms/i18n/pt-PT.json index c2a0be9..88ca84f 100644 --- a/public/app/main/apps/sms/i18n/pt-PT.json +++ b/public/app/main/apps/sms/i18n/pt-PT.json @@ -1,11 +1,70 @@ { "SMS": { "KEY": "Key", + "NAME": "Nome", "SMSQUEUES": "Filas de SMS", "SEARCH_FOR_ANYONE": "Pesquisar todos", "STRATEGY": "Estratégia", "ERRORS": { - "AUTHID_REQUIRED": "Campo Obrigatório" + "KEY_MAX_LENGTH": "A chave deve ter um comprimento máximo igual ao máximo {{}}", + "KEY_REQUIRED": "Chave é necessário", + "NAME_REQUIRED": "O Nome é obrigatório", + "AGENT_TIMEOUT_REQUIRED": "O Tempo Limite do Agente é necessária", + "PHONE_REQUIRED": "O telefone é obrigatório", + "SID_REQUIRED": "A SID é necessária", + "TOKEN_REQUIRED": "O token é necessário", + "USERNAME_REQUIRED": "O nome de usuário é obrigatório", + "PASSWORD_REQUIRED": "A senha é obrigatória", + "MOTIONADDRESS_REQUIRED": "O Movimento de endereço é obrigatório", + "MOTIONADDRESS_MUST_VALID_URL": "A proposta Endereço deve ser escrito em um formato válido", + "ACCEPTURL_MUST_VALID_URL": "A aceitar a URL deve ser escrito em um formato válido", + "TIMEOUT_REQUIRED": "O tempo limite é necessária", + "REJECTURL_MUST_VALID_URL": "A rejeitar a URL deve ser escrito em um formato válido", + "CLOSEURL_MUST_VALID_URL": "A FECHAR A URL deve ser escrito em um formato válido", + "TYPE_REQUIRED": "O tipo é necessário", + "LIST_REQUIRED": "A lista é necessário", + "PRIORITY_REQUIRED": "A prioridade é necessário", + "CONDITION_REQUIRED": "A condição é necessária", + "TRUEPRIORITY_REQUIRED": "É necessária a verdadeira prioridade", + "FALSEPRIORITY_REQUIRED": "O falso é necessária prioridade", + "AGENT_REQUIRED": "O agente é necessário", + "QUEUE_REQUIRED": "A fila de espera é necessário", + "DISPOSITION_REQUIRED": "A disposição é necessário", + "ACCOUNTSID_REQUIRED": "É necessário SID conta", + "AUTHTOKEN_REQUIRED": "É necessário o Token de Autenticação", + "MOTIONPROXY_REQUIRED": "Campo de preenchimento obrigatório", + "MOTIONPROXY_MUST_VALID_URL": "Formato errado", + "TEXT_MAX_LENGTH": "O valor deve ter um tamanho máximo igual a {{max}}", + "TEXT_REQUIRED": "Campo Obrigatório", + "VALUE_REQUIRED": "Campo Obrigatório", + "SENDERSTRING_MAX_LENGTH": "O valor deve ter um tamanho máximo igual a {{max}}", + "SENDERSTRING_MUST_VALID_PATTERN": "Formato incorreto", + "METHOD_REQUIRED": "Campo Obrigatório", + "AUTHID_REQUIRED": "Campo Obrigatório", + "COMMAND_REQUIRED": "Campo Obrigatório", + "AGENT_TIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "O valor deve ser maior ou igual a", + "NAME_MUST_VALID_PATTERN": "Formato incorreto", + "TIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "O valor deve ser menor ou igual a", + "AGENT_TIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "O valor deve ser menor ou igual a", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "O valor deve ser maior ou igual a", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "O valor deve ser menor ou igual a", + "WAITFORTHEASSIGNEDAGENT_REQUIRED": "Campo Obrigatório", + "TAG_REQUIRED": "Campo Obrigatório", + "AGENTTRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "O valor deve ser maior ou igual a", + "AGENTTRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "O valor deve ser menor ou igual a", + "AGENTTRANSFERTIMEOUT_REQUIRED": "Campo Obrigatório", + "QUEUETRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "O valor deve ser maior ou igual a", + "QUEUETRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "O valor deve ser menor ou igual a", + "QUEUETRANSFERTIMEOUT_REQUIRED": "Campo Obrigatório", + "APIKEY_REQUIRED": "Campo Obrigatório", + "BASEURL_REQUIRED": "Campo Obrigatório", + "MANDATORYDISPOSITIONPAUSEID_REQUIRED": "Campo obrigatório", + "ACCESSKEYID_REQUIRED": "O código da chave de acesso é obrigatório", + "BOTNAME_REQUIRED": "O nome do bot é obrigatório", + "SECRETACCESSKEY_REQUIRED": "É necessário segredo da chave de acesso", + "CLIENTEMAIL_REQUIRED": "Campo Obrigatório", + "PRIVATEKEY_REQUIRED": "Campo Obrigatório", + "PROJECTID_REQUIRED": "Campo Obrigatório" }, "AGENT_TIMEOUT": "Tempo Limite do Agente", "DESCRIPTION": "Descrição", @@ -17,6 +76,7 @@ "CREATED_AT": "Criado em", "SAVE": "Salvar", "SMSACCOUNTS": "As contas do SMS", + "TYPE": "Tipo", "PHONE": "Telefone", "SID": "SID", "TOKEN": "Token", @@ -27,6 +87,7 @@ "ADD_SMSACCOUNT": "Adicionar conta SMS", "EDIT_SMSACCOUNT": "Editar conta SMS", "DELETE_SMSACCOUNT": "Excluir conta SMS", + "LIST": "Lista", "FIDELITY": "Fidelidade", "API": "API", "DISPOSITIONS": "Disposições", @@ -60,8 +121,14 @@ "ALL_TEAMS": "Todas as equipas", "SELECTED_TEAMS": "Equipes selecionadas", "HELP": { + "NAME": "Apenas números, letras e caracteres específicos (._) são suportados", + "LIST": "Contact Manager lista usada para associar contatos", "RECEIVEURL": "Este é o auto-gerada string API que você precisará usar para receber as mensagens dentro de sua conta do seu fornecedor de SMS (método POST deve ser usado). Você pode pressionar o botão de transferência para copiar na área de transferência.", - "DELIVERYREPORTURL": "Esta é a string da API gerada automaticamente que você precisa usar para receber o relatório de entrega das mensagens enviadas do seu provedor de SMS (o método POST deve ser usado): clique no botão da área de transferência para copiá-lo" + "MOTIONPROXY": "O campo deve ter o seguinte formato: <> protocolo://[:<> porta]. Exemplo: https://X.Y.Z.W", + "DELIVERYREPORTURL": "Esta é a string da API gerada automaticamente que você precisa usar para receber o relatório de entrega das mensagens enviadas do seu provedor de SMS (o método POST deve ser usado): clique no botão da área de transferência para copiá-lo", + "MANDATORYDISPOSITION": "Disposição obrigatória", + "MANDATORYDISPOSITIONPAUSEID": "Pausar para usar quando a disposição obrigatória estiver ativada", + "WELCOMEMESSAGE": "Esta é a primeira mensagem de resposta enviada para novas interações" }, "PAGE": "Página", "ROWSPERPAGE": "Linhas por página", @@ -112,6 +179,7 @@ "AUTHTOKEN": "Token de Autenticação", "PROXY": "O Proxy", "ADVANCED": "Advanced", + "MOTIONPROXY": "Proxy ou domínio de movimento", "REALTIME": "Realtime", "UNKNOWN": "Desconhecido", "UNREGISTERED": "Unregistered", @@ -201,6 +269,8 @@ "APIKEY": "Chave API", "BASEURL": "URL base", "TEAMS_ASSOCIATION": "Associação de equipes", + "MANDATORYDISPOSITION": "Disposição obrigatória", + "MANDATORYDISPOSITIONPAUSEID": "Pausar para usar quando a disposição obrigatória estiver ativada", "ACCESSKEYID": "ID da chave de acesso", "AMAZONLEX": "AmazonLex", "BOTNAME": "Nome do bot", @@ -210,8 +280,14 @@ "LANGUAGE": "Língua", "LEXREGION": "Região", "SECRETACCESSKEY": "Segredo da chave de acesso", + "WELCOMEMESSAGE": "Mensagem de boas-vindas", "DOWNLOAD_WITHOUT_ATTACHMENT": "Download sem anexo", "DOWNLOAD_WITH_ATTACHMENT": "Download com anexo", - "LASTMESSAGE": "Última mensagem" + "LASTMESSAGE": "Última mensagem", + "CLIENTEMAIL": "Email do cliente", + "DIALOGFLOWV2": "Dialogflow V2", + "EDIT_DIALOGFLOWV2": "Editar Dialogflow V2", + "PRIVATEKEY": "Chave privada", + "PROJECTID": "ID do projeto" } } diff --git a/public/app/main/apps/sms/i18n/ru.json b/public/app/main/apps/sms/i18n/ru.json index d3af19a..f22580e 100644 --- a/public/app/main/apps/sms/i18n/ru.json +++ b/public/app/main/apps/sms/i18n/ru.json @@ -1,11 +1,70 @@ { "SMS": { "KEY": "Ключ", + "NAME": "Имя", "SMSQUEUES": "Очереди сообщений SMS", "SEARCH_FOR_ANYONE": "Для поиска любого", "STRATEGY": "Стратегия", "ERRORS": { - "AUTHID_REQUIRED": "Обязательное поле" + "KEY_MAX_LENGTH": "Ключ должен иметь максимальную длину равную {{max}}", + "KEY_REQUIRED": "Ключ", + "NAME_REQUIRED": "Это имя требуется", + "AGENT_TIMEOUT_REQUIRED": "Оператор - тайм-аут требуется", + "PHONE_REQUIRED": "Номер телефона не требуется", + "SID_REQUIRED": "Значение SID не требуется", + "TOKEN_REQUIRED": "Маркер не требуется", + "USERNAME_REQUIRED": "Имя пользователя не требуется", + "PASSWORD_REQUIRED": "Пароль не требуется", + "MOTIONADDRESS_REQUIRED": "Движение адрес не требуется", + "MOTIONADDRESS_MUST_VALID_URL": "Движение адрес должен быть записан в действительный формат", + "ACCEPTURL_MUST_VALID_URL": "Принять URL должен быть записан в действительный формат", + "TIMEOUT_REQUIRED": "Тайм-аут не требуется", + "REJECTURL_MUST_VALID_URL": "Отклонить URL должен быть записан в действительный формат", + "CLOSEURL_MUST_VALID_URL": "Закрыть адрес URL должен быть записан в действительный формат", + "TYPE_REQUIRED": "Типа не требуется", + "LIST_REQUIRED": "Список не требуется", + "PRIORITY_REQUIRED": "Приоритет не требуется", + "CONDITION_REQUIRED": "Это состояние требует", + "TRUEPRIORITY_REQUIRED": "Истинный приоритет не требуется", + "FALSEPRIORITY_REQUIRED": "Ложный Приоритет не требуется", + "AGENT_REQUIRED": "Агент обязан", + "QUEUE_REQUIRED": "Очереди не требуется", + "DISPOSITION_REQUIRED": "Распоряжения не требуется", + "ACCOUNTSID_REQUIRED": "SID учетной записи не требуется", + "AUTHTOKEN_REQUIRED": "Маркер аутентификации не требуется", + "MOTIONPROXY_REQUIRED": "Обязательное поле", + "MOTIONPROXY_MUST_VALID_URL": "Неверный формат", + "TEXT_MAX_LENGTH": "Значение должно иметь максимальную длину, равную {{max}}", + "TEXT_REQUIRED": "Обязательное поле", + "VALUE_REQUIRED": "Обязательное поле", + "SENDERSTRING_MAX_LENGTH": "Значение должно иметь максимальную длину, равную {{max}}", + "SENDERSTRING_MUST_VALID_PATTERN": "Неверный формат", + "METHOD_REQUIRED": "Обязательное поле", + "AUTHID_REQUIRED": "Обязательное поле", + "COMMAND_REQUIRED": "Обязательное поле", + "AGENT_TIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Значение должно быть больше или равно", + "NAME_MUST_VALID_PATTERN": "Неверный формат", + "TIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Значение должно быть меньше или равно", + "AGENT_TIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Значение должно быть меньше или равно", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Значение должно быть больше или равно", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Значение должно быть меньше или равно", + "WAITFORTHEASSIGNEDAGENT_REQUIRED": "Обязательное поле", + "TAG_REQUIRED": "Обязательное поле", + "AGENTTRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Значение должно быть больше или равно", + "AGENTTRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Значение должно быть меньше или равно", + "AGENTTRANSFERTIMEOUT_REQUIRED": "Обязательное поле", + "QUEUETRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Значение должно быть больше или равно", + "QUEUETRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Значение должно быть меньше или равно", + "QUEUETRANSFERTIMEOUT_REQUIRED": "Обязательное поле", + "APIKEY_REQUIRED": "Обязательное поле", + "BASEURL_REQUIRED": "Обязательное поле", + "MANDATORYDISPOSITIONPAUSEID_REQUIRED": "Обязательное поле", + "ACCESSKEYID_REQUIRED": "Требуется идентификатор ключа доступа", + "BOTNAME_REQUIRED": "Имя бота обязательно", + "SECRETACCESSKEY_REQUIRED": "Требуется секретный ключ доступа", + "CLIENTEMAIL_REQUIRED": "Обязательное поле", + "PRIVATEKEY_REQUIRED": "Обязательное поле", + "PROJECTID_REQUIRED": "Обязательное поле" }, "AGENT_TIMEOUT": "Время ожидания оператора", "DESCRIPTION": "Описание", @@ -17,6 +76,7 @@ "CREATED_AT": "Созданные в", "SAVE": "Сохранить", "SMSACCOUNTS": "SMS счетов", + "TYPE": "Тип", "PHONE": "Номер телефона", "SID": "SID", "TOKEN": "Маркер", @@ -27,6 +87,7 @@ "ADD_SMSACCOUNT": "Добавить учетную запись сервера SMS", "EDIT_SMSACCOUNT": "Редактировать учетную запись сервера SMS", "DELETE_SMSACCOUNT": "Удалить учетную запись сервера SMS", + "LIST": "Список", "FIDELITY": "Четкость", "API": "API", "DISPOSITIONS": "Распоряжения", @@ -60,8 +121,14 @@ "ALL_TEAMS": "Все группы", "SELECTED_TEAMS": "Выбранные группы", "HELP": { + "NAME": "Только цифры, буквы и специальные символы (_) поддерживаются", + "LIST": "Contact Manager список используется для связи контакты", "RECEIVEURL": "Это автоматически сгенерированное API строки необходимо использовать для получения сообщений внутри вашего счета с SMS-услуг (метод POST должны использоваться). Вы можете нажать кнопку буфер обмена для копирования его в буфер обмена.", - "DELIVERYREPORTURL": "Это автоматически созданная строка API, которую вы должны использовать для получения отчета о доставке отправленных сообщений от вашего провайдера SMS (должен использоваться метод POST): нажмите кнопку буфера обмена, чтобы скопировать его" + "MOTIONPROXY": "Поле должно иметь следующий формат: :// []. Пример: https://X.Y.Z.W", + "DELIVERYREPORTURL": "Это автоматически созданная строка API, которую вы должны использовать для получения отчета о доставке отправленных сообщений от вашего провайдера SMS (должен использоваться метод POST): нажмите кнопку буфера обмена, чтобы скопировать его", + "MANDATORYDISPOSITION": "Обязательное распоряжение", + "MANDATORYDISPOSITIONPAUSEID": "Пауза для использования, когда включена обязательная утилизация", + "WELCOMEMESSAGE": "Это первое ответное сообщение, отправленное на новые взаимодействия" }, "PAGE": "Страница", "ROWSPERPAGE": "Строк на странице", @@ -112,6 +179,7 @@ "AUTHTOKEN": "Маркер аутентификации", "PROXY": "Прокси-сервер", "ADVANCED": "Расширенный", + "MOTIONPROXY": "Прокси-сервер или Движение доменных", "REALTIME": "В режиме реального времени", "UNKNOWN": "Неизвестно", "UNREGISTERED": "Незарегистрированный", @@ -201,6 +269,8 @@ "APIKEY": "ApiKey", "BASEURL": "Базовый URL", "TEAMS_ASSOCIATION": "Ассоциация команд", + "MANDATORYDISPOSITION": "Обязательное распоряжение", + "MANDATORYDISPOSITIONPAUSEID": "Пауза для использования, когда включена обязательная утилизация", "ACCESSKEYID": "Идентификатор ключа доступа", "AMAZONLEX": "AmazonLex", "BOTNAME": "Имя бота", @@ -210,8 +280,14 @@ "LANGUAGE": "язык", "LEXREGION": "Область", "SECRETACCESSKEY": "Секрет ключа доступа", + "WELCOMEMESSAGE": "Приветствие", "DOWNLOAD_WITHOUT_ATTACHMENT": "Скачать без вложения", "DOWNLOAD_WITH_ATTACHMENT": "Скачать с приложением", - "LASTMESSAGE": "Последнее сообщение" + "LASTMESSAGE": "Последнее сообщение", + "CLIENTEMAIL": "Электронная почта клиента", + "DIALOGFLOWV2": "Dialogflow V2", + "EDIT_DIALOGFLOWV2": "Редактировать Dialogflow V2", + "PRIVATEKEY": "Закрытый ключ", + "PROJECTID": "ID проекта" } } diff --git a/public/app/main/apps/sms/i18n/sv.json b/public/app/main/apps/sms/i18n/sv.json index 6267233..8bdad6c 100644 --- a/public/app/main/apps/sms/i18n/sv.json +++ b/public/app/main/apps/sms/i18n/sv.json @@ -1,11 +1,70 @@ { "SMS": { "KEY": "Nyckel", + "NAME": "Namn", "SMSQUEUES": "SMS-köer", "SEARCH_FOR_ANYONE": "Sökning för någon", "STRATEGY": "Strategi", "ERRORS": { - "AUTHID_REQUIRED": "Obligatoriskt fält" + "KEY_MAX_LENGTH": "Nyckeln måste ha en maximal längd lika med {{max}}", + "KEY_REQUIRED": "Nyckel krävs", + "NAME_REQUIRED": "Namnet är obligatoriskt", + "AGENT_TIMEOUT_REQUIRED": "Agenten Timeout krävs", + "PHONE_REQUIRED": "Telefonen är obligatoriskt", + "SID_REQUIRED": "Ffa är obligatoriskt", + "TOKEN_REQUIRED": "Token är obligatoriskt", + "USERNAME_REQUIRED": "Användarnamn krävs", + "PASSWORD_REQUIRED": "Lösenord krävs", + "MOTIONADDRESS_REQUIRED": "Motion adress krävs", + "MOTIONADDRESS_MUST_VALID_URL": "Rörelsen måste vara skrivna på ett giltigt format", + "ACCEPTURL_MUST_VALID_URL": "Acceptera URL måste vara skrivna på ett giltigt format", + "TIMEOUT_REQUIRED": "Väntetiden är obligatoriskt", + "REJECTURL_MUST_VALID_URL": "Avvisa URL måste vara skrivna på ett giltigt format", + "CLOSEURL_MUST_VALID_URL": "Stäng URL måste vara skrivna på ett giltigt format", + "TYPE_REQUIRED": "Den typen krävs", + "LIST_REQUIRED": "Listan krävs", + "PRIORITY_REQUIRED": "Den prioritet som krävs", + "CONDITION_REQUIRED": "Skicket är obligatoriskt", + "TRUEPRIORITY_REQUIRED": "Den verkliga prioriterade krävs", + "FALSEPRIORITY_REQUIRED": "Den falska prioritering krävs", + "AGENT_REQUIRED": "Agenten är obligatoriskt", + "QUEUE_REQUIRED": "Kön är obligatoriskt", + "DISPOSITION_REQUIRED": "Dispositionen är obligatoriskt", + "ACCOUNTSID_REQUIRED": "Hänsyn SID krävs", + "AUTHTOKEN_REQUIRED": "Auth Token krävs", + "MOTIONPROXY_REQUIRED": "Obligatoriskt fält", + "MOTIONPROXY_MUST_VALID_URL": "Fel format", + "TEXT_MAX_LENGTH": "Värdet måste ha en maximal längd som är lika med {{max}}", + "TEXT_REQUIRED": "Obligatoriskt fält", + "VALUE_REQUIRED": "Obligatoriskt fält", + "SENDERSTRING_MAX_LENGTH": "Värdet måste ha en maximal längd som är lika med {{max}}", + "SENDERSTRING_MUST_VALID_PATTERN": "Fel format", + "METHOD_REQUIRED": "Obligatoriskt fält", + "AUTHID_REQUIRED": "Obligatoriskt fält", + "COMMAND_REQUIRED": "Obligatoriskt fält", + "AGENT_TIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Värdet måste vara större än eller lika med", + "NAME_MUST_VALID_PATTERN": "Fel format", + "TIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Värdet måste vara mindre än eller lika med", + "AGENT_TIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Värdet måste vara mindre än eller lika med", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Värdet måste vara större än eller lika med", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Värdet måste vara mindre än eller lika med", + "WAITFORTHEASSIGNEDAGENT_REQUIRED": "Obligatoriskt fält", + "TAG_REQUIRED": "Obligatoriskt fält", + "AGENTTRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Värdet måste vara större än eller lika med", + "AGENTTRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Värdet måste vara mindre än eller lika med", + "AGENTTRANSFERTIMEOUT_REQUIRED": "Obligatoriskt fält", + "QUEUETRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Värdet måste vara större än eller lika med", + "QUEUETRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Värdet måste vara mindre än eller lika med", + "QUEUETRANSFERTIMEOUT_REQUIRED": "Obligatoriskt fält", + "APIKEY_REQUIRED": "Obligatoriskt fält", + "BASEURL_REQUIRED": "Obligatoriskt fält", + "MANDATORYDISPOSITIONPAUSEID_REQUIRED": "Obligatoriskt fält", + "ACCESSKEYID_REQUIRED": "Åtkomstnyckel-ID krävs", + "BOTNAME_REQUIRED": "Botnamn krävs", + "SECRETACCESSKEY_REQUIRED": "Åtkomstnyckelhemlighet krävs", + "CLIENTEMAIL_REQUIRED": "Obligatoriskt fält", + "PRIVATEKEY_REQUIRED": "Obligatoriskt fält", + "PROJECTID_REQUIRED": "Obligatoriskt fält" }, "AGENT_TIMEOUT": "Tidsgräns för agent", "DESCRIPTION": "Beskrivning", @@ -17,6 +76,7 @@ "CREATED_AT": "Skapad", "SAVE": "Spara", "SMSACCOUNTS": "SMS-konton", + "TYPE": "Typ", "PHONE": "Telefon", "SID": "SID", "TOKEN": "Token", @@ -27,6 +87,7 @@ "ADD_SMSACCOUNT": "Lägg till SMS-konto", "EDIT_SMSACCOUNT": "Redigera SMS-konto", "DELETE_SMSACCOUNT": "Ta bort SMS-konto", + "LIST": "Lista", "FIDELITY": "Fidelity", "API": "API", "DISPOSITIONS": "Dispositioner", @@ -60,8 +121,14 @@ "ALL_TEAMS": "Alla grupper", "SELECTED_TEAMS": "Valda grupper", "HELP": { + "NAME": "Endast siffror, bokstäver och särskilda tecken (_) stöds", + "LIST": "Contact Manager listan används för att knyta kontakter", "RECEIVEURL": "Det är auto-genererade API snöre som du behöver använda för att ta emot meddelandena inuti ditt konto från din SMS-leverantör (POST metod måste användas). Du kan trycka på clipboarden för att kopiera det i urklipp.", - "DELIVERYREPORTURL": "Det här är den automatiskt genererade API-strängen som du behöver använda för att ta emot leveransrapporten för skickade meddelanden från din SMS-leverantör (POST-metoden måste användas): klicka på urklippsknappen för att kopiera den" + "MOTIONPROXY": "Fältet måste ha följande format: ://[:]. Exempel: https://X.Y.Z.W", + "DELIVERYREPORTURL": "Det här är den automatiskt genererade API-strängen som du behöver använda för att ta emot leveransrapporten för skickade meddelanden från din SMS-leverantör (POST-metoden måste användas): klicka på urklippsknappen för att kopiera den", + "MANDATORYDISPOSITION": "Obligatorisk disposition", + "MANDATORYDISPOSITIONPAUSEID": "Pausa för användning när obligatorisk disposition är aktiverad", + "WELCOMEMESSAGE": "Detta är det första svarmeddelandet som skickas till nya interaktioner" }, "PAGE": "Sidan", "ROWSPERPAGE": "Rader per sida", @@ -112,6 +179,7 @@ "AUTHTOKEN": "Auth token", "PROXY": "Proxy", "ADVANCED": "Avancerade", + "MOTIONPROXY": "Proxy eller Motion domän", "REALTIME": "Realtid", "UNKNOWN": "Okänd", "UNREGISTERED": "Oregistrerade", @@ -201,6 +269,8 @@ "APIKEY": "apikey", "BASEURL": "Basadress", "TEAMS_ASSOCIATION": "Team Association", + "MANDATORYDISPOSITION": "Obligatorisk disposition", + "MANDATORYDISPOSITIONPAUSEID": "Pausa för användning när obligatorisk disposition är aktiverad", "ACCESSKEYID": "Åtkomstnyckel-ID", "AMAZONLEX": "AmazonLex", "BOTNAME": "Bot namn", @@ -210,8 +280,14 @@ "LANGUAGE": "Språk", "LEXREGION": "Område", "SECRETACCESSKEY": "Åtkomstnyckelhemlighet", + "WELCOMEMESSAGE": "Välkomstmeddelande", "DOWNLOAD_WITHOUT_ATTACHMENT": "Ladda ner utan bilaga", "DOWNLOAD_WITH_ATTACHMENT": "Ladda ner med bilaga", - "LASTMESSAGE": "Senaste meddelandet" + "LASTMESSAGE": "Senaste meddelandet", + "CLIENTEMAIL": "Kundens e-post", + "DIALOGFLOWV2": "Dialogflow V2", + "EDIT_DIALOGFLOWV2": "Redigera Dialogflow V2", + "PRIVATEKEY": "Privat nyckel", + "PROJECTID": "Projekt-ID" } } diff --git a/public/app/main/apps/sms/i18n/tr.json b/public/app/main/apps/sms/i18n/tr.json index 6d94f7e..3ad0604 100644 --- a/public/app/main/apps/sms/i18n/tr.json +++ b/public/app/main/apps/sms/i18n/tr.json @@ -1,11 +1,70 @@ { "SMS": { "KEY": "Anahtar", + "NAME": "Adı", "SMSQUEUES": "SMS Kuyrukları", "SEARCH_FOR_ANYONE": "Arama herkesin", "STRATEGY": "Strateji", "ERRORS": { - "AUTHID_REQUIRED": "Zorunlu alan" + "KEY_MAX_LENGTH": "Anahtar maksimum uzunluğu eşit {{maks.}}", + "KEY_REQUIRED": "Anahtar gerekiyor.", + "NAME_REQUIRED": "Adı gerekiyor", + "AGENT_TIMEOUT_REQUIRED": "Ajan zaman gerekiyor.", + "PHONE_REQUIRED": "Telefon gerekiyor.", + "SID_REQUIRED": "SID gerekiyor", + "TOKEN_REQUIRED": "Belirteç gerekiyor.", + "USERNAME_REQUIRED": "Kullanıcı Adı gerekiyor", + "PASSWORD_REQUIRED": "Parola gerekli", + "MOTIONADDRESS_REQUIRED": "Hareket adresi gerekli", + "MOTIONADDRESS_MUST_VALID_URL": "Hareket adres yazılmış olması gerekir. geçerli bir format", + "ACCEPTURL_MUST_VALID_URL": "Kabul URL yazılmış olması gerekir. geçerli bir format", + "TIMEOUT_REQUIRED": "Zaman Aşımı gerekiyor.", + "REJECTURL_MUST_VALID_URL": "Reddetme URL yazılmış olması gerekir. geçerli bir format", + "CLOSEURL_MUST_VALID_URL": "Kapat URL yazılmış olması gerekir. geçerli bir format", + "TYPE_REQUIRED": "Tip gerekli", + "LIST_REQUIRED": "Liste, gerekli", + "PRIORITY_REQUIRED": "Öncelikli olarak gerekli", + "CONDITION_REQUIRED": "Bu durumda gerekli", + "TRUEPRIORITY_REQUIRED": "Gerçek Öncelik gerekli", + "FALSEPRIORITY_REQUIRED": "Yanlış Öncelik gerekli", + "AGENT_REQUIRED": "Ajan gerekli", + "QUEUE_REQUIRED": "Kuyruk gerekli", + "DISPOSITION_REQUIRED": "Eğilim gerekli", + "ACCOUNTSID_REQUIRED": "Hesap SID gerekiyor", + "AUTHTOKEN_REQUIRED": "Auth Token gerekiyor.", + "MOTIONPROXY_REQUIRED": "Zorunlu Alan", + "MOTIONPROXY_MUST_VALID_URL": "Yanlış format", + "TEXT_MAX_LENGTH": "Değer, {{max}} değerine eşit bir maksimum uzunluğa sahip olmalıdır.", + "TEXT_REQUIRED": "Zorunlu alan", + "VALUE_REQUIRED": "Zorunlu alan", + "SENDERSTRING_MAX_LENGTH": "Değer, {{max}} değerine eşit bir maksimum uzunluğa sahip olmalıdır.", + "SENDERSTRING_MUST_VALID_PATTERN": "Yanlış format", + "METHOD_REQUIRED": "Zorunlu alan", + "AUTHID_REQUIRED": "Zorunlu alan", + "COMMAND_REQUIRED": "Zorunlu alan", + "AGENT_TIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Değer, büyük veya eşit olmalıdır", + "NAME_MUST_VALID_PATTERN": "Yanlış format", + "TIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Değer, daha küçük veya eşit olmalıdır", + "AGENT_TIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Değer, daha küçük veya eşit olmalıdır", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Değer, büyük veya eşit olmalıdır", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Değer, daha küçük veya eşit olmalıdır", + "WAITFORTHEASSIGNEDAGENT_REQUIRED": "Zorunlu alan", + "TAG_REQUIRED": "Zorunlu alan", + "AGENTTRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Değer, büyük veya eşit olmalıdır", + "AGENTTRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Değer, daha küçük veya eşit olmalıdır", + "AGENTTRANSFERTIMEOUT_REQUIRED": "Zorunlu alan", + "QUEUETRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Değer, büyük veya eşit olmalıdır", + "QUEUETRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Değer, daha küçük veya eşit olmalıdır", + "QUEUETRANSFERTIMEOUT_REQUIRED": "Zorunlu alan", + "APIKEY_REQUIRED": "Zorunlu alan", + "BASEURL_REQUIRED": "Zorunlu alan", + "MANDATORYDISPOSITIONPAUSEID_REQUIRED": "Zorunlu alan", + "ACCESSKEYID_REQUIRED": "Erişim anahtarı kimliği gerekli", + "BOTNAME_REQUIRED": "Bot adı gerekli", + "SECRETACCESSKEY_REQUIRED": "Erişim anahtarı sırrı gerekli", + "CLIENTEMAIL_REQUIRED": "Zorunlu alan", + "PRIVATEKEY_REQUIRED": "Zorunlu alan", + "PROJECTID_REQUIRED": "Zorunlu alan" }, "AGENT_TIMEOUT": "Ajan Zaman Aşımı", "DESCRIPTION": "Açıklama", @@ -17,6 +76,7 @@ "CREATED_AT": "Oluşturulmuş", "SAVE": "Kaydet", "SMSACCOUNTS": "SMS Hesapları", + "TYPE": "Tipi", "PHONE": "Telefon", "SID": "SID", "TOKEN": "Işaretleyici", @@ -27,6 +87,7 @@ "ADD_SMSACCOUNT": "Add SMS Hesabı", "EDIT_SMSACCOUNT": "Edit SMS Hesabı", "DELETE_SMSACCOUNT": "SMS Hesabı", + "LIST": "Listesi", "FIDELITY": "Doğruluğu", "API": "API", "DISPOSITIONS": "Işlenir", @@ -60,8 +121,14 @@ "ALL_TEAMS": "Tüm takımlar", "SELECTED_TEAMS": "Seçilen Ekipleri", "HELP": { + "NAME": "Sadece sayılar, harfler ve özel karakterler (._) desteklenir.", + "LIST": "Kişi Yöneticisi listesi kullanılan ortak kişiler", "RECEIVEURL": "Bu otomatik oluşturulan API string için, mesajları, hesabı SMS sağlayıcı (POST metodu kullanılmalıdır.). , Pano için kopyalama, panoya kopyalar.", - "DELIVERYREPORTURL": "Bu, SMS sağlayıcınızdan gönderilen iletilerin teslim raporunu almak için kullanmanız gereken otomatik olarak oluşturulan API dizesidir (POST yöntemi kullanılmalıdır): kopyalamak için panoya tıklayın" + "MOTIONPROXY": "Alan için aşağıdaki formatı: [:]. Örneğin: https://X.Y.Z.W", + "DELIVERYREPORTURL": "Bu, SMS sağlayıcınızdan gönderilen iletilerin teslim raporunu almak için kullanmanız gereken otomatik olarak oluşturulan API dizesidir (POST yöntemi kullanılmalıdır): kopyalamak için panoya tıklayın", + "MANDATORYDISPOSITION": "Zorunlu düzenleme", + "MANDATORYDISPOSITIONPAUSEID": "Zorunlu bırakma etkin olduğunda kullanmak için duraklat", + "WELCOMEMESSAGE": "Bu, yeni etkileşimlere gönderilen ilk yanıt mesajıdır" }, "PAGE": "Sayfa", "ROWSPERPAGE": "Sayfadaki satırları", @@ -112,6 +179,7 @@ "AUTHTOKEN": "Auth Token", "PROXY": "Proxy", "ADVANCED": "Gelişmiş", + "MOTIONPROXY": "Proxy veya Hareket Alanı", "REALTIME": "Gerçek Zamanlı", "UNKNOWN": "Bilinmeyen", "UNREGISTERED": "Kayıtsız", @@ -201,6 +269,8 @@ "APIKEY": "ApiKey", "BASEURL": "Temel URL", "TEAMS_ASSOCIATION": "Takımlar Birliği", + "MANDATORYDISPOSITION": "Zorunlu düzenleme", + "MANDATORYDISPOSITIONPAUSEID": "Zorunlu bırakma etkin olduğunda kullanmak için duraklat", "ACCESSKEYID": "Erişim anahtarı kimliği", "AMAZONLEX": "AmazonLex", "BOTNAME": "Bot adı", @@ -210,8 +280,14 @@ "LANGUAGE": "Dil", "LEXREGION": "bölge", "SECRETACCESSKEY": "Erişim anahtarı sırrı", + "WELCOMEMESSAGE": "Karşılama mesajı", "DOWNLOAD_WITHOUT_ATTACHMENT": "Ek olmadan indir", "DOWNLOAD_WITH_ATTACHMENT": "Ekli olarak indir", - "LASTMESSAGE": "Son Mesaj" + "LASTMESSAGE": "Son Mesaj", + "CLIENTEMAIL": "Müşteri E-postası", + "DIALOGFLOWV2": "Dialogflow V2", + "EDIT_DIALOGFLOWV2": "Dialogflow V2'yi düzenle", + "PRIVATEKEY": "Özel anahtar", + "PROJECTID": "Proje kimliği" } } diff --git a/public/app/main/apps/sms/i18n/zh-CN.json b/public/app/main/apps/sms/i18n/zh-CN.json index 4f9eb94..dc886a4 100644 --- a/public/app/main/apps/sms/i18n/zh-CN.json +++ b/public/app/main/apps/sms/i18n/zh-CN.json @@ -1,11 +1,70 @@ { "SMS": { "KEY": "密钥", + "NAME": "名称", "SMSQUEUES": "短信队列。", "SEARCH_FOR_ANYONE": "搜索任何人", "STRATEGY": "战略", "ERRORS": { - "AUTHID_REQUIRED": "必填项" + "KEY_MAX_LENGTH": "密钥必须有一个最大长度等于最大值{{}}", + "KEY_REQUIRED": "密钥是必需的", + "NAME_REQUIRED": "该名称是必需的", + "AGENT_TIMEOUT_REQUIRED": "代理超时是必需的", + "PHONE_REQUIRED": "手机是必需的", + "SID_REQUIRED": "SID 是必需的", + "TOKEN_REQUIRED": "令牌是必需的", + "USERNAME_REQUIRED": "用户名是必需的", + "PASSWORD_REQUIRED": "密码是必需的", + "MOTIONADDRESS_REQUIRED": "该议案的地址是必填项", + "MOTIONADDRESS_MUST_VALID_URL": "该议案的地址必须是书面的格式无效", + "ACCEPTURL_MUST_VALID_URL": "接受 URL 必须是书面的格式无效", + "TIMEOUT_REQUIRED": "超时是必需的", + "REJECTURL_MUST_VALID_URL": "“拒绝” 的 URL 必须是书面的格式无效", + "CLOSEURL_MUST_VALID_URL": "关闭 URL 必须是书面的格式无效", + "TYPE_REQUIRED": "一类是必需的", + "LIST_REQUIRED": "该列表是必需的", + "PRIORITY_REQUIRED": "优先级是必需的", + "CONDITION_REQUIRED": "但条件是必需的", + "TRUEPRIORITY_REQUIRED": "真正的优先级是必需的", + "FALSEPRIORITY_REQUIRED": "虚假的优先级是必需的", + "AGENT_REQUIRED": "业务代表是必需的", + "QUEUE_REQUIRED": "该队列是必需的", + "DISPOSITION_REQUIRED": "性情是必需的", + "ACCOUNTSID_REQUIRED": "帐户的 SID 是必需的", + "AUTHTOKEN_REQUIRED": "验证令牌是必需的", + "MOTIONPROXY_REQUIRED": "必填字段", + "MOTIONPROXY_MUST_VALID_URL": "错误的格式。", + "TEXT_MAX_LENGTH": "该值的最大长度必须等于{{max}}", + "TEXT_REQUIRED": "必填项", + "VALUE_REQUIRED": "必填项", + "SENDERSTRING_MAX_LENGTH": "该值的最大长度必须等于{{max}}", + "SENDERSTRING_MUST_VALID_PATTERN": "错误的格式", + "METHOD_REQUIRED": "必填项", + "AUTHID_REQUIRED": "必填项", + "COMMAND_REQUIRED": "必填项", + "AGENT_TIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "该值必须大于或等于", + "NAME_MUST_VALID_PATTERN": "错误的格式", + "TIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "该值必须小于或等于", + "AGENT_TIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "该值必须小于或等于", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "该值必须大于或等于", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "该值必须小于或等于", + "WAITFORTHEASSIGNEDAGENT_REQUIRED": "必填项", + "TAG_REQUIRED": "必填项", + "AGENTTRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "该值必须大于或等于", + "AGENTTRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "该值必须小于或等于", + "AGENTTRANSFERTIMEOUT_REQUIRED": "必填项", + "QUEUETRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "该值必须大于或等于", + "QUEUETRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "该值必须小于或等于", + "QUEUETRANSFERTIMEOUT_REQUIRED": "必填项", + "APIKEY_REQUIRED": "必填项", + "BASEURL_REQUIRED": "必填项", + "MANDATORYDISPOSITIONPAUSEID_REQUIRED": "必填项", + "ACCESSKEYID_REQUIRED": "必须输入访问密钥ID", + "BOTNAME_REQUIRED": "机器人名称为必填项", + "SECRETACCESSKEY_REQUIRED": "需要访问密钥机密", + "CLIENTEMAIL_REQUIRED": "必填项", + "PRIVATEKEY_REQUIRED": "必填项", + "PROJECTID_REQUIRED": "必填项" }, "AGENT_TIMEOUT": "代理超时", "DESCRIPTION": "描述", @@ -17,6 +76,7 @@ "CREATED_AT": "创建在", "SAVE": "保存", "SMSACCOUNTS": "SMS 帐户。", + "TYPE": "类型", "PHONE": "电话", "SID": "SID。", "TOKEN": "令牌", @@ -27,6 +87,7 @@ "ADD_SMSACCOUNT": "添加 SMS 帐户", "EDIT_SMSACCOUNT": "编辑短信帐户", "DELETE_SMSACCOUNT": "删除 SMS 帐户", + "LIST": "列表", "FIDELITY": "保真度", "API": "API", "DISPOSITIONS": "资产处置", @@ -60,8 +121,14 @@ "ALL_TEAMS": "所有的团队", "SELECTED_TEAMS": "选定的组", "HELP": { + "NAME": "只有数字、字母和特殊字符(_)的支持", + "LIST": "联系人管理器用来关联的联系人列表。", "RECEIVEURL": "这是一个自动生成的 API 的字符串,你需要使用接收的邮件进入您的帐户,您的短信提供商(开机自检的方法必须使用)。 您可以将剪贴板上的按键,将其复制到您的剪贴板中。", - "DELIVERYREPORTURL": "这是自动生成的API字符串,您需要使用它来接收SMS提供商发送的邮件的递送报告(必须使用POST方法):单击剪贴板按钮以将其复制" + "MOTIONPROXY": "在字段中必须具有以下格式:<协议>: http:// < IP 地址>[:
    / / < IP 地址 > [ 通訊協定 : : < > 口 ] 。 例如 : https://X.Y.Z.W", + "DELIVERYREPORTURL": "這是自動生成的API字符串,您需要使用它來接收SMS提供程序發送的郵件的遞送報告(必須使用POST方法):單擊剪貼板按鈕以將其複制", + "MANDATORYDISPOSITION": "強制性處分", + "MANDATORYDISPOSITIONPAUSEID": "啟用強製配置時暫停使用", + "WELCOMEMESSAGE": "這是發送給新交互的第一個響應消息" }, "PAGE": "頁面", "ROWSPERPAGE": "每頁行數", @@ -112,6 +179,7 @@ "AUTHTOKEN": "驗證權杖", "PROXY": "代理伺服器", "ADVANCED": "高級", + "MOTIONPROXY": "代理伺服器或運動的網域", "REALTIME": "即時", "UNKNOWN": "未知", "UNREGISTERED": "未註冊", @@ -201,6 +269,8 @@ "APIKEY": "ApiKey", "BASEURL": "基本URL", "TEAMS_ASSOCIATION": "團隊協會", + "MANDATORYDISPOSITION": "強制性處分", + "MANDATORYDISPOSITIONPAUSEID": "啟用強製配置時暫停使用", "ACCESSKEYID": "訪問密鑰ID", "AMAZONLEX": "亞馬遜Lex", "BOTNAME": "機器人名稱", @@ -210,8 +280,14 @@ "LANGUAGE": "語言", "LEXREGION": "區域", "SECRETACCESSKEY": "訪問密鑰機密", + "WELCOMEMESSAGE": "歡迎留言", "DOWNLOAD_WITHOUT_ATTACHMENT": "不帶附件下載", "DOWNLOAD_WITH_ATTACHMENT": "附件下載", - "LASTMESSAGE": "最後留言" + "LASTMESSAGE": "最後留言", + "CLIENTEMAIL": "客戶電郵", + "DIALOGFLOWV2": "Dialogflow V2", + "EDIT_DIALOGFLOWV2": "編輯Dialogflow V2", + "PRIVATEKEY": "私鑰", + "PROJECTID": "專案編號" } } diff --git a/public/app/main/apps/staff/i18n/he.json b/public/app/main/apps/staff/i18n/he.json index a5994ff..1b77ebd 100644 --- a/public/app/main/apps/staff/i18n/he.json +++ b/public/app/main/apps/staff/i18n/he.json @@ -5,7 +5,7 @@ "OLD_PASSWORD": "סיסמה ישנה", "ENABLEJAWSINTEGRATION": "אפשר אינטגרציה של Jaws", "ALIAS": "כינוי", - "NO_PASSWORD_CHANGE": "ללא שינוי סיסמה", + "NO_PASSWORD_CHANGE": "סיסמה לא השתנתה", "SECURITY_SUITE": "Security Suite", "LAST_PASSWORD_RESET_AT": "איפוס סיסמה אחרון ב-", "SIP_WEBRTC": "SIP", @@ -13,36 +13,40 @@ "WEBRTC": "WebRTC", "DTLSCERTFILE": "אישור TLS", "DTLSPRIVATEKEY": "מפתח פרטי של אישור TLS", + "CONTEXT": "הקשר", + "RINGINUSE": "הצלצול שבשימוש", "USERS": "משתמשים", "AGENTS": "נציגים", - "TOGGLE_SIDENAV": "החלף לניווט צדי", + "TOGGLE_SIDENAV": "החלפה לניווט צדי", "SEARCH_FOR_ANYONE": "חיפוש", "BACK": "חזרה", "MULTI_SELECT_TOGGLE": "בורר פריטים מרובים", - "SELECT_ALL": "בחר הכול", - "SELECT_NONE": "אל תבחר אף פריט", + "SELECT_ALL": "בחירת הכול", + "SELECT_NONE": "ביטול בחירה של הכל", "SELECTED": "נבחר/ו", - "DELETE_SELECTED": "מחק פריטים שנבחרו", - "EXPORT_SELECTED": "יצא פריטים שנבחרו", + "DELETE_SELECTED": "מחיקת פריטים שנבחרו", + "EXPORT_SELECTED": "יצוא פריטים שנבחרו", "ALL_USERS": "כל המשתמשים", "ALL_AGENTS": "כל הנציגים", "SORT": "מיון", + "NAME": "שם", "FULLNAME": "שם מלא", "A_TO_Z": "(א עד ת)", "Z_TO_A": "(ת עד א)", "MORE": "עוד", - "DELETE_USER": "מחק משתמש", - "EDIT_USER": "ערוך משתמש", - "DELETE_AGENT": "מחק נציג", - "EDIT_AGENT": "ערוך נציג", - "DELETE": "מחק", - "SAVE": "שמור", - "ADD_USER": "הוסף משתמש", - "ADD_AGENT": "הוסף נציג", + "DELETE_USER": "מחיקת משתמש", + "EDIT_USER": "עריכת משתמש", + "DELETE_AGENT": "מחיקת נציג", + "EDIT_AGENT": "עריכת נציג", + "DELETE": "מחיקה", + "SAVE": "שמירה", + "ADD_USER": "הוספת משתמש", + "ADD_AGENT": "הוסת נציג", "NO_RESULTS": "אין תוצאות", "CLOSE_DIALOG": "סוג תיבת דו-שיח", + "NAME_REQUIRED": "שם (חובה)", "USERNAME": "שם משתמש", - "SHOW_ALL_FIELDS": "הצג את כל השדות", + "SHOW_ALL_FIELDS": "תצוגה של כל השדות", "PHONE_NUMBER": "מספר טלפון", "EMAIL": "דוא\"ל", "PASSWORD": "סיסמה", @@ -51,7 +55,15 @@ "ENCRYPTION": "הצפנת SRTP (פרוטוקול Realtime מאובטח)", "DTLSCERTFILE_REQUIRED": "שדה חובה", "DTLSPRIVATEKEY_REQUIRED": "שדה חובה", + "FULLNAME_REQUIRED": "שדה חובה", + "USERNAME_REQUIRED": "שדה חובה", + "EMAIL_REQUIRED": "שדה חובה", + "PASSWORD_REQUIRED": "שדה חובה", "CONFIRM_NOT_MATCH": "אין התאמה בסיסמאות", + "EMAIL_MUST_VALID": "תבנית שגויה", + "ACCOUNTNAME_REQUIRED": "שדה חובה", + "NAME_REQUIRED": "שדה חובה", + "HOST_REQUIRED": "שדה חובה", "CHATCAPACITY_REQUIRED": "שדה חובה", "MAILCAPACITY_REQUIRED": "שדה חובה", "FAXCAPACITY_REQUIRED": "שדה חובה", @@ -79,12 +91,12 @@ "WHATSAPPCAPACITY_REQUIRED": "שדה חובה" }, "ACCOUNT": "חשבון", - "VOICE": "קול", + "VOICE": "שיחות", "CREATED_AT": "נוצר ב-", "ROLE": "תפקיד", "PERSONAL_INFO": "פרטים אישיים", "DESCRIPTION": "תיאור", - "CHANGE_AVATAR": "שנה דמות", + "CHANGE_AVATAR": "שינוי דמות", "GENERAL": "כללי", "INTERNAL": "פנימי", "TRANSPORT": "תעבורה", @@ -99,6 +111,7 @@ "NAT": "משנה את ההתנהגות של Asterisk עבור לקוחות מאחורי חומת אש. אם אחת מהאפשרויות המופרדות בפסיקים היא 'לא', Asterisk יתעלם מכל ההגדרות האחרות ויחיל nat=no.", "SIPEXPIRES": "ברירת מחדל: 160", "SIPPORT": "ברירת מחדל: 5160", + "TYPE": "קובע את תפקיד ה-SIP בעזרת Asterisk. משתמש: לאישור שיחות נכנסות – עמית: לשיחות יוצאות – חבר: כולל מאפיינים של שיחות נכנסות וגם יוצאות.", "CHATCAPACITY": "המספר המרבי של אינטראקציות ערוץ מקבילות לנציג (0=בלתי מוגבל)", "MAILCAPACITY": "המספר המרבי של אינטראקציות ערוץ מקבילות לנציג (0=בלתי מוגבל)", "FAXCAPACITY": "המספר המרבי של אינטראקציות ערוץ מקבילות לנציג (0=בלתי מוגבל)", @@ -117,12 +130,12 @@ "WHATSAPPCAPACITY": "המספר המרבי של אינטראקציות ערוצים במקביל לסוכן (0 = בלתי מוגבל)" }, "NEW_PASSWORD": "סיסמה חדשה", - "CONFIRM_PASSWORD": "אשר סיסמה", - "CHANGE_PASSWORD": "החלף סיסמה", - "CHANGEPASSWORD_AGENT": "החלף סיסמה", - "CHANGEPASSWORD_USER": "החלף סיסמה", - "CHANGEPASSWORD_TELEPHONE": "החלף סיסמה", - "LOGININPAUSE": "תהליך כניסה בהשהיה", + "CONFIRM_PASSWORD": "אישור סיסמה", + "CHANGE_PASSWORD": "שינוי סיסמה", + "CHANGEPASSWORD_AGENT": "שינוי סיסמה", + "CHANGEPASSWORD_USER": "שינוי סיסמה", + "CHANGEPASSWORD_TELEPHONE": "שינוי סיסמה", + "LOGININPAUSE": "כניסה מושעית", "HOST": "מארח", "NAT": "NAT", "CHANSPY": "ChanSpy", @@ -151,13 +164,14 @@ "SIPPORT": "יציאת SIP", "PENALTY": "חסימה", "ACCOUNTNAME": "שם החשבון", - "ADD_TELEPHONE": "הוסף טלפון", - "EDIT_TELEPHONE": "ערוך טלפון", - "DELETE_TELEPHONE": "מחק טלפון", + "ADD_TELEPHONE": "הוספת טלפון", + "EDIT_TELEPHONE": "עריכת טלפון", + "DELETE_TELEPHONE": "מחיקת טלפון", "TEAMS": "צוותים", - "DELETE_TEAM": "מחק צוות", - "AGENTADD_TEAM": "הוסף נציגים לצוות", - "EDIT_TEAM": "ערוך צוות", + "DELETE_TEAM": "מחיקת צוות", + "AGENTADD_TEAM": "הוספת נציגים לצוות", + "EDIT_TEAM": "עריכת צוות", + "TYPE": "סוג", "TELEPHONES": "טלפונים", "CALLERID": "מזהה מתקשר", "ENABLERECORDING": "אפשר הקלטה", @@ -167,31 +181,31 @@ "NEW_AGENT": "נציג חדש", "NEW_TELEPHONE": "טלפון חדש", "NEW_TEAM": "צוות חדש", - "ADD_TEAM": "הוסף צוות", - "JOIN_QUEUE": "הצטרף לתור", + "ADD_TEAM": "הוספת צוות", + "JOIN_QUEUE": "צירוף לתור", "CAPACITY": "קיבולת", - "AUTOINTERNAL": "הפק מספר פנימי באופן אוטומטי", + "AUTOINTERNAL": "הפקת מספר פנימי באופן אוטומטי", "ADD_AGENT_TO_TEAM": "הוסף נציג לצוות", "TEAMADD_AGENT": "הוסף נציג לצוות", "NO_AVAILABLE_INFO": "אין פרטים זמינים", "PERMISSIONS": "הרשאות", - "ADD_AGENT_TO_QUEUE": "הוסף נציג לתור", + "ADD_AGENT_TO_QUEUE": "הוספת נציג לתור", "ALL_MODULES_AVAILABLE": "כל המודולים זמינים", "CALLGROUP": "קבוצת שיחה", "PICKUPGROUP": "בחירת קבוצה", - "QUEUEADD_AGENT_VOICE_OUTBOUND": "הוסף נציג למבצעי תורים", - "QUEUEADD_AGENT_VOICE_INBOUND": "הוסף נציג לתורי קול", - "QUEUEADD_AGENT_CHAT_INBOUND": "הוסף נציג לתורי צ'אט", - "QUEUEADD_AGENT_MAIL_INBOUND": "הוסף נציג לתורי דוא\"ל", - "QUEUEADD_AGENT_SMS_INBOUND": "הוסף נציג לתורי SMS", - "QUEUEADD_AGENT_OPENCHANNEL_INBOUND": "הוסף נציג לתורי ערוצים פתוחים", - "QUEUEADD_AGENT_FAX_INBOUND": "הוסף נציג לתורי פקס", - "QUEUEADD_USER_VOICE_INBOUND": "הוסף משתמש לתורי קול", - "QUEUEADD_USER_CHAT_INBOUND": "הוסף משתמש לתורי צ'אט", - "QUEUEADD_USER_MAIL_INBOUND": "הוסף משתמש לתורי דוא\"ל", - "QUEUEADD_USER_SMS_INBOUND": "הוסף משתמש לתורי SMS", - "QUEUEADD_USER_OPENCHANNEL_INBOUND": "הוסף משתמש לתורי ערוצים פתוחים", - "QUEUEADD_USER_FAX_INBOUND": "הוסף משתמש לתורי פקס", + "QUEUEADD_AGENT_VOICE_OUTBOUND": "הוספתף נציג למבצעי תורים", + "QUEUEADD_AGENT_VOICE_INBOUND": "הוספת נציג לתורי קול", + "QUEUEADD_AGENT_CHAT_INBOUND": "הוספת נציג לתורי צ'אט", + "QUEUEADD_AGENT_MAIL_INBOUND": "הוספת נציג לתורי דוא\"ל", + "QUEUEADD_AGENT_SMS_INBOUND": "הוספת נציג לתורי מסרונים", + "QUEUEADD_AGENT_OPENCHANNEL_INBOUND": "הוספת נציג לתורי ערוצים פתוחים", + "QUEUEADD_AGENT_FAX_INBOUND": "הוספת נציג לתורי פקס", + "QUEUEADD_USER_VOICE_INBOUND": "הוספת משתמש לתורי קול", + "QUEUEADD_USER_CHAT_INBOUND": "הוספת משתמש לתורי צ'אט", + "QUEUEADD_USER_MAIL_INBOUND": "הוספת משתמש לתורי דוא\"ל", + "QUEUEADD_USER_SMS_INBOUND": "הוסף משתמש לתורי מסרונים", + "QUEUEADD_USER_OPENCHANNEL_INBOUND": "הוספת משתמש לתורי ערוצים פתוחים", + "QUEUEADD_USER_FAX_INBOUND": "הוספת משתמש לתורי פקס", "ALL_TEAMS": "כל הצוותים", "SELECTED_TEAMS": "צוותים נבחרים", "SELECTED_AGENTS": "נציגים נבחרים", @@ -222,83 +236,83 @@ "ENCRYPTION": "הצפנה", "CHANNELS": "ערוצים", "CHAT": "צ'אט", - "SMS": "SMS", - "OPENCHANNEL": "פתח ערוץ", + "SMS": "מסרונים", + "OPENCHANNEL": "ערות פתוח", "FAX": "פקס", - "QUEUEADD_USER_VOICE_OUTBOUND": "הוסף משתמש למבצעי תורים", - "MONITOREXTENSION": "תעד שיחות אל שלוחת המשתמש", + "QUEUEADD_USER_VOICE_OUTBOUND": "הוספת משתמש למבצעי תורים", + "MONITOREXTENSION": "תיעוד שיחות אל שלוחת המשתמש", "EDITPERMISSIONS": "עריכת הרשאות", - "READANDEDIT": "קרא, ערוך", - "READANDEDITANDDELETE": "קרא, ערוך, מחק", + "READANDEDIT": "קריאה, עריכה", + "READANDEDITANDDELETE": "קריאה, עריכה, מחיקה", "GENERAL_PERMISSIONS": "כללי", "ENABLEMESSENGER": "הפעל Internal Messenger", "OUTBOUNDPROXY": "פרוקסי יוצא", "PHONE": "טלפון", "MOBILE": "נייד", "PREFIXREQUIRED": "חובה לציין קידומת", - "MANAGE_PERMISSIONS": "נהל הרשאות", - "USERADD_VOICEQUEUES": "הוסף תור קול למשתמש", - "ALL_VOICEQUEUES": "כל תורי הקול", - "SELECTED_VOICEQUEUES": "תורי קול נבחרים", - "USERADD_CHATQUEUES": "הוסף תור צ'אט למשתמש", + "MANAGE_PERMISSIONS": "ניהול הרשאות", + "USERADD_VOICEQUEUES": "הוספת תור קול למשתמש", + "ALL_VOICEQUEUES": "כל תורי השיחות", + "SELECTED_VOICEQUEUES": "תורי שיחות נבחרים", + "USERADD_CHATQUEUES": "הוספת תור צ'אט למשתמש", "ALL_CHATQUEUES": "כל תורי הצ'אט", "SELECTED_CHATQUEUES": "תורי דוא\"ל נבחרים", - "USERADD_MAILQUEUES": "הוסף תור דוא\"ל למשתמש", + "USERADD_MAILQUEUES": "הוספת תור דוא\"ל למשתמש", "ALL_MAILQUEUES": "כל תורי הדוא\"ל", "SELECTED_MAILQUEUES": "תורי צ'אט נבחרים", "USERADD_SMSQUEUES": "הוסף תור SMS למשתמש", - "ALL_SMSQUEUES": "כל תורי ה-SMS", - "SELECTED_SMSQUEUES": "תורי SMS נבחרים", - "USERADD_FAXQUEUES": "הוסף תור פקס למשתמש", + "ALL_SMSQUEUES": "כל תורי המסרונים", + "SELECTED_SMSQUEUES": "תורי מסרונים נבחרים", + "USERADD_FAXQUEUES": "הוספת תור פקס למשתמש", "ALL_FAXQUEUES": "כל תורי הפקס", "SELECTED_FAXQUEUES": "תורי פקס נבחרים", - "USERADD_OPENCHANNELQUEUES": "הוסף תור ערוצים פתוחים למשתמש", + "USERADD_OPENCHANNELQUEUES": "הוספת תור ערוצים פתוחים למשתמש", "ALL_OPENCHANNELQUEUES": "כל תורי הערוצים הפתוחים", "SELECTED_OPENCHANNELQUEUES": "תורי ערוצים פתוחים נבחרים", "USERADD_PROJECTS": "הוסף פרויקט Cally Square למשתמש", "ALL_PROJECTS": "כל הפרויקטים של Cally Square", "SELECTED_PROJECTS": "פרויקטים נבחרים של Cally Square", - "USERADD_CHATWEBSITES": "הוסף אתר צ'אט למשתמש", + "USERADD_CHATWEBSITES": "הוספת אתר צ'אט למשתמש", "ALL_CHATWEBSITES": "כל אתרי הצ'אט", "SELECTED_CHATWEBSITES": "אתרי צ'אט נבחרים", - "USERADD_QUEUECAMPAIGNS": "הוסף מבצע תורים למשתמש", + "USERADD_QUEUECAMPAIGNS": "הוספת מבצע תורים למשתמש", "ALL_QUEUECAMPAIGNS": "כל מבצעי התורים", "SELECTED_QUEUECAMPAIGNS": "מבצעי תורים נבחרים", - "USERADD_MAILACCOUNTS": "הוסף חשבון דוא\"ל למשתמש", + "USERADD_MAILACCOUNTS": "הוספת חשבון דוא\"ל למשתמש", "ALL_MAILACCOUNTS": "כל חשבונות הדוא\"ל", "SELECTED_MAILACCOUNTS": "חשבונות דוא\"ל נבחרים", - "USERADD_FAXACCOUNTS": "הוסף חשבון פקס למשתמש", + "USERADD_FAXACCOUNTS": "הוספת חשבון פקס למשתמש", "ALL_FAXACCOUNTS": "כל חשבונות הפקס", "SELECTED_FAXACCOUNTS": "חשבונות פקס נבחרים", - "USERADD_SMSACCOUNTS": "הוסף חשבון SMS למשתמש", - "ALL_SMSACCOUNTS": "כל חשבונות ה-SMS", - "SELECTED_SMSACCOUNTS": "חשבונות SMS נבחרים", - "USERADD_OPENCHANNELACCOUNTS": "הוסף חשבון ערוצים פתוחים למשתמש", + "USERADD_SMSACCOUNTS": "הוסף חשבון מסרונים למשתמש", + "ALL_SMSACCOUNTS": "כל חשבונות המסרונים", + "SELECTED_SMSACCOUNTS": "חשבונות מסרונים נבחרים", + "USERADD_OPENCHANNELACCOUNTS": "הוספת חשבון ערוצים פתוחים למשתמש", "ALL_OPENCHANNELACCOUNTS": "כל חשבונות הערוצים הפתוחים", "SELECTED_OPENCHANNELACCOUNTS": "חשבונות ערוצים פתוחים נבחרים", - "ADD_USERPROFILE": "הוסף פרופיל משתמש", - "CANCEL": "בטל", + "ADD_USERPROFILE": "הוספת פרופיל משתמש", + "CANCEL": "ביטול", "CLONE_USERPROFILE": "פרופיל משתמש משוכפל", - "CLOSE": "סגור", - "CONFIRM": "אשר", + "CLOSE": "סגירה", + "CONFIRM": "אישור", "CRUDPERMISSIONS": "סוג הרשאה", - "DELETE_PERMISSION": "מחק", - "DELETE_USERPROFILE": "מחק פרופיל משתמש", - "EDIT_PERMISSION": "ערוך", - "EDIT_USERPROFILE": "ערוך את פרופיל המשתמש", + "DELETE_PERMISSION": "מחיקה", + "DELETE_USERPROFILE": "מחיקת פרופיל משתמש", + "EDIT_PERMISSION": "עריכה", + "EDIT_USERPROFILE": "עריכת את פרופיל המשתמש", "MODULES": "מודולים", "NEW_USERPROFILE": "פרופיל משתמש חדש", "PERMISSIONS_ALL_RESOURCES": "כל המשאבים", "PERMISSIONS_AUTO_ASSOCIATION_INFO": "משייך אוטומטית כל משאב עדכני ועתידי בסעיף זה לפרופיל המשתמש", - "PERMISSIONS_MANAGE": "לנהל", - "PERMISSIONS_PLACEHOLDER_SEARCH": "לחפש...", - "PERMISSIONS_SECTION_HIDE": "הסתר קטע למשתמש", - "PERMISSIONS_SECTION_SHOW": "הצג קטע למשתמש", + "PERMISSIONS_MANAGE": "ניהול", + "PERMISSIONS_PLACEHOLDER_SEARCH": "חיפוש...", + "PERMISSIONS_SECTION_HIDE": "הסתרת קטע למשתמש", + "PERMISSIONS_SECTION_SHOW": "תצוגת קטע למשתמש", "PERMISSIONS_SECTION_TITLE": "{{sectionName}} הרשאות", "PERMISSIONS_SELECTED_RESOURCES": "משאבים שנבחרו", - "PERMISSIONS_SELECT_REPORT_TYPE": "בחר סוג דוח", - "PERMISSIONS_SELECT_SECTION": "בחר קטע", - "PERMISSIONS_UNAUTHORIZED_REDIRECT_MESSAGE": "אינך רשאי לגשת לקטע שנבחר", + "PERMISSIONS_SELECT_REPORT_TYPE": "בחירת סוג דוח", + "PERMISSIONS_SELECT_SECTION": "בחירת קטע", + "PERMISSIONS_UNAUTHORIZED_REDIRECT_MESSAGE": "אין הרשאה לגשת לקטע שנבחר", "PERMISSIONS_UNAUTHORIZED_REDIRECT_TITLE": "פעולה לא מורשית", "PERMISSIONS_WARNING_CLOSE": "יש לך שינויים שלא נשמרו. האם אתה בטוח שברצונך לצאת בלי לשמור?", "PERMISSIONS_WARNING_ENABLE_ALL": "כל החלקים של {{sectionName}} ומשאבים שלהם יופעלו. האם אתה בטוח שאתה רוצה להמשיך?", @@ -310,19 +324,19 @@ "TEAMS_ASSOCIATION": "איגוד הצוותים", "USERPROFILE": "פרופיל משתמש", "USERPROFILES": "פרופילי משתמשים", - "PERMISSIONS_UNAUTHORIZED_CREATION_MESSAGE": "אינך מורשה ליצור את המשאב", + "PERMISSIONS_UNAUTHORIZED_CREATION_MESSAGE": "אין הרשאה ליצור את המשאב", "VIDEOSUPPORT": "תמיכה בווידיאו", "APIKEY": "מפתח API", "APIKEYMANAGER_USER": "מנהל מפתח API", - "GENERATE": "(מחדש) ליצור", + "GENERATE": "(מחדש) יצירה", "MANAGE_API_KEY": "מנהל מפתח API", - "REMOVE": "הסר", + "REMOVE": "הסרה", "ENABLEAUTOMATICSCREENRECORDING": "אפשר הקלטת מסך אוטומטית", "ENABLESCREENRECORDINGBYAGENT": "אפשר הקלטת מסך על ידי סוכן", "ENABLEVIDEOECORDING": "אפשר הקלטת וידאו", - "BLOCKED": "נעול", - "DISABLED": "מבוטל", - "REGENERATE": "התחדש", + "BLOCKED": "נעילה", + "DISABLED": "ביטול", + "REGENERATE": "התחדשות", "ALL_QUEUES_WHATSAPP_INBOUND": "כל התורים ב- WhatsApp", "ALL_WHATSAPPACCOUNTS": "כל חשבונות WhatsApp", "ALL_WHATSAPPQUEUES": "כל התורים ב- Whataspp", diff --git a/public/app/main/apps/tools/i18n/he.json b/public/app/main/apps/tools/i18n/he.json index b17105c..8051a48 100644 --- a/public/app/main/apps/tools/i18n/he.json +++ b/public/app/main/apps/tools/i18n/he.json @@ -2,18 +2,18 @@ "TOOLS": { "BOT": "בוט קולי", "CLONE_TRUNK": "שכפל קו ראשי", - "DISPOSITIONS": "סיכומים", + "DISPOSITIONS": "סיכומי שיחה", "NEW_DISPOSITION": "סיכום חדש", - "ADD_DISPOSITION": "הוסף סיכום", - "EDIT_DISPOSITION": "ערוך סיכום", - "DELETE_DISPOSITION": "מחק סיכום", - "RUN_SCHEDULE": "הרץ לפי לוח הזמנים", + "ADD_DISPOSITION": "הוספת סיכום", + "EDIT_DISPOSITION": "עריכת סיכום", + "DELETE_DISPOSITION": "מחיקת סיכום", + "RUN_SCHEDULE": "הרץ לפי לוח הזמנים", "SENDIFEMPTY": "שלח אם ריק", "NEXTCONTACT": "הבא", "OUTBOUND_ROUTE": "נתיב יוצא", - "EDIT_DASHBOARDITEM": "ערוך יישומון לוח מחוונים", + "EDIT_DASHBOARDITEM": "עריכת לוח שעונים", "FONTSIZE": "גודל גופן", - "CLONE_CUSTOMDASHBOARD": "שכפל לוח מחוונים מותאם", + "CLONE_CUSTOMDASHBOARD": "שכפול לוח שעונים", "LINK": "קישור [‎https://]", "BACKGROUND": "רקע", "FOREGROUND": "קדמה", @@ -29,9 +29,9 @@ "PIECHART": "תרשים עוגה", "MULTIBARCHART": "תרשים עמודות", "MOVE_WIDGET": "העבר יישומון", - "USERADD_CUSTOMDASHBOARD": "הוסף הרשאות משתמש", - "GOTODASHBOARD_CUSTOMDASHBOARD": "עבור לתצוגה מקדימה של לוח המחוונים", - "GOTO_CUSTOMDASHBOARD": "עבור לתצוגה מקדימה של לוח המחוונים", + "USERADD_CUSTOMDASHBOARD": "הוספת הרשאות", + "GOTODASHBOARD_CUSTOMDASHBOARD": "עבור לתצוגה מקדימה של לוח שעונים", + "GOTO_CUSTOMDASHBOARD": "עבור לתצוגה מקדימה של לוח שעונים", "METRIC": "מדד", "FILTERVOICEQUEUES": "סנן תורי קול", "SERIE1": "סדרה 1", @@ -49,6 +49,7 @@ "MESSAGE": "הודעה", "T38PT_UDPTL": "T38pt Udptl", "CALL": "שיחה", + "NAME": "שם", "TRUNKS": "קווים ראשיים", "SEARCH_FOR_ANYONE": "חיפוש", "ERRORS": { @@ -57,28 +58,41 @@ "REFRESH_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "הערך חייב להיות גדול או שווה ל-", "REFRESH_REQUIRED": "שדה חובה", "FONTSIZE_MUST_BE_LESS_THAN_OR_EQUAL_TO": "הערך חייב להיות קטן או שווה ל-", + "FONTSIZE_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "הערך חייב להיות גדול או שווה ל-", + "FONTSIZE_REQUIRED": "שדה חובה", "PATH_REQUIRED": "שדה חובה", "FORMAT_REQUIRED": "שדה חובה", "REPORT_REQUIRED": "שדה חובה", + "TYPE_REQUIRED": "שדה חובה", + "VALUE_REQUIRED": "שדה חובה", "ACCOUNT_REQUIRED": "שדה חובה", + "FIELD_REQUIRED": "שדה חובה", + "NAME_REQUIRED": "שדה חובה", + "HOST_REQUIRED": "שדה חובה", "DEFAULTUSER_REQUIRED": "שדה חובה", "CALLERID_REQUIRED": "שדה חובה", + "KEY_REQUIRED": "שדה חובה", "CONFIRM_NOT_MATCH": "אין התאמה בסיסמאות", "VALIDITYSTART_REQUIRED": "שדה חובה", "VALIDITYEND_REQUIRED": "שדה חובה", "MONTHDAY_REQUIRED": "שדה חובה", "HOUR_REQUIRED": "שדה חובה", "CONTENT_REQUIRED": "שדה חובה", + "URL_REQUIRED": "שדה חובה", "URL_MUST_VALID_URL": "תבנית שגויה", "APPLICATION_REQUIRED": "שדה חובה", "ARGUMENTS_REQUIRED": "שדה חובה", + "NAME_MUST_VALID_PATTERN": "תבנית שגויה", "POLLING_INTERVAL_REQUIRED": "שדה חובה", "TITLE_REQUIRED": "שדה חובה", "EMAILADDRESS_REQUIRED": "שדה חובה", "EVENTVARIABLES_REQUIRED": "שדה חובה", "INTEGRATION_REQUIRED": "שדה חובה", + "LIST_REQUIRED": "שדה חובה", "TEMPLATE_REQUIRED": "שדה חובה", "AUTOCREATECONTACT_REQUIRED": "שדה חובה", + "OUTBOUNDROUTE_REQUIRED": "שדה חובה", + "QUEUE_REQUIRED": "שדה חובה", "TIME_RANGE_TO_REQUIRED": "שדה חובה", "WEEK_DAYS_TO_REQUIRED": "שדה חובה", "MONTH_DAYS_TO_REQUIRED": "שדה חובה", @@ -87,13 +101,18 @@ "TIME_RANGE_TO_INVALID": "תבנית שגויה", "ACTION_REQUIRED": "שדה חובה", "CONFIGURATION_REQUIRED": "שדה חובה", + "PROJECT_REQUIRED": "שדה חובה", "LOCATION_REQUIRED": "שדה חובה", "OUTPUT_REQUIRED": "שדה חובה", "REPORTFOLDER_REQUIRED": "שדה חובה", "REPORTSUBFOLDER_REQUIRED": "שדה חובה", "REPORTTYPE_REQUIRED": "שדה חובה", + "AGENT_REQUIRED": "שדה חובה", "INFO_REQUIRED": "שדה חובה", "SCRIPT_REQUIRED": "שדה חובה", + "TIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "הערך חייב להיות גדול או שווה לו", + "TIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "הערך חייב להיות פחות או שווה ל", + "TIMEOUT_REQUIRED": "שדה חובה", "AUTOCREATE_FIELD_REQUIRED": "שדה חובה" }, "HOST": "מארח", @@ -112,6 +131,8 @@ "FROMUSER": "האופן שבו ספק השירות מזהה אותך. אלה הם פרטי המשתמש שיוזנו במקום מזהה מתקשר בעת ביצוע שיחה לעמית (פרוקסי SIP אחר). תקף רק עבור type=peer.", "OUTBOUNDPROXY": "IP_address או שם DNS SRV (להוציא קידומת ‎_sip._udp): שם שרת, שם מארח או כתובת ה-IP של שן פרוקסי SIP היוצא. שלח איתות יוצא אל אותו פרוקסי, לא ישירות למכשירים. תקף רק עבור type=peer.", "PORT": "מספר יציאת ה-SIP", + "CONTEXT": "ההקשר של הקו הראשי", + "TYPE": "קבע את תפקיד ה-SIP בעזרת Asterisk. משתמש: לאישור שיחות נכנסות – עמית: לשיחות יוצאות – חבר: כולל מאפיינים של שיחות נכנסות וגם יוצאות.", "DTMFMODE": "אופן השליחה של DTMF‏. RFC2833: מצב ברירת המחדל, צלילי DTMF נשלחים עם RTP אבל מחוץ לזרם האודיו. INBAND: צלילי ה-DTMF נשלחים בתוך זרם האודיו של השיחה הנוכחית והופכים לנשמעים דרך הרמקולים. יוצר מעמס גבוה על ה-CPU‏. INFO: שיטה אמינה מאד אך לא נתמכת בכל התקני ה-PBX ובקווי SIP ראשיים רבים.", "NAT": "שנה את ההתנהגות של Asterisk עבור לקוחות מאחורי חומת אש. אם אחת מהאפשרויות המופרדות בפסיקים היא 'לא', Asterisk יתעלם מכל ההגדרות האחרות ויחיל nat=no.", "QUALIFY": "בירור מתי ניתן להשיג SIP", @@ -129,6 +150,7 @@ "EMAILADDRESS": "הוסף כתובת אחת או מספר כתובות מופרדות בפסיקים (לדוגמה, john.doe@xcally.com, jane.miller@xcally.com)", "EMAILCCADDRESS": "הוסף כתובת אחת או מספר כתובות מופרדות בפסיקים (לדוגמה, john.doe@xcally.com, jane.miller@xcally.com)", "EMAILBCCADDRESS": "הוסף כתובת אחת או מספר כתובות מופרדות בפסיקים (לדוגמה, john.doe@xcally.com, jane.miller@xcally.com)", + "NAME": "מותר לכלול רק ספרות, אותיות ותווים ספציפיים (._)", "EVENTVARIABLES": "אם תכונה זו מופעלת היא מוסיפה את כל משתני האירוע לכתובת ה-URL (ערך מומלץ 'לא'. הצב ערך 'כן' רק למטרות הערכה) ", "BODY": "שדה ריק יאוכלס בערך ברירת המחדל", "INFO": "הכנס כותרת", @@ -145,10 +167,12 @@ "ADVANCED": "מתקדם", "OTHER": "אחר", "ACTIVE": "פעיל", + "CONTEXT": "הקשר", "CALLERID": "מזהה מתקשר", + "TYPE": "סוג", "DTMFMODE": "מצב DTMF", "NAT": "NAT", - "QUALIFY": "אשר", + "QUALIFY": "אישור", "ALLOWCODECS": "רכיבי codec מותרים", "INSECURE": "לא מאובטח", "REGISTRY": "רישום", @@ -255,17 +279,17 @@ "NOV": "נובמבר", "DEC": "דצמבר", "PASSWORD": "סיסמה", - "CUSTOMDASHBOARDS": "לוחות מחוונים מותאמים אישית", - "NEW_CUSTOMDASHBOARD": "לוח מחוונים מותאם חדש", - "ADD_CUSTOMDASHBOARD": "הוסף לוח מחוונים מותאם אישית", - "EDIT_CUSTOMDASHBOARD": "ערוך לוח מחוונים מותאם אישית", - "DELETE_CUSTOMDASHBOARD": "מחק לוח מחוונים מותאם אישית", + "CUSTOMDASHBOARDS": "לוח שעונים מותאם", + "NEW_CUSTOMDASHBOARD": "לוח שעונים חדש", + "ADD_CUSTOMDASHBOARD": "הוסת לוח שעונים", + "EDIT_CUSTOMDASHBOARD": "עריכת לוח שעונים", + "DELETE_CUSTOMDASHBOARD": "מחיקת לוח שעונים", "SCHEDULER": "מתזמן", - "NEW_SCHEDULE": "שיבוץ חדש", - "ADD_SCHEDULE": "הוסף שיבוץ", - "EDIT_SCHEDULE": "ערוך שיבוץ", - "DELETE_SCHEDULE": "מחק שיבוץ", - "SENDMAIL": "שלח הודעת דוא\"ל", + "NEW_SCHEDULE": "קביעת זמן חדש", + "ADD_SCHEDULE": "הוספת זמן חדש", + "EDIT_SCHEDULE": "עריכת זמן חדש", + "DELETE_SCHEDULE": "מחיקת זמן חדש", + "SENDMAIL": "שליחת הודעת דוא\"ל", "CONFIGURATION": "תצורה", "MAIL": "דוא\"ל", "REPORTTYPE": "סוג דוח", @@ -301,28 +325,28 @@ "SMS": "SMS", "OPENCHANNEL": "פתח ערוץ", "TEMPLATES": "תבניות", - "EDIT_TEMPLATE": "ערוך תבנית", - "DELETE_TEMPLATE": "מחק תבנית", + "EDIT_TEMPLATE": "עריכת תבנית", + "DELETE_TEMPLATE": "מחיקת תבנית", "NEW_TEMPLATE": "תבנית חדשה", - "ADD_TEMPLATE": "הוסף תבנית", + "ADD_TEMPLATE": "הוספת תבנית", "CONTENT": "תוכן", "FIELD": "שדה", "NO_ANYCONDITION_AVAILABLE": "אין תנאים זמינים", "NO_ALLCONDITION_AVAILABLE": "אין תנאים זמינים", "NO_ACTION_AVAILABLE": "אין פעולות זמינות", "ACTION": "פעולה", - "EDIT_ANYCONDITION": "ערוך תנאי", - "DELETE_ANYCONDITION": "מחק תנאי", + "EDIT_ANYCONDITION": "עריכת תנאי", + "DELETE_ANYCONDITION": "מחיקת תנאי", "NEW_ANYCONDITION": "תנאי חדש", - "ADD_ANYCONDITION": "הוסף תנאי", - "EDIT_ALLCONDITION": "ערוך תנאי", - "DELETE_ALLCONDITION": "מחק תנאי", + "ADD_ANYCONDITION": "הוספת תנאי", + "EDIT_ALLCONDITION": "עריכת תנאי", + "DELETE_ALLCONDITION": "מחיקת תנאי", "NEW_ALLCONDITION": "תנאי חדש", - "ADD_ALLCONDITION": "הוסף תנאי", - "EDIT_ACTION": "ערוך פעולה", - "DELETE_ACTION": "מחק פעולה", + "ADD_ALLCONDITION": "הוספת תנאי", + "EDIT_ACTION": "עריכת פעולה", + "DELETE_ACTION": "מחיקת פעולה", "NEW_ACTION": "פעולה חדשה", - "ADD_ACTION": "הוסף פעולה", + "ADD_ACTION": "הוספת פעולה", "QUEUE": "תור", "CALL_STATUS": "סטטוס שיחה", "OUTBOUNDROUTE": "נתיב יוצא", @@ -334,6 +358,7 @@ "JSCRIPTY": "Jscripty", "URL_FORWARD": "העבר כתובת URL", "WEB_POPUP": "חלון אינטרנט קופץ", + "LIST": "רשימה", "INTEGRATION": "אינטגרציה", "TEMPLATE": "תבנית", "URL": "כתובת URL", @@ -362,11 +387,11 @@ "IFRAME": "IFrame", "CLOCK": "שעון", "ADD_DASHBOARDITEM": "הוסף יישומון לוח מחוונים", - "EDIT_WIDGET": "ערוך יישומון", - "DELETE_WIDGET": "מחק יישומון", - "FLIP_WIDGET": "הפוך יישומון", + "EDIT_WIDGET": "עריכת יישומון", + "DELETE_WIDGET": "מחיקת יישומון", + "FLIP_WIDGET": "הפיכת יישומון", "TITLE": "כותרת", - "UPDATE": "עדכן", + "UPDATE": "עדכון", "LAYOUT": "סיכום", "BACKGROUND_COLOR": "צבע רקע", "FOREGROUND_COLOR": "צבע קדמה", @@ -427,11 +452,11 @@ "SCRIPT": "תסריט", "SCRIPT_INFO": "מידע", "SCRIPT_TYPE": "סוג", - "MOTION_TAB": "כרטיסיית לוח מחוונים לסוכן חדש", + "MOTION_TAB": "כרטיסיית לוח שעונים לסוכן חדש", "WHATSAPP": "מחבר WhatsApp", "AUTOCREATE_FIELD": "יצירת שדה אוטומטי", "GLOBALS": "גלובאלס", - "SEARCH_FIELDS": "חפש שדות", + "SEARCH_FIELDS": "חיפוש שדות", "STANDARD": "תֶקֶן", "MOTION_BAR": "Motion Bar", "ALL": "את כל", diff --git a/public/app/main/apps/voice/i18n/he.json b/public/app/main/apps/voice/i18n/he.json index 63d33e4..c490319 100644 --- a/public/app/main/apps/voice/i18n/he.json +++ b/public/app/main/apps/voice/i18n/he.json @@ -14,6 +14,7 @@ "EDIT_TRUNK": "ערוך קו ראשי", "GOTO_VOICEQUEUE": "עבור אל תצוגת מצב תורי שיחות", "GOTOREALTIME_VOICEQUEUE": "עבור אל תצוגת מצב תורי שיחות ", + "NAME": "שם", "LOGOUT": "יציאה", "VOICEQUEUES": "תורי שיחות", "SEARCH_FOR_ANYONE": "חיפוש", @@ -36,11 +37,36 @@ "CUSTOM_APPLICATION": "(*) – יישום מותאם אישית." }, "ERRORS": { + "TRUNK_REQUIRED": "שדה חובה", "VARIABLE_REQUIRED": "שדה חובה", + "NAME_REQUIRED": "שדה חובה", "APPLICATION_NAME_REQUIRED": "שדה חובה", + "TIMEOUT_REQUIRED": "שדה חובה", + "PHONENUMBER_REQUIRED": "שדה חובה", + "CONTEXT_REQUIRED": "שדה חובה", + "DESTINATIONPATTERN_REQUIRED": "שדה חובה", + "FULLNAME_REQUIRED": "שדה חובה", + "EMAIL_REQUIRED": "שדה חובה", + "EMAIL_MUST_VALID": "תבנית שגויה", + "MAILBOX_REQUIRED": "שדה חובה", + "PASSWORD_REQUIRED": "שדה חובה", "CONFIRM_NOT_MATCH": "אין התאמה בסיסמאות", + "TIMEZONE_REQUIRED": "שדה חובה", + "PREFIX_REQUIRED": "שדה חובה", + "OPTIONS_REQUIRED": "שדה חובה", + "AFTERCALLWORKDURATION_REQUIRED": "שדה חובה", + "TECHNOLOGY/RESOURCE_REQUIRED": "שדה חובה", + "PHONE_REQUIRED": "שדה חובה", + "VALUE_REQUIRED": "שדה חובה", + "EXTENSION_REQUIRED": "שדה חובה", + "PRIORITY_REQUIRED": "שדה חובה", "APPLICATION_REQUIRED": "שדה חובה", + "OUTBOUNDROUTE_REQUIRED": "שדה חובה", + "TIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "הערך חייב להיות גדול או שווה ל-", "MAXLENGTH_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "הערך חייב להיות גדול או שווה ל-", + "RETRY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "הערך חייב להיות גדול או שווה ל-", + "WRAPUPTIME_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "הערך חייב להיות גדול או שווה ל-", + "WEIGHT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "הערך חייב להיות גדול או שווה ל-", "ANNOUNCEFREQUENCY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "הערך חייב להיות גדול או שווה ל-", "MINANNOUNCEFREQUENCY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "הערך חייב להיות גדול או שווה ל-", "PERIODICANNOUNCEFREQUENCY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "הערך חייב להיות גדול או שווה ל-", @@ -51,8 +77,11 @@ "MAXSECONDS_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "הערך חייב להיות גדול או שווה ל-", "MAXMESSAGES_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "הערך חייב להיות גדול או שווה ל-", "MAXMESSAGES_MUST_BE_LESS_THAN_OR_EQUAL_TO": "הערך חייב להיות קטן או שווה ל-", + "NAME_MUST_VALID_PATTERN": "תבנית שגויה", "CALLERIDALL_MUST_VALID_PATTERN": "תבנית שגויה", - "CALLER_ID_MUST_VALID_PATTERN": "תבנית שגויה" + "CALLER_ID_MUST_VALID_PATTERN": "תבנית שגויה", + "MANDATORYDISPOSITIONPAUSEID_REQUIRED": "שדה חובה", + "PROJECT_REQUIRED": "שדה חובה" }, "GENERAL": "כללי", "TIMEOUT": "סוף זמן מוקצה", @@ -71,26 +100,78 @@ "JOINWHENEMPTY": "קובע אם המשתמש יועבר לתור כאשר אין אף נציג זמין", "LEAVEWHENEMPTY": "קובע אם מתקשרים יוסרו מהתור כאשר אין אף נציג זמין לקבלת שיחות", "ANNOUNCEFREQUENCY": "באיזו תדירות להכריז על מיקומו של המתקשר בתור ו/או את משך ההמתנה הצפוי (0=השבת)", + "MINANNOUNCEFREQUENCY": "תדירות הכרזה מינימלית (שימושי כאשר מיקומו של המתקשר בתור משתנה במהירות)", + "PERIODICANNOUNCEFREQUENCY": "תדירות ההכרזות המחזוריות שהמתקשר שומע", "ANNOUNCEPOSITIONLIMIT": "משמש אם הערך בהגדרת המיקום להכרזה הוא 'הגבל' או 'יותר'", + "AFTERCALLWORKDURATION": "אורך ההשהיה מופעל על ידי האפשרות 'עבודה לאחר שיחה'", + "MEMBERDELAY": "להוספת השהיה לפני חיבור בין המתקשר שבתור לבין הנציג", + "MUSICONHOLD": "קובע את סוג המוזיקה לתור מסוים", + "ANNOUNCETOAGENT": "להשמעת הודעה לנציג המקבל את השיחה (לדוגמה, לאיזה תור משויך המתקשר)", "RANDOMPERIODICANNOUNCE": "אם כן, ההודעות המחזוריות המוגדרות יושמעו באופן אקראי", + "ANNOUNCEHOLDTIME": "להכרזת משך זמן ההמתנה המשוער יחד עם ההודעות הקבועות (כן/לא/פעם אחת)", + "ANNOUNCECALLERPOSITION": "משמש כדי לקבוע אם מיקום המתקשר בתור יוכרז: לא=אף פעם; כן=תמיד; הגבל=רק אם במסגרת הגבול שהוגדר תחת 'הגבל-מיקום-הכרזה; עוד=רק אם יש חריגה מהערך שהוגדר תחת הגבל-מיום-הכרזה", + "REPORTHOLDTIMEAGENT": "מאפשר לדווח על משך ההמתנה של המתקשר לנציג בתור לפני חיבור ביניהם", + "PERIODICANNOUNCE": "סדרת ההודעות המחזוריות שיושמעו (לפי סדר)", + "HOLDTIMEANNOUNCE": "הגדרת 'בחר צליל' נמצאת תחת 'כלים'. ברירת המחדל='משך המתנה'. לא מוגדר=ללא הכרזה", + "YOUARENEXTANNOUNCE": "הגדרת 'בחר צליל' נמצאת תחת 'כלים'. ברירת המחדל='מקומך הנוכחי בתור – מספר אחת'. לא מוגדר=ללא הכרזה", + "THEREAREANNOUNCE": "הגדרת 'בחר צליל' נמצאת תחת 'כלים'. ברירת המחדל='לפניך בתור'. לא מוגדר=ללא הכרזה", + "WAITINGCALLSANNOUNCE": "הגדרת 'בחר צליל' נמצאת תחת 'כלים'. ברירת המחדל='שיחות ממתינות'. לא מוגדר=ללא הכרזה", + "ESTIMATEDHOLDTIMEANNOUNCE": "הגדרת 'בחר צליל' נמצאת תחת 'כלים'. ברירת המחדל='זמן ההמתנה המשוער כרגע הוא'. לא מוגדר=ללא הכרזה", + "MINUTESANNOUNCE": "הגדרת 'בחר צליל' נמצאת תחת 'כלים'. ברירת המחדל='דקות'. לא מוגדר=ללא הכרזה", + "MINUTEANNOUNCE": "הגדרת 'בחר צליל' נמצאת תחת 'כלים'. ברירת המחדל='דקה'. לא מוגדר=ללא הכרזה", + "SECONDSANNOUNCE": "הגדרת 'בחר צליל' נמצאת תחת 'כלים'. ברירת המחדל='שניות'. לא מוגדר=ללא הכרזה", + "THANKYOUANNOUNCE": "הגדרת 'בחר צליל' נמצאת תחת 'כלים'. ברירת המחדל='תודה על הסבלנות'. לא מוגדר=ללא הכרזה", + "AFTERCALLWORK": "אם אפשרות זאת מופעלת הנציג יועבר למצב 'השהה' לאחר סיום של שיחה", "AUTOPAUSE": "מפעיל/משבית את ההשהיה האוטומטית של נציגים שלא השיבו על שיחה. במצב מופעל, הסוכן עובר למצב השהיה בכל התורים שהוא משויך אליהם", + "RINGINUSE": "כדי למנוע/לאפשר שליחת שיחות לנציגים עם סטטוס 'בשימוש'", + "TIMEOUTRESTART": "אם כן, הזמן הקצוב לסוכן לקבל שיחה כאשר מתקבל סטטוס 'תפוס' או 'עומס' מהערוץ יתאפס", + "MONITORFORMAT": "מציין את תבנית הקובץ להקלטה. כאשר תבנית 'ניטור' לא פעילה אין הקלטת שיחות.", + "CONTEXT": "מאפשר למתקשר לצאת מהתור בלחיצה על ספרת DTMF אחת. אם צוין הקשר והמתקשר מקיש את הספרה, המערכת תנסה להתאים את הספרה להקשר שצוין וביצוע תוכנית החיוג תימשך שם", "SETINTERFACEVARIABLES": "אם הערך בהגדרה הוא 'כן', המערכת תקבע משתנים מסוימים ממש לפני העברת השיחה לנציג (לפרטים נוספים, עיין ב-Wiki Docs)", "SETQUEUEVARIABLES": "אם הערך בהגדרה הוא 'כן', המערכת תקבע משתנים מסוימים ממש לפני העברת השיחה לנציג ויציאתו מהתור (לפרטים נוספים, עיין ב-Wiki Docs)", "SETQUEUEENTRYVARIABLES": "אם הערך בהגדרה הוא 'כן', המערכת תקבע משתנים מסוימים ממש לפני העברת השיחה לנציג (לפרטים נוספים, עיין ב-Wiki Docs)", + "RECORDING": "אפשר הקלטת שיחה", + "VOICEMAIL_CONTEXT": "ההקשר של השלוחה הרלוונטית", + "NAME": "מותר לכלול רק ספרות, אותיות ותווים ספציפיים (._)", "CALLERIDALL": "התבנית הנתמכת: \"CallerId\" <number>", "CALLER_ID": "התבנית הנתמכת: \"CallerId\" <number>", + "MANDATORYDISPOSITIONPAUSEID": "סוג הפסקה במהלך סיכום שיחה", "SERVICELEVEL": "הגדרות שניות לרמת שירות (ברירת מחדל = 0, ללא SL). משמש לסטטיסטיקה של רמת השירות (שיחות נענות במסגרת הזמן של רמת השירות)" }, + "MUSICONHOLD": "מוזיקה בהמתנה", + "ANNOUNCETOAGENT": "הודעה לנציג", "ANNOUNCEMENTS": "הודעות", "ADVANCED": "מתקדם", "ANNOUNCEFREQUENCY": "תדירות הודעה", + "MINANNOUNCEFREQUENCY": "תדירות הודעה מינימלית", + "PERIODICANNOUNCEFREQUENCY": "תדירות הודעה חוזרת", "RANDOMPERIODICANNOUNCE": "הודעה חוזרת בסדר אקראי", + "ANNOUNCEHOLDTIME": "זמן המתנה להודעה", + "ANNOUNCECALLERPOSITION": "הכרזת מיקום המתקשר בתור", "ANNOUNCEPOSITIONLIMIT": "הכרזת מגבלת מקומות בתור", + "REPORTHOLDTIMEAGENT": "דיווח לנציג על זמן ההמתנה", + "PERIODICANNOUNCE": "הודעה חוזרת", + "HOLDTIMEANNOUNCE": "הודעת זמן המתנה", + "YOUARENEXTANNOUNCE": "הודעת אתה הבא בתור", + "THEREAREANNOUNCE": "הודעת יש בתור", + "WAITINGCALLSANNOUNCE": "הודעת שיחות ממתינות", + "ESTIMATEDHOLDTIMEANNOUNCE": "הודעת זמן המתנה משוער", + "MINUTESANNOUNCE": "הכרזת דקות", + "MINUTEANNOUNCE": "הכרזת דקה", + "SECONDSANNOUNCE": "הכרזת שניות", + "THANKYOUANNOUNCE": "הכרזת תודה רבה", "AUTOPAUSE": "הפסקה אוטומטית", + "AFTERCALLWORK": "עבודה לאחר שיחה", + "AFTERCALLWORKDURATION": "משך זמן עבודה לאחר שיחה", + "RINGINUSE": "הצלצול שבשימוש", + "MEMBERDELAY": "הפסקת הנציג", + "TIMEOUTRESTART": "זמן מוקצב להפעלה מחדש", + "MONITORFORMAT": "תבנית הקלטה", "SETINTERFACEVARIABLES": "קבע משתני ממשק", "SETQUEUEVARIABLES": "קבע משתני תור", "SETQUEUEENTRYVARIABLES": "קבע משתני כניסה לתור", "VARIABLE": "משתנה", + "CONTEXT": "הקשר", "SAVE": "שמור", "SETTINGS": "הגדרות", "INBOUNDROUTES": "נתיבים נכנסים", @@ -105,6 +186,7 @@ "EDIT_OUTBOUNDROUTE": "ערוך נתיב יוצא", "DELETE_OUTBOUNDROUTE": "מחק נתיב יוצא", "CUTDIGITS": "הורד ספרות", + "RECORDING": "הקלטה", "RECORDINGFORMAT": "תבנית הקלטה", "INTERNALROUTES": "נתיבים פנימיים", "ADD_INTERNALROUTE": "הוסף נתיב פנימי", @@ -198,6 +280,7 @@ "VOICE": "שיחה", "REALTIME": "זמן אמת", "ID": "מזהה", + "VOICEMAIL_CONTEXT": "הקשר", "NO_MOHSOUND_AVAILABLE": "אין מוסיקה זמינה להמתנה", "FILE": "קובץ", "ADD_MOHSOUND": "הוסף צליל מוזיקה בהמתנה", @@ -205,10 +288,11 @@ "DELETE_MOHSOUND": "מחק צליל מוזיקה בהמתנה", "UNIQUEID": "מזהה ייחודי", "AGENT": "נציג", + "TYPE": "סוג", "RATING": "דירוג", "AUDIO": "שמע", "DATE": "תאריך", - "NEW_VOICEQUEUE": "תור קול חדש", + "NEW_VOICEQUEUE": "תור שיחות חדש", "NEW_INBOUNDROUTE": "נתיב נכנס חדש", "NEW_OUTBOUNDROUTE": "נתיב יוצא חדש", "NEW_INTERNALROUTE": "נתיב פנימי חדש", @@ -357,6 +441,8 @@ "DIALER": "חייגן", "INBOUND": "נכנס", "OUTBOUND": "יוצא", + "MANDATORYDISPOSITION": "סיכום", + "MANDATORYDISPOSITIONPAUSEID": "מצב השהייה בסיכום", "TEAMS_ASSOCIATION": "איגוד הצוותים", "CANT_DOWNLOAD_THIS_FILE": "לא ניתן להוריד קובץ זה", "FILE_NOT_FOUND": "הקובץ לא נמצא", diff --git a/public/app/main/apps/whatsapp/i18n/ar.json b/public/app/main/apps/whatsapp/i18n/ar.json index 06caa5d..03bcbeb 100644 --- a/public/app/main/apps/whatsapp/i18n/ar.json +++ b/public/app/main/apps/whatsapp/i18n/ar.json @@ -1,47 +1,244 @@ { "WHATSAPP": { "ERRORS": { + "ACCESSKEYID_REQUIRED": "حقل الزامي", + "ACCOUNTSID_REQUIRED": "حقل الزامي", + "AGENTTRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "يجب أن تكون القيمة أكبر من أو تساوي", + "AGENTTRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "يجب أن تكون القيمة أقل من أو تساوي", + "AGENTTRANSFERTIMEOUT_REQUIRED": "حقل الزامي", + "AGENT_REQUIRED": "حقل الزامي", + "AGENT_TIMEOUT_REQUIRED": "حقل الزامي", + "AUTHTOKEN_REQUIRED": "حقل الزامي", + "BOTNAME_REQUIRED": "حقل الزامي", + "COMMAND_REQUIRED": "حقل الزامي", + "CONDITION_REQUIRED": "حقل الزامي", "DESCRIPTION_REQUIRED": "حقل الزامي", + "DISPOSITION_REQUIRED": "حقل الزامي", + "FALSEPRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "يجب أن تكون القيمة أكبر من أو تساوي", + "FALSEPRIORITY_REQUIRED": "حقل الزامي", + "KEY_MAX_LENGTH": "يجب أن يكون أقصى طول للقيمة يساوي {{max}}", + "KEY_REQUIRED": "حقل الزامي", "LANGUAGE_REQUIRED": "Mandtory فيلد", "LEXREGION_REQUIRED": "حقل الزامي", + "LIST_REQUIRED": "حقل الزامي", + "MANDATORYDISPOSITIONPAUSEID_REQUIRED": "حقل الزامي", + "NAME_REQUIRED": "حقل الزامي", + "PHONE_REQUIRED": "حقل الزامي", + "PRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "يجب أن تكون القيمة أكبر من أو تساوي", + "PRIORITY_REQUIRED": "حقل الزامي", + "QUEUETRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "يجب أن تكون القيمة أكبر من أو تساوي", + "QUEUETRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "يجب أن تكون القيمة أقل من أو تساوي", + "QUEUETRANSFERTIMEOUT_REQUIRED": "حقل الزامي", + "QUEUE_REQUIRED": "حقل الزامي", + "SECRETACCESSKEY_REQUIRED": "حقل الزامي", + "TAG_REQUIRED": "حقل الزامي", + "TEXT_REQUIRED": "حقل الزامي", + "TIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "يجب أن تكون القيمة أكبر من أو تساوي", + "TIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "يجب أن تكون القيمة أقل من أو تساوي", + "TIMEOUT_REQUIRED": "حقل الزامي", "TIMES_REQUIRED": "حقل الزامي", + "TOKEN_REQUIRED": "حقل الزامي", + "TRUEPRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "يجب أن تكون القيمة أكبر من أو تساوي", + "TRUEPRIORITY_REQUIRED": "حقل الزامي", + "TYPE_REQUIRED": "حقل الزامي", + "VALUE_REQUIRED": "حقل الزامي", "VARIABLE_REQUIRED": "حقل الزامي", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "يجب أن تكون القيمة أكبر من أو تساوي", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "يجب أن تكون القيمة أقل من أو تساوي", + "WAITFORTHEASSIGNEDAGENT_REQUIRED": "حقل الزامي", "WELCOMEMESSAGE_MAX_LENGTH": "يجب أن يكون أقصى طول للقيمة يساوي {{max}}", - "WELCOMEMESSAGE_REQUIRED": "حقل الزامي" + "WELCOMEMESSAGE_REQUIRED": "حقل الزامي", + "CLIENTEMAIL_REQUIRED": "حقل الزامي", + "PRIVATEKEY_REQUIRED": "حقل الزامي", + "PROJECTID_REQUIRED": "حقل الزامي" }, - "HELP": {}, + "HELP": { + "LIST": "تستخدم قائمة مدير جهات الاتصال لربط جهات الاتصال", + "MANDATORYDISPOSITION": "التصرف الإلزامي", + "MANDATORYDISPOSITIONPAUSEID": "توقف مؤقتًا للاستخدام عند تمكين التخلص الإلزامي", + "MOTIONPROXY": "يجب أن يكون للحقل التنسيق التالي: <بروتوكول>: // [: ]. مثال: https: //X.Y.Z.W", + "NAME": "يتم دعم الأرقام والأحرف والأحرف المحددة (._) فقط", + "RECEIVEURL": "هذه هي سلسلة واجهة برمجة التطبيقات التي يتم إنشاؤها تلقائيًا والتي تحتاج إلى استخدامها لتلقي الرسائل داخل حسابك من موفر WhatsApp Connector الخاص بك (يجب استخدام طريقة POST): انقر فوق زر الحافظة لنسخها", + "WELCOMEMESSAGE": "هذه هي أول رسالة رد تُرسل إلى التفاعلات الجديدة" + }, + "ACCESSKEYID": "معرف مفتاح الوصول", + "ACCOUNTSID": "SID الحساب", + "ACTIONS": "أجراءات", + "ADD_NOTE": "اضف ملاحظة", "ADD_WHATSAPPACCOUNT": "أضف", "ADD_WHATSAPPCANNEDANSWER": "أضف إجابة جاهزة", "ADD_WHATSAPPDISPOSITION": "أضف ترتيب WhatsApp", "ADD_WHATSAPPQUEUE": "أضف قائمة انتظار WhatsApp", + "ADVANCED": "المتقدمة", + "AGENT": "وكيل", "AGENTADD_QUEUE": "إضافة عامل إلى قائمة انتظار WhatsApp", "AGENTADD_WHATSAPPACCOUNT": "إضافة وكيل لحساب WhatsApp", "AGENTADD_WHATSAPPQUEUE": "إضافة عامل إلى قائمة انتظار WhatsApp", + "AGENTS": "عملاء", + "AGENTSADD_QUEUE": "أضف وكلاء إلى قائمة انتظار WhatsApp", + "AGENTTRANSFER": "نقل الوكيل", + "AGENTTRANSFERTIMEOUT": "مهلة نقل الوكيل", + "AGENT_TIMEOUT": "مهلة الوكيل", + "ALL": "الكل", + "ALL_AGENTS": "كل الوكلاء", + "ALL_TEAMS": "كل الفرق", + "AMAZONLEX": "أمازون ليكس", "AUTHTOKEN": "رمز المصادقة", + "AUTOREPLY": "رد آلي", + "BACK": "عودة", + "BOTNAME": "اسم البوت", + "BUSY": "مشغول", + "CANNEDANSWERS": "الإجابات المعلبة", + "CANNED_ANSWER_NOT_FOUND": "لم يتم العثور على إجابات جاهزة", + "CANNED_ANSWER_SEARCH": "أدخل نصًا للبحث في إجابة جاهزة", + "CAPACITY": "سعة", + "CLOSE": "قريب", + "CLOSED": "مغلق", + "CLOSEMETHOD": "طريقة الإغلاق", + "CLOSEURL": "إغلاق URL", + "COMMAND": "أمر", + "CONDITION": "شرط", + "CONTACT": "اتصل", + "CREATED_AT": "أنشئت في", + "DEFAULT_PAUSE": "وقفة افتراضية", + "DELETE": "حذف", + "DELETE_INTERACTION": "حذف التفاعل", + "DELETE_SELECTED": "احذف المختار", "DELETE_WHATSAPPACCOUNT": "احذف حساب WhatsApp", "DELETE_WHATSAPPCANNEDANSWER": "تم الحذف", "DELETE_WHATSAPPDISPOSITION": "احذف ترتيب WhatsApp", "DELETE_WHATSAPPQUEUE": "حذف قائمة الانتظار WhatsApp", + "DESCRIPTION": "وصف", + "DIALOGFLOW": "DialogFlow", + "DISPOSITION": "تغير", + "DISPOSITIONS": "التصرفات", + "DOWNLOAD_INTERACTION": "تحميل", + "DOWNLOAD_WITHOUT_ATTACHMENTS": "تحميل بدون مرفقات", + "DOWNLOAD_WITH_ATTACHMENTS": "تحميل مع المرفقات", + "EDIT_AGENT": "تحرير الوكيل", + "EDIT_AMAZONLEX": "تحرير تكوين Lex", + "EDIT_AUTOREPLY": "تحرير الرد التلقائي", + "EDIT_CLOSE": "تحرير إغلاق", + "EDIT_DIALOGFLOW": "تحرير تكوين DialogFlow", + "EDIT_GOTOIF": "تحرير Gotoif", + "EDIT_GOTOP": "تحرير Gotop", + "EDIT_NOOP": "تحرير Noop", + "EDIT_QUEUE": "تحرير قائمة الانتظار", + "EDIT_SYSTEM": "تحرير النظام", + "EDIT_TAG": "تحرير العلامة", "EDIT_WHATSAPPACCOUNT": "تحرير حساب WhatsApp", "EDIT_WHATSAPPCANNEDANSWER": "تعديل", "EDIT_WHATSAPPDISPOSITION": "تحرير ترتيب WhatsApp", "EDIT_WHATSAPPQUEUE": "تحرير WhatsApp Queue", + "FALSEPRIORITY": "أولوية خاطئة", + "GENERAL": "جنرال لواء", + "GOTOIF": "قطوف", + "GOTOP": "جوتوب", "GOTOREALTIME_WHATSAPPQUEUE": "انتقل إلى Realtime WhatsApp Queue", "GO_TO_WHATSAPPACCOUNTS": "اذهب إلى الحساب", + "ID": "هوية شخصية", + "IDLE": "الخمول", + "INSERT_MESSAGE_HERE": "أدخل الرسالة هنا", + "INTERACTIONS": "التفاعلات", "INTERACTIONS_WHATSAPPACCOUNT": "انتقل إلى التفاعلات", + "KEY": "مفتاح", + "LANGUAGE": "لغة", + "LASTMESSAGE": "اخر رسالة", + "LEXREGION": "منطقة", + "LIST": "قائمة", + "LOGGED_IN": "تم تسجيل الدخول (SIP متصل)", + "LOGIN_TIME": "وقت تسجيل الدخول", + "LOGOUT": "تسجيل خروج", + "MANDATORYDISPOSITION": "الترتيب الإلزامي", + "MANDATORYDISPOSITIONPAUSEID": "توقف مؤقتًا للاستخدام عند تمكين التخلص الإلزامي", + "MORE": "أكثر", + "MOTIONPROXY": "الوكيل أو مجال الحركة", "MULTI_SELECT_TOGGLE": "متعدد تحديد تبديل", + "NAME": "اسم", "NEW_WHATSAPPACCOUNT": "حساب WhatsApp جديد", "NEW_WHATSAPPCANNEDANSWER": "إجابة WhatsApp جديدة معلبة", "NEW_WHATSAPPDISPOSITION": "ترتيب WhatsApp الجديد", "NEW_WHATSAPPQUEUE": "قائمة انتظار WhatsApp الجديدة", + "NOOP": "نوب", + "NOTE": "ملحوظة", + "NOTIFICATION": "تنبيه", + "NOTIFICATIONSHAKE": "هزة", + "NOTIFICATIONSOUND": "صوت", + "NOTIFICATIONTEMPLATE": "قالب", + "NO_AGENT_ONLINE": "لا يوجد وكيل على الإنترنت", + "NO_AVAILABLE_INFO": "لا توجد معلومات متاحة", + "NO_INTERACTION_AVAILABLE": "لا توجد تفاعلات متاحة", "NO_WHATSAPPCANNEDANSWER_AVAILABLE": "لا توجد إجابات جاهزة لتطبيق WhatsApp", "NO_WHATSAPPDISPOSITION_AVAILABLE": "لا تتوفر ترتيبات WhatsApp", "NO_WHATSAPP_ACCOUNTS_AVAILABLE": "لا توجد حسابات WhatsApp متاحة", + "OF": "من", + "OPENED": "افتتح", + "PAGE": "الصفحة", + "PARTIALPAUSE": "وقفة جزئية", + "PAUSE": "وقفة", + "PAUSED": "متوقف مؤقتًا", + "PAUSE_TIME": "وقفة الوقت", + "PHONE": "هاتف", + "PRIORITY": "أفضلية", + "PROXY": "الوكيل", + "QUEUE": "طابور", + "QUEUES": "قوائم الانتظار", + "QUEUETRANSFER": "تحويل قائمة الانتظار", + "QUEUETRANSFERTIMEOUT": "مهلة نقل قائمة الانتظار", + "READY": "جاهز", + "REALTIME": "في الوقت الحالى", + "RECEIVEURL": "تلقي URL", + "REFRESH_INTERACTIONS": "تحديث التفاعلات", "REMOTE": "التحكم عن بعد", + "ROWSPERPAGE": "عدد الصفوف في الصفحة", + "SAVE": "حفظ", + "SCREENRECORDING": "إدارة تسجيل الشاشة", + "SEARCH_FOR_ANYONE": "بحث", + "SECRETACCESSKEY": "سر مفتاح الوصول", + "SELECTED": "المحدد", + "SELECTED_AGENTS": "الوكلاء المختارون", + "SELECTED_TEAMS": "فرق مختارة", + "SELECT_ALL": "اختر الكل", + "SELECT_NONE": "لا تختر شيء", + "SEND": "إرسال", + "SETTINGS": "الإعدادات", + "SPYINTERACTION": "تفاعل التجسس", + "STARTEDAT": "بدأت في", + "START_SCREENRECORDING": "بدء تسجيل الشاشة", + "STATUS": "الحالة", + "STOP_SCREENRECORDING": "وقف تسجيل الشاشة", + "STRATEGY": "إستراتيجية", + "SYSTEM": "النظام", + "TAG": "بطاقة شعار", + "TAGS": "العلامات", "TEAMADD_WHATSAPPQUEUE": "أضف فريقًا إلى قائمة انتظار WhatsApp", + "TEAMS_ASSOCIATION": "جمعية الفرق", + "TEXT": "نص", + "TIMEOUT": "نفذ الوقت", + "TIMER": "الموقت", + "TIMES": "مرات", + "TO": "إلى", + "TOKEN": "رمز", + "TOOLTIP_SCREENRECORDING_OFF": "تسجيل الشاشة متاح", + "TOOLTIP_SCREENRECORDING_ON": "تسجيل الشاشة قيد التقدم", + "TRANSFER": "نقل", + "TRUEPRIORITY": "أولوية حقيقية", + "TYPE": "نوع", + "UNPAUSE": "إنهاء وقفة", + "VALUE": "القيمة", + "VARIABLE": "متغير", + "WAITFORTHEASSIGNEDAGENT": "انتظر الوكيل المعين", + "WAITING": "انتظار", + "WELCOMEMESSAGE": "رسالة ترحيب", + "WHATSAPP": "رابط WhatsApp", "WHATSAPPACCOUNTS": "حسابات WhatsApp", "WHATSAPPCANNEDANSWERS": "إجابات WhatsApp المعلبة", "WHATSAPPDISPOSITIONS": "تصرفات WhatsApp", - "WHATSAPPQUEUES": "قوائم انتظار WhatsApp" + "WHATSAPPQUEUES": "قوائم انتظار WhatsApp", + "CLIENTEMAIL": "البريد الإلكتروني للعميل", + "DIALOGFLOWV2": "Dialogflow V2", + "EDIT_DIALOGFLOWV2": "تحرير Dialogflow V2", + "PRIVATEKEY": "مفتاح سري", + "PROJECTID": "معرف المشروع" } } diff --git a/public/app/main/apps/whatsapp/i18n/cs.json b/public/app/main/apps/whatsapp/i18n/cs.json index 0cd1dbf..07beea8 100644 --- a/public/app/main/apps/whatsapp/i18n/cs.json +++ b/public/app/main/apps/whatsapp/i18n/cs.json @@ -1,47 +1,244 @@ { "WHATSAPP": { "ERRORS": { + "ACCESSKEYID_REQUIRED": "Povinné pole", + "ACCOUNTSID_REQUIRED": "Povinné pole", + "AGENTTRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Hodnota musí být větší nebo rovna", + "AGENTTRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Hodnota musí být menší nebo rovna", + "AGENTTRANSFERTIMEOUT_REQUIRED": "Povinné pole", + "AGENT_REQUIRED": "Povinné pole", + "AGENT_TIMEOUT_REQUIRED": "Povinné pole", + "AUTHTOKEN_REQUIRED": "Povinné pole", + "BOTNAME_REQUIRED": "Povinné pole", + "COMMAND_REQUIRED": "Povinné pole", + "CONDITION_REQUIRED": "Povinné pole", "DESCRIPTION_REQUIRED": "Povinné pole", + "DISPOSITION_REQUIRED": "Povinné pole", + "FALSEPRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Hodnota musí být větší nebo rovna", + "FALSEPRIORITY_REQUIRED": "Povinné pole", + "KEY_MAX_LENGTH": "Hodnota musí mít maximální délku rovnou {{max}}", + "KEY_REQUIRED": "Povinné pole", "LANGUAGE_REQUIRED": "Povinné pole", "LEXREGION_REQUIRED": "Povinné pole", + "LIST_REQUIRED": "Povinné pole", + "MANDATORYDISPOSITIONPAUSEID_REQUIRED": "Povinné pole", + "NAME_REQUIRED": "Povinné pole", + "PHONE_REQUIRED": "Povinné pole", + "PRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Hodnota musí být větší nebo rovna", + "PRIORITY_REQUIRED": "Povinné pole", + "QUEUETRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Hodnota musí být větší nebo rovna", + "QUEUETRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Hodnota musí být menší nebo rovna", + "QUEUETRANSFERTIMEOUT_REQUIRED": "Povinné pole", + "QUEUE_REQUIRED": "Povinné pole", + "SECRETACCESSKEY_REQUIRED": "Povinné pole", + "TAG_REQUIRED": "Povinné pole", + "TEXT_REQUIRED": "Povinné pole", + "TIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Hodnota musí být větší nebo rovna", + "TIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Hodnota musí být menší nebo rovna", + "TIMEOUT_REQUIRED": "Povinné pole", "TIMES_REQUIRED": "Povinné pole", + "TOKEN_REQUIRED": "Povinné pole", + "TRUEPRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Hodnota musí být větší nebo rovna", + "TRUEPRIORITY_REQUIRED": "Povinné pole", + "TYPE_REQUIRED": "Povinné pole", + "VALUE_REQUIRED": "Povinné pole", "VARIABLE_REQUIRED": "Povinné pole", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Hodnota musí být větší nebo rovna", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Hodnota musí být menší nebo rovna", + "WAITFORTHEASSIGNEDAGENT_REQUIRED": "Povinné pole", "WELCOMEMESSAGE_MAX_LENGTH": "Hodnota musí mít maximální délku rovnou {{max}}", - "WELCOMEMESSAGE_REQUIRED": "Povinné pole" + "WELCOMEMESSAGE_REQUIRED": "Povinné pole", + "CLIENTEMAIL_REQUIRED": "Povinné pole", + "PRIVATEKEY_REQUIRED": "Povinné pole", + "PROJECTID_REQUIRED": "Povinné pole" }, - "HELP": {}, + "HELP": { + "LIST": "Seznam Správce kontaktů používaný k přiřazení kontaktů", + "MANDATORYDISPOSITION": "Povinná dispozice", + "MANDATORYDISPOSITIONPAUSEID": "Pozastavit, pokud je povolena povinná dispozice", + "MOTIONPROXY": "Pole musí mít následující formát: : // [: ]. Příklad: https: //X.Y.Z.W", + "NAME": "Podporovány jsou pouze čísla, písmena a specifické znaky (._)", + "RECEIVEURL": "Toto je automaticky generovaný řetězec API, který musíte použít k přijímání zpráv v účtu od poskytovatele WhatsApp Connector (musí být použita metoda POST): zkopírujte jej kliknutím na tlačítko schránky", + "WELCOMEMESSAGE": "Toto je první odezva na nové interakce" + }, + "ACCESSKEYID": "ID přístupového klíče", + "ACCOUNTSID": "SID účtu", + "ACTIONS": "Akce", + "ADD_NOTE": "Přidat poznámku", "ADD_WHATSAPPACCOUNT": "Přidat", "ADD_WHATSAPPCANNEDANSWER": "Přidat předpřipravenou odpověď", "ADD_WHATSAPPDISPOSITION": "Přidat Dispozici WhatsApp", "ADD_WHATSAPPQUEUE": "Přidejte frontu WhatsApp", + "ADVANCED": "Pokročilý", + "AGENT": "Činidlo", "AGENTADD_QUEUE": "Přidejte agenta do fronty WhatsApp", "AGENTADD_WHATSAPPACCOUNT": "Přidejte agenta do účtu WhatsApp", "AGENTADD_WHATSAPPQUEUE": "Přidejte agenta do fronty WhatsApp", + "AGENTS": "Agenti", + "AGENTSADD_QUEUE": "Přidejte agenty do fronty WhatsApp", + "AGENTTRANSFER": "Převod agentů", + "AGENTTRANSFERTIMEOUT": "Časový limit přenosu agenta", + "AGENT_TIMEOUT": "Časový limit agenta", + "ALL": "Všechno", + "ALL_AGENTS": "Všichni agenti", + "ALL_TEAMS": "Všechny týmy", + "AMAZONLEX": "AmazonLex", "AUTHTOKEN": "Auth Token", + "AUTOREPLY": "Automatická odpověď", + "BACK": "Zadní", + "BOTNAME": "Název bota", + "BUSY": "Zaneprázdněný", + "CANNEDANSWERS": "Konzervované odpovědi", + "CANNED_ANSWER_NOT_FOUND": "Nebyly nalezeny žádné předpřipravené odpovědi", + "CANNED_ANSWER_SEARCH": "Zadejte text pro vyhledání odpovědi v konzervě", + "CAPACITY": "Kapacita", + "CLOSE": "Zavřít", + "CLOSED": "Zavřeno", + "CLOSEMETHOD": "Zavřít metodu", + "CLOSEURL": "Zavřít URL", + "COMMAND": "Příkaz", + "CONDITION": "Stav", + "CONTACT": "Kontakt", + "CREATED_AT": "Vytvořeno v", + "DEFAULT_PAUSE": "VÝCHOZÍ PAUSE", + "DELETE": "Vymazat", + "DELETE_INTERACTION": "Smazat interakci", + "DELETE_SELECTED": "Smazat vybrané", "DELETE_WHATSAPPACCOUNT": "Odstraňte účet WhatsApp", "DELETE_WHATSAPPCANNEDANSWER": "Vymazáno", "DELETE_WHATSAPPDISPOSITION": "Odstranit Dispozici WhatsApp", "DELETE_WHATSAPPQUEUE": "Odstranit frontu WhatsApp", + "DESCRIPTION": "Popis", + "DIALOGFLOW": "DialogFlow", + "DISPOSITION": "Dispozice", + "DISPOSITIONS": "Dispozice", + "DOWNLOAD_INTERACTION": "Stažení", + "DOWNLOAD_WITHOUT_ATTACHMENTS": "Stáhnout bez příloh", + "DOWNLOAD_WITH_ATTACHMENTS": "Stáhnout s přílohami", + "EDIT_AGENT": "Upravit agenta", + "EDIT_AMAZONLEX": "Upravit konfiguraci Lex", + "EDIT_AUTOREPLY": "Upravit automatickou odpověď", + "EDIT_CLOSE": "Upravit Zavřít", + "EDIT_DIALOGFLOW": "Upravit konfiguraci DialogFlow", + "EDIT_GOTOIF": "Upravit Gotoif", + "EDIT_GOTOP": "Upravit Gotop", + "EDIT_NOOP": "Upravit Noop", + "EDIT_QUEUE": "Upravit frontu", + "EDIT_SYSTEM": "Upravit systém", + "EDIT_TAG": "Upravit značku", "EDIT_WHATSAPPACCOUNT": "Upravit účet WhatsApp", "EDIT_WHATSAPPCANNEDANSWER": "Upravit", "EDIT_WHATSAPPDISPOSITION": "Upravit WhatsApp Disposition", "EDIT_WHATSAPPQUEUE": "Upravit frontu WhatsApp", + "FALSEPRIORITY": "Falešná priorita", + "GENERAL": "Všeobecné", + "GOTOIF": "Gotoif", + "GOTOP": "Jít nahoru", "GOTOREALTIME_WHATSAPPQUEUE": "Přejít do fronty WhatsApp v reálném čase", "GO_TO_WHATSAPPACCOUNTS": "Přejít na účet", + "ID": "Id", + "IDLE": "Líný", + "INSERT_MESSAGE_HERE": "Sem vložte zprávu", + "INTERACTIONS": "Interakce", "INTERACTIONS_WHATSAPPACCOUNT": "Přejít na Interakce", + "KEY": "Klíč", + "LANGUAGE": "Jazyk", + "LASTMESSAGE": "Poslední zpráva", + "LEXREGION": "Kraj", + "LIST": "Seznam", + "LOGGED_IN": "Přihlášen (připojeno SIP)", + "LOGIN_TIME": "Čas přihlášení", + "LOGOUT": "Odhlásit se", + "MANDATORYDISPOSITION": "Povinná dispozice", + "MANDATORYDISPOSITIONPAUSEID": "Pozastavit, pokud je povolena povinná dispozice", + "MORE": "Více", + "MOTIONPROXY": "Proxy nebo pohybová doména", "MULTI_SELECT_TOGGLE": "Přepnout na více výběrů", + "NAME": "název", "NEW_WHATSAPPACCOUNT": "Nový účet WhatsApp", "NEW_WHATSAPPCANNEDANSWER": "Nová odpověď na otázku WhatsApp", "NEW_WHATSAPPDISPOSITION": "Nové dispozice WhatsApp", "NEW_WHATSAPPQUEUE": "Nová fronta WhatsApp", + "NOOP": "Noop", + "NOTE": "Poznámka", + "NOTIFICATION": "Oznámení", + "NOTIFICATIONSHAKE": "Otřást", + "NOTIFICATIONSOUND": "Zvuk", + "NOTIFICATIONTEMPLATE": "Šablona", + "NO_AGENT_ONLINE": "Žádný agent online", + "NO_AVAILABLE_INFO": "Nejsou k dispozici žádné informace", + "NO_INTERACTION_AVAILABLE": "K dispozici nejsou žádné interakce", "NO_WHATSAPPCANNEDANSWER_AVAILABLE": "K dispozici nejsou žádné odpovědi v WhatsApp", "NO_WHATSAPPDISPOSITION_AVAILABLE": "K dispozici nejsou žádné dispozice WhatsApp", "NO_WHATSAPP_ACCOUNTS_AVAILABLE": "Nejsou k dispozici žádné účty WhatsApp", + "OF": "z", + "OPENED": "Otevřeno", + "PAGE": "Strana", + "PARTIALPAUSE": "Částečná pauza", + "PAUSE": "Pauza", + "PAUSED": "Pozastaveno", + "PAUSE_TIME": "Pauza čas", + "PHONE": "Telefon", + "PRIORITY": "Přednost", + "PROXY": "Proxy", + "QUEUE": "Fronta", + "QUEUES": "Fronty", + "QUEUETRANSFER": "Převod fronty", + "QUEUETRANSFERTIMEOUT": "Časový limit přenosu fronty", + "READY": "Připraveno", + "REALTIME": "Reálný čas", + "RECEIVEURL": "Přijmout adresu URL", + "REFRESH_INTERACTIONS": "Aktualizujte interakce", "REMOTE": "Dálkový", + "ROWSPERPAGE": "Řádky na stránku", + "SAVE": "Uložit", + "SCREENRECORDING": "Spravovat nahrávání obrazovky", + "SEARCH_FOR_ANYONE": "Vyhledávání", + "SECRETACCESSKEY": "Přístup k tajným klíčům", + "SELECTED": "Vybraný", + "SELECTED_AGENTS": "Vybraní agenti", + "SELECTED_TEAMS": "Vybrané týmy", + "SELECT_ALL": "Vybrat vše", + "SELECT_NONE": "Vyberte žádný", + "SEND": "Poslat", + "SETTINGS": "Nastavení", + "SPYINTERACTION": "Špionážní interakce", + "STARTEDAT": "Začal v", + "START_SCREENRECORDING": "Spusťte nahrávání obrazovky", + "STATUS": "Postavení", + "STOP_SCREENRECORDING": "Zastavte nahrávání obrazovky", + "STRATEGY": "Strategie", + "SYSTEM": "Systém", + "TAG": "Štítek", + "TAGS": "Značky", "TEAMADD_WHATSAPPQUEUE": "Přidat tým do fronty WhatsApp", + "TEAMS_ASSOCIATION": "Asociace týmů", + "TEXT": "Text", + "TIMEOUT": "Časový limit", + "TIMER": "Časovač", + "TIMES": "Krát", + "TO": "Na", + "TOKEN": "Žeton", + "TOOLTIP_SCREENRECORDING_OFF": "K dispozici je nahrávání obrazovky", + "TOOLTIP_SCREENRECORDING_ON": "Probíhá nahrávání obrazovky", + "TRANSFER": "Převod", + "TRUEPRIORITY": "Skutečná priorita", + "TYPE": "Typ", + "UNPAUSE": "Ukončit pauzu", + "VALUE": "Hodnota", + "VARIABLE": "Proměnná", + "WAITFORTHEASSIGNEDAGENT": "Počkejte na přiřazeného agenta", + "WAITING": "Čekání", + "WELCOMEMESSAGE": "Uvítací zpráva", + "WHATSAPP": "WhatsApp Connector", "WHATSAPPACCOUNTS": "WhatsApp účty", "WHATSAPPCANNEDANSWERS": "WhatsApp Konzervované odpovědi", "WHATSAPPDISPOSITIONS": "Dispozice WhatsApp", - "WHATSAPPQUEUES": "Fronty WhatsApp" + "WHATSAPPQUEUES": "Fronty WhatsApp", + "CLIENTEMAIL": "E-mail klienta", + "DIALOGFLOWV2": "Dialogflow V2", + "EDIT_DIALOGFLOWV2": "Upravit Dialogflow V2", + "PRIVATEKEY": "Soukromý klíč", + "PROJECTID": "ID projektu" } } diff --git a/public/app/main/apps/whatsapp/i18n/da.json b/public/app/main/apps/whatsapp/i18n/da.json index 33bed6e..67fc111 100644 --- a/public/app/main/apps/whatsapp/i18n/da.json +++ b/public/app/main/apps/whatsapp/i18n/da.json @@ -1,47 +1,244 @@ { "WHATSAPP": { "ERRORS": { + "ACCESSKEYID_REQUIRED": "Obligatorisk felt", + "ACCOUNTSID_REQUIRED": "Obligatorisk felt", + "AGENTTRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Værdien skal være større eller lig med", + "AGENTTRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Værdien skal være mindre eller lig med", + "AGENTTRANSFERTIMEOUT_REQUIRED": "Obligatorisk felt", + "AGENT_REQUIRED": "Obligatorisk felt", + "AGENT_TIMEOUT_REQUIRED": "Obligatorisk felt", + "AUTHTOKEN_REQUIRED": "Obligatorisk felt", + "BOTNAME_REQUIRED": "Obligatorisk felt", + "COMMAND_REQUIRED": "Obligatorisk felt", + "CONDITION_REQUIRED": "Obligatorisk felt", "DESCRIPTION_REQUIRED": "Obligatorisk felt", + "DISPOSITION_REQUIRED": "Obligatorisk felt", + "FALSEPRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Værdien skal være større eller lig med", + "FALSEPRIORITY_REQUIRED": "Obligatorisk felt", + "KEY_MAX_LENGTH": "Værdien skal have en maksimal længde lig med {{max}}", + "KEY_REQUIRED": "Obligatorisk felt", "LANGUAGE_REQUIRED": "Mandtory Field", "LEXREGION_REQUIRED": "Obligatorisk felt", + "LIST_REQUIRED": "Obligatorisk felt", + "MANDATORYDISPOSITIONPAUSEID_REQUIRED": "Obligatorisk felt", + "NAME_REQUIRED": "Obligatorisk felt", + "PHONE_REQUIRED": "Obligatorisk felt", + "PRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Værdien skal være større eller lig med", + "PRIORITY_REQUIRED": "Obligatorisk felt", + "QUEUETRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Værdien skal være større eller lig med", + "QUEUETRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Værdien skal være mindre eller lig med", + "QUEUETRANSFERTIMEOUT_REQUIRED": "Obligatorisk felt", + "QUEUE_REQUIRED": "Obligatorisk felt", + "SECRETACCESSKEY_REQUIRED": "Obligatorisk felt", + "TAG_REQUIRED": "Obligatorisk felt", + "TEXT_REQUIRED": "Obligatorisk felt", + "TIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Værdien skal være større eller lig med", + "TIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Værdien skal være mindre eller lig med", + "TIMEOUT_REQUIRED": "Obligatorisk felt", "TIMES_REQUIRED": "Obligatorisk felt", + "TOKEN_REQUIRED": "Obligatorisk felt", + "TRUEPRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Værdien skal være større eller lig med", + "TRUEPRIORITY_REQUIRED": "Obligatorisk felt", + "TYPE_REQUIRED": "Obligatorisk felt", + "VALUE_REQUIRED": "Obligatorisk felt", "VARIABLE_REQUIRED": "Obligatorisk felt", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Værdien skal være større eller lig med", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Værdien skal være mindre eller lig med", + "WAITFORTHEASSIGNEDAGENT_REQUIRED": "Obligatorisk felt", "WELCOMEMESSAGE_MAX_LENGTH": "Værdien skal have en maksimal længde lig med {{max}}", - "WELCOMEMESSAGE_REQUIRED": "Obligatorisk felt" + "WELCOMEMESSAGE_REQUIRED": "Obligatorisk felt", + "CLIENTEMAIL_REQUIRED": "Obligatorisk felt", + "PRIVATEKEY_REQUIRED": "Obligatorisk felt", + "PROJECTID_REQUIRED": "Obligatorisk felt" }, - "HELP": {}, + "HELP": { + "LIST": "Kontakt Manager-liste, der bruges til at knytte kontakter", + "MANDATORYDISPOSITION": "Obligatorisk disposition", + "MANDATORYDISPOSITIONPAUSEID": "Brug pause, når obligatorisk disposition er aktiveret", + "MOTIONPROXY": "Feltet skal have følgende format: : // [: ]. Eksempel: https: //X.Y.Z.W", + "NAME": "Kun tal, bogstaver og specifikke tegn (._) understøttes", + "RECEIVEURL": "Dette er den auto-genererede API-streng, du skal bruge til at modtage meddelelserne på din konto fra din WhatsApp Connector-udbyder (der skal bruges POST-metode): Klik på udklipsholder-knappen for at kopiere den", + "WELCOMEMESSAGE": "Dette er den første svarmeddelelse sendt til nye interaktioner" + }, + "ACCESSKEYID": "Adgangskode-ID", + "ACCOUNTSID": "Konto SID", + "ACTIONS": "Handlinger", + "ADD_NOTE": "Tilføj note", "ADD_WHATSAPPACCOUNT": "Tilføje", "ADD_WHATSAPPCANNEDANSWER": "Tilføj konserveret svar", "ADD_WHATSAPPDISPOSITION": "Tilføj WhatsApp-disposition", "ADD_WHATSAPPQUEUE": "Tilføj WhatsApp-kø", + "ADVANCED": "Fremskreden", + "AGENT": "Agent", "AGENTADD_QUEUE": "Føj agent til WhatsApp-køen", "AGENTADD_WHATSAPPACCOUNT": "Føj agent til WhatsApp-konto", "AGENTADD_WHATSAPPQUEUE": "Føj agent til WhatsApp-køen", + "AGENTS": "Agenter", + "AGENTSADD_QUEUE": "Føj agenter til WhatsApp-køen", + "AGENTTRANSFER": "Agentoverførsel", + "AGENTTRANSFERTIMEOUT": "Agentoverførsels-timeout", + "AGENT_TIMEOUT": "Agent timeout", + "ALL": "Alle", + "ALL_AGENTS": "Alle agenter", + "ALL_TEAMS": "Alle hold", + "AMAZONLEX": "AmazonLex", "AUTHTOKEN": "Autentisk token", + "AUTOREPLY": "Auto svar", + "BACK": "Tilbage", + "BOTNAME": "Bot navn", + "BUSY": "Travl", + "CANNEDANSWERS": "Hermetiske svar", + "CANNED_ANSWER_NOT_FOUND": "Ingen konserverede svar blev fundet", + "CANNED_ANSWER_SEARCH": "Indtast en tekst for at søge i et hermetisk svar", + "CAPACITY": "Kapacitet", + "CLOSE": "Tæt", + "CLOSED": "Lukket", + "CLOSEMETHOD": "Luk metode", + "CLOSEURL": "Luk URL", + "COMMAND": "Kommando", + "CONDITION": "Tilstand", + "CONTACT": "Kontakt", + "CREATED_AT": "Oprettet kl", + "DEFAULT_PAUSE": "DEFAULT PAUSE", + "DELETE": "Slet", + "DELETE_INTERACTION": "Slet interaktion", + "DELETE_SELECTED": "Slet valgt", "DELETE_WHATSAPPACCOUNT": "Slet WhatsApp-konto", "DELETE_WHATSAPPCANNEDANSWER": "Slettet", "DELETE_WHATSAPPDISPOSITION": "Slet WhatsApp-disposition", "DELETE_WHATSAPPQUEUE": "Slet WhatsApp-kø", + "DESCRIPTION": "Beskrivelse", + "DIALOGFLOW": "DialogFlow", + "DISPOSITION": "disposition", + "DISPOSITIONS": "dispositioner", + "DOWNLOAD_INTERACTION": "Hent", + "DOWNLOAD_WITHOUT_ATTACHMENTS": "Download uden vedhæftede filer", + "DOWNLOAD_WITH_ATTACHMENTS": "Download med vedhæftede filer", + "EDIT_AGENT": "Rediger agent", + "EDIT_AMAZONLEX": "Rediger Lex-konfiguration", + "EDIT_AUTOREPLY": "Rediger autosvar", + "EDIT_CLOSE": "Rediger Luk", + "EDIT_DIALOGFLOW": "Rediger DialogFlow-konfiguration", + "EDIT_GOTOIF": "Rediger Gotoif", + "EDIT_GOTOP": "Rediger Gotop", + "EDIT_NOOP": "Rediger Noop", + "EDIT_QUEUE": "Rediger kø", + "EDIT_SYSTEM": "Rediger system", + "EDIT_TAG": "Rediger tag", "EDIT_WHATSAPPACCOUNT": "Rediger WhatsApp-konto", "EDIT_WHATSAPPCANNEDANSWER": "Redigere", "EDIT_WHATSAPPDISPOSITION": "Rediger WhatsApp-disposition", "EDIT_WHATSAPPQUEUE": "Rediger WhatsApp-kø", + "FALSEPRIORITY": "Falsk prioritet", + "GENERAL": "Generel", + "GOTOIF": "Gotoif", + "GOTOP": "Gotop", "GOTOREALTIME_WHATSAPPQUEUE": "Gå til WhatsApp-kø i realtid", "GO_TO_WHATSAPPACCOUNTS": "Gå til konto", + "ID": "Id", + "IDLE": "Ledig", + "INSERT_MESSAGE_HERE": "Indsæt meddelelse her", + "INTERACTIONS": "Interaktioner", "INTERACTIONS_WHATSAPPACCOUNT": "Gå til interaktioner", + "KEY": "Nøgle", + "LANGUAGE": "Sprog", + "LASTMESSAGE": "Sidste meddelelse", + "LEXREGION": "Område", + "LIST": "Liste", + "LOGGED_IN": "Logget ind (SIP tilsluttet)", + "LOGIN_TIME": "Login tid", + "LOGOUT": "Log ud", + "MANDATORYDISPOSITION": "Obligatorisk disposition", + "MANDATORYDISPOSITIONPAUSEID": "Brug pause, når obligatorisk disposition er aktiveret", + "MORE": "Mere", + "MOTIONPROXY": "Proxy- eller bevægelsesdomæne", "MULTI_SELECT_TOGGLE": "Multivælge skifte", + "NAME": "Navn", "NEW_WHATSAPPACCOUNT": "Ny WhatsApp-konto", "NEW_WHATSAPPCANNEDANSWER": "Nyt WhatsApp-konserveret svar", "NEW_WHATSAPPDISPOSITION": "Ny WhatsApp-disposition", "NEW_WHATSAPPQUEUE": "Ny WhatsApp-kø", + "NOOP": "Noop", + "NOTE": "Bemærk", + "NOTIFICATION": "Notifikation", + "NOTIFICATIONSHAKE": "Ryste", + "NOTIFICATIONSOUND": "Lyd", + "NOTIFICATIONTEMPLATE": "Skabelon", + "NO_AGENT_ONLINE": "Ingen agent online", + "NO_AVAILABLE_INFO": "Ingen tilgængelige oplysninger", + "NO_INTERACTION_AVAILABLE": "Ingen interaktioner tilgængelige", "NO_WHATSAPPCANNEDANSWER_AVAILABLE": "Ingen WhatsApp-konserverede svar tilgængelige", "NO_WHATSAPPDISPOSITION_AVAILABLE": "Der er ingen tilgængelige WhatsApp-dispositioner", "NO_WHATSAPP_ACCOUNTS_AVAILABLE": "Ingen WhatsApp-konti til rådighed", + "OF": "af", + "OPENED": "åbnede", + "PAGE": "Side", + "PARTIALPAUSE": "Delvis pause", + "PAUSE": "Pause", + "PAUSED": "Pause", + "PAUSE_TIME": "Pausetid", + "PHONE": "telefon", + "PRIORITY": "Prioritet", + "PROXY": "Proxy", + "QUEUE": "Kø", + "QUEUES": "Køer", + "QUEUETRANSFER": "Køoverførsel", + "QUEUETRANSFERTIMEOUT": "Timeover for køoverførsel", + "READY": "Parat", + "REALTIME": "Realtid", + "RECEIVEURL": "Modtag URL", + "REFRESH_INTERACTIONS": "Opdater interaktioner", "REMOTE": "Fjern", + "ROWSPERPAGE": "Rækker pr. Side", + "SAVE": "Gemme", + "SCREENRECORDING": "Administrer skærmoptagelse", + "SEARCH_FOR_ANYONE": "Søg", + "SECRETACCESSKEY": "Adgangsnøglehemmelighed", + "SELECTED": "Valgte", + "SELECTED_AGENTS": "Udvalgte agenter", + "SELECTED_TEAMS": "Udvalgte hold", + "SELECT_ALL": "Vælg alle", + "SELECT_NONE": "Vælg ingen", + "SEND": "Sende", + "SETTINGS": "Indstillinger", + "SPYINTERACTION": "Spy-interaktion", + "STARTEDAT": "Begyndte kl", + "START_SCREENRECORDING": "Start skærmoptagelse", + "STATUS": "status", + "STOP_SCREENRECORDING": "Optagelse af stopskærm", + "STRATEGY": "Strategi", + "SYSTEM": "System", + "TAG": "tag", + "TAGS": "Tags", "TEAMADD_WHATSAPPQUEUE": "Føj team til WhatsApp-køen", + "TEAMS_ASSOCIATION": "Holdforening", + "TEXT": "Tekst", + "TIMEOUT": "Tiden er gået", + "TIMER": "Timer", + "TIMES": "Times", + "TO": "Til", + "TOKEN": "Polet", + "TOOLTIP_SCREENRECORDING_OFF": "Screen optagelse tilgængelig", + "TOOLTIP_SCREENRECORDING_ON": "Skærmoptagelse pågår", + "TRANSFER": "Overførsel", + "TRUEPRIORITY": "Ægte prioritet", + "TYPE": "Type", + "UNPAUSE": "Slutpause", + "VALUE": "Værdi", + "VARIABLE": "Variabel", + "WAITFORTHEASSIGNEDAGENT": "Vent på den tildelte agent", + "WAITING": "Venter", + "WELCOMEMESSAGE": "Velkomstbesked", + "WHATSAPP": "WhatsApp-stik", "WHATSAPPACCOUNTS": "WhatsApp-konti", "WHATSAPPCANNEDANSWERS": "WhatsApp-konserverede svar", "WHATSAPPDISPOSITIONS": "WhatsApp-dispositioner", - "WHATSAPPQUEUES": "WhatsApp køer" + "WHATSAPPQUEUES": "WhatsApp køer", + "CLIENTEMAIL": "Klientens e-mail", + "DIALOGFLOWV2": "Dialogflow V2", + "EDIT_DIALOGFLOWV2": "Rediger Dialogflow V2", + "PRIVATEKEY": "Privat nøgle", + "PROJECTID": "Projekt-id" } } diff --git a/public/app/main/apps/whatsapp/i18n/de.json b/public/app/main/apps/whatsapp/i18n/de.json index b16b468..ed33fcd 100644 --- a/public/app/main/apps/whatsapp/i18n/de.json +++ b/public/app/main/apps/whatsapp/i18n/de.json @@ -1,47 +1,244 @@ { "WHATSAPP": { "ERRORS": { + "ACCESSKEYID_REQUIRED": "Pflichtfeld", + "ACCOUNTSID_REQUIRED": "Pflichtfeld", + "AGENTTRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Der Wert muss größer oder gleich sein als", + "AGENTTRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Der Wert muss kleiner oder gleich sein", + "AGENTTRANSFERTIMEOUT_REQUIRED": "Pflichtfeld", + "AGENT_REQUIRED": "Pflichtfeld", + "AGENT_TIMEOUT_REQUIRED": "Pflichtfeld", + "AUTHTOKEN_REQUIRED": "Pflichtfeld", + "BOTNAME_REQUIRED": "Pflichtfeld", + "COMMAND_REQUIRED": "Pflichtfeld", + "CONDITION_REQUIRED": "Pflichtfeld", "DESCRIPTION_REQUIRED": "Pflichtfeld", + "DISPOSITION_REQUIRED": "Pflichtfeld", + "FALSEPRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Der Wert muss größer oder gleich sein als", + "FALSEPRIORITY_REQUIRED": "Pflichtfeld", + "KEY_MAX_LENGTH": "Der Wert muss eine maximale Länge von {{max}} haben", + "KEY_REQUIRED": "Pflichtfeld", "LANGUAGE_REQUIRED": "Pflichtfeld", "LEXREGION_REQUIRED": "Pflichtfeld", + "LIST_REQUIRED": "Pflichtfeld", + "MANDATORYDISPOSITIONPAUSEID_REQUIRED": "Pflichtfeld", + "NAME_REQUIRED": "Pflichtfeld", + "PHONE_REQUIRED": "Pflichtfeld", + "PRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Der Wert muss größer oder gleich sein als", + "PRIORITY_REQUIRED": "Pflichtfeld", + "QUEUETRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Der Wert muss größer oder gleich sein als", + "QUEUETRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Der Wert muss kleiner oder gleich sein", + "QUEUETRANSFERTIMEOUT_REQUIRED": "Pflichtfeld", + "QUEUE_REQUIRED": "Pflichtfeld", + "SECRETACCESSKEY_REQUIRED": "Pflichtfeld", + "TAG_REQUIRED": "Pflichtfeld", + "TEXT_REQUIRED": "Pflichtfeld", + "TIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Der Wert muss größer oder gleich sein als", + "TIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Der Wert muss kleiner oder gleich sein", + "TIMEOUT_REQUIRED": "Pflichtfeld", "TIMES_REQUIRED": "Pflichtfeld", + "TOKEN_REQUIRED": "Pflichtfeld", + "TRUEPRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Der Wert muss größer oder gleich sein als", + "TRUEPRIORITY_REQUIRED": "Pflichtfeld", + "TYPE_REQUIRED": "Pflichtfeld", + "VALUE_REQUIRED": "Pflichtfeld", "VARIABLE_REQUIRED": "Pflichtfeld", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Der Wert muss größer oder gleich sein als", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Der Wert muss kleiner oder gleich sein", + "WAITFORTHEASSIGNEDAGENT_REQUIRED": "Pflichtfeld", "WELCOMEMESSAGE_MAX_LENGTH": "Der Wert muss eine maximale Länge von {{max}} haben", - "WELCOMEMESSAGE_REQUIRED": "Pflichtfeld" + "WELCOMEMESSAGE_REQUIRED": "Pflichtfeld", + "CLIENTEMAIL_REQUIRED": "Pflichtfeld", + "PRIVATEKEY_REQUIRED": "Pflichtfeld", + "PROJECTID_REQUIRED": "Pflichtfeld" }, - "HELP": {}, + "HELP": { + "LIST": "Kontaktmanagerliste zum Zuordnen von Kontakten", + "MANDATORYDISPOSITION": "Obligatorische Disposition", + "MANDATORYDISPOSITIONPAUSEID": "Pause, um zu verwenden, wenn die obligatorische Disposition aktiviert ist", + "MOTIONPROXY": "Das Feld muss das folgende Format haben: : // [: ]. Beispiel: https: //X.Y.Z.W", + "NAME": "Es werden nur Zahlen, Buchstaben und bestimmte Zeichen (._) unterstützt", + "RECEIVEURL": "Dies ist die automatisch generierte API-Zeichenfolge, die Sie zum Empfangen der Nachrichten in Ihrem Konto von Ihrem WhatsApp Connector-Anbieter verwenden müssen (POST-Methode muss verwendet werden): Klicken Sie auf die Schaltfläche in der Zwischenablage, um sie zu kopieren", + "WELCOMEMESSAGE": "Dies ist die erste Antwortnachricht, die an neue Interaktionen gesendet wird" + }, + "ACCESSKEYID": "Zugriffsschlüssel-ID", + "ACCOUNTSID": "Konto-SID", + "ACTIONS": "Aktionen", + "ADD_NOTE": "Notiz hinzufügen", "ADD_WHATSAPPACCOUNT": "Hinzufügen", "ADD_WHATSAPPCANNEDANSWER": "Eingemachte Antwort hinzufügen", "ADD_WHATSAPPDISPOSITION": "WhatsApp Disposition hinzufügen", "ADD_WHATSAPPQUEUE": "WhatsApp-Warteschlange hinzufügen", + "ADVANCED": "Fortgeschrittene", + "AGENT": "Agent", "AGENTADD_QUEUE": "Agent zur WhatsApp-Warteschlange hinzufügen", "AGENTADD_WHATSAPPACCOUNT": "Agent zum WhatsApp-Konto hinzufügen", "AGENTADD_WHATSAPPQUEUE": "Agent zur WhatsApp-Warteschlange hinzufügen", + "AGENTS": "Agenten", + "AGENTSADD_QUEUE": "Hinzufügen von Agenten zur WhatsApp-Warteschlange", + "AGENTTRANSFER": "Agententransfer", + "AGENTTRANSFERTIMEOUT": "Zeitüberschreitung bei der Agentenübertragung", + "AGENT_TIMEOUT": "Agent Timeout", + "ALL": "Alles", + "ALL_AGENTS": "Alle Agenten", + "ALL_TEAMS": "Alle Teams", + "AMAZONLEX": "AmazonLex", "AUTHTOKEN": "Auth Token", + "AUTOREPLY": "Automatische Antwort", + "BACK": "Zurück", + "BOTNAME": "Bot Name", + "BUSY": "Beschäftigt", + "CANNEDANSWERS": "Eingemachte Antworten", + "CANNED_ANSWER_NOT_FOUND": "Es wurden keine Antworten in Dosen gefunden", + "CANNED_ANSWER_SEARCH": "Geben Sie einen Text ein, um eine vordefinierte Antwort zu suchen", + "CAPACITY": "Kapazität", + "CLOSE": "Schließen", + "CLOSED": "Geschlossen", + "CLOSEMETHOD": "Methode schließen", + "CLOSEURL": "URL schließen", + "COMMAND": "Befehl", + "CONDITION": "Bedingung", + "CONTACT": "Kontakt", + "CREATED_AT": "Hergestellt in", + "DEFAULT_PAUSE": "STANDARD PAUSE", + "DELETE": "Löschen", + "DELETE_INTERACTION": "Interaktion löschen", + "DELETE_SELECTED": "Ausgewählte löschen", "DELETE_WHATSAPPACCOUNT": "WhatsApp-Konto löschen", "DELETE_WHATSAPPCANNEDANSWER": "Gelöscht", "DELETE_WHATSAPPDISPOSITION": "WhatsApp-Disposition löschen", "DELETE_WHATSAPPQUEUE": "WhatsApp-Warteschlange löschen", + "DESCRIPTION": "Beschreibung", + "DIALOGFLOW": "DialogFlow", + "DISPOSITION": "Anordnung", + "DISPOSITIONS": "Dispositionen", + "DOWNLOAD_INTERACTION": "Herunterladen", + "DOWNLOAD_WITHOUT_ATTACHMENTS": "Ohne Anhänge herunterladen", + "DOWNLOAD_WITH_ATTACHMENTS": "Mit Anhängen herunterladen", + "EDIT_AGENT": "Agent bearbeiten", + "EDIT_AMAZONLEX": "Bearbeiten Sie die Lex-Konfiguration", + "EDIT_AUTOREPLY": "Automatische Antwort bearbeiten", + "EDIT_CLOSE": "Bearbeiten Schließen", + "EDIT_DIALOGFLOW": "Bearbeiten Sie die DialogFlow-Konfiguration", + "EDIT_GOTOIF": "Bearbeiten Sie Gotoif", + "EDIT_GOTOP": "Gotop bearbeiten", + "EDIT_NOOP": "Noop bearbeiten", + "EDIT_QUEUE": "Warteschlange bearbeiten", + "EDIT_SYSTEM": "System bearbeiten", + "EDIT_TAG": "Tag bearbeiten", "EDIT_WHATSAPPACCOUNT": "WhatsApp-Konto bearbeiten", "EDIT_WHATSAPPCANNEDANSWER": "Bearbeiten", "EDIT_WHATSAPPDISPOSITION": "WhatsApp-Disposition bearbeiten", "EDIT_WHATSAPPQUEUE": "Bearbeiten Sie die WhatsApp-Warteschlange", + "FALSEPRIORITY": "Falsche Priorität", + "GENERAL": "Allgemeines", + "GOTOIF": "Gotoif", + "GOTOP": "Zum Seitenanfang", "GOTOREALTIME_WHATSAPPQUEUE": "Wechseln Sie zur WhatsApp-Warteschlange in Echtzeit", "GO_TO_WHATSAPPACCOUNTS": "Gehe zu Konto", + "ID": "Ich würde", + "IDLE": "Leerlauf", + "INSERT_MESSAGE_HERE": "Nachricht hier einfügen", + "INTERACTIONS": "Interaktionen", "INTERACTIONS_WHATSAPPACCOUNT": "Gehen Sie zu Interaktionen", + "KEY": "Schlüssel", + "LANGUAGE": "Sprache", + "LASTMESSAGE": "Letzte Nachricht", + "LEXREGION": "Region", + "LIST": "Aufführen", + "LOGGED_IN": "Eingeloggt (SIP verbunden)", + "LOGIN_TIME": "Anmeldezeit", + "LOGOUT": "Ausloggen", + "MANDATORYDISPOSITION": "Obligatorische Disposition", + "MANDATORYDISPOSITIONPAUSEID": "Pause, um zu verwenden, wenn die obligatorische Disposition aktiviert ist", + "MORE": "Mehr", + "MOTIONPROXY": "Proxy- oder Bewegungsdomäne", "MULTI_SELECT_TOGGLE": "Mehrfachauswahl umschalten", + "NAME": "Name", "NEW_WHATSAPPACCOUNT": "Neues WhatsApp-Konto", "NEW_WHATSAPPCANNEDANSWER": "Neue WhatsApp-Antwort in Dosen", "NEW_WHATSAPPDISPOSITION": "Neue WhatsApp-Disposition", "NEW_WHATSAPPQUEUE": "Neue WhatsApp-Warteschlange", + "NOOP": "Noop", + "NOTE": "Hinweis", + "NOTIFICATION": "Benachrichtigung", + "NOTIFICATIONSHAKE": "Shake", + "NOTIFICATIONSOUND": "Klang", + "NOTIFICATIONTEMPLATE": "Vorlage", + "NO_AGENT_ONLINE": "Kein Agent online", + "NO_AVAILABLE_INFO": "Keine verfügbaren Informationen", + "NO_INTERACTION_AVAILABLE": "Keine Interaktionen verfügbar", "NO_WHATSAPPCANNEDANSWER_AVAILABLE": "Keine WhatsApp-Antworten verfügbar", "NO_WHATSAPPDISPOSITION_AVAILABLE": "Keine WhatsApp-Dispositionen verfügbar", "NO_WHATSAPP_ACCOUNTS_AVAILABLE": "Keine WhatsApp-Konten verfügbar", + "OF": "von", + "OPENED": "Geöffnet", + "PAGE": "Seite", + "PARTIALPAUSE": "Teilpause", + "PAUSE": "Pause", + "PAUSED": "Pause", + "PAUSE_TIME": "Pausenzeit", + "PHONE": "Telefon", + "PRIORITY": "Priorität", + "PROXY": "Proxy", + "QUEUE": "Warteschlange", + "QUEUES": "Warteschlangen", + "QUEUETRANSFER": "Warteschlangenübertragung", + "QUEUETRANSFERTIMEOUT": "Zeitüberschreitung bei der Warteschlangenübertragung", + "READY": "Bereit", + "REALTIME": "Echtzeit", + "RECEIVEURL": "URL erhalten", + "REFRESH_INTERACTIONS": "Interaktionen aktualisieren", "REMOTE": "Fernbedienung", + "ROWSPERPAGE": "Zeilen pro Seite", + "SAVE": "sparen", + "SCREENRECORDING": "Bildschirmaufzeichnung verwalten", + "SEARCH_FOR_ANYONE": "Suche", + "SECRETACCESSKEY": "Zugriffsschlüsselgeheimnis", + "SELECTED": "Ausgewählt", + "SELECTED_AGENTS": "Ausgewählte Agenten", + "SELECTED_TEAMS": "Ausgewählte Teams", + "SELECT_ALL": "Wählen Sie Alle", + "SELECT_NONE": "Nichts ausgewählt", + "SEND": "Senden", + "SETTINGS": "die Einstellungen", + "SPYINTERACTION": "Spionage-Interaktion", + "STARTEDAT": "Fing an bei", + "START_SCREENRECORDING": "Bildschirmaufnahme starten", + "STATUS": "Status", + "STOP_SCREENRECORDING": "Bildschirmaufzeichnung stoppen", + "STRATEGY": "Strategie", + "SYSTEM": "System", + "TAG": "Etikett", + "TAGS": "Stichworte", "TEAMADD_WHATSAPPQUEUE": "Team zur WhatsApp-Warteschlange hinzufügen", + "TEAMS_ASSOCIATION": "Mannschaftsverband", + "TEXT": "Text", + "TIMEOUT": "Auszeit", + "TIMER": "Timer", + "TIMES": "Mal", + "TO": "Zu", + "TOKEN": "Zeichen", + "TOOLTIP_SCREENRECORDING_OFF": "Bildschirmaufnahme verfügbar", + "TOOLTIP_SCREENRECORDING_ON": "Bildschirmaufnahme läuft", + "TRANSFER": "Transfer", + "TRUEPRIORITY": "Wahre Priorität", + "TYPE": "Art", + "UNPAUSE": "Pause beenden", + "VALUE": "Wert", + "VARIABLE": "Variable", + "WAITFORTHEASSIGNEDAGENT": "Warten Sie auf den zugewiesenen Agenten", + "WAITING": "Warten", + "WELCOMEMESSAGE": "Willkommensnachricht", + "WHATSAPP": "WhatsApp Connector", "WHATSAPPACCOUNTS": "WhatsApp-Konten", "WHATSAPPCANNEDANSWERS": "WhatsApp Canned Answers", "WHATSAPPDISPOSITIONS": "WhatsApp Dispositionen", - "WHATSAPPQUEUES": "WhatsApp-Warteschlangen" + "WHATSAPPQUEUES": "WhatsApp-Warteschlangen", + "CLIENTEMAIL": "Kunden-E-Mail", + "DIALOGFLOWV2": "Dialogflow V2", + "EDIT_DIALOGFLOWV2": "Dialogflow V2 bearbeiten", + "PRIVATEKEY": "Privat Schlüssel", + "PROJECTID": "Projekt-ID" } } diff --git a/public/app/main/apps/whatsapp/i18n/en.json b/public/app/main/apps/whatsapp/i18n/en.json index 7793c6d..0920067 100644 --- a/public/app/main/apps/whatsapp/i18n/en.json +++ b/public/app/main/apps/whatsapp/i18n/en.json @@ -1,44 +1,241 @@ { "WHATSAPP": { + "EDIT_DIALOGFLOWV2": "Edit Dialogflow V2", + "DIALOGFLOWV2": "Dialogflow V2", + "PRIVATEKEY": "Private Key", + "CLIENTEMAIL": "Client Email", + "PROJECTID": "Project ID", + "ACCESSKEYID": "Access Key ID", + "ACCOUNTSID": "Account SID", + "ACTIONS": "Actions", + "ADD_NOTE": "Add note", "ADD_WHATSAPPACCOUNT": "Add", "ADD_WHATSAPPCANNEDANSWER": "Add Canned Answer", "ADD_WHATSAPPDISPOSITION": "Add WhatsApp Disposition", "ADD_WHATSAPPQUEUE": "Add WhatsApp queue", + "ADVANCED": "Advanced", + "AGENT": "Agent", + "AGENT_TIMEOUT": "Agent Timeout", "AGENTADD_QUEUE": "Add Agent To WhatsApp Queue", "AGENTADD_WHATSAPPACCOUNT": "Add Agent To WhatsApp Account", "AGENTADD_WHATSAPPQUEUE": "Add Agent To WhatsApp Queue", + "AGENTS": "Agents", + "AGENTSADD_QUEUE": "Add agents to WhatsApp queue", + "AGENTTRANSFER": "Agent Transfer", + "AGENTTRANSFERTIMEOUT": "Agent Transfer Timeout", + "ALL": "All", + "ALL_AGENTS": "All Agents", + "ALL_TEAMS": "All Teams", + "AMAZONLEX": "AmazonLex", "AUTHTOKEN": "Auth Token", + "AUTOREPLY": "Auto Reply", + "BACK": "Back", + "BOTNAME": "Bot Name", + "BUSY": "Busy", + "CANNED_ANSWER_NOT_FOUND": "No Canned Answers were found", + "CANNED_ANSWER_SEARCH": "Enter a text to search a Canned Answer", + "CANNEDANSWERS": "Canned Answers", + "CAPACITY": "Capacity", + "CLOSE": "Close", + "CLOSED": "Closed", + "CLOSEMETHOD": "Close Method", + "CLOSEURL": "Close URL", + "COMMAND": "Command", + "CONDITION": "Condition", + "CONTACT": "Contact", + "CREATED_AT": "Created at", + "DEFAULT_PAUSE": "DEFAULT PAUSE", + "DELETE": "Delete", + "DELETE_INTERACTION": "Delete Interaction", + "DELETE_SELECTED": "Delete selected", "DELETE_WHATSAPPACCOUNT": "Delete WhatsApp Account", "DELETE_WHATSAPPCANNEDANSWER": "Deleted", "DELETE_WHATSAPPDISPOSITION": "Delete WhatsApp Disposition", "DELETE_WHATSAPPQUEUE": "Delete WhatsApp Queue", + "DESCRIPTION": "Description", + "DIALOGFLOW": "DialogFlow", + "DISPOSITION": "Disposition", + "DISPOSITIONS": "Dispositions", + "DOWNLOAD_INTERACTION": "Download", + "DOWNLOAD_WITH_ATTACHMENTS": "Download With Attachments", + "DOWNLOAD_WITHOUT_ATTACHMENTS": "Download Without Attachments", + "EDIT_AGENT": "Edit Agent", + "EDIT_AMAZONLEX": "Edit Lex configuration", + "EDIT_AUTOREPLY": "Edit Auto Reply", + "EDIT_CLOSE": "Edit Close", + "EDIT_DIALOGFLOW": "Edit DialogFlow configuration", + "EDIT_GOTOIF": "Edit Gotoif", + "EDIT_GOTOP": "Edit Gotop", + "EDIT_NOOP": "Edit Noop", + "EDIT_QUEUE": "Edit Queue", + "EDIT_SYSTEM": "Edit System", + "EDIT_TAG": "Edit Tag", "EDIT_WHATSAPPACCOUNT": "Edit WhatsApp Account", "EDIT_WHATSAPPCANNEDANSWER": "Edit", "EDIT_WHATSAPPDISPOSITION": "Edit WhatsApp Disposition", "EDIT_WHATSAPPQUEUE": "Edit WhatsApp Queue", "ERRORS": { + "PROJECTID_REQUIRED": "Mandatory Field", + "CLIENTEMAIL_REQUIRED": "Mandatory Field", + "PRIVATEKEY_REQUIRED": "Mandatory Field", + "ACCESSKEYID_REQUIRED": "Mandatory Field", + "ACCOUNTSID_REQUIRED": "Mandatory Field", + "AGENT_REQUIRED": "Mandatory Field", + "AGENT_TIMEOUT_REQUIRED": "Mandatory Field", + "AGENTTRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "The value must be greater or equal than", + "AGENTTRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "The value must be less or equal than", + "AGENTTRANSFERTIMEOUT_REQUIRED": "Mandatory Field", + "AUTHTOKEN_REQUIRED": "Mandatory Field", + "BOTNAME_REQUIRED": "Mandatory Field", + "COMMAND_REQUIRED": "Mandatory Field", + "CONDITION_REQUIRED": "Mandatory Field", "DESCRIPTION_REQUIRED": "Mandatory Field", + "DISPOSITION_REQUIRED": "Mandatory Field", + "FALSEPRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "The value must be greater or equal than", + "FALSEPRIORITY_REQUIRED": "Mandatory Field", + "KEY_MAX_LENGTH": "The value must have a maximum length equal to {{max}}", + "KEY_REQUIRED": "Mandatory Field", "LANGUAGE_REQUIRED": "Mandtory Field", "LEXREGION_REQUIRED": "Mandatory Field", + "LIST_REQUIRED": "Mandatory Field", + "MANDATORYDISPOSITIONPAUSEID_REQUIRED": "Mandatory Field", + "NAME_REQUIRED": "Mandatory Field", + "PHONE_REQUIRED": "Mandatory Field", + "PRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "The value must be greater or equal than", + "PRIORITY_REQUIRED": "Mandatory Field", + "QUEUE_REQUIRED": "Mandatory Field", + "QUEUETRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "The value must be greater or equal than", + "QUEUETRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "The value must be less or equal than", + "QUEUETRANSFERTIMEOUT_REQUIRED": "Mandatory Field", + "SECRETACCESSKEY_REQUIRED": "Mandatory Field", + "TAG_REQUIRED": "Mandatory Field", + "TEXT_REQUIRED": "Mandatory Field", + "TIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "The value must be greater or equal than", + "TIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "The value must be less or equal than", + "TIMEOUT_REQUIRED": "Mandatory Field", "TIMES_REQUIRED": "Mandatory Field", + "TOKEN_REQUIRED": "Mandatory Field", + "TRUEPRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "The value must be greater or equal than", + "TRUEPRIORITY_REQUIRED": "Mandatory Field", + "TYPE_REQUIRED": "Mandatory Field", + "VALUE_REQUIRED": "Mandatory Field", "VARIABLE_REQUIRED": "Mandatory Field", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "The value must be greater or equal than", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "The value must be less or equal than", + "WAITFORTHEASSIGNEDAGENT_REQUIRED": "Mandatory Field", "WELCOMEMESSAGE_MAX_LENGTH": "The value must have a maximum length equal to {{max}}", "WELCOMEMESSAGE_REQUIRED": "Mandatory Field" }, + "FALSEPRIORITY": "False Priority", + "GENERAL": "General", "GO_TO_WHATSAPPACCOUNTS": "Go To Account", + "GOTOIF": "Gotoif", + "GOTOP": "Gotop", "GOTOREALTIME_WHATSAPPQUEUE": "Go To Realtime WhatsApp Queue", - "HELP": {}, + "HELP": { + "LIST": "Contact Manager list used to associate contacts", + "MANDATORYDISPOSITION": "Mandatory disposition", + "MANDATORYDISPOSITIONPAUSEID": "Pause to use when mandatory disposition is enabled", + "MOTIONPROXY": "The field must have the following format: ://[:]. Example: https://X.Y.Z.W", + "NAME": "Only numbers, letters and specific characters (._) are supported", + "RECEIVEURL": "This is the auto-generated API string you need to use to receive the messages inside your account from your WhatsApp Connector provider (POST method must be used): click the clipboard button to copy it", + "WELCOMEMESSAGE": "This is the first response message sent to new interactions" + }, + "ID": "Id", + "IDLE": "Idle", + "INSERT_MESSAGE_HERE": "Insert message here", + "INTERACTIONS": "Interactions", "INTERACTIONS_WHATSAPPACCOUNT": "Go to Interactions", + "KEY": "Key", + "LANGUAGE": "Language", + "LASTMESSAGE": "Last Message", + "LEXREGION": "Region", + "LIST": "List", + "LOGGED_IN": "Logged In (SIP Connected)", + "LOGIN_TIME": "Login Time", + "LOGOUT": "Logout", + "MANDATORYDISPOSITION": "Mandatory Disposition", + "MANDATORYDISPOSITIONPAUSEID": "Pause to use when mandatory disposition is enabled", + "MORE": "More", + "MOTIONPROXY": "Proxy Or Motion Domain", "MULTI_SELECT_TOGGLE": "Multi select toggle", + "NAME": "Name", "NEW_WHATSAPPACCOUNT": "New WhatsApp Account", "NEW_WHATSAPPCANNEDANSWER": "New WhatsApp Canned Answer", "NEW_WHATSAPPDISPOSITION": "New WhatsApp Disposition", "NEW_WHATSAPPQUEUE": "New WhatsApp Queue", + "NO_AGENT_ONLINE": "No Agent Online", + "NO_AVAILABLE_INFO": "No Available Info", + "NO_INTERACTION_AVAILABLE": "No Interactions Available", "NO_WHATSAPP_ACCOUNTS_AVAILABLE": "No WhatsApp Accounts available", "NO_WHATSAPPCANNEDANSWER_AVAILABLE": "No WhatsApp Canned Answers Available", "NO_WHATSAPPDISPOSITION_AVAILABLE": "No WhatsApp Dispositions Available", + "NOOP": "Noop", + "NOTE": "Note", + "NOTIFICATION": "Notification", + "NOTIFICATIONSHAKE": "Shake", + "NOTIFICATIONSOUND": "Sound", + "NOTIFICATIONTEMPLATE": "Template", + "OF": "of", + "OPENED": "Opened", + "PAGE": "Page", + "PARTIALPAUSE": "Partial Pause", + "PAUSE": "Pause", + "PAUSE_TIME": "Pause Time", + "PAUSED": "Paused", + "PHONE": "Phone", + "PRIORITY": "Priority", + "PROXY": "Proxy", + "QUEUE": "Queue", + "QUEUES": "Queues", + "QUEUETRANSFER": "Queue Transfer", + "QUEUETRANSFERTIMEOUT": "Queue Transfer Timeout", + "READY": "Ready", + "REALTIME": "Realtime", + "RECEIVEURL": "Receive URL", + "REFRESH_INTERACTIONS": "Refresh Interactions", "REMOTE": "Remote", + "ROWSPERPAGE": "Rows per page", + "SAVE": "Save", + "SCREENRECORDING": "Manage Screen Recording", + "SEARCH_FOR_ANYONE": "Search", + "SECRETACCESSKEY": "Access key secret", + "SELECT_ALL": "Select all", + "SELECT_NONE": "Select none", + "SELECTED": "Selected", + "SELECTED_AGENTS": "Selected Agents", + "SELECTED_TEAMS": "Selected Teams", + "SEND": "Send", + "SETTINGS": "Settings", + "SPYINTERACTION": "Spy Interaction", + "START_SCREENRECORDING": "Start Screen Recording", + "STARTEDAT": "Started at", + "STATUS": "Status", + "STOP_SCREENRECORDING": "Stop Screen Recording", + "STRATEGY": "Strategy", + "SYSTEM": "System", + "TAG": "Tag", + "TAGS": "Tags", "TEAMADD_WHATSAPPQUEUE": "Add Team To WhatsApp Queue", + "TEAMS_ASSOCIATION": "Teams Association", + "TEXT": "Text", + "TIMEOUT": "Timeout", + "TIMER": "Timer", + "TIMES": "Times", + "TO": "To", + "TOKEN": "Token", + "TOOLTIP_SCREENRECORDING_OFF": "Screen Recording available", + "TOOLTIP_SCREENRECORDING_ON": "Screen Recording in progress", + "TRANSFER": "Transfer", + "TRUEPRIORITY": "True Priority", + "TYPE": "Type", + "UNPAUSE": "End Pause", + "VALUE": "Value", + "VARIABLE": "Variable", + "WAITFORTHEASSIGNEDAGENT": "Wait for the assigned agent", + "WAITING": "Waiting", + "WELCOMEMESSAGE": "Welcome Message", + "WHATSAPP": "WhatsApp Connector", "WHATSAPPACCOUNTS": "WhatsApp Accounts", "WHATSAPPCANNEDANSWERS": "WhatsApp Canned Answers", "WHATSAPPDISPOSITIONS": "WhatsApp Dispositions", diff --git a/public/app/main/apps/whatsapp/i18n/es.json b/public/app/main/apps/whatsapp/i18n/es.json index fcd6077..c027a1c 100644 --- a/public/app/main/apps/whatsapp/i18n/es.json +++ b/public/app/main/apps/whatsapp/i18n/es.json @@ -1,47 +1,244 @@ { "WHATSAPP": { "ERRORS": { + "ACCESSKEYID_REQUIRED": "Campo obligatorio", + "ACCOUNTSID_REQUIRED": "Campo obligatorio", + "AGENTTRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "El valor debe ser mayor o igual que", + "AGENTTRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "El valor debe ser menor o igual que", + "AGENTTRANSFERTIMEOUT_REQUIRED": "Campo obligatorio", + "AGENT_REQUIRED": "Campo obligatorio", + "AGENT_TIMEOUT_REQUIRED": "Campo obligatorio", + "AUTHTOKEN_REQUIRED": "Campo obligatorio", + "BOTNAME_REQUIRED": "Campo obligatorio", + "COMMAND_REQUIRED": "Campo obligatorio", + "CONDITION_REQUIRED": "Campo obligatorio", "DESCRIPTION_REQUIRED": "Campo obligatorio", + "DISPOSITION_REQUIRED": "Campo obligatorio", + "FALSEPRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "El valor debe ser mayor o igual que", + "FALSEPRIORITY_REQUIRED": "Campo obligatorio", + "KEY_MAX_LENGTH": "El valor debe tener una longitud máxima igual a {{max}}", + "KEY_REQUIRED": "Campo obligatorio", "LANGUAGE_REQUIRED": "Campo mandtory", "LEXREGION_REQUIRED": "Campo obligatorio", + "LIST_REQUIRED": "Campo obligatorio", + "MANDATORYDISPOSITIONPAUSEID_REQUIRED": "Campo obligatorio", + "NAME_REQUIRED": "Campo obligatorio", + "PHONE_REQUIRED": "Campo obligatorio", + "PRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "El valor debe ser mayor o igual que", + "PRIORITY_REQUIRED": "Campo obligatorio", + "QUEUETRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "El valor debe ser mayor o igual que", + "QUEUETRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "El valor debe ser menor o igual que", + "QUEUETRANSFERTIMEOUT_REQUIRED": "Campo obligatorio", + "QUEUE_REQUIRED": "Campo obligatorio", + "SECRETACCESSKEY_REQUIRED": "Campo obligatorio", + "TAG_REQUIRED": "Campo obligatorio", + "TEXT_REQUIRED": "Campo obligatorio", + "TIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "El valor debe ser mayor o igual que", + "TIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "El valor debe ser menor o igual que", + "TIMEOUT_REQUIRED": "Campo obligatorio", "TIMES_REQUIRED": "Campo obligatorio", + "TOKEN_REQUIRED": "Campo obligatorio", + "TRUEPRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "El valor debe ser mayor o igual que", + "TRUEPRIORITY_REQUIRED": "Campo obligatorio", + "TYPE_REQUIRED": "Campo obligatorio", + "VALUE_REQUIRED": "Campo obligatorio", "VARIABLE_REQUIRED": "Campo obligatorio", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "El valor debe ser mayor o igual que", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "El valor debe ser menor o igual que", + "WAITFORTHEASSIGNEDAGENT_REQUIRED": "Campo obligatorio", "WELCOMEMESSAGE_MAX_LENGTH": "El valor debe tener una longitud máxima igual a {{max}}", - "WELCOMEMESSAGE_REQUIRED": "Campo obligatorio" + "WELCOMEMESSAGE_REQUIRED": "Campo obligatorio", + "CLIENTEMAIL_REQUIRED": "Campo obligatorio", + "PRIVATEKEY_REQUIRED": "Campo obligatorio", + "PROJECTID_REQUIRED": "Campo obligatorio" }, - "HELP": {}, + "HELP": { + "LIST": "Lista de administrador de contactos utilizada para asociar contactos", + "MANDATORYDISPOSITION": "Disposición obligatoria", + "MANDATORYDISPOSITIONPAUSEID": "Pausar para usar cuando la disposición obligatoria está habilitada", + "MOTIONPROXY": "El campo debe tener el siguiente formato: : // [: ]. Ejemplo: https: //X.Y.Z.W", + "NAME": "Solo se admiten números, letras y caracteres específicos (._)", + "RECEIVEURL": "Esta es la cadena de API generada automáticamente que debe usar para recibir los mensajes dentro de su cuenta de su proveedor de conector de WhatsApp (se debe usar el método POST): haga clic en el botón del portapapeles para copiarlo", + "WELCOMEMESSAGE": "Este es el primer mensaje de respuesta enviado a nuevas interacciones." + }, + "ACCESSKEYID": "ID de clave de acceso", + "ACCOUNTSID": "SID de cuenta", + "ACTIONS": "Comportamiento", + "ADD_NOTE": "Añadir la nota", "ADD_WHATSAPPACCOUNT": "Añadir", "ADD_WHATSAPPCANNEDANSWER": "Agregar respuesta predefinida", "ADD_WHATSAPPDISPOSITION": "Agregar disposición de WhatsApp", "ADD_WHATSAPPQUEUE": "Agregar cola de WhatsApp", + "ADVANCED": "Avanzado", + "AGENT": "Agente", "AGENTADD_QUEUE": "Agregar agente a la cola de WhatsApp", "AGENTADD_WHATSAPPACCOUNT": "Agregar agente a la cuenta de WhatsApp", "AGENTADD_WHATSAPPQUEUE": "Agregar agente a la cola de WhatsApp", + "AGENTS": "Agentes", + "AGENTSADD_QUEUE": "Agregar agentes a la cola de WhatsApp", + "AGENTTRANSFER": "Transferencia de agente", + "AGENTTRANSFERTIMEOUT": "Tiempo de espera de transferencia del agente", + "AGENT_TIMEOUT": "Tiempo de espera del agente", + "ALL": "Todas", + "ALL_AGENTS": "Todos los agentes", + "ALL_TEAMS": "Todos los equipos", + "AMAZONLEX": "AmazonLex", "AUTHTOKEN": "Token de autenticación", + "AUTOREPLY": "Respuesta automática", + "BACK": "Espalda", + "BOTNAME": "Nombre del bot", + "BUSY": "Ocupado", + "CANNEDANSWERS": "Respuestas enlatadas", + "CANNED_ANSWER_NOT_FOUND": "No se encontraron respuestas enlatadas", + "CANNED_ANSWER_SEARCH": "Ingrese un texto para buscar una respuesta predefinida", + "CAPACITY": "Capacidad", + "CLOSE": "Cerca", + "CLOSED": "Cerrado", + "CLOSEMETHOD": "Método de cierre", + "CLOSEURL": "Cerrar URL", + "COMMAND": "Mando", + "CONDITION": "Condición", + "CONTACT": "Contacto", + "CREATED_AT": "Creado en", + "DEFAULT_PAUSE": "PAUSA POR DEFECTO", + "DELETE": "Eliminar", + "DELETE_INTERACTION": "Eliminar interacción", + "DELETE_SELECTED": "Eliminar seleccionado", "DELETE_WHATSAPPACCOUNT": "Eliminar cuenta de WhatsApp", "DELETE_WHATSAPPCANNEDANSWER": "Eliminado", "DELETE_WHATSAPPDISPOSITION": "Eliminar la disposición de WhatsApp", "DELETE_WHATSAPPQUEUE": "Eliminar la cola de WhatsApp", + "DESCRIPTION": "Descripción", + "DIALOGFLOW": "DialogFlow", + "DISPOSITION": "Disposición", + "DISPOSITIONS": "Plan", + "DOWNLOAD_INTERACTION": "Descargar", + "DOWNLOAD_WITHOUT_ATTACHMENTS": "Descargar sin archivos adjuntos", + "DOWNLOAD_WITH_ATTACHMENTS": "Descargar con archivos adjuntos", + "EDIT_AGENT": "Editar agente", + "EDIT_AMAZONLEX": "Editar la configuración de Lex", + "EDIT_AUTOREPLY": "Editar respuesta automática", + "EDIT_CLOSE": "Editar Cerrar", + "EDIT_DIALOGFLOW": "Editar la configuración de DialogFlow", + "EDIT_GOTOIF": "Editar Gotoif", + "EDIT_GOTOP": "Editar Gotop", + "EDIT_NOOP": "Editar Noop", + "EDIT_QUEUE": "Editar cola", + "EDIT_SYSTEM": "Editar sistema", + "EDIT_TAG": "Editar etiqueta", "EDIT_WHATSAPPACCOUNT": "Editar cuenta de WhatsApp", "EDIT_WHATSAPPCANNEDANSWER": "Editar", "EDIT_WHATSAPPDISPOSITION": "Editar la disposición de WhatsApp", "EDIT_WHATSAPPQUEUE": "Editar la cola de WhatsApp", + "FALSEPRIORITY": "Prioridad falsa", + "GENERAL": "General", + "GOTOIF": "Gotoif", + "GOTOP": "Ve arriba", "GOTOREALTIME_WHATSAPPQUEUE": "Ir a la cola de WhatsApp en tiempo real", "GO_TO_WHATSAPPACCOUNTS": "Ir a cuenta", + "ID": "Carné de identidad", + "IDLE": "Ocioso", + "INSERT_MESSAGE_HERE": "Insertar mensaje aquí", + "INTERACTIONS": "Interacciones", "INTERACTIONS_WHATSAPPACCOUNT": "Ir a Interacciones", + "KEY": "Llave", + "LANGUAGE": "Idioma", + "LASTMESSAGE": "Ultimo mensaje", + "LEXREGION": "Región", + "LIST": "Lista", + "LOGGED_IN": "Conectado (SIP conectado)", + "LOGIN_TIME": "Hora de inicio de sesión", + "LOGOUT": "Cerrar sesión", + "MANDATORYDISPOSITION": "Disposición obligatoria", + "MANDATORYDISPOSITIONPAUSEID": "Pausar para usar cuando la disposición obligatoria está habilitada", + "MORE": "Más", + "MOTIONPROXY": "Proxy o dominio de movimiento", "MULTI_SELECT_TOGGLE": "Alternar selección múltiple", + "NAME": "Nombre", "NEW_WHATSAPPACCOUNT": "Nueva cuenta de WhatsApp", "NEW_WHATSAPPCANNEDANSWER": "Nueva respuesta enlatada de WhatsApp", "NEW_WHATSAPPDISPOSITION": "Nueva disposición de WhatsApp", "NEW_WHATSAPPQUEUE": "Nueva cola de WhatsApp", + "NOOP": "Noop", + "NOTE": "Nota", + "NOTIFICATION": "Notificación", + "NOTIFICATIONSHAKE": "Sacudir", + "NOTIFICATIONSOUND": "Sonido", + "NOTIFICATIONTEMPLATE": "Modelo", + "NO_AGENT_ONLINE": "Ningún agente en línea", + "NO_AVAILABLE_INFO": "No hay información disponible", + "NO_INTERACTION_AVAILABLE": "No hay interacciones disponibles", "NO_WHATSAPPCANNEDANSWER_AVAILABLE": "No hay respuestas enlatadas de WhatsApp disponibles", "NO_WHATSAPPDISPOSITION_AVAILABLE": "No hay disposiciones de WhatsApp disponibles", "NO_WHATSAPP_ACCOUNTS_AVAILABLE": "No hay cuentas de WhatsApp disponibles", + "OF": "de", + "OPENED": "Abrió", + "PAGE": "Página", + "PARTIALPAUSE": "Pausa parcial", + "PAUSE": "Pausa", + "PAUSED": "Pausado", + "PAUSE_TIME": "Tiempo de pausa", + "PHONE": "Teléfono", + "PRIORITY": "Prioridad", + "PROXY": "Apoderado", + "QUEUE": "Cola", + "QUEUES": "Colas", + "QUEUETRANSFER": "Transferencia de cola", + "QUEUETRANSFERTIMEOUT": "Tiempo de espera de transferencia de cola", + "READY": "Listo", + "REALTIME": "Tiempo real", + "RECEIVEURL": "Recibir URL", + "REFRESH_INTERACTIONS": "Actualizar interacciones", "REMOTE": "Remoto", + "ROWSPERPAGE": "Filas por página", + "SAVE": "Salvar", + "SCREENRECORDING": "Administrar grabación de pantalla", + "SEARCH_FOR_ANYONE": "Buscar", + "SECRETACCESSKEY": "Secreto de clave de acceso", + "SELECTED": "Seleccionado", + "SELECTED_AGENTS": "Agentes seleccionados", + "SELECTED_TEAMS": "Equipos seleccionados", + "SELECT_ALL": "Seleccionar todo", + "SELECT_NONE": "No seleccionar ninguno", + "SEND": "Enviar", + "SETTINGS": "Configuraciones", + "SPYINTERACTION": "Interacción con el espía", + "STARTEDAT": "Empezó a las", + "START_SCREENRECORDING": "Iniciar grabación de pantalla", + "STATUS": "Estado", + "STOP_SCREENRECORDING": "Detener grabación de pantalla", + "STRATEGY": "Estrategia", + "SYSTEM": "Sistema", + "TAG": "Etiqueta", + "TAGS": "Etiquetas", "TEAMADD_WHATSAPPQUEUE": "Agregar equipo a la cola de WhatsApp", + "TEAMS_ASSOCIATION": "Asociación de equipos", + "TEXT": "Texto", + "TIMEOUT": "Se acabó el tiempo", + "TIMER": "Temporizador", + "TIMES": "Veces", + "TO": "A", + "TOKEN": "Simbólico", + "TOOLTIP_SCREENRECORDING_OFF": "Grabación de pantalla disponible", + "TOOLTIP_SCREENRECORDING_ON": "Grabación de pantalla en curso", + "TRANSFER": "Transferir", + "TRUEPRIORITY": "Verdadera prioridad", + "TYPE": "Tipo", + "UNPAUSE": "Fin de pausa", + "VALUE": "Valor", + "VARIABLE": "Variable", + "WAITFORTHEASSIGNEDAGENT": "Espere al agente asignado", + "WAITING": "Esperando", + "WELCOMEMESSAGE": "Mensaje de bienvenida", + "WHATSAPP": "Conector de WhatsApp", "WHATSAPPACCOUNTS": "Cuentas de WhatsApp", "WHATSAPPCANNEDANSWERS": "Respuestas enlatadas de WhatsApp", "WHATSAPPDISPOSITIONS": "Disposiciones de WhatsApp", - "WHATSAPPQUEUES": "Colas de WhatsApp" + "WHATSAPPQUEUES": "Colas de WhatsApp", + "CLIENTEMAIL": "Correo electrónico del cliente", + "DIALOGFLOWV2": "Dialogflow V2", + "EDIT_DIALOGFLOWV2": "Editar Dialogflow V2", + "PRIVATEKEY": "Llave privada", + "PROJECTID": "Projecto ID" } } diff --git a/public/app/main/apps/whatsapp/i18n/et.json b/public/app/main/apps/whatsapp/i18n/et.json index 48373a7..5ff75f9 100644 --- a/public/app/main/apps/whatsapp/i18n/et.json +++ b/public/app/main/apps/whatsapp/i18n/et.json @@ -1,47 +1,244 @@ { "WHATSAPP": { "ERRORS": { + "ACCESSKEYID_REQUIRED": "Kohustuslik väli", + "ACCOUNTSID_REQUIRED": "Kohustuslik väli", + "AGENTTRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Väärtus peab olema suurem või võrdne kui", + "AGENTTRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Väärtus peab olema väiksem või võrdne kui", + "AGENTTRANSFERTIMEOUT_REQUIRED": "Kohustuslik väli", + "AGENT_REQUIRED": "Kohustuslik väli", + "AGENT_TIMEOUT_REQUIRED": "Kohustuslik väli", + "AUTHTOKEN_REQUIRED": "Kohustuslik väli", + "BOTNAME_REQUIRED": "Kohustuslik väli", + "COMMAND_REQUIRED": "Kohustuslik väli", + "CONDITION_REQUIRED": "Kohustuslik väli", "DESCRIPTION_REQUIRED": "Kohustuslik väli", + "DISPOSITION_REQUIRED": "Kohustuslik väli", + "FALSEPRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Väärtus peab olema suurem või võrdne kui", + "FALSEPRIORITY_REQUIRED": "Kohustuslik väli", + "KEY_MAX_LENGTH": "Väärtuse maksimaalne pikkus peab olema võrdne {{max}}", + "KEY_REQUIRED": "Kohustuslik väli", "LANGUAGE_REQUIRED": "Kohustuslik väli", "LEXREGION_REQUIRED": "Kohustuslik väli", + "LIST_REQUIRED": "Kohustuslik väli", + "MANDATORYDISPOSITIONPAUSEID_REQUIRED": "Kohustuslik väli", + "NAME_REQUIRED": "Kohustuslik väli", + "PHONE_REQUIRED": "Kohustuslik väli", + "PRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Väärtus peab olema suurem või võrdne kui", + "PRIORITY_REQUIRED": "Kohustuslik väli", + "QUEUETRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Väärtus peab olema suurem või võrdne kui", + "QUEUETRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Väärtus peab olema väiksem või võrdne kui", + "QUEUETRANSFERTIMEOUT_REQUIRED": "Kohustuslik väli", + "QUEUE_REQUIRED": "Kohustuslik väli", + "SECRETACCESSKEY_REQUIRED": "Kohustuslik väli", + "TAG_REQUIRED": "Kohustuslik väli", + "TEXT_REQUIRED": "Kohustuslik väli", + "TIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Väärtus peab olema suurem või võrdne kui", + "TIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Väärtus peab olema väiksem või võrdne kui", + "TIMEOUT_REQUIRED": "Kohustuslik väli", "TIMES_REQUIRED": "Kohustuslik väli", + "TOKEN_REQUIRED": "Kohustuslik väli", + "TRUEPRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Väärtus peab olema suurem või võrdne kui", + "TRUEPRIORITY_REQUIRED": "Kohustuslik väli", + "TYPE_REQUIRED": "Kohustuslik väli", + "VALUE_REQUIRED": "Kohustuslik väli", "VARIABLE_REQUIRED": "Kohustuslik väli", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Väärtus peab olema suurem või võrdne kui", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Väärtus peab olema väiksem või võrdne kui", + "WAITFORTHEASSIGNEDAGENT_REQUIRED": "Kohustuslik väli", "WELCOMEMESSAGE_MAX_LENGTH": "Väärtuse maksimaalne pikkus peab olema võrdne {{max}}", - "WELCOMEMESSAGE_REQUIRED": "Kohustuslik väli" + "WELCOMEMESSAGE_REQUIRED": "Kohustuslik väli", + "CLIENTEMAIL_REQUIRED": "Kohustuslik väli", + "PRIVATEKEY_REQUIRED": "Kohustuslik väli", + "PROJECTID_REQUIRED": "Kohustuslik väli" }, - "HELP": {}, + "HELP": { + "LIST": "Kontaktide halduri loend, mida kasutatakse kontaktide seostamiseks", + "MANDATORYDISPOSITION": "Kohustuslik käsutamine", + "MANDATORYDISPOSITIONPAUSEID": "Kasutamise peatamine, kui kohustuslik käsutamine on lubatud", + "MOTIONPROXY": "Välja peab olema järgmine vorming: : // [: ]. Näide: https: //X.Y.Z.W", + "NAME": "Toetatud on ainult numbrid, tähed ja kindlad märgid (._)", + "RECEIVEURL": "See on automaatselt loodud API string, mida peate kasutama oma kontol olevate sõnumite vastuvõtmiseks oma WhatsApp Connectori pakkujalt (tuleb kasutada POST-meetodit): selle kopeerimiseks klõpsake lõikelaua nuppu", + "WELCOMEMESSAGE": "See on esimene vastussõnum, mis saadetakse uutele interaktsioonidele" + }, + "ACCESSKEYID": "Juurdepääsukoodi ID", + "ACCOUNTSID": "Konto SID", + "ACTIONS": "Tegevused", + "ADD_NOTE": "Lisada märkus", "ADD_WHATSAPPACCOUNT": "Lisama", "ADD_WHATSAPPCANNEDANSWER": "Lisage konserveeritud vastus", "ADD_WHATSAPPDISPOSITION": "Lisage WhatsApp Disposition", "ADD_WHATSAPPQUEUE": "Lisage järjekord WhatsApp", + "ADVANCED": "Täpsemad", + "AGENT": "Agent", "AGENTADD_QUEUE": "Lisage agent WhatsApp'i järjekorda", "AGENTADD_WHATSAPPACCOUNT": "Lisage agent WhatsApi kontole", "AGENTADD_WHATSAPPQUEUE": "Lisage agent WhatsApp'i järjekorda", + "AGENTS": "Agentid", + "AGENTSADD_QUEUE": "Lisage esindajad WhatsApi järjekorda", + "AGENTTRANSFER": "Agent Transfer", + "AGENTTRANSFERTIMEOUT": "Agent Transfer Timeout", + "AGENT_TIMEOUT": "Agent aegumine", + "ALL": "Kõik", + "ALL_AGENTS": "Kõik esindajad", + "ALL_TEAMS": "Kõik võistkonnad", + "AMAZONLEX": "AmazonLex", "AUTHTOKEN": "Autentimismärk", + "AUTOREPLY": "Automaatne vastus", + "BACK": "tagasi", + "BOTNAME": "Boti nimi", + "BUSY": "Hõivatud", + "CANNEDANSWERS": "Konserveeritud vastused", + "CANNED_ANSWER_NOT_FOUND": "Konserveeritud vastuseid ei leitud", + "CANNED_ANSWER_SEARCH": "Sisestage tekst konserveeritud vastusest otsimiseks", + "CAPACITY": "Maht", + "CLOSE": "Sulge", + "CLOSED": "Suletud", + "CLOSEMETHOD": "Sule meetod", + "CLOSEURL": "Sulge URL", + "COMMAND": "Käsk", + "CONDITION": "Seisund", + "CONTACT": "Võtke ühendust", + "CREATED_AT": "Loodud kell", + "DEFAULT_PAUSE": "Vaikimisi paus", + "DELETE": "Kustuta", + "DELETE_INTERACTION": "Kustuta interaktsioon", + "DELETE_SELECTED": "Kustuta valitud", "DELETE_WHATSAPPACCOUNT": "Kustutage WhatsApi konto", "DELETE_WHATSAPPCANNEDANSWER": "Kustutatud", "DELETE_WHATSAPPDISPOSITION": "Kustutage WhatsApp Disposition", "DELETE_WHATSAPPQUEUE": "Kustutage WhatsApp Queue", + "DESCRIPTION": "Kirjeldus", + "DIALOGFLOW": "DialogFlow", + "DISPOSITION": "Dispositsioon", + "DISPOSITIONS": "Dispositsioonid", + "DOWNLOAD_INTERACTION": "Lae alla", + "DOWNLOAD_WITHOUT_ATTACHMENTS": "Laadige alla ilma manusteta", + "DOWNLOAD_WITH_ATTACHMENTS": "Laadige alla koos manustega", + "EDIT_AGENT": "Redigeeri esindajat", + "EDIT_AMAZONLEX": "Redigeeri Lexi konfiguratsiooni", + "EDIT_AUTOREPLY": "Redigeeri automaatvastust", + "EDIT_CLOSE": "Redigeerimine Sulge", + "EDIT_DIALOGFLOW": "Redigeeri DialogFlow konfiguratsiooni", + "EDIT_GOTOIF": "Redigeeri Gotoifi", + "EDIT_GOTOP": "Redigeeri Gotopit", + "EDIT_NOOP": "Redigeeri Noopi", + "EDIT_QUEUE": "Redigeeri järjekorda", + "EDIT_SYSTEM": "Redigeeri süsteemi", + "EDIT_TAG": "Redigeeri silti", "EDIT_WHATSAPPACCOUNT": "Muutke WhatsApi kontot", "EDIT_WHATSAPPCANNEDANSWER": "Redigeeri", "EDIT_WHATSAPPDISPOSITION": "Muutke WhatsApi dispositsiooni", "EDIT_WHATSAPPQUEUE": "Redigeeri WhatsApi järjekorda", + "FALSEPRIORITY": "Vale prioriteet", + "GENERAL": "Kindral", + "GOTOIF": "Gotoif", + "GOTOP": "Gotop", "GOTOREALTIME_WHATSAPPQUEUE": "Minge reaalajas WhatsApi järjekorda", "GO_TO_WHATSAPPACCOUNTS": "Minge kontole", + "ID": "Id", + "IDLE": "Tühikäik", + "INSERT_MESSAGE_HERE": "Sisestage sõnum siia", + "INTERACTIONS": "Koostoimed", "INTERACTIONS_WHATSAPPACCOUNT": "Minge jaotisse Interaktsioonid", + "KEY": "Võti", + "LANGUAGE": "Keel", + "LASTMESSAGE": "Viimane sõnum", + "LEXREGION": "Piirkond", + "LIST": "Loend", + "LOGGED_IN": "Sisse logitud (SIP ühendatud)", + "LOGIN_TIME": "Sisselogimise aeg", + "LOGOUT": "Logi välja", + "MANDATORYDISPOSITION": "Kohustuslik käsutamine", + "MANDATORYDISPOSITIONPAUSEID": "Kasutamise peatamine, kui kohustuslik käsutamine on lubatud", + "MORE": "Veel", + "MOTIONPROXY": "Puhverserver või liikumisdomeen", "MULTI_SELECT_TOGGLE": "Mitme valiku lülitamine", + "NAME": "Nimi", "NEW_WHATSAPPACCOUNT": "Uus WhatsApi konto", "NEW_WHATSAPPCANNEDANSWER": "Uus vastus WhatsAppile", "NEW_WHATSAPPDISPOSITION": "Uus seade WhatsApp", "NEW_WHATSAPPQUEUE": "Uus WhatsApi järjekord", + "NOOP": "Noop", + "NOTE": "Märge", + "NOTIFICATION": "Teatamine", + "NOTIFICATIONSHAKE": "Raputama", + "NOTIFICATIONSOUND": "Heli", + "NOTIFICATIONTEMPLATE": "Mall", + "NO_AGENT_ONLINE": "Pole esindajat võrgus", + "NO_AVAILABLE_INFO": "Pole saadaval teavet", + "NO_INTERACTION_AVAILABLE": "Ühtegi interaktsiooni pole saadaval", "NO_WHATSAPPCANNEDANSWER_AVAILABLE": "WhatsApi konserveeritud vastuseid pole saadaval", "NO_WHATSAPPDISPOSITION_AVAILABLE": "WhatsApi dispositsioonid pole saadaval", "NO_WHATSAPP_ACCOUNTS_AVAILABLE": "WhatsApi kontosid pole saadaval", + "OF": "kohta", + "OPENED": "Avatud", + "PAGE": "Leht", + "PARTIALPAUSE": "Osaline paus", + "PAUSE": "Paus", + "PAUSED": "Peatatud", + "PAUSE_TIME": "Pausi aeg", + "PHONE": "Telefon", + "PRIORITY": "Prioriteet", + "PROXY": "Puhverserver", + "QUEUE": "Järjekord", + "QUEUES": "Järjekorrad", + "QUEUETRANSFER": "Järjekorra ülekandmine", + "QUEUETRANSFERTIMEOUT": "Järjekorra ülekandmise ajalõpp", + "READY": "Valmis", + "REALTIME": "Reaalajas", + "RECEIVEURL": "Saate URL-i", + "REFRESH_INTERACTIONS": "Värskenda interaktsioone", "REMOTE": "Kaugjuhtimispult", + "ROWSPERPAGE": "Ridasid lehel", + "SAVE": "Salvesta", + "SCREENRECORDING": "Halda ekraanisalvestust", + "SEARCH_FOR_ANYONE": "Otsing", + "SECRETACCESSKEY": "Juurdepääsu võtme saladus", + "SELECTED": "Valitud", + "SELECTED_AGENTS": "Valitud esindajad", + "SELECTED_TEAMS": "Valitud meeskonnad", + "SELECT_ALL": "Vali kõik", + "SELECT_NONE": "Valige ükski", + "SEND": "Saada", + "SETTINGS": "Seadistused", + "SPYINTERACTION": "Spioonide interaktsioon", + "STARTEDAT": "Alustati kell", + "START_SCREENRECORDING": "Alusta ekraani salvestamist", + "STATUS": "Olek", + "STOP_SCREENRECORDING": "Peata ekraanil salvestamine", + "STRATEGY": "Strateegia", + "SYSTEM": "Süsteem", + "TAG": "Silt", + "TAGS": "Sildid", "TEAMADD_WHATSAPPQUEUE": "Lisage meeskond WhatsApp'i järjekorda", + "TEAMS_ASSOCIATION": "Võistkondade liit", + "TEXT": "Tekst", + "TIMEOUT": "Aeg maha", + "TIMER": "Taimer", + "TIMES": "Ajad", + "TO": "Et", + "TOKEN": "Märk", + "TOOLTIP_SCREENRECORDING_OFF": "Ekraanisalvestus on saadaval", + "TOOLTIP_SCREENRECORDING_ON": "Ekraanisalvestus pooleli", + "TRANSFER": "Ülekanne", + "TRUEPRIORITY": "Tõeline prioriteet", + "TYPE": "Tüüp", + "UNPAUSE": "Lõpeta paus", + "VALUE": "Väärtus", + "VARIABLE": "Muutuv", + "WAITFORTHEASSIGNEDAGENT": "Oodake määratud esindajat", + "WAITING": "Ootan", + "WELCOMEMESSAGE": "Tervitussõnum", + "WHATSAPP": "WhatsApp-pistik", "WHATSAPPACCOUNTS": "WhatsApi kontod", "WHATSAPPCANNEDANSWERS": "WhatsApi konserveeritud vastused", "WHATSAPPDISPOSITIONS": "WhatsApi dispositsioonid", - "WHATSAPPQUEUES": "WhatsApi järjekorrad" + "WHATSAPPQUEUES": "WhatsApi järjekorrad", + "CLIENTEMAIL": "Kliendi e-post", + "DIALOGFLOWV2": "Dialoogivoog V2", + "EDIT_DIALOGFLOWV2": "Redigeerimise dialoogivoog V2", + "PRIVATEKEY": "Privaatne võti", + "PROJECTID": "Projekti ID" } } diff --git a/public/app/main/apps/whatsapp/i18n/fa.json b/public/app/main/apps/whatsapp/i18n/fa.json index 0805f98..2bfad68 100644 --- a/public/app/main/apps/whatsapp/i18n/fa.json +++ b/public/app/main/apps/whatsapp/i18n/fa.json @@ -1,47 +1,244 @@ { "WHATSAPP": { "ERRORS": { + "ACCESSKEYID_REQUIRED": "زمینه اجباری", + "ACCOUNTSID_REQUIRED": "زمینه اجباری", + "AGENTTRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "مقدار باید بیشتر یا مساوی از باشد", + "AGENTTRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "مقدار باید کمتر یا مساوی از باشد", + "AGENTTRANSFERTIMEOUT_REQUIRED": "زمینه اجباری", + "AGENT_REQUIRED": "زمینه اجباری", + "AGENT_TIMEOUT_REQUIRED": "زمینه اجباری", + "AUTHTOKEN_REQUIRED": "زمینه اجباری", + "BOTNAME_REQUIRED": "زمینه اجباری", + "COMMAND_REQUIRED": "زمینه اجباری", + "CONDITION_REQUIRED": "زمینه اجباری", "DESCRIPTION_REQUIRED": "زمینه اجباری", + "DISPOSITION_REQUIRED": "زمینه اجباری", + "FALSEPRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "مقدار باید بیشتر یا مساوی از باشد", + "FALSEPRIORITY_REQUIRED": "زمینه اجباری", + "KEY_MAX_LENGTH": "مقدار باید حداکثر طول مساوی با {{حداکثر} داشته باشد", + "KEY_REQUIRED": "زمینه اجباری", "LANGUAGE_REQUIRED": "زمینه اجباری", "LEXREGION_REQUIRED": "زمینه اجباری", + "LIST_REQUIRED": "زمینه اجباری", + "MANDATORYDISPOSITIONPAUSEID_REQUIRED": "زمینه اجباری", + "NAME_REQUIRED": "زمینه اجباری", + "PHONE_REQUIRED": "زمینه اجباری", + "PRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "مقدار باید بیشتر یا مساوی از باشد", + "PRIORITY_REQUIRED": "زمینه اجباری", + "QUEUETRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "مقدار باید بیشتر یا مساوی از باشد", + "QUEUETRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "مقدار باید کمتر یا مساوی از باشد", + "QUEUETRANSFERTIMEOUT_REQUIRED": "زمینه اجباری", + "QUEUE_REQUIRED": "زمینه اجباری", + "SECRETACCESSKEY_REQUIRED": "زمینه اجباری", + "TAG_REQUIRED": "زمینه اجباری", + "TEXT_REQUIRED": "زمینه اجباری", + "TIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "مقدار باید بیشتر یا مساوی از باشد", + "TIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "مقدار باید کمتر یا مساوی از باشد", + "TIMEOUT_REQUIRED": "زمینه اجباری", "TIMES_REQUIRED": "زمینه اجباری", + "TOKEN_REQUIRED": "زمینه اجباری", + "TRUEPRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "مقدار باید بیشتر یا مساوی از باشد", + "TRUEPRIORITY_REQUIRED": "زمینه اجباری", + "TYPE_REQUIRED": "زمینه اجباری", + "VALUE_REQUIRED": "زمینه اجباری", "VARIABLE_REQUIRED": "زمینه اجباری", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "مقدار باید بیشتر یا مساوی از باشد", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "مقدار باید کمتر یا مساوی از باشد", + "WAITFORTHEASSIGNEDAGENT_REQUIRED": "زمینه اجباری", "WELCOMEMESSAGE_MAX_LENGTH": "مقدار باید حداکثر طول مساوی با {{حداکثر} داشته باشد", - "WELCOMEMESSAGE_REQUIRED": "زمینه اجباری" + "WELCOMEMESSAGE_REQUIRED": "زمینه اجباری", + "CLIENTEMAIL_REQUIRED": "زمینه اجباری", + "PRIVATEKEY_REQUIRED": "زمینه اجباری", + "PROJECTID_REQUIRED": "زمینه اجباری" }, - "HELP": {}, + "HELP": { + "LIST": "لیست مدیر تماس با ما برای ارتباط مخاطبین استفاده می شود", + "MANDATORYDISPOSITION": "وضع اجباری", + "MANDATORYDISPOSITIONPAUSEID": "در صورت فعال بودن وضع اجباری ، مکث کنید", + "MOTIONPROXY": "این فیلد باید دارای فرم زیر باشد: : // [: ]. مثال: https: //X.Y.Z.W", + "NAME": "فقط اعداد ، حروف و کاراکترهای خاص (._) پشتیبانی می شوند", + "RECEIVEURL": "این رشته API خودکار تولید شده است که برای دریافت پیام های داخل حساب خود از ارائه دهنده اتصال WhatsApp خود استفاده می کنید (باید روش POST استفاده شود): روی دکمه کلیپ بورد کلیک کنید تا آن را کپی کنید.", + "WELCOMEMESSAGE": "این اولین پیام پاسخی است که به تعاملات جدید ارسال می شود" + }, + "ACCESSKEYID": "شناسه کلید دسترسی", + "ACCOUNTSID": "حساب SID", + "ACTIONS": "اقدامات", + "ADD_NOTE": "یادداشت اضافه کنید", "ADD_WHATSAPPACCOUNT": "اضافه کردن", "ADD_WHATSAPPCANNEDANSWER": "پاسخ کنسرو شده را اضافه کنید", "ADD_WHATSAPPDISPOSITION": "Disposition واتساپ اضافه کنید", "ADD_WHATSAPPQUEUE": "صف WhatsApp را اضافه کنید", + "ADVANCED": "پیشرفته", + "AGENT": "عامل", "AGENTADD_QUEUE": "عامل را به صف WhatsApp اضافه کنید", "AGENTADD_WHATSAPPACCOUNT": "نماینده را به حساب WhatsApp اضافه کنید", "AGENTADD_WHATSAPPQUEUE": "عامل را به صف WhatsApp اضافه کنید", + "AGENTS": "نمایندگان", + "AGENTSADD_QUEUE": "عوامل را به صف WhatsApp اضافه کنید", + "AGENTTRANSFER": "انتقال عامل", + "AGENTTRANSFERTIMEOUT": "زمان انتقال آژانس", + "AGENT_TIMEOUT": "زمان تحویل عامل", + "ALL": "همه", + "ALL_AGENTS": "همه نمایندگان", + "ALL_TEAMS": "همه تیم ها", + "AMAZONLEX": "AmazonLex", "AUTHTOKEN": "نویسنده توکن", + "AUTOREPLY": "پاسخ خودکار", + "BACK": "بازگشت", + "BOTNAME": "نام ربات", + "BUSY": "مشغول", + "CANNEDANSWERS": "پاسخهای کنسرو شده", + "CANNED_ANSWER_NOT_FOUND": "هیچ پاسخی برای کنسرو یافت نشد", + "CANNED_ANSWER_SEARCH": "برای جستجوی یک پاسخ کنسرو شده ، متنی را وارد کنید", + "CAPACITY": "ظرفیت", + "CLOSE": "نزدیک", + "CLOSED": "بسته شد", + "CLOSEMETHOD": "روش بستن", + "CLOSEURL": "بستن آدرس اینترنتی", + "COMMAND": "فرمان", + "CONDITION": "وضعیت", + "CONTACT": "مخاطب", + "CREATED_AT": "ایجاد شده در", + "DEFAULT_PAUSE": "نمایندگی PAUSE", + "DELETE": "حذف", + "DELETE_INTERACTION": "تعامل را حذف کنید", + "DELETE_SELECTED": "انتخاب شده را پاک کن", "DELETE_WHATSAPPACCOUNT": "حساب WhatsApp را حذف کنید", "DELETE_WHATSAPPCANNEDANSWER": "حذف شده", "DELETE_WHATSAPPDISPOSITION": "حذف WhatsApp Disposition", "DELETE_WHATSAPPQUEUE": "صف WhatsApp را حذف کنید", + "DESCRIPTION": "شرح", + "DIALOGFLOW": "DialogFlow", + "DISPOSITION": "وضع", + "DISPOSITIONS": "دفع ها", + "DOWNLOAD_INTERACTION": "دانلود", + "DOWNLOAD_WITHOUT_ATTACHMENTS": "بارگیری بدون پیوست", + "DOWNLOAD_WITH_ATTACHMENTS": "بارگیری با پیوست ها", + "EDIT_AGENT": "ویرایش عامل", + "EDIT_AMAZONLEX": "پیکربندی Lex را ویرایش کنید", + "EDIT_AUTOREPLY": "پاسخ خودکار را ویرایش کنید", + "EDIT_CLOSE": "ویرایش بستن", + "EDIT_DIALOGFLOW": "پیکربندی DialogFlow را ویرایش کنید", + "EDIT_GOTOIF": "ویرایش Gotoif", + "EDIT_GOTOP": "Gotop را ویرایش کنید", + "EDIT_NOOP": "ویرایش Noop", + "EDIT_QUEUE": "ویرایش صف", + "EDIT_SYSTEM": "ویرایش سیستم", + "EDIT_TAG": "برچسب را ویرایش کنید", "EDIT_WHATSAPPACCOUNT": "حساب WhatsApp را ویرایش کنید", "EDIT_WHATSAPPCANNEDANSWER": "ویرایش کنید", "EDIT_WHATSAPPDISPOSITION": "قرار دادن واتس اپ", "EDIT_WHATSAPPQUEUE": "صف WhatsApp را ویرایش کنید", + "FALSEPRIORITY": "اولویت کاذب", + "GENERAL": "عمومی", + "GOTOIF": "Gotoif", + "GOTOP": "برو بالا", "GOTOREALTIME_WHATSAPPQUEUE": "برو به Realtime Que WhatsApp", "GO_TO_WHATSAPPACCOUNTS": "به حساب کاربری بروید", + "ID": "شناسه", + "IDLE": "بیکار", + "INSERT_MESSAGE_HERE": "درج پیام در اینجا", + "INTERACTIONS": "فعل و انفعالات", "INTERACTIONS_WHATSAPPACCOUNT": "برو به تعامل", + "KEY": "کلید", + "LANGUAGE": "زبان", + "LASTMESSAGE": "آخرین پیام", + "LEXREGION": "منطقه", + "LIST": "لیست", + "LOGGED_IN": "ورود به سیستم (SIP متصل)", + "LOGIN_TIME": "زمان ورود", + "LOGOUT": "خروج", + "MANDATORYDISPOSITION": "اختیار اجباری", + "MANDATORYDISPOSITIONPAUSEID": "در صورت فعال بودن وضع اجباری ، مکث کنید", + "MORE": "بیشتر", + "MOTIONPROXY": "دامنه پروکسی یا حرکت", "MULTI_SELECT_TOGGLE": "چند گزینه را انتخاب کنید", + "NAME": "نام", "NEW_WHATSAPPACCOUNT": "حساب واتس اپ جدید", "NEW_WHATSAPPCANNEDANSWER": "پاسخ کنسرو شده جدید WhatsApp", "NEW_WHATSAPPDISPOSITION": "Disposition جدید WhatsApp", "NEW_WHATSAPPQUEUE": "صف جدید WhatsApp", + "NOOP": "ظهر", + "NOTE": "توجه داشته باشید", + "NOTIFICATION": "اطلاع", + "NOTIFICATIONSHAKE": "تکان دادن", + "NOTIFICATIONSOUND": "صدا", + "NOTIFICATIONTEMPLATE": "قالب", + "NO_AGENT_ONLINE": "بدون نماینده آنلاین", + "NO_AVAILABLE_INFO": "اطلاعات در دسترس نیست", + "NO_INTERACTION_AVAILABLE": "هیچ تعامل در دسترس نیست", "NO_WHATSAPPCANNEDANSWER_AVAILABLE": "هیچ پاسخی برای واتساپ وجود ندارد", "NO_WHATSAPPDISPOSITION_AVAILABLE": "هیچ Dispositions واتس اپ در دسترس نیست", "NO_WHATSAPP_ACCOUNTS_AVAILABLE": "هیچ حساب واتس اپ موجود نیست", + "OF": "از", + "OPENED": "افتتاح شد", + "PAGE": "صفحه", + "PARTIALPAUSE": "مکث جزئی", + "PAUSE": "مکث کنید", + "PAUSED": "مکث کرد", + "PAUSE_TIME": "زمان مکث", + "PHONE": "تلفن", + "PRIORITY": "اولویت", + "PROXY": "پروکسی", + "QUEUE": "صف", + "QUEUES": "صف", + "QUEUETRANSFER": "انتقال صف", + "QUEUETRANSFERTIMEOUT": "پایان زمان انتقال صف", + "READY": "آماده", + "REALTIME": "به موقع", + "RECEIVEURL": "URL را دریافت کنید", + "REFRESH_INTERACTIONS": "تعامل را تازه کنید", "REMOTE": "از راه دور", + "ROWSPERPAGE": "ردیف در هر صفحه", + "SAVE": "صرفه جویی", + "SCREENRECORDING": "ضبط صفحه را مدیریت کنید", + "SEARCH_FOR_ANYONE": "جستجو کردن", + "SECRETACCESSKEY": "راز دسترسی به کلید", + "SELECTED": "انتخاب شد", + "SELECTED_AGENTS": "نمایندگان منتخب", + "SELECTED_TEAMS": "تیم های منتخب", + "SELECT_ALL": "انتخاب همه", + "SELECT_NONE": "هیچ کدام را انتخاب نکنید", + "SEND": "ارسال", + "SETTINGS": "تنظیمات", + "SPYINTERACTION": "تعامل جاسوسی", + "STARTEDAT": "در آغاز شد", + "START_SCREENRECORDING": "ضبط صفحه را شروع کنید", + "STATUS": "وضعیت", + "STOP_SCREENRECORDING": "ضبط صفحه را متوقف کنید", + "STRATEGY": "استراتژی", + "SYSTEM": "سیستم", + "TAG": "برچسب زدن", + "TAGS": "برچسب ها", "TEAMADD_WHATSAPPQUEUE": "تیم را به صف WhatsApp اضافه کنید", + "TEAMS_ASSOCIATION": "انجمن نوجوانان", + "TEXT": "متن", + "TIMEOUT": "زمان پایان", + "TIMER": "تایمر", + "TIMES": "بار", + "TO": "به", + "TOKEN": "گفتن", + "TOOLTIP_SCREENRECORDING_OFF": "ضبط صفحه در دسترس است", + "TOOLTIP_SCREENRECORDING_ON": "ضبط صفحه در حال انجام است", + "TRANSFER": "منتقل کردن", + "TRUEPRIORITY": "اولویت واقعی", + "TYPE": "تایپ کنید", + "UNPAUSE": "پایان مکث", + "VALUE": "مقدار", + "VARIABLE": "متغیر", + "WAITFORTHEASSIGNEDAGENT": "منتظر عامل تعیین شده باشید", + "WAITING": "در انتظار", + "WELCOMEMESSAGE": "پیام خوش امد گویی", + "WHATSAPP": "اتصال واتساپ", "WHATSAPPACCOUNTS": "حساب های WhatsApp", "WHATSAPPCANNEDANSWERS": "پاسخهای کنسرو واتس اپ", "WHATSAPPDISPOSITIONS": "Dispositions WhatsApp", - "WHATSAPPQUEUES": "صف های WhatsApp" + "WHATSAPPQUEUES": "صف های WhatsApp", + "CLIENTEMAIL": "ایمیل مشتری", + "DIALOGFLOWV2": "Dialogflow V2", + "EDIT_DIALOGFLOWV2": "ویرایش Dialogflow V2", + "PRIVATEKEY": "کلید خصوصی", + "PROJECTID": "شناسه پروژه" } } diff --git a/public/app/main/apps/whatsapp/i18n/fi.json b/public/app/main/apps/whatsapp/i18n/fi.json index a6a93f8..647eabf 100644 --- a/public/app/main/apps/whatsapp/i18n/fi.json +++ b/public/app/main/apps/whatsapp/i18n/fi.json @@ -1,47 +1,244 @@ { "WHATSAPP": { "ERRORS": { + "ACCESSKEYID_REQUIRED": "Pakollinen kenttä", + "ACCOUNTSID_REQUIRED": "Pakollinen kenttä", + "AGENTTRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Arvon on oltava suurempi tai yhtä suuri kuin", + "AGENTTRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Arvon on oltava pienempi tai yhtä suuri kuin", + "AGENTTRANSFERTIMEOUT_REQUIRED": "Pakollinen kenttä", + "AGENT_REQUIRED": "Pakollinen kenttä", + "AGENT_TIMEOUT_REQUIRED": "Pakollinen kenttä", + "AUTHTOKEN_REQUIRED": "Pakollinen kenttä", + "BOTNAME_REQUIRED": "Pakollinen kenttä", + "COMMAND_REQUIRED": "Pakollinen kenttä", + "CONDITION_REQUIRED": "Pakollinen kenttä", "DESCRIPTION_REQUIRED": "Pakollinen kenttä", + "DISPOSITION_REQUIRED": "Pakollinen kenttä", + "FALSEPRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Arvon on oltava suurempi tai yhtä suuri kuin", + "FALSEPRIORITY_REQUIRED": "Pakollinen kenttä", + "KEY_MAX_LENGTH": "Arvon maksimipituuden on oltava {{max}}", + "KEY_REQUIRED": "Pakollinen kenttä", "LANGUAGE_REQUIRED": "Pakollinen kenttä", "LEXREGION_REQUIRED": "Pakollinen kenttä", + "LIST_REQUIRED": "Pakollinen kenttä", + "MANDATORYDISPOSITIONPAUSEID_REQUIRED": "Pakollinen kenttä", + "NAME_REQUIRED": "Pakollinen kenttä", + "PHONE_REQUIRED": "Pakollinen kenttä", + "PRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Arvon on oltava suurempi tai yhtä suuri kuin", + "PRIORITY_REQUIRED": "Pakollinen kenttä", + "QUEUETRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Arvon on oltava suurempi tai yhtä suuri kuin", + "QUEUETRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Arvon on oltava pienempi tai yhtä suuri kuin", + "QUEUETRANSFERTIMEOUT_REQUIRED": "Pakollinen kenttä", + "QUEUE_REQUIRED": "Pakollinen kenttä", + "SECRETACCESSKEY_REQUIRED": "Pakollinen kenttä", + "TAG_REQUIRED": "Pakollinen kenttä", + "TEXT_REQUIRED": "Pakollinen kenttä", + "TIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Arvon on oltava suurempi tai yhtä suuri kuin", + "TIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Arvon on oltava pienempi tai yhtä suuri kuin", + "TIMEOUT_REQUIRED": "Pakollinen kenttä", "TIMES_REQUIRED": "Pakollinen kenttä", + "TOKEN_REQUIRED": "Pakollinen kenttä", + "TRUEPRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Arvon on oltava suurempi tai yhtä suuri kuin", + "TRUEPRIORITY_REQUIRED": "Pakollinen kenttä", + "TYPE_REQUIRED": "Pakollinen kenttä", + "VALUE_REQUIRED": "Pakollinen kenttä", "VARIABLE_REQUIRED": "Pakollinen kenttä", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Arvon on oltava suurempi tai yhtä suuri kuin", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Arvon on oltava pienempi tai yhtä suuri kuin", + "WAITFORTHEASSIGNEDAGENT_REQUIRED": "Pakollinen kenttä", "WELCOMEMESSAGE_MAX_LENGTH": "Arvon maksimipituuden on oltava {{max}}", - "WELCOMEMESSAGE_REQUIRED": "Pakollinen kenttä" + "WELCOMEMESSAGE_REQUIRED": "Pakollinen kenttä", + "CLIENTEMAIL_REQUIRED": "Pakollinen kenttä", + "PRIVATEKEY_REQUIRED": "Pakollinen kenttä", + "PROJECTID_REQUIRED": "Pakollinen kenttä" }, - "HELP": {}, + "HELP": { + "LIST": "Yhteystietojen yhdistämiseen käytetty yhteyshenkilöluettelo", + "MANDATORYDISPOSITION": "Pakollinen sijoittaminen", + "MANDATORYDISPOSITIONPAUSEID": "Tauko käyttöön, kun pakollinen sijoittaminen on käytössä", + "MOTIONPROXY": "Kentän on oltava seuraavan muodossa: : // [: ]. Esimerkki: https: //X.Y.Z.W", + "NAME": "Vain numeroita, kirjaimia ja tiettyjä merkkejä (._) tuetaan", + "RECEIVEURL": "Tämä on automaattisesti luotu API-merkkijono, jota sinun on käytettävä tilisi sisäisten viestien vastaanottamiseen WhatsApp-liitäntätoimittajalta (POST-menetelmää on käytettävä): kopioi napsauttamalla leikepöytäpainiketta", + "WELCOMEMESSAGE": "Tämä on ensimmäinen vastausviesti, joka lähetetään uusiin vuorovaikutuksiin" + }, + "ACCESSKEYID": "Käyttöavaintunnus", + "ACCOUNTSID": "Tilin SID", + "ACTIONS": "Toiminnot", + "ADD_NOTE": "Lisätä huomautus", "ADD_WHATSAPPACCOUNT": "Lisätä", "ADD_WHATSAPPCANNEDANSWER": "Lisää säilytetty vastaus", "ADD_WHATSAPPDISPOSITION": "Lisää WhatsApp Disposition", "ADD_WHATSAPPQUEUE": "Lisää WhatsApp-jono", + "ADVANCED": "Pitkälle kehittynyt", + "AGENT": "agentti", "AGENTADD_QUEUE": "Lisää agentti WhatsApp-jonoon", "AGENTADD_WHATSAPPACCOUNT": "Lisää agentti WhatsApp-tilille", "AGENTADD_WHATSAPPQUEUE": "Lisää agentti WhatsApp-jonoon", + "AGENTS": "agents", + "AGENTSADD_QUEUE": "Lisää edustajia WhatsApp-jonoon", + "AGENTTRANSFER": "Agentin siirto", + "AGENTTRANSFERTIMEOUT": "Agentin siirron aikakatkaisu", + "AGENT_TIMEOUT": "Agentin aikakatkaisu", + "ALL": "Kaikki", + "ALL_AGENTS": "Kaikki agentit", + "ALL_TEAMS": "Kaikki joukkueet", + "AMAZONLEX": "AmazonLex", "AUTHTOKEN": "Auth-tunnus", + "AUTOREPLY": "Automaattinen vastaus", + "BACK": "Takaisin", + "BOTNAME": "Botin nimi", + "BUSY": "Kiireinen", + "CANNEDANSWERS": "Säilytetyt vastaukset", + "CANNED_ANSWER_NOT_FOUND": "Säilytettyjä vastauksia ei löytynyt", + "CANNED_ANSWER_SEARCH": "Kirjoita teksti hakemaan säilötystä vastauksesta", + "CAPACITY": "kapasiteetti", + "CLOSE": "kiinni", + "CLOSED": "Suljettu", + "CLOSEMETHOD": "Sulje menetelmä", + "CLOSEURL": "Sulje URL", + "COMMAND": "Komento", + "CONDITION": "Kunto", + "CONTACT": "Ottaa yhteyttä", + "CREATED_AT": "Luotu", + "DEFAULT_PAUSE": "Oletustauko", + "DELETE": "Poistaa", + "DELETE_INTERACTION": "Poista vuorovaikutus", + "DELETE_SELECTED": "Poista valitut", "DELETE_WHATSAPPACCOUNT": "Poista WhatsApp-tili", "DELETE_WHATSAPPCANNEDANSWER": "Poistettu", "DELETE_WHATSAPPDISPOSITION": "Poista WhatsApp Disposition", "DELETE_WHATSAPPQUEUE": "Poista WhatsApp Queue", + "DESCRIPTION": "Kuvaus", + "DIALOGFLOW": "DialogFlow", + "DISPOSITION": "luonteenlaatu", + "DISPOSITIONS": "Mielenlaatuja", + "DOWNLOAD_INTERACTION": "ladata", + "DOWNLOAD_WITHOUT_ATTACHMENTS": "Lataa ilman liitteitä", + "DOWNLOAD_WITH_ATTACHMENTS": "Lataa liitteineen", + "EDIT_AGENT": "Muokkaa agenttia", + "EDIT_AMAZONLEX": "Muokkaa Lex-kokoonpanoa", + "EDIT_AUTOREPLY": "Muokkaa automaattista vastausta", + "EDIT_CLOSE": "Muokkaa Sulje", + "EDIT_DIALOGFLOW": "Muokkaa DialogFlow-määrityksiä", + "EDIT_GOTOIF": "Muokkaa Gotoifia", + "EDIT_GOTOP": "Muokkaa Gotopia", + "EDIT_NOOP": "Muokkaa Noop", + "EDIT_QUEUE": "Muokkaa jonoa", + "EDIT_SYSTEM": "Muokkaa järjestelmää", + "EDIT_TAG": "Muokkaa tunnistetta", "EDIT_WHATSAPPACCOUNT": "Muokkaa WhatsApp-tiliä", "EDIT_WHATSAPPCANNEDANSWER": "Muokata", "EDIT_WHATSAPPDISPOSITION": "Muokkaa WhatsApp-sijoitusta", "EDIT_WHATSAPPQUEUE": "Muokkaa WhatsApp-jonoa", + "FALSEPRIORITY": "Väärä prioriteetti", + "GENERAL": "yleinen", + "GOTOIF": "Gotoif", + "GOTOP": "Gotop", "GOTOREALTIME_WHATSAPPQUEUE": "Siirry reaaliaikaiseen WhatsApp-jonoon", "GO_TO_WHATSAPPACCOUNTS": "Siirry tilille", + "ID": "Id", + "IDLE": "tyhjäkäynti", + "INSERT_MESSAGE_HERE": "Lisää viesti tähän", + "INTERACTIONS": "vuorovaikutukset", "INTERACTIONS_WHATSAPPACCOUNT": "Siirry kohtaan Vuorovaikutukset", + "KEY": "avain", + "LANGUAGE": "Kieli", + "LASTMESSAGE": "Viimeinen viesti", + "LEXREGION": "alue", + "LIST": "Lista", + "LOGGED_IN": "Sisäänkirjautunut (SIP kytketty)", + "LOGIN_TIME": "Sisäänkirjautumisaika", + "LOGOUT": "Kirjautua ulos", + "MANDATORYDISPOSITION": "Pakollinen sijoittaminen", + "MANDATORYDISPOSITIONPAUSEID": "Tauko käyttöön, kun pakollinen sijoittaminen on käytössä", + "MORE": "Lisää", + "MOTIONPROXY": "Välityspalvelin tai liikealue", "MULTI_SELECT_TOGGLE": "Monivalintavaihto", + "NAME": "Nimi", "NEW_WHATSAPPACCOUNT": "Uusi WhatsApp-tili", "NEW_WHATSAPPCANNEDANSWER": "Uusi WhatsApp -vastaava vastaus", "NEW_WHATSAPPDISPOSITION": "Uusi WhatsApp-asema", "NEW_WHATSAPPQUEUE": "Uusi WhatsApp -jono", + "NOOP": "noop", + "NOTE": "Merkintä", + "NOTIFICATION": "ilmoitus", + "NOTIFICATIONSHAKE": "Shake", + "NOTIFICATIONSOUND": "Ääni", + "NOTIFICATIONTEMPLATE": "Sapluuna", + "NO_AGENT_ONLINE": "Ei edustajaa verkossa", + "NO_AVAILABLE_INFO": "Ei saatavissa olevaa tietoa", + "NO_INTERACTION_AVAILABLE": "Ei vuorovaikutusta", "NO_WHATSAPPCANNEDANSWER_AVAILABLE": "Ei WhatsApp-säilöttyjä vastauksia", "NO_WHATSAPPDISPOSITION_AVAILABLE": "WhatsApp-määrityksiä ei ole käytettävissä", "NO_WHATSAPP_ACCOUNTS_AVAILABLE": "WhatsApp-tilejä ei ole saatavana", + "OF": "of", + "OPENED": "avattu", + "PAGE": "Sivu", + "PARTIALPAUSE": "Osittainen tauko", + "PAUSE": "Tauko", + "PAUSED": "Keskeytetty", + "PAUSE_TIME": "Taukoaika", + "PHONE": "Puhelin", + "PRIORITY": "prioriteetti", + "PROXY": "valtakirja", + "QUEUE": "Jonottaa", + "QUEUES": "jonot", + "QUEUETRANSFER": "Jononsiirto", + "QUEUETRANSFERTIMEOUT": "Jononsiirron aikakatkaisu", + "READY": "Valmis", + "REALTIME": "Reaaliaika", + "RECEIVEURL": "Vastaanota URL", + "REFRESH_INTERACTIONS": "Päivitä vuorovaikutukset", "REMOTE": "Etä", + "ROWSPERPAGE": "Rivit / sivu", + "SAVE": "Tallentaa", + "SCREENRECORDING": "Hallitse näytön tallennusta", + "SEARCH_FOR_ANYONE": "Hae", + "SECRETACCESSKEY": "Pääsysalaisuus", + "SELECTED": "valittu", + "SELECTED_AGENTS": "Valitut edustajat", + "SELECTED_TEAMS": "Valitut joukkueet", + "SELECT_ALL": "Valitse kaikki", + "SELECT_NONE": "Älä valitse mitään", + "SEND": "Lähettää", + "SETTINGS": "asetukset", + "SPYINTERACTION": "Vakoilijoiden vuorovaikutus", + "STARTEDAT": "Alkaen klo", + "START_SCREENRECORDING": "Aloitusnäytön nauhoitus", + "STATUS": "Tila", + "STOP_SCREENRECORDING": "Lopeta näytön tallennus", + "STRATEGY": "strategia", + "SYSTEM": "järjestelmä", + "TAG": "Tag", + "TAGS": "Tunnisteet", "TEAMADD_WHATSAPPQUEUE": "Lisää joukkue WhatsApp-jonoon", + "TEAMS_ASSOCIATION": "Joukkueyhdistys", + "TEXT": "Teksti", + "TIMEOUT": "Aikalisä", + "TIMER": "Ajastin", + "TIMES": "Ajat", + "TO": "jotta", + "TOKEN": "symbolinen", + "TOOLTIP_SCREENRECORDING_OFF": "Näytön tallennus saatavilla", + "TOOLTIP_SCREENRECORDING_ON": "Näytön nauhoitus käynnissä", + "TRANSFER": "Siirtää", + "TRUEPRIORITY": "Todellinen prioriteetti", + "TYPE": "Tyyppi", + "UNPAUSE": "Lopeta tauko", + "VALUE": "Arvo", + "VARIABLE": "muuttuja", + "WAITFORTHEASSIGNEDAGENT": "Odota nimettyä agenttia", + "WAITING": "Waiting", + "WELCOMEMESSAGE": "Tervetuloviesti", + "WHATSAPP": "WhatsApp-liitin", "WHATSAPPACCOUNTS": "WhatsApp-tilit", "WHATSAPPCANNEDANSWERS": "WhatsApp-säilötyt vastaukset", "WHATSAPPDISPOSITIONS": "WhatsApp-asetukset", - "WHATSAPPQUEUES": "WhatsApp -jonot" + "WHATSAPPQUEUES": "WhatsApp -jonot", + "CLIENTEMAIL": "Asiakkaan sähköposti", + "DIALOGFLOWV2": "Dialogflow V2", + "EDIT_DIALOGFLOWV2": "Muokkaa valintaikkunaa V2", + "PRIVATEKEY": "Yksityinen avain", + "PROJECTID": "Projektin tunnus" } } diff --git a/public/app/main/apps/whatsapp/i18n/fr.json b/public/app/main/apps/whatsapp/i18n/fr.json index 673a830..b2e331a 100644 --- a/public/app/main/apps/whatsapp/i18n/fr.json +++ b/public/app/main/apps/whatsapp/i18n/fr.json @@ -1,47 +1,244 @@ { "WHATSAPP": { "ERRORS": { + "ACCESSKEYID_REQUIRED": "Champ obligatoire", + "ACCOUNTSID_REQUIRED": "Champ obligatoire", + "AGENTTRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "La valeur doit être supérieure ou égale à", + "AGENTTRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "La valeur doit être inférieure ou égale à", + "AGENTTRANSFERTIMEOUT_REQUIRED": "Champ obligatoire", + "AGENT_REQUIRED": "Champ obligatoire", + "AGENT_TIMEOUT_REQUIRED": "Champ obligatoire", + "AUTHTOKEN_REQUIRED": "Champ obligatoire", + "BOTNAME_REQUIRED": "Champ obligatoire", + "COMMAND_REQUIRED": "Champ obligatoire", + "CONDITION_REQUIRED": "Champ obligatoire", "DESCRIPTION_REQUIRED": "Champ obligatoire", + "DISPOSITION_REQUIRED": "Champ obligatoire", + "FALSEPRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "La valeur doit être supérieure ou égale à", + "FALSEPRIORITY_REQUIRED": "Champ obligatoire", + "KEY_MAX_LENGTH": "La valeur doit avoir une longueur maximale égale à {{max}}", + "KEY_REQUIRED": "Champ obligatoire", "LANGUAGE_REQUIRED": "Champ obligatoire", "LEXREGION_REQUIRED": "Champ obligatoire", + "LIST_REQUIRED": "Champ obligatoire", + "MANDATORYDISPOSITIONPAUSEID_REQUIRED": "Champ obligatoire", + "NAME_REQUIRED": "Champ obligatoire", + "PHONE_REQUIRED": "Champ obligatoire", + "PRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "La valeur doit être supérieure ou égale à", + "PRIORITY_REQUIRED": "Champ obligatoire", + "QUEUETRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "La valeur doit être supérieure ou égale à", + "QUEUETRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "La valeur doit être inférieure ou égale à", + "QUEUETRANSFERTIMEOUT_REQUIRED": "Champ obligatoire", + "QUEUE_REQUIRED": "Champ obligatoire", + "SECRETACCESSKEY_REQUIRED": "Champ obligatoire", + "TAG_REQUIRED": "Champ obligatoire", + "TEXT_REQUIRED": "Champ obligatoire", + "TIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "La valeur doit être supérieure ou égale à", + "TIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "La valeur doit être inférieure ou égale à", + "TIMEOUT_REQUIRED": "Champ obligatoire", "TIMES_REQUIRED": "Champ obligatoire", + "TOKEN_REQUIRED": "Champ obligatoire", + "TRUEPRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "La valeur doit être supérieure ou égale à", + "TRUEPRIORITY_REQUIRED": "Champ obligatoire", + "TYPE_REQUIRED": "Champ obligatoire", + "VALUE_REQUIRED": "Champ obligatoire", "VARIABLE_REQUIRED": "Champ obligatoire", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "La valeur doit être supérieure ou égale à", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "La valeur doit être inférieure ou égale à", + "WAITFORTHEASSIGNEDAGENT_REQUIRED": "Champ obligatoire", "WELCOMEMESSAGE_MAX_LENGTH": "La valeur doit avoir une longueur maximale égale à {{max}}", - "WELCOMEMESSAGE_REQUIRED": "Champ obligatoire" + "WELCOMEMESSAGE_REQUIRED": "Champ obligatoire", + "CLIENTEMAIL_REQUIRED": "Champ obligatoire", + "PRIVATEKEY_REQUIRED": "Champ obligatoire", + "PROJECTID_REQUIRED": "Champ obligatoire" }, - "HELP": {}, + "HELP": { + "LIST": "Liste du gestionnaire de contacts utilisée pour associer des contacts", + "MANDATORYDISPOSITION": "Disposition obligatoire", + "MANDATORYDISPOSITIONPAUSEID": "Pause pour utiliser lorsque la disposition obligatoire est activée", + "MOTIONPROXY": "Le champ doit avoir le format suivant: : // [: ]. Exemple: https: //X.Y.Z.W", + "NAME": "Seuls les chiffres, lettres et caractères spécifiques (._) sont pris en charge", + "RECEIVEURL": "Il s'agit de la chaîne API générée automatiquement que vous devez utiliser pour recevoir les messages de votre compte de votre fournisseur de connecteur WhatsApp (la méthode POST doit être utilisée): cliquez sur le bouton du presse-papiers pour le copier", + "WELCOMEMESSAGE": "Ceci est le premier message de réponse envoyé aux nouvelles interactions" + }, + "ACCESSKEYID": "ID de la clé d'accès", + "ACCOUNTSID": "Compte SID", + "ACTIONS": "Actions", + "ADD_NOTE": "Ajouter une note", "ADD_WHATSAPPACCOUNT": "Ajouter", "ADD_WHATSAPPCANNEDANSWER": "Ajouter une réponse standardisée", "ADD_WHATSAPPDISPOSITION": "Ajouter une disposition WhatsApp", "ADD_WHATSAPPQUEUE": "Ajouter la file d'attente WhatsApp", + "ADVANCED": "Avancée", + "AGENT": "Agent", "AGENTADD_QUEUE": "Ajouter un agent à la file d'attente WhatsApp", "AGENTADD_WHATSAPPACCOUNT": "Ajouter un agent au compte WhatsApp", "AGENTADD_WHATSAPPQUEUE": "Ajouter un agent à la file d'attente WhatsApp", + "AGENTS": "Agents", + "AGENTSADD_QUEUE": "Ajouter des agents à la file d'attente WhatsApp", + "AGENTTRANSFER": "Transfert d'agent", + "AGENTTRANSFERTIMEOUT": "Délai de transfert de l'agent", + "AGENT_TIMEOUT": "Délai d'attente de l'agent", + "ALL": "Tout", + "ALL_AGENTS": "Tous les agents", + "ALL_TEAMS": "Toutes les équipes", + "AMAZONLEX": "AmazonLex", "AUTHTOKEN": "Jeton d'authentification", + "AUTOREPLY": "Réponse automatique", + "BACK": "Arrière", + "BOTNAME": "Nom du robot", + "BUSY": "Occupé", + "CANNEDANSWERS": "Réponses en conserve", + "CANNED_ANSWER_NOT_FOUND": "Aucune réponse standardisée n'a été trouvée", + "CANNED_ANSWER_SEARCH": "Saisissez un texte pour rechercher une réponse standardisée", + "CAPACITY": "Capacité", + "CLOSE": "Fermer", + "CLOSED": "Fermé", + "CLOSEMETHOD": "Close, méthode", + "CLOSEURL": "Fermer l'URL", + "COMMAND": "Commander", + "CONDITION": "État", + "CONTACT": "Contact", + "CREATED_AT": "Créé à", + "DEFAULT_PAUSE": "PAUSE PAR DÉFAUT", + "DELETE": "Supprimer", + "DELETE_INTERACTION": "Supprimer l'interaction", + "DELETE_SELECTED": "Supprimer sélectionnée", "DELETE_WHATSAPPACCOUNT": "Supprimer le compte WhatsApp", "DELETE_WHATSAPPCANNEDANSWER": "Supprimé", "DELETE_WHATSAPPDISPOSITION": "Supprimer la disposition WhatsApp", "DELETE_WHATSAPPQUEUE": "Supprimer la file d'attente WhatsApp", + "DESCRIPTION": "La description", + "DIALOGFLOW": "DialogFlow", + "DISPOSITION": "Disposition", + "DISPOSITIONS": "Dispositions", + "DOWNLOAD_INTERACTION": "Télécharger", + "DOWNLOAD_WITHOUT_ATTACHMENTS": "Télécharger sans pièces jointes", + "DOWNLOAD_WITH_ATTACHMENTS": "Télécharger avec pièces jointes", + "EDIT_AGENT": "Modifier l'agent", + "EDIT_AMAZONLEX": "Modifier la configuration Lex", + "EDIT_AUTOREPLY": "Modifier la réponse automatique", + "EDIT_CLOSE": "Modifier Fermer", + "EDIT_DIALOGFLOW": "Modifier la configuration de DialogFlow", + "EDIT_GOTOIF": "Modifier Gotoif", + "EDIT_GOTOP": "Modifier Gotop", + "EDIT_NOOP": "Modifier Noop", + "EDIT_QUEUE": "Modifier la file d'attente", + "EDIT_SYSTEM": "Modifier le système", + "EDIT_TAG": "Modifier la balise", "EDIT_WHATSAPPACCOUNT": "Modifier le compte WhatsApp", "EDIT_WHATSAPPCANNEDANSWER": "Éditer", "EDIT_WHATSAPPDISPOSITION": "Modifier la disposition WhatsApp", "EDIT_WHATSAPPQUEUE": "Modifier la file d'attente WhatsApp", + "FALSEPRIORITY": "Fausse priorité", + "GENERAL": "Général", + "GOTOIF": "Gotoif", + "GOTOP": "Aller en haut", "GOTOREALTIME_WHATSAPPQUEUE": "Aller à la file d'attente WhatsApp en temps réel", "GO_TO_WHATSAPPACCOUNTS": "Aller au compte", + "ID": "Id", + "IDLE": "Tourner au ralenti", + "INSERT_MESSAGE_HERE": "Insérez le message ici", + "INTERACTIONS": "Les interactions", "INTERACTIONS_WHATSAPPACCOUNT": "Aller aux interactions", + "KEY": "Clé", + "LANGUAGE": "Langue", + "LASTMESSAGE": "Dernier message", + "LEXREGION": "Région", + "LIST": "liste", + "LOGGED_IN": "Connecté (SIP connecté)", + "LOGIN_TIME": "Heure de connexion", + "LOGOUT": "Se déconnecter", + "MANDATORYDISPOSITION": "Disposition obligatoire", + "MANDATORYDISPOSITIONPAUSEID": "Pause pour utiliser lorsque la disposition obligatoire est activée", + "MORE": "Plus", + "MOTIONPROXY": "Proxy ou domaine de mouvement", "MULTI_SELECT_TOGGLE": "Bascule de sélection multiple", + "NAME": "Nom", "NEW_WHATSAPPACCOUNT": "Nouveau compte WhatsApp", "NEW_WHATSAPPCANNEDANSWER": "Nouvelle réponse standardisée WhatsApp", "NEW_WHATSAPPDISPOSITION": "Nouvelle disposition WhatsApp", "NEW_WHATSAPPQUEUE": "Nouvelle file d'attente WhatsApp", + "NOOP": "Noop", + "NOTE": "Remarque", + "NOTIFICATION": "Notification", + "NOTIFICATIONSHAKE": "Secouer", + "NOTIFICATIONSOUND": "Du son", + "NOTIFICATIONTEMPLATE": "Modèle", + "NO_AGENT_ONLINE": "Aucun agent en ligne", + "NO_AVAILABLE_INFO": "Aucune information disponible", + "NO_INTERACTION_AVAILABLE": "Aucune interaction disponible", "NO_WHATSAPPCANNEDANSWER_AVAILABLE": "Aucune réponse standardisée WhatsApp disponible", "NO_WHATSAPPDISPOSITION_AVAILABLE": "Aucune disposition WhatsApp disponible", "NO_WHATSAPP_ACCOUNTS_AVAILABLE": "Aucun compte WhatsApp disponible", + "OF": "de", + "OPENED": "Ouvert", + "PAGE": "Page", + "PARTIALPAUSE": "Pause partielle", + "PAUSE": "Pause", + "PAUSED": "En pause", + "PAUSE_TIME": "Le temps de pause", + "PHONE": "Téléphone", + "PRIORITY": "Priorité", + "PROXY": "Procuration", + "QUEUE": "Queue", + "QUEUES": "Files d'attente", + "QUEUETRANSFER": "Transfert de file d'attente", + "QUEUETRANSFERTIMEOUT": "Délai de transfert de la file d'attente", + "READY": "Prêt", + "REALTIME": "Temps réel", + "RECEIVEURL": "Recevoir l'URL", + "REFRESH_INTERACTIONS": "Actualiser les interactions", "REMOTE": "Éloigné", + "ROWSPERPAGE": "Lignes par page", + "SAVE": "sauver", + "SCREENRECORDING": "Gérer l'enregistrement d'écran", + "SEARCH_FOR_ANYONE": "Chercher", + "SECRETACCESSKEY": "Clé d'accès secrète", + "SELECTED": "Choisi", + "SELECTED_AGENTS": "Agents sélectionnés", + "SELECTED_TEAMS": "Équipes sélectionnées", + "SELECT_ALL": "Tout sélectionner", + "SELECT_NONE": "Ne rien sélectionner", + "SEND": "Envoyer", + "SETTINGS": "Paramètres", + "SPYINTERACTION": "Interaction d'espion", + "STARTEDAT": "Commencé à", + "START_SCREENRECORDING": "Démarrer l'enregistrement d'écran", + "STATUS": "Statut", + "STOP_SCREENRECORDING": "Arrêter l'enregistrement d'écran", + "STRATEGY": "Stratégie", + "SYSTEM": "Système", + "TAG": "Marque", + "TAGS": "Mots clés", "TEAMADD_WHATSAPPQUEUE": "Ajouter une équipe à la file d'attente WhatsApp", + "TEAMS_ASSOCIATION": "Association des équipes", + "TEXT": "Texte", + "TIMEOUT": "Temps libre", + "TIMER": "Minuteur", + "TIMES": "Fois", + "TO": "À", + "TOKEN": "Jeton", + "TOOLTIP_SCREENRECORDING_OFF": "Enregistrement d'écran disponible", + "TOOLTIP_SCREENRECORDING_ON": "Enregistrement d'écran en cours", + "TRANSFER": "Transfert", + "TRUEPRIORITY": "Vraie priorité", + "TYPE": "Type", + "UNPAUSE": "Mettre fin à la pause", + "VALUE": "Valeur", + "VARIABLE": "Variable", + "WAITFORTHEASSIGNEDAGENT": "Attendez l'agent assigné", + "WAITING": "Attendre", + "WELCOMEMESSAGE": "Message de bienvenue", + "WHATSAPP": "Connecteur WhatsApp", "WHATSAPPACCOUNTS": "Comptes WhatsApp", "WHATSAPPCANNEDANSWERS": "Réponses en conserve WhatsApp", "WHATSAPPDISPOSITIONS": "Dispositions WhatsApp", - "WHATSAPPQUEUES": "Files d'attente WhatsApp" + "WHATSAPPQUEUES": "Files d'attente WhatsApp", + "CLIENTEMAIL": "Courriel du client", + "DIALOGFLOWV2": "Dialogflow V2", + "EDIT_DIALOGFLOWV2": "Modifier Dialogflow V2", + "PRIVATEKEY": "Clé privée", + "PROJECTID": "ID du projet" } } diff --git a/public/app/main/apps/whatsapp/i18n/he.json b/public/app/main/apps/whatsapp/i18n/he.json index 88b626e..00d0fa4 100644 --- a/public/app/main/apps/whatsapp/i18n/he.json +++ b/public/app/main/apps/whatsapp/i18n/he.json @@ -1,47 +1,244 @@ { "WHATSAPP": { "ERRORS": { + "ACCESSKEYID_REQUIRED": "שדה חובה", + "ACCOUNTSID_REQUIRED": "שדה חובה", + "AGENTTRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "הערך חייב להיות גדול או שווה מ", + "AGENTTRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "הערך חייב להיות פחות או שווה מ", + "AGENTTRANSFERTIMEOUT_REQUIRED": "שדה חובה", + "AGENT_REQUIRED": "שדה חובה", + "AGENT_TIMEOUT_REQUIRED": "שדה חובה", + "AUTHTOKEN_REQUIRED": "שדה חובה", + "BOTNAME_REQUIRED": "שדה חובה", + "COMMAND_REQUIRED": "שדה חובה", + "CONDITION_REQUIRED": "שדה חובה", "DESCRIPTION_REQUIRED": "שדה חובה", + "DISPOSITION_REQUIRED": "שדה חובה", + "FALSEPRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "הערך חייב להיות גדול או שווה מ", + "FALSEPRIORITY_REQUIRED": "שדה חובה", + "KEY_MAX_LENGTH": "הערך חייב להיות באורך מקסימאלי שווה ל {{max}}", + "KEY_REQUIRED": "שדה חובה", "LANGUAGE_REQUIRED": "שדה מנדטורי", "LEXREGION_REQUIRED": "שדה חובה", + "LIST_REQUIRED": "שדה חובה", + "MANDATORYDISPOSITIONPAUSEID_REQUIRED": "שדה חובה", + "NAME_REQUIRED": "שדה חובה", + "PHONE_REQUIRED": "שדה חובה", + "PRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "הערך חייב להיות גדול או שווה מ", + "PRIORITY_REQUIRED": "שדה חובה", + "QUEUETRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "הערך חייב להיות גדול או שווה מ", + "QUEUETRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "הערך חייב להיות פחות או שווה מ", + "QUEUETRANSFERTIMEOUT_REQUIRED": "שדה חובה", + "QUEUE_REQUIRED": "שדה חובה", + "SECRETACCESSKEY_REQUIRED": "שדה חובה", + "TAG_REQUIRED": "שדה חובה", + "TEXT_REQUIRED": "שדה חובה", + "TIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "הערך חייב להיות גדול או שווה מ", + "TIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "הערך חייב להיות פחות או שווה מ", + "TIMEOUT_REQUIRED": "שדה חובה", "TIMES_REQUIRED": "שדה חובה", + "TOKEN_REQUIRED": "שדה חובה", + "TRUEPRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "הערך חייב להיות גדול או שווה מ", + "TRUEPRIORITY_REQUIRED": "שדה חובה", + "TYPE_REQUIRED": "שדה חובה", + "VALUE_REQUIRED": "שדה חובה", "VARIABLE_REQUIRED": "שדה חובה", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "הערך חייב להיות גדול או שווה מ", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "הערך חייב להיות פחות או שווה מ", + "WAITFORTHEASSIGNEDAGENT_REQUIRED": "שדה חובה", "WELCOMEMESSAGE_MAX_LENGTH": "הערך חייב להיות באורך מקסימאלי שווה ל {{max}}", - "WELCOMEMESSAGE_REQUIRED": "שדה חובה" + "WELCOMEMESSAGE_REQUIRED": "שדה חובה", + "CLIENTEMAIL_REQUIRED": "שדה חובה", + "PRIVATEKEY_REQUIRED": "שדה חובה", + "PROJECTID_REQUIRED": "שדה חובה" }, - "HELP": {}, + "HELP": { + "LIST": "רשימת אנשי קשר המשמשת לשייך קשרים", + "MANDATORYDISPOSITION": "נטייה חובה", + "MANDATORYDISPOSITIONPAUSEID": "השהה לשימוש כאשר פעולת התייחסות חובה מופעלת", + "MOTIONPROXY": "השדה צריך להיות בעל הפורמט הבא: <פרוטוקול>: // <כתובת> [: <פורט>]. דוגמה: https: //X.Y.Z.W", + "NAME": "נתמכים רק מספרים, אותיות ותווים ספציפיים (._)", + "RECEIVEURL": "זהו מחרוזת ה- API המיוצר אוטומטית בה אתה צריך להשתמש בכדי לקבל את ההודעות בחשבונך מספק ה- WhatsApp Connector שלך (יש להשתמש בשיטת POST): לחץ על כפתור הלוח כדי להעתיק אותו", + "WELCOMEMESSAGE": "זוהי הודעת התגובה הראשונה שנשלחה לאינטראקציות חדשות" + }, + "ACCESSKEYID": "גישה למזהה מפתח", + "ACCOUNTSID": "חשבון SID", + "ACTIONS": "פעולות", + "ADD_NOTE": "להוסיף הערה", "ADD_WHATSAPPACCOUNT": "לְהוֹסִיף", "ADD_WHATSAPPCANNEDANSWER": "הוסף תשובה משומרת", "ADD_WHATSAPPDISPOSITION": "הוסף WhatsApp Disposition", "ADD_WHATSAPPQUEUE": "הוסף תור WhatsApp", + "ADVANCED": "מִתקַדֵם", + "AGENT": "סוֹכֵן", "AGENTADD_QUEUE": "הוסף סוכן לתור WhatsApp", "AGENTADD_WHATSAPPACCOUNT": "הוסף סוכן לחשבון WhatsApp", "AGENTADD_WHATSAPPQUEUE": "הוסף סוכן לתור WhatsApp", + "AGENTS": "סוכנים", + "AGENTSADD_QUEUE": "הוסף סוכנים לתור WhatsApp", + "AGENTTRANSFER": "העברת סוכן", + "AGENTTRANSFERTIMEOUT": "פסק זמן להעברת סוכן", + "AGENT_TIMEOUT": "פסק זמן לסוכן", + "ALL": "את כל", + "ALL_AGENTS": "כל הסוכנים", + "ALL_TEAMS": "כל הקבוצות", + "AMAZONLEX": "אמזון-לקס", "AUTHTOKEN": "אסימון אותנטי", + "AUTOREPLY": "תגובה אוטומטית", + "BACK": "חזור", + "BOTNAME": "שם בוט", + "BUSY": "עסוק", + "CANNEDANSWERS": "תשובות משומרות", + "CANNED_ANSWER_NOT_FOUND": "לא נמצאו תשובות משומר", + "CANNED_ANSWER_SEARCH": "הזן טקסט לחיפוש בתשובה משומרת", + "CAPACITY": "קיבולת", + "CLOSE": "סגור", + "CLOSED": "סָגוּר", + "CLOSEMETHOD": "שיטה סגורה", + "CLOSEURL": "סגור את כתובת האתר", + "COMMAND": "פקודה", + "CONDITION": "מַצָב", + "CONTACT": "איש קשר", + "CREATED_AT": "נוצר ב", + "DEFAULT_PAUSE": "PAUSE PAUSE", + "DELETE": "לִמְחוֹק", + "DELETE_INTERACTION": "מחק אינטראקציה", + "DELETE_SELECTED": "מחק את הנבחר", "DELETE_WHATSAPPACCOUNT": "מחק את חשבון WhatsApp", "DELETE_WHATSAPPCANNEDANSWER": "נמחק", "DELETE_WHATSAPPDISPOSITION": "מחק את התוכן של WhatsApp", "DELETE_WHATSAPPQUEUE": "מחק תור WhatsApp", + "DESCRIPTION": "תיאור", + "DIALOGFLOW": "DialogFlow", + "DISPOSITION": "מֶזֶג", + "DISPOSITIONS": "נטיות", + "DOWNLOAD_INTERACTION": "הורד", + "DOWNLOAD_WITHOUT_ATTACHMENTS": "הורד ללא קבצים מצורפים", + "DOWNLOAD_WITH_ATTACHMENTS": "הורד עם קבצים מצורפים", + "EDIT_AGENT": "ערוך סוכן", + "EDIT_AMAZONLEX": "ערוך את תצורת Lex", + "EDIT_AUTOREPLY": "ערוך תגובה אוטומטית", + "EDIT_CLOSE": "ערוך סגור", + "EDIT_DIALOGFLOW": "ערוך את תצורת DialogFlow", + "EDIT_GOTOIF": "ערוך את גוטוטיף", + "EDIT_GOTOP": "ערוך את Gotop", + "EDIT_NOOP": "ערוך Noop", + "EDIT_QUEUE": "ערוך תור", + "EDIT_SYSTEM": "ערוך מערכת", + "EDIT_TAG": "ערוך תג", "EDIT_WHATSAPPACCOUNT": "ערוך את חשבון WhatsApp", "EDIT_WHATSAPPCANNEDANSWER": "לַעֲרוֹך", "EDIT_WHATSAPPDISPOSITION": "ערוך את WhatsApp Disposition", "EDIT_WHATSAPPQUEUE": "ערוך תור WhatsApp", + "FALSEPRIORITY": "עדיפות שקרית", + "GENERAL": "כללי", + "GOTOIF": "גוטוטיף", + "GOTOP": "לך למעלה", "GOTOREALTIME_WHATSAPPQUEUE": "עבור לתור WhatsApp בזמן אמת", "GO_TO_WHATSAPPACCOUNTS": "עבור לחשבון", + "ID": "תְעוּדַת זֶהוּת", + "IDLE": "לְהִתְבַּטֵל", + "INSERT_MESSAGE_HERE": "הכנס הודעה כאן", + "INTERACTIONS": "אינטראקציות", "INTERACTIONS_WHATSAPPACCOUNT": "עבור אל אינטראקציות", + "KEY": "מַפְתֵחַ", + "LANGUAGE": "שפה", + "LASTMESSAGE": "הודעה אחרונה", + "LEXREGION": "אזור", + "LIST": "רשימה", + "LOGGED_IN": "מחובר (SIP מחובר)", + "LOGIN_TIME": "זמן כניסה", + "LOGOUT": "להתנתק", + "MANDATORYDISPOSITION": "התנהגות חובה", + "MANDATORYDISPOSITIONPAUSEID": "השהה לשימוש כאשר פעולת התייחסות חובה מופעלת", + "MORE": "יותר", + "MOTIONPROXY": "פרוקסי או תחום תנועה", "MULTI_SELECT_TOGGLE": "החלפת ריבוי בחירה", + "NAME": "שֵׁם", "NEW_WHATSAPPACCOUNT": "חשבון WhatsApp חדש", "NEW_WHATSAPPCANNEDANSWER": "תשובה חדשה של WhatsApp שימורים", "NEW_WHATSAPPDISPOSITION": "ניו WhatsApp Disposition", "NEW_WHATSAPPQUEUE": "תור WhatsApp חדש", + "NOOP": "בצהריים", + "NOTE": "הערה", + "NOTIFICATION": "הוֹדָעָה", + "NOTIFICATIONSHAKE": "לְנַעֵר", + "NOTIFICATIONSOUND": "נשמע", + "NOTIFICATIONTEMPLATE": "תבנית", + "NO_AGENT_ONLINE": "אין סוכן מקוון", + "NO_AVAILABLE_INFO": "אין מידע זמין", + "NO_INTERACTION_AVAILABLE": "אין אינטראקציות זמינות", "NO_WHATSAPPCANNEDANSWER_AVAILABLE": "אין תשובות משומרות WhatsApp זמינות", "NO_WHATSAPPDISPOSITION_AVAILABLE": "אין זמינות ל- WhatsApp", "NO_WHATSAPP_ACCOUNTS_AVAILABLE": "אין חשבונות WhatsApp זמינים", + "OF": "שֶׁל", + "OPENED": "נפתח", + "PAGE": "עמוד", + "PARTIALPAUSE": "הפסקה חלקית", + "PAUSE": "הַפסָקָה", + "PAUSED": "מושהה", + "PAUSE_TIME": "זמן הפסקה", + "PHONE": "טלפון", + "PRIORITY": "עדיפות", + "PROXY": "פרוקסי", + "QUEUE": "תוֹר", + "QUEUES": "תורים", + "QUEUETRANSFER": "העברת תור", + "QUEUETRANSFERTIMEOUT": "פסק זמן להעברת תורים", + "READY": "מוּכָן", + "REALTIME": "זמן אמת", + "RECEIVEURL": "קבל כתובת אתר", + "REFRESH_INTERACTIONS": "רענן אינטראקציות", "REMOTE": "מְרוּחָק", + "ROWSPERPAGE": "שורות לעמוד", + "SAVE": "לשמור", + "SCREENRECORDING": "נהל הקלטת מסך", + "SEARCH_FOR_ANYONE": "לחפש", + "SECRETACCESSKEY": "גישה לסוד מפתח", + "SELECTED": "נבחר", + "SELECTED_AGENTS": "סוכנים נבחרים", + "SELECTED_TEAMS": "צוותים נבחרים", + "SELECT_ALL": "בחר הכל", + "SELECT_NONE": "אל תבחר באף אחת מהאפשרויות", + "SEND": "לִשְׁלוֹחַ", + "SETTINGS": "הגדרות", + "SPYINTERACTION": "אינטראקציה מרגלת", + "STARTEDAT": "התחיל ב", + "START_SCREENRECORDING": "הקלטת מסך התחלה", + "STATUS": "סטָטוּס", + "STOP_SCREENRECORDING": "עצירת הקלטת מסך", + "STRATEGY": "אִסטרָטֶגִיָה", + "SYSTEM": "מערכת", + "TAG": "תָג", + "TAGS": "תגיות", "TEAMADD_WHATSAPPQUEUE": "הוסף צוות לתור WhatsApp", + "TEAMS_ASSOCIATION": "איגוד הצוותים", + "TEXT": "טֶקסט", + "TIMEOUT": "פסק זמן", + "TIMER": "שָׁעוֹן עֶצֶר", + "TIMES": "פִּי", + "TO": "ל", + "TOKEN": "אֲסִימוֹן", + "TOOLTIP_SCREENRECORDING_OFF": "הקלטת מסך זמינה", + "TOOLTIP_SCREENRECORDING_ON": "הקלטת מסך מתבצעת", + "TRANSFER": "לְהַעֲבִיר", + "TRUEPRIORITY": "עדיפות אמיתית", + "TYPE": "סוּג", + "UNPAUSE": "סוף הפסקה", + "VALUE": "ערך", + "VARIABLE": "מִשְׁתַנֶה", + "WAITFORTHEASSIGNEDAGENT": "המתן לסוכן שהוקצה", + "WAITING": "הַמתָנָה", + "WELCOMEMESSAGE": "הודעת ברוך הבא", + "WHATSAPP": "מחבר WhatsApp", "WHATSAPPACCOUNTS": "חשבונות WhatsApp", "WHATSAPPCANNEDANSWERS": "תשובות משומרות על WhatsApp", "WHATSAPPDISPOSITIONS": "אפשרויות WhatsApp", - "WHATSAPPQUEUES": "תורי WhatsApp" + "WHATSAPPQUEUES": "תורי WhatsApp", + "CLIENTEMAIL": "דוא\"ל לקוח", + "DIALOGFLOWV2": "Dialogflow V2", + "EDIT_DIALOGFLOWV2": "ערוך את Dialogflow V2", + "PRIVATEKEY": "מפתח פרטי", + "PROJECTID": "מזהה פרויקט" } } diff --git a/public/app/main/apps/whatsapp/i18n/hi.json b/public/app/main/apps/whatsapp/i18n/hi.json index e572aa8..819f531 100644 --- a/public/app/main/apps/whatsapp/i18n/hi.json +++ b/public/app/main/apps/whatsapp/i18n/hi.json @@ -1,47 +1,244 @@ { "WHATSAPP": { "ERRORS": { + "ACCESSKEYID_REQUIRED": "आवश्यक स्थान", + "ACCOUNTSID_REQUIRED": "आवश्यक स्थान", + "AGENTTRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "मान इससे अधिक या बराबर होना चाहिए", + "AGENTTRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "मान इससे कम या बराबर होना चाहिए", + "AGENTTRANSFERTIMEOUT_REQUIRED": "आवश्यक स्थान", + "AGENT_REQUIRED": "आवश्यक स्थान", + "AGENT_TIMEOUT_REQUIRED": "आवश्यक स्थान", + "AUTHTOKEN_REQUIRED": "आवश्यक स्थान", + "BOTNAME_REQUIRED": "आवश्यक स्थान", + "COMMAND_REQUIRED": "आवश्यक स्थान", + "CONDITION_REQUIRED": "आवश्यक स्थान", "DESCRIPTION_REQUIRED": "आवश्यक स्थान", + "DISPOSITION_REQUIRED": "आवश्यक स्थान", + "FALSEPRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "मान इससे अधिक या बराबर होना चाहिए", + "FALSEPRIORITY_REQUIRED": "आवश्यक स्थान", + "KEY_MAX_LENGTH": "मान की अधिकतम लंबाई {{अधिकतम}} के बराबर होनी चाहिए", + "KEY_REQUIRED": "आवश्यक स्थान", "LANGUAGE_REQUIRED": "मैंडेटरी फील्ड", "LEXREGION_REQUIRED": "आवश्यक स्थान", + "LIST_REQUIRED": "आवश्यक स्थान", + "MANDATORYDISPOSITIONPAUSEID_REQUIRED": "आवश्यक स्थान", + "NAME_REQUIRED": "आवश्यक स्थान", + "PHONE_REQUIRED": "आवश्यक स्थान", + "PRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "मान इससे अधिक या बराबर होना चाहिए", + "PRIORITY_REQUIRED": "आवश्यक स्थान", + "QUEUETRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "मान इससे अधिक या बराबर होना चाहिए", + "QUEUETRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "मान इससे कम या बराबर होना चाहिए", + "QUEUETRANSFERTIMEOUT_REQUIRED": "आवश्यक स्थान", + "QUEUE_REQUIRED": "आवश्यक स्थान", + "SECRETACCESSKEY_REQUIRED": "आवश्यक स्थान", + "TAG_REQUIRED": "आवश्यक स्थान", + "TEXT_REQUIRED": "आवश्यक स्थान", + "TIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "मान इससे अधिक या बराबर होना चाहिए", + "TIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "मान इससे कम या बराबर होना चाहिए", + "TIMEOUT_REQUIRED": "आवश्यक स्थान", "TIMES_REQUIRED": "आवश्यक स्थान", + "TOKEN_REQUIRED": "आवश्यक स्थान", + "TRUEPRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "मान इससे अधिक या बराबर होना चाहिए", + "TRUEPRIORITY_REQUIRED": "आवश्यक स्थान", + "TYPE_REQUIRED": "आवश्यक स्थान", + "VALUE_REQUIRED": "आवश्यक स्थान", "VARIABLE_REQUIRED": "आवश्यक स्थान", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "मान इससे अधिक या बराबर होना चाहिए", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "मान इससे कम या बराबर होना चाहिए", + "WAITFORTHEASSIGNEDAGENT_REQUIRED": "आवश्यक स्थान", "WELCOMEMESSAGE_MAX_LENGTH": "मान की अधिकतम लंबाई {{अधिकतम}} के बराबर होनी चाहिए", - "WELCOMEMESSAGE_REQUIRED": "आवश्यक स्थान" + "WELCOMEMESSAGE_REQUIRED": "आवश्यक स्थान", + "CLIENTEMAIL_REQUIRED": "आवश्यक स्थान", + "PRIVATEKEY_REQUIRED": "आवश्यक स्थान", + "PROJECTID_REQUIRED": "आवश्यक स्थान" }, - "HELP": {}, + "HELP": { + "LIST": "कॉन्टैक्ट मैनेजर लिस्ट का इस्तेमाल कॉन्टैक्ट्स को जोड़ने में किया जाता है", + "MANDATORYDISPOSITION": "अनिवार्य स्वभाव", + "MANDATORYDISPOSITIONPAUSEID": "अनिवार्य स्वभाव सक्षम होने पर उपयोग करने के लिए रुकें", + "MOTIONPROXY": "फ़ील्ड में निम्न प्रारूप होना चाहिए: <प्रोटोकॉल>: // [: ]। उदाहरण: https: //X.Y.Z.W", + "NAME": "केवल संख्याएँ, अक्षर और विशिष्ट वर्ण (._) समर्थित हैं", + "RECEIVEURL": "यह स्वतः जनरेट किया गया एपीआई स्ट्रिंग है जिसे आपको अपने व्हाट्सएप कनेक्टर प्रदाता (POST विधि का उपयोग करना होगा) से अपने खाते के अंदर संदेशों को प्राप्त करने के लिए उपयोग करना होगा: इसे कॉपी करने के लिए क्लिपबोर्ड बटन पर क्लिक करें", + "WELCOMEMESSAGE": "यह नई प्रतिक्रियाओं के लिए भेजा गया पहला प्रतिक्रिया संदेश है" + }, + "ACCESSKEYID": "एक्सेस की आईडी", + "ACCOUNTSID": "खाता एसआईडी", + "ACTIONS": "क्रिया", + "ADD_NOTE": "नोट जोड़े", "ADD_WHATSAPPACCOUNT": "जोड़ना", "ADD_WHATSAPPCANNEDANSWER": "डिब्बाबंद उत्तर जोड़ें", "ADD_WHATSAPPDISPOSITION": "WhatsApp Disposition जोड़ें", "ADD_WHATSAPPQUEUE": "WhatsApp कतार में जोड़ें", + "ADVANCED": "उन्नत", + "AGENT": "एजेंट", "AGENTADD_QUEUE": "व्हाट्सएप कतार में एजेंट जोड़ें", "AGENTADD_WHATSAPPACCOUNT": "एजेंट को व्हाट्सएप अकाउंट में जोड़ें", "AGENTADD_WHATSAPPQUEUE": "व्हाट्सएप कतार में एजेंट जोड़ें", + "AGENTS": "एजेंटों", + "AGENTSADD_QUEUE": "व्हाट्सएप कतार में एजेंटों को जोड़ें", + "AGENTTRANSFER": "एजेंट स्थानांतरण", + "AGENTTRANSFERTIMEOUT": "एजेंट स्थानांतरण टाइमआउट", + "AGENT_TIMEOUT": "एजेंट टाइमआउट", + "ALL": "सब", + "ALL_AGENTS": "सभी एजेंट", + "ALL_TEAMS": "सभी टीमें", + "AMAZONLEX": "AmazonLex", "AUTHTOKEN": "प्रामाणिक टोकन", + "AUTOREPLY": "स्व उत्तर", + "BACK": "वापस", + "BOTNAME": "बॉट नाम", + "BUSY": "व्यस्त", + "CANNEDANSWERS": "डिब्बाबंद जवाब", + "CANNED_ANSWER_NOT_FOUND": "कोई डिब्बाबंद जवाब नहीं मिला", + "CANNED_ANSWER_SEARCH": "डिब्बाबंद उत्तर खोजने के लिए एक पाठ दर्ज करें", + "CAPACITY": "क्षमता", + "CLOSE": "बंद करे", + "CLOSED": "बन्द है", + "CLOSEMETHOD": "बंद करने की विधि", + "CLOSEURL": "URL बंद करें", + "COMMAND": "आदेश", + "CONDITION": "स्थिति", + "CONTACT": "संपर्क करें", + "CREATED_AT": "पर बनाया गया", + "DEFAULT_PAUSE": "DEFAULT PAUSE", + "DELETE": "हटाएं", + "DELETE_INTERACTION": "सहभागिता हटाएं", + "DELETE_SELECTED": "चयनित मिटाएं", "DELETE_WHATSAPPACCOUNT": "व्हाट्सएप अकाउंट को डिलीट करें", "DELETE_WHATSAPPCANNEDANSWER": "हटाए गए", "DELETE_WHATSAPPDISPOSITION": "व्हाट्सएप डिस्पोजल को डिलीट करें", "DELETE_WHATSAPPQUEUE": "WhatsApp कतार हटाएं", + "DESCRIPTION": "विवरण", + "DIALOGFLOW": "DialogFlow", + "DISPOSITION": "स्वभाव", + "DISPOSITIONS": "फ़ौजी तरतीब", + "DOWNLOAD_INTERACTION": "डाउनलोड", + "DOWNLOAD_WITHOUT_ATTACHMENTS": "संलग्नक के बिना डाउनलोड करें", + "DOWNLOAD_WITH_ATTACHMENTS": "अनुलग्नकों के साथ डाउनलोड करें", + "EDIT_AGENT": "एजेंट को संपादित करें", + "EDIT_AMAZONLEX": "लेक्स कॉन्फ़िगरेशन संपादित करें", + "EDIT_AUTOREPLY": "ऑटो उत्तर संपादित करें", + "EDIT_CLOSE": "बंद करें संपादित करें", + "EDIT_DIALOGFLOW": "DialogFlow कॉन्फ़िगरेशन संपादित करें", + "EDIT_GOTOIF": "गोटिफ को संपादित करें", + "EDIT_GOTOP": "गोटो को संपादित करें", + "EDIT_NOOP": "नूप को संपादित करें", + "EDIT_QUEUE": "कतार संपादित करें", + "EDIT_SYSTEM": "सिस्टम संपादित करें", + "EDIT_TAG": "टैग संपादित करें", "EDIT_WHATSAPPACCOUNT": "WhatsApp खाता संपादित करें", "EDIT_WHATSAPPCANNEDANSWER": "संपादित करें", "EDIT_WHATSAPPDISPOSITION": "WhatsApp विवाद को संपादित करें", "EDIT_WHATSAPPQUEUE": "WhatsApp कतार संपादित करें", + "FALSEPRIORITY": "झूठी प्राथमिकता", + "GENERAL": "सामान्य", + "GOTOIF": "Gotoif", + "GOTOP": "शीर्ष पर जाना", "GOTOREALTIME_WHATSAPPQUEUE": "रियल टाइम व्हाट्सएप पर जाएं", "GO_TO_WHATSAPPACCOUNTS": "खाते जाओ", + "ID": "ईद", + "IDLE": "बेकार", + "INSERT_MESSAGE_HERE": "यहां मैसेज डालें", + "INTERACTIONS": "सहभागिता", "INTERACTIONS_WHATSAPPACCOUNT": "सहभागिता पर जाएं", + "KEY": "चाभी", + "LANGUAGE": "भाषा: हिन्दी", + "LASTMESSAGE": "आखिरी सन्देश", + "LEXREGION": "क्षेत्र", + "LIST": "सूची", + "LOGGED_IN": "लॉग इन (SIP कनेक्टेड)", + "LOGIN_TIME": "लॉग इन टाइम", + "LOGOUT": "लॉग आउट", + "MANDATORYDISPOSITION": "अनिवार्य विवाद", + "MANDATORYDISPOSITIONPAUSEID": "अनिवार्य स्वभाव सक्षम होने पर उपयोग करने के लिए रुकें", + "MORE": "अधिक", + "MOTIONPROXY": "प्रॉक्सी या मोशन डोमेन", "MULTI_SELECT_TOGGLE": "मल्टी सिलेक्ट टॉगल", + "NAME": "नाम", "NEW_WHATSAPPACCOUNT": "नया व्हाट्सएप अकाउंट", "NEW_WHATSAPPCANNEDANSWER": "नया व्हाट्सएप डिब्बाबंद जवाब", "NEW_WHATSAPPDISPOSITION": "नया व्हाट्सएप डिस्पोजल", "NEW_WHATSAPPQUEUE": "नई WhatsApp कतार", + "NOOP": "NOOP", + "NOTE": "ध्यान दें", + "NOTIFICATION": "अधिसूचना", + "NOTIFICATIONSHAKE": "शेक", + "NOTIFICATIONSOUND": "ध्वनि", + "NOTIFICATIONTEMPLATE": "खाका", + "NO_AGENT_ONLINE": "कोई एजेंट ऑनलाइन नहीं", + "NO_AVAILABLE_INFO": "कोई उपलब्ध जानकारी नहीं", + "NO_INTERACTION_AVAILABLE": "कोई बातचीत उपलब्ध नहीं है", "NO_WHATSAPPCANNEDANSWER_AVAILABLE": "कोई व्हाट्सएप डिब्बाबंद जवाब उपलब्ध नहीं", "NO_WHATSAPPDISPOSITION_AVAILABLE": "कोई व्हाट्सएप डिस्पोजल उपलब्ध नहीं है", "NO_WHATSAPP_ACCOUNTS_AVAILABLE": "कोई व्हाट्सएप अकाउंट उपलब्ध नहीं है", + "OF": "का", + "OPENED": "खुल गया", + "PAGE": "पृष्ठ", + "PARTIALPAUSE": "आंशिक विराम", + "PAUSE": "ठहराव", + "PAUSED": "रोके गए", + "PAUSE_TIME": "विराम का वक्त", + "PHONE": "फ़ोन", + "PRIORITY": "प्राथमिकता", + "PROXY": "प्रतिनिधि", + "QUEUE": "कतार", + "QUEUES": "कतार", + "QUEUETRANSFER": "कतार स्थानांतरण", + "QUEUETRANSFERTIMEOUT": "कतार स्थानांतरण टाइमआउट", + "READY": "तैयार", + "REALTIME": "रियल टाइम", + "RECEIVEURL": "URL प्राप्त करें", + "REFRESH_INTERACTIONS": "बातचीत को ताज़ा करें", "REMOTE": "रिमोट", + "ROWSPERPAGE": "प्रति पृष्ठ पंक्तियाँ", + "SAVE": "सहेजें", + "SCREENRECORDING": "स्क्रीन रिकॉर्डिंग की व्यवस्था करें", + "SEARCH_FOR_ANYONE": "खोज", + "SECRETACCESSKEY": "पहुंच कुंजी रहस्य", + "SELECTED": "चुन लिया", + "SELECTED_AGENTS": "चयनित एजेंट", + "SELECTED_TEAMS": "चयनित टीमें", + "SELECT_ALL": "सभी का चयन करे", + "SELECT_NONE": "किसी का चयन न करें", + "SEND": "संदेश", + "SETTINGS": "समायोजन", + "SPYINTERACTION": "जासूस बातचीत", + "STARTEDAT": "इस समय पर शुरू किया", + "START_SCREENRECORDING": "स्क्रीन रिकॉर्डिंग शुरू करें", + "STATUS": "स्थिति", + "STOP_SCREENRECORDING": "स्क्रीन रिकॉर्डिंग बंद करो", + "STRATEGY": "रणनीति", + "SYSTEM": "प्रणाली", + "TAG": "टैग", + "TAGS": "टैग", "TEAMADD_WHATSAPPQUEUE": "व्हाट्सएप कतार में टीम को जोड़ें", + "TEAMS_ASSOCIATION": "टीमों एसोसिएशन", + "TEXT": "टेक्स्ट", + "TIMEOUT": "समय समाप्त", + "TIMER": "घड़ी", + "TIMES": "टाइम्स", + "TO": "सेवा", + "TOKEN": "टोकन", + "TOOLTIP_SCREENRECORDING_OFF": "स्क्रीन रिकॉर्डिंग उपलब्ध है", + "TOOLTIP_SCREENRECORDING_ON": "स्क्रीन रिकॉर्डिंग प्रगति पर है", + "TRANSFER": "स्थानांतरण", + "TRUEPRIORITY": "सच्ची प्राथमिकता", + "TYPE": "प्रकार", + "UNPAUSE": "अंतिम विराम", + "VALUE": "मूल्य", + "VARIABLE": "परिवर्तनशील", + "WAITFORTHEASSIGNEDAGENT": "असाइन किए गए एजेंट की प्रतीक्षा करें", + "WAITING": "इंतज़ार कर रही", + "WELCOMEMESSAGE": "स्वागत संदेश", + "WHATSAPP": "WhatsApp कनेक्टर", "WHATSAPPACCOUNTS": "WhatsApp खाते", "WHATSAPPCANNEDANSWERS": "WhatsApp डिब्बाबंद जवाब", "WHATSAPPDISPOSITIONS": "व्हाट्सएप के डिस्पोजल", - "WHATSAPPQUEUES": "WhatsApp कतारें" + "WHATSAPPQUEUES": "WhatsApp कतारें", + "CLIENTEMAIL": "ग्राहक ईमेल", + "DIALOGFLOWV2": "संवाद प्रवाह V2", + "EDIT_DIALOGFLOWV2": "डायलॉगफ़्लो V2 संपादित करें", + "PRIVATEKEY": "निजी चाबी", + "PROJECTID": "प्रोजेक्ट आईडी" } } diff --git a/public/app/main/apps/whatsapp/i18n/id.json b/public/app/main/apps/whatsapp/i18n/id.json index 4df28ec..b2e703c 100644 --- a/public/app/main/apps/whatsapp/i18n/id.json +++ b/public/app/main/apps/whatsapp/i18n/id.json @@ -1,47 +1,244 @@ { "WHATSAPP": { "ERRORS": { + "ACCESSKEYID_REQUIRED": "Bidang wajib", + "ACCOUNTSID_REQUIRED": "Bidang wajib", + "AGENTTRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Nilainya harus lebih besar atau sama dari", + "AGENTTRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Nilainya harus kurang atau sama dari", + "AGENTTRANSFERTIMEOUT_REQUIRED": "Bidang wajib", + "AGENT_REQUIRED": "Bidang wajib", + "AGENT_TIMEOUT_REQUIRED": "Bidang wajib", + "AUTHTOKEN_REQUIRED": "Bidang wajib", + "BOTNAME_REQUIRED": "Bidang wajib", + "COMMAND_REQUIRED": "Bidang wajib", + "CONDITION_REQUIRED": "Bidang wajib", "DESCRIPTION_REQUIRED": "Bidang wajib", + "DISPOSITION_REQUIRED": "Bidang wajib", + "FALSEPRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Nilainya harus lebih besar atau sama dari", + "FALSEPRIORITY_REQUIRED": "Bidang wajib", + "KEY_MAX_LENGTH": "Nilai harus memiliki panjang maksimum yang sama dengan {{max}}", + "KEY_REQUIRED": "Bidang wajib", "LANGUAGE_REQUIRED": "Bidang Mandtory", "LEXREGION_REQUIRED": "Bidang wajib", + "LIST_REQUIRED": "Bidang wajib", + "MANDATORYDISPOSITIONPAUSEID_REQUIRED": "Bidang wajib", + "NAME_REQUIRED": "Bidang wajib", + "PHONE_REQUIRED": "Bidang wajib", + "PRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Nilainya harus lebih besar atau sama dari", + "PRIORITY_REQUIRED": "Bidang wajib", + "QUEUETRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Nilainya harus lebih besar atau sama dari", + "QUEUETRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Nilainya harus kurang atau sama dari", + "QUEUETRANSFERTIMEOUT_REQUIRED": "Bidang wajib", + "QUEUE_REQUIRED": "Bidang wajib", + "SECRETACCESSKEY_REQUIRED": "Bidang wajib", + "TAG_REQUIRED": "Bidang wajib", + "TEXT_REQUIRED": "Bidang wajib", + "TIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Nilainya harus lebih besar atau sama dari", + "TIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Nilainya harus kurang atau sama dari", + "TIMEOUT_REQUIRED": "Bidang wajib", "TIMES_REQUIRED": "Bidang wajib", + "TOKEN_REQUIRED": "Bidang wajib", + "TRUEPRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Nilainya harus lebih besar atau sama dari", + "TRUEPRIORITY_REQUIRED": "Bidang wajib", + "TYPE_REQUIRED": "Bidang wajib", + "VALUE_REQUIRED": "Bidang wajib", "VARIABLE_REQUIRED": "Bidang wajib", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Nilainya harus lebih besar atau sama dari", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Nilainya harus kurang atau sama dari", + "WAITFORTHEASSIGNEDAGENT_REQUIRED": "Bidang wajib", "WELCOMEMESSAGE_MAX_LENGTH": "Nilai harus memiliki panjang maksimum yang sama dengan {{max}}", - "WELCOMEMESSAGE_REQUIRED": "Bidang wajib" + "WELCOMEMESSAGE_REQUIRED": "Bidang wajib", + "CLIENTEMAIL_REQUIRED": "Bidang wajib", + "PRIVATEKEY_REQUIRED": "Bidang wajib", + "PROJECTID_REQUIRED": "Bidang wajib" }, - "HELP": {}, + "HELP": { + "LIST": "Daftar Manajer Kontak digunakan untuk mengasosiasikan kontak", + "MANDATORYDISPOSITION": "Disposisi wajib", + "MANDATORYDISPOSITIONPAUSEID": "Jeda untuk digunakan saat disposisi wajib diaktifkan", + "MOTIONPROXY": "Bidang harus memiliki format berikut: : // [: ]. Contoh: https: //X.Y.Z.W", + "NAME": "Hanya angka, huruf dan karakter tertentu (._) yang didukung", + "RECEIVEURL": "Ini adalah string API yang dibuat secara otomatis yang perlu Anda gunakan untuk menerima pesan di dalam akun Anda dari penyedia WhatsApp Connector Anda (metode POST harus digunakan): klik tombol clipboard untuk menyalinnya", + "WELCOMEMESSAGE": "Ini adalah pesan tanggapan pertama yang dikirim ke interaksi baru" + }, + "ACCESSKEYID": "Access Key ID", + "ACCOUNTSID": "Akun SID", + "ACTIONS": "Tindakan", + "ADD_NOTE": "Menambahkan catatan", "ADD_WHATSAPPACCOUNT": "Menambahkan", "ADD_WHATSAPPCANNEDANSWER": "Tambahkan Jawaban Kalengan", "ADD_WHATSAPPDISPOSITION": "Tambahkan WhatsApp Disposition", "ADD_WHATSAPPQUEUE": "Tambahkan antrean WhatsApp", + "ADVANCED": "Maju", + "AGENT": "Agen", "AGENTADD_QUEUE": "Tambahkan Agen Ke Antrean WhatsApp", "AGENTADD_WHATSAPPACCOUNT": "Tambahkan Agen Ke Akun WhatsApp", "AGENTADD_WHATSAPPQUEUE": "Tambahkan Agen Ke Antrean WhatsApp", + "AGENTS": "Agen", + "AGENTSADD_QUEUE": "Tambahkan agen ke antrean WhatsApp", + "AGENTTRANSFER": "Transfer Agen", + "AGENTTRANSFERTIMEOUT": "Batas Waktu Transfer Agen", + "AGENT_TIMEOUT": "Agent Timeout", + "ALL": "Semua", + "ALL_AGENTS": "Semua Agen", + "ALL_TEAMS": "Semua Tim", + "AMAZONLEX": "AmazonLex", "AUTHTOKEN": "Token Auth", + "AUTOREPLY": "Balas Otomatis", + "BACK": "Kembali", + "BOTNAME": "Nama Bot", + "BUSY": "Sibuk", + "CANNEDANSWERS": "Jawaban Kalengan", + "CANNED_ANSWER_NOT_FOUND": "Tidak ada Jawaban Kalengan ditemukan", + "CANNED_ANSWER_SEARCH": "Masukkan teks untuk mencari Jawaban Kalengan", + "CAPACITY": "Kapasitas", + "CLOSE": "Menutup", + "CLOSED": "Tutup", + "CLOSEMETHOD": "Metode Tutup", + "CLOSEURL": "Tutup URL", + "COMMAND": "Perintah", + "CONDITION": "Kondisi", + "CONTACT": "Kontak", + "CREATED_AT": "Dibuat di", + "DEFAULT_PAUSE": "JEDA DEFAULT", + "DELETE": "Menghapus", + "DELETE_INTERACTION": "Hapus Interaksi", + "DELETE_SELECTED": "Hapus yang dipilih", "DELETE_WHATSAPPACCOUNT": "Hapus Akun WhatsApp", "DELETE_WHATSAPPCANNEDANSWER": "Dihapus", "DELETE_WHATSAPPDISPOSITION": "Hapus Disposisi WhatsApp", "DELETE_WHATSAPPQUEUE": "Hapus Antrean WhatsApp", + "DESCRIPTION": "Deskripsi", + "DIALOGFLOW": "DialogFlow", + "DISPOSITION": "Watak", + "DISPOSITIONS": "Disposisi", + "DOWNLOAD_INTERACTION": "Unduh", + "DOWNLOAD_WITHOUT_ATTACHMENTS": "Unduh Tanpa Lampiran", + "DOWNLOAD_WITH_ATTACHMENTS": "Unduh Dengan Lampiran", + "EDIT_AGENT": "Edit Agen", + "EDIT_AMAZONLEX": "Edit konfigurasi Lex", + "EDIT_AUTOREPLY": "Edit Balasan Otomatis", + "EDIT_CLOSE": "Edit Tutup", + "EDIT_DIALOGFLOW": "Edit konfigurasi DialogFlow", + "EDIT_GOTOIF": "Edit Gotoif", + "EDIT_GOTOP": "Edit Gotop", + "EDIT_NOOP": "Edit Noop", + "EDIT_QUEUE": "Edit Antrian", + "EDIT_SYSTEM": "Edit Sistem", + "EDIT_TAG": "Edit Tag", "EDIT_WHATSAPPACCOUNT": "Edit Akun WhatsApp", "EDIT_WHATSAPPCANNEDANSWER": "Edit", "EDIT_WHATSAPPDISPOSITION": "Edit Disposisi WhatsApp", "EDIT_WHATSAPPQUEUE": "Edit Antrian WhatsApp", + "FALSEPRIORITY": "Prioritas Salah", + "GENERAL": "Umum", + "GOTOIF": "Gotoif", + "GOTOP": "Gotop", "GOTOREALTIME_WHATSAPPQUEUE": "Buka Antrean WhatsApp Waktu Nyata", "GO_TO_WHATSAPPACCOUNTS": "Buka Akun", + "ID": "Indo", + "IDLE": "Diam", + "INSERT_MESSAGE_HERE": "Sisipkan pesan di sini", + "INTERACTIONS": "Interaksi", "INTERACTIONS_WHATSAPPACCOUNT": "Buka Interaksi", + "KEY": "Kunci", + "LANGUAGE": "Bahasa", + "LASTMESSAGE": "Pesan Terakhir", + "LEXREGION": "Wilayah", + "LIST": "Daftar", + "LOGGED_IN": "Masuk (SIP Terhubung)", + "LOGIN_TIME": "Waktu Login", + "LOGOUT": "Keluar", + "MANDATORYDISPOSITION": "Disposisi Wajib", + "MANDATORYDISPOSITIONPAUSEID": "Jeda untuk digunakan saat disposisi wajib diaktifkan", + "MORE": "Lebih", + "MOTIONPROXY": "Domain Proksi atau Gerakan", "MULTI_SELECT_TOGGLE": "Multi pilih beralih", + "NAME": "Nama", "NEW_WHATSAPPACCOUNT": "Akun WhatsApp Baru", "NEW_WHATSAPPCANNEDANSWER": "Jawaban Kalengan WhatsApp Baru", "NEW_WHATSAPPDISPOSITION": "Disposisi WhatsApp Baru", "NEW_WHATSAPPQUEUE": "Antrean WhatsApp Baru", + "NOOP": "Noop", + "NOTE": "Catatan", + "NOTIFICATION": "Pemberitahuan", + "NOTIFICATIONSHAKE": "Menggoyang", + "NOTIFICATIONSOUND": "Suara", + "NOTIFICATIONTEMPLATE": "Template", + "NO_AGENT_ONLINE": "Tidak Ada Agen yang Online", + "NO_AVAILABLE_INFO": "Tidak Ada Info Tersedia", + "NO_INTERACTION_AVAILABLE": "Tidak Ada Interaksi yang Tersedia", "NO_WHATSAPPCANNEDANSWER_AVAILABLE": "Tidak Ada Jawaban WhatsApp yang Disiapkan", "NO_WHATSAPPDISPOSITION_AVAILABLE": "Tidak Ada Disposisi WhatsApp yang Tersedia", "NO_WHATSAPP_ACCOUNTS_AVAILABLE": "Tidak ada Akun WhatsApp yang tersedia", + "OF": "dari", + "OPENED": "Terbuka", + "PAGE": "Halaman", + "PARTIALPAUSE": "Jeda Parsial", + "PAUSE": "Berhenti sebentar", + "PAUSED": "Dijeda", + "PAUSE_TIME": "Jeda Waktu", + "PHONE": "Telepon", + "PRIORITY": "Prioritas", + "PROXY": "Proksi", + "QUEUE": "Antre", + "QUEUES": "Antrian", + "QUEUETRANSFER": "Transfer Antrian", + "QUEUETRANSFERTIMEOUT": "Batas Waktu Transfer Antrian", + "READY": "Siap", + "REALTIME": "Waktu sebenarnya", + "RECEIVEURL": "Terima URL", + "REFRESH_INTERACTIONS": "Segarkan Interaksi", "REMOTE": "Terpencil", + "ROWSPERPAGE": "Baris per halaman", + "SAVE": "Menyimpan", + "SCREENRECORDING": "Kelola Perekaman Layar", + "SEARCH_FOR_ANYONE": "Cari", + "SECRETACCESSKEY": "Akses kunci rahasia", + "SELECTED": "Terpilih", + "SELECTED_AGENTS": "Agen Pilihan", + "SELECTED_TEAMS": "Tim Terpilih", + "SELECT_ALL": "Pilih Semua", + "SELECT_NONE": "Pilih tidak ada", + "SEND": "Kirim", + "SETTINGS": "Pengaturan", + "SPYINTERACTION": "Interaksi Mata-mata", + "STARTEDAT": "Dimulai pada", + "START_SCREENRECORDING": "Mulai Perekaman Layar", + "STATUS": "Status", + "STOP_SCREENRECORDING": "Hentikan Perekaman Layar", + "STRATEGY": "Strategi", + "SYSTEM": "Sistem", + "TAG": "Menandai", + "TAGS": "Tag", "TEAMADD_WHATSAPPQUEUE": "Tambahkan Tim Ke Antrean WhatsApp", + "TEAMS_ASSOCIATION": "Asosiasi Tim", + "TEXT": "Teks", + "TIMEOUT": "Waktu habis", + "TIMER": "Timer", + "TIMES": "Waktu", + "TO": "Untuk", + "TOKEN": "Token", + "TOOLTIP_SCREENRECORDING_OFF": "Perekaman Layar tersedia", + "TOOLTIP_SCREENRECORDING_ON": "Perekaman Layar sedang berlangsung", + "TRANSFER": "Transfer", + "TRUEPRIORITY": "Prioritas Sejati", + "TYPE": "Tipe", + "UNPAUSE": "Akhiri Jeda", + "VALUE": "Nilai", + "VARIABLE": "Variabel", + "WAITFORTHEASSIGNEDAGENT": "Tunggu agen yang ditunjuk", + "WAITING": "Menunggu", + "WELCOMEMESSAGE": "Pesan Selamat Datang", + "WHATSAPP": "Konektor WhatsApp", "WHATSAPPACCOUNTS": "Akun WhatsApp", "WHATSAPPCANNEDANSWERS": "Jawaban WhatsApp Canned", "WHATSAPPDISPOSITIONS": "Disposisi WhatsApp", - "WHATSAPPQUEUES": "Antrean WhatsApp" + "WHATSAPPQUEUES": "Antrean WhatsApp", + "CLIENTEMAIL": "Email Klien", + "DIALOGFLOWV2": "Dialogflow V2", + "EDIT_DIALOGFLOWV2": "Edit Dialogflow V2", + "PRIVATEKEY": "Kunci Pribadi", + "PROJECTID": "ID Proyek" } } diff --git a/public/app/main/apps/whatsapp/i18n/it.json b/public/app/main/apps/whatsapp/i18n/it.json index 71bce9c..213b97e 100644 --- a/public/app/main/apps/whatsapp/i18n/it.json +++ b/public/app/main/apps/whatsapp/i18n/it.json @@ -1,48 +1,273 @@ { "WHATSAPP": { + "ACCOUNT": "Account", + "ACCOUNTSID": "Account SID", + "ADD_NOTE": "Add note", "ADD_WHATSAPPQUEUE": "Aggiungi Coda WhatsApp", + "AGENT": "Agente", + "AGENT_TIMEOUT": "Timeout Agente", "AGENTADD_QUEUE": "Aggiungi agenti alla coda WhatsApp", "AGENTADD_WHATSAPPQUEUE": "Aggiungi Agente alla coda WhatsApp", + "AGENTS": "Agenti", + "AGENTSADD_QUEUE": "Aggiungi agenti alla coda", + "ALL": "Tutte", + "ALL_AGENTS": "Tutti gli Agenti", + "ALL_TEAMS": "Tutti i Team", + "API": "API", "AUTHTOKEN": "Authtoken", + "BACK": "Indietro", + "BASEURL": "Base URL", + "BUSY": "Occupato", + "CANNED_ANSWER_NOT_FOUND": "Nessuna risposta precompilata trovata", + "CANNED_ANSWER_SEARCH": "Inserire un valore da cercare nelle risposte compilate", + "CLOSED": "Chiusa", + "CLOSEDAT": "Chiusa il", + "CONTACT": "Contatto", + "CREATED_AT": "Creato il", + "DEFAULT_PAUSE": "Pausa di default", + "DELETE": "Elimina", + "DELETE_SELECTED": "Calcella selezionati", "DELETE_WHATSAPPQUEUE": "Elimina Coda WhatsApp", + "DESCRIPTION": "Descrizione", + "EDIT_AGENT": "Modifica Agente", + "EDIT_QUEUE": "Modifica coda", "EDIT_WHATSAPPQUEUE": "Modifica Coda WhatsApp", "ERRORS": { + "ACCEPTURL_MUST_VALID_URL": "Il campo deve avere un formato valido", + "ACCESSKEYID_REQUIRED": "È richiesto l'ID chiave di accesso", + "ACCOUNTSID_REQUIRED": "Campo obbligatorio", + "AGENT_REQUIRED": "Campo obbligatorio", + "AGENT_TIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Il valore deve essere maggiore o uguale a", + "AGENT_TIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Il valore deve essere minore o uguale a", + "AGENT_TIMEOUT_REQUIRED": "Campo obbligatorio", + "AGENTTRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Il valore deve essere maggiore o uguale a", + "AGENTTRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Il valore deve essere minore o uguale a", + "AGENTTRANSFERTIMEOUT_REQUIRED": "Campo obbligatorio", + "APIKEY_REQUIRED": "Campo obbligatorio", "AUTHID_REQUIRED": "Campo Obbligatorio", + "AUTHTOKEN_REQUIRED": "Campo obbligatorio", + "BASEURL_REQUIRED": "Campo obbligatorio", + "BOTNAME_REQUIRED": "È richiesto il nome del bot", + "CLOSEURL_MUST_VALID_URL": "Il campo deve avere un formato valido", + "COMMAND_REQUIRED": "Campo obbligatorio", + "CONDITION_REQUIRED": "Campo obbligatorio", + "DISPOSITION_REQUIRED": "Campo obbligatorio", + "FALSEPRIORITY_REQUIRED": "Campo obbligatorio", + "KEY_MAX_LENGTH": "Il valore introdotto non deve essere più lungo di {{max}} caratteri", + "KEY_REQUIRED": "Campo obbligatorio", + "LIST_REQUIRED": "Campo obbligatorio", + "MANDATORYDISPOSITIONPAUSEID_REQUIRED": "Campo obbligatorio", + "METHOD_REQUIRED": "Campo obbligatorio", + "MOTIONADDRESS_MUST_VALID_URL": "Il campo deve avere un formato valido", + "MOTIONADDRESS_REQUIRED": "Campo obbligatorio", + "MOTIONPROXY_MUST_VALID_URL": "Il campo deve avere un formato valido", + "MOTIONPROXY_REQUIRED": "Campo obbligatorio", + "NAME_MUST_VALID_PATTERN": "Formato errato", + "NAME_REQUIRED": "Campo obbligatorio", + "PASSWORD_REQUIRED": "Campo obbligatorio", + "PHONE_REQUIRED": "Campo obbligatorio", + "PRIORITY_REQUIRED": "Campo obbligatorio", + "QUEUE_REQUIRED": "Campo obbligatorio", + "QUEUETRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Il valore deve essere maggiore o uguale a", + "QUEUETRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Il valore deve essere minore o uguale a", + "QUEUETRANSFERTIMEOUT_REQUIRED": "Campo obbligatorio", + "REJECTURL_MUST_VALID_URL": "Il campo deve avere un formato valido", + "SECRETACCESSKEY_REQUIRED": "È richiesto il segreto della chiave di accesso", + "SENDERSTRING_MAX_LENGTH": "Il valore deve avere una lunghezza massima pari a {{max}}", + "SENDERSTRING_MUST_VALID_PATTERN": "Il campo deve avere un formato valido", + "SID_REQUIRED": "Campo obbligatorio", + "TAG_REQUIRED": "Campo obbligatorio", + "TEXT_MAX_LENGTH": "Il valore deve avere una lunghezza massima pari a {{max}}", + "TEXT_REQUIRED": "Campo obbligatorio", + "TIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Il valore deve essere minore o uguale a", + "TIMEOUT_REQUIRED": "Campo obbligatorio", + "TOKEN_REQUIRED": "Campo obbligatorio", + "TRUEPRIORITY_REQUIRED": "Campo obbligatorio", + "TYPE_REQUIRED": "Campo obbligatorio", + "USERNAME_REQUIRED": "Campo obbligatorio", + "VALUE_REQUIRED": "Campo Obbligatorio", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Il valore deve essere maggiore o uguale a", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Il valore deve essere minore o uguale a", + "WAITFORTHEASSIGNEDAGENT_REQUIRED": "Campo obbligatorio", "DESCRIPTION_REQUIRED": "Campo obbligatorio", + "FALSEPRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Il valore deve essere maggiore o uguale a", "LANGUAGE_REQUIRED": "Mandtory Field", "LEXREGION_REQUIRED": "Campo obbligatorio", + "PRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Il valore deve essere maggiore o uguale a", + "TIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Il valore deve essere maggiore o uguale a", "TIMES_REQUIRED": "Campo obbligatorio", + "TRUEPRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Il valore deve essere maggiore o uguale a", "VARIABLE_REQUIRED": "Campo obbligatorio", "WELCOMEMESSAGE_MAX_LENGTH": "Il valore deve avere una lunghezza massima uguale a {{max}}", - "WELCOMEMESSAGE_REQUIRED": "Campo obbligatorio" + "WELCOMEMESSAGE_REQUIRED": "Campo obbligatorio", + "CLIENTEMAIL_REQUIRED": "Campo obbligatorio", + "PRIVATEKEY_REQUIRED": "Campo obbligatorio", + "PROJECTID_REQUIRED": "Campo obbligatorio" }, + "GENERAL": "Generale", + "GOTO": "Goto", + "GOTOIF": "Gotoif", "GOTOREALTIME_WHATSAPPQUEUE": "Visualizza la coda in Realtime", - "HELP": {}, + "HELP": { + "DELIVERYREPORTURL": "Questa è la stringa API generata automaticamente che devi usare per ricevere il rapporto di consegna dei messaggi inviati dal tuo provider WhatsApp (deve essere usato il metodo POST). Clicca sull'icona del blocco note per copiare negli appunti", + "LIST": "Lista del Contact Manager usata per associare i contatti", + "MANDATORYDISPOSITION": "Disposizione obbligatoria", + "MANDATORYDISPOSITIONPAUSEID": "Pausa da utilizzare quando è abilitata la disposizione obbligatoria", + "MOTIONPROXY": "Inserire nel seguente formato: <protocollo>://<indirizzoIP>[:<porta>]. Es: https://X.Y.Z.W", + "NAME": "Sono supportati solo numeri, lettere e caratteri specifici (._)", + "RECEIVEURL": "Questa è la stringa API generata automaticamente che devi usare per ricevere i messaggi provenienti dal tuo provider WHATSAPP (deve essere usato il metodo POST). Clicca sull'icona del blocco note per copiare negli appunti", + "WELCOMEMESSAGE": "Messaggio di benvenuto" + }, + "ID": "Id", + "IDLE": "Inattivo", + "INFO": "Info", + "INSERT_MESSAGE_HERE": "Insert message here", + "LANGUAGE": "Lingua", + "LASTMESSAGE": "Ultimo messaggio", + "LIST": "Lista", + "LOGGED_IN": "Connesso", + "LOGIN_TIME": "Orario Login", + "LOGOUT": "Logout", + "MORE": "Ancora", + "MOTIONPROXY": "Proxy O Dominio Motion", "MULTI_SELECT_TOGGLE": "Multi select toggle", + "NAME": "Nome", "NEW_WHATSAPPQUEUE": "Nuova coda WhatsApp", + "NO_AGENT_ONLINE": "Nessun Agente Online", + "NO_AVAILABLE_INFO": "Nessuna informazione disponibile", + "NO_INTERACTION_AVAILABLE": "Nessuna interazione disponibile", "NO_WHATSAPP_ACCOUNTS_AVAILABLE": "Nessun account WhatsApp disponibile", + "OF": "di", + "OPEN": "Apri", + "OPENED": "Aperto", + "PAGE": "Pagina", + "PARTIALPAUSE": "Pausa Parziale", + "PAUSE": "Pausa", + "PAUSE_TIME": "Orario Pausa", + "PAUSED": "In pausa", + "QUEUE": "Coda", + "QUEUES": "Code", + "READY": "Pronto", + "REALTIME": "Realtime", + "ROWSPERPAGE": "Righe per pagina", + "SAVE": "Salva", + "SCREENRECORDING": "Registrazione dello schermo", + "SEARCH_FOR_ANYONE": "Cerca", + "SELECT_ALL": "Seleziona tutti", + "SELECT_NONE": "Deseleziona tutti", + "SELECTED": "Selezionati", + "SELECTED_AGENTS": "Gli Agenti selezionati", + "SELECTED_TEAMS": "Team selezionati", + "SEND": "Invia", + "SETTINGS": "Impostazioni", + "START_SCREENRECORDING": "Inizia Registrazione dello schermo", + "STARTEDAT": "Iniziata il", + "STATUS": "Stato", + "STOP_SCREENRECORDING": "Ferma Registrazione dello schermo", + "STRATEGY": "Strategia", "TEAMADD_WHATSAPPQUEUE": "Aggiungi Team alla coda WhatsApp", + "TEAMS_ASSOCIATION": "Associazione Teams", + "TIMEOUT": "Timeout", + "TO": "A", + "TOOLTIP_SCREENRECORDING_OFF": "Tooltip Screenrecording Off", + "TOOLTIP_SCREENRECORDING_ON": "Tooltip Screenrecording On", + "UNAVAILABLE": "Non disponibile", + "UNPAUSE": "Riprendi", + "WAITING": "In attesa", + "WHATSAPP": "WhatsApp Connector", "WHATSAPPACCOUNTS": "WhatsApp Accounts", "WHATSAPPQUEUES": "Code WhatsApp", + "ACCESSKEYID": "ID chiave di accesso", + "ACTIONS": "Azioni", "ADD_WHATSAPPACCOUNT": "Inserisci", "ADD_WHATSAPPCANNEDANSWER": "Aggiungi risposta predefinita", "ADD_WHATSAPPDISPOSITION": "Aggiungi la disposizione di WhatsApp", + "ADVANCED": "Avanzate", "AGENTADD_WHATSAPPACCOUNT": "Aggiungi agente all'account WhatsApp", + "AGENTTRANSFER": "Trasferimento agente", + "AGENTTRANSFERTIMEOUT": "Timeout trasferimento agente", + "AMAZONLEX": "AmazonLex", + "AUTOREPLY": "Risposta automatica", + "BOTNAME": "Nome del bot", + "CANNEDANSWERS": "Risposte in scatola", + "CAPACITY": "Capacità", + "CLOSE": "Vicino", + "CLOSEMETHOD": "Metodo di chiusura", + "CLOSEURL": "Chiudi URL", + "COMMAND": "Comando", + "CONDITION": "Condizione", + "DELETE_INTERACTION": "Elimina interazione", "DELETE_WHATSAPPACCOUNT": "Elimina l'account WhatsApp", "DELETE_WHATSAPPCANNEDANSWER": "Deleted", "DELETE_WHATSAPPDISPOSITION": "Elimina la disposizione di WhatsApp", + "DIALOGFLOW": "DialogFlow", + "DISPOSITION": "Disposizione", + "DISPOSITIONS": "disposizioni", + "DOWNLOAD_INTERACTION": "Scarica", + "DOWNLOAD_WITHOUT_ATTACHMENTS": "Scarica senza allegati", + "DOWNLOAD_WITH_ATTACHMENTS": "Scarica con allegati", + "EDIT_AMAZONLEX": "Modifica la configurazione Lex", + "EDIT_AUTOREPLY": "Modifica risposta automatica", + "EDIT_CLOSE": "Modifica Chiudi", + "EDIT_DIALOGFLOW": "Modifica la configurazione di DialogFlow", + "EDIT_GOTOIF": "Modifica Gotoif", + "EDIT_GOTOP": "Modifica Gotop", + "EDIT_NOOP": "Modifica Noop", + "EDIT_SYSTEM": "Modifica sistema", + "EDIT_TAG": "Modifica tag", "EDIT_WHATSAPPACCOUNT": "Modifica account WhatsApp", "EDIT_WHATSAPPCANNEDANSWER": "modificare", "EDIT_WHATSAPPDISPOSITION": "Modifica la disposizione di WhatsApp", + "FALSEPRIORITY": "Priorità falsa", + "GOTOP": "Andare in cima", "GO_TO_WHATSAPPACCOUNTS": "Vai all'account", + "INTERACTIONS": "interazioni", "INTERACTIONS_WHATSAPPACCOUNT": "Vai a Interazioni", + "KEY": "Chiave", + "LEXREGION": "Regione", + "MANDATORYDISPOSITION": "Disposizione obbligatoria", + "MANDATORYDISPOSITIONPAUSEID": "Metti in pausa per utilizzare quando la disposizione obbligatoria è abilitata", "NEW_WHATSAPPACCOUNT": "Nuovo account WhatsApp", "NEW_WHATSAPPCANNEDANSWER": "Nuova risposta predefinita di WhatsApp", "NEW_WHATSAPPDISPOSITION": "Nuova disposizione WhatsApp", + "NOOP": "noop", + "NOTE": "Nota", + "NOTIFICATION": "Notifica", + "NOTIFICATIONSHAKE": "Agitare", + "NOTIFICATIONSOUND": "Suono", + "NOTIFICATIONTEMPLATE": "Modello", "NO_WHATSAPPCANNEDANSWER_AVAILABLE": "Nessuna risposta predefinita di WhatsApp disponibile", "NO_WHATSAPPDISPOSITION_AVAILABLE": "Nessuna disposizione WhatsApp disponibile", + "PHONE": "Telefono", + "PRIORITY": "Priorità", + "PROXY": "delega", + "QUEUETRANSFER": "Trasferimento in coda", + "QUEUETRANSFERTIMEOUT": "Timeout trasferimento coda", + "RECEIVEURL": "Ricevi URL", + "REFRESH_INTERACTIONS": "Aggiorna interazioni", "REMOTE": "A distanza", + "SECRETACCESSKEY": "Chiave di accesso segreta", + "SPYINTERACTION": "Interazione spia", + "SYSTEM": "Sistema", + "TAG": "Etichetta", + "TAGS": "tag", + "TEXT": "Testo", + "TIMER": "Timer", + "TIMES": "Volte", + "TOKEN": "Gettone", + "TRANSFER": "Trasferimento", + "TRUEPRIORITY": "Vera priorità", + "TYPE": "genere", + "VALUE": "Valore", + "VARIABLE": "Variabile", + "WAITFORTHEASSIGNEDAGENT": "Attendi l'agente assegnato", + "WELCOMEMESSAGE": "Messaggio di benvenuto", "WHATSAPPCANNEDANSWERS": "Risposte predefinite di WhatsApp", - "WHATSAPPDISPOSITIONS": "Disposizioni WhatsApp" + "WHATSAPPDISPOSITIONS": "Disposizioni WhatsApp", + "CLIENTEMAIL": "Email del cliente", + "DIALOGFLOWV2": "Dialogflow V2", + "EDIT_DIALOGFLOWV2": "Modifica Dialogflow V2", + "PRIVATEKEY": "Chiave privata", + "PROJECTID": "ID progetto" } } diff --git a/public/app/main/apps/whatsapp/i18n/ja.json b/public/app/main/apps/whatsapp/i18n/ja.json index d903a27..0350e8d 100644 --- a/public/app/main/apps/whatsapp/i18n/ja.json +++ b/public/app/main/apps/whatsapp/i18n/ja.json @@ -1,47 +1,244 @@ { "WHATSAPP": { "ERRORS": { + "ACCESSKEYID_REQUIRED": "必須フィールド", + "ACCOUNTSID_REQUIRED": "必須フィールド", + "AGENTTRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "値は以上である必要があります", + "AGENTTRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "値は以下である必要があります", + "AGENTTRANSFERTIMEOUT_REQUIRED": "必須フィールド", + "AGENT_REQUIRED": "必須フィールド", + "AGENT_TIMEOUT_REQUIRED": "必須フィールド", + "AUTHTOKEN_REQUIRED": "必須フィールド", + "BOTNAME_REQUIRED": "必須フィールド", + "COMMAND_REQUIRED": "必須フィールド", + "CONDITION_REQUIRED": "必須フィールド", "DESCRIPTION_REQUIRED": "必須フィールド", + "DISPOSITION_REQUIRED": "必須フィールド", + "FALSEPRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "値は以上である必要があります", + "FALSEPRIORITY_REQUIRED": "必須フィールド", + "KEY_MAX_LENGTH": "値の最大長は{{max}}でなければなりません", + "KEY_REQUIRED": "必須フィールド", "LANGUAGE_REQUIRED": "必須フィールド", "LEXREGION_REQUIRED": "必須フィールド", + "LIST_REQUIRED": "必須フィールド", + "MANDATORYDISPOSITIONPAUSEID_REQUIRED": "必須フィールド", + "NAME_REQUIRED": "必須フィールド", + "PHONE_REQUIRED": "必須フィールド", + "PRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "値は以上である必要があります", + "PRIORITY_REQUIRED": "必須フィールド", + "QUEUETRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "値は以上である必要があります", + "QUEUETRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "値は以下である必要があります", + "QUEUETRANSFERTIMEOUT_REQUIRED": "必須フィールド", + "QUEUE_REQUIRED": "必須フィールド", + "SECRETACCESSKEY_REQUIRED": "必須フィールド", + "TAG_REQUIRED": "必須フィールド", + "TEXT_REQUIRED": "必須フィールド", + "TIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "値は以上である必要があります", + "TIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "値は以下である必要があります", + "TIMEOUT_REQUIRED": "必須フィールド", "TIMES_REQUIRED": "必須フィールド", + "TOKEN_REQUIRED": "必須フィールド", + "TRUEPRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "値は以上である必要があります", + "TRUEPRIORITY_REQUIRED": "必須フィールド", + "TYPE_REQUIRED": "必須フィールド", + "VALUE_REQUIRED": "必須フィールド", "VARIABLE_REQUIRED": "必須フィールド", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "値は以上である必要があります", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "値は以下である必要があります", + "WAITFORTHEASSIGNEDAGENT_REQUIRED": "必須フィールド", "WELCOMEMESSAGE_MAX_LENGTH": "値の最大長は{{max}}でなければなりません", - "WELCOMEMESSAGE_REQUIRED": "必須フィールド" + "WELCOMEMESSAGE_REQUIRED": "必須フィールド", + "CLIENTEMAIL_REQUIRED": "必須フィールド", + "PRIVATEKEY_REQUIRED": "必須フィールド", + "PROJECTID_REQUIRED": "必須フィールド" }, - "HELP": {}, + "HELP": { + "LIST": "連絡先を関連付けるために使用される連絡先管理者リスト", + "MANDATORYDISPOSITION": "強制処分", + "MANDATORYDISPOSITIONPAUSEID": "必須の後処理が有効な場合に使用を一時停止します", + "MOTIONPROXY": "フィールドの形式は、<プロトコル>:// [:<ポート>]である必要があります。例:https://X.Y.Z.W", + "NAME": "数字、文字、特定の文字(._)のみがサポートされています", + "RECEIVEURL": "これは、WhatsAppコネクタプロバイダーからアカウント内のメッセージを受信するために使用する必要がある自動生成されたAPI文字列です(POSTメソッドを使用する必要があります):クリップボードボタンをクリックしてコピーします", + "WELCOMEMESSAGE": "これは、新しいインタラクションに送信される最初の応答メッセージです" + }, + "ACCESSKEYID": "アクセスキーID", + "ACCOUNTSID": "アカウントSID", + "ACTIONS": "行動", + "ADD_NOTE": "メモを追加", "ADD_WHATSAPPACCOUNT": "追加", "ADD_WHATSAPPCANNEDANSWER": "返信定型文を追加", "ADD_WHATSAPPDISPOSITION": "WhatsAppディスポジションの追加", "ADD_WHATSAPPQUEUE": "WhatsAppキューを追加", + "ADVANCED": "高度な", + "AGENT": "エージェント", "AGENTADD_QUEUE": "WhatsAppキューへのエージェントの追加", "AGENTADD_WHATSAPPACCOUNT": "WhatsAppアカウントにエージェントを追加", "AGENTADD_WHATSAPPQUEUE": "WhatsAppキューへのエージェントの追加", + "AGENTS": "エージェント", + "AGENTSADD_QUEUE": "WhatsAppキューへのエージェントの追加", + "AGENTTRANSFER": "エージェントの転送", + "AGENTTRANSFERTIMEOUT": "エージェント転送タイムアウト", + "AGENT_TIMEOUT": "エージェントのタイムアウト", + "ALL": "すべて", + "ALL_AGENTS": "すべてのエージェント", + "ALL_TEAMS": "全チーム", + "AMAZONLEX": "AmazonLex", "AUTHTOKEN": "認証トークン", + "AUTOREPLY": "自動返信", + "BACK": "バック", + "BOTNAME": "ボット名", + "BUSY": "忙しい", + "CANNEDANSWERS": "缶詰の答え", + "CANNED_ANSWER_NOT_FOUND": "缶詰の答えは見つかりませんでした", + "CANNED_ANSWER_SEARCH": "返信定型文を検索するにはテキストを入力してください", + "CAPACITY": "容量", + "CLOSE": "閉じる", + "CLOSED": "閉まっている", + "CLOSEMETHOD": "Closeメソッド", + "CLOSEURL": "URLを閉じる", + "COMMAND": "コマンド", + "CONDITION": "状態", + "CONTACT": "連絡先", + "CREATED_AT": "で作成", + "DEFAULT_PAUSE": "デフォルトの一時停止", + "DELETE": "削除する", + "DELETE_INTERACTION": "インタラクションを削除", + "DELETE_SELECTED": "選択を削除します", "DELETE_WHATSAPPACCOUNT": "WhatsAppアカウントを削除", "DELETE_WHATSAPPCANNEDANSWER": "削除しました", "DELETE_WHATSAPPDISPOSITION": "WhatsAppディスポジションの削除", "DELETE_WHATSAPPQUEUE": "WhatsAppキューの削除", + "DESCRIPTION": "説明", + "DIALOGFLOW": "DialogFlow", + "DISPOSITION": "配置", + "DISPOSITIONS": "処分", + "DOWNLOAD_INTERACTION": "ダウンロード", + "DOWNLOAD_WITHOUT_ATTACHMENTS": "添付ファイルなしでダウンロード", + "DOWNLOAD_WITH_ATTACHMENTS": "添付ファイル付きでダウンロード", + "EDIT_AGENT": "エージェントを編集", + "EDIT_AMAZONLEX": "Lex構成を編集する", + "EDIT_AUTOREPLY": "自動返信を編集", + "EDIT_CLOSE": "閉じるを編集", + "EDIT_DIALOGFLOW": "DialogFlow構成の編集", + "EDIT_GOTOIF": "Gotoifを編集", + "EDIT_GOTOP": "Gotopを編集", + "EDIT_NOOP": "Noopを編集", + "EDIT_QUEUE": "キューを編集", + "EDIT_SYSTEM": "システムを編集", + "EDIT_TAG": "タグを編集", "EDIT_WHATSAPPACCOUNT": "WhatsAppアカウントの編集", "EDIT_WHATSAPPCANNEDANSWER": "編集する", "EDIT_WHATSAPPDISPOSITION": "WhatsAppディスポジションの編集", "EDIT_WHATSAPPQUEUE": "WhatsAppキューの編集", + "FALSEPRIORITY": "偽の優先順位", + "GENERAL": "一般的な", + "GOTOIF": "Gotoif", + "GOTOP": "上に行きます", "GOTOREALTIME_WHATSAPPQUEUE": "リアルタイムWhatsAppキューに移動", "GO_TO_WHATSAPPACCOUNTS": "アカウントに移動", + "ID": "Id", + "IDLE": "アイドル", + "INSERT_MESSAGE_HERE": "ここにメッセージを挿入", + "INTERACTIONS": "相互作用", "INTERACTIONS_WHATSAPPACCOUNT": "インタラクションに移動", + "KEY": "キー", + "LANGUAGE": "言語", + "LASTMESSAGE": "最後のメッセージ", + "LEXREGION": "領域", + "LIST": "リスト", + "LOGGED_IN": "ログイン済み(SIP接続済み)", + "LOGIN_TIME": "ログイン時間", + "LOGOUT": "ログアウト", + "MANDATORYDISPOSITION": "強制処分", + "MANDATORYDISPOSITIONPAUSEID": "必須の後処理が有効な場合に使用を一時停止します", + "MORE": "もっと", + "MOTIONPROXY": "プロキシまたはモーションドメイン", "MULTI_SELECT_TOGGLE": "複数選択トグル", + "NAME": "名前", "NEW_WHATSAPPACCOUNT": "新しいWhatsAppアカウント", "NEW_WHATSAPPCANNEDANSWER": "新しいWhatsAppの返信定型文", "NEW_WHATSAPPDISPOSITION": "新しいWhatsAppの処理", "NEW_WHATSAPPQUEUE": "新しいWhatsAppキュー", + "NOOP": "いいえ", + "NOTE": "注意", + "NOTIFICATION": "通知", + "NOTIFICATIONSHAKE": "シェイク", + "NOTIFICATIONSOUND": "音", + "NOTIFICATIONTEMPLATE": "テンプレート", + "NO_AGENT_ONLINE": "オンラインのエージェントなし", + "NO_AVAILABLE_INFO": "利用可能な情報がありません", + "NO_INTERACTION_AVAILABLE": "相互作用はありません", "NO_WHATSAPPCANNEDANSWER_AVAILABLE": "WhatsAppの定型回答はありません", "NO_WHATSAPPDISPOSITION_AVAILABLE": "WhatsAppの処理は利用できません", "NO_WHATSAPP_ACCOUNTS_AVAILABLE": "利用可能なWhatsAppアカウントはありません", + "OF": "の", + "OPENED": "開いた", + "PAGE": "ページ", + "PARTIALPAUSE": "部分的に一時停止", + "PAUSE": "一時停止", + "PAUSED": "一時停止", + "PAUSE_TIME": "一時停止時間", + "PHONE": "電話", + "PRIORITY": "優先", + "PROXY": "代理", + "QUEUE": "キュー", + "QUEUES": "キュー", + "QUEUETRANSFER": "キュー転送", + "QUEUETRANSFERTIMEOUT": "キュー転送タイムアウト", + "READY": "準備ができて", + "REALTIME": "リアルタイム", + "RECEIVEURL": "受信URL", + "REFRESH_INTERACTIONS": "インタラクションの更新", "REMOTE": "リモート", + "ROWSPERPAGE": "ページあたりの行数", + "SAVE": "保存する", + "SCREENRECORDING": "画面記録を管理する", + "SEARCH_FOR_ANYONE": "探す", + "SECRETACCESSKEY": "アクセスキーシークレット", + "SELECTED": "選択済み", + "SELECTED_AGENTS": "選択されたエージェント", + "SELECTED_TEAMS": "選択されたチーム", + "SELECT_ALL": "すべて選択", + "SELECT_NONE": "何も選択しない", + "SEND": "送る", + "SETTINGS": "設定", + "SPYINTERACTION": "スパイの相互作用", + "STARTEDAT": "開始", + "START_SCREENRECORDING": "画面記録を開始", + "STATUS": "状態", + "STOP_SCREENRECORDING": "画面記録を停止", + "STRATEGY": "戦略", + "SYSTEM": "システム", + "TAG": "鬼ごっこ", + "TAGS": "タグ", "TEAMADD_WHATSAPPQUEUE": "WhatsAppキューにチームを追加", + "TEAMS_ASSOCIATION": "チーム協会", + "TEXT": "テキスト", + "TIMEOUT": "タイムアウト", + "TIMER": "タイマー", + "TIMES": "タイムズ", + "TO": "に", + "TOKEN": "トークン", + "TOOLTIP_SCREENRECORDING_OFF": "利用可能な画面記録", + "TOOLTIP_SCREENRECORDING_ON": "画面記録中", + "TRANSFER": "転送", + "TRUEPRIORITY": "真の優先順位", + "TYPE": "タイプ", + "UNPAUSE": "一時停止を終了", + "VALUE": "値", + "VARIABLE": "変数", + "WAITFORTHEASSIGNEDAGENT": "割り当てられたエージェントを待つ", + "WAITING": "待っています", + "WELCOMEMESSAGE": "ウェルカムメッセージ", + "WHATSAPP": "WhatsAppコネクタ", "WHATSAPPACCOUNTS": "WhatsAppアカウント", "WHATSAPPCANNEDANSWERS": "WhatsApp缶詰の答え", "WHATSAPPDISPOSITIONS": "WhatsAppの処理", - "WHATSAPPQUEUES": "WhatsAppキュー" + "WHATSAPPQUEUES": "WhatsAppキュー", + "CLIENTEMAIL": "クライアントの電子メール", + "DIALOGFLOWV2": "Dialogflow V2", + "EDIT_DIALOGFLOWV2": "DialogflowV2を編集する", + "PRIVATEKEY": "秘密鍵", + "PROJECTID": "プロジェクトID" } } diff --git a/public/app/main/apps/whatsapp/i18n/ko.json b/public/app/main/apps/whatsapp/i18n/ko.json index 232b5f3..d6c34e1 100644 --- a/public/app/main/apps/whatsapp/i18n/ko.json +++ b/public/app/main/apps/whatsapp/i18n/ko.json @@ -1,47 +1,244 @@ { "WHATSAPP": { "ERRORS": { + "ACCESSKEYID_REQUIRED": "필수 필드", + "ACCOUNTSID_REQUIRED": "필수 필드", + "AGENTTRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "값은 다음보다 크거나 같아야합니다.", + "AGENTTRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "값은 다음보다 작거나 같아야합니다.", + "AGENTTRANSFERTIMEOUT_REQUIRED": "필수 필드", + "AGENT_REQUIRED": "필수 필드", + "AGENT_TIMEOUT_REQUIRED": "필수 필드", + "AUTHTOKEN_REQUIRED": "필수 필드", + "BOTNAME_REQUIRED": "필수 필드", + "COMMAND_REQUIRED": "필수 필드", + "CONDITION_REQUIRED": "필수 필드", "DESCRIPTION_REQUIRED": "필수 필드", + "DISPOSITION_REQUIRED": "필수 필드", + "FALSEPRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "값은 다음보다 크거나 같아야합니다.", + "FALSEPRIORITY_REQUIRED": "필수 필드", + "KEY_MAX_LENGTH": "값의 최대 길이는 {{max}}와 같아야합니다.", + "KEY_REQUIRED": "필수 필드", "LANGUAGE_REQUIRED": "맨 토리 필드", "LEXREGION_REQUIRED": "필수 필드", + "LIST_REQUIRED": "필수 필드", + "MANDATORYDISPOSITIONPAUSEID_REQUIRED": "필수 필드", + "NAME_REQUIRED": "필수 필드", + "PHONE_REQUIRED": "필수 필드", + "PRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "값은 다음보다 크거나 같아야합니다.", + "PRIORITY_REQUIRED": "필수 필드", + "QUEUETRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "값은 다음보다 크거나 같아야합니다.", + "QUEUETRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "값은 다음보다 작거나 같아야합니다.", + "QUEUETRANSFERTIMEOUT_REQUIRED": "필수 필드", + "QUEUE_REQUIRED": "필수 필드", + "SECRETACCESSKEY_REQUIRED": "필수 필드", + "TAG_REQUIRED": "필수 필드", + "TEXT_REQUIRED": "필수 필드", + "TIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "값은 다음보다 크거나 같아야합니다.", + "TIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "값은 다음보다 작거나 같아야합니다.", + "TIMEOUT_REQUIRED": "필수 필드", "TIMES_REQUIRED": "필수 필드", + "TOKEN_REQUIRED": "필수 필드", + "TRUEPRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "값은 다음보다 크거나 같아야합니다.", + "TRUEPRIORITY_REQUIRED": "필수 필드", + "TYPE_REQUIRED": "필수 필드", + "VALUE_REQUIRED": "필수 필드", "VARIABLE_REQUIRED": "필수 필드", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "값은 다음보다 크거나 같아야합니다.", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "값은 다음보다 작거나 같아야합니다.", + "WAITFORTHEASSIGNEDAGENT_REQUIRED": "필수 필드", "WELCOMEMESSAGE_MAX_LENGTH": "값의 최대 길이는 {{max}}와 같아야합니다.", - "WELCOMEMESSAGE_REQUIRED": "필수 필드" + "WELCOMEMESSAGE_REQUIRED": "필수 필드", + "CLIENTEMAIL_REQUIRED": "필수 필드", + "PRIVATEKEY_REQUIRED": "필수 필드", + "PROJECTID_REQUIRED": "필수 필드" }, - "HELP": {}, + "HELP": { + "LIST": "연락처를 연결하는 데 사용되는 연락처 관리자 목록", + "MANDATORYDISPOSITION": "필수 처분", + "MANDATORYDISPOSITIONPAUSEID": "필수 처리가 활성화 된 경우 사용을 일시 중지합니다.", + "MOTIONPROXY": "필드 형식은 : // [: ] 여야합니다. 예 : https : //X.Y.Z.W", + "NAME": "숫자, 문자 및 특정 문자 (._) 만 지원됩니다.", + "RECEIVEURL": "WhatsApp Connector 공급자로부터 계정 내 메시지를 수신하는 데 사용해야하는 자동 생성 API 문자열입니다 (POST 방법을 사용해야 함) : 클립 보드 버튼을 클릭하여 복사합니다.", + "WELCOMEMESSAGE": "새 상호 작용에 전송 된 첫 번째 응답 메시지입니다." + }, + "ACCESSKEYID": "액세스 키 ID", + "ACCOUNTSID": "계정 SID", + "ACTIONS": "행위", + "ADD_NOTE": "메모를 추가", "ADD_WHATSAPPACCOUNT": "더하다", "ADD_WHATSAPPCANNEDANSWER": "미리 준비된 답변 추가", "ADD_WHATSAPPDISPOSITION": "WhatsApp 처리 추가", "ADD_WHATSAPPQUEUE": "WhatsApp 대기열 추가", + "ADVANCED": "많은", + "AGENT": "에이전트", "AGENTADD_QUEUE": "WhatsApp 대기열에 에이전트 추가", "AGENTADD_WHATSAPPACCOUNT": "WhatsApp 계정에 에이전트 추가", "AGENTADD_WHATSAPPQUEUE": "WhatsApp 대기열에 에이전트 추가", + "AGENTS": "자치령 대표", + "AGENTSADD_QUEUE": "WhatsApp 대기열에 상담원 추가", + "AGENTTRANSFER": "에이전트 전달", + "AGENTTRANSFERTIMEOUT": "상담원 전달 시간 초과", + "AGENT_TIMEOUT": "에이전트 시간 초과", + "ALL": "모두", + "ALL_AGENTS": "모든 에이전트", + "ALL_TEAMS": "모든 팀", + "AMAZONLEX": "AmazonLex", "AUTHTOKEN": "인증 토큰", + "AUTOREPLY": "자동 회신", + "BACK": "뒤", + "BOTNAME": "봇 이름", + "BUSY": "바쁜", + "CANNEDANSWERS": "미리 준비된 답변", + "CANNED_ANSWER_NOT_FOUND": "미리 준비된 답변이 없습니다.", + "CANNED_ANSWER_SEARCH": "미리 준비된 답변을 검색하려면 텍스트를 입력하세요.", + "CAPACITY": "생산 능력", + "CLOSE": "닫기", + "CLOSED": "닫은", + "CLOSEMETHOD": "닫기 방법", + "CLOSEURL": "닫기 URL", + "COMMAND": "명령", + "CONDITION": "질환", + "CONTACT": "접촉", + "CREATED_AT": "만든 날짜", + "DEFAULT_PAUSE": "기본 일시 중지", + "DELETE": "지우다", + "DELETE_INTERACTION": "상호 작용 삭제", + "DELETE_SELECTED": "선택된 것을 지워 라", "DELETE_WHATSAPPACCOUNT": "WhatsApp 계정 삭제", "DELETE_WHATSAPPCANNEDANSWER": "삭제", "DELETE_WHATSAPPDISPOSITION": "WhatsApp 처리 삭제", "DELETE_WHATSAPPQUEUE": "WhatsApp 대기열 삭제", + "DESCRIPTION": "기술", + "DIALOGFLOW": "DialogFlow", + "DISPOSITION": "처분", + "DISPOSITIONS": "처분", + "DOWNLOAD_INTERACTION": "다운로드", + "DOWNLOAD_WITHOUT_ATTACHMENTS": "첨부 파일없이 다운로드", + "DOWNLOAD_WITH_ATTACHMENTS": "첨부 파일과 함께 다운로드", + "EDIT_AGENT": "에이전트 편집", + "EDIT_AMAZONLEX": "Lex 구성 편집", + "EDIT_AUTOREPLY": "자동 회신 편집", + "EDIT_CLOSE": "편집 닫기", + "EDIT_DIALOGFLOW": "DialogFlow 구성 수정", + "EDIT_GOTOIF": "Gotoif 편집", + "EDIT_GOTOP": "Gotop 편집", + "EDIT_NOOP": "Noop 수정", + "EDIT_QUEUE": "대기열 편집", + "EDIT_SYSTEM": "시스템 편집", + "EDIT_TAG": "태그 편집", "EDIT_WHATSAPPACCOUNT": "WhatsApp 계정 편집", "EDIT_WHATSAPPCANNEDANSWER": "편집하다", "EDIT_WHATSAPPDISPOSITION": "WhatsApp 처리 편집", "EDIT_WHATSAPPQUEUE": "WhatsApp 대기열 편집", + "FALSEPRIORITY": "잘못된 우선 순위", + "GENERAL": "일반", + "GOTOIF": "Gotoif", + "GOTOP": "정상으로 가다", "GOTOREALTIME_WHATSAPPQUEUE": "실시간 WhatsApp 대기열로 이동", "GO_TO_WHATSAPPACCOUNTS": "계정으로 이동", + "ID": "신분증", + "IDLE": "게으른", + "INSERT_MESSAGE_HERE": "여기에 메시지 삽입", + "INTERACTIONS": "상호 작용", "INTERACTIONS_WHATSAPPACCOUNT": "상호 작용으로 이동", + "KEY": "키", + "LANGUAGE": "언어", + "LASTMESSAGE": "마지막 메시지", + "LEXREGION": "부위", + "LIST": "명부", + "LOGGED_IN": "로그인 됨 (SIP 연결됨)", + "LOGIN_TIME": "로그인 시간", + "LOGOUT": "로그 아웃", + "MANDATORYDISPOSITION": "필수 처분", + "MANDATORYDISPOSITIONPAUSEID": "필수 처리가 활성화 된 경우 사용을 일시 중지합니다.", + "MORE": "더", + "MOTIONPROXY": "프록시 또는 모션 도메인", "MULTI_SELECT_TOGGLE": "다중 선택 토글", + "NAME": "이름", "NEW_WHATSAPPACCOUNT": "새 WhatsApp 계정", "NEW_WHATSAPPCANNEDANSWER": "새로운 WhatsApp 미리 준비된 답변", "NEW_WHATSAPPDISPOSITION": "새로운 WhatsApp 처리", "NEW_WHATSAPPQUEUE": "새로운 WhatsApp 대기열", + "NOOP": "안돼", + "NOTE": "노트", + "NOTIFICATION": "공고", + "NOTIFICATIONSHAKE": "떨림", + "NOTIFICATIONSOUND": "소리", + "NOTIFICATIONTEMPLATE": "주형", + "NO_AGENT_ONLINE": "온라인 상담원 없음", + "NO_AVAILABLE_INFO": "사용 가능한 정보 없음", + "NO_INTERACTION_AVAILABLE": "사용 가능한 상호 작용 없음", "NO_WHATSAPPCANNEDANSWER_AVAILABLE": "WhatsApp 미리 준비된 답변 없음", "NO_WHATSAPPDISPOSITION_AVAILABLE": "사용 가능한 WhatsApp 처리 없음", "NO_WHATSAPP_ACCOUNTS_AVAILABLE": "사용 가능한 WhatsApp 계정이 없습니다.", + "OF": "의", + "OPENED": "개장", + "PAGE": "페이지", + "PARTIALPAUSE": "부분 일시 중지", + "PAUSE": "중지", + "PAUSED": "일시 중지됨", + "PAUSE_TIME": "일시 중지 시간", + "PHONE": "전화", + "PRIORITY": "우선 순위", + "PROXY": "대리", + "QUEUE": "열", + "QUEUES": "대기열", + "QUEUETRANSFER": "대기열 전송", + "QUEUETRANSFERTIMEOUT": "대기열 전송 시간 초과", + "READY": "준비된", + "REALTIME": "실시간", + "RECEIVEURL": "수신 URL", + "REFRESH_INTERACTIONS": "상호 작용 새로 고침", "REMOTE": "먼", + "ROWSPERPAGE": "페이지 당 행", + "SAVE": "저장", + "SCREENRECORDING": "화면 녹화 관리", + "SEARCH_FOR_ANYONE": "검색", + "SECRETACCESSKEY": "액세스 키 비밀", + "SELECTED": "선택된", + "SELECTED_AGENTS": "선택된 에이전트", + "SELECTED_TEAMS": "선택된 팀", + "SELECT_ALL": "모두 선택", + "SELECT_NONE": "선택 안함", + "SEND": "보내다", + "SETTINGS": "설정", + "SPYINTERACTION": "스파이 상호 작용", + "STARTEDAT": "시작일", + "START_SCREENRECORDING": "화면 녹화 시작", + "STATUS": "상태", + "STOP_SCREENRECORDING": "화면 녹화 중지", + "STRATEGY": "전략", + "SYSTEM": "체계", + "TAG": "꼬리표", + "TAGS": "태그", "TEAMADD_WHATSAPPQUEUE": "WhatsApp 대기열에 팀 추가", + "TEAMS_ASSOCIATION": "팀 협회", + "TEXT": "본문", + "TIMEOUT": "타임 아웃", + "TIMER": "시간제 노동자", + "TIMES": "타임스", + "TO": "에", + "TOKEN": "토큰", + "TOOLTIP_SCREENRECORDING_OFF": "화면 녹화 가능", + "TOOLTIP_SCREENRECORDING_ON": "화면 녹화 중", + "TRANSFER": "이전", + "TRUEPRIORITY": "진정한 우선 순위", + "TYPE": "유형", + "UNPAUSE": "일시 중지 종료", + "VALUE": "값", + "VARIABLE": "변하기 쉬운", + "WAITFORTHEASSIGNEDAGENT": "할당 된 에이전트를 기다립니다.", + "WAITING": "기다리는", + "WELCOMEMESSAGE": "환영 메시지", + "WHATSAPP": "WhatsApp 커넥터", "WHATSAPPACCOUNTS": "WhatsApp 계정", "WHATSAPPCANNEDANSWERS": "WhatsApp 미리 준비된 답변", "WHATSAPPDISPOSITIONS": "WhatsApp 처리", - "WHATSAPPQUEUES": "WhatsApp 대기열" + "WHATSAPPQUEUES": "WhatsApp 대기열", + "CLIENTEMAIL": "클라이언트 이메일", + "DIALOGFLOWV2": "Dialogflow V2", + "EDIT_DIALOGFLOWV2": "Dialogflow V2 수정", + "PRIVATEKEY": "개인 키", + "PROJECTID": "프로젝트 ID" } } diff --git a/public/app/main/apps/whatsapp/i18n/lt.json b/public/app/main/apps/whatsapp/i18n/lt.json index ff4e474..282dd81 100644 --- a/public/app/main/apps/whatsapp/i18n/lt.json +++ b/public/app/main/apps/whatsapp/i18n/lt.json @@ -1,47 +1,244 @@ { "WHATSAPP": { "ERRORS": { + "ACCESSKEYID_REQUIRED": "Privalomas laukas", + "ACCOUNTSID_REQUIRED": "Privalomas laukas", + "AGENTTRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Vertė turi būti didesnė arba lygi", + "AGENTTRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Vertė turi būti mažesnė arba lygi", + "AGENTTRANSFERTIMEOUT_REQUIRED": "Privalomas laukas", + "AGENT_REQUIRED": "Privalomas laukas", + "AGENT_TIMEOUT_REQUIRED": "Privalomas laukas", + "AUTHTOKEN_REQUIRED": "Privalomas laukas", + "BOTNAME_REQUIRED": "Privalomas laukas", + "COMMAND_REQUIRED": "Privalomas laukas", + "CONDITION_REQUIRED": "Privalomas laukas", "DESCRIPTION_REQUIRED": "Privalomas laukas", + "DISPOSITION_REQUIRED": "Privalomas laukas", + "FALSEPRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Vertė turi būti didesnė arba lygi", + "FALSEPRIORITY_REQUIRED": "Privalomas laukas", + "KEY_MAX_LENGTH": "Vertės maksimalus ilgis turi būti lygus {{max}}", + "KEY_REQUIRED": "Privalomas laukas", "LANGUAGE_REQUIRED": "Privalomas laukas", "LEXREGION_REQUIRED": "Privalomas laukas", + "LIST_REQUIRED": "Privalomas laukas", + "MANDATORYDISPOSITIONPAUSEID_REQUIRED": "Privalomas laukas", + "NAME_REQUIRED": "Privalomas laukas", + "PHONE_REQUIRED": "Privalomas laukas", + "PRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Vertė turi būti didesnė arba lygi", + "PRIORITY_REQUIRED": "Privalomas laukas", + "QUEUETRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Vertė turi būti didesnė arba lygi", + "QUEUETRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Vertė turi būti mažesnė arba lygi", + "QUEUETRANSFERTIMEOUT_REQUIRED": "Privalomas laukas", + "QUEUE_REQUIRED": "Privalomas laukas", + "SECRETACCESSKEY_REQUIRED": "Privalomas laukas", + "TAG_REQUIRED": "Privalomas laukas", + "TEXT_REQUIRED": "Privalomas laukas", + "TIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Vertė turi būti didesnė arba lygi", + "TIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Vertė turi būti mažesnė arba lygi", + "TIMEOUT_REQUIRED": "Privalomas laukas", "TIMES_REQUIRED": "Privalomas laukas", + "TOKEN_REQUIRED": "Privalomas laukas", + "TRUEPRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Vertė turi būti didesnė arba lygi", + "TRUEPRIORITY_REQUIRED": "Privalomas laukas", + "TYPE_REQUIRED": "Privalomas laukas", + "VALUE_REQUIRED": "Privalomas laukas", "VARIABLE_REQUIRED": "Privalomas laukas", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Vertė turi būti didesnė arba lygi", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Vertė turi būti mažesnė arba lygi", + "WAITFORTHEASSIGNEDAGENT_REQUIRED": "Privalomas laukas", "WELCOMEMESSAGE_MAX_LENGTH": "Vertės maksimalus ilgis turi būti lygus {{max}}", - "WELCOMEMESSAGE_REQUIRED": "Privalomas laukas" + "WELCOMEMESSAGE_REQUIRED": "Privalomas laukas", + "CLIENTEMAIL_REQUIRED": "Privalomas laukas", + "PRIVATEKEY_REQUIRED": "Privalomas laukas", + "PROJECTID_REQUIRED": "Privalomas laukas" }, - "HELP": {}, + "HELP": { + "LIST": "Kontaktų tvarkyklės sąrašas, naudojamas kontaktams susieti", + "MANDATORYDISPOSITION": "Privalomas nusistatymas", + "MANDATORYDISPOSITIONPAUSEID": "Pauzė naudoti, kai įjungtas privalomas disponavimas", + "MOTIONPROXY": "Laukas turi būti tokio formato: : // [: : // [: ]. Piemērs: https: //X.Y.Z.W", + "NAME": "Tiek atbalstīti tikai cipari, burti un noteiktas rakstzīmes (._)", + "RECEIVEURL": "Šī ir automātiski ģenerēta API virkne, kas jāizmanto, lai no WhatsApp savienotāja nodrošinātāja saņemtu ziņojumus kontā (ir jāizmanto POST metode): noklikšķiniet uz starpliktuves pogas, lai to kopētu.", + "WELCOMEMESSAGE": "Šis ir pirmais atbildes ziņojums, kas nosūtīts jaunām mijiedarbībām" + }, + "ACCESSKEYID": "Piekļuves atslēgas ID", + "ACCOUNTSID": "Konta SID", + "ACTIONS": "Darbības", + "ADD_NOTE": "Pievienot piezīmi", "ADD_WHATSAPPACCOUNT": "Pievienot", "ADD_WHATSAPPCANNEDANSWER": "Pievienojiet atbildi", "ADD_WHATSAPPDISPOSITION": "Pievienojiet WhatsApp izvietojumu", "ADD_WHATSAPPQUEUE": "Pievienojiet WhatsApp rindu", + "ADVANCED": "Advanced", + "AGENT": "Aģents", "AGENTADD_QUEUE": "Pievienot aģentu WhatsApp rindā", "AGENTADD_WHATSAPPACCOUNT": "Pievienot aģentu WhatsApp kontam", "AGENTADD_WHATSAPPQUEUE": "Pievienot aģentu WhatsApp rindā", + "AGENTS": "Aģenti", + "AGENTSADD_QUEUE": "Pievienojiet aģentus WhatsApp rindā", + "AGENTTRANSFER": "Aģenta pārsūtīšana", + "AGENTTRANSFERTIMEOUT": "Aģenta pārsūtīšanas noildze", + "AGENT_TIMEOUT": "Aģenta noildze", + "ALL": "Visi", + "ALL_AGENTS": "Visi aģenti", + "ALL_TEAMS": "Visas komandas", + "AMAZONLEX": "AmazonLex", "AUTHTOKEN": "Auth marķieris", + "AUTOREPLY": "Automātiska atbilde", + "BACK": "Atpakaļ", + "BOTNAME": "Bot vārds", + "BUSY": "Aizņemts", + "CANNEDANSWERS": "Konservētas atbildes", + "CANNED_ANSWER_NOT_FOUND": "Neviena konservēta atbilde netika atrasta", + "CANNED_ANSWER_SEARCH": "Ievadiet tekstu, lai meklētu konservētu atbildi", + "CAPACITY": "Jauda", + "CLOSE": "Aizveriet", + "CLOSED": "Slēgts", + "CLOSEMETHOD": "Aizvērt metodi", + "CLOSEURL": "Aizvērt URL", + "COMMAND": "Pavēle", + "CONDITION": "Stāvoklis", + "CONTACT": "Sazinieties", + "CREATED_AT": "Izveidots plkst", + "DEFAULT_PAUSE": "NEPIECIEŠAMĀ PAUZE", + "DELETE": "Dzēst", + "DELETE_INTERACTION": "Dzēst mijiedarbību", + "DELETE_SELECTED": "Dzēst atlasīto", "DELETE_WHATSAPPACCOUNT": "Dzēst WhatsApp kontu", "DELETE_WHATSAPPCANNEDANSWER": "Dzēsts", "DELETE_WHATSAPPDISPOSITION": "Dzēst WhatsApp Disposition", "DELETE_WHATSAPPQUEUE": "Izdzēsiet WhatsApp rindu", + "DESCRIPTION": "Apraksts", + "DIALOGFLOW": "DialogFlow", + "DISPOSITION": "Dispozīcija", + "DISPOSITIONS": "Dispozīcijas", + "DOWNLOAD_INTERACTION": "Lejupielādēt", + "DOWNLOAD_WITHOUT_ATTACHMENTS": "Lejupielādējiet bez pielikumiem", + "DOWNLOAD_WITH_ATTACHMENTS": "Lejupielādēt ar pielikumiem", + "EDIT_AGENT": "Rediģēt aģentu", + "EDIT_AMAZONLEX": "Rediģēt Lex konfigurāciju", + "EDIT_AUTOREPLY": "Rediģēt automātisko atbildi", + "EDIT_CLOSE": "Rediģēt Aizvērt", + "EDIT_DIALOGFLOW": "Rediģēt DialogFlow konfigurāciju", + "EDIT_GOTOIF": "Rediģēt Gotoifu", + "EDIT_GOTOP": "Rediģēt Gotopu", + "EDIT_NOOP": "Rediģēt Noopu", + "EDIT_QUEUE": "Rediģēt rindu", + "EDIT_SYSTEM": "Rediģēt sistēmu", + "EDIT_TAG": "Rediģēt tagu", "EDIT_WHATSAPPACCOUNT": "Rediģēt WhatsApp kontu", "EDIT_WHATSAPPCANNEDANSWER": "Rediģēt", "EDIT_WHATSAPPDISPOSITION": "Rediģēt WhatsApp izvietojumu", "EDIT_WHATSAPPQUEUE": "Rediģēt WhatsApp rindu", + "FALSEPRIORITY": "Viltus prioritāte", + "GENERAL": "Vispārīgi", + "GOTOIF": "Gotoifs", + "GOTOP": "Gotop", "GOTOREALTIME_WHATSAPPQUEUE": "Pārejiet uz WhatsApp rindu reāllaikā", "GO_TO_WHATSAPPACCOUNTS": "Iet uz kontu", + "ID": "Id", + "IDLE": "Dīkstāvē", + "INSERT_MESSAGE_HERE": "Ievietojiet ziņojumu šeit", + "INTERACTIONS": "Mijiedarbība", "INTERACTIONS_WHATSAPPACCOUNT": "Atveriet sadaļu Mijiedarbība", + "KEY": "Atslēga", + "LANGUAGE": "Valoda", + "LASTMESSAGE": "Pēdējā ziņa", + "LEXREGION": "Novads", + "LIST": "Saraksts", + "LOGGED_IN": "Pieteicies (savienots ar SIP)", + "LOGIN_TIME": "Pieteikšanās laiks", + "LOGOUT": "Izlogoties", + "MANDATORYDISPOSITION": "Obligāta rīcība", + "MANDATORYDISPOSITIONPAUSEID": "Lietošanas pārtraukšana, kad ir iespējota obligātā izvietošana", + "MORE": "Vairāk", + "MOTIONPROXY": "Starpniekserveris vai kustības domēns", "MULTI_SELECT_TOGGLE": "Vairāki atlasiet pārslēgšanu", + "NAME": "Vārds", "NEW_WHATSAPPACCOUNT": "Jauns WhatsApp konts", "NEW_WHATSAPPCANNEDANSWER": "Jauna WhatsApp konservēta atbilde", "NEW_WHATSAPPDISPOSITION": "Jauns WhatsApp izvietojums", "NEW_WHATSAPPQUEUE": "Jauna WhatsApp rinda", + "NOOP": "Noop", + "NOTE": "Piezīme", + "NOTIFICATION": "Paziņojums", + "NOTIFICATIONSHAKE": "Krata", + "NOTIFICATIONSOUND": "Skaņa", + "NOTIFICATIONTEMPLATE": "Veidne", + "NO_AGENT_ONLINE": "Nav aģenta tiešsaistē", + "NO_AVAILABLE_INFO": "Nav pieejama informācija", + "NO_INTERACTION_AVAILABLE": "Nav pieejama mijiedarbība", "NO_WHATSAPPCANNEDANSWER_AVAILABLE": "Nav pieejamas WhatsApp konservētās atbildes", "NO_WHATSAPPDISPOSITION_AVAILABLE": "Nav pieejama neviena WhatsApp pieeja", "NO_WHATSAPP_ACCOUNTS_AVAILABLE": "Nav pieejams neviens WhatsApp konts", + "OF": "no", + "OPENED": "Atvērta", + "PAGE": "Lappuse", + "PARTIALPAUSE": "Daļēja pauze", + "PAUSE": "Pauze", + "PAUSED": "Pauzēts", + "PAUSE_TIME": "Pauzes laiks", + "PHONE": "Tālr", + "PRIORITY": "Prioritāte", + "PROXY": "Starpniekserveris", + "QUEUE": "Rinda", + "QUEUES": "Rindas", + "QUEUETRANSFER": "Rindas pārsūtīšana", + "QUEUETRANSFERTIMEOUT": "Rindas pārsūtīšanas noildze", + "READY": "Gatavs", + "REALTIME": "Īsts laiks", + "RECEIVEURL": "Saņemt URL", + "REFRESH_INTERACTIONS": "Atsvaidziniet mijiedarbību", "REMOTE": "Tālvadība", + "ROWSPERPAGE": "Rindas vienā lappusē", + "SAVE": "Saglabāt", + "SCREENRECORDING": "Pārvaldīt ekrāna ierakstīšanu", + "SEARCH_FOR_ANYONE": "Meklēt", + "SECRETACCESSKEY": "Piekļuves atslēgas noslēpums", + "SELECTED": "Atlasīts", + "SELECTED_AGENTS": "Atlasītie pārstāvji", + "SELECTED_TEAMS": "Atlasītās komandas", + "SELECT_ALL": "Izvēlēties visus", + "SELECT_NONE": "Neizvēlēties nevienu", + "SEND": "Sūtīt", + "SETTINGS": "Iestatījumi", + "SPYINTERACTION": "Spiegu mijiedarbība", + "STARTEDAT": "Sākās plkst", + "START_SCREENRECORDING": "Sākuma ekrāna ierakstīšana", + "STATUS": "Statuss", + "STOP_SCREENRECORDING": "Beigt ekrāna ierakstīšanu", + "STRATEGY": "Stratēģija", + "SYSTEM": "Sistēma", + "TAG": "Tag", + "TAGS": "Tagi", "TEAMADD_WHATSAPPQUEUE": "Pievienojiet komandu WhatsApp rindai", + "TEAMS_ASSOCIATION": "Komandu asociācija", + "TEXT": "Teksts", + "TIMEOUT": "Pārtraukums", + "TIMER": "Taimeris", + "TIMES": "Laiki", + "TO": "Uz", + "TOKEN": "Žetons", + "TOOLTIP_SCREENRECORDING_OFF": "Ekrāna ieraksts ir pieejams", + "TOOLTIP_SCREENRECORDING_ON": "Notiek ekrāna ierakstīšana", + "TRANSFER": "Pārskaitījums", + "TRUEPRIORITY": "Patiesa prioritāte", + "TYPE": "Veids", + "UNPAUSE": "Beigu pauze", + "VALUE": "Vērtība", + "VARIABLE": "Mainīgs", + "WAITFORTHEASSIGNEDAGENT": "Gaidiet iecelto aģentu", + "WAITING": "Gaida", + "WELCOMEMESSAGE": "Sveiciena ziņa", + "WHATSAPP": "WhatsApp savienotājs", "WHATSAPPACCOUNTS": "WhatsApp konti", "WHATSAPPCANNEDANSWERS": "WhatsApp konservētās atbildes", "WHATSAPPDISPOSITIONS": "WhatsApp dispozīcijas", - "WHATSAPPQUEUES": "WhatsApp rindas" + "WHATSAPPQUEUES": "WhatsApp rindas", + "CLIENTEMAIL": "Klienta e-pasts", + "DIALOGFLOWV2": "Dialogflow V2", + "EDIT_DIALOGFLOWV2": "Rediģēt Dialogflow V2", + "PRIVATEKEY": "Privātā atslēga", + "PROJECTID": "Projekta ID" } } diff --git a/public/app/main/apps/whatsapp/i18n/nl.json b/public/app/main/apps/whatsapp/i18n/nl.json index b791d45..85a42ac 100644 --- a/public/app/main/apps/whatsapp/i18n/nl.json +++ b/public/app/main/apps/whatsapp/i18n/nl.json @@ -1,47 +1,244 @@ { "WHATSAPP": { "ERRORS": { + "ACCESSKEYID_REQUIRED": "Verplicht veld", + "ACCOUNTSID_REQUIRED": "Verplicht veld", + "AGENTTRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "De waarde moet groter of gelijk zijn aan", + "AGENTTRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "De waarde moet kleiner of gelijk zijn aan", + "AGENTTRANSFERTIMEOUT_REQUIRED": "Verplicht veld", + "AGENT_REQUIRED": "Verplicht veld", + "AGENT_TIMEOUT_REQUIRED": "Verplicht veld", + "AUTHTOKEN_REQUIRED": "Verplicht veld", + "BOTNAME_REQUIRED": "Verplicht veld", + "COMMAND_REQUIRED": "Verplicht veld", + "CONDITION_REQUIRED": "Verplicht veld", "DESCRIPTION_REQUIRED": "Verplicht veld", + "DISPOSITION_REQUIRED": "Verplicht veld", + "FALSEPRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "De waarde moet groter of gelijk zijn aan", + "FALSEPRIORITY_REQUIRED": "Verplicht veld", + "KEY_MAX_LENGTH": "De waarde moet een maximale lengte hebben die gelijk is aan {{max}}", + "KEY_REQUIRED": "Verplicht veld", "LANGUAGE_REQUIRED": "Verplicht veld", "LEXREGION_REQUIRED": "Verplicht veld", + "LIST_REQUIRED": "Verplicht veld", + "MANDATORYDISPOSITIONPAUSEID_REQUIRED": "Verplicht veld", + "NAME_REQUIRED": "Verplicht veld", + "PHONE_REQUIRED": "Verplicht veld", + "PRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "De waarde moet groter of gelijk zijn aan", + "PRIORITY_REQUIRED": "Verplicht veld", + "QUEUETRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "De waarde moet groter of gelijk zijn aan", + "QUEUETRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "De waarde moet kleiner of gelijk zijn aan", + "QUEUETRANSFERTIMEOUT_REQUIRED": "Verplicht veld", + "QUEUE_REQUIRED": "Verplicht veld", + "SECRETACCESSKEY_REQUIRED": "Verplicht veld", + "TAG_REQUIRED": "Verplicht veld", + "TEXT_REQUIRED": "Verplicht veld", + "TIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "De waarde moet groter of gelijk zijn aan", + "TIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "De waarde moet kleiner of gelijk zijn aan", + "TIMEOUT_REQUIRED": "Verplicht veld", "TIMES_REQUIRED": "Verplicht veld", + "TOKEN_REQUIRED": "Verplicht veld", + "TRUEPRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "De waarde moet groter of gelijk zijn aan", + "TRUEPRIORITY_REQUIRED": "Verplicht veld", + "TYPE_REQUIRED": "Verplicht veld", + "VALUE_REQUIRED": "Verplicht veld", "VARIABLE_REQUIRED": "Verplicht veld", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "De waarde moet groter of gelijk zijn aan", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "De waarde moet kleiner of gelijk zijn aan", + "WAITFORTHEASSIGNEDAGENT_REQUIRED": "Verplicht veld", "WELCOMEMESSAGE_MAX_LENGTH": "De waarde moet een maximale lengte hebben die gelijk is aan {{max}}", - "WELCOMEMESSAGE_REQUIRED": "Verplicht veld" + "WELCOMEMESSAGE_REQUIRED": "Verplicht veld", + "CLIENTEMAIL_REQUIRED": "Verplicht veld", + "PRIVATEKEY_REQUIRED": "Verplicht veld", + "PROJECTID_REQUIRED": "Verplicht veld" }, - "HELP": {}, + "HELP": { + "LIST": "Contact Manager-lijst gebruikt om contacten te koppelen", + "MANDATORYDISPOSITION": "Verplichte dispositie", + "MANDATORYDISPOSITIONPAUSEID": "Pauzeer om te gebruiken wanneer verplichte dispositie is ingeschakeld", + "MOTIONPROXY": "Het veld moet de volgende indeling hebben: : // [: ]. Voorbeeld: https: //X.Y.Z.W", + "NAME": "Alleen cijfers, letters en specifieke tekens (._) worden ondersteund", + "RECEIVEURL": "Dit is de automatisch gegenereerde API-string die je nodig hebt om de berichten in je account van je WhatsApp Connector-provider te ontvangen (POST-methode moet worden gebruikt): klik op de klembordknop om deze te kopiëren", + "WELCOMEMESSAGE": "Dit is het eerste antwoordbericht dat naar nieuwe interacties wordt gestuurd" + }, + "ACCESSKEYID": "Toegangssleutel-ID", + "ACCOUNTSID": "Account-SID", + "ACTIONS": "Acties", + "ADD_NOTE": "Notitie toevoegen", "ADD_WHATSAPPACCOUNT": "Toevoegen", "ADD_WHATSAPPCANNEDANSWER": "Voeg standaard antwoord toe", "ADD_WHATSAPPDISPOSITION": "Voeg WhatsApp Disposition toe", "ADD_WHATSAPPQUEUE": "Voeg WhatsApp-wachtrij toe", + "ADVANCED": "Geavanceerd", + "AGENT": "Agent", "AGENTADD_QUEUE": "Agent toevoegen aan WhatsApp-wachtrij", "AGENTADD_WHATSAPPACCOUNT": "Voeg agent toe aan WhatsApp-account", "AGENTADD_WHATSAPPQUEUE": "Agent toevoegen aan WhatsApp-wachtrij", + "AGENTS": "Agenten", + "AGENTSADD_QUEUE": "Voeg agenten toe aan de WhatsApp-wachtrij", + "AGENTTRANSFER": "Overdracht van agent", + "AGENTTRANSFERTIMEOUT": "Time-out voor overdracht van agent", + "AGENT_TIMEOUT": "Time-out van agent", + "ALL": "Allemaal", + "ALL_AGENTS": "Alle agenten", + "ALL_TEAMS": "Alle teams", + "AMAZONLEX": "AmazonLex", "AUTHTOKEN": "Verificatie-token", + "AUTOREPLY": "Automatisch antwoord", + "BACK": "Terug", + "BOTNAME": "Botnaam", + "BUSY": "Druk", + "CANNEDANSWERS": "Ingeblikte antwoorden", + "CANNED_ANSWER_NOT_FOUND": "Er zijn geen standaardantwoorden gevonden", + "CANNED_ANSWER_SEARCH": "Voer een tekst in om een standaardantwoord te zoeken", + "CAPACITY": "Capaciteit", + "CLOSE": "Dichtbij", + "CLOSED": "Gesloten", + "CLOSEMETHOD": "Sluit methode", + "CLOSEURL": "Sluit URL", + "COMMAND": "Opdracht", + "CONDITION": "Staat", + "CONTACT": "Contact", + "CREATED_AT": "Gemaakt bij", + "DEFAULT_PAUSE": "STANDAARD PAUZE", + "DELETE": "Verwijderen", + "DELETE_INTERACTION": "Interactie verwijderen", + "DELETE_SELECTED": "Verwijder geselecteerde", "DELETE_WHATSAPPACCOUNT": "Verwijder WhatsApp-account", "DELETE_WHATSAPPCANNEDANSWER": "Verwijderd", "DELETE_WHATSAPPDISPOSITION": "Verwijder WhatsApp Disposition", "DELETE_WHATSAPPQUEUE": "Verwijder WhatsApp-wachtrij", + "DESCRIPTION": "Omschrijving", + "DIALOGFLOW": "DialogFlow", + "DISPOSITION": "Dispositie", + "DISPOSITIONS": "Beschikkingen", + "DOWNLOAD_INTERACTION": "Downloaden", + "DOWNLOAD_WITHOUT_ATTACHMENTS": "Downloaden zonder bijlagen", + "DOWNLOAD_WITH_ATTACHMENTS": "Downloaden met bijlagen", + "EDIT_AGENT": "Bewerk Agent", + "EDIT_AMAZONLEX": "Bewerk de Lex-configuratie", + "EDIT_AUTOREPLY": "Bewerk automatisch antwoord", + "EDIT_CLOSE": "Bewerken Sluiten", + "EDIT_DIALOGFLOW": "Bewerk de DialogFlow-configuratie", + "EDIT_GOTOIF": "Bewerk Gotoif", + "EDIT_GOTOP": "Bewerken Gotop", + "EDIT_NOOP": "Bewerken Noop", + "EDIT_QUEUE": "Wachtrij bewerken", + "EDIT_SYSTEM": "Bewerk System", + "EDIT_TAG": "Bewerk label", "EDIT_WHATSAPPACCOUNT": "Bewerk WhatsApp-account", "EDIT_WHATSAPPCANNEDANSWER": "Bewerk", "EDIT_WHATSAPPDISPOSITION": "Bewerk WhatsApp-indeling", "EDIT_WHATSAPPQUEUE": "Bewerk WhatsApp-wachtrij", + "FALSEPRIORITY": "Valse prioriteit", + "GENERAL": "Algemeen", + "GOTOIF": "Gotoif", + "GOTOP": "Gotop", "GOTOREALTIME_WHATSAPPQUEUE": "Ga naar de realtime WhatsApp-wachtrij", "GO_TO_WHATSAPPACCOUNTS": "Ga naar account", + "ID": "ID kaart", + "IDLE": "Inactief", + "INSERT_MESSAGE_HERE": "Voeg hier een bericht in", + "INTERACTIONS": "Interacties", "INTERACTIONS_WHATSAPPACCOUNT": "Ga naar Interacties", + "KEY": "Sleutel", + "LANGUAGE": "Taal", + "LASTMESSAGE": "Laatste bericht", + "LEXREGION": "Regio", + "LIST": "Lijst", + "LOGGED_IN": "Ingelogd (SIP verbonden)", + "LOGIN_TIME": "Login Tijd", + "LOGOUT": "Uitloggen", + "MANDATORYDISPOSITION": "Verplichte dispositie", + "MANDATORYDISPOSITIONPAUSEID": "Pauzeer om te gebruiken wanneer verplichte dispositie is ingeschakeld", + "MORE": "Meer", + "MOTIONPROXY": "Proxy of bewegingsdomein", "MULTI_SELECT_TOGGLE": "Multi select-schakelaar", + "NAME": "Naam", "NEW_WHATSAPPACCOUNT": "Nieuw WhatsApp-account", "NEW_WHATSAPPCANNEDANSWER": "Nieuw WhatsApp-standaardantwoord", "NEW_WHATSAPPDISPOSITION": "Nieuwe WhatsApp-indeling", "NEW_WHATSAPPQUEUE": "Nieuwe WhatsApp-wachtrij", + "NOOP": "Noop", + "NOTE": "Notitie", + "NOTIFICATION": "Kennisgeving", + "NOTIFICATIONSHAKE": "Schudden", + "NOTIFICATIONSOUND": "Geluid", + "NOTIFICATIONTEMPLATE": "Sjabloon", + "NO_AGENT_ONLINE": "Geen agent online", + "NO_AVAILABLE_INFO": "Geen beschikbare info", + "NO_INTERACTION_AVAILABLE": "Geen interacties beschikbaar", "NO_WHATSAPPCANNEDANSWER_AVAILABLE": "Geen WhatsApp-standaardantwoorden beschikbaar", "NO_WHATSAPPDISPOSITION_AVAILABLE": "Geen WhatsApp-beschikkingen beschikbaar", "NO_WHATSAPP_ACCOUNTS_AVAILABLE": "Geen WhatsApp-accounts beschikbaar", + "OF": "van", + "OPENED": "Geopend", + "PAGE": "Bladzijde", + "PARTIALPAUSE": "Gedeeltelijke pauze", + "PAUSE": "Pauze", + "PAUSED": "Onderbroken", + "PAUSE_TIME": "Pauzetijd", + "PHONE": "Telefoon", + "PRIORITY": "Prioriteit", + "PROXY": "Proxy", + "QUEUE": "Wachtrij", + "QUEUES": "Wachtrijen", + "QUEUETRANSFER": "Wachtrijoverdracht", + "QUEUETRANSFERTIMEOUT": "Time-out wachtrijoverdracht", + "READY": "Klaar", + "REALTIME": "Echte tijd", + "RECEIVEURL": "Ontvang URL", + "REFRESH_INTERACTIONS": "Vernieuw interacties", "REMOTE": "Afgelegen", + "ROWSPERPAGE": "Rijen per pagina", + "SAVE": "Sparen", + "SCREENRECORDING": "Beheer schermopname", + "SEARCH_FOR_ANYONE": "Zoeken", + "SECRETACCESSKEY": "Toegang tot sleutelgeheim", + "SELECTED": "Geselecteerd", + "SELECTED_AGENTS": "Geselecteerde agenten", + "SELECTED_TEAMS": "Geselecteerde teams", + "SELECT_ALL": "Selecteer alles", + "SELECT_NONE": "Selecteer niets", + "SEND": "Sturen", + "SETTINGS": "Instellingen", + "SPYINTERACTION": "Spionage-interactie", + "STARTEDAT": "Begon bij", + "START_SCREENRECORDING": "Start de schermopname", + "STATUS": "Toestand", + "STOP_SCREENRECORDING": "Stop de schermopname", + "STRATEGY": "Strategie", + "SYSTEM": "Systeem", + "TAG": "Label", + "TAGS": "Tags", "TEAMADD_WHATSAPPQUEUE": "Team toevoegen aan WhatsApp-wachtrij", + "TEAMS_ASSOCIATION": "Teams Association", + "TEXT": "Tekst", + "TIMEOUT": "Time-out", + "TIMER": "Timer", + "TIMES": "Keer", + "TO": "Naar", + "TOKEN": "Teken", + "TOOLTIP_SCREENRECORDING_OFF": "Schermopname beschikbaar", + "TOOLTIP_SCREENRECORDING_ON": "Schermopname bezig", + "TRANSFER": "Overdracht", + "TRUEPRIORITY": "Ware prioriteit", + "TYPE": "Type", + "UNPAUSE": "Einde pauze", + "VALUE": "Waarde", + "VARIABLE": "Variabel", + "WAITFORTHEASSIGNEDAGENT": "Wacht op de toegewezen agent", + "WAITING": "Aan het wachten", + "WELCOMEMESSAGE": "Welkoms bericht", + "WHATSAPP": "WhatsApp-aansluiting", "WHATSAPPACCOUNTS": "WhatsApp-accounts", "WHATSAPPCANNEDANSWERS": "WhatsApp standaardantwoorden", "WHATSAPPDISPOSITIONS": "WhatsApp-beschikkingen", - "WHATSAPPQUEUES": "WhatsApp-wachtrijen" + "WHATSAPPQUEUES": "WhatsApp-wachtrijen", + "CLIENTEMAIL": "E-mail van de klant", + "DIALOGFLOWV2": "Dialogflow V2", + "EDIT_DIALOGFLOWV2": "Bewerk Dialogflow V2", + "PRIVATEKEY": "Prive sleutel", + "PROJECTID": "Project-ID" } } diff --git a/public/app/main/apps/whatsapp/i18n/no.json b/public/app/main/apps/whatsapp/i18n/no.json index 4ddd9cb..b8c8675 100644 --- a/public/app/main/apps/whatsapp/i18n/no.json +++ b/public/app/main/apps/whatsapp/i18n/no.json @@ -1,47 +1,244 @@ { "WHATSAPP": { "ERRORS": { + "ACCESSKEYID_REQUIRED": "Obligatoriske felt", + "ACCOUNTSID_REQUIRED": "Obligatoriske felt", + "AGENTTRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Verdien må være større eller lik enn", + "AGENTTRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Verdien må være mindre eller lik enn", + "AGENTTRANSFERTIMEOUT_REQUIRED": "Obligatoriske felt", + "AGENT_REQUIRED": "Obligatoriske felt", + "AGENT_TIMEOUT_REQUIRED": "Obligatoriske felt", + "AUTHTOKEN_REQUIRED": "Obligatoriske felt", + "BOTNAME_REQUIRED": "Obligatoriske felt", + "COMMAND_REQUIRED": "Obligatoriske felt", + "CONDITION_REQUIRED": "Obligatoriske felt", "DESCRIPTION_REQUIRED": "Obligatoriske felt", + "DISPOSITION_REQUIRED": "Obligatoriske felt", + "FALSEPRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Verdien må være større eller lik enn", + "FALSEPRIORITY_REQUIRED": "Obligatoriske felt", + "KEY_MAX_LENGTH": "Verdien må ha en maksimal lengde lik {{max}}", + "KEY_REQUIRED": "Obligatoriske felt", "LANGUAGE_REQUIRED": "Mandtory Field", "LEXREGION_REQUIRED": "Obligatoriske felt", + "LIST_REQUIRED": "Obligatoriske felt", + "MANDATORYDISPOSITIONPAUSEID_REQUIRED": "Obligatoriske felt", + "NAME_REQUIRED": "Obligatoriske felt", + "PHONE_REQUIRED": "Obligatoriske felt", + "PRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Verdien må være større eller lik enn", + "PRIORITY_REQUIRED": "Obligatoriske felt", + "QUEUETRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Verdien må være større eller lik enn", + "QUEUETRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Verdien må være mindre eller lik enn", + "QUEUETRANSFERTIMEOUT_REQUIRED": "Obligatoriske felt", + "QUEUE_REQUIRED": "Obligatoriske felt", + "SECRETACCESSKEY_REQUIRED": "Obligatoriske felt", + "TAG_REQUIRED": "Obligatoriske felt", + "TEXT_REQUIRED": "Obligatoriske felt", + "TIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Verdien må være større eller lik enn", + "TIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Verdien må være mindre eller lik enn", + "TIMEOUT_REQUIRED": "Obligatoriske felt", "TIMES_REQUIRED": "Obligatoriske felt", + "TOKEN_REQUIRED": "Obligatoriske felt", + "TRUEPRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Verdien må være større eller lik enn", + "TRUEPRIORITY_REQUIRED": "Obligatoriske felt", + "TYPE_REQUIRED": "Obligatoriske felt", + "VALUE_REQUIRED": "Obligatoriske felt", "VARIABLE_REQUIRED": "Obligatoriske felt", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Verdien må være større eller lik enn", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Verdien må være mindre eller lik enn", + "WAITFORTHEASSIGNEDAGENT_REQUIRED": "Obligatoriske felt", "WELCOMEMESSAGE_MAX_LENGTH": "Verdien må ha en maksimal lengde lik {{max}}", - "WELCOMEMESSAGE_REQUIRED": "Obligatoriske felt" + "WELCOMEMESSAGE_REQUIRED": "Obligatoriske felt", + "CLIENTEMAIL_REQUIRED": "Obligatoriske felt", + "PRIVATEKEY_REQUIRED": "Obligatoriske felt", + "PROJECTID_REQUIRED": "Obligatoriske felt" }, - "HELP": {}, + "HELP": { + "LIST": "Kontakt managerliste som ble brukt til å knytte kontakter", + "MANDATORYDISPOSITION": "Obligatorisk disposisjon", + "MANDATORYDISPOSITIONPAUSEID": "Pause for bruk når obligatorisk disposisjon er aktivert", + "MOTIONPROXY": "Feltet må ha følgende format: : // [: ]. Eksempel: https: //X.Y.Z.W", + "NAME": "Bare tall, bokstaver og spesifikke tegn (._) støttes", + "RECEIVEURL": "Dette er den auto-genererte API-strengen du trenger å bruke for å motta meldingene i kontoen din fra leverandøren av WhatsApp Connector (POST-metoden må brukes): klikk på utklippstavleknappen for å kopiere den", + "WELCOMEMESSAGE": "Dette er den første svarmeldingen som er sendt til nye interaksjoner" + }, + "ACCESSKEYID": "Tilgangsnøkkel-ID", + "ACCOUNTSID": "Konto SID", + "ACTIONS": "handlinger", + "ADD_NOTE": "Legge til notat", "ADD_WHATSAPPACCOUNT": "Legg til", "ADD_WHATSAPPCANNEDANSWER": "Legg til hermetisert svar", "ADD_WHATSAPPDISPOSITION": "Legg til WhatsApp Disposition", "ADD_WHATSAPPQUEUE": "Legg til WhatsApp-kø", + "ADVANCED": "Avansert", + "AGENT": "Middel", "AGENTADD_QUEUE": "Legg agent til WhatsApp-køen", "AGENTADD_WHATSAPPACCOUNT": "Legg agent til WhatsApp-konto", "AGENTADD_WHATSAPPQUEUE": "Legg agent til WhatsApp-køen", + "AGENTS": "agenter", + "AGENTSADD_QUEUE": "Legg til agenter i WhatsApp-køen", + "AGENTTRANSFER": "Agentoverføring", + "AGENTTRANSFERTIMEOUT": "Agentoverføringstid", + "AGENT_TIMEOUT": "Agent Timeout", + "ALL": "Alle", + "ALL_AGENTS": "Alle agenter", + "ALL_TEAMS": "Alle lag", + "AMAZONLEX": "AmazonLex", "AUTHTOKEN": "Autentisk token", + "AUTOREPLY": "Automatisk svar", + "BACK": "Tilbake", + "BOTNAME": "Bot Navn", + "BUSY": "Travelt", + "CANNEDANSWERS": "Hermetiske svar", + "CANNED_ANSWER_NOT_FOUND": "Ingen hermetiske svar ble funnet", + "CANNED_ANSWER_SEARCH": "Skriv inn en tekst for å søke i et hermetisert svar", + "CAPACITY": "Kapasitet", + "CLOSE": "Lukk", + "CLOSED": "Lukket", + "CLOSEMETHOD": "Lukk metoden", + "CLOSEURL": "Lukk URL", + "COMMAND": "Kommando", + "CONDITION": "Tilstand", + "CONTACT": "Kontakt", + "CREATED_AT": "Opprettet kl", + "DEFAULT_PAUSE": "DEFAULT PAUSE", + "DELETE": "Slett", + "DELETE_INTERACTION": "Slett samhandling", + "DELETE_SELECTED": "Slett valgte", "DELETE_WHATSAPPACCOUNT": "Slett WhatsApp-konto", "DELETE_WHATSAPPCANNEDANSWER": "Slettet", "DELETE_WHATSAPPDISPOSITION": "Slett WhatsApp-disposisjon", "DELETE_WHATSAPPQUEUE": "Slett WhatsApp-kø", + "DESCRIPTION": "Beskrivelse", + "DIALOGFLOW": "DialogFlow", + "DISPOSITION": "Disposisjon", + "DISPOSITIONS": "disposisjoner", + "DOWNLOAD_INTERACTION": "nedlasting", + "DOWNLOAD_WITHOUT_ATTACHMENTS": "Last ned uten vedlegg", + "DOWNLOAD_WITH_ATTACHMENTS": "Last ned med vedlegg", + "EDIT_AGENT": "Rediger agent", + "EDIT_AMAZONLEX": "Rediger Lex-konfigurasjonen", + "EDIT_AUTOREPLY": "Rediger autosvar", + "EDIT_CLOSE": "Rediger Lukk", + "EDIT_DIALOGFLOW": "Rediger DialogFlow-konfigurasjon", + "EDIT_GOTOIF": "Rediger Gotoif", + "EDIT_GOTOP": "Rediger Gotop", + "EDIT_NOOP": "Rediger Noop", + "EDIT_QUEUE": "Rediger kø", + "EDIT_SYSTEM": "Rediger system", + "EDIT_TAG": "Rediger tag", "EDIT_WHATSAPPACCOUNT": "Rediger WhatsApp-konto", "EDIT_WHATSAPPCANNEDANSWER": "Redigere", "EDIT_WHATSAPPDISPOSITION": "Rediger WhatsApp Disposition", "EDIT_WHATSAPPQUEUE": "Rediger WhatsApp-kø", + "FALSEPRIORITY": "Falsk prioritet", + "GENERAL": "Generell", + "GOTOIF": "Gotoif", + "GOTOP": "Gotop", "GOTOREALTIME_WHATSAPPQUEUE": "Gå til WhatsApp-kø i sanntid", "GO_TO_WHATSAPPACCOUNTS": "Gå til konto", + "ID": "id", + "IDLE": "Tomgang", + "INSERT_MESSAGE_HERE": "Sett inn melding her", + "INTERACTIONS": "interaksjoner", "INTERACTIONS_WHATSAPPACCOUNT": "Gå til interaksjoner", + "KEY": "Nøkkel", + "LANGUAGE": "Språk", + "LASTMESSAGE": "Siste melding", + "LEXREGION": "Region", + "LIST": "Liste", + "LOGGED_IN": "Logget inn (SIP-tilkoblet)", + "LOGIN_TIME": "Innloggingstid", + "LOGOUT": "Logg ut", + "MANDATORYDISPOSITION": "Obligatorisk disposisjon", + "MANDATORYDISPOSITIONPAUSEID": "Pause for bruk når obligatorisk disposisjon er aktivert", + "MORE": "Mer", + "MOTIONPROXY": "Proxy- eller bevegelsesdomener", "MULTI_SELECT_TOGGLE": "Multivalg veksle", + "NAME": "Navn", "NEW_WHATSAPPACCOUNT": "Ny WhatsApp-konto", "NEW_WHATSAPPCANNEDANSWER": "Nytt WhatsApp hermetisert svar", "NEW_WHATSAPPDISPOSITION": "Ny WhatsApp disposisjon", "NEW_WHATSAPPQUEUE": "Ny WhatsApp-kø", + "NOOP": "Noop", + "NOTE": "Merk", + "NOTIFICATION": "Melding", + "NOTIFICATIONSHAKE": "Riste", + "NOTIFICATIONSOUND": "Lyd", + "NOTIFICATIONTEMPLATE": "Mal", + "NO_AGENT_ONLINE": "Ingen agent på nettet", + "NO_AVAILABLE_INFO": "Ingen tilgjengelig informasjon", + "NO_INTERACTION_AVAILABLE": "Ingen interaksjoner tilgjengelig", "NO_WHATSAPPCANNEDANSWER_AVAILABLE": "Ingen WhatsApp hermetiserte svar tilgjengelig", "NO_WHATSAPPDISPOSITION_AVAILABLE": "Ingen WhatsApp-disposisjoner tilgjengelig", "NO_WHATSAPP_ACCOUNTS_AVAILABLE": "Ingen WhatsApp-kontoer tilgjengelig", + "OF": "av", + "OPENED": "åpnet", + "PAGE": "Side", + "PARTIALPAUSE": "Delvis pause", + "PAUSE": "Pause", + "PAUSED": "pauset", + "PAUSE_TIME": "Pause tid", + "PHONE": "telefon", + "PRIORITY": "Prioritet", + "PROXY": "proxy", + "QUEUE": "Kø", + "QUEUES": "køer", + "QUEUETRANSFER": "Køoverføring", + "QUEUETRANSFERTIMEOUT": "Timeout for overføring av kø", + "READY": "Klar", + "REALTIME": "Realtime", + "RECEIVEURL": "Motta URL", + "REFRESH_INTERACTIONS": "Oppdater interaksjoner", "REMOTE": "Remote", + "ROWSPERPAGE": "Rader per side", + "SAVE": "Lagre", + "SCREENRECORDING": "Administrer skjermopptak", + "SEARCH_FOR_ANYONE": "Søk", + "SECRETACCESSKEY": "Tilgang nøkkelhemmelighet", + "SELECTED": "valgt", + "SELECTED_AGENTS": "Utvalgte agenter", + "SELECTED_TEAMS": "Utvalgte lag", + "SELECT_ALL": "Velg alle", + "SELECT_NONE": "Velg ingen", + "SEND": "Sende", + "SETTINGS": "innstillinger", + "SPYINTERACTION": "Spioninteraksjon", + "STARTEDAT": "Startet kl", + "START_SCREENRECORDING": "Start skjermopptak", + "STATUS": "Status", + "STOP_SCREENRECORDING": "Stopp skjermopptak", + "STRATEGY": "Strategi", + "SYSTEM": "System", + "TAG": "stikkord", + "TAGS": "Tags", "TEAMADD_WHATSAPPQUEUE": "Legg team til WhatsApp-køen", + "TEAMS_ASSOCIATION": "Lagforening", + "TEXT": "Tekst", + "TIMEOUT": "Pause", + "TIMER": "Timer", + "TIMES": "ganger", + "TO": "Til", + "TOKEN": "pollett", + "TOOLTIP_SCREENRECORDING_OFF": "Skjermopptak tilgjengelig", + "TOOLTIP_SCREENRECORDING_ON": "Skjermopptak pågår", + "TRANSFER": "Overføre", + "TRUEPRIORITY": "Ekte prioritet", + "TYPE": "Type", + "UNPAUSE": "Sluttpause", + "VALUE": "Verdi", + "VARIABLE": "variabel", + "WAITFORTHEASSIGNEDAGENT": "Vent til den tildelte agenten", + "WAITING": "Venter", + "WELCOMEMESSAGE": "Velkomstmelding", + "WHATSAPP": "WhatsApp-kontakt", "WHATSAPPACCOUNTS": "WhatsApp-kontoer", "WHATSAPPCANNEDANSWERS": "WhatsApp hermetiserte svar", "WHATSAPPDISPOSITIONS": "WhatsApp-disposisjoner", - "WHATSAPPQUEUES": "WhatsApp-køer" + "WHATSAPPQUEUES": "WhatsApp-køer", + "CLIENTEMAIL": "Klientens e-post", + "DIALOGFLOWV2": "Dialogflow V2", + "EDIT_DIALOGFLOWV2": "Rediger Dialogflow V2", + "PRIVATEKEY": "Privat nøkkel", + "PROJECTID": "Prosjekt-ID" } } diff --git a/public/app/main/apps/whatsapp/i18n/pl.json b/public/app/main/apps/whatsapp/i18n/pl.json index 00cfb4f..da5dad6 100644 --- a/public/app/main/apps/whatsapp/i18n/pl.json +++ b/public/app/main/apps/whatsapp/i18n/pl.json @@ -1,47 +1,244 @@ { "WHATSAPP": { "ERRORS": { + "ACCESSKEYID_REQUIRED": "Pole obowiązkowe", + "ACCOUNTSID_REQUIRED": "Pole obowiązkowe", + "AGENTTRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Wartość musi być większa lub równa", + "AGENTTRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Wartość musi być mniejsza lub równa", + "AGENTTRANSFERTIMEOUT_REQUIRED": "Pole obowiązkowe", + "AGENT_REQUIRED": "Pole obowiązkowe", + "AGENT_TIMEOUT_REQUIRED": "Pole obowiązkowe", + "AUTHTOKEN_REQUIRED": "Pole obowiązkowe", + "BOTNAME_REQUIRED": "Pole obowiązkowe", + "COMMAND_REQUIRED": "Pole obowiązkowe", + "CONDITION_REQUIRED": "Pole obowiązkowe", "DESCRIPTION_REQUIRED": "Pole obowiązkowe", + "DISPOSITION_REQUIRED": "Pole obowiązkowe", + "FALSEPRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Wartość musi być większa lub równa", + "FALSEPRIORITY_REQUIRED": "Pole obowiązkowe", + "KEY_MAX_LENGTH": "Wartość musi mieć maksymalną długość równą {{max}}", + "KEY_REQUIRED": "Pole obowiązkowe", "LANGUAGE_REQUIRED": "Pole Mandtory", "LEXREGION_REQUIRED": "Pole obowiązkowe", + "LIST_REQUIRED": "Pole obowiązkowe", + "MANDATORYDISPOSITIONPAUSEID_REQUIRED": "Pole obowiązkowe", + "NAME_REQUIRED": "Pole obowiązkowe", + "PHONE_REQUIRED": "Pole obowiązkowe", + "PRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Wartość musi być większa lub równa", + "PRIORITY_REQUIRED": "Pole obowiązkowe", + "QUEUETRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Wartość musi być większa lub równa", + "QUEUETRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Wartość musi być mniejsza lub równa", + "QUEUETRANSFERTIMEOUT_REQUIRED": "Pole obowiązkowe", + "QUEUE_REQUIRED": "Pole obowiązkowe", + "SECRETACCESSKEY_REQUIRED": "Pole obowiązkowe", + "TAG_REQUIRED": "Pole obowiązkowe", + "TEXT_REQUIRED": "Pole obowiązkowe", + "TIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Wartość musi być większa lub równa", + "TIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Wartość musi być mniejsza lub równa", + "TIMEOUT_REQUIRED": "Pole obowiązkowe", "TIMES_REQUIRED": "Pole obowiązkowe", + "TOKEN_REQUIRED": "Pole obowiązkowe", + "TRUEPRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Wartość musi być większa lub równa", + "TRUEPRIORITY_REQUIRED": "Pole obowiązkowe", + "TYPE_REQUIRED": "Pole obowiązkowe", + "VALUE_REQUIRED": "Pole obowiązkowe", "VARIABLE_REQUIRED": "Pole obowiązkowe", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Wartość musi być większa lub równa", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Wartość musi być mniejsza lub równa", + "WAITFORTHEASSIGNEDAGENT_REQUIRED": "Pole obowiązkowe", "WELCOMEMESSAGE_MAX_LENGTH": "Wartość musi mieć maksymalną długość równą {{max}}", - "WELCOMEMESSAGE_REQUIRED": "Pole obowiązkowe" + "WELCOMEMESSAGE_REQUIRED": "Pole obowiązkowe", + "CLIENTEMAIL_REQUIRED": "Pole obowiązkowe", + "PRIVATEKEY_REQUIRED": "Pole obowiązkowe", + "PROJECTID_REQUIRED": "Pole obowiązkowe" }, - "HELP": {}, + "HELP": { + "LIST": "Lista menedżera kontaktów używana do kojarzenia kontaktów", + "MANDATORYDISPOSITION": "Obowiązkowa dyspozycja", + "MANDATORYDISPOSITIONPAUSEID": "Wstrzymaj, aby użyć, gdy włączona jest dyspozycja obowiązkowa", + "MOTIONPROXY": "Pole musi mieć następujący format: : // [: ]. Przykład: https: //X.Y.Z.W", + "NAME": "Obsługiwane są tylko cyfry, litery i określone znaki (._)", + "RECEIVEURL": "To jest automatycznie generowany ciąg API, którego potrzebujesz, aby otrzymywać wiadomości wewnątrz swojego konta od dostawcy WhatsApp Connector (należy użyć metody POST): kliknij przycisk schowka, aby go skopiować", + "WELCOMEMESSAGE": "To jest pierwsza wiadomość z odpowiedzią wysłana do nowych interakcji" + }, + "ACCESSKEYID": "Identyfikator klucza dostępu", + "ACCOUNTSID": "Identyfikator SID konta", + "ACTIONS": "działania", + "ADD_NOTE": "Dodaj notatkę", "ADD_WHATSAPPACCOUNT": "Dodaj", "ADD_WHATSAPPCANNEDANSWER": "Dodaj gotową odpowiedź", "ADD_WHATSAPPDISPOSITION": "Dodaj dyspozycję WhatsApp", "ADD_WHATSAPPQUEUE": "Dodaj kolejkę WhatsApp", + "ADVANCED": "zaawansowane", + "AGENT": "Agent", "AGENTADD_QUEUE": "Dodaj agenta do kolejki WhatsApp", "AGENTADD_WHATSAPPACCOUNT": "Dodaj agenta do konta WhatsApp", "AGENTADD_WHATSAPPQUEUE": "Dodaj agenta do kolejki WhatsApp", + "AGENTS": "Agenci", + "AGENTSADD_QUEUE": "Dodaj agentów do kolejki WhatsApp", + "AGENTTRANSFER": "Transfer agenta", + "AGENTTRANSFERTIMEOUT": "Limit czasu transferu agenta", + "AGENT_TIMEOUT": "Limit czasu agenta", + "ALL": "Wszystko", + "ALL_AGENTS": "Wszyscy agenci", + "ALL_TEAMS": "Wszystkie zespoły", + "AMAZONLEX": "AmazonLex", "AUTHTOKEN": "Auth Token", + "AUTOREPLY": "Automatyczna odpowiedź", + "BACK": "Plecy", + "BOTNAME": "Nazwa bota", + "BUSY": "Zajęty", + "CANNEDANSWERS": "Gotowe odpowiedzi", + "CANNED_ANSWER_NOT_FOUND": "Nie znaleziono gotowych odpowiedzi", + "CANNED_ANSWER_SEARCH": "Wprowadź tekst, aby wyszukać gotową odpowiedź", + "CAPACITY": "Pojemność", + "CLOSE": "Blisko", + "CLOSED": "Zamknięte", + "CLOSEMETHOD": "Zamknij metodę", + "CLOSEURL": "Zamknij adres URL", + "COMMAND": "Komenda", + "CONDITION": "Stan: schorzenie", + "CONTACT": "Kontakt", + "CREATED_AT": "Utworzono w", + "DEFAULT_PAUSE": "DOMYŚLNA PAUZA", + "DELETE": "Usunąć", + "DELETE_INTERACTION": "Usuń interakcję", + "DELETE_SELECTED": "Usuń zaznaczone", "DELETE_WHATSAPPACCOUNT": "Usuń konto WhatsApp", "DELETE_WHATSAPPCANNEDANSWER": "Usunięto", "DELETE_WHATSAPPDISPOSITION": "Usuń dyspozycję WhatsApp", "DELETE_WHATSAPPQUEUE": "Usuń kolejkę WhatsApp", + "DESCRIPTION": "Opis", + "DIALOGFLOW": "DialogFlow", + "DISPOSITION": "Usposobienie", + "DISPOSITIONS": "Dyspozycje", + "DOWNLOAD_INTERACTION": "Pobieranie", + "DOWNLOAD_WITHOUT_ATTACHMENTS": "Pobierz bez załączników", + "DOWNLOAD_WITH_ATTACHMENTS": "Pobierz z załącznikami", + "EDIT_AGENT": "Edytuj agenta", + "EDIT_AMAZONLEX": "Edytuj konfigurację Lex", + "EDIT_AUTOREPLY": "Edytuj automatyczną odpowiedź", + "EDIT_CLOSE": "Edytuj Zamknij", + "EDIT_DIALOGFLOW": "Edytuj konfigurację DialogFlow", + "EDIT_GOTOIF": "Edytuj Gotoif", + "EDIT_GOTOP": "Edytuj Gotop", + "EDIT_NOOP": "Edytuj Noop", + "EDIT_QUEUE": "Edytuj kolejkę", + "EDIT_SYSTEM": "Edytuj system", + "EDIT_TAG": "Edytuj tag", "EDIT_WHATSAPPACCOUNT": "Edytuj konto WhatsApp", "EDIT_WHATSAPPCANNEDANSWER": "Edytować", "EDIT_WHATSAPPDISPOSITION": "Edytuj dyspozycję WhatsApp", "EDIT_WHATSAPPQUEUE": "Edytuj kolejkę WhatsApp", + "FALSEPRIORITY": "Fałszywy priorytet", + "GENERAL": "Generał", + "GOTOIF": "Gotoif", + "GOTOP": "Gotop", "GOTOREALTIME_WHATSAPPQUEUE": "Przejdź do kolejki WhatsApp w czasie rzeczywistym", "GO_TO_WHATSAPPACCOUNTS": "Przejdź do konta", + "ID": "ID", + "IDLE": "Bezczynny", + "INSERT_MESSAGE_HERE": "Tutaj wstaw wiadomość", + "INTERACTIONS": "Interakcje", "INTERACTIONS_WHATSAPPACCOUNT": "Przejdź do interakcji", + "KEY": "Klucz", + "LANGUAGE": "Język", + "LASTMESSAGE": "Ostatnia wiadomość", + "LEXREGION": "Region", + "LIST": "Lista", + "LOGGED_IN": "Zalogowano (połączenie SIP)", + "LOGIN_TIME": "Czas logowania", + "LOGOUT": "Wyloguj", + "MANDATORYDISPOSITION": "Obowiązkowa dyspozycja", + "MANDATORYDISPOSITIONPAUSEID": "Wstrzymaj, aby użyć, gdy włączona jest dyspozycja obowiązkowa", + "MORE": "Więcej", + "MOTIONPROXY": "Proxy lub domena ruchu", "MULTI_SELECT_TOGGLE": "Przełącznik wyboru wielokrotnego", + "NAME": "Imię", "NEW_WHATSAPPACCOUNT": "Nowe konto WhatsApp", "NEW_WHATSAPPCANNEDANSWER": "Nowa odpowiedź w puszkach WhatsApp", "NEW_WHATSAPPDISPOSITION": "Nowa dyspozycja WhatsApp", "NEW_WHATSAPPQUEUE": "Nowa kolejka WhatsApp", + "NOOP": "Noop", + "NOTE": "Uwaga", + "NOTIFICATION": "Powiadomienie", + "NOTIFICATIONSHAKE": "Potrząsnąć", + "NOTIFICATIONSOUND": "Dźwięk", + "NOTIFICATIONTEMPLATE": "Szablon", + "NO_AGENT_ONLINE": "Brak agenta online", + "NO_AVAILABLE_INFO": "Brak dostępnych informacji", + "NO_INTERACTION_AVAILABLE": "Brak dostępnych interakcji", "NO_WHATSAPPCANNEDANSWER_AVAILABLE": "Brak dostępnych gotowych odpowiedzi WhatsApp", "NO_WHATSAPPDISPOSITION_AVAILABLE": "Brak dostępnych dyspozycji WhatsApp", "NO_WHATSAPP_ACCOUNTS_AVAILABLE": "Brak dostępnych kont WhatsApp", + "OF": "z", + "OPENED": "Otwierany", + "PAGE": "Strona", + "PARTIALPAUSE": "Częściowa pauza", + "PAUSE": "Pauza", + "PAUSED": "Wstrzymano", + "PAUSE_TIME": "Czas przerwy", + "PHONE": "Telefon", + "PRIORITY": "Priorytet", + "PROXY": "Pełnomocnik", + "QUEUE": "Kolejka", + "QUEUES": "Kolejki", + "QUEUETRANSFER": "Transfer kolejki", + "QUEUETRANSFERTIMEOUT": "Limit czasu transferu kolejki", + "READY": "Gotowy", + "REALTIME": "Czas rzeczywisty", + "RECEIVEURL": "Odbierz URL", + "REFRESH_INTERACTIONS": "Odśwież interakcje", "REMOTE": "Zdalny", + "ROWSPERPAGE": "Wiersze na stronę", + "SAVE": "Zapisać", + "SCREENRECORDING": "Zarządzaj nagrywaniem ekranu", + "SEARCH_FOR_ANYONE": "Szukaj", + "SECRETACCESSKEY": "Klucz dostępu do klucza tajnego", + "SELECTED": "Wybrany", + "SELECTED_AGENTS": "Wybrani agenci", + "SELECTED_TEAMS": "Wybrane zespoły", + "SELECT_ALL": "Zaznacz wszystko", + "SELECT_NONE": "Nie wybieraj żadnego", + "SEND": "Wysłać", + "SETTINGS": "Ustawienia", + "SPYINTERACTION": "Szpieg Interakcja", + "STARTEDAT": "Zaczęło się o", + "START_SCREENRECORDING": "Rozpocznij nagrywanie ekranu", + "STATUS": "Status", + "STOP_SCREENRECORDING": "Zatrzymaj nagrywanie ekranu", + "STRATEGY": "Strategia", + "SYSTEM": "System", + "TAG": "Etykietka", + "TAGS": "Tagi", "TEAMADD_WHATSAPPQUEUE": "Dodaj zespół do kolejki WhatsApp", + "TEAMS_ASSOCIATION": "Stowarzyszenie Drużyn", + "TEXT": "Tekst", + "TIMEOUT": "Koniec czasu", + "TIMER": "Regulator czasowy", + "TIMES": "Czasy", + "TO": "Do", + "TOKEN": "Znak", + "TOOLTIP_SCREENRECORDING_OFF": "Dostępne nagrywanie ekranu", + "TOOLTIP_SCREENRECORDING_ON": "Trwa nagrywanie ekranu", + "TRANSFER": "Transfer", + "TRUEPRIORITY": "Prawdziwy priorytet", + "TYPE": "Rodzaj", + "UNPAUSE": "Koniec Pauza", + "VALUE": "Wartość", + "VARIABLE": "Zmienna", + "WAITFORTHEASSIGNEDAGENT": "Poczekaj na przypisanego agenta", + "WAITING": "Czekanie", + "WELCOMEMESSAGE": "Wiadomość powitalna", + "WHATSAPP": "Złącze WhatsApp", "WHATSAPPACCOUNTS": "Konta WhatsApp", "WHATSAPPCANNEDANSWERS": "Odpowiedzi w puszkach WhatsApp", "WHATSAPPDISPOSITIONS": "Dyspozycje WhatsApp", - "WHATSAPPQUEUES": "Kolejki WhatsApp" + "WHATSAPPQUEUES": "Kolejki WhatsApp", + "CLIENTEMAIL": "E-mail klienta", + "DIALOGFLOWV2": "Dialogflow V2", + "EDIT_DIALOGFLOWV2": "Edytuj Dialogflow V2", + "PRIVATEKEY": "Prywatny klucz", + "PROJECTID": "Identyfikator projektu" } } diff --git a/public/app/main/apps/whatsapp/i18n/pt-BR.json b/public/app/main/apps/whatsapp/i18n/pt-BR.json index 65aa09c..ec3412a 100644 --- a/public/app/main/apps/whatsapp/i18n/pt-BR.json +++ b/public/app/main/apps/whatsapp/i18n/pt-BR.json @@ -1,47 +1,244 @@ { "WHATSAPP": { "ERRORS": { + "ACCESSKEYID_REQUIRED": "Campo Obrigatório", + "ACCOUNTSID_REQUIRED": "Campo Obrigatório", + "AGENTTRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "O valor deve ser maior ou igual a", + "AGENTTRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "O valor deve ser menor ou igual a", + "AGENTTRANSFERTIMEOUT_REQUIRED": "Campo Obrigatório", + "AGENT_REQUIRED": "Campo Obrigatório", + "AGENT_TIMEOUT_REQUIRED": "Campo Obrigatório", + "AUTHTOKEN_REQUIRED": "Campo Obrigatório", + "BOTNAME_REQUIRED": "Campo Obrigatório", + "COMMAND_REQUIRED": "Campo Obrigatório", + "CONDITION_REQUIRED": "Campo Obrigatório", "DESCRIPTION_REQUIRED": "Campo Obrigatório", + "DISPOSITION_REQUIRED": "Campo Obrigatório", + "FALSEPRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "O valor deve ser maior ou igual a", + "FALSEPRIORITY_REQUIRED": "Campo Obrigatório", + "KEY_MAX_LENGTH": "O valor deve ter um comprimento máximo igual a {{max}}", + "KEY_REQUIRED": "Campo Obrigatório", "LANGUAGE_REQUIRED": "Campo Mandtório", "LEXREGION_REQUIRED": "Campo Obrigatório", + "LIST_REQUIRED": "Campo Obrigatório", + "MANDATORYDISPOSITIONPAUSEID_REQUIRED": "Campo Obrigatório", + "NAME_REQUIRED": "Campo Obrigatório", + "PHONE_REQUIRED": "Campo Obrigatório", + "PRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "O valor deve ser maior ou igual a", + "PRIORITY_REQUIRED": "Campo Obrigatório", + "QUEUETRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "O valor deve ser maior ou igual a", + "QUEUETRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "O valor deve ser menor ou igual a", + "QUEUETRANSFERTIMEOUT_REQUIRED": "Campo Obrigatório", + "QUEUE_REQUIRED": "Campo Obrigatório", + "SECRETACCESSKEY_REQUIRED": "Campo Obrigatório", + "TAG_REQUIRED": "Campo Obrigatório", + "TEXT_REQUIRED": "Campo Obrigatório", + "TIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "O valor deve ser maior ou igual a", + "TIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "O valor deve ser menor ou igual a", + "TIMEOUT_REQUIRED": "Campo Obrigatório", "TIMES_REQUIRED": "Campo Obrigatório", + "TOKEN_REQUIRED": "Campo Obrigatório", + "TRUEPRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "O valor deve ser maior ou igual a", + "TRUEPRIORITY_REQUIRED": "Campo Obrigatório", + "TYPE_REQUIRED": "Campo Obrigatório", + "VALUE_REQUIRED": "Campo Obrigatório", "VARIABLE_REQUIRED": "Campo Obrigatório", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "O valor deve ser maior ou igual a", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "O valor deve ser menor ou igual a", + "WAITFORTHEASSIGNEDAGENT_REQUIRED": "Campo Obrigatório", "WELCOMEMESSAGE_MAX_LENGTH": "O valor deve ter um comprimento máximo igual a {{max}}", - "WELCOMEMESSAGE_REQUIRED": "Campo Obrigatório" + "WELCOMEMESSAGE_REQUIRED": "Campo Obrigatório", + "CLIENTEMAIL_REQUIRED": "Campo Obrigatório", + "PRIVATEKEY_REQUIRED": "Campo Obrigatório", + "PROJECTID_REQUIRED": "Campo Obrigatório" }, - "HELP": {}, + "HELP": { + "LIST": "Lista do gerenciador de contatos usada para associar contatos", + "MANDATORYDISPOSITION": "Disposição obrigatória", + "MANDATORYDISPOSITIONPAUSEID": "Faça uma pausa para usar quando a disposição obrigatória estiver habilitada", + "MOTIONPROXY": "O campo deve ter o seguinte formato: : // [: ]. Exemplo: https: //X.Y.Z.W", + "NAME": "Apenas números, letras e caracteres específicos (._) são suportados", + "RECEIVEURL": "Esta é a string de API gerada automaticamente que você precisa usar para receber as mensagens dentro de sua conta do provedor WhatsApp Connector (o método POST deve ser usado): clique no botão da área de transferência para copiá-la", + "WELCOMEMESSAGE": "Esta é a primeira mensagem de resposta enviada para novas interações" + }, + "ACCESSKEYID": "ID da chave de acesso", + "ACCOUNTSID": "SID da conta", + "ACTIONS": "Ações", + "ADD_NOTE": "Adicionar nota", "ADD_WHATSAPPACCOUNT": "Adicionar", "ADD_WHATSAPPCANNEDANSWER": "Adicionar resposta automática", "ADD_WHATSAPPDISPOSITION": "Adicionar disposição do WhatsApp", "ADD_WHATSAPPQUEUE": "Adicionar fila WhatsApp", + "ADVANCED": "Avançado", + "AGENT": "Agente", "AGENTADD_QUEUE": "Adicionar agente à fila de WhatsApp", "AGENTADD_WHATSAPPACCOUNT": "Adicionar agente à conta do WhatsApp", "AGENTADD_WHATSAPPQUEUE": "Adicionar agente à fila de WhatsApp", + "AGENTS": "Agentes", + "AGENTSADD_QUEUE": "Adicionar agentes à fila do WhatsApp", + "AGENTTRANSFER": "Transferência de Agente", + "AGENTTRANSFERTIMEOUT": "Tempo limite de transferência do agente", + "AGENT_TIMEOUT": "Tempo Limite do Agente", + "ALL": "Tudo", + "ALL_AGENTS": "Todos os Agentes", + "ALL_TEAMS": "Todas as equipes", + "AMAZONLEX": "AmazonLex", "AUTHTOKEN": "Token de autenticação", + "AUTOREPLY": "Resposta automatica", + "BACK": "Costas", + "BOTNAME": "Nome do bot", + "BUSY": "Ocupado", + "CANNEDANSWERS": "Respostas enlatadas", + "CANNED_ANSWER_NOT_FOUND": "Nenhuma resposta automática foi encontrada", + "CANNED_ANSWER_SEARCH": "Insira um texto para pesquisar uma resposta automática", + "CAPACITY": "Capacidade", + "CLOSE": "Perto", + "CLOSED": "Fechadas", + "CLOSEMETHOD": "Método Fechar", + "CLOSEURL": "Fechar URL", + "COMMAND": "Comando", + "CONDITION": "Doença", + "CONTACT": "Contato", + "CREATED_AT": "Criado em", + "DEFAULT_PAUSE": "PAUSA PADRÃO", + "DELETE": "Excluir", + "DELETE_INTERACTION": "Excluir interação", + "DELETE_SELECTED": "Excluir selecionado", "DELETE_WHATSAPPACCOUNT": "Excluir conta WhatsApp", "DELETE_WHATSAPPCANNEDANSWER": "Excluído", "DELETE_WHATSAPPDISPOSITION": "Excluir disposição do WhatsApp", "DELETE_WHATSAPPQUEUE": "Excluir fila do WhatsApp", + "DESCRIPTION": "Descrição", + "DIALOGFLOW": "DialogFlow", + "DISPOSITION": "Disposição", + "DISPOSITIONS": "Disposições", + "DOWNLOAD_INTERACTION": "Baixar", + "DOWNLOAD_WITHOUT_ATTACHMENTS": "Baixar sem anexos", + "DOWNLOAD_WITH_ATTACHMENTS": "Baixar com anexos", + "EDIT_AGENT": "Editar Agente", + "EDIT_AMAZONLEX": "Editar configuração Lex", + "EDIT_AUTOREPLY": "Editar resposta automática", + "EDIT_CLOSE": "Editar Fechar", + "EDIT_DIALOGFLOW": "Editar configuração do DialogFlow", + "EDIT_GOTOIF": "Editar Gotoif", + "EDIT_GOTOP": "Editar Gotop", + "EDIT_NOOP": "Editar Noop", + "EDIT_QUEUE": "Editar fila", + "EDIT_SYSTEM": "Editar Sistema", + "EDIT_TAG": "Editar etiqueta", "EDIT_WHATSAPPACCOUNT": "Editar conta WhatsApp", "EDIT_WHATSAPPCANNEDANSWER": "Editar", "EDIT_WHATSAPPDISPOSITION": "Editar disposição do WhatsApp", "EDIT_WHATSAPPQUEUE": "Editar fila de WhatsApp", + "FALSEPRIORITY": "Falsa Prioridade", + "GENERAL": "Geral", + "GOTOIF": "Gotoif", + "GOTOP": "Seja o melhor", "GOTOREALTIME_WHATSAPPQUEUE": "Vá para a fila de WhatsApp em tempo real", "GO_TO_WHATSAPPACCOUNTS": "Ir para a conta", + "ID": "Eu iria", + "IDLE": "Ocioso", + "INSERT_MESSAGE_HERE": "Insira a mensagem aqui", + "INTERACTIONS": "Interações", "INTERACTIONS_WHATSAPPACCOUNT": "Vá para Interações", + "KEY": "Chave", + "LANGUAGE": "Língua", + "LASTMESSAGE": "Última mensagem", + "LEXREGION": "Região", + "LIST": "Lista", + "LOGGED_IN": "Conectado (SIP conectado)", + "LOGIN_TIME": "Hora de Login", + "LOGOUT": "Sair", + "MANDATORYDISPOSITION": "Disposição Obrigatória", + "MANDATORYDISPOSITIONPAUSEID": "Faça uma pausa para usar quando a disposição obrigatória estiver habilitada", + "MORE": "Mais", + "MOTIONPROXY": "Domínio de proxy ou movimento", "MULTI_SELECT_TOGGLE": "Alternância de seleção múltipla", + "NAME": "Nome", "NEW_WHATSAPPACCOUNT": "Nova conta WhatsApp", "NEW_WHATSAPPCANNEDANSWER": "Nova resposta predeterminada do WhatsApp", "NEW_WHATSAPPDISPOSITION": "Nova disposição do WhatsApp", "NEW_WHATSAPPQUEUE": "Nova fila de WhatsApp", + "NOOP": "Noop", + "NOTE": "Nota", + "NOTIFICATION": "Notificação", + "NOTIFICATIONSHAKE": "Mexe", + "NOTIFICATIONSOUND": "Som", + "NOTIFICATIONTEMPLATE": "Modelo", + "NO_AGENT_ONLINE": "Nenhum agente online", + "NO_AVAILABLE_INFO": "Sem informações disponíveis", + "NO_INTERACTION_AVAILABLE": "Nenhuma interação disponível", "NO_WHATSAPPCANNEDANSWER_AVAILABLE": "Nenhuma resposta automática do WhatsApp disponível", "NO_WHATSAPPDISPOSITION_AVAILABLE": "Nenhum dispositivo WhatsApp disponível", "NO_WHATSAPP_ACCOUNTS_AVAILABLE": "Nenhuma conta WhatsApp disponível", + "OF": "do", + "OPENED": "Aberto", + "PAGE": "Página", + "PARTIALPAUSE": "Pausa Parcial", + "PAUSE": "Pausa", + "PAUSED": "Em pausa", + "PAUSE_TIME": "Tempo de pausa", + "PHONE": "telefone", + "PRIORITY": "Prioridade", + "PROXY": "Proxy", + "QUEUE": "Fila", + "QUEUES": "Filas", + "QUEUETRANSFER": "Transferência de fila", + "QUEUETRANSFERTIMEOUT": "Tempo limite de transferência da fila", + "READY": "pronto", + "REALTIME": "Tempo real", + "RECEIVEURL": "Receber URL", + "REFRESH_INTERACTIONS": "Atualizar interações", "REMOTE": "Controlo remoto", + "ROWSPERPAGE": "Linhas por página", + "SAVE": "Salve ", + "SCREENRECORDING": "Gerenciar gravação de tela", + "SEARCH_FOR_ANYONE": "Procurar", + "SECRETACCESSKEY": "Chave secreta de acesso", + "SELECTED": "Selecionado", + "SELECTED_AGENTS": "Agentes Selecionados", + "SELECTED_TEAMS": "Times Selecionados", + "SELECT_ALL": "Selecionar tudo", + "SELECT_NONE": "Selecione nenhum", + "SEND": "Enviar", + "SETTINGS": "Configurações", + "SPYINTERACTION": "Interação de espião", + "STARTEDAT": "Começou às", + "START_SCREENRECORDING": "Iniciar gravação de tela", + "STATUS": "Status", + "STOP_SCREENRECORDING": "Parar a gravação da tela", + "STRATEGY": "Estratégia", + "SYSTEM": "Sistema", + "TAG": "Tag", + "TAGS": "Tag", "TEAMADD_WHATSAPPQUEUE": "Adicionar equipe à fila do WhatsApp", + "TEAMS_ASSOCIATION": "Associação de equipes", + "TEXT": "Texto", + "TIMEOUT": "Tempo esgotado", + "TIMER": "Cronômetro", + "TIMES": "Vezes", + "TO": "Para", + "TOKEN": "Símbolo", + "TOOLTIP_SCREENRECORDING_OFF": "Gravação de tela disponível", + "TOOLTIP_SCREENRECORDING_ON": "Gravação de tela em andamento", + "TRANSFER": "Transferir", + "TRUEPRIORITY": "Verdadeira prioridade", + "TYPE": "Tipo", + "UNPAUSE": "Fim da pausa", + "VALUE": "Valor", + "VARIABLE": "Variável", + "WAITFORTHEASSIGNEDAGENT": "Espere pelo agente atribuído", + "WAITING": "Esperando", + "WELCOMEMESSAGE": "Mensagem de boas-vindas", + "WHATSAPP": "Conector WhatsApp", "WHATSAPPACCOUNTS": "Contas WhatsApp", "WHATSAPPCANNEDANSWERS": "Respostas predeterminadas do WhatsApp", "WHATSAPPDISPOSITIONS": "Dispositivos do WhatsApp", - "WHATSAPPQUEUES": "WhatsApp Queues" + "WHATSAPPQUEUES": "WhatsApp Queues", + "CLIENTEMAIL": "Email do cliente", + "DIALOGFLOWV2": "Dialogflow V2", + "EDIT_DIALOGFLOWV2": "Editar Dialogflow V2", + "PRIVATEKEY": "Chave privada", + "PROJECTID": "ID do projeto" } } diff --git a/public/app/main/apps/whatsapp/i18n/pt-PT.json b/public/app/main/apps/whatsapp/i18n/pt-PT.json index 65aa09c..ec3412a 100644 --- a/public/app/main/apps/whatsapp/i18n/pt-PT.json +++ b/public/app/main/apps/whatsapp/i18n/pt-PT.json @@ -1,47 +1,244 @@ { "WHATSAPP": { "ERRORS": { + "ACCESSKEYID_REQUIRED": "Campo Obrigatório", + "ACCOUNTSID_REQUIRED": "Campo Obrigatório", + "AGENTTRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "O valor deve ser maior ou igual a", + "AGENTTRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "O valor deve ser menor ou igual a", + "AGENTTRANSFERTIMEOUT_REQUIRED": "Campo Obrigatório", + "AGENT_REQUIRED": "Campo Obrigatório", + "AGENT_TIMEOUT_REQUIRED": "Campo Obrigatório", + "AUTHTOKEN_REQUIRED": "Campo Obrigatório", + "BOTNAME_REQUIRED": "Campo Obrigatório", + "COMMAND_REQUIRED": "Campo Obrigatório", + "CONDITION_REQUIRED": "Campo Obrigatório", "DESCRIPTION_REQUIRED": "Campo Obrigatório", + "DISPOSITION_REQUIRED": "Campo Obrigatório", + "FALSEPRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "O valor deve ser maior ou igual a", + "FALSEPRIORITY_REQUIRED": "Campo Obrigatório", + "KEY_MAX_LENGTH": "O valor deve ter um comprimento máximo igual a {{max}}", + "KEY_REQUIRED": "Campo Obrigatório", "LANGUAGE_REQUIRED": "Campo Mandtório", "LEXREGION_REQUIRED": "Campo Obrigatório", + "LIST_REQUIRED": "Campo Obrigatório", + "MANDATORYDISPOSITIONPAUSEID_REQUIRED": "Campo Obrigatório", + "NAME_REQUIRED": "Campo Obrigatório", + "PHONE_REQUIRED": "Campo Obrigatório", + "PRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "O valor deve ser maior ou igual a", + "PRIORITY_REQUIRED": "Campo Obrigatório", + "QUEUETRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "O valor deve ser maior ou igual a", + "QUEUETRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "O valor deve ser menor ou igual a", + "QUEUETRANSFERTIMEOUT_REQUIRED": "Campo Obrigatório", + "QUEUE_REQUIRED": "Campo Obrigatório", + "SECRETACCESSKEY_REQUIRED": "Campo Obrigatório", + "TAG_REQUIRED": "Campo Obrigatório", + "TEXT_REQUIRED": "Campo Obrigatório", + "TIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "O valor deve ser maior ou igual a", + "TIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "O valor deve ser menor ou igual a", + "TIMEOUT_REQUIRED": "Campo Obrigatório", "TIMES_REQUIRED": "Campo Obrigatório", + "TOKEN_REQUIRED": "Campo Obrigatório", + "TRUEPRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "O valor deve ser maior ou igual a", + "TRUEPRIORITY_REQUIRED": "Campo Obrigatório", + "TYPE_REQUIRED": "Campo Obrigatório", + "VALUE_REQUIRED": "Campo Obrigatório", "VARIABLE_REQUIRED": "Campo Obrigatório", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "O valor deve ser maior ou igual a", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "O valor deve ser menor ou igual a", + "WAITFORTHEASSIGNEDAGENT_REQUIRED": "Campo Obrigatório", "WELCOMEMESSAGE_MAX_LENGTH": "O valor deve ter um comprimento máximo igual a {{max}}", - "WELCOMEMESSAGE_REQUIRED": "Campo Obrigatório" + "WELCOMEMESSAGE_REQUIRED": "Campo Obrigatório", + "CLIENTEMAIL_REQUIRED": "Campo Obrigatório", + "PRIVATEKEY_REQUIRED": "Campo Obrigatório", + "PROJECTID_REQUIRED": "Campo Obrigatório" }, - "HELP": {}, + "HELP": { + "LIST": "Lista do gerenciador de contatos usada para associar contatos", + "MANDATORYDISPOSITION": "Disposição obrigatória", + "MANDATORYDISPOSITIONPAUSEID": "Faça uma pausa para usar quando a disposição obrigatória estiver habilitada", + "MOTIONPROXY": "O campo deve ter o seguinte formato: : // [: ]. Exemplo: https: //X.Y.Z.W", + "NAME": "Apenas números, letras e caracteres específicos (._) são suportados", + "RECEIVEURL": "Esta é a string de API gerada automaticamente que você precisa usar para receber as mensagens dentro de sua conta do provedor WhatsApp Connector (o método POST deve ser usado): clique no botão da área de transferência para copiá-la", + "WELCOMEMESSAGE": "Esta é a primeira mensagem de resposta enviada para novas interações" + }, + "ACCESSKEYID": "ID da chave de acesso", + "ACCOUNTSID": "SID da conta", + "ACTIONS": "Ações", + "ADD_NOTE": "Adicionar nota", "ADD_WHATSAPPACCOUNT": "Adicionar", "ADD_WHATSAPPCANNEDANSWER": "Adicionar resposta automática", "ADD_WHATSAPPDISPOSITION": "Adicionar disposição do WhatsApp", "ADD_WHATSAPPQUEUE": "Adicionar fila WhatsApp", + "ADVANCED": "Avançado", + "AGENT": "Agente", "AGENTADD_QUEUE": "Adicionar agente à fila de WhatsApp", "AGENTADD_WHATSAPPACCOUNT": "Adicionar agente à conta do WhatsApp", "AGENTADD_WHATSAPPQUEUE": "Adicionar agente à fila de WhatsApp", + "AGENTS": "Agentes", + "AGENTSADD_QUEUE": "Adicionar agentes à fila do WhatsApp", + "AGENTTRANSFER": "Transferência de Agente", + "AGENTTRANSFERTIMEOUT": "Tempo limite de transferência do agente", + "AGENT_TIMEOUT": "Tempo Limite do Agente", + "ALL": "Tudo", + "ALL_AGENTS": "Todos os Agentes", + "ALL_TEAMS": "Todas as equipes", + "AMAZONLEX": "AmazonLex", "AUTHTOKEN": "Token de autenticação", + "AUTOREPLY": "Resposta automatica", + "BACK": "Costas", + "BOTNAME": "Nome do bot", + "BUSY": "Ocupado", + "CANNEDANSWERS": "Respostas enlatadas", + "CANNED_ANSWER_NOT_FOUND": "Nenhuma resposta automática foi encontrada", + "CANNED_ANSWER_SEARCH": "Insira um texto para pesquisar uma resposta automática", + "CAPACITY": "Capacidade", + "CLOSE": "Perto", + "CLOSED": "Fechadas", + "CLOSEMETHOD": "Método Fechar", + "CLOSEURL": "Fechar URL", + "COMMAND": "Comando", + "CONDITION": "Doença", + "CONTACT": "Contato", + "CREATED_AT": "Criado em", + "DEFAULT_PAUSE": "PAUSA PADRÃO", + "DELETE": "Excluir", + "DELETE_INTERACTION": "Excluir interação", + "DELETE_SELECTED": "Excluir selecionado", "DELETE_WHATSAPPACCOUNT": "Excluir conta WhatsApp", "DELETE_WHATSAPPCANNEDANSWER": "Excluído", "DELETE_WHATSAPPDISPOSITION": "Excluir disposição do WhatsApp", "DELETE_WHATSAPPQUEUE": "Excluir fila do WhatsApp", + "DESCRIPTION": "Descrição", + "DIALOGFLOW": "DialogFlow", + "DISPOSITION": "Disposição", + "DISPOSITIONS": "Disposições", + "DOWNLOAD_INTERACTION": "Baixar", + "DOWNLOAD_WITHOUT_ATTACHMENTS": "Baixar sem anexos", + "DOWNLOAD_WITH_ATTACHMENTS": "Baixar com anexos", + "EDIT_AGENT": "Editar Agente", + "EDIT_AMAZONLEX": "Editar configuração Lex", + "EDIT_AUTOREPLY": "Editar resposta automática", + "EDIT_CLOSE": "Editar Fechar", + "EDIT_DIALOGFLOW": "Editar configuração do DialogFlow", + "EDIT_GOTOIF": "Editar Gotoif", + "EDIT_GOTOP": "Editar Gotop", + "EDIT_NOOP": "Editar Noop", + "EDIT_QUEUE": "Editar fila", + "EDIT_SYSTEM": "Editar Sistema", + "EDIT_TAG": "Editar etiqueta", "EDIT_WHATSAPPACCOUNT": "Editar conta WhatsApp", "EDIT_WHATSAPPCANNEDANSWER": "Editar", "EDIT_WHATSAPPDISPOSITION": "Editar disposição do WhatsApp", "EDIT_WHATSAPPQUEUE": "Editar fila de WhatsApp", + "FALSEPRIORITY": "Falsa Prioridade", + "GENERAL": "Geral", + "GOTOIF": "Gotoif", + "GOTOP": "Seja o melhor", "GOTOREALTIME_WHATSAPPQUEUE": "Vá para a fila de WhatsApp em tempo real", "GO_TO_WHATSAPPACCOUNTS": "Ir para a conta", + "ID": "Eu iria", + "IDLE": "Ocioso", + "INSERT_MESSAGE_HERE": "Insira a mensagem aqui", + "INTERACTIONS": "Interações", "INTERACTIONS_WHATSAPPACCOUNT": "Vá para Interações", + "KEY": "Chave", + "LANGUAGE": "Língua", + "LASTMESSAGE": "Última mensagem", + "LEXREGION": "Região", + "LIST": "Lista", + "LOGGED_IN": "Conectado (SIP conectado)", + "LOGIN_TIME": "Hora de Login", + "LOGOUT": "Sair", + "MANDATORYDISPOSITION": "Disposição Obrigatória", + "MANDATORYDISPOSITIONPAUSEID": "Faça uma pausa para usar quando a disposição obrigatória estiver habilitada", + "MORE": "Mais", + "MOTIONPROXY": "Domínio de proxy ou movimento", "MULTI_SELECT_TOGGLE": "Alternância de seleção múltipla", + "NAME": "Nome", "NEW_WHATSAPPACCOUNT": "Nova conta WhatsApp", "NEW_WHATSAPPCANNEDANSWER": "Nova resposta predeterminada do WhatsApp", "NEW_WHATSAPPDISPOSITION": "Nova disposição do WhatsApp", "NEW_WHATSAPPQUEUE": "Nova fila de WhatsApp", + "NOOP": "Noop", + "NOTE": "Nota", + "NOTIFICATION": "Notificação", + "NOTIFICATIONSHAKE": "Mexe", + "NOTIFICATIONSOUND": "Som", + "NOTIFICATIONTEMPLATE": "Modelo", + "NO_AGENT_ONLINE": "Nenhum agente online", + "NO_AVAILABLE_INFO": "Sem informações disponíveis", + "NO_INTERACTION_AVAILABLE": "Nenhuma interação disponível", "NO_WHATSAPPCANNEDANSWER_AVAILABLE": "Nenhuma resposta automática do WhatsApp disponível", "NO_WHATSAPPDISPOSITION_AVAILABLE": "Nenhum dispositivo WhatsApp disponível", "NO_WHATSAPP_ACCOUNTS_AVAILABLE": "Nenhuma conta WhatsApp disponível", + "OF": "do", + "OPENED": "Aberto", + "PAGE": "Página", + "PARTIALPAUSE": "Pausa Parcial", + "PAUSE": "Pausa", + "PAUSED": "Em pausa", + "PAUSE_TIME": "Tempo de pausa", + "PHONE": "telefone", + "PRIORITY": "Prioridade", + "PROXY": "Proxy", + "QUEUE": "Fila", + "QUEUES": "Filas", + "QUEUETRANSFER": "Transferência de fila", + "QUEUETRANSFERTIMEOUT": "Tempo limite de transferência da fila", + "READY": "pronto", + "REALTIME": "Tempo real", + "RECEIVEURL": "Receber URL", + "REFRESH_INTERACTIONS": "Atualizar interações", "REMOTE": "Controlo remoto", + "ROWSPERPAGE": "Linhas por página", + "SAVE": "Salve ", + "SCREENRECORDING": "Gerenciar gravação de tela", + "SEARCH_FOR_ANYONE": "Procurar", + "SECRETACCESSKEY": "Chave secreta de acesso", + "SELECTED": "Selecionado", + "SELECTED_AGENTS": "Agentes Selecionados", + "SELECTED_TEAMS": "Times Selecionados", + "SELECT_ALL": "Selecionar tudo", + "SELECT_NONE": "Selecione nenhum", + "SEND": "Enviar", + "SETTINGS": "Configurações", + "SPYINTERACTION": "Interação de espião", + "STARTEDAT": "Começou às", + "START_SCREENRECORDING": "Iniciar gravação de tela", + "STATUS": "Status", + "STOP_SCREENRECORDING": "Parar a gravação da tela", + "STRATEGY": "Estratégia", + "SYSTEM": "Sistema", + "TAG": "Tag", + "TAGS": "Tag", "TEAMADD_WHATSAPPQUEUE": "Adicionar equipe à fila do WhatsApp", + "TEAMS_ASSOCIATION": "Associação de equipes", + "TEXT": "Texto", + "TIMEOUT": "Tempo esgotado", + "TIMER": "Cronômetro", + "TIMES": "Vezes", + "TO": "Para", + "TOKEN": "Símbolo", + "TOOLTIP_SCREENRECORDING_OFF": "Gravação de tela disponível", + "TOOLTIP_SCREENRECORDING_ON": "Gravação de tela em andamento", + "TRANSFER": "Transferir", + "TRUEPRIORITY": "Verdadeira prioridade", + "TYPE": "Tipo", + "UNPAUSE": "Fim da pausa", + "VALUE": "Valor", + "VARIABLE": "Variável", + "WAITFORTHEASSIGNEDAGENT": "Espere pelo agente atribuído", + "WAITING": "Esperando", + "WELCOMEMESSAGE": "Mensagem de boas-vindas", + "WHATSAPP": "Conector WhatsApp", "WHATSAPPACCOUNTS": "Contas WhatsApp", "WHATSAPPCANNEDANSWERS": "Respostas predeterminadas do WhatsApp", "WHATSAPPDISPOSITIONS": "Dispositivos do WhatsApp", - "WHATSAPPQUEUES": "WhatsApp Queues" + "WHATSAPPQUEUES": "WhatsApp Queues", + "CLIENTEMAIL": "Email do cliente", + "DIALOGFLOWV2": "Dialogflow V2", + "EDIT_DIALOGFLOWV2": "Editar Dialogflow V2", + "PRIVATEKEY": "Chave privada", + "PROJECTID": "ID do projeto" } } diff --git a/public/app/main/apps/whatsapp/i18n/ru.json b/public/app/main/apps/whatsapp/i18n/ru.json index ada34d3..87a083a 100644 --- a/public/app/main/apps/whatsapp/i18n/ru.json +++ b/public/app/main/apps/whatsapp/i18n/ru.json @@ -1,47 +1,244 @@ { "WHATSAPP": { "ERRORS": { + "ACCESSKEYID_REQUIRED": "Обязательное поле", + "ACCOUNTSID_REQUIRED": "Обязательное поле", + "AGENTTRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Значение должно быть больше или равно", + "AGENTTRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Значение должно быть меньше или равно", + "AGENTTRANSFERTIMEOUT_REQUIRED": "Обязательное поле", + "AGENT_REQUIRED": "Обязательное поле", + "AGENT_TIMEOUT_REQUIRED": "Обязательное поле", + "AUTHTOKEN_REQUIRED": "Обязательное поле", + "BOTNAME_REQUIRED": "Обязательное поле", + "COMMAND_REQUIRED": "Обязательное поле", + "CONDITION_REQUIRED": "Обязательное поле", "DESCRIPTION_REQUIRED": "Обязательное поле", + "DISPOSITION_REQUIRED": "Обязательное поле", + "FALSEPRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Значение должно быть больше или равно", + "FALSEPRIORITY_REQUIRED": "Обязательное поле", + "KEY_MAX_LENGTH": "Значение должно иметь максимальную длину, равную {{max}}.", + "KEY_REQUIRED": "Обязательное поле", "LANGUAGE_REQUIRED": "Обязательное поле", "LEXREGION_REQUIRED": "Обязательное поле", + "LIST_REQUIRED": "Обязательное поле", + "MANDATORYDISPOSITIONPAUSEID_REQUIRED": "Обязательное поле", + "NAME_REQUIRED": "Обязательное поле", + "PHONE_REQUIRED": "Обязательное поле", + "PRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Значение должно быть больше или равно", + "PRIORITY_REQUIRED": "Обязательное поле", + "QUEUETRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Значение должно быть больше или равно", + "QUEUETRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Значение должно быть меньше или равно", + "QUEUETRANSFERTIMEOUT_REQUIRED": "Обязательное поле", + "QUEUE_REQUIRED": "Обязательное поле", + "SECRETACCESSKEY_REQUIRED": "Обязательное поле", + "TAG_REQUIRED": "Обязательное поле", + "TEXT_REQUIRED": "Обязательное поле", + "TIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Значение должно быть больше или равно", + "TIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Значение должно быть меньше или равно", + "TIMEOUT_REQUIRED": "Обязательное поле", "TIMES_REQUIRED": "Обязательное поле", + "TOKEN_REQUIRED": "Обязательное поле", + "TRUEPRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Значение должно быть больше или равно", + "TRUEPRIORITY_REQUIRED": "Обязательное поле", + "TYPE_REQUIRED": "Обязательное поле", + "VALUE_REQUIRED": "Обязательное поле", "VARIABLE_REQUIRED": "Обязательное поле", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Значение должно быть больше или равно", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Значение должно быть меньше или равно", + "WAITFORTHEASSIGNEDAGENT_REQUIRED": "Обязательное поле", "WELCOMEMESSAGE_MAX_LENGTH": "Значение должно иметь максимальную длину, равную {{max}}.", - "WELCOMEMESSAGE_REQUIRED": "Обязательное поле" + "WELCOMEMESSAGE_REQUIRED": "Обязательное поле", + "CLIENTEMAIL_REQUIRED": "Обязательное поле", + "PRIVATEKEY_REQUIRED": "Обязательное поле", + "PROJECTID_REQUIRED": "Обязательное поле" }, - "HELP": {}, + "HELP": { + "LIST": "Список диспетчера контактов, используемый для связывания контактов", + "MANDATORYDISPOSITION": "Обязательное распоряжение", + "MANDATORYDISPOSITIONPAUSEID": "Приостановить использование, когда включено обязательное удаление", + "MOTIONPROXY": "Поле должно иметь следующий формат: <протокол>: // [: <порт>]. Пример: https: //X.Y.Z.W", + "NAME": "Поддерживаются только цифры, буквы и определенные символы (._).", + "RECEIVEURL": "Это автоматически сгенерированная строка API, которую необходимо использовать для получения сообщений внутри вашей учетной записи от поставщика коннектора WhatsApp (необходимо использовать метод POST): нажмите кнопку буфера обмена, чтобы скопировать ее", + "WELCOMEMESSAGE": "Это первое ответное сообщение, отправленное на новые взаимодействия" + }, + "ACCESSKEYID": "Идентификатор ключа доступа", + "ACCOUNTSID": "SID аккаунта", + "ACTIONS": "действия", + "ADD_NOTE": "Добавить заметку", "ADD_WHATSAPPACCOUNT": "Добавить", "ADD_WHATSAPPCANNEDANSWER": "Добавить шаблон ответа", "ADD_WHATSAPPDISPOSITION": "Добавить расположение WhatsApp", "ADD_WHATSAPPQUEUE": "Добавить очередь WhatsApp", + "ADVANCED": "продвинутый", + "AGENT": "агент", "AGENTADD_QUEUE": "Добавить агента в очередь WhatsApp", "AGENTADD_WHATSAPPACCOUNT": "Добавить агента в учетную запись WhatsApp", "AGENTADD_WHATSAPPQUEUE": "Добавить агента в очередь WhatsApp", + "AGENTS": "Агенты", + "AGENTSADD_QUEUE": "Добавить агентов в очередь WhatsApp", + "AGENTTRANSFER": "Перенос агента", + "AGENTTRANSFERTIMEOUT": "Тайм-аут передачи агента", + "AGENT_TIMEOUT": "Тайм-аут агента", + "ALL": "Все", + "ALL_AGENTS": "Все агенты", + "ALL_TEAMS": "Все команды", + "AMAZONLEX": "AmazonLex", "AUTHTOKEN": "Токен аутентификации", + "AUTOREPLY": "Автоответчик", + "BACK": "назад", + "BOTNAME": "Имя бота", + "BUSY": "Занятый", + "CANNEDANSWERS": "Готовые ответы", + "CANNED_ANSWER_NOT_FOUND": "Шаблонных ответов не найдено", + "CANNED_ANSWER_SEARCH": "Введите текст для поиска в шаблонном ответе", + "CAPACITY": "Вместимость", + "CLOSE": "близко", + "CLOSED": "Закрыто", + "CLOSEMETHOD": "Метод закрытия", + "CLOSEURL": "Закрыть URL", + "COMMAND": "команда", + "CONDITION": "Состояние", + "CONTACT": "контакт", + "CREATED_AT": "Создано на", + "DEFAULT_PAUSE": "ПАУЗА ПО УМОЛЧАНИЮ", + "DELETE": "Удалить", + "DELETE_INTERACTION": "Удалить взаимодействие", + "DELETE_SELECTED": "Удалить выбранное", "DELETE_WHATSAPPACCOUNT": "Удалить учетную запись WhatsApp", "DELETE_WHATSAPPCANNEDANSWER": "Исключен", "DELETE_WHATSAPPDISPOSITION": "Удалить расположение WhatsApp", "DELETE_WHATSAPPQUEUE": "Удалить очередь WhatsApp", + "DESCRIPTION": "Описание", + "DIALOGFLOW": "DialogFlow", + "DISPOSITION": "диспозиция", + "DISPOSITIONS": "Распоряжения", + "DOWNLOAD_INTERACTION": "Скачать", + "DOWNLOAD_WITHOUT_ATTACHMENTS": "Скачать без вложений", + "DOWNLOAD_WITH_ATTACHMENTS": "Скачать с вложениями", + "EDIT_AGENT": "Редактировать агент", + "EDIT_AMAZONLEX": "Изменить конфигурацию Lex", + "EDIT_AUTOREPLY": "Редактировать автоматический ответ", + "EDIT_CLOSE": "Редактировать Закрыть", + "EDIT_DIALOGFLOW": "Изменить конфигурацию DialogFlow", + "EDIT_GOTOIF": "Изменить Gotoif", + "EDIT_GOTOP": "Изменить Gotop", + "EDIT_NOOP": "Редактировать Noop", + "EDIT_QUEUE": "Изменить очередь", + "EDIT_SYSTEM": "Изменить систему", + "EDIT_TAG": "Изменить тег", "EDIT_WHATSAPPACCOUNT": "Редактировать учетную запись WhatsApp", "EDIT_WHATSAPPCANNEDANSWER": "редактировать", "EDIT_WHATSAPPDISPOSITION": "Изменить расположение WhatsApp", "EDIT_WHATSAPPQUEUE": "Изменить очередь WhatsApp", + "FALSEPRIORITY": "Ложный приоритет", + "GENERAL": "Общее", + "GOTOIF": "GotoIf", + "GOTOP": "Gotop", "GOTOREALTIME_WHATSAPPQUEUE": "Перейти в очередь WhatsApp в реальном времени", "GO_TO_WHATSAPPACCOUNTS": "Перейти к учетной записи", + "ID": "Мне бы", + "IDLE": "вхолостую", + "INSERT_MESSAGE_HERE": "Вставьте сообщение сюда", + "INTERACTIONS": "взаимодействия", "INTERACTIONS_WHATSAPPACCOUNT": "Перейти к взаимодействиям", + "KEY": "ключ", + "LANGUAGE": "язык", + "LASTMESSAGE": "Последнее сообщение", + "LEXREGION": "Область", + "LIST": "Список", + "LOGGED_IN": "Авторизован (SIP подключен)", + "LOGIN_TIME": "Время входа", + "LOGOUT": "Выйти", + "MANDATORYDISPOSITION": "Обязательное распоряжение", + "MANDATORYDISPOSITIONPAUSEID": "Приостановить использование, когда включено обязательное удаление", + "MORE": "Больше", + "MOTIONPROXY": "Прокси или домен движения", "MULTI_SELECT_TOGGLE": "Переключатель множественного выбора", + "NAME": "название", "NEW_WHATSAPPACCOUNT": "Новая учетная запись WhatsApp", "NEW_WHATSAPPCANNEDANSWER": "Новый готовый ответ WhatsApp", "NEW_WHATSAPPDISPOSITION": "Новое расположение WhatsApp", "NEW_WHATSAPPQUEUE": "Новая очередь WhatsApp", + "NOOP": "Noop", + "NOTE": "Заметка", + "NOTIFICATION": "уведомление", + "NOTIFICATIONSHAKE": "Встряска", + "NOTIFICATIONSOUND": "Звук", + "NOTIFICATIONTEMPLATE": "шаблон", + "NO_AGENT_ONLINE": "Нет агента онлайн", + "NO_AVAILABLE_INFO": "Нет доступной информации", + "NO_INTERACTION_AVAILABLE": "Нет доступных взаимодействий", "NO_WHATSAPPCANNEDANSWER_AVAILABLE": "Нет готовых ответов WhatsApp", "NO_WHATSAPPDISPOSITION_AVAILABLE": "Нет доступных диспозиций WhatsApp", "NO_WHATSAPP_ACCOUNTS_AVAILABLE": "Нет доступных учетных записей WhatsApp", + "OF": "из", + "OPENED": "открытый", + "PAGE": "страница", + "PARTIALPAUSE": "Частичная пауза", + "PAUSE": "Пауза", + "PAUSED": "Приостановлено", + "PAUSE_TIME": "Время паузы", + "PHONE": "Телефон", + "PRIORITY": "приоритет", + "PROXY": "полномочие", + "QUEUE": "Очередь", + "QUEUES": "Очереди", + "QUEUETRANSFER": "Передача очереди", + "QUEUETRANSFERTIMEOUT": "Тайм-аут передачи очереди", + "READY": "готов", + "REALTIME": "в режиме реального времени", + "RECEIVEURL": "Получить URL", + "REFRESH_INTERACTIONS": "Обновить взаимодействия", "REMOTE": "Удаленный", + "ROWSPERPAGE": "Строк на странице", + "SAVE": "Сохранить", + "SCREENRECORDING": "Управление записью экрана", + "SEARCH_FOR_ANYONE": "Поиск", + "SECRETACCESSKEY": "Секрет ключа доступа", + "SELECTED": "выбранный", + "SELECTED_AGENTS": "Избранные агенты", + "SELECTED_TEAMS": "Избранные команды", + "SELECT_ALL": "Выбрать все", + "SELECT_NONE": "Ничего не выберите", + "SEND": "послать", + "SETTINGS": "настройки", + "SPYINTERACTION": "Шпионское взаимодействие", + "STARTEDAT": "Начато в", + "START_SCREENRECORDING": "Начать запись экрана", + "STATUS": "Положение дел", + "STOP_SCREENRECORDING": "Остановить запись экрана", + "STRATEGY": "стратегия", + "SYSTEM": "система", + "TAG": "Тег", + "TAGS": "Теги", "TEAMADD_WHATSAPPQUEUE": "Добавить команду в очередь WhatsApp", + "TEAMS_ASSOCIATION": "Ассоциация команд", + "TEXT": "Текст", + "TIMEOUT": "Тайм-аут", + "TIMER": "таймер", + "TIMES": "раз", + "TO": "к", + "TOKEN": "знак", + "TOOLTIP_SCREENRECORDING_OFF": "Доступна запись экрана", + "TOOLTIP_SCREENRECORDING_ON": "Выполняется запись экрана", + "TRANSFER": "Перевод", + "TRUEPRIORITY": "Истинный приоритет", + "TYPE": "Тип", + "UNPAUSE": "Конец паузы", + "VALUE": "Стоимость", + "VARIABLE": "переменная", + "WAITFORTHEASSIGNEDAGENT": "Подождите, пока назначенный агент", + "WAITING": "Ожидание", + "WELCOMEMESSAGE": "Приветствие", + "WHATSAPP": "Коннектор WhatsApp", "WHATSAPPACCOUNTS": "Аккаунты WhatsApp", "WHATSAPPCANNEDANSWERS": "Готовые ответы WhatsApp", "WHATSAPPDISPOSITIONS": "WhatsApp Диспозиции", - "WHATSAPPQUEUES": "Очереди WhatsApp" + "WHATSAPPQUEUES": "Очереди WhatsApp", + "CLIENTEMAIL": "Электронная почта клиента", + "DIALOGFLOWV2": "Dialogflow V2", + "EDIT_DIALOGFLOWV2": "Редактировать Dialogflow V2", + "PRIVATEKEY": "Закрытый ключ", + "PROJECTID": "ID проекта" } } diff --git a/public/app/main/apps/whatsapp/i18n/sv.json b/public/app/main/apps/whatsapp/i18n/sv.json index e27a5c3..f4f2b7e 100644 --- a/public/app/main/apps/whatsapp/i18n/sv.json +++ b/public/app/main/apps/whatsapp/i18n/sv.json @@ -1,47 +1,244 @@ { "WHATSAPP": { "ERRORS": { + "ACCESSKEYID_REQUIRED": "Obligatoriskt fält", + "ACCOUNTSID_REQUIRED": "Obligatoriskt fält", + "AGENTTRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Värdet måste vara större eller lika än", + "AGENTTRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Värdet måste vara mindre eller lika mycket än", + "AGENTTRANSFERTIMEOUT_REQUIRED": "Obligatoriskt fält", + "AGENT_REQUIRED": "Obligatoriskt fält", + "AGENT_TIMEOUT_REQUIRED": "Obligatoriskt fält", + "AUTHTOKEN_REQUIRED": "Obligatoriskt fält", + "BOTNAME_REQUIRED": "Obligatoriskt fält", + "COMMAND_REQUIRED": "Obligatoriskt fält", + "CONDITION_REQUIRED": "Obligatoriskt fält", "DESCRIPTION_REQUIRED": "Obligatoriskt fält", + "DISPOSITION_REQUIRED": "Obligatoriskt fält", + "FALSEPRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Värdet måste vara större eller lika än", + "FALSEPRIORITY_REQUIRED": "Obligatoriskt fält", + "KEY_MAX_LENGTH": "Värdet måste ha en maximal längd lika med {{max}}", + "KEY_REQUIRED": "Obligatoriskt fält", "LANGUAGE_REQUIRED": "Mandtory Field", "LEXREGION_REQUIRED": "Obligatoriskt fält", + "LIST_REQUIRED": "Obligatoriskt fält", + "MANDATORYDISPOSITIONPAUSEID_REQUIRED": "Obligatoriskt fält", + "NAME_REQUIRED": "Obligatoriskt fält", + "PHONE_REQUIRED": "Obligatoriskt fält", + "PRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Värdet måste vara större eller lika än", + "PRIORITY_REQUIRED": "Obligatoriskt fält", + "QUEUETRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Värdet måste vara större eller lika än", + "QUEUETRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Värdet måste vara mindre eller lika mycket än", + "QUEUETRANSFERTIMEOUT_REQUIRED": "Obligatoriskt fält", + "QUEUE_REQUIRED": "Obligatoriskt fält", + "SECRETACCESSKEY_REQUIRED": "Obligatoriskt fält", + "TAG_REQUIRED": "Obligatoriskt fält", + "TEXT_REQUIRED": "Obligatoriskt fält", + "TIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Värdet måste vara större eller lika än", + "TIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Värdet måste vara mindre eller lika mycket än", + "TIMEOUT_REQUIRED": "Obligatoriskt fält", "TIMES_REQUIRED": "Obligatoriskt fält", + "TOKEN_REQUIRED": "Obligatoriskt fält", + "TRUEPRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Värdet måste vara större eller lika än", + "TRUEPRIORITY_REQUIRED": "Obligatoriskt fält", + "TYPE_REQUIRED": "Obligatoriskt fält", + "VALUE_REQUIRED": "Obligatoriskt fält", "VARIABLE_REQUIRED": "Obligatoriskt fält", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Värdet måste vara större eller lika än", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Värdet måste vara mindre eller lika mycket än", + "WAITFORTHEASSIGNEDAGENT_REQUIRED": "Obligatoriskt fält", "WELCOMEMESSAGE_MAX_LENGTH": "Värdet måste ha en maximal längd lika med {{max}}", - "WELCOMEMESSAGE_REQUIRED": "Obligatoriskt fält" + "WELCOMEMESSAGE_REQUIRED": "Obligatoriskt fält", + "CLIENTEMAIL_REQUIRED": "Obligatoriskt fält", + "PRIVATEKEY_REQUIRED": "Obligatoriskt fält", + "PROJECTID_REQUIRED": "Obligatoriskt fält" }, - "HELP": {}, + "HELP": { + "LIST": "Lista över kontakthanterare som används för att koppla kontakter", + "MANDATORYDISPOSITION": "Obligatorisk disposition", + "MANDATORYDISPOSITIONPAUSEID": "Pausa för användning när obligatorisk disposition är aktiverad", + "MOTIONPROXY": "Fältet måste ha följande format: : // [: ]. Exempel: https: //X.Y.Z.W", + "NAME": "Endast siffror, bokstäver och specifika tecken (._) stöds", + "RECEIVEURL": "Det här är den auto-genererade API-strängen du behöver använda för att ta emot meddelandena i ditt konto från din WhatsApp Connector-leverantör (POST-metoden måste användas): klicka på urklippsknappen för att kopiera den", + "WELCOMEMESSAGE": "Detta är det första svarmeddelandet som skickas till nya interaktioner" + }, + "ACCESSKEYID": "Åtkomstnyckel-ID", + "ACCOUNTSID": "Konto SID", + "ACTIONS": "Handlingar", + "ADD_NOTE": "Lägg till anteckning", "ADD_WHATSAPPACCOUNT": "Lägg till", "ADD_WHATSAPPCANNEDANSWER": "Lägg till konserverat svar", "ADD_WHATSAPPDISPOSITION": "Lägg till WhatsApp Disposition", "ADD_WHATSAPPQUEUE": "Lägg till WhatsApp-kön", + "ADVANCED": "Avancerad", + "AGENT": "Ombud", "AGENTADD_QUEUE": "Lägg till agent i WhatsApp-kö", "AGENTADD_WHATSAPPACCOUNT": "Lägg till agent till WhatsApp-konto", "AGENTADD_WHATSAPPQUEUE": "Lägg till agent i WhatsApp-kö", + "AGENTS": "agenter", + "AGENTSADD_QUEUE": "Lägg till agenter i WhatsApp-kön", + "AGENTTRANSFER": "Agentöverföring", + "AGENTTRANSFERTIMEOUT": "Agentöverföring Timeout", + "AGENT_TIMEOUT": "Agent Timeout", + "ALL": "Allt", + "ALL_AGENTS": "Alla ombud", + "ALL_TEAMS": "Alla lag", + "AMAZONLEX": "AmazonLex", "AUTHTOKEN": "Autentisk symbol", + "AUTOREPLY": "Auto-svar", + "BACK": "Tillbaka", + "BOTNAME": "Bot Namn", + "BUSY": "Upptagen", + "CANNEDANSWERS": "Konserverade svar", + "CANNED_ANSWER_NOT_FOUND": "Inga konserverade svar hittades", + "CANNED_ANSWER_SEARCH": "Ange en text för att söka i ett konserverat svar", + "CAPACITY": "Kapacitet", + "CLOSE": "Stänga", + "CLOSED": "Stängd", + "CLOSEMETHOD": "Stäng metod", + "CLOSEURL": "Stäng URL", + "COMMAND": "Kommando", + "CONDITION": "Tillstånd", + "CONTACT": "Kontakt", + "CREATED_AT": "Skapad vid", + "DEFAULT_PAUSE": "DEFAULT PAUSE", + "DELETE": "Radera", + "DELETE_INTERACTION": "Radera interaktion", + "DELETE_SELECTED": "Radera valda", "DELETE_WHATSAPPACCOUNT": "Radera WhatsApp-konto", "DELETE_WHATSAPPCANNEDANSWER": "raderade", "DELETE_WHATSAPPDISPOSITION": "Radera WhatsApp-disposition", "DELETE_WHATSAPPQUEUE": "Radera WhatsApp-kö", + "DESCRIPTION": "Beskrivning", + "DIALOGFLOW": "DialogFlow", + "DISPOSITION": "Disposition", + "DISPOSITIONS": "dispositioner", + "DOWNLOAD_INTERACTION": "Ladda ner", + "DOWNLOAD_WITHOUT_ATTACHMENTS": "Ladda ner utan bilagor", + "DOWNLOAD_WITH_ATTACHMENTS": "Ladda ner med bilagor", + "EDIT_AGENT": "Redigera agent", + "EDIT_AMAZONLEX": "Redigera Lex-konfiguration", + "EDIT_AUTOREPLY": "Redigera autosvar", + "EDIT_CLOSE": "Redigera stäng", + "EDIT_DIALOGFLOW": "Redigera DialogFlow-konfiguration", + "EDIT_GOTOIF": "Redigera Gotoif", + "EDIT_GOTOP": "Redigera Gotop", + "EDIT_NOOP": "Redigera Noop", + "EDIT_QUEUE": "Redigera kö", + "EDIT_SYSTEM": "Redigera system", + "EDIT_TAG": "Redigera tagg", "EDIT_WHATSAPPACCOUNT": "Redigera WhatsApp-konto", "EDIT_WHATSAPPCANNEDANSWER": "Redigera", "EDIT_WHATSAPPDISPOSITION": "Redigera WhatsApp Disposition", "EDIT_WHATSAPPQUEUE": "Redigera WhatsApp-kö", + "FALSEPRIORITY": "Falsk prioritet", + "GENERAL": "Allmän", + "GOTOIF": "Gotoif", + "GOTOP": "Gotop", "GOTOREALTIME_WHATSAPPQUEUE": "Gå till realtid WhatsApp-kö", "GO_TO_WHATSAPPACCOUNTS": "Gå till konto", + "ID": "Id", + "IDLE": "På tomgång", + "INSERT_MESSAGE_HERE": "Sätt in meddelandet här", + "INTERACTIONS": "interaktioner", "INTERACTIONS_WHATSAPPACCOUNT": "Gå till interaktioner", + "KEY": "Nyckel", + "LANGUAGE": "Språk", + "LASTMESSAGE": "Senaste meddelandet", + "LEXREGION": "Område", + "LIST": "Lista", + "LOGGED_IN": "Inloggad (SIP ansluten)", + "LOGIN_TIME": "Inloggningstid", + "LOGOUT": "Logga ut", + "MANDATORYDISPOSITION": "Obligatorisk disposition", + "MANDATORYDISPOSITIONPAUSEID": "Pausa för användning när obligatorisk disposition är aktiverad", + "MORE": "Mer", + "MOTIONPROXY": "Proxy- eller rörelsedomän", "MULTI_SELECT_TOGGLE": "Multivalsväxel", + "NAME": "namn", "NEW_WHATSAPPACCOUNT": "Nytt WhatsApp-konto", "NEW_WHATSAPPCANNEDANSWER": "Nytt WhatsApp konserverat svar", "NEW_WHATSAPPDISPOSITION": "Ny WhatsApp-disposition", "NEW_WHATSAPPQUEUE": "Ny WhatsApp-kö", + "NOOP": "Noop", + "NOTE": "Notera", + "NOTIFICATION": "Underrättelse", + "NOTIFICATIONSHAKE": "Skaka", + "NOTIFICATIONSOUND": "Ljud", + "NOTIFICATIONTEMPLATE": "Mall", + "NO_AGENT_ONLINE": "Ingen agent online", + "NO_AVAILABLE_INFO": "Ingen tillgänglig information", + "NO_INTERACTION_AVAILABLE": "Inga interaktioner tillgängliga", "NO_WHATSAPPCANNEDANSWER_AVAILABLE": "Inga WhatsApp-konserverade svar tillgängliga", "NO_WHATSAPPDISPOSITION_AVAILABLE": "Inga WhatsApp-dispositioner tillgängliga", "NO_WHATSAPP_ACCOUNTS_AVAILABLE": "Inga WhatsApp-konton tillgängliga", + "OF": "av", + "OPENED": "Öppnad", + "PAGE": "Sida", + "PARTIALPAUSE": "Partiell paus", + "PAUSE": "Paus", + "PAUSED": "Pausad", + "PAUSE_TIME": "Pausa tid", + "PHONE": "Telefon", + "PRIORITY": "Prioritet", + "PROXY": "Ombud", + "QUEUE": "Kö", + "QUEUES": "köer", + "QUEUETRANSFER": "Kööverföring", + "QUEUETRANSFERTIMEOUT": "Timeout för kööverföring", + "READY": "Redo", + "REALTIME": "Realtid", + "RECEIVEURL": "Få URL", + "REFRESH_INTERACTIONS": "Uppdatera interaktioner", "REMOTE": "Avlägsen", + "ROWSPERPAGE": "Rader per sida", + "SAVE": "Spara", + "SCREENRECORDING": "Hantera skärminspelning", + "SEARCH_FOR_ANYONE": "Sök", + "SECRETACCESSKEY": "Åtkomstnyckelhemlighet", + "SELECTED": "Vald", + "SELECTED_AGENTS": "Valda medel", + "SELECTED_TEAMS": "Valda lag", + "SELECT_ALL": "Välj alla", + "SELECT_NONE": "Välj ingen", + "SEND": "Skicka", + "SETTINGS": "inställningar", + "SPYINTERACTION": "Spioninteraktion", + "STARTEDAT": "Började kl", + "START_SCREENRECORDING": "Starta skärminspelning", + "STATUS": "Status", + "STOP_SCREENRECORDING": "Stop Screen Inspelning", + "STRATEGY": "Strategi", + "SYSTEM": "Systemet", + "TAG": "Märka", + "TAGS": "Tags", "TEAMADD_WHATSAPPQUEUE": "Lägg till team i WhatsApp-kö", + "TEAMS_ASSOCIATION": "Team Association", + "TEXT": "Text", + "TIMEOUT": "Paus", + "TIMER": "Timer", + "TIMES": "Times", + "TO": "Till", + "TOKEN": "Tecken", + "TOOLTIP_SCREENRECORDING_OFF": "Skärminspelning tillgänglig", + "TOOLTIP_SCREENRECORDING_ON": "Skärminspelning pågår", + "TRANSFER": "Överföra", + "TRUEPRIORITY": "Sann prioritet", + "TYPE": "Typ", + "UNPAUSE": "Slutpaus", + "VALUE": "Värde", + "VARIABLE": "Variabel", + "WAITFORTHEASSIGNEDAGENT": "Vänta på den tilldelade agenten", + "WAITING": "Väntar", + "WELCOMEMESSAGE": "Välkomstmeddelande", + "WHATSAPP": "WhatsApp-anslutning", "WHATSAPPACCOUNTS": "WhatsApp-konton", "WHATSAPPCANNEDANSWERS": "WhatsApp konserverade svar", "WHATSAPPDISPOSITIONS": "WhatsApp-dispositioner", - "WHATSAPPQUEUES": "WhatsApp-köer" + "WHATSAPPQUEUES": "WhatsApp-köer", + "CLIENTEMAIL": "Kundens e-post", + "DIALOGFLOWV2": "Dialogflow V2", + "EDIT_DIALOGFLOWV2": "Redigera Dialogflow V2", + "PRIVATEKEY": "Privat nyckel", + "PROJECTID": "Projekt-ID" } } diff --git a/public/app/main/apps/whatsapp/i18n/tr.json b/public/app/main/apps/whatsapp/i18n/tr.json index aba2a45..e867462 100644 --- a/public/app/main/apps/whatsapp/i18n/tr.json +++ b/public/app/main/apps/whatsapp/i18n/tr.json @@ -1,47 +1,244 @@ { "WHATSAPP": { "ERRORS": { + "ACCESSKEYID_REQUIRED": "Zorunlu alan", + "ACCOUNTSID_REQUIRED": "Zorunlu alan", + "AGENTTRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Değer daha büyük veya eşit olmalıdır", + "AGENTTRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Değer şundan küçük veya eşit olmalıdır", + "AGENTTRANSFERTIMEOUT_REQUIRED": "Zorunlu alan", + "AGENT_REQUIRED": "Zorunlu alan", + "AGENT_TIMEOUT_REQUIRED": "Zorunlu alan", + "AUTHTOKEN_REQUIRED": "Zorunlu alan", + "BOTNAME_REQUIRED": "Zorunlu alan", + "COMMAND_REQUIRED": "Zorunlu alan", + "CONDITION_REQUIRED": "Zorunlu alan", "DESCRIPTION_REQUIRED": "Zorunlu alan", + "DISPOSITION_REQUIRED": "Zorunlu alan", + "FALSEPRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Değer daha büyük veya eşit olmalıdır", + "FALSEPRIORITY_REQUIRED": "Zorunlu alan", + "KEY_MAX_LENGTH": "Değerin maksimum uzunluğu {{max}} olmalıdır", + "KEY_REQUIRED": "Zorunlu alan", "LANGUAGE_REQUIRED": "Zorunlu Alan", "LEXREGION_REQUIRED": "Zorunlu alan", + "LIST_REQUIRED": "Zorunlu alan", + "MANDATORYDISPOSITIONPAUSEID_REQUIRED": "Zorunlu alan", + "NAME_REQUIRED": "Zorunlu alan", + "PHONE_REQUIRED": "Zorunlu alan", + "PRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Değer daha büyük veya eşit olmalıdır", + "PRIORITY_REQUIRED": "Zorunlu alan", + "QUEUETRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Değer daha büyük veya eşit olmalıdır", + "QUEUETRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Değer şundan küçük veya eşit olmalıdır", + "QUEUETRANSFERTIMEOUT_REQUIRED": "Zorunlu alan", + "QUEUE_REQUIRED": "Zorunlu alan", + "SECRETACCESSKEY_REQUIRED": "Zorunlu alan", + "TAG_REQUIRED": "Zorunlu alan", + "TEXT_REQUIRED": "Zorunlu alan", + "TIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Değer daha büyük veya eşit olmalıdır", + "TIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Değer şundan küçük veya eşit olmalıdır", + "TIMEOUT_REQUIRED": "Zorunlu alan", "TIMES_REQUIRED": "Zorunlu alan", + "TOKEN_REQUIRED": "Zorunlu alan", + "TRUEPRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Değer daha büyük veya eşit olmalıdır", + "TRUEPRIORITY_REQUIRED": "Zorunlu alan", + "TYPE_REQUIRED": "Zorunlu alan", + "VALUE_REQUIRED": "Zorunlu alan", "VARIABLE_REQUIRED": "Zorunlu alan", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "Değer daha büyük veya eşit olmalıdır", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "Değer şundan küçük veya eşit olmalıdır", + "WAITFORTHEASSIGNEDAGENT_REQUIRED": "Zorunlu alan", "WELCOMEMESSAGE_MAX_LENGTH": "Değerin maksimum uzunluğu {{max}} olmalıdır", - "WELCOMEMESSAGE_REQUIRED": "Zorunlu alan" + "WELCOMEMESSAGE_REQUIRED": "Zorunlu alan", + "CLIENTEMAIL_REQUIRED": "Zorunlu alan", + "PRIVATEKEY_REQUIRED": "Zorunlu alan", + "PROJECTID_REQUIRED": "Zorunlu alan" }, - "HELP": {}, + "HELP": { + "LIST": "Kişileri ilişkilendirmek için kullanılan Kişi Yöneticisi listesi", + "MANDATORYDISPOSITION": "Zorunlu tasarruf", + "MANDATORYDISPOSITIONPAUSEID": "Zorunlu elden çıkarma etkinleştirildiğinde kullanmak için duraklatın", + "MOTIONPROXY": "Alan şu biçime sahip olmalıdır: : // [: ]. Örnek: https: //X.Y.Z.W", + "NAME": "Yalnızca sayılar, harfler ve belirli karakterler (._) desteklenir", + "RECEIVEURL": "Bu, hesabınızın içindeki mesajları WhatsApp Bağlayıcı sağlayıcınızdan almak için kullanmanız gereken otomatik oluşturulan API dizesidir (POST yöntemi kullanılmalıdır): kopyalamak için pano düğmesine tıklayın", + "WELCOMEMESSAGE": "Bu, yeni etkileşimlere gönderilen ilk yanıt mesajıdır" + }, + "ACCESSKEYID": "Erişim Anahtarı Kimliği", + "ACCOUNTSID": "Hesap SID'si", + "ACTIONS": "Hareketler", + "ADD_NOTE": "Not ekle", "ADD_WHATSAPPACCOUNT": "Ekle", "ADD_WHATSAPPCANNEDANSWER": "Hazır Cevap Ekle", "ADD_WHATSAPPDISPOSITION": "WhatsApp Disposition Ekle", "ADD_WHATSAPPQUEUE": "WhatsApp kuyruğu ekle", + "ADVANCED": "ileri", + "AGENT": "ajan", "AGENTADD_QUEUE": "WhatsApp Sırasına Ajan Ekle", "AGENTADD_WHATSAPPACCOUNT": "WhatsApp Hesabına Temsilci Ekle", "AGENTADD_WHATSAPPQUEUE": "WhatsApp Sırasına Ajan Ekle", + "AGENTS": "Ajanlar", + "AGENTSADD_QUEUE": "Temsilcileri WhatsApp kuyruğuna ekleyin", + "AGENTTRANSFER": "Acente Transferi", + "AGENTTRANSFERTIMEOUT": "Temsilci Aktarım Zaman Aşımı", + "AGENT_TIMEOUT": "Aracı Zaman Aşımı", + "ALL": "Herşey", + "ALL_AGENTS": "Tüm Temsilciler", + "ALL_TEAMS": "Tüm Takımlar", + "AMAZONLEX": "AmazonLex", "AUTHTOKEN": "Yetkilendirme Jetonu", + "AUTOREPLY": "Otomatik cevap", + "BACK": "Geri", + "BOTNAME": "Bot Adı", + "BUSY": "Meşgul", + "CANNEDANSWERS": "Hazır Cevaplar", + "CANNED_ANSWER_NOT_FOUND": "Hazır Cevap bulunamadı", + "CANNED_ANSWER_SEARCH": "Hazır Yanıtı aramak için bir metin girin", + "CAPACITY": "Kapasite", + "CLOSE": "Kapat", + "CLOSED": "Kapalı", + "CLOSEMETHOD": "Kapatma Yöntemi", + "CLOSEURL": "URL'yi kapat", + "COMMAND": "komuta", + "CONDITION": "Durum", + "CONTACT": "İletişim", + "CREATED_AT": "Tarihinde oluşturuldu", + "DEFAULT_PAUSE": "VARSAYILAN DURAKLAT", + "DELETE": "Sil", + "DELETE_INTERACTION": "Etkileşimi Sil", + "DELETE_SELECTED": "Silme seçildi", "DELETE_WHATSAPPACCOUNT": "WhatsApp Hesabını Sil", "DELETE_WHATSAPPCANNEDANSWER": "silindi", "DELETE_WHATSAPPDISPOSITION": "WhatsApp Disposition'ı Sil", "DELETE_WHATSAPPQUEUE": "WhatsApp Sırasını Sil", + "DESCRIPTION": "Açıklama", + "DIALOGFLOW": "DialogFlow", + "DISPOSITION": "eğilim", + "DISPOSITIONS": "plânlar", + "DOWNLOAD_INTERACTION": "İndir", + "DOWNLOAD_WITHOUT_ATTACHMENTS": "Ekler Olmadan İndir", + "DOWNLOAD_WITH_ATTACHMENTS": "Eklerle İndir", + "EDIT_AGENT": "Aracıyı Düzenle", + "EDIT_AMAZONLEX": "Lex yapılandırmasını düzenleyin", + "EDIT_AUTOREPLY": "Otomatik Yanıtı Düzenle", + "EDIT_CLOSE": "Düzenle Kapat", + "EDIT_DIALOGFLOW": "DialogFlow yapılandırmasını düzenle", + "EDIT_GOTOIF": "Gotoif'i Düzenle", + "EDIT_GOTOP": "Gotop'u Düzenle", + "EDIT_NOOP": "Noop'u Düzenle", + "EDIT_QUEUE": "Kuyruğu Düzenle", + "EDIT_SYSTEM": "Sistemi Düzenle", + "EDIT_TAG": "Etiketi düzenle", "EDIT_WHATSAPPACCOUNT": "WhatsApp Hesabını Düzenle", "EDIT_WHATSAPPCANNEDANSWER": "Düzenle", "EDIT_WHATSAPPDISPOSITION": "WhatsApp Disposition'ı Düzenle", "EDIT_WHATSAPPQUEUE": "WhatsApp Sırasını Düzenle", + "FALSEPRIORITY": "Yanlış Öncelik", + "GENERAL": "Genel", + "GOTOIF": "Gotoif", + "GOTOP": "Gotop", "GOTOREALTIME_WHATSAPPQUEUE": "Gerçek Zamanlı WhatsApp Sırasına Git", "GO_TO_WHATSAPPACCOUNTS": "Hesaba Git", + "ID": "İD", + "IDLE": "Boşta", + "INSERT_MESSAGE_HERE": "Buraya mesaj ekleyin", + "INTERACTIONS": "Etkileşimler", "INTERACTIONS_WHATSAPPACCOUNT": "Etkileşimler'e git", + "KEY": "anahtar", + "LANGUAGE": "Dil", + "LASTMESSAGE": "Son Mesaj", + "LEXREGION": "bölge", + "LIST": "Liste", + "LOGGED_IN": "Oturum Açıldı (SIP Bağlı)", + "LOGIN_TIME": "Giriş Zamanı", + "LOGOUT": "Çıkış Yap", + "MANDATORYDISPOSITION": "Zorunlu Elden Çıkarma", + "MANDATORYDISPOSITIONPAUSEID": "Zorunlu elden çıkarma etkinleştirildiğinde kullanmak için duraklatın", + "MORE": "Daha", + "MOTIONPROXY": "Proxy veya Hareket Etki Alanı", "MULTI_SELECT_TOGGLE": "Çoklu seçim geçişi", + "NAME": "ad", "NEW_WHATSAPPACCOUNT": "Yeni WhatsApp Hesabı", "NEW_WHATSAPPCANNEDANSWER": "Yeni WhatsApp Hazır Yanıtı", "NEW_WHATSAPPDISPOSITION": "Yeni WhatsApp Düzenleme", "NEW_WHATSAPPQUEUE": "Yeni WhatsApp Sırası", + "NOOP": "Noop", + "NOTE": "Not", + "NOTIFICATION": "Bildirim", + "NOTIFICATIONSHAKE": "Sallamak", + "NOTIFICATIONSOUND": "Ses", + "NOTIFICATIONTEMPLATE": "şablon", + "NO_AGENT_ONLINE": "Çevrimiçi Temsilci Yok", + "NO_AVAILABLE_INFO": "Mevcut Bilgi Yok", + "NO_INTERACTION_AVAILABLE": "Kullanılabilir Etkileşim Yok", "NO_WHATSAPPCANNEDANSWER_AVAILABLE": "WhatsApp Hazır Cevap Yok", "NO_WHATSAPPDISPOSITION_AVAILABLE": "Kullanılabilir WhatsApp İmkanı Yok", "NO_WHATSAPP_ACCOUNTS_AVAILABLE": "WhatsApp Hesabı yok", + "OF": "nın-nin", + "OPENED": "Açıldı", + "PAGE": "Sayfa", + "PARTIALPAUSE": "Kısmi Duraklatma", + "PAUSE": "Duraklat", + "PAUSED": "Durduruldu", + "PAUSE_TIME": "Durma zamanı", + "PHONE": "Telefon", + "PRIORITY": "öncelik", + "PROXY": "vekil", + "QUEUE": "kuyruk", + "QUEUES": "Kuyruklar", + "QUEUETRANSFER": "Kuyruk Transferi", + "QUEUETRANSFERTIMEOUT": "Kuyruk Aktarımı Zaman Aşımı", + "READY": "hazır", + "REALTIME": "Gerçek zaman", + "RECEIVEURL": "URL al", + "REFRESH_INTERACTIONS": "Etkileşimleri Yenile", "REMOTE": "uzak", + "ROWSPERPAGE": "Sayfa başına satır", + "SAVE": "Kayıt etmek", + "SCREENRECORDING": "Ekran Kaydını Yönetin", + "SEARCH_FOR_ANYONE": "Arama", + "SECRETACCESSKEY": "Erişim anahtarı sırrı", + "SELECTED": "seçilmiş", + "SELECTED_AGENTS": "Seçilmiş Temsilciler", + "SELECTED_TEAMS": "Seçilmiş Takımlar", + "SELECT_ALL": "Hepsini seç", + "SELECT_NONE": "Hiçbirini Seçme", + "SEND": "Gönder", + "SETTINGS": "Ayarlar", + "SPYINTERACTION": "Casus Etkileşimi", + "STARTEDAT": "Başlangıç", + "START_SCREENRECORDING": "Ekran Kaydını Başlat", + "STATUS": "durum", + "STOP_SCREENRECORDING": "Ekran Kaydını Durdur", + "STRATEGY": "strateji", + "SYSTEM": "sistem", + "TAG": "Etiket", + "TAGS": "Etiketler", "TEAMADD_WHATSAPPQUEUE": "WhatsApp Sırasına Takım Ekle", + "TEAMS_ASSOCIATION": "Takımlar Derneği", + "TEXT": "Metin", + "TIMEOUT": "Zaman aşımı", + "TIMER": "kronometre", + "TIMES": "Zamanlar", + "TO": "için", + "TOKEN": "Jeton", + "TOOLTIP_SCREENRECORDING_OFF": "Ekran Kaydı mevcut", + "TOOLTIP_SCREENRECORDING_ON": "Ekran Kaydı devam ediyor", + "TRANSFER": "Aktar", + "TRUEPRIORITY": "Gerçek Öncelik", + "TYPE": "tip", + "UNPAUSE": "Duraklatmayı Bitir", + "VALUE": "değer", + "VARIABLE": "Değişken", + "WAITFORTHEASSIGNEDAGENT": "Atanan temsilciyi bekleyin", + "WAITING": "Bekleme", + "WELCOMEMESSAGE": "Karşılama mesajı", + "WHATSAPP": "WhatsApp Bağlayıcısı", "WHATSAPPACCOUNTS": "WhatsApp Hesapları", "WHATSAPPCANNEDANSWERS": "WhatsApp Hazır Cevapları", "WHATSAPPDISPOSITIONS": "WhatsApp Eğilimleri", - "WHATSAPPQUEUES": "WhatsApp Kuyrukları" + "WHATSAPPQUEUES": "WhatsApp Kuyrukları", + "CLIENTEMAIL": "Müşteri E-postası", + "DIALOGFLOWV2": "Dialogflow V2", + "EDIT_DIALOGFLOWV2": "Dialogflow V2'yi düzenle", + "PRIVATEKEY": "Özel anahtar", + "PROJECTID": "Proje kimliği" } } diff --git a/public/app/main/apps/whatsapp/i18n/zh-CN.json b/public/app/main/apps/whatsapp/i18n/zh-CN.json index 0fa6194..b81f80a 100644 --- a/public/app/main/apps/whatsapp/i18n/zh-CN.json +++ b/public/app/main/apps/whatsapp/i18n/zh-CN.json @@ -1,47 +1,244 @@ { "WHATSAPP": { "ERRORS": { + "ACCESSKEYID_REQUIRED": "必填项", + "ACCOUNTSID_REQUIRED": "必填项", + "AGENTTRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "该值必须大于或等于", + "AGENTTRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "该值必须小于或等于", + "AGENTTRANSFERTIMEOUT_REQUIRED": "必填项", + "AGENT_REQUIRED": "必填项", + "AGENT_TIMEOUT_REQUIRED": "必填项", + "AUTHTOKEN_REQUIRED": "必填项", + "BOTNAME_REQUIRED": "必填项", + "COMMAND_REQUIRED": "必填项", + "CONDITION_REQUIRED": "必填项", "DESCRIPTION_REQUIRED": "必填项", + "DISPOSITION_REQUIRED": "必填项", + "FALSEPRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "该值必须大于或等于", + "FALSEPRIORITY_REQUIRED": "必填项", + "KEY_MAX_LENGTH": "该值的最大长度必须等于{{max}}", + "KEY_REQUIRED": "必填项", "LANGUAGE_REQUIRED": "强制场", "LEXREGION_REQUIRED": "必填项", + "LIST_REQUIRED": "必填项", + "MANDATORYDISPOSITIONPAUSEID_REQUIRED": "必填项", + "NAME_REQUIRED": "必填项", + "PHONE_REQUIRED": "必填项", + "PRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "该值必须大于或等于", + "PRIORITY_REQUIRED": "必填项", + "QUEUETRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "该值必须大于或等于", + "QUEUETRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "该值必须小于或等于", + "QUEUETRANSFERTIMEOUT_REQUIRED": "必填项", + "QUEUE_REQUIRED": "必填项", + "SECRETACCESSKEY_REQUIRED": "必填项", + "TAG_REQUIRED": "必填项", + "TEXT_REQUIRED": "必填项", + "TIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "该值必须大于或等于", + "TIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "该值必须小于或等于", + "TIMEOUT_REQUIRED": "必填项", "TIMES_REQUIRED": "必填项", + "TOKEN_REQUIRED": "必填项", + "TRUEPRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "该值必须大于或等于", + "TRUEPRIORITY_REQUIRED": "必填项", + "TYPE_REQUIRED": "必填项", + "VALUE_REQUIRED": "必填项", "VARIABLE_REQUIRED": "必填项", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "该值必须大于或等于", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "该值必须小于或等于", + "WAITFORTHEASSIGNEDAGENT_REQUIRED": "必填项", "WELCOMEMESSAGE_MAX_LENGTH": "该值的最大长度必须等于{{max}}", - "WELCOMEMESSAGE_REQUIRED": "必填项" + "WELCOMEMESSAGE_REQUIRED": "必填项", + "CLIENTEMAIL_REQUIRED": "必填项", + "PRIVATEKEY_REQUIRED": "必填项", + "PROJECTID_REQUIRED": "必填项" }, - "HELP": {}, + "HELP": { + "LIST": "用于关联联系人的联系人管理器列表", + "MANDATORYDISPOSITION": "强制性", + "MANDATORYDISPOSITIONPAUSEID": "启用强制处置后暂停使用", + "MOTIONPROXY": "该字段必须具有以下格式:<协议>:// [:<端口>]。范例:https://X.Y.Z.W", + "NAME": "仅支持数字,字母和特定字符(._)", + "RECEIVEURL": "这是自动生成的API字符串,您需要使用它来从WhatsApp Connector提供程序接收帐户内的消息(必须使用POST方法):单击剪贴板按钮将其复制", + "WELCOMEMESSAGE": "这是发送给新交互的第一个响应消息" + }, + "ACCESSKEYID": "访问密钥ID", + "ACCOUNTSID": "帐户SID", + "ACTIONS": "动作", + "ADD_NOTE": "加注", "ADD_WHATSAPPACCOUNT": "加", "ADD_WHATSAPPCANNEDANSWER": "添加罐头答案", "ADD_WHATSAPPDISPOSITION": "添加WhatsApp配置", "ADD_WHATSAPPQUEUE": "添加WhatsApp队列", + "ADVANCED": "高级", + "AGENT": "代理商", "AGENTADD_QUEUE": "将代理添加到WhatsApp队列", "AGENTADD_WHATSAPPACCOUNT": "将代理添加到WhatsApp帐户", "AGENTADD_WHATSAPPQUEUE": "将代理添加到WhatsApp队列", + "AGENTS": "代理商", + "AGENTSADD_QUEUE": "将代理添加到WhatsApp队列", + "AGENTTRANSFER": "代理转移", + "AGENTTRANSFERTIMEOUT": "代理转移超时", + "AGENT_TIMEOUT": "代理超时", + "ALL": "所有", + "ALL_AGENTS": "所有代理商", + "ALL_TEAMS": "所有团队", + "AMAZONLEX": "亚马逊Lex", "AUTHTOKEN": "验证令牌", + "AUTOREPLY": "自动回复", + "BACK": "背部", + "BOTNAME": "机器人名称", + "BUSY": "忙", + "CANNEDANSWERS": "罐装答案", + "CANNED_ANSWER_NOT_FOUND": "找不到罐头答案", + "CANNED_ANSWER_SEARCH": "输入文本以搜索罐装答案", + "CAPACITY": "容量", + "CLOSE": "关", + "CLOSED": "关闭", + "CLOSEMETHOD": "关闭方法", + "CLOSEURL": "关闭网址", + "COMMAND": "命令", + "CONDITION": "健康)状况", + "CONTACT": "联系", + "CREATED_AT": "创建于", + "DEFAULT_PAUSE": "默认暂停", + "DELETE": "删除", + "DELETE_INTERACTION": "删除互动", + "DELETE_SELECTED": "删除所选", "DELETE_WHATSAPPACCOUNT": "删除WhatsApp帐户", "DELETE_WHATSAPPCANNEDANSWER": "已删除", "DELETE_WHATSAPPDISPOSITION": "删除WhatsApp配置", "DELETE_WHATSAPPQUEUE": "删除WhatsApp队列", + "DESCRIPTION": "描述", + "DIALOGFLOW": "对话流", + "DISPOSITION": "性格", + "DISPOSITIONS": "性格", + "DOWNLOAD_INTERACTION": "下载", + "DOWNLOAD_WITHOUT_ATTACHMENTS": "不带附件下载", + "DOWNLOAD_WITH_ATTACHMENTS": "带附件下载", + "EDIT_AGENT": "编辑代理", + "EDIT_AMAZONLEX": "编辑Lex配置", + "EDIT_AUTOREPLY": "编辑自动回复", + "EDIT_CLOSE": "编辑关闭", + "EDIT_DIALOGFLOW": "编辑DialogFlow配置", + "EDIT_GOTOIF": "编辑Gotoif", + "EDIT_GOTOP": "编辑Gotop", + "EDIT_NOOP": "编辑Noop", + "EDIT_QUEUE": "编辑队列", + "EDIT_SYSTEM": "编辑系统", + "EDIT_TAG": "编辑标签", "EDIT_WHATSAPPACCOUNT": "编辑WhatsApp帐户", "EDIT_WHATSAPPCANNEDANSWER": "编辑", "EDIT_WHATSAPPDISPOSITION": "编辑WhatsApp的处置", "EDIT_WHATSAPPQUEUE": "编辑WhatsApp队列", + "FALSEPRIORITY": "错误的优先权", + "GENERAL": "一般", + "GOTOIF": "后藤", + "GOTOP": "Gotop", "GOTOREALTIME_WHATSAPPQUEUE": "转到实时WhatsApp队列", "GO_TO_WHATSAPPACCOUNTS": "转到帐户", + "ID": "ID", + "IDLE": "闲", + "INSERT_MESSAGE_HERE": "在此处插入消息", + "INTERACTIONS": "互动互动", "INTERACTIONS_WHATSAPPACCOUNT": "前往互动", + "KEY": "键", + "LANGUAGE": "语言", + "LASTMESSAGE": "最后留言", + "LEXREGION": "地区", + "LIST": "清单", + "LOGGED_IN": "已登录(已连接SIP)", + "LOGIN_TIME": "登录时间", + "LOGOUT": "登出", + "MANDATORYDISPOSITION": "强制性", + "MANDATORYDISPOSITIONPAUSEID": "启用强制处置后暂停使用", + "MORE": "更多", + "MOTIONPROXY": "代理或运动域", "MULTI_SELECT_TOGGLE": "多选切换", + "NAME": "名称", "NEW_WHATSAPPACCOUNT": "新的WhatsApp帐户", "NEW_WHATSAPPCANNEDANSWER": "新的WhatsApp罐头答案", "NEW_WHATSAPPDISPOSITION": "新的WhatsApp配置", "NEW_WHATSAPPQUEUE": "新的WhatsApp队列", + "NOOP": "op", + "NOTE": "注意", + "NOTIFICATION": "通知", + "NOTIFICATIONSHAKE": "摇", + "NOTIFICATIONSOUND": "声音", + "NOTIFICATIONTEMPLATE": "模板", + "NO_AGENT_ONLINE": "没有在线代理", + "NO_AVAILABLE_INFO": "无可用信息", + "NO_INTERACTION_AVAILABLE": "没有互动", "NO_WHATSAPPCANNEDANSWER_AVAILABLE": "没有可用的WhatsApp罐装答案", "NO_WHATSAPPDISPOSITION_AVAILABLE": "没有可用的WhatsApp配置", "NO_WHATSAPP_ACCOUNTS_AVAILABLE": "没有可用的WhatsApp帐户", + "OF": "的", + "OPENED": "开了", + "PAGE": "页", + "PARTIALPAUSE": "部分暂停", + "PAUSE": "暂停", + "PAUSED": "已暂停", + "PAUSE_TIME": "暂停时间", + "PHONE": "电话", + "PRIORITY": "优先", + "PROXY": "代理", + "QUEUE": "队列", + "QUEUES": "s列", + "QUEUETRANSFER": "队列传输", + "QUEUETRANSFERTIMEOUT": "队列传输超时", + "READY": "准备", + "REALTIME": "即时的", + "RECEIVEURL": "接收网址", + "REFRESH_INTERACTIONS": "刷新互动", "REMOTE": "远程", + "ROWSPERPAGE": "每页行数", + "SAVE": "保存", + "SCREENRECORDING": "管理屏幕录像", + "SEARCH_FOR_ANYONE": "搜索", + "SECRETACCESSKEY": "访问密钥机密", + "SELECTED": "已选", + "SELECTED_AGENTS": "选定代理商", + "SELECTED_TEAMS": "入选团队", + "SELECT_ALL": "全选", + "SELECT_NONE": "选择无", + "SEND": "发送", + "SETTINGS": "设定值", + "SPYINTERACTION": "间谍互动", + "STARTEDAT": "开始于", + "START_SCREENRECORDING": "开始屏幕录制", + "STATUS": "状态", + "STOP_SCREENRECORDING": "停止画面录制", + "STRATEGY": "战略", + "SYSTEM": "系统", + "TAG": "标签", + "TAGS": "标签", "TEAMADD_WHATSAPPQUEUE": "将团队添加到WhatsApp队列", + "TEAMS_ASSOCIATION": "车队协会", + "TEXT": "文本", + "TIMEOUT": "超时", + "TIMER": "计时器", + "TIMES": "时报", + "TO": "至", + "TOKEN": "代币", + "TOOLTIP_SCREENRECORDING_OFF": "屏幕录像可用", + "TOOLTIP_SCREENRECORDING_ON": "屏幕录像正在进行中", + "TRANSFER": "转让", + "TRUEPRIORITY": "真正的优先", + "TYPE": "类型", + "UNPAUSE": "结束暂停", + "VALUE": "值", + "VARIABLE": "变量", + "WAITFORTHEASSIGNEDAGENT": "等待分配的代理", + "WAITING": "等候", + "WELCOMEMESSAGE": "欢迎留言", + "WHATSAPP": "WhatsApp连接器", "WHATSAPPACCOUNTS": "WhatsApp帐户", "WHATSAPPCANNEDANSWERS": "WhatsApp罐装答案", "WHATSAPPDISPOSITIONS": "WhatsApp的处置", - "WHATSAPPQUEUES": "WhatsApp队列" + "WHATSAPPQUEUES": "WhatsApp队列", + "CLIENTEMAIL": "客户电邮", + "DIALOGFLOWV2": "Dialogflow V2", + "EDIT_DIALOGFLOWV2": "编辑Dialogflow V2", + "PRIVATEKEY": "私钥", + "PROJECTID": "专案编号" } } diff --git a/public/app/main/apps/whatsapp/i18n/zh-TW.json b/public/app/main/apps/whatsapp/i18n/zh-TW.json index 75d3f47..cb5a2ee 100644 --- a/public/app/main/apps/whatsapp/i18n/zh-TW.json +++ b/public/app/main/apps/whatsapp/i18n/zh-TW.json @@ -1,47 +1,244 @@ { "WHATSAPP": { "ERRORS": { + "ACCESSKEYID_REQUIRED": "必填項", + "ACCOUNTSID_REQUIRED": "必填項", + "AGENTTRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "該值必須大於或等於", + "AGENTTRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "該值必須小於或等於", + "AGENTTRANSFERTIMEOUT_REQUIRED": "必填項", + "AGENT_REQUIRED": "必填項", + "AGENT_TIMEOUT_REQUIRED": "必填項", + "AUTHTOKEN_REQUIRED": "必填項", + "BOTNAME_REQUIRED": "必填項", + "COMMAND_REQUIRED": "必填項", + "CONDITION_REQUIRED": "必填項", "DESCRIPTION_REQUIRED": "必填項", + "DISPOSITION_REQUIRED": "必填項", + "FALSEPRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "該值必須大於或等於", + "FALSEPRIORITY_REQUIRED": "必填項", + "KEY_MAX_LENGTH": "該值的最大長度必須等於{{max}}", + "KEY_REQUIRED": "必填項", "LANGUAGE_REQUIRED": "強制場", "LEXREGION_REQUIRED": "必填項", + "LIST_REQUIRED": "必填項", + "MANDATORYDISPOSITIONPAUSEID_REQUIRED": "必填項", + "NAME_REQUIRED": "必填項", + "PHONE_REQUIRED": "必填項", + "PRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "該值必須大於或等於", + "PRIORITY_REQUIRED": "必填項", + "QUEUETRANSFERTIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "該值必須大於或等於", + "QUEUETRANSFERTIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "該值必須小於或等於", + "QUEUETRANSFERTIMEOUT_REQUIRED": "必填項", + "QUEUE_REQUIRED": "必填項", + "SECRETACCESSKEY_REQUIRED": "必填項", + "TAG_REQUIRED": "必填項", + "TEXT_REQUIRED": "必填項", + "TIMEOUT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "該值必須大於或等於", + "TIMEOUT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "該值必須小於或等於", + "TIMEOUT_REQUIRED": "必填項", "TIMES_REQUIRED": "必填項", + "TOKEN_REQUIRED": "必填項", + "TRUEPRIORITY_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "該值必須大於或等於", + "TRUEPRIORITY_REQUIRED": "必填項", + "TYPE_REQUIRED": "必填項", + "VALUE_REQUIRED": "必填項", "VARIABLE_REQUIRED": "必填項", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_GREATER_THAN_OR_EQUAL_TO": "該值必須大於或等於", + "WAITFORTHEASSIGNEDAGENT_MUST_BE_LESS_THAN_OR_EQUAL_TO": "該值必須小於或等於", + "WAITFORTHEASSIGNEDAGENT_REQUIRED": "必填項", "WELCOMEMESSAGE_MAX_LENGTH": "該值的最大長度必須等於{{max}}", - "WELCOMEMESSAGE_REQUIRED": "必填項" + "WELCOMEMESSAGE_REQUIRED": "必填項", + "CLIENTEMAIL_REQUIRED": "必填項", + "PRIVATEKEY_REQUIRED": "必填項", + "PROJECTID_REQUIRED": "必填項" }, - "HELP": {}, + "HELP": { + "LIST": "用於關聯聯繫人的聯繫人管理器列表", + "MANDATORYDISPOSITION": "強制性", + "MANDATORYDISPOSITIONPAUSEID": "啟用強制處置後暫停使用", + "MOTIONPROXY": "該字段必須具有以下格式:<協議>:// [:<端口>]。範例:https://X.Y.Z.W", + "NAME": "僅支持數字,字母和特定字符(._)", + "RECEIVEURL": "這是自動生成的API字符串,您需要使用它來從WhatsApp Connector提供程序接收帳戶內的消息(必須使用POST方法):單擊剪貼板按鈕將其複制", + "WELCOMEMESSAGE": "這是發送給新交互的第一個響應消息" + }, + "ACCESSKEYID": "訪問密鑰ID", + "ACCOUNTSID": "帳戶SID", + "ACTIONS": "動作", + "ADD_NOTE": "加註", "ADD_WHATSAPPACCOUNT": "加", "ADD_WHATSAPPCANNEDANSWER": "添加罐頭答案", "ADD_WHATSAPPDISPOSITION": "添加WhatsApp配置", "ADD_WHATSAPPQUEUE": "添加WhatsApp隊列", + "ADVANCED": "高級", + "AGENT": "代理商", "AGENTADD_QUEUE": "將代理添加到WhatsApp隊列", "AGENTADD_WHATSAPPACCOUNT": "將代理添加到WhatsApp帳戶", "AGENTADD_WHATSAPPQUEUE": "將代理添加到WhatsApp隊列", + "AGENTS": "代理商", + "AGENTSADD_QUEUE": "將代理添加到WhatsApp隊列", + "AGENTTRANSFER": "代理轉移", + "AGENTTRANSFERTIMEOUT": "代理轉移超時", + "AGENT_TIMEOUT": "代理超時", + "ALL": "所有", + "ALL_AGENTS": "所有代理商", + "ALL_TEAMS": "所有隊伍", + "AMAZONLEX": "亞馬遜Lex", "AUTHTOKEN": "驗證令牌", + "AUTOREPLY": "自動回复", + "BACK": "背部", + "BOTNAME": "機器人名稱", + "BUSY": "忙", + "CANNEDANSWERS": "罐裝答案", + "CANNED_ANSWER_NOT_FOUND": "找不到罐頭答案", + "CANNED_ANSWER_SEARCH": "輸入文本以搜索罐裝答案", + "CAPACITY": "容量", + "CLOSE": "關", + "CLOSED": "關閉", + "CLOSEMETHOD": "關閉方法", + "CLOSEURL": "關閉網址", + "COMMAND": "命令", + "CONDITION": "健康)狀況", + "CONTACT": "聯繫", + "CREATED_AT": "創建於", + "DEFAULT_PAUSE": "默認暫停", + "DELETE": "刪除", + "DELETE_INTERACTION": "刪除互動", + "DELETE_SELECTED": "刪除所選", "DELETE_WHATSAPPACCOUNT": "刪除WhatsApp帳戶", "DELETE_WHATSAPPCANNEDANSWER": "已刪除", "DELETE_WHATSAPPDISPOSITION": "刪除WhatsApp配置", "DELETE_WHATSAPPQUEUE": "刪除WhatsApp隊列", + "DESCRIPTION": "描述", + "DIALOGFLOW": "對話流", + "DISPOSITION": "性格", + "DISPOSITIONS": "性格", + "DOWNLOAD_INTERACTION": "下載", + "DOWNLOAD_WITHOUT_ATTACHMENTS": "不帶附件下載", + "DOWNLOAD_WITH_ATTACHMENTS": "帶附件下載", + "EDIT_AGENT": "編輯代理", + "EDIT_AMAZONLEX": "編輯Lex配置", + "EDIT_AUTOREPLY": "編輯自動回复", + "EDIT_CLOSE": "編輯關閉", + "EDIT_DIALOGFLOW": "編輯DialogFlow配置", + "EDIT_GOTOIF": "編輯Gotoif", + "EDIT_GOTOP": "編輯Gotop", + "EDIT_NOOP": "編輯Noop", + "EDIT_QUEUE": "編輯隊列", + "EDIT_SYSTEM": "編輯系統", + "EDIT_TAG": "編輯標籤", "EDIT_WHATSAPPACCOUNT": "編輯WhatsApp帳戶", "EDIT_WHATSAPPCANNEDANSWER": "編輯", "EDIT_WHATSAPPDISPOSITION": "編輯WhatsApp的處置", "EDIT_WHATSAPPQUEUE": "編輯WhatsApp隊列", + "FALSEPRIORITY": "錯誤的優先權", + "GENERAL": "一般", + "GOTOIF": "後藤", + "GOTOP": "Gotop", "GOTOREALTIME_WHATSAPPQUEUE": "轉到實時WhatsApp隊列", "GO_TO_WHATSAPPACCOUNTS": "轉到帳戶", + "ID": "ID", + "IDLE": "閒", + "INSERT_MESSAGE_HERE": "在此處插入消息", + "INTERACTIONS": "互動互動", "INTERACTIONS_WHATSAPPACCOUNT": "前往互動", + "KEY": "鍵", + "LANGUAGE": "語言", + "LASTMESSAGE": "最後留言", + "LEXREGION": "地區", + "LIST": "清單", + "LOGGED_IN": "已登錄(已連接SIP)", + "LOGIN_TIME": "登錄時間", + "LOGOUT": "登出", + "MANDATORYDISPOSITION": "強制性", + "MANDATORYDISPOSITIONPAUSEID": "啟用強制處置後暫停使用", + "MORE": "更多", + "MOTIONPROXY": "代理或運動域", "MULTI_SELECT_TOGGLE": "多選切換", + "NAME": "名稱", "NEW_WHATSAPPACCOUNT": "新的WhatsApp帳戶", "NEW_WHATSAPPCANNEDANSWER": "新的WhatsApp罐頭答案", "NEW_WHATSAPPDISPOSITION": "新的WhatsApp配置", "NEW_WHATSAPPQUEUE": "新的WhatsApp隊列", + "NOOP": "op", + "NOTE": "注意", + "NOTIFICATION": "通知", + "NOTIFICATIONSHAKE": "搖", + "NOTIFICATIONSOUND": "聲音", + "NOTIFICATIONTEMPLATE": "模板", + "NO_AGENT_ONLINE": "沒有在線代理", + "NO_AVAILABLE_INFO": "無可用信息", + "NO_INTERACTION_AVAILABLE": "沒有互動", "NO_WHATSAPPCANNEDANSWER_AVAILABLE": "沒有可用的WhatsApp罐裝答案", "NO_WHATSAPPDISPOSITION_AVAILABLE": "沒有可用的WhatsApp配置", "NO_WHATSAPP_ACCOUNTS_AVAILABLE": "沒有可用的WhatsApp帳戶", + "OF": "的", + "OPENED": "開了", + "PAGE": "頁", + "PARTIALPAUSE": "部分暫停", + "PAUSE": "暫停", + "PAUSED": "已暫停", + "PAUSE_TIME": "暫停時間", + "PHONE": "電話", + "PRIORITY": "優先", + "PROXY": "代理", + "QUEUE": "隊列", + "QUEUES": "s列", + "QUEUETRANSFER": "隊列傳輸", + "QUEUETRANSFERTIMEOUT": "隊列傳輸超時", + "READY": "準備", + "REALTIME": "即時的", + "RECEIVEURL": "接收網址", + "REFRESH_INTERACTIONS": "刷新互動", "REMOTE": "遠程", + "ROWSPERPAGE": "每頁行數", + "SAVE": "保存", + "SCREENRECORDING": "管理屏幕錄像", + "SEARCH_FOR_ANYONE": "搜索", + "SECRETACCESSKEY": "訪問密鑰機密", + "SELECTED": "已選", + "SELECTED_AGENTS": "選定代理商", + "SELECTED_TEAMS": "入選隊伍", + "SELECT_ALL": "全選", + "SELECT_NONE": "選擇無", + "SEND": "發送", + "SETTINGS": "設定值", + "SPYINTERACTION": "間諜互動", + "STARTEDAT": "開始於", + "START_SCREENRECORDING": "開始屏幕錄製", + "STATUS": "狀態", + "STOP_SCREENRECORDING": "停止畫面錄製", + "STRATEGY": "戰略", + "SYSTEM": "系統", + "TAG": "標籤", + "TAGS": "標籤", "TEAMADD_WHATSAPPQUEUE": "將團隊添加到WhatsApp隊列", + "TEAMS_ASSOCIATION": "車隊協會", + "TEXT": "文本", + "TIMEOUT": "超時", + "TIMER": "計時器", + "TIMES": "時報", + "TO": "至", + "TOKEN": "代幣", + "TOOLTIP_SCREENRECORDING_OFF": "屏幕錄像可用", + "TOOLTIP_SCREENRECORDING_ON": "屏幕記錄正在進行中", + "TRANSFER": "轉讓", + "TRUEPRIORITY": "真正的優先", + "TYPE": "類型", + "UNPAUSE": "結束暫停", + "VALUE": "值", + "VARIABLE": "變量", + "WAITFORTHEASSIGNEDAGENT": "等待分配的代理", + "WAITING": "等候", + "WELCOMEMESSAGE": "歡迎留言", + "WHATSAPP": "WhatsApp連接器", "WHATSAPPACCOUNTS": "WhatsApp帳戶", "WHATSAPPCANNEDANSWERS": "WhatsApp罐裝答案", "WHATSAPPDISPOSITIONS": "WhatsApp的處置", - "WHATSAPPQUEUES": "WhatsApp隊列" + "WHATSAPPQUEUES": "WhatsApp隊列", + "CLIENTEMAIL": "客戶電郵", + "DIALOGFLOWV2": "Dialogflow V2", + "EDIT_DIALOGFLOWV2": "編輯Dialogflow V2", + "PRIVATEKEY": "私鑰", + "PROJECTID": "專案編號" } } diff --git a/public/index.html b/public/index.html index 90e5b67..dfbe77a 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 f59345d..b908272 100644 --- a/public/runtime-472ac7a6568b98562237.js +++ b/public/runtime-472ac7a6568b98562237.js @@ -1 +1 @@ -var a1_0x8554=["children","object","shift","define cannot be used indirect","length","paths","slice","bind","call","exports","apply","defineProperty","__esModule","push","amdD","nmd","splice","webpackChunkmotion_client","hasOwnProperty"];!function(r,e){!function(e){for(;--e;)r.push(r.shift())}(++e)}(a1_0x8554,316);var a1_0x5917=function(r,e){return a1_0x8554[r-=0]};(()=>{"use strict";var r,e,t,n={},a={};function x(r){var e=a1_0x5917;if(a[r])return a[r][e("0x10")];var t=a[r]={id:r,loaded:!1,exports:{}};return n[r].call(t.exports,t,t.exports,x),t.loaded=!0,t.exports}x.m=n,x[(t=a1_0x5917)("0x2")]=function(){throw new Error(t("0xa"))},x.n=r=>{var e=r&&r[a1_0x5917("0x0")]?()=>r.default:()=>r;return x.d(e,{a:e}),e},x.d=(r,e)=>{var t=a1_0x5917;for(var n in e)x.o(e,n)&&!x.o(r,n)&&Object[t("0x12")](r,n,{enumerable:!0,get:e[n]})},x.g=function(){if(typeof globalThis===a1_0x5917("0x8"))return globalThis;try{return this||new Function("return this")()}catch(r){if("object"==typeof window)return window}}(),e=a1_0x5917,x.o=(r,t)=>Object.prototype[e("0x6")][e("0xf")](r,t),x[(r=a1_0x5917)("0x3")]=e=>{var t=r;return e[t("0xc")]=[],e[t("0x7")]||(e[t("0x7")]=[]),e},x.p="/",(()=>{var r=a1_0x5917,e={666:0},t=[],n=()=>{};function a(){for(var r,n=a1_0x5917,a=0;a{}),r}x.x=()=>{var r=a1_0x5917;x.x=()=>{},i=i[r("0xd")]();for(var e=0;e{for(var a,o,i=a1_0x5917,[f,s,c,l]=r,h=0,p=[];h{"use strict";var r,e,n,t={},a={};function o(r){var e=a1_0x1455;if(a[r])return a[r][e(420)];var n=a[r]={id:r,loaded:!1,exports:{}};return t[r][e(417)](n[e(420)],n,n[e(420)],o),n.loaded=!0,n[e(420)]}o.m=t,o[(n=a1_0x1455)(416)]=function(){throw new Error(n(419))},o.n=r=>{var e=r&&r.__esModule?()=>r.default:()=>r;return o.d(e,{a:e}),e},o.d=(r,e)=>{var n=a1_0x1455;for(var t in e)o.o(e,t)&&!o.o(r,t)&&Object[n(423)](r,t,{enumerable:!0,get:e[t]})},o.g=function(){if(typeof globalThis===a1_0x1455(422))return globalThis;try{return this||new Function("return this")()}catch(r){if("object"==typeof window)return window}}(),e=a1_0x1455,o.o=(r,n)=>Object.prototype[e(427)][e(417)](r,n),o[(r=a1_0x1455)(418)]=e=>{var n=r;return e.paths=[],e.children||(e[n(421)]=[]),e},o.p="/",(()=>{var r=a1_0x1455,e={666:0},n=[],t=()=>{};function a(){for(var r,t=a1_0x1455,a=0;a{}),r}o.x=()=>{var r=a1_0x1455;o.x=()=>{},u=u.slice();for(var e=0;e{for(var a,i,u=a1_0x1455,[f,l,s,x]=r,d=0,h=[];d{"use strict";var e={913:()=>{try{self["workbox:core:6.0.0-alpha.2"]&&_()}catch(e){}},977:()=>{try{self["workbox:precaching:6.0.0-alpha.2"]&&_()}catch(e){}},80:()=>{try{self["workbox:routing:6.0.0-alpha.2"]&&_()}catch(e){}},873:()=>{try{self["workbox:strategies:6.0.0-alpha.2"]&&_()}catch(e){}}},t={};function s(n){if(t[n])return t[n].exports;var a=t[n]={exports:{}};return e[n](a,a.exports,s),a.exports}(()=>{s(913);const e=(e,...t)=>{let s=e;return t.length>0&&(s+=" :: "+JSON.stringify(t)),s};class t extends Error{constructor(t,s){super(e(t,s)),this.name=t,this.details=s}}const n=new Set;const a={googleAnalytics:"googleAnalytics",precache:"precache-v2",prefix:"workbox",runtime:"runtime",suffix:"undefined"!=typeof registration?registration.scope:""},r=e=>[a.prefix,e,a.suffix].filter((e=>e&&e.length>0)).join("-"),i=e=>e||r(a.precache),o=e=>e||r(a.runtime);function c(e,t){const s=new URL(e);for(const e of t)s.searchParams.delete(e);return s.href}let h;class l{constructor(e,t,{onupgradeneeded:s,onversionchange:n}={}){this._db=null,this._name=e,this._version=t,this._onupgradeneeded=s,this._onversionchange=n||(()=>this.close())}get db(){return this._db}async open(){if(!this._db)return this._db=await new Promise(((e,t)=>{let s=!1;setTimeout((()=>{s=!0,t(new Error("The open request was blocked and timed out"))}),this.OPEN_TIMEOUT);const n=indexedDB.open(this._name,this._version);n.onerror=()=>t(n.error),n.onupgradeneeded=e=>{s?(n.transaction.abort(),n.result.close()):"function"==typeof this._onupgradeneeded&&this._onupgradeneeded(e)},n.onsuccess=()=>{const t=n.result;s?t.close():(t.onversionchange=this._onversionchange.bind(this),e(t))}})),this}async getKey(e,t){return(await this.getAllKeys(e,t,1))[0]}async getAll(e,t,s){return await this.getAllMatching(e,{query:t,count:s})}async getAllKeys(e,t,s){return(await this.getAllMatching(e,{query:t,count:s,includeKeys:!0})).map((e=>e.key))}async getAllMatching(e,{index:t,query:s=null,direction:n="next",count:a,includeKeys:r=!1}={}){return await this.transaction([e],"readonly",((i,o)=>{const c=i.objectStore(e),h=t?c.index(t):c,l=[],u=h.openCursor(s,n);u.onsuccess=()=>{const e=u.result;e?(l.push(r?e:e.value),a&&l.length>=a?o(l):e.continue()):o(l)}}))}async transaction(e,t,s){return await this.open(),await new Promise(((n,a)=>{const r=this._db.transaction(e,t);r.onabort=()=>a(r.error),r.oncomplete=()=>n(),s(r,(e=>n(e)))}))}async _call(e,t,s,...n){return await this.transaction([t],s,((s,a)=>{const r=s.objectStore(t),i=r[e].apply(r,n);i.onsuccess=()=>a(i.result)}))}close(){this._db&&(this._db.close(),this._db=null)}}l.prototype.OPEN_TIMEOUT=2e3;const u={readonly:["get","count","getKey","getAll","getAllKeys"],readwrite:["add","put","clear","delete"]};for(const[e,t]of Object.entries(u))for(const s of t)s in IDBObjectStore.prototype&&(l.prototype[s]=async function(t,...n){return await this._call(s,t,e,...n)});class d{constructor(){this.promise=new Promise(((e,t)=>{this.resolve=e,this.reject=t}))}}function f(e,t){const s=t();return e.waitUntil(s),s}async function p(e,s){let n=null;if(e.url){n=new URL(e.url).origin}if(n!==self.location.origin)throw new t("cross-origin-copy-response",{origin:n});const a=e.clone(),r={headers:new Headers(a.headers),status:a.status,statusText:a.statusText},i=s?s(r):r,o=function(){if(void 0===h){const e=new Response("");if("body"in e)try{new Response(e.body),h=!0}catch(e){h=!1}h=!1}return h}()?a.body:await a.blob();return new Response(o,i)}s(977);function y(e){if(!e)throw new t("add-to-cache-list-unexpected-type",{entry:e});if("string"==typeof e){const t=new URL(e,location.href);return{cacheKey:t.href,url:t.href}}const{revision:s,url:n}=e;if(!n)throw new t("add-to-cache-list-unexpected-type",{entry:e});if(!s){const e=new URL(n,location.href);return{cacheKey:e.href,url:e.href}}const a=new URL(n,location.href),r=new URL(n,location.href);return a.searchParams.set("__WB_REVISION__",s),{cacheKey:a.href,url:r.href}}class w{constructor(){this.updatedURLs=[],this.notUpdatedURLs=[],this.handlerWillStart=async({request:e,state:t})=>{t&&(t.originalRequest=e)},this.cachedResponseWillBeUsed=async({event:e,state:t,cachedResponse:s})=>{if("install"===e.type){const e=t.originalRequest.url;s?this.notUpdatedURLs.push(e):this.updatedURLs.push(e)}return s}}}class g{constructor({precacheController:e}){this.cacheKeyWillBeUsed=async({request:e,params:t})=>{const s=t&&t.cacheKey||this._precacheController.getCacheKeyForURL(e.url);return s?new Request(s):e},this._precacheController=e}}s(873);function _(e){return"string"==typeof e?new Request(e):e}class m{constructor(e,t){this._cacheKeys={},Object.assign(this,t),this.event=t.event,this._strategy=e,this._handlerDeferred=new d,this._extendLifetimePromises=[],this._plugins=[...e.plugins],this._pluginStateMap=new Map;for(const e of this._plugins)this._pluginStateMap.set(e,{});this.event.waitUntil(this._handlerDeferred.promise)}fetch(e){return this.waitUntil((async()=>{const{event:s}=this;let n=_(e);if("navigate"===n.mode&&s instanceof FetchEvent&&s.preloadResponse){const e=await s.preloadResponse;if(e)return e}const a=this.hasCallback("fetchDidFail")?n.clone():null;try{for(const e of this.iterateCallbacks("requestWillFetch"))n=await e({request:n.clone(),event:s})}catch(e){throw new t("plugin-error-request-will-fetch",{thrownError:e})}const r=n.clone();try{let e;e=await fetch(n,"navigate"===n.mode?void 0:this._strategy.fetchOptions);for(const t of this.iterateCallbacks("fetchDidSucceed"))e=await t({event:s,request:r,response:e});return e}catch(e){throw a&&await this.runCallbacks("fetchDidFail",{error:e,event:s,originalRequest:a.clone(),request:r.clone()}),e}})())}async fetchAndCachePut(e){const t=await this.fetch(e),s=t.clone();return this.waitUntil(this.cachePut(e,s)),t}cacheMatch(e){return this.waitUntil((async()=>{const t=_(e);let s;const{cacheName:n,matchOptions:a}=this._strategy,r=await this.getCacheKey(t,"read"),i={...a,cacheName:n};s=await caches.match(r,i);for(const e of this.iterateCallbacks("cachedResponseWillBeUsed"))s=await e({cacheName:n,matchOptions:a,cachedResponse:s,request:r,event:this.event})||void 0;return s})())}async cachePut(e,s){const a=_(e);var r;await(r=0,new Promise((e=>setTimeout(e,r))));const i=await this.getCacheKey(a,"write");if(!s)throw new t("cache-put-with-no-response",{url:(o=i.url,new URL(String(o),location.href).href.replace(new RegExp("^"+location.origin),""))});var o;const h=await this._ensureResponseSafeToCache(s);if(!h)return void 0;const{cacheName:l,matchOptions:u}=this._strategy,d=await self.caches.open(l),f=this.hasCallback("cacheDidUpdate"),p=f?await async function(e,t,s,n){const a=c(t.url,s);if(t.url===a)return e.match(t,n);const r={...n,ignoreSearch:!0},i=await e.keys(t,r);for(const t of i)if(a===c(t.url,s))return e.match(t,n)}(d,i.clone(),["__WB_REVISION__"],u):null;try{await d.put(i,f?h.clone():h)}catch(e){throw"QuotaExceededError"===e.name&&await async function(){for(const e of n)await e()}(),e}for(const e of this.iterateCallbacks("cacheDidUpdate"))await e({cacheName:l,oldResponse:p,newResponse:h.clone(),request:i,event:this.event})}async getCacheKey(e,t){if(!this._cacheKeys[t]){let s=e;for(const e of this.iterateCallbacks("cacheKeyWillBeUsed"))s=_(await e({mode:t,request:s,event:this.event,params:this.params}));this._cacheKeys[t]=s}return this._cacheKeys[t]}hasCallback(e){for(const t of this._strategy.plugins)if(e in t)return!0;return!1}async runCallbacks(e,t){for(const s of this.iterateCallbacks(e))await s(t)}*iterateCallbacks(e){for(const t of this._strategy.plugins)if("function"==typeof t[e]){const s=this._pluginStateMap.get(t),n=n=>{const a={...n,state:s};return t[e](a)};yield n}}waitUntil(e){return this._extendLifetimePromises.push(e),e}async doneWaiting(){let e;for(;e=this._extendLifetimePromises.shift();)await e}destroy(){this._handlerDeferred.resolve()}async _ensureResponseSafeToCache(e){let t=e,s=!1;for(const e of this.iterateCallbacks("cacheWillUpdate"))if(t=await e({request:this.request,response:t,event:this.event})||void 0,s=!0,!t)break;return s||t&&200!==t.status&&(t=void 0),t}}const v={cacheWillUpdate:async({response:e})=>e.redirected?await p(e):e};class R extends class{constructor(e={}){this.cacheName=o(e.cacheName),this.plugins=e.plugins||[],this.fetchOptions=e.fetchOptions,this.matchOptions=e.matchOptions}handle(e){const[t]=this.handleAll(e);return t}handleAll(e){e instanceof FetchEvent&&(e={event:e,request:e.request});const t=e.event,s="string"==typeof e.request?new Request(e.request):e.request,n="params"in e?e.params:void 0,a=new m(this,{event:t,request:s,params:n}),r=this._getResponse(a,s,t);return[r,this._awaitComplete(r,a,s,t)]}async _getResponse(e,s,n){await e.runCallbacks("handlerWillStart",{event:n,request:s});let a=void 0;try{if(a=await this._handle(s,e),!a||"error"===a.type)throw new t("no-response",{url:s.url})}catch(t){for(const r of e.iterateCallbacks("handlerDidError"))if(a=await r({error:t,event:n,request:s}),a)break;if(!a)throw t}for(const t of e.iterateCallbacks("handlerWillRespond"))a=await t({event:n,request:s,response:a});return a}async _awaitComplete(e,t,s,n){let a,r;try{a=await e}catch(r){}try{await t.runCallbacks("handlerDidRespond",{event:n,request:s,response:a}),await t.doneWaiting()}catch(e){r=e}if(await t.runCallbacks("handlerDidComplete",{event:n,request:s,response:a,error:r}),t.destroy(),r)throw r}}{constructor(e={}){e.cacheName=i(e.cacheName),super(e),this._fallbackToNetwork=!1!==e.fallbackToNetwork,this.plugins.push(v)}async _handle(e,t){const s=await t.cacheMatch(e);return s||(t.event&&"install"===t.event.type?await this._handleInstall(e,t):await this._handleFetch(e,t))}async _handleFetch(e,s){let n;if(!this._fallbackToNetwork)throw new t("missing-precache-entry",{cacheName:this.cacheName,url:e.url});return n=await s.fetch(e),n}async _handleInstall(e,s){const n=await s.fetchAndCachePut(e);let a=Boolean(n);if(n&&n.status>=400&&!this._usesCustomCacheableResponseLogic()&&(a=!1),!a)throw new t("bad-precaching-response",{url:e.url,status:n.status});return n}_usesCustomCacheableResponseLogic(){return this.plugins.some((e=>e.cacheWillUpdate&&e!==v))}}class b{constructor({cacheName:e,plugins:t=[],fallbackToNetwork:s=!0}={}){this._urlsToCacheKeys=new Map,this._urlsToCacheModes=new Map,this._cacheKeysToIntegrities=new Map,this._strategy=new R({cacheName:i(e),plugins:[...t,new g({precacheController:this})],fallbackToNetwork:s}),this.install=this.install.bind(this),this.activate=this.activate.bind(this)}get strategy(){return this._strategy}precache(e){this.addToCacheList(e),this._installAndActiveListenersAdded||(self.addEventListener("install",this.install),self.addEventListener("activate",this.activate),this._installAndActiveListenersAdded=!0)}addToCacheList(e){const s=[];for(const n of e){"string"==typeof n?s.push(n):n&&void 0===n.revision&&s.push(n.url);const{cacheKey:e,url:a}=y(n),r="string"!=typeof n&&n.revision?"reload":"default";if(this._urlsToCacheKeys.has(a)&&this._urlsToCacheKeys.get(a)!==e)throw new t("add-to-cache-list-conflicting-entries",{firstEntry:this._urlsToCacheKeys.get(a),secondEntry:e});if("string"!=typeof n&&n.integrity){if(this._cacheKeysToIntegrities.has(e)&&this._cacheKeysToIntegrities.get(e)!==n.integrity)throw new t("add-to-cache-list-conflicting-integrities",{url:a});this._cacheKeysToIntegrities.set(e,n.integrity)}if(this._urlsToCacheKeys.set(a,e),this._urlsToCacheModes.set(a,r),s.length>0){const e=`Workbox is precaching URLs without revision info: ${s.join(", ")}\nThis is generally NOT safe. Learn more at https://bit.ly/wb-precache`;console.warn(e)}}}install(e){return f(e,(async()=>{const t=new w;this.strategy.plugins.push(t);for(const[t,s]of this._urlsToCacheKeys){const n=this._cacheKeysToIntegrities.get(s),a=this._urlsToCacheModes.get(t),r=new Request(t,{integrity:n,cache:a,credentials:"same-origin"});await Promise.all(this.strategy.handleAll({params:{cacheKey:s},request:r,event:e}))}const{updatedURLs:s,notUpdatedURLs:n}=t;return{updatedURLs:s,notUpdatedURLs:n}}))}activate(e){return f(e,(async()=>{const e=await self.caches.open(this.strategy.cacheName),t=await e.keys(),s=new Set(this._urlsToCacheKeys.values()),n=[];for(const a of t)s.has(a.url)||(await e.delete(a),n.push(a.url));return{deletedURLs:n}}))}getURLsToCacheKeys(){return this._urlsToCacheKeys}getCachedURLs(){return[...this._urlsToCacheKeys.keys()]}getCacheKeyForURL(e){const t=new URL(e,location.href);return this._urlsToCacheKeys.get(t.href)}async matchPrecache(e){const t=e instanceof Request?e.url:e,s=this.getCacheKeyForURL(t);if(s){return(await self.caches.open(this.strategy.cacheName)).match(s)}}createHandlerBoundToURL(e){const s=this.getCacheKeyForURL(e);if(!s)throw new t("non-precached-url",{url:e});return t=>(t.request=new Request(e),t.params={cacheKey:s,...t.params},this.strategy.handle(t))}}let C;const U=()=>(C||(C=new b),C);s(80);const L=e=>e&&"object"==typeof e?e:{handle:e};class q{constructor(e,t,s="GET"){this.handler=L(t),this.match=e,this.method=s}}class k extends q{constructor(e,t,s){super((({url:t})=>{const s=e.exec(t.href);if(s&&(t.origin===location.origin||0===s.index))return s.slice(1)}),t,s)}}class K{constructor(){this._routes=new Map,this._defaultHandlerMap=new Map}get routes(){return this._routes}addFetchListener(){self.addEventListener("fetch",(e=>{const{request:t}=e,s=this.handleRequest({request:t,event:e});s&&e.respondWith(s)}))}addCacheListener(){self.addEventListener("message",(e=>{if(e.data&&"CACHE_URLS"===e.data.type){const{payload:t}=e.data;0;const s=Promise.all(t.urlsToCache.map((t=>{"string"==typeof t&&(t=[t]);const s=new Request(...t);return this.handleRequest({request:s,event:e})})));e.waitUntil(s),e.ports&&e.ports[0]&&s.then((()=>e.ports[0].postMessage(!0)))}}))}handleRequest({request:e,event:t}){const s=new URL(e.url,location.href);if(!s.protocol.startsWith("http"))return void 0;const n=s.origin===location.origin,{params:a,route:r}=this.findMatchingRoute({event:t,request:e,sameOrigin:n,url:s});let i=r&&r.handler;const o=e.method;if(!i&&this._defaultHandlerMap.has(o)&&(i=this._defaultHandlerMap.get(o)),!i)return void 0;let c;try{c=i.handle({url:s,request:e,event:t,params:a})}catch(e){c=Promise.reject(e)}return c instanceof Promise&&this._catchHandler&&(c=c.catch((n=>this._catchHandler.handle({url:s,request:e,event:t})))),c}findMatchingRoute({url:e,sameOrigin:t,request:s,event:n}){const a=this._routes.get(s.method)||[];for(const r of a){let a;const i=r.match({url:e,sameOrigin:t,request:s,event:n});if(i)return a=i,(Array.isArray(i)&&0===i.length||i.constructor===Object&&0===Object.keys(i).length||"boolean"==typeof i)&&(a=void 0),{route:r,params:a}}return{}}setDefaultHandler(e,t="GET"){this._defaultHandlerMap.set(t,L(e))}setCatchHandler(e){this._catchHandler=L(e)}registerRoute(e){this._routes.has(e.method)||this._routes.set(e.method,[]),this._routes.get(e.method).push(e)}unregisterRoute(e){if(!this._routes.has(e.method))throw new t("unregister-route-but-not-found-with-method",{method:e.method});const s=this._routes.get(e.method).indexOf(e);if(!(s>-1))throw new t("unregister-route-route-not-registered");this._routes.get(e.method).splice(s,1)}}let T;class x extends q{constructor(e,t){super((({request:s})=>{const n=e.getURLsToCacheKeys();for(const e of function*(e,{ignoreURLParametersMatching:t=[/^utm_/,/^fbclid$/],directoryIndex:s="index.html",cleanURLs:n=!0,urlManipulation:a}={}){const r=new URL(e,location.href);r.hash="",yield r.href;const i=function(e,t=[]){for(const s of[...e.searchParams.keys()])t.some((e=>e.test(s)))&&e.searchParams.delete(s);return e}(r,t);if(yield i.href,s&&i.pathname.endsWith("/")){const e=new URL(i.href);e.pathname+=s,yield e.href}if(n){const e=new URL(i.href);e.pathname+=".html",yield e.href}if(a){const e=a({url:r});for(const t of e)yield t.href}}(s.url,t)){const t=n.get(e);if(t)return{cacheKey:t}}}),e.strategy)}}function M(e){const s=U();!function(e,s,n){let a;if("string"==typeof e){const t=new URL(e,location.href);a=new q((({url:e})=>e.href===t.href),s,n)}else if(e instanceof RegExp)a=new k(e,s,n);else if("function"==typeof e)a=new q(e,s,n);else{if(!(e instanceof q))throw new t("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});a=e}(T||(T=new K,T.addFetchListener(),T.addCacheListener()),T).registerRoute(a)}(new x(s,e))}const N=self;var E,A;N.skipWaiting(),self.addEventListener("activate",(()=>self.clients.claim())),N.addEventListener("notificationclick",(function(e){const t=e.notification,s=e.action;switch(s){case"accept":case"reject":t.close(),e.waitUntil(N.clients.matchAll({includeUncontrolled:!0,type:"window"}).then((function(e){for(let n=0;n{"use strict";var e={913:()=>{try{self["workbox:core:6.0.0-alpha.3"]&&_()}catch(e){}},977:()=>{try{self["workbox:precaching:6.0.0-alpha.3"]&&_()}catch(e){}},80:()=>{try{self["workbox:routing:6.0.0-alpha.3"]&&_()}catch(e){}},873:()=>{try{self["workbox:strategies:6.0.0-alpha.3"]&&_()}catch(e){}}},t={};function s(n){if(t[n])return t[n].exports;var a=t[n]={exports:{}};return e[n](a,a.exports,s),a.exports}(()=>{s(913);const e=(e,...t)=>{let s=e;return t.length>0&&(s+=" :: "+JSON.stringify(t)),s};class t extends Error{constructor(t,s){super(e(t,s)),this.name=t,this.details=s}}const n=new Set;const a={googleAnalytics:"googleAnalytics",precache:"precache-v2",prefix:"workbox",runtime:"runtime",suffix:"undefined"!=typeof registration?registration.scope:""},r=e=>[a.prefix,e,a.suffix].filter((e=>e&&e.length>0)).join("-"),i=e=>e||r(a.precache),o=e=>e||r(a.runtime);function c(e,t){const s=new URL(e);for(const e of t)s.searchParams.delete(e);return s.href}let h;class l{constructor(e,t,{onupgradeneeded:s,onversionchange:n}={}){this._db=null,this._name=e,this._version=t,this._onupgradeneeded=s,this._onversionchange=n||(()=>this.close())}get db(){return this._db}async open(){if(!this._db)return this._db=await new Promise(((e,t)=>{let s=!1;setTimeout((()=>{s=!0,t(new Error("The open request was blocked and timed out"))}),this.OPEN_TIMEOUT);const n=indexedDB.open(this._name,this._version);n.onerror=()=>t(n.error),n.onupgradeneeded=e=>{s?(n.transaction.abort(),n.result.close()):"function"==typeof this._onupgradeneeded&&this._onupgradeneeded(e)},n.onsuccess=()=>{const t=n.result;s?t.close():(t.onversionchange=this._onversionchange.bind(this),e(t))}})),this}async getKey(e,t){return(await this.getAllKeys(e,t,1))[0]}async getAll(e,t,s){return await this.getAllMatching(e,{query:t,count:s})}async getAllKeys(e,t,s){return(await this.getAllMatching(e,{query:t,count:s,includeKeys:!0})).map((e=>e.key))}async getAllMatching(e,{index:t,query:s=null,direction:n="next",count:a,includeKeys:r=!1}={}){return await this.transaction([e],"readonly",((i,o)=>{const c=i.objectStore(e),h=t?c.index(t):c,l=[],u=h.openCursor(s,n);u.onsuccess=()=>{const e=u.result;e?(l.push(r?e:e.value),a&&l.length>=a?o(l):e.continue()):o(l)}}))}async transaction(e,t,s){return await this.open(),await new Promise(((n,a)=>{const r=this._db.transaction(e,t);r.onabort=()=>a(r.error),r.oncomplete=()=>n(),s(r,(e=>n(e)))}))}async _call(e,t,s,...n){return await this.transaction([t],s,((s,a)=>{const r=s.objectStore(t),i=r[e].apply(r,n);i.onsuccess=()=>a(i.result)}))}close(){this._db&&(this._db.close(),this._db=null)}}l.prototype.OPEN_TIMEOUT=2e3;const u={readonly:["get","count","getKey","getAll","getAllKeys"],readwrite:["add","put","clear","delete"]};for(const[e,t]of Object.entries(u))for(const s of t)s in IDBObjectStore.prototype&&(l.prototype[s]=async function(t,...n){return await this._call(s,t,e,...n)});class d{constructor(){this.promise=new Promise(((e,t)=>{this.resolve=e,this.reject=t}))}}function f(e,t){const s=t();return e.waitUntil(s),s}async function p(e,s){let n=null;if(e.url){n=new URL(e.url).origin}if(n!==self.location.origin)throw new t("cross-origin-copy-response",{origin:n});const a=e.clone(),r={headers:new Headers(a.headers),status:a.status,statusText:a.statusText},i=s?s(r):r,o=function(){if(void 0===h){const e=new Response("");if("body"in e)try{new Response(e.body),h=!0}catch(e){h=!1}h=!1}return h}()?a.body:await a.blob();return new Response(o,i)}s(977);function y(e){if(!e)throw new t("add-to-cache-list-unexpected-type",{entry:e});if("string"==typeof e){const t=new URL(e,location.href);return{cacheKey:t.href,url:t.href}}const{revision:s,url:n}=e;if(!n)throw new t("add-to-cache-list-unexpected-type",{entry:e});if(!s){const e=new URL(n,location.href);return{cacheKey:e.href,url:e.href}}const a=new URL(n,location.href),r=new URL(n,location.href);return a.searchParams.set("__WB_REVISION__",s),{cacheKey:a.href,url:r.href}}class w{constructor(){this.updatedURLs=[],this.notUpdatedURLs=[],this.handlerWillStart=async({request:e,state:t})=>{t&&(t.originalRequest=e)},this.cachedResponseWillBeUsed=async({event:e,state:t,cachedResponse:s})=>{if("install"===e.type){const e=t.originalRequest.url;s?this.notUpdatedURLs.push(e):this.updatedURLs.push(e)}return s}}}class g{constructor({precacheController:e}){this.cacheKeyWillBeUsed=async({request:e,params:t})=>{const s=t&&t.cacheKey||this._precacheController.getCacheKeyForURL(e.url);return s?new Request(s):e},this._precacheController=e}}s(873);function _(e){return"string"==typeof e?new Request(e):e}class m{constructor(e,t){this._cacheKeys={},Object.assign(this,t),this.event=t.event,this._strategy=e,this._handlerDeferred=new d,this._extendLifetimePromises=[],this._plugins=[...e.plugins],this._pluginStateMap=new Map;for(const e of this._plugins)this._pluginStateMap.set(e,{});this.event.waitUntil(this._handlerDeferred.promise)}fetch(e){return this.waitUntil((async()=>{const{event:s}=this;let n=_(e);if("navigate"===n.mode&&s instanceof FetchEvent&&s.preloadResponse){const e=await s.preloadResponse;if(e)return e}const a=this.hasCallback("fetchDidFail")?n.clone():null;try{for(const e of this.iterateCallbacks("requestWillFetch"))n=await e({request:n.clone(),event:s})}catch(e){throw new t("plugin-error-request-will-fetch",{thrownError:e})}const r=n.clone();try{let e;e=await fetch(n,"navigate"===n.mode?void 0:this._strategy.fetchOptions);for(const t of this.iterateCallbacks("fetchDidSucceed"))e=await t({event:s,request:r,response:e});return e}catch(e){throw a&&await this.runCallbacks("fetchDidFail",{error:e,event:s,originalRequest:a.clone(),request:r.clone()}),e}})())}async fetchAndCachePut(e){const t=await this.fetch(e),s=t.clone();return this.waitUntil(this.cachePut(e,s)),t}cacheMatch(e){return this.waitUntil((async()=>{const t=_(e);let s;const{cacheName:n,matchOptions:a}=this._strategy,r=await this.getCacheKey(t,"read"),i={...a,cacheName:n};s=await caches.match(r,i);for(const e of this.iterateCallbacks("cachedResponseWillBeUsed"))s=await e({cacheName:n,matchOptions:a,cachedResponse:s,request:r,event:this.event})||void 0;return s})())}async cachePut(e,s){const a=_(e);var r;await(r=0,new Promise((e=>setTimeout(e,r))));const i=await this.getCacheKey(a,"write");if(!s)throw new t("cache-put-with-no-response",{url:(o=i.url,new URL(String(o),location.href).href.replace(new RegExp("^"+location.origin),""))});var o;const h=await this._ensureResponseSafeToCache(s);if(!h)return void 0;const{cacheName:l,matchOptions:u}=this._strategy,d=await self.caches.open(l),f=this.hasCallback("cacheDidUpdate"),p=f?await async function(e,t,s,n){const a=c(t.url,s);if(t.url===a)return e.match(t,n);const r={...n,ignoreSearch:!0},i=await e.keys(t,r);for(const t of i)if(a===c(t.url,s))return e.match(t,n)}(d,i.clone(),["__WB_REVISION__"],u):null;try{await d.put(i,f?h.clone():h)}catch(e){throw"QuotaExceededError"===e.name&&await async function(){for(const e of n)await e()}(),e}for(const e of this.iterateCallbacks("cacheDidUpdate"))await e({cacheName:l,oldResponse:p,newResponse:h.clone(),request:i,event:this.event})}async getCacheKey(e,t){if(!this._cacheKeys[t]){let s=e;for(const e of this.iterateCallbacks("cacheKeyWillBeUsed"))s=_(await e({mode:t,request:s,event:this.event,params:this.params}));this._cacheKeys[t]=s}return this._cacheKeys[t]}hasCallback(e){for(const t of this._strategy.plugins)if(e in t)return!0;return!1}async runCallbacks(e,t){for(const s of this.iterateCallbacks(e))await s(t)}*iterateCallbacks(e){for(const t of this._strategy.plugins)if("function"==typeof t[e]){const s=this._pluginStateMap.get(t),n=n=>{const a={...n,state:s};return t[e](a)};yield n}}waitUntil(e){return this._extendLifetimePromises.push(e),e}async doneWaiting(){let e;for(;e=this._extendLifetimePromises.shift();)await e}destroy(){this._handlerDeferred.resolve()}async _ensureResponseSafeToCache(e){let t=e,s=!1;for(const e of this.iterateCallbacks("cacheWillUpdate"))if(t=await e({request:this.request,response:t,event:this.event})||void 0,s=!0,!t)break;return s||t&&200!==t.status&&(t=void 0),t}}const v={cacheWillUpdate:async({response:e})=>e.redirected?await p(e):e};class R extends class{constructor(e={}){this.cacheName=o(e.cacheName),this.plugins=e.plugins||[],this.fetchOptions=e.fetchOptions,this.matchOptions=e.matchOptions}handle(e){const[t]=this.handleAll(e);return t}handleAll(e){e instanceof FetchEvent&&(e={event:e,request:e.request});const t=e.event,s="string"==typeof e.request?new Request(e.request):e.request,n="params"in e?e.params:void 0,a=new m(this,{event:t,request:s,params:n}),r=this._getResponse(a,s,t);return[r,this._awaitComplete(r,a,s,t)]}async _getResponse(e,s,n){await e.runCallbacks("handlerWillStart",{event:n,request:s});let a=void 0;try{if(a=await this._handle(s,e),!a||"error"===a.type)throw new t("no-response",{url:s.url})}catch(t){for(const r of e.iterateCallbacks("handlerDidError"))if(a=await r({error:t,event:n,request:s}),a)break;if(!a)throw t}for(const t of e.iterateCallbacks("handlerWillRespond"))a=await t({event:n,request:s,response:a});return a}async _awaitComplete(e,t,s,n){let a,r;try{a=await e}catch(r){}try{await t.runCallbacks("handlerDidRespond",{event:n,request:s,response:a}),await t.doneWaiting()}catch(e){r=e}if(await t.runCallbacks("handlerDidComplete",{event:n,request:s,response:a,error:r}),t.destroy(),r)throw r}}{constructor(e={}){e.cacheName=i(e.cacheName),super(e),this._fallbackToNetwork=!1!==e.fallbackToNetwork,this.plugins.push(v)}async _handle(e,t){const s=await t.cacheMatch(e);return s||(t.event&&"install"===t.event.type?await this._handleInstall(e,t):await this._handleFetch(e,t))}async _handleFetch(e,s){let n;if(!this._fallbackToNetwork)throw new t("missing-precache-entry",{cacheName:this.cacheName,url:e.url});return n=await s.fetch(e),n}async _handleInstall(e,s){const n=await s.fetchAndCachePut(e);let a=Boolean(n);if(n&&n.status>=400&&!this._usesCustomCacheableResponseLogic()&&(a=!1),!a)throw new t("bad-precaching-response",{url:e.url,status:n.status});return n}_usesCustomCacheableResponseLogic(){return this.plugins.some((e=>e.cacheWillUpdate&&e!==v))}}class b{constructor({cacheName:e,plugins:t=[],fallbackToNetwork:s=!0}={}){this._urlsToCacheKeys=new Map,this._urlsToCacheModes=new Map,this._cacheKeysToIntegrities=new Map,this._strategy=new R({cacheName:i(e),plugins:[...t,new g({precacheController:this})],fallbackToNetwork:s}),this.install=this.install.bind(this),this.activate=this.activate.bind(this)}get strategy(){return this._strategy}precache(e){this.addToCacheList(e),this._installAndActiveListenersAdded||(self.addEventListener("install",this.install),self.addEventListener("activate",this.activate),this._installAndActiveListenersAdded=!0)}addToCacheList(e){const s=[];for(const n of e){"string"==typeof n?s.push(n):n&&void 0===n.revision&&s.push(n.url);const{cacheKey:e,url:a}=y(n),r="string"!=typeof n&&n.revision?"reload":"default";if(this._urlsToCacheKeys.has(a)&&this._urlsToCacheKeys.get(a)!==e)throw new t("add-to-cache-list-conflicting-entries",{firstEntry:this._urlsToCacheKeys.get(a),secondEntry:e});if("string"!=typeof n&&n.integrity){if(this._cacheKeysToIntegrities.has(e)&&this._cacheKeysToIntegrities.get(e)!==n.integrity)throw new t("add-to-cache-list-conflicting-integrities",{url:a});this._cacheKeysToIntegrities.set(e,n.integrity)}if(this._urlsToCacheKeys.set(a,e),this._urlsToCacheModes.set(a,r),s.length>0){const e=`Workbox is precaching URLs without revision info: ${s.join(", ")}\nThis is generally NOT safe. Learn more at https://bit.ly/wb-precache`;console.warn(e)}}}install(e){return f(e,(async()=>{const t=new w;this.strategy.plugins.push(t);for(const[t,s]of this._urlsToCacheKeys){const n=this._cacheKeysToIntegrities.get(s),a=this._urlsToCacheModes.get(t),r=new Request(t,{integrity:n,cache:a,credentials:"same-origin"});await Promise.all(this.strategy.handleAll({params:{cacheKey:s},request:r,event:e}))}const{updatedURLs:s,notUpdatedURLs:n}=t;return{updatedURLs:s,notUpdatedURLs:n}}))}activate(e){return f(e,(async()=>{const e=await self.caches.open(this.strategy.cacheName),t=await e.keys(),s=new Set(this._urlsToCacheKeys.values()),n=[];for(const a of t)s.has(a.url)||(await e.delete(a),n.push(a.url));return{deletedURLs:n}}))}getURLsToCacheKeys(){return this._urlsToCacheKeys}getCachedURLs(){return[...this._urlsToCacheKeys.keys()]}getCacheKeyForURL(e){const t=new URL(e,location.href);return this._urlsToCacheKeys.get(t.href)}async matchPrecache(e){const t=e instanceof Request?e.url:e,s=this.getCacheKeyForURL(t);if(s){return(await self.caches.open(this.strategy.cacheName)).match(s)}}createHandlerBoundToURL(e){const s=this.getCacheKeyForURL(e);if(!s)throw new t("non-precached-url",{url:e});return t=>(t.request=new Request(e),t.params={cacheKey:s,...t.params},this.strategy.handle(t))}}let C;const U=()=>(C||(C=new b),C);s(80);const L=e=>e&&"object"==typeof e?e:{handle:e};class q{constructor(e,t,s="GET"){this.handler=L(t),this.match=e,this.method=s}}class k extends q{constructor(e,t,s){super((({url:t})=>{const s=e.exec(t.href);if(s&&(t.origin===location.origin||0===s.index))return s.slice(1)}),t,s)}}class K{constructor(){this._routes=new Map,this._defaultHandlerMap=new Map}get routes(){return this._routes}addFetchListener(){self.addEventListener("fetch",(e=>{const{request:t}=e,s=this.handleRequest({request:t,event:e});s&&e.respondWith(s)}))}addCacheListener(){self.addEventListener("message",(e=>{if(e.data&&"CACHE_URLS"===e.data.type){const{payload:t}=e.data;0;const s=Promise.all(t.urlsToCache.map((t=>{"string"==typeof t&&(t=[t]);const s=new Request(...t);return this.handleRequest({request:s,event:e})})));e.waitUntil(s),e.ports&&e.ports[0]&&s.then((()=>e.ports[0].postMessage(!0)))}}))}handleRequest({request:e,event:t}){const s=new URL(e.url,location.href);if(!s.protocol.startsWith("http"))return void 0;const n=s.origin===location.origin,{params:a,route:r}=this.findMatchingRoute({event:t,request:e,sameOrigin:n,url:s});let i=r&&r.handler;const o=e.method;if(!i&&this._defaultHandlerMap.has(o)&&(i=this._defaultHandlerMap.get(o)),!i)return void 0;let c;try{c=i.handle({url:s,request:e,event:t,params:a})}catch(e){c=Promise.reject(e)}return c instanceof Promise&&this._catchHandler&&(c=c.catch((n=>this._catchHandler.handle({url:s,request:e,event:t})))),c}findMatchingRoute({url:e,sameOrigin:t,request:s,event:n}){const a=this._routes.get(s.method)||[];for(const r of a){let a;const i=r.match({url:e,sameOrigin:t,request:s,event:n});if(i)return a=i,(Array.isArray(i)&&0===i.length||i.constructor===Object&&0===Object.keys(i).length||"boolean"==typeof i)&&(a=void 0),{route:r,params:a}}return{}}setDefaultHandler(e,t="GET"){this._defaultHandlerMap.set(t,L(e))}setCatchHandler(e){this._catchHandler=L(e)}registerRoute(e){this._routes.has(e.method)||this._routes.set(e.method,[]),this._routes.get(e.method).push(e)}unregisterRoute(e){if(!this._routes.has(e.method))throw new t("unregister-route-but-not-found-with-method",{method:e.method});const s=this._routes.get(e.method).indexOf(e);if(!(s>-1))throw new t("unregister-route-route-not-registered");this._routes.get(e.method).splice(s,1)}}let T;class x extends q{constructor(e,t){super((({request:s})=>{const n=e.getURLsToCacheKeys();for(const e of function*(e,{ignoreURLParametersMatching:t=[/^utm_/,/^fbclid$/],directoryIndex:s="index.html",cleanURLs:n=!0,urlManipulation:a}={}){const r=new URL(e,location.href);r.hash="",yield r.href;const i=function(e,t=[]){for(const s of[...e.searchParams.keys()])t.some((e=>e.test(s)))&&e.searchParams.delete(s);return e}(r,t);if(yield i.href,s&&i.pathname.endsWith("/")){const e=new URL(i.href);e.pathname+=s,yield e.href}if(n){const e=new URL(i.href);e.pathname+=".html",yield e.href}if(a){const e=a({url:r});for(const t of e)yield t.href}}(s.url,t)){const t=n.get(e);if(t)return{cacheKey:t}}}),e.strategy)}}function M(e){const s=U();!function(e,s,n){let a;if("string"==typeof e){const t=new URL(e,location.href);a=new q((({url:e})=>e.href===t.href),s,n)}else if(e instanceof RegExp)a=new k(e,s,n);else if("function"==typeof e)a=new q(e,s,n);else{if(!(e instanceof q))throw new t("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});a=e}(T||(T=new K,T.addFetchListener(),T.addCacheListener()),T).registerRoute(a)}(new x(s,e))}const N=self;var E,A;N.skipWaiting(),self.addEventListener("activate",(()=>self.clients.claim())),N.addEventListener("notificationclick",(function(e){const t=e.notification,s=e.action;switch(s){case"accept":case"reject":t.close(),e.waitUntil(N.clients.matchAll({includeUncontrolled:!0,type:"window"}).then((function(e){for(let n=0;n {{list.name}} - None diff --git a/public/src/js/modules/main/apps/tools/views/dispositions/create/dialog.html/dialog.html b/public/src/js/modules/main/apps/tools/views/dispositions/create/dialog.html/dialog.html index 9137a37..d09d1c9 100644 --- a/public/src/js/modules/main/apps/tools/views/dispositions/create/dialog.html/dialog.html +++ b/public/src/js/modules/main/apps/tools/views/dispositions/create/dialog.html/dialog.html @@ -1,4 +1,8 @@ - +
    =_0x3d1f5b?(_0x44d3a9=_0x3d1f5b,_0x3258d8=0xc8):_0x3258d8=0xce,_0x2adeeb['status'](_0x3258d8),_0x2adeeb[_0x1743aa('0x8a')](_0x1743aa('0x1e'),_0x5f1e75+'-'+_0x44d3a9+'/'+_0x3d1f5b)[_0x1743aa('0x3')](_0x39677e);}return null;};}function saveUpdates(_0x44d8be){return function(_0x3d0769){const _0xcee1ea=a5_0x101f;if(_0x3d0769)return _0x3d0769[_0xcee1ea('0x37')](_0x44d8be)[_0xcee1ea('0x83')](function(_0x1adfce){return _0x1adfce;});return null;};}function removeEntity(_0x3cb19d){return function(_0x4ccaec){const _0x1618ea=a5_0x101f;if(_0x4ccaec)return _0x4ccaec[_0x1618ea('0x3c')]()[_0x1618ea('0x83')](function(){const _0x49e0ef=_0x1618ea,_0x299f95=_0x4ccaec['get']({'plain':!![]}),_0x3b364d='CustomReports';return db['UserProfileResource'][_0x49e0ef('0x3c')]({'where':{'type':_0x3b364d,'resourceId':_0x299f95['id']}})['then'](function(){return _0x4ccaec;});})[_0x1618ea('0x83')](function(){const _0x56d009=_0x1618ea;_0x3cb19d[_0x56d009('0x67')](0xcc)[_0x56d009('0x68')]();});};}function handleEntityNotFound(_0x1058bf){return function(_0x4bbf2a){const _0x518b32=a5_0x101f;return!_0x4bbf2a&&_0x1058bf[_0x518b32('0x1d')](0x194),_0x4bbf2a;};}function handleError(_0x3caf5a,_0x10b0f9){return _0x10b0f9=_0x10b0f9||0x1f4,function(_0x271707){const _0x5b1e0a=a5_0x101f;logger['error'](_0x271707[_0x5b1e0a('0x8e')]),_0x271707[_0x5b1e0a('0x52')]&&delete _0x271707['name'],_0x3caf5a[_0x5b1e0a('0x67')](_0x10b0f9)[_0x5b1e0a('0x45')](_0x271707);};}exports[_0x18fe05('0x12')]=function(_0x264b27,_0x400a22){const _0x5cfe0c=_0x18fe05;let _0x396af9={};const _0x517cbf={},_0x54491a={'count':0x0,'rows':[]},_0x2c3b06=_[_0x5cfe0c('0x64')](db[_0x5cfe0c('0x50')][_0x5cfe0c('0x9')],function(_0x5d33ff){const _0x5256e0=_0x5cfe0c;return{'name':_0x5d33ff['fieldName'],'type':_0x5d33ff[_0x5256e0('0x28')][_0x5256e0('0x6a')]};});_0x517cbf[_0x5cfe0c('0x6c')]=_[_0x5cfe0c('0x64')](_0x2c3b06,'name'),_0x517cbf['query']=_[_0x5cfe0c('0x6')](_0x264b27[_0x5cfe0c('0x38')]),_0x517cbf[_0x5cfe0c('0x7c')]=_[_0x5cfe0c('0x35')](_0x517cbf['model'],_0x517cbf['query']),_0x396af9[_0x5cfe0c('0x48')]=_[_0x5cfe0c('0x35')](_0x517cbf[_0x5cfe0c('0x6c')],qs[_0x5cfe0c('0x3d')](_0x264b27[_0x5cfe0c('0x38')][_0x5cfe0c('0x3d')])),_0x396af9['attributes']=_0x396af9[_0x5cfe0c('0x48')][_0x5cfe0c('0x4f')]?_0x396af9[_0x5cfe0c('0x48')]:_0x517cbf[_0x5cfe0c('0x6c')];typeof _0x264b27[_0x5cfe0c('0x38')]['nolimit']===_0x5cfe0c('0x89')&&(_0x396af9[_0x5cfe0c('0x87')]=qs[_0x5cfe0c('0x87')](_0x264b27['query'][_0x5cfe0c('0x87')]),_0x396af9[_0x5cfe0c('0x14')]=qs[_0x5cfe0c('0x14')](_0x264b27[_0x5cfe0c('0x38')][_0x5cfe0c('0x14')]));_0x396af9[_0x5cfe0c('0x22')]=qs[_0x5cfe0c('0x29')](_0x264b27[_0x5cfe0c('0x38')][_0x5cfe0c('0x29')]),_0x396af9[_0x5cfe0c('0x8b')]=qs[_0x5cfe0c('0x7c')](_['pick'](_0x264b27['query'],_0x517cbf[_0x5cfe0c('0x7c')]),_0x2c3b06);_0x264b27[_0x5cfe0c('0x38')][_0x5cfe0c('0x46')]&&(_0x396af9['where']=_[_0x5cfe0c('0xe')](_0x396af9[_0x5cfe0c('0x8b')],{[Op['or']]:_['map'](_0x2c3b06,function(_0x4af039){const _0x47b45a=_0x5cfe0c;if(_0x4af039[_0x47b45a('0x28')]!==_0x47b45a('0x8d')){const _0x422376={};return _0x422376[_0x4af039['name']]={[Op[_0x47b45a('0x74')]]:'%'+_0x264b27[_0x47b45a('0x38')][_0x47b45a('0x46')]+'%'},_0x422376;}})}));_0x396af9=_[_0x5cfe0c('0xe')]({},_0x396af9,_0x264b27[_0x5cfe0c('0x3e')]);const _0x2a7287={'where':_0x396af9[_0x5cfe0c('0x8b')]};return db[_0x5cfe0c('0x50')][_0x5cfe0c('0x76')](_0x2a7287)[_0x5cfe0c('0x83')](function(_0x4200a1){const _0x2b3e3e=_0x5cfe0c;return _0x54491a[_0x2b3e3e('0x76')]=_0x4200a1,_0x264b27[_0x2b3e3e('0x38')]['includeAll']&&(_0x396af9[_0x2b3e3e('0x60')]=[{'all':!![]}]),db[_0x2b3e3e('0x50')]['findAll'](_0x396af9);})['then'](function(_0x22e292){return _0x54491a['rows']=_0x22e292,_0x54491a;})[_0x5cfe0c('0x83')](respondWithFilteredResult(_0x400a22,_0x396af9))[_0x5cfe0c('0x10')](handleError(_0x400a22,null));},exports[_0x18fe05('0x21')]=function(_0x25c196,_0x3f225e){const _0x4ab251=_0x18fe05;let _0xa93a4f={'raw':![],'where':{'id':_0x25c196[_0x4ab251('0x41')]['id']}};const _0x583816={};return _0x583816[_0x4ab251('0x6c')]=_[_0x4ab251('0x6')](db[_0x4ab251('0x50')][_0x4ab251('0x9')]),_0x583816[_0x4ab251('0x38')]=_['keys'](_0x25c196[_0x4ab251('0x38')]),_0x583816[_0x4ab251('0x7c')]=_[_0x4ab251('0x35')](_0x583816[_0x4ab251('0x6c')],_0x583816['query']),_0xa93a4f[_0x4ab251('0x48')]=_[_0x4ab251('0x35')](_0x583816[_0x4ab251('0x6c')],qs['fields'](_0x25c196[_0x4ab251('0x38')][_0x4ab251('0x3d')])),_0xa93a4f[_0x4ab251('0x48')]=_0xa93a4f[_0x4ab251('0x48')][_0x4ab251('0x4f')]?_0xa93a4f['attributes']:_0x583816[_0x4ab251('0x6c')],_0x25c196[_0x4ab251('0x38')]['includeAll']&&(_0xa93a4f[_0x4ab251('0x60')]=[{'all':!![]}]),_0xa93a4f=_['merge']({},_0xa93a4f,_0x25c196[_0x4ab251('0x3e')]),db[_0x4ab251('0x50')][_0x4ab251('0x3f')](_0xa93a4f)[_0x4ab251('0x83')](handleEntityNotFound(_0x3f225e,null))[_0x4ab251('0x83')](respondWithResult(_0x3f225e,null))[_0x4ab251('0x10')](handleError(_0x3f225e,null));},exports['create']=function(_0xef9fe9,_0x1e0e26){const _0x3c6b6b=_0x18fe05;return db[_0x3c6b6b('0x50')][_0x3c6b6b('0x19')](_0xef9fe9[_0x3c6b6b('0x5b')],{})['then'](function(_0x50f254){const _0x1cf32c=_0x3c6b6b,_0x291f93=_0xef9fe9['user']['get']({'plain':!![]});if(!_0x291f93)throw new Error(_0x1cf32c('0x73'));if(_0x291f93[_0x1cf32c('0x4d')]===_0x1cf32c('0x79')){const _0x258b87=_0x50f254[_0x1cf32c('0x5a')]({'plain':!![]}),_0x2a6a0c=_0x1cf32c('0x0');return db[_0x1cf32c('0x65')][_0x1cf32c('0x3f')]({'where':{'name':_0x2a6a0c,'userProfileId':_0x291f93[_0x1cf32c('0x5')]},'raw':!![]})[_0x1cf32c('0x83')](function(_0x712fd7){const _0x5421d2=_0x1cf32c;return _0x712fd7&&_0x712fd7[_0x5421d2('0x57')]===0x0?db[_0x5421d2('0x55')][_0x5421d2('0x19')]({'name':_0x258b87[_0x5421d2('0x52')],'resourceId':_0x258b87['id'],'type':_0x5421d2('0x6e'),'sectionId':_0x712fd7['id']},{})[_0x5421d2('0x83')](function(){return _0x50f254;}):_0x50f254;})['catch'](function(_0x215a4){const _0x43b155=_0x1cf32c;logger[_0x43b155('0x56')](_0x43b155('0x8'),_0x215a4);throw _0x215a4;});}return _0x50f254;})['then'](respondWithResult(_0x1e0e26,0xc9))[_0x3c6b6b('0x10')](handleError(_0x1e0e26,null));},exports[_0x18fe05('0x37')]=function(_0x247594,_0x47cb21){const _0x492294=_0x18fe05;return _0x247594[_0x492294('0x5b')]['id']&&delete _0x247594[_0x492294('0x5b')]['id'],db[_0x492294('0x50')][_0x492294('0x3f')]({'where':{'id':_0x247594['params']['id']}})[_0x492294('0x83')](handleEntityNotFound(_0x47cb21,null))['then'](saveUpdates(_0x247594[_0x492294('0x5b')],null))['then'](respondWithResult(_0x47cb21,null))[_0x492294('0x10')](handleError(_0x47cb21,null));},exports[_0x18fe05('0x3c')]=function(_0x4b7eb1,_0x20b7ca){const _0x1a9cfd=_0x18fe05;return db[_0x1a9cfd('0x50')][_0x1a9cfd('0x3f')]({'where':{'id':_0x4b7eb1['params']['id']}})[_0x1a9cfd('0x83')](handleEntityNotFound(_0x20b7ca,null))[_0x1a9cfd('0x83')](removeEntity(_0x20b7ca,null))[_0x1a9cfd('0x10')](handleError(_0x20b7ca,null));},exports['preview']=function(_0x3d649d,_0x1ca32b){const _0x1207be=_0x18fe05,_0x2cfcb0=0xa,_0xbdb717=[_0x1207be('0x78'),'left_join',_0x1207be('0x1'),_0x1207be('0xa')],_0x2cdca0={'SUM':_0x1207be('0x43'),'COUNT':_0x1207be('0x18'),'COUNT\x20DISTINCT':'COUNT(DISTINCT\x20%s)','MAX':_0x1207be('0x5c'),'MIN':_0x1207be('0x75'),'AVG':'AVG(%s)','GROUP_CONCAT':'GROUP_CONCAT(%s)','GROUP_CONCAT\x20ASC':_0x1207be('0x16'),'GROUP_CONCAT\x20DESC':_0x1207be('0x5f')},_0x12f578={'SEC_TO_TIME':_0x1207be('0x8c'),'DATE':'DATE(%s)','HOUR':_0x1207be('0x49'),'ROUND':_0x1207be('0x7f'),'UNIX_TIMESTAMP':'UNIX_TIMESTAMP(%s)'},_0x456066=function(_0x112a41){const _0x17c28b=_0x1207be;return!_['includes']([_0x17c28b('0x26'),_0x17c28b('0x39'),_0x17c28b('0x7e'),_0x17c28b('0x33')],_0x112a41);},_0x412cf7=function(_0x48f1eb){const _0x21d25a=_0x1207be;if(!_0x48f1eb||!_0x48f1eb[_0x21d25a('0x42')][_0x21d25a('0x4f')])return'';let _0x5eebcc='(';for(let _0x13be5d=0x0;_0x13be5d<_0x48f1eb[_0x21d25a('0x42')][_0x21d25a('0x4f')];_0x13be5d+=0x1){_0x13be5d>0x0&&(_0x5eebcc+='\x20'+_0x48f1eb[_0x21d25a('0x4b')]+'\x20'),_0x5eebcc+=_0x48f1eb[_0x21d25a('0x42')][_0x13be5d][_0x21d25a('0x23')]?_0x412cf7(_0x48f1eb[_0x21d25a('0x42')][_0x13be5d][_0x21d25a('0x23')]):_0x48f1eb[_0x21d25a('0x42')][_0x13be5d][_0x21d25a('0x70')]+'\x20'+_0x48f1eb[_0x21d25a('0x42')][_0x13be5d][_0x21d25a('0x84')]+(_0x456066(_0x48f1eb[_0x21d25a('0x42')][_0x13be5d][_0x21d25a('0x84')])?'\x20'+_0x48f1eb[_0x21d25a('0x42')][_0x13be5d][_0x21d25a('0x81')]:'');}return _0x5eebcc+')';};let _0x578e4d={'where':{'id':_0x3d649d[_0x1207be('0x41')]['id']}},_0x684984,_0x1c2959,_0x2f0982;return _0x578e4d=_[_0x1207be('0xe')]({},_0x578e4d,_0x3d649d[_0x1207be('0x3e')]),db[_0x1207be('0x50')][_0x1207be('0x3f')](_0x578e4d)['then'](function(_0x4cdb4f){const _0x3e785c=_0x1207be;if(_0x4cdb4f)return _0x684984=_0x4cdb4f,_0x4cdb4f[_0x3e785c('0x15')]();return null;})[_0x1207be('0x83')](function(_0x19ce4a){const _0x42db14=_0x1207be;if(_0x19ce4a){if(!_0x19ce4a[_0x42db14('0x4f')])throw new ValidationErrorItem('Please\x20insert\x20at\x20least\x20one\x20field',0x193);return _0x1c2959=_0x19ce4a,db['AnalyticMetric'][_0x42db14('0x2e')]({'raw':!![]});}return null;})[_0x1207be('0x83')](function(_0x2c0525){const _0x30210f=_0x1207be;if(_0x2c0525){_0x2f0982=_[_0x30210f('0x5d')](_0x2c0525,'id');let _0x64124;const _0x381c01=squel[_0x30210f('0x72')]();_0x381c01[_0x30210f('0x1c')](_0x684984['table']);for(let _0x2fec04=0x0;_0x2fec04<_0x1c2959[_0x30210f('0x4f')];_0x2fec04+=0x1){_0x64124=_0x1c2959[_0x2fec04][_0x30210f('0x7a')]?_0x2f0982[_0x1c2959[_0x2fec04][_0x30210f('0x7a')]][_0x30210f('0x44')]:_0x1c2959[_0x2fec04][_0x30210f('0x70')],_0x64124=_0x1c2959[_0x2fec04]['function']?_['replace'](_0x2cdca0[_0x1c2959[_0x2fec04]['function']],'%s',_0x64124):_0x64124,_0x64124=_0x1c2959[_0x2fec04][_0x30210f('0xb')]?_['replace'](_0x12f578[_0x1c2959[_0x2fec04][_0x30210f('0xb')]],'%s',_0x64124):_0x64124,_0x1c2959[_0x2fec04][_0x30210f('0x61')]&&_0x381c01[_0x30210f('0x23')](_0x64124),_0x1c2959[_0x2fec04]['orderBy']&&_0x381c01['order'](_0x64124,_0x1c2959[_0x2fec04][_0x30210f('0x6d')]===_0x30210f('0x11')?![]:!![]),_0x381c01[_0x30210f('0x70')](_0x64124,_0x1c2959[_0x2fec04][_0x30210f('0x77')]||_0x64124);}if(_0x684984['joins']){_0x684984[_0x30210f('0x20')]=JSON[_0x30210f('0x2f')](_0x684984[_0x30210f('0x20')]);for(let _0x8ee4b3=0x0;_0x8ee4b3<_0x684984[_0x30210f('0x20')]['length'];_0x8ee4b3+=0x1){_0x684984[_0x30210f('0x20')][_0x8ee4b3][_0x30210f('0x28')]&&_[_0x30210f('0x36')](_0xbdb717,_0x684984[_0x30210f('0x20')][_0x8ee4b3][_0x30210f('0x28')])&&_0x684984[_0x30210f('0x20')][_0x8ee4b3][_0x30210f('0x4')]&&_0x684984[_0x30210f('0x20')][_0x8ee4b3][_0x30210f('0x2c')]&&_0x684984[_0x30210f('0x20')][_0x8ee4b3]['foreignKey']&&_0x381c01[_0x684984[_0x30210f('0x20')][_0x8ee4b3][_0x30210f('0x28')]](_0x684984['joins'][_0x8ee4b3][_0x30210f('0x2c')],null,util[_0x30210f('0xb')](_0x30210f('0x1a'),_0x684984[_0x30210f('0x34')],_0x684984[_0x30210f('0x20')][_0x8ee4b3][_0x30210f('0x4')],_0x684984[_0x30210f('0x20')][_0x8ee4b3]['foreignTable'],_0x684984[_0x30210f('0x20')][_0x8ee4b3]['foreignKey']));}}return _0x684984[_0x30210f('0x3a')]&&(_0x684984[_0x30210f('0x3a')]=JSON[_0x30210f('0x2f')](_0x684984[_0x30210f('0x3a')]),_0x381c01['where'](_0x412cf7(_0x684984[_0x30210f('0x3a')][_0x30210f('0x23')]))),_0x381c01[_0x30210f('0x87')](_0x2cfcb0),_0x381c01[_0x30210f('0x14')](0x0),logger['debug'](_0x30210f('0x32'),_0x381c01[_0x30210f('0x7b')]()),db[_0x30210f('0x47')][_0x30210f('0x38')](_0x381c01['toString'](),{'type':QueryTypes[_0x30210f('0x58')]});}})[_0x1207be('0x83')](respondWithResult(_0x1ca32b,null))[_0x1207be('0x10')](handleError(_0x1ca32b,null));};function runReport(_0x442262,_0x28ac28,_0x314de8){const _0x122e10=_0x18fe05,_0x236c5a=_0x28ac28[_0x122e10('0x52')],_0x40b913=0xa,_0x47d0c6=[_0x122e10('0x78'),_0x122e10('0x30'),'right_join',_0x122e10('0xa')],_0x5c5baf={'SUM':'SUM(%s)','COUNT':_0x122e10('0x18'),'COUNT\x20DISTINCT':_0x122e10('0x51'),'MAX':_0x122e10('0x5c'),'MIN':'MIN(%s)','AVG':_0x122e10('0x4c'),'GROUP_CONCAT':_0x122e10('0x17'),'GROUP_CONCAT\x20ASC':_0x122e10('0x16'),'GROUP_CONCAT\x20DESC':_0x122e10('0x5f')},_0x4e8fa9={'SEC_TO_TIME':_0x122e10('0x8c'),'DATE':_0x122e10('0x6b'),'HOUR':_0x122e10('0x49'),'ROUND':_0x122e10('0x7f'),'UNIX_TIMESTAMP':_0x122e10('0x71')},_0x564bec=function(_0x55cba9){const _0x1cfa05=_0x122e10;return!_['includes'](['IS\x20NULL','IS\x20NOT\x20NULL',_0x1cfa05('0x7e'),_0x1cfa05('0x33')],_0x55cba9);},_0x4982c9=function(_0x5815bb){const _0x11cf83=_0x122e10;if(!_0x5815bb||!_0x5815bb[_0x11cf83('0x42')][_0x11cf83('0x4f')])return'';let _0x2b3fa6='(';for(let _0x5c380e=0x0;_0x5c380e<_0x5815bb['rules']['length'];_0x5c380e+=0x1){_0x5c380e>0x0&&(_0x2b3fa6+='\x20'+_0x5815bb[_0x11cf83('0x4b')]+'\x20'),_0x2b3fa6+=_0x5815bb[_0x11cf83('0x42')][_0x5c380e][_0x11cf83('0x23')]?_0x4982c9(_0x5815bb[_0x11cf83('0x42')][_0x5c380e][_0x11cf83('0x23')]):_0x5815bb[_0x11cf83('0x42')][_0x5c380e]['field']+'\x20'+_0x5815bb[_0x11cf83('0x42')][_0x5c380e][_0x11cf83('0x84')]+(_0x564bec(_0x5815bb[_0x11cf83('0x42')][_0x5c380e][_0x11cf83('0x84')])?'\x20'+_0x5815bb[_0x11cf83('0x42')][_0x5c380e]['value']:'');}return _0x2b3fa6+')';};let _0x3a7b15={'where':{'id':_0x442262['id']}},_0xe4e00a,_0x34df7f,_0xed0531,_0x34e20d,_0x2009ea;return _0x3a7b15=_[_0x122e10('0xe')]({},_0x3a7b15,_0x314de8),db[_0x122e10('0x50')][_0x122e10('0x3f')](_0x3a7b15)['then'](function(_0x5a3c19){const _0x3222bb=_0x122e10;if(_0x5a3c19)return _0xe4e00a=_0x5a3c19,_0x5a3c19[_0x3222bb('0x15')]();return null;})['then'](function(_0x37f3b1){const _0xe2643c=_0x122e10;if(_0x37f3b1){if(!_0x37f3b1['length'])throw new ValidationErrorItem(_0xe2643c('0x4e'),0x193);return _0x34df7f=_0x37f3b1,db[_0xe2643c('0xf')][_0xe2643c('0x2e')]({'raw':!![]});}return null;})[_0x122e10('0x83')](function(_0x271fe1){const _0xf05792=_0x122e10;if(_0x271fe1){_0xed0531=_[_0xf05792('0x5d')](_0x271fe1,'id');let _0x87af0e;const _0x254ea2=squel[_0xf05792('0x72')]();_0x254ea2[_0xf05792('0x1c')](_0xe4e00a[_0xf05792('0x34')]);for(let _0x121dd5=0x0;_0x121dd5<_0x34df7f[_0xf05792('0x4f')];_0x121dd5+=0x1){_0x87af0e=_0x34df7f[_0x121dd5]['MetricId']?_0xed0531[_0x34df7f[_0x121dd5][_0xf05792('0x7a')]][_0xf05792('0x44')]:_0x34df7f[_0x121dd5][_0xf05792('0x70')],_0x87af0e=_0x34df7f[_0x121dd5][_0xf05792('0x31')]?_[_0xf05792('0x24')](_0x5c5baf[_0x34df7f[_0x121dd5][_0xf05792('0x31')]],'%s',_0x87af0e):_0x87af0e,_0x87af0e=_0x34df7f[_0x121dd5][_0xf05792('0xb')]?_[_0xf05792('0x24')](_0x4e8fa9[_0x34df7f[_0x121dd5][_0xf05792('0xb')]],'%s',_0x87af0e):_0x87af0e,_0x34df7f[_0x121dd5][_0xf05792('0x61')]&&_0x254ea2[_0xf05792('0x23')](_0x87af0e),_0x34df7f[_0x121dd5][_0xf05792('0x6d')]&&_0x254ea2[_0xf05792('0x22')](_0x87af0e,_0x34df7f[_0x121dd5]['orderBy']===_0xf05792('0x11')?![]:!![]),_0x254ea2[_0xf05792('0x70')](_0x87af0e,_0x34df7f[_0x121dd5][_0xf05792('0x77')]||_0x87af0e);}if(_0xe4e00a[_0xf05792('0x20')]){_0xe4e00a[_0xf05792('0x20')]=JSON[_0xf05792('0x2f')](_0xe4e00a[_0xf05792('0x20')]);for(let _0x44c58f=0x0;_0x44c58f<_0xe4e00a[_0xf05792('0x20')][_0xf05792('0x4f')];_0x44c58f+=0x1){_0xe4e00a[_0xf05792('0x20')][_0x44c58f][_0xf05792('0x28')]&&_['includes'](_0x47d0c6,_0xe4e00a[_0xf05792('0x20')][_0x44c58f][_0xf05792('0x28')])&&_0xe4e00a[_0xf05792('0x20')][_0x44c58f][_0xf05792('0x4')]&&_0xe4e00a[_0xf05792('0x20')][_0x44c58f][_0xf05792('0x2c')]&&_0xe4e00a[_0xf05792('0x20')][_0x44c58f]['foreignKey']&&_0x254ea2[_0xe4e00a[_0xf05792('0x20')][_0x44c58f][_0xf05792('0x28')]](_0xe4e00a['joins'][_0x44c58f][_0xf05792('0x2c')],null,util['format'](_0xf05792('0x1a'),_0xe4e00a[_0xf05792('0x34')],_0xe4e00a[_0xf05792('0x20')][_0x44c58f]['parentKey'],_0xe4e00a[_0xf05792('0x20')][_0x44c58f][_0xf05792('0x2c')],_0xe4e00a[_0xf05792('0x20')][_0x44c58f][_0xf05792('0xc')]));}}return _0xe4e00a[_0xf05792('0x3a')]&&(_0xe4e00a[_0xf05792('0x3a')]=JSON[_0xf05792('0x2f')](_0xe4e00a[_0xf05792('0x3a')]),_0x254ea2[_0xf05792('0x8b')](_0x4982c9(_0xe4e00a[_0xf05792('0x3a')][_0xf05792('0x23')]))),_0x2009ea=_0x254ea2[_0xf05792('0x62')](),_0x254ea2['limit'](_0x40b913),_0x254ea2[_0xf05792('0x14')](0x0),logger[_0xf05792('0x54')](_0xf05792('0x32'),_0x254ea2[_0xf05792('0x7b')]()),db[_0xf05792('0x47')]['query'](_0x254ea2[_0xf05792('0x7b')](),{'type':QueryTypes['SELECT']});}})[_0x122e10('0x83')](function(_0x2f980c){const _0x3f229a=_0x122e10;if(!_0x2f980c[_0x3f229a('0x4f')])throw new ValidationErrorItem(_0x3f229a('0x40'),0xcc);if(_0x28ac28[_0x3f229a('0x82')]===_0x3f229a('0x63'))return null;const _0xcf4d0e=_['merge'](_0x28ac28,{'name':_0x28ac28[_0x3f229a('0x2a')]||_0x28ac28[_0x3f229a('0x52')]||_0xe4e00a[_0x3f229a('0x52')],'basename':_0x236c5a,'savename':util[_0x3f229a('0xb')](_0x3f229a('0x13'),_0x28ac28[_0x3f229a('0x52')]||_0xe4e00a[_0x3f229a('0x52')],require(_0x3f229a('0x25'))[_0x3f229a('0x69')](0x4),_0x28ac28['output']||_0x3f229a('0x80')),'reportId':_0xe4e00a['id'],'reportType':_0x3f229a('0x66')});return db[_0x3f229a('0x53')][_0x3f229a('0x19')](_0xcf4d0e,{'raw':!![]});})[_0x122e10('0x83')](function(_0xabfa0e){const _0x40e2b2=_0x122e10;_0xe4e00a[_0x40e2b2('0x34')]===_0x40e2b2('0x4a')?_0x2009ea[_0x40e2b2('0x8b')](_0xe4e00a['table']+'.calldate\x20BETWEEN\x20?\x20AND\x20?',_0x28ac28[_0x40e2b2('0x2d')],_0x28ac28[_0x40e2b2('0x27')]):_0x2009ea[_0x40e2b2('0x8b')](_0xe4e00a[_0x40e2b2('0x34')]+'.createdAt\x20BETWEEN\x20?\x20AND\x20?',_0x28ac28[_0x40e2b2('0x2d')],_0x28ac28[_0x40e2b2('0x27')]);if(_0xabfa0e)return logger[_0x40e2b2('0x1b')](_0x40e2b2('0x88'),_0x2009ea['toString']()),require(_0x40e2b2('0x5e'))['fork'](path['join'](__dirname,'../../components/export/',_0xabfa0e[_0x40e2b2('0x82')]),[_0xabfa0e['id'],_0x2009ea[_0x40e2b2('0x7b')](),path[_0x40e2b2('0x78')](__dirname,'../../files/reports',_0xabfa0e['savename']),_0x236c5a]),_0xabfa0e;else{const _0x1d546d=squel['select']();return _0x1d546d['from']('('+_0x2009ea['toString']()+')',_0x40e2b2('0x2b')),_0x1d546d[_0x40e2b2('0x70')](_0x40e2b2('0x2'),'count'),_0x2009ea[_0x40e2b2('0x87')](_0x28ac28[_0x40e2b2('0x87')]||_0x40b913),_0x2009ea[_0x40e2b2('0x14')](_0x28ac28[_0x40e2b2('0x14')]||0x0),dbH[_0x40e2b2('0x47')][_0x40e2b2('0x38')](_0x1d546d[_0x40e2b2('0x7b')](),{'type':dbH[_0x40e2b2('0x47')][_0x40e2b2('0x7d')][_0x40e2b2('0x58')]})[_0x40e2b2('0x83')](function(_0x12d5e1){const _0xa4cce8=_0x40e2b2;return!_0x12d5e1['length']?_0x34e20d=0x0:_0x34e20d=_0x12d5e1[0x0][_0xa4cce8('0x76')]||0x0,dbH['sequelize'][_0xa4cce8('0x38')](_0x2009ea[_0xa4cce8('0x7b')](),{'type':dbH[_0xa4cce8('0x47')]['QueryTypes'][_0xa4cce8('0x58')]});})[_0x40e2b2('0x83')](function(_0x1bedb2){return{'rows':_0x1bedb2||[],'count':_0x34e20d};});}});}exports['run']=function(_0x7e76b5,_0x4b6103){const _0x6c10ae=_0x18fe05;return runReport(_0x7e76b5[_0x6c10ae('0x41')],_0x7e76b5[_0x6c10ae('0x38')],_0x7e76b5['options'])[_0x6c10ae('0x83')](respondWithResult(_0x4b6103,null))[_0x6c10ae('0x10')](handleError(_0x4b6103,null));},exports[_0x18fe05('0x3b')]=runReport,exports['query']=function(_0x3afc05,_0x4838fc){const _0x11ab41=_0x18fe05,_0x9ce1be=0xa,_0xd69b27=[_0x11ab41('0x78'),_0x11ab41('0x30'),_0x11ab41('0x1'),'cross_join'],_0x352e5a={'SUM':'SUM(%s)','COUNT':_0x11ab41('0x18'),'COUNT\x20DISTINCT':'COUNT(DISTINCT\x20%s)','MAX':_0x11ab41('0x5c'),'MIN':_0x11ab41('0x75'),'AVG':'AVG(%s)','GROUP_CONCAT':_0x11ab41('0x17'),'GROUP_CONCAT\x20ASC':_0x11ab41('0x16'),'GROUP_CONCAT\x20DESC':_0x11ab41('0x5f')},_0x58b88d={'SEC_TO_TIME':_0x11ab41('0x8c'),'DATE':_0x11ab41('0x6b'),'HOUR':_0x11ab41('0x49'),'ROUND':'ROUND(%s)','UNIX_TIMESTAMP':_0x11ab41('0x71')},_0x84e92c=function(_0x2f2e51){const _0x23f4ac=_0x11ab41;return!_[_0x23f4ac('0x36')](['IS\x20NULL',_0x23f4ac('0x39'),_0x23f4ac('0x7e'),_0x23f4ac('0x33')],_0x2f2e51);},_0x3475c5=function(_0x124e0e){const _0x4e0efc=_0x11ab41;if(!_0x124e0e||!_0x124e0e[_0x4e0efc('0x42')][_0x4e0efc('0x4f')])return'';let _0xb0e7eb='(';for(let _0x1223a2=0x0;_0x1223a2<_0x124e0e[_0x4e0efc('0x42')]['length'];_0x1223a2+=0x1){_0x1223a2>0x0&&(_0xb0e7eb+='\x20'+_0x124e0e[_0x4e0efc('0x4b')]+'\x20'),_0xb0e7eb+=_0x124e0e[_0x4e0efc('0x42')][_0x1223a2]['group']?_0x3475c5(_0x124e0e[_0x4e0efc('0x42')][_0x1223a2][_0x4e0efc('0x23')]):_0x124e0e['rules'][_0x1223a2][_0x4e0efc('0x70')]+'\x20'+_0x124e0e[_0x4e0efc('0x42')][_0x1223a2][_0x4e0efc('0x84')]+(_0x84e92c(_0x124e0e[_0x4e0efc('0x42')][_0x1223a2][_0x4e0efc('0x84')])?'\x20'+_0x124e0e[_0x4e0efc('0x42')][_0x1223a2]['value']:'');}return _0xb0e7eb+')';};let _0x12d7c4={'where':{'id':_0x3afc05[_0x11ab41('0x41')]['id']}},_0x29e777,_0x3e89a4,_0x28541e,_0x80cf3e;return _0x12d7c4=_['merge']({},_0x12d7c4,_0x3afc05[_0x11ab41('0x3e')]),db[_0x11ab41('0x50')][_0x11ab41('0x3f')](_0x12d7c4)['then'](function(_0x1a988b){if(_0x1a988b)return _0x29e777=_0x1a988b,_0x1a988b['getFields']();return null;})[_0x11ab41('0x83')](function(_0x179080){const _0x147c33=_0x11ab41;if(_0x179080){if(!_0x179080[_0x147c33('0x4f')])throw new ValidationErrorItem(_0x147c33('0x4e'),0x193);return _0x3e89a4=_0x179080,db[_0x147c33('0xf')]['findAll']({'raw':!![]});}return null;})['then'](function(_0xc1ca78){const _0x2c982e=_0x11ab41;if(_0xc1ca78){_0x28541e=_['keyBy'](_0xc1ca78,'id');let _0x178d2e;const _0x3ee0c5=squel['select']();_0x3ee0c5['from'](_0x29e777[_0x2c982e('0x34')]);for(let _0x522cc1=0x0;_0x522cc1<_0x3e89a4['length'];_0x522cc1+=0x1){_0x178d2e=_0x3e89a4[_0x522cc1][_0x2c982e('0x7a')]?_0x28541e[_0x3e89a4[_0x522cc1]['MetricId']][_0x2c982e('0x44')]:_0x3e89a4[_0x522cc1][_0x2c982e('0x70')],_0x178d2e=_0x3e89a4[_0x522cc1][_0x2c982e('0x31')]?_['replace'](_0x352e5a[_0x3e89a4[_0x522cc1][_0x2c982e('0x31')]],'%s',_0x178d2e):_0x178d2e,_0x178d2e=_0x3e89a4[_0x522cc1][_0x2c982e('0xb')]?_[_0x2c982e('0x24')](_0x58b88d[_0x3e89a4[_0x522cc1]['format']],'%s',_0x178d2e):_0x178d2e,_0x3e89a4[_0x522cc1][_0x2c982e('0x61')]&&_0x3ee0c5[_0x2c982e('0x23')](_0x178d2e),_0x3e89a4[_0x522cc1][_0x2c982e('0x6d')]&&_0x3ee0c5[_0x2c982e('0x22')](_0x178d2e,_0x3e89a4[_0x522cc1][_0x2c982e('0x6d')]===_0x2c982e('0x11')?![]:!![]),_0x3ee0c5['field'](_0x178d2e,_0x3e89a4[_0x522cc1][_0x2c982e('0x77')]||_0x178d2e);}if(_0x29e777[_0x2c982e('0x20')]){_0x29e777['joins']=JSON[_0x2c982e('0x2f')](_0x29e777[_0x2c982e('0x20')]);for(let _0x3dcd2f=0x0;_0x3dcd2f<_0x29e777[_0x2c982e('0x20')]['length'];_0x3dcd2f+=0x1){_0x29e777['joins'][_0x3dcd2f][_0x2c982e('0x28')]&&_['includes'](_0xd69b27,_0x29e777[_0x2c982e('0x20')][_0x3dcd2f][_0x2c982e('0x28')])&&_0x29e777[_0x2c982e('0x20')][_0x3dcd2f][_0x2c982e('0x4')]&&_0x29e777[_0x2c982e('0x20')][_0x3dcd2f][_0x2c982e('0x2c')]&&_0x29e777[_0x2c982e('0x20')][_0x3dcd2f][_0x2c982e('0xc')]&&_0x3ee0c5[_0x29e777[_0x2c982e('0x20')][_0x3dcd2f][_0x2c982e('0x28')]](_0x29e777[_0x2c982e('0x20')][_0x3dcd2f]['foreignTable'],null,util[_0x2c982e('0xb')](_0x2c982e('0x1a'),_0x29e777[_0x2c982e('0x34')],_0x29e777[_0x2c982e('0x20')][_0x3dcd2f]['parentKey'],_0x29e777[_0x2c982e('0x20')][_0x3dcd2f][_0x2c982e('0x2c')],_0x29e777[_0x2c982e('0x20')][_0x3dcd2f]['foreignKey']));}}return _0x29e777[_0x2c982e('0x3a')]&&(_0x29e777[_0x2c982e('0x3a')]=JSON[_0x2c982e('0x2f')](_0x29e777['conditions']),_0x3ee0c5[_0x2c982e('0x8b')](_0x3475c5(_0x29e777[_0x2c982e('0x3a')][_0x2c982e('0x23')]))),_0x80cf3e=_0x3ee0c5['clone'](),_0x3ee0c5[_0x2c982e('0x87')](_0x9ce1be),_0x3ee0c5[_0x2c982e('0x14')](0x0),logger[_0x2c982e('0x54')](_0x2c982e('0x32'),_0x3ee0c5['toString']()),db[_0x2c982e('0x47')][_0x2c982e('0x38')](_0x3ee0c5['toString'](),{'type':QueryTypes['SELECT']});}})[_0x11ab41('0x83')](function(){const _0x314e10=_0x11ab41;return{'sql':_0x80cf3e[_0x314e10('0x7b')]()};})['then'](respondWithResult(_0x4838fc,null))[_0x11ab41('0x10')](handleError(_0x4838fc,null));}; \ No newline at end of file +const a6_0x47a3=['DESC','catch','UNIX_TIMESTAMP(%s)','AnalyticCustomReport','COUNT(*)','findOne','Reports','countTable','../../config/logger','userProfileId','IS\x20NULL','GROUP_CONCAT(%s\x20ORDER\x20BY\x20%s\x20DESC)','index','key','count','nolimit','metric','Run\x20Query:','function','get','cross_join','autoAssociation','fork','then','AVG(%s)','filters','MAX(%s)','right_join','sequelize','output','map','cdr','replace','type','toString','COUNT(%s)','condition','rows','length','alias','AnalyticMetric','name','foreignKey','joins','ROUND(%s)','create','fullPath','UserProfileResource','attributes','GROUP_CONCAT(%s)','custom','UserProfileSection','show','destroy','SUM(%s)','MetricId','user','Please\x20insert\x20at\x20least\x20one\x20field','stack','query','../../components/export/','run','IS\x20EMPTY','sendStatus','keyBy','squel','status','dbH','table','SELECT','MIN(%s)','runReport','json','group','format','merge','operator','savename','error','IS\x20NOT\x20EMPTY','params','endDate','%s.%s\x20=\x20%s.%s','left_join','Unable\x20to\x20retrieve\x20the\x20current\x20user','model','from','options','groupBy','include','Limited\x20Query:','fieldName','field','rawAttributes','startDate','like','COUNT(DISTINCT\x20%s)','preview','Content-Range','GROUP_CONCAT(%s\x20ORDER\x20BY\x20%s\x20ASC)','join','value','path','order','getFields','clone','set','.calldate\x20BETWEEN\x20?\x20AND\x20?','where','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','update','rules','randomstring','CustomReports','filter','offset','intersection','includes','end','debug','limit','lodash','parentKey','parse','orderBy','HOUR(%s)','body','info','includeAll','conditions','child_process','SEC_TO_TIME(%s)','fields','api','QueryTypes','util','keys','../../mysqldb','DATE(%s)','AnalyticExtractedReport','IS\x20NOT\x20NULL','foreignTable','send','select','findAll','web'];(function(_0x19bcf3,_0x2ceebe){const _0x47a363=function(_0x58d6a2){while(--_0x58d6a2){_0x19bcf3['push'](_0x19bcf3['shift']());}};_0x47a363(++_0x2ceebe);}(a6_0x47a3,0xf4));const a6_0x58d6=function(_0x19bcf3,_0x2ceebe){_0x19bcf3=_0x19bcf3-0xc8;let _0x47a363=a6_0x47a3[_0x19bcf3];return _0x47a363;};const a6_0x3930aa=a6_0x58d6;'use strict';const util=require(a6_0x3930aa(0xed)),path=require(a6_0x3930aa(0xcc)),_=require(a6_0x3930aa(0xdf)),squel=require(a6_0x3930aa(0x139)),qs=require('../../components/parsers/qs'),logger=require(a6_0x3930aa(0x100))(a6_0x3930aa(0xeb)),{db}=require(a6_0x3930aa(0xef)),dbH=require(a6_0x3930aa(0xef))[a6_0x3930aa(0x13b)],{Op,ValidationErrorItem,QueryTypes}=require(a6_0x3930aa(0x114));function respondWithResult(_0x335f74,_0x4f6ea9){return _0x4f6ea9=_0x4f6ea9||0xc8,function(_0x270ea3){const _0x31fc2b=a6_0x58d6;if(_0x270ea3)return _0x335f74[_0x31fc2b(0x13a)](_0x4f6ea9)['json'](_0x270ea3);};}function respondWithFilteredResult(_0xcbb96b,_0x5ebf73){return function(_0x2208c8){const _0x3bc87c=a6_0x58d6;if(_0x2208c8){const _0x46be39=_0x2208c8[_0x3bc87c(0x106)],_0x53b07a=_0x5ebf73[_0x3bc87c(0xd9)];let _0x4a52ef=_0x5ebf73['offset']+_0x5ebf73[_0x3bc87c(0xde)],_0xb94545;return _0x4a52ef>=_0x46be39?(_0x4a52ef=_0x46be39,_0xb94545=0xc8):_0xb94545=0xce,_0xcbb96b['status'](_0xb94545),_0xcbb96b[_0x3bc87c(0xd0)](_0x3bc87c(0xc8),_0x53b07a+'-'+_0x4a52ef+'/'+_0x46be39)[_0x3bc87c(0x140)](_0x2208c8);}return null;};}function saveUpdates(_0x39e6ae){return function(_0x4ab098){const _0x497c88=a6_0x58d6;if(_0x4ab098)return _0x4ab098[_0x497c88(0xd4)](_0x39e6ae)['then'](function(_0x2c94cf){return _0x2c94cf;});return null;};}function removeEntity(_0x4a901f){return function(_0x5900a0){const _0x176d3e=a6_0x58d6;if(_0x5900a0)return _0x5900a0['destroy']()[_0x176d3e(0x10f)](function(){const _0x584831=_0x176d3e,_0x444477=_0x5900a0[_0x584831(0x10b)]({'plain':!![]}),_0x6d326d='CustomReports';return db[_0x584831(0x127)][_0x584831(0x12d)]({'where':{'type':_0x6d326d,'resourceId':_0x444477['id']}})[_0x584831(0x10f)](function(){return _0x5900a0;});})[_0x176d3e(0x10f)](function(){const _0x4d7044=_0x176d3e;_0x4a901f[_0x4d7044(0x13a)](0xcc)[_0x4d7044(0xdc)]();});};}function handleEntityNotFound(_0x2285bc){return function(_0x3cb59f){const _0x1d8d85=a6_0x58d6;return!_0x3cb59f&&_0x2285bc[_0x1d8d85(0x137)](0x194),_0x3cb59f;};}function handleError(_0x569e7f,_0x29ebda){return _0x29ebda=_0x29ebda||0x1f4,function(_0x37097c){const _0x217d5e=a6_0x58d6;logger[_0x217d5e(0x146)](_0x37097c[_0x217d5e(0x132)]),_0x37097c[_0x217d5e(0x121)]&&delete _0x37097c['name'],_0x569e7f[_0x217d5e(0x13a)](_0x29ebda)[_0x217d5e(0xf4)](_0x37097c);};}exports[a6_0x3930aa(0x104)]=function(_0x4bb0a6,_0x54b721){const _0x5b689e=a6_0x3930aa;let _0x2b1d69={};const _0x228e9={},_0x93c09={'count':0x0,'rows':[]},_0x4eebab=_[_0x5b689e(0x116)](db['AnalyticCustomReport'][_0x5b689e(0x155)],function(_0x461a0b){const _0x1acce4=_0x5b689e;return{'name':_0x461a0b[_0x1acce4(0x153)],'type':_0x461a0b[_0x1acce4(0x119)][_0x1acce4(0x105)]};});_0x228e9[_0x5b689e(0x14d)]=_[_0x5b689e(0x116)](_0x4eebab,_0x5b689e(0x121)),_0x228e9[_0x5b689e(0x133)]=_[_0x5b689e(0xee)](_0x4bb0a6['query']),_0x228e9[_0x5b689e(0x111)]=_['intersection'](_0x228e9['model'],_0x228e9[_0x5b689e(0x133)]),_0x2b1d69[_0x5b689e(0x128)]=_[_0x5b689e(0xda)](_0x228e9['model'],qs[_0x5b689e(0xea)](_0x4bb0a6[_0x5b689e(0x133)]['fields'])),_0x2b1d69['attributes']=_0x2b1d69[_0x5b689e(0x128)][_0x5b689e(0x11e)]?_0x2b1d69[_0x5b689e(0x128)]:_0x228e9[_0x5b689e(0x14d)];typeof _0x4bb0a6['query'][_0x5b689e(0x107)]==='undefined'&&(_0x2b1d69[_0x5b689e(0xde)]=qs[_0x5b689e(0xde)](_0x4bb0a6[_0x5b689e(0x133)][_0x5b689e(0xde)]),_0x2b1d69[_0x5b689e(0xd9)]=qs[_0x5b689e(0xd9)](_0x4bb0a6[_0x5b689e(0x133)][_0x5b689e(0xd9)]));_0x2b1d69[_0x5b689e(0xcd)]=qs['sort'](_0x4bb0a6[_0x5b689e(0x133)]['sort']),_0x2b1d69[_0x5b689e(0xd2)]=qs[_0x5b689e(0x111)](_['pick'](_0x4bb0a6[_0x5b689e(0x133)],_0x228e9[_0x5b689e(0x111)]),_0x4eebab);_0x4bb0a6[_0x5b689e(0x133)][_0x5b689e(0xd8)]&&(_0x2b1d69['where']=_[_0x5b689e(0x143)](_0x2b1d69[_0x5b689e(0xd2)],{[Op['or']]:_[_0x5b689e(0x116)](_0x4eebab,function(_0x36cb87){const _0x4ca92b=_0x5b689e;if(_0x36cb87[_0x4ca92b(0x119)]!=='VIRTUAL'){const _0x4a5f90={};return _0x4a5f90[_0x36cb87[_0x4ca92b(0x121)]]={[Op[_0x4ca92b(0x157)]]:'%'+_0x4bb0a6[_0x4ca92b(0x133)]['filter']+'%'},_0x4a5f90;}})}));_0x2b1d69=_['merge']({},_0x2b1d69,_0x4bb0a6[_0x5b689e(0x14f)]);const _0x15f662={'where':_0x2b1d69['where']};return db['AnalyticCustomReport']['count'](_0x15f662)['then'](function(_0x1af252){const _0x3d7da5=_0x5b689e;return _0x93c09[_0x3d7da5(0x106)]=_0x1af252,_0x4bb0a6[_0x3d7da5(0x133)]['includeAll']&&(_0x2b1d69['include']=[{'all':!![]}]),db[_0x3d7da5(0xfb)][_0x3d7da5(0xf6)](_0x2b1d69);})[_0x5b689e(0x10f)](function(_0x131b7e){const _0x15f540=_0x5b689e;return _0x93c09[_0x15f540(0x11d)]=_0x131b7e,_0x93c09;})[_0x5b689e(0x10f)](respondWithFilteredResult(_0x54b721,_0x2b1d69))[_0x5b689e(0xf9)](handleError(_0x54b721,null));},exports[a6_0x3930aa(0x12c)]=function(_0x31bb1a,_0x3fd92f){const _0x805859=a6_0x3930aa;let _0x1e7871={'raw':![],'where':{'id':_0x31bb1a[_0x805859(0x148)]['id']}};const _0x55a2c1={};return _0x55a2c1[_0x805859(0x14d)]=_[_0x805859(0xee)](db[_0x805859(0xfb)][_0x805859(0x155)]),_0x55a2c1[_0x805859(0x133)]=_[_0x805859(0xee)](_0x31bb1a['query']),_0x55a2c1[_0x805859(0x111)]=_['intersection'](_0x55a2c1[_0x805859(0x14d)],_0x55a2c1[_0x805859(0x133)]),_0x1e7871[_0x805859(0x128)]=_['intersection'](_0x55a2c1[_0x805859(0x14d)],qs[_0x805859(0xea)](_0x31bb1a[_0x805859(0x133)][_0x805859(0xea)])),_0x1e7871[_0x805859(0x128)]=_0x1e7871[_0x805859(0x128)]['length']?_0x1e7871[_0x805859(0x128)]:_0x55a2c1[_0x805859(0x14d)],_0x31bb1a['query'][_0x805859(0xe6)]&&(_0x1e7871[_0x805859(0x151)]=[{'all':!![]}]),_0x1e7871=_[_0x805859(0x143)]({},_0x1e7871,_0x31bb1a[_0x805859(0x14f)]),db['AnalyticCustomReport'][_0x805859(0xfd)](_0x1e7871)['then'](handleEntityNotFound(_0x3fd92f,null))[_0x805859(0x10f)](respondWithResult(_0x3fd92f,null))[_0x805859(0xf9)](handleError(_0x3fd92f,null));},exports[a6_0x3930aa(0x125)]=function(_0x4cbbf6,_0x3a6147){const _0x52e035=a6_0x3930aa;return db[_0x52e035(0xfb)][_0x52e035(0x125)](_0x4cbbf6[_0x52e035(0xe4)],{})[_0x52e035(0x10f)](function(_0x389c72){const _0xe4d453=_0x52e035,_0x5ca64a=_0x4cbbf6[_0xe4d453(0x130)][_0xe4d453(0x10b)]({'plain':!![]});if(!_0x5ca64a)throw new Error(_0xe4d453(0x14c));if(_0x5ca64a['role']===_0xe4d453(0x130)){const _0x22fab5=_0x389c72[_0xe4d453(0x10b)]({'plain':!![]}),_0x421467=_0xe4d453(0xfe);return db[_0xe4d453(0x12b)]['findOne']({'where':{'name':_0x421467,'userProfileId':_0x5ca64a[_0xe4d453(0x101)]},'raw':!![]})[_0xe4d453(0x10f)](function(_0x394a81){const _0x1dbe58=_0xe4d453;return _0x394a81&&_0x394a81[_0x1dbe58(0x10d)]===0x0?db['UserProfileResource'][_0x1dbe58(0x125)]({'name':_0x22fab5['name'],'resourceId':_0x22fab5['id'],'type':_0x1dbe58(0xd7),'sectionId':_0x394a81['id']},{})[_0x1dbe58(0x10f)](function(){return _0x389c72;}):_0x389c72;})[_0xe4d453(0xf9)](function(_0x4013fe){const _0x4da1df=_0xe4d453;logger[_0x4da1df(0x146)](_0x4da1df(0xd3),_0x4013fe);throw _0x4013fe;});}return _0x389c72;})[_0x52e035(0x10f)](respondWithResult(_0x3a6147,0xc9))[_0x52e035(0xf9)](handleError(_0x3a6147,null));},exports[a6_0x3930aa(0xd4)]=function(_0xf1516f,_0x276f12){const _0x25851f=a6_0x3930aa;return _0xf1516f[_0x25851f(0xe4)]['id']&&delete _0xf1516f['body']['id'],db[_0x25851f(0xfb)][_0x25851f(0xfd)]({'where':{'id':_0xf1516f[_0x25851f(0x148)]['id']}})[_0x25851f(0x10f)](handleEntityNotFound(_0x276f12,null))['then'](saveUpdates(_0xf1516f['body'],null))[_0x25851f(0x10f)](respondWithResult(_0x276f12,null))[_0x25851f(0xf9)](handleError(_0x276f12,null));},exports[a6_0x3930aa(0x12d)]=function(_0x4cfcd4,_0x37dca7){const _0x1f89f1=a6_0x3930aa;return db[_0x1f89f1(0xfb)][_0x1f89f1(0xfd)]({'where':{'id':_0x4cfcd4[_0x1f89f1(0x148)]['id']}})[_0x1f89f1(0x10f)](handleEntityNotFound(_0x37dca7,null))[_0x1f89f1(0x10f)](removeEntity(_0x37dca7,null))[_0x1f89f1(0xf9)](handleError(_0x37dca7,null));},exports[a6_0x3930aa(0x159)]=function(_0x2e9d0c,_0x4ef869){const _0x556b78=a6_0x3930aa,_0x4d9826=0xa,_0x2b568c=[_0x556b78(0xca),_0x556b78(0x14b),_0x556b78(0x113),_0x556b78(0x10c)],_0x5caafc={'SUM':_0x556b78(0x12e),'COUNT':_0x556b78(0x11b),'COUNT\x20DISTINCT':_0x556b78(0x158),'MAX':_0x556b78(0x112),'MIN':_0x556b78(0x13e),'AVG':_0x556b78(0x110),'GROUP_CONCAT':_0x556b78(0x129),'GROUP_CONCAT\x20ASC':_0x556b78(0xc9),'GROUP_CONCAT\x20DESC':_0x556b78(0x103)},_0x22b84f={'SEC_TO_TIME':'SEC_TO_TIME(%s)','DATE':'DATE(%s)','HOUR':_0x556b78(0xe3),'ROUND':_0x556b78(0x124),'UNIX_TIMESTAMP':_0x556b78(0xfa)},_0x41b161=function(_0x47df57){const _0x173af9=_0x556b78;return!_[_0x173af9(0xdb)]([_0x173af9(0x102),'IS\x20NOT\x20NULL',_0x173af9(0x136),'IS\x20NOT\x20EMPTY'],_0x47df57);},_0x98a7cb=function(_0x431ff3){const _0xe8cc7d=_0x556b78;if(!_0x431ff3||!_0x431ff3[_0xe8cc7d(0xd5)][_0xe8cc7d(0x11e)])return'';let _0x1387c5='(';for(let _0x4f5ccd=0x0;_0x4f5ccd<_0x431ff3[_0xe8cc7d(0xd5)]['length'];_0x4f5ccd+=0x1){_0x4f5ccd>0x0&&(_0x1387c5+='\x20'+_0x431ff3['operator']+'\x20'),_0x1387c5+=_0x431ff3[_0xe8cc7d(0xd5)][_0x4f5ccd][_0xe8cc7d(0x141)]?_0x98a7cb(_0x431ff3[_0xe8cc7d(0xd5)][_0x4f5ccd][_0xe8cc7d(0x141)]):_0x431ff3['rules'][_0x4f5ccd]['field']+'\x20'+_0x431ff3[_0xe8cc7d(0xd5)][_0x4f5ccd][_0xe8cc7d(0x11c)]+(_0x41b161(_0x431ff3[_0xe8cc7d(0xd5)][_0x4f5ccd][_0xe8cc7d(0x11c)])?'\x20'+_0x431ff3[_0xe8cc7d(0xd5)][_0x4f5ccd][_0xe8cc7d(0xcb)]:'');}return _0x1387c5+')';};let _0xdebc01={'where':{'id':_0x2e9d0c[_0x556b78(0x148)]['id']}},_0x4beb23,_0x478cc0,_0x2f6d6c;return _0xdebc01=_[_0x556b78(0x143)]({},_0xdebc01,_0x2e9d0c[_0x556b78(0x14f)]),db[_0x556b78(0xfb)]['findOne'](_0xdebc01)[_0x556b78(0x10f)](function(_0x1e4bc9){if(_0x1e4bc9)return _0x4beb23=_0x1e4bc9,_0x1e4bc9['getFields']();return null;})[_0x556b78(0x10f)](function(_0x286c17){const _0x54bd4=_0x556b78;if(_0x286c17){if(!_0x286c17['length'])throw new ValidationErrorItem('Please\x20insert\x20at\x20least\x20one\x20field',0x193);return _0x478cc0=_0x286c17,db[_0x54bd4(0x120)]['findAll']({'raw':!![]});}return null;})[_0x556b78(0x10f)](function(_0x4f6c3c){const _0x45dc94=_0x556b78;if(_0x4f6c3c){_0x2f6d6c=_[_0x45dc94(0x138)](_0x4f6c3c,'id');let _0x5947d0;const _0x1895a4=squel[_0x45dc94(0xf5)]();_0x1895a4[_0x45dc94(0x14e)](_0x4beb23['table']);for(let _0x4b01fb=0x0;_0x4b01fb<_0x478cc0['length'];_0x4b01fb+=0x1){_0x5947d0=_0x478cc0[_0x4b01fb][_0x45dc94(0x12f)]?_0x2f6d6c[_0x478cc0[_0x4b01fb]['MetricId']]['metric']:_0x478cc0[_0x4b01fb][_0x45dc94(0x154)],_0x5947d0=_0x478cc0[_0x4b01fb]['function']?_[_0x45dc94(0x118)](_0x5caafc[_0x478cc0[_0x4b01fb][_0x45dc94(0x10a)]],'%s',_0x5947d0):_0x5947d0,_0x5947d0=_0x478cc0[_0x4b01fb][_0x45dc94(0x142)]?_[_0x45dc94(0x118)](_0x22b84f[_0x478cc0[_0x4b01fb][_0x45dc94(0x142)]],'%s',_0x5947d0):_0x5947d0,_0x478cc0[_0x4b01fb][_0x45dc94(0x150)]&&_0x1895a4[_0x45dc94(0x141)](_0x5947d0),_0x478cc0[_0x4b01fb][_0x45dc94(0xe2)]&&_0x1895a4['order'](_0x5947d0,_0x478cc0[_0x4b01fb][_0x45dc94(0xe2)]===_0x45dc94(0xf8)?![]:!![]),_0x1895a4[_0x45dc94(0x154)](_0x5947d0,_0x478cc0[_0x4b01fb]['alias']||_0x5947d0);}if(_0x4beb23[_0x45dc94(0x123)]){_0x4beb23[_0x45dc94(0x123)]=JSON[_0x45dc94(0xe1)](_0x4beb23[_0x45dc94(0x123)]);for(let _0x2968a4=0x0;_0x2968a4<_0x4beb23[_0x45dc94(0x123)][_0x45dc94(0x11e)];_0x2968a4+=0x1){_0x4beb23['joins'][_0x2968a4]['type']&&_['includes'](_0x2b568c,_0x4beb23['joins'][_0x2968a4][_0x45dc94(0x119)])&&_0x4beb23[_0x45dc94(0x123)][_0x2968a4][_0x45dc94(0xe0)]&&_0x4beb23[_0x45dc94(0x123)][_0x2968a4]['foreignTable']&&_0x4beb23[_0x45dc94(0x123)][_0x2968a4][_0x45dc94(0x122)]&&_0x1895a4[_0x4beb23[_0x45dc94(0x123)][_0x2968a4][_0x45dc94(0x119)]](_0x4beb23[_0x45dc94(0x123)][_0x2968a4]['foreignTable'],null,util['format'](_0x45dc94(0x14a),_0x4beb23[_0x45dc94(0x13c)],_0x4beb23['joins'][_0x2968a4][_0x45dc94(0xe0)],_0x4beb23['joins'][_0x2968a4][_0x45dc94(0xf3)],_0x4beb23[_0x45dc94(0x123)][_0x2968a4]['foreignKey']));}}return _0x4beb23[_0x45dc94(0xe7)]&&(_0x4beb23[_0x45dc94(0xe7)]=JSON['parse'](_0x4beb23[_0x45dc94(0xe7)]),_0x1895a4[_0x45dc94(0xd2)](_0x98a7cb(_0x4beb23[_0x45dc94(0xe7)]['group']))),_0x1895a4[_0x45dc94(0xde)](_0x4d9826),_0x1895a4[_0x45dc94(0xd9)](0x0),logger[_0x45dc94(0xdd)](_0x45dc94(0x152),_0x1895a4[_0x45dc94(0x11a)]()),db['sequelize'][_0x45dc94(0x133)](_0x1895a4['toString'](),{'type':QueryTypes[_0x45dc94(0x13d)]});}})[_0x556b78(0x10f)](respondWithResult(_0x4ef869,null))['catch'](handleError(_0x4ef869,null));};function runReport(_0x5deaf3,_0x3cf512,_0x31b688){const _0x18a160=a6_0x3930aa,_0x29c042=_0x3cf512[_0x18a160(0x121)],_0x1facc0=0xa,_0x46924b=[_0x18a160(0xca),'left_join','right_join',_0x18a160(0x10c)],_0x1ac723={'SUM':_0x18a160(0x12e),'COUNT':_0x18a160(0x11b),'COUNT\x20DISTINCT':'COUNT(DISTINCT\x20%s)','MAX':'MAX(%s)','MIN':'MIN(%s)','AVG':_0x18a160(0x110),'GROUP_CONCAT':_0x18a160(0x129),'GROUP_CONCAT\x20ASC':'GROUP_CONCAT(%s\x20ORDER\x20BY\x20%s\x20ASC)','GROUP_CONCAT\x20DESC':_0x18a160(0x103)},_0x3431b1={'SEC_TO_TIME':_0x18a160(0xe9),'DATE':_0x18a160(0xf0),'HOUR':'HOUR(%s)','ROUND':'ROUND(%s)','UNIX_TIMESTAMP':_0x18a160(0xfa)},_0x3d5472=function(_0x3d97f5){const _0x3c8d3b=_0x18a160;return!_[_0x3c8d3b(0xdb)]([_0x3c8d3b(0x102),_0x3c8d3b(0xf2),_0x3c8d3b(0x136),_0x3c8d3b(0x147)],_0x3d97f5);},_0x5dc5c4=function(_0x193e81){const _0x1bf16e=_0x18a160;if(!_0x193e81||!_0x193e81['rules'][_0x1bf16e(0x11e)])return'';let _0x4e7ce1='(';for(let _0x1805e0=0x0;_0x1805e0<_0x193e81[_0x1bf16e(0xd5)]['length'];_0x1805e0+=0x1){_0x1805e0>0x0&&(_0x4e7ce1+='\x20'+_0x193e81[_0x1bf16e(0x144)]+'\x20'),_0x4e7ce1+=_0x193e81[_0x1bf16e(0xd5)][_0x1805e0][_0x1bf16e(0x141)]?_0x5dc5c4(_0x193e81['rules'][_0x1805e0][_0x1bf16e(0x141)]):_0x193e81['rules'][_0x1805e0][_0x1bf16e(0x154)]+'\x20'+_0x193e81[_0x1bf16e(0xd5)][_0x1805e0]['condition']+(_0x3d5472(_0x193e81[_0x1bf16e(0xd5)][_0x1805e0][_0x1bf16e(0x11c)])?'\x20'+_0x193e81[_0x1bf16e(0xd5)][_0x1805e0]['value']:'');}return _0x4e7ce1+')';};let _0x5318b1={'where':{'id':_0x5deaf3['id']}},_0x6e23c8,_0x4c5dbb,_0x4f9b2f,_0x418d2c,_0x4e533a;return _0x5318b1=_[_0x18a160(0x143)]({},_0x5318b1,_0x31b688),db[_0x18a160(0xfb)]['findOne'](_0x5318b1)['then'](function(_0x438edf){const _0x82daa2=_0x18a160;if(_0x438edf)return _0x6e23c8=_0x438edf,_0x438edf[_0x82daa2(0xce)]();return null;})[_0x18a160(0x10f)](function(_0x390d80){const _0x5aa7d4=_0x18a160;if(_0x390d80){if(!_0x390d80[_0x5aa7d4(0x11e)])throw new ValidationErrorItem(_0x5aa7d4(0x131),0x193);return _0x4c5dbb=_0x390d80,db['AnalyticMetric'][_0x5aa7d4(0xf6)]({'raw':!![]});}return null;})[_0x18a160(0x10f)](function(_0x4981e4){const _0x4559b9=_0x18a160;if(_0x4981e4){_0x4f9b2f=_['keyBy'](_0x4981e4,'id');let _0x7f66fa;const _0x322b9e=squel[_0x4559b9(0xf5)]();_0x322b9e[_0x4559b9(0x14e)](_0x6e23c8[_0x4559b9(0x13c)]);for(let _0x23d7ea=0x0;_0x23d7ea<_0x4c5dbb[_0x4559b9(0x11e)];_0x23d7ea+=0x1){_0x7f66fa=_0x4c5dbb[_0x23d7ea][_0x4559b9(0x12f)]?_0x4f9b2f[_0x4c5dbb[_0x23d7ea][_0x4559b9(0x12f)]][_0x4559b9(0x108)]:_0x4c5dbb[_0x23d7ea][_0x4559b9(0x154)],_0x7f66fa=_0x4c5dbb[_0x23d7ea]['function']?_[_0x4559b9(0x118)](_0x1ac723[_0x4c5dbb[_0x23d7ea]['function']],'%s',_0x7f66fa):_0x7f66fa,_0x7f66fa=_0x4c5dbb[_0x23d7ea][_0x4559b9(0x142)]?_[_0x4559b9(0x118)](_0x3431b1[_0x4c5dbb[_0x23d7ea]['format']],'%s',_0x7f66fa):_0x7f66fa,_0x4c5dbb[_0x23d7ea]['groupBy']&&_0x322b9e[_0x4559b9(0x141)](_0x7f66fa),_0x4c5dbb[_0x23d7ea][_0x4559b9(0xe2)]&&_0x322b9e[_0x4559b9(0xcd)](_0x7f66fa,_0x4c5dbb[_0x23d7ea][_0x4559b9(0xe2)]===_0x4559b9(0xf8)?![]:!![]),_0x322b9e[_0x4559b9(0x154)](_0x7f66fa,_0x4c5dbb[_0x23d7ea][_0x4559b9(0x11f)]||_0x7f66fa);}if(_0x6e23c8[_0x4559b9(0x123)]){_0x6e23c8[_0x4559b9(0x123)]=JSON[_0x4559b9(0xe1)](_0x6e23c8[_0x4559b9(0x123)]);for(let _0x41d7b0=0x0;_0x41d7b0<_0x6e23c8[_0x4559b9(0x123)]['length'];_0x41d7b0+=0x1){_0x6e23c8['joins'][_0x41d7b0]['type']&&_[_0x4559b9(0xdb)](_0x46924b,_0x6e23c8[_0x4559b9(0x123)][_0x41d7b0][_0x4559b9(0x119)])&&_0x6e23c8[_0x4559b9(0x123)][_0x41d7b0][_0x4559b9(0xe0)]&&_0x6e23c8['joins'][_0x41d7b0][_0x4559b9(0xf3)]&&_0x6e23c8[_0x4559b9(0x123)][_0x41d7b0][_0x4559b9(0x122)]&&_0x322b9e[_0x6e23c8[_0x4559b9(0x123)][_0x41d7b0][_0x4559b9(0x119)]](_0x6e23c8[_0x4559b9(0x123)][_0x41d7b0][_0x4559b9(0xf3)],null,util[_0x4559b9(0x142)]('%s.%s\x20=\x20%s.%s',_0x6e23c8['table'],_0x6e23c8[_0x4559b9(0x123)][_0x41d7b0]['parentKey'],_0x6e23c8[_0x4559b9(0x123)][_0x41d7b0]['foreignTable'],_0x6e23c8[_0x4559b9(0x123)][_0x41d7b0][_0x4559b9(0x122)]));}}return _0x6e23c8['conditions']&&(_0x6e23c8[_0x4559b9(0xe7)]=JSON[_0x4559b9(0xe1)](_0x6e23c8[_0x4559b9(0xe7)]),_0x322b9e[_0x4559b9(0xd2)](_0x5dc5c4(_0x6e23c8['conditions'][_0x4559b9(0x141)]))),_0x4e533a=_0x322b9e[_0x4559b9(0xcf)](),_0x322b9e[_0x4559b9(0xde)](_0x1facc0),_0x322b9e[_0x4559b9(0xd9)](0x0),logger[_0x4559b9(0xdd)](_0x4559b9(0x152),_0x322b9e['toString']()),db[_0x4559b9(0x114)]['query'](_0x322b9e[_0x4559b9(0x11a)](),{'type':QueryTypes[_0x4559b9(0x13d)]});}})['then'](function(_0x47e156){const _0x2110dc=_0x18a160;if(!_0x47e156[_0x2110dc(0x11e)])throw new ValidationErrorItem('No\x20available\x20data',0xcc);if(_0x3cf512[_0x2110dc(0x115)]===_0x2110dc(0xf7))return null;const _0x47b51e=_[_0x2110dc(0x143)](_0x3cf512,{'name':_0x3cf512[_0x2110dc(0x126)]||_0x3cf512[_0x2110dc(0x121)]||_0x6e23c8[_0x2110dc(0x121)],'basename':_0x29c042,'savename':util['format']('%s-%s.%s',_0x3cf512[_0x2110dc(0x121)]||_0x6e23c8['name'],require(_0x2110dc(0xd6))['generate'](0x4),_0x3cf512['output']||'csv'),'reportId':_0x6e23c8['id'],'reportType':_0x2110dc(0x12a)});return db[_0x2110dc(0xf1)][_0x2110dc(0x125)](_0x47b51e,{'raw':!![]});})[_0x18a160(0x10f)](function(_0x269c2a){const _0x342ec5=_0x18a160;_0x6e23c8[_0x342ec5(0x13c)]===_0x342ec5(0x117)?_0x4e533a[_0x342ec5(0xd2)](_0x6e23c8[_0x342ec5(0x13c)]+_0x342ec5(0xd1),_0x3cf512[_0x342ec5(0x156)],_0x3cf512['endDate']):_0x4e533a[_0x342ec5(0xd2)](_0x6e23c8['table']+'.createdAt\x20BETWEEN\x20?\x20AND\x20?',_0x3cf512[_0x342ec5(0x156)],_0x3cf512[_0x342ec5(0x149)]);if(_0x269c2a)return logger[_0x342ec5(0xe5)](_0x342ec5(0x109),_0x4e533a[_0x342ec5(0x11a)]()),require(_0x342ec5(0xe8))[_0x342ec5(0x10e)](path[_0x342ec5(0xca)](__dirname,_0x342ec5(0x134),_0x269c2a['output']),[_0x269c2a['id'],_0x4e533a[_0x342ec5(0x11a)](),path[_0x342ec5(0xca)](__dirname,'../../files/reports',_0x269c2a[_0x342ec5(0x145)]),_0x29c042]),_0x269c2a;else{const _0xb4873f=squel[_0x342ec5(0xf5)]();return _0xb4873f[_0x342ec5(0x14e)]('('+_0x4e533a[_0x342ec5(0x11a)]()+')',_0x342ec5(0xff)),_0xb4873f['field'](_0x342ec5(0xfc),_0x342ec5(0x106)),_0x4e533a[_0x342ec5(0xde)](_0x3cf512[_0x342ec5(0xde)]||_0x1facc0),_0x4e533a[_0x342ec5(0xd9)](_0x3cf512[_0x342ec5(0xd9)]||0x0),dbH[_0x342ec5(0x114)][_0x342ec5(0x133)](_0xb4873f[_0x342ec5(0x11a)](),{'type':dbH[_0x342ec5(0x114)][_0x342ec5(0xec)][_0x342ec5(0x13d)]})['then'](function(_0x580d6b){const _0x16eece=_0x342ec5;return!_0x580d6b[_0x16eece(0x11e)]?_0x418d2c=0x0:_0x418d2c=_0x580d6b[0x0][_0x16eece(0x106)]||0x0,dbH['sequelize'][_0x16eece(0x133)](_0x4e533a[_0x16eece(0x11a)](),{'type':dbH[_0x16eece(0x114)][_0x16eece(0xec)][_0x16eece(0x13d)]});})[_0x342ec5(0x10f)](function(_0x46ba4f){return{'rows':_0x46ba4f||[],'count':_0x418d2c};});}});}exports[a6_0x3930aa(0x135)]=function(_0x4c701f,_0x3ff846){const _0xd9e154=a6_0x3930aa;return runReport(_0x4c701f[_0xd9e154(0x148)],_0x4c701f[_0xd9e154(0x133)],_0x4c701f[_0xd9e154(0x14f)])[_0xd9e154(0x10f)](respondWithResult(_0x3ff846,null))[_0xd9e154(0xf9)](handleError(_0x3ff846,null));},exports[a6_0x3930aa(0x13f)]=runReport,exports[a6_0x3930aa(0x133)]=function(_0x355797,_0x131d64){const _0x1df751=a6_0x3930aa,_0x141c37=0xa,_0x40cd42=[_0x1df751(0xca),'left_join',_0x1df751(0x113),'cross_join'],_0xb64185={'SUM':_0x1df751(0x12e),'COUNT':_0x1df751(0x11b),'COUNT\x20DISTINCT':_0x1df751(0x158),'MAX':_0x1df751(0x112),'MIN':_0x1df751(0x13e),'AVG':_0x1df751(0x110),'GROUP_CONCAT':_0x1df751(0x129),'GROUP_CONCAT\x20ASC':'GROUP_CONCAT(%s\x20ORDER\x20BY\x20%s\x20ASC)','GROUP_CONCAT\x20DESC':'GROUP_CONCAT(%s\x20ORDER\x20BY\x20%s\x20DESC)'},_0x390a42={'SEC_TO_TIME':_0x1df751(0xe9),'DATE':_0x1df751(0xf0),'HOUR':_0x1df751(0xe3),'ROUND':_0x1df751(0x124),'UNIX_TIMESTAMP':'UNIX_TIMESTAMP(%s)'},_0x30a90f=function(_0x10a7a4){const _0x40ee3c=_0x1df751;return!_[_0x40ee3c(0xdb)]([_0x40ee3c(0x102),_0x40ee3c(0xf2),_0x40ee3c(0x136),_0x40ee3c(0x147)],_0x10a7a4);},_0x38694e=function(_0x29ccec){const _0x375e42=_0x1df751;if(!_0x29ccec||!_0x29ccec[_0x375e42(0xd5)][_0x375e42(0x11e)])return'';let _0x2e74f2='(';for(let _0x4d31c9=0x0;_0x4d31c9<_0x29ccec[_0x375e42(0xd5)][_0x375e42(0x11e)];_0x4d31c9+=0x1){_0x4d31c9>0x0&&(_0x2e74f2+='\x20'+_0x29ccec[_0x375e42(0x144)]+'\x20'),_0x2e74f2+=_0x29ccec['rules'][_0x4d31c9][_0x375e42(0x141)]?_0x38694e(_0x29ccec[_0x375e42(0xd5)][_0x4d31c9][_0x375e42(0x141)]):_0x29ccec[_0x375e42(0xd5)][_0x4d31c9]['field']+'\x20'+_0x29ccec[_0x375e42(0xd5)][_0x4d31c9][_0x375e42(0x11c)]+(_0x30a90f(_0x29ccec[_0x375e42(0xd5)][_0x4d31c9][_0x375e42(0x11c)])?'\x20'+_0x29ccec[_0x375e42(0xd5)][_0x4d31c9][_0x375e42(0xcb)]:'');}return _0x2e74f2+')';};let _0x373ba0={'where':{'id':_0x355797['params']['id']}},_0x2e1660,_0x3b0e5d,_0x39a42c,_0x13c674;return _0x373ba0=_[_0x1df751(0x143)]({},_0x373ba0,_0x355797[_0x1df751(0x14f)]),db[_0x1df751(0xfb)][_0x1df751(0xfd)](_0x373ba0)[_0x1df751(0x10f)](function(_0x3fd60b){const _0x59ed36=_0x1df751;if(_0x3fd60b)return _0x2e1660=_0x3fd60b,_0x3fd60b[_0x59ed36(0xce)]();return null;})['then'](function(_0x45afca){const _0x4652c1=_0x1df751;if(_0x45afca){if(!_0x45afca[_0x4652c1(0x11e)])throw new ValidationErrorItem(_0x4652c1(0x131),0x193);return _0x3b0e5d=_0x45afca,db[_0x4652c1(0x120)][_0x4652c1(0xf6)]({'raw':!![]});}return null;})[_0x1df751(0x10f)](function(_0x4a04a7){const _0x560037=_0x1df751;if(_0x4a04a7){_0x39a42c=_[_0x560037(0x138)](_0x4a04a7,'id');let _0x73f599;const _0x5a7980=squel['select']();_0x5a7980['from'](_0x2e1660[_0x560037(0x13c)]);for(let _0x3a03be=0x0;_0x3a03be<_0x3b0e5d[_0x560037(0x11e)];_0x3a03be+=0x1){_0x73f599=_0x3b0e5d[_0x3a03be][_0x560037(0x12f)]?_0x39a42c[_0x3b0e5d[_0x3a03be][_0x560037(0x12f)]]['metric']:_0x3b0e5d[_0x3a03be][_0x560037(0x154)],_0x73f599=_0x3b0e5d[_0x3a03be][_0x560037(0x10a)]?_[_0x560037(0x118)](_0xb64185[_0x3b0e5d[_0x3a03be][_0x560037(0x10a)]],'%s',_0x73f599):_0x73f599,_0x73f599=_0x3b0e5d[_0x3a03be]['format']?_[_0x560037(0x118)](_0x390a42[_0x3b0e5d[_0x3a03be][_0x560037(0x142)]],'%s',_0x73f599):_0x73f599,_0x3b0e5d[_0x3a03be][_0x560037(0x150)]&&_0x5a7980[_0x560037(0x141)](_0x73f599),_0x3b0e5d[_0x3a03be][_0x560037(0xe2)]&&_0x5a7980[_0x560037(0xcd)](_0x73f599,_0x3b0e5d[_0x3a03be][_0x560037(0xe2)]==='DESC'?![]:!![]),_0x5a7980[_0x560037(0x154)](_0x73f599,_0x3b0e5d[_0x3a03be]['alias']||_0x73f599);}if(_0x2e1660[_0x560037(0x123)]){_0x2e1660[_0x560037(0x123)]=JSON[_0x560037(0xe1)](_0x2e1660[_0x560037(0x123)]);for(let _0x2ad9d2=0x0;_0x2ad9d2<_0x2e1660[_0x560037(0x123)]['length'];_0x2ad9d2+=0x1){_0x2e1660[_0x560037(0x123)][_0x2ad9d2][_0x560037(0x119)]&&_['includes'](_0x40cd42,_0x2e1660[_0x560037(0x123)][_0x2ad9d2]['type'])&&_0x2e1660['joins'][_0x2ad9d2]['parentKey']&&_0x2e1660[_0x560037(0x123)][_0x2ad9d2]['foreignTable']&&_0x2e1660['joins'][_0x2ad9d2]['foreignKey']&&_0x5a7980[_0x2e1660[_0x560037(0x123)][_0x2ad9d2][_0x560037(0x119)]](_0x2e1660[_0x560037(0x123)][_0x2ad9d2][_0x560037(0xf3)],null,util[_0x560037(0x142)](_0x560037(0x14a),_0x2e1660[_0x560037(0x13c)],_0x2e1660[_0x560037(0x123)][_0x2ad9d2]['parentKey'],_0x2e1660[_0x560037(0x123)][_0x2ad9d2][_0x560037(0xf3)],_0x2e1660[_0x560037(0x123)][_0x2ad9d2]['foreignKey']));}}return _0x2e1660[_0x560037(0xe7)]&&(_0x2e1660[_0x560037(0xe7)]=JSON[_0x560037(0xe1)](_0x2e1660[_0x560037(0xe7)]),_0x5a7980['where'](_0x38694e(_0x2e1660[_0x560037(0xe7)][_0x560037(0x141)]))),_0x13c674=_0x5a7980['clone'](),_0x5a7980[_0x560037(0xde)](_0x141c37),_0x5a7980[_0x560037(0xd9)](0x0),logger['debug'](_0x560037(0x152),_0x5a7980[_0x560037(0x11a)]()),db['sequelize']['query'](_0x5a7980['toString'](),{'type':QueryTypes[_0x560037(0x13d)]});}})[_0x1df751(0x10f)](function(){return{'sql':_0x13c674['toString']()};})[_0x1df751(0x10f)](respondWithResult(_0x131d64,null))[_0x1df751(0xf9)](handleError(_0x131d64,null));}; \ No newline at end of file diff --git a/server/api/analyticCustomReport/analyticCustomReport.model.js b/server/api/analyticCustomReport/analyticCustomReport.model.js index d78e737..22cdf48 100644 --- a/server/api/analyticCustomReport/analyticCustomReport.model.js +++ b/server/api/analyticCustomReport/analyticCustomReport.model.js @@ -1 +1 @@ -const a6_0x3a58=['analytics_custom_reports','./analyticCustomReport.attributes','AnalyticCustomReport'];(function(_0x10619e,_0x3a58c4){const _0xa85e2f=function(_0x41761d){while(--_0x41761d){_0x10619e['push'](_0x10619e['shift']());}};_0xa85e2f(++_0x3a58c4);}(a6_0x3a58,0x12d));const a6_0xa85e=function(_0x10619e,_0x3a58c4){_0x10619e=_0x10619e-0x0;let _0xa85e2f=a6_0x3a58[_0x10619e];return _0xa85e2f;};const _0x3f8a6d=a6_0xa85e;'use strict';const attributes=require(_0x3f8a6d('0x0'));module['exports']=function(_0x41761d){const _0x511448=_0x3f8a6d,_0x1e3829=_0x41761d['define'](_0x511448('0x1'),attributes,{'tableName':_0x511448('0x2'),'paranoid':!![],'indexes':[],'timestamps':!![]});return _0x1e3829;}; \ No newline at end of file +const a7_0x3472=['./analyticCustomReport.attributes','function','init','AnalyticCustomReport','exports','./analyticCustomReport.options'];(function(_0xceb447,_0x1fc85a){const _0x347269=function(_0x526cb4){while(--_0x526cb4){_0xceb447['push'](_0xceb447['shift']());}};_0x347269(++_0x1fc85a);}(a7_0x3472,0x7d));const a7_0x526c=function(_0xceb447,_0x1fc85a){_0xceb447=_0xceb447-0x1aa;let _0x347269=a7_0x3472[_0xceb447];return _0x347269;};const a7_0x47d0d6=a7_0x526c;'use strict';const {Model}=require('sequelize'),{attributes}=require(a7_0x47d0d6(0x1ab)),{options}=require(a7_0x47d0d6(0x1aa));class AnalyticCustomReport extends Model{}function init(_0x4f162f,_0x1bc101){const _0x39d159=a7_0x47d0d6,_0x4c06e0=options(_0x4f162f),_0x4c5e04=typeof _0x1bc101===_0x39d159(0x1ac)?_0x1bc101(_0x4c06e0):_0x4c06e0;return AnalyticCustomReport[_0x39d159(0x1ad)](attributes,_0x4c5e04),AnalyticCustomReport;}module['exports'][a7_0x47d0d6(0x1ae)]=AnalyticCustomReport,module[a7_0x47d0d6(0x1af)][a7_0x47d0d6(0x1ad)]=init; \ No newline at end of file diff --git a/server/api/analyticCustomReport/analyticCustomReport.options.js b/server/api/analyticCustomReport/analyticCustomReport.options.js new file mode 100644 index 0000000..001eaf4 --- /dev/null +++ b/server/api/analyticCustomReport/analyticCustomReport.options.js @@ -0,0 +1 @@ +var a8_0xd26d=['exports','options'];(function(_0x4528af,_0x2f4824){var _0xd26dc8=function(_0x1ffcc5){while(--_0x1ffcc5){_0x4528af['push'](_0x4528af['shift']());}};_0xd26dc8(++_0x2f4824);}(a8_0xd26d,0x175));var a8_0x1ffc=function(_0x4528af,_0x2f4824){_0x4528af=_0x4528af-0x70;var _0xd26dc8=a8_0xd26d[_0x4528af];return _0xd26dc8;};var a8_0x504970=a8_0x1ffc;function options(_0xf98418){return{'sequelize':_0xf98418,'tableName':'analytics_custom_reports','paranoid':!![],'indexes':[],'timestamps':!![]};}module[a8_0x504970(0x71)][a8_0x504970(0x70)]=options; \ No newline at end of file diff --git a/server/api/analyticCustomReport/index.js b/server/api/analyticCustomReport/index.js index b6cfcf4..32b0aa5 100644 --- a/server/api/analyticCustomReport/index.js +++ b/server/api/analyticCustomReport/index.js @@ -1 +1 @@ -const a7_0x57e6=['/:id/query','put','delete','get','/:id','run','Router','isAuthenticated','query','/:id/run','/:id/preview','show','update','../../components/auth/service','preview','post'];(function(_0x5f130c,_0x57e6ea){const _0x196dbe=function(_0x5d38be){while(--_0x5d38be){_0x5f130c['push'](_0x5f130c['shift']());}};_0x196dbe(++_0x57e6ea);}(a7_0x57e6,0x1da));const a7_0x196d=function(_0x5f130c,_0x57e6ea){_0x5f130c=_0x5f130c-0x0;let _0x196dbe=a7_0x57e6[_0x5f130c];return _0x196dbe;};const _0x4dc873=a7_0x196d;'use strict';const express=require('express'),router=express[_0x4dc873('0xc')](),auth=require(_0x4dc873('0x3')),controller=require('./analyticCustomReport.controller');router[_0x4dc873('0x9')]('/',auth[_0x4dc873('0xd')](),controller['index']),router[_0x4dc873('0x9')](_0x4dc873('0xa'),auth[_0x4dc873('0xd')](),controller[_0x4dc873('0x1')]),router['get'](_0x4dc873('0x0'),auth[_0x4dc873('0xd')](),controller[_0x4dc873('0x4')]),router[_0x4dc873('0x9')](_0x4dc873('0xf'),auth[_0x4dc873('0xd')](),controller[_0x4dc873('0xb')]),router[_0x4dc873('0x9')](_0x4dc873('0x6'),auth['isAuthenticated'](),controller[_0x4dc873('0xe')]),router[_0x4dc873('0x5')]('/',auth[_0x4dc873('0xd')](),controller['create']),router[_0x4dc873('0x7')](_0x4dc873('0xa'),auth[_0x4dc873('0xd')](),controller[_0x4dc873('0x2')]),router[_0x4dc873('0x8')](_0x4dc873('0xa'),auth[_0x4dc873('0xd')](),controller['destroy']),module['exports']=router; \ No newline at end of file +const a9_0x2c19=['/:id/preview','express','create','isAuthenticated','get','put','query','/:id','delete','/:id/run','update','post','Router','run','exports','index','../../components/auth/service','show'];(function(_0x10c52c,_0x475519){const _0x2c1993=function(_0x3cf372){while(--_0x3cf372){_0x10c52c['push'](_0x10c52c['shift']());}};_0x2c1993(++_0x475519);}(a9_0x2c19,0xd2));const a9_0x3cf3=function(_0x10c52c,_0x475519){_0x10c52c=_0x10c52c-0x1d8;let _0x2c1993=a9_0x2c19[_0x10c52c];return _0x2c1993;};const a9_0x2317a4=a9_0x3cf3;'use strict';const express=require(a9_0x2317a4(0x1df)),router=express[a9_0x2317a4(0x1d8)](),auth=require(a9_0x2317a4(0x1dc)),controller=require('./analyticCustomReport.controller');router[a9_0x2317a4(0x1e2)]('/',auth[a9_0x2317a4(0x1e1)](),controller[a9_0x2317a4(0x1db)]),router[a9_0x2317a4(0x1e2)](a9_0x2317a4(0x1e5),auth['isAuthenticated'](),controller[a9_0x2317a4(0x1dd)]),router[a9_0x2317a4(0x1e2)](a9_0x2317a4(0x1de),auth[a9_0x2317a4(0x1e1)](),controller['preview']),router['get'](a9_0x2317a4(0x1e7),auth[a9_0x2317a4(0x1e1)](),controller[a9_0x2317a4(0x1d9)]),router[a9_0x2317a4(0x1e2)]('/:id/query',auth[a9_0x2317a4(0x1e1)](),controller[a9_0x2317a4(0x1e4)]),router[a9_0x2317a4(0x1e9)]('/',auth['isAuthenticated'](),controller[a9_0x2317a4(0x1e0)]),router[a9_0x2317a4(0x1e3)]('/:id',auth[a9_0x2317a4(0x1e1)](),controller[a9_0x2317a4(0x1e8)]),router[a9_0x2317a4(0x1e6)]('/:id',auth[a9_0x2317a4(0x1e1)](),controller['destroy']),module[a9_0x2317a4(0x1da)]=router; \ No newline at end of file diff --git a/server/api/analyticDefaultReport/analyticDefaultReport.attributes.js b/server/api/analyticDefaultReport/analyticDefaultReport.attributes.js index 716ea54..1c4cabc 100644 --- a/server/api/analyticDefaultReport/analyticDefaultReport.attributes.js +++ b/server/api/analyticDefaultReport/analyticDefaultReport.attributes.js @@ -1 +1 @@ -const a8_0x5071=['sequelize','TEXT','STRING'];(function(_0xeb73ee,_0x507131){const _0x3ac0da=function(_0x310adf){while(--_0x310adf){_0xeb73ee['push'](_0xeb73ee['shift']());}};_0x3ac0da(++_0x507131);}(a8_0x5071,0x1f3));const a8_0x3ac0=function(_0xeb73ee,_0x507131){_0xeb73ee=_0xeb73ee-0x0;let _0x3ac0da=a8_0x5071[_0xeb73ee];return _0x3ac0da;};const _0x5a7952=a8_0x3ac0;'use strict';const Sequelize=require(_0x5a7952('0x2'));module['exports']={'name':{'type':Sequelize[_0x5a7952('0x1')],'allowNull':![]},'description':{'type':Sequelize['STRING']},'parent':{'type':Sequelize[_0x5a7952('0x1')]},'table':{'type':Sequelize['STRING']},'conditions':{'type':Sequelize[_0x5a7952('0x0')]},'joins':{'type':Sequelize[_0x5a7952('0x0')]}}; \ No newline at end of file +const a10_0x1b4b=['exports','TEXT','STRING'];(function(_0x20f79c,_0x239ced){const _0x1b4ba4=function(_0x391c12){while(--_0x391c12){_0x20f79c['push'](_0x20f79c['shift']());}};_0x1b4ba4(++_0x239ced);}(a10_0x1b4b,0x1de));const a10_0x391c=function(_0x20f79c,_0x239ced){_0x20f79c=_0x20f79c-0x165;let _0x1b4ba4=a10_0x1b4b[_0x20f79c];return _0x1b4ba4;};const a10_0x2f3395=a10_0x391c;'use strict';const {DataTypes}=require('sequelize'),attributes={'name':{'type':DataTypes[a10_0x2f3395(0x166)],'allowNull':![]},'description':{'type':DataTypes['STRING']},'parent':{'type':DataTypes[a10_0x2f3395(0x166)]},'table':{'type':DataTypes[a10_0x2f3395(0x166)]},'conditions':{'type':DataTypes[a10_0x2f3395(0x165)]},'joins':{'type':DataTypes[a10_0x2f3395(0x165)]}};module[a10_0x2f3395(0x167)]['attributes']=attributes; \ No newline at end of file diff --git a/server/api/analyticDefaultReport/analyticDefaultReport.controller.js b/server/api/analyticDefaultReport/analyticDefaultReport.controller.js index 81e6c16..9a1a9c3 100644 --- a/server/api/analyticDefaultReport/analyticDefaultReport.controller.js +++ b/server/api/analyticDefaultReport/analyticDefaultReport.controller.js @@ -1 +1 @@ -const a9_0x57eb=['../../components/parsers/qs','run','DATE(%s)','metric','order','groupBy','table','IS\x20NULL','body','getFields','HOUR(%s)','MAX(%s)','output','conditions','send','AnalyticMetric','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','IS\x20NOT\x20NULL','endDate','AVG(%s)','sequelize','join','replace','operator','COUNT(%s)','where','orderBy','intersection','destroy','No\x20available\x20data','autoAssociation','error','UNIX_TIMESTAMP(%s)','from','ROUND(%s)','Run\x20Query:','COUNT(DISTINCT\x20%s)','SELECT','fields','debug','select','left_join','dbH','filter','json','type','Reports','clone','count','Limited\x20Query:','GROUP_CONCAT(%s\x20ORDER\x20BY\x20%s\x20DESC)','Content-Range','GROUP_CONCAT(%s)','map','sort','Unable\x20to\x20retrieve\x20the\x20current\x20user','child_process','cross_join','MetricId','api','field','value','DESC','keys','%s-%s.%s','includes','foreignKey','findAll','Please\x20insert\x20at\x20least\x20one\x20field','function','IS\x20NOT\x20EMPTY','includeAll','AnalyticExtractedReport','joins','options','randomstring','../../mysqldb','IS\x20EMPTY','../../components/export/','filters','then','util','findOne','attributes','UserProfileResource','get','include','parentKey','params','startDate','status','end','model','UserProfileSection','preview','alias','length','toString','savename','rules','merge','QueryTypes','rawAttributes','update','SUM(%s)','catch','limit','index','pick','GROUP_CONCAT(%s\x20ORDER\x20BY\x20%s\x20ASC)','right_join','role','MIN(%s)','sendStatus','format','parse','keyBy','../../files/reports','default','query','%s.%s\x20=\x20%s.%s','foreignTable','web','../../config/logger','offset','AnalyticDefaultReport','.createdAt\x20BETWEEN\x20?\x20AND\x20?','userProfileId','DefaultReports','name','create','group','runReport','condition','user','lodash','info','csv'];(function(_0x398dfa,_0x57eb46){const _0x4f85ff=function(_0x4d4042){while(--_0x4d4042){_0x398dfa['push'](_0x398dfa['shift']());}};_0x4f85ff(++_0x57eb46);}(a9_0x57eb,0x6f));const a9_0x4f85=function(_0x398dfa,_0x57eb46){_0x398dfa=_0x398dfa-0x0;let _0x4f85ff=a9_0x57eb[_0x398dfa];return _0x4f85ff;};const _0x57fee7=a9_0x4f85;'use strict';const util=require(_0x57fee7('0x6c')),path=require('path'),_=require(_0x57fee7('0x18')),squel=require('squel'),qs=require(_0x57fee7('0x1b')),logger=require(_0x57fee7('0xc'))(_0x57fee7('0x56')),db=require(_0x57fee7('0x67'))['db'],dbH=require(_0x57fee7('0x67'))[_0x57fee7('0x45')],{Op,ValidationErrorItem,QueryTypes}=require(_0x57fee7('0x2f'));function respondWithResult(_0x4d4042,_0x5e348f){return _0x5e348f=_0x5e348f||0xc8,function(_0x41dd7a){const _0x5a62d4=a9_0x4f85;if(_0x41dd7a)return _0x4d4042[_0x5a62d4('0x75')](_0x5e348f)[_0x5a62d4('0x47')](_0x41dd7a);};}function respondWithFilteredResult(_0x3aa720,_0x30e290){return function(_0x2f5408){const _0x272d4b=a9_0x4f85;if(_0x2f5408){const _0x3a61c2=_0x2f5408[_0x272d4b('0x4b')],_0x535e4f=_0x30e290[_0x272d4b('0xd')];let _0x48b2b9=_0x30e290[_0x272d4b('0xd')]+_0x30e290[_0x272d4b('0x85')],_0x5eae28;return _0x48b2b9>=_0x3a61c2?(_0x48b2b9=_0x3a61c2,_0x5eae28=0xc8):_0x5eae28=0xce,_0x3aa720[_0x272d4b('0x75')](_0x5eae28),_0x3aa720['set'](_0x272d4b('0x4e'),_0x535e4f+'-'+_0x48b2b9+'/'+_0x3a61c2)[_0x272d4b('0x47')](_0x2f5408);}return null;};}function saveUpdates(_0x2b2194){return function(_0x1fb2ef){if(_0x1fb2ef)return _0x1fb2ef['update'](_0x2b2194)['then'](function(_0x4f5a72){return _0x4f5a72;});return null;};}function removeEntity(_0x3aba32){return function(_0x53379f){const _0x37bb8c=a9_0x4f85;if(_0x53379f)return _0x53379f[_0x37bb8c('0x37')]()[_0x37bb8c('0x6b')](function(){const _0x595e0e=_0x37bb8c,_0x11fcbb=_0x53379f[_0x595e0e('0x70')]({'plain':!![]}),_0x33ff16=_0x595e0e('0x11');return db[_0x595e0e('0x6f')]['destroy']({'where':{'type':_0x33ff16,'resourceId':_0x11fcbb['id']}})[_0x595e0e('0x6b')](function(){return _0x53379f;});})[_0x37bb8c('0x6b')](function(){const _0x4c59be=_0x37bb8c;_0x3aba32['status'](0xcc)[_0x4c59be('0x76')]();});};}function handleEntityNotFound(_0x238d57){return function(_0x32584c){const _0x29f61f=a9_0x4f85;return!_0x32584c&&_0x238d57[_0x29f61f('0x2')](0x194),_0x32584c;};}function handleError(_0x5dcab4,_0x6a3a13){return _0x6a3a13=_0x6a3a13||0x1f4,function(_0x2a21a8){const _0x575618=a9_0x4f85;logger[_0x575618('0x3a')](_0x2a21a8['stack']),_0x2a21a8['name']&&delete _0x2a21a8[_0x575618('0x12')],_0x5dcab4[_0x575618('0x75')](_0x6a3a13)[_0x575618('0x29')](_0x2a21a8);};}exports[_0x57fee7('0x86')]=function(_0x216fbf,_0x2d8bef){const _0x344f73=_0x57fee7;let _0x4731cc={};const _0x1cc8b1={},_0xd318ee={'count':0x0,'rows':[]},_0x4389f7=_[_0x344f73('0x50')](db[_0x344f73('0xe')][_0x344f73('0x81')],function(_0x54f9bc){const _0x563c4a=_0x344f73;return{'name':_0x54f9bc['fieldName'],'type':_0x54f9bc[_0x563c4a('0x48')]['key']};});_0x1cc8b1['model']=_[_0x344f73('0x50')](_0x4389f7,'name'),_0x1cc8b1['query']=_[_0x344f73('0x5a')](_0x216fbf[_0x344f73('0x8')]),_0x1cc8b1['filters']=_[_0x344f73('0x36')](_0x1cc8b1[_0x344f73('0x77')],_0x1cc8b1[_0x344f73('0x8')]),_0x4731cc[_0x344f73('0x6e')]=_['intersection'](_0x1cc8b1['model'],qs[_0x344f73('0x41')](_0x216fbf[_0x344f73('0x8')][_0x344f73('0x41')])),_0x4731cc['attributes']=_0x4731cc[_0x344f73('0x6e')][_0x344f73('0x7b')]?_0x4731cc[_0x344f73('0x6e')]:_0x1cc8b1['model'];typeof _0x216fbf[_0x344f73('0x8')]['nolimit']==='undefined'&&(_0x4731cc[_0x344f73('0x85')]=qs['limit'](_0x216fbf[_0x344f73('0x8')][_0x344f73('0x85')]),_0x4731cc[_0x344f73('0xd')]=qs[_0x344f73('0xd')](_0x216fbf[_0x344f73('0x8')][_0x344f73('0xd')]));_0x4731cc[_0x344f73('0x1f')]=qs[_0x344f73('0x51')](_0x216fbf[_0x344f73('0x8')][_0x344f73('0x51')]),_0x4731cc[_0x344f73('0x34')]=qs[_0x344f73('0x6a')](_[_0x344f73('0x87')](_0x216fbf[_0x344f73('0x8')],_0x1cc8b1['filters']),_0x4389f7);_0x216fbf['query'][_0x344f73('0x46')]&&(_0x4731cc[_0x344f73('0x34')]=_[_0x344f73('0x7f')](_0x4731cc[_0x344f73('0x34')],{[Op['or']]:_[_0x344f73('0x50')](_0x4389f7,function(_0x40c921){const _0x20de35=_0x344f73;if(_0x40c921[_0x20de35('0x48')]!=='VIRTUAL'){const _0x3355d6={};return _0x3355d6[_0x40c921['name']]={[Op['like']]:'%'+_0x216fbf[_0x20de35('0x8')][_0x20de35('0x46')]+'%'},_0x3355d6;}})}));_0x4731cc=_[_0x344f73('0x7f')]({},_0x4731cc,_0x216fbf[_0x344f73('0x65')]);const _0x4f6dec={'where':_0x4731cc[_0x344f73('0x34')]};return db[_0x344f73('0xe')][_0x344f73('0x4b')](_0x4f6dec)[_0x344f73('0x6b')](function(_0x559577){const _0x4b20e7=_0x344f73;return _0xd318ee['count']=_0x559577,_0x216fbf[_0x4b20e7('0x8')][_0x4b20e7('0x62')]&&(_0x4731cc['include']=[{'all':!![]}]),db[_0x4b20e7('0xe')][_0x4b20e7('0x5e')](_0x4731cc);})[_0x344f73('0x6b')](function(_0x23bf96){return _0xd318ee['rows']=_0x23bf96,_0xd318ee;})[_0x344f73('0x6b')](respondWithFilteredResult(_0x2d8bef,_0x4731cc))[_0x344f73('0x84')](handleError(_0x2d8bef,null));},exports['show']=function(_0x2cb43f,_0x7673e9){const _0xcacda1=_0x57fee7;let _0x10d3b7={'raw':!![],'where':{'id':_0x2cb43f['params']['id']}};const _0x266004={};return _0x266004['model']=_['keys'](db['AnalyticDefaultReport'][_0xcacda1('0x81')]),_0x266004[_0xcacda1('0x8')]=_[_0xcacda1('0x5a')](_0x2cb43f[_0xcacda1('0x8')]),_0x266004['filters']=_[_0xcacda1('0x36')](_0x266004['model'],_0x266004[_0xcacda1('0x8')]),_0x10d3b7['attributes']=_['intersection'](_0x266004['model'],qs['fields'](_0x2cb43f[_0xcacda1('0x8')][_0xcacda1('0x41')])),_0x10d3b7[_0xcacda1('0x6e')]=_0x10d3b7['attributes']['length']?_0x10d3b7[_0xcacda1('0x6e')]:_0x266004[_0xcacda1('0x77')],_0x2cb43f[_0xcacda1('0x8')][_0xcacda1('0x62')]&&(_0x10d3b7[_0xcacda1('0x71')]=[{'all':!![]}]),_0x10d3b7=_[_0xcacda1('0x7f')]({},_0x10d3b7,_0x2cb43f[_0xcacda1('0x65')]),db['AnalyticDefaultReport'][_0xcacda1('0x6d')](_0x10d3b7)['then'](handleEntityNotFound(_0x7673e9,null))[_0xcacda1('0x6b')](respondWithResult(_0x7673e9,null))[_0xcacda1('0x84')](handleError(_0x7673e9,null));},exports[_0x57fee7('0x13')]=function(_0x497502,_0x62723a){const _0x11c2a0=_0x57fee7;return db['AnalyticDefaultReport']['create'](_0x497502['body'],{})[_0x11c2a0('0x6b')](function(_0x2e10c0){const _0x3bd2d7=_0x11c2a0,_0xe0c771=_0x497502['user'][_0x3bd2d7('0x70')]({'plain':!![]});if(!_0xe0c771)throw new Error(_0x3bd2d7('0x52'));if(_0xe0c771[_0x3bd2d7('0x0')]===_0x3bd2d7('0x17')){const _0x53a375=_0x2e10c0[_0x3bd2d7('0x70')]({'plain':!![]}),_0x1c6690=_0x3bd2d7('0x49');return db[_0x3bd2d7('0x78')]['findOne']({'where':{'name':_0x1c6690,'userProfileId':_0xe0c771[_0x3bd2d7('0x10')]},'raw':!![]})['then'](function(_0xa9c944){const _0x19b342=_0x3bd2d7;return _0xa9c944&&_0xa9c944[_0x19b342('0x39')]===0x0?db[_0x19b342('0x6f')][_0x19b342('0x13')]({'name':_0x53a375[_0x19b342('0x12')],'resourceId':_0x53a375['id'],'type':_0x19b342('0x11'),'sectionId':_0xa9c944['id']},{})[_0x19b342('0x6b')](function(){return _0x2e10c0;}):_0x2e10c0;})[_0x3bd2d7('0x84')](function(_0x16b892){const _0x151975=_0x3bd2d7;logger[_0x151975('0x3a')](_0x151975('0x2b'),_0x16b892);throw _0x16b892;});}return _0x2e10c0;})['then'](respondWithResult(_0x62723a,0xc9))[_0x11c2a0('0x84')](handleError(_0x62723a,null));},exports[_0x57fee7('0x82')]=function(_0x5b8a7c,_0x16004b){const _0x1e825e=_0x57fee7;return _0x5b8a7c[_0x1e825e('0x23')]['id']&&delete _0x5b8a7c[_0x1e825e('0x23')]['id'],db[_0x1e825e('0xe')][_0x1e825e('0x6d')]({'where':{'id':_0x5b8a7c[_0x1e825e('0x73')]['id']}})['then'](handleEntityNotFound(_0x16004b,null))[_0x1e825e('0x6b')](saveUpdates(_0x5b8a7c[_0x1e825e('0x23')],null))[_0x1e825e('0x6b')](respondWithResult(_0x16004b,null))[_0x1e825e('0x84')](handleError(_0x16004b,null));},exports[_0x57fee7('0x37')]=function(_0x5b370d,_0x1fd711){const _0x13d9e6=_0x57fee7;return db[_0x13d9e6('0xe')][_0x13d9e6('0x6d')]({'where':{'id':_0x5b370d['params']['id']}})[_0x13d9e6('0x6b')](handleEntityNotFound(_0x1fd711,null))[_0x13d9e6('0x6b')](removeEntity(_0x1fd711,null))[_0x13d9e6('0x84')](handleError(_0x1fd711,null));},exports[_0x57fee7('0x79')]=function(_0x5f3806,_0x5ce34c){const _0x2d637b=_0x57fee7,_0x2bee1e=0xa,_0x5bbb9e=[_0x2d637b('0x30'),_0x2d637b('0x44'),_0x2d637b('0x89'),_0x2d637b('0x54')],_0x77ba3={'SUM':_0x2d637b('0x83'),'COUNT':_0x2d637b('0x33'),'COUNT\x20DISTINCT':_0x2d637b('0x3f'),'MAX':_0x2d637b('0x26'),'MIN':_0x2d637b('0x1'),'AVG':_0x2d637b('0x2e'),'GROUP_CONCAT':_0x2d637b('0x4f'),'GROUP_CONCAT\x20ASC':_0x2d637b('0x88'),'GROUP_CONCAT\x20DESC':_0x2d637b('0x4d')},_0x1915ed={'SEC_TO_TIME':'SEC_TO_TIME(%s)','DATE':_0x2d637b('0x1d'),'HOUR':'HOUR(%s)','ROUND':_0x2d637b('0x3d'),'UNIX_TIMESTAMP':_0x2d637b('0x3b')},_0xa5ba65=function(_0x28bfd7){const _0x4390bc=_0x2d637b;return!_[_0x4390bc('0x5c')](['IS\x20NULL',_0x4390bc('0x2c'),_0x4390bc('0x68'),_0x4390bc('0x61')],_0x28bfd7);},_0x401405=function(_0x1b385f){const _0x3f825a=_0x2d637b;if(!_0x1b385f||!_0x1b385f[_0x3f825a('0x7e')][_0x3f825a('0x7b')])return'';let _0x24b3c1='(';for(let _0x3e025a=0x0;_0x3e025a<_0x1b385f['rules'][_0x3f825a('0x7b')];_0x3e025a+=0x1){_0x3e025a>0x0&&(_0x24b3c1+='\x20'+_0x1b385f['operator']+'\x20'),_0x24b3c1+=_0x1b385f['rules'][_0x3e025a]['group']?_0x401405(_0x1b385f['rules'][_0x3e025a][_0x3f825a('0x14')]):_0x1b385f[_0x3f825a('0x7e')][_0x3e025a][_0x3f825a('0x57')]+'\x20'+_0x1b385f[_0x3f825a('0x7e')][_0x3e025a][_0x3f825a('0x16')]+(_0xa5ba65(_0x1b385f[_0x3f825a('0x7e')][_0x3e025a][_0x3f825a('0x16')])?'\x20'+_0x1b385f['rules'][_0x3e025a][_0x3f825a('0x58')]:'');}return _0x24b3c1+')';};let _0xf5074={'where':{'id':_0x5f3806[_0x2d637b('0x73')]['id']}},_0x1fdd00,_0x4d4221,_0x2f8415;return _0xf5074=_[_0x2d637b('0x7f')]({},_0xf5074,_0x5f3806[_0x2d637b('0x65')]),db[_0x2d637b('0xe')][_0x2d637b('0x6d')](_0xf5074)[_0x2d637b('0x6b')](function(_0x126827){const _0x20aa0d=_0x2d637b;if(_0x126827)return _0x1fdd00=_0x126827,_0x126827[_0x20aa0d('0x24')]();return null;})[_0x2d637b('0x6b')](function(_0x5b6c49){const _0x2bf8a0=_0x2d637b;if(_0x5b6c49){if(!_0x5b6c49[_0x2bf8a0('0x7b')])throw new ValidationErrorItem(_0x2bf8a0('0x5f'),0x193);return _0x4d4221=_0x5b6c49,db[_0x2bf8a0('0x2a')][_0x2bf8a0('0x5e')]({'raw':!![]});}return null;})[_0x2d637b('0x6b')](function(_0x326376){const _0x231c22=_0x2d637b;if(_0x326376){_0x2f8415=_[_0x231c22('0x5')](_0x326376,'id');let _0x538d40;const _0x54211e=squel[_0x231c22('0x43')]();_0x54211e[_0x231c22('0x3c')](_0x1fdd00[_0x231c22('0x21')]);for(let _0x2ec4e2=0x0;_0x2ec4e2<_0x4d4221[_0x231c22('0x7b')];_0x2ec4e2+=0x1){_0x538d40=_0x4d4221[_0x2ec4e2]['MetricId']?_0x2f8415[_0x4d4221[_0x2ec4e2][_0x231c22('0x55')]][_0x231c22('0x1e')]:_0x4d4221[_0x2ec4e2][_0x231c22('0x57')],_0x538d40=_0x4d4221[_0x2ec4e2]['function']?_[_0x231c22('0x31')](_0x77ba3[_0x4d4221[_0x2ec4e2][_0x231c22('0x60')]],'%s',_0x538d40):_0x538d40,_0x538d40=_0x4d4221[_0x2ec4e2][_0x231c22('0x3')]?_[_0x231c22('0x31')](_0x1915ed[_0x4d4221[_0x2ec4e2]['format']],'%s',_0x538d40):_0x538d40,_0x4d4221[_0x2ec4e2][_0x231c22('0x20')]&&_0x54211e[_0x231c22('0x14')](_0x538d40),_0x4d4221[_0x2ec4e2][_0x231c22('0x35')]&&_0x54211e[_0x231c22('0x1f')](_0x538d40,_0x4d4221[_0x2ec4e2]['orderBy']==='DESC'?![]:!![]),_0x54211e[_0x231c22('0x57')](_0x538d40,_0x4d4221[_0x2ec4e2]['alias']||_0x538d40);}if(_0x1fdd00[_0x231c22('0x64')]){_0x1fdd00[_0x231c22('0x64')]=JSON[_0x231c22('0x4')](_0x1fdd00[_0x231c22('0x64')]);for(let _0x129939=0x0;_0x129939<_0x1fdd00[_0x231c22('0x64')]['length'];_0x129939+=0x1){_0x1fdd00['joins'][_0x129939][_0x231c22('0x48')]&&_[_0x231c22('0x5c')](_0x5bbb9e,_0x1fdd00[_0x231c22('0x64')][_0x129939][_0x231c22('0x48')])&&_0x1fdd00[_0x231c22('0x64')][_0x129939]['parentKey']&&_0x1fdd00[_0x231c22('0x64')][_0x129939][_0x231c22('0xa')]&&_0x1fdd00[_0x231c22('0x64')][_0x129939]['foreignKey']&&_0x54211e[_0x1fdd00[_0x231c22('0x64')][_0x129939][_0x231c22('0x48')]](_0x1fdd00[_0x231c22('0x64')][_0x129939][_0x231c22('0xa')],null,util[_0x231c22('0x3')](_0x231c22('0x9'),_0x1fdd00['table'],_0x1fdd00[_0x231c22('0x64')][_0x129939][_0x231c22('0x72')],_0x1fdd00[_0x231c22('0x64')][_0x129939][_0x231c22('0xa')],_0x1fdd00[_0x231c22('0x64')][_0x129939][_0x231c22('0x5d')]));}}return _0x1fdd00[_0x231c22('0x28')]&&(_0x1fdd00[_0x231c22('0x28')]=JSON[_0x231c22('0x4')](_0x1fdd00[_0x231c22('0x28')]),_0x54211e[_0x231c22('0x34')](_0x401405(_0x1fdd00[_0x231c22('0x28')]['group']))),_0x54211e[_0x231c22('0x85')](_0x2bee1e),_0x54211e['offset'](0x0),logger[_0x231c22('0x42')]('Limited\x20Query:',_0x54211e[_0x231c22('0x7c')]()),db[_0x231c22('0x2f')][_0x231c22('0x8')](_0x54211e[_0x231c22('0x7c')](),{'type':QueryTypes[_0x231c22('0x40')]});}})[_0x2d637b('0x6b')](respondWithResult(_0x5ce34c,null))[_0x2d637b('0x84')](handleError(_0x5ce34c,null));};function runReport(_0x5a2bcb,_0x188002,_0x3382cd){const _0x97dae=_0x57fee7,_0x5e7a7b=_0x188002[_0x97dae('0x12')],_0x4cf664=0xa,_0x113445=[_0x97dae('0x30'),'left_join',_0x97dae('0x89'),'cross_join'],_0x2ee034={'SUM':'SUM(%s)','COUNT':_0x97dae('0x33'),'COUNT\x20DISTINCT':_0x97dae('0x3f'),'MAX':'MAX(%s)','MIN':_0x97dae('0x1'),'AVG':'AVG(%s)','GROUP_CONCAT':_0x97dae('0x4f'),'GROUP_CONCAT\x20ASC':_0x97dae('0x88'),'GROUP_CONCAT\x20DESC':_0x97dae('0x4d')},_0x3cd37f={'SEC_TO_TIME':'SEC_TO_TIME(%s)','DATE':'DATE(%s)','HOUR':_0x97dae('0x25'),'ROUND':'ROUND(%s)','UNIX_TIMESTAMP':_0x97dae('0x3b')},_0x5c79de=function(_0x28f05a){const _0x201769=_0x97dae;return!_[_0x201769('0x5c')]([_0x201769('0x22'),_0x201769('0x2c'),_0x201769('0x68'),_0x201769('0x61')],_0x28f05a);},_0x39813d=function(_0x2f0df8){const _0x31e8eb=_0x97dae;if(!_0x2f0df8||!_0x2f0df8[_0x31e8eb('0x7e')][_0x31e8eb('0x7b')])return'';let _0x1aec6e='(';for(let _0x2919d2=0x0;_0x2919d2<_0x2f0df8['rules'][_0x31e8eb('0x7b')];_0x2919d2+=0x1){_0x2919d2>0x0&&(_0x1aec6e+='\x20'+_0x2f0df8[_0x31e8eb('0x32')]+'\x20'),_0x1aec6e+=_0x2f0df8[_0x31e8eb('0x7e')][_0x2919d2][_0x31e8eb('0x14')]?_0x39813d(_0x2f0df8[_0x31e8eb('0x7e')][_0x2919d2][_0x31e8eb('0x14')]):_0x2f0df8[_0x31e8eb('0x7e')][_0x2919d2]['field']+'\x20'+_0x2f0df8['rules'][_0x2919d2][_0x31e8eb('0x16')]+(_0x5c79de(_0x2f0df8[_0x31e8eb('0x7e')][_0x2919d2][_0x31e8eb('0x16')])?'\x20'+_0x2f0df8[_0x31e8eb('0x7e')][_0x2919d2][_0x31e8eb('0x58')]:'');}return _0x1aec6e+')';};let _0xdc498d={'where':{'id':_0x5a2bcb['id']}},_0xccceed,_0xba4136,_0x443f04,_0x512c38,_0x53249f;return _0xdc498d=_[_0x97dae('0x7f')]({},_0xdc498d,_0x3382cd),db[_0x97dae('0xe')][_0x97dae('0x6d')](_0xdc498d)[_0x97dae('0x6b')](function(_0x16f7e4){const _0x5830a3=_0x97dae;if(_0x16f7e4)return _0xccceed=_0x16f7e4,_0x16f7e4[_0x5830a3('0x24')]();return null;})[_0x97dae('0x6b')](function(_0x59c8a7){const _0x1ef8af=_0x97dae;if(_0x59c8a7){if(!_0x59c8a7[_0x1ef8af('0x7b')])throw new ValidationErrorItem(_0x1ef8af('0x5f'),0x193);return _0xba4136=_0x59c8a7,db[_0x1ef8af('0x2a')]['findAll']({'raw':!![]});}return null;})['then'](function(_0x355db0){const _0xe99dfa=_0x97dae;if(_0x355db0){_0x443f04=_[_0xe99dfa('0x5')](_0x355db0,'id');let _0x22e9c5;const _0xbaa8d5=squel[_0xe99dfa('0x43')]();_0xbaa8d5[_0xe99dfa('0x3c')](_0xccceed[_0xe99dfa('0x21')]);for(let _0x4576d1=0x0;_0x4576d1<_0xba4136[_0xe99dfa('0x7b')];_0x4576d1+=0x1){_0x22e9c5=_0xba4136[_0x4576d1]['MetricId']?_0x443f04[_0xba4136[_0x4576d1]['MetricId']]['metric']:_0xba4136[_0x4576d1][_0xe99dfa('0x57')],_0x22e9c5=_0xba4136[_0x4576d1][_0xe99dfa('0x60')]?_['replace'](_0x2ee034[_0xba4136[_0x4576d1][_0xe99dfa('0x60')]],'%s',_0x22e9c5):_0x22e9c5,_0x22e9c5=_0xba4136[_0x4576d1][_0xe99dfa('0x3')]?_['replace'](_0x3cd37f[_0xba4136[_0x4576d1][_0xe99dfa('0x3')]],'%s',_0x22e9c5):_0x22e9c5,_0xba4136[_0x4576d1][_0xe99dfa('0x20')]&&_0xbaa8d5[_0xe99dfa('0x14')](_0x22e9c5),_0xba4136[_0x4576d1]['orderBy']&&_0xbaa8d5['order'](_0x22e9c5,_0xba4136[_0x4576d1]['orderBy']===_0xe99dfa('0x59')?![]:!![]),_0xbaa8d5['field'](_0x22e9c5,_0xba4136[_0x4576d1][_0xe99dfa('0x7a')]||_0x22e9c5);}if(_0xccceed[_0xe99dfa('0x64')]){_0xccceed[_0xe99dfa('0x64')]=JSON[_0xe99dfa('0x4')](_0xccceed[_0xe99dfa('0x64')]);for(let _0x52be7e=0x0;_0x52be7e<_0xccceed[_0xe99dfa('0x64')][_0xe99dfa('0x7b')];_0x52be7e+=0x1){_0xccceed[_0xe99dfa('0x64')][_0x52be7e][_0xe99dfa('0x48')]&&_[_0xe99dfa('0x5c')](_0x113445,_0xccceed[_0xe99dfa('0x64')][_0x52be7e][_0xe99dfa('0x48')])&&_0xccceed['joins'][_0x52be7e][_0xe99dfa('0x72')]&&_0xccceed[_0xe99dfa('0x64')][_0x52be7e][_0xe99dfa('0xa')]&&_0xccceed[_0xe99dfa('0x64')][_0x52be7e]['foreignKey']&&_0xbaa8d5[_0xccceed['joins'][_0x52be7e][_0xe99dfa('0x48')]](_0xccceed['joins'][_0x52be7e][_0xe99dfa('0xa')],null,util[_0xe99dfa('0x3')](_0xe99dfa('0x9'),_0xccceed[_0xe99dfa('0x21')],_0xccceed[_0xe99dfa('0x64')][_0x52be7e][_0xe99dfa('0x72')],_0xccceed[_0xe99dfa('0x64')][_0x52be7e][_0xe99dfa('0xa')],_0xccceed[_0xe99dfa('0x64')][_0x52be7e][_0xe99dfa('0x5d')]));}}return _0xccceed[_0xe99dfa('0x28')]&&(_0xccceed[_0xe99dfa('0x28')]=JSON[_0xe99dfa('0x4')](_0xccceed[_0xe99dfa('0x28')]),_0xbaa8d5[_0xe99dfa('0x34')](_0x39813d(_0xccceed[_0xe99dfa('0x28')][_0xe99dfa('0x14')]))),_0x53249f=_0xbaa8d5['clone'](),_0xbaa8d5[_0xe99dfa('0x85')](_0x4cf664),_0xbaa8d5[_0xe99dfa('0xd')](0x0),logger['debug']('Limited\x20Query:',_0xbaa8d5['toString']()),db['sequelize']['query'](_0xbaa8d5[_0xe99dfa('0x7c')](),{'type':QueryTypes[_0xe99dfa('0x40')]});}})[_0x97dae('0x6b')](function(_0x25284b){const _0x356859=_0x97dae;if(!_0x25284b[_0x356859('0x7b')])throw new ValidationErrorItem(_0x356859('0x38'),0xcc);if(_0x188002['output']===_0x356859('0xb'))return null;const _0x122ccc=_[_0x356859('0x7f')](_0x188002,{'name':_0x188002['fullPath']||_0x188002[_0x356859('0x12')]||_0xccceed[_0x356859('0x12')],'basename':_0x5e7a7b,'savename':util[_0x356859('0x3')](_0x356859('0x5b'),_0x188002[_0x356859('0x12')]||_0xccceed['name'],require(_0x356859('0x66'))['generate'](0x4),_0x188002[_0x356859('0x27')]||_0x356859('0x1a')),'reportId':_0xccceed['id'],'reportType':_0x356859('0x7')});return db[_0x356859('0x63')][_0x356859('0x13')](_0x122ccc,{'raw':!![]});})[_0x97dae('0x6b')](function(_0x415400){const _0x349bfb=_0x97dae;_0xccceed[_0x349bfb('0x21')]==='cdr'?_0x53249f[_0x349bfb('0x34')](_0xccceed[_0x349bfb('0x21')]+'.calldate\x20BETWEEN\x20?\x20AND\x20?',_0x188002['startDate'],_0x188002['endDate']):_0x53249f[_0x349bfb('0x34')](_0xccceed['table']+_0x349bfb('0xf'),_0x188002[_0x349bfb('0x74')],_0x188002[_0x349bfb('0x2d')]);if(_0x415400)return logger[_0x349bfb('0x19')](_0x349bfb('0x3e'),_0x53249f[_0x349bfb('0x7c')]()),require(_0x349bfb('0x53'))['fork'](path[_0x349bfb('0x30')](__dirname,_0x349bfb('0x69'),_0x415400[_0x349bfb('0x27')]),[_0x415400['id'],_0x53249f[_0x349bfb('0x7c')](),path[_0x349bfb('0x30')](__dirname,_0x349bfb('0x6'),_0x415400[_0x349bfb('0x7d')]),_0x5e7a7b]),_0x415400;else{const _0x636f68=squel['select']();return _0x636f68[_0x349bfb('0x3c')]('('+_0x53249f[_0x349bfb('0x7c')]()+')','countTable'),_0x636f68[_0x349bfb('0x57')]('COUNT(*)','count'),_0x53249f['limit'](_0x188002['limit']||_0x4cf664),_0x53249f['offset'](_0x188002[_0x349bfb('0xd')]||0x0),dbH[_0x349bfb('0x2f')][_0x349bfb('0x8')](_0x636f68[_0x349bfb('0x7c')](),{'type':dbH['sequelize'][_0x349bfb('0x80')]['SELECT']})['then'](function(_0x555714){const _0x2154c8=_0x349bfb;return!_0x555714[_0x2154c8('0x7b')]?_0x512c38=0x0:_0x512c38=_0x555714[0x0][_0x2154c8('0x4b')]||0x0,dbH[_0x2154c8('0x2f')][_0x2154c8('0x8')](_0x53249f['toString'](),{'type':dbH[_0x2154c8('0x2f')][_0x2154c8('0x80')]['SELECT']});})[_0x349bfb('0x6b')](function(_0x5c74e3){return{'rows':_0x5c74e3||[],'count':_0x512c38};});}});}exports[_0x57fee7('0x1c')]=function(_0x5982be,_0x1474c6){const _0x4c3ce1=_0x57fee7;return runReport(_0x5982be[_0x4c3ce1('0x73')],_0x5982be[_0x4c3ce1('0x8')],_0x5982be[_0x4c3ce1('0x65')])[_0x4c3ce1('0x6b')](respondWithResult(_0x1474c6,null))['catch'](handleError(_0x1474c6,null));},exports[_0x57fee7('0x15')]=runReport,exports[_0x57fee7('0x8')]=function(_0x83d345,_0x631ed1){const _0x4d138d=_0x57fee7,_0x210ee9=0xa,_0x3e5a06=['join',_0x4d138d('0x44'),'right_join',_0x4d138d('0x54')],_0x19c183={'SUM':_0x4d138d('0x83'),'COUNT':'COUNT(%s)','COUNT\x20DISTINCT':'COUNT(DISTINCT\x20%s)','MAX':'MAX(%s)','MIN':'MIN(%s)','AVG':_0x4d138d('0x2e'),'GROUP_CONCAT':'GROUP_CONCAT(%s)','GROUP_CONCAT\x20ASC':_0x4d138d('0x88'),'GROUP_CONCAT\x20DESC':_0x4d138d('0x4d')},_0x383edd={'SEC_TO_TIME':'SEC_TO_TIME(%s)','DATE':_0x4d138d('0x1d'),'HOUR':'HOUR(%s)','ROUND':_0x4d138d('0x3d'),'UNIX_TIMESTAMP':_0x4d138d('0x3b')},_0x459fe9=function(_0x31f201){const _0x42d53d=_0x4d138d;return!_[_0x42d53d('0x5c')]([_0x42d53d('0x22'),_0x42d53d('0x2c'),_0x42d53d('0x68'),'IS\x20NOT\x20EMPTY'],_0x31f201);},_0x48e53c=function(_0x2426dd){const _0x774b=_0x4d138d;if(!_0x2426dd||!_0x2426dd['rules']['length'])return'';let _0xaeea1d='(';for(let _0x29c8c4=0x0;_0x29c8c4<_0x2426dd['rules'][_0x774b('0x7b')];_0x29c8c4+=0x1){_0x29c8c4>0x0&&(_0xaeea1d+='\x20'+_0x2426dd['operator']+'\x20'),_0xaeea1d+=_0x2426dd['rules'][_0x29c8c4][_0x774b('0x14')]?_0x48e53c(_0x2426dd[_0x774b('0x7e')][_0x29c8c4][_0x774b('0x14')]):_0x2426dd[_0x774b('0x7e')][_0x29c8c4]['field']+'\x20'+_0x2426dd[_0x774b('0x7e')][_0x29c8c4][_0x774b('0x16')]+(_0x459fe9(_0x2426dd[_0x774b('0x7e')][_0x29c8c4][_0x774b('0x16')])?'\x20'+_0x2426dd[_0x774b('0x7e')][_0x29c8c4][_0x774b('0x58')]:'');}return _0xaeea1d+')';};let _0x186964={'where':{'id':_0x83d345[_0x4d138d('0x73')]['id']}},_0x846e04,_0x1751fe,_0x2116dd,_0x44b9fa;return _0x186964=_['merge']({},_0x186964,_0x83d345[_0x4d138d('0x65')]),db[_0x4d138d('0xe')]['findOne'](_0x186964)[_0x4d138d('0x6b')](function(_0x2426c3){const _0x6ccc4c=_0x4d138d;if(_0x2426c3)return _0x846e04=_0x2426c3,_0x2426c3[_0x6ccc4c('0x24')]();return null;})[_0x4d138d('0x6b')](function(_0x3d066d){const _0x3cbccd=_0x4d138d;if(_0x3d066d){if(!_0x3d066d[_0x3cbccd('0x7b')])throw new ValidationErrorItem('Please\x20insert\x20at\x20least\x20one\x20field',0x193);return _0x1751fe=_0x3d066d,db['AnalyticMetric'][_0x3cbccd('0x5e')]({'raw':!![]});}return null;})[_0x4d138d('0x6b')](function(_0x5c7c18){const _0x358763=_0x4d138d;if(_0x5c7c18){_0x2116dd=_[_0x358763('0x5')](_0x5c7c18,'id');let _0x5cfdcc;const _0x120186=squel[_0x358763('0x43')]();_0x120186[_0x358763('0x3c')](_0x846e04[_0x358763('0x21')]);for(let _0x84caef=0x0;_0x84caef<_0x1751fe[_0x358763('0x7b')];_0x84caef+=0x1){_0x5cfdcc=_0x1751fe[_0x84caef][_0x358763('0x55')]?_0x2116dd[_0x1751fe[_0x84caef]['MetricId']][_0x358763('0x1e')]:_0x1751fe[_0x84caef][_0x358763('0x57')],_0x5cfdcc=_0x1751fe[_0x84caef][_0x358763('0x60')]?_[_0x358763('0x31')](_0x19c183[_0x1751fe[_0x84caef][_0x358763('0x60')]],'%s',_0x5cfdcc):_0x5cfdcc,_0x5cfdcc=_0x1751fe[_0x84caef][_0x358763('0x3')]?_[_0x358763('0x31')](_0x383edd[_0x1751fe[_0x84caef]['format']],'%s',_0x5cfdcc):_0x5cfdcc,_0x1751fe[_0x84caef]['groupBy']&&_0x120186[_0x358763('0x14')](_0x5cfdcc),_0x1751fe[_0x84caef][_0x358763('0x35')]&&_0x120186['order'](_0x5cfdcc,_0x1751fe[_0x84caef][_0x358763('0x35')]===_0x358763('0x59')?![]:!![]),_0x120186[_0x358763('0x57')](_0x5cfdcc,_0x1751fe[_0x84caef][_0x358763('0x7a')]||_0x5cfdcc);}if(_0x846e04[_0x358763('0x64')]){_0x846e04[_0x358763('0x64')]=JSON[_0x358763('0x4')](_0x846e04['joins']);for(let _0x4c077f=0x0;_0x4c077f<_0x846e04['joins'][_0x358763('0x7b')];_0x4c077f+=0x1){_0x846e04[_0x358763('0x64')][_0x4c077f][_0x358763('0x48')]&&_[_0x358763('0x5c')](_0x3e5a06,_0x846e04[_0x358763('0x64')][_0x4c077f]['type'])&&_0x846e04[_0x358763('0x64')][_0x4c077f][_0x358763('0x72')]&&_0x846e04[_0x358763('0x64')][_0x4c077f][_0x358763('0xa')]&&_0x846e04['joins'][_0x4c077f][_0x358763('0x5d')]&&_0x120186[_0x846e04['joins'][_0x4c077f][_0x358763('0x48')]](_0x846e04[_0x358763('0x64')][_0x4c077f][_0x358763('0xa')],null,util[_0x358763('0x3')](_0x358763('0x9'),_0x846e04['table'],_0x846e04['joins'][_0x4c077f]['parentKey'],_0x846e04[_0x358763('0x64')][_0x4c077f]['foreignTable'],_0x846e04[_0x358763('0x64')][_0x4c077f]['foreignKey']));}}return _0x846e04[_0x358763('0x28')]&&(_0x846e04[_0x358763('0x28')]=JSON[_0x358763('0x4')](_0x846e04[_0x358763('0x28')]),_0x120186[_0x358763('0x34')](_0x48e53c(_0x846e04[_0x358763('0x28')]['group']))),_0x44b9fa=_0x120186[_0x358763('0x4a')](),_0x120186[_0x358763('0x85')](_0x210ee9),_0x120186[_0x358763('0xd')](0x0),logger['debug'](_0x358763('0x4c'),_0x120186['toString']()),db[_0x358763('0x2f')][_0x358763('0x8')](_0x120186[_0x358763('0x7c')](),{'type':QueryTypes[_0x358763('0x40')]});}})['then'](function(){const _0x50ccc2=_0x4d138d;return{'sql':_0x44b9fa[_0x50ccc2('0x7c')]()};})[_0x4d138d('0x6b')](respondWithResult(_0x631ed1,null))[_0x4d138d('0x84')](handleError(_0x631ed1,null));}; \ No newline at end of file +const a11_0x55ce=['GROUP_CONCAT(%s)','VIRTUAL','rules','child_process','join','sendStatus','undefined','attributes','../../mysqldb','condition','default','AnalyticMetric','../../files/reports','alias','get','ROUND(%s)','send','squel','.createdAt\x20BETWEEN\x20?\x20AND\x20?','COUNT(%s)','keyBy','Please\x20insert\x20at\x20least\x20one\x20field','error','COUNT(DISTINCT\x20%s)','right_join','csv','findAll','MetricId','rows','filters','index','stack','order','replace','startDate','intersection','query','path','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','preview','joins','Limited\x20Query:','json','No\x20available\x20data','AVG(%s)','UserProfileResource','IS\x20NOT\x20EMPTY','DESC','role','parentKey','Unable\x20to\x20retrieve\x20the\x20current\x20user','findOne','table','update','AnalyticDefaultReport','%s-%s.%s','cross_join','includes','foreignKey','body','getFields','Run\x20Query:','length','merge','name','set','IS\x20EMPTY','rawAttributes','MIN(%s)','generate','MAX(%s)','from','includeAll','foreignTable','fields','GROUP_CONCAT(%s\x20ORDER\x20BY\x20%s\x20DESC)','end','include','format','filter','metric','create','field','endDate','conditions','show','model','dbH','%s.%s\x20=\x20%s.%s','limit','sequelize','catch','UNIX_TIMESTAMP(%s)','parse','QueryTypes','select','value','output','destroy','../../config/logger','params','IS\x20NOT\x20NULL','SELECT','api','type','status','groupBy','../../components/parsers/qs','where','keys','left_join','GROUP_CONCAT(%s\x20ORDER\x20BY\x20%s\x20ASC)','offset','HOUR(%s)','randomstring','count','DATE(%s)','IS\x20NULL','COUNT(*)','group','fullPath','savename','countTable','function','SUM(%s)','user','toString','debug','DefaultReports','sort','Reports','util','orderBy','then','like','options','UserProfileSection','lodash','SEC_TO_TIME(%s)','map','fork','operator'];(function(_0x278432,_0x168eea){const _0x55ce68=function(_0x91f87d){while(--_0x91f87d){_0x278432['push'](_0x278432['shift']());}};_0x55ce68(++_0x168eea);}(a11_0x55ce,0x132));const a11_0x91f8=function(_0x278432,_0x168eea){_0x278432=_0x278432-0xf8;let _0x55ce68=a11_0x55ce[_0x278432];return _0x55ce68;};const a11_0x51591f=a11_0x91f8;'use strict';const util=require(a11_0x51591f(0x165)),path=require(a11_0x51591f(0x107)),_=require(a11_0x51591f(0x16b)),squel=require(a11_0x51591f(0x181)),qs=require(a11_0x51591f(0x14d)),logger=require(a11_0x51591f(0x145))(a11_0x51591f(0x149)),{db}=require(a11_0x51591f(0x178)),dbH=require(a11_0x51591f(0x178))[a11_0x51591f(0x139)],{Op,ValidationErrorItem,QueryTypes}=require(a11_0x51591f(0x13c));function respondWithResult(_0x57b8e1,_0x21f805){return _0x21f805=_0x21f805||0xc8,function(_0x272daa){const _0x15bf69=a11_0x91f8;if(_0x272daa)return _0x57b8e1['status'](_0x21f805)[_0x15bf69(0x10c)](_0x272daa);};}function respondWithFilteredResult(_0x5969a6,_0x34cb45){return function(_0x24d693){const _0xe2b347=a11_0x91f8;if(_0x24d693){const _0x6a1f31=_0x24d693[_0xe2b347(0x155)],_0x758afb=_0x34cb45['offset'];let _0x3e5603=_0x34cb45[_0xe2b347(0x152)]+_0x34cb45[_0xe2b347(0x13b)],_0x3b702d;return _0x3e5603>=_0x6a1f31?(_0x3e5603=_0x6a1f31,_0x3b702d=0xc8):_0x3b702d=0xce,_0x5969a6[_0xe2b347(0x14b)](_0x3b702d),_0x5969a6[_0xe2b347(0x123)]('Content-Range',_0x758afb+'-'+_0x3e5603+'/'+_0x6a1f31)[_0xe2b347(0x10c)](_0x24d693);}return null;};}function saveUpdates(_0x9c0535){return function(_0x1a5c77){const _0x45433d=a11_0x91f8;if(_0x1a5c77)return _0x1a5c77[_0x45433d(0x117)](_0x9c0535)['then'](function(_0x48f345){return _0x48f345;});return null;};}function removeEntity(_0x2ef02b){return function(_0x438f52){const _0x4e90c4=a11_0x91f8;if(_0x438f52)return _0x438f52['destroy']()[_0x4e90c4(0x167)](function(){const _0x5b09b7=_0x4e90c4,_0x3aa84f=_0x438f52[_0x5b09b7(0x17e)]({'plain':!![]}),_0x41010e='DefaultReports';return db[_0x5b09b7(0x10f)][_0x5b09b7(0x144)]({'where':{'type':_0x41010e,'resourceId':_0x3aa84f['id']}})['then'](function(){return _0x438f52;});})[_0x4e90c4(0x167)](function(){const _0x5f1139=_0x4e90c4;_0x2ef02b['status'](0xcc)[_0x5f1139(0x12e)]();});};}function handleEntityNotFound(_0x5ee60a){return function(_0xe3efb8){const _0x267038=a11_0x91f8;return!_0xe3efb8&&_0x5ee60a[_0x267038(0x175)](0x194),_0xe3efb8;};}function handleError(_0x2e227f,_0x28c9c9){return _0x28c9c9=_0x28c9c9||0x1f4,function(_0x3bf423){const _0x4059eb=a11_0x91f8;logger[_0x4059eb(0xf8)](_0x3bf423[_0x4059eb(0x101)]),_0x3bf423[_0x4059eb(0x122)]&&delete _0x3bf423[_0x4059eb(0x122)],_0x2e227f[_0x4059eb(0x14b)](_0x28c9c9)[_0x4059eb(0x180)](_0x3bf423);};}exports[a11_0x51591f(0x100)]=function(_0x14dee1,_0x32b968){const _0x507879=a11_0x51591f;let _0x3fc729={};const _0x5d6b6e={},_0x1e8f67={'count':0x0,'rows':[]},_0x225fb1=_['map'](db['AnalyticDefaultReport'][_0x507879(0x125)],function(_0x461569){const _0x5706ad=_0x507879;return{'name':_0x461569['fieldName'],'type':_0x461569[_0x5706ad(0x14a)]['key']};});_0x5d6b6e['model']=_[_0x507879(0x16d)](_0x225fb1,_0x507879(0x122)),_0x5d6b6e[_0x507879(0x106)]=_[_0x507879(0x14f)](_0x14dee1[_0x507879(0x106)]),_0x5d6b6e[_0x507879(0xff)]=_['intersection'](_0x5d6b6e[_0x507879(0x138)],_0x5d6b6e[_0x507879(0x106)]),_0x3fc729[_0x507879(0x177)]=_['intersection'](_0x5d6b6e[_0x507879(0x138)],qs[_0x507879(0x12c)](_0x14dee1[_0x507879(0x106)][_0x507879(0x12c)])),_0x3fc729[_0x507879(0x177)]=_0x3fc729[_0x507879(0x177)][_0x507879(0x120)]?_0x3fc729[_0x507879(0x177)]:_0x5d6b6e['model'];typeof _0x14dee1[_0x507879(0x106)]['nolimit']===_0x507879(0x176)&&(_0x3fc729[_0x507879(0x13b)]=qs[_0x507879(0x13b)](_0x14dee1[_0x507879(0x106)]['limit']),_0x3fc729[_0x507879(0x152)]=qs[_0x507879(0x152)](_0x14dee1[_0x507879(0x106)][_0x507879(0x152)]));_0x3fc729[_0x507879(0x102)]=qs[_0x507879(0x163)](_0x14dee1['query'][_0x507879(0x163)]),_0x3fc729['where']=qs[_0x507879(0xff)](_['pick'](_0x14dee1[_0x507879(0x106)],_0x5d6b6e[_0x507879(0xff)]),_0x225fb1);_0x14dee1[_0x507879(0x106)]['filter']&&(_0x3fc729[_0x507879(0x14e)]=_['merge'](_0x3fc729[_0x507879(0x14e)],{[Op['or']]:_['map'](_0x225fb1,function(_0x5a22cc){const _0x142d03=_0x507879;if(_0x5a22cc[_0x142d03(0x14a)]!==_0x142d03(0x171)){const _0x568988={};return _0x568988[_0x5a22cc[_0x142d03(0x122)]]={[Op[_0x142d03(0x168)]]:'%'+_0x14dee1['query'][_0x142d03(0x131)]+'%'},_0x568988;}})}));_0x3fc729=_[_0x507879(0x121)]({},_0x3fc729,_0x14dee1[_0x507879(0x169)]);const _0x5e2d52={'where':_0x3fc729[_0x507879(0x14e)]};return db['AnalyticDefaultReport']['count'](_0x5e2d52)['then'](function(_0x422752){const _0x314954=_0x507879;return _0x1e8f67[_0x314954(0x155)]=_0x422752,_0x14dee1[_0x314954(0x106)][_0x314954(0x12a)]&&(_0x3fc729[_0x314954(0x12f)]=[{'all':!![]}]),db[_0x314954(0x118)]['findAll'](_0x3fc729);})[_0x507879(0x167)](function(_0x3d2cd4){const _0x4f3062=_0x507879;return _0x1e8f67[_0x4f3062(0xfe)]=_0x3d2cd4,_0x1e8f67;})[_0x507879(0x167)](respondWithFilteredResult(_0x32b968,_0x3fc729))[_0x507879(0x13d)](handleError(_0x32b968,null));},exports[a11_0x51591f(0x137)]=function(_0x30778e,_0x3f8340){const _0x57e248=a11_0x51591f;let _0x53b836={'raw':!![],'where':{'id':_0x30778e[_0x57e248(0x146)]['id']}};const _0x1a8e78={};return _0x1a8e78[_0x57e248(0x138)]=_[_0x57e248(0x14f)](db[_0x57e248(0x118)][_0x57e248(0x125)]),_0x1a8e78[_0x57e248(0x106)]=_[_0x57e248(0x14f)](_0x30778e[_0x57e248(0x106)]),_0x1a8e78[_0x57e248(0xff)]=_['intersection'](_0x1a8e78[_0x57e248(0x138)],_0x1a8e78[_0x57e248(0x106)]),_0x53b836[_0x57e248(0x177)]=_[_0x57e248(0x105)](_0x1a8e78['model'],qs[_0x57e248(0x12c)](_0x30778e[_0x57e248(0x106)]['fields'])),_0x53b836[_0x57e248(0x177)]=_0x53b836[_0x57e248(0x177)][_0x57e248(0x120)]?_0x53b836[_0x57e248(0x177)]:_0x1a8e78[_0x57e248(0x138)],_0x30778e[_0x57e248(0x106)][_0x57e248(0x12a)]&&(_0x53b836['include']=[{'all':!![]}]),_0x53b836=_[_0x57e248(0x121)]({},_0x53b836,_0x30778e['options']),db[_0x57e248(0x118)][_0x57e248(0x115)](_0x53b836)['then'](handleEntityNotFound(_0x3f8340,null))[_0x57e248(0x167)](respondWithResult(_0x3f8340,null))[_0x57e248(0x13d)](handleError(_0x3f8340,null));},exports[a11_0x51591f(0x133)]=function(_0x59a194,_0x4b72a0){const _0x399334=a11_0x51591f;return db[_0x399334(0x118)]['create'](_0x59a194['body'],{})[_0x399334(0x167)](function(_0x31d5b5){const _0x464027=_0x399334,_0x5cabc9=_0x59a194[_0x464027(0x15f)][_0x464027(0x17e)]({'plain':!![]});if(!_0x5cabc9)throw new Error(_0x464027(0x114));if(_0x5cabc9[_0x464027(0x112)]==='user'){const _0x425c0b=_0x31d5b5[_0x464027(0x17e)]({'plain':!![]}),_0x1e4cb0=_0x464027(0x164);return db[_0x464027(0x16a)]['findOne']({'where':{'name':_0x1e4cb0,'userProfileId':_0x5cabc9['userProfileId']},'raw':!![]})[_0x464027(0x167)](function(_0x34772e){const _0x55081a=_0x464027;return _0x34772e&&_0x34772e['autoAssociation']===0x0?db[_0x55081a(0x10f)]['create']({'name':_0x425c0b[_0x55081a(0x122)],'resourceId':_0x425c0b['id'],'type':_0x55081a(0x162),'sectionId':_0x34772e['id']},{})[_0x55081a(0x167)](function(){return _0x31d5b5;}):_0x31d5b5;})[_0x464027(0x13d)](function(_0x134cd6){const _0x225a9e=_0x464027;logger[_0x225a9e(0xf8)](_0x225a9e(0x108),_0x134cd6);throw _0x134cd6;});}return _0x31d5b5;})['then'](respondWithResult(_0x4b72a0,0xc9))['catch'](handleError(_0x4b72a0,null));},exports[a11_0x51591f(0x117)]=function(_0x562b16,_0x340772){const _0xfb61cf=a11_0x51591f;return _0x562b16[_0xfb61cf(0x11d)]['id']&&delete _0x562b16[_0xfb61cf(0x11d)]['id'],db[_0xfb61cf(0x118)]['findOne']({'where':{'id':_0x562b16[_0xfb61cf(0x146)]['id']}})['then'](handleEntityNotFound(_0x340772,null))[_0xfb61cf(0x167)](saveUpdates(_0x562b16[_0xfb61cf(0x11d)],null))[_0xfb61cf(0x167)](respondWithResult(_0x340772,null))[_0xfb61cf(0x13d)](handleError(_0x340772,null));},exports[a11_0x51591f(0x144)]=function(_0x3ac4ab,_0x1d84d7){const _0x1d6286=a11_0x51591f;return db['AnalyticDefaultReport'][_0x1d6286(0x115)]({'where':{'id':_0x3ac4ab[_0x1d6286(0x146)]['id']}})[_0x1d6286(0x167)](handleEntityNotFound(_0x1d84d7,null))[_0x1d6286(0x167)](removeEntity(_0x1d84d7,null))[_0x1d6286(0x13d)](handleError(_0x1d84d7,null));},exports[a11_0x51591f(0x109)]=function(_0x18862a,_0x161a14){const _0x373ebf=a11_0x51591f,_0x1d5ed9=0xa,_0xf75c77=[_0x373ebf(0x174),_0x373ebf(0x150),_0x373ebf(0xfa),_0x373ebf(0x11a)],_0x205097={'SUM':_0x373ebf(0x15e),'COUNT':_0x373ebf(0x183),'COUNT\x20DISTINCT':'COUNT(DISTINCT\x20%s)','MAX':_0x373ebf(0x128),'MIN':'MIN(%s)','AVG':_0x373ebf(0x10e),'GROUP_CONCAT':_0x373ebf(0x170),'GROUP_CONCAT\x20ASC':_0x373ebf(0x151),'GROUP_CONCAT\x20DESC':_0x373ebf(0x12d)},_0xd573f3={'SEC_TO_TIME':_0x373ebf(0x16c),'DATE':_0x373ebf(0x156),'HOUR':_0x373ebf(0x153),'ROUND':'ROUND(%s)','UNIX_TIMESTAMP':_0x373ebf(0x13e)},_0x43f7aa=function(_0x412f2f){const _0x3a4410=_0x373ebf;return!_[_0x3a4410(0x11b)](['IS\x20NULL',_0x3a4410(0x147),_0x3a4410(0x124),_0x3a4410(0x110)],_0x412f2f);},_0x5ae1ce=function(_0x3da58b){const _0x44619e=_0x373ebf;if(!_0x3da58b||!_0x3da58b['rules']['length'])return'';let _0x50b30a='(';for(let _0x2bf2ee=0x0;_0x2bf2ee<_0x3da58b['rules'][_0x44619e(0x120)];_0x2bf2ee+=0x1){_0x2bf2ee>0x0&&(_0x50b30a+='\x20'+_0x3da58b[_0x44619e(0x16f)]+'\x20'),_0x50b30a+=_0x3da58b[_0x44619e(0x172)][_0x2bf2ee][_0x44619e(0x159)]?_0x5ae1ce(_0x3da58b[_0x44619e(0x172)][_0x2bf2ee][_0x44619e(0x159)]):_0x3da58b[_0x44619e(0x172)][_0x2bf2ee]['field']+'\x20'+_0x3da58b['rules'][_0x2bf2ee]['condition']+(_0x43f7aa(_0x3da58b[_0x44619e(0x172)][_0x2bf2ee][_0x44619e(0x179)])?'\x20'+_0x3da58b['rules'][_0x2bf2ee][_0x44619e(0x142)]:'');}return _0x50b30a+')';};let _0x3c8523={'where':{'id':_0x18862a['params']['id']}},_0x43766a,_0x35b031,_0x3768b2;return _0x3c8523=_['merge']({},_0x3c8523,_0x18862a[_0x373ebf(0x169)]),db[_0x373ebf(0x118)][_0x373ebf(0x115)](_0x3c8523)['then'](function(_0x33158b){const _0x41de2b=_0x373ebf;if(_0x33158b)return _0x43766a=_0x33158b,_0x33158b[_0x41de2b(0x11e)]();return null;})[_0x373ebf(0x167)](function(_0x11dc25){const _0x2dca10=_0x373ebf;if(_0x11dc25){if(!_0x11dc25['length'])throw new ValidationErrorItem(_0x2dca10(0x185),0x193);return _0x35b031=_0x11dc25,db[_0x2dca10(0x17b)][_0x2dca10(0xfc)]({'raw':!![]});}return null;})['then'](function(_0x112758){const _0x22b451=_0x373ebf;if(_0x112758){_0x3768b2=_[_0x22b451(0x184)](_0x112758,'id');let _0x469126;const _0x5554ec=squel[_0x22b451(0x141)]();_0x5554ec[_0x22b451(0x129)](_0x43766a[_0x22b451(0x116)]);for(let _0x34fedb=0x0;_0x34fedb<_0x35b031['length'];_0x34fedb+=0x1){_0x469126=_0x35b031[_0x34fedb][_0x22b451(0xfd)]?_0x3768b2[_0x35b031[_0x34fedb][_0x22b451(0xfd)]][_0x22b451(0x132)]:_0x35b031[_0x34fedb][_0x22b451(0x134)],_0x469126=_0x35b031[_0x34fedb][_0x22b451(0x15d)]?_[_0x22b451(0x103)](_0x205097[_0x35b031[_0x34fedb][_0x22b451(0x15d)]],'%s',_0x469126):_0x469126,_0x469126=_0x35b031[_0x34fedb][_0x22b451(0x130)]?_[_0x22b451(0x103)](_0xd573f3[_0x35b031[_0x34fedb]['format']],'%s',_0x469126):_0x469126,_0x35b031[_0x34fedb][_0x22b451(0x14c)]&&_0x5554ec[_0x22b451(0x159)](_0x469126),_0x35b031[_0x34fedb][_0x22b451(0x166)]&&_0x5554ec['order'](_0x469126,_0x35b031[_0x34fedb][_0x22b451(0x166)]===_0x22b451(0x111)?![]:!![]),_0x5554ec['field'](_0x469126,_0x35b031[_0x34fedb][_0x22b451(0x17d)]||_0x469126);}if(_0x43766a[_0x22b451(0x10a)]){_0x43766a['joins']=JSON[_0x22b451(0x13f)](_0x43766a[_0x22b451(0x10a)]);for(let _0x54ff9e=0x0;_0x54ff9e<_0x43766a[_0x22b451(0x10a)][_0x22b451(0x120)];_0x54ff9e+=0x1){_0x43766a[_0x22b451(0x10a)][_0x54ff9e][_0x22b451(0x14a)]&&_['includes'](_0xf75c77,_0x43766a[_0x22b451(0x10a)][_0x54ff9e][_0x22b451(0x14a)])&&_0x43766a[_0x22b451(0x10a)][_0x54ff9e][_0x22b451(0x113)]&&_0x43766a[_0x22b451(0x10a)][_0x54ff9e]['foreignTable']&&_0x43766a[_0x22b451(0x10a)][_0x54ff9e][_0x22b451(0x11c)]&&_0x5554ec[_0x43766a[_0x22b451(0x10a)][_0x54ff9e][_0x22b451(0x14a)]](_0x43766a[_0x22b451(0x10a)][_0x54ff9e][_0x22b451(0x12b)],null,util['format']('%s.%s\x20=\x20%s.%s',_0x43766a[_0x22b451(0x116)],_0x43766a[_0x22b451(0x10a)][_0x54ff9e][_0x22b451(0x113)],_0x43766a[_0x22b451(0x10a)][_0x54ff9e][_0x22b451(0x12b)],_0x43766a[_0x22b451(0x10a)][_0x54ff9e][_0x22b451(0x11c)]));}}return _0x43766a[_0x22b451(0x136)]&&(_0x43766a[_0x22b451(0x136)]=JSON['parse'](_0x43766a[_0x22b451(0x136)]),_0x5554ec[_0x22b451(0x14e)](_0x5ae1ce(_0x43766a['conditions'][_0x22b451(0x159)]))),_0x5554ec['limit'](_0x1d5ed9),_0x5554ec[_0x22b451(0x152)](0x0),logger[_0x22b451(0x161)]('Limited\x20Query:',_0x5554ec[_0x22b451(0x160)]()),db[_0x22b451(0x13c)][_0x22b451(0x106)](_0x5554ec[_0x22b451(0x160)](),{'type':QueryTypes['SELECT']});}})[_0x373ebf(0x167)](respondWithResult(_0x161a14,null))[_0x373ebf(0x13d)](handleError(_0x161a14,null));};function runReport(_0x8498ef,_0x3c8059,_0xea5cdc){const _0x4407be=a11_0x51591f,_0x4e6f91=_0x3c8059['name'],_0x1b7643=0xa,_0xc30adc=[_0x4407be(0x174),_0x4407be(0x150),_0x4407be(0xfa),_0x4407be(0x11a)],_0x30badf={'SUM':_0x4407be(0x15e),'COUNT':_0x4407be(0x183),'COUNT\x20DISTINCT':_0x4407be(0xf9),'MAX':_0x4407be(0x128),'MIN':'MIN(%s)','AVG':_0x4407be(0x10e),'GROUP_CONCAT':'GROUP_CONCAT(%s)','GROUP_CONCAT\x20ASC':_0x4407be(0x151),'GROUP_CONCAT\x20DESC':_0x4407be(0x12d)},_0x91d659={'SEC_TO_TIME':_0x4407be(0x16c),'DATE':_0x4407be(0x156),'HOUR':_0x4407be(0x153),'ROUND':_0x4407be(0x17f),'UNIX_TIMESTAMP':'UNIX_TIMESTAMP(%s)'},_0x410ca4=function(_0x5c6055){const _0x1cdf56=_0x4407be;return!_[_0x1cdf56(0x11b)]([_0x1cdf56(0x157),_0x1cdf56(0x147),'IS\x20EMPTY',_0x1cdf56(0x110)],_0x5c6055);},_0x392590=function(_0x3cd797){const _0x9af213=_0x4407be;if(!_0x3cd797||!_0x3cd797[_0x9af213(0x172)]['length'])return'';let _0xd360a7='(';for(let _0x1c3e19=0x0;_0x1c3e19<_0x3cd797[_0x9af213(0x172)][_0x9af213(0x120)];_0x1c3e19+=0x1){_0x1c3e19>0x0&&(_0xd360a7+='\x20'+_0x3cd797['operator']+'\x20'),_0xd360a7+=_0x3cd797[_0x9af213(0x172)][_0x1c3e19][_0x9af213(0x159)]?_0x392590(_0x3cd797['rules'][_0x1c3e19][_0x9af213(0x159)]):_0x3cd797[_0x9af213(0x172)][_0x1c3e19][_0x9af213(0x134)]+'\x20'+_0x3cd797[_0x9af213(0x172)][_0x1c3e19][_0x9af213(0x179)]+(_0x410ca4(_0x3cd797[_0x9af213(0x172)][_0x1c3e19][_0x9af213(0x179)])?'\x20'+_0x3cd797[_0x9af213(0x172)][_0x1c3e19][_0x9af213(0x142)]:'');}return _0xd360a7+')';};let _0x259b1a={'where':{'id':_0x8498ef['id']}},_0x395762,_0x4daf6d,_0x4a4d36,_0x3c1650,_0x27d9d5;return _0x259b1a=_[_0x4407be(0x121)]({},_0x259b1a,_0xea5cdc),db['AnalyticDefaultReport']['findOne'](_0x259b1a)[_0x4407be(0x167)](function(_0x25c838){if(_0x25c838)return _0x395762=_0x25c838,_0x25c838['getFields']();return null;})[_0x4407be(0x167)](function(_0x4678b2){const _0x4a8c5e=_0x4407be;if(_0x4678b2){if(!_0x4678b2['length'])throw new ValidationErrorItem(_0x4a8c5e(0x185),0x193);return _0x4daf6d=_0x4678b2,db['AnalyticMetric'][_0x4a8c5e(0xfc)]({'raw':!![]});}return null;})[_0x4407be(0x167)](function(_0x3d09dd){const _0x292dd5=_0x4407be;if(_0x3d09dd){_0x4a4d36=_[_0x292dd5(0x184)](_0x3d09dd,'id');let _0x2d4e22;const _0x2de2cf=squel[_0x292dd5(0x141)]();_0x2de2cf[_0x292dd5(0x129)](_0x395762[_0x292dd5(0x116)]);for(let _0x1f9777=0x0;_0x1f9777<_0x4daf6d[_0x292dd5(0x120)];_0x1f9777+=0x1){_0x2d4e22=_0x4daf6d[_0x1f9777][_0x292dd5(0xfd)]?_0x4a4d36[_0x4daf6d[_0x1f9777]['MetricId']]['metric']:_0x4daf6d[_0x1f9777]['field'],_0x2d4e22=_0x4daf6d[_0x1f9777][_0x292dd5(0x15d)]?_[_0x292dd5(0x103)](_0x30badf[_0x4daf6d[_0x1f9777][_0x292dd5(0x15d)]],'%s',_0x2d4e22):_0x2d4e22,_0x2d4e22=_0x4daf6d[_0x1f9777]['format']?_['replace'](_0x91d659[_0x4daf6d[_0x1f9777][_0x292dd5(0x130)]],'%s',_0x2d4e22):_0x2d4e22,_0x4daf6d[_0x1f9777][_0x292dd5(0x14c)]&&_0x2de2cf[_0x292dd5(0x159)](_0x2d4e22),_0x4daf6d[_0x1f9777][_0x292dd5(0x166)]&&_0x2de2cf['order'](_0x2d4e22,_0x4daf6d[_0x1f9777][_0x292dd5(0x166)]===_0x292dd5(0x111)?![]:!![]),_0x2de2cf['field'](_0x2d4e22,_0x4daf6d[_0x1f9777][_0x292dd5(0x17d)]||_0x2d4e22);}if(_0x395762['joins']){_0x395762['joins']=JSON[_0x292dd5(0x13f)](_0x395762[_0x292dd5(0x10a)]);for(let _0x516acd=0x0;_0x516acd<_0x395762['joins'][_0x292dd5(0x120)];_0x516acd+=0x1){_0x395762['joins'][_0x516acd][_0x292dd5(0x14a)]&&_[_0x292dd5(0x11b)](_0xc30adc,_0x395762[_0x292dd5(0x10a)][_0x516acd]['type'])&&_0x395762[_0x292dd5(0x10a)][_0x516acd]['parentKey']&&_0x395762['joins'][_0x516acd][_0x292dd5(0x12b)]&&_0x395762[_0x292dd5(0x10a)][_0x516acd][_0x292dd5(0x11c)]&&_0x2de2cf[_0x395762['joins'][_0x516acd]['type']](_0x395762[_0x292dd5(0x10a)][_0x516acd][_0x292dd5(0x12b)],null,util[_0x292dd5(0x130)](_0x292dd5(0x13a),_0x395762[_0x292dd5(0x116)],_0x395762[_0x292dd5(0x10a)][_0x516acd][_0x292dd5(0x113)],_0x395762[_0x292dd5(0x10a)][_0x516acd][_0x292dd5(0x12b)],_0x395762['joins'][_0x516acd][_0x292dd5(0x11c)]));}}return _0x395762[_0x292dd5(0x136)]&&(_0x395762[_0x292dd5(0x136)]=JSON[_0x292dd5(0x13f)](_0x395762['conditions']),_0x2de2cf[_0x292dd5(0x14e)](_0x392590(_0x395762['conditions'][_0x292dd5(0x159)]))),_0x27d9d5=_0x2de2cf['clone'](),_0x2de2cf[_0x292dd5(0x13b)](_0x1b7643),_0x2de2cf[_0x292dd5(0x152)](0x0),logger[_0x292dd5(0x161)](_0x292dd5(0x10b),_0x2de2cf[_0x292dd5(0x160)]()),db[_0x292dd5(0x13c)][_0x292dd5(0x106)](_0x2de2cf['toString'](),{'type':QueryTypes[_0x292dd5(0x148)]});}})[_0x4407be(0x167)](function(_0x3c390d){const _0x505b79=_0x4407be;if(!_0x3c390d[_0x505b79(0x120)])throw new ValidationErrorItem(_0x505b79(0x10d),0xcc);if(_0x3c8059['output']==='web')return null;const _0x1738cf=_[_0x505b79(0x121)](_0x3c8059,{'name':_0x3c8059[_0x505b79(0x15a)]||_0x3c8059['name']||_0x395762['name'],'basename':_0x4e6f91,'savename':util[_0x505b79(0x130)](_0x505b79(0x119),_0x3c8059[_0x505b79(0x122)]||_0x395762[_0x505b79(0x122)],require(_0x505b79(0x154))[_0x505b79(0x127)](0x4),_0x3c8059['output']||_0x505b79(0xfb)),'reportId':_0x395762['id'],'reportType':_0x505b79(0x17a)});return db['AnalyticExtractedReport'][_0x505b79(0x133)](_0x1738cf,{'raw':!![]});})[_0x4407be(0x167)](function(_0x4302ce){const _0x4996ad=_0x4407be;_0x395762[_0x4996ad(0x116)]==='cdr'?_0x27d9d5[_0x4996ad(0x14e)](_0x395762[_0x4996ad(0x116)]+'.calldate\x20BETWEEN\x20?\x20AND\x20?',_0x3c8059['startDate'],_0x3c8059[_0x4996ad(0x135)]):_0x27d9d5[_0x4996ad(0x14e)](_0x395762[_0x4996ad(0x116)]+_0x4996ad(0x182),_0x3c8059[_0x4996ad(0x104)],_0x3c8059[_0x4996ad(0x135)]);if(_0x4302ce)return logger['info'](_0x4996ad(0x11f),_0x27d9d5[_0x4996ad(0x160)]()),require(_0x4996ad(0x173))[_0x4996ad(0x16e)](path['join'](__dirname,'../../components/export/',_0x4302ce[_0x4996ad(0x143)]),[_0x4302ce['id'],_0x27d9d5[_0x4996ad(0x160)](),path['join'](__dirname,_0x4996ad(0x17c),_0x4302ce[_0x4996ad(0x15b)]),_0x4e6f91]),_0x4302ce;else{const _0x400f47=squel['select']();return _0x400f47[_0x4996ad(0x129)]('('+_0x27d9d5[_0x4996ad(0x160)]()+')',_0x4996ad(0x15c)),_0x400f47[_0x4996ad(0x134)](_0x4996ad(0x158),'count'),_0x27d9d5['limit'](_0x3c8059[_0x4996ad(0x13b)]||_0x1b7643),_0x27d9d5[_0x4996ad(0x152)](_0x3c8059[_0x4996ad(0x152)]||0x0),dbH[_0x4996ad(0x13c)][_0x4996ad(0x106)](_0x400f47[_0x4996ad(0x160)](),{'type':dbH[_0x4996ad(0x13c)][_0x4996ad(0x140)][_0x4996ad(0x148)]})[_0x4996ad(0x167)](function(_0x2cee10){const _0xde7c94=_0x4996ad;return!_0x2cee10[_0xde7c94(0x120)]?_0x3c1650=0x0:_0x3c1650=_0x2cee10[0x0][_0xde7c94(0x155)]||0x0,dbH['sequelize']['query'](_0x27d9d5['toString'](),{'type':dbH[_0xde7c94(0x13c)][_0xde7c94(0x140)]['SELECT']});})[_0x4996ad(0x167)](function(_0x20c93c){return{'rows':_0x20c93c||[],'count':_0x3c1650};});}});}exports['run']=function(_0x161091,_0x18ba19){const _0x1e2c26=a11_0x51591f;return runReport(_0x161091['params'],_0x161091['query'],_0x161091[_0x1e2c26(0x169)])[_0x1e2c26(0x167)](respondWithResult(_0x18ba19,null))['catch'](handleError(_0x18ba19,null));},exports['runReport']=runReport,exports[a11_0x51591f(0x106)]=function(_0x52c79f,_0x56639c){const _0x1f9e5d=a11_0x51591f,_0x299ec1=0xa,_0x4327d7=['join','left_join','right_join',_0x1f9e5d(0x11a)],_0x52449c={'SUM':_0x1f9e5d(0x15e),'COUNT':_0x1f9e5d(0x183),'COUNT\x20DISTINCT':_0x1f9e5d(0xf9),'MAX':_0x1f9e5d(0x128),'MIN':_0x1f9e5d(0x126),'AVG':_0x1f9e5d(0x10e),'GROUP_CONCAT':'GROUP_CONCAT(%s)','GROUP_CONCAT\x20ASC':_0x1f9e5d(0x151),'GROUP_CONCAT\x20DESC':_0x1f9e5d(0x12d)},_0x58f756={'SEC_TO_TIME':_0x1f9e5d(0x16c),'DATE':_0x1f9e5d(0x156),'HOUR':_0x1f9e5d(0x153),'ROUND':'ROUND(%s)','UNIX_TIMESTAMP':_0x1f9e5d(0x13e)},_0x9791ec=function(_0xdf8d35){const _0x46e1e0=_0x1f9e5d;return!_[_0x46e1e0(0x11b)](['IS\x20NULL',_0x46e1e0(0x147),_0x46e1e0(0x124),_0x46e1e0(0x110)],_0xdf8d35);},_0x499754=function(_0x55c058){const _0x3b4772=_0x1f9e5d;if(!_0x55c058||!_0x55c058[_0x3b4772(0x172)][_0x3b4772(0x120)])return'';let _0x292b50='(';for(let _0x280e60=0x0;_0x280e60<_0x55c058['rules']['length'];_0x280e60+=0x1){_0x280e60>0x0&&(_0x292b50+='\x20'+_0x55c058[_0x3b4772(0x16f)]+'\x20'),_0x292b50+=_0x55c058[_0x3b4772(0x172)][_0x280e60][_0x3b4772(0x159)]?_0x499754(_0x55c058[_0x3b4772(0x172)][_0x280e60]['group']):_0x55c058[_0x3b4772(0x172)][_0x280e60][_0x3b4772(0x134)]+'\x20'+_0x55c058[_0x3b4772(0x172)][_0x280e60][_0x3b4772(0x179)]+(_0x9791ec(_0x55c058[_0x3b4772(0x172)][_0x280e60]['condition'])?'\x20'+_0x55c058[_0x3b4772(0x172)][_0x280e60][_0x3b4772(0x142)]:'');}return _0x292b50+')';};let _0x4ac6d3={'where':{'id':_0x52c79f[_0x1f9e5d(0x146)]['id']}},_0x33531c,_0x2b6a19,_0x57d45b,_0x14e30a;return _0x4ac6d3=_['merge']({},_0x4ac6d3,_0x52c79f[_0x1f9e5d(0x169)]),db['AnalyticDefaultReport'][_0x1f9e5d(0x115)](_0x4ac6d3)[_0x1f9e5d(0x167)](function(_0x458a74){const _0x1a9067=_0x1f9e5d;if(_0x458a74)return _0x33531c=_0x458a74,_0x458a74[_0x1a9067(0x11e)]();return null;})[_0x1f9e5d(0x167)](function(_0x3b08f4){const _0x1a24bd=_0x1f9e5d;if(_0x3b08f4){if(!_0x3b08f4[_0x1a24bd(0x120)])throw new ValidationErrorItem(_0x1a24bd(0x185),0x193);return _0x2b6a19=_0x3b08f4,db[_0x1a24bd(0x17b)][_0x1a24bd(0xfc)]({'raw':!![]});}return null;})['then'](function(_0x82fc30){const _0x2499c=_0x1f9e5d;if(_0x82fc30){_0x57d45b=_[_0x2499c(0x184)](_0x82fc30,'id');let _0x391a7a;const _0x4b9393=squel[_0x2499c(0x141)]();_0x4b9393[_0x2499c(0x129)](_0x33531c[_0x2499c(0x116)]);for(let _0xba97f7=0x0;_0xba97f7<_0x2b6a19[_0x2499c(0x120)];_0xba97f7+=0x1){_0x391a7a=_0x2b6a19[_0xba97f7][_0x2499c(0xfd)]?_0x57d45b[_0x2b6a19[_0xba97f7][_0x2499c(0xfd)]][_0x2499c(0x132)]:_0x2b6a19[_0xba97f7][_0x2499c(0x134)],_0x391a7a=_0x2b6a19[_0xba97f7][_0x2499c(0x15d)]?_['replace'](_0x52449c[_0x2b6a19[_0xba97f7][_0x2499c(0x15d)]],'%s',_0x391a7a):_0x391a7a,_0x391a7a=_0x2b6a19[_0xba97f7][_0x2499c(0x130)]?_['replace'](_0x58f756[_0x2b6a19[_0xba97f7]['format']],'%s',_0x391a7a):_0x391a7a,_0x2b6a19[_0xba97f7]['groupBy']&&_0x4b9393['group'](_0x391a7a),_0x2b6a19[_0xba97f7][_0x2499c(0x166)]&&_0x4b9393[_0x2499c(0x102)](_0x391a7a,_0x2b6a19[_0xba97f7]['orderBy']===_0x2499c(0x111)?![]:!![]),_0x4b9393[_0x2499c(0x134)](_0x391a7a,_0x2b6a19[_0xba97f7][_0x2499c(0x17d)]||_0x391a7a);}if(_0x33531c[_0x2499c(0x10a)]){_0x33531c[_0x2499c(0x10a)]=JSON[_0x2499c(0x13f)](_0x33531c[_0x2499c(0x10a)]);for(let _0x5f0b39=0x0;_0x5f0b39<_0x33531c[_0x2499c(0x10a)][_0x2499c(0x120)];_0x5f0b39+=0x1){_0x33531c['joins'][_0x5f0b39][_0x2499c(0x14a)]&&_[_0x2499c(0x11b)](_0x4327d7,_0x33531c['joins'][_0x5f0b39]['type'])&&_0x33531c['joins'][_0x5f0b39][_0x2499c(0x113)]&&_0x33531c[_0x2499c(0x10a)][_0x5f0b39][_0x2499c(0x12b)]&&_0x33531c['joins'][_0x5f0b39][_0x2499c(0x11c)]&&_0x4b9393[_0x33531c[_0x2499c(0x10a)][_0x5f0b39]['type']](_0x33531c[_0x2499c(0x10a)][_0x5f0b39][_0x2499c(0x12b)],null,util[_0x2499c(0x130)](_0x2499c(0x13a),_0x33531c[_0x2499c(0x116)],_0x33531c[_0x2499c(0x10a)][_0x5f0b39][_0x2499c(0x113)],_0x33531c['joins'][_0x5f0b39]['foreignTable'],_0x33531c[_0x2499c(0x10a)][_0x5f0b39][_0x2499c(0x11c)]));}}return _0x33531c[_0x2499c(0x136)]&&(_0x33531c['conditions']=JSON['parse'](_0x33531c[_0x2499c(0x136)]),_0x4b9393[_0x2499c(0x14e)](_0x499754(_0x33531c[_0x2499c(0x136)][_0x2499c(0x159)]))),_0x14e30a=_0x4b9393['clone'](),_0x4b9393[_0x2499c(0x13b)](_0x299ec1),_0x4b9393['offset'](0x0),logger[_0x2499c(0x161)](_0x2499c(0x10b),_0x4b9393[_0x2499c(0x160)]()),db['sequelize']['query'](_0x4b9393[_0x2499c(0x160)](),{'type':QueryTypes['SELECT']});}})['then'](function(){const _0x1a34eb=_0x1f9e5d;return{'sql':_0x14e30a[_0x1a34eb(0x160)]()};})['then'](respondWithResult(_0x56639c,null))['catch'](handleError(_0x56639c,null));}; \ No newline at end of file diff --git a/server/api/analyticDefaultReport/analyticDefaultReport.model.js b/server/api/analyticDefaultReport/analyticDefaultReport.model.js index 39d777b..3387983 100644 --- a/server/api/analyticDefaultReport/analyticDefaultReport.model.js +++ b/server/api/analyticDefaultReport/analyticDefaultReport.model.js @@ -1 +1 @@ -const a10_0x3c0a=['AnalyticDefaultReport','./analyticDefaultReport.attributes','analytics_default_reports','exports'];(function(_0x565e7f,_0x3c0abd){const _0x35f451=function(_0x270fd6){while(--_0x270fd6){_0x565e7f['push'](_0x565e7f['shift']());}};_0x35f451(++_0x3c0abd);}(a10_0x3c0a,0x154));const a10_0x35f4=function(_0x565e7f,_0x3c0abd){_0x565e7f=_0x565e7f-0x0;let _0x35f451=a10_0x3c0a[_0x565e7f];return _0x35f451;};const _0x1ad3fc=a10_0x35f4;'use strict';const attributes=require(_0x1ad3fc('0x1'));module[_0x1ad3fc('0x3')]=function(_0x270fd6){const _0xcb359a=_0x1ad3fc,_0x3bbcd5=_0x270fd6['define'](_0xcb359a('0x0'),attributes,{'tableName':_0xcb359a('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x3bbcd5;}; \ No newline at end of file +const a12_0x405b=['exports','init','./analyticDefaultReport.options','sequelize','./analyticDefaultReport.attributes','AnalyticDefaultReport'];(function(_0x34a334,_0x3de1eb){const _0x405bf7=function(_0xd9257c){while(--_0xd9257c){_0x34a334['push'](_0x34a334['shift']());}};_0x405bf7(++_0x3de1eb);}(a12_0x405b,0x1c0));const a12_0xd925=function(_0x34a334,_0x3de1eb){_0x34a334=_0x34a334-0xd1;let _0x405bf7=a12_0x405b[_0x34a334];return _0x405bf7;};const a12_0x473ef6=a12_0xd925;'use strict';const {Model}=require(a12_0x473ef6(0xd6)),{attributes}=require(a12_0x473ef6(0xd1)),{options}=require(a12_0x473ef6(0xd5));class AnalyticDefaultReport extends Model{}function init(_0xb24984,_0x513b40){const _0x151523=a12_0x473ef6,_0x5327d4=options(_0xb24984),_0x2067d3=typeof _0x513b40==='function'?_0x513b40(_0x5327d4):_0x5327d4;return AnalyticDefaultReport[_0x151523(0xd4)](attributes,_0x2067d3),AnalyticDefaultReport;}module['exports'][a12_0x473ef6(0xd2)]=AnalyticDefaultReport,module[a12_0x473ef6(0xd3)][a12_0x473ef6(0xd4)]=init; \ No newline at end of file diff --git a/server/api/analyticDefaultReport/analyticDefaultReport.options.js b/server/api/analyticDefaultReport/analyticDefaultReport.options.js new file mode 100644 index 0000000..3722bd3 --- /dev/null +++ b/server/api/analyticDefaultReport/analyticDefaultReport.options.js @@ -0,0 +1 @@ +var a13_0x1464=['analytics_default_reports'];(function(_0x3f7bb4,_0x242c82){var _0x14644a=function(_0xc0a599){while(--_0xc0a599){_0x3f7bb4['push'](_0x3f7bb4['shift']());}};_0x14644a(++_0x242c82);}(a13_0x1464,0x1d1));var a13_0xc0a5=function(_0x3f7bb4,_0x242c82){_0x3f7bb4=_0x3f7bb4-0x16f;var _0x14644a=a13_0x1464[_0x3f7bb4];return _0x14644a;};function options(_0xe4a715){var _0x2ce31f=a13_0xc0a5;return{'sequelize':_0xe4a715,'tableName':_0x2ce31f(0x16f),'paranoid':![],'indexes':[],'timestamps':!![]};}module['exports']['options']=options; \ No newline at end of file diff --git a/server/api/analyticDefaultReport/index.js b/server/api/analyticDefaultReport/index.js index 7280eb0..b7d1a91 100644 --- a/server/api/analyticDefaultReport/index.js +++ b/server/api/analyticDefaultReport/index.js @@ -1 +1 @@ -const a11_0x2d86=['delete','./analyticDefaultReport.controller','create','/:id','get','Router','update','/:id/query','../../components/auth/service','index','/:id/run','destroy','put','post','/:id/preview','run','express','exports','isAuthenticated'];(function(_0x274cc0,_0x2d86e2){const _0x33536d=function(_0x23e9f7){while(--_0x23e9f7){_0x274cc0['push'](_0x274cc0['shift']());}};_0x33536d(++_0x2d86e2);}(a11_0x2d86,0x13c));const a11_0x3353=function(_0x274cc0,_0x2d86e2){_0x274cc0=_0x274cc0-0x0;let _0x33536d=a11_0x2d86[_0x274cc0];return _0x33536d;};const _0x3c042c=a11_0x3353;'use strict';const express=require(_0x3c042c('0x4')),router=express[_0x3c042c('0xc')](),auth=require(_0x3c042c('0xf')),controller=require(_0x3c042c('0x8'));router['get']('/',auth[_0x3c042c('0x6')](),controller[_0x3c042c('0x10')]),router[_0x3c042c('0xb')]('/:id',auth[_0x3c042c('0x6')](),controller['show']),router[_0x3c042c('0xb')](_0x3c042c('0x2'),auth[_0x3c042c('0x6')](),controller['preview']),router[_0x3c042c('0xb')](_0x3c042c('0x11'),auth['isAuthenticated'](),controller[_0x3c042c('0x3')]),router[_0x3c042c('0xb')](_0x3c042c('0xe'),auth['isAuthenticated'](),controller['query']),router[_0x3c042c('0x1')]('/',auth[_0x3c042c('0x6')](),controller[_0x3c042c('0x9')]),router[_0x3c042c('0x0')]('/:id',auth[_0x3c042c('0x6')](),controller[_0x3c042c('0xd')]),router[_0x3c042c('0x7')](_0x3c042c('0xa'),auth[_0x3c042c('0x6')](),controller[_0x3c042c('0x12')]),module[_0x3c042c('0x5')]=router; \ No newline at end of file +const a14_0x3e8a=['isAuthenticated','destroy','express','../../components/auth/service','/:id','preview','./analyticDefaultReport.controller','exports','/:id/preview','index','update','query','create','/:id/query','show','/:id/run','get'];(function(_0x1416f4,_0x117ae0){const _0x3e8a0e=function(_0x19d3db){while(--_0x19d3db){_0x1416f4['push'](_0x1416f4['shift']());}};_0x3e8a0e(++_0x117ae0);}(a14_0x3e8a,0xcc));const a14_0x19d3=function(_0x1416f4,_0x117ae0){_0x1416f4=_0x1416f4-0x1d5;let _0x3e8a0e=a14_0x3e8a[_0x1416f4];return _0x3e8a0e;};const a14_0x3f1c99=a14_0x19d3;'use strict';const express=require(a14_0x3f1c99(0x1d7)),router=express['Router'](),auth=require(a14_0x3f1c99(0x1d8)),controller=require(a14_0x3f1c99(0x1db));router['get']('/',auth[a14_0x3f1c99(0x1d5)](),controller[a14_0x3f1c99(0x1de)]),router[a14_0x3f1c99(0x1e5)]('/:id',auth[a14_0x3f1c99(0x1d5)](),controller[a14_0x3f1c99(0x1e3)]),router[a14_0x3f1c99(0x1e5)](a14_0x3f1c99(0x1dd),auth[a14_0x3f1c99(0x1d5)](),controller[a14_0x3f1c99(0x1da)]),router['get'](a14_0x3f1c99(0x1e4),auth[a14_0x3f1c99(0x1d5)](),controller['run']),router['get'](a14_0x3f1c99(0x1e2),auth[a14_0x3f1c99(0x1d5)](),controller[a14_0x3f1c99(0x1e0)]),router['post']('/',auth[a14_0x3f1c99(0x1d5)](),controller[a14_0x3f1c99(0x1e1)]),router['put']('/:id',auth[a14_0x3f1c99(0x1d5)](),controller[a14_0x3f1c99(0x1df)]),router['delete'](a14_0x3f1c99(0x1d9),auth[a14_0x3f1c99(0x1d5)](),controller[a14_0x3f1c99(0x1d6)]),module[a14_0x3f1c99(0x1dc)]=router; \ No newline at end of file diff --git a/server/api/analyticExtractedReport/analyticExtractedReport.attributes.js b/server/api/analyticExtractedReport/analyticExtractedReport.attributes.js index aabeb51..6b26961 100644 --- a/server/api/analyticExtractedReport/analyticExtractedReport.attributes.js +++ b/server/api/analyticExtractedReport/analyticExtractedReport.attributes.js @@ -1 +1 @@ -const a12_0x59ba=['Loading','INTEGER','sequelize','STRING','ENUM','exports','UNSIGNED','DATE','csv','pdf'];(function(_0x19e049,_0x59ba02){const _0x194a6b=function(_0x46abe0){while(--_0x46abe0){_0x19e049['push'](_0x19e049['shift']());}};_0x194a6b(++_0x59ba02);}(a12_0x59ba,0x95));const a12_0x194a=function(_0x19e049,_0x59ba02){_0x19e049=_0x19e049-0x0;let _0x194a6b=a12_0x59ba[_0x19e049];return _0x194a6b;};const _0x3289e6=a12_0x194a;'use strict';const Sequelize=require(_0x3289e6('0x3'));module[_0x3289e6('0x6')]={'name':{'type':Sequelize[_0x3289e6('0x4')],'allowNull':![]},'basename':{'type':Sequelize[_0x3289e6('0x4')],'allowNull':![]},'output':{'type':Sequelize[_0x3289e6('0x5')]('csv',_0x3289e6('0x0'),'xlsx'),'allowNull':![],'defaultValue':_0x3289e6('0x9')},'savename':{'type':Sequelize['STRING'],'allowNull':![]},'startDate':{'type':Sequelize[_0x3289e6('0x8')]},'endDate':{'type':Sequelize['DATE']},'status':{'type':Sequelize[_0x3289e6('0x4')],'defaultValue':_0x3289e6('0x1')},'type':{'type':Sequelize['ENUM']('manual','scheduled'),'allowNull':![],'defaultValue':'manual'},'reportId':{'type':Sequelize[_0x3289e6('0x2')](0xb)[_0x3289e6('0x7')]},'reportType':{'type':Sequelize[_0x3289e6('0x4')]}}; \ No newline at end of file +const a15_0x4a7b=['UNSIGNED','ENUM','manual','sequelize','DATE','exports','INTEGER','attributes','STRING','pdf','scheduled','xlsx','Loading','csv'];(function(_0x280fd9,_0x2250ed){const _0x4a7b23=function(_0x79859d){while(--_0x79859d){_0x280fd9['push'](_0x280fd9['shift']());}};_0x4a7b23(++_0x2250ed);}(a15_0x4a7b,0x1ec));const a15_0x7985=function(_0x280fd9,_0x2250ed){_0x280fd9=_0x280fd9-0x115;let _0x4a7b23=a15_0x4a7b[_0x280fd9];return _0x4a7b23;};const a15_0x405616=a15_0x7985;'use strict';const {DataTypes}=require(a15_0x405616(0x116)),attributes={'name':{'type':DataTypes[a15_0x405616(0x11b)],'allowNull':![]},'basename':{'type':DataTypes[a15_0x405616(0x11b)],'allowNull':![]},'output':{'type':DataTypes[a15_0x405616(0x122)]('csv',a15_0x405616(0x11c),a15_0x405616(0x11e)),'allowNull':![],'defaultValue':a15_0x405616(0x120)},'savename':{'type':DataTypes['STRING'],'allowNull':![]},'startDate':{'type':DataTypes[a15_0x405616(0x117)]},'endDate':{'type':DataTypes[a15_0x405616(0x117)]},'status':{'type':DataTypes['STRING'],'defaultValue':a15_0x405616(0x11f)},'type':{'type':DataTypes[a15_0x405616(0x122)](a15_0x405616(0x115),a15_0x405616(0x11d)),'allowNull':![],'defaultValue':a15_0x405616(0x115)},'reportId':{'type':DataTypes[a15_0x405616(0x119)]({'length':0xb})[a15_0x405616(0x121)]},'reportType':{'type':DataTypes[a15_0x405616(0x11b)]}};module[a15_0x405616(0x118)][a15_0x405616(0x11a)]=attributes; \ No newline at end of file diff --git a/server/api/analyticExtractedReport/analyticExtractedReport.controller.js b/server/api/analyticExtractedReport/analyticExtractedReport.controller.js index dd75fde..037e2d3 100644 --- a/server/api/analyticExtractedReport/analyticExtractedReport.controller.js +++ b/server/api/analyticExtractedReport/analyticExtractedReport.controller.js @@ -1 +1 @@ -const a13_0x523a=['like','create','body','sendStatus','set','limit','output','rows','role','merge','toLowerCase','includeAll','fieldName','exists','model','length','UserProfileSection','update','findOne','%s.%s','query','filters','download','fields','get','undefined','show','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','Unable\x20to\x20retrieve\x20the\x20current\x20user','then','end','index','format','lodash','pick','user','send','rawAttributes','root','savename','intersection','userProfileId','../../config/logger','stack','order','AnalyticExtractedReport','../../config/environment','params','destroy','error','basename','where','options','type','map','offset','../../components/parsers/qs','include','nolimit','status','count','filter','sort','join','existsSync','sequelize','files/reports','ExtractedReports','Report\x20not\x20found\x20or\x20empty','keys','UserProfileResource','attributes','name','catch'];(function(_0x25c795,_0x523a1b){const _0x3785ae=function(_0x1f1677){while(--_0x1f1677){_0x25c795['push'](_0x25c795['shift']());}};_0x3785ae(++_0x523a1b);}(a13_0x523a,0x89));const a13_0x3785=function(_0x25c795,_0x523a1b){_0x25c795=_0x25c795-0x0;let _0x3785ae=a13_0x523a[_0x25c795];return _0x3785ae;};const _0x4d6dfc=a13_0x3785;'use strict';const util=require('util'),path=require('path'),fs=require('fs'),_=require(_0x4d6dfc('0x2c')),qs=require(_0x4d6dfc('0x43')),logger=require(_0x4d6dfc('0x35'))('api'),config=require(_0x4d6dfc('0x39')),db=require('../../mysqldb')['db'],{Op,ValidationError}=require(_0x4d6dfc('0x2'));function respondWithResult(_0x1f1677,_0x17792e){return _0x17792e=_0x17792e||0xc8,function(_0x5ca56e){const _0x4e3ea0=a13_0x3785;if(_0x5ca56e)return _0x1f1677[_0x4e3ea0('0x46')](_0x17792e)['json'](_0x5ca56e);};}function respondWithFilteredResult(_0x8b57d3,_0x1d7400){return function(_0x5e0ec5){const _0x398cc4=a13_0x3785;if(_0x5e0ec5){const _0x376984=_0x5e0ec5[_0x398cc4('0x47')],_0x3a4b19=_0x1d7400[_0x398cc4('0x42')];let _0x170abf=_0x1d7400[_0x398cc4('0x42')]+_0x1d7400[_0x398cc4('0x10')],_0x2c71cd;return _0x170abf>=_0x376984?(_0x170abf=_0x376984,_0x2c71cd=0xc8):_0x2c71cd=0xce,_0x8b57d3['status'](_0x2c71cd),_0x8b57d3[_0x398cc4('0xf')]('Content-Range',_0x3a4b19+'-'+_0x170abf+'/'+_0x376984)['json'](_0x5e0ec5);}return null;};}function saveUpdates(_0x2952d6){return function(_0x33577f){const _0xed9491=a13_0x3785;if(_0x33577f)return _0x33577f[_0xed9491('0x1c')](_0x2952d6)[_0xed9491('0x28')](function(_0x4ffe83){return _0x4ffe83;});return null;};}function removeEntity(_0x227418){return function(_0x565420){const _0x28eec4=a13_0x3785;if(_0x565420)return _0x565420[_0x28eec4('0x3b')]()['then'](function(){const _0x2bf5c6=_0x28eec4,_0x24a1c4=_0x565420[_0x2bf5c6('0x23')]({'plain':!![]}),_0x5d5029=_0x2bf5c6('0x4');return db[_0x2bf5c6('0x7')][_0x2bf5c6('0x3b')]({'where':{'type':_0x5d5029,'resourceId':_0x24a1c4['id']}})[_0x2bf5c6('0x28')](function(){return _0x565420;});})[_0x28eec4('0x28')](function(){const _0x5cf6ba=_0x28eec4;_0x227418[_0x5cf6ba('0x46')](0xcc)[_0x5cf6ba('0x29')]();});};}function handleEntityNotFound(_0x804517){return function(_0x1bc3c6){const _0x3e3375=a13_0x3785;return!_0x1bc3c6&&_0x804517[_0x3e3375('0xe')](0x194),_0x1bc3c6;};}function handleError(_0x4943da,_0x8f6e73){return _0x8f6e73=_0x8f6e73||0x1f4,function(_0x716da){const _0x535884=a13_0x3785;logger[_0x535884('0x3c')](_0x716da[_0x535884('0x36')]),_0x716da['name']&&delete _0x716da['name'],_0x4943da[_0x535884('0x46')](_0x8f6e73)[_0x535884('0x2f')](_0x716da);};}exports[_0x4d6dfc('0x2a')]=function(_0x1b5ed0,_0x46d155){const _0x97cb0c=_0x4d6dfc;let _0x26616f={};const _0x95fb85={},_0x5718e6={'count':0x0,'rows':[]},_0x18f02b=_[_0x97cb0c('0x41')](db[_0x97cb0c('0x38')][_0x97cb0c('0x30')],function(_0x3d8c18){const _0x2c5455=_0x97cb0c;return{'name':_0x3d8c18[_0x2c5455('0x17')],'type':_0x3d8c18['type']['key']};});_0x95fb85['model']=_[_0x97cb0c('0x41')](_0x18f02b,'name'),_0x95fb85[_0x97cb0c('0x1f')]=_[_0x97cb0c('0x6')](_0x1b5ed0['query']),_0x95fb85[_0x97cb0c('0x20')]=_['intersection'](_0x95fb85[_0x97cb0c('0x19')],_0x95fb85['query']),_0x26616f[_0x97cb0c('0x8')]=_[_0x97cb0c('0x33')](_0x95fb85[_0x97cb0c('0x19')],qs[_0x97cb0c('0x22')](_0x1b5ed0['query'][_0x97cb0c('0x22')])),_0x26616f[_0x97cb0c('0x8')]=_0x26616f[_0x97cb0c('0x8')][_0x97cb0c('0x1a')]?_0x26616f[_0x97cb0c('0x8')]:_0x95fb85[_0x97cb0c('0x19')];typeof _0x1b5ed0[_0x97cb0c('0x1f')][_0x97cb0c('0x45')]===_0x97cb0c('0x24')&&(_0x26616f[_0x97cb0c('0x10')]=qs['limit'](_0x1b5ed0[_0x97cb0c('0x1f')][_0x97cb0c('0x10')]),_0x26616f[_0x97cb0c('0x42')]=qs[_0x97cb0c('0x42')](_0x1b5ed0[_0x97cb0c('0x1f')][_0x97cb0c('0x42')]));_0x26616f[_0x97cb0c('0x37')]=qs['sort'](_0x1b5ed0['query'][_0x97cb0c('0x49')]),_0x26616f['where']=qs[_0x97cb0c('0x20')](_[_0x97cb0c('0x2d')](_0x1b5ed0[_0x97cb0c('0x1f')],_0x95fb85['filters']),_0x18f02b);_0x1b5ed0['query'][_0x97cb0c('0x48')]&&(_0x26616f['where']=_[_0x97cb0c('0x14')](_0x26616f[_0x97cb0c('0x3e')],{[Op['or']]:_[_0x97cb0c('0x41')](_0x18f02b,function(_0x27a952){const _0x43893f=_0x97cb0c;if(_0x27a952[_0x43893f('0x40')]!=='VIRTUAL'){const _0x583f59={};return _0x583f59[_0x27a952[_0x43893f('0x9')]]={[Op[_0x43893f('0xb')]]:'%'+_0x1b5ed0[_0x43893f('0x1f')][_0x43893f('0x48')]+'%'},_0x583f59;}})}));_0x26616f=_[_0x97cb0c('0x14')]({},_0x26616f,_0x1b5ed0[_0x97cb0c('0x3f')]);const _0x3a202b={'where':_0x26616f[_0x97cb0c('0x3e')]};return db[_0x97cb0c('0x38')][_0x97cb0c('0x47')](_0x3a202b)['then'](function(_0x144947){const _0x3ef24a=_0x97cb0c;return _0x5718e6[_0x3ef24a('0x47')]=_0x144947,_0x1b5ed0[_0x3ef24a('0x1f')][_0x3ef24a('0x16')]&&(_0x26616f[_0x3ef24a('0x44')]=[{'all':!![]}]),db['AnalyticExtractedReport']['findAll'](_0x26616f);})[_0x97cb0c('0x28')](function(_0xa1fff5){const _0x1fd6ac=_0x97cb0c;return _0x5718e6[_0x1fd6ac('0x12')]=_0xa1fff5,_0x5718e6;})[_0x97cb0c('0x28')](respondWithFilteredResult(_0x46d155,_0x26616f))[_0x97cb0c('0xa')](handleError(_0x46d155,null));},exports[_0x4d6dfc('0x25')]=function(_0x4a3373,_0x429db2){const _0x47320e=_0x4d6dfc;let _0x484125={'raw':!![],'where':{'id':_0x4a3373['params']['id']}};const _0x2d2faa={};return _0x2d2faa['model']=_['keys'](db['AnalyticExtractedReport'][_0x47320e('0x30')]),_0x2d2faa[_0x47320e('0x1f')]=_[_0x47320e('0x6')](_0x4a3373[_0x47320e('0x1f')]),_0x2d2faa[_0x47320e('0x20')]=_[_0x47320e('0x33')](_0x2d2faa[_0x47320e('0x19')],_0x2d2faa[_0x47320e('0x1f')]),_0x484125['attributes']=_['intersection'](_0x2d2faa['model'],qs[_0x47320e('0x22')](_0x4a3373[_0x47320e('0x1f')][_0x47320e('0x22')])),_0x484125['attributes']=_0x484125[_0x47320e('0x8')][_0x47320e('0x1a')]?_0x484125['attributes']:_0x2d2faa[_0x47320e('0x19')],_0x4a3373['query']['includeAll']&&(_0x484125[_0x47320e('0x44')]=[{'all':!![]}]),_0x484125=_['merge']({},_0x484125,_0x4a3373[_0x47320e('0x3f')]),db[_0x47320e('0x38')][_0x47320e('0x1d')](_0x484125)['then'](handleEntityNotFound(_0x429db2,null))[_0x47320e('0x28')](respondWithResult(_0x429db2,null))[_0x47320e('0xa')](handleError(_0x429db2,null));},exports[_0x4d6dfc('0xc')]=function(_0x8f18fb,_0x403efc){const _0x22d0db=_0x4d6dfc;return db['AnalyticExtractedReport'][_0x22d0db('0xc')](_0x8f18fb[_0x22d0db('0xd')],{})[_0x22d0db('0x28')](function(_0x212776){const _0x425d24=_0x22d0db,_0x572f99=_0x8f18fb[_0x425d24('0x2e')][_0x425d24('0x23')]({'plain':!![]});if(!_0x572f99)throw new Error(_0x425d24('0x27'));if(_0x572f99[_0x425d24('0x13')]===_0x425d24('0x2e')){const _0xc8272c=_0x212776[_0x425d24('0x23')]({'plain':!![]}),_0x10177b=_0x425d24('0x4');return db[_0x425d24('0x1b')][_0x425d24('0x1d')]({'where':{'name':_0x10177b,'userProfileId':_0x572f99[_0x425d24('0x34')]},'raw':!![]})['then'](function(_0x4fb48e){const _0xda6467=_0x425d24;return _0x4fb48e&&_0x4fb48e['autoAssociation']===0x0?db[_0xda6467('0x7')][_0xda6467('0xc')]({'name':_0xc8272c['name'],'resourceId':_0xc8272c['id'],'type':_0x4fb48e[_0xda6467('0x9')],'sectionId':_0x4fb48e['id']},{})[_0xda6467('0x28')](function(){return _0x212776;}):_0x212776;})[_0x425d24('0xa')](function(_0x3fae66){const _0x26505e=_0x425d24;logger[_0x26505e('0x3c')](_0x26505e('0x26'),_0x3fae66);throw _0x3fae66;});}return _0x212776;})[_0x22d0db('0x28')](respondWithResult(_0x403efc,0xc9))['catch'](handleError(_0x403efc,null));},exports[_0x4d6dfc('0x1c')]=function(_0x5df301,_0x1252de){const _0x14b5cc=_0x4d6dfc;return _0x5df301['body']['id']&&delete _0x5df301['body']['id'],db[_0x14b5cc('0x38')]['findOne']({'where':{'id':_0x5df301['params']['id']}})[_0x14b5cc('0x28')](handleEntityNotFound(_0x1252de,null))[_0x14b5cc('0x28')](saveUpdates(_0x5df301[_0x14b5cc('0xd')],null))['then'](respondWithResult(_0x1252de,null))[_0x14b5cc('0xa')](handleError(_0x1252de,null));},exports['destroy']=function(_0x154a78,_0x40de76){const _0x4a824c=_0x4d6dfc;return db[_0x4a824c('0x38')][_0x4a824c('0x1d')]({'where':{'id':_0x154a78[_0x4a824c('0x3a')]['id']}})[_0x4a824c('0x28')](handleEntityNotFound(_0x40de76,null))[_0x4a824c('0x28')](removeEntity(_0x40de76,null))[_0x4a824c('0xa')](handleError(_0x40de76,null));},exports['download']=function(_0x4e1eca,_0x1497e0){const _0x2cbab4=_0x4d6dfc;return db[_0x2cbab4('0x38')][_0x2cbab4('0x1d')]({'where':{'id':_0x4e1eca[_0x2cbab4('0x3a')]['id']},'attributes':[_0x2cbab4('0x9'),_0x2cbab4('0x3d'),_0x2cbab4('0x32'),_0x2cbab4('0x11')],'raw':!![]})[_0x2cbab4('0x28')](handleEntityNotFound(_0x1497e0,null))[_0x2cbab4('0x28')](function(_0x6816d5){const _0x22457c=_0x2cbab4;if(_0x6816d5){if(!fs[_0x22457c('0x1')](path[_0x22457c('0x0')](config[_0x22457c('0x31')],_0x22457c('0x3'),_0x6816d5['savename'])))throw new ValidationError(_0x22457c('0x5'));if(_0x4e1eca['query'][_0x22457c('0x18')])return _0x1497e0[_0x22457c('0xe')](0xc8);return _0x1497e0[_0x22457c('0x21')](path[_0x22457c('0x0')](config[_0x22457c('0x31')],_0x22457c('0x3'),_0x6816d5[_0x22457c('0x32')]),util[_0x22457c('0x2b')](_0x22457c('0x1e'),_0x6816d5[_0x22457c('0x3d')]||_0x6816d5[_0x22457c('0x9')],_0x6816d5[_0x22457c('0x11')][_0x22457c('0x15')]()));}})[_0x2cbab4('0xa')](handleError(_0x1497e0,null));}; \ No newline at end of file +const a16_0x6b4f=['existsSync','findOne','sort','count','autoAssociation','sequelize','user','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','get','Report\x20not\x20found\x20or\x20empty','api','../../components/parsers/qs','limit','../../mysqldb','name','type','rawAttributes','model','root','fields','params','update','options','path','Content-Range','include','query','offset','UserProfileResource','ExtractedReports','error','catch','order','create','../../config/environment','where','set','filter','fieldName','format','toLowerCase','undefined','send','Unable\x20to\x20retrieve\x20the\x20current\x20user','includeAll','UserProfileSection','filters','intersection','map','pick','keys','json','merge','lodash','userProfileId','basename','stack','%s.%s','body','status','util','savename','output','then','join','../../config/logger','attributes','files/reports','key','AnalyticExtractedReport','like','show','index'];(function(_0x5de274,_0x10a681){const _0x6b4f63=function(_0x2cba63){while(--_0x2cba63){_0x5de274['push'](_0x5de274['shift']());}};_0x6b4f63(++_0x10a681);}(a16_0x6b4f,0x172));const a16_0x2cba=function(_0x5de274,_0x10a681){_0x5de274=_0x5de274-0xc8;let _0x6b4f63=a16_0x6b4f[_0x5de274];return _0x6b4f63;};const a16_0x4609c9=a16_0x2cba;'use strict';const util=require(a16_0x4609c9(0xff)),path=require(a16_0x4609c9(0xda)),fs=require('fs'),_=require(a16_0x4609c9(0xf8)),qs=require(a16_0x4609c9(0xce)),logger=require(a16_0x4609c9(0x104))(a16_0x4609c9(0xcd)),config=require(a16_0x4609c9(0xe5)),{db}=require(a16_0x4609c9(0xd0)),{Op,ValidationError}=require(a16_0x4609c9(0xc8));function respondWithResult(_0x3299c9,_0x40c9e7){return _0x40c9e7=_0x40c9e7||0xc8,function(_0xc4db45){const _0x1d6812=a16_0x2cba;if(_0xc4db45)return _0x3299c9[_0x1d6812(0xfe)](_0x40c9e7)[_0x1d6812(0xf6)](_0xc4db45);};}function respondWithFilteredResult(_0x32d7b1,_0x3407db){return function(_0x76fbe5){const _0x3f4259=a16_0x2cba;if(_0x76fbe5){const _0x5c5c53=_0x76fbe5['count'],_0x186c07=_0x3407db[_0x3f4259(0xde)];let _0xfbbf5b=_0x3407db[_0x3f4259(0xde)]+_0x3407db[_0x3f4259(0xcf)],_0x49441a;return _0xfbbf5b>=_0x5c5c53?(_0xfbbf5b=_0x5c5c53,_0x49441a=0xc8):_0x49441a=0xce,_0x32d7b1[_0x3f4259(0xfe)](_0x49441a),_0x32d7b1[_0x3f4259(0xe7)](_0x3f4259(0xdb),_0x186c07+'-'+_0xfbbf5b+'/'+_0x5c5c53)[_0x3f4259(0xf6)](_0x76fbe5);}return null;};}function saveUpdates(_0x12236d){return function(_0x4450ab){if(_0x4450ab)return _0x4450ab['update'](_0x12236d)['then'](function(_0x451a24){return _0x451a24;});return null;};}function removeEntity(_0x2ed70b){return function(_0xbaabba){const _0x1b5b06=a16_0x2cba;if(_0xbaabba)return _0xbaabba['destroy']()[_0x1b5b06(0x102)](function(){const _0x4a957b=_0x1b5b06,_0x3c3f12=_0xbaabba[_0x4a957b(0xcb)]({'plain':!![]}),_0x5bde5f=_0x4a957b(0xe0);return db[_0x4a957b(0xdf)]['destroy']({'where':{'type':_0x5bde5f,'resourceId':_0x3c3f12['id']}})[_0x4a957b(0x102)](function(){return _0xbaabba;});})[_0x1b5b06(0x102)](function(){const _0x4d3d90=_0x1b5b06;_0x2ed70b[_0x4d3d90(0xfe)](0xcc)['end']();});};}function handleEntityNotFound(_0x35c1dd){return function(_0xbca1ba){return!_0xbca1ba&&_0x35c1dd['sendStatus'](0x194),_0xbca1ba;};}function handleError(_0x1ad10f,_0x3dfe3){return _0x3dfe3=_0x3dfe3||0x1f4,function(_0x10082a){const _0x1bc513=a16_0x2cba;logger[_0x1bc513(0xe1)](_0x10082a[_0x1bc513(0xfb)]),_0x10082a[_0x1bc513(0xd1)]&&delete _0x10082a['name'],_0x1ad10f[_0x1bc513(0xfe)](_0x3dfe3)[_0x1bc513(0xed)](_0x10082a);};}exports[a16_0x4609c9(0x10b)]=function(_0x5393a5,_0x1b2cef){const _0x1be1dd=a16_0x4609c9;let _0x2b48cd={};const _0xca0102={},_0x2e300d={'count':0x0,'rows':[]},_0x27ff5d=_['map'](db[_0x1be1dd(0x108)][_0x1be1dd(0xd3)],function(_0x29fd70){const _0x248729=_0x1be1dd;return{'name':_0x29fd70[_0x248729(0xe9)],'type':_0x29fd70[_0x248729(0xd2)][_0x248729(0x107)]};});_0xca0102['model']=_[_0x1be1dd(0xf3)](_0x27ff5d,_0x1be1dd(0xd1)),_0xca0102[_0x1be1dd(0xdd)]=_['keys'](_0x5393a5['query']),_0xca0102[_0x1be1dd(0xf1)]=_['intersection'](_0xca0102[_0x1be1dd(0xd4)],_0xca0102[_0x1be1dd(0xdd)]),_0x2b48cd[_0x1be1dd(0x105)]=_[_0x1be1dd(0xf2)](_0xca0102[_0x1be1dd(0xd4)],qs[_0x1be1dd(0xd6)](_0x5393a5[_0x1be1dd(0xdd)][_0x1be1dd(0xd6)])),_0x2b48cd[_0x1be1dd(0x105)]=_0x2b48cd[_0x1be1dd(0x105)]['length']?_0x2b48cd[_0x1be1dd(0x105)]:_0xca0102[_0x1be1dd(0xd4)];typeof _0x5393a5[_0x1be1dd(0xdd)]['nolimit']===_0x1be1dd(0xec)&&(_0x2b48cd[_0x1be1dd(0xcf)]=qs[_0x1be1dd(0xcf)](_0x5393a5[_0x1be1dd(0xdd)]['limit']),_0x2b48cd[_0x1be1dd(0xde)]=qs['offset'](_0x5393a5[_0x1be1dd(0xdd)][_0x1be1dd(0xde)]));_0x2b48cd[_0x1be1dd(0xe3)]=qs[_0x1be1dd(0x10e)](_0x5393a5[_0x1be1dd(0xdd)][_0x1be1dd(0x10e)]),_0x2b48cd[_0x1be1dd(0xe6)]=qs[_0x1be1dd(0xf1)](_[_0x1be1dd(0xf4)](_0x5393a5['query'],_0xca0102[_0x1be1dd(0xf1)]),_0x27ff5d);_0x5393a5['query']['filter']&&(_0x2b48cd['where']=_[_0x1be1dd(0xf7)](_0x2b48cd[_0x1be1dd(0xe6)],{[Op['or']]:_[_0x1be1dd(0xf3)](_0x27ff5d,function(_0x16ab08){const _0x49b506=_0x1be1dd;if(_0x16ab08['type']!=='VIRTUAL'){const _0x162707={};return _0x162707[_0x16ab08['name']]={[Op[_0x49b506(0x109)]]:'%'+_0x5393a5[_0x49b506(0xdd)][_0x49b506(0xe8)]+'%'},_0x162707;}})}));_0x2b48cd=_[_0x1be1dd(0xf7)]({},_0x2b48cd,_0x5393a5[_0x1be1dd(0xd9)]);const _0x1b4151={'where':_0x2b48cd[_0x1be1dd(0xe6)]};return db[_0x1be1dd(0x108)][_0x1be1dd(0x10f)](_0x1b4151)[_0x1be1dd(0x102)](function(_0x26790f){const _0x3eeffa=_0x1be1dd;return _0x2e300d['count']=_0x26790f,_0x5393a5[_0x3eeffa(0xdd)][_0x3eeffa(0xef)]&&(_0x2b48cd[_0x3eeffa(0xdc)]=[{'all':!![]}]),db['AnalyticExtractedReport']['findAll'](_0x2b48cd);})[_0x1be1dd(0x102)](function(_0x3f5f96){return _0x2e300d['rows']=_0x3f5f96,_0x2e300d;})['then'](respondWithFilteredResult(_0x1b2cef,_0x2b48cd))[_0x1be1dd(0xe2)](handleError(_0x1b2cef,null));},exports[a16_0x4609c9(0x10a)]=function(_0x4397b7,_0x25996a){const _0x240895=a16_0x4609c9;let _0x1d45ac={'raw':!![],'where':{'id':_0x4397b7[_0x240895(0xd7)]['id']}};const _0x22c24b={};return _0x22c24b[_0x240895(0xd4)]=_[_0x240895(0xf5)](db[_0x240895(0x108)]['rawAttributes']),_0x22c24b['query']=_[_0x240895(0xf5)](_0x4397b7[_0x240895(0xdd)]),_0x22c24b[_0x240895(0xf1)]=_[_0x240895(0xf2)](_0x22c24b['model'],_0x22c24b[_0x240895(0xdd)]),_0x1d45ac[_0x240895(0x105)]=_[_0x240895(0xf2)](_0x22c24b['model'],qs[_0x240895(0xd6)](_0x4397b7['query']['fields'])),_0x1d45ac[_0x240895(0x105)]=_0x1d45ac[_0x240895(0x105)]['length']?_0x1d45ac[_0x240895(0x105)]:_0x22c24b[_0x240895(0xd4)],_0x4397b7['query']['includeAll']&&(_0x1d45ac['include']=[{'all':!![]}]),_0x1d45ac=_['merge']({},_0x1d45ac,_0x4397b7[_0x240895(0xd9)]),db[_0x240895(0x108)][_0x240895(0x10d)](_0x1d45ac)[_0x240895(0x102)](handleEntityNotFound(_0x25996a,null))[_0x240895(0x102)](respondWithResult(_0x25996a,null))[_0x240895(0xe2)](handleError(_0x25996a,null));},exports[a16_0x4609c9(0xe4)]=function(_0x495dfb,_0x30feaa){const _0x4e5b7d=a16_0x4609c9;return db['AnalyticExtractedReport'][_0x4e5b7d(0xe4)](_0x495dfb[_0x4e5b7d(0xfd)],{})[_0x4e5b7d(0x102)](function(_0x4709ea){const _0x2d44d7=_0x4e5b7d,_0x433187=_0x495dfb[_0x2d44d7(0xc9)][_0x2d44d7(0xcb)]({'plain':!![]});if(!_0x433187)throw new Error(_0x2d44d7(0xee));if(_0x433187['role']===_0x2d44d7(0xc9)){const _0x3842c0=_0x4709ea[_0x2d44d7(0xcb)]({'plain':!![]}),_0x5138bd=_0x2d44d7(0xe0);return db[_0x2d44d7(0xf0)]['findOne']({'where':{'name':_0x5138bd,'userProfileId':_0x433187[_0x2d44d7(0xf9)]},'raw':!![]})[_0x2d44d7(0x102)](function(_0x166d90){const _0x1a84d0=_0x2d44d7;return _0x166d90&&_0x166d90[_0x1a84d0(0x110)]===0x0?db[_0x1a84d0(0xdf)][_0x1a84d0(0xe4)]({'name':_0x3842c0[_0x1a84d0(0xd1)],'resourceId':_0x3842c0['id'],'type':_0x166d90['name'],'sectionId':_0x166d90['id']},{})[_0x1a84d0(0x102)](function(){return _0x4709ea;}):_0x4709ea;})[_0x2d44d7(0xe2)](function(_0x1b9d14){const _0x343e7e=_0x2d44d7;logger[_0x343e7e(0xe1)](_0x343e7e(0xca),_0x1b9d14);throw _0x1b9d14;});}return _0x4709ea;})[_0x4e5b7d(0x102)](respondWithResult(_0x30feaa,0xc9))[_0x4e5b7d(0xe2)](handleError(_0x30feaa,null));},exports[a16_0x4609c9(0xd8)]=function(_0x371c26,_0x2695c2){const _0x4bf8a8=a16_0x4609c9;return _0x371c26[_0x4bf8a8(0xfd)]['id']&&delete _0x371c26[_0x4bf8a8(0xfd)]['id'],db['AnalyticExtractedReport']['findOne']({'where':{'id':_0x371c26[_0x4bf8a8(0xd7)]['id']}})[_0x4bf8a8(0x102)](handleEntityNotFound(_0x2695c2,null))[_0x4bf8a8(0x102)](saveUpdates(_0x371c26[_0x4bf8a8(0xfd)],null))['then'](respondWithResult(_0x2695c2,null))[_0x4bf8a8(0xe2)](handleError(_0x2695c2,null));},exports['destroy']=function(_0x5ee172,_0x5cbf00){const _0x1b4f93=a16_0x4609c9;return db[_0x1b4f93(0x108)][_0x1b4f93(0x10d)]({'where':{'id':_0x5ee172[_0x1b4f93(0xd7)]['id']}})[_0x1b4f93(0x102)](handleEntityNotFound(_0x5cbf00,null))[_0x1b4f93(0x102)](removeEntity(_0x5cbf00,null))['catch'](handleError(_0x5cbf00,null));},exports['download']=function(_0x7843aa,_0x122512){const _0x4861d2=a16_0x4609c9;return db[_0x4861d2(0x108)][_0x4861d2(0x10d)]({'where':{'id':_0x7843aa[_0x4861d2(0xd7)]['id']},'attributes':[_0x4861d2(0xd1),_0x4861d2(0xfa),'savename',_0x4861d2(0x101)],'raw':!![]})[_0x4861d2(0x102)](handleEntityNotFound(_0x122512,null))[_0x4861d2(0x102)](function(_0x279af1){const _0x21d37d=_0x4861d2;if(_0x279af1){if(!fs[_0x21d37d(0x10c)](path['join'](config[_0x21d37d(0xd5)],'files/reports',_0x279af1[_0x21d37d(0x100)])))throw new ValidationError(_0x21d37d(0xcc));if(_0x7843aa[_0x21d37d(0xdd)]['exists'])return _0x122512['sendStatus'](0xc8);return _0x122512['download'](path[_0x21d37d(0x103)](config['root'],_0x21d37d(0x106),_0x279af1['savename']),util[_0x21d37d(0xea)](_0x21d37d(0xfc),_0x279af1[_0x21d37d(0xfa)]||_0x279af1['name'],_0x279af1[_0x21d37d(0x101)][_0x21d37d(0xeb)]()));}})['catch'](handleError(_0x122512,null));}; \ No newline at end of file diff --git a/server/api/analyticExtractedReport/analyticExtractedReport.model.js b/server/api/analyticExtractedReport/analyticExtractedReport.model.js index 13dc8a9..43eef71 100644 --- a/server/api/analyticExtractedReport/analyticExtractedReport.model.js +++ b/server/api/analyticExtractedReport/analyticExtractedReport.model.js @@ -1 +1 @@ -const a14_0x1c2c=['exports','AnalyticExtractedReport'];(function(_0x1686b8,_0x1c2cd2){const _0xb03011=function(_0x45f0ba){while(--_0x45f0ba){_0x1686b8['push'](_0x1686b8['shift']());}};_0xb03011(++_0x1c2cd2);}(a14_0x1c2c,0x1bb));const a14_0xb030=function(_0x1686b8,_0x1c2cd2){_0x1686b8=_0x1686b8-0x0;let _0xb03011=a14_0x1c2c[_0x1686b8];return _0xb03011;};const _0x5df265=a14_0xb030;'use strict';const attributes=require('./analyticExtractedReport.attributes');module[_0x5df265('0x1')]=function(_0x45f0ba){const _0x3f9d18=_0x5df265,_0x3aed8f=_0x45f0ba['define'](_0x3f9d18('0x0'),attributes,{'tableName':'analytics_extracted_reports','paranoid':![],'indexes':[],'timestamps':!![]});return _0x3aed8f;}; \ No newline at end of file +const a17_0x1a57=['AnalyticExtractedReport','exports','function','init','./analyticExtractedReport.options'];(function(_0x42bed6,_0x1b66e0){const _0x1a57fc=function(_0x2697f1){while(--_0x2697f1){_0x42bed6['push'](_0x42bed6['shift']());}};_0x1a57fc(++_0x1b66e0);}(a17_0x1a57,0x87));const a17_0x2697=function(_0x42bed6,_0x1b66e0){_0x42bed6=_0x42bed6-0x152;let _0x1a57fc=a17_0x1a57[_0x42bed6];return _0x1a57fc;};const a17_0x3c9cd9=a17_0x2697;'use strict';const {Model}=require('sequelize'),{attributes}=require('./analyticExtractedReport.attributes'),{options}=require(a17_0x3c9cd9(0x156));class AnalyticExtractedReport extends Model{}function init(_0x3ecc2b,_0x3cf97d){const _0x13390a=a17_0x3c9cd9,_0x2220a5=options(_0x3ecc2b),_0xcbc1d4=typeof _0x3cf97d===_0x13390a(0x154)?_0x3cf97d(_0x2220a5):_0x2220a5;return AnalyticExtractedReport[_0x13390a(0x155)](attributes,_0xcbc1d4),AnalyticExtractedReport;}module['exports'][a17_0x3c9cd9(0x152)]=AnalyticExtractedReport,module[a17_0x3c9cd9(0x153)]['init']=init; \ No newline at end of file diff --git a/server/api/analyticExtractedReport/analyticExtractedReport.options.js b/server/api/analyticExtractedReport/analyticExtractedReport.options.js new file mode 100644 index 0000000..908fc33 --- /dev/null +++ b/server/api/analyticExtractedReport/analyticExtractedReport.options.js @@ -0,0 +1 @@ +var a18_0x461e=['options','analytics_extracted_reports'];(function(_0x584c73,_0x16b2ce){var _0x461ef5=function(_0x18d281){while(--_0x18d281){_0x584c73['push'](_0x584c73['shift']());}};_0x461ef5(++_0x16b2ce);}(a18_0x461e,0x1d5));var a18_0x18d2=function(_0x584c73,_0x16b2ce){_0x584c73=_0x584c73-0xf4;var _0x461ef5=a18_0x461e[_0x584c73];return _0x461ef5;};var a18_0x4748c8=a18_0x18d2;function options(_0x2d5d50){var _0x318977=a18_0x18d2;return{'sequelize':_0x2d5d50,'tableName':_0x318977(0xf4),'paranoid':![],'indexes':[],'timestamps':!![]};}module['exports'][a18_0x4748c8(0xf5)]=options; \ No newline at end of file diff --git a/server/api/analyticExtractedReport/index.js b/server/api/analyticExtractedReport/index.js index 48b3f60..923101b 100644 --- a/server/api/analyticExtractedReport/index.js +++ b/server/api/analyticExtractedReport/index.js @@ -1 +1 @@ -const a15_0x4de1=['/:id/download','Router','/:id','../../components/auth/service','delete','get','show','destroy','./analyticExtractedReport.controller','exports','put','update','isAuthenticated','index'];(function(_0x5ecfaf,_0x4de16b){const _0x306c35=function(_0x5a5296){while(--_0x5a5296){_0x5ecfaf['push'](_0x5ecfaf['shift']());}};_0x306c35(++_0x4de16b);}(a15_0x4de1,0x1d9));const a15_0x306c=function(_0x5ecfaf,_0x4de16b){_0x5ecfaf=_0x5ecfaf-0x0;let _0x306c35=a15_0x4de1[_0x5ecfaf];return _0x306c35;};const _0x5a60fb=a15_0x306c;'use strict';const express=require('express'),router=express[_0x5a60fb('0x4')](),auth=require(_0x5a60fb('0x6')),controller=require(_0x5a60fb('0xb'));router[_0x5a60fb('0x8')]('/',auth[_0x5a60fb('0x1')](),controller[_0x5a60fb('0x2')]),router[_0x5a60fb('0x8')](_0x5a60fb('0x5'),auth[_0x5a60fb('0x1')](),controller[_0x5a60fb('0x9')]),router[_0x5a60fb('0x8')](_0x5a60fb('0x3'),auth[_0x5a60fb('0x1')](),controller['download']),router['post']('/',auth[_0x5a60fb('0x1')](),controller['create']),router[_0x5a60fb('0xd')](_0x5a60fb('0x5'),auth[_0x5a60fb('0x1')](),controller[_0x5a60fb('0x0')]),router[_0x5a60fb('0x7')](_0x5a60fb('0x5'),auth[_0x5a60fb('0x1')](),controller[_0x5a60fb('0xa')]),module[_0x5a60fb('0xc')]=router; \ No newline at end of file +const a19_0x7dc3=['put','Router','express','download','post','index','/:id/download','update','create','exports','delete','/:id','destroy','get','isAuthenticated','show'];(function(_0x31ac3a,_0x55ec44){const _0x7dc386=function(_0x163605){while(--_0x163605){_0x31ac3a['push'](_0x31ac3a['shift']());}};_0x7dc386(++_0x55ec44);}(a19_0x7dc3,0x158));const a19_0x1636=function(_0x31ac3a,_0x55ec44){_0x31ac3a=_0x31ac3a-0xc7;let _0x7dc386=a19_0x7dc3[_0x31ac3a];return _0x7dc386;};const a19_0x2f868f=a19_0x1636;'use strict';const express=require(a19_0x2f868f(0xd1)),router=express[a19_0x2f868f(0xd0)](),auth=require('../../components/auth/service'),controller=require('./analyticExtractedReport.controller');router[a19_0x2f868f(0xcc)]('/',auth[a19_0x2f868f(0xcd)](),controller[a19_0x2f868f(0xd4)]),router['get'](a19_0x2f868f(0xca),auth[a19_0x2f868f(0xcd)](),controller[a19_0x2f868f(0xce)]),router['get'](a19_0x2f868f(0xd5),auth[a19_0x2f868f(0xcd)](),controller[a19_0x2f868f(0xd2)]),router[a19_0x2f868f(0xd3)]('/',auth[a19_0x2f868f(0xcd)](),controller[a19_0x2f868f(0xc7)]),router[a19_0x2f868f(0xcf)](a19_0x2f868f(0xca),auth[a19_0x2f868f(0xcd)](),controller[a19_0x2f868f(0xd6)]),router[a19_0x2f868f(0xc9)](a19_0x2f868f(0xca),auth[a19_0x2f868f(0xcd)](),controller[a19_0x2f868f(0xcb)]),module[a19_0x2f868f(0xc8)]=router; \ No newline at end of file diff --git a/server/api/analyticFieldReport/analyticFieldReport.attributes.js b/server/api/analyticFieldReport/analyticFieldReport.attributes.js index a46c2a5..36ec7be 100644 --- a/server/api/analyticFieldReport/analyticFieldReport.attributes.js +++ b/server/api/analyticFieldReport/analyticFieldReport.attributes.js @@ -1 +1 @@ -const a16_0x3f92=['sequelize','TEXT','STRING'];(function(_0x3de398,_0x3f92a7){const _0x2a5cd9=function(_0x1190e7){while(--_0x1190e7){_0x3de398['push'](_0x3de398['shift']());}};_0x2a5cd9(++_0x3f92a7);}(a16_0x3f92,0xf8));const a16_0x2a5c=function(_0x3de398,_0x3f92a7){_0x3de398=_0x3de398-0x0;let _0x2a5cd9=a16_0x3f92[_0x3de398];return _0x2a5cd9;};const _0x124b25=a16_0x2a5c;'use strict';const Sequelize=require(_0x124b25('0x1'));module['exports']={'field':{'type':Sequelize[_0x124b25('0x2')]},'alias':{'type':Sequelize[_0x124b25('0x0')]},'function':{'type':Sequelize[_0x124b25('0x0')]},'format':{'type':Sequelize[_0x124b25('0x0')]},'groupBy':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'orderBy':{'type':Sequelize['STRING']},'custom':{'type':Sequelize['BOOLEAN'],'defaultValue':![]}}; \ No newline at end of file +const a20_0x46ab=['exports','BOOLEAN','STRING','attributes'];(function(_0x4fd29f,_0xe4480a){const _0x46ab67=function(_0x34d3ab){while(--_0x34d3ab){_0x4fd29f['push'](_0x4fd29f['shift']());}};_0x46ab67(++_0xe4480a);}(a20_0x46ab,0x129));const a20_0x34d3=function(_0x4fd29f,_0xe4480a){_0x4fd29f=_0x4fd29f-0x1eb;let _0x46ab67=a20_0x46ab[_0x4fd29f];return _0x46ab67;};const a20_0x49f547=a20_0x34d3;'use strict';const {DataTypes}=require('sequelize'),attributes={'field':{'type':DataTypes['TEXT']},'alias':{'type':DataTypes['STRING']},'function':{'type':DataTypes[a20_0x49f547(0x1ec)]},'format':{'type':DataTypes[a20_0x49f547(0x1ec)]},'groupBy':{'type':DataTypes[a20_0x49f547(0x1eb)],'defaultValue':![]},'orderBy':{'type':DataTypes[a20_0x49f547(0x1ec)]},'custom':{'type':DataTypes['BOOLEAN'],'defaultValue':![]}};module[a20_0x49f547(0x1ee)][a20_0x49f547(0x1ed)]=attributes; \ No newline at end of file diff --git a/server/api/analyticFieldReport/analyticFieldReport.controller.js b/server/api/analyticFieldReport/analyticFieldReport.controller.js index eb0b87b..27d0785 100644 --- a/server/api/analyticFieldReport/analyticFieldReport.controller.js +++ b/server/api/analyticFieldReport/analyticFieldReport.controller.js @@ -1 +1 @@ -const a17_0x1758=['status','query','intersection','options','bulkCreate','then','show','fields','api','rawAttributes','body','bulkDestroy','offset','create','ids','count','transaction','sort','limit','map','order','findAll','catch','findOne','error','key','json','lodash','type','name','stack','model','rows','end','includeAll','filter','index','Content-Range','AnalyticFieldReport','where','params','sequelize','filters','CustomReportId','include','keys','send','../../mysqldb','attributes','merge','AnalyticCustomReport','set','length','update','pick','destroy'];(function(_0x5a825d,_0x1758d2){const _0x12b64b=function(_0x501419){while(--_0x501419){_0x5a825d['push'](_0x5a825d['shift']());}};_0x12b64b(++_0x1758d2);}(a17_0x1758,0xc5));const a17_0x12b6=function(_0x5a825d,_0x1758d2){_0x5a825d=_0x5a825d-0x0;let _0x12b64b=a17_0x1758[_0x5a825d];return _0x12b64b;};const _0x577bf1=a17_0x12b6;'use strict';const _=require(_0x577bf1('0x36')),qs=require('../../components/parsers/qs'),logger=require('../../config/logger')(_0x577bf1('0x23')),db=require(_0x577bf1('0x12'))['db'],{Op}=require(_0x577bf1('0xc'));function respondWithResult(_0x501419,_0xdf2465){return _0xdf2465=_0xdf2465||0xc8,function(_0x9e8ad4){const _0x2f977c=a17_0x12b6;if(_0x9e8ad4)return _0x501419[_0x2f977c('0x1b')](_0xdf2465)[_0x2f977c('0x35')](_0x9e8ad4);};}function respondWithFilteredResult(_0x3dd11d,_0x35d85d){return function(_0x1e1d06){const _0xdc196e=a17_0x12b6;if(_0x1e1d06){const _0x119715=_0x1e1d06[_0xdc196e('0x2a')],_0x2cc25c=_0x35d85d[_0xdc196e('0x27')];let _0xc4d637=_0x35d85d[_0xdc196e('0x27')]+_0x35d85d[_0xdc196e('0x2d')],_0x70fd8e;return _0xc4d637>=_0x119715?(_0xc4d637=_0x119715,_0x70fd8e=0xc8):_0x70fd8e=0xce,_0x3dd11d[_0xdc196e('0x1b')](_0x70fd8e),_0x3dd11d[_0xdc196e('0x16')](_0xdc196e('0x8'),_0x2cc25c+'-'+_0xc4d637+'/'+_0x119715)[_0xdc196e('0x35')](_0x1e1d06);}return null;};}function saveUpdates(_0x579c99){return function(_0x14d1df){const _0x4356cb=a17_0x12b6;if(_0x14d1df)return _0x14d1df[_0x4356cb('0x18')](_0x579c99)['then'](function(_0x481fa6){return _0x481fa6;});return null;};}function removeEntity(_0x2e579a){return function(_0x10dda3){const _0x284415=a17_0x12b6;if(_0x10dda3)return _0x10dda3[_0x284415('0x1a')]()[_0x284415('0x20')](function(){const _0x4bdfe=_0x284415;_0x2e579a[_0x4bdfe('0x1b')](0xcc)[_0x4bdfe('0x4')]();});};}function handleEntityNotFound(_0x3ed8f9){return function(_0x31055d){return!_0x31055d&&_0x3ed8f9['sendStatus'](0x194),_0x31055d;};}function handleError(_0x138b3c,_0xb88b6){return _0xb88b6=_0xb88b6||0x1f4,function(_0x57aa94){const _0x57775b=a17_0x12b6;logger[_0x57775b('0x33')](_0x57aa94[_0x57775b('0x1')]),_0x57aa94[_0x57775b('0x0')]&&delete _0x57aa94[_0x57775b('0x0')],_0x138b3c[_0x57775b('0x1b')](_0xb88b6)[_0x57775b('0x11')](_0x57aa94);};}exports[_0x577bf1('0x7')]=function(_0x190559,_0x59647a){const _0x244163=_0x577bf1;let _0x5ce9d0={};const _0x12c3da={},_0x2d2322={'count':0x0,'rows':[]},_0x2350fc=_['map'](db['AnalyticFieldReport'][_0x244163('0x24')],function(_0x2e78f0){const _0x4c2406=_0x244163;return{'name':_0x2e78f0['fieldName'],'type':_0x2e78f0[_0x4c2406('0x37')][_0x4c2406('0x34')]};});_0x12c3da['model']=_[_0x244163('0x2e')](_0x2350fc,_0x244163('0x0')),_0x12c3da['query']=_[_0x244163('0x10')](_0x190559[_0x244163('0x1c')]),_0x12c3da[_0x244163('0xd')]=_[_0x244163('0x1d')](_0x12c3da[_0x244163('0x2')],_0x12c3da['query']),_0x5ce9d0[_0x244163('0x13')]=_['intersection'](_0x12c3da[_0x244163('0x2')],qs[_0x244163('0x22')](_0x190559[_0x244163('0x1c')]['fields'])),_0x5ce9d0[_0x244163('0x13')]=_0x5ce9d0[_0x244163('0x13')][_0x244163('0x17')]?_0x5ce9d0[_0x244163('0x13')]:_0x12c3da[_0x244163('0x2')];typeof _0x190559['query']['nolimit']==='undefined'&&(_0x5ce9d0[_0x244163('0x2d')]=qs[_0x244163('0x2d')](_0x190559[_0x244163('0x1c')]['limit']),_0x5ce9d0[_0x244163('0x27')]=qs[_0x244163('0x27')](_0x190559[_0x244163('0x1c')]['offset']));_0x5ce9d0[_0x244163('0x2f')]=qs[_0x244163('0x2c')](_0x190559['query'][_0x244163('0x2c')]),_0x5ce9d0[_0x244163('0xa')]=qs[_0x244163('0xd')](_[_0x244163('0x19')](_0x190559[_0x244163('0x1c')],_0x12c3da['filters']),_0x2350fc);_0x190559[_0x244163('0x1c')][_0x244163('0x6')]&&(_0x5ce9d0[_0x244163('0xa')]=_['merge'](_0x5ce9d0['where'],{[Op['or']]:_['map'](_0x2350fc,function(_0x5b83af){const _0x206a81=_0x244163;if(_0x5b83af[_0x206a81('0x37')]!=='VIRTUAL'){const _0xcb51ae={};return _0xcb51ae[_0x5b83af['name']]={[Op['like']]:'%'+_0x190559[_0x206a81('0x1c')][_0x206a81('0x6')]+'%'},_0xcb51ae;}})}));_0x5ce9d0=_[_0x244163('0x14')]({},_0x5ce9d0,_0x190559[_0x244163('0x1e')]);const _0x52af77={'where':_0x5ce9d0['where']};return db[_0x244163('0x9')][_0x244163('0x2a')](_0x52af77)[_0x244163('0x20')](function(_0x19a028){const _0x77c34e=_0x244163;return _0x2d2322[_0x77c34e('0x2a')]=_0x19a028,_0x190559[_0x77c34e('0x1c')][_0x77c34e('0x5')]&&(_0x5ce9d0[_0x77c34e('0xf')]=[{'all':!![]}]),db[_0x77c34e('0x9')][_0x77c34e('0x30')](_0x5ce9d0);})[_0x244163('0x20')](function(_0x159235){const _0x5087e7=_0x244163;return _0x2d2322[_0x5087e7('0x3')]=_0x159235,_0x2d2322;})[_0x244163('0x20')](respondWithFilteredResult(_0x59647a,_0x5ce9d0))[_0x244163('0x31')](handleError(_0x59647a,null));},exports[_0x577bf1('0x21')]=function(_0x2668ad,_0x4d49c8){const _0xf7af5a=_0x577bf1;let _0x414e46={'raw':![],'where':{'id':_0x2668ad[_0xf7af5a('0xb')]['id']}};const _0x1fecdf={};return _0x1fecdf['model']=_[_0xf7af5a('0x10')](db[_0xf7af5a('0x9')][_0xf7af5a('0x24')]),_0x1fecdf[_0xf7af5a('0x1c')]=_[_0xf7af5a('0x10')](_0x2668ad[_0xf7af5a('0x1c')]),_0x1fecdf[_0xf7af5a('0xd')]=_['intersection'](_0x1fecdf[_0xf7af5a('0x2')],_0x1fecdf['query']),_0x414e46['attributes']=_[_0xf7af5a('0x1d')](_0x1fecdf['model'],qs[_0xf7af5a('0x22')](_0x2668ad[_0xf7af5a('0x1c')][_0xf7af5a('0x22')])),_0x414e46[_0xf7af5a('0x13')]=_0x414e46['attributes'][_0xf7af5a('0x17')]?_0x414e46[_0xf7af5a('0x13')]:_0x1fecdf[_0xf7af5a('0x2')],_0x2668ad['query'][_0xf7af5a('0x5')]&&(_0x414e46['include']=[{'all':!![]}]),_0x414e46=_[_0xf7af5a('0x14')]({},_0x414e46,_0x2668ad[_0xf7af5a('0x1e')]),db['AnalyticFieldReport'][_0xf7af5a('0x32')](_0x414e46)[_0xf7af5a('0x20')](handleEntityNotFound(_0x4d49c8,null))[_0xf7af5a('0x20')](respondWithResult(_0x4d49c8,null))[_0xf7af5a('0x31')](handleError(_0x4d49c8,null));},exports[_0x577bf1('0x28')]=function(_0x2222be,_0x2cb060){const _0x374203=_0x577bf1;return db[_0x374203('0x9')][_0x374203('0x28')](_0x2222be['body'],{})['then'](respondWithResult(_0x2cb060,0xc9))[_0x374203('0x31')](handleError(_0x2cb060,null));},exports['bulkCreate']=function(_0x7821ad,_0x39151c){const _0x58b79c=_0x577bf1;return db['AnalyticFieldReport']['bulkCreate'](_0x7821ad[_0x58b79c('0x25')],{'raw':![],'individualHooks':!![]})[_0x58b79c('0x20')](respondWithResult(_0x39151c,0xc9))[_0x58b79c('0x31')](handleError(_0x39151c,null));},exports['update']=function(_0x11c2f2,_0x5eda29){const _0x5c60d3=_0x577bf1;return _0x11c2f2[_0x5c60d3('0x25')]['id']&&delete _0x11c2f2['body']['id'],db[_0x5c60d3('0x9')][_0x5c60d3('0x32')]({'where':{'id':_0x11c2f2['params']['id']}})['then'](handleEntityNotFound(_0x5eda29,null))[_0x5c60d3('0x20')](saveUpdates(_0x11c2f2[_0x5c60d3('0x25')],null))[_0x5c60d3('0x20')](respondWithResult(_0x5eda29,null))[_0x5c60d3('0x31')](handleError(_0x5eda29,null));},exports[_0x577bf1('0x1a')]=function(_0x5a4a46,_0x4d6cbe){const _0x362537=_0x577bf1;return db[_0x362537('0x9')]['findOne']({'where':{'id':_0x5a4a46[_0x362537('0xb')]['id']}})[_0x362537('0x20')](handleEntityNotFound(_0x4d6cbe,null))['then'](removeEntity(_0x4d6cbe,null))[_0x362537('0x31')](handleError(_0x4d6cbe,null));},exports[_0x577bf1('0x26')]=function(_0x25e998,_0x2de2ae){const _0x4c9ab1=_0x577bf1;return db[_0x4c9ab1('0x9')][_0x4c9ab1('0x1a')]({'where':{'id':_0x25e998[_0x4c9ab1('0x1c')][_0x4c9ab1('0x29')]||[]},'raw':![],'individualHooks':!![]})[_0x4c9ab1('0x20')](respondWithResult(_0x2de2ae,0xcc))[_0x4c9ab1('0x31')](handleError(_0x2de2ae,null));},exports['addFields']=function(_0x2996a2,_0x5c33b1){const _0x2301c3=_0x577bf1;return db[_0x2301c3('0x15')][_0x2301c3('0x32')]({'where':{'id':_0x2996a2['params']['id']}})[_0x2301c3('0x20')](handleEntityNotFound(_0x5c33b1,null))[_0x2301c3('0x20')](function(_0x5e602c){const _0x596cf0=_0x2301c3;if(_0x5e602c)return db[_0x596cf0('0xc')][_0x596cf0('0x2b')](function(_0x42e9f2){const _0x551ecc=_0x596cf0;return db[_0x551ecc('0x9')]['destroy']({'where':{'CustomReportId':_0x2996a2[_0x551ecc('0xb')]['id']},'transaction':_0x42e9f2})['then'](function(){const _0x467ab5=_0x551ecc,_0x46db87=_[_0x467ab5('0x2e')](_0x2996a2[_0x467ab5('0x25')],function(_0x34bd77){const _0x3efc87=_0x467ab5;return delete _0x34bd77['id'],_0x34bd77[_0x3efc87('0xe')]=_0x2996a2[_0x3efc87('0xb')]['id'],_0x34bd77;});return db[_0x467ab5('0x9')][_0x467ab5('0x1f')](_0x46db87,{'transaction':_0x42e9f2});});})['then'](function(){const _0x5dedd0=_0x596cf0;return db['AnalyticFieldReport'][_0x5dedd0('0x30')]({'where':{'CustomReportId':_0x2996a2['params']['id']}});});})[_0x2301c3('0x20')](respondWithResult(_0x5c33b1,null))[_0x2301c3('0x31')](handleError(_0x5c33b1,null));}; \ No newline at end of file +const a21_0xfe9c=['params','key','error','bulkCreate','merge','where','model','body','../../config/logger','transaction','update','create','then','end','AnalyticCustomReport','query','../../components/parsers/qs','ids','limit','fieldName','offset','includeAll','api','destroy','bulkDestroy','length','show','options','catch','filters','addFields','order','rows','map','name','sort','rawAttributes','like','attributes','type','send','include','filter','undefined','findOne','json','count','sendStatus','intersection','CustomReportId','findAll','fields','status','VIRTUAL','AnalyticFieldReport','index','sequelize','keys'];(function(_0xaa28c2,_0x5774f7){const _0xfe9c8d=function(_0x58e96d){while(--_0x58e96d){_0xaa28c2['push'](_0xaa28c2['shift']());}};_0xfe9c8d(++_0x5774f7);}(a21_0xfe9c,0x143));const a21_0x58e9=function(_0xaa28c2,_0x5774f7){_0xaa28c2=_0xaa28c2-0x145;let _0xfe9c8d=a21_0xfe9c[_0xaa28c2];return _0xfe9c8d;};const a21_0x36824c=a21_0x58e9;'use strict';const _=require('lodash'),qs=require(a21_0x36824c(0x16e)),logger=require(a21_0x36824c(0x166))(a21_0x36824c(0x174)),{db}=require('../../mysqldb'),{Op}=require(a21_0x36824c(0x15c));function respondWithResult(_0x2bc74f,_0x2dbaf8){return _0x2dbaf8=_0x2dbaf8||0xc8,function(_0x21fd16){const _0x46b997=a21_0x58e9;if(_0x21fd16)return _0x2bc74f[_0x46b997(0x158)](_0x2dbaf8)[_0x46b997(0x151)](_0x21fd16);};}function respondWithFilteredResult(_0x1dce11,_0x286748){return function(_0x741b8b){const _0xc86e34=a21_0x58e9;if(_0x741b8b){const _0x832147=_0x741b8b[_0xc86e34(0x152)],_0x760d97=_0x286748[_0xc86e34(0x172)];let _0x48aa1e=_0x286748[_0xc86e34(0x172)]+_0x286748[_0xc86e34(0x170)],_0x21c4d7;return _0x48aa1e>=_0x832147?(_0x48aa1e=_0x832147,_0x21c4d7=0xc8):_0x21c4d7=0xce,_0x1dce11[_0xc86e34(0x158)](_0x21c4d7),_0x1dce11['set']('Content-Range',_0x760d97+'-'+_0x48aa1e+'/'+_0x832147)['json'](_0x741b8b);}return null;};}function saveUpdates(_0x5a5af6){return function(_0x542618){const _0x4eb4c5=a21_0x58e9;if(_0x542618)return _0x542618[_0x4eb4c5(0x168)](_0x5a5af6)[_0x4eb4c5(0x16a)](function(_0x531f92){return _0x531f92;});return null;};}function removeEntity(_0x436400){return function(_0x26b335){if(_0x26b335)return _0x26b335['destroy']()['then'](function(){const _0x307a53=a21_0x58e9;_0x436400[_0x307a53(0x158)](0xcc)[_0x307a53(0x16b)]();});};}function handleEntityNotFound(_0x156c57){return function(_0x5db8ad){const _0x222a1a=a21_0x58e9;return!_0x5db8ad&&_0x156c57[_0x222a1a(0x153)](0x194),_0x5db8ad;};}function handleError(_0x204af4,_0x35aae9){return _0x35aae9=_0x35aae9||0x1f4,function(_0x3eacb3){const _0x28285b=a21_0x58e9;logger[_0x28285b(0x160)](_0x3eacb3['stack']),_0x3eacb3[_0x28285b(0x146)]&&delete _0x3eacb3['name'],_0x204af4[_0x28285b(0x158)](_0x35aae9)[_0x28285b(0x14c)](_0x3eacb3);};}exports[a21_0x36824c(0x15b)]=function(_0x120334,_0xccae85){const _0x5cfa27=a21_0x36824c;let _0xc1d24b={};const _0x37d079={},_0x2ed1c0={'count':0x0,'rows':[]},_0x2b1b8a=_[_0x5cfa27(0x145)](db['AnalyticFieldReport'][_0x5cfa27(0x148)],function(_0x3f85a1){const _0x860eaf=_0x5cfa27;return{'name':_0x3f85a1[_0x860eaf(0x171)],'type':_0x3f85a1['type'][_0x860eaf(0x15f)]};});_0x37d079[_0x5cfa27(0x164)]=_[_0x5cfa27(0x145)](_0x2b1b8a,_0x5cfa27(0x146)),_0x37d079[_0x5cfa27(0x16d)]=_['keys'](_0x120334[_0x5cfa27(0x16d)]),_0x37d079['filters']=_[_0x5cfa27(0x154)](_0x37d079[_0x5cfa27(0x164)],_0x37d079['query']),_0xc1d24b[_0x5cfa27(0x14a)]=_['intersection'](_0x37d079[_0x5cfa27(0x164)],qs[_0x5cfa27(0x157)](_0x120334[_0x5cfa27(0x16d)]['fields'])),_0xc1d24b['attributes']=_0xc1d24b[_0x5cfa27(0x14a)]['length']?_0xc1d24b[_0x5cfa27(0x14a)]:_0x37d079[_0x5cfa27(0x164)];typeof _0x120334['query']['nolimit']===_0x5cfa27(0x14f)&&(_0xc1d24b['limit']=qs[_0x5cfa27(0x170)](_0x120334['query'][_0x5cfa27(0x170)]),_0xc1d24b[_0x5cfa27(0x172)]=qs[_0x5cfa27(0x172)](_0x120334[_0x5cfa27(0x16d)][_0x5cfa27(0x172)]));_0xc1d24b[_0x5cfa27(0x17d)]=qs[_0x5cfa27(0x147)](_0x120334['query'][_0x5cfa27(0x147)]),_0xc1d24b[_0x5cfa27(0x163)]=qs[_0x5cfa27(0x17b)](_['pick'](_0x120334['query'],_0x37d079['filters']),_0x2b1b8a);_0x120334[_0x5cfa27(0x16d)][_0x5cfa27(0x14e)]&&(_0xc1d24b[_0x5cfa27(0x163)]=_['merge'](_0xc1d24b[_0x5cfa27(0x163)],{[Op['or']]:_[_0x5cfa27(0x145)](_0x2b1b8a,function(_0x329e17){const _0x421c39=_0x5cfa27;if(_0x329e17[_0x421c39(0x14b)]!==_0x421c39(0x159)){const _0x4204ab={};return _0x4204ab[_0x329e17['name']]={[Op[_0x421c39(0x149)]]:'%'+_0x120334['query'][_0x421c39(0x14e)]+'%'},_0x4204ab;}})}));_0xc1d24b=_[_0x5cfa27(0x162)]({},_0xc1d24b,_0x120334[_0x5cfa27(0x179)]);const _0x4a2402={'where':_0xc1d24b[_0x5cfa27(0x163)]};return db[_0x5cfa27(0x15a)]['count'](_0x4a2402)[_0x5cfa27(0x16a)](function(_0x553224){const _0x1a910c=_0x5cfa27;return _0x2ed1c0['count']=_0x553224,_0x120334[_0x1a910c(0x16d)]['includeAll']&&(_0xc1d24b[_0x1a910c(0x14d)]=[{'all':!![]}]),db[_0x1a910c(0x15a)][_0x1a910c(0x156)](_0xc1d24b);})[_0x5cfa27(0x16a)](function(_0x43c5ce){const _0x2aa6f9=_0x5cfa27;return _0x2ed1c0[_0x2aa6f9(0x17e)]=_0x43c5ce,_0x2ed1c0;})[_0x5cfa27(0x16a)](respondWithFilteredResult(_0xccae85,_0xc1d24b))[_0x5cfa27(0x17a)](handleError(_0xccae85,null));},exports[a21_0x36824c(0x178)]=function(_0x16ad3d,_0xc404c2){const _0xd27156=a21_0x36824c;let _0x2ea7d1={'raw':![],'where':{'id':_0x16ad3d[_0xd27156(0x15e)]['id']}};const _0x17d3dd={};return _0x17d3dd[_0xd27156(0x164)]=_[_0xd27156(0x15d)](db[_0xd27156(0x15a)][_0xd27156(0x148)]),_0x17d3dd[_0xd27156(0x16d)]=_[_0xd27156(0x15d)](_0x16ad3d[_0xd27156(0x16d)]),_0x17d3dd[_0xd27156(0x17b)]=_[_0xd27156(0x154)](_0x17d3dd[_0xd27156(0x164)],_0x17d3dd[_0xd27156(0x16d)]),_0x2ea7d1[_0xd27156(0x14a)]=_['intersection'](_0x17d3dd[_0xd27156(0x164)],qs[_0xd27156(0x157)](_0x16ad3d[_0xd27156(0x16d)]['fields'])),_0x2ea7d1['attributes']=_0x2ea7d1['attributes'][_0xd27156(0x177)]?_0x2ea7d1[_0xd27156(0x14a)]:_0x17d3dd[_0xd27156(0x164)],_0x16ad3d[_0xd27156(0x16d)][_0xd27156(0x173)]&&(_0x2ea7d1[_0xd27156(0x14d)]=[{'all':!![]}]),_0x2ea7d1=_[_0xd27156(0x162)]({},_0x2ea7d1,_0x16ad3d[_0xd27156(0x179)]),db[_0xd27156(0x15a)][_0xd27156(0x150)](_0x2ea7d1)[_0xd27156(0x16a)](handleEntityNotFound(_0xc404c2,null))[_0xd27156(0x16a)](respondWithResult(_0xc404c2,null))[_0xd27156(0x17a)](handleError(_0xc404c2,null));},exports[a21_0x36824c(0x169)]=function(_0x4d3b64,_0xbe409c){const _0x185416=a21_0x36824c;return db[_0x185416(0x15a)][_0x185416(0x169)](_0x4d3b64['body'],{})[_0x185416(0x16a)](respondWithResult(_0xbe409c,0xc9))['catch'](handleError(_0xbe409c,null));},exports[a21_0x36824c(0x161)]=function(_0x32903f,_0x271b2e){const _0x5f007d=a21_0x36824c;return db[_0x5f007d(0x15a)][_0x5f007d(0x161)](_0x32903f[_0x5f007d(0x165)],{'raw':![],'individualHooks':!![]})[_0x5f007d(0x16a)](respondWithResult(_0x271b2e,0xc9))[_0x5f007d(0x17a)](handleError(_0x271b2e,null));},exports[a21_0x36824c(0x168)]=function(_0x365951,_0x364499){const _0x5b423f=a21_0x36824c;return _0x365951[_0x5b423f(0x165)]['id']&&delete _0x365951['body']['id'],db[_0x5b423f(0x15a)][_0x5b423f(0x150)]({'where':{'id':_0x365951[_0x5b423f(0x15e)]['id']}})[_0x5b423f(0x16a)](handleEntityNotFound(_0x364499,null))['then'](saveUpdates(_0x365951[_0x5b423f(0x165)],null))[_0x5b423f(0x16a)](respondWithResult(_0x364499,null))[_0x5b423f(0x17a)](handleError(_0x364499,null));},exports[a21_0x36824c(0x175)]=function(_0x59c8e9,_0x38ccf4){const _0x874582=a21_0x36824c;return db['AnalyticFieldReport'][_0x874582(0x150)]({'where':{'id':_0x59c8e9['params']['id']}})[_0x874582(0x16a)](handleEntityNotFound(_0x38ccf4,null))[_0x874582(0x16a)](removeEntity(_0x38ccf4,null))['catch'](handleError(_0x38ccf4,null));},exports[a21_0x36824c(0x176)]=function(_0x253da7,_0x1d6daf){const _0x484d8a=a21_0x36824c;return db['AnalyticFieldReport'][_0x484d8a(0x175)]({'where':{'id':_0x253da7['query'][_0x484d8a(0x16f)]||[]},'raw':![],'individualHooks':!![]})[_0x484d8a(0x16a)](respondWithResult(_0x1d6daf,0xcc))[_0x484d8a(0x17a)](handleError(_0x1d6daf,null));},exports[a21_0x36824c(0x17c)]=function(_0x335ed4,_0x25dad0){const _0x5e6e42=a21_0x36824c;return db[_0x5e6e42(0x16c)][_0x5e6e42(0x150)]({'where':{'id':_0x335ed4[_0x5e6e42(0x15e)]['id']}})[_0x5e6e42(0x16a)](handleEntityNotFound(_0x25dad0,null))['then'](function(_0x170c1c){const _0x4e1a19=_0x5e6e42;if(_0x170c1c)return db[_0x4e1a19(0x15c)][_0x4e1a19(0x167)](function(_0x8514c4){const _0x1f9767=_0x4e1a19;return db['AnalyticFieldReport'][_0x1f9767(0x175)]({'where':{'CustomReportId':_0x335ed4[_0x1f9767(0x15e)]['id']},'transaction':_0x8514c4})[_0x1f9767(0x16a)](function(){const _0x47564f=_0x1f9767,_0x54ac9b=_[_0x47564f(0x145)](_0x335ed4[_0x47564f(0x165)],function(_0x58283d){const _0x2c3256=_0x47564f;return delete _0x58283d['id'],_0x58283d[_0x2c3256(0x155)]=_0x335ed4['params']['id'],_0x58283d;});return db['AnalyticFieldReport'][_0x47564f(0x161)](_0x54ac9b,{'transaction':_0x8514c4});});})['then'](function(){const _0x5300=_0x4e1a19;return db['AnalyticFieldReport'][_0x5300(0x156)]({'where':{'CustomReportId':_0x335ed4['params']['id']}});});})[_0x5e6e42(0x16a)](respondWithResult(_0x25dad0,null))['catch'](handleError(_0x25dad0,null));}; \ No newline at end of file diff --git a/server/api/analyticFieldReport/analyticFieldReport.model.js b/server/api/analyticFieldReport/analyticFieldReport.model.js index 0cadde7..28e8ae2 100644 --- a/server/api/analyticFieldReport/analyticFieldReport.model.js +++ b/server/api/analyticFieldReport/analyticFieldReport.model.js @@ -1 +1 @@ -const a18_0xf239=['exports','analytics_report_fields','define'];(function(_0x2d9afc,_0xf239e3){const _0x21a472=function(_0x403017){while(--_0x403017){_0x2d9afc['push'](_0x2d9afc['shift']());}};_0x21a472(++_0xf239e3);}(a18_0xf239,0xc3));const a18_0x21a4=function(_0x2d9afc,_0xf239e3){_0x2d9afc=_0x2d9afc-0x0;let _0x21a472=a18_0xf239[_0x2d9afc];return _0x21a472;};const _0x5f530f=a18_0x21a4;'use strict';const attributes=require('./analyticFieldReport.attributes');module[_0x5f530f('0x0')]=function(_0x403017){const _0x327ada=_0x5f530f,_0xf57a36=_0x403017[_0x327ada('0x2')]('AnalyticFieldReport',attributes,{'tableName':_0x327ada('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0xf57a36;}; \ No newline at end of file +const a22_0x478e=['init','exports','./analyticFieldReport.attributes','AnalyticFieldReport'];(function(_0x1e3be5,_0x3e4b81){const _0x478e46=function(_0x397c90){while(--_0x397c90){_0x1e3be5['push'](_0x1e3be5['shift']());}};_0x478e46(++_0x3e4b81);}(a22_0x478e,0xa4));const a22_0x397c=function(_0x1e3be5,_0x3e4b81){_0x1e3be5=_0x1e3be5-0x18b;let _0x478e46=a22_0x478e[_0x1e3be5];return _0x478e46;};const a22_0x10ff84=a22_0x397c;'use strict';const {Model}=require('sequelize'),{attributes}=require(a22_0x10ff84(0x18d)),{options}=require('./analyticFieldReport.options');class AnalyticFieldReport extends Model{}function init(_0x3b9513,_0x1e5463){const _0x2bcc03=options(_0x3b9513),_0x283265=typeof _0x1e5463==='function'?_0x1e5463(_0x2bcc03):_0x2bcc03;return AnalyticFieldReport['init'](attributes,_0x283265),AnalyticFieldReport;}module[a22_0x10ff84(0x18c)][a22_0x10ff84(0x18e)]=AnalyticFieldReport,module[a22_0x10ff84(0x18c)][a22_0x10ff84(0x18b)]=init; \ No newline at end of file diff --git a/server/api/analyticFieldReport/analyticFieldReport.options.js b/server/api/analyticFieldReport/analyticFieldReport.options.js new file mode 100644 index 0000000..a5e3150 --- /dev/null +++ b/server/api/analyticFieldReport/analyticFieldReport.options.js @@ -0,0 +1 @@ +var a23_0x18ed=['exports','analytics_report_fields','options'];(function(_0x1cd9b9,_0x19c508){var _0x18ed63=function(_0x4341a7){while(--_0x4341a7){_0x1cd9b9['push'](_0x1cd9b9['shift']());}};_0x18ed63(++_0x19c508);}(a23_0x18ed,0x176));var a23_0x4341=function(_0x1cd9b9,_0x19c508){_0x1cd9b9=_0x1cd9b9-0x81;var _0x18ed63=a23_0x18ed[_0x1cd9b9];return _0x18ed63;};var a23_0x2481f1=a23_0x4341;function options(_0x50c2d3){var _0x2105aa=a23_0x4341;return{'sequelize':_0x50c2d3,'tableName':_0x2105aa(0x83),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a23_0x2481f1(0x82)][a23_0x2481f1(0x81)]=options; \ No newline at end of file diff --git a/server/api/analyticFieldReport/index.js b/server/api/analyticFieldReport/index.js index 1e43076..84973aa 100644 --- a/server/api/analyticFieldReport/index.js +++ b/server/api/analyticFieldReport/index.js @@ -1 +1 @@ -const a19_0x5e94=['../../components/auth/service','/destroy_many','index','exports','express','show','Router','post','./analyticFieldReport.controller','addFields','bulkDestroy','isAuthenticated','get','delete','create','/:id/create_many','destroy','/create_many','/:id','bulkCreate'];(function(_0x1a7b32,_0x5e9446){const _0xc8ae91=function(_0x138af4){while(--_0x138af4){_0x1a7b32['push'](_0x1a7b32['shift']());}};_0xc8ae91(++_0x5e9446);}(a19_0x5e94,0xc9));const a19_0xc8ae=function(_0x1a7b32,_0x5e9446){_0x1a7b32=_0x1a7b32-0x0;let _0xc8ae91=a19_0x5e94[_0x1a7b32];return _0xc8ae91;};const _0x4db1d1=a19_0xc8ae;'use strict';const express=require(_0x4db1d1('0x3')),router=express[_0x4db1d1('0x5')](),auth=require(_0x4db1d1('0x13')),controller=require(_0x4db1d1('0x7'));router['get']('/',auth['isAuthenticated'](),controller[_0x4db1d1('0x1')]),router[_0x4db1d1('0xb')](_0x4db1d1('0x11'),auth[_0x4db1d1('0xa')](),controller[_0x4db1d1('0x4')]),router[_0x4db1d1('0x6')]('/',auth['isAuthenticated'](),controller[_0x4db1d1('0xd')]),router[_0x4db1d1('0x6')](_0x4db1d1('0x10'),auth[_0x4db1d1('0xa')](),controller[_0x4db1d1('0x12')]),router[_0x4db1d1('0x6')](_0x4db1d1('0xe'),auth[_0x4db1d1('0xa')](),controller[_0x4db1d1('0x8')]),router['put'](_0x4db1d1('0x11'),auth[_0x4db1d1('0xa')](),controller['update']),router[_0x4db1d1('0xc')](_0x4db1d1('0x0'),auth['isAuthenticated'](),controller[_0x4db1d1('0x9')]),router['delete'](_0x4db1d1('0x11'),auth[_0x4db1d1('0xa')](),controller[_0x4db1d1('0xf')]),module[_0x4db1d1('0x2')]=router; \ No newline at end of file +const a24_0x4529=['show','index','post','Router','express','exports','/:id/create_many','bulkCreate','delete','bulkDestroy','/:id','isAuthenticated','put','get','create','destroy','/destroy_many'];(function(_0xc21b44,_0x48fea2){const _0x4529df=function(_0x3810e8){while(--_0x3810e8){_0xc21b44['push'](_0xc21b44['shift']());}};_0x4529df(++_0x48fea2);}(a24_0x4529,0x194));const a24_0x3810=function(_0xc21b44,_0x48fea2){_0xc21b44=_0xc21b44-0x1b1;let _0x4529df=a24_0x4529[_0xc21b44];return _0x4529df;};const a24_0x333238=a24_0x3810;'use strict';const express=require(a24_0x333238(0x1b9)),router=express[a24_0x333238(0x1b8)](),auth=require('../../components/auth/service'),controller=require('./analyticFieldReport.controller');router[a24_0x333238(0x1b1)]('/',auth['isAuthenticated'](),controller[a24_0x333238(0x1b6)]),router[a24_0x333238(0x1b1)]('/:id',auth[a24_0x333238(0x1c0)](),controller[a24_0x333238(0x1b5)]),router[a24_0x333238(0x1b7)]('/',auth[a24_0x333238(0x1c0)](),controller[a24_0x333238(0x1b2)]),router[a24_0x333238(0x1b7)]('/create_many',auth[a24_0x333238(0x1c0)](),controller[a24_0x333238(0x1bc)]),router['post'](a24_0x333238(0x1bb),auth[a24_0x333238(0x1c0)](),controller['addFields']),router[a24_0x333238(0x1c1)](a24_0x333238(0x1bf),auth[a24_0x333238(0x1c0)](),controller['update']),router[a24_0x333238(0x1bd)](a24_0x333238(0x1b4),auth[a24_0x333238(0x1c0)](),controller[a24_0x333238(0x1be)]),router[a24_0x333238(0x1bd)]('/:id',auth[a24_0x333238(0x1c0)](),controller[a24_0x333238(0x1b3)]),module[a24_0x333238(0x1ba)]=router; \ No newline at end of file diff --git a/server/api/analyticMetric/analyticMetric.attributes.js b/server/api/analyticMetric/analyticMetric.attributes.js index 7b9ee34..1b9c5e2 100644 --- a/server/api/analyticMetric/analyticMetric.attributes.js +++ b/server/api/analyticMetric/analyticMetric.attributes.js @@ -1 +1 @@ -const a20_0x3f40=['name','TEXT','STRING'];(function(_0x273fd4,_0x3f4062){const _0x3757b7=function(_0x4c21f0){while(--_0x4c21f0){_0x273fd4['push'](_0x273fd4['shift']());}};_0x3757b7(++_0x3f4062);}(a20_0x3f40,0x118));const a20_0x3757=function(_0x273fd4,_0x3f4062){_0x273fd4=_0x273fd4-0x0;let _0x3757b7=a20_0x3f40[_0x273fd4];return _0x3757b7;};const _0xfb277d=a20_0x3757;'use strict';const Sequelize=require('sequelize');module['exports']={'name':{'type':Sequelize[_0xfb277d('0x1')],'allowNull':![],'unique':_0xfb277d('0x2')},'table':{'type':Sequelize[_0xfb277d('0x1')]},'metric':{'type':Sequelize[_0xfb277d('0x0')]},'description':{'type':Sequelize[_0xfb277d('0x1')]}}; \ No newline at end of file +const a25_0x1c1e=['name','STRING','TEXT','attributes'];(function(_0x12c6c9,_0x513ad7){const _0x1c1ed7=function(_0x35003a){while(--_0x35003a){_0x12c6c9['push'](_0x12c6c9['shift']());}};_0x1c1ed7(++_0x513ad7);}(a25_0x1c1e,0x66));const a25_0x3500=function(_0x12c6c9,_0x513ad7){_0x12c6c9=_0x12c6c9-0x16f;let _0x1c1ed7=a25_0x1c1e[_0x12c6c9];return _0x1c1ed7;};const a25_0x1d3b5f=a25_0x3500;'use strict';const {DataTypes}=require('sequelize'),attributes={'name':{'type':DataTypes[a25_0x1d3b5f(0x172)],'allowNull':![],'unique':a25_0x1d3b5f(0x171)},'table':{'type':DataTypes[a25_0x1d3b5f(0x172)]},'metric':{'type':DataTypes[a25_0x1d3b5f(0x16f)]},'description':{'type':DataTypes['STRING']}};module['exports'][a25_0x1d3b5f(0x170)]=attributes; \ No newline at end of file diff --git a/server/api/analyticMetric/analyticMetric.controller.js b/server/api/analyticMetric/analyticMetric.controller.js index 728c9c3..1431eb0 100644 --- a/server/api/analyticMetric/analyticMetric.controller.js +++ b/server/api/analyticMetric/analyticMetric.controller.js @@ -1 +1 @@ -const a21_0x1551=['include','query','destroy','json','offset','attributes','catch','VIRTUAL','order','../../mysqldb','model','UserProfileSection','key','limit','options','name','UserProfileResource','sendStatus','fields','end','count','AnalyticMetric','body','length','../../config/logger','sort','show','map','stack','intersection','status','update','role','autoAssociation','keys','rawAttributes','set','nolimit','../../components/parsers/qs','send','create','then','undefined','Content-Range','findOne','params','merge','filter','api','filters','type','includeAll','fieldName','pick','user','error','where','Metrics'];(function(_0x1fba07,_0x15513f){const _0x3d8891=function(_0x1c348e){while(--_0x1c348e){_0x1fba07['push'](_0x1fba07['shift']());}};_0x3d8891(++_0x15513f);}(a21_0x1551,0xa8));const a21_0x3d88=function(_0x1fba07,_0x15513f){_0x1fba07=_0x1fba07-0x0;let _0x3d8891=a21_0x1551[_0x1fba07];return _0x3d8891;};const _0x3d52df=a21_0x3d88;'use strict';const _=require('lodash'),qs=require(_0x3d52df('0x2c')),logger=require(_0x3d52df('0x1e'))(_0x3d52df('0x36')),db=require(_0x3d52df('0xf'))['db'],{Op}=require('sequelize');function respondWithResult(_0x1c348e,_0xc718b3){return _0xc718b3=_0xc718b3||0xc8,function(_0x30614f){if(_0x30614f)return _0x1c348e['status'](_0xc718b3)['json'](_0x30614f);};}function respondWithFilteredResult(_0x57e6f4,_0x186d5c){return function(_0x299c63){const _0x43ca5b=a21_0x3d88;if(_0x299c63){const _0x36fe87=_0x299c63['count'],_0x5eff06=_0x186d5c['offset'];let _0x15f767=_0x186d5c[_0x43ca5b('0xa')]+_0x186d5c['limit'],_0x3de16c;return _0x15f767>=_0x36fe87?(_0x15f767=_0x36fe87,_0x3de16c=0xc8):_0x3de16c=0xce,_0x57e6f4['status'](_0x3de16c),_0x57e6f4[_0x43ca5b('0x2a')](_0x43ca5b('0x31'),_0x5eff06+'-'+_0x15f767+'/'+_0x36fe87)[_0x43ca5b('0x9')](_0x299c63);}return null;};}function saveUpdates(_0x1b3268){return function(_0x50eaeb){const _0x2f4324=a21_0x3d88;if(_0x50eaeb)return _0x50eaeb[_0x2f4324('0x25')](_0x1b3268)[_0x2f4324('0x2f')](function(_0x1dbb96){return _0x1dbb96;});return null;};}function removeEntity(_0x327ac5){return function(_0x416cf2){if(_0x416cf2)return _0x416cf2['destroy']()['then'](function(){const _0x36e088=a21_0x3d88,_0x544998=_0x416cf2['get']({'plain':!![]}),_0x15633e=_0x36e088('0x5');return db[_0x36e088('0x16')][_0x36e088('0x8')]({'where':{'type':_0x15633e,'resourceId':_0x544998['id']}})['then'](function(){return _0x416cf2;});})['then'](function(){const _0x4b9467=a21_0x3d88;_0x327ac5['status'](0xcc)[_0x4b9467('0x19')]();});};}function handleEntityNotFound(_0x27f1bf){return function(_0x405d5a){const _0x116876=a21_0x3d88;return!_0x405d5a&&_0x27f1bf[_0x116876('0x17')](0x194),_0x405d5a;};}function handleError(_0x1f00d3,_0x5d0026){return _0x5d0026=_0x5d0026||0x1f4,function(_0x9776e4){const _0x593e85=a21_0x3d88;logger[_0x593e85('0x3')](_0x9776e4[_0x593e85('0x22')]),_0x9776e4['name']&&delete _0x9776e4['name'],_0x1f00d3[_0x593e85('0x24')](_0x5d0026)[_0x593e85('0x2d')](_0x9776e4);};}exports['index']=function(_0x22cfa7,_0x5670a7){const _0x43bb53=_0x3d52df;let _0x585498={};const _0x34acc3={},_0x35b218={'count':0x0,'rows':[]},_0x298c1c=_[_0x43bb53('0x21')](db['AnalyticMetric'][_0x43bb53('0x29')],function(_0x363de2){const _0x1d8668=_0x43bb53;return{'name':_0x363de2[_0x1d8668('0x0')],'type':_0x363de2[_0x1d8668('0x38')][_0x1d8668('0x12')]};});_0x34acc3['model']=_['map'](_0x298c1c,_0x43bb53('0x15')),_0x34acc3['query']=_['keys'](_0x22cfa7[_0x43bb53('0x7')]),_0x34acc3['filters']=_[_0x43bb53('0x23')](_0x34acc3[_0x43bb53('0x10')],_0x34acc3[_0x43bb53('0x7')]),_0x585498[_0x43bb53('0xb')]=_['intersection'](_0x34acc3[_0x43bb53('0x10')],qs[_0x43bb53('0x18')](_0x22cfa7['query']['fields'])),_0x585498[_0x43bb53('0xb')]=_0x585498[_0x43bb53('0xb')][_0x43bb53('0x1d')]?_0x585498[_0x43bb53('0xb')]:_0x34acc3[_0x43bb53('0x10')];typeof _0x22cfa7[_0x43bb53('0x7')][_0x43bb53('0x2b')]===_0x43bb53('0x30')&&(_0x585498[_0x43bb53('0x13')]=qs[_0x43bb53('0x13')](_0x22cfa7[_0x43bb53('0x7')][_0x43bb53('0x13')]),_0x585498[_0x43bb53('0xa')]=qs[_0x43bb53('0xa')](_0x22cfa7[_0x43bb53('0x7')][_0x43bb53('0xa')]));_0x585498[_0x43bb53('0xe')]=qs[_0x43bb53('0x1f')](_0x22cfa7[_0x43bb53('0x7')]['sort']),_0x585498[_0x43bb53('0x4')]=qs['filters'](_[_0x43bb53('0x1')](_0x22cfa7['query'],_0x34acc3[_0x43bb53('0x37')]),_0x298c1c);_0x22cfa7[_0x43bb53('0x7')][_0x43bb53('0x35')]&&(_0x585498[_0x43bb53('0x4')]=_[_0x43bb53('0x34')](_0x585498[_0x43bb53('0x4')],{[Op['or']]:_[_0x43bb53('0x21')](_0x298c1c,function(_0x186a34){const _0x4ba93a=_0x43bb53;if(_0x186a34['type']!==_0x4ba93a('0xd')){const _0x28efe5={};return _0x28efe5[_0x186a34[_0x4ba93a('0x15')]]={[Op['like']]:'%'+_0x22cfa7[_0x4ba93a('0x7')]['filter']+'%'},_0x28efe5;}})}));_0x585498=_[_0x43bb53('0x34')]({},_0x585498,_0x22cfa7[_0x43bb53('0x14')]);const _0x395fb3={'where':_0x585498[_0x43bb53('0x4')]};return db[_0x43bb53('0x1b')][_0x43bb53('0x1a')](_0x395fb3)[_0x43bb53('0x2f')](function(_0x133078){const _0x21bd98=_0x43bb53;return _0x35b218[_0x21bd98('0x1a')]=_0x133078,_0x22cfa7[_0x21bd98('0x7')]['includeAll']&&(_0x585498[_0x21bd98('0x6')]=[{'all':!![]}]),db[_0x21bd98('0x1b')]['findAll'](_0x585498);})[_0x43bb53('0x2f')](function(_0x472da9){return _0x35b218['rows']=_0x472da9,_0x35b218;})[_0x43bb53('0x2f')](respondWithFilteredResult(_0x5670a7,_0x585498))[_0x43bb53('0xc')](handleError(_0x5670a7,null));},exports[_0x3d52df('0x20')]=function(_0x196386,_0x4cd928){const _0x2c4ce4=_0x3d52df;let _0x4082b4={'raw':!![],'where':{'id':_0x196386[_0x2c4ce4('0x33')]['id']}};const _0x403ef3={};return _0x403ef3[_0x2c4ce4('0x10')]=_[_0x2c4ce4('0x28')](db[_0x2c4ce4('0x1b')][_0x2c4ce4('0x29')]),_0x403ef3[_0x2c4ce4('0x7')]=_[_0x2c4ce4('0x28')](_0x196386[_0x2c4ce4('0x7')]),_0x403ef3['filters']=_[_0x2c4ce4('0x23')](_0x403ef3[_0x2c4ce4('0x10')],_0x403ef3['query']),_0x4082b4['attributes']=_['intersection'](_0x403ef3[_0x2c4ce4('0x10')],qs[_0x2c4ce4('0x18')](_0x196386[_0x2c4ce4('0x7')][_0x2c4ce4('0x18')])),_0x4082b4['attributes']=_0x4082b4[_0x2c4ce4('0xb')]['length']?_0x4082b4[_0x2c4ce4('0xb')]:_0x403ef3[_0x2c4ce4('0x10')],_0x196386[_0x2c4ce4('0x7')][_0x2c4ce4('0x39')]&&(_0x4082b4['include']=[{'all':!![]}]),_0x4082b4=_[_0x2c4ce4('0x34')]({},_0x4082b4,_0x196386[_0x2c4ce4('0x14')]),db['AnalyticMetric'][_0x2c4ce4('0x32')](_0x4082b4)[_0x2c4ce4('0x2f')](handleEntityNotFound(_0x4cd928,null))[_0x2c4ce4('0x2f')](respondWithResult(_0x4cd928,null))[_0x2c4ce4('0xc')](handleError(_0x4cd928,null));},exports['create']=function(_0x64370a,_0x12a50f){const _0x2d108b=_0x3d52df;return db['AnalyticMetric'][_0x2d108b('0x2e')](_0x64370a[_0x2d108b('0x1c')],{})[_0x2d108b('0x2f')](function(_0x424b20){const _0x40c761=_0x2d108b,_0xe6087d=_0x64370a[_0x40c761('0x2')]['get']({'plain':!![]});if(!_0xe6087d)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0xe6087d[_0x40c761('0x26')]===_0x40c761('0x2')){const _0x44c72a=_0x424b20['get']({'plain':!![]}),_0xa769c8=_0x40c761('0x5');return db[_0x40c761('0x11')][_0x40c761('0x32')]({'where':{'name':_0xa769c8,'userProfileId':_0xe6087d['userProfileId']},'raw':!![]})[_0x40c761('0x2f')](function(_0x3411ae){const _0x2ff84c=_0x40c761;return _0x3411ae&&_0x3411ae[_0x2ff84c('0x27')]===0x0?db[_0x2ff84c('0x16')][_0x2ff84c('0x2e')]({'name':_0x44c72a['name'],'resourceId':_0x44c72a['id'],'type':_0x3411ae[_0x2ff84c('0x15')],'sectionId':_0x3411ae['id']},{})[_0x2ff84c('0x2f')](function(){return _0x424b20;}):_0x424b20;})[_0x40c761('0xc')](function(_0xf75457){logger['error']('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0xf75457);throw _0xf75457;});}return _0x424b20;})['then'](respondWithResult(_0x12a50f,0xc9))['catch'](handleError(_0x12a50f,null));},exports['update']=function(_0x261b73,_0x3da875){const _0x1e4b1e=_0x3d52df;return _0x261b73[_0x1e4b1e('0x1c')]['id']&&delete _0x261b73[_0x1e4b1e('0x1c')]['id'],db[_0x1e4b1e('0x1b')][_0x1e4b1e('0x32')]({'where':{'id':_0x261b73[_0x1e4b1e('0x33')]['id']}})['then'](handleEntityNotFound(_0x3da875,null))['then'](saveUpdates(_0x261b73['body'],null))['then'](respondWithResult(_0x3da875,null))['catch'](handleError(_0x3da875,null));},exports[_0x3d52df('0x8')]=function(_0x457cb5,_0x590cb1){const _0x7614ab=_0x3d52df;return db['AnalyticMetric']['findOne']({'where':{'id':_0x457cb5['params']['id']}})[_0x7614ab('0x2f')](handleEntityNotFound(_0x590cb1,null))['then'](removeEntity(_0x590cb1,null))['catch'](handleError(_0x590cb1,null));}; \ No newline at end of file +const a26_0xd926=['set','catch','api','stack','destroy','AnalyticMetric','UserProfileSection','attributes','length','role','create','index','params','where','findOne','userProfileId','merge','autoAssociation','body','undefined','fieldName','error','order','Unable\x20to\x20retrieve\x20the\x20current\x20user','../../mysqldb','rawAttributes','offset','include','model','name','then','VIRTUAL','filters','get','send','sequelize','query','key','count','user','status','Metrics','keys','includeAll','filter','sendStatus','limit','options','map','../../components/parsers/qs','update','json','like','sort','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','nolimit','pick','../../config/logger','fields','intersection','UserProfileResource','rows'];(function(_0x53d547,_0x5df8f7){const _0xd92637=function(_0x4129eb){while(--_0x4129eb){_0x53d547['push'](_0x53d547['shift']());}};_0xd92637(++_0x5df8f7);}(a26_0xd926,0xe7));const a26_0x4129=function(_0x53d547,_0x5df8f7){_0x53d547=_0x53d547-0x9b;let _0xd92637=a26_0xd926[_0x53d547];return _0xd92637;};const a26_0x3576c8=a26_0x4129;'use strict';const _=require('lodash'),qs=require(a26_0x3576c8(0x9f)),logger=require(a26_0x3576c8(0xa7))(a26_0x3576c8(0xae)),{db}=require(a26_0x3576c8(0xc4)),{Op}=require(a26_0x3576c8(0xcf));function respondWithResult(_0x2f7d43,_0x7adeda){return _0x7adeda=_0x7adeda||0xc8,function(_0x3bbb9e){const _0x5ade36=a26_0x4129;if(_0x3bbb9e)return _0x2f7d43[_0x5ade36(0xd4)](_0x7adeda)[_0x5ade36(0xa1)](_0x3bbb9e);};}function respondWithFilteredResult(_0x120dc2,_0x3f4761){return function(_0x48a416){const _0x177aea=a26_0x4129;if(_0x48a416){const _0x37a32e=_0x48a416['count'],_0xe8f105=_0x3f4761[_0x177aea(0xc6)];let _0x256e3c=_0x3f4761[_0x177aea(0xc6)]+_0x3f4761['limit'],_0x1cb996;return _0x256e3c>=_0x37a32e?(_0x256e3c=_0x37a32e,_0x1cb996=0xc8):_0x1cb996=0xce,_0x120dc2['status'](_0x1cb996),_0x120dc2[_0x177aea(0xac)]('Content-Range',_0xe8f105+'-'+_0x256e3c+'/'+_0x37a32e)['json'](_0x48a416);}return null;};}function saveUpdates(_0xa317db){return function(_0x4d7374){const _0x838872=a26_0x4129;if(_0x4d7374)return _0x4d7374[_0x838872(0xa0)](_0xa317db)[_0x838872(0xca)](function(_0x2540eb){return _0x2540eb;});return null;};}function removeEntity(_0x1c03c7){return function(_0xbb553a){const _0x27f5fe=a26_0x4129;if(_0xbb553a)return _0xbb553a[_0x27f5fe(0xb0)]()[_0x27f5fe(0xca)](function(){const _0x8ef0b=_0x27f5fe,_0x3d021b=_0xbb553a[_0x8ef0b(0xcd)]({'plain':!![]}),_0x4685a8=_0x8ef0b(0xd5);return db[_0x8ef0b(0xaa)][_0x8ef0b(0xb0)]({'where':{'type':_0x4685a8,'resourceId':_0x3d021b['id']}})[_0x8ef0b(0xca)](function(){return _0xbb553a;});})[_0x27f5fe(0xca)](function(){const _0x2f34d7=_0x27f5fe;_0x1c03c7[_0x2f34d7(0xd4)](0xcc)['end']();});};}function handleEntityNotFound(_0x3220a0){return function(_0x2d22e5){const _0x17a080=a26_0x4129;return!_0x2d22e5&&_0x3220a0[_0x17a080(0x9b)](0x194),_0x2d22e5;};}function handleError(_0x512d2b,_0x4b3297){return _0x4b3297=_0x4b3297||0x1f4,function(_0x36dd58){const _0x29651e=a26_0x4129;logger[_0x29651e(0xc1)](_0x36dd58[_0x29651e(0xaf)]),_0x36dd58['name']&&delete _0x36dd58[_0x29651e(0xc9)],_0x512d2b['status'](_0x4b3297)[_0x29651e(0xce)](_0x36dd58);};}exports[a26_0x3576c8(0xb7)]=function(_0x8282f4,_0x402f93){const _0xadf0cc=a26_0x3576c8;let _0x3e64ec={};const _0x140f5b={},_0x18fcc8={'count':0x0,'rows':[]},_0x2a39b3=_[_0xadf0cc(0x9e)](db[_0xadf0cc(0xb1)]['rawAttributes'],function(_0xa3619c){const _0x1d0462=_0xadf0cc;return{'name':_0xa3619c[_0x1d0462(0xc0)],'type':_0xa3619c['type'][_0x1d0462(0xd1)]};});_0x140f5b['model']=_[_0xadf0cc(0x9e)](_0x2a39b3,_0xadf0cc(0xc9)),_0x140f5b[_0xadf0cc(0xd0)]=_[_0xadf0cc(0xd6)](_0x8282f4[_0xadf0cc(0xd0)]),_0x140f5b[_0xadf0cc(0xcc)]=_['intersection'](_0x140f5b[_0xadf0cc(0xc8)],_0x140f5b[_0xadf0cc(0xd0)]),_0x3e64ec[_0xadf0cc(0xb3)]=_[_0xadf0cc(0xa9)](_0x140f5b[_0xadf0cc(0xc8)],qs[_0xadf0cc(0xa8)](_0x8282f4[_0xadf0cc(0xd0)][_0xadf0cc(0xa8)])),_0x3e64ec['attributes']=_0x3e64ec[_0xadf0cc(0xb3)]['length']?_0x3e64ec['attributes']:_0x140f5b['model'];typeof _0x8282f4[_0xadf0cc(0xd0)][_0xadf0cc(0xa5)]===_0xadf0cc(0xbf)&&(_0x3e64ec[_0xadf0cc(0x9c)]=qs[_0xadf0cc(0x9c)](_0x8282f4[_0xadf0cc(0xd0)][_0xadf0cc(0x9c)]),_0x3e64ec[_0xadf0cc(0xc6)]=qs['offset'](_0x8282f4['query'][_0xadf0cc(0xc6)]));_0x3e64ec[_0xadf0cc(0xc2)]=qs[_0xadf0cc(0xa3)](_0x8282f4[_0xadf0cc(0xd0)][_0xadf0cc(0xa3)]),_0x3e64ec['where']=qs[_0xadf0cc(0xcc)](_[_0xadf0cc(0xa6)](_0x8282f4['query'],_0x140f5b['filters']),_0x2a39b3);_0x8282f4[_0xadf0cc(0xd0)][_0xadf0cc(0xd8)]&&(_0x3e64ec['where']=_[_0xadf0cc(0xbc)](_0x3e64ec[_0xadf0cc(0xb9)],{[Op['or']]:_[_0xadf0cc(0x9e)](_0x2a39b3,function(_0x14ad22){const _0x3b9485=_0xadf0cc;if(_0x14ad22['type']!==_0x3b9485(0xcb)){const _0x505269={};return _0x505269[_0x14ad22[_0x3b9485(0xc9)]]={[Op[_0x3b9485(0xa2)]]:'%'+_0x8282f4[_0x3b9485(0xd0)]['filter']+'%'},_0x505269;}})}));_0x3e64ec=_['merge']({},_0x3e64ec,_0x8282f4[_0xadf0cc(0x9d)]);const _0x2a08e5={'where':_0x3e64ec[_0xadf0cc(0xb9)]};return db[_0xadf0cc(0xb1)][_0xadf0cc(0xd2)](_0x2a08e5)[_0xadf0cc(0xca)](function(_0x112f8c){const _0x41324c=_0xadf0cc;return _0x18fcc8[_0x41324c(0xd2)]=_0x112f8c,_0x8282f4[_0x41324c(0xd0)][_0x41324c(0xd7)]&&(_0x3e64ec[_0x41324c(0xc7)]=[{'all':!![]}]),db[_0x41324c(0xb1)]['findAll'](_0x3e64ec);})['then'](function(_0x1989ae){const _0x171fad=_0xadf0cc;return _0x18fcc8[_0x171fad(0xab)]=_0x1989ae,_0x18fcc8;})['then'](respondWithFilteredResult(_0x402f93,_0x3e64ec))['catch'](handleError(_0x402f93,null));},exports['show']=function(_0x540525,_0x302fca){const _0x74a15b=a26_0x3576c8;let _0x4e4018={'raw':!![],'where':{'id':_0x540525[_0x74a15b(0xb8)]['id']}};const _0x6210f2={};return _0x6210f2[_0x74a15b(0xc8)]=_[_0x74a15b(0xd6)](db[_0x74a15b(0xb1)][_0x74a15b(0xc5)]),_0x6210f2[_0x74a15b(0xd0)]=_[_0x74a15b(0xd6)](_0x540525[_0x74a15b(0xd0)]),_0x6210f2[_0x74a15b(0xcc)]=_[_0x74a15b(0xa9)](_0x6210f2['model'],_0x6210f2['query']),_0x4e4018[_0x74a15b(0xb3)]=_[_0x74a15b(0xa9)](_0x6210f2[_0x74a15b(0xc8)],qs[_0x74a15b(0xa8)](_0x540525['query'][_0x74a15b(0xa8)])),_0x4e4018[_0x74a15b(0xb3)]=_0x4e4018[_0x74a15b(0xb3)][_0x74a15b(0xb4)]?_0x4e4018[_0x74a15b(0xb3)]:_0x6210f2[_0x74a15b(0xc8)],_0x540525[_0x74a15b(0xd0)]['includeAll']&&(_0x4e4018[_0x74a15b(0xc7)]=[{'all':!![]}]),_0x4e4018=_[_0x74a15b(0xbc)]({},_0x4e4018,_0x540525[_0x74a15b(0x9d)]),db[_0x74a15b(0xb1)][_0x74a15b(0xba)](_0x4e4018)[_0x74a15b(0xca)](handleEntityNotFound(_0x302fca,null))[_0x74a15b(0xca)](respondWithResult(_0x302fca,null))[_0x74a15b(0xad)](handleError(_0x302fca,null));},exports[a26_0x3576c8(0xb6)]=function(_0x1dce36,_0x45a8ff){const _0x21ad01=a26_0x3576c8;return db[_0x21ad01(0xb1)]['create'](_0x1dce36[_0x21ad01(0xbe)],{})['then'](function(_0x4f8c37){const _0x5982ea=_0x21ad01,_0xdacd35=_0x1dce36['user'][_0x5982ea(0xcd)]({'plain':!![]});if(!_0xdacd35)throw new Error(_0x5982ea(0xc3));if(_0xdacd35[_0x5982ea(0xb5)]===_0x5982ea(0xd3)){const _0x4ef4cb=_0x4f8c37[_0x5982ea(0xcd)]({'plain':!![]}),_0x11c6aa='Metrics';return db[_0x5982ea(0xb2)][_0x5982ea(0xba)]({'where':{'name':_0x11c6aa,'userProfileId':_0xdacd35[_0x5982ea(0xbb)]},'raw':!![]})['then'](function(_0x4fa7f0){const _0x33f895=_0x5982ea;return _0x4fa7f0&&_0x4fa7f0[_0x33f895(0xbd)]===0x0?db[_0x33f895(0xaa)][_0x33f895(0xb6)]({'name':_0x4ef4cb[_0x33f895(0xc9)],'resourceId':_0x4ef4cb['id'],'type':_0x4fa7f0[_0x33f895(0xc9)],'sectionId':_0x4fa7f0['id']},{})['then'](function(){return _0x4f8c37;}):_0x4f8c37;})[_0x5982ea(0xad)](function(_0xfa7ec6){const _0x357761=_0x5982ea;logger['error'](_0x357761(0xa4),_0xfa7ec6);throw _0xfa7ec6;});}return _0x4f8c37;})[_0x21ad01(0xca)](respondWithResult(_0x45a8ff,0xc9))['catch'](handleError(_0x45a8ff,null));},exports['update']=function(_0xdcea0b,_0x2789cd){const _0x1f4054=a26_0x3576c8;return _0xdcea0b[_0x1f4054(0xbe)]['id']&&delete _0xdcea0b[_0x1f4054(0xbe)]['id'],db['AnalyticMetric'][_0x1f4054(0xba)]({'where':{'id':_0xdcea0b[_0x1f4054(0xb8)]['id']}})[_0x1f4054(0xca)](handleEntityNotFound(_0x2789cd,null))[_0x1f4054(0xca)](saveUpdates(_0xdcea0b[_0x1f4054(0xbe)],null))['then'](respondWithResult(_0x2789cd,null))[_0x1f4054(0xad)](handleError(_0x2789cd,null));},exports['destroy']=function(_0x1f3a23,_0x155fdc){const _0x15e956=a26_0x3576c8;return db[_0x15e956(0xb1)][_0x15e956(0xba)]({'where':{'id':_0x1f3a23[_0x15e956(0xb8)]['id']}})[_0x15e956(0xca)](handleEntityNotFound(_0x155fdc,null))[_0x15e956(0xca)](removeEntity(_0x155fdc,null))['catch'](handleError(_0x155fdc,null));}; \ No newline at end of file diff --git a/server/api/analyticMetric/analyticMetric.model.js b/server/api/analyticMetric/analyticMetric.model.js index 9340d27..2eb46bc 100644 --- a/server/api/analyticMetric/analyticMetric.model.js +++ b/server/api/analyticMetric/analyticMetric.model.js @@ -1 +1 @@ -const a22_0xe828=['define','./analyticMetric.attributes','exports','AnalyticMetric','analytics_metrics'];(function(_0x24354c,_0xe828a9){const _0xead133=function(_0x44df8b){while(--_0x44df8b){_0x24354c['push'](_0x24354c['shift']());}};_0xead133(++_0xe828a9);}(a22_0xe828,0xa2));const a22_0xead1=function(_0x24354c,_0xe828a9){_0x24354c=_0x24354c-0x0;let _0xead133=a22_0xe828[_0x24354c];return _0xead133;};const _0x4cf7e2=a22_0xead1;'use strict';const attributes=require(_0x4cf7e2('0x4'));module[_0x4cf7e2('0x0')]=function(_0x44df8b){const _0x5a69d8=_0x4cf7e2,_0x4758fb=_0x44df8b[_0x5a69d8('0x3')](_0x5a69d8('0x1'),attributes,{'tableName':_0x5a69d8('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x4758fb;}; \ No newline at end of file +const a27_0x1fd5=['sequelize','init','./analyticMetric.options','./analyticMetric.attributes','exports','AnalyticMetric'];(function(_0x168804,_0x396eaa){const _0x1fd598=function(_0x268fd0){while(--_0x268fd0){_0x168804['push'](_0x168804['shift']());}};_0x1fd598(++_0x396eaa);}(a27_0x1fd5,0xd9));const a27_0x268f=function(_0x168804,_0x396eaa){_0x168804=_0x168804-0x16f;let _0x1fd598=a27_0x1fd5[_0x168804];return _0x1fd598;};const a27_0x5f2949=a27_0x268f;'use strict';const {Model}=require(a27_0x5f2949(0x174)),{attributes}=require(a27_0x5f2949(0x171)),{options}=require(a27_0x5f2949(0x170));class AnalyticMetric extends Model{}function init(_0x1cc90a,_0x29964b){const _0x74bfc=a27_0x5f2949,_0x5e8d37=options(_0x1cc90a),_0x25df53=typeof _0x29964b==='function'?_0x29964b(_0x5e8d37):_0x5e8d37;return AnalyticMetric[_0x74bfc(0x16f)](attributes,_0x25df53),AnalyticMetric;}module[a27_0x5f2949(0x172)][a27_0x5f2949(0x173)]=AnalyticMetric,module['exports'][a27_0x5f2949(0x16f)]=init; \ No newline at end of file diff --git a/server/api/analyticMetric/analyticMetric.options.js b/server/api/analyticMetric/analyticMetric.options.js new file mode 100644 index 0000000..e310331 --- /dev/null +++ b/server/api/analyticMetric/analyticMetric.options.js @@ -0,0 +1 @@ +var a28_0x3b6b=['options','analytics_metrics','exports'];(function(_0x5a3120,_0x5db005){var _0x3b6b84=function(_0x3bfdf3){while(--_0x3bfdf3){_0x5a3120['push'](_0x5a3120['shift']());}};_0x3b6b84(++_0x5db005);}(a28_0x3b6b,0xce));var a28_0x3bfd=function(_0x5a3120,_0x5db005){_0x5a3120=_0x5a3120-0x1a5;var _0x3b6b84=a28_0x3b6b[_0x5a3120];return _0x3b6b84;};var a28_0x3da3db=a28_0x3bfd;function options(_0x490fd1){var _0x6128b4=a28_0x3bfd;return{'sequelize':_0x490fd1,'tableName':_0x6128b4(0x1a7),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a28_0x3da3db(0x1a5)][a28_0x3da3db(0x1a6)]=options; \ No newline at end of file diff --git a/server/api/analyticMetric/index.js b/server/api/analyticMetric/index.js index 3eae6a5..5cbce05 100644 --- a/server/api/analyticMetric/index.js +++ b/server/api/analyticMetric/index.js @@ -1 +1 @@ -const a23_0x2035=['post','exports','../../components/auth/service','create','update','delete','get','Router','./analyticMetric.controller','destroy','/:id','isAuthenticated'];(function(_0x47d167,_0x2035b7){const _0x4661e7=function(_0x54daa0){while(--_0x54daa0){_0x47d167['push'](_0x47d167['shift']());}};_0x4661e7(++_0x2035b7);}(a23_0x2035,0x1a3));const a23_0x4661=function(_0x47d167,_0x2035b7){_0x47d167=_0x47d167-0x0;let _0x4661e7=a23_0x2035[_0x47d167];return _0x4661e7;};const _0x49de56=a23_0x4661;'use strict';const express=require('express'),router=express[_0x49de56('0x8')](),auth=require(_0x49de56('0x3')),controller=require(_0x49de56('0x9'));router['get']('/',auth['isAuthenticated'](),controller['index']),router[_0x49de56('0x7')]('/:id',auth['isAuthenticated'](),controller['show']),router[_0x49de56('0x1')]('/',auth['isAuthenticated'](),controller[_0x49de56('0x4')]),router['put'](_0x49de56('0xb'),auth[_0x49de56('0x0')](),controller[_0x49de56('0x5')]),router[_0x49de56('0x6')]('/:id',auth['isAuthenticated'](),controller[_0x49de56('0xa')]),module[_0x49de56('0x2')]=router; \ No newline at end of file +const a29_0xde1f=['/:id','show','./analyticMetric.controller','index','delete','isAuthenticated','create','exports','express','destroy','post','Router','update','../../components/auth/service'];(function(_0x1f229c,_0x2f2c30){const _0xde1f34=function(_0x30f75b){while(--_0x30f75b){_0x1f229c['push'](_0x1f229c['shift']());}};_0xde1f34(++_0x2f2c30);}(a29_0xde1f,0x165));const a29_0x30f7=function(_0x1f229c,_0x2f2c30){_0x1f229c=_0x1f229c-0x149;let _0xde1f34=a29_0xde1f[_0x1f229c];return _0xde1f34;};const a29_0x3fa931=a29_0x30f7;'use strict';const express=require(a29_0x3fa931(0x14a)),router=express[a29_0x3fa931(0x14d)](),auth=require(a29_0x3fa931(0x14f)),controller=require(a29_0x3fa931(0x152));router['get']('/',auth[a29_0x3fa931(0x155)](),controller[a29_0x3fa931(0x153)]),router['get'](a29_0x3fa931(0x150),auth[a29_0x3fa931(0x155)](),controller[a29_0x3fa931(0x151)]),router[a29_0x3fa931(0x14c)]('/',auth['isAuthenticated'](),controller[a29_0x3fa931(0x156)]),router['put'](a29_0x3fa931(0x150),auth[a29_0x3fa931(0x155)](),controller[a29_0x3fa931(0x14e)]),router[a29_0x3fa931(0x154)](a29_0x3fa931(0x150),auth[a29_0x3fa931(0x155)](),controller[a29_0x3fa931(0x14b)]),module[a29_0x3fa931(0x149)]=router; \ No newline at end of file diff --git a/server/api/analyticTreeReport/analyticTreeReport.attributes.js b/server/api/analyticTreeReport/analyticTreeReport.attributes.js index 0ae9ef8..440a063 100644 --- a/server/api/analyticTreeReport/analyticTreeReport.attributes.js +++ b/server/api/analyticTreeReport/analyticTreeReport.attributes.js @@ -1 +1 @@ -const a24_0x5acd=['sequelize'];(function(_0x2826ad,_0x5acdc9){const _0xc6933e=function(_0x9258f9){while(--_0x9258f9){_0x2826ad['push'](_0x2826ad['shift']());}};_0xc6933e(++_0x5acdc9);}(a24_0x5acd,0x13d));const a24_0xc693=function(_0x2826ad,_0x5acdc9){_0x2826ad=_0x2826ad-0x0;let _0xc6933e=a24_0x5acd[_0x2826ad];return _0xc6933e;};const _0x43600b=a24_0xc693;'use strict';const Sequelize=require(_0x43600b('0x0'));module['exports']={'tree':{'type':Sequelize['TEXT'],'allowNull':![]}}; \ No newline at end of file +const a30_0x5633=['exports','attributes','TEXT','sequelize'];(function(_0x3aad9b,_0x2f8f17){const _0x5633d8=function(_0x4a76de){while(--_0x4a76de){_0x3aad9b['push'](_0x3aad9b['shift']());}};_0x5633d8(++_0x2f8f17);}(a30_0x5633,0x66));const a30_0x4a76=function(_0x3aad9b,_0x2f8f17){_0x3aad9b=_0x3aad9b-0x16d;let _0x5633d8=a30_0x5633[_0x3aad9b];return _0x5633d8;};const a30_0x7d47b9=a30_0x4a76;'use strict';const {DataTypes}=require(a30_0x7d47b9(0x16e)),attributes={'tree':{'type':DataTypes[a30_0x7d47b9(0x16d)],'allowNull':![]}};module[a30_0x7d47b9(0x16f)][a30_0x7d47b9(0x170)]=attributes; \ No newline at end of file diff --git a/server/api/analyticTreeReport/analyticTreeReport.controller.js b/server/api/analyticTreeReport/analyticTreeReport.controller.js index b68b0d6..8d0160e 100644 --- a/server/api/analyticTreeReport/analyticTreeReport.controller.js +++ b/server/api/analyticTreeReport/analyticTreeReport.controller.js @@ -1 +1 @@ -const a25_0x3176=['findOne','sequelize','../../mysqldb','set','update','api','filters','fields','name','include','show','create','nolimit','like','query','rows','sort','../../config/logger','send','options','undefined','params','Content-Range','catch','VIRTUAL','offset','filter','rawAttributes','merge','findAll','then','map','type','sendStatus','lodash','AnalyticTreeReport','intersection','model','keys','limit','end','count','fieldName','length','status','body','key','includeAll','where','attributes','json'];(function(_0x249b76,_0x3176e7){const _0x249e20=function(_0x15749a){while(--_0x15749a){_0x249b76['push'](_0x249b76['shift']());}};_0x249e20(++_0x3176e7);}(a25_0x3176,0xdb));const a25_0x249e=function(_0x249b76,_0x3176e7){_0x249b76=_0x249b76-0x0;let _0x249e20=a25_0x3176[_0x249b76];return _0x249e20;};const _0x41c7f6=a25_0x249e;'use strict';const _=require(_0x41c7f6('0x13')),qs=require('../../components/parsers/qs'),logger=require(_0x41c7f6('0x2'))(_0x41c7f6('0x29')),db=require(_0x41c7f6('0x26'))['db'],{Op}=require(_0x41c7f6('0x25'));function respondWithResult(_0x15749a,_0x10c5dc){return _0x10c5dc=_0x10c5dc||0xc8,function(_0x1a2665){const _0xfe0a2c=a25_0x249e;if(_0x1a2665)return _0x15749a[_0xfe0a2c('0x1d')](_0x10c5dc)[_0xfe0a2c('0x23')](_0x1a2665);};}function respondWithFilteredResult(_0x3786cc,_0x36701c){return function(_0x3697ea){const _0x3eee4f=a25_0x249e;if(_0x3697ea){const _0x52ca0a=_0x3697ea[_0x3eee4f('0x1a')],_0x238f5d=_0x36701c['offset'];let _0x2c4e4c=_0x36701c['offset']+_0x36701c['limit'],_0x46d43b;return _0x2c4e4c>=_0x52ca0a?(_0x2c4e4c=_0x52ca0a,_0x46d43b=0xc8):_0x46d43b=0xce,_0x3786cc[_0x3eee4f('0x1d')](_0x46d43b),_0x3786cc[_0x3eee4f('0x27')](_0x3eee4f('0x7'),_0x238f5d+'-'+_0x2c4e4c+'/'+_0x52ca0a)[_0x3eee4f('0x23')](_0x3697ea);}return null;};}function saveUpdates(_0x29484b){return function(_0x16e398){const _0x10d3b4=a25_0x249e;if(_0x16e398)return _0x16e398[_0x10d3b4('0x28')](_0x29484b)[_0x10d3b4('0xf')](function(_0x336607){return _0x336607;});return null;};}function removeEntity(_0x5c3083){return function(_0x1cbabb){if(_0x1cbabb)return _0x1cbabb['destroy']()['then'](function(){const _0x23ec85=a25_0x249e;_0x5c3083[_0x23ec85('0x1d')](0xcc)[_0x23ec85('0x19')]();});};}function handleEntityNotFound(_0x584fba){return function(_0x123c11){const _0xca6a75=a25_0x249e;return!_0x123c11&&_0x584fba[_0xca6a75('0x12')](0x194),_0x123c11;};}function handleError(_0x3783a3,_0x25d2d4){return _0x25d2d4=_0x25d2d4||0x1f4,function(_0x318551){const _0x16a4a7=a25_0x249e;logger['error'](_0x318551['stack']),_0x318551[_0x16a4a7('0x2c')]&&delete _0x318551[_0x16a4a7('0x2c')],_0x3783a3[_0x16a4a7('0x1d')](_0x25d2d4)[_0x16a4a7('0x3')](_0x318551);};}exports['index']=function(_0x4be2e8,_0x34ae37){const _0x189a79=_0x41c7f6;let _0x46f524={};const _0x202ca8={},_0x806995={'count':0x0,'rows':[]},_0x52167e=_['map'](db[_0x189a79('0x14')][_0x189a79('0xc')],function(_0x9e467a){const _0xfea7ea=_0x189a79;return{'name':_0x9e467a[_0xfea7ea('0x1b')],'type':_0x9e467a[_0xfea7ea('0x11')][_0xfea7ea('0x1f')]};});_0x202ca8[_0x189a79('0x16')]=_[_0x189a79('0x10')](_0x52167e,_0x189a79('0x2c')),_0x202ca8[_0x189a79('0x32')]=_[_0x189a79('0x17')](_0x4be2e8['query']),_0x202ca8[_0x189a79('0x2a')]=_[_0x189a79('0x15')](_0x202ca8['model'],_0x202ca8[_0x189a79('0x32')]),_0x46f524[_0x189a79('0x22')]=_[_0x189a79('0x15')](_0x202ca8[_0x189a79('0x16')],qs[_0x189a79('0x2b')](_0x4be2e8[_0x189a79('0x32')]['fields'])),_0x46f524[_0x189a79('0x22')]=_0x46f524[_0x189a79('0x22')][_0x189a79('0x1c')]?_0x46f524[_0x189a79('0x22')]:_0x202ca8[_0x189a79('0x16')];typeof _0x4be2e8['query'][_0x189a79('0x30')]===_0x189a79('0x5')&&(_0x46f524[_0x189a79('0x18')]=qs['limit'](_0x4be2e8[_0x189a79('0x32')]['limit']),_0x46f524[_0x189a79('0xa')]=qs[_0x189a79('0xa')](_0x4be2e8['query'][_0x189a79('0xa')]));_0x46f524['order']=qs[_0x189a79('0x1')](_0x4be2e8[_0x189a79('0x32')][_0x189a79('0x1')]),_0x46f524[_0x189a79('0x21')]=qs[_0x189a79('0x2a')](_['pick'](_0x4be2e8[_0x189a79('0x32')],_0x202ca8[_0x189a79('0x2a')]),_0x52167e);_0x4be2e8['query'][_0x189a79('0xb')]&&(_0x46f524[_0x189a79('0x21')]=_[_0x189a79('0xd')](_0x46f524[_0x189a79('0x21')],{[Op['or']]:_[_0x189a79('0x10')](_0x52167e,function(_0x448f9a){const _0x3de9cb=_0x189a79;if(_0x448f9a['type']!==_0x3de9cb('0x9')){const _0x95ce42={};return _0x95ce42[_0x448f9a[_0x3de9cb('0x2c')]]={[Op[_0x3de9cb('0x31')]]:'%'+_0x4be2e8['query'][_0x3de9cb('0xb')]+'%'},_0x95ce42;}})}));_0x46f524=_[_0x189a79('0xd')]({},_0x46f524,_0x4be2e8[_0x189a79('0x4')]);const _0x274b97={'where':_0x46f524['where']};return db['AnalyticTreeReport'][_0x189a79('0x1a')](_0x274b97)[_0x189a79('0xf')](function(_0x2d5659){const _0x25b09b=_0x189a79;return _0x806995[_0x25b09b('0x1a')]=_0x2d5659,_0x4be2e8[_0x25b09b('0x32')][_0x25b09b('0x20')]&&(_0x46f524[_0x25b09b('0x2d')]=[{'all':!![]}]),db[_0x25b09b('0x14')][_0x25b09b('0xe')](_0x46f524);})[_0x189a79('0xf')](function(_0x1461d4){const _0x2f2a73=_0x189a79;return _0x806995[_0x2f2a73('0x0')]=_0x1461d4,_0x806995;})['then'](respondWithFilteredResult(_0x34ae37,_0x46f524))[_0x189a79('0x8')](handleError(_0x34ae37,null));},exports[_0x41c7f6('0x2e')]=function(_0x8d832d,_0x281b63){const _0x2251a4=_0x41c7f6;let _0x28294f={'raw':!![],'where':{'id':_0x8d832d[_0x2251a4('0x6')]['id']}};const _0x113d77={};return _0x113d77[_0x2251a4('0x16')]=_[_0x2251a4('0x17')](db[_0x2251a4('0x14')]['rawAttributes']),_0x113d77[_0x2251a4('0x32')]=_[_0x2251a4('0x17')](_0x8d832d[_0x2251a4('0x32')]),_0x113d77[_0x2251a4('0x2a')]=_[_0x2251a4('0x15')](_0x113d77['model'],_0x113d77[_0x2251a4('0x32')]),_0x28294f[_0x2251a4('0x22')]=_[_0x2251a4('0x15')](_0x113d77[_0x2251a4('0x16')],qs[_0x2251a4('0x2b')](_0x8d832d[_0x2251a4('0x32')][_0x2251a4('0x2b')])),_0x28294f[_0x2251a4('0x22')]=_0x28294f[_0x2251a4('0x22')][_0x2251a4('0x1c')]?_0x28294f[_0x2251a4('0x22')]:_0x113d77[_0x2251a4('0x16')],_0x8d832d[_0x2251a4('0x32')][_0x2251a4('0x20')]&&(_0x28294f['include']=[{'all':!![]}]),_0x28294f=_[_0x2251a4('0xd')]({},_0x28294f,_0x8d832d[_0x2251a4('0x4')]),db['AnalyticTreeReport'][_0x2251a4('0x24')](_0x28294f)[_0x2251a4('0xf')](handleEntityNotFound(_0x281b63,null))['then'](respondWithResult(_0x281b63,null))['catch'](handleError(_0x281b63,null));},exports[_0x41c7f6('0x2f')]=function(_0x58e6de,_0x113dd9){const _0xa2da7e=_0x41c7f6;return db[_0xa2da7e('0x14')]['create'](_0x58e6de[_0xa2da7e('0x1e')],{})[_0xa2da7e('0xf')](respondWithResult(_0x113dd9,0xc9))[_0xa2da7e('0x8')](handleError(_0x113dd9,null));},exports['update']=function(_0x2c256d,_0xb82a26){const _0x396c51=_0x41c7f6;return _0x2c256d[_0x396c51('0x1e')]['id']&&delete _0x2c256d[_0x396c51('0x1e')]['id'],db[_0x396c51('0x14')][_0x396c51('0x24')]({'where':{'id':_0x2c256d[_0x396c51('0x6')]['id']}})['then'](handleEntityNotFound(_0xb82a26,null))['then'](saveUpdates(_0x2c256d[_0x396c51('0x1e')],null))[_0x396c51('0xf')](respondWithResult(_0xb82a26,null))['catch'](handleError(_0xb82a26,null));},exports['destroy']=function(_0x5d5e53,_0x3903aa){const _0x10fac4=_0x41c7f6;return db[_0x10fac4('0x14')][_0x10fac4('0x24')]({'where':{'id':_0x5d5e53['params']['id']}})[_0x10fac4('0xf')](handleEntityNotFound(_0x3903aa,null))[_0x10fac4('0xf')](removeEntity(_0x3903aa,null))[_0x10fac4('0x8')](handleError(_0x3903aa,null));}; \ No newline at end of file +const a31_0x28ca=['options','destroy','AnalyticTreeReport','pick','includeAll','include','then','../../components/parsers/qs','params','rawAttributes','merge','stack','sequelize','map','query','intersection','../../mysqldb','filters','key','json','fieldName','findOne','model','filter','limit','create','update','where','attributes','name','fields','offset','keys','send','order','rows','type','count','../../config/logger','status','lodash','findAll','like','body','error','length','undefined','show','Content-Range','catch','set','VIRTUAL'];(function(_0x4e8cfb,_0xbca1d8){const _0x28cad5=function(_0x27f6cb){while(--_0x27f6cb){_0x4e8cfb['push'](_0x4e8cfb['shift']());}};_0x28cad5(++_0xbca1d8);}(a31_0x28ca,0x8a));const a31_0x27f6=function(_0x4e8cfb,_0xbca1d8){_0x4e8cfb=_0x4e8cfb-0x181;let _0x28cad5=a31_0x28ca[_0x4e8cfb];return _0x28cad5;};const a31_0x307ea5=a31_0x27f6;'use strict';const _=require(a31_0x307ea5(0x187)),qs=require(a31_0x307ea5(0x19a)),logger=require(a31_0x307ea5(0x185))('api'),{db}=require(a31_0x307ea5(0x1a3)),{Op}=require(a31_0x307ea5(0x19f));function respondWithResult(_0x8dd56d,_0x10dc44){return _0x10dc44=_0x10dc44||0xc8,function(_0x26178c){const _0x1b0054=a31_0x27f6;if(_0x26178c)return _0x8dd56d['status'](_0x10dc44)[_0x1b0054(0x1a6)](_0x26178c);};}function respondWithFilteredResult(_0xeb8f90,_0x2bd5d6){return function(_0x45b900){const _0x169851=a31_0x27f6;if(_0x45b900){const _0x376c7a=_0x45b900[_0x169851(0x184)],_0x3c5b99=_0x2bd5d6['offset'];let _0x1c831c=_0x2bd5d6[_0x169851(0x1b2)]+_0x2bd5d6[_0x169851(0x1ab)],_0x19284e;return _0x1c831c>=_0x376c7a?(_0x1c831c=_0x376c7a,_0x19284e=0xc8):_0x19284e=0xce,_0xeb8f90[_0x169851(0x186)](_0x19284e),_0xeb8f90[_0x169851(0x191)](_0x169851(0x18f),_0x3c5b99+'-'+_0x1c831c+'/'+_0x376c7a)[_0x169851(0x1a6)](_0x45b900);}return null;};}function saveUpdates(_0xf77bf2){return function(_0x21ea0){const _0x5794e3=a31_0x27f6;if(_0x21ea0)return _0x21ea0[_0x5794e3(0x1ad)](_0xf77bf2)[_0x5794e3(0x199)](function(_0x4223c8){return _0x4223c8;});return null;};}function removeEntity(_0x4df5c9){return function(_0x191eb8){const _0x4c7921=a31_0x27f6;if(_0x191eb8)return _0x191eb8[_0x4c7921(0x194)]()[_0x4c7921(0x199)](function(){const _0x2e4048=_0x4c7921;_0x4df5c9[_0x2e4048(0x186)](0xcc)['end']();});};}function handleEntityNotFound(_0xaf515){return function(_0x5b50f3){return!_0x5b50f3&&_0xaf515['sendStatus'](0x194),_0x5b50f3;};}function handleError(_0x445892,_0x11f887){return _0x11f887=_0x11f887||0x1f4,function(_0x4a9b93){const _0x235432=a31_0x27f6;logger[_0x235432(0x18b)](_0x4a9b93[_0x235432(0x19e)]),_0x4a9b93[_0x235432(0x1b0)]&&delete _0x4a9b93[_0x235432(0x1b0)],_0x445892['status'](_0x11f887)[_0x235432(0x1b4)](_0x4a9b93);};}exports['index']=function(_0x3b5502,_0x68fad0){const _0x502352=a31_0x307ea5;let _0x229aa5={};const _0x29a8e0={},_0x4dd27d={'count':0x0,'rows':[]},_0x6a5d93=_[_0x502352(0x1a0)](db[_0x502352(0x195)][_0x502352(0x19c)],function(_0x429a92){const _0xe10e0=_0x502352;return{'name':_0x429a92[_0xe10e0(0x1a7)],'type':_0x429a92[_0xe10e0(0x183)][_0xe10e0(0x1a5)]};});_0x29a8e0['model']=_[_0x502352(0x1a0)](_0x6a5d93,_0x502352(0x1b0)),_0x29a8e0[_0x502352(0x1a1)]=_['keys'](_0x3b5502[_0x502352(0x1a1)]),_0x29a8e0[_0x502352(0x1a4)]=_[_0x502352(0x1a2)](_0x29a8e0[_0x502352(0x1a9)],_0x29a8e0[_0x502352(0x1a1)]),_0x229aa5[_0x502352(0x1af)]=_[_0x502352(0x1a2)](_0x29a8e0[_0x502352(0x1a9)],qs['fields'](_0x3b5502['query'][_0x502352(0x1b1)])),_0x229aa5[_0x502352(0x1af)]=_0x229aa5[_0x502352(0x1af)][_0x502352(0x18c)]?_0x229aa5[_0x502352(0x1af)]:_0x29a8e0['model'];typeof _0x3b5502[_0x502352(0x1a1)]['nolimit']===_0x502352(0x18d)&&(_0x229aa5[_0x502352(0x1ab)]=qs[_0x502352(0x1ab)](_0x3b5502[_0x502352(0x1a1)][_0x502352(0x1ab)]),_0x229aa5[_0x502352(0x1b2)]=qs[_0x502352(0x1b2)](_0x3b5502[_0x502352(0x1a1)][_0x502352(0x1b2)]));_0x229aa5[_0x502352(0x181)]=qs['sort'](_0x3b5502[_0x502352(0x1a1)]['sort']),_0x229aa5[_0x502352(0x1ae)]=qs['filters'](_[_0x502352(0x196)](_0x3b5502[_0x502352(0x1a1)],_0x29a8e0['filters']),_0x6a5d93);_0x3b5502[_0x502352(0x1a1)][_0x502352(0x1aa)]&&(_0x229aa5[_0x502352(0x1ae)]=_[_0x502352(0x19d)](_0x229aa5[_0x502352(0x1ae)],{[Op['or']]:_[_0x502352(0x1a0)](_0x6a5d93,function(_0x266069){const _0x149156=_0x502352;if(_0x266069[_0x149156(0x183)]!==_0x149156(0x192)){const _0x1a0555={};return _0x1a0555[_0x266069[_0x149156(0x1b0)]]={[Op[_0x149156(0x189)]]:'%'+_0x3b5502[_0x149156(0x1a1)]['filter']+'%'},_0x1a0555;}})}));_0x229aa5=_[_0x502352(0x19d)]({},_0x229aa5,_0x3b5502[_0x502352(0x193)]);const _0x76ca69={'where':_0x229aa5[_0x502352(0x1ae)]};return db[_0x502352(0x195)][_0x502352(0x184)](_0x76ca69)[_0x502352(0x199)](function(_0x2cb232){const _0x29a0cc=_0x502352;return _0x4dd27d[_0x29a0cc(0x184)]=_0x2cb232,_0x3b5502['query'][_0x29a0cc(0x197)]&&(_0x229aa5['include']=[{'all':!![]}]),db['AnalyticTreeReport'][_0x29a0cc(0x188)](_0x229aa5);})[_0x502352(0x199)](function(_0x233c30){const _0x10f376=_0x502352;return _0x4dd27d[_0x10f376(0x182)]=_0x233c30,_0x4dd27d;})[_0x502352(0x199)](respondWithFilteredResult(_0x68fad0,_0x229aa5))['catch'](handleError(_0x68fad0,null));},exports[a31_0x307ea5(0x18e)]=function(_0x536d99,_0x4768b7){const _0xc8c9eb=a31_0x307ea5;let _0x19ebf2={'raw':!![],'where':{'id':_0x536d99[_0xc8c9eb(0x19b)]['id']}};const _0x55b714={};return _0x55b714[_0xc8c9eb(0x1a9)]=_[_0xc8c9eb(0x1b3)](db[_0xc8c9eb(0x195)]['rawAttributes']),_0x55b714[_0xc8c9eb(0x1a1)]=_[_0xc8c9eb(0x1b3)](_0x536d99[_0xc8c9eb(0x1a1)]),_0x55b714[_0xc8c9eb(0x1a4)]=_[_0xc8c9eb(0x1a2)](_0x55b714[_0xc8c9eb(0x1a9)],_0x55b714[_0xc8c9eb(0x1a1)]),_0x19ebf2[_0xc8c9eb(0x1af)]=_[_0xc8c9eb(0x1a2)](_0x55b714[_0xc8c9eb(0x1a9)],qs['fields'](_0x536d99[_0xc8c9eb(0x1a1)][_0xc8c9eb(0x1b1)])),_0x19ebf2[_0xc8c9eb(0x1af)]=_0x19ebf2[_0xc8c9eb(0x1af)][_0xc8c9eb(0x18c)]?_0x19ebf2[_0xc8c9eb(0x1af)]:_0x55b714[_0xc8c9eb(0x1a9)],_0x536d99['query'][_0xc8c9eb(0x197)]&&(_0x19ebf2[_0xc8c9eb(0x198)]=[{'all':!![]}]),_0x19ebf2=_[_0xc8c9eb(0x19d)]({},_0x19ebf2,_0x536d99[_0xc8c9eb(0x193)]),db['AnalyticTreeReport']['findOne'](_0x19ebf2)[_0xc8c9eb(0x199)](handleEntityNotFound(_0x4768b7,null))[_0xc8c9eb(0x199)](respondWithResult(_0x4768b7,null))[_0xc8c9eb(0x190)](handleError(_0x4768b7,null));},exports[a31_0x307ea5(0x1ac)]=function(_0xa5af79,_0x3db305){const _0x1f8318=a31_0x307ea5;return db[_0x1f8318(0x195)][_0x1f8318(0x1ac)](_0xa5af79[_0x1f8318(0x18a)],{})[_0x1f8318(0x199)](respondWithResult(_0x3db305,0xc9))[_0x1f8318(0x190)](handleError(_0x3db305,null));},exports[a31_0x307ea5(0x1ad)]=function(_0x982e11,_0x3c9e65){const _0x1603ae=a31_0x307ea5;return _0x982e11[_0x1603ae(0x18a)]['id']&&delete _0x982e11[_0x1603ae(0x18a)]['id'],db[_0x1603ae(0x195)][_0x1603ae(0x1a8)]({'where':{'id':_0x982e11[_0x1603ae(0x19b)]['id']}})[_0x1603ae(0x199)](handleEntityNotFound(_0x3c9e65,null))[_0x1603ae(0x199)](saveUpdates(_0x982e11['body'],null))[_0x1603ae(0x199)](respondWithResult(_0x3c9e65,null))['catch'](handleError(_0x3c9e65,null));},exports[a31_0x307ea5(0x194)]=function(_0x2c2dc0,_0x17f77b){const _0xf2d5c7=a31_0x307ea5;return db[_0xf2d5c7(0x195)][_0xf2d5c7(0x1a8)]({'where':{'id':_0x2c2dc0[_0xf2d5c7(0x19b)]['id']}})[_0xf2d5c7(0x199)](handleEntityNotFound(_0x17f77b,null))[_0xf2d5c7(0x199)](removeEntity(_0x17f77b,null))[_0xf2d5c7(0x190)](handleError(_0x17f77b,null));}; \ No newline at end of file diff --git a/server/api/analyticTreeReport/analyticTreeReport.model.js b/server/api/analyticTreeReport/analyticTreeReport.model.js index e202d73..6f1a170 100644 --- a/server/api/analyticTreeReport/analyticTreeReport.model.js +++ b/server/api/analyticTreeReport/analyticTreeReport.model.js @@ -1 +1 @@ -const a26_0x1125=['analytics_report_trees','./analyticTreeReport.attributes','AnalyticTreeReport'];(function(_0x2760a6,_0x112598){const _0x356faf=function(_0x57dbf5){while(--_0x57dbf5){_0x2760a6['push'](_0x2760a6['shift']());}};_0x356faf(++_0x112598);}(a26_0x1125,0x1a5));const a26_0x356f=function(_0x2760a6,_0x112598){_0x2760a6=_0x2760a6-0x0;let _0x356faf=a26_0x1125[_0x2760a6];return _0x356faf;};const _0x5ac8a6=a26_0x356f;'use strict';const attributes=require(_0x5ac8a6('0x0'));module['exports']=function(_0x57dbf5){const _0x4f8eda=_0x5ac8a6,_0x421894=_0x57dbf5['define'](_0x4f8eda('0x1'),attributes,{'tableName':_0x4f8eda('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x421894;}; \ No newline at end of file +const a32_0x3b6e=['./analyticTreeReport.options','function','init','sequelize','exports'];(function(_0x20a25a,_0x306357){const _0x3b6ec4=function(_0x98b7a2){while(--_0x98b7a2){_0x20a25a['push'](_0x20a25a['shift']());}};_0x3b6ec4(++_0x306357);}(a32_0x3b6e,0x16e));const a32_0x98b7=function(_0x20a25a,_0x306357){_0x20a25a=_0x20a25a-0x116;let _0x3b6ec4=a32_0x3b6e[_0x20a25a];return _0x3b6ec4;};const a32_0x5772f7=a32_0x98b7;'use strict';const {Model}=require(a32_0x5772f7(0x118)),{attributes}=require('./analyticTreeReport.attributes'),{options}=require(a32_0x5772f7(0x11a));class AnalyticTreeReport extends Model{}function init(_0x747033,_0x377918){const _0x412de3=a32_0x5772f7,_0xfa4cd0=options(_0x747033),_0xb76448=typeof _0x377918===_0x412de3(0x116)?_0x377918(_0xfa4cd0):_0xfa4cd0;return AnalyticTreeReport[_0x412de3(0x117)](attributes,_0xb76448),AnalyticTreeReport;}module[a32_0x5772f7(0x119)]['AnalyticTreeReport']=AnalyticTreeReport,module[a32_0x5772f7(0x119)]['init']=init; \ No newline at end of file diff --git a/server/api/analyticTreeReport/analyticTreeReport.options.js b/server/api/analyticTreeReport/analyticTreeReport.options.js new file mode 100644 index 0000000..47e5749 --- /dev/null +++ b/server/api/analyticTreeReport/analyticTreeReport.options.js @@ -0,0 +1 @@ +var a33_0x25de=['analytics_report_trees','exports','options'];(function(_0x562730,_0x1e59d4){var _0x25deb2=function(_0x4dc668){while(--_0x4dc668){_0x562730['push'](_0x562730['shift']());}};_0x25deb2(++_0x1e59d4);}(a33_0x25de,0xa2));var a33_0x4dc6=function(_0x562730,_0x1e59d4){_0x562730=_0x562730-0x106;var _0x25deb2=a33_0x25de[_0x562730];return _0x25deb2;};var a33_0x16b7c4=a33_0x4dc6;function options(_0x59848a){var _0x7aedb0=a33_0x4dc6;return{'sequelize':_0x59848a,'tableName':_0x7aedb0(0x106),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a33_0x16b7c4(0x107)][a33_0x16b7c4(0x108)]=options; \ No newline at end of file diff --git a/server/api/analyticTreeReport/index.js b/server/api/analyticTreeReport/index.js index d85a3c3..8dce787 100644 --- a/server/api/analyticTreeReport/index.js +++ b/server/api/analyticTreeReport/index.js @@ -1 +1 @@ -const a27_0x1085=['delete','post','create','exports','destroy','/:id','show','get','../../components/auth/service','isAuthenticated','put'];(function(_0x26105a,_0x10851d){const _0x5a771d=function(_0x4af1c6){while(--_0x4af1c6){_0x26105a['push'](_0x26105a['shift']());}};_0x5a771d(++_0x10851d);}(a27_0x1085,0x80));const a27_0x5a77=function(_0x26105a,_0x10851d){_0x26105a=_0x26105a-0x0;let _0x5a771d=a27_0x1085[_0x26105a];return _0x5a771d;};const _0x1eb59b=a27_0x5a77;'use strict';const express=require('express'),router=express['Router'](),auth=require(_0x1eb59b('0x1')),controller=require('./analyticTreeReport.controller');router[_0x1eb59b('0x0')]('/',auth[_0x1eb59b('0x2')](),controller['index']),router[_0x1eb59b('0x0')]('/:id',auth[_0x1eb59b('0x2')](),controller[_0x1eb59b('0xa')]),router[_0x1eb59b('0x5')]('/',auth[_0x1eb59b('0x2')](),controller[_0x1eb59b('0x6')]),router[_0x1eb59b('0x3')](_0x1eb59b('0x9'),auth[_0x1eb59b('0x2')](),controller['update']),router[_0x1eb59b('0x4')]('/:id',auth[_0x1eb59b('0x2')](),controller[_0x1eb59b('0x8')]),module[_0x1eb59b('0x7')]=router; \ No newline at end of file +const a34_0x1cd3=['get','create','put','destroy','index','show','isAuthenticated','express','../../components/auth/service','update','./analyticTreeReport.controller','post','exports','/:id','Router'];(function(_0x3a8f41,_0x4c3f9b){const _0x1cd3a3=function(_0x5bd5aa){while(--_0x5bd5aa){_0x3a8f41['push'](_0x3a8f41['shift']());}};_0x1cd3a3(++_0x4c3f9b);}(a34_0x1cd3,0x15b));const a34_0x5bd5=function(_0x3a8f41,_0x4c3f9b){_0x3a8f41=_0x3a8f41-0x12e;let _0x1cd3a3=a34_0x1cd3[_0x3a8f41];return _0x1cd3a3;};const a34_0x4bb704=a34_0x5bd5;'use strict';const express=require(a34_0x4bb704(0x133)),router=express[a34_0x4bb704(0x13a)](),auth=require(a34_0x4bb704(0x134)),controller=require(a34_0x4bb704(0x136));router[a34_0x4bb704(0x13b)]('/',auth[a34_0x4bb704(0x132)](),controller[a34_0x4bb704(0x130)]),router[a34_0x4bb704(0x13b)](a34_0x4bb704(0x139),auth[a34_0x4bb704(0x132)](),controller[a34_0x4bb704(0x131)]),router[a34_0x4bb704(0x137)]('/',auth[a34_0x4bb704(0x132)](),controller[a34_0x4bb704(0x13c)]),router[a34_0x4bb704(0x12e)](a34_0x4bb704(0x139),auth[a34_0x4bb704(0x132)](),controller[a34_0x4bb704(0x135)]),router['delete'](a34_0x4bb704(0x139),auth[a34_0x4bb704(0x132)](),controller[a34_0x4bb704(0x12f)]),module[a34_0x4bb704(0x138)]=router; \ No newline at end of file diff --git a/server/api/attachment/attachment.attributes.js b/server/api/attachment/attachment.attributes.js index e9195b1..e856096 100644 --- a/server/api/attachment/attachment.attributes.js +++ b/server/api/attachment/attachment.attributes.js @@ -1 +1 @@ -const a28_0x2150=['exports','STRING','sequelize'];(function(_0x269299,_0x21504b){const _0x4e7bc2=function(_0x21d4b1){while(--_0x21d4b1){_0x269299['push'](_0x269299['shift']());}};_0x4e7bc2(++_0x21504b);}(a28_0x2150,0x1b5));const a28_0x4e7b=function(_0x269299,_0x21504b){_0x269299=_0x269299-0x0;let _0x4e7bc2=a28_0x2150[_0x269299];return _0x4e7bc2;};const _0x26330c=a28_0x4e7b;'use strict';const Sequelize=require(_0x26330c('0x0'));module[_0x26330c('0x1')]={'name':{'type':Sequelize['STRING']},'basename':{'type':Sequelize['STRING']},'type':{'type':Sequelize[_0x26330c('0x2')]}}; \ No newline at end of file +const a35_0x3d1a=['STRING','sequelize','attributes','exports'];(function(_0x17e19f,_0x4b4fc8){const _0x3d1a22=function(_0x2cf44a){while(--_0x2cf44a){_0x17e19f['push'](_0x17e19f['shift']());}};_0x3d1a22(++_0x4b4fc8);}(a35_0x3d1a,0x16b));const a35_0x2cf4=function(_0x17e19f,_0x4b4fc8){_0x17e19f=_0x17e19f-0xe5;let _0x3d1a22=a35_0x3d1a[_0x17e19f];return _0x3d1a22;};const a35_0x48021a=a35_0x2cf4;'use strict';const {DataTypes}=require(a35_0x48021a(0xe7)),attributes={'name':{'type':DataTypes[a35_0x48021a(0xe6)]},'basename':{'type':DataTypes[a35_0x48021a(0xe6)]},'type':{'type':DataTypes[a35_0x48021a(0xe6)]}};module[a35_0x48021a(0xe5)][a35_0x48021a(0xe8)]=attributes; \ No newline at end of file diff --git a/server/api/attachment/attachment.controller.js b/server/api/attachment/attachment.controller.js index c524977..35391fe 100644 --- a/server/api/attachment/attachment.controller.js +++ b/server/api/attachment/attachment.controller.js @@ -1 +1 @@ -const a29_0x5267=['send','lodash','stack','nolimit','key','destroy','intersection','clone','attributes','findAll','create','rawAttributes','../../components/parsers/qs','error','model','keys','root','include','update','mimetype','status','filters','basename','includeAll','show','json','length','fields','where','params','sendStatus','join','query','updatedAt','map','count','download','sort','get','offset','merge','originalname','createdAt','options','filename','rows','limit','filter','files/attachments/','index','sequelize','file','Content-Range','name','then','../../config/logger','like','omit','undefined','type','catch','findOne','Attachment','body','order'];(function(_0x458006,_0x5267a0){const _0x57b723=function(_0x352a98){while(--_0x352a98){_0x458006['push'](_0x458006['shift']());}};_0x57b723(++_0x5267a0);}(a29_0x5267,0x110));const a29_0x57b7=function(_0x458006,_0x5267a0){_0x458006=_0x458006-0x0;let _0x57b723=a29_0x5267[_0x458006];return _0x57b723;};const _0x42014e=a29_0x57b7;'use strict';const path=require('path'),_=require(_0x42014e('0x36')),qs=require(_0x42014e('0x0')),logger=require(_0x42014e('0x2b'))('api'),config=require('../../config/environment'),db=require('../../mysqldb')['db'],{Op}=require(_0x42014e('0x26'));function respondWithResult(_0x352a98,_0x21be15){return _0x21be15=_0x21be15||0xc8,function(_0x1385f7){const _0x456948=a29_0x57b7;if(_0x1385f7)return _0x352a98[_0x456948('0x8')](_0x21be15)['json'](_0x1385f7);};}function respondWithFilteredResult(_0x5d7961,_0x4de155){return function(_0xff8539){const _0x200ecd=a29_0x57b7;if(_0xff8539){const _0x23dab0=_0xff8539[_0x200ecd('0x17')],_0x49df4c=_0x4de155[_0x200ecd('0x1b')];let _0x4cb790=_0x4de155[_0x200ecd('0x1b')]+_0x4de155[_0x200ecd('0x22')],_0x212b78;return _0x4cb790>=_0x23dab0?(_0x4cb790=_0x23dab0,_0x212b78=0xc8):_0x212b78=0xce,_0x5d7961['status'](_0x212b78),_0x5d7961['set'](_0x200ecd('0x28'),_0x49df4c+'-'+_0x4cb790+'/'+_0x23dab0)[_0x200ecd('0xd')](_0xff8539);}return null;};}function saveUpdates(_0x2a7f92){return function(_0x5c39d2){const _0x24be61=a29_0x57b7;if(_0x5c39d2)return _0x5c39d2[_0x24be61('0x6')](_0x2a7f92)[_0x24be61('0x2a')](function(_0x145d17){return _0x145d17;});return null;};}function removeEntity(_0x4dc066){return function(_0xae4f52){const _0x201586=a29_0x57b7;if(_0xae4f52)return _0xae4f52[_0x201586('0x3a')]()['then'](function(){const _0x1b2b6e=_0x201586;_0x4dc066[_0x1b2b6e('0x8')](0xcc)['end']();});};}function handleEntityNotFound(_0x54b23f){return function(_0x537ce8){const _0x560cf1=a29_0x57b7;return!_0x537ce8&&_0x54b23f[_0x560cf1('0x12')](0x194),_0x537ce8;};}function handleError(_0x39eaef,_0x5023e2){return _0x5023e2=_0x5023e2||0x1f4,function(_0x5de10b){const _0x48b4a7=a29_0x57b7;logger[_0x48b4a7('0x1')](_0x5de10b[_0x48b4a7('0x37')]),_0x5de10b[_0x48b4a7('0x29')]&&delete _0x5de10b['name'],_0x39eaef['status'](_0x5023e2)[_0x48b4a7('0x35')](_0x5de10b);};}exports[_0x42014e('0x25')]=function(_0x28d3d7,_0x42390c){const _0x1daa0a=_0x42014e;let _0x619160={};const _0x3342c0={},_0x27a3a6={'count':0x0,'rows':[]},_0x18a580=_['map'](db[_0x1daa0a('0x32')][_0x1daa0a('0x40')],function(_0x51830b){const _0x47e953=_0x1daa0a;return{'name':_0x51830b['fieldName'],'type':_0x51830b['type'][_0x47e953('0x39')]};});_0x3342c0[_0x1daa0a('0x2')]=_[_0x1daa0a('0x16')](_0x18a580,_0x1daa0a('0x29')),_0x3342c0[_0x1daa0a('0x14')]=_[_0x1daa0a('0x3')](_0x28d3d7[_0x1daa0a('0x14')]),_0x3342c0['filters']=_[_0x1daa0a('0x3b')](_0x3342c0[_0x1daa0a('0x2')],_0x3342c0[_0x1daa0a('0x14')]),_0x619160[_0x1daa0a('0x3d')]=_[_0x1daa0a('0x3b')](_0x3342c0[_0x1daa0a('0x2')],qs[_0x1daa0a('0xf')](_0x28d3d7[_0x1daa0a('0x14')][_0x1daa0a('0xf')])),_0x619160['attributes']=_0x619160[_0x1daa0a('0x3d')][_0x1daa0a('0xe')]?_0x619160[_0x1daa0a('0x3d')]:_0x3342c0['model'];typeof _0x28d3d7[_0x1daa0a('0x14')][_0x1daa0a('0x38')]===_0x1daa0a('0x2e')&&(_0x619160['limit']=qs[_0x1daa0a('0x22')](_0x28d3d7[_0x1daa0a('0x14')][_0x1daa0a('0x22')]),_0x619160[_0x1daa0a('0x1b')]=qs[_0x1daa0a('0x1b')](_0x28d3d7[_0x1daa0a('0x14')][_0x1daa0a('0x1b')]));_0x619160[_0x1daa0a('0x34')]=qs[_0x1daa0a('0x19')](_0x28d3d7[_0x1daa0a('0x14')][_0x1daa0a('0x19')]),_0x619160[_0x1daa0a('0x10')]=qs[_0x1daa0a('0x9')](_['pick'](_0x28d3d7[_0x1daa0a('0x14')],_0x3342c0[_0x1daa0a('0x9')]),_0x18a580);_0x28d3d7['query'][_0x1daa0a('0x23')]&&(_0x619160[_0x1daa0a('0x10')]=_[_0x1daa0a('0x1c')](_0x619160[_0x1daa0a('0x10')],{[Op['or']]:_[_0x1daa0a('0x16')](_0x18a580,function(_0x3206a3){const _0x5b4114=_0x1daa0a;if(_0x3206a3[_0x5b4114('0x2f')]!=='VIRTUAL'){const _0x453a5b={};return _0x453a5b[_0x3206a3[_0x5b4114('0x29')]]={[Op[_0x5b4114('0x2c')]]:'%'+_0x28d3d7[_0x5b4114('0x14')][_0x5b4114('0x23')]+'%'},_0x453a5b;}})}));_0x619160=_[_0x1daa0a('0x1c')]({},_0x619160,_0x28d3d7[_0x1daa0a('0x1f')]);const _0x4a53a1={'where':_0x619160[_0x1daa0a('0x10')]};return db[_0x1daa0a('0x32')]['count'](_0x4a53a1)['then'](function(_0xd7d264){const _0x25785c=_0x1daa0a;return _0x27a3a6[_0x25785c('0x17')]=_0xd7d264,_0x28d3d7[_0x25785c('0x14')][_0x25785c('0xb')]&&(_0x619160[_0x25785c('0x5')]=[{'all':!![]}]),db[_0x25785c('0x32')][_0x25785c('0x3e')](_0x619160);})[_0x1daa0a('0x2a')](function(_0x117d21){const _0x4ef641=_0x1daa0a;return _0x27a3a6[_0x4ef641('0x21')]=_0x117d21,_0x27a3a6;})[_0x1daa0a('0x2a')](respondWithFilteredResult(_0x42390c,_0x619160))['catch'](handleError(_0x42390c,null));},exports[_0x42014e('0xc')]=function(_0x1978d7,_0x49d550){const _0x35d5d2=_0x42014e;let _0x29fa79={'raw':!![],'where':{'id':_0x1978d7[_0x35d5d2('0x11')]['id']}};const _0x587a93={};return _0x587a93[_0x35d5d2('0x2')]=_[_0x35d5d2('0x3')](db['Attachment']['rawAttributes']),_0x587a93['query']=_[_0x35d5d2('0x3')](_0x1978d7['query']),_0x587a93[_0x35d5d2('0x9')]=_[_0x35d5d2('0x3b')](_0x587a93['model'],_0x587a93[_0x35d5d2('0x14')]),_0x29fa79[_0x35d5d2('0x3d')]=_['intersection'](_0x587a93['model'],qs[_0x35d5d2('0xf')](_0x1978d7[_0x35d5d2('0x14')][_0x35d5d2('0xf')])),_0x29fa79[_0x35d5d2('0x3d')]=_0x29fa79[_0x35d5d2('0x3d')][_0x35d5d2('0xe')]?_0x29fa79[_0x35d5d2('0x3d')]:_0x587a93['model'],_0x1978d7[_0x35d5d2('0x14')][_0x35d5d2('0xb')]&&(_0x29fa79[_0x35d5d2('0x5')]=[{'all':!![]}]),_0x29fa79=_[_0x35d5d2('0x1c')]({},_0x29fa79,_0x1978d7[_0x35d5d2('0x1f')]),db[_0x35d5d2('0x32')]['findOne'](_0x29fa79)['then'](handleEntityNotFound(_0x49d550,null))[_0x35d5d2('0x2a')](respondWithResult(_0x49d550,null))[_0x35d5d2('0x30')](handleError(_0x49d550,null));},exports[_0x42014e('0x3c')]=function(_0x21ecc8,_0xd40e67){const _0x322444=_0x42014e;let _0x16a0cf={'where':{'id':_0x21ecc8['params']['id']}};const _0x53eb5f={};return _0x53eb5f[_0x322444('0x2')]=_[_0x322444('0x3')](db[_0x322444('0x32')]['rawAttributes']),_0x16a0cf[_0x322444('0x3d')]=_[_0x322444('0x3b')](_0x53eb5f[_0x322444('0x2')],qs[_0x322444('0xf')](_0x21ecc8[_0x322444('0x14')][_0x322444('0xf')])),_0x16a0cf[_0x322444('0x3d')]=_0x16a0cf['attributes']['length']?_0x16a0cf[_0x322444('0x3d')]:_0x53eb5f[_0x322444('0x2')],_0x21ecc8[_0x322444('0x14')][_0x322444('0xb')]&&(_0x16a0cf[_0x322444('0x5')]=[{'all':!![]}]),_0x16a0cf=_[_0x322444('0x1c')]({},_0x16a0cf,_0x21ecc8[_0x322444('0x1f')]),db[_0x322444('0x32')][_0x322444('0x31')](_0x16a0cf)[_0x322444('0x2a')](handleEntityNotFound(_0xd40e67,null))[_0x322444('0x2a')](function(_0x4a2bba){const _0x5adc3a=_0x322444;if(_0x4a2bba){let _0x57869e=_0x4a2bba[_0x5adc3a('0x1a')]({'plain':!![]});return _0x57869e=qs[_0x5adc3a('0x2d')](_0x57869e,['id',_0x5adc3a('0x1e'),_0x5adc3a('0x15')]),_0x21ecc8[_0x5adc3a('0x33')]=_[_0x5adc3a('0x2d')](_0x21ecc8[_0x5adc3a('0x33')],['id','createdAt',_0x5adc3a('0x15')]),db[_0x5adc3a('0x32')][_0x5adc3a('0x3f')](_[_0x5adc3a('0x1c')](_0x57869e,_0x21ecc8[_0x5adc3a('0x33')]),{'include':_0x21ecc8[_0x5adc3a('0x14')][_0x5adc3a('0xb')]?[{'all':!![]}]:undefined});}})['then'](respondWithResult(_0xd40e67,0xc9))[_0x322444('0x30')](handleError(_0xd40e67,null));},exports['update']=function(_0x5e3bc6,_0x1b54b8){const _0x41b858=_0x42014e;return _0x5e3bc6[_0x41b858('0x33')]['id']&&delete _0x5e3bc6[_0x41b858('0x33')]['id'],db['Attachment'][_0x41b858('0x31')]({'where':{'id':_0x5e3bc6[_0x41b858('0x11')]['id']}})[_0x41b858('0x2a')](handleEntityNotFound(_0x1b54b8,null))[_0x41b858('0x2a')](saveUpdates(_0x5e3bc6['body'],null))[_0x41b858('0x2a')](respondWithResult(_0x1b54b8,null))[_0x41b858('0x30')](handleError(_0x1b54b8,null));},exports[_0x42014e('0x3a')]=function(_0x831158,_0x3b9da0){const _0x42c0fe=_0x42014e;return db[_0x42c0fe('0x32')]['findOne']({'where':{'id':_0x831158[_0x42c0fe('0x11')]['id']}})['then'](handleEntityNotFound(_0x3b9da0,null))[_0x42c0fe('0x2a')](removeEntity(_0x3b9da0,null))[_0x42c0fe('0x30')](handleError(_0x3b9da0,null));},exports[_0x42014e('0x3f')]=function(_0x289305,_0x29cb79){const _0x445baa=_0x42014e;return _0x289305[_0x445baa('0x33')]['name']=_0x289305[_0x445baa('0x27')][_0x445baa('0x1d')],_0x289305[_0x445baa('0x33')][_0x445baa('0xa')]=_0x289305[_0x445baa('0x27')][_0x445baa('0x20')],_0x289305[_0x445baa('0x33')][_0x445baa('0x2f')]=_0x289305[_0x445baa('0x27')][_0x445baa('0x7')],db['Attachment'][_0x445baa('0x3f')](_0x289305[_0x445baa('0x33')])[_0x445baa('0x2a')](respondWithResult(_0x29cb79,0xc9))[_0x445baa('0x30')](handleError(_0x29cb79,null));},exports[_0x42014e('0x18')]=function(_0x242f6f,_0x2c9f11){const _0xc7d08f=_0x42014e;return db[_0xc7d08f('0x32')][_0xc7d08f('0x31')]({'where':{'id':_0x242f6f[_0xc7d08f('0x11')]['id']},'raw':!![]})['then'](handleEntityNotFound(_0x2c9f11,null))['then'](function(_0x337159){const _0x5a6686=_0xc7d08f;if(_0x337159)return _0x2c9f11[_0x5a6686('0x18')](path[_0x5a6686('0x13')](config[_0x5a6686('0x4')],_0x5a6686('0x24'),_0x337159[_0x5a6686('0xa')]));})['catch'](handleError(_0x2c9f11,null));}; \ No newline at end of file +const a36_0xf822=['sendStatus','include','filter','create','fields','nolimit','includeAll','../../config/logger','omit','intersection','get','query','json','offset','Attachment','end','VIRTUAL','../../config/environment','destroy','filename','pick','then','basename','length','options','stack','order','updatedAt','path','where','update','count','mimetype','keys','status','../../components/parsers/qs','sort','body','set','../../mysqldb','error','map','root','attributes','join','files/attachments/','file','params','rows','rawAttributes','model','filters','type','findOne','catch','key','name','limit','merge','clone','send','download','createdAt'];(function(_0x129af8,_0x11b712){const _0xf8222b=function(_0x178c72){while(--_0x178c72){_0x129af8['push'](_0x129af8['shift']());}};_0xf8222b(++_0x11b712);}(a36_0xf822,0x1df));const a36_0x178c=function(_0x129af8,_0x11b712){_0x129af8=_0x129af8-0x14f;let _0xf8222b=a36_0xf822[_0x129af8];return _0xf8222b;};const a36_0x41c4e2=a36_0x178c;'use strict';const path=require(a36_0x41c4e2(0x184)),_=require('lodash'),qs=require(a36_0x41c4e2(0x18b)),logger=require(a36_0x41c4e2(0x16f))('api'),config=require(a36_0x41c4e2(0x179)),{db}=require(a36_0x41c4e2(0x150)),{Op}=require('sequelize');function respondWithResult(_0x4904a5,_0x592c7e){return _0x592c7e=_0x592c7e||0xc8,function(_0x1a32b9){const _0x4670ee=a36_0x178c;if(_0x1a32b9)return _0x4904a5[_0x4670ee(0x18a)](_0x592c7e)[_0x4670ee(0x174)](_0x1a32b9);};}function respondWithFilteredResult(_0x2102e5,_0x4c4a2b){return function(_0x2bae5a){const _0x3e2768=a36_0x178c;if(_0x2bae5a){const _0x31a27c=_0x2bae5a['count'],_0x14125c=_0x4c4a2b[_0x3e2768(0x175)];let _0x2b1a10=_0x4c4a2b[_0x3e2768(0x175)]+_0x4c4a2b[_0x3e2768(0x162)],_0x12a1fc;return _0x2b1a10>=_0x31a27c?(_0x2b1a10=_0x31a27c,_0x12a1fc=0xc8):_0x12a1fc=0xce,_0x2102e5[_0x3e2768(0x18a)](_0x12a1fc),_0x2102e5[_0x3e2768(0x14f)]('Content-Range',_0x14125c+'-'+_0x2b1a10+'/'+_0x31a27c)[_0x3e2768(0x174)](_0x2bae5a);}return null;};}function saveUpdates(_0x41609a){return function(_0x5efbeb){const _0x144bb2=a36_0x178c;if(_0x5efbeb)return _0x5efbeb[_0x144bb2(0x186)](_0x41609a)[_0x144bb2(0x17d)](function(_0x226b19){return _0x226b19;});return null;};}function removeEntity(_0x272398){return function(_0x4e3a18){const _0x20aea2=a36_0x178c;if(_0x4e3a18)return _0x4e3a18[_0x20aea2(0x17a)]()[_0x20aea2(0x17d)](function(){const _0x464f60=_0x20aea2;_0x272398[_0x464f60(0x18a)](0xcc)[_0x464f60(0x177)]();});};}function handleEntityNotFound(_0x1171e4){return function(_0xdaaf05){const _0x3f1d07=a36_0x178c;return!_0xdaaf05&&_0x1171e4[_0x3f1d07(0x168)](0x194),_0xdaaf05;};}function handleError(_0x5c11ea,_0x1398ce){return _0x1398ce=_0x1398ce||0x1f4,function(_0x359774){const _0x520024=a36_0x178c;logger[_0x520024(0x151)](_0x359774[_0x520024(0x181)]),_0x359774[_0x520024(0x161)]&&delete _0x359774['name'],_0x5c11ea['status'](_0x1398ce)[_0x520024(0x165)](_0x359774);};}exports['index']=function(_0x429c2d,_0x174310){const _0x9f6e71=a36_0x41c4e2;let _0x2498df={};const _0x2ff038={},_0x3c09f8={'count':0x0,'rows':[]},_0x18de1e=_[_0x9f6e71(0x152)](db[_0x9f6e71(0x176)][_0x9f6e71(0x15a)],function(_0x1a0929){const _0x9f2fc0=_0x9f6e71;return{'name':_0x1a0929['fieldName'],'type':_0x1a0929['type'][_0x9f2fc0(0x160)]};});_0x2ff038[_0x9f6e71(0x15b)]=_[_0x9f6e71(0x152)](_0x18de1e,_0x9f6e71(0x161)),_0x2ff038['query']=_[_0x9f6e71(0x189)](_0x429c2d[_0x9f6e71(0x173)]),_0x2ff038['filters']=_[_0x9f6e71(0x171)](_0x2ff038[_0x9f6e71(0x15b)],_0x2ff038[_0x9f6e71(0x173)]),_0x2498df[_0x9f6e71(0x154)]=_[_0x9f6e71(0x171)](_0x2ff038['model'],qs[_0x9f6e71(0x16c)](_0x429c2d[_0x9f6e71(0x173)][_0x9f6e71(0x16c)])),_0x2498df[_0x9f6e71(0x154)]=_0x2498df['attributes'][_0x9f6e71(0x17f)]?_0x2498df[_0x9f6e71(0x154)]:_0x2ff038['model'];typeof _0x429c2d[_0x9f6e71(0x173)][_0x9f6e71(0x16d)]==='undefined'&&(_0x2498df[_0x9f6e71(0x162)]=qs['limit'](_0x429c2d[_0x9f6e71(0x173)][_0x9f6e71(0x162)]),_0x2498df[_0x9f6e71(0x175)]=qs[_0x9f6e71(0x175)](_0x429c2d['query'][_0x9f6e71(0x175)]));_0x2498df[_0x9f6e71(0x182)]=qs[_0x9f6e71(0x18c)](_0x429c2d[_0x9f6e71(0x173)]['sort']),_0x2498df['where']=qs['filters'](_[_0x9f6e71(0x17c)](_0x429c2d[_0x9f6e71(0x173)],_0x2ff038[_0x9f6e71(0x15c)]),_0x18de1e);_0x429c2d[_0x9f6e71(0x173)][_0x9f6e71(0x16a)]&&(_0x2498df['where']=_[_0x9f6e71(0x163)](_0x2498df['where'],{[Op['or']]:_[_0x9f6e71(0x152)](_0x18de1e,function(_0x4a4200){const _0x1cf29d=_0x9f6e71;if(_0x4a4200[_0x1cf29d(0x15d)]!==_0x1cf29d(0x178)){const _0x3c5977={};return _0x3c5977[_0x4a4200[_0x1cf29d(0x161)]]={[Op['like']]:'%'+_0x429c2d[_0x1cf29d(0x173)]['filter']+'%'},_0x3c5977;}})}));_0x2498df=_[_0x9f6e71(0x163)]({},_0x2498df,_0x429c2d[_0x9f6e71(0x180)]);const _0x4603bd={'where':_0x2498df[_0x9f6e71(0x185)]};return db[_0x9f6e71(0x176)][_0x9f6e71(0x187)](_0x4603bd)['then'](function(_0x22b5e5){const _0x21d0b7=_0x9f6e71;return _0x3c09f8[_0x21d0b7(0x187)]=_0x22b5e5,_0x429c2d[_0x21d0b7(0x173)][_0x21d0b7(0x16e)]&&(_0x2498df['include']=[{'all':!![]}]),db[_0x21d0b7(0x176)]['findAll'](_0x2498df);})[_0x9f6e71(0x17d)](function(_0x13c802){const _0x432920=_0x9f6e71;return _0x3c09f8[_0x432920(0x159)]=_0x13c802,_0x3c09f8;})[_0x9f6e71(0x17d)](respondWithFilteredResult(_0x174310,_0x2498df))[_0x9f6e71(0x15f)](handleError(_0x174310,null));},exports['show']=function(_0x3b3d91,_0x584eec){const _0x5c5628=a36_0x41c4e2;let _0x52b05f={'raw':!![],'where':{'id':_0x3b3d91['params']['id']}};const _0x596b20={};return _0x596b20[_0x5c5628(0x15b)]=_[_0x5c5628(0x189)](db[_0x5c5628(0x176)]['rawAttributes']),_0x596b20[_0x5c5628(0x173)]=_[_0x5c5628(0x189)](_0x3b3d91[_0x5c5628(0x173)]),_0x596b20[_0x5c5628(0x15c)]=_['intersection'](_0x596b20['model'],_0x596b20[_0x5c5628(0x173)]),_0x52b05f[_0x5c5628(0x154)]=_[_0x5c5628(0x171)](_0x596b20['model'],qs['fields'](_0x3b3d91[_0x5c5628(0x173)][_0x5c5628(0x16c)])),_0x52b05f['attributes']=_0x52b05f['attributes'][_0x5c5628(0x17f)]?_0x52b05f[_0x5c5628(0x154)]:_0x596b20[_0x5c5628(0x15b)],_0x3b3d91['query'][_0x5c5628(0x16e)]&&(_0x52b05f[_0x5c5628(0x169)]=[{'all':!![]}]),_0x52b05f=_[_0x5c5628(0x163)]({},_0x52b05f,_0x3b3d91[_0x5c5628(0x180)]),db[_0x5c5628(0x176)][_0x5c5628(0x15e)](_0x52b05f)[_0x5c5628(0x17d)](handleEntityNotFound(_0x584eec,null))[_0x5c5628(0x17d)](respondWithResult(_0x584eec,null))[_0x5c5628(0x15f)](handleError(_0x584eec,null));},exports[a36_0x41c4e2(0x164)]=function(_0x1228f8,_0x51a2e9){const _0x421047=a36_0x41c4e2;let _0x3db5be={'where':{'id':_0x1228f8[_0x421047(0x158)]['id']}};const _0x54afa2={};return _0x54afa2[_0x421047(0x15b)]=_[_0x421047(0x189)](db['Attachment']['rawAttributes']),_0x3db5be[_0x421047(0x154)]=_['intersection'](_0x54afa2['model'],qs[_0x421047(0x16c)](_0x1228f8[_0x421047(0x173)][_0x421047(0x16c)])),_0x3db5be[_0x421047(0x154)]=_0x3db5be['attributes']['length']?_0x3db5be[_0x421047(0x154)]:_0x54afa2[_0x421047(0x15b)],_0x1228f8[_0x421047(0x173)][_0x421047(0x16e)]&&(_0x3db5be[_0x421047(0x169)]=[{'all':!![]}]),_0x3db5be=_[_0x421047(0x163)]({},_0x3db5be,_0x1228f8['options']),db[_0x421047(0x176)][_0x421047(0x15e)](_0x3db5be)[_0x421047(0x17d)](handleEntityNotFound(_0x51a2e9,null))[_0x421047(0x17d)](function(_0x1a36dc){const _0x49e9c7=_0x421047;if(_0x1a36dc){let _0x107e2a=_0x1a36dc[_0x49e9c7(0x172)]({'plain':!![]});return _0x107e2a=qs[_0x49e9c7(0x170)](_0x107e2a,['id',_0x49e9c7(0x167),'updatedAt']),_0x1228f8[_0x49e9c7(0x18d)]=_['omit'](_0x1228f8[_0x49e9c7(0x18d)],['id',_0x49e9c7(0x167),_0x49e9c7(0x183)]),db[_0x49e9c7(0x176)][_0x49e9c7(0x16b)](_[_0x49e9c7(0x163)](_0x107e2a,_0x1228f8[_0x49e9c7(0x18d)]),{'include':_0x1228f8[_0x49e9c7(0x173)][_0x49e9c7(0x16e)]?[{'all':!![]}]:undefined});}})['then'](respondWithResult(_0x51a2e9,0xc9))['catch'](handleError(_0x51a2e9,null));},exports[a36_0x41c4e2(0x186)]=function(_0x704ff7,_0x45bdb6){const _0x259c7e=a36_0x41c4e2;return _0x704ff7['body']['id']&&delete _0x704ff7[_0x259c7e(0x18d)]['id'],db['Attachment'][_0x259c7e(0x15e)]({'where':{'id':_0x704ff7[_0x259c7e(0x158)]['id']}})[_0x259c7e(0x17d)](handleEntityNotFound(_0x45bdb6,null))[_0x259c7e(0x17d)](saveUpdates(_0x704ff7[_0x259c7e(0x18d)],null))['then'](respondWithResult(_0x45bdb6,null))['catch'](handleError(_0x45bdb6,null));},exports[a36_0x41c4e2(0x17a)]=function(_0x5b46b5,_0x32e9f8){const _0x2c4527=a36_0x41c4e2;return db['Attachment'][_0x2c4527(0x15e)]({'where':{'id':_0x5b46b5[_0x2c4527(0x158)]['id']}})[_0x2c4527(0x17d)](handleEntityNotFound(_0x32e9f8,null))[_0x2c4527(0x17d)](removeEntity(_0x32e9f8,null))[_0x2c4527(0x15f)](handleError(_0x32e9f8,null));},exports['create']=function(_0x2aa53e,_0x112586){const _0x2305b3=a36_0x41c4e2;return _0x2aa53e['body'][_0x2305b3(0x161)]=_0x2aa53e[_0x2305b3(0x157)]['originalname'],_0x2aa53e[_0x2305b3(0x18d)][_0x2305b3(0x17e)]=_0x2aa53e[_0x2305b3(0x157)][_0x2305b3(0x17b)],_0x2aa53e[_0x2305b3(0x18d)]['type']=_0x2aa53e[_0x2305b3(0x157)][_0x2305b3(0x188)],db[_0x2305b3(0x176)]['create'](_0x2aa53e[_0x2305b3(0x18d)])['then'](respondWithResult(_0x112586,0xc9))[_0x2305b3(0x15f)](handleError(_0x112586,null));},exports[a36_0x41c4e2(0x166)]=function(_0x5be0d8,_0x275dc7){const _0x4415ab=a36_0x41c4e2;return db['Attachment'][_0x4415ab(0x15e)]({'where':{'id':_0x5be0d8[_0x4415ab(0x158)]['id']},'raw':!![]})[_0x4415ab(0x17d)](handleEntityNotFound(_0x275dc7,null))[_0x4415ab(0x17d)](function(_0x43909a){const _0xde064c=_0x4415ab;if(_0x43909a)return _0x275dc7['download'](path[_0xde064c(0x155)](config[_0xde064c(0x153)],_0xde064c(0x156),_0x43909a['basename']));})['catch'](handleError(_0x275dc7,null));}; \ No newline at end of file diff --git a/server/api/attachment/attachment.model.js b/server/api/attachment/attachment.model.js index acb39a8..1f8550d 100644 --- a/server/api/attachment/attachment.model.js +++ b/server/api/attachment/attachment.model.js @@ -1 +1 @@ -const a30_0x41ad=['Attachment','attachments','define'];(function(_0x3284a2,_0x41ad8b){const _0x4a3a51=function(_0x41646d){while(--_0x41646d){_0x3284a2['push'](_0x3284a2['shift']());}};_0x4a3a51(++_0x41ad8b);}(a30_0x41ad,0x1a8));const a30_0x4a3a=function(_0x3284a2,_0x41ad8b){_0x3284a2=_0x3284a2-0x0;let _0x4a3a51=a30_0x41ad[_0x3284a2];return _0x4a3a51;};'use strict';const attributes=require('./attachment.attributes');module['exports']=function(_0x41646d){const _0x440e14=a30_0x4a3a,_0x55c38f=_0x41646d[_0x440e14('0x1')](_0x440e14('0x2'),attributes,{'tableName':_0x440e14('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x55c38f;}; \ No newline at end of file +const a37_0x52a0=['function','Attachment','exports','./attachment.attributes'];(function(_0x38a05a,_0x273fbe){const _0x52a089=function(_0x1052c4){while(--_0x1052c4){_0x38a05a['push'](_0x38a05a['shift']());}};_0x52a089(++_0x273fbe);}(a37_0x52a0,0x188));const a37_0x1052=function(_0x38a05a,_0x273fbe){_0x38a05a=_0x38a05a-0x173;let _0x52a089=a37_0x52a0[_0x38a05a];return _0x52a089;};const a37_0x50b419=a37_0x1052;'use strict';const {Model}=require('sequelize'),{attributes}=require(a37_0x50b419(0x176)),{options}=require('./attachment.options');class Attachment extends Model{}function init(_0x2c81e5,_0xcb411a){const _0x400c90=a37_0x50b419,_0x83a297=options(_0x2c81e5),_0xffc68a=typeof _0xcb411a===_0x400c90(0x173)?_0xcb411a(_0x83a297):_0x83a297;return Attachment['init'](attributes,_0xffc68a),Attachment;}module[a37_0x50b419(0x175)][a37_0x50b419(0x174)]=Attachment,module[a37_0x50b419(0x175)]['init']=init; \ No newline at end of file diff --git a/server/api/attachment/attachment.options.js b/server/api/attachment/attachment.options.js new file mode 100644 index 0000000..b713f84 --- /dev/null +++ b/server/api/attachment/attachment.options.js @@ -0,0 +1 @@ +var a38_0x456b=['exports','options'];(function(_0x8c4e2a,_0x2f3a75){var _0x456b74=function(_0x6534ea){while(--_0x6534ea){_0x8c4e2a['push'](_0x8c4e2a['shift']());}};_0x456b74(++_0x2f3a75);}(a38_0x456b,0x145));var a38_0x6534=function(_0x8c4e2a,_0x2f3a75){_0x8c4e2a=_0x8c4e2a-0x154;var _0x456b74=a38_0x456b[_0x8c4e2a];return _0x456b74;};var a38_0x446015=a38_0x6534;function options(_0x1cc360){return{'sequelize':_0x1cc360,'tableName':'attachments','paranoid':![],'indexes':[],'timestamps':!![]};}module[a38_0x446015(0x155)][a38_0x446015(0x154)]=options; \ No newline at end of file diff --git a/server/api/attachment/attachment.rpc.js b/server/api/attachment/attachment.rpc.js index 606bba4..361fa89 100644 --- a/server/api/attachment/attachment.rpc.js +++ b/server/api/attachment/attachment.rpc.js @@ -1 +1 @@ -const a31_0x5df8=['CreateAttachment','create','then','error','raw','../../mysqldb','catch','stringify','message','../../config/logger','debug','info','Attachment','options'];(function(_0x4eb77e,_0x5df8f8){const _0x3b94f9=function(_0x347546){while(--_0x347546){_0x4eb77e['push'](_0x4eb77e['shift']());}};_0x3b94f9(++_0x5df8f8);}(a31_0x5df8,0x114));const a31_0x3b94=function(_0x4eb77e,_0x5df8f8){_0x4eb77e=_0x4eb77e-0x0;let _0x3b94f9=a31_0x5df8[_0x4eb77e];return _0x3b94f9;};const _0x364341=a31_0x3b94;'use strict';const db=require(_0x364341('0x9'))['db'],logger=require(_0x364341('0xd'))('rpc');exports[_0x364341('0x4')]=function(_0x347546){const _0x553e22=this;return new Promise(function(_0x31d9c2,_0x14ee3a){const _0x20d458=a31_0x3b94;return db[_0x20d458('0x2')][_0x20d458('0x5')](_0x347546['body'],{'raw':_0x347546[_0x20d458('0x3')]?_0x347546['options'][_0x20d458('0x8')]===undefined?!![]:![]:!![]})[_0x20d458('0x6')](function(_0x228191){const _0x4d8f11=_0x20d458;logger[_0x4d8f11('0x1')](_0x4d8f11('0x4'),_0x347546),logger[_0x4d8f11('0x0')](_0x4d8f11('0x4'),_0x347546,JSON[_0x4d8f11('0xb')](_0x228191)),_0x31d9c2(_0x228191);})[_0x20d458('0xa')](function(_0x1ff689){const _0x1afa22=_0x20d458;logger['error'](_0x1afa22('0x4'),_0x1ff689[_0x1afa22('0xc')],_0x347546),_0x14ee3a(_0x553e22[_0x1afa22('0x7')](0x1f4,_0x1ff689[_0x1afa22('0xc')]));});});}; \ No newline at end of file +const a39_0x2a4d=['info','../../mysqldb','stringify','options','error','body','CreateAttachment','create','debug','catch','Attachment','then'];(function(_0x4bee39,_0x5b35a7){const _0x2a4d21=function(_0x7a35b3){while(--_0x7a35b3){_0x4bee39['push'](_0x4bee39['shift']());}};_0x2a4d21(++_0x5b35a7);}(a39_0x2a4d,0x13c));const a39_0x7a35=function(_0x4bee39,_0x5b35a7){_0x4bee39=_0x4bee39-0xa6;let _0x2a4d21=a39_0x2a4d[_0x4bee39];return _0x2a4d21;};const a39_0x3c9b89=a39_0x7a35;'use strict';const db=require(a39_0x3c9b89(0xaf))['db'],logger=require('../../config/logger')('rpc');exports[a39_0x3c9b89(0xa8)]=function(_0x328657){const _0x198c58=this;return new Promise(function(_0x6fbc24,_0xf815e){const _0x5a36b8=a39_0x7a35;return db[_0x5a36b8(0xac)][_0x5a36b8(0xa9)](_0x328657[_0x5a36b8(0xa7)],{'raw':_0x328657[_0x5a36b8(0xb1)]?_0x328657[_0x5a36b8(0xb1)]['raw']===undefined?!![]:![]:!![]})[_0x5a36b8(0xad)](function(_0x395762){const _0x123785=_0x5a36b8;logger[_0x123785(0xae)](_0x123785(0xa8),_0x328657),logger[_0x123785(0xaa)]('CreateAttachment',_0x328657,JSON[_0x123785(0xb0)](_0x395762)),_0x6fbc24(_0x395762);})[_0x5a36b8(0xab)](function(_0x9f9fac){const _0x1b6904=_0x5a36b8;logger[_0x1b6904(0xa6)](_0x1b6904(0xa8),_0x9f9fac['message'],_0x328657),_0xf815e(_0x198c58[_0x1b6904(0xa6)](0x1f4,_0x9f9fac['message']));});});}; \ No newline at end of file diff --git a/server/api/attachment/index.js b/server/api/attachment/index.js index 9b8c37d..21fe1f8 100644 --- a/server/api/attachment/index.js +++ b/server/api/attachment/index.js @@ -1 +1 @@ -const a32_0x11d9=['delete','express','../../components/auth/service','index','join','diskStorage','destroy','clone','replace','/:id/clone','create','get','download','show','%s-%s','post','exports','isAuthenticated','put','./attachment.controller','single','/:id','update','Router','root'];(function(_0x47d21e,_0x11d96b){const _0x1f0665=function(_0x263eb7){while(--_0x263eb7){_0x47d21e['push'](_0x47d21e['shift']());}};_0x1f0665(++_0x11d96b);}(a32_0x11d9,0x119));const a32_0x1f06=function(_0x47d21e,_0x11d96b){_0x47d21e=_0x47d21e-0x0;let _0x1f0665=a32_0x11d9[_0x47d21e];return _0x1f0665;};const _0x30ecd0=a32_0x1f06;'use strict';const multer=require('multer'),util=require('util'),path=require('path'),express=require(_0x30ecd0('0x14')),router=express[_0x30ecd0('0x11')](),auth=require(_0x30ecd0('0x15')),config=require('../../config/environment'),controller=require(_0x30ecd0('0xd'));router['get']('/',auth[_0x30ecd0('0xb')](),controller[_0x30ecd0('0x16')]),router[_0x30ecd0('0x5')](_0x30ecd0('0xf'),auth[_0x30ecd0('0xb')](),controller[_0x30ecd0('0x7')]),router['get']('/:id/download',auth[_0x30ecd0('0xb')](),controller[_0x30ecd0('0x6')]),router['post'](_0x30ecd0('0x3'),auth['isAuthenticated'](),controller[_0x30ecd0('0x1')]);const upload=multer({'storage':multer[_0x30ecd0('0x18')]({'destination':function(_0x263eb7,_0x12b047,_0x3f2c8a){const _0x4f8242=_0x30ecd0;_0x3f2c8a(null,path[_0x4f8242('0x17')](config[_0x4f8242('0x12')],'files/attachments/'));},'filename':function(_0x57222e,_0x275818,_0x5e98e2){const _0x109f03=_0x30ecd0;_0x5e98e2(null,util['format'](_0x109f03('0x8'),Date['now'](),_0x275818['originalname'][_0x109f03('0x2')](/[+@&/\\#,+()$~%'":*?<>{}\s\\|]/g,'-')));}})});router[_0x30ecd0('0x9')]('/',upload[_0x30ecd0('0xe')]('file'),controller[_0x30ecd0('0x4')]),router[_0x30ecd0('0xc')](_0x30ecd0('0xf'),auth[_0x30ecd0('0xb')](),controller[_0x30ecd0('0x10')]),router[_0x30ecd0('0x13')](_0x30ecd0('0xf'),auth[_0x30ecd0('0xb')](),controller[_0x30ecd0('0x0')]),module[_0x30ecd0('0xa')]=router; \ No newline at end of file +const a40_0x3b9b=['destroy','originalname','clone','update','util','post','diskStorage','isAuthenticated','delete','/:id','get','create','multer','now','express','path','index','put','server/files/attachments/','format','replace','Router','show','single'];(function(_0x378181,_0x1de1ed){const _0x3b9b91=function(_0x1812a0){while(--_0x1812a0){_0x378181['push'](_0x378181['shift']());}};_0x3b9b91(++_0x1de1ed);}(a40_0x3b9b,0xce));const a40_0x1812=function(_0x378181,_0x1de1ed){_0x378181=_0x378181-0x1f0;let _0x3b9b91=a40_0x3b9b[_0x378181];return _0x3b9b91;};const a40_0x1c7d48=a40_0x1812;'use strict';const multer=require(a40_0x1c7d48(0x206)),util=require(a40_0x1c7d48(0x1fe)),path=require(a40_0x1c7d48(0x1f1)),express=require(a40_0x1c7d48(0x1f0)),router=express[a40_0x1c7d48(0x1f7)](),auth=require('../../components/auth/service'),config=require('../../config/environment'),controller=require('./attachment.controller');router['get']('/',auth[a40_0x1c7d48(0x201)](),controller[a40_0x1c7d48(0x1f2)]),router['get'](a40_0x1c7d48(0x203),auth[a40_0x1c7d48(0x201)](),controller[a40_0x1c7d48(0x1f8)]),router[a40_0x1c7d48(0x204)]('/:id/download',auth['isAuthenticated'](),controller['download']),router[a40_0x1c7d48(0x1ff)]('/:id/clone',auth[a40_0x1c7d48(0x201)](),controller[a40_0x1c7d48(0x1fc)]);const upload=multer({'storage':multer[a40_0x1c7d48(0x200)]({'destination':function(_0x1e66f6,_0x4560b8,_0x1c0522){const _0x26ecef=a40_0x1c7d48;_0x1c0522(null,path['join'](config['root'],_0x26ecef(0x1f4)));},'filename':function(_0x169d65,_0x831558,_0x2ad069){const _0x48dbe1=a40_0x1c7d48;_0x2ad069(null,util[_0x48dbe1(0x1f5)]('%s-%s',Date[_0x48dbe1(0x207)](),_0x831558[_0x48dbe1(0x1fb)][_0x48dbe1(0x1f6)](/[+@&/\\#,+()$~%'":*?<>{}\s\\|]/g,'-')));}})});router['post']('/',upload[a40_0x1c7d48(0x1f9)]('file'),controller[a40_0x1c7d48(0x205)]),router[a40_0x1c7d48(0x1f3)](a40_0x1c7d48(0x203),auth[a40_0x1c7d48(0x201)](),controller[a40_0x1c7d48(0x1fd)]),router[a40_0x1c7d48(0x202)](a40_0x1c7d48(0x203),auth[a40_0x1c7d48(0x201)](),controller[a40_0x1c7d48(0x1fa)]),module['exports']=router; \ No newline at end of file diff --git a/server/api/authGoogle/authGoogle.controller.js b/server/api/authGoogle/authGoogle.controller.js index 9f0e366..0172957 100644 --- a/server/api/authGoogle/authGoogle.controller.js +++ b/server/api/authGoogle/authGoogle.controller.js @@ -1 +1 @@ -const a33_0x2671=['getLicense','agent','blocked','profile','blockedAt','add','catch','Setting','../../mysqldb','blockDuration','Strategy','Incorrect\x20username\x20and/or\x20password.\x20Please\x20retry\x20again\x20or\x20contact\x20the\x20administrator.','passport-google-oauth20','passport','callbackURL','map','disabled','email','clientID','moment','emails','user','findOne','admin','clientSecret','clearBlockUser','login','/login','../../config/utils','Use','allowedLoginAttempts','google','then','secret','authenticate'];(function(_0x4f2511,_0x2671c2){const _0x430075=function(_0x4f6dce){while(--_0x4f6dce){_0x4f2511['push'](_0x4f2511['shift']());}};_0x430075(++_0x2671c2);}(a33_0x2671,0x1e7));const a33_0x4300=function(_0x4f2511,_0x2671c2){_0x4f2511=_0x4f2511-0x0;let _0x430075=a33_0x2671[_0x4f2511];return _0x430075;};const _0xfc0dfc=a33_0x4300;'use strict';const _=require('lodash'),passport=require(_0xfc0dfc('0x10')),GoogleStrategy=require(_0xfc0dfc('0xf'))[_0xfc0dfc('0xd')],moment=require(_0xfc0dfc('0x16')),db=require(_0xfc0dfc('0xb'))['db'],config=require('../../config/environment'),utils=require(_0xfc0dfc('0x1f')),{Op}=require('sequelize');exports[_0xfc0dfc('0x1d')]=passport['authenticate'](_0xfc0dfc('0x22'),{'failureRedirect':_0xfc0dfc('0x1e'),'scope':[_0xfc0dfc('0x6'),_0xfc0dfc('0x14')],'session':![]}),exports['callback']=passport[_0xfc0dfc('0x2')](_0xfc0dfc('0x22'),{'failureRedirect':_0xfc0dfc('0x1e'),'session':![]}),passport['use'](new GoogleStrategy({'clientID':config[_0xfc0dfc('0x22')]?config[_0xfc0dfc('0x22')][_0xfc0dfc('0x15')]:'id','clientSecret':config[_0xfc0dfc('0x22')]?config[_0xfc0dfc('0x22')][_0xfc0dfc('0x1b')]:_0xfc0dfc('0x1'),'callbackURL':config['google']?config[_0xfc0dfc('0x22')][_0xfc0dfc('0x11')]:''},function(_0x4f6dce,_0x1e6a16,_0x459349,_0x4a98d6){const _0x5b1360=_0xfc0dfc;let _0x111a25,_0x110fdd;return db[_0x5b1360('0xa')][_0x5b1360('0x19')]({'where':{'id':0x1},'attributes':[_0x5b1360('0x21'),_0x5b1360('0xc')],'raw':!![]})[_0x5b1360('0x0')](function(_0x135ba4){const _0x320883=_0x5b1360;return _0x111a25=_0x135ba4,db[_0x320883('0x20')][_0x320883('0x19')]({'where':{'email':_[_0x320883('0x12')](_0x459349[_0x320883('0x17')],'value'),'role':{[Op['or']]:[_0x320883('0x1a'),_0x320883('0x18'),_0x320883('0x4')]}}});})['then'](function(_0x5257a2){const _0x333dc0=_0x5b1360;_0x110fdd=_0x5257a2;if(_0x110fdd){if(_0x110fdd[_0x333dc0('0x13')])return _0x4a98d6('Incorrect\x20username\x20and/or\x20password.\x20Please\x20retry\x20again\x20or\x20contact\x20the\x20administrator.');else return _0x111a25['blockDuration']>0x0?_0x110fdd[_0x333dc0('0x5')]?moment(_0x110fdd[_0x333dc0('0x7')])[_0x333dc0('0x8')](_0x111a25[_0x333dc0('0xc')],'minutes')>moment()?_0x4a98d6(_0x333dc0('0xe')):utils[_0x333dc0('0x1c')](_0x110fdd,0x0,![],null)[_0x333dc0('0x0')](function(){const _0x27bf08=_0x333dc0;return utils[_0x27bf08('0x3')](_0x110fdd);})[_0x333dc0('0x0')](function(){return _0x4a98d6(null,_0x110fdd);}):utils[_0x333dc0('0x3')](_0x110fdd)[_0x333dc0('0x0')](function(){return _0x4a98d6(null,_0x110fdd);}):utils['getLicense'](_0x110fdd)[_0x333dc0('0x0')](function(){return _0x4a98d6(null,_0x110fdd);});}return _0x4a98d6(_0x333dc0('0xe'));})[_0x5b1360('0x9')](function(_0x4b7fdf){_0x4a98d6(_0x4b7fdf);});})); \ No newline at end of file +const a41_0x38a0=['secret','disabled','lodash','google','authenticate','emails','findOne','/login','map','moment','User','passport','getLicense','callback','login','Incorrect\x20username\x20and/or\x20password.\x20Please\x20retry\x20again\x20or\x20contact\x20the\x20administrator.','value','blocked','callbackURL','../../mysqldb','admin','then','../../config/environment','add','passport-google-oauth20','Strategy','clearBlockUser','clientSecret','blockedAt','../../config/utils'];(function(_0x4aa1f7,_0x32d700){const _0x38a060=function(_0x440851){while(--_0x440851){_0x4aa1f7['push'](_0x4aa1f7['shift']());}};_0x38a060(++_0x32d700);}(a41_0x38a0,0x149));const a41_0x4408=function(_0x4aa1f7,_0x32d700){_0x4aa1f7=_0x4aa1f7-0x7b;let _0x38a060=a41_0x38a0[_0x4aa1f7];return _0x38a060;};const a41_0x54fe3f=a41_0x4408;'use strict';const _=require(a41_0x54fe3f(0x7e)),passport=require(a41_0x54fe3f(0x87)),GoogleStrategy=require(a41_0x54fe3f(0x94))[a41_0x54fe3f(0x95)],moment=require(a41_0x54fe3f(0x85)),{db}=require(a41_0x54fe3f(0x8f)),config=require(a41_0x54fe3f(0x92)),utils=require(a41_0x54fe3f(0x7b)),{Op}=require('sequelize');exports[a41_0x54fe3f(0x8a)]=passport[a41_0x54fe3f(0x80)](a41_0x54fe3f(0x7f),{'failureRedirect':a41_0x54fe3f(0x83),'scope':['profile','email'],'session':![]}),exports[a41_0x54fe3f(0x89)]=passport[a41_0x54fe3f(0x80)](a41_0x54fe3f(0x7f),{'failureRedirect':a41_0x54fe3f(0x83),'session':![]}),passport['use'](new GoogleStrategy({'clientID':config[a41_0x54fe3f(0x7f)]?config['google']['clientID']:'id','clientSecret':config[a41_0x54fe3f(0x7f)]?config[a41_0x54fe3f(0x7f)][a41_0x54fe3f(0x97)]:a41_0x54fe3f(0x7c),'callbackURL':config['google']?config[a41_0x54fe3f(0x7f)][a41_0x54fe3f(0x8e)]:''},function(_0x255800,_0x2dc7e8,_0x56d275,_0x48c52f){const _0x46502b=a41_0x54fe3f;let _0x582d6d,_0x33b39c;return db['Setting']['findOne']({'where':{'id':0x1},'attributes':['allowedLoginAttempts','blockDuration'],'raw':!![]})[_0x46502b(0x91)](function(_0x387a96){const _0x42cbbc=_0x46502b;return _0x582d6d=_0x387a96,db[_0x42cbbc(0x86)][_0x42cbbc(0x82)]({'where':{'email':_[_0x42cbbc(0x84)](_0x56d275[_0x42cbbc(0x81)],_0x42cbbc(0x8c)),'role':{[Op['or']]:[_0x42cbbc(0x90),'user','agent']}}});})[_0x46502b(0x91)](function(_0x55047c){const _0x778c7a=_0x46502b;_0x33b39c=_0x55047c;if(_0x33b39c){if(_0x33b39c[_0x778c7a(0x7d)])return _0x48c52f('Incorrect\x20username\x20and/or\x20password.\x20Please\x20retry\x20again\x20or\x20contact\x20the\x20administrator.');else return _0x582d6d['blockDuration']>0x0?_0x33b39c[_0x778c7a(0x8d)]?moment(_0x33b39c[_0x778c7a(0x98)])[_0x778c7a(0x93)](_0x582d6d['blockDuration'],'minutes')>moment()?_0x48c52f(_0x778c7a(0x8b)):utils[_0x778c7a(0x96)](_0x33b39c,0x0,![],null)[_0x778c7a(0x91)](function(){const _0x2f6749=_0x778c7a;return utils[_0x2f6749(0x88)](_0x33b39c);})[_0x778c7a(0x91)](function(){return _0x48c52f(null,_0x33b39c);}):utils[_0x778c7a(0x88)](_0x33b39c)[_0x778c7a(0x91)](function(){return _0x48c52f(null,_0x33b39c);}):utils[_0x778c7a(0x88)](_0x33b39c)[_0x778c7a(0x91)](function(){return _0x48c52f(null,_0x33b39c);});}return _0x48c52f(_0x778c7a(0x8b));})['catch'](function(_0x247d4e){_0x48c52f(_0x247d4e);});})); \ No newline at end of file diff --git a/server/api/authGoogle/index.js b/server/api/authGoogle/index.js index cd1bbbb..866e3f7 100644 --- a/server/api/authGoogle/index.js +++ b/server/api/authGoogle/index.js @@ -1 +1 @@ -const a34_0x5a23=['isMiddleware','get','exports','setTokenCookie','../user/user.controller.js','express','../../components/auth/service','/callback','callback','login','./authGoogle.controller'];(function(_0x10c4ef,_0x5a2366){const _0x47bcd4=function(_0xfdd82a){while(--_0xfdd82a){_0x10c4ef['push'](_0x10c4ef['shift']());}};_0x47bcd4(++_0x5a2366);}(a34_0x5a23,0x105));const a34_0x47bc=function(_0x10c4ef,_0x5a2366){_0x10c4ef=_0x10c4ef-0x0;let _0x47bcd4=a34_0x5a23[_0x10c4ef];return _0x47bcd4;};const _0x5b653d=a34_0x47bc;'use strict';const express=require(_0x5b653d('0x8')),router=express['Router'](),controller=require(_0x5b653d('0x2')),userController=require(_0x5b653d('0x7')),authService=require(_0x5b653d('0x9'));router[_0x5b653d('0x4')]('/',controller[_0x5b653d('0x1')]),router[_0x5b653d('0x4')](_0x5b653d('0xa'),controller[_0x5b653d('0x0')],authService[_0x5b653d('0x3')],userController[_0x5b653d('0x1')],authService[_0x5b653d('0x6')]),module[_0x5b653d('0x5')]=router; \ No newline at end of file +const a42_0x4c1b=['exports','../../components/auth/service','get','setTokenCookie','../user/user.controller.js','login','./authGoogle.controller','isMiddleware','callback','express'];(function(_0x31da64,_0x19109c){const _0x4c1b8e=function(_0x197658){while(--_0x197658){_0x31da64['push'](_0x31da64['shift']());}};_0x4c1b8e(++_0x19109c);}(a42_0x4c1b,0x19e));const a42_0x1976=function(_0x31da64,_0x19109c){_0x31da64=_0x31da64-0x1da;let _0x4c1b8e=a42_0x4c1b[_0x31da64];return _0x4c1b8e;};const a42_0x4db1c9=a42_0x1976;'use strict';const express=require(a42_0x4db1c9(0x1df)),router=express['Router'](),controller=require(a42_0x4db1c9(0x1dc)),userController=require(a42_0x4db1c9(0x1da)),authService=require(a42_0x4db1c9(0x1e1));router[a42_0x4db1c9(0x1e2)]('/',controller[a42_0x4db1c9(0x1db)]),router[a42_0x4db1c9(0x1e2)]('/callback',controller[a42_0x4db1c9(0x1de)],authService[a42_0x4db1c9(0x1dd)],userController[a42_0x4db1c9(0x1db)],authService[a42_0x4db1c9(0x1e3)]),module[a42_0x4db1c9(0x1e0)]=router; \ No newline at end of file diff --git a/server/api/authLocal/authLocal.controller.js b/server/api/authLocal/authLocal.controller.js index b88a1c1..7b8b11b 100644 --- a/server/api/authLocal/authLocal.controller.js +++ b/server/api/authLocal/authLocal.controller.js @@ -1 +1 @@ -const a35_0x39a9=['name','admin','port','add','merge','previousPasswords','MailServerOut','Incorrect\x20username\x20and/or\x20password.\x20Please\x20retry\x20again\x20or\x20contact\x20the\x20administrator.','Strategy','This\x20email\x20is\x20not\x20registered.','SendMail','signToken','User','resetPasswordToken','lodash','sequelize','message','role','MailAccount','request','passport-local','status','host','save','then','blocked','stringify','authentication','format','Email\x20parameter\x20is\x20missing','Smtp','minutes','error','enforcePasswordHistory','securePassword','params','allowedLoginAttempts','/reset/','local','email','blockedAt','authenticate','loginAttempts','\x22%s\x22\x20<%s>','blockDuration','user','resetPasswordExpires','http://','findOne','The\x20user\x20is\x20blocked.\x20Please\x20contact\x20the\x20administrator.','agent','../../mysqldb','secure','toLowerCase','generate','validatePasswordPattern','pass','use','reset','catch','Setting','Reset\x20Email\x20sent!','Something\x20went\x20wrong,\x20please\x20try\x20again.','now','clearBlockUser','service','getLicense','randomstring','token','body','send','passport','passwordHistoryLimit','trim','password','login','validatePasswordHistory','moment','disabled'];(function(_0x4b3c89,_0x39a93e){const _0xa4e6ec=function(_0xc36780){while(--_0xc36780){_0x4b3c89['push'](_0x4b3c89['shift']());}};_0xa4e6ec(++_0x39a93e);}(a35_0x39a9,0x189));const a35_0xa4e6=function(_0x4b3c89,_0x39a93e){_0x4b3c89=_0x4b3c89-0x0;let _0xa4e6ec=a35_0x39a9[_0x4b3c89];return _0xa4e6ec;};const _0x45f103=a35_0xa4e6;'use strict';const util=require('util'),passport=require(_0x45f103('0x49')),LocalStrategy=require(_0x45f103('0x16'))[_0x45f103('0xa')],jayson=require('jayson/promise'),_=require(_0x45f103('0x10')),rs=require(_0x45f103('0x45')),moment=require(_0x45f103('0x0')),db=require(_0x45f103('0x35'))['db'],{Op}=require(_0x45f103('0x11')),authService=require('../../components/auth/service'),utils=require('../../config/utils'),client=jayson['client']['http']({'port':0x232b});function localAuthenticate(_0xc36780,_0x5c3d03,_0x3b9b7a,_0x2f92ef){const _0x1ad28f=_0x45f103;let _0x32586b,_0x321bf2;return db[_0x1ad28f('0x3e')][_0x1ad28f('0x32')]({'where':{'id':0x1},'attributes':[_0x1ad28f('0x26'),'blockDuration'],'raw':!![]})[_0x1ad28f('0x1a')](function(_0x48c1f0){const _0x545e73=_0x1ad28f;return _0x32586b=_0x48c1f0,_0xc36780[_0x545e73('0x32')]({'attributes':['id','name',_0x545e73('0x4c'),'salt',_0x545e73('0x13'),_0x545e73('0x1'),_0x545e73('0x1b'),'blockedAt',_0x545e73('0x2c')],'where':{'name':_0x5c3d03,'role':{[Op['or']]:[_0x545e73('0x3'),'user',_0x545e73('0x34')]}}});})[_0x1ad28f('0x1a')](function(_0xacc14c){const _0x2f0a59=_0x1ad28f;if(!_0xacc14c||_0xacc14c&&_0xacc14c[_0x2f0a59('0x2')]!==_0x5c3d03)throw new Error(_0x2f0a59('0x9'));else return _0x321bf2=_0xacc14c,_0x321bf2;})['then'](function(){const _0x451eff=_0x1ad28f;_0x321bf2[_0x451eff('0x2b')](_0x3b9b7a,function(_0x3a437f,_0x27f3f5){const _0xa91245=_0x451eff,_0x1e0a5b=_0x321bf2[_0xa91245('0x2c')]+0x1;if(_0x3a437f)return _0x2f92ef(_0x3a437f);else{if(!_0x27f3f5){if(_0x321bf2[_0xa91245('0x1')])return _0x2f92ef(null,![],{'message':_0xa91245('0x9')});else return _0x32586b['allowedLoginAttempts']>0x0?_0x321bf2[_0xa91245('0x1b')]?_0x32586b[_0xa91245('0x2e')]>0x0?moment(_0x321bf2[_0xa91245('0x2a')])[_0xa91245('0x5')](_0x32586b[_0xa91245('0x2e')],_0xa91245('0x21'))>moment()?_0x2f92ef(null,![],{'message':_0xa91245('0x9')}):utils[_0xa91245('0x42')](_0x321bf2,_0x1e0a5b,![],null)['then'](function(){const _0x36bb11=_0xa91245;return _0x2f92ef(null,![],{'message':_0x36bb11('0x9')});}):_0x2f92ef(null,![],{'message':_0xa91245('0x9')}):_0x1e0a5b>=_0x32586b[_0xa91245('0x26')]?utils[_0xa91245('0x42')](_0x321bf2,0x0,!![],moment())[_0xa91245('0x1a')](function(){const _0x155574=_0xa91245;return _0x2f92ef(null,![],{'message':_0x155574('0x9')});}):utils[_0xa91245('0x42')](_0x321bf2,_0x1e0a5b,![],null)[_0xa91245('0x1a')](function(){return _0x2f92ef(null,![],{'message':'Incorrect\x20username\x20and/or\x20password.\x20Please\x20retry\x20again\x20or\x20contact\x20the\x20administrator.'});}):_0x2f92ef(null,![],{'message':_0xa91245('0x9')});}else{if(_0x321bf2['disabled'])return _0x2f92ef(null,![],{'message':_0xa91245('0x9')});else return _0x32586b['allowedLoginAttempts']>0x0?_0x321bf2[_0xa91245('0x1b')]?_0x32586b[_0xa91245('0x2e')]>0x0?moment(_0x321bf2['blockedAt'])[_0xa91245('0x5')](_0x32586b[_0xa91245('0x2e')],_0xa91245('0x21'))>moment()?_0x2f92ef(null,![],{'message':'Incorrect\x20username\x20and/or\x20password.\x20Please\x20retry\x20again\x20or\x20contact\x20the\x20administrator.'}):utils['clearBlockUser'](_0x321bf2,0x0,![],null)[_0xa91245('0x1a')](function(){return utils['getLicense'](_0x321bf2);})['then'](function(){return _0x2f92ef(null,_0x321bf2);}):_0x2f92ef(null,![],{'message':_0xa91245('0x9')}):utils[_0xa91245('0x42')](_0x321bf2,0x0,![],null)['then'](function(){return utils['getLicense'](_0x321bf2);})[_0xa91245('0x1a')](function(){return _0x2f92ef(null,_0x321bf2);})[_0xa91245('0x3d')](function(_0xe0aff6){return _0x2f92ef(null,![],_0xe0aff6);}):_0x321bf2[_0xa91245('0x1b')]?_0x2f92ef(null,![],{'message':_0xa91245('0x9')}):utils[_0xa91245('0x44')](_0x321bf2)[_0xa91245('0x1a')](function(){return _0x2f92ef(null,_0x321bf2);});}}});})[_0x1ad28f('0x3d')](function(_0x158c85){return _0x2f92ef(null,![],_0x158c85);});}function sendServiceMail(_0x5dc5a5){const _0x276382=_0x45f103;return db[_0x276382('0x14')][_0x276382('0x32')]({'where':{'service':!![]},'attributes':['id',_0x276382('0x2'),_0x276382('0x29')],'include':[{'model':db[_0x276382('0x8')],'as':_0x276382('0x20')}]})[_0x276382('0x1a')](function(_0x4dec24){const _0x527263=_0x276382;if(!_0x4dec24)throw new Error('Unable\x20to\x20find\x20a\x20configured\x20SMTP\x20service!');const _0x36441e={'tls':{'rejectUnauthorized':![]}};_0x4dec24[_0x527263('0x20')]['service']?_0x36441e[_0x527263('0x43')]=_0x4dec24[_0x527263('0x20')]['service']:(_0x36441e[_0x527263('0x18')]=_0x4dec24[_0x527263('0x20')][_0x527263('0x18')],_0x36441e[_0x527263('0x4')]=_0x4dec24[_0x527263('0x20')][_0x527263('0x4')],_0x36441e[_0x527263('0x36')]=_0x4dec24[_0x527263('0x20')][_0x527263('0x36')]);_0x4dec24['Smtp'][_0x527263('0x1d')]&&(_0x36441e['auth']={'user':_0x4dec24[_0x527263('0x20')][_0x527263('0x2f')],'pass':_0x4dec24[_0x527263('0x20')][_0x527263('0x3a')]});const _0x64993b={'account':_0x36441e,'message':_[_0x527263('0x6')]({'from':util[_0x527263('0x1e')](_0x527263('0x2d'),_0x4dec24[_0x527263('0x2')],_0x4dec24[_0x527263('0x29')]||_0x4dec24[_0x527263('0x20')]['user'])},_0x5dc5a5)};return client[_0x527263('0x15')](_0x527263('0xc'),_0x64993b);})[_0x276382('0x1a')](function(_0x4397c3){const _0x1167d1=_0x276382;if(_0x4397c3[_0x1167d1('0x22')])throw new Error(util[_0x1167d1('0x1e')]('SendMail\x20error:\x20%s.\x20Please\x20contact\x20your\x20Administrator!',_0x4397c3['error'][_0x1167d1('0x12')]||JSON[_0x1167d1('0x1c')](_0x4397c3[_0x1167d1('0x22')])));return!![];});}function handleError(_0xb6bd11,_0x2d72da,_0x1f2cf7){const _0x4e3842=_0x45f103;return _0xb6bd11[_0x4e3842('0x17')](_0x2d72da||0x1f4)[_0x4e3842('0x48')]({'message':_0x1f2cf7?_0x1f2cf7[_0x4e3842('0x12')]||_0x1f2cf7:''});}exports[_0x45f103('0x4d')]=function(_0x30deb4,_0x1b2dc1,_0x16e4e2){const _0x328b16=_0x45f103;passport[_0x328b16('0x2b')](_0x328b16('0x28'),function(_0x555030,_0x588670,_0x36a029){const _0x3135ff=_0x328b16,_0x1a5b82=_0x555030||_0x36a029;if(_0x1a5b82)return handleError(_0x1b2dc1,0x191,_0x1a5b82);if(!_0x588670)return handleError(_0x1b2dc1,0x194,{'message':_0x3135ff('0x40')});else{const _0x22c6b8={'payload':{'id':_0x588670['id'],'role':_0x588670[_0x3135ff('0x13')]},'options':{'expiresIn':0x15180}};return authService[_0x3135ff('0xd')](_0x22c6b8)['then'](function(_0x502cbf){_0x1b2dc1['json']({'id':_0x588670['id'],'token':_0x502cbf,'statusCall':'','isAlreadyLogged':_0x588670['online']});});}})(_0x30deb4,_0x1b2dc1,_0x16e4e2);},exports['forgot']=function(_0x4e4827,_0x1c2722){const _0x565113=_0x45f103;if(!_0x4e4827[_0x565113('0x47')][_0x565113('0x29')])return handleError(_0x1c2722,0x1f4,{'message':_0x565113('0x1f')});const _0x3e9c4e=rs[_0x565113('0x38')]();_0x4e4827['body'][_0x565113('0x29')]=_0x4e4827[_0x565113('0x47')][_0x565113('0x29')][_0x565113('0x4b')]()[_0x565113('0x37')]();let _0x4dfade;return db[_0x565113('0x3e')][_0x565113('0x32')]({'where':{'id':0x1},'attributes':[_0x565113('0x26'),'blockDuration'],'raw':!![]})[_0x565113('0x1a')](function(_0x80befd){const _0xb2868e=_0x565113;return _0x4dfade=_0x80befd,db['Use']['findOne']({'where':{'email':_0x4e4827[_0xb2868e('0x47')][_0xb2868e('0x29')]}});})[_0x565113('0x1a')](function(_0x4c9455){const _0x29ef65=_0x565113;if(!_0x4c9455)throw new Error(_0x29ef65('0xb'));if(_0x4c9455[_0x29ef65('0x1')])throw new Error('The\x20user\x20is\x20disabled.\x20Please\x20contact\x20the\x20administrator.');if(_0x4c9455[_0x29ef65('0x1b')]){if(moment(_0x4c9455['blockedAt'])[_0x29ef65('0x5')](_0x4dfade[_0x29ef65('0x2e')],_0x29ef65('0x21'))>moment())throw new Error(_0x29ef65('0x33'));else _0x4c9455[_0x29ef65('0x1b')]=![],_0x4c9455[_0x29ef65('0x2a')]=null;}return _0x4c9455[_0x29ef65('0xf')]=_0x3e9c4e,_0x4c9455[_0x29ef65('0x30')]=Date[_0x29ef65('0x41')]()+0x36ee80,_0x4c9455[_0x29ef65('0x19')]();})['then'](function(){const _0xcd89e4=_0x565113;return sendServiceMail({'to':_0x4e4827[_0xcd89e4('0x47')][_0xcd89e4('0x29')],'subject':'xCally\x20Motion\x20Password\x20Reset','text':'You\x20are\x20receiving\x20this\x20because\x20you\x20(or\x20someone\x20else)\x20have\x20requested\x20the\x20reset\x20of\x20the\x20password\x20for\x20your\x20account.\x0a\x0a'+'Please\x20click\x20on\x20the\x20following\x20link,\x20or\x20paste\x20this\x20into\x20your\x20browser\x20to\x20complete\x20the\x20process:\x0a\x0a'+_0xcd89e4('0x31')+_0x4e4827['headers'][_0xcd89e4('0x18')]+_0xcd89e4('0x27')+_0x3e9c4e+'\x0a\x0a'+'If\x20you\x20did\x20not\x20request\x20this,\x20please\x20ignore\x20this\x20email\x20and\x20your\x20password\x20will\x20remain\x20unchanged.\x0a'});})[_0x565113('0x1a')](function(){const _0x3a2034=_0x565113;_0x1c2722['status'](0xc8)[_0x3a2034('0x48')]({'message':_0x3a2034('0x3f')});})[_0x565113('0x3d')](function(_0x3c73c5){return handleError(_0x1c2722,0x1f4,_0x3c73c5);});},exports[_0x45f103('0x3c')]=function(_0x2fe993,_0x37bd26){const _0x5b5fb1=_0x45f103;return db[_0x5b5fb1('0xe')][_0x5b5fb1('0x32')]({'where':{'resetPasswordToken':_0x2fe993[_0x5b5fb1('0x25')][_0x5b5fb1('0x46')],'resetPasswordExpires':{[Op['gt']]:Date[_0x5b5fb1('0x41')]()}}})[_0x5b5fb1('0x1a')](function(_0x31425c){const _0x27d43c=_0x5b5fb1;if(!_0x31425c)throw new Error('Password\x20reset\x20token\x20is\x20invalid\x20or\x20has\x20expired.');return db['Setting'][_0x27d43c('0x32')]({'attributes':['id',_0x27d43c('0x24'),_0x27d43c('0x23'),_0x27d43c('0x4a')]})[_0x27d43c('0x1a')](function(_0x2d1ee8){const _0x507571=_0x27d43c;if(_0x2d1ee8[_0x507571('0x24')])authService[_0x507571('0x39')](_0x2fe993[_0x507571('0x47')][_0x507571('0x4c')]);if(!_0x2d1ee8[_0x507571('0x23')]||!_0x31425c[_0x507571('0x7')])return _0x31425c;return authService[_0x507571('0x4e')](_0x2fe993['body'][_0x507571('0x4c')],_0x31425c[_0x507571('0x7')],_0x2d1ee8[_0x507571('0x4a')]),_0x31425c;})[_0x27d43c('0x1a')](function(){const _0x187ab2=_0x27d43c;return _0x31425c[_0x187ab2('0x4c')]=_0x2fe993[_0x187ab2('0x47')]['password'],_0x31425c[_0x187ab2('0xf')]=null,_0x31425c[_0x187ab2('0x30')]=null,_0x31425c[_0x187ab2('0x19')]();});})[_0x5b5fb1('0x1a')](function(){const _0x3e62a1=_0x5b5fb1;_0x37bd26[_0x3e62a1('0x17')](0xc8)[_0x3e62a1('0x48')]({'message':'Password\x20reset!'});})[_0x5b5fb1('0x3d')](function(_0x175dde){return handleError(_0x37bd26,0x1f4,_0x175dde);});},passport[_0x45f103('0x3b')](new LocalStrategy({'usernameField':_0x45f103('0x2'),'passwordField':_0x45f103('0x4c')},function(_0x2ef9d3,_0xc7059b,_0xa4aa78){return localAuthenticate(db['User'],_0x2ef9d3,_0xc7059b,_0xa4aa78);})); \ No newline at end of file +const a43_0x3bf2=['Reset\x20Email\x20sent!','token','findOne','clearBlockUser','blockDuration','now','format','Password\x20reset!','resetPasswordToken','service','blockedAt','name','SendMail','request','authenticate','passport','toLowerCase','../../mysqldb','auth','validatePasswordPattern','validatePasswordHistory','Password\x20reset\x20token\x20is\x20invalid\x20or\x20has\x20expired.','securePassword','MailServerOut','sequelize','agent','minutes','../../components/auth/service','randomstring','reset','../../config/utils','The\x20user\x20is\x20blocked.\x20Please\x20contact\x20the\x20administrator.','getLicense','Setting','Email\x20parameter\x20is\x20missing','trim','Strategy','port','then','admin','passport-local','The\x20user\x20is\x20disabled.\x20Please\x20contact\x20the\x20administrator.','jayson/promise','catch','disabled','send','role','enforcePasswordHistory','blocked','error','User','This\x20email\x20is\x20not\x20registered.','You\x20are\x20receiving\x20this\x20because\x20you\x20(or\x20someone\x20else)\x20have\x20requested\x20the\x20reset\x20of\x20the\x20password\x20for\x20your\x20account.\x0a\x0a','Smtp','Incorrect\x20username\x20and/or\x20password.\x20Please\x20retry\x20again\x20or\x20contact\x20the\x20administrator.','Unable\x20to\x20find\x20a\x20configured\x20SMTP\x20service!','util','previousPasswords','https://','http','forgot','add','save','resetPasswordExpires','Please\x20click\x20on\x20the\x20following\x20link,\x20or\x20paste\x20this\x20into\x20your\x20browser\x20to\x20complete\x20the\x20process:\x0a\x0a','stringify','allowedLoginAttempts','SendMail\x20error:\x20%s.\x20Please\x20contact\x20your\x20Administrator!','passwordHistoryLimit','merge','headers','email','status','authentication','moment','use','loginAttempts','Something\x20went\x20wrong,\x20please\x20try\x20again.','signToken','host','user','pass','body','password','message'];(function(_0x205d6f,_0x5f2a82){const _0x3bf26c=function(_0x468832){while(--_0x468832){_0x205d6f['push'](_0x205d6f['shift']());}};_0x3bf26c(++_0x5f2a82);}(a43_0x3bf2,0x155));const a43_0x4688=function(_0x205d6f,_0x5f2a82){_0x205d6f=_0x205d6f-0xd8;let _0x3bf26c=a43_0x3bf2[_0x205d6f];return _0x3bf26c;};const a43_0x23b2a1=a43_0x4688;'use strict';const util=require(a43_0x23b2a1(0x10f)),passport=require(a43_0x23b2a1(0xe6)),LocalStrategy=require(a43_0x23b2a1(0xff))[a43_0x23b2a1(0xfb)],jayson=require(a43_0x23b2a1(0x101)),_=require('lodash'),rs=require(a43_0x23b2a1(0xf3)),moment=require(a43_0x23b2a1(0x121)),{db}=require(a43_0x23b2a1(0xe8)),{Op}=require(a43_0x23b2a1(0xef)),authService=require(a43_0x23b2a1(0xf2)),utils=require(a43_0x23b2a1(0xf5)),client=jayson['client'][a43_0x23b2a1(0x112)]({'port':0x232b});function localAuthenticate(_0x3eea4e,_0xa78ad,_0x27d136,_0x1676e7){const _0x3f0fa7=a43_0x23b2a1;let _0x402142,_0x1f5c64;return db['Setting'][_0x3f0fa7(0xd9)]({'where':{'id':0x1},'attributes':[_0x3f0fa7(0x119),'blockDuration'],'raw':!![]})[_0x3f0fa7(0xfd)](function(_0x144bc2){const _0xf1098e=_0x3f0fa7;return _0x402142=_0x144bc2,_0x3eea4e[_0xf1098e(0xd9)]({'attributes':['id','name',_0xf1098e(0x12a),'salt',_0xf1098e(0x105),_0xf1098e(0x103),_0xf1098e(0x107),_0xf1098e(0xe1),_0xf1098e(0x123)],'where':{'name':_0xa78ad,'role':{[Op['or']]:[_0xf1098e(0xfe),_0xf1098e(0x127),_0xf1098e(0xf0)]}}});})[_0x3f0fa7(0xfd)](function(_0x32e160){const _0x46fc7c=_0x3f0fa7;if(!_0x32e160||_0x32e160&&_0x32e160[_0x46fc7c(0xe2)]!==_0xa78ad)throw new Error('Incorrect\x20username\x20and/or\x20password.\x20Please\x20retry\x20again\x20or\x20contact\x20the\x20administrator.');else return _0x1f5c64=_0x32e160,_0x1f5c64;})['then'](function(){const _0x2a9e9e=_0x3f0fa7;_0x1f5c64[_0x2a9e9e(0xe5)](_0x27d136,function(_0x33966c,_0xaf2c77){const _0x4bfa63=_0x2a9e9e,_0xc355a6=_0x1f5c64[_0x4bfa63(0x123)]+0x1;if(_0x33966c)return _0x1676e7(_0x33966c);else{if(!_0xaf2c77){if(_0x1f5c64['disabled'])return _0x1676e7(null,![],{'message':'Incorrect\x20username\x20and/or\x20password.\x20Please\x20retry\x20again\x20or\x20contact\x20the\x20administrator.'});else return _0x402142[_0x4bfa63(0x119)]>0x0?_0x1f5c64['blocked']?_0x402142[_0x4bfa63(0xdb)]>0x0?moment(_0x1f5c64[_0x4bfa63(0xe1)])[_0x4bfa63(0x114)](_0x402142[_0x4bfa63(0xdb)],_0x4bfa63(0xf1))>moment()?_0x1676e7(null,![],{'message':_0x4bfa63(0x10d)}):utils[_0x4bfa63(0xda)](_0x1f5c64,_0xc355a6,![],null)[_0x4bfa63(0xfd)](function(){const _0x59b3f8=_0x4bfa63;return _0x1676e7(null,![],{'message':_0x59b3f8(0x10d)});}):_0x1676e7(null,![],{'message':_0x4bfa63(0x10d)}):_0xc355a6>=_0x402142[_0x4bfa63(0x119)]?utils['clearBlockUser'](_0x1f5c64,0x0,!![],moment())['then'](function(){return _0x1676e7(null,![],{'message':'Incorrect\x20username\x20and/or\x20password.\x20Please\x20retry\x20again\x20or\x20contact\x20the\x20administrator.'});}):utils[_0x4bfa63(0xda)](_0x1f5c64,_0xc355a6,![],null)[_0x4bfa63(0xfd)](function(){const _0x5b2249=_0x4bfa63;return _0x1676e7(null,![],{'message':_0x5b2249(0x10d)});}):_0x1676e7(null,![],{'message':_0x4bfa63(0x10d)});}else{if(_0x1f5c64['disabled'])return _0x1676e7(null,![],{'message':_0x4bfa63(0x10d)});else return _0x402142[_0x4bfa63(0x119)]>0x0?_0x1f5c64[_0x4bfa63(0x107)]?_0x402142[_0x4bfa63(0xdb)]>0x0?moment(_0x1f5c64[_0x4bfa63(0xe1)])[_0x4bfa63(0x114)](_0x402142[_0x4bfa63(0xdb)],_0x4bfa63(0xf1))>moment()?_0x1676e7(null,![],{'message':_0x4bfa63(0x10d)}):utils['clearBlockUser'](_0x1f5c64,0x0,![],null)[_0x4bfa63(0xfd)](function(){const _0x47e1c8=_0x4bfa63;return utils[_0x47e1c8(0xf7)](_0x1f5c64);})[_0x4bfa63(0xfd)](function(){return _0x1676e7(null,_0x1f5c64);}):_0x1676e7(null,![],{'message':'Incorrect\x20username\x20and/or\x20password.\x20Please\x20retry\x20again\x20or\x20contact\x20the\x20administrator.'}):utils[_0x4bfa63(0xda)](_0x1f5c64,0x0,![],null)[_0x4bfa63(0xfd)](function(){const _0xc4a8bb=_0x4bfa63;return utils[_0xc4a8bb(0xf7)](_0x1f5c64);})[_0x4bfa63(0xfd)](function(){return _0x1676e7(null,_0x1f5c64);})['catch'](function(_0x310f87){return _0x1676e7(null,![],_0x310f87);}):_0x1f5c64[_0x4bfa63(0x107)]?_0x1676e7(null,![],{'message':_0x4bfa63(0x10d)}):utils[_0x4bfa63(0xf7)](_0x1f5c64)[_0x4bfa63(0xfd)](function(){return _0x1676e7(null,_0x1f5c64);});}}});})['catch'](function(_0x14a81a){return _0x1676e7(null,![],_0x14a81a);});}function sendServiceMail(_0x38a781){const _0x3836d7=a43_0x23b2a1;return db['MailAccount']['findOne']({'where':{'service':!![]},'attributes':['id',_0x3836d7(0xe2),_0x3836d7(0x11e)],'include':[{'model':db[_0x3836d7(0xee)],'as':_0x3836d7(0x10c)}]})['then'](function(_0x41d3c3){const _0x348169=_0x3836d7;if(!_0x41d3c3)throw new Error(_0x348169(0x10e));const _0x312dab={'tls':{'rejectUnauthorized':![]}};_0x41d3c3[_0x348169(0x10c)]['service']?_0x312dab[_0x348169(0xe0)]=_0x41d3c3['Smtp'][_0x348169(0xe0)]:(_0x312dab[_0x348169(0x126)]=_0x41d3c3[_0x348169(0x10c)]['host'],_0x312dab[_0x348169(0xfc)]=_0x41d3c3['Smtp']['port'],_0x312dab['secure']=_0x41d3c3[_0x348169(0x10c)]['secure']);_0x41d3c3[_0x348169(0x10c)][_0x348169(0x120)]&&(_0x312dab[_0x348169(0xe9)]={'user':_0x41d3c3[_0x348169(0x10c)]['user'],'pass':_0x41d3c3[_0x348169(0x10c)][_0x348169(0x128)]});const _0x5ce380={'account':_0x312dab,'message':_[_0x348169(0x11c)]({'from':util[_0x348169(0xdd)]('\x22%s\x22\x20<%s>',_0x41d3c3[_0x348169(0xe2)],_0x41d3c3[_0x348169(0x11e)]||_0x41d3c3['Smtp'][_0x348169(0x127)])},_0x38a781)};return client[_0x348169(0xe4)](_0x348169(0xe3),_0x5ce380);})[_0x3836d7(0xfd)](function(_0x5a1e78){const _0x2a3b37=_0x3836d7;if(_0x5a1e78[_0x2a3b37(0x108)])throw new Error(util[_0x2a3b37(0xdd)](_0x2a3b37(0x11a),_0x5a1e78[_0x2a3b37(0x108)][_0x2a3b37(0x12b)]||JSON[_0x2a3b37(0x118)](_0x5a1e78[_0x2a3b37(0x108)])));return!![];});}function handleError(_0x3c4901,_0x22ea14,_0x32bf3d){const _0x449df8=a43_0x23b2a1;return _0x3c4901['status'](_0x22ea14||0x1f4)[_0x449df8(0x104)]({'message':_0x32bf3d?_0x32bf3d[_0x449df8(0x12b)]||_0x32bf3d:''});}exports['login']=function(_0x8548c6,_0x4c3ded,_0x20a3f2){const _0x354291=a43_0x23b2a1;passport[_0x354291(0xe5)]('local',function(_0x21196c,_0x27a8c3,_0x39d6a9){const _0x1b2ea7=_0x354291,_0x3d359f=_0x21196c||_0x39d6a9;if(_0x3d359f)return handleError(_0x4c3ded,0x191,_0x3d359f);if(!_0x27a8c3)return handleError(_0x4c3ded,0x194,{'message':_0x1b2ea7(0x124)});else{const _0x1e3b1e={'payload':{'id':_0x27a8c3['id'],'role':_0x27a8c3['role']},'options':{'expiresIn':0x15180}};return authService[_0x1b2ea7(0x125)](_0x1e3b1e)[_0x1b2ea7(0xfd)](function(_0x49a24d){_0x4c3ded['json']({'id':_0x27a8c3['id'],'token':_0x49a24d,'statusCall':'','isAlreadyLogged':_0x27a8c3['online']});});}})(_0x8548c6,_0x4c3ded,_0x20a3f2);},exports[a43_0x23b2a1(0x113)]=function(_0x1bc23a,_0x1e10c4){const _0x58f922=a43_0x23b2a1;if(!_0x1bc23a[_0x58f922(0x129)][_0x58f922(0x11e)])return handleError(_0x1e10c4,0x1f4,{'message':_0x58f922(0xf9)});const _0x1e2cd9=rs['generate']();_0x1bc23a[_0x58f922(0x129)][_0x58f922(0x11e)]=_0x1bc23a[_0x58f922(0x129)][_0x58f922(0x11e)][_0x58f922(0xfa)]()[_0x58f922(0xe7)]();let _0x5d3728;return db[_0x58f922(0xf8)][_0x58f922(0xd9)]({'where':{'id':0x1},'attributes':[_0x58f922(0x119),_0x58f922(0xdb)],'raw':!![]})[_0x58f922(0xfd)](function(_0x2fac8e){const _0x22208d=_0x58f922;return _0x5d3728=_0x2fac8e,db['User'][_0x22208d(0xd9)]({'where':{'email':_0x1bc23a[_0x22208d(0x129)]['email']}});})[_0x58f922(0xfd)](function(_0x1e9ad0){const _0x411044=_0x58f922;if(!_0x1e9ad0)throw new Error(_0x411044(0x10a));if(_0x1e9ad0[_0x411044(0x103)])throw new Error(_0x411044(0x100));if(_0x1e9ad0['blocked']){if(moment(_0x1e9ad0[_0x411044(0xe1)])[_0x411044(0x114)](_0x5d3728[_0x411044(0xdb)],'minutes')>moment())throw new Error(_0x411044(0xf6));else _0x1e9ad0[_0x411044(0x107)]=![],_0x1e9ad0[_0x411044(0xe1)]=null;}return _0x1e9ad0[_0x411044(0xdf)]=_0x1e2cd9,_0x1e9ad0['resetPasswordExpires']=Date['now']()+0x36ee80,_0x1e9ad0[_0x411044(0x115)]();})[_0x58f922(0xfd)](function(){const _0x8f5bc8=_0x58f922;return sendServiceMail({'to':_0x1bc23a['body'][_0x8f5bc8(0x11e)],'subject':'xCally\x20Motion\x20Password\x20Reset','text':_0x8f5bc8(0x10b)+_0x8f5bc8(0x117)+_0x8f5bc8(0x111)+_0x1bc23a[_0x8f5bc8(0x11d)][_0x8f5bc8(0x126)]+'/reset/'+_0x1e2cd9+'\x0a\x0a'+'If\x20you\x20did\x20not\x20request\x20this,\x20please\x20ignore\x20this\x20email\x20and\x20your\x20password\x20will\x20remain\x20unchanged.\x0a'});})[_0x58f922(0xfd)](function(){const _0x502a87=_0x58f922;_0x1e10c4[_0x502a87(0x11f)](0xc8)[_0x502a87(0x104)]({'message':_0x502a87(0x12c)});})[_0x58f922(0x102)](function(_0x5ab29d){return handleError(_0x1e10c4,0x1f4,_0x5ab29d);});},exports[a43_0x23b2a1(0xf4)]=function(_0x162f6a,_0x5342bc){const _0x2fda9e=a43_0x23b2a1;return db[_0x2fda9e(0x109)][_0x2fda9e(0xd9)]({'where':{'resetPasswordToken':_0x162f6a['params'][_0x2fda9e(0xd8)],'resetPasswordExpires':{[Op['gt']]:Date[_0x2fda9e(0xdc)]()}}})['then'](function(_0x183225){const _0x367512=_0x2fda9e;if(!_0x183225)throw new Error(_0x367512(0xec));return db[_0x367512(0xf8)]['findOne']({'attributes':['id',_0x367512(0xed),'enforcePasswordHistory',_0x367512(0x11b)]})[_0x367512(0xfd)](function(_0x446b35){const _0xac9d01=_0x367512;if(_0x446b35['securePassword'])authService[_0xac9d01(0xea)](_0x162f6a[_0xac9d01(0x129)][_0xac9d01(0x12a)]);if(!_0x446b35[_0xac9d01(0x106)]||!_0x183225[_0xac9d01(0x110)])return _0x183225;return authService[_0xac9d01(0xeb)](_0x162f6a[_0xac9d01(0x129)]['password'],_0x183225[_0xac9d01(0x110)],_0x446b35[_0xac9d01(0x11b)]),_0x183225;})['then'](function(){const _0x3ebcf0=_0x367512;return _0x183225[_0x3ebcf0(0x12a)]=_0x162f6a[_0x3ebcf0(0x129)][_0x3ebcf0(0x12a)],_0x183225[_0x3ebcf0(0xdf)]=null,_0x183225[_0x3ebcf0(0x116)]=null,_0x183225[_0x3ebcf0(0x115)]();});})[_0x2fda9e(0xfd)](function(){const _0x56018b=_0x2fda9e;_0x5342bc[_0x56018b(0x11f)](0xc8)[_0x56018b(0x104)]({'message':_0x56018b(0xde)});})[_0x2fda9e(0x102)](function(_0x5d47eb){return handleError(_0x5342bc,0x1f4,_0x5d47eb);});},passport[a43_0x23b2a1(0x122)](new LocalStrategy({'usernameField':a43_0x23b2a1(0xe2),'passwordField':'password'},function(_0x4f90d7,_0x189935,_0x2aec7){const _0x24419d=a43_0x23b2a1;return localAuthenticate(db[_0x24419d(0x109)],_0x4f90d7,_0x189935,_0x2aec7);})); \ No newline at end of file diff --git a/server/api/authLocal/index.js b/server/api/authLocal/index.js index eb2406c..166ea42 100644 --- a/server/api/authLocal/index.js +++ b/server/api/authLocal/index.js @@ -1 +1 @@ -const a36_0x2fe1=['express','post','/reset/:token','reset','Router','login','/forgot','exports','./authLocal.controller'];(function(_0x3ff7cd,_0x2fe1a9){const _0x3a38a4=function(_0x203878){while(--_0x203878){_0x3ff7cd['push'](_0x3ff7cd['shift']());}};_0x3a38a4(++_0x2fe1a9);}(a36_0x2fe1,0xf0));const a36_0x3a38=function(_0x3ff7cd,_0x2fe1a9){_0x3ff7cd=_0x3ff7cd-0x0;let _0x3a38a4=a36_0x2fe1[_0x3ff7cd];return _0x3a38a4;};const _0x29fa6d=a36_0x3a38;'use strict';const express=require(_0x29fa6d('0x3')),router=express[_0x29fa6d('0x7')](),controller=require(_0x29fa6d('0x2'));router[_0x29fa6d('0x4')]('/',controller[_0x29fa6d('0x8')]),router['post'](_0x29fa6d('0x0'),controller['forgot']),router[_0x29fa6d('0x4')](_0x29fa6d('0x5'),controller[_0x29fa6d('0x6')]),module[_0x29fa6d('0x1')]=router; \ No newline at end of file +const a44_0x2307=['./authLocal.controller','/forgot','forgot','reset','post','express'];(function(_0x503dc5,_0x4bdead){const _0x230746=function(_0x5b5d31){while(--_0x5b5d31){_0x503dc5['push'](_0x503dc5['shift']());}};_0x230746(++_0x4bdead);}(a44_0x2307,0x6e));const a44_0x5b5d=function(_0x503dc5,_0x4bdead){_0x503dc5=_0x503dc5-0x181;let _0x230746=a44_0x2307[_0x503dc5];return _0x230746;};const a44_0x4f32b8=a44_0x5b5d;'use strict';const express=require(a44_0x4f32b8(0x184)),router=express['Router'](),controller=require(a44_0x4f32b8(0x185));router['post']('/',controller['login']),router['post'](a44_0x4f32b8(0x186),controller[a44_0x4f32b8(0x181)]),router[a44_0x4f32b8(0x183)]('/reset/:token',controller[a44_0x4f32b8(0x182)]),module['exports']=router; \ No newline at end of file diff --git a/server/api/automation/automation.attributes.js b/server/api/automation/automation.attributes.js index 9a67c6d..1dd118f 100644 --- a/server/api/automation/automation.attributes.js +++ b/server/api/automation/automation.attributes.js @@ -1 +1 @@ -const a37_0x1b7e=['BOOLEAN','sequelize','INTEGER','STRING'];(function(_0x4aa80c,_0x1b7e11){const _0x51ab6f=function(_0x3acb50){while(--_0x3acb50){_0x4aa80c['push'](_0x4aa80c['shift']());}};_0x51ab6f(++_0x1b7e11);}(a37_0x1b7e,0x64));const a37_0x51ab=function(_0x4aa80c,_0x1b7e11){_0x4aa80c=_0x4aa80c-0x0;let _0x51ab6f=a37_0x1b7e[_0x4aa80c];return _0x51ab6f;};const _0x2861c8=a37_0x51ab;'use strict';const Sequelize=require(_0x2861c8('0x1'));module['exports']={'name':{'type':Sequelize[_0x2861c8('0x3')],'allowNull':![]},'channel':{'type':Sequelize[_0x2861c8('0x3')]},'description':{'type':Sequelize[_0x2861c8('0x3')]},'status':{'type':Sequelize[_0x2861c8('0x0')],'defaultValue':![]},'timeout':{'type':Sequelize[_0x2861c8('0x2')],'defaultValue':0xa}}; \ No newline at end of file +const a45_0x2ac0=['attributes','exports','sequelize','STRING','BOOLEAN'];(function(_0x269dd4,_0x3d98fe){const _0x2ac070=function(_0x53b9b4){while(--_0x53b9b4){_0x269dd4['push'](_0x269dd4['shift']());}};_0x2ac070(++_0x3d98fe);}(a45_0x2ac0,0xd5));const a45_0x53b9=function(_0x269dd4,_0x3d98fe){_0x269dd4=_0x269dd4-0x183;let _0x2ac070=a45_0x2ac0[_0x269dd4];return _0x2ac070;};const a45_0x5ea704=a45_0x53b9;'use strict';const {DataTypes}=require(a45_0x5ea704(0x187)),attributes={'name':{'type':DataTypes[a45_0x5ea704(0x183)],'allowNull':![]},'channel':{'type':DataTypes[a45_0x5ea704(0x183)]},'description':{'type':DataTypes['STRING']},'status':{'type':DataTypes[a45_0x5ea704(0x184)],'defaultValue':![]},'timeout':{'type':DataTypes['INTEGER'],'defaultValue':0xa}};module[a45_0x5ea704(0x186)][a45_0x5ea704(0x185)]=attributes; \ No newline at end of file diff --git a/server/api/automation/automation.controller.js b/server/api/automation/automation.controller.js index 6b8297f..bdd374c 100644 --- a/server/api/automation/automation.controller.js +++ b/server/api/automation/automation.controller.js @@ -1 +1 @@ -const a38_0x4f74=['key','fieldName','create','pick','end','attributes','catch','then','omit','destroy','Automation','params','name','../../components/parsers/qs','sequelize','stack','set','offset','getActions','../../mysqldb','getConditions','nolimit','limit','status','json','Content-Range','length','intersection','error','where','order','api','includeAll','sort','filter','map','merge','findOne','undefined','update','model','type','lodash','addConditions','rawAttributes','send','rows','Action','fields','include','options','query','addActions','filters','show','VIRTUAL','keys','findAll','like','Condition','ids','count','body'];(function(_0x461bef,_0x4f74af){const _0x169d72=function(_0x4d1325){while(--_0x4d1325){_0x461bef['push'](_0x461bef['shift']());}};_0x169d72(++_0x4f74af);}(a38_0x4f74,0xca));const a38_0x169d=function(_0x461bef,_0x4f74af){_0x461bef=_0x461bef-0x0;let _0x169d72=a38_0x4f74[_0x461bef];return _0x169d72;};const _0x3d45ad=a38_0x169d;'use strict';const _=require(_0x3d45ad('0x1d')),qs=require(_0x3d45ad('0x0')),logger=require('../../config/logger')(_0x3d45ad('0x12')),db=require(_0x3d45ad('0x6'))['db'],{Op}=require(_0x3d45ad('0x1'));function respondWithResult(_0x4d1325,_0x4c59fc){return _0x4c59fc=_0x4c59fc||0xc8,function(_0x19bdaf){const _0x5d0b0b=a38_0x169d;if(_0x19bdaf)return _0x4d1325['status'](_0x4c59fc)[_0x5d0b0b('0xb')](_0x19bdaf);};}function respondWithFilteredResult(_0x2c4be9,_0x3069b1){return function(_0x53ed05){const _0x8c3b9a=a38_0x169d;if(_0x53ed05){const _0x217694=_0x53ed05[_0x8c3b9a('0x30')],_0x2536a5=_0x3069b1[_0x8c3b9a('0x4')];let _0x5ad7bc=_0x3069b1[_0x8c3b9a('0x4')]+_0x3069b1['limit'],_0x5c6219;return _0x5ad7bc>=_0x217694?(_0x5ad7bc=_0x217694,_0x5c6219=0xc8):_0x5c6219=0xce,_0x2c4be9[_0x8c3b9a('0xa')](_0x5c6219),_0x2c4be9[_0x8c3b9a('0x3')](_0x8c3b9a('0xc'),_0x2536a5+'-'+_0x5ad7bc+'/'+_0x217694)[_0x8c3b9a('0xb')](_0x53ed05);}return null;};}function saveUpdates(_0x1920ad){return function(_0x55f020){const _0x207364=a38_0x169d;if(_0x55f020)return _0x55f020[_0x207364('0x1a')](_0x1920ad)[_0x207364('0x39')](function(_0x5a96c9){return _0x5a96c9;});return null;};}function removeEntity(_0x49e713){return function(_0x353292){const _0x284bf6=a38_0x169d;if(_0x353292)return _0x353292['destroy']()[_0x284bf6('0x39')](function(){const _0xe23244=_0x284bf6;_0x49e713[_0xe23244('0xa')](0xcc)[_0xe23244('0x36')]();});};}function handleEntityNotFound(_0x3981bf){return function(_0x5dab52){return!_0x5dab52&&_0x3981bf['sendStatus'](0x194),_0x5dab52;};}function handleError(_0x232d3d,_0xd90a58){return _0xd90a58=_0xd90a58||0x1f4,function(_0x1419bb){const _0x9e2307=a38_0x169d;logger[_0x9e2307('0xf')](_0x1419bb[_0x9e2307('0x2')]),_0x1419bb[_0x9e2307('0x3e')]&&delete _0x1419bb['name'],_0x232d3d[_0x9e2307('0xa')](_0xd90a58)[_0x9e2307('0x20')](_0x1419bb);};}exports['index']=function(_0x2e44ae,_0x222cec){const _0x164650=_0x3d45ad;let _0x435725={};const _0x22acc6={},_0x68b11b={'count':0x0,'rows':[]},_0x436cae=_[_0x164650('0x16')](db['Automation']['rawAttributes'],function(_0x53671e){const _0x595029=_0x164650;return{'name':_0x53671e[_0x595029('0x33')],'type':_0x53671e[_0x595029('0x1c')][_0x595029('0x32')]};});_0x22acc6['model']=_[_0x164650('0x16')](_0x436cae,'name'),_0x22acc6[_0x164650('0x26')]=_[_0x164650('0x2b')](_0x2e44ae[_0x164650('0x26')]),_0x22acc6[_0x164650('0x28')]=_['intersection'](_0x22acc6[_0x164650('0x1b')],_0x22acc6[_0x164650('0x26')]),_0x435725['attributes']=_[_0x164650('0xe')](_0x22acc6['model'],qs[_0x164650('0x23')](_0x2e44ae[_0x164650('0x26')][_0x164650('0x23')])),_0x435725[_0x164650('0x37')]=_0x435725[_0x164650('0x37')][_0x164650('0xd')]?_0x435725[_0x164650('0x37')]:_0x22acc6[_0x164650('0x1b')];typeof _0x2e44ae['query'][_0x164650('0x8')]===_0x164650('0x19')&&(_0x435725[_0x164650('0x9')]=qs[_0x164650('0x9')](_0x2e44ae[_0x164650('0x26')][_0x164650('0x9')]),_0x435725['offset']=qs['offset'](_0x2e44ae[_0x164650('0x26')][_0x164650('0x4')]));_0x435725[_0x164650('0x11')]=qs[_0x164650('0x14')](_0x2e44ae[_0x164650('0x26')]['sort']),_0x435725[_0x164650('0x10')]=qs[_0x164650('0x28')](_[_0x164650('0x35')](_0x2e44ae[_0x164650('0x26')],_0x22acc6[_0x164650('0x28')]),_0x436cae);_0x2e44ae[_0x164650('0x26')]['filter']&&(_0x435725[_0x164650('0x10')]=_[_0x164650('0x17')](_0x435725[_0x164650('0x10')],{[Op['or']]:_[_0x164650('0x16')](_0x436cae,function(_0x4e08f0){const _0x3237d0=_0x164650;if(_0x4e08f0['type']!==_0x3237d0('0x2a')){const _0x518800={};return _0x518800[_0x4e08f0[_0x3237d0('0x3e')]]={[Op[_0x3237d0('0x2d')]]:'%'+_0x2e44ae[_0x3237d0('0x26')][_0x3237d0('0x15')]+'%'},_0x518800;}})}));_0x435725=_[_0x164650('0x17')]({},_0x435725,_0x2e44ae[_0x164650('0x25')]);const _0x2bd9d5={'where':_0x435725[_0x164650('0x10')]};return db[_0x164650('0x3c')][_0x164650('0x30')](_0x2bd9d5)[_0x164650('0x39')](function(_0xd67a6e){const _0x4ca72d=_0x164650;return _0x68b11b[_0x4ca72d('0x30')]=_0xd67a6e,_0x2e44ae[_0x4ca72d('0x26')][_0x4ca72d('0x13')]&&(_0x435725[_0x4ca72d('0x24')]=[{'all':!![]}]),db[_0x4ca72d('0x3c')][_0x4ca72d('0x2c')](_0x435725);})[_0x164650('0x39')](function(_0x509083){const _0xe749df=_0x164650;return _0x68b11b[_0xe749df('0x21')]=_0x509083,_0x68b11b;})['then'](respondWithFilteredResult(_0x222cec,_0x435725))[_0x164650('0x38')](handleError(_0x222cec,null));},exports[_0x3d45ad('0x29')]=function(_0xa939e0,_0x2681ac){const _0x3f4abb=_0x3d45ad;let _0x647d41={'raw':![],'where':{'id':_0xa939e0[_0x3f4abb('0x3d')]['id']}};const _0x32b749={};return _0x32b749['model']=_[_0x3f4abb('0x2b')](db[_0x3f4abb('0x3c')]['rawAttributes']),_0x32b749[_0x3f4abb('0x26')]=_[_0x3f4abb('0x2b')](_0xa939e0[_0x3f4abb('0x26')]),_0x32b749[_0x3f4abb('0x28')]=_['intersection'](_0x32b749[_0x3f4abb('0x1b')],_0x32b749[_0x3f4abb('0x26')]),_0x647d41[_0x3f4abb('0x37')]=_[_0x3f4abb('0xe')](_0x32b749[_0x3f4abb('0x1b')],qs[_0x3f4abb('0x23')](_0xa939e0['query'][_0x3f4abb('0x23')])),_0x647d41[_0x3f4abb('0x37')]=_0x647d41[_0x3f4abb('0x37')]['length']?_0x647d41['attributes']:_0x32b749[_0x3f4abb('0x1b')],_0xa939e0['query'][_0x3f4abb('0x13')]&&(_0x647d41[_0x3f4abb('0x24')]=[{'all':!![]}]),_0x647d41=_[_0x3f4abb('0x17')]({},_0x647d41,_0xa939e0[_0x3f4abb('0x25')]),db[_0x3f4abb('0x3c')][_0x3f4abb('0x18')](_0x647d41)[_0x3f4abb('0x39')](handleEntityNotFound(_0x2681ac,null))[_0x3f4abb('0x39')](respondWithResult(_0x2681ac,null))[_0x3f4abb('0x38')](handleError(_0x2681ac,null));},exports[_0x3d45ad('0x34')]=function(_0x25a471,_0x7d6324){const _0x266672=_0x3d45ad;return db[_0x266672('0x3c')][_0x266672('0x34')](_0x25a471[_0x266672('0x31')],{})[_0x266672('0x39')](respondWithResult(_0x7d6324,0xc9))['catch'](handleError(_0x7d6324,null));},exports[_0x3d45ad('0x1a')]=function(_0x5a8703,_0xa8ecb0){const _0x377cee=_0x3d45ad;return _0x5a8703[_0x377cee('0x31')]['id']&&delete _0x5a8703[_0x377cee('0x31')]['id'],db[_0x377cee('0x3c')][_0x377cee('0x18')]({'where':{'id':_0x5a8703[_0x377cee('0x3d')]['id']}})[_0x377cee('0x39')](handleEntityNotFound(_0xa8ecb0,null))['then'](saveUpdates(_0x5a8703['body'],null))['then'](respondWithResult(_0xa8ecb0,null))[_0x377cee('0x38')](handleError(_0xa8ecb0,null));},exports[_0x3d45ad('0x3b')]=function(_0x35e130,_0x245a50){const _0x5564c1=_0x3d45ad;return db[_0x5564c1('0x3c')][_0x5564c1('0x18')]({'where':{'id':_0x35e130[_0x5564c1('0x3d')]['id']}})[_0x5564c1('0x39')](handleEntityNotFound(_0x245a50,null))[_0x5564c1('0x39')](removeEntity(_0x245a50,null))[_0x5564c1('0x38')](handleError(_0x245a50,null));},exports[_0x3d45ad('0x1e')]=function(_0x2b8ea8,_0x1d6627){const _0x278e47=_0x3d45ad;return db[_0x278e47('0x2e')][_0x278e47('0x18')]({'where':{'id':_0x2b8ea8[_0x278e47('0x3d')]['id']}})[_0x278e47('0x39')](function(_0x4de891){const _0x20c176=_0x278e47;if(_0x4de891)return _0x4de891['addConditions'](_0x2b8ea8[_0x20c176('0x31')][_0x20c176('0x2f')],{'through':_[_0x20c176('0x3a')](_0x2b8ea8[_0x20c176('0x31')],[_0x20c176('0x2f'),'id'])});})[_0x278e47('0x39')](respondWithResult(_0x1d6627,null))[_0x278e47('0x38')](handleError(_0x1d6627,null));},exports[_0x3d45ad('0x7')]=function(_0x8e0500,_0x2da022){const _0x3dceed=_0x3d45ad;let _0xcc6492={};const _0x28aa52={};let _0x6094df,_0x3be2f3;return db['Automation']['findOne']({'where':{'id':_0x8e0500[_0x3dceed('0x3d')]['id']}})[_0x3dceed('0x39')](handleEntityNotFound(_0x2da022,null))[_0x3dceed('0x39')](function(_0x5d0a7e){const _0x1a587c=_0x3dceed;if(_0x5d0a7e)return _0x6094df=_0x5d0a7e,_0x28aa52['model']=_[_0x1a587c('0x2b')](db['Condition'][_0x1a587c('0x1f')]),_0x28aa52[_0x1a587c('0x26')]=_[_0x1a587c('0x2b')](_0x8e0500['query']),_0x28aa52[_0x1a587c('0x28')]=_['intersection'](_0x28aa52['model'],_0x28aa52[_0x1a587c('0x26')]),_0xcc6492[_0x1a587c('0x37')]=_['intersection'](_0x28aa52[_0x1a587c('0x1b')],qs[_0x1a587c('0x23')](_0x8e0500['query'][_0x1a587c('0x23')])),_0xcc6492[_0x1a587c('0x37')]=_0xcc6492[_0x1a587c('0x37')]['length']?_0xcc6492['attributes']:_0x28aa52[_0x1a587c('0x1b')],_0xcc6492[_0x1a587c('0x11')]=qs[_0x1a587c('0x14')](_0x8e0500['query']['sort']),_0xcc6492[_0x1a587c('0x10')]=qs[_0x1a587c('0x28')](_[_0x1a587c('0x35')](_0x8e0500[_0x1a587c('0x26')],_0x28aa52['filters'])),_0x8e0500[_0x1a587c('0x26')][_0x1a587c('0x15')]&&(_0xcc6492['where']=_[_0x1a587c('0x17')](_0xcc6492['where'],{[Op['or']]:_[_0x1a587c('0x16')](_0xcc6492[_0x1a587c('0x37')],function(_0x3b9100){const _0xa9cb7d={};return _0xa9cb7d[_0x3b9100]={[Op['like']]:'%'+_0x8e0500['query']['filter']+'%'},_0xa9cb7d;})})),_0xcc6492=_[_0x1a587c('0x17')]({},_0xcc6492,_0x8e0500[_0x1a587c('0x25')]),_0x6094df['getConditions'](_0xcc6492);})[_0x3dceed('0x39')](function(_0x5a4469){const _0x1155cf=_0x3dceed;if(_0x5a4469)return _0x3be2f3=_0x5a4469[_0x1155cf('0xd')],typeof _0x8e0500[_0x1155cf('0x26')][_0x1155cf('0x8')]===_0x1155cf('0x19')&&(_0xcc6492[_0x1155cf('0x9')]=qs[_0x1155cf('0x9')](_0x8e0500[_0x1155cf('0x26')][_0x1155cf('0x9')]),_0xcc6492[_0x1155cf('0x4')]=qs[_0x1155cf('0x4')](_0x8e0500[_0x1155cf('0x26')][_0x1155cf('0x4')])),_0x6094df[_0x1155cf('0x7')](_0xcc6492);})[_0x3dceed('0x39')](function(_0x2e5989){if(_0x2e5989)return _0x2e5989?{'count':_0x3be2f3,'rows':_0x2e5989}:null;})['then'](respondWithResult(_0x2da022,null))[_0x3dceed('0x38')](handleError(_0x2da022,null));},exports[_0x3d45ad('0x27')]=function(_0x5c3571,_0x578ce7){const _0x4c36f4=_0x3d45ad;return db[_0x4c36f4('0x22')]['findOne']({'where':{'id':_0x5c3571[_0x4c36f4('0x3d')]['id']}})['then'](function(_0x1b82a5){const _0x5c91e3=_0x4c36f4;if(_0x1b82a5)return _0x1b82a5[_0x5c91e3('0x27')](_0x5c3571[_0x5c91e3('0x31')]['ids'],{'through':_['omit'](_0x5c3571['body'],['ids','id'])});})['then'](respondWithResult(_0x578ce7,null))[_0x4c36f4('0x38')](handleError(_0x578ce7,null));},exports[_0x3d45ad('0x5')]=function(_0x1c2fff,_0x182dab){const _0x534d74=_0x3d45ad;let _0xd8232a={};const _0x27143b={};let _0x5e5b17,_0x3d78dc;return db['Automation'][_0x534d74('0x18')]({'where':{'id':_0x1c2fff[_0x534d74('0x3d')]['id']}})[_0x534d74('0x39')](handleEntityNotFound(_0x182dab,null))[_0x534d74('0x39')](function(_0x5ac841){const _0x2d5338=_0x534d74;if(_0x5ac841)return _0x5e5b17=_0x5ac841,_0x27143b['model']=_[_0x2d5338('0x2b')](db[_0x2d5338('0x22')][_0x2d5338('0x1f')]),_0x27143b['query']=_[_0x2d5338('0x2b')](_0x1c2fff[_0x2d5338('0x26')]),_0x27143b[_0x2d5338('0x28')]=_[_0x2d5338('0xe')](_0x27143b[_0x2d5338('0x1b')],_0x27143b[_0x2d5338('0x26')]),_0xd8232a[_0x2d5338('0x37')]=_[_0x2d5338('0xe')](_0x27143b[_0x2d5338('0x1b')],qs[_0x2d5338('0x23')](_0x1c2fff['query'][_0x2d5338('0x23')])),_0xd8232a[_0x2d5338('0x37')]=_0xd8232a[_0x2d5338('0x37')][_0x2d5338('0xd')]?_0xd8232a[_0x2d5338('0x37')]:_0x27143b[_0x2d5338('0x1b')],_0xd8232a[_0x2d5338('0x11')]=qs[_0x2d5338('0x14')](_0x1c2fff['query'][_0x2d5338('0x14')]),_0xd8232a[_0x2d5338('0x10')]=qs[_0x2d5338('0x28')](_[_0x2d5338('0x35')](_0x1c2fff[_0x2d5338('0x26')],_0x27143b[_0x2d5338('0x28')])),_0x1c2fff[_0x2d5338('0x26')][_0x2d5338('0x15')]&&(_0xd8232a[_0x2d5338('0x10')]=_[_0x2d5338('0x17')](_0xd8232a[_0x2d5338('0x10')],{[Op['or']]:_[_0x2d5338('0x16')](_0xd8232a[_0x2d5338('0x37')],function(_0x191850){const _0x27f43b=_0x2d5338,_0x1d046b={};return _0x1d046b[_0x191850]={[Op['like']]:'%'+_0x1c2fff[_0x27f43b('0x26')]['filter']+'%'},_0x1d046b;})})),_0xd8232a=_[_0x2d5338('0x17')]({},_0xd8232a,_0x1c2fff[_0x2d5338('0x25')]),_0x5e5b17[_0x2d5338('0x5')](_0xd8232a);})[_0x534d74('0x39')](function(_0x3669a1){const _0x355606=_0x534d74;if(_0x3669a1)return _0x3d78dc=_0x3669a1[_0x355606('0xd')],typeof _0x1c2fff[_0x355606('0x26')][_0x355606('0x8')]===_0x355606('0x19')&&(_0xd8232a[_0x355606('0x9')]=qs[_0x355606('0x9')](_0x1c2fff['query'][_0x355606('0x9')]),_0xd8232a[_0x355606('0x4')]=qs[_0x355606('0x4')](_0x1c2fff['query'][_0x355606('0x4')])),_0x5e5b17[_0x355606('0x5')](_0xd8232a);})['then'](function(_0x4fe2b3){if(_0x4fe2b3)return _0x4fe2b3?{'count':_0x3d78dc,'rows':_0x4fe2b3}:null;})[_0x534d74('0x39')](respondWithResult(_0x182dab,null))[_0x534d74('0x38')](handleError(_0x182dab,null));}; \ No newline at end of file +const a46_0x2dca=['getConditions','rows','limit','count','attributes','sequelize','merge','order','catch','length','../../components/parsers/qs','addConditions','params','like','stack','lodash','send','../../mysqldb','keys','filters','options','pick','Condition','status','name','fieldName','type','getActions','addActions','findAll','api','offset','destroy','nolimit','filter','query','fields','includeAll','include','body','rawAttributes','update','json','sort','undefined','../../config/logger','Content-Range','map','VIRTUAL','ids','where','Automation','then','create','intersection','model','error','findOne','omit'];(function(_0x56ee39,_0x58677f){const _0x2dcad3=function(_0x6559b8){while(--_0x6559b8){_0x56ee39['push'](_0x56ee39['shift']());}};_0x2dcad3(++_0x58677f);}(a46_0x2dca,0x1aa));const a46_0x6559=function(_0x56ee39,_0x58677f){_0x56ee39=_0x56ee39-0x180;let _0x2dcad3=a46_0x2dca[_0x56ee39];return _0x2dcad3;};const a46_0x561919=a46_0x6559;'use strict';const _=require(a46_0x561919(0x182)),qs=require(a46_0x561919(0x1b8)),logger=require(a46_0x561919(0x1a0))(a46_0x561919(0x191)),{db}=require(a46_0x561919(0x184)),{Op}=require(a46_0x561919(0x1b3));function respondWithResult(_0x53e5a1,_0x29beb6){return _0x29beb6=_0x29beb6||0xc8,function(_0x116c9d){const _0x326fc4=a46_0x6559;if(_0x116c9d)return _0x53e5a1[_0x326fc4(0x18a)](_0x29beb6)[_0x326fc4(0x19d)](_0x116c9d);};}function respondWithFilteredResult(_0x93dcdc,_0x18333f){return function(_0x56a2cc){const _0x55e666=a46_0x6559;if(_0x56a2cc){const _0xb05c7f=_0x56a2cc[_0x55e666(0x1b1)],_0x543d50=_0x18333f['offset'];let _0x3159f1=_0x18333f[_0x55e666(0x192)]+_0x18333f[_0x55e666(0x1b0)],_0xee0e07;return _0x3159f1>=_0xb05c7f?(_0x3159f1=_0xb05c7f,_0xee0e07=0xc8):_0xee0e07=0xce,_0x93dcdc[_0x55e666(0x18a)](_0xee0e07),_0x93dcdc['set'](_0x55e666(0x1a1),_0x543d50+'-'+_0x3159f1+'/'+_0xb05c7f)[_0x55e666(0x19d)](_0x56a2cc);}return null;};}function saveUpdates(_0x52d0b8){return function(_0x356e42){const _0x2021bc=a46_0x6559;if(_0x356e42)return _0x356e42['update'](_0x52d0b8)[_0x2021bc(0x1a7)](function(_0x3d6514){return _0x3d6514;});return null;};}function removeEntity(_0x251a53){return function(_0x32bd5c){const _0x5bf57d=a46_0x6559;if(_0x32bd5c)return _0x32bd5c[_0x5bf57d(0x193)]()['then'](function(){const _0xeea602=_0x5bf57d;_0x251a53[_0xeea602(0x18a)](0xcc)['end']();});};}function handleEntityNotFound(_0x25f3e4){return function(_0x138405){return!_0x138405&&_0x25f3e4['sendStatus'](0x194),_0x138405;};}function handleError(_0x16e55f,_0x485fbd){return _0x485fbd=_0x485fbd||0x1f4,function(_0x128b1b){const _0x2b21d1=a46_0x6559;logger[_0x2b21d1(0x1ab)](_0x128b1b[_0x2b21d1(0x181)]),_0x128b1b[_0x2b21d1(0x18b)]&&delete _0x128b1b[_0x2b21d1(0x18b)],_0x16e55f['status'](_0x485fbd)[_0x2b21d1(0x183)](_0x128b1b);};}exports['index']=function(_0x3ec0e5,_0x3989c3){const _0x1b2a87=a46_0x561919;let _0x50297d={};const _0x20e9aa={},_0xbc30bb={'count':0x0,'rows':[]},_0x34e891=_['map'](db[_0x1b2a87(0x1a6)][_0x1b2a87(0x19b)],function(_0x4cf282){const _0xa367b8=_0x1b2a87;return{'name':_0x4cf282[_0xa367b8(0x18c)],'type':_0x4cf282[_0xa367b8(0x18d)]['key']};});_0x20e9aa[_0x1b2a87(0x1aa)]=_['map'](_0x34e891,_0x1b2a87(0x18b)),_0x20e9aa[_0x1b2a87(0x196)]=_[_0x1b2a87(0x185)](_0x3ec0e5['query']),_0x20e9aa[_0x1b2a87(0x186)]=_['intersection'](_0x20e9aa[_0x1b2a87(0x1aa)],_0x20e9aa[_0x1b2a87(0x196)]),_0x50297d[_0x1b2a87(0x1b2)]=_['intersection'](_0x20e9aa[_0x1b2a87(0x1aa)],qs[_0x1b2a87(0x197)](_0x3ec0e5['query']['fields'])),_0x50297d[_0x1b2a87(0x1b2)]=_0x50297d['attributes'][_0x1b2a87(0x1b7)]?_0x50297d[_0x1b2a87(0x1b2)]:_0x20e9aa[_0x1b2a87(0x1aa)];typeof _0x3ec0e5[_0x1b2a87(0x196)][_0x1b2a87(0x194)]===_0x1b2a87(0x19f)&&(_0x50297d[_0x1b2a87(0x1b0)]=qs[_0x1b2a87(0x1b0)](_0x3ec0e5['query'][_0x1b2a87(0x1b0)]),_0x50297d[_0x1b2a87(0x192)]=qs[_0x1b2a87(0x192)](_0x3ec0e5[_0x1b2a87(0x196)][_0x1b2a87(0x192)]));_0x50297d[_0x1b2a87(0x1b5)]=qs[_0x1b2a87(0x19e)](_0x3ec0e5['query'][_0x1b2a87(0x19e)]),_0x50297d[_0x1b2a87(0x1a5)]=qs[_0x1b2a87(0x186)](_[_0x1b2a87(0x188)](_0x3ec0e5['query'],_0x20e9aa[_0x1b2a87(0x186)]),_0x34e891);_0x3ec0e5[_0x1b2a87(0x196)][_0x1b2a87(0x195)]&&(_0x50297d[_0x1b2a87(0x1a5)]=_[_0x1b2a87(0x1b4)](_0x50297d[_0x1b2a87(0x1a5)],{[Op['or']]:_[_0x1b2a87(0x1a2)](_0x34e891,function(_0x3a07d0){const _0x504d8c=_0x1b2a87;if(_0x3a07d0[_0x504d8c(0x18d)]!==_0x504d8c(0x1a3)){const _0x15b1dc={};return _0x15b1dc[_0x3a07d0[_0x504d8c(0x18b)]]={[Op[_0x504d8c(0x180)]]:'%'+_0x3ec0e5[_0x504d8c(0x196)][_0x504d8c(0x195)]+'%'},_0x15b1dc;}})}));_0x50297d=_['merge']({},_0x50297d,_0x3ec0e5[_0x1b2a87(0x187)]);const _0x2bd1fd={'where':_0x50297d[_0x1b2a87(0x1a5)]};return db['Automation'][_0x1b2a87(0x1b1)](_0x2bd1fd)[_0x1b2a87(0x1a7)](function(_0x554866){const _0x9165ee=_0x1b2a87;return _0xbc30bb[_0x9165ee(0x1b1)]=_0x554866,_0x3ec0e5[_0x9165ee(0x196)][_0x9165ee(0x198)]&&(_0x50297d[_0x9165ee(0x199)]=[{'all':!![]}]),db['Automation'][_0x9165ee(0x190)](_0x50297d);})['then'](function(_0xa00a8d){const _0x585b0e=_0x1b2a87;return _0xbc30bb[_0x585b0e(0x1af)]=_0xa00a8d,_0xbc30bb;})[_0x1b2a87(0x1a7)](respondWithFilteredResult(_0x3989c3,_0x50297d))['catch'](handleError(_0x3989c3,null));},exports['show']=function(_0x14520c,_0x4d2475){const _0x2d3189=a46_0x561919;let _0x2dcdd7={'raw':![],'where':{'id':_0x14520c['params']['id']}};const _0x2f108c={};return _0x2f108c[_0x2d3189(0x1aa)]=_[_0x2d3189(0x185)](db[_0x2d3189(0x1a6)][_0x2d3189(0x19b)]),_0x2f108c['query']=_['keys'](_0x14520c[_0x2d3189(0x196)]),_0x2f108c['filters']=_['intersection'](_0x2f108c[_0x2d3189(0x1aa)],_0x2f108c['query']),_0x2dcdd7[_0x2d3189(0x1b2)]=_['intersection'](_0x2f108c[_0x2d3189(0x1aa)],qs[_0x2d3189(0x197)](_0x14520c[_0x2d3189(0x196)][_0x2d3189(0x197)])),_0x2dcdd7['attributes']=_0x2dcdd7[_0x2d3189(0x1b2)][_0x2d3189(0x1b7)]?_0x2dcdd7['attributes']:_0x2f108c[_0x2d3189(0x1aa)],_0x14520c['query'][_0x2d3189(0x198)]&&(_0x2dcdd7[_0x2d3189(0x199)]=[{'all':!![]}]),_0x2dcdd7=_[_0x2d3189(0x1b4)]({},_0x2dcdd7,_0x14520c[_0x2d3189(0x187)]),db[_0x2d3189(0x1a6)]['findOne'](_0x2dcdd7)[_0x2d3189(0x1a7)](handleEntityNotFound(_0x4d2475,null))['then'](respondWithResult(_0x4d2475,null))['catch'](handleError(_0x4d2475,null));},exports[a46_0x561919(0x1a8)]=function(_0x511311,_0x40482b){const _0x5b9ff5=a46_0x561919;return db[_0x5b9ff5(0x1a6)][_0x5b9ff5(0x1a8)](_0x511311[_0x5b9ff5(0x19a)],{})[_0x5b9ff5(0x1a7)](respondWithResult(_0x40482b,0xc9))[_0x5b9ff5(0x1b6)](handleError(_0x40482b,null));},exports[a46_0x561919(0x19c)]=function(_0xc6edef,_0x557a01){const _0x19e6cc=a46_0x561919;return _0xc6edef['body']['id']&&delete _0xc6edef[_0x19e6cc(0x19a)]['id'],db['Automation'][_0x19e6cc(0x1ac)]({'where':{'id':_0xc6edef['params']['id']}})[_0x19e6cc(0x1a7)](handleEntityNotFound(_0x557a01,null))[_0x19e6cc(0x1a7)](saveUpdates(_0xc6edef['body'],null))['then'](respondWithResult(_0x557a01,null))[_0x19e6cc(0x1b6)](handleError(_0x557a01,null));},exports[a46_0x561919(0x193)]=function(_0x4996df,_0xc38ddd){const _0x7934aa=a46_0x561919;return db['Automation']['findOne']({'where':{'id':_0x4996df[_0x7934aa(0x1ba)]['id']}})[_0x7934aa(0x1a7)](handleEntityNotFound(_0xc38ddd,null))[_0x7934aa(0x1a7)](removeEntity(_0xc38ddd,null))[_0x7934aa(0x1b6)](handleError(_0xc38ddd,null));},exports[a46_0x561919(0x1b9)]=function(_0x4d2f6e,_0x31ed2c){const _0x496e01=a46_0x561919;return db[_0x496e01(0x189)][_0x496e01(0x1ac)]({'where':{'id':_0x4d2f6e[_0x496e01(0x1ba)]['id']}})[_0x496e01(0x1a7)](function(_0x31ece1){const _0x197339=_0x496e01;if(_0x31ece1)return _0x31ece1[_0x197339(0x1b9)](_0x4d2f6e[_0x197339(0x19a)]['ids'],{'through':_[_0x197339(0x1ad)](_0x4d2f6e[_0x197339(0x19a)],[_0x197339(0x1a4),'id'])});})[_0x496e01(0x1a7)](respondWithResult(_0x31ed2c,null))[_0x496e01(0x1b6)](handleError(_0x31ed2c,null));},exports[a46_0x561919(0x1ae)]=function(_0x573581,_0xb169e){const _0x1828ac=a46_0x561919;let _0xa65a5c={};const _0x70c26b={};let _0x6dbe87,_0x2a6669;return db['Automation']['findOne']({'where':{'id':_0x573581[_0x1828ac(0x1ba)]['id']}})[_0x1828ac(0x1a7)](handleEntityNotFound(_0xb169e,null))['then'](function(_0x29d49a){const _0x5c6e99=_0x1828ac;if(_0x29d49a)return _0x6dbe87=_0x29d49a,_0x70c26b[_0x5c6e99(0x1aa)]=_[_0x5c6e99(0x185)](db[_0x5c6e99(0x189)][_0x5c6e99(0x19b)]),_0x70c26b[_0x5c6e99(0x196)]=_[_0x5c6e99(0x185)](_0x573581[_0x5c6e99(0x196)]),_0x70c26b[_0x5c6e99(0x186)]=_[_0x5c6e99(0x1a9)](_0x70c26b['model'],_0x70c26b[_0x5c6e99(0x196)]),_0xa65a5c['attributes']=_[_0x5c6e99(0x1a9)](_0x70c26b[_0x5c6e99(0x1aa)],qs[_0x5c6e99(0x197)](_0x573581[_0x5c6e99(0x196)]['fields'])),_0xa65a5c['attributes']=_0xa65a5c[_0x5c6e99(0x1b2)][_0x5c6e99(0x1b7)]?_0xa65a5c[_0x5c6e99(0x1b2)]:_0x70c26b['model'],_0xa65a5c[_0x5c6e99(0x1b5)]=qs['sort'](_0x573581[_0x5c6e99(0x196)][_0x5c6e99(0x19e)]),_0xa65a5c[_0x5c6e99(0x1a5)]=qs['filters'](_[_0x5c6e99(0x188)](_0x573581[_0x5c6e99(0x196)],_0x70c26b[_0x5c6e99(0x186)])),_0x573581[_0x5c6e99(0x196)][_0x5c6e99(0x195)]&&(_0xa65a5c[_0x5c6e99(0x1a5)]=_[_0x5c6e99(0x1b4)](_0xa65a5c['where'],{[Op['or']]:_[_0x5c6e99(0x1a2)](_0xa65a5c['attributes'],function(_0x5887c2){const _0x3c405a=_0x5c6e99,_0x421c99={};return _0x421c99[_0x5887c2]={[Op[_0x3c405a(0x180)]]:'%'+_0x573581[_0x3c405a(0x196)][_0x3c405a(0x195)]+'%'},_0x421c99;})})),_0xa65a5c=_['merge']({},_0xa65a5c,_0x573581[_0x5c6e99(0x187)]),_0x6dbe87[_0x5c6e99(0x1ae)](_0xa65a5c);})['then'](function(_0x1ca53b){const _0xe27da1=_0x1828ac;if(_0x1ca53b)return _0x2a6669=_0x1ca53b[_0xe27da1(0x1b7)],typeof _0x573581[_0xe27da1(0x196)]['nolimit']===_0xe27da1(0x19f)&&(_0xa65a5c[_0xe27da1(0x1b0)]=qs['limit'](_0x573581[_0xe27da1(0x196)][_0xe27da1(0x1b0)]),_0xa65a5c[_0xe27da1(0x192)]=qs[_0xe27da1(0x192)](_0x573581[_0xe27da1(0x196)][_0xe27da1(0x192)])),_0x6dbe87[_0xe27da1(0x1ae)](_0xa65a5c);})['then'](function(_0xdc9760){if(_0xdc9760)return _0xdc9760?{'count':_0x2a6669,'rows':_0xdc9760}:null;})[_0x1828ac(0x1a7)](respondWithResult(_0xb169e,null))[_0x1828ac(0x1b6)](handleError(_0xb169e,null));},exports[a46_0x561919(0x18f)]=function(_0x233515,_0x23c010){const _0x329adb=a46_0x561919;return db['Action'][_0x329adb(0x1ac)]({'where':{'id':_0x233515[_0x329adb(0x1ba)]['id']}})[_0x329adb(0x1a7)](function(_0x35b97d){const _0x2e98e9=_0x329adb;if(_0x35b97d)return _0x35b97d[_0x2e98e9(0x18f)](_0x233515[_0x2e98e9(0x19a)][_0x2e98e9(0x1a4)],{'through':_[_0x2e98e9(0x1ad)](_0x233515[_0x2e98e9(0x19a)],[_0x2e98e9(0x1a4),'id'])});})['then'](respondWithResult(_0x23c010,null))[_0x329adb(0x1b6)](handleError(_0x23c010,null));},exports[a46_0x561919(0x18e)]=function(_0x11985a,_0x8a1033){const _0x4d6ca8=a46_0x561919;let _0x2fd4b1={};const _0x323394={};let _0x4ff6f8,_0x3f7dab;return db['Automation'][_0x4d6ca8(0x1ac)]({'where':{'id':_0x11985a[_0x4d6ca8(0x1ba)]['id']}})[_0x4d6ca8(0x1a7)](handleEntityNotFound(_0x8a1033,null))['then'](function(_0x13fc78){const _0x340a28=_0x4d6ca8;if(_0x13fc78)return _0x4ff6f8=_0x13fc78,_0x323394[_0x340a28(0x1aa)]=_[_0x340a28(0x185)](db['Action'][_0x340a28(0x19b)]),_0x323394[_0x340a28(0x196)]=_[_0x340a28(0x185)](_0x11985a[_0x340a28(0x196)]),_0x323394[_0x340a28(0x186)]=_[_0x340a28(0x1a9)](_0x323394[_0x340a28(0x1aa)],_0x323394[_0x340a28(0x196)]),_0x2fd4b1[_0x340a28(0x1b2)]=_['intersection'](_0x323394['model'],qs[_0x340a28(0x197)](_0x11985a[_0x340a28(0x196)]['fields'])),_0x2fd4b1['attributes']=_0x2fd4b1['attributes'][_0x340a28(0x1b7)]?_0x2fd4b1[_0x340a28(0x1b2)]:_0x323394[_0x340a28(0x1aa)],_0x2fd4b1['order']=qs[_0x340a28(0x19e)](_0x11985a[_0x340a28(0x196)]['sort']),_0x2fd4b1['where']=qs['filters'](_[_0x340a28(0x188)](_0x11985a[_0x340a28(0x196)],_0x323394[_0x340a28(0x186)])),_0x11985a[_0x340a28(0x196)][_0x340a28(0x195)]&&(_0x2fd4b1[_0x340a28(0x1a5)]=_[_0x340a28(0x1b4)](_0x2fd4b1[_0x340a28(0x1a5)],{[Op['or']]:_[_0x340a28(0x1a2)](_0x2fd4b1[_0x340a28(0x1b2)],function(_0x35996b){const _0x43b722=_0x340a28,_0x1872c7={};return _0x1872c7[_0x35996b]={[Op['like']]:'%'+_0x11985a['query'][_0x43b722(0x195)]+'%'},_0x1872c7;})})),_0x2fd4b1=_[_0x340a28(0x1b4)]({},_0x2fd4b1,_0x11985a[_0x340a28(0x187)]),_0x4ff6f8[_0x340a28(0x18e)](_0x2fd4b1);})[_0x4d6ca8(0x1a7)](function(_0x588699){const _0x2f5e5d=_0x4d6ca8;if(_0x588699)return _0x3f7dab=_0x588699[_0x2f5e5d(0x1b7)],typeof _0x11985a['query'][_0x2f5e5d(0x194)]===_0x2f5e5d(0x19f)&&(_0x2fd4b1[_0x2f5e5d(0x1b0)]=qs[_0x2f5e5d(0x1b0)](_0x11985a[_0x2f5e5d(0x196)][_0x2f5e5d(0x1b0)]),_0x2fd4b1[_0x2f5e5d(0x192)]=qs[_0x2f5e5d(0x192)](_0x11985a[_0x2f5e5d(0x196)]['offset'])),_0x4ff6f8[_0x2f5e5d(0x18e)](_0x2fd4b1);})[_0x4d6ca8(0x1a7)](function(_0x58c7a3){if(_0x58c7a3)return _0x58c7a3?{'count':_0x3f7dab,'rows':_0x58c7a3}:null;})[_0x4d6ca8(0x1a7)](respondWithResult(_0x8a1033,null))[_0x4d6ca8(0x1b6)](handleError(_0x8a1033,null));}; \ No newline at end of file diff --git a/server/api/automation/automation.model.js b/server/api/automation/automation.model.js index 24827ec..326f5bc 100644 --- a/server/api/automation/automation.model.js +++ b/server/api/automation/automation.model.js @@ -1 +1 @@ -const a39_0x58b8=['tools_automations','exports','define'];(function(_0xe6f420,_0x58b86d){const _0x596ce3=function(_0x107743){while(--_0x107743){_0xe6f420['push'](_0xe6f420['shift']());}};_0x596ce3(++_0x58b86d);}(a39_0x58b8,0x16b));const a39_0x596c=function(_0xe6f420,_0x58b86d){_0xe6f420=_0xe6f420-0x0;let _0x596ce3=a39_0x58b8[_0xe6f420];return _0x596ce3;};const _0x5008c1=a39_0x596c;'use strict';const attributes=require('./automation.attributes');module[_0x5008c1('0x1')]=function(_0x107743){const _0x2552ad=_0x5008c1,_0x134806=_0x107743[_0x2552ad('0x2')]('Automation',attributes,{'tableName':_0x2552ad('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x134806;}; \ No newline at end of file +const a47_0x1ce9=['exports','function','sequelize','init','./automation.options','Automation'];(function(_0x8018ef,_0x1a116d){const _0x1ce96d=function(_0x566c49){while(--_0x566c49){_0x8018ef['push'](_0x8018ef['shift']());}};_0x1ce96d(++_0x1a116d);}(a47_0x1ce9,0x1ac));const a47_0x566c=function(_0x8018ef,_0x1a116d){_0x8018ef=_0x8018ef-0x1ab;let _0x1ce96d=a47_0x1ce9[_0x8018ef];return _0x1ce96d;};const a47_0x3e4dbe=a47_0x566c;'use strict';const {Model}=require(a47_0x3e4dbe(0x1ab)),{attributes}=require('./automation.attributes'),{options}=require(a47_0x3e4dbe(0x1ad));class Automation extends Model{}function init(_0x4b9518,_0x54b475){const _0x5e36f4=a47_0x3e4dbe,_0xf11e60=options(_0x4b9518),_0x558572=typeof _0x54b475===_0x5e36f4(0x1b0)?_0x54b475(_0xf11e60):_0xf11e60;return Automation[_0x5e36f4(0x1ac)](attributes,_0x558572),Automation;}module[a47_0x3e4dbe(0x1af)][a47_0x3e4dbe(0x1ae)]=Automation,module[a47_0x3e4dbe(0x1af)]['init']=init; \ No newline at end of file diff --git a/server/api/automation/automation.options.js b/server/api/automation/automation.options.js new file mode 100644 index 0000000..db115d6 --- /dev/null +++ b/server/api/automation/automation.options.js @@ -0,0 +1 @@ +var a48_0x6400=['tools_automations','exports','options'];(function(_0x16f66f,_0x388f37){var _0x64002f=function(_0x5b2043){while(--_0x5b2043){_0x16f66f['push'](_0x16f66f['shift']());}};_0x64002f(++_0x388f37);}(a48_0x6400,0xfa));var a48_0x5b20=function(_0x16f66f,_0x388f37){_0x16f66f=_0x16f66f-0x1a5;var _0x64002f=a48_0x6400[_0x16f66f];return _0x64002f;};var a48_0x3262d0=a48_0x5b20;function options(_0x5066ac){var _0x563254=a48_0x5b20;return{'sequelize':_0x5066ac,'tableName':_0x563254(0x1a7),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a48_0x3262d0(0x1a5)][a48_0x3262d0(0x1a6)]=options; \ No newline at end of file diff --git a/server/api/automation/index.js b/server/api/automation/index.js index 875c1a9..2b9e1ce 100644 --- a/server/api/automation/index.js +++ b/server/api/automation/index.js @@ -1 +1 @@ -const a40_0x3c0f=['delete','Router','isAuthenticated','exports','post','../../components/auth/service','put','getConditions','get','express','./automation.controller','/:id','update','/:id/actions','/:id/conditions','create'];(function(_0x5f3051,_0x3c0fc4){const _0x5d52de=function(_0x6c1fa1){while(--_0x6c1fa1){_0x5f3051['push'](_0x5f3051['shift']());}};_0x5d52de(++_0x3c0fc4);}(a40_0x3c0f,0x102));const a40_0x5d52=function(_0x5f3051,_0x3c0fc4){_0x5f3051=_0x5f3051-0x0;let _0x5d52de=a40_0x3c0f[_0x5f3051];return _0x5d52de;};const _0x52c096=a40_0x5d52;'use strict';const express=require(_0x52c096('0x7')),router=express[_0x52c096('0xf')](),auth=require(_0x52c096('0x3')),controller=require(_0x52c096('0x8'));router[_0x52c096('0x6')]('/',auth[_0x52c096('0x0')](),controller['index']),router[_0x52c096('0x6')](_0x52c096('0x9'),auth[_0x52c096('0x0')](),controller['show']),router[_0x52c096('0x6')](_0x52c096('0xc'),auth['isAuthenticated'](),controller[_0x52c096('0x5')]),router['get'](_0x52c096('0xb'),auth[_0x52c096('0x0')](),controller['getActions']),router[_0x52c096('0x2')]('/',auth[_0x52c096('0x0')](),controller[_0x52c096('0xd')]),router[_0x52c096('0x2')](_0x52c096('0xc'),auth['isAuthenticated'](),controller['addConditions']),router['post'](_0x52c096('0xb'),auth['isAuthenticated'](),controller['addActions']),router[_0x52c096('0x4')]('/:id',auth['isAuthenticated'](),controller[_0x52c096('0xa')]),router[_0x52c096('0xe')]('/:id',auth[_0x52c096('0x0')](),controller['destroy']),module[_0x52c096('0x1')]=router; \ No newline at end of file +const a49_0x1108=['isAuthenticated','get','addActions','../../components/auth/service','getConditions','put','index','/:id/conditions','getActions','Router','show','exports','post','create','/:id/actions','delete','/:id'];(function(_0x2261fe,_0x477b1a){const _0x110869=function(_0x14cf5e){while(--_0x14cf5e){_0x2261fe['push'](_0x2261fe['shift']());}};_0x110869(++_0x477b1a);}(a49_0x1108,0x1df));const a49_0x14cf=function(_0x2261fe,_0x477b1a){_0x2261fe=_0x2261fe-0xa8;let _0x110869=a49_0x1108[_0x2261fe];return _0x110869;};const a49_0x3daf8c=a49_0x14cf;'use strict';const express=require('express'),router=express[a49_0x3daf8c(0xae)](),auth=require(a49_0x3daf8c(0xa8)),controller=require('./automation.controller');router[a49_0x3daf8c(0xb7)]('/',auth[a49_0x3daf8c(0xb6)](),controller[a49_0x3daf8c(0xab)]),router['get']('/:id',auth[a49_0x3daf8c(0xb6)](),controller[a49_0x3daf8c(0xaf)]),router[a49_0x3daf8c(0xb7)](a49_0x3daf8c(0xac),auth[a49_0x3daf8c(0xb6)](),controller[a49_0x3daf8c(0xa9)]),router[a49_0x3daf8c(0xb7)](a49_0x3daf8c(0xb3),auth[a49_0x3daf8c(0xb6)](),controller[a49_0x3daf8c(0xad)]),router[a49_0x3daf8c(0xb1)]('/',auth[a49_0x3daf8c(0xb6)](),controller[a49_0x3daf8c(0xb2)]),router[a49_0x3daf8c(0xb1)](a49_0x3daf8c(0xac),auth['isAuthenticated'](),controller['addConditions']),router[a49_0x3daf8c(0xb1)]('/:id/actions',auth[a49_0x3daf8c(0xb6)](),controller[a49_0x3daf8c(0xb8)]),router[a49_0x3daf8c(0xaa)](a49_0x3daf8c(0xb5),auth[a49_0x3daf8c(0xb6)](),controller['update']),router[a49_0x3daf8c(0xb4)](a49_0x3daf8c(0xb5),auth[a49_0x3daf8c(0xb6)](),controller['destroy']),module[a49_0x3daf8c(0xb0)]=router; \ No newline at end of file diff --git a/server/api/campaign/campaign.attributes.js b/server/api/campaign/campaign.attributes.js index e7db4e8..6e01fc0 100644 --- a/server/api/campaign/campaign.attributes.js +++ b/server/api/campaign/campaign.attributes.js @@ -1 +1 @@ -const a41_0x5e38=['#AgentReject\x20Retry\x20(min:1,\x20max:999)','Busy\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','Random\x20Last\x20Digit\x20(min:1,\x20max:15)','#AMD\x20Maximum\x20Word\x20Length','#Congestion\x20Retry\x20(min:1,\x20max:999)','Abandoned\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','#AMD\x20After\x20Greeting\x20Silence','#AMD\x20Total\x20Analysis\x20Time','NoSuchNumber\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','#AMD\x20Greeting','#NoSuchNumber\x20Retry\x20(min:1,\x20max:999)','name','07:00-22:00,*,*,*','#AMD\x20Initial\x20Silence','NoAnswer\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','onlyIfOpen','Active/Disactive\x20Campaign','#Global\x20Max\x20Retry\x20(min:1,\x20max:999)','ENUM','AgentReject\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','#Abandoned\x20Retry\x20(min:1,\x20max:999)','STRING','Congestion\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','#AMD\x20Min\x20Word\x20Length','INTEGER','ivr','UNSIGNED','#Drop\x20Retry\x20(min:1,\x20max:999)','Drop\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','Cut\x20Digit\x20(min:1,\x20max:15)','never','DESC','Originate\x20Timeout\x20Seconds\x20(min:1,\x20max:999)','always','sequelize','BOOLEAN','Max\x20200\x20calls.'];(function(_0x432620,_0x5e3801){const _0x5b7404=function(_0x306a67){while(--_0x306a67){_0x432620['push'](_0x432620['shift']());}};_0x5b7404(++_0x5e3801);}(a41_0x5e38,0x153));const a41_0x5b74=function(_0x432620,_0x5e3801){_0x432620=_0x432620-0x0;let _0x5b7404=a41_0x5e38[_0x432620];return _0x5b7404;};const _0x524521=a41_0x5b74;'use strict';const Sequelize=require(_0x524521('0x1c'));module['exports']={'name':{'type':Sequelize['STRING'],'unique':_0x524521('0x5'),'allowNull':![],'validate':{'is':/[A-Za-z0-9._\\+*!-]+/,'notEmpty':!![]}},'type':{'type':Sequelize[_0x524521('0xc')]('ivr'),'allowNull':![],'defaultValue':_0x524521('0x13')},'description':{'type':Sequelize[_0x524521('0xf')]},'active':{'type':Sequelize[_0x524521('0x1d')],'defaultValue':0x0,'comment':_0x524521('0xa')},'limitCalls':{'type':Sequelize['INTEGER'](0x4)['UNSIGNED'],'defaultValue':0x1e,'validate':{'min':0x1,'max':0xc8},'comment':_0x524521('0x1e')},'dialOriginateCallerIdName':{'type':Sequelize[_0x524521('0xf')]},'dialOriginateCallerIdNumber':{'type':Sequelize[_0x524521('0xf')]},'dialOriginateTimeout':{'type':Sequelize[_0x524521('0x12')](0x3)[_0x524521('0x14')],'defaultValue':0x1e,'validate':{'min':0x1,'max':0x3e7},'comment':_0x524521('0x1a')},'dialCongestionMaxRetry':{'type':Sequelize[_0x524521('0x12')](0x3)[_0x524521('0x14')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x524521('0x23')},'dialCongestionRetryFrequency':{'type':Sequelize[_0x524521('0x12')](0x5)[_0x524521('0x14')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0x524521('0x10')},'dialBusyMaxRetry':{'type':Sequelize[_0x524521('0x12')](0x3)[_0x524521('0x14')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':'#Busy\x20Retry\x20(min:1,\x20max:999)'},'dialBusyRetryFrequency':{'type':Sequelize[_0x524521('0x12')](0x5)[_0x524521('0x14')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0x524521('0x20')},'dialNoAnswerMaxRetry':{'type':Sequelize[_0x524521('0x12')](0x3)['UNSIGNED'],'defaultValue':0x3,'comment':'#NoAnswer\x20Retry\x20(min:1,\x20max:999)'},'dialNoAnswerRetryFrequency':{'type':Sequelize[_0x524521('0x12')](0x5)[_0x524521('0x14')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0x524521('0x8')},'dialGlobalMaxRetry':{'type':Sequelize[_0x524521('0x12')](0x3)['UNSIGNED'],'validate':{'min':0x1,'max':0x3e7},'defaultValue':0x4,'comment':_0x524521('0xb')},'dialTimezone':{'type':Sequelize['STRING'],'defaultValue':null},'dialGlobalInterval':{'type':Sequelize[_0x524521('0xf')],'defaultValue':_0x524521('0x6')},'dialCheckDuplicateType':{'type':Sequelize['ENUM'](_0x524521('0x1b'),_0x524521('0x18'),_0x524521('0x9')),'defaultValue':_0x524521('0x1b')},'dialAMDActive':{'type':Sequelize['BOOLEAN'],'defaultValue':0x0,'comment':'Active/Disactive\x20AMD'},'dialAMDInitialSilence':{'type':Sequelize[_0x524521('0x12')](0x9)['UNSIGNED'],'defaultValue':0x9c4,'validate':{'min':0x0},'comment':_0x524521('0x7')},'dialAMDGreeting':{'type':Sequelize[_0x524521('0x12')](0x9)[_0x524521('0x14')],'defaultValue':0x5dc,'validate':{'min':0x0},'comment':_0x524521('0x3')},'dialAMDAfterGreetingSilence':{'type':Sequelize[_0x524521('0x12')](0x9)[_0x524521('0x14')],'defaultValue':0x320,'validate':{'min':0x0},'comment':_0x524521('0x0')},'dialAMDTotalAnalysisTime':{'type':Sequelize['INTEGER'](0x9)[_0x524521('0x14')],'defaultValue':0x1388,'validate':{'min':0x0},'comment':_0x524521('0x1')},'dialAMDMinWordLength':{'type':Sequelize['INTEGER'](0x9)[_0x524521('0x14')],'defaultValue':0x64,'validate':{'min':0x0},'comment':_0x524521('0x11')},'dialAMDBetweenWordsSilence':{'type':Sequelize[_0x524521('0x12')](0x9)['UNSIGNED'],'defaultValue':0x32,'validate':{'min':0x0},'comment':'#AMD\x20Between\x20Words\x20Silence'},'dialAMDMaximumNumberOfWords':{'type':Sequelize[_0x524521('0x12')](0x9)[_0x524521('0x14')],'defaultValue':0x3,'validate':{'min':0x0},'comment':'#AMD\x20Maximum\x20Number\x20Of\x20Words'},'dialAMDSilenceThreshold':{'type':Sequelize[_0x524521('0x12')](0x5)['UNSIGNED'],'validate':{'min':0x0,'max':0x7fff},'defaultValue':0x100,'comment':'#AMD\x20Silence\x20Threshold\x20(min:0,\x20max:32767)'},'dialAMDMaximumWordLength':{'type':Sequelize['INTEGER'](0x9)[_0x524521('0x14')],'defaultValue':0x1388,'validate':{'min':0x0},'comment':_0x524521('0x22')},'dialOrderByScheduledAt':{'type':Sequelize[_0x524521('0xc')](_0x524521('0x19'),'ASC'),'defaultValue':_0x524521('0x19')},'dialPrefix':{'type':Sequelize['STRING'],'defaultValue':null},'dialRandomLastDigitCallerIdNumber':{'type':Sequelize[_0x524521('0x12')](0x3)[_0x524521('0x14')],'validate':{'min':0x0,'max':0xf},'defaultValue':0x0,'comment':_0x524521('0x21')},'dialCutDigit':{'type':Sequelize[_0x524521('0x12')](0x3)[_0x524521('0x14')],'validate':{'min':0x0,'max':0xf},'defaultValue':0x0,'comment':_0x524521('0x17')},'dialNoSuchNumberMaxRetry':{'type':Sequelize[_0x524521('0x12')](0x3)[_0x524521('0x14')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x524521('0x4')},'dialNoSuchNumberRetryFrequency':{'type':Sequelize['INTEGER'](0x5)[_0x524521('0x14')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0x524521('0x2')},'dialDropMaxRetry':{'type':Sequelize[_0x524521('0x12')](0x3)['UNSIGNED'],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x524521('0x15')},'dialDropRetryFrequency':{'type':Sequelize['INTEGER'](0x5)[_0x524521('0x14')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0x524521('0x16')},'dialAbandonedMaxRetry':{'type':Sequelize[_0x524521('0x12')](0x3)[_0x524521('0x14')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x524521('0xe')},'dialAbandonedRetryFrequency':{'type':Sequelize[_0x524521('0x12')](0x5)[_0x524521('0x14')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0x524521('0x24')},'dialMachineMaxRetry':{'type':Sequelize['INTEGER'](0x3)[_0x524521('0x14')],'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':'Machine\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)'},'dialAgentRejectMaxRetry':{'type':Sequelize[_0x524521('0x12')](0x3)[_0x524521('0x14')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x524521('0x1f')},'dialAgentRejectRetryFrequency':{'type':Sequelize[_0x524521('0x12')](0x5)['UNSIGNED'],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0x524521('0xd')}}; \ No newline at end of file +const a50_0x1e3f=['#Machine\x20Retry\x20(min:1,\x20max:999)','ASC','BOOLEAN','#NoAnswer\x20Retry\x20(min:1,\x20max:999)','NoAnswer\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','#Congestion\x20Retry\x20(min:1,\x20max:999)','ivr','#AMD\x20Min\x20Word\x20Length','Busy\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','sequelize','#AMD\x20Initial\x20Silence','Cut\x20Digit\x20(min:1,\x20max:15)','always','ENUM','never','INTEGER','Active/Disactive\x20AMD','Congestion\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','#AMD\x20Between\x20Words\x20Silence','#NoSuchNumber\x20Retry\x20(min:1,\x20max:999)','#AMD\x20Total\x20Analysis\x20Time','#AMD\x20Silence\x20Threshold\x20(min:0,\x20max:32767)','NoSuchNumber\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','DESC','07:00-22:00,*,*,*','Active/Disactive\x20Campaign','#Abandoned\x20Retry\x20(min:1,\x20max:999)','Max\x20200\x20calls.','Machine\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','#Global\x20Max\x20Retry\x20(min:1,\x20max:999)','#Drop\x20Retry\x20(min:1,\x20max:999)','#AgentReject\x20Retry\x20(min:1,\x20max:999)','name','Random\x20Last\x20Digit\x20(min:1,\x20max:15)','attributes','AgentReject\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','UNSIGNED','Drop\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','exports','STRING','#AMD\x20Greeting'];(function(_0x4405ea,_0x4f0a1c){const _0x1e3fe3=function(_0xc20658){while(--_0xc20658){_0x4405ea['push'](_0x4405ea['shift']());}};_0x1e3fe3(++_0x4f0a1c);}(a50_0x1e3f,0x19b));const a50_0xc206=function(_0x4405ea,_0x4f0a1c){_0x4405ea=_0x4405ea-0xb4;let _0x1e3fe3=a50_0x1e3f[_0x4405ea];return _0x1e3fe3;};const a50_0x4b07c1=a50_0xc206;'use strict';const {DataTypes}=require(a50_0x4b07c1(0xbc)),attributes={'name':{'type':DataTypes[a50_0x4b07c1(0xda)],'unique':a50_0x4b07c1(0xd3),'allowNull':![],'validate':{'is':/[A-Za-z0-9._\\+*!-]+/,'notEmpty':!![]}},'type':{'type':DataTypes[a50_0x4b07c1(0xc0)](a50_0x4b07c1(0xb9)),'allowNull':![],'defaultValue':a50_0x4b07c1(0xb9)},'description':{'type':DataTypes[a50_0x4b07c1(0xda)]},'active':{'type':DataTypes[a50_0x4b07c1(0xb5)],'defaultValue':0x0,'comment':a50_0x4b07c1(0xcc)},'limitCalls':{'type':DataTypes['INTEGER']({'length':0x4})[a50_0x4b07c1(0xd7)],'defaultValue':0x1e,'validate':{'min':0x1,'max':0xc8},'comment':a50_0x4b07c1(0xce)},'dialOriginateCallerIdName':{'type':DataTypes[a50_0x4b07c1(0xda)]},'dialOriginateCallerIdNumber':{'type':DataTypes[a50_0x4b07c1(0xda)]},'dialOriginateTimeout':{'type':DataTypes[a50_0x4b07c1(0xc2)]({'length':0x3})[a50_0x4b07c1(0xd7)],'defaultValue':0x1e,'validate':{'min':0x1,'max':0x3e7},'comment':'Originate\x20Timeout\x20Seconds\x20(min:1,\x20max:999)'},'dialCongestionMaxRetry':{'type':DataTypes[a50_0x4b07c1(0xc2)]({'length':0x3})[a50_0x4b07c1(0xd7)],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':a50_0x4b07c1(0xb8)},'dialCongestionRetryFrequency':{'type':DataTypes[a50_0x4b07c1(0xc2)]({'length':0x5})[a50_0x4b07c1(0xd7)],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':a50_0x4b07c1(0xc4)},'dialBusyMaxRetry':{'type':DataTypes['INTEGER']({'length':0x3})[a50_0x4b07c1(0xd7)],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':'#Busy\x20Retry\x20(min:1,\x20max:999)'},'dialBusyRetryFrequency':{'type':DataTypes[a50_0x4b07c1(0xc2)]({'length':0x5})[a50_0x4b07c1(0xd7)],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':a50_0x4b07c1(0xbb)},'dialNoAnswerMaxRetry':{'type':DataTypes[a50_0x4b07c1(0xc2)]({'length':0x3})[a50_0x4b07c1(0xd7)],'defaultValue':0x3,'comment':a50_0x4b07c1(0xb6)},'dialNoAnswerRetryFrequency':{'type':DataTypes[a50_0x4b07c1(0xc2)]({'length':0x5})[a50_0x4b07c1(0xd7)],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':a50_0x4b07c1(0xb7)},'dialGlobalMaxRetry':{'type':DataTypes['INTEGER']({'length':0x3})[a50_0x4b07c1(0xd7)],'validate':{'min':0x1,'max':0x3e7},'defaultValue':0x4,'comment':a50_0x4b07c1(0xd0)},'dialTimezone':{'type':DataTypes[a50_0x4b07c1(0xda)],'defaultValue':null},'dialGlobalInterval':{'type':DataTypes[a50_0x4b07c1(0xda)],'defaultValue':a50_0x4b07c1(0xcb)},'dialCheckDuplicateType':{'type':DataTypes[a50_0x4b07c1(0xc0)](a50_0x4b07c1(0xbf),a50_0x4b07c1(0xc1),'onlyIfOpen'),'defaultValue':a50_0x4b07c1(0xbf)},'dialAMDActive':{'type':DataTypes['BOOLEAN'],'defaultValue':0x0,'comment':a50_0x4b07c1(0xc3)},'dialAMDInitialSilence':{'type':DataTypes[a50_0x4b07c1(0xc2)]({'length':0x9})[a50_0x4b07c1(0xd7)],'defaultValue':0x9c4,'validate':{'min':0x0},'comment':a50_0x4b07c1(0xbd)},'dialAMDGreeting':{'type':DataTypes[a50_0x4b07c1(0xc2)]({'length':0x9})[a50_0x4b07c1(0xd7)],'defaultValue':0x5dc,'validate':{'min':0x0},'comment':a50_0x4b07c1(0xdb)},'dialAMDAfterGreetingSilence':{'type':DataTypes[a50_0x4b07c1(0xc2)]({'length':0x9})[a50_0x4b07c1(0xd7)],'defaultValue':0x320,'validate':{'min':0x0},'comment':'#AMD\x20After\x20Greeting\x20Silence'},'dialAMDTotalAnalysisTime':{'type':DataTypes['INTEGER']({'length':0x9})[a50_0x4b07c1(0xd7)],'defaultValue':0x1388,'validate':{'min':0x0},'comment':a50_0x4b07c1(0xc7)},'dialAMDMinWordLength':{'type':DataTypes[a50_0x4b07c1(0xc2)]({'length':0x9})[a50_0x4b07c1(0xd7)],'defaultValue':0x64,'validate':{'min':0x0},'comment':a50_0x4b07c1(0xba)},'dialAMDBetweenWordsSilence':{'type':DataTypes[a50_0x4b07c1(0xc2)]({'length':0x9})[a50_0x4b07c1(0xd7)],'defaultValue':0x32,'validate':{'min':0x0},'comment':a50_0x4b07c1(0xc5)},'dialAMDMaximumNumberOfWords':{'type':DataTypes['INTEGER']({'length':0x9})['UNSIGNED'],'defaultValue':0x3,'validate':{'min':0x0},'comment':'#AMD\x20Maximum\x20Number\x20Of\x20Words'},'dialAMDSilenceThreshold':{'type':DataTypes[a50_0x4b07c1(0xc2)]({'length':0x5})[a50_0x4b07c1(0xd7)],'validate':{'min':0x0,'max':0x7fff},'defaultValue':0x100,'comment':a50_0x4b07c1(0xc8)},'dialAMDMaximumWordLength':{'type':DataTypes['INTEGER']({'length':0x9})[a50_0x4b07c1(0xd7)],'defaultValue':0x1388,'validate':{'min':0x0},'comment':'#AMD\x20Maximum\x20Word\x20Length'},'dialOrderByScheduledAt':{'type':DataTypes[a50_0x4b07c1(0xc0)]('DESC',a50_0x4b07c1(0xb4)),'defaultValue':a50_0x4b07c1(0xca)},'dialPrefix':{'type':DataTypes[a50_0x4b07c1(0xda)],'defaultValue':null},'dialRandomLastDigitCallerIdNumber':{'type':DataTypes[a50_0x4b07c1(0xc2)]({'length':0x3})[a50_0x4b07c1(0xd7)],'validate':{'min':0x0,'max':0xf},'defaultValue':0x0,'comment':a50_0x4b07c1(0xd4)},'dialCutDigit':{'type':DataTypes[a50_0x4b07c1(0xc2)]({'length':0x3})[a50_0x4b07c1(0xd7)],'validate':{'min':0x0,'max':0xf},'defaultValue':0x0,'comment':a50_0x4b07c1(0xbe)},'dialNoSuchNumberMaxRetry':{'type':DataTypes[a50_0x4b07c1(0xc2)]({'length':0x3})[a50_0x4b07c1(0xd7)],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':a50_0x4b07c1(0xc6)},'dialNoSuchNumberRetryFrequency':{'type':DataTypes[a50_0x4b07c1(0xc2)]({'length':0x5})['UNSIGNED'],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':a50_0x4b07c1(0xc9)},'dialDropMaxRetry':{'type':DataTypes[a50_0x4b07c1(0xc2)]({'length':0x3})[a50_0x4b07c1(0xd7)],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':a50_0x4b07c1(0xd1)},'dialDropRetryFrequency':{'type':DataTypes[a50_0x4b07c1(0xc2)]({'length':0x5})[a50_0x4b07c1(0xd7)],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':a50_0x4b07c1(0xd8)},'dialAbandonedMaxRetry':{'type':DataTypes['INTEGER']({'length':0x3})[a50_0x4b07c1(0xd7)],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':a50_0x4b07c1(0xcd)},'dialAbandonedRetryFrequency':{'type':DataTypes[a50_0x4b07c1(0xc2)]({'length':0x5})[a50_0x4b07c1(0xd7)],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':'Abandoned\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)'},'dialMachineMaxRetry':{'type':DataTypes[a50_0x4b07c1(0xc2)]({'length':0x3})[a50_0x4b07c1(0xd7)],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':a50_0x4b07c1(0xdc)},'dialMachineRetryFrequency':{'type':DataTypes[a50_0x4b07c1(0xc2)]({'length':0x5})['UNSIGNED'],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':a50_0x4b07c1(0xcf)},'dialAgentRejectMaxRetry':{'type':DataTypes['INTEGER']({'length':0x3})[a50_0x4b07c1(0xd7)],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':a50_0x4b07c1(0xd2)},'dialAgentRejectRetryFrequency':{'type':DataTypes['INTEGER']({'length':0x5})['UNSIGNED'],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':a50_0x4b07c1(0xd6)}};module[a50_0x4b07c1(0xd9)][a50_0x4b07c1(0xd5)]=attributes; \ No newline at end of file diff --git a/server/api/campaign/campaign.controller.js b/server/api/campaign/campaign.controller.js index da22c28..2297066 100644 --- a/server/api/campaign/campaign.controller.js +++ b/server/api/campaign/campaign.controller.js @@ -1 +1 @@ -const a42_0x50fa=['ContactId','fromQuery','push','NOW()','set','includeAll','count','UserProfileResource','fields','../../mysqldb','updatedAt','attributes','ListId\x20=\x20?','stack','model','user','CampaignId\x20=\x20?','sort','autoAssociation','deletedAt\x20IS\x20NULL','COALESCE(calleridnum,\x27\x27)','IvrCampaigns','from','rawAttributes','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','merge','findOne','CmHopperBlack','phone\x20NOT\x20IN\x20(?)','Unable\x20to\x20retrieve\x20the\x20current\x20user','getHopperHistories','addLists','VIRTUAL','key','destroy','name','all','CmList','include','create','Campaign','error','params','order','update','like','phone','userProfileId','onlyIfOpen','into','getHoppers','cm_hopper_black','get','getHopperFinals','ids','options','phone\x20IS\x20NOT\x20NULL','getBlackLists','length','insert','limit','index','json','then','dialCheckDuplicateType','undefined','createdAt','scheduledAt','filters','always','cm_hopper','body','CampaignId','role','getLists','intersection','filter','rows','ListId','Content-Range','findAll','nolimit','status','CmListId','cm_contacts','field','end','addBlackLists','squel','map','COALESCE(phone,\x27\x27)','keys','pick','removeBlackLists','CmHopper','catch','CmHopperFinal','clone','sequelize','removeLists','omit','toString','../../components/parsers/qs','type','query','fieldName','offset','CmHopperHistory','lodash','where','send','select'];(function(_0x342875,_0x50fae7){const _0x4e7b6a=function(_0x4cea53){while(--_0x4cea53){_0x342875['push'](_0x342875['shift']());}};_0x4e7b6a(++_0x50fae7);}(a42_0x50fa,0x19f));const a42_0x4e7b=function(_0x342875,_0x50fae7){_0x342875=_0x342875-0x0;let _0x4e7b6a=a42_0x50fa[_0x342875];return _0x4e7b6a;};const _0x1afbba=a42_0x4e7b;'use strict';const _=require(_0x1afbba('0x1d')),squel=require(_0x1afbba('0x9')),qs=require(_0x1afbba('0x17')),logger=require('../../config/logger')('api'),db=require(_0x1afbba('0x2a'))['db'],{Op}=require(_0x1afbba('0x13'));function respondWithStatusCode(_0x4cea53,_0x5d0e6f){return _0x5d0e6f=_0x5d0e6f||0xcc,function(_0x28c58b){if(_0x28c58b)return _0x4cea53['sendStatus'](_0x5d0e6f);return _0x4cea53['status'](_0x5d0e6f)['end']();};}function respondWithResult(_0x1416cb,_0xa1155b){return _0xa1155b=_0xa1155b||0xc8,function(_0x21dcc3){const _0x1d544a=a42_0x4e7b;if(_0x21dcc3)return _0x1416cb['status'](_0xa1155b)[_0x1d544a('0x5f')](_0x21dcc3);};}function respondWithFilteredResult(_0x4e0907,_0x209014){return function(_0x19cf97){const _0x388932=a42_0x4e7b;if(_0x19cf97){const _0x404d8e=_0x19cf97[_0x388932('0x27')],_0x2255f0=_0x209014[_0x388932('0x1b')];let _0x11be6a=_0x209014[_0x388932('0x1b')]+_0x209014[_0x388932('0x5d')],_0x3cdad2;return _0x11be6a>=_0x404d8e?(_0x11be6a=_0x404d8e,_0x3cdad2=0xc8):_0x3cdad2=0xce,_0x4e0907[_0x388932('0x3')](_0x3cdad2),_0x4e0907[_0x388932('0x25')](_0x388932('0x0'),_0x2255f0+'-'+_0x11be6a+'/'+_0x404d8e)[_0x388932('0x5f')](_0x19cf97);}return null;};}function saveUpdates(_0x44bd7b){return function(_0x301c7e){const _0x1406b0=a42_0x4e7b;if(_0x301c7e)return _0x301c7e[_0x1406b0('0x4d')](_0x44bd7b)[_0x1406b0('0x60')](function(_0x4c7eef){return _0x4c7eef;});return null;};}function removeEntity(_0x82b11b){return function(_0x4549cb){const _0x10b8bd=a42_0x4e7b;if(_0x4549cb)return _0x4549cb[_0x10b8bd('0x43')]()[_0x10b8bd('0x60')](function(){const _0x522e22=_0x10b8bd,_0x400302=_0x4549cb[_0x522e22('0x55')]({'plain':!![]}),_0x5d8daa=_0x522e22('0x36');return db[_0x522e22('0x28')][_0x522e22('0x43')]({'where':{'type':_0x5d8daa,'resourceId':_0x400302['id']}})[_0x522e22('0x60')](function(){return _0x4549cb;});})['then'](function(){const _0x3dace8=_0x10b8bd;_0x82b11b[_0x3dace8('0x3')](0xcc)[_0x3dace8('0x7')]();});};}function handleEntityNotFound(_0x58f6a0){return function(_0x2a388f){return!_0x2a388f&&_0x58f6a0['sendStatus'](0x194),_0x2a388f;};}function handleError(_0x587fb4,_0x56c59c){return _0x56c59c=_0x56c59c||0x1f4,function(_0x318e82){const _0x33a2ad=a42_0x4e7b;logger[_0x33a2ad('0x4a')](_0x318e82[_0x33a2ad('0x2e')]),_0x318e82['name']&&delete _0x318e82[_0x33a2ad('0x44')],_0x587fb4[_0x33a2ad('0x3')](_0x56c59c)[_0x33a2ad('0x1f')](_0x318e82);};}exports[_0x1afbba('0x5e')]=function(_0x16ad9c,_0xfdcb9b){const _0x59e209=_0x1afbba;let _0x5bdeaf={};const _0x37312a={},_0x382dc={'count':0x0,'rows':[]},_0x383d5d=_[_0x59e209('0xa')](db[_0x59e209('0x49')]['rawAttributes'],function(_0x3292bc){const _0x4c9606=_0x59e209;return{'name':_0x3292bc[_0x4c9606('0x1a')],'type':_0x3292bc[_0x4c9606('0x18')][_0x4c9606('0x42')]};});_0x37312a[_0x59e209('0x2f')]=_['map'](_0x383d5d,'name'),_0x37312a[_0x59e209('0x19')]=_[_0x59e209('0xc')](_0x16ad9c[_0x59e209('0x19')]),_0x37312a[_0x59e209('0x65')]=_[_0x59e209('0x6c')](_0x37312a[_0x59e209('0x2f')],_0x37312a[_0x59e209('0x19')]),_0x5bdeaf[_0x59e209('0x2c')]=_['intersection'](_0x37312a[_0x59e209('0x2f')],qs[_0x59e209('0x29')](_0x16ad9c[_0x59e209('0x19')][_0x59e209('0x29')])),_0x5bdeaf['attributes']=_0x5bdeaf[_0x59e209('0x2c')]['length']?_0x5bdeaf[_0x59e209('0x2c')]:_0x37312a[_0x59e209('0x2f')];typeof _0x16ad9c[_0x59e209('0x19')]['nolimit']==='undefined'&&(_0x5bdeaf[_0x59e209('0x5d')]=qs[_0x59e209('0x5d')](_0x16ad9c[_0x59e209('0x19')][_0x59e209('0x5d')]),_0x5bdeaf[_0x59e209('0x1b')]=qs['offset'](_0x16ad9c['query']['offset']));_0x5bdeaf[_0x59e209('0x4c')]=qs[_0x59e209('0x32')](_0x16ad9c['query'][_0x59e209('0x32')]),_0x5bdeaf['where']=qs[_0x59e209('0x65')](_[_0x59e209('0xd')](_0x16ad9c[_0x59e209('0x19')],_0x37312a[_0x59e209('0x65')]),_0x383d5d);_0x16ad9c['query'][_0x59e209('0x6d')]&&(_0x5bdeaf[_0x59e209('0x1e')]=_['merge'](_0x5bdeaf['where'],{[Op['or']]:_[_0x59e209('0xa')](_0x383d5d,function(_0x5016a1){const _0x1f4fdb=_0x59e209;if(_0x5016a1[_0x1f4fdb('0x18')]!==_0x1f4fdb('0x41')){const _0x50d1c7={};return _0x50d1c7[_0x5016a1[_0x1f4fdb('0x44')]]={[Op[_0x1f4fdb('0x4e')]]:'%'+_0x16ad9c[_0x1f4fdb('0x19')][_0x1f4fdb('0x6d')]+'%'},_0x50d1c7;}})}));_0x5bdeaf=_[_0x59e209('0x3a')]({},_0x5bdeaf,_0x16ad9c[_0x59e209('0x58')]);const _0x4fab3f={'where':_0x5bdeaf[_0x59e209('0x1e')]};return db[_0x59e209('0x49')]['count'](_0x4fab3f)[_0x59e209('0x60')](function(_0x1e45ab){const _0x593289=_0x59e209;return _0x382dc[_0x593289('0x27')]=_0x1e45ab,_0x16ad9c['query'][_0x593289('0x26')]&&(_0x5bdeaf['include']=[{'all':!![]}]),db[_0x593289('0x49')][_0x593289('0x1')](_0x5bdeaf);})[_0x59e209('0x60')](function(_0x1599c8){return _0x382dc['rows']=_0x1599c8,_0x382dc;})[_0x59e209('0x60')](respondWithFilteredResult(_0xfdcb9b,_0x5bdeaf))[_0x59e209('0x10')](handleError(_0xfdcb9b,null));},exports['show']=function(_0x5a1165,_0x27a26e){const _0x3c627b=_0x1afbba;let _0x385fd0={'raw':![],'where':{'id':_0x5a1165[_0x3c627b('0x4b')]['id']}};const _0x40581d={};return _0x40581d[_0x3c627b('0x2f')]=_[_0x3c627b('0xc')](db[_0x3c627b('0x49')][_0x3c627b('0x38')]),_0x40581d[_0x3c627b('0x19')]=_[_0x3c627b('0xc')](_0x5a1165[_0x3c627b('0x19')]),_0x40581d[_0x3c627b('0x65')]=_[_0x3c627b('0x6c')](_0x40581d[_0x3c627b('0x2f')],_0x40581d[_0x3c627b('0x19')]),_0x385fd0['attributes']=_[_0x3c627b('0x6c')](_0x40581d[_0x3c627b('0x2f')],qs['fields'](_0x5a1165[_0x3c627b('0x19')]['fields'])),_0x385fd0[_0x3c627b('0x2c')]=_0x385fd0[_0x3c627b('0x2c')][_0x3c627b('0x5b')]?_0x385fd0[_0x3c627b('0x2c')]:_0x40581d[_0x3c627b('0x2f')],_0x5a1165['query'][_0x3c627b('0x26')]&&(_0x385fd0['include']=[{'all':!![]}]),_0x385fd0=_[_0x3c627b('0x3a')]({},_0x385fd0,_0x5a1165[_0x3c627b('0x58')]),db['Campaign']['findOne'](_0x385fd0)['then'](handleEntityNotFound(_0x27a26e,null))[_0x3c627b('0x60')](respondWithResult(_0x27a26e,null))[_0x3c627b('0x10')](handleError(_0x27a26e,null));},exports['create']=function(_0x114572,_0x858c02){const _0x152d58=_0x1afbba;return db[_0x152d58('0x49')]['create'](_0x114572[_0x152d58('0x68')],{})['then'](function(_0x23f8a7){const _0x1a7d07=_0x152d58,_0x1df5cb=_0x114572[_0x1a7d07('0x30')][_0x1a7d07('0x55')]({'plain':!![]});if(!_0x1df5cb)throw new Error(_0x1a7d07('0x3e'));if(_0x1df5cb['role']===_0x1a7d07('0x30')){const _0x47fadb=_0x23f8a7[_0x1a7d07('0x55')]({'plain':!![]}),_0x47557b='IvrCampaigns';return db['UserProfileSection'][_0x1a7d07('0x3b')]({'where':{'name':_0x47557b,'userProfileId':_0x1df5cb[_0x1a7d07('0x50')]},'raw':!![]})[_0x1a7d07('0x60')](function(_0x555caf){const _0x8e2c68=_0x1a7d07;return _0x555caf&&_0x555caf[_0x8e2c68('0x33')]===0x0?db[_0x8e2c68('0x28')][_0x8e2c68('0x48')]({'name':_0x47fadb[_0x8e2c68('0x44')],'resourceId':_0x47fadb['id'],'type':_0x555caf['name'],'sectionId':_0x555caf['id']},{})[_0x8e2c68('0x60')](function(){return _0x23f8a7;}):_0x23f8a7;})['catch'](function(_0xece4d0){const _0x57b711=_0x1a7d07;logger[_0x57b711('0x4a')]('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0xece4d0);throw _0xece4d0;});}return _0x23f8a7;})[_0x152d58('0x60')](respondWithResult(_0x858c02,0xc9))[_0x152d58('0x10')](handleError(_0x858c02,null));},exports[_0x1afbba('0x12')]=function(_0x2a814f,_0x583ab5){const _0x11a581=_0x1afbba;let _0x4b350c={'where':{'id':_0x2a814f[_0x11a581('0x4b')]['id']}};const _0x3db263={};return _0x3db263[_0x11a581('0x2f')]=_[_0x11a581('0xc')](db['Campaign'][_0x11a581('0x38')]),_0x4b350c['attributes']=_[_0x11a581('0x6c')](_0x3db263[_0x11a581('0x2f')],qs['fields'](_0x2a814f['query'][_0x11a581('0x29')])),_0x4b350c[_0x11a581('0x2c')]=_0x4b350c[_0x11a581('0x2c')][_0x11a581('0x5b')]?_0x4b350c['attributes']:_0x3db263[_0x11a581('0x2f')],_0x2a814f[_0x11a581('0x19')][_0x11a581('0x26')]&&(_0x4b350c['include']=[{'all':!![]}]),_0x4b350c=_['merge']({},_0x4b350c,_0x2a814f[_0x11a581('0x58')]),db['Campaign'][_0x11a581('0x3b')](_0x4b350c)[_0x11a581('0x60')](handleEntityNotFound(_0x583ab5,null))[_0x11a581('0x60')](function(_0x5574df){const _0xca98d8=_0x11a581;if(_0x5574df){let _0x58bdc4=_0x5574df[_0xca98d8('0x55')]({'plain':!![]});return _0x58bdc4=qs['omit'](_0x58bdc4,['id',_0xca98d8('0x63'),_0xca98d8('0x2b')]),_0x2a814f['body']=_[_0xca98d8('0x15')](_0x2a814f[_0xca98d8('0x68')],['id',_0xca98d8('0x63'),_0xca98d8('0x2b')]),db[_0xca98d8('0x49')][_0xca98d8('0x48')](_[_0xca98d8('0x3a')](_0x58bdc4,_0x2a814f['body']),{'include':_0x2a814f[_0xca98d8('0x19')][_0xca98d8('0x26')]?[{'all':!![]}]:undefined})[_0xca98d8('0x60')](function(_0x2bebbb){const _0x9d54eb=_0xca98d8,_0x472289=_0x2a814f[_0x9d54eb('0x30')][_0x9d54eb('0x55')]({'plain':!![]});if(!_0x472289)throw new Error(_0x9d54eb('0x3e'));if(_0x472289[_0x9d54eb('0x6a')]==='user'){const _0x456425=_0x2bebbb[_0x9d54eb('0x55')]({'plain':!![]}),_0x4b2533=_0x9d54eb('0x36');return db['UserProfileSection'][_0x9d54eb('0x3b')]({'where':{'name':_0x4b2533,'userProfileId':_0x472289[_0x9d54eb('0x50')]},'raw':!![]})[_0x9d54eb('0x60')](function(_0x34f3b4){const _0x1d1c23=_0x9d54eb;return _0x34f3b4&&_0x34f3b4[_0x1d1c23('0x33')]===0x0?db[_0x1d1c23('0x28')][_0x1d1c23('0x48')]({'name':_0x456425[_0x1d1c23('0x44')],'resourceId':_0x456425['id'],'type':_0x34f3b4['name'],'sectionId':_0x34f3b4['id']},{})[_0x1d1c23('0x60')](function(){return _0x2bebbb;}):_0x2bebbb;})['catch'](function(_0x53d7fc){const _0x4a6041=_0x9d54eb;logger[_0x4a6041('0x4a')](_0x4a6041('0x39'),_0x53d7fc);throw _0x53d7fc;});}return _0x2bebbb;});}})[_0x11a581('0x60')](respondWithResult(_0x583ab5,0xc9))[_0x11a581('0x10')](handleError(_0x583ab5,null));},exports['update']=function(_0x1704f9,_0x56e31c){const _0x366499=_0x1afbba;return _0x1704f9[_0x366499('0x68')]['id']&&delete _0x1704f9[_0x366499('0x68')]['id'],db[_0x366499('0x49')][_0x366499('0x3b')]({'where':{'id':_0x1704f9[_0x366499('0x4b')]['id']}})[_0x366499('0x60')](handleEntityNotFound(_0x56e31c,null))[_0x366499('0x60')](saveUpdates(_0x1704f9[_0x366499('0x68')],null))[_0x366499('0x60')](respondWithResult(_0x56e31c,null))[_0x366499('0x10')](handleError(_0x56e31c,null));},exports[_0x1afbba('0x43')]=function(_0x1f668e,_0x30f08d){const _0x5d247f=_0x1afbba;return db['Campaign']['findOne']({'where':{'id':_0x1f668e[_0x5d247f('0x4b')]['id']}})['then'](handleEntityNotFound(_0x30f08d,null))[_0x5d247f('0x60')](removeEntity(_0x30f08d,null))[_0x5d247f('0x10')](handleError(_0x30f08d,null));},exports[_0x1afbba('0x53')]=function(_0x4a8594,_0x16d174){const _0xbf5e32=_0x1afbba;let _0x5d724f={'raw':!![],'where':{}};const _0x113cc3={},_0x5608be={'count':0x0,'rows':[]};return db['Campaign']['findOne']({'where':{'id':_0x4a8594[_0xbf5e32('0x4b')]['id']}})[_0xbf5e32('0x60')](handleEntityNotFound(_0x16d174,null))[_0xbf5e32('0x60')](function(_0x4c11d4){const _0x4da627=_0xbf5e32;if(_0x4c11d4)return _0x113cc3[_0x4da627('0x2f')]=_['keys'](db[_0x4da627('0xf')]['rawAttributes']),_0x113cc3[_0x4da627('0x19')]=_[_0x4da627('0xc')](_0x4a8594['query']),_0x113cc3[_0x4da627('0x65')]=_[_0x4da627('0x6c')](_0x113cc3['model'],_0x113cc3[_0x4da627('0x19')]),_0x5d724f[_0x4da627('0x2c')]=_['intersection'](_0x113cc3[_0x4da627('0x2f')],qs[_0x4da627('0x29')](_0x4a8594[_0x4da627('0x19')][_0x4da627('0x29')])),_0x5d724f[_0x4da627('0x2c')]=_0x5d724f[_0x4da627('0x2c')][_0x4da627('0x5b')]?_0x5d724f['attributes']:_0x113cc3[_0x4da627('0x2f')],typeof _0x4a8594[_0x4da627('0x19')][_0x4da627('0x2')]==='undefined'&&(_0x5d724f[_0x4da627('0x5d')]=qs[_0x4da627('0x5d')](_0x4a8594['query']['limit']),_0x5d724f[_0x4da627('0x1b')]=qs[_0x4da627('0x1b')](_0x4a8594[_0x4da627('0x19')]['offset'])),_0x5d724f[_0x4da627('0x4c')]=qs[_0x4da627('0x32')](_0x4a8594[_0x4da627('0x19')][_0x4da627('0x32')]),_0x5d724f[_0x4da627('0x1e')]=qs[_0x4da627('0x65')](_[_0x4da627('0xd')](_0x4a8594[_0x4da627('0x19')],_0x113cc3[_0x4da627('0x65')])),_0x5d724f[_0x4da627('0x1e')]['CampaignId']=_0x4c11d4['id'],_0x4a8594[_0x4da627('0x19')]['filter']&&(_0x5d724f['where']=_[_0x4da627('0x3a')](_0x5d724f['where'],{[Op['or']]:_[_0x4da627('0xa')](_0x5d724f[_0x4da627('0x2c')],function(_0x496a46){const _0x5591bc=_0x4da627,_0x453bc6={};return _0x453bc6[_0x496a46]={[Op[_0x5591bc('0x4e')]]:'%'+_0x4a8594[_0x5591bc('0x19')]['filter']+'%'},_0x453bc6;})})),_0x5d724f=_[_0x4da627('0x3a')]({},_0x5d724f,_0x4a8594[_0x4da627('0x58')]),db[_0x4da627('0xf')][_0x4da627('0x27')]({'where':_0x5d724f['where']})['then'](function(_0x3f4cd8){const _0x4f2d49=_0x4da627;return _0x5608be[_0x4f2d49('0x27')]=_0x3f4cd8,_0x4a8594[_0x4f2d49('0x19')]['includeAll']&&(_0x5d724f[_0x4f2d49('0x47')]=[{'all':!![]}]),db[_0x4f2d49('0xf')][_0x4f2d49('0x1')](_0x5d724f);})[_0x4da627('0x60')](function(_0x5a228c){const _0x36c9ee=_0x4da627;return _0x5608be[_0x36c9ee('0x6e')]=_0x5a228c,_0x5608be;});})[_0xbf5e32('0x60')](respondWithFilteredResult(_0x16d174,_0x5d724f))[_0xbf5e32('0x10')](handleError(_0x16d174,null));},exports[_0x1afbba('0x3f')]=function(_0x57dd4d,_0x30e3b6){const _0x480a14=_0x1afbba;let _0x4a7a6b={'raw':!![],'where':{}};const _0x31dd41={},_0x1041c5={'count':0x0,'rows':[]};return db['Campaign'][_0x480a14('0x3b')]({'where':{'id':_0x57dd4d[_0x480a14('0x4b')]['id']}})[_0x480a14('0x60')](handleEntityNotFound(_0x30e3b6,null))[_0x480a14('0x60')](function(_0x4e0985){const _0x3972a8=_0x480a14;if(_0x4e0985)return _0x31dd41['model']=_['keys'](db[_0x3972a8('0x1c')][_0x3972a8('0x38')]),_0x31dd41['query']=_[_0x3972a8('0xc')](_0x57dd4d[_0x3972a8('0x19')]),_0x31dd41[_0x3972a8('0x65')]=_[_0x3972a8('0x6c')](_0x31dd41[_0x3972a8('0x2f')],_0x31dd41[_0x3972a8('0x19')]),_0x4a7a6b[_0x3972a8('0x2c')]=_['intersection'](_0x31dd41[_0x3972a8('0x2f')],qs['fields'](_0x57dd4d[_0x3972a8('0x19')]['fields'])),_0x4a7a6b['attributes']=_0x4a7a6b[_0x3972a8('0x2c')][_0x3972a8('0x5b')]?_0x4a7a6b[_0x3972a8('0x2c')]:_0x31dd41[_0x3972a8('0x2f')],typeof _0x57dd4d['query'][_0x3972a8('0x2')]==='undefined'&&(_0x4a7a6b[_0x3972a8('0x5d')]=qs[_0x3972a8('0x5d')](_0x57dd4d['query'][_0x3972a8('0x5d')]),_0x4a7a6b['offset']=qs['offset'](_0x57dd4d[_0x3972a8('0x19')][_0x3972a8('0x1b')])),_0x4a7a6b[_0x3972a8('0x4c')]=qs[_0x3972a8('0x32')](_0x57dd4d[_0x3972a8('0x19')][_0x3972a8('0x32')]),_0x4a7a6b[_0x3972a8('0x1e')]=qs['filters'](_['pick'](_0x57dd4d[_0x3972a8('0x19')],_0x31dd41['filters'])),_0x4a7a6b[_0x3972a8('0x1e')][_0x3972a8('0x69')]=_0x4e0985['id'],_0x57dd4d['query']['filter']&&(_0x4a7a6b[_0x3972a8('0x1e')]=_[_0x3972a8('0x3a')](_0x4a7a6b[_0x3972a8('0x1e')],{[Op['or']]:_[_0x3972a8('0xa')](_0x4a7a6b[_0x3972a8('0x2c')],function(_0x25d0ee){const _0x286b7c=_0x3972a8,_0x154e27={};return _0x154e27[_0x25d0ee]={[Op[_0x286b7c('0x4e')]]:'%'+_0x57dd4d[_0x286b7c('0x19')][_0x286b7c('0x6d')]+'%'},_0x154e27;})})),_0x4a7a6b=_['merge']({},_0x4a7a6b,_0x57dd4d[_0x3972a8('0x58')]),db[_0x3972a8('0x1c')][_0x3972a8('0x27')]({'where':_0x4a7a6b['where']})[_0x3972a8('0x60')](function(_0x48306a){const _0x370ea5=_0x3972a8;return _0x1041c5['count']=_0x48306a,_0x57dd4d['query'][_0x370ea5('0x26')]&&(_0x4a7a6b[_0x370ea5('0x47')]=[{'all':!![]}]),db['CmHopperHistory'][_0x370ea5('0x1')](_0x4a7a6b);})['then'](function(_0x3394ab){return _0x1041c5['rows']=_0x3394ab,_0x1041c5;});})[_0x480a14('0x60')](respondWithFilteredResult(_0x30e3b6,_0x4a7a6b))[_0x480a14('0x10')](handleError(_0x30e3b6,null));},exports[_0x1afbba('0x56')]=function(_0xed64da,_0x2937f9){const _0x24a8e4=_0x1afbba;let _0x52c175={'raw':!![],'where':{}};const _0x10d392={},_0x2c01da={'count':0x0,'rows':[]};return db[_0x24a8e4('0x49')][_0x24a8e4('0x3b')]({'where':{'id':_0xed64da[_0x24a8e4('0x4b')]['id']}})[_0x24a8e4('0x60')](handleEntityNotFound(_0x2937f9,null))[_0x24a8e4('0x60')](function(_0x17af3a){const _0x25cbaa=_0x24a8e4;if(_0x17af3a)return _0x10d392[_0x25cbaa('0x2f')]=_[_0x25cbaa('0xc')](db[_0x25cbaa('0x11')][_0x25cbaa('0x38')]),_0x10d392[_0x25cbaa('0x19')]=_[_0x25cbaa('0xc')](_0xed64da[_0x25cbaa('0x19')]),_0x10d392['filters']=_[_0x25cbaa('0x6c')](_0x10d392[_0x25cbaa('0x2f')],_0x10d392[_0x25cbaa('0x19')]),_0x52c175[_0x25cbaa('0x2c')]=_[_0x25cbaa('0x6c')](_0x10d392[_0x25cbaa('0x2f')],qs[_0x25cbaa('0x29')](_0xed64da['query'][_0x25cbaa('0x29')])),_0x52c175[_0x25cbaa('0x2c')]=_0x52c175[_0x25cbaa('0x2c')]['length']?_0x52c175[_0x25cbaa('0x2c')]:_0x10d392['model'],typeof _0xed64da[_0x25cbaa('0x19')][_0x25cbaa('0x2')]===_0x25cbaa('0x62')&&(_0x52c175[_0x25cbaa('0x5d')]=qs[_0x25cbaa('0x5d')](_0xed64da['query'][_0x25cbaa('0x5d')]),_0x52c175[_0x25cbaa('0x1b')]=qs['offset'](_0xed64da[_0x25cbaa('0x19')][_0x25cbaa('0x1b')])),_0x52c175[_0x25cbaa('0x4c')]=qs[_0x25cbaa('0x32')](_0xed64da[_0x25cbaa('0x19')]['sort']),_0x52c175[_0x25cbaa('0x1e')]=qs[_0x25cbaa('0x65')](_['pick'](_0xed64da['query'],_0x10d392[_0x25cbaa('0x65')])),_0x52c175[_0x25cbaa('0x1e')]['CampaignId']=_0x17af3a['id'],_0xed64da[_0x25cbaa('0x19')][_0x25cbaa('0x6d')]&&(_0x52c175[_0x25cbaa('0x1e')]=_['merge'](_0x52c175[_0x25cbaa('0x1e')],{[Op['or']]:_[_0x25cbaa('0xa')](_0x52c175['attributes'],function(_0x2727f5){const _0x5cf920=_0x25cbaa,_0x2205de={};return _0x2205de[_0x2727f5]={[Op['like']]:'%'+_0xed64da[_0x5cf920('0x19')][_0x5cf920('0x6d')]+'%'},_0x2205de;})})),_0x52c175=_[_0x25cbaa('0x3a')]({},_0x52c175,_0xed64da['options']),db[_0x25cbaa('0x11')][_0x25cbaa('0x27')]({'where':_0x52c175['where']})[_0x25cbaa('0x60')](function(_0x2fc281){const _0x1de731=_0x25cbaa;return _0x2c01da[_0x1de731('0x27')]=_0x2fc281,_0xed64da[_0x1de731('0x19')][_0x1de731('0x26')]&&(_0x52c175['include']=[{'all':!![]}]),db[_0x1de731('0x11')]['findAll'](_0x52c175);})[_0x25cbaa('0x60')](function(_0x12f2d4){const _0x3b7d=_0x25cbaa;return _0x2c01da[_0x3b7d('0x6e')]=_0x12f2d4,_0x2c01da;});})['then'](respondWithFilteredResult(_0x2937f9,_0x52c175))['catch'](handleError(_0x2937f9,null));},exports['getHopperBlacks']=function(_0x38ea4e,_0x8e40d0){const _0x50bf09=_0x1afbba;let _0x74b180={'raw':!![],'where':{}};const _0x238467={},_0x577c69={'count':0x0,'rows':[]};return db[_0x50bf09('0x49')][_0x50bf09('0x3b')]({'where':{'id':_0x38ea4e[_0x50bf09('0x4b')]['id']}})[_0x50bf09('0x60')](handleEntityNotFound(_0x8e40d0,null))[_0x50bf09('0x60')](function(_0x3f0163){const _0x52d69e=_0x50bf09;if(_0x3f0163)return _0x238467[_0x52d69e('0x2f')]=_['keys'](db[_0x52d69e('0x3c')][_0x52d69e('0x38')]),_0x238467[_0x52d69e('0x19')]=_[_0x52d69e('0xc')](_0x38ea4e[_0x52d69e('0x19')]),_0x238467[_0x52d69e('0x65')]=_[_0x52d69e('0x6c')](_0x238467[_0x52d69e('0x2f')],_0x238467[_0x52d69e('0x19')]),_0x74b180[_0x52d69e('0x2c')]=_[_0x52d69e('0x6c')](_0x238467[_0x52d69e('0x2f')],qs['fields'](_0x38ea4e[_0x52d69e('0x19')]['fields'])),_0x74b180[_0x52d69e('0x2c')]=_0x74b180[_0x52d69e('0x2c')][_0x52d69e('0x5b')]?_0x74b180[_0x52d69e('0x2c')]:_0x238467['model'],typeof _0x38ea4e['query'][_0x52d69e('0x2')]===_0x52d69e('0x62')&&(_0x74b180[_0x52d69e('0x5d')]=qs['limit'](_0x38ea4e[_0x52d69e('0x19')][_0x52d69e('0x5d')]),_0x74b180[_0x52d69e('0x1b')]=qs[_0x52d69e('0x1b')](_0x38ea4e[_0x52d69e('0x19')][_0x52d69e('0x1b')])),_0x74b180['order']=qs[_0x52d69e('0x32')](_0x38ea4e[_0x52d69e('0x19')][_0x52d69e('0x32')]),_0x74b180[_0x52d69e('0x1e')]=qs[_0x52d69e('0x65')](_['pick'](_0x38ea4e[_0x52d69e('0x19')],_0x238467[_0x52d69e('0x65')])),_0x74b180[_0x52d69e('0x1e')][_0x52d69e('0x69')]=_0x3f0163['id'],_0x38ea4e[_0x52d69e('0x19')][_0x52d69e('0x6d')]&&(_0x74b180['where']=_['merge'](_0x74b180['where'],{[Op['or']]:_['map'](_0x74b180['attributes'],function(_0x904775){const _0x3097da=_0x52d69e,_0x384ca3={};return _0x384ca3[_0x904775]={[Op[_0x3097da('0x4e')]]:'%'+_0x38ea4e[_0x3097da('0x19')]['filter']+'%'},_0x384ca3;})})),_0x74b180=_[_0x52d69e('0x3a')]({},_0x74b180,_0x38ea4e[_0x52d69e('0x58')]),db[_0x52d69e('0x3c')][_0x52d69e('0x27')]({'where':_0x74b180[_0x52d69e('0x1e')]})[_0x52d69e('0x60')](function(_0x2c905e){const _0x248e1a=_0x52d69e;return _0x577c69['count']=_0x2c905e,_0x38ea4e[_0x248e1a('0x19')][_0x248e1a('0x26')]&&(_0x74b180['include']=[{'all':!![]}]),db['CmHopperBlack'][_0x248e1a('0x1')](_0x74b180);})[_0x52d69e('0x60')](function(_0x4c6530){const _0x13f772=_0x52d69e;return _0x577c69[_0x13f772('0x6e')]=_0x4c6530,_0x577c69;});})[_0x50bf09('0x60')](respondWithFilteredResult(_0x8e40d0,_0x74b180))[_0x50bf09('0x10')](handleError(_0x8e40d0,null));},exports[_0x1afbba('0x6b')]=function(_0x40db38,_0x487583){const _0x502386=_0x1afbba;let _0x455d14={};const _0x1339d1={};let _0x553739,_0x58230f;return db[_0x502386('0x49')][_0x502386('0x3b')]({'where':{'id':_0x40db38[_0x502386('0x4b')]['id']}})[_0x502386('0x60')](handleEntityNotFound(_0x487583,null))[_0x502386('0x60')](function(_0xce1d4c){const _0x4d6667=_0x502386;if(_0xce1d4c)return _0x553739=_0xce1d4c,_0x1339d1['model']=_[_0x4d6667('0xc')](db[_0x4d6667('0x46')]['rawAttributes']),_0x1339d1[_0x4d6667('0x19')]=_[_0x4d6667('0xc')](_0x40db38[_0x4d6667('0x19')]),_0x1339d1[_0x4d6667('0x65')]=_[_0x4d6667('0x6c')](_0x1339d1[_0x4d6667('0x2f')],_0x1339d1[_0x4d6667('0x19')]),_0x455d14[_0x4d6667('0x2c')]=_[_0x4d6667('0x6c')](_0x1339d1[_0x4d6667('0x2f')],qs['fields'](_0x40db38[_0x4d6667('0x19')][_0x4d6667('0x29')])),_0x455d14[_0x4d6667('0x2c')]=_0x455d14[_0x4d6667('0x2c')][_0x4d6667('0x5b')]?_0x455d14['attributes']:_0x1339d1[_0x4d6667('0x2f')],_0x455d14[_0x4d6667('0x4c')]=qs[_0x4d6667('0x32')](_0x40db38['query'][_0x4d6667('0x32')]),_0x455d14[_0x4d6667('0x1e')]=qs[_0x4d6667('0x65')](_[_0x4d6667('0xd')](_0x40db38[_0x4d6667('0x19')],_0x1339d1[_0x4d6667('0x65')])),_0x40db38[_0x4d6667('0x19')]['filter']&&(_0x455d14[_0x4d6667('0x1e')]=_[_0x4d6667('0x3a')](_0x455d14[_0x4d6667('0x1e')],{[Op['or']]:_['map'](_0x455d14[_0x4d6667('0x2c')],function(_0xecf761){const _0x19cc05=_0x4d6667,_0x43d4b2={};return _0x43d4b2[_0xecf761]={[Op[_0x19cc05('0x4e')]]:'%'+_0x40db38['query'][_0x19cc05('0x6d')]+'%'},_0x43d4b2;})})),_0x455d14=_[_0x4d6667('0x3a')]({},_0x455d14,_0x40db38[_0x4d6667('0x58')]),_0x553739[_0x4d6667('0x6b')](_0x455d14);})[_0x502386('0x60')](function(_0x27e7c0){const _0x27a3cf=_0x502386;if(_0x27e7c0)return _0x58230f=_0x27e7c0[_0x27a3cf('0x5b')],typeof _0x40db38['query']['nolimit']==='undefined'&&(_0x455d14[_0x27a3cf('0x5d')]=qs[_0x27a3cf('0x5d')](_0x40db38[_0x27a3cf('0x19')]['limit']),_0x455d14[_0x27a3cf('0x1b')]=qs['offset'](_0x40db38[_0x27a3cf('0x19')][_0x27a3cf('0x1b')])),_0x553739[_0x27a3cf('0x6b')](_0x455d14);})['then'](function(_0x2938ca){if(_0x2938ca)return _0x2938ca?{'count':_0x58230f,'rows':_0x2938ca}:null;})[_0x502386('0x60')](respondWithResult(_0x487583,null))[_0x502386('0x10')](handleError(_0x487583,null));},exports['addLists']=function(_0x5c0663,_0x25172f){const _0x28ed23=_0x1afbba;let _0x2de544,_0x206c0e;return db['Campaign'][_0x28ed23('0x3b')]({'where':{'id':_0x5c0663[_0x28ed23('0x4b')]['id']}})[_0x28ed23('0x60')](handleEntityNotFound(_0x25172f,null))[_0x28ed23('0x60')](function(_0x18297c){const _0x3e6a06=_0x28ed23;if(_0x18297c)return _0x206c0e=_0x18297c,_0x18297c[_0x3e6a06('0x40')](_0x5c0663[_0x3e6a06('0x68')]['ids'],{'through':_[_0x3e6a06('0x15')](_0x5c0663[_0x3e6a06('0x68')],['ids','id'])});return null;})[_0x28ed23('0x60')](function(_0x2b8e46){const _0x396c46=_0x28ed23;let _0x19096f;_0x2de544=_0x2b8e46||[];const _0x34bc69=[];if(_0x2b8e46){for(let _0x1f57ca=0x0;_0x1f57ca<_0x2b8e46['length'];_0x1f57ca+=0x1){const _0x1e241a=_0x2b8e46[_0x1f57ca][_0x396c46('0x55')]({'plain':!![]});_0x206c0e[_0x396c46('0x61')]=_0x5c0663[_0x396c46('0x68')][_0x396c46('0x61')]?_0x5c0663[_0x396c46('0x68')][_0x396c46('0x61')]:_0x206c0e[_0x396c46('0x61')];switch(_0x206c0e[_0x396c46('0x61')]){case _0x396c46('0x66'):_0x19096f=squel[_0x396c46('0x5c')]()[_0x396c46('0x52')](_0x396c46('0x67'))[_0x396c46('0x22')](['phone','scheduledAt',_0x396c46('0x21'),_0x396c46('0x6f'),_0x396c46('0x69'),_0x396c46('0x63'),_0x396c46('0x2b')],squel['select']()['field']('phone','phone')['field']('NOW()',_0x396c46('0x64'))[_0x396c46('0x6')]('id',_0x396c46('0x21'))[_0x396c46('0x6')](_0x1e241a[_0x396c46('0x4')][_0x396c46('0x16')](),'ListId')['field'](_0x5c0663[_0x396c46('0x4b')]['id'][_0x396c46('0x16')](),'CampaignId')[_0x396c46('0x6')](_0x396c46('0x24'),_0x396c46('0x63'))['field']('NOW()',_0x396c46('0x2b'))[_0x396c46('0x37')](_0x396c46('0x5'))['where'](_0x396c46('0x34'))['where'](_0x396c46('0x2d'),_0x1e241a[_0x396c46('0x4')][_0x396c46('0x16')]())[_0x396c46('0x1e')](_0x396c46('0x59'))[_0x396c46('0x1e')](_0x396c46('0x3d'),squel['select']()[_0x396c46('0x6')](_0x396c46('0x35'))[_0x396c46('0x37')]('cm_hopper_final')['where'](_0x396c46('0x31'),_0x5c0663[_0x396c46('0x4b')]['id'][_0x396c46('0x16')]()))[_0x396c46('0x1e')](_0x396c46('0x3d'),squel['select']()[_0x396c46('0x6')]('COALESCE(phone,\x27\x27)')[_0x396c46('0x37')](_0x396c46('0x67'))[_0x396c46('0x1e')](_0x396c46('0x31'),_0x5c0663['params']['id'][_0x396c46('0x16')]())))['toString']();break;case _0x396c46('0x51'):_0x19096f=squel[_0x396c46('0x5c')]()[_0x396c46('0x52')](_0x396c46('0x67'))[_0x396c46('0x22')](['phone',_0x396c46('0x64'),_0x396c46('0x21'),_0x396c46('0x6f'),'CampaignId',_0x396c46('0x63'),'updatedAt'],squel[_0x396c46('0x20')]()['field'](_0x396c46('0x4f'),_0x396c46('0x4f'))[_0x396c46('0x6')](_0x396c46('0x24'),_0x396c46('0x64'))[_0x396c46('0x6')]('id',_0x396c46('0x21'))[_0x396c46('0x6')](_0x1e241a[_0x396c46('0x4')]['toString'](),_0x396c46('0x6f'))['field'](_0x5c0663[_0x396c46('0x4b')]['id'][_0x396c46('0x16')](),_0x396c46('0x69'))[_0x396c46('0x6')]('NOW()',_0x396c46('0x63'))[_0x396c46('0x6')](_0x396c46('0x24'),'updatedAt')[_0x396c46('0x37')](_0x396c46('0x5'))['where'](_0x396c46('0x34'))[_0x396c46('0x1e')](_0x396c46('0x2d'),_0x1e241a[_0x396c46('0x4')][_0x396c46('0x16')]())[_0x396c46('0x1e')](_0x396c46('0x59'))[_0x396c46('0x1e')](_0x396c46('0x3d'),squel[_0x396c46('0x20')]()[_0x396c46('0x6')](_0x396c46('0xb'))[_0x396c46('0x37')](_0x396c46('0x67'))[_0x396c46('0x1e')](_0x396c46('0x31'),_0x5c0663[_0x396c46('0x4b')]['id'][_0x396c46('0x16')]())))[_0x396c46('0x16')]();break;default:_0x19096f=squel[_0x396c46('0x5c')]()['into']('cm_hopper')[_0x396c46('0x22')]([_0x396c46('0x4f'),'scheduledAt','ContactId',_0x396c46('0x6f'),_0x396c46('0x69'),'createdAt',_0x396c46('0x2b')],squel[_0x396c46('0x20')]()[_0x396c46('0x6')](_0x396c46('0x4f'),'phone')[_0x396c46('0x6')]('NOW()',_0x396c46('0x64'))[_0x396c46('0x6')]('id','ContactId')[_0x396c46('0x6')](_0x1e241a[_0x396c46('0x4')]['toString'](),'ListId')[_0x396c46('0x6')](_0x5c0663['params']['id'][_0x396c46('0x16')](),'CampaignId')[_0x396c46('0x6')](_0x396c46('0x24'),_0x396c46('0x63'))['field'](_0x396c46('0x24'),_0x396c46('0x2b'))[_0x396c46('0x37')](_0x396c46('0x5'))[_0x396c46('0x1e')](_0x396c46('0x34'))[_0x396c46('0x1e')]('ListId\x20=\x20?',_0x1e241a[_0x396c46('0x4')]['toString']())[_0x396c46('0x1e')]('phone\x20IS\x20NOT\x20NULL'))[_0x396c46('0x16')]();}_0x34bc69[_0x396c46('0x23')](db['sequelize'][_0x396c46('0x19')](_0x19096f));}return Promise[_0x396c46('0x45')](_0x34bc69);}})['then'](function(){return _0x2de544;})[_0x28ed23('0x60')](respondWithResult(_0x25172f,null))[_0x28ed23('0x10')](handleError(_0x25172f,null));},exports[_0x1afbba('0x14')]=function(_0x3473ea,_0x2e040f){const _0x43aa53=_0x1afbba;return db[_0x43aa53('0x49')][_0x43aa53('0x3b')]({'where':{'id':_0x3473ea[_0x43aa53('0x4b')]['id']}})[_0x43aa53('0x60')](handleEntityNotFound(_0x2e040f,null))[_0x43aa53('0x60')](function(_0x58e918){const _0x42c78a=_0x43aa53;if(_0x58e918)return _0x58e918[_0x42c78a('0x14')](_0x3473ea['query'][_0x42c78a('0x57')]);})[_0x43aa53('0x60')](function(_0x47706){const _0x315336=_0x43aa53;if(_0x47706)return db[_0x315336('0xf')][_0x315336('0x43')]({'where':{'ListId':_0x3473ea['query'][_0x315336('0x57')],'CampaignId':_0x3473ea[_0x315336('0x4b')]['id']}})[_0x315336('0x60')](function(){return _0x47706;});})[_0x43aa53('0x60')](respondWithStatusCode(_0x2e040f,null))['catch'](handleError(_0x2e040f,null));},exports[_0x1afbba('0x5a')]=function(_0x13881b,_0x1111f5){const _0x1e8b47=_0x1afbba;let _0x474a1a={'raw':!![],'where':{}};const _0x44b732={},_0x50c9ec={'count':0x0,'rows':[]};return db[_0x1e8b47('0x49')][_0x1e8b47('0x3b')]({'where':{'id':_0x13881b['params']['id']}})[_0x1e8b47('0x60')](handleEntityNotFound(_0x1111f5,null))[_0x1e8b47('0x60')](function(_0x2ac7aa){const _0xc07bb8=_0x1e8b47;if(_0x2ac7aa)return _0x44b732['model']=_[_0xc07bb8('0xc')](db[_0xc07bb8('0x46')][_0xc07bb8('0x38')]),_0x44b732[_0xc07bb8('0x19')]=_[_0xc07bb8('0xc')](_0x13881b[_0xc07bb8('0x19')]),_0x44b732[_0xc07bb8('0x65')]=_[_0xc07bb8('0x6c')](_0x44b732[_0xc07bb8('0x2f')],_0x44b732['query']),_0x474a1a['attributes']=_[_0xc07bb8('0x6c')](_0x44b732[_0xc07bb8('0x2f')],qs[_0xc07bb8('0x29')](_0x13881b[_0xc07bb8('0x19')][_0xc07bb8('0x29')])),_0x474a1a[_0xc07bb8('0x2c')]=_0x474a1a[_0xc07bb8('0x2c')]['length']?_0x474a1a[_0xc07bb8('0x2c')]:_0x44b732[_0xc07bb8('0x2f')],typeof _0x13881b[_0xc07bb8('0x19')][_0xc07bb8('0x2')]===_0xc07bb8('0x62')&&(_0x474a1a[_0xc07bb8('0x5d')]=qs[_0xc07bb8('0x5d')](_0x13881b[_0xc07bb8('0x19')][_0xc07bb8('0x5d')]),_0x474a1a['offset']=qs[_0xc07bb8('0x1b')](_0x13881b['query'][_0xc07bb8('0x1b')])),_0x474a1a[_0xc07bb8('0x4c')]=qs[_0xc07bb8('0x32')](_0x13881b[_0xc07bb8('0x19')][_0xc07bb8('0x32')]),_0x474a1a[_0xc07bb8('0x1e')]=qs[_0xc07bb8('0x65')](_[_0xc07bb8('0xd')](_0x13881b[_0xc07bb8('0x19')],_0x44b732['filters'])),_0x474a1a[_0xc07bb8('0x1e')][_0xc07bb8('0x69')]=_0x2ac7aa['id'],_0x13881b[_0xc07bb8('0x19')][_0xc07bb8('0x6d')]&&(_0x474a1a[_0xc07bb8('0x1e')]=_[_0xc07bb8('0x3a')](_0x474a1a[_0xc07bb8('0x1e')],{[Op['or']]:_[_0xc07bb8('0xa')](_0x474a1a['attributes'],function(_0xff3512){const _0x4aacde=_0xc07bb8,_0x30ee42={};return _0x30ee42[_0xff3512]={[Op[_0x4aacde('0x4e')]]:'%'+_0x13881b[_0x4aacde('0x19')]['filter']+'%'},_0x30ee42;})})),_0x474a1a=_[_0xc07bb8('0x3a')]({},_0x474a1a,_0x13881b['options']),db[_0xc07bb8('0x46')][_0xc07bb8('0x27')]({'where':_0x474a1a['where']})[_0xc07bb8('0x60')](function(_0x524842){const _0x376c62=_0xc07bb8;return _0x50c9ec[_0x376c62('0x27')]=_0x524842,_0x13881b[_0x376c62('0x19')][_0x376c62('0x26')]&&(_0x474a1a[_0x376c62('0x47')]=[{'all':!![]}]),db[_0x376c62('0x46')][_0x376c62('0x1')](_0x474a1a);})[_0xc07bb8('0x60')](function(_0x37e509){return _0x50c9ec['rows']=_0x37e509,_0x50c9ec;});})['then'](respondWithFilteredResult(_0x1111f5,_0x474a1a))[_0x1e8b47('0x10')](handleError(_0x1111f5,null));},exports[_0x1afbba('0x8')]=function(_0xc51c47,_0x23c623){const _0x417d50=_0x1afbba;let _0x4d2d4e;return db['Campaign'][_0x417d50('0x3b')]({'where':{'id':_0xc51c47[_0x417d50('0x4b')]['id']}})[_0x417d50('0x60')](handleEntityNotFound(_0x23c623,null))[_0x417d50('0x60')](function(_0x1b9187){const _0x304e1f=_0x417d50;if(_0x1b9187)return _0x1b9187[_0x304e1f('0x8')](_0xc51c47[_0x304e1f('0x68')][_0x304e1f('0x57')],{'through':_['omit'](_0xc51c47[_0x304e1f('0x68')],[_0x304e1f('0x57'),'id'])});return null;})[_0x417d50('0x60')](function(_0x3bb5d7){const _0x19c646=_0x417d50;let _0x4e016c;_0x4d2d4e=_0x3bb5d7||[];const _0x5b755f=[];if(_0x3bb5d7){for(let _0x41dd26=0x0;_0x41dd26<_0x3bb5d7['length'];_0x41dd26+=0x1){const _0x4a1004=_0x3bb5d7[_0x41dd26]['get']({'plain':!![]});_0x4e016c=squel[_0x19c646('0x5c')]()['into'](_0x19c646('0x54'))[_0x19c646('0x22')]([_0x19c646('0x4f'),'ContactId',_0x19c646('0x6f'),_0x19c646('0x69'),_0x19c646('0x63'),_0x19c646('0x2b')],squel[_0x19c646('0x20')]()[_0x19c646('0x6')](_0x19c646('0x4f'),_0x19c646('0x4f'))[_0x19c646('0x6')]('id',_0x19c646('0x21'))[_0x19c646('0x6')](_0x4a1004[_0x19c646('0x4')][_0x19c646('0x16')](),_0x19c646('0x6f'))[_0x19c646('0x6')](_0xc51c47[_0x19c646('0x4b')]['id']['toString'](),_0x19c646('0x69'))[_0x19c646('0x6')]('NOW()','createdAt')[_0x19c646('0x6')](_0x19c646('0x24'),_0x19c646('0x2b'))[_0x19c646('0x37')](_0x19c646('0x5'))[_0x19c646('0x1e')](_0x19c646('0x34'))[_0x19c646('0x1e')](_0x19c646('0x2d'),_0x4a1004['CmListId'][_0x19c646('0x16')]())[_0x19c646('0x1e')]('phone\x20IS\x20NOT\x20NULL'))[_0x19c646('0x16')](),_0x5b755f[_0x19c646('0x23')](db[_0x19c646('0x13')]['query'](_0x4e016c));}return Promise[_0x19c646('0x45')](_0x5b755f);}})['then'](function(){return _0x4d2d4e;})['then'](respondWithResult(_0x23c623,null))[_0x417d50('0x10')](handleError(_0x23c623,null));},exports[_0x1afbba('0xe')]=function(_0x564748,_0x43c59c){const _0x26ca4b=_0x1afbba;return db[_0x26ca4b('0x49')][_0x26ca4b('0x3b')]({'where':{'id':_0x564748['params']['id']}})['then'](handleEntityNotFound(_0x43c59c,null))[_0x26ca4b('0x60')](function(_0x58ffae){const _0x51817e=_0x26ca4b;if(_0x58ffae)return _0x58ffae[_0x51817e('0xe')](_0x564748[_0x51817e('0x19')]['ids']);})[_0x26ca4b('0x60')](function(_0x443532){const _0x58b880=_0x26ca4b;if(_0x443532)return db[_0x58b880('0x3c')]['destroy']({'where':{'ListId':_0x564748['query'][_0x58b880('0x57')],'CampaignId':_0x564748['params']['id']}})[_0x58b880('0x60')](function(){return _0x443532;});})[_0x26ca4b('0x60')](respondWithStatusCode(_0x43c59c,null))['catch'](handleError(_0x43c59c,null));}; \ No newline at end of file +const a51_0x19f9=['COALESCE(phone,\x27\x27)','options','findOne','ids','fields','sort','rows','addLists','name','merge','status','phone','body','set','getHoppers','getLists','VIRTUAL','omit','findAll','cm_hopper_final','role','get','CmHopperHistory','push','end','destroy','CmHopperBlack','select','phone\x20IS\x20NOT\x20NULL','include','intersection','CmHopper','getBlackLists','CmListId','ListId','rawAttributes','type','dialCheckDuplicateType','createdAt','CampaignId','user','NOW()','toString','into','clone','map','includeAll','stack','then','like','catch','phone\x20NOT\x20IN\x20(?)','IvrCampaigns','CmList','getHopperFinals','nolimit','cm_hopper','onlyIfOpen','attributes','always','create','json','UserProfileSection','Campaign','model','fromQuery','from','CmHopperFinal','offset','filter','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','Content-Range','length','ContactId','undefined','scheduledAt','Unable\x20to\x20retrieve\x20the\x20current\x20user','UserProfileResource','query','updatedAt','filters','insert','removeLists','index','limit','removeBlackLists','cm_contacts','pick','addBlackLists','update','count','ListId\x20=\x20?','COALESCE(calleridnum,\x27\x27)','sequelize','order','send','cm_hopper_black','userProfileId','where','params','CampaignId\x20=\x20?','autoAssociation','../../components/parsers/qs','field','sendStatus','keys','deletedAt\x20IS\x20NULL','error','all','squel'];(function(_0x36744b,_0x2b646e){const _0x19f908=function(_0x5e091f){while(--_0x5e091f){_0x36744b['push'](_0x36744b['shift']());}};_0x19f908(++_0x2b646e);}(a51_0x19f9,0xab));const a51_0x5e09=function(_0x36744b,_0x2b646e){_0x36744b=_0x36744b-0xa7;let _0x19f908=a51_0x19f9[_0x36744b];return _0x19f908;};const a51_0x51708d=a51_0x5e09;'use strict';const _=require('lodash'),squel=require(a51_0x51708d(0xd7)),qs=require(a51_0x51708d(0xd0)),logger=require('../../config/logger')('api'),{db}=require('../../mysqldb'),{Op}=require(a51_0x51708d(0xc7));function respondWithStatusCode(_0x4f21b8,_0x2f6cd1){return _0x2f6cd1=_0x2f6cd1||0xcc,function(_0x47e6ed){const _0x3dd0d7=a51_0x5e09;if(_0x47e6ed)return _0x4f21b8[_0x3dd0d7(0xd2)](_0x2f6cd1);return _0x4f21b8['status'](_0x2f6cd1)[_0x3dd0d7(0xf0)]();};}function respondWithResult(_0x3894d9,_0x2c7e4e){return _0x2c7e4e=_0x2c7e4e||0xc8,function(_0x5ce451){const _0x40c3dd=a51_0x5e09;if(_0x5ce451)return _0x3894d9[_0x40c3dd(0xe2)](_0x2c7e4e)[_0x40c3dd(0xa7)](_0x5ce451);};}function respondWithFilteredResult(_0x5d5e73,_0x4594e6){return function(_0x87cfc0){const _0x33092b=a51_0x5e09;if(_0x87cfc0){const _0x13cbb3=_0x87cfc0[_0x33092b(0xc4)],_0x148565=_0x4594e6[_0x33092b(0xae)];let _0x98b341=_0x4594e6['offset']+_0x4594e6['limit'],_0x227cef;return _0x98b341>=_0x13cbb3?(_0x98b341=_0x13cbb3,_0x227cef=0xc8):_0x227cef=0xce,_0x5d5e73[_0x33092b(0xe2)](_0x227cef),_0x5d5e73[_0x33092b(0xe5)](_0x33092b(0xb1),_0x148565+'-'+_0x98b341+'/'+_0x13cbb3)['json'](_0x87cfc0);}return null;};}function saveUpdates(_0x1dd3c3){return function(_0x5e7414){const _0xdf624=a51_0x5e09;if(_0x5e7414)return _0x5e7414[_0xdf624(0xc3)](_0x1dd3c3)['then'](function(_0x502211){return _0x502211;});return null;};}function removeEntity(_0x1e5cc3){return function(_0x252805){const _0x4a955a=a51_0x5e09;if(_0x252805)return _0x252805[_0x4a955a(0xf1)]()[_0x4a955a(0x108)](function(){const _0x4a4721=_0x4a955a,_0x464cb6=_0x252805[_0x4a4721(0xed)]({'plain':!![]}),_0x3f1a7c='IvrCampaigns';return db['UserProfileResource'][_0x4a4721(0xf1)]({'where':{'type':_0x3f1a7c,'resourceId':_0x464cb6['id']}})['then'](function(){return _0x252805;});})[_0x4a955a(0x108)](function(){_0x1e5cc3['status'](0xcc)['end']();});};}function handleEntityNotFound(_0x239ef0){return function(_0x5bccd0){const _0x37fbc0=a51_0x5e09;return!_0x5bccd0&&_0x239ef0[_0x37fbc0(0xd2)](0x194),_0x5bccd0;};}function handleError(_0x37150c,_0x9fd6e4){return _0x9fd6e4=_0x9fd6e4||0x1f4,function(_0x4d52eb){const _0x4fa129=a51_0x5e09;logger[_0x4fa129(0xd5)](_0x4d52eb[_0x4fa129(0x107)]),_0x4d52eb[_0x4fa129(0xe0)]&&delete _0x4d52eb[_0x4fa129(0xe0)],_0x37150c[_0x4fa129(0xe2)](_0x9fd6e4)[_0x4fa129(0xc9)](_0x4d52eb);};}exports[a51_0x51708d(0xbd)]=function(_0x45b626,_0x37272c){const _0x2475f9=a51_0x51708d;let _0x3caeb2={};const _0x4c9273={},_0x4e34b8={'count':0x0,'rows':[]},_0x424c84=_['map'](db[_0x2475f9(0xa9)]['rawAttributes'],function(_0x491a18){const _0x4eda96=_0x2475f9;return{'name':_0x491a18['fieldName'],'type':_0x491a18[_0x4eda96(0xfc)]['key']};});_0x4c9273[_0x2475f9(0xaa)]=_[_0x2475f9(0x105)](_0x424c84,_0x2475f9(0xe0)),_0x4c9273[_0x2475f9(0xb8)]=_[_0x2475f9(0xd3)](_0x45b626[_0x2475f9(0xb8)]),_0x4c9273[_0x2475f9(0xba)]=_[_0x2475f9(0xf6)](_0x4c9273['model'],_0x4c9273[_0x2475f9(0xb8)]),_0x3caeb2[_0x2475f9(0x112)]=_['intersection'](_0x4c9273['model'],qs['fields'](_0x45b626[_0x2475f9(0xb8)][_0x2475f9(0xdc)])),_0x3caeb2[_0x2475f9(0x112)]=_0x3caeb2[_0x2475f9(0x112)][_0x2475f9(0xb2)]?_0x3caeb2[_0x2475f9(0x112)]:_0x4c9273[_0x2475f9(0xaa)];typeof _0x45b626[_0x2475f9(0xb8)][_0x2475f9(0x10f)]===_0x2475f9(0xb4)&&(_0x3caeb2[_0x2475f9(0xbe)]=qs[_0x2475f9(0xbe)](_0x45b626[_0x2475f9(0xb8)]['limit']),_0x3caeb2[_0x2475f9(0xae)]=qs[_0x2475f9(0xae)](_0x45b626['query'][_0x2475f9(0xae)]));_0x3caeb2[_0x2475f9(0xc8)]=qs['sort'](_0x45b626[_0x2475f9(0xb8)]['sort']),_0x3caeb2['where']=qs[_0x2475f9(0xba)](_['pick'](_0x45b626[_0x2475f9(0xb8)],_0x4c9273[_0x2475f9(0xba)]),_0x424c84);_0x45b626[_0x2475f9(0xb8)]['filter']&&(_0x3caeb2[_0x2475f9(0xcc)]=_['merge'](_0x3caeb2[_0x2475f9(0xcc)],{[Op['or']]:_[_0x2475f9(0x105)](_0x424c84,function(_0x236f7c){const _0x5b34ea=_0x2475f9;if(_0x236f7c[_0x5b34ea(0xfc)]!==_0x5b34ea(0xe8)){const _0x4e1bcf={};return _0x4e1bcf[_0x236f7c['name']]={[Op[_0x5b34ea(0x109)]]:'%'+_0x45b626['query'][_0x5b34ea(0xaf)]+'%'},_0x4e1bcf;}})}));_0x3caeb2=_[_0x2475f9(0xe1)]({},_0x3caeb2,_0x45b626[_0x2475f9(0xd9)]);const _0x595af8={'where':_0x3caeb2[_0x2475f9(0xcc)]};return db[_0x2475f9(0xa9)][_0x2475f9(0xc4)](_0x595af8)[_0x2475f9(0x108)](function(_0x843032){const _0x1c8290=_0x2475f9;return _0x4e34b8['count']=_0x843032,_0x45b626[_0x1c8290(0xb8)][_0x1c8290(0x106)]&&(_0x3caeb2['include']=[{'all':!![]}]),db['Campaign'][_0x1c8290(0xea)](_0x3caeb2);})['then'](function(_0x1e7106){const _0x571f69=_0x2475f9;return _0x4e34b8[_0x571f69(0xde)]=_0x1e7106,_0x4e34b8;})['then'](respondWithFilteredResult(_0x37272c,_0x3caeb2))[_0x2475f9(0x10a)](handleError(_0x37272c,null));},exports['show']=function(_0x2470f4,_0x3f9df4){const _0x10582d=a51_0x51708d;let _0x815e08={'raw':![],'where':{'id':_0x2470f4[_0x10582d(0xcd)]['id']}};const _0x23510d={};return _0x23510d[_0x10582d(0xaa)]=_[_0x10582d(0xd3)](db['Campaign'][_0x10582d(0xfb)]),_0x23510d[_0x10582d(0xb8)]=_['keys'](_0x2470f4[_0x10582d(0xb8)]),_0x23510d[_0x10582d(0xba)]=_[_0x10582d(0xf6)](_0x23510d[_0x10582d(0xaa)],_0x23510d[_0x10582d(0xb8)]),_0x815e08['attributes']=_[_0x10582d(0xf6)](_0x23510d['model'],qs[_0x10582d(0xdc)](_0x2470f4[_0x10582d(0xb8)]['fields'])),_0x815e08[_0x10582d(0x112)]=_0x815e08[_0x10582d(0x112)]['length']?_0x815e08[_0x10582d(0x112)]:_0x23510d[_0x10582d(0xaa)],_0x2470f4[_0x10582d(0xb8)]['includeAll']&&(_0x815e08[_0x10582d(0xf5)]=[{'all':!![]}]),_0x815e08=_[_0x10582d(0xe1)]({},_0x815e08,_0x2470f4['options']),db['Campaign'][_0x10582d(0xda)](_0x815e08)[_0x10582d(0x108)](handleEntityNotFound(_0x3f9df4,null))[_0x10582d(0x108)](respondWithResult(_0x3f9df4,null))[_0x10582d(0x10a)](handleError(_0x3f9df4,null));},exports['create']=function(_0x4fca92,_0x2bd968){const _0x235a05=a51_0x51708d;return db[_0x235a05(0xa9)][_0x235a05(0x114)](_0x4fca92[_0x235a05(0xe4)],{})[_0x235a05(0x108)](function(_0x46f41f){const _0x344404=_0x235a05,_0x515f33=_0x4fca92[_0x344404(0x100)][_0x344404(0xed)]({'plain':!![]});if(!_0x515f33)throw new Error(_0x344404(0xb6));if(_0x515f33[_0x344404(0xec)]===_0x344404(0x100)){const _0x155ede=_0x46f41f[_0x344404(0xed)]({'plain':!![]}),_0x5c2e82=_0x344404(0x10c);return db[_0x344404(0xa8)][_0x344404(0xda)]({'where':{'name':_0x5c2e82,'userProfileId':_0x515f33[_0x344404(0xcb)]},'raw':!![]})[_0x344404(0x108)](function(_0x1ece22){const _0x24f9c8=_0x344404;return _0x1ece22&&_0x1ece22[_0x24f9c8(0xcf)]===0x0?db[_0x24f9c8(0xb7)]['create']({'name':_0x155ede['name'],'resourceId':_0x155ede['id'],'type':_0x1ece22['name'],'sectionId':_0x1ece22['id']},{})['then'](function(){return _0x46f41f;}):_0x46f41f;})['catch'](function(_0x146781){const _0x4593d9=_0x344404;logger[_0x4593d9(0xd5)](_0x4593d9(0xb0),_0x146781);throw _0x146781;});}return _0x46f41f;})[_0x235a05(0x108)](respondWithResult(_0x2bd968,0xc9))[_0x235a05(0x10a)](handleError(_0x2bd968,null));},exports[a51_0x51708d(0x104)]=function(_0xdd7636,_0x2fc5a9){const _0x4e0766=a51_0x51708d;let _0x3f9370={'where':{'id':_0xdd7636[_0x4e0766(0xcd)]['id']}};const _0x26a95c={};return _0x26a95c['model']=_[_0x4e0766(0xd3)](db[_0x4e0766(0xa9)][_0x4e0766(0xfb)]),_0x3f9370[_0x4e0766(0x112)]=_[_0x4e0766(0xf6)](_0x26a95c[_0x4e0766(0xaa)],qs[_0x4e0766(0xdc)](_0xdd7636[_0x4e0766(0xb8)][_0x4e0766(0xdc)])),_0x3f9370['attributes']=_0x3f9370['attributes'][_0x4e0766(0xb2)]?_0x3f9370[_0x4e0766(0x112)]:_0x26a95c[_0x4e0766(0xaa)],_0xdd7636[_0x4e0766(0xb8)]['includeAll']&&(_0x3f9370[_0x4e0766(0xf5)]=[{'all':!![]}]),_0x3f9370=_[_0x4e0766(0xe1)]({},_0x3f9370,_0xdd7636[_0x4e0766(0xd9)]),db[_0x4e0766(0xa9)][_0x4e0766(0xda)](_0x3f9370)['then'](handleEntityNotFound(_0x2fc5a9,null))['then'](function(_0x4f2c17){const _0x1aaf2a=_0x4e0766;if(_0x4f2c17){let _0xdb6ed=_0x4f2c17[_0x1aaf2a(0xed)]({'plain':!![]});return _0xdb6ed=qs['omit'](_0xdb6ed,['id',_0x1aaf2a(0xfe),_0x1aaf2a(0xb9)]),_0xdd7636['body']=_[_0x1aaf2a(0xe9)](_0xdd7636[_0x1aaf2a(0xe4)],['id',_0x1aaf2a(0xfe),_0x1aaf2a(0xb9)]),db[_0x1aaf2a(0xa9)][_0x1aaf2a(0x114)](_[_0x1aaf2a(0xe1)](_0xdb6ed,_0xdd7636['body']),{'include':_0xdd7636['query'][_0x1aaf2a(0x106)]?[{'all':!![]}]:undefined})[_0x1aaf2a(0x108)](function(_0x2adcb2){const _0x4e2024=_0x1aaf2a,_0x12d9e6=_0xdd7636[_0x4e2024(0x100)][_0x4e2024(0xed)]({'plain':!![]});if(!_0x12d9e6)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x12d9e6[_0x4e2024(0xec)]===_0x4e2024(0x100)){const _0x109878=_0x2adcb2[_0x4e2024(0xed)]({'plain':!![]}),_0x137a91=_0x4e2024(0x10c);return db[_0x4e2024(0xa8)][_0x4e2024(0xda)]({'where':{'name':_0x137a91,'userProfileId':_0x12d9e6[_0x4e2024(0xcb)]},'raw':!![]})[_0x4e2024(0x108)](function(_0x2cf45d){const _0x46e034=_0x4e2024;return _0x2cf45d&&_0x2cf45d[_0x46e034(0xcf)]===0x0?db[_0x46e034(0xb7)]['create']({'name':_0x109878[_0x46e034(0xe0)],'resourceId':_0x109878['id'],'type':_0x2cf45d[_0x46e034(0xe0)],'sectionId':_0x2cf45d['id']},{})[_0x46e034(0x108)](function(){return _0x2adcb2;}):_0x2adcb2;})['catch'](function(_0x3b8a38){const _0x58ff18=_0x4e2024;logger[_0x58ff18(0xd5)]('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0x3b8a38);throw _0x3b8a38;});}return _0x2adcb2;});}})[_0x4e0766(0x108)](respondWithResult(_0x2fc5a9,0xc9))[_0x4e0766(0x10a)](handleError(_0x2fc5a9,null));},exports[a51_0x51708d(0xc3)]=function(_0x4fe8c4,_0x2ec01a){const _0x357e3d=a51_0x51708d;return _0x4fe8c4[_0x357e3d(0xe4)]['id']&&delete _0x4fe8c4[_0x357e3d(0xe4)]['id'],db['Campaign'][_0x357e3d(0xda)]({'where':{'id':_0x4fe8c4['params']['id']}})['then'](handleEntityNotFound(_0x2ec01a,null))[_0x357e3d(0x108)](saveUpdates(_0x4fe8c4[_0x357e3d(0xe4)],null))['then'](respondWithResult(_0x2ec01a,null))[_0x357e3d(0x10a)](handleError(_0x2ec01a,null));},exports['destroy']=function(_0x968c4d,_0x419621){const _0x2f9a5a=a51_0x51708d;return db[_0x2f9a5a(0xa9)][_0x2f9a5a(0xda)]({'where':{'id':_0x968c4d[_0x2f9a5a(0xcd)]['id']}})[_0x2f9a5a(0x108)](handleEntityNotFound(_0x419621,null))[_0x2f9a5a(0x108)](removeEntity(_0x419621,null))[_0x2f9a5a(0x10a)](handleError(_0x419621,null));},exports[a51_0x51708d(0xe6)]=function(_0x4a5773,_0xdb709e){const _0x43c963=a51_0x51708d;let _0x3a6cb3={'raw':!![],'where':{}};const _0x3cd997={},_0x5bce77={'count':0x0,'rows':[]};return db['Campaign'][_0x43c963(0xda)]({'where':{'id':_0x4a5773[_0x43c963(0xcd)]['id']}})[_0x43c963(0x108)](handleEntityNotFound(_0xdb709e,null))[_0x43c963(0x108)](function(_0x1418f5){const _0x275b28=_0x43c963;if(_0x1418f5)return _0x3cd997[_0x275b28(0xaa)]=_[_0x275b28(0xd3)](db[_0x275b28(0xf7)][_0x275b28(0xfb)]),_0x3cd997[_0x275b28(0xb8)]=_['keys'](_0x4a5773[_0x275b28(0xb8)]),_0x3cd997[_0x275b28(0xba)]=_['intersection'](_0x3cd997[_0x275b28(0xaa)],_0x3cd997[_0x275b28(0xb8)]),_0x3a6cb3['attributes']=_['intersection'](_0x3cd997[_0x275b28(0xaa)],qs['fields'](_0x4a5773[_0x275b28(0xb8)][_0x275b28(0xdc)])),_0x3a6cb3[_0x275b28(0x112)]=_0x3a6cb3[_0x275b28(0x112)][_0x275b28(0xb2)]?_0x3a6cb3[_0x275b28(0x112)]:_0x3cd997['model'],typeof _0x4a5773[_0x275b28(0xb8)][_0x275b28(0x10f)]==='undefined'&&(_0x3a6cb3[_0x275b28(0xbe)]=qs['limit'](_0x4a5773['query'][_0x275b28(0xbe)]),_0x3a6cb3[_0x275b28(0xae)]=qs['offset'](_0x4a5773['query']['offset'])),_0x3a6cb3[_0x275b28(0xc8)]=qs['sort'](_0x4a5773[_0x275b28(0xb8)][_0x275b28(0xdd)]),_0x3a6cb3[_0x275b28(0xcc)]=qs[_0x275b28(0xba)](_[_0x275b28(0xc1)](_0x4a5773[_0x275b28(0xb8)],_0x3cd997[_0x275b28(0xba)])),_0x3a6cb3['where'][_0x275b28(0xff)]=_0x1418f5['id'],_0x4a5773['query'][_0x275b28(0xaf)]&&(_0x3a6cb3['where']=_[_0x275b28(0xe1)](_0x3a6cb3[_0x275b28(0xcc)],{[Op['or']]:_[_0x275b28(0x105)](_0x3a6cb3[_0x275b28(0x112)],function(_0x14689b){const _0x44bf30=_0x275b28,_0x466e3c={};return _0x466e3c[_0x14689b]={[Op[_0x44bf30(0x109)]]:'%'+_0x4a5773[_0x44bf30(0xb8)][_0x44bf30(0xaf)]+'%'},_0x466e3c;})})),_0x3a6cb3=_[_0x275b28(0xe1)]({},_0x3a6cb3,_0x4a5773['options']),db[_0x275b28(0xf7)][_0x275b28(0xc4)]({'where':_0x3a6cb3['where']})[_0x275b28(0x108)](function(_0x6a47c9){const _0x19682e=_0x275b28;return _0x5bce77[_0x19682e(0xc4)]=_0x6a47c9,_0x4a5773[_0x19682e(0xb8)][_0x19682e(0x106)]&&(_0x3a6cb3[_0x19682e(0xf5)]=[{'all':!![]}]),db['CmHopper']['findAll'](_0x3a6cb3);})[_0x275b28(0x108)](function(_0x83cef0){return _0x5bce77['rows']=_0x83cef0,_0x5bce77;});})[_0x43c963(0x108)](respondWithFilteredResult(_0xdb709e,_0x3a6cb3))[_0x43c963(0x10a)](handleError(_0xdb709e,null));},exports['getHopperHistories']=function(_0x126fd4,_0x61d6af){const _0x29c145=a51_0x51708d;let _0x4819b3={'raw':!![],'where':{}};const _0x3dcef7={},_0x55864f={'count':0x0,'rows':[]};return db[_0x29c145(0xa9)]['findOne']({'where':{'id':_0x126fd4['params']['id']}})['then'](handleEntityNotFound(_0x61d6af,null))[_0x29c145(0x108)](function(_0x364c3d){const _0x3ddfbf=_0x29c145;if(_0x364c3d)return _0x3dcef7[_0x3ddfbf(0xaa)]=_[_0x3ddfbf(0xd3)](db[_0x3ddfbf(0xee)][_0x3ddfbf(0xfb)]),_0x3dcef7[_0x3ddfbf(0xb8)]=_['keys'](_0x126fd4['query']),_0x3dcef7[_0x3ddfbf(0xba)]=_[_0x3ddfbf(0xf6)](_0x3dcef7[_0x3ddfbf(0xaa)],_0x3dcef7[_0x3ddfbf(0xb8)]),_0x4819b3[_0x3ddfbf(0x112)]=_[_0x3ddfbf(0xf6)](_0x3dcef7[_0x3ddfbf(0xaa)],qs[_0x3ddfbf(0xdc)](_0x126fd4[_0x3ddfbf(0xb8)]['fields'])),_0x4819b3[_0x3ddfbf(0x112)]=_0x4819b3[_0x3ddfbf(0x112)][_0x3ddfbf(0xb2)]?_0x4819b3[_0x3ddfbf(0x112)]:_0x3dcef7['model'],typeof _0x126fd4['query'][_0x3ddfbf(0x10f)]===_0x3ddfbf(0xb4)&&(_0x4819b3[_0x3ddfbf(0xbe)]=qs[_0x3ddfbf(0xbe)](_0x126fd4['query'][_0x3ddfbf(0xbe)]),_0x4819b3[_0x3ddfbf(0xae)]=qs[_0x3ddfbf(0xae)](_0x126fd4[_0x3ddfbf(0xb8)]['offset'])),_0x4819b3[_0x3ddfbf(0xc8)]=qs[_0x3ddfbf(0xdd)](_0x126fd4[_0x3ddfbf(0xb8)][_0x3ddfbf(0xdd)]),_0x4819b3[_0x3ddfbf(0xcc)]=qs[_0x3ddfbf(0xba)](_[_0x3ddfbf(0xc1)](_0x126fd4[_0x3ddfbf(0xb8)],_0x3dcef7[_0x3ddfbf(0xba)])),_0x4819b3['where'][_0x3ddfbf(0xff)]=_0x364c3d['id'],_0x126fd4['query'][_0x3ddfbf(0xaf)]&&(_0x4819b3[_0x3ddfbf(0xcc)]=_[_0x3ddfbf(0xe1)](_0x4819b3[_0x3ddfbf(0xcc)],{[Op['or']]:_[_0x3ddfbf(0x105)](_0x4819b3[_0x3ddfbf(0x112)],function(_0x5cfda3){const _0x38ccdc=_0x3ddfbf,_0x3ab8df={};return _0x3ab8df[_0x5cfda3]={[Op[_0x38ccdc(0x109)]]:'%'+_0x126fd4[_0x38ccdc(0xb8)][_0x38ccdc(0xaf)]+'%'},_0x3ab8df;})})),_0x4819b3=_[_0x3ddfbf(0xe1)]({},_0x4819b3,_0x126fd4['options']),db[_0x3ddfbf(0xee)][_0x3ddfbf(0xc4)]({'where':_0x4819b3[_0x3ddfbf(0xcc)]})[_0x3ddfbf(0x108)](function(_0x2e8a4d){const _0x225d13=_0x3ddfbf;return _0x55864f[_0x225d13(0xc4)]=_0x2e8a4d,_0x126fd4['query'][_0x225d13(0x106)]&&(_0x4819b3[_0x225d13(0xf5)]=[{'all':!![]}]),db['CmHopperHistory']['findAll'](_0x4819b3);})[_0x3ddfbf(0x108)](function(_0x1bde7f){return _0x55864f['rows']=_0x1bde7f,_0x55864f;});})[_0x29c145(0x108)](respondWithFilteredResult(_0x61d6af,_0x4819b3))['catch'](handleError(_0x61d6af,null));},exports[a51_0x51708d(0x10e)]=function(_0x3391ae,_0x138a03){const _0x2e12e5=a51_0x51708d;let _0x5a579d={'raw':!![],'where':{}};const _0x2015c4={},_0xc4199c={'count':0x0,'rows':[]};return db[_0x2e12e5(0xa9)][_0x2e12e5(0xda)]({'where':{'id':_0x3391ae[_0x2e12e5(0xcd)]['id']}})[_0x2e12e5(0x108)](handleEntityNotFound(_0x138a03,null))[_0x2e12e5(0x108)](function(_0x1ff1ad){const _0x806ad9=_0x2e12e5;if(_0x1ff1ad)return _0x2015c4[_0x806ad9(0xaa)]=_[_0x806ad9(0xd3)](db['CmHopperFinal']['rawAttributes']),_0x2015c4['query']=_[_0x806ad9(0xd3)](_0x3391ae[_0x806ad9(0xb8)]),_0x2015c4[_0x806ad9(0xba)]=_['intersection'](_0x2015c4[_0x806ad9(0xaa)],_0x2015c4['query']),_0x5a579d[_0x806ad9(0x112)]=_[_0x806ad9(0xf6)](_0x2015c4['model'],qs[_0x806ad9(0xdc)](_0x3391ae['query']['fields'])),_0x5a579d[_0x806ad9(0x112)]=_0x5a579d[_0x806ad9(0x112)][_0x806ad9(0xb2)]?_0x5a579d['attributes']:_0x2015c4[_0x806ad9(0xaa)],typeof _0x3391ae[_0x806ad9(0xb8)][_0x806ad9(0x10f)]===_0x806ad9(0xb4)&&(_0x5a579d[_0x806ad9(0xbe)]=qs[_0x806ad9(0xbe)](_0x3391ae[_0x806ad9(0xb8)][_0x806ad9(0xbe)]),_0x5a579d[_0x806ad9(0xae)]=qs[_0x806ad9(0xae)](_0x3391ae[_0x806ad9(0xb8)][_0x806ad9(0xae)])),_0x5a579d[_0x806ad9(0xc8)]=qs['sort'](_0x3391ae[_0x806ad9(0xb8)][_0x806ad9(0xdd)]),_0x5a579d[_0x806ad9(0xcc)]=qs['filters'](_[_0x806ad9(0xc1)](_0x3391ae[_0x806ad9(0xb8)],_0x2015c4['filters'])),_0x5a579d[_0x806ad9(0xcc)][_0x806ad9(0xff)]=_0x1ff1ad['id'],_0x3391ae['query'][_0x806ad9(0xaf)]&&(_0x5a579d[_0x806ad9(0xcc)]=_[_0x806ad9(0xe1)](_0x5a579d[_0x806ad9(0xcc)],{[Op['or']]:_['map'](_0x5a579d['attributes'],function(_0x15071c){const _0x2b9bde=_0x806ad9,_0x6aa99a={};return _0x6aa99a[_0x15071c]={[Op[_0x2b9bde(0x109)]]:'%'+_0x3391ae['query'][_0x2b9bde(0xaf)]+'%'},_0x6aa99a;})})),_0x5a579d=_['merge']({},_0x5a579d,_0x3391ae[_0x806ad9(0xd9)]),db[_0x806ad9(0xad)][_0x806ad9(0xc4)]({'where':_0x5a579d[_0x806ad9(0xcc)]})[_0x806ad9(0x108)](function(_0x32d8b4){const _0x2be5a7=_0x806ad9;return _0xc4199c[_0x2be5a7(0xc4)]=_0x32d8b4,_0x3391ae[_0x2be5a7(0xb8)][_0x2be5a7(0x106)]&&(_0x5a579d[_0x2be5a7(0xf5)]=[{'all':!![]}]),db[_0x2be5a7(0xad)][_0x2be5a7(0xea)](_0x5a579d);})[_0x806ad9(0x108)](function(_0x4a40cb){return _0xc4199c['rows']=_0x4a40cb,_0xc4199c;});})[_0x2e12e5(0x108)](respondWithFilteredResult(_0x138a03,_0x5a579d))['catch'](handleError(_0x138a03,null));},exports['getHopperBlacks']=function(_0x2a0830,_0x5ce814){const _0x37a50f=a51_0x51708d;let _0x2b1378={'raw':!![],'where':{}};const _0x3accef={},_0x24f814={'count':0x0,'rows':[]};return db['Campaign'][_0x37a50f(0xda)]({'where':{'id':_0x2a0830[_0x37a50f(0xcd)]['id']}})[_0x37a50f(0x108)](handleEntityNotFound(_0x5ce814,null))['then'](function(_0x59a275){const _0x4c53b7=_0x37a50f;if(_0x59a275)return _0x3accef[_0x4c53b7(0xaa)]=_[_0x4c53b7(0xd3)](db['CmHopperBlack'][_0x4c53b7(0xfb)]),_0x3accef[_0x4c53b7(0xb8)]=_[_0x4c53b7(0xd3)](_0x2a0830[_0x4c53b7(0xb8)]),_0x3accef[_0x4c53b7(0xba)]=_['intersection'](_0x3accef['model'],_0x3accef['query']),_0x2b1378[_0x4c53b7(0x112)]=_['intersection'](_0x3accef[_0x4c53b7(0xaa)],qs[_0x4c53b7(0xdc)](_0x2a0830['query'][_0x4c53b7(0xdc)])),_0x2b1378[_0x4c53b7(0x112)]=_0x2b1378[_0x4c53b7(0x112)][_0x4c53b7(0xb2)]?_0x2b1378[_0x4c53b7(0x112)]:_0x3accef[_0x4c53b7(0xaa)],typeof _0x2a0830[_0x4c53b7(0xb8)][_0x4c53b7(0x10f)]===_0x4c53b7(0xb4)&&(_0x2b1378[_0x4c53b7(0xbe)]=qs['limit'](_0x2a0830[_0x4c53b7(0xb8)][_0x4c53b7(0xbe)]),_0x2b1378[_0x4c53b7(0xae)]=qs['offset'](_0x2a0830[_0x4c53b7(0xb8)]['offset'])),_0x2b1378[_0x4c53b7(0xc8)]=qs[_0x4c53b7(0xdd)](_0x2a0830['query'][_0x4c53b7(0xdd)]),_0x2b1378[_0x4c53b7(0xcc)]=qs['filters'](_[_0x4c53b7(0xc1)](_0x2a0830[_0x4c53b7(0xb8)],_0x3accef[_0x4c53b7(0xba)])),_0x2b1378[_0x4c53b7(0xcc)]['CampaignId']=_0x59a275['id'],_0x2a0830[_0x4c53b7(0xb8)][_0x4c53b7(0xaf)]&&(_0x2b1378[_0x4c53b7(0xcc)]=_['merge'](_0x2b1378[_0x4c53b7(0xcc)],{[Op['or']]:_['map'](_0x2b1378['attributes'],function(_0x391e33){const _0x2a8a46=_0x4c53b7,_0x5d2a94={};return _0x5d2a94[_0x391e33]={[Op[_0x2a8a46(0x109)]]:'%'+_0x2a0830[_0x2a8a46(0xb8)][_0x2a8a46(0xaf)]+'%'},_0x5d2a94;})})),_0x2b1378=_[_0x4c53b7(0xe1)]({},_0x2b1378,_0x2a0830[_0x4c53b7(0xd9)]),db['CmHopperBlack'][_0x4c53b7(0xc4)]({'where':_0x2b1378[_0x4c53b7(0xcc)]})[_0x4c53b7(0x108)](function(_0x1d3764){const _0x2abd56=_0x4c53b7;return _0x24f814[_0x2abd56(0xc4)]=_0x1d3764,_0x2a0830[_0x2abd56(0xb8)][_0x2abd56(0x106)]&&(_0x2b1378[_0x2abd56(0xf5)]=[{'all':!![]}]),db['CmHopperBlack'][_0x2abd56(0xea)](_0x2b1378);})[_0x4c53b7(0x108)](function(_0x16910c){return _0x24f814['rows']=_0x16910c,_0x24f814;});})[_0x37a50f(0x108)](respondWithFilteredResult(_0x5ce814,_0x2b1378))['catch'](handleError(_0x5ce814,null));},exports[a51_0x51708d(0xe7)]=function(_0x18b01f,_0xb97ec){const _0x3b4fbf=a51_0x51708d;let _0x485351={};const _0x489889={};let _0x35dd7a,_0x2deea1;return db['Campaign'][_0x3b4fbf(0xda)]({'where':{'id':_0x18b01f[_0x3b4fbf(0xcd)]['id']}})[_0x3b4fbf(0x108)](handleEntityNotFound(_0xb97ec,null))[_0x3b4fbf(0x108)](function(_0x1f7745){const _0x128fc6=_0x3b4fbf;if(_0x1f7745)return _0x35dd7a=_0x1f7745,_0x489889[_0x128fc6(0xaa)]=_[_0x128fc6(0xd3)](db[_0x128fc6(0x10d)][_0x128fc6(0xfb)]),_0x489889[_0x128fc6(0xb8)]=_[_0x128fc6(0xd3)](_0x18b01f[_0x128fc6(0xb8)]),_0x489889[_0x128fc6(0xba)]=_[_0x128fc6(0xf6)](_0x489889['model'],_0x489889[_0x128fc6(0xb8)]),_0x485351[_0x128fc6(0x112)]=_[_0x128fc6(0xf6)](_0x489889[_0x128fc6(0xaa)],qs[_0x128fc6(0xdc)](_0x18b01f['query']['fields'])),_0x485351[_0x128fc6(0x112)]=_0x485351[_0x128fc6(0x112)][_0x128fc6(0xb2)]?_0x485351[_0x128fc6(0x112)]:_0x489889[_0x128fc6(0xaa)],_0x485351[_0x128fc6(0xc8)]=qs['sort'](_0x18b01f[_0x128fc6(0xb8)][_0x128fc6(0xdd)]),_0x485351[_0x128fc6(0xcc)]=qs['filters'](_[_0x128fc6(0xc1)](_0x18b01f[_0x128fc6(0xb8)],_0x489889[_0x128fc6(0xba)])),_0x18b01f[_0x128fc6(0xb8)][_0x128fc6(0xaf)]&&(_0x485351[_0x128fc6(0xcc)]=_[_0x128fc6(0xe1)](_0x485351[_0x128fc6(0xcc)],{[Op['or']]:_[_0x128fc6(0x105)](_0x485351[_0x128fc6(0x112)],function(_0x1cb231){const _0x4ac6ab=_0x128fc6,_0x5385d8={};return _0x5385d8[_0x1cb231]={[Op[_0x4ac6ab(0x109)]]:'%'+_0x18b01f[_0x4ac6ab(0xb8)]['filter']+'%'},_0x5385d8;})})),_0x485351=_[_0x128fc6(0xe1)]({},_0x485351,_0x18b01f[_0x128fc6(0xd9)]),_0x35dd7a['getLists'](_0x485351);})[_0x3b4fbf(0x108)](function(_0x4a3228){const _0x37be2c=_0x3b4fbf;if(_0x4a3228)return _0x2deea1=_0x4a3228['length'],typeof _0x18b01f[_0x37be2c(0xb8)][_0x37be2c(0x10f)]==='undefined'&&(_0x485351[_0x37be2c(0xbe)]=qs[_0x37be2c(0xbe)](_0x18b01f[_0x37be2c(0xb8)]['limit']),_0x485351[_0x37be2c(0xae)]=qs['offset'](_0x18b01f['query'][_0x37be2c(0xae)])),_0x35dd7a[_0x37be2c(0xe7)](_0x485351);})[_0x3b4fbf(0x108)](function(_0x18ee93){if(_0x18ee93)return _0x18ee93?{'count':_0x2deea1,'rows':_0x18ee93}:null;})[_0x3b4fbf(0x108)](respondWithResult(_0xb97ec,null))[_0x3b4fbf(0x10a)](handleError(_0xb97ec,null));},exports[a51_0x51708d(0xdf)]=function(_0x34964d,_0x6f9845){const _0x331521=a51_0x51708d;let _0xdaba31,_0x46404e;return db['Campaign'][_0x331521(0xda)]({'where':{'id':_0x34964d[_0x331521(0xcd)]['id']}})[_0x331521(0x108)](handleEntityNotFound(_0x6f9845,null))[_0x331521(0x108)](function(_0x4a8ec8){const _0x319855=_0x331521;if(_0x4a8ec8)return _0x46404e=_0x4a8ec8,_0x4a8ec8[_0x319855(0xdf)](_0x34964d['body'][_0x319855(0xdb)],{'through':_[_0x319855(0xe9)](_0x34964d[_0x319855(0xe4)],[_0x319855(0xdb),'id'])});return null;})['then'](function(_0x311870){const _0x586349=_0x331521;let _0xbfe04b;_0xdaba31=_0x311870||[];const _0x3be893=[];if(_0x311870){for(let _0x15cdc7=0x0;_0x15cdc7<_0x311870[_0x586349(0xb2)];_0x15cdc7+=0x1){const _0x1509c0=_0x311870[_0x15cdc7][_0x586349(0xed)]({'plain':!![]});_0x46404e[_0x586349(0xfd)]=_0x34964d['body'][_0x586349(0xfd)]?_0x34964d['body']['dialCheckDuplicateType']:_0x46404e['dialCheckDuplicateType'];switch(_0x46404e[_0x586349(0xfd)]){case _0x586349(0x113):_0xbfe04b=squel[_0x586349(0xbb)]()[_0x586349(0x103)]('cm_hopper')[_0x586349(0xab)]([_0x586349(0xe3),_0x586349(0xb5),_0x586349(0xb3),_0x586349(0xfa),_0x586349(0xff),_0x586349(0xfe),_0x586349(0xb9)],squel[_0x586349(0xf3)]()[_0x586349(0xd1)](_0x586349(0xe3),_0x586349(0xe3))[_0x586349(0xd1)]('NOW()','scheduledAt')[_0x586349(0xd1)]('id',_0x586349(0xb3))['field'](_0x1509c0['CmListId'][_0x586349(0x102)](),_0x586349(0xfa))[_0x586349(0xd1)](_0x34964d['params']['id'][_0x586349(0x102)](),'CampaignId')['field'](_0x586349(0x101),'createdAt')[_0x586349(0xd1)](_0x586349(0x101),_0x586349(0xb9))['from']('cm_contacts')[_0x586349(0xcc)](_0x586349(0xd4))[_0x586349(0xcc)](_0x586349(0xc5),_0x1509c0['CmListId'][_0x586349(0x102)]())[_0x586349(0xcc)](_0x586349(0xf4))[_0x586349(0xcc)](_0x586349(0x10b),squel[_0x586349(0xf3)]()[_0x586349(0xd1)](_0x586349(0xc6))[_0x586349(0xac)](_0x586349(0xeb))[_0x586349(0xcc)](_0x586349(0xce),_0x34964d[_0x586349(0xcd)]['id'][_0x586349(0x102)]()))[_0x586349(0xcc)](_0x586349(0x10b),squel[_0x586349(0xf3)]()[_0x586349(0xd1)](_0x586349(0xd8))[_0x586349(0xac)](_0x586349(0x110))[_0x586349(0xcc)](_0x586349(0xce),_0x34964d[_0x586349(0xcd)]['id'][_0x586349(0x102)]())))[_0x586349(0x102)]();break;case _0x586349(0x111):_0xbfe04b=squel[_0x586349(0xbb)]()[_0x586349(0x103)](_0x586349(0x110))[_0x586349(0xab)]([_0x586349(0xe3),_0x586349(0xb5),_0x586349(0xb3),'ListId',_0x586349(0xff),_0x586349(0xfe),_0x586349(0xb9)],squel[_0x586349(0xf3)]()[_0x586349(0xd1)](_0x586349(0xe3),_0x586349(0xe3))[_0x586349(0xd1)](_0x586349(0x101),_0x586349(0xb5))[_0x586349(0xd1)]('id','ContactId')[_0x586349(0xd1)](_0x1509c0[_0x586349(0xf9)][_0x586349(0x102)](),_0x586349(0xfa))['field'](_0x34964d['params']['id'][_0x586349(0x102)](),_0x586349(0xff))[_0x586349(0xd1)]('NOW()',_0x586349(0xfe))[_0x586349(0xd1)]('NOW()',_0x586349(0xb9))[_0x586349(0xac)](_0x586349(0xc0))[_0x586349(0xcc)](_0x586349(0xd4))[_0x586349(0xcc)]('ListId\x20=\x20?',_0x1509c0[_0x586349(0xf9)][_0x586349(0x102)]())['where']('phone\x20IS\x20NOT\x20NULL')[_0x586349(0xcc)](_0x586349(0x10b),squel[_0x586349(0xf3)]()[_0x586349(0xd1)]('COALESCE(phone,\x27\x27)')[_0x586349(0xac)](_0x586349(0x110))[_0x586349(0xcc)](_0x586349(0xce),_0x34964d[_0x586349(0xcd)]['id'][_0x586349(0x102)]())))[_0x586349(0x102)]();break;default:_0xbfe04b=squel[_0x586349(0xbb)]()[_0x586349(0x103)](_0x586349(0x110))[_0x586349(0xab)]([_0x586349(0xe3),_0x586349(0xb5),_0x586349(0xb3),'ListId',_0x586349(0xff),'createdAt',_0x586349(0xb9)],squel[_0x586349(0xf3)]()['field'](_0x586349(0xe3),_0x586349(0xe3))[_0x586349(0xd1)](_0x586349(0x101),_0x586349(0xb5))[_0x586349(0xd1)]('id',_0x586349(0xb3))[_0x586349(0xd1)](_0x1509c0[_0x586349(0xf9)][_0x586349(0x102)](),_0x586349(0xfa))['field'](_0x34964d[_0x586349(0xcd)]['id'][_0x586349(0x102)](),_0x586349(0xff))[_0x586349(0xd1)](_0x586349(0x101),_0x586349(0xfe))[_0x586349(0xd1)](_0x586349(0x101),_0x586349(0xb9))[_0x586349(0xac)]('cm_contacts')[_0x586349(0xcc)](_0x586349(0xd4))['where']('ListId\x20=\x20?',_0x1509c0[_0x586349(0xf9)][_0x586349(0x102)]())[_0x586349(0xcc)](_0x586349(0xf4)))[_0x586349(0x102)]();}_0x3be893[_0x586349(0xef)](db[_0x586349(0xc7)]['query'](_0xbfe04b));}return Promise[_0x586349(0xd6)](_0x3be893);}})['then'](function(){return _0xdaba31;})[_0x331521(0x108)](respondWithResult(_0x6f9845,null))['catch'](handleError(_0x6f9845,null));},exports['removeLists']=function(_0x2dca97,_0x136bf5){const _0x3dfc43=a51_0x51708d;return db[_0x3dfc43(0xa9)][_0x3dfc43(0xda)]({'where':{'id':_0x2dca97[_0x3dfc43(0xcd)]['id']}})[_0x3dfc43(0x108)](handleEntityNotFound(_0x136bf5,null))['then'](function(_0x5549c4){const _0x365952=_0x3dfc43;if(_0x5549c4)return _0x5549c4[_0x365952(0xbc)](_0x2dca97['query'][_0x365952(0xdb)]);})[_0x3dfc43(0x108)](function(_0x3ca732){const _0x5591ed=_0x3dfc43;if(_0x3ca732)return db['CmHopper'][_0x5591ed(0xf1)]({'where':{'ListId':_0x2dca97['query'][_0x5591ed(0xdb)],'CampaignId':_0x2dca97[_0x5591ed(0xcd)]['id']}})['then'](function(){return _0x3ca732;});})[_0x3dfc43(0x108)](respondWithStatusCode(_0x136bf5,null))['catch'](handleError(_0x136bf5,null));},exports[a51_0x51708d(0xf8)]=function(_0x5cc547,_0x50d915){const _0x2bf5f2=a51_0x51708d;let _0x2b03e3={'raw':!![],'where':{}};const _0x51bb71={},_0x351cb2={'count':0x0,'rows':[]};return db[_0x2bf5f2(0xa9)][_0x2bf5f2(0xda)]({'where':{'id':_0x5cc547[_0x2bf5f2(0xcd)]['id']}})[_0x2bf5f2(0x108)](handleEntityNotFound(_0x50d915,null))['then'](function(_0x483333){const _0x111bfa=_0x2bf5f2;if(_0x483333)return _0x51bb71['model']=_[_0x111bfa(0xd3)](db[_0x111bfa(0x10d)][_0x111bfa(0xfb)]),_0x51bb71[_0x111bfa(0xb8)]=_['keys'](_0x5cc547['query']),_0x51bb71[_0x111bfa(0xba)]=_[_0x111bfa(0xf6)](_0x51bb71['model'],_0x51bb71['query']),_0x2b03e3['attributes']=_[_0x111bfa(0xf6)](_0x51bb71[_0x111bfa(0xaa)],qs[_0x111bfa(0xdc)](_0x5cc547[_0x111bfa(0xb8)][_0x111bfa(0xdc)])),_0x2b03e3['attributes']=_0x2b03e3[_0x111bfa(0x112)]['length']?_0x2b03e3[_0x111bfa(0x112)]:_0x51bb71[_0x111bfa(0xaa)],typeof _0x5cc547['query'][_0x111bfa(0x10f)]==='undefined'&&(_0x2b03e3[_0x111bfa(0xbe)]=qs[_0x111bfa(0xbe)](_0x5cc547[_0x111bfa(0xb8)][_0x111bfa(0xbe)]),_0x2b03e3[_0x111bfa(0xae)]=qs['offset'](_0x5cc547[_0x111bfa(0xb8)][_0x111bfa(0xae)])),_0x2b03e3[_0x111bfa(0xc8)]=qs[_0x111bfa(0xdd)](_0x5cc547[_0x111bfa(0xb8)][_0x111bfa(0xdd)]),_0x2b03e3[_0x111bfa(0xcc)]=qs[_0x111bfa(0xba)](_[_0x111bfa(0xc1)](_0x5cc547['query'],_0x51bb71[_0x111bfa(0xba)])),_0x2b03e3[_0x111bfa(0xcc)]['CampaignId']=_0x483333['id'],_0x5cc547[_0x111bfa(0xb8)][_0x111bfa(0xaf)]&&(_0x2b03e3[_0x111bfa(0xcc)]=_['merge'](_0x2b03e3['where'],{[Op['or']]:_[_0x111bfa(0x105)](_0x2b03e3[_0x111bfa(0x112)],function(_0x4293d7){const _0x5cfd1a=_0x111bfa,_0x373281={};return _0x373281[_0x4293d7]={[Op['like']]:'%'+_0x5cc547[_0x5cfd1a(0xb8)][_0x5cfd1a(0xaf)]+'%'},_0x373281;})})),_0x2b03e3=_['merge']({},_0x2b03e3,_0x5cc547['options']),db['CmList'][_0x111bfa(0xc4)]({'where':_0x2b03e3['where']})[_0x111bfa(0x108)](function(_0x3fdcfa){const _0x4c400a=_0x111bfa;return _0x351cb2[_0x4c400a(0xc4)]=_0x3fdcfa,_0x5cc547[_0x4c400a(0xb8)]['includeAll']&&(_0x2b03e3[_0x4c400a(0xf5)]=[{'all':!![]}]),db[_0x4c400a(0x10d)][_0x4c400a(0xea)](_0x2b03e3);})[_0x111bfa(0x108)](function(_0x7349a2){const _0x246906=_0x111bfa;return _0x351cb2[_0x246906(0xde)]=_0x7349a2,_0x351cb2;});})[_0x2bf5f2(0x108)](respondWithFilteredResult(_0x50d915,_0x2b03e3))[_0x2bf5f2(0x10a)](handleError(_0x50d915,null));},exports[a51_0x51708d(0xc2)]=function(_0x10160d,_0x1949b9){const _0xc3a1ec=a51_0x51708d;let _0x5972c9;return db[_0xc3a1ec(0xa9)]['findOne']({'where':{'id':_0x10160d['params']['id']}})[_0xc3a1ec(0x108)](handleEntityNotFound(_0x1949b9,null))[_0xc3a1ec(0x108)](function(_0x5f1783){const _0x4152df=_0xc3a1ec;if(_0x5f1783)return _0x5f1783[_0x4152df(0xc2)](_0x10160d[_0x4152df(0xe4)]['ids'],{'through':_[_0x4152df(0xe9)](_0x10160d[_0x4152df(0xe4)],[_0x4152df(0xdb),'id'])});return null;})[_0xc3a1ec(0x108)](function(_0x223437){const _0x4492a8=_0xc3a1ec;let _0x455aed;_0x5972c9=_0x223437||[];const _0x2d5f29=[];if(_0x223437){for(let _0x1bd23f=0x0;_0x1bd23f<_0x223437['length'];_0x1bd23f+=0x1){const _0x3afd0c=_0x223437[_0x1bd23f][_0x4492a8(0xed)]({'plain':!![]});_0x455aed=squel[_0x4492a8(0xbb)]()[_0x4492a8(0x103)](_0x4492a8(0xca))[_0x4492a8(0xab)](['phone',_0x4492a8(0xb3),'ListId',_0x4492a8(0xff),_0x4492a8(0xfe),_0x4492a8(0xb9)],squel[_0x4492a8(0xf3)]()['field']('phone',_0x4492a8(0xe3))['field']('id',_0x4492a8(0xb3))[_0x4492a8(0xd1)](_0x3afd0c['CmListId'][_0x4492a8(0x102)](),_0x4492a8(0xfa))[_0x4492a8(0xd1)](_0x10160d[_0x4492a8(0xcd)]['id'][_0x4492a8(0x102)](),_0x4492a8(0xff))[_0x4492a8(0xd1)](_0x4492a8(0x101),_0x4492a8(0xfe))['field'](_0x4492a8(0x101),_0x4492a8(0xb9))[_0x4492a8(0xac)](_0x4492a8(0xc0))[_0x4492a8(0xcc)]('deletedAt\x20IS\x20NULL')['where'](_0x4492a8(0xc5),_0x3afd0c[_0x4492a8(0xf9)]['toString']())[_0x4492a8(0xcc)]('phone\x20IS\x20NOT\x20NULL'))['toString'](),_0x2d5f29[_0x4492a8(0xef)](db[_0x4492a8(0xc7)][_0x4492a8(0xb8)](_0x455aed));}return Promise[_0x4492a8(0xd6)](_0x2d5f29);}})[_0xc3a1ec(0x108)](function(){return _0x5972c9;})[_0xc3a1ec(0x108)](respondWithResult(_0x1949b9,null))[_0xc3a1ec(0x10a)](handleError(_0x1949b9,null));},exports['removeBlackLists']=function(_0x39e85e,_0x497eb4){const _0x4e7b7e=a51_0x51708d;return db[_0x4e7b7e(0xa9)]['findOne']({'where':{'id':_0x39e85e[_0x4e7b7e(0xcd)]['id']}})[_0x4e7b7e(0x108)](handleEntityNotFound(_0x497eb4,null))[_0x4e7b7e(0x108)](function(_0x2fc1d1){const _0x585412=_0x4e7b7e;if(_0x2fc1d1)return _0x2fc1d1[_0x585412(0xbf)](_0x39e85e['query'][_0x585412(0xdb)]);})[_0x4e7b7e(0x108)](function(_0x4e3985){const _0x46c88b=_0x4e7b7e;if(_0x4e3985)return db[_0x46c88b(0xf2)][_0x46c88b(0xf1)]({'where':{'ListId':_0x39e85e[_0x46c88b(0xb8)][_0x46c88b(0xdb)],'CampaignId':_0x39e85e[_0x46c88b(0xcd)]['id']}})[_0x46c88b(0x108)](function(){return _0x4e3985;});})[_0x4e7b7e(0x108)](respondWithStatusCode(_0x497eb4,null))[_0x4e7b7e(0x10a)](handleError(_0x497eb4,null));}; \ No newline at end of file diff --git a/server/api/campaign/campaign.model.js b/server/api/campaign/campaign.model.js index 3f97ef2..e0385d4 100644 --- a/server/api/campaign/campaign.model.js +++ b/server/api/campaign/campaign.model.js @@ -1 +1 @@ -const a43_0x1495=['define','campaigns','exports'];(function(_0xfe7ad2,_0x149551){const _0x4e68b3=function(_0x1c6096){while(--_0x1c6096){_0xfe7ad2['push'](_0xfe7ad2['shift']());}};_0x4e68b3(++_0x149551);}(a43_0x1495,0x9e));const a43_0x4e68=function(_0xfe7ad2,_0x149551){_0xfe7ad2=_0xfe7ad2-0x0;let _0x4e68b3=a43_0x1495[_0xfe7ad2];return _0x4e68b3;};const _0x3b65df=a43_0x4e68;'use strict';const attributes=require('./campaign.attributes');module[_0x3b65df('0x0')]=function(_0x1c6096){const _0x534ed8=_0x3b65df,_0x51dcec=_0x1c6096[_0x534ed8('0x1')]('Campaign',attributes,{'tableName':_0x534ed8('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x51dcec;}; \ No newline at end of file +const a52_0x574c=['./campaign.attributes','init','./campaign.options','exports','function','Campaign'];(function(_0x323994,_0x562859){const _0x574cf0=function(_0x5d0afd){while(--_0x5d0afd){_0x323994['push'](_0x323994['shift']());}};_0x574cf0(++_0x562859);}(a52_0x574c,0x1d7));const a52_0x5d0a=function(_0x323994,_0x562859){_0x323994=_0x323994-0xea;let _0x574cf0=a52_0x574c[_0x323994];return _0x574cf0;};const a52_0x38cc53=a52_0x5d0a;'use strict';const {Model}=require('sequelize'),{attributes}=require(a52_0x38cc53(0xed)),{options}=require(a52_0x38cc53(0xef));class Campaign extends Model{}function init(_0x2acc2a,_0x6c69c3){const _0x1ff730=a52_0x38cc53,_0xb3e041=options(_0x2acc2a),_0x321b46=typeof _0x6c69c3===_0x1ff730(0xeb)?_0x6c69c3(_0xb3e041):_0xb3e041;return Campaign[_0x1ff730(0xee)](attributes,_0x321b46),Campaign;}module[a52_0x38cc53(0xea)][a52_0x38cc53(0xec)]=Campaign,module['exports'][a52_0x38cc53(0xee)]=init; \ No newline at end of file diff --git a/server/api/campaign/campaign.options.js b/server/api/campaign/campaign.options.js new file mode 100644 index 0000000..50d0917 --- /dev/null +++ b/server/api/campaign/campaign.options.js @@ -0,0 +1 @@ +var a53_0x4178=['campaigns','exports'];(function(_0x55e627,_0x41fcb5){var _0x4178c0=function(_0x562a81){while(--_0x562a81){_0x55e627['push'](_0x55e627['shift']());}};_0x4178c0(++_0x41fcb5);}(a53_0x4178,0x19d));var a53_0x562a=function(_0x55e627,_0x41fcb5){_0x55e627=_0x55e627-0x11a;var _0x4178c0=a53_0x4178[_0x55e627];return _0x4178c0;};var a53_0x53b096=a53_0x562a;function options(_0x32189d){var _0x7fbffc=a53_0x562a;return{'sequelize':_0x32189d,'tableName':_0x7fbffc(0x11b),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a53_0x53b096(0x11a)]['options']=options; \ No newline at end of file diff --git a/server/api/campaign/campaign.rpc.js b/server/api/campaign/campaign.rpc.js index d621639..0ffb8b1 100644 --- a/server/api/campaign/campaign.rpc.js +++ b/server/api/campaign/campaign.rpc.js @@ -1 +1 @@ -const a44_0x2452=['then','error','catch','model','GetCampaign','options','raw','include','lodash','limit','debug','attributes','where','map','message','info','../../config/logger','rpc','findAll'];(function(_0x54f60c,_0x24522b){const _0x54e463=function(_0x4c51d9){while(--_0x4c51d9){_0x54f60c['push'](_0x54f60c['shift']());}};_0x54e463(++_0x24522b);}(a44_0x2452,0x125));const a44_0x54e4=function(_0x54f60c,_0x24522b){_0x54f60c=_0x54f60c-0x0;let _0x54e463=a44_0x2452[_0x54f60c];return _0x54e463;};const _0x42a781=a44_0x54e4;'use strict';const _=require(_0x42a781('0x0')),db=require('../../mysqldb')['db'],logger=require(_0x42a781('0x8'))(_0x42a781('0x9'));exports['GetCampaign']=function(_0x4c51d9){const _0x25a199=this;return new Promise(function(_0x150c07,_0x273e3d){const _0x45cfc8=a44_0x54e4;return db['Campaign'][_0x45cfc8('0xa')]({'raw':_0x4c51d9[_0x45cfc8('0x10')]?_0x4c51d9[_0x45cfc8('0x10')][_0x45cfc8('0x11')]===undefined?!![]:![]:!![],'where':_0x4c51d9[_0x45cfc8('0x10')]?_0x4c51d9['options'][_0x45cfc8('0x4')]||null:null,'attributes':_0x4c51d9['options']?_0x4c51d9[_0x45cfc8('0x10')][_0x45cfc8('0x3')]||null:null,'limit':_0x4c51d9[_0x45cfc8('0x10')]?_0x4c51d9[_0x45cfc8('0x10')][_0x45cfc8('0x1')]||null:null,'include':_0x4c51d9['options']?_0x4c51d9[_0x45cfc8('0x10')][_0x45cfc8('0x12')]?_['map'](_0x4c51d9['options']['include'],function(_0x121347){const _0x2f9452=_0x45cfc8;return{'model':db[_0x121347['model']],'as':_0x121347['as'],'attributes':_0x121347[_0x2f9452('0x3')],'include':_0x121347[_0x2f9452('0x12')]?_[_0x2f9452('0x5')](_0x121347[_0x2f9452('0x12')],function(_0x332796){const _0x3f9aae=_0x2f9452;return{'model':db[_0x332796['model']],'as':_0x332796['as'],'attributes':_0x332796[_0x3f9aae('0x3')],'include':_0x332796['include']?_['map'](_0x332796[_0x3f9aae('0x12')],function(_0xee32ab){const _0x2a83ec=_0x3f9aae;return{'model':db[_0xee32ab[_0x2a83ec('0xe')]],'as':_0xee32ab['as'],'attributes':_0xee32ab[_0x2a83ec('0x3')]};}):[]};}):[]};}):[]:[]})[_0x45cfc8('0xb')](function(_0x19bfac){const _0x2ccd64=_0x45cfc8;logger[_0x2ccd64('0x7')](_0x2ccd64('0xf'),_0x4c51d9),logger[_0x2ccd64('0x2')](_0x2ccd64('0xf'),_0x4c51d9,JSON['stringify'](_0x19bfac)),_0x150c07(_0x19bfac);})[_0x45cfc8('0xd')](function(_0x14223c){const _0x129ed4=_0x45cfc8;logger[_0x129ed4('0xc')](_0x129ed4('0xf'),_0x14223c[_0x129ed4('0x6')],_0x4c51d9),_0x273e3d(_0x25a199[_0x129ed4('0xc')](0x1f4,_0x14223c[_0x129ed4('0x6')]));});});}; \ No newline at end of file +const a54_0x4708=['catch','then','debug','map','GetCampaign','error','findAll','../../config/logger','rpc','model','include','raw','lodash','where','info','options','stringify','message','../../mysqldb','attributes'];(function(_0x700b39,_0x491f74){const _0x470840=function(_0x35278b){while(--_0x35278b){_0x700b39['push'](_0x700b39['shift']());}};_0x470840(++_0x491f74);}(a54_0x4708,0x1da));const a54_0x3527=function(_0x700b39,_0x491f74){_0x700b39=_0x700b39-0x1cf;let _0x470840=a54_0x4708[_0x700b39];return _0x470840;};const a54_0x396098=a54_0x3527;'use strict';const _=require(a54_0x396098(0x1e1)),db=require(a54_0x396098(0x1d3))['db'],logger=require(a54_0x396098(0x1dc))(a54_0x396098(0x1dd));exports[a54_0x396098(0x1d9)]=function(_0x4642df){const _0x1da443=this;return new Promise(function(_0x5d21d2,_0x1e644a){const _0xce0d91=a54_0x3527;return db['Campaign'][_0xce0d91(0x1db)]({'raw':_0x4642df[_0xce0d91(0x1d0)]?_0x4642df[_0xce0d91(0x1d0)][_0xce0d91(0x1e0)]===undefined?!![]:![]:!![],'where':_0x4642df[_0xce0d91(0x1d0)]?_0x4642df['options'][_0xce0d91(0x1e2)]||null:null,'attributes':_0x4642df[_0xce0d91(0x1d0)]?_0x4642df[_0xce0d91(0x1d0)][_0xce0d91(0x1d4)]||null:null,'limit':_0x4642df['options']?_0x4642df[_0xce0d91(0x1d0)]['limit']||null:null,'include':_0x4642df[_0xce0d91(0x1d0)]?_0x4642df[_0xce0d91(0x1d0)][_0xce0d91(0x1df)]?_[_0xce0d91(0x1d8)](_0x4642df[_0xce0d91(0x1d0)][_0xce0d91(0x1df)],function(_0xe01378){const _0x86f478=_0xce0d91;return{'model':db[_0xe01378[_0x86f478(0x1de)]],'as':_0xe01378['as'],'attributes':_0xe01378['attributes'],'include':_0xe01378['include']?_[_0x86f478(0x1d8)](_0xe01378[_0x86f478(0x1df)],function(_0x2fb3ee){const _0x37cb20=_0x86f478;return{'model':db[_0x2fb3ee[_0x37cb20(0x1de)]],'as':_0x2fb3ee['as'],'attributes':_0x2fb3ee[_0x37cb20(0x1d4)],'include':_0x2fb3ee[_0x37cb20(0x1df)]?_['map'](_0x2fb3ee[_0x37cb20(0x1df)],function(_0x4e8049){const _0x126776=_0x37cb20;return{'model':db[_0x4e8049['model']],'as':_0x4e8049['as'],'attributes':_0x4e8049[_0x126776(0x1d4)]};}):[]};}):[]};}):[]:[]})[_0xce0d91(0x1d6)](function(_0x4e6336){const _0x4e1cae=_0xce0d91;logger[_0x4e1cae(0x1cf)](_0x4e1cae(0x1d9),_0x4642df),logger[_0x4e1cae(0x1d7)](_0x4e1cae(0x1d9),_0x4642df,JSON[_0x4e1cae(0x1d1)](_0x4e6336)),_0x5d21d2(_0x4e6336);})[_0xce0d91(0x1d5)](function(_0x567051){const _0x18aa43=_0xce0d91;logger[_0x18aa43(0x1da)]('GetCampaign',_0x567051['message'],_0x4642df),_0x1e644a(_0x1da443['error'](0x1f4,_0x567051[_0x18aa43(0x1d2)]));});});}; \ No newline at end of file diff --git a/server/api/campaign/index.js b/server/api/campaign/index.js index 7e62a65..b317949 100644 --- a/server/api/campaign/index.js +++ b/server/api/campaign/index.js @@ -1 +1 @@ -const a45_0x2c67=['getHopperHistories','/:id/blacklists','./campaign.controller','getHopperBlacks','put','index','destroy','removeLists','/:id/hopper_finals','/:id/lists','getHoppers','removeBlackLists','/:id/clone','/:id','getHopperFinals','getBlackLists','addLists','delete','Router','post','update','get','isAuthenticated','../../components/auth/service','express','getLists'];(function(_0x1ee5e6,_0x2c67fb){const _0x5ec230=function(_0x4bab4d){while(--_0x4bab4d){_0x1ee5e6['push'](_0x1ee5e6['shift']());}};_0x5ec230(++_0x2c67fb);}(a45_0x2c67,0x7b));const a45_0x5ec2=function(_0x1ee5e6,_0x2c67fb){_0x1ee5e6=_0x1ee5e6-0x0;let _0x5ec230=a45_0x2c67[_0x1ee5e6];return _0x5ec230;};const _0x2389e6=a45_0x5ec2;'use strict';const express=require(_0x2389e6('0x5')),router=express[_0x2389e6('0x19')](),auth=require(_0x2389e6('0x4')),controller=require(_0x2389e6('0x9'));router[_0x2389e6('0x2')]('/',auth['isAuthenticated'](),controller[_0x2389e6('0xc')]),router['get']('/:id',auth[_0x2389e6('0x3')](),controller['show']),router[_0x2389e6('0x2')]('/:id/hoppers',auth[_0x2389e6('0x3')](),controller[_0x2389e6('0x11')]),router[_0x2389e6('0x2')]('/:id/hopper_histories',auth[_0x2389e6('0x3')](),controller[_0x2389e6('0x7')]),router[_0x2389e6('0x2')](_0x2389e6('0xf'),auth[_0x2389e6('0x3')](),controller[_0x2389e6('0x15')]),router[_0x2389e6('0x2')]('/:id/hopper_black',auth['isAuthenticated'](),controller[_0x2389e6('0xa')]),router[_0x2389e6('0x2')](_0x2389e6('0x10'),auth[_0x2389e6('0x3')](),controller[_0x2389e6('0x6')]),router[_0x2389e6('0x2')](_0x2389e6('0x8'),auth['isAuthenticated'](),controller[_0x2389e6('0x16')]),router[_0x2389e6('0x0')]('/',auth[_0x2389e6('0x3')](),controller['create']),router[_0x2389e6('0x0')](_0x2389e6('0x13'),auth[_0x2389e6('0x3')](),controller['clone']),router['post'](_0x2389e6('0x10'),auth[_0x2389e6('0x3')](),controller[_0x2389e6('0x17')]),router['post'](_0x2389e6('0x8'),auth[_0x2389e6('0x3')](),controller['addBlackLists']),router[_0x2389e6('0xb')](_0x2389e6('0x14'),auth[_0x2389e6('0x3')](),controller[_0x2389e6('0x1')]),router[_0x2389e6('0x18')](_0x2389e6('0x14'),auth[_0x2389e6('0x3')](),controller[_0x2389e6('0xd')]),router['delete']('/:id/lists',auth[_0x2389e6('0x3')](),controller[_0x2389e6('0xe')]),router[_0x2389e6('0x18')](_0x2389e6('0x8'),auth['isAuthenticated'](),controller[_0x2389e6('0x12')]),module['exports']=router; \ No newline at end of file +const a55_0x4a3a=['/:id/hopper_histories','Router','delete','getHopperFinals','get','put','index','getHopperBlacks','/:id/hopper_black','addBlackLists','/:id/hoppers','/:id/blacklists','/:id/lists','update','getHoppers','express','getLists','isAuthenticated','exports','show','/:id/hopper_finals','clone','post','getHopperHistories','./campaign.controller','create','destroy','../../components/auth/service','/:id'];(function(_0x3e8369,_0x5d491f){const _0x4a3a3e=function(_0x442ef2){while(--_0x442ef2){_0x3e8369['push'](_0x3e8369['shift']());}};_0x4a3a3e(++_0x5d491f);}(a55_0x4a3a,0x1d3));const a55_0x442e=function(_0x3e8369,_0x5d491f){_0x3e8369=_0x3e8369-0x1a0;let _0x4a3a3e=a55_0x4a3a[_0x3e8369];return _0x4a3a3e;};const a55_0x26bd32=a55_0x442e;'use strict';const express=require(a55_0x26bd32(0x1ac)),router=express[a55_0x26bd32(0x1bb)](),auth=require(a55_0x26bd32(0x1b8)),controller=require(a55_0x26bd32(0x1b5));router[a55_0x26bd32(0x1a1)]('/',auth[a55_0x26bd32(0x1ae)](),controller[a55_0x26bd32(0x1a3)]),router['get'](a55_0x26bd32(0x1b9),auth[a55_0x26bd32(0x1ae)](),controller[a55_0x26bd32(0x1b0)]),router[a55_0x26bd32(0x1a1)](a55_0x26bd32(0x1a7),auth[a55_0x26bd32(0x1ae)](),controller[a55_0x26bd32(0x1ab)]),router['get'](a55_0x26bd32(0x1ba),auth[a55_0x26bd32(0x1ae)](),controller[a55_0x26bd32(0x1b4)]),router[a55_0x26bd32(0x1a1)](a55_0x26bd32(0x1b1),auth[a55_0x26bd32(0x1ae)](),controller[a55_0x26bd32(0x1a0)]),router[a55_0x26bd32(0x1a1)](a55_0x26bd32(0x1a5),auth['isAuthenticated'](),controller[a55_0x26bd32(0x1a4)]),router['get'](a55_0x26bd32(0x1a9),auth[a55_0x26bd32(0x1ae)](),controller[a55_0x26bd32(0x1ad)]),router[a55_0x26bd32(0x1a1)](a55_0x26bd32(0x1a8),auth['isAuthenticated'](),controller['getBlackLists']),router[a55_0x26bd32(0x1b3)]('/',auth['isAuthenticated'](),controller[a55_0x26bd32(0x1b6)]),router['post']('/:id/clone',auth['isAuthenticated'](),controller[a55_0x26bd32(0x1b2)]),router[a55_0x26bd32(0x1b3)](a55_0x26bd32(0x1a9),auth[a55_0x26bd32(0x1ae)](),controller['addLists']),router[a55_0x26bd32(0x1b3)](a55_0x26bd32(0x1a8),auth[a55_0x26bd32(0x1ae)](),controller[a55_0x26bd32(0x1a6)]),router[a55_0x26bd32(0x1a2)](a55_0x26bd32(0x1b9),auth[a55_0x26bd32(0x1ae)](),controller[a55_0x26bd32(0x1aa)]),router[a55_0x26bd32(0x1bc)](a55_0x26bd32(0x1b9),auth[a55_0x26bd32(0x1ae)](),controller[a55_0x26bd32(0x1b7)]),router['delete'](a55_0x26bd32(0x1a9),auth[a55_0x26bd32(0x1ae)](),controller['removeLists']),router[a55_0x26bd32(0x1bc)](a55_0x26bd32(0x1a8),auth[a55_0x26bd32(0x1ae)](),controller['removeBlackLists']),module[a55_0x26bd32(0x1af)]=router; \ No newline at end of file diff --git a/server/api/cannedAnswer/cannedAnswer.attributes.js b/server/api/cannedAnswer/cannedAnswer.attributes.js index 4f88c9e..72dbacb 100644 --- a/server/api/cannedAnswer/cannedAnswer.attributes.js +++ b/server/api/cannedAnswer/cannedAnswer.attributes.js @@ -1 +1 @@ -const a46_0x385d=['exports','VIRTUAL','sequelize','TEXT','getDataValue','STRING','key'];(function(_0x1b3cba,_0x385ddd){const _0x2b7941=function(_0x3da920){while(--_0x3da920){_0x1b3cba['push'](_0x1b3cba['shift']());}};_0x2b7941(++_0x385ddd);}(a46_0x385d,0x113));const a46_0x2b79=function(_0x1b3cba,_0x385ddd){_0x1b3cba=_0x1b3cba-0x0;let _0x2b7941=a46_0x385d[_0x1b3cba];return _0x2b7941;};const _0x16f1ef=a46_0x2b79;'use strict';const Sequelize=require(_0x16f1ef('0x0'));module[_0x16f1ef('0x5')]={'key':{'type':Sequelize[_0x16f1ef('0x3')],'allowNull':![]},'value':{'type':Sequelize[_0x16f1ef('0x1')],'allowNull':![]},'description':{'type':Sequelize[_0x16f1ef('0x3')]},'name':{'type':Sequelize[_0x16f1ef('0x6')],'get':function(){const _0x39c694=_0x16f1ef;return this[_0x39c694('0x2')](_0x39c694('0x4'));}}}; \ No newline at end of file +const a56_0x2e34=['getDataValue','VIRTUAL','sequelize','attributes','TEXT','exports','STRING'];(function(_0x15a253,_0x35fab9){const _0x2e34c6=function(_0x40b86e){while(--_0x40b86e){_0x15a253['push'](_0x15a253['shift']());}};_0x2e34c6(++_0x35fab9);}(a56_0x2e34,0x141));const a56_0x40b8=function(_0x15a253,_0x35fab9){_0x15a253=_0x15a253-0x107;let _0x2e34c6=a56_0x2e34[_0x15a253];return _0x2e34c6;};const a56_0x510720=a56_0x40b8;'use strict';const {DataTypes}=require(a56_0x510720(0x10a)),attributes={'key':{'type':DataTypes[a56_0x510720(0x107)],'allowNull':![]},'value':{'type':DataTypes[a56_0x510720(0x10c)],'allowNull':![]},'description':{'type':DataTypes[a56_0x510720(0x107)]},'name':{'type':DataTypes[a56_0x510720(0x109)],'get':function(){const _0xdf8101=a56_0x510720;return this[_0xdf8101(0x108)]('key');}}};module[a56_0x510720(0x10d)][a56_0x510720(0x10b)]=attributes; \ No newline at end of file diff --git a/server/api/cannedAnswer/cannedAnswer.controller.js b/server/api/cannedAnswer/cannedAnswer.controller.js index 650aefb..164a8d1 100644 --- a/server/api/cannedAnswer/cannedAnswer.controller.js +++ b/server/api/cannedAnswer/cannedAnswer.controller.js @@ -1 +1 @@ -const a47_0x9a94=['count','destroy','../../components/parsers/qs','filter','ChatWebsiteId','UserProfileResource','Unable\x20to\x20retrieve\x20the\x20current\x20user','merge','error','end','nolimit','undefined','../../config/logger','show','attributes','name','create','Content-Range','rows','fieldName','findAll','model','includeAll','role','../../mysqldb','SmsAccountId','get','query','send','length','catch','MailAccountId','body','filters','key','like','findOne','stack','fields','rawAttributes','lodash','offset','status','include','CannedAnswer','type','intersection','map','The\x20inserted\x20key\x20already\x20exists.','where','UserProfileSection','limit','json','keys','params','then','options','CannedAnswers','sequelize','user','update','OpenchannelAccountId','pick','index'];(function(_0x4b39a3,_0x9a9405){const _0x37f651=function(_0x505657){while(--_0x505657){_0x4b39a3['push'](_0x4b39a3['shift']());}};_0x37f651(++_0x9a9405);}(a47_0x9a94,0x7e));const a47_0x37f6=function(_0x4b39a3,_0x9a9405){_0x4b39a3=_0x4b39a3-0x0;let _0x37f651=a47_0x9a94[_0x4b39a3];return _0x37f651;};const _0x27df9e=a47_0x37f6;'use strict';const _=require(_0x27df9e('0x2a')),qs=require(_0x27df9e('0x4')),logger=require(_0x27df9e('0xe'))('api'),db=require(_0x27df9e('0x1a'))['db'],{Op,ValidationError}=require(_0x27df9e('0x3c'));function respondWithResult(_0x505657,_0x18be61){return _0x18be61=_0x18be61||0xc8,function(_0x558c6b){const _0x4723a9=a47_0x37f6;if(_0x558c6b)return _0x505657[_0x4723a9('0x2c')](_0x18be61)[_0x4723a9('0x36')](_0x558c6b);};}function respondWithFilteredResult(_0x36a099,_0x1d3573){return function(_0x33f217){const _0xe96ea1=a47_0x37f6;if(_0x33f217){const _0x3545c1=_0x33f217[_0xe96ea1('0x2')],_0x8245f5=_0x1d3573[_0xe96ea1('0x2b')];let _0x46cd7e=_0x1d3573[_0xe96ea1('0x2b')]+_0x1d3573['limit'],_0x41ea02;return _0x46cd7e>=_0x3545c1?(_0x46cd7e=_0x3545c1,_0x41ea02=0xc8):_0x41ea02=0xce,_0x36a099[_0xe96ea1('0x2c')](_0x41ea02),_0x36a099['set'](_0xe96ea1('0x13'),_0x8245f5+'-'+_0x46cd7e+'/'+_0x3545c1)[_0xe96ea1('0x36')](_0x33f217);}return null;};}function saveUpdates(_0x519e67){return function(_0x493693){const _0x2217d9=a47_0x37f6;if(_0x493693)return _0x493693[_0x2217d9('0x3e')](_0x519e67)[_0x2217d9('0x39')](function(_0x582384){return _0x582384;});return null;};}function removeEntity(_0x55adbe){return function(_0xcf99a6){const _0x5a75cc=a47_0x37f6;if(_0xcf99a6)return _0xcf99a6[_0x5a75cc('0x3')]()['then'](function(){const _0x1c0557=_0x5a75cc,_0x33361b=_0xcf99a6[_0x1c0557('0x1c')]({'plain':!![]}),_0x198347=_0x1c0557('0x3b');return db[_0x1c0557('0x7')]['destroy']({'where':{'type':_0x198347,'resourceId':_0x33361b['id']}})[_0x1c0557('0x39')](function(){return _0xcf99a6;});})[_0x5a75cc('0x39')](function(){const _0x1676a7=_0x5a75cc;_0x55adbe[_0x1676a7('0x2c')](0xcc)[_0x1676a7('0xb')]();});};}function handleEntityNotFound(_0x228123){return function(_0x47fe31){return!_0x47fe31&&_0x228123['sendStatus'](0x194),_0x47fe31;};}function handleError(_0x264891,_0x191d9b){return _0x191d9b=_0x191d9b||0x1f4,function(_0x442c03){const _0x1c1c7e=a47_0x37f6;logger[_0x1c1c7e('0xa')](_0x442c03[_0x1c1c7e('0x27')]),_0x442c03[_0x1c1c7e('0x11')]&&delete _0x442c03[_0x1c1c7e('0x11')],_0x264891[_0x1c1c7e('0x2c')](_0x191d9b)[_0x1c1c7e('0x1e')](_0x442c03);};}exports[_0x27df9e('0x1')]=function(_0x3993f5,_0x2437a7){const _0x5043e5=_0x27df9e;let _0x2edd66={};const _0x436097={},_0x322065={'count':0x0,'rows':[]},_0x200cfa=_[_0x5043e5('0x31')](db[_0x5043e5('0x2e')][_0x5043e5('0x29')],function(_0x5381cd){const _0x1da32c=_0x5043e5;return{'name':_0x5381cd[_0x1da32c('0x15')],'type':_0x5381cd[_0x1da32c('0x2f')][_0x1da32c('0x24')]};});_0x436097['model']=_[_0x5043e5('0x31')](_0x200cfa,_0x5043e5('0x11')),_0x436097['query']=_['keys'](_0x3993f5[_0x5043e5('0x1d')]),_0x436097[_0x5043e5('0x23')]=_[_0x5043e5('0x30')](_0x436097[_0x5043e5('0x17')],_0x436097[_0x5043e5('0x1d')]),_0x2edd66[_0x5043e5('0x10')]=_['intersection'](_0x436097[_0x5043e5('0x17')],qs[_0x5043e5('0x28')](_0x3993f5[_0x5043e5('0x1d')]['fields'])),_0x2edd66['attributes']=_0x2edd66[_0x5043e5('0x10')][_0x5043e5('0x1f')]?_0x2edd66[_0x5043e5('0x10')]:_0x436097[_0x5043e5('0x17')];typeof _0x3993f5['query'][_0x5043e5('0xc')]===_0x5043e5('0xd')&&(_0x2edd66[_0x5043e5('0x35')]=qs[_0x5043e5('0x35')](_0x3993f5['query']['limit']),_0x2edd66[_0x5043e5('0x2b')]=qs[_0x5043e5('0x2b')](_0x3993f5[_0x5043e5('0x1d')][_0x5043e5('0x2b')]));_0x2edd66['order']=qs['sort'](_0x3993f5[_0x5043e5('0x1d')]['sort']),_0x2edd66['where']=qs[_0x5043e5('0x23')](_[_0x5043e5('0x0')](_0x3993f5['query'],_0x436097[_0x5043e5('0x23')]),_0x200cfa);_0x3993f5['query']['filter']&&(_0x2edd66[_0x5043e5('0x33')]=_[_0x5043e5('0x9')](_0x2edd66[_0x5043e5('0x33')],{[Op['or']]:_[_0x5043e5('0x31')](_0x200cfa,function(_0xe97a03){const _0x2ac8e8=_0x5043e5;if(_0xe97a03['type']!=='VIRTUAL'){const _0x1fe20d={};return _0x1fe20d[_0xe97a03[_0x2ac8e8('0x11')]]={[Op[_0x2ac8e8('0x25')]]:'%'+_0x3993f5['query'][_0x2ac8e8('0x5')]+'%'},_0x1fe20d;}})}));_0x2edd66=_[_0x5043e5('0x9')]({},_0x2edd66,_0x3993f5[_0x5043e5('0x3a')]);const _0x21e6eb={'where':_0x2edd66[_0x5043e5('0x33')]};return db[_0x5043e5('0x2e')][_0x5043e5('0x2')](_0x21e6eb)['then'](function(_0x1e282b){const _0x4a3c8c=_0x5043e5;return _0x322065[_0x4a3c8c('0x2')]=_0x1e282b,_0x3993f5[_0x4a3c8c('0x1d')][_0x4a3c8c('0x18')]&&(_0x2edd66[_0x4a3c8c('0x2d')]=[{'all':!![]}]),db[_0x4a3c8c('0x2e')][_0x4a3c8c('0x16')](_0x2edd66);})[_0x5043e5('0x39')](function(_0xc0e643){const _0x242ea9=_0x5043e5;return _0x322065[_0x242ea9('0x14')]=_0xc0e643,_0x322065;})[_0x5043e5('0x39')](respondWithFilteredResult(_0x2437a7,_0x2edd66))[_0x5043e5('0x20')](handleError(_0x2437a7,null));},exports[_0x27df9e('0xf')]=function(_0x122f38,_0x2d755e){const _0x4a1214=_0x27df9e;let _0x45c30f={'raw':!![],'where':{'id':_0x122f38[_0x4a1214('0x38')]['id']}};const _0x3c6166={};return _0x3c6166[_0x4a1214('0x17')]=_[_0x4a1214('0x37')](db[_0x4a1214('0x2e')][_0x4a1214('0x29')]),_0x3c6166['query']=_[_0x4a1214('0x37')](_0x122f38[_0x4a1214('0x1d')]),_0x3c6166[_0x4a1214('0x23')]=_[_0x4a1214('0x30')](_0x3c6166[_0x4a1214('0x17')],_0x3c6166[_0x4a1214('0x1d')]),_0x45c30f['attributes']=_['intersection'](_0x3c6166[_0x4a1214('0x17')],qs[_0x4a1214('0x28')](_0x122f38[_0x4a1214('0x1d')][_0x4a1214('0x28')])),_0x45c30f[_0x4a1214('0x10')]=_0x45c30f[_0x4a1214('0x10')][_0x4a1214('0x1f')]?_0x45c30f[_0x4a1214('0x10')]:_0x3c6166['model'],_0x122f38[_0x4a1214('0x1d')][_0x4a1214('0x18')]&&(_0x45c30f[_0x4a1214('0x2d')]=[{'all':!![]}]),_0x45c30f=_[_0x4a1214('0x9')]({},_0x45c30f,_0x122f38[_0x4a1214('0x3a')]),db[_0x4a1214('0x2e')][_0x4a1214('0x26')](_0x45c30f)[_0x4a1214('0x39')](handleEntityNotFound(_0x2d755e,null))[_0x4a1214('0x39')](respondWithResult(_0x2d755e,null))['catch'](handleError(_0x2d755e,null));},exports[_0x27df9e('0x3e')]=function(_0x3fdb3f,_0x3c6ff2){const _0x190782=_0x27df9e;return _0x3fdb3f[_0x190782('0x22')]['id']&&delete _0x3fdb3f[_0x190782('0x22')]['id'],db[_0x190782('0x2e')][_0x190782('0x26')]({'where':{'id':_0x3fdb3f[_0x190782('0x38')]['id']}})[_0x190782('0x39')](handleEntityNotFound(_0x3c6ff2,null))[_0x190782('0x39')](saveUpdates(_0x3fdb3f[_0x190782('0x22')],null))[_0x190782('0x39')](respondWithResult(_0x3c6ff2,null))[_0x190782('0x20')](handleError(_0x3c6ff2,null));},exports[_0x27df9e('0x3')]=function(_0x52db5c,_0x4d2548){const _0x34da0c=_0x27df9e;return db[_0x34da0c('0x2e')][_0x34da0c('0x26')]({'where':{'id':_0x52db5c[_0x34da0c('0x38')]['id']}})[_0x34da0c('0x39')](handleEntityNotFound(_0x4d2548,null))[_0x34da0c('0x39')](removeEntity(_0x4d2548,null))['catch'](handleError(_0x4d2548,null));},exports[_0x27df9e('0x12')]=function(_0x4fc7ef,_0x90db6){const _0x1d6bc1=_0x27df9e,_0x4f7392={'key':_0x4fc7ef[_0x1d6bc1('0x22')][_0x1d6bc1('0x24')]};if(_0x4fc7ef[_0x1d6bc1('0x22')]['MailAccountId'])_0x4f7392['MailAccountId']=_0x4fc7ef['body'][_0x1d6bc1('0x21')];else{if(_0x4fc7ef[_0x1d6bc1('0x22')][_0x1d6bc1('0x1b')])_0x4f7392['SmsAccountId']=_0x4fc7ef[_0x1d6bc1('0x22')][_0x1d6bc1('0x1b')];else{if(_0x4fc7ef[_0x1d6bc1('0x22')][_0x1d6bc1('0x3f')])_0x4f7392[_0x1d6bc1('0x3f')]=_0x4fc7ef['body'][_0x1d6bc1('0x3f')];else _0x4fc7ef['body'][_0x1d6bc1('0x6')]&&(_0x4f7392[_0x1d6bc1('0x6')]=_0x4fc7ef[_0x1d6bc1('0x22')][_0x1d6bc1('0x6')]);}}return db[_0x1d6bc1('0x2e')][_0x1d6bc1('0x26')]({'where':_0x4f7392})[_0x1d6bc1('0x39')](function(_0x1f7112){const _0x25983c=_0x1d6bc1;if(_0x1f7112)throw new ValidationError(_0x25983c('0x32'));return db[_0x25983c('0x2e')][_0x25983c('0x12')](_0x4fc7ef[_0x25983c('0x22')]);})[_0x1d6bc1('0x39')](function(_0x4bdfa1){const _0x4f7794=_0x1d6bc1,_0x28315a=_0x4fc7ef[_0x4f7794('0x3d')][_0x4f7794('0x1c')]({'plain':!![]});if(!_0x28315a)throw new Error(_0x4f7794('0x8'));if(_0x28315a[_0x4f7794('0x19')]===_0x4f7794('0x3d')){const _0x5d9651=_0x4bdfa1['get']({'plain':!![]});return db[_0x4f7794('0x34')]['findOne']({'where':{'name':'CannedAnswers','userProfileId':_0x28315a['userProfileId']},'raw':!![]})[_0x4f7794('0x39')](function(_0x2b0f4e){const _0x13be42=_0x4f7794;return _0x2b0f4e&&_0x2b0f4e['autoAssociation']===0x0?db[_0x13be42('0x7')][_0x13be42('0x12')]({'name':_0x5d9651[_0x13be42('0x11')],'resourceId':_0x5d9651['id'],'type':_0x2b0f4e['name'],'sectionId':_0x2b0f4e['id']},{})[_0x13be42('0x39')](function(){return _0x4bdfa1;}):_0x4bdfa1;})[_0x4f7794('0x20')](function(_0x24feb9){const _0x191f06=_0x4f7794;logger[_0x191f06('0xa')]('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0x24feb9);throw _0x24feb9;});}return _0x4bdfa1;})[_0x1d6bc1('0x39')](respondWithResult(_0x90db6,0xc9))[_0x1d6bc1('0x20')](handleError(_0x90db6,null));}; \ No newline at end of file +const a57_0x4d5d=['OpenchannelAccountId','rows','show','pick','attributes','order','where','lodash','sort','then','query','UserProfileSection','SmsAccountId','get','error','fields','userProfileId','rawAttributes','catch','offset','create','findOne','options','body','api','type','model','findAll','undefined','Unable\x20to\x20retrieve\x20the\x20current\x20user','../../components/parsers/qs','stack','UserProfileResource','params','include','VIRTUAL','intersection','status','MailAccountId','map','fieldName','limit','autoAssociation','CannedAnswer','destroy','user','nolimit','filter','count','update','includeAll','CannedAnswers','ChatWebsiteId','json','Content-Range','name','merge','keys','role','../../mysqldb','filters','key'];(function(_0x993783,_0x116239){const _0x4d5dec=function(_0x3e1546){while(--_0x3e1546){_0x993783['push'](_0x993783['shift']());}};_0x4d5dec(++_0x116239);}(a57_0x4d5d,0xcc));const a57_0x3e15=function(_0x993783,_0x116239){_0x993783=_0x993783-0x190;let _0x4d5dec=a57_0x4d5d[_0x993783];return _0x4d5dec;};const a57_0x1efa0e=a57_0x3e15;'use strict';const _=require(a57_0x1efa0e(0x1c3)),qs=require(a57_0x1efa0e(0x19c)),logger=require('../../config/logger')(a57_0x1efa0e(0x196)),{db}=require(a57_0x1efa0e(0x1b9)),{Op,ValidationError}=require('sequelize');function respondWithResult(_0x3c396b,_0x217fce){return _0x217fce=_0x217fce||0xc8,function(_0x15190f){const _0x48fc3a=a57_0x3e15;if(_0x15190f)return _0x3c396b[_0x48fc3a(0x1a3)](_0x217fce)[_0x48fc3a(0x1b3)](_0x15190f);};}function respondWithFilteredResult(_0x528b37,_0x20d850){return function(_0x5fbf10){const _0x566828=a57_0x3e15;if(_0x5fbf10){const _0x5a35e3=_0x5fbf10[_0x566828(0x1ae)],_0x4fe90a=_0x20d850['offset'];let _0x1e5317=_0x20d850[_0x566828(0x191)]+_0x20d850[_0x566828(0x1a7)],_0x32954d;return _0x1e5317>=_0x5a35e3?(_0x1e5317=_0x5a35e3,_0x32954d=0xc8):_0x32954d=0xce,_0x528b37[_0x566828(0x1a3)](_0x32954d),_0x528b37['set'](_0x566828(0x1b4),_0x4fe90a+'-'+_0x1e5317+'/'+_0x5a35e3)[_0x566828(0x1b3)](_0x5fbf10);}return null;};}function saveUpdates(_0x32becc){return function(_0x146572){const _0x47724a=a57_0x3e15;if(_0x146572)return _0x146572[_0x47724a(0x1af)](_0x32becc)[_0x47724a(0x1c5)](function(_0x1ed516){return _0x1ed516;});return null;};}function removeEntity(_0xeaabc4){return function(_0x2684ba){const _0x35c20e=a57_0x3e15;if(_0x2684ba)return _0x2684ba[_0x35c20e(0x1aa)]()['then'](function(){const _0xbc26e9=_0x35c20e,_0x25db35=_0x2684ba['get']({'plain':!![]}),_0xeb27eb='CannedAnswers';return db[_0xbc26e9(0x19e)]['destroy']({'where':{'type':_0xeb27eb,'resourceId':_0x25db35['id']}})[_0xbc26e9(0x1c5)](function(){return _0x2684ba;});})[_0x35c20e(0x1c5)](function(){const _0x5ebe5c=_0x35c20e;_0xeaabc4[_0x5ebe5c(0x1a3)](0xcc)['end']();});};}function handleEntityNotFound(_0x4af5d6){return function(_0xa33d76){return!_0xa33d76&&_0x4af5d6['sendStatus'](0x194),_0xa33d76;};}function handleError(_0x21276d,_0xa90364){return _0xa90364=_0xa90364||0x1f4,function(_0x5047d5){const _0x54f87a=a57_0x3e15;logger[_0x54f87a(0x1ca)](_0x5047d5[_0x54f87a(0x19d)]),_0x5047d5[_0x54f87a(0x1b5)]&&delete _0x5047d5[_0x54f87a(0x1b5)],_0x21276d[_0x54f87a(0x1a3)](_0xa90364)['send'](_0x5047d5);};}exports['index']=function(_0x31ddb4,_0x7cf188){const _0x292f0c=a57_0x1efa0e;let _0x5262ce={};const _0x28cac9={},_0x9acfcf={'count':0x0,'rows':[]},_0x35e62c=_[_0x292f0c(0x1a5)](db[_0x292f0c(0x1a9)][_0x292f0c(0x1cd)],function(_0x3de974){const _0x42d3c3=_0x292f0c;return{'name':_0x3de974[_0x42d3c3(0x1a6)],'type':_0x3de974[_0x42d3c3(0x197)][_0x42d3c3(0x1bb)]};});_0x28cac9[_0x292f0c(0x198)]=_[_0x292f0c(0x1a5)](_0x35e62c,_0x292f0c(0x1b5)),_0x28cac9[_0x292f0c(0x1c6)]=_['keys'](_0x31ddb4[_0x292f0c(0x1c6)]),_0x28cac9[_0x292f0c(0x1ba)]=_[_0x292f0c(0x1a2)](_0x28cac9[_0x292f0c(0x198)],_0x28cac9['query']),_0x5262ce[_0x292f0c(0x1c0)]=_[_0x292f0c(0x1a2)](_0x28cac9[_0x292f0c(0x198)],qs['fields'](_0x31ddb4['query'][_0x292f0c(0x1cb)])),_0x5262ce[_0x292f0c(0x1c0)]=_0x5262ce['attributes']['length']?_0x5262ce['attributes']:_0x28cac9[_0x292f0c(0x198)];typeof _0x31ddb4[_0x292f0c(0x1c6)][_0x292f0c(0x1ac)]===_0x292f0c(0x19a)&&(_0x5262ce[_0x292f0c(0x1a7)]=qs[_0x292f0c(0x1a7)](_0x31ddb4[_0x292f0c(0x1c6)][_0x292f0c(0x1a7)]),_0x5262ce[_0x292f0c(0x191)]=qs[_0x292f0c(0x191)](_0x31ddb4['query'][_0x292f0c(0x191)]));_0x5262ce[_0x292f0c(0x1c1)]=qs['sort'](_0x31ddb4[_0x292f0c(0x1c6)][_0x292f0c(0x1c4)]),_0x5262ce[_0x292f0c(0x1c2)]=qs['filters'](_[_0x292f0c(0x1bf)](_0x31ddb4[_0x292f0c(0x1c6)],_0x28cac9[_0x292f0c(0x1ba)]),_0x35e62c);_0x31ddb4[_0x292f0c(0x1c6)][_0x292f0c(0x1ad)]&&(_0x5262ce[_0x292f0c(0x1c2)]=_[_0x292f0c(0x1b6)](_0x5262ce['where'],{[Op['or']]:_[_0x292f0c(0x1a5)](_0x35e62c,function(_0x457ace){const _0x583a4a=_0x292f0c;if(_0x457ace[_0x583a4a(0x197)]!==_0x583a4a(0x1a1)){const _0x51d3e3={};return _0x51d3e3[_0x457ace['name']]={[Op['like']]:'%'+_0x31ddb4[_0x583a4a(0x1c6)][_0x583a4a(0x1ad)]+'%'},_0x51d3e3;}})}));_0x5262ce=_[_0x292f0c(0x1b6)]({},_0x5262ce,_0x31ddb4[_0x292f0c(0x194)]);const _0x976170={'where':_0x5262ce[_0x292f0c(0x1c2)]};return db[_0x292f0c(0x1a9)]['count'](_0x976170)[_0x292f0c(0x1c5)](function(_0x31f3ed){const _0x40a261=_0x292f0c;return _0x9acfcf[_0x40a261(0x1ae)]=_0x31f3ed,_0x31ddb4[_0x40a261(0x1c6)][_0x40a261(0x1b0)]&&(_0x5262ce['include']=[{'all':!![]}]),db[_0x40a261(0x1a9)][_0x40a261(0x199)](_0x5262ce);})[_0x292f0c(0x1c5)](function(_0x24453e){const _0x49d7e2=_0x292f0c;return _0x9acfcf[_0x49d7e2(0x1bd)]=_0x24453e,_0x9acfcf;})['then'](respondWithFilteredResult(_0x7cf188,_0x5262ce))[_0x292f0c(0x190)](handleError(_0x7cf188,null));},exports[a57_0x1efa0e(0x1be)]=function(_0x36f8cc,_0x42ed0b){const _0x223a0e=a57_0x1efa0e;let _0x38506e={'raw':!![],'where':{'id':_0x36f8cc[_0x223a0e(0x19f)]['id']}};const _0x2a390e={};return _0x2a390e[_0x223a0e(0x198)]=_[_0x223a0e(0x1b7)](db[_0x223a0e(0x1a9)]['rawAttributes']),_0x2a390e['query']=_[_0x223a0e(0x1b7)](_0x36f8cc['query']),_0x2a390e[_0x223a0e(0x1ba)]=_[_0x223a0e(0x1a2)](_0x2a390e[_0x223a0e(0x198)],_0x2a390e['query']),_0x38506e[_0x223a0e(0x1c0)]=_[_0x223a0e(0x1a2)](_0x2a390e[_0x223a0e(0x198)],qs[_0x223a0e(0x1cb)](_0x36f8cc['query'][_0x223a0e(0x1cb)])),_0x38506e['attributes']=_0x38506e[_0x223a0e(0x1c0)]['length']?_0x38506e[_0x223a0e(0x1c0)]:_0x2a390e[_0x223a0e(0x198)],_0x36f8cc['query']['includeAll']&&(_0x38506e[_0x223a0e(0x1a0)]=[{'all':!![]}]),_0x38506e=_['merge']({},_0x38506e,_0x36f8cc[_0x223a0e(0x194)]),db[_0x223a0e(0x1a9)][_0x223a0e(0x193)](_0x38506e)['then'](handleEntityNotFound(_0x42ed0b,null))[_0x223a0e(0x1c5)](respondWithResult(_0x42ed0b,null))[_0x223a0e(0x190)](handleError(_0x42ed0b,null));},exports['update']=function(_0x3a902e,_0x4ed057){const _0x2c6740=a57_0x1efa0e;return _0x3a902e[_0x2c6740(0x195)]['id']&&delete _0x3a902e[_0x2c6740(0x195)]['id'],db[_0x2c6740(0x1a9)][_0x2c6740(0x193)]({'where':{'id':_0x3a902e[_0x2c6740(0x19f)]['id']}})[_0x2c6740(0x1c5)](handleEntityNotFound(_0x4ed057,null))['then'](saveUpdates(_0x3a902e[_0x2c6740(0x195)],null))['then'](respondWithResult(_0x4ed057,null))[_0x2c6740(0x190)](handleError(_0x4ed057,null));},exports['destroy']=function(_0x4d7a24,_0x100170){const _0x363a9f=a57_0x1efa0e;return db[_0x363a9f(0x1a9)][_0x363a9f(0x193)]({'where':{'id':_0x4d7a24[_0x363a9f(0x19f)]['id']}})['then'](handleEntityNotFound(_0x100170,null))['then'](removeEntity(_0x100170,null))[_0x363a9f(0x190)](handleError(_0x100170,null));},exports['create']=function(_0x123ccb,_0x118e88){const _0x16c15b=a57_0x1efa0e,_0x20b2eb={'key':_0x123ccb['body'][_0x16c15b(0x1bb)]};if(_0x123ccb[_0x16c15b(0x195)][_0x16c15b(0x1a4)])_0x20b2eb[_0x16c15b(0x1a4)]=_0x123ccb['body'][_0x16c15b(0x1a4)];else{if(_0x123ccb['body'][_0x16c15b(0x1c8)])_0x20b2eb[_0x16c15b(0x1c8)]=_0x123ccb['body'][_0x16c15b(0x1c8)];else{if(_0x123ccb['body'][_0x16c15b(0x1bc)])_0x20b2eb[_0x16c15b(0x1bc)]=_0x123ccb['body'][_0x16c15b(0x1bc)];else _0x123ccb[_0x16c15b(0x195)][_0x16c15b(0x1b2)]&&(_0x20b2eb[_0x16c15b(0x1b2)]=_0x123ccb[_0x16c15b(0x195)][_0x16c15b(0x1b2)]);}}return db[_0x16c15b(0x1a9)]['findOne']({'where':_0x20b2eb})['then'](function(_0x283bec){const _0x21ad8f=_0x16c15b;if(_0x283bec)throw new ValidationError('The\x20inserted\x20key\x20already\x20exists.');return db[_0x21ad8f(0x1a9)]['create'](_0x123ccb['body']);})['then'](function(_0x5f1df6){const _0x6aa8fc=_0x16c15b,_0x5450c0=_0x123ccb[_0x6aa8fc(0x1ab)][_0x6aa8fc(0x1c9)]({'plain':!![]});if(!_0x5450c0)throw new Error(_0x6aa8fc(0x19b));if(_0x5450c0[_0x6aa8fc(0x1b8)]===_0x6aa8fc(0x1ab)){const _0x49cb63=_0x5f1df6[_0x6aa8fc(0x1c9)]({'plain':!![]});return db[_0x6aa8fc(0x1c7)][_0x6aa8fc(0x193)]({'where':{'name':_0x6aa8fc(0x1b1),'userProfileId':_0x5450c0[_0x6aa8fc(0x1cc)]},'raw':!![]})[_0x6aa8fc(0x1c5)](function(_0x4285e3){const _0x156f3e=_0x6aa8fc;return _0x4285e3&&_0x4285e3[_0x156f3e(0x1a8)]===0x0?db[_0x156f3e(0x19e)][_0x156f3e(0x192)]({'name':_0x49cb63[_0x156f3e(0x1b5)],'resourceId':_0x49cb63['id'],'type':_0x4285e3[_0x156f3e(0x1b5)],'sectionId':_0x4285e3['id']},{})[_0x156f3e(0x1c5)](function(){return _0x5f1df6;}):_0x5f1df6;})[_0x6aa8fc(0x190)](function(_0xf41e00){const _0x26101d=_0x6aa8fc;logger[_0x26101d(0x1ca)]('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0xf41e00);throw _0xf41e00;});}return _0x5f1df6;})[_0x16c15b(0x1c5)](respondWithResult(_0x118e88,0xc9))[_0x16c15b(0x190)](handleError(_0x118e88,null));}; \ No newline at end of file diff --git a/server/api/cannedAnswer/cannedAnswer.model.js b/server/api/cannedAnswer/cannedAnswer.model.js index a32c410..679eb6d 100644 --- a/server/api/cannedAnswer/cannedAnswer.model.js +++ b/server/api/cannedAnswer/cannedAnswer.model.js @@ -1 +1 @@ -const a48_0x2f90=['utf8mb4','./cannedAnswer.attributes','CannedAnswer','define','tools_canned_answers','utf8mb4_unicode_ci'];(function(_0x2ebff4,_0x2f906c){const _0x23ca93=function(_0x3b94e1){while(--_0x3b94e1){_0x2ebff4['push'](_0x2ebff4['shift']());}};_0x23ca93(++_0x2f906c);}(a48_0x2f90,0x16c));const a48_0x23ca=function(_0x2ebff4,_0x2f906c){_0x2ebff4=_0x2ebff4-0x0;let _0x23ca93=a48_0x2f90[_0x2ebff4];return _0x23ca93;};const _0x2e43ec=a48_0x23ca;'use strict';const attributes=require(_0x2e43ec('0x3'));module['exports']=function(_0x3b94e1){const _0x5253a6=_0x2e43ec,_0x4124e3=_0x3b94e1[_0x5253a6('0x5')](_0x5253a6('0x4'),attributes,{'tableName':_0x5253a6('0x0'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x5253a6('0x2'),'collate':_0x5253a6('0x1')});return _0x4124e3;}; \ No newline at end of file +const a58_0x4ee7=['init','./cannedAnswer.options','CannedAnswer','./cannedAnswer.attributes','exports'];(function(_0x2329f8,_0x53e79b){const _0x4ee7dd=function(_0x340ecc){while(--_0x340ecc){_0x2329f8['push'](_0x2329f8['shift']());}};_0x4ee7dd(++_0x53e79b);}(a58_0x4ee7,0x9d));const a58_0x340e=function(_0x2329f8,_0x53e79b){_0x2329f8=_0x2329f8-0x9a;let _0x4ee7dd=a58_0x4ee7[_0x2329f8];return _0x4ee7dd;};const a58_0x2d1e61=a58_0x340e;'use strict';const {Model}=require('sequelize'),{attributes}=require(a58_0x2d1e61(0x9b)),{options}=require(a58_0x2d1e61(0x9e));class CannedAnswer extends Model{}function init(_0x246ea4,_0x5a9dc3){const _0x1461b9=a58_0x2d1e61,_0xb4f2bf=options(_0x246ea4),_0x55df9a=typeof _0x5a9dc3==='function'?_0x5a9dc3(_0xb4f2bf):_0xb4f2bf;return CannedAnswer[_0x1461b9(0x9d)](attributes,_0x55df9a),CannedAnswer;}module[a58_0x2d1e61(0x9c)][a58_0x2d1e61(0x9a)]=CannedAnswer,module[a58_0x2d1e61(0x9c)]['init']=init; \ No newline at end of file diff --git a/server/api/cannedAnswer/cannedAnswer.options.js b/server/api/cannedAnswer/cannedAnswer.options.js new file mode 100644 index 0000000..65aac13 --- /dev/null +++ b/server/api/cannedAnswer/cannedAnswer.options.js @@ -0,0 +1 @@ +var a59_0x4e37=['tools_canned_answers','utf8mb4','options'];(function(_0x4e53aa,_0xa45ed4){var _0x4e37c3=function(_0xb373ce){while(--_0xb373ce){_0x4e53aa['push'](_0x4e53aa['shift']());}};_0x4e37c3(++_0xa45ed4);}(a59_0x4e37,0x8d));var a59_0xb373=function(_0x4e53aa,_0xa45ed4){_0x4e53aa=_0x4e53aa-0x119;var _0x4e37c3=a59_0x4e37[_0x4e53aa];return _0x4e37c3;};var a59_0x170eca=a59_0xb373;function options(_0x48c881){var _0x29dc8d=a59_0xb373;return{'sequelize':_0x48c881,'tableName':_0x29dc8d(0x119),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x29dc8d(0x11a),'collate':'utf8mb4_unicode_ci'};}module['exports'][a59_0x170eca(0x11b)]=options; \ No newline at end of file diff --git a/server/api/cannedAnswer/index.js b/server/api/cannedAnswer/index.js index 3b44e2c..cd60d6a 100644 --- a/server/api/cannedAnswer/index.js +++ b/server/api/cannedAnswer/index.js @@ -1 +1 @@ -const a49_0x2d65=['Router','isAuthenticated','get','delete','/:id','create','put','exports','post','update','destroy','index','show'];(function(_0x3d23d3,_0x2d6516){const _0xe45524=function(_0x4c11ca){while(--_0x4c11ca){_0x3d23d3['push'](_0x3d23d3['shift']());}};_0xe45524(++_0x2d6516);}(a49_0x2d65,0x1cf));const a49_0xe455=function(_0x3d23d3,_0x2d6516){_0x3d23d3=_0x3d23d3-0x0;let _0xe45524=a49_0x2d65[_0x3d23d3];return _0xe45524;};const _0x15f223=a49_0xe455;'use strict';const express=require('express'),router=express[_0x15f223('0x5')](),auth=require('../../components/auth/service'),controller=require('./cannedAnswer.controller');router[_0x15f223('0x7')]('/',auth[_0x15f223('0x6')](),controller[_0x15f223('0x3')]),router[_0x15f223('0x7')](_0x15f223('0x9'),auth[_0x15f223('0x6')](),controller[_0x15f223('0x4')]),router[_0x15f223('0x0')]('/',auth[_0x15f223('0x6')](),controller[_0x15f223('0xa')]),router[_0x15f223('0xb')](_0x15f223('0x9'),auth[_0x15f223('0x6')](),controller[_0x15f223('0x1')]),router[_0x15f223('0x8')]('/:id',auth['isAuthenticated'](),controller[_0x15f223('0x2')]),module[_0x15f223('0xc')]=router; \ No newline at end of file +const a60_0x2b6b=['delete','create','../../components/auth/service','show','get','update','exports','express','index','destroy','isAuthenticated','put','/:id','Router'];(function(_0x28f9a5,_0x5a104d){const _0x2b6b76=function(_0x586653){while(--_0x586653){_0x28f9a5['push'](_0x28f9a5['shift']());}};_0x2b6b76(++_0x5a104d);}(a60_0x2b6b,0x102));const a60_0x5866=function(_0x28f9a5,_0x5a104d){_0x28f9a5=_0x28f9a5-0x139;let _0x2b6b76=a60_0x2b6b[_0x28f9a5];return _0x2b6b76;};const a60_0x573de1=a60_0x5866;'use strict';const express=require(a60_0x573de1(0x13a)),router=express[a60_0x573de1(0x140)](),auth=require(a60_0x573de1(0x143)),controller=require('./cannedAnswer.controller');router[a60_0x573de1(0x145)]('/',auth[a60_0x573de1(0x13d)](),controller[a60_0x573de1(0x13b)]),router[a60_0x573de1(0x145)](a60_0x573de1(0x13f),auth[a60_0x573de1(0x13d)](),controller[a60_0x573de1(0x144)]),router['post']('/',auth['isAuthenticated'](),controller[a60_0x573de1(0x142)]),router[a60_0x573de1(0x13e)](a60_0x573de1(0x13f),auth[a60_0x573de1(0x13d)](),controller[a60_0x573de1(0x146)]),router[a60_0x573de1(0x141)](a60_0x573de1(0x13f),auth[a60_0x573de1(0x13d)](),controller[a60_0x573de1(0x13c)]),module[a60_0x573de1(0x139)]=router; \ No newline at end of file diff --git a/server/api/cdr/cdr.attributes.js b/server/api/cdr/cdr.attributes.js index d3ff53f..9efc142 100644 --- a/server/api/cdr/cdr.attributes.js +++ b/server/api/cdr/cdr.attributes.js @@ -1 +1 @@ -const a50_0x53ad=['DATE','STRING','INTEGER','exports','sequelize','1970-01-01\x2000:00:01'];(function(_0x4493e6,_0x53ad31){const _0x167825=function(_0x21f3d2){while(--_0x21f3d2){_0x4493e6['push'](_0x4493e6['shift']());}};_0x167825(++_0x53ad31);}(a50_0x53ad,0x126));const a50_0x1678=function(_0x4493e6,_0x53ad31){_0x4493e6=_0x4493e6-0x0;let _0x167825=a50_0x53ad[_0x4493e6];return _0x167825;};const _0x2e3aaa=a50_0x1678;'use strict';const Sequelize=require(_0x2e3aaa('0x4'));module[_0x2e3aaa('0x3')]={'calldate':{'type':Sequelize[_0x2e3aaa('0x0')],'allowNull':![],'defaultValue':_0x2e3aaa('0x5')},'clid':{'type':Sequelize[_0x2e3aaa('0x1')]},'src':{'type':Sequelize[_0x2e3aaa('0x1')]},'dst':{'type':Sequelize[_0x2e3aaa('0x1')]},'dcontext':{'type':Sequelize['STRING']},'channel':{'type':Sequelize[_0x2e3aaa('0x1')]},'dstchannel':{'type':Sequelize['STRING']},'lastapp':{'type':Sequelize[_0x2e3aaa('0x1')]},'lastdata':{'type':Sequelize[_0x2e3aaa('0x1')]},'duration':{'type':Sequelize[_0x2e3aaa('0x2')],'allowNull':![],'defaultValue':0x0},'billsec':{'type':Sequelize[_0x2e3aaa('0x2')],'allowNull':![],'defaultValue':0x0},'disposition':{'type':Sequelize[_0x2e3aaa('0x1')]},'amaflags':{'type':Sequelize['INTEGER'],'allowNull':![],'defaultValue':0x0},'accountcode':{'type':Sequelize[_0x2e3aaa('0x1')]},'userfield':{'type':Sequelize['STRING']},'uniqueid':{'type':Sequelize[_0x2e3aaa('0x1')]},'linkedid':{'type':Sequelize[_0x2e3aaa('0x1')]},'sequence':{'type':Sequelize[_0x2e3aaa('0x1')]},'peeraccount':{'type':Sequelize[_0x2e3aaa('0x1')]},'type':{'type':Sequelize[_0x2e3aaa('0x1')]},'tag':{'type':Sequelize[_0x2e3aaa('0x1')]}}; \ No newline at end of file +const a61_0x578b=['INTEGER','STRING','attributes','sequelize'];(function(_0x469f0e,_0x2d1de8){const _0x578bc5=function(_0x4cbcdd){while(--_0x4cbcdd){_0x469f0e['push'](_0x469f0e['shift']());}};_0x578bc5(++_0x2d1de8);}(a61_0x578b,0x1a3));const a61_0x4cbc=function(_0x469f0e,_0x2d1de8){_0x469f0e=_0x469f0e-0xd0;let _0x578bc5=a61_0x578b[_0x469f0e];return _0x578bc5;};const a61_0x2f5c77=a61_0x4cbc;'use strict';const {DataTypes}=require(a61_0x2f5c77(0xd0)),attributes={'calldate':{'type':DataTypes['DATE'],'allowNull':![],'defaultValue':'1970-01-01\x2000:00:01'},'clid':{'type':DataTypes[a61_0x2f5c77(0xd2)]},'src':{'type':DataTypes[a61_0x2f5c77(0xd2)]},'dst':{'type':DataTypes[a61_0x2f5c77(0xd2)]},'dcontext':{'type':DataTypes[a61_0x2f5c77(0xd2)]},'channel':{'type':DataTypes[a61_0x2f5c77(0xd2)]},'dstchannel':{'type':DataTypes[a61_0x2f5c77(0xd2)]},'lastapp':{'type':DataTypes['STRING']},'lastdata':{'type':DataTypes['STRING']},'duration':{'type':DataTypes[a61_0x2f5c77(0xd1)],'allowNull':![],'defaultValue':0x0},'billsec':{'type':DataTypes['INTEGER'],'allowNull':![],'defaultValue':0x0},'disposition':{'type':DataTypes['STRING']},'amaflags':{'type':DataTypes['INTEGER'],'allowNull':![],'defaultValue':0x0},'accountcode':{'type':DataTypes[a61_0x2f5c77(0xd2)]},'userfield':{'type':DataTypes['STRING']},'uniqueid':{'type':DataTypes[a61_0x2f5c77(0xd2)]},'linkedid':{'type':DataTypes[a61_0x2f5c77(0xd2)]},'sequence':{'type':DataTypes['STRING']},'peeraccount':{'type':DataTypes[a61_0x2f5c77(0xd2)]},'type':{'type':DataTypes['STRING']},'tag':{'type':DataTypes[a61_0x2f5c77(0xd2)]}};module['exports'][a61_0x2f5c77(0xd3)]=attributes; \ No newline at end of file diff --git a/server/api/cdr/cdr.controller.js b/server/api/cdr/cdr.controller.js index c475c65..71999cb 100644 --- a/server/api/cdr/cdr.controller.js +++ b/server/api/cdr/cdr.controller.js @@ -1 +1 @@ -const a51_0x2d6c=['stack','then','findAll','../../config/logger','../../mysqldb','map','catch','../../components/parsers/qs','where','name','sequelize','query','status','offset','nolimit','pick','count','sort','fieldName','type','fields','update','keys','model','includeAll','key','index','options','length','findOne','VIRTUAL','sendStatus','api','show','describe','create','destroy','send','intersection','Cdr','body','filters','Content-Range','like','end','undefined','set','rawAttributes','params','merge','filter','lodash','attributes','rows','json','limit'];(function(_0x50dc88,_0x2d6c8d){const _0x44e62b=function(_0x2c20fc){while(--_0x2c20fc){_0x50dc88['push'](_0x50dc88['shift']());}};_0x44e62b(++_0x2d6c8d);}(a51_0x2d6c,0xd6));const a51_0x44e6=function(_0x50dc88,_0x2d6c8d){_0x50dc88=_0x50dc88-0x0;let _0x44e62b=a51_0x2d6c[_0x50dc88];return _0x44e62b;};const _0x262375=a51_0x44e6;'use strict';const _=require(_0x262375('0x5')),qs=require(_0x262375('0x11')),logger=require(_0x262375('0xd'))(_0x262375('0x2a')),db=require(_0x262375('0xe'))['db'],{Op}=require(_0x262375('0x14'));function respondWithResult(_0x2c20fc,_0x47bf46){return _0x47bf46=_0x47bf46||0xc8,function(_0x47b366){const _0xe6d2d4=a51_0x44e6;if(_0x47b366)return _0x2c20fc[_0xe6d2d4('0x16')](_0x47bf46)[_0xe6d2d4('0x8')](_0x47b366);};}function respondWithFilteredResult(_0x25dc0a,_0x1eaaf0){return function(_0x2dd887){const _0x544e3d=a51_0x44e6;if(_0x2dd887){const _0x294d64=_0x2dd887['count'],_0x4cc14d=_0x1eaaf0[_0x544e3d('0x17')];let _0x3a158c=_0x1eaaf0[_0x544e3d('0x17')]+_0x1eaaf0['limit'],_0x4af59b;return _0x3a158c>=_0x294d64?(_0x3a158c=_0x294d64,_0x4af59b=0xc8):_0x4af59b=0xce,_0x25dc0a[_0x544e3d('0x16')](_0x4af59b),_0x25dc0a[_0x544e3d('0x0')](_0x544e3d('0x34'),_0x4cc14d+'-'+_0x3a158c+'/'+_0x294d64)[_0x544e3d('0x8')](_0x2dd887);}return null;};}function saveUpdates(_0x5b28f6){return function(_0x458a47){const _0x4a5897=a51_0x44e6;if(_0x458a47)return _0x458a47[_0x4a5897('0x1f')](_0x5b28f6)[_0x4a5897('0xb')](function(_0x6ce5a8){return _0x6ce5a8;});return null;};}function removeEntity(_0x387fb6){return function(_0x7c0e97){const _0x278736=a51_0x44e6;if(_0x7c0e97)return _0x7c0e97['destroy']()[_0x278736('0xb')](function(){const _0x94e4d8=_0x278736;_0x387fb6[_0x94e4d8('0x16')](0xcc)[_0x94e4d8('0x36')]();});};}function handleEntityNotFound(_0x1180a9){return function(_0x4908ff){const _0x3eb659=a51_0x44e6;return!_0x4908ff&&_0x1180a9[_0x3eb659('0x29')](0x194),_0x4908ff;};}function handleError(_0x1d8754,_0x3272ad){return _0x3272ad=_0x3272ad||0x1f4,function(_0x4708a7){const _0x9beef0=a51_0x44e6;logger['error'](_0x4708a7[_0x9beef0('0xa')]),_0x4708a7[_0x9beef0('0x13')]&&delete _0x4708a7[_0x9beef0('0x13')],_0x1d8754[_0x9beef0('0x16')](_0x3272ad)[_0x9beef0('0x2f')](_0x4708a7);};}exports[_0x262375('0x24')]=function(_0x2a2897,_0x47e8d0){const _0x1d000e=_0x262375;let _0x2d6c1b={};const _0x543fb6={},_0x2d4bd2={'count':0x0,'rows':[]},_0x4046d0=_[_0x1d000e('0xf')](db[_0x1d000e('0x31')]['rawAttributes'],function(_0x5c8c42){const _0x144c81=_0x1d000e;return{'name':_0x5c8c42[_0x144c81('0x1c')],'type':_0x5c8c42['type'][_0x144c81('0x23')]};});_0x543fb6[_0x1d000e('0x21')]=_[_0x1d000e('0xf')](_0x4046d0,_0x1d000e('0x13')),_0x543fb6[_0x1d000e('0x15')]=_[_0x1d000e('0x20')](_0x2a2897[_0x1d000e('0x15')]),_0x543fb6[_0x1d000e('0x33')]=_[_0x1d000e('0x30')](_0x543fb6['model'],_0x543fb6[_0x1d000e('0x15')]),_0x2d6c1b['attributes']=_[_0x1d000e('0x30')](_0x543fb6[_0x1d000e('0x21')],qs[_0x1d000e('0x1e')](_0x2a2897['query'][_0x1d000e('0x1e')])),_0x2d6c1b[_0x1d000e('0x6')]=_0x2d6c1b[_0x1d000e('0x6')]['length']?_0x2d6c1b['attributes']:_0x543fb6[_0x1d000e('0x21')];typeof _0x2a2897[_0x1d000e('0x15')][_0x1d000e('0x18')]===_0x1d000e('0x37')&&(_0x2d6c1b[_0x1d000e('0x9')]=qs[_0x1d000e('0x9')](_0x2a2897[_0x1d000e('0x15')]['limit']),_0x2d6c1b[_0x1d000e('0x17')]=qs[_0x1d000e('0x17')](_0x2a2897[_0x1d000e('0x15')][_0x1d000e('0x17')]));_0x2d6c1b['order']=qs[_0x1d000e('0x1b')](_0x2a2897[_0x1d000e('0x15')][_0x1d000e('0x1b')]),_0x2d6c1b[_0x1d000e('0x12')]=qs['filters'](_[_0x1d000e('0x19')](_0x2a2897['query'],_0x543fb6[_0x1d000e('0x33')]),_0x4046d0);_0x2a2897['query']['filter']&&(_0x2d6c1b[_0x1d000e('0x12')]=_[_0x1d000e('0x3')](_0x2d6c1b[_0x1d000e('0x12')],{[Op['or']]:_[_0x1d000e('0xf')](_0x4046d0,function(_0x3b2db9){const _0x387aa0=_0x1d000e;if(_0x3b2db9[_0x387aa0('0x1d')]!==_0x387aa0('0x28')){const _0x93d99f={};return _0x93d99f[_0x3b2db9[_0x387aa0('0x13')]]={[Op[_0x387aa0('0x35')]]:'%'+_0x2a2897[_0x387aa0('0x15')][_0x387aa0('0x4')]+'%'},_0x93d99f;}})}));_0x2d6c1b=_[_0x1d000e('0x3')]({},_0x2d6c1b,_0x2a2897[_0x1d000e('0x25')]);const _0x13d3b4={'where':_0x2d6c1b[_0x1d000e('0x12')]};return db['Cdr']['count'](_0x13d3b4)['then'](function(_0x31d19a){const _0xb081da=_0x1d000e;return _0x2d4bd2[_0xb081da('0x1a')]=_0x31d19a,_0x2a2897[_0xb081da('0x15')]['includeAll']&&(_0x2d6c1b['include']=[{'all':!![]}]),db[_0xb081da('0x31')][_0xb081da('0xc')](_0x2d6c1b);})[_0x1d000e('0xb')](function(_0x2353fa){const _0x45f897=_0x1d000e;return _0x2d4bd2[_0x45f897('0x7')]=_0x2353fa,_0x2d4bd2;})[_0x1d000e('0xb')](respondWithFilteredResult(_0x47e8d0,_0x2d6c1b))[_0x1d000e('0x10')](handleError(_0x47e8d0,null));},exports[_0x262375('0x2b')]=function(_0x420ef2,_0x854d23){const _0x19644f=_0x262375;let _0x282b1a={'raw':!![],'where':{'id':_0x420ef2[_0x19644f('0x2')]['id']}};const _0x1213b7={};return _0x1213b7['model']=_[_0x19644f('0x20')](db[_0x19644f('0x31')][_0x19644f('0x1')]),_0x1213b7[_0x19644f('0x15')]=_[_0x19644f('0x20')](_0x420ef2['query']),_0x1213b7[_0x19644f('0x33')]=_[_0x19644f('0x30')](_0x1213b7[_0x19644f('0x21')],_0x1213b7[_0x19644f('0x15')]),_0x282b1a[_0x19644f('0x6')]=_[_0x19644f('0x30')](_0x1213b7[_0x19644f('0x21')],qs[_0x19644f('0x1e')](_0x420ef2[_0x19644f('0x15')]['fields'])),_0x282b1a[_0x19644f('0x6')]=_0x282b1a['attributes'][_0x19644f('0x26')]?_0x282b1a['attributes']:_0x1213b7[_0x19644f('0x21')],_0x420ef2[_0x19644f('0x15')][_0x19644f('0x22')]&&(_0x282b1a['include']=[{'all':!![]}]),_0x282b1a=_['merge']({},_0x282b1a,_0x420ef2[_0x19644f('0x25')]),db[_0x19644f('0x31')]['findOne'](_0x282b1a)[_0x19644f('0xb')](handleEntityNotFound(_0x854d23,null))[_0x19644f('0xb')](respondWithResult(_0x854d23,null))['catch'](handleError(_0x854d23,null));},exports['create']=function(_0x520cd7,_0x199f3f){const _0x29525e=_0x262375;return db[_0x29525e('0x31')][_0x29525e('0x2d')](_0x520cd7[_0x29525e('0x32')],{})['then'](respondWithResult(_0x199f3f,0xc9))['catch'](handleError(_0x199f3f,null));},exports[_0x262375('0x1f')]=function(_0x8ef2eb,_0x4960d3){const _0x464b5b=_0x262375;return _0x8ef2eb[_0x464b5b('0x32')]['id']&&delete _0x8ef2eb['body']['id'],db[_0x464b5b('0x31')][_0x464b5b('0x27')]({'where':{'id':_0x8ef2eb['params']['id']}})[_0x464b5b('0xb')](handleEntityNotFound(_0x4960d3,null))[_0x464b5b('0xb')](saveUpdates(_0x8ef2eb[_0x464b5b('0x32')],null))['then'](respondWithResult(_0x4960d3,null))['catch'](handleError(_0x4960d3,null));},exports[_0x262375('0x2e')]=function(_0x5495df,_0x1802a9){const _0x38d292=_0x262375;return db['Cdr']['findOne']({'where':{'id':_0x5495df[_0x38d292('0x2')]['id']}})[_0x38d292('0xb')](handleEntityNotFound(_0x1802a9,null))[_0x38d292('0xb')](removeEntity(_0x1802a9,null))[_0x38d292('0x10')](handleError(_0x1802a9,null));},exports['describe']=function(_0xdaa02e,_0x120b8c){const _0x495f4e=_0x262375;return db[_0x495f4e('0x31')][_0x495f4e('0x2c')]()[_0x495f4e('0xb')](respondWithResult(_0x120b8c,null))[_0x495f4e('0x10')](handleError(_0x120b8c,null));}; \ No newline at end of file +const a62_0xb524=['Cdr','set','destroy','model','options','describe','sort','body','end','nolimit','query','findOne','create','type','then','like','catch','limit','sequelize','order','offset','map','send','length','json','merge','update','../../config/logger','params','keys','attributes','key','filter','fields','Content-Range','name','error','api','../../components/parsers/qs','intersection','include','includeAll','filters','pick','lodash','rawAttributes','count','undefined','status','show','stack','where'];(function(_0x425fce,_0x2265bb){const _0xb524d3=function(_0x3dabea){while(--_0x3dabea){_0x425fce['push'](_0x425fce['shift']());}};_0xb524d3(++_0x2265bb);}(a62_0xb524,0xaa));const a62_0x3dab=function(_0x425fce,_0x2265bb){_0x425fce=_0x425fce-0xcb;let _0xb524d3=a62_0xb524[_0x425fce];return _0xb524d3;};const a62_0x7b8cd3=a62_0x3dab;'use strict';const _=require(a62_0x7b8cd3(0xe9)),qs=require(a62_0x7b8cd3(0xe3)),logger=require(a62_0x7b8cd3(0xd8))(a62_0x7b8cd3(0xe2)),{db}=require('../../mysqldb'),{Op}=require(a62_0x7b8cd3(0xcf));function respondWithResult(_0x414971,_0x542e09){return _0x542e09=_0x542e09||0xc8,function(_0x4bb47d){const _0x2c8aaa=a62_0x3dab;if(_0x4bb47d)return _0x414971[_0x2c8aaa(0xed)](_0x542e09)[_0x2c8aaa(0xd5)](_0x4bb47d);};}function respondWithFilteredResult(_0x56b32f,_0x4cca81){return function(_0x2f9631){const _0x29cc31=a62_0x3dab;if(_0x2f9631){const _0x2dd49b=_0x2f9631['count'],_0x3aa7d1=_0x4cca81[_0x29cc31(0xd1)];let _0x76a330=_0x4cca81[_0x29cc31(0xd1)]+_0x4cca81[_0x29cc31(0xce)],_0x56cd2b;return _0x76a330>=_0x2dd49b?(_0x76a330=_0x2dd49b,_0x56cd2b=0xc8):_0x56cd2b=0xce,_0x56b32f['status'](_0x56cd2b),_0x56b32f[_0x29cc31(0xf2)](_0x29cc31(0xdf),_0x3aa7d1+'-'+_0x76a330+'/'+_0x2dd49b)[_0x29cc31(0xd5)](_0x2f9631);}return null;};}function saveUpdates(_0x354557){return function(_0x5c2fab){const _0x3f5769=a62_0x3dab;if(_0x5c2fab)return _0x5c2fab[_0x3f5769(0xd7)](_0x354557)[_0x3f5769(0xcb)](function(_0x2b6b36){return _0x2b6b36;});return null;};}function removeEntity(_0x44f865){return function(_0x4e643f){const _0x454e56=a62_0x3dab;if(_0x4e643f)return _0x4e643f[_0x454e56(0xf3)]()[_0x454e56(0xcb)](function(){const _0x573b65=_0x454e56;_0x44f865[_0x573b65(0xed)](0xcc)[_0x573b65(0xf9)]();});};}function handleEntityNotFound(_0x190236){return function(_0x31e60b){return!_0x31e60b&&_0x190236['sendStatus'](0x194),_0x31e60b;};}function handleError(_0x4e401a,_0x16bc5e){return _0x16bc5e=_0x16bc5e||0x1f4,function(_0x545a1e){const _0x2fe722=a62_0x3dab;logger[_0x2fe722(0xe1)](_0x545a1e[_0x2fe722(0xef)]),_0x545a1e[_0x2fe722(0xe0)]&&delete _0x545a1e[_0x2fe722(0xe0)],_0x4e401a[_0x2fe722(0xed)](_0x16bc5e)[_0x2fe722(0xd3)](_0x545a1e);};}exports['index']=function(_0x2a7e33,_0x20acf4){const _0x3bfd3c=a62_0x7b8cd3;let _0x4f1f07={};const _0x1f4244={},_0x33068c={'count':0x0,'rows':[]},_0x2313e8=_[_0x3bfd3c(0xd2)](db[_0x3bfd3c(0xf1)][_0x3bfd3c(0xea)],function(_0xc02513){const _0x5d0277=_0x3bfd3c;return{'name':_0xc02513['fieldName'],'type':_0xc02513[_0x5d0277(0xfe)][_0x5d0277(0xdc)]};});_0x1f4244[_0x3bfd3c(0xf4)]=_['map'](_0x2313e8,_0x3bfd3c(0xe0)),_0x1f4244['query']=_[_0x3bfd3c(0xda)](_0x2a7e33[_0x3bfd3c(0xfb)]),_0x1f4244[_0x3bfd3c(0xe7)]=_['intersection'](_0x1f4244['model'],_0x1f4244[_0x3bfd3c(0xfb)]),_0x4f1f07[_0x3bfd3c(0xdb)]=_[_0x3bfd3c(0xe4)](_0x1f4244['model'],qs[_0x3bfd3c(0xde)](_0x2a7e33[_0x3bfd3c(0xfb)]['fields'])),_0x4f1f07[_0x3bfd3c(0xdb)]=_0x4f1f07[_0x3bfd3c(0xdb)][_0x3bfd3c(0xd4)]?_0x4f1f07[_0x3bfd3c(0xdb)]:_0x1f4244['model'];typeof _0x2a7e33[_0x3bfd3c(0xfb)][_0x3bfd3c(0xfa)]===_0x3bfd3c(0xec)&&(_0x4f1f07[_0x3bfd3c(0xce)]=qs[_0x3bfd3c(0xce)](_0x2a7e33[_0x3bfd3c(0xfb)][_0x3bfd3c(0xce)]),_0x4f1f07['offset']=qs[_0x3bfd3c(0xd1)](_0x2a7e33[_0x3bfd3c(0xfb)][_0x3bfd3c(0xd1)]));_0x4f1f07[_0x3bfd3c(0xd0)]=qs[_0x3bfd3c(0xf7)](_0x2a7e33[_0x3bfd3c(0xfb)][_0x3bfd3c(0xf7)]),_0x4f1f07[_0x3bfd3c(0xf0)]=qs['filters'](_[_0x3bfd3c(0xe8)](_0x2a7e33[_0x3bfd3c(0xfb)],_0x1f4244[_0x3bfd3c(0xe7)]),_0x2313e8);_0x2a7e33[_0x3bfd3c(0xfb)][_0x3bfd3c(0xdd)]&&(_0x4f1f07['where']=_[_0x3bfd3c(0xd6)](_0x4f1f07[_0x3bfd3c(0xf0)],{[Op['or']]:_['map'](_0x2313e8,function(_0x4e8399){const _0x806807=_0x3bfd3c;if(_0x4e8399['type']!=='VIRTUAL'){const _0x1ed743={};return _0x1ed743[_0x4e8399[_0x806807(0xe0)]]={[Op[_0x806807(0xcc)]]:'%'+_0x2a7e33[_0x806807(0xfb)][_0x806807(0xdd)]+'%'},_0x1ed743;}})}));_0x4f1f07=_[_0x3bfd3c(0xd6)]({},_0x4f1f07,_0x2a7e33['options']);const _0x284b77={'where':_0x4f1f07['where']};return db['Cdr']['count'](_0x284b77)[_0x3bfd3c(0xcb)](function(_0x559a66){const _0x1ccecb=_0x3bfd3c;return _0x33068c[_0x1ccecb(0xeb)]=_0x559a66,_0x2a7e33[_0x1ccecb(0xfb)][_0x1ccecb(0xe6)]&&(_0x4f1f07[_0x1ccecb(0xe5)]=[{'all':!![]}]),db[_0x1ccecb(0xf1)]['findAll'](_0x4f1f07);})[_0x3bfd3c(0xcb)](function(_0x47c047){return _0x33068c['rows']=_0x47c047,_0x33068c;})[_0x3bfd3c(0xcb)](respondWithFilteredResult(_0x20acf4,_0x4f1f07))['catch'](handleError(_0x20acf4,null));},exports[a62_0x7b8cd3(0xee)]=function(_0x3760c2,_0x4423b6){const _0x1f441e=a62_0x7b8cd3;let _0x41f8a5={'raw':!![],'where':{'id':_0x3760c2[_0x1f441e(0xd9)]['id']}};const _0x2c6021={};return _0x2c6021[_0x1f441e(0xf4)]=_[_0x1f441e(0xda)](db[_0x1f441e(0xf1)][_0x1f441e(0xea)]),_0x2c6021[_0x1f441e(0xfb)]=_['keys'](_0x3760c2[_0x1f441e(0xfb)]),_0x2c6021[_0x1f441e(0xe7)]=_[_0x1f441e(0xe4)](_0x2c6021[_0x1f441e(0xf4)],_0x2c6021['query']),_0x41f8a5[_0x1f441e(0xdb)]=_[_0x1f441e(0xe4)](_0x2c6021[_0x1f441e(0xf4)],qs[_0x1f441e(0xde)](_0x3760c2['query'][_0x1f441e(0xde)])),_0x41f8a5[_0x1f441e(0xdb)]=_0x41f8a5[_0x1f441e(0xdb)][_0x1f441e(0xd4)]?_0x41f8a5[_0x1f441e(0xdb)]:_0x2c6021['model'],_0x3760c2[_0x1f441e(0xfb)][_0x1f441e(0xe6)]&&(_0x41f8a5[_0x1f441e(0xe5)]=[{'all':!![]}]),_0x41f8a5=_[_0x1f441e(0xd6)]({},_0x41f8a5,_0x3760c2[_0x1f441e(0xf5)]),db[_0x1f441e(0xf1)]['findOne'](_0x41f8a5)[_0x1f441e(0xcb)](handleEntityNotFound(_0x4423b6,null))['then'](respondWithResult(_0x4423b6,null))['catch'](handleError(_0x4423b6,null));},exports[a62_0x7b8cd3(0xfd)]=function(_0x23001d,_0x28ec42){const _0x1ea8a9=a62_0x7b8cd3;return db[_0x1ea8a9(0xf1)][_0x1ea8a9(0xfd)](_0x23001d['body'],{})[_0x1ea8a9(0xcb)](respondWithResult(_0x28ec42,0xc9))['catch'](handleError(_0x28ec42,null));},exports[a62_0x7b8cd3(0xd7)]=function(_0x3a9c17,_0x5cd3a2){const _0x3ce7d2=a62_0x7b8cd3;return _0x3a9c17[_0x3ce7d2(0xf8)]['id']&&delete _0x3a9c17[_0x3ce7d2(0xf8)]['id'],db[_0x3ce7d2(0xf1)]['findOne']({'where':{'id':_0x3a9c17[_0x3ce7d2(0xd9)]['id']}})[_0x3ce7d2(0xcb)](handleEntityNotFound(_0x5cd3a2,null))['then'](saveUpdates(_0x3a9c17['body'],null))[_0x3ce7d2(0xcb)](respondWithResult(_0x5cd3a2,null))[_0x3ce7d2(0xcd)](handleError(_0x5cd3a2,null));},exports[a62_0x7b8cd3(0xf3)]=function(_0x4f52c0,_0x4d8a80){const _0x410532=a62_0x7b8cd3;return db['Cdr'][_0x410532(0xfc)]({'where':{'id':_0x4f52c0[_0x410532(0xd9)]['id']}})[_0x410532(0xcb)](handleEntityNotFound(_0x4d8a80,null))[_0x410532(0xcb)](removeEntity(_0x4d8a80,null))[_0x410532(0xcd)](handleError(_0x4d8a80,null));},exports[a62_0x7b8cd3(0xf6)]=function(_0x298344,_0x5016c5){const _0x3103e1=a62_0x7b8cd3;return db[_0x3103e1(0xf1)][_0x3103e1(0xf6)]()[_0x3103e1(0xcb)](respondWithResult(_0x5016c5,null))[_0x3103e1(0xcd)](handleError(_0x5016c5,null));}; \ No newline at end of file diff --git a/server/api/cdr/cdr.model.js b/server/api/cdr/cdr.model.js index fc9b7ad..d5dbd68 100644 --- a/server/api/cdr/cdr.model.js +++ b/server/api/cdr/cdr.model.js @@ -1 +1 @@ -const a52_0x1508=['disposition','Cdr','src','calldate','dst','./cdr.attributes','accountcode','uniqueid'];(function(_0x292bfa,_0x1508bf){const _0x405c51=function(_0x138352){while(--_0x138352){_0x292bfa['push'](_0x292bfa['shift']());}};_0x405c51(++_0x1508bf);}(a52_0x1508,0x95));const a52_0x405c=function(_0x292bfa,_0x1508bf){_0x292bfa=_0x292bfa-0x0;let _0x405c51=a52_0x1508[_0x292bfa];return _0x405c51;};const _0x514c97=a52_0x405c;'use strict';const attributes=require(_0x514c97('0x0'));module['exports']=function(_0x138352){const _0x3aee3f=_0x514c97,_0x2c1393=_0x138352['define'](_0x3aee3f('0x4'),attributes,{'tableName':'cdr','paranoid':![],'indexes':[{'name':_0x3aee3f('0x1'),'fields':[_0x3aee3f('0x1')]},{'name':'calldate','fields':[_0x3aee3f('0x6')]},{'name':_0x3aee3f('0x3'),'fields':['disposition']},{'name':_0x3aee3f('0x7'),'fields':[_0x3aee3f('0x7')]},{'name':_0x3aee3f('0x5'),'fields':[_0x3aee3f('0x5')]},{'name':_0x3aee3f('0x2'),'fields':[_0x3aee3f('0x2')]}],'timestamps':![]});return _0x2c1393;}; \ No newline at end of file +const a63_0x2283=['./cdr.attributes','function','Cdr','init','sequelize','exports'];(function(_0x4f2518,_0x3e17d3){const _0x2283a5=function(_0xb9c935){while(--_0xb9c935){_0x4f2518['push'](_0x4f2518['shift']());}};_0x2283a5(++_0x3e17d3);}(a63_0x2283,0x188));const a63_0xb9c9=function(_0x4f2518,_0x3e17d3){_0x4f2518=_0x4f2518-0x14c;let _0x2283a5=a63_0x2283[_0x4f2518];return _0x2283a5;};const a63_0x2c42d7=a63_0xb9c9;'use strict';const {Model}=require(a63_0x2c42d7(0x14e)),{attributes}=require(a63_0x2c42d7(0x150)),{options}=require('./cdr.options');class Cdr extends Model{}function init(_0x538716,_0x46c692){const _0x3526ee=a63_0x2c42d7,_0x42faf4=options(_0x538716),_0x33773a=typeof _0x46c692===_0x3526ee(0x151)?_0x46c692(_0x42faf4):_0x42faf4;return Cdr[_0x3526ee(0x14d)](attributes,_0x33773a),Cdr;}module[a63_0x2c42d7(0x14f)][a63_0x2c42d7(0x14c)]=Cdr,module['exports'][a63_0x2c42d7(0x14d)]=init; \ No newline at end of file diff --git a/server/api/cdr/cdr.options.js b/server/api/cdr/cdr.options.js new file mode 100644 index 0000000..9cabea6 --- /dev/null +++ b/server/api/cdr/cdr.options.js @@ -0,0 +1 @@ +var a64_0x3903=['dst','calldate','accountcode','exports','cdr','disposition','uniqueid','options','src'];(function(_0x5f04d0,_0x5d42fe){var _0x390371=function(_0x3b91f1){while(--_0x3b91f1){_0x5f04d0['push'](_0x5f04d0['shift']());}};_0x390371(++_0x5d42fe);}(a64_0x3903,0x16e));var a64_0x3b91=function(_0x5f04d0,_0x5d42fe){_0x5f04d0=_0x5f04d0-0x120;var _0x390371=a64_0x3903[_0x5f04d0];return _0x390371;};var a64_0x44b812=a64_0x3b91;function options(_0x6448a9){var _0x5ec9b2=a64_0x3b91;return{'sequelize':_0x6448a9,'tableName':_0x5ec9b2(0x127),'paranoid':![],'indexes':[{'name':_0x5ec9b2(0x125),'fields':[_0x5ec9b2(0x125)]},{'name':_0x5ec9b2(0x124),'fields':[_0x5ec9b2(0x124)]},{'name':_0x5ec9b2(0x128),'fields':[_0x5ec9b2(0x128)]},{'name':_0x5ec9b2(0x123),'fields':[_0x5ec9b2(0x123)]},{'name':_0x5ec9b2(0x122),'fields':['src']},{'name':'uniqueid','fields':[_0x5ec9b2(0x120)]}],'timestamps':![]};}module[a64_0x44b812(0x126)][a64_0x44b812(0x121)]=options; \ No newline at end of file diff --git a/server/api/cdr/index.js b/server/api/cdr/index.js index 61a69e9..36e11b1 100644 --- a/server/api/cdr/index.js +++ b/server/api/cdr/index.js @@ -1 +1 @@ -const a53_0x43f1=['post','/:id','get','isAuthenticated','describe','show','../../components/auth/service','/describe','destroy','update'];(function(_0x2721ec,_0x43f1c5){const _0x108e06=function(_0x505915){while(--_0x505915){_0x2721ec['push'](_0x2721ec['shift']());}};_0x108e06(++_0x43f1c5);}(a53_0x43f1,0xb6));const a53_0x108e=function(_0x2721ec,_0x43f1c5){_0x2721ec=_0x2721ec-0x0;let _0x108e06=a53_0x43f1[_0x2721ec];return _0x108e06;};const _0x5349c7=a53_0x108e;'use strict';const express=require('express'),router=express['Router'](),auth=require(_0x5349c7('0x4')),controller=require('./cdr.controller');router[_0x5349c7('0x0')]('/',auth[_0x5349c7('0x1')](),controller['index']),router[_0x5349c7('0x0')](_0x5349c7('0x5'),auth['isAuthenticated'](),controller[_0x5349c7('0x2')]),router[_0x5349c7('0x0')](_0x5349c7('0x9'),auth['isAuthenticated'](),controller[_0x5349c7('0x3')]),router[_0x5349c7('0x8')]('/',auth[_0x5349c7('0x1')](),controller['create']),router['put'](_0x5349c7('0x9'),auth[_0x5349c7('0x1')](),controller[_0x5349c7('0x7')]),router['delete'](_0x5349c7('0x9'),auth[_0x5349c7('0x1')](),controller[_0x5349c7('0x6')]),module['exports']=router; \ No newline at end of file +const a65_0x4c6a=['create','put','exports','show','get','isAuthenticated','describe','index','../../components/auth/service','Router','/describe','/:id','./cdr.controller'];(function(_0x3127d7,_0x52a13c){const _0x4c6aa7=function(_0xa77472){while(--_0xa77472){_0x3127d7['push'](_0x3127d7['shift']());}};_0x4c6aa7(++_0x52a13c);}(a65_0x4c6a,0x197));const a65_0xa774=function(_0x3127d7,_0x52a13c){_0x3127d7=_0x3127d7-0x164;let _0x4c6aa7=a65_0x4c6a[_0x3127d7];return _0x4c6aa7;};const a65_0x539ff6=a65_0xa774;'use strict';const express=require('express'),router=express[a65_0x539ff6(0x169)](),auth=require(a65_0x539ff6(0x168)),controller=require(a65_0x539ff6(0x16c));router[a65_0x539ff6(0x164)]('/',auth[a65_0x539ff6(0x165)](),controller[a65_0x539ff6(0x167)]),router[a65_0x539ff6(0x164)](a65_0x539ff6(0x16a),auth[a65_0x539ff6(0x165)](),controller[a65_0x539ff6(0x166)]),router[a65_0x539ff6(0x164)]('/:id',auth['isAuthenticated'](),controller[a65_0x539ff6(0x170)]),router['post']('/',auth[a65_0x539ff6(0x165)](),controller[a65_0x539ff6(0x16d)]),router[a65_0x539ff6(0x16e)](a65_0x539ff6(0x16b),auth[a65_0x539ff6(0x165)](),controller['update']),router['delete'](a65_0x539ff6(0x16b),auth['isAuthenticated'](),controller['destroy']),module[a65_0x539ff6(0x16f)]=router; \ No newline at end of file diff --git a/server/api/chatApplication/chatApplication.attributes.js b/server/api/chatApplication/chatApplication.attributes.js index b72fb2a..ad0f61f 100644 --- a/server/api/chatApplication/chatApplication.attributes.js +++ b/server/api/chatApplication/chatApplication.attributes.js @@ -1 +1 @@ -const a54_0x4461=['noop','INTEGER','exports','*,*,*,*','TEXT','STRING'];(function(_0x1d2bbe,_0x446166){const _0x53cb61=function(_0x5d46f4){while(--_0x5d46f4){_0x1d2bbe['push'](_0x1d2bbe['shift']());}};_0x53cb61(++_0x446166);}(a54_0x4461,0x9c));const a54_0x53cb=function(_0x1d2bbe,_0x446166){_0x1d2bbe=_0x1d2bbe-0x0;let _0x53cb61=a54_0x4461[_0x1d2bbe];return _0x53cb61;};const _0x500020=a54_0x53cb;'use strict';const Sequelize=require('sequelize');module[_0x500020('0x2')]={'priority':{'type':Sequelize[_0x500020('0x1')],'allowNull':![]},'app':{'type':Sequelize[_0x500020('0x5')],'allowNull':![],'defaultValue':_0x500020('0x0')},'appdata':{'type':Sequelize[_0x500020('0x4')]()},'description':{'type':Sequelize[_0x500020('0x5')]},'interval':{'type':Sequelize[_0x500020('0x5')],'defaultValue':_0x500020('0x3')}}; \ No newline at end of file +const a66_0x2bc9=['exports','TEXT','STRING','sequelize','*,*,*,*','noop','INTEGER'];(function(_0x32e846,_0x38baf7){const _0x2bc975=function(_0x2603c1){while(--_0x2603c1){_0x32e846['push'](_0x32e846['shift']());}};_0x2bc975(++_0x38baf7);}(a66_0x2bc9,0x110));const a66_0x2603=function(_0x32e846,_0x38baf7){_0x32e846=_0x32e846-0x7e;let _0x2bc975=a66_0x2bc9[_0x32e846];return _0x2bc975;};const a66_0xfc7fbe=a66_0x2603;'use strict';const {DataTypes}=require(a66_0xfc7fbe(0x82)),attributes={'priority':{'type':DataTypes[a66_0xfc7fbe(0x7e)],'allowNull':![]},'app':{'type':DataTypes[a66_0xfc7fbe(0x81)],'allowNull':![],'defaultValue':a66_0xfc7fbe(0x84)},'appdata':{'type':DataTypes[a66_0xfc7fbe(0x80)]()},'description':{'type':DataTypes[a66_0xfc7fbe(0x81)]},'interval':{'type':DataTypes[a66_0xfc7fbe(0x81)],'defaultValue':a66_0xfc7fbe(0x83)}};module[a66_0xfc7fbe(0x7f)]['attributes']=attributes; \ No newline at end of file diff --git a/server/api/chatApplication/chatApplication.controller.js b/server/api/chatApplication/chatApplication.controller.js index 3b60ed1..57785c3 100644 --- a/server/api/chatApplication/chatApplication.controller.js +++ b/server/api/chatApplication/chatApplication.controller.js @@ -1 +1 @@ -const a55_0x33dc=['query','catch','findOne','include','api','ChatApplication','lodash','update','params','intersection','name','status','attributes','filters','../../config/logger','model','destroy','show','fields','merge','then','body','keys','../../mysqldb','length','stack','../../components/parsers/qs','rawAttributes','send','error','includeAll'];(function(_0xa84686,_0x33dcb1){const _0x2f8239=function(_0x2871cc){while(--_0x2871cc){_0xa84686['push'](_0xa84686['shift']());}};_0x2f8239(++_0x33dcb1);}(a55_0x33dc,0x157));const a55_0x2f82=function(_0xa84686,_0x33dcb1){_0xa84686=_0xa84686-0x0;let _0x2f8239=a55_0x33dc[_0xa84686];return _0x2f8239;};const _0x5cc6e1=a55_0x2f82;'use strict';const _=require(_0x5cc6e1('0x4')),qs=require(_0x5cc6e1('0x18')),logger=require(_0x5cc6e1('0xc'))(_0x5cc6e1('0x2')),db=require(_0x5cc6e1('0x15'))['db'];function respondWithResult(_0x2871cc,_0x162c8e){return _0x162c8e=_0x162c8e||0xc8,function(_0x20adf4){if(_0x20adf4)return _0x2871cc['status'](_0x162c8e)['json'](_0x20adf4);};}function saveUpdates(_0x366db4){return function(_0x2587ce){const _0x225293=a55_0x2f82;if(_0x2587ce)return _0x2587ce[_0x225293('0x5')](_0x366db4)[_0x225293('0x12')](function(_0x56fb96){return _0x56fb96;});return null;};}function removeEntity(_0x168e31){return function(_0xeed01f){const _0x21e157=a55_0x2f82;if(_0xeed01f)return _0xeed01f[_0x21e157('0xe')]()['then'](function(){_0x168e31['status'](0xcc)['end']();});};}function handleEntityNotFound(_0x76522c){return function(_0x356621){return!_0x356621&&_0x76522c['sendStatus'](0x194),_0x356621;};}function handleError(_0x56f31b,_0x1ca8e9){return _0x1ca8e9=_0x1ca8e9||0x1f4,function(_0x519e75){const _0x50ffed=a55_0x2f82;logger[_0x50ffed('0x1b')](_0x519e75[_0x50ffed('0x17')]),_0x519e75[_0x50ffed('0x8')]&&delete _0x519e75['name'],_0x56f31b[_0x50ffed('0x9')](_0x1ca8e9)[_0x50ffed('0x1a')](_0x519e75);};}exports[_0x5cc6e1('0xf')]=function(_0x76e71c,_0x4c0965){const _0xeba620=_0x5cc6e1;let _0x40eae8={'raw':!![],'where':{'id':_0x76e71c[_0xeba620('0x6')]['id']}};const _0x4445ff={};return _0x4445ff[_0xeba620('0xd')]=_['keys'](db[_0xeba620('0x3')][_0xeba620('0x19')]),_0x4445ff[_0xeba620('0x1d')]=_[_0xeba620('0x14')](_0x76e71c[_0xeba620('0x1d')]),_0x4445ff[_0xeba620('0xb')]=_[_0xeba620('0x7')](_0x4445ff['model'],_0x4445ff[_0xeba620('0x1d')]),_0x40eae8[_0xeba620('0xa')]=_[_0xeba620('0x7')](_0x4445ff[_0xeba620('0xd')],qs[_0xeba620('0x10')](_0x76e71c['query']['fields'])),_0x40eae8[_0xeba620('0xa')]=_0x40eae8[_0xeba620('0xa')][_0xeba620('0x16')]?_0x40eae8[_0xeba620('0xa')]:_0x4445ff['model'],_0x76e71c[_0xeba620('0x1d')][_0xeba620('0x1c')]&&(_0x40eae8[_0xeba620('0x1')]=[{'all':!![]}]),_0x40eae8=_[_0xeba620('0x11')]({},_0x40eae8,_0x76e71c['options']),db[_0xeba620('0x3')]['findOne'](_0x40eae8)[_0xeba620('0x12')](handleEntityNotFound(_0x4c0965,null))['then'](respondWithResult(_0x4c0965,null))[_0xeba620('0x1e')](handleError(_0x4c0965,null));},exports[_0x5cc6e1('0x5')]=function(_0xc6fec3,_0x16747d){const _0x320376=_0x5cc6e1;return _0xc6fec3['body']['id']&&delete _0xc6fec3[_0x320376('0x13')]['id'],db['ChatApplication'][_0x320376('0x0')]({'where':{'id':_0xc6fec3[_0x320376('0x6')]['id']}})[_0x320376('0x12')](handleEntityNotFound(_0x16747d,null))['then'](saveUpdates(_0xc6fec3['body'],null))[_0x320376('0x12')](respondWithResult(_0x16747d,null))[_0x320376('0x1e')](handleError(_0x16747d,null));},exports[_0x5cc6e1('0xe')]=function(_0x43d09f,_0x37881b){const _0x336801=_0x5cc6e1;return db[_0x336801('0x3')][_0x336801('0x0')]({'where':{'id':_0x43d09f['params']['id']}})[_0x336801('0x12')](handleEntityNotFound(_0x37881b,null))[_0x336801('0x12')](removeEntity(_0x37881b,null))[_0x336801('0x1e')](handleError(_0x37881b,null));}; \ No newline at end of file +const a67_0x4762=['lodash','sendStatus','length','keys','attributes','findOne','model','catch','json','query','then','ChatApplication','name','fields','merge','status','stack','update','send','rawAttributes','body','api','params','show','destroy','includeAll','intersection','filters'];(function(_0x4929c4,_0x8d8103){const _0x476261=function(_0x580516){while(--_0x580516){_0x4929c4['push'](_0x4929c4['shift']());}};_0x476261(++_0x8d8103);}(a67_0x4762,0x11b));const a67_0x5805=function(_0x4929c4,_0x8d8103){_0x4929c4=_0x4929c4-0x95;let _0x476261=a67_0x4762[_0x4929c4];return _0x476261;};const a67_0x955362=a67_0x5805;'use strict';const _=require(a67_0x955362(0xae)),qs=require('../../components/parsers/qs'),logger=require('../../config/logger')(a67_0x955362(0xa7)),{db}=require('../../mysqldb');function respondWithResult(_0x29cba8,_0x2f0052){return _0x2f0052=_0x2f0052||0xc8,function(_0x44df17){const _0x1e89e6=a67_0x5805;if(_0x44df17)return _0x29cba8[_0x1e89e6(0xa1)](_0x2f0052)[_0x1e89e6(0x9a)](_0x44df17);};}function saveUpdates(_0x1ae67f){return function(_0x32aa0c){const _0xe3e05d=a67_0x5805;if(_0x32aa0c)return _0x32aa0c[_0xe3e05d(0xa3)](_0x1ae67f)[_0xe3e05d(0x9c)](function(_0x5bfff4){return _0x5bfff4;});return null;};}function removeEntity(_0xddeb78){return function(_0x261bdc){if(_0x261bdc)return _0x261bdc['destroy']()['then'](function(){_0xddeb78['status'](0xcc)['end']();});};}function handleEntityNotFound(_0x1ab6b1){return function(_0x3eec74){const _0x957e09=a67_0x5805;return!_0x3eec74&&_0x1ab6b1[_0x957e09(0xaf)](0x194),_0x3eec74;};}function handleError(_0x356a3c,_0x27f699){return _0x27f699=_0x27f699||0x1f4,function(_0x2eafc8){const _0x1872c4=a67_0x5805;logger['error'](_0x2eafc8[_0x1872c4(0xa2)]),_0x2eafc8[_0x1872c4(0x9e)]&&delete _0x2eafc8[_0x1872c4(0x9e)],_0x356a3c['status'](_0x27f699)[_0x1872c4(0xa4)](_0x2eafc8);};}exports[a67_0x955362(0xa9)]=function(_0x47c5c2,_0x52f57b){const _0x563b1d=a67_0x955362;let _0xb19b7c={'raw':!![],'where':{'id':_0x47c5c2[_0x563b1d(0xa8)]['id']}};const _0x276791={};return _0x276791[_0x563b1d(0x98)]=_[_0x563b1d(0x95)](db['ChatApplication'][_0x563b1d(0xa5)]),_0x276791[_0x563b1d(0x9b)]=_[_0x563b1d(0x95)](_0x47c5c2[_0x563b1d(0x9b)]),_0x276791[_0x563b1d(0xad)]=_[_0x563b1d(0xac)](_0x276791[_0x563b1d(0x98)],_0x276791[_0x563b1d(0x9b)]),_0xb19b7c[_0x563b1d(0x96)]=_[_0x563b1d(0xac)](_0x276791[_0x563b1d(0x98)],qs[_0x563b1d(0x9f)](_0x47c5c2[_0x563b1d(0x9b)][_0x563b1d(0x9f)])),_0xb19b7c[_0x563b1d(0x96)]=_0xb19b7c[_0x563b1d(0x96)][_0x563b1d(0xb0)]?_0xb19b7c[_0x563b1d(0x96)]:_0x276791[_0x563b1d(0x98)],_0x47c5c2[_0x563b1d(0x9b)][_0x563b1d(0xab)]&&(_0xb19b7c['include']=[{'all':!![]}]),_0xb19b7c=_[_0x563b1d(0xa0)]({},_0xb19b7c,_0x47c5c2['options']),db[_0x563b1d(0x9d)][_0x563b1d(0x97)](_0xb19b7c)[_0x563b1d(0x9c)](handleEntityNotFound(_0x52f57b,null))[_0x563b1d(0x9c)](respondWithResult(_0x52f57b,null))['catch'](handleError(_0x52f57b,null));},exports[a67_0x955362(0xa3)]=function(_0x2c8bdf,_0x3cdcdd){const _0x37464f=a67_0x955362;return _0x2c8bdf['body']['id']&&delete _0x2c8bdf[_0x37464f(0xa6)]['id'],db[_0x37464f(0x9d)][_0x37464f(0x97)]({'where':{'id':_0x2c8bdf['params']['id']}})[_0x37464f(0x9c)](handleEntityNotFound(_0x3cdcdd,null))['then'](saveUpdates(_0x2c8bdf['body'],null))[_0x37464f(0x9c)](respondWithResult(_0x3cdcdd,null))[_0x37464f(0x99)](handleError(_0x3cdcdd,null));},exports[a67_0x955362(0xaa)]=function(_0x565d8d,_0x5b0c7b){const _0x56bc50=a67_0x955362;return db[_0x56bc50(0x9d)][_0x56bc50(0x97)]({'where':{'id':_0x565d8d[_0x56bc50(0xa8)]['id']}})['then'](handleEntityNotFound(_0x5b0c7b,null))[_0x56bc50(0x9c)](removeEntity(_0x5b0c7b,null))[_0x56bc50(0x99)](handleError(_0x5b0c7b,null));}; \ No newline at end of file diff --git a/server/api/chatApplication/chatApplication.model.js b/server/api/chatApplication/chatApplication.model.js index 4c95e01..af6c3ee 100644 --- a/server/api/chatApplication/chatApplication.model.js +++ b/server/api/chatApplication/chatApplication.model.js @@ -1 +1 @@ -const a56_0x22ab=['./chatApplication.attributes','exports','chat_applications','utf8mb4_unicode_ci'];(function(_0x505732,_0x22ab30){const _0x5881aa=function(_0x1f6bb5){while(--_0x1f6bb5){_0x505732['push'](_0x505732['shift']());}};_0x5881aa(++_0x22ab30);}(a56_0x22ab,0x136));const a56_0x5881=function(_0x505732,_0x22ab30){_0x505732=_0x505732-0x0;let _0x5881aa=a56_0x22ab[_0x505732];return _0x5881aa;};const _0x323222=a56_0x5881;'use strict';const attributes=require(_0x323222('0x2'));module[_0x323222('0x3')]=function(_0x1f6bb5){const _0x582ec3=_0x323222,_0x14dcc4=_0x1f6bb5['define']('ChatApplication',attributes,{'tableName':_0x582ec3('0x0'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':'utf8mb4','collate':_0x582ec3('0x1')});return _0x14dcc4;}; \ No newline at end of file +const a68_0x5467=['init','exports','./chatApplication.options','function','sequelize','ChatApplication'];(function(_0x452049,_0x58380d){const _0x546753=function(_0x5bc5cf){while(--_0x5bc5cf){_0x452049['push'](_0x452049['shift']());}};_0x546753(++_0x58380d);}(a68_0x5467,0xe3));const a68_0x5bc5=function(_0x452049,_0x58380d){_0x452049=_0x452049-0x14c;let _0x546753=a68_0x5467[_0x452049];return _0x546753;};const a68_0x3744c1=a68_0x5bc5;'use strict';const {Model}=require(a68_0x3744c1(0x151)),{attributes}=require('./chatApplication.attributes'),{options}=require(a68_0x3744c1(0x14f));class ChatApplication extends Model{}function init(_0x41e7f,_0x41ccd6){const _0x2e4b10=a68_0x3744c1,_0x2c3182=options(_0x41e7f),_0xec8ad9=typeof _0x41ccd6===_0x2e4b10(0x150)?_0x41ccd6(_0x2c3182):_0x2c3182;return ChatApplication[_0x2e4b10(0x14d)](attributes,_0xec8ad9),ChatApplication;}module[a68_0x3744c1(0x14e)][a68_0x3744c1(0x14c)]=ChatApplication,module[a68_0x3744c1(0x14e)][a68_0x3744c1(0x14d)]=init; \ No newline at end of file diff --git a/server/api/chatApplication/chatApplication.options.js b/server/api/chatApplication/chatApplication.options.js new file mode 100644 index 0000000..6681dcd --- /dev/null +++ b/server/api/chatApplication/chatApplication.options.js @@ -0,0 +1 @@ +var a69_0x3a21=['options','exports','utf8mb4_unicode_ci'];(function(_0x4a878c,_0x239ff8){var _0x3a216f=function(_0x573488){while(--_0x573488){_0x4a878c['push'](_0x4a878c['shift']());}};_0x3a216f(++_0x239ff8);}(a69_0x3a21,0xfc));var a69_0x5734=function(_0x4a878c,_0x239ff8){_0x4a878c=_0x4a878c-0x178;var _0x3a216f=a69_0x3a21[_0x4a878c];return _0x3a216f;};var a69_0xda7619=a69_0x5734;function options(_0x59f9a6){var _0x7aaea9=a69_0x5734;return{'sequelize':_0x59f9a6,'tableName':'chat_applications','paranoid':![],'indexes':[],'timestamps':!![],'charset':'utf8mb4','collate':_0x7aaea9(0x17a)};}module[a69_0xda7619(0x179)][a69_0xda7619(0x178)]=options; \ No newline at end of file diff --git a/server/api/chatApplication/index.js b/server/api/chatApplication/index.js index f42aed1..3f42b73 100644 --- a/server/api/chatApplication/index.js +++ b/server/api/chatApplication/index.js @@ -1 +1 @@ -const a57_0x2e91=['./chatApplication.controller','/:id','update','../../components/auth/service','get','isAuthenticated','put','exports','delete'];(function(_0x24cb96,_0x2e91a0){const _0xeace06=function(_0x4dd2c6){while(--_0x4dd2c6){_0x24cb96['push'](_0x24cb96['shift']());}};_0xeace06(++_0x2e91a0);}(a57_0x2e91,0x1b9));const a57_0xeace=function(_0x24cb96,_0x2e91a0){_0x24cb96=_0x24cb96-0x0;let _0xeace06=a57_0x2e91[_0x24cb96];return _0xeace06;};const _0x499b99=a57_0xeace;'use strict';const express=require('express'),router=express['Router'](),auth=require(_0x499b99('0x3')),controller=require(_0x499b99('0x0'));router[_0x499b99('0x4')]('/:id',auth[_0x499b99('0x5')](),controller['show']),router[_0x499b99('0x6')]('/:id',auth[_0x499b99('0x5')](),controller[_0x499b99('0x2')]),router[_0x499b99('0x8')](_0x499b99('0x1'),auth['isAuthenticated'](),controller['destroy']),module[_0x499b99('0x7')]=router; \ No newline at end of file +const a70_0x1c12=['/:id','../../components/auth/service','put','get','show','isAuthenticated','delete','update','Router'];(function(_0x56581c,_0x2dbd1b){const _0x1c124b=function(_0x4ccb75){while(--_0x4ccb75){_0x56581c['push'](_0x56581c['shift']());}};_0x1c124b(++_0x2dbd1b);}(a70_0x1c12,0x12d));const a70_0x4ccb=function(_0x56581c,_0x2dbd1b){_0x56581c=_0x56581c-0xbb;let _0x1c124b=a70_0x1c12[_0x56581c];return _0x1c124b;};const a70_0x228131=a70_0x4ccb;'use strict';const express=require('express'),router=express[a70_0x228131(0xbf)](),auth=require(a70_0x228131(0xc1)),controller=require('./chatApplication.controller');router[a70_0x228131(0xc3)](a70_0x228131(0xc0),auth[a70_0x228131(0xbc)](),controller[a70_0x228131(0xbb)]),router[a70_0x228131(0xc2)](a70_0x228131(0xc0),auth[a70_0x228131(0xbc)](),controller[a70_0x228131(0xbe)]),router[a70_0x228131(0xbd)]('/:id',auth[a70_0x228131(0xbc)](),controller['destroy']),module['exports']=router; \ No newline at end of file diff --git a/server/api/chatGroup/chatGroup.attributes.js b/server/api/chatGroup/chatGroup.attributes.js index b1924c6..a1dbdce 100644 --- a/server/api/chatGroup/chatGroup.attributes.js +++ b/server/api/chatGroup/chatGroup.attributes.js @@ -1 +1 @@ -const a58_0x1e7b=['STRING'];(function(_0x1fca7c,_0x1e7b2b){const _0x22c0ad=function(_0x526b52){while(--_0x526b52){_0x1fca7c['push'](_0x1fca7c['shift']());}};_0x22c0ad(++_0x1e7b2b);}(a58_0x1e7b,0x1c8));const a58_0x22c0=function(_0x1fca7c,_0x1e7b2b){_0x1fca7c=_0x1fca7c-0x0;let _0x22c0ad=a58_0x1e7b[_0x1fca7c];return _0x22c0ad;};const _0x412988=a58_0x22c0;'use strict';const Sequelize=require('sequelize');module['exports']={'name':{'type':Sequelize[_0x412988('0x0')],'allowNull':![]},'description':{'type':Sequelize[_0x412988('0x0')]},'write':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]}}; \ No newline at end of file +const a71_0x4ab6=['STRING','BOOLEAN'];(function(_0x272b59,_0x21cc58){const _0x4ab65e=function(_0x5812cf){while(--_0x5812cf){_0x272b59['push'](_0x272b59['shift']());}};_0x4ab65e(++_0x21cc58);}(a71_0x4ab6,0x112));const a71_0x5812=function(_0x272b59,_0x21cc58){_0x272b59=_0x272b59-0xf8;let _0x4ab65e=a71_0x4ab6[_0x272b59];return _0x4ab65e;};const a71_0x56bb6a=a71_0x5812;'use strict';const {DataTypes}=require('sequelize'),attributes={'name':{'type':DataTypes[a71_0x56bb6a(0xf8)],'allowNull':![]},'description':{'type':DataTypes['STRING']},'write':{'type':DataTypes[a71_0x56bb6a(0xf9)],'defaultValue':!![]}};module['exports']['attributes']=attributes; \ No newline at end of file diff --git a/server/api/chatGroup/chatGroup.controller.js b/server/api/chatGroup/chatGroup.controller.js index 4652305..7c558a3 100644 --- a/server/api/chatGroup/chatGroup.controller.js +++ b/server/api/chatGroup/chatGroup.controller.js @@ -1 +1 @@ -const a59_0x23e8=['../../components/parsers/qs','ChatGroup','set','model','update','end','$gte','params','body','intersection','destroy','describe','split','key','../../rediscache','addMessage','count','gte','filter','name','getMessages','YYYY-MM-DD\x20HH:mm:ss','limit','omit','options','error','include','removeMembers','Content-Range','findAll','sendStatus','map','undefined','create','sort','stack','../../config/logger','rawAttributes','then','ChatInternalMessage','attributes','api','User','where','query','filters','type','rows','json','merge','fields','includeAll','status','offset','ids','pick','moment','nolimit','user','send','order','catch','lodash','like','format','addMembers','getMembers','length','findOne','keys'];(function(_0x5912d7,_0x23e88e){const _0x2508f4=function(_0x136d56){while(--_0x136d56){_0x5912d7['push'](_0x5912d7['shift']());}};_0x2508f4(++_0x23e88e);}(a59_0x23e8,0x7f));const a59_0x2508=function(_0x5912d7,_0x23e88e){_0x5912d7=_0x5912d7-0x0;let _0x2508f4=a59_0x23e8[_0x5912d7];return _0x2508f4;};const _0x398daa=a59_0x2508;'use strict';const moment=require(_0x398daa('0x45')),_=require(_0x398daa('0x5')),{getSocket}=require(_0x398daa('0x1b')),qs=require(_0x398daa('0xd')),logger=require(_0x398daa('0x31'))(_0x398daa('0x36')),db=require('../../mysqldb')['db'],{Op}=require('sequelize'),socket=getSocket();require('./chatGroup.socket')['register'](socket);function respondWithStatusCode(_0x136d56,_0x18ae36){return _0x18ae36=_0x18ae36||0xcc,function(_0x5ba511){const _0x2b3af9=a59_0x2508;if(_0x5ba511)return _0x136d56[_0x2b3af9('0x2b')](_0x18ae36);return _0x136d56['status'](_0x18ae36)[_0x2b3af9('0x12')]();};}function respondWithResult(_0x3c0e0b,_0x412713){return _0x412713=_0x412713||0xc8,function(_0x365ac1){const _0x5d18a0=a59_0x2508;if(_0x365ac1)return _0x3c0e0b[_0x5d18a0('0x41')](_0x412713)[_0x5d18a0('0x3d')](_0x365ac1);};}function respondWithFilteredResult(_0x50374c,_0x1a5009){return function(_0x145856){const _0x167ff3=a59_0x2508;if(_0x145856){const _0x16ffe1=_0x145856[_0x167ff3('0x1d')],_0x29e252=_0x1a5009[_0x167ff3('0x42')];let _0x4fd4e8=_0x1a5009[_0x167ff3('0x42')]+_0x1a5009[_0x167ff3('0x23')],_0x275301;return _0x4fd4e8>=_0x16ffe1?(_0x4fd4e8=_0x16ffe1,_0x275301=0xc8):_0x275301=0xce,_0x50374c[_0x167ff3('0x41')](_0x275301),_0x50374c[_0x167ff3('0xf')](_0x167ff3('0x29'),_0x29e252+'-'+_0x4fd4e8+'/'+_0x16ffe1)['json'](_0x145856);}return null;};}function saveUpdates(_0x84d74d){return function(_0x46012d){const _0xf0f591=a59_0x2508;if(_0x46012d)return _0x46012d[_0xf0f591('0x11')](_0x84d74d)['then'](function(_0xaabc9){return _0xaabc9;});return null;};}function removeEntity(_0xd2a2bb){return function(_0x4babcc){const _0x4e714c=a59_0x2508;if(_0x4babcc)return _0x4babcc[_0x4e714c('0x17')]()[_0x4e714c('0x33')](function(){const _0x4be188=_0x4e714c;_0xd2a2bb['status'](0xcc)[_0x4be188('0x12')]();});};}function handleEntityNotFound(_0xdc5c02){return function(_0x4b9204){const _0x5a3a69=a59_0x2508;return!_0x4b9204&&_0xdc5c02[_0x5a3a69('0x2b')](0x194),_0x4b9204;};}function handleError(_0x4afc0a,_0x3149f6){return _0x3149f6=_0x3149f6||0x1f4,function(_0x1d70f9){const _0x2ae910=a59_0x2508;logger[_0x2ae910('0x26')](_0x1d70f9[_0x2ae910('0x30')]),_0x1d70f9[_0x2ae910('0x20')]&&delete _0x1d70f9['name'],_0x4afc0a[_0x2ae910('0x41')](_0x3149f6)[_0x2ae910('0x2')](_0x1d70f9);};}exports['index']=function(_0x2b5521,_0x4a88af){const _0x411432=_0x398daa;let _0x4a51f6={};const _0x39206b={},_0x339580={'count':0x0,'rows':[]},_0x896d65=_['map'](db['ChatGroup']['rawAttributes'],function(_0x11de55){const _0x4106a9=a59_0x2508;return{'name':_0x11de55['fieldName'],'type':_0x11de55[_0x4106a9('0x3b')][_0x4106a9('0x1a')]};});_0x39206b['model']=_[_0x411432('0x2c')](_0x896d65,_0x411432('0x20')),_0x39206b[_0x411432('0x39')]=_[_0x411432('0xc')](_0x2b5521[_0x411432('0x39')]),_0x39206b[_0x411432('0x3a')]=_[_0x411432('0x16')](_0x39206b['model'],_0x39206b[_0x411432('0x39')]),_0x4a51f6[_0x411432('0x35')]=_['intersection'](_0x39206b[_0x411432('0x10')],qs[_0x411432('0x3f')](_0x2b5521['query']['fields'])),_0x4a51f6['attributes']=_0x4a51f6[_0x411432('0x35')][_0x411432('0xa')]?_0x4a51f6['attributes']:_0x39206b['model'];typeof _0x2b5521[_0x411432('0x39')][_0x411432('0x0')]==='undefined'&&(_0x4a51f6['limit']=qs[_0x411432('0x23')](_0x2b5521[_0x411432('0x39')][_0x411432('0x23')]),_0x4a51f6[_0x411432('0x42')]=qs[_0x411432('0x42')](_0x2b5521[_0x411432('0x39')]['offset']));_0x4a51f6[_0x411432('0x3')]=qs[_0x411432('0x2f')](_0x2b5521['query'][_0x411432('0x2f')]),_0x4a51f6[_0x411432('0x38')]=qs[_0x411432('0x3a')](_[_0x411432('0x44')](_0x2b5521['query'],_0x39206b[_0x411432('0x3a')]),_0x896d65);_0x2b5521['query'][_0x411432('0x1f')]&&(_0x4a51f6['where']=_[_0x411432('0x3e')](_0x4a51f6[_0x411432('0x38')],{[Op['or']]:_['map'](_0x896d65,function(_0x4678b0){const _0x12b900=_0x411432;if(_0x4678b0['type']!=='VIRTUAL'){const _0x4d40a0={};return _0x4d40a0[_0x4678b0[_0x12b900('0x20')]]={[Op[_0x12b900('0x6')]]:'%'+_0x2b5521['query']['filter']+'%'},_0x4d40a0;}})}));_0x4a51f6=_['merge']({},_0x4a51f6,_0x2b5521[_0x411432('0x25')]);const _0x378cd3={'where':_0x4a51f6[_0x411432('0x38')]};return db['ChatGroup'][_0x411432('0x1d')](_0x378cd3)[_0x411432('0x33')](function(_0x49d36c){const _0x245d0c=_0x411432;return _0x339580[_0x245d0c('0x1d')]=_0x49d36c,_0x2b5521[_0x245d0c('0x39')][_0x245d0c('0x40')]&&(_0x4a51f6[_0x245d0c('0x27')]=[{'all':!![]}]),db[_0x245d0c('0xe')][_0x245d0c('0x2a')](_0x4a51f6);})[_0x411432('0x33')](function(_0x496852){const _0x2f36f5=_0x411432;return _0x339580[_0x2f36f5('0x3c')]=_0x496852,_0x339580;})[_0x411432('0x33')](respondWithFilteredResult(_0x4a88af,_0x4a51f6))[_0x411432('0x4')](handleError(_0x4a88af,null));},exports['show']=function(_0x13a0f1,_0x33b795){const _0x4d4edf=_0x398daa;let _0x4e712b={'raw':!![],'where':{'id':_0x13a0f1[_0x4d4edf('0x14')]['id']}};const _0x1a5b07={};return _0x1a5b07[_0x4d4edf('0x10')]=_['keys'](db[_0x4d4edf('0xe')][_0x4d4edf('0x32')]),_0x1a5b07['query']=_['keys'](_0x13a0f1[_0x4d4edf('0x39')]),_0x1a5b07[_0x4d4edf('0x3a')]=_[_0x4d4edf('0x16')](_0x1a5b07[_0x4d4edf('0x10')],_0x1a5b07['query']),_0x4e712b[_0x4d4edf('0x35')]=_['intersection'](_0x1a5b07['model'],qs[_0x4d4edf('0x3f')](_0x13a0f1[_0x4d4edf('0x39')][_0x4d4edf('0x3f')])),_0x4e712b[_0x4d4edf('0x35')]=_0x4e712b[_0x4d4edf('0x35')]['length']?_0x4e712b[_0x4d4edf('0x35')]:_0x1a5b07[_0x4d4edf('0x10')],_0x13a0f1['query'][_0x4d4edf('0x40')]&&(_0x4e712b['include']=[{'all':!![]}]),_0x4e712b=_[_0x4d4edf('0x3e')]({},_0x4e712b,_0x13a0f1[_0x4d4edf('0x25')]),db[_0x4d4edf('0xe')][_0x4d4edf('0xb')](_0x4e712b)[_0x4d4edf('0x33')](handleEntityNotFound(_0x33b795,null))[_0x4d4edf('0x33')](respondWithResult(_0x33b795,null))['catch'](handleError(_0x33b795,null));},exports['create']=function(_0x47331e,_0x1ba248){const _0x4df120=_0x398daa;return db[_0x4df120('0xe')][_0x4df120('0x2e')](_0x47331e[_0x4df120('0x15')],{})[_0x4df120('0x33')](respondWithResult(_0x1ba248,0xc9))['catch'](handleError(_0x1ba248,null));},exports['update']=function(_0x362cd9,_0x516aa8){const _0x225eff=_0x398daa;return _0x362cd9[_0x225eff('0x15')]['id']&&delete _0x362cd9[_0x225eff('0x15')]['id'],db[_0x225eff('0xe')][_0x225eff('0xb')]({'where':{'id':_0x362cd9[_0x225eff('0x14')]['id']}})[_0x225eff('0x33')](handleEntityNotFound(_0x516aa8,null))[_0x225eff('0x33')](saveUpdates(_0x362cd9['body'],null))[_0x225eff('0x33')](respondWithResult(_0x516aa8,null))[_0x225eff('0x4')](handleError(_0x516aa8,null));},exports[_0x398daa('0x17')]=function(_0x245baf,_0x4df420){const _0x3ac5c6=_0x398daa;return db[_0x3ac5c6('0xe')]['findOne']({'where':{'id':_0x245baf[_0x3ac5c6('0x14')]['id']}})[_0x3ac5c6('0x33')](handleEntityNotFound(_0x4df420,null))['then'](removeEntity(_0x4df420,null))[_0x3ac5c6('0x4')](handleError(_0x4df420,null));},exports[_0x398daa('0x18')]=function(_0x36dced,_0x3f002e){const _0x2df4e9=_0x398daa;return db[_0x2df4e9('0xe')][_0x2df4e9('0x18')]()[_0x2df4e9('0x33')](respondWithResult(_0x3f002e,null))[_0x2df4e9('0x4')](handleError(_0x3f002e,null));},exports['getUnread']=function(_0x79a51e,_0x4fe71c){const _0x4535c5=_0x398daa;return db[_0x4535c5('0x34')]['count']({'where':{'ChatGroupId':_0x79a51e[_0x4535c5('0x14')]['id'],'ToId':_0x79a51e[_0x4535c5('0x1')]['id'],'read':![]}})[_0x4535c5('0x33')](function(_0xbb3a16){const _0x23875d=_0x4535c5;return{'id':_['toInteger'](_0x79a51e[_0x23875d('0x14')]['id']),'count':_0xbb3a16};})[_0x4535c5('0x33')](respondWithResult(_0x4fe71c,null))[_0x4535c5('0x4')](handleError(_0x4fe71c,null));},exports[_0x398daa('0x8')]=function(_0x342a0b,_0x5d5267){const _0x4723c5=_0x398daa;return db[_0x4723c5('0xe')][_0x4723c5('0xb')]({'where':{'id':_0x342a0b['params']['id']}})[_0x4723c5('0x33')](function(_0x88d102){const _0x2c7c26=_0x4723c5;if(_0x88d102)return _0x88d102[_0x2c7c26('0x8')](_0x342a0b[_0x2c7c26('0x15')][_0x2c7c26('0x43')],{'through':_[_0x2c7c26('0x24')](_0x342a0b[_0x2c7c26('0x15')],[_0x2c7c26('0x43'),'id'])});})[_0x4723c5('0x33')](respondWithResult(_0x5d5267,null))[_0x4723c5('0x4')](handleError(_0x5d5267,null));},exports[_0x398daa('0x9')]=function(_0xd45d62,_0x7d4d79){const _0x5febce=_0x398daa;let _0x2cb208={};const _0x46bc98={};let _0x2814c8,_0x13bcc4;return db[_0x5febce('0xe')][_0x5febce('0xb')]({'where':{'id':_0xd45d62[_0x5febce('0x14')]['id']}})[_0x5febce('0x33')](handleEntityNotFound(_0x7d4d79,null))[_0x5febce('0x33')](function(_0x224819){const _0x15b74b=_0x5febce;if(_0x224819)return _0x2814c8=_0x224819,_0x46bc98[_0x15b74b('0x10')]=_[_0x15b74b('0xc')](db[_0x15b74b('0x37')][_0x15b74b('0x32')]),_0x46bc98['query']=_[_0x15b74b('0xc')](_0xd45d62['query']),_0x46bc98[_0x15b74b('0x3a')]=_[_0x15b74b('0x16')](_0x46bc98['model'],_0x46bc98['query']),_0x2cb208[_0x15b74b('0x35')]=_['intersection'](_0x46bc98['model'],qs['fields'](_0xd45d62['query'][_0x15b74b('0x3f')])),_0x2cb208['attributes']=_0x2cb208[_0x15b74b('0x35')][_0x15b74b('0xa')]?_0x2cb208[_0x15b74b('0x35')]:_0x46bc98[_0x15b74b('0x10')],_0x2cb208[_0x15b74b('0x3')]=qs[_0x15b74b('0x2f')](_0xd45d62[_0x15b74b('0x39')][_0x15b74b('0x2f')]),_0x2cb208[_0x15b74b('0x38')]=qs[_0x15b74b('0x3a')](_[_0x15b74b('0x44')](_0xd45d62[_0x15b74b('0x39')],_0x46bc98[_0x15b74b('0x3a')])),_0xd45d62[_0x15b74b('0x39')][_0x15b74b('0x1f')]&&(_0x2cb208[_0x15b74b('0x38')]=_['merge'](_0x2cb208['where'],{[Op['or']]:_[_0x15b74b('0x2c')](_0x2cb208[_0x15b74b('0x35')],function(_0x274b16){const _0x31600b=_0x15b74b,_0x4d1414={};return _0x4d1414[_0x274b16]={[Op[_0x31600b('0x6')]]:'%'+_0xd45d62[_0x31600b('0x39')][_0x31600b('0x1f')]+'%'},_0x4d1414;})})),_0x2cb208=_[_0x15b74b('0x3e')]({},_0x2cb208,_0xd45d62[_0x15b74b('0x25')]),_0x2814c8[_0x15b74b('0x9')](_0x2cb208);})[_0x5febce('0x33')](function(_0x219f16){const _0x2a95c7=_0x5febce;if(_0x219f16)return _0x13bcc4=_0x219f16[_0x2a95c7('0xa')],typeof _0xd45d62[_0x2a95c7('0x39')][_0x2a95c7('0x0')]===_0x2a95c7('0x2d')&&(_0x2cb208[_0x2a95c7('0x23')]=qs[_0x2a95c7('0x23')](_0xd45d62['query']['limit']),_0x2cb208[_0x2a95c7('0x42')]=qs[_0x2a95c7('0x42')](_0xd45d62[_0x2a95c7('0x39')]['offset'])),_0x2814c8[_0x2a95c7('0x9')](_0x2cb208);})[_0x5febce('0x33')](function(_0x5d5c7a){if(_0x5d5c7a)return _0x5d5c7a?{'count':_0x13bcc4,'rows':_0x5d5c7a}:null;})['then'](respondWithResult(_0x7d4d79,null))[_0x5febce('0x4')](handleError(_0x7d4d79,null));},exports['removeMembers']=function(_0x2b3b03,_0x2d4f2b){const _0x349b4c=_0x398daa;return db[_0x349b4c('0xe')]['findOne']({'where':{'id':_0x2b3b03[_0x349b4c('0x14')]['id']}})[_0x349b4c('0x33')](handleEntityNotFound(_0x2d4f2b,null))[_0x349b4c('0x33')](function(_0x37003c){const _0x28fbbb=_0x349b4c;if(_0x37003c)return _0x37003c[_0x28fbbb('0x28')](_0x2b3b03[_0x28fbbb('0x39')][_0x28fbbb('0x43')]);})[_0x349b4c('0x33')](respondWithStatusCode(_0x2d4f2b,null))['catch'](handleError(_0x2d4f2b,null));},exports[_0x398daa('0x1c')]=function(_0x257cb3,_0x18bbe8){const _0x1bacf4=_0x398daa;return _0x257cb3['body']['id']&&delete _0x257cb3['body']['id'],db[_0x1bacf4('0xe')][_0x1bacf4('0xb')]({'where':{'id':_0x257cb3['params']['id']}})['then'](handleEntityNotFound(_0x18bbe8,null))[_0x1bacf4('0x33')](function(_0x1c5c4a){const _0x3d615a=_0x1bacf4;if(_0x1c5c4a)return _0x257cb3[_0x3d615a('0x15')]['ChatGroupId']=_0x1c5c4a['id'],db['ChatInternalMessage'][_0x3d615a('0x2e')](_0x257cb3[_0x3d615a('0x15')]);})['then'](respondWithResult(_0x18bbe8,null))[_0x1bacf4('0x4')](handleError(_0x18bbe8,null));},exports[_0x398daa('0x21')]=function(_0x49680e,_0x1d0dfa){const _0xa74c76=_0x398daa;let _0x1a621e={};const _0x52f549={};let _0x305dfd,_0x3b3603;return db[_0xa74c76('0xe')]['findOne']({'where':{'id':_0x49680e[_0xa74c76('0x14')]['id']}})['then'](handleEntityNotFound(_0x1d0dfa,null))[_0xa74c76('0x33')](function(_0xc55633){const _0xd719b4=_0xa74c76;if(_0xc55633){_0x305dfd=_0xc55633,_0x52f549[_0xd719b4('0x10')]=_[_0xd719b4('0xc')](db[_0xd719b4('0x34')][_0xd719b4('0x32')]),_0x52f549[_0xd719b4('0x39')]=_[_0xd719b4('0xc')](_0x49680e[_0xd719b4('0x39')]),_0x52f549['filters']=_[_0xd719b4('0x16')](_0x52f549[_0xd719b4('0x10')],_0x52f549[_0xd719b4('0x39')]),_0x1a621e['attributes']=_[_0xd719b4('0x16')](_0x52f549['model'],qs[_0xd719b4('0x3f')](_0x49680e[_0xd719b4('0x39')]['fields'])),_0x1a621e[_0xd719b4('0x35')]=_0x1a621e[_0xd719b4('0x35')][_0xd719b4('0xa')]?_0x1a621e[_0xd719b4('0x35')]:_0x52f549[_0xd719b4('0x10')],_0x1a621e['order']=qs[_0xd719b4('0x2f')](_0x49680e['query'][_0xd719b4('0x2f')]),_0x1a621e[_0xd719b4('0x38')]=qs['filters'](_['pick'](_0x49680e[_0xd719b4('0x39')],_0x52f549[_0xd719b4('0x3a')]));_0x49680e['query'][_0xd719b4('0x1f')]&&(_0x1a621e[_0xd719b4('0x38')]=_[_0xd719b4('0x3e')](_0x1a621e[_0xd719b4('0x38')],{[Op['or']]:_[_0xd719b4('0x2c')](_0x1a621e['attributes'],function(_0x56d4ab){const _0x1aa913=_0xd719b4,_0x593951={};return _0x593951[_0x56d4ab]={[Op[_0x1aa913('0x6')]]:'%'+_0x49680e[_0x1aa913('0x39')][_0x1aa913('0x1f')]+'%'},_0x593951;})}));if(_0x49680e[_0xd719b4('0x39')][_0xd719b4('0x13')]){const _0x59d158=_0x49680e[_0xd719b4('0x39')]['$gte'][_0xd719b4('0x19')](','),_0x271655={};_0x271655[_0x59d158[0x0]]={[Op[_0xd719b4('0x1e')]]:moment(_0x59d158[0x1])[_0xd719b4('0x7')](_0xd719b4('0x22'))},_0x1a621e[_0xd719b4('0x38')]=_[_0xd719b4('0x3e')](_0x1a621e[_0xd719b4('0x38')],_0x271655);}return _0x1a621e=_[_0xd719b4('0x3e')]({},_0x1a621e,_0x49680e[_0xd719b4('0x25')]),_0x305dfd[_0xd719b4('0x21')](_0x1a621e);}})['then'](function(_0x89164d){const _0xd3c0f3=_0xa74c76;if(_0x89164d)return _0x3b3603=_0x89164d[_0xd3c0f3('0xa')],typeof _0x49680e[_0xd3c0f3('0x39')][_0xd3c0f3('0x0')]===_0xd3c0f3('0x2d')&&(_0x1a621e[_0xd3c0f3('0x23')]=qs[_0xd3c0f3('0x23')](_0x49680e[_0xd3c0f3('0x39')]['limit']),_0x1a621e['offset']=qs[_0xd3c0f3('0x42')](_0x49680e[_0xd3c0f3('0x39')][_0xd3c0f3('0x42')])),_0x305dfd['getMessages'](_0x1a621e);})[_0xa74c76('0x33')](function(_0x2e5e9b){if(_0x2e5e9b)return _0x2e5e9b?{'count':_0x3b3603,'rows':_0x2e5e9b}:null;})[_0xa74c76('0x33')](respondWithResult(_0x1d0dfa,null))[_0xa74c76('0x4')](handleError(_0x1d0dfa,null));}; \ No newline at end of file +const a72_0x4477=['include','sendStatus','sequelize','../../rediscache','json','ids','params','sort','model','filter','destroy','merge','length','YYYY-MM-DD\x20HH:mm:ss','addMembers','addMessage','filters','map','register','options','ChatInternalMessage','findOne','lodash','pick','nolimit','../../mysqldb','./chatGroup.socket','omit','keys','format','type','Content-Range','getMessages','status','rows','catch','index','order','count','../../config/logger','update','create','moment','send','includeAll','then','removeMembers','fieldName','body','name','intersection','like','undefined','user','query','User','stack','fields','limit','set','where','describe','attributes','rawAttributes','getMembers','getUnread','end','VIRTUAL','$gte','offset','split','ChatGroup'];(function(_0x499cf5,_0x5536b7){const _0x44774b=function(_0x21f8e9){while(--_0x21f8e9){_0x499cf5['push'](_0x499cf5['shift']());}};_0x44774b(++_0x5536b7);}(a72_0x4477,0x1c2));const a72_0x21f8=function(_0x499cf5,_0x5536b7){_0x499cf5=_0x499cf5-0x92;let _0x44774b=a72_0x4477[_0x499cf5];return _0x44774b;};const a72_0x3c9899=a72_0x21f8;'use strict';const moment=require(a72_0x3c9899(0xaa)),_=require(a72_0x3c9899(0x96)),{getSocket}=require(a72_0x3c9899(0xcb)),qs=require('../../components/parsers/qs'),logger=require(a72_0x3c9899(0xa7))('api'),{db}=require(a72_0x3c9899(0x99)),{Op}=require(a72_0x3c9899(0xca)),socket=getSocket();require(a72_0x3c9899(0x9a))[a72_0x3c9899(0x92)](socket);function respondWithStatusCode(_0x2aadbd,_0x13c92a){return _0x13c92a=_0x13c92a||0xcc,function(_0x212ee6){const _0x450562=a72_0x21f8;if(_0x212ee6)return _0x2aadbd[_0x450562(0xc9)](_0x13c92a);return _0x2aadbd['status'](_0x13c92a)[_0x450562(0xc2)]();};}function respondWithResult(_0x55d548,_0x5425bc){return _0x5425bc=_0x5425bc||0xc8,function(_0x292de2){const _0x575060=a72_0x21f8;if(_0x292de2)return _0x55d548[_0x575060(0xa1)](_0x5425bc)[_0x575060(0xcc)](_0x292de2);};}function respondWithFilteredResult(_0x51e476,_0x24e793){return function(_0x73858){const _0x3f232d=a72_0x21f8;if(_0x73858){const _0x4b7b39=_0x73858[_0x3f232d(0xa6)],_0x37352d=_0x24e793['offset'];let _0x438ed7=_0x24e793[_0x3f232d(0xc5)]+_0x24e793['limit'],_0x3ef9f0;return _0x438ed7>=_0x4b7b39?(_0x438ed7=_0x4b7b39,_0x3ef9f0=0xc8):_0x3ef9f0=0xce,_0x51e476[_0x3f232d(0xa1)](_0x3ef9f0),_0x51e476[_0x3f232d(0xbb)](_0x3f232d(0x9f),_0x37352d+'-'+_0x438ed7+'/'+_0x4b7b39)[_0x3f232d(0xcc)](_0x73858);}return null;};}function saveUpdates(_0x24120f){return function(_0x5e98f5){const _0x53b1be=a72_0x21f8;if(_0x5e98f5)return _0x5e98f5[_0x53b1be(0xa8)](_0x24120f)[_0x53b1be(0xad)](function(_0x3490f4){return _0x3490f4;});return null;};}function removeEntity(_0x24b76a){return function(_0x59eb6a){const _0x5d6aef=a72_0x21f8;if(_0x59eb6a)return _0x59eb6a[_0x5d6aef(0xd2)]()[_0x5d6aef(0xad)](function(){const _0x5d2c83=_0x5d6aef;_0x24b76a[_0x5d2c83(0xa1)](0xcc)[_0x5d2c83(0xc2)]();});};}function handleEntityNotFound(_0x57fff8){return function(_0x51b888){const _0x4b9f07=a72_0x21f8;return!_0x51b888&&_0x57fff8[_0x4b9f07(0xc9)](0x194),_0x51b888;};}function handleError(_0x4aea33,_0x222b15){return _0x222b15=_0x222b15||0x1f4,function(_0x28dea8){const _0x971bd=a72_0x21f8;logger['error'](_0x28dea8[_0x971bd(0xb8)]),_0x28dea8[_0x971bd(0xb1)]&&delete _0x28dea8[_0x971bd(0xb1)],_0x4aea33[_0x971bd(0xa1)](_0x222b15)[_0x971bd(0xab)](_0x28dea8);};}exports[a72_0x3c9899(0xa4)]=function(_0x20f81e,_0x86798f){const _0x7c05f6=a72_0x3c9899;let _0x3d4df6={};const _0x50b932={},_0x182859={'count':0x0,'rows':[]},_0x509e17=_[_0x7c05f6(0xd9)](db[_0x7c05f6(0xc7)]['rawAttributes'],function(_0x3b2949){const _0x19e5ed=_0x7c05f6;return{'name':_0x3b2949[_0x19e5ed(0xaf)],'type':_0x3b2949[_0x19e5ed(0x9e)]['key']};});_0x50b932[_0x7c05f6(0xd0)]=_[_0x7c05f6(0xd9)](_0x509e17,_0x7c05f6(0xb1)),_0x50b932[_0x7c05f6(0xb6)]=_[_0x7c05f6(0x9c)](_0x20f81e['query']),_0x50b932[_0x7c05f6(0xd8)]=_[_0x7c05f6(0xb2)](_0x50b932[_0x7c05f6(0xd0)],_0x50b932[_0x7c05f6(0xb6)]),_0x3d4df6[_0x7c05f6(0xbe)]=_[_0x7c05f6(0xb2)](_0x50b932[_0x7c05f6(0xd0)],qs['fields'](_0x20f81e['query'][_0x7c05f6(0xb9)])),_0x3d4df6[_0x7c05f6(0xbe)]=_0x3d4df6[_0x7c05f6(0xbe)][_0x7c05f6(0xd4)]?_0x3d4df6[_0x7c05f6(0xbe)]:_0x50b932[_0x7c05f6(0xd0)];typeof _0x20f81e['query'][_0x7c05f6(0x98)]===_0x7c05f6(0xb4)&&(_0x3d4df6[_0x7c05f6(0xba)]=qs[_0x7c05f6(0xba)](_0x20f81e['query'][_0x7c05f6(0xba)]),_0x3d4df6[_0x7c05f6(0xc5)]=qs[_0x7c05f6(0xc5)](_0x20f81e[_0x7c05f6(0xb6)][_0x7c05f6(0xc5)]));_0x3d4df6[_0x7c05f6(0xa5)]=qs[_0x7c05f6(0xcf)](_0x20f81e['query'][_0x7c05f6(0xcf)]),_0x3d4df6[_0x7c05f6(0xbc)]=qs[_0x7c05f6(0xd8)](_[_0x7c05f6(0x97)](_0x20f81e[_0x7c05f6(0xb6)],_0x50b932[_0x7c05f6(0xd8)]),_0x509e17);_0x20f81e[_0x7c05f6(0xb6)]['filter']&&(_0x3d4df6['where']=_[_0x7c05f6(0xd3)](_0x3d4df6[_0x7c05f6(0xbc)],{[Op['or']]:_[_0x7c05f6(0xd9)](_0x509e17,function(_0xa51cd9){const _0x13e4c2=_0x7c05f6;if(_0xa51cd9[_0x13e4c2(0x9e)]!==_0x13e4c2(0xc3)){const _0x1a59a4={};return _0x1a59a4[_0xa51cd9['name']]={[Op[_0x13e4c2(0xb3)]]:'%'+_0x20f81e[_0x13e4c2(0xb6)][_0x13e4c2(0xd1)]+'%'},_0x1a59a4;}})}));_0x3d4df6=_['merge']({},_0x3d4df6,_0x20f81e[_0x7c05f6(0x93)]);const _0x632dec={'where':_0x3d4df6[_0x7c05f6(0xbc)]};return db[_0x7c05f6(0xc7)]['count'](_0x632dec)[_0x7c05f6(0xad)](function(_0x148b30){const _0x3b253e=_0x7c05f6;return _0x182859[_0x3b253e(0xa6)]=_0x148b30,_0x20f81e['query']['includeAll']&&(_0x3d4df6[_0x3b253e(0xc8)]=[{'all':!![]}]),db[_0x3b253e(0xc7)]['findAll'](_0x3d4df6);})['then'](function(_0xa2ab59){const _0x232970=_0x7c05f6;return _0x182859[_0x232970(0xa2)]=_0xa2ab59,_0x182859;})[_0x7c05f6(0xad)](respondWithFilteredResult(_0x86798f,_0x3d4df6))[_0x7c05f6(0xa3)](handleError(_0x86798f,null));},exports['show']=function(_0x5f3147,_0x22fec9){const _0x260595=a72_0x3c9899;let _0x5a5281={'raw':!![],'where':{'id':_0x5f3147['params']['id']}};const _0x5b44eb={};return _0x5b44eb[_0x260595(0xd0)]=_[_0x260595(0x9c)](db['ChatGroup'][_0x260595(0xbf)]),_0x5b44eb[_0x260595(0xb6)]=_[_0x260595(0x9c)](_0x5f3147[_0x260595(0xb6)]),_0x5b44eb['filters']=_[_0x260595(0xb2)](_0x5b44eb[_0x260595(0xd0)],_0x5b44eb[_0x260595(0xb6)]),_0x5a5281[_0x260595(0xbe)]=_[_0x260595(0xb2)](_0x5b44eb[_0x260595(0xd0)],qs[_0x260595(0xb9)](_0x5f3147[_0x260595(0xb6)][_0x260595(0xb9)])),_0x5a5281[_0x260595(0xbe)]=_0x5a5281['attributes'][_0x260595(0xd4)]?_0x5a5281[_0x260595(0xbe)]:_0x5b44eb[_0x260595(0xd0)],_0x5f3147[_0x260595(0xb6)][_0x260595(0xac)]&&(_0x5a5281[_0x260595(0xc8)]=[{'all':!![]}]),_0x5a5281=_[_0x260595(0xd3)]({},_0x5a5281,_0x5f3147[_0x260595(0x93)]),db[_0x260595(0xc7)]['findOne'](_0x5a5281)[_0x260595(0xad)](handleEntityNotFound(_0x22fec9,null))[_0x260595(0xad)](respondWithResult(_0x22fec9,null))[_0x260595(0xa3)](handleError(_0x22fec9,null));},exports[a72_0x3c9899(0xa9)]=function(_0x460afb,_0x1bad51){const _0x3150f2=a72_0x3c9899;return db[_0x3150f2(0xc7)][_0x3150f2(0xa9)](_0x460afb[_0x3150f2(0xb0)],{})['then'](respondWithResult(_0x1bad51,0xc9))['catch'](handleError(_0x1bad51,null));},exports[a72_0x3c9899(0xa8)]=function(_0x3491e0,_0x5e99cc){const _0x348b63=a72_0x3c9899;return _0x3491e0[_0x348b63(0xb0)]['id']&&delete _0x3491e0[_0x348b63(0xb0)]['id'],db[_0x348b63(0xc7)][_0x348b63(0x95)]({'where':{'id':_0x3491e0[_0x348b63(0xce)]['id']}})[_0x348b63(0xad)](handleEntityNotFound(_0x5e99cc,null))[_0x348b63(0xad)](saveUpdates(_0x3491e0['body'],null))[_0x348b63(0xad)](respondWithResult(_0x5e99cc,null))['catch'](handleError(_0x5e99cc,null));},exports['destroy']=function(_0x53fc08,_0x5a067d){const _0x39cd0e=a72_0x3c9899;return db[_0x39cd0e(0xc7)]['findOne']({'where':{'id':_0x53fc08['params']['id']}})[_0x39cd0e(0xad)](handleEntityNotFound(_0x5a067d,null))[_0x39cd0e(0xad)](removeEntity(_0x5a067d,null))[_0x39cd0e(0xa3)](handleError(_0x5a067d,null));},exports[a72_0x3c9899(0xbd)]=function(_0x586abb,_0x5328ca){const _0x35768b=a72_0x3c9899;return db[_0x35768b(0xc7)][_0x35768b(0xbd)]()[_0x35768b(0xad)](respondWithResult(_0x5328ca,null))['catch'](handleError(_0x5328ca,null));},exports[a72_0x3c9899(0xc1)]=function(_0x2e0031,_0x1fdb7f){const _0x5742ab=a72_0x3c9899;return db['ChatInternalMessage'][_0x5742ab(0xa6)]({'where':{'ChatGroupId':_0x2e0031['params']['id'],'ToId':_0x2e0031[_0x5742ab(0xb5)]['id'],'read':![]}})[_0x5742ab(0xad)](function(_0x5bfa18){const _0x5aa27f=_0x5742ab;return{'id':_['toInteger'](_0x2e0031[_0x5aa27f(0xce)]['id']),'count':_0x5bfa18};})['then'](respondWithResult(_0x1fdb7f,null))[_0x5742ab(0xa3)](handleError(_0x1fdb7f,null));},exports[a72_0x3c9899(0xd6)]=function(_0x2a7c6c,_0x2928e1){const _0x5eb832=a72_0x3c9899;return db[_0x5eb832(0xc7)][_0x5eb832(0x95)]({'where':{'id':_0x2a7c6c[_0x5eb832(0xce)]['id']}})[_0x5eb832(0xad)](function(_0x2de851){const _0x198eb6=_0x5eb832;if(_0x2de851)return _0x2de851[_0x198eb6(0xd6)](_0x2a7c6c[_0x198eb6(0xb0)][_0x198eb6(0xcd)],{'through':_[_0x198eb6(0x9b)](_0x2a7c6c['body'],['ids','id'])});})['then'](respondWithResult(_0x2928e1,null))[_0x5eb832(0xa3)](handleError(_0x2928e1,null));},exports['getMembers']=function(_0x4eb02d,_0x2c2998){const _0x53e306=a72_0x3c9899;let _0x145648={};const _0x108b4d={};let _0x9da844,_0xf9c758;return db[_0x53e306(0xc7)][_0x53e306(0x95)]({'where':{'id':_0x4eb02d[_0x53e306(0xce)]['id']}})[_0x53e306(0xad)](handleEntityNotFound(_0x2c2998,null))['then'](function(_0x417de8){const _0x574d5f=_0x53e306;if(_0x417de8)return _0x9da844=_0x417de8,_0x108b4d['model']=_[_0x574d5f(0x9c)](db[_0x574d5f(0xb7)][_0x574d5f(0xbf)]),_0x108b4d[_0x574d5f(0xb6)]=_[_0x574d5f(0x9c)](_0x4eb02d[_0x574d5f(0xb6)]),_0x108b4d['filters']=_[_0x574d5f(0xb2)](_0x108b4d[_0x574d5f(0xd0)],_0x108b4d[_0x574d5f(0xb6)]),_0x145648['attributes']=_[_0x574d5f(0xb2)](_0x108b4d[_0x574d5f(0xd0)],qs['fields'](_0x4eb02d[_0x574d5f(0xb6)][_0x574d5f(0xb9)])),_0x145648[_0x574d5f(0xbe)]=_0x145648['attributes'][_0x574d5f(0xd4)]?_0x145648['attributes']:_0x108b4d[_0x574d5f(0xd0)],_0x145648['order']=qs['sort'](_0x4eb02d[_0x574d5f(0xb6)][_0x574d5f(0xcf)]),_0x145648['where']=qs['filters'](_[_0x574d5f(0x97)](_0x4eb02d[_0x574d5f(0xb6)],_0x108b4d[_0x574d5f(0xd8)])),_0x4eb02d[_0x574d5f(0xb6)]['filter']&&(_0x145648[_0x574d5f(0xbc)]=_['merge'](_0x145648[_0x574d5f(0xbc)],{[Op['or']]:_[_0x574d5f(0xd9)](_0x145648[_0x574d5f(0xbe)],function(_0x486d5c){const _0x4166a8=_0x574d5f,_0x5af97e={};return _0x5af97e[_0x486d5c]={[Op[_0x4166a8(0xb3)]]:'%'+_0x4eb02d['query'][_0x4166a8(0xd1)]+'%'},_0x5af97e;})})),_0x145648=_[_0x574d5f(0xd3)]({},_0x145648,_0x4eb02d['options']),_0x9da844[_0x574d5f(0xc0)](_0x145648);})['then'](function(_0x565cf2){const _0x335430=_0x53e306;if(_0x565cf2)return _0xf9c758=_0x565cf2[_0x335430(0xd4)],typeof _0x4eb02d[_0x335430(0xb6)]['nolimit']===_0x335430(0xb4)&&(_0x145648[_0x335430(0xba)]=qs[_0x335430(0xba)](_0x4eb02d[_0x335430(0xb6)][_0x335430(0xba)]),_0x145648[_0x335430(0xc5)]=qs['offset'](_0x4eb02d['query'][_0x335430(0xc5)])),_0x9da844[_0x335430(0xc0)](_0x145648);})['then'](function(_0xf039a9){if(_0xf039a9)return _0xf039a9?{'count':_0xf9c758,'rows':_0xf039a9}:null;})['then'](respondWithResult(_0x2c2998,null))[_0x53e306(0xa3)](handleError(_0x2c2998,null));},exports[a72_0x3c9899(0xae)]=function(_0x51bcea,_0x49e1c8){const _0x53e95a=a72_0x3c9899;return db['ChatGroup'][_0x53e95a(0x95)]({'where':{'id':_0x51bcea[_0x53e95a(0xce)]['id']}})[_0x53e95a(0xad)](handleEntityNotFound(_0x49e1c8,null))['then'](function(_0x3afd06){const _0x49def6=_0x53e95a;if(_0x3afd06)return _0x3afd06[_0x49def6(0xae)](_0x51bcea['query'][_0x49def6(0xcd)]);})['then'](respondWithStatusCode(_0x49e1c8,null))[_0x53e95a(0xa3)](handleError(_0x49e1c8,null));},exports[a72_0x3c9899(0xd7)]=function(_0x1d9752,_0x1333f2){const _0xa12fb8=a72_0x3c9899;return _0x1d9752[_0xa12fb8(0xb0)]['id']&&delete _0x1d9752['body']['id'],db[_0xa12fb8(0xc7)]['findOne']({'where':{'id':_0x1d9752[_0xa12fb8(0xce)]['id']}})['then'](handleEntityNotFound(_0x1333f2,null))[_0xa12fb8(0xad)](function(_0x206c69){const _0x2fa079=_0xa12fb8;if(_0x206c69)return _0x1d9752[_0x2fa079(0xb0)]['ChatGroupId']=_0x206c69['id'],db[_0x2fa079(0x94)]['create'](_0x1d9752[_0x2fa079(0xb0)]);})[_0xa12fb8(0xad)](respondWithResult(_0x1333f2,null))[_0xa12fb8(0xa3)](handleError(_0x1333f2,null));},exports['getMessages']=function(_0x121eb9,_0x29e138){const _0x1c1720=a72_0x3c9899;let _0x1e5012={};const _0x4710f3={};let _0xbe136e,_0x1e3a23;return db[_0x1c1720(0xc7)]['findOne']({'where':{'id':_0x121eb9[_0x1c1720(0xce)]['id']}})[_0x1c1720(0xad)](handleEntityNotFound(_0x29e138,null))[_0x1c1720(0xad)](function(_0x31047c){const _0x571a96=_0x1c1720;if(_0x31047c){_0xbe136e=_0x31047c,_0x4710f3[_0x571a96(0xd0)]=_[_0x571a96(0x9c)](db[_0x571a96(0x94)][_0x571a96(0xbf)]),_0x4710f3[_0x571a96(0xb6)]=_[_0x571a96(0x9c)](_0x121eb9[_0x571a96(0xb6)]),_0x4710f3[_0x571a96(0xd8)]=_[_0x571a96(0xb2)](_0x4710f3[_0x571a96(0xd0)],_0x4710f3[_0x571a96(0xb6)]),_0x1e5012[_0x571a96(0xbe)]=_[_0x571a96(0xb2)](_0x4710f3['model'],qs['fields'](_0x121eb9[_0x571a96(0xb6)][_0x571a96(0xb9)])),_0x1e5012['attributes']=_0x1e5012[_0x571a96(0xbe)][_0x571a96(0xd4)]?_0x1e5012['attributes']:_0x4710f3[_0x571a96(0xd0)],_0x1e5012[_0x571a96(0xa5)]=qs[_0x571a96(0xcf)](_0x121eb9[_0x571a96(0xb6)][_0x571a96(0xcf)]),_0x1e5012[_0x571a96(0xbc)]=qs[_0x571a96(0xd8)](_['pick'](_0x121eb9[_0x571a96(0xb6)],_0x4710f3[_0x571a96(0xd8)]));_0x121eb9[_0x571a96(0xb6)][_0x571a96(0xd1)]&&(_0x1e5012[_0x571a96(0xbc)]=_[_0x571a96(0xd3)](_0x1e5012[_0x571a96(0xbc)],{[Op['or']]:_[_0x571a96(0xd9)](_0x1e5012[_0x571a96(0xbe)],function(_0x55024f){const _0x4b9fbd=_0x571a96,_0x33766d={};return _0x33766d[_0x55024f]={[Op[_0x4b9fbd(0xb3)]]:'%'+_0x121eb9[_0x4b9fbd(0xb6)][_0x4b9fbd(0xd1)]+'%'},_0x33766d;})}));if(_0x121eb9[_0x571a96(0xb6)][_0x571a96(0xc4)]){const _0xa2a3f7=_0x121eb9[_0x571a96(0xb6)]['$gte'][_0x571a96(0xc6)](','),_0x607719={};_0x607719[_0xa2a3f7[0x0]]={[Op['gte']]:moment(_0xa2a3f7[0x1])[_0x571a96(0x9d)](_0x571a96(0xd5))},_0x1e5012['where']=_[_0x571a96(0xd3)](_0x1e5012[_0x571a96(0xbc)],_0x607719);}return _0x1e5012=_[_0x571a96(0xd3)]({},_0x1e5012,_0x121eb9[_0x571a96(0x93)]),_0xbe136e['getMessages'](_0x1e5012);}})[_0x1c1720(0xad)](function(_0x57da29){const _0x130f7a=_0x1c1720;if(_0x57da29)return _0x1e3a23=_0x57da29[_0x130f7a(0xd4)],typeof _0x121eb9[_0x130f7a(0xb6)]['nolimit']===_0x130f7a(0xb4)&&(_0x1e5012[_0x130f7a(0xba)]=qs[_0x130f7a(0xba)](_0x121eb9[_0x130f7a(0xb6)][_0x130f7a(0xba)]),_0x1e5012[_0x130f7a(0xc5)]=qs[_0x130f7a(0xc5)](_0x121eb9[_0x130f7a(0xb6)][_0x130f7a(0xc5)])),_0xbe136e[_0x130f7a(0xa0)](_0x1e5012);})['then'](function(_0x549902){if(_0x549902)return _0x549902?{'count':_0x1e3a23,'rows':_0x549902}:null;})[_0x1c1720(0xad)](respondWithResult(_0x29e138,null))[_0x1c1720(0xa3)](handleError(_0x29e138,null));}; \ No newline at end of file diff --git a/server/api/chatGroup/chatGroup.events.js b/server/api/chatGroup/chatGroup.events.js index 0ba2d50..57ad8e9 100644 --- a/server/api/chatGroup/chatGroup.events.js +++ b/server/api/chatGroup/chatGroup.events.js @@ -1 +1 @@ -const a60_0x2e2f=['undefined','addHook','exports','update','setMaxListeners','../../mysqldb','save','emit'];(function(_0x1682ec,_0x2e2fc6){const _0x55c73c=function(_0x58b50a){while(--_0x58b50a){_0x1682ec['push'](_0x1682ec['shift']());}};_0x55c73c(++_0x2e2fc6);}(a60_0x2e2f,0xbd));const a60_0x55c7=function(_0x1682ec,_0x2e2fc6){_0x1682ec=_0x1682ec-0x0;let _0x55c73c=a60_0x2e2f[_0x1682ec];return _0x55c73c;};const _0x19fdec=a60_0x55c7;'use strict';const EventEmitter=require('events'),ChatGroup=require(_0x19fdec('0x0'))['db']['ChatGroup'],ChatGroupEvents=new EventEmitter();ChatGroupEvents[_0x19fdec('0x7')](0x0);const events={'afterCreate':_0x19fdec('0x1'),'afterUpdate':_0x19fdec('0x6'),'afterDestroy':'remove'};function emitEvent(_0x58b50a){return function(_0x6e3abd){const _0x1db07f=a60_0x55c7;ChatGroupEvents['emit'](_0x58b50a+':'+_0x6e3abd['id'],_0x6e3abd),ChatGroupEvents[_0x1db07f('0x2')](_0x58b50a,_0x6e3abd);};}for(const e in events){if(typeof events[e]!==_0x19fdec('0x3')){const event=events[e];ChatGroup[_0x19fdec('0x4')](e,emitEvent(event));}}module[_0x19fdec('0x5')]=ChatGroupEvents; \ No newline at end of file +const a73_0x5e73=['addHook','../../mysqldb','events','update','emit','remove','undefined','ChatGroup'];(function(_0x2ecdc1,_0x408ac0){const _0x5e7318=function(_0x38e301){while(--_0x38e301){_0x2ecdc1['push'](_0x2ecdc1['shift']());}};_0x5e7318(++_0x408ac0);}(a73_0x5e73,0x150));const a73_0x38e3=function(_0x2ecdc1,_0x408ac0){_0x2ecdc1=_0x2ecdc1-0x14f;let _0x5e7318=a73_0x5e73[_0x2ecdc1];return _0x5e7318;};const a73_0x5ddf24=a73_0x38e3;'use strict';const EventEmitter=require(a73_0x5ddf24(0x151)),ChatGroup=require(a73_0x5ddf24(0x150))['db'][a73_0x5ddf24(0x156)],ChatGroupEvents=new EventEmitter();ChatGroupEvents['setMaxListeners'](0x0);const events={'afterCreate':'save','afterUpdate':a73_0x5ddf24(0x152),'afterDestroy':a73_0x5ddf24(0x154)};function emitEvent(_0x3c4da1){return function(_0x3448e9){const _0x19f2cc=a73_0x38e3;ChatGroupEvents[_0x19f2cc(0x153)](_0x3c4da1+':'+_0x3448e9['id'],_0x3448e9),ChatGroupEvents[_0x19f2cc(0x153)](_0x3c4da1,_0x3448e9);};}for(const e in events){if(typeof events[e]!==a73_0x5ddf24(0x155)){const event=events[e];ChatGroup[a73_0x5ddf24(0x14f)](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 dbba9ce..968eeca 100644 --- a/server/api/chatGroup/chatGroup.model.js +++ b/server/api/chatGroup/chatGroup.model.js @@ -1 +1 @@ -const a61_0x5ca7=['define','./chatGroup.attributes','exports','ChatGroup','chat_groups'];(function(_0x58e0a1,_0x5ca7e8){const _0x1a3fa1=function(_0xcbc175){while(--_0xcbc175){_0x58e0a1['push'](_0x58e0a1['shift']());}};_0x1a3fa1(++_0x5ca7e8);}(a61_0x5ca7,0x18b));const a61_0x1a3f=function(_0x58e0a1,_0x5ca7e8){_0x58e0a1=_0x58e0a1-0x0;let _0x1a3fa1=a61_0x5ca7[_0x58e0a1];return _0x1a3fa1;};const _0x40a7e6=a61_0x1a3f;'use strict';const attributes=require(_0x40a7e6('0x1'));module[_0x40a7e6('0x2')]=function(_0xcbc175){const _0x55561f=_0x40a7e6,_0x3b2202=_0xcbc175[_0x55561f('0x0')](_0x55561f('0x3'),attributes,{'tableName':_0x55561f('0x4'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x3b2202;}; \ No newline at end of file +const a74_0x35d4=['sequelize','exports','./chatGroup.options','./chatGroup.attributes','ChatGroup','init'];(function(_0x5bc472,_0x584a5d){const _0x35d449=function(_0xdd3a34){while(--_0xdd3a34){_0x5bc472['push'](_0x5bc472['shift']());}};_0x35d449(++_0x584a5d);}(a74_0x35d4,0x64));const a74_0xdd3a=function(_0x5bc472,_0x584a5d){_0x5bc472=_0x5bc472-0xc3;let _0x35d449=a74_0x35d4[_0x5bc472];return _0x35d449;};const a74_0x4d7595=a74_0xdd3a;'use strict';const {Model}=require(a74_0x4d7595(0xc5)),{attributes}=require(a74_0x4d7595(0xc8)),{options}=require(a74_0x4d7595(0xc7));class ChatGroup extends Model{}function init(_0x539bb4,_0x44cc3c){const _0x36bea1=a74_0x4d7595,_0x4bd77f=options(_0x539bb4),_0x1ebb42=typeof _0x44cc3c==='function'?_0x44cc3c(_0x4bd77f):_0x4bd77f;return ChatGroup[_0x36bea1(0xc4)](attributes,_0x1ebb42),ChatGroup;}module[a74_0x4d7595(0xc6)][a74_0x4d7595(0xc3)]=ChatGroup,module[a74_0x4d7595(0xc6)][a74_0x4d7595(0xc4)]=init; \ No newline at end of file diff --git a/server/api/chatGroup/chatGroup.options.js b/server/api/chatGroup/chatGroup.options.js new file mode 100644 index 0000000..35005b3 --- /dev/null +++ b/server/api/chatGroup/chatGroup.options.js @@ -0,0 +1 @@ +var a75_0x9974=['exports','chat_groups'];(function(_0x1aa639,_0x4e5ed8){var _0x9974a9=function(_0x59c840){while(--_0x59c840){_0x1aa639['push'](_0x1aa639['shift']());}};_0x9974a9(++_0x4e5ed8);}(a75_0x9974,0xd1));var a75_0x59c8=function(_0x1aa639,_0x4e5ed8){_0x1aa639=_0x1aa639-0xa6;var _0x9974a9=a75_0x9974[_0x1aa639];return _0x9974a9;};var a75_0x5b680c=a75_0x59c8;function options(_0x8ce85b){var _0x75002f=a75_0x59c8;return{'sequelize':_0x8ce85b,'tableName':_0x75002f(0xa6),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a75_0x5b680c(0xa7)]['options']=options; \ No newline at end of file diff --git a/server/api/chatGroup/chatGroup.rpc.js b/server/api/chatGroup/chatGroup.rpc.js index 6e97dd0..d9df85c 100644 --- a/server/api/chatGroup/chatGroup.rpc.js +++ b/server/api/chatGroup/chatGroup.rpc.js @@ -1 +1 @@ -const a62_0x523a=['../../rediscache','register'];(function(_0x1cdb6e,_0x523a07){const _0x56c751=function(_0x10449f){while(--_0x10449f){_0x1cdb6e['push'](_0x1cdb6e['shift']());}};_0x56c751(++_0x523a07);}(a62_0x523a,0xa3));const a62_0x56c7=function(_0x1cdb6e,_0x523a07){_0x1cdb6e=_0x1cdb6e-0x0;let _0x56c751=a62_0x523a[_0x1cdb6e];return _0x56c751;};const _0x14dc2e=a62_0x56c7;'use strict';const {getSocket}=require(_0x14dc2e('0x1')),socket=getSocket();require('./chatGroup.socket')[_0x14dc2e('0x0')](socket); \ No newline at end of file +const a76_0x448b=['register','../../rediscache'];(function(_0x59f33d,_0x369bec){const _0x448b83=function(_0x311289){while(--_0x311289){_0x59f33d['push'](_0x59f33d['shift']());}};_0x448b83(++_0x369bec);}(a76_0x448b,0xb8));const a76_0x3112=function(_0x59f33d,_0x369bec){_0x59f33d=_0x59f33d-0x147;let _0x448b83=a76_0x448b[_0x59f33d];return _0x448b83;};const a76_0x535161=a76_0x3112;'use strict';const {getSocket}=require(a76_0x535161(0x148)),socket=getSocket();require('./chatGroup.socket')[a76_0x535161(0x147)](socket); \ No newline at end of file diff --git a/server/api/chatGroup/chatGroup.socket.js b/server/api/chatGroup/chatGroup.socket.js index 8632a50..23aff8b 100644 --- a/server/api/chatGroup/chatGroup.socket.js +++ b/server/api/chatGroup/chatGroup.socket.js @@ -1 +1 @@ -const a63_0x2b9d=['emit','update','chatGroup:','register','remove'];(function(_0x5f3a17,_0x2b9df4){const _0x465c14=function(_0x1c3fb6){while(--_0x1c3fb6){_0x5f3a17['push'](_0x5f3a17['shift']());}};_0x465c14(++_0x2b9df4);}(a63_0x2b9d,0x150));const a63_0x465c=function(_0x5f3a17,_0x2b9df4){_0x5f3a17=_0x5f3a17-0x0;let _0x465c14=a63_0x2b9d[_0x5f3a17];return _0x465c14;};const _0x4e8515=a63_0x465c;'use strict';const ChatGroupEvents=require('./chatGroup.events'),events=['save',_0x4e8515('0x3'),_0x4e8515('0x0')];function createListener(_0x1c3fb6,_0x4645d9){return function(_0x45d33f){const _0x8b2db8=a63_0x465c;_0x4645d9[_0x8b2db8('0x4')](_0x1c3fb6,_0x45d33f);};}exports[_0x4e8515('0x2')]=function(_0x29e6be){const _0x5313a9=_0x4e8515;for(let _0x4dfe8c=0x0,_0x2de92c=events['length'];_0x4dfe8c<_0x2de92c;_0x4dfe8c++){const _0x3c8d79=events[_0x4dfe8c],_0x4f7a1a=createListener(_0x5313a9('0x1')+_0x3c8d79,_0x29e6be);ChatGroupEvents['on'](_0x3c8d79,_0x4f7a1a);}}; \ No newline at end of file +const a77_0xc70e=['length','update','emit','register','chatGroup:','remove','save'];(function(_0x44a1e2,_0x24ec68){const _0xc70eff=function(_0x1b4d86){while(--_0x1b4d86){_0x44a1e2['push'](_0x44a1e2['shift']());}};_0xc70eff(++_0x24ec68);}(a77_0xc70e,0x1a6));const a77_0x1b4d=function(_0x44a1e2,_0x24ec68){_0x44a1e2=_0x44a1e2-0x1c3;let _0xc70eff=a77_0xc70e[_0x44a1e2];return _0xc70eff;};const a77_0x2a6cf9=a77_0x1b4d;'use strict';const ChatGroupEvents=require('./chatGroup.events'),events=[a77_0x2a6cf9(0x1c7),a77_0x2a6cf9(0x1c6),a77_0x2a6cf9(0x1c9)];function createListener(_0x3c5411,_0x42cb34){return function(_0x52e1b1){const _0x1b844c=a77_0x1b4d;_0x42cb34[_0x1b844c(0x1c3)](_0x3c5411,_0x52e1b1);};}exports[a77_0x2a6cf9(0x1c4)]=function(_0x3a2c73){const _0x4a6d88=a77_0x2a6cf9;for(let _0x20ab90=0x0,_0x19b362=events[_0x4a6d88(0x1c8)];_0x20ab90<_0x19b362;_0x20ab90++){const _0x3c6317=events[_0x20ab90],_0x483631=createListener(_0x4a6d88(0x1c5)+_0x3c6317,_0x3a2c73);ChatGroupEvents['on'](_0x3c6317,_0x483631);}}; \ No newline at end of file diff --git a/server/api/chatGroup/index.js b/server/api/chatGroup/index.js index 6ef27bd..395145f 100644 --- a/server/api/chatGroup/index.js +++ b/server/api/chatGroup/index.js @@ -1 +1 @@ -const a64_0xfa0e=['Router','addMembers','show','isAuthenticated','get','post','put','getMembers','./chatGroup.controller','removeMembers','destroy','delete','describe','update','/:id/messages','exports','/:id/unread','/:id/members','/:id','getUnread'];(function(_0x465f8e,_0xfa0e5){const _0x3261d2=function(_0x487b2f){while(--_0x487b2f){_0x465f8e['push'](_0x465f8e['shift']());}};_0x3261d2(++_0xfa0e5);}(a64_0xfa0e,0x122));const a64_0x3261=function(_0x465f8e,_0xfa0e5){_0x465f8e=_0x465f8e-0x0;let _0x3261d2=a64_0xfa0e[_0x465f8e];return _0x3261d2;};const _0x23e37d=a64_0x3261;'use strict';const express=require('express'),router=express[_0x23e37d('0xa')](),auth=require('../../components/auth/service'),controller=require(_0x23e37d('0x12'));router['get']('/',auth[_0x23e37d('0xd')](),controller['index']),router[_0x23e37d('0xe')]('/describe',auth[_0x23e37d('0xd')](),controller[_0x23e37d('0x2')]),router[_0x23e37d('0xe')](_0x23e37d('0x8'),auth[_0x23e37d('0xd')](),controller[_0x23e37d('0xc')]),router[_0x23e37d('0xe')](_0x23e37d('0x6'),auth['isAuthenticated'](),controller[_0x23e37d('0x9')]),router[_0x23e37d('0xe')]('/:id/members',auth[_0x23e37d('0xd')](),controller[_0x23e37d('0x11')]),router['get'](_0x23e37d('0x4'),auth[_0x23e37d('0xd')](),controller['getMessages']),router['post']('/',auth[_0x23e37d('0xd')](),controller['create']),router[_0x23e37d('0xf')](_0x23e37d('0x7'),auth[_0x23e37d('0xd')](),controller[_0x23e37d('0xb')]),router['post'](_0x23e37d('0x4'),auth[_0x23e37d('0xd')](),controller['addMessage']),router[_0x23e37d('0x10')](_0x23e37d('0x8'),auth['isAuthenticated'](),controller[_0x23e37d('0x3')]),router[_0x23e37d('0x1')](_0x23e37d('0x8'),auth['isAuthenticated'](),controller[_0x23e37d('0x0')]),router[_0x23e37d('0x1')]('/:id/members',auth[_0x23e37d('0xd')](),controller[_0x23e37d('0x13')]),module[_0x23e37d('0x5')]=router; \ No newline at end of file +const a78_0x35f3=['addMessage','post','update','destroy','Router','./chatGroup.controller','removeMembers','show','exports','/:id/messages','put','delete','get','isAuthenticated','describe','/:id/unread','express','/:id','getMembers','/:id/members','/describe','addMembers'];(function(_0x11171c,_0x10d154){const _0x35f305=function(_0x5cab64){while(--_0x5cab64){_0x11171c['push'](_0x11171c['shift']());}};_0x35f305(++_0x10d154);}(a78_0x35f3,0x1aa));const a78_0x5cab=function(_0x11171c,_0x10d154){_0x11171c=_0x11171c-0x1c7;let _0x35f305=a78_0x35f3[_0x11171c];return _0x35f305;};const a78_0x30a9cb=a78_0x5cab;'use strict';const express=require(a78_0x30a9cb(0x1cf)),router=express[a78_0x30a9cb(0x1d9)](),auth=require('../../components/auth/service'),controller=require(a78_0x30a9cb(0x1da));router[a78_0x30a9cb(0x1cb)]('/',auth[a78_0x30a9cb(0x1cc)](),controller['index']),router[a78_0x30a9cb(0x1cb)](a78_0x30a9cb(0x1d3),auth[a78_0x30a9cb(0x1cc)](),controller[a78_0x30a9cb(0x1cd)]),router['get'](a78_0x30a9cb(0x1d0),auth['isAuthenticated'](),controller[a78_0x30a9cb(0x1dc)]),router[a78_0x30a9cb(0x1cb)](a78_0x30a9cb(0x1ce),auth['isAuthenticated'](),controller['getUnread']),router[a78_0x30a9cb(0x1cb)](a78_0x30a9cb(0x1d2),auth[a78_0x30a9cb(0x1cc)](),controller[a78_0x30a9cb(0x1d1)]),router['get'](a78_0x30a9cb(0x1c8),auth[a78_0x30a9cb(0x1cc)](),controller['getMessages']),router[a78_0x30a9cb(0x1d6)]('/',auth[a78_0x30a9cb(0x1cc)](),controller['create']),router[a78_0x30a9cb(0x1d6)](a78_0x30a9cb(0x1d2),auth['isAuthenticated'](),controller[a78_0x30a9cb(0x1d4)]),router[a78_0x30a9cb(0x1d6)](a78_0x30a9cb(0x1c8),auth[a78_0x30a9cb(0x1cc)](),controller[a78_0x30a9cb(0x1d5)]),router[a78_0x30a9cb(0x1c9)](a78_0x30a9cb(0x1d0),auth[a78_0x30a9cb(0x1cc)](),controller[a78_0x30a9cb(0x1d7)]),router['delete'](a78_0x30a9cb(0x1d0),auth['isAuthenticated'](),controller[a78_0x30a9cb(0x1d8)]),router[a78_0x30a9cb(0x1ca)]('/:id/members',auth[a78_0x30a9cb(0x1cc)](),controller[a78_0x30a9cb(0x1db)]),module[a78_0x30a9cb(0x1c7)]=router; \ No newline at end of file diff --git a/server/api/chatInteraction/chatInteraction.attributes.js b/server/api/chatInteraction/chatInteraction.attributes.js index d89c09f..6558c9a 100644 --- a/server/api/chatInteraction/chatInteraction.attributes.js +++ b/server/api/chatInteraction/chatInteraction.attributes.js @@ -1 +1 @@ -const a65_0x39d5=['ENUM','exports','long','INTEGER','DATE','out','thumb','TEXT','star','STRING'];(function(_0x17ca36,_0x39d565){const _0x134c7f=function(_0x5b3c18){while(--_0x5b3c18){_0x17ca36['push'](_0x17ca36['shift']());}};_0x134c7f(++_0x39d565);}(a65_0x39d5,0x13e));const a65_0x134c=function(_0x17ca36,_0x39d565){_0x17ca36=_0x17ca36-0x0;let _0x134c7f=a65_0x39d5[_0x17ca36];return _0x134c7f;};const _0x34f57a=a65_0x134c;'use strict';const Sequelize=require('sequelize');module[_0x34f57a('0x3')]={'closed':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'ratingValue':{'type':Sequelize[_0x34f57a('0x5')]},'ratingType':{'type':Sequelize['ENUM'](_0x34f57a('0x0'),_0x34f57a('0x8')),'defaultValue':_0x34f57a('0x0')},'ratingMessage':{'type':Sequelize['TEXT']},'pathTranscript':{'type':Sequelize[_0x34f57a('0x9')]},'mailTranscript':{'type':Sequelize[_0x34f57a('0x1')],'validate':{'isEmail':!![]}},'closedAt':{'type':Sequelize[_0x34f57a('0x6')]},'disposition':{'type':Sequelize[_0x34f57a('0x1')]},'secondDisposition':{'type':Sequelize[_0x34f57a('0x1')]},'thirdDisposition':{'type':Sequelize[_0x34f57a('0x1')]},'note':{'type':Sequelize[_0x34f57a('0x1')]},'browserName':{'type':Sequelize[_0x34f57a('0x1')]},'browserVersion':{'type':Sequelize[_0x34f57a('0x1')]},'osName':{'type':Sequelize[_0x34f57a('0x1')]},'osVersion':{'type':Sequelize[_0x34f57a('0x1')]},'deviceModel':{'type':Sequelize['STRING']},'deviceVendor':{'type':Sequelize[_0x34f57a('0x1')]},'deviceType':{'type':Sequelize[_0x34f57a('0x1')]},'referer':{'type':Sequelize[_0x34f57a('0x9')]},'customerIp':{'type':Sequelize['STRING']},'formData':{'type':Sequelize['TEXT'](_0x34f57a('0x4'))},'read1stAt':{'type':Sequelize[_0x34f57a('0x6')]},'lastMsgAt':{'type':Sequelize[_0x34f57a('0x6')]},'lastMsgDirection':{'type':Sequelize[_0x34f57a('0x2')]('in',_0x34f57a('0x7')),'defaultValue':'in','allowNull':![]},'closeReason':{'type':Sequelize[_0x34f57a('0x1')]},'customerPort':{'type':Sequelize['STRING']},'vidaooSessionId':{'type':Sequelize['TEXT']}}; \ No newline at end of file +const a79_0x5f50=['attributes','exports','TEXT','ENUM','long','DATE','STRING','star','thumb','sequelize','out','INTEGER','BOOLEAN'];(function(_0x50ef24,_0x37791d){const _0x5f5024=function(_0x2b32b1){while(--_0x2b32b1){_0x50ef24['push'](_0x50ef24['shift']());}};_0x5f5024(++_0x37791d);}(a79_0x5f50,0xec));const a79_0x2b32=function(_0x50ef24,_0x37791d){_0x50ef24=_0x50ef24-0x186;let _0x5f5024=a79_0x5f50[_0x50ef24];return _0x5f5024;};const a79_0x4b7bd7=a79_0x2b32;'use strict';const {DataTypes}=require(a79_0x4b7bd7(0x18d)),attributes={'closed':{'type':DataTypes[a79_0x4b7bd7(0x190)],'defaultValue':![]},'ratingValue':{'type':DataTypes[a79_0x4b7bd7(0x18f)]},'ratingType':{'type':DataTypes[a79_0x4b7bd7(0x187)](a79_0x4b7bd7(0x18b),a79_0x4b7bd7(0x18c)),'defaultValue':a79_0x4b7bd7(0x18b)},'ratingMessage':{'type':DataTypes[a79_0x4b7bd7(0x186)]},'pathTranscript':{'type':DataTypes[a79_0x4b7bd7(0x186)]},'mailTranscript':{'type':DataTypes['STRING'],'validate':{'isEmail':!![]}},'closedAt':{'type':DataTypes[a79_0x4b7bd7(0x189)]},'disposition':{'type':DataTypes[a79_0x4b7bd7(0x18a)]},'secondDisposition':{'type':DataTypes[a79_0x4b7bd7(0x18a)]},'thirdDisposition':{'type':DataTypes['STRING']},'note':{'type':DataTypes[a79_0x4b7bd7(0x18a)]},'browserName':{'type':DataTypes[a79_0x4b7bd7(0x18a)]},'browserVersion':{'type':DataTypes[a79_0x4b7bd7(0x18a)]},'osName':{'type':DataTypes['STRING']},'osVersion':{'type':DataTypes[a79_0x4b7bd7(0x18a)]},'deviceModel':{'type':DataTypes[a79_0x4b7bd7(0x18a)]},'deviceVendor':{'type':DataTypes[a79_0x4b7bd7(0x18a)]},'deviceType':{'type':DataTypes[a79_0x4b7bd7(0x18a)]},'referer':{'type':DataTypes[a79_0x4b7bd7(0x186)]},'customerIp':{'type':DataTypes[a79_0x4b7bd7(0x18a)]},'formData':{'type':DataTypes[a79_0x4b7bd7(0x186)]({'length':a79_0x4b7bd7(0x188)})},'read1stAt':{'type':DataTypes[a79_0x4b7bd7(0x189)]},'lastMsgAt':{'type':DataTypes[a79_0x4b7bd7(0x189)]},'lastMsgDirection':{'type':DataTypes[a79_0x4b7bd7(0x187)]('in',a79_0x4b7bd7(0x18e)),'defaultValue':'in','allowNull':![]},'closeReason':{'type':DataTypes[a79_0x4b7bd7(0x18a)]},'customerPort':{'type':DataTypes['STRING']},'vidaooSessionId':{'type':DataTypes[a79_0x4b7bd7(0x186)]}};module[a79_0x4b7bd7(0x192)][a79_0x4b7bd7(0x191)]=attributes; \ No newline at end of file diff --git a/server/api/chatInteraction/chatInteraction.controller.js b/server/api/chatInteraction/chatInteraction.controller.js index 95d2676..fba9dc1 100644 --- a/server/api/chatInteraction/chatInteraction.controller.js +++ b/server/api/chatInteraction/chatInteraction.controller.js @@ -1 +1 @@ -const a66_0x435e=['expr','like','GROUP_CONCAT(DISTINCT\x20t.id)','Mail\x20Transcript','tmp','find','describe','destroy','code','$gte','model','push','closed','POST','rows','status','message','cm_contacts','tools_tags','email','port','c.phone','sqlOperator','sort','parse','a.key','i.ChatWebsiteId\x20IS\x20NOT\x20NULL','existsSync','t.id\x20IN\x20?','o.fullname','user','createdAt','secure','pick','sequelize','parseSearch','c.firstName\x20LIKE\x20?\x20OR\x20c.lastName\x20LIKE\x20?\x20OR\x20c.email\x20LIKE\x20?','replace','alias','addTags','i.id','error','unix','it.ChatInteractionId\x20=\x20i.id','send','findAll','browserName','ChatInteraction','Owner.internal','type','System','Account','sendMail','toFile','show','service','keyBy','end','c.firstName','having','union','debug','now','vidaooEscalation','./chatInteraction.socket','field','entity\x20not\x20found','all','ChatWebsite','originalname','user_has_chat_interactions','ChatInteractionId','fields','`unreadMessages`\x20=\x200','Contact.fax','journey','includeAgent','i.id\x20LIKE\x20?','info','Messages','ejs','index','SendMail','select','order','join','createVidaooSession','secret','name','c.fax','fullname','$substring','ids','unlinkSync','count','Owner.fullname','CmContact','from','filters','TagIds','Tag','renderFile','Account.key','attachments','SUM(me.read\x20=\x200\x20AND\x20me.direction\x20=\x20\x27in\x27)','transcript-%s.txt','`\x20>\x200','key','MATCH\x20(me.body)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','conditions','users','osName','body','Contact.firstName','website_alias','mkdirSync','file','register','disposition','unreadMessages','appendFileSync','\x20IS\x20NULL','sendStatus','zip-dir','abandon','o.internal','../../rediscache','getChatWebsites','emit','getFullTextValue','addMessage','../../config/logger','ChatMessage','DESC','limit','follow','[%s]\x20%s:\x20%s\x0a','removeTags','YYYY-MM-DD','a.mandatoryDisposition','Visitor','client','update','c.email','chat_interactions','json','CONCAT(c.firstName,\x20\x27\x20\x27,\x20c.lastName)\x20LIKE\x20?','customUpdate','lastName','setTags','$lte','agentAlias','attachmentDownload','\x20=\x20?','createReadStream','Unauthorized','customer','agentIdentifier','basename','request-promise-native','customerIp','split','`\x20=\x200','referer','operator','YYYY-MM-DD\x20HH:mm:ss','files/attachments/','close','%s%d','buildExpression','params','create','root','i.ChatWebsiteId\x20IS\x20NULL','Attachment','request','catch','getMessages','CONCAT(\x27,\x27,\x20`TagIds`,\x20\x27,\x27)\x20LIKE\x20?','MATCH\x20(c.firstName,\x20c.lastName,\x20c.phone,\x20c.mobile,\x20c.fax,\x20c.email)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','`unreadMessages`\x20>\x200','CONCAT_WS(\x27\x20\x27,\x20o.name,\x20o.fullname)\x20LIKE\x20?','t.id\x20=\x20it.TagId','Interaction\x20already\x20assigned','chatInteractionTags:save','http','map','firstName','download','length','rawAttributes','i.ChatWebsiteId\x20IN\x20?','path','mailTranscript','offset','where','some','%s\x20#%d','isEmpty','ChatWebsiteId','undefined','MM/DD/YYYY\x20HH:mm:ss','Unable\x20to\x20create\x20Vidaoo\x20session','query','null','filter','UserId','then','10px','moment','host','Owner','transcript-','stack','squel','html-pdf','N.A.','createWriteStream','Contact.mobile','Content-Range','files','tag','util','log','ContactId','abandonInteraction,\x20%s,\x20%s,\x20%s','text','\x22%s\x22\x20<%s>','https://api-vidaoo.xcally.com/api/v1/sessions','tail','includeAll','me.ChatInteractionId\x20=\x20i.id','customerPort','start','User','resolve','Smtp','include','30px','a.id\x20=\x20i.ChatWebsiteId','Contact','toString','server','MotionCWB:','read','Tags','set','options','chat_messages','intersection','c.lastName','ui.ChatInteractionId\x20IN\x20?','vidaooApiKey','left_join','u.fullname','findOne','server/files/chat/upload/','nolimit','../../config/environment','out','forEach','request\x20sent','ChatInteraction,\x20%s,\x20%s','format','../../components/parsers/qs','i.*','i.createdAt\x20BETWEEN\x20?\x20AND\x20?','api','keys','Chat','value','direction','compact','search','attributes','omit','getMyMessages','merge','filename','Error\x20in\x20Vidaoo\x20configuration','c.id\x20=\x20i.ContactId\x20AND\x20c.deletedAt\x20IS\x20NULL','err','../../components/parsers/advancedSearch','Users'];(function(_0x328d5b,_0x435e86){const _0x4c46e4=function(_0x50db44){while(--_0x50db44){_0x328d5b['push'](_0x328d5b['shift']());}};_0x4c46e4(++_0x435e86);}(a66_0x435e,0x154));const a66_0x4c46=function(_0x328d5b,_0x435e86){_0x328d5b=_0x328d5b-0x0;let _0x4c46e4=a66_0x435e[_0x328d5b];return _0x4c46e4;};const _0x3f6d1d=a66_0x4c46;'use strict';const pdf=require(_0x3f6d1d('0x9f')),rimraf=require('rimraf'),zipdir=require(_0x3f6d1d('0x43')),rp=require(_0x3f6d1d('0x67')),moment=require(_0x3f6d1d('0x99')),util=require(_0x3f6d1d('0xa6')),path=require(_0x3f6d1d('0x88')),ejs=require(_0x3f6d1d('0x18')),fs=require('fs'),_=require('lodash'),squel=require(_0x3f6d1d('0x9e')),{getSocket}=require(_0x3f6d1d('0x46')),qs=require(_0x3f6d1d('0xd0')),as=require(_0x3f6d1d('0xe2')),logger=require(_0x3f6d1d('0x4b'))(_0x3f6d1d('0xd3')),config=require(_0x3f6d1d('0xca')),db=require('../../mysqldb')['db'],{Op,ValidationError,QueryTypes}=require(_0x3f6d1d('0x106')),socket=getSocket();require(_0x3f6d1d('0x8'))[_0x3f6d1d('0x3d')](socket);const jayson=require('jayson/promise'),client=jayson[_0x3f6d1d('0x55')][_0x3f6d1d('0x81')]({'port':0x232b}),client9004=jayson[_0x3f6d1d('0x55')][_0x3f6d1d('0x81')]({'port':0x232c});function respondWithRpcPromise(_0x50db44,_0x820159,_0x4c4ffa,_0x288e1a){return new Promise(function(_0x302e29,_0x3443d4){const _0x893cd3=a66_0x4c46,_0x1b4728=_0x288e1a||client;return _0x1b4728[_0x893cd3('0x77')](_0x50db44,_0x4c4ffa)['then'](function(_0x353755){const _0x673b1=_0x893cd3;logger[_0x673b1('0x16')](_0x673b1('0xce'),_0x820159,_0x673b1('0xcd')),logger[_0x673b1('0x5')]('ChatInteraction,\x20%s,\x20%s,\x20%s',_0x820159,'request\x20sent',JSON['stringify'](_0x353755));if(_0x353755['error']){if(_0x353755[_0x673b1('0x10d')][_0x673b1('0xec')]===0x1f4)return logger[_0x673b1('0x10d')](_0x673b1('0xce'),_0x820159,_0x353755[_0x673b1('0x10d')][_0x673b1('0xf4')]),_0x3443d4(_0x353755[_0x673b1('0x10d')]['message']);return logger[_0x673b1('0x10d')](_0x673b1('0xce'),_0x820159,_0x353755[_0x673b1('0x10d')][_0x673b1('0xf4')]),_0x302e29(_0x353755['error']['message']);}else logger[_0x673b1('0x16')]('ChatInteraction,\x20%s,\x20%s',_0x820159,_0x673b1('0xcd')),_0x302e29(_0x353755['result']['message']);})[_0x893cd3('0x78')](function(_0x5ce2bf){const _0x240f9f=_0x893cd3;logger[_0x240f9f('0x10d')](_0x240f9f('0xce'),_0x820159,_0x5ce2bf),_0x3443d4(_0x5ce2bf);});});}function respondWithStatusCode(_0x26d355,_0x186d88){return _0x186d88=_0x186d88||0xcc,function(_0x5df329){const _0x147ab1=a66_0x4c46;if(_0x5df329)return _0x26d355[_0x147ab1('0x42')](_0x186d88);return _0x26d355[_0x147ab1('0xf3')](_0x186d88)[_0x147ab1('0x1')]();};}function respondWithResult(_0x1b9a8e,_0x518d30){return _0x518d30=_0x518d30||0xc8,function(_0x23d4f3){const _0x2c78f5=a66_0x4c46;if(_0x23d4f3)return _0x1b9a8e[_0x2c78f5('0xf3')](_0x518d30)[_0x2c78f5('0x59')](_0x23d4f3);};}function respondWithFilteredResult(_0x564fbd,_0xab7394){return function(_0x42fcce){const _0x551596=a66_0x4c46;if(_0x42fcce){const _0x59fbfc=_0x42fcce[_0x551596('0x26')],_0x45ad00=_0xab7394[_0x551596('0x8a')];let _0x35badb=_0xab7394[_0x551596('0x8a')]+_0xab7394[_0x551596('0x4e')],_0x5868c2;return _0x35badb>=_0x59fbfc?(_0x35badb=_0x59fbfc,_0x5868c2=0xc8):_0x5868c2=0xce,_0x564fbd[_0x551596('0xf3')](_0x5868c2),_0x564fbd[_0x551596('0xbe')](_0x551596('0xa3'),_0x45ad00+'-'+_0x35badb+'/'+_0x59fbfc)[_0x551596('0x59')](_0x42fcce);}return null;};}function saveUpdates(_0x42be2d){return function(_0x1730e3){if(_0x1730e3)return _0x1730e3['update'](_0x42be2d)['then'](function(_0x4937d4){return _0x4937d4;});return null;};}function removeEntity(_0x4e2629){return function(_0x5b5816){const _0x6d8007=a66_0x4c46;if(_0x5b5816)return _0x5b5816[_0x6d8007('0xeb')]()[_0x6d8007('0x97')](function(){const _0x3bba9c=_0x6d8007;_0x4e2629[_0x3bba9c('0xf3')](0xcc)[_0x3bba9c('0x1')]();});};}function handleEntityNotFound(_0x2efa2d){return function(_0x1b6d86){return!_0x1b6d86&&_0x2efa2d['sendStatus'](0x194),_0x1b6d86;};}function handleError(_0x5662ba,_0x38c67b){return _0x38c67b=_0x38c67b||0x1f4,function(_0x25d59a){const _0x3a6346=a66_0x4c46;logger[_0x3a6346('0x10d')](_0x25d59a[_0x3a6346('0x9d')]),_0x25d59a[_0x3a6346('0x20')]&&delete _0x25d59a['name'],_0x5662ba[_0x3a6346('0xf3')](_0x38c67b)[_0x3a6346('0x110')](_0x25d59a);};}function getInteractionUsers(_0xd43c35,_0x2c4c86){return new Promise(function(_0x5d8ed0,_0x45ea03){const _0x4fcbcb=a66_0x4c46;try{_0x2c4c86[_0xd43c35['id']]&&(_0xd43c35[_0x4fcbcb('0xe3')]=_['map'](_0x2c4c86[_0xd43c35['id']],function(_0x379d04){return{'id':_0x379d04['id'],'fullname':_0x379d04['fullname']};}));}catch(_0x6e9e60){_0x45ea03(_0x6e9e60);}_0x5d8ed0(_0xd43c35);});}function getInteractionTags(_0x897054,_0x1d8eda){return new Promise(function(_0x19c2ed,_0x1e1410){const _0x105770=a66_0x4c46;try{_0x897054[_0x105770('0x2b')]&&(_0x897054[_0x105770('0xbd')]=[],_0x897054['TagIds'][_0x105770('0x69')](',')['forEach'](function(_0x561b5a){const _0x59f9bd=_0x105770;_0x897054['Tags'][_0x59f9bd('0xef')](_0x1d8eda[_0x561b5a]);})),delete _0x897054[_0x105770('0x2b')];}catch(_0x14c2ef){_0x1e1410(_0x14c2ef);}_0x19c2ed(_0x897054);});}function updateChatInteraction(_0x20ceb6,_0x363f6f,_0x242265){return new Promise(function(_0x4f1691,_0x3536e7){const _0x4339b1=a66_0x4c46;return getInteractionUsers(_0x20ceb6,_0x242265)[_0x4339b1('0x97')](function(_0x229933){return getInteractionTags(_0x229933,_0x363f6f);})[_0x4339b1('0x97')](function(_0x59d600){_0x4f1691(_0x59d600);})[_0x4339b1('0x78')](function(_0x2ea40b){_0x3536e7(_0x2ea40b);});});}exports[_0x3f6d1d('0x19')]=function(_0x18b3bf,_0xcd786d){const _0x2317f9=_0x3f6d1d,_0x50ab80={},_0xde02e4={},_0xbd2658={'count':0x0,'rows':[]},_0x35e811=_['map'](db[_0x2317f9('0x113')][_0x2317f9('0x86')],function(_0x1b98ee){const _0x7a42c3=_0x2317f9;return{'name':_0x1b98ee['fieldName'],'type':_0x1b98ee['type'][_0x7a42c3('0x33')]};});_0xde02e4[_0x2317f9('0xee')]=_['map'](_0x35e811,'name'),_0xde02e4[_0x2317f9('0x93')]=_['keys'](_0x18b3bf[_0x2317f9('0x93')]),_0xde02e4[_0x2317f9('0x2a')]=_[_0x2317f9('0xc1')](_0xde02e4['model'],_0xde02e4[_0x2317f9('0x93')]),_0x50ab80[_0x2317f9('0xda')]=_['intersection'](_0xde02e4[_0x2317f9('0xee')],qs[_0x2317f9('0x10')](_0x18b3bf[_0x2317f9('0x93')][_0x2317f9('0x10')])),_0x50ab80[_0x2317f9('0xda')]=_0x50ab80['attributes']['length']?_0x50ab80['attributes']:_0xde02e4[_0x2317f9('0xee')];typeof _0x18b3bf[_0x2317f9('0x93')][_0x2317f9('0xc9')]==='undefined'&&(_0x50ab80[_0x2317f9('0x4e')]=qs['limit'](_0x18b3bf[_0x2317f9('0x93')][_0x2317f9('0x4e')]),_0x50ab80[_0x2317f9('0x8a')]=qs[_0x2317f9('0x8a')](_0x18b3bf[_0x2317f9('0x93')][_0x2317f9('0x8a')]));_0x50ab80['order']=qs[_0x2317f9('0xfb')](_0x18b3bf[_0x2317f9('0x93')][_0x2317f9('0xfb')]),_0x50ab80[_0x2317f9('0x8b')]=qs[_0x2317f9('0x2a')](_[_0x2317f9('0x105')](_0x18b3bf[_0x2317f9('0x93')],_0xde02e4['filters']),_0x35e811);let _0x206f45=[];const _0x494bbb=squel['select']()[_0x2317f9('0x9')]('id')[_0x2317f9('0x9')](_0x2317f9('0x20'))['field']('color')[_0x2317f9('0x29')](_0x2317f9('0xf6')),_0x2fec8d=squel[_0x2317f9('0x1b')]()[_0x2317f9('0x9')]('u.id')[_0x2317f9('0x9')](_0x2317f9('0xc6'))[_0x2317f9('0x9')]('ui.ChatInteractionId')[_0x2317f9('0x29')](_0x2317f9('0xe'),'ui')[_0x2317f9('0xc5')]('users','u','u.id\x20=\x20ui.UserId'),_0x3588d6=squel[_0x2317f9('0x1b')]()['from'](_0x2317f9('0x58'),'i')[_0x2317f9('0xc5')](_0x2317f9('0xf5'),'c',_0x2317f9('0xe0'))[_0x2317f9('0xc5')](_0x2317f9('0x36'),'o','o.id\x20=\x20i.UserId')[_0x2317f9('0xc5')]('chat_websites','a',_0x2317f9('0xb7'))[_0x2317f9('0xc5')](_0x2317f9('0xc0'),'me',_0x2317f9('0xaf'))[_0x2317f9('0xc5')]('chat_interaction_has_tags','it',_0x2317f9('0x10f'))[_0x2317f9('0xc5')](_0x2317f9('0xf6'),'t',_0x2317f9('0x7e')),_0x41e17f=squel[_0x2317f9('0xe4')]();let _0x37f9e0=[];const _0x298a74=squel[_0x2317f9('0xe4')]();let _0x316922;if(_0x18b3bf['query'][_0x2317f9('0xd9')]){_0x316922=as[_0x2317f9('0x107')](_0x18b3bf[_0x2317f9('0x93')][_0x2317f9('0xd9')]);const _0x1e4c21=_0x316922[_0x2317f9('0xfa')];for(let _0x4c40a9=0x0;_0x4c40a9<_0x316922[_0x2317f9('0x35')]['length'];_0x4c40a9++){const _0x282e3c=_0x316922['conditions'][_0x4c40a9],_0xcf2925='i';let _0x497f8e,_0x2656bb=_[_0x2317f9('0xe9')](_0x35e811,[_0x2317f9('0x20'),_0x282e3c[_0x2317f9('0x9')]]);if(!_0x2656bb)switch(_0x282e3c[_0x2317f9('0x9')]){case _0x2317f9('0x3f'):_0x282e3c[_0x2317f9('0xd6')]==0x1?_0x3588d6['having']('`'+_0x282e3c['field']+_0x2317f9('0x6a')):_0x3588d6[_0x2317f9('0x3')]('`'+_0x282e3c[_0x2317f9('0x9')]+_0x2317f9('0x32'));break;case _0x2317f9('0xb8'):if(_0x282e3c['operator']===_0x2317f9('0x23')){if(_0x282e3c[_0x2317f9('0xd6')][_0x2317f9('0x69')]('\x20')[_0x2317f9('0x85')]>0x1)_0x41e17f[_0x1e4c21](_0x2317f9('0x7b'),qs[_0x2317f9('0x49')](_0x282e3c[_0x2317f9('0xd6')]),null);else{const _0x1065fb='%'+_0x282e3c[_0x2317f9('0xd6')]+'%';_0x41e17f[_0x1e4c21](_0x2317f9('0x108'),_0x1065fb,_0x1065fb,_0x1065fb);}}else _0x2656bb=_[_0x2317f9('0xe9')](_0x35e811,['name',_0x2317f9('0xa8')]),_0x282e3c[_0x2317f9('0x9')]=_0x2317f9('0xa8'),_0x497f8e=as[_0x2317f9('0x71')](_0xcf2925,_0x2656bb[_0x2317f9('0x115')],_0x282e3c),_0x41e17f[_0x1e4c21](_0x497f8e['text'],_0x497f8e[_0x2317f9('0xd6')][_0x2317f9('0xb1')],_0x497f8e[_0x2317f9('0xd6')][_0x2317f9('0x1')]);break;case'Tag':{const _0xf36651=_0x282e3c['value'][_0x2317f9('0x69')](',')[_0x2317f9('0x82')](function(_0x3c75d7){return Number(_0x3c75d7);});_0xf36651[_0x2317f9('0xcc')](function(_0x470e24){const _0x48620e=_0x2317f9;_0x298a74['or'](_0x48620e('0x7a'),'%,'+_0x470e24+',%');}),_0x37f9e0=_[_0x2317f9('0x4')](_0x37f9e0,_0xf36651);}break;case _0x2317f9('0xb2'):_0x282e3c[_0x2317f9('0x6c')]===_0x2317f9('0x23')?_0x41e17f[_0x1e4c21](_0x2317f9('0x7d'),'%'+_0x282e3c[_0x2317f9('0xd6')]+'%',null):(_0x2656bb=_[_0x2317f9('0xe9')](_0x35e811,[_0x2317f9('0x20'),_0x2317f9('0x96')]),_0x282e3c[_0x2317f9('0x9')]='UserId',_0x497f8e=as[_0x2317f9('0x71')](_0xcf2925,_0x2656bb['type'],_0x282e3c),_0x41e17f[_0x1e4c21](_0x497f8e[_0x2317f9('0xaa')],_0x497f8e[_0x2317f9('0xd6')][_0x2317f9('0xb1')],_0x497f8e[_0x2317f9('0xd6')][_0x2317f9('0x1')]));break;case _0x2317f9('0x38'):_0x497f8e=as['buildExpression']('me',null,_0x282e3c),_0x41e17f[_0x1e4c21](_0x497f8e[_0x2317f9('0xaa')],_0x497f8e[_0x2317f9('0xd6')][_0x2317f9('0xb1')],_0x497f8e['value'][_0x2317f9('0x1')]);break;}else _0x497f8e=as[_0x2317f9('0x71')](_0xcf2925,_0x2656bb[_0x2317f9('0x115')],_0x282e3c),_0x41e17f[_0x1e4c21](_0x497f8e['text'],_0x497f8e[_0x2317f9('0xd6')][_0x2317f9('0xb1')],_0x497f8e[_0x2317f9('0xd6')][_0x2317f9('0x1')]);}}else{const _0x44b21e=_(_0x18b3bf[_0x2317f9('0x93')])['keys']()['map'](function(_0x1f6abd){const _0xb97404=_0x2317f9;return _[_0xb97404('0x8c')](_0x35e811,[_0xb97404('0x20'),_0x1f6abd])?_0x1f6abd:undefined;})[_0x2317f9('0xd8')]()[_0x2317f9('0xd6')]();!_[_0x2317f9('0x8e')](_0x44b21e)&&_0x44b21e[_0x2317f9('0xcc')](function(_0x13029c){const _0x460572=_0x2317f9;if(_0x13029c===_0x460572('0x8f'))_0x3588d6[_0x460572('0x8b')](_0x460572('0x87'),[]['concat'](_0x18b3bf[_0x460572('0x93')][_0x13029c]));else{if(_0x13029c===_0x460572('0x103')){const _0x450846=JSON[_0x460572('0xfc')](_0x18b3bf[_0x460572('0x93')][_0x13029c])[_0x460572('0xed')],_0x291390=JSON[_0x460572('0xfc')](_0x18b3bf['query'][_0x13029c])[_0x460572('0x5e')];_0x3588d6[_0x460572('0x8b')](_0x460572('0xd2'),_0x450846,_0x291390);}else _0x18b3bf[_0x460572('0x93')][_0x13029c]===_0x460572('0x94')?_0x3588d6[_0x460572('0x8b')]('i.'+_0x13029c+_0x460572('0x41')):_0x3588d6[_0x460572('0x8b')]('i.'+_0x13029c+_0x460572('0x61'),_0x18b3bf[_0x460572('0x93')][_0x13029c]);}});_0x18b3bf['query'][_0x2317f9('0xbc')]&&(_0x18b3bf[_0x2317f9('0x93')][_0x2317f9('0xbc')]==0x1?_0x3588d6[_0x2317f9('0x3')](_0x2317f9('0x11')):_0x3588d6['having'](_0x2317f9('0x7c')));_0x18b3bf['query'][_0x2317f9('0xa5')]&&(_0x37f9e0=_['isArray'](_0x18b3bf[_0x2317f9('0x93')]['tag'])?_0x18b3bf['query'][_0x2317f9('0xa5')]:new Array(_0x18b3bf['query'][_0x2317f9('0xa5')]),_0x37f9e0[_0x2317f9('0xcc')](function(_0x4febc6){const _0x30f291=_0x2317f9;_0x298a74['or'](_0x30f291('0x7a'),'%,'+_0x4febc6+',%');}));if(_0x18b3bf[_0x2317f9('0x93')][_0x2317f9('0x95')]){const _0x2ce442=_0x18b3bf[_0x2317f9('0x93')][_0x2317f9('0x95')][_0x2317f9('0x109')]('\x5c','\x5c\x5c')['replace'](/'/g,'\x27\x27');qs['isNumeric'](_0x2ce442)?_0x41e17f['or'](_0x2317f9('0x15'),_0x2ce442+'%'):_0x41e17f['or'](_0x2317f9('0x34'),qs[_0x2317f9('0x49')](_0x2ce442))['or'](_0x2317f9('0x5a'),_0x2ce442+'%');}}_0x3588d6['where'](_0x41e17f),_0x3588d6['group'](_0x2317f9('0x10c'));let _0x2f7b2d={'type':QueryTypes['SELECT'],'raw':!![]};const _0xaa1105=_0x3588d6['clone']();_0xaa1105['field']('i.id'),_0xaa1105['field'](_0x2317f9('0x30'),'unreadMessages'),_0x50ab80['order']&&_0x50ab80[_0x2317f9('0x1c')][_0x2317f9('0xcc')](function(_0x50af78){const _0x13e15f=_0x2317f9;_0x3588d6[_0x13e15f('0x1c')]('i.'+_0x50af78[0x0],_0x50af78[0x1]===_0x13e15f('0x4d')?![]:!![]);}),!_[_0x2317f9('0x8e')](_0x37f9e0)&&(_0x3588d6[_0x2317f9('0x3')](_0x298a74),_0xaa1105[_0x2317f9('0x8b')](_0x2317f9('0x100'),_0x37f9e0)),Promise[_0x2317f9('0xb3')]()[_0x2317f9('0x97')](function(){const _0x27ee3a=_0x2317f9;if(!_0x316922){if(_0x18b3bf[_0x27ee3a('0x93')][_0x27ee3a('0x8f')]||_0x18b3bf[_0x27ee3a('0x93')][_0x27ee3a('0x13')])return;_0xaa1105[_0x27ee3a('0x8b')](_0x27ee3a('0xfe')),_0x3588d6[_0x27ee3a('0x8b')](_0x27ee3a('0xfe'));return;}return _0x18b3bf[_0x27ee3a('0x102')][_0x27ee3a('0x47')]({'attributes':['id'],'raw':!![]})[_0x27ee3a('0x97')](function(_0x329b87){const _0x28539a=_0x27ee3a;_[_0x28539a('0x8e')](_0x329b87)?(_0xaa1105[_0x28539a('0x8b')]('i.ChatWebsiteId\x20IS\x20NULL'),_0x3588d6['where'](_0x28539a('0x75'))):(_0xaa1105[_0x28539a('0x8b')](_0x28539a('0x87'),_[_0x28539a('0x82')](_0x329b87,'id')),_0x3588d6[_0x28539a('0x8b')](_0x28539a('0x87'),_[_0x28539a('0x82')](_0x329b87,'id')));});})[_0x2317f9('0x97')](function(){const _0x51f8af=_0x2317f9;db[_0x51f8af('0x106')][_0x51f8af('0x93')](_0xaa1105[_0x51f8af('0xb9')](),_0x2f7b2d)[_0x51f8af('0x97')](function(_0x3185ea){const _0x4e647d=_0x51f8af;_0xbd2658[_0x4e647d('0x26')]=_0x3185ea['length'];if(_0xbd2658[_0x4e647d('0x26')]===0x0)return[];return db[_0x4e647d('0x106')][_0x4e647d('0x93')](_0x494bbb[_0x4e647d('0xb9')](),_0x2f7b2d)[_0x4e647d('0x97')](function(_0x3e0454){const _0x1df1d3=_0x4e647d;_0x206f45=_[_0x1df1d3('0x0')](_0x3e0454,'id'),_0x2f7b2d=_[_0x1df1d3('0xdd')](_0x2f7b2d,{'model':db[_0x1df1d3('0x113')],'mapToModel':!![],'raw':!![],'nest':!![]});_0x18b3bf['query'][_0x1df1d3('0x10')]?_0x50ab80['attributes'][_0x1df1d3('0xcc')](function(_0x3b4013){_0x3588d6['field']('i.'+_0x3b4013);}):(_0x3588d6[_0x1df1d3('0x9')](_0x1df1d3('0x30'),_0x1df1d3('0x3f')),_0x3588d6[_0x1df1d3('0x9')](_0x1df1d3('0xfd'),_0x1df1d3('0x2e')),_0x3588d6['field'](_0x1df1d3('0x53'),'Account.mandatoryDisposition'),_0x3588d6[_0x1df1d3('0x9')](_0x1df1d3('0xd1')),_0x3588d6[_0x1df1d3('0x9')](_0x1df1d3('0x2'),_0x1df1d3('0x39')),_0x3588d6[_0x1df1d3('0x9')](_0x1df1d3('0xc2'),'Contact.lastName'),_0x3588d6[_0x1df1d3('0x9')](_0x1df1d3('0x57'),'Contact.email'),_0x3588d6[_0x1df1d3('0x9')](_0x1df1d3('0xf9'),'Contact.phone'),_0x3588d6[_0x1df1d3('0x9')]('c.mobile',_0x1df1d3('0xa2')),_0x3588d6[_0x1df1d3('0x9')](_0x1df1d3('0x21'),_0x1df1d3('0x12')),_0x3588d6[_0x1df1d3('0x9')](_0x1df1d3('0x101'),_0x1df1d3('0x27')),_0x3588d6['field'](_0x1df1d3('0x45'),_0x1df1d3('0x114')),_0x3588d6[_0x1df1d3('0x9')](_0x1df1d3('0xe6'),_0x1df1d3('0x2b')));if(_0x50ab80[_0x1df1d3('0x4e')])_0x3588d6[_0x1df1d3('0x4e')](_0x50ab80['limit']);if(_0x50ab80[_0x1df1d3('0x8a')])_0x3588d6[_0x1df1d3('0x8a')](_0x50ab80[_0x1df1d3('0x8a')]);return db[_0x1df1d3('0x106')][_0x1df1d3('0x93')](_0x3588d6['toString'](),_0x2f7b2d);})[_0x4e647d('0x97')](function(_0x3bfc6f){const _0x315c32=_0x4e647d;return _0x2fec8d[_0x315c32('0x8b')](_0x315c32('0xc3'),_['map'](_0x3bfc6f,'id')),db[_0x315c32('0x106')][_0x315c32('0x93')](_0x2fec8d[_0x315c32('0xb9')](),_0x2f7b2d)[_0x315c32('0x97')](function(_0x177805){const _0x4f3bb8=_0x315c32,_0x545570=_['groupBy'](_0x177805,_0x4f3bb8('0xf')),_0x30ee10=[];return _0x3bfc6f[_0x4f3bb8('0xcc')](function(_0x14c555){const _0x42c099=_0x4f3bb8;_0x30ee10[_0x42c099('0xef')](updateChatInteraction(_0x14c555,_0x206f45,_0x545570));}),Promise[_0x4f3bb8('0xb')](_0x30ee10);});});})[_0x51f8af('0x97')](function(_0x4b0b18){const _0x15cc8f=_0x51f8af;return _0xbd2658[_0x15cc8f('0xf2')]=_0x4b0b18,_0xbd2658;})[_0x51f8af('0x97')](respondWithFilteredResult(_0xcd786d,_0x50ab80));})[_0x2317f9('0x78')](handleError(_0xcd786d,null));},exports[_0x3f6d1d('0x11a')]=function(_0x470ef0,_0x42f18c){const _0x15af82=_0x3f6d1d;let _0x547d9f={'raw':![],'where':{'id':_0x470ef0['params']['id']}};const _0x52bc39={};return _0x52bc39[_0x15af82('0xee')]=_[_0x15af82('0xd4')](db['ChatInteraction'][_0x15af82('0x86')]),_0x52bc39[_0x15af82('0x93')]=_[_0x15af82('0xd4')](_0x470ef0[_0x15af82('0x93')]),_0x52bc39[_0x15af82('0x2a')]=_[_0x15af82('0xc1')](_0x52bc39[_0x15af82('0xee')],_0x52bc39[_0x15af82('0x93')]),_0x547d9f['attributes']=_[_0x15af82('0xc1')](_0x52bc39[_0x15af82('0xee')],qs[_0x15af82('0x10')](_0x470ef0[_0x15af82('0x93')][_0x15af82('0x10')])),_0x547d9f['attributes']=_0x547d9f[_0x15af82('0xda')][_0x15af82('0x85')]?_0x547d9f[_0x15af82('0xda')]:_0x52bc39[_0x15af82('0xee')],_0x470ef0[_0x15af82('0x93')][_0x15af82('0xae')]&&(_0x547d9f[_0x15af82('0xb5')]=[{'all':!![]}]),_0x547d9f=_['merge']({},_0x547d9f,_0x470ef0['options']),db['ChatInteraction'][_0x15af82('0xc7')](_0x547d9f)['then'](handleEntityNotFound(_0x42f18c,null))['then'](respondWithResult(_0x42f18c,null))['catch'](handleError(_0x42f18c,null));},exports[_0x3f6d1d('0x73')]=function(_0x3c1818,_0x3875a9){const _0x1856ec=_0x3f6d1d;return db['ChatInteraction'][_0x1856ec('0x73')](_0x3c1818['body'],{})[_0x1856ec('0x97')](respondWithResult(_0x3875a9,0xc9))[_0x1856ec('0x78')](handleError(_0x3875a9,null));},exports[_0x3f6d1d('0x56')]=function(_0x5c8557,_0x133c4f){const _0x209d78=_0x3f6d1d;return _0x5c8557[_0x209d78('0x38')]['id']&&delete _0x5c8557[_0x209d78('0x38')]['id'],db[_0x209d78('0x113')][_0x209d78('0xc7')]({'where':{'id':_0x5c8557['params']['id']}})[_0x209d78('0x97')](handleEntityNotFound(_0x133c4f,null))[_0x209d78('0x97')](saveUpdates(_0x5c8557[_0x209d78('0x38')],null))[_0x209d78('0x97')](respondWithResult(_0x133c4f,null))[_0x209d78('0x78')](handleError(_0x133c4f,null));},exports[_0x3f6d1d('0xeb')]=function(_0x11a5f4,_0x2f7aff){const _0x485b32=_0x3f6d1d;return db[_0x485b32('0x113')][_0x485b32('0xc7')]({'where':{'id':_0x11a5f4['params']['id']}})[_0x485b32('0x97')](handleEntityNotFound(_0x2f7aff,null))['then'](removeEntity(_0x2f7aff,null))[_0x485b32('0x78')](handleError(_0x2f7aff,null));},exports[_0x3f6d1d('0xea')]=function(_0x119236,_0x1dc367){const _0x4e21c4=_0x3f6d1d;return db[_0x4e21c4('0x113')]['describe']()[_0x4e21c4('0x97')](respondWithResult(_0x1dc367,null))[_0x4e21c4('0x78')](handleError(_0x1dc367,null));},exports[_0x3f6d1d('0x1e')]=function(_0xee6eb9,_0x574197){const _0x3cbf4e=_0x3f6d1d,_0x267c7f=_0xee6eb9[_0x3cbf4e('0x72')]['id'];let _0x3e245b,_0x541d64,_0x18c19f;return db[_0x3cbf4e('0x113')][_0x3cbf4e('0xc7')]({'where':{'id':_0x267c7f}})[_0x3cbf4e('0x97')](function(_0x4d8e0d){const _0xd18ae=_0x3cbf4e;return _0x3e245b=_0x4d8e0d,db[_0xd18ae('0xc')][_0xd18ae('0xc7')]({'where':{'id':_0x4d8e0d[_0xd18ae('0x8f')]},'attributes':['id',_0xd18ae('0xc4'),_0xd18ae('0x7')],'raw':!![]});})[_0x3cbf4e('0x97')](function(_0x55a1b2){const _0x918e08=_0x3cbf4e;if(_0x55a1b2&&_0x55a1b2['vidaooApiKey']&&_0x55a1b2['vidaooEscalation']){_0x541d64=_0x55a1b2;const _0x1a5f3a={'rejectUnauthorized':![],'method':_0x918e08('0xf1'),'uri':_0x918e08('0xac'),'headers':{'X-APIKEY':_0x55a1b2[_0x918e08('0xc4')]},'body':{'name':_0x918e08('0xbb')+_0x267c7f},'redirect':_0x918e08('0x4f'),'json':!![]};return rp(_0x1a5f3a);}else throw new ValidationError(_0x918e08('0xdf'));})['then'](function(_0x30256c){const _0x506e4a=_0x3cbf4e;_0x18c19f=_0x30256c;if(_0x18c19f['id']){const _0x229c15={'body':_0x18c19f['join_url'],'ChatWebsiteId':_0x541d64['id'],'ChatInteractionId':_0x3e245b['id'],'direction':_0x506e4a('0xcb'),'UserId':_0xee6eb9['user']['id']};return db[_0x506e4a('0x4c')][_0x506e4a('0x73')](_0x229c15,{});}else throw new ValidationError(_0x506e4a('0x92'));})[_0x3cbf4e('0x97')](function(){return _0x3e245b['update']({'vidaooSessionId':_0x18c19f['id']});})['then'](respondWithResult(_0x574197,null))[_0x3cbf4e('0x78')](handleError(_0x574197,null));},exports[_0x3f6d1d('0x5b')]=function(_0x208c3f,_0x517fa2){const _0x497c52=_0x3f6d1d;return _0x208c3f[_0x497c52('0x38')]['id']&&delete _0x208c3f[_0x497c52('0x38')]['id'],db['ChatInteraction'][_0x497c52('0xc7')]({'where':{'id':_0x208c3f[_0x497c52('0x72')]['id']}})[_0x497c52('0x97')](handleEntityNotFound(_0x517fa2,null))[_0x497c52('0x97')](saveUpdates(_0x208c3f[_0x497c52('0x38')],null))['then'](respondWithResult(_0x517fa2,null))[_0x497c52('0x78')](handleError(_0x517fa2,null));},exports[_0x3f6d1d('0x44')]=function(_0x2c5b7e,_0x13f5f3){const _0x4af66d=_0x3f6d1d;return _0x2c5b7e['body']['id']&&delete _0x2c5b7e[_0x4af66d('0x38')]['id'],db['ChatInteraction']['findOne']({'where':{'id':_0x2c5b7e[_0x4af66d('0x72')]['id']}})[_0x4af66d('0x97')](function(_0x19f628){const _0x81c33c=_0x4af66d;if(!_0x19f628)logger[_0x81c33c('0x10d')](_0x81c33c('0xa9'),_0x81c33c('0x44'),0x194,_0x81c33c('0xa')),_0x13f5f3['sendStatus'](0x194);else{if(_0x19f628['UserId'])throw new ValidationError(_0x81c33c('0x7f'));}return _0x19f628;})[_0x4af66d('0x97')](function(_0x1ce4ef){const _0x55ebb1=_0x4af66d;if(_0x1ce4ef)return _0x1ce4ef[_0x55ebb1('0x56')]({'closed':_0x2c5b7e[_0x55ebb1('0x38')][_0x55ebb1('0xf0')],'disposition':_0x2c5b7e[_0x55ebb1('0x38')][_0x55ebb1('0x3e')]})[_0x55ebb1('0x97')](function(_0x1fdb28){return _0x1fdb28;});})['then'](function(){const _0x34028f=_0x4af66d;return respondWithRpcPromise('AbandonInteraction',_0x34028f('0x44'),_0x2c5b7e[_0x34028f('0x38')],client9004);})[_0x4af66d('0x97')](respondWithResult(_0x13f5f3,null))[_0x4af66d('0x78')](handleError(_0x13f5f3,null));},exports['attachmentUpload']=function(_0x54351e,_0xdbeef5){const _0x5405e8=_0x3f6d1d;return _0x54351e['body'][_0x5405e8('0x20')]=_0x54351e[_0x5405e8('0x3c')][_0x5405e8('0xd')],_0x54351e[_0x5405e8('0x38')][_0x5405e8('0x66')]=_0x54351e[_0x5405e8('0x3c')][_0x5405e8('0xde')],_0x54351e[_0x5405e8('0x38')]['type']=_0x54351e[_0x5405e8('0x3c')]['mimetype'],db[_0x5405e8('0x76')]['create'](_0x54351e[_0x5405e8('0x38')])[_0x5405e8('0x97')](respondWithResult(_0xdbeef5,0xc9))['catch'](handleError(_0xdbeef5,null));},exports[_0x3f6d1d('0x60')]=function(_0x584e77,_0x4fa354){const _0x4d852b=_0x3f6d1d;return db[_0x4d852b('0x113')][_0x4d852b('0xc7')]({'where':{'id':_0x584e77[_0x4d852b('0x72')]['id']},'raw':!![]})['then'](handleEntityNotFound(_0x4fa354,null))['then'](function(_0x431a35){const _0x3cef84=_0x4d852b;if(_0x431a35){if(_0x431a35['closed'])return _0x4fa354[_0x3cef84('0xf3')](0x193)[_0x3cef84('0x59')]({'status':0x193,'message':_0x3cef84('0x63')});return db['Attachment']['findOne']({'where':{'id':_0x584e77[_0x3cef84('0x93')]['attachId']},'raw':!![]})['then'](handleEntityNotFound(_0x4fa354,null));}})[_0x4d852b('0x97')](function(_0x5d5e7e){const _0x155816=_0x4d852b;if(_0x5d5e7e)return _0x4fa354['download'](path[_0x155816('0x1d')](config[_0x155816('0x74')],_0x155816('0x6e'),_0x5d5e7e[_0x155816('0x66')]));})[_0x4d852b('0x78')](handleError(_0x4fa354,null));},exports[_0x3f6d1d('0x6f')]=function(_0x2b9f08,_0x3bc98b){const _0x3dc616=_0x3f6d1d;let _0x152515=null,_0x5ce84e=null,_0x12bc17=null;return _0x2b9f08['body']['id']&&delete _0x2b9f08['body']['id'],_0x2b9f08['body'][_0x3dc616('0x89')]&&(_0x12bc17=path[_0x3dc616('0x1d')](config[_0x3dc616('0x74')],_0x3dc616('0xc8'),util[_0x3dc616('0xcf')](_0x3dc616('0x31'),Date[_0x3dc616('0x6')]())),_0x2b9f08[_0x3dc616('0x38')]['pathTranscript']=_0x12bc17),db[_0x3dc616('0x113')][_0x3dc616('0xc7')]({'where':{'id':_0x2b9f08[_0x3dc616('0x72')]['id']},'include':[{'model':db['ChatMessage'],'as':_0x3dc616('0x17'),'include':[{'model':db[_0x3dc616('0xb2')],'as':_0x3dc616('0xb2')}]}]})['then'](handleEntityNotFound(_0x3bc98b,null))[_0x3dc616('0x97')](saveUpdates(_0x2b9f08[_0x3dc616('0x38')],null))[_0x3dc616('0x97')](function(_0x3f3574){const _0x2ae4d0=_0x3dc616;if(_0x3f3574)return _0x152515=_0x3f3574,db[_0x2ae4d0('0xc')][_0x2ae4d0('0xc7')]({'where':{'id':_0x152515[_0x2ae4d0('0x8f')]}});})[_0x3dc616('0x97')](function(_0x10db04){const _0x3c01fe=_0x3dc616;if(_0x10db04)return _0x5ce84e=_0x10db04,db['CmContact'][_0x3c01fe('0xc7')]({'where':{'id':_0x152515[_0x3c01fe('0xa8')]}});})[_0x3dc616('0x97')](function(_0x5c053b){const _0x324609=_0x3dc616;if(_0x5c053b){if(_0x12bc17){let _0x5d4081=null;for(let _0x5e7baf=0x1;_0x5e7baf<_0x152515['Messages']['length'];++_0x5e7baf){_0x5d4081=_0x152515['Messages'][_0x5e7baf];let _0x8efd40=_0x5d4081[_0x324609('0x96')]?util[_0x324609('0xcf')]('%s%d',_0x5ce84e['agentAlias'],_0x5d4081[_0x324609('0x96')]):_0x324609('0x116');const _0x4c22fc=_0x2b9f08[_0x324609('0x38')][_0x324609('0x64')]||util[_0x324609('0xcf')](_0x324609('0x70'),_0x324609('0x54'),_0x5d4081[_0x324609('0xa8')]);switch(_0x5ce84e[_0x324609('0x65')]){case _0x324609('0x3a'):_0x8efd40=_0x5d4081[_0x324609('0x96')]?util['format'](_0x324609('0x70'),_0x5ce84e[_0x324609('0x5f')],_0x5d4081[_0x324609('0x96')]):_0x324609('0x116');break;case'agent_alias':_0x8efd40=_0x5d4081[_0x324609('0x96')]?_0x5d4081[_0x324609('0xb2')][_0x324609('0x10a')]||_0x5d4081['User'][_0x324609('0x22')]:'System';break;case'agent_fullname':_0x8efd40=_0x5d4081[_0x324609('0x96')]?_0x5d4081[_0x324609('0xb2')][_0x324609('0x22')]:'System';break;default:_0x8efd40=_0x5d4081[_0x324609('0x96')]?util[_0x324609('0xcf')](_0x324609('0x70'),_0x5ce84e[_0x324609('0x5f')],_0x5d4081[_0x324609('0x96')]):_0x324609('0x116');}const _0x2866ac=util['format'](_0x324609('0x50'),moment(_0x5d4081['createdAt'])[_0x324609('0xcf')](_0x324609('0x91')),_0x5d4081['direction']==='in'?_0x4c22fc:_0x8efd40,_0x5d4081[_0x324609('0x38')]);!_0x5d4081[_0x324609('0x1f')]&&fs[_0x324609('0x40')](_0x12bc17,_0x2866ac);}return db['MailAccount']['findOne']({'where':{'service':!![]},'include':[{'model':db['MailServerOut'],'as':_0x324609('0xb4'),'raw':!![]}]});}}})[_0x3dc616('0x97')](function(_0x53210d){const _0x1c827c=_0x3dc616;if(_0x53210d&&_0x53210d['Smtp']&&_0x2b9f08[_0x1c827c('0x38')]){const _0x409f71={'tls':{'rejectUnauthorized':![]}};return _0x53210d[_0x1c827c('0xb4')][_0x1c827c('0x11b')]?_0x409f71[_0x1c827c('0x11b')]=_0x53210d['Smtp'][_0x1c827c('0x11b')]:(_0x409f71[_0x1c827c('0x9a')]=_0x53210d[_0x1c827c('0xb4')]['host'],_0x409f71['port']=_0x53210d[_0x1c827c('0xb4')][_0x1c827c('0xf8')],_0x409f71[_0x1c827c('0x104')]=_0x53210d[_0x1c827c('0xb4')][_0x1c827c('0x104')]),_0x53210d[_0x1c827c('0xb4')]['authentication']&&(_0x409f71['auth']={'user':_0x53210d[_0x1c827c('0xb4')][_0x1c827c('0x102')],'pass':_0x53210d[_0x1c827c('0xb4')]['pass']}),respondWithRpcPromise(_0x1c827c('0x1a'),_0x1c827c('0x118'),{'account':_0x409f71,'message':{'from':util['format'](_0x1c827c('0xab'),_0x53210d['name'],_0x53210d[_0x1c827c('0xf7')]||_0x53210d['Smtp'][_0x1c827c('0x102')]),'to':_0x2b9f08[_0x1c827c('0x38')]['mailTranscript'],'subject':_0x1c827c('0xe7'),'text':util[_0x1c827c('0xcf')]('Hi\x20%s,\x20attached\x20you\x20can\x20find\x20your\x20transcript\x20file.\x20\x0a\x0aRegards.\x20\x0a\x0a',_0x2b9f08[_0x1c827c('0x38')][_0x1c827c('0x89')]),'attachments':[{'path':_0x12bc17}]}})[_0x1c827c('0x97')](function(){return _0x152515;})[_0x1c827c('0x78')](function(_0x4bd42f){console['error'](_0x4bd42f);});}else return _0x152515;})[_0x3dc616('0x97')](respondWithStatusCode(_0x3bc98b,0xc8))[_0x3dc616('0x78')](handleError(_0x3bc98b,null));},exports[_0x3f6d1d('0x4a')]=function(_0x86c05a,_0x401de3){const _0x2024b9=_0x3f6d1d;return db[_0x2024b9('0x4c')][_0x2024b9('0xc7')]({'where':{'id':_0x86c05a['params']['id']}})['then'](function(_0x269e8c){const _0x5361ab=_0x2024b9;if(_0x269e8c)return _0x269e8c[_0x5361ab('0x4a')](_0x86c05a['body'][_0x5361ab('0x24')],{'through':_['omit'](_0x86c05a[_0x5361ab('0x38')],['ids','id'])});})[_0x2024b9('0x97')](respondWithResult(_0x401de3,null))[_0x2024b9('0x78')](handleError(_0x401de3,null));},exports[_0x3f6d1d('0x79')]=function(_0x3a8d73,_0x4f7e30){const _0x4a91bf=_0x3f6d1d;let _0x2bd59e={'raw':![],'where':{}};const _0x1cdfb0={},_0xda71d1={'count':0x0,'rows':[]};return db[_0x4a91bf('0x113')]['findOne']({'where':{'id':_0x3a8d73[_0x4a91bf('0x72')]['id']}})[_0x4a91bf('0x97')](handleEntityNotFound(_0x4f7e30,null))['then'](function(_0x55ef1c){const _0xee54d4=_0x4a91bf;if(_0x55ef1c){_0x1cdfb0[_0xee54d4('0xee')]=_['keys'](db[_0xee54d4('0x4c')][_0xee54d4('0x86')]),_0x1cdfb0[_0xee54d4('0x93')]=_[_0xee54d4('0xd4')](_0x3a8d73[_0xee54d4('0x93')]),_0x1cdfb0[_0xee54d4('0x2a')]=_[_0xee54d4('0xc1')](_0x1cdfb0['model'],_0x1cdfb0[_0xee54d4('0x93')]),_0x2bd59e['attributes']=_[_0xee54d4('0xc1')](_0x1cdfb0[_0xee54d4('0xee')],qs['fields'](_0x3a8d73[_0xee54d4('0x93')][_0xee54d4('0x10')])),_0x2bd59e['attributes']=_0x2bd59e['attributes'][_0xee54d4('0x85')]?_0x2bd59e[_0xee54d4('0xda')]:_0x1cdfb0['model'];typeof _0x3a8d73[_0xee54d4('0x93')][_0xee54d4('0xc9')]===_0xee54d4('0x90')&&(_0x2bd59e[_0xee54d4('0x4e')]=qs[_0xee54d4('0x4e')](_0x3a8d73[_0xee54d4('0x93')][_0xee54d4('0x4e')]),_0x2bd59e[_0xee54d4('0x8a')]=qs[_0xee54d4('0x8a')](_0x3a8d73[_0xee54d4('0x93')]['offset']));_0x2bd59e[_0xee54d4('0x1c')]=qs['sort'](_0x3a8d73[_0xee54d4('0x93')]['sort']),_0x2bd59e['where']=qs[_0xee54d4('0x2a')](_[_0xee54d4('0x105')](_0x3a8d73[_0xee54d4('0x93')],_0x1cdfb0[_0xee54d4('0x2a')])),_0x2bd59e[_0xee54d4('0x8b')]['ChatInteractionId']=_0x55ef1c['id'];_0x3a8d73[_0xee54d4('0x93')]['filter']&&(_0x2bd59e['where']=_[_0xee54d4('0xdd')](_0x2bd59e[_0xee54d4('0x8b')],{[Op['or']]:_[_0xee54d4('0x82')](_0x2bd59e[_0xee54d4('0xda')],function(_0x212bcb){const _0x3c1e7a=_0xee54d4,_0x1badcb={};return _0x1badcb[_0x212bcb]={[Op['like']]:'%'+_0x3a8d73[_0x3c1e7a('0x93')]['filter']+'%'},_0x1badcb;})}));if(_0x3a8d73['query'][_0xee54d4('0xed')]){const _0x504a07=_0x3a8d73[_0xee54d4('0x93')][_0xee54d4('0xed')]['split'](','),_0x365ca6={};_0x365ca6[_0x504a07[0x0]]={[Op['gte']]:moment(_0x504a07[0x1])[_0xee54d4('0xcf')]('YYYY-MM-DD\x20HH:mm:ss')},_0x2bd59e[_0xee54d4('0x8b')]=_[_0xee54d4('0xdd')](_0x2bd59e[_0xee54d4('0x8b')],_0x365ca6);}return _0x2bd59e=_[_0xee54d4('0xdd')]({},_0x2bd59e,_0x3a8d73[_0xee54d4('0xbf')]),db[_0xee54d4('0x4c')][_0xee54d4('0x26')]({'where':_0x2bd59e[_0xee54d4('0x8b')]})[_0xee54d4('0x97')](function(_0x503cc5){const _0x5b1586=_0xee54d4;return _0xda71d1[_0x5b1586('0x26')]=_0x503cc5,_0x3a8d73[_0x5b1586('0x93')][_0x5b1586('0xae')]&&(_0x2bd59e[_0x5b1586('0xb5')]=[{'all':!![]}]),db[_0x5b1586('0x4c')]['findAll'](_0x2bd59e);})['then'](function(_0x4c87f5){const _0x2ecf97=_0xee54d4;return _0xda71d1[_0x2ecf97('0xf2')]=_0x4c87f5,_0xda71d1;});}})['then'](respondWithFilteredResult(_0x4f7e30,_0x2bd59e))[_0x4a91bf('0x78')](handleError(_0x4f7e30,null));},exports[_0x3f6d1d('0xdc')]=function(_0x5307d4,_0x499c11){const _0x1fd189=_0x3f6d1d;let _0x273ac8={'where':{}};const _0x567fc0={},_0x44cc34={'count':0x0,'rows':[]};return db[_0x1fd189('0x113')][_0x1fd189('0xc7')]({'where':{'id':_0x5307d4['params']['id']}})['then'](handleEntityNotFound(_0x499c11,null))[_0x1fd189('0x97')](function(_0x4a5126){const _0x3a17e8=_0x1fd189;if(_0x4a5126)return _0x567fc0[_0x3a17e8('0xee')]=_[_0x3a17e8('0xd4')](db[_0x3a17e8('0x4c')][_0x3a17e8('0x86')]),_0x567fc0[_0x3a17e8('0x93')]=_[_0x3a17e8('0xd4')](_0x5307d4[_0x3a17e8('0x93')]),_0x567fc0[_0x3a17e8('0x2a')]=_[_0x3a17e8('0xc1')](_0x567fc0['model'],_0x567fc0[_0x3a17e8('0x93')]),_0x273ac8[_0x3a17e8('0xda')]=_[_0x3a17e8('0xc1')](_0x567fc0[_0x3a17e8('0xee')],qs[_0x3a17e8('0x10')](_0x5307d4[_0x3a17e8('0x93')][_0x3a17e8('0x10')])),_0x273ac8[_0x3a17e8('0xda')]=_0x273ac8[_0x3a17e8('0xda')]['length']?_0x273ac8[_0x3a17e8('0xda')]:_0x567fc0[_0x3a17e8('0xee')],typeof _0x5307d4[_0x3a17e8('0x93')]['nolimit']===_0x3a17e8('0x90')&&(_0x273ac8[_0x3a17e8('0x4e')]=qs[_0x3a17e8('0x4e')](_0x5307d4[_0x3a17e8('0x93')][_0x3a17e8('0x4e')]),_0x273ac8[_0x3a17e8('0x8a')]=qs[_0x3a17e8('0x8a')](_0x5307d4[_0x3a17e8('0x93')][_0x3a17e8('0x8a')])),_0x273ac8[_0x3a17e8('0x1c')]=qs[_0x3a17e8('0xfb')](_0x5307d4[_0x3a17e8('0x93')][_0x3a17e8('0xfb')]),_0x273ac8[_0x3a17e8('0x8b')]=qs['filters'](_[_0x3a17e8('0x105')](_0x5307d4[_0x3a17e8('0x93')],_0x567fc0[_0x3a17e8('0x2a')])),_0x273ac8[_0x3a17e8('0x8b')]['ChatInteractionId']=_0x4a5126['id'],_0x5307d4['query'][_0x3a17e8('0x95')]&&(_0x273ac8[_0x3a17e8('0x8b')]=_[_0x3a17e8('0xdd')](_0x273ac8[_0x3a17e8('0x8b')],{[Op['or']]:_[_0x3a17e8('0x82')](_0x273ac8[_0x3a17e8('0xda')],function(_0x28d40e){const _0x16794d=_0x3a17e8,_0x2e95e0={};return _0x2e95e0[_0x28d40e]={[Op[_0x16794d('0xe5')]]:'%'+_0x5307d4[_0x16794d('0x93')][_0x16794d('0x95')]+'%'},_0x2e95e0;})})),_0x273ac8[_0x3a17e8('0x8b')][_0x3a17e8('0x1f')]=![],_0x5307d4[_0x3a17e8('0x93')]['id']&&(_0x273ac8[_0x3a17e8('0x8b')]['id']={[Op['gt']]:_0x5307d4[_0x3a17e8('0x93')]['id']}),_0x273ac8=_[_0x3a17e8('0xdd')]({},_0x273ac8,_0x5307d4[_0x3a17e8('0xbf')]),db['ChatMessage'][_0x3a17e8('0x26')]({'where':_0x273ac8['where']})[_0x3a17e8('0x97')](function(_0x49d54c){const _0x41dc31=_0x3a17e8;return _0x44cc34[_0x41dc31('0x26')]=_0x49d54c,_0x273ac8[_0x41dc31('0xb5')]=[],_0x5307d4['query'][_0x41dc31('0x14')]&&_0x273ac8['include'][_0x41dc31('0xef')]({'model':db['User'],'as':'User','attributes':['id',_0x41dc31('0x22'),_0x41dc31('0x10a')]}),_0x5307d4[_0x41dc31('0x93')]['includeAll']&&(_0x273ac8[_0x41dc31('0xb5')]=[{'all':!![]}]),db[_0x41dc31('0x4c')][_0x41dc31('0x111')](_0x273ac8);})[_0x3a17e8('0x97')](function(_0x46b875){return _0x44cc34['rows']=_0x46b875,_0x44cc34;});})[_0x1fd189('0x97')](respondWithFilteredResult(_0x499c11,_0x273ac8))[_0x1fd189('0x78')](handleError(_0x499c11,null));},exports[_0x3f6d1d('0x10b')]=function(_0x947239,_0x155ab7){const _0x61eaa3=_0x3f6d1d;return db['ChatInteraction'][_0x61eaa3('0xc7')]({'where':{'id':_0x947239[_0x61eaa3('0x72')]['id']}})[_0x61eaa3('0x97')](function(_0x52ddc9){const _0xacfad7=_0x61eaa3;if(_0x52ddc9)return _0x52ddc9[_0xacfad7('0x5d')](_0x947239[_0xacfad7('0x38')][_0xacfad7('0x24')],{'through':_[_0xacfad7('0xdb')](_0x947239[_0xacfad7('0x38')],[_0xacfad7('0x24'),'id'])})['then'](function(){const _0x4263c1=_0xacfad7;return db[_0x4263c1('0x2c')][_0x4263c1('0x111')]({'attributes':['id',_0x4263c1('0x20'),'color'],'where':{'id':_0x947239[_0x4263c1('0x38')]['ids']}});})[_0xacfad7('0x97')](function(_0xaf4cc){const _0x46e2e8=_0xacfad7;return socket[_0x46e2e8('0x48')](_0x46e2e8('0x80'),{'id':Number(_0x947239['params']['id']),'tags':_0xaf4cc||[]}),{'id':Number(_0x947239[_0x46e2e8('0x72')]['id']),'tags':_0xaf4cc||[]};});})['then'](respondWithResult(_0x155ab7,null))[_0x61eaa3('0x78')](handleError(_0x155ab7,null));},exports[_0x3f6d1d('0x51')]=function(_0x3d307a,_0x3616b9){const _0x1758bb=_0x3f6d1d;return db['ChatInteraction'][_0x1758bb('0xc7')]({'where':{'id':_0x3d307a[_0x1758bb('0x72')]['id']}})[_0x1758bb('0x97')](handleEntityNotFound(_0x3616b9,null))[_0x1758bb('0x97')](function(_0x19dfa0){const _0x27fa41=_0x1758bb;if(_0x19dfa0)return _0x19dfa0[_0x27fa41('0x51')](_0x3d307a[_0x27fa41('0x93')]['ids']);})['then'](respondWithStatusCode(_0x3616b9,null))[_0x1758bb('0x78')](handleError(_0x3616b9,null));},exports[_0x3f6d1d('0x84')]=function(_0x376da9,_0x29d56f){const _0x2800e5=_0x3f6d1d,_0x4719e0=moment()[_0x2800e5('0x10e')]()[_0x2800e5('0xb9')](),_0x4fb2f1=path[_0x2800e5('0x1d')](config[_0x2800e5('0x74')],_0x2800e5('0xa4'),_0x2800e5('0xe8')),_0x532934=path['join'](config[_0x2800e5('0x74')],_0x2800e5('0xba'),_0x2800e5('0xa4'),_0x2800e5('0x2f')),_0x3c2936=path[_0x2800e5('0x1d')](_0x4fb2f1,_0x4719e0),_0x5eb960=util[_0x2800e5('0xcf')]('transcript-%d-%s.zip',_0x376da9[_0x2800e5('0x72')]['id'],_0x4719e0),_0x3fb356=path[_0x2800e5('0x1d')](_0x4fb2f1,_0x5eb960),_0x2e1889=[];_0x2e1889[_0x2800e5('0xef')]({'model':db['User'],'as':_0x2800e5('0xb2'),'attributes':['id',_0x2800e5('0x22')],'raw':!![]}),_0x2e1889['push']({'model':db[_0x2800e5('0x28')],'as':_0x2800e5('0xb8'),'attributes':['id','firstName',_0x2800e5('0x5c')],'raw':!![]});_0x376da9['query'][_0x2800e5('0x2f')]&&_0x2e1889[_0x2800e5('0xef')]({'model':db['Attachment'],'as':_0x2800e5('0x76'),'raw':!![]});const _0x43be92=[{'model':db[_0x2800e5('0x4c')],'as':_0x2800e5('0x17'),'attributes':['id','body',_0x2800e5('0x103'),_0x2800e5('0xd7'),_0x2800e5('0x1f'),_0x2800e5('0xbc')],'include':_0x2e1889}];return _0x43be92['push']({'model':db[_0x2800e5('0xc')],'as':_0x2800e5('0x117'),'attributes':['id',_0x2800e5('0x20')]}),_0x43be92[_0x2800e5('0xef')]({'model':db['User'],'as':_0x2800e5('0x9b'),'attributes':['id',_0x2800e5('0x22')]}),db['ChatInteraction'][_0x2800e5('0xc7')]({'where':{'id':_0x376da9['params']['id']},'include':_0x43be92})[_0x2800e5('0x97')](handleEntityNotFound(_0x29d56f,null))[_0x2800e5('0x97')](function(_0x2ab298){const _0x24686c=_0x2800e5;if(_0x2ab298){const _0x585037=_0x2ab298['get']({'plain':!![]});fs[_0x24686c('0x3b')](_0x3c2936);const _0x40b6d9={'format':'A4','border':_0x24686c('0x98'),'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':_0x24686c('0xb6'),'contents':{'default':util['format']('\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20%s\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{{page}}/{{pages}}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20%s\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20',util[_0x24686c('0xcf')](_0x24686c('0x8d'),_0x24686c('0xd5'),_0x585037['id']),moment()['format'](_0x24686c('0x52'))[_0x24686c('0xb9')]())}}},_0x4c0373={'channel':_0x24686c('0xd5'),'account':_0x585037['Account'][_0x24686c('0x20')],'agent':_0x585037[_0x24686c('0x9b')]?_0x585037[_0x24686c('0x9b')][_0x24686c('0x22')]:_0x24686c('0xa0'),'createdAt':moment(_0x585037[_0x24686c('0x103')])[_0x24686c('0xcf')](_0x24686c('0x6d'))[_0x24686c('0xb9')](),'closedAt':_0x585037[_0x24686c('0xf0')]?moment(_0x585037['closedAt'])[_0x24686c('0xcf')](_0x24686c('0x6d'))['toString']():'','disposition':_0x585037[_0x24686c('0x3e')],'chatInfo':{'browser':_0x585037[_0x24686c('0x112')],'os':_0x585037[_0x24686c('0x37')],'referer':_0x585037[_0x24686c('0x6b')],'customerIp':_0x585037[_0x24686c('0x68')],'customerPort':_0x585037[_0x24686c('0xb0')]?_0x585037['customerPort']:'N.A.'},'messages':_(_0x585037[_0x24686c('0x17')])[_0x24686c('0xad')]()[_0x24686c('0x95')]({'secret':![]})[_0x24686c('0x82')](function(_0x5b170f){const _0x63ce80=_0x24686c;if(_0x5b170f['Attachment']){const _0xbd16b6=path[_0x63ce80('0x1d')](_0x532934,_0x5b170f['Attachment'][_0x63ce80('0x66')]);fs[_0x63ce80('0xff')](_0xbd16b6)&&fs[_0x63ce80('0x62')](_0xbd16b6)['pipe'](fs[_0x63ce80('0xa1')](path['join'](_0x3c2936,_0x5b170f['Attachment'][_0x63ce80('0x66')])));}return{'date':moment(_0x5b170f[_0x63ce80('0x103')])[_0x63ce80('0xcf')](_0x63ce80('0x6d'))[_0x63ce80('0xb9')](),'sender':_0x5b170f[_0x63ce80('0xd7')]===_0x63ce80('0xcb')?_0x5b170f[_0x63ce80('0xb2')]?_0x5b170f[_0x63ce80('0xb2')][_0x63ce80('0x22')]:_0x63ce80('0x116'):_0x5b170f[_0x63ce80('0xb8')][_0x63ce80('0x83')]+(_0x5b170f[_0x63ce80('0xb8')][_0x63ce80('0x5c')]?'\x20'+_0x5b170f[_0x63ce80('0xb8')]['lastName']:''),'body':_0x5b170f[_0x63ce80('0x76')]?_0x5b170f['Attachment']['basename']:_0x5b170f['body'],'direction':_0x5b170f[_0x63ce80('0xd7')]===_0x63ce80('0xcb')?'A':'C','secret':_0x5b170f[_0x63ce80('0x1f')],'read':_0x5b170f[_0x63ce80('0xbc')],'attachment':_0x5b170f[_0x63ce80('0x76')]};})[_0x24686c('0xd6')]()};return ejs[_0x24686c('0x2d')](path[_0x24686c('0x1d')](config['root'],_0x24686c('0xba'),'views','downloadInteraction.html'),{'interaction':_0x4c0373})[_0x24686c('0x97')](function(_0x225acd){return new Promise(function(_0x5343c7,_0x2e46be){const _0x2f265a=a66_0x4c46;pdf[_0x2f265a('0x73')](_0x225acd,_0x40b6d9)[_0x2f265a('0x119')](path['join'](_0x3c2936,_0x2f265a('0x9c')+_0x585037['id']+'-'+_0x4719e0+'.pdf'),function(_0x50674d,_0x2671c1){if(_0x50674d)return _0x2e46be(_0x50674d);_0x5343c7(_0x2671c1);});});})[_0x24686c('0x97')](function(){return new Promise(function(_0x5ada3b,_0x3785c4){zipdir(_0x3c2936,{'saveTo':_0x3fb356},function(_0x5168af,_0x36be2b){if(_0x5168af)return _0x3785c4(_0x5168af);return _0x5ada3b(_0x36be2b);});})['then'](function(){return new Promise(function(_0x3daa93,_0x429d47){rimraf(_0x3c2936,function(_0x128aad){if(_0x128aad)_0x429d47(_0x128aad);return _0x3daa93();});});})['then'](function(){const _0x4af2c8=a66_0x4c46;return _0x29d56f[_0x4af2c8('0x84')](_0x3fb356,_0x5eb960,function(_0x1b5516){const _0x58e0fb=_0x4af2c8;_0x1b5516?console[_0x58e0fb('0xa7')](_0x58e0fb('0xe1'),_0x1b5516):fs[_0x58e0fb('0x25')](_0x3fb356);});});});}else return _0x29d56f[_0x24686c('0x42')](0xc8);})[_0x2800e5('0x78')](handleError(_0x29d56f,null));}; \ No newline at end of file +const a80_0x1944=['like','ids','UserId','AbandonInteraction','c.mobile','secure','ejs','host','replace','get','unix','port','ContactId','count','customUpdate','lastName','website_alias','ui.ChatInteractionId','expr','Tag','CmContact','Visitor','authentication','addMessage','findOne','Contact.lastName','o.id\x20=\x20i.UserId','i.id','t.id\x20IN\x20?','N.A.','destroy','fields','renderFile','u.id\x20=\x20ui.UserId','offset','includeAgent','MATCH\x20(c.firstName,\x20c.lastName,\x20c.phone,\x20c.mobile,\x20c.fax,\x20c.email)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','basename','$substring','mkdirSync','includeAll','ChatMessage','customerIp','status','i.ChatWebsiteId\x20IN\x20?','log','file','DESC','text','referer','sqlOperator','index','`\x20=\x200','isEmpty','sort','tag','transcript-','CONCAT_WS(\x27\x20\x27,\x20o.name,\x20o.fullname)\x20LIKE\x20?','util','unlinkSync','http','c.firstName','all','select','mimetype','split','rawAttributes','server','c.id\x20=\x20i.ContactId\x20AND\x20c.deletedAt\x20IS\x20NULL','40px','YYYY-MM-DD\x20HH:mm:ss','code','./chatInteraction.socket','filters','ChatWebsiteId','Tags','parseSearch','downloadInteraction.html','moment','lodash','journey','createReadStream','30px','update','`unreadMessages`\x20=\x200','conditions','closedAt','close','limit','client','$gte','abandonInteraction,\x20%s,\x20%s,\x20%s','keyBy','unreadMessages','secret','removeTags','closed','groupBy','getChatWebsites','intersection','\x20=\x20?','clone','Contact','Owner.internal','start','$lte','../../config/logger','omit','root','MM/DD/YYYY\x20HH:mm:ss','tail','end','key','user','chat_websites','params','result','attributes','format','vidaooApiKey','Account','keys','include','transcript-%s.txt','o.internal','createWriteStream','ChatInteractionId','attachmentDownload','setTags','Interaction\x20already\x20assigned','api','cm_contacts','send','getMessages','pass','fullname','Contact.firstName','group','Messages','Attachment','concat','field','i.*','type','a.id\x20=\x20i.ChatWebsiteId','me.ChatInteractionId\x20=\x20i.id','out','../../components/parsers/advancedSearch','server/files/chat/upload/','c.fax','service','addTags','error','MotionCWB:','buildExpression','ChatInteraction','describe','MailAccount','Owner','c.firstName\x20LIKE\x20?\x20OR\x20c.lastName\x20LIKE\x20?\x20OR\x20c.email\x20LIKE\x20?','findAll','browserName','options','chat_messages','squel','operator','from','follow','toString','email','o.fullname','undefined','customerPort','then','`unreadMessages`\x20>\x200','ui.ChatInteractionId\x20IN\x20?','users','files','createdAt','agentAlias','request\x20sent','.pdf','body','https://api-vidaoo.xcally.com/api/v1/sessions','pipe','parse','\x22%s\x22\x20<%s>','%s%d','YYYY-MM-DD','attachmentUpload','direction','stringify','Account.key','c.email','originalname','MATCH\x20(me.body)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','join_url','compact','info','union','err','toFile','show','Account.mandatoryDisposition','sequelize','some','json','10px','catch','Content-Range','CONCAT(\x27,\x27,\x20`TagIds`,\x20\x27,\x27)\x20LIKE\x20?','auth','firstName','request','search','c.lastName','ChatInteraction,\x20%s,\x20%s','osName','create','value','entity\x20not\x20found','a.key','html-pdf','Contact.mobile','u.fullname','nolimit','read','model','[%s]\x20%s:\x20%s\x0a','download','forEach','now','attachments','i.ChatWebsiteId\x20IS\x20NOT\x20NULL','ChatWebsite','length','TagIds','t.id\x20=\x20it.TagId','tools_tags','i.id\x20LIKE\x20?','createVidaooSession','merge','chat_interaction_has_tags','order','name','\x0a\x20\x20\x20\x20\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','%s\x20#%d','filename','u.id','ChatInteraction,\x20%s,\x20%s,\x20%s','having','sendStatus','filter','query','abandon','Contact.fax','GROUP_CONCAT(DISTINCT\x20t.id)','System','i.ChatWebsiteId\x20IS\x20NULL','SUM(me.read\x20=\x200\x20AND\x20me.direction\x20=\x20\x27in\x27)','zip-dir','join','map','files/attachments/','register','color','push','\x20IS\x20NULL','rows','message','emit','isNumeric','Users','where','Smtp','User','chat_interactions','mailTranscript','alias','find','left_join','../../rediscache'];(function(_0x2337b4,_0x5f58e9){const _0x19448d=function(_0x4a11e8){while(--_0x4a11e8){_0x2337b4['push'](_0x2337b4['shift']());}};_0x19448d(++_0x5f58e9);}(a80_0x1944,0xc2));const a80_0x4a11=function(_0x2337b4,_0x5f58e9){_0x2337b4=_0x2337b4-0x180;let _0x19448d=a80_0x1944[_0x2337b4];return _0x19448d;};const a80_0x1391de=a80_0x4a11;'use strict';const pdf=require(a80_0x1391de(0x19c)),rimraf=require('rimraf'),zipdir=require(a80_0x1391de(0x1c2)),rp=require('request-promise-native'),moment=require(a80_0x1391de(0x226)),util=require(a80_0x1391de(0x212)),path=require('path'),ejs=require(a80_0x1391de(0x1de)),fs=require('fs'),_=require(a80_0x1391de(0x227)),squel=require(a80_0x1391de(0x27c)),{getSocket}=require(a80_0x1391de(0x1d7)),qs=require('../../components/parsers/qs'),as=require(a80_0x1391de(0x26b)),logger=require(a80_0x1391de(0x242))(a80_0x1391de(0x25a)),config=require('../../config/environment'),{db}=require('../../mysqldb'),{Op,ValidationError,QueryTypes}=require(a80_0x1391de(0x18a)),socket=getSocket();require(a80_0x1391de(0x220))[a80_0x1391de(0x1c6)](socket);const jayson=require('jayson/promise'),client=jayson['client'][a80_0x1391de(0x214)]({'port':0x232b}),client9004=jayson[a80_0x1391de(0x231)][a80_0x1391de(0x214)]({'port':0x232c});function respondWithRpcPromise(_0x239394,_0x155d46,_0x174c99,_0x102683){return new Promise(function(_0x2ece04,_0xb7c2e9){const _0x591bba=a80_0x4a11,_0x1388e5=_0x102683||client;return _0x1388e5[_0x591bba(0x193)](_0x239394,_0x174c99)[_0x591bba(0x285)](function(_0xf09684){const _0x456ba0=_0x591bba;logger[_0x456ba0(0x184)](_0x456ba0(0x196),_0x155d46,'request\x20sent'),logger['debug'](_0x456ba0(0x1b7),_0x155d46,_0x456ba0(0x28c),JSON[_0x456ba0(0x297)](_0xf09684));if(_0xf09684[_0x456ba0(0x270)]){if(_0xf09684[_0x456ba0(0x270)][_0x456ba0(0x21f)]===0x1f4)return logger[_0x456ba0(0x270)](_0x456ba0(0x196),_0x155d46,_0xf09684[_0x456ba0(0x270)][_0x456ba0(0x1cb)]),_0xb7c2e9(_0xf09684[_0x456ba0(0x270)][_0x456ba0(0x1cb)]);return logger[_0x456ba0(0x270)](_0x456ba0(0x196),_0x155d46,_0xf09684[_0x456ba0(0x270)][_0x456ba0(0x1cb)]),_0x2ece04(_0xf09684[_0x456ba0(0x270)]['message']);}else logger[_0x456ba0(0x184)](_0x456ba0(0x196),_0x155d46,'request\x20sent'),_0x2ece04(_0xf09684[_0x456ba0(0x24c)][_0x456ba0(0x1cb)]);})['catch'](function(_0x336a3b){const _0x259d71=_0x591bba;logger[_0x259d71(0x270)]('ChatInteraction,\x20%s,\x20%s',_0x155d46,_0x336a3b),_0xb7c2e9(_0x336a3b);});});}function respondWithStatusCode(_0xb51e86,_0xf11bd9){return _0xf11bd9=_0xf11bd9||0xcc,function(_0x304e66){const _0x5daa8b=a80_0x4a11;if(_0x304e66)return _0xb51e86[_0x5daa8b(0x1b9)](_0xf11bd9);return _0xb51e86[_0x5daa8b(0x203)](_0xf11bd9)[_0x5daa8b(0x247)]();};}function respondWithResult(_0x48e514,_0x40ac81){return _0x40ac81=_0x40ac81||0xc8,function(_0x45489c){const _0x2b2642=a80_0x4a11;if(_0x45489c)return _0x48e514[_0x2b2642(0x203)](_0x40ac81)[_0x2b2642(0x18c)](_0x45489c);};}function respondWithFilteredResult(_0x573536,_0x586e24){return function(_0x438473){const _0x566c4c=a80_0x4a11;if(_0x438473){const _0x2fe418=_0x438473[_0x566c4c(0x1e5)],_0x2fec00=_0x586e24[_0x566c4c(0x1fa)];let _0x2ddcb2=_0x586e24['offset']+_0x586e24[_0x566c4c(0x230)],_0x17e12a;return _0x2ddcb2>=_0x2fe418?(_0x2ddcb2=_0x2fe418,_0x17e12a=0xc8):_0x17e12a=0xce,_0x573536[_0x566c4c(0x203)](_0x17e12a),_0x573536['set'](_0x566c4c(0x18f),_0x2fec00+'-'+_0x2ddcb2+'/'+_0x2fe418)['json'](_0x438473);}return null;};}function saveUpdates(_0x4778dd){return function(_0xfbce69){const _0x3a60cc=a80_0x4a11;if(_0xfbce69)return _0xfbce69[_0x3a60cc(0x22b)](_0x4778dd)[_0x3a60cc(0x285)](function(_0x2749c2){return _0x2749c2;});return null;};}function removeEntity(_0x2e69a3){return function(_0x2e6fa4){const _0x2890f0=a80_0x4a11;if(_0x2e6fa4)return _0x2e6fa4[_0x2890f0(0x1f6)]()['then'](function(){const _0x1ace21=_0x2890f0;_0x2e69a3['status'](0xcc)[_0x1ace21(0x247)]();});};}function handleEntityNotFound(_0x104013){return function(_0x5d5dda){const _0x12341d=a80_0x4a11;return!_0x5d5dda&&_0x104013[_0x12341d(0x1b9)](0x194),_0x5d5dda;};}function handleError(_0x2f9059,_0x17a8b7){return _0x17a8b7=_0x17a8b7||0x1f4,function(_0x8a9721){const _0x114383=a80_0x4a11;logger[_0x114383(0x270)](_0x8a9721['stack']),_0x8a9721[_0x114383(0x1b2)]&&delete _0x8a9721[_0x114383(0x1b2)],_0x2f9059['status'](_0x17a8b7)[_0x114383(0x25c)](_0x8a9721);};}function getInteractionUsers(_0x5b384a,_0x22d0f4){return new Promise(function(_0x103e5d,_0x4686d4){const _0x41c828=a80_0x4a11;try{_0x22d0f4[_0x5b384a['id']]&&(_0x5b384a[_0x41c828(0x1ce)]=_['map'](_0x22d0f4[_0x5b384a['id']],function(_0x4c0c7a){const _0x55f03d=_0x41c828;return{'id':_0x4c0c7a['id'],'fullname':_0x4c0c7a[_0x55f03d(0x25f)]};}));}catch(_0x19774c){_0x4686d4(_0x19774c);}_0x103e5d(_0x5b384a);});}function getInteractionTags(_0x31cc71,_0xd65097){return new Promise(function(_0x70f03d,_0x51d3a0){const _0x233e29=a80_0x4a11;try{_0x31cc71[_0x233e29(0x1aa)]&&(_0x31cc71[_0x233e29(0x223)]=[],_0x31cc71[_0x233e29(0x1aa)][_0x233e29(0x219)](',')[_0x233e29(0x1a4)](function(_0x5ea0c9){const _0x3402dd=_0x233e29;_0x31cc71[_0x3402dd(0x223)][_0x3402dd(0x1c8)](_0xd65097[_0x5ea0c9]);})),delete _0x31cc71[_0x233e29(0x1aa)];}catch(_0x1aee89){_0x51d3a0(_0x1aee89);}_0x70f03d(_0x31cc71);});}function updateChatInteraction(_0x84b0d6,_0x4c8c38,_0x513511){return new Promise(function(_0x5283a9,_0x165536){const _0x5e645a=a80_0x4a11;return getInteractionUsers(_0x84b0d6,_0x513511)[_0x5e645a(0x285)](function(_0x5617f5){return getInteractionTags(_0x5617f5,_0x4c8c38);})[_0x5e645a(0x285)](function(_0x30fdd4){_0x5283a9(_0x30fdd4);})['catch'](function(_0x58c8a4){_0x165536(_0x58c8a4);});});}exports[a80_0x1391de(0x20b)]=function(_0x4151c5,_0x38a537){const _0x512058=a80_0x1391de,_0x54ed0e={},_0x368f71={},_0x53521a={'count':0x0,'rows':[]},_0x85560f=_[_0x512058(0x1c4)](db[_0x512058(0x273)]['rawAttributes'],function(_0x1d1130){const _0x538c55=_0x512058;return{'name':_0x1d1130['fieldName'],'type':_0x1d1130[_0x538c55(0x267)][_0x538c55(0x248)]};});_0x368f71[_0x512058(0x1a1)]=_['map'](_0x85560f,_0x512058(0x1b2)),_0x368f71[_0x512058(0x1bb)]=_[_0x512058(0x251)](_0x4151c5[_0x512058(0x1bb)]),_0x368f71['filters']=_[_0x512058(0x23b)](_0x368f71[_0x512058(0x1a1)],_0x368f71[_0x512058(0x1bb)]),_0x54ed0e[_0x512058(0x24d)]=_[_0x512058(0x23b)](_0x368f71[_0x512058(0x1a1)],qs[_0x512058(0x1f7)](_0x4151c5[_0x512058(0x1bb)][_0x512058(0x1f7)])),_0x54ed0e['attributes']=_0x54ed0e['attributes']['length']?_0x54ed0e[_0x512058(0x24d)]:_0x368f71['model'];typeof _0x4151c5[_0x512058(0x1bb)][_0x512058(0x19f)]==='undefined'&&(_0x54ed0e[_0x512058(0x230)]=qs[_0x512058(0x230)](_0x4151c5[_0x512058(0x1bb)]['limit']),_0x54ed0e[_0x512058(0x1fa)]=qs[_0x512058(0x1fa)](_0x4151c5[_0x512058(0x1bb)][_0x512058(0x1fa)]));_0x54ed0e[_0x512058(0x1b1)]=qs['sort'](_0x4151c5[_0x512058(0x1bb)][_0x512058(0x20e)]),_0x54ed0e[_0x512058(0x1cf)]=qs['filters'](_['pick'](_0x4151c5[_0x512058(0x1bb)],_0x368f71['filters']),_0x85560f);let _0x1804e2=[];const _0x146efd=squel[_0x512058(0x217)]()['field']('id')[_0x512058(0x265)](_0x512058(0x1b2))['field'](_0x512058(0x1c7))['from'](_0x512058(0x1ac)),_0x1110cf=squel[_0x512058(0x217)]()[_0x512058(0x265)](_0x512058(0x1b6))['field'](_0x512058(0x19e))['field'](_0x512058(0x1e9))[_0x512058(0x27e)]('user_has_chat_interactions','ui')[_0x512058(0x1d6)](_0x512058(0x288),'u',_0x512058(0x1f9)),_0x5f25ee=squel[_0x512058(0x217)]()[_0x512058(0x27e)](_0x512058(0x1d2),'i')[_0x512058(0x1d6)](_0x512058(0x25b),'c',_0x512058(0x21c))[_0x512058(0x1d6)](_0x512058(0x288),'o',_0x512058(0x1f2))[_0x512058(0x1d6)](_0x512058(0x24a),'a',_0x512058(0x268))['left_join'](_0x512058(0x27b),'me',_0x512058(0x269))[_0x512058(0x1d6)](_0x512058(0x1b0),'it','it.ChatInteractionId\x20=\x20i.id')['left_join'](_0x512058(0x1ac),'t',_0x512058(0x1ab)),_0x3f257d=squel[_0x512058(0x1ea)]();let _0x26bc8a=[];const _0x392803=squel[_0x512058(0x1ea)]();let _0x2f7e4e;if(_0x4151c5[_0x512058(0x1bb)][_0x512058(0x194)]){_0x2f7e4e=as[_0x512058(0x224)](_0x4151c5[_0x512058(0x1bb)][_0x512058(0x194)]);const _0x4fbc64=_0x2f7e4e[_0x512058(0x20a)];for(let _0x2a1ee5=0x0;_0x2a1ee5<_0x2f7e4e[_0x512058(0x22d)][_0x512058(0x1a9)];_0x2a1ee5++){const _0xbad295=_0x2f7e4e[_0x512058(0x22d)][_0x2a1ee5],_0x2a0817='i';let _0x17da48,_0x286a6f=_[_0x512058(0x1d5)](_0x85560f,[_0x512058(0x1b2),_0xbad295[_0x512058(0x265)]]);if(!_0x286a6f)switch(_0xbad295[_0x512058(0x265)]){case _0x512058(0x235):_0xbad295['value']==0x1?_0x5f25ee['having']('`'+_0xbad295[_0x512058(0x265)]+_0x512058(0x20c)):_0x5f25ee[_0x512058(0x1b8)]('`'+_0xbad295['field']+'`\x20>\x200');break;case _0x512058(0x23e):if(_0xbad295[_0x512058(0x27d)]==='$substring'){if(_0xbad295[_0x512058(0x199)][_0x512058(0x219)]('\x20')['length']>0x1)_0x3f257d[_0x4fbc64](_0x512058(0x1fc),qs['getFullTextValue'](_0xbad295[_0x512058(0x199)]),null);else{const _0x7a243c='%'+_0xbad295[_0x512058(0x199)]+'%';_0x3f257d[_0x4fbc64](_0x512058(0x277),_0x7a243c,_0x7a243c,_0x7a243c);}}else _0x286a6f=_[_0x512058(0x1d5)](_0x85560f,['name','ContactId']),_0xbad295[_0x512058(0x265)]=_0x512058(0x1e4),_0x17da48=as['buildExpression'](_0x2a0817,_0x286a6f[_0x512058(0x267)],_0xbad295),_0x3f257d[_0x4fbc64](_0x17da48[_0x512058(0x208)],_0x17da48[_0x512058(0x199)][_0x512058(0x240)],_0x17da48[_0x512058(0x199)][_0x512058(0x247)]);break;case _0x512058(0x1eb):{const _0x2d00dc=_0xbad295[_0x512058(0x199)][_0x512058(0x219)](',')[_0x512058(0x1c4)](function(_0x14df84){return Number(_0x14df84);});_0x2d00dc[_0x512058(0x1a4)](function(_0x4cce94){const _0xd2ff23=_0x512058;_0x392803['or'](_0xd2ff23(0x190),'%,'+_0x4cce94+',%');}),_0x26bc8a=_[_0x512058(0x185)](_0x26bc8a,_0x2d00dc);}break;case _0x512058(0x1d1):_0xbad295[_0x512058(0x27d)]===_0x512058(0x1fe)?_0x3f257d[_0x4fbc64](_0x512058(0x211),'%'+_0xbad295[_0x512058(0x199)]+'%',null):(_0x286a6f=_[_0x512058(0x1d5)](_0x85560f,[_0x512058(0x1b2),'UserId']),_0xbad295['field']=_0x512058(0x1da),_0x17da48=as[_0x512058(0x272)](_0x2a0817,_0x286a6f['type'],_0xbad295),_0x3f257d[_0x4fbc64](_0x17da48[_0x512058(0x208)],_0x17da48[_0x512058(0x199)]['start'],_0x17da48[_0x512058(0x199)][_0x512058(0x247)]));break;case _0x512058(0x28e):_0x17da48=as[_0x512058(0x272)]('me',null,_0xbad295),_0x3f257d[_0x4fbc64](_0x17da48[_0x512058(0x208)],_0x17da48[_0x512058(0x199)]['start'],_0x17da48[_0x512058(0x199)][_0x512058(0x247)]);break;}else _0x17da48=as[_0x512058(0x272)](_0x2a0817,_0x286a6f[_0x512058(0x267)],_0xbad295),_0x3f257d[_0x4fbc64](_0x17da48[_0x512058(0x208)],_0x17da48['value'][_0x512058(0x240)],_0x17da48[_0x512058(0x199)][_0x512058(0x247)]);}}else{const _0x1688d6=_(_0x4151c5[_0x512058(0x1bb)])[_0x512058(0x251)]()[_0x512058(0x1c4)](function(_0x3a3fde){const _0x4718c6=_0x512058;return _[_0x4718c6(0x18b)](_0x85560f,['name',_0x3a3fde])?_0x3a3fde:undefined;})[_0x512058(0x183)]()[_0x512058(0x199)]();!_[_0x512058(0x20d)](_0x1688d6)&&_0x1688d6[_0x512058(0x1a4)](function(_0x2512e2){const _0x1a3042=_0x512058;if(_0x2512e2===_0x1a3042(0x222))_0x5f25ee[_0x1a3042(0x1cf)](_0x1a3042(0x204),[][_0x1a3042(0x264)](_0x4151c5[_0x1a3042(0x1bb)][_0x2512e2]));else{if(_0x2512e2===_0x1a3042(0x28a)){const _0xc1312c=JSON['parse'](_0x4151c5['query'][_0x2512e2])['$gte'],_0x1f405b=JSON[_0x1a3042(0x291)](_0x4151c5[_0x1a3042(0x1bb)][_0x2512e2])[_0x1a3042(0x241)];_0x5f25ee[_0x1a3042(0x1cf)]('i.createdAt\x20BETWEEN\x20?\x20AND\x20?',_0xc1312c,_0x1f405b);}else _0x4151c5[_0x1a3042(0x1bb)][_0x2512e2]==='null'?_0x5f25ee[_0x1a3042(0x1cf)]('i.'+_0x2512e2+_0x1a3042(0x1c9)):_0x5f25ee[_0x1a3042(0x1cf)]('i.'+_0x2512e2+_0x1a3042(0x23c),_0x4151c5[_0x1a3042(0x1bb)][_0x2512e2]);}});_0x4151c5['query'][_0x512058(0x1a0)]&&(_0x4151c5[_0x512058(0x1bb)][_0x512058(0x1a0)]==0x1?_0x5f25ee[_0x512058(0x1b8)](_0x512058(0x22c)):_0x5f25ee[_0x512058(0x1b8)](_0x512058(0x286)));_0x4151c5[_0x512058(0x1bb)]['tag']&&(_0x26bc8a=_['isArray'](_0x4151c5[_0x512058(0x1bb)][_0x512058(0x20f)])?_0x4151c5['query'][_0x512058(0x20f)]:new Array(_0x4151c5['query']['tag']),_0x26bc8a[_0x512058(0x1a4)](function(_0x5217f1){const _0x40a30f=_0x512058;_0x392803['or'](_0x40a30f(0x190),'%,'+_0x5217f1+',%');}));if(_0x4151c5['query']['filter']){const _0x5a0f2a=_0x4151c5[_0x512058(0x1bb)][_0x512058(0x1ba)][_0x512058(0x1e0)]('\x5c','\x5c\x5c')[_0x512058(0x1e0)](/'/g,'\x27\x27');qs[_0x512058(0x1cd)](_0x5a0f2a)?_0x3f257d['or'](_0x512058(0x1ad),_0x5a0f2a+'%'):_0x3f257d['or'](_0x512058(0x181),qs['getFullTextValue'](_0x5a0f2a))['or']('CONCAT(c.firstName,\x20\x27\x20\x27,\x20c.lastName)\x20LIKE\x20?',_0x5a0f2a+'%');}}_0x5f25ee[_0x512058(0x1cf)](_0x3f257d),_0x5f25ee[_0x512058(0x261)](_0x512058(0x1f3));let _0x161514={'type':QueryTypes['SELECT'],'raw':!![]};const _0x4cbac5=_0x5f25ee[_0x512058(0x23d)]();_0x4cbac5['field'](_0x512058(0x1f3)),_0x4cbac5['field'](_0x512058(0x1c1),'unreadMessages'),_0x54ed0e[_0x512058(0x1b1)]&&_0x54ed0e[_0x512058(0x1b1)][_0x512058(0x1a4)](function(_0x34a0eb){const _0x4038b1=_0x512058;_0x5f25ee[_0x4038b1(0x1b1)]('i.'+_0x34a0eb[0x0],_0x34a0eb[0x1]===_0x4038b1(0x207)?![]:!![]);}),!_[_0x512058(0x20d)](_0x26bc8a)&&(_0x5f25ee[_0x512058(0x1b8)](_0x392803),_0x4cbac5[_0x512058(0x1cf)](_0x512058(0x1f4),_0x26bc8a)),Promise['resolve']()[_0x512058(0x285)](function(){const _0x7fbdb3=_0x512058;if(!_0x2f7e4e){if(_0x4151c5[_0x7fbdb3(0x1bb)][_0x7fbdb3(0x222)]||_0x4151c5[_0x7fbdb3(0x1bb)][_0x7fbdb3(0x228)])return;_0x4cbac5[_0x7fbdb3(0x1cf)](_0x7fbdb3(0x1a7)),_0x5f25ee['where'](_0x7fbdb3(0x1a7));return;}return _0x4151c5[_0x7fbdb3(0x249)][_0x7fbdb3(0x23a)]({'attributes':['id'],'raw':!![]})['then'](function(_0x446775){const _0x206c95=_0x7fbdb3;_['isEmpty'](_0x446775)?(_0x4cbac5['where'](_0x206c95(0x1c0)),_0x5f25ee[_0x206c95(0x1cf)]('i.ChatWebsiteId\x20IS\x20NULL')):(_0x4cbac5[_0x206c95(0x1cf)](_0x206c95(0x204),_[_0x206c95(0x1c4)](_0x446775,'id')),_0x5f25ee[_0x206c95(0x1cf)](_0x206c95(0x204),_[_0x206c95(0x1c4)](_0x446775,'id')));});})['then'](function(){const _0x1b1dc1=_0x512058;db[_0x1b1dc1(0x18a)][_0x1b1dc1(0x1bb)](_0x4cbac5[_0x1b1dc1(0x280)](),_0x161514)[_0x1b1dc1(0x285)](function(_0x14cb02){const _0x406c52=_0x1b1dc1;_0x53521a[_0x406c52(0x1e5)]=_0x14cb02['length'];if(_0x53521a[_0x406c52(0x1e5)]===0x0)return[];return db[_0x406c52(0x18a)]['query'](_0x146efd['toString'](),_0x161514)[_0x406c52(0x285)](function(_0x3dc3c2){const _0x11a6e1=_0x406c52;_0x1804e2=_[_0x11a6e1(0x234)](_0x3dc3c2,'id'),_0x161514=_[_0x11a6e1(0x1af)](_0x161514,{'model':db['ChatInteraction'],'mapToModel':!![],'raw':!![],'nest':!![]});_0x4151c5[_0x11a6e1(0x1bb)][_0x11a6e1(0x1f7)]?_0x54ed0e[_0x11a6e1(0x24d)][_0x11a6e1(0x1a4)](function(_0x43f7b8){const _0x3047d6=_0x11a6e1;_0x5f25ee[_0x3047d6(0x265)]('i.'+_0x43f7b8);}):(_0x5f25ee[_0x11a6e1(0x265)](_0x11a6e1(0x1c1),_0x11a6e1(0x235)),_0x5f25ee[_0x11a6e1(0x265)](_0x11a6e1(0x19b),_0x11a6e1(0x298)),_0x5f25ee[_0x11a6e1(0x265)]('a.mandatoryDisposition',_0x11a6e1(0x189)),_0x5f25ee['field'](_0x11a6e1(0x266)),_0x5f25ee[_0x11a6e1(0x265)](_0x11a6e1(0x215),_0x11a6e1(0x260)),_0x5f25ee[_0x11a6e1(0x265)](_0x11a6e1(0x195),_0x11a6e1(0x1f1)),_0x5f25ee[_0x11a6e1(0x265)](_0x11a6e1(0x299),'Contact.email'),_0x5f25ee[_0x11a6e1(0x265)]('c.phone','Contact.phone'),_0x5f25ee[_0x11a6e1(0x265)](_0x11a6e1(0x1dc),_0x11a6e1(0x19d)),_0x5f25ee[_0x11a6e1(0x265)](_0x11a6e1(0x26d),_0x11a6e1(0x1bd)),_0x5f25ee[_0x11a6e1(0x265)](_0x11a6e1(0x282),'Owner.fullname'),_0x5f25ee[_0x11a6e1(0x265)](_0x11a6e1(0x254),_0x11a6e1(0x23f)),_0x5f25ee[_0x11a6e1(0x265)](_0x11a6e1(0x1be),_0x11a6e1(0x1aa)));if(_0x54ed0e['limit'])_0x5f25ee[_0x11a6e1(0x230)](_0x54ed0e[_0x11a6e1(0x230)]);if(_0x54ed0e[_0x11a6e1(0x1fa)])_0x5f25ee[_0x11a6e1(0x1fa)](_0x54ed0e[_0x11a6e1(0x1fa)]);return db[_0x11a6e1(0x18a)][_0x11a6e1(0x1bb)](_0x5f25ee[_0x11a6e1(0x280)](),_0x161514);})[_0x406c52(0x285)](function(_0x270a9a){const _0x14299d=_0x406c52;return _0x1110cf[_0x14299d(0x1cf)](_0x14299d(0x287),_[_0x14299d(0x1c4)](_0x270a9a,'id')),db[_0x14299d(0x18a)][_0x14299d(0x1bb)](_0x1110cf[_0x14299d(0x280)](),_0x161514)[_0x14299d(0x285)](function(_0x1bcd94){const _0xab0be9=_0x14299d,_0xededa5=_[_0xab0be9(0x239)](_0x1bcd94,'ChatInteractionId'),_0x2c4cf6=[];return _0x270a9a[_0xab0be9(0x1a4)](function(_0x3183b0){const _0x49af96=_0xab0be9;_0x2c4cf6[_0x49af96(0x1c8)](updateChatInteraction(_0x3183b0,_0x1804e2,_0xededa5));}),Promise[_0xab0be9(0x216)](_0x2c4cf6);});});})[_0x1b1dc1(0x285)](function(_0x3190e1){const _0x50e694=_0x1b1dc1;return _0x53521a[_0x50e694(0x1ca)]=_0x3190e1,_0x53521a;})[_0x1b1dc1(0x285)](respondWithFilteredResult(_0x38a537,_0x54ed0e));})[_0x512058(0x18e)](handleError(_0x38a537,null));},exports[a80_0x1391de(0x188)]=function(_0x8430ef,_0x17c8cb){const _0x28f20b=a80_0x1391de;let _0x55e090={'raw':![],'where':{'id':_0x8430ef[_0x28f20b(0x24b)]['id']}};const _0x33c172={};return _0x33c172[_0x28f20b(0x1a1)]=_[_0x28f20b(0x251)](db[_0x28f20b(0x273)][_0x28f20b(0x21a)]),_0x33c172[_0x28f20b(0x1bb)]=_[_0x28f20b(0x251)](_0x8430ef[_0x28f20b(0x1bb)]),_0x33c172[_0x28f20b(0x221)]=_[_0x28f20b(0x23b)](_0x33c172[_0x28f20b(0x1a1)],_0x33c172[_0x28f20b(0x1bb)]),_0x55e090[_0x28f20b(0x24d)]=_[_0x28f20b(0x23b)](_0x33c172[_0x28f20b(0x1a1)],qs[_0x28f20b(0x1f7)](_0x8430ef[_0x28f20b(0x1bb)]['fields'])),_0x55e090['attributes']=_0x55e090['attributes'][_0x28f20b(0x1a9)]?_0x55e090[_0x28f20b(0x24d)]:_0x33c172[_0x28f20b(0x1a1)],_0x8430ef[_0x28f20b(0x1bb)][_0x28f20b(0x200)]&&(_0x55e090[_0x28f20b(0x252)]=[{'all':!![]}]),_0x55e090=_[_0x28f20b(0x1af)]({},_0x55e090,_0x8430ef['options']),db[_0x28f20b(0x273)][_0x28f20b(0x1f0)](_0x55e090)[_0x28f20b(0x285)](handleEntityNotFound(_0x17c8cb,null))['then'](respondWithResult(_0x17c8cb,null))[_0x28f20b(0x18e)](handleError(_0x17c8cb,null));},exports[a80_0x1391de(0x198)]=function(_0x1ba0c1,_0x5db3f6){const _0x5d7c30=a80_0x1391de;return db['ChatInteraction']['create'](_0x1ba0c1[_0x5d7c30(0x28e)],{})['then'](respondWithResult(_0x5db3f6,0xc9))['catch'](handleError(_0x5db3f6,null));},exports[a80_0x1391de(0x22b)]=function(_0x1f64f0,_0x5cd30f){const _0x5362bf=a80_0x1391de;return _0x1f64f0[_0x5362bf(0x28e)]['id']&&delete _0x1f64f0[_0x5362bf(0x28e)]['id'],db[_0x5362bf(0x273)][_0x5362bf(0x1f0)]({'where':{'id':_0x1f64f0[_0x5362bf(0x24b)]['id']}})[_0x5362bf(0x285)](handleEntityNotFound(_0x5cd30f,null))[_0x5362bf(0x285)](saveUpdates(_0x1f64f0[_0x5362bf(0x28e)],null))['then'](respondWithResult(_0x5cd30f,null))[_0x5362bf(0x18e)](handleError(_0x5cd30f,null));},exports[a80_0x1391de(0x1f6)]=function(_0x2b2cd2,_0x3ad928){const _0x5013b6=a80_0x1391de;return db['ChatInteraction'][_0x5013b6(0x1f0)]({'where':{'id':_0x2b2cd2[_0x5013b6(0x24b)]['id']}})['then'](handleEntityNotFound(_0x3ad928,null))[_0x5013b6(0x285)](removeEntity(_0x3ad928,null))[_0x5013b6(0x18e)](handleError(_0x3ad928,null));},exports[a80_0x1391de(0x274)]=function(_0x5b67f4,_0x13dce1){const _0x1d15f7=a80_0x1391de;return db[_0x1d15f7(0x273)]['describe']()[_0x1d15f7(0x285)](respondWithResult(_0x13dce1,null))[_0x1d15f7(0x18e)](handleError(_0x13dce1,null));},exports[a80_0x1391de(0x1ae)]=function(_0x289f86,_0x3b6a98){const _0x512be8=a80_0x1391de,_0x13cc19=_0x289f86[_0x512be8(0x24b)]['id'];let _0x47a3b3,_0x274b47,_0x58b2fb;return db['ChatInteraction']['findOne']({'where':{'id':_0x13cc19}})[_0x512be8(0x285)](function(_0x58c659){const _0x293665=_0x512be8;return _0x47a3b3=_0x58c659,db[_0x293665(0x1a8)]['findOne']({'where':{'id':_0x58c659[_0x293665(0x222)]},'attributes':['id',_0x293665(0x24f),'vidaooEscalation'],'raw':!![]});})[_0x512be8(0x285)](function(_0x1d58df){const _0x2a5edc=_0x512be8;if(_0x1d58df&&_0x1d58df[_0x2a5edc(0x24f)]&&_0x1d58df['vidaooEscalation']){_0x274b47=_0x1d58df;const _0x52a5c5={'rejectUnauthorized':![],'method':'POST','uri':_0x2a5edc(0x28f),'headers':{'X-APIKEY':_0x1d58df[_0x2a5edc(0x24f)]},'body':{'name':_0x2a5edc(0x271)+_0x13cc19},'redirect':_0x2a5edc(0x27f),'json':!![]};return rp(_0x52a5c5);}else throw new ValidationError('Error\x20in\x20Vidaoo\x20configuration');})[_0x512be8(0x285)](function(_0xd461c8){const _0x266dd9=_0x512be8;_0x58b2fb=_0xd461c8;if(_0x58b2fb['id']){const _0x1dd778={'body':_0x58b2fb[_0x266dd9(0x182)],'ChatWebsiteId':_0x274b47['id'],'ChatInteractionId':_0x47a3b3['id'],'direction':_0x266dd9(0x26a),'UserId':_0x289f86[_0x266dd9(0x249)]['id']};return db[_0x266dd9(0x201)]['create'](_0x1dd778,{});}else throw new ValidationError('Unable\x20to\x20create\x20Vidaoo\x20session');})[_0x512be8(0x285)](function(){return _0x47a3b3['update']({'vidaooSessionId':_0x58b2fb['id']});})[_0x512be8(0x285)](respondWithResult(_0x3b6a98,null))['catch'](handleError(_0x3b6a98,null));},exports[a80_0x1391de(0x1e6)]=function(_0x2c9f16,_0x51091a){const _0x5a8bc5=a80_0x1391de;return _0x2c9f16[_0x5a8bc5(0x28e)]['id']&&delete _0x2c9f16[_0x5a8bc5(0x28e)]['id'],db[_0x5a8bc5(0x273)]['findOne']({'where':{'id':_0x2c9f16[_0x5a8bc5(0x24b)]['id']}})[_0x5a8bc5(0x285)](handleEntityNotFound(_0x51091a,null))[_0x5a8bc5(0x285)](saveUpdates(_0x2c9f16['body'],null))['then'](respondWithResult(_0x51091a,null))[_0x5a8bc5(0x18e)](handleError(_0x51091a,null));},exports[a80_0x1391de(0x1bc)]=function(_0x1bdb28,_0x36ed62){const _0x41c8d7=a80_0x1391de;return _0x1bdb28[_0x41c8d7(0x28e)]['id']&&delete _0x1bdb28[_0x41c8d7(0x28e)]['id'],db['ChatInteraction'][_0x41c8d7(0x1f0)]({'where':{'id':_0x1bdb28['params']['id']}})[_0x41c8d7(0x285)](function(_0x52a1aa){const _0x3ee24b=_0x41c8d7;if(!_0x52a1aa)logger[_0x3ee24b(0x270)](_0x3ee24b(0x233),_0x3ee24b(0x1bc),0x194,_0x3ee24b(0x19a)),_0x36ed62['sendStatus'](0x194);else{if(_0x52a1aa[_0x3ee24b(0x1da)])throw new ValidationError(_0x3ee24b(0x259));}return _0x52a1aa;})[_0x41c8d7(0x285)](function(_0x83d42f){const _0x2f6ade=_0x41c8d7;if(_0x83d42f)return _0x83d42f['update']({'closed':_0x1bdb28[_0x2f6ade(0x28e)][_0x2f6ade(0x238)],'disposition':_0x1bdb28[_0x2f6ade(0x28e)]['disposition']})[_0x2f6ade(0x285)](function(_0x2bed7d){return _0x2bed7d;});})[_0x41c8d7(0x285)](function(){const _0x1e0d36=_0x41c8d7;return respondWithRpcPromise(_0x1e0d36(0x1db),_0x1e0d36(0x1bc),_0x1bdb28['body'],client9004);})['then'](respondWithResult(_0x36ed62,null))['catch'](handleError(_0x36ed62,null));},exports[a80_0x1391de(0x295)]=function(_0x150de9,_0x870884){const _0x4f7e2d=a80_0x1391de;return _0x150de9[_0x4f7e2d(0x28e)][_0x4f7e2d(0x1b2)]=_0x150de9[_0x4f7e2d(0x206)][_0x4f7e2d(0x180)],_0x150de9[_0x4f7e2d(0x28e)][_0x4f7e2d(0x1fd)]=_0x150de9['file'][_0x4f7e2d(0x1b5)],_0x150de9[_0x4f7e2d(0x28e)][_0x4f7e2d(0x267)]=_0x150de9[_0x4f7e2d(0x206)][_0x4f7e2d(0x218)],db[_0x4f7e2d(0x263)]['create'](_0x150de9[_0x4f7e2d(0x28e)])[_0x4f7e2d(0x285)](respondWithResult(_0x870884,0xc9))[_0x4f7e2d(0x18e)](handleError(_0x870884,null));},exports[a80_0x1391de(0x257)]=function(_0x2e6661,_0x99a652){const _0x254592=a80_0x1391de;return db['ChatInteraction'][_0x254592(0x1f0)]({'where':{'id':_0x2e6661[_0x254592(0x24b)]['id']},'raw':!![]})[_0x254592(0x285)](handleEntityNotFound(_0x99a652,null))['then'](function(_0x47c454){const _0x5dfa2a=_0x254592;if(_0x47c454){if(_0x47c454[_0x5dfa2a(0x238)])return _0x99a652[_0x5dfa2a(0x203)](0x193)['json']({'status':0x193,'message':'Unauthorized'});return db['Attachment']['findOne']({'where':{'id':_0x2e6661[_0x5dfa2a(0x1bb)]['attachId']},'raw':!![]})[_0x5dfa2a(0x285)](handleEntityNotFound(_0x99a652,null));}})[_0x254592(0x285)](function(_0x442b96){const _0x52468b=_0x254592;if(_0x442b96)return _0x99a652[_0x52468b(0x1a3)](path[_0x52468b(0x1c3)](config['root'],_0x52468b(0x1c5),_0x442b96[_0x52468b(0x1fd)]));})[_0x254592(0x18e)](handleError(_0x99a652,null));},exports[a80_0x1391de(0x22f)]=function(_0x3c5274,_0x53be73){const _0xc3af99=a80_0x1391de;let _0x436a9e=null,_0x416a05=null,_0x531dfc=null;return _0x3c5274['body']['id']&&delete _0x3c5274[_0xc3af99(0x28e)]['id'],_0x3c5274[_0xc3af99(0x28e)][_0xc3af99(0x1d3)]&&(_0x531dfc=path[_0xc3af99(0x1c3)](config[_0xc3af99(0x244)],_0xc3af99(0x26c),util[_0xc3af99(0x24e)](_0xc3af99(0x253),Date[_0xc3af99(0x1a5)]())),_0x3c5274[_0xc3af99(0x28e)]['pathTranscript']=_0x531dfc),db[_0xc3af99(0x273)][_0xc3af99(0x1f0)]({'where':{'id':_0x3c5274['params']['id']},'include':[{'model':db['ChatMessage'],'as':'Messages','include':[{'model':db[_0xc3af99(0x1d1)],'as':_0xc3af99(0x1d1)}]}]})[_0xc3af99(0x285)](handleEntityNotFound(_0x53be73,null))[_0xc3af99(0x285)](saveUpdates(_0x3c5274[_0xc3af99(0x28e)],null))[_0xc3af99(0x285)](function(_0x25d8c3){const _0x27eeb7=_0xc3af99;if(_0x25d8c3)return _0x436a9e=_0x25d8c3,db[_0x27eeb7(0x1a8)][_0x27eeb7(0x1f0)]({'where':{'id':_0x436a9e['ChatWebsiteId']}});})[_0xc3af99(0x285)](function(_0x461691){const _0x447c68=_0xc3af99;if(_0x461691)return _0x416a05=_0x461691,db[_0x447c68(0x1ec)][_0x447c68(0x1f0)]({'where':{'id':_0x436a9e['ContactId']}});})[_0xc3af99(0x285)](function(_0x3827fd){const _0x2c4515=_0xc3af99;if(_0x3827fd){if(_0x531dfc){let _0x5ff09a=null;for(let _0xb38c8=0x1;_0xb38c8<_0x436a9e[_0x2c4515(0x262)][_0x2c4515(0x1a9)];++_0xb38c8){_0x5ff09a=_0x436a9e[_0x2c4515(0x262)][_0xb38c8];let _0x377399=_0x5ff09a[_0x2c4515(0x1da)]?util[_0x2c4515(0x24e)]('%s%d',_0x416a05['agentAlias'],_0x5ff09a[_0x2c4515(0x1da)]):_0x2c4515(0x1bf);const _0x291af6=_0x3c5274[_0x2c4515(0x28e)]['customer']||util[_0x2c4515(0x24e)](_0x2c4515(0x293),_0x2c4515(0x1ed),_0x5ff09a[_0x2c4515(0x1e4)]);switch(_0x416a05['agentIdentifier']){case _0x2c4515(0x1e8):_0x377399=_0x5ff09a[_0x2c4515(0x1da)]?util[_0x2c4515(0x24e)](_0x2c4515(0x293),_0x416a05[_0x2c4515(0x28b)],_0x5ff09a['UserId']):_0x2c4515(0x1bf);break;case'agent_alias':_0x377399=_0x5ff09a['UserId']?_0x5ff09a[_0x2c4515(0x1d1)][_0x2c4515(0x1d4)]||_0x5ff09a[_0x2c4515(0x1d1)][_0x2c4515(0x25f)]:_0x2c4515(0x1bf);break;case'agent_fullname':_0x377399=_0x5ff09a['UserId']?_0x5ff09a['User'][_0x2c4515(0x25f)]:'System';break;default:_0x377399=_0x5ff09a[_0x2c4515(0x1da)]?util[_0x2c4515(0x24e)](_0x2c4515(0x293),_0x416a05[_0x2c4515(0x28b)],_0x5ff09a[_0x2c4515(0x1da)]):_0x2c4515(0x1bf);}const _0x2c5ecc=util[_0x2c4515(0x24e)](_0x2c4515(0x1a2),moment(_0x5ff09a[_0x2c4515(0x28a)])['format'](_0x2c4515(0x245)),_0x5ff09a[_0x2c4515(0x296)]==='in'?_0x291af6:_0x377399,_0x5ff09a[_0x2c4515(0x28e)]);!_0x5ff09a['secret']&&fs['appendFileSync'](_0x531dfc,_0x2c5ecc);}return db[_0x2c4515(0x275)][_0x2c4515(0x1f0)]({'where':{'service':!![]},'include':[{'model':db['MailServerOut'],'as':_0x2c4515(0x1d0),'raw':!![]}]});}}})[_0xc3af99(0x285)](function(_0x460453){const _0x3c82eb=_0xc3af99;if(_0x460453&&_0x460453[_0x3c82eb(0x1d0)]&&_0x3c5274[_0x3c82eb(0x28e)]){const _0x51646f={'tls':{'rejectUnauthorized':![]}};return _0x460453[_0x3c82eb(0x1d0)][_0x3c82eb(0x26e)]?_0x51646f[_0x3c82eb(0x26e)]=_0x460453[_0x3c82eb(0x1d0)][_0x3c82eb(0x26e)]:(_0x51646f['host']=_0x460453[_0x3c82eb(0x1d0)][_0x3c82eb(0x1df)],_0x51646f['port']=_0x460453[_0x3c82eb(0x1d0)][_0x3c82eb(0x1e3)],_0x51646f[_0x3c82eb(0x1dd)]=_0x460453[_0x3c82eb(0x1d0)][_0x3c82eb(0x1dd)]),_0x460453[_0x3c82eb(0x1d0)][_0x3c82eb(0x1ee)]&&(_0x51646f[_0x3c82eb(0x191)]={'user':_0x460453[_0x3c82eb(0x1d0)][_0x3c82eb(0x249)],'pass':_0x460453[_0x3c82eb(0x1d0)][_0x3c82eb(0x25e)]}),respondWithRpcPromise('SendMail','sendMail',{'account':_0x51646f,'message':{'from':util[_0x3c82eb(0x24e)](_0x3c82eb(0x292),_0x460453['name'],_0x460453[_0x3c82eb(0x281)]||_0x460453[_0x3c82eb(0x1d0)][_0x3c82eb(0x249)]),'to':_0x3c5274[_0x3c82eb(0x28e)][_0x3c82eb(0x1d3)],'subject':'Mail\x20Transcript','text':util[_0x3c82eb(0x24e)]('Hi\x20%s,\x20attached\x20you\x20can\x20find\x20your\x20transcript\x20file.\x20\x0a\x0aRegards.\x20\x0a\x0a',_0x3c5274[_0x3c82eb(0x28e)][_0x3c82eb(0x1d3)]),'attachments':[{'path':_0x531dfc}]}})['then'](function(){return _0x436a9e;})['catch'](function(_0x255e86){const _0x427e0c=_0x3c82eb;console[_0x427e0c(0x270)](_0x255e86);});}else return _0x436a9e;})[_0xc3af99(0x285)](respondWithStatusCode(_0x53be73,0xc8))[_0xc3af99(0x18e)](handleError(_0x53be73,null));},exports['addMessage']=function(_0x1ed996,_0x554469){const _0x5619fc=a80_0x1391de;return db['ChatMessage']['findOne']({'where':{'id':_0x1ed996[_0x5619fc(0x24b)]['id']}})[_0x5619fc(0x285)](function(_0x1357f5){const _0xc72ca5=_0x5619fc;if(_0x1357f5)return _0x1357f5[_0xc72ca5(0x1ef)](_0x1ed996['body'][_0xc72ca5(0x1d9)],{'through':_[_0xc72ca5(0x243)](_0x1ed996[_0xc72ca5(0x28e)],['ids','id'])});})[_0x5619fc(0x285)](respondWithResult(_0x554469,null))[_0x5619fc(0x18e)](handleError(_0x554469,null));},exports[a80_0x1391de(0x25d)]=function(_0x552357,_0x2f0195){const _0x44716d=a80_0x1391de;let _0x3a8b4d={'raw':![],'where':{}};const _0x5396a7={},_0x3fe7dd={'count':0x0,'rows':[]};return db[_0x44716d(0x273)]['findOne']({'where':{'id':_0x552357['params']['id']}})[_0x44716d(0x285)](handleEntityNotFound(_0x2f0195,null))[_0x44716d(0x285)](function(_0x572ddd){const _0x22ff4c=_0x44716d;if(_0x572ddd){_0x5396a7[_0x22ff4c(0x1a1)]=_[_0x22ff4c(0x251)](db[_0x22ff4c(0x201)]['rawAttributes']),_0x5396a7[_0x22ff4c(0x1bb)]=_[_0x22ff4c(0x251)](_0x552357[_0x22ff4c(0x1bb)]),_0x5396a7[_0x22ff4c(0x221)]=_[_0x22ff4c(0x23b)](_0x5396a7['model'],_0x5396a7[_0x22ff4c(0x1bb)]),_0x3a8b4d['attributes']=_[_0x22ff4c(0x23b)](_0x5396a7[_0x22ff4c(0x1a1)],qs[_0x22ff4c(0x1f7)](_0x552357[_0x22ff4c(0x1bb)][_0x22ff4c(0x1f7)])),_0x3a8b4d[_0x22ff4c(0x24d)]=_0x3a8b4d['attributes']['length']?_0x3a8b4d['attributes']:_0x5396a7[_0x22ff4c(0x1a1)];typeof _0x552357['query'][_0x22ff4c(0x19f)]===_0x22ff4c(0x283)&&(_0x3a8b4d['limit']=qs[_0x22ff4c(0x230)](_0x552357[_0x22ff4c(0x1bb)][_0x22ff4c(0x230)]),_0x3a8b4d[_0x22ff4c(0x1fa)]=qs[_0x22ff4c(0x1fa)](_0x552357[_0x22ff4c(0x1bb)]['offset']));_0x3a8b4d['order']=qs['sort'](_0x552357[_0x22ff4c(0x1bb)][_0x22ff4c(0x20e)]),_0x3a8b4d[_0x22ff4c(0x1cf)]=qs[_0x22ff4c(0x221)](_['pick'](_0x552357[_0x22ff4c(0x1bb)],_0x5396a7[_0x22ff4c(0x221)])),_0x3a8b4d['where'][_0x22ff4c(0x256)]=_0x572ddd['id'];_0x552357[_0x22ff4c(0x1bb)]['filter']&&(_0x3a8b4d[_0x22ff4c(0x1cf)]=_['merge'](_0x3a8b4d[_0x22ff4c(0x1cf)],{[Op['or']]:_['map'](_0x3a8b4d['attributes'],function(_0x2b79fd){const _0xf127d6=_0x22ff4c,_0x30c9a9={};return _0x30c9a9[_0x2b79fd]={[Op[_0xf127d6(0x1d8)]]:'%'+_0x552357[_0xf127d6(0x1bb)][_0xf127d6(0x1ba)]+'%'},_0x30c9a9;})}));if(_0x552357['query'][_0x22ff4c(0x232)]){const _0x3fd71b=_0x552357[_0x22ff4c(0x1bb)][_0x22ff4c(0x232)][_0x22ff4c(0x219)](','),_0x539328={};_0x539328[_0x3fd71b[0x0]]={[Op['gte']]:moment(_0x3fd71b[0x1])[_0x22ff4c(0x24e)](_0x22ff4c(0x21e))},_0x3a8b4d['where']=_[_0x22ff4c(0x1af)](_0x3a8b4d['where'],_0x539328);}return _0x3a8b4d=_['merge']({},_0x3a8b4d,_0x552357[_0x22ff4c(0x27a)]),db[_0x22ff4c(0x201)][_0x22ff4c(0x1e5)]({'where':_0x3a8b4d[_0x22ff4c(0x1cf)]})[_0x22ff4c(0x285)](function(_0x5e6836){const _0x1ac4a5=_0x22ff4c;return _0x3fe7dd[_0x1ac4a5(0x1e5)]=_0x5e6836,_0x552357['query'][_0x1ac4a5(0x200)]&&(_0x3a8b4d['include']=[{'all':!![]}]),db[_0x1ac4a5(0x201)][_0x1ac4a5(0x278)](_0x3a8b4d);})[_0x22ff4c(0x285)](function(_0x1f66a7){const _0x372d96=_0x22ff4c;return _0x3fe7dd[_0x372d96(0x1ca)]=_0x1f66a7,_0x3fe7dd;});}})['then'](respondWithFilteredResult(_0x2f0195,_0x3a8b4d))[_0x44716d(0x18e)](handleError(_0x2f0195,null));},exports['getMyMessages']=function(_0x75e3e2,_0x2ea460){const _0x20430d=a80_0x1391de;let _0x572593={'where':{}};const _0x428da8={},_0x1d3196={'count':0x0,'rows':[]};return db[_0x20430d(0x273)][_0x20430d(0x1f0)]({'where':{'id':_0x75e3e2['params']['id']}})[_0x20430d(0x285)](handleEntityNotFound(_0x2ea460,null))[_0x20430d(0x285)](function(_0x4ae773){const _0x8881ed=_0x20430d;if(_0x4ae773)return _0x428da8[_0x8881ed(0x1a1)]=_[_0x8881ed(0x251)](db[_0x8881ed(0x201)][_0x8881ed(0x21a)]),_0x428da8[_0x8881ed(0x1bb)]=_[_0x8881ed(0x251)](_0x75e3e2['query']),_0x428da8[_0x8881ed(0x221)]=_['intersection'](_0x428da8[_0x8881ed(0x1a1)],_0x428da8['query']),_0x572593[_0x8881ed(0x24d)]=_['intersection'](_0x428da8[_0x8881ed(0x1a1)],qs['fields'](_0x75e3e2[_0x8881ed(0x1bb)][_0x8881ed(0x1f7)])),_0x572593[_0x8881ed(0x24d)]=_0x572593['attributes'][_0x8881ed(0x1a9)]?_0x572593[_0x8881ed(0x24d)]:_0x428da8['model'],typeof _0x75e3e2['query'][_0x8881ed(0x19f)]===_0x8881ed(0x283)&&(_0x572593[_0x8881ed(0x230)]=qs['limit'](_0x75e3e2[_0x8881ed(0x1bb)]['limit']),_0x572593[_0x8881ed(0x1fa)]=qs[_0x8881ed(0x1fa)](_0x75e3e2['query'][_0x8881ed(0x1fa)])),_0x572593[_0x8881ed(0x1b1)]=qs[_0x8881ed(0x20e)](_0x75e3e2['query'][_0x8881ed(0x20e)]),_0x572593['where']=qs[_0x8881ed(0x221)](_['pick'](_0x75e3e2[_0x8881ed(0x1bb)],_0x428da8[_0x8881ed(0x221)])),_0x572593[_0x8881ed(0x1cf)][_0x8881ed(0x256)]=_0x4ae773['id'],_0x75e3e2[_0x8881ed(0x1bb)][_0x8881ed(0x1ba)]&&(_0x572593[_0x8881ed(0x1cf)]=_[_0x8881ed(0x1af)](_0x572593[_0x8881ed(0x1cf)],{[Op['or']]:_[_0x8881ed(0x1c4)](_0x572593[_0x8881ed(0x24d)],function(_0x3ec06f){const _0x3022b8=_0x8881ed,_0x39e6d={};return _0x39e6d[_0x3ec06f]={[Op[_0x3022b8(0x1d8)]]:'%'+_0x75e3e2[_0x3022b8(0x1bb)]['filter']+'%'},_0x39e6d;})})),_0x572593['where']['secret']=![],_0x75e3e2['query']['id']&&(_0x572593[_0x8881ed(0x1cf)]['id']={[Op['gt']]:_0x75e3e2[_0x8881ed(0x1bb)]['id']}),_0x572593=_[_0x8881ed(0x1af)]({},_0x572593,_0x75e3e2['options']),db[_0x8881ed(0x201)][_0x8881ed(0x1e5)]({'where':_0x572593[_0x8881ed(0x1cf)]})[_0x8881ed(0x285)](function(_0x5bbb4a){const _0x5df6dc=_0x8881ed;return _0x1d3196['count']=_0x5bbb4a,_0x572593[_0x5df6dc(0x252)]=[],_0x75e3e2[_0x5df6dc(0x1bb)][_0x5df6dc(0x1fb)]&&_0x572593['include'][_0x5df6dc(0x1c8)]({'model':db[_0x5df6dc(0x1d1)],'as':_0x5df6dc(0x1d1),'attributes':['id',_0x5df6dc(0x25f),_0x5df6dc(0x1d4)]}),_0x75e3e2[_0x5df6dc(0x1bb)][_0x5df6dc(0x200)]&&(_0x572593[_0x5df6dc(0x252)]=[{'all':!![]}]),db['ChatMessage'][_0x5df6dc(0x278)](_0x572593);})['then'](function(_0x22b5dc){const _0x174db6=_0x8881ed;return _0x1d3196[_0x174db6(0x1ca)]=_0x22b5dc,_0x1d3196;});})[_0x20430d(0x285)](respondWithFilteredResult(_0x2ea460,_0x572593))['catch'](handleError(_0x2ea460,null));},exports[a80_0x1391de(0x26f)]=function(_0xc65936,_0x2e4692){const _0x38e8f3=a80_0x1391de;return db[_0x38e8f3(0x273)][_0x38e8f3(0x1f0)]({'where':{'id':_0xc65936[_0x38e8f3(0x24b)]['id']}})[_0x38e8f3(0x285)](function(_0x40ab9a){const _0x12e779=_0x38e8f3;if(_0x40ab9a)return _0x40ab9a[_0x12e779(0x258)](_0xc65936[_0x12e779(0x28e)][_0x12e779(0x1d9)],{'through':_[_0x12e779(0x243)](_0xc65936[_0x12e779(0x28e)],[_0x12e779(0x1d9),'id'])})[_0x12e779(0x285)](function(){const _0x2d221b=_0x12e779;return db[_0x2d221b(0x1eb)][_0x2d221b(0x278)]({'attributes':['id',_0x2d221b(0x1b2),_0x2d221b(0x1c7)],'where':{'id':_0xc65936[_0x2d221b(0x28e)][_0x2d221b(0x1d9)]}});})[_0x12e779(0x285)](function(_0x18ca71){const _0xbd94bf=_0x12e779;return socket[_0xbd94bf(0x1cc)]('chatInteractionTags:save',{'id':Number(_0xc65936[_0xbd94bf(0x24b)]['id']),'tags':_0x18ca71||[]}),{'id':Number(_0xc65936[_0xbd94bf(0x24b)]['id']),'tags':_0x18ca71||[]};});})[_0x38e8f3(0x285)](respondWithResult(_0x2e4692,null))[_0x38e8f3(0x18e)](handleError(_0x2e4692,null));},exports['removeTags']=function(_0x46dfe8,_0x44f6a9){const _0x4a9140=a80_0x1391de;return db['ChatInteraction']['findOne']({'where':{'id':_0x46dfe8[_0x4a9140(0x24b)]['id']}})[_0x4a9140(0x285)](handleEntityNotFound(_0x44f6a9,null))[_0x4a9140(0x285)](function(_0x8c1e39){const _0x59e2f5=_0x4a9140;if(_0x8c1e39)return _0x8c1e39[_0x59e2f5(0x237)](_0x46dfe8[_0x59e2f5(0x1bb)]['ids']);})[_0x4a9140(0x285)](respondWithStatusCode(_0x44f6a9,null))[_0x4a9140(0x18e)](handleError(_0x44f6a9,null));},exports[a80_0x1391de(0x1a3)]=function(_0x3ca3e3,_0x5d0ee3){const _0x585b5c=a80_0x1391de,_0x2ef2d0=moment()[_0x585b5c(0x1e2)]()[_0x585b5c(0x280)](),_0x17c2aa=path[_0x585b5c(0x1c3)](config[_0x585b5c(0x244)],_0x585b5c(0x289),'tmp'),_0x410d09=path['join'](config[_0x585b5c(0x244)],_0x585b5c(0x21b),_0x585b5c(0x289),'attachments'),_0x6ce737=path['join'](_0x17c2aa,_0x2ef2d0),_0x54e260=util[_0x585b5c(0x24e)]('transcript-%d-%s.zip',_0x3ca3e3[_0x585b5c(0x24b)]['id'],_0x2ef2d0),_0x290c13=path[_0x585b5c(0x1c3)](_0x17c2aa,_0x54e260),_0xdf5bce=[];_0xdf5bce[_0x585b5c(0x1c8)]({'model':db[_0x585b5c(0x1d1)],'as':_0x585b5c(0x1d1),'attributes':['id',_0x585b5c(0x25f)],'raw':!![]}),_0xdf5bce['push']({'model':db[_0x585b5c(0x1ec)],'as':_0x585b5c(0x23e),'attributes':['id',_0x585b5c(0x192),_0x585b5c(0x1e7)],'raw':!![]});_0x3ca3e3['query'][_0x585b5c(0x1a6)]&&_0xdf5bce[_0x585b5c(0x1c8)]({'model':db['Attachment'],'as':'Attachment','raw':!![]});const _0x22f709=[{'model':db[_0x585b5c(0x201)],'as':_0x585b5c(0x262),'attributes':['id',_0x585b5c(0x28e),_0x585b5c(0x28a),_0x585b5c(0x296),'secret',_0x585b5c(0x1a0)],'include':_0xdf5bce}];return _0x22f709[_0x585b5c(0x1c8)]({'model':db['ChatWebsite'],'as':'Account','attributes':['id',_0x585b5c(0x1b2)]}),_0x22f709[_0x585b5c(0x1c8)]({'model':db['User'],'as':_0x585b5c(0x276),'attributes':['id','fullname']}),db[_0x585b5c(0x273)][_0x585b5c(0x1f0)]({'where':{'id':_0x3ca3e3['params']['id']},'include':_0x22f709})['then'](handleEntityNotFound(_0x5d0ee3,null))['then'](function(_0x191fc0){const _0x4fef05=_0x585b5c;if(_0x191fc0){const _0x5104bb=_0x191fc0[_0x4fef05(0x1e1)]({'plain':!![]});fs[_0x4fef05(0x1ff)](_0x6ce737);const _0x4cf12e={'format':'A4','border':_0x4fef05(0x18d),'header':{'height':_0x4fef05(0x21d),'contents':{'first':_0x4fef05(0x1b3)}},'footer':{'height':_0x4fef05(0x22a),'contents':{'default':util[_0x4fef05(0x24e)]('\x0a\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[_0x4fef05(0x24e)](_0x4fef05(0x1b4),'Chat',_0x5104bb['id']),moment()[_0x4fef05(0x24e)](_0x4fef05(0x294))['toString']())}}},_0x4c5d29={'channel':'Chat','account':_0x5104bb[_0x4fef05(0x250)]['name'],'agent':_0x5104bb[_0x4fef05(0x276)]?_0x5104bb[_0x4fef05(0x276)][_0x4fef05(0x25f)]:_0x4fef05(0x1f5),'createdAt':moment(_0x5104bb['createdAt'])['format'](_0x4fef05(0x21e))['toString'](),'closedAt':_0x5104bb[_0x4fef05(0x238)]?moment(_0x5104bb[_0x4fef05(0x22e)])['format'](_0x4fef05(0x21e))[_0x4fef05(0x280)]():'','disposition':_0x5104bb['disposition'],'chatInfo':{'browser':_0x5104bb[_0x4fef05(0x279)],'os':_0x5104bb[_0x4fef05(0x197)],'referer':_0x5104bb[_0x4fef05(0x209)],'customerIp':_0x5104bb[_0x4fef05(0x202)],'customerPort':_0x5104bb[_0x4fef05(0x284)]?_0x5104bb[_0x4fef05(0x284)]:_0x4fef05(0x1f5)},'messages':_(_0x5104bb['Messages'])[_0x4fef05(0x246)]()[_0x4fef05(0x1ba)]({'secret':![]})[_0x4fef05(0x1c4)](function(_0x2b547d){const _0x277fc5=_0x4fef05;if(_0x2b547d[_0x277fc5(0x263)]){const _0x33f72d=path[_0x277fc5(0x1c3)](_0x410d09,_0x2b547d[_0x277fc5(0x263)][_0x277fc5(0x1fd)]);fs['existsSync'](_0x33f72d)&&fs[_0x277fc5(0x229)](_0x33f72d)[_0x277fc5(0x290)](fs[_0x277fc5(0x255)](path['join'](_0x6ce737,_0x2b547d[_0x277fc5(0x263)][_0x277fc5(0x1fd)])));}return{'date':moment(_0x2b547d[_0x277fc5(0x28a)])[_0x277fc5(0x24e)]('YYYY-MM-DD\x20HH:mm:ss')[_0x277fc5(0x280)](),'sender':_0x2b547d[_0x277fc5(0x296)]===_0x277fc5(0x26a)?_0x2b547d[_0x277fc5(0x1d1)]?_0x2b547d['User'][_0x277fc5(0x25f)]:_0x277fc5(0x1bf):_0x2b547d[_0x277fc5(0x23e)][_0x277fc5(0x192)]+(_0x2b547d['Contact'][_0x277fc5(0x1e7)]?'\x20'+_0x2b547d[_0x277fc5(0x23e)][_0x277fc5(0x1e7)]:''),'body':_0x2b547d[_0x277fc5(0x263)]?_0x2b547d['Attachment'][_0x277fc5(0x1fd)]:_0x2b547d[_0x277fc5(0x28e)],'direction':_0x2b547d[_0x277fc5(0x296)]===_0x277fc5(0x26a)?'A':'C','secret':_0x2b547d[_0x277fc5(0x236)],'read':_0x2b547d[_0x277fc5(0x1a0)],'attachment':_0x2b547d[_0x277fc5(0x263)]};})[_0x4fef05(0x199)]()};return ejs[_0x4fef05(0x1f8)](path[_0x4fef05(0x1c3)](config[_0x4fef05(0x244)],_0x4fef05(0x21b),'views',_0x4fef05(0x225)),{'interaction':_0x4c5d29})[_0x4fef05(0x285)](function(_0x35bcf7){return new Promise(function(_0x316f1e,_0x50d451){const _0x9a694b=a80_0x4a11;pdf[_0x9a694b(0x198)](_0x35bcf7,_0x4cf12e)[_0x9a694b(0x187)](path[_0x9a694b(0x1c3)](_0x6ce737,_0x9a694b(0x210)+_0x5104bb['id']+'-'+_0x2ef2d0+_0x9a694b(0x28d)),function(_0x338573,_0x333b6d){if(_0x338573)return _0x50d451(_0x338573);_0x316f1e(_0x333b6d);});});})[_0x4fef05(0x285)](function(){const _0x5c1975=_0x4fef05;return new Promise(function(_0x345b3f,_0x52cf89){zipdir(_0x6ce737,{'saveTo':_0x290c13},function(_0x3e3d46,_0x4d1c3b){if(_0x3e3d46)return _0x52cf89(_0x3e3d46);return _0x345b3f(_0x4d1c3b);});})['then'](function(){return new Promise(function(_0x2743b5,_0x413f1d){rimraf(_0x6ce737,function(_0x4257b4){if(_0x4257b4)_0x413f1d(_0x4257b4);return _0x2743b5();});});})[_0x5c1975(0x285)](function(){const _0x48609f=_0x5c1975;return _0x5d0ee3[_0x48609f(0x1a3)](_0x290c13,_0x54e260,function(_0x58b532){const _0x15783f=_0x48609f;_0x58b532?console[_0x15783f(0x205)](_0x15783f(0x186),_0x58b532):fs[_0x15783f(0x213)](_0x290c13);});});});}else return _0x5d0ee3['sendStatus'](0xc8);})['catch'](handleError(_0x5d0ee3,null));}; \ No newline at end of file diff --git a/server/api/chatInteraction/chatInteraction.events.js b/server/api/chatInteraction/chatInteraction.events.js index d8b881f..39c5619 100644 --- a/server/api/chatInteraction/chatInteraction.events.js +++ b/server/api/chatInteraction/chatInteraction.events.js @@ -1 +1 @@ -const a67_0x2446=['events','../../mysqldb','length','map','exports','setMaxListeners','setDataValue','then','unreadMessages','remove','catch','emit','update','addHook','save','undefined'];(function(_0x11fbec,_0x24466e){const _0x2702f1=function(_0x151bd5){while(--_0x151bd5){_0x11fbec['push'](_0x11fbec['shift']());}};_0x2702f1(++_0x24466e);}(a67_0x2446,0x84));const a67_0x2702=function(_0x11fbec,_0x24466e){_0x11fbec=_0x11fbec-0x0;let _0x2702f1=a67_0x2446[_0x11fbec];return _0x2702f1;};const _0x112a30=a67_0x2702;'use strict';const EventEmitter=require(_0x112a30('0xc')),ChatInteraction=require(_0x112a30('0xd'))['db']['ChatInteraction'],ChatMessage=require(_0x112a30('0xd'))['db']['ChatMessage'],ChatInteractionEvents=new EventEmitter();ChatInteractionEvents[_0x112a30('0x1')](0x0);const events={'afterCreate':_0x112a30('0xa'),'afterUpdate':_0x112a30('0x8'),'afterDestroy':_0x112a30('0x5')};function emitEvent(_0x151bd5){return function(_0x400750){const _0x49a4e5=a67_0x2702;_0x400750['getUsers']({'attributes':['id'],'raw':!![]})[_0x49a4e5('0x3')](function(_0x610aca){const _0x102830=_0x49a4e5;return _0x400750[_0x102830('0x2')]('Users',_0x610aca[_0x102830('0xf')](function(_0x3dc68a){return{'id':_0x3dc68a['id']};})),ChatMessage['findAll']({'where':{'ChatInteractionId':_0x400750['id'],'direction':'in','read':![]},'raw':!![]});})[_0x49a4e5('0x3')](function(_0x4ba891){const _0x227ba3=_0x49a4e5;_0x400750[_0x227ba3('0x2')](_0x227ba3('0x4'),_0x4ba891[_0x227ba3('0xe')]),ChatInteractionEvents[_0x227ba3('0x7')](_0x151bd5+':'+_0x400750['id'],_0x400750),ChatInteractionEvents[_0x227ba3('0x7')](_0x151bd5,_0x400750);})[_0x49a4e5('0x6')](()=>{});};}for(const e in events){if(typeof events[e]!==_0x112a30('0xb')){const event=events[e];ChatInteraction[_0x112a30('0x9')](e,emitEvent(event));}}module[_0x112a30('0x0')]=ChatInteractionEvents; \ No newline at end of file +const a81_0x1897=['getUsers','setMaxListeners','events','undefined','map','then','Users','remove','ChatMessage','emit','unreadMessages','exports','findAll','../../mysqldb'];(function(_0x5d3e6a,_0x241ff4){const _0x18978f=function(_0x1f1867){while(--_0x1f1867){_0x5d3e6a['push'](_0x5d3e6a['shift']());}};_0x18978f(++_0x241ff4);}(a81_0x1897,0x162));const a81_0x1f18=function(_0x5d3e6a,_0x241ff4){_0x5d3e6a=_0x5d3e6a-0x185;let _0x18978f=a81_0x1897[_0x5d3e6a];return _0x18978f;};const a81_0x5dcaf7=a81_0x1f18;'use strict';const EventEmitter=require(a81_0x5dcaf7(0x191)),ChatInteraction=require(a81_0x5dcaf7(0x18e))['db']['ChatInteraction'],ChatMessage=require(a81_0x5dcaf7(0x18e))['db'][a81_0x5dcaf7(0x189)],ChatInteractionEvents=new EventEmitter();ChatInteractionEvents[a81_0x5dcaf7(0x190)](0x0);const events={'afterCreate':'save','afterUpdate':'update','afterDestroy':a81_0x5dcaf7(0x188)};function emitEvent(_0x450689){return function(_0x12e7dd){const _0x5165e1=a81_0x1f18;_0x12e7dd[_0x5165e1(0x18f)]({'attributes':['id'],'raw':!![]})['then'](function(_0x208ff4){const _0x2c4852=_0x5165e1;return _0x12e7dd['setDataValue'](_0x2c4852(0x187),_0x208ff4[_0x2c4852(0x185)](function(_0x2e15db){return{'id':_0x2e15db['id']};})),ChatMessage[_0x2c4852(0x18d)]({'where':{'ChatInteractionId':_0x12e7dd['id'],'direction':'in','read':![]},'raw':!![]});})[_0x5165e1(0x186)](function(_0x46cd5c){const _0x47e5c8=_0x5165e1;_0x12e7dd['setDataValue'](_0x47e5c8(0x18b),_0x46cd5c['length']),ChatInteractionEvents[_0x47e5c8(0x18a)](_0x450689+':'+_0x12e7dd['id'],_0x12e7dd),ChatInteractionEvents[_0x47e5c8(0x18a)](_0x450689,_0x12e7dd);})['catch'](()=>{});};}for(const e in events){if(typeof events[e]!==a81_0x5dcaf7(0x192)){const event=events[e];ChatInteraction['addHook'](e,emitEvent(event));}}module[a81_0x5dcaf7(0x18c)]=ChatInteractionEvents; \ No newline at end of file diff --git a/server/api/chatInteraction/chatInteraction.model.js b/server/api/chatInteraction/chatInteraction.model.js index 335a4e8..5757735 100644 --- a/server/api/chatInteraction/chatInteraction.model.js +++ b/server/api/chatInteraction/chatInteraction.model.js @@ -1 +1 @@ -const a68_0x3078=['chat_interactions','closedAt','format','./chatInteraction.attributes','define','exports','YYYY-MM-DD\x20HH:mm:ss','closed','ChatInteraction','moment','changed','utf8mb4','utf8mb4_unicode_ci'];(function(_0x371fb1,_0x307892){const _0x1e88c8=function(_0x47337d){while(--_0x47337d){_0x371fb1['push'](_0x371fb1['shift']());}};_0x1e88c8(++_0x307892);}(a68_0x3078,0xde));const a68_0x1e88=function(_0x371fb1,_0x307892){_0x371fb1=_0x371fb1-0x0;let _0x1e88c8=a68_0x3078[_0x371fb1];return _0x1e88c8;};const _0x99dd1e=a68_0x1e88;'use strict';const moment=require(_0x99dd1e('0x8')),attributes=require(_0x99dd1e('0x2'));module[_0x99dd1e('0x4')]=function(_0x47337d){const _0x1e9705=_0x99dd1e,_0x1b2b16=_0x47337d[_0x1e9705('0x3')](_0x1e9705('0x7'),attributes,{'tableName':_0x1e9705('0xc'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x4e435f){const _0x155e0c=_0x1e9705;_0x4e435f[_0x155e0c('0x9')](_0x155e0c('0x6'))&&(_0x4e435f[_0x155e0c('0x0')]=moment()[_0x155e0c('0x1')](_0x155e0c('0x5')));}},'charset':_0x1e9705('0xa'),'collate':_0x1e9705('0xb')});return _0x1b2b16;}; \ No newline at end of file +const a82_0x2ed4=['./chatInteraction.attributes','sequelize','init','ChatInteraction'];(function(_0x371e64,_0x41f659){const _0x2ed434=function(_0x577085){while(--_0x577085){_0x371e64['push'](_0x371e64['shift']());}};_0x2ed434(++_0x41f659);}(a82_0x2ed4,0x9f));const a82_0x5770=function(_0x371e64,_0x41f659){_0x371e64=_0x371e64-0x1ef;let _0x2ed434=a82_0x2ed4[_0x371e64];return _0x2ed434;};const a82_0x58424f=a82_0x5770;'use strict';const {Model}=require(a82_0x58424f(0x1f1)),{attributes}=require(a82_0x58424f(0x1f0)),{options}=require('./chatInteraction.options');class ChatInteraction extends Model{}function init(_0x25b1d6,_0x4c39d7){const _0x3bb362=a82_0x58424f,_0xacc168=options(_0x25b1d6),_0x2e08cf=typeof _0x4c39d7==='function'?_0x4c39d7(_0xacc168):_0xacc168;return ChatInteraction[_0x3bb362(0x1f2)](attributes,_0x2e08cf),ChatInteraction;}module['exports'][a82_0x58424f(0x1ef)]=ChatInteraction,module['exports'][a82_0x58424f(0x1f2)]=init; \ No newline at end of file diff --git a/server/api/chatInteraction/chatInteraction.options.js b/server/api/chatInteraction/chatInteraction.options.js new file mode 100644 index 0000000..4cad0a4 --- /dev/null +++ b/server/api/chatInteraction/chatInteraction.options.js @@ -0,0 +1 @@ +const a83_0x36aa=['format','changed','closed','exports','YYYY-MM-DD\x20HH:mm:ss','chat_interactions','utf8mb4_unicode_ci'];(function(_0x577e32,_0x450b80){const _0x36aaf2=function(_0xaa046e){while(--_0xaa046e){_0x577e32['push'](_0x577e32['shift']());}};_0x36aaf2(++_0x450b80);}(a83_0x36aa,0xf8));const a83_0xaa04=function(_0x577e32,_0x450b80){_0x577e32=_0x577e32-0x1b7;let _0x36aaf2=a83_0x36aa[_0x577e32];return _0x36aaf2;};const a83_0x11c792=a83_0xaa04,moment=require('moment');function options(_0x5cf5ef){const _0x47e7cb=a83_0xaa04;return{'sequelize':_0x5cf5ef,'tableName':_0x47e7cb(0x1b9),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x5ea15a){const _0x430c9a=_0x47e7cb;_0x5ea15a[_0x430c9a(0x1bc)](_0x430c9a(0x1bd))&&(_0x5ea15a['closedAt']=moment()[_0x430c9a(0x1bb)](_0x430c9a(0x1b8)));}},'charset':'utf8mb4','collate':_0x47e7cb(0x1ba)};}module[a83_0x11c792(0x1b7)]['options']=options; \ No newline at end of file diff --git a/server/api/chatInteraction/chatInteraction.rpc.js b/server/api/chatInteraction/chatInteraction.rpc.js index 3e29f7e..6578ea6 100644 --- a/server/api/chatInteraction/chatInteraction.rpc.js +++ b/server/api/chatInteraction/chatInteraction.rpc.js @@ -1 +1 @@ -const a69_0x21e0=['../../mysqldb','register','ChatInteraction','body','error','omit','update','debug','catch','message','AddTags','raw','limit','info','options','addTags','then','where','ids','attributes','stringify','../../rediscache','rpc','UpdateChatInteraction'];(function(_0x4c78f1,_0x21e0e5){const _0x29655e=function(_0xaa7b6a){while(--_0xaa7b6a){_0x4c78f1['push'](_0x4c78f1['shift']());}};_0x29655e(++_0x21e0e5);}(a69_0x21e0,0x115));const a69_0x2965=function(_0x4c78f1,_0x21e0e5){_0x4c78f1=_0x4c78f1-0x0;let _0x29655e=a69_0x21e0[_0x4c78f1];return _0x29655e;};const _0x53ca93=a69_0x2965;'use strict';const _=require('lodash'),db=require(_0x53ca93('0xb'))['db'],logger=require('../../config/logger')(_0x53ca93('0x9')),{getSocket}=require(_0x53ca93('0x8')),socket=getSocket();require('./chatInteraction.socket')[_0x53ca93('0xc')](socket),exports['UpdateChatInteraction']=function(_0xaa7b6a){const _0x544f06=this;return new Promise(function(_0x279e97,_0x301e34){const _0x107ac7=a69_0x2965;return db[_0x107ac7('0xd')][_0x107ac7('0x11')](_0xaa7b6a['body'],{'raw':_0xaa7b6a['options']?_0xaa7b6a[_0x107ac7('0x1')][_0x107ac7('0x16')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0xaa7b6a[_0x107ac7('0x1')]?_0xaa7b6a[_0x107ac7('0x1')][_0x107ac7('0x4')]||null:null,'attributes':_0xaa7b6a[_0x107ac7('0x1')]?_0xaa7b6a['options'][_0x107ac7('0x6')]||null:null,'limit':_0xaa7b6a[_0x107ac7('0x1')]?_0xaa7b6a[_0x107ac7('0x1')][_0x107ac7('0x17')]||null:null})['then'](function(_0x5a85be){const _0x4f0af3=_0x107ac7;logger[_0x4f0af3('0x0')](_0x4f0af3('0xa'),_0xaa7b6a),logger['debug'](_0x4f0af3('0xa'),_0xaa7b6a,JSON[_0x4f0af3('0x7')](_0x5a85be)),_0x279e97(_0x5a85be);})[_0x107ac7('0x13')](function(_0x3e8013){const _0x11083b=_0x107ac7;logger[_0x11083b('0xf')](_0x11083b('0xa'),_0x3e8013[_0x11083b('0x14')],_0xaa7b6a),_0x301e34(_0x544f06[_0x11083b('0xf')](0x1f4,_0x3e8013[_0x11083b('0x14')]));});});},exports['AddTagsToChatInteraction']=function(_0x251cd7){const _0x215360=this;return new Promise(function(_0x203332,_0x4fb562){const _0x478d0e=a69_0x2965;return db[_0x478d0e('0xd')]['findOne']({'where':_0x251cd7[_0x478d0e('0x1')]?_0x251cd7[_0x478d0e('0x1')][_0x478d0e('0x4')]||null:null})['then'](function(_0x10c3f1){const _0x5b54f7=_0x478d0e;if(_0x10c3f1)return _0x10c3f1[_0x5b54f7('0x2')](_0x251cd7['body'][_0x5b54f7('0x5')],{'through':_[_0x5b54f7('0x10')](_0x251cd7[_0x5b54f7('0xe')],['ids','id'])});})[_0x478d0e('0x3')](function([_0x2d9a93]){const _0xcd63bc=_0x478d0e;logger[_0xcd63bc('0x0')](_0xcd63bc('0x15'),_0x251cd7),logger[_0xcd63bc('0x12')](_0xcd63bc('0x15'),_0x251cd7,JSON[_0xcd63bc('0x7')](_0x2d9a93)),_0x203332(_0x2d9a93);})[_0x478d0e('0x13')](function(_0x3b0ea8){const _0x426a29=_0x478d0e;logger[_0x426a29('0xf')](_0x426a29('0x15'),_0x3b0ea8['message'],_0x251cd7),_0x4fb562(_0x215360[_0x426a29('0xf')](0x1f4,_0x3b0ea8[_0x426a29('0x14')]));});});}; \ No newline at end of file +const a84_0x4247=['update','ids','findOne','rpc','body','raw','UpdateChatInteraction','AddTags','../../config/logger','then','AddTagsToChatInteraction','debug','info','where','attributes','../../mysqldb','../../rediscache','lodash','error','catch','stringify','omit','addTags','ChatInteraction','message','register','options','./chatInteraction.socket','limit'];(function(_0x23e39f,_0x47ee22){const _0x4247b8=function(_0x390a63){while(--_0x390a63){_0x23e39f['push'](_0x23e39f['shift']());}};_0x4247b8(++_0x47ee22);}(a84_0x4247,0x165));const a84_0x390a=function(_0x23e39f,_0x47ee22){_0x23e39f=_0x23e39f-0x1d1;let _0x4247b8=a84_0x4247[_0x23e39f];return _0x4247b8;};const a84_0x32e233=a84_0x390a;'use strict';const _=require(a84_0x32e233(0x1d9)),db=require(a84_0x32e233(0x1d7))['db'],logger=require(a84_0x32e233(0x1ed))(a84_0x32e233(0x1e8)),{getSocket}=require(a84_0x32e233(0x1d8)),socket=getSocket();require(a84_0x32e233(0x1e3))[a84_0x32e233(0x1e1)](socket),exports[a84_0x32e233(0x1eb)]=function(_0x293c1d){const _0x3bdf24=this;return new Promise(function(_0x4257e1,_0x399dbb){const _0x114508=a84_0x390a;return db[_0x114508(0x1df)][_0x114508(0x1e5)](_0x293c1d[_0x114508(0x1e9)],{'raw':_0x293c1d['options']?_0x293c1d['options'][_0x114508(0x1ea)]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x293c1d['options']?_0x293c1d['options'][_0x114508(0x1d5)]||null:null,'attributes':_0x293c1d[_0x114508(0x1e2)]?_0x293c1d['options'][_0x114508(0x1d6)]||null:null,'limit':_0x293c1d[_0x114508(0x1e2)]?_0x293c1d[_0x114508(0x1e2)][_0x114508(0x1e4)]||null:null})['then'](function(_0x5718d9){const _0x3b458d=_0x114508;logger['info'](_0x3b458d(0x1eb),_0x293c1d),logger[_0x3b458d(0x1d3)]('UpdateChatInteraction',_0x293c1d,JSON['stringify'](_0x5718d9)),_0x4257e1(_0x5718d9);})[_0x114508(0x1db)](function(_0x4454bc){const _0x87ef2d=_0x114508;logger[_0x87ef2d(0x1da)](_0x87ef2d(0x1eb),_0x4454bc[_0x87ef2d(0x1e0)],_0x293c1d),_0x399dbb(_0x3bdf24['error'](0x1f4,_0x4454bc[_0x87ef2d(0x1e0)]));});});},exports[a84_0x32e233(0x1d2)]=function(_0x5078be){const _0xa29689=this;return new Promise(function(_0x2582b7,_0x47da52){const _0x1b79b8=a84_0x390a;return db[_0x1b79b8(0x1df)][_0x1b79b8(0x1e7)]({'where':_0x5078be[_0x1b79b8(0x1e2)]?_0x5078be['options'][_0x1b79b8(0x1d5)]||null:null})[_0x1b79b8(0x1d1)](function(_0x4ff3a1){const _0x563d58=_0x1b79b8;if(_0x4ff3a1)return _0x4ff3a1[_0x563d58(0x1de)](_0x5078be['body'][_0x563d58(0x1e6)],{'through':_[_0x563d58(0x1dd)](_0x5078be[_0x563d58(0x1e9)],['ids','id'])});})[_0x1b79b8(0x1d1)](function([_0x51cf5e]){const _0x264769=_0x1b79b8;logger[_0x264769(0x1d4)](_0x264769(0x1ec),_0x5078be),logger[_0x264769(0x1d3)](_0x264769(0x1ec),_0x5078be,JSON[_0x264769(0x1dc)](_0x51cf5e)),_0x2582b7(_0x51cf5e);})[_0x1b79b8(0x1db)](function(_0x694bb7){const _0x565993=_0x1b79b8;logger[_0x565993(0x1da)]('AddTags',_0x694bb7[_0x565993(0x1e0)],_0x5078be),_0x47da52(_0xa29689[_0x565993(0x1da)](0x1f4,_0x694bb7[_0x565993(0x1e0)]));});});}; \ No newline at end of file diff --git a/server/api/chatInteraction/chatInteraction.socket.js b/server/api/chatInteraction/chatInteraction.socket.js index 7e8e403..89a537d 100644 --- a/server/api/chatInteraction/chatInteraction.socket.js +++ b/server/api/chatInteraction/chatInteraction.socket.js @@ -1 +1 @@ -const a70_0x2dd7=['emit','./chatInteraction.events','length','register','update','chatInteraction:','save'];(function(_0x555631,_0x2dd7b7){const _0x2fa256=function(_0x108303){while(--_0x108303){_0x555631['push'](_0x555631['shift']());}};_0x2fa256(++_0x2dd7b7);}(a70_0x2dd7,0x151));const a70_0x2fa2=function(_0x555631,_0x2dd7b7){_0x555631=_0x555631-0x0;let _0x2fa256=a70_0x2dd7[_0x555631];return _0x2fa256;};const _0x22c6c4=a70_0x2fa2;'use strict';const ChatInteractionEvents=require(_0x22c6c4('0x0')),events=[_0x22c6c4('0x5'),'remove',_0x22c6c4('0x3')];function createListener(_0x108303,_0x108de5){return function(_0x2cd9bc){const _0x48f0ba=a70_0x2fa2;_0x108de5[_0x48f0ba('0x6')](_0x108303,_0x2cd9bc);};}exports[_0x22c6c4('0x2')]=function(_0x88002d){const _0x40fa2f=_0x22c6c4;for(let _0x3334a1=0x0,_0x3775a0=events[_0x40fa2f('0x1')];_0x3334a1<_0x3775a0;_0x3334a1++){const _0x39da38=events[_0x3334a1],_0x1c91c6=createListener(_0x40fa2f('0x4')+_0x39da38,_0x88002d);ChatInteractionEvents['on'](_0x39da38,_0x1c91c6);}}; \ No newline at end of file +const a85_0x44f0=['save','./chatInteraction.events','update','length'];(function(_0xae8dbf,_0x46b036){const _0x44f049=function(_0x504056){while(--_0x504056){_0xae8dbf['push'](_0xae8dbf['shift']());}};_0x44f049(++_0x46b036);}(a85_0x44f0,0x179));const a85_0x5040=function(_0xae8dbf,_0x46b036){_0xae8dbf=_0xae8dbf-0xf1;let _0x44f049=a85_0x44f0[_0xae8dbf];return _0x44f049;};const a85_0x593bb5=a85_0x5040;'use strict';const ChatInteractionEvents=require(a85_0x593bb5(0xf1)),events=[a85_0x593bb5(0xf4),'remove',a85_0x593bb5(0xf2)];function createListener(_0x2f6f7f,_0x24af10){return function(_0x4bb212){_0x24af10['emit'](_0x2f6f7f,_0x4bb212);};}exports['register']=function(_0x4328af){const _0x282d0a=a85_0x593bb5;for(let _0x48b9d8=0x0,_0x36dd0b=events[_0x282d0a(0xf3)];_0x48b9d8<_0x36dd0b;_0x48b9d8++){const _0x19a2b0=events[_0x48b9d8],_0x386475=createListener('chatInteraction:'+_0x19a2b0,_0x4328af);ChatInteractionEvents['on'](_0x19a2b0,_0x386475);}}; \ No newline at end of file diff --git a/server/api/chatInteraction/index.js b/server/api/chatInteraction/index.js index 50679ab..d2f1f63 100644 --- a/server/api/chatInteraction/index.js +++ b/server/api/chatInteraction/index.js @@ -1 +1 @@ -const a71_0x53ae=['addTags','Router','attachmentUpload','root','removeTags','exports','isChatInteractionAuthorized','/:id/download','%s-%s','/:id/attachment_download','/:id/my_messages','/:id/tags','chat','post','../../config/environment','/:id/custom_update','../../components/interaction/service','/:id/abandon','util','diskStorage','describe','attachmentDownload','put','originalname','get','create','isAuthenticated','tracked','customUpdate','getMessages','format','delete','multer','/:id','abandon','path','/describe','addMessage','destroy','../../components/auth/service','/:id/messages','chatinteraction:addtags','join','files/attachments/'];(function(_0x14a450,_0x53aeb6){const _0x4bd497=function(_0x21dbc4){while(--_0x21dbc4){_0x14a450['push'](_0x14a450['shift']());}};_0x4bd497(++_0x53aeb6);}(a71_0x53ae,0x1a3));const a71_0x4bd4=function(_0x14a450,_0x53aeb6){_0x14a450=_0x14a450-0x0;let _0x4bd497=a71_0x53ae[_0x14a450];return _0x4bd497;};const _0x3aae3b=a71_0x4bd4;'use strict';const multer=require(_0x3aae3b('0x9')),util=require(_0x3aae3b('0x27')),path=require(_0x3aae3b('0xc')),express=require('express'),router=express[_0x3aae3b('0x16')](),auth=require(_0x3aae3b('0x10')),interaction=require(_0x3aae3b('0x25')),config=require(_0x3aae3b('0x23')),controller=require('./chatInteraction.controller');router['get']('/',auth[_0x3aae3b('0x3')](),controller['index']),router[_0x3aae3b('0x1')](_0x3aae3b('0xd'),auth[_0x3aae3b('0x3')](),controller[_0x3aae3b('0x29')]),router['get'](_0x3aae3b('0xa'),auth['isChatInteractionAuthorized'](),controller['show']),router['get'](_0x3aae3b('0x1e'),auth[_0x3aae3b('0x1b')](),controller[_0x3aae3b('0x2a')]),router[_0x3aae3b('0x1')]('/:id/messages',auth['isAuthenticated'](),controller[_0x3aae3b('0x6')]),router['get'](_0x3aae3b('0x1f'),auth[_0x3aae3b('0x1b')](),controller['getMyMessages']),router[_0x3aae3b('0x1')](_0x3aae3b('0x1c'),auth[_0x3aae3b('0x3')](),controller['download']),router[_0x3aae3b('0x22')]('/',auth[_0x3aae3b('0x3')](),controller[_0x3aae3b('0x2')]),router['post']('/:id/vidaoo',auth[_0x3aae3b('0x3')](),controller['createVidaooSession']);const upload=multer({'storage':multer[_0x3aae3b('0x28')]({'destination':function(_0x21dbc4,_0x1d4f42,_0x13532a){const _0x554ef8=_0x3aae3b;_0x13532a(null,path[_0x554ef8('0x13')](config[_0x554ef8('0x18')],_0x554ef8('0x14')));},'filename':function(_0x9f4cbb,_0x121ac9,_0x1a1dc4){const _0x1826b9=_0x3aae3b;_0x1a1dc4(null,util[_0x1826b9('0x7')](_0x1826b9('0x1d'),Date['now'](),_0x121ac9[_0x1826b9('0x0')]['replace'](/[+@&/\\#,+()$~%'":*?<>{}\s\\|]/g,'-')));}})});router[_0x3aae3b('0x22')]('/:id/attachment_upload',upload['single']('file'),controller[_0x3aae3b('0x17')]),router[_0x3aae3b('0x22')](_0x3aae3b('0x11'),auth['isChatInteractionAuthorized'](),controller[_0x3aae3b('0xe')]),router['post'](_0x3aae3b('0x20'),auth['isAuthenticated'](),interaction[_0x3aae3b('0x4')](_0x3aae3b('0x21'),_0x3aae3b('0x12')),controller[_0x3aae3b('0x15')]),router[_0x3aae3b('0x2b')](_0x3aae3b('0xa'),auth[_0x3aae3b('0x3')](),interaction[_0x3aae3b('0x4')](_0x3aae3b('0x21'),'chatinteraction:update'),controller['update']),router['put'](_0x3aae3b('0x24'),controller[_0x3aae3b('0x5')]),router[_0x3aae3b('0x2b')](_0x3aae3b('0x26'),auth[_0x3aae3b('0x1b')](),controller[_0x3aae3b('0xb')]),router[_0x3aae3b('0x2b')]('/:id/close',controller['close']),router['delete'](_0x3aae3b('0xa'),auth[_0x3aae3b('0x3')](),interaction['tracked'](_0x3aae3b('0x21'),'chatinteraction:destroy'),controller[_0x3aae3b('0xf')]),router[_0x3aae3b('0x8')]('/:id/tags',auth['isAuthenticated'](),controller[_0x3aae3b('0x19')]),module[_0x3aae3b('0x1a')]=router; \ No newline at end of file +const a86_0x3a9e=['attachmentDownload','/:id/abandon','/describe','put','root','../../components/interaction/service','server/files/attachments/','delete','originalname','tracked','/:id/attachment_download','/:id/vidaoo','/:id/download','update','isAuthenticated','getMyMessages','single','express','addMessage','/:id/messages','post','isChatInteractionAuthorized','getMessages','../../components/auth/service','join','replace','../../config/environment','addTags','format','download','/:id','Router','chatinteraction:update','multer','abandon','chat','%s-%s','path','get','attachmentUpload','/:id/my_messages','index','chatinteraction:addtags','/:id/tags','removeTags','close','show','describe','file'];(function(_0x4b760d,_0x51ffa8){const _0x3a9e3f=function(_0x33b51d){while(--_0x33b51d){_0x4b760d['push'](_0x4b760d['shift']());}};_0x3a9e3f(++_0x51ffa8);}(a86_0x3a9e,0x1b6));const a86_0x33b5=function(_0x4b760d,_0x51ffa8){_0x4b760d=_0x4b760d-0x191;let _0x3a9e3f=a86_0x3a9e[_0x4b760d];return _0x3a9e3f;};const a86_0x3b02a5=a86_0x33b5;'use strict';const multer=require(a86_0x3b02a5(0x1b5)),util=require('util'),path=require(a86_0x3b02a5(0x1b9)),express=require(a86_0x3b02a5(0x1a5)),router=express[a86_0x3b02a5(0x1b3)](),auth=require(a86_0x3b02a5(0x1ab)),interaction=require(a86_0x3b02a5(0x199)),config=require(a86_0x3b02a5(0x1ae)),controller=require('./chatInteraction.controller');router[a86_0x3b02a5(0x1ba)]('/',auth[a86_0x3b02a5(0x1a2)](),controller[a86_0x3b02a5(0x1bd)]),router['get'](a86_0x3b02a5(0x196),auth[a86_0x3b02a5(0x1a2)](),controller[a86_0x3b02a5(0x192)]),router[a86_0x3b02a5(0x1ba)](a86_0x3b02a5(0x1b2),auth[a86_0x3b02a5(0x1a9)](),controller[a86_0x3b02a5(0x191)]),router[a86_0x3b02a5(0x1ba)](a86_0x3b02a5(0x19e),auth[a86_0x3b02a5(0x1a9)](),controller[a86_0x3b02a5(0x194)]),router['get'](a86_0x3b02a5(0x1a7),auth[a86_0x3b02a5(0x1a2)](),controller[a86_0x3b02a5(0x1aa)]),router[a86_0x3b02a5(0x1ba)](a86_0x3b02a5(0x1bc),auth['isChatInteractionAuthorized'](),controller[a86_0x3b02a5(0x1a3)]),router[a86_0x3b02a5(0x1ba)](a86_0x3b02a5(0x1a0),auth[a86_0x3b02a5(0x1a2)](),controller[a86_0x3b02a5(0x1b1)]),router[a86_0x3b02a5(0x1a8)]('/',auth[a86_0x3b02a5(0x1a2)](),controller['create']),router[a86_0x3b02a5(0x1a8)](a86_0x3b02a5(0x19f),auth[a86_0x3b02a5(0x1a2)](),controller['createVidaooSession']);const upload=multer({'storage':multer['diskStorage']({'destination':function(_0x22b189,_0x57278d,_0x56a264){const _0x569c94=a86_0x3b02a5;_0x56a264(null,path[_0x569c94(0x1ac)](config[_0x569c94(0x198)],_0x569c94(0x19a)));},'filename':function(_0x32b442,_0x2179f9,_0x1bbc8e){const _0x36e9c4=a86_0x3b02a5;_0x1bbc8e(null,util[_0x36e9c4(0x1b0)](_0x36e9c4(0x1b8),Date['now'](),_0x2179f9[_0x36e9c4(0x19c)][_0x36e9c4(0x1ad)](/[+@&/\\#,+()$~%'":*?<>{}\s\\|]/g,'-')));}})});router[a86_0x3b02a5(0x1a8)]('/:id/attachment_upload',upload[a86_0x3b02a5(0x1a4)](a86_0x3b02a5(0x193)),controller[a86_0x3b02a5(0x1bb)]),router['post'](a86_0x3b02a5(0x1a7),auth['isChatInteractionAuthorized'](),controller[a86_0x3b02a5(0x1a6)]),router[a86_0x3b02a5(0x1a8)](a86_0x3b02a5(0x1bf),auth['isAuthenticated'](),interaction[a86_0x3b02a5(0x19d)](a86_0x3b02a5(0x1b7),a86_0x3b02a5(0x1be)),controller[a86_0x3b02a5(0x1af)]),router[a86_0x3b02a5(0x197)]('/:id',auth[a86_0x3b02a5(0x1a2)](),interaction['tracked'](a86_0x3b02a5(0x1b7),a86_0x3b02a5(0x1b4)),controller[a86_0x3b02a5(0x1a1)]),router[a86_0x3b02a5(0x197)]('/:id/custom_update',controller['customUpdate']),router[a86_0x3b02a5(0x197)](a86_0x3b02a5(0x195),auth['isChatInteractionAuthorized'](),controller[a86_0x3b02a5(0x1b6)]),router[a86_0x3b02a5(0x197)]('/:id/close',controller[a86_0x3b02a5(0x1c1)]),router[a86_0x3b02a5(0x19b)](a86_0x3b02a5(0x1b2),auth[a86_0x3b02a5(0x1a2)](),interaction[a86_0x3b02a5(0x19d)](a86_0x3b02a5(0x1b7),'chatinteraction:destroy'),controller['destroy']),router[a86_0x3b02a5(0x19b)](a86_0x3b02a5(0x1bf),auth[a86_0x3b02a5(0x1a2)](),controller[a86_0x3b02a5(0x1c0)]),module['exports']=router; \ No newline at end of file diff --git a/server/api/chatInternalMessage/chatInternalMessage.attributes.js b/server/api/chatInternalMessage/chatInternalMessage.attributes.js index 443ffb4..bf7efdb 100644 --- a/server/api/chatInternalMessage/chatInternalMessage.attributes.js +++ b/server/api/chatInternalMessage/chatInternalMessage.attributes.js @@ -1 +1 @@ -const a72_0x36a5=['medium','INTEGER','sequelize','exports'];(function(_0x1becd2,_0x36a51d){const _0x56c535=function(_0x1496a5){while(--_0x1496a5){_0x1becd2['push'](_0x1becd2['shift']());}};_0x56c535(++_0x36a51d);}(a72_0x36a5,0x13b));const a72_0x56c5=function(_0x1becd2,_0x36a51d){_0x1becd2=_0x1becd2-0x0;let _0x56c535=a72_0x36a5[_0x1becd2];return _0x56c535;};const _0x3c6d46=a72_0x56c5;'use strict';const Sequelize=require(_0x3c6d46('0x3'));module[_0x3c6d46('0x0')]={'body':{'type':Sequelize['TEXT'](_0x3c6d46('0x1')),'allowNull':![]},'read':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'ChatInternalMessageId':{'type':Sequelize[_0x3c6d46('0x2')]}}; \ No newline at end of file +const a87_0x374a=['exports','BOOLEAN','INTEGER','TEXT','sequelize','medium'];(function(_0x3f1168,_0x1ed4a6){const _0x374aaf=function(_0x2f62d9){while(--_0x2f62d9){_0x3f1168['push'](_0x3f1168['shift']());}};_0x374aaf(++_0x1ed4a6);}(a87_0x374a,0x122));const a87_0x2f62=function(_0x3f1168,_0x1ed4a6){_0x3f1168=_0x3f1168-0xf9;let _0x374aaf=a87_0x374a[_0x3f1168];return _0x374aaf;};const a87_0x5a9b0f=a87_0x2f62;'use strict';const {DataTypes}=require(a87_0x5a9b0f(0xfb)),attributes={'body':{'type':DataTypes[a87_0x5a9b0f(0xfa)]({'length':a87_0x5a9b0f(0xfc)}),'allowNull':![]},'read':{'type':DataTypes[a87_0x5a9b0f(0xfe)],'defaultValue':![]},'ChatInternalMessageId':{'type':DataTypes[a87_0x5a9b0f(0xf9)]}};module[a87_0x5a9b0f(0xfd)]['attributes']=attributes; \ No newline at end of file diff --git a/server/api/chatInternalMessage/chatInternalMessage.controller.js b/server/api/chatInternalMessage/chatInternalMessage.controller.js index 9f38a94..c9e5a04 100644 --- a/server/api/chatInternalMessage/chatInternalMessage.controller.js +++ b/server/api/chatInternalMessage/chatInternalMessage.controller.js @@ -1 +1 @@ -const a73_0x3396=['keys','./chatInternalMessage.socket','allowmessenger','include','all','fullname','set','userpic','lastMessage','includeAll','create','filter','fieldName','sequelize','count','push','rows','sort','body','messages','like','UserProfileSection','YYYY-MM-DD\x20HH:mm:ss','json','key','name','findAll','rawAttributes','findOne','user','length','limit','lastLoginAt','showWebBar','options','status','find','offset','error','online','order','destroy','lastMessageAt','params','merge','isEmpty','nolimit','then','admin','end','update','where','-createdAt','../../rediscache','send','internal','filters','format','query','Unable\x20to\x20retrieve\x20the\x20current\x20user','get','role','userProfileId','Agents','getUsers','ChatInternalMessage','index','describe','fields','sendStatus','VoiceQueues','model','attributes','show','catch','type','agent','User','Content-Range','autoAssociation','intersection','map','resourceId','lodash','UserProfileResource'];(function(_0xc6d3b1,_0x33963e){const _0x2defaa=function(_0xb6076d){while(--_0xb6076d){_0xc6d3b1['push'](_0xc6d3b1['shift']());}};_0x2defaa(++_0x33963e);}(a73_0x3396,0x1e6));const a73_0x2def=function(_0xc6d3b1,_0x33963e){_0xc6d3b1=_0xc6d3b1-0x0;let _0x2defaa=a73_0x3396[_0xc6d3b1];return _0x2defaa;};const _0x533f96=a73_0x2def;'use strict';const moment=require('moment'),_=require(_0x533f96('0x16')),qs=require('../../components/parsers/qs'),logger=require('../../config/logger')('api'),{getSocket}=require(_0x533f96('0x4d')),db=require('../../mysqldb')['db'],{Op}=require(_0x533f96('0x25')),socket=getSocket();require(_0x533f96('0x19'))['register'](socket);function respondWithResult(_0xb6076d,_0x5aa49e){return _0x5aa49e=_0x5aa49e||0xc8,function(_0x4804df){const _0x4efb80=a73_0x2def;if(_0x4804df)return _0xb6076d[_0x4efb80('0x3b')](_0x5aa49e)['json'](_0x4804df);};}function respondWithFilteredResult(_0x3c6ecb,_0x2f5c29){return function(_0x552ca7){const _0x50638c=a73_0x2def;if(_0x552ca7){const _0x52512e=_0x552ca7[_0x50638c('0x26')],_0x2c77b0=_0x2f5c29[_0x50638c('0x3d')];let _0x5c08c6=_0x2f5c29[_0x50638c('0x3d')]+_0x2f5c29[_0x50638c('0x37')],_0x4131b1;return _0x5c08c6>=_0x52512e?(_0x5c08c6=_0x52512e,_0x4131b1=0xc8):_0x4131b1=0xce,_0x3c6ecb[_0x50638c('0x3b')](_0x4131b1),_0x3c6ecb[_0x50638c('0x1e')](_0x50638c('0x11'),_0x2c77b0+'-'+_0x5c08c6+'/'+_0x52512e)[_0x50638c('0x2f')](_0x552ca7);}return null;};}function saveUpdates(_0x4f5fc2){return function(_0x2dad20){const _0x41d1d1=a73_0x2def;if(_0x2dad20)return _0x2dad20['update'](_0x4f5fc2)[_0x41d1d1('0x47')](function(_0xdb5862){return _0xdb5862;});return null;};}function removeEntity(_0x5dd6d1){return function(_0xa7bf21){const _0x432a2c=a73_0x2def;if(_0xa7bf21)return _0xa7bf21[_0x432a2c('0x41')]()[_0x432a2c('0x47')](function(){const _0x2986ca=_0x432a2c;_0x5dd6d1['status'](0xcc)[_0x2986ca('0x49')]();});};}function handleEntityNotFound(_0x473e10){return function(_0x219cc7){const _0x260778=a73_0x2def;return!_0x219cc7&&_0x473e10[_0x260778('0x8')](0x194),_0x219cc7;};}function handleError(_0x7857b4,_0x135406){return _0x135406=_0x135406||0x1f4,function(_0x408f94){const _0x51168b=a73_0x2def;logger[_0x51168b('0x3e')](_0x408f94['stack']),_0x408f94[_0x51168b('0x31')]&&delete _0x408f94[_0x51168b('0x31')],_0x7857b4[_0x51168b('0x3b')](_0x135406)[_0x51168b('0x4e')](_0x408f94);};}exports[_0x533f96('0x5')]=function(_0x12e580,_0x177fd1){const _0x34e0d8=_0x533f96;let _0x3bc7c3={};const _0x55722f={},_0x2b5ad8={'count':0x0,'rows':[]},_0x1249d2=_[_0x34e0d8('0x14')](db[_0x34e0d8('0x4')]['rawAttributes'],function(_0x32b9ac){const _0x2ae1f1=_0x34e0d8;return{'name':_0x32b9ac[_0x2ae1f1('0x24')],'type':_0x32b9ac['type'][_0x2ae1f1('0x30')]};});_0x55722f['model']=_[_0x34e0d8('0x14')](_0x1249d2,_0x34e0d8('0x31')),_0x55722f[_0x34e0d8('0x52')]=_['keys'](_0x12e580[_0x34e0d8('0x52')]),_0x55722f[_0x34e0d8('0x50')]=_['intersection'](_0x55722f[_0x34e0d8('0xa')],_0x55722f[_0x34e0d8('0x52')]),_0x3bc7c3['attributes']=_[_0x34e0d8('0x13')](_0x55722f['model'],qs[_0x34e0d8('0x7')](_0x12e580[_0x34e0d8('0x52')]['fields'])),_0x3bc7c3[_0x34e0d8('0xb')]=_0x3bc7c3[_0x34e0d8('0xb')][_0x34e0d8('0x36')]?_0x3bc7c3[_0x34e0d8('0xb')]:_0x55722f['model'];typeof _0x12e580[_0x34e0d8('0x52')][_0x34e0d8('0x46')]==='undefined'&&(_0x3bc7c3[_0x34e0d8('0x37')]=qs[_0x34e0d8('0x37')](_0x12e580['query']['limit']),_0x3bc7c3[_0x34e0d8('0x3d')]=qs[_0x34e0d8('0x3d')](_0x12e580[_0x34e0d8('0x52')][_0x34e0d8('0x3d')]));_0x3bc7c3[_0x34e0d8('0x40')]=qs[_0x34e0d8('0x29')](_0x12e580['query'][_0x34e0d8('0x29')]),_0x3bc7c3[_0x34e0d8('0x4b')]=qs[_0x34e0d8('0x50')](_['pick'](_0x12e580[_0x34e0d8('0x52')],_0x55722f[_0x34e0d8('0x50')]),_0x1249d2);_0x12e580[_0x34e0d8('0x52')][_0x34e0d8('0x23')]&&(_0x3bc7c3[_0x34e0d8('0x4b')]=_['merge'](_0x3bc7c3[_0x34e0d8('0x4b')],{[Op['or']]:_[_0x34e0d8('0x14')](_0x1249d2,function(_0x1a5513){const _0x2d5081=_0x34e0d8;if(_0x1a5513[_0x2d5081('0xe')]!=='VIRTUAL'){const _0x3cd9fa={};return _0x3cd9fa[_0x1a5513[_0x2d5081('0x31')]]={[Op[_0x2d5081('0x2c')]]:'%'+_0x12e580[_0x2d5081('0x52')][_0x2d5081('0x23')]+'%'},_0x3cd9fa;}})}));_0x3bc7c3=_[_0x34e0d8('0x44')]({},_0x3bc7c3,_0x12e580['options']);const _0x575e6a={'where':_0x3bc7c3[_0x34e0d8('0x4b')]};return db[_0x34e0d8('0x4')][_0x34e0d8('0x26')](_0x575e6a)[_0x34e0d8('0x47')](function(_0x19aba3){const _0x2cebbf=_0x34e0d8;return _0x2b5ad8[_0x2cebbf('0x26')]=_0x19aba3,_0x12e580[_0x2cebbf('0x52')][_0x2cebbf('0x21')]&&(_0x3bc7c3[_0x2cebbf('0x1b')]=[{'all':!![]}]),db[_0x2cebbf('0x4')][_0x2cebbf('0x32')](_0x3bc7c3);})[_0x34e0d8('0x47')](function(_0x55806f){const _0x1d9777=_0x34e0d8;return _0x2b5ad8[_0x1d9777('0x28')]=_0x55806f,_0x2b5ad8;})[_0x34e0d8('0x47')](respondWithFilteredResult(_0x177fd1,_0x3bc7c3))['catch'](handleError(_0x177fd1,null));},exports[_0x533f96('0xc')]=function(_0x77a0b0,_0x4484be){const _0x307493=_0x533f96;let _0x412c75={'raw':!![],'where':{'id':_0x77a0b0[_0x307493('0x43')]['id']}};const _0x547eea={};return _0x547eea['model']=_[_0x307493('0x18')](db[_0x307493('0x4')][_0x307493('0x33')]),_0x547eea[_0x307493('0x52')]=_[_0x307493('0x18')](_0x77a0b0[_0x307493('0x52')]),_0x547eea[_0x307493('0x50')]=_[_0x307493('0x13')](_0x547eea[_0x307493('0xa')],_0x547eea[_0x307493('0x52')]),_0x412c75[_0x307493('0xb')]=_['intersection'](_0x547eea['model'],qs[_0x307493('0x7')](_0x77a0b0['query'][_0x307493('0x7')])),_0x412c75[_0x307493('0xb')]=_0x412c75['attributes'][_0x307493('0x36')]?_0x412c75[_0x307493('0xb')]:_0x547eea[_0x307493('0xa')],_0x77a0b0[_0x307493('0x52')][_0x307493('0x21')]&&(_0x412c75[_0x307493('0x1b')]=[{'all':!![]}]),_0x412c75=_[_0x307493('0x44')]({},_0x412c75,_0x77a0b0[_0x307493('0x3a')]),db['ChatInternalMessage'][_0x307493('0x34')](_0x412c75)['then'](handleEntityNotFound(_0x4484be,null))[_0x307493('0x47')](respondWithResult(_0x4484be,null))['catch'](handleError(_0x4484be,null));},exports['create']=function(_0x4f0b66,_0x3f56cc){const _0x35fe2a=_0x533f96;return db['ChatInternalMessage'][_0x35fe2a('0x22')](_0x4f0b66[_0x35fe2a('0x2a')],{})[_0x35fe2a('0x47')](respondWithResult(_0x3f56cc,0xc9))[_0x35fe2a('0xd')](handleError(_0x3f56cc,null));},exports[_0x533f96('0x4a')]=function(_0xb23878,_0x2fe1d4){const _0x3c9801=_0x533f96;return _0xb23878['body']['id']&&delete _0xb23878[_0x3c9801('0x2a')]['id'],db[_0x3c9801('0x4')][_0x3c9801('0x34')]({'where':{'id':_0xb23878[_0x3c9801('0x43')]['id']}})[_0x3c9801('0x47')](handleEntityNotFound(_0x2fe1d4,null))[_0x3c9801('0x47')](saveUpdates(_0xb23878['body'],null))['then'](respondWithResult(_0x2fe1d4,null))[_0x3c9801('0xd')](handleError(_0x2fe1d4,null));},exports[_0x533f96('0x41')]=function(_0x4279d8,_0x3357f6){const _0x450607=_0x533f96;return db[_0x450607('0x4')][_0x450607('0x34')]({'where':{'id':_0x4279d8[_0x450607('0x43')]['id']}})['then'](handleEntityNotFound(_0x3357f6,null))[_0x450607('0x47')](removeEntity(_0x3357f6,null))[_0x450607('0xd')](handleError(_0x3357f6,null));},exports[_0x533f96('0x6')]=function(_0x4f996e,_0x8bcdcf){const _0x26291b=_0x533f96;return db[_0x26291b('0x4')][_0x26291b('0x6')]()['then'](respondWithResult(_0x8bcdcf,null))[_0x26291b('0xd')](handleError(_0x8bcdcf,null));};function wrapUser(_0x358c2b){return function(_0x30c7ca){const _0x20e4ba=a73_0x2def,_0x5b9d1f=_0x358c2b[_0x20e4ba('0x54')]({'plain':!![]});return _0x5b9d1f[_0x20e4ba('0x2b')]=[],_0x30c7ca?(_0x5b9d1f[_0x20e4ba('0x42')]=_0x30c7ca['createdAt'],_0x5b9d1f[_0x20e4ba('0x20')]=_0x30c7ca):(_0x5b9d1f['lastMessageAt']=moment(0x0)[_0x20e4ba('0x51')](_0x20e4ba('0x2e')),_0x5b9d1f[_0x20e4ba('0x20')]={}),_0x5b9d1f;};}exports[_0x533f96('0x3')]=function(_0x5dc37a,_0x3aadc4){const _0x47805b=_0x533f96;let _0x50ced1=[];return db[_0x47805b('0x10')][_0x47805b('0x32')]({'where':{'role':['agent',_0x47805b('0x48'),_0x47805b('0x35')]},'attributes':['id',_0x47805b('0x1d'),_0x47805b('0x31'),_0x47805b('0x0'),_0x47805b('0x1f'),_0x47805b('0x4f'),_0x47805b('0x3f'),_0x47805b('0x38'),_0x47805b('0x1a'),_0x47805b('0x39')],'order':qs['sort']('-online'),'include':[{'model':db['VoiceQueue'],'as':_0x47805b('0x9'),'attributes':['id',_0x47805b('0x31'),'type'],'through':{'attributes':[]}}]})[_0x47805b('0x47')](function(_0x3c9bf2){const _0x5e4496=_0x47805b;if(_0x3c9bf2){const _0x10e585=_0x5dc37a[_0x5e4496('0x35')][_0x5e4496('0x54')]({'plain':!![]});if(!_0x10e585)throw new Error(_0x5e4496('0x53'));return _0x10e585['role']===_0x5e4496('0x35')?db[_0x5e4496('0x2d')]['findOne']({'where':{'name':_0x5e4496('0x2'),'userProfileId':_0x10e585[_0x5e4496('0x1')]},'raw':!![]})[_0x5e4496('0x47')](function(_0x17ca46){const _0x2e166c=_0x5e4496;if(_0x17ca46)return _0x17ca46[_0x2e166c('0x12')]===0x0?db[_0x2e166c('0x17')][_0x2e166c('0x32')]({'where':{'sectionId':_0x17ca46['id']},'raw':!![]})[_0x2e166c('0x47')](function(_0x1beaf2){const _0x32562f=_0x2e166c;let _0x4a1505=[];if(_[_0x32562f('0x45')](_0x1beaf2))return _0x4a1505=_[_0x32562f('0x23')](_0x3c9bf2,function(_0x5425d5){const _0x18bbfc=_0x32562f;if(_0x5425d5['role']!==_0x18bbfc('0xf'))return _0x5425d5;}),_0x4a1505;else{for(let _0x2a8f0f=0x0;_0x2a8f0f<_0x3c9bf2['length'];_0x2a8f0f++){const _0x3615c0=_0x3c9bf2[_0x2a8f0f];if(_0x3615c0[_0x32562f('0x0')]===_0x32562f('0xf')){const _0x414e8b=_[_0x32562f('0x3c')](_0x1beaf2,function(_0x934497){const _0x3895d2=_0x32562f;return _0x934497[_0x3895d2('0x15')]===_0x3615c0['id'];});if(_0x414e8b)_0x4a1505[_0x32562f('0x27')](_0x3615c0);}else _0x4a1505[_0x32562f('0x27')](_0x3615c0);}return _0x4a1505;}}):_0x3c9bf2;else{const _0x319a5a=_['filter'](_0x3c9bf2,function(_0x5a7de8){const _0x1874a6=_0x2e166c;if(_0x5a7de8[_0x1874a6('0x0')]!=='agent')return _0x5a7de8;});return _0x319a5a;}}):_0x3c9bf2;}})[_0x47805b('0x47')](function(_0x1df76f){const _0x3e96df=_0x47805b,_0x4a8b22=[];if(_0x1df76f){_0x50ced1=_0x1df76f;for(let _0x3d7874=0x0;_0x3d7874<_0x1df76f['length'];_0x3d7874+=0x1){_0x50ced1[_0x3d7874][_0x3e96df('0x2b')]=[],_0x4a8b22[_0x3e96df('0x27')](db[_0x3e96df('0x4')][_0x3e96df('0x34')]({'where':{'FromId':[_0x5dc37a[_0x3e96df('0x35')]['id'],_0x1df76f[_0x3d7874]['id']],'ToId':[_0x5dc37a[_0x3e96df('0x35')]['id'],_0x1df76f[_0x3d7874]['id']],'ChatGroupId':null},'attributes':['id','createdAt','FromId','ToId','read',_0x3e96df('0x2a')],'order':qs[_0x3e96df('0x29')](_0x3e96df('0x4c')),'limit':0x1,'offset':0x0,'raw':!![]})[_0x3e96df('0x47')](wrapUser(_0x1df76f[_0x3d7874])));}return Promise[_0x3e96df('0x1c')](_0x4a8b22);}return[];})[_0x47805b('0x47')](function(_0x4f511d){const _0x35310c=_0x47805b;return{'rows':_0x4f511d,'count':_0x4f511d[_0x35310c('0x36')]};})[_0x47805b('0x47')](respondWithResult(_0x3aadc4,null))[_0x47805b('0xd')](handleError(_0x3aadc4,null));}; \ No newline at end of file +const a88_0xf4cc=['User','createdAt','index','sort','lastLoginAt','create','catch','fieldName','UserProfileResource','limit','push','set','online','role','YYYY-MM-DD\x20HH:mm:ss','internal','../../rediscache','messages','user','json','show','agent','type','filters','fullname','destroy','intersection','api','order','../../components/parsers/qs','fields','lastMessage','where','all','VoiceQueue','allowmessenger','-online','count','getUsers','VoiceQueues','offset','get','isEmpty','describe','keys','like','findAll','model','showWebBar','filter','lodash','userpic','include','lastMessageAt','error','end','query','ChatInternalMessage','sendStatus','rawAttributes','nolimit','status','name','Agents','userProfileId','moment','-createdAt','length','format','body','update','options','pick','params','includeAll','key','resourceId','register','attributes','../../mysqldb','merge','then','findOne','Content-Range','VIRTUAL','map','undefined','Unable\x20to\x20retrieve\x20the\x20current\x20user'];(function(_0x4e4fa5,_0x10b074){const _0xf4cc70=function(_0x5db1a1){while(--_0x5db1a1){_0x4e4fa5['push'](_0x4e4fa5['shift']());}};_0xf4cc70(++_0x10b074);}(a88_0xf4cc,0xa4));const a88_0x5db1=function(_0x4e4fa5,_0x10b074){_0x4e4fa5=_0x4e4fa5-0x105;let _0xf4cc70=a88_0xf4cc[_0x4e4fa5];return _0xf4cc70;};const a88_0x3a6284=a88_0x5db1;'use strict';const moment=require(a88_0x3a6284(0x152)),_=require(a88_0x3a6284(0x143)),qs=require(a88_0x3a6284(0x12e)),logger=require('../../config/logger')(a88_0x3a6284(0x12c)),{getSocket}=require(a88_0x3a6284(0x121)),{db}=require(a88_0x3a6284(0x108)),{Op}=require('sequelize'),socket=getSocket();require('./chatInternalMessage.socket')[a88_0x3a6284(0x106)](socket);function respondWithResult(_0x581a4a,_0x51d3a4){return _0x51d3a4=_0x51d3a4||0xc8,function(_0x5b6696){const _0x1aafec=a88_0x5db1;if(_0x5b6696)return _0x581a4a[_0x1aafec(0x14e)](_0x51d3a4)[_0x1aafec(0x124)](_0x5b6696);};}function respondWithFilteredResult(_0x14a92c,_0xeec549){return function(_0x44d8a1){const _0x5d0faa=a88_0x5db1;if(_0x44d8a1){const _0x9c7ed4=_0x44d8a1[_0x5d0faa(0x136)],_0x27049f=_0xeec549[_0x5d0faa(0x139)];let _0x433859=_0xeec549[_0x5d0faa(0x139)]+_0xeec549[_0x5d0faa(0x11a)],_0x742f10;return _0x433859>=_0x9c7ed4?(_0x433859=_0x9c7ed4,_0x742f10=0xc8):_0x742f10=0xce,_0x14a92c['status'](_0x742f10),_0x14a92c[_0x5d0faa(0x11c)](_0x5d0faa(0x10c),_0x27049f+'-'+_0x433859+'/'+_0x9c7ed4)[_0x5d0faa(0x124)](_0x44d8a1);}return null;};}function saveUpdates(_0x41ae64){return function(_0xa0d8bf){const _0x36d060=a88_0x5db1;if(_0xa0d8bf)return _0xa0d8bf[_0x36d060(0x157)](_0x41ae64)[_0x36d060(0x10a)](function(_0x3e00a3){return _0x3e00a3;});return null;};}function removeEntity(_0x203af0){return function(_0x2cb3e2){const _0x11b824=a88_0x5db1;if(_0x2cb3e2)return _0x2cb3e2[_0x11b824(0x12a)]()[_0x11b824(0x10a)](function(){const _0x1d360f=_0x11b824;_0x203af0[_0x1d360f(0x14e)](0xcc)[_0x1d360f(0x148)]();});};}function handleEntityNotFound(_0x4c717d){return function(_0x2413ab){const _0x28d22a=a88_0x5db1;return!_0x2413ab&&_0x4c717d[_0x28d22a(0x14b)](0x194),_0x2413ab;};}function handleError(_0x49138e,_0x46624f){return _0x46624f=_0x46624f||0x1f4,function(_0x4c99b1){const _0x54eb86=a88_0x5db1;logger[_0x54eb86(0x147)](_0x4c99b1['stack']),_0x4c99b1[_0x54eb86(0x14f)]&&delete _0x4c99b1[_0x54eb86(0x14f)],_0x49138e['status'](_0x46624f)['send'](_0x4c99b1);};}exports[a88_0x3a6284(0x113)]=function(_0x2accb7,_0x22367e){const _0x4bcff0=a88_0x3a6284;let _0x1a63f1={};const _0x49e0c3={},_0x44d62b={'count':0x0,'rows':[]},_0x41bc9f=_[_0x4bcff0(0x10e)](db[_0x4bcff0(0x14a)][_0x4bcff0(0x14c)],function(_0x4d86ce){const _0x5546c5=_0x4bcff0;return{'name':_0x4d86ce[_0x5546c5(0x118)],'type':_0x4d86ce[_0x5546c5(0x127)][_0x5546c5(0x15c)]};});_0x49e0c3[_0x4bcff0(0x140)]=_['map'](_0x41bc9f,_0x4bcff0(0x14f)),_0x49e0c3[_0x4bcff0(0x149)]=_['keys'](_0x2accb7[_0x4bcff0(0x149)]),_0x49e0c3[_0x4bcff0(0x128)]=_[_0x4bcff0(0x12b)](_0x49e0c3[_0x4bcff0(0x140)],_0x49e0c3[_0x4bcff0(0x149)]),_0x1a63f1[_0x4bcff0(0x107)]=_[_0x4bcff0(0x12b)](_0x49e0c3['model'],qs['fields'](_0x2accb7['query'][_0x4bcff0(0x12f)])),_0x1a63f1[_0x4bcff0(0x107)]=_0x1a63f1[_0x4bcff0(0x107)]['length']?_0x1a63f1[_0x4bcff0(0x107)]:_0x49e0c3[_0x4bcff0(0x140)];typeof _0x2accb7[_0x4bcff0(0x149)][_0x4bcff0(0x14d)]===_0x4bcff0(0x10f)&&(_0x1a63f1['limit']=qs[_0x4bcff0(0x11a)](_0x2accb7[_0x4bcff0(0x149)][_0x4bcff0(0x11a)]),_0x1a63f1[_0x4bcff0(0x139)]=qs['offset'](_0x2accb7[_0x4bcff0(0x149)][_0x4bcff0(0x139)]));_0x1a63f1[_0x4bcff0(0x12d)]=qs[_0x4bcff0(0x114)](_0x2accb7[_0x4bcff0(0x149)][_0x4bcff0(0x114)]),_0x1a63f1[_0x4bcff0(0x131)]=qs['filters'](_[_0x4bcff0(0x159)](_0x2accb7[_0x4bcff0(0x149)],_0x49e0c3[_0x4bcff0(0x128)]),_0x41bc9f);_0x2accb7[_0x4bcff0(0x149)][_0x4bcff0(0x142)]&&(_0x1a63f1[_0x4bcff0(0x131)]=_[_0x4bcff0(0x109)](_0x1a63f1[_0x4bcff0(0x131)],{[Op['or']]:_['map'](_0x41bc9f,function(_0x3eb3e8){const _0x3bd1f3=_0x4bcff0;if(_0x3eb3e8[_0x3bd1f3(0x127)]!==_0x3bd1f3(0x10d)){const _0x2fba24={};return _0x2fba24[_0x3eb3e8[_0x3bd1f3(0x14f)]]={[Op[_0x3bd1f3(0x13e)]]:'%'+_0x2accb7['query'][_0x3bd1f3(0x142)]+'%'},_0x2fba24;}})}));_0x1a63f1=_[_0x4bcff0(0x109)]({},_0x1a63f1,_0x2accb7['options']);const _0x1596f6={'where':_0x1a63f1[_0x4bcff0(0x131)]};return db[_0x4bcff0(0x14a)][_0x4bcff0(0x136)](_0x1596f6)[_0x4bcff0(0x10a)](function(_0x39437c){const _0x23f2cb=_0x4bcff0;return _0x44d62b[_0x23f2cb(0x136)]=_0x39437c,_0x2accb7[_0x23f2cb(0x149)][_0x23f2cb(0x15b)]&&(_0x1a63f1[_0x23f2cb(0x145)]=[{'all':!![]}]),db[_0x23f2cb(0x14a)]['findAll'](_0x1a63f1);})['then'](function(_0x4fbbc2){return _0x44d62b['rows']=_0x4fbbc2,_0x44d62b;})[_0x4bcff0(0x10a)](respondWithFilteredResult(_0x22367e,_0x1a63f1))[_0x4bcff0(0x117)](handleError(_0x22367e,null));},exports[a88_0x3a6284(0x125)]=function(_0x283191,_0x658055){const _0x121a8c=a88_0x3a6284;let _0x33f2ea={'raw':!![],'where':{'id':_0x283191[_0x121a8c(0x15a)]['id']}};const _0x92b0f0={};return _0x92b0f0[_0x121a8c(0x140)]=_['keys'](db['ChatInternalMessage'][_0x121a8c(0x14c)]),_0x92b0f0[_0x121a8c(0x149)]=_[_0x121a8c(0x13d)](_0x283191[_0x121a8c(0x149)]),_0x92b0f0[_0x121a8c(0x128)]=_[_0x121a8c(0x12b)](_0x92b0f0[_0x121a8c(0x140)],_0x92b0f0['query']),_0x33f2ea['attributes']=_[_0x121a8c(0x12b)](_0x92b0f0[_0x121a8c(0x140)],qs[_0x121a8c(0x12f)](_0x283191[_0x121a8c(0x149)][_0x121a8c(0x12f)])),_0x33f2ea[_0x121a8c(0x107)]=_0x33f2ea['attributes']['length']?_0x33f2ea[_0x121a8c(0x107)]:_0x92b0f0['model'],_0x283191[_0x121a8c(0x149)]['includeAll']&&(_0x33f2ea['include']=[{'all':!![]}]),_0x33f2ea=_[_0x121a8c(0x109)]({},_0x33f2ea,_0x283191[_0x121a8c(0x158)]),db[_0x121a8c(0x14a)][_0x121a8c(0x10b)](_0x33f2ea)[_0x121a8c(0x10a)](handleEntityNotFound(_0x658055,null))[_0x121a8c(0x10a)](respondWithResult(_0x658055,null))[_0x121a8c(0x117)](handleError(_0x658055,null));},exports[a88_0x3a6284(0x116)]=function(_0x3e0d9c,_0x3fcf25){const _0xa45b6b=a88_0x3a6284;return db[_0xa45b6b(0x14a)]['create'](_0x3e0d9c[_0xa45b6b(0x156)],{})[_0xa45b6b(0x10a)](respondWithResult(_0x3fcf25,0xc9))[_0xa45b6b(0x117)](handleError(_0x3fcf25,null));},exports['update']=function(_0x42b413,_0x4c58eb){const _0x339faf=a88_0x3a6284;return _0x42b413[_0x339faf(0x156)]['id']&&delete _0x42b413[_0x339faf(0x156)]['id'],db['ChatInternalMessage'][_0x339faf(0x10b)]({'where':{'id':_0x42b413[_0x339faf(0x15a)]['id']}})[_0x339faf(0x10a)](handleEntityNotFound(_0x4c58eb,null))[_0x339faf(0x10a)](saveUpdates(_0x42b413[_0x339faf(0x156)],null))[_0x339faf(0x10a)](respondWithResult(_0x4c58eb,null))[_0x339faf(0x117)](handleError(_0x4c58eb,null));},exports[a88_0x3a6284(0x12a)]=function(_0x34d860,_0x218fea){const _0x1156af=a88_0x3a6284;return db['ChatInternalMessage'][_0x1156af(0x10b)]({'where':{'id':_0x34d860[_0x1156af(0x15a)]['id']}})['then'](handleEntityNotFound(_0x218fea,null))[_0x1156af(0x10a)](removeEntity(_0x218fea,null))[_0x1156af(0x117)](handleError(_0x218fea,null));},exports[a88_0x3a6284(0x13c)]=function(_0x51eddb,_0x5b121f){const _0x5d2a48=a88_0x3a6284;return db[_0x5d2a48(0x14a)][_0x5d2a48(0x13c)]()[_0x5d2a48(0x10a)](respondWithResult(_0x5b121f,null))[_0x5d2a48(0x117)](handleError(_0x5b121f,null));};function wrapUser(_0xd0aa2c){return function(_0x44a20f){const _0x1ad161=a88_0x5db1,_0xfd136e=_0xd0aa2c[_0x1ad161(0x13a)]({'plain':!![]});return _0xfd136e[_0x1ad161(0x122)]=[],_0x44a20f?(_0xfd136e[_0x1ad161(0x146)]=_0x44a20f[_0x1ad161(0x112)],_0xfd136e[_0x1ad161(0x130)]=_0x44a20f):(_0xfd136e[_0x1ad161(0x146)]=moment(0x0)[_0x1ad161(0x155)](_0x1ad161(0x11f)),_0xfd136e[_0x1ad161(0x130)]={}),_0xfd136e;};}exports[a88_0x3a6284(0x137)]=function(_0x5d6f43,_0x530d5c){const _0x2f654=a88_0x3a6284;let _0x1c0e02=[];return db[_0x2f654(0x111)][_0x2f654(0x13f)]({'where':{'role':[_0x2f654(0x126),'admin','user']},'attributes':['id',_0x2f654(0x129),_0x2f654(0x14f),_0x2f654(0x11e),_0x2f654(0x144),_0x2f654(0x120),_0x2f654(0x11d),_0x2f654(0x115),_0x2f654(0x134),_0x2f654(0x141)],'order':qs[_0x2f654(0x114)](_0x2f654(0x135)),'include':[{'model':db[_0x2f654(0x133)],'as':_0x2f654(0x138),'attributes':['id',_0x2f654(0x14f),_0x2f654(0x127)],'through':{'attributes':[]}}]})[_0x2f654(0x10a)](function(_0x939cfc){const _0x24bef4=_0x2f654;if(_0x939cfc){const _0x3239d6=_0x5d6f43[_0x24bef4(0x123)][_0x24bef4(0x13a)]({'plain':!![]});if(!_0x3239d6)throw new Error(_0x24bef4(0x110));return _0x3239d6['role']===_0x24bef4(0x123)?db['UserProfileSection']['findOne']({'where':{'name':_0x24bef4(0x150),'userProfileId':_0x3239d6[_0x24bef4(0x151)]},'raw':!![]})['then'](function(_0xa00fbd){const _0x3648fa=_0x24bef4;if(_0xa00fbd)return _0xa00fbd['autoAssociation']===0x0?db[_0x3648fa(0x119)][_0x3648fa(0x13f)]({'where':{'sectionId':_0xa00fbd['id']},'raw':!![]})[_0x3648fa(0x10a)](function(_0x736f9b){const _0x403c16=_0x3648fa;let _0x474347=[];if(_[_0x403c16(0x13b)](_0x736f9b))return _0x474347=_[_0x403c16(0x142)](_0x939cfc,function(_0x5332b6){const _0x531ab4=_0x403c16;if(_0x5332b6[_0x531ab4(0x11e)]!==_0x531ab4(0x126))return _0x5332b6;}),_0x474347;else{for(let _0x190954=0x0;_0x190954<_0x939cfc[_0x403c16(0x154)];_0x190954++){const _0x2027b5=_0x939cfc[_0x190954];if(_0x2027b5[_0x403c16(0x11e)]==='agent'){const _0x54562b=_['find'](_0x736f9b,function(_0x16a4a5){const _0x13dd0c=_0x403c16;return _0x16a4a5[_0x13dd0c(0x105)]===_0x2027b5['id'];});if(_0x54562b)_0x474347[_0x403c16(0x11b)](_0x2027b5);}else _0x474347['push'](_0x2027b5);}return _0x474347;}}):_0x939cfc;else{const _0x2a1053=_[_0x3648fa(0x142)](_0x939cfc,function(_0x428c79){const _0x2d6fa8=_0x3648fa;if(_0x428c79[_0x2d6fa8(0x11e)]!=='agent')return _0x428c79;});return _0x2a1053;}}):_0x939cfc;}})['then'](function(_0x1bb2bc){const _0x28699a=_0x2f654,_0x3e4bbd=[];if(_0x1bb2bc){_0x1c0e02=_0x1bb2bc;for(let _0x508d9b=0x0;_0x508d9b<_0x1bb2bc[_0x28699a(0x154)];_0x508d9b+=0x1){_0x1c0e02[_0x508d9b][_0x28699a(0x122)]=[],_0x3e4bbd[_0x28699a(0x11b)](db[_0x28699a(0x14a)][_0x28699a(0x10b)]({'where':{'FromId':[_0x5d6f43[_0x28699a(0x123)]['id'],_0x1bb2bc[_0x508d9b]['id']],'ToId':[_0x5d6f43[_0x28699a(0x123)]['id'],_0x1bb2bc[_0x508d9b]['id']],'ChatGroupId':null},'attributes':['id','createdAt','FromId','ToId','read',_0x28699a(0x156)],'order':qs[_0x28699a(0x114)](_0x28699a(0x153)),'limit':0x1,'offset':0x0,'raw':!![]})[_0x28699a(0x10a)](wrapUser(_0x1bb2bc[_0x508d9b])));}return Promise[_0x28699a(0x132)](_0x3e4bbd);}return[];})[_0x2f654(0x10a)](function(_0x27f46c){return{'rows':_0x27f46c,'count':_0x27f46c['length']};})[_0x2f654(0x10a)](respondWithResult(_0x530d5c,null))[_0x2f654(0x117)](handleError(_0x530d5c,null));}; \ No newline at end of file diff --git a/server/api/chatInternalMessage/chatInternalMessage.events.js b/server/api/chatInternalMessage/chatInternalMessage.events.js index fb93789..55e59e2 100644 --- a/server/api/chatInternalMessage/chatInternalMessage.events.js +++ b/server/api/chatInternalMessage/chatInternalMessage.events.js @@ -1 +1 @@ -const a74_0x3d1a=['exports','ChatInternalMessage','undefined','events','update','addHook','../../mysqldb','setMaxListeners','save','remove','emit'];(function(_0x2cd21f,_0x3d1a5f){const _0x1118e3=function(_0x1b1a48){while(--_0x1b1a48){_0x2cd21f['push'](_0x2cd21f['shift']());}};_0x1118e3(++_0x3d1a5f);}(a74_0x3d1a,0x99));const a74_0x1118=function(_0x2cd21f,_0x3d1a5f){_0x2cd21f=_0x2cd21f-0x0;let _0x1118e3=a74_0x3d1a[_0x2cd21f];return _0x1118e3;};const _0x1a0dae=a74_0x1118;'use strict';const EventEmitter=require(_0x1a0dae('0x4')),ChatInternalMessage=require(_0x1a0dae('0x7'))['db'][_0x1a0dae('0x2')],ChatInternalMessageEvents=new EventEmitter();ChatInternalMessageEvents[_0x1a0dae('0x8')](0x0);const events={'afterCreate':_0x1a0dae('0x9'),'afterUpdate':_0x1a0dae('0x5'),'afterDestroy':_0x1a0dae('0xa')};function emitEvent(_0x1b1a48){return function(_0x3c42bb){const _0x37662e=a74_0x1118;ChatInternalMessageEvents[_0x37662e('0x0')](_0x1b1a48+':'+_0x3c42bb['id'],_0x3c42bb),ChatInternalMessageEvents[_0x37662e('0x0')](_0x1b1a48,_0x3c42bb);};}for(const e in events){if(typeof events[e]!==_0x1a0dae('0x3')){const event=events[e];ChatInternalMessage[_0x1a0dae('0x6')](e,emitEvent(event));}}module[_0x1a0dae('0x1')]=ChatInternalMessageEvents; \ No newline at end of file +const a89_0x8b24=['emit','remove','save','undefined','events','ChatInternalMessage','setMaxListeners','exports'];(function(_0x545238,_0x5b92e7){const _0x8b2467=function(_0x41d826){while(--_0x41d826){_0x545238['push'](_0x545238['shift']());}};_0x8b2467(++_0x5b92e7);}(a89_0x8b24,0x7b));const a89_0x41d8=function(_0x545238,_0x5b92e7){_0x545238=_0x545238-0x148;let _0x8b2467=a89_0x8b24[_0x545238];return _0x8b2467;};const a89_0x1da3d7=a89_0x41d8;'use strict';const EventEmitter=require(a89_0x1da3d7(0x149)),ChatInternalMessage=require('../../mysqldb')['db'][a89_0x1da3d7(0x14a)],ChatInternalMessageEvents=new EventEmitter();ChatInternalMessageEvents[a89_0x1da3d7(0x14b)](0x0);const events={'afterCreate':a89_0x1da3d7(0x14f),'afterUpdate':'update','afterDestroy':a89_0x1da3d7(0x14e)};function emitEvent(_0x4b6ced){return function(_0xc0ea28){const _0x41266b=a89_0x41d8;ChatInternalMessageEvents['emit'](_0x4b6ced+':'+_0xc0ea28['id'],_0xc0ea28),ChatInternalMessageEvents[_0x41266b(0x14d)](_0x4b6ced,_0xc0ea28);};}for(const e in events){if(typeof events[e]!==a89_0x1da3d7(0x148)){const event=events[e];ChatInternalMessage['addHook'](e,emitEvent(event));}}module[a89_0x1da3d7(0x14c)]=ChatInternalMessageEvents; \ No newline at end of file diff --git a/server/api/chatInternalMessage/chatInternalMessage.model.js b/server/api/chatInternalMessage/chatInternalMessage.model.js index 05c63ea..9d4d2c0 100644 --- a/server/api/chatInternalMessage/chatInternalMessage.model.js +++ b/server/api/chatInternalMessage/chatInternalMessage.model.js @@ -1 +1 @@ -const a75_0x4771=['chat_internal_messages','utf8mb4','define','ChatInternalMessage','./chatInternalMessage.attributes','exports'];(function(_0x4bfa82,_0x477106){const _0xcf4f44=function(_0x1cab1f){while(--_0x1cab1f){_0x4bfa82['push'](_0x4bfa82['shift']());}};_0xcf4f44(++_0x477106);}(a75_0x4771,0x15e));const a75_0xcf4f=function(_0x4bfa82,_0x477106){_0x4bfa82=_0x4bfa82-0x0;let _0xcf4f44=a75_0x4771[_0x4bfa82];return _0xcf4f44;};const _0x975ec3=a75_0xcf4f;'use strict';const attributes=require(_0x975ec3('0x2'));module[_0x975ec3('0x3')]=function(_0x1cab1f){const _0x556861=_0x975ec3,_0x1a032b=_0x1cab1f[_0x556861('0x0')](_0x556861('0x1'),attributes,{'tableName':_0x556861('0x4'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x556861('0x5'),'collate':'utf8mb4_unicode_ci'});return _0x1a032b;}; \ No newline at end of file +const a90_0x46f9=['exports','./chatInternalMessage.attributes','sequelize','function','./chatInternalMessage.options','init'];(function(_0x216a27,_0x2f58b1){const _0x46f972=function(_0x1ab26c){while(--_0x1ab26c){_0x216a27['push'](_0x216a27['shift']());}};_0x46f972(++_0x2f58b1);}(a90_0x46f9,0xe6));const a90_0x1ab2=function(_0x216a27,_0x2f58b1){_0x216a27=_0x216a27-0x1ef;let _0x46f972=a90_0x46f9[_0x216a27];return _0x46f972;};const a90_0x4fbd50=a90_0x1ab2;'use strict';const {Model}=require(a90_0x4fbd50(0x1ef)),{attributes}=require(a90_0x4fbd50(0x1f4)),{options}=require(a90_0x4fbd50(0x1f1));class ChatInternalMessage extends Model{}function init(_0x12b4a5,_0x4b57ea){const _0x1b295b=a90_0x4fbd50,_0x4b313e=options(_0x12b4a5),_0x4cfaa7=typeof _0x4b57ea===_0x1b295b(0x1f0)?_0x4b57ea(_0x4b313e):_0x4b313e;return ChatInternalMessage[_0x1b295b(0x1f2)](attributes,_0x4cfaa7),ChatInternalMessage;}module[a90_0x4fbd50(0x1f3)]['ChatInternalMessage']=ChatInternalMessage,module[a90_0x4fbd50(0x1f3)][a90_0x4fbd50(0x1f2)]=init; \ No newline at end of file diff --git a/server/api/chatInternalMessage/chatInternalMessage.options.js b/server/api/chatInternalMessage/chatInternalMessage.options.js new file mode 100644 index 0000000..d325c1b --- /dev/null +++ b/server/api/chatInternalMessage/chatInternalMessage.options.js @@ -0,0 +1 @@ +var a91_0x2f8d=['exports','chat_internal_messages','options'];(function(_0x3f61e5,_0x3e5c3d){var _0x2f8d40=function(_0x2ead01){while(--_0x2ead01){_0x3f61e5['push'](_0x3f61e5['shift']());}};_0x2f8d40(++_0x3e5c3d);}(a91_0x2f8d,0x1dd));var a91_0x2ead=function(_0x3f61e5,_0x3e5c3d){_0x3f61e5=_0x3f61e5-0x1a4;var _0x2f8d40=a91_0x2f8d[_0x3f61e5];return _0x2f8d40;};var a91_0x46fb68=a91_0x2ead;function options(_0x34b2ee){var _0x2204b4=a91_0x2ead;return{'sequelize':_0x34b2ee,'tableName':_0x2204b4(0x1a5),'paranoid':![],'indexes':[],'timestamps':!![],'charset':'utf8mb4','collate':'utf8mb4_unicode_ci'};}module[a91_0x46fb68(0x1a4)][a91_0x46fb68(0x1a6)]=options; \ No newline at end of file diff --git a/server/api/chatInternalMessage/chatInternalMessage.rpc.js b/server/api/chatInternalMessage/chatInternalMessage.rpc.js index 34425df..8d8b316 100644 --- a/server/api/chatInternalMessage/chatInternalMessage.rpc.js +++ b/server/api/chatInternalMessage/chatInternalMessage.rpc.js @@ -1 +1 @@ -const a76_0x2da8=['./chatInternalMessage.socket','register','../../rediscache'];(function(_0x3df3e4,_0x2da805){const _0x14e036=function(_0x3245c9){while(--_0x3245c9){_0x3df3e4['push'](_0x3df3e4['shift']());}};_0x14e036(++_0x2da805);}(a76_0x2da8,0x76));const a76_0x14e0=function(_0x3df3e4,_0x2da805){_0x3df3e4=_0x3df3e4-0x0;let _0x14e036=a76_0x2da8[_0x3df3e4];return _0x14e036;};const _0x630d53=a76_0x14e0;'use strict';const {getSocket}=require(_0x630d53('0x1')),socket=getSocket();require(_0x630d53('0x2'))[_0x630d53('0x0')](socket); \ No newline at end of file +const a92_0xe5a5=['../../rediscache','register'];(function(_0x582323,_0x193ed9){const _0xe5a569=function(_0x427bc6){while(--_0x427bc6){_0x582323['push'](_0x582323['shift']());}};_0xe5a569(++_0x193ed9);}(a92_0xe5a5,0xbe));const a92_0x427b=function(_0x582323,_0x193ed9){_0x582323=_0x582323-0x7c;let _0xe5a569=a92_0xe5a5[_0x582323];return _0xe5a569;};const a92_0x77ce1d=a92_0x427b;'use strict';const {getSocket}=require(a92_0x77ce1d(0x7c)),socket=getSocket();require('./chatInternalMessage.socket')[a92_0x77ce1d(0x7d)](socket); \ No newline at end of file diff --git a/server/api/chatInternalMessage/chatInternalMessage.socket.js b/server/api/chatInternalMessage/chatInternalMessage.socket.js index a6a0b3b..3a4e052 100644 --- a/server/api/chatInternalMessage/chatInternalMessage.socket.js +++ b/server/api/chatInternalMessage/chatInternalMessage.socket.js @@ -1 +1 @@ -const a77_0x9482=['./chatInternalMessage.events','emit','remove','length','save','update','register'];(function(_0x4878cd,_0x948206){const _0x453f4f=function(_0x3b9ef9){while(--_0x3b9ef9){_0x4878cd['push'](_0x4878cd['shift']());}};_0x453f4f(++_0x948206);}(a77_0x9482,0x18f));const a77_0x453f=function(_0x4878cd,_0x948206){_0x4878cd=_0x4878cd-0x0;let _0x453f4f=a77_0x9482[_0x4878cd];return _0x453f4f;};const _0x2dc35b=a77_0x453f;'use strict';const ChatInternalMessageEvents=require(_0x2dc35b('0x0')),events=[_0x2dc35b('0x4'),_0x2dc35b('0x2'),_0x2dc35b('0x5')];function createListener(_0x3b9ef9,_0x54954c){function _0x15186d(_0x199082){const _0x670e78=a77_0x453f;_0x54954c[_0x670e78('0x1')](_0x3b9ef9,_0x199082);}return _0x15186d;}exports[_0x2dc35b('0x6')]=function(_0x1146e3){const _0x5e408b=_0x2dc35b;for(let _0x2f8f2d=0x0,_0x1999ec=events[_0x5e408b('0x3')];_0x2f8f2d<_0x1999ec;_0x2f8f2d++){const _0x31010a=events[_0x2f8f2d],_0xead920=createListener('chatInternalMessage:'+_0x31010a,_0x1146e3);ChatInternalMessageEvents['on'](_0x31010a,_0xead920);}}; \ No newline at end of file +const a93_0x59f0=['register','update','./chatInternalMessage.events','remove','save','length','chatInternalMessage:'];(function(_0x4c940d,_0x51b679){const _0x59f034=function(_0xae647b){while(--_0xae647b){_0x4c940d['push'](_0x4c940d['shift']());}};_0x59f034(++_0x51b679);}(a93_0x59f0,0x1c7));const a93_0xae64=function(_0x4c940d,_0x51b679){_0x4c940d=_0x4c940d-0xd7;let _0x59f034=a93_0x59f0[_0x4c940d];return _0x59f034;};const a93_0x489a74=a93_0xae64;'use strict';const ChatInternalMessageEvents=require(a93_0x489a74(0xd9)),events=[a93_0x489a74(0xdb),a93_0x489a74(0xda),a93_0x489a74(0xd8)];function createListener(_0x4bf3e1,_0xb9a505){function _0x23ff9a(_0x4a43aa){_0xb9a505['emit'](_0x4bf3e1,_0x4a43aa);}return _0x23ff9a;}exports[a93_0x489a74(0xd7)]=function(_0x15ea9f){const _0x4858eb=a93_0x489a74;for(let _0x539f3c=0x0,_0x26de7a=events[_0x4858eb(0xdc)];_0x539f3c<_0x26de7a;_0x539f3c++){const _0xd9772d=events[_0x539f3c],_0x52f854=createListener(_0x4858eb(0xdd)+_0xd9772d,_0x15ea9f);ChatInternalMessageEvents['on'](_0xd9772d,_0x52f854);}}; \ No newline at end of file diff --git a/server/api/chatInternalMessage/index.js b/server/api/chatInternalMessage/index.js index e713032..7863ce4 100644 --- a/server/api/chatInternalMessage/index.js +++ b/server/api/chatInternalMessage/index.js @@ -1 +1 @@ -const a78_0x5428=['describe','destroy','put','get','create','getUsers','/users','express','Router','../../components/auth/service','isAuthenticated','/describe','delete','./chatInternalMessage.controller','show','/:id'];(function(_0x472c53,_0x54283b){const _0x4d4eed=function(_0x27fb5b){while(--_0x27fb5b){_0x472c53['push'](_0x472c53['shift']());}};_0x4d4eed(++_0x54283b);}(a78_0x5428,0x1cf));const a78_0x4d4e=function(_0x472c53,_0x54283b){_0x472c53=_0x472c53-0x0;let _0x4d4eed=a78_0x5428[_0x472c53];return _0x4d4eed;};const _0x16d30f=a78_0x4d4e;'use strict';const express=require(_0x16d30f('0x8')),router=express[_0x16d30f('0x9')](),auth=require(_0x16d30f('0xa')),controller=require(_0x16d30f('0xe'));router[_0x16d30f('0x4')]('/',auth['isAuthenticated'](),controller['index']),router[_0x16d30f('0x4')](_0x16d30f('0xc'),auth[_0x16d30f('0xb')](),controller[_0x16d30f('0x1')]),router[_0x16d30f('0x4')](_0x16d30f('0x7'),auth[_0x16d30f('0xb')](),controller[_0x16d30f('0x6')]),router['get']('/:id',auth[_0x16d30f('0xb')](),controller[_0x16d30f('0xf')]),router['post']('/',auth[_0x16d30f('0xb')](),controller[_0x16d30f('0x5')]),router[_0x16d30f('0x3')](_0x16d30f('0x0'),controller['update']),router[_0x16d30f('0xd')]('/:id',auth[_0x16d30f('0xb')](),controller[_0x16d30f('0x2')]),module['exports']=router; \ No newline at end of file +const a94_0x2d22=['isAuthenticated','create','update','post','get','../../components/auth/service','delete','Router','/describe','destroy','put','exports','show','index','/:id'];(function(_0x318a4d,_0x3dbee7){const _0x2d2272=function(_0x3ee72d){while(--_0x3ee72d){_0x318a4d['push'](_0x318a4d['shift']());}};_0x2d2272(++_0x3dbee7);}(a94_0x2d22,0x163));const a94_0x3ee7=function(_0x318a4d,_0x3dbee7){_0x318a4d=_0x318a4d-0x1b5;let _0x2d2272=a94_0x2d22[_0x318a4d];return _0x2d2272;};const a94_0x3a0735=a94_0x3ee7;'use strict';const express=require('express'),router=express[a94_0x3a0735(0x1c1)](),auth=require(a94_0x3a0735(0x1bf)),controller=require('./chatInternalMessage.controller');router['get']('/',auth[a94_0x3a0735(0x1ba)](),controller[a94_0x3a0735(0x1b8)]),router[a94_0x3a0735(0x1be)](a94_0x3a0735(0x1c2),auth[a94_0x3a0735(0x1ba)](),controller['describe']),router[a94_0x3a0735(0x1be)]('/users',auth[a94_0x3a0735(0x1ba)](),controller['getUsers']),router[a94_0x3a0735(0x1be)](a94_0x3a0735(0x1b9),auth['isAuthenticated'](),controller[a94_0x3a0735(0x1b7)]),router[a94_0x3a0735(0x1bd)]('/',auth[a94_0x3a0735(0x1ba)](),controller[a94_0x3a0735(0x1bb)]),router[a94_0x3a0735(0x1b5)]('/:id',controller[a94_0x3a0735(0x1bc)]),router[a94_0x3a0735(0x1c0)]('/:id',auth[a94_0x3a0735(0x1ba)](),controller[a94_0x3a0735(0x1c3)]),module[a94_0x3a0735(0x1b6)]=router; \ No newline at end of file diff --git a/server/api/chatMessage/chatMessage.attributes.js b/server/api/chatMessage/chatMessage.attributes.js index 20bd150..def33e5 100644 --- a/server/api/chatMessage/chatMessage.attributes.js +++ b/server/api/chatMessage/chatMessage.attributes.js @@ -1 +1 @@ -const a79_0x23ff=['out','medium','BOOLEAN','ENUM','sequelize','STRING','TEXT','exports','DATE'];(function(_0xcb3912,_0x23ffce){const _0x1bb537=function(_0x4132c9){while(--_0x4132c9){_0xcb3912['push'](_0xcb3912['shift']());}};_0x1bb537(++_0x23ffce);}(a79_0x23ff,0xb6));const a79_0x1bb5=function(_0xcb3912,_0x23ffce){_0xcb3912=_0xcb3912-0x0;let _0x1bb537=a79_0x23ff[_0xcb3912];return _0x1bb537;};const _0x149d48=a79_0x1bb5;'use strict';const Sequelize=require(_0x149d48('0x2'));module[_0x149d48('0x5')]={'body':{'type':Sequelize[_0x149d48('0x4')](_0x149d48('0x8')),'allowNull':![]},'read':{'type':Sequelize[_0x149d48('0x0')],'defaultValue':![]},'secret':{'type':Sequelize[_0x149d48('0x0')],'defaultValue':![]},'direction':{'type':Sequelize[_0x149d48('0x1')]('in',_0x149d48('0x7')),'defaultValue':'out','allowNull':![]},'readAt':{'type':Sequelize[_0x149d48('0x6')]},'providerName':{'type':Sequelize[_0x149d48('0x3')]},'providerResponse':{'type':Sequelize[_0x149d48('0x4')]}}; \ No newline at end of file +const a95_0x2107=['attributes','exports','BOOLEAN','ENUM','STRING','sequelize','out','TEXT','medium'];(function(_0x2dee87,_0x1f5480){const _0x2107fd=function(_0x57c59e){while(--_0x57c59e){_0x2dee87['push'](_0x2dee87['shift']());}};_0x2107fd(++_0x1f5480);}(a95_0x2107,0x168));const a95_0x57c5=function(_0x2dee87,_0x1f5480){_0x2dee87=_0x2dee87-0x165;let _0x2107fd=a95_0x2107[_0x2dee87];return _0x2107fd;};const a95_0xb57e5f=a95_0x57c5;'use strict';const {DataTypes}=require(a95_0xb57e5f(0x16a)),attributes={'body':{'type':DataTypes['TEXT']({'length':a95_0xb57e5f(0x16d)}),'allowNull':![]},'read':{'type':DataTypes[a95_0xb57e5f(0x167)],'defaultValue':![]},'secret':{'type':DataTypes['BOOLEAN'],'defaultValue':![]},'direction':{'type':DataTypes[a95_0xb57e5f(0x168)]('in',a95_0xb57e5f(0x16b)),'defaultValue':a95_0xb57e5f(0x16b),'allowNull':![]},'readAt':{'type':DataTypes['DATE']},'providerName':{'type':DataTypes[a95_0xb57e5f(0x169)]},'providerResponse':{'type':DataTypes[a95_0xb57e5f(0x16c)]}};module[a95_0xb57e5f(0x166)][a95_0xb57e5f(0x165)]=attributes; \ No newline at end of file diff --git a/server/api/chatMessage/chatMessage.controller.js b/server/api/chatMessage/chatMessage.controller.js index c4e318b..337f21c 100644 --- a/server/api/chatMessage/chatMessage.controller.js +++ b/server/api/chatMessage/chatMessage.controller.js @@ -1 +1 @@ -const a80_0x334d=['CmContact','update','order','ChatMessage,\x20%s,\x20%s','role','register','EventManager','destroy','length','includeAll','../../mysqldb','interaction','stringify','model','[CHATMESSAGE:REJECT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s','rawAttributes','json','channel','sendStatus','AcceptMessage','interface','../../config/logger','client','Content-Range','read','name','chat-interactions','ChatInteractionId','[CHATMESSAGE:ACCEPT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s','end','attributes','keys','VIRTUAL','query','params','YYYY-MM-DD\x20HH:mm:ss','../../rediscache','isNil','util','show','fields','SIP/%s','UserId','ChatInteraction','formData','body','parse','merge','index','filter','jayson/promise','request\x20sent','Contact','create','manual','chat','read1stAt','catch','offset','send','accept','reject','count','event','fieldName','filters','error','result','stack','info','limit','describe','sort','status','ChatMessage','options','null','where','user','rows','then','type','readAt','findAll','get','RejectMessage','format','message','intersection','lodash','findOne','ChatMessage,\x20%s,\x20%s,\x20%s','http'];(function(_0x3d602d,_0x334d81){const _0x1a5e99=function(_0x37380d){while(--_0x37380d){_0x3d602d['push'](_0x3d602d['shift']());}};_0x1a5e99(++_0x334d81);}(a80_0x334d,0x155));const a80_0x1a5e=function(_0x3d602d,_0x334d81){_0x3d602d=_0x3d602d-0x0;let _0x1a5e99=a80_0x334d[_0x3d602d];return _0x1a5e99;};const _0x1a4711=a80_0x1a5e;'use strict';const moment=require('moment'),util=require(_0x1a4711('0x45')),_=require(_0x1a4711('0x1b')),qs=require('../../components/parsers/qs'),logger=require(_0x1a4711('0x34'))('api'),{getSocket}=require(_0x1a4711('0x43')),db=require(_0x1a4711('0x29'))['db'],{Op}=require('sequelize'),interaction_log=require('../../config/logger')(_0x1a4711('0x39')),socket=getSocket();require('./chatMessage.socket')[_0x1a4711('0x24')](socket);const jayson=require(_0x1a4711('0x51')),client=jayson[_0x1a4711('0x35')][_0x1a4711('0x1e')]({'port':0x232c}),client9002=jayson['client'][_0x1a4711('0x1e')]({'port':0x232a});function respondWithRpcPromise(_0x37380d,_0x3553ac,_0x350f3c,_0x55c7e8){return new Promise(function(_0x1ee290,_0x1719eb){const _0x2425a9=a80_0x1a5e,_0x15e472=_0x55c7e8||client;return _0x15e472['request'](_0x37380d,_0x350f3c)[_0x2425a9('0x12')](function(_0x3d3da9){const _0x4ec4ee=_0x2425a9;logger[_0x4ec4ee('0x7')]('ChatMessage,\x20%s,\x20%s',_0x3553ac,_0x4ec4ee('0x52')),logger['debug'](_0x4ec4ee('0x1d'),_0x3553ac,_0x4ec4ee('0x52'),JSON[_0x4ec4ee('0x2b')](_0x3d3da9));if(_0x3d3da9[_0x4ec4ee('0x4')]){if(_0x3d3da9['error']['code']===0x1f4)return logger[_0x4ec4ee('0x4')](_0x4ec4ee('0x22'),_0x3553ac,_0x3d3da9['error'][_0x4ec4ee('0x19')]),_0x1719eb(_0x3d3da9[_0x4ec4ee('0x4')][_0x4ec4ee('0x19')]);return logger[_0x4ec4ee('0x4')]('ChatMessage,\x20%s,\x20%s',_0x3553ac,_0x3d3da9[_0x4ec4ee('0x4')][_0x4ec4ee('0x19')]),_0x1ee290(_0x3d3da9['error']['message']);}else logger[_0x4ec4ee('0x7')](_0x4ec4ee('0x22'),_0x3553ac,'request\x20sent'),_0x1ee290(_0x3d3da9[_0x4ec4ee('0x5')]['message']);})[_0x2425a9('0x58')](function(_0x36df86){const _0x3f2fdd=_0x2425a9;logger[_0x3f2fdd('0x4')](_0x3f2fdd('0x22'),_0x3553ac,_0x36df86),_0x1719eb(_0x36df86);});});}function respondWithResult(_0x41ce83,_0x25689f){return _0x25689f=_0x25689f||0xc8,function(_0x110021){if(_0x110021)return _0x41ce83['status'](_0x25689f)['json'](_0x110021);};}function respondWithFilteredResult(_0x2a385f,_0x2ccb1c){return function(_0xca075){const _0x12d06e=a80_0x1a5e;if(_0xca075){const _0x44426a=_0xca075[_0x12d06e('0x0')],_0x458a22=_0x2ccb1c[_0x12d06e('0x59')];let _0x318080=_0x2ccb1c[_0x12d06e('0x59')]+_0x2ccb1c['limit'],_0x106db7;return _0x318080>=_0x44426a?(_0x318080=_0x44426a,_0x106db7=0xc8):_0x106db7=0xce,_0x2a385f[_0x12d06e('0xb')](_0x106db7),_0x2a385f['set'](_0x12d06e('0x36'),_0x458a22+'-'+_0x318080+'/'+_0x44426a)[_0x12d06e('0x2f')](_0xca075);}return null;};}function saveUpdates(_0x152540){return function(_0x5ad04c){const _0xff4c13=a80_0x1a5e;if(_0x5ad04c)return _0x5ad04c[_0xff4c13('0x20')](_0x152540)[_0xff4c13('0x12')](function(_0x1d7009){return _0x1d7009;});return null;};}function removeEntity(_0x101a80){return function(_0x5b4e9f){const _0x4dd33b=a80_0x1a5e;if(_0x5b4e9f)return _0x5b4e9f[_0x4dd33b('0x26')]()[_0x4dd33b('0x12')](function(){const _0x551654=_0x4dd33b;_0x101a80[_0x551654('0xb')](0xcc)[_0x551654('0x3c')]();});};}function handleEntityNotFound(_0x23799a){return function(_0x133b55){const _0x3f963c=a80_0x1a5e;return!_0x133b55&&_0x23799a[_0x3f963c('0x31')](0x194),_0x133b55;};}function handleError(_0x456fc1,_0x275137){return _0x275137=_0x275137||0x1f4,function(_0x5b2a1f){const _0xc62056=a80_0x1a5e;logger[_0xc62056('0x4')](_0x5b2a1f[_0xc62056('0x6')]),_0x5b2a1f['name']&&delete _0x5b2a1f['name'],_0x456fc1[_0xc62056('0xb')](_0x275137)[_0xc62056('0x5a')](_0x5b2a1f);};}exports[_0x1a4711('0x4f')]=function(_0xe7d42f,_0x5e9b1e){const _0x3d3605=_0x1a4711;let _0x3a7bd6={};const _0x2b848d={},_0x84f72d={'count':0x0,'rows':[]},_0x1cf899=_['map'](db[_0x3d3605('0xc')]['rawAttributes'],function(_0x4e3d69){const _0x414e34=_0x3d3605;return{'name':_0x4e3d69[_0x414e34('0x2')],'type':_0x4e3d69['type']['key']};});_0x2b848d['model']=_['map'](_0x1cf899,_0x3d3605('0x38')),_0x2b848d[_0x3d3605('0x40')]=_[_0x3d3605('0x3e')](_0xe7d42f[_0x3d3605('0x40')]),_0x2b848d[_0x3d3605('0x3')]=_[_0x3d3605('0x1a')](_0x2b848d[_0x3d3605('0x2c')],_0x2b848d[_0x3d3605('0x40')]),_0x3a7bd6['attributes']=_['intersection'](_0x2b848d['model'],qs[_0x3d3605('0x47')](_0xe7d42f[_0x3d3605('0x40')][_0x3d3605('0x47')])),_0x3a7bd6['attributes']=_0x3a7bd6['attributes'][_0x3d3605('0x27')]?_0x3a7bd6[_0x3d3605('0x3d')]:_0x2b848d['model'];typeof _0xe7d42f[_0x3d3605('0x40')]['nolimit']==='undefined'&&(_0x3a7bd6[_0x3d3605('0x8')]=qs[_0x3d3605('0x8')](_0xe7d42f[_0x3d3605('0x40')][_0x3d3605('0x8')]),_0x3a7bd6[_0x3d3605('0x59')]=qs[_0x3d3605('0x59')](_0xe7d42f[_0x3d3605('0x40')][_0x3d3605('0x59')]));_0x3a7bd6[_0x3d3605('0x21')]=qs['sort'](_0xe7d42f[_0x3d3605('0x40')][_0x3d3605('0xa')]),_0x3a7bd6[_0x3d3605('0xf')]=qs['filters'](_['pick'](_0xe7d42f['query'],_0x2b848d[_0x3d3605('0x3')]),_0x1cf899);_0xe7d42f[_0x3d3605('0x40')][_0x3d3605('0x50')]&&(_0x3a7bd6[_0x3d3605('0xf')]=_[_0x3d3605('0x4e')](_0x3a7bd6[_0x3d3605('0xf')],{[Op['or']]:_['map'](_0x1cf899,function(_0x318adb){const _0x145025=_0x3d3605;if(_0x318adb[_0x145025('0x13')]!==_0x145025('0x3f')){const _0x22c747={};return _0x22c747[_0x318adb[_0x145025('0x38')]]={[Op['like']]:'%'+_0xe7d42f[_0x145025('0x40')][_0x145025('0x50')]+'%'},_0x22c747;}})}));_0x3a7bd6=_['merge']({},_0x3a7bd6,_0xe7d42f[_0x3d3605('0xd')]);const _0x486af1={'where':_0x3a7bd6[_0x3d3605('0xf')]};return db[_0x3d3605('0xc')][_0x3d3605('0x0')](_0x486af1)[_0x3d3605('0x12')](function(_0x133877){const _0x2cfe1f=_0x3d3605;return _0x84f72d[_0x2cfe1f('0x0')]=_0x133877,_0xe7d42f[_0x2cfe1f('0x40')][_0x2cfe1f('0x28')]&&(_0x3a7bd6['include']=[{'all':!![]}]),db[_0x2cfe1f('0xc')][_0x2cfe1f('0x15')](_0x3a7bd6);})[_0x3d3605('0x12')](function(_0x8446d0){const _0x268a76=_0x3d3605;return _0x84f72d[_0x268a76('0x11')]=_0x8446d0,_0x84f72d;})['then'](respondWithFilteredResult(_0x5e9b1e,_0x3a7bd6))[_0x3d3605('0x58')](handleError(_0x5e9b1e,null));},exports[_0x1a4711('0x46')]=function(_0x446dba,_0x40c373){const _0x115c8b=_0x1a4711;let _0x49674c={'raw':!![],'where':{'id':_0x446dba['params']['id']}};const _0x776d59={};return _0x776d59['model']=_['keys'](db[_0x115c8b('0xc')][_0x115c8b('0x2e')]),_0x776d59[_0x115c8b('0x40')]=_[_0x115c8b('0x3e')](_0x446dba['query']),_0x776d59['filters']=_['intersection'](_0x776d59[_0x115c8b('0x2c')],_0x776d59[_0x115c8b('0x40')]),_0x49674c[_0x115c8b('0x3d')]=_[_0x115c8b('0x1a')](_0x776d59[_0x115c8b('0x2c')],qs['fields'](_0x446dba[_0x115c8b('0x40')][_0x115c8b('0x47')])),_0x49674c[_0x115c8b('0x3d')]=_0x49674c['attributes']['length']?_0x49674c[_0x115c8b('0x3d')]:_0x776d59[_0x115c8b('0x2c')],_0x446dba['query']['includeAll']&&(_0x49674c['include']=[{'all':!![]}]),_0x49674c=_[_0x115c8b('0x4e')]({},_0x49674c,_0x446dba[_0x115c8b('0xd')]),db['ChatMessage']['findOne'](_0x49674c)[_0x115c8b('0x12')](handleEntityNotFound(_0x40c373,null))[_0x115c8b('0x12')](respondWithResult(_0x40c373,null))['catch'](handleError(_0x40c373,null));},exports[_0x1a4711('0x54')]=function(_0x45703c,_0x3ceb98){const _0x3f499e=_0x1a4711;return db[_0x3f499e('0xc')][_0x3f499e('0x54')](_0x45703c[_0x3f499e('0x4c')],{})[_0x3f499e('0x12')](respondWithResult(_0x3ceb98,0xc9))[_0x3f499e('0x58')](handleError(_0x3ceb98,null));},exports[_0x1a4711('0x20')]=function(_0x506241,_0xa23103){const _0x7c63f=_0x1a4711;return _0x506241[_0x7c63f('0x4c')]['id']&&delete _0x506241[_0x7c63f('0x4c')]['id'],db[_0x7c63f('0xc')][_0x7c63f('0x1c')]({'where':{'id':_0x506241['params']['id']}})[_0x7c63f('0x12')](handleEntityNotFound(_0xa23103,null))[_0x7c63f('0x12')](saveUpdates(_0x506241[_0x7c63f('0x4c')],null))['then'](respondWithResult(_0xa23103,null))[_0x7c63f('0x58')](handleError(_0xa23103,null));},exports['destroy']=function(_0x5e15f1,_0x47be84){const _0x4ad6cf=_0x1a4711;return db['ChatMessage']['findOne']({'where':{'id':_0x5e15f1[_0x4ad6cf('0x41')]['id']}})[_0x4ad6cf('0x12')](handleEntityNotFound(_0x47be84,null))[_0x4ad6cf('0x12')](removeEntity(_0x47be84,null))['catch'](handleError(_0x47be84,null));},exports[_0x1a4711('0x9')]=function(_0x5a8943,_0x180f19){const _0x58c06c=_0x1a4711;return db['ChatMessage'][_0x58c06c('0x9')]()[_0x58c06c('0x12')](respondWithResult(_0x180f19,null))[_0x58c06c('0x58')](handleError(_0x180f19,null));},exports[_0x1a4711('0x5b')]=function(_0x6b6389,_0x5baf5f){const _0x1279dc=_0x1a4711,_0x54be56={'channel':'chat'};return _0x6b6389[_0x1279dc('0x4c')]['id']&&delete _0x6b6389['body']['id'],_0x6b6389['body'][_0x1279dc('0x37')]=!![],_0x6b6389[_0x1279dc('0x4c')][_0x1279dc('0x14')]=moment()[_0x1279dc('0x18')](_0x1279dc('0x42')),_0x6b6389['body'][_0x1279dc('0x49')]=_0x6b6389[_0x1279dc('0x4c')][_0x1279dc('0x49')]||_0x6b6389[_0x1279dc('0x10')]['id'],db['ChatMessage'][_0x1279dc('0x1c')]({'where':{'id':_0x6b6389[_0x1279dc('0x41')]['id'],'UserId':null},'include':[{'model':db[_0x1279dc('0x1f')],'as':_0x1279dc('0x53')}]})[_0x1279dc('0x12')](handleEntityNotFound(_0x5baf5f,null))[_0x1279dc('0x12')](saveUpdates(_0x6b6389[_0x1279dc('0x4c')],null))[_0x1279dc('0x12')](function(_0x1f63db){const _0x402ade=_0x1279dc;if(_0x1f63db)return _0x54be56[_0x402ade('0x19')]=_0x1f63db['get']({'plain':!![]}),db[_0x402ade('0x4a')][_0x402ade('0x1c')]({'where':{'id':_0x1f63db['ChatInteractionId']}});return null;})['then'](handleEntityNotFound(_0x5baf5f,null))[_0x1279dc('0x12')](function(_0x517d43){const _0xfc83d5=_0x1279dc;if(_0x517d43)return _0x517d43[_0xfc83d5('0x20')]({'UserId':_0x6b6389[_0xfc83d5('0x4c')][_0xfc83d5('0x49')],'read1stAt':_[_0xfc83d5('0x44')](_0x517d43[_0xfc83d5('0x57')])?moment()[_0xfc83d5('0x18')]('YYYY-MM-DD\x20HH:mm:ss'):undefined});return null;})['then'](function(_0x5045f4){const _0x4ea3fc=_0x1279dc;if(_0x5045f4)return _0x54be56['interaction']=_0x5045f4[_0x4ea3fc('0x16')]({'plain':!![]}),interaction_log['info'](_0x4ea3fc('0x3b'),_0x6b6389['user']['id'],_0x6b6389[_0x4ea3fc('0x10')]['name'],_0x6b6389[_0x4ea3fc('0x10')][_0x4ea3fc('0x23')],_0x54be56['interaction']['id'],_0x6b6389['body']?JSON[_0x4ea3fc('0x2b')](_0x6b6389[_0x4ea3fc('0x4c')]):_0x4ea3fc('0xe')),respondWithRpcPromise(_0x4ea3fc('0x32'),'acceptMessage',_0x54be56);return null;})['then'](function(_0x90dec1){const _0x3d0ff5=_0x1279dc;if(_0x90dec1){if(_0x6b6389[_0x3d0ff5('0x4c')][_0x3d0ff5('0x55')])return _0x54be56[_0x3d0ff5('0x19')][_0x3d0ff5('0x33')]=util[_0x3d0ff5('0x18')](_0x3d0ff5('0x48'),_0x6b6389['user'][_0x3d0ff5('0x38')]),_0x54be56[_0x3d0ff5('0x19')][_0x3d0ff5('0x30')]=_0x54be56[_0x3d0ff5('0x30')],_0x54be56['message'][_0x3d0ff5('0x1')]=_0x3d0ff5('0x5b'),respondWithRpcPromise(_0x3d0ff5('0x25'),'EventManager',{'event':'acceptmessage','message':_['merge'](_0x54be56['message'],JSON[_0x3d0ff5('0x4d')](_0x54be56['interaction'][_0x3d0ff5('0x4b')]))},client9002)[_0x3d0ff5('0x12')](function(){return _0x54be56;});return _0x54be56;}return null;})['then'](respondWithResult(_0x5baf5f,null))[_0x1279dc('0x58')](handleError(_0x5baf5f,null));},exports[_0x1a4711('0x5c')]=function(_0x1e8bff,_0x457410){const _0x4aa708=_0x1a4711,_0x4f809d={'agent':{},'channel':_0x4aa708('0x56')};return _0x1e8bff['body']['id']&&delete _0x1e8bff[_0x4aa708('0x4c')]['id'],_0x1e8bff[_0x4aa708('0x4c')][_0x4aa708('0x49')]=_0x1e8bff['body'][_0x4aa708('0x49')]||_0x1e8bff[_0x4aa708('0x10')]['id'],_0x4f809d['agent']['id']=_0x1e8bff[_0x4aa708('0x4c')][_0x4aa708('0x49')],db['ChatMessage'][_0x4aa708('0x1c')]({'where':{'id':_0x1e8bff[_0x4aa708('0x41')]['id'],'UserId':null}})[_0x4aa708('0x12')](handleEntityNotFound(_0x457410,null))['then'](function(_0x16d4f8){const _0x24be56=_0x4aa708;if(_0x16d4f8)return _0x4f809d[_0x24be56('0x19')]=_0x16d4f8[_0x24be56('0x16')]({'plain':!![]}),db['ChatInteraction']['findOne']({'where':{'id':_0x16d4f8[_0x24be56('0x3a')]}});return null;})[_0x4aa708('0x12')](handleEntityNotFound(_0x457410,null))[_0x4aa708('0x12')](function(_0x184676){const _0x4e3f89=_0x4aa708;if(_0x184676)return _0x4f809d[_0x4e3f89('0x2a')]=_0x184676[_0x4e3f89('0x16')]({'plain':!![]}),interaction_log[_0x4e3f89('0x7')](_0x4e3f89('0x2d'),_0x1e8bff[_0x4e3f89('0x10')]['id'],_0x1e8bff[_0x4e3f89('0x10')][_0x4e3f89('0x38')],_0x1e8bff[_0x4e3f89('0x10')][_0x4e3f89('0x23')],_0x4f809d['interaction']['id'],_0x1e8bff[_0x4e3f89('0x4c')]?JSON[_0x4e3f89('0x2b')](_0x1e8bff[_0x4e3f89('0x4c')]):_0x4e3f89('0xe')),respondWithRpcPromise(_0x4e3f89('0x17'),'rejectMessage',_0x4f809d);return null;})['then'](function(_0x72fac3){const _0x49775c=_0x4aa708;if(_0x72fac3)return _0x72fac3[_0x49775c('0x19')][_0x49775c('0x33')]=util[_0x49775c('0x18')]('SIP/%s',_0x1e8bff[_0x49775c('0x10')][_0x49775c('0x38')]),_0x72fac3[_0x49775c('0x19')][_0x49775c('0x30')]=_0x4f809d[_0x49775c('0x30')],_0x72fac3['message'][_0x49775c('0x1')]=_0x49775c('0x5c'),respondWithRpcPromise(_0x49775c('0x25'),'EventManager',{'event':'rejectmessage','message':_0x72fac3[_0x49775c('0x19')]},client9002),_0x4f809d;return null;})[_0x4aa708('0x12')](respondWithResult(_0x457410,null))[_0x4aa708('0x58')](handleError(_0x457410,null));}; \ No newline at end of file +const a96_0x447d=['register','catch','merge','filter','role','attributes','name','lodash','json','like','update','chat-interactions','formData','create','query','jayson/promise','status','count','interface','nolimit','util','fields','format','SIP/%s','../../mysqldb','YYYY-MM-DD\x20HH:mm:ss','accept','pick','sendStatus','user','limit','ChatMessage,\x20%s,\x20%s,\x20%s','Contact','intersection','../../components/parsers/qs','include','agent','undefined','[CHATMESSAGE:ACCEPT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s','moment','chat','error','manual','api','EventManager','ChatInteraction','offset','info','length','get','CmContact','ChatInteractionId','result','reject','event','stack','VIRTUAL','UserId','../../config/logger','keys','null','interaction','acceptMessage','send','index','read1stAt','rawAttributes','parse','end','channel','model','set','order','sort','ChatMessage,\x20%s,\x20%s','describe','./chatMessage.socket','then','destroy','map','http','findOne','code','body','readAt','includeAll','isNil','debug','RejectMessage','ChatMessage','findAll','sequelize','Content-Range','type','message','read','rejectMessage','options','filters','show','stringify','[CHATMESSAGE:REJECT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s','where','request\x20sent','key','rows'];(function(_0x436f0,_0x1b0d4a){const _0x447d67=function(_0x5c0bdf){while(--_0x5c0bdf){_0x436f0['push'](_0x436f0['shift']());}};_0x447d67(++_0x1b0d4a);}(a96_0x447d,0xce));const a96_0x5c0b=function(_0x436f0,_0x1b0d4a){_0x436f0=_0x436f0-0x120;let _0x447d67=a96_0x447d[_0x436f0];return _0x447d67;};const a96_0x2c2321=a96_0x5c0b;'use strict';const moment=require(a96_0x2c2321(0x14d)),util=require(a96_0x2c2321(0x13a)),_=require(a96_0x2c2321(0x12d)),qs=require(a96_0x2c2321(0x148)),logger=require(a96_0x2c2321(0x160))(a96_0x2c2321(0x151)),{getSocket}=require('../../rediscache'),{db}=require(a96_0x2c2321(0x13e)),{Op}=require(a96_0x2c2321(0x181)),interaction_log=require(a96_0x2c2321(0x160))(a96_0x2c2321(0x131)),socket=getSocket();require(a96_0x2c2321(0x172))[a96_0x2c2321(0x126)](socket);const jayson=require(a96_0x2c2321(0x135)),client=jayson['client'][a96_0x2c2321(0x176)]({'port':0x232c}),client9002=jayson['client'][a96_0x2c2321(0x176)]({'port':0x232a});function respondWithRpcPromise(_0x2143c1,_0x1fedb8,_0x5b12e3,_0x3755d4){return new Promise(function(_0x16b932,_0x1c2a35){const _0x1a37d0=a96_0x5c0b,_0x37b611=_0x3755d4||client;return _0x37b611['request'](_0x2143c1,_0x5b12e3)[_0x1a37d0(0x173)](function(_0x2c568c){const _0x15a033=_0x1a37d0;logger[_0x15a033(0x155)](_0x15a033(0x170),_0x1fedb8,'request\x20sent'),logger[_0x15a033(0x17d)](_0x15a033(0x145),_0x1fedb8,_0x15a033(0x123),JSON[_0x15a033(0x120)](_0x2c568c));if(_0x2c568c[_0x15a033(0x14f)]){if(_0x2c568c[_0x15a033(0x14f)][_0x15a033(0x178)]===0x1f4)return logger['error']('ChatMessage,\x20%s,\x20%s',_0x1fedb8,_0x2c568c[_0x15a033(0x14f)][_0x15a033(0x184)]),_0x1c2a35(_0x2c568c[_0x15a033(0x14f)][_0x15a033(0x184)]);return logger[_0x15a033(0x14f)](_0x15a033(0x170),_0x1fedb8,_0x2c568c[_0x15a033(0x14f)][_0x15a033(0x184)]),_0x16b932(_0x2c568c[_0x15a033(0x14f)][_0x15a033(0x184)]);}else logger[_0x15a033(0x155)](_0x15a033(0x170),_0x1fedb8,'request\x20sent'),_0x16b932(_0x2c568c[_0x15a033(0x15a)][_0x15a033(0x184)]);})[_0x1a37d0(0x127)](function(_0x4ae755){const _0x200e2a=_0x1a37d0;logger[_0x200e2a(0x14f)]('ChatMessage,\x20%s,\x20%s',_0x1fedb8,_0x4ae755),_0x1c2a35(_0x4ae755);});});}function respondWithResult(_0x357cf4,_0x57bc35){return _0x57bc35=_0x57bc35||0xc8,function(_0xca0ee9){const _0x23b75e=a96_0x5c0b;if(_0xca0ee9)return _0x357cf4[_0x23b75e(0x136)](_0x57bc35)['json'](_0xca0ee9);};}function respondWithFilteredResult(_0x567899,_0x1888bd){return function(_0x24dc03){const _0x900fa8=a96_0x5c0b;if(_0x24dc03){const _0x5a613a=_0x24dc03[_0x900fa8(0x137)],_0x452e12=_0x1888bd[_0x900fa8(0x154)];let _0x3ad51e=_0x1888bd[_0x900fa8(0x154)]+_0x1888bd[_0x900fa8(0x144)],_0x4e94da;return _0x3ad51e>=_0x5a613a?(_0x3ad51e=_0x5a613a,_0x4e94da=0xc8):_0x4e94da=0xce,_0x567899[_0x900fa8(0x136)](_0x4e94da),_0x567899[_0x900fa8(0x16d)](_0x900fa8(0x182),_0x452e12+'-'+_0x3ad51e+'/'+_0x5a613a)[_0x900fa8(0x12e)](_0x24dc03);}return null;};}function saveUpdates(_0x386f01){return function(_0x2716d8){const _0x955f5f=a96_0x5c0b;if(_0x2716d8)return _0x2716d8[_0x955f5f(0x130)](_0x386f01)[_0x955f5f(0x173)](function(_0x2426e3){return _0x2426e3;});return null;};}function removeEntity(_0x4ad766){return function(_0x27957a){const _0x2667b3=a96_0x5c0b;if(_0x27957a)return _0x27957a['destroy']()[_0x2667b3(0x173)](function(){const _0x579735=_0x2667b3;_0x4ad766[_0x579735(0x136)](0xcc)[_0x579735(0x16a)]();});};}function handleEntityNotFound(_0x3b3511){return function(_0xd2910b){const _0x1eb77f=a96_0x5c0b;return!_0xd2910b&&_0x3b3511[_0x1eb77f(0x142)](0x194),_0xd2910b;};}function handleError(_0xa01ead,_0x11f321){return _0x11f321=_0x11f321||0x1f4,function(_0x642cee){const _0x238853=a96_0x5c0b;logger[_0x238853(0x14f)](_0x642cee[_0x238853(0x15d)]),_0x642cee[_0x238853(0x12c)]&&delete _0x642cee['name'],_0xa01ead[_0x238853(0x136)](_0x11f321)[_0x238853(0x165)](_0x642cee);};}exports[a96_0x2c2321(0x166)]=function(_0x5bdd6e,_0x44dc2d){const _0x188812=a96_0x2c2321;let _0x5aa07c={};const _0x12893a={},_0x207bab={'count':0x0,'rows':[]},_0x3197c0=_['map'](db[_0x188812(0x17f)][_0x188812(0x168)],function(_0x24b8c6){const _0x294fd5=_0x188812;return{'name':_0x24b8c6['fieldName'],'type':_0x24b8c6[_0x294fd5(0x183)][_0x294fd5(0x124)]};});_0x12893a[_0x188812(0x16c)]=_[_0x188812(0x175)](_0x3197c0,'name'),_0x12893a[_0x188812(0x134)]=_[_0x188812(0x161)](_0x5bdd6e[_0x188812(0x134)]),_0x12893a['filters']=_[_0x188812(0x147)](_0x12893a[_0x188812(0x16c)],_0x12893a[_0x188812(0x134)]),_0x5aa07c['attributes']=_[_0x188812(0x147)](_0x12893a[_0x188812(0x16c)],qs[_0x188812(0x13b)](_0x5bdd6e[_0x188812(0x134)]['fields'])),_0x5aa07c[_0x188812(0x12b)]=_0x5aa07c[_0x188812(0x12b)]['length']?_0x5aa07c[_0x188812(0x12b)]:_0x12893a[_0x188812(0x16c)];typeof _0x5bdd6e['query'][_0x188812(0x139)]===_0x188812(0x14b)&&(_0x5aa07c[_0x188812(0x144)]=qs[_0x188812(0x144)](_0x5bdd6e[_0x188812(0x134)]['limit']),_0x5aa07c['offset']=qs[_0x188812(0x154)](_0x5bdd6e[_0x188812(0x134)][_0x188812(0x154)]));_0x5aa07c[_0x188812(0x16e)]=qs[_0x188812(0x16f)](_0x5bdd6e[_0x188812(0x134)][_0x188812(0x16f)]),_0x5aa07c[_0x188812(0x122)]=qs[_0x188812(0x188)](_[_0x188812(0x141)](_0x5bdd6e[_0x188812(0x134)],_0x12893a[_0x188812(0x188)]),_0x3197c0);_0x5bdd6e['query'][_0x188812(0x129)]&&(_0x5aa07c[_0x188812(0x122)]=_['merge'](_0x5aa07c['where'],{[Op['or']]:_[_0x188812(0x175)](_0x3197c0,function(_0x33995b){const _0x16d48c=_0x188812;if(_0x33995b[_0x16d48c(0x183)]!==_0x16d48c(0x15e)){const _0x23ca7a={};return _0x23ca7a[_0x33995b[_0x16d48c(0x12c)]]={[Op[_0x16d48c(0x12f)]]:'%'+_0x5bdd6e['query']['filter']+'%'},_0x23ca7a;}})}));_0x5aa07c=_['merge']({},_0x5aa07c,_0x5bdd6e[_0x188812(0x187)]);const _0x4a43a1={'where':_0x5aa07c['where']};return db[_0x188812(0x17f)]['count'](_0x4a43a1)[_0x188812(0x173)](function(_0x456f57){const _0x36a302=_0x188812;return _0x207bab['count']=_0x456f57,_0x5bdd6e[_0x36a302(0x134)][_0x36a302(0x17b)]&&(_0x5aa07c['include']=[{'all':!![]}]),db[_0x36a302(0x17f)][_0x36a302(0x180)](_0x5aa07c);})[_0x188812(0x173)](function(_0x790757){const _0x3a3f=_0x188812;return _0x207bab[_0x3a3f(0x125)]=_0x790757,_0x207bab;})[_0x188812(0x173)](respondWithFilteredResult(_0x44dc2d,_0x5aa07c))['catch'](handleError(_0x44dc2d,null));},exports[a96_0x2c2321(0x189)]=function(_0x19617e,_0x344f0c){const _0x1cbdcb=a96_0x2c2321;let _0x2ca197={'raw':!![],'where':{'id':_0x19617e['params']['id']}};const _0x262f14={};return _0x262f14[_0x1cbdcb(0x16c)]=_['keys'](db[_0x1cbdcb(0x17f)][_0x1cbdcb(0x168)]),_0x262f14[_0x1cbdcb(0x134)]=_[_0x1cbdcb(0x161)](_0x19617e[_0x1cbdcb(0x134)]),_0x262f14[_0x1cbdcb(0x188)]=_[_0x1cbdcb(0x147)](_0x262f14['model'],_0x262f14[_0x1cbdcb(0x134)]),_0x2ca197[_0x1cbdcb(0x12b)]=_[_0x1cbdcb(0x147)](_0x262f14[_0x1cbdcb(0x16c)],qs[_0x1cbdcb(0x13b)](_0x19617e[_0x1cbdcb(0x134)]['fields'])),_0x2ca197[_0x1cbdcb(0x12b)]=_0x2ca197[_0x1cbdcb(0x12b)][_0x1cbdcb(0x156)]?_0x2ca197[_0x1cbdcb(0x12b)]:_0x262f14['model'],_0x19617e['query'][_0x1cbdcb(0x17b)]&&(_0x2ca197[_0x1cbdcb(0x149)]=[{'all':!![]}]),_0x2ca197=_[_0x1cbdcb(0x128)]({},_0x2ca197,_0x19617e[_0x1cbdcb(0x187)]),db['ChatMessage']['findOne'](_0x2ca197)[_0x1cbdcb(0x173)](handleEntityNotFound(_0x344f0c,null))['then'](respondWithResult(_0x344f0c,null))[_0x1cbdcb(0x127)](handleError(_0x344f0c,null));},exports[a96_0x2c2321(0x133)]=function(_0x307150,_0x56bec6){const _0x1f08ff=a96_0x2c2321;return db[_0x1f08ff(0x17f)][_0x1f08ff(0x133)](_0x307150[_0x1f08ff(0x179)],{})[_0x1f08ff(0x173)](respondWithResult(_0x56bec6,0xc9))[_0x1f08ff(0x127)](handleError(_0x56bec6,null));},exports[a96_0x2c2321(0x130)]=function(_0x29c2c2,_0x1c306e){const _0x574ef5=a96_0x2c2321;return _0x29c2c2[_0x574ef5(0x179)]['id']&&delete _0x29c2c2['body']['id'],db['ChatMessage'][_0x574ef5(0x177)]({'where':{'id':_0x29c2c2['params']['id']}})[_0x574ef5(0x173)](handleEntityNotFound(_0x1c306e,null))['then'](saveUpdates(_0x29c2c2['body'],null))[_0x574ef5(0x173)](respondWithResult(_0x1c306e,null))['catch'](handleError(_0x1c306e,null));},exports[a96_0x2c2321(0x174)]=function(_0x466a48,_0xd10518){const _0x3043e8=a96_0x2c2321;return db[_0x3043e8(0x17f)][_0x3043e8(0x177)]({'where':{'id':_0x466a48['params']['id']}})[_0x3043e8(0x173)](handleEntityNotFound(_0xd10518,null))[_0x3043e8(0x173)](removeEntity(_0xd10518,null))['catch'](handleError(_0xd10518,null));},exports[a96_0x2c2321(0x171)]=function(_0x4ef28a,_0x5b7b54){const _0x4f6d45=a96_0x2c2321;return db['ChatMessage'][_0x4f6d45(0x171)]()[_0x4f6d45(0x173)](respondWithResult(_0x5b7b54,null))['catch'](handleError(_0x5b7b54,null));},exports[a96_0x2c2321(0x140)]=function(_0x5d3aa4,_0x32a62f){const _0x4fb9af=a96_0x2c2321,_0x4e1927={'channel':_0x4fb9af(0x14e)};return _0x5d3aa4['body']['id']&&delete _0x5d3aa4[_0x4fb9af(0x179)]['id'],_0x5d3aa4[_0x4fb9af(0x179)][_0x4fb9af(0x185)]=!![],_0x5d3aa4[_0x4fb9af(0x179)][_0x4fb9af(0x17a)]=moment()[_0x4fb9af(0x13c)]('YYYY-MM-DD\x20HH:mm:ss'),_0x5d3aa4['body'][_0x4fb9af(0x15f)]=_0x5d3aa4[_0x4fb9af(0x179)][_0x4fb9af(0x15f)]||_0x5d3aa4[_0x4fb9af(0x143)]['id'],db['ChatMessage'][_0x4fb9af(0x177)]({'where':{'id':_0x5d3aa4['params']['id'],'UserId':null},'include':[{'model':db[_0x4fb9af(0x158)],'as':_0x4fb9af(0x146)}]})[_0x4fb9af(0x173)](handleEntityNotFound(_0x32a62f,null))[_0x4fb9af(0x173)](saveUpdates(_0x5d3aa4[_0x4fb9af(0x179)],null))[_0x4fb9af(0x173)](function(_0x3c0a85){const _0x2c1fa9=_0x4fb9af;if(_0x3c0a85)return _0x4e1927[_0x2c1fa9(0x184)]=_0x3c0a85[_0x2c1fa9(0x157)]({'plain':!![]}),db[_0x2c1fa9(0x153)][_0x2c1fa9(0x177)]({'where':{'id':_0x3c0a85[_0x2c1fa9(0x159)]}});return null;})[_0x4fb9af(0x173)](handleEntityNotFound(_0x32a62f,null))[_0x4fb9af(0x173)](function(_0x3d924f){const _0x15497f=_0x4fb9af;if(_0x3d924f)return _0x3d924f[_0x15497f(0x130)]({'UserId':_0x5d3aa4[_0x15497f(0x179)][_0x15497f(0x15f)],'read1stAt':_[_0x15497f(0x17c)](_0x3d924f[_0x15497f(0x167)])?moment()[_0x15497f(0x13c)](_0x15497f(0x13f)):undefined});return null;})[_0x4fb9af(0x173)](function(_0x5abeb7){const _0x5a86ff=_0x4fb9af;if(_0x5abeb7)return _0x4e1927[_0x5a86ff(0x163)]=_0x5abeb7[_0x5a86ff(0x157)]({'plain':!![]}),interaction_log[_0x5a86ff(0x155)](_0x5a86ff(0x14c),_0x5d3aa4[_0x5a86ff(0x143)]['id'],_0x5d3aa4[_0x5a86ff(0x143)][_0x5a86ff(0x12c)],_0x5d3aa4['user'][_0x5a86ff(0x12a)],_0x4e1927[_0x5a86ff(0x163)]['id'],_0x5d3aa4[_0x5a86ff(0x179)]?JSON['stringify'](_0x5d3aa4[_0x5a86ff(0x179)]):'null'),respondWithRpcPromise('AcceptMessage',_0x5a86ff(0x164),_0x4e1927);return null;})['then'](function(_0x510abb){const _0x3282a4=_0x4fb9af;if(_0x510abb){if(_0x5d3aa4[_0x3282a4(0x179)][_0x3282a4(0x150)])return _0x4e1927['message'][_0x3282a4(0x138)]=util['format']('SIP/%s',_0x5d3aa4['user']['name']),_0x4e1927['message']['channel']=_0x4e1927['channel'],_0x4e1927[_0x3282a4(0x184)][_0x3282a4(0x15c)]='accept',respondWithRpcPromise(_0x3282a4(0x152),_0x3282a4(0x152),{'event':'acceptmessage','message':_['merge'](_0x4e1927['message'],JSON[_0x3282a4(0x169)](_0x4e1927[_0x3282a4(0x163)][_0x3282a4(0x132)]))},client9002)[_0x3282a4(0x173)](function(){return _0x4e1927;});return _0x4e1927;}return null;})['then'](respondWithResult(_0x32a62f,null))['catch'](handleError(_0x32a62f,null));},exports[a96_0x2c2321(0x15b)]=function(_0x7e0a09,_0x289137){const _0x5e426e=a96_0x2c2321,_0x5d2f59={'agent':{},'channel':_0x5e426e(0x14e)};return _0x7e0a09[_0x5e426e(0x179)]['id']&&delete _0x7e0a09[_0x5e426e(0x179)]['id'],_0x7e0a09['body'][_0x5e426e(0x15f)]=_0x7e0a09[_0x5e426e(0x179)][_0x5e426e(0x15f)]||_0x7e0a09[_0x5e426e(0x143)]['id'],_0x5d2f59[_0x5e426e(0x14a)]['id']=_0x7e0a09[_0x5e426e(0x179)]['UserId'],db[_0x5e426e(0x17f)][_0x5e426e(0x177)]({'where':{'id':_0x7e0a09['params']['id'],'UserId':null}})[_0x5e426e(0x173)](handleEntityNotFound(_0x289137,null))['then'](function(_0x1bc056){const _0x390e1b=_0x5e426e;if(_0x1bc056)return _0x5d2f59[_0x390e1b(0x184)]=_0x1bc056[_0x390e1b(0x157)]({'plain':!![]}),db[_0x390e1b(0x153)][_0x390e1b(0x177)]({'where':{'id':_0x1bc056[_0x390e1b(0x159)]}});return null;})[_0x5e426e(0x173)](handleEntityNotFound(_0x289137,null))[_0x5e426e(0x173)](function(_0x4856b2){const _0x3598b4=_0x5e426e;if(_0x4856b2)return _0x5d2f59['interaction']=_0x4856b2[_0x3598b4(0x157)]({'plain':!![]}),interaction_log[_0x3598b4(0x155)](_0x3598b4(0x121),_0x7e0a09['user']['id'],_0x7e0a09[_0x3598b4(0x143)][_0x3598b4(0x12c)],_0x7e0a09['user'][_0x3598b4(0x12a)],_0x5d2f59['interaction']['id'],_0x7e0a09[_0x3598b4(0x179)]?JSON[_0x3598b4(0x120)](_0x7e0a09[_0x3598b4(0x179)]):_0x3598b4(0x162)),respondWithRpcPromise(_0x3598b4(0x17e),_0x3598b4(0x186),_0x5d2f59);return null;})[_0x5e426e(0x173)](function(_0x2d9430){const _0xd992f0=_0x5e426e;if(_0x2d9430)return _0x2d9430[_0xd992f0(0x184)]['interface']=util['format'](_0xd992f0(0x13d),_0x7e0a09[_0xd992f0(0x143)][_0xd992f0(0x12c)]),_0x2d9430['message'][_0xd992f0(0x16b)]=_0x5d2f59[_0xd992f0(0x16b)],_0x2d9430[_0xd992f0(0x184)][_0xd992f0(0x15c)]=_0xd992f0(0x15b),respondWithRpcPromise(_0xd992f0(0x152),_0xd992f0(0x152),{'event':'rejectmessage','message':_0x2d9430[_0xd992f0(0x184)]},client9002),_0x5d2f59;return null;})[_0x5e426e(0x173)](respondWithResult(_0x289137,null))[_0x5e426e(0x127)](handleError(_0x289137,null));}; \ No newline at end of file diff --git a/server/api/chatMessage/chatMessage.events.js b/server/api/chatMessage/chatMessage.events.js index 04bd28e..cb8d694 100644 --- a/server/api/chatMessage/chatMessage.events.js +++ b/server/api/chatMessage/chatMessage.events.js @@ -1 +1 @@ -const a81_0xe583=['undefined','events','save','emit','../../mysqldb','update','remove'];(function(_0x15e88a,_0xe583a){const _0x1898f1=function(_0x4dee57){while(--_0x4dee57){_0x15e88a['push'](_0x15e88a['shift']());}};_0x1898f1(++_0xe583a);}(a81_0xe583,0x1ac));const a81_0x1898=function(_0x15e88a,_0xe583a){_0x15e88a=_0x15e88a-0x0;let _0x1898f1=a81_0xe583[_0x15e88a];return _0x1898f1;};const _0x5e7e2a=a81_0x1898;'use strict';const EventEmitter=require(_0x5e7e2a('0x0')),ChatMessage=require(_0x5e7e2a('0x3'))['db']['ChatMessage'],ChatMessageEvents=new EventEmitter();ChatMessageEvents['setMaxListeners'](0x0);const events={'afterCreate':_0x5e7e2a('0x1'),'afterUpdate':_0x5e7e2a('0x4'),'afterDestroy':_0x5e7e2a('0x5')};function emitEvent(_0x4dee57){return function(_0x1b0ba0){const _0x5cc841=a81_0x1898;ChatMessageEvents[_0x5cc841('0x2')](_0x4dee57+':'+_0x1b0ba0['id'],_0x1b0ba0),ChatMessageEvents[_0x5cc841('0x2')](_0x4dee57,_0x1b0ba0);};}for(const e in events){if(typeof events[e]!==_0x5e7e2a('0x6')){const event=events[e];ChatMessage['addHook'](e,emitEvent(event));}}module['exports']=ChatMessageEvents; \ No newline at end of file +const a97_0x59e0=['update','addHook','remove','save','undefined','emit','exports','../../mysqldb','setMaxListeners','ChatMessage'];(function(_0x35170a,_0x4dc8a7){const _0x59e072=function(_0x26a39a){while(--_0x26a39a){_0x35170a['push'](_0x35170a['shift']());}};_0x59e072(++_0x4dc8a7);}(a97_0x59e0,0x199));const a97_0x26a3=function(_0x35170a,_0x4dc8a7){_0x35170a=_0x35170a-0x1cc;let _0x59e072=a97_0x59e0[_0x35170a];return _0x59e072;};const a97_0x5f3e75=a97_0x26a3;'use strict';const EventEmitter=require('events'),ChatMessage=require(a97_0x5f3e75(0x1d4))['db'][a97_0x5f3e75(0x1cc)],ChatMessageEvents=new EventEmitter();ChatMessageEvents[a97_0x5f3e75(0x1d5)](0x0);const events={'afterCreate':a97_0x5f3e75(0x1d0),'afterUpdate':a97_0x5f3e75(0x1cd),'afterDestroy':a97_0x5f3e75(0x1cf)};function emitEvent(_0x5e9ecd){return function(_0x3ccaf2){const _0x12d324=a97_0x26a3;ChatMessageEvents[_0x12d324(0x1d2)](_0x5e9ecd+':'+_0x3ccaf2['id'],_0x3ccaf2),ChatMessageEvents[_0x12d324(0x1d2)](_0x5e9ecd,_0x3ccaf2);};}for(const e in events){if(typeof events[e]!==a97_0x5f3e75(0x1d1)){const event=events[e];ChatMessage[a97_0x5f3e75(0x1ce)](e,emitEvent(event));}}module[a97_0x5f3e75(0x1d3)]=ChatMessageEvents; \ No newline at end of file diff --git a/server/api/chatMessage/chatMessage.model.js b/server/api/chatMessage/chatMessage.model.js index f11ff7a..2a65832 100644 --- a/server/api/chatMessage/chatMessage.model.js +++ b/server/api/chatMessage/chatMessage.model.js @@ -1 +1 @@ -const a82_0x4ad8=['error','lodash','FULLTEXT','findOne','utf8mb4','update','ChatMessage','then','chat_messages','UserId','get','createdAt','ChatInteractionId','direction','isNil','toLowerCase','fti_chat_messages','define','out','utf8mb4_unicode_ci','exports','catch','secret','./chatMessage.attributes','body'];(function(_0x1ffcc2,_0x4ad866){const _0x6a2fb3=function(_0x53e6bd){while(--_0x53e6bd){_0x1ffcc2['push'](_0x1ffcc2['shift']());}};_0x6a2fb3(++_0x4ad866);}(a82_0x4ad8,0x17f));const a82_0x6a2f=function(_0x1ffcc2,_0x4ad866){_0x1ffcc2=_0x1ffcc2-0x0;let _0x6a2fb3=a82_0x4ad8[_0x1ffcc2];return _0x6a2fb3;};const _0x388668=a82_0x6a2f;'use strict';const _=require(_0x388668('0x12')),attributes=require(_0x388668('0xf'));module[_0x388668('0xc')]=function(_0x53e6bd){const _0xe50763=_0x388668,_0x502462=_0x53e6bd['models'],_0x5c6279=_0x53e6bd[_0xe50763('0x9')](_0xe50763('0x17'),attributes,{'tableName':_0xe50763('0x0'),'paranoid':![],'indexes':[{'name':_0xe50763('0x8'),'fields':[_0xe50763('0x10')],'type':_0xe50763('0x13')}],'timestamps':!![],'hooks':{'afterCreate':function(_0x4750f7){const _0x3466f7=_0xe50763,_0x30d7b8=_0x4750f7[_0x3466f7('0x2')]({'plain':!![]});(_0x30d7b8[_0x3466f7('0x5')][_0x3466f7('0x7')]()==='in'||_0x30d7b8[_0x3466f7('0x5')][_0x3466f7('0x7')]()===_0x3466f7('0xa')&&!_0x30d7b8[_0x3466f7('0xe')]&&!_[_0x3466f7('0x6')](_0x30d7b8[_0x3466f7('0x1')]))&&_0x502462['ChatInteraction'][_0x3466f7('0x14')]({'where':{'id':_0x30d7b8[_0x3466f7('0x4')]}})[_0x3466f7('0x18')](function(_0x45fc1e){const _0xeba953=_0x3466f7;_0x45fc1e&&_0x45fc1e[_0xeba953('0x16')]({'lastMsgAt':_0x30d7b8[_0xeba953('0x3')],'lastMsgDirection':_0x30d7b8[_0xeba953('0x5')][_0xeba953('0x7')]()});})[_0x3466f7('0xd')](function(_0x4bfb48){const _0x550fa6=_0x3466f7;console[_0x550fa6('0x11')](_0x4bfb48);});}},'charset':_0xe50763('0x15'),'collate':_0xe50763('0xb')});return _0x5c6279;}; \ No newline at end of file +const a98_0xa9d6=['sequelize','init','function','ChatMessage','exports'];(function(_0x202800,_0xd6c6a4){const _0xa9d686=function(_0x508ec3){while(--_0x508ec3){_0x202800['push'](_0x202800['shift']());}};_0xa9d686(++_0xd6c6a4);}(a98_0xa9d6,0x151));const a98_0x508e=function(_0x202800,_0xd6c6a4){_0x202800=_0x202800-0x164;let _0xa9d686=a98_0xa9d6[_0x202800];return _0xa9d686;};const a98_0x1970fd=a98_0x508e;'use strict';const {Model}=require(a98_0x1970fd(0x167)),{attributes}=require('./chatMessage.attributes'),{options}=require('./chatMessage.options');class ChatMessage extends Model{}function init(_0x27b82e,_0x394053){const _0x9e1694=a98_0x1970fd,_0x3497d3=options(_0x27b82e),_0x20ba17=typeof _0x394053===_0x9e1694(0x164)?_0x394053(_0x3497d3):_0x3497d3;return ChatMessage[_0x9e1694(0x168)](attributes,_0x20ba17),ChatMessage;}module['exports'][a98_0x1970fd(0x165)]=ChatMessage,module[a98_0x1970fd(0x166)][a98_0x1970fd(0x168)]=init; \ No newline at end of file diff --git a/server/api/chatMessage/chatMessage.options.js b/server/api/chatMessage/chatMessage.options.js new file mode 100644 index 0000000..4213481 --- /dev/null +++ b/server/api/chatMessage/chatMessage.options.js @@ -0,0 +1 @@ +const a99_0x2f0d=['UserId','error','isNil','createdAt','ChatInteraction','secret','toLowerCase','FULLTEXT','lodash','catch','findOne','utf8mb4','chat_messages','get','fti_chat_messages','ChatInteractionId','update','body','direction','models','exports'];(function(_0x3ccf9f,_0x418cfe){const _0x2f0d7e=function(_0x133ce7){while(--_0x133ce7){_0x3ccf9f['push'](_0x3ccf9f['shift']());}};_0x2f0d7e(++_0x418cfe);}(a99_0x2f0d,0x13e));const a99_0x133c=function(_0x3ccf9f,_0x418cfe){_0x3ccf9f=_0x3ccf9f-0x1d8;let _0x2f0d7e=a99_0x2f0d[_0x3ccf9f];return _0x2f0d7e;};const a99_0x23a0ce=a99_0x133c,_=require(a99_0x23a0ce(0x1dd));function options(_0x3ad744){const _0x229bd7=a99_0x23a0ce;return{'sequelize':_0x3ad744,'tableName':_0x229bd7(0x1e1),'paranoid':![],'indexes':[{'name':_0x229bd7(0x1e3),'fields':[_0x229bd7(0x1e6)],'type':_0x229bd7(0x1dc)}],'timestamps':!![],'hooks':{'afterCreate':function(_0x509639){const _0x3051ed=_0x229bd7,_0x500dd0=_0x3ad744[_0x3051ed(0x1e8)],_0x38b95f=_0x509639[_0x3051ed(0x1e2)]({'plain':!![]});(_0x38b95f[_0x3051ed(0x1e7)][_0x3051ed(0x1db)]()==='in'||_0x38b95f['direction'][_0x3051ed(0x1db)]()==='out'&&!_0x38b95f[_0x3051ed(0x1da)]&&!_[_0x3051ed(0x1ec)](_0x38b95f[_0x3051ed(0x1ea)]))&&_0x500dd0[_0x3051ed(0x1d9)][_0x3051ed(0x1df)]({'where':{'id':_0x38b95f[_0x3051ed(0x1e4)]}})['then'](function(_0x5cfed1){const _0xc0543d=_0x3051ed;_0x5cfed1&&_0x5cfed1[_0xc0543d(0x1e5)]({'lastMsgAt':_0x38b95f[_0xc0543d(0x1d8)],'lastMsgDirection':_0x38b95f[_0xc0543d(0x1e7)]['toLowerCase']()});})[_0x3051ed(0x1de)](function(_0x35a1f8){const _0x48a14c=_0x3051ed;console[_0x48a14c(0x1eb)](_0x35a1f8);});}},'charset':_0x229bd7(0x1e0),'collate':'utf8mb4_unicode_ci'};}module[a99_0x23a0ce(0x1e9)]['options']=options; \ No newline at end of file diff --git a/server/api/chatMessage/chatMessage.rpc.js b/server/api/chatMessage/chatMessage.rpc.js index 8acbd56..cccd5fc 100644 --- a/server/api/chatMessage/chatMessage.rpc.js +++ b/server/api/chatMessage/chatMessage.rpc.js @@ -1 +1 @@ -const a83_0x4f7e=['stringify','CreateChatMessage','catch','ChatMessage','info','../../rediscache','error','../../config/logger','then','debug','rpc','create','raw','register','message','options'];(function(_0x5501f9,_0x4f7e21){const _0x3a345b=function(_0x2e932b){while(--_0x2e932b){_0x5501f9['push'](_0x5501f9['shift']());}};_0x3a345b(++_0x4f7e21);}(a83_0x4f7e,0x189));const a83_0x3a34=function(_0x5501f9,_0x4f7e21){_0x5501f9=_0x5501f9-0x0;let _0x3a345b=a83_0x4f7e[_0x5501f9];return _0x3a345b;};const _0x4604c9=a83_0x3a34;'use strict';const db=require('../../mysqldb')['db'],logger=require(_0x4604c9('0xe'))(_0x4604c9('0x1')),{getSocket}=require(_0x4604c9('0xc')),socket=getSocket();require('./chatMessage.socket')[_0x4604c9('0x4')](socket),exports[_0x4604c9('0x8')]=function(_0x2e932b){const _0x65c0ae=this;return new Promise(function(_0x14e081,_0x417dd8){const _0xf72fba=a83_0x3a34;return db[_0xf72fba('0xa')][_0xf72fba('0x2')](_0x2e932b['body'],{'raw':_0x2e932b[_0xf72fba('0x6')]?_0x2e932b[_0xf72fba('0x6')][_0xf72fba('0x3')]===undefined?!![]:![]:!![]})[_0xf72fba('0xf')](function(_0x48130c){const _0x29bba0=_0xf72fba;logger[_0x29bba0('0xb')](_0x29bba0('0x8'),_0x2e932b),logger[_0x29bba0('0x0')](_0x29bba0('0x8'),_0x2e932b,JSON[_0x29bba0('0x7')](_0x48130c)),_0x14e081(_0x48130c);})[_0xf72fba('0x9')](function(_0x47f7d9){const _0x331ba4=_0xf72fba;logger[_0x331ba4('0xd')]('CreateChatMessage',_0x47f7d9[_0x331ba4('0x5')],_0x2e932b),_0x417dd8(_0x65c0ae['error'](0x1f4,_0x47f7d9['message']));});});}; \ No newline at end of file +const a100_0x3c06=['create','debug','../../config/logger','raw','error','../../mysqldb','register','catch','CreateChatMessage','rpc','./chatMessage.socket','info','options','body','stringify','message'];(function(_0x5e1f1f,_0x450c96){const _0x3c06b4=function(_0x36de1f){while(--_0x36de1f){_0x5e1f1f['push'](_0x5e1f1f['shift']());}};_0x3c06b4(++_0x450c96);}(a100_0x3c06,0x1e9));const a100_0x36de=function(_0x5e1f1f,_0x450c96){_0x5e1f1f=_0x5e1f1f-0x19a;let _0x3c06b4=a100_0x3c06[_0x5e1f1f];return _0x3c06b4;};const a100_0x23fbc6=a100_0x36de;'use strict';const db=require(a100_0x23fbc6(0x1a6))['db'],logger=require(a100_0x23fbc6(0x1a3))(a100_0x23fbc6(0x19a)),{getSocket}=require('../../rediscache'),socket=getSocket();require(a100_0x23fbc6(0x19b))[a100_0x23fbc6(0x1a7)](socket),exports[a100_0x23fbc6(0x1a9)]=function(_0x313bf3){const _0x51de7a=this;return new Promise(function(_0xd9435d,_0x1a84d8){const _0x58c629=a100_0x36de;return db['ChatMessage'][_0x58c629(0x1a1)](_0x313bf3[_0x58c629(0x19e)],{'raw':_0x313bf3['options']?_0x313bf3[_0x58c629(0x19d)][_0x58c629(0x1a4)]===undefined?!![]:![]:!![]})['then'](function(_0x5990b1){const _0x49160a=_0x58c629;logger[_0x49160a(0x19c)](_0x49160a(0x1a9),_0x313bf3),logger[_0x49160a(0x1a2)]('CreateChatMessage',_0x313bf3,JSON[_0x49160a(0x19f)](_0x5990b1)),_0xd9435d(_0x5990b1);})[_0x58c629(0x1a8)](function(_0x5b9835){const _0x1b03d8=_0x58c629;logger['error'](_0x1b03d8(0x1a9),_0x5b9835[_0x1b03d8(0x1a0)],_0x313bf3),_0x1a84d8(_0x51de7a[_0x1b03d8(0x1a5)](0x1f4,_0x5b9835[_0x1b03d8(0x1a0)]));});});}; \ No newline at end of file diff --git a/server/api/chatMessage/chatMessage.socket.js b/server/api/chatMessage/chatMessage.socket.js index e918329..6c35388 100644 --- a/server/api/chatMessage/chatMessage.socket.js +++ b/server/api/chatMessage/chatMessage.socket.js @@ -1 +1 @@ -const a84_0x1024=['remove','./chatMessage.events','update','save','register'];(function(_0x502e4b,_0x102428){const _0x48ff8f=function(_0x34e073){while(--_0x34e073){_0x502e4b['push'](_0x502e4b['shift']());}};_0x48ff8f(++_0x102428);}(a84_0x1024,0x1b9));const a84_0x48ff=function(_0x502e4b,_0x102428){_0x502e4b=_0x502e4b-0x0;let _0x48ff8f=a84_0x1024[_0x502e4b];return _0x48ff8f;};const _0x1cc50c=a84_0x48ff;'use strict';const ChatMessageEvents=require(_0x1cc50c('0x0')),events=[_0x1cc50c('0x2'),_0x1cc50c('0x4'),_0x1cc50c('0x1')];function createListener(_0x34e073,_0x334e9d){return function(_0x1b5529){_0x334e9d['emit'](_0x34e073,_0x1b5529);};}exports[_0x1cc50c('0x3')]=function(_0x3eb5cb){for(let _0x5f1f39=0x0,_0x47857a=events['length'];_0x5f1f39<_0x47857a;_0x5f1f39++){const _0x167b62=events[_0x5f1f39],_0x33f8fd=createListener('chatMessage:'+_0x167b62,_0x3eb5cb);ChatMessageEvents['on'](_0x167b62,_0x33f8fd);}}; \ No newline at end of file +const a101_0x2763=['update','register','emit','chatMessage:','save','remove','./chatMessage.events'];(function(_0x35e5dc,_0x356430){const _0x2763c3=function(_0x557653){while(--_0x557653){_0x35e5dc['push'](_0x35e5dc['shift']());}};_0x2763c3(++_0x356430);}(a101_0x2763,0x128));const a101_0x5576=function(_0x35e5dc,_0x356430){_0x35e5dc=_0x35e5dc-0x186;let _0x2763c3=a101_0x2763[_0x35e5dc];return _0x2763c3;};const a101_0x314a3d=a101_0x5576;'use strict';const ChatMessageEvents=require(a101_0x314a3d(0x18a)),events=[a101_0x314a3d(0x188),a101_0x314a3d(0x189),a101_0x314a3d(0x18b)];function createListener(_0xbbfc34,_0x553ad1){return function(_0x58cb5c){const _0x53d874=a101_0x5576;_0x553ad1[_0x53d874(0x186)](_0xbbfc34,_0x58cb5c);};}exports[a101_0x314a3d(0x18c)]=function(_0x3a8560){const _0x425af1=a101_0x314a3d;for(let _0x304281=0x0,_0x1b626d=events['length'];_0x304281<_0x1b626d;_0x304281++){const _0x32f0af=events[_0x304281],_0x2cf5e3=createListener(_0x425af1(0x187)+_0x32f0af,_0x3a8560);ChatMessageEvents['on'](_0x32f0af,_0x2cf5e3);}}; \ No newline at end of file diff --git a/server/api/chatMessage/index.js b/server/api/chatMessage/index.js index 9220e44..f3d04e3 100644 --- a/server/api/chatMessage/index.js +++ b/server/api/chatMessage/index.js @@ -1 +1 @@ -const a85_0x4d80=['tracked','/:id/reject','index','/:id/accept','isAuthenticated','Router','accept','destroy','describe','exports','/describe','reject','/:id','put','./chatMessage.controller','update','get','delete','show','chatmessage:create','chat','../../components/interaction/service'];(function(_0x1d7051,_0x4d80ad){const _0x4cbbbd=function(_0x570eea){while(--_0x570eea){_0x1d7051['push'](_0x1d7051['shift']());}};_0x4cbbbd(++_0x4d80ad);}(a85_0x4d80,0x9d));const a85_0x4cbb=function(_0x1d7051,_0x4d80ad){_0x1d7051=_0x1d7051-0x0;let _0x4cbbbd=a85_0x4d80[_0x1d7051];return _0x4cbbbd;};const _0x33ecaf=a85_0x4cbb;'use strict';const express=require('express'),router=express[_0x33ecaf('0x2')](),auth=require('../../components/auth/service'),interaction=require(_0x33ecaf('0x12')),controller=require(_0x33ecaf('0xb'));router[_0x33ecaf('0xd')]('/',auth['isAuthenticated'](),controller[_0x33ecaf('0x15')]),router['get'](_0x33ecaf('0x7'),auth[_0x33ecaf('0x1')](),controller[_0x33ecaf('0x5')]),router[_0x33ecaf('0xd')](_0x33ecaf('0x9'),auth['isAuthenticated'](),controller[_0x33ecaf('0xf')]),router['post']('/',auth[_0x33ecaf('0x1')](),interaction[_0x33ecaf('0x13')](_0x33ecaf('0x11'),_0x33ecaf('0x10')),controller['create']),router[_0x33ecaf('0xa')](_0x33ecaf('0x9'),controller[_0x33ecaf('0xc')]),router[_0x33ecaf('0xa')](_0x33ecaf('0x0'),auth[_0x33ecaf('0x1')](),controller[_0x33ecaf('0x3')]),router['put'](_0x33ecaf('0x14'),auth['isAuthenticated'](),controller[_0x33ecaf('0x8')]),router[_0x33ecaf('0xe')]('/:id',auth[_0x33ecaf('0x1')](),controller[_0x33ecaf('0x4')]),module[_0x33ecaf('0x6')]=router; \ No newline at end of file +const a102_0x85d7=['../../components/interaction/service','delete','get','tracked','/describe','put','index','accept','/:id','../../components/auth/service','describe','chatmessage:create','chat','Router','destroy','exports','/:id/accept','post','show','isAuthenticated','./chatMessage.controller'];(function(_0x9fb79e,_0x177e0f){const _0x85d70e=function(_0x2b33c9){while(--_0x2b33c9){_0x9fb79e['push'](_0x9fb79e['shift']());}};_0x85d70e(++_0x177e0f);}(a102_0x85d7,0x1ad));const a102_0x2b33=function(_0x9fb79e,_0x177e0f){_0x9fb79e=_0x9fb79e-0x149;let _0x85d70e=a102_0x85d7[_0x9fb79e];return _0x85d70e;};const a102_0x2d35a6=a102_0x2b33;'use strict';const express=require('express'),router=express[a102_0x2d35a6(0x14d)](),auth=require(a102_0x2d35a6(0x149)),interaction=require(a102_0x2d35a6(0x155)),controller=require(a102_0x2d35a6(0x154));router[a102_0x2d35a6(0x157)]('/',auth[a102_0x2d35a6(0x153)](),controller[a102_0x2d35a6(0x15b)]),router[a102_0x2d35a6(0x157)](a102_0x2d35a6(0x159),auth[a102_0x2d35a6(0x153)](),controller[a102_0x2d35a6(0x14a)]),router['get'](a102_0x2d35a6(0x15d),auth[a102_0x2d35a6(0x153)](),controller[a102_0x2d35a6(0x152)]),router[a102_0x2d35a6(0x151)]('/',auth[a102_0x2d35a6(0x153)](),interaction[a102_0x2d35a6(0x158)](a102_0x2d35a6(0x14c),a102_0x2d35a6(0x14b)),controller['create']),router[a102_0x2d35a6(0x15a)](a102_0x2d35a6(0x15d),controller['update']),router[a102_0x2d35a6(0x15a)](a102_0x2d35a6(0x150),auth['isAuthenticated'](),controller[a102_0x2d35a6(0x15c)]),router[a102_0x2d35a6(0x15a)]('/:id/reject',auth['isAuthenticated'](),controller['reject']),router[a102_0x2d35a6(0x156)](a102_0x2d35a6(0x15d),auth[a102_0x2d35a6(0x153)](),controller[a102_0x2d35a6(0x14e)]),module[a102_0x2d35a6(0x14f)]=router; \ No newline at end of file diff --git a/server/api/chatOfflineMessage/chatOfflineMessage.attributes.js b/server/api/chatOfflineMessage/chatOfflineMessage.attributes.js index 2f5eb1f..8e2dec0 100644 --- a/server/api/chatOfflineMessage/chatOfflineMessage.attributes.js +++ b/server/api/chatOfflineMessage/chatOfflineMessage.attributes.js @@ -1 +1 @@ -const a86_0x4a07=['exports','medium','sequelize'];(function(_0x23585b,_0x4a0704){const _0x17d2f2=function(_0x1c10fe){while(--_0x1c10fe){_0x23585b['push'](_0x23585b['shift']());}};_0x17d2f2(++_0x4a0704);}(a86_0x4a07,0xcc));const a86_0x17d2=function(_0x23585b,_0x4a0704){_0x23585b=_0x23585b-0x0;let _0x17d2f2=a86_0x4a07[_0x23585b];return _0x17d2f2;};const _0x371c94=a86_0x17d2;'use strict';const Sequelize=require(_0x371c94('0x2'));module[_0x371c94('0x0')]={'body':{'type':Sequelize['TEXT'](_0x371c94('0x1')),'allowNull':![]}}; \ No newline at end of file +const a103_0x15f5=['TEXT','exports','sequelize','medium'];(function(_0x352b90,_0x5c9e5a){const _0x15f5f7=function(_0x37aea6){while(--_0x37aea6){_0x352b90['push'](_0x352b90['shift']());}};_0x15f5f7(++_0x5c9e5a);}(a103_0x15f5,0x1db));const a103_0x37ae=function(_0x352b90,_0x5c9e5a){_0x352b90=_0x352b90-0x192;let _0x15f5f7=a103_0x15f5[_0x352b90];return _0x15f5f7;};const a103_0x5a6033=a103_0x37ae;'use strict';const {DataTypes}=require(a103_0x5a6033(0x195)),attributes={'body':{'type':DataTypes[a103_0x5a6033(0x193)]({'length':a103_0x5a6033(0x192)}),'allowNull':![]}};module[a103_0x5a6033(0x194)]['attributes']=attributes; \ No newline at end of file diff --git a/server/api/chatOfflineMessage/chatOfflineMessage.controller.js b/server/api/chatOfflineMessage/chatOfflineMessage.controller.js index c7b641d..56d5d83 100644 --- a/server/api/chatOfflineMessage/chatOfflineMessage.controller.js +++ b/server/api/chatOfflineMessage/chatOfflineMessage.controller.js @@ -1 +1 @@ -const a87_0x3d7d=['../../config/logger','../../components/parsers/qs','include','../../mysqldb','lodash','intersection','attributes','name','destroy','includeAll','rawAttributes','options','params','findAll','query','stack','map','catch','keys','undefined','describe','findOne','rows','index','error','fieldName','key','VIRTUAL','then','ChatOfflineMessage','where','update','like','send','filters','json','model','nolimit','offset','create','set','count','status','sequelize','merge','filter','sort','body','pick','end','fields','show','limit','type'];(function(_0xac5819,_0x3d7db3){const _0x2c0924=function(_0x4eadc9){while(--_0x4eadc9){_0xac5819['push'](_0xac5819['shift']());}};_0x2c0924(++_0x3d7db3);}(a87_0x3d7d,0xdd));const a87_0x2c09=function(_0xac5819,_0x3d7db3){_0xac5819=_0xac5819-0x0;let _0x2c0924=a87_0x3d7d[_0xac5819];return _0x2c0924;};const _0x1339c4=a87_0x2c09;'use strict';const _=require(_0x1339c4('0x35')),qs=require(_0x1339c4('0x32')),logger=require(_0x1339c4('0x31'))('api'),db=require(_0x1339c4('0x34'))['db'],{Op}=require(_0x1339c4('0x26'));function respondWithResult(_0x4eadc9,_0x552255){return _0x552255=_0x552255||0xc8,function(_0x395e51){const _0x58e453=a87_0x2c09;if(_0x395e51)return _0x4eadc9['status'](_0x552255)[_0x58e453('0x1e')](_0x395e51);};}function respondWithFilteredResult(_0xac77b5,_0x3c94f8){return function(_0x2e7d79){const _0x387052=a87_0x2c09;if(_0x2e7d79){const _0x3dfaac=_0x2e7d79[_0x387052('0x24')],_0x40e732=_0x3c94f8[_0x387052('0x21')];let _0x3dca91=_0x3c94f8[_0x387052('0x21')]+_0x3c94f8[_0x387052('0x2f')],_0xef5e4d;return _0x3dca91>=_0x3dfaac?(_0x3dca91=_0x3dfaac,_0xef5e4d=0xc8):_0xef5e4d=0xce,_0xac77b5[_0x387052('0x25')](_0xef5e4d),_0xac77b5[_0x387052('0x23')]('Content-Range',_0x40e732+'-'+_0x3dca91+'/'+_0x3dfaac)['json'](_0x2e7d79);}return null;};}function saveUpdates(_0x109e7c){return function(_0x317647){const _0x1466e3=a87_0x2c09;if(_0x317647)return _0x317647['update'](_0x109e7c)[_0x1466e3('0x17')](function(_0x5a74d4){return _0x5a74d4;});return null;};}function removeEntity(_0x5c9d95){return function(_0x555dea){if(_0x555dea)return _0x555dea['destroy']()['then'](function(){const _0x5f0743=a87_0x2c09;_0x5c9d95[_0x5f0743('0x25')](0xcc)[_0x5f0743('0x2c')]();});};}function handleEntityNotFound(_0x3b4e08){return function(_0x4a3a0f){return!_0x4a3a0f&&_0x3b4e08['sendStatus'](0x194),_0x4a3a0f;};}function handleError(_0x2adeb0,_0x14c0c8){return _0x14c0c8=_0x14c0c8||0x1f4,function(_0x258b20){const _0x2a8dab=a87_0x2c09;logger[_0x2a8dab('0x13')](_0x258b20[_0x2a8dab('0xa')]),_0x258b20[_0x2a8dab('0x2')]&&delete _0x258b20[_0x2a8dab('0x2')],_0x2adeb0[_0x2a8dab('0x25')](_0x14c0c8)[_0x2a8dab('0x1c')](_0x258b20);};}exports[_0x1339c4('0x12')]=function(_0x4c0a36,_0x564412){const _0x362422=_0x1339c4;let _0xde8481={};const _0x4da1f3={},_0x228383={'count':0x0,'rows':[]},_0x28aba8=_['map'](db[_0x362422('0x18')]['rawAttributes'],function(_0x4381f3){const _0x4e79c9=_0x362422;return{'name':_0x4381f3[_0x4e79c9('0x14')],'type':_0x4381f3[_0x4e79c9('0x30')][_0x4e79c9('0x15')]};});_0x4da1f3[_0x362422('0x1f')]=_[_0x362422('0xb')](_0x28aba8,_0x362422('0x2')),_0x4da1f3[_0x362422('0x9')]=_['keys'](_0x4c0a36[_0x362422('0x9')]),_0x4da1f3[_0x362422('0x1d')]=_['intersection'](_0x4da1f3[_0x362422('0x1f')],_0x4da1f3['query']),_0xde8481[_0x362422('0x1')]=_[_0x362422('0x0')](_0x4da1f3['model'],qs[_0x362422('0x2d')](_0x4c0a36[_0x362422('0x9')][_0x362422('0x2d')])),_0xde8481[_0x362422('0x1')]=_0xde8481['attributes']['length']?_0xde8481[_0x362422('0x1')]:_0x4da1f3[_0x362422('0x1f')];typeof _0x4c0a36[_0x362422('0x9')][_0x362422('0x20')]===_0x362422('0xe')&&(_0xde8481['limit']=qs[_0x362422('0x2f')](_0x4c0a36['query'][_0x362422('0x2f')]),_0xde8481[_0x362422('0x21')]=qs[_0x362422('0x21')](_0x4c0a36[_0x362422('0x9')][_0x362422('0x21')]));_0xde8481['order']=qs[_0x362422('0x29')](_0x4c0a36[_0x362422('0x9')][_0x362422('0x29')]),_0xde8481[_0x362422('0x19')]=qs[_0x362422('0x1d')](_[_0x362422('0x2b')](_0x4c0a36[_0x362422('0x9')],_0x4da1f3['filters']),_0x28aba8);_0x4c0a36['query'][_0x362422('0x28')]&&(_0xde8481[_0x362422('0x19')]=_['merge'](_0xde8481['where'],{[Op['or']]:_[_0x362422('0xb')](_0x28aba8,function(_0x2640df){const _0x3cc6de=_0x362422;if(_0x2640df[_0x3cc6de('0x30')]!==_0x3cc6de('0x16')){const _0x1ba7db={};return _0x1ba7db[_0x2640df[_0x3cc6de('0x2')]]={[Op[_0x3cc6de('0x1b')]]:'%'+_0x4c0a36[_0x3cc6de('0x9')][_0x3cc6de('0x28')]+'%'},_0x1ba7db;}})}));_0xde8481=_[_0x362422('0x27')]({},_0xde8481,_0x4c0a36[_0x362422('0x6')]);const _0x11f0aa={'where':_0xde8481[_0x362422('0x19')]};return db[_0x362422('0x18')][_0x362422('0x24')](_0x11f0aa)['then'](function(_0x1393dd){const _0x3fc40d=_0x362422;return _0x228383[_0x3fc40d('0x24')]=_0x1393dd,_0x4c0a36[_0x3fc40d('0x9')][_0x3fc40d('0x4')]&&(_0xde8481[_0x3fc40d('0x33')]=[{'all':!![]}]),db['ChatOfflineMessage'][_0x3fc40d('0x8')](_0xde8481);})[_0x362422('0x17')](function(_0x25f07f){const _0x12044b=_0x362422;return _0x228383[_0x12044b('0x11')]=_0x25f07f,_0x228383;})[_0x362422('0x17')](respondWithFilteredResult(_0x564412,_0xde8481))['catch'](handleError(_0x564412,null));},exports[_0x1339c4('0x2e')]=function(_0x574f44,_0x46911c){const _0x5a2812=_0x1339c4;let _0xb38f83={'raw':!![],'where':{'id':_0x574f44['params']['id']}};const _0x5da67c={};return _0x5da67c[_0x5a2812('0x1f')]=_[_0x5a2812('0xd')](db[_0x5a2812('0x18')][_0x5a2812('0x5')]),_0x5da67c['query']=_[_0x5a2812('0xd')](_0x574f44[_0x5a2812('0x9')]),_0x5da67c[_0x5a2812('0x1d')]=_['intersection'](_0x5da67c['model'],_0x5da67c[_0x5a2812('0x9')]),_0xb38f83[_0x5a2812('0x1')]=_['intersection'](_0x5da67c[_0x5a2812('0x1f')],qs[_0x5a2812('0x2d')](_0x574f44['query']['fields'])),_0xb38f83[_0x5a2812('0x1')]=_0xb38f83[_0x5a2812('0x1')]['length']?_0xb38f83['attributes']:_0x5da67c[_0x5a2812('0x1f')],_0x574f44[_0x5a2812('0x9')]['includeAll']&&(_0xb38f83[_0x5a2812('0x33')]=[{'all':!![]}]),_0xb38f83=_[_0x5a2812('0x27')]({},_0xb38f83,_0x574f44[_0x5a2812('0x6')]),db['ChatOfflineMessage'][_0x5a2812('0x10')](_0xb38f83)[_0x5a2812('0x17')](handleEntityNotFound(_0x46911c,null))[_0x5a2812('0x17')](respondWithResult(_0x46911c,null))[_0x5a2812('0xc')](handleError(_0x46911c,null));},exports[_0x1339c4('0x22')]=function(_0x385236,_0x591109){const _0x5b2853=_0x1339c4;return db[_0x5b2853('0x18')][_0x5b2853('0x22')](_0x385236[_0x5b2853('0x2a')],{})[_0x5b2853('0x17')](respondWithResult(_0x591109,0xc9))['catch'](handleError(_0x591109,null));},exports[_0x1339c4('0x1a')]=function(_0x225cc8,_0x2bba02){const _0x59ab3d=_0x1339c4;return _0x225cc8[_0x59ab3d('0x2a')]['id']&&delete _0x225cc8['body']['id'],db[_0x59ab3d('0x18')][_0x59ab3d('0x10')]({'where':{'id':_0x225cc8[_0x59ab3d('0x7')]['id']}})[_0x59ab3d('0x17')](handleEntityNotFound(_0x2bba02,null))[_0x59ab3d('0x17')](saveUpdates(_0x225cc8['body'],null))[_0x59ab3d('0x17')](respondWithResult(_0x2bba02,null))[_0x59ab3d('0xc')](handleError(_0x2bba02,null));},exports[_0x1339c4('0x3')]=function(_0x43692b,_0x645834){const _0x50a2fd=_0x1339c4;return db[_0x50a2fd('0x18')][_0x50a2fd('0x10')]({'where':{'id':_0x43692b[_0x50a2fd('0x7')]['id']}})[_0x50a2fd('0x17')](handleEntityNotFound(_0x645834,null))['then'](removeEntity(_0x645834,null))[_0x50a2fd('0xc')](handleError(_0x645834,null));},exports[_0x1339c4('0xf')]=function(_0x302300,_0x4e329d){const _0x4f532c=_0x1339c4;return db['ChatOfflineMessage'][_0x4f532c('0xf')]()[_0x4f532c('0x17')](respondWithResult(_0x4e329d,null))[_0x4f532c('0xc')](handleError(_0x4e329d,null));}; \ No newline at end of file +const a104_0x1ea4=['show','sequelize','filters','../../components/parsers/qs','index','key','filter','create','destroy','api','merge','end','like','name','fields','nolimit','limit','then','lodash','set','model','intersection','params','sort','keys','../../config/logger','body','query','ChatOfflineMessage','findOne','update','catch','error','order','../../mysqldb','where','fieldName','findAll','map','status','rows','pick','offset','json','attributes','options','send','length','stack','include','describe','count','type','rawAttributes'];(function(_0x3b43f0,_0x1df8f4){const _0x1ea4cb=function(_0x5c217e){while(--_0x5c217e){_0x3b43f0['push'](_0x3b43f0['shift']());}};_0x1ea4cb(++_0x1df8f4);}(a104_0x1ea4,0x18f));const a104_0x5c21=function(_0x3b43f0,_0x1df8f4){_0x3b43f0=_0x3b43f0-0xd8;let _0x1ea4cb=a104_0x1ea4[_0x3b43f0];return _0x1ea4cb;};const a104_0x28f26c=a104_0x5c21;'use strict';const _=require(a104_0x28f26c(0x10b)),qs=require(a104_0x28f26c(0xfc)),logger=require(a104_0x28f26c(0xdc))(a104_0x28f26c(0x102)),{db}=require(a104_0x28f26c(0xe5)),{Op}=require(a104_0x28f26c(0xfa));function respondWithResult(_0x20b840,_0x171832){return _0x171832=_0x171832||0xc8,function(_0x167816){const _0x293575=a104_0x5c21;if(_0x167816)return _0x20b840['status'](_0x171832)[_0x293575(0xee)](_0x167816);};}function respondWithFilteredResult(_0x5225b2,_0x3dc058){return function(_0x39f464){const _0x761575=a104_0x5c21;if(_0x39f464){const _0x421096=_0x39f464[_0x761575(0xf6)],_0x180e0d=_0x3dc058[_0x761575(0xed)];let _0xf8ac86=_0x3dc058[_0x761575(0xed)]+_0x3dc058[_0x761575(0x109)],_0x297628;return _0xf8ac86>=_0x421096?(_0xf8ac86=_0x421096,_0x297628=0xc8):_0x297628=0xce,_0x5225b2['status'](_0x297628),_0x5225b2[_0x761575(0x10c)]('Content-Range',_0x180e0d+'-'+_0xf8ac86+'/'+_0x421096)['json'](_0x39f464);}return null;};}function saveUpdates(_0x50ff1f){return function(_0x2bdd98){const _0x263c56=a104_0x5c21;if(_0x2bdd98)return _0x2bdd98[_0x263c56(0xe1)](_0x50ff1f)['then'](function(_0x3aa03a){return _0x3aa03a;});return null;};}function removeEntity(_0x2b040e){return function(_0x27198a){const _0x18506a=a104_0x5c21;if(_0x27198a)return _0x27198a['destroy']()[_0x18506a(0x10a)](function(){const _0x4df2a4=_0x18506a;_0x2b040e[_0x4df2a4(0xea)](0xcc)[_0x4df2a4(0x104)]();});};}function handleEntityNotFound(_0x5402aa){return function(_0x4f99fe){return!_0x4f99fe&&_0x5402aa['sendStatus'](0x194),_0x4f99fe;};}function handleError(_0x410889,_0x337be8){return _0x337be8=_0x337be8||0x1f4,function(_0x153e5c){const _0x299cdd=a104_0x5c21;logger[_0x299cdd(0xe3)](_0x153e5c[_0x299cdd(0xf3)]),_0x153e5c[_0x299cdd(0x106)]&&delete _0x153e5c[_0x299cdd(0x106)],_0x410889[_0x299cdd(0xea)](_0x337be8)[_0x299cdd(0xf1)](_0x153e5c);};}exports[a104_0x28f26c(0xfd)]=function(_0x26f7d7,_0x224efc){const _0xde3407=a104_0x28f26c;let _0x571e06={};const _0x3b473e={},_0x1328c5={'count':0x0,'rows':[]},_0x3a69b9=_[_0xde3407(0xe9)](db[_0xde3407(0xdf)][_0xde3407(0xf8)],function(_0xb00b27){const _0x1d023a=_0xde3407;return{'name':_0xb00b27[_0x1d023a(0xe7)],'type':_0xb00b27['type'][_0x1d023a(0xfe)]};});_0x3b473e['model']=_[_0xde3407(0xe9)](_0x3a69b9,'name'),_0x3b473e['query']=_[_0xde3407(0xdb)](_0x26f7d7[_0xde3407(0xde)]),_0x3b473e[_0xde3407(0xfb)]=_[_0xde3407(0xd8)](_0x3b473e[_0xde3407(0x10d)],_0x3b473e[_0xde3407(0xde)]),_0x571e06[_0xde3407(0xef)]=_[_0xde3407(0xd8)](_0x3b473e[_0xde3407(0x10d)],qs[_0xde3407(0x107)](_0x26f7d7[_0xde3407(0xde)][_0xde3407(0x107)])),_0x571e06['attributes']=_0x571e06[_0xde3407(0xef)][_0xde3407(0xf2)]?_0x571e06['attributes']:_0x3b473e[_0xde3407(0x10d)];typeof _0x26f7d7['query'][_0xde3407(0x108)]==='undefined'&&(_0x571e06[_0xde3407(0x109)]=qs[_0xde3407(0x109)](_0x26f7d7[_0xde3407(0xde)][_0xde3407(0x109)]),_0x571e06[_0xde3407(0xed)]=qs[_0xde3407(0xed)](_0x26f7d7['query'][_0xde3407(0xed)]));_0x571e06[_0xde3407(0xe4)]=qs[_0xde3407(0xda)](_0x26f7d7[_0xde3407(0xde)]['sort']),_0x571e06[_0xde3407(0xe6)]=qs[_0xde3407(0xfb)](_[_0xde3407(0xec)](_0x26f7d7[_0xde3407(0xde)],_0x3b473e[_0xde3407(0xfb)]),_0x3a69b9);_0x26f7d7['query'][_0xde3407(0xff)]&&(_0x571e06['where']=_[_0xde3407(0x103)](_0x571e06[_0xde3407(0xe6)],{[Op['or']]:_[_0xde3407(0xe9)](_0x3a69b9,function(_0x3b5fc3){const _0x263abb=_0xde3407;if(_0x3b5fc3[_0x263abb(0xf7)]!=='VIRTUAL'){const _0x3a0061={};return _0x3a0061[_0x3b5fc3[_0x263abb(0x106)]]={[Op[_0x263abb(0x105)]]:'%'+_0x26f7d7['query']['filter']+'%'},_0x3a0061;}})}));_0x571e06=_[_0xde3407(0x103)]({},_0x571e06,_0x26f7d7['options']);const _0x5e141a={'where':_0x571e06['where']};return db[_0xde3407(0xdf)][_0xde3407(0xf6)](_0x5e141a)[_0xde3407(0x10a)](function(_0x251d78){const _0x4de581=_0xde3407;return _0x1328c5[_0x4de581(0xf6)]=_0x251d78,_0x26f7d7['query']['includeAll']&&(_0x571e06[_0x4de581(0xf4)]=[{'all':!![]}]),db[_0x4de581(0xdf)][_0x4de581(0xe8)](_0x571e06);})[_0xde3407(0x10a)](function(_0x26f1ca){const _0x5880d8=_0xde3407;return _0x1328c5[_0x5880d8(0xeb)]=_0x26f1ca,_0x1328c5;})[_0xde3407(0x10a)](respondWithFilteredResult(_0x224efc,_0x571e06))[_0xde3407(0xe2)](handleError(_0x224efc,null));},exports[a104_0x28f26c(0xf9)]=function(_0x5d1e2d,_0x4f6840){const _0x162d0a=a104_0x28f26c;let _0x3c59fd={'raw':!![],'where':{'id':_0x5d1e2d['params']['id']}};const _0x2367f2={};return _0x2367f2[_0x162d0a(0x10d)]=_[_0x162d0a(0xdb)](db[_0x162d0a(0xdf)]['rawAttributes']),_0x2367f2['query']=_[_0x162d0a(0xdb)](_0x5d1e2d[_0x162d0a(0xde)]),_0x2367f2['filters']=_[_0x162d0a(0xd8)](_0x2367f2[_0x162d0a(0x10d)],_0x2367f2['query']),_0x3c59fd[_0x162d0a(0xef)]=_['intersection'](_0x2367f2['model'],qs[_0x162d0a(0x107)](_0x5d1e2d[_0x162d0a(0xde)][_0x162d0a(0x107)])),_0x3c59fd[_0x162d0a(0xef)]=_0x3c59fd[_0x162d0a(0xef)][_0x162d0a(0xf2)]?_0x3c59fd[_0x162d0a(0xef)]:_0x2367f2[_0x162d0a(0x10d)],_0x5d1e2d[_0x162d0a(0xde)]['includeAll']&&(_0x3c59fd[_0x162d0a(0xf4)]=[{'all':!![]}]),_0x3c59fd=_['merge']({},_0x3c59fd,_0x5d1e2d[_0x162d0a(0xf0)]),db[_0x162d0a(0xdf)]['findOne'](_0x3c59fd)[_0x162d0a(0x10a)](handleEntityNotFound(_0x4f6840,null))[_0x162d0a(0x10a)](respondWithResult(_0x4f6840,null))['catch'](handleError(_0x4f6840,null));},exports[a104_0x28f26c(0x100)]=function(_0x476210,_0x2873e6){const _0xc08099=a104_0x28f26c;return db[_0xc08099(0xdf)]['create'](_0x476210[_0xc08099(0xdd)],{})['then'](respondWithResult(_0x2873e6,0xc9))[_0xc08099(0xe2)](handleError(_0x2873e6,null));},exports['update']=function(_0x2c1022,_0x3c5b3d){const _0x539a69=a104_0x28f26c;return _0x2c1022[_0x539a69(0xdd)]['id']&&delete _0x2c1022[_0x539a69(0xdd)]['id'],db[_0x539a69(0xdf)][_0x539a69(0xe0)]({'where':{'id':_0x2c1022['params']['id']}})[_0x539a69(0x10a)](handleEntityNotFound(_0x3c5b3d,null))['then'](saveUpdates(_0x2c1022['body'],null))['then'](respondWithResult(_0x3c5b3d,null))[_0x539a69(0xe2)](handleError(_0x3c5b3d,null));},exports[a104_0x28f26c(0x101)]=function(_0x18699f,_0x19b109){const _0x51baa3=a104_0x28f26c;return db[_0x51baa3(0xdf)]['findOne']({'where':{'id':_0x18699f[_0x51baa3(0xd9)]['id']}})[_0x51baa3(0x10a)](handleEntityNotFound(_0x19b109,null))['then'](removeEntity(_0x19b109,null))[_0x51baa3(0xe2)](handleError(_0x19b109,null));},exports[a104_0x28f26c(0xf5)]=function(_0x5c16da,_0x3eddf4){const _0x213ba2=a104_0x28f26c;return db[_0x213ba2(0xdf)][_0x213ba2(0xf5)]()[_0x213ba2(0x10a)](respondWithResult(_0x3eddf4,null))[_0x213ba2(0xe2)](handleError(_0x3eddf4,null));}; \ No newline at end of file diff --git a/server/api/chatOfflineMessage/chatOfflineMessage.model.js b/server/api/chatOfflineMessage/chatOfflineMessage.model.js index eb3772c..4d5511d 100644 --- a/server/api/chatOfflineMessage/chatOfflineMessage.model.js +++ b/server/api/chatOfflineMessage/chatOfflineMessage.model.js @@ -1 +1 @@ -const a88_0x2142=['utf8mb4','chat_offline_messages','exports','ChatOfflineMessage','utf8mb4_unicode_ci'];(function(_0x25ac66,_0x214283){const _0x24498f=function(_0x8b4360){while(--_0x8b4360){_0x25ac66['push'](_0x25ac66['shift']());}};_0x24498f(++_0x214283);}(a88_0x2142,0xde));const a88_0x2449=function(_0x25ac66,_0x214283){_0x25ac66=_0x25ac66-0x0;let _0x24498f=a88_0x2142[_0x25ac66];return _0x24498f;};const _0x2cd342=a88_0x2449;'use strict';const attributes=require('./chatOfflineMessage.attributes');module[_0x2cd342('0x0')]=function(_0x8b4360){const _0x560d68=_0x2cd342,_0x3c4160=_0x8b4360['define'](_0x560d68('0x1'),attributes,{'tableName':_0x560d68('0x4'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x560d68('0x3'),'collate':_0x560d68('0x2')});return _0x3c4160;}; \ No newline at end of file +const a105_0x560f=['init','./chatOfflineMessage.options','sequelize','ChatOfflineMessage','exports'];(function(_0x130e9e,_0x44f401){const _0x560f32=function(_0x2d32a6){while(--_0x2d32a6){_0x130e9e['push'](_0x130e9e['shift']());}};_0x560f32(++_0x44f401);}(a105_0x560f,0x146));const a105_0x2d32=function(_0x130e9e,_0x44f401){_0x130e9e=_0x130e9e-0x1b8;let _0x560f32=a105_0x560f[_0x130e9e];return _0x560f32;};const a105_0x1fcc30=a105_0x2d32;'use strict';const {Model}=require(a105_0x1fcc30(0x1b9)),{attributes}=require('./chatOfflineMessage.attributes'),{options}=require(a105_0x1fcc30(0x1b8));class ChatOfflineMessage extends Model{}function init(_0x2e43f6,_0xc8750c){const _0xb2e09=a105_0x1fcc30,_0x2f6f81=options(_0x2e43f6),_0x5d6e17=typeof _0xc8750c==='function'?_0xc8750c(_0x2f6f81):_0x2f6f81;return ChatOfflineMessage[_0xb2e09(0x1bc)](attributes,_0x5d6e17),ChatOfflineMessage;}module[a105_0x1fcc30(0x1bb)][a105_0x1fcc30(0x1ba)]=ChatOfflineMessage,module[a105_0x1fcc30(0x1bb)][a105_0x1fcc30(0x1bc)]=init; \ No newline at end of file diff --git a/server/api/chatOfflineMessage/chatOfflineMessage.options.js b/server/api/chatOfflineMessage/chatOfflineMessage.options.js new file mode 100644 index 0000000..25a6ae8 --- /dev/null +++ b/server/api/chatOfflineMessage/chatOfflineMessage.options.js @@ -0,0 +1 @@ +var a106_0x3e47=['exports','utf8mb4_unicode_ci','chat_offline_messages','utf8mb4'];(function(_0x4e771e,_0x39a159){var _0x3e479c=function(_0x4f5f58){while(--_0x4f5f58){_0x4e771e['push'](_0x4e771e['shift']());}};_0x3e479c(++_0x39a159);}(a106_0x3e47,0x18a));var a106_0x4f5f=function(_0x4e771e,_0x39a159){_0x4e771e=_0x4e771e-0xcf;var _0x3e479c=a106_0x3e47[_0x4e771e];return _0x3e479c;};var a106_0x22d375=a106_0x4f5f;function options(_0x1795f5){var _0x15a771=a106_0x4f5f;return{'sequelize':_0x1795f5,'tableName':_0x15a771(0xcf),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x15a771(0xd0),'collate':_0x15a771(0xd2)};}module[a106_0x22d375(0xd1)]['options']=options; \ No newline at end of file diff --git a/server/api/chatOfflineMessage/index.js b/server/api/chatOfflineMessage/index.js index 5d25a4d..9a7a14e 100644 --- a/server/api/chatOfflineMessage/index.js +++ b/server/api/chatOfflineMessage/index.js @@ -1 +1 @@ -const a89_0x25ec=['delete','update','../../components/auth/service','exports','put','index','/describe','/:id','get','destroy','Router','isAuthenticated','describe','show'];(function(_0x3b5798,_0x25ecc5){const _0x22d0e2=function(_0x59ecfb){while(--_0x59ecfb){_0x3b5798['push'](_0x3b5798['shift']());}};_0x22d0e2(++_0x25ecc5);}(a89_0x25ec,0x9d));const a89_0x22d0=function(_0x3b5798,_0x25ecc5){_0x3b5798=_0x3b5798-0x0;let _0x22d0e2=a89_0x25ec[_0x3b5798];return _0x22d0e2;};const _0x39ed7c=a89_0x22d0;'use strict';const express=require('express'),router=express[_0x39ed7c('0x7')](),auth=require(_0x39ed7c('0xd')),controller=require('./chatOfflineMessage.controller');router[_0x39ed7c('0x5')]('/',auth[_0x39ed7c('0x8')](),controller[_0x39ed7c('0x2')]),router[_0x39ed7c('0x5')](_0x39ed7c('0x3'),auth[_0x39ed7c('0x8')](),controller[_0x39ed7c('0x9')]),router[_0x39ed7c('0x5')](_0x39ed7c('0x4'),auth[_0x39ed7c('0x8')](),controller[_0x39ed7c('0xa')]),router['post']('/',auth['isAuthenticated'](),controller['create']),router[_0x39ed7c('0x1')](_0x39ed7c('0x4'),auth[_0x39ed7c('0x8')](),controller[_0x39ed7c('0xc')]),router[_0x39ed7c('0xb')]('/:id',auth[_0x39ed7c('0x8')](),controller[_0x39ed7c('0x6')]),module[_0x39ed7c('0x0')]=router; \ No newline at end of file +const a107_0x41af=['Router','/describe','../../components/auth/service','show','update','get','describe','/:id','create','post','./chatOfflineMessage.controller','exports','isAuthenticated','put'];(function(_0x13ab00,_0xa4abfe){const _0x41af6b=function(_0x571ce0){while(--_0x571ce0){_0x13ab00['push'](_0x13ab00['shift']());}};_0x41af6b(++_0xa4abfe);}(a107_0x41af,0x133));const a107_0x571c=function(_0x13ab00,_0xa4abfe){_0x13ab00=_0x13ab00-0x90;let _0x41af6b=a107_0x41af[_0x13ab00];return _0x41af6b;};const a107_0x4e1381=a107_0x571c;'use strict';const express=require('express'),router=express[a107_0x4e1381(0x91)](),auth=require(a107_0x4e1381(0x93)),controller=require(a107_0x4e1381(0x9b));router['get']('/',auth[a107_0x4e1381(0x9d)](),controller['index']),router['get'](a107_0x4e1381(0x92),auth[a107_0x4e1381(0x9d)](),controller[a107_0x4e1381(0x97)]),router[a107_0x4e1381(0x96)]('/:id',auth[a107_0x4e1381(0x9d)](),controller[a107_0x4e1381(0x94)]),router[a107_0x4e1381(0x9a)]('/',auth[a107_0x4e1381(0x9d)](),controller[a107_0x4e1381(0x99)]),router[a107_0x4e1381(0x90)]('/:id',auth['isAuthenticated'](),controller[a107_0x4e1381(0x95)]),router['delete'](a107_0x4e1381(0x98),auth[a107_0x4e1381(0x9d)](),controller['destroy']),module[a107_0x4e1381(0x9c)]=router; \ No newline at end of file diff --git a/server/api/chatProactiveAction/chatProactiveAction.attributes.js b/server/api/chatProactiveAction/chatProactiveAction.attributes.js index 370fe9a..b058dcc 100644 --- a/server/api/chatProactiveAction/chatProactiveAction.attributes.js +++ b/server/api/chatProactiveAction/chatProactiveAction.attributes.js @@ -1 +1 @@ -const a90_0x11f5=['exports','STRING','timeout','INTEGER','mouseOver'];(function(_0x2fe964,_0x11f583){const _0x186822=function(_0x5a64ed){while(--_0x5a64ed){_0x2fe964['push'](_0x2fe964['shift']());}};_0x186822(++_0x11f583);}(a90_0x11f5,0x100));const a90_0x1868=function(_0x2fe964,_0x11f583){_0x2fe964=_0x2fe964-0x0;let _0x186822=a90_0x11f5[_0x2fe964];return _0x186822;};const _0x8fe12f=a90_0x1868;'use strict';const Sequelize=require('sequelize');module[_0x8fe12f('0x4')]={'name':{'type':Sequelize['STRING'],'allowNull':![]},'type':{'type':Sequelize['ENUM'](_0x8fe12f('0x3'),_0x8fe12f('0x1')),'defaultValue':'mouseOver'},'selector':{'type':Sequelize[_0x8fe12f('0x0')]},'timeout':{'type':Sequelize[_0x8fe12f('0x2')]}}; \ No newline at end of file +const a108_0x3de9=['ENUM','sequelize','timeout','exports','INTEGER','STRING'];(function(_0x252a69,_0x159e25){const _0x3de9f8=function(_0x503a3a){while(--_0x503a3a){_0x252a69['push'](_0x252a69['shift']());}};_0x3de9f8(++_0x159e25);}(a108_0x3de9,0x12f));const a108_0x503a=function(_0x252a69,_0x159e25){_0x252a69=_0x252a69-0x102;let _0x3de9f8=a108_0x3de9[_0x252a69];return _0x3de9f8;};const a108_0x1f6b41=a108_0x503a;'use strict';const {DataTypes}=require(a108_0x1f6b41(0x106)),attributes={'name':{'type':DataTypes[a108_0x1f6b41(0x104)],'allowNull':![]},'type':{'type':DataTypes[a108_0x1f6b41(0x105)]('mouseOver',a108_0x1f6b41(0x107)),'defaultValue':'mouseOver'},'selector':{'type':DataTypes[a108_0x1f6b41(0x104)]},'timeout':{'type':DataTypes[a108_0x1f6b41(0x103)]}};module[a108_0x1f6b41(0x102)]['attributes']=attributes; \ No newline at end of file diff --git a/server/api/chatProactiveAction/chatProactiveAction.controller.js b/server/api/chatProactiveAction/chatProactiveAction.controller.js index dbbb31f..4135c0a 100644 --- a/server/api/chatProactiveAction/chatProactiveAction.controller.js +++ b/server/api/chatProactiveAction/chatProactiveAction.controller.js @@ -1 +1 @@ -const a91_0x2281=['body','sendStatus','stack','../../mysqldb','keys','model','fields','send','error','ChatProactiveAction','attributes','update','api','status','create','end','then','filters','destroy','json','rawAttributes','params','lodash','query','name','../../components/parsers/qs','findOne','catch','length','intersection'];(function(_0x58f2d9,_0x22819a){const _0x2fcb4a=function(_0x34423b){while(--_0x34423b){_0x58f2d9['push'](_0x58f2d9['shift']());}};_0x2fcb4a(++_0x22819a);}(a91_0x2281,0x15b));const a91_0x2fcb=function(_0x58f2d9,_0x22819a){_0x58f2d9=_0x58f2d9-0x0;let _0x2fcb4a=a91_0x2281[_0x58f2d9];return _0x2fcb4a;};const _0x515440=a91_0x2fcb;'use strict';const _=require(_0x515440('0x5')),qs=require(_0x515440('0x8')),logger=require('../../config/logger')(_0x515440('0x19')),db=require(_0x515440('0x10'))['db'];function respondWithResult(_0x34423b,_0x5637d9){return _0x5637d9=_0x5637d9||0xc8,function(_0x5f2612){const _0x23d0d1=a91_0x2fcb;if(_0x5f2612)return _0x34423b[_0x23d0d1('0x1a')](_0x5637d9)[_0x23d0d1('0x2')](_0x5f2612);};}function saveUpdates(_0x326e22){return function(_0xf84254){const _0x22ab1e=a91_0x2fcb;if(_0xf84254)return _0xf84254[_0x22ab1e('0x18')](_0x326e22)[_0x22ab1e('0x1d')](function(_0x1356b5){return _0x1356b5;});return null;};}function removeEntity(_0x45ecc1){return function(_0xb681c6){const _0x5dcebb=a91_0x2fcb;if(_0xb681c6)return _0xb681c6['destroy']()[_0x5dcebb('0x1d')](function(){const _0x3b5bcc=_0x5dcebb;_0x45ecc1[_0x3b5bcc('0x1a')](0xcc)[_0x3b5bcc('0x1c')]();});};}function handleEntityNotFound(_0x1a27ef){return function(_0x5f47c4){const _0x10357d=a91_0x2fcb;return!_0x5f47c4&&_0x1a27ef[_0x10357d('0xe')](0x194),_0x5f47c4;};}function handleError(_0x888011,_0x5a82c9){return _0x5a82c9=_0x5a82c9||0x1f4,function(_0x3a562f){const _0x20beff=a91_0x2fcb;logger[_0x20beff('0x15')](_0x3a562f[_0x20beff('0xf')]),_0x3a562f[_0x20beff('0x7')]&&delete _0x3a562f[_0x20beff('0x7')],_0x888011['status'](_0x5a82c9)[_0x20beff('0x14')](_0x3a562f);};}exports['show']=function(_0x41791f,_0x90546a){const _0x5e2a59=_0x515440;let _0xb19235={'raw':!![],'where':{'id':_0x41791f[_0x5e2a59('0x4')]['id']}};const _0x5b2dbd={};return _0x5b2dbd[_0x5e2a59('0x12')]=_[_0x5e2a59('0x11')](db[_0x5e2a59('0x16')][_0x5e2a59('0x3')]),_0x5b2dbd[_0x5e2a59('0x6')]=_[_0x5e2a59('0x11')](_0x41791f[_0x5e2a59('0x6')]),_0x5b2dbd[_0x5e2a59('0x0')]=_[_0x5e2a59('0xc')](_0x5b2dbd[_0x5e2a59('0x12')],_0x5b2dbd['query']),_0xb19235[_0x5e2a59('0x17')]=_['intersection'](_0x5b2dbd[_0x5e2a59('0x12')],qs[_0x5e2a59('0x13')](_0x41791f['query'][_0x5e2a59('0x13')])),_0xb19235[_0x5e2a59('0x17')]=_0xb19235[_0x5e2a59('0x17')][_0x5e2a59('0xb')]?_0xb19235[_0x5e2a59('0x17')]:_0x5b2dbd[_0x5e2a59('0x12')],_0x41791f[_0x5e2a59('0x6')]['includeAll']&&(_0xb19235['include']=[{'all':!![]}]),_0xb19235=_['merge']({},_0xb19235,_0x41791f['options']),db['ChatProactiveAction'][_0x5e2a59('0x9')](_0xb19235)['then'](handleEntityNotFound(_0x90546a,null))[_0x5e2a59('0x1d')](respondWithResult(_0x90546a,null))['catch'](handleError(_0x90546a,null));},exports[_0x515440('0x1b')]=function(_0x235d97,_0x592374){const _0xbd4a4e=_0x515440;return db[_0xbd4a4e('0x16')]['create'](_0x235d97[_0xbd4a4e('0xd')],{})[_0xbd4a4e('0x1d')](respondWithResult(_0x592374,0xc9))[_0xbd4a4e('0xa')](handleError(_0x592374,null));},exports[_0x515440('0x18')]=function(_0x12096d,_0x5dbf36){const _0x23d71c=_0x515440;return _0x12096d['body']['id']&&delete _0x12096d[_0x23d71c('0xd')]['id'],db[_0x23d71c('0x16')][_0x23d71c('0x9')]({'where':{'id':_0x12096d[_0x23d71c('0x4')]['id']}})['then'](handleEntityNotFound(_0x5dbf36,null))[_0x23d71c('0x1d')](saveUpdates(_0x12096d[_0x23d71c('0xd')],null))[_0x23d71c('0x1d')](respondWithResult(_0x5dbf36,null))['catch'](handleError(_0x5dbf36,null));},exports[_0x515440('0x1')]=function(_0x4d6b76,_0x2428eb){const _0x1471d9=_0x515440;return db['ChatProactiveAction']['findOne']({'where':{'id':_0x4d6b76[_0x1471d9('0x4')]['id']}})[_0x1471d9('0x1d')](handleEntityNotFound(_0x2428eb,null))[_0x1471d9('0x1d')](removeEntity(_0x2428eb,null))[_0x1471d9('0xa')](handleError(_0x2428eb,null));}; \ No newline at end of file +const a109_0x502f=['length','filters','model','findOne','api','end','../../components/parsers/qs','intersection','includeAll','../../mysqldb','merge','update','show','sendStatus','catch','destroy','include','error','name','rawAttributes','attributes','stack','then','keys','ChatProactiveAction','params','body','status','fields','query','lodash','json'];(function(_0x234a4d,_0x38c142){const _0x502f79=function(_0x396d80){while(--_0x396d80){_0x234a4d['push'](_0x234a4d['shift']());}};_0x502f79(++_0x38c142);}(a109_0x502f,0x94));const a109_0x396d=function(_0x234a4d,_0x38c142){_0x234a4d=_0x234a4d-0x19e;let _0x502f79=a109_0x502f[_0x234a4d];return _0x502f79;};const a109_0x19bbe1=a109_0x396d;'use strict';const _=require(a109_0x19bbe1(0x1a8)),qs=require(a109_0x19bbe1(0x1b0)),logger=require('../../config/logger')(a109_0x19bbe1(0x1ae)),{db}=require(a109_0x19bbe1(0x1b3));function respondWithResult(_0x178806,_0x16da5a){return _0x16da5a=_0x16da5a||0xc8,function(_0x331146){const _0x1ff3d6=a109_0x396d;if(_0x331146)return _0x178806[_0x1ff3d6(0x1a5)](_0x16da5a)[_0x1ff3d6(0x1a9)](_0x331146);};}function saveUpdates(_0xd4f09e){return function(_0x2007d2){const _0x3a7ea5=a109_0x396d;if(_0x2007d2)return _0x2007d2[_0x3a7ea5(0x1b5)](_0xd4f09e)['then'](function(_0xf2fbe3){return _0xf2fbe3;});return null;};}function removeEntity(_0x22db5d){return function(_0x4a6daf){const _0x10c746=a109_0x396d;if(_0x4a6daf)return _0x4a6daf[_0x10c746(0x1b9)]()[_0x10c746(0x1a0)](function(){const _0x1b1801=_0x10c746;_0x22db5d[_0x1b1801(0x1a5)](0xcc)[_0x1b1801(0x1af)]();});};}function handleEntityNotFound(_0x3c5ca2){return function(_0x2e7d25){const _0x3af9fe=a109_0x396d;return!_0x2e7d25&&_0x3c5ca2[_0x3af9fe(0x1b7)](0x194),_0x2e7d25;};}function handleError(_0x2acc28,_0x50c686){return _0x50c686=_0x50c686||0x1f4,function(_0x3580e8){const _0x35c346=a109_0x396d;logger[_0x35c346(0x1bb)](_0x3580e8[_0x35c346(0x19f)]),_0x3580e8['name']&&delete _0x3580e8[_0x35c346(0x1bc)],_0x2acc28[_0x35c346(0x1a5)](_0x50c686)['send'](_0x3580e8);};}exports[a109_0x19bbe1(0x1b6)]=function(_0x69b5e1,_0x45ead0){const _0x12ca68=a109_0x19bbe1;let _0x2c114b={'raw':!![],'where':{'id':_0x69b5e1[_0x12ca68(0x1a3)]['id']}};const _0x20be8d={};return _0x20be8d[_0x12ca68(0x1ac)]=_[_0x12ca68(0x1a1)](db[_0x12ca68(0x1a2)][_0x12ca68(0x1bd)]),_0x20be8d[_0x12ca68(0x1a7)]=_[_0x12ca68(0x1a1)](_0x69b5e1[_0x12ca68(0x1a7)]),_0x20be8d[_0x12ca68(0x1ab)]=_[_0x12ca68(0x1b1)](_0x20be8d[_0x12ca68(0x1ac)],_0x20be8d['query']),_0x2c114b[_0x12ca68(0x19e)]=_[_0x12ca68(0x1b1)](_0x20be8d[_0x12ca68(0x1ac)],qs[_0x12ca68(0x1a6)](_0x69b5e1[_0x12ca68(0x1a7)]['fields'])),_0x2c114b[_0x12ca68(0x19e)]=_0x2c114b[_0x12ca68(0x19e)][_0x12ca68(0x1aa)]?_0x2c114b[_0x12ca68(0x19e)]:_0x20be8d[_0x12ca68(0x1ac)],_0x69b5e1[_0x12ca68(0x1a7)][_0x12ca68(0x1b2)]&&(_0x2c114b[_0x12ca68(0x1ba)]=[{'all':!![]}]),_0x2c114b=_[_0x12ca68(0x1b4)]({},_0x2c114b,_0x69b5e1['options']),db[_0x12ca68(0x1a2)]['findOne'](_0x2c114b)[_0x12ca68(0x1a0)](handleEntityNotFound(_0x45ead0,null))[_0x12ca68(0x1a0)](respondWithResult(_0x45ead0,null))[_0x12ca68(0x1b8)](handleError(_0x45ead0,null));},exports['create']=function(_0x3b3382,_0x2d4e21){const _0x2140a0=a109_0x19bbe1;return db[_0x2140a0(0x1a2)]['create'](_0x3b3382['body'],{})[_0x2140a0(0x1a0)](respondWithResult(_0x2d4e21,0xc9))[_0x2140a0(0x1b8)](handleError(_0x2d4e21,null));},exports['update']=function(_0x363ed4,_0x4eb1c6){const _0x4a0968=a109_0x19bbe1;return _0x363ed4[_0x4a0968(0x1a4)]['id']&&delete _0x363ed4[_0x4a0968(0x1a4)]['id'],db[_0x4a0968(0x1a2)]['findOne']({'where':{'id':_0x363ed4[_0x4a0968(0x1a3)]['id']}})[_0x4a0968(0x1a0)](handleEntityNotFound(_0x4eb1c6,null))['then'](saveUpdates(_0x363ed4[_0x4a0968(0x1a4)],null))[_0x4a0968(0x1a0)](respondWithResult(_0x4eb1c6,null))['catch'](handleError(_0x4eb1c6,null));},exports[a109_0x19bbe1(0x1b9)]=function(_0x22a996,_0x130f8c){const _0xfce1e6=a109_0x19bbe1;return db[_0xfce1e6(0x1a2)][_0xfce1e6(0x1ad)]({'where':{'id':_0x22a996['params']['id']}})['then'](handleEntityNotFound(_0x130f8c,null))['then'](removeEntity(_0x130f8c,null))['catch'](handleError(_0x130f8c,null));}; \ No newline at end of file diff --git a/server/api/chatProactiveAction/chatProactiveAction.model.js b/server/api/chatProactiveAction/chatProactiveAction.model.js index 3744fa3..c2c5e63 100644 --- a/server/api/chatProactiveAction/chatProactiveAction.model.js +++ b/server/api/chatProactiveAction/chatProactiveAction.model.js @@ -1 +1 @@ -const a92_0x11f1=['./chatProactiveAction.attributes','chat_proactive_actions','ChatProactiveAction'];(function(_0x2beaf8,_0x11f156){const _0x5d8213=function(_0x3cbbf2){while(--_0x3cbbf2){_0x2beaf8['push'](_0x2beaf8['shift']());}};_0x5d8213(++_0x11f156);}(a92_0x11f1,0x184));const a92_0x5d82=function(_0x2beaf8,_0x11f156){_0x2beaf8=_0x2beaf8-0x0;let _0x5d8213=a92_0x11f1[_0x2beaf8];return _0x5d8213;};const _0x5cfef4=a92_0x5d82;'use strict';const attributes=require(_0x5cfef4('0x2'));module['exports']=function(_0x3cbbf2){const _0x27f903=_0x5cfef4,_0x32fbff=_0x3cbbf2['define'](_0x27f903('0x1'),attributes,{'tableName':_0x27f903('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x32fbff;}; \ No newline at end of file +const a110_0x4aba=['exports','init'];(function(_0xa0d680,_0xc2ead7){const _0x4abaf3=function(_0x1b2715){while(--_0x1b2715){_0xa0d680['push'](_0xa0d680['shift']());}};_0x4abaf3(++_0xc2ead7);}(a110_0x4aba,0x158));const a110_0x1b27=function(_0xa0d680,_0xc2ead7){_0xa0d680=_0xa0d680-0x1a8;let _0x4abaf3=a110_0x4aba[_0xa0d680];return _0x4abaf3;};const a110_0x5f21fb=a110_0x1b27;'use strict';const {Model}=require('sequelize'),{attributes}=require('./chatProactiveAction.attributes'),{options}=require('./chatProactiveAction.options');class ChatProactiveAction extends Model{}function init(_0x34358a,_0x365044){const _0x2b59a6=a110_0x1b27,_0x1b8de1=options(_0x34358a),_0x4b92ba=typeof _0x365044==='function'?_0x365044(_0x1b8de1):_0x1b8de1;return ChatProactiveAction[_0x2b59a6(0x1a9)](attributes,_0x4b92ba),ChatProactiveAction;}module[a110_0x5f21fb(0x1a8)]['ChatProactiveAction']=ChatProactiveAction,module[a110_0x5f21fb(0x1a8)]['init']=init; \ No newline at end of file diff --git a/server/api/chatProactiveAction/chatProactiveAction.options.js b/server/api/chatProactiveAction/chatProactiveAction.options.js new file mode 100644 index 0000000..0491ac6 --- /dev/null +++ b/server/api/chatProactiveAction/chatProactiveAction.options.js @@ -0,0 +1 @@ +var a111_0x2c6c=['chat_proactive_actions'];(function(_0x531aed,_0x476c01){var _0x2c6c01=function(_0x8c029f){while(--_0x8c029f){_0x531aed['push'](_0x531aed['shift']());}};_0x2c6c01(++_0x476c01);}(a111_0x2c6c,0x1d4));var a111_0x8c02=function(_0x531aed,_0x476c01){_0x531aed=_0x531aed-0x1d5;var _0x2c6c01=a111_0x2c6c[_0x531aed];return _0x2c6c01;};function options(_0x3d5fab){var _0x2b0e97=a111_0x8c02;return{'sequelize':_0x3d5fab,'tableName':_0x2b0e97(0x1d5),'paranoid':![],'indexes':[],'timestamps':!![]};}module['exports']['options']=options; \ No newline at end of file diff --git a/server/api/chatProactiveAction/index.js b/server/api/chatProactiveAction/index.js index 20cf317..11f3193 100644 --- a/server/api/chatProactiveAction/index.js +++ b/server/api/chatProactiveAction/index.js @@ -1 +1 @@ -const a93_0x4f8d=['/:id','./chatProactiveAction.controller','update','create','Router','put','isAuthenticated','express','show','../../components/auth/service','exports'];(function(_0x21e9fa,_0x4f8df1){const _0x1a12d3=function(_0x2e960e){while(--_0x2e960e){_0x21e9fa['push'](_0x21e9fa['shift']());}};_0x1a12d3(++_0x4f8df1);}(a93_0x4f8d,0x7c));const a93_0x1a12=function(_0x21e9fa,_0x4f8df1){_0x21e9fa=_0x21e9fa-0x0;let _0x1a12d3=a93_0x4f8d[_0x21e9fa];return _0x1a12d3;};const _0x56890c=a93_0x1a12;'use strict';const express=require(_0x56890c('0x4')),router=express[_0x56890c('0x1')](),auth=require(_0x56890c('0x6')),controller=require(_0x56890c('0x9'));router['get']('/:id',auth[_0x56890c('0x3')](),controller[_0x56890c('0x5')]),router['post']('/',auth[_0x56890c('0x3')](),controller[_0x56890c('0x0')]),router[_0x56890c('0x2')](_0x56890c('0x8'),auth[_0x56890c('0x3')](),controller[_0x56890c('0xa')]),router['delete'](_0x56890c('0x8'),auth[_0x56890c('0x3')](),controller['destroy']),module[_0x56890c('0x7')]=router; \ No newline at end of file +const a112_0x29a3=['/:id','../../components/auth/service','./chatProactiveAction.controller','destroy','Router','isAuthenticated','get','create','exports','put','express'];(function(_0x2d22e8,_0x2f61bc){const _0x29a3b3=function(_0x4b5ef0){while(--_0x4b5ef0){_0x2d22e8['push'](_0x2d22e8['shift']());}};_0x29a3b3(++_0x2f61bc);}(a112_0x29a3,0x103));const a112_0x4b5e=function(_0x2d22e8,_0x2f61bc){_0x2d22e8=_0x2d22e8-0x15e;let _0x29a3b3=a112_0x29a3[_0x2d22e8];return _0x29a3b3;};const a112_0x2a2b90=a112_0x4b5e;'use strict';const express=require(a112_0x2a2b90(0x162)),router=express[a112_0x2a2b90(0x167)](),auth=require(a112_0x2a2b90(0x164)),controller=require(a112_0x2a2b90(0x165));router[a112_0x2a2b90(0x15e)](a112_0x2a2b90(0x163),auth[a112_0x2a2b90(0x168)](),controller['show']),router['post']('/',auth[a112_0x2a2b90(0x168)](),controller[a112_0x2a2b90(0x15f)]),router[a112_0x2a2b90(0x161)](a112_0x2a2b90(0x163),auth[a112_0x2a2b90(0x168)](),controller['update']),router['delete'](a112_0x2a2b90(0x163),auth[a112_0x2a2b90(0x168)](),controller[a112_0x2a2b90(0x166)]),module[a112_0x2a2b90(0x160)]=router; \ No newline at end of file diff --git a/server/api/chatQueue/chatQueue.attributes.js b/server/api/chatQueue/chatQueue.attributes.js index 8439940..48c4281 100644 --- a/server/api/chatQueue/chatQueue.attributes.js +++ b/server/api/chatQueue/chatQueue.attributes.js @@ -1 +1 @@ -const a94_0x5527=['STRING','ENUM','INTEGER','exports','name','sequelize','roundrobin'];(function(_0x18b777,_0x552727){const _0x30de98=function(_0x30e546){while(--_0x30e546){_0x18b777['push'](_0x18b777['shift']());}};_0x30de98(++_0x552727);}(a94_0x5527,0xf7));const a94_0x30de=function(_0x18b777,_0x552727){_0x18b777=_0x18b777-0x0;let _0x30de98=a94_0x5527[_0x18b777];return _0x30de98;};const _0x4ac89a=a94_0x30de;'use strict';const Sequelize=require(_0x4ac89a('0x3'));module[_0x4ac89a('0x1')]={'name':{'type':Sequelize[_0x4ac89a('0x5')],'unique':_0x4ac89a('0x2'),'allowNull':![],'validate':{'notEmpty':!![],'is':/^[A-Za-z0-9._]+$/i}},'description':{'type':Sequelize[_0x4ac89a('0x5')]},'timeout':{'type':Sequelize[_0x4ac89a('0x0')],'validate':{'min':0x1,'max':0x20c49b}},'strategy':{'type':Sequelize[_0x4ac89a('0x6')]('rrmemory','beepall',_0x4ac89a('0x4'))}}; \ No newline at end of file +const a113_0x15d0=['name','STRING','rrmemory','beepall'];(function(_0x50e615,_0x5362fe){const _0x15d0fd=function(_0x52e6b8){while(--_0x52e6b8){_0x50e615['push'](_0x50e615['shift']());}};_0x15d0fd(++_0x5362fe);}(a113_0x15d0,0x1a5));const a113_0x52e6=function(_0x50e615,_0x5362fe){_0x50e615=_0x50e615-0xae;let _0x15d0fd=a113_0x15d0[_0x50e615];return _0x15d0fd;};const a113_0xa662de=a113_0x52e6;'use strict';const {DataTypes}=require('sequelize'),attributes={'name':{'type':DataTypes[a113_0xa662de(0xae)],'unique':a113_0xa662de(0xb1),'allowNull':![],'validate':{'notEmpty':!![],'is':/^[A-Za-z0-9._]+$/i}},'description':{'type':DataTypes[a113_0xa662de(0xae)]},'timeout':{'type':DataTypes['INTEGER'],'validate':{'min':0x1,'max':0x20c49b}},'strategy':{'type':DataTypes['ENUM'](a113_0xa662de(0xaf),a113_0xa662de(0xb0),'roundrobin')}};module['exports']['attributes']=attributes; \ No newline at end of file diff --git a/server/api/chatQueue/chatQueue.controller.js b/server/api/chatQueue/chatQueue.controller.js index d88ed3d..533b386 100644 --- a/server/api/chatQueue/chatQueue.controller.js +++ b/server/api/chatQueue/chatQueue.controller.js @@ -1 +1 @@ -const a95_0x133f=['ut.TeamId\x20=\x20tq.TeamId','findAndCountAll','isEmpty','options','createdAt','VIRTUAL','UserId','clone','lodash','userChatQueue:remove','length','SIP','merge','where','destroy','end','voicePause','count','SELECT','emit','set','describe','attributes','isArray','filter','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','findAll','intersection','ChatQueues','keys','union','addTeams','name','Content-Range','findOne','agent','catch','updatedAt','offset','includeAll','query','transaction','util','Team','flatMap','field','removeAgents','nolimit','every','ids','sort','rawAttributes','forEach','includes','from','pick','index','toString','show','status','key','../../config/logger','fields','update','params','model','format','order','addAgents','interface','online','like','UserProfileResource','map','json','sendStatus','findOrCreate','role','getMembers','value','getTeams','squel','rows','autoAssociation','create','compact','then','userChatQueue:save','join','../../rediscache','sequelize','removeTeams','undefined','../../mysqldb','ChatQueueId\x20=\x20?','chatPause','User','get','all','body','Agents','filters','include','limit','ChatQueue','error','UserChatQueue','select','getAgents'];(function(_0xb0280f,_0x133fad){const _0x35dce9=function(_0x25ad60){while(--_0x25ad60){_0xb0280f['push'](_0xb0280f['shift']());}};_0x35dce9(++_0x133fad);}(a95_0x133f,0x17c));const a95_0x35dc=function(_0xb0280f,_0x133fad){_0xb0280f=_0xb0280f-0x0;let _0x35dce9=a95_0x133f[_0xb0280f];return _0x35dce9;};const _0x5c46b2=a95_0x35dc;'use strict';const util=require(_0x5c46b2('0x62')),_=require(_0x5c46b2('0x40')),squel=require(_0x5c46b2('0x1c')),qs=require('../../components/parsers/qs'),logger=require(_0x5c46b2('0x8'))('api'),{getSocket}=require(_0x5c46b2('0x24')),db=require(_0x5c46b2('0x28'))['db'],{Op,QueryTypes}=require(_0x5c46b2('0x25')),socket=getSocket();require('./chatQueue.socket')['register'](socket);function respondWithStatusCode(_0x25ad60,_0x1483e8){return _0x1483e8=_0x1483e8||0xcc,function(_0x4db11e){const _0x441b4f=a95_0x35dc;if(_0x4db11e)return _0x25ad60[_0x441b4f('0x16')](_0x1483e8);return _0x25ad60['status'](_0x1483e8)[_0x441b4f('0x47')]();};}function respondWithResult(_0x5e2000,_0x4d5614){return _0x4d5614=_0x4d5614||0xc8,function(_0x50a1a8){const _0x5ecb76=a95_0x35dc;if(_0x50a1a8)return _0x5e2000[_0x5ecb76('0x6')](_0x4d5614)['json'](_0x50a1a8);};}function respondWithFilteredResult(_0x370b4a,_0x10eeb7){return function(_0x483e41){const _0xe015c5=a95_0x35dc;if(_0x483e41){const _0x5a0ddc=_0x483e41[_0xe015c5('0x49')],_0x54d7f3=_0x10eeb7[_0xe015c5('0x5e')];let _0x56ecf6=_0x10eeb7[_0xe015c5('0x5e')]+_0x10eeb7[_0xe015c5('0x32')],_0x56fa78;return _0x56ecf6>=_0x5a0ddc?(_0x56ecf6=_0x5a0ddc,_0x56fa78=0xc8):_0x56fa78=0xce,_0x370b4a[_0xe015c5('0x6')](_0x56fa78),_0x370b4a[_0xe015c5('0x4c')](_0xe015c5('0x59'),_0x54d7f3+'-'+_0x56ecf6+'/'+_0x5a0ddc)[_0xe015c5('0x15')](_0x483e41);}return null;};}function saveUpdates(_0x1b448d){return function(_0x4edfd5){const _0xe1ba5f=a95_0x35dc;if(_0x4edfd5)return _0x4edfd5[_0xe1ba5f('0xa')](_0x1b448d)[_0xe1ba5f('0x21')](function(_0x31d16f){return _0x31d16f;});return null;};}function removeEntity(_0xe5ee94){return function(_0x2896a8){const _0x4b3fa3=a95_0x35dc;if(_0x2896a8)return _0x2896a8['destroy']()['then'](function(){const _0x196c28=a95_0x35dc,_0x4d7f52=_0x2896a8[_0x196c28('0x2c')]({'plain':!![]}),_0x5a711a=_0x196c28('0x54');return db[_0x196c28('0x13')][_0x196c28('0x46')]({'where':{'type':_0x5a711a,'resourceId':_0x4d7f52['id']}})[_0x196c28('0x21')](function(){return _0x2896a8;});})[_0x4b3fa3('0x21')](function(){const _0x1d76e6=_0x4b3fa3;_0xe5ee94[_0x1d76e6('0x6')](0xcc)['end']();});};}function handleEntityNotFound(_0x3344ae){return function(_0x2be137){return!_0x2be137&&_0x3344ae['sendStatus'](0x194),_0x2be137;};}function handleError(_0x5a7ed8,_0x3a09d1){return _0x3a09d1=_0x3a09d1||0x1f4,function(_0x1e6af4){const _0x121f31=a95_0x35dc;logger[_0x121f31('0x34')](_0x1e6af4['stack']),_0x1e6af4[_0x121f31('0x58')]&&delete _0x1e6af4[_0x121f31('0x58')],_0x5a7ed8['status'](_0x3a09d1)['send'](_0x1e6af4);};}exports[_0x5c46b2('0x3')]=function(_0x5021e9,_0x119865){const _0x3668ca=_0x5c46b2;let _0x49da30={};const _0xfd29fb={},_0xa0bc88={'count':0x0,'rows':[]},_0x2a8c9e=_[_0x3668ca('0x14')](db[_0x3668ca('0x33')]['rawAttributes'],function(_0xa6d6b){const _0x140dde=_0x3668ca;return{'name':_0xa6d6b['fieldName'],'type':_0xa6d6b['type'][_0x140dde('0x7')]};});_0xfd29fb[_0x3668ca('0xc')]=_[_0x3668ca('0x14')](_0x2a8c9e,'name'),_0xfd29fb['query']=_['keys'](_0x5021e9[_0x3668ca('0x60')]),_0xfd29fb[_0x3668ca('0x30')]=_[_0x3668ca('0x53')](_0xfd29fb['model'],_0xfd29fb[_0x3668ca('0x60')]),_0x49da30['attributes']=_[_0x3668ca('0x53')](_0xfd29fb['model'],qs[_0x3668ca('0x9')](_0x5021e9[_0x3668ca('0x60')][_0x3668ca('0x9')])),_0x49da30[_0x3668ca('0x4e')]=_0x49da30[_0x3668ca('0x4e')][_0x3668ca('0x42')]?_0x49da30['attributes']:_0xfd29fb[_0x3668ca('0xc')];typeof _0x5021e9[_0x3668ca('0x60')]['nolimit']===_0x3668ca('0x27')&&(_0x49da30[_0x3668ca('0x32')]=qs[_0x3668ca('0x32')](_0x5021e9[_0x3668ca('0x60')][_0x3668ca('0x32')]),_0x49da30[_0x3668ca('0x5e')]=qs[_0x3668ca('0x5e')](_0x5021e9[_0x3668ca('0x60')][_0x3668ca('0x5e')]));_0x49da30[_0x3668ca('0xe')]=qs[_0x3668ca('0x6a')](_0x5021e9[_0x3668ca('0x60')][_0x3668ca('0x6a')]),_0x49da30[_0x3668ca('0x45')]=qs['filters'](_[_0x3668ca('0x2')](_0x5021e9[_0x3668ca('0x60')],_0xfd29fb[_0x3668ca('0x30')]),_0x2a8c9e);_0x5021e9[_0x3668ca('0x60')][_0x3668ca('0x50')]&&(_0x49da30['where']=_[_0x3668ca('0x44')](_0x49da30['where'],{[Op['or']]:_[_0x3668ca('0x14')](_0x2a8c9e,function(_0x66fa3){const _0x2623a0=_0x3668ca;if(_0x66fa3['type']!==_0x2623a0('0x3d')){const _0x1a2276={};return _0x1a2276[_0x66fa3[_0x2623a0('0x58')]]={[Op[_0x2623a0('0x12')]]:'%'+_0x5021e9[_0x2623a0('0x60')]['filter']+'%'},_0x1a2276;}})}));_0x49da30=_['merge']({},_0x49da30,_0x5021e9[_0x3668ca('0x3b')]);const _0x344706={'where':_0x49da30['where']};return db[_0x3668ca('0x33')][_0x3668ca('0x49')](_0x344706)[_0x3668ca('0x21')](function(_0x5b42a7){const _0x5a3767=_0x3668ca;return _0xa0bc88[_0x5a3767('0x49')]=_0x5b42a7,_0x5021e9[_0x5a3767('0x60')][_0x5a3767('0x5f')]&&(_0x49da30[_0x5a3767('0x31')]=[{'all':!![]}]),db[_0x5a3767('0x33')][_0x5a3767('0x52')](_0x49da30);})[_0x3668ca('0x21')](function(_0x58fbc9){const _0x386e98=_0x3668ca;return _0xa0bc88[_0x386e98('0x1d')]=_0x58fbc9,_0xa0bc88;})[_0x3668ca('0x21')](respondWithFilteredResult(_0x119865,_0x49da30))[_0x3668ca('0x5c')](handleError(_0x119865,null));},exports[_0x5c46b2('0x5')]=function(_0x81a9d4,_0x1fcd11){const _0x243e36=_0x5c46b2;let _0x3911c3={'raw':!![],'where':{'id':_0x81a9d4[_0x243e36('0xb')]['id']}};const _0x2fd6f0={};return _0x2fd6f0['model']=_[_0x243e36('0x55')](db[_0x243e36('0x33')][_0x243e36('0x6b')]),_0x2fd6f0[_0x243e36('0x60')]=_['keys'](_0x81a9d4[_0x243e36('0x60')]),_0x2fd6f0[_0x243e36('0x30')]=_['intersection'](_0x2fd6f0[_0x243e36('0xc')],_0x2fd6f0[_0x243e36('0x60')]),_0x3911c3[_0x243e36('0x4e')]=_['intersection'](_0x2fd6f0[_0x243e36('0xc')],qs[_0x243e36('0x9')](_0x81a9d4[_0x243e36('0x60')]['fields'])),_0x3911c3[_0x243e36('0x4e')]=_0x3911c3[_0x243e36('0x4e')][_0x243e36('0x42')]?_0x3911c3[_0x243e36('0x4e')]:_0x2fd6f0['model'],_0x81a9d4[_0x243e36('0x60')][_0x243e36('0x5f')]&&(_0x3911c3['include']=[{'all':!![]}]),_0x3911c3=_['merge']({},_0x3911c3,_0x81a9d4[_0x243e36('0x3b')]),db[_0x243e36('0x33')][_0x243e36('0x5a')](_0x3911c3)['then'](handleEntityNotFound(_0x1fcd11,null))[_0x243e36('0x21')](respondWithResult(_0x1fcd11,null))['catch'](handleError(_0x1fcd11,null));},exports['create']=function(_0x2a8c62,_0x5858bb){const _0x137c64=_0x5c46b2;return db[_0x137c64('0x33')][_0x137c64('0x1f')](_0x2a8c62[_0x137c64('0x2e')],{})['then'](function(_0x1097be){const _0x62ffc6=_0x137c64,_0x96f5bd=_0x2a8c62['user'][_0x62ffc6('0x2c')]({'plain':!![]});if(!_0x96f5bd)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x96f5bd[_0x62ffc6('0x18')]==='user'){const _0x433935=_0x1097be[_0x62ffc6('0x2c')]({'plain':!![]}),_0x146be2='ChatQueues';return db['UserProfileSection']['findOne']({'where':{'name':_0x146be2,'userProfileId':_0x96f5bd['userProfileId']},'raw':!![]})[_0x62ffc6('0x21')](function(_0x4c8334){const _0x2fdcb2=_0x62ffc6;return _0x4c8334&&_0x4c8334[_0x2fdcb2('0x1e')]===0x0?db[_0x2fdcb2('0x13')][_0x2fdcb2('0x1f')]({'name':_0x433935[_0x2fdcb2('0x58')],'resourceId':_0x433935['id'],'type':_0x4c8334[_0x2fdcb2('0x58')],'sectionId':_0x4c8334['id']},{})[_0x2fdcb2('0x21')](function(){return _0x1097be;}):_0x1097be;})['catch'](function(_0x314a6c){const _0x46f9df=_0x62ffc6;logger['error'](_0x46f9df('0x51'),_0x314a6c);throw _0x314a6c;});}return _0x1097be;})['then'](respondWithResult(_0x5858bb,0xc9))[_0x137c64('0x5c')](handleError(_0x5858bb,null));},exports['update']=function(_0x57edb1,_0x3a8846){const _0x53ee17=_0x5c46b2;return _0x57edb1['body']['id']&&delete _0x57edb1[_0x53ee17('0x2e')]['id'],db['ChatQueue'][_0x53ee17('0x5a')]({'where':{'id':_0x57edb1[_0x53ee17('0xb')]['id']}})['then'](handleEntityNotFound(_0x3a8846,null))['then'](saveUpdates(_0x57edb1[_0x53ee17('0x2e')],null))[_0x53ee17('0x21')](respondWithResult(_0x3a8846,null))[_0x53ee17('0x5c')](handleError(_0x3a8846,null));},exports[_0x5c46b2('0x46')]=function(_0x2a2f45,_0x123da4){const _0x3de97e=_0x5c46b2;return db[_0x3de97e('0x33')][_0x3de97e('0x5a')]({'where':{'id':_0x2a2f45[_0x3de97e('0xb')]['id']}})[_0x3de97e('0x21')](handleEntityNotFound(_0x123da4,null))[_0x3de97e('0x21')](removeEntity(_0x123da4,null))[_0x3de97e('0x5c')](handleError(_0x123da4,null));},exports['describe']=function(_0x4fec25,_0x1aedeb){const _0x839332=_0x5c46b2;return db[_0x839332('0x33')][_0x839332('0x4d')]()[_0x839332('0x21')](respondWithResult(_0x1aedeb,null))[_0x839332('0x5c')](handleError(_0x1aedeb,null));},exports[_0x5c46b2('0x19')]=function(_0x331bf4,_0x19feca){const _0x2b0048=_0x5c46b2;let _0x1e35c9={'raw':!![],'where':{}};const _0x62b9fa={};let _0x5302eb;return db[_0x2b0048('0x33')]['findOne']({'where':{'id':_0x331bf4[_0x2b0048('0xb')]['id']}})[_0x2b0048('0x21')](handleEntityNotFound(_0x19feca,null))[_0x2b0048('0x21')](function(_0x49907d){const _0x279da6=_0x2b0048;if(_0x49907d)return _0x5302eb=_0x49907d[_0x279da6('0x2c')]({'plain':!![]}),_0x62b9fa[_0x279da6('0xc')]=_[_0x279da6('0x55')](db[_0x279da6('0x35')]['rawAttributes']),_0x62b9fa[_0x279da6('0x60')]=_[_0x279da6('0x55')](_0x331bf4[_0x279da6('0x60')]),_0x62b9fa['filters']=_['intersection'](_0x62b9fa[_0x279da6('0xc')],_0x62b9fa[_0x279da6('0x60')]),_0x1e35c9['attributes']=_[_0x279da6('0x53')](_0x62b9fa[_0x279da6('0xc')],qs['fields'](_0x331bf4[_0x279da6('0x60')][_0x279da6('0x9')])),_0x1e35c9[_0x279da6('0x4e')]=_0x1e35c9['attributes']['length']?_0x1e35c9[_0x279da6('0x4e')]:_0x62b9fa[_0x279da6('0xc')],typeof _0x331bf4[_0x279da6('0x60')][_0x279da6('0x67')]==='undefined'&&(_0x1e35c9[_0x279da6('0x32')]=qs[_0x279da6('0x32')](_0x331bf4['query'][_0x279da6('0x32')]),_0x1e35c9['offset']=qs['offset'](_0x331bf4[_0x279da6('0x60')][_0x279da6('0x5e')])),_0x1e35c9[_0x279da6('0xe')]=qs[_0x279da6('0x6a')](_0x331bf4[_0x279da6('0x60')][_0x279da6('0x6a')]),_0x1e35c9[_0x279da6('0x45')]=qs[_0x279da6('0x30')](_[_0x279da6('0x2')](_0x331bf4[_0x279da6('0x60')],_0x62b9fa[_0x279da6('0x30')])),_0x1e35c9[_0x279da6('0x45')]['ChatQueueId']=_0x49907d['id'],_0x331bf4[_0x279da6('0x60')][_0x279da6('0x50')]&&(_0x1e35c9[_0x279da6('0x45')]=_['merge'](_0x1e35c9[_0x279da6('0x45')],{[Op['or']]:_['map'](_0x1e35c9['attributes'],function(_0x841792){const _0x4b6b51=_0x279da6,_0x55bf36={};return _0x55bf36[_0x841792]={[Op[_0x4b6b51('0x12')]]:'%'+_0x331bf4[_0x4b6b51('0x60')][_0x4b6b51('0x50')]+'%'},_0x55bf36;})})),_0x1e35c9=_['merge']({},_0x1e35c9,_0x331bf4[_0x279da6('0x3b')]),db[_0x279da6('0x35')][_0x279da6('0x52')](_0x1e35c9);})[_0x2b0048('0x21')](function(_0x3edc8f){const _0x1b100f=_0x2b0048;if(_0x3edc8f)return db[_0x1b100f('0x2b')][_0x1b100f('0x39')]({'where':{'id':_[_0x1b100f('0x14')](_0x3edc8f,_0x1b100f('0x3e')),'role':_0x1b100f('0x5b')},'attributes':['id',_0x1b100f('0x58'),'chatPause',_0x1b100f('0x5d'),'createdAt']});})[_0x2b0048('0x21')](function(_0x2f3c15){const _0x1504b7=_0x2b0048;return _0x2f3c15?{'count':_0x2f3c15[_0x1504b7('0x49')],'rows':_['map'](_0x2f3c15[_0x1504b7('0x1d')],function(_0x301a21){const _0x302525=_0x1504b7;return{'membername':_0x301a21[_0x302525('0x58')],'UserId':_0x301a21['id'],'queue_name':_0x5302eb[_0x302525('0x58')],'ChatQueueId':_0x5302eb['id'],'interface':util[_0x302525('0xd')]('%s/%s',_0x302525('0x43'),_0x301a21[_0x302525('0x58')]),'penalty':0x0,'paused':_0x301a21[_0x302525('0x2a')],'createdAt':_0x301a21[_0x302525('0x3c')],'updatedAt':_0x301a21[_0x302525('0x5d')]};})}:{'count':0x0,'rows':[]};})[_0x2b0048('0x21')](respondWithFilteredResult(_0x19feca,_0x1e35c9))[_0x2b0048('0x5c')](handleError(_0x19feca,null));},exports['getTeams']=function(_0x17bde7,_0x361215){const _0xa3f145=_0x5c46b2;let _0x59ba94={};const _0xd2390f={};let _0x53046d,_0x1ed31f;return db[_0xa3f145('0x33')]['findOne']({'where':{'id':_0x17bde7['params']['id']}})['then'](handleEntityNotFound(_0x361215,null))[_0xa3f145('0x21')](function(_0x157179){const _0x5b67a0=_0xa3f145;if(_0x157179)return _0x53046d=_0x157179,_0xd2390f[_0x5b67a0('0xc')]=_[_0x5b67a0('0x55')](db[_0x5b67a0('0x63')][_0x5b67a0('0x6b')]),_0xd2390f[_0x5b67a0('0x60')]=_[_0x5b67a0('0x55')](_0x17bde7['query']),_0xd2390f[_0x5b67a0('0x30')]=_[_0x5b67a0('0x53')](_0xd2390f['model'],_0xd2390f['query']),_0x59ba94[_0x5b67a0('0x4e')]=_[_0x5b67a0('0x53')](_0xd2390f[_0x5b67a0('0xc')],qs['fields'](_0x17bde7[_0x5b67a0('0x60')][_0x5b67a0('0x9')])),_0x59ba94[_0x5b67a0('0x4e')]=_0x59ba94[_0x5b67a0('0x4e')][_0x5b67a0('0x42')]?_0x59ba94[_0x5b67a0('0x4e')]:_0xd2390f[_0x5b67a0('0xc')],_0x59ba94['order']=qs[_0x5b67a0('0x6a')](_0x17bde7['query'][_0x5b67a0('0x6a')]),_0x59ba94[_0x5b67a0('0x45')]=qs[_0x5b67a0('0x30')](_[_0x5b67a0('0x2')](_0x17bde7['query'],_0xd2390f[_0x5b67a0('0x30')])),_0x17bde7[_0x5b67a0('0x60')][_0x5b67a0('0x50')]&&(_0x59ba94[_0x5b67a0('0x45')]=_[_0x5b67a0('0x44')](_0x59ba94[_0x5b67a0('0x45')],{[Op['or']]:_[_0x5b67a0('0x14')](_0x59ba94[_0x5b67a0('0x4e')],function(_0x5248ae){const _0x1e5486=_0x5b67a0,_0x13f0a5={};return _0x13f0a5[_0x5248ae]={[Op[_0x1e5486('0x12')]]:'%'+_0x17bde7[_0x1e5486('0x60')]['filter']+'%'},_0x13f0a5;})})),_0x59ba94=_[_0x5b67a0('0x44')]({},_0x59ba94,_0x17bde7[_0x5b67a0('0x3b')]),_0x53046d[_0x5b67a0('0x1b')](_0x59ba94);})['then'](function(_0xcb313e){const _0x5b8067=_0xa3f145;if(_0xcb313e)return _0x1ed31f=_0xcb313e[_0x5b8067('0x42')],typeof _0x17bde7[_0x5b8067('0x60')][_0x5b8067('0x67')]===_0x5b8067('0x27')&&(_0x59ba94[_0x5b8067('0x32')]=qs[_0x5b8067('0x32')](_0x17bde7[_0x5b8067('0x60')][_0x5b8067('0x32')]),_0x59ba94['offset']=qs[_0x5b8067('0x5e')](_0x17bde7[_0x5b8067('0x60')][_0x5b8067('0x5e')])),_0x53046d[_0x5b8067('0x1b')](_0x59ba94);})[_0xa3f145('0x21')](function(_0x380baa){if(_0x380baa)return _0x380baa?{'count':_0x1ed31f,'rows':_0x380baa}:null;})[_0xa3f145('0x21')](respondWithResult(_0x361215,null))[_0xa3f145('0x5c')](handleError(_0x361215,null));},exports[_0x5c46b2('0x57')]=function(_0x1f7428,_0x21e5fa){const _0x313201=_0x5c46b2,_0x5893c4=_0x1f7428[_0x313201('0x2e')][_0x313201('0x69')];return db['Team'][_0x313201('0x52')]({'where':{'id':_0x5893c4},'attributes':['id'],'include':[{'model':db[_0x313201('0x2b')],'as':_0x313201('0x2f'),'attributes':['id',_0x313201('0x58'),_0x313201('0x11'),_0x313201('0x48'),_0x313201('0x10')],'raw':!![]}]})['then'](function(_0x549e93){const _0x351c28=_0x313201;if(_0x549e93){const _0x21e32b=_[_0x351c28('0x64')](_0x549e93,function(_0x1a9e90){const _0x41258b=_0x351c28,_0x4c17ea=_0x1a9e90[_0x41258b('0x2c')]({'plain':!![]});return _0x4c17ea[_0x41258b('0x2f')];});return db[_0x351c28('0x33')]['findOne']({'where':{'id':_0x1f7428['params']['id']}})[_0x351c28('0x21')](function(_0x4354d5){const _0x20f829=_0x351c28;return db[_0x20f829('0x25')][_0x20f829('0x61')](function(_0x61bc5e){const _0x40a59d=_0x20f829;return _0x4354d5[_0x40a59d('0x57')](_0x5893c4,{'transaction':_0x61bc5e})['then'](function(){const _0x2c580b=_0x40a59d;return Promise[_0x2c580b('0x2d')](_0x21e32b['map'](_0x33018c=>{const _0x15e54b=_0x2c580b;return db['UserChatQueue'][_0x15e54b('0x17')]({'where':{'UserId':_0x33018c['id'],'ChatQueueId':_0x1f7428[_0x15e54b('0xb')]['id']},'transaction':_0x61bc5e});}));})[_0x40a59d('0x21')](function(){const _0x585896=_0x40a59d;_0x21e32b[_0x585896('0x6c')](function(_0x3d97ed){const _0x2884db=_0x585896;socket[_0x2884db('0x4b')]('userChatQueue:save',{'UserId':_0x3d97ed['id'],'ChatQueueId':_0x4354d5['id']});});});});});}})[_0x313201('0x21')](respondWithStatusCode(_0x21e5fa,null))[_0x313201('0x5c')](handleError(_0x21e5fa,null));},exports[_0x5c46b2('0x26')]=function(_0xc532e2,_0x4bf935){const _0x2428e3=_0x5c46b2;return db[_0x2428e3('0x63')]['findAll']({'where':{'id':_0xc532e2[_0x2428e3('0x60')][_0x2428e3('0x69')]},'attributes':['id'],'include':[{'model':db['User'],'as':_0x2428e3('0x2f'),'attributes':['id'],'raw':!![]}]})[_0x2428e3('0x21')](handleEntityNotFound(_0x4bf935,null))[_0x2428e3('0x21')](function(_0x4ae09e){const _0x52a72c=_0x2428e3,_0x230564=_[_0x52a72c('0x14')](_0x4ae09e,'id');let _0x33831b=[];const _0x77cd2b=[],_0x301549=squel[_0x52a72c('0x36')]();_0x301549[_0x52a72c('0x65')]('tq.TeamId')[_0x52a72c('0x1')]('team_has_chat_queues','tq')[_0x52a72c('0x23')]('user_has_teams','ut',_0x52a72c('0x38'))[_0x52a72c('0x45')](_0x52a72c('0x29'),_0xc532e2[_0x52a72c('0xb')]['id']);for(let _0x327179=0x0;_0x327179<_0x4ae09e['length'];_0x327179+=0x1){const _0x553e0c=_0x4ae09e[_0x327179];for(let _0x190220=0x0;_0x190220<_0x553e0c['Agents'][_0x52a72c('0x42')];_0x190220+=0x1){const _0x1c99f3=_0x553e0c[_0x52a72c('0x2f')][_0x190220],_0x3be071=_0x301549[_0x52a72c('0x3f')]();_0x3be071['where']('ut.UserId\x20=\x20?',_0x1c99f3['id']),_0x77cd2b['push'](db[_0x52a72c('0x25')][_0x52a72c('0x60')](_0x3be071[_0x52a72c('0x4')](),{'type':QueryTypes[_0x52a72c('0x4a')]})[_0x52a72c('0x21')](function(_0x276cb3){const _0x20eb2c=_0x52a72c;if(_0x276cb3[_0x20eb2c('0x42')]===0x1)return _0x1c99f3['id'];else{const _0x48e10c=_[_0x20eb2c('0x68')](_[_0x20eb2c('0x14')](_0x276cb3,'TeamId'),function(_0x20decf){const _0x5bb79c=_0x20eb2c;return _[_0x5bb79c('0x0')](_0x230564,_0x20decf);});if(_0x48e10c)return _0x1c99f3['id'];}}));}}return Promise[_0x52a72c('0x2d')](_0x77cd2b)['then'](function(_0x5a09ea){const _0x1f94ca=_0x52a72c;return _0x33831b=_(_0x33831b)[_0x1f94ca('0x56')](_0x5a09ea)[_0x1f94ca('0x20')]()[_0x1f94ca('0x1a')](),db['ChatQueue'][_0x1f94ca('0x5a')]({'where':{'id':_0xc532e2['params']['id']}})[_0x1f94ca('0x21')](function(_0x391a1e){const _0x3ed37e=_0x1f94ca;return db['sequelize'][_0x3ed37e('0x61')](function(_0x2d9f28){const _0x3769df=_0x3ed37e;return _0x391a1e[_0x3769df('0x26')](_0xc532e2['query'][_0x3769df('0x69')],{'transaction':_0x2d9f28})[_0x3769df('0x21')](function(){const _0x2f13d3=_0x3769df;if(!_[_0x2f13d3('0x3a')](_0x33831b))return _0x391a1e[_0x2f13d3('0x66')](_0x33831b,{'transaction':_0x2d9f28});})[_0x3769df('0x21')](function(){const _0x5a473f=_0x3769df;_0x33831b[_0x5a473f('0x6c')](function(_0x25d6e0){const _0x374a93=_0x5a473f;socket[_0x374a93('0x4b')](_0x374a93('0x41'),{'UserId':_0x25d6e0,'ChatQueueId':_0x391a1e['id']});});});});});});})[_0x2428e3('0x21')](respondWithStatusCode(_0x4bf935,null))[_0x2428e3('0x5c')](handleError(_0x4bf935,null));},exports[_0x5c46b2('0xf')]=function(_0x1035a7,_0x54ff86){const _0x1940d2=_0x5c46b2;return db['ChatQueue']['findOne']({'where':{'id':_0x1035a7[_0x1940d2('0xb')]['id']}})['then'](function(_0x5c5655){const _0x25d673=_0x1940d2;if(_0x5c5655)return _0x5c5655[_0x25d673('0xf')](_0x1035a7[_0x25d673('0x2e')][_0x25d673('0x69')],{'through':_['omit'](_0x1035a7[_0x25d673('0x2e')],[_0x25d673('0x69'),'id'])})[_0x25d673('0x21')](function(_0x499ef5){const _0x4148dc=_0x25d673;for(let _0x48bbaa=0x0;_0x48bbaa<_0x1035a7[_0x4148dc('0x2e')][_0x4148dc('0x69')]['length'];_0x48bbaa+=0x1){socket['emit'](_0x4148dc('0x22'),{'UserId':_0x1035a7[_0x4148dc('0x2e')][_0x4148dc('0x69')][_0x48bbaa],'ChatQueueId':_0x1035a7[_0x4148dc('0xb')]['id']});}return _0x499ef5;});})['then'](respondWithResult(_0x54ff86,null))['catch'](handleError(_0x54ff86,null));},exports['removeAgents']=function(_0x3dbfa8,_0x36a77f){const _0x442ce6=_0x5c46b2;return db['ChatQueue'][_0x442ce6('0x5a')]({'where':{'id':_0x3dbfa8[_0x442ce6('0xb')]['id']}})[_0x442ce6('0x21')](handleEntityNotFound(_0x36a77f,null))[_0x442ce6('0x21')](function(_0x4cb311){const _0x4f0cd3=_0x442ce6;if(_0x4cb311)return _0x4cb311[_0x4f0cd3('0x66')](_0x3dbfa8[_0x4f0cd3('0x60')][_0x4f0cd3('0x69')])['then'](function(){const _0x219c15=_0x4f0cd3;if(_[_0x219c15('0x4f')](_0x3dbfa8['query'][_0x219c15('0x69')]))for(let _0x3630fc=0x0;_0x3630fc<_0x3dbfa8[_0x219c15('0x60')][_0x219c15('0x69')]['length'];_0x3630fc+=0x1){socket['emit'](_0x219c15('0x41'),{'UserId':Number(_0x3dbfa8[_0x219c15('0x60')][_0x219c15('0x69')][_0x3630fc]),'ChatQueueId':Number(_0x3dbfa8['params']['id'])});}else socket[_0x219c15('0x4b')](_0x219c15('0x41'),{'UserId':Number(_0x3dbfa8[_0x219c15('0x60')][_0x219c15('0x69')]),'ChatQueueId':Number(_0x3dbfa8[_0x219c15('0xb')]['id'])});});})[_0x442ce6('0x21')](respondWithStatusCode(_0x36a77f,null))['catch'](handleError(_0x36a77f,null));},exports[_0x5c46b2('0x37')]=function(_0xdd3f6b,_0x2bd2af){const _0x3a3a90=_0x5c46b2;let _0x5b9b57={};const _0x11d719={};let _0x3af41a,_0x355945;return db['ChatQueue'][_0x3a3a90('0x5a')]({'where':{'id':_0xdd3f6b['params']['id']}})[_0x3a3a90('0x21')](handleEntityNotFound(_0x2bd2af,null))[_0x3a3a90('0x21')](function(_0x40bd02){const _0xcd04dd=_0x3a3a90;if(_0x40bd02)return _0x3af41a=_0x40bd02,_0x11d719[_0xcd04dd('0xc')]=_[_0xcd04dd('0x55')](db[_0xcd04dd('0x2b')][_0xcd04dd('0x6b')]),_0x11d719[_0xcd04dd('0x60')]=_['keys'](_0xdd3f6b[_0xcd04dd('0x60')]),_0x11d719[_0xcd04dd('0x30')]=_['intersection'](_0x11d719[_0xcd04dd('0xc')],_0x11d719['query']),_0x5b9b57[_0xcd04dd('0x4e')]=_[_0xcd04dd('0x53')](_0x11d719[_0xcd04dd('0xc')],qs[_0xcd04dd('0x9')](_0xdd3f6b[_0xcd04dd('0x60')][_0xcd04dd('0x9')])),_0x5b9b57[_0xcd04dd('0x4e')]=_0x5b9b57[_0xcd04dd('0x4e')][_0xcd04dd('0x42')]?_0x5b9b57['attributes']:_0x11d719[_0xcd04dd('0xc')],_0x5b9b57['order']=qs[_0xcd04dd('0x6a')](_0xdd3f6b['query']['sort']),_0x5b9b57[_0xcd04dd('0x45')]=qs[_0xcd04dd('0x30')](_[_0xcd04dd('0x2')](_0xdd3f6b[_0xcd04dd('0x60')],_0x11d719[_0xcd04dd('0x30')])),_0xdd3f6b[_0xcd04dd('0x60')]['filter']&&(_0x5b9b57[_0xcd04dd('0x45')]=_['merge'](_0x5b9b57[_0xcd04dd('0x45')],{[Op['or']]:_['map'](_0x5b9b57['attributes'],function(_0x5cd535){const _0x494110=_0xcd04dd,_0x5aaa04={};return _0x5aaa04[_0x5cd535]={[Op[_0x494110('0x12')]]:'%'+_0xdd3f6b[_0x494110('0x60')][_0x494110('0x50')]+'%'},_0x5aaa04;})})),_0x5b9b57=_['merge']({},_0x5b9b57,_0xdd3f6b[_0xcd04dd('0x3b')]),_0x3af41a['getAgents'](_0x5b9b57);})[_0x3a3a90('0x21')](function(_0xb01ec4){const _0x203d6c=_0x3a3a90;if(_0xb01ec4)return _0x355945=_0xb01ec4[_0x203d6c('0x42')],typeof _0xdd3f6b[_0x203d6c('0x60')][_0x203d6c('0x67')]===_0x203d6c('0x27')&&(_0x5b9b57['limit']=qs['limit'](_0xdd3f6b[_0x203d6c('0x60')][_0x203d6c('0x32')]),_0x5b9b57[_0x203d6c('0x5e')]=qs['offset'](_0xdd3f6b[_0x203d6c('0x60')][_0x203d6c('0x5e')])),_0x3af41a['getAgents'](_0x5b9b57);})[_0x3a3a90('0x21')](function(_0x5a1626){if(_0x5a1626)return _0x5a1626?{'count':_0x355945,'rows':_0x5a1626}:null;})[_0x3a3a90('0x21')](respondWithResult(_0x2bd2af,null))[_0x3a3a90('0x5c')](handleError(_0x2bd2af,null));}; \ No newline at end of file +const a114_0x3d1b=['removeAgents','ids','role','update','describe','pick','Unable\x20to\x20retrieve\x20the\x20current\x20user','tq.TeamId','merge','limit','compact','user','findOne','%s/%s','findAndCountAll','removeTeams','body','catch','includes','keys','type','updatedAt','isArray','emit','status','addAgents','name','order','transaction','params','clone','then','ChatQueues','../../mysqldb','util','createdAt','rawAttributes','send','lodash','sort','UserId','getAgents','ChatQueue','include','map','team_has_chat_queues','every','TeamId','findOrCreate','chatPause','getTeams','undefined','like','UserChatQueue','../../components/parsers/qs','from','options','model','autoAssociation','user_has_teams','attributes','set','interface','count','ChatQueueId\x20=\x20?','where','userChatQueue:remove','userChatQueue:save','forEach','sequelize','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','ut.UserId\x20=\x20?','includeAll','create','json','destroy','./chatQueue.socket','UserProfileSection','Content-Range','fields','intersection','error','SIP','online','filters','User','length','index','../../rediscache','toString','findAll','offset','flatMap','getMembers','get','nolimit','Team','filter','value','squel','end','format','join','query','ChatQueueId','isEmpty','../../config/logger','Agents'];(function(_0x2c2aee,_0x15683d){const _0x3d1b80=function(_0x30ad04){while(--_0x30ad04){_0x2c2aee['push'](_0x2c2aee['shift']());}};_0x3d1b80(++_0x15683d);}(a114_0x3d1b,0x145));const a114_0x30ad=function(_0x2c2aee,_0x15683d){_0x2c2aee=_0x2c2aee-0x1da;let _0x3d1b80=a114_0x3d1b[_0x2c2aee];return _0x3d1b80;};const a114_0xed3edb=a114_0x30ad;'use strict';const util=require(a114_0xed3edb(0x1fb)),_=require(a114_0xed3edb(0x1ff)),squel=require(a114_0xed3edb(0x23c)),qs=require(a114_0xed3edb(0x20f)),logger=require(a114_0xed3edb(0x243))('api'),{getSocket}=require(a114_0xed3edb(0x231)),{db}=require(a114_0xed3edb(0x1fa)),{Op,QueryTypes}=require(a114_0xed3edb(0x21e)),socket=getSocket();require(a114_0xed3edb(0x225))['register'](socket);function respondWithStatusCode(_0x2b5310,_0x511994){return _0x511994=_0x511994||0xcc,function(_0x4073dc){const _0x5c38d7=a114_0x30ad;if(_0x4073dc)return _0x2b5310['sendStatus'](_0x511994);return _0x2b5310[_0x5c38d7(0x1f1)](_0x511994)[_0x5c38d7(0x23d)]();};}function respondWithResult(_0x3443bb,_0x466b53){return _0x466b53=_0x466b53||0xc8,function(_0x32c765){const _0x209ea6=a114_0x30ad;if(_0x32c765)return _0x3443bb[_0x209ea6(0x1f1)](_0x466b53)[_0x209ea6(0x223)](_0x32c765);};}function respondWithFilteredResult(_0x300ef7,_0x5758e5){return function(_0x128207){const _0x3e471b=a114_0x30ad;if(_0x128207){const _0xe14d70=_0x128207[_0x3e471b(0x218)],_0x17e836=_0x5758e5[_0x3e471b(0x234)];let _0x299727=_0x5758e5['offset']+_0x5758e5['limit'],_0x3d3e23;return _0x299727>=_0xe14d70?(_0x299727=_0xe14d70,_0x3d3e23=0xc8):_0x3d3e23=0xce,_0x300ef7['status'](_0x3d3e23),_0x300ef7[_0x3e471b(0x216)](_0x3e471b(0x227),_0x17e836+'-'+_0x299727+'/'+_0xe14d70)[_0x3e471b(0x223)](_0x128207);}return null;};}function saveUpdates(_0x5a7266){return function(_0x2e739b){const _0x43ba49=a114_0x30ad;if(_0x2e739b)return _0x2e739b[_0x43ba49(0x1dc)](_0x5a7266)[_0x43ba49(0x1f8)](function(_0x2171f8){return _0x2171f8;});return null;};}function removeEntity(_0x83f764){return function(_0x14caff){const _0x36b47a=a114_0x30ad;if(_0x14caff)return _0x14caff['destroy']()[_0x36b47a(0x1f8)](function(){const _0x17e997=_0x36b47a,_0x55ce71=_0x14caff[_0x17e997(0x237)]({'plain':!![]}),_0x254161='ChatQueues';return db['UserProfileResource']['destroy']({'where':{'type':_0x254161,'resourceId':_0x55ce71['id']}})[_0x17e997(0x1f8)](function(){return _0x14caff;});})['then'](function(){const _0x4e97ed=_0x36b47a;_0x83f764[_0x4e97ed(0x1f1)](0xcc)[_0x4e97ed(0x23d)]();});};}function handleEntityNotFound(_0x43f10c){return function(_0x2ea78c){return!_0x2ea78c&&_0x43f10c['sendStatus'](0x194),_0x2ea78c;};}function handleError(_0x3466e6,_0x1e3e5b){return _0x1e3e5b=_0x1e3e5b||0x1f4,function(_0x12f9a9){const _0x8fc865=a114_0x30ad;logger[_0x8fc865(0x22a)](_0x12f9a9['stack']),_0x12f9a9[_0x8fc865(0x1f3)]&&delete _0x12f9a9[_0x8fc865(0x1f3)],_0x3466e6[_0x8fc865(0x1f1)](_0x1e3e5b)[_0x8fc865(0x1fe)](_0x12f9a9);};}exports[a114_0xed3edb(0x230)]=function(_0xcce7be,_0x373d61){const _0x515cd0=a114_0xed3edb;let _0x39412d={};const _0x3c6104={},_0x5dc939={'count':0x0,'rows':[]},_0x430bcc=_[_0x515cd0(0x205)](db[_0x515cd0(0x203)]['rawAttributes'],function(_0x50e025){const _0x56bda1=_0x515cd0;return{'name':_0x50e025['fieldName'],'type':_0x50e025[_0x56bda1(0x1ed)]['key']};});_0x3c6104[_0x515cd0(0x212)]=_[_0x515cd0(0x205)](_0x430bcc,_0x515cd0(0x1f3)),_0x3c6104[_0x515cd0(0x240)]=_[_0x515cd0(0x1ec)](_0xcce7be['query']),_0x3c6104[_0x515cd0(0x22d)]=_[_0x515cd0(0x229)](_0x3c6104[_0x515cd0(0x212)],_0x3c6104[_0x515cd0(0x240)]),_0x39412d[_0x515cd0(0x215)]=_[_0x515cd0(0x229)](_0x3c6104[_0x515cd0(0x212)],qs[_0x515cd0(0x228)](_0xcce7be[_0x515cd0(0x240)][_0x515cd0(0x228)])),_0x39412d[_0x515cd0(0x215)]=_0x39412d[_0x515cd0(0x215)][_0x515cd0(0x22f)]?_0x39412d[_0x515cd0(0x215)]:_0x3c6104[_0x515cd0(0x212)];typeof _0xcce7be[_0x515cd0(0x240)][_0x515cd0(0x238)]===_0x515cd0(0x20c)&&(_0x39412d[_0x515cd0(0x1e2)]=qs[_0x515cd0(0x1e2)](_0xcce7be['query'][_0x515cd0(0x1e2)]),_0x39412d[_0x515cd0(0x234)]=qs[_0x515cd0(0x234)](_0xcce7be[_0x515cd0(0x240)]['offset']));_0x39412d['order']=qs[_0x515cd0(0x200)](_0xcce7be[_0x515cd0(0x240)][_0x515cd0(0x200)]),_0x39412d[_0x515cd0(0x21a)]=qs[_0x515cd0(0x22d)](_[_0x515cd0(0x1de)](_0xcce7be[_0x515cd0(0x240)],_0x3c6104['filters']),_0x430bcc);_0xcce7be[_0x515cd0(0x240)]['filter']&&(_0x39412d[_0x515cd0(0x21a)]=_[_0x515cd0(0x1e1)](_0x39412d[_0x515cd0(0x21a)],{[Op['or']]:_[_0x515cd0(0x205)](_0x430bcc,function(_0x6f074e){const _0x212a38=_0x515cd0;if(_0x6f074e[_0x212a38(0x1ed)]!=='VIRTUAL'){const _0x21398f={};return _0x21398f[_0x6f074e[_0x212a38(0x1f3)]]={[Op['like']]:'%'+_0xcce7be[_0x212a38(0x240)][_0x212a38(0x23a)]+'%'},_0x21398f;}})}));_0x39412d=_[_0x515cd0(0x1e1)]({},_0x39412d,_0xcce7be[_0x515cd0(0x211)]);const _0x17a9fb={'where':_0x39412d['where']};return db['ChatQueue'][_0x515cd0(0x218)](_0x17a9fb)[_0x515cd0(0x1f8)](function(_0x4fa821){const _0x44ea03=_0x515cd0;return _0x5dc939[_0x44ea03(0x218)]=_0x4fa821,_0xcce7be['query'][_0x44ea03(0x221)]&&(_0x39412d['include']=[{'all':!![]}]),db[_0x44ea03(0x203)][_0x44ea03(0x233)](_0x39412d);})['then'](function(_0x15c19){return _0x5dc939['rows']=_0x15c19,_0x5dc939;})[_0x515cd0(0x1f8)](respondWithFilteredResult(_0x373d61,_0x39412d))[_0x515cd0(0x1ea)](handleError(_0x373d61,null));},exports['show']=function(_0x228398,_0x2fe3d8){const _0x4a13a2=a114_0xed3edb;let _0x5c048a={'raw':!![],'where':{'id':_0x228398['params']['id']}};const _0x371ac2={};return _0x371ac2[_0x4a13a2(0x212)]=_['keys'](db['ChatQueue'][_0x4a13a2(0x1fd)]),_0x371ac2['query']=_[_0x4a13a2(0x1ec)](_0x228398[_0x4a13a2(0x240)]),_0x371ac2[_0x4a13a2(0x22d)]=_['intersection'](_0x371ac2[_0x4a13a2(0x212)],_0x371ac2[_0x4a13a2(0x240)]),_0x5c048a[_0x4a13a2(0x215)]=_[_0x4a13a2(0x229)](_0x371ac2[_0x4a13a2(0x212)],qs['fields'](_0x228398[_0x4a13a2(0x240)][_0x4a13a2(0x228)])),_0x5c048a['attributes']=_0x5c048a[_0x4a13a2(0x215)][_0x4a13a2(0x22f)]?_0x5c048a[_0x4a13a2(0x215)]:_0x371ac2['model'],_0x228398[_0x4a13a2(0x240)][_0x4a13a2(0x221)]&&(_0x5c048a[_0x4a13a2(0x204)]=[{'all':!![]}]),_0x5c048a=_[_0x4a13a2(0x1e1)]({},_0x5c048a,_0x228398[_0x4a13a2(0x211)]),db[_0x4a13a2(0x203)]['findOne'](_0x5c048a)[_0x4a13a2(0x1f8)](handleEntityNotFound(_0x2fe3d8,null))[_0x4a13a2(0x1f8)](respondWithResult(_0x2fe3d8,null))['catch'](handleError(_0x2fe3d8,null));},exports[a114_0xed3edb(0x222)]=function(_0x2e1335,_0x4f93e4){const _0x26c71f=a114_0xed3edb;return db[_0x26c71f(0x203)][_0x26c71f(0x222)](_0x2e1335['body'],{})[_0x26c71f(0x1f8)](function(_0x37e057){const _0x43ebca=_0x26c71f,_0x372920=_0x2e1335['user'][_0x43ebca(0x237)]({'plain':!![]});if(!_0x372920)throw new Error(_0x43ebca(0x1df));if(_0x372920[_0x43ebca(0x1db)]===_0x43ebca(0x1e4)){const _0x36509a=_0x37e057[_0x43ebca(0x237)]({'plain':!![]}),_0x3d0d7f=_0x43ebca(0x1f9);return db[_0x43ebca(0x226)][_0x43ebca(0x1e5)]({'where':{'name':_0x3d0d7f,'userProfileId':_0x372920['userProfileId']},'raw':!![]})[_0x43ebca(0x1f8)](function(_0x4122f7){const _0x27390b=_0x43ebca;return _0x4122f7&&_0x4122f7[_0x27390b(0x213)]===0x0?db['UserProfileResource'][_0x27390b(0x222)]({'name':_0x36509a['name'],'resourceId':_0x36509a['id'],'type':_0x4122f7['name'],'sectionId':_0x4122f7['id']},{})['then'](function(){return _0x37e057;}):_0x37e057;})[_0x43ebca(0x1ea)](function(_0x472dc4){const _0x54f78d=_0x43ebca;logger[_0x54f78d(0x22a)](_0x54f78d(0x21f),_0x472dc4);throw _0x472dc4;});}return _0x37e057;})[_0x26c71f(0x1f8)](respondWithResult(_0x4f93e4,0xc9))['catch'](handleError(_0x4f93e4,null));},exports['update']=function(_0x2cdde0,_0x45ec8b){const _0x7fb238=a114_0xed3edb;return _0x2cdde0[_0x7fb238(0x1e9)]['id']&&delete _0x2cdde0[_0x7fb238(0x1e9)]['id'],db[_0x7fb238(0x203)]['findOne']({'where':{'id':_0x2cdde0['params']['id']}})[_0x7fb238(0x1f8)](handleEntityNotFound(_0x45ec8b,null))['then'](saveUpdates(_0x2cdde0[_0x7fb238(0x1e9)],null))[_0x7fb238(0x1f8)](respondWithResult(_0x45ec8b,null))[_0x7fb238(0x1ea)](handleError(_0x45ec8b,null));},exports[a114_0xed3edb(0x224)]=function(_0x17e9c1,_0x4e46e7){const _0x900f56=a114_0xed3edb;return db[_0x900f56(0x203)][_0x900f56(0x1e5)]({'where':{'id':_0x17e9c1[_0x900f56(0x1f6)]['id']}})[_0x900f56(0x1f8)](handleEntityNotFound(_0x4e46e7,null))[_0x900f56(0x1f8)](removeEntity(_0x4e46e7,null))[_0x900f56(0x1ea)](handleError(_0x4e46e7,null));},exports[a114_0xed3edb(0x1dd)]=function(_0x30b5d4,_0x1d7edd){const _0xb2a919=a114_0xed3edb;return db[_0xb2a919(0x203)]['describe']()[_0xb2a919(0x1f8)](respondWithResult(_0x1d7edd,null))[_0xb2a919(0x1ea)](handleError(_0x1d7edd,null));},exports[a114_0xed3edb(0x236)]=function(_0x23b7c9,_0x2c676d){const _0x2d055e=a114_0xed3edb;let _0x3d5b2d={'raw':!![],'where':{}};const _0x52cd02={};let _0x4ec1e5;return db[_0x2d055e(0x203)][_0x2d055e(0x1e5)]({'where':{'id':_0x23b7c9[_0x2d055e(0x1f6)]['id']}})[_0x2d055e(0x1f8)](handleEntityNotFound(_0x2c676d,null))[_0x2d055e(0x1f8)](function(_0x3abdb3){const _0x557024=_0x2d055e;if(_0x3abdb3)return _0x4ec1e5=_0x3abdb3[_0x557024(0x237)]({'plain':!![]}),_0x52cd02[_0x557024(0x212)]=_[_0x557024(0x1ec)](db[_0x557024(0x20e)]['rawAttributes']),_0x52cd02['query']=_[_0x557024(0x1ec)](_0x23b7c9['query']),_0x52cd02[_0x557024(0x22d)]=_[_0x557024(0x229)](_0x52cd02[_0x557024(0x212)],_0x52cd02[_0x557024(0x240)]),_0x3d5b2d[_0x557024(0x215)]=_[_0x557024(0x229)](_0x52cd02[_0x557024(0x212)],qs[_0x557024(0x228)](_0x23b7c9['query']['fields'])),_0x3d5b2d[_0x557024(0x215)]=_0x3d5b2d['attributes'][_0x557024(0x22f)]?_0x3d5b2d[_0x557024(0x215)]:_0x52cd02['model'],typeof _0x23b7c9['query']['nolimit']===_0x557024(0x20c)&&(_0x3d5b2d[_0x557024(0x1e2)]=qs[_0x557024(0x1e2)](_0x23b7c9[_0x557024(0x240)]['limit']),_0x3d5b2d[_0x557024(0x234)]=qs[_0x557024(0x234)](_0x23b7c9[_0x557024(0x240)][_0x557024(0x234)])),_0x3d5b2d[_0x557024(0x1f4)]=qs[_0x557024(0x200)](_0x23b7c9[_0x557024(0x240)][_0x557024(0x200)]),_0x3d5b2d[_0x557024(0x21a)]=qs['filters'](_[_0x557024(0x1de)](_0x23b7c9[_0x557024(0x240)],_0x52cd02[_0x557024(0x22d)])),_0x3d5b2d[_0x557024(0x21a)][_0x557024(0x241)]=_0x3abdb3['id'],_0x23b7c9[_0x557024(0x240)]['filter']&&(_0x3d5b2d['where']=_[_0x557024(0x1e1)](_0x3d5b2d[_0x557024(0x21a)],{[Op['or']]:_[_0x557024(0x205)](_0x3d5b2d[_0x557024(0x215)],function(_0x5deb67){const _0x12722e=_0x557024,_0x1d2d89={};return _0x1d2d89[_0x5deb67]={[Op['like']]:'%'+_0x23b7c9[_0x12722e(0x240)]['filter']+'%'},_0x1d2d89;})})),_0x3d5b2d=_[_0x557024(0x1e1)]({},_0x3d5b2d,_0x23b7c9['options']),db[_0x557024(0x20e)][_0x557024(0x233)](_0x3d5b2d);})['then'](function(_0xa9d45f){const _0x1bae8f=_0x2d055e;if(_0xa9d45f)return db['User'][_0x1bae8f(0x1e7)]({'where':{'id':_[_0x1bae8f(0x205)](_0xa9d45f,_0x1bae8f(0x201)),'role':'agent'},'attributes':['id',_0x1bae8f(0x1f3),_0x1bae8f(0x20a),_0x1bae8f(0x1ee),_0x1bae8f(0x1fc)]});})[_0x2d055e(0x1f8)](function(_0x1a8eef){const _0x37074e=_0x2d055e;return _0x1a8eef?{'count':_0x1a8eef[_0x37074e(0x218)],'rows':_[_0x37074e(0x205)](_0x1a8eef['rows'],function(_0x2ace34){const _0x4a2163=_0x37074e;return{'membername':_0x2ace34[_0x4a2163(0x1f3)],'UserId':_0x2ace34['id'],'queue_name':_0x4ec1e5[_0x4a2163(0x1f3)],'ChatQueueId':_0x4ec1e5['id'],'interface':util[_0x4a2163(0x23e)](_0x4a2163(0x1e6),_0x4a2163(0x22b),_0x2ace34[_0x4a2163(0x1f3)]),'penalty':0x0,'paused':_0x2ace34[_0x4a2163(0x20a)],'createdAt':_0x2ace34['createdAt'],'updatedAt':_0x2ace34[_0x4a2163(0x1ee)]};})}:{'count':0x0,'rows':[]};})[_0x2d055e(0x1f8)](respondWithFilteredResult(_0x2c676d,_0x3d5b2d))[_0x2d055e(0x1ea)](handleError(_0x2c676d,null));},exports[a114_0xed3edb(0x20b)]=function(_0x15ca04,_0x5f1fc1){const _0x3112e5=a114_0xed3edb;let _0x4a36d9={};const _0x229e42={};let _0x4535eb,_0x3e953e;return db[_0x3112e5(0x203)][_0x3112e5(0x1e5)]({'where':{'id':_0x15ca04[_0x3112e5(0x1f6)]['id']}})[_0x3112e5(0x1f8)](handleEntityNotFound(_0x5f1fc1,null))['then'](function(_0x393ba4){const _0x53d2f6=_0x3112e5;if(_0x393ba4)return _0x4535eb=_0x393ba4,_0x229e42[_0x53d2f6(0x212)]=_[_0x53d2f6(0x1ec)](db['Team']['rawAttributes']),_0x229e42[_0x53d2f6(0x240)]=_['keys'](_0x15ca04[_0x53d2f6(0x240)]),_0x229e42['filters']=_['intersection'](_0x229e42[_0x53d2f6(0x212)],_0x229e42['query']),_0x4a36d9[_0x53d2f6(0x215)]=_[_0x53d2f6(0x229)](_0x229e42[_0x53d2f6(0x212)],qs[_0x53d2f6(0x228)](_0x15ca04[_0x53d2f6(0x240)][_0x53d2f6(0x228)])),_0x4a36d9[_0x53d2f6(0x215)]=_0x4a36d9['attributes'][_0x53d2f6(0x22f)]?_0x4a36d9[_0x53d2f6(0x215)]:_0x229e42[_0x53d2f6(0x212)],_0x4a36d9['order']=qs[_0x53d2f6(0x200)](_0x15ca04[_0x53d2f6(0x240)][_0x53d2f6(0x200)]),_0x4a36d9[_0x53d2f6(0x21a)]=qs['filters'](_['pick'](_0x15ca04[_0x53d2f6(0x240)],_0x229e42[_0x53d2f6(0x22d)])),_0x15ca04[_0x53d2f6(0x240)]['filter']&&(_0x4a36d9[_0x53d2f6(0x21a)]=_['merge'](_0x4a36d9[_0x53d2f6(0x21a)],{[Op['or']]:_[_0x53d2f6(0x205)](_0x4a36d9['attributes'],function(_0x1baa55){const _0x76cd60=_0x53d2f6,_0x5db7da={};return _0x5db7da[_0x1baa55]={[Op[_0x76cd60(0x20d)]]:'%'+_0x15ca04[_0x76cd60(0x240)][_0x76cd60(0x23a)]+'%'},_0x5db7da;})})),_0x4a36d9=_[_0x53d2f6(0x1e1)]({},_0x4a36d9,_0x15ca04['options']),_0x4535eb[_0x53d2f6(0x20b)](_0x4a36d9);})[_0x3112e5(0x1f8)](function(_0xfa0df9){const _0x3a9250=_0x3112e5;if(_0xfa0df9)return _0x3e953e=_0xfa0df9['length'],typeof _0x15ca04[_0x3a9250(0x240)][_0x3a9250(0x238)]===_0x3a9250(0x20c)&&(_0x4a36d9[_0x3a9250(0x1e2)]=qs[_0x3a9250(0x1e2)](_0x15ca04['query'][_0x3a9250(0x1e2)]),_0x4a36d9[_0x3a9250(0x234)]=qs[_0x3a9250(0x234)](_0x15ca04[_0x3a9250(0x240)]['offset'])),_0x4535eb['getTeams'](_0x4a36d9);})[_0x3112e5(0x1f8)](function(_0xeca260){if(_0xeca260)return _0xeca260?{'count':_0x3e953e,'rows':_0xeca260}:null;})[_0x3112e5(0x1f8)](respondWithResult(_0x5f1fc1,null))[_0x3112e5(0x1ea)](handleError(_0x5f1fc1,null));},exports['addTeams']=function(_0x42f057,_0x4d2ba2){const _0x3612d5=a114_0xed3edb,_0xab07c4=_0x42f057['body'][_0x3612d5(0x1da)];return db['Team'][_0x3612d5(0x233)]({'where':{'id':_0xab07c4},'attributes':['id'],'include':[{'model':db['User'],'as':_0x3612d5(0x244),'attributes':['id',_0x3612d5(0x1f3),_0x3612d5(0x22c),'voicePause',_0x3612d5(0x217)],'raw':!![]}]})[_0x3612d5(0x1f8)](function(_0xeadbec){const _0x545460=_0x3612d5;if(_0xeadbec){const _0x49a3ca=_[_0x545460(0x235)](_0xeadbec,function(_0x4cfe37){const _0x4e0734=_0x545460,_0xf25f71=_0x4cfe37[_0x4e0734(0x237)]({'plain':!![]});return _0xf25f71[_0x4e0734(0x244)];});return db[_0x545460(0x203)]['findOne']({'where':{'id':_0x42f057[_0x545460(0x1f6)]['id']}})[_0x545460(0x1f8)](function(_0x139071){const _0x10d3f0=_0x545460;return db[_0x10d3f0(0x21e)][_0x10d3f0(0x1f5)](function(_0x38f6e7){const _0x3c02d8=_0x10d3f0;return _0x139071['addTeams'](_0xab07c4,{'transaction':_0x38f6e7})['then'](function(){const _0x5e6b86=a114_0x30ad;return Promise['all'](_0x49a3ca[_0x5e6b86(0x205)](_0x23dbc=>{const _0x66c094=_0x5e6b86;return db[_0x66c094(0x20e)][_0x66c094(0x209)]({'where':{'UserId':_0x23dbc['id'],'ChatQueueId':_0x42f057[_0x66c094(0x1f6)]['id']},'transaction':_0x38f6e7});}));})[_0x3c02d8(0x1f8)](function(){const _0x45faf2=_0x3c02d8;_0x49a3ca[_0x45faf2(0x21d)](function(_0x50711c){const _0xc9a845=_0x45faf2;socket['emit'](_0xc9a845(0x21c),{'UserId':_0x50711c['id'],'ChatQueueId':_0x139071['id']});});});});});}})[_0x3612d5(0x1f8)](respondWithStatusCode(_0x4d2ba2,null))[_0x3612d5(0x1ea)](handleError(_0x4d2ba2,null));},exports[a114_0xed3edb(0x1e8)]=function(_0x34cd9d,_0x3826ce){const _0x17fd95=a114_0xed3edb;return db[_0x17fd95(0x239)][_0x17fd95(0x233)]({'where':{'id':_0x34cd9d[_0x17fd95(0x240)][_0x17fd95(0x1da)]},'attributes':['id'],'include':[{'model':db[_0x17fd95(0x22e)],'as':_0x17fd95(0x244),'attributes':['id'],'raw':!![]}]})[_0x17fd95(0x1f8)](handleEntityNotFound(_0x3826ce,null))['then'](function(_0x3b0210){const _0x22daf0=_0x17fd95,_0x5c7d8e=_[_0x22daf0(0x205)](_0x3b0210,'id');let _0x53c740=[];const _0x12d66f=[],_0x5c788c=squel['select']();_0x5c788c['field'](_0x22daf0(0x1e0))[_0x22daf0(0x210)](_0x22daf0(0x206),'tq')[_0x22daf0(0x23f)](_0x22daf0(0x214),'ut','ut.TeamId\x20=\x20tq.TeamId')[_0x22daf0(0x21a)](_0x22daf0(0x219),_0x34cd9d[_0x22daf0(0x1f6)]['id']);for(let _0x7290d9=0x0;_0x7290d9<_0x3b0210[_0x22daf0(0x22f)];_0x7290d9+=0x1){const _0x8be64c=_0x3b0210[_0x7290d9];for(let _0x1267b1=0x0;_0x1267b1<_0x8be64c[_0x22daf0(0x244)][_0x22daf0(0x22f)];_0x1267b1+=0x1){const _0x5599c0=_0x8be64c[_0x22daf0(0x244)][_0x1267b1],_0x4fe7eb=_0x5c788c[_0x22daf0(0x1f7)]();_0x4fe7eb['where'](_0x22daf0(0x220),_0x5599c0['id']),_0x12d66f['push'](db[_0x22daf0(0x21e)][_0x22daf0(0x240)](_0x4fe7eb[_0x22daf0(0x232)](),{'type':QueryTypes['SELECT']})[_0x22daf0(0x1f8)](function(_0x53cf98){const _0xc67f3d=_0x22daf0;if(_0x53cf98[_0xc67f3d(0x22f)]===0x1)return _0x5599c0['id'];else{const _0x14ee25=_[_0xc67f3d(0x207)](_[_0xc67f3d(0x205)](_0x53cf98,_0xc67f3d(0x208)),function(_0x4d3f86){const _0x5cbf77=_0xc67f3d;return _[_0x5cbf77(0x1eb)](_0x5c7d8e,_0x4d3f86);});if(_0x14ee25)return _0x5599c0['id'];}}));}}return Promise['all'](_0x12d66f)[_0x22daf0(0x1f8)](function(_0x134075){const _0x36cc23=_0x22daf0;return _0x53c740=_(_0x53c740)['union'](_0x134075)[_0x36cc23(0x1e3)]()[_0x36cc23(0x23b)](),db[_0x36cc23(0x203)][_0x36cc23(0x1e5)]({'where':{'id':_0x34cd9d[_0x36cc23(0x1f6)]['id']}})[_0x36cc23(0x1f8)](function(_0x3fcdb9){const _0x149c75=_0x36cc23;return db[_0x149c75(0x21e)][_0x149c75(0x1f5)](function(_0x137a36){const _0x548b1f=_0x149c75;return _0x3fcdb9[_0x548b1f(0x1e8)](_0x34cd9d[_0x548b1f(0x240)][_0x548b1f(0x1da)],{'transaction':_0x137a36})[_0x548b1f(0x1f8)](function(){const _0x34d3b7=_0x548b1f;if(!_[_0x34d3b7(0x242)](_0x53c740))return _0x3fcdb9[_0x34d3b7(0x245)](_0x53c740,{'transaction':_0x137a36});})['then'](function(){const _0x56bd9d=_0x548b1f;_0x53c740[_0x56bd9d(0x21d)](function(_0xc38816){const _0x54dbfd=_0x56bd9d;socket['emit'](_0x54dbfd(0x21b),{'UserId':_0xc38816,'ChatQueueId':_0x3fcdb9['id']});});});});});});})[_0x17fd95(0x1f8)](respondWithStatusCode(_0x3826ce,null))[_0x17fd95(0x1ea)](handleError(_0x3826ce,null));},exports['addAgents']=function(_0x204b22,_0x2a8916){const _0x27c59b=a114_0xed3edb;return db['ChatQueue'][_0x27c59b(0x1e5)]({'where':{'id':_0x204b22['params']['id']}})[_0x27c59b(0x1f8)](function(_0x413ea0){const _0x1f98c7=_0x27c59b;if(_0x413ea0)return _0x413ea0[_0x1f98c7(0x1f2)](_0x204b22[_0x1f98c7(0x1e9)][_0x1f98c7(0x1da)],{'through':_['omit'](_0x204b22[_0x1f98c7(0x1e9)],[_0x1f98c7(0x1da),'id'])})['then'](function(_0x33c78e){const _0x3fdc50=_0x1f98c7;for(let _0x1aa3dc=0x0;_0x1aa3dc<_0x204b22['body']['ids']['length'];_0x1aa3dc+=0x1){socket[_0x3fdc50(0x1f0)](_0x3fdc50(0x21c),{'UserId':_0x204b22[_0x3fdc50(0x1e9)][_0x3fdc50(0x1da)][_0x1aa3dc],'ChatQueueId':_0x204b22[_0x3fdc50(0x1f6)]['id']});}return _0x33c78e;});})[_0x27c59b(0x1f8)](respondWithResult(_0x2a8916,null))[_0x27c59b(0x1ea)](handleError(_0x2a8916,null));},exports['removeAgents']=function(_0x1c8935,_0x5696aa){const _0x48709d=a114_0xed3edb;return db[_0x48709d(0x203)][_0x48709d(0x1e5)]({'where':{'id':_0x1c8935['params']['id']}})[_0x48709d(0x1f8)](handleEntityNotFound(_0x5696aa,null))[_0x48709d(0x1f8)](function(_0x39f2c0){const _0x49ca00=_0x48709d;if(_0x39f2c0)return _0x39f2c0[_0x49ca00(0x245)](_0x1c8935[_0x49ca00(0x240)]['ids'])['then'](function(){const _0x14d280=_0x49ca00;if(_[_0x14d280(0x1ef)](_0x1c8935[_0x14d280(0x240)][_0x14d280(0x1da)]))for(let _0x2f6b59=0x0;_0x2f6b59<_0x1c8935[_0x14d280(0x240)][_0x14d280(0x1da)][_0x14d280(0x22f)];_0x2f6b59+=0x1){socket[_0x14d280(0x1f0)]('userChatQueue:remove',{'UserId':Number(_0x1c8935['query']['ids'][_0x2f6b59]),'ChatQueueId':Number(_0x1c8935['params']['id'])});}else socket['emit'](_0x14d280(0x21b),{'UserId':Number(_0x1c8935[_0x14d280(0x240)]['ids']),'ChatQueueId':Number(_0x1c8935['params']['id'])});});})[_0x48709d(0x1f8)](respondWithStatusCode(_0x5696aa,null))[_0x48709d(0x1ea)](handleError(_0x5696aa,null));},exports[a114_0xed3edb(0x202)]=function(_0x185c83,_0x3ce26f){const _0x1b569b=a114_0xed3edb;let _0x196b8a={};const _0x1815e7={};let _0x597b5d,_0x5aa43a;return db['ChatQueue'][_0x1b569b(0x1e5)]({'where':{'id':_0x185c83['params']['id']}})[_0x1b569b(0x1f8)](handleEntityNotFound(_0x3ce26f,null))[_0x1b569b(0x1f8)](function(_0xefcef5){const _0x108217=_0x1b569b;if(_0xefcef5)return _0x597b5d=_0xefcef5,_0x1815e7['model']=_[_0x108217(0x1ec)](db[_0x108217(0x22e)]['rawAttributes']),_0x1815e7[_0x108217(0x240)]=_[_0x108217(0x1ec)](_0x185c83['query']),_0x1815e7[_0x108217(0x22d)]=_['intersection'](_0x1815e7[_0x108217(0x212)],_0x1815e7[_0x108217(0x240)]),_0x196b8a[_0x108217(0x215)]=_[_0x108217(0x229)](_0x1815e7[_0x108217(0x212)],qs[_0x108217(0x228)](_0x185c83['query']['fields'])),_0x196b8a[_0x108217(0x215)]=_0x196b8a[_0x108217(0x215)]['length']?_0x196b8a['attributes']:_0x1815e7[_0x108217(0x212)],_0x196b8a[_0x108217(0x1f4)]=qs[_0x108217(0x200)](_0x185c83['query'][_0x108217(0x200)]),_0x196b8a[_0x108217(0x21a)]=qs[_0x108217(0x22d)](_[_0x108217(0x1de)](_0x185c83[_0x108217(0x240)],_0x1815e7[_0x108217(0x22d)])),_0x185c83[_0x108217(0x240)]['filter']&&(_0x196b8a[_0x108217(0x21a)]=_['merge'](_0x196b8a[_0x108217(0x21a)],{[Op['or']]:_[_0x108217(0x205)](_0x196b8a[_0x108217(0x215)],function(_0x14dddc){const _0x550444=_0x108217,_0x55d524={};return _0x55d524[_0x14dddc]={[Op[_0x550444(0x20d)]]:'%'+_0x185c83[_0x550444(0x240)][_0x550444(0x23a)]+'%'},_0x55d524;})})),_0x196b8a=_['merge']({},_0x196b8a,_0x185c83[_0x108217(0x211)]),_0x597b5d[_0x108217(0x202)](_0x196b8a);})['then'](function(_0x1e6858){const _0x435f0c=_0x1b569b;if(_0x1e6858)return _0x5aa43a=_0x1e6858['length'],typeof _0x185c83[_0x435f0c(0x240)]['nolimit']==='undefined'&&(_0x196b8a[_0x435f0c(0x1e2)]=qs[_0x435f0c(0x1e2)](_0x185c83[_0x435f0c(0x240)][_0x435f0c(0x1e2)]),_0x196b8a['offset']=qs['offset'](_0x185c83['query'][_0x435f0c(0x234)])),_0x597b5d[_0x435f0c(0x202)](_0x196b8a);})[_0x1b569b(0x1f8)](function(_0x405b36){if(_0x405b36)return _0x405b36?{'count':_0x5aa43a,'rows':_0x405b36}:null;})['then'](respondWithResult(_0x3ce26f,null))[_0x1b569b(0x1ea)](handleError(_0x3ce26f,null));}; \ No newline at end of file diff --git a/server/api/chatQueue/chatQueue.events.js b/server/api/chatQueue/chatQueue.events.js index e4dd482..9cf9a2d 100644 --- a/server/api/chatQueue/chatQueue.events.js +++ b/server/api/chatQueue/chatQueue.events.js @@ -1 +1 @@ -const a96_0x25c4=['save','emit','remove','undefined','ChatQueue','setMaxListeners'];(function(_0x5ab86b,_0x25c43d){const _0x282773=function(_0x14f297){while(--_0x14f297){_0x5ab86b['push'](_0x5ab86b['shift']());}};_0x282773(++_0x25c43d);}(a96_0x25c4,0xa7));const a96_0x2827=function(_0x5ab86b,_0x25c43d){_0x5ab86b=_0x5ab86b-0x0;let _0x282773=a96_0x25c4[_0x5ab86b];return _0x282773;};const _0x33a01a=a96_0x2827;'use strict';const EventEmitter=require('events'),ChatQueue=require('../../mysqldb')['db'][_0x33a01a('0x5')],ChatQueueEvents=new EventEmitter();ChatQueueEvents[_0x33a01a('0x0')](0x0);const events={'afterCreate':_0x33a01a('0x1'),'afterUpdate':'update','afterDestroy':_0x33a01a('0x3')};function emitEvent(_0x14f297){return function(_0x935642){const _0x4c0403=a96_0x2827;ChatQueueEvents['emit'](_0x14f297+':'+_0x935642['id'],_0x935642),ChatQueueEvents[_0x4c0403('0x2')](_0x14f297,_0x935642);};}for(const e in events){if(typeof events[e]!==_0x33a01a('0x4')){const event=events[e];ChatQueue['addHook'](e,emitEvent(event));}}module['exports']=ChatQueueEvents; \ No newline at end of file +const a115_0x5ee0=['../../mysqldb','emit','events','ChatQueue','addHook','setMaxListeners','update','save'];(function(_0x57aafa,_0x298acd){const _0x5ee0a5=function(_0x182191){while(--_0x182191){_0x57aafa['push'](_0x57aafa['shift']());}};_0x5ee0a5(++_0x298acd);}(a115_0x5ee0,0x1ec));const a115_0x1821=function(_0x57aafa,_0x298acd){_0x57aafa=_0x57aafa-0x1ef;let _0x5ee0a5=a115_0x5ee0[_0x57aafa];return _0x5ee0a5;};const a115_0x31854f=a115_0x1821;'use strict';const EventEmitter=require(a115_0x31854f(0x1f5)),ChatQueue=require(a115_0x31854f(0x1f3))['db'][a115_0x31854f(0x1f6)],ChatQueueEvents=new EventEmitter();ChatQueueEvents[a115_0x31854f(0x1f0)](0x0);const events={'afterCreate':a115_0x31854f(0x1f2),'afterUpdate':a115_0x31854f(0x1f1),'afterDestroy':'remove'};function emitEvent(_0x212cec){return function(_0x1bcccf){const _0x213e96=a115_0x1821;ChatQueueEvents[_0x213e96(0x1f4)](_0x212cec+':'+_0x1bcccf['id'],_0x1bcccf),ChatQueueEvents[_0x213e96(0x1f4)](_0x212cec,_0x1bcccf);};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];ChatQueue[a115_0x31854f(0x1ef)](e,emitEvent(event));}}module['exports']=ChatQueueEvents; \ No newline at end of file diff --git a/server/api/chatQueue/chatQueue.model.js b/server/api/chatQueue/chatQueue.model.js index c4af9f7..f7ee80f 100644 --- a/server/api/chatQueue/chatQueue.model.js +++ b/server/api/chatQueue/chatQueue.model.js @@ -1 +1 @@ -const a97_0x165d=['exports','ChatQueue','chat_queues','./chatQueue.attributes','define'];(function(_0x194653,_0x165db3){const _0x36e5c7=function(_0x3bc12a){while(--_0x3bc12a){_0x194653['push'](_0x194653['shift']());}};_0x36e5c7(++_0x165db3);}(a97_0x165d,0x134));const a97_0x36e5=function(_0x194653,_0x165db3){_0x194653=_0x194653-0x0;let _0x36e5c7=a97_0x165d[_0x194653];return _0x36e5c7;};const _0x59c990=a97_0x36e5;'use strict';const attributes=require(_0x59c990('0x0'));module[_0x59c990('0x2')]=function(_0x3bc12a){const _0x3f93f4=_0x59c990,_0x35c898=_0x3bc12a[_0x3f93f4('0x1')](_0x3f93f4('0x3'),attributes,{'tableName':_0x3f93f4('0x4'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x35c898;}; \ No newline at end of file +const a116_0x2c96=['function','./chatQueue.options','./chatQueue.attributes','init','exports'];(function(_0x4b895a,_0xdb78ed){const _0x2c9636=function(_0x3cfa39){while(--_0x3cfa39){_0x4b895a['push'](_0x4b895a['shift']());}};_0x2c9636(++_0xdb78ed);}(a116_0x2c96,0x8f));const a116_0x3cfa=function(_0x4b895a,_0xdb78ed){_0x4b895a=_0x4b895a-0x162;let _0x2c9636=a116_0x2c96[_0x4b895a];return _0x2c9636;};const a116_0x556ce9=a116_0x3cfa;'use strict';const {Model}=require('sequelize'),{attributes}=require(a116_0x556ce9(0x166)),{options}=require(a116_0x556ce9(0x165));class ChatQueue extends Model{}function init(_0x1a26d7,_0x45260f){const _0xae8256=a116_0x556ce9,_0x3b48f6=options(_0x1a26d7),_0x3fc0ab=typeof _0x45260f===_0xae8256(0x164)?_0x45260f(_0x3b48f6):_0x3b48f6;return ChatQueue['init'](attributes,_0x3fc0ab),ChatQueue;}module[a116_0x556ce9(0x163)]['ChatQueue']=ChatQueue,module['exports'][a116_0x556ce9(0x162)]=init; \ No newline at end of file diff --git a/server/api/chatQueue/chatQueue.options.js b/server/api/chatQueue/chatQueue.options.js new file mode 100644 index 0000000..c12b6bf --- /dev/null +++ b/server/api/chatQueue/chatQueue.options.js @@ -0,0 +1 @@ +var a117_0x222f=['exports'];(function(_0x1e428f,_0x215f23){var _0x222f0d=function(_0x46d301){while(--_0x46d301){_0x1e428f['push'](_0x1e428f['shift']());}};_0x222f0d(++_0x215f23);}(a117_0x222f,0x1a3));var a117_0x46d3=function(_0x1e428f,_0x215f23){_0x1e428f=_0x1e428f-0x191;var _0x222f0d=a117_0x222f[_0x1e428f];return _0x222f0d;};var a117_0x209d80=a117_0x46d3;function options(_0x33c1c3){return{'sequelize':_0x33c1c3,'tableName':'chat_queues','paranoid':![],'indexes':[],'timestamps':!![]};}module[a117_0x209d80(0x191)]['options']=options; \ No newline at end of file diff --git a/server/api/chatQueue/chatQueue.rpc.js b/server/api/chatQueue/chatQueue.rpc.js index 50244e9..59bfca8 100644 --- a/server/api/chatQueue/chatQueue.rpc.js +++ b/server/api/chatQueue/chatQueue.rpc.js @@ -1 +1 @@ -const a98_0x550f=['findAll','where','rpc','ChatQueue','model','map','register','raw','catch','limit','lodash','info','stringify','GetChatQueue','./chatQueue.socket','attributes','../../rediscache','message','include','debug','ShowChatQueue','then','../../mysqldb','options','error'];(function(_0x2661e4,_0x550f05){const _0x5debfa=function(_0xd7bbe0){while(--_0xd7bbe0){_0x2661e4['push'](_0x2661e4['shift']());}};_0x5debfa(++_0x550f05);}(a98_0x550f,0x139));const a98_0x5deb=function(_0x2661e4,_0x550f05){_0x2661e4=_0x2661e4-0x0;let _0x5debfa=a98_0x550f[_0x2661e4];return _0x5debfa;};const _0x50f0ce=a98_0x5deb;'use strict';const _=require(_0x50f0ce('0x16')),db=require(_0x50f0ce('0x9'))['db'],logger=require('../../config/logger')(_0x50f0ce('0xe')),{getSocket}=require(_0x50f0ce('0x3')),socket=getSocket();require(_0x50f0ce('0x1'))[_0x50f0ce('0x12')](socket),exports[_0x50f0ce('0x0')]=function(_0xd7bbe0){const _0x458c08=this;return new Promise(function(_0x5b8ed6,_0x2b45f0){const _0x273549=a98_0x5deb;return db[_0x273549('0xf')][_0x273549('0xc')]({'raw':_0xd7bbe0[_0x273549('0xa')]?_0xd7bbe0['options'][_0x273549('0x13')]===undefined?!![]:![]:!![],'where':_0xd7bbe0[_0x273549('0xa')]?_0xd7bbe0[_0x273549('0xa')][_0x273549('0xd')]||null:null,'attributes':_0xd7bbe0[_0x273549('0xa')]?_0xd7bbe0[_0x273549('0xa')][_0x273549('0x2')]||null:null,'limit':_0xd7bbe0['options']?_0xd7bbe0[_0x273549('0xa')][_0x273549('0x15')]||null:null,'include':_0xd7bbe0['options']?_0xd7bbe0[_0x273549('0xa')]['include']?_['map'](_0xd7bbe0[_0x273549('0xa')][_0x273549('0x5')],function(_0x479ba5){const _0x4cb2c2=_0x273549;return{'model':db[_0x479ba5[_0x4cb2c2('0x10')]],'as':_0x479ba5['as'],'attributes':_0x479ba5['attributes'],'include':_0x479ba5[_0x4cb2c2('0x5')]?_[_0x4cb2c2('0x11')](_0x479ba5[_0x4cb2c2('0x5')],function(_0x31aad1){const _0x5f557a=_0x4cb2c2;return{'model':db[_0x31aad1['model']],'as':_0x31aad1['as'],'attributes':_0x31aad1['attributes'],'include':_0x31aad1[_0x5f557a('0x5')]?_['map'](_0x31aad1[_0x5f557a('0x5')],function(_0x1a7c39){const _0x576b0f=_0x5f557a;return{'model':db[_0x1a7c39[_0x576b0f('0x10')]],'as':_0x1a7c39['as'],'attributes':_0x1a7c39[_0x576b0f('0x2')]};}):[]};}):[]};}):[]:[]})[_0x273549('0x8')](function(_0x268fea){const _0x17c806=_0x273549;logger['info']('GetChatQueue',_0xd7bbe0),logger[_0x17c806('0x6')](_0x17c806('0x0'),_0xd7bbe0,JSON[_0x17c806('0x18')](_0x268fea)),_0x5b8ed6(_0x268fea);})[_0x273549('0x14')](function(_0x42986e){const _0x399af0=_0x273549;logger[_0x399af0('0xb')](_0x399af0('0x0'),_0x42986e[_0x399af0('0x4')],_0xd7bbe0),_0x2b45f0(_0x458c08[_0x399af0('0xb')](0x1f4,_0x42986e[_0x399af0('0x4')]));});});},exports[_0x50f0ce('0x7')]=function(_0x3a47bf){const _0x4cb972=this;return new Promise(function(_0x301feb,_0x25e115){const _0x10236e=a98_0x5deb;return db[_0x10236e('0xf')]['findOne']({'raw':_0x3a47bf[_0x10236e('0xa')]?_0x3a47bf['options']['raw']===undefined?!![]:![]:!![],'where':_0x3a47bf[_0x10236e('0xa')]?_0x3a47bf[_0x10236e('0xa')]['where']||null:null,'attributes':_0x3a47bf[_0x10236e('0xa')]?_0x3a47bf[_0x10236e('0xa')][_0x10236e('0x2')]||null:null,'include':_0x3a47bf['options']?_0x3a47bf[_0x10236e('0xa')][_0x10236e('0x5')]?_[_0x10236e('0x11')](_0x3a47bf[_0x10236e('0xa')][_0x10236e('0x5')],function(_0x2af597){const _0x5753cf=_0x10236e;return{'model':db[_0x2af597[_0x5753cf('0x10')]],'as':_0x2af597['as'],'attributes':_0x2af597['attributes'],'include':_0x2af597[_0x5753cf('0x5')]?_[_0x5753cf('0x11')](_0x2af597[_0x5753cf('0x5')],function(_0x26ba07){const _0x3a74c4=_0x5753cf;return{'model':db[_0x26ba07['model']],'as':_0x26ba07['as'],'attributes':_0x26ba07[_0x3a74c4('0x2')],'include':_0x26ba07[_0x3a74c4('0x5')]?_['map'](_0x26ba07[_0x3a74c4('0x5')],function(_0x233395){const _0x2115a5=_0x3a74c4;return{'model':db[_0x233395[_0x2115a5('0x10')]],'as':_0x233395['as'],'attributes':_0x233395[_0x2115a5('0x2')]};}):[]};}):[]};}):[]:[]})[_0x10236e('0x8')](function(_0x3542cd){const _0x3b1dc7=_0x10236e;logger[_0x3b1dc7('0x17')]('ShowChatQueue',_0x3a47bf),logger[_0x3b1dc7('0x6')](_0x3b1dc7('0x7'),_0x3a47bf,JSON['stringify'](_0x3542cd)),_0x301feb(_0x3542cd);})[_0x10236e('0x14')](function(_0x5e79cf){const _0x20946d=_0x10236e;logger[_0x20946d('0xb')](_0x20946d('0x7'),_0x5e79cf[_0x20946d('0x4')],_0x3a47bf),_0x25e115(_0x4cb972[_0x20946d('0xb')](0x1f4,_0x5e79cf[_0x20946d('0x4')]));});});}; \ No newline at end of file +const a118_0x1e46=['options','findOne','then','GetChatQueue','../../config/logger','debug','lodash','attributes','stringify','where','error','raw','ChatQueue','info','message','register','findAll','../../mysqldb','map','include','ShowChatQueue','catch','model'];(function(_0x222f11,_0xe98d99){const _0x1e46a1=function(_0x32be67){while(--_0x32be67){_0x222f11['push'](_0x222f11['shift']());}};_0x1e46a1(++_0xe98d99);}(a118_0x1e46,0x123));const a118_0x32be=function(_0x222f11,_0xe98d99){_0x222f11=_0x222f11-0x168;let _0x1e46a1=a118_0x1e46[_0x222f11];return _0x1e46a1;};const a118_0x322190=a118_0x32be;'use strict';const _=require(a118_0x322190(0x176)),db=require(a118_0x322190(0x16a))['db'],logger=require(a118_0x322190(0x174))('rpc'),{getSocket}=require('../../rediscache'),socket=getSocket();require('./chatQueue.socket')[a118_0x322190(0x168)](socket),exports[a118_0x322190(0x173)]=function(_0x3a8aa2){const _0x4bbf36=this;return new Promise(function(_0x130cd2,_0x46c3a4){const _0x45881d=a118_0x32be;return db[_0x45881d(0x17c)][_0x45881d(0x169)]({'raw':_0x3a8aa2['options']?_0x3a8aa2[_0x45881d(0x170)][_0x45881d(0x17b)]===undefined?!![]:![]:!![],'where':_0x3a8aa2['options']?_0x3a8aa2[_0x45881d(0x170)][_0x45881d(0x179)]||null:null,'attributes':_0x3a8aa2[_0x45881d(0x170)]?_0x3a8aa2[_0x45881d(0x170)][_0x45881d(0x177)]||null:null,'limit':_0x3a8aa2[_0x45881d(0x170)]?_0x3a8aa2[_0x45881d(0x170)]['limit']||null:null,'include':_0x3a8aa2['options']?_0x3a8aa2[_0x45881d(0x170)][_0x45881d(0x16c)]?_[_0x45881d(0x16b)](_0x3a8aa2[_0x45881d(0x170)][_0x45881d(0x16c)],function(_0xc53310){const _0x55d541=_0x45881d;return{'model':db[_0xc53310[_0x55d541(0x16f)]],'as':_0xc53310['as'],'attributes':_0xc53310[_0x55d541(0x177)],'include':_0xc53310[_0x55d541(0x16c)]?_['map'](_0xc53310[_0x55d541(0x16c)],function(_0x181ace){const _0x2a4a5f=_0x55d541;return{'model':db[_0x181ace[_0x2a4a5f(0x16f)]],'as':_0x181ace['as'],'attributes':_0x181ace[_0x2a4a5f(0x177)],'include':_0x181ace[_0x2a4a5f(0x16c)]?_[_0x2a4a5f(0x16b)](_0x181ace[_0x2a4a5f(0x16c)],function(_0x1725fc){const _0x1c9038=_0x2a4a5f;return{'model':db[_0x1725fc[_0x1c9038(0x16f)]],'as':_0x1725fc['as'],'attributes':_0x1725fc[_0x1c9038(0x177)]};}):[]};}):[]};}):[]:[]})[_0x45881d(0x172)](function(_0x3480f3){const _0x24f3bb=_0x45881d;logger[_0x24f3bb(0x17d)](_0x24f3bb(0x173),_0x3a8aa2),logger[_0x24f3bb(0x175)](_0x24f3bb(0x173),_0x3a8aa2,JSON[_0x24f3bb(0x178)](_0x3480f3)),_0x130cd2(_0x3480f3);})[_0x45881d(0x16e)](function(_0x4e033b){const _0x27f103=_0x45881d;logger['error'](_0x27f103(0x173),_0x4e033b[_0x27f103(0x17e)],_0x3a8aa2),_0x46c3a4(_0x4bbf36[_0x27f103(0x17a)](0x1f4,_0x4e033b[_0x27f103(0x17e)]));});});},exports[a118_0x322190(0x16d)]=function(_0x17ee1b){const _0x14c6d5=this;return new Promise(function(_0x1912a4,_0x45ce07){const _0x35b611=a118_0x32be;return db[_0x35b611(0x17c)][_0x35b611(0x171)]({'raw':_0x17ee1b[_0x35b611(0x170)]?_0x17ee1b[_0x35b611(0x170)]['raw']===undefined?!![]:![]:!![],'where':_0x17ee1b[_0x35b611(0x170)]?_0x17ee1b[_0x35b611(0x170)][_0x35b611(0x179)]||null:null,'attributes':_0x17ee1b[_0x35b611(0x170)]?_0x17ee1b[_0x35b611(0x170)]['attributes']||null:null,'include':_0x17ee1b[_0x35b611(0x170)]?_0x17ee1b[_0x35b611(0x170)]['include']?_[_0x35b611(0x16b)](_0x17ee1b[_0x35b611(0x170)][_0x35b611(0x16c)],function(_0x1ea707){const _0x26410b=_0x35b611;return{'model':db[_0x1ea707[_0x26410b(0x16f)]],'as':_0x1ea707['as'],'attributes':_0x1ea707[_0x26410b(0x177)],'include':_0x1ea707['include']?_[_0x26410b(0x16b)](_0x1ea707['include'],function(_0xd633ec){const _0x39af2a=_0x26410b;return{'model':db[_0xd633ec[_0x39af2a(0x16f)]],'as':_0xd633ec['as'],'attributes':_0xd633ec[_0x39af2a(0x177)],'include':_0xd633ec['include']?_[_0x39af2a(0x16b)](_0xd633ec[_0x39af2a(0x16c)],function(_0x41c586){const _0x328b91=_0x39af2a;return{'model':db[_0x41c586[_0x328b91(0x16f)]],'as':_0x41c586['as'],'attributes':_0x41c586[_0x328b91(0x177)]};}):[]};}):[]};}):[]:[]})['then'](function(_0x7ada2c){const _0x231fa8=_0x35b611;logger['info'](_0x231fa8(0x16d),_0x17ee1b),logger[_0x231fa8(0x175)]('ShowChatQueue',_0x17ee1b,JSON[_0x231fa8(0x178)](_0x7ada2c)),_0x1912a4(_0x7ada2c);})[_0x35b611(0x16e)](function(_0x4fa84d){const _0xbe7fd7=_0x35b611;logger['error']('ShowChatQueue',_0x4fa84d[_0xbe7fd7(0x17e)],_0x17ee1b),_0x45ce07(_0x14c6d5[_0xbe7fd7(0x17a)](0x1f4,_0x4fa84d[_0xbe7fd7(0x17e)]));});});}; \ No newline at end of file diff --git a/server/api/chatQueue/chatQueue.socket.js b/server/api/chatQueue/chatQueue.socket.js index 9825f49..400d666 100644 --- a/server/api/chatQueue/chatQueue.socket.js +++ b/server/api/chatQueue/chatQueue.socket.js @@ -1 +1 @@ -const a99_0x267f=['register','emit','./chatQueue.events','remove','save'];(function(_0x532854,_0x267fb7){const _0x5ce135=function(_0x575bd7){while(--_0x575bd7){_0x532854['push'](_0x532854['shift']());}};_0x5ce135(++_0x267fb7);}(a99_0x267f,0x172));const a99_0x5ce1=function(_0x532854,_0x267fb7){_0x532854=_0x532854-0x0;let _0x5ce135=a99_0x267f[_0x532854];return _0x5ce135;};const _0x2fb2f7=a99_0x5ce1;'use strict';const ChatQueueEvents=require(_0x2fb2f7('0x2')),events=[_0x2fb2f7('0x4'),_0x2fb2f7('0x3'),'update'];function createListener(_0x575bd7,_0x30cfab){return function(_0x5e3211){const _0x34d2c3=a99_0x5ce1;_0x30cfab[_0x34d2c3('0x1')](_0x575bd7,_0x5e3211);};}exports[_0x2fb2f7('0x0')]=function(_0x639ed4){for(let _0x2a2b64=0x0,_0x241ea5=events['length'];_0x2a2b64<_0x241ea5;_0x2a2b64++){const _0x425b64=events[_0x2a2b64],_0x17590c=createListener('chatQueue:'+_0x425b64,_0x639ed4);ChatQueueEvents['on'](_0x425b64,_0x17590c);}}; \ No newline at end of file +const a119_0x30ab=['emit','save','register','./chatQueue.events','remove','update','chatQueue:','length'];(function(_0x409230,_0x22a090){const _0x30abd6=function(_0xf4be58){while(--_0xf4be58){_0x409230['push'](_0x409230['shift']());}};_0x30abd6(++_0x22a090);}(a119_0x30ab,0xc5));const a119_0xf4be=function(_0x409230,_0x22a090){_0x409230=_0x409230-0x1da;let _0x30abd6=a119_0x30ab[_0x409230];return _0x30abd6;};const a119_0x56e33d=a119_0xf4be;'use strict';const ChatQueueEvents=require(a119_0x56e33d(0x1e0)),events=[a119_0x56e33d(0x1de),a119_0x56e33d(0x1e1),a119_0x56e33d(0x1da)];function createListener(_0x25ab7e,_0x3ec6ce){return function(_0x144166){const _0x1d330e=a119_0xf4be;_0x3ec6ce[_0x1d330e(0x1dd)](_0x25ab7e,_0x144166);};}exports[a119_0x56e33d(0x1df)]=function(_0x5c0216){const _0x4d0d0c=a119_0x56e33d;for(let _0x177334=0x0,_0x59b6ea=events[_0x4d0d0c(0x1dc)];_0x177334<_0x59b6ea;_0x177334++){const _0x7a8e8f=events[_0x177334],_0x4602ce=createListener(_0x4d0d0c(0x1db)+_0x7a8e8f,_0x5c0216);ChatQueueEvents['on'](_0x7a8e8f,_0x4602ce);}}; \ No newline at end of file diff --git a/server/api/chatQueue/index.js b/server/api/chatQueue/index.js index b08e061..329d528 100644 --- a/server/api/chatQueue/index.js +++ b/server/api/chatQueue/index.js @@ -1 +1 @@ -const a100_0x1742=['removeAgents','/describe','isAuthenticated','/:id','update','./chatQueue.controller','addTeams','post','put','Router','getTeams','/:id/members','addAgents','getMembers','/:id/teams','delete','destroy','create','/:id/users','index','removeTeams','get'];(function(_0x42e2a4,_0x174243){const _0x576cba=function(_0x5026c1){while(--_0x5026c1){_0x42e2a4['push'](_0x42e2a4['shift']());}};_0x576cba(++_0x174243);}(a100_0x1742,0x1d2));const a100_0x576c=function(_0x42e2a4,_0x174243){_0x42e2a4=_0x42e2a4-0x0;let _0x576cba=a100_0x1742[_0x42e2a4];return _0x576cba;};const _0x5e5d14=a100_0x576c;'use strict';const express=require('express'),router=express[_0x5e5d14('0x5')](),auth=require('../../components/auth/service'),controller=require(_0x5e5d14('0x1'));router[_0x5e5d14('0x11')]('/',auth[_0x5e5d14('0x14')](),controller[_0x5e5d14('0xf')]),router[_0x5e5d14('0x11')](_0x5e5d14('0x13'),auth[_0x5e5d14('0x14')](),controller['describe']),router[_0x5e5d14('0x11')](_0x5e5d14('0x15'),auth['isAuthenticated'](),controller['show']),router[_0x5e5d14('0x11')](_0x5e5d14('0x7'),auth[_0x5e5d14('0x14')](),controller[_0x5e5d14('0x9')]),router[_0x5e5d14('0x11')](_0x5e5d14('0xa'),auth[_0x5e5d14('0x14')](),controller[_0x5e5d14('0x6')]),router[_0x5e5d14('0x11')]('/:id/users',auth['isAuthenticated'](),controller['getAgents']),router['post']('/',auth['isAuthenticated'](),controller[_0x5e5d14('0xd')]),router[_0x5e5d14('0x3')](_0x5e5d14('0xa'),auth[_0x5e5d14('0x14')](),controller[_0x5e5d14('0x2')]),router[_0x5e5d14('0x3')]('/:id/users',auth[_0x5e5d14('0x14')](),controller[_0x5e5d14('0x8')]),router[_0x5e5d14('0x4')](_0x5e5d14('0x15'),auth[_0x5e5d14('0x14')](),controller[_0x5e5d14('0x0')]),router[_0x5e5d14('0xb')](_0x5e5d14('0x15'),auth[_0x5e5d14('0x14')](),controller[_0x5e5d14('0xc')]),router['delete']('/:id/teams',auth[_0x5e5d14('0x14')](),controller[_0x5e5d14('0x10')]),router[_0x5e5d14('0xb')](_0x5e5d14('0xe'),auth[_0x5e5d14('0x14')](),controller[_0x5e5d14('0x12')]),module['exports']=router; \ No newline at end of file +const a120_0x587e=['/:id/teams','getTeams','removeTeams','destroy','./chatQueue.controller','isAuthenticated','/:id/members','describe','get','post','/:id','exports','/:id/users','addTeams','delete','Router','show','removeAgents','addAgents','create','index','getMembers','../../components/auth/service'];(function(_0x1df9a0,_0x1bf5ff){const _0x587ee8=function(_0x4c52bf){while(--_0x4c52bf){_0x1df9a0['push'](_0x1df9a0['shift']());}};_0x587ee8(++_0x1bf5ff);}(a120_0x587e,0xa4));const a120_0x4c52=function(_0x1df9a0,_0x1bf5ff){_0x1df9a0=_0x1df9a0-0xc2;let _0x587ee8=a120_0x587e[_0x1df9a0];return _0x587ee8;};const a120_0x1cdea5=a120_0x4c52;'use strict';const express=require('express'),router=express[a120_0x1cdea5(0xce)](),auth=require(a120_0x1cdea5(0xd5)),controller=require(a120_0x1cdea5(0xc3));router[a120_0x1cdea5(0xc7)]('/',auth['isAuthenticated'](),controller[a120_0x1cdea5(0xd3)]),router[a120_0x1cdea5(0xc7)]('/describe',auth[a120_0x1cdea5(0xc4)](),controller[a120_0x1cdea5(0xc6)]),router['get'](a120_0x1cdea5(0xc9),auth[a120_0x1cdea5(0xc4)](),controller[a120_0x1cdea5(0xcf)]),router['get'](a120_0x1cdea5(0xc5),auth[a120_0x1cdea5(0xc4)](),controller[a120_0x1cdea5(0xd4)]),router['get']('/:id/teams',auth['isAuthenticated'](),controller[a120_0x1cdea5(0xd7)]),router[a120_0x1cdea5(0xc7)](a120_0x1cdea5(0xcb),auth[a120_0x1cdea5(0xc4)](),controller['getAgents']),router[a120_0x1cdea5(0xc8)]('/',auth['isAuthenticated'](),controller[a120_0x1cdea5(0xd2)]),router[a120_0x1cdea5(0xc8)](a120_0x1cdea5(0xd6),auth[a120_0x1cdea5(0xc4)](),controller[a120_0x1cdea5(0xcc)]),router[a120_0x1cdea5(0xc8)](a120_0x1cdea5(0xcb),auth[a120_0x1cdea5(0xc4)](),controller[a120_0x1cdea5(0xd1)]),router['put']('/:id',auth[a120_0x1cdea5(0xc4)](),controller['update']),router[a120_0x1cdea5(0xcd)]('/:id',auth[a120_0x1cdea5(0xc4)](),controller[a120_0x1cdea5(0xc2)]),router[a120_0x1cdea5(0xcd)]('/:id/teams',auth['isAuthenticated'](),controller[a120_0x1cdea5(0xd8)]),router['delete'](a120_0x1cdea5(0xcb),auth[a120_0x1cdea5(0xc4)](),controller[a120_0x1cdea5(0xd0)]),module[a120_0x1cdea5(0xca)]=router; \ No newline at end of file diff --git a/server/api/chatQueueReport/chatQueueReport.attributes.js b/server/api/chatQueueReport/chatQueueReport.attributes.js index e3003ab..0493f7a 100644 --- a/server/api/chatQueueReport/chatQueueReport.attributes.js +++ b/server/api/chatQueueReport/chatQueueReport.attributes.js @@ -1 +1 @@ -const a101_0x578e=['sequelize','exports','DATE','STRING'];(function(_0x4164ac,_0x578e11){const _0x1e5dbe=function(_0x29f3a4){while(--_0x29f3a4){_0x4164ac['push'](_0x4164ac['shift']());}};_0x1e5dbe(++_0x578e11);}(a101_0x578e,0xdd));const a101_0x1e5d=function(_0x4164ac,_0x578e11){_0x4164ac=_0x4164ac-0x0;let _0x1e5dbe=a101_0x578e[_0x4164ac];return _0x1e5dbe;};const _0x3f69b7=a101_0x1e5d;'use strict';const Sequelize=require(_0x3f69b7('0x3'));module[_0x3f69b7('0x0')]={'uniqueid':{'type':Sequelize[_0x3f69b7('0x2')],'allowNull':![]},'from':{'type':Sequelize['STRING']},'joinAt':{'type':Sequelize[_0x3f69b7('0x1')]},'leaveAt':{'type':Sequelize[_0x3f69b7('0x1')]},'acceptAt':{'type':Sequelize[_0x3f69b7('0x1')]},'exitAt':{'type':Sequelize[_0x3f69b7('0x1')]},'reason':{'type':Sequelize['STRING']}}; \ No newline at end of file +const a121_0x1e0b=['attributes','STRING','DATE','sequelize'];(function(_0x22fdae,_0x18b7c1){const _0x1e0bb2=function(_0x436290){while(--_0x436290){_0x22fdae['push'](_0x22fdae['shift']());}};_0x1e0bb2(++_0x18b7c1);}(a121_0x1e0b,0x1ad));const a121_0x4362=function(_0x22fdae,_0x18b7c1){_0x22fdae=_0x22fdae-0xb0;let _0x1e0bb2=a121_0x1e0b[_0x22fdae];return _0x1e0bb2;};const a121_0x2faa67=a121_0x4362;'use strict';const {DataTypes}=require(a121_0x2faa67(0xb2)),attributes={'uniqueid':{'type':DataTypes[a121_0x2faa67(0xb0)],'allowNull':![]},'from':{'type':DataTypes[a121_0x2faa67(0xb0)]},'joinAt':{'type':DataTypes[a121_0x2faa67(0xb1)]},'leaveAt':{'type':DataTypes['DATE']},'acceptAt':{'type':DataTypes['DATE']},'exitAt':{'type':DataTypes['DATE']},'reason':{'type':DataTypes['STRING']}};module['exports'][a121_0x2faa67(0xb3)]=attributes; \ No newline at end of file diff --git a/server/api/chatQueueReport/chatQueueReport.controller.js b/server/api/chatQueueReport/chatQueueReport.controller.js index 720d900..4cbeca7 100644 --- a/server/api/chatQueueReport/chatQueueReport.controller.js +++ b/server/api/chatQueueReport/chatQueueReport.controller.js @@ -1 +1 @@ -const a102_0x175e=['fieldName','offset','api','catch','rows','rawAttributes','findOne','params','count','ChatQueueReport','length','model','where','VIRTUAL','destroy','fields','body','Content-Range','nolimit','stack','key','include','keys','filters','merge','show','json','intersection','sort','../../components/parsers/qs','error','describe','attributes','includeAll','sequelize','filter','../../mysqldb','status','then','../../config/logger','limit','update','name','options','findAll','type','map','like','end','create','send','order','index','query','pick'];(function(_0x5ac383,_0x175ea5){const _0x39881a=function(_0x4fe123){while(--_0x4fe123){_0x5ac383['push'](_0x5ac383['shift']());}};_0x39881a(++_0x175ea5);}(a102_0x175e,0xbc));const a102_0x3988=function(_0x5ac383,_0x175ea5){_0x5ac383=_0x5ac383-0x0;let _0x39881a=a102_0x175e[_0x5ac383];return _0x39881a;};const _0x18f029=a102_0x3988;'use strict';const _=require('lodash'),qs=require(_0x18f029('0x6')),logger=require(_0x18f029('0x10'))(_0x18f029('0x22')),db=require(_0x18f029('0xd'))['db'],{Op}=require(_0x18f029('0xb'));function respondWithResult(_0x4fe123,_0x35a779){return _0x35a779=_0x35a779||0xc8,function(_0x1b6638){const _0x5c53b8=a102_0x3988;if(_0x1b6638)return _0x4fe123[_0x5c53b8('0xe')](_0x35a779)[_0x5c53b8('0x3')](_0x1b6638);};}function respondWithFilteredResult(_0x3b420b,_0x108cc1){return function(_0x2bd2c5){const _0x1fed6f=a102_0x3988;if(_0x2bd2c5){const _0x4182ce=_0x2bd2c5['count'],_0x2adad2=_0x108cc1[_0x1fed6f('0x21')];let _0x1b72de=_0x108cc1[_0x1fed6f('0x21')]+_0x108cc1[_0x1fed6f('0x11')],_0x4ebaad;return _0x1b72de>=_0x4182ce?(_0x1b72de=_0x4182ce,_0x4ebaad=0xc8):_0x4ebaad=0xce,_0x3b420b[_0x1fed6f('0xe')](_0x4ebaad),_0x3b420b['set'](_0x1fed6f('0x31'),_0x2adad2+'-'+_0x1b72de+'/'+_0x4182ce)[_0x1fed6f('0x3')](_0x2bd2c5);}return null;};}function saveUpdates(_0x58abf9){return function(_0x38a6a8){const _0x1154ad=a102_0x3988;if(_0x38a6a8)return _0x38a6a8[_0x1154ad('0x12')](_0x58abf9)['then'](function(_0x58e677){return _0x58e677;});return null;};}function removeEntity(_0x185a2a){return function(_0x2c3264){const _0x204f2e=a102_0x3988;if(_0x2c3264)return _0x2c3264[_0x204f2e('0x2e')]()[_0x204f2e('0xf')](function(){const _0x44fb36=_0x204f2e;_0x185a2a[_0x44fb36('0xe')](0xcc)[_0x44fb36('0x19')]();});};}function handleEntityNotFound(_0x2d79c6){return function(_0x317e3a){return!_0x317e3a&&_0x2d79c6['sendStatus'](0x194),_0x317e3a;};}function handleError(_0xc33420,_0x259434){return _0x259434=_0x259434||0x1f4,function(_0x974bc){const _0x5e6901=a102_0x3988;logger[_0x5e6901('0x7')](_0x974bc[_0x5e6901('0x33')]),_0x974bc[_0x5e6901('0x13')]&&delete _0x974bc[_0x5e6901('0x13')],_0xc33420[_0x5e6901('0xe')](_0x259434)[_0x5e6901('0x1b')](_0x974bc);};}exports[_0x18f029('0x1d')]=function(_0x58bfff,_0x20296c){const _0xfeecf9=_0x18f029;let _0x227393={};const _0x2532e6={},_0x3e8327={'count':0x0,'rows':[]},_0x2e522d=_[_0xfeecf9('0x17')](db[_0xfeecf9('0x29')]['rawAttributes'],function(_0x383ab4){const _0xeea989=_0xfeecf9;return{'name':_0x383ab4[_0xeea989('0x20')],'type':_0x383ab4[_0xeea989('0x16')][_0xeea989('0x34')]};});_0x2532e6['model']=_['map'](_0x2e522d,_0xfeecf9('0x13')),_0x2532e6[_0xfeecf9('0x1e')]=_[_0xfeecf9('0x36')](_0x58bfff[_0xfeecf9('0x1e')]),_0x2532e6[_0xfeecf9('0x0')]=_[_0xfeecf9('0x4')](_0x2532e6[_0xfeecf9('0x2b')],_0x2532e6[_0xfeecf9('0x1e')]),_0x227393['attributes']=_[_0xfeecf9('0x4')](_0x2532e6[_0xfeecf9('0x2b')],qs['fields'](_0x58bfff[_0xfeecf9('0x1e')][_0xfeecf9('0x2f')])),_0x227393[_0xfeecf9('0x9')]=_0x227393[_0xfeecf9('0x9')][_0xfeecf9('0x2a')]?_0x227393[_0xfeecf9('0x9')]:_0x2532e6[_0xfeecf9('0x2b')];typeof _0x58bfff[_0xfeecf9('0x1e')][_0xfeecf9('0x32')]==='undefined'&&(_0x227393['limit']=qs[_0xfeecf9('0x11')](_0x58bfff[_0xfeecf9('0x1e')][_0xfeecf9('0x11')]),_0x227393[_0xfeecf9('0x21')]=qs[_0xfeecf9('0x21')](_0x58bfff['query']['offset']));_0x227393[_0xfeecf9('0x1c')]=qs[_0xfeecf9('0x5')](_0x58bfff['query'][_0xfeecf9('0x5')]),_0x227393['where']=qs[_0xfeecf9('0x0')](_[_0xfeecf9('0x1f')](_0x58bfff[_0xfeecf9('0x1e')],_0x2532e6[_0xfeecf9('0x0')]),_0x2e522d);_0x58bfff[_0xfeecf9('0x1e')][_0xfeecf9('0xc')]&&(_0x227393[_0xfeecf9('0x2c')]=_[_0xfeecf9('0x1')](_0x227393[_0xfeecf9('0x2c')],{[Op['or']]:_['map'](_0x2e522d,function(_0x250111){const _0x276474=_0xfeecf9;if(_0x250111[_0x276474('0x16')]!==_0x276474('0x2d')){const _0x1f0bce={};return _0x1f0bce[_0x250111[_0x276474('0x13')]]={[Op[_0x276474('0x18')]]:'%'+_0x58bfff[_0x276474('0x1e')][_0x276474('0xc')]+'%'},_0x1f0bce;}})}));_0x227393=_[_0xfeecf9('0x1')]({},_0x227393,_0x58bfff[_0xfeecf9('0x14')]);const _0x247d82={'where':_0x227393[_0xfeecf9('0x2c')]};return db['ChatQueueReport']['count'](_0x247d82)[_0xfeecf9('0xf')](function(_0x1e297f){const _0x2240f6=_0xfeecf9;return _0x3e8327[_0x2240f6('0x28')]=_0x1e297f,_0x58bfff[_0x2240f6('0x1e')]['includeAll']&&(_0x227393['include']=[{'all':!![]}]),db[_0x2240f6('0x29')][_0x2240f6('0x15')](_0x227393);})[_0xfeecf9('0xf')](function(_0x52acba){const _0x3b66b6=_0xfeecf9;return _0x3e8327[_0x3b66b6('0x24')]=_0x52acba,_0x3e8327;})['then'](respondWithFilteredResult(_0x20296c,_0x227393))[_0xfeecf9('0x23')](handleError(_0x20296c,null));},exports[_0x18f029('0x2')]=function(_0x467fab,_0x1c7920){const _0x2afb33=_0x18f029;let _0x537546={'raw':!![],'where':{'id':_0x467fab['params']['id']}};const _0x19f6d1={};return _0x19f6d1[_0x2afb33('0x2b')]=_[_0x2afb33('0x36')](db[_0x2afb33('0x29')][_0x2afb33('0x25')]),_0x19f6d1[_0x2afb33('0x1e')]=_[_0x2afb33('0x36')](_0x467fab[_0x2afb33('0x1e')]),_0x19f6d1[_0x2afb33('0x0')]=_[_0x2afb33('0x4')](_0x19f6d1[_0x2afb33('0x2b')],_0x19f6d1[_0x2afb33('0x1e')]),_0x537546[_0x2afb33('0x9')]=_[_0x2afb33('0x4')](_0x19f6d1[_0x2afb33('0x2b')],qs['fields'](_0x467fab['query']['fields'])),_0x537546[_0x2afb33('0x9')]=_0x537546[_0x2afb33('0x9')][_0x2afb33('0x2a')]?_0x537546[_0x2afb33('0x9')]:_0x19f6d1['model'],_0x467fab[_0x2afb33('0x1e')][_0x2afb33('0xa')]&&(_0x537546[_0x2afb33('0x35')]=[{'all':!![]}]),_0x537546=_[_0x2afb33('0x1')]({},_0x537546,_0x467fab['options']),db[_0x2afb33('0x29')][_0x2afb33('0x26')](_0x537546)['then'](handleEntityNotFound(_0x1c7920,null))['then'](respondWithResult(_0x1c7920,null))[_0x2afb33('0x23')](handleError(_0x1c7920,null));},exports[_0x18f029('0x1a')]=function(_0x16258e,_0x4e44c2){const _0x37a86c=_0x18f029;return db[_0x37a86c('0x29')][_0x37a86c('0x1a')](_0x16258e[_0x37a86c('0x30')],{})[_0x37a86c('0xf')](respondWithResult(_0x4e44c2,0xc9))[_0x37a86c('0x23')](handleError(_0x4e44c2,null));},exports[_0x18f029('0x12')]=function(_0x1f9960,_0x156d0){const _0x25d9fc=_0x18f029;return _0x1f9960[_0x25d9fc('0x30')]['id']&&delete _0x1f9960[_0x25d9fc('0x30')]['id'],db[_0x25d9fc('0x29')][_0x25d9fc('0x26')]({'where':{'id':_0x1f9960['params']['id']}})[_0x25d9fc('0xf')](handleEntityNotFound(_0x156d0,null))[_0x25d9fc('0xf')](saveUpdates(_0x1f9960[_0x25d9fc('0x30')],null))[_0x25d9fc('0xf')](respondWithResult(_0x156d0,null))[_0x25d9fc('0x23')](handleError(_0x156d0,null));},exports['destroy']=function(_0x44a799,_0x4852be){const _0x2ecc3e=_0x18f029;return db['ChatQueueReport'][_0x2ecc3e('0x26')]({'where':{'id':_0x44a799[_0x2ecc3e('0x27')]['id']}})[_0x2ecc3e('0xf')](handleEntityNotFound(_0x4852be,null))[_0x2ecc3e('0xf')](removeEntity(_0x4852be,null))['catch'](handleError(_0x4852be,null));},exports[_0x18f029('0x8')]=function(_0x15b3d4,_0x1d203b){const _0x2b3812=_0x18f029;return db[_0x2b3812('0x29')][_0x2b3812('0x8')]()[_0x2b3812('0xf')](respondWithResult(_0x1d203b,null))[_0x2b3812('0x23')](handleError(_0x1d203b,null));}; \ No newline at end of file +const a122_0x35a9=['filters','order','limit','where','attributes','type','status','index','merge','pick','api','stack','fieldName','body','map','ChatQueueReport','options','intersection','count','then','rows','catch','sort','like','Content-Range','send','model','create','query','includeAll','params','rawAttributes','../../config/logger','update','filter','include','keys','findOne','lodash','set','VIRTUAL','fields','offset','sendStatus','../../components/parsers/qs','json','name','length','describe'];(function(_0x10e6b6,_0x4a8de5){const _0x35a988=function(_0x4d4288){while(--_0x4d4288){_0x10e6b6['push'](_0x10e6b6['shift']());}};_0x35a988(++_0x4a8de5);}(a122_0x35a9,0x92));const a122_0x4d42=function(_0x10e6b6,_0x4a8de5){_0x10e6b6=_0x10e6b6-0x1ef;let _0x35a988=a122_0x35a9[_0x10e6b6];return _0x35a988;};const a122_0x5a55af=a122_0x4d42;'use strict';const _=require(a122_0x5a55af(0x216)),qs=require(a122_0x5a55af(0x21c)),logger=require(a122_0x5a55af(0x210))(a122_0x5a55af(0x1fa)),{db}=require('../../mysqldb'),{Op}=require('sequelize');function respondWithResult(_0x28601d,_0x34a01a){return _0x34a01a=_0x34a01a||0xc8,function(_0x2b2e6f){const _0x2d6823=a122_0x4d42;if(_0x2b2e6f)return _0x28601d[_0x2d6823(0x1f6)](_0x34a01a)[_0x2d6823(0x21d)](_0x2b2e6f);};}function respondWithFilteredResult(_0x2a6c52,_0x5e9f23){return function(_0x4ebf9a){const _0x1c9c19=a122_0x4d42;if(_0x4ebf9a){const _0xc2f242=_0x4ebf9a[_0x1c9c19(0x202)],_0x28ca21=_0x5e9f23['offset'];let _0x3497a1=_0x5e9f23['offset']+_0x5e9f23['limit'],_0x4d1378;return _0x3497a1>=_0xc2f242?(_0x3497a1=_0xc2f242,_0x4d1378=0xc8):_0x4d1378=0xce,_0x2a6c52[_0x1c9c19(0x1f6)](_0x4d1378),_0x2a6c52[_0x1c9c19(0x217)](_0x1c9c19(0x208),_0x28ca21+'-'+_0x3497a1+'/'+_0xc2f242)[_0x1c9c19(0x21d)](_0x4ebf9a);}return null;};}function saveUpdates(_0x22f12b){return function(_0x2a9ce7){const _0x9f849f=a122_0x4d42;if(_0x2a9ce7)return _0x2a9ce7[_0x9f849f(0x211)](_0x22f12b)[_0x9f849f(0x203)](function(_0x18b40d){return _0x18b40d;});return null;};}function removeEntity(_0x452eb6){return function(_0x43d198){if(_0x43d198)return _0x43d198['destroy']()['then'](function(){const _0x68eb7c=a122_0x4d42;_0x452eb6[_0x68eb7c(0x1f6)](0xcc)['end']();});};}function handleEntityNotFound(_0x50d75e){return function(_0x347002){const _0x35efb2=a122_0x4d42;return!_0x347002&&_0x50d75e[_0x35efb2(0x21b)](0x194),_0x347002;};}function handleError(_0x2a9268,_0x1bff96){return _0x1bff96=_0x1bff96||0x1f4,function(_0xef0c06){const _0x53d8e8=a122_0x4d42;logger['error'](_0xef0c06[_0x53d8e8(0x1fb)]),_0xef0c06[_0x53d8e8(0x21e)]&&delete _0xef0c06[_0x53d8e8(0x21e)],_0x2a9268['status'](_0x1bff96)[_0x53d8e8(0x209)](_0xef0c06);};}exports[a122_0x5a55af(0x1f7)]=function(_0xb86bc8,_0x3a9c8b){const _0xdf17b0=a122_0x5a55af;let _0x5f1563={};const _0x4f12c6={},_0x57a5d9={'count':0x0,'rows':[]},_0x40e638=_[_0xdf17b0(0x1fe)](db[_0xdf17b0(0x1ff)]['rawAttributes'],function(_0x2b743f){const _0x93fbce=_0xdf17b0;return{'name':_0x2b743f[_0x93fbce(0x1fc)],'type':_0x2b743f[_0x93fbce(0x1f5)]['key']};});_0x4f12c6[_0xdf17b0(0x20a)]=_[_0xdf17b0(0x1fe)](_0x40e638,_0xdf17b0(0x21e)),_0x4f12c6[_0xdf17b0(0x20c)]=_[_0xdf17b0(0x214)](_0xb86bc8[_0xdf17b0(0x20c)]),_0x4f12c6[_0xdf17b0(0x1f0)]=_[_0xdf17b0(0x201)](_0x4f12c6[_0xdf17b0(0x20a)],_0x4f12c6['query']),_0x5f1563[_0xdf17b0(0x1f4)]=_['intersection'](_0x4f12c6[_0xdf17b0(0x20a)],qs[_0xdf17b0(0x219)](_0xb86bc8[_0xdf17b0(0x20c)][_0xdf17b0(0x219)])),_0x5f1563['attributes']=_0x5f1563[_0xdf17b0(0x1f4)]['length']?_0x5f1563[_0xdf17b0(0x1f4)]:_0x4f12c6[_0xdf17b0(0x20a)];typeof _0xb86bc8['query']['nolimit']==='undefined'&&(_0x5f1563['limit']=qs[_0xdf17b0(0x1f2)](_0xb86bc8[_0xdf17b0(0x20c)][_0xdf17b0(0x1f2)]),_0x5f1563[_0xdf17b0(0x21a)]=qs[_0xdf17b0(0x21a)](_0xb86bc8[_0xdf17b0(0x20c)]['offset']));_0x5f1563[_0xdf17b0(0x1f1)]=qs[_0xdf17b0(0x206)](_0xb86bc8[_0xdf17b0(0x20c)][_0xdf17b0(0x206)]),_0x5f1563[_0xdf17b0(0x1f3)]=qs[_0xdf17b0(0x1f0)](_[_0xdf17b0(0x1f9)](_0xb86bc8['query'],_0x4f12c6[_0xdf17b0(0x1f0)]),_0x40e638);_0xb86bc8['query'][_0xdf17b0(0x212)]&&(_0x5f1563[_0xdf17b0(0x1f3)]=_['merge'](_0x5f1563[_0xdf17b0(0x1f3)],{[Op['or']]:_[_0xdf17b0(0x1fe)](_0x40e638,function(_0x1ed12e){const _0x2d8807=_0xdf17b0;if(_0x1ed12e[_0x2d8807(0x1f5)]!==_0x2d8807(0x218)){const _0x55a7c0={};return _0x55a7c0[_0x1ed12e[_0x2d8807(0x21e)]]={[Op[_0x2d8807(0x207)]]:'%'+_0xb86bc8['query'][_0x2d8807(0x212)]+'%'},_0x55a7c0;}})}));_0x5f1563=_['merge']({},_0x5f1563,_0xb86bc8[_0xdf17b0(0x200)]);const _0x324b60={'where':_0x5f1563[_0xdf17b0(0x1f3)]};return db[_0xdf17b0(0x1ff)]['count'](_0x324b60)[_0xdf17b0(0x203)](function(_0x28f698){const _0x4b0402=_0xdf17b0;return _0x57a5d9['count']=_0x28f698,_0xb86bc8['query'][_0x4b0402(0x20d)]&&(_0x5f1563[_0x4b0402(0x213)]=[{'all':!![]}]),db['ChatQueueReport']['findAll'](_0x5f1563);})[_0xdf17b0(0x203)](function(_0x440a01){const _0x34586c=_0xdf17b0;return _0x57a5d9[_0x34586c(0x204)]=_0x440a01,_0x57a5d9;})[_0xdf17b0(0x203)](respondWithFilteredResult(_0x3a9c8b,_0x5f1563))['catch'](handleError(_0x3a9c8b,null));},exports['show']=function(_0x4a8f13,_0x2656a9){const _0x29aeb3=a122_0x5a55af;let _0x15504a={'raw':!![],'where':{'id':_0x4a8f13[_0x29aeb3(0x20e)]['id']}};const _0x1499e3={};return _0x1499e3[_0x29aeb3(0x20a)]=_[_0x29aeb3(0x214)](db[_0x29aeb3(0x1ff)][_0x29aeb3(0x20f)]),_0x1499e3[_0x29aeb3(0x20c)]=_[_0x29aeb3(0x214)](_0x4a8f13[_0x29aeb3(0x20c)]),_0x1499e3[_0x29aeb3(0x1f0)]=_[_0x29aeb3(0x201)](_0x1499e3[_0x29aeb3(0x20a)],_0x1499e3[_0x29aeb3(0x20c)]),_0x15504a[_0x29aeb3(0x1f4)]=_[_0x29aeb3(0x201)](_0x1499e3[_0x29aeb3(0x20a)],qs['fields'](_0x4a8f13['query'][_0x29aeb3(0x219)])),_0x15504a[_0x29aeb3(0x1f4)]=_0x15504a[_0x29aeb3(0x1f4)][_0x29aeb3(0x21f)]?_0x15504a[_0x29aeb3(0x1f4)]:_0x1499e3['model'],_0x4a8f13['query'][_0x29aeb3(0x20d)]&&(_0x15504a[_0x29aeb3(0x213)]=[{'all':!![]}]),_0x15504a=_[_0x29aeb3(0x1f8)]({},_0x15504a,_0x4a8f13[_0x29aeb3(0x200)]),db[_0x29aeb3(0x1ff)][_0x29aeb3(0x215)](_0x15504a)[_0x29aeb3(0x203)](handleEntityNotFound(_0x2656a9,null))[_0x29aeb3(0x203)](respondWithResult(_0x2656a9,null))['catch'](handleError(_0x2656a9,null));},exports[a122_0x5a55af(0x20b)]=function(_0x374c40,_0x38b39e){const _0x97c22d=a122_0x5a55af;return db['ChatQueueReport'][_0x97c22d(0x20b)](_0x374c40[_0x97c22d(0x1fd)],{})['then'](respondWithResult(_0x38b39e,0xc9))[_0x97c22d(0x205)](handleError(_0x38b39e,null));},exports[a122_0x5a55af(0x211)]=function(_0xa46007,_0xfb8418){const _0x1f38d3=a122_0x5a55af;return _0xa46007[_0x1f38d3(0x1fd)]['id']&&delete _0xa46007[_0x1f38d3(0x1fd)]['id'],db['ChatQueueReport']['findOne']({'where':{'id':_0xa46007[_0x1f38d3(0x20e)]['id']}})[_0x1f38d3(0x203)](handleEntityNotFound(_0xfb8418,null))['then'](saveUpdates(_0xa46007['body'],null))[_0x1f38d3(0x203)](respondWithResult(_0xfb8418,null))[_0x1f38d3(0x205)](handleError(_0xfb8418,null));},exports['destroy']=function(_0x3af87d,_0xa2696a){const _0x5d8889=a122_0x5a55af;return db[_0x5d8889(0x1ff)][_0x5d8889(0x215)]({'where':{'id':_0x3af87d[_0x5d8889(0x20e)]['id']}})[_0x5d8889(0x203)](handleEntityNotFound(_0xa2696a,null))[_0x5d8889(0x203)](removeEntity(_0xa2696a,null))['catch'](handleError(_0xa2696a,null));},exports[a122_0x5a55af(0x1ef)]=function(_0xa93a65,_0x1c8d29){const _0x58a4f9=a122_0x5a55af;return db[_0x58a4f9(0x1ff)][_0x58a4f9(0x1ef)]()[_0x58a4f9(0x203)](respondWithResult(_0x1c8d29,null))[_0x58a4f9(0x205)](handleError(_0x1c8d29,null));}; \ No newline at end of file diff --git a/server/api/chatQueueReport/chatQueueReport.model.js b/server/api/chatQueueReport/chatQueueReport.model.js index 7d99550..8b13d84 100644 --- a/server/api/chatQueueReport/chatQueueReport.model.js +++ b/server/api/chatQueueReport/chatQueueReport.model.js @@ -1 +1 @@ -const a103_0x2d54=['./chatQueueReport.attributes','exports','define','report_chat_queue','ChatQueueReport','uniqueid'];(function(_0x7579a3,_0x2d54fe){const _0x17ab46=function(_0x538992){while(--_0x538992){_0x7579a3['push'](_0x7579a3['shift']());}};_0x17ab46(++_0x2d54fe);}(a103_0x2d54,0x1db));const a103_0x17ab=function(_0x7579a3,_0x2d54fe){_0x7579a3=_0x7579a3-0x0;let _0x17ab46=a103_0x2d54[_0x7579a3];return _0x17ab46;};const _0x230f61=a103_0x17ab;'use strict';const attributes=require(_0x230f61('0x5'));module[_0x230f61('0x0')]=function(_0x538992){const _0x5f5bbc=_0x230f61,_0x18ccf0=_0x538992[_0x5f5bbc('0x1')](_0x5f5bbc('0x3'),attributes,{'tableName':_0x5f5bbc('0x2'),'paranoid':![],'indexes':[{'name':'uniqueid','fields':[_0x5f5bbc('0x4')]}],'timestamps':!![]});return _0x18ccf0;}; \ No newline at end of file +const a123_0x4da5=['./chatQueueReport.attributes','function','ChatQueueReport','init','./chatQueueReport.options','exports','sequelize'];(function(_0x4cd323,_0x140696){const _0x4da5f2=function(_0x44d045){while(--_0x44d045){_0x4cd323['push'](_0x4cd323['shift']());}};_0x4da5f2(++_0x140696);}(a123_0x4da5,0x1c2));const a123_0x44d0=function(_0x4cd323,_0x140696){_0x4cd323=_0x4cd323-0x135;let _0x4da5f2=a123_0x4da5[_0x4cd323];return _0x4da5f2;};const a123_0x59073d=a123_0x44d0;'use strict';const {Model}=require(a123_0x59073d(0x139)),{attributes}=require(a123_0x59073d(0x13a)),{options}=require(a123_0x59073d(0x137));class ChatQueueReport extends Model{}function init(_0x276545,_0xcaca32){const _0x5abc18=a123_0x59073d,_0x2ad61e=options(_0x276545),_0x470b22=typeof _0xcaca32===_0x5abc18(0x13b)?_0xcaca32(_0x2ad61e):_0x2ad61e;return ChatQueueReport[_0x5abc18(0x136)](attributes,_0x470b22),ChatQueueReport;}module[a123_0x59073d(0x138)][a123_0x59073d(0x135)]=ChatQueueReport,module['exports'][a123_0x59073d(0x136)]=init; \ No newline at end of file diff --git a/server/api/chatQueueReport/chatQueueReport.options.js b/server/api/chatQueueReport/chatQueueReport.options.js new file mode 100644 index 0000000..5b50cf0 --- /dev/null +++ b/server/api/chatQueueReport/chatQueueReport.options.js @@ -0,0 +1 @@ +var a124_0x241b=['exports','uniqueid','report_chat_queue','options'];(function(_0x2cfd1b,_0x413ce2){var _0x241b76=function(_0x1097c2){while(--_0x1097c2){_0x2cfd1b['push'](_0x2cfd1b['shift']());}};_0x241b76(++_0x413ce2);}(a124_0x241b,0x17d));var a124_0x1097=function(_0x2cfd1b,_0x413ce2){_0x2cfd1b=_0x2cfd1b-0x10b;var _0x241b76=a124_0x241b[_0x2cfd1b];return _0x241b76;};var a124_0x358660=a124_0x1097;function options(_0x393713){var _0x3f1353=a124_0x1097;return{'sequelize':_0x393713,'tableName':_0x3f1353(0x10c),'paranoid':![],'indexes':[{'name':_0x3f1353(0x10b),'fields':[_0x3f1353(0x10b)]}],'timestamps':!![]};}module[a124_0x358660(0x10e)][a124_0x358660(0x10d)]=options; \ No newline at end of file diff --git a/server/api/chatQueueReport/chatQueueReport.rpc.js b/server/api/chatQueueReport/chatQueueReport.rpc.js index 046412e..2416838 100644 --- a/server/api/chatQueueReport/chatQueueReport.rpc.js +++ b/server/api/chatQueueReport/chatQueueReport.rpc.js @@ -1 +1 @@ -const a104_0x472f=['then','limit','../../mysqldb','catch','error','raw','stringify','body','update','info','create','rpc','../../config/logger','where','CreateChatQueueReport','ChatQueueReport','message','options','UpdateChatQueueReport'];(function(_0x5e7f9f,_0x472f20){const _0x54babd=function(_0x275a8b){while(--_0x275a8b){_0x5e7f9f['push'](_0x5e7f9f['shift']());}};_0x54babd(++_0x472f20);}(a104_0x472f,0x6a));const a104_0x54ba=function(_0x5e7f9f,_0x472f20){_0x5e7f9f=_0x5e7f9f-0x0;let _0x54babd=a104_0x472f[_0x5e7f9f];return _0x54babd;};const _0x25cad4=a104_0x54ba;'use strict';const db=require(_0x25cad4('0xa'))['db'],logger=require(_0x25cad4('0x1'))(_0x25cad4('0x0'));exports[_0x25cad4('0x3')]=function(_0x275a8b){const _0xe486af=this;return new Promise(function(_0x1b35b9,_0x33ba37){const _0x23a4ee=a104_0x54ba;return db[_0x23a4ee('0x4')][_0x23a4ee('0x12')](_0x275a8b[_0x23a4ee('0xf')],{'raw':_0x275a8b['options']?_0x275a8b['options'][_0x23a4ee('0xd')]===undefined?!![]:![]:!![]})[_0x23a4ee('0x8')](function(_0x1a01ba){const _0x5da43b=_0x23a4ee;logger[_0x5da43b('0x11')](_0x5da43b('0x3'),_0x275a8b),logger['debug'](_0x5da43b('0x3'),_0x275a8b,JSON[_0x5da43b('0xe')](_0x1a01ba)),_0x1b35b9(_0x1a01ba);})['catch'](function(_0x38f3bf){const _0x2d6077=_0x23a4ee;logger['error'](_0x2d6077('0x3'),_0x38f3bf['message'],_0x275a8b),_0x33ba37(_0xe486af[_0x2d6077('0xc')](0x1f4,_0x38f3bf[_0x2d6077('0x5')]));});});},exports[_0x25cad4('0x7')]=function(_0x21ffe6){const _0x32dd1d=this;return new Promise(function(_0x168622,_0x789837){const _0xc01ed8=a104_0x54ba;return db[_0xc01ed8('0x4')][_0xc01ed8('0x10')](_0x21ffe6['body'],{'raw':_0x21ffe6[_0xc01ed8('0x6')]?_0x21ffe6['options'][_0xc01ed8('0xd')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x21ffe6[_0xc01ed8('0x6')]?_0x21ffe6['options'][_0xc01ed8('0x2')]||null:null,'attributes':_0x21ffe6[_0xc01ed8('0x6')]?_0x21ffe6[_0xc01ed8('0x6')]['attributes']||null:null,'limit':_0x21ffe6['options']?_0x21ffe6[_0xc01ed8('0x6')][_0xc01ed8('0x9')]||null:null})[_0xc01ed8('0x8')](function(_0x3161e8){const _0x5e3062=_0xc01ed8;logger[_0x5e3062('0x11')](_0x5e3062('0x7'),_0x21ffe6),logger['debug'](_0x5e3062('0x7'),_0x21ffe6,JSON['stringify'](_0x3161e8)),_0x168622(_0x3161e8);})[_0xc01ed8('0xb')](function(_0x32092b){const _0x41c4be=_0xc01ed8;logger['error'](_0x41c4be('0x7'),_0x32092b[_0x41c4be('0x5')],_0x21ffe6),_0x789837(_0x32dd1d[_0x41c4be('0xc')](0x1f4,_0x32092b[_0x41c4be('0x5')]));});});}; \ No newline at end of file +const a125_0x3835=['rpc','catch','stringify','options','message','body','create','UpdateChatQueueReport','info','then','debug','update','CreateChatQueueReport','error','../../mysqldb','where','ChatQueueReport','attributes','raw','../../config/logger'];(function(_0x53d398,_0x23527f){const _0x38359b=function(_0x35885b){while(--_0x35885b){_0x53d398['push'](_0x53d398['shift']());}};_0x38359b(++_0x23527f);}(a125_0x3835,0x1d7));const a125_0x3588=function(_0x53d398,_0x23527f){_0x53d398=_0x53d398-0x131;let _0x38359b=a125_0x3835[_0x53d398];return _0x38359b;};const a125_0x10f10a=a125_0x3588;'use strict';const db=require(a125_0x10f10a(0x134))['db'],logger=require(a125_0x10f10a(0x139))(a125_0x10f10a(0x13a));exports[a125_0x10f10a(0x132)]=function(_0x2e455e){const _0x4051fe=this;return new Promise(function(_0x30fa94,_0x577f71){const _0xa1945=a125_0x3588;return db[_0xa1945(0x136)][_0xa1945(0x140)](_0x2e455e['body'],{'raw':_0x2e455e[_0xa1945(0x13d)]?_0x2e455e[_0xa1945(0x13d)][_0xa1945(0x138)]===undefined?!![]:![]:!![]})[_0xa1945(0x143)](function(_0x2b35f8){const _0x52e871=_0xa1945;logger[_0x52e871(0x142)](_0x52e871(0x132),_0x2e455e),logger[_0x52e871(0x144)](_0x52e871(0x132),_0x2e455e,JSON[_0x52e871(0x13c)](_0x2b35f8)),_0x30fa94(_0x2b35f8);})[_0xa1945(0x13b)](function(_0x1e3fbb){const _0x5aa20f=_0xa1945;logger['error'](_0x5aa20f(0x132),_0x1e3fbb[_0x5aa20f(0x13e)],_0x2e455e),_0x577f71(_0x4051fe[_0x5aa20f(0x133)](0x1f4,_0x1e3fbb[_0x5aa20f(0x13e)]));});});},exports[a125_0x10f10a(0x141)]=function(_0x138eb7){const _0x48bff2=this;return new Promise(function(_0x299d42,_0x2033b9){const _0x107459=a125_0x3588;return db[_0x107459(0x136)][_0x107459(0x131)](_0x138eb7[_0x107459(0x13f)],{'raw':_0x138eb7['options']?_0x138eb7[_0x107459(0x13d)][_0x107459(0x138)]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x138eb7[_0x107459(0x13d)]?_0x138eb7[_0x107459(0x13d)][_0x107459(0x135)]||null:null,'attributes':_0x138eb7[_0x107459(0x13d)]?_0x138eb7['options'][_0x107459(0x137)]||null:null,'limit':_0x138eb7['options']?_0x138eb7[_0x107459(0x13d)]['limit']||null:null})[_0x107459(0x143)](function(_0x31d513){const _0x5ca523=_0x107459;logger['info'](_0x5ca523(0x141),_0x138eb7),logger['debug'](_0x5ca523(0x141),_0x138eb7,JSON[_0x5ca523(0x13c)](_0x31d513)),_0x299d42(_0x31d513);})[_0x107459(0x13b)](function(_0x4fa95a){const _0x346076=_0x107459;logger[_0x346076(0x133)]('UpdateChatQueueReport',_0x4fa95a[_0x346076(0x13e)],_0x138eb7),_0x2033b9(_0x48bff2[_0x346076(0x133)](0x1f4,_0x4fa95a[_0x346076(0x13e)]));});});}; \ No newline at end of file diff --git a/server/api/chatQueueReport/index.js b/server/api/chatQueueReport/index.js index bf614ef..ac30e37 100644 --- a/server/api/chatQueueReport/index.js +++ b/server/api/chatQueueReport/index.js @@ -1 +1 @@ -const a105_0x5f31=['index','update','../../components/auth/service','./chatQueueReport.controller','isAuthenticated','create','get','Router','exports','delete','destroy','show','/describe','put','/:id','express'];(function(_0x126b94,_0x5f3156){const _0x4d9198=function(_0x11ed9d){while(--_0x11ed9d){_0x126b94['push'](_0x126b94['shift']());}};_0x4d9198(++_0x5f3156);}(a105_0x5f31,0xc0));const a105_0x4d91=function(_0x126b94,_0x5f3156){_0x126b94=_0x126b94-0x0;let _0x4d9198=a105_0x5f31[_0x126b94];return _0x4d9198;};const _0x150c06=a105_0x4d91;'use strict';const express=require(_0x150c06('0xf')),router=express[_0x150c06('0x7')](),auth=require(_0x150c06('0x2')),controller=require(_0x150c06('0x3'));router[_0x150c06('0x6')]('/',auth['isAuthenticated'](),controller[_0x150c06('0x0')]),router[_0x150c06('0x6')](_0x150c06('0xc'),auth[_0x150c06('0x4')](),controller['describe']),router[_0x150c06('0x6')](_0x150c06('0xe'),auth[_0x150c06('0x4')](),controller[_0x150c06('0xb')]),router['post']('/',auth[_0x150c06('0x4')](),controller[_0x150c06('0x5')]),router[_0x150c06('0xd')](_0x150c06('0xe'),auth[_0x150c06('0x4')](),controller[_0x150c06('0x1')]),router[_0x150c06('0x9')]('/:id',auth['isAuthenticated'](),controller[_0x150c06('0xa')]),module[_0x150c06('0x8')]=router; \ No newline at end of file +const a126_0x2d9c=['get','describe','isAuthenticated','/describe','update','index','../../components/auth/service','express','destroy','post','delete','show','/:id'];(function(_0x431c02,_0x2eec86){const _0x2d9ca5=function(_0x2b1042){while(--_0x2b1042){_0x431c02['push'](_0x431c02['shift']());}};_0x2d9ca5(++_0x2eec86);}(a126_0x2d9c,0x11f));const a126_0x2b10=function(_0x431c02,_0x2eec86){_0x431c02=_0x431c02-0x1ae;let _0x2d9ca5=a126_0x2d9c[_0x431c02];return _0x2d9ca5;};const a126_0x12c69a=a126_0x2b10;'use strict';const express=require(a126_0x12c69a(0x1b4)),router=express['Router'](),auth=require(a126_0x12c69a(0x1b3)),controller=require('./chatQueueReport.controller');router['get']('/',auth[a126_0x12c69a(0x1af)](),controller[a126_0x12c69a(0x1b2)]),router[a126_0x12c69a(0x1ba)](a126_0x12c69a(0x1b0),auth[a126_0x12c69a(0x1af)](),controller[a126_0x12c69a(0x1ae)]),router[a126_0x12c69a(0x1ba)](a126_0x12c69a(0x1b9),auth[a126_0x12c69a(0x1af)](),controller[a126_0x12c69a(0x1b8)]),router[a126_0x12c69a(0x1b6)]('/',auth[a126_0x12c69a(0x1af)](),controller['create']),router['put'](a126_0x12c69a(0x1b9),auth[a126_0x12c69a(0x1af)](),controller[a126_0x12c69a(0x1b1)]),router[a126_0x12c69a(0x1b7)]('/:id',auth['isAuthenticated'](),controller[a126_0x12c69a(0x1b5)]),module['exports']=router; \ No newline at end of file diff --git a/server/api/chatTransferReport/chatTransferReport.attributes.js b/server/api/chatTransferReport/chatTransferReport.attributes.js index 95aa440..a4192ec 100644 --- a/server/api/chatTransferReport/chatTransferReport.attributes.js +++ b/server/api/chatTransferReport/chatTransferReport.attributes.js @@ -1 +1 @@ -const a106_0x373c=['ENUM','sequelize','account','queue','exports','STRING','DATE'];(function(_0x10f69d,_0x373ca1){const _0x198e34=function(_0x36d718){while(--_0x36d718){_0x10f69d['push'](_0x10f69d['shift']());}};_0x198e34(++_0x373ca1);}(a106_0x373c,0x115));const a106_0x198e=function(_0x10f69d,_0x373ca1){_0x10f69d=_0x10f69d-0x0;let _0x198e34=a106_0x373c[_0x10f69d];return _0x198e34;};const _0x30b224=a106_0x198e;'use strict';const Sequelize=require(_0x30b224('0x4'));module[_0x30b224('0x0')]={'uniqueid':{'type':Sequelize[_0x30b224('0x1')],'allowNull':![]},'type':{'type':Sequelize[_0x30b224('0x3')](_0x30b224('0x5'),'agent',_0x30b224('0x6')),'allowNull':![],'defaultValue':'queue'},'transferredAt':{'type':Sequelize[_0x30b224('0x2')],'allowNull':![],'defaultValue':Sequelize['NOW']}}; \ No newline at end of file +const a127_0x1e7f=['STRING','agent','attributes','exports','ENUM','sequelize','queue','account','DATE'];(function(_0x49c4a4,_0xe4229c){const _0x1e7f11=function(_0x17839f){while(--_0x17839f){_0x49c4a4['push'](_0x49c4a4['shift']());}};_0x1e7f11(++_0xe4229c);}(a127_0x1e7f,0x15f));const a127_0x1783=function(_0x49c4a4,_0xe4229c){_0x49c4a4=_0x49c4a4-0x191;let _0x1e7f11=a127_0x1e7f[_0x49c4a4];return _0x1e7f11;};const a127_0x466b40=a127_0x1783;'use strict';const {DataTypes}=require(a127_0x466b40(0x196)),attributes={'uniqueid':{'type':DataTypes[a127_0x466b40(0x191)],'allowNull':![]},'type':{'type':DataTypes[a127_0x466b40(0x195)](a127_0x466b40(0x198),a127_0x466b40(0x192),a127_0x466b40(0x197)),'allowNull':![],'defaultValue':a127_0x466b40(0x197)},'transferredAt':{'type':DataTypes[a127_0x466b40(0x199)],'allowNull':![],'defaultValue':DataTypes['NOW']}};module[a127_0x466b40(0x194)][a127_0x466b40(0x193)]=attributes; \ No newline at end of file diff --git a/server/api/chatTransferReport/chatTransferReport.controller.js b/server/api/chatTransferReport/chatTransferReport.controller.js index 9b0195d..c215593 100644 --- a/server/api/chatTransferReport/chatTransferReport.controller.js +++ b/server/api/chatTransferReport/chatTransferReport.controller.js @@ -1 +1 @@ -const a107_0x15e4=['offset','ChatTransferReport','../../components/parsers/qs','query','../../config/logger','update','describe','merge','nolimit','Content-Range','show','body','name','stack','sendStatus','like','include','type','json','filter','send','limit','VIRTUAL','includeAll','create','order','lodash','fields','params','length','filters','key','findOne','status','model','catch','keys','sort','fieldName','options','where','pick','undefined','count','attributes','error','findAll','then','destroy','sequelize','intersection','map','rawAttributes'];(function(_0x263c19,_0x15e4a0){const _0x2079de=function(_0x5f14ce){while(--_0x5f14ce){_0x263c19['push'](_0x263c19['shift']());}};_0x2079de(++_0x15e4a0);}(a107_0x15e4,0x190));const a107_0x2079=function(_0x263c19,_0x15e4a0){_0x263c19=_0x263c19-0x0;let _0x2079de=a107_0x15e4[_0x263c19];return _0x2079de;};const _0x5872d9=a107_0x2079;'use strict';const _=require(_0x5872d9('0x32')),qs=require(_0x5872d9('0x1a')),logger=require(_0x5872d9('0x1c'))('api'),db=require('../../mysqldb')['db'],{Op}=require(_0x5872d9('0x14'));function respondWithResult(_0x5f14ce,_0x401787){return _0x401787=_0x401787||0xc8,function(_0x10601f){const _0x419a91=a107_0x2079;if(_0x10601f)return _0x5f14ce[_0x419a91('0x4')](_0x401787)[_0x419a91('0x2a')](_0x10601f);};}function respondWithFilteredResult(_0x4de07a,_0x3920f1){return function(_0x559bb0){const _0x100ed7=a107_0x2079;if(_0x559bb0){const _0x5ce449=_0x559bb0[_0x100ed7('0xe')],_0xa2430b=_0x3920f1[_0x100ed7('0x18')];let _0x5cd95f=_0x3920f1['offset']+_0x3920f1[_0x100ed7('0x2d')],_0x4a0467;return _0x5cd95f>=_0x5ce449?(_0x5cd95f=_0x5ce449,_0x4a0467=0xc8):_0x4a0467=0xce,_0x4de07a[_0x100ed7('0x4')](_0x4a0467),_0x4de07a['set'](_0x100ed7('0x21'),_0xa2430b+'-'+_0x5cd95f+'/'+_0x5ce449)[_0x100ed7('0x2a')](_0x559bb0);}return null;};}function saveUpdates(_0x2ad87d){return function(_0x1e948d){const _0x3b735d=a107_0x2079;if(_0x1e948d)return _0x1e948d[_0x3b735d('0x1d')](_0x2ad87d)[_0x3b735d('0x12')](function(_0x568e6d){return _0x568e6d;});return null;};}function removeEntity(_0x232d91){return function(_0x224caf){const _0x46b45e=a107_0x2079;if(_0x224caf)return _0x224caf[_0x46b45e('0x13')]()[_0x46b45e('0x12')](function(){const _0x1cfa09=_0x46b45e;_0x232d91[_0x1cfa09('0x4')](0xcc)['end']();});};}function handleEntityNotFound(_0x3781b7){return function(_0x3f5788){const _0xd6df59=a107_0x2079;return!_0x3f5788&&_0x3781b7[_0xd6df59('0x26')](0x194),_0x3f5788;};}function handleError(_0x424141,_0xb8dce8){return _0xb8dce8=_0xb8dce8||0x1f4,function(_0x15b19a){const _0x3c0594=a107_0x2079;logger[_0x3c0594('0x10')](_0x15b19a[_0x3c0594('0x25')]),_0x15b19a[_0x3c0594('0x24')]&&delete _0x15b19a[_0x3c0594('0x24')],_0x424141[_0x3c0594('0x4')](_0xb8dce8)[_0x3c0594('0x2c')](_0x15b19a);};}exports['index']=function(_0x5765c1,_0x8c0778){const _0x590572=_0x5872d9;let _0x57e345={};const _0x12fd02={},_0x98dfda={'count':0x0,'rows':[]},_0x452e18=_[_0x590572('0x16')](db['ChatTransferReport'][_0x590572('0x17')],function(_0x3cf106){const _0x2d716e=_0x590572;return{'name':_0x3cf106[_0x2d716e('0x9')],'type':_0x3cf106[_0x2d716e('0x29')][_0x2d716e('0x2')]};});_0x12fd02[_0x590572('0x5')]=_[_0x590572('0x16')](_0x452e18,_0x590572('0x24')),_0x12fd02[_0x590572('0x1b')]=_['keys'](_0x5765c1['query']),_0x12fd02[_0x590572('0x1')]=_['intersection'](_0x12fd02[_0x590572('0x5')],_0x12fd02[_0x590572('0x1b')]),_0x57e345[_0x590572('0xf')]=_['intersection'](_0x12fd02[_0x590572('0x5')],qs[_0x590572('0x33')](_0x5765c1[_0x590572('0x1b')][_0x590572('0x33')])),_0x57e345['attributes']=_0x57e345[_0x590572('0xf')][_0x590572('0x0')]?_0x57e345[_0x590572('0xf')]:_0x12fd02['model'];typeof _0x5765c1['query'][_0x590572('0x20')]===_0x590572('0xd')&&(_0x57e345[_0x590572('0x2d')]=qs[_0x590572('0x2d')](_0x5765c1[_0x590572('0x1b')]['limit']),_0x57e345[_0x590572('0x18')]=qs[_0x590572('0x18')](_0x5765c1['query'][_0x590572('0x18')]));_0x57e345[_0x590572('0x31')]=qs[_0x590572('0x8')](_0x5765c1[_0x590572('0x1b')][_0x590572('0x8')]),_0x57e345[_0x590572('0xb')]=qs[_0x590572('0x1')](_[_0x590572('0xc')](_0x5765c1[_0x590572('0x1b')],_0x12fd02['filters']),_0x452e18);_0x5765c1['query'][_0x590572('0x2b')]&&(_0x57e345[_0x590572('0xb')]=_[_0x590572('0x1f')](_0x57e345['where'],{[Op['or']]:_[_0x590572('0x16')](_0x452e18,function(_0x549543){const _0x2c4775=_0x590572;if(_0x549543[_0x2c4775('0x29')]!==_0x2c4775('0x2e')){const _0x436775={};return _0x436775[_0x549543[_0x2c4775('0x24')]]={[Op[_0x2c4775('0x27')]]:'%'+_0x5765c1[_0x2c4775('0x1b')][_0x2c4775('0x2b')]+'%'},_0x436775;}})}));_0x57e345=_[_0x590572('0x1f')]({},_0x57e345,_0x5765c1[_0x590572('0xa')]);const _0x2f1089={'where':_0x57e345[_0x590572('0xb')]};return db[_0x590572('0x19')][_0x590572('0xe')](_0x2f1089)[_0x590572('0x12')](function(_0x30b380){const _0x13b980=_0x590572;return _0x98dfda[_0x13b980('0xe')]=_0x30b380,_0x5765c1['query'][_0x13b980('0x2f')]&&(_0x57e345[_0x13b980('0x28')]=[{'all':!![]}]),db[_0x13b980('0x19')][_0x13b980('0x11')](_0x57e345);})[_0x590572('0x12')](function(_0xf2c75b){return _0x98dfda['rows']=_0xf2c75b,_0x98dfda;})[_0x590572('0x12')](respondWithFilteredResult(_0x8c0778,_0x57e345))[_0x590572('0x6')](handleError(_0x8c0778,null));},exports[_0x5872d9('0x22')]=function(_0x4c53ef,_0x5459ad){const _0x389ff4=_0x5872d9;let _0x3fdc27={'raw':!![],'where':{'id':_0x4c53ef['params']['id']}};const _0x526255={};return _0x526255[_0x389ff4('0x5')]=_[_0x389ff4('0x7')](db['ChatTransferReport'][_0x389ff4('0x17')]),_0x526255[_0x389ff4('0x1b')]=_[_0x389ff4('0x7')](_0x4c53ef['query']),_0x526255[_0x389ff4('0x1')]=_['intersection'](_0x526255[_0x389ff4('0x5')],_0x526255['query']),_0x3fdc27['attributes']=_[_0x389ff4('0x15')](_0x526255['model'],qs[_0x389ff4('0x33')](_0x4c53ef[_0x389ff4('0x1b')][_0x389ff4('0x33')])),_0x3fdc27[_0x389ff4('0xf')]=_0x3fdc27[_0x389ff4('0xf')]['length']?_0x3fdc27[_0x389ff4('0xf')]:_0x526255[_0x389ff4('0x5')],_0x4c53ef[_0x389ff4('0x1b')]['includeAll']&&(_0x3fdc27[_0x389ff4('0x28')]=[{'all':!![]}]),_0x3fdc27=_[_0x389ff4('0x1f')]({},_0x3fdc27,_0x4c53ef[_0x389ff4('0xa')]),db['ChatTransferReport'][_0x389ff4('0x3')](_0x3fdc27)['then'](handleEntityNotFound(_0x5459ad,null))['then'](respondWithResult(_0x5459ad,null))['catch'](handleError(_0x5459ad,null));},exports[_0x5872d9('0x30')]=function(_0x268e40,_0x52c6b1){const _0x1d6967=_0x5872d9;return db[_0x1d6967('0x19')][_0x1d6967('0x30')](_0x268e40['body'],{})[_0x1d6967('0x12')](respondWithResult(_0x52c6b1,0xc9))[_0x1d6967('0x6')](handleError(_0x52c6b1,null));},exports[_0x5872d9('0x1d')]=function(_0x3ca0f8,_0x48d781){const _0x493b99=_0x5872d9;return _0x3ca0f8['body']['id']&&delete _0x3ca0f8[_0x493b99('0x23')]['id'],db['ChatTransferReport'][_0x493b99('0x3')]({'where':{'id':_0x3ca0f8[_0x493b99('0x34')]['id']}})[_0x493b99('0x12')](handleEntityNotFound(_0x48d781,null))['then'](saveUpdates(_0x3ca0f8[_0x493b99('0x23')],null))[_0x493b99('0x12')](respondWithResult(_0x48d781,null))[_0x493b99('0x6')](handleError(_0x48d781,null));},exports[_0x5872d9('0x13')]=function(_0x1a4b66,_0x347982){const _0x562e9f=_0x5872d9;return db['ChatTransferReport']['findOne']({'where':{'id':_0x1a4b66[_0x562e9f('0x34')]['id']}})[_0x562e9f('0x12')](handleEntityNotFound(_0x347982,null))[_0x562e9f('0x12')](removeEntity(_0x347982,null))['catch'](handleError(_0x347982,null));},exports[_0x5872d9('0x1e')]=function(_0x2f2fdd,_0x5cd4bb){const _0x106d65=_0x5872d9;return db[_0x106d65('0x19')][_0x106d65('0x1e')]()['then'](respondWithResult(_0x5cd4bb,null))['catch'](handleError(_0x5cd4bb,null));}; \ No newline at end of file +const a128_0x8e17=['update','filter','model','../../mysqldb','limit','fields','intersection','stack','VIRTUAL','destroy','api','send','end','../../config/logger','keys','sort','name','ChatTransferReport','body','map','catch','filters','describe','count','nolimit','sendStatus','includeAll','json','create','error','length','query','set','show','where','pick','../../components/parsers/qs','include','then','status','attributes','index','key','offset','options','params','merge','findOne','rawAttributes','sequelize','order'];(function(_0x361838,_0x4fad0b){const _0x8e173b=function(_0x30c30c){while(--_0x30c30c){_0x361838['push'](_0x361838['shift']());}};_0x8e173b(++_0x4fad0b);}(a128_0x8e17,0xe9));const a128_0x30c3=function(_0x361838,_0x4fad0b){_0x361838=_0x361838-0x8c;let _0x8e173b=a128_0x8e17[_0x361838];return _0x8e173b;};const a128_0x15a7bc=a128_0x30c3;'use strict';const _=require('lodash'),qs=require(a128_0x15a7bc(0x93)),logger=require(a128_0x15a7bc(0xaf))(a128_0x15a7bc(0xac)),{db}=require(a128_0x15a7bc(0xa5)),{Op}=require(a128_0x15a7bc(0xa0));function respondWithResult(_0x4cdd8a,_0x571864){return _0x571864=_0x571864||0xc8,function(_0x4649e9){const _0x531f88=a128_0x30c3;if(_0x4649e9)return _0x4cdd8a[_0x531f88(0x96)](_0x571864)['json'](_0x4649e9);};}function respondWithFilteredResult(_0x4ac5b8,_0x1422b8){return function(_0x591164){const _0x35f03b=a128_0x30c3;if(_0x591164){const _0x79b19d=_0x591164[_0x35f03b(0xb9)],_0x5e581c=_0x1422b8['offset'];let _0x3754b0=_0x1422b8['offset']+_0x1422b8[_0x35f03b(0xa6)],_0x1e19d7;return _0x3754b0>=_0x79b19d?(_0x3754b0=_0x79b19d,_0x1e19d7=0xc8):_0x1e19d7=0xce,_0x4ac5b8[_0x35f03b(0x96)](_0x1e19d7),_0x4ac5b8[_0x35f03b(0x8f)]('Content-Range',_0x5e581c+'-'+_0x3754b0+'/'+_0x79b19d)[_0x35f03b(0xbd)](_0x591164);}return null;};}function saveUpdates(_0x5407b6){return function(_0x2ca921){const _0x43e925=a128_0x30c3;if(_0x2ca921)return _0x2ca921[_0x43e925(0xa2)](_0x5407b6)[_0x43e925(0x95)](function(_0x2a0561){return _0x2a0561;});return null;};}function removeEntity(_0x5a8f60){return function(_0x446630){const _0x2f1156=a128_0x30c3;if(_0x446630)return _0x446630[_0x2f1156(0xab)]()['then'](function(){const _0x1272f6=_0x2f1156;_0x5a8f60['status'](0xcc)[_0x1272f6(0xae)]();});};}function handleEntityNotFound(_0x17573d){return function(_0xa6e82a){const _0x3bf03c=a128_0x30c3;return!_0xa6e82a&&_0x17573d[_0x3bf03c(0xbb)](0x194),_0xa6e82a;};}function handleError(_0x2f4692,_0x12f1ec){return _0x12f1ec=_0x12f1ec||0x1f4,function(_0x4bc55d){const _0x544b00=a128_0x30c3;logger[_0x544b00(0x8c)](_0x4bc55d[_0x544b00(0xa9)]),_0x4bc55d[_0x544b00(0xb2)]&&delete _0x4bc55d[_0x544b00(0xb2)],_0x2f4692[_0x544b00(0x96)](_0x12f1ec)[_0x544b00(0xad)](_0x4bc55d);};}exports[a128_0x15a7bc(0x98)]=function(_0x5c87d0,_0x3d8619){const _0x194057=a128_0x15a7bc;let _0x30711e={};const _0x214ef4={},_0x5705a8={'count':0x0,'rows':[]},_0x5cef88=_[_0x194057(0xb5)](db[_0x194057(0xb3)][_0x194057(0x9f)],function(_0x583b8c){const _0x38a313=_0x194057;return{'name':_0x583b8c['fieldName'],'type':_0x583b8c['type'][_0x38a313(0x99)]};});_0x214ef4[_0x194057(0xa4)]=_[_0x194057(0xb5)](_0x5cef88,'name'),_0x214ef4[_0x194057(0x8e)]=_[_0x194057(0xb0)](_0x5c87d0['query']),_0x214ef4[_0x194057(0xb7)]=_[_0x194057(0xa8)](_0x214ef4[_0x194057(0xa4)],_0x214ef4[_0x194057(0x8e)]),_0x30711e['attributes']=_[_0x194057(0xa8)](_0x214ef4[_0x194057(0xa4)],qs['fields'](_0x5c87d0['query']['fields'])),_0x30711e[_0x194057(0x97)]=_0x30711e[_0x194057(0x97)]['length']?_0x30711e[_0x194057(0x97)]:_0x214ef4['model'];typeof _0x5c87d0['query'][_0x194057(0xba)]==='undefined'&&(_0x30711e['limit']=qs[_0x194057(0xa6)](_0x5c87d0[_0x194057(0x8e)][_0x194057(0xa6)]),_0x30711e['offset']=qs[_0x194057(0x9a)](_0x5c87d0['query'][_0x194057(0x9a)]));_0x30711e[_0x194057(0xa1)]=qs[_0x194057(0xb1)](_0x5c87d0[_0x194057(0x8e)]['sort']),_0x30711e[_0x194057(0x91)]=qs[_0x194057(0xb7)](_[_0x194057(0x92)](_0x5c87d0['query'],_0x214ef4[_0x194057(0xb7)]),_0x5cef88);_0x5c87d0[_0x194057(0x8e)][_0x194057(0xa3)]&&(_0x30711e[_0x194057(0x91)]=_['merge'](_0x30711e[_0x194057(0x91)],{[Op['or']]:_[_0x194057(0xb5)](_0x5cef88,function(_0xadd69a){const _0x19506d=_0x194057;if(_0xadd69a['type']!==_0x19506d(0xaa)){const _0x1826c6={};return _0x1826c6[_0xadd69a[_0x19506d(0xb2)]]={[Op['like']]:'%'+_0x5c87d0[_0x19506d(0x8e)][_0x19506d(0xa3)]+'%'},_0x1826c6;}})}));_0x30711e=_[_0x194057(0x9d)]({},_0x30711e,_0x5c87d0[_0x194057(0x9b)]);const _0x3142d3={'where':_0x30711e[_0x194057(0x91)]};return db[_0x194057(0xb3)][_0x194057(0xb9)](_0x3142d3)[_0x194057(0x95)](function(_0x432e3f){const _0x5dc035=_0x194057;return _0x5705a8[_0x5dc035(0xb9)]=_0x432e3f,_0x5c87d0[_0x5dc035(0x8e)][_0x5dc035(0xbc)]&&(_0x30711e[_0x5dc035(0x94)]=[{'all':!![]}]),db[_0x5dc035(0xb3)]['findAll'](_0x30711e);})[_0x194057(0x95)](function(_0x51a6dd){return _0x5705a8['rows']=_0x51a6dd,_0x5705a8;})[_0x194057(0x95)](respondWithFilteredResult(_0x3d8619,_0x30711e))[_0x194057(0xb6)](handleError(_0x3d8619,null));},exports[a128_0x15a7bc(0x90)]=function(_0x7bde26,_0xdf27a7){const _0x2abae7=a128_0x15a7bc;let _0x5941ca={'raw':!![],'where':{'id':_0x7bde26[_0x2abae7(0x9c)]['id']}};const _0x399ac0={};return _0x399ac0['model']=_[_0x2abae7(0xb0)](db[_0x2abae7(0xb3)]['rawAttributes']),_0x399ac0[_0x2abae7(0x8e)]=_[_0x2abae7(0xb0)](_0x7bde26[_0x2abae7(0x8e)]),_0x399ac0['filters']=_[_0x2abae7(0xa8)](_0x399ac0[_0x2abae7(0xa4)],_0x399ac0['query']),_0x5941ca[_0x2abae7(0x97)]=_[_0x2abae7(0xa8)](_0x399ac0[_0x2abae7(0xa4)],qs[_0x2abae7(0xa7)](_0x7bde26[_0x2abae7(0x8e)][_0x2abae7(0xa7)])),_0x5941ca[_0x2abae7(0x97)]=_0x5941ca['attributes'][_0x2abae7(0x8d)]?_0x5941ca[_0x2abae7(0x97)]:_0x399ac0['model'],_0x7bde26[_0x2abae7(0x8e)][_0x2abae7(0xbc)]&&(_0x5941ca[_0x2abae7(0x94)]=[{'all':!![]}]),_0x5941ca=_[_0x2abae7(0x9d)]({},_0x5941ca,_0x7bde26[_0x2abae7(0x9b)]),db[_0x2abae7(0xb3)][_0x2abae7(0x9e)](_0x5941ca)['then'](handleEntityNotFound(_0xdf27a7,null))[_0x2abae7(0x95)](respondWithResult(_0xdf27a7,null))['catch'](handleError(_0xdf27a7,null));},exports[a128_0x15a7bc(0xbe)]=function(_0x29178f,_0x3be5ab){const _0x3e5e42=a128_0x15a7bc;return db[_0x3e5e42(0xb3)][_0x3e5e42(0xbe)](_0x29178f[_0x3e5e42(0xb4)],{})[_0x3e5e42(0x95)](respondWithResult(_0x3be5ab,0xc9))[_0x3e5e42(0xb6)](handleError(_0x3be5ab,null));},exports[a128_0x15a7bc(0xa2)]=function(_0x80b61b,_0x51a157){const _0x5e7813=a128_0x15a7bc;return _0x80b61b[_0x5e7813(0xb4)]['id']&&delete _0x80b61b[_0x5e7813(0xb4)]['id'],db[_0x5e7813(0xb3)][_0x5e7813(0x9e)]({'where':{'id':_0x80b61b[_0x5e7813(0x9c)]['id']}})[_0x5e7813(0x95)](handleEntityNotFound(_0x51a157,null))[_0x5e7813(0x95)](saveUpdates(_0x80b61b[_0x5e7813(0xb4)],null))[_0x5e7813(0x95)](respondWithResult(_0x51a157,null))[_0x5e7813(0xb6)](handleError(_0x51a157,null));},exports[a128_0x15a7bc(0xab)]=function(_0x24d0d9,_0x54ccdd){const _0xf2b6b3=a128_0x15a7bc;return db[_0xf2b6b3(0xb3)][_0xf2b6b3(0x9e)]({'where':{'id':_0x24d0d9[_0xf2b6b3(0x9c)]['id']}})[_0xf2b6b3(0x95)](handleEntityNotFound(_0x54ccdd,null))[_0xf2b6b3(0x95)](removeEntity(_0x54ccdd,null))[_0xf2b6b3(0xb6)](handleError(_0x54ccdd,null));},exports['describe']=function(_0xf3ed99,_0x4be469){const _0x44cdd2=a128_0x15a7bc;return db[_0x44cdd2(0xb3)][_0x44cdd2(0xb8)]()[_0x44cdd2(0x95)](respondWithResult(_0x4be469,null))[_0x44cdd2(0xb6)](handleError(_0x4be469,null));}; \ No newline at end of file diff --git a/server/api/chatTransferReport/chatTransferReport.model.js b/server/api/chatTransferReport/chatTransferReport.model.js index 5553516..3cb3eaf 100644 --- a/server/api/chatTransferReport/chatTransferReport.model.js +++ b/server/api/chatTransferReport/chatTransferReport.model.js @@ -1 +1 @@ -const a108_0xfb9c=['exports','ChatTransferReport','define','uniqueid'];(function(_0xf3ece7,_0xfb9c5d){const _0x5c0325=function(_0x3dbf50){while(--_0x3dbf50){_0xf3ece7['push'](_0xf3ece7['shift']());}};_0x5c0325(++_0xfb9c5d);}(a108_0xfb9c,0x9d));const a108_0x5c03=function(_0xf3ece7,_0xfb9c5d){_0xf3ece7=_0xf3ece7-0x0;let _0x5c0325=a108_0xfb9c[_0xf3ece7];return _0x5c0325;};const _0x28a01f=a108_0x5c03;'use strict';const attributes=require('./chatTransferReport.attributes');module[_0x28a01f('0x3')]=function(_0x3dbf50){const _0x416662=_0x28a01f,_0x131704=_0x3dbf50[_0x416662('0x1')](_0x416662('0x0'),attributes,{'tableName':'report_chat_transfer','paranoid':![],'indexes':[{'name':_0x416662('0x2'),'fields':['uniqueid']}],'timestamps':!![]});return _0x131704;}; \ No newline at end of file +const a129_0x407e=['sequelize','init','function','./chatTransferReport.options','./chatTransferReport.attributes','ChatTransferReport','exports'];(function(_0x30d8a3,_0x4d4095){const _0x407e19=function(_0x4a45dd){while(--_0x4a45dd){_0x30d8a3['push'](_0x30d8a3['shift']());}};_0x407e19(++_0x4d4095);}(a129_0x407e,0x189));const a129_0x4a45=function(_0x30d8a3,_0x4d4095){_0x30d8a3=_0x30d8a3-0xaf;let _0x407e19=a129_0x407e[_0x30d8a3];return _0x407e19;};const a129_0x5223d7=a129_0x4a45;'use strict';const {Model}=require(a129_0x5223d7(0xb5)),{attributes}=require(a129_0x5223d7(0xb2)),{options}=require(a129_0x5223d7(0xb1));class ChatTransferReport extends Model{}function init(_0x58fa6f,_0x53a0b6){const _0x3ca377=a129_0x5223d7,_0x1ff019=options(_0x58fa6f),_0xbff7bf=typeof _0x53a0b6===_0x3ca377(0xb0)?_0x53a0b6(_0x1ff019):_0x1ff019;return ChatTransferReport['init'](attributes,_0xbff7bf),ChatTransferReport;}module[a129_0x5223d7(0xb4)][a129_0x5223d7(0xb3)]=ChatTransferReport,module[a129_0x5223d7(0xb4)][a129_0x5223d7(0xaf)]=init; \ No newline at end of file diff --git a/server/api/chatTransferReport/chatTransferReport.options.js b/server/api/chatTransferReport/chatTransferReport.options.js new file mode 100644 index 0000000..de1a989 --- /dev/null +++ b/server/api/chatTransferReport/chatTransferReport.options.js @@ -0,0 +1 @@ +var a130_0x11b3=['report_chat_transfer','exports','uniqueid'];(function(_0x214ce3,_0x40b85c){var _0x11b3e3=function(_0x34cdae){while(--_0x34cdae){_0x214ce3['push'](_0x214ce3['shift']());}};_0x11b3e3(++_0x40b85c);}(a130_0x11b3,0x12d));var a130_0x34cd=function(_0x214ce3,_0x40b85c){_0x214ce3=_0x214ce3-0x15f;var _0x11b3e3=a130_0x11b3[_0x214ce3];return _0x11b3e3;};var a130_0x283c0c=a130_0x34cd;function options(_0x59641d){var _0x264336=a130_0x34cd;return{'sequelize':_0x59641d,'tableName':_0x264336(0x161),'paranoid':![],'indexes':[{'name':_0x264336(0x160),'fields':[_0x264336(0x160)]}],'timestamps':!![]};}module[a130_0x283c0c(0x15f)]['options']=options; \ No newline at end of file diff --git a/server/api/chatTransferReport/index.js b/server/api/chatTransferReport/index.js index 88318c0..da99bc4 100644 --- a/server/api/chatTransferReport/index.js +++ b/server/api/chatTransferReport/index.js @@ -1 +1 @@ -const a109_0x25f2=['post','../../components/auth/service','describe','create','exports','show','Router','./chatTransferReport.controller','isAuthenticated','/:id','put','get','index','destroy','express'];(function(_0x3f4a09,_0x25f2a8){const _0x477fc9=function(_0x45328c){while(--_0x45328c){_0x3f4a09['push'](_0x3f4a09['shift']());}};_0x477fc9(++_0x25f2a8);}(a109_0x25f2,0x9e));const a109_0x477f=function(_0x3f4a09,_0x25f2a8){_0x3f4a09=_0x3f4a09-0x0;let _0x477fc9=a109_0x25f2[_0x3f4a09];return _0x477fc9;};const _0x3a8a44=a109_0x477f;'use strict';const express=require(_0x3a8a44('0x6')),router=express[_0x3a8a44('0xd')](),auth=require(_0x3a8a44('0x8')),controller=require(_0x3a8a44('0xe'));router[_0x3a8a44('0x3')]('/',auth[_0x3a8a44('0x0')](),controller[_0x3a8a44('0x4')]),router[_0x3a8a44('0x3')]('/describe',auth[_0x3a8a44('0x0')](),controller[_0x3a8a44('0x9')]),router[_0x3a8a44('0x3')]('/:id',auth[_0x3a8a44('0x0')](),controller[_0x3a8a44('0xc')]),router[_0x3a8a44('0x7')]('/',auth[_0x3a8a44('0x0')](),controller[_0x3a8a44('0xa')]),router[_0x3a8a44('0x2')]('/:id',auth[_0x3a8a44('0x0')](),controller['update']),router['delete'](_0x3a8a44('0x1'),auth[_0x3a8a44('0x0')](),controller[_0x3a8a44('0x5')]),module[_0x3a8a44('0xb')]=router; \ No newline at end of file +const a131_0x3ef3=['put','../../components/auth/service','index','delete','express','/:id','create','show','describe','destroy','Router','./chatTransferReport.controller','update','get','post','isAuthenticated'];(function(_0x349995,_0x4584e0){const _0x3ef393=function(_0x5fe020){while(--_0x5fe020){_0x349995['push'](_0x349995['shift']());}};_0x3ef393(++_0x4584e0);}(a131_0x3ef3,0x1d5));const a131_0x5fe0=function(_0x349995,_0x4584e0){_0x349995=_0x349995-0x19a;let _0x3ef393=a131_0x3ef3[_0x349995];return _0x3ef393;};const a131_0x1896cd=a131_0x5fe0;'use strict';const express=require(a131_0x1896cd(0x1a9)),router=express[a131_0x1896cd(0x19f)](),auth=require(a131_0x1896cd(0x1a6)),controller=require(a131_0x1896cd(0x1a0));router['get']('/',auth[a131_0x1896cd(0x1a4)](),controller[a131_0x1896cd(0x1a7)]),router[a131_0x1896cd(0x1a2)]('/describe',auth['isAuthenticated'](),controller[a131_0x1896cd(0x19d)]),router[a131_0x1896cd(0x1a2)](a131_0x1896cd(0x19a),auth['isAuthenticated'](),controller[a131_0x1896cd(0x19c)]),router[a131_0x1896cd(0x1a3)]('/',auth[a131_0x1896cd(0x1a4)](),controller[a131_0x1896cd(0x19b)]),router[a131_0x1896cd(0x1a5)](a131_0x1896cd(0x19a),auth[a131_0x1896cd(0x1a4)](),controller[a131_0x1896cd(0x1a1)]),router[a131_0x1896cd(0x1a8)](a131_0x1896cd(0x19a),auth['isAuthenticated'](),controller[a131_0x1896cd(0x19e)]),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 5939e58..27d6589 100644 --- a/server/api/chatWebsite/chatWebsite.attributes.js +++ b/server/api/chatWebsite/chatWebsite.attributes.js @@ -1 +1 @@ -const a110_0x2594=['#ffffff','parse','thumb','INTEGER','star','STRING','getDataValue','textarea','Account:\x20{{account.name}}
    {{#queue}}Queue:\x20{{queue.name}}
    {{/queue}}From\x20:\x20{{from}}','name','Send','TEXT','Feedback','email','input','Skip','onlineForm','#fafafa','address','New\x20offline\x20message\x20from\x20websiteName','Contact\x20us','alternate','mandatoryDisposition','offlineForm','Do\x20you\x20want\x20to\x20close\x20the\x20interaction?','sequelize','Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','All\x20of\x20our\x20agents\x20are\x20busy\x20at\x20this\x20time.\x20Your\x20chat\x20is\x20very\x20important\x20to\x20us.','System','stringify','text','We\x20are\x20here!','Powered\x20by\x20xCALLY','exports','Note','BOOLEAN','Agent','rounded','setDataValue','Thanks\x20you\x20for\x20your\x20time!','Chat','Your\x20request\x20has\x20not\x20been\x20processed.','Leave\x20your\x20comments','Form\x20properly\x20submitted','mandatoryDispositionPauseId'];(function(_0x34b8fc,_0x25949a){const _0xf4e16c=function(_0xe555c6){while(--_0xe555c6){_0x34b8fc['push'](_0x34b8fc['shift']());}};_0xf4e16c(++_0x25949a);}(a110_0x2594,0x8d));const a110_0xf4e1=function(_0x34b8fc,_0x25949a){_0x34b8fc=_0x34b8fc-0x0;let _0xf4e16c=a110_0x2594[_0x34b8fc];return _0xf4e16c;};const _0x26a0a1=a110_0xf4e1;'use strict';const Sequelize=require(_0x26a0a1('0x13')),rs=require('randomstring');module[_0x26a0a1('0x1b')]={'name':{'type':Sequelize[_0x26a0a1('0x2c')],'allowNull':![]},'address':{'type':Sequelize[_0x26a0a1('0x2c')],'allowNull':![],'unique':_0x26a0a1('0xc')},'description':{'type':Sequelize['STRING']},'mapKey':{'type':Sequelize[_0x26a0a1('0x2c')],'defaultValue':'email'},'mapKeyOffline':{'type':Sequelize[_0x26a0a1('0x2c')],'defaultValue':_0x26a0a1('0x7')},'key':{'type':Sequelize[_0x26a0a1('0x2c')],'allowNull':![]},'agentAlias':{'type':Sequelize[_0x26a0a1('0x2c')],'defaultValue':_0x26a0a1('0x1e')},'customerAlias':{'type':Sequelize['STRING'],'defaultValue':'Me'},'color':{'type':Sequelize[_0x26a0a1('0x2c')],'allowNull':![],'defaultValue':'#011F6A','validate':{'notEmpty':!![]}},'color_button':{'type':Sequelize[_0x26a0a1('0x2c')],'allowNull':![],'defaultValue':'#011F6A','validate':{'notEmpty':!![]}},'textColor':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':_0x26a0a1('0x27'),'validate':{'notEmpty':!![]}},'fontSize':{'type':Sequelize[_0x26a0a1('0x2a')],'defaultValue':0xf},'remote':{'type':Sequelize[_0x26a0a1('0x2c')]},'animation':{'type':Sequelize[_0x26a0a1('0x1d')],'defaultValue':!![]},'header_shape':{'type':Sequelize['ENUM'](_0x26a0a1('0x1f'),'squared'),'defaultValue':_0x26a0a1('0x1f')},'header_online':{'type':Sequelize[_0x26a0a1('0x2c')],'defaultValue':_0x26a0a1('0x19')},'start_chat_button':{'type':Sequelize[_0x26a0a1('0x2c')],'defaultValue':_0x26a0a1('0x22')},'offline_chat_button':{'type':Sequelize[_0x26a0a1('0x2c')],'defaultValue':_0x26a0a1('0x4')},'header_offline':{'type':Sequelize['STRING'],'defaultValue':_0x26a0a1('0xe')},'download_transcript':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'timeout':{'type':Sequelize[_0x26a0a1('0x2a')],'defaultValue':0x0},'whiteLabel':{'type':Sequelize['STRING'],'defaultValue':_0x26a0a1('0x1a')},'defaultWhiteLabel':{'type':Sequelize[_0x26a0a1('0x1d')],'defaultValue':!![]},'sitepic':{'type':Sequelize['TEXT']},'closingQuestion':{'type':Sequelize['STRING'],'defaultValue':_0x26a0a1('0x12')},'formSubmitSuccessMessage':{'type':Sequelize[_0x26a0a1('0x2c')],'defaultValue':_0x26a0a1('0x25')},'formSubmitFailureMessage':{'type':Sequelize[_0x26a0a1('0x2c')],'defaultValue':'Form\x20submission\x20error'},'noteTitle':{'type':Sequelize[_0x26a0a1('0x2c')],'defaultValue':_0x26a0a1('0x1c')},'placeholderMessage':{'type':Sequelize['STRING'],'defaultValue':'Type\x20a\x20message'},'closingMessage':{'type':Sequelize[_0x26a0a1('0x2c')],'defaultValue':_0x26a0a1('0x21')},'closingMessageButton':{'type':Sequelize[_0x26a0a1('0x2c')],'defaultValue':_0x26a0a1('0x4')},'skipMessageButton':{'type':Sequelize[_0x26a0a1('0x2c')],'defaultValue':_0x26a0a1('0x9')},'conditionAgreement':{'type':Sequelize[_0x26a0a1('0x1d')],'defaultValue':![]},'enableRating':{'type':Sequelize[_0x26a0a1('0x1d')],'defaultValue':![]},'enableFeedback':{'type':Sequelize[_0x26a0a1('0x1d')],'defaultValue':![]},'enableSendButton':{'type':Sequelize[_0x26a0a1('0x1d')],'defaultValue':![]},'feedbackTitle':{'type':Sequelize[_0x26a0a1('0x2c')],'defaultValue':_0x26a0a1('0x6')},'ratingType':{'type':Sequelize['ENUM'](_0x26a0a1('0x2b'),_0x26a0a1('0x29')),'defaultValue':_0x26a0a1('0x2b')},'ratingStarsNumber':{'type':Sequelize[_0x26a0a1('0x2a')],'defaultValue':0x5},'onlineForm':{'type':Sequelize[_0x26a0a1('0x5')],'defaultValue':function(){const _0xfbab42=_0x26a0a1;return JSON[_0xfbab42('0x17')]({'items':[{'type':_0xfbab42('0x8'),'variable':null,'config':{'placeholder':_0xfbab42('0x3'),'type':_0xfbab42('0x18'),'required':!![]},'props':{'title':_0xfbab42('0x3'),'helpText':''}},{'type':_0xfbab42('0x8'),'props':{'title':_0xfbab42('0x7'),'helpText':''},'config':{'required':!![],'placeholder':_0xfbab42('0x7'),'type':_0xfbab42('0x7')},'variable':null}],'fromKey':0x1});},'get':function(){const _0x476934=_0x26a0a1;return this[_0x476934('0x0')](_0x476934('0xa'))?JSON[_0x476934('0x28')](this[_0x476934('0x0')](_0x476934('0xa'))):{};},'set':function(_0xe555c6){const _0x56e6f3=_0x26a0a1;return this[_0x56e6f3('0x20')](_0x56e6f3('0xa'),JSON['stringify'](_0xe555c6));}},'offlineForm':{'type':Sequelize[_0x26a0a1('0x5')],'defaultValue':function(){const _0x3bfa7a=_0x26a0a1;return JSON['stringify']({'items':[{'type':_0x3bfa7a('0x8'),'props':{'title':_0x3bfa7a('0x7'),'helpText':''},'config':{'required':!![],'placeholder':'email','type':_0x3bfa7a('0x7')},'variable':null},{'type':_0x3bfa7a('0x1'),'config':{'placeholder':'Comments'},'props':{'title':'Comments','helpText':_0x3bfa7a('0x24')}}],'fromKey':0x0});},'get':function(){const _0x35cb6e=_0x26a0a1;return this['getDataValue'](_0x35cb6e('0x11'))?JSON[_0x35cb6e('0x28')](this[_0x35cb6e('0x0')](_0x35cb6e('0x11'))):{};},'set':function(_0xdf9223){const _0x4c6035=_0x26a0a1;return this[_0x4c6035('0x20')](_0x4c6035('0x11'),JSON['stringify'](_0xdf9223));}},'token':{'type':Sequelize[_0x26a0a1('0x2c')],'defaultValue':function(){return rs['generate']();}},'autoclose':{'type':Sequelize[_0x26a0a1('0x1d')],'defaultValue':!![]},'enableCustomerWriting':{'type':Sequelize[_0x26a0a1('0x1d')],'defaultValue':![]},'forwardTranscript':{'type':Sequelize[_0x26a0a1('0x1d')],'defaultValue':![]},'forwardTranscriptMessage':{'type':Sequelize[_0x26a0a1('0x2c')]},'forwardOffline':{'type':Sequelize[_0x26a0a1('0x1d')],'defaultValue':![]},'forwardOfflineAddress':{'type':Sequelize[_0x26a0a1('0x2c')]},'waitingTitle':{'type':Sequelize[_0x26a0a1('0x2c')],'defaultValue':_0x26a0a1('0x15')},'waitingMessage':{'type':Sequelize[_0x26a0a1('0x2c')],'defaultValue':'Please\x20hold\x20and\x20we\x20will\x20answer\x20your\x20request\x20as\x20soon\x20as\x20possible.'},'offlineMessageSubject':{'type':Sequelize[_0x26a0a1('0x2c')],'defaultValue':_0x26a0a1('0xd')},'offlineMessageBody':{'type':Sequelize[_0x26a0a1('0x2c')],'defaultValue':'You\x20received\x20a\x20new\x20offline\x20message\x20from\x20websiteName.\x20Here\x20you\x20can\x20find\x20the\x20details\x20of\x20the\x20request:'},'enableUnmanagedNote':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'unmanagedMessage':{'type':Sequelize[_0x26a0a1('0x2c')],'defaultValue':_0x26a0a1('0x23')},'skipUnmanaged':{'type':Sequelize[_0x26a0a1('0x2c')],'defaultValue':_0x26a0a1('0x9')},'sendUnmanaged':{'type':Sequelize['STRING'],'defaultValue':_0x26a0a1('0x4')},'enableCustomerAttachment':{'type':Sequelize[_0x26a0a1('0x1d')],'defaultValue':![]},'enableCustomerCheckmarks':{'type':Sequelize[_0x26a0a1('0x1d')],'defaultValue':![]},'agentAvatar':{'type':Sequelize[_0x26a0a1('0x5')]},'showAgentAvatar':{'type':Sequelize[_0x26a0a1('0x1d')],'defaultValue':![]},'timezone':{'type':Sequelize['STRING']},'notificationTemplate':{'type':Sequelize[_0x26a0a1('0x5')],'defaultValue':function(){const _0x438f35=_0x26a0a1;return _0x438f35('0x2');}},'notificationSound':{'type':Sequelize[_0x26a0a1('0x1d')],'defaultValue':!![]},'notificationShake':{'type':Sequelize[_0x26a0a1('0x1d')],'defaultValue':![]},'hideWhenOffline':{'type':Sequelize[_0x26a0a1('0x1d')],'defaultValue':![]},'agentIdentifier':{'type':Sequelize[_0x26a0a1('0x2c')],'defaultValue':'website_alias'},'waitForTheAssignedAgent':{'type':Sequelize[_0x26a0a1('0x2a')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'alignment':{'type':Sequelize[_0x26a0a1('0x2c')],'defaultValue':'bottom_right'},'verticalAlignment':{'type':Sequelize[_0x26a0a1('0x2a')],'defaultValue':0x1e},'messagesAlignment':{'type':Sequelize[_0x26a0a1('0x2c')],'defaultValue':_0x26a0a1('0xf')},'defaultTitle':{'type':Sequelize[_0x26a0a1('0x2c')]},'customerAvatar':{'type':Sequelize['TEXT']},'showCustomerAvatar':{'type':Sequelize[_0x26a0a1('0x1d')],'defaultValue':![]},'messageFontSize':{'type':Sequelize[_0x26a0a1('0x2a')],'defaultValue':0xc},'backgroundColor':{'type':Sequelize[_0x26a0a1('0x2c')],'allowNull':![],'defaultValue':_0x26a0a1('0xb'),'validate':{'notEmpty':!![]}},'queueTransfer':{'type':Sequelize[_0x26a0a1('0x1d')],'defaultValue':![]},'queueTransferTimeout':{'type':Sequelize['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':Sequelize[_0x26a0a1('0x1d')],'defaultValue':![]},'agentTransferTimeout':{'type':Sequelize[_0x26a0a1('0x2a')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'systemAlias':{'type':Sequelize[_0x26a0a1('0x2c')],'defaultValue':_0x26a0a1('0x16')},'systemAvatar':{'type':Sequelize[_0x26a0a1('0x5')]},'mandatoryDispositionPauseId':{'type':Sequelize[_0x26a0a1('0x2a')],'comment':'Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled'},'mandatoryDisposition':{'type':Sequelize['BOOLEAN'],'defaultValue':![],'comment':_0x26a0a1('0x14'),'set':function(_0x450c1a){const _0x13e240=_0x26a0a1;if(!_0x450c1a)this[_0x13e240('0x20')](_0x13e240('0x26'),null);this[_0x13e240('0x20')](_0x13e240('0x10'),_0x450c1a);}},'vidaooEscalation':{'type':Sequelize[_0x26a0a1('0x1d')],'defaultValue':![]},'vidaooApiKey':{'type':Sequelize[_0x26a0a1('0x2c')],'defaultValue':![]}}; \ No newline at end of file +const a132_0x3f4f=['#fafafa','offlineForm','getDataValue','attributes','exports','Thanks\x20you\x20for\x20your\x20time!','Comments','mandatoryDispositionPauseId','Powered\x20by\x20xCALLY','You\x20received\x20a\x20new\x20offline\x20message\x20from\x20websiteName.\x20Here\x20you\x20can\x20find\x20the\x20details\x20of\x20the\x20request:','Contact\x20us','setDataValue','onlineForm','website_alias','Do\x20you\x20want\x20to\x20close\x20the\x20interaction?','We\x20are\x20here!','Chat','STRING','parse','Type\x20a\x20message','Send','alternate','mandatoryDisposition','Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled','name','star','Account:\x20{{account.name}}
    {{#queue}}Queue:\x20{{queue.name}}
    {{/queue}}From\x20:\x20{{from}}','Feedback','generate','Skip','Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','BOOLEAN','#011F6A','Leave\x20your\x20comments','squared','Form\x20properly\x20submitted','New\x20offline\x20message\x20from\x20websiteName','input','ENUM','Note','INTEGER','System','stringify','email','TEXT','rounded','thumb','text','randomstring'];(function(_0x5c15e4,_0x1b54b7){const _0x3f4f24=function(_0x298e19){while(--_0x298e19){_0x5c15e4['push'](_0x5c15e4['shift']());}};_0x3f4f24(++_0x1b54b7);}(a132_0x3f4f,0x6a));const a132_0x298e=function(_0x5c15e4,_0x1b54b7){_0x5c15e4=_0x5c15e4-0xca;let _0x3f4f24=a132_0x3f4f[_0x5c15e4];return _0x3f4f24;};const a132_0xdea870=a132_0x298e;'use strict';const {DataTypes}=require('sequelize'),rs=require(a132_0xdea870(0xf2)),attributes={'name':{'type':DataTypes['STRING'],'allowNull':![]},'address':{'type':DataTypes[a132_0xdea870(0xd3)],'allowNull':![],'unique':'address'},'description':{'type':DataTypes['STRING']},'mapKey':{'type':DataTypes[a132_0xdea870(0xd3)],'defaultValue':a132_0xdea870(0xed)},'mapKeyOffline':{'type':DataTypes[a132_0xdea870(0xd3)],'defaultValue':a132_0xdea870(0xed)},'key':{'type':DataTypes[a132_0xdea870(0xd3)],'allowNull':![]},'agentAlias':{'type':DataTypes[a132_0xdea870(0xd3)],'defaultValue':'Agent'},'customerAlias':{'type':DataTypes[a132_0xdea870(0xd3)],'defaultValue':'Me'},'color':{'type':DataTypes[a132_0xdea870(0xd3)],'allowNull':![],'defaultValue':'#011F6A','validate':{'notEmpty':!![]}},'color_button':{'type':DataTypes['STRING'],'allowNull':![],'defaultValue':a132_0xdea870(0xe2),'validate':{'notEmpty':!![]}},'textColor':{'type':DataTypes[a132_0xdea870(0xd3)],'allowNull':![],'defaultValue':'#ffffff','validate':{'notEmpty':!![]}},'fontSize':{'type':DataTypes[a132_0xdea870(0xea)],'defaultValue':0xf},'remote':{'type':DataTypes[a132_0xdea870(0xd3)]},'animation':{'type':DataTypes[a132_0xdea870(0xe1)],'defaultValue':!![]},'header_shape':{'type':DataTypes[a132_0xdea870(0xe8)](a132_0xdea870(0xef),a132_0xdea870(0xe4)),'defaultValue':'rounded'},'header_online':{'type':DataTypes[a132_0xdea870(0xd3)],'defaultValue':a132_0xdea870(0xd1)},'start_chat_button':{'type':DataTypes['STRING'],'defaultValue':a132_0xdea870(0xd2)},'offline_chat_button':{'type':DataTypes['STRING'],'defaultValue':a132_0xdea870(0xd6)},'header_offline':{'type':DataTypes['STRING'],'defaultValue':a132_0xdea870(0xcc)},'download_transcript':{'type':DataTypes['BOOLEAN'],'defaultValue':!![]},'timeout':{'type':DataTypes[a132_0xdea870(0xea)],'defaultValue':0x0},'whiteLabel':{'type':DataTypes[a132_0xdea870(0xd3)],'defaultValue':a132_0xdea870(0xca)},'defaultWhiteLabel':{'type':DataTypes['BOOLEAN'],'defaultValue':!![]},'sitepic':{'type':DataTypes['TEXT']},'closingQuestion':{'type':DataTypes[a132_0xdea870(0xd3)],'defaultValue':a132_0xdea870(0xd0)},'formSubmitSuccessMessage':{'type':DataTypes[a132_0xdea870(0xd3)],'defaultValue':a132_0xdea870(0xe5)},'formSubmitFailureMessage':{'type':DataTypes[a132_0xdea870(0xd3)],'defaultValue':'Form\x20submission\x20error'},'noteTitle':{'type':DataTypes[a132_0xdea870(0xd3)],'defaultValue':a132_0xdea870(0xe9)},'placeholderMessage':{'type':DataTypes[a132_0xdea870(0xd3)],'defaultValue':a132_0xdea870(0xd5)},'closingMessage':{'type':DataTypes[a132_0xdea870(0xd3)],'defaultValue':a132_0xdea870(0xf8)},'closingMessageButton':{'type':DataTypes[a132_0xdea870(0xd3)],'defaultValue':a132_0xdea870(0xd6)},'skipMessageButton':{'type':DataTypes[a132_0xdea870(0xd3)],'defaultValue':a132_0xdea870(0xdf)},'conditionAgreement':{'type':DataTypes[a132_0xdea870(0xe1)],'defaultValue':![]},'enableRating':{'type':DataTypes['BOOLEAN'],'defaultValue':![]},'enableFeedback':{'type':DataTypes[a132_0xdea870(0xe1)],'defaultValue':![]},'enableSendButton':{'type':DataTypes['BOOLEAN'],'defaultValue':![]},'feedbackTitle':{'type':DataTypes[a132_0xdea870(0xd3)],'defaultValue':a132_0xdea870(0xdd)},'ratingType':{'type':DataTypes[a132_0xdea870(0xe8)](a132_0xdea870(0xdb),a132_0xdea870(0xf0)),'defaultValue':'star'},'ratingStarsNumber':{'type':DataTypes[a132_0xdea870(0xea)],'defaultValue':0x5},'onlineForm':{'type':DataTypes[a132_0xdea870(0xee)],'defaultValue':function(){const _0x54f17d=a132_0xdea870;return JSON[_0x54f17d(0xec)]({'items':[{'type':_0x54f17d(0xe7),'variable':null,'config':{'placeholder':_0x54f17d(0xda),'type':_0x54f17d(0xf1),'required':!![]},'props':{'title':_0x54f17d(0xda),'helpText':''}},{'type':_0x54f17d(0xe7),'props':{'title':_0x54f17d(0xed),'helpText':''},'config':{'required':!![],'placeholder':'email','type':'email'},'variable':null}],'fromKey':0x1});},'get':function(){const _0x41ce26=a132_0xdea870;return this[_0x41ce26(0xf5)](_0x41ce26(0xce))?JSON['parse'](this[_0x41ce26(0xf5)]('onlineForm')):{};},'set':function(_0x3de0a0){const _0x592516=a132_0xdea870;return this['setDataValue'](_0x592516(0xce),JSON[_0x592516(0xec)](_0x3de0a0));}},'offlineForm':{'type':DataTypes['TEXT'],'defaultValue':function(){const _0x2f4d82=a132_0xdea870;return JSON[_0x2f4d82(0xec)]({'items':[{'type':_0x2f4d82(0xe7),'props':{'title':_0x2f4d82(0xed),'helpText':''},'config':{'required':!![],'placeholder':_0x2f4d82(0xed),'type':_0x2f4d82(0xed)},'variable':null},{'type':'textarea','config':{'placeholder':'Comments'},'props':{'title':_0x2f4d82(0xf9),'helpText':_0x2f4d82(0xe3)}}],'fromKey':0x0});},'get':function(){const _0x38d583=a132_0xdea870;return this[_0x38d583(0xf5)](_0x38d583(0xf4))?JSON[_0x38d583(0xd4)](this['getDataValue'](_0x38d583(0xf4))):{};},'set':function(_0x13643a){const _0x5e1865=a132_0xdea870;return this[_0x5e1865(0xcd)]('offlineForm',JSON['stringify'](_0x13643a));}},'token':{'type':DataTypes[a132_0xdea870(0xd3)],'defaultValue':function(){const _0xff5746=a132_0xdea870;return rs[_0xff5746(0xde)]();}},'autoclose':{'type':DataTypes[a132_0xdea870(0xe1)],'defaultValue':!![]},'enableCustomerWriting':{'type':DataTypes[a132_0xdea870(0xe1)],'defaultValue':![]},'forwardTranscript':{'type':DataTypes['BOOLEAN'],'defaultValue':![]},'forwardTranscriptMessage':{'type':DataTypes[a132_0xdea870(0xd3)]},'forwardOffline':{'type':DataTypes[a132_0xdea870(0xe1)],'defaultValue':![]},'forwardOfflineAddress':{'type':DataTypes['STRING']},'waitingTitle':{'type':DataTypes[a132_0xdea870(0xd3)],'defaultValue':'All\x20of\x20our\x20agents\x20are\x20busy\x20at\x20this\x20time.\x20Your\x20chat\x20is\x20very\x20important\x20to\x20us.'},'waitingMessage':{'type':DataTypes['STRING'],'defaultValue':'Please\x20hold\x20and\x20we\x20will\x20answer\x20your\x20request\x20as\x20soon\x20as\x20possible.'},'offlineMessageSubject':{'type':DataTypes[a132_0xdea870(0xd3)],'defaultValue':a132_0xdea870(0xe6)},'offlineMessageBody':{'type':DataTypes[a132_0xdea870(0xd3)],'defaultValue':a132_0xdea870(0xcb)},'enableUnmanagedNote':{'type':DataTypes['BOOLEAN'],'defaultValue':!![]},'unmanagedMessage':{'type':DataTypes['STRING'],'defaultValue':'Your\x20request\x20has\x20not\x20been\x20processed.'},'skipUnmanaged':{'type':DataTypes['STRING'],'defaultValue':'Skip'},'sendUnmanaged':{'type':DataTypes[a132_0xdea870(0xd3)],'defaultValue':a132_0xdea870(0xd6)},'enableCustomerAttachment':{'type':DataTypes['BOOLEAN'],'defaultValue':![]},'enableCustomerCheckmarks':{'type':DataTypes[a132_0xdea870(0xe1)],'defaultValue':![]},'agentAvatar':{'type':DataTypes[a132_0xdea870(0xee)]},'showAgentAvatar':{'type':DataTypes[a132_0xdea870(0xe1)],'defaultValue':![]},'timezone':{'type':DataTypes[a132_0xdea870(0xd3)]},'notificationTemplate':{'type':DataTypes[a132_0xdea870(0xee)],'defaultValue':function(){const _0x5215f8=a132_0xdea870;return _0x5215f8(0xdc);}},'notificationSound':{'type':DataTypes['BOOLEAN'],'defaultValue':!![]},'notificationShake':{'type':DataTypes[a132_0xdea870(0xe1)],'defaultValue':![]},'hideWhenOffline':{'type':DataTypes['BOOLEAN'],'defaultValue':![]},'agentIdentifier':{'type':DataTypes[a132_0xdea870(0xd3)],'defaultValue':a132_0xdea870(0xcf)},'waitForTheAssignedAgent':{'type':DataTypes[a132_0xdea870(0xea)],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'alignment':{'type':DataTypes[a132_0xdea870(0xd3)],'defaultValue':'bottom_right'},'verticalAlignment':{'type':DataTypes[a132_0xdea870(0xea)],'defaultValue':0x1e},'messagesAlignment':{'type':DataTypes[a132_0xdea870(0xd3)],'defaultValue':a132_0xdea870(0xd7)},'defaultTitle':{'type':DataTypes[a132_0xdea870(0xd3)]},'customerAvatar':{'type':DataTypes['TEXT']},'showCustomerAvatar':{'type':DataTypes[a132_0xdea870(0xe1)],'defaultValue':![]},'messageFontSize':{'type':DataTypes[a132_0xdea870(0xea)],'defaultValue':0xc},'backgroundColor':{'type':DataTypes[a132_0xdea870(0xd3)],'allowNull':![],'defaultValue':a132_0xdea870(0xf3),'validate':{'notEmpty':!![]}},'queueTransfer':{'type':DataTypes['BOOLEAN'],'defaultValue':![]},'queueTransferTimeout':{'type':DataTypes['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':DataTypes[a132_0xdea870(0xe1)],'defaultValue':![]},'agentTransferTimeout':{'type':DataTypes[a132_0xdea870(0xea)],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'systemAlias':{'type':DataTypes[a132_0xdea870(0xd3)],'defaultValue':a132_0xdea870(0xeb)},'systemAvatar':{'type':DataTypes['TEXT']},'mandatoryDispositionPauseId':{'type':DataTypes[a132_0xdea870(0xea)],'comment':a132_0xdea870(0xd9)},'mandatoryDisposition':{'type':DataTypes[a132_0xdea870(0xe1)],'defaultValue':![],'comment':a132_0xdea870(0xe0),'set':function(_0x503ffc){const _0x1a5c45=a132_0xdea870;if(!_0x503ffc)this[_0x1a5c45(0xcd)](_0x1a5c45(0xfa),null);this[_0x1a5c45(0xcd)](_0x1a5c45(0xd8),_0x503ffc);}},'vidaooEscalation':{'type':DataTypes[a132_0xdea870(0xe1)],'defaultValue':![]},'vidaooApiKey':{'type':DataTypes['STRING'],'defaultValue':![]}};module[a132_0xdea870(0xf7)][a132_0xdea870(0xf6)]=attributes; \ No newline at end of file diff --git a/server/api/chatWebsite/chatWebsite.controller.js b/server/api/chatWebsite/chatWebsite.controller.js index 78e206a..fa7f530 100644 --- a/server/api/chatWebsite/chatWebsite.controller.js +++ b/server/api/chatWebsite/chatWebsite.controller.js @@ -1 +1 @@ -const a111_0x542a=['root','ChatWebsite,\x20%s,\x20%s','describe','where','index','AttachmentId','unknown','download','OFFLINE','ids','offlineForm','request\x20sent','json','removeDispositions','tag','Interval','systemAvatar','items','role','color','Applications','some','update','unmanaged','email','virtual','iftime\x20%s,%s','true','forcedOwnership','destroy','ChatWebsites','isNil','service','Start','custom','showCustomerAvatar','CannedAnswer','ContactId','CmContact','Contacts','SendMail','CmList','addSystemAvatar','chat','sequelize','version','sendMail','bulkCreate','keys','undefined','port','../../config/license/util','forwardOfflineAddress','files/chat/iframe.js','sendStatus','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','http','asc','Disposition','server/files/images/avatars/','offline','mapKey','getDispositions','fromKey','created','Command','status','addInteraction','VIRTUAL','options','ChatMessage','connection','server/files/images/logos/default_logo.svg','cf-connecting-ip','then','agentAvatar','applications','close','server/files/images/logos/','removeAgents','server/files/images/avatars/default_avatar.png','increment','*,*,*,*','client','ONLINE','List','threadId','querystring','util','findAndCountAll','pick','referer','offlineMessageSubject','findOrCreate','stringify','limit','type','getLogo','getCustomerAvatar','UserProfileSection','getApplications','message','customerAvatar','timezone','Unable\x20to\x20retrieve\x20the\x20current\x20user','rawAttributes','send','secure','push','Pause','verticalAlignment','first','merge','user-agent','no\x20available\x20attributes','difference','x-forwarded-for','query','info','ChatInteraction','Tags','getSnippet','sort','like','set','priority','getInteractions','emit','EventManager','addAgents','format','end','result','getAgents','join','updatedAt','fieldName','removeAnswers','agent','get','textColor','params','authentication','startRouting','rows','messageId','user-agent-parser','sitepic','body','attributes','orderBy','name','from','split','Contact','all','getOfflineMessages','addDisposition','Smtp','getAnswers','catch','server/files/templates/chatOfflineMessage.ejs','ChatWebsiteId','MailServerOut','offset','License','show','User','userProfileId','getResult','fullname','No\x20timezone','mapKeyOffline\x20invalid,\x20please\x20use\x20one\x20of\x20these:\x20','%s\x20%s','addAvatar','notify','body\x20is\x20mandatory\x20and\x20not\x20empty','nolimit','ChatWebsite','length','omit','filter','from\x20is\x20mandatory','addProactiveActions','model','%s\x20%s\x20%s','remote','Content-Range','CompanyId','autoclose','server/files/images/avatars/customer_avatar.png','mapKey\x20is\x20mandatory,\x20please\x20use\x20one\x20of\x20these:\x20','MailAccount','pass','account','externalUrl','ChatApplication','alignment','headers','x-real-ip','customerIp','filters','debug','mapKeyOffline','includes','key','filename','utf8','device','getFields','user','findAll','error','create','UserId','lastName','auth','chatVersion','interaction','intersection','addLogo','getLicense','../../components/parsers/qs','code','Intervals','map','addApplications','internal','../../config/logger','file','order','ListId','include','browser','count','mandatoryDispositionPause','getProactiveActions','../../mysqldb','defaults','./chatWebsite.socket','vendor','ejs','DESC','getAvatar','../../config/environment','findOne','iftime\x20%s','firstName','existsSync','Owner','ChatOfflineMessage','fields','interval','api','userChatWebsite:remove','includeAll','render','contact','createdAt','host','jayson/promise'];(function(_0x321558,_0x542ae7){const _0x50bc14=function(_0x584956){while(--_0x584956){_0x321558['push'](_0x321558['shift']());}};_0x50bc14(++_0x542ae7);}(a111_0x542a,0x1f0));const a111_0x50bc=function(_0x321558,_0x542ae7){_0x321558=_0x321558-0x0;let _0x50bc14=a111_0x542a[_0x321558];return _0x50bc14;};const _0x37b0bc=a111_0x50bc;'use strict';const Mustache=require('mustache'),util=require(_0x37b0bc('0x72')),path=require('path'),ejs=require(_0x37b0bc('0x6')),fs=require('fs'),_=require('lodash'),querystring=require(_0x37b0bc('0x71')),qs=require(_0x37b0bc('0xf8')),logger=require(_0x37b0bc('0xfe'))(_0x37b0bc('0x12')),config=require(_0x37b0bc('0x9')),db=require(_0x37b0bc('0x2'))['db'],{Op,ValidationError}=require(_0x37b0bc('0x46')),{getSocket}=require('../../rediscache'),socket=getSocket();require(_0x37b0bc('0x4'))['register'](socket);const jayson=require(_0x37b0bc('0x19')),client=jayson[_0x37b0bc('0x6d')][_0x37b0bc('0x52')]({'port':0x232c}),client9002=jayson['client'][_0x37b0bc('0x52')]({'port':0x232a}),client9003=jayson[_0x37b0bc('0x6d')]['http']({'port':0x232b});function respondWithRpcPromise(_0x584956,_0x35a8d0,_0x4eb5d2,_0x373b14){return new Promise(function(_0x29ffce,_0x69de9d){const _0x1ffb09=a111_0x50bc,_0x55bce1=_0x373b14||client;return _0x55bce1['request'](_0x584956,_0x4eb5d2)[_0x1ffb09('0x64')](function(_0x4ef7a2){const _0x51ddbb=_0x1ffb09;logger[_0x51ddbb('0x90')]('ChatWebsite,\x20%s,\x20%s',_0x35a8d0,'request\x20sent'),logger[_0x51ddbb('0xe4')]('ChatWebsite,\x20%s,\x20%s,\x20%s',_0x35a8d0,_0x51ddbb('0x25'),JSON[_0x51ddbb('0x78')](_0x4ef7a2));if(_0x4ef7a2[_0x51ddbb('0xee')]){if(_0x4ef7a2[_0x51ddbb('0xee')][_0x51ddbb('0xf9')]===0x1f4)return logger[_0x51ddbb('0xee')]('ChatWebsite,\x20%s,\x20%s',_0x35a8d0,_0x4ef7a2[_0x51ddbb('0xee')][_0x51ddbb('0x7f')]),_0x69de9d(_0x4ef7a2['error'][_0x51ddbb('0x7f')]);return logger[_0x51ddbb('0xee')](_0x51ddbb('0x1b'),_0x35a8d0,_0x4ef7a2[_0x51ddbb('0xee')]['message']),_0x29ffce(_0x4ef7a2[_0x51ddbb('0xee')][_0x51ddbb('0x7f')]);}else logger['info'](_0x51ddbb('0x1b'),_0x35a8d0,_0x51ddbb('0x25')),_0x29ffce(_0x4ef7a2[_0x51ddbb('0x9e')][_0x51ddbb('0x7f')]);})['catch'](function(_0xbc8e0c){const _0x209afd=_0x1ffb09;logger[_0x209afd('0xee')]('ChatWebsite,\x20%s,\x20%s',_0x35a8d0,_0xbc8e0c),_0x69de9d(_0xbc8e0c);});});}function respondWithStatusCode(_0x5985e7,_0x448e33){return _0x448e33=_0x448e33||0xcc,function(_0x23e410){const _0x46f9b3=a111_0x50bc;if(_0x23e410)return _0x5985e7[_0x46f9b3('0x50')](_0x448e33);return _0x5985e7[_0x46f9b3('0x5c')](_0x448e33)['end']();};}function respondWithResult(_0x2bad5d,_0x94c6f4){return _0x94c6f4=_0x94c6f4||0xc8,function(_0x15d564){const _0x43bb22=a111_0x50bc;if(_0x15d564)return _0x2bad5d['status'](_0x94c6f4)[_0x43bb22('0x26')](_0x15d564);};}function respondWithFilteredResult(_0x43a08d,_0xc988c6){return function(_0x558478){const _0x29fd95=a111_0x50bc;if(_0x558478){const _0x8d95f8=_0x558478['count'],_0x296c06=_0xc988c6[_0x29fd95('0xbe')];let _0x20860e=_0xc988c6['offset']+_0xc988c6[_0x29fd95('0x79')],_0xd7eae6;return _0x20860e>=_0x8d95f8?(_0x20860e=_0x8d95f8,_0xd7eae6=0xc8):_0xd7eae6=0xce,_0x43a08d[_0x29fd95('0x5c')](_0xd7eae6),_0x43a08d[_0x29fd95('0x96')](_0x29fd95('0xd5'),_0x296c06+'-'+_0x20860e+'/'+_0x8d95f8)[_0x29fd95('0x26')](_0x558478);}return null;};}function saveUpdates(_0x4a7195){return function(_0x2219d1){const _0xde329f=a111_0x50bc;if(_0x2219d1)return _0x2219d1[_0xde329f('0x30')](_0x4a7195)[_0xde329f('0x64')](function(_0x2b1824){return _0x2b1824;});return null;};}function removeEntity(_0x26f964){return function(_0x4f87c4){const _0x4a735b=a111_0x50bc;if(_0x4f87c4)return _0x4f87c4[_0x4a735b('0x37')]()['then'](function(){const _0x59dd67=_0x4a735b,_0x3e790d=_0x4f87c4[_0x59dd67('0xa5')]({'plain':!![]}),_0x48b458='ChatWebsites';return db['UserProfileResource'][_0x59dd67('0x37')]({'where':{'type':_0x48b458,'resourceId':_0x3e790d['id']}})[_0x59dd67('0x64')](function(){return _0x4f87c4;});})['then'](function(){const _0x1b9cda=_0x4a735b;_0x26f964[_0x1b9cda('0x5c')](0xcc)[_0x1b9cda('0x9d')]();});};}function handleEntityNotFound(_0x495970){return function(_0x5bc9db){const _0x48fee4=a111_0x50bc;return!_0x5bc9db&&_0x495970[_0x48fee4('0x50')](0x194),_0x5bc9db;};}function handleError(_0xb353b4,_0x58805d){return _0x58805d=_0x58805d||0x1f4,function(_0x320588){const _0x1cbd44=a111_0x50bc;logger[_0x1cbd44('0xee')](_0x320588['stack']),_0x320588['name']&&delete _0x320588[_0x1cbd44('0xb1')],_0xb353b4['status'](_0x58805d)['send'](_0x320588);};}exports[_0x37b0bc('0x1e')]=function(_0xb1684b,_0x405fef){const _0x46884e=_0x37b0bc;let _0x1f0934={'include':[{'model':db[_0x46884e('0x87')],'as':_0x46884e('0x0')}]};const _0x5622bb={},_0xaa412a={'count':0x0,'rows':[]},_0x107c05=_[_0x46884e('0xfb')](db['ChatWebsite'][_0x46884e('0x83')],function(_0x505cba){const _0x13430d=_0x46884e;return{'name':_0x505cba[_0x13430d('0xa2')],'type':_0x505cba[_0x13430d('0x7a')][_0x13430d('0xe7')]};});_0x5622bb[_0x46884e('0xd2')]=_[_0x46884e('0xfb')](_0x107c05,_0x46884e('0xb1')),_0x5622bb[_0x46884e('0x8f')]=_[_0x46884e('0x4a')](_0xb1684b[_0x46884e('0x8f')]),_0x5622bb['filters']=_[_0x46884e('0xf5')](_0x5622bb[_0x46884e('0xd2')],_0x5622bb[_0x46884e('0x8f')]),_0x1f0934[_0x46884e('0xaf')]=_[_0x46884e('0xf5')](_0x5622bb[_0x46884e('0xd2')],qs[_0x46884e('0x10')](_0xb1684b[_0x46884e('0x8f')][_0x46884e('0x10')])),_0x1f0934[_0x46884e('0xaf')]=_0x1f0934['attributes'][_0x46884e('0xcd')]?_0x1f0934[_0x46884e('0xaf')]:_0x5622bb[_0x46884e('0xd2')];typeof _0xb1684b[_0x46884e('0x8f')][_0x46884e('0xcb')]===_0x46884e('0x4b')&&(_0x1f0934[_0x46884e('0x79')]=qs['limit'](_0xb1684b[_0x46884e('0x8f')][_0x46884e('0x79')]),_0x1f0934[_0x46884e('0xbe')]=qs[_0x46884e('0xbe')](_0xb1684b[_0x46884e('0x8f')]['offset']));_0x1f0934['order']=qs[_0x46884e('0x94')](_0xb1684b[_0x46884e('0x8f')][_0x46884e('0x94')]),_0x1f0934[_0x46884e('0x1d')]=qs[_0x46884e('0xe3')](_[_0x46884e('0x74')](_0xb1684b['query'],_0x5622bb[_0x46884e('0xe3')]),_0x107c05);_0xb1684b['query']['filter']&&(_0x1f0934[_0x46884e('0x1d')]=_[_0x46884e('0x8a')](_0x1f0934[_0x46884e('0x1d')],{[Op['or']]:_[_0x46884e('0xfb')](_0x107c05,function(_0x4180ef){const _0x48040d=_0x46884e;if(_0x4180ef['type']!==_0x48040d('0x5e')){const _0x1651f3={};return _0x1651f3[_0x4180ef[_0x48040d('0xb1')]]={[Op[_0x48040d('0x95')]]:'%'+_0xb1684b['query']['filter']+'%'},_0x1651f3;}})}));_0x1f0934=_[_0x46884e('0x8a')]({},_0x1f0934,_0xb1684b[_0x46884e('0x5f')]);const _0x176f55={'where':_0x1f0934[_0x46884e('0x1d')]};return db[_0x46884e('0xcc')]['count'](_0x176f55)[_0x46884e('0x64')](function(_0x3003da){const _0x2e31f7=_0x46884e;return _0xaa412a[_0x2e31f7('0x104')]=_0x3003da,_0xb1684b[_0x2e31f7('0x8f')][_0x2e31f7('0x14')]&&(_0x1f0934[_0x2e31f7('0x102')]=[{'all':!![]}]),db[_0x2e31f7('0xcc')]['findAll'](_0x1f0934);})[_0x46884e('0x64')](function(_0x4b60ea){const _0x5ca36c=_0x46884e;return _0xaa412a[_0x5ca36c('0xaa')]=_0x4b60ea,_0xaa412a;})[_0x46884e('0x64')](respondWithFilteredResult(_0x405fef,_0x1f0934))[_0x46884e('0xba')](handleError(_0x405fef,null));},exports[_0x37b0bc('0xc0')]=function(_0x3d9df6,_0x59d76f){const _0x236f13=_0x37b0bc;let _0x491062={'raw':![],'where':{'id':_0x3d9df6[_0x236f13('0xa7')]['id']},'include':[{'model':db['Pause'],'as':_0x236f13('0x0')}]};const _0x14ab5f={};return _0x14ab5f[_0x236f13('0xd2')]=_[_0x236f13('0x4a')](db[_0x236f13('0xcc')][_0x236f13('0x83')]),_0x14ab5f[_0x236f13('0x8f')]=_[_0x236f13('0x4a')](_0x3d9df6[_0x236f13('0x8f')]),_0x14ab5f[_0x236f13('0xe3')]=_[_0x236f13('0xf5')](_0x14ab5f['model'],_0x14ab5f[_0x236f13('0x8f')]),_0x491062['attributes']=_[_0x236f13('0xf5')](_0x14ab5f['model'],qs[_0x236f13('0x10')](_0x3d9df6[_0x236f13('0x8f')]['fields'])),_0x491062[_0x236f13('0xaf')]=_0x491062[_0x236f13('0xaf')][_0x236f13('0xcd')]?_0x491062['attributes']:_0x14ab5f[_0x236f13('0xd2')],_0x3d9df6[_0x236f13('0x8f')]['includeAll']&&(_0x491062[_0x236f13('0x102')]=[{'all':!![]}]),_0x491062=_[_0x236f13('0x8a')]({},_0x491062,_0x3d9df6['options']),db['ChatWebsite'][_0x236f13('0xa')](_0x491062)['then'](handleEntityNotFound(_0x59d76f,null))[_0x236f13('0x64')](respondWithResult(_0x59d76f,null))[_0x236f13('0xba')](handleError(_0x59d76f,null));},exports[_0x37b0bc('0xef')]=function(_0x5bd13d,_0x90e361){const _0x285bba=_0x37b0bc;return db[_0x285bba('0xcc')][_0x285bba('0xef')](_0x5bd13d[_0x285bba('0xae')],{})[_0x285bba('0x64')](function(_0x211984){const _0x113844=_0x285bba,_0x571306=_0x5bd13d['user'][_0x113844('0xa5')]({'plain':!![]});if(!_0x571306)throw new Error(_0x113844('0x82'));if(_0x571306[_0x113844('0x2c')]==='user'){const _0x13c2b5=_0x211984[_0x113844('0xa5')]({'plain':!![]}),_0x27ed85=_0x113844('0x38');return db[_0x113844('0x7d')][_0x113844('0xa')]({'where':{'name':_0x27ed85,'userProfileId':_0x571306[_0x113844('0xc2')]},'raw':!![]})['then'](function(_0x5c3918){const _0x2894a5=_0x113844;return _0x5c3918&&_0x5c3918['autoAssociation']===0x0?db['UserProfileResource'][_0x2894a5('0xef')]({'name':_0x13c2b5[_0x2894a5('0xb1')],'resourceId':_0x13c2b5['id'],'type':_0x5c3918[_0x2894a5('0xb1')],'sectionId':_0x5c3918['id']},{})['then'](function(){return _0x211984;}):_0x211984;})['catch'](function(_0x1e4eb0){const _0x38b825=_0x113844;logger[_0x38b825('0xee')](_0x38b825('0x51'),_0x1e4eb0);throw _0x1e4eb0;});}return _0x211984;})[_0x285bba('0x64')](respondWithResult(_0x90e361,0xc9))[_0x285bba('0xba')](handleError(_0x90e361,null));},exports[_0x37b0bc('0x30')]=function(_0x2ac2b3,_0x569a99){const _0xbd63cf=_0x37b0bc;return _0x2ac2b3[_0xbd63cf('0xae')]['id']&&delete _0x2ac2b3[_0xbd63cf('0xae')]['id'],db[_0xbd63cf('0xcc')][_0xbd63cf('0xa')]({'where':{'id':_0x2ac2b3[_0xbd63cf('0xa7')]['id']},'include':[{'model':db['Pause'],'as':_0xbd63cf('0x0')}]})[_0xbd63cf('0x64')](handleEntityNotFound(_0x569a99,null))['then'](saveUpdates(_0x2ac2b3[_0xbd63cf('0xae')],null))[_0xbd63cf('0x64')](respondWithResult(_0x569a99,null))[_0xbd63cf('0xba')](handleError(_0x569a99,null));},exports[_0x37b0bc('0x37')]=function(_0x53f49c,_0x5bb4bd){const _0x8f2743=_0x37b0bc;return db[_0x8f2743('0xcc')][_0x8f2743('0xa')]({'where':{'id':_0x53f49c[_0x8f2743('0xa7')]['id']}})[_0x8f2743('0x64')](handleEntityNotFound(_0x5bb4bd,null))[_0x8f2743('0x64')](removeEntity(_0x5bb4bd,null))[_0x8f2743('0xba')](handleError(_0x5bb4bd,null));},exports[_0x37b0bc('0x1c')]=function(_0x41f05e,_0x59f0dc){const _0x49122e=_0x37b0bc;return db[_0x49122e('0xcc')][_0x49122e('0x1c')]()[_0x49122e('0x64')](respondWithResult(_0x59f0dc,null))['catch'](handleError(_0x59f0dc,null));},exports[_0x37b0bc('0xb7')]=function(_0x45ef91,_0x485c5a){const _0x53cd61=_0x37b0bc;return _0x45ef91['body']['id']&&delete _0x45ef91[_0x53cd61('0xae')]['id'],db['ChatWebsite'][_0x53cd61('0xa')]({'where':{'id':_0x45ef91[_0x53cd61('0xa7')]['id']}})[_0x53cd61('0x64')](handleEntityNotFound(_0x485c5a,null))[_0x53cd61('0x64')](function(_0x2732cc){const _0x2250df=_0x53cd61;if(_0x2732cc)return _0x45ef91[_0x2250df('0xae')][_0x2250df('0xbc')]=_0x2732cc['id'],db[_0x2250df('0x54')][_0x2250df('0xef')](_0x45ef91[_0x2250df('0xae')]);})[_0x53cd61('0x64')](respondWithResult(_0x485c5a,null))[_0x53cd61('0xba')](handleError(_0x485c5a,null));},exports[_0x37b0bc('0x58')]=function(_0x4b81a4,_0x64bd68){const _0x3d620d=_0x37b0bc;let _0x566c55={'raw':![],'where':{}};const _0x4ff9ff={},_0x80cbba={'count':0x0,'rows':[]};return db['ChatWebsite'][_0x3d620d('0xa')]({'where':{'id':_0x4b81a4['params']['id']}})[_0x3d620d('0x64')](handleEntityNotFound(_0x64bd68,null))[_0x3d620d('0x64')](function(_0x872d10){const _0x9ae307=_0x3d620d;if(_0x872d10)return _0x4ff9ff[_0x9ae307('0xd2')]=_['keys'](db['Disposition'][_0x9ae307('0x83')]),_0x4ff9ff[_0x9ae307('0x8f')]=_[_0x9ae307('0x4a')](_0x4b81a4[_0x9ae307('0x8f')]),_0x4ff9ff['filters']=_[_0x9ae307('0xf5')](_0x4ff9ff[_0x9ae307('0xd2')],_0x4ff9ff[_0x9ae307('0x8f')]),_0x566c55[_0x9ae307('0xaf')]=_[_0x9ae307('0xf5')](_0x4ff9ff[_0x9ae307('0xd2')],qs[_0x9ae307('0x10')](_0x4b81a4[_0x9ae307('0x8f')][_0x9ae307('0x10')])),_0x566c55[_0x9ae307('0xaf')]=_0x566c55[_0x9ae307('0xaf')][_0x9ae307('0xcd')]?_0x566c55[_0x9ae307('0xaf')]:_0x4ff9ff[_0x9ae307('0xd2')],typeof _0x4b81a4[_0x9ae307('0x8f')]['nolimit']===_0x9ae307('0x4b')&&(_0x566c55['limit']=qs[_0x9ae307('0x79')](_0x4b81a4[_0x9ae307('0x8f')]['limit']),_0x566c55[_0x9ae307('0xbe')]=qs[_0x9ae307('0xbe')](_0x4b81a4[_0x9ae307('0x8f')][_0x9ae307('0xbe')])),_0x566c55[_0x9ae307('0x100')]=qs['sort'](_0x4b81a4[_0x9ae307('0x8f')]['sort']),_0x566c55['where']=qs[_0x9ae307('0xe3')](_[_0x9ae307('0x74')](_0x4b81a4[_0x9ae307('0x8f')],_0x4ff9ff[_0x9ae307('0xe3')])),_0x566c55[_0x9ae307('0x1d')][_0x9ae307('0xbc')]=_0x872d10['id'],_0x4b81a4[_0x9ae307('0x8f')][_0x9ae307('0xcf')]&&(_0x566c55['where']=_[_0x9ae307('0x8a')](_0x566c55['where'],{[Op['or']]:_['map'](_0x566c55[_0x9ae307('0xaf')],function(_0x374e57){const _0x1e8e6c=_0x9ae307,_0x54971c={};return _0x54971c[_0x374e57]={[Op[_0x1e8e6c('0x95')]]:'%'+_0x4b81a4['query'][_0x1e8e6c('0xcf')]+'%'},_0x54971c;})})),_0x566c55=_[_0x9ae307('0x8a')]({},_0x566c55,_0x4b81a4[_0x9ae307('0x5f')]),db[_0x9ae307('0x54')][_0x9ae307('0x104')]({'where':_0x566c55[_0x9ae307('0x1d')]})['then'](function(_0x33e926){const _0x39a785=_0x9ae307;return _0x80cbba[_0x39a785('0x104')]=_0x33e926,_0x4b81a4[_0x39a785('0x8f')][_0x39a785('0x14')]&&(_0x566c55['include']=[{'all':!![]}]),db['Disposition'][_0x39a785('0xed')](_0x566c55);})['then'](function(_0xc5d5f3){const _0x5464c6=_0x9ae307;return _0x80cbba[_0x5464c6('0xaa')]=_0xc5d5f3,_0x80cbba;});})['then'](respondWithFilteredResult(_0x64bd68,_0x566c55))[_0x3d620d('0xba')](handleError(_0x64bd68,null));},exports[_0x37b0bc('0x27')]=function(_0x151310,_0x36e19b){const _0x5af1fc=_0x37b0bc;return db[_0x5af1fc('0xcc')][_0x5af1fc('0xa')]({'where':{'id':_0x151310[_0x5af1fc('0xa7')]['id']}})[_0x5af1fc('0x64')](handleEntityNotFound(_0x36e19b,null))['then'](function(_0x1ee92b){const _0x4e1863=_0x5af1fc;if(_0x1ee92b)return _0x1ee92b[_0x4e1863('0x27')](_0x151310[_0x4e1863('0x8f')][_0x4e1863('0x23')]);})[_0x5af1fc('0x64')](respondWithStatusCode(_0x36e19b,null))[_0x5af1fc('0xba')](handleError(_0x36e19b,null));},exports['addAnswer']=function(_0x53ba77,_0x3de735){const _0x5a4b01=_0x37b0bc;return _0x53ba77['body']['id']&&delete _0x53ba77['body']['id'],db[_0x5a4b01('0xcc')]['findOne']({'where':{'id':_0x53ba77[_0x5a4b01('0xa7')]['id']}})[_0x5a4b01('0x64')](handleEntityNotFound(_0x3de735,null))['then'](function(_0x430bf9){const _0x457bd0=_0x5a4b01;if(_0x430bf9)return _0x53ba77[_0x457bd0('0xae')][_0x457bd0('0xbc')]=_0x430bf9['id'],db[_0x457bd0('0x3e')][_0x457bd0('0xef')](_0x53ba77[_0x457bd0('0xae')]);})[_0x5a4b01('0x64')](respondWithResult(_0x3de735,null))['catch'](handleError(_0x3de735,null));},exports[_0x37b0bc('0xb9')]=function(_0x5eb9c7,_0x4fbcb1){const _0x14e7d2=_0x37b0bc;let _0x6f261d={'raw':![],'where':{}};const _0x1b0d17={},_0x8a9a85={'count':0x0,'rows':[]};return db['ChatWebsite'][_0x14e7d2('0xa')]({'where':{'id':_0x5eb9c7[_0x14e7d2('0xa7')]['id']}})[_0x14e7d2('0x64')](handleEntityNotFound(_0x4fbcb1,null))[_0x14e7d2('0x64')](function(_0x190d88){const _0x474360=_0x14e7d2;if(_0x190d88)return _0x1b0d17[_0x474360('0xd2')]=_[_0x474360('0x4a')](db[_0x474360('0x3e')][_0x474360('0x83')]),_0x1b0d17['query']=_[_0x474360('0x4a')](_0x5eb9c7['query']),_0x1b0d17[_0x474360('0xe3')]=_[_0x474360('0xf5')](_0x1b0d17[_0x474360('0xd2')],_0x1b0d17[_0x474360('0x8f')]),_0x6f261d[_0x474360('0xaf')]=_[_0x474360('0xf5')](_0x1b0d17[_0x474360('0xd2')],qs[_0x474360('0x10')](_0x5eb9c7[_0x474360('0x8f')][_0x474360('0x10')])),_0x6f261d[_0x474360('0xaf')]=_0x6f261d[_0x474360('0xaf')][_0x474360('0xcd')]?_0x6f261d['attributes']:_0x1b0d17[_0x474360('0xd2')],typeof _0x5eb9c7[_0x474360('0x8f')]['nolimit']===_0x474360('0x4b')&&(_0x6f261d[_0x474360('0x79')]=qs[_0x474360('0x79')](_0x5eb9c7['query'][_0x474360('0x79')]),_0x6f261d['offset']=qs[_0x474360('0xbe')](_0x5eb9c7[_0x474360('0x8f')][_0x474360('0xbe')])),_0x6f261d[_0x474360('0x100')]=qs['sort'](_0x5eb9c7['query']['sort']),_0x6f261d[_0x474360('0x1d')]=qs[_0x474360('0xe3')](_[_0x474360('0x74')](_0x5eb9c7[_0x474360('0x8f')],_0x1b0d17['filters'])),_0x6f261d['where']['ChatWebsiteId']=_0x190d88['id'],_0x5eb9c7['query'][_0x474360('0xcf')]&&(_0x6f261d['where']=_[_0x474360('0x8a')](_0x6f261d['where'],{[Op['or']]:_[_0x474360('0xfb')](_0x6f261d[_0x474360('0xaf')],function(_0x24c565){const _0x5be9d8=_0x474360,_0x3408b9={};return _0x3408b9[_0x24c565]={[Op['like']]:'%'+_0x5eb9c7['query'][_0x5be9d8('0xcf')]+'%'},_0x3408b9;})})),_0x6f261d=_[_0x474360('0x8a')]({},_0x6f261d,_0x5eb9c7[_0x474360('0x5f')]),db['CannedAnswer'][_0x474360('0x104')]({'where':_0x6f261d['where']})[_0x474360('0x64')](function(_0x583966){const _0xfe5201=_0x474360;return _0x8a9a85[_0xfe5201('0x104')]=_0x583966,_0x5eb9c7[_0xfe5201('0x8f')][_0xfe5201('0x14')]&&(_0x6f261d[_0xfe5201('0x102')]=[{'all':!![]}]),db[_0xfe5201('0x3e')][_0xfe5201('0xed')](_0x6f261d);})[_0x474360('0x64')](function(_0x1ae5d8){const _0x348e91=_0x474360;return _0x8a9a85[_0x348e91('0xaa')]=_0x1ae5d8,_0x8a9a85;});})[_0x14e7d2('0x64')](respondWithFilteredResult(_0x4fbcb1,_0x6f261d))[_0x14e7d2('0xba')](handleError(_0x4fbcb1,null));},exports[_0x37b0bc('0xa3')]=function(_0x3bcbfa,_0x508bd7){const _0x18c72e=_0x37b0bc;return db[_0x18c72e('0xcc')][_0x18c72e('0xa')]({'where':{'id':_0x3bcbfa[_0x18c72e('0xa7')]['id']}})['then'](handleEntityNotFound(_0x508bd7,null))[_0x18c72e('0x64')](function(_0x501034){const _0x3ef077=_0x18c72e;if(_0x501034)return _0x501034[_0x3ef077('0xa3')](_0x3bcbfa[_0x3ef077('0x8f')][_0x3ef077('0x23')]);})[_0x18c72e('0x64')](respondWithStatusCode(_0x508bd7,null))['catch'](handleError(_0x508bd7,null));},exports[_0x37b0bc('0xf6')]=function(_0x5c29a7,_0x2eab0b){const _0x49cf6f=_0x37b0bc;return _0x5c29a7[_0x49cf6f('0xae')]['sitepic']=_0x5c29a7[_0x49cf6f('0xff')]['filename'],db[_0x49cf6f('0xcc')][_0x49cf6f('0xa')]({'where':{'id':_0x5c29a7[_0x49cf6f('0xa7')]['id']}})['then'](handleEntityNotFound(_0x2eab0b,null))[_0x49cf6f('0x64')](saveUpdates(_0x5c29a7['body'],null))['then'](respondWithResult(_0x2eab0b,null))['catch'](handleError(_0x2eab0b,null));},exports[_0x37b0bc('0xc8')]=function(_0x4e7f30,_0x117577){const _0x303358=_0x37b0bc;return _0x4e7f30[_0x303358('0xae')][_0x303358('0x65')]=_0x4e7f30[_0x303358('0xff')]['filename'],db[_0x303358('0xcc')]['findOne']({'where':{'id':_0x4e7f30[_0x303358('0xa7')]['id']}})[_0x303358('0x64')](handleEntityNotFound(_0x117577,null))[_0x303358('0x64')](saveUpdates(_0x4e7f30['body'],null))[_0x303358('0x64')](respondWithResult(_0x117577,null))[_0x303358('0xba')](handleError(_0x117577,null));},exports['addCustomerAvatar']=function(_0x4942f0,_0x278ae1){const _0x2735b7=_0x37b0bc;return _0x4942f0[_0x2735b7('0xae')][_0x2735b7('0x80')]=_0x4942f0['file'][_0x2735b7('0xe8')],db[_0x2735b7('0xcc')]['findOne']({'where':{'id':_0x4942f0[_0x2735b7('0xa7')]['id']}})[_0x2735b7('0x64')](handleEntityNotFound(_0x278ae1,null))[_0x2735b7('0x64')](saveUpdates(_0x4942f0[_0x2735b7('0xae')],null))['then'](respondWithResult(_0x278ae1,null))['catch'](handleError(_0x278ae1,null));},exports[_0x37b0bc('0x44')]=function(_0x15b4e6,_0x5e58c3){const _0x6555dc=_0x37b0bc;return _0x15b4e6['body'][_0x6555dc('0x2a')]=_0x15b4e6[_0x6555dc('0xff')][_0x6555dc('0xe8')],db[_0x6555dc('0xcc')][_0x6555dc('0xa')]({'where':{'id':_0x15b4e6['params']['id']}})['then'](handleEntityNotFound(_0x5e58c3,null))['then'](saveUpdates(_0x15b4e6[_0x6555dc('0xae')],null))['then'](respondWithResult(_0x5e58c3,null))[_0x6555dc('0xba')](handleError(_0x5e58c3,null));},exports[_0x37b0bc('0x7b')]=function(_0x1b739f,_0xb1c3de){const _0xca2ed3=_0x37b0bc;let _0x1ec1c5=path[_0xca2ed3('0xa0')](config['root'],_0xca2ed3('0x62'));const _0x4f8098={'where':{'id':_0x1b739f[_0xca2ed3('0xa7')]['id']},'attributes':['id',_0xca2ed3('0xad')],'raw':!![]};let _0x525496=![];return require('../../config/license/util')[_0xca2ed3('0xf7')]()[_0xca2ed3('0x64')](function(_0x364b90){const _0x5cfda6=_0xca2ed3;_0x364b90&&(_0x525496=_0x364b90[_0x5cfda6('0x3c')]);})['then'](function(){const _0x557399=_0xca2ed3;return db['ChatWebsite'][_0x557399('0xa')](_0x4f8098);})[_0xca2ed3('0x64')](handleEntityNotFound(_0xb1c3de,null))[_0xca2ed3('0x64')](function(_0x1ada36){const _0x566eed=_0xca2ed3;if(_0x1ada36)return!_['isNil'](_0x1ada36[_0x566eed('0xad')])&&(fs['existsSync'](path[_0x566eed('0xa0')](config[_0x566eed('0x1a')],_0x566eed('0x68'),_0x1ada36[_0x566eed('0xad')]))&&_0x525496&&(_0x1ec1c5=path[_0x566eed('0xa0')](config[_0x566eed('0x1a')],'server/files/images/logos/',_0x1ada36[_0x566eed('0xad')]))),_0xb1c3de[_0x566eed('0x21')](_0x1ec1c5);})[_0xca2ed3('0xba')](handleError(_0xb1c3de,null));},exports[_0x37b0bc('0x8')]=function(_0x130b2d,_0x4a46f1){const _0x1e367f=_0x37b0bc;let _0xe0b4e2=path[_0x1e367f('0xa0')](config[_0x1e367f('0x1a')],_0x1e367f('0x6a'));const _0x1d837d={'where':{'id':_0x130b2d[_0x1e367f('0xa7')]['id']},'attributes':['id','agentAvatar'],'raw':!![]};return db['ChatWebsite'][_0x1e367f('0xa')](_0x1d837d)[_0x1e367f('0x64')](handleEntityNotFound(_0x4a46f1,null))[_0x1e367f('0x64')](function(_0x226b73){const _0x4655a3=_0x1e367f;if(_0x226b73)return!_[_0x4655a3('0x39')](_0x226b73[_0x4655a3('0x65')])&&(fs[_0x4655a3('0xd')](path[_0x4655a3('0xa0')](config[_0x4655a3('0x1a')],_0x4655a3('0x55'),_0x226b73[_0x4655a3('0x65')]))&&(_0xe0b4e2=path[_0x4655a3('0xa0')](config[_0x4655a3('0x1a')],_0x4655a3('0x55'),_0x226b73[_0x4655a3('0x65')]))),_0x4a46f1['download'](_0xe0b4e2);})[_0x1e367f('0xba')](handleError(_0x4a46f1,null));},exports[_0x37b0bc('0x7c')]=function(_0x4fc227,_0x21230c){const _0xa92a12=_0x37b0bc;let _0x2ad69b=path['join'](config[_0xa92a12('0x1a')],_0xa92a12('0xd8'));const _0x328f19={'where':{'id':_0x4fc227[_0xa92a12('0xa7')]['id']},'attributes':['id',_0xa92a12('0x80'),_0xa92a12('0x3d')],'raw':!![]};return db['ChatWebsite'][_0xa92a12('0xa')](_0x328f19)['then'](handleEntityNotFound(_0x21230c,null))[_0xa92a12('0x64')](function(_0x4b8752){const _0x286a46=_0xa92a12;if(_0x4b8752)return!_[_0x286a46('0x39')](_0x4b8752['customerAvatar'])&&(fs['existsSync'](path[_0x286a46('0xa0')](config[_0x286a46('0x1a')],'server/files/images/avatars/',_0x4b8752[_0x286a46('0x80')]))&&_0x4b8752[_0x286a46('0x3d')]&&(_0x2ad69b=path[_0x286a46('0xa0')](config[_0x286a46('0x1a')],_0x286a46('0x55'),_0x4b8752[_0x286a46('0x80')]))),_0x21230c[_0x286a46('0x21')](_0x2ad69b);})[_0xa92a12('0xba')](handleError(_0x21230c,null));},exports['getSystemAvatar']=function(_0x4f4689,_0x27e023){const _0x1c6134=_0x37b0bc;let _0xa403a8=path[_0x1c6134('0xa0')](config[_0x1c6134('0x1a')],'server/files/images/avatars/system_avatar.png');const _0xa2946a={'where':{'id':_0x4f4689[_0x1c6134('0xa7')]['id']},'attributes':['id',_0x1c6134('0x2a')],'raw':!![]};return db[_0x1c6134('0xcc')][_0x1c6134('0xa')](_0xa2946a)[_0x1c6134('0x64')](handleEntityNotFound(_0x27e023,null))['then'](function(_0x473d16){const _0x5eacb1=_0x1c6134;if(_0x473d16)return!_[_0x5eacb1('0x39')](_0x473d16[_0x5eacb1('0x2a')])&&(fs[_0x5eacb1('0xd')](path[_0x5eacb1('0xa0')](config[_0x5eacb1('0x1a')],_0x5eacb1('0x55'),_0x473d16['systemAvatar']))&&(_0xa403a8=path[_0x5eacb1('0xa0')](config[_0x5eacb1('0x1a')],_0x5eacb1('0x55'),_0x473d16['systemAvatar']))),_0x27e023[_0x5eacb1('0x21')](_0xa403a8);})[_0x1c6134('0xba')](handleError(_0x27e023,null));},exports[_0x37b0bc('0xc9')]=function(_0x165204,_0x4c0e3d){const _0x5d6aee=_0x37b0bc,_0x50e799=require(_0x5d6aee('0xac')),_0x5e40d8=new _0x50e799(),_0x2b6e5d=_0x5e40d8['setUA'](_0x165204[_0x5d6aee('0xe0')][_0x5d6aee('0x8b')])[_0x5d6aee('0xc3')](),_0x2143c9={'body':_0x165204['body'],'channel':_0x5d6aee('0x45')};let _0x314854=[],_0x45c974=[];const _0x52fa77={};let _0x1d4d35=![];return db['CmContact'][_0x5d6aee('0x1c')]()[_0x5d6aee('0x64')](function(_0x4a473a){const _0x230071=_0x5d6aee;if(!_0x4a473a)throw new ValidationError(_0x230071('0x8c'));_0x314854=_['difference'](_[_0x230071('0x4a')](_0x4a473a),['createdAt','updatedAt']),_0x45c974=_[_0x230071('0x8d')](_[_0x230071('0x4a')](_0x4a473a),[_0x230071('0x17'),_0x230071('0xa1'),_0x230071('0xd6'),'ListId']);_0x165204['body']['id']&&delete _0x165204[_0x230071('0xae')]['id'];if(_[_0x230071('0x39')](_0x165204['body']['from']))throw new ValidationError(_0x230071('0xd0'));if(_['isNil'](_0x165204[_0x230071('0xae')][_0x230071('0xae')])||_0x165204[_0x230071('0xae')]['body']==='')throw new ValidationError(_0x230071('0xca'));if(_[_0x230071('0x39')](_0x165204['body'][_0x230071('0x57')]))throw new ValidationError(_0x230071('0xd9')+_0x45c974);if(!_['includes'](_0x45c974,_0x165204[_0x230071('0xae')][_0x230071('0x57')]))throw new ValidationError('mapKey\x20invalid,\x20please\x20use\x20one\x20of\x20these:\x20'+_0x45c974);_0x52fa77[_0x165204[_0x230071('0xae')]['mapKey']]=_0x165204['body'][_0x230071('0xb2')];})[_0x5d6aee('0x64')](function(){const _0x3df6be=_0x5d6aee;return db['ChatWebsite'][_0x3df6be('0xa')]({'where':{'id':_0x165204[_0x3df6be('0xa7')]['id']},'include':[{'model':db[_0x3df6be('0x43')],'as':_0x3df6be('0x6f'),'include':[{'model':db['CmContact'],'as':_0x3df6be('0x41'),'where':_0x52fa77,'limit':0x1,'order':[[_0x3df6be('0xa1'),_0x3df6be('0x7')]]}]},{'model':db['ChatApplication'],'as':_0x3df6be('0x2e')}]});})[_0x5d6aee('0x64')](handleEntityNotFound(_0x4c0e3d,null))[_0x5d6aee('0x64')](function(_0x5475c3){const _0x5a5b51=_0x5d6aee;if(_0x5475c3&&_0x5475c3['List']){_0x2143c9[_0x5a5b51('0xdc')]=_0x5475c3,_0x2143c9[_0x5a5b51('0x66')]=_0x5475c3[_0x5a5b51('0x2e')],_0x2143c9['list']=_0x5475c3['List'],_0x2143c9[_0x5a5b51('0x66')]=_[_0x5a5b51('0xb0')](_0x2143c9[_0x5a5b51('0x66')],[_0x5a5b51('0x97')],[_0x5a5b51('0x53')]);_0x2143c9[_0x5a5b51('0xdc')][_0x5a5b51('0x2e')]&&delete _0x2143c9[_0x5a5b51('0xdc')]['Applications'];if(_0x2143c9[_0x5a5b51('0xdc')][_0x5a5b51('0x6f')]&&_0x2143c9[_0x5a5b51('0xdc')][_0x5a5b51('0x6f')]['Contacts'][_0x5a5b51('0xcd')])return _0x2143c9[_0x5a5b51('0xdc')][_0x5a5b51('0x6f')][_0x5a5b51('0x41')][0x0];const _0x40ec1e=_[_0x5a5b51('0x3')](_0x165204[_0x5a5b51('0xae')],{'firstName':_0x165204[_0x5a5b51('0xae')][_0x5a5b51('0xb2')],'ListId':_0x5475c3[_0x5a5b51('0x101')]});return _0x40ec1e[_0x165204[_0x5a5b51('0xae')][_0x5a5b51('0x57')]]=_0x165204[_0x5a5b51('0xae')]['from'],db[_0x5a5b51('0x40')][_0x5a5b51('0xef')](_0x40ec1e,{'fields':_0x314854,'raw':!![]});}})['then'](handleEntityNotFound(_0x4c0e3d,null))[_0x5d6aee('0x64')](function(_0x346f5e){const _0x320f27=_0x5d6aee;_0x2143c9[_0x320f27('0x16')]=_0x346f5e;let _0x489d29=_0x165204['body'][_0x320f27('0xe2')];if(_0x165204[_0x320f27('0xe0')][_0x320f27('0x63')])_0x489d29=_0x165204[_0x320f27('0xe0')][_0x320f27('0x63')];else _0x165204[_0x320f27('0xe0')][_0x320f27('0x8e')]&&(_0x489d29=_[_0x320f27('0x89')](_0x165204[_0x320f27('0xe0')]['x-forwarded-for'][_0x320f27('0xb3')](',')));if(_0x346f5e){const _0x5ddc2c={'ContactId':_0x346f5e['id'],'ChatWebsiteId':_0x165204[_0x320f27('0xa7')]['id'],'from':(_0x346f5e[_0x320f27('0xc')]||'')+'\x20'+(_0x346f5e[_0x320f27('0xf1')]||''),'customerIp':_0x489d29,'customerPort':_0x165204[_0x320f27('0xe0')]['x-real-port']?_0x165204[_0x320f27('0xe0')]['x-real-port']:null,'referer':_0x165204[_0x320f27('0xae')][_0x320f27('0x75')],'browserName':_0x2b6e5d[_0x320f27('0x103')][_0x320f27('0xb1')]&&_0x2b6e5d[_0x320f27('0x103')]['version']?util[_0x320f27('0x9c')]('%s\x20%s',_0x2b6e5d[_0x320f27('0x103')][_0x320f27('0xb1')],_0x2b6e5d[_0x320f27('0x103')][_0x320f27('0x47')]):'unknown','browserVersion':_0x2b6e5d[_0x320f27('0x103')]['version']||_0x320f27('0x20'),'osName':util[_0x320f27('0x9c')](_0x320f27('0xc7'),_0x2b6e5d['os'][_0x320f27('0xb1')],_0x2b6e5d['os'][_0x320f27('0x47')]),'osVersion':_0x2b6e5d['os']['version'],'deviceModel':_0x2b6e5d[_0x320f27('0xea')][_0x320f27('0xd2')]&&_0x2b6e5d['device']['vendor']?util['format'](_0x320f27('0xd3'),_0x2b6e5d[_0x320f27('0xea')][_0x320f27('0xd2')],_0x2b6e5d['device']['vendor'],_0x2b6e5d[_0x320f27('0xea')][_0x320f27('0x7a')]):null,'deviceVendor':_0x2b6e5d[_0x320f27('0xea')][_0x320f27('0x5')],'deviceType':_0x2b6e5d['device'][_0x320f27('0x7a')],'formData':JSON['stringify'](_0x165204[_0x320f27('0xae')])},_0x2e1dc2={'ChatWebsiteId':_0x165204[_0x320f27('0xa7')]['id'],'closed':![]};if(_0x165204[_0x320f27('0xae')][_0x320f27('0x70')])return _0x2e1dc2['threadId']=_0x165204['body'][_0x320f27('0x70')],db[_0x320f27('0x91')][_0x320f27('0xa')]({'where':_0x2e1dc2})[_0x320f27('0x64')](function(_0x3cb54c){const _0x171eb1=_0x320f27;if(_0x3cb54c)return[_0x3cb54c,![]];return _0x5ddc2c[_0x171eb1('0x70')]=_0x165204[_0x171eb1('0xae')][_0x171eb1('0x70')],_0x5ddc2c[_0x171eb1('0xdd')]=_0x165204['body'][_0x171eb1('0xdd')],db['ChatInteraction'][_0x171eb1('0xef')](_0x5ddc2c)['then'](function(_0x235c0d){return[_0x235c0d,!![]];});});_0x2e1dc2[_0x320f27('0x3f')]=_0x346f5e['id'];if(_0x165204[_0x320f27('0xae')][_0x320f27('0xf4')]&&_0x165204[_0x320f27('0xae')][_0x320f27('0xf4')]['id'])return _0x2e1dc2['id']=_0x165204[_0x320f27('0xae')][_0x320f27('0xf4')]['id'],db[_0x320f27('0x91')][_0x320f27('0xa')]({'where':_0x2e1dc2})[_0x320f27('0x64')](function(_0x35a832){const _0x122785=_0x320f27;if(_0x35a832)return[_0x35a832,![]];return db[_0x122785('0x91')][_0x122785('0xef')](_0x5ddc2c)[_0x122785('0x64')](function(_0x1e0c4d){return[_0x1e0c4d,!![]];});});return db[_0x320f27('0x91')][_0x320f27('0xef')](_0x5ddc2c)['then'](function(_0x8f0edf){return[_0x8f0edf,!![]];});}})[_0x5d6aee('0x64')](function([_0x2001b8,_0x32828c]){const _0x1a1cd6=_0x5d6aee;if(_0x2001b8){_0x1d4d35=_0x32828c;if(!_0x32828c){const _0x452d03={'from':(_0x2143c9[_0x1a1cd6('0x16')][_0x1a1cd6('0xc')]||'')+'\x20'+(_0x2143c9['contact'][_0x1a1cd6('0xf1')]||'')};return _0x165204['body'][_0x1a1cd6('0x70')]&&_0x165204[_0x1a1cd6('0xae')][_0x1a1cd6('0xab')]&&_0x165204[_0x1a1cd6('0xae')][_0x1a1cd6('0x70')]!=_0x165204[_0x1a1cd6('0xae')][_0x1a1cd6('0xab')]&&(_0x452d03[_0x1a1cd6('0x70')]=_0x165204[_0x1a1cd6('0xae')][_0x1a1cd6('0xab')]),_0x2001b8[_0x1a1cd6('0x30')](_0x452d03);}else return _0x2001b8;}})[_0x5d6aee('0x64')](function(_0x15ebec){const _0x1a99f8=_0x5d6aee;return _0x2143c9[_0x1a99f8('0xf4')]=_0x15ebec[_0x1a99f8('0xa5')]({'plain':!![]}),_0x2143c9[_0x1a99f8('0xf4')]['created']=_0x1d4d35,_0x2143c9[_0x1a99f8('0xf4')][_0x1a99f8('0x5a')]&&(_0x2143c9[_0x1a99f8('0xdc')][_0x1a99f8('0xd7')]&&_0x2143c9['applications']['push']({'id':0x0,'priority':_0x2143c9[_0x1a99f8('0x66')][_0x1a99f8('0xcd')]+0x1,'app':_0x1a99f8('0x67'),'appdata':_0x1a99f8('0x31'),'interval':_0x1a99f8('0x6c')})),db[_0x1a99f8('0x60')][_0x1a99f8('0xef')]({'body':_0x165204[_0x1a99f8('0xae')][_0x1a99f8('0xae')],'ChatWebsiteId':_0x165204['params']['id'],'ChatInteractionId':_0x15ebec['id'],'direction':'in','ContactId':_0x2143c9['contact']['id'],'AttachmentId':_0x165204[_0x1a99f8('0xae')][_0x1a99f8('0x1f')]});})[_0x5d6aee('0x64')](function(_0xdddf50){const _0x1349f9=_0x5d6aee;_0x2143c9[_0x1349f9('0x7f')]=_0xdddf50;if(_0x2143c9['interaction'][_0x1349f9('0xf0')])return db[_0x1349f9('0xc1')][_0x1349f9('0xa')]({'attributes':['id','name'],'where':{'id':_0x2143c9[_0x1349f9('0xf4')][_0x1349f9('0xf0')]}})[_0x1349f9('0x64')](function(_0x33176b){const _0x45c098=_0x1349f9;return _0x33176b&&(_0x2143c9[_0x45c098('0x66')]['unshift']({'id':0x0,'priority':0x0,'app':_0x45c098('0xa4'),'appdata':_0x33176b['name']+','+(_0x2143c9['account']['waitForTheAssignedAgent']||0xa),'interval':_0x45c098('0x6c')}),_0x2143c9[_0x45c098('0x36')]=!![]),respondWithRpcPromise('Start',_0x45c098('0xa9'),_0x2143c9);});return respondWithRpcPromise(_0x1349f9('0x3b'),'startRouting',_0x2143c9);})['then'](function(_0x5de16f){const _0x4895d7=_0x5d6aee;return respondWithRpcPromise(_0x4895d7('0x9a'),_0x4895d7('0x9a'),{'event':_0x4895d7('0xc9'),'message':_0x5de16f},client9002),_0x5de16f;})[_0x5d6aee('0x64')](respondWithResult(_0x4c0e3d,null))[_0x5d6aee('0xba')](handleError(_0x4c0e3d,null));},exports[_0x37b0bc('0x56')]=function(_0x474590,_0xf53ce8){const _0x1b2cf3=_0x37b0bc;let _0x3777b3,_0x525251,_0x1bc711=[];const _0x1adf78={};return db['CmContact'][_0x1b2cf3('0x1c')]()['then'](function(_0x4ac7c4){const _0x146324=_0x1b2cf3;if(!_0x4ac7c4)throw new ValidationError('no\x20available\x20attributes');_0x1bc711=_[_0x146324('0x8d')](_[_0x146324('0x4a')](_0x4ac7c4),[_0x146324('0x17'),_0x146324('0xa1'),_0x146324('0xd6'),'ListId']);_0x474590[_0x146324('0xae')]['id']&&delete _0x474590[_0x146324('0xae')]['id'];if(_['isNil'](_0x474590[_0x146324('0xae')][_0x146324('0xb2')]))throw _0xf53ce8[_0x146324('0x5c')](0x1f4)[_0x146324('0x84')](new ValidationError(_0x146324('0xd0')));if(_[_0x146324('0x39')](_0x474590[_0x146324('0xae')]['body'])||_0x474590['body'][_0x146324('0xae')]==='')throw _0xf53ce8[_0x146324('0x5c')](0x1f4)[_0x146324('0x84')](new ValidationError(_0x146324('0xca')));if(_[_0x146324('0x39')](_0x474590[_0x146324('0xae')][_0x146324('0xe5')]))throw _0xf53ce8[_0x146324('0x5c')](0x1f4)[_0x146324('0x84')](new ValidationError('mapKeyOffline\x20is\x20mandatory,\x20please\x20use\x20one\x20of\x20these:\x20'+_0x1bc711));if(!_[_0x146324('0xe6')](_0x1bc711,_0x474590[_0x146324('0xae')]['mapKeyOffline']))throw _0xf53ce8['status'](0x1f4)[_0x146324('0x84')](new ValidationError(_0x146324('0xc6')+_0x1bc711));_0x1adf78[_0x474590[_0x146324('0xae')][_0x146324('0xe5')]]=_0x474590[_0x146324('0xae')]['from'];})[_0x1b2cf3('0x64')](function(){const _0x40fa89=_0x1b2cf3;return db[_0x40fa89('0xcc')]['findOne']({'where':{'id':_0x474590[_0x40fa89('0xa7')]['id']},'include':[{'model':db[_0x40fa89('0x43')],'as':_0x40fa89('0x6f')}]});})[_0x1b2cf3('0x64')](handleEntityNotFound(_0xf53ce8,null))[_0x1b2cf3('0x64')](function(_0x572450){const _0xbbc768=_0x1b2cf3;if(_0x572450&&_0x572450[_0xbbc768('0x6f')]){_0x525251=_0x572450;const _0x4442f6=_[_0xbbc768('0x3')](_0x474590[_0xbbc768('0xae')],{'firstName':_0x474590['body'][_0xbbc768('0xb2')],'phone':_0x474590[_0xbbc768('0xae')][_0xbbc768('0xb2')],'ListId':_0x572450[_0xbbc768('0x101')]});return _0x4442f6[_0x474590[_0xbbc768('0xae')][_0xbbc768('0xe5')]]=_0x474590[_0xbbc768('0xae')][_0xbbc768('0xb2')],db['CmContact'][_0xbbc768('0x77')]({'where':_0x1adf78,'defaults':_0x4442f6});}})[_0x1b2cf3('0x64')](function([_0x53fa21]){const _0x297603=_0x1b2cf3;if(_0x53fa21){const _0x50a7f5=fs['readFileSync'](path[_0x297603('0xa0')](config[_0x297603('0x1a')],_0x297603('0xbb')),_0x297603('0xe9')),_0x2e6d31=ejs[_0x297603('0x15')](_0x50a7f5,{'body':_['toPairs'](_0x474590['body']['body']),'bodyTitle':_0x525251['offlineMessageBody']});return db['ChatOfflineMessage'][_0x297603('0xef')]({'body':_0x2e6d31,'ContactId':_0x53fa21['id'],'ChatWebsiteId':_0x525251['id']});}})[_0x1b2cf3('0x64')](function(_0xf33158){const _0x1567ff=_0x1b2cf3;if(_0xf33158)return _0x3777b3=_0xf33158,db[_0x1567ff('0xda')][_0x1567ff('0xa')]({'where':{'service':!![]},'include':[{'model':db[_0x1567ff('0xbd')],'as':_0x1567ff('0xb8'),'raw':!![]}]});})[_0x1b2cf3('0x64')](function(_0x19fc62){const _0xa43705=_0x1b2cf3;if(_0x19fc62&&_0x19fc62['Smtp']&&_0x525251[_0xa43705('0x4e')]){const _0x4ebf66={'tls':{'rejectUnauthorized':![]}};return _0x19fc62[_0xa43705('0xb8')][_0xa43705('0x3a')]?_0x4ebf66['service']=_0x19fc62[_0xa43705('0xb8')]['service']:(_0x4ebf66[_0xa43705('0x18')]=_0x19fc62[_0xa43705('0xb8')][_0xa43705('0x18')],_0x4ebf66['port']=_0x19fc62[_0xa43705('0xb8')][_0xa43705('0x4c')],_0x4ebf66[_0xa43705('0x85')]=_0x19fc62[_0xa43705('0xb8')]['secure']),_0x19fc62['Smtp'][_0xa43705('0xa8')]&&(_0x4ebf66[_0xa43705('0xf2')]={'user':_0x19fc62['Smtp'][_0xa43705('0xec')],'pass':_0x19fc62[_0xa43705('0xb8')][_0xa43705('0xdb')]}),respondWithRpcPromise(_0xa43705('0x42'),_0xa43705('0x48'),{'account':_0x4ebf66,'message':{'from':util[_0xa43705('0x9c')]('\x22%s\x22\x20<%s>',_0x19fc62['name'],_0x19fc62[_0xa43705('0x32')]||_0x19fc62[_0xa43705('0xb8')][_0xa43705('0xec')]),'to':_0x525251['forwardOfflineAddress'],'subject':_0x525251[_0xa43705('0x76')],'text':_0x3777b3[_0xa43705('0xae')]}},client9003)['then'](function(){return _0x3777b3;})['catch'](function(_0x162ebf){console['error'](_0x162ebf);});}})['then'](function(){if(_0x3777b3)return _0x3777b3;})['then'](respondWithResult(_0xf53ce8,null))[_0x1b2cf3('0xba')](handleError(_0xf53ce8,null));},exports[_0x37b0bc('0x5d')]=function(_0x52739d,_0x34e9b9){const _0x43817d=_0x37b0bc;return db[_0x43817d('0x91')][_0x43817d('0xa')]({'where':{'id':_0x52739d['params']['id']}})[_0x43817d('0x64')](function(_0xed4cf9){const _0x27ccd4=_0x43817d;if(_0xed4cf9)return _0xed4cf9[_0x27ccd4('0x5d')](_0x52739d[_0x27ccd4('0xae')]['ids'],{'through':_[_0x27ccd4('0xce')](_0x52739d['body'],[_0x27ccd4('0x23'),'id'])});})[_0x43817d('0x64')](respondWithResult(_0x34e9b9,null))[_0x43817d('0xba')](handleError(_0x34e9b9,null));},exports[_0x37b0bc('0x98')]=function(_0x17ae2c,_0x2f5035){const _0x38700d=_0x37b0bc;let _0x319786={'raw':![],'where':{}};const _0x45d74a={},_0x2c3dc3={'count':0x0,'rows':[]};return db['ChatWebsite'][_0x38700d('0xa')]({'where':{'id':_0x17ae2c[_0x38700d('0xa7')]['id']}})[_0x38700d('0x64')](handleEntityNotFound(_0x2f5035,null))[_0x38700d('0x64')](function(_0x412e4f){const _0x5aeec7=_0x38700d;if(_0x412e4f)return _0x45d74a['model']=_[_0x5aeec7('0x4a')](db[_0x5aeec7('0x91')]['rawAttributes']),_0x45d74a[_0x5aeec7('0x8f')]=_[_0x5aeec7('0x4a')](_0x17ae2c[_0x5aeec7('0x8f')]),_0x45d74a[_0x5aeec7('0xe3')]=_[_0x5aeec7('0xf5')](_0x45d74a[_0x5aeec7('0xd2')],_0x45d74a['query']),_0x319786[_0x5aeec7('0xaf')]=_['intersection'](_0x45d74a[_0x5aeec7('0xd2')],qs[_0x5aeec7('0x10')](_0x17ae2c[_0x5aeec7('0x8f')][_0x5aeec7('0x10')])),_0x319786['attributes']=_0x319786[_0x5aeec7('0xaf')]['length']?_0x319786['attributes']:_0x45d74a[_0x5aeec7('0xd2')],typeof _0x17ae2c[_0x5aeec7('0x8f')][_0x5aeec7('0xcb')]==='undefined'&&(_0x319786['limit']=qs[_0x5aeec7('0x79')](_0x17ae2c['query'][_0x5aeec7('0x79')]),_0x319786[_0x5aeec7('0xbe')]=qs[_0x5aeec7('0xbe')](_0x17ae2c['query'][_0x5aeec7('0xbe')])),_0x319786[_0x5aeec7('0x100')]=qs['sort'](_0x17ae2c[_0x5aeec7('0x8f')]['sort']),_0x319786[_0x5aeec7('0x1d')]=qs[_0x5aeec7('0xe3')](_[_0x5aeec7('0x74')](_0x17ae2c['query'],_0x45d74a[_0x5aeec7('0xe3')])),_0x319786[_0x5aeec7('0x1d')]['ChatWebsiteId']=_0x412e4f['id'],_0x17ae2c[_0x5aeec7('0x8f')][_0x5aeec7('0xcf')]&&(_0x319786[_0x5aeec7('0x1d')]=_[_0x5aeec7('0x8a')](_0x319786[_0x5aeec7('0x1d')],{[Op['or']]:_[_0x5aeec7('0xfb')](_0x319786[_0x5aeec7('0xaf')],function(_0x52cf1c){const _0x3bfd34={};return _0x3bfd34[_0x52cf1c]={[Op['like']]:'%'+_0x17ae2c['query']['filter']+'%'},_0x3bfd34;})})),_0x319786=_[_0x5aeec7('0x8a')]({},_0x319786,_0x17ae2c[_0x5aeec7('0x5f')]),db[_0x5aeec7('0x91')][_0x5aeec7('0x104')]({'where':_0x319786[_0x5aeec7('0x1d')]})[_0x5aeec7('0x64')](function(_0x47c756){const _0x39ac08=_0x5aeec7;return _0x2c3dc3['count']=_0x47c756,_0x17ae2c[_0x39ac08('0x8f')]['includeAll']&&(_0x319786[_0x39ac08('0x102')]=[{'model':db[_0x39ac08('0x40')],'as':_0x39ac08('0xb4'),'required':![]},{'model':db[_0x39ac08('0xc1')],'as':_0x39ac08('0xe'),'attributes':['name',_0x39ac08('0xc4'),_0x39ac08('0xfd')],'required':![]},{'model':db['Tag'],'as':_0x39ac08('0x92'),'attributes':['id',_0x39ac08('0xb1'),_0x39ac08('0x2d')],'where':_0x17ae2c['query']['tag']?{'id':_0x17ae2c['query'][_0x39ac08('0x28')]}:undefined,'required':_0x17ae2c[_0x39ac08('0x8f')][_0x39ac08('0x28')]?!![]:![]}]),db[_0x39ac08('0x91')][_0x39ac08('0xed')](_0x319786);})[_0x5aeec7('0x64')](function(_0x3c4a81){const _0x4b9974=_0x5aeec7;return _0x2c3dc3[_0x4b9974('0xaa')]=_0x3c4a81,_0x2c3dc3;});})[_0x38700d('0x64')](respondWithFilteredResult(_0x2f5035,_0x319786))[_0x38700d('0xba')](handleError(_0x2f5035,null));};function iftimePromise(_0x37fdcf,_0x41c959){const _0x1ba72f=_0x37b0bc;return respondWithRpcPromise(_0x1ba72f('0x5b'),_0x1ba72f('0x93'),{'command':_0x41c959[_0x1ba72f('0x81')]?util[_0x1ba72f('0x9c')](_0x1ba72f('0x34'),_0x37fdcf[_0x1ba72f('0x11')],_0x41c959[_0x1ba72f('0x81')]):util[_0x1ba72f('0x9c')](_0x1ba72f('0xb'),_0x37fdcf[_0x1ba72f('0x11')])},client9002)[_0x1ba72f('0x64')](function(_0x20f069){const _0x11b9c5=_0x1ba72f,_0x3dd6f1=_0x20f069&&_0x20f069['indexOf'](_0x11b9c5('0x35'))>=0x0?!![]:![];return logger[_0x11b9c5('0x90')]('[%s][INTERVAL][%s]\x20%s\x20%s\x20(%s)',_0x41c959['id'],_0x37fdcf['id'],_0x37fdcf[_0x11b9c5('0x11')],_0x3dd6f1?_0x11b9c5('0x6e'):_0x11b9c5('0x22'),_0x41c959['timezone']?_0x41c959[_0x11b9c5('0x81')]:_0x11b9c5('0xc5')),_0x3dd6f1;})[_0x1ba72f('0xba')](function(_0x4e8d81){const _0x135d6f=_0x1ba72f;return logger['error']('[%s][INTERVAL][%s]\x20%s\x20%s\x20(%s)',_0x41c959['id'],_0x37fdcf['id'],_0x37fdcf['interval'],util['inspect'](_0x4e8d81,{'showHidden':![],'depth':null}),_0x41c959[_0x135d6f('0x81')]?_0x41c959[_0x135d6f('0x81')]:'No\x20timezone'),![];});}exports[_0x37b0bc('0x93')]=function(_0x2a8076,_0x1d94e0){const _0x3aba4b=_0x37b0bc;let _0x5124db=0x0,_0x419739=0x0,_0x14a4c8=![],_0x38c26f,_0x544310;return db[_0x3aba4b('0xcc')][_0x3aba4b('0xa')]({'where':{'id':_0x2a8076[_0x3aba4b('0xa7')]['id']},'include':[{'model':db[_0x3aba4b('0x29')],'as':'Interval','include':[{'model':db['Interval'],'as':_0x3aba4b('0xfa'),'attributes':['id',_0x3aba4b('0x11')],'raw':!![]}]}]})[_0x3aba4b('0x64')](handleEntityNotFound(_0x1d94e0,null))[_0x3aba4b('0x64')](function(_0x3ee43a){const _0x453c9b=_0x3aba4b;if(_0x3ee43a)return _0x38c26f=_0x3ee43a,_0x3ee43a[_0x453c9b('0x1')]({'raw':!![]});})[_0x3aba4b('0x64')](function(_0x48b95e){const _0x13be74=_0x3aba4b;return _0x38c26f&&(_0x48b95e&&(_0x544310=_0x48b95e)),require(_0x13be74('0x4d'))[_0x13be74('0xf7')]();})['then'](function(_0x5f3c9c){const _0x5643d2=_0x3aba4b;_0x5f3c9c&&(_0x419739=_0x5f3c9c[_0x5643d2('0x33')],_0x14a4c8=_0x5f3c9c[_0x5643d2('0x3c')]);})[_0x3aba4b('0x64')](function(){const _0x98f20=_0x3aba4b;return db[_0x98f20('0x91')][_0x98f20('0x104')]({'where':{'closed':![]}});})['then'](function(_0x383579){const _0x1f9728=_0x3aba4b;_0x5124db=_0x383579;if(_0x419739&&_0x383579>_0x419739)return db[_0x1f9728('0xbf')]['findOne']({'where':{'id':0x1}})[_0x1f9728('0x64')](function(_0x1ff428){const _0x25a393=_0x1f9728;_0x1ff428&&_0x1ff428[_0x25a393('0x6b')]('chatLicenseExceeded');});})[_0x3aba4b('0x64')](function(){const _0x4f3439=_0x3aba4b;if(_0x38c26f[_0x4f3439('0x29')]&&_0x38c26f[_0x4f3439('0x29')]['Intervals']){const _0xbc33ac=[];for(let _0x34c71a=0x0;_0x34c71a<_0x38c26f[_0x4f3439('0x29')]['Intervals'][_0x4f3439('0xcd')];_0x34c71a++){const _0xb83f62=_0x38c26f[_0x4f3439('0x29')][_0x4f3439('0xfa')][_0x34c71a]['get']({'plain':!![]});_0xbc33ac[_0x4f3439('0x86')](iftimePromise(_0xb83f62,_0x38c26f));}return Promise[_0x4f3439('0xb5')](_0xbc33ac)[_0x4f3439('0x64')](function(_0x465fcc){const _0xf16e0=_0x4f3439;return _[_0xf16e0('0x2f')](_0x465fcc);});}else return!![];})[_0x3aba4b('0x64')](function(_0x92b39f){const _0x55b47a=_0x3aba4b,_0x137b26=_0x2a8076['app']['get'](_0x55b47a('0xf3')),_0x338e5d=fs['readFileSync'](path['join'](config[_0x55b47a('0x1a')],_0x55b47a('0x4f')),'utf8'),_0x281827={'chatVersion':_0x137b26,'remote':_0x38c26f[_0x55b47a('0xd4')],'query':querystring[_0x55b47a('0x78')](_['merge'](_0x38c26f['get']({'plain':!![]}),{'customerIp':_0x2a8076[_0x55b47a('0xe0')][_0x55b47a('0x8e')]||_0x2a8076[_0x55b47a('0xe0')][_0x55b47a('0xe1')]||_0x2a8076[_0x55b47a('0x61')]['remoteAddress']||_0x2a8076['ip'],'referer':_0x2a8076[_0x55b47a('0xe0')][_0x55b47a('0x75')],'openedInteractions':_0x5124db,'maxInteractions':_0x419739,'virtual':_0x14a4c8[_0x55b47a('0x33')],'online':_0x92b39f,'custom':_0x14a4c8}))['replace'](/'/g,'\x5c\x27')};_0x1d94e0[_0x55b47a('0x84')](ejs[_0x55b47a('0x15')](Mustache[_0x55b47a('0x15')](_0x338e5d,_0x281827),{'proactiveActions':_0x544310,'alignment':_0x38c26f[_0x55b47a('0xdf')],'verticalAlignment':_0x38c26f[_0x55b47a('0x88')],'div_color':_0x38c26f[_0x55b47a('0x2d')],'text_color':_0x38c26f[_0x55b47a('0xa6')]}));})['catch'](handleError(_0x1d94e0,null));},exports[_0x37b0bc('0xfc')]=function(_0x5a962f,_0x1dd21c){const _0x3bda1c=_0x37b0bc;return db[_0x3bda1c('0xcc')][_0x3bda1c('0xa')]({'where':{'id':_0x5a962f['params']['id']}})['then'](handleEntityNotFound(_0x1dd21c,null))[_0x3bda1c('0x64')](function(_0x2ebcb3){const _0x1caddc=_0x3bda1c;if(_0x2ebcb3)return db['sequelize']['transaction'](function(_0x303e06){const _0x41b0bd=a111_0x50bc;return db[_0x41b0bd('0xde')][_0x41b0bd('0x37')]({'where':{'ChatWebsiteId':_0x5a962f[_0x41b0bd('0xa7')]['id']},'transaction':_0x303e06})[_0x41b0bd('0x64')](function(){const _0x453234=_0x41b0bd,_0x2f7e6f=_['map'](_0x5a962f[_0x453234('0xae')],function(_0xfa996f){const _0x2f01cf=_0x453234;return _0xfa996f[_0x2f01cf('0xbc')]=_0x5a962f['params']['id'],_0xfa996f;});return db[_0x453234('0xde')][_0x453234('0x49')](_0x2f7e6f,{'transaction':_0x303e06});});})[_0x1caddc('0x64')](function(){const _0x4a3291=_0x1caddc;return db[_0x4a3291('0xde')][_0x4a3291('0x73')]({'where':{'ChatWebsiteId':_0x5a962f[_0x4a3291('0xa7')]['id']},'order':'priority'});});})[_0x3bda1c('0x64')](respondWithResult(_0x1dd21c,null))[_0x3bda1c('0xba')](handleError(_0x1dd21c,null));},exports[_0x37b0bc('0x7e')]=function(_0x2efdb,_0x1c6030){const _0x3b9dbe=_0x37b0bc;let _0x3bc19d={};const _0x115091={};let _0x372338,_0x5ea437;return db[_0x3b9dbe('0xcc')][_0x3b9dbe('0xa')]({'where':{'id':_0x2efdb[_0x3b9dbe('0xa7')]['id']}})[_0x3b9dbe('0x64')](handleEntityNotFound(_0x1c6030,null))[_0x3b9dbe('0x64')](function(_0x3f9155){const _0x113c53=_0x3b9dbe;if(_0x3f9155)return _0x372338=_0x3f9155,_0x115091[_0x113c53('0xd2')]=_[_0x113c53('0x4a')](db[_0x113c53('0xde')][_0x113c53('0x83')]),_0x115091[_0x113c53('0x8f')]=_[_0x113c53('0x4a')](_0x2efdb[_0x113c53('0x8f')]),_0x115091[_0x113c53('0xe3')]=_[_0x113c53('0xf5')](_0x115091[_0x113c53('0xd2')],_0x115091['query']),_0x3bc19d[_0x113c53('0xaf')]=_[_0x113c53('0xf5')](_0x115091[_0x113c53('0xd2')],qs[_0x113c53('0x10')](_0x2efdb[_0x113c53('0x8f')][_0x113c53('0x10')])),_0x3bc19d[_0x113c53('0xaf')]=_0x3bc19d[_0x113c53('0xaf')][_0x113c53('0xcd')]?_0x3bc19d['attributes']:_0x115091[_0x113c53('0xd2')],_0x3bc19d[_0x113c53('0x100')]=qs[_0x113c53('0x94')](_0x2efdb[_0x113c53('0x8f')][_0x113c53('0x94')]),_0x3bc19d[_0x113c53('0x1d')]=qs[_0x113c53('0xe3')](_['pick'](_0x2efdb[_0x113c53('0x8f')],_0x115091[_0x113c53('0xe3')])),_0x2efdb['query'][_0x113c53('0xcf')]&&(_0x3bc19d[_0x113c53('0x1d')]=_[_0x113c53('0x8a')](_0x3bc19d[_0x113c53('0x1d')],{[Op['or']]:_[_0x113c53('0xfb')](_0x3bc19d[_0x113c53('0xaf')],function(_0x140ce8){const _0x2b3d57=_0x113c53,_0x529621={};return _0x529621[_0x140ce8]={[Op[_0x2b3d57('0x95')]]:'%'+_0x2efdb[_0x2b3d57('0x8f')][_0x2b3d57('0xcf')]+'%'},_0x529621;})})),_0x3bc19d=_[_0x113c53('0x8a')]({},_0x3bc19d,_0x2efdb[_0x113c53('0x5f')]),_0x372338[_0x113c53('0x7e')](_0x3bc19d);})['then'](function(_0x4e901a){const _0x3aab6c=_0x3b9dbe;if(_0x4e901a)return _0x5ea437=_0x4e901a[_0x3aab6c('0xcd')],typeof _0x2efdb[_0x3aab6c('0x8f')][_0x3aab6c('0xcb')]==='undefined'&&(_0x3bc19d[_0x3aab6c('0x79')]=qs[_0x3aab6c('0x79')](_0x2efdb['query']['limit']),_0x3bc19d['offset']=qs['offset'](_0x2efdb[_0x3aab6c('0x8f')]['offset'])),_0x372338['getApplications'](_0x3bc19d);})[_0x3b9dbe('0x64')](function(_0xd65abf){if(_0xd65abf)return _0xd65abf?{'count':_0x5ea437,'rows':_0xd65abf}:null;})[_0x3b9dbe('0x64')](respondWithResult(_0x1c6030,null))[_0x3b9dbe('0xba')](handleError(_0x1c6030,null));},exports[_0x37b0bc('0xd1')]=function(_0x2f7fda,_0x4f7113){const _0x14312e=_0x37b0bc;return db['chatProactiveAction'][_0x14312e('0xa')]({'where':{'id':_0x2f7fda[_0x14312e('0xa7')]['id']}})[_0x14312e('0x64')](function(_0x13aaa0){const _0x11a40e=_0x14312e;if(_0x13aaa0)return _0x13aaa0[_0x11a40e('0xd1')](_0x2f7fda[_0x11a40e('0xae')]['ids'],{'through':_['omit'](_0x2f7fda[_0x11a40e('0xae')],[_0x11a40e('0x23'),'id'])});})[_0x14312e('0x64')](respondWithResult(_0x4f7113,null))[_0x14312e('0xba')](handleError(_0x4f7113,null));},exports[_0x37b0bc('0x1')]=function(_0x2fcdcc,_0x122880){const _0x4e15f0=_0x37b0bc;let _0x5a9edf={};const _0x22ce3f={};let _0x41840b,_0x1147c1;return db[_0x4e15f0('0xcc')]['findOne']({'where':{'id':_0x2fcdcc[_0x4e15f0('0xa7')]['id']}})[_0x4e15f0('0x64')](handleEntityNotFound(_0x122880,null))[_0x4e15f0('0x64')](function(_0x2ac264){const _0x193f33=_0x4e15f0;if(_0x2ac264)return _0x41840b=_0x2ac264,_0x22ce3f['model']=_[_0x193f33('0x4a')](db['ChatProactiveAction'][_0x193f33('0x83')]),_0x22ce3f[_0x193f33('0x8f')]=_[_0x193f33('0x4a')](_0x2fcdcc['query']),_0x22ce3f['filters']=_[_0x193f33('0xf5')](_0x22ce3f['model'],_0x22ce3f[_0x193f33('0x8f')]),_0x5a9edf[_0x193f33('0xaf')]=_['intersection'](_0x22ce3f['model'],qs[_0x193f33('0x10')](_0x2fcdcc['query'][_0x193f33('0x10')])),_0x5a9edf[_0x193f33('0xaf')]=_0x5a9edf[_0x193f33('0xaf')][_0x193f33('0xcd')]?_0x5a9edf['attributes']:_0x22ce3f[_0x193f33('0xd2')],_0x5a9edf['order']=qs[_0x193f33('0x94')](_0x2fcdcc[_0x193f33('0x8f')][_0x193f33('0x94')]),_0x5a9edf[_0x193f33('0x1d')]=qs[_0x193f33('0xe3')](_['pick'](_0x2fcdcc[_0x193f33('0x8f')],_0x22ce3f[_0x193f33('0xe3')])),_0x2fcdcc[_0x193f33('0x8f')][_0x193f33('0xcf')]&&(_0x5a9edf[_0x193f33('0x1d')]=_[_0x193f33('0x8a')](_0x5a9edf[_0x193f33('0x1d')],{[Op['or']]:_[_0x193f33('0xfb')](_0x5a9edf['attributes'],function(_0x19826d){const _0xfdd4c=_0x193f33,_0xa9b047={};return _0xa9b047[_0x19826d]={[Op[_0xfdd4c('0x95')]]:'%'+_0x2fcdcc[_0xfdd4c('0x8f')]['filter']+'%'},_0xa9b047;})})),_0x5a9edf=_[_0x193f33('0x8a')]({},_0x5a9edf,_0x2fcdcc['options']),_0x41840b[_0x193f33('0x1')](_0x5a9edf);})[_0x4e15f0('0x64')](function(_0xe5174d){const _0x2a651a=_0x4e15f0;if(_0xe5174d)return _0x1147c1=_0xe5174d[_0x2a651a('0xcd')],typeof _0x2fcdcc[_0x2a651a('0x8f')]['nolimit']===_0x2a651a('0x4b')&&(_0x5a9edf['limit']=qs[_0x2a651a('0x79')](_0x2fcdcc[_0x2a651a('0x8f')][_0x2a651a('0x79')]),_0x5a9edf['offset']=qs[_0x2a651a('0xbe')](_0x2fcdcc[_0x2a651a('0x8f')][_0x2a651a('0xbe')])),_0x41840b[_0x2a651a('0x1')](_0x5a9edf);})[_0x4e15f0('0x64')](function(_0x5aa01a){if(_0x5aa01a)return _0x5aa01a?{'count':_0x1147c1,'rows':_0x5aa01a}:null;})[_0x4e15f0('0x64')](respondWithResult(_0x122880,null))['catch'](handleError(_0x122880,null));},exports[_0x37b0bc('0xeb')]=function(_0x5664f6,_0x40986f){const _0x114cb7=_0x37b0bc,_0x422326=_0x5664f6[_0x114cb7('0x8f')]['online']==='false'?_0x114cb7('0x24'):'onlineForm';return db[_0x114cb7('0xcc')]['findOne']({'attributes':['id',_0x422326],'where':{'id':_0x5664f6['params']['id']}})[_0x114cb7('0x64')](handleEntityNotFound(_0x40986f,null))[_0x114cb7('0x64')](function(_0x5bca0b){const _0x3c7243=_0x114cb7;if(_0x5bca0b){const _0x5b36d7=_0x5bca0b[_0x422326],_0x5d4433=_0x5b36d7&&_0x5b36d7[_0x3c7243('0x2b')]?_0x5b36d7[_0x3c7243('0x2b')]:[];_0x40986f[_0x3c7243('0x84')]({'fromKey':_[_0x3c7243('0x39')](_0x5b36d7[_0x3c7243('0x59')])?undefined:_0x5b36d7['fromKey'],'count':_0x5d4433[_0x3c7243('0xcd')],'rows':_0x5d4433});}})[_0x114cb7('0xba')](handleError(_0x40986f,null));},exports[_0x37b0bc('0xb6')]=function(_0x25aa2d,_0x4d0f77){const _0x2ad5b8=_0x37b0bc;let _0x41b082={'raw':![],'where':{}};const _0x3ee834={},_0x3b8f99={'count':0x0,'rows':[]};return db[_0x2ad5b8('0xcc')][_0x2ad5b8('0xa')]({'where':{'id':_0x25aa2d['params']['id']}})[_0x2ad5b8('0x64')](handleEntityNotFound(_0x4d0f77,null))['then'](function(_0x290377){const _0x473fc1=_0x2ad5b8;if(_0x290377)return _0x3ee834[_0x473fc1('0xd2')]=_[_0x473fc1('0x4a')](db[_0x473fc1('0xf')][_0x473fc1('0x83')]),_0x3ee834[_0x473fc1('0x8f')]=_[_0x473fc1('0x4a')](_0x25aa2d[_0x473fc1('0x8f')]),_0x3ee834[_0x473fc1('0xe3')]=_['intersection'](_0x3ee834['model'],_0x3ee834['query']),_0x41b082['attributes']=_[_0x473fc1('0xf5')](_0x3ee834[_0x473fc1('0xd2')],qs[_0x473fc1('0x10')](_0x25aa2d[_0x473fc1('0x8f')][_0x473fc1('0x10')])),_0x41b082['attributes']=_0x41b082[_0x473fc1('0xaf')]['length']?_0x41b082[_0x473fc1('0xaf')]:_0x3ee834['model'],typeof _0x25aa2d[_0x473fc1('0x8f')][_0x473fc1('0xcb')]===_0x473fc1('0x4b')&&(_0x41b082[_0x473fc1('0x79')]=qs[_0x473fc1('0x79')](_0x25aa2d['query'][_0x473fc1('0x79')]),_0x41b082[_0x473fc1('0xbe')]=qs[_0x473fc1('0xbe')](_0x25aa2d[_0x473fc1('0x8f')][_0x473fc1('0xbe')])),_0x41b082[_0x473fc1('0x100')]=qs[_0x473fc1('0x94')](_0x25aa2d[_0x473fc1('0x8f')][_0x473fc1('0x94')]),_0x41b082[_0x473fc1('0x1d')]=qs[_0x473fc1('0xe3')](_[_0x473fc1('0x74')](_0x25aa2d[_0x473fc1('0x8f')],_0x3ee834[_0x473fc1('0xe3')])),_0x41b082['where'][_0x473fc1('0xbc')]=_0x290377['id'],_0x25aa2d[_0x473fc1('0x8f')][_0x473fc1('0xcf')]&&(_0x41b082[_0x473fc1('0x1d')]=_['merge'](_0x41b082['where'],{[Op['or']]:_[_0x473fc1('0xfb')](_0x41b082[_0x473fc1('0xaf')],function(_0x4fa828){const _0x409676=_0x473fc1,_0x2f180e={};return _0x2f180e[_0x4fa828]={[Op['like']]:'%'+_0x25aa2d[_0x409676('0x8f')][_0x409676('0xcf')]+'%'},_0x2f180e;})})),_0x41b082=_[_0x473fc1('0x8a')]({},_0x41b082,_0x25aa2d[_0x473fc1('0x5f')]),db[_0x473fc1('0xf')][_0x473fc1('0x104')]({'where':_0x41b082[_0x473fc1('0x1d')]})['then'](function(_0x1d5e95){const _0x514e46=_0x473fc1;return _0x3b8f99[_0x514e46('0x104')]=_0x1d5e95,_0x25aa2d[_0x514e46('0x8f')][_0x514e46('0x14')]?_0x41b082[_0x514e46('0x102')]=[{'all':!![]}]:_0x41b082[_0x514e46('0x102')]=[{'model':db[_0x514e46('0x40')],'as':_0x514e46('0xb4'),'required':![]}],db['ChatOfflineMessage']['findAll'](_0x41b082);})[_0x473fc1('0x64')](function(_0x21b761){const _0x56642d=_0x473fc1;return _0x3b8f99[_0x56642d('0xaa')]=_0x21b761,_0x3b8f99;});})['then'](respondWithFilteredResult(_0x4d0f77,_0x41b082))[_0x2ad5b8('0xba')](handleError(_0x4d0f77,null));},exports[_0x37b0bc('0x9b')]=function(_0x2c603d,_0x3b31a9){const _0x278e60=_0x37b0bc;return db[_0x278e60('0xcc')][_0x278e60('0xa')]({'where':{'id':_0x2c603d['params']['id']}})[_0x278e60('0x64')](function(_0x24753d){const _0x30e5ad=_0x278e60;if(_0x24753d)return _0x24753d[_0x30e5ad('0x9b')](_0x2c603d[_0x30e5ad('0xae')][_0x30e5ad('0x23')],{'through':_[_0x30e5ad('0xce')](_0x2c603d[_0x30e5ad('0xae')],[_0x30e5ad('0x23'),'id'])})['then'](function(_0x442061){const _0x52a011=_0x30e5ad;for(let _0x43b0e4=0x0;_0x43b0e4<_0x2c603d[_0x52a011('0xae')]['ids'][_0x52a011('0xcd')];_0x43b0e4+=0x1){socket[_0x52a011('0x99')]('userChatWebsite:save',{'UserId':_0x2c603d[_0x52a011('0xae')][_0x52a011('0x23')][_0x43b0e4],'ChatWebsiteId':_0x2c603d[_0x52a011('0xa7')]['id']});}return _0x442061;});})[_0x278e60('0x64')](respondWithResult(_0x3b31a9,null))[_0x278e60('0xba')](handleError(_0x3b31a9,null));},exports[_0x37b0bc('0x69')]=function(_0x2bc9db,_0x2e113c){const _0xb86266=_0x37b0bc;return db['ChatWebsite'][_0xb86266('0xa')]({'where':{'id':_0x2bc9db[_0xb86266('0xa7')]['id']}})['then'](handleEntityNotFound(_0x2e113c,null))[_0xb86266('0x64')](function(_0x52fe26){const _0xa5c59a=_0xb86266;if(_0x52fe26)return _0x52fe26[_0xa5c59a('0x69')](_0x2bc9db[_0xa5c59a('0x8f')]['ids'])[_0xa5c59a('0x64')](function(){const _0x5eae61=_0xa5c59a;if(_['isArray'](_0x2bc9db[_0x5eae61('0x8f')][_0x5eae61('0x23')]))for(let _0x4fad1=0x0;_0x4fad1<_0x2bc9db[_0x5eae61('0x8f')][_0x5eae61('0x23')]['length'];_0x4fad1+=0x1){socket[_0x5eae61('0x99')](_0x5eae61('0x13'),{'UserId':Number(_0x2bc9db[_0x5eae61('0x8f')][_0x5eae61('0x23')][_0x4fad1]),'ChatWebsiteId':Number(_0x2bc9db['params']['id'])});}else socket[_0x5eae61('0x99')](_0x5eae61('0x13'),{'UserId':Number(_0x2bc9db[_0x5eae61('0x8f')][_0x5eae61('0x23')]),'ChatWebsiteId':Number(_0x2bc9db['params']['id'])});});})[_0xb86266('0x64')](respondWithStatusCode(_0x2e113c,null))[_0xb86266('0xba')](handleError(_0x2e113c,null));},exports['getAgents']=function(_0x432b41,_0x555528){const _0x25e132=_0x37b0bc;let _0x32476c={};const _0x52321a={};let _0x53a8de,_0x5c29e2;return db['ChatWebsite'][_0x25e132('0xa')]({'where':{'id':_0x432b41[_0x25e132('0xa7')]['id']}})[_0x25e132('0x64')](handleEntityNotFound(_0x555528,null))[_0x25e132('0x64')](function(_0x202dc0){const _0x26d824=_0x25e132;if(_0x202dc0)return _0x53a8de=_0x202dc0,_0x52321a['model']=_[_0x26d824('0x4a')](db['User'][_0x26d824('0x83')]),_0x52321a[_0x26d824('0x8f')]=_[_0x26d824('0x4a')](_0x432b41[_0x26d824('0x8f')]),_0x52321a[_0x26d824('0xe3')]=_[_0x26d824('0xf5')](_0x52321a[_0x26d824('0xd2')],_0x52321a['query']),_0x32476c[_0x26d824('0xaf')]=_[_0x26d824('0xf5')](_0x52321a[_0x26d824('0xd2')],qs[_0x26d824('0x10')](_0x432b41['query'][_0x26d824('0x10')])),_0x32476c[_0x26d824('0xaf')]=_0x32476c[_0x26d824('0xaf')]['length']?_0x32476c[_0x26d824('0xaf')]:_0x52321a['model'],_0x32476c[_0x26d824('0x100')]=qs[_0x26d824('0x94')](_0x432b41[_0x26d824('0x8f')][_0x26d824('0x94')]),_0x32476c[_0x26d824('0x1d')]=qs[_0x26d824('0xe3')](_[_0x26d824('0x74')](_0x432b41['query'],_0x52321a[_0x26d824('0xe3')])),_0x432b41[_0x26d824('0x8f')][_0x26d824('0xcf')]&&(_0x32476c[_0x26d824('0x1d')]=_[_0x26d824('0x8a')](_0x32476c[_0x26d824('0x1d')],{[Op['or']]:_[_0x26d824('0xfb')](_0x32476c[_0x26d824('0xaf')],function(_0x2d5a34){const _0xa03d6e=_0x26d824,_0x3d8da5={};return _0x3d8da5[_0x2d5a34]={[Op[_0xa03d6e('0x95')]]:'%'+_0x432b41[_0xa03d6e('0x8f')][_0xa03d6e('0xcf')]+'%'},_0x3d8da5;})})),_0x32476c=_[_0x26d824('0x8a')]({},_0x32476c,_0x432b41[_0x26d824('0x5f')]),_0x53a8de[_0x26d824('0x9f')](_0x32476c);})[_0x25e132('0x64')](function(_0x1b5eda){const _0x3f796f=_0x25e132;if(_0x1b5eda)return _0x5c29e2=_0x1b5eda[_0x3f796f('0xcd')],typeof _0x432b41[_0x3f796f('0x8f')][_0x3f796f('0xcb')]===_0x3f796f('0x4b')&&(_0x32476c[_0x3f796f('0x79')]=qs[_0x3f796f('0x79')](_0x432b41[_0x3f796f('0x8f')][_0x3f796f('0x79')]),_0x32476c[_0x3f796f('0xbe')]=qs['offset'](_0x432b41['query'][_0x3f796f('0xbe')])),_0x53a8de['getAgents'](_0x32476c);})['then'](function(_0xf234ac){if(_0xf234ac)return _0xf234ac?{'count':_0x5c29e2,'rows':_0xf234ac}:null;})['then'](respondWithResult(_0x555528,null))['catch'](handleError(_0x555528,null));}; \ No newline at end of file +const a133_0x3908=['then','end','online','limit','message','merge','user-agent-parser','send','contact','from\x20is\x20mandatory','keys','*,*,*,*','body','UserId','messageId','type','getProactiveActions','systemAvatar','map','setUA','x-real-port','offlineForm','findOrCreate','from','isArray','close','secure','register','request\x20sent','util','authentication','file','Contacts','tag','sequelize','../../mysqldb','root','code','increment','role','removeAgents','ChatWebsiteId','CmContact','getResult','CompanyId','getFields','index','includeAll','difference','update','userChatWebsite:remove','ChatWebsite','EventManager','ContactId','Command','result','port','x-real-ip','ChatInteraction','email','%s\x20%s','indexOf','../../rediscache','Start','../../config/environment','push','findAll','UserProfileSection','join','ONLINE','getCustomerAvatar','x-forwarded-for','interaction','verticalAlignment','SendMail','toPairs','autoclose','status','virtual','body\x20is\x20mandatory\x20and\x20not\x20empty','userChatWebsite:save','account','addAgents','fields','include','list','forwardOfflineAddress','transaction','threadId','stringify','MailServerOut','orderBy','utf8','client','getLogo','omit','addAnswer','applications','Unable\x20to\x20retrieve\x20the\x20current\x20user','fieldName','mandatoryDispositionPause','jayson/promise','server/files/images/logos/','offset','split','offline','set','agentAvatar','length','rawAttributes','asc','./chatWebsite.socket','addApplications','all','render','AttachmentId','defaults','ChatWebsites','\x22%s\x22\x20<%s>','query','License','format','no\x20available\x20attributes','server/files/images/avatars/','attributes','getInteractions','agent','sort','intersection','service','priority','textColor','OFFLINE','mapKeyOffline\x20is\x20mandatory,\x20please\x20use\x20one\x20of\x20these:\x20','chatProactiveAction','addInteraction','Content-Range','first','alignment','getDispositions','offlineMessageSubject','addLogo','sendStatus','offlineMessageBody','name','../../components/parsers/qs','remote','%s\x20%s\x20%s','like','color','notify','emit','server/files/images/avatars/system_avatar.png','CannedAnswer','querystring','fullname','updatedAt','unknown','removeAnswers','ChatWebsite,\x20%s,\x20%s','params','auth','CmList','headers','Interval','download','getAnswers','model','iftime\x20%s','readFileSync','rows','lastName','ChatOfflineMessage','browser','get','request','nolimit','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','user','mapKey\x20invalid,\x20please\x20use\x20one\x20of\x20these:\x20','show','[%s][INTERVAL][%s]\x20%s\x20%s\x20(%s)','addProactiveActions','ChatWebsite,\x20%s,\x20%s,\x20%s','path','order','getApplications','addAvatar','Tags','getLicense','../../config/license/util','ChatApplication','api','create','MailAccount','createdAt','interval','firstName','DESC','autoAssociation','where','iftime\x20%s,%s','No\x20timezone','mapKey','startRouting','count','filter','isNil','getAvatar','json','host','inspect','ids','chatLicenseExceeded','fromKey','findOne','ChatMessage','error','chat','addCustomerAvatar','server/files/images/logos/default_logo.svg','cf-connecting-ip','Disposition','server/files/images/avatars/customer_avatar.png','getAgents','includes','sendMail','removeDispositions','mapKeyOffline','Smtp','items','filename','onlineForm','created','filters','catch','server/files/images/avatars/default_avatar.png','Owner','userProfileId','connection','getSnippet','../../config/logger','User','app','ejs','addDisposition','sitepic','pick','Intervals','undefined','destroy','List','version','bulkCreate','describe','Applications','Contact','customerAvatar','unmanaged','options','mapKey\x20is\x20mandatory,\x20please\x20use\x20one\x20of\x20these:\x20','device','showCustomerAvatar','stack','true','referer','ListId','http','existsSync','findAndCountAll','server/files/templates/chatOfflineMessage.ejs','forcedOwnership','externalUrl','Pause','vendor','custom','addSystemAvatar','timezone','info'];(function(_0x1ec848,_0x271c82){const _0x39087e=function(_0x57558f){while(--_0x57558f){_0x1ec848['push'](_0x1ec848['shift']());}};_0x39087e(++_0x271c82);}(a133_0x3908,0x1a4));const a133_0x5755=function(_0x1ec848,_0x271c82){_0x1ec848=_0x1ec848-0x104;let _0x39087e=a133_0x3908[_0x1ec848];return _0x39087e;};const a133_0x508876=a133_0x5755;'use strict';const Mustache=require('mustache'),util=require(a133_0x508876(0x1ab)),path=require(a133_0x508876(0x12f)),ejs=require(a133_0x508876(0x16b)),fs=require('fs'),_=require('lodash'),querystring=require(a133_0x508876(0x111)),qs=require(a133_0x508876(0x108)),logger=require(a133_0x508876(0x168))(a133_0x508876(0x137)),config=require(a133_0x508876(0x1ce)),{db}=require(a133_0x508876(0x1b1)),{Op,ValidationError}=require(a133_0x508876(0x1b0)),{getSocket}=require(a133_0x508876(0x1cc)),socket=getSocket();require(a133_0x508876(0x1fd))[a133_0x508876(0x1a9)](socket);const jayson=require(a133_0x508876(0x1f3)),client=jayson[a133_0x508876(0x1eb)]['http']({'port':0x232c}),client9002=jayson['client'][a133_0x508876(0x182)]({'port':0x232a}),client9003=jayson[a133_0x508876(0x1eb)][a133_0x508876(0x182)]({'port':0x232b});function respondWithRpcPromise(_0x8a5c4a,_0x249040,_0x4e86da,_0x100cd8){return new Promise(function(_0x2ded25,_0x5af19a){const _0x37deef=a133_0x5755,_0xc3bfc8=_0x100cd8||client;return _0xc3bfc8[_0x37deef(0x126)](_0x8a5c4a,_0x4e86da)[_0x37deef(0x18e)](function(_0x11de4d){const _0x1fa26d=_0x37deef;logger['info'](_0x1fa26d(0x116),_0x249040,_0x1fa26d(0x1aa)),logger['debug'](_0x1fa26d(0x12e),_0x249040,_0x1fa26d(0x1aa),JSON[_0x1fa26d(0x1e7)](_0x11de4d));if(_0x11de4d[_0x1fa26d(0x150)]){if(_0x11de4d[_0x1fa26d(0x150)][_0x1fa26d(0x1b3)]===0x1f4)return logger['error']('ChatWebsite,\x20%s,\x20%s',_0x249040,_0x11de4d[_0x1fa26d(0x150)][_0x1fa26d(0x192)]),_0x5af19a(_0x11de4d['error']['message']);return logger[_0x1fa26d(0x150)](_0x1fa26d(0x116),_0x249040,_0x11de4d['error']['message']),_0x2ded25(_0x11de4d[_0x1fa26d(0x150)]['message']);}else logger[_0x1fa26d(0x18d)](_0x1fa26d(0x116),_0x249040,'request\x20sent'),_0x2ded25(_0x11de4d[_0x1fa26d(0x1c5)][_0x1fa26d(0x192)]);})[_0x37deef(0x162)](function(_0x511f2f){const _0x3d034c=_0x37deef;logger[_0x3d034c(0x150)](_0x3d034c(0x116),_0x249040,_0x511f2f),_0x5af19a(_0x511f2f);});});}function respondWithStatusCode(_0xe867d5,_0x46c2d5){return _0x46c2d5=_0x46c2d5||0xcc,function(_0x5b8e78){const _0x3fa6c0=a133_0x5755;if(_0x5b8e78)return _0xe867d5[_0x3fa6c0(0x105)](_0x46c2d5);return _0xe867d5[_0x3fa6c0(0x1db)](_0x46c2d5)[_0x3fa6c0(0x18f)]();};}function respondWithResult(_0x46ee5e,_0x1d8b84){return _0x1d8b84=_0x1d8b84||0xc8,function(_0x5808ae){const _0x45ff4b=a133_0x5755;if(_0x5808ae)return _0x46ee5e[_0x45ff4b(0x1db)](_0x1d8b84)[_0x45ff4b(0x148)](_0x5808ae);};}function respondWithFilteredResult(_0x424165,_0xba035a){return function(_0x5052e1){const _0x51dbdc=a133_0x5755;if(_0x5052e1){const _0x199bd7=_0x5052e1[_0x51dbdc(0x144)],_0x431e9d=_0xba035a['offset'];let _0x58e26c=_0xba035a[_0x51dbdc(0x1f5)]+_0xba035a[_0x51dbdc(0x191)],_0x34e8ba;return _0x58e26c>=_0x199bd7?(_0x58e26c=_0x199bd7,_0x34e8ba=0xc8):_0x34e8ba=0xce,_0x424165[_0x51dbdc(0x1db)](_0x34e8ba),_0x424165[_0x51dbdc(0x1f8)](_0x51dbdc(0x216),_0x431e9d+'-'+_0x58e26c+'/'+_0x199bd7)[_0x51dbdc(0x148)](_0x5052e1);}return null;};}function saveUpdates(_0x230e92){return function(_0x30da6c){const _0x18cb71=a133_0x5755;if(_0x30da6c)return _0x30da6c['update'](_0x230e92)[_0x18cb71(0x18e)](function(_0x34e6e8){return _0x34e6e8;});return null;};}function removeEntity(_0x328944){return function(_0x2bdc53){const _0x175ef2=a133_0x5755;if(_0x2bdc53)return _0x2bdc53[_0x175ef2(0x171)]()[_0x175ef2(0x18e)](function(){const _0x261ae7=_0x175ef2,_0x285ed5=_0x2bdc53['get']({'plain':!![]}),_0xfd910a=_0x261ae7(0x203);return db['UserProfileResource'][_0x261ae7(0x171)]({'where':{'type':_0xfd910a,'resourceId':_0x285ed5['id']}})[_0x261ae7(0x18e)](function(){return _0x2bdc53;});})[_0x175ef2(0x18e)](function(){_0x328944['status'](0xcc)['end']();});};}function handleEntityNotFound(_0x35c4f1){return function(_0x1c79e5){const _0x223fb5=a133_0x5755;return!_0x1c79e5&&_0x35c4f1[_0x223fb5(0x105)](0x194),_0x1c79e5;};}function handleError(_0x209238,_0x4ebb52){return _0x4ebb52=_0x4ebb52||0x1f4,function(_0xcd463e){const _0x11c82c=a133_0x5755;logger['error'](_0xcd463e[_0x11c82c(0x17e)]),_0xcd463e[_0x11c82c(0x107)]&&delete _0xcd463e['name'],_0x209238['status'](_0x4ebb52)[_0x11c82c(0x195)](_0xcd463e);};}exports[a133_0x508876(0x1bc)]=function(_0xb13cdd,_0x435e96){const _0x5c3e61=a133_0x508876;let _0x5342c8={'include':[{'model':db[_0x5c3e61(0x188)],'as':'mandatoryDispositionPause'}]};const _0x1f6d17={},_0x2e54fe={'count':0x0,'rows':[]},_0x227727=_[_0x5c3e61(0x1a0)](db[_0x5c3e61(0x1c1)]['rawAttributes'],function(_0x1b7569){const _0x3f7e48=_0x5c3e61;return{'name':_0x1b7569[_0x3f7e48(0x1f1)],'type':_0x1b7569[_0x3f7e48(0x19d)]['key']};});_0x1f6d17['model']=_[_0x5c3e61(0x1a0)](_0x227727,_0x5c3e61(0x107)),_0x1f6d17[_0x5c3e61(0x205)]=_['keys'](_0xb13cdd[_0x5c3e61(0x205)]),_0x1f6d17[_0x5c3e61(0x161)]=_['intersection'](_0x1f6d17['model'],_0x1f6d17[_0x5c3e61(0x205)]),_0x5342c8[_0x5c3e61(0x20a)]=_[_0x5c3e61(0x20e)](_0x1f6d17[_0x5c3e61(0x11e)],qs['fields'](_0xb13cdd[_0x5c3e61(0x205)][_0x5c3e61(0x1e1)])),_0x5342c8[_0x5c3e61(0x20a)]=_0x5342c8[_0x5c3e61(0x20a)]['length']?_0x5342c8['attributes']:_0x1f6d17[_0x5c3e61(0x11e)];typeof _0xb13cdd['query'][_0x5c3e61(0x127)]===_0x5c3e61(0x170)&&(_0x5342c8[_0x5c3e61(0x191)]=qs['limit'](_0xb13cdd[_0x5c3e61(0x205)][_0x5c3e61(0x191)]),_0x5342c8['offset']=qs['offset'](_0xb13cdd['query'][_0x5c3e61(0x1f5)]));_0x5342c8[_0x5c3e61(0x130)]=qs[_0x5c3e61(0x20d)](_0xb13cdd['query'][_0x5c3e61(0x20d)]),_0x5342c8[_0x5c3e61(0x13f)]=qs[_0x5c3e61(0x161)](_[_0x5c3e61(0x16e)](_0xb13cdd[_0x5c3e61(0x205)],_0x1f6d17[_0x5c3e61(0x161)]),_0x227727);_0xb13cdd['query'][_0x5c3e61(0x145)]&&(_0x5342c8[_0x5c3e61(0x13f)]=_[_0x5c3e61(0x193)](_0x5342c8[_0x5c3e61(0x13f)],{[Op['or']]:_[_0x5c3e61(0x1a0)](_0x227727,function(_0x197943){const _0x319db2=_0x5c3e61;if(_0x197943[_0x319db2(0x19d)]!=='VIRTUAL'){const _0x33d4ae={};return _0x33d4ae[_0x197943['name']]={[Op[_0x319db2(0x10b)]]:'%'+_0xb13cdd[_0x319db2(0x205)][_0x319db2(0x145)]+'%'},_0x33d4ae;}})}));_0x5342c8=_[_0x5c3e61(0x193)]({},_0x5342c8,_0xb13cdd[_0x5c3e61(0x17a)]);const _0x475c13={'where':_0x5342c8[_0x5c3e61(0x13f)]};return db[_0x5c3e61(0x1c1)][_0x5c3e61(0x144)](_0x475c13)[_0x5c3e61(0x18e)](function(_0x92b725){const _0x1701f3=_0x5c3e61;return _0x2e54fe[_0x1701f3(0x144)]=_0x92b725,_0xb13cdd[_0x1701f3(0x205)]['includeAll']&&(_0x5342c8[_0x1701f3(0x1e2)]=[{'all':!![]}]),db[_0x1701f3(0x1c1)][_0x1701f3(0x1d0)](_0x5342c8);})[_0x5c3e61(0x18e)](function(_0x4b5768){return _0x2e54fe['rows']=_0x4b5768,_0x2e54fe;})[_0x5c3e61(0x18e)](respondWithFilteredResult(_0x435e96,_0x5342c8))[_0x5c3e61(0x162)](handleError(_0x435e96,null));},exports[a133_0x508876(0x12b)]=function(_0x2f35e7,_0x4829ba){const _0x5c9ccf=a133_0x508876;let _0x59fee3={'raw':![],'where':{'id':_0x2f35e7[_0x5c9ccf(0x117)]['id']},'include':[{'model':db['Pause'],'as':'mandatoryDispositionPause'}]};const _0x294e1f={};return _0x294e1f[_0x5c9ccf(0x11e)]=_[_0x5c9ccf(0x198)](db[_0x5c9ccf(0x1c1)][_0x5c9ccf(0x1fb)]),_0x294e1f[_0x5c9ccf(0x205)]=_['keys'](_0x2f35e7['query']),_0x294e1f[_0x5c9ccf(0x161)]=_[_0x5c9ccf(0x20e)](_0x294e1f[_0x5c9ccf(0x11e)],_0x294e1f[_0x5c9ccf(0x205)]),_0x59fee3[_0x5c9ccf(0x20a)]=_[_0x5c9ccf(0x20e)](_0x294e1f[_0x5c9ccf(0x11e)],qs[_0x5c9ccf(0x1e1)](_0x2f35e7['query'][_0x5c9ccf(0x1e1)])),_0x59fee3['attributes']=_0x59fee3[_0x5c9ccf(0x20a)][_0x5c9ccf(0x1fa)]?_0x59fee3[_0x5c9ccf(0x20a)]:_0x294e1f['model'],_0x2f35e7[_0x5c9ccf(0x205)][_0x5c9ccf(0x1bd)]&&(_0x59fee3[_0x5c9ccf(0x1e2)]=[{'all':!![]}]),_0x59fee3=_['merge']({},_0x59fee3,_0x2f35e7['options']),db[_0x5c9ccf(0x1c1)][_0x5c9ccf(0x14e)](_0x59fee3)['then'](handleEntityNotFound(_0x4829ba,null))[_0x5c9ccf(0x18e)](respondWithResult(_0x4829ba,null))[_0x5c9ccf(0x162)](handleError(_0x4829ba,null));},exports[a133_0x508876(0x138)]=function(_0x2c4423,_0xc82e00){const _0x1579f9=a133_0x508876;return db[_0x1579f9(0x1c1)]['create'](_0x2c4423[_0x1579f9(0x19a)],{})['then'](function(_0xed6f55){const _0xa7cae9=_0x1579f9,_0x250bb9=_0x2c4423[_0xa7cae9(0x129)][_0xa7cae9(0x125)]({'plain':!![]});if(!_0x250bb9)throw new Error(_0xa7cae9(0x1f0));if(_0x250bb9[_0xa7cae9(0x1b5)]==='user'){const _0x106de2=_0xed6f55['get']({'plain':!![]}),_0x2bffb2='ChatWebsites';return db[_0xa7cae9(0x1d1)][_0xa7cae9(0x14e)]({'where':{'name':_0x2bffb2,'userProfileId':_0x250bb9[_0xa7cae9(0x165)]},'raw':!![]})[_0xa7cae9(0x18e)](function(_0x10dc0f){const _0x21eb13=_0xa7cae9;return _0x10dc0f&&_0x10dc0f[_0x21eb13(0x13e)]===0x0?db['UserProfileResource'][_0x21eb13(0x138)]({'name':_0x106de2['name'],'resourceId':_0x106de2['id'],'type':_0x10dc0f[_0x21eb13(0x107)],'sectionId':_0x10dc0f['id']},{})['then'](function(){return _0xed6f55;}):_0xed6f55;})[_0xa7cae9(0x162)](function(_0x2cb5ed){const _0x4f8baf=_0xa7cae9;logger['error'](_0x4f8baf(0x128),_0x2cb5ed);throw _0x2cb5ed;});}return _0xed6f55;})[_0x1579f9(0x18e)](respondWithResult(_0xc82e00,0xc9))[_0x1579f9(0x162)](handleError(_0xc82e00,null));},exports[a133_0x508876(0x1bf)]=function(_0x5d6b52,_0x1ab085){const _0x3d5fe5=a133_0x508876;return _0x5d6b52[_0x3d5fe5(0x19a)]['id']&&delete _0x5d6b52[_0x3d5fe5(0x19a)]['id'],db[_0x3d5fe5(0x1c1)][_0x3d5fe5(0x14e)]({'where':{'id':_0x5d6b52[_0x3d5fe5(0x117)]['id']},'include':[{'model':db[_0x3d5fe5(0x188)],'as':_0x3d5fe5(0x1f2)}]})[_0x3d5fe5(0x18e)](handleEntityNotFound(_0x1ab085,null))[_0x3d5fe5(0x18e)](saveUpdates(_0x5d6b52[_0x3d5fe5(0x19a)],null))[_0x3d5fe5(0x18e)](respondWithResult(_0x1ab085,null))[_0x3d5fe5(0x162)](handleError(_0x1ab085,null));},exports[a133_0x508876(0x171)]=function(_0x1a6f58,_0x4ed2c6){const _0x561e21=a133_0x508876;return db['ChatWebsite'][_0x561e21(0x14e)]({'where':{'id':_0x1a6f58['params']['id']}})['then'](handleEntityNotFound(_0x4ed2c6,null))[_0x561e21(0x18e)](removeEntity(_0x4ed2c6,null))[_0x561e21(0x162)](handleError(_0x4ed2c6,null));},exports['describe']=function(_0x1c4593,_0x447e61){const _0x458049=a133_0x508876;return db[_0x458049(0x1c1)][_0x458049(0x175)]()['then'](respondWithResult(_0x447e61,null))['catch'](handleError(_0x447e61,null));},exports[a133_0x508876(0x16c)]=function(_0x5ed433,_0x295261){const _0x2653fb=a133_0x508876;return _0x5ed433[_0x2653fb(0x19a)]['id']&&delete _0x5ed433[_0x2653fb(0x19a)]['id'],db[_0x2653fb(0x1c1)][_0x2653fb(0x14e)]({'where':{'id':_0x5ed433[_0x2653fb(0x117)]['id']}})[_0x2653fb(0x18e)](handleEntityNotFound(_0x295261,null))[_0x2653fb(0x18e)](function(_0x1ac163){const _0x22c896=_0x2653fb;if(_0x1ac163)return _0x5ed433[_0x22c896(0x19a)]['ChatWebsiteId']=_0x1ac163['id'],db[_0x22c896(0x155)][_0x22c896(0x138)](_0x5ed433[_0x22c896(0x19a)]);})[_0x2653fb(0x18e)](respondWithResult(_0x295261,null))[_0x2653fb(0x162)](handleError(_0x295261,null));},exports[a133_0x508876(0x219)]=function(_0x13abb2,_0xf72bca){const _0x5f1b3c=a133_0x508876;let _0x268636={'raw':![],'where':{}};const _0x3b4592={},_0x20c475={'count':0x0,'rows':[]};return db[_0x5f1b3c(0x1c1)]['findOne']({'where':{'id':_0x13abb2[_0x5f1b3c(0x117)]['id']}})[_0x5f1b3c(0x18e)](handleEntityNotFound(_0xf72bca,null))[_0x5f1b3c(0x18e)](function(_0x8c14d4){const _0x2fdddc=_0x5f1b3c;if(_0x8c14d4)return _0x3b4592[_0x2fdddc(0x11e)]=_['keys'](db[_0x2fdddc(0x155)][_0x2fdddc(0x1fb)]),_0x3b4592[_0x2fdddc(0x205)]=_[_0x2fdddc(0x198)](_0x13abb2['query']),_0x3b4592[_0x2fdddc(0x161)]=_['intersection'](_0x3b4592[_0x2fdddc(0x11e)],_0x3b4592['query']),_0x268636[_0x2fdddc(0x20a)]=_['intersection'](_0x3b4592[_0x2fdddc(0x11e)],qs[_0x2fdddc(0x1e1)](_0x13abb2[_0x2fdddc(0x205)][_0x2fdddc(0x1e1)])),_0x268636[_0x2fdddc(0x20a)]=_0x268636['attributes'][_0x2fdddc(0x1fa)]?_0x268636[_0x2fdddc(0x20a)]:_0x3b4592[_0x2fdddc(0x11e)],typeof _0x13abb2[_0x2fdddc(0x205)][_0x2fdddc(0x127)]==='undefined'&&(_0x268636[_0x2fdddc(0x191)]=qs[_0x2fdddc(0x191)](_0x13abb2[_0x2fdddc(0x205)][_0x2fdddc(0x191)]),_0x268636[_0x2fdddc(0x1f5)]=qs[_0x2fdddc(0x1f5)](_0x13abb2[_0x2fdddc(0x205)]['offset'])),_0x268636['order']=qs['sort'](_0x13abb2[_0x2fdddc(0x205)][_0x2fdddc(0x20d)]),_0x268636[_0x2fdddc(0x13f)]=qs['filters'](_[_0x2fdddc(0x16e)](_0x13abb2[_0x2fdddc(0x205)],_0x3b4592['filters'])),_0x268636[_0x2fdddc(0x13f)][_0x2fdddc(0x1b7)]=_0x8c14d4['id'],_0x13abb2[_0x2fdddc(0x205)][_0x2fdddc(0x145)]&&(_0x268636[_0x2fdddc(0x13f)]=_[_0x2fdddc(0x193)](_0x268636['where'],{[Op['or']]:_[_0x2fdddc(0x1a0)](_0x268636[_0x2fdddc(0x20a)],function(_0x25d673){const _0x3e9c8b=_0x2fdddc,_0x4a6df9={};return _0x4a6df9[_0x25d673]={[Op[_0x3e9c8b(0x10b)]]:'%'+_0x13abb2[_0x3e9c8b(0x205)][_0x3e9c8b(0x145)]+'%'},_0x4a6df9;})})),_0x268636=_[_0x2fdddc(0x193)]({},_0x268636,_0x13abb2[_0x2fdddc(0x17a)]),db[_0x2fdddc(0x155)]['count']({'where':_0x268636[_0x2fdddc(0x13f)]})['then'](function(_0x282373){const _0x1e0671=_0x2fdddc;return _0x20c475['count']=_0x282373,_0x13abb2[_0x1e0671(0x205)][_0x1e0671(0x1bd)]&&(_0x268636['include']=[{'all':!![]}]),db[_0x1e0671(0x155)][_0x1e0671(0x1d0)](_0x268636);})['then'](function(_0xde739){const _0x36d2e3=_0x2fdddc;return _0x20c475[_0x36d2e3(0x121)]=_0xde739,_0x20c475;});})[_0x5f1b3c(0x18e)](respondWithFilteredResult(_0xf72bca,_0x268636))[_0x5f1b3c(0x162)](handleError(_0xf72bca,null));},exports[a133_0x508876(0x15a)]=function(_0x3cfe0d,_0x6abd4c){const _0xb03704=a133_0x508876;return db[_0xb03704(0x1c1)][_0xb03704(0x14e)]({'where':{'id':_0x3cfe0d[_0xb03704(0x117)]['id']}})['then'](handleEntityNotFound(_0x6abd4c,null))[_0xb03704(0x18e)](function(_0x2b3a9e){const _0x101cf1=_0xb03704;if(_0x2b3a9e)return _0x2b3a9e[_0x101cf1(0x15a)](_0x3cfe0d[_0x101cf1(0x205)][_0x101cf1(0x14b)]);})['then'](respondWithStatusCode(_0x6abd4c,null))['catch'](handleError(_0x6abd4c,null));},exports[a133_0x508876(0x1ee)]=function(_0x3c4ac4,_0x1443d3){const _0x45403b=a133_0x508876;return _0x3c4ac4[_0x45403b(0x19a)]['id']&&delete _0x3c4ac4['body']['id'],db['ChatWebsite']['findOne']({'where':{'id':_0x3c4ac4[_0x45403b(0x117)]['id']}})[_0x45403b(0x18e)](handleEntityNotFound(_0x1443d3,null))['then'](function(_0x2cd748){const _0xf6ffa7=_0x45403b;if(_0x2cd748)return _0x3c4ac4[_0xf6ffa7(0x19a)][_0xf6ffa7(0x1b7)]=_0x2cd748['id'],db[_0xf6ffa7(0x110)]['create'](_0x3c4ac4['body']);})['then'](respondWithResult(_0x1443d3,null))[_0x45403b(0x162)](handleError(_0x1443d3,null));},exports[a133_0x508876(0x11d)]=function(_0x4ee004,_0x3c9501){const _0x49577d=a133_0x508876;let _0x47c646={'raw':![],'where':{}};const _0x1fe186={},_0x52e5ec={'count':0x0,'rows':[]};return db['ChatWebsite'][_0x49577d(0x14e)]({'where':{'id':_0x4ee004[_0x49577d(0x117)]['id']}})[_0x49577d(0x18e)](handleEntityNotFound(_0x3c9501,null))[_0x49577d(0x18e)](function(_0xe18058){const _0x15f6e5=_0x49577d;if(_0xe18058)return _0x1fe186['model']=_['keys'](db[_0x15f6e5(0x110)][_0x15f6e5(0x1fb)]),_0x1fe186[_0x15f6e5(0x205)]=_['keys'](_0x4ee004['query']),_0x1fe186[_0x15f6e5(0x161)]=_[_0x15f6e5(0x20e)](_0x1fe186[_0x15f6e5(0x11e)],_0x1fe186['query']),_0x47c646[_0x15f6e5(0x20a)]=_[_0x15f6e5(0x20e)](_0x1fe186[_0x15f6e5(0x11e)],qs[_0x15f6e5(0x1e1)](_0x4ee004['query'][_0x15f6e5(0x1e1)])),_0x47c646[_0x15f6e5(0x20a)]=_0x47c646[_0x15f6e5(0x20a)]['length']?_0x47c646[_0x15f6e5(0x20a)]:_0x1fe186[_0x15f6e5(0x11e)],typeof _0x4ee004[_0x15f6e5(0x205)][_0x15f6e5(0x127)]===_0x15f6e5(0x170)&&(_0x47c646[_0x15f6e5(0x191)]=qs[_0x15f6e5(0x191)](_0x4ee004[_0x15f6e5(0x205)][_0x15f6e5(0x191)]),_0x47c646[_0x15f6e5(0x1f5)]=qs[_0x15f6e5(0x1f5)](_0x4ee004[_0x15f6e5(0x205)][_0x15f6e5(0x1f5)])),_0x47c646['order']=qs[_0x15f6e5(0x20d)](_0x4ee004[_0x15f6e5(0x205)][_0x15f6e5(0x20d)]),_0x47c646[_0x15f6e5(0x13f)]=qs[_0x15f6e5(0x161)](_['pick'](_0x4ee004['query'],_0x1fe186[_0x15f6e5(0x161)])),_0x47c646[_0x15f6e5(0x13f)][_0x15f6e5(0x1b7)]=_0xe18058['id'],_0x4ee004[_0x15f6e5(0x205)]['filter']&&(_0x47c646[_0x15f6e5(0x13f)]=_['merge'](_0x47c646[_0x15f6e5(0x13f)],{[Op['or']]:_[_0x15f6e5(0x1a0)](_0x47c646[_0x15f6e5(0x20a)],function(_0x12ce59){const _0x40209f=_0x15f6e5,_0xa223ad={};return _0xa223ad[_0x12ce59]={[Op[_0x40209f(0x10b)]]:'%'+_0x4ee004['query'][_0x40209f(0x145)]+'%'},_0xa223ad;})})),_0x47c646=_['merge']({},_0x47c646,_0x4ee004['options']),db[_0x15f6e5(0x110)][_0x15f6e5(0x144)]({'where':_0x47c646[_0x15f6e5(0x13f)]})[_0x15f6e5(0x18e)](function(_0x58e923){const _0x83bce4=_0x15f6e5;return _0x52e5ec['count']=_0x58e923,_0x4ee004[_0x83bce4(0x205)][_0x83bce4(0x1bd)]&&(_0x47c646[_0x83bce4(0x1e2)]=[{'all':!![]}]),db[_0x83bce4(0x110)]['findAll'](_0x47c646);})[_0x15f6e5(0x18e)](function(_0x1dc79d){const _0x350d50=_0x15f6e5;return _0x52e5ec[_0x350d50(0x121)]=_0x1dc79d,_0x52e5ec;});})[_0x49577d(0x18e)](respondWithFilteredResult(_0x3c9501,_0x47c646))[_0x49577d(0x162)](handleError(_0x3c9501,null));},exports[a133_0x508876(0x115)]=function(_0x330a96,_0x45d75a){const _0x304469=a133_0x508876;return db[_0x304469(0x1c1)][_0x304469(0x14e)]({'where':{'id':_0x330a96[_0x304469(0x117)]['id']}})['then'](handleEntityNotFound(_0x45d75a,null))[_0x304469(0x18e)](function(_0x453c8f){const _0xfe37fc=_0x304469;if(_0x453c8f)return _0x453c8f[_0xfe37fc(0x115)](_0x330a96[_0xfe37fc(0x205)][_0xfe37fc(0x14b)]);})['then'](respondWithStatusCode(_0x45d75a,null))[_0x304469(0x162)](handleError(_0x45d75a,null));},exports[a133_0x508876(0x104)]=function(_0x148403,_0x5206dd){const _0x41ed36=a133_0x508876;return _0x148403[_0x41ed36(0x19a)]['sitepic']=_0x148403[_0x41ed36(0x1ad)][_0x41ed36(0x15e)],db['ChatWebsite'][_0x41ed36(0x14e)]({'where':{'id':_0x148403['params']['id']}})['then'](handleEntityNotFound(_0x5206dd,null))['then'](saveUpdates(_0x148403[_0x41ed36(0x19a)],null))[_0x41ed36(0x18e)](respondWithResult(_0x5206dd,null))['catch'](handleError(_0x5206dd,null));},exports[a133_0x508876(0x132)]=function(_0x16ddbd,_0x5433f7){const _0x3aad06=a133_0x508876;return _0x16ddbd[_0x3aad06(0x19a)]['agentAvatar']=_0x16ddbd[_0x3aad06(0x1ad)][_0x3aad06(0x15e)],db[_0x3aad06(0x1c1)][_0x3aad06(0x14e)]({'where':{'id':_0x16ddbd['params']['id']}})[_0x3aad06(0x18e)](handleEntityNotFound(_0x5433f7,null))[_0x3aad06(0x18e)](saveUpdates(_0x16ddbd[_0x3aad06(0x19a)],null))[_0x3aad06(0x18e)](respondWithResult(_0x5433f7,null))[_0x3aad06(0x162)](handleError(_0x5433f7,null));},exports[a133_0x508876(0x152)]=function(_0x1cca4c,_0x2b9f55){const _0x56d148=a133_0x508876;return _0x1cca4c[_0x56d148(0x19a)]['customerAvatar']=_0x1cca4c[_0x56d148(0x1ad)][_0x56d148(0x15e)],db['ChatWebsite'][_0x56d148(0x14e)]({'where':{'id':_0x1cca4c[_0x56d148(0x117)]['id']}})['then'](handleEntityNotFound(_0x2b9f55,null))[_0x56d148(0x18e)](saveUpdates(_0x1cca4c[_0x56d148(0x19a)],null))['then'](respondWithResult(_0x2b9f55,null))[_0x56d148(0x162)](handleError(_0x2b9f55,null));},exports[a133_0x508876(0x18b)]=function(_0x3de064,_0x58f0ba){const _0x53d993=a133_0x508876;return _0x3de064[_0x53d993(0x19a)][_0x53d993(0x19f)]=_0x3de064['file'][_0x53d993(0x15e)],db[_0x53d993(0x1c1)][_0x53d993(0x14e)]({'where':{'id':_0x3de064['params']['id']}})[_0x53d993(0x18e)](handleEntityNotFound(_0x58f0ba,null))[_0x53d993(0x18e)](saveUpdates(_0x3de064[_0x53d993(0x19a)],null))['then'](respondWithResult(_0x58f0ba,null))[_0x53d993(0x162)](handleError(_0x58f0ba,null));},exports[a133_0x508876(0x1ec)]=function(_0x57ee4e,_0x2e2e80){const _0x3d655f=a133_0x508876;let _0x5451d4=path[_0x3d655f(0x1d2)](config[_0x3d655f(0x1b2)],_0x3d655f(0x153));const _0x1ac15b={'where':{'id':_0x57ee4e[_0x3d655f(0x117)]['id']},'attributes':['id',_0x3d655f(0x16d)],'raw':!![]};let _0x438723=![];return require(_0x3d655f(0x135))[_0x3d655f(0x134)]()[_0x3d655f(0x18e)](function(_0x2de30e){_0x2de30e&&(_0x438723=_0x2de30e['custom']);})[_0x3d655f(0x18e)](function(){const _0x34154d=_0x3d655f;return db[_0x34154d(0x1c1)][_0x34154d(0x14e)](_0x1ac15b);})[_0x3d655f(0x18e)](handleEntityNotFound(_0x2e2e80,null))[_0x3d655f(0x18e)](function(_0x19afff){const _0x19dd6b=_0x3d655f;if(_0x19afff)return!_['isNil'](_0x19afff[_0x19dd6b(0x16d)])&&(fs[_0x19dd6b(0x183)](path[_0x19dd6b(0x1d2)](config['root'],_0x19dd6b(0x1f4),_0x19afff[_0x19dd6b(0x16d)]))&&_0x438723&&(_0x5451d4=path[_0x19dd6b(0x1d2)](config[_0x19dd6b(0x1b2)],'server/files/images/logos/',_0x19afff[_0x19dd6b(0x16d)]))),_0x2e2e80[_0x19dd6b(0x11c)](_0x5451d4);})[_0x3d655f(0x162)](handleError(_0x2e2e80,null));},exports[a133_0x508876(0x147)]=function(_0x35d45f,_0x3a9a71){const _0x1f20f5=a133_0x508876;let _0x245698=path[_0x1f20f5(0x1d2)](config[_0x1f20f5(0x1b2)],_0x1f20f5(0x163));const _0xa53268={'where':{'id':_0x35d45f['params']['id']},'attributes':['id',_0x1f20f5(0x1f9)],'raw':!![]};return db[_0x1f20f5(0x1c1)][_0x1f20f5(0x14e)](_0xa53268)[_0x1f20f5(0x18e)](handleEntityNotFound(_0x3a9a71,null))[_0x1f20f5(0x18e)](function(_0x1aaf9d){const _0x4dfd53=_0x1f20f5;if(_0x1aaf9d)return!_[_0x4dfd53(0x146)](_0x1aaf9d[_0x4dfd53(0x1f9)])&&(fs[_0x4dfd53(0x183)](path[_0x4dfd53(0x1d2)](config[_0x4dfd53(0x1b2)],_0x4dfd53(0x209),_0x1aaf9d['agentAvatar']))&&(_0x245698=path[_0x4dfd53(0x1d2)](config['root'],_0x4dfd53(0x209),_0x1aaf9d['agentAvatar']))),_0x3a9a71[_0x4dfd53(0x11c)](_0x245698);})['catch'](handleError(_0x3a9a71,null));},exports[a133_0x508876(0x1d4)]=function(_0x5842c6,_0x21593e){const _0x2cfeb1=a133_0x508876;let _0x47d722=path[_0x2cfeb1(0x1d2)](config[_0x2cfeb1(0x1b2)],_0x2cfeb1(0x156));const _0x27b4e8={'where':{'id':_0x5842c6['params']['id']},'attributes':['id','customerAvatar',_0x2cfeb1(0x17d)],'raw':!![]};return db[_0x2cfeb1(0x1c1)]['findOne'](_0x27b4e8)[_0x2cfeb1(0x18e)](handleEntityNotFound(_0x21593e,null))[_0x2cfeb1(0x18e)](function(_0x1c1afa){const _0x321655=_0x2cfeb1;if(_0x1c1afa)return!_['isNil'](_0x1c1afa['customerAvatar'])&&(fs[_0x321655(0x183)](path['join'](config['root'],'server/files/images/avatars/',_0x1c1afa[_0x321655(0x178)]))&&_0x1c1afa[_0x321655(0x17d)]&&(_0x47d722=path['join'](config['root'],_0x321655(0x209),_0x1c1afa[_0x321655(0x178)]))),_0x21593e[_0x321655(0x11c)](_0x47d722);})[_0x2cfeb1(0x162)](handleError(_0x21593e,null));},exports['getSystemAvatar']=function(_0x477543,_0x55f684){const _0x17310f=a133_0x508876;let _0x438991=path[_0x17310f(0x1d2)](config[_0x17310f(0x1b2)],_0x17310f(0x10f));const _0x4f5730={'where':{'id':_0x477543[_0x17310f(0x117)]['id']},'attributes':['id','systemAvatar'],'raw':!![]};return db[_0x17310f(0x1c1)][_0x17310f(0x14e)](_0x4f5730)[_0x17310f(0x18e)](handleEntityNotFound(_0x55f684,null))[_0x17310f(0x18e)](function(_0x276e93){const _0x3dc62f=_0x17310f;if(_0x276e93)return!_['isNil'](_0x276e93[_0x3dc62f(0x19f)])&&(fs[_0x3dc62f(0x183)](path[_0x3dc62f(0x1d2)](config['root'],_0x3dc62f(0x209),_0x276e93[_0x3dc62f(0x19f)]))&&(_0x438991=path[_0x3dc62f(0x1d2)](config['root'],_0x3dc62f(0x209),_0x276e93[_0x3dc62f(0x19f)]))),_0x55f684[_0x3dc62f(0x11c)](_0x438991);})[_0x17310f(0x162)](handleError(_0x55f684,null));},exports[a133_0x508876(0x10d)]=function(_0x44fa5c,_0x17d3a5){const _0x2eb43e=a133_0x508876,_0x268c7f=require(_0x2eb43e(0x194)),_0x3e5976=new _0x268c7f(),_0x225615=_0x3e5976[_0x2eb43e(0x1a1)](_0x44fa5c[_0x2eb43e(0x11a)]['user-agent'])[_0x2eb43e(0x1b9)](),_0x113839={'body':_0x44fa5c['body'],'channel':_0x2eb43e(0x151)};let _0x3bade2=[],_0x10350=[];const _0x339697={};let _0x4f6c02=![];return db[_0x2eb43e(0x1b8)][_0x2eb43e(0x175)]()[_0x2eb43e(0x18e)](function(_0x516c23){const _0x34b859=_0x2eb43e;if(!_0x516c23)throw new ValidationError(_0x34b859(0x208));_0x3bade2=_['difference'](_[_0x34b859(0x198)](_0x516c23),[_0x34b859(0x13a),_0x34b859(0x113)]),_0x10350=_[_0x34b859(0x1be)](_[_0x34b859(0x198)](_0x516c23),[_0x34b859(0x13a),_0x34b859(0x113),'CompanyId',_0x34b859(0x181)]);_0x44fa5c[_0x34b859(0x19a)]['id']&&delete _0x44fa5c[_0x34b859(0x19a)]['id'];if(_[_0x34b859(0x146)](_0x44fa5c[_0x34b859(0x19a)][_0x34b859(0x1a5)]))throw new ValidationError(_0x34b859(0x197));if(_[_0x34b859(0x146)](_0x44fa5c[_0x34b859(0x19a)][_0x34b859(0x19a)])||_0x44fa5c[_0x34b859(0x19a)][_0x34b859(0x19a)]==='')throw new ValidationError('body\x20is\x20mandatory\x20and\x20not\x20empty');if(_[_0x34b859(0x146)](_0x44fa5c[_0x34b859(0x19a)][_0x34b859(0x142)]))throw new ValidationError(_0x34b859(0x17b)+_0x10350);if(!_['includes'](_0x10350,_0x44fa5c[_0x34b859(0x19a)][_0x34b859(0x142)]))throw new ValidationError(_0x34b859(0x12a)+_0x10350);_0x339697[_0x44fa5c[_0x34b859(0x19a)][_0x34b859(0x142)]]=_0x44fa5c[_0x34b859(0x19a)]['from'];})[_0x2eb43e(0x18e)](function(){const _0x1474a7=_0x2eb43e;return db[_0x1474a7(0x1c1)][_0x1474a7(0x14e)]({'where':{'id':_0x44fa5c[_0x1474a7(0x117)]['id']},'include':[{'model':db[_0x1474a7(0x119)],'as':_0x1474a7(0x172),'include':[{'model':db['CmContact'],'as':_0x1474a7(0x1ae),'where':_0x339697,'limit':0x1,'order':[[_0x1474a7(0x113),_0x1474a7(0x13d)]]}]},{'model':db[_0x1474a7(0x136)],'as':'Applications'}]});})[_0x2eb43e(0x18e)](handleEntityNotFound(_0x17d3a5,null))['then'](function(_0x33a771){const _0x5a91e2=_0x2eb43e;if(_0x33a771&&_0x33a771[_0x5a91e2(0x172)]){_0x113839[_0x5a91e2(0x1df)]=_0x33a771,_0x113839['applications']=_0x33a771[_0x5a91e2(0x176)],_0x113839[_0x5a91e2(0x1e3)]=_0x33a771[_0x5a91e2(0x172)],_0x113839[_0x5a91e2(0x1ef)]=_[_0x5a91e2(0x1e9)](_0x113839['applications'],[_0x5a91e2(0x210)],[_0x5a91e2(0x1fc)]);_0x113839['account']['Applications']&&delete _0x113839['account'][_0x5a91e2(0x176)];if(_0x113839['account'][_0x5a91e2(0x172)]&&_0x113839[_0x5a91e2(0x1df)]['List']['Contacts'][_0x5a91e2(0x1fa)])return _0x113839[_0x5a91e2(0x1df)][_0x5a91e2(0x172)][_0x5a91e2(0x1ae)][0x0];const _0x320480=_[_0x5a91e2(0x202)](_0x44fa5c['body'],{'firstName':_0x44fa5c[_0x5a91e2(0x19a)][_0x5a91e2(0x1a5)],'ListId':_0x33a771[_0x5a91e2(0x181)]});return _0x320480[_0x44fa5c[_0x5a91e2(0x19a)][_0x5a91e2(0x142)]]=_0x44fa5c[_0x5a91e2(0x19a)][_0x5a91e2(0x1a5)],db[_0x5a91e2(0x1b8)][_0x5a91e2(0x138)](_0x320480,{'fields':_0x3bade2,'raw':!![]});}})[_0x2eb43e(0x18e)](handleEntityNotFound(_0x17d3a5,null))[_0x2eb43e(0x18e)](function(_0x43e645){const _0x42f3a9=_0x2eb43e;_0x113839[_0x42f3a9(0x196)]=_0x43e645;let _0x49040d=_0x44fa5c[_0x42f3a9(0x19a)]['customerIp'];if(_0x44fa5c[_0x42f3a9(0x11a)]['cf-connecting-ip'])_0x49040d=_0x44fa5c[_0x42f3a9(0x11a)][_0x42f3a9(0x154)];else _0x44fa5c[_0x42f3a9(0x11a)][_0x42f3a9(0x1d5)]&&(_0x49040d=_[_0x42f3a9(0x217)](_0x44fa5c[_0x42f3a9(0x11a)][_0x42f3a9(0x1d5)][_0x42f3a9(0x1f6)](',')));if(_0x43e645){const _0x32dfb6={'ContactId':_0x43e645['id'],'ChatWebsiteId':_0x44fa5c[_0x42f3a9(0x117)]['id'],'from':(_0x43e645['firstName']||'')+'\x20'+(_0x43e645[_0x42f3a9(0x122)]||''),'customerIp':_0x49040d,'customerPort':_0x44fa5c[_0x42f3a9(0x11a)][_0x42f3a9(0x1a2)]?_0x44fa5c['headers'][_0x42f3a9(0x1a2)]:null,'referer':_0x44fa5c[_0x42f3a9(0x19a)][_0x42f3a9(0x180)],'browserName':_0x225615[_0x42f3a9(0x124)][_0x42f3a9(0x107)]&&_0x225615[_0x42f3a9(0x124)]['version']?util['format'](_0x42f3a9(0x1ca),_0x225615[_0x42f3a9(0x124)][_0x42f3a9(0x107)],_0x225615[_0x42f3a9(0x124)][_0x42f3a9(0x173)]):'unknown','browserVersion':_0x225615[_0x42f3a9(0x124)][_0x42f3a9(0x173)]||_0x42f3a9(0x114),'osName':util[_0x42f3a9(0x207)](_0x42f3a9(0x1ca),_0x225615['os']['name'],_0x225615['os'][_0x42f3a9(0x173)]),'osVersion':_0x225615['os'][_0x42f3a9(0x173)],'deviceModel':_0x225615['device']['model']&&_0x225615[_0x42f3a9(0x17c)][_0x42f3a9(0x189)]?util[_0x42f3a9(0x207)](_0x42f3a9(0x10a),_0x225615[_0x42f3a9(0x17c)][_0x42f3a9(0x11e)],_0x225615['device'][_0x42f3a9(0x189)],_0x225615['device'][_0x42f3a9(0x19d)]):null,'deviceVendor':_0x225615[_0x42f3a9(0x17c)][_0x42f3a9(0x189)],'deviceType':_0x225615['device'][_0x42f3a9(0x19d)],'formData':JSON[_0x42f3a9(0x1e7)](_0x44fa5c['body'])},_0x4eae0f={'ChatWebsiteId':_0x44fa5c[_0x42f3a9(0x117)]['id'],'closed':![]};if(_0x44fa5c[_0x42f3a9(0x19a)]['threadId'])return _0x4eae0f['threadId']=_0x44fa5c['body'][_0x42f3a9(0x1e6)],db[_0x42f3a9(0x1c8)]['findOne']({'where':_0x4eae0f})[_0x42f3a9(0x18e)](function(_0x2d94fe){const _0xdad06=_0x42f3a9;if(_0x2d94fe)return[_0x2d94fe,![]];return _0x32dfb6[_0xdad06(0x1e6)]=_0x44fa5c['body']['threadId'],_0x32dfb6[_0xdad06(0x187)]=_0x44fa5c[_0xdad06(0x19a)][_0xdad06(0x187)],db[_0xdad06(0x1c8)][_0xdad06(0x138)](_0x32dfb6)['then'](function(_0xe65f2d){return[_0xe65f2d,!![]];});});_0x4eae0f[_0x42f3a9(0x1c3)]=_0x43e645['id'];if(_0x44fa5c['body']['interaction']&&_0x44fa5c[_0x42f3a9(0x19a)][_0x42f3a9(0x1d6)]['id'])return _0x4eae0f['id']=_0x44fa5c[_0x42f3a9(0x19a)][_0x42f3a9(0x1d6)]['id'],db[_0x42f3a9(0x1c8)][_0x42f3a9(0x14e)]({'where':_0x4eae0f})[_0x42f3a9(0x18e)](function(_0x327b04){const _0x32047b=_0x42f3a9;if(_0x327b04)return[_0x327b04,![]];return db[_0x32047b(0x1c8)][_0x32047b(0x138)](_0x32dfb6)[_0x32047b(0x18e)](function(_0x191dc2){return[_0x191dc2,!![]];});});return db[_0x42f3a9(0x1c8)][_0x42f3a9(0x138)](_0x32dfb6)['then'](function(_0x2201ee){return[_0x2201ee,!![]];});}})['then'](function([_0x353525,_0x2a3544]){const _0x5a3fe2=_0x2eb43e;if(_0x353525){_0x4f6c02=_0x2a3544;if(!_0x2a3544){const _0x1bd39a={'from':(_0x113839['contact'][_0x5a3fe2(0x13c)]||'')+'\x20'+(_0x113839['contact'][_0x5a3fe2(0x122)]||'')};return _0x44fa5c['body'][_0x5a3fe2(0x1e6)]&&_0x44fa5c[_0x5a3fe2(0x19a)][_0x5a3fe2(0x19c)]&&_0x44fa5c[_0x5a3fe2(0x19a)][_0x5a3fe2(0x1e6)]!=_0x44fa5c[_0x5a3fe2(0x19a)]['messageId']&&(_0x1bd39a[_0x5a3fe2(0x1e6)]=_0x44fa5c[_0x5a3fe2(0x19a)][_0x5a3fe2(0x19c)]),_0x353525[_0x5a3fe2(0x1bf)](_0x1bd39a);}else return _0x353525;}})['then'](function(_0xd6257e){const _0x1da20d=_0x2eb43e;return _0x113839[_0x1da20d(0x1d6)]=_0xd6257e[_0x1da20d(0x125)]({'plain':!![]}),_0x113839[_0x1da20d(0x1d6)][_0x1da20d(0x160)]=_0x4f6c02,_0x113839[_0x1da20d(0x1d6)][_0x1da20d(0x160)]&&(_0x113839['account'][_0x1da20d(0x1da)]&&_0x113839[_0x1da20d(0x1ef)]['push']({'id':0x0,'priority':_0x113839[_0x1da20d(0x1ef)][_0x1da20d(0x1fa)]+0x1,'app':_0x1da20d(0x1a7),'appdata':_0x1da20d(0x179),'interval':'*,*,*,*'})),db[_0x1da20d(0x14f)][_0x1da20d(0x138)]({'body':_0x44fa5c[_0x1da20d(0x19a)][_0x1da20d(0x19a)],'ChatWebsiteId':_0x44fa5c[_0x1da20d(0x117)]['id'],'ChatInteractionId':_0xd6257e['id'],'direction':'in','ContactId':_0x113839['contact']['id'],'AttachmentId':_0x44fa5c[_0x1da20d(0x19a)][_0x1da20d(0x201)]});})['then'](function(_0xb341d){const _0x38d166=_0x2eb43e;_0x113839[_0x38d166(0x192)]=_0xb341d;if(_0x113839[_0x38d166(0x1d6)][_0x38d166(0x19b)])return db['User'][_0x38d166(0x14e)]({'attributes':['id','name'],'where':{'id':_0x113839[_0x38d166(0x1d6)]['UserId']}})[_0x38d166(0x18e)](function(_0x550dc8){const _0x1a7a70=_0x38d166;return _0x550dc8&&(_0x113839[_0x1a7a70(0x1ef)]['unshift']({'id':0x0,'priority':0x0,'app':_0x1a7a70(0x20c),'appdata':_0x550dc8[_0x1a7a70(0x107)]+','+(_0x113839['account']['waitForTheAssignedAgent']||0xa),'interval':_0x1a7a70(0x199)}),_0x113839[_0x1a7a70(0x186)]=!![]),respondWithRpcPromise(_0x1a7a70(0x1cd),_0x1a7a70(0x143),_0x113839);});return respondWithRpcPromise(_0x38d166(0x1cd),_0x38d166(0x143),_0x113839);})['then'](function(_0x3ab3b4){const _0x5b6081=_0x2eb43e;return respondWithRpcPromise(_0x5b6081(0x1c2),'EventManager',{'event':_0x5b6081(0x10d),'message':_0x3ab3b4},client9002),_0x3ab3b4;})['then'](respondWithResult(_0x17d3a5,null))[_0x2eb43e(0x162)](handleError(_0x17d3a5,null));},exports[a133_0x508876(0x1f7)]=function(_0x1751a6,_0x5b8513){const _0xb55378=a133_0x508876;let _0x153e85,_0x4bbfad,_0x5a785f=[];const _0x4676a5={};return db[_0xb55378(0x1b8)][_0xb55378(0x175)]()[_0xb55378(0x18e)](function(_0x46cc4d){const _0x3cc47d=_0xb55378;if(!_0x46cc4d)throw new ValidationError('no\x20available\x20attributes');_0x5a785f=_['difference'](_[_0x3cc47d(0x198)](_0x46cc4d),[_0x3cc47d(0x13a),_0x3cc47d(0x113),_0x3cc47d(0x1ba),_0x3cc47d(0x181)]);_0x1751a6['body']['id']&&delete _0x1751a6[_0x3cc47d(0x19a)]['id'];if(_[_0x3cc47d(0x146)](_0x1751a6[_0x3cc47d(0x19a)][_0x3cc47d(0x1a5)]))throw _0x5b8513[_0x3cc47d(0x1db)](0x1f4)['send'](new ValidationError('from\x20is\x20mandatory'));if(_[_0x3cc47d(0x146)](_0x1751a6[_0x3cc47d(0x19a)]['body'])||_0x1751a6[_0x3cc47d(0x19a)][_0x3cc47d(0x19a)]==='')throw _0x5b8513[_0x3cc47d(0x1db)](0x1f4)[_0x3cc47d(0x195)](new ValidationError(_0x3cc47d(0x1dd)));if(_['isNil'](_0x1751a6['body']['mapKeyOffline']))throw _0x5b8513[_0x3cc47d(0x1db)](0x1f4)[_0x3cc47d(0x195)](new ValidationError(_0x3cc47d(0x213)+_0x5a785f));if(!_[_0x3cc47d(0x158)](_0x5a785f,_0x1751a6[_0x3cc47d(0x19a)][_0x3cc47d(0x15b)]))throw _0x5b8513[_0x3cc47d(0x1db)](0x1f4)[_0x3cc47d(0x195)](new ValidationError('mapKeyOffline\x20invalid,\x20please\x20use\x20one\x20of\x20these:\x20'+_0x5a785f));_0x4676a5[_0x1751a6['body'][_0x3cc47d(0x15b)]]=_0x1751a6[_0x3cc47d(0x19a)][_0x3cc47d(0x1a5)];})['then'](function(){const _0x479843=_0xb55378;return db['ChatWebsite']['findOne']({'where':{'id':_0x1751a6['params']['id']},'include':[{'model':db[_0x479843(0x119)],'as':_0x479843(0x172)}]});})[_0xb55378(0x18e)](handleEntityNotFound(_0x5b8513,null))['then'](function(_0x14eefa){const _0x10db7c=_0xb55378;if(_0x14eefa&&_0x14eefa[_0x10db7c(0x172)]){_0x4bbfad=_0x14eefa;const _0x4ce81c=_[_0x10db7c(0x202)](_0x1751a6[_0x10db7c(0x19a)],{'firstName':_0x1751a6[_0x10db7c(0x19a)][_0x10db7c(0x1a5)],'phone':_0x1751a6[_0x10db7c(0x19a)][_0x10db7c(0x1a5)],'ListId':_0x14eefa['ListId']});return _0x4ce81c[_0x1751a6[_0x10db7c(0x19a)][_0x10db7c(0x15b)]]=_0x1751a6[_0x10db7c(0x19a)]['from'],db['CmContact'][_0x10db7c(0x1a4)]({'where':_0x4676a5,'defaults':_0x4ce81c});}})[_0xb55378(0x18e)](function([_0x3424f4]){const _0x39ed47=_0xb55378;if(_0x3424f4){const _0xa490a0=fs[_0x39ed47(0x120)](path[_0x39ed47(0x1d2)](config[_0x39ed47(0x1b2)],_0x39ed47(0x185)),_0x39ed47(0x1ea)),_0x306248=ejs[_0x39ed47(0x200)](_0xa490a0,{'body':_[_0x39ed47(0x1d9)](_0x1751a6[_0x39ed47(0x19a)][_0x39ed47(0x19a)]),'bodyTitle':_0x4bbfad[_0x39ed47(0x106)]});return db[_0x39ed47(0x123)][_0x39ed47(0x138)]({'body':_0x306248,'ContactId':_0x3424f4['id'],'ChatWebsiteId':_0x4bbfad['id']});}})[_0xb55378(0x18e)](function(_0x4787d3){const _0x390695=_0xb55378;if(_0x4787d3)return _0x153e85=_0x4787d3,db[_0x390695(0x139)][_0x390695(0x14e)]({'where':{'service':!![]},'include':[{'model':db[_0x390695(0x1e8)],'as':'Smtp','raw':!![]}]});})['then'](function(_0x25fbd5){const _0x4d13d4=_0xb55378;if(_0x25fbd5&&_0x25fbd5[_0x4d13d4(0x15c)]&&_0x4bbfad['forwardOfflineAddress']){const _0x29c513={'tls':{'rejectUnauthorized':![]}};return _0x25fbd5[_0x4d13d4(0x15c)][_0x4d13d4(0x20f)]?_0x29c513[_0x4d13d4(0x20f)]=_0x25fbd5[_0x4d13d4(0x15c)][_0x4d13d4(0x20f)]:(_0x29c513['host']=_0x25fbd5['Smtp'][_0x4d13d4(0x149)],_0x29c513[_0x4d13d4(0x1c6)]=_0x25fbd5[_0x4d13d4(0x15c)][_0x4d13d4(0x1c6)],_0x29c513['secure']=_0x25fbd5[_0x4d13d4(0x15c)][_0x4d13d4(0x1a8)]),_0x25fbd5['Smtp'][_0x4d13d4(0x1ac)]&&(_0x29c513[_0x4d13d4(0x118)]={'user':_0x25fbd5[_0x4d13d4(0x15c)][_0x4d13d4(0x129)],'pass':_0x25fbd5[_0x4d13d4(0x15c)]['pass']}),respondWithRpcPromise(_0x4d13d4(0x1d8),_0x4d13d4(0x159),{'account':_0x29c513,'message':{'from':util[_0x4d13d4(0x207)](_0x4d13d4(0x204),_0x25fbd5[_0x4d13d4(0x107)],_0x25fbd5[_0x4d13d4(0x1c9)]||_0x25fbd5[_0x4d13d4(0x15c)][_0x4d13d4(0x129)]),'to':_0x4bbfad[_0x4d13d4(0x1e4)],'subject':_0x4bbfad[_0x4d13d4(0x21a)],'text':_0x153e85[_0x4d13d4(0x19a)]}},client9003)['then'](function(){return _0x153e85;})[_0x4d13d4(0x162)](function(_0x33f3a3){const _0x1b3050=_0x4d13d4;console[_0x1b3050(0x150)](_0x33f3a3);});}})[_0xb55378(0x18e)](function(){if(_0x153e85)return _0x153e85;})[_0xb55378(0x18e)](respondWithResult(_0x5b8513,null))['catch'](handleError(_0x5b8513,null));},exports[a133_0x508876(0x215)]=function(_0x1616da,_0x62b092){const _0x434e41=a133_0x508876;return db[_0x434e41(0x1c8)][_0x434e41(0x14e)]({'where':{'id':_0x1616da[_0x434e41(0x117)]['id']}})[_0x434e41(0x18e)](function(_0x5f0442){const _0x770b5=_0x434e41;if(_0x5f0442)return _0x5f0442[_0x770b5(0x215)](_0x1616da[_0x770b5(0x19a)][_0x770b5(0x14b)],{'through':_['omit'](_0x1616da[_0x770b5(0x19a)],[_0x770b5(0x14b),'id'])});})[_0x434e41(0x18e)](respondWithResult(_0x62b092,null))[_0x434e41(0x162)](handleError(_0x62b092,null));},exports[a133_0x508876(0x20b)]=function(_0x9b0b8f,_0x3abeb0){const _0x5c5862=a133_0x508876;let _0x380d55={'raw':![],'where':{}};const _0x2715b4={},_0x29fee3={'count':0x0,'rows':[]};return db[_0x5c5862(0x1c1)][_0x5c5862(0x14e)]({'where':{'id':_0x9b0b8f['params']['id']}})[_0x5c5862(0x18e)](handleEntityNotFound(_0x3abeb0,null))[_0x5c5862(0x18e)](function(_0x556d0a){const _0x83decb=_0x5c5862;if(_0x556d0a)return _0x2715b4[_0x83decb(0x11e)]=_[_0x83decb(0x198)](db[_0x83decb(0x1c8)]['rawAttributes']),_0x2715b4[_0x83decb(0x205)]=_['keys'](_0x9b0b8f[_0x83decb(0x205)]),_0x2715b4['filters']=_['intersection'](_0x2715b4['model'],_0x2715b4['query']),_0x380d55[_0x83decb(0x20a)]=_[_0x83decb(0x20e)](_0x2715b4['model'],qs[_0x83decb(0x1e1)](_0x9b0b8f[_0x83decb(0x205)]['fields'])),_0x380d55[_0x83decb(0x20a)]=_0x380d55[_0x83decb(0x20a)]['length']?_0x380d55['attributes']:_0x2715b4['model'],typeof _0x9b0b8f[_0x83decb(0x205)]['nolimit']==='undefined'&&(_0x380d55[_0x83decb(0x191)]=qs[_0x83decb(0x191)](_0x9b0b8f[_0x83decb(0x205)][_0x83decb(0x191)]),_0x380d55[_0x83decb(0x1f5)]=qs['offset'](_0x9b0b8f['query'][_0x83decb(0x1f5)])),_0x380d55[_0x83decb(0x130)]=qs[_0x83decb(0x20d)](_0x9b0b8f[_0x83decb(0x205)][_0x83decb(0x20d)]),_0x380d55['where']=qs[_0x83decb(0x161)](_[_0x83decb(0x16e)](_0x9b0b8f[_0x83decb(0x205)],_0x2715b4[_0x83decb(0x161)])),_0x380d55['where'][_0x83decb(0x1b7)]=_0x556d0a['id'],_0x9b0b8f[_0x83decb(0x205)][_0x83decb(0x145)]&&(_0x380d55[_0x83decb(0x13f)]=_[_0x83decb(0x193)](_0x380d55[_0x83decb(0x13f)],{[Op['or']]:_[_0x83decb(0x1a0)](_0x380d55[_0x83decb(0x20a)],function(_0x11fe95){const _0x15763c={};return _0x15763c[_0x11fe95]={[Op['like']]:'%'+_0x9b0b8f['query']['filter']+'%'},_0x15763c;})})),_0x380d55=_[_0x83decb(0x193)]({},_0x380d55,_0x9b0b8f[_0x83decb(0x17a)]),db[_0x83decb(0x1c8)][_0x83decb(0x144)]({'where':_0x380d55[_0x83decb(0x13f)]})['then'](function(_0x5353fc){const _0x383d11=_0x83decb;return _0x29fee3[_0x383d11(0x144)]=_0x5353fc,_0x9b0b8f[_0x383d11(0x205)][_0x383d11(0x1bd)]&&(_0x380d55[_0x383d11(0x1e2)]=[{'model':db[_0x383d11(0x1b8)],'as':_0x383d11(0x177),'required':![]},{'model':db[_0x383d11(0x169)],'as':_0x383d11(0x164),'attributes':[_0x383d11(0x107),_0x383d11(0x112),'internal'],'required':![]},{'model':db['Tag'],'as':_0x383d11(0x133),'attributes':['id','name','color'],'where':_0x9b0b8f[_0x383d11(0x205)][_0x383d11(0x1af)]?{'id':_0x9b0b8f[_0x383d11(0x205)][_0x383d11(0x1af)]}:undefined,'required':_0x9b0b8f[_0x383d11(0x205)]['tag']?!![]:![]}]),db[_0x383d11(0x1c8)][_0x383d11(0x1d0)](_0x380d55);})['then'](function(_0x596399){const _0x3cff3c=_0x83decb;return _0x29fee3[_0x3cff3c(0x121)]=_0x596399,_0x29fee3;});})[_0x5c5862(0x18e)](respondWithFilteredResult(_0x3abeb0,_0x380d55))[_0x5c5862(0x162)](handleError(_0x3abeb0,null));};function iftimePromise(_0x44b8d5,_0x277d84){const _0x449aa7=a133_0x508876;return respondWithRpcPromise(_0x449aa7(0x1c4),_0x449aa7(0x167),{'command':_0x277d84[_0x449aa7(0x18c)]?util[_0x449aa7(0x207)](_0x449aa7(0x140),_0x44b8d5[_0x449aa7(0x13b)],_0x277d84[_0x449aa7(0x18c)]):util[_0x449aa7(0x207)](_0x449aa7(0x11f),_0x44b8d5['interval'])},client9002)[_0x449aa7(0x18e)](function(_0x105984){const _0x554146=_0x449aa7,_0x472d2e=_0x105984&&_0x105984[_0x554146(0x1cb)](_0x554146(0x17f))>=0x0?!![]:![];return logger[_0x554146(0x18d)](_0x554146(0x12c),_0x277d84['id'],_0x44b8d5['id'],_0x44b8d5[_0x554146(0x13b)],_0x472d2e?_0x554146(0x1d3):_0x554146(0x212),_0x277d84[_0x554146(0x18c)]?_0x277d84[_0x554146(0x18c)]:_0x554146(0x141)),_0x472d2e;})['catch'](function(_0x4b14b5){const _0x5a30b1=_0x449aa7;return logger['error'](_0x5a30b1(0x12c),_0x277d84['id'],_0x44b8d5['id'],_0x44b8d5['interval'],util[_0x5a30b1(0x14a)](_0x4b14b5,{'showHidden':![],'depth':null}),_0x277d84[_0x5a30b1(0x18c)]?_0x277d84[_0x5a30b1(0x18c)]:'No\x20timezone'),![];});}exports['getSnippet']=function(_0x57bc6a,_0x79d725){const _0x12ef1c=a133_0x508876;let _0x2da64f=0x0,_0xa08c6b=0x0,_0x387bfc=![],_0xbbf7e8,_0x51322e;return db[_0x12ef1c(0x1c1)][_0x12ef1c(0x14e)]({'where':{'id':_0x57bc6a[_0x12ef1c(0x117)]['id']},'include':[{'model':db[_0x12ef1c(0x11b)],'as':_0x12ef1c(0x11b),'include':[{'model':db['Interval'],'as':_0x12ef1c(0x16f),'attributes':['id',_0x12ef1c(0x13b)],'raw':!![]}]}]})[_0x12ef1c(0x18e)](handleEntityNotFound(_0x79d725,null))[_0x12ef1c(0x18e)](function(_0x1e18a4){const _0x1a764e=_0x12ef1c;if(_0x1e18a4)return _0xbbf7e8=_0x1e18a4,_0x1e18a4[_0x1a764e(0x19e)]({'raw':!![]});})[_0x12ef1c(0x18e)](function(_0x2c0769){const _0x51f10f=_0x12ef1c;return _0xbbf7e8&&(_0x2c0769&&(_0x51322e=_0x2c0769)),require(_0x51f10f(0x135))[_0x51f10f(0x134)]();})[_0x12ef1c(0x18e)](function(_0x3becc4){const _0x6bec52=_0x12ef1c;_0x3becc4&&(_0xa08c6b=_0x3becc4[_0x6bec52(0x1dc)],_0x387bfc=_0x3becc4[_0x6bec52(0x18a)]);})['then'](function(){const _0x67ca30=_0x12ef1c;return db[_0x67ca30(0x1c8)][_0x67ca30(0x144)]({'where':{'closed':![]}});})[_0x12ef1c(0x18e)](function(_0x11835c){const _0x49c98e=_0x12ef1c;_0x2da64f=_0x11835c;if(_0xa08c6b&&_0x11835c>_0xa08c6b)return db[_0x49c98e(0x206)][_0x49c98e(0x14e)]({'where':{'id':0x1}})[_0x49c98e(0x18e)](function(_0x20d846){const _0x39502d=_0x49c98e;_0x20d846&&_0x20d846[_0x39502d(0x1b4)](_0x39502d(0x14c));});})[_0x12ef1c(0x18e)](function(){const _0x2b9cd6=_0x12ef1c;if(_0xbbf7e8['Interval']&&_0xbbf7e8[_0x2b9cd6(0x11b)][_0x2b9cd6(0x16f)]){const _0x4fbddd=[];for(let _0xadedaa=0x0;_0xadedaa<_0xbbf7e8[_0x2b9cd6(0x11b)][_0x2b9cd6(0x16f)]['length'];_0xadedaa++){const _0x182914=_0xbbf7e8[_0x2b9cd6(0x11b)][_0x2b9cd6(0x16f)][_0xadedaa][_0x2b9cd6(0x125)]({'plain':!![]});_0x4fbddd[_0x2b9cd6(0x1cf)](iftimePromise(_0x182914,_0xbbf7e8));}return Promise[_0x2b9cd6(0x1ff)](_0x4fbddd)[_0x2b9cd6(0x18e)](function(_0x5edfad){return _['some'](_0x5edfad);});}else return!![];})[_0x12ef1c(0x18e)](function(_0xf6aded){const _0x301f61=_0x12ef1c,_0x35860f=_0x57bc6a[_0x301f61(0x16a)][_0x301f61(0x125)]('chatVersion'),_0x9c23ae=fs[_0x301f61(0x120)](path['join'](config[_0x301f61(0x1b2)],'files/chat/iframe.js'),_0x301f61(0x1ea)),_0xdce38e={'chatVersion':_0x35860f,'remote':_0xbbf7e8[_0x301f61(0x109)],'query':querystring[_0x301f61(0x1e7)](_[_0x301f61(0x193)](_0xbbf7e8['get']({'plain':!![]}),{'customerIp':_0x57bc6a[_0x301f61(0x11a)][_0x301f61(0x1d5)]||_0x57bc6a['headers'][_0x301f61(0x1c7)]||_0x57bc6a[_0x301f61(0x166)]['remoteAddress']||_0x57bc6a['ip'],'referer':_0x57bc6a[_0x301f61(0x11a)]['referer'],'openedInteractions':_0x2da64f,'maxInteractions':_0xa08c6b,'virtual':_0x387bfc[_0x301f61(0x1dc)],'online':_0xf6aded,'custom':_0x387bfc}))['replace'](/'/g,'\x5c\x27')};_0x79d725[_0x301f61(0x195)](ejs['render'](Mustache['render'](_0x9c23ae,_0xdce38e),{'proactiveActions':_0x51322e,'alignment':_0xbbf7e8[_0x301f61(0x218)],'verticalAlignment':_0xbbf7e8[_0x301f61(0x1d7)],'div_color':_0xbbf7e8[_0x301f61(0x10c)],'text_color':_0xbbf7e8[_0x301f61(0x211)]}));})[_0x12ef1c(0x162)](handleError(_0x79d725,null));},exports[a133_0x508876(0x1fe)]=function(_0x275f08,_0x26a8ab){const _0x2e7322=a133_0x508876;return db[_0x2e7322(0x1c1)][_0x2e7322(0x14e)]({'where':{'id':_0x275f08[_0x2e7322(0x117)]['id']}})[_0x2e7322(0x18e)](handleEntityNotFound(_0x26a8ab,null))[_0x2e7322(0x18e)](function(_0x12cf32){const _0x3e7dac=_0x2e7322;if(_0x12cf32)return db[_0x3e7dac(0x1b0)][_0x3e7dac(0x1e5)](function(_0x273d4d){const _0x3f8c57=_0x3e7dac;return db[_0x3f8c57(0x136)][_0x3f8c57(0x171)]({'where':{'ChatWebsiteId':_0x275f08[_0x3f8c57(0x117)]['id']},'transaction':_0x273d4d})['then'](function(){const _0x2ba75a=_0x3f8c57,_0x53be95=_[_0x2ba75a(0x1a0)](_0x275f08[_0x2ba75a(0x19a)],function(_0x3df8cd){const _0x26e262=_0x2ba75a;return _0x3df8cd[_0x26e262(0x1b7)]=_0x275f08[_0x26e262(0x117)]['id'],_0x3df8cd;});return db[_0x2ba75a(0x136)][_0x2ba75a(0x174)](_0x53be95,{'transaction':_0x273d4d});});})[_0x3e7dac(0x18e)](function(){const _0x1b51aa=_0x3e7dac;return db['ChatApplication'][_0x1b51aa(0x184)]({'where':{'ChatWebsiteId':_0x275f08[_0x1b51aa(0x117)]['id']},'order':'priority'});});})[_0x2e7322(0x18e)](respondWithResult(_0x26a8ab,null))[_0x2e7322(0x162)](handleError(_0x26a8ab,null));},exports[a133_0x508876(0x131)]=function(_0x5b8bbb,_0x50bd1f){const _0x1122d9=a133_0x508876;let _0x3a02b4={};const _0x52e55d={};let _0x531897,_0x5c43ef;return db[_0x1122d9(0x1c1)][_0x1122d9(0x14e)]({'where':{'id':_0x5b8bbb['params']['id']}})['then'](handleEntityNotFound(_0x50bd1f,null))['then'](function(_0x464c1f){const _0x1ff843=_0x1122d9;if(_0x464c1f)return _0x531897=_0x464c1f,_0x52e55d[_0x1ff843(0x11e)]=_[_0x1ff843(0x198)](db[_0x1ff843(0x136)]['rawAttributes']),_0x52e55d[_0x1ff843(0x205)]=_['keys'](_0x5b8bbb[_0x1ff843(0x205)]),_0x52e55d[_0x1ff843(0x161)]=_[_0x1ff843(0x20e)](_0x52e55d['model'],_0x52e55d[_0x1ff843(0x205)]),_0x3a02b4[_0x1ff843(0x20a)]=_['intersection'](_0x52e55d[_0x1ff843(0x11e)],qs[_0x1ff843(0x1e1)](_0x5b8bbb[_0x1ff843(0x205)]['fields'])),_0x3a02b4[_0x1ff843(0x20a)]=_0x3a02b4['attributes'][_0x1ff843(0x1fa)]?_0x3a02b4[_0x1ff843(0x20a)]:_0x52e55d[_0x1ff843(0x11e)],_0x3a02b4['order']=qs['sort'](_0x5b8bbb[_0x1ff843(0x205)][_0x1ff843(0x20d)]),_0x3a02b4[_0x1ff843(0x13f)]=qs[_0x1ff843(0x161)](_[_0x1ff843(0x16e)](_0x5b8bbb[_0x1ff843(0x205)],_0x52e55d[_0x1ff843(0x161)])),_0x5b8bbb[_0x1ff843(0x205)][_0x1ff843(0x145)]&&(_0x3a02b4[_0x1ff843(0x13f)]=_[_0x1ff843(0x193)](_0x3a02b4[_0x1ff843(0x13f)],{[Op['or']]:_[_0x1ff843(0x1a0)](_0x3a02b4[_0x1ff843(0x20a)],function(_0x23c99e){const _0x4d4933=_0x1ff843,_0x3465e7={};return _0x3465e7[_0x23c99e]={[Op[_0x4d4933(0x10b)]]:'%'+_0x5b8bbb[_0x4d4933(0x205)][_0x4d4933(0x145)]+'%'},_0x3465e7;})})),_0x3a02b4=_[_0x1ff843(0x193)]({},_0x3a02b4,_0x5b8bbb['options']),_0x531897[_0x1ff843(0x131)](_0x3a02b4);})['then'](function(_0x4b7cab){const _0x518a3c=_0x1122d9;if(_0x4b7cab)return _0x5c43ef=_0x4b7cab[_0x518a3c(0x1fa)],typeof _0x5b8bbb[_0x518a3c(0x205)]['nolimit']===_0x518a3c(0x170)&&(_0x3a02b4[_0x518a3c(0x191)]=qs[_0x518a3c(0x191)](_0x5b8bbb[_0x518a3c(0x205)][_0x518a3c(0x191)]),_0x3a02b4[_0x518a3c(0x1f5)]=qs[_0x518a3c(0x1f5)](_0x5b8bbb[_0x518a3c(0x205)][_0x518a3c(0x1f5)])),_0x531897['getApplications'](_0x3a02b4);})['then'](function(_0x357647){if(_0x357647)return _0x357647?{'count':_0x5c43ef,'rows':_0x357647}:null;})[_0x1122d9(0x18e)](respondWithResult(_0x50bd1f,null))[_0x1122d9(0x162)](handleError(_0x50bd1f,null));},exports[a133_0x508876(0x12d)]=function(_0x4dba50,_0x240481){const _0x219c23=a133_0x508876;return db[_0x219c23(0x214)]['findOne']({'where':{'id':_0x4dba50['params']['id']}})[_0x219c23(0x18e)](function(_0x5cda9b){const _0x1639d5=_0x219c23;if(_0x5cda9b)return _0x5cda9b[_0x1639d5(0x12d)](_0x4dba50[_0x1639d5(0x19a)][_0x1639d5(0x14b)],{'through':_['omit'](_0x4dba50[_0x1639d5(0x19a)],[_0x1639d5(0x14b),'id'])});})['then'](respondWithResult(_0x240481,null))[_0x219c23(0x162)](handleError(_0x240481,null));},exports[a133_0x508876(0x19e)]=function(_0x537e7f,_0x2a50fd){const _0x6bba2f=a133_0x508876;let _0x1f0ca3={};const _0x47a2b6={};let _0x5d2a40,_0x428825;return db['ChatWebsite']['findOne']({'where':{'id':_0x537e7f[_0x6bba2f(0x117)]['id']}})[_0x6bba2f(0x18e)](handleEntityNotFound(_0x2a50fd,null))['then'](function(_0x3d51ec){const _0x397681=_0x6bba2f;if(_0x3d51ec)return _0x5d2a40=_0x3d51ec,_0x47a2b6[_0x397681(0x11e)]=_['keys'](db['ChatProactiveAction']['rawAttributes']),_0x47a2b6[_0x397681(0x205)]=_['keys'](_0x537e7f[_0x397681(0x205)]),_0x47a2b6[_0x397681(0x161)]=_[_0x397681(0x20e)](_0x47a2b6[_0x397681(0x11e)],_0x47a2b6['query']),_0x1f0ca3[_0x397681(0x20a)]=_['intersection'](_0x47a2b6['model'],qs[_0x397681(0x1e1)](_0x537e7f[_0x397681(0x205)][_0x397681(0x1e1)])),_0x1f0ca3[_0x397681(0x20a)]=_0x1f0ca3[_0x397681(0x20a)]['length']?_0x1f0ca3[_0x397681(0x20a)]:_0x47a2b6[_0x397681(0x11e)],_0x1f0ca3[_0x397681(0x130)]=qs[_0x397681(0x20d)](_0x537e7f[_0x397681(0x205)][_0x397681(0x20d)]),_0x1f0ca3['where']=qs['filters'](_[_0x397681(0x16e)](_0x537e7f[_0x397681(0x205)],_0x47a2b6[_0x397681(0x161)])),_0x537e7f[_0x397681(0x205)]['filter']&&(_0x1f0ca3[_0x397681(0x13f)]=_['merge'](_0x1f0ca3[_0x397681(0x13f)],{[Op['or']]:_[_0x397681(0x1a0)](_0x1f0ca3[_0x397681(0x20a)],function(_0x2743b1){const _0x3125c7=_0x397681,_0x20a704={};return _0x20a704[_0x2743b1]={[Op[_0x3125c7(0x10b)]]:'%'+_0x537e7f['query'][_0x3125c7(0x145)]+'%'},_0x20a704;})})),_0x1f0ca3=_[_0x397681(0x193)]({},_0x1f0ca3,_0x537e7f[_0x397681(0x17a)]),_0x5d2a40['getProactiveActions'](_0x1f0ca3);})[_0x6bba2f(0x18e)](function(_0x39aa8c){const _0x58814c=_0x6bba2f;if(_0x39aa8c)return _0x428825=_0x39aa8c[_0x58814c(0x1fa)],typeof _0x537e7f[_0x58814c(0x205)]['nolimit']===_0x58814c(0x170)&&(_0x1f0ca3[_0x58814c(0x191)]=qs['limit'](_0x537e7f['query']['limit']),_0x1f0ca3[_0x58814c(0x1f5)]=qs[_0x58814c(0x1f5)](_0x537e7f[_0x58814c(0x205)][_0x58814c(0x1f5)])),_0x5d2a40[_0x58814c(0x19e)](_0x1f0ca3);})[_0x6bba2f(0x18e)](function(_0x4d4151){if(_0x4d4151)return _0x4d4151?{'count':_0x428825,'rows':_0x4d4151}:null;})[_0x6bba2f(0x18e)](respondWithResult(_0x2a50fd,null))['catch'](handleError(_0x2a50fd,null));},exports[a133_0x508876(0x1bb)]=function(_0x298b20,_0x19fea8){const _0x778988=a133_0x508876,_0x378288=_0x298b20[_0x778988(0x205)][_0x778988(0x190)]==='false'?_0x778988(0x1a3):_0x778988(0x15f);return db[_0x778988(0x1c1)][_0x778988(0x14e)]({'attributes':['id',_0x378288],'where':{'id':_0x298b20[_0x778988(0x117)]['id']}})[_0x778988(0x18e)](handleEntityNotFound(_0x19fea8,null))[_0x778988(0x18e)](function(_0x160e61){const _0x229643=_0x778988;if(_0x160e61){const _0x104833=_0x160e61[_0x378288],_0x28d52b=_0x104833&&_0x104833['items']?_0x104833[_0x229643(0x15d)]:[];_0x19fea8[_0x229643(0x195)]({'fromKey':_[_0x229643(0x146)](_0x104833[_0x229643(0x14d)])?undefined:_0x104833['fromKey'],'count':_0x28d52b[_0x229643(0x1fa)],'rows':_0x28d52b});}})[_0x778988(0x162)](handleError(_0x19fea8,null));},exports['getOfflineMessages']=function(_0x285560,_0x1d8549){const _0x3e1abe=a133_0x508876;let _0x4edf6d={'raw':![],'where':{}};const _0x2807cf={},_0x227ade={'count':0x0,'rows':[]};return db[_0x3e1abe(0x1c1)][_0x3e1abe(0x14e)]({'where':{'id':_0x285560['params']['id']}})[_0x3e1abe(0x18e)](handleEntityNotFound(_0x1d8549,null))[_0x3e1abe(0x18e)](function(_0x5d3b04){const _0xbeac31=_0x3e1abe;if(_0x5d3b04)return _0x2807cf[_0xbeac31(0x11e)]=_['keys'](db[_0xbeac31(0x123)]['rawAttributes']),_0x2807cf[_0xbeac31(0x205)]=_[_0xbeac31(0x198)](_0x285560[_0xbeac31(0x205)]),_0x2807cf[_0xbeac31(0x161)]=_[_0xbeac31(0x20e)](_0x2807cf[_0xbeac31(0x11e)],_0x2807cf[_0xbeac31(0x205)]),_0x4edf6d[_0xbeac31(0x20a)]=_[_0xbeac31(0x20e)](_0x2807cf[_0xbeac31(0x11e)],qs[_0xbeac31(0x1e1)](_0x285560[_0xbeac31(0x205)]['fields'])),_0x4edf6d['attributes']=_0x4edf6d['attributes'][_0xbeac31(0x1fa)]?_0x4edf6d['attributes']:_0x2807cf[_0xbeac31(0x11e)],typeof _0x285560[_0xbeac31(0x205)]['nolimit']===_0xbeac31(0x170)&&(_0x4edf6d[_0xbeac31(0x191)]=qs[_0xbeac31(0x191)](_0x285560[_0xbeac31(0x205)][_0xbeac31(0x191)]),_0x4edf6d[_0xbeac31(0x1f5)]=qs[_0xbeac31(0x1f5)](_0x285560[_0xbeac31(0x205)]['offset'])),_0x4edf6d[_0xbeac31(0x130)]=qs[_0xbeac31(0x20d)](_0x285560[_0xbeac31(0x205)][_0xbeac31(0x20d)]),_0x4edf6d['where']=qs['filters'](_[_0xbeac31(0x16e)](_0x285560['query'],_0x2807cf[_0xbeac31(0x161)])),_0x4edf6d['where'][_0xbeac31(0x1b7)]=_0x5d3b04['id'],_0x285560[_0xbeac31(0x205)][_0xbeac31(0x145)]&&(_0x4edf6d[_0xbeac31(0x13f)]=_[_0xbeac31(0x193)](_0x4edf6d[_0xbeac31(0x13f)],{[Op['or']]:_[_0xbeac31(0x1a0)](_0x4edf6d[_0xbeac31(0x20a)],function(_0x2591ff){const _0x1f1d84=_0xbeac31,_0x239d04={};return _0x239d04[_0x2591ff]={[Op[_0x1f1d84(0x10b)]]:'%'+_0x285560[_0x1f1d84(0x205)][_0x1f1d84(0x145)]+'%'},_0x239d04;})})),_0x4edf6d=_[_0xbeac31(0x193)]({},_0x4edf6d,_0x285560['options']),db['ChatOfflineMessage']['count']({'where':_0x4edf6d[_0xbeac31(0x13f)]})[_0xbeac31(0x18e)](function(_0x52e163){const _0x8bac37=_0xbeac31;return _0x227ade[_0x8bac37(0x144)]=_0x52e163,_0x285560[_0x8bac37(0x205)][_0x8bac37(0x1bd)]?_0x4edf6d[_0x8bac37(0x1e2)]=[{'all':!![]}]:_0x4edf6d[_0x8bac37(0x1e2)]=[{'model':db[_0x8bac37(0x1b8)],'as':_0x8bac37(0x177),'required':![]}],db[_0x8bac37(0x123)][_0x8bac37(0x1d0)](_0x4edf6d);})['then'](function(_0x2ee044){const _0xd9fc3d=_0xbeac31;return _0x227ade[_0xd9fc3d(0x121)]=_0x2ee044,_0x227ade;});})[_0x3e1abe(0x18e)](respondWithFilteredResult(_0x1d8549,_0x4edf6d))[_0x3e1abe(0x162)](handleError(_0x1d8549,null));},exports[a133_0x508876(0x1e0)]=function(_0x463912,_0x449654){const _0x5d0564=a133_0x508876;return db[_0x5d0564(0x1c1)][_0x5d0564(0x14e)]({'where':{'id':_0x463912[_0x5d0564(0x117)]['id']}})[_0x5d0564(0x18e)](function(_0x59473b){const _0x555a8c=_0x5d0564;if(_0x59473b)return _0x59473b['addAgents'](_0x463912[_0x555a8c(0x19a)][_0x555a8c(0x14b)],{'through':_[_0x555a8c(0x1ed)](_0x463912[_0x555a8c(0x19a)],[_0x555a8c(0x14b),'id'])})[_0x555a8c(0x18e)](function(_0x1facc7){const _0x358b59=_0x555a8c;for(let _0x1d546e=0x0;_0x1d546e<_0x463912[_0x358b59(0x19a)][_0x358b59(0x14b)][_0x358b59(0x1fa)];_0x1d546e+=0x1){socket[_0x358b59(0x10e)](_0x358b59(0x1de),{'UserId':_0x463912[_0x358b59(0x19a)][_0x358b59(0x14b)][_0x1d546e],'ChatWebsiteId':_0x463912[_0x358b59(0x117)]['id']});}return _0x1facc7;});})['then'](respondWithResult(_0x449654,null))[_0x5d0564(0x162)](handleError(_0x449654,null));},exports[a133_0x508876(0x1b6)]=function(_0x270b5f,_0x175288){const _0x28c35c=a133_0x508876;return db[_0x28c35c(0x1c1)]['findOne']({'where':{'id':_0x270b5f[_0x28c35c(0x117)]['id']}})[_0x28c35c(0x18e)](handleEntityNotFound(_0x175288,null))['then'](function(_0x9bb155){const _0x4296c0=_0x28c35c;if(_0x9bb155)return _0x9bb155[_0x4296c0(0x1b6)](_0x270b5f[_0x4296c0(0x205)][_0x4296c0(0x14b)])[_0x4296c0(0x18e)](function(){const _0x411b9d=_0x4296c0;if(_[_0x411b9d(0x1a6)](_0x270b5f[_0x411b9d(0x205)]['ids']))for(let _0x18ce57=0x0;_0x18ce57<_0x270b5f[_0x411b9d(0x205)][_0x411b9d(0x14b)][_0x411b9d(0x1fa)];_0x18ce57+=0x1){socket[_0x411b9d(0x10e)](_0x411b9d(0x1c0),{'UserId':Number(_0x270b5f[_0x411b9d(0x205)]['ids'][_0x18ce57]),'ChatWebsiteId':Number(_0x270b5f['params']['id'])});}else socket[_0x411b9d(0x10e)]('userChatWebsite:remove',{'UserId':Number(_0x270b5f[_0x411b9d(0x205)][_0x411b9d(0x14b)]),'ChatWebsiteId':Number(_0x270b5f[_0x411b9d(0x117)]['id'])});});})[_0x28c35c(0x18e)](respondWithStatusCode(_0x175288,null))[_0x28c35c(0x162)](handleError(_0x175288,null));},exports[a133_0x508876(0x157)]=function(_0x1ec3a0,_0x23a011){const _0x1a72e8=a133_0x508876;let _0x46df67={};const _0x3c3c8f={};let _0x4b0d61,_0x1f3c7f;return db['ChatWebsite'][_0x1a72e8(0x14e)]({'where':{'id':_0x1ec3a0['params']['id']}})[_0x1a72e8(0x18e)](handleEntityNotFound(_0x23a011,null))[_0x1a72e8(0x18e)](function(_0x344fc4){const _0x45d696=_0x1a72e8;if(_0x344fc4)return _0x4b0d61=_0x344fc4,_0x3c3c8f[_0x45d696(0x11e)]=_[_0x45d696(0x198)](db[_0x45d696(0x169)][_0x45d696(0x1fb)]),_0x3c3c8f[_0x45d696(0x205)]=_[_0x45d696(0x198)](_0x1ec3a0[_0x45d696(0x205)]),_0x3c3c8f[_0x45d696(0x161)]=_[_0x45d696(0x20e)](_0x3c3c8f[_0x45d696(0x11e)],_0x3c3c8f['query']),_0x46df67[_0x45d696(0x20a)]=_[_0x45d696(0x20e)](_0x3c3c8f[_0x45d696(0x11e)],qs[_0x45d696(0x1e1)](_0x1ec3a0['query'][_0x45d696(0x1e1)])),_0x46df67['attributes']=_0x46df67[_0x45d696(0x20a)][_0x45d696(0x1fa)]?_0x46df67[_0x45d696(0x20a)]:_0x3c3c8f['model'],_0x46df67[_0x45d696(0x130)]=qs[_0x45d696(0x20d)](_0x1ec3a0[_0x45d696(0x205)]['sort']),_0x46df67[_0x45d696(0x13f)]=qs[_0x45d696(0x161)](_[_0x45d696(0x16e)](_0x1ec3a0[_0x45d696(0x205)],_0x3c3c8f['filters'])),_0x1ec3a0['query'][_0x45d696(0x145)]&&(_0x46df67['where']=_['merge'](_0x46df67[_0x45d696(0x13f)],{[Op['or']]:_[_0x45d696(0x1a0)](_0x46df67[_0x45d696(0x20a)],function(_0x411f96){const _0x418e70=_0x45d696,_0x3d822e={};return _0x3d822e[_0x411f96]={[Op[_0x418e70(0x10b)]]:'%'+_0x1ec3a0[_0x418e70(0x205)][_0x418e70(0x145)]+'%'},_0x3d822e;})})),_0x46df67=_[_0x45d696(0x193)]({},_0x46df67,_0x1ec3a0[_0x45d696(0x17a)]),_0x4b0d61['getAgents'](_0x46df67);})[_0x1a72e8(0x18e)](function(_0x5d0e5c){const _0x29a211=_0x1a72e8;if(_0x5d0e5c)return _0x1f3c7f=_0x5d0e5c[_0x29a211(0x1fa)],typeof _0x1ec3a0[_0x29a211(0x205)]['nolimit']===_0x29a211(0x170)&&(_0x46df67[_0x29a211(0x191)]=qs['limit'](_0x1ec3a0[_0x29a211(0x205)]['limit']),_0x46df67[_0x29a211(0x1f5)]=qs[_0x29a211(0x1f5)](_0x1ec3a0[_0x29a211(0x205)]['offset'])),_0x4b0d61['getAgents'](_0x46df67);})[_0x1a72e8(0x18e)](function(_0x51a34c){if(_0x51a34c)return _0x51a34c?{'count':_0x1f3c7f,'rows':_0x51a34c}:null;})[_0x1a72e8(0x18e)](respondWithResult(_0x23a011,null))[_0x1a72e8(0x162)](handleError(_0x23a011,null));}; \ No newline at end of file diff --git a/server/api/chatWebsite/chatWebsite.events.js b/server/api/chatWebsite/chatWebsite.events.js index ac0dde9..dc92138 100644 --- a/server/api/chatWebsite/chatWebsite.events.js +++ b/server/api/chatWebsite/chatWebsite.events.js @@ -1 +1 @@ -const a112_0x35dd=['update','emit','ChatWebsite','addHook','setMaxListeners','save'];(function(_0x185fa0,_0x35dd81){const _0x16ded0=function(_0x34ad17){while(--_0x34ad17){_0x185fa0['push'](_0x185fa0['shift']());}};_0x16ded0(++_0x35dd81);}(a112_0x35dd,0xed));const a112_0x16de=function(_0x185fa0,_0x35dd81){_0x185fa0=_0x185fa0-0x0;let _0x16ded0=a112_0x35dd[_0x185fa0];return _0x16ded0;};const _0x367175=a112_0x16de;'use strict';const EventEmitter=require('events'),ChatWebsite=require('../../mysqldb')['db'][_0x367175('0x5')],ChatWebsiteEvents=new EventEmitter();ChatWebsiteEvents[_0x367175('0x1')](0x0);const events={'afterCreate':_0x367175('0x2'),'afterUpdate':_0x367175('0x3'),'afterDestroy':'remove'};function emitEvent(_0x34ad17){return function(_0x34b8c9){const _0x306fba=a112_0x16de;ChatWebsiteEvents[_0x306fba('0x4')](_0x34ad17+':'+_0x34b8c9['id'],_0x34b8c9),ChatWebsiteEvents[_0x306fba('0x4')](_0x34ad17,_0x34b8c9);};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];ChatWebsite[_0x367175('0x0')](e,emitEvent(event));}}module['exports']=ChatWebsiteEvents; \ No newline at end of file +const a134_0x2a5c=['setMaxListeners','update','../../mysqldb','exports','emit','addHook','remove','save'];(function(_0x328c41,_0x22a8cc){const _0x2a5c1e=function(_0x27a824){while(--_0x27a824){_0x328c41['push'](_0x328c41['shift']());}};_0x2a5c1e(++_0x22a8cc);}(a134_0x2a5c,0xb9));const a134_0x27a8=function(_0x328c41,_0x22a8cc){_0x328c41=_0x328c41-0x1b0;let _0x2a5c1e=a134_0x2a5c[_0x328c41];return _0x2a5c1e;};const a134_0xe9962c=a134_0x27a8;'use strict';const EventEmitter=require('events'),ChatWebsite=require(a134_0xe9962c(0x1b1))['db']['ChatWebsite'],ChatWebsiteEvents=new EventEmitter();ChatWebsiteEvents[a134_0xe9962c(0x1b7)](0x0);const events={'afterCreate':a134_0xe9962c(0x1b6),'afterUpdate':a134_0xe9962c(0x1b0),'afterDestroy':a134_0xe9962c(0x1b5)};function emitEvent(_0x58fe45){return function(_0x50dcbf){const _0x2c9deb=a134_0x27a8;ChatWebsiteEvents[_0x2c9deb(0x1b3)](_0x58fe45+':'+_0x50dcbf['id'],_0x50dcbf),ChatWebsiteEvents['emit'](_0x58fe45,_0x50dcbf);};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];ChatWebsite[a134_0xe9962c(0x1b4)](e,emitEvent(event));}}module[a134_0xe9962c(0x1b2)]=ChatWebsiteEvents; \ No newline at end of file diff --git a/server/api/chatWebsite/chatWebsite.model.js b/server/api/chatWebsite/chatWebsite.model.js index 2dde042..d242a8a 100644 --- a/server/api/chatWebsite/chatWebsite.model.js +++ b/server/api/chatWebsite/chatWebsite.model.js @@ -1 +1 @@ -const a113_0x3e1f=['ChatWebsite','./chatWebsite.attributes','define'];(function(_0x240277,_0x3e1fec){const _0x4b2f7f=function(_0x2ba445){while(--_0x2ba445){_0x240277['push'](_0x240277['shift']());}};_0x4b2f7f(++_0x3e1fec);}(a113_0x3e1f,0xb7));const a113_0x4b2f=function(_0x240277,_0x3e1fec){_0x240277=_0x240277-0x0;let _0x4b2f7f=a113_0x3e1f[_0x240277];return _0x4b2f7f;};const _0x234917=a113_0x4b2f;'use strict';const attributes=require(_0x234917('0x1'));module['exports']=function(_0x2ba445){const _0x170954=_0x234917,_0x410ffa=_0x2ba445[_0x170954('0x2')](_0x170954('0x0'),attributes,{'tableName':'chat_websites','paranoid':![],'indexes':[],'timestamps':!![]});return _0x410ffa;}; \ No newline at end of file +const a135_0x2d6a=['sequelize','ChatWebsite','exports','./chatWebsite.attributes','./chatWebsite.options'];(function(_0x440044,_0x1e1f4c){const _0x2d6a7d=function(_0x1d7fcb){while(--_0x1d7fcb){_0x440044['push'](_0x440044['shift']());}};_0x2d6a7d(++_0x1e1f4c);}(a135_0x2d6a,0x1ea));const a135_0x1d7f=function(_0x440044,_0x1e1f4c){_0x440044=_0x440044-0xc5;let _0x2d6a7d=a135_0x2d6a[_0x440044];return _0x2d6a7d;};const a135_0x5f59cd=a135_0x1d7f;'use strict';const {Model}=require(a135_0x5f59cd(0xc5)),{attributes}=require(a135_0x5f59cd(0xc8)),{options}=require(a135_0x5f59cd(0xc9));class ChatWebsite extends Model{}function init(_0x411af3,_0x1c23f2){const _0x5a1868=options(_0x411af3),_0x34a718=typeof _0x1c23f2==='function'?_0x1c23f2(_0x5a1868):_0x5a1868;return ChatWebsite['init'](attributes,_0x34a718),ChatWebsite;}module[a135_0x5f59cd(0xc7)][a135_0x5f59cd(0xc6)]=ChatWebsite,module[a135_0x5f59cd(0xc7)]['init']=init; \ No newline at end of file diff --git a/server/api/chatWebsite/chatWebsite.options.js b/server/api/chatWebsite/chatWebsite.options.js new file mode 100644 index 0000000..e4f6aca --- /dev/null +++ b/server/api/chatWebsite/chatWebsite.options.js @@ -0,0 +1 @@ +var a136_0x17f3=['options','chat_websites','exports'];(function(_0x22d174,_0xc7a57){var _0x17f39e=function(_0xff7298){while(--_0xff7298){_0x22d174['push'](_0x22d174['shift']());}};_0x17f39e(++_0xc7a57);}(a136_0x17f3,0x1e8));var a136_0xff72=function(_0x22d174,_0xc7a57){_0x22d174=_0x22d174-0x1d5;var _0x17f39e=a136_0x17f3[_0x22d174];return _0x17f39e;};var a136_0x236b05=a136_0xff72;function options(_0x2b9e42){var _0x548b64=a136_0xff72;return{'sequelize':_0x2b9e42,'tableName':_0x548b64(0x1d7),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a136_0x236b05(0x1d5)][a136_0x236b05(0x1d6)]=options; \ No newline at end of file diff --git a/server/api/chatWebsite/chatWebsite.rpc.js b/server/api/chatWebsite/chatWebsite.rpc.js index bc0a697..6f45d68 100644 --- a/server/api/chatWebsite/chatWebsite.rpc.js +++ b/server/api/chatWebsite/chatWebsite.rpc.js @@ -1 +1 @@ -const a114_0x5842=['register','./chatWebsite.socket'];(function(_0x253a3d,_0x5842ef){const _0x253979=function(_0x5eb09f){while(--_0x5eb09f){_0x253a3d['push'](_0x253a3d['shift']());}};_0x253979(++_0x5842ef);}(a114_0x5842,0xa4));const a114_0x2539=function(_0x253a3d,_0x5842ef){_0x253a3d=_0x253a3d-0x0;let _0x253979=a114_0x5842[_0x253a3d];return _0x253979;};const _0x52dbf9=a114_0x2539;'use strict';const {getSocket}=require('../../rediscache'),socket=getSocket();require(_0x52dbf9('0x1'))[_0x52dbf9('0x0')](socket); \ No newline at end of file +const a137_0x3dd8=['../../rediscache','./chatWebsite.socket'];(function(_0x2f589a,_0x193fe0){const _0x3dd8ec=function(_0x1afccd){while(--_0x1afccd){_0x2f589a['push'](_0x2f589a['shift']());}};_0x3dd8ec(++_0x193fe0);}(a137_0x3dd8,0x1c1));const a137_0x1afc=function(_0x2f589a,_0x193fe0){_0x2f589a=_0x2f589a-0x1b7;let _0x3dd8ec=a137_0x3dd8[_0x2f589a];return _0x3dd8ec;};const a137_0x2e2af5=a137_0x1afc;'use strict';const {getSocket}=require(a137_0x2e2af5(0x1b8)),socket=getSocket();require(a137_0x2e2af5(0x1b7))['register'](socket); \ No newline at end of file diff --git a/server/api/chatWebsite/chatWebsite.socket.js b/server/api/chatWebsite/chatWebsite.socket.js index 702432a..3290ddd 100644 --- a/server/api/chatWebsite/chatWebsite.socket.js +++ b/server/api/chatWebsite/chatWebsite.socket.js @@ -1 +1 @@ -const a115_0x368b=['update','emit','./chatWebsite.events','chatWebsite:','remove','save'];(function(_0xad1fda,_0x368b38){const _0x98de3=function(_0x10f5e1){while(--_0x10f5e1){_0xad1fda['push'](_0xad1fda['shift']());}};_0x98de3(++_0x368b38);}(a115_0x368b,0x64));const a115_0x98de=function(_0xad1fda,_0x368b38){_0xad1fda=_0xad1fda-0x0;let _0x98de3=a115_0x368b[_0xad1fda];return _0x98de3;};const _0x5015bd=a115_0x98de;'use strict';const ChatWebsiteEvents=require(_0x5015bd('0x4')),events=[_0x5015bd('0x1'),_0x5015bd('0x0'),_0x5015bd('0x2')];function createListener(_0x10f5e1,_0xea5bee){return function(_0x1780c5){const _0x54e765=a115_0x98de;_0xea5bee[_0x54e765('0x3')](_0x10f5e1,_0x1780c5);};}exports['register']=function(_0x12f08e){const _0xeadeec=_0x5015bd;for(let _0x32f4be=0x0,_0x298421=events['length'];_0x32f4be<_0x298421;_0x32f4be++){const _0x1e2ff2=events[_0x32f4be],_0x3b5049=createListener(_0xeadeec('0x5')+_0x1e2ff2,_0x12f08e);ChatWebsiteEvents['on'](_0x1e2ff2,_0x3b5049);}}; \ No newline at end of file +const a138_0x357f=['update','length','chatWebsite:','./chatWebsite.events','register','save'];(function(_0x10761a,_0x497704){const _0x357fde=function(_0xf7e9a1){while(--_0xf7e9a1){_0x10761a['push'](_0x10761a['shift']());}};_0x357fde(++_0x497704);}(a138_0x357f,0x7b));const a138_0xf7e9=function(_0x10761a,_0x497704){_0x10761a=_0x10761a-0x99;let _0x357fde=a138_0x357f[_0x10761a];return _0x357fde;};const a138_0x5610cc=a138_0xf7e9;'use strict';const ChatWebsiteEvents=require(a138_0x5610cc(0x99)),events=[a138_0x5610cc(0x9b),'remove',a138_0x5610cc(0x9c)];function createListener(_0x3afb8b,_0x51f694){return function(_0x2eec8f){_0x51f694['emit'](_0x3afb8b,_0x2eec8f);};}exports[a138_0x5610cc(0x9a)]=function(_0x3c6bc7){const _0x574863=a138_0x5610cc;for(let _0x17d716=0x0,_0x1457a8=events[_0x574863(0x9d)];_0x17d716<_0x1457a8;_0x17d716++){const _0x328ec0=events[_0x17d716],_0x78c0f9=createListener(_0x574863(0x9e)+_0x328ec0,_0x3c6bc7);ChatWebsiteEvents['on'](_0x328ec0,_0x78c0f9);}}; \ No newline at end of file diff --git a/server/api/chatWebsite/index.js b/server/api/chatWebsite/index.js index b82fdcf..f3caa62 100644 --- a/server/api/chatWebsite/index.js +++ b/server/api/chatWebsite/index.js @@ -1 +1 @@ -const a116_0x26ca=['getLogo','/:id/canned_answers','show','/:id/snippet','addAgents','/:id','getAgents','/:id/logo','/:id/avatar','express','addApplications','getOfflineMessages','post','/:id/interactions','avatars','addDisposition','multer','/:id/system_avatar','getSnippet','offline','addSystemAvatar','util','files/images/','addProactiveActions','Router','addInteraction','removeAgents','/:id/users','/:id/offline_messages','getDispositions','getAvatar','logos','getApplications','delete','now','file','/describe','put','/:id/dispositions','../../components/auth/service','notify','./chatWebsite.controller','removeDispositions','destroy','/:id/offline','format','%s-%s','removeAnswers','getCustomerAvatar','join','isAuthenticated','/:id/customer_avatar','get','../../config/environment','/:id/applications','path','/:id/fields','describe','originalname','getAnswers','getSystemAvatar','/:id/proactive_actions','single','exports','addAvatar','addLogo'];(function(_0x45fecd,_0x26ca37){const _0x273d5b=function(_0x12cfe1){while(--_0x12cfe1){_0x45fecd['push'](_0x45fecd['shift']());}};_0x273d5b(++_0x26ca37);}(a116_0x26ca,0x18f));const a116_0x273d=function(_0x45fecd,_0x26ca37){_0x45fecd=_0x45fecd-0x0;let _0x273d5b=a116_0x26ca[_0x45fecd];return _0x273d5b;};const _0xaa14db=a116_0x273d;'use strict';const multer=require(_0xaa14db('0xd')),util=require(_0xaa14db('0x12')),path=require(_0xaa14db('0x34')),express=require(_0xaa14db('0x6')),router=express[_0xaa14db('0x15')](),auth=require(_0xaa14db('0x24')),config=require(_0xaa14db('0x32')),controller=require(_0xaa14db('0x26')),upload=_0x12cfe1=>multer({'storage':multer['diskStorage']({'destination':function(_0x4d8e83,_0x3e72db,_0x33e982){const _0x5f4b13=_0xaa14db;_0x33e982(null,path[_0x5f4b13('0x2e')](config['root'],_0x5f4b13('0x13'),_0x12cfe1));},'filename':function(_0x2ab5b8,_0x20df57,_0x1147a6){const _0x199178=_0xaa14db;_0x1147a6(null,util[_0x199178('0x2a')](_0x199178('0x2b'),Date[_0x199178('0x1f')](),_0x20df57[_0x199178('0x37')]));}})});router[_0xaa14db('0x31')]('/',auth['isAuthenticated'](),controller['index']),router['get'](_0xaa14db('0x21'),auth[_0xaa14db('0x2f')](),controller[_0xaa14db('0x36')]),router[_0xaa14db('0x31')](_0xaa14db('0x2'),auth['isAuthenticated'](),controller[_0xaa14db('0x41')]),router[_0xaa14db('0x31')]('/:id/dispositions',auth['isAuthenticated'](),controller[_0xaa14db('0x1a')]),router[_0xaa14db('0x31')](_0xaa14db('0x40'),auth[_0xaa14db('0x2f')](),controller[_0xaa14db('0x38')]),router['get'](_0xaa14db('0x4'),controller[_0xaa14db('0x3f')]),router[_0xaa14db('0x31')](_0xaa14db('0x5'),controller[_0xaa14db('0x1b')]),router['get'](_0xaa14db('0x30'),controller[_0xaa14db('0x2d')]),router[_0xaa14db('0x31')](_0xaa14db('0xe'),controller[_0xaa14db('0x39')]),router['get']('/:id/interactions',auth[_0xaa14db('0x2f')](),controller['getInteractions']),router[_0xaa14db('0x31')](_0xaa14db('0x0'),controller[_0xaa14db('0xf')]),router[_0xaa14db('0x31')](_0xaa14db('0x33'),auth[_0xaa14db('0x2f')](),controller[_0xaa14db('0x1d')]),router['get'](_0xaa14db('0x3a'),auth[_0xaa14db('0x2f')](),controller['getProactiveActions']),router[_0xaa14db('0x31')](_0xaa14db('0x35'),controller['getFields']),router[_0xaa14db('0x31')](_0xaa14db('0x19'),auth[_0xaa14db('0x2f')](),controller[_0xaa14db('0x8')]),router[_0xaa14db('0x31')](_0xaa14db('0x18'),auth['isAuthenticated'](),controller[_0xaa14db('0x3')]),router[_0xaa14db('0x9')]('/',auth['isAuthenticated'](),controller['create']),router[_0xaa14db('0x9')]('/:id/dispositions',auth[_0xaa14db('0x2f')](),controller[_0xaa14db('0xc')]),router['post'](_0xaa14db('0x40'),auth[_0xaa14db('0x2f')](),controller['addAnswer']),router[_0xaa14db('0x9')](_0xaa14db('0x4'),upload(_0xaa14db('0x1c'))[_0xaa14db('0x3b')](_0xaa14db('0x20')),controller[_0xaa14db('0x3e')]),router[_0xaa14db('0x9')](_0xaa14db('0x5'),upload(_0xaa14db('0xb'))[_0xaa14db('0x3b')](_0xaa14db('0x20')),controller[_0xaa14db('0x3d')]),router[_0xaa14db('0x9')](_0xaa14db('0x30'),upload(_0xaa14db('0xb'))[_0xaa14db('0x3b')]('file'),controller['addCustomerAvatar']),router['post'](_0xaa14db('0xe'),upload(_0xaa14db('0xb'))[_0xaa14db('0x3b')](_0xaa14db('0x20')),controller[_0xaa14db('0x11')]),router['post']('/:id/notify',controller[_0xaa14db('0x25')]),router['post'](_0xaa14db('0x29'),controller[_0xaa14db('0x10')]),router[_0xaa14db('0x9')](_0xaa14db('0xa'),auth[_0xaa14db('0x2f')](),controller[_0xaa14db('0x16')]),router[_0xaa14db('0x9')]('/:id/applications',auth['isAuthenticated'](),controller[_0xaa14db('0x7')]),router['post']('/:id/proactive_actions',auth['isAuthenticated'](),controller[_0xaa14db('0x14')]),router['post'](_0xaa14db('0x18'),auth[_0xaa14db('0x2f')](),controller[_0xaa14db('0x1')]),router[_0xaa14db('0x22')]('/:id',auth[_0xaa14db('0x2f')](),controller['update']),router[_0xaa14db('0x1e')](_0xaa14db('0x2'),auth[_0xaa14db('0x2f')](),controller[_0xaa14db('0x28')]),router[_0xaa14db('0x1e')](_0xaa14db('0x23'),auth[_0xaa14db('0x2f')](),controller[_0xaa14db('0x27')]),router[_0xaa14db('0x1e')](_0xaa14db('0x40'),auth[_0xaa14db('0x2f')](),controller[_0xaa14db('0x2c')]),router['delete'](_0xaa14db('0x18'),auth[_0xaa14db('0x2f')](),controller[_0xaa14db('0x17')]),module[_0xaa14db('0x3c')]=router; \ No newline at end of file +const a139_0x434e=['diskStorage','avatars','addProactiveActions','/:id/interactions','files/images/','getProactiveActions','getAvatar','getFields','/:id/notify','addAgents','removeAnswers','getOfflineMessages','/:id/offline_messages','getAnswers','./chatWebsite.controller','single','/:id/applications','express','format','/:id/avatar','/:id','%s-%s','getDispositions','addDisposition','describe','addSystemAvatar','/:id/snippet','../../config/environment','path','delete','notify','util','file','/:id/proactive_actions','getInteractions','addInteraction','logos','/:id/logo','isAuthenticated','/:id/dispositions','/describe','get','addAnswer','/:id/canned_answers','getAgents','removeAgents','getSystemAvatar','getApplications','now','put','/:id/system_avatar','/:id/offline','create','post','getLogo','/:id/customer_avatar','exports','/:id/users','update','addLogo'];(function(_0x10ef88,_0x59e05a){const _0x434e97=function(_0x43bcc9){while(--_0x43bcc9){_0x10ef88['push'](_0x10ef88['shift']());}};_0x434e97(++_0x59e05a);}(a139_0x434e,0x19a));const a139_0x43bc=function(_0x10ef88,_0x59e05a){_0x10ef88=_0x10ef88-0xcf;let _0x434e97=a139_0x434e[_0x10ef88];return _0x434e97;};const a139_0x2eca89=a139_0x43bc;'use strict';const multer=require('multer'),util=require(a139_0x2eca89(0xf8)),path=require(a139_0x2eca89(0xf5)),express=require(a139_0x2eca89(0xea)),router=express['Router'](),auth=require('../../components/auth/service'),config=require(a139_0x2eca89(0xf4)),controller=require(a139_0x2eca89(0xe7)),upload=_0x3a8d7c=>multer({'storage':multer[a139_0x2eca89(0xd9)]({'destination':function(_0x382199,_0x315b50,_0x301d5e){const _0x2d5325=a139_0x2eca89;_0x301d5e(null,path['join'](config['root'],_0x2d5325(0xdd),_0x3a8d7c));},'filename':function(_0x526fd2,_0x1a1650,_0x2e6232){const _0x24cff3=a139_0x2eca89;_0x2e6232(null,util[_0x24cff3(0xeb)](_0x24cff3(0xee),Date[_0x24cff3(0x109)](),_0x1a1650['originalname']));}})});router['get']('/',auth['isAuthenticated'](),controller['index']),router[a139_0x2eca89(0x102)](a139_0x2eca89(0x101),auth[a139_0x2eca89(0xff)](),controller[a139_0x2eca89(0xf1)]),router[a139_0x2eca89(0x102)](a139_0x2eca89(0xed),auth[a139_0x2eca89(0xff)](),controller['show']),router['get'](a139_0x2eca89(0x100),auth[a139_0x2eca89(0xff)](),controller[a139_0x2eca89(0xef)]),router['get'](a139_0x2eca89(0x104),auth[a139_0x2eca89(0xff)](),controller[a139_0x2eca89(0xe6)]),router['get'](a139_0x2eca89(0xfe),controller[a139_0x2eca89(0xd3)]),router[a139_0x2eca89(0x102)](a139_0x2eca89(0xec),controller[a139_0x2eca89(0xdf)]),router[a139_0x2eca89(0x102)](a139_0x2eca89(0xd4),controller['getCustomerAvatar']),router[a139_0x2eca89(0x102)](a139_0x2eca89(0xcf),controller[a139_0x2eca89(0x107)]),router[a139_0x2eca89(0x102)]('/:id/interactions',auth['isAuthenticated'](),controller[a139_0x2eca89(0xfb)]),router[a139_0x2eca89(0x102)](a139_0x2eca89(0xf3),controller['getSnippet']),router[a139_0x2eca89(0x102)]('/:id/applications',auth['isAuthenticated'](),controller[a139_0x2eca89(0x108)]),router[a139_0x2eca89(0x102)](a139_0x2eca89(0xfa),auth[a139_0x2eca89(0xff)](),controller[a139_0x2eca89(0xde)]),router[a139_0x2eca89(0x102)]('/:id/fields',controller[a139_0x2eca89(0xe0)]),router['get'](a139_0x2eca89(0xe5),auth[a139_0x2eca89(0xff)](),controller[a139_0x2eca89(0xe4)]),router[a139_0x2eca89(0x102)](a139_0x2eca89(0xd6),auth[a139_0x2eca89(0xff)](),controller[a139_0x2eca89(0x105)]),router[a139_0x2eca89(0xd2)]('/',auth[a139_0x2eca89(0xff)](),controller[a139_0x2eca89(0xd1)]),router['post'](a139_0x2eca89(0x100),auth[a139_0x2eca89(0xff)](),controller[a139_0x2eca89(0xf0)]),router[a139_0x2eca89(0xd2)]('/:id/canned_answers',auth[a139_0x2eca89(0xff)](),controller[a139_0x2eca89(0x103)]),router['post']('/:id/logo',upload(a139_0x2eca89(0xfd))[a139_0x2eca89(0xe8)](a139_0x2eca89(0xf9)),controller[a139_0x2eca89(0xd8)]),router[a139_0x2eca89(0xd2)](a139_0x2eca89(0xec),upload(a139_0x2eca89(0xda))[a139_0x2eca89(0xe8)](a139_0x2eca89(0xf9)),controller['addAvatar']),router[a139_0x2eca89(0xd2)](a139_0x2eca89(0xd4),upload(a139_0x2eca89(0xda))['single']('file'),controller['addCustomerAvatar']),router[a139_0x2eca89(0xd2)]('/:id/system_avatar',upload(a139_0x2eca89(0xda))[a139_0x2eca89(0xe8)](a139_0x2eca89(0xf9)),controller[a139_0x2eca89(0xf2)]),router[a139_0x2eca89(0xd2)](a139_0x2eca89(0xe1),controller[a139_0x2eca89(0xf7)]),router[a139_0x2eca89(0xd2)](a139_0x2eca89(0xd0),controller['offline']),router[a139_0x2eca89(0xd2)](a139_0x2eca89(0xdc),auth[a139_0x2eca89(0xff)](),controller[a139_0x2eca89(0xfc)]),router[a139_0x2eca89(0xd2)](a139_0x2eca89(0xe9),auth[a139_0x2eca89(0xff)](),controller['addApplications']),router[a139_0x2eca89(0xd2)](a139_0x2eca89(0xfa),auth[a139_0x2eca89(0xff)](),controller[a139_0x2eca89(0xdb)]),router[a139_0x2eca89(0xd2)](a139_0x2eca89(0xd6),auth[a139_0x2eca89(0xff)](),controller[a139_0x2eca89(0xe2)]),router[a139_0x2eca89(0x10a)](a139_0x2eca89(0xed),auth['isAuthenticated'](),controller[a139_0x2eca89(0xd7)]),router[a139_0x2eca89(0xf6)](a139_0x2eca89(0xed),auth[a139_0x2eca89(0xff)](),controller['destroy']),router['delete']('/:id/dispositions',auth['isAuthenticated'](),controller['removeDispositions']),router[a139_0x2eca89(0xf6)](a139_0x2eca89(0x104),auth[a139_0x2eca89(0xff)](),controller[a139_0x2eca89(0xe3)]),router[a139_0x2eca89(0xf6)](a139_0x2eca89(0xd6),auth[a139_0x2eca89(0xff)](),controller[a139_0x2eca89(0x106)]),module[a139_0x2eca89(0xd5)]=router; \ No newline at end of file diff --git a/server/api/cloudProvider/cloudProvider.attributes.js b/server/api/cloudProvider/cloudProvider.attributes.js index a31f7f6..d9f587f 100644 --- a/server/api/cloudProvider/cloudProvider.attributes.js +++ b/server/api/cloudProvider/cloudProvider.attributes.js @@ -1 +1 @@ -const a117_0x1232=['sequelize','STRING','AmazonAWS','exports','ENUM'];(function(_0x3cdcb0,_0x123255){const _0x47bd87=function(_0x1e232f){while(--_0x1e232f){_0x3cdcb0['push'](_0x3cdcb0['shift']());}};_0x47bd87(++_0x123255);}(a117_0x1232,0x162));const a117_0x47bd=function(_0x3cdcb0,_0x123255){_0x3cdcb0=_0x3cdcb0-0x0;let _0x47bd87=a117_0x1232[_0x3cdcb0];return _0x47bd87;};const _0x4dbe64=a117_0x47bd;'use strict';const Sequelize=require(_0x4dbe64('0x1'));module[_0x4dbe64('0x4')]={'name':{'type':Sequelize[_0x4dbe64('0x2')],'allowNull':![],'validate':{'notEmpty':!![]}},'service':{'type':Sequelize[_0x4dbe64('0x0')](_0x4dbe64('0x3'),'Google'),'allowNull':![],'validate':{'notEmpty':!![]}},'data1':{'type':Sequelize[_0x4dbe64('0x2')]},'data2':{'type':Sequelize['STRING']}}; \ No newline at end of file +const a140_0x34f9=['Google','attributes','STRING','ENUM'];(function(_0xaefe4e,_0x565273){const _0x34f900=function(_0x2c96fc){while(--_0x2c96fc){_0xaefe4e['push'](_0xaefe4e['shift']());}};_0x34f900(++_0x565273);}(a140_0x34f9,0x175));const a140_0x2c96=function(_0xaefe4e,_0x565273){_0xaefe4e=_0xaefe4e-0x106;let _0x34f900=a140_0x34f9[_0xaefe4e];return _0x34f900;};const a140_0x3b59a9=a140_0x2c96;'use strict';const {DataTypes}=require('sequelize'),attributes={'name':{'type':DataTypes[a140_0x3b59a9(0x107)],'allowNull':![],'validate':{'notEmpty':!![]}},'service':{'type':DataTypes[a140_0x3b59a9(0x108)]('AmazonAWS',a140_0x3b59a9(0x109)),'allowNull':![],'validate':{'notEmpty':!![]}},'data1':{'type':DataTypes[a140_0x3b59a9(0x107)]},'data2':{'type':DataTypes[a140_0x3b59a9(0x107)]}};module['exports'][a140_0x3b59a9(0x106)]=attributes; \ No newline at end of file diff --git a/server/api/cloudProvider/cloudProvider.controller.js b/server/api/cloudProvider/cloudProvider.controller.js index 461d5a1..5be3e74 100644 --- a/server/api/cloudProvider/cloudProvider.controller.js +++ b/server/api/cloudProvider/cloudProvider.controller.js @@ -1 +1 @@ -const a118_0x52e3=['fields','show','sort','../../config/logger','merge','filter','undefined','create','intersection','body','keys','send','type','rows','options','model','query','findOne','key','sequelize','nolimit','attributes','then','name','limit','rawAttributes','include','error','includeAll','like','order','../../components/parsers/qs','length','where','fieldName','destroy','lodash','map','params','offset','stack','end','findAll','index','CloudProvider','set','update','../../mysqldb','count','filters','sendStatus','catch','pick','status'];(function(_0xf6cff7,_0x52e34a){const _0x39b28a=function(_0x390307){while(--_0x390307){_0xf6cff7['push'](_0xf6cff7['shift']());}};_0x39b28a(++_0x52e34a);}(a118_0x52e3,0x15f));const a118_0x39b2=function(_0xf6cff7,_0x52e34a){_0xf6cff7=_0xf6cff7-0x0;let _0x39b28a=a118_0x52e3[_0xf6cff7];return _0x39b28a;};const _0x192fd0=a118_0x39b2;'use strict';const _=require(_0x192fd0('0x9')),qs=require(_0x192fd0('0x4')),logger=require(_0x192fd0('0x1e'))('api'),db=require(_0x192fd0('0x14'))['db'],{Op}=require(_0x192fd0('0x2e'));function respondWithResult(_0x390307,_0x2194d9){return _0x2194d9=_0x2194d9||0xc8,function(_0x126350){if(_0x126350)return _0x390307['status'](_0x2194d9)['json'](_0x126350);};}function respondWithFilteredResult(_0x47d4dd,_0x236812){return function(_0x847758){const _0x12f6c3=a118_0x39b2;if(_0x847758){const _0x4a5aaf=_0x847758[_0x12f6c3('0x15')],_0xc648e6=_0x236812['offset'];let _0x125f56=_0x236812[_0x12f6c3('0xc')]+_0x236812[_0x12f6c3('0x33')],_0x35c4f4;return _0x125f56>=_0x4a5aaf?(_0x125f56=_0x4a5aaf,_0x35c4f4=0xc8):_0x35c4f4=0xce,_0x47d4dd[_0x12f6c3('0x1a')](_0x35c4f4),_0x47d4dd[_0x12f6c3('0x12')]('Content-Range',_0xc648e6+'-'+_0x125f56+'/'+_0x4a5aaf)['json'](_0x847758);}return null;};}function saveUpdates(_0x569d5d){return function(_0x397d4c){if(_0x397d4c)return _0x397d4c['update'](_0x569d5d)['then'](function(_0x5e5f25){return _0x5e5f25;});return null;};}function removeEntity(_0xf050c4){return function(_0x318c7c){const _0x5386b9=a118_0x39b2;if(_0x318c7c)return _0x318c7c[_0x5386b9('0x8')]()[_0x5386b9('0x31')](function(){const _0x90609=_0x5386b9;_0xf050c4['status'](0xcc)[_0x90609('0xe')]();});};}function handleEntityNotFound(_0x1c130b){return function(_0x1550e6){const _0x168668=a118_0x39b2;return!_0x1550e6&&_0x1c130b[_0x168668('0x17')](0x194),_0x1550e6;};}function handleError(_0x4b16e7,_0x1e2c1c){return _0x1e2c1c=_0x1e2c1c||0x1f4,function(_0x3652c9){const _0x1542f4=a118_0x39b2;logger[_0x1542f4('0x0')](_0x3652c9[_0x1542f4('0xd')]),_0x3652c9[_0x1542f4('0x32')]&&delete _0x3652c9[_0x1542f4('0x32')],_0x4b16e7[_0x1542f4('0x1a')](_0x1e2c1c)[_0x1542f4('0x26')](_0x3652c9);};}exports[_0x192fd0('0x10')]=function(_0x2c5e28,_0x4974c5){const _0x3e878c=_0x192fd0;let _0x56bb22={};const _0x58ba49={},_0x5bfec0={'count':0x0,'rows':[]},_0x107e51=_[_0x3e878c('0xa')](db[_0x3e878c('0x11')][_0x3e878c('0x34')],function(_0x200ff0){const _0x54e83d=_0x3e878c;return{'name':_0x200ff0[_0x54e83d('0x7')],'type':_0x200ff0[_0x54e83d('0x27')][_0x54e83d('0x2d')]};});_0x58ba49['model']=_[_0x3e878c('0xa')](_0x107e51,'name'),_0x58ba49[_0x3e878c('0x2b')]=_[_0x3e878c('0x25')](_0x2c5e28['query']),_0x58ba49['filters']=_['intersection'](_0x58ba49[_0x3e878c('0x2a')],_0x58ba49[_0x3e878c('0x2b')]),_0x56bb22['attributes']=_[_0x3e878c('0x23')](_0x58ba49[_0x3e878c('0x2a')],qs[_0x3e878c('0x1b')](_0x2c5e28['query'][_0x3e878c('0x1b')])),_0x56bb22['attributes']=_0x56bb22[_0x3e878c('0x30')][_0x3e878c('0x5')]?_0x56bb22[_0x3e878c('0x30')]:_0x58ba49[_0x3e878c('0x2a')];typeof _0x2c5e28[_0x3e878c('0x2b')][_0x3e878c('0x2f')]===_0x3e878c('0x21')&&(_0x56bb22[_0x3e878c('0x33')]=qs[_0x3e878c('0x33')](_0x2c5e28[_0x3e878c('0x2b')]['limit']),_0x56bb22[_0x3e878c('0xc')]=qs[_0x3e878c('0xc')](_0x2c5e28[_0x3e878c('0x2b')][_0x3e878c('0xc')]));_0x56bb22[_0x3e878c('0x3')]=qs['sort'](_0x2c5e28[_0x3e878c('0x2b')][_0x3e878c('0x1d')]),_0x56bb22[_0x3e878c('0x6')]=qs[_0x3e878c('0x16')](_[_0x3e878c('0x19')](_0x2c5e28[_0x3e878c('0x2b')],_0x58ba49[_0x3e878c('0x16')]),_0x107e51);_0x2c5e28[_0x3e878c('0x2b')][_0x3e878c('0x20')]&&(_0x56bb22['where']=_[_0x3e878c('0x1f')](_0x56bb22[_0x3e878c('0x6')],{[Op['or']]:_[_0x3e878c('0xa')](_0x107e51,function(_0x5152f6){const _0x453b79=_0x3e878c;if(_0x5152f6[_0x453b79('0x27')]!=='VIRTUAL'){const _0x12a45e={};return _0x12a45e[_0x5152f6[_0x453b79('0x32')]]={[Op[_0x453b79('0x2')]]:'%'+_0x2c5e28[_0x453b79('0x2b')][_0x453b79('0x20')]+'%'},_0x12a45e;}})}));_0x56bb22=_[_0x3e878c('0x1f')]({},_0x56bb22,_0x2c5e28[_0x3e878c('0x29')]);const _0x3db6b8={'where':_0x56bb22['where']};return db[_0x3e878c('0x11')][_0x3e878c('0x15')](_0x3db6b8)[_0x3e878c('0x31')](function(_0x3a0aa7){const _0x2d9721=_0x3e878c;return _0x5bfec0[_0x2d9721('0x15')]=_0x3a0aa7,_0x2c5e28[_0x2d9721('0x2b')][_0x2d9721('0x1')]&&(_0x56bb22[_0x2d9721('0x35')]=[{'all':!![]}]),db[_0x2d9721('0x11')][_0x2d9721('0xf')](_0x56bb22);})['then'](function(_0x3ecc9f){const _0x366e8e=_0x3e878c;return _0x5bfec0[_0x366e8e('0x28')]=_0x3ecc9f,_0x5bfec0;})['then'](respondWithFilteredResult(_0x4974c5,_0x56bb22))['catch'](handleError(_0x4974c5,null));},exports[_0x192fd0('0x1c')]=function(_0x2bb312,_0x5d4458){const _0x470254=_0x192fd0;let _0x5c98d0={'raw':!![],'where':{'id':_0x2bb312[_0x470254('0xb')]['id']}};const _0x3c75a5={};return _0x3c75a5[_0x470254('0x2a')]=_[_0x470254('0x25')](db[_0x470254('0x11')]['rawAttributes']),_0x3c75a5['query']=_[_0x470254('0x25')](_0x2bb312[_0x470254('0x2b')]),_0x3c75a5['filters']=_['intersection'](_0x3c75a5[_0x470254('0x2a')],_0x3c75a5[_0x470254('0x2b')]),_0x5c98d0[_0x470254('0x30')]=_[_0x470254('0x23')](_0x3c75a5[_0x470254('0x2a')],qs[_0x470254('0x1b')](_0x2bb312[_0x470254('0x2b')][_0x470254('0x1b')])),_0x5c98d0['attributes']=_0x5c98d0[_0x470254('0x30')][_0x470254('0x5')]?_0x5c98d0[_0x470254('0x30')]:_0x3c75a5[_0x470254('0x2a')],_0x2bb312[_0x470254('0x2b')][_0x470254('0x1')]&&(_0x5c98d0[_0x470254('0x35')]=[{'all':!![]}]),_0x5c98d0=_['merge']({},_0x5c98d0,_0x2bb312[_0x470254('0x29')]),db[_0x470254('0x11')][_0x470254('0x2c')](_0x5c98d0)['then'](handleEntityNotFound(_0x5d4458,null))[_0x470254('0x31')](respondWithResult(_0x5d4458,null))[_0x470254('0x18')](handleError(_0x5d4458,null));},exports[_0x192fd0('0x22')]=function(_0x54da87,_0x152d2){const _0x392890=_0x192fd0;return db[_0x392890('0x11')][_0x392890('0x22')](_0x54da87[_0x392890('0x24')],{})[_0x392890('0x31')](respondWithResult(_0x152d2,0xc9))[_0x392890('0x18')](handleError(_0x152d2,null));},exports[_0x192fd0('0x13')]=function(_0x305dff,_0x2ed939){const _0x2b79aa=_0x192fd0;return _0x305dff[_0x2b79aa('0x24')]['id']&&delete _0x305dff[_0x2b79aa('0x24')]['id'],db[_0x2b79aa('0x11')][_0x2b79aa('0x2c')]({'where':{'id':_0x305dff[_0x2b79aa('0xb')]['id']}})[_0x2b79aa('0x31')](handleEntityNotFound(_0x2ed939,null))[_0x2b79aa('0x31')](saveUpdates(_0x305dff['body'],null))[_0x2b79aa('0x31')](respondWithResult(_0x2ed939,null))['catch'](handleError(_0x2ed939,null));},exports[_0x192fd0('0x8')]=function(_0x321133,_0x2b3bf9){const _0x33c304=_0x192fd0;return db[_0x33c304('0x11')][_0x33c304('0x2c')]({'where':{'id':_0x321133[_0x33c304('0xb')]['id']}})[_0x33c304('0x31')](handleEntityNotFound(_0x2b3bf9,null))[_0x33c304('0x31')](removeEntity(_0x2b3bf9,null))[_0x33c304('0x18')](handleError(_0x2b3bf9,null));}; \ No newline at end of file +const a141_0xe7b6=['query','../../config/logger','rows','nolimit','where','../../components/parsers/qs','set','create','update','status','keys','VIRTUAL','sort','stack','like','model','error','catch','name','destroy','type','length','offset','findOne','then','sequelize','end','includeAll','index','fieldName','json','api','filter','undefined','CloudProvider','intersection','params','rawAttributes','send','lodash','fields','merge','attributes','pick','count','filters','limit','body','map','show'];(function(_0x1e0500,_0x31b775){const _0xe7b669=function(_0x18732c){while(--_0x18732c){_0x1e0500['push'](_0x1e0500['shift']());}};_0xe7b669(++_0x31b775);}(a141_0xe7b6,0x1a2));const a141_0x1873=function(_0x1e0500,_0x31b775){_0x1e0500=_0x1e0500-0x1bb;let _0xe7b669=a141_0xe7b6[_0x1e0500];return _0xe7b669;};const a141_0x4da240=a141_0x1873;'use strict';const _=require(a141_0x4da240(0x1d0)),qs=require(a141_0x4da240(0x1e0)),logger=require(a141_0x4da240(0x1dc))(a141_0x4da240(0x1c8)),{db}=require('../../mysqldb'),{Op}=require(a141_0x4da240(0x1c2));function respondWithResult(_0x14d9e8,_0x350ea0){return _0x350ea0=_0x350ea0||0xc8,function(_0x2547ee){const _0x4c10f9=a141_0x1873;if(_0x2547ee)return _0x14d9e8[_0x4c10f9(0x1e4)](_0x350ea0)[_0x4c10f9(0x1c7)](_0x2547ee);};}function respondWithFilteredResult(_0x17adc2,_0x177b4d){return function(_0x3462b6){const _0x4b701c=a141_0x1873;if(_0x3462b6){const _0x1b3a2b=_0x3462b6[_0x4b701c(0x1d5)],_0x8d228d=_0x177b4d[_0x4b701c(0x1bf)];let _0x4b7a8a=_0x177b4d['offset']+_0x177b4d[_0x4b701c(0x1d7)],_0x35472a;return _0x4b7a8a>=_0x1b3a2b?(_0x4b7a8a=_0x1b3a2b,_0x35472a=0xc8):_0x35472a=0xce,_0x17adc2[_0x4b701c(0x1e4)](_0x35472a),_0x17adc2[_0x4b701c(0x1e1)]('Content-Range',_0x8d228d+'-'+_0x4b7a8a+'/'+_0x1b3a2b)[_0x4b701c(0x1c7)](_0x3462b6);}return null;};}function saveUpdates(_0x13ac1d){return function(_0xff5fdb){const _0x2f4e77=a141_0x1873;if(_0xff5fdb)return _0xff5fdb[_0x2f4e77(0x1e3)](_0x13ac1d)['then'](function(_0x3c80cd){return _0x3c80cd;});return null;};}function removeEntity(_0xc527eb){return function(_0x1a65c9){const _0x5cc339=a141_0x1873;if(_0x1a65c9)return _0x1a65c9[_0x5cc339(0x1bc)]()[_0x5cc339(0x1c1)](function(){const _0x8f771=_0x5cc339;_0xc527eb['status'](0xcc)[_0x8f771(0x1c3)]();});};}function handleEntityNotFound(_0x14d125){return function(_0xfa9112){return!_0xfa9112&&_0x14d125['sendStatus'](0x194),_0xfa9112;};}function handleError(_0x9e1dd3,_0x56e045){return _0x56e045=_0x56e045||0x1f4,function(_0xdc2e73){const _0x520b85=a141_0x1873;logger[_0x520b85(0x1eb)](_0xdc2e73[_0x520b85(0x1e8)]),_0xdc2e73[_0x520b85(0x1bb)]&&delete _0xdc2e73['name'],_0x9e1dd3[_0x520b85(0x1e4)](_0x56e045)[_0x520b85(0x1cf)](_0xdc2e73);};}exports[a141_0x4da240(0x1c5)]=function(_0xc04d0d,_0x46aad1){const _0x15cb9c=a141_0x4da240;let _0x478e40={};const _0x5b7ded={},_0x42b4e2={'count':0x0,'rows':[]},_0x456500=_[_0x15cb9c(0x1d9)](db[_0x15cb9c(0x1cb)]['rawAttributes'],function(_0x24b87c){const _0x5b9230=_0x15cb9c;return{'name':_0x24b87c[_0x5b9230(0x1c6)],'type':_0x24b87c[_0x5b9230(0x1bd)]['key']};});_0x5b7ded[_0x15cb9c(0x1ea)]=_[_0x15cb9c(0x1d9)](_0x456500,_0x15cb9c(0x1bb)),_0x5b7ded[_0x15cb9c(0x1db)]=_[_0x15cb9c(0x1e5)](_0xc04d0d[_0x15cb9c(0x1db)]),_0x5b7ded['filters']=_['intersection'](_0x5b7ded['model'],_0x5b7ded[_0x15cb9c(0x1db)]),_0x478e40[_0x15cb9c(0x1d3)]=_[_0x15cb9c(0x1cc)](_0x5b7ded[_0x15cb9c(0x1ea)],qs['fields'](_0xc04d0d[_0x15cb9c(0x1db)]['fields'])),_0x478e40[_0x15cb9c(0x1d3)]=_0x478e40['attributes'][_0x15cb9c(0x1be)]?_0x478e40[_0x15cb9c(0x1d3)]:_0x5b7ded[_0x15cb9c(0x1ea)];typeof _0xc04d0d[_0x15cb9c(0x1db)][_0x15cb9c(0x1de)]===_0x15cb9c(0x1ca)&&(_0x478e40['limit']=qs['limit'](_0xc04d0d['query'][_0x15cb9c(0x1d7)]),_0x478e40[_0x15cb9c(0x1bf)]=qs[_0x15cb9c(0x1bf)](_0xc04d0d[_0x15cb9c(0x1db)][_0x15cb9c(0x1bf)]));_0x478e40['order']=qs[_0x15cb9c(0x1e7)](_0xc04d0d[_0x15cb9c(0x1db)][_0x15cb9c(0x1e7)]),_0x478e40[_0x15cb9c(0x1df)]=qs[_0x15cb9c(0x1d6)](_[_0x15cb9c(0x1d4)](_0xc04d0d['query'],_0x5b7ded[_0x15cb9c(0x1d6)]),_0x456500);_0xc04d0d[_0x15cb9c(0x1db)][_0x15cb9c(0x1c9)]&&(_0x478e40[_0x15cb9c(0x1df)]=_['merge'](_0x478e40[_0x15cb9c(0x1df)],{[Op['or']]:_[_0x15cb9c(0x1d9)](_0x456500,function(_0x3b13b8){const _0x2c1c54=_0x15cb9c;if(_0x3b13b8['type']!==_0x2c1c54(0x1e6)){const _0x2c76e4={};return _0x2c76e4[_0x3b13b8[_0x2c1c54(0x1bb)]]={[Op[_0x2c1c54(0x1e9)]]:'%'+_0xc04d0d[_0x2c1c54(0x1db)][_0x2c1c54(0x1c9)]+'%'},_0x2c76e4;}})}));_0x478e40=_[_0x15cb9c(0x1d2)]({},_0x478e40,_0xc04d0d['options']);const _0x447b47={'where':_0x478e40[_0x15cb9c(0x1df)]};return db[_0x15cb9c(0x1cb)][_0x15cb9c(0x1d5)](_0x447b47)[_0x15cb9c(0x1c1)](function(_0x3f80df){const _0x1d615e=_0x15cb9c;return _0x42b4e2[_0x1d615e(0x1d5)]=_0x3f80df,_0xc04d0d[_0x1d615e(0x1db)]['includeAll']&&(_0x478e40['include']=[{'all':!![]}]),db[_0x1d615e(0x1cb)]['findAll'](_0x478e40);})[_0x15cb9c(0x1c1)](function(_0x57f3dd){const _0x1c18e3=_0x15cb9c;return _0x42b4e2[_0x1c18e3(0x1dd)]=_0x57f3dd,_0x42b4e2;})[_0x15cb9c(0x1c1)](respondWithFilteredResult(_0x46aad1,_0x478e40))[_0x15cb9c(0x1ec)](handleError(_0x46aad1,null));},exports[a141_0x4da240(0x1da)]=function(_0x25402c,_0x10255d){const _0x420f3d=a141_0x4da240;let _0x50ab1b={'raw':!![],'where':{'id':_0x25402c[_0x420f3d(0x1cd)]['id']}};const _0x145308={};return _0x145308[_0x420f3d(0x1ea)]=_[_0x420f3d(0x1e5)](db[_0x420f3d(0x1cb)][_0x420f3d(0x1ce)]),_0x145308['query']=_[_0x420f3d(0x1e5)](_0x25402c[_0x420f3d(0x1db)]),_0x145308['filters']=_[_0x420f3d(0x1cc)](_0x145308[_0x420f3d(0x1ea)],_0x145308[_0x420f3d(0x1db)]),_0x50ab1b['attributes']=_[_0x420f3d(0x1cc)](_0x145308[_0x420f3d(0x1ea)],qs[_0x420f3d(0x1d1)](_0x25402c['query'][_0x420f3d(0x1d1)])),_0x50ab1b[_0x420f3d(0x1d3)]=_0x50ab1b[_0x420f3d(0x1d3)][_0x420f3d(0x1be)]?_0x50ab1b['attributes']:_0x145308[_0x420f3d(0x1ea)],_0x25402c[_0x420f3d(0x1db)][_0x420f3d(0x1c4)]&&(_0x50ab1b['include']=[{'all':!![]}]),_0x50ab1b=_[_0x420f3d(0x1d2)]({},_0x50ab1b,_0x25402c['options']),db[_0x420f3d(0x1cb)][_0x420f3d(0x1c0)](_0x50ab1b)[_0x420f3d(0x1c1)](handleEntityNotFound(_0x10255d,null))[_0x420f3d(0x1c1)](respondWithResult(_0x10255d,null))[_0x420f3d(0x1ec)](handleError(_0x10255d,null));},exports[a141_0x4da240(0x1e2)]=function(_0x4bbb92,_0x56b305){const _0x4627c9=a141_0x4da240;return db[_0x4627c9(0x1cb)]['create'](_0x4bbb92[_0x4627c9(0x1d8)],{})[_0x4627c9(0x1c1)](respondWithResult(_0x56b305,0xc9))[_0x4627c9(0x1ec)](handleError(_0x56b305,null));},exports[a141_0x4da240(0x1e3)]=function(_0x27dbd0,_0xd3db4c){const _0x20f9b3=a141_0x4da240;return _0x27dbd0[_0x20f9b3(0x1d8)]['id']&&delete _0x27dbd0['body']['id'],db[_0x20f9b3(0x1cb)]['findOne']({'where':{'id':_0x27dbd0[_0x20f9b3(0x1cd)]['id']}})[_0x20f9b3(0x1c1)](handleEntityNotFound(_0xd3db4c,null))[_0x20f9b3(0x1c1)](saveUpdates(_0x27dbd0[_0x20f9b3(0x1d8)],null))['then'](respondWithResult(_0xd3db4c,null))['catch'](handleError(_0xd3db4c,null));},exports[a141_0x4da240(0x1bc)]=function(_0x1414e5,_0x517c5c){const _0x40146a=a141_0x4da240;return db['CloudProvider'][_0x40146a(0x1c0)]({'where':{'id':_0x1414e5[_0x40146a(0x1cd)]['id']}})[_0x40146a(0x1c1)](handleEntityNotFound(_0x517c5c,null))[_0x40146a(0x1c1)](removeEntity(_0x517c5c,null))[_0x40146a(0x1ec)](handleError(_0x517c5c,null));}; \ No newline at end of file diff --git a/server/api/cloudProvider/cloudProvider.model.js b/server/api/cloudProvider/cloudProvider.model.js index 8332a70..d87b23e 100644 --- a/server/api/cloudProvider/cloudProvider.model.js +++ b/server/api/cloudProvider/cloudProvider.model.js @@ -1 +1 @@ -const a119_0x1bf6=['./cloudProvider.attributes','exports','cloud_providers','CloudProvider'];(function(_0x39cc04,_0x1bf684){const _0x5b10e9=function(_0x6c63a7){while(--_0x6c63a7){_0x39cc04['push'](_0x39cc04['shift']());}};_0x5b10e9(++_0x1bf684);}(a119_0x1bf6,0xcf));const a119_0x5b10=function(_0x39cc04,_0x1bf684){_0x39cc04=_0x39cc04-0x0;let _0x5b10e9=a119_0x1bf6[_0x39cc04];return _0x5b10e9;};const _0x50726b=a119_0x5b10;'use strict';const attributes=require(_0x50726b('0x1'));module[_0x50726b('0x2')]=function(_0x6c63a7){const _0x95f070=_0x50726b,_0xda6b4=_0x6c63a7['define'](_0x95f070('0x0'),attributes,{'tableName':_0x95f070('0x3'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0xda6b4;}; \ No newline at end of file +const a142_0x4b1c=['sequelize','exports','function','init','./cloudProvider.attributes','CloudProvider'];(function(_0xa0d5ff,_0x4ee6ce){const _0x4b1c9d=function(_0x18b241){while(--_0x18b241){_0xa0d5ff['push'](_0xa0d5ff['shift']());}};_0x4b1c9d(++_0x4ee6ce);}(a142_0x4b1c,0x1ce));const a142_0x18b2=function(_0xa0d5ff,_0x4ee6ce){_0xa0d5ff=_0xa0d5ff-0x10b;let _0x4b1c9d=a142_0x4b1c[_0xa0d5ff];return _0x4b1c9d;};const a142_0x5df449=a142_0x18b2;'use strict';const {Model}=require(a142_0x5df449(0x10b)),{attributes}=require(a142_0x5df449(0x10f)),{options}=require('./cloudProvider.options');class CloudProvider extends Model{}function init(_0x60dce3,_0x583bc2){const _0x1d04b3=a142_0x5df449,_0x536dba=options(_0x60dce3),_0x3631f2=typeof _0x583bc2===_0x1d04b3(0x10d)?_0x583bc2(_0x536dba):_0x536dba;return CloudProvider[_0x1d04b3(0x10e)](attributes,_0x3631f2),CloudProvider;}module[a142_0x5df449(0x10c)][a142_0x5df449(0x110)]=CloudProvider,module[a142_0x5df449(0x10c)]['init']=init; \ No newline at end of file diff --git a/server/api/cloudProvider/cloudProvider.options.js b/server/api/cloudProvider/cloudProvider.options.js new file mode 100644 index 0000000..eadbf06 --- /dev/null +++ b/server/api/cloudProvider/cloudProvider.options.js @@ -0,0 +1 @@ +var a143_0x3fe3=['cloud_providers','options'];(function(_0x308bf6,_0x279308){var _0x3fe363=function(_0x502adc){while(--_0x502adc){_0x308bf6['push'](_0x308bf6['shift']());}};_0x3fe363(++_0x279308);}(a143_0x3fe3,0xed));var a143_0x502a=function(_0x308bf6,_0x279308){_0x308bf6=_0x308bf6-0x76;var _0x3fe363=a143_0x3fe3[_0x308bf6];return _0x3fe363;};var a143_0x373896=a143_0x502a;function options(_0x3c8fbb){var _0x1d56a6=a143_0x502a;return{'sequelize':_0x3c8fbb,'tableName':_0x1d56a6(0x77),'paranoid':![],'indexes':[],'timestamps':!![]};}module['exports'][a143_0x373896(0x76)]=options; \ No newline at end of file diff --git a/server/api/cloudProvider/index.js b/server/api/cloudProvider/index.js index 4056565..3be36da 100644 --- a/server/api/cloudProvider/index.js +++ b/server/api/cloudProvider/index.js @@ -1 +1 @@ -const a120_0x45be=['show','delete','get','isAuthenticated','./cloudProvider.controller','update','Router','put','destroy','/:id','post','create','index','exports'];(function(_0x3d0e54,_0x45beb9){const _0x475945=function(_0x5a8733){while(--_0x5a8733){_0x3d0e54['push'](_0x3d0e54['shift']());}};_0x475945(++_0x45beb9);}(a120_0x45be,0xec));const a120_0x4759=function(_0x3d0e54,_0x45beb9){_0x3d0e54=_0x3d0e54-0x0;let _0x475945=a120_0x45be[_0x3d0e54];return _0x475945;};const _0x4532bd=a120_0x4759;'use strict';const express=require('express'),router=express[_0x4532bd('0x8')](),auth=require('../../components/auth/service'),controller=require(_0x4532bd('0x6'));router[_0x4532bd('0x4')]('/',auth[_0x4532bd('0x5')](),controller[_0x4532bd('0x0')]),router[_0x4532bd('0x4')](_0x4532bd('0xb'),auth[_0x4532bd('0x5')](),controller[_0x4532bd('0x2')]),router[_0x4532bd('0xc')]('/',auth[_0x4532bd('0x5')](),controller[_0x4532bd('0xd')]),router[_0x4532bd('0x9')](_0x4532bd('0xb'),auth[_0x4532bd('0x5')](),controller[_0x4532bd('0x7')]),router[_0x4532bd('0x3')](_0x4532bd('0xb'),auth[_0x4532bd('0x5')](),controller[_0x4532bd('0xa')]),module[_0x4532bd('0x1')]=router; \ No newline at end of file +const a144_0x20f8=['get','update','Router','delete','exports','destroy','create','../../components/auth/service','express','isAuthenticated','./cloudProvider.controller','/:id','index'];(function(_0x3053a8,_0x484abf){const _0x20f8b2=function(_0x46f11a){while(--_0x46f11a){_0x3053a8['push'](_0x3053a8['shift']());}};_0x20f8b2(++_0x484abf);}(a144_0x20f8,0x190));const a144_0x46f1=function(_0x3053a8,_0x484abf){_0x3053a8=_0x3053a8-0x15f;let _0x20f8b2=a144_0x20f8[_0x3053a8];return _0x20f8b2;};const a144_0x1477cf=a144_0x46f1;'use strict';const express=require(a144_0x1477cf(0x16a)),router=express[a144_0x1477cf(0x164)](),auth=require(a144_0x1477cf(0x169)),controller=require(a144_0x1477cf(0x15f));router[a144_0x1477cf(0x162)]('/',auth[a144_0x1477cf(0x16b)](),controller[a144_0x1477cf(0x161)]),router[a144_0x1477cf(0x162)](a144_0x1477cf(0x160),auth[a144_0x1477cf(0x16b)](),controller['show']),router['post']('/',auth[a144_0x1477cf(0x16b)](),controller[a144_0x1477cf(0x168)]),router['put'](a144_0x1477cf(0x160),auth[a144_0x1477cf(0x16b)](),controller[a144_0x1477cf(0x163)]),router[a144_0x1477cf(0x165)]('/:id',auth[a144_0x1477cf(0x16b)](),controller[a144_0x1477cf(0x167)]),module[a144_0x1477cf(0x166)]=router; \ No newline at end of file diff --git a/server/api/cmCompany/cmCompany.attributes.js b/server/api/cmCompany/cmCompany.attributes.js index 9580ee9..d4d025e 100644 --- a/server/api/cmCompany/cmCompany.attributes.js +++ b/server/api/cmCompany/cmCompany.attributes.js @@ -1 +1 @@ -const a121_0x7997=['name','sequelize','STRING'];(function(_0xbcd0c1,_0x799731){const _0x568599=function(_0x2a9267){while(--_0x2a9267){_0xbcd0c1['push'](_0xbcd0c1['shift']());}};_0x568599(++_0x799731);}(a121_0x7997,0x135));const a121_0x5685=function(_0xbcd0c1,_0x799731){_0xbcd0c1=_0xbcd0c1-0x0;let _0x568599=a121_0x7997[_0xbcd0c1];return _0x568599;};const _0xb05861=a121_0x5685;'use strict';const Sequelize=require(_0xb05861('0x1'));module['exports']={'name':{'type':Sequelize[_0xb05861('0x2')],'unique':_0xb05861('0x0'),'allowNull':![],'validate':{'notEmpty':!![]}},'vat':{'type':Sequelize[_0xb05861('0x2')]},'companyId':{'type':Sequelize['STRING']},'website':{'type':Sequelize[_0xb05861('0x2')]},'phone':{'type':Sequelize[_0xb05861('0x2')]},'fax':{'type':Sequelize[_0xb05861('0x2')]},'type':{'type':Sequelize['STRING']},'street':{'type':Sequelize['STRING']},'postalCode':{'type':Sequelize['STRING']},'city':{'type':Sequelize[_0xb05861('0x2')]},'country':{'type':Sequelize[_0xb05861('0x2')]},'email':{'type':Sequelize[_0xb05861('0x2')],'validate':{'isEmail':!![]}},'emailDomain':{'type':Sequelize['STRING']},'sStreet':{'type':Sequelize[_0xb05861('0x2')]},'sPostalCode':{'type':Sequelize[_0xb05861('0x2')]},'sCity':{'type':Sequelize['STRING']},'sCountry':{'type':Sequelize[_0xb05861('0x2')]},'description':{'type':Sequelize[_0xb05861('0x2')]}}; \ No newline at end of file +const a145_0x2b6f=['sequelize','STRING','exports','name'];(function(_0x5bf525,_0x43978f){const _0x2b6f50=function(_0x4ac366){while(--_0x4ac366){_0x5bf525['push'](_0x5bf525['shift']());}};_0x2b6f50(++_0x43978f);}(a145_0x2b6f,0xa3));const a145_0x4ac3=function(_0x5bf525,_0x43978f){_0x5bf525=_0x5bf525-0x1e7;let _0x2b6f50=a145_0x2b6f[_0x5bf525];return _0x2b6f50;};const a145_0x3f8285=a145_0x4ac3;'use strict';const {DataTypes}=require(a145_0x3f8285(0x1e8)),attributes={'name':{'type':DataTypes[a145_0x3f8285(0x1e9)],'unique':a145_0x3f8285(0x1e7),'allowNull':![],'validate':{'notEmpty':!![]}},'vat':{'type':DataTypes['STRING']},'companyId':{'type':DataTypes[a145_0x3f8285(0x1e9)]},'website':{'type':DataTypes[a145_0x3f8285(0x1e9)]},'phone':{'type':DataTypes['STRING']},'fax':{'type':DataTypes['STRING']},'type':{'type':DataTypes['STRING']},'street':{'type':DataTypes[a145_0x3f8285(0x1e9)]},'postalCode':{'type':DataTypes[a145_0x3f8285(0x1e9)]},'city':{'type':DataTypes['STRING']},'country':{'type':DataTypes[a145_0x3f8285(0x1e9)]},'email':{'type':DataTypes[a145_0x3f8285(0x1e9)],'validate':{'isEmail':!![]}},'emailDomain':{'type':DataTypes[a145_0x3f8285(0x1e9)]},'sStreet':{'type':DataTypes[a145_0x3f8285(0x1e9)]},'sPostalCode':{'type':DataTypes[a145_0x3f8285(0x1e9)]},'sCity':{'type':DataTypes[a145_0x3f8285(0x1e9)]},'sCountry':{'type':DataTypes[a145_0x3f8285(0x1e9)]},'description':{'type':DataTypes['STRING']}};module[a145_0x3f8285(0x1ea)]['attributes']=attributes; \ No newline at end of file diff --git a/server/api/cmCompany/cmCompany.controller.js b/server/api/cmCompany/cmCompany.controller.js index e11a8ff..0fd28fb 100644 --- a/server/api/cmCompany/cmCompany.controller.js +++ b/server/api/cmCompany/cmCompany.controller.js @@ -1 +1 @@ -const a122_0x3bfc=['offset','Content-Range','Companies','filter','intersection','body','CmContact','../../mysqldb','limit','like','pick','Unable\x20to\x20retrieve\x20the\x20current\x20user','set','params','model','UserProfileSection','nolimit','update','create','map','UserProfileResource','sendStatus','sequelize','sort','ids','user','get','getContacts','json','api','fields','index','name','attributes','describe','query','omit','autoAssociation','catch','length','show','keys','status','then','includeAll','../../components/parsers/qs','include','undefined','../../config/logger','merge','order','filters','end','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','send','destroy','where','rawAttributes','findOne','userProfileId','addContacts','count','error','options','role','CmCompany'];(function(_0x1f200a,_0x3bfcf1){const _0x370c=function(_0x5ad54e){while(--_0x5ad54e){_0x1f200a['push'](_0x1f200a['shift']());}};_0x370c(++_0x3bfcf1);}(a122_0x3bfc,0xc9));const a122_0x370c=function(_0x1f200a,_0x3bfcf1){_0x1f200a=_0x1f200a-0x0;let _0x370c=a122_0x3bfc[_0x1f200a];return _0x370c;};const _0x2c6b76=a122_0x370c;'use strict';const _=require('lodash'),qs=require(_0x2c6b76('0x2a')),logger=require(_0x2c6b76('0x2d'))(_0x2c6b76('0x1a')),db=require(_0x2c6b76('0x4'))['db'],{Op}=require(_0x2c6b76('0x13'));function respondWithResult(_0x5ad54e,_0x3dd757){return _0x3dd757=_0x3dd757||0xc8,function(_0xcee806){const _0x4900bc=a122_0x370c;if(_0xcee806)return _0x5ad54e['status'](_0x3dd757)[_0x4900bc('0x19')](_0xcee806);};}function respondWithFilteredResult(_0x35ecd0,_0x1bda29){return function(_0x1c250c){const _0x120f22=a122_0x370c;if(_0x1c250c){const _0x22b656=_0x1c250c[_0x120f22('0x3a')],_0x13dde7=_0x1bda29[_0x120f22('0x3f')];let _0x1b247c=_0x1bda29[_0x120f22('0x3f')]+_0x1bda29[_0x120f22('0x5')],_0x393b9d;return _0x1b247c>=_0x22b656?(_0x1b247c=_0x22b656,_0x393b9d=0xc8):_0x393b9d=0xce,_0x35ecd0['status'](_0x393b9d),_0x35ecd0[_0x120f22('0x9')](_0x120f22('0x40'),_0x13dde7+'-'+_0x1b247c+'/'+_0x22b656)[_0x120f22('0x19')](_0x1c250c);}return null;};}function saveUpdates(_0x1037b1){return function(_0x16a884){const _0x28a283=a122_0x370c;if(_0x16a884)return _0x16a884[_0x28a283('0xe')](_0x1037b1)[_0x28a283('0x28')](function(_0x413a49){return _0x413a49;});return null;};}function removeEntity(_0x54d8e5){return function(_0x31341d){const _0x3ec8a9=a122_0x370c;if(_0x31341d)return _0x31341d[_0x3ec8a9('0x34')]()[_0x3ec8a9('0x28')](function(){const _0x37107b=_0x3ec8a9,_0x448cb4=_0x31341d[_0x37107b('0x17')]({'plain':!![]}),_0x3fb59d=_0x37107b('0x41');return db[_0x37107b('0x11')][_0x37107b('0x34')]({'where':{'type':_0x3fb59d,'resourceId':_0x448cb4['id']}})['then'](function(){return _0x31341d;});})[_0x3ec8a9('0x28')](function(){const _0x534745=_0x3ec8a9;_0x54d8e5[_0x534745('0x27')](0xcc)[_0x534745('0x31')]();});};}function handleEntityNotFound(_0x2c112e){return function(_0x3acae2){const _0x153dcf=a122_0x370c;return!_0x3acae2&&_0x2c112e[_0x153dcf('0x12')](0x194),_0x3acae2;};}function handleError(_0x32625c,_0x4a4908){return _0x4a4908=_0x4a4908||0x1f4,function(_0x454bf8){const _0x555d74=a122_0x370c;logger[_0x555d74('0x3b')](_0x454bf8['stack']),_0x454bf8[_0x555d74('0x1d')]&&delete _0x454bf8[_0x555d74('0x1d')],_0x32625c[_0x555d74('0x27')](_0x4a4908)[_0x555d74('0x33')](_0x454bf8);};}exports[_0x2c6b76('0x1c')]=function(_0x5c8cbf,_0x3baa06){const _0x374542=_0x2c6b76;let _0x14df00={};const _0x4f1fe2={},_0x3f20b4={'count':0x0,'rows':[]};return db['CmCompany'][_0x374542('0x1f')]()['then'](function(_0x72ce63){const _0x1f8b25=_0x374542;_0x4f1fe2[_0x1f8b25('0xb')]=_[_0x1f8b25('0x26')](_0x72ce63),_0x4f1fe2[_0x1f8b25('0x20')]=_['keys'](_0x5c8cbf[_0x1f8b25('0x20')]),_0x4f1fe2[_0x1f8b25('0x30')]=_[_0x1f8b25('0x1')](_0x4f1fe2[_0x1f8b25('0xb')],_0x4f1fe2[_0x1f8b25('0x20')]),_0x14df00['attributes']=_[_0x1f8b25('0x1')](_0x4f1fe2[_0x1f8b25('0xb')],qs[_0x1f8b25('0x1b')](_0x5c8cbf[_0x1f8b25('0x20')]['fields'])),_0x14df00[_0x1f8b25('0x1e')]=_0x14df00[_0x1f8b25('0x1e')][_0x1f8b25('0x24')]?_0x14df00[_0x1f8b25('0x1e')]:_0x4f1fe2['model'];typeof _0x5c8cbf['query'][_0x1f8b25('0xd')]===_0x1f8b25('0x2c')&&(_0x14df00[_0x1f8b25('0x5')]=qs[_0x1f8b25('0x5')](_0x5c8cbf[_0x1f8b25('0x20')]['limit']),_0x14df00[_0x1f8b25('0x3f')]=qs[_0x1f8b25('0x3f')](_0x5c8cbf[_0x1f8b25('0x20')][_0x1f8b25('0x3f')]));_0x14df00[_0x1f8b25('0x2f')]=qs[_0x1f8b25('0x14')](_0x5c8cbf['query'][_0x1f8b25('0x14')]),_0x14df00['where']=qs[_0x1f8b25('0x30')](_[_0x1f8b25('0x7')](_0x5c8cbf[_0x1f8b25('0x20')],_0x4f1fe2[_0x1f8b25('0x30')]),_0x72ce63);_0x5c8cbf['query'][_0x1f8b25('0x0')]&&(_0x14df00[_0x1f8b25('0x35')]=_[_0x1f8b25('0x2e')](_0x14df00[_0x1f8b25('0x35')],{[Op['or']]:_[_0x1f8b25('0x10')](_0x14df00[_0x1f8b25('0x1e')],function(_0x2113e6){const _0x45eea4=_0x1f8b25,_0x3aaa5f={};return _0x3aaa5f[_0x2113e6]={[Op['like']]:'%'+_0x5c8cbf[_0x45eea4('0x20')][_0x45eea4('0x0')]+'%'},_0x3aaa5f;})}));_0x14df00=_['merge']({},_0x14df00,_0x5c8cbf['options']);const _0x1eb7af={'where':_0x14df00['where']};return db['CmCompany'][_0x1f8b25('0x3a')](_0x1eb7af)['then'](function(_0x16e47f){const _0x15c692=_0x1f8b25;return _0x3f20b4[_0x15c692('0x3a')]=_0x16e47f,_0x5c8cbf[_0x15c692('0x20')][_0x15c692('0x29')]&&(_0x14df00[_0x15c692('0x2b')]=[{'all':!![]}]),db['CmCompany']['findAll'](_0x14df00);})[_0x1f8b25('0x28')](function(_0x328118){return _0x3f20b4['rows']=_0x328118,_0x3f20b4;})['then'](respondWithFilteredResult(_0x3baa06,_0x14df00))[_0x1f8b25('0x23')](handleError(_0x3baa06,null));})['catch'](handleError(_0x3baa06,null));},exports[_0x2c6b76('0x25')]=function(_0x1f198b,_0x43a1a4){const _0x4929aa=_0x2c6b76;let _0x145dc1={'raw':![],'where':{'id':_0x1f198b[_0x4929aa('0xa')]['id']}};const _0x22cf7c={};return _0x22cf7c[_0x4929aa('0xb')]=_[_0x4929aa('0x26')](db[_0x4929aa('0x3e')][_0x4929aa('0x36')]),_0x22cf7c[_0x4929aa('0x20')]=_[_0x4929aa('0x26')](_0x1f198b[_0x4929aa('0x20')]),_0x22cf7c[_0x4929aa('0x30')]=_[_0x4929aa('0x1')](_0x22cf7c[_0x4929aa('0xb')],_0x22cf7c[_0x4929aa('0x20')]),_0x145dc1[_0x4929aa('0x1e')]=_['intersection'](_0x22cf7c['model'],qs['fields'](_0x1f198b[_0x4929aa('0x20')][_0x4929aa('0x1b')])),_0x145dc1[_0x4929aa('0x1e')]=_0x145dc1['attributes']['length']?_0x145dc1[_0x4929aa('0x1e')]:_0x22cf7c['model'],_0x1f198b['query'][_0x4929aa('0x29')]&&(_0x145dc1[_0x4929aa('0x2b')]=[{'all':!![]}]),_0x145dc1=_[_0x4929aa('0x2e')]({},_0x145dc1,_0x1f198b[_0x4929aa('0x3c')]),db['CmCompany'][_0x4929aa('0x37')](_0x145dc1)[_0x4929aa('0x28')](handleEntityNotFound(_0x43a1a4,null))[_0x4929aa('0x28')](respondWithResult(_0x43a1a4,null))[_0x4929aa('0x23')](handleError(_0x43a1a4,null));},exports['create']=function(_0x432ca6,_0x40a78a){const _0x542be6=_0x2c6b76;return db[_0x542be6('0x3e')][_0x542be6('0xf')](_0x432ca6['body'],{})['then'](function(_0x25894b){const _0x2442d6=_0x542be6,_0x2af9f7=_0x432ca6[_0x2442d6('0x16')][_0x2442d6('0x17')]({'plain':!![]});if(!_0x2af9f7)throw new Error(_0x2442d6('0x8'));if(_0x2af9f7[_0x2442d6('0x3d')]===_0x2442d6('0x16')){const _0x5b5dc5=_0x25894b[_0x2442d6('0x17')]({'plain':!![]}),_0x264d38='Companies';return db[_0x2442d6('0xc')][_0x2442d6('0x37')]({'where':{'name':_0x264d38,'userProfileId':_0x2af9f7[_0x2442d6('0x38')]},'raw':!![]})[_0x2442d6('0x28')](function(_0x37ff99){const _0x4c9dd1=_0x2442d6;return _0x37ff99&&_0x37ff99[_0x4c9dd1('0x22')]===0x0?db['UserProfileResource'][_0x4c9dd1('0xf')]({'name':_0x5b5dc5[_0x4c9dd1('0x1d')],'resourceId':_0x5b5dc5['id'],'type':_0x37ff99[_0x4c9dd1('0x1d')],'sectionId':_0x37ff99['id']},{})[_0x4c9dd1('0x28')](function(){return _0x25894b;}):_0x25894b;})[_0x2442d6('0x23')](function(_0x37eb03){const _0x4d9206=_0x2442d6;logger[_0x4d9206('0x3b')](_0x4d9206('0x32'),_0x37eb03);throw _0x37eb03;});}return _0x25894b;})[_0x542be6('0x28')](respondWithResult(_0x40a78a,0xc9))[_0x542be6('0x23')](handleError(_0x40a78a,null));},exports[_0x2c6b76('0xe')]=function(_0xbad4dd,_0x2cfd98){const _0x597c3a=_0x2c6b76;return _0xbad4dd[_0x597c3a('0x2')]['id']&&delete _0xbad4dd['body']['id'],db[_0x597c3a('0x3e')][_0x597c3a('0x37')]({'where':{'id':_0xbad4dd['params']['id']}})[_0x597c3a('0x28')](handleEntityNotFound(_0x2cfd98,null))['then'](saveUpdates(_0xbad4dd[_0x597c3a('0x2')],null))[_0x597c3a('0x28')](respondWithResult(_0x2cfd98,null))[_0x597c3a('0x23')](handleError(_0x2cfd98,null));},exports[_0x2c6b76('0x34')]=function(_0x27d854,_0x342e97){const _0x574235=_0x2c6b76;return db[_0x574235('0x3e')][_0x574235('0x37')]({'where':{'id':_0x27d854['params']['id']}})[_0x574235('0x28')](handleEntityNotFound(_0x342e97,null))[_0x574235('0x28')](removeEntity(_0x342e97,null))[_0x574235('0x23')](handleError(_0x342e97,null));},exports[_0x2c6b76('0x1f')]=function(_0x620d92,_0x39ce20){const _0x14b3c1=_0x2c6b76;return db[_0x14b3c1('0x3e')][_0x14b3c1('0x1f')]()[_0x14b3c1('0x28')](respondWithResult(_0x39ce20,null))[_0x14b3c1('0x23')](handleError(_0x39ce20,null));},exports[_0x2c6b76('0x39')]=function(_0x31f1ab,_0x380192){const _0x158872=_0x2c6b76;return db[_0x158872('0x3')][_0x158872('0x37')]({'where':{'id':_0x31f1ab[_0x158872('0xa')]['id']}})[_0x158872('0x28')](function(_0x1ce414){const _0x3c56c8=_0x158872;if(_0x1ce414)return _0x1ce414['addContacts'](_0x31f1ab[_0x3c56c8('0x2')][_0x3c56c8('0x15')],{'through':_[_0x3c56c8('0x21')](_0x31f1ab[_0x3c56c8('0x2')],[_0x3c56c8('0x15'),'id'])});})['then'](respondWithResult(_0x380192,null))[_0x158872('0x23')](handleError(_0x380192,null));},exports['getContacts']=function(_0x58a505,_0x468f9d){const _0x307711=_0x2c6b76;let _0x29f8fc={};const _0x594700={};let _0x51027e,_0x2b5b57;return db[_0x307711('0x3e')]['findOne']({'where':{'id':_0x58a505[_0x307711('0xa')]['id']}})[_0x307711('0x28')](handleEntityNotFound(_0x468f9d,null))[_0x307711('0x28')](function(_0x47d8ae){const _0x18fe0a=_0x307711;if(_0x47d8ae)return _0x51027e=_0x47d8ae,_0x594700[_0x18fe0a('0xb')]=_[_0x18fe0a('0x26')](db[_0x18fe0a('0x3')][_0x18fe0a('0x36')]),_0x594700[_0x18fe0a('0x20')]=_['keys'](_0x58a505[_0x18fe0a('0x20')]),_0x594700['filters']=_['intersection'](_0x594700[_0x18fe0a('0xb')],_0x594700[_0x18fe0a('0x20')]),_0x29f8fc[_0x18fe0a('0x1e')]=_[_0x18fe0a('0x1')](_0x594700[_0x18fe0a('0xb')],qs[_0x18fe0a('0x1b')](_0x58a505[_0x18fe0a('0x20')][_0x18fe0a('0x1b')])),_0x29f8fc[_0x18fe0a('0x1e')]=_0x29f8fc[_0x18fe0a('0x1e')][_0x18fe0a('0x24')]?_0x29f8fc[_0x18fe0a('0x1e')]:_0x594700[_0x18fe0a('0xb')],_0x29f8fc[_0x18fe0a('0x2f')]=qs['sort'](_0x58a505['query'][_0x18fe0a('0x14')]),_0x29f8fc['where']=qs[_0x18fe0a('0x30')](_[_0x18fe0a('0x7')](_0x58a505[_0x18fe0a('0x20')],_0x594700['filters'])),_0x58a505[_0x18fe0a('0x20')][_0x18fe0a('0x0')]&&(_0x29f8fc[_0x18fe0a('0x35')]=_[_0x18fe0a('0x2e')](_0x29f8fc[_0x18fe0a('0x35')],{[Op['or']]:_[_0x18fe0a('0x10')](_0x29f8fc[_0x18fe0a('0x1e')],function(_0x4668bf){const _0x1b1f16=_0x18fe0a,_0x2448d1={};return _0x2448d1[_0x4668bf]={[Op[_0x1b1f16('0x6')]]:'%'+_0x58a505[_0x1b1f16('0x20')][_0x1b1f16('0x0')]+'%'},_0x2448d1;})})),_0x29f8fc=_['merge']({},_0x29f8fc,_0x58a505[_0x18fe0a('0x3c')]),_0x51027e['getContacts'](_0x29f8fc);})[_0x307711('0x28')](function(_0x3b719a){const _0x3b6622=_0x307711;if(_0x3b719a)return _0x2b5b57=_0x3b719a[_0x3b6622('0x24')],typeof _0x58a505['query'][_0x3b6622('0xd')]==='undefined'&&(_0x29f8fc[_0x3b6622('0x5')]=qs[_0x3b6622('0x5')](_0x58a505[_0x3b6622('0x20')][_0x3b6622('0x5')]),_0x29f8fc['offset']=qs['offset'](_0x58a505[_0x3b6622('0x20')][_0x3b6622('0x3f')])),_0x51027e[_0x3b6622('0x18')](_0x29f8fc);})[_0x307711('0x28')](function(_0x459994){if(_0x459994)return _0x459994?{'count':_0x2b5b57,'rows':_0x459994}:null;})['then'](respondWithResult(_0x468f9d,null))[_0x307711('0x23')](handleError(_0x468f9d,null));}; \ No newline at end of file +const a146_0x4654=['end','nolimit','pick','query','omit','map','where','CmCompany','catch','Content-Range','fields','like','count','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','send','status','name','UserProfileResource','update','then','userProfileId','offset','keys','undefined','include','filters','merge','../../components/parsers/qs','Unable\x20to\x20retrieve\x20the\x20current\x20user','show','order','set','addContacts','options','lodash','sendStatus','limit','findAll','getContacts','create','error','Companies','includeAll','filter','json','length','describe','user','params','sequelize','body','UserProfileSection','sort','role','model','destroy','CmContact','../../mysqldb','api','findOne','intersection','get','index','attributes'];(function(_0x58db24,_0x305174){const _0x465410=function(_0x3449ee){while(--_0x3449ee){_0x58db24['push'](_0x58db24['shift']());}};_0x465410(++_0x305174);}(a146_0x4654,0x15f));const a146_0x3449=function(_0x58db24,_0x305174){_0x58db24=_0x58db24-0x125;let _0x465410=a146_0x4654[_0x58db24];return _0x465410;};const a146_0xa705e5=a146_0x3449;'use strict';const _=require(a146_0xa705e5(0x128)),qs=require(a146_0xa705e5(0x161)),logger=require('../../config/logger')(a146_0xa705e5(0x140)),{db}=require(a146_0xa705e5(0x13f)),{Op}=require(a146_0xa705e5(0x137));function respondWithResult(_0x3a7363,_0x1913ff){return _0x1913ff=_0x1913ff||0xc8,function(_0x4dfc01){const _0xcb826=a146_0x3449;if(_0x4dfc01)return _0x3a7363[_0xcb826(0x155)](_0x1913ff)[_0xcb826(0x132)](_0x4dfc01);};}function respondWithFilteredResult(_0x375b39,_0x2396bb){return function(_0x3a3e09){const _0x330fa9=a146_0x3449;if(_0x3a3e09){const _0x398e94=_0x3a3e09[_0x330fa9(0x152)],_0x5cb8c9=_0x2396bb[_0x330fa9(0x15b)];let _0x2b80ed=_0x2396bb[_0x330fa9(0x15b)]+_0x2396bb[_0x330fa9(0x12a)],_0x552c36;return _0x2b80ed>=_0x398e94?(_0x2b80ed=_0x398e94,_0x552c36=0xc8):_0x552c36=0xce,_0x375b39['status'](_0x552c36),_0x375b39[_0x330fa9(0x125)](_0x330fa9(0x14f),_0x5cb8c9+'-'+_0x2b80ed+'/'+_0x398e94)[_0x330fa9(0x132)](_0x3a3e09);}return null;};}function saveUpdates(_0x3b1153){return function(_0x2b0d46){const _0x169908=a146_0x3449;if(_0x2b0d46)return _0x2b0d46[_0x169908(0x158)](_0x3b1153)[_0x169908(0x159)](function(_0x24ae45){return _0x24ae45;});return null;};}function removeEntity(_0x15ca18){return function(_0x21e5d6){const _0x1541b0=a146_0x3449;if(_0x21e5d6)return _0x21e5d6[_0x1541b0(0x13d)]()['then'](function(){const _0x262291=_0x1541b0,_0x4b60d9=_0x21e5d6[_0x262291(0x143)]({'plain':!![]}),_0x2182a7=_0x262291(0x12f);return db[_0x262291(0x157)]['destroy']({'where':{'type':_0x2182a7,'resourceId':_0x4b60d9['id']}})[_0x262291(0x159)](function(){return _0x21e5d6;});})[_0x1541b0(0x159)](function(){const _0x2324a3=_0x1541b0;_0x15ca18[_0x2324a3(0x155)](0xcc)[_0x2324a3(0x146)]();});};}function handleEntityNotFound(_0x3da025){return function(_0x3db6e2){const _0x54f935=a146_0x3449;return!_0x3db6e2&&_0x3da025[_0x54f935(0x129)](0x194),_0x3db6e2;};}function handleError(_0x193294,_0x4c9539){return _0x4c9539=_0x4c9539||0x1f4,function(_0x296dc7){const _0x2d0319=a146_0x3449;logger[_0x2d0319(0x12e)](_0x296dc7['stack']),_0x296dc7[_0x2d0319(0x156)]&&delete _0x296dc7[_0x2d0319(0x156)],_0x193294[_0x2d0319(0x155)](_0x4c9539)[_0x2d0319(0x154)](_0x296dc7);};}exports[a146_0xa705e5(0x144)]=function(_0x2a268a,_0xbfc34b){const _0x26fddc=a146_0xa705e5;let _0x2b1ad1={};const _0x4c1473={},_0x2bf275={'count':0x0,'rows':[]};return db['CmCompany'][_0x26fddc(0x134)]()['then'](function(_0x1d096f){const _0x113dc7=_0x26fddc;_0x4c1473[_0x113dc7(0x13c)]=_['keys'](_0x1d096f),_0x4c1473[_0x113dc7(0x149)]=_[_0x113dc7(0x15c)](_0x2a268a[_0x113dc7(0x149)]),_0x4c1473['filters']=_[_0x113dc7(0x142)](_0x4c1473[_0x113dc7(0x13c)],_0x4c1473[_0x113dc7(0x149)]),_0x2b1ad1['attributes']=_[_0x113dc7(0x142)](_0x4c1473['model'],qs[_0x113dc7(0x150)](_0x2a268a[_0x113dc7(0x149)]['fields'])),_0x2b1ad1[_0x113dc7(0x145)]=_0x2b1ad1[_0x113dc7(0x145)]['length']?_0x2b1ad1['attributes']:_0x4c1473[_0x113dc7(0x13c)];typeof _0x2a268a[_0x113dc7(0x149)][_0x113dc7(0x147)]===_0x113dc7(0x15d)&&(_0x2b1ad1['limit']=qs[_0x113dc7(0x12a)](_0x2a268a['query'][_0x113dc7(0x12a)]),_0x2b1ad1[_0x113dc7(0x15b)]=qs[_0x113dc7(0x15b)](_0x2a268a[_0x113dc7(0x149)][_0x113dc7(0x15b)]));_0x2b1ad1[_0x113dc7(0x164)]=qs[_0x113dc7(0x13a)](_0x2a268a[_0x113dc7(0x149)][_0x113dc7(0x13a)]),_0x2b1ad1['where']=qs[_0x113dc7(0x15f)](_[_0x113dc7(0x148)](_0x2a268a['query'],_0x4c1473['filters']),_0x1d096f);_0x2a268a[_0x113dc7(0x149)][_0x113dc7(0x131)]&&(_0x2b1ad1['where']=_['merge'](_0x2b1ad1[_0x113dc7(0x14c)],{[Op['or']]:_[_0x113dc7(0x14b)](_0x2b1ad1[_0x113dc7(0x145)],function(_0x3fabbe){const _0x5e40f2=_0x113dc7,_0xf6a369={};return _0xf6a369[_0x3fabbe]={[Op['like']]:'%'+_0x2a268a[_0x5e40f2(0x149)]['filter']+'%'},_0xf6a369;})}));_0x2b1ad1=_['merge']({},_0x2b1ad1,_0x2a268a[_0x113dc7(0x127)]);const _0x367e87={'where':_0x2b1ad1[_0x113dc7(0x14c)]};return db[_0x113dc7(0x14d)]['count'](_0x367e87)[_0x113dc7(0x159)](function(_0x419f4e){const _0xc6cde=_0x113dc7;return _0x2bf275[_0xc6cde(0x152)]=_0x419f4e,_0x2a268a['query'][_0xc6cde(0x130)]&&(_0x2b1ad1['include']=[{'all':!![]}]),db[_0xc6cde(0x14d)][_0xc6cde(0x12b)](_0x2b1ad1);})[_0x113dc7(0x159)](function(_0x2c8b24){return _0x2bf275['rows']=_0x2c8b24,_0x2bf275;})[_0x113dc7(0x159)](respondWithFilteredResult(_0xbfc34b,_0x2b1ad1))[_0x113dc7(0x14e)](handleError(_0xbfc34b,null));})[_0x26fddc(0x14e)](handleError(_0xbfc34b,null));},exports[a146_0xa705e5(0x163)]=function(_0x23df08,_0x5d8818){const _0x838490=a146_0xa705e5;let _0x2e682f={'raw':![],'where':{'id':_0x23df08[_0x838490(0x136)]['id']}};const _0x3ab9b1={};return _0x3ab9b1[_0x838490(0x13c)]=_[_0x838490(0x15c)](db[_0x838490(0x14d)]['rawAttributes']),_0x3ab9b1[_0x838490(0x149)]=_[_0x838490(0x15c)](_0x23df08[_0x838490(0x149)]),_0x3ab9b1[_0x838490(0x15f)]=_[_0x838490(0x142)](_0x3ab9b1[_0x838490(0x13c)],_0x3ab9b1[_0x838490(0x149)]),_0x2e682f[_0x838490(0x145)]=_['intersection'](_0x3ab9b1[_0x838490(0x13c)],qs[_0x838490(0x150)](_0x23df08[_0x838490(0x149)][_0x838490(0x150)])),_0x2e682f['attributes']=_0x2e682f[_0x838490(0x145)][_0x838490(0x133)]?_0x2e682f[_0x838490(0x145)]:_0x3ab9b1[_0x838490(0x13c)],_0x23df08[_0x838490(0x149)]['includeAll']&&(_0x2e682f[_0x838490(0x15e)]=[{'all':!![]}]),_0x2e682f=_[_0x838490(0x160)]({},_0x2e682f,_0x23df08[_0x838490(0x127)]),db[_0x838490(0x14d)][_0x838490(0x141)](_0x2e682f)[_0x838490(0x159)](handleEntityNotFound(_0x5d8818,null))[_0x838490(0x159)](respondWithResult(_0x5d8818,null))['catch'](handleError(_0x5d8818,null));},exports['create']=function(_0x22af83,_0x4b3d57){const _0x30a32c=a146_0xa705e5;return db[_0x30a32c(0x14d)][_0x30a32c(0x12d)](_0x22af83[_0x30a32c(0x138)],{})['then'](function(_0x415076){const _0x368032=_0x30a32c,_0x41e23a=_0x22af83[_0x368032(0x135)]['get']({'plain':!![]});if(!_0x41e23a)throw new Error(_0x368032(0x162));if(_0x41e23a[_0x368032(0x13b)]===_0x368032(0x135)){const _0x773291=_0x415076[_0x368032(0x143)]({'plain':!![]}),_0x4f035b=_0x368032(0x12f);return db[_0x368032(0x139)][_0x368032(0x141)]({'where':{'name':_0x4f035b,'userProfileId':_0x41e23a[_0x368032(0x15a)]},'raw':!![]})[_0x368032(0x159)](function(_0x4672f2){const _0x5c1e7e=_0x368032;return _0x4672f2&&_0x4672f2['autoAssociation']===0x0?db[_0x5c1e7e(0x157)][_0x5c1e7e(0x12d)]({'name':_0x773291[_0x5c1e7e(0x156)],'resourceId':_0x773291['id'],'type':_0x4672f2['name'],'sectionId':_0x4672f2['id']},{})[_0x5c1e7e(0x159)](function(){return _0x415076;}):_0x415076;})[_0x368032(0x14e)](function(_0x4dfc70){const _0x27880f=_0x368032;logger[_0x27880f(0x12e)](_0x27880f(0x153),_0x4dfc70);throw _0x4dfc70;});}return _0x415076;})['then'](respondWithResult(_0x4b3d57,0xc9))[_0x30a32c(0x14e)](handleError(_0x4b3d57,null));},exports[a146_0xa705e5(0x158)]=function(_0x10393d,_0x585e9e){const _0x5e2de1=a146_0xa705e5;return _0x10393d[_0x5e2de1(0x138)]['id']&&delete _0x10393d[_0x5e2de1(0x138)]['id'],db['CmCompany'][_0x5e2de1(0x141)]({'where':{'id':_0x10393d[_0x5e2de1(0x136)]['id']}})[_0x5e2de1(0x159)](handleEntityNotFound(_0x585e9e,null))[_0x5e2de1(0x159)](saveUpdates(_0x10393d['body'],null))[_0x5e2de1(0x159)](respondWithResult(_0x585e9e,null))['catch'](handleError(_0x585e9e,null));},exports[a146_0xa705e5(0x13d)]=function(_0x330d,_0x26edae){const _0x37795a=a146_0xa705e5;return db[_0x37795a(0x14d)][_0x37795a(0x141)]({'where':{'id':_0x330d[_0x37795a(0x136)]['id']}})[_0x37795a(0x159)](handleEntityNotFound(_0x26edae,null))[_0x37795a(0x159)](removeEntity(_0x26edae,null))['catch'](handleError(_0x26edae,null));},exports[a146_0xa705e5(0x134)]=function(_0x15ccdb,_0x33422d){const _0x2d70d0=a146_0xa705e5;return db['CmCompany'][_0x2d70d0(0x134)]()[_0x2d70d0(0x159)](respondWithResult(_0x33422d,null))['catch'](handleError(_0x33422d,null));},exports[a146_0xa705e5(0x126)]=function(_0x44d6fb,_0x60963b){const _0xc3b8b4=a146_0xa705e5;return db[_0xc3b8b4(0x13e)][_0xc3b8b4(0x141)]({'where':{'id':_0x44d6fb[_0xc3b8b4(0x136)]['id']}})['then'](function(_0x21a841){const _0x7fee32=_0xc3b8b4;if(_0x21a841)return _0x21a841[_0x7fee32(0x126)](_0x44d6fb[_0x7fee32(0x138)]['ids'],{'through':_[_0x7fee32(0x14a)](_0x44d6fb[_0x7fee32(0x138)],['ids','id'])});})['then'](respondWithResult(_0x60963b,null))[_0xc3b8b4(0x14e)](handleError(_0x60963b,null));},exports[a146_0xa705e5(0x12c)]=function(_0xd46de3,_0x352288){const _0xd0fc97=a146_0xa705e5;let _0xd69ac8={};const _0x3414a5={};let _0x17cb4a,_0x34698c;return db['CmCompany'][_0xd0fc97(0x141)]({'where':{'id':_0xd46de3[_0xd0fc97(0x136)]['id']}})['then'](handleEntityNotFound(_0x352288,null))[_0xd0fc97(0x159)](function(_0x1932d1){const _0x1e775b=_0xd0fc97;if(_0x1932d1)return _0x17cb4a=_0x1932d1,_0x3414a5['model']=_[_0x1e775b(0x15c)](db['CmContact']['rawAttributes']),_0x3414a5[_0x1e775b(0x149)]=_['keys'](_0xd46de3['query']),_0x3414a5[_0x1e775b(0x15f)]=_[_0x1e775b(0x142)](_0x3414a5[_0x1e775b(0x13c)],_0x3414a5[_0x1e775b(0x149)]),_0xd69ac8[_0x1e775b(0x145)]=_[_0x1e775b(0x142)](_0x3414a5[_0x1e775b(0x13c)],qs[_0x1e775b(0x150)](_0xd46de3[_0x1e775b(0x149)][_0x1e775b(0x150)])),_0xd69ac8[_0x1e775b(0x145)]=_0xd69ac8[_0x1e775b(0x145)][_0x1e775b(0x133)]?_0xd69ac8[_0x1e775b(0x145)]:_0x3414a5[_0x1e775b(0x13c)],_0xd69ac8[_0x1e775b(0x164)]=qs[_0x1e775b(0x13a)](_0xd46de3[_0x1e775b(0x149)][_0x1e775b(0x13a)]),_0xd69ac8[_0x1e775b(0x14c)]=qs['filters'](_[_0x1e775b(0x148)](_0xd46de3[_0x1e775b(0x149)],_0x3414a5['filters'])),_0xd46de3[_0x1e775b(0x149)][_0x1e775b(0x131)]&&(_0xd69ac8[_0x1e775b(0x14c)]=_[_0x1e775b(0x160)](_0xd69ac8[_0x1e775b(0x14c)],{[Op['or']]:_[_0x1e775b(0x14b)](_0xd69ac8[_0x1e775b(0x145)],function(_0xdb3f8d){const _0x49c5c9=_0x1e775b,_0x502935={};return _0x502935[_0xdb3f8d]={[Op[_0x49c5c9(0x151)]]:'%'+_0xd46de3[_0x49c5c9(0x149)][_0x49c5c9(0x131)]+'%'},_0x502935;})})),_0xd69ac8=_[_0x1e775b(0x160)]({},_0xd69ac8,_0xd46de3['options']),_0x17cb4a[_0x1e775b(0x12c)](_0xd69ac8);})[_0xd0fc97(0x159)](function(_0x435ae6){const _0x84a962=_0xd0fc97;if(_0x435ae6)return _0x34698c=_0x435ae6[_0x84a962(0x133)],typeof _0xd46de3['query'][_0x84a962(0x147)]==='undefined'&&(_0xd69ac8['limit']=qs[_0x84a962(0x12a)](_0xd46de3[_0x84a962(0x149)][_0x84a962(0x12a)]),_0xd69ac8['offset']=qs[_0x84a962(0x15b)](_0xd46de3[_0x84a962(0x149)]['offset'])),_0x17cb4a[_0x84a962(0x12c)](_0xd69ac8);})['then'](function(_0x3fb927){if(_0x3fb927)return _0x3fb927?{'count':_0x34698c,'rows':_0x3fb927}:null;})['then'](respondWithResult(_0x352288,null))[_0xd0fc97(0x14e)](handleError(_0x352288,null));}; \ No newline at end of file diff --git a/server/api/cmCompany/cmCompany.model.js b/server/api/cmCompany/cmCompany.model.js index 8ed048e..61a2b21 100644 --- a/server/api/cmCompany/cmCompany.model.js +++ b/server/api/cmCompany/cmCompany.model.js @@ -1 +1 @@ -const a123_0x3413=['cm_companies','./cmCompany.attributes','CmCompany'];(function(_0x3be488,_0x341375){const _0xd72cdf=function(_0x305886){while(--_0x305886){_0x3be488['push'](_0x3be488['shift']());}};_0xd72cdf(++_0x341375);}(a123_0x3413,0x8f));const a123_0xd72c=function(_0x3be488,_0x341375){_0x3be488=_0x3be488-0x0;let _0xd72cdf=a123_0x3413[_0x3be488];return _0xd72cdf;};const _0x5a998a=a123_0xd72c;'use strict';const attributes=require(_0x5a998a('0x2'));module['exports']=function(_0x305886){const _0x1ec25d=_0x5a998a,_0x3b9a27=_0x305886['define'](_0x1ec25d('0x0'),attributes,{'tableName':_0x1ec25d('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x3b9a27;}; \ No newline at end of file +const a147_0x52fe=['./cmCompany.options','./cmCompany.attributes','sequelize','exports','function','CmCompany','init'];(function(_0x115811,_0xa792c4){const _0x52fe50=function(_0x455df3){while(--_0x455df3){_0x115811['push'](_0x115811['shift']());}};_0x52fe50(++_0xa792c4);}(a147_0x52fe,0xdc));const a147_0x455d=function(_0x115811,_0xa792c4){_0x115811=_0x115811-0x189;let _0x52fe50=a147_0x52fe[_0x115811];return _0x52fe50;};const a147_0x374063=a147_0x455d;'use strict';const {Model}=require(a147_0x374063(0x18f)),{attributes}=require(a147_0x374063(0x18e)),{options}=require(a147_0x374063(0x18d));class CmCompany extends Model{}function init(_0x2d7024,_0x2fc0c3){const _0x3a7d6a=a147_0x374063,_0xe56cd7=options(_0x2d7024),_0x1cb0fb=typeof _0x2fc0c3===_0x3a7d6a(0x18a)?_0x2fc0c3(_0xe56cd7):_0xe56cd7;return CmCompany[_0x3a7d6a(0x18c)](attributes,_0x1cb0fb),CmCompany;}module['exports'][a147_0x374063(0x18b)]=CmCompany,module[a147_0x374063(0x189)][a147_0x374063(0x18c)]=init; \ No newline at end of file diff --git a/server/api/cmCompany/cmCompany.options.js b/server/api/cmCompany/cmCompany.options.js new file mode 100644 index 0000000..0492231 --- /dev/null +++ b/server/api/cmCompany/cmCompany.options.js @@ -0,0 +1 @@ +var a148_0x1277=['cm_companies','options','exports'];(function(_0x31e262,_0x35b1f8){var _0x12772d=function(_0x2e73bd){while(--_0x2e73bd){_0x31e262['push'](_0x31e262['shift']());}};_0x12772d(++_0x35b1f8);}(a148_0x1277,0x192));var a148_0x2e73=function(_0x31e262,_0x35b1f8){_0x31e262=_0x31e262-0x1c2;var _0x12772d=a148_0x1277[_0x31e262];return _0x12772d;};var a148_0x28e03d=a148_0x2e73;function options(_0x4ed205){var _0x40e0e5=a148_0x2e73;return{'sequelize':_0x4ed205,'tableName':_0x40e0e5(0x1c2),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a148_0x28e03d(0x1c4)][a148_0x28e03d(0x1c3)]=options; \ No newline at end of file diff --git a/server/api/cmCompany/index.js b/server/api/cmCompany/index.js index 09a9381..1ceb9ac 100644 --- a/server/api/cmCompany/index.js +++ b/server/api/cmCompany/index.js @@ -1 +1 @@ -const a124_0x59fe=['./cmCompany.controller','/:id','show','Router','describe','get','/:id/contacts','index','isAuthenticated','express','put','delete','getContacts','post'];(function(_0x4fa616,_0x59fe94){const _0x58ec01=function(_0x2fe91a){while(--_0x2fe91a){_0x4fa616['push'](_0x4fa616['shift']());}};_0x58ec01(++_0x59fe94);}(a124_0x59fe,0x82));const a124_0x58ec=function(_0x4fa616,_0x59fe94){_0x4fa616=_0x4fa616-0x0;let _0x58ec01=a124_0x59fe[_0x4fa616];return _0x58ec01;};const _0x1a48fb=a124_0x58ec;'use strict';const express=require(_0x1a48fb('0x5')),router=express[_0x1a48fb('0xd')](),auth=require('../../components/auth/service'),controller=require(_0x1a48fb('0xa'));router[_0x1a48fb('0x1')]('/',auth[_0x1a48fb('0x4')](),controller[_0x1a48fb('0x3')]),router[_0x1a48fb('0x1')]('/describe',auth[_0x1a48fb('0x4')](),controller[_0x1a48fb('0x0')]),router[_0x1a48fb('0x1')](_0x1a48fb('0xb'),auth['isAuthenticated'](),controller[_0x1a48fb('0xc')]),router[_0x1a48fb('0x1')](_0x1a48fb('0x2'),auth[_0x1a48fb('0x4')](),controller[_0x1a48fb('0x8')]),router[_0x1a48fb('0x9')]('/',auth[_0x1a48fb('0x4')](),controller['create']),router[_0x1a48fb('0x9')](_0x1a48fb('0x2'),auth[_0x1a48fb('0x4')](),controller['addContacts']),router[_0x1a48fb('0x6')](_0x1a48fb('0xb'),auth[_0x1a48fb('0x4')](),controller['update']),router[_0x1a48fb('0x7')](_0x1a48fb('0xb'),auth[_0x1a48fb('0x4')](),controller['destroy']),module['exports']=router; \ No newline at end of file +const a149_0x57ca=['destroy','exports','/:id','isAuthenticated','/describe','create','../../components/auth/service','post','delete','./cmCompany.controller','/:id/contacts','update','index','get','show','addContacts','Router','put'];(function(_0x41eac8,_0x411b52){const _0x57cac9=function(_0x38b18e){while(--_0x38b18e){_0x41eac8['push'](_0x41eac8['shift']());}};_0x57cac9(++_0x411b52);}(a149_0x57ca,0x6b));const a149_0x38b1=function(_0x41eac8,_0x411b52){_0x41eac8=_0x41eac8-0x172;let _0x57cac9=a149_0x57ca[_0x41eac8];return _0x57cac9;};const a149_0x1e1944=a149_0x38b1;'use strict';const express=require('express'),router=express[a149_0x1e1944(0x183)](),auth=require(a149_0x1e1944(0x179)),controller=require(a149_0x1e1944(0x17c));router['get']('/',auth[a149_0x1e1944(0x176)](),controller[a149_0x1e1944(0x17f)]),router[a149_0x1e1944(0x180)](a149_0x1e1944(0x177),auth[a149_0x1e1944(0x176)](),controller['describe']),router[a149_0x1e1944(0x180)](a149_0x1e1944(0x175),auth[a149_0x1e1944(0x176)](),controller[a149_0x1e1944(0x181)]),router[a149_0x1e1944(0x180)](a149_0x1e1944(0x17d),auth['isAuthenticated'](),controller['getContacts']),router[a149_0x1e1944(0x17a)]('/',auth[a149_0x1e1944(0x176)](),controller[a149_0x1e1944(0x178)]),router['post'](a149_0x1e1944(0x17d),auth['isAuthenticated'](),controller[a149_0x1e1944(0x182)]),router[a149_0x1e1944(0x172)](a149_0x1e1944(0x175),auth[a149_0x1e1944(0x176)](),controller[a149_0x1e1944(0x17e)]),router[a149_0x1e1944(0x17b)]('/:id',auth[a149_0x1e1944(0x176)](),controller[a149_0x1e1944(0x173)]),module[a149_0x1e1944(0x174)]=router; \ No newline at end of file diff --git a/server/api/cmContact/cmContact.attributes.js b/server/api/cmContact/cmContact.attributes.js index 676c204..b68b051 100644 --- a/server/api/cmContact/cmContact.attributes.js +++ b/server/api/cmContact/cmContact.attributes.js @@ -1 +1 @@ -const a125_0x1c02=['INTEGER','exports','UNSIGNED','STRING','DATE','NOW','TEXT'];(function(_0x772b38,_0x1c02b7){const _0x218f37=function(_0x50564f){while(--_0x50564f){_0x772b38['push'](_0x772b38['shift']());}};_0x218f37(++_0x1c02b7);}(a125_0x1c02,0x150));const a125_0x218f=function(_0x772b38,_0x1c02b7){_0x772b38=_0x772b38-0x0;let _0x218f37=a125_0x1c02[_0x772b38];return _0x218f37;};const _0x4642b5=a125_0x218f;'use strict';const Sequelize=require('sequelize');module[_0x4642b5('0x1')]={'firstName':{'type':Sequelize[_0x4642b5('0x3')],'allowNull':![]},'lastName':{'type':Sequelize['STRING']},'street':{'type':Sequelize[_0x4642b5('0x3')]},'postalCode':{'type':Sequelize[_0x4642b5('0x3')]},'city':{'type':Sequelize[_0x4642b5('0x3')]},'country':{'type':Sequelize[_0x4642b5('0x3')]},'dateOfBirth':{'type':Sequelize[_0x4642b5('0x3')]},'description':{'type':Sequelize[_0x4642b5('0x6')]},'phone':{'type':Sequelize[_0x4642b5('0x3')]},'mobile':{'type':Sequelize[_0x4642b5('0x3')]},'fax':{'type':Sequelize[_0x4642b5('0x3')]},'email':{'type':Sequelize[_0x4642b5('0x3')]},'url':{'type':Sequelize['STRING']},'facebook':{'type':Sequelize[_0x4642b5('0x3')]},'fb_data':{'type':Sequelize[_0x4642b5('0x3')]},'twitter':{'type':Sequelize[_0x4642b5('0x3')]},'skype':{'type':Sequelize['STRING']},'teams':{'type':Sequelize[_0x4642b5('0x3')]},'viber':{'type':Sequelize[_0x4642b5('0x3')]},'line':{'type':Sequelize[_0x4642b5('0x3')]},'wechat':{'type':Sequelize['STRING']},'telegram':{'type':Sequelize['STRING']},'UserId':{'type':Sequelize[_0x4642b5('0x0')]},'priority':{'type':Sequelize[_0x4642b5('0x0')](0x2)[_0x4642b5('0x2')],'defaultValue':0x2,'validate':{'min':0x0,'max':0x4}},'scheduledat':{'type':Sequelize[_0x4642b5('0x4')],'defaultValue':Sequelize[_0x4642b5('0x5')]}}; \ No newline at end of file +const a150_0x58da=['STRING','TEXT','UNSIGNED','sequelize','INTEGER'];(function(_0x37af01,_0x3f2f42){const _0x58dac9=function(_0x39f5cb){while(--_0x39f5cb){_0x37af01['push'](_0x37af01['shift']());}};_0x58dac9(++_0x3f2f42);}(a150_0x58da,0x126));const a150_0x39f5=function(_0x37af01,_0x3f2f42){_0x37af01=_0x37af01-0xa9;let _0x58dac9=a150_0x58da[_0x37af01];return _0x58dac9;};const a150_0x43995a=a150_0x39f5;'use strict';const {DataTypes}=require(a150_0x43995a(0xad)),attributes={'firstName':{'type':DataTypes[a150_0x43995a(0xaa)],'allowNull':![]},'lastName':{'type':DataTypes[a150_0x43995a(0xaa)]},'street':{'type':DataTypes[a150_0x43995a(0xaa)]},'postalCode':{'type':DataTypes[a150_0x43995a(0xaa)]},'city':{'type':DataTypes[a150_0x43995a(0xaa)]},'country':{'type':DataTypes[a150_0x43995a(0xaa)]},'dateOfBirth':{'type':DataTypes['STRING']},'description':{'type':DataTypes[a150_0x43995a(0xab)]},'phone':{'type':DataTypes[a150_0x43995a(0xaa)]},'mobile':{'type':DataTypes['STRING']},'fax':{'type':DataTypes[a150_0x43995a(0xaa)]},'email':{'type':DataTypes['STRING']},'url':{'type':DataTypes[a150_0x43995a(0xaa)]},'facebook':{'type':DataTypes[a150_0x43995a(0xaa)]},'fb_data':{'type':DataTypes[a150_0x43995a(0xaa)]},'twitter':{'type':DataTypes[a150_0x43995a(0xaa)]},'skype':{'type':DataTypes['STRING']},'teams':{'type':DataTypes[a150_0x43995a(0xaa)]},'viber':{'type':DataTypes[a150_0x43995a(0xaa)]},'line':{'type':DataTypes[a150_0x43995a(0xaa)]},'wechat':{'type':DataTypes[a150_0x43995a(0xaa)]},'telegram':{'type':DataTypes[a150_0x43995a(0xaa)]},'UserId':{'type':DataTypes['INTEGER']},'priority':{'type':DataTypes[a150_0x43995a(0xa9)]({'length':0x2})[a150_0x43995a(0xac)],'defaultValue':0x2,'validate':{'min':0x0,'max':0x4}},'scheduledat':{'type':DataTypes['DATE'],'defaultValue':DataTypes['NOW']}};module['exports']['attributes']=attributes; \ No newline at end of file diff --git a/server/api/cmContact/cmContact.controller.js b/server/api/cmContact/cmContact.controller.js index f3436c6..5e0f7de 100644 --- a/server/api/cmContact/cmContact.controller.js +++ b/server/api/cmContact/cmContact.controller.js @@ -1 +1 @@ -const a126_0xc051=['Contact','params','QueryTypes','SmsInteraction','findOne','field','rawAttributes','isNumeric','findAll','update','child\x20stdout:\x0a','\x20on\x20file\x20','undefined','start','isNil','MailInteraction','error','FaxInteraction','alias','../../config/environment','User','join','c.phone','uc.CmContactId\x20=\x20c.id','id\x20=\x20?','includeAll','No\x20firstName\x20column\x20specified','destroy','conditions','path','c.fax\x20LIKE\x20?','../../rediscache','VoiceCallReport','name','OpenchannelMessage','toParam','options','intersection','concat','SmsMessage','stringify','query','MailMessage','fieldType','index','stdin','displayName','ChatQueueReport','phone','MATCH\x20(c.firstName,\x20c.lastName,\x20c.phone,\x20c.mobile,\x20c.fax,\x20c.email)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','count','custom','and','create','ChatMessage','info','having','tools_tags','all','table','FaxQueueReport','data','keys','firstName','./cmContact.socket','CmHopperBlack','columnName','message','push','left_join','ReportAgentPreview','format','pickBy','\x20process:\x20error\x20','startsWith','Failed\x20to\x20start\x20','replace','c.fax','ids','cf_','map','pipe','value','uc.UserId\x20=\x20?','type','tag','c.phone\x20LIKE\x20?','import','tags','FaxMessage','getHoppers','setTags','CmHopperHistory','MailQueueReport','c.lastName','file','datetime','binding','pick','sendStatus','Tags','omit','length','OpenchannelQueueReport','t.id\x20IN\x20?','search','JscriptySessionReport','body','keyBy','c.lastName\x20LIKE\x20?','pid','group','DATE','fields','api','then','dateOfBirth','setFields','parseSearch','rows','Missing\x20stdin\x20and\x20stdout\x20on\x20child\x20process','forEach','getHopperFinals','c.ListId\x20IS\x20NULL','split','user','[CmContact][merge][destroy][CmHopperBlack],\x20%s','offset','c.mobile','buildExpression','cf_%d','include','toString','CONCAT(\x27,\x27,\x20`TagIds`,\x20\x27,\x27)\x20LIKE\x20?','getTags','Sequelize','merge','find','send','start\x20child\x20process\x20correctly!','select','filter','isEmail','order','CmHopper','mergeWith','Tag','c.ListId\x20IN\x20?','status','root','isArray','sequelize','nolimit','CONCAT_WS(\x27\x20\x27,\x20c.firstName,\x20c.lastName,\x20c.email)\x20LIKE\x20?','model','child\x20stderr:\x0a','socket_timestamp','parse','CmContact','CmCustomField','papaparse','stderr','attributes','stdout','c.deletedAt','sort','Calling\x20','\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20and\x20agents\x20=\x20','ContactId','isEmpty','bulkCreate','CmHopperFinal','lodash','duplicates','register','set','from','expr','some','getFullTextValue','cm_contacts','c.deletedAt\x20IS\x20NULL','c.mobile\x20LIKE\x20?','end','cm_contact_has_tags','values','filters','SELECT','c.id\x20LIKE\x20?','../../config/logger','\x20=\x20?','getHopperHistories','text','color','like','util','c.id','TagIds','describe','[CmContact][merge][destroy][CmHopper],\x20%s','No\x20phone\x20column\x20specified','t.id\x20=\x20ct.TagId','catch','ListId','c.email','DESC','stack','c.email\x20LIKE\x20?','json','findOrCreate','SmsQueueReport','GROUP_CONCAT(DISTINCT\x20t.id)','getJscriptySessions','ChatInteraction','limit','where'];(function(_0x3bf27a,_0xc051b1){const _0x2ecfbf=function(_0x1c9961){while(--_0x1c9961){_0x3bf27a['push'](_0x3bf27a['shift']());}};_0x2ecfbf(++_0xc051b1);}(a126_0xc051,0x178));const a126_0x2ecf=function(_0x3bf27a,_0xc051b1){_0x3bf27a=_0x3bf27a-0x0;let _0x2ecfbf=a126_0xc051[_0x3bf27a];return _0x2ecfbf;};const _0x1ea927=a126_0x2ecf;'use strict';const util=require(_0x1ea927('0x23')),path=require(_0x1ea927('0x55')),fs=require('fs'),_=require(_0x1ea927('0xc')),squel=require('squel'),Papa=require(_0x1ea927('0x0')),{getSocket}=require(_0x1ea927('0x57')),socket=getSocket(),qs=require('../../components/parsers/qs'),as=require('../../components/parsers/advancedSearch'),logger=require(_0x1ea927('0x1d'))(_0x1ea927('0xaa')),db=require('../../mysqldb')['db'],{Op}=require(_0x1ea927('0xcf')),{fork}=require('child_process'),config=require(_0x1ea927('0x4b'));require(_0x1ea927('0x78'))[_0x1ea927('0xe')](socket);const CSV2_SCRIPT=path['join'](__dirname,'../../components/import/cm/csv2.js');function respondWithResult(_0x1c9961,_0x263877){return _0x263877=_0x263877||0xc8,function(_0x140224){const _0x217844=a126_0x2ecf;if(_0x140224)return _0x1c9961['status'](_0x263877)[_0x217844('0x30')](_0x140224);};}function respondWithFilteredResult(_0x5d14e3,_0x275233){return function(_0x369b9e){const _0x4be2e4=a126_0x2ecf;if(_0x369b9e){const _0x3edb11=_0x369b9e[_0x4be2e4('0x6a')],_0x45933a=_0x275233[_0x4be2e4('0xb7')];let _0x4ee03=_0x275233['offset']+_0x275233[_0x4be2e4('0x36')],_0x4a798a;return _0x4ee03>=_0x3edb11?(_0x4ee03=_0x3edb11,_0x4a798a=0xc8):_0x4a798a=0xce,_0x5d14e3[_0x4be2e4('0xcc')](_0x4a798a),_0x5d14e3[_0x4be2e4('0xf')]('Content-Range',_0x45933a+'-'+_0x4ee03+'/'+_0x3edb11)[_0x4be2e4('0x30')](_0x369b9e);}return null;};}function saveUpdates(_0x20997d){return function(_0x36fa86){const _0x164a0f=a126_0x2ecf;if(_0x36fa86)return _0x36fa86[_0x164a0f('0x41')](_0x20997d)[_0x164a0f('0xab')](function(_0xee8cb5){return _0xee8cb5;});return null;};}function removeEntity(_0x159b1e){return function(_0x3ac147){const _0x5acbb9=a126_0x2ecf;if(_0x3ac147)return _0x3ac147[_0x5acbb9('0x53')]()[_0x5acbb9('0xab')](function(){const _0x10769e=_0x5acbb9;_0x159b1e[_0x10769e('0xcc')](0xcc)[_0x10769e('0x17')]();});};}function handleEntityNotFound(_0x957664){return function(_0x5869a5){const _0x41d247=a126_0x2ecf;return!_0x5869a5&&_0x957664[_0x41d247('0x9b')](0x194),_0x5869a5;};}function handleError(_0x50f329,_0x2c4b2d){return _0x2c4b2d=_0x2c4b2d||0x1f4,function(_0x284132){const _0x3830b4=a126_0x2ecf;logger[_0x3830b4('0x48')](_0x284132[_0x3830b4('0x2e')]),_0x284132['name']&&delete _0x284132[_0x3830b4('0x59')],_0x50f329[_0x3830b4('0xcc')](_0x2c4b2d)[_0x3830b4('0xc2')](_0x284132);};}exports[_0x1ea927('0x64')]=function(_0x4156eb,_0x2f18e8){const _0x5b5c94=_0x1ea927,_0x3e6dfe={},_0x271182={},_0x550e63={'count':0x0,'rows':[]};return db[_0x5b5c94('0xd6')][_0x5b5c94('0x26')]()[_0x5b5c94('0xab')](function(_0x13264c){const _0x1b08db=_0x5b5c94,_0x3ac850=[];for(let _0x214223=0x0;_0x2142230x1)_0x490aa7['or'](_0x3a55d7('0x69'),qs[_0x3a55d7('0x13')](_0x2afb45),null);else{if(qs[_0x3a55d7('0x3f')](_0x2afb45))_0x490aa7['or'](_0x3a55d7('0x1c'),_0x2afb45+'%'),_0x490aa7['or'](_0x3a55d7('0x8e'),_0x2afb45+'%'),_0x490aa7['or'](_0x3a55d7('0x16'),_0x2afb45+'%'),_0x490aa7['or'](_0x3a55d7('0x56'),_0x2afb45+'%');else qs[_0x3a55d7('0xc6')](_0x2afb45)?_0x490aa7['or'](_0x3a55d7('0x2f'),_0x2afb45+'%'):(_0x490aa7['or']('c.firstName\x20LIKE\x20?','%'+_0x2afb45+'%'),_0x490aa7['or'](_0x3a55d7('0xa5'),'%'+_0x2afb45+'%'),_0x490aa7['or'](_0x3a55d7('0x2f'),'%'+_0x2afb45+'%'));}}}_0x5eb4c9[_0x3a55d7('0x37')](_0x490aa7),_0x5eb4c9[_0x3a55d7('0xa7')](_0x3a55d7('0x24'));let _0x22bd31={'type':db[_0x3a55d7('0xbf')][_0x3a55d7('0x3a')][_0x3a55d7('0x1b')],'raw':!![]};const _0x347bba=_0x5eb4c9['clone']()['field'](_0x3a55d7('0x24'));_0x3e6dfe[_0x3a55d7('0xc7')]&&_0x3e6dfe[_0x3a55d7('0xc7')][_0x3a55d7('0xb1')](function(_0x39cc96){const _0x51bd1a=_0x3a55d7;_0x5eb4c9[_0x51bd1a('0xc7')]('c.'+_0x39cc96[0x0],_0x39cc96[0x1]===_0x51bd1a('0x2d')?![]:!![]);}),!_[_0x3a55d7('0x9')](_0x2ba13d)&&(_0x5eb4c9[_0x3a55d7('0x70')](_0x35677d),_0x347bba[_0x3a55d7('0x37')](_0x3a55d7('0xa0'),_0x2ba13d)),Promise['resolve']()[_0x3a55d7('0xab')](function(){const _0x1de2b3=_0x3a55d7;if(_0x38f62e&&!_[_0x1de2b3('0x12')](_0x38f62e[_0x1de2b3('0x54')],[_0x1de2b3('0x3d'),'User']))return _0x4156eb[_0x1de2b3('0xb5')]['getLists']({'attributes':['id'],'raw':!![]})[_0x1de2b3('0xab')](function(_0x40dd0d){const _0x568b24=_0x1de2b3;_[_0x568b24('0x9')](_0x40dd0d)?(_0x347bba[_0x568b24('0x37')](_0x568b24('0xb3')),_0x5eb4c9['where'](_0x568b24('0xb3'))):(_0x347bba['where'](_0x568b24('0xcb'),_['map'](_0x40dd0d,'id')),_0x5eb4c9[_0x568b24('0x37')]('c.ListId\x20IN\x20?',_[_0x568b24('0x88')](_0x40dd0d,'id')));});else return;})[_0x3a55d7('0xab')](function(){const _0xc6675f=_0x3a55d7;db[_0xc6675f('0xcf')][_0xc6675f('0x61')](_0x347bba[_0xc6675f('0xbc')](),_0x22bd31)['then'](function(_0xc6ae78){const _0xf69e93=_0xc6675f;_0x550e63[_0xf69e93('0x6a')]=_0xc6ae78[_0xf69e93('0x9e')];if(_0x550e63[_0xf69e93('0x6a')]===0x0)return[];return db[_0xf69e93('0xcf')][_0xf69e93('0x61')](_0x17f7fb[_0xf69e93('0xbc')](),_0x22bd31);})[_0xc6675f('0xab')](function(_0x20dd0f){const _0x38774d=_0xc6675f;_0x4f4781=_[_0x38774d('0xa4')](_0x20dd0f,'id'),_0x22bd31=_[_0x38774d('0xc0')](_0x22bd31,{'model':db[_0x38774d('0xd6')],'mapToModel':!![],'raw':!![],'nest':!![]});_0x4156eb[_0x38774d('0x61')]['fields']?_0x3e6dfe[_0x38774d('0x2')][_0x38774d('0xb1')](function(_0x577ce7){const _0x27075b=_0x38774d;_0x5eb4c9[_0x27075b('0x3d')]('c.'+_0x577ce7);}):(_0x5eb4c9[_0x38774d('0x3d')](_0x38774d('0x24')),_0x5eb4c9[_0x38774d('0x3d')]('c.firstName'),_0x5eb4c9[_0x38774d('0x3d')](_0x38774d('0x96')),_0x5eb4c9[_0x38774d('0x3d')](_0x38774d('0x4e')),_0x5eb4c9[_0x38774d('0x3d')](_0x38774d('0xb8')),_0x5eb4c9[_0x38774d('0x3d')](_0x38774d('0x85')),_0x5eb4c9['field'](_0x38774d('0x2c')),_0x5eb4c9[_0x38774d('0x3d')]('c.ListId'),_0x5eb4c9[_0x38774d('0x3d')](_0x38774d('0x4')),_0x5eb4c9['field'](_0x38774d('0x33'),'TagIds'));if(_0x3e6dfe[_0x38774d('0x36')])_0x5eb4c9[_0x38774d('0x36')](_0x3e6dfe[_0x38774d('0x36')]);if(_0x3e6dfe[_0x38774d('0xb7')])_0x5eb4c9['offset'](_0x3e6dfe[_0x38774d('0xb7')]);return db['sequelize'][_0x38774d('0x61')](_0x5eb4c9[_0x38774d('0xbc')](),_0x22bd31);})[_0xc6675f('0xab')](function(_0x439aec){const _0x45d47c=_0xc6675f;return _0x439aec[_0x45d47c('0xb1')](function(_0x2c5775){const _0x26f398=_0x45d47c;_0x2c5775[_0x26f398('0x25')]&&(_0x2c5775[_0x26f398('0x9c')]=[],_0x2c5775[_0x26f398('0x25')][_0x26f398('0xb4')](',')[_0x26f398('0xb1')](function(_0x27b526){const _0x4a9c91=_0x26f398;_0x2c5775[_0x4a9c91('0x9c')][_0x4a9c91('0x7c')](_0x4f4781[_0x27b526]);})),delete _0x2c5775[_0x26f398('0x25')];}),_0x550e63[_0x45d47c('0xaf')]=_0x439aec,_0x550e63;})[_0xc6675f('0xab')](respondWithFilteredResult(_0x2f18e8,_0x3e6dfe));});})[_0x5b5c94('0x2a')](handleError(_0x2f18e8,null));},exports[_0x1ea927('0x53')]=function(_0x5a5ba9,_0x5e7ee4){const _0x402a75=_0x1ea927;return db[_0x402a75('0xd6')][_0x402a75('0x3c')]({'where':{'id':_0x5a5ba9[_0x402a75('0x39')]['id']}})[_0x402a75('0xab')](handleEntityNotFound(_0x5e7ee4,null))['then'](removeEntity(_0x5e7ee4,null))['catch'](handleError(_0x5e7ee4,null));},exports['describe']=function(_0x3b6861,_0x491d6f){const _0x2eb94b=_0x1ea927;return db[_0x2eb94b('0xd6')]['describe']()['then'](function(_0x39b7a2){const _0x59b0c4=_0x2eb94b;delete _0x39b7a2[_0x59b0c4('0x90')];for(let _0x10d0f0=0x0;_0x10d0f0{const _0x37b766=_0x97dded,_0x3860f6={'where':{[Op['or']]:[]},'defaults':_0x1863ba,'fields':_[_0x37b766('0x76')](_0x176f98),'raw':!![]};if(_0x1863ba[_0x37b766('0xd')]){for(let _0x40b356=0x0;_0x40b356<_0x1863ba[_0x37b766('0xd')][_0x37b766('0x9e')];_0x40b356++){const _0x140ad0={};_0x140ad0[_0x1863ba[_0x37b766('0xd')][_0x40b356]]=_0x1863ba[_0x1863ba['duplicates'][_0x40b356]],_0x3860f6[_0x37b766('0x37')][Op['or']][_0x37b766('0x7c')](_0x140ad0);}_0x3860f6[_0x37b766('0x37')][_0x37b766('0x2b')]=_0x1863ba[_0x37b766('0x2b')];}return db[_0x37b766('0xd6')][_0x37b766('0x31')](_0x3860f6)[_0x37b766('0xab')](function([,_0x44df90]){_0x44df90?_0x383b4f++:_0x359f55++;})[_0x37b766('0x2a')](function(_0x4f4ae9){console['error'](_0x4f4ae9),_0x340287++;});}));})[_0x3dafa5('0xab')](function(_0x165ce6){if(_0x165ce6)return{'success':_0x383b4f,'failure':_0x340287,'duplicates':_0x359f55};})[_0x3dafa5('0xab')](respondWithResult(_0x4e8586,0xc9))[_0x3dafa5('0x2a')](handleError(_0x4e8586,null));},exports['show']=function(_0x2e8d58,_0x1557ec){const _0x483897=_0x1ea927;let _0x58aa95;return db[_0x483897('0xd6')]['describe']()[_0x483897('0xab')](function(_0x168bbd){const _0x5c3884=_0x483897;return db['CmContact'][_0x5c3884('0x3c')]({'where':{'id':_0x2e8d58[_0x5c3884('0x39')]['id']},'include':[{'model':db[_0x5c3884('0xca')],'as':_0x5c3884('0x9c'),'attributes':['id','name',_0x5c3884('0x21')],'required':_0x2e8d58[_0x5c3884('0x61')][_0x5c3884('0x8d')]?!![]:![]}],'attributes':_['keys'](_0x168bbd)});})[_0x483897('0xab')](function(_0x2d68cd){const _0x587fcc=_0x483897;_0x58aa95=_0x2d68cd['get']({'plain':!![]});const _0x199508={'where':{[Op[_0x587fcc('0x6c')]]:[{'ListId':{[Op['ne']]:null}}]}};return _0x2d68cd&&_0x2d68cd[_0x587fcc('0x2b')]&&(_0x2d68cd[_0x587fcc('0x2b')]&&_0x199508[_0x587fcc('0x37')][Op['and']][_0x587fcc('0x7c')]({'ListId':{[Op['ne']]:_0x2d68cd[_0x587fcc('0x2b')]}})),db[_0x587fcc('0xd7')][_0x587fcc('0x40')](_0x199508);})[_0x483897('0xab')](function(_0x3a4228){const _0xe73936=_0x483897;return _[_0xe73936('0x9d')](_0x58aa95,_[_0xe73936('0x88')](_0x3a4228,function(_0x269c72){const _0x42536d=_0xe73936;return util[_0x42536d('0x7f')](_0x42536d('0xba'),_0x269c72['id']);}));})[_0x483897('0xab')](handleEntityNotFound(_0x1557ec,null))[_0x483897('0xab')](respondWithResult(_0x1557ec,null))[_0x483897('0x2a')](handleError(_0x1557ec,null));},exports[_0x1ea927('0x41')]=function(_0x567355,_0x14fb5a){const _0x5ee4fe=_0x1ea927;let _0x5309f9;return _0x567355['body']['id']&&delete _0x567355['body']['id'],db[_0x5ee4fe('0xd6')][_0x5ee4fe('0x3c')]({'where':{'id':_0x567355['params']['id']}})[_0x5ee4fe('0xab')](handleEntityNotFound(_0x14fb5a,null))[_0x5ee4fe('0xab')](saveUpdates(_0x567355['body'],null))[_0x5ee4fe('0xab')](function(_0x1f66d0){const _0xa91ef4=_0x5ee4fe;_0x5309f9=_0x1f66d0;const _0x3f99f6={'where':{[Op[_0xa91ef4('0x6c')]]:[{'ListId':{[Op['ne']]:null}}]}};return _0x1f66d0&&_0x1f66d0['ListId']&&(_0x1f66d0[_0xa91ef4('0x2b')]&&_0x3f99f6[_0xa91ef4('0x37')][Op[_0xa91ef4('0x6c')]][_0xa91ef4('0x7c')]({'ListId':{[Op['ne']]:_0x1f66d0[_0xa91ef4('0x2b')]}})),db['CmCustomField'][_0xa91ef4('0x40')](_0x3f99f6);})[_0x5ee4fe('0xab')](function(_0x3d75c7){const _0x48ac5f=_0x5ee4fe;if(_0x3d75c7)return _[_0x48ac5f('0x9d')](_[_0x48ac5f('0x80')](_0x567355[_0x48ac5f('0xa3')],function(_0x5f067b,_0x3afc42){const _0x272629=_0x48ac5f;return _[_0x272629('0x82')](_0x3afc42,_0x272629('0x87'));}),_[_0x48ac5f('0x88')](_0x3d75c7,function(_0x126933){const _0x5a4f2e=_0x48ac5f;return util[_0x5a4f2e('0x7f')](_0x5a4f2e('0xba'),_0x126933['id']);}));})['then'](function(_0x514820){const _0xfaaa6c=_0x5ee4fe;if(_0x514820&&!_[_0xfaaa6c('0x9')](_0x514820)){const _0x250a81=squel[_0xfaaa6c('0x41')]()[_0xfaaa6c('0x73')](_0xfaaa6c('0x14'))[_0xfaaa6c('0xad')](_0x514820)[_0xfaaa6c('0x37')](_0xfaaa6c('0x50'),_0x567355[_0xfaaa6c('0x39')]['id'])[_0xfaaa6c('0x5b')]();return db[_0xfaaa6c('0xcf')][_0xfaaa6c('0x61')](_0x250a81[_0xfaaa6c('0x20')],{'replacements':_0x250a81['values']});}})[_0x5ee4fe('0xab')](function(){const _0x514d4b=_0x5ee4fe;if(_0x567355[_0x514d4b('0xa3')]['phone']&&_0x5309f9)return db[_0x514d4b('0xc8')][_0x514d4b('0x41')]({'phone':_0x567355['body'][_0x514d4b('0x68')]},{'where':{'ContactId':_0x5309f9['id']}});})[_0x5ee4fe('0xab')](function(){return _0x5309f9;})['then'](respondWithResult(_0x14fb5a,null))['catch'](handleError(_0x14fb5a,null));},exports[_0x1ea927('0xbe')]=function(_0x2e3e17,_0x26c5d1){const _0x131480=_0x1ea927;let _0x177b1d={};const _0x1c3895={};let _0x384ee8,_0x36d46a;return db[_0x131480('0xd6')][_0x131480('0x3c')]({'where':{'id':_0x2e3e17['params']['id']}})[_0x131480('0xab')](handleEntityNotFound(_0x26c5d1,null))[_0x131480('0xab')](function(_0x26cf14){const _0x131770=_0x131480;if(_0x26cf14)return _0x384ee8=_0x26cf14,_0x1c3895[_0x131770('0xd2')]=_[_0x131770('0x76')](db['Tag'][_0x131770('0x3e')]),_0x1c3895[_0x131770('0x61')]=_[_0x131770('0x76')](_0x2e3e17[_0x131770('0x61')]),_0x1c3895[_0x131770('0x1a')]=_[_0x131770('0x5d')](_0x1c3895[_0x131770('0xd2')],_0x1c3895[_0x131770('0x61')]),_0x177b1d['attributes']=_['intersection'](_0x1c3895['model'],qs['fields'](_0x2e3e17[_0x131770('0x61')][_0x131770('0xa9')])),_0x177b1d[_0x131770('0x2')]=_0x177b1d['attributes']['length']?_0x177b1d[_0x131770('0x2')]:_0x1c3895['model'],_0x177b1d[_0x131770('0xc7')]=qs['sort'](_0x2e3e17[_0x131770('0x61')]['sort']),_0x177b1d[_0x131770('0x37')]=qs[_0x131770('0x1a')](_[_0x131770('0x9a')](_0x2e3e17['query'],_0x1c3895['filters'])),_0x2e3e17[_0x131770('0x61')][_0x131770('0xc5')]&&(_0x177b1d['where']=_['merge'](_0x177b1d[_0x131770('0x37')],{[Op['or']]:_[_0x131770('0x88')](_0x177b1d[_0x131770('0x2')],function(_0x4ebc7a){const _0xc08957=_0x131770,_0x53c2d3={};return _0x53c2d3[_0x4ebc7a]={[Op['like']]:'%'+_0x2e3e17[_0xc08957('0x61')][_0xc08957('0xc5')]+'%'},_0x53c2d3;})})),_0x177b1d=_[_0x131770('0xc0')]({},_0x177b1d,_0x2e3e17[_0x131770('0x5c')]),_0x384ee8[_0x131770('0xbe')](_0x177b1d);})['then'](function(_0x54d8d1){const _0x16edf7=_0x131480;if(_0x54d8d1)return _0x36d46a=_0x54d8d1['length'],typeof _0x2e3e17['query']['nolimit']===_0x16edf7('0x44')&&(_0x177b1d[_0x16edf7('0x36')]=qs[_0x16edf7('0x36')](_0x2e3e17[_0x16edf7('0x61')][_0x16edf7('0x36')]),_0x177b1d[_0x16edf7('0xb7')]=qs[_0x16edf7('0xb7')](_0x2e3e17['query'][_0x16edf7('0xb7')])),_0x384ee8['getTags'](_0x177b1d);})[_0x131480('0xab')](function(_0xe3e583){if(_0xe3e583)return _0xe3e583?{'count':_0x36d46a,'rows':_0xe3e583}:null;})['then'](respondWithResult(_0x26c5d1,null))[_0x131480('0x2a')](handleError(_0x26c5d1,null));},exports[_0x1ea927('0x93')]=function(_0x1601c4,_0x133d6d){const _0x141557=_0x1ea927;return _0x1601c4['body']['id']&&delete _0x1601c4[_0x141557('0xa3')]['id'],db[_0x141557('0xd6')][_0x141557('0x3c')]({'where':{'id':_0x1601c4[_0x141557('0x39')]['id']}})[_0x141557('0xab')](handleEntityNotFound(_0x133d6d,null))[_0x141557('0xab')](function(_0x594662){const _0x2357fa=_0x141557;if(_0x594662)return _0x594662[_0x2357fa('0x93')](_0x1601c4['body'][_0x2357fa('0x86')]||[]);return null;})[_0x141557('0xab')](respondWithResult(_0x133d6d,null))[_0x141557('0x2a')](handleError(_0x133d6d,null));},exports[_0x1ea927('0x92')]=function(_0x32a293,_0x1ddba1){const _0x52a40e=_0x1ea927;let _0x4ce9f0={'raw':![],'where':{}};const _0x2d89d5={},_0x19ffc2={'count':0x0,'rows':[]};return db['CmContact'][_0x52a40e('0x3c')]({'where':{'id':_0x32a293[_0x52a40e('0x39')]['id']}})['then'](handleEntityNotFound(_0x1ddba1,null))['then'](function(_0x59991a){const _0x273438=_0x52a40e;if(_0x59991a)return _0x2d89d5[_0x273438('0xd2')]=_[_0x273438('0x76')](db['CmHopper'][_0x273438('0x3e')]),_0x2d89d5['query']=_['keys'](_0x32a293[_0x273438('0x61')]),_0x2d89d5[_0x273438('0x1a')]=_[_0x273438('0x5d')](_0x2d89d5[_0x273438('0xd2')],_0x2d89d5[_0x273438('0x61')]),_0x4ce9f0['attributes']=_[_0x273438('0x5d')](_0x2d89d5[_0x273438('0xd2')],qs['fields'](_0x32a293['query'][_0x273438('0xa9')])),_0x4ce9f0[_0x273438('0x2')]=_0x4ce9f0[_0x273438('0x2')][_0x273438('0x9e')]?_0x4ce9f0['attributes']:_0x2d89d5['model'],typeof _0x32a293[_0x273438('0x61')][_0x273438('0xd0')]===_0x273438('0x44')&&(_0x4ce9f0['limit']=qs['limit'](_0x32a293[_0x273438('0x61')]['limit']),_0x4ce9f0[_0x273438('0xb7')]=qs[_0x273438('0xb7')](_0x32a293['query']['offset'])),_0x4ce9f0[_0x273438('0xc7')]=qs[_0x273438('0x5')](_0x32a293[_0x273438('0x61')][_0x273438('0x5')]),_0x4ce9f0['where']=qs['filters'](_[_0x273438('0x9a')](_0x32a293[_0x273438('0x61')],_0x2d89d5[_0x273438('0x1a')])),_0x4ce9f0[_0x273438('0x37')][_0x273438('0x8')]=_0x59991a['id'],_0x32a293[_0x273438('0x61')][_0x273438('0xc5')]&&(_0x4ce9f0[_0x273438('0x37')]=_[_0x273438('0xc0')](_0x4ce9f0[_0x273438('0x37')],{[Op['or']]:_['map'](_0x4ce9f0[_0x273438('0x2')],function(_0x5e1b8e){const _0x55705c=_0x273438,_0xcd3e9a={};return _0xcd3e9a[_0x5e1b8e]={[Op[_0x55705c('0x22')]]:'%'+_0x32a293[_0x55705c('0x61')][_0x55705c('0xc5')]+'%'},_0xcd3e9a;})})),_0x4ce9f0=_[_0x273438('0xc0')]({},_0x4ce9f0,_0x32a293[_0x273438('0x5c')]),db['CmHopper'][_0x273438('0x6a')]({'where':_0x4ce9f0['where']})[_0x273438('0xab')](function(_0x41af3b){const _0x192ea1=_0x273438;return _0x19ffc2['count']=_0x41af3b,_0x32a293['query']['includeAll']&&(_0x4ce9f0[_0x192ea1('0xbb')]=[{'all':!![]}]),db[_0x192ea1('0xc8')][_0x192ea1('0x40')](_0x4ce9f0);})[_0x273438('0xab')](function(_0x536fec){const _0x53ed78=_0x273438;return _0x19ffc2[_0x53ed78('0xaf')]=_0x536fec,_0x19ffc2;});})[_0x52a40e('0xab')](respondWithFilteredResult(_0x1ddba1,_0x4ce9f0))['catch'](handleError(_0x1ddba1,null));},exports[_0x1ea927('0x1f')]=function(_0x2a0448,_0x2897c0){const _0x2a1210=_0x1ea927;let _0x1616e7={'raw':!![],'where':{}};const _0x5a3aa1={},_0x4f903c={'count':0x0,'rows':[]};return db[_0x2a1210('0xd6')][_0x2a1210('0x3c')]({'where':{'id':_0x2a0448[_0x2a1210('0x39')]['id']}})[_0x2a1210('0xab')](handleEntityNotFound(_0x2897c0,null))[_0x2a1210('0xab')](function(_0x2f255a){const _0x1d55d0=_0x2a1210;if(_0x2f255a)return _0x5a3aa1[_0x1d55d0('0xd2')]=_['keys'](db[_0x1d55d0('0x94')]['rawAttributes']),_0x5a3aa1[_0x1d55d0('0x61')]=_[_0x1d55d0('0x76')](_0x2a0448['query']),_0x5a3aa1[_0x1d55d0('0x1a')]=_[_0x1d55d0('0x5d')](_0x5a3aa1['model'],_0x5a3aa1[_0x1d55d0('0x61')]),_0x1616e7['attributes']=_[_0x1d55d0('0x5d')](_0x5a3aa1[_0x1d55d0('0xd2')],qs[_0x1d55d0('0xa9')](_0x2a0448[_0x1d55d0('0x61')]['fields'])),_0x1616e7[_0x1d55d0('0x2')]=_0x1616e7[_0x1d55d0('0x2')][_0x1d55d0('0x9e')]?_0x1616e7[_0x1d55d0('0x2')]:_0x5a3aa1[_0x1d55d0('0xd2')],typeof _0x2a0448[_0x1d55d0('0x61')][_0x1d55d0('0xd0')]===_0x1d55d0('0x44')&&(_0x1616e7['limit']=qs[_0x1d55d0('0x36')](_0x2a0448[_0x1d55d0('0x61')][_0x1d55d0('0x36')]),_0x1616e7[_0x1d55d0('0xb7')]=qs[_0x1d55d0('0xb7')](_0x2a0448[_0x1d55d0('0x61')][_0x1d55d0('0xb7')])),_0x1616e7[_0x1d55d0('0xc7')]=qs[_0x1d55d0('0x5')](_0x2a0448['query'][_0x1d55d0('0x5')]),_0x1616e7[_0x1d55d0('0x37')]=qs[_0x1d55d0('0x1a')](_[_0x1d55d0('0x9a')](_0x2a0448[_0x1d55d0('0x61')],_0x5a3aa1[_0x1d55d0('0x1a')])),_0x1616e7[_0x1d55d0('0x37')][_0x1d55d0('0x8')]=_0x2f255a['id'],_0x2a0448['query']['filter']&&(_0x1616e7[_0x1d55d0('0x37')]=_[_0x1d55d0('0xc0')](_0x1616e7[_0x1d55d0('0x37')],{[Op['or']]:_['map'](_0x1616e7[_0x1d55d0('0x2')],function(_0x4eb083){const _0x5a682f=_0x1d55d0,_0xfee3d8={};return _0xfee3d8[_0x4eb083]={[Op[_0x5a682f('0x22')]]:'%'+_0x2a0448[_0x5a682f('0x61')][_0x5a682f('0xc5')]+'%'},_0xfee3d8;})})),_0x1616e7=_[_0x1d55d0('0xc0')]({},_0x1616e7,_0x2a0448[_0x1d55d0('0x5c')]),db['CmHopperHistory'][_0x1d55d0('0x6a')]({'where':_0x1616e7[_0x1d55d0('0x37')]})[_0x1d55d0('0xab')](function(_0x22672b){const _0x48c7a6=_0x1d55d0;return _0x4f903c['count']=_0x22672b,_0x2a0448[_0x48c7a6('0x61')][_0x48c7a6('0x51')]&&(_0x1616e7[_0x48c7a6('0xbb')]=[{'all':!![]}]),db['CmHopperHistory']['findAll'](_0x1616e7);})['then'](function(_0xb7e8e6){const _0x1c4fc2=_0x1d55d0;return _0x4f903c[_0x1c4fc2('0xaf')]=_0xb7e8e6,_0x4f903c;});})[_0x2a1210('0xab')](respondWithFilteredResult(_0x2897c0,_0x1616e7))[_0x2a1210('0x2a')](handleError(_0x2897c0,null));},exports[_0x1ea927('0xb2')]=function(_0x3b6bea,_0x25fda8){const _0x16780a=_0x1ea927;let _0x563ca4={'raw':!![],'where':{}};const _0x36472c={},_0x4214f4={'count':0x0,'rows':[]};return db[_0x16780a('0xd6')][_0x16780a('0x3c')]({'where':{'id':_0x3b6bea[_0x16780a('0x39')]['id']}})['then'](handleEntityNotFound(_0x25fda8,null))[_0x16780a('0xab')](function(_0x159f0a){const _0x37815f=_0x16780a;if(_0x159f0a)return _0x36472c[_0x37815f('0xd2')]=_[_0x37815f('0x76')](db[_0x37815f('0xb')][_0x37815f('0x3e')]),_0x36472c[_0x37815f('0x61')]=_[_0x37815f('0x76')](_0x3b6bea['query']),_0x36472c['filters']=_[_0x37815f('0x5d')](_0x36472c[_0x37815f('0xd2')],_0x36472c[_0x37815f('0x61')]),_0x563ca4[_0x37815f('0x2')]=_[_0x37815f('0x5d')](_0x36472c['model'],qs[_0x37815f('0xa9')](_0x3b6bea[_0x37815f('0x61')][_0x37815f('0xa9')])),_0x563ca4['attributes']=_0x563ca4[_0x37815f('0x2')]['length']?_0x563ca4[_0x37815f('0x2')]:_0x36472c[_0x37815f('0xd2')],typeof _0x3b6bea[_0x37815f('0x61')]['nolimit']===_0x37815f('0x44')&&(_0x563ca4[_0x37815f('0x36')]=qs['limit'](_0x3b6bea[_0x37815f('0x61')]['limit']),_0x563ca4['offset']=qs['offset'](_0x3b6bea[_0x37815f('0x61')][_0x37815f('0xb7')])),_0x563ca4[_0x37815f('0xc7')]=qs[_0x37815f('0x5')](_0x3b6bea[_0x37815f('0x61')][_0x37815f('0x5')]),_0x563ca4[_0x37815f('0x37')]=qs['filters'](_['pick'](_0x3b6bea[_0x37815f('0x61')],_0x36472c['filters'])),_0x563ca4['where'][_0x37815f('0x8')]=_0x159f0a['id'],_0x3b6bea[_0x37815f('0x61')]['filter']&&(_0x563ca4[_0x37815f('0x37')]=_[_0x37815f('0xc0')](_0x563ca4[_0x37815f('0x37')],{[Op['or']]:_[_0x37815f('0x88')](_0x563ca4[_0x37815f('0x2')],function(_0x71e0ea){const _0x46e1a7=_0x37815f,_0x1a503a={};return _0x1a503a[_0x71e0ea]={[Op['like']]:'%'+_0x3b6bea['query'][_0x46e1a7('0xc5')]+'%'},_0x1a503a;})})),_0x563ca4=_[_0x37815f('0xc0')]({},_0x563ca4,_0x3b6bea[_0x37815f('0x5c')]),db['CmHopperFinal']['count']({'where':_0x563ca4[_0x37815f('0x37')]})['then'](function(_0x575f0b){const _0x17af55=_0x37815f;return _0x4214f4['count']=_0x575f0b,_0x3b6bea[_0x17af55('0x61')][_0x17af55('0x51')]&&(_0x563ca4['include']=[{'all':!![]}]),db[_0x17af55('0xb')][_0x17af55('0x40')](_0x563ca4);})['then'](function(_0xa6de81){const _0x315950=_0x37815f;return _0x4214f4[_0x315950('0xaf')]=_0xa6de81,_0x4214f4;});})[_0x16780a('0xab')](respondWithFilteredResult(_0x25fda8,_0x563ca4))[_0x16780a('0x2a')](handleError(_0x25fda8,null));},exports[_0x1ea927('0x34')]=function(_0x1d9f3b,_0x57566d){const _0x37ba0b=_0x1ea927;let _0x257e19={'raw':!![],'where':{}};const _0x4da89b={},_0x52da3d={'count':0x0,'rows':[]};return db[_0x37ba0b('0xd6')][_0x37ba0b('0x3c')]({'where':{'id':_0x1d9f3b[_0x37ba0b('0x39')]['id']}})[_0x37ba0b('0xab')](handleEntityNotFound(_0x57566d,null))[_0x37ba0b('0xab')](function(_0x38287f){const _0x58ff0d=_0x37ba0b;if(_0x38287f)return _0x4da89b[_0x58ff0d('0xd2')]=_['keys'](db[_0x58ff0d('0xa2')][_0x58ff0d('0x3e')]),_0x4da89b[_0x58ff0d('0x61')]=_[_0x58ff0d('0x76')](_0x1d9f3b[_0x58ff0d('0x61')]),_0x4da89b[_0x58ff0d('0x1a')]=_[_0x58ff0d('0x5d')](_0x4da89b['model'],_0x4da89b[_0x58ff0d('0x61')]),_0x257e19[_0x58ff0d('0x2')]=_[_0x58ff0d('0x5d')](_0x4da89b['model'],qs[_0x58ff0d('0xa9')](_0x1d9f3b[_0x58ff0d('0x61')][_0x58ff0d('0xa9')])),_0x257e19[_0x58ff0d('0x2')]=_0x257e19[_0x58ff0d('0x2')][_0x58ff0d('0x9e')]?_0x257e19[_0x58ff0d('0x2')]:_0x4da89b[_0x58ff0d('0xd2')],typeof _0x1d9f3b[_0x58ff0d('0x61')]['nolimit']===_0x58ff0d('0x44')&&(_0x257e19['limit']=qs[_0x58ff0d('0x36')](_0x1d9f3b['query'][_0x58ff0d('0x36')]),_0x257e19[_0x58ff0d('0xb7')]=qs[_0x58ff0d('0xb7')](_0x1d9f3b[_0x58ff0d('0x61')]['offset'])),_0x257e19[_0x58ff0d('0xc7')]=qs['sort'](_0x1d9f3b[_0x58ff0d('0x61')][_0x58ff0d('0x5')]),_0x257e19[_0x58ff0d('0x37')]=qs[_0x58ff0d('0x1a')](_[_0x58ff0d('0x9a')](_0x1d9f3b[_0x58ff0d('0x61')],_0x4da89b[_0x58ff0d('0x1a')])),_0x257e19[_0x58ff0d('0x37')][_0x58ff0d('0x8')]=_0x38287f['id'],_0x1d9f3b['query'][_0x58ff0d('0xc5')]&&(_0x257e19['where']=_[_0x58ff0d('0xc0')](_0x257e19[_0x58ff0d('0x37')],{[Op['or']]:_[_0x58ff0d('0x88')](_0x257e19[_0x58ff0d('0x2')],function(_0x580d0f){const _0x4b2c52=_0x58ff0d,_0x21c92={};return _0x21c92[_0x580d0f]={[Op[_0x4b2c52('0x22')]]:'%'+_0x1d9f3b[_0x4b2c52('0x61')][_0x4b2c52('0xc5')]+'%'},_0x21c92;})})),_0x257e19=_[_0x58ff0d('0xc0')]({},_0x257e19,_0x1d9f3b[_0x58ff0d('0x5c')]),db[_0x58ff0d('0xa2')][_0x58ff0d('0x6a')]({'where':_0x257e19[_0x58ff0d('0x37')]})[_0x58ff0d('0xab')](function(_0x38efd8){const _0x3bf2ca=_0x58ff0d;return _0x52da3d[_0x3bf2ca('0x6a')]=_0x38efd8,_0x1d9f3b[_0x3bf2ca('0x61')][_0x3bf2ca('0x51')]&&(_0x257e19[_0x3bf2ca('0xbb')]=[{'all':!![]}]),db[_0x3bf2ca('0xa2')][_0x3bf2ca('0x40')](_0x257e19);})['then'](function(_0x5d6113){const _0x4499c5=_0x58ff0d;return _0x52da3d[_0x4499c5('0xaf')]=_0x5d6113,_0x52da3d;});})[_0x37ba0b('0xab')](respondWithFilteredResult(_0x57566d,_0x257e19))[_0x37ba0b('0x2a')](handleError(_0x57566d,null));},exports['upload']=function(_0x291ec0,_0xab5c04){const _0x228a5e=_0x1ea927,_0x42711b=fs['createReadStream'](_0x291ec0[_0x228a5e('0x97')][_0x228a5e('0x55')]);Papa[_0x228a5e('0xd5')](_0x42711b,{'header':!![],'skipEmptyLines':!![],'preview':0x1,'complete':function(_0x4f0173){const _0x4b6798=_0x228a5e;return _0xab5c04[_0x4b6798('0xcc')](0xc8)['json']({'file':_0x291ec0[_0x4b6798('0x97')],'fields':_0x4f0173['meta']['fields']});}});},exports[_0x1ea927('0x8f')]=function(_0x1c2970,_0x52c5d2){const _0x2099de=_0x1ea927;return db['User'][_0x2099de('0x40')]({'raw':!![],'attributes':['id'],'where':{'role':'agent'}})[_0x2099de('0xab')](function(_0x2d3a8f){const _0x2d8420=_0x2099de;let _0x23883f=![];if(!_0x1c2970[_0x2d8420('0xa3')][_0x2d8420('0x2b')])throw new Error('No\x20ListId\x20specified');if(!_0x1c2970[_0x2d8420('0xa3')][_0x2d8420('0x99')][_0x2d8420('0x68')])throw new Error(_0x2d8420('0x28'));if(!_0x1c2970[_0x2d8420('0xa3')]['binding'][_0x2d8420('0x77')])throw new Error(_0x2d8420('0x52'));if(!_0x1c2970[_0x2d8420('0xa3')][_0x2d8420('0xd4')])throw new Error('Unable\x20to\x20synchronize\x20socket,\x20no\x20timestamp\x20passed');const _0x375d82=path[_0x2d8420('0x4d')](config[_0x2d8420('0xcd')],'files/tmp',_0x1c2970[_0x2d8420('0x39')]['id']),_0x27337c=JSON[_0x2d8420('0x60')](_0x1c2970['body']),_0x460380=JSON[_0x2d8420('0x60')](_0x2d3a8f);logger[_0x2d8420('0x6f')](_0x2d8420('0x6')+CSV2_SCRIPT+_0x2d8420('0x43')+_0x375d82+'\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20with\x20parameters\x20=\x20'+_0x27337c+_0x2d8420('0x7')+_0x460380);const _0x2a2cdb=fork(CSV2_SCRIPT,[_0x375d82,_0x27337c,_0x460380],{'stdio':_0x2d8420('0x89')});_0x2a2cdb['on'](_0x2d8420('0x7b'),()=>{const _0x3f599f=_0x2d8420;return _0x23883f=!![],_0x52c5d2[_0x3f599f('0xcc')](0xc8)[_0x3f599f('0x30')]({'message':_0x3f599f('0xc3'),'pid':_0x2a2cdb['pid']});}),_0x2a2cdb['on'](_0x2d8420('0x48'),_0x2c5551=>{const _0x5dca8c=_0x2d8420;logger[_0x5dca8c('0x48')](_0x5dca8c('0x83')+CSV2_SCRIPT+_0x5dca8c('0x81')+_0x2c5551['message']+'\x20'+_0x2c5551[_0x5dca8c('0x2e')]);}),_0x2a2cdb[_0x2d8420('0x65')]&&_0x2a2cdb[_0x2d8420('0x1')]?(_0x2a2cdb[_0x2d8420('0x3')]['on'](_0x2d8420('0x75'),_0x171d49=>{const _0x46c9a9=_0x2d8420;logger[_0x46c9a9('0x6f')](_0x46c9a9('0x42')+_0x171d49);}),_0x2a2cdb[_0x2d8420('0x1')]['on'](_0x2d8420('0x75'),_0x1292e6=>{const _0x15389c=_0x2d8420;logger['error'](_0x15389c('0xd3')+_0x1292e6);})):logger[_0x2d8420('0x6f')](_0x2d8420('0xb0')),_0x2a2cdb['on']('exit',_0x1210f9=>{const _0x378fba=_0x2d8420;if(_0x1210f9&&!_0x23883f)return _0x52c5d2[_0x378fba('0xcc')](0x1f4)[_0x378fba('0x30')]({'message':'error\x20child\x20process','pid':_0x2a2cdb[_0x378fba('0xa6')]});});})['catch'](handleError(_0x52c5d2,null));}; \ No newline at end of file +const a151_0x3d2b=['TagIds','c.deletedAt','startsWith','cf_','catch','omit','squel','order','DESC','findOne','all','toParam','keys','createReadStream','isArray','destroy','split','filters','name','get','child\x20stdout:\x0a','stdin','uc.UserId\x20=\x20?','MailInteraction','getFullTextValue','id\x20=\x20?','\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20with\x20parameters\x20=\x20','select','query','info','c.lastName\x20LIKE\x20?','pick','data','t.id\x20=\x20ct.TagId','sqlOperator','fields','child_process','offset','getJscriptySessions','datetime','SELECT','push','ct.CmContactId\x20=\x20c.id','parseSearch','start\x20child\x20process\x20correctly!','[CmContact][merge][destroy][CmHopper],\x20%s','and','keyBy','Calling\x20','concat','format','c.deletedAt\x20IS\x20NULL','cm_user_has_contacts','isEmail','describe','send','OpenchannelMessage','Tags','map','filter','CONCAT(\x27,\x27,\x20`TagIds`,\x20\x27,\x27)\x20LIKE\x20?','\x20process:\x20error\x20','error','MailMessage','../../config/environment','undefined','show','then','set','c.email','having','binding','meta','../../components/parsers/qs','DATE','pid','status','ChatOfflineMessage','table','User','c.email\x20LIKE\x20?','getHopperFinals','CmHopperHistory','CmCustomField','CmHopper','includeAll','params','like','child\x20stderr:\x0a','where','findOrCreate','field','left_join','Unable\x20to\x20synchronize\x20socket,\x20no\x20timestamp\x20passed','\x20on\x20file\x20','c.fax\x20LIKE\x20?','c.id','parse','sort','isNumeric','columnName','OpenchannelQueueReport','expr','Contact','cf_%d','CmContact','getHoppers','findAll','toString','model','Content-Range','intersection','[CmContact][merge][destroy][CmHopperBlack],\x20%s','type','Missing\x20stdin\x20and\x20stdout\x20on\x20child\x20process','fieldType','options','Tag','[CmContact][merge]\x20to\x20%s\x20from\x20%s','update','OpenchannelInteraction','./cmContact.socket','from','GROUP_CONCAT(DISTINCT\x20t.id)','ChatQueueReport','SmsQueueReport','getLists','files/tmp','forEach','agent','mergeWith','pipe','isEmpty','t.id\x20IN\x20?','ids','include','tags','register','No\x20phone\x20column\x20specified','dateOfBirth','rows','c.fax','union','conditions','../../components/parsers/advancedSearch','\x20=\x20?','api','json','No\x20ListId\x20specified','isNil','count','file','ListId','firstName','rawAttributes','trimStart','tools_tags','SmsMessage','phone','stringify','length','error\x20child\x20process','limit','ChatInteraction','socket_timestamp','body','value','setFields','replace','ReportAgentPreview','util','CmHopperBlack','sequelize','stderr','group','start','getTags','c.ListId\x20IS\x20NULL','end','message','path','import','join','c.firstName\x20LIKE\x20?','Failed\x20to\x20start\x20','CmHopperFinal','castTo','c.ListId','c.lastName','create','search','buildExpression','CONCAT_WS(\x27\x20\x27,\x20c.firstName,\x20c.lastName,\x20c.email)\x20LIKE\x20?','c.phone\x20LIKE\x20?','values','attributes','\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20and\x20agents\x20=\x20','setTags','alias','papaparse','ChatMessage','text','c.mobile','c.mobile\x20LIKE\x20?','VoiceCallReport','No\x20firstName\x20column\x20specified','JscriptySessionReport','displayName','bulkCreate','ContactId','uc.CmContactId\x20=\x20c.id','cm_contacts','index','../../mysqldb','sendStatus','duplicates','tag','nolimit','c.phone','merge','getHopperHistories'];(function(_0x49211b,_0x27176e){const _0x3d2be8=function(_0x1c6403){while(--_0x1c6403){_0x49211b['push'](_0x49211b['shift']());}};_0x3d2be8(++_0x27176e);}(a151_0x3d2b,0x1e5));const a151_0x1c64=function(_0x49211b,_0x27176e){_0x49211b=_0x49211b-0x16e;let _0x3d2be8=a151_0x3d2b[_0x49211b];return _0x3d2be8;};const a151_0x4b61b8=a151_0x1c64;'use strict';const util=require(a151_0x4b61b8(0x1ed)),path=require(a151_0x4b61b8(0x1f7)),fs=require('fs'),_=require('lodash'),squel=require(a151_0x4b61b8(0x226)),Papa=require(a151_0x4b61b8(0x20a)),{getSocket}=require('../../rediscache'),socket=getSocket(),qs=require(a151_0x4b61b8(0x18c)),as=require(a151_0x4b61b8(0x1d3)),logger=require('../../config/logger')(a151_0x4b61b8(0x1d5)),{db}=require(a151_0x4b61b8(0x218)),{Op,QueryTypes}=require(a151_0x4b61b8(0x1ef)),{fork}=require(a151_0x4b61b8(0x244)),config=require(a151_0x4b61b8(0x183));require(a151_0x4b61b8(0x1bc))[a151_0x4b61b8(0x1cc)](socket);const CSV2_SCRIPT=path['join'](__dirname,'../../components/import/cm/csv2.js');function respondWithResult(_0x8c5149,_0x3427bc){return _0x3427bc=_0x3427bc||0xc8,function(_0xce9156){const _0x4e5de6=a151_0x1c64;if(_0xce9156)return _0x8c5149[_0x4e5de6(0x18f)](_0x3427bc)[_0x4e5de6(0x1d6)](_0xce9156);};}function respondWithFilteredResult(_0x542f12,_0x1d9bb4){return function(_0x5dc2ad){const _0x10f76b=a151_0x1c64;if(_0x5dc2ad){const _0x966ecb=_0x5dc2ad[_0x10f76b(0x1d9)],_0xa0c744=_0x1d9bb4[_0x10f76b(0x245)];let _0x4c42d8=_0x1d9bb4[_0x10f76b(0x245)]+_0x1d9bb4[_0x10f76b(0x1e5)],_0x4f56e7;return _0x4c42d8>=_0x966ecb?(_0x4c42d8=_0x966ecb,_0x4f56e7=0xc8):_0x4f56e7=0xce,_0x542f12['status'](_0x4f56e7),_0x542f12[_0x10f76b(0x187)](_0x10f76b(0x1b1),_0xa0c744+'-'+_0x4c42d8+'/'+_0x966ecb)[_0x10f76b(0x1d6)](_0x5dc2ad);}return null;};}function saveUpdates(_0x539d8c){return function(_0x49a2c0){const _0x587ffc=a151_0x1c64;if(_0x49a2c0)return _0x49a2c0['update'](_0x539d8c)[_0x587ffc(0x186)](function(_0x2a9929){return _0x2a9929;});return null;};}function removeEntity(_0x2e301f){return function(_0x1d6897){const _0x293437=a151_0x1c64;if(_0x1d6897)return _0x1d6897[_0x293437(0x22f)]()['then'](function(){const _0x1b467e=_0x293437;_0x2e301f[_0x1b467e(0x18f)](0xcc)[_0x1b467e(0x1f5)]();});};}function handleEntityNotFound(_0x4f4ea9){return function(_0x57d0c5){const _0x5c150b=a151_0x1c64;return!_0x57d0c5&&_0x4f4ea9[_0x5c150b(0x219)](0x194),_0x57d0c5;};}function handleError(_0x2d4c39,_0x481e2f){return _0x481e2f=_0x481e2f||0x1f4,function(_0x23be71){const _0x310fa8=a151_0x1c64;logger[_0x310fa8(0x181)](_0x23be71['stack']),_0x23be71[_0x310fa8(0x232)]&&delete _0x23be71[_0x310fa8(0x232)],_0x2d4c39[_0x310fa8(0x18f)](_0x481e2f)[_0x310fa8(0x17a)](_0x23be71);};}exports[a151_0x4b61b8(0x217)]=function(_0x1f16b3,_0x192a9c){const _0x51facd=a151_0x4b61b8,_0x223369={},_0x2cd580={},_0x7d5ee7={'count':0x0,'rows':[]};return db[_0x51facd(0x1ac)]['describe']()[_0x51facd(0x186)](function(_0xdff6d3){const _0x4344d2=_0x51facd,_0x2cd492=[];for(let _0x46d9bd=0x0;_0x46d9bd0x1)_0x59776e['or']('MATCH\x20(c.firstName,\x20c.lastName,\x20c.phone,\x20c.mobile,\x20c.fax,\x20c.email)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)',qs[_0x51a4a5(0x238)](_0x52b703),null);else{if(qs[_0x51a4a5(0x1a6)](_0x52b703))_0x59776e['or']('c.id\x20LIKE\x20?',_0x52b703+'%'),_0x59776e['or'](_0x51a4a5(0x204),_0x52b703+'%'),_0x59776e['or'](_0x51a4a5(0x20e),_0x52b703+'%'),_0x59776e['or'](_0x51a4a5(0x1a2),_0x52b703+'%');else qs[_0x51a4a5(0x178)](_0x52b703)?_0x59776e['or'](_0x51a4a5(0x193),_0x52b703+'%'):(_0x59776e['or'](_0x51a4a5(0x1fa),'%'+_0x52b703+'%'),_0x59776e['or'](_0x51a4a5(0x23e),'%'+_0x52b703+'%'),_0x59776e['or'](_0x51a4a5(0x193),'%'+_0x52b703+'%'));}}}_0x192983[_0x51a4a5(0x19c)](_0x59776e),_0x192983[_0x51a4a5(0x1f1)](_0x51a4a5(0x1a3));let _0x3bb8dd={'type':QueryTypes[_0x51a4a5(0x248)],'raw':!![]};const _0x122b08=_0x192983['clone']()[_0x51a4a5(0x19e)](_0x51a4a5(0x1a3));_0x223369[_0x51a4a5(0x227)]&&_0x223369['order']['forEach'](function(_0x4b142f){const _0x2bbd49=_0x51a4a5;_0x192983[_0x2bbd49(0x227)]('c.'+_0x4b142f[0x0],_0x4b142f[0x1]===_0x2bbd49(0x228)?![]:!![]);}),!_[_0x51a4a5(0x1c7)](_0x3cd37e)&&(_0x192983[_0x51a4a5(0x189)](_0x1382dd),_0x122b08[_0x51a4a5(0x19c)](_0x51a4a5(0x1c8),_0x3cd37e)),Promise['resolve']()[_0x51a4a5(0x186)](function(){const _0x310c56=_0x51a4a5;if(_0x21135d&&!_['some'](_0x21135d['conditions'],['field',_0x310c56(0x192)]))return _0x1f16b3['user'][_0x310c56(0x1c1)]({'attributes':['id'],'raw':!![]})['then'](function(_0x292647){const _0x4a3c5d=_0x310c56;_[_0x4a3c5d(0x1c7)](_0x292647)?(_0x122b08[_0x4a3c5d(0x19c)](_0x4a3c5d(0x1f4)),_0x192983['where'](_0x4a3c5d(0x1f4))):(_0x122b08[_0x4a3c5d(0x19c)]('c.ListId\x20IN\x20?',_[_0x4a3c5d(0x17d)](_0x292647,'id')),_0x192983[_0x4a3c5d(0x19c)]('c.ListId\x20IN\x20?',_['map'](_0x292647,'id')));});else return;})[_0x51a4a5(0x186)](function(){const _0x2d7618=_0x51a4a5;db[_0x2d7618(0x1ef)][_0x2d7618(0x23c)](_0x122b08[_0x2d7618(0x1af)](),_0x3bb8dd)['then'](function(_0x3e69e2){const _0x194eb8=_0x2d7618;_0x7d5ee7[_0x194eb8(0x1d9)]=_0x3e69e2['length'];if(_0x7d5ee7['count']===0x0)return[];return db[_0x194eb8(0x1ef)][_0x194eb8(0x23c)](_0x2a2d50[_0x194eb8(0x1af)](),_0x3bb8dd);})[_0x2d7618(0x186)](function(_0x3b24f1){const _0x127bd1=_0x2d7618;_0x290065=_[_0x127bd1(0x172)](_0x3b24f1,'id'),_0x3bb8dd=_[_0x127bd1(0x21e)](_0x3bb8dd,{'model':db[_0x127bd1(0x1ac)],'mapToModel':!![],'raw':!![],'nest':!![]});_0x1f16b3[_0x127bd1(0x23c)][_0x127bd1(0x243)]?_0x223369[_0x127bd1(0x206)][_0x127bd1(0x1c3)](function(_0x20d514){const _0x2d65a3=_0x127bd1;_0x192983[_0x2d65a3(0x19e)]('c.'+_0x20d514);}):(_0x192983[_0x127bd1(0x19e)](_0x127bd1(0x1a3)),_0x192983[_0x127bd1(0x19e)]('c.firstName'),_0x192983[_0x127bd1(0x19e)](_0x127bd1(0x1ff)),_0x192983[_0x127bd1(0x19e)](_0x127bd1(0x21d)),_0x192983[_0x127bd1(0x19e)](_0x127bd1(0x20d)),_0x192983['field'](_0x127bd1(0x1d0)),_0x192983[_0x127bd1(0x19e)](_0x127bd1(0x188)),_0x192983[_0x127bd1(0x19e)](_0x127bd1(0x1fe)),_0x192983[_0x127bd1(0x19e)](_0x127bd1(0x221)),_0x192983[_0x127bd1(0x19e)](_0x127bd1(0x1be),_0x127bd1(0x220)));if(_0x223369['limit'])_0x192983[_0x127bd1(0x1e5)](_0x223369[_0x127bd1(0x1e5)]);if(_0x223369[_0x127bd1(0x245)])_0x192983['offset'](_0x223369[_0x127bd1(0x245)]);return db[_0x127bd1(0x1ef)][_0x127bd1(0x23c)](_0x192983[_0x127bd1(0x1af)](),_0x3bb8dd);})[_0x2d7618(0x186)](function(_0x21711a){const _0x33e290=_0x2d7618;return _0x21711a[_0x33e290(0x1c3)](function(_0x383d37){const _0x29dbb9=_0x33e290;_0x383d37[_0x29dbb9(0x220)]&&(_0x383d37[_0x29dbb9(0x17c)]=[],_0x383d37[_0x29dbb9(0x220)][_0x29dbb9(0x230)](',')['forEach'](function(_0x200952){const _0x3a5e9d=_0x29dbb9;_0x383d37[_0x3a5e9d(0x17c)]['push'](_0x290065[_0x200952]);})),delete _0x383d37[_0x29dbb9(0x220)];}),_0x7d5ee7[_0x33e290(0x1cf)]=_0x21711a,_0x7d5ee7;})[_0x2d7618(0x186)](respondWithFilteredResult(_0x192a9c,_0x223369));});})[_0x51facd(0x224)](handleError(_0x192a9c,null));},exports['destroy']=function(_0xa27e17,_0x541784){const _0x329ce5=a151_0x4b61b8;return db['CmContact'][_0x329ce5(0x229)]({'where':{'id':_0xa27e17[_0x329ce5(0x199)]['id']}})[_0x329ce5(0x186)](handleEntityNotFound(_0x541784,null))['then'](removeEntity(_0x541784,null))[_0x329ce5(0x224)](handleError(_0x541784,null));},exports[a151_0x4b61b8(0x179)]=function(_0x374a42,_0x4373e3){const _0x52beba=a151_0x4b61b8;return db[_0x52beba(0x1ac)]['describe']()[_0x52beba(0x186)](function(_0x4dd42b){const _0x4c539e=_0x52beba;delete _0x4dd42b[_0x4c539e(0x1cb)];for(let _0x2ab743=0x0;_0x2ab743{const _0x4b6779=_0x574d53,_0x5d5214={'where':{[Op['or']]:[]},'defaults':_0x8710ba,'fields':_[_0x4b6779(0x22c)](_0x29663a),'raw':!![]};if(_0x8710ba['duplicates']){for(let _0x12536a=0x0;_0x12536a<_0x8710ba[_0x4b6779(0x21a)][_0x4b6779(0x1e3)];_0x12536a++){const _0x49cf2b={};_0x49cf2b[_0x8710ba[_0x4b6779(0x21a)][_0x12536a]]=_0x8710ba[_0x8710ba[_0x4b6779(0x21a)][_0x12536a]],_0x5d5214[_0x4b6779(0x19c)][Op['or']][_0x4b6779(0x249)](_0x49cf2b);}_0x5d5214['where']['ListId']=_0x8710ba[_0x4b6779(0x1db)];}return db[_0x4b6779(0x1ac)][_0x4b6779(0x19d)](_0x5d5214)[_0x4b6779(0x186)](function([,_0x38f2c2]){_0x38f2c2?_0x2583ba++:_0x2aa871++;})['catch'](function(_0x58c26c){console['error'](_0x58c26c),_0x3411b8++;});}));})['then'](function(_0x474b59){if(_0x474b59)return{'success':_0x2583ba,'failure':_0x3411b8,'duplicates':_0x2aa871};})[_0x4b43ce(0x186)](respondWithResult(_0x5e7207,0xc9))['catch'](handleError(_0x5e7207,null));},exports[a151_0x4b61b8(0x185)]=function(_0x5c64ad,_0x1a9424){const _0x48ca30=a151_0x4b61b8;let _0x2fdfab;return db[_0x48ca30(0x1ac)][_0x48ca30(0x179)]()[_0x48ca30(0x186)](function(_0x59b3c6){const _0x5039c1=_0x48ca30;return db['CmContact'][_0x5039c1(0x229)]({'where':{'id':_0x5c64ad[_0x5039c1(0x199)]['id']},'include':[{'model':db[_0x5039c1(0x1b8)],'as':_0x5039c1(0x17c),'attributes':['id','name','color'],'required':_0x5c64ad[_0x5039c1(0x23c)][_0x5039c1(0x21b)]?!![]:![]}],'attributes':_[_0x5039c1(0x22c)](_0x59b3c6)});})[_0x48ca30(0x186)](function(_0x3a2cf3){const _0x59eaef=_0x48ca30;_0x2fdfab=_0x3a2cf3['get']({'plain':!![]});const _0x4e8402={'where':{[Op[_0x59eaef(0x171)]]:[{'ListId':{[Op['ne']]:null}}]}};return _0x3a2cf3&&_0x3a2cf3['ListId']&&(_0x3a2cf3[_0x59eaef(0x1db)]&&_0x4e8402[_0x59eaef(0x19c)][Op['and']][_0x59eaef(0x249)]({'ListId':{[Op['ne']]:_0x3a2cf3[_0x59eaef(0x1db)]}})),db[_0x59eaef(0x196)][_0x59eaef(0x1ae)](_0x4e8402);})['then'](function(_0x384031){const _0xc343ce=_0x48ca30;return _[_0xc343ce(0x225)](_0x2fdfab,_['map'](_0x384031,function(_0x36f442){const _0x40f481=_0xc343ce;return util[_0x40f481(0x175)](_0x40f481(0x1ab),_0x36f442['id']);}));})['then'](handleEntityNotFound(_0x1a9424,null))[_0x48ca30(0x186)](respondWithResult(_0x1a9424,null))[_0x48ca30(0x224)](handleError(_0x1a9424,null));},exports[a151_0x4b61b8(0x1ba)]=function(_0x2f2a38,_0x575f57){const _0xa4c925=a151_0x4b61b8;let _0x1097a9;return _0x2f2a38[_0xa4c925(0x1e8)]['id']&&delete _0x2f2a38[_0xa4c925(0x1e8)]['id'],db[_0xa4c925(0x1ac)][_0xa4c925(0x229)]({'where':{'id':_0x2f2a38[_0xa4c925(0x199)]['id']}})[_0xa4c925(0x186)](handleEntityNotFound(_0x575f57,null))[_0xa4c925(0x186)](saveUpdates(_0x2f2a38[_0xa4c925(0x1e8)],null))[_0xa4c925(0x186)](function(_0x5363c2){const _0x2d56e6=_0xa4c925;_0x1097a9=_0x5363c2;const _0x3eaa17={'where':{[Op[_0x2d56e6(0x171)]]:[{'ListId':{[Op['ne']]:null}}]}};return _0x5363c2&&_0x5363c2[_0x2d56e6(0x1db)]&&(_0x5363c2['ListId']&&_0x3eaa17[_0x2d56e6(0x19c)][Op[_0x2d56e6(0x171)]][_0x2d56e6(0x249)]({'ListId':{[Op['ne']]:_0x5363c2[_0x2d56e6(0x1db)]}})),db[_0x2d56e6(0x196)]['findAll'](_0x3eaa17);})[_0xa4c925(0x186)](function(_0x560caa){const _0x14a007=_0xa4c925;if(_0x560caa)return _[_0x14a007(0x225)](_['pickBy'](_0x2f2a38[_0x14a007(0x1e8)],function(_0x1a7a7c,_0xfcc0ee){const _0xa5e676=_0x14a007;return _[_0xa5e676(0x222)](_0xfcc0ee,_0xa5e676(0x223));}),_[_0x14a007(0x17d)](_0x560caa,function(_0xdc9600){const _0x4a5a8d=_0x14a007;return util[_0x4a5a8d(0x175)](_0x4a5a8d(0x1ab),_0xdc9600['id']);}));})[_0xa4c925(0x186)](function(_0x4f54e4){const _0x5bc44a=_0xa4c925;if(_0x4f54e4&&!_[_0x5bc44a(0x1c7)](_0x4f54e4)){const _0x2ef11e=squel[_0x5bc44a(0x1ba)]()[_0x5bc44a(0x191)](_0x5bc44a(0x216))[_0x5bc44a(0x1ea)](_0x4f54e4)['where'](_0x5bc44a(0x239),_0x2f2a38[_0x5bc44a(0x199)]['id'])[_0x5bc44a(0x22b)]();return db[_0x5bc44a(0x1ef)][_0x5bc44a(0x23c)](_0x2ef11e[_0x5bc44a(0x20c)],{'replacements':_0x2ef11e['values']});}})[_0xa4c925(0x186)](function(){const _0x1a8d31=_0xa4c925;if(_0x2f2a38[_0x1a8d31(0x1e8)][_0x1a8d31(0x1e1)]&&_0x1097a9)return db[_0x1a8d31(0x197)][_0x1a8d31(0x1ba)]({'phone':_0x2f2a38[_0x1a8d31(0x1e8)][_0x1a8d31(0x1e1)]},{'where':{'ContactId':_0x1097a9['id']}});})['then'](function(){return _0x1097a9;})[_0xa4c925(0x186)](respondWithResult(_0x575f57,null))[_0xa4c925(0x224)](handleError(_0x575f57,null));},exports[a151_0x4b61b8(0x1f3)]=function(_0x5d262d,_0x50119d){const _0x18bcd9=a151_0x4b61b8;let _0x1a9268={};const _0x58bd2a={};let _0x66235,_0x45bb07;return db['CmContact'][_0x18bcd9(0x229)]({'where':{'id':_0x5d262d[_0x18bcd9(0x199)]['id']}})[_0x18bcd9(0x186)](handleEntityNotFound(_0x50119d,null))['then'](function(_0x5dfbd8){const _0x1d277e=_0x18bcd9;if(_0x5dfbd8)return _0x66235=_0x5dfbd8,_0x58bd2a[_0x1d277e(0x1b0)]=_['keys'](db[_0x1d277e(0x1b8)]['rawAttributes']),_0x58bd2a[_0x1d277e(0x23c)]=_[_0x1d277e(0x22c)](_0x5d262d[_0x1d277e(0x23c)]),_0x58bd2a[_0x1d277e(0x231)]=_[_0x1d277e(0x1b2)](_0x58bd2a['model'],_0x58bd2a[_0x1d277e(0x23c)]),_0x1a9268['attributes']=_[_0x1d277e(0x1b2)](_0x58bd2a['model'],qs[_0x1d277e(0x243)](_0x5d262d[_0x1d277e(0x23c)][_0x1d277e(0x243)])),_0x1a9268[_0x1d277e(0x206)]=_0x1a9268[_0x1d277e(0x206)][_0x1d277e(0x1e3)]?_0x1a9268[_0x1d277e(0x206)]:_0x58bd2a['model'],_0x1a9268[_0x1d277e(0x227)]=qs[_0x1d277e(0x1a5)](_0x5d262d[_0x1d277e(0x23c)][_0x1d277e(0x1a5)]),_0x1a9268[_0x1d277e(0x19c)]=qs['filters'](_['pick'](_0x5d262d[_0x1d277e(0x23c)],_0x58bd2a[_0x1d277e(0x231)])),_0x5d262d['query'][_0x1d277e(0x17e)]&&(_0x1a9268[_0x1d277e(0x19c)]=_[_0x1d277e(0x21e)](_0x1a9268['where'],{[Op['or']]:_[_0x1d277e(0x17d)](_0x1a9268['attributes'],function(_0x30dba2){const _0x2961d5=_0x1d277e,_0x2cd944={};return _0x2cd944[_0x30dba2]={[Op['like']]:'%'+_0x5d262d[_0x2961d5(0x23c)]['filter']+'%'},_0x2cd944;})})),_0x1a9268=_[_0x1d277e(0x21e)]({},_0x1a9268,_0x5d262d[_0x1d277e(0x1b7)]),_0x66235[_0x1d277e(0x1f3)](_0x1a9268);})[_0x18bcd9(0x186)](function(_0x54737b){const _0x9b7f61=_0x18bcd9;if(_0x54737b)return _0x45bb07=_0x54737b['length'],typeof _0x5d262d[_0x9b7f61(0x23c)][_0x9b7f61(0x21c)]===_0x9b7f61(0x184)&&(_0x1a9268['limit']=qs[_0x9b7f61(0x1e5)](_0x5d262d[_0x9b7f61(0x23c)][_0x9b7f61(0x1e5)]),_0x1a9268[_0x9b7f61(0x245)]=qs[_0x9b7f61(0x245)](_0x5d262d[_0x9b7f61(0x23c)]['offset'])),_0x66235[_0x9b7f61(0x1f3)](_0x1a9268);})[_0x18bcd9(0x186)](function(_0x2696a5){if(_0x2696a5)return _0x2696a5?{'count':_0x45bb07,'rows':_0x2696a5}:null;})[_0x18bcd9(0x186)](respondWithResult(_0x50119d,null))[_0x18bcd9(0x224)](handleError(_0x50119d,null));},exports[a151_0x4b61b8(0x208)]=function(_0x47a7b9,_0x36dbdc){const _0x38124f=a151_0x4b61b8;return _0x47a7b9['body']['id']&&delete _0x47a7b9[_0x38124f(0x1e8)]['id'],db['CmContact'][_0x38124f(0x229)]({'where':{'id':_0x47a7b9[_0x38124f(0x199)]['id']}})[_0x38124f(0x186)](handleEntityNotFound(_0x36dbdc,null))[_0x38124f(0x186)](function(_0x547d59){const _0x4be533=_0x38124f;if(_0x547d59)return _0x547d59['setTags'](_0x47a7b9[_0x4be533(0x1e8)][_0x4be533(0x1c9)]||[]);return null;})[_0x38124f(0x186)](respondWithResult(_0x36dbdc,null))['catch'](handleError(_0x36dbdc,null));},exports[a151_0x4b61b8(0x1ad)]=function(_0x324089,_0x185c56){const _0x33dabe=a151_0x4b61b8;let _0x3ab966={'raw':![],'where':{}};const _0x31fc57={},_0xa7b4a1={'count':0x0,'rows':[]};return db[_0x33dabe(0x1ac)][_0x33dabe(0x229)]({'where':{'id':_0x324089['params']['id']}})[_0x33dabe(0x186)](handleEntityNotFound(_0x185c56,null))[_0x33dabe(0x186)](function(_0x4b3c9a){const _0x4d9d07=_0x33dabe;if(_0x4b3c9a)return _0x31fc57['model']=_[_0x4d9d07(0x22c)](db['CmHopper']['rawAttributes']),_0x31fc57[_0x4d9d07(0x23c)]=_[_0x4d9d07(0x22c)](_0x324089[_0x4d9d07(0x23c)]),_0x31fc57[_0x4d9d07(0x231)]=_[_0x4d9d07(0x1b2)](_0x31fc57[_0x4d9d07(0x1b0)],_0x31fc57[_0x4d9d07(0x23c)]),_0x3ab966[_0x4d9d07(0x206)]=_[_0x4d9d07(0x1b2)](_0x31fc57[_0x4d9d07(0x1b0)],qs['fields'](_0x324089[_0x4d9d07(0x23c)][_0x4d9d07(0x243)])),_0x3ab966[_0x4d9d07(0x206)]=_0x3ab966[_0x4d9d07(0x206)]['length']?_0x3ab966[_0x4d9d07(0x206)]:_0x31fc57[_0x4d9d07(0x1b0)],typeof _0x324089[_0x4d9d07(0x23c)][_0x4d9d07(0x21c)]===_0x4d9d07(0x184)&&(_0x3ab966[_0x4d9d07(0x1e5)]=qs['limit'](_0x324089[_0x4d9d07(0x23c)][_0x4d9d07(0x1e5)]),_0x3ab966[_0x4d9d07(0x245)]=qs[_0x4d9d07(0x245)](_0x324089['query'][_0x4d9d07(0x245)])),_0x3ab966['order']=qs['sort'](_0x324089[_0x4d9d07(0x23c)][_0x4d9d07(0x1a5)]),_0x3ab966[_0x4d9d07(0x19c)]=qs[_0x4d9d07(0x231)](_[_0x4d9d07(0x23f)](_0x324089[_0x4d9d07(0x23c)],_0x31fc57[_0x4d9d07(0x231)])),_0x3ab966[_0x4d9d07(0x19c)][_0x4d9d07(0x214)]=_0x4b3c9a['id'],_0x324089[_0x4d9d07(0x23c)][_0x4d9d07(0x17e)]&&(_0x3ab966[_0x4d9d07(0x19c)]=_[_0x4d9d07(0x21e)](_0x3ab966[_0x4d9d07(0x19c)],{[Op['or']]:_[_0x4d9d07(0x17d)](_0x3ab966[_0x4d9d07(0x206)],function(_0x357d6f){const _0x585ca8=_0x4d9d07,_0xfbf993={};return _0xfbf993[_0x357d6f]={[Op['like']]:'%'+_0x324089[_0x585ca8(0x23c)][_0x585ca8(0x17e)]+'%'},_0xfbf993;})})),_0x3ab966=_['merge']({},_0x3ab966,_0x324089[_0x4d9d07(0x1b7)]),db[_0x4d9d07(0x197)][_0x4d9d07(0x1d9)]({'where':_0x3ab966[_0x4d9d07(0x19c)]})[_0x4d9d07(0x186)](function(_0x320092){const _0x2fafa2=_0x4d9d07;return _0xa7b4a1[_0x2fafa2(0x1d9)]=_0x320092,_0x324089[_0x2fafa2(0x23c)][_0x2fafa2(0x198)]&&(_0x3ab966[_0x2fafa2(0x1ca)]=[{'all':!![]}]),db[_0x2fafa2(0x197)][_0x2fafa2(0x1ae)](_0x3ab966);})[_0x4d9d07(0x186)](function(_0x267f55){const _0x7af25f=_0x4d9d07;return _0xa7b4a1[_0x7af25f(0x1cf)]=_0x267f55,_0xa7b4a1;});})[_0x33dabe(0x186)](respondWithFilteredResult(_0x185c56,_0x3ab966))['catch'](handleError(_0x185c56,null));},exports[a151_0x4b61b8(0x21f)]=function(_0x5d959d,_0x5cf6ed){const _0x5b25ee=a151_0x4b61b8;let _0x2dd5ce={'raw':!![],'where':{}};const _0x92e5c4={},_0x11dff8={'count':0x0,'rows':[]};return db[_0x5b25ee(0x1ac)]['findOne']({'where':{'id':_0x5d959d[_0x5b25ee(0x199)]['id']}})[_0x5b25ee(0x186)](handleEntityNotFound(_0x5cf6ed,null))[_0x5b25ee(0x186)](function(_0x1eb5ad){const _0x5678fa=_0x5b25ee;if(_0x1eb5ad)return _0x92e5c4[_0x5678fa(0x1b0)]=_[_0x5678fa(0x22c)](db[_0x5678fa(0x195)][_0x5678fa(0x1dd)]),_0x92e5c4[_0x5678fa(0x23c)]=_[_0x5678fa(0x22c)](_0x5d959d['query']),_0x92e5c4[_0x5678fa(0x231)]=_[_0x5678fa(0x1b2)](_0x92e5c4['model'],_0x92e5c4[_0x5678fa(0x23c)]),_0x2dd5ce['attributes']=_[_0x5678fa(0x1b2)](_0x92e5c4[_0x5678fa(0x1b0)],qs[_0x5678fa(0x243)](_0x5d959d[_0x5678fa(0x23c)][_0x5678fa(0x243)])),_0x2dd5ce[_0x5678fa(0x206)]=_0x2dd5ce['attributes'][_0x5678fa(0x1e3)]?_0x2dd5ce[_0x5678fa(0x206)]:_0x92e5c4[_0x5678fa(0x1b0)],typeof _0x5d959d[_0x5678fa(0x23c)]['nolimit']==='undefined'&&(_0x2dd5ce[_0x5678fa(0x1e5)]=qs['limit'](_0x5d959d[_0x5678fa(0x23c)][_0x5678fa(0x1e5)]),_0x2dd5ce[_0x5678fa(0x245)]=qs[_0x5678fa(0x245)](_0x5d959d[_0x5678fa(0x23c)]['offset'])),_0x2dd5ce['order']=qs[_0x5678fa(0x1a5)](_0x5d959d['query']['sort']),_0x2dd5ce[_0x5678fa(0x19c)]=qs[_0x5678fa(0x231)](_[_0x5678fa(0x23f)](_0x5d959d['query'],_0x92e5c4['filters'])),_0x2dd5ce['where'][_0x5678fa(0x214)]=_0x1eb5ad['id'],_0x5d959d[_0x5678fa(0x23c)]['filter']&&(_0x2dd5ce['where']=_['merge'](_0x2dd5ce['where'],{[Op['or']]:_['map'](_0x2dd5ce[_0x5678fa(0x206)],function(_0x1fe19f){const _0x318aa2=_0x5678fa,_0x11eee6={};return _0x11eee6[_0x1fe19f]={[Op[_0x318aa2(0x19a)]]:'%'+_0x5d959d[_0x318aa2(0x23c)]['filter']+'%'},_0x11eee6;})})),_0x2dd5ce=_[_0x5678fa(0x21e)]({},_0x2dd5ce,_0x5d959d[_0x5678fa(0x1b7)]),db[_0x5678fa(0x195)][_0x5678fa(0x1d9)]({'where':_0x2dd5ce[_0x5678fa(0x19c)]})['then'](function(_0x2ca393){const _0x1d3049=_0x5678fa;return _0x11dff8[_0x1d3049(0x1d9)]=_0x2ca393,_0x5d959d[_0x1d3049(0x23c)]['includeAll']&&(_0x2dd5ce['include']=[{'all':!![]}]),db[_0x1d3049(0x195)]['findAll'](_0x2dd5ce);})['then'](function(_0x576130){const _0x3d373c=_0x5678fa;return _0x11dff8[_0x3d373c(0x1cf)]=_0x576130,_0x11dff8;});})['then'](respondWithFilteredResult(_0x5cf6ed,_0x2dd5ce))[_0x5b25ee(0x224)](handleError(_0x5cf6ed,null));},exports[a151_0x4b61b8(0x194)]=function(_0x3a64d7,_0x5eac56){const _0x46392e=a151_0x4b61b8;let _0x4b8347={'raw':!![],'where':{}};const _0x37eb46={},_0x3bf9f9={'count':0x0,'rows':[]};return db[_0x46392e(0x1ac)][_0x46392e(0x229)]({'where':{'id':_0x3a64d7[_0x46392e(0x199)]['id']}})['then'](handleEntityNotFound(_0x5eac56,null))[_0x46392e(0x186)](function(_0x43315c){const _0x3e9b3a=_0x46392e;if(_0x43315c)return _0x37eb46[_0x3e9b3a(0x1b0)]=_[_0x3e9b3a(0x22c)](db[_0x3e9b3a(0x1fc)][_0x3e9b3a(0x1dd)]),_0x37eb46[_0x3e9b3a(0x23c)]=_['keys'](_0x3a64d7[_0x3e9b3a(0x23c)]),_0x37eb46[_0x3e9b3a(0x231)]=_[_0x3e9b3a(0x1b2)](_0x37eb46[_0x3e9b3a(0x1b0)],_0x37eb46['query']),_0x4b8347[_0x3e9b3a(0x206)]=_['intersection'](_0x37eb46[_0x3e9b3a(0x1b0)],qs[_0x3e9b3a(0x243)](_0x3a64d7[_0x3e9b3a(0x23c)]['fields'])),_0x4b8347[_0x3e9b3a(0x206)]=_0x4b8347['attributes']['length']?_0x4b8347[_0x3e9b3a(0x206)]:_0x37eb46[_0x3e9b3a(0x1b0)],typeof _0x3a64d7[_0x3e9b3a(0x23c)][_0x3e9b3a(0x21c)]===_0x3e9b3a(0x184)&&(_0x4b8347['limit']=qs['limit'](_0x3a64d7[_0x3e9b3a(0x23c)][_0x3e9b3a(0x1e5)]),_0x4b8347[_0x3e9b3a(0x245)]=qs[_0x3e9b3a(0x245)](_0x3a64d7[_0x3e9b3a(0x23c)][_0x3e9b3a(0x245)])),_0x4b8347['order']=qs['sort'](_0x3a64d7[_0x3e9b3a(0x23c)][_0x3e9b3a(0x1a5)]),_0x4b8347[_0x3e9b3a(0x19c)]=qs[_0x3e9b3a(0x231)](_['pick'](_0x3a64d7[_0x3e9b3a(0x23c)],_0x37eb46['filters'])),_0x4b8347[_0x3e9b3a(0x19c)][_0x3e9b3a(0x214)]=_0x43315c['id'],_0x3a64d7[_0x3e9b3a(0x23c)][_0x3e9b3a(0x17e)]&&(_0x4b8347[_0x3e9b3a(0x19c)]=_['merge'](_0x4b8347['where'],{[Op['or']]:_[_0x3e9b3a(0x17d)](_0x4b8347['attributes'],function(_0x45be0f){const _0x53a16c=_0x3e9b3a,_0x18f137={};return _0x18f137[_0x45be0f]={[Op[_0x53a16c(0x19a)]]:'%'+_0x3a64d7[_0x53a16c(0x23c)]['filter']+'%'},_0x18f137;})})),_0x4b8347=_['merge']({},_0x4b8347,_0x3a64d7[_0x3e9b3a(0x1b7)]),db[_0x3e9b3a(0x1fc)][_0x3e9b3a(0x1d9)]({'where':_0x4b8347['where']})[_0x3e9b3a(0x186)](function(_0x31e266){const _0x5d0f12=_0x3e9b3a;return _0x3bf9f9[_0x5d0f12(0x1d9)]=_0x31e266,_0x3a64d7[_0x5d0f12(0x23c)][_0x5d0f12(0x198)]&&(_0x4b8347[_0x5d0f12(0x1ca)]=[{'all':!![]}]),db[_0x5d0f12(0x1fc)]['findAll'](_0x4b8347);})[_0x3e9b3a(0x186)](function(_0x489f02){const _0x46d11e=_0x3e9b3a;return _0x3bf9f9[_0x46d11e(0x1cf)]=_0x489f02,_0x3bf9f9;});})['then'](respondWithFilteredResult(_0x5eac56,_0x4b8347))[_0x46392e(0x224)](handleError(_0x5eac56,null));},exports[a151_0x4b61b8(0x246)]=function(_0x34164c,_0x549efc){const _0x7d885a=a151_0x4b61b8;let _0x5edf85={'raw':!![],'where':{}};const _0x396216={},_0x553d5a={'count':0x0,'rows':[]};return db[_0x7d885a(0x1ac)]['findOne']({'where':{'id':_0x34164c[_0x7d885a(0x199)]['id']}})['then'](handleEntityNotFound(_0x549efc,null))[_0x7d885a(0x186)](function(_0x2fa2ea){const _0x25078b=_0x7d885a;if(_0x2fa2ea)return _0x396216[_0x25078b(0x1b0)]=_['keys'](db[_0x25078b(0x211)]['rawAttributes']),_0x396216[_0x25078b(0x23c)]=_[_0x25078b(0x22c)](_0x34164c[_0x25078b(0x23c)]),_0x396216['filters']=_['intersection'](_0x396216['model'],_0x396216[_0x25078b(0x23c)]),_0x5edf85['attributes']=_['intersection'](_0x396216['model'],qs[_0x25078b(0x243)](_0x34164c[_0x25078b(0x23c)][_0x25078b(0x243)])),_0x5edf85[_0x25078b(0x206)]=_0x5edf85[_0x25078b(0x206)][_0x25078b(0x1e3)]?_0x5edf85[_0x25078b(0x206)]:_0x396216[_0x25078b(0x1b0)],typeof _0x34164c[_0x25078b(0x23c)]['nolimit']===_0x25078b(0x184)&&(_0x5edf85['limit']=qs[_0x25078b(0x1e5)](_0x34164c['query'][_0x25078b(0x1e5)]),_0x5edf85[_0x25078b(0x245)]=qs[_0x25078b(0x245)](_0x34164c[_0x25078b(0x23c)][_0x25078b(0x245)])),_0x5edf85[_0x25078b(0x227)]=qs[_0x25078b(0x1a5)](_0x34164c['query'][_0x25078b(0x1a5)]),_0x5edf85[_0x25078b(0x19c)]=qs[_0x25078b(0x231)](_[_0x25078b(0x23f)](_0x34164c[_0x25078b(0x23c)],_0x396216[_0x25078b(0x231)])),_0x5edf85[_0x25078b(0x19c)]['ContactId']=_0x2fa2ea['id'],_0x34164c[_0x25078b(0x23c)][_0x25078b(0x17e)]&&(_0x5edf85[_0x25078b(0x19c)]=_[_0x25078b(0x21e)](_0x5edf85[_0x25078b(0x19c)],{[Op['or']]:_[_0x25078b(0x17d)](_0x5edf85['attributes'],function(_0x40ab1d){const _0x551557=_0x25078b,_0x52699a={};return _0x52699a[_0x40ab1d]={[Op[_0x551557(0x19a)]]:'%'+_0x34164c[_0x551557(0x23c)][_0x551557(0x17e)]+'%'},_0x52699a;})})),_0x5edf85=_[_0x25078b(0x21e)]({},_0x5edf85,_0x34164c['options']),db[_0x25078b(0x211)][_0x25078b(0x1d9)]({'where':_0x5edf85[_0x25078b(0x19c)]})[_0x25078b(0x186)](function(_0xa48b3e){const _0x350e5f=_0x25078b;return _0x553d5a[_0x350e5f(0x1d9)]=_0xa48b3e,_0x34164c[_0x350e5f(0x23c)]['includeAll']&&(_0x5edf85['include']=[{'all':!![]}]),db[_0x350e5f(0x211)][_0x350e5f(0x1ae)](_0x5edf85);})[_0x25078b(0x186)](function(_0x1a895b){const _0xcc2fca=_0x25078b;return _0x553d5a[_0xcc2fca(0x1cf)]=_0x1a895b,_0x553d5a;});})[_0x7d885a(0x186)](respondWithFilteredResult(_0x549efc,_0x5edf85))[_0x7d885a(0x224)](handleError(_0x549efc,null));},exports['upload']=function(_0x54b625,_0x5daa82){const _0x280e72=a151_0x4b61b8,_0xd59925=fs[_0x280e72(0x22d)](_0x54b625[_0x280e72(0x1da)][_0x280e72(0x1f7)]);Papa[_0x280e72(0x1a4)](_0xd59925,{'header':!![],'skipEmptyLines':!![],'preview':0x1,'complete':function(_0x3c8d51){const _0xe239cc=_0x280e72;return _0x5daa82[_0xe239cc(0x18f)](0xc8)[_0xe239cc(0x1d6)]({'file':_0x54b625['file'],'fields':_0x3c8d51[_0xe239cc(0x18b)][_0xe239cc(0x243)]});}});},exports[a151_0x4b61b8(0x1f8)]=function(_0x40eaa5,_0x2bc880){const _0x114dc7=a151_0x4b61b8;return db['User'][_0x114dc7(0x1ae)]({'raw':!![],'attributes':['id'],'where':{'role':_0x114dc7(0x1c4)}})[_0x114dc7(0x186)](function(_0x4222c4){const _0x431553=_0x114dc7;let _0x3956c8=![];if(!_0x40eaa5['body'][_0x431553(0x1db)])throw new Error(_0x431553(0x1d7));if(!_0x40eaa5[_0x431553(0x1e8)][_0x431553(0x18a)][_0x431553(0x1e1)])throw new Error(_0x431553(0x1cd));if(!_0x40eaa5[_0x431553(0x1e8)][_0x431553(0x18a)][_0x431553(0x1dc)])throw new Error(_0x431553(0x210));if(!_0x40eaa5[_0x431553(0x1e8)][_0x431553(0x1e7)])throw new Error(_0x431553(0x1a0));const _0x15d78d=path[_0x431553(0x1f9)](config['root'],_0x431553(0x1c2),_0x40eaa5[_0x431553(0x199)]['id']),_0x353005=JSON['stringify'](_0x40eaa5['body']),_0x242503=JSON[_0x431553(0x1e2)](_0x4222c4);logger[_0x431553(0x23d)](_0x431553(0x173)+CSV2_SCRIPT+_0x431553(0x1a1)+_0x15d78d+_0x431553(0x23a)+_0x353005+_0x431553(0x207)+_0x242503);const _0x387cbe=fork(CSV2_SCRIPT,[_0x15d78d,_0x353005,_0x242503],{'stdio':_0x431553(0x1c6)});_0x387cbe['on'](_0x431553(0x1f6),()=>{const _0xd0d47f=_0x431553;return _0x3956c8=!![],_0x2bc880[_0xd0d47f(0x18f)](0xc8)[_0xd0d47f(0x1d6)]({'message':_0xd0d47f(0x16f),'pid':_0x387cbe[_0xd0d47f(0x18e)]});}),_0x387cbe['on'](_0x431553(0x181),_0x317bae=>{const _0x55d99f=_0x431553;logger[_0x55d99f(0x181)](_0x55d99f(0x1fb)+CSV2_SCRIPT+_0x55d99f(0x180)+_0x317bae[_0x55d99f(0x1f6)]+'\x20'+_0x317bae['stack']);}),_0x387cbe[_0x431553(0x235)]&&_0x387cbe[_0x431553(0x1f0)]?(_0x387cbe['stdout']['on']('data',_0x913b73=>{const _0x1e0712=_0x431553;logger[_0x1e0712(0x23d)](_0x1e0712(0x234)+_0x913b73);}),_0x387cbe[_0x431553(0x1f0)]['on'](_0x431553(0x240),_0x5ce33d=>{const _0x3dbcce=_0x431553;logger[_0x3dbcce(0x181)](_0x3dbcce(0x19b)+_0x5ce33d);})):logger[_0x431553(0x23d)](_0x431553(0x1b5)),_0x387cbe['on']('exit',_0x311416=>{const _0x174401=_0x431553;if(_0x311416&&!_0x3956c8)return _0x2bc880[_0x174401(0x18f)](0x1f4)['json']({'message':_0x174401(0x1e4),'pid':_0x387cbe[_0x174401(0x18e)]});});})[_0x114dc7(0x224)](handleError(_0x2bc880,null));}; \ No newline at end of file diff --git a/server/api/cmContact/cmContact.events.js b/server/api/cmContact/cmContact.events.js index 0778f31..e99980f 100644 --- a/server/api/cmContact/cmContact.events.js +++ b/server/api/cmContact/cmContact.events.js @@ -1 +1 @@ -const a127_0x4681=['exports','addHook','emit','events','remove','save','../../mysqldb','update','undefined'];(function(_0xf3bcac,_0x4681ba){const _0x52289a=function(_0x50c2e2){while(--_0x50c2e2){_0xf3bcac['push'](_0xf3bcac['shift']());}};_0x52289a(++_0x4681ba);}(a127_0x4681,0x8f));const a127_0x5228=function(_0xf3bcac,_0x4681ba){_0xf3bcac=_0xf3bcac-0x0;let _0x52289a=a127_0x4681[_0xf3bcac];return _0x52289a;};const _0x26a333=a127_0x5228;'use strict';const EventEmitter=require(_0x26a333('0x4')),CmContact=require(_0x26a333('0x7'))['db']['CmContact'],CmContactEvents=new EventEmitter();CmContactEvents['setMaxListeners'](0x0);const events={'afterCreate':_0x26a333('0x6'),'afterUpdate':_0x26a333('0x8'),'afterDestroy':_0x26a333('0x5')};function emitEvent(_0x50c2e2){return function(_0x44e390){const _0x486a07=a127_0x5228;CmContactEvents['emit'](_0x50c2e2+':'+_0x44e390['id'],_0x44e390),CmContactEvents[_0x486a07('0x3')](_0x50c2e2,_0x44e390);};}for(const e in events){if(typeof events[e]!==_0x26a333('0x0')){const event=events[e];CmContact[_0x26a333('0x2')](e,emitEvent(event));}}module[_0x26a333('0x1')]=CmContactEvents; \ No newline at end of file +const a152_0x5140=['CmContact','save','undefined','update','setMaxListeners','addHook','emit','../../mysqldb','events'];(function(_0x1d1efe,_0x4c3cb0){const _0x5140f2=function(_0x3f52c9){while(--_0x3f52c9){_0x1d1efe['push'](_0x1d1efe['shift']());}};_0x5140f2(++_0x4c3cb0);}(a152_0x5140,0xb7));const a152_0x3f52=function(_0x1d1efe,_0x4c3cb0){_0x1d1efe=_0x1d1efe-0x8a;let _0x5140f2=a152_0x5140[_0x1d1efe];return _0x5140f2;};const a152_0x396dc2=a152_0x3f52;'use strict';const EventEmitter=require(a152_0x396dc2(0x8f)),CmContact=require(a152_0x396dc2(0x8e))['db'][a152_0x396dc2(0x90)],CmContactEvents=new EventEmitter();CmContactEvents[a152_0x396dc2(0x8b)](0x0);const events={'afterCreate':a152_0x396dc2(0x91),'afterUpdate':a152_0x396dc2(0x8a),'afterDestroy':'remove'};function emitEvent(_0x43de10){return function(_0x4c7a5e){const _0x343b53=a152_0x3f52;CmContactEvents[_0x343b53(0x8d)](_0x43de10+':'+_0x4c7a5e['id'],_0x4c7a5e),CmContactEvents[_0x343b53(0x8d)](_0x43de10,_0x4c7a5e);};}for(const e in events){if(typeof events[e]!==a152_0x396dc2(0x92)){const event=events[e];CmContact[a152_0x396dc2(0x8c)](e,emitEvent(event));}}module['exports']=CmContactEvents; \ No newline at end of file diff --git a/server/api/cmContact/cmContact.model.js b/server/api/cmContact/cmContact.model.js index 4948649..7a9cdf8 100644 --- a/server/api/cmContact/cmContact.model.js +++ b/server/api/cmContact/cmContact.model.js @@ -1 +1 @@ -const a128_0xdf16=['firstName','models','onlyIfOpen','mobile','all','CmHopperBlack','format','fti_cm_contacts','YYYY-MM-DD\x20HH:mm:ss','\x20contact\x20not\x20insert\x20in\x20hopper,\x20check\x20duplicate\x20always,\x20exist\x20in\x20hopperFinal\x20VoiceQueue\x20','findAll','exports','CampaignId','cm_contacts','dialCheckDuplicateType','isEmpty','util','Campaign','findOne','CmList','Lists','info','FULLTEXT','inspect','get','create','priority','List\x20not\x20found','\x20contact\x20not\x20insert\x20in\x20hopper,\x20check\x20duplicate\x20always,\x20exist\x20in\x20hopper\x20Campaign\x20','email','CmHopper','catch','phone','ContactId','[CmContact][afterDestroy][Error]','\x20contact\x20not\x20insert\x20in\x20hopper,\x20check\x20duplicate\x20onlyIfOpen,\x20exist\x20in\x20hopper\x20Campaign\x20','[CmContact][afterDestroy][Succesfull]','\x20contact\x20not\x20insert\x20in\x20hopper,\x20check\x20duplicate\x20always,\x20exist\x20in\x20hopperFinal\x20Campaign\x20','message','./cmContact.attributes','push','cmContact,\x20%s,\x20%s','afterCreate','BlackLists','length','destroy','CmHopperFinal','lodash','isNil','ListId','always','\x20contact\x20not\x20insert\x20in\x20hopper,\x20check\x20duplicate\x20always,\x20exist\x20in\x20hopper\x20VoiceQueue\x20','VoiceQueueId','then','error','outbound','CmContact','fax','callbackUniqueid','cmContact,\x20afterCreate,\x20','scheduledat','cmContact,\x20afterCreate\x20'];(function(_0x1cae1c,_0xdf164c){const _0x4f246d=function(_0x5b3baa){while(--_0x5b3baa){_0x1cae1c['push'](_0x1cae1c['shift']());}};_0x4f246d(++_0xdf164c);}(a128_0xdf16,0x16d));const a128_0x4f24=function(_0x1cae1c,_0xdf164c){_0x1cae1c=_0x1cae1c-0x0;let _0x4f246d=a128_0xdf16[_0x1cae1c];return _0x4f246d;};const _0x47f5ba=a128_0x4f24;'use strict';const _=require(_0x47f5ba('0x36')),util=require(_0x47f5ba('0x17')),logger=require('../../config/logger')('api'),moment=require('moment'),attributes=require(_0x47f5ba('0x2e'));module[_0x47f5ba('0x12')]=function(_0x5b3baa){const _0x272c31=_0x47f5ba,_0x275ed9=_0x5b3baa[_0x272c31('0x8')],_0x3088=_0x5b3baa['define'](_0x272c31('0x1'),attributes,{'tableName':_0x272c31('0x14'),'paranoid':!![],'indexes':[{'name':'phone','fields':[_0x272c31('0x27')]},{'name':_0x272c31('0xe'),'fields':[_0x272c31('0x7'),'lastName',_0x272c31('0x27'),_0x272c31('0xa'),_0x272c31('0x2'),_0x272c31('0x24')],'type':_0x272c31('0x1d')}],'timestamps':!![],'hooks':{'afterCreate':function(_0x4b9060){const _0x27be52=_0x272c31,_0x5a7b91=_0x4b9060[_0x27be52('0x1f')]({'plain':!![]});function _0x10b0e0(){return function(_0x455e0d){const _0x1c9b37=a128_0x4f24;logger[_0x1c9b37('0x3d')]('cmContact',_0x1c9b37('0x31'),util[_0x1c9b37('0x1e')](_0x455e0d,{'showHidden':![],'depth':null}));};}const _0x5df9ae=function(_0x340c3c){return new Promise(function(_0x2f597b,_0x457b11){const _0x10c8c2=a128_0x4f24;_0x275ed9['CmHopper'][_0x10c8c2('0x19')]({'where':{'phone':_0x5a7b91[_0x10c8c2('0x27')],'VoiceQueueId':_0x340c3c['id']}})['then'](function(_0x4854c6){const _0x1d5c55=_0x10c8c2;if(!_[_0x1d5c55('0x37')](_0x4854c6))throw new Error(_0x1d5c55('0x6')+_0x5a7b91[_0x1d5c55('0x27')]+'\x20contact\x20not\x20insert\x20in\x20hopper,\x20check\x20duplicate\x20onlyIfOpen,\x20exist\x20in\x20hopper\x20VoiceQueue\x20'+_0x340c3c['id']);return _0x275ed9[_0x1d5c55('0x25')][_0x1d5c55('0x20')]({'phone':_0x5a7b91[_0x1d5c55('0x27')],'ContactId':_0x5a7b91['id'],'ListId':_0x5a7b91['ListId'],'priority':_0x5a7b91['priority']?_0x5a7b91[_0x1d5c55('0x21')]:0x2,'scheduledat':_0x5a7b91[_0x1d5c55('0x5')]?_0x5a7b91[_0x1d5c55('0x5')]:moment()[_0x1d5c55('0xd')]('YYYY-MM-DD\x20HH:mm:ss'),'callback':_0x5a7b91[_0x1d5c55('0x3')]?!![]:![],'callbackuniqueid':_0x5a7b91['callbackUniqueid']?_0x5a7b91['callbackUniqueid']:undefined,'callbackat':_0x5a7b91[_0x1d5c55('0x3')]?moment()[_0x1d5c55('0xd')](_0x1d5c55('0xf')):undefined,'VoiceQueueId':_0x340c3c['id']});})[_0x10c8c2('0x26')](function(_0x53ae24){_0x457b11(_0x53ae24);});});},_0x5704fa=function(_0x3afa76){return new Promise(function(_0x290f49,_0x206470){const _0x24fc9e=a128_0x4f24;_0x275ed9[_0x24fc9e('0x25')][_0x24fc9e('0x19')]({'where':{'phone':_0x5a7b91[_0x24fc9e('0x27')],'VoiceQueueId':_0x3afa76['id']}})[_0x24fc9e('0x3c')](function(_0x184d4c){const _0x4ac8ed=_0x24fc9e;if(!_[_0x4ac8ed('0x37')](_0x184d4c))throw new Error('cmContact,\x20afterCreate\x20'+_0x5a7b91[_0x4ac8ed('0x27')]+_0x4ac8ed('0x3a')+_0x3afa76['id']);return _0x275ed9[_0x4ac8ed('0x35')][_0x4ac8ed('0x19')]({'where':{'calleridnum':_0x5a7b91[_0x4ac8ed('0x27')],'VoiceQueueId':_0x3afa76['id']}});})[_0x24fc9e('0x3c')](function(_0x3d41b0){const _0x4e13e0=_0x24fc9e;if(!_[_0x4e13e0('0x37')](_0x3d41b0))throw new Error(_0x4e13e0('0x4')+_0x5a7b91[_0x4e13e0('0x27')]+_0x4e13e0('0x10')+_0x3afa76['id']);return _0x275ed9[_0x4e13e0('0x25')][_0x4e13e0('0x20')]({'phone':_0x5a7b91[_0x4e13e0('0x27')],'ContactId':_0x5a7b91['id'],'ListId':_0x5a7b91[_0x4e13e0('0x38')],'priority':_0x5a7b91[_0x4e13e0('0x21')]?_0x5a7b91['priority']:0x2,'scheduledat':_0x5a7b91['scheduledat']?_0x5a7b91[_0x4e13e0('0x5')]:moment()[_0x4e13e0('0xd')](_0x4e13e0('0xf')),'callback':_0x5a7b91['callbackUniqueid']?!![]:![],'callbackuniqueid':_0x5a7b91[_0x4e13e0('0x3')]?_0x5a7b91[_0x4e13e0('0x3')]:undefined,'callbackat':_0x5a7b91[_0x4e13e0('0x3')]?moment()[_0x4e13e0('0xd')](_0x4e13e0('0xf')):undefined,'VoiceQueueId':_0x3afa76['id']});})['catch'](function(_0x199732){_0x206470(_0x199732);});});};function _0x523dda(){return function(_0xd300d0){const _0xac3977=a128_0x4f24;logger[_0xac3977('0x3d')]('cmContact','afterCreate',util[_0xac3977('0x1e')](_0xd300d0,{'showHidden':![],'depth':null}));};}const _0x7a0d=function(_0x178b1a){return new Promise(function(_0x5a68d9,_0x33fa83){const _0x401e90=a128_0x4f24;_0x275ed9[_0x401e90('0x25')][_0x401e90('0x19')]({'where':{'phone':_0x5a7b91[_0x401e90('0x27')],'CampaignId':_0x178b1a['id']}})['then'](function(_0x4bccfe){const _0x2404a2=_0x401e90;if(!_[_0x2404a2('0x37')](_0x4bccfe))throw new Error('cmContact,\x20afterCreate\x20'+_0x5a7b91[_0x2404a2('0x27')]+_0x2404a2('0x2a')+_0x178b1a['id']);return _0x275ed9[_0x2404a2('0x25')][_0x2404a2('0x20')]({'phone':_0x5a7b91[_0x2404a2('0x27')],'ContactId':_0x5a7b91['id'],'ListId':_0x5a7b91[_0x2404a2('0x38')],'priority':_0x5a7b91[_0x2404a2('0x21')]?_0x5a7b91[_0x2404a2('0x21')]:0x2,'scheduledat':_0x5a7b91[_0x2404a2('0x5')]?_0x5a7b91[_0x2404a2('0x5')]:moment()['format'](_0x2404a2('0xf')),'callback':_0x5a7b91[_0x2404a2('0x3')]?!![]:![],'callbackuniqueid':_0x5a7b91[_0x2404a2('0x3')]?_0x5a7b91[_0x2404a2('0x3')]:undefined,'callbackat':_0x5a7b91[_0x2404a2('0x3')]?moment()[_0x2404a2('0xd')](_0x2404a2('0xf')):undefined,'CampaignId':_0x178b1a['id']});})['catch'](function(_0x37513b){_0x33fa83(_0x37513b);});});},_0x15c6dc=function(_0x9fc941){return new Promise(function(_0x20bb26,_0x934d9e){const _0x4c8b5d=a128_0x4f24;_0x275ed9[_0x4c8b5d('0x25')][_0x4c8b5d('0x19')]({'where':{'phone':_0x5a7b91[_0x4c8b5d('0x27')],'CampaignId':_0x9fc941['id']}})[_0x4c8b5d('0x3c')](function(_0x35b417){const _0x208c1a=_0x4c8b5d;if(!_[_0x208c1a('0x37')](_0x35b417))throw new Error('cmContact,\x20afterCreate\x20'+_0x5a7b91['phone']+_0x208c1a('0x23')+_0x9fc941['id']);return _0x275ed9[_0x208c1a('0x35')][_0x208c1a('0x19')]({'where':{'calleridnum':_0x5a7b91[_0x208c1a('0x27')],'CampaignId':_0x9fc941['id']}});})[_0x4c8b5d('0x3c')](function(_0x15354d){const _0x97822d=_0x4c8b5d;if(!_['isNil'](_0x15354d))throw new Error(_0x97822d('0x4')+_0x5a7b91[_0x97822d('0x27')]+_0x97822d('0x2c')+_0x9fc941['id']);return _0x275ed9['CmHopper'][_0x97822d('0x20')]({'phone':_0x5a7b91['phone'],'ContactId':_0x5a7b91['id'],'ListId':_0x5a7b91[_0x97822d('0x38')],'priority':_0x5a7b91['priority']?_0x5a7b91[_0x97822d('0x21')]:0x2,'scheduledat':_0x5a7b91['scheduledat']?_0x5a7b91[_0x97822d('0x5')]:moment()[_0x97822d('0xd')](_0x97822d('0xf')),'callback':_0x5a7b91['callbackUniqueid']?!![]:![],'callbackuniqueid':_0x5a7b91[_0x97822d('0x3')]?_0x5a7b91[_0x97822d('0x3')]:undefined,'callbackat':_0x5a7b91[_0x97822d('0x3')]?moment()['format']('YYYY-MM-DD\x20HH:mm:ss'):undefined,'CampaignId':_0x9fc941['id']});})[_0x4c8b5d('0x26')](function(_0x1237d9){_0x934d9e(_0x1237d9);});});};if(_0x5a7b91[_0x27be52('0x38')])_0x275ed9['VoiceQueue']['findAll']({'where':{'type':'outbound'},'attributes':['id',_0x27be52('0x15')],'include':[{'model':_0x275ed9[_0x27be52('0x1a')],'as':'Lists','where':{'id':_0x5a7b91[_0x27be52('0x38')]}}]})[_0x27be52('0x3c')](function(_0x2254e5){const _0x57b24d=_0x27be52;if(_0x2254e5)for(let _0x6754df=0x0,_0x27030f;_0x6754df<_0x2254e5[_0x57b24d('0x33')];_0x6754df+=0x1){_0x27030f=_0x2254e5[_0x6754df][_0x57b24d('0x1f')]({'plain':!![]});switch(_0x27030f[_0x57b24d('0x15')]){case _0x57b24d('0x39'):_0x5704fa(_0x27030f)[_0x57b24d('0x26')](_0x10b0e0());break;case _0x57b24d('0x9'):_0x5df9ae(_0x27030f)[_0x57b24d('0x26')](_0x10b0e0());break;default:_0x275ed9['CmHopper'][_0x57b24d('0x20')]({'phone':_0x5a7b91[_0x57b24d('0x27')],'ContactId':_0x5a7b91['id'],'ListId':_0x5a7b91['ListId'],'scheduledat':_0x5a7b91[_0x57b24d('0x5')]?_0x5a7b91[_0x57b24d('0x5')]:moment()[_0x57b24d('0xd')](_0x57b24d('0xf')),'priority':_0x5a7b91[_0x57b24d('0x21')]?_0x5a7b91['priority']:0x2,'callback':_0x5a7b91[_0x57b24d('0x3')]?!![]:![],'callbackuniqueid':_0x5a7b91[_0x57b24d('0x3')]?_0x5a7b91[_0x57b24d('0x3')]:undefined,'callbackat':_0x5a7b91['callbackUniqueid']?moment()[_0x57b24d('0xd')](_0x57b24d('0xf')):undefined,'VoiceQueueId':_0x27030f['id']})[_0x57b24d('0x26')](_0x10b0e0());}}})['then'](function(){const _0x1e656a=_0x27be52;return _0x275ed9['VoiceQueue'][_0x1e656a('0x11')]({'where':{'type':_0x1e656a('0x0')},'attributes':['id'],'include':[{'model':_0x275ed9[_0x1e656a('0x1a')],'as':_0x1e656a('0x32'),'where':{'id':_0x5a7b91[_0x1e656a('0x38')]}}]})[_0x1e656a('0x3c')](function(_0x5d1a7d){const _0x42af34=_0x1e656a;if(_0x5d1a7d)for(let _0x4f1248=0x0,_0x1ecee8;_0x4f1248<_0x5d1a7d[_0x42af34('0x33')];_0x4f1248+=0x1){_0x1ecee8=_0x5d1a7d[_0x4f1248][_0x42af34('0x1f')]({'plain':!![]}),_0x275ed9[_0x42af34('0xc')][_0x42af34('0x20')]({'phone':_0x5a7b91[_0x42af34('0x27')],'ContactId':_0x5a7b91['id'],'ListId':_0x5a7b91[_0x42af34('0x38')],'VoiceQueueId':_0x1ecee8['id']})[_0x42af34('0x26')](function(_0x384bd8){const _0x50e69f=_0x42af34;logger['error'](_0x50e69f('0x30'),_0x50e69f('0x31'),_0x384bd8[_0x50e69f('0x2d')]);});}});})[_0x27be52('0x3c')](function(){const _0x1f7542=_0x27be52;return _0x275ed9[_0x1f7542('0x18')][_0x1f7542('0x11')]({'attributes':['id',_0x1f7542('0x15')],'include':[{'model':_0x275ed9[_0x1f7542('0x1a')],'as':_0x1f7542('0x1b'),'where':{'id':_0x5a7b91['ListId']}}]})[_0x1f7542('0x3c')](function(_0x1380a6){const _0xd39ee9=_0x1f7542;if(_0x1380a6)for(let _0x5e6654=0x0,_0x52f2a3;_0x5e6654<_0x1380a6[_0xd39ee9('0x33')];_0x5e6654+=0x1){_0x52f2a3=_0x1380a6[_0x5e6654][_0xd39ee9('0x1f')]({'plain':!![]});switch(_0x52f2a3[_0xd39ee9('0x15')]){case _0xd39ee9('0x39'):_0x15c6dc(_0x52f2a3)['catch'](_0x523dda());break;case _0xd39ee9('0x9'):_0x7a0d(_0x52f2a3)[_0xd39ee9('0x26')](_0x523dda());break;default:_0x275ed9[_0xd39ee9('0x25')]['create']({'phone':_0x5a7b91[_0xd39ee9('0x27')],'ContactId':_0x5a7b91['id'],'ListId':_0x5a7b91['ListId'],'scheduledat':_0x5a7b91['scheduledat']?_0x5a7b91['scheduledat']:moment()['format'](_0xd39ee9('0xf')),'priority':_0x5a7b91[_0xd39ee9('0x21')]?_0x5a7b91[_0xd39ee9('0x21')]:0x2,'callback':_0x5a7b91[_0xd39ee9('0x3')]?!![]:![],'callbackuniqueid':_0x5a7b91[_0xd39ee9('0x3')]?_0x5a7b91[_0xd39ee9('0x3')]:undefined,'callbackat':_0x5a7b91['callbackUniqueid']?moment()[_0xd39ee9('0xd')](_0xd39ee9('0xf')):undefined,'CampaignId':_0x52f2a3['id']})[_0xd39ee9('0x26')](_0x523dda());}}});})[_0x27be52('0x3c')](function(){const _0x4fdc6e=_0x27be52;return _0x275ed9[_0x4fdc6e('0x18')][_0x4fdc6e('0x11')]({'attributes':['id'],'include':[{'model':_0x275ed9['CmList'],'as':_0x4fdc6e('0x32'),'where':{'id':_0x5a7b91[_0x4fdc6e('0x38')]}}]})[_0x4fdc6e('0x3c')](function(_0x45434f){const _0x3917ec=_0x4fdc6e;if(_0x45434f)for(let _0x274c22=0x0,_0x4c62f7;_0x274c22<_0x45434f[_0x3917ec('0x33')];_0x274c22+=0x1){_0x4c62f7=_0x45434f[_0x274c22]['get']({'plain':!![]}),_0x275ed9[_0x3917ec('0xc')][_0x3917ec('0x20')]({'phone':_0x5a7b91['phone'],'ContactId':_0x5a7b91['id'],'ListId':_0x5a7b91[_0x3917ec('0x38')],'CampaignId':_0x4c62f7['id']})['catch'](function(_0x320ccc){const _0x292958=_0x3917ec;logger[_0x292958('0x3d')](_0x292958('0x30'),'afterCreate',_0x320ccc[_0x292958('0x2d')]);});}});})[_0x27be52('0x26')](function(_0x159bd9){const _0x4afbc4=_0x27be52;return logger[_0x4afbc4('0x3d')](_0x4afbc4('0x30'),_0x4afbc4('0x31'),_0x159bd9[_0x4afbc4('0x2d')]),_0x159bd9;});else throw new Error(_0x27be52('0x22'));},'afterDestroy':function(_0x4a33d7){const _0x42cf97=_0x272c31,_0x2c49d5=_0x4a33d7[_0x42cf97('0x1f')]({'plain':!![]});return _0x275ed9[_0x42cf97('0x25')][_0x42cf97('0x11')]({'raw':!![],'where':{'ListId':_0x2c49d5[_0x42cf97('0x38')],'ContactId':_0x2c49d5['id']}})[_0x42cf97('0x3c')](function(_0x476f05){const _0x487604=_0x42cf97;if(!_[_0x487604('0x16')](_0x476f05)){const _0x51c489=[];for(let _0x2289fd=0x0;_0x2289fd<_0x476f05[_0x487604('0x33')];_0x2289fd+=0x1){const _0x3e9bbd=_0x275ed9[_0x487604('0x25')][_0x487604('0x34')]({'where':{'ListId':_0x476f05[_0x2289fd][_0x487604('0x38')],'ContactId':_0x476f05[_0x2289fd][_0x487604('0x28')],'VoiceQueueId':_0x476f05[_0x2289fd][_0x487604('0x3b')],'CampaignId':_0x476f05[_0x2289fd][_0x487604('0x13')]}});_0x51c489[_0x487604('0x2f')](_0x3e9bbd);}return Promise[_0x487604('0xb')](_0x51c489);}})[_0x42cf97('0x3c')](function(_0x567caf){const _0x20888d=_0x42cf97;return logger[_0x20888d('0x1c')](_0x20888d('0x2b'),util[_0x20888d('0x1e')](_0x567caf,{'showHidden':![],'depth':null})),null;})['catch'](function(_0x8c884c){const _0x15f882=_0x42cf97;return logger[_0x15f882('0x3d')](_0x15f882('0x29'),util[_0x15f882('0x1e')](_0x8c884c,{'showHidden':![],'depth':null})),_0x8c884c;});}}});return _0x3088;}; \ No newline at end of file +const a153_0x5b13=['CmContact','./cmContact.options','./cmContact.attributes','sequelize','exports','init'];(function(_0x262800,_0x1f20fd){const _0x5b13c7=function(_0x335869){while(--_0x335869){_0x262800['push'](_0x262800['shift']());}};_0x5b13c7(++_0x1f20fd);}(a153_0x5b13,0x125));const a153_0x3358=function(_0x262800,_0x1f20fd){_0x262800=_0x262800-0x143;let _0x5b13c7=a153_0x5b13[_0x262800];return _0x5b13c7;};const a153_0x4344ce=a153_0x3358;'use strict';const {Model}=require(a153_0x4344ce(0x147)),{attributes}=require(a153_0x4344ce(0x146)),{options}=require(a153_0x4344ce(0x145));class CmContact extends Model{}function init(_0x244bd4,_0x2bcf3f){const _0x14cc7b=options(_0x244bd4),_0x4a0ed7=typeof _0x2bcf3f==='function'?_0x2bcf3f(_0x14cc7b):_0x14cc7b;return CmContact['init'](attributes,_0x4a0ed7),CmContact;}module['exports'][a153_0x4344ce(0x144)]=CmContact,module[a153_0x4344ce(0x148)][a153_0x4344ce(0x143)]=init; \ No newline at end of file diff --git a/server/api/cmContact/cmContact.options.js b/server/api/cmContact/cmContact.options.js new file mode 100644 index 0000000..1a53e32 --- /dev/null +++ b/server/api/cmContact/cmContact.options.js @@ -0,0 +1 @@ +const a154_0x3dca=['get','all','message','CmHopperBlack','firstName','phone','\x20contact\x20not\x20insert\x20in\x20hopper,\x20check\x20duplicate\x20onlyIfOpen,\x20exist\x20in\x20hopper\x20Campaign\x20','fax','lodash','inspect','outbound','findAll','info','cmContact,\x20%s,\x20%s','CmHopper','ListId','format','afterCreate','api','create','\x20contact\x20not\x20insert\x20in\x20hopper,\x20check\x20duplicate\x20always,\x20exist\x20in\x20hopperFinal\x20VoiceQueue\x20','error','\x20contact\x20not\x20insert\x20in\x20hopper,\x20check\x20duplicate\x20always,\x20exist\x20in\x20hopper\x20Campaign\x20','[CmContact][afterDestroy][Error]','isNil','CmHopperFinal','always','cm_contacts','FULLTEXT','scheduledat','destroy','VoiceQueueId','isEmpty','YYYY-MM-DD\x20HH:mm:ss','mobile','priority','length','then','exports','Lists','cmContact','[CmContact][afterDestroy][Succesfull]','List\x20not\x20found','cmContact,\x20afterCreate,\x20','push','dialCheckDuplicateType','CmList','onlyIfOpen','fti_cm_contacts','util','findOne','cmContact,\x20afterCreate\x20','email','Campaign','catch','BlackLists','moment','callbackUniqueid','../../config/logger','VoiceQueue','\x20contact\x20not\x20insert\x20in\x20hopper,\x20check\x20duplicate\x20onlyIfOpen,\x20exist\x20in\x20hopper\x20VoiceQueue\x20'];(function(_0x29a7b8,_0x13108d){const _0x3dcac9=function(_0x5da92a){while(--_0x5da92a){_0x29a7b8['push'](_0x29a7b8['shift']());}};_0x3dcac9(++_0x13108d);}(a154_0x3dca,0x1b8));const a154_0x5da9=function(_0x29a7b8,_0x13108d){_0x29a7b8=_0x29a7b8-0x1bc;let _0x3dcac9=a154_0x3dca[_0x29a7b8];return _0x3dcac9;};const a154_0x7e84e0=a154_0x5da9,util=require(a154_0x7e84e0(0x1e0)),moment=require(a154_0x7e84e0(0x1e7)),_=require(a154_0x7e84e0(0x1f4)),logger=require(a154_0x7e84e0(0x1e9))(a154_0x7e84e0(0x1c1));function options(_0xe51c89){const _0x2be815=a154_0x7e84e0;return{'sequelize':_0xe51c89,'tableName':_0x2be815(0x1ca),'paranoid':!![],'indexes':[{'name':_0x2be815(0x1f1),'fields':[_0x2be815(0x1f1)]},{'name':_0x2be815(0x1df),'fields':[_0x2be815(0x1f0),'lastName',_0x2be815(0x1f1),_0x2be815(0x1d1),_0x2be815(0x1f3),_0x2be815(0x1e3)],'type':_0x2be815(0x1cb)}],'timestamps':!![],'hooks':{'afterCreate':function(_0x5a8355){const _0x337037=_0x2be815,_0x16b47a=_0xe51c89['models'],_0x47f487=_0x5a8355[_0x337037(0x1ec)]({'plain':!![]});function _0x195035(){return function(_0x413d0c){const _0x24d79c=a154_0x5da9;logger[_0x24d79c(0x1c4)](_0x24d79c(0x1d7),_0x24d79c(0x1c0),util['inspect'](_0x413d0c,{'showHidden':![],'depth':null}));};}const _0x2163ed=function(_0x396b33){return new Promise(function(_0x539a61,_0x2225ee){const _0x3cfc00=a154_0x5da9;_0x16b47a['CmHopper'][_0x3cfc00(0x1e1)]({'where':{'phone':_0x47f487[_0x3cfc00(0x1f1)],'VoiceQueueId':_0x396b33['id']}})[_0x3cfc00(0x1d4)](function(_0x377770){const _0xc3f222=_0x3cfc00;if(!_[_0xc3f222(0x1c7)](_0x377770))throw new Error(_0xc3f222(0x1e2)+_0x47f487[_0xc3f222(0x1f1)]+_0xc3f222(0x1eb)+_0x396b33['id']);return _0x16b47a[_0xc3f222(0x1bd)]['create']({'phone':_0x47f487[_0xc3f222(0x1f1)],'ContactId':_0x47f487['id'],'ListId':_0x47f487[_0xc3f222(0x1be)],'priority':_0x47f487[_0xc3f222(0x1d2)]?_0x47f487[_0xc3f222(0x1d2)]:0x2,'scheduledat':_0x47f487[_0xc3f222(0x1cc)]?_0x47f487[_0xc3f222(0x1cc)]:moment()[_0xc3f222(0x1bf)](_0xc3f222(0x1d0)),'callback':_0x47f487['callbackUniqueid']?!![]:![],'callbackuniqueid':_0x47f487[_0xc3f222(0x1e8)]?_0x47f487[_0xc3f222(0x1e8)]:undefined,'callbackat':_0x47f487[_0xc3f222(0x1e8)]?moment()[_0xc3f222(0x1bf)](_0xc3f222(0x1d0)):undefined,'VoiceQueueId':_0x396b33['id']});})[_0x3cfc00(0x1e5)](function(_0x2e9c30){_0x2225ee(_0x2e9c30);});});},_0x5609b7=function(_0x1295e1){return new Promise(function(_0x234204,_0x5c17f3){const _0x2c37c7=a154_0x5da9;_0x16b47a[_0x2c37c7(0x1bd)][_0x2c37c7(0x1e1)]({'where':{'phone':_0x47f487[_0x2c37c7(0x1f1)],'VoiceQueueId':_0x1295e1['id']}})['then'](function(_0x33016a){const _0x5c4ca6=_0x2c37c7;if(!_[_0x5c4ca6(0x1c7)](_0x33016a))throw new Error(_0x5c4ca6(0x1e2)+_0x47f487[_0x5c4ca6(0x1f1)]+'\x20contact\x20not\x20insert\x20in\x20hopper,\x20check\x20duplicate\x20always,\x20exist\x20in\x20hopper\x20VoiceQueue\x20'+_0x1295e1['id']);return _0x16b47a['CmHopperFinal'][_0x5c4ca6(0x1e1)]({'where':{'calleridnum':_0x47f487[_0x5c4ca6(0x1f1)],'VoiceQueueId':_0x1295e1['id']}});})[_0x2c37c7(0x1d4)](function(_0x5bd5d3){const _0x1fe507=_0x2c37c7;if(!_[_0x1fe507(0x1c7)](_0x5bd5d3))throw new Error(_0x1fe507(0x1da)+_0x47f487[_0x1fe507(0x1f1)]+_0x1fe507(0x1c3)+_0x1295e1['id']);return _0x16b47a[_0x1fe507(0x1bd)][_0x1fe507(0x1c2)]({'phone':_0x47f487['phone'],'ContactId':_0x47f487['id'],'ListId':_0x47f487[_0x1fe507(0x1be)],'priority':_0x47f487[_0x1fe507(0x1d2)]?_0x47f487[_0x1fe507(0x1d2)]:0x2,'scheduledat':_0x47f487[_0x1fe507(0x1cc)]?_0x47f487[_0x1fe507(0x1cc)]:moment()[_0x1fe507(0x1bf)](_0x1fe507(0x1d0)),'callback':_0x47f487[_0x1fe507(0x1e8)]?!![]:![],'callbackuniqueid':_0x47f487[_0x1fe507(0x1e8)]?_0x47f487[_0x1fe507(0x1e8)]:undefined,'callbackat':_0x47f487['callbackUniqueid']?moment()['format'](_0x1fe507(0x1d0)):undefined,'VoiceQueueId':_0x1295e1['id']});})['catch'](function(_0x5aed7b){_0x5c17f3(_0x5aed7b);});});};function _0x520704(){return function(_0x381041){const _0x4c6d09=a154_0x5da9;logger['error'](_0x4c6d09(0x1d7),_0x4c6d09(0x1c0),util['inspect'](_0x381041,{'showHidden':![],'depth':null}));};}const _0x4c7519=function(_0x530313){return new Promise(function(_0x45379d,_0x242afc){const _0x436624=a154_0x5da9;_0x16b47a[_0x436624(0x1bd)]['findOne']({'where':{'phone':_0x47f487[_0x436624(0x1f1)],'CampaignId':_0x530313['id']}})['then'](function(_0x33d677){const _0x4b35f2=_0x436624;if(!_[_0x4b35f2(0x1c7)](_0x33d677))throw new Error(_0x4b35f2(0x1e2)+_0x47f487[_0x4b35f2(0x1f1)]+_0x4b35f2(0x1f2)+_0x530313['id']);return _0x16b47a[_0x4b35f2(0x1bd)][_0x4b35f2(0x1c2)]({'phone':_0x47f487[_0x4b35f2(0x1f1)],'ContactId':_0x47f487['id'],'ListId':_0x47f487[_0x4b35f2(0x1be)],'priority':_0x47f487[_0x4b35f2(0x1d2)]?_0x47f487[_0x4b35f2(0x1d2)]:0x2,'scheduledat':_0x47f487[_0x4b35f2(0x1cc)]?_0x47f487[_0x4b35f2(0x1cc)]:moment()[_0x4b35f2(0x1bf)](_0x4b35f2(0x1d0)),'callback':_0x47f487[_0x4b35f2(0x1e8)]?!![]:![],'callbackuniqueid':_0x47f487[_0x4b35f2(0x1e8)]?_0x47f487[_0x4b35f2(0x1e8)]:undefined,'callbackat':_0x47f487[_0x4b35f2(0x1e8)]?moment()['format'](_0x4b35f2(0x1d0)):undefined,'CampaignId':_0x530313['id']});})['catch'](function(_0x8b1d30){_0x242afc(_0x8b1d30);});});},_0x1a67ca=function(_0x19525f){return new Promise(function(_0x4b8d17,_0x2e19bc){const _0x156eb4=a154_0x5da9;_0x16b47a['CmHopper'][_0x156eb4(0x1e1)]({'where':{'phone':_0x47f487['phone'],'CampaignId':_0x19525f['id']}})[_0x156eb4(0x1d4)](function(_0x529276){const _0xe75dd9=_0x156eb4;if(!_['isNil'](_0x529276))throw new Error(_0xe75dd9(0x1e2)+_0x47f487[_0xe75dd9(0x1f1)]+_0xe75dd9(0x1c5)+_0x19525f['id']);return _0x16b47a[_0xe75dd9(0x1c8)]['findOne']({'where':{'calleridnum':_0x47f487[_0xe75dd9(0x1f1)],'CampaignId':_0x19525f['id']}});})['then'](function(_0x3c2c4f){const _0x3db876=_0x156eb4;if(!_[_0x3db876(0x1c7)](_0x3c2c4f))throw new Error(_0x3db876(0x1da)+_0x47f487[_0x3db876(0x1f1)]+'\x20contact\x20not\x20insert\x20in\x20hopper,\x20check\x20duplicate\x20always,\x20exist\x20in\x20hopperFinal\x20Campaign\x20'+_0x19525f['id']);return _0x16b47a[_0x3db876(0x1bd)][_0x3db876(0x1c2)]({'phone':_0x47f487[_0x3db876(0x1f1)],'ContactId':_0x47f487['id'],'ListId':_0x47f487[_0x3db876(0x1be)],'priority':_0x47f487[_0x3db876(0x1d2)]?_0x47f487['priority']:0x2,'scheduledat':_0x47f487[_0x3db876(0x1cc)]?_0x47f487[_0x3db876(0x1cc)]:moment()['format'](_0x3db876(0x1d0)),'callback':_0x47f487['callbackUniqueid']?!![]:![],'callbackuniqueid':_0x47f487['callbackUniqueid']?_0x47f487[_0x3db876(0x1e8)]:undefined,'callbackat':_0x47f487[_0x3db876(0x1e8)]?moment()['format']('YYYY-MM-DD\x20HH:mm:ss'):undefined,'CampaignId':_0x19525f['id']});})['catch'](function(_0x324bde){_0x2e19bc(_0x324bde);});});};if(_0x47f487[_0x337037(0x1be)])_0x16b47a['VoiceQueue'][_0x337037(0x1f7)]({'where':{'type':_0x337037(0x1f6)},'attributes':['id',_0x337037(0x1dc)],'include':[{'model':_0x16b47a['CmList'],'as':_0x337037(0x1d6),'where':{'id':_0x47f487[_0x337037(0x1be)]}}]})[_0x337037(0x1d4)](function(_0x3d560f){const _0x5b5a26=_0x337037;if(_0x3d560f)for(let _0x89e0de=0x0,_0x10afb2;_0x89e0de<_0x3d560f['length'];_0x89e0de+=0x1){_0x10afb2=_0x3d560f[_0x89e0de]['get']({'plain':!![]});switch(_0x10afb2[_0x5b5a26(0x1dc)]){case _0x5b5a26(0x1c9):_0x5609b7(_0x10afb2)['catch'](_0x195035());break;case _0x5b5a26(0x1de):_0x2163ed(_0x10afb2)[_0x5b5a26(0x1e5)](_0x195035());break;default:_0x16b47a['CmHopper'][_0x5b5a26(0x1c2)]({'phone':_0x47f487[_0x5b5a26(0x1f1)],'ContactId':_0x47f487['id'],'ListId':_0x47f487[_0x5b5a26(0x1be)],'scheduledat':_0x47f487[_0x5b5a26(0x1cc)]?_0x47f487[_0x5b5a26(0x1cc)]:moment()['format'](_0x5b5a26(0x1d0)),'priority':_0x47f487[_0x5b5a26(0x1d2)]?_0x47f487[_0x5b5a26(0x1d2)]:0x2,'callback':_0x47f487['callbackUniqueid']?!![]:![],'callbackuniqueid':_0x47f487[_0x5b5a26(0x1e8)]?_0x47f487[_0x5b5a26(0x1e8)]:undefined,'callbackat':_0x47f487['callbackUniqueid']?moment()[_0x5b5a26(0x1bf)](_0x5b5a26(0x1d0)):undefined,'VoiceQueueId':_0x10afb2['id']})['catch'](_0x195035());}}})['then'](function(){const _0x4a83de=_0x337037;return _0x16b47a[_0x4a83de(0x1ea)][_0x4a83de(0x1f7)]({'where':{'type':_0x4a83de(0x1f6)},'attributes':['id'],'include':[{'model':_0x16b47a['CmList'],'as':_0x4a83de(0x1e6),'where':{'id':_0x47f487[_0x4a83de(0x1be)]}}]})[_0x4a83de(0x1d4)](function(_0x385cca){const _0x295038=_0x4a83de;if(_0x385cca)for(let _0x5d0d14=0x0,_0x57f9f2;_0x5d0d14<_0x385cca['length'];_0x5d0d14+=0x1){_0x57f9f2=_0x385cca[_0x5d0d14][_0x295038(0x1ec)]({'plain':!![]}),_0x16b47a['CmHopperBlack'][_0x295038(0x1c2)]({'phone':_0x47f487[_0x295038(0x1f1)],'ContactId':_0x47f487['id'],'ListId':_0x47f487[_0x295038(0x1be)],'VoiceQueueId':_0x57f9f2['id']})[_0x295038(0x1e5)](function(_0x1b75d0){const _0x26f7d9=_0x295038;logger[_0x26f7d9(0x1c4)]('cmContact,\x20%s,\x20%s',_0x26f7d9(0x1c0),_0x1b75d0[_0x26f7d9(0x1ee)]);});}});})[_0x337037(0x1d4)](function(){const _0x3301f5=_0x337037;return _0x16b47a['Campaign']['findAll']({'attributes':['id',_0x3301f5(0x1dc)],'include':[{'model':_0x16b47a[_0x3301f5(0x1dd)],'as':_0x3301f5(0x1d6),'where':{'id':_0x47f487[_0x3301f5(0x1be)]}}]})[_0x3301f5(0x1d4)](function(_0x15a073){const _0x3e9094=_0x3301f5;if(_0x15a073)for(let _0x500f4e=0x0,_0x4dd793;_0x500f4e<_0x15a073[_0x3e9094(0x1d3)];_0x500f4e+=0x1){_0x4dd793=_0x15a073[_0x500f4e][_0x3e9094(0x1ec)]({'plain':!![]});switch(_0x4dd793[_0x3e9094(0x1dc)]){case'always':_0x1a67ca(_0x4dd793)[_0x3e9094(0x1e5)](_0x520704());break;case _0x3e9094(0x1de):_0x4c7519(_0x4dd793)[_0x3e9094(0x1e5)](_0x520704());break;default:_0x16b47a[_0x3e9094(0x1bd)][_0x3e9094(0x1c2)]({'phone':_0x47f487['phone'],'ContactId':_0x47f487['id'],'ListId':_0x47f487[_0x3e9094(0x1be)],'scheduledat':_0x47f487['scheduledat']?_0x47f487[_0x3e9094(0x1cc)]:moment()[_0x3e9094(0x1bf)](_0x3e9094(0x1d0)),'priority':_0x47f487[_0x3e9094(0x1d2)]?_0x47f487[_0x3e9094(0x1d2)]:0x2,'callback':_0x47f487['callbackUniqueid']?!![]:![],'callbackuniqueid':_0x47f487[_0x3e9094(0x1e8)]?_0x47f487[_0x3e9094(0x1e8)]:undefined,'callbackat':_0x47f487[_0x3e9094(0x1e8)]?moment()[_0x3e9094(0x1bf)]('YYYY-MM-DD\x20HH:mm:ss'):undefined,'CampaignId':_0x4dd793['id']})[_0x3e9094(0x1e5)](_0x520704());}}});})[_0x337037(0x1d4)](function(){const _0x45de75=_0x337037;return _0x16b47a[_0x45de75(0x1e4)]['findAll']({'attributes':['id'],'include':[{'model':_0x16b47a[_0x45de75(0x1dd)],'as':'BlackLists','where':{'id':_0x47f487[_0x45de75(0x1be)]}}]})[_0x45de75(0x1d4)](function(_0x112d4e){const _0x58c62e=_0x45de75;if(_0x112d4e)for(let _0x36a821=0x0,_0x14c127;_0x36a821<_0x112d4e['length'];_0x36a821+=0x1){_0x14c127=_0x112d4e[_0x36a821][_0x58c62e(0x1ec)]({'plain':!![]}),_0x16b47a[_0x58c62e(0x1ef)][_0x58c62e(0x1c2)]({'phone':_0x47f487[_0x58c62e(0x1f1)],'ContactId':_0x47f487['id'],'ListId':_0x47f487[_0x58c62e(0x1be)],'CampaignId':_0x14c127['id']})['catch'](function(_0x478fba){const _0x169866=_0x58c62e;logger[_0x169866(0x1c4)](_0x169866(0x1bc),_0x169866(0x1c0),_0x478fba[_0x169866(0x1ee)]);});}});})[_0x337037(0x1e5)](function(_0x51143b){const _0x119bfb=_0x337037;logger[_0x119bfb(0x1c4)](_0x119bfb(0x1bc),_0x119bfb(0x1c0),_0x51143b[_0x119bfb(0x1ee)]);});else throw new Error(_0x337037(0x1d9));},'afterDestroy':function(_0x3805f4){const _0x586c88=_0x2be815,_0x1a7fe1=_0xe51c89['models'],_0x102ead=_0x3805f4['get']({'plain':!![]});return _0x1a7fe1[_0x586c88(0x1bd)]['findAll']({'raw':!![],'where':{'ListId':_0x102ead[_0x586c88(0x1be)],'ContactId':_0x102ead['id']}})[_0x586c88(0x1d4)](function(_0xf7dc8c){const _0x3710a0=_0x586c88;if(!_[_0x3710a0(0x1cf)](_0xf7dc8c)){const _0xf055f6=[];for(let _0x44a8e9=0x0;_0x44a8e9<_0xf7dc8c['length'];_0x44a8e9+=0x1){const _0x492f34=_0x1a7fe1['CmHopper'][_0x3710a0(0x1cd)]({'where':{'ListId':_0xf7dc8c[_0x44a8e9][_0x3710a0(0x1be)],'ContactId':_0xf7dc8c[_0x44a8e9]['ContactId'],'VoiceQueueId':_0xf7dc8c[_0x44a8e9][_0x3710a0(0x1ce)],'CampaignId':_0xf7dc8c[_0x44a8e9]['CampaignId']}});_0xf055f6[_0x3710a0(0x1db)](_0x492f34);}return Promise[_0x3710a0(0x1ed)](_0xf055f6);}})[_0x586c88(0x1d4)](function(_0x10c70d){const _0xdf7ceb=_0x586c88;logger[_0xdf7ceb(0x1f8)](_0xdf7ceb(0x1d8),util[_0xdf7ceb(0x1f5)](_0x10c70d,{'showHidden':![],'depth':null}));})[_0x586c88(0x1e5)](function(_0x772fcf){const _0x578ed5=_0x586c88;logger[_0x578ed5(0x1c4)](_0x578ed5(0x1c6),util['inspect'](_0x772fcf,{'showHidden':![],'depth':null}));throw _0x772fcf;});}}};}module[a154_0x7e84e0(0x1d5)]['options']=options; \ No newline at end of file diff --git a/server/api/cmContact/cmContact.rpc.js b/server/api/cmContact/cmContact.rpc.js index 36b7870..2194efd 100644 --- a/server/api/cmContact/cmContact.rpc.js +++ b/server/api/cmContact/cmContact.rpc.js @@ -1 +1 @@ -const a129_0x3a3e=['stringify','length','error','message','raw','include','squel','CreateCmContact','info','attributes','sequelize','limit','CmContact','../../config/logger','keys','startsWith','table','query','GetCmContact','model','lodash','map','../../mysqldb','where','debug','options','catch','toString','./cmContact.socket','cf_','body','then','create','update','id\x20=\x20?'];(function(_0x3b3ba4,_0x3a3ed7){const _0x54cf88=function(_0x2a5687){while(--_0x2a5687){_0x3b3ba4['push'](_0x3b3ba4['shift']());}};_0x54cf88(++_0x3a3ed7);}(a129_0x3a3e,0xff));const a129_0x54cf=function(_0x3b3ba4,_0x3a3ed7){_0x3b3ba4=_0x3b3ba4-0x0;let _0x54cf88=a129_0x3a3e[_0x3b3ba4];return _0x54cf88;};const _0x51ccff=a129_0x54cf;'use strict';const _=require(_0x51ccff('0xa')),db=require(_0x51ccff('0xc'))['db'],logger=require(_0x51ccff('0x3'))('rpc'),squel=require(_0x51ccff('0x1f')),{getSocket}=require('../../rediscache'),socket=getSocket();require(_0x51ccff('0x12'))['register'](socket),exports[_0x51ccff('0x8')]=function(_0x2a5687){const _0x44f08=this;return new Promise(function(_0x53dbe1,_0x5473ee){const _0x553edc=a129_0x54cf;return db[_0x553edc('0x2')]['findAll']({'raw':_0x2a5687[_0x553edc('0xf')]?_0x2a5687[_0x553edc('0xf')]['raw']===undefined?!![]:![]:!![],'where':_0x2a5687[_0x553edc('0xf')]?_0x2a5687[_0x553edc('0xf')][_0x553edc('0xd')]||null:null,'attributes':_0x2a5687[_0x553edc('0xf')]?_0x2a5687[_0x553edc('0xf')][_0x553edc('0x22')]||null:null,'limit':_0x2a5687[_0x553edc('0xf')]?_0x2a5687[_0x553edc('0xf')][_0x553edc('0x1')]||null:null,'include':_0x2a5687[_0x553edc('0xf')]?_0x2a5687[_0x553edc('0xf')]['include']?_[_0x553edc('0xb')](_0x2a5687[_0x553edc('0xf')][_0x553edc('0x1e')],function(_0x1ac9e1){const _0x10bcea=_0x553edc;return{'model':db[_0x1ac9e1[_0x10bcea('0x9')]],'as':_0x1ac9e1['as'],'attributes':_0x1ac9e1[_0x10bcea('0x22')],'include':_0x1ac9e1[_0x10bcea('0x1e')]?_['map'](_0x1ac9e1[_0x10bcea('0x1e')],function(_0x366d89){const _0x3fe5be=_0x10bcea;return{'model':db[_0x366d89['model']],'as':_0x366d89['as'],'attributes':_0x366d89[_0x3fe5be('0x22')],'include':_0x366d89[_0x3fe5be('0x1e')]?_[_0x3fe5be('0xb')](_0x366d89[_0x3fe5be('0x1e')],function(_0x33d04a){const _0x4356fb=_0x3fe5be;return{'model':db[_0x33d04a[_0x4356fb('0x9')]],'as':_0x33d04a['as'],'attributes':_0x33d04a['attributes']};}):[]};}):[]};}):[]:[]})['then'](function(_0x17803b){const _0x5c086c=_0x553edc;logger['info']('GetCmContact',_0x2a5687),logger[_0x5c086c('0xe')]('GetCmContact',_0x2a5687,JSON[_0x5c086c('0x19')](_0x17803b)),_0x53dbe1(_0x17803b);})[_0x553edc('0x10')](function(_0x316115){const _0x4296d3=_0x553edc;logger[_0x4296d3('0x1b')](_0x4296d3('0x8'),_0x316115[_0x4296d3('0x1c')],_0x2a5687),_0x5473ee(_0x44f08[_0x4296d3('0x1b')](0x1f4,_0x316115[_0x4296d3('0x1c')]));});});},exports[_0x51ccff('0x20')]=function(_0x1023e7){const _0x268751=this;return new Promise(function(_0x4e51c8,_0x403add){const _0x141527=a129_0x54cf;return db[_0x141527('0x2')][_0x141527('0x16')](_0x1023e7[_0x141527('0x14')],{'raw':_0x1023e7['options']?_0x1023e7[_0x141527('0xf')][_0x141527('0x1d')]===undefined?!![]:![]:!![]})['then'](function(_0x386429){const _0x5378d2=_0x141527;let _0x59e5bd;for(let _0x639739=0x0;_0x639739{}\s\\|]/g,'-'),_0x39ce85(null,util['format'](_0x367a84('0x3'),path[_0x367a84('0xa')](_0x5145fc[_0x367a84('0x0')],path[_0x367a84('0x7')](_0x5145fc[_0x367a84('0x0')])),Date[_0x367a84('0x1a')](),path[_0x367a84('0x7')](_0x5145fc[_0x367a84('0x0')])));}})});router[_0x5c7bd4('0x22')]('/',auth[_0x5c7bd4('0x25')](),controller[_0x5c7bd4('0x8')]),router[_0x5c7bd4('0x22')](_0x5c7bd4('0x18'),auth[_0x5c7bd4('0x25')](),controller[_0x5c7bd4('0x1e')]),router[_0x5c7bd4('0x22')](_0x5c7bd4('0x1f'),auth[_0x5c7bd4('0x25')](),controller[_0x5c7bd4('0x1b')]),router[_0x5c7bd4('0x22')](_0x5c7bd4('0x15'),auth[_0x5c7bd4('0x25')](),controller[_0x5c7bd4('0x28')]),router[_0x5c7bd4('0x22')]('/:id/hoppers',auth[_0x5c7bd4('0x25')](),controller[_0x5c7bd4('0x14')]),router['get'](_0x5c7bd4('0x1'),auth[_0x5c7bd4('0x25')](),controller[_0x5c7bd4('0x2a')]),router[_0x5c7bd4('0x22')](_0x5c7bd4('0x10'),auth[_0x5c7bd4('0x25')](),controller['getHopperFinals']),router[_0x5c7bd4('0x22')](_0x5c7bd4('0x2b'),auth['isAuthenticated'](),controller['getJscriptySessions']),router[_0x5c7bd4('0xb')](_0x5c7bd4('0x23'),auth[_0x5c7bd4('0x25')](),controller[_0x5c7bd4('0x16')]),router[_0x5c7bd4('0xb')]('/',auth[_0x5c7bd4('0x25')](),controller[_0x5c7bd4('0x29')]),router[_0x5c7bd4('0xb')](_0x5c7bd4('0x2c'),auth[_0x5c7bd4('0x25')](),controller['bulkCreate']),router[_0x5c7bd4('0xb')](_0x5c7bd4('0x15'),auth[_0x5c7bd4('0x25')](),controller['setTags']),router['post'](_0x5c7bd4('0x1d'),upload[_0x5c7bd4('0xe')](_0x5c7bd4('0x2')),controller[_0x5c7bd4('0x4')]),router[_0x5c7bd4('0xb')](_0x5c7bd4('0x5'),auth[_0x5c7bd4('0x25')](),controller[_0x5c7bd4('0x20')]),router[_0x5c7bd4('0x24')](_0x5c7bd4('0x1f'),auth['isAuthenticated'](),controller[_0x5c7bd4('0x21')]),router[_0x5c7bd4('0x17')](_0x5c7bd4('0x1f'),auth[_0x5c7bd4('0x25')](),controller['destroy']),module[_0x5c7bd4('0x19')]=router; \ No newline at end of file +const a157_0x214e=['/:id/jscripty_sessions','post','update','diskStorage','create','format','describe','setTags','replace','delete','getTags','../../config/environment','extname','/upload/:id','/merge','/describe','multer','files/tmp','/:id','./cmContact.controller','/upload','/:id/tags','join','originalname','/create_many','%s-%s%s','isAuthenticated','/:id/hopper_histories','express','bulkCreate','getJscriptySessions','destroy','path','get','/:id/hopper_finals','util','upload','basename'];(function(_0x6d4cf4,_0x4417ee){const _0x214e48=function(_0x3450aa){while(--_0x3450aa){_0x6d4cf4['push'](_0x6d4cf4['shift']());}};_0x214e48(++_0x4417ee);}(a157_0x214e,0xe1));const a157_0x3450=function(_0x6d4cf4,_0x4417ee){_0x6d4cf4=_0x6d4cf4-0xa8;let _0x214e48=a157_0x214e[_0x6d4cf4];return _0x214e48;};const a157_0x5bf001=a157_0x3450;'use strict';const multer=require(a157_0x5bf001(0xbb)),util=require(a157_0x5bf001(0xa8)),path=require(a157_0x5bf001(0xcb)),express=require(a157_0x5bf001(0xc7)),router=express['Router'](),auth=require('../../components/auth/service'),config=require(a157_0x5bf001(0xb6)),controller=require(a157_0x5bf001(0xbe)),upload=multer({'storage':multer[a157_0x5bf001(0xae)]({'destination':function(_0x56137f,_0x3e2135,_0x3e525e){const _0x69b163=a157_0x5bf001;_0x3e525e(null,path[_0x69b163(0xc1)](config['root'],_0x69b163(0xbc)));},'filename':function(_0x172a77,_0x3d06f9,_0x3e1d08){const _0x3fec45=a157_0x5bf001;_0x3d06f9[_0x3fec45(0xc2)]=_0x3d06f9[_0x3fec45(0xc2)][_0x3fec45(0xb3)](/[+@&-/\\#,+()$~%'":*?<>{}\s\\|]/g,'-'),_0x3e1d08(null,util[_0x3fec45(0xb0)](_0x3fec45(0xc4),path[_0x3fec45(0xaa)](_0x3d06f9['originalname'],path[_0x3fec45(0xb7)](_0x3d06f9['originalname'])),Date['now'](),path[_0x3fec45(0xb7)](_0x3d06f9[_0x3fec45(0xc2)])));}})});router['get']('/',auth[a157_0x5bf001(0xc5)](),controller['index']),router['get'](a157_0x5bf001(0xba),auth['isAuthenticated'](),controller[a157_0x5bf001(0xb1)]),router[a157_0x5bf001(0xcc)](a157_0x5bf001(0xbd),auth[a157_0x5bf001(0xc5)](),controller['show']),router[a157_0x5bf001(0xcc)](a157_0x5bf001(0xc0),auth[a157_0x5bf001(0xc5)](),controller[a157_0x5bf001(0xb5)]),router['get']('/:id/hoppers',auth['isAuthenticated'](),controller['getHoppers']),router[a157_0x5bf001(0xcc)](a157_0x5bf001(0xc6),auth['isAuthenticated'](),controller['getHopperHistories']),router[a157_0x5bf001(0xcc)](a157_0x5bf001(0xcd),auth[a157_0x5bf001(0xc5)](),controller['getHopperFinals']),router['get'](a157_0x5bf001(0xab),auth['isAuthenticated'](),controller[a157_0x5bf001(0xc9)]),router[a157_0x5bf001(0xac)](a157_0x5bf001(0xb9),auth[a157_0x5bf001(0xc5)](),controller['merge']),router['post']('/',auth[a157_0x5bf001(0xc5)](),controller[a157_0x5bf001(0xaf)]),router[a157_0x5bf001(0xac)](a157_0x5bf001(0xc3),auth[a157_0x5bf001(0xc5)](),controller[a157_0x5bf001(0xc8)]),router[a157_0x5bf001(0xac)](a157_0x5bf001(0xc0),auth[a157_0x5bf001(0xc5)](),controller[a157_0x5bf001(0xb2)]),router[a157_0x5bf001(0xac)](a157_0x5bf001(0xbf),upload['single']('file'),controller[a157_0x5bf001(0xa9)]),router[a157_0x5bf001(0xac)](a157_0x5bf001(0xb8),auth[a157_0x5bf001(0xc5)](),controller['import']),router['put'](a157_0x5bf001(0xbd),auth[a157_0x5bf001(0xc5)](),controller[a157_0x5bf001(0xad)]),router[a157_0x5bf001(0xb4)](a157_0x5bf001(0xbd),auth[a157_0x5bf001(0xc5)](),controller[a157_0x5bf001(0xca)]),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 e42b840..50a85ec 100644 --- a/server/api/cmCustomField/cmCustomField.attributes.js +++ b/server/api/cmCustomField/cmCustomField.attributes.js @@ -1 +1 @@ -const a132_0x2918=['values','setDataValue','parse','STRING','sequelize','getDataValue','voice','TEXT','alias','BOOLEAN','name','exports'];(function(_0x291a1d,_0x291887){const _0x195eac=function(_0x4b5752){while(--_0x4b5752){_0x291a1d['push'](_0x291a1d['shift']());}};_0x195eac(++_0x291887);}(a132_0x2918,0x65));const a132_0x195e=function(_0x291a1d,_0x291887){_0x291a1d=_0x291a1d-0x0;let _0x195eac=a132_0x2918[_0x291a1d];return _0x195eac;};const _0x3752f8=a132_0x195e;'use strict';const Sequelize=require(_0x3752f8('0xb'));module[_0x3752f8('0x6')]={'name':{'type':Sequelize['VIRTUAL'],'get':function(){const _0x5f250f=_0x3752f8;return this[_0x5f250f('0x0')](_0x5f250f('0x3'));}},'alias':{'type':Sequelize[_0x3752f8('0xa')],'allowNull':![],'set':function(_0x4b5752){const _0x231b54=_0x3752f8;this[_0x231b54('0x8')](_0x231b54('0x3'),_0x4b5752?_0x4b5752:this[_0x231b54('0x0')](_0x231b54('0x5')));}},'type':{'type':Sequelize[_0x3752f8('0xa')],'allowNull':![]},'values':{'type':Sequelize[_0x3752f8('0x2')]('long'),'get':function(){const _0x447df7=_0x3752f8;return this[_0x447df7('0x0')]('type')==='select'?JSON[_0x447df7('0x9')](this[_0x447df7('0x0')]('values')):this[_0x447df7('0x0')]('values');},'set':function(_0x3ef971){const _0x336a0d=_0x3752f8;Array['isArray'](_0x3ef971)?this['setDataValue'](_0x336a0d('0x7'),JSON['stringify'](_0x3ef971)):this[_0x336a0d('0x8')](_0x336a0d('0x7'),_0x3ef971);}},'required':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'clickToAction':{'type':Sequelize[_0x3752f8('0x4')],'defaultValue':![]},'actionType':{'type':Sequelize['ENUM'](_0x3752f8('0x1'))}}; \ No newline at end of file +const a158_0x2f9c=['setDataValue','BOOLEAN','alias','getDataValue','TEXT','stringify','long','select','VIRTUAL','parse','STRING','name','values','isArray','sequelize','ENUM','type'];(function(_0x35ada0,_0x4af1ab){const _0x2f9cba=function(_0x3af351){while(--_0x3af351){_0x35ada0['push'](_0x35ada0['shift']());}};_0x2f9cba(++_0x4af1ab);}(a158_0x2f9c,0xe7));const a158_0x3af3=function(_0x35ada0,_0x4af1ab){_0x35ada0=_0x35ada0-0x64;let _0x2f9cba=a158_0x2f9c[_0x35ada0];return _0x2f9cba;};const a158_0x3d5a30=a158_0x3af3;'use strict';const {DataTypes}=require(a158_0x3d5a30(0x68)),attributes={'name':{'type':DataTypes[a158_0x3d5a30(0x73)],'get':function(){const _0x4f4671=a158_0x3d5a30;return this[_0x4f4671(0x6e)](_0x4f4671(0x6d));}},'alias':{'type':DataTypes['STRING'],'allowNull':![],'set':function(_0x18d4a6){const _0x4de772=a158_0x3d5a30;this['setDataValue'](_0x4de772(0x6d),_0x18d4a6?_0x18d4a6:this[_0x4de772(0x6e)](_0x4de772(0x65)));}},'type':{'type':DataTypes[a158_0x3d5a30(0x64)],'allowNull':![]},'values':{'type':DataTypes[a158_0x3d5a30(0x6f)]({'length':a158_0x3d5a30(0x71)}),'get':function(){const _0x228f49=a158_0x3d5a30;return this[_0x228f49(0x6e)](_0x228f49(0x6a))===_0x228f49(0x72)?JSON[_0x228f49(0x74)](this[_0x228f49(0x6e)](_0x228f49(0x66))):this[_0x228f49(0x6e)](_0x228f49(0x66));},'set':function(_0x142c7a){const _0x505014=a158_0x3d5a30;Array[_0x505014(0x67)](_0x142c7a)?this[_0x505014(0x6b)](_0x505014(0x66),JSON[_0x505014(0x70)](_0x142c7a)):this[_0x505014(0x6b)](_0x505014(0x66),_0x142c7a);}},'required':{'type':DataTypes['BOOLEAN'],'defaultValue':![]},'clickToAction':{'type':DataTypes[a158_0x3d5a30(0x6c)],'defaultValue':![]},'actionType':{'type':DataTypes[a158_0x3d5a30(0x69)]('voice')}};module['exports']['attributes']=attributes; \ No newline at end of file diff --git a/server/api/cmCustomField/cmCustomField.controller.js b/server/api/cmCustomField/cmCustomField.controller.js index c2722be..adb6ad9 100644 --- a/server/api/cmCustomField/cmCustomField.controller.js +++ b/server/api/cmCustomField/cmCustomField.controller.js @@ -1 +1 @@ -const a133_0x2caf=['CmCustomField','defaultValue','number','options','attributes','includeAll','offset','Content-Range','length','include','create','catch','end','model','limit','sendStatus','util','type','update','show','addColumn','text','body','../../config/logger','fields','intersection','sort','stack','rows','findOne','api','../../mysqldb','undefined','differenceBy','destroy','VIRTUAL','pick','map','where','keys','index','name','order','then','count','INTEGER','queryInterface','TEXT','rawAttributes','query','fieldName','like','params','key','filters','cm_contacts','merge','Sequelize','lodash','sequelize','../../components/parsers/qs','json','switch','status','filter'];(function(_0x344f70,_0x2cafd6){const _0x3b35ff=function(_0xc2d8ca){while(--_0xc2d8ca){_0x344f70['push'](_0x344f70['shift']());}};_0x3b35ff(++_0x2cafd6);}(a133_0x2caf,0x130));const a133_0x3b35=function(_0x344f70,_0x2cafd6){_0x344f70=_0x344f70-0x0;let _0x3b35ff=a133_0x2caf[_0x344f70];return _0x3b35ff;};const _0x488db2=a133_0x3b35;'use strict';const util=require(_0x488db2('0x25')),_=require(_0x488db2('0xe')),qs=require(_0x488db2('0x10')),logger=require(_0x488db2('0x2c'))(_0x488db2('0x33')),db=require(_0x488db2('0x34'))['db'],{Op}=require(_0x488db2('0xf'));function respondWithResult(_0xc2d8ca,_0x3067a0){return _0x3067a0=_0x3067a0||0xc8,function(_0x49125c){const _0x11f7b6=a133_0x3b35;if(_0x49125c)return _0xc2d8ca[_0x11f7b6('0x13')](_0x3067a0)[_0x11f7b6('0x11')](_0x49125c);};}function respondWithFilteredResult(_0x44bebb,_0x2ac64f){return function(_0x32ede7){const _0x54dc7e=a133_0x3b35;if(_0x32ede7){const _0x140cd2=_0x32ede7[_0x54dc7e('0x0')],_0x1a71b9=_0x2ac64f['offset'];let _0x5e3c5d=_0x2ac64f[_0x54dc7e('0x1b')]+_0x2ac64f[_0x54dc7e('0x23')],_0x1da3b7;return _0x5e3c5d>=_0x140cd2?(_0x5e3c5d=_0x140cd2,_0x1da3b7=0xc8):_0x1da3b7=0xce,_0x44bebb[_0x54dc7e('0x13')](_0x1da3b7),_0x44bebb['set'](_0x54dc7e('0x1c'),_0x1a71b9+'-'+_0x5e3c5d+'/'+_0x140cd2)['json'](_0x32ede7);}return null;};}function saveUpdates(_0x8a0c50){return function(_0x14e1d6){if(_0x14e1d6)return _0x14e1d6['update'](_0x8a0c50)['then'](function(_0x370d09){return _0x370d09;});return null;};}function removeEntity(_0x184179){return function(_0x582347){const _0x227d97=a133_0x3b35;if(_0x582347)return _0x582347[_0x227d97('0x37')]()[_0x227d97('0x40')](function(){const _0x15d07c=_0x227d97;_0x184179['status'](0xcc)[_0x15d07c('0x21')]();});};}function handleEntityNotFound(_0x51efd7){return function(_0x4d84c1){const _0x2aeb1a=a133_0x3b35;return!_0x4d84c1&&_0x51efd7[_0x2aeb1a('0x24')](0x194),_0x4d84c1;};}function handleError(_0x54893c,_0x5f3b5d){return _0x5f3b5d=_0x5f3b5d||0x1f4,function(_0xcebf4a){const _0x2763b3=a133_0x3b35;logger['error'](_0xcebf4a[_0x2763b3('0x30')]),_0xcebf4a['name']&&delete _0xcebf4a[_0x2763b3('0x3e')],_0x54893c['status'](_0x5f3b5d)['send'](_0xcebf4a);};}exports[_0x488db2('0x3d')]=function(_0x4b03a2,_0x3a80c3){const _0x4e0b35=_0x488db2;let _0xe2d5be={};const _0x132854={},_0x409ac2={'count':0x0,'rows':[]},_0x44737c=_[_0x4e0b35('0x3a')](db[_0x4e0b35('0x15')][_0x4e0b35('0x4')],function(_0x5cd87b){const _0xf6149c=_0x4e0b35;return{'name':_0x5cd87b[_0xf6149c('0x6')],'type':_0x5cd87b[_0xf6149c('0x26')][_0xf6149c('0x9')]};});_0x132854[_0x4e0b35('0x22')]=_[_0x4e0b35('0x36')](_[_0x4e0b35('0x3a')](_0x44737c,_0x4e0b35('0x3e')),[_0x4e0b35('0x3e')]),_0x132854[_0x4e0b35('0x5')]=_['keys'](_0x4b03a2[_0x4e0b35('0x5')]),_0x132854[_0x4e0b35('0xa')]=_[_0x4e0b35('0x2e')](_0x132854[_0x4e0b35('0x22')],_0x132854['query']),_0xe2d5be[_0x4e0b35('0x19')]=_[_0x4e0b35('0x2e')](_0x132854[_0x4e0b35('0x22')],qs[_0x4e0b35('0x2d')](_0x4b03a2[_0x4e0b35('0x5')][_0x4e0b35('0x2d')])),_0xe2d5be[_0x4e0b35('0x19')]=_0xe2d5be[_0x4e0b35('0x19')][_0x4e0b35('0x1d')]?_0xe2d5be['attributes']:_0x132854[_0x4e0b35('0x22')];typeof _0x4b03a2['query']['nolimit']===_0x4e0b35('0x35')&&(_0xe2d5be[_0x4e0b35('0x23')]=qs[_0x4e0b35('0x23')](_0x4b03a2[_0x4e0b35('0x5')][_0x4e0b35('0x23')]),_0xe2d5be[_0x4e0b35('0x1b')]=qs[_0x4e0b35('0x1b')](_0x4b03a2[_0x4e0b35('0x5')][_0x4e0b35('0x1b')]));_0xe2d5be[_0x4e0b35('0x3f')]=qs[_0x4e0b35('0x2f')](_0x4b03a2[_0x4e0b35('0x5')]['sort']),_0xe2d5be[_0x4e0b35('0x3b')]=qs[_0x4e0b35('0xa')](_[_0x4e0b35('0x39')](_0x4b03a2['query'],_0x132854[_0x4e0b35('0xa')]),_0x44737c);_0x4b03a2[_0x4e0b35('0x5')][_0x4e0b35('0x14')]&&(_0xe2d5be[_0x4e0b35('0x3b')]=_[_0x4e0b35('0xc')](_0xe2d5be[_0x4e0b35('0x3b')],{[Op['or']]:_[_0x4e0b35('0x3a')](_0x44737c,function(_0x4c44e6){const _0xd610d5=_0x4e0b35;if(_0x4c44e6['type']!==_0xd610d5('0x38')){const _0xc6d6a={};return _0xc6d6a[_0x4c44e6[_0xd610d5('0x3e')]]={[Op[_0xd610d5('0x7')]]:'%'+_0x4b03a2[_0xd610d5('0x5')][_0xd610d5('0x14')]+'%'},_0xc6d6a;}})}));_0xe2d5be=_[_0x4e0b35('0xc')]({},_0xe2d5be,_0x4b03a2[_0x4e0b35('0x18')]);const _0x4d3172={'where':_0xe2d5be['where']};return db[_0x4e0b35('0x15')]['count'](_0x4d3172)[_0x4e0b35('0x40')](function(_0x516c68){const _0x542c8c=_0x4e0b35;return _0x409ac2['count']=_0x516c68,_0x4b03a2[_0x542c8c('0x5')][_0x542c8c('0x1a')]&&(_0xe2d5be[_0x542c8c('0x1e')]=[{'all':!![]}]),db[_0x542c8c('0x15')]['findAll'](_0xe2d5be);})[_0x4e0b35('0x40')](function(_0x5e5d75){const _0x5af582=_0x4e0b35;return _0x409ac2[_0x5af582('0x31')]=_0x5e5d75,_0x409ac2;})[_0x4e0b35('0x40')](respondWithFilteredResult(_0x3a80c3,_0xe2d5be))[_0x4e0b35('0x20')](handleError(_0x3a80c3,null));},exports[_0x488db2('0x28')]=function(_0x2fd0f8,_0x193f7f){const _0x338386=_0x488db2;let _0x2b15f6={'raw':!![],'where':{'id':_0x2fd0f8[_0x338386('0x8')]['id']}};const _0x238958={};return _0x238958[_0x338386('0x22')]=_[_0x338386('0x3c')](db[_0x338386('0x15')][_0x338386('0x4')]),_0x238958[_0x338386('0x5')]=_[_0x338386('0x3c')](_0x2fd0f8[_0x338386('0x5')]),_0x238958['filters']=_[_0x338386('0x2e')](_0x238958['model'],_0x238958[_0x338386('0x5')]),_0x2b15f6[_0x338386('0x19')]=_[_0x338386('0x2e')](_0x238958[_0x338386('0x22')],qs[_0x338386('0x2d')](_0x2fd0f8[_0x338386('0x5')][_0x338386('0x2d')])),_0x2b15f6[_0x338386('0x19')]=_0x2b15f6[_0x338386('0x19')][_0x338386('0x1d')]?_0x2b15f6[_0x338386('0x19')]:_0x238958[_0x338386('0x22')],_0x2fd0f8[_0x338386('0x5')]['includeAll']&&(_0x2b15f6[_0x338386('0x1e')]=[{'all':!![]}]),_0x2b15f6=_[_0x338386('0xc')]({},_0x2b15f6,_0x2fd0f8[_0x338386('0x18')]),db[_0x338386('0x15')]['findOne'](_0x2b15f6)['then'](handleEntityNotFound(_0x193f7f,null))[_0x338386('0x40')](respondWithResult(_0x193f7f,null))[_0x338386('0x20')](handleError(_0x193f7f,null));},exports[_0x488db2('0x27')]=function(_0x4b4810,_0x52a264){const _0x35504a=_0x488db2;return _0x4b4810[_0x35504a('0x2b')]['id']&&delete _0x4b4810[_0x35504a('0x2b')]['id'],db[_0x35504a('0x15')][_0x35504a('0x32')]({'where':{'id':_0x4b4810['params']['id']}})[_0x35504a('0x40')](handleEntityNotFound(_0x52a264,null))[_0x35504a('0x40')](saveUpdates(_0x4b4810[_0x35504a('0x2b')],null))[_0x35504a('0x40')](respondWithResult(_0x52a264,null))[_0x35504a('0x20')](handleError(_0x52a264,null));},exports[_0x488db2('0x37')]=function(_0x156e3a,_0x4b6ff2){const _0x264dee=_0x488db2;return db['CmCustomField']['findOne']({'where':{'id':_0x156e3a['params']['id']}})[_0x264dee('0x40')](handleEntityNotFound(_0x4b6ff2,null))['then'](removeEntity(_0x4b6ff2,null))[_0x264dee('0x20')](handleError(_0x4b6ff2,null));},exports[_0x488db2('0x1f')]=function(_0x2f440b,_0x6cc3c8){const _0x4a4ddd=_0x488db2;let _0x52c511;return db['sequelize']['transaction'](function(_0x384bd5){const _0xc4f665=a133_0x3b35;return db[_0xc4f665('0x15')][_0xc4f665('0x1f')](_0x2f440b[_0xc4f665('0x2b')],{'transaction':_0x384bd5})[_0xc4f665('0x40')](function(_0x202c3f){const _0x2f9ba9=_0xc4f665;_0x52c511=_0x202c3f;const _0x1b7fe7={'type':db[_0x2f9ba9('0xd')][_0x2f9ba9('0x3')],'transaction':_0x384bd5};switch(_0x2f440b['body'][_0x2f9ba9('0x26')]){case _0x2f9ba9('0x2a'):_0x1b7fe7[_0x2f9ba9('0x26')]=db[_0x2f9ba9('0xd')][_0x2f9ba9('0x3')];break;case _0x2f9ba9('0x17'):_0x1b7fe7[_0x2f9ba9('0x26')]=db['Sequelize'][_0x2f9ba9('0x1')];break;case _0x2f9ba9('0x12'):_0x1b7fe7[_0x2f9ba9('0x26')]=db['Sequelize']['BOOLEAN'],_0x1b7fe7[_0x2f9ba9('0x16')]=![];break;default:}return db[_0x2f9ba9('0xf')][_0x2f9ba9('0x2')][_0x2f9ba9('0x29')](_0x2f9ba9('0xb'),util['format']('cf_%d',_0x52c511['id']),_0x1b7fe7);})[_0xc4f665('0x40')](function(){return _0x52c511;});})[_0x4a4ddd('0x40')](respondWithResult(_0x6cc3c8,0xc9))[_0x4a4ddd('0x20')](handleError(_0x6cc3c8,null));}; \ No newline at end of file +const a159_0x4deb=['merge','destroy','BOOLEAN','where','addColumn','send','../../config/logger','findOne','length','set','undefined','stack','attributes','Content-Range','fieldName','create','limit','filters','sendStatus','sequelize','../../components/parsers/qs','model','cf_%d','VIRTUAL','query','transaction','util','catch','intersection','../../mysqldb','options','pick','fields','differenceBy','key','params','name','includeAll','cm_contacts','order','sort','end','findAll','queryInterface','count','filter','map','nolimit','include','show','update','status','keys','offset','error','lodash','index','body','api','type','CmCustomField','then','text','TEXT','format'];(function(_0x7f6eae,_0x551b2b){const _0x4deb21=function(_0x58fcab){while(--_0x58fcab){_0x7f6eae['push'](_0x7f6eae['shift']());}};_0x4deb21(++_0x551b2b);}(a159_0x4deb,0xcf));const a159_0x58fc=function(_0x7f6eae,_0x551b2b){_0x7f6eae=_0x7f6eae-0x18c;let _0x4deb21=a159_0x4deb[_0x7f6eae];return _0x4deb21;};const a159_0x64bfdb=a159_0x58fc;'use strict';const util=require(a159_0x64bfdb(0x19a)),_=require(a159_0x64bfdb(0x1b7)),qs=require(a159_0x64bfdb(0x194)),logger=require(a159_0x64bfdb(0x1c7))(a159_0x64bfdb(0x1ba)),{db}=require(a159_0x64bfdb(0x19d)),{Op,DataTypes}=require(a159_0x64bfdb(0x193));function respondWithResult(_0x527cd3,_0xaa85a9){return _0xaa85a9=_0xaa85a9||0xc8,function(_0xc8efba){const _0x31d520=a159_0x58fc;if(_0xc8efba)return _0x527cd3[_0x31d520(0x1b3)](_0xaa85a9)['json'](_0xc8efba);};}function respondWithFilteredResult(_0x11aa6b,_0x5668bf){return function(_0x2a348f){const _0x40a44b=a159_0x58fc;if(_0x2a348f){const _0x823dda=_0x2a348f[_0x40a44b(0x1ac)],_0x14eba7=_0x5668bf[_0x40a44b(0x1b5)];let _0x53931d=_0x5668bf[_0x40a44b(0x1b5)]+_0x5668bf['limit'],_0x3e3421;return _0x53931d>=_0x823dda?(_0x53931d=_0x823dda,_0x3e3421=0xc8):_0x3e3421=0xce,_0x11aa6b[_0x40a44b(0x1b3)](_0x3e3421),_0x11aa6b[_0x40a44b(0x1ca)](_0x40a44b(0x18d),_0x14eba7+'-'+_0x53931d+'/'+_0x823dda)['json'](_0x2a348f);}return null;};}function saveUpdates(_0x2a83a6){return function(_0x457afb){const _0x49a7fe=a159_0x58fc;if(_0x457afb)return _0x457afb[_0x49a7fe(0x1b2)](_0x2a83a6)[_0x49a7fe(0x1bd)](function(_0x5486c3){return _0x5486c3;});return null;};}function removeEntity(_0x1cceba){return function(_0x401b41){const _0x321851=a159_0x58fc;if(_0x401b41)return _0x401b41[_0x321851(0x1c2)]()[_0x321851(0x1bd)](function(){const _0x46ad1d=_0x321851;_0x1cceba['status'](0xcc)[_0x46ad1d(0x1a9)]();});};}function handleEntityNotFound(_0x1bf59f){return function(_0x30cb2f){const _0x314a37=a159_0x58fc;return!_0x30cb2f&&_0x1bf59f[_0x314a37(0x192)](0x194),_0x30cb2f;};}function handleError(_0x4d9609,_0x20ed36){return _0x20ed36=_0x20ed36||0x1f4,function(_0x1f3d87){const _0x34a0c2=a159_0x58fc;logger[_0x34a0c2(0x1b6)](_0x1f3d87[_0x34a0c2(0x1cc)]),_0x1f3d87[_0x34a0c2(0x1a4)]&&delete _0x1f3d87[_0x34a0c2(0x1a4)],_0x4d9609[_0x34a0c2(0x1b3)](_0x20ed36)[_0x34a0c2(0x1c6)](_0x1f3d87);};}exports[a159_0x64bfdb(0x1b8)]=function(_0x5272dc,_0x50ec6d){const _0x561d39=a159_0x64bfdb;let _0x51f98a={};const _0x2c9e16={},_0x3b4d08={'count':0x0,'rows':[]},_0x4d8379=_[_0x561d39(0x1ae)](db[_0x561d39(0x1bc)]['rawAttributes'],function(_0x496049){const _0x5c3226=_0x561d39;return{'name':_0x496049[_0x5c3226(0x18e)],'type':_0x496049[_0x5c3226(0x1bb)][_0x5c3226(0x1a2)]};});_0x2c9e16['model']=_[_0x561d39(0x1a1)](_[_0x561d39(0x1ae)](_0x4d8379,_0x561d39(0x1a4)),[_0x561d39(0x1a4)]),_0x2c9e16['query']=_[_0x561d39(0x1b4)](_0x5272dc[_0x561d39(0x198)]),_0x2c9e16[_0x561d39(0x191)]=_[_0x561d39(0x19c)](_0x2c9e16[_0x561d39(0x195)],_0x2c9e16['query']),_0x51f98a[_0x561d39(0x18c)]=_['intersection'](_0x2c9e16[_0x561d39(0x195)],qs['fields'](_0x5272dc[_0x561d39(0x198)][_0x561d39(0x1a0)])),_0x51f98a['attributes']=_0x51f98a[_0x561d39(0x18c)]['length']?_0x51f98a[_0x561d39(0x18c)]:_0x2c9e16['model'];typeof _0x5272dc[_0x561d39(0x198)][_0x561d39(0x1af)]===_0x561d39(0x1cb)&&(_0x51f98a['limit']=qs[_0x561d39(0x190)](_0x5272dc[_0x561d39(0x198)][_0x561d39(0x190)]),_0x51f98a['offset']=qs[_0x561d39(0x1b5)](_0x5272dc[_0x561d39(0x198)][_0x561d39(0x1b5)]));_0x51f98a[_0x561d39(0x1a7)]=qs[_0x561d39(0x1a8)](_0x5272dc[_0x561d39(0x198)]['sort']),_0x51f98a[_0x561d39(0x1c4)]=qs[_0x561d39(0x191)](_[_0x561d39(0x19f)](_0x5272dc['query'],_0x2c9e16[_0x561d39(0x191)]),_0x4d8379);_0x5272dc[_0x561d39(0x198)][_0x561d39(0x1ad)]&&(_0x51f98a[_0x561d39(0x1c4)]=_[_0x561d39(0x1c1)](_0x51f98a[_0x561d39(0x1c4)],{[Op['or']]:_[_0x561d39(0x1ae)](_0x4d8379,function(_0x1fc028){const _0x47ab74=_0x561d39;if(_0x1fc028['type']!==_0x47ab74(0x197)){const _0x951ac4={};return _0x951ac4[_0x1fc028[_0x47ab74(0x1a4)]]={[Op['like']]:'%'+_0x5272dc[_0x47ab74(0x198)][_0x47ab74(0x1ad)]+'%'},_0x951ac4;}})}));_0x51f98a=_[_0x561d39(0x1c1)]({},_0x51f98a,_0x5272dc[_0x561d39(0x19e)]);const _0x9acbcd={'where':_0x51f98a[_0x561d39(0x1c4)]};return db['CmCustomField'][_0x561d39(0x1ac)](_0x9acbcd)[_0x561d39(0x1bd)](function(_0x59f807){const _0x30ccba=_0x561d39;return _0x3b4d08[_0x30ccba(0x1ac)]=_0x59f807,_0x5272dc[_0x30ccba(0x198)][_0x30ccba(0x1a5)]&&(_0x51f98a[_0x30ccba(0x1b0)]=[{'all':!![]}]),db[_0x30ccba(0x1bc)][_0x30ccba(0x1aa)](_0x51f98a);})['then'](function(_0x190991){return _0x3b4d08['rows']=_0x190991,_0x3b4d08;})[_0x561d39(0x1bd)](respondWithFilteredResult(_0x50ec6d,_0x51f98a))[_0x561d39(0x19b)](handleError(_0x50ec6d,null));},exports[a159_0x64bfdb(0x1b1)]=function(_0x4bac6c,_0x32fd12){const _0x3ee530=a159_0x64bfdb;let _0x426a18={'raw':!![],'where':{'id':_0x4bac6c['params']['id']}};const _0x4ae64b={};return _0x4ae64b[_0x3ee530(0x195)]=_[_0x3ee530(0x1b4)](db[_0x3ee530(0x1bc)]['rawAttributes']),_0x4ae64b[_0x3ee530(0x198)]=_[_0x3ee530(0x1b4)](_0x4bac6c[_0x3ee530(0x198)]),_0x4ae64b[_0x3ee530(0x191)]=_[_0x3ee530(0x19c)](_0x4ae64b[_0x3ee530(0x195)],_0x4ae64b[_0x3ee530(0x198)]),_0x426a18[_0x3ee530(0x18c)]=_[_0x3ee530(0x19c)](_0x4ae64b['model'],qs[_0x3ee530(0x1a0)](_0x4bac6c[_0x3ee530(0x198)][_0x3ee530(0x1a0)])),_0x426a18[_0x3ee530(0x18c)]=_0x426a18[_0x3ee530(0x18c)][_0x3ee530(0x1c9)]?_0x426a18[_0x3ee530(0x18c)]:_0x4ae64b[_0x3ee530(0x195)],_0x4bac6c[_0x3ee530(0x198)][_0x3ee530(0x1a5)]&&(_0x426a18['include']=[{'all':!![]}]),_0x426a18=_[_0x3ee530(0x1c1)]({},_0x426a18,_0x4bac6c['options']),db[_0x3ee530(0x1bc)][_0x3ee530(0x1c8)](_0x426a18)[_0x3ee530(0x1bd)](handleEntityNotFound(_0x32fd12,null))[_0x3ee530(0x1bd)](respondWithResult(_0x32fd12,null))[_0x3ee530(0x19b)](handleError(_0x32fd12,null));},exports[a159_0x64bfdb(0x1b2)]=function(_0x2785b8,_0x34433e){const _0x18da24=a159_0x64bfdb;return _0x2785b8[_0x18da24(0x1b9)]['id']&&delete _0x2785b8[_0x18da24(0x1b9)]['id'],db['CmCustomField'][_0x18da24(0x1c8)]({'where':{'id':_0x2785b8[_0x18da24(0x1a3)]['id']}})['then'](handleEntityNotFound(_0x34433e,null))[_0x18da24(0x1bd)](saveUpdates(_0x2785b8[_0x18da24(0x1b9)],null))[_0x18da24(0x1bd)](respondWithResult(_0x34433e,null))[_0x18da24(0x19b)](handleError(_0x34433e,null));},exports[a159_0x64bfdb(0x1c2)]=function(_0x31e7eb,_0x28e66b){const _0x3390f0=a159_0x64bfdb;return db[_0x3390f0(0x1bc)][_0x3390f0(0x1c8)]({'where':{'id':_0x31e7eb[_0x3390f0(0x1a3)]['id']}})[_0x3390f0(0x1bd)](handleEntityNotFound(_0x28e66b,null))[_0x3390f0(0x1bd)](removeEntity(_0x28e66b,null))[_0x3390f0(0x19b)](handleError(_0x28e66b,null));},exports['create']=function(_0x2efbbf,_0x126482){const _0x10c0f2=a159_0x64bfdb;let _0x22fbca;return db[_0x10c0f2(0x193)][_0x10c0f2(0x199)](function(_0x5e9469){const _0x123f16=_0x10c0f2;return db['CmCustomField'][_0x123f16(0x18f)](_0x2efbbf[_0x123f16(0x1b9)],{'transaction':_0x5e9469})[_0x123f16(0x1bd)](function(_0x2d5e85){const _0x5a5a54=_0x123f16;_0x22fbca=_0x2d5e85;const _0x1e079b={'type':DataTypes[_0x5a5a54(0x1bf)],'transaction':_0x5e9469};switch(_0x2efbbf[_0x5a5a54(0x1b9)][_0x5a5a54(0x1bb)]){case _0x5a5a54(0x1be):_0x1e079b['type']=DataTypes[_0x5a5a54(0x1bf)];break;case'number':_0x1e079b[_0x5a5a54(0x1bb)]=DataTypes['INTEGER'];break;case'switch':_0x1e079b[_0x5a5a54(0x1bb)]=DataTypes[_0x5a5a54(0x1c3)],_0x1e079b['defaultValue']=![];break;default:}return db[_0x5a5a54(0x193)][_0x5a5a54(0x1ab)][_0x5a5a54(0x1c5)](_0x5a5a54(0x1a6),util[_0x5a5a54(0x1c0)](_0x5a5a54(0x196),_0x22fbca['id']),_0x1e079b);})[_0x123f16(0x1bd)](function(){return _0x22fbca;});})[_0x10c0f2(0x1bd)](respondWithResult(_0x126482,0xc9))['catch'](handleError(_0x126482,null));}; \ No newline at end of file diff --git a/server/api/cmCustomField/cmCustomField.model.js b/server/api/cmCustomField/cmCustomField.model.js index 95af054..8506761 100644 --- a/server/api/cmCustomField/cmCustomField.model.js +++ b/server/api/cmCustomField/cmCustomField.model.js @@ -1 +1 @@ -const a134_0x5de4=['./cmCustomField.attributes','cm_custom_fields','CmCustomField'];(function(_0x12731d,_0x5de467){const _0x212382=function(_0x47f5f1){while(--_0x47f5f1){_0x12731d['push'](_0x12731d['shift']());}};_0x212382(++_0x5de467);}(a134_0x5de4,0x1f1));const a134_0x2123=function(_0x12731d,_0x5de467){_0x12731d=_0x12731d-0x0;let _0x212382=a134_0x5de4[_0x12731d];return _0x212382;};const _0x54dc7c=a134_0x2123;'use strict';const attributes=require(_0x54dc7c('0x1'));module['exports']=function(_0x47f5f1){const _0x2dd073=_0x54dc7c,_0x1837a0=_0x47f5f1['define'](_0x2dd073('0x0'),attributes,{'tableName':_0x2dd073('0x2'),'paranoid':!![],'indexes':[],'timestamps':!![]});return _0x1837a0;}; \ No newline at end of file +const a160_0x1cef=['init','CmCustomField','./cmCustomField.options','./cmCustomField.attributes','function','exports','sequelize'];(function(_0x4cfb45,_0x1f4c37){const _0x1cefe=function(_0x5c879a){while(--_0x5c879a){_0x4cfb45['push'](_0x4cfb45['shift']());}};_0x1cefe(++_0x1f4c37);}(a160_0x1cef,0x103));const a160_0x5c87=function(_0x4cfb45,_0x1f4c37){_0x4cfb45=_0x4cfb45-0x6c;let _0x1cefe=a160_0x1cef[_0x4cfb45];return _0x1cefe;};const a160_0x50e944=a160_0x5c87;'use strict';const {Model}=require(a160_0x50e944(0x72)),{attributes}=require(a160_0x50e944(0x6f)),{options}=require(a160_0x50e944(0x6e));class CmCustomField extends Model{}function init(_0x47407f,_0xc2743c){const _0x1943ab=a160_0x50e944,_0x56cd9a=options(_0x47407f),_0x1e01c3=typeof _0xc2743c===_0x1943ab(0x70)?_0xc2743c(_0x56cd9a):_0x56cd9a;return CmCustomField[_0x1943ab(0x6c)](attributes,_0x1e01c3),CmCustomField;}module[a160_0x50e944(0x71)][a160_0x50e944(0x6d)]=CmCustomField,module[a160_0x50e944(0x71)][a160_0x50e944(0x6c)]=init; \ No newline at end of file diff --git a/server/api/cmCustomField/cmCustomField.options.js b/server/api/cmCustomField/cmCustomField.options.js new file mode 100644 index 0000000..31d483b --- /dev/null +++ b/server/api/cmCustomField/cmCustomField.options.js @@ -0,0 +1 @@ +var a161_0x555f=['cm_custom_fields','options'];(function(_0x51c511,_0x41d8e8){var _0x555f76=function(_0x3df941){while(--_0x3df941){_0x51c511['push'](_0x51c511['shift']());}};_0x555f76(++_0x41d8e8);}(a161_0x555f,0x1f1));var a161_0x3df9=function(_0x51c511,_0x41d8e8){_0x51c511=_0x51c511-0xc0;var _0x555f76=a161_0x555f[_0x51c511];return _0x555f76;};var a161_0xa6da6b=a161_0x3df9;function options(_0x47bdc8){var _0x5ecda6=a161_0x3df9;return{'sequelize':_0x47bdc8,'tableName':_0x5ecda6(0xc1),'paranoid':!![],'indexes':[],'timestamps':!![]};}module['exports'][a161_0xa6da6b(0xc0)]=options; \ No newline at end of file diff --git a/server/api/cmCustomField/index.js b/server/api/cmCustomField/index.js index 129206a..4651ecb 100644 --- a/server/api/cmCustomField/index.js +++ b/server/api/cmCustomField/index.js @@ -1 +1 @@ -const a135_0x4af2=['isAuthenticated','Router','get','exports','update','./cmCustomField.controller','create','show','destroy','../../components/auth/service','/:id'];(function(_0x123469,_0x4af29b){const _0x3921fa=function(_0x4d99a4){while(--_0x4d99a4){_0x123469['push'](_0x123469['shift']());}};_0x3921fa(++_0x4af29b);}(a135_0x4af2,0x13a));const a135_0x3921=function(_0x123469,_0x4af29b){_0x123469=_0x123469-0x0;let _0x3921fa=a135_0x4af2[_0x123469];return _0x3921fa;};const _0xe8444=a135_0x3921;'use strict';const express=require('express'),router=express[_0xe8444('0x6')](),auth=require(_0xe8444('0x3')),controller=require(_0xe8444('0xa'));router[_0xe8444('0x7')]('/',auth['isAuthenticated'](),controller['index']),router[_0xe8444('0x7')](_0xe8444('0x4'),auth['isAuthenticated'](),controller[_0xe8444('0x1')]),router['post']('/',auth[_0xe8444('0x5')](),controller[_0xe8444('0x0')]),router['put']('/:id',auth['isAuthenticated'](),controller[_0xe8444('0x9')]),router['delete']('/:id',auth['isAuthenticated'](),controller[_0xe8444('0x2')]),module[_0xe8444('0x8')]=router; \ No newline at end of file +const a162_0x2745=['put','index','delete','../../components/auth/service','isAuthenticated','exports','update','show','create','destroy','get','/:id','./cmCustomField.controller','post','Router','express'];(function(_0x19c648,_0x16be4e){const _0x274592=function(_0x161060){while(--_0x161060){_0x19c648['push'](_0x19c648['shift']());}};_0x274592(++_0x16be4e);}(a162_0x2745,0x109));const a162_0x1610=function(_0x19c648,_0x16be4e){_0x19c648=_0x19c648-0xc2;let _0x274592=a162_0x2745[_0x19c648];return _0x274592;};const a162_0x25e1a1=a162_0x1610;'use strict';const express=require(a162_0x25e1a1(0xc8)),router=express[a162_0x25e1a1(0xc7)](),auth=require(a162_0x25e1a1(0xcc)),controller=require(a162_0x25e1a1(0xc5));router[a162_0x25e1a1(0xc3)]('/',auth[a162_0x25e1a1(0xcd)](),controller[a162_0x25e1a1(0xca)]),router[a162_0x25e1a1(0xc3)](a162_0x25e1a1(0xc4),auth[a162_0x25e1a1(0xcd)](),controller[a162_0x25e1a1(0xd0)]),router[a162_0x25e1a1(0xc6)]('/',auth[a162_0x25e1a1(0xcd)](),controller[a162_0x25e1a1(0xd1)]),router[a162_0x25e1a1(0xc9)](a162_0x25e1a1(0xc4),auth['isAuthenticated'](),controller[a162_0x25e1a1(0xcf)]),router[a162_0x25e1a1(0xcb)](a162_0x25e1a1(0xc4),auth['isAuthenticated'](),controller[a162_0x25e1a1(0xc2)]),module[a162_0x25e1a1(0xce)]=router; \ No newline at end of file diff --git a/server/api/cmHopper/cmHopper.attributes.js b/server/api/cmHopper/cmHopper.attributes.js index 32d4fa5..a91b0f8 100644 --- a/server/api/cmHopper/cmHopper.attributes.js +++ b/server/api/cmHopper/cmHopper.attributes.js @@ -1 +1 @@ -const a136_0x231a=['moment','STRING','contactListQueue','format','DATE','sequelize','BOOLEAN','YYYY-MM-DD\x20HH:mm:ss','UNSIGNED','INTEGER'];(function(_0x70d84c,_0x231a18){const _0x5984d7=function(_0x22722a){while(--_0x22722a){_0x70d84c['push'](_0x70d84c['shift']());}};_0x5984d7(++_0x231a18);}(a136_0x231a,0xc4));const a136_0x5984=function(_0x70d84c,_0x231a18){_0x70d84c=_0x70d84c-0x0;let _0x5984d7=a136_0x231a[_0x70d84c];return _0x5984d7;};const _0x2f3efa=a136_0x5984;'use strict';const moment=require(_0x2f3efa('0x4')),Sequelize=require(_0x2f3efa('0x9'));module['exports']={'phone':{'type':Sequelize[_0x2f3efa('0x5')],'allowNull':![]},'active':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'scheduledat':{'type':Sequelize[_0x2f3efa('0x8')],'defaultValue':moment()[_0x2f3efa('0x7')](_0x2f3efa('0x1'))},'countbusyretry':{'type':Sequelize[_0x2f3efa('0x3')],'defaultValue':0x0},'countcongestionretry':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'countnoanswerretry':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'callback':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'callbackuniqueid':{'type':Sequelize['STRING'],'defaultValue':null},'callbackat':{'type':Sequelize['DATE']},'priority':{'type':Sequelize[_0x2f3efa('0x3')](0x2)[_0x2f3efa('0x2')],'defaultValue':0x2,'validate':{'min':0x0,'max':0x4}},'recallme':{'type':Sequelize[_0x2f3efa('0x0')],'defaultValue':![]},'ContactId':{'type':Sequelize['INTEGER'],'unique':'contactListQueue'},'ListId':{'type':Sequelize[_0x2f3efa('0x3')],'unique':_0x2f3efa('0x6')},'UserId':{'type':Sequelize['INTEGER']},'VoiceQueueId':{'type':Sequelize['INTEGER'],'unique':'contactListQueue'},'CampaignId':{'type':Sequelize[_0x2f3efa('0x3')]},'countnosuchnumberretry':{'type':Sequelize[_0x2f3efa('0x3')],'defaultValue':0x0},'countdropretry':{'type':Sequelize[_0x2f3efa('0x3')],'defaultValue':0x0},'countabandonedretry':{'type':Sequelize[_0x2f3efa('0x3')],'defaultValue':0x0},'countmachineretry':{'type':Sequelize[_0x2f3efa('0x3')],'defaultValue':0x0},'countagentrejectretry':{'type':Sequelize[_0x2f3efa('0x3')],'defaultValue':0x0}}; \ No newline at end of file +const a163_0x5593=['contactListQueue','STRING','sequelize','BOOLEAN','exports','INTEGER','format','DATE'];(function(_0x56d665,_0x4e62c1){const _0x5593c3=function(_0x32c2cc){while(--_0x32c2cc){_0x56d665['push'](_0x56d665['shift']());}};_0x5593c3(++_0x4e62c1);}(a163_0x5593,0xd2));const a163_0x32c2=function(_0x56d665,_0x4e62c1){_0x56d665=_0x56d665-0x148;let _0x5593c3=a163_0x5593[_0x56d665];return _0x5593c3;};const a163_0x1619eb=a163_0x32c2;'use strict';const moment=require('moment'),{DataTypes}=require(a163_0x1619eb(0x148)),attributes={'phone':{'type':DataTypes[a163_0x1619eb(0x14f)],'allowNull':![]},'active':{'type':DataTypes[a163_0x1619eb(0x149)],'defaultValue':![]},'scheduledat':{'type':DataTypes['DATE'],'defaultValue':moment()[a163_0x1619eb(0x14c)]('YYYY-MM-DD\x20HH:mm:ss')},'countbusyretry':{'type':DataTypes[a163_0x1619eb(0x14b)],'defaultValue':0x0},'countcongestionretry':{'type':DataTypes[a163_0x1619eb(0x14b)],'defaultValue':0x0},'countnoanswerretry':{'type':DataTypes[a163_0x1619eb(0x14b)],'defaultValue':0x0},'callback':{'type':DataTypes[a163_0x1619eb(0x149)],'defaultValue':![]},'callbackuniqueid':{'type':DataTypes[a163_0x1619eb(0x14f)],'defaultValue':null},'callbackat':{'type':DataTypes[a163_0x1619eb(0x14d)]},'priority':{'type':DataTypes[a163_0x1619eb(0x14b)]({'length':0x2})['UNSIGNED'],'defaultValue':0x2,'validate':{'min':0x0,'max':0x4}},'recallme':{'type':DataTypes['BOOLEAN'],'defaultValue':![]},'ContactId':{'type':DataTypes[a163_0x1619eb(0x14b)],'unique':a163_0x1619eb(0x14e)},'ListId':{'type':DataTypes[a163_0x1619eb(0x14b)],'unique':a163_0x1619eb(0x14e)},'UserId':{'type':DataTypes[a163_0x1619eb(0x14b)]},'VoiceQueueId':{'type':DataTypes['INTEGER'],'unique':a163_0x1619eb(0x14e)},'CampaignId':{'type':DataTypes[a163_0x1619eb(0x14b)]},'countnosuchnumberretry':{'type':DataTypes['INTEGER'],'defaultValue':0x0},'countdropretry':{'type':DataTypes[a163_0x1619eb(0x14b)],'defaultValue':0x0},'countabandonedretry':{'type':DataTypes[a163_0x1619eb(0x14b)],'defaultValue':0x0},'countmachineretry':{'type':DataTypes[a163_0x1619eb(0x14b)],'defaultValue':0x0},'countagentrejectretry':{'type':DataTypes[a163_0x1619eb(0x14b)],'defaultValue':0x0}};module[a163_0x1619eb(0x14a)]['attributes']=attributes; \ No newline at end of file diff --git a/server/api/cmHopper/cmHopper.controller.js b/server/api/cmHopper/cmHopper.controller.js index 101f629..49fb3ee 100644 --- a/server/api/cmHopper/cmHopper.controller.js +++ b/server/api/cmHopper/cmHopper.controller.js @@ -1 +1 @@ -const a137_0x4413=['prev','deleted','lastName','../../config/logger','CmCompany','user','$any','body','findOne','$lte','createdAt','state','VoiceQueue','model','calleridname','outbound','sequelize','like','ivr','$contained','lte','type','rawAttributes','limit','dialActive','api','intersection','firstName','attributes','phone','CmHopper,\x20%s,\x20%s,\x20%s','findAll','update','direction','isEmpty','finally','filter','then','send','params','queue','CmContac','CmList','$lt','json','index','length','CampaignId','transaction','query','calleridnum','destroy','omit','fields','undefined','merge','error','statedesc','ASC','create','sendStatus','campaign','UserId','count','where','nolimit','keys','$or','CmHopperFinal','stack','offset','$notLike','isNumber','order','getPreview','$in','moment','scheduledat','YYYY-MM-DD\x20HH:mm:ss','scheduledAt','sort','$like','UPDATE','VoiceQueueId','isNil','$notBetween','hopperIds','deletedat','../../components/parsers/qs','entity\x20not\x20found','show','describe','map','key','$gte','$notILike','DESC','../../mysqldb','format','$contains','Company','LOCK','$and','Contact','dialOrderByScheduledAt','List','options','name','catch','filters','Campaign','getOpenContacts','COALESCE(CmHopper.UserId,\x200)\x20DESC','set','fieldName','membername','pick','preview','CmContact','VIRTUAL','CmHopper','include','includeAll','status','getVoiceQueues'];(function(_0x28863f,_0x4413d0){const _0x2bf6d0=function(_0xf44af0){while(--_0xf44af0){_0x28863f['push'](_0x28863f['shift']());}};_0x2bf6d0(++_0x4413d0);}(a137_0x4413,0xea));const a137_0x2bf6=function(_0x28863f,_0x4413d0){_0x28863f=_0x28863f-0x0;let _0x2bf6d0=a137_0x4413[_0x28863f];return _0x2bf6d0;};const _0x10687c=a137_0x2bf6;'use strict';const moment=require(_0x10687c('0x5c')),_=require('lodash'),qs=require(_0x10687c('0x68')),logger=require(_0x10687c('0x13'))(_0x10687c('0x29')),db=require(_0x10687c('0x71'))['db'],{Op,literal}=require(_0x10687c('0x20'));function respondWithResult(_0xf44af0,_0x60e57c){return _0x60e57c=_0x60e57c||0xc8,function(_0x3640fa){const _0x326d53=a137_0x2bf6;if(_0x3640fa)return _0xf44af0[_0x326d53('0xe')](_0x60e57c)['json'](_0x3640fa);};}function respondWithFilteredResult(_0x4c7f79,_0x18aa9e){return function(_0x161333){const _0x7f7609=a137_0x2bf6;if(_0x161333){const _0x4c16e2=_0x161333['count'],_0xa5d63a=_0x18aa9e[_0x7f7609('0x56')];let _0x4d992e=_0x18aa9e['offset']+_0x18aa9e[_0x7f7609('0x27')],_0x320cf4;return _0x4d992e>=_0x4c16e2?(_0x4d992e=_0x4c16e2,_0x320cf4=0xc8):_0x320cf4=0xce,_0x4c7f79['status'](_0x320cf4),_0x4c7f79[_0x7f7609('0x4')]('Content-Range',_0xa5d63a+'-'+_0x4d992e+'/'+_0x4c16e2)[_0x7f7609('0x3c')](_0x161333);}return null;};}function saveUpdates(_0xe776b){return function(_0x15e9cf){const _0x125057=a137_0x2bf6;if(_0x15e9cf)return _0x15e9cf[_0x125057('0x30')](_0xe776b)[_0x125057('0x35')](function(_0x574e7f){return _0x574e7f;});return null;};}function handleEntityNotFound(_0x56fb13){return function(_0x6820c3){const _0x1fda52=a137_0x2bf6;return!_0x6820c3&&_0x56fb13[_0x1fda52('0x4c')](0x194),_0x6820c3;};}function handleError(_0x3986bd,_0x1c03a4){return _0x1c03a4=_0x1c03a4||0x1f4,function(_0x4ade10){const _0x112751=a137_0x2bf6;logger['error'](_0x4ade10[_0x112751('0x55')]),_0x4ade10[_0x112751('0x7b')]&&delete _0x4ade10[_0x112751('0x7b')],_0x3986bd['status'](_0x1c03a4)[_0x112751('0x36')](_0x4ade10);};}exports[_0x10687c('0x3d')]=function(_0x23d3c2,_0x428040){const _0x47ee6a=_0x10687c;let _0x5198ef={};const _0x4bb948={},_0x17229b={'count':0x0,'rows':[]},_0x3451bf=_[_0x47ee6a('0x6c')](db[_0x47ee6a('0xb')]['rawAttributes'],function(_0x433178){const _0x46d5e2=_0x47ee6a;return{'name':_0x433178[_0x46d5e2('0x5')],'type':_0x433178[_0x46d5e2('0x25')][_0x46d5e2('0x6d')]};});_0x4bb948['model']=_['map'](_0x3451bf,_0x47ee6a('0x7b')),_0x4bb948[_0x47ee6a('0x41')]=_[_0x47ee6a('0x52')](_0x23d3c2[_0x47ee6a('0x41')]),_0x4bb948[_0x47ee6a('0x0')]=_[_0x47ee6a('0x2a')](_0x4bb948[_0x47ee6a('0x1d')],_0x4bb948[_0x47ee6a('0x41')]),_0x4bb948[_0x47ee6a('0x0')]=_['concat'](_0x4bb948['filters'],[_0x47ee6a('0x76'),_0x47ee6a('0x53'),'$gt',_0x47ee6a('0x6e'),_0x47ee6a('0x3b'),_0x47ee6a('0x19'),'$ne','$eq','$not','$between',_0x47ee6a('0x65'),_0x47ee6a('0x5b'),'$notIn',_0x47ee6a('0x61'),_0x47ee6a('0x57'),'$iLike',_0x47ee6a('0x6f'),_0x47ee6a('0x61'),'$overlap',_0x47ee6a('0x73'),_0x47ee6a('0x23'),_0x47ee6a('0x16')]),_0x5198ef['attributes']=_[_0x47ee6a('0x2a')](_0x4bb948[_0x47ee6a('0x1d')],qs['fields'](_0x23d3c2[_0x47ee6a('0x41')][_0x47ee6a('0x45')])),_0x5198ef[_0x47ee6a('0x2c')]=_0x5198ef[_0x47ee6a('0x2c')][_0x47ee6a('0x3e')]?_0x5198ef['attributes']:_0x4bb948[_0x47ee6a('0x1d')];typeof _0x23d3c2[_0x47ee6a('0x41')][_0x47ee6a('0x51')]===_0x47ee6a('0x46')&&(_0x5198ef['limit']=qs[_0x47ee6a('0x27')](_0x23d3c2[_0x47ee6a('0x41')][_0x47ee6a('0x27')]),_0x5198ef['offset']=qs['offset'](_0x23d3c2['query'][_0x47ee6a('0x56')]));_0x5198ef[_0x47ee6a('0x59')]=qs[_0x47ee6a('0x60')](_0x23d3c2[_0x47ee6a('0x41')][_0x47ee6a('0x60')]),_0x5198ef['where']=qs[_0x47ee6a('0x0')](_[_0x47ee6a('0x7')](_0x23d3c2[_0x47ee6a('0x41')],_0x4bb948[_0x47ee6a('0x0')]),_0x3451bf);_0x23d3c2[_0x47ee6a('0x41')]['filter']&&(_0x5198ef[_0x47ee6a('0x50')]=_[_0x47ee6a('0x47')](_0x5198ef[_0x47ee6a('0x50')],{[Op['or']]:_[_0x47ee6a('0x6c')](_0x3451bf,function(_0x2d72b7){const _0x4c3834=_0x47ee6a;if(_0x2d72b7[_0x4c3834('0x25')]!==_0x4c3834('0xa')){const _0xf73323={};return _0xf73323[_0x2d72b7[_0x4c3834('0x7b')]]={[Op[_0x4c3834('0x21')]]:'%'+_0x23d3c2['query'][_0x4c3834('0x34')]+'%'},_0xf73323;}})}));_0x5198ef=_[_0x47ee6a('0x47')]({},_0x5198ef,_0x23d3c2['options']);const _0x3acb3d={'where':_0x5198ef['where']};return db[_0x47ee6a('0xb')][_0x47ee6a('0x4f')](_0x3acb3d)['then'](function(_0x48a5f8){const _0x3e2236=_0x47ee6a;return _0x17229b['count']=_0x48a5f8,_0x23d3c2[_0x3e2236('0x41')][_0x3e2236('0xd')]&&(_0x5198ef[_0x3e2236('0xc')]=[{'all':!![]}]),db[_0x3e2236('0xb')][_0x3e2236('0x2f')](_0x5198ef);})[_0x47ee6a('0x35')](function(_0x551cb8){return _0x17229b['rows']=_0x551cb8,_0x17229b;})['then'](respondWithFilteredResult(_0x428040,_0x5198ef))[_0x47ee6a('0x7c')](handleError(_0x428040,null));},exports[_0x10687c('0x6a')]=function(_0x34aebf,_0x471543){const _0x3f8eb8=_0x10687c;let _0x31f5ac={'raw':!![],'where':{'id':_0x34aebf[_0x3f8eb8('0x37')]['id']}};const _0x131416={};return _0x131416[_0x3f8eb8('0x1d')]=_[_0x3f8eb8('0x52')](db[_0x3f8eb8('0xb')][_0x3f8eb8('0x26')]),_0x131416[_0x3f8eb8('0x41')]=_[_0x3f8eb8('0x52')](_0x34aebf[_0x3f8eb8('0x41')]),_0x131416[_0x3f8eb8('0x0')]=_['intersection'](_0x131416[_0x3f8eb8('0x1d')],_0x131416['query']),_0x31f5ac[_0x3f8eb8('0x2c')]=_[_0x3f8eb8('0x2a')](_0x131416[_0x3f8eb8('0x1d')],qs[_0x3f8eb8('0x45')](_0x34aebf['query'][_0x3f8eb8('0x45')])),_0x31f5ac[_0x3f8eb8('0x2c')]=_0x31f5ac[_0x3f8eb8('0x2c')][_0x3f8eb8('0x3e')]?_0x31f5ac[_0x3f8eb8('0x2c')]:_0x131416[_0x3f8eb8('0x1d')],_0x34aebf[_0x3f8eb8('0x41')][_0x3f8eb8('0xd')]&&(_0x31f5ac[_0x3f8eb8('0xc')]=[{'all':!![]}]),_0x31f5ac=_[_0x3f8eb8('0x47')]({},_0x31f5ac,_0x34aebf[_0x3f8eb8('0x7a')]),db[_0x3f8eb8('0xb')]['findOne'](_0x31f5ac)[_0x3f8eb8('0x35')](handleEntityNotFound(_0x471543,null))[_0x3f8eb8('0x35')](respondWithResult(_0x471543,null))[_0x3f8eb8('0x7c')](handleError(_0x471543,null));},exports['create']=function(_0x4cf153,_0x2255f6){const _0x554ffd=_0x10687c;return db['CmHopper'][_0x554ffd('0x4b')](_0x4cf153[_0x554ffd('0x17')],{})[_0x554ffd('0x35')](respondWithResult(_0x2255f6,0xc9))[_0x554ffd('0x7c')](handleError(_0x2255f6,null));},exports['update']=function(_0x338934,_0x58b31c){const _0x154bc4=_0x10687c;return _0x338934[_0x154bc4('0x17')]['id']&&delete _0x338934[_0x154bc4('0x17')]['id'],db[_0x154bc4('0xb')]['findOne']({'where':{'id':_0x338934[_0x154bc4('0x37')]['id']}})['then'](handleEntityNotFound(_0x58b31c,null))[_0x154bc4('0x35')](saveUpdates(_0x338934[_0x154bc4('0x17')],null))[_0x154bc4('0x35')](respondWithResult(_0x58b31c,null))['catch'](handleError(_0x58b31c,null));},exports[_0x10687c('0x6b')]=function(_0x1d9254,_0x2c43fa){const _0x5b7288=_0x10687c;return db['CmHopper'][_0x5b7288('0x6b')]()[_0x5b7288('0x35')](respondWithResult(_0x2c43fa,null))['catch'](handleError(_0x2c43fa,null));},exports[_0x10687c('0x43')]=function(_0x646ce,_0x19afa4){const _0x22e36c=_0x10687c;let _0x1779bf;return db[_0x22e36c('0xb')]['findOne']({'where':{'id':_0x646ce[_0x22e36c('0x37')]['id']}})['then'](handleEntityNotFound(_0x19afa4,null))['then'](function(_0x1b13ac){if(_0x1b13ac)return _0x1b13ac['destroy']()['then'](function(_0x7bd008){return _0x7bd008;});})['then'](function(_0x5b7bbf){const _0x48a3d8=_0x22e36c;_0x1779bf=_0x5b7bbf;if(_0x5b7bbf){if(_0x5b7bbf[_0x48a3d8('0x63')]||_0x5b7bbf[_0x48a3d8('0x3f')])return db[_0x5b7bbf[_0x48a3d8('0x63')]?_0x48a3d8('0x1c'):_0x48a3d8('0x1')][_0x48a3d8('0x18')]({'where':{'id':_0x5b7bbf[_0x48a3d8('0x63')]?_0x5b7bbf[_0x48a3d8('0x63')]:_0x5b7bbf[_0x48a3d8('0x3f')]},'attributes':['id',_0x48a3d8('0x7b')],'raw':!![]});}})[_0x22e36c('0x35')](function(_0x20123d){const _0x31df01=_0x22e36c,_0x777d8f={};if(_0x20123d)return _['merge'](_0x777d8f,_[_0x31df01('0x44')](_0x1779bf['dataValues'],[_0x31df01('0x1a'),'updatedAt','id'])),_0x777d8f[_0x31df01('0x1b')]=0x15,_0x777d8f[_0x31df01('0x49')]=_0x31df01('0x11'),_0x777d8f[_0x31df01('0x4d')]=_0x20123d[_0x31df01('0x7b')],_0x777d8f[_0x31df01('0x6')]=_0x646ce['user'][_0x31df01('0x7b')],_0x777d8f[_0x31df01('0x4e')]=_0x646ce['user']['id'],_0x777d8f[_0x31df01('0x11')]=!![],_0x777d8f[_0x31df01('0x67')]=moment()[_0x31df01('0x72')]('YYYY-MM-DD\x20HH:mm:ss'),_0x777d8f[_0x31df01('0x42')]=_0x1779bf[_0x31df01('0x2d')],_0x777d8f['campaigntype']=_0x1779bf['VoiceQueueId']?_0x31df01('0x38'):_0x31df01('0x22'),db[_0x31df01('0x39')]['findOne']({'where':{'id':_0x777d8f['ContactId']},'attributes':[_0x31df01('0x2b'),_0x31df01('0x12')]})['then'](function(_0xc3d2b0){const _0x4a2d5c=_0x31df01;!_[_0x4a2d5c('0x64')](_0x19afa4)&&!_[_0x4a2d5c('0x64')](_0xc3d2b0[_0x4a2d5c('0x2b')])&&(_0x777d8f[_0x4a2d5c('0x1e')]=_0xc3d2b0['firstName'],!_[_0x4a2d5c('0x64')](_0xc3d2b0['lastName'])&&(_0x777d8f['calleridname']+='\x20'+_0xc3d2b0[_0x4a2d5c('0x12')]));})[_0x31df01('0x33')](function(){const _0x1b0135=_0x31df01;return db[_0x1b0135('0x54')]['create'](_0x777d8f);});})[_0x22e36c('0x35')](function(){return _0x19afa4['status'](0xcc)['end']();})['catch'](handleError(_0x19afa4,null));},exports[_0x10687c('0x5a')]=function(_0x3bdc20,_0x220c9f){const _0x2b8c98=_0x10687c;let _0x3f1526=[];return db[_0x2b8c98('0x9')][_0x2b8c98('0x6b')]()['then'](function(_0x40618d){const _0x42f229=_0x2b8c98;return _0x3f1526=_[_0x42f229('0x52')](_0x40618d),_0x3bdc20[_0x42f229('0x15')]['getVoiceQueues']({'where':{'type':_0x42f229('0x1f'),'dialActive':!![],'dialMethod':'preview'},'attributes':['id',_0x42f229('0x78')],'raw':!![]});})[_0x2b8c98('0x35')](function(_0x379bea){const _0x30a924=_0x2b8c98;if(_0x379bea&&_0x379bea['length'])return db[_0x30a924('0x20')][_0x30a924('0x40')](function(_0x365fdf){const _0x3e38b2=_0x30a924,_0x372002={'active':![],'recallme':![],'scheduledAt':{[Op[_0x3e38b2('0x24')]]:moment()[_0x3e38b2('0x72')](_0x3e38b2('0x5e'))},'VoiceQueueId':{[Op['in']]:_[_0x3e38b2('0x6c')](_0x379bea,'id')},[Op['or']]:[{'UserId':null},{'UserId':_0x3bdc20['user']['id']}]};let _0x50c966=[];return _0x3bdc20[_0x3e38b2('0x17')][_0x3e38b2('0x31')]&&_0x3bdc20[_0x3e38b2('0x17')]['direction']===_0x3e38b2('0x10')?(!_[_0x3e38b2('0x32')](_0x3bdc20['body'][_0x3e38b2('0x66')])&&(_0x372002['id']={'$in':_0x3bdc20[_0x3e38b2('0x17')][_0x3e38b2('0x66')]}),_0x50c966=[['priority',_0x3e38b2('0x4a')],['scheduledAt',_0x379bea[0x0][_0x3e38b2('0x78')]===_0x3e38b2('0x4a')?_0x3e38b2('0x70'):_0x3e38b2('0x4a')],literal('COALESCE(CmHopper.UserId,\x200)\x20ASC'),['id',_0x3e38b2('0x70')]]):(!_['isEmpty'](_0x3bdc20[_0x3e38b2('0x17')]['hopperIds'])&&(_0x372002['id']={'$notIn':_0x3bdc20[_0x3e38b2('0x17')][_0x3e38b2('0x66')]}),_0x50c966=[['priority',_0x3e38b2('0x70')],[_0x3e38b2('0x5f'),_0x379bea[0x0][_0x3e38b2('0x78')]],literal(_0x3e38b2('0x3')),['id',_0x3e38b2('0x4a')]]),db['CmHopper']['findOne']({'attributes':['id',_0x3e38b2('0x5d')],'where':_0x372002,'order':_0x50c966,'transaction':_0x365fdf,'lock':_0x365fdf[_0x3e38b2('0x75')][_0x3e38b2('0x62')],'include':[{'model':db[_0x3e38b2('0x9')],'as':_0x3e38b2('0x77'),'attributes':_0x3f1526,'include':[{'model':db[_0x3e38b2('0x14')],'as':_0x3e38b2('0x74'),'attributes':['id',_0x3e38b2('0x7b')]}]},{'model':db[_0x3e38b2('0x3a')],'as':_0x3e38b2('0x79'),'attributes':['id',_0x3e38b2('0x7b')]},{'model':db['VoiceQueue'],'as':'Queue','attributes':['id',_0x3e38b2('0x7b'),_0x3e38b2('0x28')]}]})[_0x3e38b2('0x35')](function(_0x53d68b){if(_0x53d68b)return _0x53d68b['update']({'UserId':_0x3bdc20['user']['id']},{'transaction':_0x365fdf});});});})['then'](handleEntityNotFound(_0x220c9f,null))['then'](respondWithResult(_0x220c9f,null))['catch'](handleError(_0x220c9f,null));},exports[_0x10687c('0x2')]=function(_0x2c5380,_0xb5eb9a){const _0x554ed6=_0x10687c;return _0x2c5380[_0x554ed6('0x15')][_0x554ed6('0xf')]({'where':{'type':_0x554ed6('0x1f'),'dialActive':!![],'dialMethod':_0x554ed6('0x8')},'attributes':['id'],'raw':!![]})[_0x554ed6('0x35')](function(_0x307cda){const _0x4636e1=_0x554ed6;if(_0x307cda&&_0x307cda[_0x4636e1('0x3e')])return db[_0x4636e1('0xb')][_0x4636e1('0x4f')]({'where':{'active':![],'recallme':![],'scheduledAt':{[Op[_0x4636e1('0x24')]]:moment()['format'](_0x4636e1('0x5e'))},'VoiceQueueId':{[Op['in']]:_[_0x4636e1('0x6c')](_0x307cda,'id')},[Op['or']]:[{'UserId':null},{'UserId':_0x2c5380[_0x4636e1('0x15')]['id']}]}});return 0x0;})[_0x554ed6('0x35')](function(_0x113f22){const _0x464d56=_0x554ed6;if(!_[_0x464d56('0x64')](_0x113f22)&&_[_0x464d56('0x58')](_0x113f22))return _0xb5eb9a['status'](0xc8)['json']({'contacts':_0x113f22});else logger[_0x464d56('0x48')](_0x464d56('0x2e'),_0x464d56('0x2'),0x194,_0x464d56('0x69')),_0xb5eb9a[_0x464d56('0x4c')](0x194);})[_0x554ed6('0x7c')](handleError(_0xb5eb9a,null));}; \ No newline at end of file +const a164_0xfc20=['length','Company','concat','isNil','ContactId','CmHopperFinal','$contains','CampaignId','deleted','attributes','DESC','$lt','count','params','$and','isNumber','$not','UPDATE','preview','LOCK','type','$lte','fields','format','../../components/parsers/qs','entity\x20not\x20found','priority','user','VoiceQueueId','hopperIds','create','error','lodash','describe','Campaign','$notIn','filter','sequelize','ASC','intersection','update','index','UserId','options','rawAttributes','then','catch','phone','$like','nolimit','body','Contact','order','model','ivr','$notLike','$ne','keys','finally','filters','query','scheduledAt','moment','CmHopper,\x20%s,\x20%s,\x20%s','merge','set','omit','isEmpty','COALESCE(CmHopper.UserId,\x200)\x20ASC','campaigntype','$between','../../mysqldb','offset','findOne','status','$contained','$gte','send','map','where','destroy','sendStatus','outbound','$in','dataValues','limit','rows','sort','transaction','lte','campaign','scheduledat','findAll','json','direction','CmCompany','$any','VIRTUAL','end','dialOrderByScheduledAt','Queue','getPreview','$or','createdAt','statedesc','$overlap','show','YYYY-MM-DD\x20HH:mm:ss','name','../../config/logger','calleridname','CmHopper','getVoiceQueues','lastName','firstName','includeAll','VoiceQueue','$notILike','key','List','prev'];(function(_0x29e22b,_0x44e60d){const _0xfc20f2=function(_0x4e5e8e){while(--_0x4e5e8e){_0x29e22b['push'](_0x29e22b['shift']());}};_0xfc20f2(++_0x44e60d);}(a164_0xfc20,0x10c));const a164_0x4e5e=function(_0x29e22b,_0x44e60d){_0x29e22b=_0x29e22b-0x1c1;let _0xfc20f2=a164_0xfc20[_0x29e22b];return _0xfc20f2;};const a164_0x56c90a=a164_0x4e5e;'use strict';const moment=require(a164_0x56c90a(0x1e5)),_=require(a164_0x56c90a(0x1c7)),qs=require(a164_0x56c90a(0x238)),logger=require(a164_0x56c90a(0x214))('api'),{db}=require(a164_0x56c90a(0x1ee)),{Op,literal}=require(a164_0x56c90a(0x1cc));function respondWithResult(_0x5b612b,_0x40d465){return _0x40d465=_0x40d465||0xc8,function(_0x48e382){const _0xeed018=a164_0x4e5e;if(_0x48e382)return _0x5b612b['status'](_0x40d465)[_0xeed018(0x204)](_0x48e382);};}function respondWithFilteredResult(_0x921b0e,_0x57de74){return function(_0x2ea390){const _0x291a2c=a164_0x4e5e;if(_0x2ea390){const _0x1cc8d5=_0x2ea390['count'],_0xbc2cbe=_0x57de74[_0x291a2c(0x1ef)];let _0x3b5916=_0x57de74[_0x291a2c(0x1ef)]+_0x57de74[_0x291a2c(0x1fc)],_0x4c5990;return _0x3b5916>=_0x1cc8d5?(_0x3b5916=_0x1cc8d5,_0x4c5990=0xc8):_0x4c5990=0xce,_0x921b0e[_0x291a2c(0x1f1)](_0x4c5990),_0x921b0e[_0x291a2c(0x1e8)]('Content-Range',_0xbc2cbe+'-'+_0x3b5916+'/'+_0x1cc8d5)[_0x291a2c(0x204)](_0x2ea390);}return null;};}function saveUpdates(_0x1cd8ef){return function(_0x5bb39f){const _0x356ffb=a164_0x4e5e;if(_0x5bb39f)return _0x5bb39f[_0x356ffb(0x1cf)](_0x1cd8ef)[_0x356ffb(0x1d4)](function(_0x39b4a0){return _0x39b4a0;});return null;};}function handleEntityNotFound(_0xc298ef){return function(_0x55c49e){return!_0x55c49e&&_0xc298ef['sendStatus'](0x194),_0x55c49e;};}function handleError(_0x51ce7d,_0x437332){return _0x437332=_0x437332||0x1f4,function(_0x5dd9c9){const _0x575f8f=a164_0x4e5e;logger[_0x575f8f(0x1c6)](_0x5dd9c9['stack']),_0x5dd9c9[_0x575f8f(0x213)]&&delete _0x5dd9c9[_0x575f8f(0x213)],_0x51ce7d['status'](_0x437332)[_0x575f8f(0x1f4)](_0x5dd9c9);};}exports[a164_0x56c90a(0x1d0)]=function(_0x23b404,_0x3b67d2){const _0x76d95b=a164_0x56c90a;let _0x4a77c2={};const _0x16b407={},_0x2636de={'count':0x0,'rows':[]},_0x12dead=_[_0x76d95b(0x1f5)](db[_0x76d95b(0x216)][_0x76d95b(0x1d3)],function(_0x415d3f){const _0x426b5f=_0x76d95b;return{'name':_0x415d3f['fieldName'],'type':_0x415d3f[_0x426b5f(0x234)][_0x426b5f(0x21d)]};});_0x16b407[_0x76d95b(0x1dc)]=_[_0x76d95b(0x1f5)](_0x12dead,_0x76d95b(0x213)),_0x16b407[_0x76d95b(0x1e3)]=_[_0x76d95b(0x1e0)](_0x23b404[_0x76d95b(0x1e3)]),_0x16b407[_0x76d95b(0x1e2)]=_[_0x76d95b(0x1ce)](_0x16b407[_0x76d95b(0x1dc)],_0x16b407[_0x76d95b(0x1e3)]),_0x16b407[_0x76d95b(0x1e2)]=_[_0x76d95b(0x222)](_0x16b407[_0x76d95b(0x1e2)],[_0x76d95b(0x22e),_0x76d95b(0x20d),'$gt',_0x76d95b(0x1f3),_0x76d95b(0x22b),_0x76d95b(0x235),_0x76d95b(0x1df),'$eq',_0x76d95b(0x230),_0x76d95b(0x1ed),'$notBetween',_0x76d95b(0x1fa),_0x76d95b(0x1ca),_0x76d95b(0x1d7),_0x76d95b(0x1de),'$iLike',_0x76d95b(0x21c),_0x76d95b(0x1d7),_0x76d95b(0x210),_0x76d95b(0x226),_0x76d95b(0x1f2),_0x76d95b(0x207)]),_0x4a77c2['attributes']=_[_0x76d95b(0x1ce)](_0x16b407[_0x76d95b(0x1dc)],qs['fields'](_0x23b404[_0x76d95b(0x1e3)][_0x76d95b(0x236)])),_0x4a77c2[_0x76d95b(0x229)]=_0x4a77c2[_0x76d95b(0x229)]['length']?_0x4a77c2['attributes']:_0x16b407[_0x76d95b(0x1dc)];typeof _0x23b404['query'][_0x76d95b(0x1d8)]==='undefined'&&(_0x4a77c2[_0x76d95b(0x1fc)]=qs[_0x76d95b(0x1fc)](_0x23b404[_0x76d95b(0x1e3)][_0x76d95b(0x1fc)]),_0x4a77c2[_0x76d95b(0x1ef)]=qs['offset'](_0x23b404[_0x76d95b(0x1e3)][_0x76d95b(0x1ef)]));_0x4a77c2[_0x76d95b(0x1db)]=qs['sort'](_0x23b404[_0x76d95b(0x1e3)][_0x76d95b(0x1fe)]),_0x4a77c2[_0x76d95b(0x1f6)]=qs[_0x76d95b(0x1e2)](_['pick'](_0x23b404[_0x76d95b(0x1e3)],_0x16b407[_0x76d95b(0x1e2)]),_0x12dead);_0x23b404[_0x76d95b(0x1e3)][_0x76d95b(0x1cb)]&&(_0x4a77c2[_0x76d95b(0x1f6)]=_[_0x76d95b(0x1e7)](_0x4a77c2[_0x76d95b(0x1f6)],{[Op['or']]:_[_0x76d95b(0x1f5)](_0x12dead,function(_0x360f80){const _0x5a07c0=_0x76d95b;if(_0x360f80[_0x5a07c0(0x234)]!==_0x5a07c0(0x208)){const _0x890fba={};return _0x890fba[_0x360f80[_0x5a07c0(0x213)]]={[Op['like']]:'%'+_0x23b404[_0x5a07c0(0x1e3)]['filter']+'%'},_0x890fba;}})}));_0x4a77c2=_['merge']({},_0x4a77c2,_0x23b404[_0x76d95b(0x1d2)]);const _0x4d764c={'where':_0x4a77c2[_0x76d95b(0x1f6)]};return db['CmHopper'][_0x76d95b(0x22c)](_0x4d764c)[_0x76d95b(0x1d4)](function(_0xe21e81){const _0x3c4448=_0x76d95b;return _0x2636de[_0x3c4448(0x22c)]=_0xe21e81,_0x23b404[_0x3c4448(0x1e3)][_0x3c4448(0x21a)]&&(_0x4a77c2['include']=[{'all':!![]}]),db[_0x3c4448(0x216)][_0x3c4448(0x203)](_0x4a77c2);})[_0x76d95b(0x1d4)](function(_0xa13e15){const _0x4edd01=_0x76d95b;return _0x2636de[_0x4edd01(0x1fd)]=_0xa13e15,_0x2636de;})['then'](respondWithFilteredResult(_0x3b67d2,_0x4a77c2))['catch'](handleError(_0x3b67d2,null));},exports[a164_0x56c90a(0x211)]=function(_0xb3dc1a,_0x2774fc){const _0x2b99f1=a164_0x56c90a;let _0x29083b={'raw':!![],'where':{'id':_0xb3dc1a['params']['id']}};const _0x58105b={};return _0x58105b[_0x2b99f1(0x1dc)]=_['keys'](db[_0x2b99f1(0x216)]['rawAttributes']),_0x58105b['query']=_[_0x2b99f1(0x1e0)](_0xb3dc1a[_0x2b99f1(0x1e3)]),_0x58105b[_0x2b99f1(0x1e2)]=_[_0x2b99f1(0x1ce)](_0x58105b[_0x2b99f1(0x1dc)],_0x58105b[_0x2b99f1(0x1e3)]),_0x29083b[_0x2b99f1(0x229)]=_['intersection'](_0x58105b[_0x2b99f1(0x1dc)],qs[_0x2b99f1(0x236)](_0xb3dc1a[_0x2b99f1(0x1e3)][_0x2b99f1(0x236)])),_0x29083b[_0x2b99f1(0x229)]=_0x29083b[_0x2b99f1(0x229)][_0x2b99f1(0x220)]?_0x29083b[_0x2b99f1(0x229)]:_0x58105b[_0x2b99f1(0x1dc)],_0xb3dc1a[_0x2b99f1(0x1e3)]['includeAll']&&(_0x29083b['include']=[{'all':!![]}]),_0x29083b=_[_0x2b99f1(0x1e7)]({},_0x29083b,_0xb3dc1a[_0x2b99f1(0x1d2)]),db[_0x2b99f1(0x216)][_0x2b99f1(0x1f0)](_0x29083b)['then'](handleEntityNotFound(_0x2774fc,null))[_0x2b99f1(0x1d4)](respondWithResult(_0x2774fc,null))[_0x2b99f1(0x1d5)](handleError(_0x2774fc,null));},exports[a164_0x56c90a(0x1c5)]=function(_0x8082f4,_0x1dbffb){const _0x58fbba=a164_0x56c90a;return db[_0x58fbba(0x216)]['create'](_0x8082f4[_0x58fbba(0x1d9)],{})[_0x58fbba(0x1d4)](respondWithResult(_0x1dbffb,0xc9))[_0x58fbba(0x1d5)](handleError(_0x1dbffb,null));},exports[a164_0x56c90a(0x1cf)]=function(_0x5ee9fb,_0x4d6756){const _0x15f8fb=a164_0x56c90a;return _0x5ee9fb['body']['id']&&delete _0x5ee9fb[_0x15f8fb(0x1d9)]['id'],db[_0x15f8fb(0x216)][_0x15f8fb(0x1f0)]({'where':{'id':_0x5ee9fb[_0x15f8fb(0x22d)]['id']}})['then'](handleEntityNotFound(_0x4d6756,null))[_0x15f8fb(0x1d4)](saveUpdates(_0x5ee9fb['body'],null))['then'](respondWithResult(_0x4d6756,null))[_0x15f8fb(0x1d5)](handleError(_0x4d6756,null));},exports[a164_0x56c90a(0x1c8)]=function(_0x26dcba,_0x3cf373){const _0x91b2a5=a164_0x56c90a;return db[_0x91b2a5(0x216)][_0x91b2a5(0x1c8)]()[_0x91b2a5(0x1d4)](respondWithResult(_0x3cf373,null))[_0x91b2a5(0x1d5)](handleError(_0x3cf373,null));},exports['destroy']=function(_0x1eef95,_0x3e9069){const _0x5b2145=a164_0x56c90a;let _0x4ce6e9;return db[_0x5b2145(0x216)][_0x5b2145(0x1f0)]({'where':{'id':_0x1eef95['params']['id']}})[_0x5b2145(0x1d4)](handleEntityNotFound(_0x3e9069,null))[_0x5b2145(0x1d4)](function(_0x5b013b){const _0x478b13=_0x5b2145;if(_0x5b013b)return _0x5b013b[_0x478b13(0x1f7)]()['then'](function(_0x523b67){return _0x523b67;});})['then'](function(_0x4d5cc0){const _0x2ac19b=_0x5b2145;_0x4ce6e9=_0x4d5cc0;if(_0x4d5cc0){if(_0x4d5cc0[_0x2ac19b(0x1c3)]||_0x4d5cc0[_0x2ac19b(0x227)])return db[_0x4d5cc0[_0x2ac19b(0x1c3)]?'VoiceQueue':_0x2ac19b(0x1c9)]['findOne']({'where':{'id':_0x4d5cc0[_0x2ac19b(0x1c3)]?_0x4d5cc0[_0x2ac19b(0x1c3)]:_0x4d5cc0[_0x2ac19b(0x227)]},'attributes':['id',_0x2ac19b(0x213)],'raw':!![]});}})[_0x5b2145(0x1d4)](function(_0x1dab84){const _0x5206ce=_0x5b2145,_0x5e15e4={};if(_0x1dab84)return _[_0x5206ce(0x1e7)](_0x5e15e4,_[_0x5206ce(0x1e9)](_0x4ce6e9[_0x5206ce(0x1fb)],[_0x5206ce(0x20e),'updatedAt','id'])),_0x5e15e4['state']=0x15,_0x5e15e4[_0x5206ce(0x20f)]=_0x5206ce(0x228),_0x5e15e4[_0x5206ce(0x201)]=_0x1dab84[_0x5206ce(0x213)],_0x5e15e4['membername']=_0x1eef95[_0x5206ce(0x1c2)][_0x5206ce(0x213)],_0x5e15e4[_0x5206ce(0x1d1)]=_0x1eef95['user']['id'],_0x5e15e4[_0x5206ce(0x228)]=!![],_0x5e15e4['deletedat']=moment()[_0x5206ce(0x237)](_0x5206ce(0x212)),_0x5e15e4['calleridnum']=_0x4ce6e9[_0x5206ce(0x1d6)],_0x5e15e4[_0x5206ce(0x1ec)]=_0x4ce6e9[_0x5206ce(0x1c3)]?'queue':_0x5206ce(0x1dd),db['CmContac'][_0x5206ce(0x1f0)]({'where':{'id':_0x5e15e4[_0x5206ce(0x224)]},'attributes':['firstName',_0x5206ce(0x218)]})['then'](function(_0x4077be){const _0x3a364d=_0x5206ce;!_[_0x3a364d(0x223)](_0x3e9069)&&!_[_0x3a364d(0x223)](_0x4077be[_0x3a364d(0x219)])&&(_0x5e15e4[_0x3a364d(0x215)]=_0x4077be[_0x3a364d(0x219)],!_[_0x3a364d(0x223)](_0x4077be[_0x3a364d(0x218)])&&(_0x5e15e4[_0x3a364d(0x215)]+='\x20'+_0x4077be['lastName']));})[_0x5206ce(0x1e1)](function(){const _0x2d66c4=_0x5206ce;return db[_0x2d66c4(0x225)][_0x2d66c4(0x1c5)](_0x5e15e4);});})[_0x5b2145(0x1d4)](function(){const _0x3f4667=_0x5b2145;return _0x3e9069['status'](0xcc)[_0x3f4667(0x209)]();})['catch'](handleError(_0x3e9069,null));},exports[a164_0x56c90a(0x20c)]=function(_0x33d425,_0xe276a6){const _0x401f03=a164_0x56c90a;let _0x532a1b=[];return db['CmContact'][_0x401f03(0x1c8)]()[_0x401f03(0x1d4)](function(_0x4cdaa9){const _0xf452f0=_0x401f03;return _0x532a1b=_[_0xf452f0(0x1e0)](_0x4cdaa9),_0x33d425[_0xf452f0(0x1c2)][_0xf452f0(0x217)]({'where':{'type':_0xf452f0(0x1f9),'dialActive':!![],'dialMethod':_0xf452f0(0x232)},'attributes':['id','dialOrderByScheduledAt'],'raw':!![]});})[_0x401f03(0x1d4)](function(_0x31e9e6){const _0x1ee610=_0x401f03;if(_0x31e9e6&&_0x31e9e6[_0x1ee610(0x220)])return db[_0x1ee610(0x1cc)][_0x1ee610(0x1ff)](function(_0xd07f40){const _0x1e0def=_0x1ee610,_0x4f75c7={'active':![],'recallme':![],'scheduledAt':{[Op[_0x1e0def(0x200)]]:moment()[_0x1e0def(0x237)]('YYYY-MM-DD\x20HH:mm:ss')},'VoiceQueueId':{[Op['in']]:_[_0x1e0def(0x1f5)](_0x31e9e6,'id')},[Op['or']]:[{'UserId':null},{'UserId':_0x33d425['user']['id']}]};let _0x4e3837=[];return _0x33d425[_0x1e0def(0x1d9)][_0x1e0def(0x205)]&&_0x33d425[_0x1e0def(0x1d9)][_0x1e0def(0x205)]===_0x1e0def(0x21f)?(!_[_0x1e0def(0x1ea)](_0x33d425[_0x1e0def(0x1d9)][_0x1e0def(0x1c4)])&&(_0x4f75c7['id']={'$in':_0x33d425[_0x1e0def(0x1d9)][_0x1e0def(0x1c4)]}),_0x4e3837=[['priority',_0x1e0def(0x1cd)],[_0x1e0def(0x1e4),_0x31e9e6[0x0][_0x1e0def(0x20a)]==='ASC'?_0x1e0def(0x22a):_0x1e0def(0x1cd)],literal(_0x1e0def(0x1eb)),['id','DESC']]):(!_[_0x1e0def(0x1ea)](_0x33d425[_0x1e0def(0x1d9)][_0x1e0def(0x1c4)])&&(_0x4f75c7['id']={'$notIn':_0x33d425[_0x1e0def(0x1d9)][_0x1e0def(0x1c4)]}),_0x4e3837=[[_0x1e0def(0x1c1),_0x1e0def(0x22a)],['scheduledAt',_0x31e9e6[0x0]['dialOrderByScheduledAt']],literal('COALESCE(CmHopper.UserId,\x200)\x20DESC'),['id',_0x1e0def(0x1cd)]]),db[_0x1e0def(0x216)]['findOne']({'attributes':['id',_0x1e0def(0x202)],'where':_0x4f75c7,'order':_0x4e3837,'transaction':_0xd07f40,'lock':_0xd07f40[_0x1e0def(0x233)][_0x1e0def(0x231)],'include':[{'model':db['CmContact'],'as':_0x1e0def(0x1da),'attributes':_0x532a1b,'include':[{'model':db[_0x1e0def(0x206)],'as':_0x1e0def(0x221),'attributes':['id','name']}]},{'model':db['CmList'],'as':_0x1e0def(0x21e),'attributes':['id','name']},{'model':db[_0x1e0def(0x21b)],'as':_0x1e0def(0x20b),'attributes':['id','name','dialActive']}]})[_0x1e0def(0x1d4)](function(_0x2be60c){const _0x1d1f44=_0x1e0def;if(_0x2be60c)return _0x2be60c[_0x1d1f44(0x1cf)]({'UserId':_0x33d425[_0x1d1f44(0x1c2)]['id']},{'transaction':_0xd07f40});});});})['then'](handleEntityNotFound(_0xe276a6,null))[_0x401f03(0x1d4)](respondWithResult(_0xe276a6,null))['catch'](handleError(_0xe276a6,null));},exports['getOpenContacts']=function(_0x4d59cf,_0x40d2e5){const _0x226290=a164_0x56c90a;return _0x4d59cf[_0x226290(0x1c2)][_0x226290(0x217)]({'where':{'type':_0x226290(0x1f9),'dialActive':!![],'dialMethod':_0x226290(0x232)},'attributes':['id'],'raw':!![]})[_0x226290(0x1d4)](function(_0x42674e){const _0x2143ad=_0x226290;if(_0x42674e&&_0x42674e[_0x2143ad(0x220)])return db[_0x2143ad(0x216)][_0x2143ad(0x22c)]({'where':{'active':![],'recallme':![],'scheduledAt':{[Op[_0x2143ad(0x200)]]:moment()[_0x2143ad(0x237)](_0x2143ad(0x212))},'VoiceQueueId':{[Op['in']]:_[_0x2143ad(0x1f5)](_0x42674e,'id')},[Op['or']]:[{'UserId':null},{'UserId':_0x4d59cf['user']['id']}]}});return 0x0;})[_0x226290(0x1d4)](function(_0x51cd40){const _0xe4271e=_0x226290;if(!_[_0xe4271e(0x223)](_0x51cd40)&&_[_0xe4271e(0x22f)](_0x51cd40))return _0x40d2e5[_0xe4271e(0x1f1)](0xc8)[_0xe4271e(0x204)]({'contacts':_0x51cd40});else logger[_0xe4271e(0x1c6)](_0xe4271e(0x1e6),'getOpenContacts',0x194,_0xe4271e(0x239)),_0x40d2e5[_0xe4271e(0x1f8)](0x194);})[_0x226290(0x1d5)](handleError(_0x40d2e5,null));}; \ No newline at end of file diff --git a/server/api/cmHopper/cmHopper.model.js b/server/api/cmHopper/cmHopper.model.js index 5b83b8f..2e08089 100644 --- a/server/api/cmHopper/cmHopper.model.js +++ b/server/api/cmHopper/cmHopper.model.js @@ -1 +1 @@ -const a138_0x1e68=['phone','scheduledat','./cmHopper.attributes','define','priority','exports'];(function(_0x36710b,_0x1e6818){const _0x3c9eb0=function(_0xd69df){while(--_0xd69df){_0x36710b['push'](_0x36710b['shift']());}};_0x3c9eb0(++_0x1e6818);}(a138_0x1e68,0x157));const a138_0x3c9e=function(_0x36710b,_0x1e6818){_0x36710b=_0x36710b-0x0;let _0x3c9eb0=a138_0x1e68[_0x36710b];return _0x3c9eb0;};const _0x264cfa=a138_0x3c9e;'use strict';const attributes=require(_0x264cfa('0x1'));module[_0x264cfa('0x4')]=function(_0xd69df){const _0x3b8907=_0x264cfa,_0x1797c6=_0xd69df[_0x3b8907('0x2')]('CmHopper',attributes,{'tableName':'cm_hopper','paranoid':![],'indexes':[{'name':'scheduledat','fields':[_0x3b8907('0x0')]},{'name':_0x3b8907('0x5'),'fields':[_0x3b8907('0x5')]},{'name':_0x3b8907('0x3'),'fields':[_0x3b8907('0x3')]}],'timestamps':!![]});return _0x1797c6;}; \ No newline at end of file +const a165_0xfae0=['./cmHopper.attributes','exports','CmHopper','sequelize','./cmHopper.options','init'];(function(_0x3549a2,_0x46d02e){const _0xfae013=function(_0x4707ef){while(--_0x4707ef){_0x3549a2['push'](_0x3549a2['shift']());}};_0xfae013(++_0x46d02e);}(a165_0xfae0,0x66));const a165_0x4707=function(_0x3549a2,_0x46d02e){_0x3549a2=_0x3549a2-0xbd;let _0xfae013=a165_0xfae0[_0x3549a2];return _0xfae013;};const a165_0x3baf49=a165_0x4707;'use strict';const {Model}=require(a165_0x3baf49(0xc0)),{attributes}=require(a165_0x3baf49(0xbd)),{options}=require(a165_0x3baf49(0xc1));class CmHopper extends Model{}function init(_0x3e7905,_0x11183c){const _0x48ae42=options(_0x3e7905),_0x9c22eb=typeof _0x11183c==='function'?_0x11183c(_0x48ae42):_0x48ae42;return CmHopper['init'](attributes,_0x9c22eb),CmHopper;}module[a165_0x3baf49(0xbe)][a165_0x3baf49(0xbf)]=CmHopper,module[a165_0x3baf49(0xbe)][a165_0x3baf49(0xc2)]=init; \ No newline at end of file diff --git a/server/api/cmHopper/cmHopper.options.js b/server/api/cmHopper/cmHopper.options.js new file mode 100644 index 0000000..3dc07ae --- /dev/null +++ b/server/api/cmHopper/cmHopper.options.js @@ -0,0 +1 @@ +var a166_0x744d=['exports','phone','scheduledat','priority','cm_hopper'];(function(_0x547b54,_0x182fe8){var _0x744daf=function(_0x4bde81){while(--_0x4bde81){_0x547b54['push'](_0x547b54['shift']());}};_0x744daf(++_0x182fe8);}(a166_0x744d,0x1a3));var a166_0x4bde=function(_0x547b54,_0x182fe8){_0x547b54=_0x547b54-0x110;var _0x744daf=a166_0x744d[_0x547b54];return _0x744daf;};var a166_0x4ace4d=a166_0x4bde;function options(_0x104ed9){var _0x4c040d=a166_0x4bde;return{'sequelize':_0x104ed9,'tableName':_0x4c040d(0x110),'paranoid':![],'indexes':[{'name':_0x4c040d(0x113),'fields':[_0x4c040d(0x113)]},{'name':'phone','fields':[_0x4c040d(0x112)]},{'name':_0x4c040d(0x114),'fields':['priority']}],'timestamps':!![]};}module[a166_0x4ace4d(0x111)]['options']=options; \ No newline at end of file diff --git a/server/api/cmHopper/cmHopper.rpc.js b/server/api/cmHopper/cmHopper.rpc.js index 5a72e30..807710a 100644 --- a/server/api/cmHopper/cmHopper.rpc.js +++ b/server/api/cmHopper/cmHopper.rpc.js @@ -1 +1 @@ -const a139_0x1b5f=['destroy','raw','rpc','DestroyCmHopper','where','`scheduledat`\x20>=\x20','CountReScheduled','CreateCmHopper','LOCK','findAll','\x22%s\x22','limit','sequelize','CmHopper','format','includes','GetContactRecallMe','order','Contact','body','GetCmHopperPreview','CmHopperFinal','CmContact','User','catch','map','UserId','info','MoveContactManagedDialer','GetCmHopper','options','create','Agent','UPDATE','\x20,\x201,\x20null','moment','util','ShowCmHopper','update','include','message','YYYY-MM-DD\x20HH:mm:ss','attributes','length','voicePause','model','transaction','GetContactDialer','debug','../../config/logger','UpdateCmHopper','push','../../mysqldb','stringify','then','keys','error','describe'];(function(_0x2c7c2a,_0x1b5f38){const _0x111e7e=function(_0x16f38e){while(--_0x16f38e){_0x2c7c2a['push'](_0x2c7c2a['shift']());}};_0x111e7e(++_0x1b5f38);}(a139_0x1b5f,0x104));const a139_0x111e=function(_0x2c7c2a,_0x1b5f38){_0x2c7c2a=_0x2c7c2a-0x0;let _0x111e7e=a139_0x1b5f[_0x2c7c2a];return _0x111e7e;};const _0x448b1c=a139_0x111e;'use strict';const _=require('lodash'),util=require(_0x448b1c('0x8')),moment=require(_0x448b1c('0x7')),db=require(_0x448b1c('0x18'))['db'],logger=require(_0x448b1c('0x15'))(_0x448b1c('0x20')),{literal,fn}=require(_0x448b1c('0x2a'));exports['GetCmHopper']=function(_0x16f38e){const _0x27363c=this;return new Promise(function(_0x113dcd,_0xb47fb0){const _0x1fa30f=a139_0x111e;return db[_0x1fa30f('0x2b')]['findAll']({'raw':_0x16f38e['options']?_0x16f38e[_0x1fa30f('0x2')]['raw']===undefined?!![]:![]:!![],'where':_0x16f38e[_0x1fa30f('0x2')]?_0x16f38e[_0x1fa30f('0x2')][_0x1fa30f('0x22')]||null:null,'attributes':_0x16f38e['options']?_0x16f38e['options'][_0x1fa30f('0xe')]||null:null,'limit':_0x16f38e[_0x1fa30f('0x2')]?_0x16f38e[_0x1fa30f('0x2')][_0x1fa30f('0x29')]||null:null,'include':_0x16f38e[_0x1fa30f('0x2')]?_0x16f38e[_0x1fa30f('0x2')]['include']?_[_0x1fa30f('0x37')](_0x16f38e[_0x1fa30f('0x2')]['include'],function(_0x1beeb9){const _0x2a7751=_0x1fa30f;return{'model':db[_0x1beeb9['model']],'as':_0x1beeb9['as'],'attributes':_0x1beeb9[_0x2a7751('0xe')],'include':_0x1beeb9[_0x2a7751('0xb')]?_['map'](_0x1beeb9[_0x2a7751('0xb')],function(_0xcab0ac){const _0x35f1af=_0x2a7751;return{'model':db[_0xcab0ac[_0x35f1af('0x11')]],'as':_0xcab0ac['as'],'attributes':_0xcab0ac[_0x35f1af('0xe')],'include':_0xcab0ac['include']?_[_0x35f1af('0x37')](_0xcab0ac[_0x35f1af('0xb')],function(_0x463c59){const _0x3ebcfc=_0x35f1af;return{'model':db[_0x463c59[_0x3ebcfc('0x11')]],'as':_0x463c59['as'],'attributes':_0x463c59[_0x3ebcfc('0xe')]};}):[]};}):[]};}):[]:[]})[_0x1fa30f('0x1a')](function(_0x22c506){const _0x42d408=_0x1fa30f;logger[_0x42d408('0x39')](_0x42d408('0x1'),_0x16f38e),logger[_0x42d408('0x14')]('GetCmHopper',_0x16f38e,JSON[_0x42d408('0x19')](_0x22c506)),_0x113dcd(_0x22c506);})[_0x1fa30f('0x36')](function(_0x26955d){const _0x451e59=_0x1fa30f;logger['error'](_0x451e59('0x1'),_0x26955d[_0x451e59('0xc')],_0x16f38e),_0xb47fb0(_0x27363c[_0x451e59('0x1c')](0x1f4,_0x26955d[_0x451e59('0xc')]));});});},exports[_0x448b1c('0x9')]=function(_0x31d2c9){const _0x3ce297=this;return new Promise(function(_0x97e8f8,_0x1d1e76){const _0x1db4b8=a139_0x111e;return db[_0x1db4b8('0x2b')]['findOne']({'raw':_0x31d2c9['options']?_0x31d2c9[_0x1db4b8('0x2')][_0x1db4b8('0x1f')]===undefined?!![]:![]:!![],'where':_0x31d2c9[_0x1db4b8('0x2')]?_0x31d2c9[_0x1db4b8('0x2')][_0x1db4b8('0x22')]||null:null,'attributes':_0x31d2c9['options']?_0x31d2c9[_0x1db4b8('0x2')][_0x1db4b8('0xe')]||null:null,'include':_0x31d2c9['options']?_0x31d2c9[_0x1db4b8('0x2')][_0x1db4b8('0xb')]?_[_0x1db4b8('0x37')](_0x31d2c9[_0x1db4b8('0x2')]['include'],function(_0x77f626){const _0x48e483=_0x1db4b8;return{'model':db[_0x77f626[_0x48e483('0x11')]],'as':_0x77f626['as'],'attributes':_0x77f626[_0x48e483('0xe')],'include':_0x77f626[_0x48e483('0xb')]?_['map'](_0x77f626[_0x48e483('0xb')],function(_0x367f77){const _0x419697=_0x48e483;return{'model':db[_0x367f77['model']],'as':_0x367f77['as'],'attributes':_0x367f77[_0x419697('0xe')],'include':_0x367f77[_0x419697('0xb')]?_[_0x419697('0x37')](_0x367f77['include'],function(_0x2ce30e){const _0x3aee1a=_0x419697;return{'model':db[_0x2ce30e['model']],'as':_0x2ce30e['as'],'attributes':_0x2ce30e[_0x3aee1a('0xe')]};}):[]};}):[]};}):[]:[]})[_0x1db4b8('0x1a')](function(_0xc69804){const _0x4b8be4=_0x1db4b8;logger[_0x4b8be4('0x39')](_0x4b8be4('0x9'),_0x31d2c9),logger[_0x4b8be4('0x14')]('ShowCmHopper',_0x31d2c9,JSON['stringify'](_0xc69804)),_0x97e8f8(_0xc69804);})[_0x1db4b8('0x36')](function(_0x29dd08){const _0x3e7412=_0x1db4b8;logger['error'](_0x3e7412('0x9'),_0x29dd08['message'],_0x31d2c9),_0x1d1e76(_0x3ce297[_0x3e7412('0x1c')](0x1f4,_0x29dd08[_0x3e7412('0xc')]));});});},exports[_0x448b1c('0x25')]=function(_0x1dd57e){const _0x55498f=this;return new Promise(function(_0x31ee91,_0x1499ae){const _0x453721=a139_0x111e;return db['CmHopper']['create'](_0x1dd57e['body'],{'raw':_0x1dd57e[_0x453721('0x2')]?_0x1dd57e[_0x453721('0x2')][_0x453721('0x1f')]===undefined?!![]:![]:!![]})[_0x453721('0x1a')](function(_0x46f0ac){const _0x1bd2ec=_0x453721;logger[_0x1bd2ec('0x39')](_0x1bd2ec('0x25'),_0x1dd57e),logger[_0x1bd2ec('0x14')]('CreateCmHopper',_0x1dd57e,JSON[_0x1bd2ec('0x19')](_0x46f0ac)),_0x31ee91(_0x46f0ac);})['catch'](function(_0x473593){const _0x48875d=_0x453721;logger[_0x48875d('0x1c')](_0x48875d('0x25'),_0x473593[_0x48875d('0xc')],_0x1dd57e),_0x1499ae(_0x55498f[_0x48875d('0x1c')](0x1f4,_0x473593['message']));});});},exports[_0x448b1c('0x16')]=function(_0x3efd5f){const _0x4ea55b=this;return new Promise(function(_0x7fa0a3,_0x13d79e){const _0x7c017c=a139_0x111e;return db[_0x7c017c('0x2b')][_0x7c017c('0xa')](_0x3efd5f[_0x7c017c('0x31')],{'raw':_0x3efd5f[_0x7c017c('0x2')]?_0x3efd5f[_0x7c017c('0x2')][_0x7c017c('0x1f')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x3efd5f[_0x7c017c('0x2')]?_0x3efd5f[_0x7c017c('0x2')][_0x7c017c('0x22')]||null:null,'attributes':_0x3efd5f['options']?_0x3efd5f[_0x7c017c('0x2')][_0x7c017c('0xe')]||null:null,'limit':_0x3efd5f[_0x7c017c('0x2')]?_0x3efd5f['options'][_0x7c017c('0x29')]||null:null})[_0x7c017c('0x1a')](function(_0x5275fc){const _0x3dacef=_0x7c017c;logger[_0x3dacef('0x39')](_0x3dacef('0x16'),_0x3efd5f),logger['debug'](_0x3dacef('0x16'),_0x3efd5f,JSON[_0x3dacef('0x19')](_0x5275fc)),_0x7fa0a3(_0x5275fc);})[_0x7c017c('0x36')](function(_0x40b3c8){const _0x5700d9=_0x7c017c;logger[_0x5700d9('0x1c')]('UpdateCmHopper',_0x40b3c8[_0x5700d9('0xc')],_0x3efd5f),_0x13d79e(_0x4ea55b[_0x5700d9('0x1c')](0x1f4,_0x40b3c8[_0x5700d9('0xc')]));});});},exports['DestroyCmHopper']=function(_0xe2981f){const _0x20bf3d=this;return new Promise(function(_0x7adb3a,_0x478eda){const _0x29b129=a139_0x111e;return db[_0x29b129('0x2b')][_0x29b129('0x1e')]({'where':_0xe2981f[_0x29b129('0x2')]?_0xe2981f['options']['where']||null:null})[_0x29b129('0x1a')](function(_0x150a48){const _0x46d906=_0x29b129;logger[_0x46d906('0x39')](_0x46d906('0x21'),_0xe2981f),logger[_0x46d906('0x14')]('DestroyCmHopper',_0xe2981f,JSON[_0x46d906('0x19')](_0x150a48)),_0x7adb3a(_0x150a48);})['catch'](function(_0x11c5a9){const _0x350679=_0x29b129;logger[_0x350679('0x1c')](_0x350679('0x21'),_0x11c5a9[_0x350679('0xc')],_0xe2981f),_0x478eda(_0x20bf3d['error'](0x1f4,_0x11c5a9[_0x350679('0xc')]));});});},exports[_0x448b1c('0x13')]=function(_0x134832){const _0x248063=this;return new Promise(function(_0x354130,_0x5023f8){const _0x416cdc=a139_0x111e;return db[_0x416cdc('0x34')][_0x416cdc('0x1d')]()[_0x416cdc('0x1a')](function(_0xa9438a){const _0x305770=_0x416cdc;return db[_0x305770('0x2a')]['transaction'](function(_0x38b0f3){const _0x4d8b33=_0x305770;return db[_0x4d8b33('0x2b')][_0x4d8b33('0x27')]({'where':_0x134832[_0x4d8b33('0x2')]?_0x134832[_0x4d8b33('0x2')][_0x4d8b33('0x22')]||null:null,'attributes':_0x134832[_0x4d8b33('0x2')]?_0x134832[_0x4d8b33('0x2')][_0x4d8b33('0xe')]||null:null,'limit':_0x134832[_0x4d8b33('0x2')]?_0x134832[_0x4d8b33('0x2')]['limit']||null:null,'order':_0x134832['options']?_0x134832[_0x4d8b33('0x2')][_0x4d8b33('0x2f')]||null:null,'transaction':_0x38b0f3,'lock':_0x38b0f3[_0x4d8b33('0x26')][_0x4d8b33('0x5')],'include':[{'model':db[_0x4d8b33('0x34')],'as':_0x4d8b33('0x30'),'attributes':_[_0x4d8b33('0x1b')](_0xa9438a)},{'model':db[_0x4d8b33('0x35')],'as':_0x4d8b33('0x4'),'attributes':['id','name',_0x4d8b33('0x10')]}]})[_0x4d8b33('0x1a')](function(_0x376ebf){const _0x4a3eef=_0x4d8b33,_0x521270=[],_0x37068a=[];for(let _0x3ec197=0x0;_0x3ec197<_0x376ebf[_0x4a3eef('0xf')];_0x3ec197+=0x1){!_0x37068a[_0x4a3eef('0x2d')](_0x376ebf[_0x3ec197][_0x4a3eef('0x38')])&&(_0x37068a['push'](_0x376ebf[_0x3ec197][_0x4a3eef('0x38')]),_0x521270[_0x4a3eef('0x17')](_0x376ebf[_0x3ec197][_0x4a3eef('0xa')](_0x134832['body'],{'transaction':_0x38b0f3})));}return Promise['all'](_0x521270);});})['then'](function(_0x579765){const _0x4a3e7e=_0x305770;logger['info'](_0x4a3e7e('0x13'),_0x134832),logger[_0x4a3e7e('0x14')](_0x4a3e7e('0x13'),_0x134832,JSON[_0x4a3e7e('0x19')](_0x579765)),_0x354130(_0x579765);})[_0x305770('0x36')](function(_0x17c416){const _0x964398=_0x305770;logger[_0x964398('0x1c')]('GetContactDialer',_0x17c416[_0x964398('0xc')],_0x134832),_0x5023f8(_0x248063[_0x964398('0x1c')](0x1f4,_0x17c416[_0x964398('0xc')]));});});});},exports[_0x448b1c('0x0')]=function(_0x51e7bb){const _0x262e57=this;return new Promise(function(_0x21ab77,_0x32fa3a){const _0x4e21c2=a139_0x111e;return db[_0x4e21c2('0x2a')]['transaction'](function(_0x45b7bd){const _0x38f13d=_0x4e21c2;return db[_0x38f13d('0x33')][_0x38f13d('0x3')](_0x51e7bb['body'],{'raw':_0x51e7bb[_0x38f13d('0x2')]?_0x51e7bb[_0x38f13d('0x2')][_0x38f13d('0x1f')]===undefined?!![]:![]:!![],'transaction':_0x45b7bd})[_0x38f13d('0x1a')](function(){const _0x3b0936=_0x38f13d;return db[_0x3b0936('0x2b')][_0x3b0936('0x1e')]({'where':_0x51e7bb[_0x3b0936('0x2')]?_0x51e7bb[_0x3b0936('0x2')][_0x3b0936('0x22')]||null:null,'transaction':_0x45b7bd});});})[_0x4e21c2('0x1a')](function(_0x401c68){const _0x3d56d5=_0x4e21c2;logger[_0x3d56d5('0x39')](_0x3d56d5('0x0'),_0x51e7bb),logger['debug'](_0x3d56d5('0x0'),_0x51e7bb,JSON[_0x3d56d5('0x19')](_0x401c68)),_0x21ab77(_0x401c68);})[_0x4e21c2('0x36')](function(_0x44667b){const _0x3a20f7=_0x4e21c2;logger[_0x3a20f7('0x1c')]('MoveContactManagedDialer',_0x44667b[_0x3a20f7('0xc')],_0x51e7bb),_0x32fa3a(_0x262e57[_0x3a20f7('0x1c')](0x1f4,_0x44667b[_0x3a20f7('0xc')]));});});},exports[_0x448b1c('0x24')]=function(_0x39f3ef){const _0x3aca07=this;return new Promise(function(_0x5de6d3,_0x3a96ce){const _0xe0677b=a139_0x111e;return db[_0xe0677b('0x2b')][_0xe0677b('0x27')]({'raw':_0x39f3ef[_0xe0677b('0x2')]?_0x39f3ef[_0xe0677b('0x2')]['raw']===undefined?!![]:![]:!![],'where':_0x39f3ef[_0xe0677b('0x2')]?_0x39f3ef['options']['where']||null:null,'attributes':[[fn('COUNT',fn('IF',literal(_0xe0677b('0x23')+util[_0xe0677b('0x2c')](_0xe0677b('0x28'),moment()[_0xe0677b('0x2c')](_0xe0677b('0xd')))+_0xe0677b('0x6')))),'contactsRescheduled']]})[_0xe0677b('0x1a')](function(_0x2aef60){const _0x387c38=_0xe0677b;logger[_0x387c38('0x39')](_0x387c38('0x24'),_0x39f3ef),logger[_0x387c38('0x14')](_0x387c38('0x24'),_0x39f3ef,JSON[_0x387c38('0x19')](_0x2aef60)),_0x5de6d3(_0x2aef60);})[_0xe0677b('0x36')](function(_0x9c8d93){const _0x3b5535=_0xe0677b;logger[_0x3b5535('0x1c')](_0x3b5535('0x24'),_0x9c8d93[_0x3b5535('0xc')],_0x39f3ef),_0x3a96ce(_0x3aca07[_0x3b5535('0x1c')](0x1f4,_0x9c8d93[_0x3b5535('0xc')]));});});},exports[_0x448b1c('0x2e')]=function(_0x58035e){const _0xf361ff=this;return new Promise(function(_0xb43039,_0x2d354c){const _0x21c419=a139_0x111e;return db[_0x21c419('0x34')][_0x21c419('0x1d')]()[_0x21c419('0x1a')](function(){const _0x17acb3=_0x21c419;return db['sequelize'][_0x17acb3('0x12')](function(_0x7d0829){const _0x5da739=_0x17acb3;return db[_0x5da739('0x2b')][_0x5da739('0x27')]({'where':_0x58035e[_0x5da739('0x2')]?_0x58035e[_0x5da739('0x2')][_0x5da739('0x22')]||null:null,'attributes':_0x58035e[_0x5da739('0x2')]?_0x58035e['options'][_0x5da739('0xe')]||null:null,'limit':0x1,'order':_0x58035e[_0x5da739('0x2')]?_0x58035e[_0x5da739('0x2')][_0x5da739('0x2f')]||null:null,'group':db[_0x5da739('0x2b')][_0x5da739('0x38')],'transaction':_0x7d0829,'lock':_0x7d0829[_0x5da739('0x26')][_0x5da739('0x5')],'include':_0x58035e[_0x5da739('0x2')]?_0x58035e['options']['include']?_[_0x5da739('0x37')](_0x58035e[_0x5da739('0x2')][_0x5da739('0xb')],function(_0x342222){const _0x28a69e=_0x5da739;return{'model':db[_0x342222[_0x28a69e('0x11')]],'as':_0x342222['as'],'attributes':_0x342222[_0x28a69e('0xe')],'include':_0x342222[_0x28a69e('0xb')]?_[_0x28a69e('0x37')](_0x342222['include'],function(_0x144d37){const _0xe46782=_0x28a69e;return{'model':db[_0x144d37['model']],'as':_0x144d37['as'],'attributes':_0x144d37[_0xe46782('0xe')],'include':_0x144d37[_0xe46782('0xb')]?_['map'](_0x144d37[_0xe46782('0xb')],function(_0x5ff613){const _0x41d7d6=_0xe46782;return{'model':db[_0x5ff613['model']],'as':_0x5ff613['as'],'attributes':_0x5ff613[_0x41d7d6('0xe')]};}):[]};}):[]};}):[]:[]})[_0x5da739('0x1a')](function(_0x4c5163){const _0x1cc021=_0x5da739,_0x159702=[];for(let _0x5caa6c=0x0;_0x5caa6c<_0x4c5163[_0x1cc021('0xf')];_0x5caa6c+=0x1){_0x159702[_0x1cc021('0x17')](_0x4c5163[_0x5caa6c][_0x1cc021('0xa')](_0x58035e[_0x1cc021('0x31')],{'transaction':_0x7d0829}));}return Promise['all'](_0x159702);});})['then'](function(_0x46422b){const _0x58f943=_0x17acb3;logger['info'](_0x58f943('0x2e'),_0x58035e),logger[_0x58f943('0x14')](_0x58f943('0x2e'),_0x58035e,JSON[_0x58f943('0x19')](_0x46422b)),_0xb43039(_0x46422b);})['catch'](function(_0x210b0f){const _0x1158c5=_0x17acb3;logger[_0x1158c5('0x1c')](_0x1158c5('0x2e'),_0x210b0f[_0x1158c5('0xc')],_0x58035e),_0x2d354c(_0xf361ff['error'](0x1f4,_0x210b0f[_0x1158c5('0xc')]));});});});},exports[_0x448b1c('0x32')]=function(_0xd2a4d0){const _0xaf480e=this;return new Promise(function(_0x3a341a,_0x1ed549){const _0x575292=a139_0x111e;db[_0x575292('0x34')]['describe']()['then'](function(_0x1f3c52){const _0x2ef511=_0x575292;return db[_0x2ef511('0x2b')]['findAll']({'raw':_0xd2a4d0['options']?_0xd2a4d0[_0x2ef511('0x2')][_0x2ef511('0x1f')]===undefined?!![]:![]:!![],'where':_0xd2a4d0[_0x2ef511('0x2')]?_0xd2a4d0[_0x2ef511('0x2')][_0x2ef511('0x22')]||null:null,'attributes':_0xd2a4d0[_0x2ef511('0x2')]?_0xd2a4d0[_0x2ef511('0x2')]['attributes']||null:null,'limit':_0xd2a4d0[_0x2ef511('0x2')]?_0xd2a4d0['options'][_0x2ef511('0x29')]||null:null,'include':_0xd2a4d0[_0x2ef511('0x2')]?_0xd2a4d0[_0x2ef511('0x2')][_0x2ef511('0xb')]?_[_0x2ef511('0x37')](_0xd2a4d0[_0x2ef511('0x2')][_0x2ef511('0xb')],function(_0x40f942){const _0x17fd3e=_0x2ef511;return{'model':db[_0x40f942[_0x17fd3e('0x11')]],'as':_0x40f942['as'],'attributes':_0x40f942['as']===_0x17fd3e('0x30')?_[_0x17fd3e('0x1b')](_0x1f3c52):_0x40f942[_0x17fd3e('0xe')],'include':_0x40f942[_0x17fd3e('0xb')]?_[_0x17fd3e('0x37')](_0x40f942[_0x17fd3e('0xb')],function(_0x3126be){const _0x1186b0=_0x17fd3e;return{'model':db[_0x3126be[_0x1186b0('0x11')]],'as':_0x3126be['as'],'attributes':_0x3126be[_0x1186b0('0xe')],'include':_0x3126be[_0x1186b0('0xb')]?_[_0x1186b0('0x37')](_0x3126be[_0x1186b0('0xb')],function(_0x9f9ce5){const _0x39693f=_0x1186b0;return{'model':db[_0x9f9ce5[_0x39693f('0x11')]],'as':_0x9f9ce5['as'],'attributes':_0x9f9ce5[_0x39693f('0xe')]};}):[]};}):[]};}):[]:[]})[_0x2ef511('0x1a')](function(_0x56f332){const _0x4dbc6c=_0x2ef511;logger[_0x4dbc6c('0x39')](_0x4dbc6c('0x1'),_0xd2a4d0),logger['debug'](_0x4dbc6c('0x1'),_0xd2a4d0,JSON[_0x4dbc6c('0x19')](_0x56f332)),_0x3a341a(_0x56f332);})['catch'](function(_0x5e39e1){const _0x564bd7=_0x2ef511;logger[_0x564bd7('0x1c')]('GetCmHopper',_0x5e39e1['message'],_0xd2a4d0),_0x1ed549(_0xaf480e['error'](0x1f4,_0x5e39e1[_0x564bd7('0xc')]));});});});}; \ No newline at end of file +const a167_0x243c=['UpdateCmHopper','options','catch','CountReScheduled','\x20,\x201,\x20null','transaction','keys','stringify','push','Agent','sequelize','UserId','model','User','../../mysqldb','findAll','raw','debug','voicePause','COUNT','body','info','GetContactDialer','UPDATE','CreateCmHopper','\x22%s\x22','map','order','describe','name','moment','create','message','destroy','rpc','ShowCmHopper','CmHopper','GetCmHopper','LOCK','error','findOne','contactsRescheduled','DestroyCmHopper','GetCmHopperPreview','MoveContactManagedDialer','include','limit','update','CmContact','attributes','then','CmHopperFinal','where','GetContactRecallMe','YYYY-MM-DD\x20HH:mm:ss','length','util','all'];(function(_0x1432c2,_0x3e8d07){const _0x243c8a=function(_0xa22a60){while(--_0xa22a60){_0x1432c2['push'](_0x1432c2['shift']());}};_0x243c8a(++_0x3e8d07);}(a167_0x243c,0x16d));const a167_0xa22a=function(_0x1432c2,_0x3e8d07){_0x1432c2=_0x1432c2-0xe7;let _0x243c8a=a167_0x243c[_0x1432c2];return _0x243c8a;};const a167_0x4d3b81=a167_0xa22a;'use strict';const _=require('lodash'),util=require(a167_0x4d3b81(0x10e)),moment=require(a167_0x4d3b81(0xf4)),db=require(a167_0x4d3b81(0x11e))['db'],logger=require('../../config/logger')(a167_0x4d3b81(0xf8)),{literal,fn}=require(a167_0x4d3b81(0x11a));exports[a167_0x4d3b81(0xfb)]=function(_0x91184c){const _0x29a32c=this;return new Promise(function(_0x35b300,_0x470966){const _0x4fb404=a167_0xa22a;return db[_0x4fb404(0xfa)][_0x4fb404(0x11f)]({'raw':_0x91184c[_0x4fb404(0x111)]?_0x91184c['options'][_0x4fb404(0x120)]===undefined?!![]:![]:!![],'where':_0x91184c[_0x4fb404(0x111)]?_0x91184c['options']['where']||null:null,'attributes':_0x91184c[_0x4fb404(0x111)]?_0x91184c[_0x4fb404(0x111)][_0x4fb404(0x107)]||null:null,'limit':_0x91184c[_0x4fb404(0x111)]?_0x91184c[_0x4fb404(0x111)][_0x4fb404(0x104)]||null:null,'include':_0x91184c[_0x4fb404(0x111)]?_0x91184c[_0x4fb404(0x111)][_0x4fb404(0x103)]?_[_0x4fb404(0xf0)](_0x91184c[_0x4fb404(0x111)][_0x4fb404(0x103)],function(_0x1a1f99){const _0x295be0=_0x4fb404;return{'model':db[_0x1a1f99[_0x295be0(0x11c)]],'as':_0x1a1f99['as'],'attributes':_0x1a1f99[_0x295be0(0x107)],'include':_0x1a1f99[_0x295be0(0x103)]?_['map'](_0x1a1f99[_0x295be0(0x103)],function(_0x9c3055){const _0xe5b438=_0x295be0;return{'model':db[_0x9c3055[_0xe5b438(0x11c)]],'as':_0x9c3055['as'],'attributes':_0x9c3055[_0xe5b438(0x107)],'include':_0x9c3055[_0xe5b438(0x103)]?_[_0xe5b438(0xf0)](_0x9c3055['include'],function(_0x97a75c){return{'model':db[_0x97a75c['model']],'as':_0x97a75c['as'],'attributes':_0x97a75c['attributes']};}):[]};}):[]};}):[]:[]})[_0x4fb404(0x108)](function(_0x444754){const _0x536393=_0x4fb404;logger[_0x536393(0xeb)](_0x536393(0xfb),_0x91184c),logger[_0x536393(0xe7)](_0x536393(0xfb),_0x91184c,JSON[_0x536393(0x117)](_0x444754)),_0x35b300(_0x444754);})['catch'](function(_0x1e2c22){const _0x48ad01=_0x4fb404;logger[_0x48ad01(0xfd)](_0x48ad01(0xfb),_0x1e2c22[_0x48ad01(0xf6)],_0x91184c),_0x470966(_0x29a32c[_0x48ad01(0xfd)](0x1f4,_0x1e2c22[_0x48ad01(0xf6)]));});});},exports[a167_0x4d3b81(0xf9)]=function(_0x559ef1){const _0x637402=this;return new Promise(function(_0x1eedfc,_0x400ed9){const _0x2df0c9=a167_0xa22a;return db[_0x2df0c9(0xfa)][_0x2df0c9(0xfe)]({'raw':_0x559ef1[_0x2df0c9(0x111)]?_0x559ef1[_0x2df0c9(0x111)][_0x2df0c9(0x120)]===undefined?!![]:![]:!![],'where':_0x559ef1[_0x2df0c9(0x111)]?_0x559ef1[_0x2df0c9(0x111)]['where']||null:null,'attributes':_0x559ef1[_0x2df0c9(0x111)]?_0x559ef1[_0x2df0c9(0x111)]['attributes']||null:null,'include':_0x559ef1[_0x2df0c9(0x111)]?_0x559ef1[_0x2df0c9(0x111)]['include']?_['map'](_0x559ef1[_0x2df0c9(0x111)][_0x2df0c9(0x103)],function(_0x365854){const _0x22d658=_0x2df0c9;return{'model':db[_0x365854[_0x22d658(0x11c)]],'as':_0x365854['as'],'attributes':_0x365854[_0x22d658(0x107)],'include':_0x365854[_0x22d658(0x103)]?_[_0x22d658(0xf0)](_0x365854[_0x22d658(0x103)],function(_0x1f8bc7){const _0x47e619=_0x22d658;return{'model':db[_0x1f8bc7[_0x47e619(0x11c)]],'as':_0x1f8bc7['as'],'attributes':_0x1f8bc7[_0x47e619(0x107)],'include':_0x1f8bc7[_0x47e619(0x103)]?_['map'](_0x1f8bc7[_0x47e619(0x103)],function(_0xda8a3c){const _0x2fdade=_0x47e619;return{'model':db[_0xda8a3c['model']],'as':_0xda8a3c['as'],'attributes':_0xda8a3c[_0x2fdade(0x107)]};}):[]};}):[]};}):[]:[]})['then'](function(_0x4c5dad){const _0x449c47=_0x2df0c9;logger[_0x449c47(0xeb)]('ShowCmHopper',_0x559ef1),logger[_0x449c47(0xe7)](_0x449c47(0xf9),_0x559ef1,JSON[_0x449c47(0x117)](_0x4c5dad)),_0x1eedfc(_0x4c5dad);})['catch'](function(_0x5f203e){const _0x5b7637=_0x2df0c9;logger['error']('ShowCmHopper',_0x5f203e[_0x5b7637(0xf6)],_0x559ef1),_0x400ed9(_0x637402[_0x5b7637(0xfd)](0x1f4,_0x5f203e[_0x5b7637(0xf6)]));});});},exports[a167_0x4d3b81(0xee)]=function(_0x809ff3){const _0x5d759d=this;return new Promise(function(_0x1b6209,_0x292863){const _0x22c116=a167_0xa22a;return db[_0x22c116(0xfa)]['create'](_0x809ff3['body'],{'raw':_0x809ff3[_0x22c116(0x111)]?_0x809ff3[_0x22c116(0x111)]['raw']===undefined?!![]:![]:!![]})[_0x22c116(0x108)](function(_0x4676af){const _0x509a1d=_0x22c116;logger[_0x509a1d(0xeb)](_0x509a1d(0xee),_0x809ff3),logger[_0x509a1d(0xe7)](_0x509a1d(0xee),_0x809ff3,JSON[_0x509a1d(0x117)](_0x4676af)),_0x1b6209(_0x4676af);})[_0x22c116(0x112)](function(_0x6ce556){const _0x40ab1f=_0x22c116;logger[_0x40ab1f(0xfd)](_0x40ab1f(0xee),_0x6ce556[_0x40ab1f(0xf6)],_0x809ff3),_0x292863(_0x5d759d[_0x40ab1f(0xfd)](0x1f4,_0x6ce556[_0x40ab1f(0xf6)]));});});},exports['UpdateCmHopper']=function(_0x3139ba){const _0x3d8a90=this;return new Promise(function(_0x22d313,_0x7422fa){const _0x8953d7=a167_0xa22a;return db[_0x8953d7(0xfa)][_0x8953d7(0x105)](_0x3139ba[_0x8953d7(0xea)],{'raw':_0x3139ba[_0x8953d7(0x111)]?_0x3139ba[_0x8953d7(0x111)][_0x8953d7(0x120)]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x3139ba[_0x8953d7(0x111)]?_0x3139ba[_0x8953d7(0x111)]['where']||null:null,'attributes':_0x3139ba[_0x8953d7(0x111)]?_0x3139ba[_0x8953d7(0x111)][_0x8953d7(0x107)]||null:null,'limit':_0x3139ba[_0x8953d7(0x111)]?_0x3139ba[_0x8953d7(0x111)][_0x8953d7(0x104)]||null:null})['then'](function(_0x443b22){const _0x5c844a=_0x8953d7;logger[_0x5c844a(0xeb)]('UpdateCmHopper',_0x3139ba),logger[_0x5c844a(0xe7)](_0x5c844a(0x110),_0x3139ba,JSON[_0x5c844a(0x117)](_0x443b22)),_0x22d313(_0x443b22);})[_0x8953d7(0x112)](function(_0x5b4124){const _0x4185b5=_0x8953d7;logger[_0x4185b5(0xfd)](_0x4185b5(0x110),_0x5b4124[_0x4185b5(0xf6)],_0x3139ba),_0x7422fa(_0x3d8a90[_0x4185b5(0xfd)](0x1f4,_0x5b4124[_0x4185b5(0xf6)]));});});},exports[a167_0x4d3b81(0x100)]=function(_0x4c2baa){const _0x368f42=this;return new Promise(function(_0x3aecaf,_0x2825f7){const _0x4b4289=a167_0xa22a;return db[_0x4b4289(0xfa)][_0x4b4289(0xf7)]({'where':_0x4c2baa[_0x4b4289(0x111)]?_0x4c2baa[_0x4b4289(0x111)][_0x4b4289(0x10a)]||null:null})[_0x4b4289(0x108)](function(_0x2a586b){const _0x1d83bf=_0x4b4289;logger[_0x1d83bf(0xeb)]('DestroyCmHopper',_0x4c2baa),logger['debug'](_0x1d83bf(0x100),_0x4c2baa,JSON['stringify'](_0x2a586b)),_0x3aecaf(_0x2a586b);})[_0x4b4289(0x112)](function(_0x3c2423){const _0x568b4c=_0x4b4289;logger['error'](_0x568b4c(0x100),_0x3c2423[_0x568b4c(0xf6)],_0x4c2baa),_0x2825f7(_0x368f42['error'](0x1f4,_0x3c2423[_0x568b4c(0xf6)]));});});},exports['GetContactDialer']=function(_0x966f10){const _0x2c7d6b=this;return new Promise(function(_0x1aba5d,_0x272558){const _0x465562=a167_0xa22a;return db[_0x465562(0x106)][_0x465562(0xf2)]()[_0x465562(0x108)](function(_0x30bd01){const _0x556fee=_0x465562;return db[_0x556fee(0x11a)]['transaction'](function(_0x26ed18){const _0x3d9ff0=_0x556fee;return db[_0x3d9ff0(0xfa)][_0x3d9ff0(0x11f)]({'where':_0x966f10[_0x3d9ff0(0x111)]?_0x966f10[_0x3d9ff0(0x111)][_0x3d9ff0(0x10a)]||null:null,'attributes':_0x966f10['options']?_0x966f10['options'][_0x3d9ff0(0x107)]||null:null,'limit':_0x966f10['options']?_0x966f10[_0x3d9ff0(0x111)]['limit']||null:null,'order':_0x966f10['options']?_0x966f10['options'][_0x3d9ff0(0xf1)]||null:null,'transaction':_0x26ed18,'lock':_0x26ed18[_0x3d9ff0(0xfc)]['UPDATE'],'include':[{'model':db[_0x3d9ff0(0x106)],'as':'Contact','attributes':_[_0x3d9ff0(0x116)](_0x30bd01)},{'model':db[_0x3d9ff0(0x11d)],'as':_0x3d9ff0(0x119),'attributes':['id',_0x3d9ff0(0xf3),_0x3d9ff0(0xe8)]}]})[_0x3d9ff0(0x108)](function(_0x4c4f3b){const _0x577d96=_0x3d9ff0,_0x1af4f4=[],_0x2be015=[];for(let _0x3a4cfb=0x0;_0x3a4cfb<_0x4c4f3b['length'];_0x3a4cfb+=0x1){!_0x2be015['includes'](_0x4c4f3b[_0x3a4cfb]['UserId'])&&(_0x2be015[_0x577d96(0x118)](_0x4c4f3b[_0x3a4cfb][_0x577d96(0x11b)]),_0x1af4f4[_0x577d96(0x118)](_0x4c4f3b[_0x3a4cfb][_0x577d96(0x105)](_0x966f10['body'],{'transaction':_0x26ed18})));}return Promise[_0x577d96(0x10f)](_0x1af4f4);});})[_0x556fee(0x108)](function(_0x407f6e){const _0x12b689=_0x556fee;logger['info'](_0x12b689(0xec),_0x966f10),logger[_0x12b689(0xe7)](_0x12b689(0xec),_0x966f10,JSON['stringify'](_0x407f6e)),_0x1aba5d(_0x407f6e);})['catch'](function(_0x3dc981){const _0x37f845=_0x556fee;logger[_0x37f845(0xfd)](_0x37f845(0xec),_0x3dc981['message'],_0x966f10),_0x272558(_0x2c7d6b[_0x37f845(0xfd)](0x1f4,_0x3dc981[_0x37f845(0xf6)]));});});});},exports[a167_0x4d3b81(0x102)]=function(_0x37c4a3){const _0x269e1a=this;return new Promise(function(_0xef90e4,_0xdd6a97){const _0x115512=a167_0xa22a;return db[_0x115512(0x11a)][_0x115512(0x115)](function(_0x6c178b){const _0x5f00b5=_0x115512;return db[_0x5f00b5(0x109)][_0x5f00b5(0xf5)](_0x37c4a3[_0x5f00b5(0xea)],{'raw':_0x37c4a3[_0x5f00b5(0x111)]?_0x37c4a3[_0x5f00b5(0x111)]['raw']===undefined?!![]:![]:!![],'transaction':_0x6c178b})['then'](function(){const _0x5b0d5d=_0x5f00b5;return db[_0x5b0d5d(0xfa)]['destroy']({'where':_0x37c4a3[_0x5b0d5d(0x111)]?_0x37c4a3['options'][_0x5b0d5d(0x10a)]||null:null,'transaction':_0x6c178b});});})[_0x115512(0x108)](function(_0xa918f0){const _0x1751e6=_0x115512;logger[_0x1751e6(0xeb)](_0x1751e6(0x102),_0x37c4a3),logger[_0x1751e6(0xe7)](_0x1751e6(0x102),_0x37c4a3,JSON[_0x1751e6(0x117)](_0xa918f0)),_0xef90e4(_0xa918f0);})[_0x115512(0x112)](function(_0x4c0045){const _0x12a4b0=_0x115512;logger[_0x12a4b0(0xfd)](_0x12a4b0(0x102),_0x4c0045[_0x12a4b0(0xf6)],_0x37c4a3),_0xdd6a97(_0x269e1a[_0x12a4b0(0xfd)](0x1f4,_0x4c0045[_0x12a4b0(0xf6)]));});});},exports[a167_0x4d3b81(0x113)]=function(_0x40d8a7){const _0xa5159b=this;return new Promise(function(_0x199430,_0xf7be84){const _0x402d33=a167_0xa22a;return db[_0x402d33(0xfa)][_0x402d33(0x11f)]({'raw':_0x40d8a7[_0x402d33(0x111)]?_0x40d8a7['options']['raw']===undefined?!![]:![]:!![],'where':_0x40d8a7[_0x402d33(0x111)]?_0x40d8a7[_0x402d33(0x111)][_0x402d33(0x10a)]||null:null,'attributes':[[fn(_0x402d33(0xe9),fn('IF',literal('`scheduledat`\x20>=\x20'+util['format'](_0x402d33(0xef),moment()['format'](_0x402d33(0x10c)))+_0x402d33(0x114)))),_0x402d33(0xff)]]})[_0x402d33(0x108)](function(_0xe87f73){const _0xcb538b=_0x402d33;logger[_0xcb538b(0xeb)](_0xcb538b(0x113),_0x40d8a7),logger[_0xcb538b(0xe7)](_0xcb538b(0x113),_0x40d8a7,JSON[_0xcb538b(0x117)](_0xe87f73)),_0x199430(_0xe87f73);})[_0x402d33(0x112)](function(_0x4c01d6){const _0x5df53c=_0x402d33;logger[_0x5df53c(0xfd)]('CountReScheduled',_0x4c01d6[_0x5df53c(0xf6)],_0x40d8a7),_0xf7be84(_0xa5159b[_0x5df53c(0xfd)](0x1f4,_0x4c01d6[_0x5df53c(0xf6)]));});});},exports[a167_0x4d3b81(0x10b)]=function(_0x3ec58c){const _0x1c5b7e=this;return new Promise(function(_0x3e7b26,_0x4c095a){const _0x32df5e=a167_0xa22a;return db[_0x32df5e(0x106)][_0x32df5e(0xf2)]()[_0x32df5e(0x108)](function(){const _0x15ae48=_0x32df5e;return db['sequelize']['transaction'](function(_0x1a9896){const _0x6287ac=a167_0xa22a;return db['CmHopper'][_0x6287ac(0x11f)]({'where':_0x3ec58c['options']?_0x3ec58c['options'][_0x6287ac(0x10a)]||null:null,'attributes':_0x3ec58c[_0x6287ac(0x111)]?_0x3ec58c[_0x6287ac(0x111)]['attributes']||null:null,'limit':0x1,'order':_0x3ec58c[_0x6287ac(0x111)]?_0x3ec58c[_0x6287ac(0x111)][_0x6287ac(0xf1)]||null:null,'group':db['CmHopper'][_0x6287ac(0x11b)],'transaction':_0x1a9896,'lock':_0x1a9896[_0x6287ac(0xfc)][_0x6287ac(0xed)],'include':_0x3ec58c[_0x6287ac(0x111)]?_0x3ec58c['options'][_0x6287ac(0x103)]?_['map'](_0x3ec58c[_0x6287ac(0x111)][_0x6287ac(0x103)],function(_0x53e9f4){const _0x4dc102=_0x6287ac;return{'model':db[_0x53e9f4[_0x4dc102(0x11c)]],'as':_0x53e9f4['as'],'attributes':_0x53e9f4[_0x4dc102(0x107)],'include':_0x53e9f4[_0x4dc102(0x103)]?_[_0x4dc102(0xf0)](_0x53e9f4[_0x4dc102(0x103)],function(_0x5d16d8){const _0x19e010=_0x4dc102;return{'model':db[_0x5d16d8[_0x19e010(0x11c)]],'as':_0x5d16d8['as'],'attributes':_0x5d16d8[_0x19e010(0x107)],'include':_0x5d16d8[_0x19e010(0x103)]?_[_0x19e010(0xf0)](_0x5d16d8[_0x19e010(0x103)],function(_0xe4c84b){const _0x584a1d=_0x19e010;return{'model':db[_0xe4c84b[_0x584a1d(0x11c)]],'as':_0xe4c84b['as'],'attributes':_0xe4c84b[_0x584a1d(0x107)]};}):[]};}):[]};}):[]:[]})['then'](function(_0x106eef){const _0x5ade07=_0x6287ac,_0x5eab4d=[];for(let _0x1a1678=0x0;_0x1a1678<_0x106eef[_0x5ade07(0x10d)];_0x1a1678+=0x1){_0x5eab4d[_0x5ade07(0x118)](_0x106eef[_0x1a1678][_0x5ade07(0x105)](_0x3ec58c[_0x5ade07(0xea)],{'transaction':_0x1a9896}));}return Promise[_0x5ade07(0x10f)](_0x5eab4d);});})[_0x15ae48(0x108)](function(_0x4c44e8){const _0x294549=_0x15ae48;logger['info'](_0x294549(0x10b),_0x3ec58c),logger['debug'](_0x294549(0x10b),_0x3ec58c,JSON['stringify'](_0x4c44e8)),_0x3e7b26(_0x4c44e8);})[_0x15ae48(0x112)](function(_0x4e4bad){const _0x830ee0=_0x15ae48;logger[_0x830ee0(0xfd)](_0x830ee0(0x10b),_0x4e4bad[_0x830ee0(0xf6)],_0x3ec58c),_0x4c095a(_0x1c5b7e[_0x830ee0(0xfd)](0x1f4,_0x4e4bad[_0x830ee0(0xf6)]));});});});},exports[a167_0x4d3b81(0x101)]=function(_0x387aa3){const _0x308dae=this;return new Promise(function(_0x1ac22a,_0x1f98a3){const _0x11c93b=a167_0xa22a;db['CmContact']['describe']()[_0x11c93b(0x108)](function(_0xb6f2f4){const _0x458396=_0x11c93b;return db[_0x458396(0xfa)][_0x458396(0x11f)]({'raw':_0x387aa3[_0x458396(0x111)]?_0x387aa3[_0x458396(0x111)][_0x458396(0x120)]===undefined?!![]:![]:!![],'where':_0x387aa3[_0x458396(0x111)]?_0x387aa3['options'][_0x458396(0x10a)]||null:null,'attributes':_0x387aa3[_0x458396(0x111)]?_0x387aa3['options']['attributes']||null:null,'limit':_0x387aa3[_0x458396(0x111)]?_0x387aa3[_0x458396(0x111)][_0x458396(0x104)]||null:null,'include':_0x387aa3['options']?_0x387aa3['options'][_0x458396(0x103)]?_[_0x458396(0xf0)](_0x387aa3['options'][_0x458396(0x103)],function(_0x574870){const _0x14d2aa=_0x458396;return{'model':db[_0x574870[_0x14d2aa(0x11c)]],'as':_0x574870['as'],'attributes':_0x574870['as']==='Contact'?_[_0x14d2aa(0x116)](_0xb6f2f4):_0x574870['attributes'],'include':_0x574870[_0x14d2aa(0x103)]?_[_0x14d2aa(0xf0)](_0x574870[_0x14d2aa(0x103)],function(_0x7716ea){const _0x264458=_0x14d2aa;return{'model':db[_0x7716ea[_0x264458(0x11c)]],'as':_0x7716ea['as'],'attributes':_0x7716ea['attributes'],'include':_0x7716ea[_0x264458(0x103)]?_[_0x264458(0xf0)](_0x7716ea[_0x264458(0x103)],function(_0x413ab1){return{'model':db[_0x413ab1['model']],'as':_0x413ab1['as'],'attributes':_0x413ab1['attributes']};}):[]};}):[]};}):[]:[]})[_0x458396(0x108)](function(_0x2537ff){const _0x21551f=_0x458396;logger[_0x21551f(0xeb)](_0x21551f(0xfb),_0x387aa3),logger[_0x21551f(0xe7)]('GetCmHopper',_0x387aa3,JSON[_0x21551f(0x117)](_0x2537ff)),_0x1ac22a(_0x2537ff);})[_0x458396(0x112)](function(_0x5e1275){const _0x539233=_0x458396;logger[_0x539233(0xfd)]('GetCmHopper',_0x5e1275['message'],_0x387aa3),_0x1f98a3(_0x308dae['error'](0x1f4,_0x5e1275[_0x539233(0xf6)]));});});});}; \ No newline at end of file diff --git a/server/api/cmHopper/index.js b/server/api/cmHopper/index.js index 1cd0984..4368168 100644 --- a/server/api/cmHopper/index.js +++ b/server/api/cmHopper/index.js @@ -1 +1 @@ -const a140_0x1949=['/opencontacts','exports','/describe','show','create','./cmHopper.controller','put','delete','/:id','../../components/auth/service','get','update','getOpenContacts','Router','getPreview','describe','post','destroy','isAuthenticated'];(function(_0x311c17,_0x1949c6){const _0x26c616=function(_0x5aed25){while(--_0x5aed25){_0x311c17['push'](_0x311c17['shift']());}};_0x26c616(++_0x1949c6);}(a140_0x1949,0x108));const a140_0x26c6=function(_0x311c17,_0x1949c6){_0x311c17=_0x311c17-0x0;let _0x26c616=a140_0x1949[_0x311c17];return _0x26c616;};const _0x2b1a05=a140_0x26c6;'use strict';const express=require('express'),router=express[_0x2b1a05('0xf')](),auth=require(_0x2b1a05('0xb')),controller=require(_0x2b1a05('0x7'));router[_0x2b1a05('0xc')]('/',auth[_0x2b1a05('0x1')](),controller['index']),router['get'](_0x2b1a05('0x4'),auth[_0x2b1a05('0x1')](),controller[_0x2b1a05('0x11')]),router['get'](_0x2b1a05('0x2'),auth['isAuthenticated'](),controller[_0x2b1a05('0xe')]),router[_0x2b1a05('0xc')](_0x2b1a05('0xa'),auth[_0x2b1a05('0x1')](),controller[_0x2b1a05('0x5')]),router[_0x2b1a05('0x12')]('/',auth['isAuthenticated'](),controller[_0x2b1a05('0x6')]),router[_0x2b1a05('0x12')]('/preview',auth['isAuthenticated'](),controller[_0x2b1a05('0x10')]),router[_0x2b1a05('0x8')](_0x2b1a05('0xa'),auth[_0x2b1a05('0x1')](),controller[_0x2b1a05('0xd')]),router[_0x2b1a05('0x9')]('/:id',auth['isAuthenticated'](),controller[_0x2b1a05('0x0')]),module[_0x2b1a05('0x3')]=router; \ No newline at end of file +const a168_0x22c7=['Router','./cmHopper.controller','/preview','describe','update','post','show','exports','put','delete','get','/:id','express','create','isAuthenticated','getOpenContacts','/describe','/opencontacts'];(function(_0x1806e6,_0x3e3241){const _0x22c7fa=function(_0x371a10){while(--_0x371a10){_0x1806e6['push'](_0x1806e6['shift']());}};_0x22c7fa(++_0x3e3241);}(a168_0x22c7,0x170));const a168_0x371a=function(_0x1806e6,_0x3e3241){_0x1806e6=_0x1806e6-0x9d;let _0x22c7fa=a168_0x22c7[_0x1806e6];return _0x22c7fa;};const a168_0x2ae4e3=a168_0x371a;'use strict';const express=require(a168_0x2ae4e3(0xa1)),router=express[a168_0x2ae4e3(0xa7)](),auth=require('../../components/auth/service'),controller=require(a168_0x2ae4e3(0xa8));router[a168_0x2ae4e3(0x9f)]('/',auth['isAuthenticated'](),controller['index']),router[a168_0x2ae4e3(0x9f)](a168_0x2ae4e3(0xa5),auth['isAuthenticated'](),controller[a168_0x2ae4e3(0xaa)]),router['get'](a168_0x2ae4e3(0xa6),auth['isAuthenticated'](),controller[a168_0x2ae4e3(0xa4)]),router[a168_0x2ae4e3(0x9f)](a168_0x2ae4e3(0xa0),auth[a168_0x2ae4e3(0xa3)](),controller[a168_0x2ae4e3(0xad)]),router[a168_0x2ae4e3(0xac)]('/',auth[a168_0x2ae4e3(0xa3)](),controller[a168_0x2ae4e3(0xa2)]),router['post'](a168_0x2ae4e3(0xa9),auth[a168_0x2ae4e3(0xa3)](),controller['getPreview']),router[a168_0x2ae4e3(0x9d)](a168_0x2ae4e3(0xa0),auth['isAuthenticated'](),controller[a168_0x2ae4e3(0xab)]),router[a168_0x2ae4e3(0x9e)]('/:id',auth[a168_0x2ae4e3(0xa3)](),controller['destroy']),module[a168_0x2ae4e3(0xae)]=router; \ No newline at end of file diff --git a/server/api/cmHopperBlack/cmHopperBlack.attributes.js b/server/api/cmHopperBlack/cmHopperBlack.attributes.js index 432571a..f42fa4f 100644 --- a/server/api/cmHopperBlack/cmHopperBlack.attributes.js +++ b/server/api/cmHopperBlack/cmHopperBlack.attributes.js @@ -1 +1 @@ -const a141_0x6398=['INTEGER','sequelize','exports','contactListQueue'];(function(_0x1c8758,_0x6398ef){const _0xa132ff=function(_0x234f29){while(--_0x234f29){_0x1c8758['push'](_0x1c8758['shift']());}};_0xa132ff(++_0x6398ef);}(a141_0x6398,0x125));const a141_0xa132=function(_0x1c8758,_0x6398ef){_0x1c8758=_0x1c8758-0x0;let _0xa132ff=a141_0x6398[_0x1c8758];return _0xa132ff;};const _0x5cd98b=a141_0xa132;'use strict';const Sequelize=require(_0x5cd98b('0x0'));module[_0x5cd98b('0x1')]={'phone':{'type':Sequelize['STRING'],'allowNull':![]},'ContactId':{'type':Sequelize[_0x5cd98b('0x3')],'unique':_0x5cd98b('0x2')},'ListId':{'type':Sequelize[_0x5cd98b('0x3')],'unique':_0x5cd98b('0x2')},'VoiceQueueId':{'type':Sequelize['INTEGER'],'unique':'contactListQueue'}}; \ No newline at end of file +const a169_0x20ee=['sequelize','exports','contactListQueue','INTEGER','STRING','attributes'];(function(_0x100b0d,_0x3c29f1){const _0x20ee6c=function(_0x2a52f3){while(--_0x2a52f3){_0x100b0d['push'](_0x100b0d['shift']());}};_0x20ee6c(++_0x3c29f1);}(a169_0x20ee,0x8e));const a169_0x2a52=function(_0x100b0d,_0x3c29f1){_0x100b0d=_0x100b0d-0x1ed;let _0x20ee6c=a169_0x20ee[_0x100b0d];return _0x20ee6c;};const a169_0x4099d2=a169_0x2a52;'use strict';const {DataTypes}=require(a169_0x4099d2(0x1ef)),attributes={'phone':{'type':DataTypes[a169_0x4099d2(0x1ed)],'allowNull':![]},'ContactId':{'type':DataTypes[a169_0x4099d2(0x1f2)],'unique':'contactListQueue'},'ListId':{'type':DataTypes[a169_0x4099d2(0x1f2)],'unique':a169_0x4099d2(0x1f1)},'VoiceQueueId':{'type':DataTypes[a169_0x4099d2(0x1f2)],'unique':a169_0x4099d2(0x1f1)}};module[a169_0x4099d2(0x1f0)][a169_0x4099d2(0x1ee)]=attributes; \ No newline at end of file diff --git a/server/api/cmHopperBlack/cmHopperBlack.controller.js b/server/api/cmHopperBlack/cmHopperBlack.controller.js index 0bfac1d..7f8990e 100644 --- a/server/api/cmHopperBlack/cmHopperBlack.controller.js +++ b/server/api/cmHopperBlack/cmHopperBlack.controller.js @@ -1 +1 @@ -const a142_0x5bbf=['VIRTUAL','options','model','filters','merge','attributes','show','pick','name','offset','send','filter','map','key','then','params','intersection','where','limit','set','rawAttributes','length','sendStatus','fieldName','nolimit','findOne','body','keys','include','../../mysqldb','status','type','query','index','describe','../../components/parsers/qs','stack','rows','error','count','catch','update','order','sort','like','fields','destroy','CmHopperBlack','Content-Range','includeAll','json'];(function(_0x9ad271,_0x5bbf9e){const _0x2232de=function(_0x5e7ca9){while(--_0x5e7ca9){_0x9ad271['push'](_0x9ad271['shift']());}};_0x2232de(++_0x5bbf9e);}(a142_0x5bbf,0xcf));const a142_0x2232=function(_0x9ad271,_0x5bbf9e){_0x9ad271=_0x9ad271-0x0;let _0x2232de=a142_0x5bbf[_0x9ad271];return _0x2232de;};const _0x56cae5=a142_0x2232;'use strict';const _=require('lodash'),qs=require(_0x56cae5('0x20')),logger=require('../../config/logger')('api'),db=require(_0x56cae5('0x1a'))['db'],{Op}=require('sequelize');function respondWithResult(_0x5e7ca9,_0x2f36cb){return _0x2f36cb=_0x2f36cb||0xc8,function(_0x3aa2ca){const _0x4a4ec5=a142_0x2232;if(_0x3aa2ca)return _0x5e7ca9[_0x4a4ec5('0x1b')](_0x2f36cb)['json'](_0x3aa2ca);};}function respondWithFilteredResult(_0x36fba6,_0x4f0daf){return function(_0x1d6c14){const _0x10f752=a142_0x2232;if(_0x1d6c14){const _0xd7a765=_0x1d6c14['count'],_0x2e42be=_0x4f0daf['offset'];let _0x17db89=_0x4f0daf[_0x10f752('0x6')]+_0x4f0daf[_0x10f752('0xf')],_0x38eef8;return _0x17db89>=_0xd7a765?(_0x17db89=_0xd7a765,_0x38eef8=0xc8):_0x38eef8=0xce,_0x36fba6[_0x10f752('0x1b')](_0x38eef8),_0x36fba6[_0x10f752('0x10')](_0x10f752('0x2d'),_0x2e42be+'-'+_0x17db89+'/'+_0xd7a765)[_0x10f752('0x2f')](_0x1d6c14);}return null;};}function saveUpdates(_0x21b013){return function(_0x728e2b){if(_0x728e2b)return _0x728e2b['update'](_0x21b013)['then'](function(_0x1bf2e2){return _0x1bf2e2;});return null;};}function removeEntity(_0x276ab9){return function(_0x1235aa){const _0x405d58=a142_0x2232;if(_0x1235aa)return _0x1235aa[_0x405d58('0x2b')]()['then'](function(){const _0x98b62e=_0x405d58;_0x276ab9[_0x98b62e('0x1b')](0xcc)['end']();});};}function handleEntityNotFound(_0x391e8c){return function(_0x4150c4){const _0x3d232e=a142_0x2232;return!_0x4150c4&&_0x391e8c[_0x3d232e('0x13')](0x194),_0x4150c4;};}function handleError(_0x381295,_0x4dadd0){return _0x4dadd0=_0x4dadd0||0x1f4,function(_0x3a2f79){const _0x1406c4=a142_0x2232;logger[_0x1406c4('0x23')](_0x3a2f79[_0x1406c4('0x21')]),_0x3a2f79[_0x1406c4('0x5')]&&delete _0x3a2f79[_0x1406c4('0x5')],_0x381295[_0x1406c4('0x1b')](_0x4dadd0)[_0x1406c4('0x7')](_0x3a2f79);};}exports[_0x56cae5('0x1e')]=function(_0x603b0a,_0x51a816){const _0xf4443f=_0x56cae5;let _0x3ca87f={};const _0x2d8e53={},_0x1fe237={'count':0x0,'rows':[]},_0x4c240e=_[_0xf4443f('0x9')](db['CmHopperBlack'][_0xf4443f('0x11')],function(_0x127600){const _0x5ab337=_0xf4443f;return{'name':_0x127600[_0x5ab337('0x14')],'type':_0x127600['type'][_0x5ab337('0xa')]};});_0x2d8e53[_0xf4443f('0x32')]=_[_0xf4443f('0x9')](_0x4c240e,'name'),_0x2d8e53['query']=_[_0xf4443f('0x18')](_0x603b0a[_0xf4443f('0x1d')]),_0x2d8e53[_0xf4443f('0x0')]=_['intersection'](_0x2d8e53[_0xf4443f('0x32')],_0x2d8e53[_0xf4443f('0x1d')]),_0x3ca87f[_0xf4443f('0x2')]=_[_0xf4443f('0xd')](_0x2d8e53[_0xf4443f('0x32')],qs[_0xf4443f('0x2a')](_0x603b0a[_0xf4443f('0x1d')][_0xf4443f('0x2a')])),_0x3ca87f[_0xf4443f('0x2')]=_0x3ca87f['attributes']['length']?_0x3ca87f[_0xf4443f('0x2')]:_0x2d8e53[_0xf4443f('0x32')];typeof _0x603b0a[_0xf4443f('0x1d')][_0xf4443f('0x15')]==='undefined'&&(_0x3ca87f[_0xf4443f('0xf')]=qs[_0xf4443f('0xf')](_0x603b0a[_0xf4443f('0x1d')][_0xf4443f('0xf')]),_0x3ca87f[_0xf4443f('0x6')]=qs['offset'](_0x603b0a[_0xf4443f('0x1d')][_0xf4443f('0x6')]));_0x3ca87f[_0xf4443f('0x27')]=qs['sort'](_0x603b0a[_0xf4443f('0x1d')][_0xf4443f('0x28')]),_0x3ca87f[_0xf4443f('0xe')]=qs['filters'](_[_0xf4443f('0x4')](_0x603b0a['query'],_0x2d8e53['filters']),_0x4c240e);_0x603b0a['query']['filter']&&(_0x3ca87f[_0xf4443f('0xe')]=_['merge'](_0x3ca87f[_0xf4443f('0xe')],{[Op['or']]:_[_0xf4443f('0x9')](_0x4c240e,function(_0x297b7c){const _0x14dd5f=_0xf4443f;if(_0x297b7c[_0x14dd5f('0x1c')]!==_0x14dd5f('0x30')){const _0x2af536={};return _0x2af536[_0x297b7c[_0x14dd5f('0x5')]]={[Op[_0x14dd5f('0x29')]]:'%'+_0x603b0a[_0x14dd5f('0x1d')][_0x14dd5f('0x8')]+'%'},_0x2af536;}})}));_0x3ca87f=_[_0xf4443f('0x1')]({},_0x3ca87f,_0x603b0a[_0xf4443f('0x31')]);const _0x37d7ca={'where':_0x3ca87f[_0xf4443f('0xe')]};return db[_0xf4443f('0x2c')]['count'](_0x37d7ca)[_0xf4443f('0xb')](function(_0x4ac5aa){const _0x21ee56=_0xf4443f;return _0x1fe237[_0x21ee56('0x24')]=_0x4ac5aa,_0x603b0a['query'][_0x21ee56('0x2e')]&&(_0x3ca87f[_0x21ee56('0x19')]=[{'all':!![]}]),db[_0x21ee56('0x2c')]['findAll'](_0x3ca87f);})['then'](function(_0x20f9f2){const _0x254e92=_0xf4443f;return _0x1fe237[_0x254e92('0x22')]=_0x20f9f2,_0x1fe237;})[_0xf4443f('0xb')](respondWithFilteredResult(_0x51a816,_0x3ca87f))[_0xf4443f('0x25')](handleError(_0x51a816,null));},exports[_0x56cae5('0x3')]=function(_0x449cf3,_0x594883){const _0x1a8d0a=_0x56cae5;let _0x5405c0={'raw':!![],'where':{'id':_0x449cf3[_0x1a8d0a('0xc')]['id']}};const _0x5d8555={};return _0x5d8555['model']=_['keys'](db[_0x1a8d0a('0x2c')][_0x1a8d0a('0x11')]),_0x5d8555[_0x1a8d0a('0x1d')]=_[_0x1a8d0a('0x18')](_0x449cf3[_0x1a8d0a('0x1d')]),_0x5d8555['filters']=_[_0x1a8d0a('0xd')](_0x5d8555[_0x1a8d0a('0x32')],_0x5d8555['query']),_0x5405c0[_0x1a8d0a('0x2')]=_[_0x1a8d0a('0xd')](_0x5d8555[_0x1a8d0a('0x32')],qs[_0x1a8d0a('0x2a')](_0x449cf3['query'][_0x1a8d0a('0x2a')])),_0x5405c0[_0x1a8d0a('0x2')]=_0x5405c0[_0x1a8d0a('0x2')][_0x1a8d0a('0x12')]?_0x5405c0[_0x1a8d0a('0x2')]:_0x5d8555[_0x1a8d0a('0x32')],_0x449cf3[_0x1a8d0a('0x1d')][_0x1a8d0a('0x2e')]&&(_0x5405c0[_0x1a8d0a('0x19')]=[{'all':!![]}]),_0x5405c0=_[_0x1a8d0a('0x1')]({},_0x5405c0,_0x449cf3[_0x1a8d0a('0x31')]),db[_0x1a8d0a('0x2c')]['findOne'](_0x5405c0)[_0x1a8d0a('0xb')](handleEntityNotFound(_0x594883,null))[_0x1a8d0a('0xb')](respondWithResult(_0x594883,null))['catch'](handleError(_0x594883,null));},exports[_0x56cae5('0x26')]=function(_0x310c9f,_0x28944f){const _0x12b460=_0x56cae5;return _0x310c9f[_0x12b460('0x17')]['id']&&delete _0x310c9f[_0x12b460('0x17')]['id'],db[_0x12b460('0x2c')][_0x12b460('0x16')]({'where':{'id':_0x310c9f[_0x12b460('0xc')]['id']}})[_0x12b460('0xb')](handleEntityNotFound(_0x28944f,null))[_0x12b460('0xb')](saveUpdates(_0x310c9f['body'],null))[_0x12b460('0xb')](respondWithResult(_0x28944f,null))[_0x12b460('0x25')](handleError(_0x28944f,null));},exports[_0x56cae5('0x2b')]=function(_0x458695,_0x2b1b3c){const _0x170870=_0x56cae5;return db[_0x170870('0x2c')]['findOne']({'where':{'id':_0x458695[_0x170870('0xc')]['id']}})['then'](handleEntityNotFound(_0x2b1b3c,null))['then'](removeEntity(_0x2b1b3c,null))['catch'](handleError(_0x2b1b3c,null));},exports[_0x56cae5('0x1f')]=function(_0x3883ca,_0x34d41d){const _0x5f44ae=_0x56cae5;return db[_0x5f44ae('0x2c')][_0x5f44ae('0x1f')]()['then'](respondWithResult(_0x34d41d,null))['catch'](handleError(_0x34d41d,null));}; \ No newline at end of file +const a170_0x48b2=['options','merge','includeAll','offset','describe','map','../../components/parsers/qs','index','error','body','show','VIRTUAL','then','limit','status','lodash','type','findAll','undefined','destroy','rawAttributes','sort','length','fields','like','pick','../../config/logger','nolimit','model','where','filter','catch','send','json','fieldName','intersection','count','sequelize','params','end','filters','query','attributes','api','keys','order','update','CmHopperBlack','name','findOne'];(function(_0x2fe78d,_0x3d6604){const _0x48b216=function(_0x7f4d3e){while(--_0x7f4d3e){_0x2fe78d['push'](_0x2fe78d['shift']());}};_0x48b216(++_0x3d6604);}(a170_0x48b2,0x10a));const a170_0x7f4d=function(_0x2fe78d,_0x3d6604){_0x2fe78d=_0x2fe78d-0xd3;let _0x48b216=a170_0x48b2[_0x2fe78d];return _0x48b216;};const a170_0xd9bd87=a170_0x7f4d;'use strict';const _=require(a170_0xd9bd87(0x104)),qs=require(a170_0xd9bd87(0xfb)),logger=require(a170_0xd9bd87(0xdd))(a170_0xd9bd87(0xee)),{db}=require('../../mysqldb'),{Op}=require(a170_0xd9bd87(0xe8));function respondWithResult(_0x5960a9,_0x3495f6){return _0x3495f6=_0x3495f6||0xc8,function(_0x19b911){const _0x9b8cf4=a170_0x7f4d;if(_0x19b911)return _0x5960a9[_0x9b8cf4(0x103)](_0x3495f6)['json'](_0x19b911);};}function respondWithFilteredResult(_0x26ab75,_0x3a11e0){return function(_0x3e061e){const _0x26efdd=a170_0x7f4d;if(_0x3e061e){const _0x2e171c=_0x3e061e[_0x26efdd(0xe7)],_0xeefec6=_0x3a11e0[_0x26efdd(0xf8)];let _0x16791=_0x3a11e0[_0x26efdd(0xf8)]+_0x3a11e0[_0x26efdd(0x102)],_0x214ed7;return _0x16791>=_0x2e171c?(_0x16791=_0x2e171c,_0x214ed7=0xc8):_0x214ed7=0xce,_0x26ab75['status'](_0x214ed7),_0x26ab75['set']('Content-Range',_0xeefec6+'-'+_0x16791+'/'+_0x2e171c)[_0x26efdd(0xe4)](_0x3e061e);}return null;};}function saveUpdates(_0x2c07d4){return function(_0xb9a9fe){const _0x2f1f56=a170_0x7f4d;if(_0xb9a9fe)return _0xb9a9fe[_0x2f1f56(0xf1)](_0x2c07d4)[_0x2f1f56(0x101)](function(_0x42c8d4){return _0x42c8d4;});return null;};}function removeEntity(_0x58ec73){return function(_0x218f88){const _0x575a8c=a170_0x7f4d;if(_0x218f88)return _0x218f88[_0x575a8c(0xd6)]()[_0x575a8c(0x101)](function(){const _0x2ae7d6=_0x575a8c;_0x58ec73[_0x2ae7d6(0x103)](0xcc)[_0x2ae7d6(0xea)]();});};}function handleEntityNotFound(_0x4dc7e0){return function(_0x47051b){return!_0x47051b&&_0x4dc7e0['sendStatus'](0x194),_0x47051b;};}function handleError(_0x3bace7,_0x20b62e){return _0x20b62e=_0x20b62e||0x1f4,function(_0x5d34b0){const _0x3a3c5c=a170_0x7f4d;logger[_0x3a3c5c(0xfd)](_0x5d34b0['stack']),_0x5d34b0[_0x3a3c5c(0xf3)]&&delete _0x5d34b0[_0x3a3c5c(0xf3)],_0x3bace7['status'](_0x20b62e)[_0x3a3c5c(0xe3)](_0x5d34b0);};}exports[a170_0xd9bd87(0xfc)]=function(_0x8f3d09,_0x1755fd){const _0x5eef73=a170_0xd9bd87;let _0xae2185={};const _0x573b74={},_0x1c1265={'count':0x0,'rows':[]},_0x39fb7b=_[_0x5eef73(0xfa)](db[_0x5eef73(0xf2)][_0x5eef73(0xd7)],function(_0x3e68c1){const _0x36634f=_0x5eef73;return{'name':_0x3e68c1[_0x36634f(0xe5)],'type':_0x3e68c1[_0x36634f(0xd3)]['key']};});_0x573b74[_0x5eef73(0xdf)]=_[_0x5eef73(0xfa)](_0x39fb7b,_0x5eef73(0xf3)),_0x573b74[_0x5eef73(0xec)]=_[_0x5eef73(0xef)](_0x8f3d09[_0x5eef73(0xec)]),_0x573b74[_0x5eef73(0xeb)]=_[_0x5eef73(0xe6)](_0x573b74[_0x5eef73(0xdf)],_0x573b74[_0x5eef73(0xec)]),_0xae2185['attributes']=_[_0x5eef73(0xe6)](_0x573b74[_0x5eef73(0xdf)],qs[_0x5eef73(0xda)](_0x8f3d09[_0x5eef73(0xec)]['fields'])),_0xae2185[_0x5eef73(0xed)]=_0xae2185['attributes'][_0x5eef73(0xd9)]?_0xae2185[_0x5eef73(0xed)]:_0x573b74[_0x5eef73(0xdf)];typeof _0x8f3d09[_0x5eef73(0xec)][_0x5eef73(0xde)]===_0x5eef73(0xd5)&&(_0xae2185[_0x5eef73(0x102)]=qs['limit'](_0x8f3d09[_0x5eef73(0xec)][_0x5eef73(0x102)]),_0xae2185[_0x5eef73(0xf8)]=qs[_0x5eef73(0xf8)](_0x8f3d09[_0x5eef73(0xec)][_0x5eef73(0xf8)]));_0xae2185[_0x5eef73(0xf0)]=qs[_0x5eef73(0xd8)](_0x8f3d09['query'][_0x5eef73(0xd8)]),_0xae2185[_0x5eef73(0xe0)]=qs[_0x5eef73(0xeb)](_[_0x5eef73(0xdc)](_0x8f3d09[_0x5eef73(0xec)],_0x573b74[_0x5eef73(0xeb)]),_0x39fb7b);_0x8f3d09['query'][_0x5eef73(0xe1)]&&(_0xae2185['where']=_[_0x5eef73(0xf6)](_0xae2185[_0x5eef73(0xe0)],{[Op['or']]:_[_0x5eef73(0xfa)](_0x39fb7b,function(_0x1704b9){const _0x538f3d=_0x5eef73;if(_0x1704b9[_0x538f3d(0xd3)]!==_0x538f3d(0x100)){const _0x1c0741={};return _0x1c0741[_0x1704b9[_0x538f3d(0xf3)]]={[Op[_0x538f3d(0xdb)]]:'%'+_0x8f3d09[_0x538f3d(0xec)][_0x538f3d(0xe1)]+'%'},_0x1c0741;}})}));_0xae2185=_[_0x5eef73(0xf6)]({},_0xae2185,_0x8f3d09[_0x5eef73(0xf5)]);const _0x5be180={'where':_0xae2185[_0x5eef73(0xe0)]};return db['CmHopperBlack'][_0x5eef73(0xe7)](_0x5be180)[_0x5eef73(0x101)](function(_0x30c9e1){const _0x32ae1d=_0x5eef73;return _0x1c1265[_0x32ae1d(0xe7)]=_0x30c9e1,_0x8f3d09[_0x32ae1d(0xec)][_0x32ae1d(0xf7)]&&(_0xae2185['include']=[{'all':!![]}]),db[_0x32ae1d(0xf2)][_0x32ae1d(0xd4)](_0xae2185);})[_0x5eef73(0x101)](function(_0x5747ca){return _0x1c1265['rows']=_0x5747ca,_0x1c1265;})[_0x5eef73(0x101)](respondWithFilteredResult(_0x1755fd,_0xae2185))[_0x5eef73(0xe2)](handleError(_0x1755fd,null));},exports[a170_0xd9bd87(0xff)]=function(_0x35e5ab,_0x46e4d3){const _0xec0b3=a170_0xd9bd87;let _0x55ce14={'raw':!![],'where':{'id':_0x35e5ab[_0xec0b3(0xe9)]['id']}};const _0x491544={};return _0x491544['model']=_[_0xec0b3(0xef)](db[_0xec0b3(0xf2)]['rawAttributes']),_0x491544[_0xec0b3(0xec)]=_[_0xec0b3(0xef)](_0x35e5ab['query']),_0x491544[_0xec0b3(0xeb)]=_[_0xec0b3(0xe6)](_0x491544[_0xec0b3(0xdf)],_0x491544[_0xec0b3(0xec)]),_0x55ce14[_0xec0b3(0xed)]=_[_0xec0b3(0xe6)](_0x491544[_0xec0b3(0xdf)],qs['fields'](_0x35e5ab[_0xec0b3(0xec)]['fields'])),_0x55ce14[_0xec0b3(0xed)]=_0x55ce14['attributes']['length']?_0x55ce14[_0xec0b3(0xed)]:_0x491544['model'],_0x35e5ab[_0xec0b3(0xec)][_0xec0b3(0xf7)]&&(_0x55ce14['include']=[{'all':!![]}]),_0x55ce14=_[_0xec0b3(0xf6)]({},_0x55ce14,_0x35e5ab[_0xec0b3(0xf5)]),db[_0xec0b3(0xf2)][_0xec0b3(0xf4)](_0x55ce14)[_0xec0b3(0x101)](handleEntityNotFound(_0x46e4d3,null))[_0xec0b3(0x101)](respondWithResult(_0x46e4d3,null))[_0xec0b3(0xe2)](handleError(_0x46e4d3,null));},exports[a170_0xd9bd87(0xf1)]=function(_0x403d52,_0x23d816){const _0x5d32b7=a170_0xd9bd87;return _0x403d52['body']['id']&&delete _0x403d52[_0x5d32b7(0xfe)]['id'],db['CmHopperBlack'][_0x5d32b7(0xf4)]({'where':{'id':_0x403d52[_0x5d32b7(0xe9)]['id']}})['then'](handleEntityNotFound(_0x23d816,null))[_0x5d32b7(0x101)](saveUpdates(_0x403d52['body'],null))[_0x5d32b7(0x101)](respondWithResult(_0x23d816,null))[_0x5d32b7(0xe2)](handleError(_0x23d816,null));},exports[a170_0xd9bd87(0xd6)]=function(_0x5daa96,_0x2d56fc){const _0x326819=a170_0xd9bd87;return db['CmHopperBlack'][_0x326819(0xf4)]({'where':{'id':_0x5daa96[_0x326819(0xe9)]['id']}})[_0x326819(0x101)](handleEntityNotFound(_0x2d56fc,null))['then'](removeEntity(_0x2d56fc,null))[_0x326819(0xe2)](handleError(_0x2d56fc,null));},exports[a170_0xd9bd87(0xf9)]=function(_0x27de8b,_0x39a5bb){const _0x58fb2d=a170_0xd9bd87;return db[_0x58fb2d(0xf2)][_0x58fb2d(0xf9)]()[_0x58fb2d(0x101)](respondWithResult(_0x39a5bb,null))[_0x58fb2d(0xe2)](handleError(_0x39a5bb,null));}; \ No newline at end of file diff --git a/server/api/cmHopperBlack/cmHopperBlack.model.js b/server/api/cmHopperBlack/cmHopperBlack.model.js index 71dd41e..ca66a29 100644 --- a/server/api/cmHopperBlack/cmHopperBlack.model.js +++ b/server/api/cmHopperBlack/cmHopperBlack.model.js @@ -1 +1 @@ -const a143_0x2b32=['./cmHopperBlack.attributes','define'];(function(_0x281e11,_0x2b321d){const _0x394120=function(_0x2aa4f8){while(--_0x2aa4f8){_0x281e11['push'](_0x281e11['shift']());}};_0x394120(++_0x2b321d);}(a143_0x2b32,0x69));const a143_0x3941=function(_0x281e11,_0x2b321d){_0x281e11=_0x281e11-0x0;let _0x394120=a143_0x2b32[_0x281e11];return _0x394120;};const _0x1f7157=a143_0x3941;'use strict';const attributes=require(_0x1f7157('0x1'));module['exports']=function(_0x2aa4f8){const _0xaa6c32=_0x1f7157,_0x1e060a=_0x2aa4f8[_0xaa6c32('0x0')]('CmHopperBlack',attributes,{'tableName':'cm_hopper_black','paranoid':![],'indexes':[],'timestamps':!![]});return _0x1e060a;}; \ No newline at end of file +const a171_0x21d3=['CmHopperBlack','sequelize','exports','./cmHopperBlack.options','function','init'];(function(_0x127ad1,_0x50254c){const _0x21d3f8=function(_0x278f8c){while(--_0x278f8c){_0x127ad1['push'](_0x127ad1['shift']());}};_0x21d3f8(++_0x50254c);}(a171_0x21d3,0xc1));const a171_0x278f=function(_0x127ad1,_0x50254c){_0x127ad1=_0x127ad1-0xda;let _0x21d3f8=a171_0x21d3[_0x127ad1];return _0x21d3f8;};const a171_0x25122e=a171_0x278f;'use strict';const {Model}=require(a171_0x25122e(0xda)),{attributes}=require('./cmHopperBlack.attributes'),{options}=require(a171_0x25122e(0xdc));class CmHopperBlack extends Model{}function init(_0x2ba69a,_0x3f6c01){const _0x400afd=a171_0x25122e,_0x4e682d=options(_0x2ba69a),_0x33ac8d=typeof _0x3f6c01===_0x400afd(0xdd)?_0x3f6c01(_0x4e682d):_0x4e682d;return CmHopperBlack[_0x400afd(0xde)](attributes,_0x33ac8d),CmHopperBlack;}module[a171_0x25122e(0xdb)][a171_0x25122e(0xdf)]=CmHopperBlack,module[a171_0x25122e(0xdb)]['init']=init; \ No newline at end of file diff --git a/server/api/cmHopperBlack/cmHopperBlack.options.js b/server/api/cmHopperBlack/cmHopperBlack.options.js new file mode 100644 index 0000000..02dd3c8 --- /dev/null +++ b/server/api/cmHopperBlack/cmHopperBlack.options.js @@ -0,0 +1 @@ +var a172_0x1e48=['cm_hopper_black','exports','options'];(function(_0x292ca6,_0x3bd919){var _0x1e4844=function(_0x11a188){while(--_0x11a188){_0x292ca6['push'](_0x292ca6['shift']());}};_0x1e4844(++_0x3bd919);}(a172_0x1e48,0xfb));var a172_0x11a1=function(_0x292ca6,_0x3bd919){_0x292ca6=_0x292ca6-0x144;var _0x1e4844=a172_0x1e48[_0x292ca6];return _0x1e4844;};var a172_0x4d30ae=a172_0x11a1;function options(_0x14f0be){var _0x2ce4aa=a172_0x11a1;return{'sequelize':_0x14f0be,'tableName':_0x2ce4aa(0x145),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a172_0x4d30ae(0x146)][a172_0x4d30ae(0x144)]=options; \ No newline at end of file diff --git a/server/api/cmHopperBlack/cmHopperBlack.rpc.js b/server/api/cmHopperBlack/cmHopperBlack.rpc.js index 0b00b51..ca797bf 100644 --- a/server/api/cmHopperBlack/cmHopperBlack.rpc.js +++ b/server/api/cmHopperBlack/cmHopperBlack.rpc.js @@ -1 +1 @@ -const a144_0x10ae=['stringify','attributes','options','limit','raw','lodash','then','GetCmHopperBlack','../../mysqldb','rpc','message','include','../../config/logger','map','where','update','DestroyCmHopperBlack','model','debug','catch','CmHopperBlack','info','UpdateCmHopperBlack','error'];(function(_0x15c7cc,_0x10aea7){const _0x12a5b8=function(_0x483b0f){while(--_0x483b0f){_0x15c7cc['push'](_0x15c7cc['shift']());}};_0x12a5b8(++_0x10aea7);}(a144_0x10ae,0x93));const a144_0x12a5=function(_0x15c7cc,_0x10aea7){_0x15c7cc=_0x15c7cc-0x0;let _0x12a5b8=a144_0x10ae[_0x15c7cc];return _0x12a5b8;};const _0x115bda=a144_0x12a5;'use strict';const _=require(_0x115bda('0x2')),db=require(_0x115bda('0x5'))['db'],logger=require(_0x115bda('0x9'))(_0x115bda('0x6'));exports['GetCmHopperBlack']=function(_0x483b0f){const _0x314b09=this;return new Promise(function(_0x39bf98,_0x1792ad){const _0x3c1872=a144_0x12a5;return db[_0x3c1872('0x11')]['findAll']({'raw':_0x483b0f['options']?_0x483b0f['options'][_0x3c1872('0x1')]===undefined?!![]:![]:!![],'where':_0x483b0f['options']?_0x483b0f['options'][_0x3c1872('0xb')]||null:null,'attributes':_0x483b0f[_0x3c1872('0x17')]?_0x483b0f[_0x3c1872('0x17')]['attributes']||null:null,'limit':_0x483b0f[_0x3c1872('0x17')]?_0x483b0f[_0x3c1872('0x17')][_0x3c1872('0x0')]||null:null,'include':_0x483b0f[_0x3c1872('0x17')]?_0x483b0f[_0x3c1872('0x17')][_0x3c1872('0x8')]?_[_0x3c1872('0xa')](_0x483b0f['options'][_0x3c1872('0x8')],function(_0x28ae61){const _0x3d94a4=_0x3c1872;return{'model':db[_0x28ae61['model']],'as':_0x28ae61['as'],'attributes':_0x28ae61[_0x3d94a4('0x16')],'include':_0x28ae61[_0x3d94a4('0x8')]?_[_0x3d94a4('0xa')](_0x28ae61[_0x3d94a4('0x8')],function(_0x8d1414){const _0x731513=_0x3d94a4;return{'model':db[_0x8d1414[_0x731513('0xe')]],'as':_0x8d1414['as'],'attributes':_0x8d1414[_0x731513('0x16')],'include':_0x8d1414[_0x731513('0x8')]?_[_0x731513('0xa')](_0x8d1414['include'],function(_0x591909){const _0x351d8e=_0x731513;return{'model':db[_0x591909['model']],'as':_0x591909['as'],'attributes':_0x591909[_0x351d8e('0x16')]};}):[]};}):[]};}):[]:[]})[_0x3c1872('0x3')](function(_0x382878){const _0x38b9f3=_0x3c1872;logger[_0x38b9f3('0x12')]('GetCmHopperBlack',_0x483b0f),logger[_0x38b9f3('0xf')](_0x38b9f3('0x4'),_0x483b0f,JSON[_0x38b9f3('0x15')](_0x382878)),_0x39bf98(_0x382878);})[_0x3c1872('0x10')](function(_0x331a9c){const _0x492844=_0x3c1872;logger[_0x492844('0x14')](_0x492844('0x4'),_0x331a9c[_0x492844('0x7')],_0x483b0f),_0x1792ad(_0x314b09[_0x492844('0x14')](0x1f4,_0x331a9c[_0x492844('0x7')]));});});},exports[_0x115bda('0x13')]=function(_0x53eab2){const _0x531015=this;return new Promise(function(_0x10076e,_0x10644c){const _0x9e1f2f=a144_0x12a5;return db[_0x9e1f2f('0x11')][_0x9e1f2f('0xc')](_0x53eab2['body'],{'raw':_0x53eab2[_0x9e1f2f('0x17')]?_0x53eab2[_0x9e1f2f('0x17')][_0x9e1f2f('0x1')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x53eab2[_0x9e1f2f('0x17')]?_0x53eab2['options'][_0x9e1f2f('0xb')]||null:null,'attributes':_0x53eab2[_0x9e1f2f('0x17')]?_0x53eab2[_0x9e1f2f('0x17')][_0x9e1f2f('0x16')]||null:null,'limit':_0x53eab2[_0x9e1f2f('0x17')]?_0x53eab2[_0x9e1f2f('0x17')][_0x9e1f2f('0x0')]||null:null})['then'](function(_0xf1207b){const _0x3bb85c=_0x9e1f2f;logger['info'](_0x3bb85c('0x13'),_0x53eab2),logger[_0x3bb85c('0xf')]('UpdateCmHopperBlack',_0x53eab2,JSON['stringify'](_0xf1207b)),_0x10076e(_0xf1207b);})['catch'](function(_0x1ab958){const _0xefda3=_0x9e1f2f;logger[_0xefda3('0x14')]('UpdateCmHopperBlack',_0x1ab958[_0xefda3('0x7')],_0x53eab2),_0x10644c(_0x531015[_0xefda3('0x14')](0x1f4,_0x1ab958[_0xefda3('0x7')]));});});},exports[_0x115bda('0xd')]=function(_0x4e78a9){const _0x20df46=this;return new Promise(function(_0x489549,_0x4642e9){const _0x162829=a144_0x12a5;return db['CmHopperBlack']['destroy']({'where':_0x4e78a9[_0x162829('0x17')]?_0x4e78a9[_0x162829('0x17')][_0x162829('0xb')]||null:null})[_0x162829('0x3')](function(_0x5f7f1b){const _0x4fa0c5=_0x162829;logger['info'](_0x4fa0c5('0xd'),_0x4e78a9),logger[_0x4fa0c5('0xf')](_0x4fa0c5('0xd'),_0x4e78a9,JSON[_0x4fa0c5('0x15')](_0x5f7f1b)),_0x489549(_0x5f7f1b);})[_0x162829('0x10')](function(_0x260d07){const _0x5c8739=_0x162829;logger[_0x5c8739('0x14')](_0x5c8739('0xd'),_0x260d07[_0x5c8739('0x7')],_0x4e78a9),_0x4642e9(_0x20df46[_0x5c8739('0x14')](0x1f4,_0x260d07['message']));});});}; \ No newline at end of file +const a173_0x57f0=['../../mysqldb','findAll','map','CmHopperBlack','catch','lodash','raw','message','error','debug','UpdateCmHopperBlack','body','info','where','GetCmHopperBlack','rpc','stringify','destroy','include','limit','DestroyCmHopperBlack','then','options','update','model','attributes'];(function(_0x4be525,_0x5c17d7){const _0x57f086=function(_0x22bf93){while(--_0x22bf93){_0x4be525['push'](_0x4be525['shift']());}};_0x57f086(++_0x5c17d7);}(a173_0x57f0,0x16a));const a173_0x22bf=function(_0x4be525,_0x5c17d7){_0x4be525=_0x4be525-0xc4;let _0x57f086=a173_0x57f0[_0x4be525];return _0x57f086;};const a173_0x5a1810=a173_0x22bf;'use strict';const _=require(a173_0x5a1810(0xcb)),db=require(a173_0x5a1810(0xc6))['db'],logger=require('../../config/logger')(a173_0x5a1810(0xd5));exports[a173_0x5a1810(0xd4)]=function(_0xa89386){const _0x3cf30c=this;return new Promise(function(_0x24c457,_0x174a62){const _0x5b7b2e=a173_0x22bf;return db[_0x5b7b2e(0xc9)][_0x5b7b2e(0xc7)]({'raw':_0xa89386[_0x5b7b2e(0xdc)]?_0xa89386['options'][_0x5b7b2e(0xcc)]===undefined?!![]:![]:!![],'where':_0xa89386[_0x5b7b2e(0xdc)]?_0xa89386[_0x5b7b2e(0xdc)][_0x5b7b2e(0xd3)]||null:null,'attributes':_0xa89386['options']?_0xa89386[_0x5b7b2e(0xdc)][_0x5b7b2e(0xc5)]||null:null,'limit':_0xa89386[_0x5b7b2e(0xdc)]?_0xa89386[_0x5b7b2e(0xdc)][_0x5b7b2e(0xd9)]||null:null,'include':_0xa89386[_0x5b7b2e(0xdc)]?_0xa89386[_0x5b7b2e(0xdc)][_0x5b7b2e(0xd8)]?_[_0x5b7b2e(0xc8)](_0xa89386[_0x5b7b2e(0xdc)][_0x5b7b2e(0xd8)],function(_0x14bbc2){const _0x2cbe17=_0x5b7b2e;return{'model':db[_0x14bbc2['model']],'as':_0x14bbc2['as'],'attributes':_0x14bbc2[_0x2cbe17(0xc5)],'include':_0x14bbc2[_0x2cbe17(0xd8)]?_[_0x2cbe17(0xc8)](_0x14bbc2['include'],function(_0x3e9e8b){const _0x43f7b9=_0x2cbe17;return{'model':db[_0x3e9e8b[_0x43f7b9(0xc4)]],'as':_0x3e9e8b['as'],'attributes':_0x3e9e8b[_0x43f7b9(0xc5)],'include':_0x3e9e8b[_0x43f7b9(0xd8)]?_[_0x43f7b9(0xc8)](_0x3e9e8b[_0x43f7b9(0xd8)],function(_0x3d940f){const _0x55aae3=_0x43f7b9;return{'model':db[_0x3d940f[_0x55aae3(0xc4)]],'as':_0x3d940f['as'],'attributes':_0x3d940f[_0x55aae3(0xc5)]};}):[]};}):[]};}):[]:[]})[_0x5b7b2e(0xdb)](function(_0xb093e9){const _0x2f82e0=_0x5b7b2e;logger[_0x2f82e0(0xd2)](_0x2f82e0(0xd4),_0xa89386),logger[_0x2f82e0(0xcf)]('GetCmHopperBlack',_0xa89386,JSON['stringify'](_0xb093e9)),_0x24c457(_0xb093e9);})[_0x5b7b2e(0xca)](function(_0x5a0495){const _0x437737=_0x5b7b2e;logger[_0x437737(0xce)](_0x437737(0xd4),_0x5a0495[_0x437737(0xcd)],_0xa89386),_0x174a62(_0x3cf30c[_0x437737(0xce)](0x1f4,_0x5a0495[_0x437737(0xcd)]));});});},exports[a173_0x5a1810(0xd0)]=function(_0x19bc84){const _0x80f5c3=this;return new Promise(function(_0x989c84,_0x56d47a){const _0x53d5e4=a173_0x22bf;return db[_0x53d5e4(0xc9)][_0x53d5e4(0xdd)](_0x19bc84[_0x53d5e4(0xd1)],{'raw':_0x19bc84['options']?_0x19bc84[_0x53d5e4(0xdc)][_0x53d5e4(0xcc)]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x19bc84[_0x53d5e4(0xdc)]?_0x19bc84[_0x53d5e4(0xdc)][_0x53d5e4(0xd3)]||null:null,'attributes':_0x19bc84[_0x53d5e4(0xdc)]?_0x19bc84['options'][_0x53d5e4(0xc5)]||null:null,'limit':_0x19bc84[_0x53d5e4(0xdc)]?_0x19bc84[_0x53d5e4(0xdc)][_0x53d5e4(0xd9)]||null:null})['then'](function(_0x5e248c){const _0x561e9a=_0x53d5e4;logger[_0x561e9a(0xd2)](_0x561e9a(0xd0),_0x19bc84),logger[_0x561e9a(0xcf)](_0x561e9a(0xd0),_0x19bc84,JSON[_0x561e9a(0xd6)](_0x5e248c)),_0x989c84(_0x5e248c);})[_0x53d5e4(0xca)](function(_0x3d85d2){const _0x3cc37e=_0x53d5e4;logger[_0x3cc37e(0xce)](_0x3cc37e(0xd0),_0x3d85d2[_0x3cc37e(0xcd)],_0x19bc84),_0x56d47a(_0x80f5c3[_0x3cc37e(0xce)](0x1f4,_0x3d85d2[_0x3cc37e(0xcd)]));});});},exports[a173_0x5a1810(0xda)]=function(_0x3132c2){const _0x264dbb=this;return new Promise(function(_0x148f8c,_0x4bfec7){const _0x22abcd=a173_0x22bf;return db[_0x22abcd(0xc9)][_0x22abcd(0xd7)]({'where':_0x3132c2['options']?_0x3132c2[_0x22abcd(0xdc)][_0x22abcd(0xd3)]||null:null})[_0x22abcd(0xdb)](function(_0x28fb3a){const _0x776986=_0x22abcd;logger[_0x776986(0xd2)](_0x776986(0xda),_0x3132c2),logger[_0x776986(0xcf)]('DestroyCmHopperBlack',_0x3132c2,JSON[_0x776986(0xd6)](_0x28fb3a)),_0x148f8c(_0x28fb3a);})[_0x22abcd(0xca)](function(_0x379f5c){const _0x438ef4=_0x22abcd;logger['error'](_0x438ef4(0xda),_0x379f5c[_0x438ef4(0xcd)],_0x3132c2),_0x4bfec7(_0x264dbb[_0x438ef4(0xce)](0x1f4,_0x379f5c[_0x438ef4(0xcd)]));});});}; \ No newline at end of file diff --git a/server/api/cmHopperBlack/index.js b/server/api/cmHopperBlack/index.js index 339a300..60adee2 100644 --- a/server/api/cmHopperBlack/index.js +++ b/server/api/cmHopperBlack/index.js @@ -1 +1 @@ -const a145_0x2583=['put','./cmHopperBlack.controller','index','isAuthenticated','update','express','/:id','describe','exports','../../components/auth/service','get'];(function(_0x10b983,_0x2583c5){const _0x2b4ef4=function(_0x2fb0d1){while(--_0x2fb0d1){_0x10b983['push'](_0x10b983['shift']());}};_0x2b4ef4(++_0x2583c5);}(a145_0x2583,0x111));const a145_0x2b4e=function(_0x10b983,_0x2583c5){_0x10b983=_0x10b983-0x0;let _0x2b4ef4=a145_0x2583[_0x10b983];return _0x2b4ef4;};const _0x3024a6=a145_0x2b4e;'use strict';const express=require(_0x3024a6('0x7')),router=express['Router'](),auth=require(_0x3024a6('0x0')),controller=require(_0x3024a6('0x3'));router[_0x3024a6('0x1')]('/',auth[_0x3024a6('0x5')](),controller[_0x3024a6('0x4')]),router[_0x3024a6('0x1')]('/describe',auth['isAuthenticated'](),controller[_0x3024a6('0x9')]),router[_0x3024a6('0x1')](_0x3024a6('0x8'),auth[_0x3024a6('0x5')](),controller['show']),router[_0x3024a6('0x2')](_0x3024a6('0x8'),auth[_0x3024a6('0x5')](),controller[_0x3024a6('0x6')]),router['delete'](_0x3024a6('0x8'),auth[_0x3024a6('0x5')](),controller['destroy']),module[_0x3024a6('0xa')]=router; \ No newline at end of file +const a174_0x2cad=['./cmHopperBlack.controller','update','../../components/auth/service','delete','index','isAuthenticated','show','/describe','Router','destroy','exports','get','/:id'];(function(_0x12dc33,_0x1d93c1){const _0x2cadb8=function(_0x4c076f){while(--_0x4c076f){_0x12dc33['push'](_0x12dc33['shift']());}};_0x2cadb8(++_0x1d93c1);}(a174_0x2cad,0x17b));const a174_0x4c07=function(_0x12dc33,_0x1d93c1){_0x12dc33=_0x12dc33-0x1a9;let _0x2cadb8=a174_0x2cad[_0x12dc33];return _0x2cadb8;};const a174_0x25ec95=a174_0x4c07;'use strict';const express=require('express'),router=express[a174_0x25ec95(0x1af)](),auth=require(a174_0x25ec95(0x1a9)),controller=require(a174_0x25ec95(0x1b4));router[a174_0x25ec95(0x1b2)]('/',auth['isAuthenticated'](),controller[a174_0x25ec95(0x1ab)]),router['get'](a174_0x25ec95(0x1ae),auth[a174_0x25ec95(0x1ac)](),controller['describe']),router[a174_0x25ec95(0x1b2)](a174_0x25ec95(0x1b3),auth[a174_0x25ec95(0x1ac)](),controller[a174_0x25ec95(0x1ad)]),router['put'](a174_0x25ec95(0x1b3),auth[a174_0x25ec95(0x1ac)](),controller[a174_0x25ec95(0x1b5)]),router[a174_0x25ec95(0x1aa)](a174_0x25ec95(0x1b3),auth[a174_0x25ec95(0x1ac)](),controller[a174_0x25ec95(0x1b0)]),module[a174_0x25ec95(0x1b1)]=router; \ No newline at end of file diff --git a/server/api/cmHopperFinal/cmHopperFinal.attributes.js b/server/api/cmHopperFinal/cmHopperFinal.attributes.js index fc3ddf0..eedca0e 100644 --- a/server/api/cmHopperFinal/cmHopperFinal.attributes.js +++ b/server/api/cmHopperFinal/cmHopperFinal.attributes.js @@ -1 +1 @@ -const a146_0x3600=['exports','dispositionat','BOOLEAN','DATE','STRING','INTEGER','moment','setDataValue','endtime','sequelize','diff'];(function(_0x4f44c5,_0x3600de){const _0x145811=function(_0x5187dd){while(--_0x5187dd){_0x4f44c5['push'](_0x4f44c5['shift']());}};_0x145811(++_0x3600de);}(a146_0x3600,0x171));const a146_0x1458=function(_0x4f44c5,_0x3600de){_0x4f44c5=_0x4f44c5-0x0;let _0x145811=a146_0x3600[_0x4f44c5];return _0x145811;};const _0x15707f=a146_0x1458;'use strict';const Sequelize=require(_0x15707f('0x3')),moment=require(_0x15707f('0x0'));module[_0x15707f('0x5')]={'state':{'type':Sequelize[_0x15707f('0xa')](0x2)},'statedesc':{'type':Sequelize[_0x15707f('0x9')]},'scheduledat':{'type':Sequelize[_0x15707f('0x8')]},'countbusyretry':{'type':Sequelize[_0x15707f('0xa')],'defaultValue':0x0},'countcongestionretry':{'type':Sequelize[_0x15707f('0xa')],'defaultValue':0x0},'countnoanswerretry':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'countglobal':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'uniqueid':{'type':Sequelize[_0x15707f('0x9')]},'originatecalleridnum':{'type':Sequelize[_0x15707f('0x9')]},'originatecalleridname':{'type':Sequelize[_0x15707f('0x9')]},'calleridnum':{'type':Sequelize[_0x15707f('0x9')]},'calleridname':{'type':Sequelize[_0x15707f('0x9')]},'starttime':{'type':Sequelize[_0x15707f('0x8')]},'responsetime':{'type':Sequelize[_0x15707f('0x8')]},'answertime':{'type':Sequelize[_0x15707f('0x8')]},'droptime':{'type':Sequelize[_0x15707f('0x8')]},'endtime':{'type':Sequelize[_0x15707f('0x8')]},'ringtime':{'type':Sequelize[_0x15707f('0xa')],'defaultValue':0x0},'holdtime':{'type':Sequelize[_0x15707f('0xa')],'defaultValue':0x0},'talktime':{'type':Sequelize[_0x15707f('0xa')],'defaultValue':0x0},'followuptime':{'type':Sequelize[_0x15707f('0xa')],'defaultValue':0x0},'dropreason':{'type':Sequelize['STRING']},'campaign':{'type':Sequelize[_0x15707f('0x9')]},'campaigntype':{'type':Sequelize[_0x15707f('0x9')]},'membername':{'type':Sequelize[_0x15707f('0x9')]},'reason':{'type':Sequelize[_0x15707f('0x9')]},'disposition':{'type':Sequelize[_0x15707f('0x9')]},'secondDisposition':{'type':Sequelize[_0x15707f('0x9')]},'thirdDisposition':{'type':Sequelize['STRING']},'dispositionat':{'type':Sequelize[_0x15707f('0x8')],'set':function(_0x5187dd){const _0x201450=_0x15707f,_0x2d950a=this['getDataValue'](_0x201450('0x2'));return _0x2d950a&&_0x5187dd&&this[_0x201450('0x1')]('followuptime',moment(_0x5187dd)[_0x201450('0x4')](moment(_0x2d950a),'seconds')),this[_0x201450('0x1')](_0x201450('0x6'),_0x5187dd);}},'amd':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'fax':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'blacklist':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'rescheduled':{'type':Sequelize[_0x15707f('0x7')],'defaultValue':![]},'rescheduledat':{'type':Sequelize[_0x15707f('0x8')]},'callback':{'type':Sequelize[_0x15707f('0x7')],'defaultValue':![]},'callbackuniqueid':{'type':Sequelize['STRING'],'defaultValue':null},'callbackat':{'type':Sequelize['DATE']},'deleted':{'type':Sequelize['STRING'],'defaultValue':null},'deletedat':{'type':Sequelize['DATE']},'recallme':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'agiafterat':{'type':Sequelize[_0x15707f('0x8')]},'countnosuchnumberretry':{'type':Sequelize[_0x15707f('0xa')],'defaultValue':0x0},'countdropretry':{'type':Sequelize[_0x15707f('0xa')],'defaultValue':0x0},'countabandonedretry':{'type':Sequelize[_0x15707f('0xa')],'defaultValue':0x0},'countmachineretry':{'type':Sequelize[_0x15707f('0xa')],'defaultValue':0x0},'countagentrejectretry':{'type':Sequelize['INTEGER'],'defaultValue':0x0}}; \ No newline at end of file +const a175_0x376a=['sequelize','seconds','DATE','INTEGER','STRING','BOOLEAN','attributes','exports','dispositionat','followuptime','setDataValue'];(function(_0x2ad3e5,_0x5d4f1e){const _0x376a86=function(_0x275c7a){while(--_0x275c7a){_0x2ad3e5['push'](_0x2ad3e5['shift']());}};_0x376a86(++_0x5d4f1e);}(a175_0x376a,0xdb));const a175_0x275c=function(_0x2ad3e5,_0x5d4f1e){_0x2ad3e5=_0x2ad3e5-0xac;let _0x376a86=a175_0x376a[_0x2ad3e5];return _0x376a86;};const a175_0x454adf=a175_0x275c;'use strict';const {DataTypes}=require(a175_0x454adf(0xad)),moment=require('moment'),attributes={'state':{'type':DataTypes[a175_0x454adf(0xb0)]({'length':0x2})},'statedesc':{'type':DataTypes[a175_0x454adf(0xb1)]},'scheduledat':{'type':DataTypes['DATE']},'countbusyretry':{'type':DataTypes[a175_0x454adf(0xb0)],'defaultValue':0x0},'countcongestionretry':{'type':DataTypes[a175_0x454adf(0xb0)],'defaultValue':0x0},'countnoanswerretry':{'type':DataTypes[a175_0x454adf(0xb0)],'defaultValue':0x0},'countglobal':{'type':DataTypes['INTEGER'],'defaultValue':0x0},'uniqueid':{'type':DataTypes[a175_0x454adf(0xb1)]},'originatecalleridnum':{'type':DataTypes['STRING']},'originatecalleridname':{'type':DataTypes['STRING']},'calleridnum':{'type':DataTypes[a175_0x454adf(0xb1)]},'calleridname':{'type':DataTypes[a175_0x454adf(0xb1)]},'starttime':{'type':DataTypes['DATE']},'responsetime':{'type':DataTypes[a175_0x454adf(0xaf)]},'answertime':{'type':DataTypes[a175_0x454adf(0xaf)]},'droptime':{'type':DataTypes[a175_0x454adf(0xaf)]},'endtime':{'type':DataTypes['DATE']},'ringtime':{'type':DataTypes['INTEGER'],'defaultValue':0x0},'holdtime':{'type':DataTypes[a175_0x454adf(0xb0)],'defaultValue':0x0},'talktime':{'type':DataTypes[a175_0x454adf(0xb0)],'defaultValue':0x0},'followuptime':{'type':DataTypes[a175_0x454adf(0xb0)],'defaultValue':0x0},'dropreason':{'type':DataTypes[a175_0x454adf(0xb1)]},'campaign':{'type':DataTypes[a175_0x454adf(0xb1)]},'campaigntype':{'type':DataTypes[a175_0x454adf(0xb1)]},'membername':{'type':DataTypes[a175_0x454adf(0xb1)]},'reason':{'type':DataTypes['STRING']},'disposition':{'type':DataTypes[a175_0x454adf(0xb1)]},'secondDisposition':{'type':DataTypes[a175_0x454adf(0xb1)]},'thirdDisposition':{'type':DataTypes[a175_0x454adf(0xb1)]},'dispositionat':{'type':DataTypes['DATE'],'set':function(_0x4a9642){const _0x253ff3=a175_0x454adf,_0x56dd74=this['getDataValue']('endtime');return _0x56dd74&&_0x4a9642&&this[_0x253ff3(0xac)](_0x253ff3(0xb6),moment(_0x4a9642)['diff'](moment(_0x56dd74),_0x253ff3(0xae))),this['setDataValue'](_0x253ff3(0xb5),_0x4a9642);}},'amd':{'type':DataTypes[a175_0x454adf(0xb2)],'defaultValue':![]},'fax':{'type':DataTypes[a175_0x454adf(0xb2)],'defaultValue':![]},'blacklist':{'type':DataTypes[a175_0x454adf(0xb2)],'defaultValue':![]},'rescheduled':{'type':DataTypes['BOOLEAN'],'defaultValue':![]},'rescheduledat':{'type':DataTypes[a175_0x454adf(0xaf)]},'callback':{'type':DataTypes['BOOLEAN'],'defaultValue':![]},'callbackuniqueid':{'type':DataTypes[a175_0x454adf(0xb1)],'defaultValue':null},'callbackat':{'type':DataTypes[a175_0x454adf(0xaf)]},'deleted':{'type':DataTypes[a175_0x454adf(0xb1)],'defaultValue':null},'deletedat':{'type':DataTypes[a175_0x454adf(0xaf)]},'recallme':{'type':DataTypes[a175_0x454adf(0xb2)],'defaultValue':![]},'agiafterat':{'type':DataTypes[a175_0x454adf(0xaf)]},'countnosuchnumberretry':{'type':DataTypes[a175_0x454adf(0xb0)],'defaultValue':0x0},'countdropretry':{'type':DataTypes[a175_0x454adf(0xb0)],'defaultValue':0x0},'countabandonedretry':{'type':DataTypes[a175_0x454adf(0xb0)],'defaultValue':0x0},'countmachineretry':{'type':DataTypes['INTEGER'],'defaultValue':0x0},'countagentrejectretry':{'type':DataTypes['INTEGER'],'defaultValue':0x0}};module[a175_0x454adf(0xb4)][a175_0x454adf(0xb3)]=attributes; \ No newline at end of file diff --git a/server/api/cmHopperFinal/cmHopperFinal.controller.js b/server/api/cmHopperFinal/cmHopperFinal.controller.js index 624824c..d62976a 100644 --- a/server/api/cmHopperFinal/cmHopperFinal.controller.js +++ b/server/api/cmHopperFinal/cmHopperFinal.controller.js @@ -1 +1 @@ -const a147_0x2849=['status','findOne','fromQuery','fieldName','cm_hopper_final','error','order','updatedAt','VIRTUAL','congestionContacts','options','calleridnum\x20IS\x20NOT\x20NULL','length','query','dropContacts','cm_hopper','group','noAnswerContacts','uniqueid','attributes','`state`\x20=\x2022,\x201,\x20null','describe','`state`\x20=\x200,\x201,\x20null','VoiceQueueId\x20=\x20?','json','body','ContactId','countContactsQueueCampaignHopperFinal','../../mysqldb','type','busyContacts','createdAt','params','sendStatus','reCallContacts','select','stack','answeringMachine','update','then','fields','ANY_VALUE(ListId)','ListId','offset','state','noSuchContacts','merge','sort','name','NOW()','filter','rows','map','intersection','moveContactsIvrCampaignHopperFinal','state\x20=\x204','`state`\x20=\x205,\x201,\x20null','CmHopperFinal','`state`\x20=\x203,\x201,\x20null','into','Content-Range','where','rawAttributes','ANY_VALUE(calleridnum)','toString','include','lodash','`state`\x20=\x2011\x20,\x201,\x20null','show','includeAll','field','`state`\x20=\x208,\x201,\x20null','count','`state`\x20=\x2010\x20,\x201,\x20null','findAll','from','COUNT','send','keys','catch','set','filters','phone','VoiceQueueId','insert','squel','ANY_VALUE(ContactId)','sequelize','CmHopper','calleridnum','CampaignId\x20=\x20?','calleridnum\x20NOT\x20IN\x20(?)','abandonedContacts','CampaignId','scheduledAt','limit','model'];(function(_0x329d42,_0x2849c1){const _0x1ea10e=function(_0x20e40e){while(--_0x20e40e){_0x329d42['push'](_0x329d42['shift']());}};_0x1ea10e(++_0x2849c1);}(a147_0x2849,0xb0));const a147_0x1ea1=function(_0x329d42,_0x2849c1){_0x329d42=_0x329d42-0x0;let _0x1ea10e=a147_0x2849[_0x329d42];return _0x1ea10e;};const _0x167415=a147_0x1ea1;'use strict';const _=require(_0x167415('0x54')),squel=require(_0x167415('0x6')),qs=require('../../components/parsers/qs'),logger=require('../../config/logger')('api'),db=require(_0x167415('0x2e'))['db'],{Op,fn,literal}=require(_0x167415('0x8'));function respondWithResult(_0x20e40e,_0x3f1cd1){return _0x3f1cd1=_0x3f1cd1||0xc8,function(_0x2ea70d){const _0x281e02=a147_0x1ea1;if(_0x2ea70d)return _0x20e40e['status'](_0x3f1cd1)[_0x281e02('0x2a')](_0x2ea70d);};}function respondWithFilteredResult(_0x58a0a8,_0xa18f1f){return function(_0x1c9230){const _0x34378c=a147_0x1ea1;if(_0x1c9230){const _0x300430=_0x1c9230['count'],_0x3d626f=_0xa18f1f[_0x34378c('0x3d')];let _0xc0fdd0=_0xa18f1f['offset']+_0xa18f1f[_0x34378c('0x10')],_0x598ecf;return _0xc0fdd0>=_0x300430?(_0xc0fdd0=_0x300430,_0x598ecf=0xc8):_0x598ecf=0xce,_0x58a0a8[_0x34378c('0x12')](_0x598ecf),_0x58a0a8[_0x34378c('0x1')](_0x34378c('0x4e'),_0x3d626f+'-'+_0xc0fdd0+'/'+_0x300430)[_0x34378c('0x2a')](_0x1c9230);}return null;};}function saveUpdates(_0x218f35){return function(_0x280876){if(_0x280876)return _0x280876['update'](_0x218f35)['then'](function(_0x2c43f6){return _0x2c43f6;});return null;};}function handleEntityNotFound(_0x30a80c){return function(_0x29d2f5){const _0x33ead2=a147_0x1ea1;return!_0x29d2f5&&_0x30a80c[_0x33ead2('0x33')](0x194),_0x29d2f5;};}function handleError(_0x8ff91e,_0x913849){return _0x913849=_0x913849||0x1f4,function(_0x4b3dd9){const _0xd9879e=a147_0x1ea1;logger[_0xd9879e('0x17')](_0x4b3dd9[_0xd9879e('0x36')]),_0x4b3dd9['name']&&delete _0x4b3dd9[_0xd9879e('0x42')],_0x8ff91e[_0xd9879e('0x12')](_0x913849)[_0xd9879e('0x5f')](_0x4b3dd9);};}exports['index']=function(_0x3673a2,_0x435836){const _0xfa37d2=_0x167415;let _0x2ad43a={};const _0x1b04e7={},_0x1f2b7e={'count':0x0,'rows':[]},_0x5880b4=_[_0xfa37d2('0x46')](db[_0xfa37d2('0x4b')][_0xfa37d2('0x50')],function(_0x5edf22){const _0x20c3fe=_0xfa37d2;return{'name':_0x5edf22[_0x20c3fe('0x15')],'type':_0x5edf22[_0x20c3fe('0x2f')]['key']};});_0x1b04e7[_0xfa37d2('0x11')]=_['map'](_0x5880b4,_0xfa37d2('0x42')),_0x1b04e7[_0xfa37d2('0x1f')]=_['keys'](_0x3673a2[_0xfa37d2('0x1f')]),_0x1b04e7[_0xfa37d2('0x2')]=_[_0xfa37d2('0x47')](_0x1b04e7[_0xfa37d2('0x11')],_0x1b04e7[_0xfa37d2('0x1f')]),_0x2ad43a['attributes']=_['intersection'](_0x1b04e7[_0xfa37d2('0x11')],qs[_0xfa37d2('0x3a')](_0x3673a2[_0xfa37d2('0x1f')][_0xfa37d2('0x3a')])),_0x2ad43a[_0xfa37d2('0x25')]=_0x2ad43a['attributes'][_0xfa37d2('0x1e')]?_0x2ad43a[_0xfa37d2('0x25')]:_0x1b04e7[_0xfa37d2('0x11')];typeof _0x3673a2[_0xfa37d2('0x1f')]['nolimit']==='undefined'&&(_0x2ad43a[_0xfa37d2('0x10')]=qs['limit'](_0x3673a2[_0xfa37d2('0x1f')]['limit']),_0x2ad43a[_0xfa37d2('0x3d')]=qs[_0xfa37d2('0x3d')](_0x3673a2['query']['offset']));_0x2ad43a[_0xfa37d2('0x18')]=qs[_0xfa37d2('0x41')](_0x3673a2[_0xfa37d2('0x1f')][_0xfa37d2('0x41')]),_0x2ad43a[_0xfa37d2('0x4f')]=qs['filters'](_['pick'](_0x3673a2['query'],_0x1b04e7[_0xfa37d2('0x2')]),_0x5880b4);_0x3673a2[_0xfa37d2('0x1f')][_0xfa37d2('0x44')]&&(_0x2ad43a['where']=_[_0xfa37d2('0x40')](_0x2ad43a[_0xfa37d2('0x4f')],{[Op['or']]:_[_0xfa37d2('0x46')](_0x5880b4,function(_0x43f5bc){const _0x4fbb9a=_0xfa37d2;if(_0x43f5bc['type']!==_0x4fbb9a('0x1a')){const _0x2b1e03={};return _0x2b1e03[_0x43f5bc[_0x4fbb9a('0x42')]]={[Op['like']]:'%'+_0x3673a2['query'][_0x4fbb9a('0x44')]+'%'},_0x2b1e03;}})}));_0x2ad43a=_[_0xfa37d2('0x40')]({},_0x2ad43a,_0x3673a2[_0xfa37d2('0x1c')]);const _0x3dc872={'where':_0x2ad43a['where']};return db['CmHopperFinal'][_0xfa37d2('0x5a')](_0x3dc872)['then'](function(_0x27e310){const _0x4adbd8=_0xfa37d2;return _0x1f2b7e[_0x4adbd8('0x5a')]=_0x27e310,_0x3673a2[_0x4adbd8('0x1f')][_0x4adbd8('0x57')]&&(_0x2ad43a[_0x4adbd8('0x53')]=[{'all':!![]}]),db[_0x4adbd8('0x4b')]['findAll'](_0x2ad43a);})[_0xfa37d2('0x39')](function(_0x3b9be8){const _0x4140db=_0xfa37d2;return _0x1f2b7e[_0x4140db('0x45')]=_0x3b9be8,_0x1f2b7e;})[_0xfa37d2('0x39')](respondWithFilteredResult(_0x435836,_0x2ad43a))[_0xfa37d2('0x0')](handleError(_0x435836,null));},exports[_0x167415('0x56')]=function(_0x556832,_0x27db05){const _0x16ce4c=_0x167415;let _0xd42452={'raw':!![],'where':{'id':_0x556832[_0x16ce4c('0x32')]['id']}};const _0x2c2156={};return _0x2c2156['model']=_['keys'](db['CmHopperFinal'][_0x16ce4c('0x50')]),_0x2c2156[_0x16ce4c('0x1f')]=_[_0x16ce4c('0x60')](_0x556832[_0x16ce4c('0x1f')]),_0x2c2156['filters']=_[_0x16ce4c('0x47')](_0x2c2156['model'],_0x2c2156[_0x16ce4c('0x1f')]),_0xd42452[_0x16ce4c('0x25')]=_[_0x16ce4c('0x47')](_0x2c2156['model'],qs[_0x16ce4c('0x3a')](_0x556832[_0x16ce4c('0x1f')][_0x16ce4c('0x3a')])),_0xd42452[_0x16ce4c('0x25')]=_0xd42452[_0x16ce4c('0x25')][_0x16ce4c('0x1e')]?_0xd42452[_0x16ce4c('0x25')]:_0x2c2156[_0x16ce4c('0x11')],_0x556832[_0x16ce4c('0x1f')][_0x16ce4c('0x57')]&&(_0xd42452['include']=[{'all':!![]}]),_0xd42452=_['merge']({},_0xd42452,_0x556832[_0x16ce4c('0x1c')]),db[_0x16ce4c('0x4b')]['findOne'](_0xd42452)[_0x16ce4c('0x39')](handleEntityNotFound(_0x27db05,null))[_0x16ce4c('0x39')](respondWithResult(_0x27db05,null))[_0x16ce4c('0x0')](handleError(_0x27db05,null));},exports[_0x167415('0x27')]=function(_0x5ec863,_0x35bfaf){const _0x51a281=_0x167415;return db[_0x51a281('0x4b')][_0x51a281('0x27')]()[_0x51a281('0x39')](respondWithResult(_0x35bfaf,null))[_0x51a281('0x0')](handleError(_0x35bfaf,null));},exports[_0x167415('0x38')]=function(_0x49b6b3,_0x535f8f){const _0x4dec50=_0x167415;return _0x49b6b3[_0x4dec50('0x2b')][_0x4dec50('0x24')]&&delete _0x49b6b3[_0x4dec50('0x2b')]['uniqueid'],db[_0x4dec50('0x4b')][_0x4dec50('0x13')]({'where':{'uniqueid':_0x49b6b3[_0x4dec50('0x32')]['id']}})['then'](handleEntityNotFound(_0x535f8f,null))['then'](saveUpdates(_0x49b6b3[_0x4dec50('0x2b')],null))['then'](respondWithResult(_0x535f8f,null))['catch'](handleError(_0x535f8f,null));},exports[_0x167415('0x2d')]=function(_0x38feee,_0x3e9eb7){const _0x506382=_0x167415;return db[_0x506382('0x4b')][_0x506382('0x5c')]({'raw':![],'where':{'VoiceQueueId':_0x38feee[_0x506382('0x32')]['id']},'attributes':[[fn('COUNT',fn('IF',literal(_0x506382('0x28')))),_0x506382('0x3f')],[fn(_0x506382('0x5e'),fn('IF',literal('`state`\x20=\x203,\x201,\x20null'))),_0x506382('0x23')],[fn(_0x506382('0x5e'),fn('IF',literal('`state`\x20=\x205,\x201,\x20null'))),'busyContacts'],[fn('COUNT',fn('IF',literal('`state`\x20=\x208,\x201,\x20null'))),_0x506382('0x1b')],[fn(_0x506382('0x5e'),fn('IF',literal(_0x506382('0x5b')))),_0x506382('0x20')],[fn(_0x506382('0x5e'),fn('IF',literal(_0x506382('0x55')))),_0x506382('0xd')],[fn(_0x506382('0x5e'),fn('IF',literal(_0x506382('0x26')))),_0x506382('0x34')],[fn(_0x506382('0x5e'),fn('IF',literal('`state`\x20=\x2019,\x201,\x20null'))),_0x506382('0x37')]]})[_0x506382('0x39')](handleEntityNotFound(_0x3e9eb7,null))[_0x506382('0x39')](respondWithResult(_0x3e9eb7,null))[_0x506382('0x0')](handleError(_0x3e9eb7,null));},exports['countContactsIvrCampaignHopperFinal']=function(_0x321778,_0x65414e){const _0x2597c2=_0x167415;return db[_0x2597c2('0x4b')][_0x2597c2('0x5c')]({'raw':![],'where':{'CampaignId':_0x321778['params']['id']},'attributes':[[fn('COUNT',fn('IF',literal(_0x2597c2('0x28')))),'noSuchContacts'],[fn(_0x2597c2('0x5e'),fn('IF',literal(_0x2597c2('0x4c')))),_0x2597c2('0x23')],[fn('COUNT',fn('IF',literal(_0x2597c2('0x4a')))),_0x2597c2('0x30')],[fn(_0x2597c2('0x5e'),fn('IF',literal(_0x2597c2('0x59')))),_0x2597c2('0x1b')],[fn(_0x2597c2('0x5e'),fn('IF',literal(_0x2597c2('0x5b')))),_0x2597c2('0x20')],[fn('COUNT',fn('IF',literal(_0x2597c2('0x55')))),'abandonedContacts'],[fn('COUNT',fn('IF',literal(_0x2597c2('0x26')))),_0x2597c2('0x34')],[fn(_0x2597c2('0x5e'),fn('IF',literal('`state`\x20=\x2019,\x201,\x20null'))),_0x2597c2('0x37')]]})[_0x2597c2('0x39')](handleEntityNotFound(_0x65414e,null))[_0x2597c2('0x39')](respondWithResult(_0x65414e,null))[_0x2597c2('0x0')](handleError(_0x65414e,null));},exports['moveContactsQueueCampaignHopperFinal']=function(_0x2bc25b,_0x24630d){const _0x48798e=_0x167415;return db['VoiceQueue']['findOne']({'where':{'id':_0x2bc25b[_0x48798e('0x32')]['id']}})[_0x48798e('0x39')](handleEntityNotFound(_0x24630d,null))[_0x48798e('0x39')](function(_0x566769){const _0x42ac8b=_0x48798e;let _0x2bca5b;if(_0x566769)return _0x2bca5b=squel[_0x42ac8b('0x5')]()[_0x42ac8b('0x4d')](_0x42ac8b('0x21'))[_0x42ac8b('0x14')]([_0x42ac8b('0x3'),_0x42ac8b('0xf'),_0x42ac8b('0x2c'),_0x42ac8b('0x3c'),_0x42ac8b('0x4'),_0x42ac8b('0x31'),_0x42ac8b('0x19')],squel[_0x42ac8b('0x35')]()[_0x42ac8b('0x58')]('ANY_VALUE(calleridnum)',_0x42ac8b('0x3'))['field'](_0x42ac8b('0x43'),_0x42ac8b('0xf'))[_0x42ac8b('0x58')]('ANY_VALUE(ContactId)','ContactId')[_0x42ac8b('0x58')]('ANY_VALUE(ListId)','ListId')['field']('ANY_VALUE(VoiceQueueId)',_0x42ac8b('0x4'))[_0x42ac8b('0x58')](_0x42ac8b('0x43'),_0x42ac8b('0x31'))['field'](_0x42ac8b('0x43'),_0x42ac8b('0x19'))[_0x42ac8b('0x5d')](_0x42ac8b('0x16'))['where'](_0x42ac8b('0x29'),_0x2bc25b[_0x42ac8b('0x32')]['id'][_0x42ac8b('0x52')]())[_0x42ac8b('0x4f')]('state\x20=\x20?',_0x2bc25b[_0x42ac8b('0x2b')][_0x42ac8b('0x3e')][_0x42ac8b('0x52')]())[_0x42ac8b('0x4f')]('calleridnum\x20IS\x20NOT\x20NULL')['where']('calleridnum\x20NOT\x20IN\x20(?)',squel[_0x42ac8b('0x35')]()[_0x42ac8b('0x58')](_0x42ac8b('0x3'))[_0x42ac8b('0x5d')](_0x42ac8b('0x21'))[_0x42ac8b('0x4f')](_0x42ac8b('0x29'),_0x2bc25b[_0x42ac8b('0x32')]['id']['toString']()))[_0x42ac8b('0x4f')](_0x42ac8b('0xc'),squel[_0x42ac8b('0x35')]()['field'](_0x42ac8b('0xa'))['from'](_0x42ac8b('0x16'))[_0x42ac8b('0x4f')](_0x42ac8b('0x29'),_0x2bc25b['params']['id']['toString']())['where'](_0x42ac8b('0x49')))[_0x42ac8b('0x22')]('ContactId'))['toString'](),db[_0x42ac8b('0x8')][_0x42ac8b('0x1f')](_0x2bca5b);return[];})['then'](respondWithResult(_0x24630d,null))['catch'](handleError(_0x24630d,null));},exports[_0x167415('0x48')]=function(_0x461cf9,_0x4498b5){const _0x2194c2=_0x167415;return db['Campaign'][_0x2194c2('0x13')]({'where':{'id':_0x461cf9[_0x2194c2('0x32')]['id']}})['then'](handleEntityNotFound(_0x4498b5,null))['then'](function(_0x34ccad){const _0x36f6d7=_0x2194c2;let _0x3a57aa;if(_0x34ccad)return _0x3a57aa=squel[_0x36f6d7('0x5')]()[_0x36f6d7('0x4d')](_0x36f6d7('0x21'))[_0x36f6d7('0x14')](['phone','scheduledAt',_0x36f6d7('0x2c'),_0x36f6d7('0x3c'),'CampaignId',_0x36f6d7('0x31'),_0x36f6d7('0x19')],squel['select']()[_0x36f6d7('0x58')](_0x36f6d7('0x51'),_0x36f6d7('0x3'))['field'](_0x36f6d7('0x43'),_0x36f6d7('0xf'))[_0x36f6d7('0x58')](_0x36f6d7('0x7'),_0x36f6d7('0x2c'))['field'](_0x36f6d7('0x3b'),_0x36f6d7('0x3c'))[_0x36f6d7('0x58')]('ANY_VALUE(CampaignId)',_0x36f6d7('0xe'))['field']('NOW()',_0x36f6d7('0x31'))[_0x36f6d7('0x58')](_0x36f6d7('0x43'),_0x36f6d7('0x19'))[_0x36f6d7('0x5d')](_0x36f6d7('0x16'))[_0x36f6d7('0x4f')](_0x36f6d7('0xb'),_0x461cf9['params']['id']['toString']())[_0x36f6d7('0x4f')]('state\x20=\x20?',_0x461cf9[_0x36f6d7('0x2b')][_0x36f6d7('0x3e')][_0x36f6d7('0x52')]())[_0x36f6d7('0x4f')](_0x36f6d7('0x1d'))[_0x36f6d7('0x4f')](_0x36f6d7('0xc'),squel['select']()[_0x36f6d7('0x58')]('phone')[_0x36f6d7('0x5d')](_0x36f6d7('0x21'))[_0x36f6d7('0x4f')](_0x36f6d7('0xb'),_0x461cf9['params']['id'][_0x36f6d7('0x52')]()))[_0x36f6d7('0x4f')]('calleridnum\x20NOT\x20IN\x20(?)',squel[_0x36f6d7('0x35')]()['field'](_0x36f6d7('0xa'))[_0x36f6d7('0x5d')](_0x36f6d7('0x16'))[_0x36f6d7('0x4f')]('CampaignId\x20=\x20?',_0x461cf9[_0x36f6d7('0x32')]['id'][_0x36f6d7('0x52')]())['where'](_0x36f6d7('0x49')))[_0x36f6d7('0x22')](_0x36f6d7('0x2c')))[_0x36f6d7('0x52')](),db[_0x36f6d7('0x8')][_0x36f6d7('0x1f')](_0x3a57aa);return[];})[_0x2194c2('0x39')](respondWithResult(_0x4498b5,null))[_0x2194c2('0x0')](handleError(_0x4498b5,null));},exports['checkContactHopper']=function(_0x2b2b92,_0xb6e31d){const _0x7693eb=_0x167415;return db[_0x7693eb('0x9')]['findOne']({'where':{'VoiceQueueId':_0x2b2b92[_0x7693eb('0x2b')][_0x7693eb('0x4')],'CampaignId':_0x2b2b92[_0x7693eb('0x2b')][_0x7693eb('0xe')],'ContactId':_0x2b2b92[_0x7693eb('0x2b')]['ContactId']}})[_0x7693eb('0x39')](handleEntityNotFound(_0xb6e31d,null))['then'](function(_0x261eb4){if(_0x261eb4)return _0x261eb4;return null;})[_0x7693eb('0x39')](respondWithResult(_0xb6e31d,null))[_0x7693eb('0x0')](handleError(_0xb6e31d,null));}; \ No newline at end of file +const a176_0x1f5d=['nolimit','catch','createdAt','status','NOW()','keys','noAnswerContacts','VoiceQueueId\x20=\x20?','CmHopperFinal','`state`\x20=\x203,\x201,\x20null','busyContacts','VIRTUAL','options','CampaignId','ANY_VALUE(calleridnum)','order','`state`\x20=\x2019,\x201,\x20null','params','fields','calleridnum\x20IS\x20NOT\x20NULL','../../mysqldb','noSuchContacts','CampaignId\x20=\x20?','countContactsIvrCampaignHopperFinal','type','attributes','congestionContacts','VoiceQueueId','countContactsQueueCampaignHopperFinal','sendStatus','ANY_VALUE(VoiceQueueId)','intersection','reCallContacts','lodash','CmHopper','send','show','query','set','ANY_VALUE(ContactId)','abandonedContacts','cm_hopper','findOne','field','findAll','state\x20=\x204','undefined','checkContactHopper','key','Content-Range','`state`\x20=\x2022,\x201,\x20null','squel','index','state','../../components/parsers/qs','stack','state\x20=\x20?','like','uniqueid','pick','fromQuery','calleridnum','phone','includeAll','group','cm_hopper_final','describe','updatedAt','then','answeringMachine','`state`\x20=\x205,\x201,\x20null','sort','filter','model','limit','filters','ANY_VALUE(ListId)','toString','sequelize','error','update','api','`state`\x20=\x208,\x201,\x20null','select','into','ContactId','map','include','from','body','Campaign','`state`\x20=\x200,\x201,\x20null','moveContactsQueueCampaignHopperFinal','offset','moveContactsIvrCampaignHopperFinal','rows','insert','count','`state`\x20=\x2011\x20,\x201,\x20null','scheduledAt','where','calleridnum\x20NOT\x20IN\x20(?)','`state`\x20=\x2010\x20,\x201,\x20null','merge','COUNT','name','VoiceQueue','../../config/logger','ListId','ANY_VALUE(CampaignId)'];(function(_0x5251a2,_0x9e43f6){const _0x1f5db5=function(_0x366aa0){while(--_0x366aa0){_0x5251a2['push'](_0x5251a2['shift']());}};_0x1f5db5(++_0x9e43f6);}(a176_0x1f5d,0x182));const a176_0x366a=function(_0x5251a2,_0x9e43f6){_0x5251a2=_0x5251a2-0x1d1;let _0x1f5db5=a176_0x1f5d[_0x5251a2];return _0x1f5db5;};const a176_0x4e68c3=a176_0x366a;'use strict';const _=require(a176_0x4e68c3(0x228)),squel=require(a176_0x4e68c3(0x23a)),qs=require(a176_0x4e68c3(0x23d)),logger=require(a176_0x4e68c3(0x204))(a176_0x4e68c3(0x1ea)),{db}=require(a176_0x4e68c3(0x21b)),{Op,fn,literal}=require(a176_0x4e68c3(0x1e7));function respondWithResult(_0x4ba9c4,_0x2c9fbc){return _0x2c9fbc=_0x2c9fbc||0xc8,function(_0x3358f9){const _0x138827=a176_0x366a;if(_0x3358f9)return _0x4ba9c4[_0x138827(0x20a)](_0x2c9fbc)['json'](_0x3358f9);};}function respondWithFilteredResult(_0x5a6b01,_0x15c97a){return function(_0x4d626e){const _0x5e8342=a176_0x366a;if(_0x4d626e){const _0x2c565c=_0x4d626e[_0x5e8342(0x1fa)],_0x35e44f=_0x15c97a[_0x5e8342(0x1f6)];let _0x538ee9=_0x15c97a[_0x5e8342(0x1f6)]+_0x15c97a[_0x5e8342(0x1e3)],_0x46b584;return _0x538ee9>=_0x2c565c?(_0x538ee9=_0x2c565c,_0x46b584=0xc8):_0x46b584=0xce,_0x5a6b01['status'](_0x46b584),_0x5a6b01[_0x5e8342(0x22d)](_0x5e8342(0x238),_0x35e44f+'-'+_0x538ee9+'/'+_0x2c565c)['json'](_0x4d626e);}return null;};}function saveUpdates(_0x538432){return function(_0x4ea6c0){const _0x286647=a176_0x366a;if(_0x4ea6c0)return _0x4ea6c0[_0x286647(0x1e9)](_0x538432)[_0x286647(0x1dd)](function(_0x5c4501){return _0x5c4501;});return null;};}function handleEntityNotFound(_0x4a5ff6){return function(_0xd17c73){const _0x2c28b7=a176_0x366a;return!_0xd17c73&&_0x4a5ff6[_0x2c28b7(0x224)](0x194),_0xd17c73;};}function handleError(_0x1aea23,_0x516eae){return _0x516eae=_0x516eae||0x1f4,function(_0x16cf7c){const _0x4483bc=a176_0x366a;logger[_0x4483bc(0x1e8)](_0x16cf7c[_0x4483bc(0x23e)]),_0x16cf7c['name']&&delete _0x16cf7c[_0x4483bc(0x202)],_0x1aea23[_0x4483bc(0x20a)](_0x516eae)[_0x4483bc(0x22a)](_0x16cf7c);};}exports[a176_0x4e68c3(0x23b)]=function(_0x5c3d49,_0x27dbbc){const _0x4a97d5=a176_0x4e68c3;let _0x26f2e7={};const _0x16c585={},_0x1e299a={'count':0x0,'rows':[]},_0x450349=_[_0x4a97d5(0x1ef)](db[_0x4a97d5(0x20f)]['rawAttributes'],function(_0xe9edb8){const _0x15f516=_0x4a97d5;return{'name':_0xe9edb8['fieldName'],'type':_0xe9edb8[_0x15f516(0x21f)][_0x15f516(0x237)]};});_0x16c585['model']=_['map'](_0x450349,_0x4a97d5(0x202)),_0x16c585['query']=_['keys'](_0x5c3d49[_0x4a97d5(0x22c)]),_0x16c585[_0x4a97d5(0x1e4)]=_[_0x4a97d5(0x226)](_0x16c585[_0x4a97d5(0x1e2)],_0x16c585[_0x4a97d5(0x22c)]),_0x26f2e7['attributes']=_[_0x4a97d5(0x226)](_0x16c585[_0x4a97d5(0x1e2)],qs[_0x4a97d5(0x219)](_0x5c3d49[_0x4a97d5(0x22c)][_0x4a97d5(0x219)])),_0x26f2e7[_0x4a97d5(0x220)]=_0x26f2e7[_0x4a97d5(0x220)]['length']?_0x26f2e7[_0x4a97d5(0x220)]:_0x16c585[_0x4a97d5(0x1e2)];typeof _0x5c3d49[_0x4a97d5(0x22c)][_0x4a97d5(0x207)]===_0x4a97d5(0x235)&&(_0x26f2e7['limit']=qs['limit'](_0x5c3d49[_0x4a97d5(0x22c)]['limit']),_0x26f2e7[_0x4a97d5(0x1f6)]=qs[_0x4a97d5(0x1f6)](_0x5c3d49['query'][_0x4a97d5(0x1f6)]));_0x26f2e7[_0x4a97d5(0x216)]=qs[_0x4a97d5(0x1e0)](_0x5c3d49['query'][_0x4a97d5(0x1e0)]),_0x26f2e7[_0x4a97d5(0x1fd)]=qs[_0x4a97d5(0x1e4)](_[_0x4a97d5(0x1d4)](_0x5c3d49[_0x4a97d5(0x22c)],_0x16c585[_0x4a97d5(0x1e4)]),_0x450349);_0x5c3d49[_0x4a97d5(0x22c)][_0x4a97d5(0x1e1)]&&(_0x26f2e7[_0x4a97d5(0x1fd)]=_[_0x4a97d5(0x200)](_0x26f2e7[_0x4a97d5(0x1fd)],{[Op['or']]:_['map'](_0x450349,function(_0x2b30a1){const _0x58b2a4=_0x4a97d5;if(_0x2b30a1[_0x58b2a4(0x21f)]!==_0x58b2a4(0x212)){const _0x242c14={};return _0x242c14[_0x2b30a1[_0x58b2a4(0x202)]]={[Op[_0x58b2a4(0x1d2)]]:'%'+_0x5c3d49[_0x58b2a4(0x22c)][_0x58b2a4(0x1e1)]+'%'},_0x242c14;}})}));_0x26f2e7=_['merge']({},_0x26f2e7,_0x5c3d49[_0x4a97d5(0x213)]);const _0x5c3897={'where':_0x26f2e7['where']};return db[_0x4a97d5(0x20f)][_0x4a97d5(0x1fa)](_0x5c3897)[_0x4a97d5(0x1dd)](function(_0x346efb){const _0x37874=_0x4a97d5;return _0x1e299a[_0x37874(0x1fa)]=_0x346efb,_0x5c3d49['query'][_0x37874(0x1d8)]&&(_0x26f2e7[_0x37874(0x1f0)]=[{'all':!![]}]),db['CmHopperFinal'][_0x37874(0x233)](_0x26f2e7);})[_0x4a97d5(0x1dd)](function(_0x48fd9e){const _0x2fc9b7=_0x4a97d5;return _0x1e299a[_0x2fc9b7(0x1f8)]=_0x48fd9e,_0x1e299a;})[_0x4a97d5(0x1dd)](respondWithFilteredResult(_0x27dbbc,_0x26f2e7))['catch'](handleError(_0x27dbbc,null));},exports[a176_0x4e68c3(0x22b)]=function(_0x1f443c,_0xe16ca5){const _0x2debaa=a176_0x4e68c3;let _0x5dc3a6={'raw':!![],'where':{'id':_0x1f443c[_0x2debaa(0x218)]['id']}};const _0x353188={};return _0x353188[_0x2debaa(0x1e2)]=_[_0x2debaa(0x20c)](db[_0x2debaa(0x20f)]['rawAttributes']),_0x353188[_0x2debaa(0x22c)]=_['keys'](_0x1f443c[_0x2debaa(0x22c)]),_0x353188[_0x2debaa(0x1e4)]=_[_0x2debaa(0x226)](_0x353188[_0x2debaa(0x1e2)],_0x353188[_0x2debaa(0x22c)]),_0x5dc3a6[_0x2debaa(0x220)]=_[_0x2debaa(0x226)](_0x353188[_0x2debaa(0x1e2)],qs[_0x2debaa(0x219)](_0x1f443c[_0x2debaa(0x22c)]['fields'])),_0x5dc3a6['attributes']=_0x5dc3a6[_0x2debaa(0x220)]['length']?_0x5dc3a6[_0x2debaa(0x220)]:_0x353188[_0x2debaa(0x1e2)],_0x1f443c['query']['includeAll']&&(_0x5dc3a6['include']=[{'all':!![]}]),_0x5dc3a6=_[_0x2debaa(0x200)]({},_0x5dc3a6,_0x1f443c['options']),db[_0x2debaa(0x20f)][_0x2debaa(0x231)](_0x5dc3a6)[_0x2debaa(0x1dd)](handleEntityNotFound(_0xe16ca5,null))[_0x2debaa(0x1dd)](respondWithResult(_0xe16ca5,null))[_0x2debaa(0x208)](handleError(_0xe16ca5,null));},exports[a176_0x4e68c3(0x1db)]=function(_0xd88ae8,_0x3d2565){const _0x31466b=a176_0x4e68c3;return db[_0x31466b(0x20f)][_0x31466b(0x1db)]()[_0x31466b(0x1dd)](respondWithResult(_0x3d2565,null))[_0x31466b(0x208)](handleError(_0x3d2565,null));},exports[a176_0x4e68c3(0x1e9)]=function(_0x4bfdbf,_0xfe2a8){const _0x4e6e8c=a176_0x4e68c3;return _0x4bfdbf[_0x4e6e8c(0x1f2)][_0x4e6e8c(0x1d3)]&&delete _0x4bfdbf['body']['uniqueid'],db[_0x4e6e8c(0x20f)]['findOne']({'where':{'uniqueid':_0x4bfdbf[_0x4e6e8c(0x218)]['id']}})[_0x4e6e8c(0x1dd)](handleEntityNotFound(_0xfe2a8,null))[_0x4e6e8c(0x1dd)](saveUpdates(_0x4bfdbf[_0x4e6e8c(0x1f2)],null))['then'](respondWithResult(_0xfe2a8,null))[_0x4e6e8c(0x208)](handleError(_0xfe2a8,null));},exports[a176_0x4e68c3(0x223)]=function(_0x4eee0b,_0x53fee3){const _0x41b68c=a176_0x4e68c3;return db[_0x41b68c(0x20f)][_0x41b68c(0x233)]({'raw':![],'where':{'VoiceQueueId':_0x4eee0b['params']['id']},'attributes':[[fn('COUNT',fn('IF',literal(_0x41b68c(0x1f4)))),_0x41b68c(0x21c)],[fn(_0x41b68c(0x201),fn('IF',literal(_0x41b68c(0x210)))),_0x41b68c(0x20d)],[fn(_0x41b68c(0x201),fn('IF',literal(_0x41b68c(0x1df)))),_0x41b68c(0x211)],[fn(_0x41b68c(0x201),fn('IF',literal(_0x41b68c(0x1eb)))),_0x41b68c(0x221)],[fn(_0x41b68c(0x201),fn('IF',literal(_0x41b68c(0x1ff)))),'dropContacts'],[fn(_0x41b68c(0x201),fn('IF',literal(_0x41b68c(0x1fb)))),'abandonedContacts'],[fn(_0x41b68c(0x201),fn('IF',literal(_0x41b68c(0x239)))),_0x41b68c(0x227)],[fn(_0x41b68c(0x201),fn('IF',literal(_0x41b68c(0x217)))),_0x41b68c(0x1de)]]})['then'](handleEntityNotFound(_0x53fee3,null))[_0x41b68c(0x1dd)](respondWithResult(_0x53fee3,null))[_0x41b68c(0x208)](handleError(_0x53fee3,null));},exports[a176_0x4e68c3(0x21e)]=function(_0x5142a0,_0x130d32){const _0x23a2ad=a176_0x4e68c3;return db[_0x23a2ad(0x20f)][_0x23a2ad(0x233)]({'raw':![],'where':{'CampaignId':_0x5142a0[_0x23a2ad(0x218)]['id']},'attributes':[[fn(_0x23a2ad(0x201),fn('IF',literal(_0x23a2ad(0x1f4)))),'noSuchContacts'],[fn(_0x23a2ad(0x201),fn('IF',literal(_0x23a2ad(0x210)))),_0x23a2ad(0x20d)],[fn(_0x23a2ad(0x201),fn('IF',literal(_0x23a2ad(0x1df)))),_0x23a2ad(0x211)],[fn(_0x23a2ad(0x201),fn('IF',literal(_0x23a2ad(0x1eb)))),_0x23a2ad(0x221)],[fn(_0x23a2ad(0x201),fn('IF',literal('`state`\x20=\x2010\x20,\x201,\x20null'))),'dropContacts'],[fn('COUNT',fn('IF',literal(_0x23a2ad(0x1fb)))),_0x23a2ad(0x22f)],[fn(_0x23a2ad(0x201),fn('IF',literal('`state`\x20=\x2022,\x201,\x20null'))),_0x23a2ad(0x227)],[fn(_0x23a2ad(0x201),fn('IF',literal(_0x23a2ad(0x217)))),_0x23a2ad(0x1de)]]})[_0x23a2ad(0x1dd)](handleEntityNotFound(_0x130d32,null))['then'](respondWithResult(_0x130d32,null))[_0x23a2ad(0x208)](handleError(_0x130d32,null));},exports[a176_0x4e68c3(0x1f5)]=function(_0x16996c,_0x183081){const _0x546908=a176_0x4e68c3;return db[_0x546908(0x203)][_0x546908(0x231)]({'where':{'id':_0x16996c['params']['id']}})[_0x546908(0x1dd)](handleEntityNotFound(_0x183081,null))['then'](function(_0x778217){const _0x15d7ca=_0x546908;let _0x42a521;if(_0x778217)return _0x42a521=squel[_0x15d7ca(0x1f9)]()['into'](_0x15d7ca(0x230))[_0x15d7ca(0x1d5)](['phone',_0x15d7ca(0x1fc),_0x15d7ca(0x1ee),_0x15d7ca(0x205),_0x15d7ca(0x222),_0x15d7ca(0x209),'updatedAt'],squel[_0x15d7ca(0x1ec)]()[_0x15d7ca(0x232)](_0x15d7ca(0x215),'phone')[_0x15d7ca(0x232)](_0x15d7ca(0x20b),_0x15d7ca(0x1fc))[_0x15d7ca(0x232)](_0x15d7ca(0x22e),'ContactId')[_0x15d7ca(0x232)](_0x15d7ca(0x1e5),_0x15d7ca(0x205))[_0x15d7ca(0x232)](_0x15d7ca(0x225),_0x15d7ca(0x222))[_0x15d7ca(0x232)]('NOW()',_0x15d7ca(0x209))[_0x15d7ca(0x232)](_0x15d7ca(0x20b),_0x15d7ca(0x1dc))['from'](_0x15d7ca(0x1da))[_0x15d7ca(0x1fd)](_0x15d7ca(0x20e),_0x16996c[_0x15d7ca(0x218)]['id'][_0x15d7ca(0x1e6)]())[_0x15d7ca(0x1fd)]('state\x20=\x20?',_0x16996c[_0x15d7ca(0x1f2)][_0x15d7ca(0x23c)]['toString']())[_0x15d7ca(0x1fd)]('calleridnum\x20IS\x20NOT\x20NULL')[_0x15d7ca(0x1fd)](_0x15d7ca(0x1fe),squel[_0x15d7ca(0x1ec)]()['field'](_0x15d7ca(0x1d7))[_0x15d7ca(0x1f1)](_0x15d7ca(0x230))[_0x15d7ca(0x1fd)](_0x15d7ca(0x20e),_0x16996c['params']['id'][_0x15d7ca(0x1e6)]()))[_0x15d7ca(0x1fd)]('calleridnum\x20NOT\x20IN\x20(?)',squel[_0x15d7ca(0x1ec)]()[_0x15d7ca(0x232)](_0x15d7ca(0x1d6))[_0x15d7ca(0x1f1)](_0x15d7ca(0x1da))[_0x15d7ca(0x1fd)](_0x15d7ca(0x20e),_0x16996c[_0x15d7ca(0x218)]['id'][_0x15d7ca(0x1e6)]())[_0x15d7ca(0x1fd)](_0x15d7ca(0x234)))[_0x15d7ca(0x1d9)](_0x15d7ca(0x1ee)))[_0x15d7ca(0x1e6)](),db[_0x15d7ca(0x1e7)][_0x15d7ca(0x22c)](_0x42a521);return[];})[_0x546908(0x1dd)](respondWithResult(_0x183081,null))[_0x546908(0x208)](handleError(_0x183081,null));},exports[a176_0x4e68c3(0x1f7)]=function(_0x3a98c2,_0x18f1ec){const _0x11f206=a176_0x4e68c3;return db[_0x11f206(0x1f3)][_0x11f206(0x231)]({'where':{'id':_0x3a98c2[_0x11f206(0x218)]['id']}})[_0x11f206(0x1dd)](handleEntityNotFound(_0x18f1ec,null))['then'](function(_0x2502bb){const _0x3cb0ad=_0x11f206;let _0x976bdc;if(_0x2502bb)return _0x976bdc=squel[_0x3cb0ad(0x1f9)]()[_0x3cb0ad(0x1ed)]('cm_hopper')[_0x3cb0ad(0x1d5)]([_0x3cb0ad(0x1d7),_0x3cb0ad(0x1fc),_0x3cb0ad(0x1ee),_0x3cb0ad(0x205),'CampaignId',_0x3cb0ad(0x209),'updatedAt'],squel[_0x3cb0ad(0x1ec)]()[_0x3cb0ad(0x232)](_0x3cb0ad(0x215),_0x3cb0ad(0x1d7))[_0x3cb0ad(0x232)](_0x3cb0ad(0x20b),_0x3cb0ad(0x1fc))[_0x3cb0ad(0x232)]('ANY_VALUE(ContactId)','ContactId')[_0x3cb0ad(0x232)](_0x3cb0ad(0x1e5),'ListId')[_0x3cb0ad(0x232)](_0x3cb0ad(0x206),'CampaignId')[_0x3cb0ad(0x232)]('NOW()',_0x3cb0ad(0x209))[_0x3cb0ad(0x232)](_0x3cb0ad(0x20b),_0x3cb0ad(0x1dc))['from'](_0x3cb0ad(0x1da))[_0x3cb0ad(0x1fd)](_0x3cb0ad(0x21d),_0x3a98c2[_0x3cb0ad(0x218)]['id'][_0x3cb0ad(0x1e6)]())[_0x3cb0ad(0x1fd)](_0x3cb0ad(0x1d1),_0x3a98c2[_0x3cb0ad(0x1f2)][_0x3cb0ad(0x23c)][_0x3cb0ad(0x1e6)]())['where'](_0x3cb0ad(0x21a))[_0x3cb0ad(0x1fd)](_0x3cb0ad(0x1fe),squel[_0x3cb0ad(0x1ec)]()['field']('phone')[_0x3cb0ad(0x1f1)]('cm_hopper')['where'](_0x3cb0ad(0x21d),_0x3a98c2[_0x3cb0ad(0x218)]['id'][_0x3cb0ad(0x1e6)]()))['where']('calleridnum\x20NOT\x20IN\x20(?)',squel[_0x3cb0ad(0x1ec)]()['field']('calleridnum')['from'](_0x3cb0ad(0x1da))['where'](_0x3cb0ad(0x21d),_0x3a98c2[_0x3cb0ad(0x218)]['id'][_0x3cb0ad(0x1e6)]())[_0x3cb0ad(0x1fd)]('state\x20=\x204'))[_0x3cb0ad(0x1d9)](_0x3cb0ad(0x1ee)))[_0x3cb0ad(0x1e6)](),db[_0x3cb0ad(0x1e7)][_0x3cb0ad(0x22c)](_0x976bdc);return[];})['then'](respondWithResult(_0x18f1ec,null))['catch'](handleError(_0x18f1ec,null));},exports[a176_0x4e68c3(0x236)]=function(_0x1fb827,_0x1d0224){const _0x3123b7=a176_0x4e68c3;return db[_0x3123b7(0x229)]['findOne']({'where':{'VoiceQueueId':_0x1fb827['body']['VoiceQueueId'],'CampaignId':_0x1fb827['body'][_0x3123b7(0x214)],'ContactId':_0x1fb827[_0x3123b7(0x1f2)][_0x3123b7(0x1ee)]}})['then'](handleEntityNotFound(_0x1d0224,null))['then'](function(_0x3ceae3){if(_0x3ceae3)return _0x3ceae3;return null;})['then'](respondWithResult(_0x1d0224,null))[_0x3123b7(0x208)](handleError(_0x1d0224,null));}; \ No newline at end of file diff --git a/server/api/cmHopperFinal/cmHopperFinal.model.js b/server/api/cmHopperFinal/cmHopperFinal.model.js index 61f825f..fa230e7 100644 --- a/server/api/cmHopperFinal/cmHopperFinal.model.js +++ b/server/api/cmHopperFinal/cmHopperFinal.model.js @@ -1 +1 @@ -const a148_0x2bad=['calleridnum','exports','cm_hopper_final','uniqueid','CmHopperFinal'];(function(_0x29c433,_0x2bad6e){const _0x44f65a=function(_0x3aa326){while(--_0x3aa326){_0x29c433['push'](_0x29c433['shift']());}};_0x44f65a(++_0x2bad6e);}(a148_0x2bad,0x127));const a148_0x44f6=function(_0x29c433,_0x2bad6e){_0x29c433=_0x29c433-0x0;let _0x44f65a=a148_0x2bad[_0x29c433];return _0x44f65a;};const _0x160a14=a148_0x44f6;'use strict';const attributes=require('./cmHopperFinal.attributes');module[_0x160a14('0x1')]=function(_0x3aa326){const _0x55cbea=_0x160a14,_0x41b80d=_0x3aa326['define'](_0x55cbea('0x4'),attributes,{'tableName':_0x55cbea('0x2'),'paranoid':![],'indexes':[{'name':_0x55cbea('0x0'),'fields':['calleridnum']},{'name':'uniqueid','fields':[_0x55cbea('0x3')]}],'timestamps':!![]});return _0x41b80d;}; \ No newline at end of file +const a177_0x5501=['sequelize','function','./cmHopperFinal.attributes','exports','init','./cmHopperFinal.options','CmHopperFinal'];(function(_0x18397d,_0x1b236a){const _0x550199=function(_0x5c6e00){while(--_0x5c6e00){_0x18397d['push'](_0x18397d['shift']());}};_0x550199(++_0x1b236a);}(a177_0x5501,0x105));const a177_0x5c6e=function(_0x18397d,_0x1b236a){_0x18397d=_0x18397d-0x7d;let _0x550199=a177_0x5501[_0x18397d];return _0x550199;};const a177_0x454f11=a177_0x5c6e;'use strict';const {Model}=require(a177_0x454f11(0x82)),{attributes}=require(a177_0x454f11(0x7d)),{options}=require(a177_0x454f11(0x80));class CmHopperFinal extends Model{}function init(_0x1cb8b9,_0x296fd5){const _0x33d092=a177_0x454f11,_0x323102=options(_0x1cb8b9),_0x16a80f=typeof _0x296fd5===_0x33d092(0x83)?_0x296fd5(_0x323102):_0x323102;return CmHopperFinal[_0x33d092(0x7f)](attributes,_0x16a80f),CmHopperFinal;}module[a177_0x454f11(0x7e)][a177_0x454f11(0x81)]=CmHopperFinal,module[a177_0x454f11(0x7e)][a177_0x454f11(0x7f)]=init; \ No newline at end of file diff --git a/server/api/cmHopperFinal/cmHopperFinal.options.js b/server/api/cmHopperFinal/cmHopperFinal.options.js new file mode 100644 index 0000000..71a1df7 --- /dev/null +++ b/server/api/cmHopperFinal/cmHopperFinal.options.js @@ -0,0 +1 @@ +var a178_0x1757=['uniqueid','options','calleridnum','cm_hopper_final'];(function(_0x2f4ddd,_0x19af28){var _0x1757dc=function(_0x3a0f5b){while(--_0x3a0f5b){_0x2f4ddd['push'](_0x2f4ddd['shift']());}};_0x1757dc(++_0x19af28);}(a178_0x1757,0x199));var a178_0x3a0f=function(_0x2f4ddd,_0x19af28){_0x2f4ddd=_0x2f4ddd-0x15d;var _0x1757dc=a178_0x1757[_0x2f4ddd];return _0x1757dc;};var a178_0x3af4c0=a178_0x3a0f;function options(_0x4af9ec){var _0x3227e5=a178_0x3a0f;return{'sequelize':_0x4af9ec,'tableName':_0x3227e5(0x15f),'paranoid':![],'indexes':[{'name':_0x3227e5(0x15e),'fields':[_0x3227e5(0x15e)]},{'name':_0x3227e5(0x160),'fields':[_0x3227e5(0x160)]}],'timestamps':!![]};}module['exports'][a178_0x3af4c0(0x15d)]=options; \ No newline at end of file diff --git a/server/api/cmHopperFinal/cmHopperFinal.rpc.js b/server/api/cmHopperFinal/cmHopperFinal.rpc.js index 488ff4e..c1ee8cd 100644 --- a/server/api/cmHopperFinal/cmHopperFinal.rpc.js +++ b/server/api/cmHopperFinal/cmHopperFinal.rpc.js @@ -1 +1 @@ -const a149_0x1c85=['rpc','error','stringify','then','CmHopperFinal','message','info','../../mysqldb','debug','options','create','catch','body','CreateCmHopperFinal'];(function(_0x4fbe9f,_0x1c8549){const _0x3f2cdf=function(_0x37e9f0){while(--_0x37e9f0){_0x4fbe9f['push'](_0x4fbe9f['shift']());}};_0x3f2cdf(++_0x1c8549);}(a149_0x1c85,0x8e));const a149_0x3f2c=function(_0x4fbe9f,_0x1c8549){_0x4fbe9f=_0x4fbe9f-0x0;let _0x3f2cdf=a149_0x1c85[_0x4fbe9f];return _0x3f2cdf;};const _0xa35cb=a149_0x3f2c;'use strict';const db=require(_0xa35cb('0x5'))['db'],logger=require('../../config/logger')(_0xa35cb('0xc'));exports['CreateCmHopperFinal']=function(_0x37e9f0){const _0x14f04d=this;return new Promise(function(_0x26ef5e,_0x1550ce){const _0x42382f=a149_0x3f2c;return db[_0x42382f('0x2')][_0x42382f('0x8')](_0x37e9f0[_0x42382f('0xa')],{'raw':_0x37e9f0['options']?_0x37e9f0[_0x42382f('0x7')]['raw']===undefined?!![]:![]:!![]})[_0x42382f('0x1')](function(_0x48a803){const _0x9cd15=_0x42382f;logger[_0x9cd15('0x4')]('CreateCmHopperFinal',_0x37e9f0),logger[_0x9cd15('0x6')]('CreateCmHopperFinal',_0x37e9f0,JSON[_0x9cd15('0x0')](_0x48a803)),_0x26ef5e(_0x48a803);})[_0x42382f('0x9')](function(_0x1246fb){const _0x4945a3=_0x42382f;logger[_0x4945a3('0xd')](_0x4945a3('0xb'),_0x1246fb[_0x4945a3('0x3')],_0x37e9f0),_0x1550ce(_0x14f04d[_0x4945a3('0xd')](0x1f4,_0x1246fb['message']));});});}; \ No newline at end of file +const a179_0x1170=['error','then','../../mysqldb','rpc','options','CreateCmHopperFinal','create','body','message','CmHopperFinal','stringify','debug','../../config/logger'];(function(_0x527fa6,_0x2f0aba){const _0x117017=function(_0x58b12a){while(--_0x58b12a){_0x527fa6['push'](_0x527fa6['shift']());}};_0x117017(++_0x2f0aba);}(a179_0x1170,0x18a));const a179_0x58b1=function(_0x527fa6,_0x2f0aba){_0x527fa6=_0x527fa6-0x1e5;let _0x117017=a179_0x1170[_0x527fa6];return _0x117017;};const a179_0x1ef9b5=a179_0x58b1;'use strict';const db=require(a179_0x1ef9b5(0x1f0))['db'],logger=require(a179_0x1ef9b5(0x1ed))(a179_0x1ef9b5(0x1f1));exports['CreateCmHopperFinal']=function(_0x415d8c){const _0x1c6be6=this;return new Promise(function(_0x23bd74,_0x36f676){const _0x198844=a179_0x58b1;return db[_0x198844(0x1ea)][_0x198844(0x1e7)](_0x415d8c[_0x198844(0x1e8)],{'raw':_0x415d8c[_0x198844(0x1e5)]?_0x415d8c['options']['raw']===undefined?!![]:![]:!![]})[_0x198844(0x1ef)](function(_0x32e8f8){const _0x1be43c=_0x198844;logger['info'](_0x1be43c(0x1e6),_0x415d8c),logger[_0x1be43c(0x1ec)](_0x1be43c(0x1e6),_0x415d8c,JSON[_0x1be43c(0x1eb)](_0x32e8f8)),_0x23bd74(_0x32e8f8);})['catch'](function(_0x39b503){const _0x28d653=_0x198844;logger[_0x28d653(0x1ee)]('CreateCmHopperFinal',_0x39b503[_0x28d653(0x1e9)],_0x415d8c),_0x36f676(_0x1c6be6['error'](0x1f4,_0x39b503[_0x28d653(0x1e9)]));});});}; \ No newline at end of file diff --git a/server/api/cmHopperFinal/index.js b/server/api/cmHopperFinal/index.js index 3b3a9e4..c4203f4 100644 --- a/server/api/cmHopperFinal/index.js +++ b/server/api/cmHopperFinal/index.js @@ -1 +1 @@ -const a150_0x3743=['update','put','countContactsIvrCampaignHopperFinal','isAuthenticated','/voice/queue/countAttributes/:id','/checkContactHopper','get','../../components/auth/service','Router','./cmHopperFinal.controller','post','countContactsQueueCampaignHopperFinal','/campaign/countAttributes/:id','checkContactHopper','/:id','/voice/queue/moveContacts/:id','/voice/campaign/moveContacts/:id'];(function(_0x1a0829,_0x374348){const _0x2a92c7=function(_0x5f2501){while(--_0x5f2501){_0x1a0829['push'](_0x1a0829['shift']());}};_0x2a92c7(++_0x374348);}(a150_0x3743,0xae));const a150_0x2a92=function(_0x1a0829,_0x374348){_0x1a0829=_0x1a0829-0x0;let _0x2a92c7=a150_0x3743[_0x1a0829];return _0x2a92c7;};const _0x50a083=a150_0x2a92;'use strict';const express=require('express'),router=express[_0x50a083('0x4')](),auth=require(_0x50a083('0x3')),controller=require(_0x50a083('0x5'));router[_0x50a083('0x2')]('/',auth['isAuthenticated'](),controller['index']),router[_0x50a083('0x2')]('/describe',auth['isAuthenticated'](),controller['describe']),router['get'](_0x50a083('0xa'),auth['isAuthenticated'](),controller['show']),router['get'](_0x50a083('0x0'),auth[_0x50a083('0x10')](),controller[_0x50a083('0x7')]),router[_0x50a083('0x2')](_0x50a083('0x8'),auth[_0x50a083('0x10')](),controller[_0x50a083('0xf')]),router[_0x50a083('0x6')](_0x50a083('0xb'),auth['isAuthenticated'](),controller['moveContactsQueueCampaignHopperFinal']),router[_0x50a083('0x6')](_0x50a083('0xc'),auth[_0x50a083('0x10')](),controller['moveContactsIvrCampaignHopperFinal']),router[_0x50a083('0x6')](_0x50a083('0x1'),auth[_0x50a083('0x10')](),controller[_0x50a083('0x9')]),router[_0x50a083('0xe')](_0x50a083('0xa'),auth['isAuthenticated'](),controller[_0x50a083('0xd')]),module['exports']=router; \ No newline at end of file +const a180_0x6d9b=['get','post','isAuthenticated','countContactsQueueCampaignHopperFinal','update','put','exports','Router','moveContactsQueueCampaignHopperFinal','checkContactHopper','index','express','../../components/auth/service','/:id','/voice/queue/moveContacts/:id','./cmHopperFinal.controller','countContactsIvrCampaignHopperFinal','/describe','/voice/campaign/moveContacts/:id','/checkContactHopper','moveContactsIvrCampaignHopperFinal','/campaign/countAttributes/:id','describe'];(function(_0x467336,_0x58d9ba){const _0x6d9b07=function(_0x1d0bf1){while(--_0x1d0bf1){_0x467336['push'](_0x467336['shift']());}};_0x6d9b07(++_0x58d9ba);}(a180_0x6d9b,0x1a2));const a180_0x1d0b=function(_0x467336,_0x58d9ba){_0x467336=_0x467336-0x14a;let _0x6d9b07=a180_0x6d9b[_0x467336];return _0x6d9b07;};const a180_0x5981ac=a180_0x1d0b;'use strict';const express=require(a180_0x5981ac(0x151)),router=express[a180_0x5981ac(0x14d)](),auth=require(a180_0x5981ac(0x152)),controller=require(a180_0x5981ac(0x155));router[a180_0x5981ac(0x15d)]('/',auth[a180_0x5981ac(0x15f)](),controller[a180_0x5981ac(0x150)]),router['get'](a180_0x5981ac(0x157),auth[a180_0x5981ac(0x15f)](),controller[a180_0x5981ac(0x15c)]),router[a180_0x5981ac(0x15d)](a180_0x5981ac(0x153),auth[a180_0x5981ac(0x15f)](),controller['show']),router[a180_0x5981ac(0x15d)]('/voice/queue/countAttributes/:id',auth[a180_0x5981ac(0x15f)](),controller[a180_0x5981ac(0x160)]),router['get'](a180_0x5981ac(0x15b),auth[a180_0x5981ac(0x15f)](),controller[a180_0x5981ac(0x156)]),router['post'](a180_0x5981ac(0x154),auth[a180_0x5981ac(0x15f)](),controller[a180_0x5981ac(0x14e)]),router[a180_0x5981ac(0x15e)](a180_0x5981ac(0x158),auth[a180_0x5981ac(0x15f)](),controller[a180_0x5981ac(0x15a)]),router[a180_0x5981ac(0x15e)](a180_0x5981ac(0x159),auth[a180_0x5981ac(0x15f)](),controller[a180_0x5981ac(0x14f)]),router[a180_0x5981ac(0x14b)]('/:id',auth['isAuthenticated'](),controller[a180_0x5981ac(0x14a)]),module[a180_0x5981ac(0x14c)]=router; \ No newline at end of file diff --git a/server/api/cmHopperHistory/cmHopperHistory.attributes.js b/server/api/cmHopperHistory/cmHopperHistory.attributes.js index fb8fc36..e7d7600 100644 --- a/server/api/cmHopperHistory/cmHopperHistory.attributes.js +++ b/server/api/cmHopperHistory/cmHopperHistory.attributes.js @@ -1 +1 @@ -const a151_0x1ab2=['INTEGER','exports','BOOLEAN','STRING','DATE'];(function(_0x4afdb7,_0x1ab263){const _0x60cb21=function(_0x4ac91e){while(--_0x4ac91e){_0x4afdb7['push'](_0x4afdb7['shift']());}};_0x60cb21(++_0x1ab263);}(a151_0x1ab2,0x16b));const a151_0x60cb=function(_0x4afdb7,_0x1ab263){_0x4afdb7=_0x4afdb7-0x0;let _0x60cb21=a151_0x1ab2[_0x4afdb7];return _0x60cb21;};const _0x59cd81=a151_0x60cb;'use strict';const Sequelize=require('sequelize');module[_0x59cd81('0x3')]={'state':{'type':Sequelize[_0x59cd81('0x2')](0x2)},'statedesc':{'type':Sequelize[_0x59cd81('0x0')]},'scheduledat':{'type':Sequelize[_0x59cd81('0x1')]},'countbusyretry':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'countcongestionretry':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'countnoanswerretry':{'type':Sequelize[_0x59cd81('0x2')],'defaultValue':0x0},'countglobal':{'type':Sequelize[_0x59cd81('0x2')],'defaultValue':0x0},'uniqueid':{'type':Sequelize[_0x59cd81('0x0')]},'originatecalleridnum':{'type':Sequelize['STRING']},'originatecalleridname':{'type':Sequelize[_0x59cd81('0x0')]},'calleridnum':{'type':Sequelize[_0x59cd81('0x0')]},'calleridname':{'type':Sequelize[_0x59cd81('0x0')]},'starttime':{'type':Sequelize[_0x59cd81('0x1')]},'responsetime':{'type':Sequelize[_0x59cd81('0x1')]},'answertime':{'type':Sequelize[_0x59cd81('0x1')]},'droptime':{'type':Sequelize[_0x59cd81('0x1')]},'endtime':{'type':Sequelize[_0x59cd81('0x1')]},'ringtime':{'type':Sequelize[_0x59cd81('0x2')],'defaultValue':0x0},'holdtime':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'talktime':{'type':Sequelize[_0x59cd81('0x2')],'defaultValue':0x0},'followuptime':{'type':Sequelize[_0x59cd81('0x2')],'defaultValue':0x0},'dropreason':{'type':Sequelize[_0x59cd81('0x0')]},'campaign':{'type':Sequelize[_0x59cd81('0x0')]},'campaigntype':{'type':Sequelize[_0x59cd81('0x0')]},'membername':{'type':Sequelize['STRING']},'reason':{'type':Sequelize[_0x59cd81('0x0')]},'amd':{'type':Sequelize[_0x59cd81('0x4')],'defaultValue':![]},'fax':{'type':Sequelize[_0x59cd81('0x4')],'defaultValue':![]},'callback':{'type':Sequelize[_0x59cd81('0x4')],'defaultValue':![]},'callbackuniqueid':{'type':Sequelize['STRING'],'defaultValue':null},'callbackat':{'type':Sequelize['DATE']},'recallme':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'editedat':{'type':Sequelize[_0x59cd81('0x1')]},'edited':{'type':Sequelize[_0x59cd81('0x4')],'defaultValue':![]},'countnosuchnumberretry':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'countdropretry':{'type':Sequelize[_0x59cd81('0x2')],'defaultValue':0x0},'countabandonedretry':{'type':Sequelize[_0x59cd81('0x2')],'defaultValue':0x0},'countmachineretry':{'type':Sequelize[_0x59cd81('0x2')],'defaultValue':0x0},'countagentrejectretry':{'type':Sequelize['INTEGER'],'defaultValue':0x0}}; \ No newline at end of file +const a181_0x5e37=['STRING','BOOLEAN','DATE','exports','INTEGER'];(function(_0x42eda8,_0x1acd4f){const _0x5e37e9=function(_0x54ff6b){while(--_0x54ff6b){_0x42eda8['push'](_0x42eda8['shift']());}};_0x5e37e9(++_0x1acd4f);}(a181_0x5e37,0x82));const a181_0x54ff=function(_0x42eda8,_0x1acd4f){_0x42eda8=_0x42eda8-0x124;let _0x5e37e9=a181_0x5e37[_0x42eda8];return _0x5e37e9;};const a181_0x11827a=a181_0x54ff;'use strict';const {DataTypes}=require('sequelize'),attributes={'state':{'type':DataTypes[a181_0x11827a(0x128)]({'length':0x2})},'statedesc':{'type':DataTypes[a181_0x11827a(0x124)]},'scheduledat':{'type':DataTypes['DATE']},'countbusyretry':{'type':DataTypes['INTEGER'],'defaultValue':0x0},'countcongestionretry':{'type':DataTypes[a181_0x11827a(0x128)],'defaultValue':0x0},'countnoanswerretry':{'type':DataTypes[a181_0x11827a(0x128)],'defaultValue':0x0},'countglobal':{'type':DataTypes[a181_0x11827a(0x128)],'defaultValue':0x0},'uniqueid':{'type':DataTypes[a181_0x11827a(0x124)]},'originatecalleridnum':{'type':DataTypes[a181_0x11827a(0x124)]},'originatecalleridname':{'type':DataTypes[a181_0x11827a(0x124)]},'calleridnum':{'type':DataTypes[a181_0x11827a(0x124)]},'calleridname':{'type':DataTypes['STRING']},'starttime':{'type':DataTypes[a181_0x11827a(0x126)]},'responsetime':{'type':DataTypes['DATE']},'answertime':{'type':DataTypes['DATE']},'droptime':{'type':DataTypes[a181_0x11827a(0x126)]},'endtime':{'type':DataTypes[a181_0x11827a(0x126)]},'ringtime':{'type':DataTypes[a181_0x11827a(0x128)],'defaultValue':0x0},'holdtime':{'type':DataTypes['INTEGER'],'defaultValue':0x0},'talktime':{'type':DataTypes[a181_0x11827a(0x128)],'defaultValue':0x0},'followuptime':{'type':DataTypes[a181_0x11827a(0x128)],'defaultValue':0x0},'dropreason':{'type':DataTypes['STRING']},'campaign':{'type':DataTypes[a181_0x11827a(0x124)]},'campaigntype':{'type':DataTypes[a181_0x11827a(0x124)]},'membername':{'type':DataTypes[a181_0x11827a(0x124)]},'reason':{'type':DataTypes['STRING']},'amd':{'type':DataTypes['BOOLEAN'],'defaultValue':![]},'fax':{'type':DataTypes[a181_0x11827a(0x125)],'defaultValue':![]},'callback':{'type':DataTypes[a181_0x11827a(0x125)],'defaultValue':![]},'callbackuniqueid':{'type':DataTypes[a181_0x11827a(0x124)],'defaultValue':null},'callbackat':{'type':DataTypes[a181_0x11827a(0x126)]},'recallme':{'type':DataTypes[a181_0x11827a(0x125)],'defaultValue':![]},'editedat':{'type':DataTypes[a181_0x11827a(0x126)]},'edited':{'type':DataTypes[a181_0x11827a(0x125)],'defaultValue':![]},'countnosuchnumberretry':{'type':DataTypes[a181_0x11827a(0x128)],'defaultValue':0x0},'countdropretry':{'type':DataTypes['INTEGER'],'defaultValue':0x0},'countabandonedretry':{'type':DataTypes[a181_0x11827a(0x128)],'defaultValue':0x0},'countmachineretry':{'type':DataTypes[a181_0x11827a(0x128)],'defaultValue':0x0},'countagentrejectretry':{'type':DataTypes[a181_0x11827a(0x128)],'defaultValue':0x0}};module[a181_0x11827a(0x127)]['attributes']=attributes; \ No newline at end of file diff --git a/server/api/cmHopperHistory/cmHopperHistory.controller.js b/server/api/cmHopperHistory/cmHopperHistory.controller.js index 7d9767a..af677ba 100644 --- a/server/api/cmHopperHistory/cmHopperHistory.controller.js +++ b/server/api/cmHopperHistory/cmHopperHistory.controller.js @@ -1 +1 @@ -const a152_0x4d32=['key','include','sequelize','length','intersection','update','includeAll','fieldName','send','rows','set','VIRTUAL','describe','../../mysqldb','attributes','create','limit','status','fields','json','map','uniqueid','order','index','body','where','name','options','show','sendStatus','CmHopperHistory','then','model','offset','lodash','undefined','query','type','keys','params','rawAttributes','catch','findAll','filters','merge','findOne','api'];(function(_0x1f5687,_0x4d3234){const _0x3afae8=function(_0x1dc4cf){while(--_0x1dc4cf){_0x1f5687['push'](_0x1f5687['shift']());}};_0x3afae8(++_0x4d3234);}(a152_0x4d32,0x179));const a152_0x3afa=function(_0x1f5687,_0x4d3234){_0x1f5687=_0x1f5687-0x0;let _0x3afae8=a152_0x4d32[_0x1f5687];return _0x3afae8;};const _0x3ed8ea=a152_0x3afa;'use strict';const _=require(_0x3ed8ea('0x21')),qs=require('../../components/parsers/qs'),logger=require('../../config/logger')(_0x3ed8ea('0x2d')),db=require(_0x3ed8ea('0xc'))['db'],{Op}=require(_0x3ed8ea('0x1'));function respondWithResult(_0x1dc4cf,_0x4b33ec){return _0x4b33ec=_0x4b33ec||0xc8,function(_0x2f9b6d){if(_0x2f9b6d)return _0x1dc4cf['status'](_0x4b33ec)['json'](_0x2f9b6d);};}function respondWithFilteredResult(_0x4e5212,_0x19ef03){return function(_0x5b0795){const _0x3ee94c=a152_0x3afa;if(_0x5b0795){const _0xa0a9a3=_0x5b0795['count'],_0x3fff4e=_0x19ef03[_0x3ee94c('0x20')];let _0xbe722b=_0x19ef03[_0x3ee94c('0x20')]+_0x19ef03[_0x3ee94c('0xf')],_0x41b6f0;return _0xbe722b>=_0xa0a9a3?(_0xbe722b=_0xa0a9a3,_0x41b6f0=0xc8):_0x41b6f0=0xce,_0x4e5212['status'](_0x41b6f0),_0x4e5212[_0x3ee94c('0x9')]('Content-Range',_0x3fff4e+'-'+_0xbe722b+'/'+_0xa0a9a3)[_0x3ee94c('0x12')](_0x5b0795);}return null;};}function saveUpdates(_0x1cee20){return function(_0x24f98f){const _0x553d13=a152_0x3afa;if(_0x24f98f)return _0x24f98f[_0x553d13('0x4')](_0x1cee20)[_0x553d13('0x1e')](function(_0x4966d7){return _0x4966d7;});return null;};}function handleEntityNotFound(_0x1d9f00){return function(_0x52d6f4){const _0x1fa9fd=a152_0x3afa;return!_0x52d6f4&&_0x1d9f00[_0x1fa9fd('0x1c')](0x194),_0x52d6f4;};}function handleError(_0x2e879e,_0x1b5f21){return _0x1b5f21=_0x1b5f21||0x1f4,function(_0x33b9b9){const _0x2e3a35=a152_0x3afa;logger['error'](_0x33b9b9['stack']),_0x33b9b9[_0x2e3a35('0x19')]&&delete _0x33b9b9[_0x2e3a35('0x19')],_0x2e879e[_0x2e3a35('0x10')](_0x1b5f21)[_0x2e3a35('0x7')](_0x33b9b9);};}exports[_0x3ed8ea('0x16')]=function(_0x58fe95,_0x54d0a6){const _0x4e9528=_0x3ed8ea;let _0x52e27e={};const _0x1d0275={},_0x49ab31={'count':0x0,'rows':[]},_0x2a1ebb=_[_0x4e9528('0x13')](db[_0x4e9528('0x1d')][_0x4e9528('0x27')],function(_0x4b9ed8){const _0x5e1928=_0x4e9528;return{'name':_0x4b9ed8[_0x5e1928('0x6')],'type':_0x4b9ed8[_0x5e1928('0x24')][_0x5e1928('0x2e')]};});_0x1d0275[_0x4e9528('0x1f')]=_[_0x4e9528('0x13')](_0x2a1ebb,_0x4e9528('0x19')),_0x1d0275[_0x4e9528('0x23')]=_[_0x4e9528('0x25')](_0x58fe95[_0x4e9528('0x23')]),_0x1d0275[_0x4e9528('0x2a')]=_[_0x4e9528('0x3')](_0x1d0275[_0x4e9528('0x1f')],_0x1d0275['query']),_0x52e27e['attributes']=_['intersection'](_0x1d0275[_0x4e9528('0x1f')],qs[_0x4e9528('0x11')](_0x58fe95[_0x4e9528('0x23')][_0x4e9528('0x11')])),_0x52e27e[_0x4e9528('0xd')]=_0x52e27e['attributes'][_0x4e9528('0x2')]?_0x52e27e['attributes']:_0x1d0275[_0x4e9528('0x1f')];typeof _0x58fe95['query']['nolimit']===_0x4e9528('0x22')&&(_0x52e27e['limit']=qs['limit'](_0x58fe95[_0x4e9528('0x23')][_0x4e9528('0xf')]),_0x52e27e['offset']=qs['offset'](_0x58fe95[_0x4e9528('0x23')][_0x4e9528('0x20')]));_0x52e27e[_0x4e9528('0x15')]=qs['sort'](_0x58fe95['query']['sort']),_0x52e27e[_0x4e9528('0x18')]=qs['filters'](_['pick'](_0x58fe95[_0x4e9528('0x23')],_0x1d0275[_0x4e9528('0x2a')]),_0x2a1ebb);_0x58fe95[_0x4e9528('0x23')]['filter']&&(_0x52e27e[_0x4e9528('0x18')]=_[_0x4e9528('0x2b')](_0x52e27e[_0x4e9528('0x18')],{[Op['or']]:_['map'](_0x2a1ebb,function(_0x59f65d){const _0x466c83=_0x4e9528;if(_0x59f65d[_0x466c83('0x24')]!==_0x466c83('0xa')){const _0x60ab8b={};return _0x60ab8b[_0x59f65d['name']]={[Op['like']]:'%'+_0x58fe95[_0x466c83('0x23')]['filter']+'%'},_0x60ab8b;}})}));_0x52e27e=_[_0x4e9528('0x2b')]({},_0x52e27e,_0x58fe95['options']);const _0x45a160={'where':_0x52e27e[_0x4e9528('0x18')]};return db[_0x4e9528('0x1d')]['count'](_0x45a160)[_0x4e9528('0x1e')](function(_0x229f17){const _0xcf9b4a=_0x4e9528;return _0x49ab31['count']=_0x229f17,_0x58fe95[_0xcf9b4a('0x23')][_0xcf9b4a('0x5')]&&(_0x52e27e[_0xcf9b4a('0x0')]=[{'all':!![]}]),db['CmHopperHistory'][_0xcf9b4a('0x29')](_0x52e27e);})[_0x4e9528('0x1e')](function(_0x388054){const _0x55db5d=_0x4e9528;return _0x49ab31[_0x55db5d('0x8')]=_0x388054,_0x49ab31;})[_0x4e9528('0x1e')](respondWithFilteredResult(_0x54d0a6,_0x52e27e))['catch'](handleError(_0x54d0a6,null));},exports[_0x3ed8ea('0x1b')]=function(_0x44cf11,_0x81290e){const _0x299304=_0x3ed8ea;let _0x26fa15={'raw':!![],'where':{'id':_0x44cf11[_0x299304('0x26')]['id']}};const _0x21587={};return _0x21587[_0x299304('0x1f')]=_[_0x299304('0x25')](db[_0x299304('0x1d')][_0x299304('0x27')]),_0x21587[_0x299304('0x23')]=_[_0x299304('0x25')](_0x44cf11['query']),_0x21587[_0x299304('0x2a')]=_['intersection'](_0x21587[_0x299304('0x1f')],_0x21587[_0x299304('0x23')]),_0x26fa15['attributes']=_[_0x299304('0x3')](_0x21587[_0x299304('0x1f')],qs[_0x299304('0x11')](_0x44cf11['query']['fields'])),_0x26fa15[_0x299304('0xd')]=_0x26fa15[_0x299304('0xd')][_0x299304('0x2')]?_0x26fa15[_0x299304('0xd')]:_0x21587['model'],_0x44cf11[_0x299304('0x23')][_0x299304('0x5')]&&(_0x26fa15[_0x299304('0x0')]=[{'all':!![]}]),_0x26fa15=_[_0x299304('0x2b')]({},_0x26fa15,_0x44cf11[_0x299304('0x1a')]),db[_0x299304('0x1d')][_0x299304('0x2c')](_0x26fa15)[_0x299304('0x1e')](handleEntityNotFound(_0x81290e,null))['then'](respondWithResult(_0x81290e,null))[_0x299304('0x28')](handleError(_0x81290e,null));},exports['create']=function(_0x444837,_0x33fa13){const _0x14e886=_0x3ed8ea;return db['CmHopperHistory'][_0x14e886('0xe')](_0x444837[_0x14e886('0x17')],{})[_0x14e886('0x1e')](respondWithResult(_0x33fa13,0xc9))[_0x14e886('0x28')](handleError(_0x33fa13,null));},exports[_0x3ed8ea('0xb')]=function(_0x2ed7bf,_0x57478f){const _0x8ca23c=_0x3ed8ea;return db[_0x8ca23c('0x1d')][_0x8ca23c('0xb')]()['then'](respondWithResult(_0x57478f,null))[_0x8ca23c('0x28')](handleError(_0x57478f,null));},exports['update']=function(_0x43f3c2,_0x1b590f){const _0x337e3d=_0x3ed8ea;return _0x43f3c2[_0x337e3d('0x17')][_0x337e3d('0x14')]&&delete _0x43f3c2['body']['uniqueid'],db[_0x337e3d('0x1d')][_0x337e3d('0x2c')]({'where':{'uniqueid':_0x43f3c2[_0x337e3d('0x26')]['id']}})[_0x337e3d('0x1e')](handleEntityNotFound(_0x1b590f,null))[_0x337e3d('0x1e')](saveUpdates(_0x43f3c2[_0x337e3d('0x17')],null))[_0x337e3d('0x1e')](respondWithResult(_0x1b590f,null))[_0x337e3d('0x28')](handleError(_0x1b590f,null));}; \ No newline at end of file +const a182_0x2ffc=['undefined','fieldName','describe','map','attributes','keys','order','status','update','where','query','filters','include','rows','findOne','error','nolimit','model','sequelize','set','catch','api','filter','type','intersection','then','offset','uniqueid','key','includeAll','send','like','options','count','create','stack','name','limit','index','rawAttributes','sort','params','VIRTUAL','Content-Range','sendStatus','CmHopperHistory','body','json','merge','length'];(function(_0x4e3432,_0x26b32f){const _0x2ffc93=function(_0x193239){while(--_0x193239){_0x4e3432['push'](_0x4e3432['shift']());}};_0x2ffc93(++_0x26b32f);}(a182_0x2ffc,0x119));const a182_0x1932=function(_0x4e3432,_0x26b32f){_0x4e3432=_0x4e3432-0x116;let _0x2ffc93=a182_0x2ffc[_0x4e3432];return _0x2ffc93;};const a182_0xa4bf7a=a182_0x1932;'use strict';const _=require('lodash'),qs=require('../../components/parsers/qs'),logger=require('../../config/logger')(a182_0xa4bf7a(0x13e)),{db}=require('../../mysqldb'),{Op}=require(a182_0xa4bf7a(0x13b));function respondWithResult(_0x4da4f6,_0x27b556){return _0x27b556=_0x27b556||0xc8,function(_0x5e1ed4){const _0x24dd64=a182_0x1932;if(_0x5e1ed4)return _0x4da4f6[_0x24dd64(0x130)](_0x27b556)[_0x24dd64(0x126)](_0x5e1ed4);};}function respondWithFilteredResult(_0x32a262,_0x153583){return function(_0x18f18c){const _0x1e0968=a182_0x1932;if(_0x18f18c){const _0xd28e97=_0x18f18c[_0x1e0968(0x118)],_0x8fc678=_0x153583['offset'];let _0x41370f=_0x153583[_0x1e0968(0x143)]+_0x153583[_0x1e0968(0x11c)],_0x371d90;return _0x41370f>=_0xd28e97?(_0x41370f=_0xd28e97,_0x371d90=0xc8):_0x371d90=0xce,_0x32a262[_0x1e0968(0x130)](_0x371d90),_0x32a262[_0x1e0968(0x13c)](_0x1e0968(0x122),_0x8fc678+'-'+_0x41370f+'/'+_0xd28e97)[_0x1e0968(0x126)](_0x18f18c);}return null;};}function saveUpdates(_0xbd134a){return function(_0x27887e){const _0x1261c0=a182_0x1932;if(_0x27887e)return _0x27887e[_0x1261c0(0x131)](_0xbd134a)[_0x1261c0(0x142)](function(_0x4ac3e8){return _0x4ac3e8;});return null;};}function handleEntityNotFound(_0x3089ec){return function(_0x5925e8){const _0x43c733=a182_0x1932;return!_0x5925e8&&_0x3089ec[_0x43c733(0x123)](0x194),_0x5925e8;};}function handleError(_0xfa819,_0x5968b6){return _0x5968b6=_0x5968b6||0x1f4,function(_0x466e5a){const _0x847346=a182_0x1932;logger[_0x847346(0x138)](_0x466e5a[_0x847346(0x11a)]),_0x466e5a[_0x847346(0x11b)]&&delete _0x466e5a[_0x847346(0x11b)],_0xfa819[_0x847346(0x130)](_0x5968b6)[_0x847346(0x147)](_0x466e5a);};}exports[a182_0xa4bf7a(0x11d)]=function(_0x3f9def,_0x147986){const _0x4fb035=a182_0xa4bf7a;let _0x302344={};const _0xba7d72={},_0x1cc556={'count':0x0,'rows':[]},_0x17add0=_[_0x4fb035(0x12c)](db[_0x4fb035(0x124)][_0x4fb035(0x11e)],function(_0x52eb91){const _0x2fce71=_0x4fb035;return{'name':_0x52eb91[_0x2fce71(0x12a)],'type':_0x52eb91[_0x2fce71(0x140)][_0x2fce71(0x145)]};});_0xba7d72[_0x4fb035(0x13a)]=_[_0x4fb035(0x12c)](_0x17add0,'name'),_0xba7d72['query']=_['keys'](_0x3f9def['query']),_0xba7d72[_0x4fb035(0x134)]=_['intersection'](_0xba7d72[_0x4fb035(0x13a)],_0xba7d72['query']),_0x302344['attributes']=_[_0x4fb035(0x141)](_0xba7d72[_0x4fb035(0x13a)],qs['fields'](_0x3f9def[_0x4fb035(0x133)]['fields'])),_0x302344[_0x4fb035(0x12d)]=_0x302344[_0x4fb035(0x12d)][_0x4fb035(0x128)]?_0x302344[_0x4fb035(0x12d)]:_0xba7d72[_0x4fb035(0x13a)];typeof _0x3f9def[_0x4fb035(0x133)][_0x4fb035(0x139)]===_0x4fb035(0x129)&&(_0x302344[_0x4fb035(0x11c)]=qs['limit'](_0x3f9def[_0x4fb035(0x133)][_0x4fb035(0x11c)]),_0x302344['offset']=qs['offset'](_0x3f9def[_0x4fb035(0x133)]['offset']));_0x302344[_0x4fb035(0x12f)]=qs[_0x4fb035(0x11f)](_0x3f9def['query'][_0x4fb035(0x11f)]),_0x302344[_0x4fb035(0x132)]=qs[_0x4fb035(0x134)](_['pick'](_0x3f9def['query'],_0xba7d72[_0x4fb035(0x134)]),_0x17add0);_0x3f9def[_0x4fb035(0x133)][_0x4fb035(0x13f)]&&(_0x302344[_0x4fb035(0x132)]=_['merge'](_0x302344[_0x4fb035(0x132)],{[Op['or']]:_[_0x4fb035(0x12c)](_0x17add0,function(_0x59afaa){const _0x42d696=_0x4fb035;if(_0x59afaa[_0x42d696(0x140)]!==_0x42d696(0x121)){const _0x43b832={};return _0x43b832[_0x59afaa[_0x42d696(0x11b)]]={[Op[_0x42d696(0x116)]]:'%'+_0x3f9def[_0x42d696(0x133)][_0x42d696(0x13f)]+'%'},_0x43b832;}})}));_0x302344=_[_0x4fb035(0x127)]({},_0x302344,_0x3f9def[_0x4fb035(0x117)]);const _0x4d0a92={'where':_0x302344[_0x4fb035(0x132)]};return db[_0x4fb035(0x124)]['count'](_0x4d0a92)[_0x4fb035(0x142)](function(_0x4209d6){const _0x5d1a7e=_0x4fb035;return _0x1cc556[_0x5d1a7e(0x118)]=_0x4209d6,_0x3f9def[_0x5d1a7e(0x133)]['includeAll']&&(_0x302344['include']=[{'all':!![]}]),db[_0x5d1a7e(0x124)]['findAll'](_0x302344);})[_0x4fb035(0x142)](function(_0x1a91e3){const _0x31f374=_0x4fb035;return _0x1cc556[_0x31f374(0x136)]=_0x1a91e3,_0x1cc556;})[_0x4fb035(0x142)](respondWithFilteredResult(_0x147986,_0x302344))[_0x4fb035(0x13d)](handleError(_0x147986,null));},exports['show']=function(_0x2eee86,_0x1177e6){const _0x2748d5=a182_0xa4bf7a;let _0x5bdb3a={'raw':!![],'where':{'id':_0x2eee86[_0x2748d5(0x120)]['id']}};const _0xb3bfb6={};return _0xb3bfb6[_0x2748d5(0x13a)]=_['keys'](db[_0x2748d5(0x124)]['rawAttributes']),_0xb3bfb6[_0x2748d5(0x133)]=_[_0x2748d5(0x12e)](_0x2eee86[_0x2748d5(0x133)]),_0xb3bfb6[_0x2748d5(0x134)]=_[_0x2748d5(0x141)](_0xb3bfb6[_0x2748d5(0x13a)],_0xb3bfb6['query']),_0x5bdb3a[_0x2748d5(0x12d)]=_[_0x2748d5(0x141)](_0xb3bfb6[_0x2748d5(0x13a)],qs['fields'](_0x2eee86[_0x2748d5(0x133)]['fields'])),_0x5bdb3a['attributes']=_0x5bdb3a[_0x2748d5(0x12d)][_0x2748d5(0x128)]?_0x5bdb3a[_0x2748d5(0x12d)]:_0xb3bfb6['model'],_0x2eee86[_0x2748d5(0x133)][_0x2748d5(0x146)]&&(_0x5bdb3a[_0x2748d5(0x135)]=[{'all':!![]}]),_0x5bdb3a=_[_0x2748d5(0x127)]({},_0x5bdb3a,_0x2eee86['options']),db[_0x2748d5(0x124)][_0x2748d5(0x137)](_0x5bdb3a)[_0x2748d5(0x142)](handleEntityNotFound(_0x1177e6,null))[_0x2748d5(0x142)](respondWithResult(_0x1177e6,null))[_0x2748d5(0x13d)](handleError(_0x1177e6,null));},exports[a182_0xa4bf7a(0x119)]=function(_0x1fc5ee,_0x5dd890){const _0x5b54f3=a182_0xa4bf7a;return db[_0x5b54f3(0x124)][_0x5b54f3(0x119)](_0x1fc5ee[_0x5b54f3(0x125)],{})[_0x5b54f3(0x142)](respondWithResult(_0x5dd890,0xc9))['catch'](handleError(_0x5dd890,null));},exports['describe']=function(_0xde01fb,_0x1e43d3){const _0x16421f=a182_0xa4bf7a;return db['CmHopperHistory'][_0x16421f(0x12b)]()[_0x16421f(0x142)](respondWithResult(_0x1e43d3,null))[_0x16421f(0x13d)](handleError(_0x1e43d3,null));},exports[a182_0xa4bf7a(0x131)]=function(_0x1ac3c4,_0x5a7262){const _0x2b5514=a182_0xa4bf7a;return _0x1ac3c4[_0x2b5514(0x125)][_0x2b5514(0x144)]&&delete _0x1ac3c4[_0x2b5514(0x125)]['uniqueid'],db[_0x2b5514(0x124)][_0x2b5514(0x137)]({'where':{'uniqueid':_0x1ac3c4[_0x2b5514(0x120)]['id']}})[_0x2b5514(0x142)](handleEntityNotFound(_0x5a7262,null))[_0x2b5514(0x142)](saveUpdates(_0x1ac3c4[_0x2b5514(0x125)],null))[_0x2b5514(0x142)](respondWithResult(_0x5a7262,null))[_0x2b5514(0x13d)](handleError(_0x5a7262,null));}; \ No newline at end of file diff --git a/server/api/cmHopperHistory/cmHopperHistory.model.js b/server/api/cmHopperHistory/cmHopperHistory.model.js index cc1ebfd..dbcbe6b 100644 --- a/server/api/cmHopperHistory/cmHopperHistory.model.js +++ b/server/api/cmHopperHistory/cmHopperHistory.model.js @@ -1 +1 @@ -const a153_0x1fd5=['cm_hopper_history','endtime','uniqueid','exports'];(function(_0x5234d2,_0x1fd5b5){const _0x56f0dc=function(_0x3df70e){while(--_0x3df70e){_0x5234d2['push'](_0x5234d2['shift']());}};_0x56f0dc(++_0x1fd5b5);}(a153_0x1fd5,0x1a6));const a153_0x56f0=function(_0x5234d2,_0x1fd5b5){_0x5234d2=_0x5234d2-0x0;let _0x56f0dc=a153_0x1fd5[_0x5234d2];return _0x56f0dc;};const _0x107570=a153_0x56f0;'use strict';const attributes=require('./cmHopperHistory.attributes');module[_0x107570('0x1')]=function(_0x3df70e){const _0x28cc71=_0x107570,_0xe79e7=_0x3df70e['define']('CmHopperHistory',attributes,{'tableName':_0x28cc71('0x2'),'paranoid':![],'indexes':[{'name':_0x28cc71('0x3'),'fields':[_0x28cc71('0x3')]},{'name':_0x28cc71('0x0'),'fields':[_0x28cc71('0x0')]}],'timestamps':!![]});return _0xe79e7;}; \ No newline at end of file +const a183_0x399a=['init','./cmHopperHistory.options','sequelize','exports','CmHopperHistory','function'];(function(_0x169081,_0x1d91cd){const _0x399ae0=function(_0xc6e58e){while(--_0xc6e58e){_0x169081['push'](_0x169081['shift']());}};_0x399ae0(++_0x1d91cd);}(a183_0x399a,0x198));const a183_0xc6e5=function(_0x169081,_0x1d91cd){_0x169081=_0x169081-0x14d;let _0x399ae0=a183_0x399a[_0x169081];return _0x399ae0;};const a183_0x15bcac=a183_0xc6e5;'use strict';const {Model}=require(a183_0x15bcac(0x14f)),{attributes}=require('./cmHopperHistory.attributes'),{options}=require(a183_0x15bcac(0x14e));class CmHopperHistory extends Model{}function init(_0x2c94e4,_0x52dfea){const _0x5cffbd=a183_0x15bcac,_0x1992cb=options(_0x2c94e4),_0xfc7cd5=typeof _0x52dfea===_0x5cffbd(0x152)?_0x52dfea(_0x1992cb):_0x1992cb;return CmHopperHistory[_0x5cffbd(0x14d)](attributes,_0xfc7cd5),CmHopperHistory;}module[a183_0x15bcac(0x150)][a183_0x15bcac(0x151)]=CmHopperHistory,module[a183_0x15bcac(0x150)][a183_0x15bcac(0x14d)]=init; \ No newline at end of file diff --git a/server/api/cmHopperHistory/cmHopperHistory.options.js b/server/api/cmHopperHistory/cmHopperHistory.options.js new file mode 100644 index 0000000..b399276 --- /dev/null +++ b/server/api/cmHopperHistory/cmHopperHistory.options.js @@ -0,0 +1 @@ +var a184_0x42a7=['cm_hopper_history','endtime','uniqueid','options'];(function(_0x4ebda7,_0x3641e3){var _0x42a7e8=function(_0x2f5001){while(--_0x2f5001){_0x4ebda7['push'](_0x4ebda7['shift']());}};_0x42a7e8(++_0x3641e3);}(a184_0x42a7,0x128));var a184_0x2f50=function(_0x4ebda7,_0x3641e3){_0x4ebda7=_0x4ebda7-0x1bb;var _0x42a7e8=a184_0x42a7[_0x4ebda7];return _0x42a7e8;};var a184_0x45ca9e=a184_0x2f50;function options(_0x2e8e75){var _0x34637a=a184_0x2f50;return{'sequelize':_0x2e8e75,'tableName':_0x34637a(0x1bb),'paranoid':![],'indexes':[{'name':_0x34637a(0x1bc),'fields':[_0x34637a(0x1bc)]},{'name':_0x34637a(0x1bd),'fields':[_0x34637a(0x1bd)]}],'timestamps':!![]};}module['exports'][a184_0x45ca9e(0x1be)]=options; \ No newline at end of file diff --git a/server/api/cmHopperHistory/cmHopperHistory.rpc.js b/server/api/cmHopperHistory/cmHopperHistory.rpc.js index d4f3196..54fcb9e 100644 --- a/server/api/cmHopperHistory/cmHopperHistory.rpc.js +++ b/server/api/cmHopperHistory/cmHopperHistory.rpc.js @@ -1 +1 @@ -const a154_0x13f0=['predictiveIntervalDroppedCallsTimeout','ivrAnswerCallsDay','outboundRejectCallsDay','`state`\x20=\x205,\x201,\x20null','error','`state`\x20=\x2018,\x201,\x20null','outboundAnswerCallsDay','`state`\x20=\x2011\x20,\x201,\x20null','outboundNoAnswerCallsDay','`state`\x20=\x203,\x201,\x20null','then','predictiveIntervalAnsweredCalls','outboundDropCallsDayCallersExit','../../config/logger','outboundReCallsDay','message','AvgHandleTime','`state`\x20=\x204,\x20`holdtime`,\x20null','options','COUNT','`state`\x20=\x2013,\x201,\x20null','`state`\x20=\x2020,\x201,\x20null','name','where','stringify','catch','`state`\x20=\x2010\x20,\x201,\x20null','debug','outboundBusyCallsDay','outboundDropCallsDayTimeout','info','AVG','`state`\x20=\x2012,\x201,\x20null','raw','CmHopperHistory','predictiveIntervalAvgTalktime','body','outboundCongestionCallsDay','`state`\x20=\x2014,\x201,\x20null','`state`\x20=\x2010,\x201,\x20null','campaign','`state`\x20=\x2022\x20or\x20`state`\x20=\x2023,\x201,\x20null','`state`\x20=\x208,\x201,\x20null','outboundBlacklistCallsDay','outboundOriginateFailureCallsDay','GetVoiceQueueHopperHistory','`state`\x20=\x204,\x201,\x20null','rpc','predictiveIntervalTotalCalls','create','`state`\x20=\x204,\x20`talktime`,\x20null','CreateCmHopperHistory','GetCampaignHopperHistory','`state`\x20=\x2011,\x201,\x20null','predictiveIntervalDroppedCallsCallersExit','`state`\x20=\x200,\x201,\x20null'];(function(_0x42201d,_0x13f0ee){const _0x2001a4=function(_0x471de7){while(--_0x471de7){_0x42201d['push'](_0x42201d['shift']());}};_0x2001a4(++_0x13f0ee);}(a154_0x13f0,0x1e1));const a154_0x2001=function(_0x42201d,_0x13f0ee){_0x42201d=_0x42201d-0x0;let _0x2001a4=a154_0x13f0[_0x42201d];return _0x2001a4;};const _0x50ce01=a154_0x2001;'use strict';const db=require('../../mysqldb')['db'],{fn,literal,col}=require('sequelize'),logger=require(_0x50ce01('0x24'))(_0x50ce01('0xe'));exports[_0x50ce01('0x12')]=function(_0x471de7){const _0x953927=this;return new Promise(function(_0x1aae7a,_0x456279){const _0x3e3790=a154_0x2001;return db[_0x3e3790('0x1')][_0x3e3790('0x10')](_0x471de7[_0x3e3790('0x3')],{'raw':_0x471de7[_0x3e3790('0x29')]?_0x471de7[_0x3e3790('0x29')][_0x3e3790('0x0')]===undefined?!![]:![]:!![]})['then'](function(_0xe7b12b){const _0x51f1ee=_0x3e3790;logger['info'](_0x51f1ee('0x12'),_0x471de7),logger[_0x51f1ee('0x32')]('CreateCmHopperHistory',_0x471de7,JSON['stringify'](_0xe7b12b)),_0x1aae7a(_0xe7b12b);})[_0x3e3790('0x30')](function(_0x18ae61){const _0x4d2a14=_0x3e3790;logger['error']('CreateCmHopperHistory',_0x18ae61[_0x4d2a14('0x26')],_0x471de7),_0x456279(_0x953927[_0x4d2a14('0x1b')](0x1f4,_0x18ae61[_0x4d2a14('0x26')]));});});},exports['AvgHandleTime']=function(_0xc8679d){const _0x34f9e6=this;return new Promise(function(_0x1baeed,_0x3ae0f5){const _0x4d6aab=a154_0x2001;return db['CmHopperHistory']['findAll']({'raw':_0xc8679d['options']?_0xc8679d[_0x4d6aab('0x29')]['raw']===undefined?!![]:![]:!![],'where':_0xc8679d[_0x4d6aab('0x29')]?_0xc8679d[_0x4d6aab('0x29')][_0x4d6aab('0x2e')]||null:null,'attributes':[[fn('COUNT',col('id')),_0x4d6aab('0xf')],[fn('COUNT',fn('IF',literal(_0x4d6aab('0xd')))),_0x4d6aab('0x22')],[fn(_0x4d6aab('0x2a'),fn('IF',literal(_0x4d6aab('0x6')))),_0x4d6aab('0x17')],[fn('COUNT',fn('IF',literal(_0x4d6aab('0x14')))),_0x4d6aab('0x15')],[fn(_0x4d6aab('0x36'),fn('IF',literal(_0x4d6aab('0x28')))),'predictiveIntervalAvgHoldtime'],[fn(_0x4d6aab('0x36'),fn('IF',literal(_0x4d6aab('0x11')))),_0x4d6aab('0x2')]]})[_0x4d6aab('0x21')](function(_0x2a3744){const _0x3b1168=_0x4d6aab;logger[_0x3b1168('0x35')](_0x3b1168('0x27'),_0xc8679d),logger['debug'](_0x3b1168('0x27'),_0xc8679d,JSON[_0x3b1168('0x2f')](_0x2a3744)),_0x1baeed(_0x2a3744);})[_0x4d6aab('0x30')](function(_0x1cf09d){const _0x25bcdf=_0x4d6aab;logger[_0x25bcdf('0x1b')](_0x25bcdf('0x27'),_0x1cf09d[_0x25bcdf('0x26')],_0xc8679d),_0x3ae0f5(_0x34f9e6[_0x25bcdf('0x1b')](0x1f4,_0x1cf09d[_0x25bcdf('0x26')]));});});},exports['GetVoiceQueueHopperHistory']=function(_0x42c444){const _0x5f3645=this;return new Promise(function(_0xda82fe,_0x25bd8a){const _0x2dd785=a154_0x2001;return db[_0x2dd785('0x1')]['findAll']({'raw':_0x42c444[_0x2dd785('0x29')]?_0x42c444[_0x2dd785('0x29')][_0x2dd785('0x0')]===undefined?!![]:![]:!![],'where':_0x42c444[_0x2dd785('0x29')]?_0x42c444[_0x2dd785('0x29')][_0x2dd785('0x2e')]||null:null,'attributes':[[_0x2dd785('0x7'),_0x2dd785('0x2d')],[fn('COUNT',fn('IF',literal(_0x2dd785('0x16')))),'outboundNoSuchCallsDay'],[fn(_0x2dd785('0x2a'),fn('IF',literal(_0x2dd785('0x20')))),_0x2dd785('0x1f')],[fn(_0x2dd785('0x2a'),fn('IF',literal(_0x2dd785('0xd')))),_0x2dd785('0x1d')],[fn('COUNT',fn('IF',literal(_0x2dd785('0x1a')))),_0x2dd785('0x33')],[fn(_0x2dd785('0x2a'),fn('IF',literal(_0x2dd785('0x9')))),_0x2dd785('0x4')],[fn(_0x2dd785('0x2a'),fn('IF',literal(_0x2dd785('0x31')))),_0x2dd785('0x34')],[fn('COUNT',fn('IF',literal(_0x2dd785('0x1e')))),_0x2dd785('0x23')],[fn('COUNT',fn('IF',literal(_0x2dd785('0x37')))),'outboundUnknownCallsDay'],[fn(_0x2dd785('0x2a'),fn('IF',literal(_0x2dd785('0x2b')))),_0x2dd785('0xa')],[fn('COUNT',fn('IF',literal(_0x2dd785('0x5')))),_0x2dd785('0xb')],[fn('COUNT',fn('IF',literal(_0x2dd785('0x1c')))),_0x2dd785('0x19')],[fn(_0x2dd785('0x2a'),fn('IF',literal('`state`\x20=\x2016,\x201,\x20null'))),'outboundAnswerAgiCallsDay'],[fn('COUNT',fn('IF',literal(_0x2dd785('0x2c')))),'outboundRejectCallsDay'],[fn(_0x2dd785('0x2a'),fn('IF',literal(_0x2dd785('0x8')))),_0x2dd785('0x25')]],'group':[_0x2dd785('0x7')]})[_0x2dd785('0x21')](function(_0x2e1989){const _0x9fccf6=_0x2dd785;logger['info'](_0x9fccf6('0xc'),_0x42c444),logger[_0x9fccf6('0x32')]('GetVoiceQueueHopperHistory',_0x42c444,JSON[_0x9fccf6('0x2f')](_0x2e1989)),_0xda82fe(_0x2e1989);})[_0x2dd785('0x30')](function(_0x1b4095){const _0x35633c=_0x2dd785;logger[_0x35633c('0x1b')]('GetVoiceQueueHopperHistory',_0x1b4095[_0x35633c('0x26')],_0x42c444),_0x25bd8a(_0x5f3645[_0x35633c('0x1b')](0x1f4,_0x1b4095[_0x35633c('0x26')]));});});},exports[_0x50ce01('0x13')]=function(_0x3e9fb1){const _0x1be0d3=this;return new Promise(function(_0x29ab93,_0x19b556){const _0x2e889d=a154_0x2001;return db['CmHopperHistory']['findAll']({'raw':_0x3e9fb1['options']?_0x3e9fb1[_0x2e889d('0x29')]['raw']===undefined?!![]:![]:!![],'where':_0x3e9fb1[_0x2e889d('0x29')]?_0x3e9fb1[_0x2e889d('0x29')][_0x2e889d('0x2e')]||null:null,'attributes':[[_0x2e889d('0x7'),_0x2e889d('0x2d')],[fn(_0x2e889d('0x2a'),col('id')),'ivrTotalCallsDays'],[fn(_0x2e889d('0x2a'),fn('IF',literal('`state`\x20=\x204,\x201,\x20null'))),_0x2e889d('0x18')]],'group':[_0x2e889d('0x7')]})[_0x2e889d('0x21')](function(_0x25450f){const _0x3017df=_0x2e889d;logger[_0x3017df('0x35')](_0x3017df('0x13'),_0x3e9fb1),logger[_0x3017df('0x32')](_0x3017df('0x13'),_0x3e9fb1,JSON['stringify'](_0x25450f)),_0x29ab93(_0x25450f);})[_0x2e889d('0x30')](function(_0x5b40b2){const _0x5d0eaf=_0x2e889d;logger[_0x5d0eaf('0x1b')](_0x5d0eaf('0x13'),_0x5b40b2['message'],_0x3e9fb1),_0x19b556(_0x1be0d3['error'](0x1f4,_0x5b40b2[_0x5d0eaf('0x26')]));});});}; \ No newline at end of file +const a185_0x27c1=['ivrAnswerCallsDay','CreateCmHopperHistory','outboundAnswerCallsDay','campaign','stringify','`state`\x20=\x200,\x201,\x20null','raw','catch','outboundBusyCallsDay','ivrTotalCallsDays','predictiveIntervalAvgTalktime','sequelize','predictiveIntervalAvgHoldtime','info','`state`\x20=\x2020,\x201,\x20null','`state`\x20=\x2010\x20,\x201,\x20null','error','findAll','`state`\x20=\x2010,\x201,\x20null','debug','`state`\x20=\x2016,\x201,\x20null','then','options','`state`\x20=\x2022\x20or\x20`state`\x20=\x2023,\x201,\x20null','`state`\x20=\x203,\x201,\x20null','COUNT','AvgHandleTime','`state`\x20=\x205,\x201,\x20null','outboundOriginateFailureCallsDay','outboundDropCallsDayCallersExit','predictiveIntervalTotalCalls','GetCampaignHopperHistory','GetVoiceQueueHopperHistory','AVG','outboundNoSuchCallsDay','body','predictiveIntervalAnsweredCalls','where','outboundAnswerAgiCallsDay','predictiveIntervalDroppedCallsCallersExit','CmHopperHistory','message','`state`\x20=\x2011\x20,\x201,\x20null','../../mysqldb','outboundDropCallsDayTimeout','outboundCongestionCallsDay','outboundReCallsDay','name','`state`\x20=\x204,\x201,\x20null','`state`\x20=\x208,\x201,\x20null','predictiveIntervalDroppedCallsTimeout','outboundUnknownCallsDay','`state`\x20=\x2014,\x201,\x20null','outboundNoAnswerCallsDay'];(function(_0x5b1bd4,_0x10fab2){const _0x27c1f9=function(_0x128e07){while(--_0x128e07){_0x5b1bd4['push'](_0x5b1bd4['shift']());}};_0x27c1f9(++_0x10fab2);}(a185_0x27c1,0x176));const a185_0x128e=function(_0x5b1bd4,_0x10fab2){_0x5b1bd4=_0x5b1bd4-0xa0;let _0x27c1f9=a185_0x27c1[_0x5b1bd4];return _0x27c1f9;};const a185_0x3e2256=a185_0x128e;'use strict';const db=require(a185_0x3e2256(0xcf))['db'],{fn,literal,col}=require(a185_0x3e2256(0xaf)),logger=require('../../config/logger')('rpc');exports[a185_0x3e2256(0xa5)]=function(_0x1e5440){const _0x2bb1b3=this;return new Promise(function(_0x13c8c9,_0x49266c){const _0x1d352a=a185_0x128e;return db[_0x1d352a(0xcc)]['create'](_0x1e5440[_0x1d352a(0xc7)],{'raw':_0x1e5440[_0x1d352a(0xba)]?_0x1e5440[_0x1d352a(0xba)]['raw']===undefined?!![]:![]:!![]})[_0x1d352a(0xb9)](function(_0x504dc8){const _0x3b6f84=_0x1d352a;logger[_0x3b6f84(0xb1)](_0x3b6f84(0xa5),_0x1e5440),logger[_0x3b6f84(0xb7)](_0x3b6f84(0xa5),_0x1e5440,JSON[_0x3b6f84(0xa8)](_0x504dc8)),_0x13c8c9(_0x504dc8);})[_0x1d352a(0xab)](function(_0x4ea900){const _0x5149d5=_0x1d352a;logger[_0x5149d5(0xb4)](_0x5149d5(0xa5),_0x4ea900[_0x5149d5(0xcd)],_0x1e5440),_0x49266c(_0x2bb1b3['error'](0x1f4,_0x4ea900[_0x5149d5(0xcd)]));});});},exports['AvgHandleTime']=function(_0x54f332){const _0x305454=this;return new Promise(function(_0x2409f5,_0x228c16){const _0x3accab=a185_0x128e;return db[_0x3accab(0xcc)][_0x3accab(0xb5)]({'raw':_0x54f332[_0x3accab(0xba)]?_0x54f332['options'][_0x3accab(0xaa)]===undefined?!![]:![]:!![],'where':_0x54f332['options']?_0x54f332[_0x3accab(0xba)][_0x3accab(0xc9)]||null:null,'attributes':[[fn(_0x3accab(0xbd),col('id')),_0x3accab(0xc2)],[fn(_0x3accab(0xbd),fn('IF',literal(_0x3accab(0xd4)))),_0x3accab(0xc8)],[fn(_0x3accab(0xbd),fn('IF',literal(_0x3accab(0xb6)))),_0x3accab(0xa0)],[fn(_0x3accab(0xbd),fn('IF',literal('`state`\x20=\x2011,\x201,\x20null'))),_0x3accab(0xcb)],[fn(_0x3accab(0xc5),fn('IF',literal('`state`\x20=\x204,\x20`holdtime`,\x20null'))),_0x3accab(0xb0)],[fn(_0x3accab(0xc5),fn('IF',literal('`state`\x20=\x204,\x20`talktime`,\x20null'))),_0x3accab(0xae)]]})[_0x3accab(0xb9)](function(_0x3c5199){const _0x16d599=_0x3accab;logger[_0x16d599(0xb1)](_0x16d599(0xbe),_0x54f332),logger['debug'](_0x16d599(0xbe),_0x54f332,JSON[_0x16d599(0xa8)](_0x3c5199)),_0x2409f5(_0x3c5199);})[_0x3accab(0xab)](function(_0x46f1a2){const _0xce102a=_0x3accab;logger[_0xce102a(0xb4)](_0xce102a(0xbe),_0x46f1a2[_0xce102a(0xcd)],_0x54f332),_0x228c16(_0x305454['error'](0x1f4,_0x46f1a2[_0xce102a(0xcd)]));});});},exports[a185_0x3e2256(0xc4)]=function(_0x3863ce){const _0x23ec6b=this;return new Promise(function(_0x5e03a1,_0x460326){const _0x287281=a185_0x128e;return db[_0x287281(0xcc)][_0x287281(0xb5)]({'raw':_0x3863ce[_0x287281(0xba)]?_0x3863ce[_0x287281(0xba)]['raw']===undefined?!![]:![]:!![],'where':_0x3863ce[_0x287281(0xba)]?_0x3863ce[_0x287281(0xba)][_0x287281(0xc9)]||null:null,'attributes':[[_0x287281(0xa7),_0x287281(0xd3)],[fn(_0x287281(0xbd),fn('IF',literal(_0x287281(0xa9)))),_0x287281(0xc6)],[fn(_0x287281(0xbd),fn('IF',literal(_0x287281(0xbc)))),_0x287281(0xa3)],[fn(_0x287281(0xbd),fn('IF',literal('`state`\x20=\x204,\x201,\x20null'))),_0x287281(0xa6)],[fn(_0x287281(0xbd),fn('IF',literal(_0x287281(0xbf)))),_0x287281(0xac)],[fn('COUNT',fn('IF',literal(_0x287281(0xd5)))),_0x287281(0xd1)],[fn(_0x287281(0xbd),fn('IF',literal(_0x287281(0xb3)))),_0x287281(0xd0)],[fn(_0x287281(0xbd),fn('IF',literal(_0x287281(0xce)))),_0x287281(0xc1)],[fn(_0x287281(0xbd),fn('IF',literal('`state`\x20=\x2012,\x201,\x20null'))),_0x287281(0xa1)],[fn('COUNT',fn('IF',literal('`state`\x20=\x2013,\x201,\x20null'))),'outboundBlacklistCallsDay'],[fn(_0x287281(0xbd),fn('IF',literal(_0x287281(0xa2)))),_0x287281(0xc0)],[fn(_0x287281(0xbd),fn('IF',literal('`state`\x20=\x2018,\x201,\x20null'))),'outboundRejectCallsDay'],[fn(_0x287281(0xbd),fn('IF',literal(_0x287281(0xb8)))),_0x287281(0xca)],[fn(_0x287281(0xbd),fn('IF',literal(_0x287281(0xb2)))),'outboundRejectCallsDay'],[fn(_0x287281(0xbd),fn('IF',literal(_0x287281(0xbb)))),_0x287281(0xd2)]],'group':['campaign']})[_0x287281(0xb9)](function(_0x4b3774){const _0x2442ad=_0x287281;logger[_0x2442ad(0xb1)]('GetVoiceQueueHopperHistory',_0x3863ce),logger[_0x2442ad(0xb7)]('GetVoiceQueueHopperHistory',_0x3863ce,JSON[_0x2442ad(0xa8)](_0x4b3774)),_0x5e03a1(_0x4b3774);})[_0x287281(0xab)](function(_0x25e3ad){const _0x5a3ba8=_0x287281;logger[_0x5a3ba8(0xb4)](_0x5a3ba8(0xc4),_0x25e3ad['message'],_0x3863ce),_0x460326(_0x23ec6b[_0x5a3ba8(0xb4)](0x1f4,_0x25e3ad[_0x5a3ba8(0xcd)]));});});},exports[a185_0x3e2256(0xc3)]=function(_0x3fd1c2){const _0x2947f6=this;return new Promise(function(_0x23f8b8,_0x9a1210){const _0x10dc4d=a185_0x128e;return db[_0x10dc4d(0xcc)][_0x10dc4d(0xb5)]({'raw':_0x3fd1c2[_0x10dc4d(0xba)]?_0x3fd1c2[_0x10dc4d(0xba)]['raw']===undefined?!![]:![]:!![],'where':_0x3fd1c2[_0x10dc4d(0xba)]?_0x3fd1c2[_0x10dc4d(0xba)]['where']||null:null,'attributes':[[_0x10dc4d(0xa7),_0x10dc4d(0xd3)],[fn(_0x10dc4d(0xbd),col('id')),_0x10dc4d(0xad)],[fn(_0x10dc4d(0xbd),fn('IF',literal(_0x10dc4d(0xd4)))),_0x10dc4d(0xa4)]],'group':[_0x10dc4d(0xa7)]})[_0x10dc4d(0xb9)](function(_0x4add83){const _0x231f40=_0x10dc4d;logger['info']('GetCampaignHopperHistory',_0x3fd1c2),logger[_0x231f40(0xb7)](_0x231f40(0xc3),_0x3fd1c2,JSON[_0x231f40(0xa8)](_0x4add83)),_0x23f8b8(_0x4add83);})[_0x10dc4d(0xab)](function(_0x23b59e){const _0x53946b=_0x10dc4d;logger[_0x53946b(0xb4)](_0x53946b(0xc3),_0x23b59e[_0x53946b(0xcd)],_0x3fd1c2),_0x9a1210(_0x2947f6[_0x53946b(0xb4)](0x1f4,_0x23b59e[_0x53946b(0xcd)]));});});}; \ No newline at end of file diff --git a/server/api/cmHopperHistory/index.js b/server/api/cmHopperHistory/index.js index 791a060..e50b56e 100644 --- a/server/api/cmHopperHistory/index.js +++ b/server/api/cmHopperHistory/index.js @@ -1 +1 @@ -const a155_0x5b61=['isAuthenticated','update','describe','/:id','put','exports','create','post','./cmHopperHistory.controller','/describe','../../components/auth/service','index','show','get'];(function(_0x314c53,_0x5b619c){const _0x2b40f2=function(_0x4bccb6){while(--_0x4bccb6){_0x314c53['push'](_0x314c53['shift']());}};_0x2b40f2(++_0x5b619c);}(a155_0x5b61,0xd4));const a155_0x2b40=function(_0x314c53,_0x5b619c){_0x314c53=_0x314c53-0x0;let _0x2b40f2=a155_0x5b61[_0x314c53];return _0x2b40f2;};const _0x511769=a155_0x2b40;'use strict';const express=require('express'),router=express['Router'](),auth=require(_0x511769('0x8')),controller=require(_0x511769('0x6'));router[_0x511769('0xb')]('/',auth['isAuthenticated'](),controller[_0x511769('0x9')]),router[_0x511769('0xb')](_0x511769('0x7'),auth[_0x511769('0xc')](),controller[_0x511769('0x0')]),router[_0x511769('0xb')](_0x511769('0x1'),auth[_0x511769('0xc')](),controller[_0x511769('0xa')]),router[_0x511769('0x5')]('/',auth[_0x511769('0xc')](),controller[_0x511769('0x4')]),router[_0x511769('0x2')](_0x511769('0x1'),auth[_0x511769('0xc')](),controller[_0x511769('0xd')]),module[_0x511769('0x3')]=router; \ No newline at end of file +const a186_0x3e21=['Router','update','isAuthenticated','./cmHopperHistory.controller','express','show','post','get','/:id','put','/describe','../../components/auth/service','exports'];(function(_0x48b489,_0x278286){const _0x3e216a=function(_0x66381f){while(--_0x66381f){_0x48b489['push'](_0x48b489['shift']());}};_0x3e216a(++_0x278286);}(a186_0x3e21,0x16f));const a186_0x6638=function(_0x48b489,_0x278286){_0x48b489=_0x48b489-0x181;let _0x3e216a=a186_0x3e21[_0x48b489];return _0x3e216a;};const a186_0x59f27e=a186_0x6638;'use strict';const express=require(a186_0x59f27e(0x182)),router=express[a186_0x59f27e(0x18b)](),auth=require(a186_0x59f27e(0x189)),controller=require(a186_0x59f27e(0x181));router['get']('/',auth[a186_0x59f27e(0x18d)](),controller['index']),router[a186_0x59f27e(0x185)](a186_0x59f27e(0x188),auth[a186_0x59f27e(0x18d)](),controller['describe']),router[a186_0x59f27e(0x185)](a186_0x59f27e(0x186),auth['isAuthenticated'](),controller[a186_0x59f27e(0x183)]),router[a186_0x59f27e(0x184)]('/',auth[a186_0x59f27e(0x18d)](),controller['create']),router[a186_0x59f27e(0x187)](a186_0x59f27e(0x186),auth[a186_0x59f27e(0x18d)](),controller[a186_0x59f27e(0x18c)]),module[a186_0x59f27e(0x18a)]=router; \ No newline at end of file diff --git a/server/api/cmList/cmList.attributes.js b/server/api/cmList/cmList.attributes.js index e82f264..e9323c2 100644 --- a/server/api/cmList/cmList.attributes.js +++ b/server/api/cmList/cmList.attributes.js @@ -1 +1 @@ -const a156_0x2cf5=['STRING','exports'];(function(_0x20b686,_0x2cf565){const _0x3dcacc=function(_0x4fd41a){while(--_0x4fd41a){_0x20b686['push'](_0x20b686['shift']());}};_0x3dcacc(++_0x2cf565);}(a156_0x2cf5,0x179));const a156_0x3dca=function(_0x20b686,_0x2cf565){_0x20b686=_0x20b686-0x0;let _0x3dcacc=a156_0x2cf5[_0x20b686];return _0x3dcacc;};const _0x274641=a156_0x3dca;'use strict';const Sequelize=require('sequelize');module[_0x274641('0x0')]={'name':{'type':Sequelize[_0x274641('0x1')],'unique':'name','allowNull':![],'validate':{'notEmpty':!![]}},'description':{'type':Sequelize[_0x274641('0x1')]},'dialPrefix':{'type':Sequelize[_0x274641('0x1')]}}; \ No newline at end of file +const a187_0x170a=['exports','attributes','STRING','sequelize'];(function(_0x72bcfb,_0x53d5a3){const _0x170ac3=function(_0x59081b){while(--_0x59081b){_0x72bcfb['push'](_0x72bcfb['shift']());}};_0x170ac3(++_0x53d5a3);}(a187_0x170a,0xf1));const a187_0x5908=function(_0x72bcfb,_0x53d5a3){_0x72bcfb=_0x72bcfb-0x16d;let _0x170ac3=a187_0x170a[_0x72bcfb];return _0x170ac3;};const a187_0x3e31e1=a187_0x5908;'use strict';const {DataTypes}=require(a187_0x3e31e1(0x16f)),attributes={'name':{'type':DataTypes['STRING'],'unique':'name','allowNull':![],'validate':{'notEmpty':!![]}},'description':{'type':DataTypes['STRING']},'dialPrefix':{'type':DataTypes[a187_0x3e31e1(0x16e)]}};module[a187_0x3e31e1(0x170)][a187_0x3e31e1(0x16d)]=attributes; \ No newline at end of file diff --git a/server/api/cmList/cmList.controller.js b/server/api/cmList/cmList.controller.js index ea08dca..31a5251 100644 --- a/server/api/cmList/cmList.controller.js +++ b/server/api/cmList/cmList.controller.js @@ -1 +1 @@ -const a157_0x31f9=['getDispositions','addContacts','rows','catch','include','fields','raw','where','../../components/parsers/qs','lodash','getContactsCsv','dataValues','queryInterface','merge','filter','get','isArray','Content-disposition','getCustomFields','Disposition','limit','text','Malformed\x20request\x20syntax','ids','transaction','status','success','intersection','create','CustomFields','getContacts','json','message','UserProfileSection','model','download','TEXT','addCustomFields','isEmpty','now','emit','CmCustomField','update','userProfileId','setHeader','error','attachment;\x20filename=','then','Unable\x20to\x20retrieve\x20the\x20current\x20user','format','params','to-csv','Sequelize','name','keys','switch','errors','addColumn','options','findOne','length','describe','defaultValue','map','all','nolimit','writeFileSync','rawAttributes','User','user','findAndCountAll','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','addAgents','/tmp/list_%d_%s.csv','push','show','sendStatus','UserProfileResource','sort','CmContact','offset','attributes','like','text/csv','fieldName','removeDispositions','send','cm_contacts','count','util','body','cf_%d','destroy','pick','./cmList.socket','addDisposition','sequelize','type','key','concat','VIRTUAL','omit','getAgents','tags','findAll','../../mysqldb','undefined','order','filters','stack','Content-type','query','Lists','INTEGER','set','removeAgents','userCmList:remove','end','CmList','../../config/logger','../../rediscache','api','includeAll','addCustomField','ListId','autoAssociation'];(function(_0x1d28ea,_0x31f9fd){const _0x17ff60=function(_0xc66e7d){while(--_0xc66e7d){_0x1d28ea['push'](_0x1d28ea['shift']());}};_0x17ff60(++_0x31f9fd);}(a157_0x31f9,0x1ba));const a157_0x17ff=function(_0x1d28ea,_0x31f9fd){_0x1d28ea=_0x1d28ea-0x0;let _0x17ff60=a157_0x31f9[_0x1d28ea];return _0x17ff60;};const _0x29e34e=a157_0x17ff;'use strict';const util=require(_0x29e34e('0x19')),fs=require('fs'),_=require(_0x29e34e('0x47')),toCsv=require(_0x29e34e('0x71')),{getSocket}=require(_0x29e34e('0x38')),socket=getSocket(),qs=require(_0x29e34e('0x46')),logger=require(_0x29e34e('0x37'))(_0x29e34e('0x39')),db=require(_0x29e34e('0x29'))['db'],{Op}=require(_0x29e34e('0x20'));require(_0x29e34e('0x1e'))['register'](socket);function respondWithStatusCode(_0xc66e7d,_0xaaa4f7){return _0xaaa4f7=_0xaaa4f7||0xcc,function(_0x4ba90d){const _0x66f874=a157_0x17ff;if(_0x4ba90d)return _0xc66e7d['sendStatus'](_0xaaa4f7);return _0xc66e7d[_0x66f874('0x57')](_0xaaa4f7)[_0x66f874('0x35')]();};}function respondWithResult(_0x31cc11,_0x396be0){return _0x396be0=_0x396be0||0xc8,function(_0x2245f8){const _0x3ef8e1=a157_0x17ff;if(_0x2245f8)return _0x31cc11['status'](_0x396be0)[_0x3ef8e1('0x5d')](_0x2245f8);};}function respondWithFilteredResult(_0x3bcb2a,_0x2e6513){return function(_0x6b4a8a){const _0x364938=a157_0x17ff;if(_0x6b4a8a){const _0x564322=_0x6b4a8a['count'],_0x1fc8b4=_0x2e6513[_0x364938('0x10')];let _0x31eec8=_0x2e6513['offset']+_0x2e6513['limit'],_0x56f3cc;return _0x31eec8>=_0x564322?(_0x31eec8=_0x564322,_0x56f3cc=0xc8):_0x56f3cc=0xce,_0x3bcb2a['status'](_0x56f3cc),_0x3bcb2a[_0x364938('0x32')]('Content-Range',_0x1fc8b4+'-'+_0x31eec8+'/'+_0x564322)[_0x364938('0x5d')](_0x6b4a8a);}return null;};}function saveUpdates(_0x19049d){return function(_0x97244b){const _0x38d6ae=a157_0x17ff;if(_0x97244b)return _0x97244b['update'](_0x19049d)[_0x38d6ae('0x6d')](function(_0x259565){return _0x259565;});return null;};}function removeEntity(_0x10f6ce){return function(_0x2e2378){const _0x3cae96=a157_0x17ff;if(_0x2e2378)return _0x2e2378[_0x3cae96('0x1c')]()[_0x3cae96('0x6d')](function(){const _0x21be39=_0x3cae96,_0xffe23b=_0x2e2378[_0x21be39('0x4d')]({'plain':!![]}),_0x4d4cdb=_0x21be39('0x30');return db[_0x21be39('0xd')][_0x21be39('0x1c')]({'where':{'type':_0x4d4cdb,'resourceId':_0xffe23b['id']}})['then'](function(){return _0x2e2378;});})['then'](function(){const _0x139ac0=_0x3cae96;_0x10f6ce['status'](0xcc)[_0x139ac0('0x35')]();});};}function handleEntityNotFound(_0x2815e4){return function(_0x34d9c0){return!_0x34d9c0&&_0x2815e4['sendStatus'](0x194),_0x34d9c0;};}function handleError(_0x2dfa4e,_0x139a5a){return _0x139a5a=_0x139a5a||0x1f4,function(_0x4118f6){const _0x16403b=a157_0x17ff;logger[_0x16403b('0x6b')](_0x4118f6[_0x16403b('0x2d')]),_0x4118f6[_0x16403b('0x73')]&&delete _0x4118f6[_0x16403b('0x73')],_0x2dfa4e[_0x16403b('0x57')](_0x139a5a)[_0x16403b('0x16')](_0x4118f6);};}exports['index']=function(_0x365d17,_0x532091){const _0x2bb546=_0x29e34e;let _0x26f303={};const _0x246b31={},_0x56e615={'count':0x0,'rows':[]},_0x100e78=_['map'](db[_0x2bb546('0x36')][_0x2bb546('0x3')],function(_0xde0a9f){const _0x2736a9=_0x2bb546;return{'name':_0xde0a9f[_0x2736a9('0x14')],'type':_0xde0a9f[_0x2736a9('0x21')][_0x2736a9('0x22')]};});_0x246b31[_0x2bb546('0x60')]=_[_0x2bb546('0x7d')](_0x100e78,_0x2bb546('0x73')),_0x246b31['query']=_[_0x2bb546('0x74')](_0x365d17[_0x2bb546('0x2f')]),_0x246b31['filters']=_['intersection'](_0x246b31[_0x2bb546('0x60')],_0x246b31[_0x2bb546('0x2f')]),_0x26f303['attributes']=_[_0x2bb546('0x59')](_0x246b31[_0x2bb546('0x60')],qs[_0x2bb546('0x43')](_0x365d17[_0x2bb546('0x2f')]['fields'])),_0x26f303[_0x2bb546('0x11')]=_0x26f303[_0x2bb546('0x11')][_0x2bb546('0x7a')]?_0x26f303[_0x2bb546('0x11')]:_0x246b31[_0x2bb546('0x60')];typeof _0x365d17['query'][_0x2bb546('0x1')]==='undefined'&&(_0x26f303[_0x2bb546('0x52')]=qs[_0x2bb546('0x52')](_0x365d17[_0x2bb546('0x2f')][_0x2bb546('0x52')]),_0x26f303[_0x2bb546('0x10')]=qs[_0x2bb546('0x10')](_0x365d17[_0x2bb546('0x2f')][_0x2bb546('0x10')]));_0x26f303[_0x2bb546('0x2b')]=qs[_0x2bb546('0xe')](_0x365d17[_0x2bb546('0x2f')][_0x2bb546('0xe')]),_0x26f303['where']=qs[_0x2bb546('0x2c')](_[_0x2bb546('0x1d')](_0x365d17['query'],_0x246b31['filters']),_0x100e78);_0x365d17['query'][_0x2bb546('0x4c')]&&(_0x26f303[_0x2bb546('0x45')]=_[_0x2bb546('0x4b')](_0x26f303[_0x2bb546('0x45')],{[Op['or']]:_[_0x2bb546('0x7d')](_0x100e78,function(_0x3950e6){const _0x134ed2=_0x2bb546;if(_0x3950e6[_0x134ed2('0x21')]!==_0x134ed2('0x24')){const _0x201c37={};return _0x201c37[_0x3950e6[_0x134ed2('0x73')]]={[Op[_0x134ed2('0x12')]]:'%'+_0x365d17[_0x134ed2('0x2f')]['filter']+'%'},_0x201c37;}})}));_0x26f303=_[_0x2bb546('0x4b')]({},_0x26f303,_0x365d17[_0x2bb546('0x78')]);const _0x538387={'where':_0x26f303['where']};return db[_0x2bb546('0x36')][_0x2bb546('0x18')](_0x538387)[_0x2bb546('0x6d')](function(_0x326b4e){const _0x48f95f=_0x2bb546;return _0x56e615['count']=_0x326b4e,_0x365d17[_0x48f95f('0x2f')][_0x48f95f('0x3a')]&&(_0x26f303[_0x48f95f('0x42')]=[{'all':!![]}]),db[_0x48f95f('0x36')][_0x48f95f('0x28')](_0x26f303);})['then'](function(_0x1b06ff){const _0x2ace96=_0x2bb546;return _0x56e615[_0x2ace96('0x40')]=_0x1b06ff,_0x56e615;})[_0x2bb546('0x6d')](respondWithFilteredResult(_0x532091,_0x26f303))[_0x2bb546('0x41')](handleError(_0x532091,null));},exports[_0x29e34e('0xb')]=function(_0x5ebbfc,_0x1cb733){const _0x27acd3=_0x29e34e;let _0x13bb9b={'raw':![],'where':{'id':_0x5ebbfc[_0x27acd3('0x70')]['id']}};const _0x3a0c8b={};return _0x3a0c8b[_0x27acd3('0x60')]=_[_0x27acd3('0x74')](db[_0x27acd3('0x36')][_0x27acd3('0x3')]),_0x3a0c8b['query']=_[_0x27acd3('0x74')](_0x5ebbfc['query']),_0x3a0c8b[_0x27acd3('0x2c')]=_[_0x27acd3('0x59')](_0x3a0c8b[_0x27acd3('0x60')],_0x3a0c8b['query']),_0x13bb9b[_0x27acd3('0x11')]=_[_0x27acd3('0x59')](_0x3a0c8b['model'],qs[_0x27acd3('0x43')](_0x5ebbfc[_0x27acd3('0x2f')][_0x27acd3('0x43')])),_0x13bb9b['attributes']=_0x13bb9b[_0x27acd3('0x11')][_0x27acd3('0x7a')]?_0x13bb9b['attributes']:_0x3a0c8b['model'],_0x5ebbfc['query'][_0x27acd3('0x3a')]&&(_0x13bb9b[_0x27acd3('0x42')]=[{'all':!![]}]),_0x13bb9b=_[_0x27acd3('0x4b')]({},_0x13bb9b,_0x5ebbfc[_0x27acd3('0x78')]),db[_0x27acd3('0x36')]['findOne'](_0x13bb9b)['then'](handleEntityNotFound(_0x1cb733,null))[_0x27acd3('0x6d')](respondWithResult(_0x1cb733,null))[_0x27acd3('0x41')](handleError(_0x1cb733,null));},exports[_0x29e34e('0x5a')]=function(_0x4158e3,_0x52c741){const _0x3b9251=_0x29e34e;return db[_0x3b9251('0x36')]['create'](_0x4158e3['body'],{})['then'](function(_0x504d64){const _0x217a62=_0x3b9251,_0x22bae0=_0x4158e3['user'][_0x217a62('0x4d')]({'plain':!![]});if(!_0x22bae0)throw new Error(_0x217a62('0x6e'));if(_0x22bae0['role']===_0x217a62('0x5')){const _0x23ffff=_0x504d64[_0x217a62('0x4d')]({'plain':!![]}),_0x410031=_0x217a62('0x30');return db[_0x217a62('0x5f')][_0x217a62('0x79')]({'where':{'name':_0x410031,'userProfileId':_0x22bae0[_0x217a62('0x69')]},'raw':!![]})['then'](function(_0x4e04dd){const _0xb60c58=_0x217a62;return _0x4e04dd&&_0x4e04dd[_0xb60c58('0x3d')]===0x0?db[_0xb60c58('0xd')][_0xb60c58('0x5a')]({'name':_0x23ffff[_0xb60c58('0x73')],'resourceId':_0x23ffff['id'],'type':_0x4e04dd[_0xb60c58('0x73')],'sectionId':_0x4e04dd['id']},{})[_0xb60c58('0x6d')](function(){return _0x504d64;}):_0x504d64;})[_0x217a62('0x41')](function(_0x144f4d){const _0x21e5d8=_0x217a62;logger[_0x21e5d8('0x6b')](_0x21e5d8('0x7'),_0x144f4d);throw _0x144f4d;});}return _0x504d64;})[_0x3b9251('0x6d')](respondWithResult(_0x52c741,0xc9))[_0x3b9251('0x41')](handleError(_0x52c741,null));},exports[_0x29e34e('0x68')]=function(_0x347094,_0xdc18ab){const _0x54b22b=_0x29e34e;return _0x347094[_0x54b22b('0x1a')]['id']&&delete _0x347094[_0x54b22b('0x1a')]['id'],db[_0x54b22b('0x36')]['findOne']({'where':{'id':_0x347094[_0x54b22b('0x70')]['id']}})[_0x54b22b('0x6d')](handleEntityNotFound(_0xdc18ab,null))[_0x54b22b('0x6d')](saveUpdates(_0x347094[_0x54b22b('0x1a')],null))[_0x54b22b('0x6d')](respondWithResult(_0xdc18ab,null))['catch'](handleError(_0xdc18ab,null));},exports[_0x29e34e('0x1c')]=function(_0x44fd83,_0x2ec122){const _0x211112=_0x29e34e;return db[_0x211112('0x36')]['findOne']({'where':{'id':_0x44fd83[_0x211112('0x70')]['id']}})[_0x211112('0x6d')](handleEntityNotFound(_0x2ec122,null))[_0x211112('0x6d')](removeEntity(_0x2ec122,null))[_0x211112('0x41')](handleError(_0x2ec122,null));},exports['describe']=function(_0x263e29,_0x432854){const _0x4ea9c1=_0x29e34e;return db[_0x4ea9c1('0x36')]['describe']()[_0x4ea9c1('0x6d')](respondWithResult(_0x432854,null))[_0x4ea9c1('0x41')](handleError(_0x432854,null));},exports[_0x29e34e('0x1f')]=function(_0x4171ca,_0x54c3e6){const _0x177ffe=_0x29e34e;return _0x4171ca[_0x177ffe('0x1a')]['id']&&delete _0x4171ca[_0x177ffe('0x1a')]['id'],db[_0x177ffe('0x36')][_0x177ffe('0x79')]({'where':{'id':_0x4171ca[_0x177ffe('0x70')]['id']}})[_0x177ffe('0x6d')](handleEntityNotFound(_0x54c3e6,null))['then'](function(_0x2de941){const _0x2d6065=_0x177ffe;if(_0x2de941)return _0x4171ca[_0x2d6065('0x1a')][_0x2d6065('0x3c')]=_0x2de941['id'],db['Disposition'][_0x2d6065('0x5a')](_0x4171ca[_0x2d6065('0x1a')]);})['then'](respondWithResult(_0x54c3e6,null))[_0x177ffe('0x41')](handleError(_0x54c3e6,null));},exports[_0x29e34e('0x3e')]=function(_0x4738c4,_0x13e9cb){const _0x482a16=_0x29e34e;let _0x34e1e5={'raw':![],'where':{}};const _0x4d034a={},_0x40f961={'count':0x0,'rows':[]};return db['CmList'][_0x482a16('0x79')]({'where':{'id':_0x4738c4['params']['id']}})[_0x482a16('0x6d')](handleEntityNotFound(_0x13e9cb,null))[_0x482a16('0x6d')](function(_0x3c022c){const _0x9ed8d=_0x482a16;if(_0x3c022c)return _0x4d034a[_0x9ed8d('0x60')]=_[_0x9ed8d('0x74')](db['Disposition'][_0x9ed8d('0x3')]),_0x4d034a[_0x9ed8d('0x2f')]=_[_0x9ed8d('0x74')](_0x4738c4['query']),_0x4d034a[_0x9ed8d('0x2c')]=_[_0x9ed8d('0x59')](_0x4d034a[_0x9ed8d('0x60')],_0x4d034a[_0x9ed8d('0x2f')]),_0x34e1e5['attributes']=_[_0x9ed8d('0x59')](_0x4d034a[_0x9ed8d('0x60')],qs[_0x9ed8d('0x43')](_0x4738c4['query']['fields'])),_0x34e1e5['attributes']=_0x34e1e5[_0x9ed8d('0x11')][_0x9ed8d('0x7a')]?_0x34e1e5[_0x9ed8d('0x11')]:_0x4d034a[_0x9ed8d('0x60')],typeof _0x4738c4['query']['nolimit']===_0x9ed8d('0x2a')&&(_0x34e1e5[_0x9ed8d('0x52')]=qs[_0x9ed8d('0x52')](_0x4738c4[_0x9ed8d('0x2f')]['limit']),_0x34e1e5[_0x9ed8d('0x10')]=qs[_0x9ed8d('0x10')](_0x4738c4[_0x9ed8d('0x2f')][_0x9ed8d('0x10')])),_0x34e1e5[_0x9ed8d('0x2b')]=qs[_0x9ed8d('0xe')](_0x4738c4[_0x9ed8d('0x2f')][_0x9ed8d('0xe')]),_0x34e1e5['where']=qs['filters'](_[_0x9ed8d('0x1d')](_0x4738c4[_0x9ed8d('0x2f')],_0x4d034a['filters'])),_0x34e1e5[_0x9ed8d('0x45')][_0x9ed8d('0x3c')]=_0x3c022c['id'],_0x4738c4[_0x9ed8d('0x2f')][_0x9ed8d('0x4c')]&&(_0x34e1e5['where']=_[_0x9ed8d('0x4b')](_0x34e1e5[_0x9ed8d('0x45')],{[Op['or']]:_[_0x9ed8d('0x7d')](_0x34e1e5[_0x9ed8d('0x11')],function(_0x268ced){const _0x4cb57d=_0x9ed8d,_0x5b65ff={};return _0x5b65ff[_0x268ced]={[Op[_0x4cb57d('0x12')]]:'%'+_0x4738c4['query']['filter']+'%'},_0x5b65ff;})})),_0x34e1e5=_['merge']({},_0x34e1e5,_0x4738c4[_0x9ed8d('0x78')]),db[_0x9ed8d('0x51')][_0x9ed8d('0x18')]({'where':_0x34e1e5[_0x9ed8d('0x45')]})[_0x9ed8d('0x6d')](function(_0xafe2c3){const _0x2709a7=_0x9ed8d;return _0x40f961[_0x2709a7('0x18')]=_0xafe2c3,_0x4738c4['query'][_0x2709a7('0x3a')]&&(_0x34e1e5[_0x2709a7('0x42')]=[{'all':!![]}]),db[_0x2709a7('0x51')]['findAll'](_0x34e1e5);})[_0x9ed8d('0x6d')](function(_0x5bacd5){const _0x489509=_0x9ed8d;return _0x40f961[_0x489509('0x40')]=_0x5bacd5,_0x40f961;});})[_0x482a16('0x6d')](respondWithFilteredResult(_0x13e9cb,_0x34e1e5))[_0x482a16('0x41')](handleError(_0x13e9cb,null));},exports['removeDispositions']=function(_0x534e37,_0x397d6d){const _0x3d008f=_0x29e34e;return db[_0x3d008f('0x36')]['findOne']({'where':{'id':_0x534e37[_0x3d008f('0x70')]['id']}})[_0x3d008f('0x6d')](handleEntityNotFound(_0x397d6d,null))[_0x3d008f('0x6d')](function(_0x50b220){const _0x2fd4ef=_0x3d008f;if(_0x50b220)return _0x50b220[_0x2fd4ef('0x15')](_0x534e37['query']['ids']);})[_0x3d008f('0x6d')](respondWithStatusCode(_0x397d6d,null))[_0x3d008f('0x41')](handleError(_0x397d6d,null));},exports[_0x29e34e('0x3f')]=function(_0x1af14f,_0x3d6656){const _0x5c07fc=_0x29e34e;return db['CmList'][_0x5c07fc('0x79')]({'where':{'id':_0x1af14f['params']['id']}})['then'](handleEntityNotFound(_0x3d6656,null))['then'](function(_0x4bf07a){const _0x361afb=_0x5c07fc;if(_0x4bf07a){const _0x133841=[],_0x43049f={'success':[],'errors':[]};return db['CmContact'][_0x361afb('0x7b')]()[_0x361afb('0x6d')](function(_0x500218){const _0x5870d4=_0x361afb;_0x1af14f['body'][_0x5870d4('0x27')]&&_['isArray'](_0x1af14f['body'][_0x5870d4('0x27')])?_0x1af14f[_0x5870d4('0x1a')][_0x5870d4('0x27')][_0x5870d4('0x7a')]?_0x1af14f[_0x5870d4('0x1a')]['tags']=_0x1af14f[_0x5870d4('0x1a')][_0x5870d4('0x27')]['join'](';')+';':_0x1af14f[_0x5870d4('0x1a')][_0x5870d4('0x27')]=null:_0x1af14f[_0x5870d4('0x1a')][_0x5870d4('0x27')]=null;if(_0x1af14f[_0x5870d4('0x1a')]&&_[_0x5870d4('0x4e')](_0x1af14f[_0x5870d4('0x1a')])){for(let _0x47435a=0x0;_0x47435a<_0x1af14f['body']['length'];_0x47435a+=0x1){_0x1af14f[_0x5870d4('0x1a')][_0x47435a][_0x5870d4('0x3c')]=_0x1af14f[_0x5870d4('0x70')]['id'],_0x133841[_0x5870d4('0xa')](_0x1af14f['body'][_0x47435a]);}return Promise[_0x5870d4('0x0')](_0x133841['map'](_0xb75705=>{const _0x95042f=_0x5870d4;return db[_0x95042f('0xf')][_0x95042f('0x5a')](_['omit'](_0xb75705,[_0x95042f('0x55'),'id'])||{},{'fields':_[_0x95042f('0x74')](_0x500218),'raw':!![]})[_0x95042f('0x6d')](function(_0x3698be){const _0x1f19bf=_0x95042f;_0x43049f[_0x1f19bf('0x58')][_0x1f19bf('0xa')](_0x3698be[_0x1f19bf('0x49')]);})[_0x95042f('0x41')](function(_0x4269a1){const _0x51a03d=_0x95042f;_0x43049f[_0x51a03d('0x76')]['push']({'data':_0xb75705,'error':_0x4269a1[_0x51a03d('0x5e')]});});}))[_0x5870d4('0x6d')](function(){return _0x43049f;})[_0x5870d4('0x41')](function(_0x2e1871){return _0x2e1871;});}else _0x3d6656[_0x5870d4('0x57')](0x190)['json']({'message':_0x5870d4('0x54')});});}})[_0x5c07fc('0x6d')](respondWithResult(_0x3d6656,null))[_0x5c07fc('0x41')](handleError(_0x3d6656,null));},exports['getContacts']=function(_0x42d0a4,_0x3e9866){const _0x345c39=_0x29e34e;let _0x34be50;return db[_0x345c39('0x36')][_0x345c39('0x79')]({'where':{'id':_0x42d0a4[_0x345c39('0x70')]['id']},'include':[{'model':db[_0x345c39('0x67')],'as':'CustomFields'}]})['then'](handleEntityNotFound(_0x3e9866,null))[_0x345c39('0x6d')](function(_0x5060d7){const _0x5226e9=_0x345c39;if(_0x5060d7)return _0x34be50=_0x5060d7,db['CmContact'][_0x5226e9('0x3')];})[_0x345c39('0x6d')](function(_0x25ce87){const _0x5695b2=_0x345c39;if(_0x25ce87){let _0x12377d={};const _0x332021={};return _0x332021[_0x5695b2('0x60')]=_['concat'](_['keys'](_0x25ce87),_[_0x5695b2('0x7d')](_0x34be50[_0x5695b2('0x5b')],function(_0x393eea){const _0x4b5bae=_0x5695b2;return util['format'](_0x4b5bae('0x1b'),_0x393eea['id']);})),_0x332021[_0x5695b2('0x2f')]=_['keys'](_0x42d0a4[_0x5695b2('0x2f')]),_0x332021[_0x5695b2('0x2c')]=_[_0x5695b2('0x59')](_0x332021[_0x5695b2('0x60')],_0x332021['query']),_0x12377d[_0x5695b2('0x11')]=_['intersection'](_0x332021['model'],qs[_0x5695b2('0x43')](_0x42d0a4[_0x5695b2('0x2f')][_0x5695b2('0x43')])),_0x12377d[_0x5695b2('0x11')]=_0x12377d['attributes'][_0x5695b2('0x7a')]?_0x12377d[_0x5695b2('0x11')]:_0x332021['model'],typeof _0x42d0a4[_0x5695b2('0x2f')][_0x5695b2('0x1')]===_0x5695b2('0x2a')&&(_0x12377d[_0x5695b2('0x52')]=qs['limit'](_0x42d0a4[_0x5695b2('0x2f')][_0x5695b2('0x52')]),_0x12377d[_0x5695b2('0x10')]=qs[_0x5695b2('0x10')](_0x42d0a4[_0x5695b2('0x2f')][_0x5695b2('0x10')])),_0x12377d[_0x5695b2('0x2b')]=qs['sort'](_0x42d0a4['query'][_0x5695b2('0xe')]),_0x12377d[_0x5695b2('0x45')]=qs['filters'](_[_0x5695b2('0x1d')](_0x42d0a4[_0x5695b2('0x2f')],_0x332021[_0x5695b2('0x2c')])),_0x12377d[_0x5695b2('0x44')]=!![],_0x42d0a4[_0x5695b2('0x2f')][_0x5695b2('0x4c')]&&(_0x12377d['where']=_[_0x5695b2('0x4b')](_0x12377d['where'],{[Op['or']]:_[_0x5695b2('0x7d')](_0x12377d['attributes'],function(_0x98de6a){const _0x5c3aae=_0x5695b2,_0x3653f4={};return _0x3653f4[_0x98de6a]={[Op[_0x5c3aae('0x12')]]:'%'+_0x42d0a4['query'][_0x5c3aae('0x4c')]+'%'},_0x3653f4;})})),_0x12377d=_['merge']({},_0x12377d,_0x42d0a4['options']),_0x34be50[_0x5695b2('0x5c')](_0x12377d);}})[_0x345c39('0x6d')](respondWithResult(_0x3e9866,null))[_0x345c39('0x41')](handleError(_0x3e9866,null));},exports[_0x29e34e('0x48')]=function(_0x4b4623,_0x12458){const _0x3533c0=_0x29e34e;let _0x54b61e;return db['CmList'][_0x3533c0('0x79')]({'where':{'id':_0x4b4623[_0x3533c0('0x70')]['id']},'include':[{'model':db['CmCustomField'],'as':_0x3533c0('0x5b')}]})[_0x3533c0('0x6d')](handleEntityNotFound(_0x12458,null))[_0x3533c0('0x6d')](function(_0x24b549){const _0x2ca351=_0x3533c0;if(_0x24b549)return _0x54b61e=_0x24b549,db['CmContact'][_0x2ca351('0x3')];})['then'](function(_0x3f0e13){const _0x563ee0=_0x3533c0;if(_0x3f0e13){let _0x337706={};const _0x4cfe46={};return _0x4cfe46[_0x563ee0('0x60')]=_[_0x563ee0('0x23')](_[_0x563ee0('0x74')](_0x3f0e13),_['map'](_0x54b61e[_0x563ee0('0x5b')],function(_0x567d19){return util['format']('cf_%d',_0x567d19['id']);})),_0x4cfe46[_0x563ee0('0x2f')]=_[_0x563ee0('0x74')](_0x4b4623['query']),_0x4cfe46[_0x563ee0('0x2c')]=_['intersection'](_0x4cfe46[_0x563ee0('0x60')],_0x4cfe46[_0x563ee0('0x2f')]),_0x337706[_0x563ee0('0x11')]=_[_0x563ee0('0x59')](_0x4cfe46['model'],qs[_0x563ee0('0x43')](_0x4b4623[_0x563ee0('0x2f')]['fields'])),_0x337706[_0x563ee0('0x11')]=_0x337706['attributes'][_0x563ee0('0x7a')]?_0x337706['attributes']:_0x4cfe46[_0x563ee0('0x60')],typeof _0x4b4623[_0x563ee0('0x2f')][_0x563ee0('0x1')]===_0x563ee0('0x2a')&&(_0x337706[_0x563ee0('0x52')]=qs['limit'](_0x4b4623[_0x563ee0('0x2f')]['limit']),_0x337706[_0x563ee0('0x10')]=qs[_0x563ee0('0x10')](_0x4b4623[_0x563ee0('0x2f')][_0x563ee0('0x10')])),_0x337706[_0x563ee0('0x2b')]=qs['sort'](_0x4b4623[_0x563ee0('0x2f')]['sort']),_0x337706[_0x563ee0('0x45')]=qs[_0x563ee0('0x2c')](_[_0x563ee0('0x1d')](_0x4b4623[_0x563ee0('0x2f')],_0x4cfe46[_0x563ee0('0x2c')])),_0x337706[_0x563ee0('0x44')]=!![],_0x4b4623['query'][_0x563ee0('0x4c')]&&(_0x337706['where']=_['merge'](_0x337706[_0x563ee0('0x45')],{[Op['or']]:_[_0x563ee0('0x7d')](_0x337706['attributes'],function(_0x43864e){const _0x112a08=_0x563ee0,_0x4faa01={};return _0x4faa01[_0x43864e]={[Op[_0x112a08('0x12')]]:'%'+_0x4b4623[_0x112a08('0x2f')][_0x112a08('0x4c')]+'%'},_0x4faa01;})})),_0x337706=_[_0x563ee0('0x4b')]({},_0x337706,_0x4b4623['options']),_0x54b61e[_0x563ee0('0x5c')](_0x337706);}})[_0x3533c0('0x6d')](function(_0x1e733d){const _0x12459d=_0x3533c0;if(!_[_0x12459d('0x64')](_0x1e733d)){const _0x48e507=toCsv(_0x1e733d),_0x5654ed=Date[_0x12459d('0x65')]();return fs[_0x12459d('0x2')](util[_0x12459d('0x6f')](_0x12459d('0x9'),_0x54b61e['id'],_0x5654ed),_0x48e507),_0x12458[_0x12459d('0x6a')](_0x12459d('0x4f'),_0x12459d('0x6c')+util[_0x12459d('0x6f')]('list_%d_%s.csv',_0x54b61e['id'],_0x5654ed)),_0x12458['setHeader'](_0x12459d('0x2e'),_0x12459d('0x13')),_0x12458[_0x12459d('0x61')](util[_0x12459d('0x6f')](_0x12459d('0x9'),_0x54b61e['id'],_0x5654ed));}else return _0x12458[_0x12459d('0xc')](0xcc);})[_0x3533c0('0x41')](handleError(_0x12458,null));},exports[_0x29e34e('0x3b')]=function(_0x33a137,_0x1d965b){const _0x4b9451=_0x29e34e;let _0x511a74;return delete _0x33a137['body']['id'],db['CmList']['findOne']({'where':{'id':_0x33a137[_0x4b9451('0x70')]['id']}})['then'](handleEntityNotFound(_0x1d965b,null))['then'](function(_0x4463a2){const _0x1e027e=_0x4b9451;if(_0x4463a2)return db[_0x1e027e('0x20')][_0x1e027e('0x56')](function(_0x50da52){const _0x11471f=_0x1e027e;return db['CmCustomField'][_0x11471f('0x5a')](_0x33a137[_0x11471f('0x1a')],{'transaction':_0x50da52})[_0x11471f('0x6d')](function(_0x58559a){const _0x192953=_0x11471f;return _0x511a74=_0x58559a,_0x4463a2[_0x192953('0x63')](_0x58559a,{'transaction':_0x50da52});})[_0x11471f('0x6d')](function(){const _0x5b952b=_0x11471f,_0x266e17={'type':db[_0x5b952b('0x72')][_0x5b952b('0x62')],'transaction':_0x50da52};switch(_0x33a137[_0x5b952b('0x1a')][_0x5b952b('0x21')]){case _0x5b952b('0x53'):_0x266e17[_0x5b952b('0x21')]=db[_0x5b952b('0x72')][_0x5b952b('0x62')];break;case'number':_0x266e17[_0x5b952b('0x21')]=db[_0x5b952b('0x72')][_0x5b952b('0x31')];break;case _0x5b952b('0x75'):_0x266e17[_0x5b952b('0x21')]=db[_0x5b952b('0x72')]['BOOLEAN'],_0x266e17[_0x5b952b('0x7c')]=![];break;default:}return db[_0x5b952b('0x20')][_0x5b952b('0x4a')][_0x5b952b('0x77')](_0x5b952b('0x17'),util[_0x5b952b('0x6f')]('cf_%s',_0x511a74['id']),_0x266e17);})['then'](function(){return _0x511a74;});});})[_0x4b9451('0x6d')](respondWithResult(_0x1d965b,null))[_0x4b9451('0x41')](handleError(_0x1d965b,null));},exports[_0x29e34e('0x50')]=function(_0x49425b,_0xbcb80b){const _0x392b7c=_0x29e34e;let _0x324df5={};const _0x20057f={};return db[_0x392b7c('0x36')][_0x392b7c('0x79')]({'where':{'id':_0x49425b[_0x392b7c('0x70')]['id']}})['then'](handleEntityNotFound(_0xbcb80b,null))[_0x392b7c('0x6d')](function(_0x2cad20){const _0x205d86=_0x392b7c;if(_0x2cad20)return _0x20057f[_0x205d86('0x60')]=_[_0x205d86('0x74')](db[_0x205d86('0x67')][_0x205d86('0x3')]),_0x20057f[_0x205d86('0x2f')]=_[_0x205d86('0x74')](_0x49425b[_0x205d86('0x2f')]),_0x20057f[_0x205d86('0x2c')]=_[_0x205d86('0x59')](_0x20057f[_0x205d86('0x60')],_0x20057f['query']),_0x324df5['attributes']=_[_0x205d86('0x59')](_0x20057f[_0x205d86('0x60')],qs['fields'](_0x49425b['query'][_0x205d86('0x43')])),_0x324df5[_0x205d86('0x11')]=_0x324df5['attributes'][_0x205d86('0x7a')]?_0x324df5[_0x205d86('0x11')]:_0x20057f['model'],_0x324df5[_0x205d86('0x2b')]=qs[_0x205d86('0xe')](_0x49425b[_0x205d86('0x2f')]['sort']),_0x324df5['where']=qs['filters'](_[_0x205d86('0x1d')](_0x49425b[_0x205d86('0x2f')],_0x20057f[_0x205d86('0x2c')])),_0x324df5[_0x205d86('0x45')]=_[_0x205d86('0x4b')](_0x324df5[_0x205d86('0x45')],{[Op['or']]:[{'ListId':_0x2cad20['id']},{'ListId':null}]}),_0x49425b[_0x205d86('0x2f')]['filter']&&(_0x324df5[_0x205d86('0x45')]=_[_0x205d86('0x4b')](_0x324df5['where'],{[Op['or']]:_['map'](_0x324df5[_0x205d86('0x11')],function(_0xb6d857){const _0x5145b2=_0x205d86,_0x175251={};return _0x175251[_0xb6d857]={[Op[_0x5145b2('0x12')]]:'%'+_0x49425b['query']['filter']+'%'},_0x175251;})})),_0x324df5=_[_0x205d86('0x4b')]({},_0x324df5,_0x49425b[_0x205d86('0x78')]),db[_0x205d86('0x67')][_0x205d86('0x6')](_0x324df5);})['then'](respondWithResult(_0xbcb80b,null))[_0x392b7c('0x41')](handleError(_0xbcb80b,null));},exports[_0x29e34e('0x8')]=function(_0x4acf2e,_0x211ee2){const _0xcc9aa8=_0x29e34e;return db[_0xcc9aa8('0x36')]['findOne']({'where':{'id':_0x4acf2e['params']['id']}})[_0xcc9aa8('0x6d')](function(_0x2629dd){const _0x4d19d0=_0xcc9aa8;if(_0x2629dd)return _0x2629dd['addAgents'](_0x4acf2e['body'][_0x4d19d0('0x55')],{'through':_[_0x4d19d0('0x25')](_0x4acf2e[_0x4d19d0('0x1a')],[_0x4d19d0('0x55'),'id'])})[_0x4d19d0('0x6d')](function(_0x485fa5){const _0x1a79a1=_0x4d19d0;for(let _0x5316e7=0x0;_0x5316e7<_0x4acf2e[_0x1a79a1('0x1a')][_0x1a79a1('0x55')][_0x1a79a1('0x7a')];_0x5316e7+=0x1){socket[_0x1a79a1('0x66')]('userCmList:save',{'UserId':_0x4acf2e[_0x1a79a1('0x1a')]['ids'][_0x5316e7],'CmListId':_0x4acf2e[_0x1a79a1('0x70')]['id']});}return _0x485fa5;});})[_0xcc9aa8('0x6d')](respondWithResult(_0x211ee2,null))[_0xcc9aa8('0x41')](handleError(_0x211ee2,null));},exports[_0x29e34e('0x33')]=function(_0xe48c30,_0x333f14){const _0xbaafaf=_0x29e34e;return db[_0xbaafaf('0x36')][_0xbaafaf('0x79')]({'where':{'id':_0xe48c30[_0xbaafaf('0x70')]['id']}})[_0xbaafaf('0x6d')](handleEntityNotFound(_0x333f14,null))[_0xbaafaf('0x6d')](function(_0x3dd1a6){const _0x4c42ca=_0xbaafaf;if(_0x3dd1a6)return _0x3dd1a6[_0x4c42ca('0x33')](_0xe48c30[_0x4c42ca('0x2f')][_0x4c42ca('0x55')])[_0x4c42ca('0x6d')](function(){const _0x44cc17=_0x4c42ca;if(_[_0x44cc17('0x4e')](_0xe48c30[_0x44cc17('0x2f')]['ids']))for(let _0x312f83=0x0;_0x312f83<_0xe48c30[_0x44cc17('0x2f')]['ids'][_0x44cc17('0x7a')];_0x312f83+=0x1){socket[_0x44cc17('0x66')](_0x44cc17('0x34'),{'UserId':Number(_0xe48c30[_0x44cc17('0x2f')][_0x44cc17('0x55')][_0x312f83]),'CmListId':Number(_0xe48c30['params']['id'])});}else socket[_0x44cc17('0x66')](_0x44cc17('0x34'),{'UserId':Number(_0xe48c30[_0x44cc17('0x2f')]['ids']),'CmListId':Number(_0xe48c30['params']['id'])});});})[_0xbaafaf('0x6d')](respondWithStatusCode(_0x333f14,null))[_0xbaafaf('0x41')](handleError(_0x333f14,null));},exports[_0x29e34e('0x26')]=function(_0x3cfba5,_0x2ba581){const _0x1ba7ab=_0x29e34e;let _0x424968={};const _0x10ab7a={};let _0x1d72d9,_0x4b59ab;return db[_0x1ba7ab('0x36')][_0x1ba7ab('0x79')]({'where':{'id':_0x3cfba5[_0x1ba7ab('0x70')]['id']}})[_0x1ba7ab('0x6d')](handleEntityNotFound(_0x2ba581,null))[_0x1ba7ab('0x6d')](function(_0x2b62f6){const _0x1cdc2e=_0x1ba7ab;if(_0x2b62f6)return _0x1d72d9=_0x2b62f6,_0x10ab7a[_0x1cdc2e('0x60')]=_['keys'](db[_0x1cdc2e('0x4')]['rawAttributes']),_0x10ab7a[_0x1cdc2e('0x2f')]=_[_0x1cdc2e('0x74')](_0x3cfba5[_0x1cdc2e('0x2f')]),_0x10ab7a[_0x1cdc2e('0x2c')]=_[_0x1cdc2e('0x59')](_0x10ab7a[_0x1cdc2e('0x60')],_0x10ab7a['query']),_0x424968[_0x1cdc2e('0x11')]=_[_0x1cdc2e('0x59')](_0x10ab7a['model'],qs[_0x1cdc2e('0x43')](_0x3cfba5['query'][_0x1cdc2e('0x43')])),_0x424968[_0x1cdc2e('0x11')]=_0x424968[_0x1cdc2e('0x11')][_0x1cdc2e('0x7a')]?_0x424968[_0x1cdc2e('0x11')]:_0x10ab7a['model'],_0x424968['order']=qs[_0x1cdc2e('0xe')](_0x3cfba5[_0x1cdc2e('0x2f')]['sort']),_0x424968['where']=qs['filters'](_[_0x1cdc2e('0x1d')](_0x3cfba5[_0x1cdc2e('0x2f')],_0x10ab7a[_0x1cdc2e('0x2c')])),_0x3cfba5[_0x1cdc2e('0x2f')][_0x1cdc2e('0x4c')]&&(_0x424968[_0x1cdc2e('0x45')]=_[_0x1cdc2e('0x4b')](_0x424968[_0x1cdc2e('0x45')],{[Op['or']]:_[_0x1cdc2e('0x7d')](_0x424968['attributes'],function(_0x444183){const _0x564110=_0x1cdc2e,_0x2b76f7={};return _0x2b76f7[_0x444183]={[Op[_0x564110('0x12')]]:'%'+_0x3cfba5[_0x564110('0x2f')][_0x564110('0x4c')]+'%'},_0x2b76f7;})})),_0x424968=_[_0x1cdc2e('0x4b')]({},_0x424968,_0x3cfba5['options']),_0x1d72d9['getAgents'](_0x424968);})[_0x1ba7ab('0x6d')](function(_0x58a148){const _0x2b2ddd=_0x1ba7ab;if(_0x58a148)return _0x4b59ab=_0x58a148[_0x2b2ddd('0x7a')],typeof _0x3cfba5[_0x2b2ddd('0x2f')]['nolimit']===_0x2b2ddd('0x2a')&&(_0x424968[_0x2b2ddd('0x52')]=qs['limit'](_0x3cfba5['query'][_0x2b2ddd('0x52')]),_0x424968[_0x2b2ddd('0x10')]=qs[_0x2b2ddd('0x10')](_0x3cfba5[_0x2b2ddd('0x2f')][_0x2b2ddd('0x10')])),_0x1d72d9[_0x2b2ddd('0x26')](_0x424968);})[_0x1ba7ab('0x6d')](function(_0x3c0cce){if(_0x3c0cce)return _0x3c0cce?{'count':_0x4b59ab,'rows':_0x3c0cce}:null;})[_0x1ba7ab('0x6d')](respondWithResult(_0x2ba581,null))[_0x1ba7ab('0x41')](handleError(_0x2ba581,null));}; \ No newline at end of file +const a188_0x5956=['text/csv','limit','addCustomField','CmList','./cmList.socket','map','merge','params','key','Disposition','length','dataValues','getAgents','../../config/logger','keys','findOne','cf_%d','getContacts','user','autoAssociation','addCustomFields','show','util','success','then','nolimit','Lists','index','UserProfileResource','where','sequelize','raw','userCmList:remove','create','now','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','describe','all','model','rawAttributes','list_%d_%s.csv','findAll','queryInterface','push','INTEGER','omit','query','intersection','CmCustomField','cm_contacts','role','send','ids','sort','Content-Range','api','isEmpty','end','status','defaultValue','CmContact','options','error','like','catch','/tmp/list_%d_%s.csv','join','sendStatus','type','pick','addColumn','update','number','name','include','ListId','to-csv','transaction','rows','../../components/parsers/qs','includeAll','Malformed\x20request\x20syntax','removeDispositions','setHeader','addContacts','fields','emit','User','Content-type','undefined','destroy','format','filter','addAgents','body','TEXT','get','filters','tags','CustomFields','concat','../../rediscache','isArray','order','offset','errors','count','attachment;\x20filename=','download','getDispositions','json','attributes'];(function(_0x5419ef,_0xd059a3){const _0x595656=function(_0x34a26f){while(--_0x34a26f){_0x5419ef['push'](_0x5419ef['shift']());}};_0x595656(++_0xd059a3);}(a188_0x5956,0x1d0));const a188_0x34a2=function(_0x5419ef,_0xd059a3){_0x5419ef=_0x5419ef-0x11c;let _0x595656=a188_0x5956[_0x5419ef];return _0x595656;};const a188_0x41914c=a188_0x34a2;'use strict';const util=require(a188_0x41914c(0x122)),fs=require('fs'),_=require('lodash'),toCsv=require(a188_0x41914c(0x158)),{getSocket}=require(a188_0x41914c(0x171)),socket=getSocket(),qs=require(a188_0x41914c(0x15b)),logger=require(a188_0x41914c(0x189))(a188_0x41914c(0x143)),{db}=require('../../mysqldb'),{Op,DataTypes}=require('sequelize');require(a188_0x41914c(0x180))['register'](socket);function respondWithStatusCode(_0x21dbe5,_0x3a2324){return _0x3a2324=_0x3a2324||0xcc,function(_0x1e039d){const _0x57841a=a188_0x34a2;if(_0x1e039d)return _0x21dbe5[_0x57841a(0x14f)](_0x3a2324);return _0x21dbe5[_0x57841a(0x146)](_0x3a2324)[_0x57841a(0x145)]();};}function respondWithResult(_0x2a1563,_0x44c0d5){return _0x44c0d5=_0x44c0d5||0xc8,function(_0x254e0f){const _0x11c3a0=a188_0x34a2;if(_0x254e0f)return _0x2a1563[_0x11c3a0(0x146)](_0x44c0d5)['json'](_0x254e0f);};}function respondWithFilteredResult(_0x4d2478,_0x31a8cf){return function(_0x9296c8){const _0xaf71a1=a188_0x34a2;if(_0x9296c8){const _0x4c70aa=_0x9296c8[_0xaf71a1(0x176)],_0xe23337=_0x31a8cf['offset'];let _0x26194e=_0x31a8cf['offset']+_0x31a8cf['limit'],_0x419c1c;return _0x26194e>=_0x4c70aa?(_0x26194e=_0x4c70aa,_0x419c1c=0xc8):_0x419c1c=0xce,_0x4d2478['status'](_0x419c1c),_0x4d2478['set'](_0xaf71a1(0x142),_0xe23337+'-'+_0x26194e+'/'+_0x4c70aa)[_0xaf71a1(0x17a)](_0x9296c8);}return null;};}function saveUpdates(_0x424cf1){return function(_0x4e267a){const _0x384d34=a188_0x34a2;if(_0x4e267a)return _0x4e267a[_0x384d34(0x153)](_0x424cf1)['then'](function(_0x2c174c){return _0x2c174c;});return null;};}function removeEntity(_0x19ad24){return function(_0x5787b7){const _0x19cc05=a188_0x34a2;if(_0x5787b7)return _0x5787b7[_0x19cc05(0x166)]()[_0x19cc05(0x124)](function(){const _0x53f2ec=_0x19cc05,_0x230018=_0x5787b7[_0x53f2ec(0x16c)]({'plain':!![]}),_0xa38a50=_0x53f2ec(0x126);return db['UserProfileResource'][_0x53f2ec(0x166)]({'where':{'type':_0xa38a50,'resourceId':_0x230018['id']}})[_0x53f2ec(0x124)](function(){return _0x5787b7;});})[_0x19cc05(0x124)](function(){const _0x3305a1=_0x19cc05;_0x19ad24[_0x3305a1(0x146)](0xcc)[_0x3305a1(0x145)]();});};}function handleEntityNotFound(_0x2994a8){return function(_0x5334f9){return!_0x5334f9&&_0x2994a8['sendStatus'](0x194),_0x5334f9;};}function handleError(_0x266d07,_0x4a813b){return _0x4a813b=_0x4a813b||0x1f4,function(_0x7270dc){const _0x55a1a2=a188_0x34a2;logger[_0x55a1a2(0x14a)](_0x7270dc['stack']),_0x7270dc[_0x55a1a2(0x155)]&&delete _0x7270dc['name'],_0x266d07[_0x55a1a2(0x146)](_0x4a813b)[_0x55a1a2(0x13f)](_0x7270dc);};}exports[a188_0x41914c(0x127)]=function(_0x3d4684,_0x2c17af){const _0x406ddb=a188_0x41914c;let _0x386f30={};const _0x1a3464={},_0x224961={'count':0x0,'rows':[]},_0x4b62b7=_['map'](db['CmList']['rawAttributes'],function(_0x3dd1bd){const _0xd86c21=a188_0x34a2;return{'name':_0x3dd1bd['fieldName'],'type':_0x3dd1bd[_0xd86c21(0x150)][_0xd86c21(0x184)]};});_0x1a3464[_0x406ddb(0x132)]=_[_0x406ddb(0x181)](_0x4b62b7,_0x406ddb(0x155)),_0x1a3464['query']=_['keys'](_0x3d4684[_0x406ddb(0x13a)]),_0x1a3464[_0x406ddb(0x16d)]=_['intersection'](_0x1a3464['model'],_0x1a3464[_0x406ddb(0x13a)]),_0x386f30[_0x406ddb(0x17b)]=_['intersection'](_0x1a3464[_0x406ddb(0x132)],qs[_0x406ddb(0x161)](_0x3d4684[_0x406ddb(0x13a)][_0x406ddb(0x161)])),_0x386f30['attributes']=_0x386f30[_0x406ddb(0x17b)]['length']?_0x386f30[_0x406ddb(0x17b)]:_0x1a3464[_0x406ddb(0x132)];typeof _0x3d4684['query']['nolimit']===_0x406ddb(0x165)&&(_0x386f30[_0x406ddb(0x17d)]=qs['limit'](_0x3d4684[_0x406ddb(0x13a)]['limit']),_0x386f30['offset']=qs['offset'](_0x3d4684[_0x406ddb(0x13a)][_0x406ddb(0x174)]));_0x386f30[_0x406ddb(0x173)]=qs[_0x406ddb(0x141)](_0x3d4684[_0x406ddb(0x13a)][_0x406ddb(0x141)]),_0x386f30['where']=qs['filters'](_[_0x406ddb(0x151)](_0x3d4684[_0x406ddb(0x13a)],_0x1a3464[_0x406ddb(0x16d)]),_0x4b62b7);_0x3d4684[_0x406ddb(0x13a)]['filter']&&(_0x386f30[_0x406ddb(0x129)]=_[_0x406ddb(0x182)](_0x386f30[_0x406ddb(0x129)],{[Op['or']]:_[_0x406ddb(0x181)](_0x4b62b7,function(_0x32c1fa){const _0x5069e9=_0x406ddb;if(_0x32c1fa[_0x5069e9(0x150)]!=='VIRTUAL'){const _0x50d231={};return _0x50d231[_0x32c1fa[_0x5069e9(0x155)]]={[Op['like']]:'%'+_0x3d4684[_0x5069e9(0x13a)][_0x5069e9(0x168)]+'%'},_0x50d231;}})}));_0x386f30=_[_0x406ddb(0x182)]({},_0x386f30,_0x3d4684[_0x406ddb(0x149)]);const _0x565d7a={'where':_0x386f30[_0x406ddb(0x129)]};return db[_0x406ddb(0x17f)][_0x406ddb(0x176)](_0x565d7a)['then'](function(_0x4b5e4c){const _0x46251b=_0x406ddb;return _0x224961[_0x46251b(0x176)]=_0x4b5e4c,_0x3d4684[_0x46251b(0x13a)][_0x46251b(0x15c)]&&(_0x386f30[_0x46251b(0x156)]=[{'all':!![]}]),db[_0x46251b(0x17f)][_0x46251b(0x135)](_0x386f30);})['then'](function(_0x4067e5){const _0x449b15=_0x406ddb;return _0x224961[_0x449b15(0x15a)]=_0x4067e5,_0x224961;})[_0x406ddb(0x124)](respondWithFilteredResult(_0x2c17af,_0x386f30))[_0x406ddb(0x14c)](handleError(_0x2c17af,null));},exports[a188_0x41914c(0x121)]=function(_0x2023ff,_0x415c5b){const _0x4cfc35=a188_0x41914c;let _0x401ee6={'raw':![],'where':{'id':_0x2023ff[_0x4cfc35(0x183)]['id']}};const _0x3f4a82={};return _0x3f4a82[_0x4cfc35(0x132)]=_[_0x4cfc35(0x18a)](db[_0x4cfc35(0x17f)]['rawAttributes']),_0x3f4a82[_0x4cfc35(0x13a)]=_['keys'](_0x2023ff['query']),_0x3f4a82[_0x4cfc35(0x16d)]=_['intersection'](_0x3f4a82[_0x4cfc35(0x132)],_0x3f4a82[_0x4cfc35(0x13a)]),_0x401ee6[_0x4cfc35(0x17b)]=_[_0x4cfc35(0x13b)](_0x3f4a82[_0x4cfc35(0x132)],qs[_0x4cfc35(0x161)](_0x2023ff[_0x4cfc35(0x13a)][_0x4cfc35(0x161)])),_0x401ee6[_0x4cfc35(0x17b)]=_0x401ee6[_0x4cfc35(0x17b)][_0x4cfc35(0x186)]?_0x401ee6['attributes']:_0x3f4a82[_0x4cfc35(0x132)],_0x2023ff[_0x4cfc35(0x13a)][_0x4cfc35(0x15c)]&&(_0x401ee6[_0x4cfc35(0x156)]=[{'all':!![]}]),_0x401ee6=_[_0x4cfc35(0x182)]({},_0x401ee6,_0x2023ff[_0x4cfc35(0x149)]),db['CmList']['findOne'](_0x401ee6)['then'](handleEntityNotFound(_0x415c5b,null))['then'](respondWithResult(_0x415c5b,null))[_0x4cfc35(0x14c)](handleError(_0x415c5b,null));},exports[a188_0x41914c(0x12d)]=function(_0x5e70ec,_0x4d28ae){const _0x37fe06=a188_0x41914c;return db['CmList'][_0x37fe06(0x12d)](_0x5e70ec[_0x37fe06(0x16a)],{})[_0x37fe06(0x124)](function(_0x10d277){const _0x104fa1=_0x37fe06,_0x445a53=_0x5e70ec[_0x104fa1(0x11e)][_0x104fa1(0x16c)]({'plain':!![]});if(!_0x445a53)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x445a53[_0x104fa1(0x13e)]===_0x104fa1(0x11e)){const _0x890bcc=_0x10d277['get']({'plain':!![]}),_0x306502='Lists';return db['UserProfileSection'][_0x104fa1(0x18b)]({'where':{'name':_0x306502,'userProfileId':_0x445a53['userProfileId']},'raw':!![]})[_0x104fa1(0x124)](function(_0x318918){const _0x27570e=_0x104fa1;return _0x318918&&_0x318918[_0x27570e(0x11f)]===0x0?db[_0x27570e(0x128)]['create']({'name':_0x890bcc[_0x27570e(0x155)],'resourceId':_0x890bcc['id'],'type':_0x318918[_0x27570e(0x155)],'sectionId':_0x318918['id']},{})['then'](function(){return _0x10d277;}):_0x10d277;})[_0x104fa1(0x14c)](function(_0x5b5216){const _0x5e3725=_0x104fa1;logger['error'](_0x5e3725(0x12f),_0x5b5216);throw _0x5b5216;});}return _0x10d277;})[_0x37fe06(0x124)](respondWithResult(_0x4d28ae,0xc9))[_0x37fe06(0x14c)](handleError(_0x4d28ae,null));},exports[a188_0x41914c(0x153)]=function(_0x38ba93,_0x91d1d2){const _0x3953d6=a188_0x41914c;return _0x38ba93[_0x3953d6(0x16a)]['id']&&delete _0x38ba93[_0x3953d6(0x16a)]['id'],db['CmList'][_0x3953d6(0x18b)]({'where':{'id':_0x38ba93[_0x3953d6(0x183)]['id']}})['then'](handleEntityNotFound(_0x91d1d2,null))[_0x3953d6(0x124)](saveUpdates(_0x38ba93[_0x3953d6(0x16a)],null))[_0x3953d6(0x124)](respondWithResult(_0x91d1d2,null))[_0x3953d6(0x14c)](handleError(_0x91d1d2,null));},exports['destroy']=function(_0xa5958c,_0x25d2aa){const _0x2ba1d7=a188_0x41914c;return db['CmList'][_0x2ba1d7(0x18b)]({'where':{'id':_0xa5958c[_0x2ba1d7(0x183)]['id']}})[_0x2ba1d7(0x124)](handleEntityNotFound(_0x25d2aa,null))[_0x2ba1d7(0x124)](removeEntity(_0x25d2aa,null))[_0x2ba1d7(0x14c)](handleError(_0x25d2aa,null));},exports[a188_0x41914c(0x130)]=function(_0x4b1696,_0x2b7bb5){const _0x673b9f=a188_0x41914c;return db[_0x673b9f(0x17f)][_0x673b9f(0x130)]()[_0x673b9f(0x124)](respondWithResult(_0x2b7bb5,null))[_0x673b9f(0x14c)](handleError(_0x2b7bb5,null));},exports['addDisposition']=function(_0x28544a,_0x5d5ee1){const _0x5a99ec=a188_0x41914c;return _0x28544a['body']['id']&&delete _0x28544a[_0x5a99ec(0x16a)]['id'],db[_0x5a99ec(0x17f)][_0x5a99ec(0x18b)]({'where':{'id':_0x28544a[_0x5a99ec(0x183)]['id']}})[_0x5a99ec(0x124)](handleEntityNotFound(_0x5d5ee1,null))[_0x5a99ec(0x124)](function(_0x5962cc){const _0x367753=_0x5a99ec;if(_0x5962cc)return _0x28544a['body'][_0x367753(0x157)]=_0x5962cc['id'],db[_0x367753(0x185)][_0x367753(0x12d)](_0x28544a[_0x367753(0x16a)]);})[_0x5a99ec(0x124)](respondWithResult(_0x5d5ee1,null))['catch'](handleError(_0x5d5ee1,null));},exports[a188_0x41914c(0x179)]=function(_0x28f0f6,_0x2822f7){const _0x371de5=a188_0x41914c;let _0x4762a0={'raw':![],'where':{}};const _0x11e557={},_0x16c681={'count':0x0,'rows':[]};return db['CmList'][_0x371de5(0x18b)]({'where':{'id':_0x28f0f6['params']['id']}})[_0x371de5(0x124)](handleEntityNotFound(_0x2822f7,null))[_0x371de5(0x124)](function(_0x2c3a0f){const _0x5a0d46=_0x371de5;if(_0x2c3a0f)return _0x11e557[_0x5a0d46(0x132)]=_[_0x5a0d46(0x18a)](db[_0x5a0d46(0x185)][_0x5a0d46(0x133)]),_0x11e557[_0x5a0d46(0x13a)]=_['keys'](_0x28f0f6[_0x5a0d46(0x13a)]),_0x11e557[_0x5a0d46(0x16d)]=_[_0x5a0d46(0x13b)](_0x11e557[_0x5a0d46(0x132)],_0x11e557[_0x5a0d46(0x13a)]),_0x4762a0[_0x5a0d46(0x17b)]=_[_0x5a0d46(0x13b)](_0x11e557[_0x5a0d46(0x132)],qs[_0x5a0d46(0x161)](_0x28f0f6[_0x5a0d46(0x13a)][_0x5a0d46(0x161)])),_0x4762a0['attributes']=_0x4762a0[_0x5a0d46(0x17b)][_0x5a0d46(0x186)]?_0x4762a0[_0x5a0d46(0x17b)]:_0x11e557['model'],typeof _0x28f0f6['query'][_0x5a0d46(0x125)]===_0x5a0d46(0x165)&&(_0x4762a0[_0x5a0d46(0x17d)]=qs[_0x5a0d46(0x17d)](_0x28f0f6['query'][_0x5a0d46(0x17d)]),_0x4762a0['offset']=qs[_0x5a0d46(0x174)](_0x28f0f6[_0x5a0d46(0x13a)][_0x5a0d46(0x174)])),_0x4762a0[_0x5a0d46(0x173)]=qs[_0x5a0d46(0x141)](_0x28f0f6['query'][_0x5a0d46(0x141)]),_0x4762a0[_0x5a0d46(0x129)]=qs[_0x5a0d46(0x16d)](_['pick'](_0x28f0f6[_0x5a0d46(0x13a)],_0x11e557[_0x5a0d46(0x16d)])),_0x4762a0[_0x5a0d46(0x129)][_0x5a0d46(0x157)]=_0x2c3a0f['id'],_0x28f0f6[_0x5a0d46(0x13a)][_0x5a0d46(0x168)]&&(_0x4762a0['where']=_[_0x5a0d46(0x182)](_0x4762a0[_0x5a0d46(0x129)],{[Op['or']]:_[_0x5a0d46(0x181)](_0x4762a0[_0x5a0d46(0x17b)],function(_0x29fc31){const _0x376b0b=_0x5a0d46,_0x3ec24e={};return _0x3ec24e[_0x29fc31]={[Op[_0x376b0b(0x14b)]]:'%'+_0x28f0f6[_0x376b0b(0x13a)][_0x376b0b(0x168)]+'%'},_0x3ec24e;})})),_0x4762a0=_[_0x5a0d46(0x182)]({},_0x4762a0,_0x28f0f6['options']),db[_0x5a0d46(0x185)][_0x5a0d46(0x176)]({'where':_0x4762a0['where']})[_0x5a0d46(0x124)](function(_0x221e34){const _0x358741=_0x5a0d46;return _0x16c681['count']=_0x221e34,_0x28f0f6[_0x358741(0x13a)][_0x358741(0x15c)]&&(_0x4762a0[_0x358741(0x156)]=[{'all':!![]}]),db[_0x358741(0x185)][_0x358741(0x135)](_0x4762a0);})['then'](function(_0x517866){return _0x16c681['rows']=_0x517866,_0x16c681;});})[_0x371de5(0x124)](respondWithFilteredResult(_0x2822f7,_0x4762a0))[_0x371de5(0x14c)](handleError(_0x2822f7,null));},exports[a188_0x41914c(0x15e)]=function(_0x37cdeb,_0x49fbce){const _0x20f5bf=a188_0x41914c;return db['CmList'][_0x20f5bf(0x18b)]({'where':{'id':_0x37cdeb[_0x20f5bf(0x183)]['id']}})['then'](handleEntityNotFound(_0x49fbce,null))[_0x20f5bf(0x124)](function(_0x262c74){const _0x518205=_0x20f5bf;if(_0x262c74)return _0x262c74[_0x518205(0x15e)](_0x37cdeb['query'][_0x518205(0x140)]);})[_0x20f5bf(0x124)](respondWithStatusCode(_0x49fbce,null))[_0x20f5bf(0x14c)](handleError(_0x49fbce,null));},exports[a188_0x41914c(0x160)]=function(_0x1efc42,_0x5594ac){const _0x10b123=a188_0x41914c;return db['CmList'][_0x10b123(0x18b)]({'where':{'id':_0x1efc42[_0x10b123(0x183)]['id']}})[_0x10b123(0x124)](handleEntityNotFound(_0x5594ac,null))[_0x10b123(0x124)](function(_0x2a895d){const _0x29fe63=_0x10b123;if(_0x2a895d){const _0x19a6af=[],_0x106ea9={'success':[],'errors':[]};return db[_0x29fe63(0x148)][_0x29fe63(0x130)]()[_0x29fe63(0x124)](function(_0x44f483){const _0x203302=_0x29fe63;_0x1efc42[_0x203302(0x16a)][_0x203302(0x16e)]&&_[_0x203302(0x172)](_0x1efc42[_0x203302(0x16a)][_0x203302(0x16e)])?_0x1efc42[_0x203302(0x16a)]['tags'][_0x203302(0x186)]?_0x1efc42[_0x203302(0x16a)]['tags']=_0x1efc42['body'][_0x203302(0x16e)][_0x203302(0x14e)](';')+';':_0x1efc42['body']['tags']=null:_0x1efc42[_0x203302(0x16a)]['tags']=null;if(_0x1efc42[_0x203302(0x16a)]&&_[_0x203302(0x172)](_0x1efc42[_0x203302(0x16a)])){for(let _0x36e1d1=0x0;_0x36e1d1<_0x1efc42['body'][_0x203302(0x186)];_0x36e1d1+=0x1){_0x1efc42[_0x203302(0x16a)][_0x36e1d1][_0x203302(0x157)]=_0x1efc42[_0x203302(0x183)]['id'],_0x19a6af['push'](_0x1efc42[_0x203302(0x16a)][_0x36e1d1]);}return Promise[_0x203302(0x131)](_0x19a6af[_0x203302(0x181)](_0x14ba30=>{const _0x5c10c2=_0x203302;return db[_0x5c10c2(0x148)][_0x5c10c2(0x12d)](_[_0x5c10c2(0x139)](_0x14ba30,[_0x5c10c2(0x140),'id'])||{},{'fields':_['keys'](_0x44f483),'raw':!![]})[_0x5c10c2(0x124)](function(_0xa3953a){const _0x3220c8=_0x5c10c2;_0x106ea9[_0x3220c8(0x123)][_0x3220c8(0x137)](_0xa3953a[_0x3220c8(0x187)]);})[_0x5c10c2(0x14c)](function(_0x270eaf){const _0xaf4c8f=_0x5c10c2;_0x106ea9[_0xaf4c8f(0x175)]['push']({'data':_0x14ba30,'error':_0x270eaf['message']});});}))[_0x203302(0x124)](function(){return _0x106ea9;})[_0x203302(0x14c)](function(_0x2f76ab){return _0x2f76ab;});}else _0x5594ac[_0x203302(0x146)](0x190)[_0x203302(0x17a)]({'message':_0x203302(0x15d)});});}})[_0x10b123(0x124)](respondWithResult(_0x5594ac,null))[_0x10b123(0x14c)](handleError(_0x5594ac,null));},exports[a188_0x41914c(0x11d)]=function(_0x31af8c,_0xa13a09){const _0x330023=a188_0x41914c;let _0x36bf3d;return db[_0x330023(0x17f)][_0x330023(0x18b)]({'where':{'id':_0x31af8c['params']['id']},'include':[{'model':db['CmCustomField'],'as':'CustomFields'}]})[_0x330023(0x124)](handleEntityNotFound(_0xa13a09,null))[_0x330023(0x124)](function(_0x5bcbeb){const _0x567d15=_0x330023;if(_0x5bcbeb)return _0x36bf3d=_0x5bcbeb,db[_0x567d15(0x148)]['rawAttributes'];})['then'](function(_0xb3c5e3){const _0x3bc725=_0x330023;if(_0xb3c5e3){let _0x378125={};const _0x3b812a={};return _0x3b812a[_0x3bc725(0x132)]=_[_0x3bc725(0x170)](_[_0x3bc725(0x18a)](_0xb3c5e3),_[_0x3bc725(0x181)](_0x36bf3d[_0x3bc725(0x16f)],function(_0x3ab84a){const _0x264d77=_0x3bc725;return util['format'](_0x264d77(0x11c),_0x3ab84a['id']);})),_0x3b812a[_0x3bc725(0x13a)]=_[_0x3bc725(0x18a)](_0x31af8c[_0x3bc725(0x13a)]),_0x3b812a[_0x3bc725(0x16d)]=_[_0x3bc725(0x13b)](_0x3b812a[_0x3bc725(0x132)],_0x3b812a[_0x3bc725(0x13a)]),_0x378125[_0x3bc725(0x17b)]=_[_0x3bc725(0x13b)](_0x3b812a[_0x3bc725(0x132)],qs[_0x3bc725(0x161)](_0x31af8c[_0x3bc725(0x13a)][_0x3bc725(0x161)])),_0x378125[_0x3bc725(0x17b)]=_0x378125[_0x3bc725(0x17b)]['length']?_0x378125['attributes']:_0x3b812a[_0x3bc725(0x132)],typeof _0x31af8c[_0x3bc725(0x13a)][_0x3bc725(0x125)]===_0x3bc725(0x165)&&(_0x378125['limit']=qs['limit'](_0x31af8c['query']['limit']),_0x378125[_0x3bc725(0x174)]=qs[_0x3bc725(0x174)](_0x31af8c[_0x3bc725(0x13a)]['offset'])),_0x378125[_0x3bc725(0x173)]=qs['sort'](_0x31af8c['query']['sort']),_0x378125[_0x3bc725(0x129)]=qs['filters'](_[_0x3bc725(0x151)](_0x31af8c['query'],_0x3b812a[_0x3bc725(0x16d)])),_0x378125['raw']=!![],_0x31af8c['query'][_0x3bc725(0x168)]&&(_0x378125[_0x3bc725(0x129)]=_[_0x3bc725(0x182)](_0x378125[_0x3bc725(0x129)],{[Op['or']]:_[_0x3bc725(0x181)](_0x378125['attributes'],function(_0x25e5c7){const _0x2fac1d=_0x3bc725,_0x54cb4d={};return _0x54cb4d[_0x25e5c7]={[Op[_0x2fac1d(0x14b)]]:'%'+_0x31af8c['query'][_0x2fac1d(0x168)]+'%'},_0x54cb4d;})})),_0x378125=_[_0x3bc725(0x182)]({},_0x378125,_0x31af8c[_0x3bc725(0x149)]),_0x36bf3d[_0x3bc725(0x11d)](_0x378125);}})[_0x330023(0x124)](respondWithResult(_0xa13a09,null))[_0x330023(0x14c)](handleError(_0xa13a09,null));},exports['getContactsCsv']=function(_0x386425,_0x583f9e){const _0x52fdec=a188_0x41914c;let _0x46247c;return db[_0x52fdec(0x17f)][_0x52fdec(0x18b)]({'where':{'id':_0x386425[_0x52fdec(0x183)]['id']},'include':[{'model':db[_0x52fdec(0x13c)],'as':_0x52fdec(0x16f)}]})[_0x52fdec(0x124)](handleEntityNotFound(_0x583f9e,null))[_0x52fdec(0x124)](function(_0xc37819){const _0x352da0=_0x52fdec;if(_0xc37819)return _0x46247c=_0xc37819,db[_0x352da0(0x148)][_0x352da0(0x133)];})[_0x52fdec(0x124)](function(_0x1c2f25){const _0x26f10c=_0x52fdec;if(_0x1c2f25){let _0x33bcb0={};const _0x31d987={};return _0x31d987[_0x26f10c(0x132)]=_[_0x26f10c(0x170)](_['keys'](_0x1c2f25),_[_0x26f10c(0x181)](_0x46247c['CustomFields'],function(_0x19719a){const _0x2bc023=_0x26f10c;return util[_0x2bc023(0x167)]('cf_%d',_0x19719a['id']);})),_0x31d987[_0x26f10c(0x13a)]=_[_0x26f10c(0x18a)](_0x386425[_0x26f10c(0x13a)]),_0x31d987[_0x26f10c(0x16d)]=_[_0x26f10c(0x13b)](_0x31d987['model'],_0x31d987[_0x26f10c(0x13a)]),_0x33bcb0[_0x26f10c(0x17b)]=_[_0x26f10c(0x13b)](_0x31d987[_0x26f10c(0x132)],qs[_0x26f10c(0x161)](_0x386425[_0x26f10c(0x13a)][_0x26f10c(0x161)])),_0x33bcb0[_0x26f10c(0x17b)]=_0x33bcb0[_0x26f10c(0x17b)][_0x26f10c(0x186)]?_0x33bcb0[_0x26f10c(0x17b)]:_0x31d987[_0x26f10c(0x132)],typeof _0x386425[_0x26f10c(0x13a)][_0x26f10c(0x125)]==='undefined'&&(_0x33bcb0[_0x26f10c(0x17d)]=qs['limit'](_0x386425[_0x26f10c(0x13a)]['limit']),_0x33bcb0[_0x26f10c(0x174)]=qs[_0x26f10c(0x174)](_0x386425[_0x26f10c(0x13a)][_0x26f10c(0x174)])),_0x33bcb0[_0x26f10c(0x173)]=qs[_0x26f10c(0x141)](_0x386425[_0x26f10c(0x13a)]['sort']),_0x33bcb0[_0x26f10c(0x129)]=qs[_0x26f10c(0x16d)](_[_0x26f10c(0x151)](_0x386425['query'],_0x31d987[_0x26f10c(0x16d)])),_0x33bcb0[_0x26f10c(0x12b)]=!![],_0x386425[_0x26f10c(0x13a)]['filter']&&(_0x33bcb0['where']=_[_0x26f10c(0x182)](_0x33bcb0[_0x26f10c(0x129)],{[Op['or']]:_['map'](_0x33bcb0['attributes'],function(_0x30f5a1){const _0x396c1a=_0x26f10c,_0x115936={};return _0x115936[_0x30f5a1]={[Op['like']]:'%'+_0x386425[_0x396c1a(0x13a)]['filter']+'%'},_0x115936;})})),_0x33bcb0=_[_0x26f10c(0x182)]({},_0x33bcb0,_0x386425['options']),_0x46247c[_0x26f10c(0x11d)](_0x33bcb0);}})[_0x52fdec(0x124)](function(_0x2b2cd0){const _0x41eb77=_0x52fdec;if(!_[_0x41eb77(0x144)](_0x2b2cd0)){const _0x4e7548=toCsv(_0x2b2cd0),_0x55830c=Date[_0x41eb77(0x12e)]();return fs['writeFileSync'](util[_0x41eb77(0x167)](_0x41eb77(0x14d),_0x46247c['id'],_0x55830c),_0x4e7548),_0x583f9e[_0x41eb77(0x15f)]('Content-disposition',_0x41eb77(0x177)+util[_0x41eb77(0x167)](_0x41eb77(0x134),_0x46247c['id'],_0x55830c)),_0x583f9e[_0x41eb77(0x15f)](_0x41eb77(0x164),_0x41eb77(0x17c)),_0x583f9e[_0x41eb77(0x178)](util['format'](_0x41eb77(0x14d),_0x46247c['id'],_0x55830c));}else return _0x583f9e[_0x41eb77(0x14f)](0xcc);})[_0x52fdec(0x14c)](handleError(_0x583f9e,null));},exports[a188_0x41914c(0x17e)]=function(_0x3ca8aa,_0x2af22d){const _0x214223=a188_0x41914c;let _0x3c7ee2;return delete _0x3ca8aa[_0x214223(0x16a)]['id'],db['CmList'][_0x214223(0x18b)]({'where':{'id':_0x3ca8aa[_0x214223(0x183)]['id']}})['then'](handleEntityNotFound(_0x2af22d,null))[_0x214223(0x124)](function(_0x541944){const _0x534c77=_0x214223;if(_0x541944)return db[_0x534c77(0x12a)][_0x534c77(0x159)](function(_0x14ccc3){const _0x1b9b2f=_0x534c77;return db[_0x1b9b2f(0x13c)]['create'](_0x3ca8aa[_0x1b9b2f(0x16a)],{'transaction':_0x14ccc3})[_0x1b9b2f(0x124)](function(_0x4a110c){const _0x522f05=_0x1b9b2f;return _0x3c7ee2=_0x4a110c,_0x541944[_0x522f05(0x120)](_0x4a110c,{'transaction':_0x14ccc3});})[_0x1b9b2f(0x124)](function(){const _0x571ba6=_0x1b9b2f,_0x4e288d={'type':DataTypes[_0x571ba6(0x16b)],'transaction':_0x14ccc3};switch(_0x3ca8aa[_0x571ba6(0x16a)]['type']){case'text':_0x4e288d[_0x571ba6(0x150)]=DataTypes['TEXT'];break;case _0x571ba6(0x154):_0x4e288d[_0x571ba6(0x150)]=DataTypes[_0x571ba6(0x138)];break;case'switch':_0x4e288d['type']=DataTypes['BOOLEAN'],_0x4e288d[_0x571ba6(0x147)]=![];break;default:}return db['sequelize'][_0x571ba6(0x136)][_0x571ba6(0x152)](_0x571ba6(0x13d),util[_0x571ba6(0x167)]('cf_%s',_0x3c7ee2['id']),_0x4e288d);})[_0x1b9b2f(0x124)](function(){return _0x3c7ee2;});});})['then'](respondWithResult(_0x2af22d,null))[_0x214223(0x14c)](handleError(_0x2af22d,null));},exports['getCustomFields']=function(_0x48defc,_0x26de11){const _0x3d879a=a188_0x41914c;let _0x59d527={};const _0x4d86e3={};return db[_0x3d879a(0x17f)][_0x3d879a(0x18b)]({'where':{'id':_0x48defc[_0x3d879a(0x183)]['id']}})['then'](handleEntityNotFound(_0x26de11,null))[_0x3d879a(0x124)](function(_0x2b93dc){const _0x2a9004=_0x3d879a;if(_0x2b93dc){_0x4d86e3['model']=_[_0x2a9004(0x18a)](db[_0x2a9004(0x13c)][_0x2a9004(0x133)]),_0x4d86e3[_0x2a9004(0x13a)]=_[_0x2a9004(0x18a)](_0x48defc['query']),_0x4d86e3['filters']=_[_0x2a9004(0x13b)](_0x4d86e3[_0x2a9004(0x132)],_0x4d86e3['query']),_0x59d527['attributes']=_[_0x2a9004(0x13b)](_0x4d86e3[_0x2a9004(0x132)],qs[_0x2a9004(0x161)](_0x48defc[_0x2a9004(0x13a)][_0x2a9004(0x161)])),_0x59d527[_0x2a9004(0x17b)]=_0x59d527['attributes']['length']?_0x59d527[_0x2a9004(0x17b)]:_0x4d86e3[_0x2a9004(0x132)],_0x59d527['order']=qs['sort'](_0x48defc[_0x2a9004(0x13a)]['sort']),_0x59d527[_0x2a9004(0x129)]=qs['filters'](_['pick'](_0x48defc[_0x2a9004(0x13a)],_0x4d86e3[_0x2a9004(0x16d)]));let _0x196273={'ListId':null};return _0x2b93dc['id']&&(_0x196273={'ListId':_0x2b93dc['id']}),_0x59d527[_0x2a9004(0x129)]=_[_0x2a9004(0x182)](_0x59d527[_0x2a9004(0x129)],_0x196273),_0x48defc[_0x2a9004(0x13a)][_0x2a9004(0x168)]&&(_0x59d527[_0x2a9004(0x129)]=_[_0x2a9004(0x182)](_0x59d527['where'],{[Op['or']]:_[_0x2a9004(0x181)](_0x59d527[_0x2a9004(0x17b)],function(_0x163b71){const _0x4c8720=_0x2a9004,_0x3ca253={};return _0x3ca253[_0x163b71]={[Op[_0x4c8720(0x14b)]]:'%'+_0x48defc[_0x4c8720(0x13a)][_0x4c8720(0x168)]+'%'},_0x3ca253;})})),_0x59d527=_[_0x2a9004(0x182)]({},_0x59d527,_0x48defc['options']),db['CmCustomField']['findAndCountAll'](_0x59d527);}})['then'](respondWithResult(_0x26de11,null))['catch'](handleError(_0x26de11,null));},exports[a188_0x41914c(0x169)]=function(_0x5cc02c,_0x18b7c0){const _0xbe995e=a188_0x41914c;return db[_0xbe995e(0x17f)]['findOne']({'where':{'id':_0x5cc02c[_0xbe995e(0x183)]['id']}})[_0xbe995e(0x124)](function(_0x38c5f9){const _0x1d4983=_0xbe995e;if(_0x38c5f9)return _0x38c5f9[_0x1d4983(0x169)](_0x5cc02c[_0x1d4983(0x16a)][_0x1d4983(0x140)],{'through':_[_0x1d4983(0x139)](_0x5cc02c['body'],[_0x1d4983(0x140),'id'])})[_0x1d4983(0x124)](function(_0x3b119c){const _0x27bca2=_0x1d4983;for(let _0x637b3=0x0;_0x637b3<_0x5cc02c[_0x27bca2(0x16a)][_0x27bca2(0x140)][_0x27bca2(0x186)];_0x637b3+=0x1){socket['emit']('userCmList:save',{'UserId':_0x5cc02c['body']['ids'][_0x637b3],'CmListId':_0x5cc02c[_0x27bca2(0x183)]['id']});}return _0x3b119c;});})[_0xbe995e(0x124)](respondWithResult(_0x18b7c0,null))['catch'](handleError(_0x18b7c0,null));},exports['removeAgents']=function(_0x3557f1,_0x140103){const _0x137325=a188_0x41914c;return db[_0x137325(0x17f)][_0x137325(0x18b)]({'where':{'id':_0x3557f1[_0x137325(0x183)]['id']}})['then'](handleEntityNotFound(_0x140103,null))[_0x137325(0x124)](function(_0x439fda){const _0x133a29=_0x137325;if(_0x439fda)return _0x439fda['removeAgents'](_0x3557f1[_0x133a29(0x13a)][_0x133a29(0x140)])[_0x133a29(0x124)](function(){const _0xcb20e9=_0x133a29;if(_[_0xcb20e9(0x172)](_0x3557f1[_0xcb20e9(0x13a)][_0xcb20e9(0x140)]))for(let _0x5612b0=0x0;_0x5612b0<_0x3557f1[_0xcb20e9(0x13a)]['ids'][_0xcb20e9(0x186)];_0x5612b0+=0x1){socket[_0xcb20e9(0x162)](_0xcb20e9(0x12c),{'UserId':Number(_0x3557f1[_0xcb20e9(0x13a)][_0xcb20e9(0x140)][_0x5612b0]),'CmListId':Number(_0x3557f1['params']['id'])});}else socket[_0xcb20e9(0x162)](_0xcb20e9(0x12c),{'UserId':Number(_0x3557f1[_0xcb20e9(0x13a)][_0xcb20e9(0x140)]),'CmListId':Number(_0x3557f1[_0xcb20e9(0x183)]['id'])});});})[_0x137325(0x124)](respondWithStatusCode(_0x140103,null))[_0x137325(0x14c)](handleError(_0x140103,null));},exports[a188_0x41914c(0x188)]=function(_0x175b7b,_0x5275d2){const _0x2a9a6d=a188_0x41914c;let _0x4ab258={};const _0x554004={};let _0x4a09c2,_0x2a46f2;return db[_0x2a9a6d(0x17f)][_0x2a9a6d(0x18b)]({'where':{'id':_0x175b7b[_0x2a9a6d(0x183)]['id']}})['then'](handleEntityNotFound(_0x5275d2,null))[_0x2a9a6d(0x124)](function(_0xbad208){const _0x548968=_0x2a9a6d;if(_0xbad208)return _0x4a09c2=_0xbad208,_0x554004['model']=_['keys'](db[_0x548968(0x163)][_0x548968(0x133)]),_0x554004['query']=_[_0x548968(0x18a)](_0x175b7b[_0x548968(0x13a)]),_0x554004[_0x548968(0x16d)]=_[_0x548968(0x13b)](_0x554004[_0x548968(0x132)],_0x554004[_0x548968(0x13a)]),_0x4ab258[_0x548968(0x17b)]=_['intersection'](_0x554004[_0x548968(0x132)],qs[_0x548968(0x161)](_0x175b7b[_0x548968(0x13a)][_0x548968(0x161)])),_0x4ab258[_0x548968(0x17b)]=_0x4ab258['attributes']['length']?_0x4ab258['attributes']:_0x554004[_0x548968(0x132)],_0x4ab258['order']=qs['sort'](_0x175b7b[_0x548968(0x13a)][_0x548968(0x141)]),_0x4ab258[_0x548968(0x129)]=qs[_0x548968(0x16d)](_[_0x548968(0x151)](_0x175b7b[_0x548968(0x13a)],_0x554004[_0x548968(0x16d)])),_0x175b7b[_0x548968(0x13a)]['filter']&&(_0x4ab258[_0x548968(0x129)]=_['merge'](_0x4ab258[_0x548968(0x129)],{[Op['or']]:_[_0x548968(0x181)](_0x4ab258[_0x548968(0x17b)],function(_0x489852){const _0x20e768=_0x548968,_0x35ee62={};return _0x35ee62[_0x489852]={[Op[_0x20e768(0x14b)]]:'%'+_0x175b7b['query'][_0x20e768(0x168)]+'%'},_0x35ee62;})})),_0x4ab258=_['merge']({},_0x4ab258,_0x175b7b['options']),_0x4a09c2['getAgents'](_0x4ab258);})['then'](function(_0x2a1d48){const _0x371346=_0x2a9a6d;if(_0x2a1d48)return _0x2a46f2=_0x2a1d48[_0x371346(0x186)],typeof _0x175b7b['query'][_0x371346(0x125)]==='undefined'&&(_0x4ab258[_0x371346(0x17d)]=qs['limit'](_0x175b7b[_0x371346(0x13a)]['limit']),_0x4ab258[_0x371346(0x174)]=qs[_0x371346(0x174)](_0x175b7b[_0x371346(0x13a)][_0x371346(0x174)])),_0x4a09c2[_0x371346(0x188)](_0x4ab258);})[_0x2a9a6d(0x124)](function(_0x119135){if(_0x119135)return _0x119135?{'count':_0x2a46f2,'rows':_0x119135}:null;})[_0x2a9a6d(0x124)](respondWithResult(_0x5275d2,null))[_0x2a9a6d(0x14c)](handleError(_0x5275d2,null));}; \ No newline at end of file diff --git a/server/api/cmList/cmList.events.js b/server/api/cmList/cmList.events.js index ecb42b1..04581ee 100644 --- a/server/api/cmList/cmList.events.js +++ b/server/api/cmList/cmList.events.js @@ -1 +1 @@ -const a158_0x311b=['addHook','undefined','update','events','CmList','emit','setMaxListeners','remove','../../mysqldb','save','exports'];(function(_0x591d7a,_0x311b97){const _0x477c13=function(_0x356695){while(--_0x356695){_0x591d7a['push'](_0x591d7a['shift']());}};_0x477c13(++_0x311b97);}(a158_0x311b,0xf7));const a158_0x477c=function(_0x591d7a,_0x311b97){_0x591d7a=_0x591d7a-0x0;let _0x477c13=a158_0x311b[_0x591d7a];return _0x477c13;};const _0xa4349a=a158_0x477c;'use strict';const EventEmitter=require(_0xa4349a('0x9')),CmList=require(_0xa4349a('0x3'))['db'][_0xa4349a('0xa')],CmListEvents=new EventEmitter();CmListEvents[_0xa4349a('0x1')](0x0);const events={'afterCreate':_0xa4349a('0x4'),'afterUpdate':_0xa4349a('0x8'),'afterDestroy':_0xa4349a('0x2')};function emitEvent(_0x356695){return function(_0xcbde1e){const _0xdf8296=a158_0x477c;CmListEvents['emit'](_0x356695+':'+_0xcbde1e['id'],_0xcbde1e),CmListEvents[_0xdf8296('0x0')](_0x356695,_0xcbde1e);};}for(const e in events){if(typeof events[e]!==_0xa4349a('0x7')){const event=events[e];CmList[_0xa4349a('0x6')](e,emitEvent(event));}}module[_0xa4349a('0x5')]=CmListEvents; \ No newline at end of file +const a189_0x423d=['events','addHook','emit','update','../../mysqldb','setMaxListeners','exports','undefined','remove'];(function(_0x5459a0,_0x45be60){const _0x423d3e=function(_0x21966f){while(--_0x21966f){_0x5459a0['push'](_0x5459a0['shift']());}};_0x423d3e(++_0x45be60);}(a189_0x423d,0x178));const a189_0x2196=function(_0x5459a0,_0x45be60){_0x5459a0=_0x5459a0-0xe3;let _0x423d3e=a189_0x423d[_0x5459a0];return _0x423d3e;};const a189_0x43a913=a189_0x2196;'use strict';const EventEmitter=require(a189_0x43a913(0xe5)),CmList=require(a189_0x43a913(0xe9))['db']['CmList'],CmListEvents=new EventEmitter();CmListEvents[a189_0x43a913(0xea)](0x0);const events={'afterCreate':'save','afterUpdate':a189_0x43a913(0xe8),'afterDestroy':a189_0x43a913(0xe4)};function emitEvent(_0x3f124c){return function(_0x5b35d2){const _0x5993a8=a189_0x2196;CmListEvents['emit'](_0x3f124c+':'+_0x5b35d2['id'],_0x5b35d2),CmListEvents[_0x5993a8(0xe7)](_0x3f124c,_0x5b35d2);};}for(const e in events){if(typeof events[e]!==a189_0x43a913(0xe3)){const event=events[e];CmList[a189_0x43a913(0xe6)](e,emitEvent(event));}}module[a189_0x43a913(0xeb)]=CmListEvents; \ No newline at end of file diff --git a/server/api/cmList/cmList.model.js b/server/api/cmList/cmList.model.js index 31159c5..153489b 100644 --- a/server/api/cmList/cmList.model.js +++ b/server/api/cmList/cmList.model.js @@ -1 +1 @@ -const a159_0x2740=['exports','cm_lists','define','./cmList.attributes'];(function(_0xe10292,_0x2740ca){const _0x1186be=function(_0x294a57){while(--_0x294a57){_0xe10292['push'](_0xe10292['shift']());}};_0x1186be(++_0x2740ca);}(a159_0x2740,0xca));const a159_0x1186=function(_0xe10292,_0x2740ca){_0xe10292=_0xe10292-0x0;let _0x1186be=a159_0x2740[_0xe10292];return _0x1186be;};const _0x281acd=a159_0x1186;'use strict';const attributes=require(_0x281acd('0x1'));module[_0x281acd('0x2')]=function(_0x294a57){const _0x501ab1=_0x281acd,_0xdd9645=_0x294a57[_0x501ab1('0x0')]('CmList',attributes,{'tableName':_0x501ab1('0x3'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0xdd9645;}; \ No newline at end of file +const a190_0x1be5=['sequelize','./cmList.attributes','init','exports'];(function(_0x57687e,_0x36ed8e){const _0x1be5b9=function(_0x3f19ab){while(--_0x3f19ab){_0x57687e['push'](_0x57687e['shift']());}};_0x1be5b9(++_0x36ed8e);}(a190_0x1be5,0x163));const a190_0x3f19=function(_0x57687e,_0x36ed8e){_0x57687e=_0x57687e-0x8d;let _0x1be5b9=a190_0x1be5[_0x57687e];return _0x1be5b9;};const a190_0x5aadad=a190_0x3f19;'use strict';const {Model}=require(a190_0x5aadad(0x8e)),{attributes}=require(a190_0x5aadad(0x8f)),{options}=require('./cmList.options');class CmList extends Model{}function init(_0x48d595,_0x515f02){const _0x45f070=a190_0x5aadad,_0x422ecf=options(_0x48d595),_0x2c9384=typeof _0x515f02==='function'?_0x515f02(_0x422ecf):_0x422ecf;return CmList[_0x45f070(0x90)](attributes,_0x2c9384),CmList;}module[a190_0x5aadad(0x8d)]['CmList']=CmList,module['exports'][a190_0x5aadad(0x90)]=init; \ No newline at end of file diff --git a/server/api/cmList/cmList.options.js b/server/api/cmList/cmList.options.js new file mode 100644 index 0000000..5a69daf --- /dev/null +++ b/server/api/cmList/cmList.options.js @@ -0,0 +1 @@ +var a191_0x1d82=['options','cm_lists','exports'];(function(_0x23a4e2,_0x3557da){var _0x1d820e=function(_0x32f1e5){while(--_0x32f1e5){_0x23a4e2['push'](_0x23a4e2['shift']());}};_0x1d820e(++_0x3557da);}(a191_0x1d82,0xdc));var a191_0x32f1=function(_0x23a4e2,_0x3557da){_0x23a4e2=_0x23a4e2-0x132;var _0x1d820e=a191_0x1d82[_0x23a4e2];return _0x1d820e;};var a191_0x401738=a191_0x32f1;function options(_0xe8316){var _0x27d9d9=a191_0x32f1;return{'sequelize':_0xe8316,'tableName':_0x27d9d9(0x132),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a191_0x401738(0x133)][a191_0x401738(0x134)]=options; \ No newline at end of file diff --git a/server/api/cmList/cmList.rpc.js b/server/api/cmList/cmList.rpc.js index ce9ce76..aba0e1e 100644 --- a/server/api/cmList/cmList.rpc.js +++ b/server/api/cmList/cmList.rpc.js @@ -1 +1 @@ -const a160_0x50b9=['register','./cmList.socket','../../rediscache'];(function(_0x4bf735,_0x50b9c6){const _0x4c104a=function(_0xfea9f9){while(--_0xfea9f9){_0x4bf735['push'](_0x4bf735['shift']());}};_0x4c104a(++_0x50b9c6);}(a160_0x50b9,0xa2));const a160_0x4c10=function(_0x4bf735,_0x50b9c6){_0x4bf735=_0x4bf735-0x0;let _0x4c104a=a160_0x50b9[_0x4bf735];return _0x4c104a;};const _0x3f23d6=a160_0x4c10;'use strict';const {getSocket}=require(_0x3f23d6('0x2')),socket=getSocket();require(_0x3f23d6('0x1'))[_0x3f23d6('0x0')](socket); \ No newline at end of file +const a192_0x33d9=['../../rediscache','register','./cmList.socket'];(function(_0x1a804e,_0x3d03c3){const _0x33d9b9=function(_0x126ca2){while(--_0x126ca2){_0x1a804e['push'](_0x1a804e['shift']());}};_0x33d9b9(++_0x3d03c3);}(a192_0x33d9,0x109));const a192_0x126c=function(_0x1a804e,_0x3d03c3){_0x1a804e=_0x1a804e-0x15b;let _0x33d9b9=a192_0x33d9[_0x1a804e];return _0x33d9b9;};const a192_0x38534d=a192_0x126c;'use strict';const {getSocket}=require(a192_0x38534d(0x15d)),socket=getSocket();require(a192_0x38534d(0x15c))[a192_0x38534d(0x15b)](socket); \ No newline at end of file diff --git a/server/api/cmList/cmList.socket.js b/server/api/cmList/cmList.socket.js index e10c7b2..a3ebe4f 100644 --- a/server/api/cmList/cmList.socket.js +++ b/server/api/cmList/cmList.socket.js @@ -1 +1 @@ -const a161_0x2df8=['save','length','emit','cmList:','./cmList.events','remove'];(function(_0x70377,_0x2df8ee){const _0x324109=function(_0x56c68d){while(--_0x56c68d){_0x70377['push'](_0x70377['shift']());}};_0x324109(++_0x2df8ee);}(a161_0x2df8,0x1b0));const a161_0x3241=function(_0x70377,_0x2df8ee){_0x70377=_0x70377-0x0;let _0x324109=a161_0x2df8[_0x70377];return _0x324109;};const _0x552fec=a161_0x3241;'use strict';const CmListEvents=require(_0x552fec('0x4')),events=[_0x552fec('0x0'),_0x552fec('0x5'),'update'];function createListener(_0x56c68d,_0x7c8508){return function(_0x1597f6){const _0x3b848b=a161_0x3241;_0x7c8508[_0x3b848b('0x2')](_0x56c68d,_0x1597f6);};}exports['register']=function(_0x42690e){const _0xceeb55=_0x552fec;for(let _0x58dc1f=0x0,_0x518288=events[_0xceeb55('0x1')];_0x58dc1f<_0x518288;_0x58dc1f++){const _0x492a94=events[_0x58dc1f],_0x4c5cfd=createListener(_0xceeb55('0x3')+_0x492a94,_0x42690e);CmListEvents['on'](_0x492a94,_0x4c5cfd);}}; \ No newline at end of file +const a193_0x51fb=['emit','./cmList.events','cmList:','update','length','register','remove'];(function(_0x16337c,_0x3fcd24){const _0x51fb96=function(_0x452e8){while(--_0x452e8){_0x16337c['push'](_0x16337c['shift']());}};_0x51fb96(++_0x3fcd24);}(a193_0x51fb,0x111));const a193_0x452e=function(_0x16337c,_0x3fcd24){_0x16337c=_0x16337c-0x1a6;let _0x51fb96=a193_0x51fb[_0x16337c];return _0x51fb96;};const a193_0x26827f=a193_0x452e;'use strict';const CmListEvents=require(a193_0x26827f(0x1a7)),events=['save',a193_0x26827f(0x1ac),a193_0x26827f(0x1a9)];function createListener(_0x1374a4,_0x5b9766){return function(_0x23f737){const _0xec601a=a193_0x452e;_0x5b9766[_0xec601a(0x1a6)](_0x1374a4,_0x23f737);};}exports[a193_0x26827f(0x1ab)]=function(_0x1a729d){const _0x25d1c0=a193_0x26827f;for(let _0x5693a2=0x0,_0x1a3e0f=events[_0x25d1c0(0x1aa)];_0x5693a2<_0x1a3e0f;_0x5693a2++){const _0x4d4227=events[_0x5693a2],_0x2d1901=createListener(_0x25d1c0(0x1a8)+_0x4d4227,_0x1a729d);CmListEvents['on'](_0x4d4227,_0x2d1901);}}; \ No newline at end of file diff --git a/server/api/cmList/index.js b/server/api/cmList/index.js index 8a7f13f..e1deacc 100644 --- a/server/api/cmList/index.js +++ b/server/api/cmList/index.js @@ -1 +1 @@ -const a162_0x2c2d=['/:id/dispositions','destroy','/:id/contacts/csv','get','../../components/auth/service','put','getAgents','./cmList.controller','getContactsCsv','/:id','show','describe','/:id/fields','addContacts','getContacts','update','addAgents','isAuthenticated','getCustomFields','post','exports','Router','/:id/users','delete'];(function(_0x57a58a,_0x2c2d4e){const _0x46ce71=function(_0x5f3308){while(--_0x5f3308){_0x57a58a['push'](_0x57a58a['shift']());}};_0x46ce71(++_0x2c2d4e);}(a162_0x2c2d,0xb4));const a162_0x46ce=function(_0x57a58a,_0x2c2d4e){_0x57a58a=_0x57a58a-0x0;let _0x46ce71=a162_0x2c2d[_0x57a58a];return _0x46ce71;};const _0x4ff49e=a162_0x46ce;'use strict';const express=require('express'),router=express[_0x4ff49e('0x9')](),auth=require(_0x4ff49e('0x10')),controller=require(_0x4ff49e('0x13'));router['get']('/',auth[_0x4ff49e('0x5')](),controller['index']),router['get']('/describe',auth[_0x4ff49e('0x5')](),controller[_0x4ff49e('0x17')]),router[_0x4ff49e('0xf')](_0x4ff49e('0x15'),auth['isAuthenticated'](),controller[_0x4ff49e('0x16')]),router[_0x4ff49e('0xf')](_0x4ff49e('0xc'),auth[_0x4ff49e('0x5')](),controller['getDispositions']),router[_0x4ff49e('0xf')]('/:id/contacts',auth[_0x4ff49e('0x5')](),controller[_0x4ff49e('0x2')]),router[_0x4ff49e('0xf')](_0x4ff49e('0xe'),auth['isAuthenticated'](),controller[_0x4ff49e('0x14')]),router[_0x4ff49e('0xf')](_0x4ff49e('0x0'),auth[_0x4ff49e('0x5')](),controller[_0x4ff49e('0x6')]),router[_0x4ff49e('0xf')](_0x4ff49e('0xa'),auth[_0x4ff49e('0x5')](),controller[_0x4ff49e('0x12')]),router['post']('/',auth[_0x4ff49e('0x5')](),controller['create']),router[_0x4ff49e('0x7')](_0x4ff49e('0xc'),auth[_0x4ff49e('0x5')](),controller['addDisposition']),router['post']('/:id/contacts',auth[_0x4ff49e('0x5')](),controller[_0x4ff49e('0x1')]),router[_0x4ff49e('0x7')](_0x4ff49e('0x0'),auth[_0x4ff49e('0x5')](),controller['addCustomField']),router[_0x4ff49e('0x7')](_0x4ff49e('0xa'),auth[_0x4ff49e('0x5')](),controller[_0x4ff49e('0x4')]),router[_0x4ff49e('0x11')](_0x4ff49e('0x15'),auth['isAuthenticated'](),controller[_0x4ff49e('0x3')]),router[_0x4ff49e('0xb')]('/:id',auth[_0x4ff49e('0x5')](),controller[_0x4ff49e('0xd')]),router[_0x4ff49e('0xb')]('/:id/dispositions',auth[_0x4ff49e('0x5')](),controller['removeDispositions']),router[_0x4ff49e('0xb')](_0x4ff49e('0xa'),auth['isAuthenticated'](),controller['removeAgents']),module[_0x4ff49e('0x8')]=router; \ No newline at end of file +const a194_0x9ca2=['/:id','/:id/contacts/csv','index','/describe','get','addContacts','Router','getContactsCsv','destroy','/:id/users','getDispositions','/:id/contacts','/:id/dispositions','delete','/:id/fields','isAuthenticated','removeAgents','addCustomField','show','getContacts','getCustomFields','getAgents','post','removeDispositions','put','addDisposition'];(function(_0x1a69e4,_0x3dd3a2){const _0x9ca2c4=function(_0x143679){while(--_0x143679){_0x1a69e4['push'](_0x1a69e4['shift']());}};_0x9ca2c4(++_0x3dd3a2);}(a194_0x9ca2,0x1ab));const a194_0x1436=function(_0x1a69e4,_0x3dd3a2){_0x1a69e4=_0x1a69e4-0x1f0;let _0x9ca2c4=a194_0x9ca2[_0x1a69e4];return _0x9ca2c4;};const a194_0x49c9ae=a194_0x1436;'use strict';const express=require('express'),router=express[a194_0x49c9ae(0x205)](),auth=require('../../components/auth/service'),controller=require('./cmList.controller');router[a194_0x49c9ae(0x203)]('/',auth[a194_0x49c9ae(0x1f4)](),controller[a194_0x49c9ae(0x201)]),router[a194_0x49c9ae(0x203)](a194_0x49c9ae(0x202),auth[a194_0x49c9ae(0x1f4)](),controller['describe']),router[a194_0x49c9ae(0x203)](a194_0x49c9ae(0x1ff),auth[a194_0x49c9ae(0x1f4)](),controller[a194_0x49c9ae(0x1f7)]),router[a194_0x49c9ae(0x203)](a194_0x49c9ae(0x1f1),auth[a194_0x49c9ae(0x1f4)](),controller[a194_0x49c9ae(0x209)]),router[a194_0x49c9ae(0x203)](a194_0x49c9ae(0x1f0),auth[a194_0x49c9ae(0x1f4)](),controller[a194_0x49c9ae(0x1f8)]),router[a194_0x49c9ae(0x203)](a194_0x49c9ae(0x200),auth[a194_0x49c9ae(0x1f4)](),controller[a194_0x49c9ae(0x206)]),router[a194_0x49c9ae(0x203)](a194_0x49c9ae(0x1f3),auth[a194_0x49c9ae(0x1f4)](),controller[a194_0x49c9ae(0x1f9)]),router[a194_0x49c9ae(0x203)](a194_0x49c9ae(0x208),auth[a194_0x49c9ae(0x1f4)](),controller[a194_0x49c9ae(0x1fa)]),router[a194_0x49c9ae(0x1fb)]('/',auth[a194_0x49c9ae(0x1f4)](),controller['create']),router[a194_0x49c9ae(0x1fb)]('/:id/dispositions',auth[a194_0x49c9ae(0x1f4)](),controller[a194_0x49c9ae(0x1fe)]),router[a194_0x49c9ae(0x1fb)](a194_0x49c9ae(0x1f0),auth[a194_0x49c9ae(0x1f4)](),controller[a194_0x49c9ae(0x204)]),router['post'](a194_0x49c9ae(0x1f3),auth['isAuthenticated'](),controller[a194_0x49c9ae(0x1f6)]),router[a194_0x49c9ae(0x1fb)]('/:id/users',auth[a194_0x49c9ae(0x1f4)](),controller['addAgents']),router[a194_0x49c9ae(0x1fd)](a194_0x49c9ae(0x1ff),auth[a194_0x49c9ae(0x1f4)](),controller['update']),router[a194_0x49c9ae(0x1f2)](a194_0x49c9ae(0x1ff),auth[a194_0x49c9ae(0x1f4)](),controller[a194_0x49c9ae(0x207)]),router[a194_0x49c9ae(0x1f2)](a194_0x49c9ae(0x1f1),auth['isAuthenticated'](),controller[a194_0x49c9ae(0x1fc)]),router['delete'](a194_0x49c9ae(0x208),auth[a194_0x49c9ae(0x1f4)](),controller[a194_0x49c9ae(0x1f5)]),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 27caad6..dd3cf82 100644 --- a/server/api/condition/condition.attributes.js +++ b/server/api/condition/condition.attributes.js @@ -1 +1 @@ -const a163_0x365b=['VIRTUAL','field','STRING','sequelize','exports'];(function(_0x5a2114,_0x365bac){const _0x41783e=function(_0x3dc348){while(--_0x3dc348){_0x5a2114['push'](_0x5a2114['shift']());}};_0x41783e(++_0x365bac);}(a163_0x365b,0x192));const a163_0x4178=function(_0x5a2114,_0x365bac){_0x5a2114=_0x5a2114-0x0;let _0x41783e=a163_0x365b[_0x5a2114];return _0x41783e;};const _0x4c4474=a163_0x4178;'use strict';const Sequelize=require(_0x4c4474('0x1'));module[_0x4c4474('0x2')]={'name':{'type':Sequelize[_0x4c4474('0x3')],'get':function(){const _0x466afb=_0x4c4474;return this['getDataValue'](_0x466afb('0x4'));}},'field':{'type':Sequelize['STRING'],'allowNull':![]},'operator':{'type':Sequelize['STRING'],'allowNull':![]},'value':{'type':Sequelize[_0x4c4474('0x0')],'allowNull':![]}}; \ No newline at end of file +const a195_0x2ce5=['field','exports','sequelize','STRING','getDataValue'];(function(_0x45e16a,_0x9c185b){const _0x2ce50b=function(_0x101583){while(--_0x101583){_0x45e16a['push'](_0x45e16a['shift']());}};_0x2ce50b(++_0x9c185b);}(a195_0x2ce5,0x1e9));const a195_0x1015=function(_0x45e16a,_0x9c185b){_0x45e16a=_0x45e16a-0x87;let _0x2ce50b=a195_0x2ce5[_0x45e16a];return _0x2ce50b;};const a195_0x173575=a195_0x1015;'use strict';const {DataTypes}=require(a195_0x173575(0x8a)),attributes={'name':{'type':DataTypes['VIRTUAL'],'get':function(){const _0x48aaa1=a195_0x173575;return this[_0x48aaa1(0x87)](_0x48aaa1(0x88));}},'field':{'type':DataTypes[a195_0x173575(0x8b)],'allowNull':![]},'operator':{'type':DataTypes[a195_0x173575(0x8b)],'allowNull':![]},'value':{'type':DataTypes[a195_0x173575(0x8b)],'allowNull':![]}};module[a195_0x173575(0x89)]['attributes']=attributes; \ No newline at end of file diff --git a/server/api/condition/condition.controller.js b/server/api/condition/condition.controller.js index 649a21b..e80bac1 100644 --- a/server/api/condition/condition.controller.js +++ b/server/api/condition/condition.controller.js @@ -1 +1 @@ -const a164_0xa174=['update','Condition','then','stack','params','end','name','status','json','api','destroy','../../config/logger','body','findOne','catch'];(function(_0x21a4d6,_0xa1741d){const _0x577341=function(_0x1f0fde){while(--_0x1f0fde){_0x21a4d6['push'](_0x21a4d6['shift']());}};_0x577341(++_0xa1741d);}(a164_0xa174,0x10f));const a164_0x5773=function(_0x21a4d6,_0xa1741d){_0x21a4d6=_0x21a4d6-0x0;let _0x577341=a164_0xa174[_0x21a4d6];return _0x577341;};const _0x3f6ecc=a164_0x5773;'use strict';const logger=require(_0x3f6ecc('0xa'))(_0x3f6ecc('0x8')),db=require('../../mysqldb')['db'];function respondWithResult(_0x1f0fde,_0x290617){return _0x290617=_0x290617||0xc8,function(_0x4cb328){const _0x4ed794=a164_0x5773;if(_0x4cb328)return _0x1f0fde[_0x4ed794('0x6')](_0x290617)[_0x4ed794('0x7')](_0x4cb328);};}function saveUpdates(_0x1e5eda){return function(_0x43df1e){const _0x5ad491=a164_0x5773;if(_0x43df1e)return _0x43df1e[_0x5ad491('0xe')](_0x1e5eda)[_0x5ad491('0x1')](function(_0x4f1a31){return _0x4f1a31;});return null;};}function removeEntity(_0x7c5181){return function(_0xce607c){const _0x342562=a164_0x5773;if(_0xce607c)return _0xce607c['destroy']()[_0x342562('0x1')](function(){const _0x45701f=_0x342562;_0x7c5181[_0x45701f('0x6')](0xcc)[_0x45701f('0x4')]();});};}function handleEntityNotFound(_0x23265f){return function(_0x306058){return!_0x306058&&_0x23265f['sendStatus'](0x194),_0x306058;};}function handleError(_0x2b3967,_0x24f412){return _0x24f412=_0x24f412||0x1f4,function(_0x7f6d22){const _0xf4ca7c=a164_0x5773;logger['error'](_0x7f6d22[_0xf4ca7c('0x2')]),_0x7f6d22[_0xf4ca7c('0x5')]&&delete _0x7f6d22[_0xf4ca7c('0x5')],_0x2b3967[_0xf4ca7c('0x6')](_0x24f412)['send'](_0x7f6d22);};}exports['update']=function(_0x20388f,_0x7d1388){const _0x418874=_0x3f6ecc;return _0x20388f[_0x418874('0xb')]['id']&&delete _0x20388f[_0x418874('0xb')]['id'],db[_0x418874('0x0')][_0x418874('0xc')]({'where':{'id':_0x20388f[_0x418874('0x3')]['id']}})[_0x418874('0x1')](handleEntityNotFound(_0x7d1388,null))[_0x418874('0x1')](saveUpdates(_0x20388f[_0x418874('0xb')],null))[_0x418874('0x1')](respondWithResult(_0x7d1388,null))[_0x418874('0xd')](handleError(_0x7d1388,null));},exports[_0x3f6ecc('0x9')]=function(_0x2bf1db,_0x5808c4){const _0x639789=_0x3f6ecc;return db[_0x639789('0x0')]['findOne']({'where':{'id':_0x2bf1db[_0x639789('0x3')]['id']}})[_0x639789('0x1')](handleEntityNotFound(_0x5808c4,null))[_0x639789('0x1')](removeEntity(_0x5808c4,null))[_0x639789('0xd')](handleError(_0x5808c4,null));}; \ No newline at end of file +const a196_0x496b=['findOne','body','name','status','api','update','Condition','destroy','end','sendStatus','json','../../mysqldb','then','params','error'];(function(_0x22c62e,_0x260074){const _0x496b1f=function(_0x4326a2){while(--_0x4326a2){_0x22c62e['push'](_0x22c62e['shift']());}};_0x496b1f(++_0x260074);}(a196_0x496b,0xfb));const a196_0x4326=function(_0x22c62e,_0x260074){_0x22c62e=_0x22c62e-0x16c;let _0x496b1f=a196_0x496b[_0x22c62e];return _0x496b1f;};const a196_0x4b0438=a196_0x4326;'use strict';const logger=require('../../config/logger')(a196_0x4b0438(0x174)),{db}=require(a196_0x4b0438(0x16c));function respondWithResult(_0x43a28d,_0x56e8bc){return _0x56e8bc=_0x56e8bc||0xc8,function(_0x28b6f1){const _0x166724=a196_0x4326;if(_0x28b6f1)return _0x43a28d[_0x166724(0x173)](_0x56e8bc)[_0x166724(0x17a)](_0x28b6f1);};}function saveUpdates(_0x2c8ad9){return function(_0x371f7d){const _0x41348b=a196_0x4326;if(_0x371f7d)return _0x371f7d[_0x41348b(0x175)](_0x2c8ad9)[_0x41348b(0x16d)](function(_0x27969f){return _0x27969f;});return null;};}function removeEntity(_0x10d07c){return function(_0x193af8){const _0x2c96b2=a196_0x4326;if(_0x193af8)return _0x193af8[_0x2c96b2(0x177)]()['then'](function(){const _0x255930=_0x2c96b2;_0x10d07c['status'](0xcc)[_0x255930(0x178)]();});};}function handleEntityNotFound(_0x3010bf){return function(_0x37b49b){const _0x208d0a=a196_0x4326;return!_0x37b49b&&_0x3010bf[_0x208d0a(0x179)](0x194),_0x37b49b;};}function handleError(_0x374fea,_0x105ac4){return _0x105ac4=_0x105ac4||0x1f4,function(_0x258a18){const _0x10cca9=a196_0x4326;logger[_0x10cca9(0x16f)](_0x258a18['stack']),_0x258a18[_0x10cca9(0x172)]&&delete _0x258a18[_0x10cca9(0x172)],_0x374fea['status'](_0x105ac4)['send'](_0x258a18);};}exports[a196_0x4b0438(0x175)]=function(_0x36175d,_0x27af13){const _0x1b0e28=a196_0x4b0438;return _0x36175d[_0x1b0e28(0x171)]['id']&&delete _0x36175d['body']['id'],db[_0x1b0e28(0x176)][_0x1b0e28(0x170)]({'where':{'id':_0x36175d[_0x1b0e28(0x16e)]['id']}})[_0x1b0e28(0x16d)](handleEntityNotFound(_0x27af13,null))[_0x1b0e28(0x16d)](saveUpdates(_0x36175d[_0x1b0e28(0x171)],null))[_0x1b0e28(0x16d)](respondWithResult(_0x27af13,null))['catch'](handleError(_0x27af13,null));},exports[a196_0x4b0438(0x177)]=function(_0x2eba0c,_0x1917b4){const _0x4cb7c0=a196_0x4b0438;return db[_0x4cb7c0(0x176)][_0x4cb7c0(0x170)]({'where':{'id':_0x2eba0c['params']['id']}})[_0x4cb7c0(0x16d)](handleEntityNotFound(_0x1917b4,null))[_0x4cb7c0(0x16d)](removeEntity(_0x1917b4,null))['catch'](handleError(_0x1917b4,null));}; \ No newline at end of file diff --git a/server/api/condition/condition.model.js b/server/api/condition/condition.model.js index 707a8b1..885e8ac 100644 --- a/server/api/condition/condition.model.js +++ b/server/api/condition/condition.model.js @@ -1 +1 @@ -const a165_0x56b9=['define','Condition','tools_conditions'];(function(_0x940efc,_0x56b9b4){const _0x329386=function(_0x1fb9e2){while(--_0x1fb9e2){_0x940efc['push'](_0x940efc['shift']());}};_0x329386(++_0x56b9b4);}(a165_0x56b9,0x129));const a165_0x3293=function(_0x940efc,_0x56b9b4){_0x940efc=_0x940efc-0x0;let _0x329386=a165_0x56b9[_0x940efc];return _0x329386;};'use strict';const attributes=require('./condition.attributes');module['exports']=function(_0x1fb9e2){const _0x4729af=a165_0x3293,_0x5ba5b1=_0x1fb9e2[_0x4729af('0x0')](_0x4729af('0x1'),attributes,{'tableName':_0x4729af('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x5ba5b1;}; \ No newline at end of file +const a197_0x4fed=['function','init','sequelize','./condition.attributes','Condition'];(function(_0x5ce723,_0xb86029){const _0x4fed54=function(_0x239a32){while(--_0x239a32){_0x5ce723['push'](_0x5ce723['shift']());}};_0x4fed54(++_0xb86029);}(a197_0x4fed,0x110));const a197_0x239a=function(_0x5ce723,_0xb86029){_0x5ce723=_0x5ce723-0x90;let _0x4fed54=a197_0x4fed[_0x5ce723];return _0x4fed54;};const a197_0x2dd225=a197_0x239a;'use strict';const {Model}=require(a197_0x2dd225(0x90)),{attributes}=require(a197_0x2dd225(0x91)),{options}=require('./condition.options');class Condition extends Model{}function init(_0x19edba,_0x49c0cc){const _0x11d36e=a197_0x2dd225,_0x3a3d0c=options(_0x19edba),_0x31f0cb=typeof _0x49c0cc===_0x11d36e(0x93)?_0x49c0cc(_0x3a3d0c):_0x3a3d0c;return Condition[_0x11d36e(0x94)](attributes,_0x31f0cb),Condition;}module['exports'][a197_0x2dd225(0x92)]=Condition,module['exports']['init']=init; \ No newline at end of file diff --git a/server/api/condition/condition.options.js b/server/api/condition/condition.options.js new file mode 100644 index 0000000..d6a8c07 --- /dev/null +++ b/server/api/condition/condition.options.js @@ -0,0 +1 @@ +var a198_0x238f=['exports','options'];(function(_0x34d4a8,_0x5c316d){var _0x238f34=function(_0x4584db){while(--_0x4584db){_0x34d4a8['push'](_0x34d4a8['shift']());}};_0x238f34(++_0x5c316d);}(a198_0x238f,0xb5));var a198_0x4584=function(_0x34d4a8,_0x5c316d){_0x34d4a8=_0x34d4a8-0x1e3;var _0x238f34=a198_0x238f[_0x34d4a8];return _0x238f34;};var a198_0x2c42a0=a198_0x4584;function options(_0x5df0cc){return{'sequelize':_0x5df0cc,'tableName':'tools_conditions','paranoid':![],'indexes':[],'timestamps':!![]};}module[a198_0x2c42a0(0x1e4)][a198_0x2c42a0(0x1e3)]=options; \ No newline at end of file diff --git a/server/api/condition/index.js b/server/api/condition/index.js index 0b05635..61c92c0 100644 --- a/server/api/condition/index.js +++ b/server/api/condition/index.js @@ -1 +1 @@ -const a166_0x1356=['isAuthenticated','./condition.controller','put','express','destroy','exports','/:id','Router','update'];(function(_0x5e182c,_0x135628){const _0x2c4a6b=function(_0x396fd0){while(--_0x396fd0){_0x5e182c['push'](_0x5e182c['shift']());}};_0x2c4a6b(++_0x135628);}(a166_0x1356,0x64));const a166_0x2c4a=function(_0x5e182c,_0x135628){_0x5e182c=_0x5e182c-0x0;let _0x2c4a6b=a166_0x1356[_0x5e182c];return _0x2c4a6b;};const _0x5b6a45=a166_0x2c4a;'use strict';const express=require(_0x5b6a45('0x2')),router=express[_0x5b6a45('0x6')](),auth=require('../../components/auth/service'),controller=require(_0x5b6a45('0x0'));router[_0x5b6a45('0x1')](_0x5b6a45('0x5'),auth[_0x5b6a45('0x8')](),controller[_0x5b6a45('0x7')]),router['delete'](_0x5b6a45('0x5'),auth[_0x5b6a45('0x8')](),controller[_0x5b6a45('0x3')]),module[_0x5b6a45('0x4')]=router; \ No newline at end of file +const a199_0x3673=['/:id','delete','destroy','../../components/auth/service','express','put','update','isAuthenticated','exports','./condition.controller'];(function(_0x5c2b15,_0x1c262b){const _0x3673e5=function(_0x1f640c){while(--_0x1f640c){_0x5c2b15['push'](_0x5c2b15['shift']());}};_0x3673e5(++_0x1c262b);}(a199_0x3673,0x9d));const a199_0x1f64=function(_0x5c2b15,_0x1c262b){_0x5c2b15=_0x5c2b15-0x95;let _0x3673e5=a199_0x3673[_0x5c2b15];return _0x3673e5;};const a199_0xfde18c=a199_0x1f64;'use strict';const express=require(a199_0xfde18c(0x9c)),router=express['Router'](),auth=require(a199_0xfde18c(0x9b)),controller=require(a199_0xfde18c(0x97));router[a199_0xfde18c(0x9d)](a199_0xfde18c(0x98),auth[a199_0xfde18c(0x95)](),controller[a199_0xfde18c(0x9e)]),router[a199_0xfde18c(0x99)](a199_0xfde18c(0x98),auth[a199_0xfde18c(0x95)](),controller[a199_0xfde18c(0x9a)]),module[a199_0xfde18c(0x96)]=router; \ No newline at end of file diff --git a/server/api/dashboard/dashboard.attributes.js b/server/api/dashboard/dashboard.attributes.js index 49ddfe8..55df74d 100644 --- a/server/api/dashboard/dashboard.attributes.js +++ b/server/api/dashboard/dashboard.attributes.js @@ -1 +1 @@ -const a167_0x4a28=['exports','sequelize','STRING'];(function(_0x293f76,_0x4a2823){const _0x851107=function(_0x2a407c){while(--_0x2a407c){_0x293f76['push'](_0x293f76['shift']());}};_0x851107(++_0x4a2823);}(a167_0x4a28,0x1e8));const a167_0x8511=function(_0x293f76,_0x4a2823){_0x293f76=_0x293f76-0x0;let _0x851107=a167_0x4a28[_0x293f76];return _0x851107;};const _0x54d410=a167_0x8511;'use strict';const Sequelize=require(_0x54d410('0x2'));module[_0x54d410('0x1')]={'name':{'type':Sequelize[_0x54d410('0x0')],'allowNull':![],'unique':'name'},'description':{'type':Sequelize[_0x54d410('0x0')]}}; \ No newline at end of file +const a200_0x1c43=['STRING','attributes','exports'];(function(_0x2d6608,_0x505ce4){const _0x1c439e=function(_0x18a39d){while(--_0x18a39d){_0x2d6608['push'](_0x2d6608['shift']());}};_0x1c439e(++_0x505ce4);}(a200_0x1c43,0x76));const a200_0x18a3=function(_0x2d6608,_0x505ce4){_0x2d6608=_0x2d6608-0x1ee;let _0x1c439e=a200_0x1c43[_0x2d6608];return _0x1c439e;};const a200_0x5aba45=a200_0x18a3;'use strict';const {DataTypes}=require('sequelize'),attributes={'name':{'type':DataTypes[a200_0x5aba45(0x1f0)],'allowNull':![],'unique':'name'},'description':{'type':DataTypes[a200_0x5aba45(0x1f0)]}};module[a200_0x5aba45(0x1ef)][a200_0x5aba45(0x1ee)]=attributes; \ No newline at end of file diff --git a/server/api/dashboard/dashboard.controller.js b/server/api/dashboard/dashboard.controller.js index 77fd6b3..f58f94d 100644 --- a/server/api/dashboard/dashboard.controller.js +++ b/server/api/dashboard/dashboard.controller.js @@ -1 +1 @@ -const a168_0x2c33=['send','attrReport','https://','register','CustomDashboards','limit','type','attrFontSize','omit','catch','attrTimezone','attrSerie2','attrRefresh','userProfileId','attrPath','DashboardItem','counter','custom','./dashboard.socket','end','updatedAt','lodash','findAll','../../rediscache','fields','order','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','../../config/logger','index','map','createdAt','web-report','rawAttributes','attrSerie1','offset','filter','stack','getItems','attrs','api','fieldName','body','include','error','iframe','create','params','sequelize','reportType','keys','undefined','DashboardId','nolimit','show','model','../../components/parsers/qs','attrUrl','user','count','UserProfileSection','pie-chart','where','intersection','key','merge','attrVoiceQueues','then','HH:mm:ss','rows','filters','widgetAttributes:\x20%s','../../mysqldb','attrSerie3','role','Dashboard','set','0.00','query','destroy','attrHourFormat','get','json','total','pick','multibar-chart','options','stringify','UserProfileResource','attrMetric','addItem','Unable\x20to\x20retrieve\x20the\x20current\x20user','sort','attributes','VIRTUAL','length','findOne','includeAll','Content-Range','update','value','name'];(function(_0x390114,_0x2c33f3){const _0xd9a99b=function(_0x3330ec){while(--_0x3330ec){_0x390114['push'](_0x390114['shift']());}};_0xd9a99b(++_0x2c33f3);}(a168_0x2c33,0x143));const a168_0xd9a9=function(_0x390114,_0x2c33f3){_0x390114=_0x390114-0x0;let _0xd9a99b=a168_0x2c33[_0x390114];return _0xd9a99b;};const _0x22d097=a168_0xd9a9;'use strict';const _=require(_0x22d097('0x1')),qs=require(_0x22d097('0x23')),logger=require(_0x22d097('0x7'))(_0x22d097('0x13')),{getSocket}=require(_0x22d097('0x3')),socket=getSocket(),db=require(_0x22d097('0x33'))['db'],{Op}=require(_0x22d097('0x1b'));require(_0x22d097('0x63'))[_0x22d097('0x54')](socket);function respondWithResult(_0x3330ec,_0x44e04b){return _0x44e04b=_0x44e04b||0xc8,function(_0x2424b2){if(_0x2424b2)return _0x3330ec['status'](_0x44e04b)['json'](_0x2424b2);};}function respondWithFilteredResult(_0x280c4d,_0x2540eb){return function(_0x6ca64f){const _0x4fd31b=a168_0xd9a9;if(_0x6ca64f){const _0x1e40ff=_0x6ca64f[_0x4fd31b('0x26')],_0x2754a1=_0x2540eb[_0x4fd31b('0xe')];let _0x5ab39f=_0x2540eb[_0x4fd31b('0xe')]+_0x2540eb[_0x4fd31b('0x56')],_0x47721f;return _0x5ab39f>=_0x1e40ff?(_0x5ab39f=_0x1e40ff,_0x47721f=0xc8):_0x47721f=0xce,_0x280c4d['status'](_0x47721f),_0x280c4d[_0x4fd31b('0x37')](_0x4fd31b('0x4d'),_0x2754a1+'-'+_0x5ab39f+'/'+_0x1e40ff)[_0x4fd31b('0x3d')](_0x6ca64f);}return null;};}function saveUpdates(_0x1eec32){return function(_0x2c156c){const _0x3496bc=a168_0xd9a9;if(_0x2c156c)return _0x2c156c['update'](_0x1eec32)[_0x3496bc('0x2e')](function(_0x3ec267){return _0x3ec267;});return null;};}function removeEntity(_0x4f380e){return function(_0x53bc34){const _0x5adedc=a168_0xd9a9;if(_0x53bc34)return _0x53bc34['destroy']()[_0x5adedc('0x2e')](function(){const _0x20b970=_0x5adedc,_0x23b214=_0x53bc34['get']({'plain':!![]}),_0x1c5e2f='CustomDashboards';return db[_0x20b970('0x43')][_0x20b970('0x3a')]({'where':{'type':_0x1c5e2f,'resourceId':_0x23b214['id']}})[_0x20b970('0x2e')](function(){return _0x53bc34;});})[_0x5adedc('0x2e')](function(){const _0x2fdea2=_0x5adedc;_0x4f380e['status'](0xcc)[_0x2fdea2('0x64')]();});};}function handleEntityNotFound(_0x2c743f){return function(_0x278364){return!_0x278364&&_0x2c743f['sendStatus'](0x194),_0x278364;};}function handleError(_0x27569b,_0x3c8991){return _0x3c8991=_0x3c8991||0x1f4,function(_0x5aa3be){const _0x46ebf3=a168_0xd9a9;logger[_0x46ebf3('0x17')](_0x5aa3be[_0x46ebf3('0x10')]),_0x5aa3be[_0x46ebf3('0x50')]&&delete _0x5aa3be[_0x46ebf3('0x50')],_0x27569b['status'](_0x3c8991)[_0x46ebf3('0x51')](_0x5aa3be);};}exports[_0x22d097('0x8')]=function(_0x14c703,_0x22001e){const _0x427bc8=_0x22d097;let _0x2ed090={};const _0x1b6e11={},_0x451882={'count':0x0,'rows':[]},_0x2526fd=_[_0x427bc8('0x9')](db[_0x427bc8('0x36')][_0x427bc8('0xc')],function(_0x315e5a){const _0x195a6f=_0x427bc8;return{'name':_0x315e5a[_0x195a6f('0x14')],'type':_0x315e5a[_0x195a6f('0x57')][_0x195a6f('0x2b')]};});_0x1b6e11['model']=_[_0x427bc8('0x9')](_0x2526fd,_0x427bc8('0x50')),_0x1b6e11[_0x427bc8('0x39')]=_[_0x427bc8('0x1d')](_0x14c703[_0x427bc8('0x39')]),_0x1b6e11[_0x427bc8('0x31')]=_[_0x427bc8('0x2a')](_0x1b6e11['model'],_0x1b6e11[_0x427bc8('0x39')]),_0x2ed090[_0x427bc8('0x48')]=_[_0x427bc8('0x2a')](_0x1b6e11[_0x427bc8('0x22')],qs[_0x427bc8('0x4')](_0x14c703[_0x427bc8('0x39')][_0x427bc8('0x4')])),_0x2ed090[_0x427bc8('0x48')]=_0x2ed090['attributes'][_0x427bc8('0x4a')]?_0x2ed090[_0x427bc8('0x48')]:_0x1b6e11[_0x427bc8('0x22')];typeof _0x14c703[_0x427bc8('0x39')][_0x427bc8('0x20')]===_0x427bc8('0x1e')&&(_0x2ed090['limit']=qs['limit'](_0x14c703[_0x427bc8('0x39')][_0x427bc8('0x56')]),_0x2ed090[_0x427bc8('0xe')]=qs[_0x427bc8('0xe')](_0x14c703[_0x427bc8('0x39')][_0x427bc8('0xe')]));_0x2ed090[_0x427bc8('0x5')]=qs[_0x427bc8('0x47')](_0x14c703['query']['sort']),_0x2ed090[_0x427bc8('0x29')]=qs[_0x427bc8('0x31')](_[_0x427bc8('0x3f')](_0x14c703[_0x427bc8('0x39')],_0x1b6e11['filters']),_0x2526fd);_0x14c703[_0x427bc8('0x39')][_0x427bc8('0xf')]&&(_0x2ed090[_0x427bc8('0x29')]=_[_0x427bc8('0x2c')](_0x2ed090[_0x427bc8('0x29')],{[Op['or']]:_[_0x427bc8('0x9')](_0x2526fd,function(_0x22ceff){const _0x5fcb1e=_0x427bc8;if(_0x22ceff[_0x5fcb1e('0x57')]!==_0x5fcb1e('0x49')){const _0x59ce8a={};return _0x59ce8a[_0x22ceff['name']]={[Op['like']]:'%'+_0x14c703['query'][_0x5fcb1e('0xf')]+'%'},_0x59ce8a;}})}));_0x2ed090=_['merge']({},_0x2ed090,_0x14c703[_0x427bc8('0x41')]);const _0x4527da={'where':_0x2ed090[_0x427bc8('0x29')]};return db[_0x427bc8('0x36')][_0x427bc8('0x26')](_0x4527da)['then'](function(_0x5a052f){const _0xc870aa=_0x427bc8;return _0x451882[_0xc870aa('0x26')]=_0x5a052f,_0x14c703[_0xc870aa('0x39')][_0xc870aa('0x4c')]&&(_0x2ed090[_0xc870aa('0x16')]=[{'all':!![]}]),db[_0xc870aa('0x36')][_0xc870aa('0x2')](_0x2ed090);})[_0x427bc8('0x2e')](function(_0xbfd870){const _0x1df4f3=_0x427bc8;return _0x451882[_0x1df4f3('0x30')]=_0xbfd870,_0x451882;})[_0x427bc8('0x2e')](respondWithFilteredResult(_0x22001e,_0x2ed090))[_0x427bc8('0x5a')](handleError(_0x22001e,null));},exports[_0x22d097('0x21')]=function(_0x2f9120,_0x2a440e){const _0x120d46=_0x22d097;let _0x39e034={'raw':![],'where':{'id':_0x2f9120[_0x120d46('0x1a')]['id']}};const _0x1d99de={};return _0x1d99de[_0x120d46('0x22')]=_[_0x120d46('0x1d')](db['Dashboard'][_0x120d46('0xc')]),_0x1d99de[_0x120d46('0x39')]=_['keys'](_0x2f9120[_0x120d46('0x39')]),_0x1d99de['filters']=_['intersection'](_0x1d99de['model'],_0x1d99de[_0x120d46('0x39')]),_0x39e034[_0x120d46('0x48')]=_[_0x120d46('0x2a')](_0x1d99de[_0x120d46('0x22')],qs['fields'](_0x2f9120[_0x120d46('0x39')][_0x120d46('0x4')])),_0x39e034[_0x120d46('0x48')]=_0x39e034['attributes']['length']?_0x39e034[_0x120d46('0x48')]:_0x1d99de[_0x120d46('0x22')],_0x2f9120[_0x120d46('0x39')]['includeAll']&&(_0x39e034[_0x120d46('0x16')]=[{'all':!![]}]),_0x39e034=_[_0x120d46('0x2c')]({},_0x39e034,_0x2f9120[_0x120d46('0x41')]),db[_0x120d46('0x36')][_0x120d46('0x4b')](_0x39e034)[_0x120d46('0x2e')](handleEntityNotFound(_0x2a440e,null))[_0x120d46('0x2e')](respondWithResult(_0x2a440e,null))[_0x120d46('0x5a')](handleError(_0x2a440e,null));},exports[_0x22d097('0x19')]=function(_0x287fdf,_0x5e68a9){const _0x14858e=_0x22d097;return db[_0x14858e('0x36')][_0x14858e('0x19')](_0x287fdf[_0x14858e('0x15')],{})[_0x14858e('0x2e')](function(_0x285b02){const _0x33c192=_0x14858e,_0x3df279=_0x287fdf[_0x33c192('0x25')][_0x33c192('0x3c')]({'plain':!![]});if(!_0x3df279)throw new Error(_0x33c192('0x46'));if(_0x3df279[_0x33c192('0x35')]===_0x33c192('0x25')){const _0x5b9a19=_0x285b02[_0x33c192('0x3c')]({'plain':!![]}),_0x2e72cd=_0x33c192('0x55');return db['UserProfileSection']['findOne']({'where':{'name':_0x2e72cd,'userProfileId':_0x3df279[_0x33c192('0x5e')]},'raw':!![]})[_0x33c192('0x2e')](function(_0x1a388c){const _0x4caf50=_0x33c192;return _0x1a388c&&_0x1a388c['autoAssociation']===0x0?db[_0x4caf50('0x43')][_0x4caf50('0x19')]({'name':_0x5b9a19[_0x4caf50('0x50')],'resourceId':_0x5b9a19['id'],'type':_0x1a388c['name'],'sectionId':_0x1a388c['id']},{})['then'](function(){return _0x285b02;}):_0x285b02;})[_0x33c192('0x5a')](function(_0x5b2f99){const _0x5e6fb4=_0x33c192;logger[_0x5e6fb4('0x17')](_0x5e6fb4('0x6'),_0x5b2f99);throw _0x5b2f99;});}return _0x285b02;})[_0x14858e('0x2e')](respondWithResult(_0x5e68a9,0xc9))[_0x14858e('0x5a')](handleError(_0x5e68a9,null));},exports['clone']=function(_0x29797c,_0x1b1bb7){const _0x54838b=_0x22d097;let _0x95e3e3={'where':{'id':_0x29797c[_0x54838b('0x1a')]['id']}};const _0x13f214={};return _0x13f214[_0x54838b('0x22')]=_['keys'](db['Dashboard'][_0x54838b('0xc')]),_0x95e3e3['attributes']=_['intersection'](_0x13f214[_0x54838b('0x22')],qs['fields'](_0x29797c[_0x54838b('0x39')]['fields'])),_0x95e3e3[_0x54838b('0x48')]=_0x95e3e3[_0x54838b('0x48')]['length']?_0x95e3e3[_0x54838b('0x48')]:_0x13f214['model'],_0x29797c['query']['includeAll']&&(_0x95e3e3['include']=[{'all':!![]}]),_0x95e3e3=_[_0x54838b('0x2c')]({},_0x95e3e3,_0x29797c[_0x54838b('0x41')]),db[_0x54838b('0x36')][_0x54838b('0x4b')](_0x95e3e3)[_0x54838b('0x2e')](handleEntityNotFound(_0x1b1bb7,null))[_0x54838b('0x2e')](function(_0x129d55){const _0x46a4a1=_0x54838b;if(_0x129d55){let _0x18be8b=_0x129d55[_0x46a4a1('0x3c')]({'plain':!![]});return _0x18be8b=qs['omit'](_0x18be8b,['id',_0x46a4a1('0xa'),_0x46a4a1('0x0')]),_0x29797c[_0x46a4a1('0x15')]=_[_0x46a4a1('0x59')](_0x29797c[_0x46a4a1('0x15')],['id',_0x46a4a1('0xa'),_0x46a4a1('0x0')]),db[_0x46a4a1('0x36')][_0x46a4a1('0x19')](_[_0x46a4a1('0x2c')](_0x18be8b,_0x29797c[_0x46a4a1('0x15')]),{'include':_0x29797c[_0x46a4a1('0x39')][_0x46a4a1('0x4c')]?[{'all':!![]}]:undefined})['then'](function(_0x1f2ed1){const _0x1ac770=_0x46a4a1,_0x4029d7=_0x29797c['user']['get']({'plain':!![]});if(!_0x4029d7)throw new Error(_0x1ac770('0x46'));if(_0x4029d7['role']===_0x1ac770('0x25')){const _0x1f51e2=_0x1f2ed1['get']({'plain':!![]}),_0x2a98bb=_0x1ac770('0x55');return db[_0x1ac770('0x27')][_0x1ac770('0x4b')]({'where':{'name':_0x2a98bb,'userProfileId':_0x4029d7[_0x1ac770('0x5e')]},'raw':!![]})[_0x1ac770('0x2e')](function(_0x5d4aa4){const _0x29adbe=_0x1ac770;return _0x5d4aa4&&_0x5d4aa4['autoAssociation']===0x0?db['UserProfileResource'][_0x29adbe('0x19')]({'name':_0x1f51e2['name'],'resourceId':_0x1f51e2['id'],'type':_0x5d4aa4['name'],'sectionId':_0x5d4aa4['id']},{})['then'](function(){return _0x1f2ed1;}):_0x1f2ed1;})[_0x1ac770('0x5a')](function(_0xed6401){const _0xa5045f=_0x1ac770;logger[_0xa5045f('0x17')](_0xa5045f('0x6'),_0xed6401);throw _0xed6401;});}return _0x1f2ed1;});}})[_0x54838b('0x2e')](respondWithResult(_0x1b1bb7,0xc9))[_0x54838b('0x5a')](handleError(_0x1b1bb7,null));},exports[_0x22d097('0x4e')]=function(_0x1b5e94,_0x497a44){const _0x1013eb=_0x22d097;return _0x1b5e94[_0x1013eb('0x15')]['id']&&delete _0x1b5e94['body']['id'],db[_0x1013eb('0x36')][_0x1013eb('0x4b')]({'where':{'id':_0x1b5e94[_0x1013eb('0x1a')]['id']}})[_0x1013eb('0x2e')](handleEntityNotFound(_0x497a44,null))[_0x1013eb('0x2e')](saveUpdates(_0x1b5e94[_0x1013eb('0x15')],null))[_0x1013eb('0x2e')](respondWithResult(_0x497a44,null))[_0x1013eb('0x5a')](handleError(_0x497a44,null));},exports[_0x22d097('0x3a')]=function(_0x73e981,_0x1a5f05){const _0x48d650=_0x22d097;return db[_0x48d650('0x36')][_0x48d650('0x4b')]({'where':{'id':_0x73e981[_0x48d650('0x1a')]['id']}})[_0x48d650('0x2e')](handleEntityNotFound(_0x1a5f05,null))[_0x48d650('0x2e')](removeEntity(_0x1a5f05,null))[_0x48d650('0x5a')](handleError(_0x1a5f05,null));};function widgetAttributes(_0x12cf1c){const _0x71d852=_0x22d097;try{switch(_0x12cf1c['type']){case _0x71d852('0x18'):return[{'name':_0x71d852('0x24'),'value':_0x12cf1c['attrUrl']||(_0x12cf1c[_0x71d852('0x12')]&&_0x12cf1c[_0x71d852('0x12')][0x0]?_0x12cf1c['attrs'][0x0][_0x71d852('0x4f')]:undefined)||_0x71d852('0x53')}];case _0x71d852('0x62'):return[{'name':'attrPath','value':_0x12cf1c[_0x71d852('0x5f')]||(_0x12cf1c[_0x71d852('0x12')]&&_0x12cf1c['attrs'][0x0]?_0x12cf1c['attrs'][0x0]['value']:undefined)||''}];case'clock':return[{'name':'attrHourFormat','value':_0x12cf1c[_0x71d852('0x3b')]||(_0x12cf1c[_0x71d852('0x12')]&&_0x12cf1c['attrs'][0x0]?_0x12cf1c[_0x71d852('0x12')][0x0]['value']:undefined)||_0x71d852('0x2f')},{'name':_0x71d852('0x5b'),'value':_0x12cf1c[_0x71d852('0x5b')]||(_0x12cf1c[_0x71d852('0x12')]&&_0x12cf1c[_0x71d852('0x12')][0x1]?_0x12cf1c['attrs'][0x1]['value']:undefined)||_0x71d852('0x38')},{'name':_0x71d852('0x58'),'value':_0x12cf1c[_0x71d852('0x58')]||(_0x12cf1c[_0x71d852('0x12')]&&_0x12cf1c['attrs'][0x2]?_0x12cf1c[_0x71d852('0x12')][0x2][_0x71d852('0x4f')]:undefined)||0xc}];case _0x71d852('0x61'):return[{'name':_0x71d852('0x44'),'value':_0x12cf1c[_0x71d852('0x44')]||(_0x12cf1c[_0x71d852('0x12')]&&_0x12cf1c[_0x71d852('0x12')][0x0]?_0x12cf1c[_0x71d852('0x12')][0x0][_0x71d852('0x4f')]:undefined)||_0x71d852('0x3e')},{'name':_0x71d852('0x2d'),'value':_0x12cf1c[_0x71d852('0x2d')]||(_0x12cf1c[_0x71d852('0x12')]&&_0x12cf1c['attrs'][0x1]?_0x12cf1c[_0x71d852('0x12')][0x1][_0x71d852('0x4f')]:undefined)||[]},{'name':_0x71d852('0x58'),'value':_0x12cf1c[_0x71d852('0x58')]||(_0x12cf1c[_0x71d852('0x12')]&&_0x12cf1c['attrs'][0x2]?_0x12cf1c[_0x71d852('0x12')][0x2][_0x71d852('0x4f')]:undefined)||0x14}];case _0x71d852('0x40'):case _0x71d852('0x28'):return[{'name':_0x71d852('0xd'),'value':_0x12cf1c[_0x71d852('0xd')]||(_0x12cf1c[_0x71d852('0x12')]&&_0x12cf1c['attrs'][0x0]?_0x12cf1c['attrs'][0x0][_0x71d852('0x4f')]:undefined)||_0x71d852('0x3e')},{'name':'attrSerie2','value':_0x12cf1c[_0x71d852('0x5c')]||(_0x12cf1c[_0x71d852('0x12')]&&_0x12cf1c[_0x71d852('0x12')][0x1]?_0x12cf1c['attrs'][0x1][_0x71d852('0x4f')]:undefined)||null},{'name':_0x71d852('0x34'),'value':_0x12cf1c['attrSerie3']||(_0x12cf1c[_0x71d852('0x12')]&&_0x12cf1c[_0x71d852('0x12')][0x2]?_0x12cf1c[_0x71d852('0x12')][0x2][_0x71d852('0x4f')]:undefined)||null},{'name':_0x71d852('0x2d'),'value':_0x12cf1c['attrVoiceQueues']||(_0x12cf1c['attrs']&&_0x12cf1c['attrs'][0x3]?_0x12cf1c[_0x71d852('0x12')][0x3][_0x71d852('0x4f')]:undefined)||[]}];case _0x71d852('0xb'):return[{'name':_0x71d852('0x52'),'type':_0x12cf1c[_0x71d852('0x1c')]||(_0x12cf1c[_0x71d852('0x12')]&&_0x12cf1c[_0x71d852('0x12')][0x0]?_0x12cf1c['attrs'][0x0][_0x71d852('0x57')]:undefined)||null,'value':_0x12cf1c[_0x71d852('0x52')]||(_0x12cf1c['attrs']&&_0x12cf1c[_0x71d852('0x12')][0x0]?_0x12cf1c[_0x71d852('0x12')][0x0]['value']:undefined)||null},{'name':_0x71d852('0x5d'),'value':_0x12cf1c[_0x71d852('0x5d')]||(_0x12cf1c[_0x71d852('0x12')]&&_0x12cf1c[_0x71d852('0x12')][0x1]?_0x12cf1c[_0x71d852('0x12')][0x1][_0x71d852('0x4f')]:undefined)||0x0}];default:return[];}}catch(_0x28fa98){return logger[_0x71d852('0x17')](_0x71d852('0x32'),JSON[_0x71d852('0x42')](_0x28fa98)),[];}}exports[_0x22d097('0x45')]=function(_0x2a2baa,_0x530c64){const _0x3d9a18=_0x22d097;return _0x2a2baa[_0x3d9a18('0x15')]['id']&&delete _0x2a2baa[_0x3d9a18('0x15')]['id'],db[_0x3d9a18('0x36')][_0x3d9a18('0x4b')]({'where':{'id':_0x2a2baa[_0x3d9a18('0x1a')]['id']}})[_0x3d9a18('0x2e')](handleEntityNotFound(_0x530c64,null))[_0x3d9a18('0x2e')](function(_0x384202){const _0x8d1ca4=_0x3d9a18;if(_0x384202)return _0x2a2baa[_0x8d1ca4('0x15')][_0x8d1ca4('0x1f')]=_0x384202['id'],_0x2a2baa[_0x8d1ca4('0x15')][_0x8d1ca4('0x12')]=widgetAttributes(_0x2a2baa[_0x8d1ca4('0x15')]),db[_0x8d1ca4('0x60')][_0x8d1ca4('0x19')](_0x2a2baa[_0x8d1ca4('0x15')]);})[_0x3d9a18('0x2e')](respondWithResult(_0x530c64,null))[_0x3d9a18('0x5a')](handleError(_0x530c64,null));},exports['getItems']=function(_0x3b04c4,_0x48f319){const _0x1707ab=_0x22d097;let _0x5d5415={};const _0x473ffa={};let _0x33f264,_0x69fbf3;return db[_0x1707ab('0x36')]['findOne']({'where':{'id':_0x3b04c4[_0x1707ab('0x1a')]['id']}})['then'](handleEntityNotFound(_0x48f319,null))['then'](function(_0x1b3e95){const _0x1620c6=_0x1707ab;if(_0x1b3e95)return _0x33f264=_0x1b3e95,_0x473ffa['model']=_[_0x1620c6('0x1d')](db[_0x1620c6('0x60')][_0x1620c6('0xc')]),_0x473ffa[_0x1620c6('0x39')]=_[_0x1620c6('0x1d')](_0x3b04c4[_0x1620c6('0x39')]),_0x473ffa[_0x1620c6('0x31')]=_[_0x1620c6('0x2a')](_0x473ffa[_0x1620c6('0x22')],_0x473ffa[_0x1620c6('0x39')]),_0x5d5415[_0x1620c6('0x48')]=_[_0x1620c6('0x2a')](_0x473ffa[_0x1620c6('0x22')],qs['fields'](_0x3b04c4[_0x1620c6('0x39')][_0x1620c6('0x4')])),_0x5d5415[_0x1620c6('0x48')]=_0x5d5415['attributes'][_0x1620c6('0x4a')]?_0x5d5415[_0x1620c6('0x48')]:_0x473ffa[_0x1620c6('0x22')],_0x5d5415[_0x1620c6('0x5')]=qs['sort'](_0x3b04c4[_0x1620c6('0x39')]['sort']),_0x5d5415[_0x1620c6('0x29')]=qs['filters'](_[_0x1620c6('0x3f')](_0x3b04c4[_0x1620c6('0x39')],_0x473ffa['filters'])),_0x3b04c4[_0x1620c6('0x39')][_0x1620c6('0xf')]&&(_0x5d5415[_0x1620c6('0x29')]=_[_0x1620c6('0x2c')](_0x5d5415[_0x1620c6('0x29')],{[Op['or']]:_['map'](_0x5d5415[_0x1620c6('0x48')],function(_0x54ff01){const _0x2c2024=_0x1620c6,_0x2dfa45={};return _0x2dfa45[_0x54ff01]={[Op['like']]:'%'+_0x3b04c4[_0x2c2024('0x39')][_0x2c2024('0xf')]+'%'},_0x2dfa45;})})),_0x5d5415=_['merge']({},_0x5d5415,_0x3b04c4['options']),_0x33f264[_0x1620c6('0x11')](_0x5d5415);})[_0x1707ab('0x2e')](function(_0x25d705){const _0x39f1b0=_0x1707ab;if(_0x25d705)return _0x69fbf3=_0x25d705[_0x39f1b0('0x4a')],typeof _0x3b04c4['query']['nolimit']==='undefined'&&(_0x5d5415[_0x39f1b0('0x56')]=qs[_0x39f1b0('0x56')](_0x3b04c4[_0x39f1b0('0x39')][_0x39f1b0('0x56')]),_0x5d5415[_0x39f1b0('0xe')]=qs[_0x39f1b0('0xe')](_0x3b04c4[_0x39f1b0('0x39')][_0x39f1b0('0xe')])),_0x33f264[_0x39f1b0('0x11')](_0x5d5415);})[_0x1707ab('0x2e')](function(_0x337f8d){if(_0x337f8d)return _0x337f8d?{'count':_0x69fbf3,'rows':_0x337f8d}:null;})[_0x1707ab('0x2e')](respondWithResult(_0x48f319,null))[_0x1707ab('0x5a')](handleError(_0x48f319,null));}; \ No newline at end of file +const a201_0x4cbd=['Unable\x20to\x20retrieve\x20the\x20current\x20user','attrs','filter','where','status','attrUrl','nolimit','destroy','userProfileId','attrSerie3','json','filters','getItems','omit','stringify','includeAll','like','body','lodash','attrReport','createdAt','model','DashboardItem','merge','sequelize','UserProfileSection','params','pick','attributes','keys','findOne','role','attrFontSize','pie-chart','map','include','name','addItem','attrPath','query','get','register','fields','findAll','DashboardId','limit','iframe','error','UserProfileResource','options','create','order','attrRefresh','show','set','sort','value','attrVoiceQueues','autoAssociation','type','count','https://','attrMetric','counter','attrTimezone','CustomDashboards','updatedAt','undefined','widgetAttributes:\x20%s','intersection','attrHourFormat','../../components/parsers/qs','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','./dashboard.socket','fieldName','rawAttributes','then','stack','user','attrSerie2','web-report','clone','length','reportType','custom','Dashboard','key','update','offset','catch'];(function(_0x118597,_0x1dc6b1){const _0x4cbdd8=function(_0x8a9587){while(--_0x8a9587){_0x118597['push'](_0x118597['shift']());}};_0x4cbdd8(++_0x1dc6b1);}(a201_0x4cbd,0xda));const a201_0x8a95=function(_0x118597,_0x1dc6b1){_0x118597=_0x118597-0x95;let _0x4cbdd8=a201_0x4cbd[_0x118597];return _0x4cbdd8;};const a201_0x1b02c9=a201_0x8a95;'use strict';const _=require(a201_0x1b02c9(0xdb)),qs=require(a201_0x1b02c9(0xb6)),logger=require('../../config/logger')('api'),{getSocket}=require('../../rediscache'),socket=getSocket(),{db}=require('../../mysqldb'),{Op}=require(a201_0x1b02c9(0xe1));require(a201_0x1b02c9(0xb8))[a201_0x1b02c9(0x98)](socket);function respondWithResult(_0x148b45,_0x208840){return _0x208840=_0x208840||0xc8,function(_0x38f82b){const _0x1cb7b8=a201_0x8a95;if(_0x38f82b)return _0x148b45[_0x1cb7b8(0xcd)](_0x208840)['json'](_0x38f82b);};}function respondWithFilteredResult(_0x7b7a3a,_0x3de52d){return function(_0x247919){const _0x599210=a201_0x8a95;if(_0x247919){const _0x506b93=_0x247919[_0x599210(0xab)],_0x301260=_0x3de52d[_0x599210(0xc7)];let _0x45bc04=_0x3de52d[_0x599210(0xc7)]+_0x3de52d[_0x599210(0x9c)],_0x6862af;return _0x45bc04>=_0x506b93?(_0x45bc04=_0x506b93,_0x6862af=0xc8):_0x6862af=0xce,_0x7b7a3a[_0x599210(0xcd)](_0x6862af),_0x7b7a3a[_0x599210(0xa5)]('Content-Range',_0x301260+'-'+_0x45bc04+'/'+_0x506b93)[_0x599210(0xd3)](_0x247919);}return null;};}function saveUpdates(_0x28b19d){return function(_0x8702c9){const _0x2c0423=a201_0x8a95;if(_0x8702c9)return _0x8702c9['update'](_0x28b19d)[_0x2c0423(0xbb)](function(_0x1e9f4b){return _0x1e9f4b;});return null;};}function removeEntity(_0x315e3e){return function(_0x1e4ed4){const _0x362269=a201_0x8a95;if(_0x1e4ed4)return _0x1e4ed4[_0x362269(0xd0)]()[_0x362269(0xbb)](function(){const _0x406a9e=_0x362269,_0xbedb2e=_0x1e4ed4[_0x406a9e(0x97)]({'plain':!![]}),_0x2a899a=_0x406a9e(0xb0);return db['UserProfileResource'][_0x406a9e(0xd0)]({'where':{'type':_0x2a899a,'resourceId':_0xbedb2e['id']}})[_0x406a9e(0xbb)](function(){return _0x1e4ed4;});})[_0x362269(0xbb)](function(){const _0x3493d3=_0x362269;_0x315e3e[_0x3493d3(0xcd)](0xcc)['end']();});};}function handleEntityNotFound(_0x27aa47){return function(_0x5d6877){return!_0x5d6877&&_0x27aa47['sendStatus'](0x194),_0x5d6877;};}function handleError(_0x28ab37,_0x3c957f){return _0x3c957f=_0x3c957f||0x1f4,function(_0x386349){const _0xa687d7=a201_0x8a95;logger[_0xa687d7(0x9e)](_0x386349[_0xa687d7(0xbc)]),_0x386349[_0xa687d7(0xed)]&&delete _0x386349[_0xa687d7(0xed)],_0x28ab37[_0xa687d7(0xcd)](_0x3c957f)['send'](_0x386349);};}exports['index']=function(_0x188568,_0x400094){const _0x39b966=a201_0x1b02c9;let _0x2fa533={};const _0x121dac={},_0xa7badc={'count':0x0,'rows':[]},_0x41c993=_['map'](db[_0x39b966(0xc4)][_0x39b966(0xba)],function(_0x575639){const _0x50cf7e=_0x39b966;return{'name':_0x575639[_0x50cf7e(0xb9)],'type':_0x575639[_0x50cf7e(0xaa)][_0x50cf7e(0xc5)]};});_0x121dac[_0x39b966(0xde)]=_[_0x39b966(0xeb)](_0x41c993,'name'),_0x121dac[_0x39b966(0x96)]=_['keys'](_0x188568[_0x39b966(0x96)]),_0x121dac['filters']=_[_0x39b966(0xb4)](_0x121dac[_0x39b966(0xde)],_0x121dac[_0x39b966(0x96)]),_0x2fa533['attributes']=_['intersection'](_0x121dac['model'],qs[_0x39b966(0x99)](_0x188568[_0x39b966(0x96)][_0x39b966(0x99)])),_0x2fa533[_0x39b966(0xe5)]=_0x2fa533['attributes'][_0x39b966(0xc1)]?_0x2fa533[_0x39b966(0xe5)]:_0x121dac[_0x39b966(0xde)];typeof _0x188568['query'][_0x39b966(0xcf)]==='undefined'&&(_0x2fa533['limit']=qs[_0x39b966(0x9c)](_0x188568[_0x39b966(0x96)][_0x39b966(0x9c)]),_0x2fa533['offset']=qs['offset'](_0x188568[_0x39b966(0x96)][_0x39b966(0xc7)]));_0x2fa533[_0x39b966(0xa2)]=qs[_0x39b966(0xa6)](_0x188568[_0x39b966(0x96)][_0x39b966(0xa6)]),_0x2fa533[_0x39b966(0xcc)]=qs[_0x39b966(0xd4)](_[_0x39b966(0xe4)](_0x188568[_0x39b966(0x96)],_0x121dac[_0x39b966(0xd4)]),_0x41c993);_0x188568[_0x39b966(0x96)]['filter']&&(_0x2fa533[_0x39b966(0xcc)]=_['merge'](_0x2fa533[_0x39b966(0xcc)],{[Op['or']]:_[_0x39b966(0xeb)](_0x41c993,function(_0x4e8647){const _0x16b6e2=_0x39b966;if(_0x4e8647[_0x16b6e2(0xaa)]!=='VIRTUAL'){const _0x4d7221={};return _0x4d7221[_0x4e8647[_0x16b6e2(0xed)]]={[Op[_0x16b6e2(0xd9)]]:'%'+_0x188568[_0x16b6e2(0x96)][_0x16b6e2(0xcb)]+'%'},_0x4d7221;}})}));_0x2fa533=_[_0x39b966(0xe0)]({},_0x2fa533,_0x188568[_0x39b966(0xa0)]);const _0x536e70={'where':_0x2fa533[_0x39b966(0xcc)]};return db['Dashboard'][_0x39b966(0xab)](_0x536e70)['then'](function(_0x3221f7){const _0x52346d=_0x39b966;return _0xa7badc['count']=_0x3221f7,_0x188568[_0x52346d(0x96)][_0x52346d(0xd8)]&&(_0x2fa533['include']=[{'all':!![]}]),db[_0x52346d(0xc4)][_0x52346d(0x9a)](_0x2fa533);})[_0x39b966(0xbb)](function(_0x4cdb57){return _0xa7badc['rows']=_0x4cdb57,_0xa7badc;})[_0x39b966(0xbb)](respondWithFilteredResult(_0x400094,_0x2fa533))[_0x39b966(0xc8)](handleError(_0x400094,null));},exports[a201_0x1b02c9(0xa4)]=function(_0x19149f,_0x35f148){const _0x35083d=a201_0x1b02c9;let _0x504207={'raw':![],'where':{'id':_0x19149f[_0x35083d(0xe3)]['id']}};const _0x25d229={};return _0x25d229[_0x35083d(0xde)]=_[_0x35083d(0xe6)](db[_0x35083d(0xc4)]['rawAttributes']),_0x25d229[_0x35083d(0x96)]=_[_0x35083d(0xe6)](_0x19149f[_0x35083d(0x96)]),_0x25d229[_0x35083d(0xd4)]=_[_0x35083d(0xb4)](_0x25d229[_0x35083d(0xde)],_0x25d229[_0x35083d(0x96)]),_0x504207[_0x35083d(0xe5)]=_[_0x35083d(0xb4)](_0x25d229[_0x35083d(0xde)],qs[_0x35083d(0x99)](_0x19149f[_0x35083d(0x96)][_0x35083d(0x99)])),_0x504207[_0x35083d(0xe5)]=_0x504207[_0x35083d(0xe5)][_0x35083d(0xc1)]?_0x504207[_0x35083d(0xe5)]:_0x25d229['model'],_0x19149f['query'][_0x35083d(0xd8)]&&(_0x504207[_0x35083d(0xec)]=[{'all':!![]}]),_0x504207=_[_0x35083d(0xe0)]({},_0x504207,_0x19149f[_0x35083d(0xa0)]),db[_0x35083d(0xc4)][_0x35083d(0xe7)](_0x504207)[_0x35083d(0xbb)](handleEntityNotFound(_0x35f148,null))['then'](respondWithResult(_0x35f148,null))['catch'](handleError(_0x35f148,null));},exports[a201_0x1b02c9(0xa1)]=function(_0x129fbc,_0xfe39cc){const _0x4abca6=a201_0x1b02c9;return db[_0x4abca6(0xc4)][_0x4abca6(0xa1)](_0x129fbc[_0x4abca6(0xda)],{})['then'](function(_0x2e3646){const _0x552a99=_0x4abca6,_0x5f4bdb=_0x129fbc[_0x552a99(0xbd)][_0x552a99(0x97)]({'plain':!![]});if(!_0x5f4bdb)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x5f4bdb['role']===_0x552a99(0xbd)){const _0x44929f=_0x2e3646[_0x552a99(0x97)]({'plain':!![]}),_0x5c5cb5=_0x552a99(0xb0);return db[_0x552a99(0xe2)]['findOne']({'where':{'name':_0x5c5cb5,'userProfileId':_0x5f4bdb['userProfileId']},'raw':!![]})[_0x552a99(0xbb)](function(_0x285476){const _0x5ca9e2=_0x552a99;return _0x285476&&_0x285476[_0x5ca9e2(0xa9)]===0x0?db['UserProfileResource'][_0x5ca9e2(0xa1)]({'name':_0x44929f[_0x5ca9e2(0xed)],'resourceId':_0x44929f['id'],'type':_0x285476[_0x5ca9e2(0xed)],'sectionId':_0x285476['id']},{})[_0x5ca9e2(0xbb)](function(){return _0x2e3646;}):_0x2e3646;})[_0x552a99(0xc8)](function(_0x1df078){const _0x4db056=_0x552a99;logger[_0x4db056(0x9e)]('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0x1df078);throw _0x1df078;});}return _0x2e3646;})[_0x4abca6(0xbb)](respondWithResult(_0xfe39cc,0xc9))[_0x4abca6(0xc8)](handleError(_0xfe39cc,null));},exports[a201_0x1b02c9(0xc0)]=function(_0xb0352,_0x41582e){const _0x10562d=a201_0x1b02c9;let _0x20989d={'where':{'id':_0xb0352['params']['id']}};const _0x4afc32={};return _0x4afc32['model']=_[_0x10562d(0xe6)](db[_0x10562d(0xc4)]['rawAttributes']),_0x20989d[_0x10562d(0xe5)]=_['intersection'](_0x4afc32[_0x10562d(0xde)],qs[_0x10562d(0x99)](_0xb0352[_0x10562d(0x96)][_0x10562d(0x99)])),_0x20989d[_0x10562d(0xe5)]=_0x20989d[_0x10562d(0xe5)]['length']?_0x20989d[_0x10562d(0xe5)]:_0x4afc32['model'],_0xb0352[_0x10562d(0x96)][_0x10562d(0xd8)]&&(_0x20989d[_0x10562d(0xec)]=[{'all':!![]}]),_0x20989d=_[_0x10562d(0xe0)]({},_0x20989d,_0xb0352[_0x10562d(0xa0)]),db[_0x10562d(0xc4)][_0x10562d(0xe7)](_0x20989d)[_0x10562d(0xbb)](handleEntityNotFound(_0x41582e,null))[_0x10562d(0xbb)](function(_0x355b46){const _0x54858b=_0x10562d;if(_0x355b46){let _0xdf3b13=_0x355b46[_0x54858b(0x97)]({'plain':!![]});return _0xdf3b13=qs[_0x54858b(0xd6)](_0xdf3b13,['id','createdAt',_0x54858b(0xb1)]),_0xb0352[_0x54858b(0xda)]=_[_0x54858b(0xd6)](_0xb0352['body'],['id',_0x54858b(0xdd),'updatedAt']),db['Dashboard'][_0x54858b(0xa1)](_[_0x54858b(0xe0)](_0xdf3b13,_0xb0352[_0x54858b(0xda)]),{'include':_0xb0352[_0x54858b(0x96)][_0x54858b(0xd8)]?[{'all':!![]}]:undefined})['then'](function(_0xfa6602){const _0x50c8c8=_0x54858b,_0x5bf9ab=_0xb0352[_0x50c8c8(0xbd)]['get']({'plain':!![]});if(!_0x5bf9ab)throw new Error(_0x50c8c8(0xc9));if(_0x5bf9ab[_0x50c8c8(0xe8)]===_0x50c8c8(0xbd)){const _0x540018=_0xfa6602[_0x50c8c8(0x97)]({'plain':!![]}),_0x1b091a=_0x50c8c8(0xb0);return db['UserProfileSection'][_0x50c8c8(0xe7)]({'where':{'name':_0x1b091a,'userProfileId':_0x5bf9ab[_0x50c8c8(0xd1)]},'raw':!![]})[_0x50c8c8(0xbb)](function(_0x3c4860){const _0x49855e=_0x50c8c8;return _0x3c4860&&_0x3c4860[_0x49855e(0xa9)]===0x0?db[_0x49855e(0x9f)][_0x49855e(0xa1)]({'name':_0x540018[_0x49855e(0xed)],'resourceId':_0x540018['id'],'type':_0x3c4860[_0x49855e(0xed)],'sectionId':_0x3c4860['id']},{})['then'](function(){return _0xfa6602;}):_0xfa6602;})[_0x50c8c8(0xc8)](function(_0x2f3ffa){const _0x56c7ae=_0x50c8c8;logger[_0x56c7ae(0x9e)](_0x56c7ae(0xb7),_0x2f3ffa);throw _0x2f3ffa;});}return _0xfa6602;});}})[_0x10562d(0xbb)](respondWithResult(_0x41582e,0xc9))[_0x10562d(0xc8)](handleError(_0x41582e,null));},exports[a201_0x1b02c9(0xc6)]=function(_0x1bf02b,_0x487368){const _0x334ea8=a201_0x1b02c9;return _0x1bf02b[_0x334ea8(0xda)]['id']&&delete _0x1bf02b[_0x334ea8(0xda)]['id'],db[_0x334ea8(0xc4)]['findOne']({'where':{'id':_0x1bf02b[_0x334ea8(0xe3)]['id']}})[_0x334ea8(0xbb)](handleEntityNotFound(_0x487368,null))[_0x334ea8(0xbb)](saveUpdates(_0x1bf02b[_0x334ea8(0xda)],null))[_0x334ea8(0xbb)](respondWithResult(_0x487368,null))[_0x334ea8(0xc8)](handleError(_0x487368,null));},exports['destroy']=function(_0x5aa6df,_0x49e976){const _0x336f06=a201_0x1b02c9;return db['Dashboard'][_0x336f06(0xe7)]({'where':{'id':_0x5aa6df['params']['id']}})['then'](handleEntityNotFound(_0x49e976,null))[_0x336f06(0xbb)](removeEntity(_0x49e976,null))[_0x336f06(0xc8)](handleError(_0x49e976,null));};function widgetAttributes(_0xf22c1){const _0x18db0b=a201_0x1b02c9;try{switch(_0xf22c1[_0x18db0b(0xaa)]){case _0x18db0b(0x9d):return[{'name':_0x18db0b(0xce),'value':_0xf22c1[_0x18db0b(0xce)]||(_0xf22c1[_0x18db0b(0xca)]&&_0xf22c1[_0x18db0b(0xca)][0x0]?_0xf22c1[_0x18db0b(0xca)][0x0][_0x18db0b(0xa7)]:undefined)||_0x18db0b(0xac)}];case _0x18db0b(0xc3):return[{'name':_0x18db0b(0x95),'value':_0xf22c1[_0x18db0b(0x95)]||(_0xf22c1[_0x18db0b(0xca)]&&_0xf22c1[_0x18db0b(0xca)][0x0]?_0xf22c1[_0x18db0b(0xca)][0x0][_0x18db0b(0xa7)]:undefined)||''}];case'clock':return[{'name':_0x18db0b(0xb5),'value':_0xf22c1[_0x18db0b(0xb5)]||(_0xf22c1[_0x18db0b(0xca)]&&_0xf22c1[_0x18db0b(0xca)][0x0]?_0xf22c1[_0x18db0b(0xca)][0x0][_0x18db0b(0xa7)]:undefined)||'HH:mm:ss'},{'name':_0x18db0b(0xaf),'value':_0xf22c1[_0x18db0b(0xaf)]||(_0xf22c1[_0x18db0b(0xca)]&&_0xf22c1[_0x18db0b(0xca)][0x1]?_0xf22c1[_0x18db0b(0xca)][0x1][_0x18db0b(0xa7)]:undefined)||'0.00'},{'name':_0x18db0b(0xe9),'value':_0xf22c1['attrFontSize']||(_0xf22c1[_0x18db0b(0xca)]&&_0xf22c1[_0x18db0b(0xca)][0x2]?_0xf22c1[_0x18db0b(0xca)][0x2][_0x18db0b(0xa7)]:undefined)||0xc}];case _0x18db0b(0xae):return[{'name':_0x18db0b(0xad),'value':_0xf22c1[_0x18db0b(0xad)]||(_0xf22c1[_0x18db0b(0xca)]&&_0xf22c1['attrs'][0x0]?_0xf22c1[_0x18db0b(0xca)][0x0][_0x18db0b(0xa7)]:undefined)||'total'},{'name':'attrVoiceQueues','value':_0xf22c1[_0x18db0b(0xa8)]||(_0xf22c1[_0x18db0b(0xca)]&&_0xf22c1[_0x18db0b(0xca)][0x1]?_0xf22c1['attrs'][0x1][_0x18db0b(0xa7)]:undefined)||[]},{'name':_0x18db0b(0xe9),'value':_0xf22c1['attrFontSize']||(_0xf22c1[_0x18db0b(0xca)]&&_0xf22c1[_0x18db0b(0xca)][0x2]?_0xf22c1[_0x18db0b(0xca)][0x2]['value']:undefined)||0x14}];case'multibar-chart':case _0x18db0b(0xea):return[{'name':'attrSerie1','value':_0xf22c1['attrSerie1']||(_0xf22c1[_0x18db0b(0xca)]&&_0xf22c1[_0x18db0b(0xca)][0x0]?_0xf22c1[_0x18db0b(0xca)][0x0]['value']:undefined)||'total'},{'name':'attrSerie2','value':_0xf22c1[_0x18db0b(0xbe)]||(_0xf22c1['attrs']&&_0xf22c1[_0x18db0b(0xca)][0x1]?_0xf22c1[_0x18db0b(0xca)][0x1]['value']:undefined)||null},{'name':_0x18db0b(0xd2),'value':_0xf22c1[_0x18db0b(0xd2)]||(_0xf22c1['attrs']&&_0xf22c1['attrs'][0x2]?_0xf22c1[_0x18db0b(0xca)][0x2]['value']:undefined)||null},{'name':_0x18db0b(0xa8),'value':_0xf22c1[_0x18db0b(0xa8)]||(_0xf22c1[_0x18db0b(0xca)]&&_0xf22c1['attrs'][0x3]?_0xf22c1[_0x18db0b(0xca)][0x3][_0x18db0b(0xa7)]:undefined)||[]}];case _0x18db0b(0xbf):return[{'name':'attrReport','type':_0xf22c1[_0x18db0b(0xc2)]||(_0xf22c1[_0x18db0b(0xca)]&&_0xf22c1[_0x18db0b(0xca)][0x0]?_0xf22c1[_0x18db0b(0xca)][0x0][_0x18db0b(0xaa)]:undefined)||null,'value':_0xf22c1[_0x18db0b(0xdc)]||(_0xf22c1['attrs']&&_0xf22c1[_0x18db0b(0xca)][0x0]?_0xf22c1[_0x18db0b(0xca)][0x0]['value']:undefined)||null},{'name':_0x18db0b(0xa3),'value':_0xf22c1[_0x18db0b(0xa3)]||(_0xf22c1['attrs']&&_0xf22c1[_0x18db0b(0xca)][0x1]?_0xf22c1[_0x18db0b(0xca)][0x1][_0x18db0b(0xa7)]:undefined)||0x0}];default:return[];}}catch(_0x52c5d7){return logger[_0x18db0b(0x9e)](_0x18db0b(0xb3),JSON[_0x18db0b(0xd7)](_0x52c5d7)),[];}}exports[a201_0x1b02c9(0xee)]=function(_0x53515c,_0x24f856){const _0x59786a=a201_0x1b02c9;return _0x53515c['body']['id']&&delete _0x53515c['body']['id'],db['Dashboard']['findOne']({'where':{'id':_0x53515c[_0x59786a(0xe3)]['id']}})['then'](handleEntityNotFound(_0x24f856,null))[_0x59786a(0xbb)](function(_0x4f516e){const _0x24b2a4=_0x59786a;if(_0x4f516e)return _0x53515c[_0x24b2a4(0xda)][_0x24b2a4(0x9b)]=_0x4f516e['id'],_0x53515c[_0x24b2a4(0xda)][_0x24b2a4(0xca)]=widgetAttributes(_0x53515c[_0x24b2a4(0xda)]),db[_0x24b2a4(0xdf)][_0x24b2a4(0xa1)](_0x53515c[_0x24b2a4(0xda)]);})['then'](respondWithResult(_0x24f856,null))[_0x59786a(0xc8)](handleError(_0x24f856,null));},exports['getItems']=function(_0x516290,_0x466289){const _0x5a47b9=a201_0x1b02c9;let _0x48ee56={};const _0x2889a4={};let _0x4fcd6a,_0xbedf52;return db[_0x5a47b9(0xc4)][_0x5a47b9(0xe7)]({'where':{'id':_0x516290[_0x5a47b9(0xe3)]['id']}})[_0x5a47b9(0xbb)](handleEntityNotFound(_0x466289,null))['then'](function(_0x2ac722){const _0x19d34f=_0x5a47b9;if(_0x2ac722)return _0x4fcd6a=_0x2ac722,_0x2889a4[_0x19d34f(0xde)]=_['keys'](db[_0x19d34f(0xdf)]['rawAttributes']),_0x2889a4[_0x19d34f(0x96)]=_[_0x19d34f(0xe6)](_0x516290[_0x19d34f(0x96)]),_0x2889a4['filters']=_[_0x19d34f(0xb4)](_0x2889a4[_0x19d34f(0xde)],_0x2889a4[_0x19d34f(0x96)]),_0x48ee56[_0x19d34f(0xe5)]=_[_0x19d34f(0xb4)](_0x2889a4[_0x19d34f(0xde)],qs['fields'](_0x516290['query'][_0x19d34f(0x99)])),_0x48ee56[_0x19d34f(0xe5)]=_0x48ee56[_0x19d34f(0xe5)][_0x19d34f(0xc1)]?_0x48ee56[_0x19d34f(0xe5)]:_0x2889a4[_0x19d34f(0xde)],_0x48ee56[_0x19d34f(0xa2)]=qs['sort'](_0x516290[_0x19d34f(0x96)][_0x19d34f(0xa6)]),_0x48ee56[_0x19d34f(0xcc)]=qs[_0x19d34f(0xd4)](_[_0x19d34f(0xe4)](_0x516290[_0x19d34f(0x96)],_0x2889a4[_0x19d34f(0xd4)])),_0x516290[_0x19d34f(0x96)][_0x19d34f(0xcb)]&&(_0x48ee56[_0x19d34f(0xcc)]=_['merge'](_0x48ee56['where'],{[Op['or']]:_[_0x19d34f(0xeb)](_0x48ee56[_0x19d34f(0xe5)],function(_0xc06f8d){const _0x3f6f4c=_0x19d34f,_0x559bb0={};return _0x559bb0[_0xc06f8d]={[Op['like']]:'%'+_0x516290['query'][_0x3f6f4c(0xcb)]+'%'},_0x559bb0;})})),_0x48ee56=_['merge']({},_0x48ee56,_0x516290[_0x19d34f(0xa0)]),_0x4fcd6a[_0x19d34f(0xd5)](_0x48ee56);})['then'](function(_0x3803de){const _0x55e838=_0x5a47b9;if(_0x3803de)return _0xbedf52=_0x3803de[_0x55e838(0xc1)],typeof _0x516290[_0x55e838(0x96)]['nolimit']===_0x55e838(0xb2)&&(_0x48ee56[_0x55e838(0x9c)]=qs[_0x55e838(0x9c)](_0x516290[_0x55e838(0x96)][_0x55e838(0x9c)]),_0x48ee56[_0x55e838(0xc7)]=qs[_0x55e838(0xc7)](_0x516290['query'][_0x55e838(0xc7)])),_0x4fcd6a[_0x55e838(0xd5)](_0x48ee56);})[_0x5a47b9(0xbb)](function(_0x33ba3){if(_0x33ba3)return _0x33ba3?{'count':_0xbedf52,'rows':_0x33ba3}:null;})[_0x5a47b9(0xbb)](respondWithResult(_0x466289,null))[_0x5a47b9(0xc8)](handleError(_0x466289,null));}; \ No newline at end of file diff --git a/server/api/dashboard/dashboard.events.js b/server/api/dashboard/dashboard.events.js index d6556d1..6120b85 100644 --- a/server/api/dashboard/dashboard.events.js +++ b/server/api/dashboard/dashboard.events.js @@ -1 +1 @@ -const a169_0x2115=['emit','undefined','../../mysqldb','exports','events','addHook','save','remove','Dashboard'];(function(_0x1fbe2e,_0x211558){const _0x477062=function(_0x59f815){while(--_0x59f815){_0x1fbe2e['push'](_0x1fbe2e['shift']());}};_0x477062(++_0x211558);}(a169_0x2115,0x11b));const a169_0x4770=function(_0x1fbe2e,_0x211558){_0x1fbe2e=_0x1fbe2e-0x0;let _0x477062=a169_0x2115[_0x1fbe2e];return _0x477062;};const _0x39f0ab=a169_0x4770;'use strict';const EventEmitter=require(_0x39f0ab('0x0')),Dashboard=require(_0x39f0ab('0x7'))['db'][_0x39f0ab('0x4')],DashboardEvents=new EventEmitter();DashboardEvents['setMaxListeners'](0x0);const events={'afterCreate':_0x39f0ab('0x2'),'afterUpdate':'update','afterDestroy':_0x39f0ab('0x3')};function emitEvent(_0x59f815){return function(_0x4c4da0){const _0xf70105=a169_0x4770;DashboardEvents[_0xf70105('0x5')](_0x59f815+':'+_0x4c4da0['id'],_0x4c4da0),DashboardEvents[_0xf70105('0x5')](_0x59f815,_0x4c4da0);};}for(const e in events){if(typeof events[e]!==_0x39f0ab('0x6')){const event=events[e];Dashboard[_0x39f0ab('0x1')](e,emitEvent(event));}}module[_0x39f0ab('0x8')]=DashboardEvents; \ No newline at end of file +const a202_0x3a41=['exports','events','../../mysqldb','save','remove','setMaxListeners'];(function(_0x569002,_0x462013){const _0x3a41df=function(_0x2a2937){while(--_0x2a2937){_0x569002['push'](_0x569002['shift']());}};_0x3a41df(++_0x462013);}(a202_0x3a41,0x1ae));const a202_0x2a29=function(_0x569002,_0x462013){_0x569002=_0x569002-0x14f;let _0x3a41df=a202_0x3a41[_0x569002];return _0x3a41df;};const a202_0x1d64e9=a202_0x2a29;'use strict';const EventEmitter=require(a202_0x1d64e9(0x152)),Dashboard=require(a202_0x1d64e9(0x153))['db']['Dashboard'],DashboardEvents=new EventEmitter();DashboardEvents[a202_0x1d64e9(0x150)](0x0);const events={'afterCreate':a202_0x1d64e9(0x154),'afterUpdate':'update','afterDestroy':a202_0x1d64e9(0x14f)};function emitEvent(_0x529b91){return function(_0x456c4d){DashboardEvents['emit'](_0x529b91+':'+_0x456c4d['id'],_0x456c4d),DashboardEvents['emit'](_0x529b91,_0x456c4d);};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];Dashboard['addHook'](e,emitEvent(event));}}module[a202_0x1d64e9(0x151)]=DashboardEvents; \ No newline at end of file diff --git a/server/api/dashboard/dashboard.model.js b/server/api/dashboard/dashboard.model.js index fc8cf8f..40eb667 100644 --- a/server/api/dashboard/dashboard.model.js +++ b/server/api/dashboard/dashboard.model.js @@ -1 +1 @@ -const a170_0x3f52=['exports','define','./dashboard.attributes','dashboards'];(function(_0x1f09fc,_0x3f52ba){const _0x22b12d=function(_0x58b8e0){while(--_0x58b8e0){_0x1f09fc['push'](_0x1f09fc['shift']());}};_0x22b12d(++_0x3f52ba);}(a170_0x3f52,0x195));const a170_0x22b1=function(_0x1f09fc,_0x3f52ba){_0x1f09fc=_0x1f09fc-0x0;let _0x22b12d=a170_0x3f52[_0x1f09fc];return _0x22b12d;};const _0x34e987=a170_0x22b1;'use strict';const attributes=require(_0x34e987('0x1'));module[_0x34e987('0x3')]=function(_0x58b8e0){const _0x13e9e7=_0x34e987,_0x1f7748=_0x58b8e0[_0x13e9e7('0x0')]('Dashboard',attributes,{'tableName':_0x13e9e7('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x1f7748;}; \ No newline at end of file +const a203_0x5056=['exports','init','./dashboard.attributes','Dashboard','sequelize','./dashboard.options','function'];(function(_0x29554c,_0x2c6745){const _0x505684=function(_0x220aba){while(--_0x220aba){_0x29554c['push'](_0x29554c['shift']());}};_0x505684(++_0x2c6745);}(a203_0x5056,0x1c2));const a203_0x220a=function(_0x29554c,_0x2c6745){_0x29554c=_0x29554c-0x1ae;let _0x505684=a203_0x5056[_0x29554c];return _0x505684;};const a203_0x5052d0=a203_0x220a;'use strict';const {Model}=require(a203_0x5052d0(0x1b0)),{attributes}=require(a203_0x5052d0(0x1ae)),{options}=require(a203_0x5052d0(0x1b1));class Dashboard extends Model{}function init(_0x3e0739,_0x3ce5b1){const _0x30ec33=a203_0x5052d0,_0x1f80ca=options(_0x3e0739),_0x1c294c=typeof _0x3ce5b1===_0x30ec33(0x1b2)?_0x3ce5b1(_0x1f80ca):_0x1f80ca;return Dashboard[_0x30ec33(0x1b4)](attributes,_0x1c294c),Dashboard;}module[a203_0x5052d0(0x1b3)][a203_0x5052d0(0x1af)]=Dashboard,module[a203_0x5052d0(0x1b3)]['init']=init; \ No newline at end of file diff --git a/server/api/dashboard/dashboard.options.js b/server/api/dashboard/dashboard.options.js new file mode 100644 index 0000000..5cf6788 --- /dev/null +++ b/server/api/dashboard/dashboard.options.js @@ -0,0 +1 @@ +var a204_0x4080=['options','dashboards'];(function(_0x44350f,_0x5a1bb4){var _0x408048=function(_0x545c0f){while(--_0x545c0f){_0x44350f['push'](_0x44350f['shift']());}};_0x408048(++_0x5a1bb4);}(a204_0x4080,0x172));var a204_0x545c=function(_0x44350f,_0x5a1bb4){_0x44350f=_0x44350f-0x18f;var _0x408048=a204_0x4080[_0x44350f];return _0x408048;};var a204_0x2dc452=a204_0x545c;function options(_0x48bb64){var _0x3d99da=a204_0x545c;return{'sequelize':_0x48bb64,'tableName':_0x3d99da(0x190),'paranoid':![],'indexes':[],'timestamps':!![]};}module['exports'][a204_0x2dc452(0x18f)]=options; \ No newline at end of file diff --git a/server/api/dashboard/dashboard.rpc.js b/server/api/dashboard/dashboard.rpc.js index 73525d4..0475a73 100644 --- a/server/api/dashboard/dashboard.rpc.js +++ b/server/api/dashboard/dashboard.rpc.js @@ -1 +1 @@ -const a171_0x48d6=['./dashboard.socket','../../rediscache','register'];(function(_0x4e80c6,_0x48d685){const _0xc9cfa3=function(_0x3349f5){while(--_0x3349f5){_0x4e80c6['push'](_0x4e80c6['shift']());}};_0xc9cfa3(++_0x48d685);}(a171_0x48d6,0x134));const a171_0xc9cf=function(_0x4e80c6,_0x48d685){_0x4e80c6=_0x4e80c6-0x0;let _0xc9cfa3=a171_0x48d6[_0x4e80c6];return _0xc9cfa3;};const _0x91a3b6=a171_0xc9cf;'use strict';const {getSocket}=require(_0x91a3b6('0x2')),socket=getSocket();require(_0x91a3b6('0x1'))[_0x91a3b6('0x0')](socket); \ No newline at end of file +const a205_0x2476=['../../rediscache','register'];(function(_0x599dba,_0x319236){const _0x24761f=function(_0x46709){while(--_0x46709){_0x599dba['push'](_0x599dba['shift']());}};_0x24761f(++_0x319236);}(a205_0x2476,0x186));const a205_0x4670=function(_0x599dba,_0x319236){_0x599dba=_0x599dba-0x64;let _0x24761f=a205_0x2476[_0x599dba];return _0x24761f;};const a205_0x3c9f59=a205_0x4670;'use strict';const {getSocket}=require(a205_0x3c9f59(0x64)),socket=getSocket();require('./dashboard.socket')[a205_0x3c9f59(0x65)](socket); \ No newline at end of file diff --git a/server/api/dashboard/dashboard.socket.js b/server/api/dashboard/dashboard.socket.js index 29c2d53..123571b 100644 --- a/server/api/dashboard/dashboard.socket.js +++ b/server/api/dashboard/dashboard.socket.js @@ -1 +1 @@ -const a172_0x4905=['dashboard:','emit'];(function(_0x3955d7,_0x49057b){const _0x53bdd9=function(_0x2832bb){while(--_0x2832bb){_0x3955d7['push'](_0x3955d7['shift']());}};_0x53bdd9(++_0x49057b);}(a172_0x4905,0x1e3));const a172_0x53bd=function(_0x3955d7,_0x49057b){_0x3955d7=_0x3955d7-0x0;let _0x53bdd9=a172_0x4905[_0x3955d7];return _0x53bdd9;};'use strict';const DashboardEvents=require('./dashboard.events'),events=['save','remove','update'];function createListener(_0x2832bb,_0x4d6c7e){return function(_0x333e00){const _0x326a20=a172_0x53bd;_0x4d6c7e[_0x326a20('0x0')](_0x2832bb,_0x333e00);};}exports['register']=function(_0x4a2bcf){const _0x462bcb=a172_0x53bd;for(let _0x45b816=0x0,_0x5ebd21=events['length'];_0x45b816<_0x5ebd21;_0x45b816++){const _0x1e9dc5=events[_0x45b816],_0x10afbf=createListener(_0x462bcb('0x1')+_0x1e9dc5,_0x4a2bcf);DashboardEvents['on'](_0x1e9dc5,_0x10afbf);}}; \ No newline at end of file +const a206_0x12a3=['./dashboard.events','remove','register','update','save','dashboard:','emit'];(function(_0x543ec2,_0x4374da){const _0x12a364=function(_0x25a8b5){while(--_0x25a8b5){_0x543ec2['push'](_0x543ec2['shift']());}};_0x12a364(++_0x4374da);}(a206_0x12a3,0x79));const a206_0x25a8=function(_0x543ec2,_0x4374da){_0x543ec2=_0x543ec2-0x15c;let _0x12a364=a206_0x12a3[_0x543ec2];return _0x12a364;};const a206_0x29be40=a206_0x25a8;'use strict';const DashboardEvents=require(a206_0x29be40(0x161)),events=[a206_0x29be40(0x15e),a206_0x29be40(0x162),a206_0x29be40(0x15d)];function createListener(_0x52d73f,_0x223a93){return function(_0x11ac2b){const _0x46e1b8=a206_0x25a8;_0x223a93[_0x46e1b8(0x160)](_0x52d73f,_0x11ac2b);};}exports[a206_0x29be40(0x15c)]=function(_0x371a71){const _0x14c1c0=a206_0x29be40;for(let _0x3bf057=0x0,_0x28fbb6=events['length'];_0x3bf057<_0x28fbb6;_0x3bf057++){const _0x5768ba=events[_0x3bf057],_0x53ccda=createListener(_0x14c1c0(0x15f)+_0x5768ba,_0x371a71);DashboardEvents['on'](_0x5768ba,_0x53ccda);}}; \ No newline at end of file diff --git a/server/api/dashboard/index.js b/server/api/dashboard/index.js index 5d81b9d..71a8b36 100644 --- a/server/api/dashboard/index.js +++ b/server/api/dashboard/index.js @@ -1 +1 @@ -const a173_0x5be3=['get','exports','show','/:id','delete','post','isAuthenticated','destroy','Router','/:id/items','getItems','express','update','put','clone','create','/:id/clone','addItem'];(function(_0x4b4f6c,_0x5be3e1){const _0x5738a0=function(_0x2f229f){while(--_0x2f229f){_0x4b4f6c['push'](_0x4b4f6c['shift']());}};_0x5738a0(++_0x5be3e1);}(a173_0x5be3,0x199));const a173_0x5738=function(_0x4b4f6c,_0x5be3e1){_0x4b4f6c=_0x4b4f6c-0x0;let _0x5738a0=a173_0x5be3[_0x4b4f6c];return _0x5738a0;};const _0x9ada3c=a173_0x5738;'use strict';const express=require(_0x9ada3c('0x10')),router=express[_0x9ada3c('0xd')](),auth=require('../../components/auth/service'),controller=require('./dashboard.controller');router[_0x9ada3c('0x5')]('/',auth[_0x9ada3c('0xb')](),controller['index']),router[_0x9ada3c('0x5')]('/:id',auth[_0x9ada3c('0xb')](),controller[_0x9ada3c('0x7')]),router[_0x9ada3c('0x5')](_0x9ada3c('0xe'),auth[_0x9ada3c('0xb')](),controller[_0x9ada3c('0xf')]),router[_0x9ada3c('0xa')]('/',auth['isAuthenticated'](),controller[_0x9ada3c('0x2')]),router[_0x9ada3c('0xa')](_0x9ada3c('0x3'),auth[_0x9ada3c('0xb')](),controller[_0x9ada3c('0x1')]),router[_0x9ada3c('0xa')]('/:id/items',auth[_0x9ada3c('0xb')](),controller[_0x9ada3c('0x4')]),router[_0x9ada3c('0x0')](_0x9ada3c('0x8'),auth[_0x9ada3c('0xb')](),controller[_0x9ada3c('0x11')]),router[_0x9ada3c('0x9')](_0x9ada3c('0x8'),auth[_0x9ada3c('0xb')](),controller[_0x9ada3c('0xc')]),module[_0x9ada3c('0x6')]=router; \ No newline at end of file +const a207_0x3cbc=['show','/:id','exports','destroy','getItems','isAuthenticated','./dashboard.controller','/:id/clone','/:id/items','index','put','post','Router','../../components/auth/service','get','express','update','create'];(function(_0x52d3e1,_0xe4ae82){const _0x3cbc9a=function(_0x1e1cd3){while(--_0x1e1cd3){_0x52d3e1['push'](_0x52d3e1['shift']());}};_0x3cbc9a(++_0xe4ae82);}(a207_0x3cbc,0x15b));const a207_0x1e1c=function(_0x52d3e1,_0xe4ae82){_0x52d3e1=_0x52d3e1-0x1d1;let _0x3cbc9a=a207_0x3cbc[_0x52d3e1];return _0x3cbc9a;};const a207_0x233c1d=a207_0x1e1c;'use strict';const express=require(a207_0x233c1d(0x1db)),router=express[a207_0x233c1d(0x1d8)](),auth=require(a207_0x233c1d(0x1d9)),controller=require(a207_0x233c1d(0x1d2));router[a207_0x233c1d(0x1da)]('/',auth[a207_0x233c1d(0x1d1)](),controller[a207_0x233c1d(0x1d5)]),router[a207_0x233c1d(0x1da)]('/:id',auth['isAuthenticated'](),controller[a207_0x233c1d(0x1de)]),router['get'](a207_0x233c1d(0x1d4),auth[a207_0x233c1d(0x1d1)](),controller[a207_0x233c1d(0x1e2)]),router[a207_0x233c1d(0x1d7)]('/',auth['isAuthenticated'](),controller[a207_0x233c1d(0x1dd)]),router['post'](a207_0x233c1d(0x1d3),auth[a207_0x233c1d(0x1d1)](),controller['clone']),router[a207_0x233c1d(0x1d7)](a207_0x233c1d(0x1d4),auth[a207_0x233c1d(0x1d1)](),controller['addItem']),router[a207_0x233c1d(0x1d6)](a207_0x233c1d(0x1df),auth[a207_0x233c1d(0x1d1)](),controller[a207_0x233c1d(0x1dc)]),router['delete'](a207_0x233c1d(0x1df),auth[a207_0x233c1d(0x1d1)](),controller[a207_0x233c1d(0x1e1)]),module[a207_0x233c1d(0x1e0)]=router; \ No newline at end of file diff --git a/server/api/dashboardItem/dashboardItem.attributes.js b/server/api/dashboardItem/dashboardItem.attributes.js index 00821a0..a300a58 100644 --- a/server/api/dashboardItem/dashboardItem.attributes.js +++ b/server/api/dashboardItem/dashboardItem.attributes.js @@ -1 +1 @@ -const a174_0x17e4=['exports','TEXT','stringify','getDataValue','long','#2196f3','sequelize','parse','setDataValue','attrs','STRING','INTEGER'];(function(_0x52e4cf,_0x17e4ce){const _0x32754b=function(_0x5c8e65){while(--_0x5c8e65){_0x52e4cf['push'](_0x52e4cf['shift']());}};_0x32754b(++_0x17e4ce);}(a174_0x17e4,0x9e));const a174_0x3275=function(_0x52e4cf,_0x17e4ce){_0x52e4cf=_0x52e4cf-0x0;let _0x32754b=a174_0x17e4[_0x52e4cf];return _0x32754b;};const _0x31aeb3=a174_0x3275;'use strict';const Sequelize=require(_0x31aeb3('0x4'));module[_0x31aeb3('0xa')]={'title':{'type':Sequelize[_0x31aeb3('0x8')],'allowNull':![]},'type':{'type':Sequelize[_0x31aeb3('0x8')](0x14),'allowNull':![],'validate':{'len':[0x1,0x14]}},'attrs':{'type':Sequelize[_0x31aeb3('0xb')](_0x31aeb3('0x2')),'get':function(){const _0x3e0c5c=_0x31aeb3;try{return JSON[_0x3e0c5c('0x5')](this[_0x3e0c5c('0x1')](_0x3e0c5c('0x7')));}catch(_0x5c8e65){return[];}},'set':function(_0x3e7d87){const _0x27ad1a=_0x31aeb3;try{this['setDataValue'](_0x27ad1a('0x7'),JSON[_0x27ad1a('0x0')](_0x3e7d87));}catch(_0x6bde9d){this[_0x27ad1a('0x6')](_0x27ad1a('0x7'),JSON[_0x27ad1a('0x0')]([]));}}},'sizeX':{'type':Sequelize[_0x31aeb3('0x9')],'allowNull':![],'defaultValue':0x1},'sizeY':{'type':Sequelize[_0x31aeb3('0x9')],'allowNull':![],'defaultValue':0x1},'row':{'type':Sequelize[_0x31aeb3('0x9')]},'col':{'type':Sequelize[_0x31aeb3('0x9')]},'background':{'type':Sequelize[_0x31aeb3('0x8')],'allowNull':![],'defaultValue':'#ffffff','validate':{'notEmpty':!![]}},'foreground':{'type':Sequelize[_0x31aeb3('0x8')],'allowNull':![],'defaultValue':_0x31aeb3('0x3'),'validate':{'notEmpty':!![]}},'link':{'type':Sequelize[_0x31aeb3('0x8')]}}; \ No newline at end of file +const a208_0x230e=['INTEGER','sequelize','attrs','long','STRING','exports','attributes','#ffffff','TEXT','stringify','#2196f3','setDataValue','getDataValue'];(function(_0x50f8af,_0x5c147f){const _0x230ec2=function(_0x2339ed){while(--_0x2339ed){_0x50f8af['push'](_0x50f8af['shift']());}};_0x230ec2(++_0x5c147f);}(a208_0x230e,0x72));const a208_0x2339=function(_0x50f8af,_0x5c147f){_0x50f8af=_0x50f8af-0xc9;let _0x230ec2=a208_0x230e[_0x50f8af];return _0x230ec2;};const a208_0x185a73=a208_0x2339;'use strict';const {DataTypes}=require(a208_0x185a73(0xcd)),attributes={'title':{'type':DataTypes[a208_0x185a73(0xd0)],'allowNull':![]},'type':{'type':DataTypes[a208_0x185a73(0xd0)](0x14),'allowNull':![],'validate':{'len':[0x1,0x14]}},'attrs':{'type':DataTypes[a208_0x185a73(0xd4)]({'length':a208_0x185a73(0xcf)}),'get':function(){const _0x26cb9d=a208_0x185a73;try{return JSON['parse'](this[_0x26cb9d(0xcb)](_0x26cb9d(0xce)));}catch(_0x318308){return[];}},'set':function(_0x264cd5){const _0x56df47=a208_0x185a73;try{this[_0x56df47(0xca)](_0x56df47(0xce),JSON[_0x56df47(0xd5)](_0x264cd5));}catch(_0x3eb432){this[_0x56df47(0xca)](_0x56df47(0xce),JSON[_0x56df47(0xd5)]([]));}}},'sizeX':{'type':DataTypes[a208_0x185a73(0xcc)],'allowNull':![],'defaultValue':0x1},'sizeY':{'type':DataTypes[a208_0x185a73(0xcc)],'allowNull':![],'defaultValue':0x1},'row':{'type':DataTypes[a208_0x185a73(0xcc)]},'col':{'type':DataTypes[a208_0x185a73(0xcc)]},'background':{'type':DataTypes[a208_0x185a73(0xd0)],'allowNull':![],'defaultValue':a208_0x185a73(0xd3),'validate':{'notEmpty':!![]}},'foreground':{'type':DataTypes[a208_0x185a73(0xd0)],'allowNull':![],'defaultValue':a208_0x185a73(0xc9),'validate':{'notEmpty':!![]}},'link':{'type':DataTypes['STRING']}};module[a208_0x185a73(0xd1)][a208_0x185a73(0xd2)]=attributes; \ No newline at end of file diff --git a/server/api/dashboardItem/dashboardItem.controller.js b/server/api/dashboardItem/dashboardItem.controller.js index 2b0a9a7..722145a 100644 --- a/server/api/dashboardItem/dashboardItem.controller.js +++ b/server/api/dashboardItem/dashboardItem.controller.js @@ -1 +1 @@ -const a175_0x15c8=['json','attrSerie1','../../rediscache','attrVoiceQueues','reportType','include','end','stringify','type','show','attrReport','destroy','attrRefresh','attrs','params','catch','attrPath','attrHourFormat','merge','then','clock','name','attrFontSize','body','options','keys','attrSerie3','total','attributes','fields','filters','attrMetric','../../components/parsers/qs','send','custom','../../mysqldb','./dashboardItem.socket','widgetAttributes:\x20%s','findOne','value','update','intersection','model','DashboardItem','attrSerie2','status','HH:mm:ss','create','stack','query','length','attrUrl','iframe','lodash','includeAll'];(function(_0x5159c8,_0x15c81d){const _0x93d220=function(_0x49f513){while(--_0x49f513){_0x5159c8['push'](_0x5159c8['shift']());}};_0x93d220(++_0x15c81d);}(a175_0x15c8,0xf4));const a175_0x93d2=function(_0x5159c8,_0x15c81d){_0x5159c8=_0x5159c8-0x0;let _0x93d220=a175_0x15c8[_0x5159c8];return _0x93d220;};const _0x6f6bf6=a175_0x93d2;'use strict';const _=require(_0x6f6bf6('0x1d')),qs=require(_0x6f6bf6('0x8')),logger=require('../../config/logger')('api'),{getSocket}=require(_0x6f6bf6('0x21')),socket=getSocket(),db=require(_0x6f6bf6('0xb'))['db'];require(_0x6f6bf6('0xc'))['register'](socket);function respondWithResult(_0x49f513,_0x402f8f){return _0x402f8f=_0x402f8f||0xc8,function(_0x35b9aa){const _0x3fe5f2=a175_0x93d2;if(_0x35b9aa)return _0x49f513[_0x3fe5f2('0x15')](_0x402f8f)[_0x3fe5f2('0x1f')](_0x35b9aa);};}function saveUpdates(_0x2b9556){return function(_0x805ff8){const _0x3444b2=a175_0x93d2;if(_0x805ff8)return _0x805ff8[_0x3444b2('0x10')](_0x2b9556)[_0x3444b2('0x32')](function(_0x5d1a9b){return _0x5d1a9b;});return null;};}function removeEntity(_0x280e74){return function(_0x44ab2a){const _0x41b420=a175_0x93d2;if(_0x44ab2a)return _0x44ab2a[_0x41b420('0x2a')]()[_0x41b420('0x32')](function(){const _0x5af982=_0x41b420;_0x280e74[_0x5af982('0x15')](0xcc)[_0x5af982('0x25')]();});};}function handleEntityNotFound(_0x2d278e){return function(_0x42b35d){return!_0x42b35d&&_0x2d278e['sendStatus'](0x194),_0x42b35d;};}function handleError(_0x23150c,_0x260802){return _0x260802=_0x260802||0x1f4,function(_0x572562){const _0x56ebb4=a175_0x93d2;logger['error'](_0x572562[_0x56ebb4('0x18')]),_0x572562[_0x56ebb4('0x34')]&&delete _0x572562[_0x56ebb4('0x34')],_0x23150c[_0x56ebb4('0x15')](_0x260802)[_0x56ebb4('0x9')](_0x572562);};}exports[_0x6f6bf6('0x28')]=function(_0x139e13,_0x31711a){const _0x38d57a=_0x6f6bf6;let _0x1485b7={'raw':![],'where':{'id':_0x139e13['params']['id']}};const _0xd727e2={};return _0xd727e2[_0x38d57a('0x12')]=_[_0x38d57a('0x1')](db[_0x38d57a('0x13')]['rawAttributes']),_0xd727e2[_0x38d57a('0x19')]=_[_0x38d57a('0x1')](_0x139e13[_0x38d57a('0x19')]),_0xd727e2[_0x38d57a('0x6')]=_[_0x38d57a('0x11')](_0xd727e2[_0x38d57a('0x12')],_0xd727e2[_0x38d57a('0x19')]),_0x1485b7[_0x38d57a('0x4')]=_['intersection'](_0xd727e2[_0x38d57a('0x12')],qs['fields'](_0x139e13[_0x38d57a('0x19')][_0x38d57a('0x5')])),_0x1485b7[_0x38d57a('0x4')]=_0x1485b7[_0x38d57a('0x4')][_0x38d57a('0x1a')]?_0x1485b7[_0x38d57a('0x4')]:_0xd727e2['model'],_0x139e13[_0x38d57a('0x19')][_0x38d57a('0x1e')]&&(_0x1485b7[_0x38d57a('0x24')]=[{'all':!![]}]),_0x1485b7=_[_0x38d57a('0x31')]({},_0x1485b7,_0x139e13[_0x38d57a('0x0')]),db[_0x38d57a('0x13')][_0x38d57a('0xe')](_0x1485b7)['then'](handleEntityNotFound(_0x31711a,null))[_0x38d57a('0x32')](respondWithResult(_0x31711a,null))['catch'](handleError(_0x31711a,null));},exports['destroy']=function(_0x4f3528,_0x7f0d1b){const _0x45a26b=_0x6f6bf6;return db['DashboardItem']['findOne']({'where':{'id':_0x4f3528[_0x45a26b('0x2d')]['id']}})[_0x45a26b('0x32')](handleEntityNotFound(_0x7f0d1b,null))[_0x45a26b('0x32')](removeEntity(_0x7f0d1b,null))[_0x45a26b('0x2e')](handleError(_0x7f0d1b,null));};function widgetAttributes(_0x578837){const _0x5ec02d=_0x6f6bf6;try{switch(_0x578837[_0x5ec02d('0x27')]){case _0x5ec02d('0x1c'):return[{'name':_0x5ec02d('0x1b'),'value':_0x578837[_0x5ec02d('0x1b')]||(_0x578837['attrs']&&_0x578837[_0x5ec02d('0x2c')][0x0]?_0x578837[_0x5ec02d('0x2c')][0x0][_0x5ec02d('0xf')]:undefined)||'https://'}];case _0x5ec02d('0xa'):return[{'name':_0x5ec02d('0x2f'),'value':_0x578837[_0x5ec02d('0x2f')]||(_0x578837[_0x5ec02d('0x2c')]&&_0x578837['attrs'][0x0]?_0x578837[_0x5ec02d('0x2c')][0x0][_0x5ec02d('0xf')]:undefined)||''}];case _0x5ec02d('0x33'):return[{'name':_0x5ec02d('0x30'),'value':_0x578837['attrHourFormat']||(_0x578837[_0x5ec02d('0x2c')]&&_0x578837[_0x5ec02d('0x2c')][0x0]?_0x578837['attrs'][0x0]['value']:undefined)||_0x5ec02d('0x16')},{'name':'attrTimezone','value':_0x578837['attrTimezone']||(_0x578837['attrs']&&_0x578837[_0x5ec02d('0x2c')][0x1]?_0x578837[_0x5ec02d('0x2c')][0x1][_0x5ec02d('0xf')]:undefined)||'0.00'},{'name':_0x5ec02d('0x35'),'value':_0x578837[_0x5ec02d('0x35')]||(_0x578837[_0x5ec02d('0x2c')]&&_0x578837[_0x5ec02d('0x2c')][0x2]?_0x578837['attrs'][0x2][_0x5ec02d('0xf')]:undefined)||0xc}];case'counter':return[{'name':_0x5ec02d('0x7'),'value':_0x578837[_0x5ec02d('0x7')]||(_0x578837[_0x5ec02d('0x2c')]&&_0x578837[_0x5ec02d('0x2c')][0x0]?_0x578837[_0x5ec02d('0x2c')][0x0][_0x5ec02d('0xf')]:undefined)||_0x5ec02d('0x3')},{'name':'attrVoiceQueues','value':_0x578837[_0x5ec02d('0x22')]||(_0x578837[_0x5ec02d('0x2c')]&&_0x578837[_0x5ec02d('0x2c')][0x1]?_0x578837['attrs'][0x1]['value']:undefined)||[]},{'name':_0x5ec02d('0x35'),'value':_0x578837['attrFontSize']||(_0x578837[_0x5ec02d('0x2c')]&&_0x578837[_0x5ec02d('0x2c')][0x2]?_0x578837['attrs'][0x2][_0x5ec02d('0xf')]:undefined)||0x14}];case'multibar-chart':case'pie-chart':return[{'name':_0x5ec02d('0x20'),'value':_0x578837[_0x5ec02d('0x20')]||(_0x578837[_0x5ec02d('0x2c')]&&_0x578837[_0x5ec02d('0x2c')][0x0]?_0x578837[_0x5ec02d('0x2c')][0x0]['value']:undefined)||'total'},{'name':_0x5ec02d('0x14'),'value':_0x578837['attrSerie2']||(_0x578837['attrs']&&_0x578837[_0x5ec02d('0x2c')][0x1]?_0x578837[_0x5ec02d('0x2c')][0x1][_0x5ec02d('0xf')]:undefined)||null},{'name':_0x5ec02d('0x2'),'value':_0x578837[_0x5ec02d('0x2')]||(_0x578837[_0x5ec02d('0x2c')]&&_0x578837[_0x5ec02d('0x2c')][0x2]?_0x578837[_0x5ec02d('0x2c')][0x2]['value']:undefined)||null},{'name':_0x5ec02d('0x22'),'value':_0x578837[_0x5ec02d('0x22')]||(_0x578837[_0x5ec02d('0x2c')]&&_0x578837['attrs'][0x3]?_0x578837[_0x5ec02d('0x2c')][0x3]['value']:undefined)||[]}];case'web-report':return[{'name':_0x5ec02d('0x29'),'type':_0x578837[_0x5ec02d('0x23')]||(_0x578837['attrs']&&_0x578837[_0x5ec02d('0x2c')][0x0]?_0x578837['attrs'][0x0]['type']:undefined)||null,'value':_0x578837[_0x5ec02d('0x29')]||(_0x578837[_0x5ec02d('0x2c')]&&_0x578837[_0x5ec02d('0x2c')][0x0]?_0x578837['attrs'][0x0]['value']:undefined)||null},{'name':_0x5ec02d('0x2b'),'value':_0x578837['attrRefresh']||(_0x578837[_0x5ec02d('0x2c')]&&_0x578837[_0x5ec02d('0x2c')][0x1]?_0x578837[_0x5ec02d('0x2c')][0x1][_0x5ec02d('0xf')]:undefined)||0x0}];default:return[];}}catch(_0x6eec8){return logger['error'](_0x5ec02d('0xd'),JSON[_0x5ec02d('0x26')](_0x6eec8)),[];}}exports[_0x6f6bf6('0x17')]=function(_0x4685ac,_0x1c3b45){const _0x567748=_0x6f6bf6;return _0x4685ac[_0x567748('0x36')]&&(_0x4685ac['body'][_0x567748('0x2c')]=widgetAttributes(_0x4685ac[_0x567748('0x36')])),db['DashboardItem'][_0x567748('0x17')](_0x4685ac[_0x567748('0x36')],{})['then'](respondWithResult(_0x1c3b45,0xc9))[_0x567748('0x2e')](handleError(_0x1c3b45,null));},exports[_0x6f6bf6('0x10')]=function(_0x46acc4,_0x3f60fb){const _0x54441a=_0x6f6bf6;return _0x46acc4[_0x54441a('0x36')]['id']&&delete _0x46acc4[_0x54441a('0x36')]['id'],_0x46acc4['body'][_0x54441a('0x2c')]=widgetAttributes(_0x46acc4[_0x54441a('0x36')]),db[_0x54441a('0x13')]['findOne']({'where':{'id':_0x46acc4[_0x54441a('0x2d')]['id']}})[_0x54441a('0x32')](handleEntityNotFound(_0x3f60fb,null))[_0x54441a('0x32')](saveUpdates(_0x46acc4[_0x54441a('0x36')],null))['then'](respondWithResult(_0x3f60fb,null))[_0x54441a('0x2e')](handleError(_0x3f60fb,null));}; \ No newline at end of file +const a209_0xac50=['attrSerie2','json','create','./dashboardItem.socket','type','show','merge','params','value','attrs','name','body','iframe','attrVoiceQueues','attrHourFormat','update','length','../../components/parsers/qs','sendStatus','attrFontSize','attributes','register','HH:mm:ss','options','attrReport','fields','web-report','model','multibar-chart','reportType','send','stringify','findOne','includeAll','attrSerie3','attrRefresh','catch','counter','error','keys','custom','api','query','DashboardItem','end','filters','attrSerie1','../../config/logger','attrUrl','then','status','../../mysqldb','intersection','total','destroy','clock'];(function(_0x9aa87f,_0x7d9245){const _0xac502e=function(_0x1a7ec7){while(--_0x1a7ec7){_0x9aa87f['push'](_0x9aa87f['shift']());}};_0xac502e(++_0x7d9245);}(a209_0xac50,0x113));const a209_0x1a7e=function(_0x9aa87f,_0x7d9245){_0x9aa87f=_0x9aa87f-0x100;let _0xac502e=a209_0xac50[_0x9aa87f];return _0xac502e;};const a209_0x40da20=a209_0x1a7e;'use strict';const _=require('lodash'),qs=require(a209_0x40da20(0x116)),logger=require(a209_0x40da20(0x134))(a209_0x40da20(0x12e)),{getSocket}=require('../../rediscache'),socket=getSocket(),{db}=require(a209_0x40da20(0x100));require(a209_0x40da20(0x108))[a209_0x40da20(0x11a)](socket);function respondWithResult(_0x4b0599,_0x565c42){return _0x565c42=_0x565c42||0xc8,function(_0x4e1d49){const _0x14795a=a209_0x1a7e;if(_0x4e1d49)return _0x4b0599[_0x14795a(0x137)](_0x565c42)[_0x14795a(0x106)](_0x4e1d49);};}function saveUpdates(_0x4c786f){return function(_0x21b4c8){const _0x21716a=a209_0x1a7e;if(_0x21b4c8)return _0x21b4c8[_0x21716a(0x114)](_0x4c786f)[_0x21716a(0x136)](function(_0x399d8b){return _0x399d8b;});return null;};}function removeEntity(_0x347e15){return function(_0x4fe057){const _0x105041=a209_0x1a7e;if(_0x4fe057)return _0x4fe057[_0x105041(0x103)]()[_0x105041(0x136)](function(){const _0x110a0f=_0x105041;_0x347e15[_0x110a0f(0x137)](0xcc)[_0x110a0f(0x131)]();});};}function handleEntityNotFound(_0x751cc){return function(_0x1dd2be){const _0x16cb31=a209_0x1a7e;return!_0x1dd2be&&_0x751cc[_0x16cb31(0x117)](0x194),_0x1dd2be;};}function handleError(_0x1504c8,_0x492686){return _0x492686=_0x492686||0x1f4,function(_0x1cba28){const _0x12f396=a209_0x1a7e;logger[_0x12f396(0x12b)](_0x1cba28['stack']),_0x1cba28[_0x12f396(0x10f)]&&delete _0x1cba28[_0x12f396(0x10f)],_0x1504c8[_0x12f396(0x137)](_0x492686)[_0x12f396(0x123)](_0x1cba28);};}exports[a209_0x40da20(0x10a)]=function(_0xb096b7,_0x4c991e){const _0xa415a1=a209_0x40da20;let _0x5ef8e8={'raw':![],'where':{'id':_0xb096b7[_0xa415a1(0x10c)]['id']}};const _0x6d5d3e={};return _0x6d5d3e['model']=_['keys'](db[_0xa415a1(0x130)]['rawAttributes']),_0x6d5d3e[_0xa415a1(0x12f)]=_[_0xa415a1(0x12c)](_0xb096b7[_0xa415a1(0x12f)]),_0x6d5d3e[_0xa415a1(0x132)]=_[_0xa415a1(0x101)](_0x6d5d3e['model'],_0x6d5d3e[_0xa415a1(0x12f)]),_0x5ef8e8['attributes']=_['intersection'](_0x6d5d3e[_0xa415a1(0x120)],qs[_0xa415a1(0x11e)](_0xb096b7[_0xa415a1(0x12f)]['fields'])),_0x5ef8e8['attributes']=_0x5ef8e8['attributes'][_0xa415a1(0x115)]?_0x5ef8e8[_0xa415a1(0x119)]:_0x6d5d3e[_0xa415a1(0x120)],_0xb096b7['query'][_0xa415a1(0x126)]&&(_0x5ef8e8['include']=[{'all':!![]}]),_0x5ef8e8=_[_0xa415a1(0x10b)]({},_0x5ef8e8,_0xb096b7[_0xa415a1(0x11c)]),db[_0xa415a1(0x130)][_0xa415a1(0x125)](_0x5ef8e8)[_0xa415a1(0x136)](handleEntityNotFound(_0x4c991e,null))[_0xa415a1(0x136)](respondWithResult(_0x4c991e,null))[_0xa415a1(0x129)](handleError(_0x4c991e,null));},exports['destroy']=function(_0x349231,_0x3809fa){const _0x36e78b=a209_0x40da20;return db[_0x36e78b(0x130)][_0x36e78b(0x125)]({'where':{'id':_0x349231[_0x36e78b(0x10c)]['id']}})[_0x36e78b(0x136)](handleEntityNotFound(_0x3809fa,null))[_0x36e78b(0x136)](removeEntity(_0x3809fa,null))[_0x36e78b(0x129)](handleError(_0x3809fa,null));};function widgetAttributes(_0x26532a){const _0x3ee808=a209_0x40da20;try{switch(_0x26532a[_0x3ee808(0x109)]){case _0x3ee808(0x111):return[{'name':_0x3ee808(0x135),'value':_0x26532a['attrUrl']||(_0x26532a[_0x3ee808(0x10e)]&&_0x26532a[_0x3ee808(0x10e)][0x0]?_0x26532a['attrs'][0x0]['value']:undefined)||'https://'}];case _0x3ee808(0x12d):return[{'name':'attrPath','value':_0x26532a['attrPath']||(_0x26532a[_0x3ee808(0x10e)]&&_0x26532a['attrs'][0x0]?_0x26532a['attrs'][0x0][_0x3ee808(0x10d)]:undefined)||''}];case _0x3ee808(0x104):return[{'name':'attrHourFormat','value':_0x26532a[_0x3ee808(0x113)]||(_0x26532a[_0x3ee808(0x10e)]&&_0x26532a['attrs'][0x0]?_0x26532a[_0x3ee808(0x10e)][0x0]['value']:undefined)||_0x3ee808(0x11b)},{'name':'attrTimezone','value':_0x26532a['attrTimezone']||(_0x26532a['attrs']&&_0x26532a['attrs'][0x1]?_0x26532a[_0x3ee808(0x10e)][0x1]['value']:undefined)||'0.00'},{'name':_0x3ee808(0x118),'value':_0x26532a[_0x3ee808(0x118)]||(_0x26532a[_0x3ee808(0x10e)]&&_0x26532a[_0x3ee808(0x10e)][0x2]?_0x26532a[_0x3ee808(0x10e)][0x2][_0x3ee808(0x10d)]:undefined)||0xc}];case _0x3ee808(0x12a):return[{'name':'attrMetric','value':_0x26532a['attrMetric']||(_0x26532a[_0x3ee808(0x10e)]&&_0x26532a[_0x3ee808(0x10e)][0x0]?_0x26532a[_0x3ee808(0x10e)][0x0][_0x3ee808(0x10d)]:undefined)||'total'},{'name':_0x3ee808(0x112),'value':_0x26532a[_0x3ee808(0x112)]||(_0x26532a[_0x3ee808(0x10e)]&&_0x26532a[_0x3ee808(0x10e)][0x1]?_0x26532a['attrs'][0x1][_0x3ee808(0x10d)]:undefined)||[]},{'name':_0x3ee808(0x118),'value':_0x26532a[_0x3ee808(0x118)]||(_0x26532a[_0x3ee808(0x10e)]&&_0x26532a[_0x3ee808(0x10e)][0x2]?_0x26532a[_0x3ee808(0x10e)][0x2]['value']:undefined)||0x14}];case _0x3ee808(0x121):case'pie-chart':return[{'name':_0x3ee808(0x133),'value':_0x26532a[_0x3ee808(0x133)]||(_0x26532a[_0x3ee808(0x10e)]&&_0x26532a[_0x3ee808(0x10e)][0x0]?_0x26532a['attrs'][0x0][_0x3ee808(0x10d)]:undefined)||_0x3ee808(0x102)},{'name':_0x3ee808(0x105),'value':_0x26532a['attrSerie2']||(_0x26532a[_0x3ee808(0x10e)]&&_0x26532a[_0x3ee808(0x10e)][0x1]?_0x26532a[_0x3ee808(0x10e)][0x1]['value']:undefined)||null},{'name':_0x3ee808(0x127),'value':_0x26532a[_0x3ee808(0x127)]||(_0x26532a[_0x3ee808(0x10e)]&&_0x26532a[_0x3ee808(0x10e)][0x2]?_0x26532a[_0x3ee808(0x10e)][0x2]['value']:undefined)||null},{'name':_0x3ee808(0x112),'value':_0x26532a[_0x3ee808(0x112)]||(_0x26532a[_0x3ee808(0x10e)]&&_0x26532a[_0x3ee808(0x10e)][0x3]?_0x26532a['attrs'][0x3]['value']:undefined)||[]}];case _0x3ee808(0x11f):return[{'name':_0x3ee808(0x11d),'type':_0x26532a[_0x3ee808(0x122)]||(_0x26532a['attrs']&&_0x26532a[_0x3ee808(0x10e)][0x0]?_0x26532a['attrs'][0x0][_0x3ee808(0x109)]:undefined)||null,'value':_0x26532a[_0x3ee808(0x11d)]||(_0x26532a[_0x3ee808(0x10e)]&&_0x26532a['attrs'][0x0]?_0x26532a[_0x3ee808(0x10e)][0x0][_0x3ee808(0x10d)]:undefined)||null},{'name':_0x3ee808(0x128),'value':_0x26532a['attrRefresh']||(_0x26532a[_0x3ee808(0x10e)]&&_0x26532a[_0x3ee808(0x10e)][0x1]?_0x26532a[_0x3ee808(0x10e)][0x1][_0x3ee808(0x10d)]:undefined)||0x0}];default:return[];}}catch(_0x47e1e0){return logger['error']('widgetAttributes:\x20%s',JSON[_0x3ee808(0x124)](_0x47e1e0)),[];}}exports['create']=function(_0x67f832,_0x5d7118){const _0x3f7146=a209_0x40da20;return _0x67f832['body']&&(_0x67f832[_0x3f7146(0x110)][_0x3f7146(0x10e)]=widgetAttributes(_0x67f832[_0x3f7146(0x110)])),db['DashboardItem'][_0x3f7146(0x107)](_0x67f832[_0x3f7146(0x110)],{})['then'](respondWithResult(_0x5d7118,0xc9))[_0x3f7146(0x129)](handleError(_0x5d7118,null));},exports[a209_0x40da20(0x114)]=function(_0x4c38f7,_0xcf8414){const _0x1c133a=a209_0x40da20;return _0x4c38f7[_0x1c133a(0x110)]['id']&&delete _0x4c38f7[_0x1c133a(0x110)]['id'],_0x4c38f7[_0x1c133a(0x110)][_0x1c133a(0x10e)]=widgetAttributes(_0x4c38f7[_0x1c133a(0x110)]),db['DashboardItem'][_0x1c133a(0x125)]({'where':{'id':_0x4c38f7[_0x1c133a(0x10c)]['id']}})['then'](handleEntityNotFound(_0xcf8414,null))[_0x1c133a(0x136)](saveUpdates(_0x4c38f7[_0x1c133a(0x110)],null))[_0x1c133a(0x136)](respondWithResult(_0xcf8414,null))[_0x1c133a(0x129)](handleError(_0xcf8414,null));}; \ No newline at end of file diff --git a/server/api/dashboardItem/dashboardItem.events.js b/server/api/dashboardItem/dashboardItem.events.js index 367fb8e..fd6486d 100644 --- a/server/api/dashboardItem/dashboardItem.events.js +++ b/server/api/dashboardItem/dashboardItem.events.js @@ -1 +1 @@ -const a176_0x4c66=['exports','remove','setMaxListeners','emit','update','DashboardItem','addHook'];(function(_0x284026,_0x4c664b){const _0x1668da=function(_0x46976){while(--_0x46976){_0x284026['push'](_0x284026['shift']());}};_0x1668da(++_0x4c664b);}(a176_0x4c66,0xa6));const a176_0x1668=function(_0x284026,_0x4c664b){_0x284026=_0x284026-0x0;let _0x1668da=a176_0x4c66[_0x284026];return _0x1668da;};const _0x39306c=a176_0x1668;'use strict';const EventEmitter=require('events'),DashboardItem=require('../../mysqldb')['db'][_0x39306c('0x0')],DashboardItemEvents=new EventEmitter();DashboardItemEvents[_0x39306c('0x4')](0x0);const events={'afterCreate':'save','afterUpdate':_0x39306c('0x6'),'afterDestroy':_0x39306c('0x3')};function emitEvent(_0x46976){return function(_0x292e03){const _0x5e2eb1=a176_0x1668;DashboardItemEvents[_0x5e2eb1('0x5')](_0x46976+':'+_0x292e03['id'],_0x292e03),DashboardItemEvents[_0x5e2eb1('0x5')](_0x46976,_0x292e03);};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];DashboardItem[_0x39306c('0x1')](e,emitEvent(event));}}module[_0x39306c('0x2')]=DashboardItemEvents; \ No newline at end of file +const a210_0x3930=['addHook','exports','emit','events','undefined','update','remove','../../mysqldb','DashboardItem'];(function(_0x10fd9b,_0x33dd62){const _0x393035=function(_0x5e32e1){while(--_0x5e32e1){_0x10fd9b['push'](_0x10fd9b['shift']());}};_0x393035(++_0x33dd62);}(a210_0x3930,0xa4));const a210_0x5e32=function(_0x10fd9b,_0x33dd62){_0x10fd9b=_0x10fd9b-0x14c;let _0x393035=a210_0x3930[_0x10fd9b];return _0x393035;};const a210_0x5cff31=a210_0x5e32;'use strict';const EventEmitter=require(a210_0x5cff31(0x14d)),DashboardItem=require(a210_0x5cff31(0x151))['db'][a210_0x5cff31(0x152)],DashboardItemEvents=new EventEmitter();DashboardItemEvents['setMaxListeners'](0x0);const events={'afterCreate':'save','afterUpdate':a210_0x5cff31(0x14f),'afterDestroy':a210_0x5cff31(0x150)};function emitEvent(_0x5c3b5b){return function(_0x494d0a){const _0x41f197=a210_0x5e32;DashboardItemEvents[_0x41f197(0x14c)](_0x5c3b5b+':'+_0x494d0a['id'],_0x494d0a),DashboardItemEvents['emit'](_0x5c3b5b,_0x494d0a);};}for(const e in events){if(typeof events[e]!==a210_0x5cff31(0x14e)){const event=events[e];DashboardItem[a210_0x5cff31(0x153)](e,emitEvent(event));}}module[a210_0x5cff31(0x154)]=DashboardItemEvents; \ No newline at end of file diff --git a/server/api/dashboardItem/dashboardItem.model.js b/server/api/dashboardItem/dashboardItem.model.js index fc41b62..2fc4284 100644 --- a/server/api/dashboardItem/dashboardItem.model.js +++ b/server/api/dashboardItem/dashboardItem.model.js @@ -1 +1 @@ -const a177_0x4f12=['./dashboardItem.attributes','define','dashboard_items','exports','DashboardItem'];(function(_0x374744,_0x4f1267){const _0x42446c=function(_0x499b8d){while(--_0x499b8d){_0x374744['push'](_0x374744['shift']());}};_0x42446c(++_0x4f1267);}(a177_0x4f12,0x191));const a177_0x4244=function(_0x374744,_0x4f1267){_0x374744=_0x374744-0x0;let _0x42446c=a177_0x4f12[_0x374744];return _0x42446c;};const _0x59d44a=a177_0x4244;'use strict';const attributes=require(_0x59d44a('0x4'));module[_0x59d44a('0x2')]=function(_0x499b8d){const _0x5f156a=_0x59d44a,_0x51fe92=_0x499b8d[_0x5f156a('0x0')](_0x5f156a('0x3'),attributes,{'tableName':_0x5f156a('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x51fe92;}; \ No newline at end of file +const a211_0x2e7e=['init','DashboardItem','./dashboardItem.attributes','./dashboardItem.options','exports'];(function(_0x14ae88,_0x3239a){const _0x2e7e8f=function(_0x1f4656){while(--_0x1f4656){_0x14ae88['push'](_0x14ae88['shift']());}};_0x2e7e8f(++_0x3239a);}(a211_0x2e7e,0x1f4));const a211_0x1f46=function(_0x14ae88,_0x3239a){_0x14ae88=_0x14ae88-0x18e;let _0x2e7e8f=a211_0x2e7e[_0x14ae88];return _0x2e7e8f;};const a211_0x2b769b=a211_0x1f46;'use strict';const {Model}=require('sequelize'),{attributes}=require(a211_0x2b769b(0x190)),{options}=require(a211_0x2b769b(0x191));class DashboardItem extends Model{}function init(_0x5192d3,_0x3987c7){const _0x2cccad=options(_0x5192d3),_0x17d105=typeof _0x3987c7==='function'?_0x3987c7(_0x2cccad):_0x2cccad;return DashboardItem['init'](attributes,_0x17d105),DashboardItem;}module[a211_0x2b769b(0x192)][a211_0x2b769b(0x18f)]=DashboardItem,module[a211_0x2b769b(0x192)][a211_0x2b769b(0x18e)]=init; \ No newline at end of file diff --git a/server/api/dashboardItem/dashboardItem.options.js b/server/api/dashboardItem/dashboardItem.options.js new file mode 100644 index 0000000..290fcf0 --- /dev/null +++ b/server/api/dashboardItem/dashboardItem.options.js @@ -0,0 +1 @@ +var a212_0x41b9=['exports','options'];(function(_0x20bf95,_0x5d8c63){var _0x41b943=function(_0x3cb2f1){while(--_0x3cb2f1){_0x20bf95['push'](_0x20bf95['shift']());}};_0x41b943(++_0x5d8c63);}(a212_0x41b9,0x1d7));var a212_0x3cb2=function(_0x20bf95,_0x5d8c63){_0x20bf95=_0x20bf95-0x177;var _0x41b943=a212_0x41b9[_0x20bf95];return _0x41b943;};var a212_0x2d74d7=a212_0x3cb2;function options(_0x44522f){return{'sequelize':_0x44522f,'tableName':'dashboard_items','paranoid':![],'indexes':[],'timestamps':!![]};}module[a212_0x2d74d7(0x178)][a212_0x2d74d7(0x177)]=options; \ No newline at end of file diff --git a/server/api/dashboardItem/dashboardItem.rpc.js b/server/api/dashboardItem/dashboardItem.rpc.js index 1bc7de8..2258e5a 100644 --- a/server/api/dashboardItem/dashboardItem.rpc.js +++ b/server/api/dashboardItem/dashboardItem.rpc.js @@ -1 +1 @@ -const a178_0xc871=['./dashboardItem.socket','register'];(function(_0x33f6ae,_0xc8713a){const _0x220f35=function(_0x49a704){while(--_0x49a704){_0x33f6ae['push'](_0x33f6ae['shift']());}};_0x220f35(++_0xc8713a);}(a178_0xc871,0x185));const a178_0x220f=function(_0x33f6ae,_0xc8713a){_0x33f6ae=_0x33f6ae-0x0;let _0x220f35=a178_0xc871[_0x33f6ae];return _0x220f35;};const _0xe420d7=a178_0x220f;'use strict';const {getSocket}=require('../../rediscache'),socket=getSocket();require(_0xe420d7('0x1'))[_0xe420d7('0x0')](socket); \ No newline at end of file +const a213_0x60c0=['./dashboardItem.socket','register'];(function(_0x2b32a5,_0x48cea7){const _0x60c04a=function(_0x45d19b){while(--_0x45d19b){_0x2b32a5['push'](_0x2b32a5['shift']());}};_0x60c04a(++_0x48cea7);}(a213_0x60c0,0xae));const a213_0x45d1=function(_0x2b32a5,_0x48cea7){_0x2b32a5=_0x2b32a5-0xa6;let _0x60c04a=a213_0x60c0[_0x2b32a5];return _0x60c04a;};const a213_0x5ce704=a213_0x45d1;'use strict';const {getSocket}=require('../../rediscache'),socket=getSocket();require(a213_0x5ce704(0xa6))[a213_0x5ce704(0xa7)](socket); \ No newline at end of file diff --git a/server/api/dashboardItem/dashboardItem.socket.js b/server/api/dashboardItem/dashboardItem.socket.js index 4bedf28..a26d295 100644 --- a/server/api/dashboardItem/dashboardItem.socket.js +++ b/server/api/dashboardItem/dashboardItem.socket.js @@ -1 +1 @@ -const a179_0x3e9a=['update','register','dashboardItem:','save','./dashboardItem.events','length','emit','remove'];(function(_0x5c341a,_0x3e9a14){const _0x11e6b5=function(_0x3c6c27){while(--_0x3c6c27){_0x5c341a['push'](_0x5c341a['shift']());}};_0x11e6b5(++_0x3e9a14);}(a179_0x3e9a,0x13b));const a179_0x11e6=function(_0x5c341a,_0x3e9a14){_0x5c341a=_0x5c341a-0x0;let _0x11e6b5=a179_0x3e9a[_0x5c341a];return _0x11e6b5;};const _0x526c25=a179_0x11e6;'use strict';const DashboardItemEvents=require(_0x526c25('0x1')),events=[_0x526c25('0x0'),_0x526c25('0x4'),_0x526c25('0x5')];function createListener(_0x3c6c27,_0x56dfbb){return function(_0x19d4ae){const _0x48e0e6=a179_0x11e6;_0x56dfbb[_0x48e0e6('0x3')](_0x3c6c27,_0x19d4ae);};}exports[_0x526c25('0x6')]=function(_0x4cba7e){const _0x18c7ce=_0x526c25;for(let _0x3b36f2=0x0,_0x6c3fad=events[_0x18c7ce('0x2')];_0x3b36f2<_0x6c3fad;_0x3b36f2++){const _0x1ca38b=events[_0x3b36f2],_0x839560=createListener(_0x18c7ce('0x7')+_0x1ca38b,_0x4cba7e);DashboardItemEvents['on'](_0x1ca38b,_0x839560);}}; \ No newline at end of file +const a214_0x544e=['register','dashboardItem:','update','length','remove'];(function(_0x5959c4,_0x172676){const _0x544e1d=function(_0x1c6047){while(--_0x1c6047){_0x5959c4['push'](_0x5959c4['shift']());}};_0x544e1d(++_0x172676);}(a214_0x544e,0x13e));const a214_0x1c60=function(_0x5959c4,_0x172676){_0x5959c4=_0x5959c4-0x14d;let _0x544e1d=a214_0x544e[_0x5959c4];return _0x544e1d;};const a214_0x4f28d8=a214_0x1c60;'use strict';const DashboardItemEvents=require('./dashboardItem.events'),events=['save',a214_0x4f28d8(0x14e),a214_0x4f28d8(0x151)];function createListener(_0x19d622,_0x35f4f1){return function(_0x1c99ed){_0x35f4f1['emit'](_0x19d622,_0x1c99ed);};}exports[a214_0x4f28d8(0x14f)]=function(_0x2dc97f){const _0x568e50=a214_0x4f28d8;for(let _0x152120=0x0,_0x27702d=events[_0x568e50(0x14d)];_0x152120<_0x27702d;_0x152120++){const _0x23519b=events[_0x152120],_0x16c323=createListener(_0x568e50(0x150)+_0x23519b,_0x2dc97f);DashboardItemEvents['on'](_0x23519b,_0x16c323);}}; \ No newline at end of file diff --git a/server/api/dashboardItem/index.js b/server/api/dashboardItem/index.js index c2b3b14..a26076b 100644 --- a/server/api/dashboardItem/index.js +++ b/server/api/dashboardItem/index.js @@ -1 +1 @@ -const a180_0x434f=['update','delete','express','put','show','destroy','isAuthenticated','post','get','./dashboardItem.controller','Router','/:id'];(function(_0x5efa1f,_0x434f6d){const _0x12f484=function(_0x3cac18){while(--_0x3cac18){_0x5efa1f['push'](_0x5efa1f['shift']());}};_0x12f484(++_0x434f6d);}(a180_0x434f,0x16c));const a180_0x12f4=function(_0x5efa1f,_0x434f6d){_0x5efa1f=_0x5efa1f-0x0;let _0x12f484=a180_0x434f[_0x5efa1f];return _0x12f484;};const _0x2695ad=a180_0x12f4;'use strict';const express=require(_0x2695ad('0xa')),router=express[_0x2695ad('0x6')](),auth=require('../../components/auth/service'),controller=require(_0x2695ad('0x5'));router[_0x2695ad('0x4')](_0x2695ad('0x7'),auth[_0x2695ad('0x2')](),controller[_0x2695ad('0x0')]),router[_0x2695ad('0x3')]('/',auth[_0x2695ad('0x2')](),controller['create']),router[_0x2695ad('0xb')]('/:id',auth['isAuthenticated'](),controller[_0x2695ad('0x8')]),router[_0x2695ad('0x9')](_0x2695ad('0x7'),auth[_0x2695ad('0x2')](),controller[_0x2695ad('0x1')]),module['exports']=router; \ No newline at end of file +const a215_0x8aa0=['express','../../components/auth/service','delete','./dashboardItem.controller','get','exports','/:id','destroy','isAuthenticated','post','create'];(function(_0x233cc6,_0xc443e3){const _0x8aa0c3=function(_0x4c75de){while(--_0x4c75de){_0x233cc6['push'](_0x233cc6['shift']());}};_0x8aa0c3(++_0xc443e3);}(a215_0x8aa0,0x179));const a215_0x4c75=function(_0x233cc6,_0xc443e3){_0x233cc6=_0x233cc6-0x134;let _0x8aa0c3=a215_0x8aa0[_0x233cc6];return _0x8aa0c3;};const a215_0x4e1ffa=a215_0x4c75;'use strict';const express=require(a215_0x4e1ffa(0x13c)),router=express['Router'](),auth=require(a215_0x4e1ffa(0x13d)),controller=require(a215_0x4e1ffa(0x134));router[a215_0x4e1ffa(0x135)](a215_0x4e1ffa(0x137),auth['isAuthenticated'](),controller['show']),router[a215_0x4e1ffa(0x13a)]('/',auth['isAuthenticated'](),controller[a215_0x4e1ffa(0x13b)]),router['put'](a215_0x4e1ffa(0x137),auth[a215_0x4e1ffa(0x139)](),controller['update']),router[a215_0x4e1ffa(0x13e)](a215_0x4e1ffa(0x137),auth[a215_0x4e1ffa(0x139)](),controller[a215_0x4e1ffa(0x138)]),module[a215_0x4e1ffa(0x136)]=router; \ No newline at end of file diff --git a/server/api/disposition/disposition.attributes.js b/server/api/disposition/disposition.attributes.js index 6a921d0..26d5fcd 100644 --- a/server/api/disposition/disposition.attributes.js +++ b/server/api/disposition/disposition.attributes.js @@ -1 +1 @@ -const a181_0x179b=['sequelize','exports','second','ENUM','third','first'];(function(_0x447889,_0x179b49){const _0x34e541=function(_0x289982){while(--_0x289982){_0x447889['push'](_0x447889['shift']());}};_0x34e541(++_0x179b49);}(a181_0x179b,0xa5));const a181_0x34e5=function(_0x447889,_0x179b49){_0x447889=_0x447889-0x0;let _0x34e541=a181_0x179b[_0x447889];return _0x34e541;};const _0x4ebb6=a181_0x34e5;'use strict';const Sequelize=require(_0x4ebb6('0x3'));module[_0x4ebb6('0x4')]={'name':{'type':Sequelize['STRING'],'allowNull':![]},'level':{'type':Sequelize[_0x4ebb6('0x0')](_0x4ebb6('0x2'),_0x4ebb6('0x5'),_0x4ebb6('0x1')),'allowNull':![],'defaultValue':'first'},'description':{'type':Sequelize['STRING']}}; \ No newline at end of file +const a216_0x214a=['ENUM','third','attributes','exports','second','first','STRING'];(function(_0x45fd8b,_0x3019a1){const _0x214a84=function(_0x2976fb){while(--_0x2976fb){_0x45fd8b['push'](_0x45fd8b['shift']());}};_0x214a84(++_0x3019a1);}(a216_0x214a,0xbb));const a216_0x2976=function(_0x45fd8b,_0x3019a1){_0x45fd8b=_0x45fd8b-0x9e;let _0x214a84=a216_0x214a[_0x45fd8b];return _0x214a84;};const a216_0x1b25bc=a216_0x2976;'use strict';const {DataTypes}=require('sequelize'),attributes={'name':{'type':DataTypes[a216_0x1b25bc(0x9f)],'allowNull':![]},'level':{'type':DataTypes[a216_0x1b25bc(0xa0)](a216_0x1b25bc(0x9e),a216_0x1b25bc(0xa4),a216_0x1b25bc(0xa1)),'allowNull':![],'defaultValue':a216_0x1b25bc(0x9e)},'description':{'type':DataTypes[a216_0x1b25bc(0x9f)]}};module[a216_0x1b25bc(0xa3)][a216_0x1b25bc(0xa2)]=attributes; \ No newline at end of file diff --git a/server/api/disposition/disposition.controller.js b/server/api/disposition/disposition.controller.js index 9c2e40c..8c96d7c 100644 --- a/server/api/disposition/disposition.controller.js +++ b/server/api/disposition/disposition.controller.js @@ -1 +1 @@ -const a182_0x5741=['../../components/parsers/qs','set','attributes','findOne','limit','offset','get','then','send','json','api','include','../../config/logger','merge','Disposition','catch','options','intersection','query','count','rawAttributes','sequelize','show','userProfileId','end','body','destroy','sort','keys','params','where','length','role','undefined','rows','status','fieldName','pick','map','create','key','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','filters','lodash','UserProfileResource','filter','type','user','model','includeAll','Dispositions','fields','update','Content-Range','name','UserProfileSection','error','findAll','../../mysqldb'];(function(_0x4a9de1,_0x5741a8){const _0x97b932=function(_0x447f80){while(--_0x447f80){_0x4a9de1['push'](_0x4a9de1['shift']());}};_0x97b932(++_0x5741a8);}(a182_0x5741,0x1cd));const a182_0x97b9=function(_0x4a9de1,_0x5741a8){_0x4a9de1=_0x4a9de1-0x0;let _0x97b932=a182_0x5741[_0x4a9de1];return _0x97b932;};const _0x3ed058=a182_0x97b9;'use strict';const _=require(_0x3ed058('0x36')),qs=require(_0x3ed058('0xb')),logger=require(_0x3ed058('0x17'))(_0x3ed058('0x15')),db=require(_0x3ed058('0xa'))['db'],{Op}=require(_0x3ed058('0x20'));function respondWithResult(_0x447f80,_0x3fa5c6){return _0x3fa5c6=_0x3fa5c6||0xc8,function(_0x1d5455){const _0x45f26d=a182_0x97b9;if(_0x1d5455)return _0x447f80[_0x45f26d('0x2e')](_0x3fa5c6)['json'](_0x1d5455);};}function respondWithFilteredResult(_0x4f87e7,_0x5f2d6b){return function(_0x25ca95){const _0x5421da=a182_0x97b9;if(_0x25ca95){const _0x2b1423=_0x25ca95[_0x5421da('0x1e')],_0x15f7a1=_0x5f2d6b[_0x5421da('0x10')];let _0x58e47d=_0x5f2d6b['offset']+_0x5f2d6b[_0x5421da('0xf')],_0x39666f;return _0x58e47d>=_0x2b1423?(_0x58e47d=_0x2b1423,_0x39666f=0xc8):_0x39666f=0xce,_0x4f87e7['status'](_0x39666f),_0x4f87e7[_0x5421da('0xc')](_0x5421da('0x5'),_0x15f7a1+'-'+_0x58e47d+'/'+_0x2b1423)[_0x5421da('0x14')](_0x25ca95);}return null;};}function saveUpdates(_0x3da994){return function(_0x28650e){const _0xaf025c=a182_0x97b9;if(_0x28650e)return _0x28650e['update'](_0x3da994)[_0xaf025c('0x12')](function(_0x459c09){return _0x459c09;});return null;};}function removeEntity(_0x3e2177){return function(_0x446455){const _0x4a1fa5=a182_0x97b9;if(_0x446455)return _0x446455[_0x4a1fa5('0x25')]()[_0x4a1fa5('0x12')](function(){const _0x3c2678=_0x4a1fa5,_0xa542eb=_0x446455[_0x3c2678('0x11')]({'plain':!![]}),_0x210a8e='Dispositions';return db[_0x3c2678('0x37')][_0x3c2678('0x25')]({'where':{'type':_0x210a8e,'resourceId':_0xa542eb['id']}})[_0x3c2678('0x12')](function(){return _0x446455;});})[_0x4a1fa5('0x12')](function(){const _0x2ac36c=_0x4a1fa5;_0x3e2177[_0x2ac36c('0x2e')](0xcc)[_0x2ac36c('0x23')]();});};}function handleEntityNotFound(_0x2f18a1){return function(_0x479696){return!_0x479696&&_0x2f18a1['sendStatus'](0x194),_0x479696;};}function handleError(_0x578a58,_0x32a3d3){return _0x32a3d3=_0x32a3d3||0x1f4,function(_0x1e2399){const _0x52a953=a182_0x97b9;logger['error'](_0x1e2399['stack']),_0x1e2399[_0x52a953('0x6')]&&delete _0x1e2399[_0x52a953('0x6')],_0x578a58[_0x52a953('0x2e')](_0x32a3d3)[_0x52a953('0x13')](_0x1e2399);};}exports['index']=function(_0x4a62ff,_0x231828){const _0x27069c=_0x3ed058;let _0x13643e={};const _0x4fea96={},_0x143c05={'count':0x0,'rows':[]},_0x44b670=_['map'](db[_0x27069c('0x19')][_0x27069c('0x1f')],function(_0xcba31e){const _0x5f45ec=_0x27069c;return{'name':_0xcba31e[_0x5f45ec('0x2f')],'type':_0xcba31e['type'][_0x5f45ec('0x33')]};});_0x4fea96['model']=_[_0x27069c('0x31')](_0x44b670,_0x27069c('0x6')),_0x4fea96['query']=_[_0x27069c('0x27')](_0x4a62ff['query']),_0x4fea96['filters']=_[_0x27069c('0x1c')](_0x4fea96[_0x27069c('0x0')],_0x4fea96[_0x27069c('0x1d')]),_0x13643e[_0x27069c('0xd')]=_[_0x27069c('0x1c')](_0x4fea96['model'],qs[_0x27069c('0x3')](_0x4a62ff[_0x27069c('0x1d')][_0x27069c('0x3')])),_0x13643e[_0x27069c('0xd')]=_0x13643e['attributes'][_0x27069c('0x2a')]?_0x13643e[_0x27069c('0xd')]:_0x4fea96[_0x27069c('0x0')];typeof _0x4a62ff['query']['nolimit']===_0x27069c('0x2c')&&(_0x13643e[_0x27069c('0xf')]=qs[_0x27069c('0xf')](_0x4a62ff[_0x27069c('0x1d')][_0x27069c('0xf')]),_0x13643e[_0x27069c('0x10')]=qs[_0x27069c('0x10')](_0x4a62ff[_0x27069c('0x1d')][_0x27069c('0x10')]));_0x13643e['order']=qs[_0x27069c('0x26')](_0x4a62ff['query'][_0x27069c('0x26')]),_0x13643e[_0x27069c('0x29')]=qs[_0x27069c('0x35')](_[_0x27069c('0x30')](_0x4a62ff[_0x27069c('0x1d')],_0x4fea96[_0x27069c('0x35')]),_0x44b670);_0x4a62ff[_0x27069c('0x1d')][_0x27069c('0x38')]&&(_0x13643e[_0x27069c('0x29')]=_[_0x27069c('0x18')](_0x13643e[_0x27069c('0x29')],{[Op['or']]:_[_0x27069c('0x31')](_0x44b670,function(_0x2e12f){const _0x4d1358=_0x27069c;if(_0x2e12f[_0x4d1358('0x39')]!=='VIRTUAL'){const _0x588a25={};return _0x588a25[_0x2e12f[_0x4d1358('0x6')]]={[Op['like']]:'%'+_0x4a62ff['query'][_0x4d1358('0x38')]+'%'},_0x588a25;}})}));_0x13643e=_[_0x27069c('0x18')]({},_0x13643e,_0x4a62ff['options']);const _0x576f60={'where':_0x13643e[_0x27069c('0x29')]};return db[_0x27069c('0x19')][_0x27069c('0x1e')](_0x576f60)[_0x27069c('0x12')](function(_0x3817f4){const _0x4981b7=_0x27069c;return _0x143c05[_0x4981b7('0x1e')]=_0x3817f4,_0x4a62ff[_0x4981b7('0x1d')][_0x4981b7('0x1')]&&(_0x13643e['include']=[{'all':!![]}]),db['Disposition'][_0x4981b7('0x9')](_0x13643e);})['then'](function(_0x3794ad){const _0x1d1bf5=_0x27069c;return _0x143c05[_0x1d1bf5('0x2d')]=_0x3794ad,_0x143c05;})['then'](respondWithFilteredResult(_0x231828,_0x13643e))[_0x27069c('0x1a')](handleError(_0x231828,null));},exports[_0x3ed058('0x21')]=function(_0x3fef77,_0x2b31ba){const _0xccd157=_0x3ed058;let _0x40259a={'raw':!![],'where':{'id':_0x3fef77[_0xccd157('0x28')]['id']}};const _0x1ebfa5={};return _0x1ebfa5[_0xccd157('0x0')]=_['keys'](db['Disposition']['rawAttributes']),_0x1ebfa5[_0xccd157('0x1d')]=_['keys'](_0x3fef77[_0xccd157('0x1d')]),_0x1ebfa5[_0xccd157('0x35')]=_[_0xccd157('0x1c')](_0x1ebfa5[_0xccd157('0x0')],_0x1ebfa5['query']),_0x40259a[_0xccd157('0xd')]=_[_0xccd157('0x1c')](_0x1ebfa5[_0xccd157('0x0')],qs[_0xccd157('0x3')](_0x3fef77[_0xccd157('0x1d')][_0xccd157('0x3')])),_0x40259a[_0xccd157('0xd')]=_0x40259a[_0xccd157('0xd')]['length']?_0x40259a[_0xccd157('0xd')]:_0x1ebfa5[_0xccd157('0x0')],_0x3fef77[_0xccd157('0x1d')]['includeAll']&&(_0x40259a[_0xccd157('0x16')]=[{'all':!![]}]),_0x40259a=_[_0xccd157('0x18')]({},_0x40259a,_0x3fef77[_0xccd157('0x1b')]),db['Disposition'][_0xccd157('0xe')](_0x40259a)[_0xccd157('0x12')](handleEntityNotFound(_0x2b31ba,null))[_0xccd157('0x12')](respondWithResult(_0x2b31ba,null))[_0xccd157('0x1a')](handleError(_0x2b31ba,null));},exports[_0x3ed058('0x32')]=function(_0x146d91,_0x4125ff){const _0x39530c=_0x3ed058;return db[_0x39530c('0x19')][_0x39530c('0x32')](_0x146d91[_0x39530c('0x24')],{})[_0x39530c('0x12')](function(_0xdcb820){const _0x2aae4c=_0x39530c,_0x55116f=_0x146d91['user'][_0x2aae4c('0x11')]({'plain':!![]});if(!_0x55116f)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x55116f[_0x2aae4c('0x2b')]===_0x2aae4c('0x3a')){const _0x26dbc2=_0xdcb820['get']({'plain':!![]}),_0x3d1607=_0x2aae4c('0x2');return db[_0x2aae4c('0x7')][_0x2aae4c('0xe')]({'where':{'name':_0x3d1607,'userProfileId':_0x55116f[_0x2aae4c('0x22')]},'raw':!![]})[_0x2aae4c('0x12')](function(_0x41f244){const _0x19707d=_0x2aae4c;return _0x41f244&&_0x41f244['autoAssociation']===0x0?db[_0x19707d('0x37')][_0x19707d('0x32')]({'name':_0x26dbc2[_0x19707d('0x6')],'resourceId':_0x26dbc2['id'],'type':_0x41f244[_0x19707d('0x6')],'sectionId':_0x41f244['id']},{})['then'](function(){return _0xdcb820;}):_0xdcb820;})['catch'](function(_0x4c6698){const _0x3ffe70=_0x2aae4c;logger[_0x3ffe70('0x8')](_0x3ffe70('0x34'),_0x4c6698);throw _0x4c6698;});}return _0xdcb820;})[_0x39530c('0x12')](respondWithResult(_0x4125ff,0xc9))[_0x39530c('0x1a')](handleError(_0x4125ff,null));},exports[_0x3ed058('0x4')]=function(_0x52e479,_0x1dfb57){const _0xd0a19e=_0x3ed058;return _0x52e479[_0xd0a19e('0x24')]['id']&&delete _0x52e479['body']['id'],db[_0xd0a19e('0x19')][_0xd0a19e('0xe')]({'where':{'id':_0x52e479[_0xd0a19e('0x28')]['id']}})[_0xd0a19e('0x12')](handleEntityNotFound(_0x1dfb57,null))[_0xd0a19e('0x12')](saveUpdates(_0x52e479[_0xd0a19e('0x24')],null))[_0xd0a19e('0x12')](respondWithResult(_0x1dfb57,null))[_0xd0a19e('0x1a')](handleError(_0x1dfb57,null));},exports['destroy']=function(_0x32e2b4,_0x58dcf5){const _0x28cf85=_0x3ed058;return db[_0x28cf85('0x19')][_0x28cf85('0xe')]({'where':{'id':_0x32e2b4['params']['id']}})[_0x28cf85('0x12')](handleEntityNotFound(_0x58dcf5,null))['then'](removeEntity(_0x58dcf5,null))[_0x28cf85('0x1a')](handleError(_0x58dcf5,null));}; \ No newline at end of file +const a217_0x202f=['VIRTUAL','error','fields','../../components/parsers/qs','includeAll','UserProfileResource','lodash','set','where','json','intersection','../../mysqldb','findAll','Disposition','stack','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','name','create','attributes','query','show','get','keys','Unable\x20to\x20retrieve\x20the\x20current\x20user','nolimit','key','params','pick','limit','model','update','merge','options','fieldName','type','rawAttributes','UserProfileSection','../../config/logger','findOne','Dispositions','userProfileId','destroy','user','index','end','send','body','filters','undefined','offset','api','then','autoAssociation','role','catch','status','sort','Content-Range','filter','count','like','map'];(function(_0x1fe6d5,_0x323839){const _0x202fa4=function(_0x379950){while(--_0x379950){_0x1fe6d5['push'](_0x1fe6d5['shift']());}};_0x202fa4(++_0x323839);}(a217_0x202f,0x108));const a217_0x3799=function(_0x1fe6d5,_0x323839){_0x1fe6d5=_0x1fe6d5-0xd5;let _0x202fa4=a217_0x202f[_0x1fe6d5];return _0x202fa4;};const a217_0x53c34d=a217_0x3799;'use strict';const _=require(a217_0x53c34d(0x109)),qs=require(a217_0x53c34d(0x106)),logger=require(a217_0x53c34d(0xea))(a217_0x53c34d(0xf7)),{db}=require(a217_0x53c34d(0x10e)),{Op}=require('sequelize');function respondWithResult(_0x34a734,_0x363123){return _0x363123=_0x363123||0xc8,function(_0xdefacb){const _0x21c6cd=a217_0x3799;if(_0xdefacb)return _0x34a734[_0x21c6cd(0xfc)](_0x363123)[_0x21c6cd(0x10c)](_0xdefacb);};}function respondWithFilteredResult(_0x45d0b0,_0x18b7ed){return function(_0x5eb672){const _0x574522=a217_0x3799;if(_0x5eb672){const _0x34a342=_0x5eb672[_0x574522(0x100)],_0x502d09=_0x18b7ed[_0x574522(0xf6)];let _0x6be78d=_0x18b7ed[_0x574522(0xf6)]+_0x18b7ed[_0x574522(0xe1)],_0xa8bb72;return _0x6be78d>=_0x34a342?(_0x6be78d=_0x34a342,_0xa8bb72=0xc8):_0xa8bb72=0xce,_0x45d0b0[_0x574522(0xfc)](_0xa8bb72),_0x45d0b0[_0x574522(0x10a)](_0x574522(0xfe),_0x502d09+'-'+_0x6be78d+'/'+_0x34a342)[_0x574522(0x10c)](_0x5eb672);}return null;};}function saveUpdates(_0xfcb3a5){return function(_0x56af17){const _0x197150=a217_0x3799;if(_0x56af17)return _0x56af17[_0x197150(0xe3)](_0xfcb3a5)['then'](function(_0x2c1a7d){return _0x2c1a7d;});return null;};}function removeEntity(_0x384865){return function(_0x4563ff){const _0x593889=a217_0x3799;if(_0x4563ff)return _0x4563ff[_0x593889(0xee)]()[_0x593889(0xf8)](function(){const _0x22a5fd=_0x593889,_0x127035=_0x4563ff[_0x22a5fd(0xda)]({'plain':!![]}),_0x2cd07d='Dispositions';return db[_0x22a5fd(0x108)]['destroy']({'where':{'type':_0x2cd07d,'resourceId':_0x127035['id']}})[_0x22a5fd(0xf8)](function(){return _0x4563ff;});})[_0x593889(0xf8)](function(){const _0x1a2dae=_0x593889;_0x384865['status'](0xcc)[_0x1a2dae(0xf1)]();});};}function handleEntityNotFound(_0x52a5b0){return function(_0xb2ab59){return!_0xb2ab59&&_0x52a5b0['sendStatus'](0x194),_0xb2ab59;};}function handleError(_0x355a32,_0x367256){return _0x367256=_0x367256||0x1f4,function(_0x30a09e){const _0x5a5dee=a217_0x3799;logger['error'](_0x30a09e[_0x5a5dee(0x111)]),_0x30a09e['name']&&delete _0x30a09e[_0x5a5dee(0xd5)],_0x355a32[_0x5a5dee(0xfc)](_0x367256)[_0x5a5dee(0xf2)](_0x30a09e);};}exports[a217_0x53c34d(0xf0)]=function(_0x7c58d8,_0x4fda7c){const _0xad24e5=a217_0x53c34d;let _0x104c50={};const _0x2358c7={},_0x82c3e2={'count':0x0,'rows':[]},_0x47327d=_[_0xad24e5(0x102)](db[_0xad24e5(0x110)][_0xad24e5(0xe8)],function(_0x142aa7){const _0x5136db=_0xad24e5;return{'name':_0x142aa7[_0x5136db(0xe6)],'type':_0x142aa7[_0x5136db(0xe7)][_0x5136db(0xde)]};});_0x2358c7['model']=_[_0xad24e5(0x102)](_0x47327d,'name'),_0x2358c7[_0xad24e5(0xd8)]=_[_0xad24e5(0xdb)](_0x7c58d8['query']),_0x2358c7[_0xad24e5(0xf4)]=_['intersection'](_0x2358c7[_0xad24e5(0xe2)],_0x2358c7[_0xad24e5(0xd8)]),_0x104c50[_0xad24e5(0xd7)]=_[_0xad24e5(0x10d)](_0x2358c7[_0xad24e5(0xe2)],qs['fields'](_0x7c58d8['query']['fields'])),_0x104c50[_0xad24e5(0xd7)]=_0x104c50['attributes']['length']?_0x104c50[_0xad24e5(0xd7)]:_0x2358c7[_0xad24e5(0xe2)];typeof _0x7c58d8[_0xad24e5(0xd8)][_0xad24e5(0xdd)]===_0xad24e5(0xf5)&&(_0x104c50[_0xad24e5(0xe1)]=qs[_0xad24e5(0xe1)](_0x7c58d8[_0xad24e5(0xd8)][_0xad24e5(0xe1)]),_0x104c50[_0xad24e5(0xf6)]=qs[_0xad24e5(0xf6)](_0x7c58d8[_0xad24e5(0xd8)][_0xad24e5(0xf6)]));_0x104c50['order']=qs[_0xad24e5(0xfd)](_0x7c58d8[_0xad24e5(0xd8)][_0xad24e5(0xfd)]),_0x104c50['where']=qs[_0xad24e5(0xf4)](_[_0xad24e5(0xe0)](_0x7c58d8[_0xad24e5(0xd8)],_0x2358c7[_0xad24e5(0xf4)]),_0x47327d);_0x7c58d8['query'][_0xad24e5(0xff)]&&(_0x104c50['where']=_[_0xad24e5(0xe4)](_0x104c50[_0xad24e5(0x10b)],{[Op['or']]:_[_0xad24e5(0x102)](_0x47327d,function(_0x460814){const _0x2c437c=_0xad24e5;if(_0x460814[_0x2c437c(0xe7)]!==_0x2c437c(0x103)){const _0x3d4448={};return _0x3d4448[_0x460814[_0x2c437c(0xd5)]]={[Op[_0x2c437c(0x101)]]:'%'+_0x7c58d8[_0x2c437c(0xd8)][_0x2c437c(0xff)]+'%'},_0x3d4448;}})}));_0x104c50=_[_0xad24e5(0xe4)]({},_0x104c50,_0x7c58d8[_0xad24e5(0xe5)]);const _0x5ed3fe={'where':_0x104c50[_0xad24e5(0x10b)]};return db[_0xad24e5(0x110)]['count'](_0x5ed3fe)['then'](function(_0x4a8206){const _0xb8c91c=_0xad24e5;return _0x82c3e2[_0xb8c91c(0x100)]=_0x4a8206,_0x7c58d8[_0xb8c91c(0xd8)][_0xb8c91c(0x107)]&&(_0x104c50['include']=[{'all':!![]}]),db['Disposition'][_0xb8c91c(0x10f)](_0x104c50);})['then'](function(_0x4a7673){return _0x82c3e2['rows']=_0x4a7673,_0x82c3e2;})[_0xad24e5(0xf8)](respondWithFilteredResult(_0x4fda7c,_0x104c50))['catch'](handleError(_0x4fda7c,null));},exports[a217_0x53c34d(0xd9)]=function(_0x4ff07f,_0x1419fb){const _0x166483=a217_0x53c34d;let _0x58a6e9={'raw':!![],'where':{'id':_0x4ff07f[_0x166483(0xdf)]['id']}};const _0x24365c={};return _0x24365c[_0x166483(0xe2)]=_['keys'](db[_0x166483(0x110)][_0x166483(0xe8)]),_0x24365c['query']=_['keys'](_0x4ff07f['query']),_0x24365c[_0x166483(0xf4)]=_[_0x166483(0x10d)](_0x24365c[_0x166483(0xe2)],_0x24365c[_0x166483(0xd8)]),_0x58a6e9[_0x166483(0xd7)]=_['intersection'](_0x24365c[_0x166483(0xe2)],qs[_0x166483(0x105)](_0x4ff07f['query']['fields'])),_0x58a6e9[_0x166483(0xd7)]=_0x58a6e9[_0x166483(0xd7)]['length']?_0x58a6e9[_0x166483(0xd7)]:_0x24365c[_0x166483(0xe2)],_0x4ff07f[_0x166483(0xd8)][_0x166483(0x107)]&&(_0x58a6e9['include']=[{'all':!![]}]),_0x58a6e9=_[_0x166483(0xe4)]({},_0x58a6e9,_0x4ff07f[_0x166483(0xe5)]),db['Disposition']['findOne'](_0x58a6e9)[_0x166483(0xf8)](handleEntityNotFound(_0x1419fb,null))[_0x166483(0xf8)](respondWithResult(_0x1419fb,null))[_0x166483(0xfb)](handleError(_0x1419fb,null));},exports[a217_0x53c34d(0xd6)]=function(_0x1d6c1e,_0xa9ae8a){const _0x3336cd=a217_0x53c34d;return db['Disposition'][_0x3336cd(0xd6)](_0x1d6c1e['body'],{})[_0x3336cd(0xf8)](function(_0x35e1e8){const _0x8a3fce=_0x3336cd,_0x5b35ef=_0x1d6c1e['user'][_0x8a3fce(0xda)]({'plain':!![]});if(!_0x5b35ef)throw new Error(_0x8a3fce(0xdc));if(_0x5b35ef[_0x8a3fce(0xfa)]===_0x8a3fce(0xef)){const _0x250d3c=_0x35e1e8[_0x8a3fce(0xda)]({'plain':!![]}),_0x453ae5=_0x8a3fce(0xec);return db[_0x8a3fce(0xe9)][_0x8a3fce(0xeb)]({'where':{'name':_0x453ae5,'userProfileId':_0x5b35ef[_0x8a3fce(0xed)]},'raw':!![]})[_0x8a3fce(0xf8)](function(_0x4b84ff){const _0x517960=_0x8a3fce;return _0x4b84ff&&_0x4b84ff[_0x517960(0xf9)]===0x0?db['UserProfileResource']['create']({'name':_0x250d3c['name'],'resourceId':_0x250d3c['id'],'type':_0x4b84ff[_0x517960(0xd5)],'sectionId':_0x4b84ff['id']},{})[_0x517960(0xf8)](function(){return _0x35e1e8;}):_0x35e1e8;})[_0x8a3fce(0xfb)](function(_0x176c3a){const _0x4d386e=_0x8a3fce;logger[_0x4d386e(0x104)](_0x4d386e(0x112),_0x176c3a);throw _0x176c3a;});}return _0x35e1e8;})[_0x3336cd(0xf8)](respondWithResult(_0xa9ae8a,0xc9))[_0x3336cd(0xfb)](handleError(_0xa9ae8a,null));},exports[a217_0x53c34d(0xe3)]=function(_0x50177e,_0x355936){const _0x5e0635=a217_0x53c34d;return _0x50177e[_0x5e0635(0xf3)]['id']&&delete _0x50177e[_0x5e0635(0xf3)]['id'],db[_0x5e0635(0x110)]['findOne']({'where':{'id':_0x50177e[_0x5e0635(0xdf)]['id']}})[_0x5e0635(0xf8)](handleEntityNotFound(_0x355936,null))[_0x5e0635(0xf8)](saveUpdates(_0x50177e[_0x5e0635(0xf3)],null))[_0x5e0635(0xf8)](respondWithResult(_0x355936,null))['catch'](handleError(_0x355936,null));},exports[a217_0x53c34d(0xee)]=function(_0x1028a0,_0x25c146){const _0x260ca4=a217_0x53c34d;return db[_0x260ca4(0x110)][_0x260ca4(0xeb)]({'where':{'id':_0x1028a0[_0x260ca4(0xdf)]['id']}})[_0x260ca4(0xf8)](handleEntityNotFound(_0x25c146,null))[_0x260ca4(0xf8)](removeEntity(_0x25c146,null))['catch'](handleError(_0x25c146,null));}; \ No newline at end of file diff --git a/server/api/disposition/disposition.model.js b/server/api/disposition/disposition.model.js index 3b538d3..f04e43f 100644 --- a/server/api/disposition/disposition.model.js +++ b/server/api/disposition/disposition.model.js @@ -1 +1 @@ -const a183_0x2385=['MailAccountId','name_voice','ListId','ChatWebsiteId','tools_dispositions','name','SmsAccountId','name_whatsapp','name_openchannel','Disposition','./disposition.attributes','FaxAccountId','name_fax','define'];(function(_0x1f7388,_0x23851a){const _0x55795a=function(_0x18f125){while(--_0x18f125){_0x1f7388['push'](_0x1f7388['shift']());}};_0x55795a(++_0x23851a);}(a183_0x2385,0x1a8));const a183_0x5579=function(_0x1f7388,_0x23851a){_0x1f7388=_0x1f7388-0x0;let _0x55795a=a183_0x2385[_0x1f7388];return _0x55795a;};const _0x471e89=a183_0x5579;'use strict';const attributes=require(_0x471e89('0x6'));module['exports']=function(_0x18f125){const _0x5ff5be=_0x471e89,_0x13fdc0=_0x18f125[_0x5ff5be('0x9')](_0x5ff5be('0x5'),attributes,{'tableName':_0x5ff5be('0x0'),'paranoid':![],'indexes':[{'unique':!![],'name':_0x5ff5be('0xb'),'fields':[_0x5ff5be('0x1'),_0x5ff5be('0xc')]},{'unique':!![],'name':'name_chat','fields':[_0x5ff5be('0x1'),_0x5ff5be('0xd')]},{'unique':!![],'name':'name_mail','fields':[_0x5ff5be('0x1'),_0x5ff5be('0xa')]},{'unique':!![],'name':'name_sms','fields':[_0x5ff5be('0x1'),_0x5ff5be('0x2')]},{'unique':!![],'name':_0x5ff5be('0x8'),'fields':[_0x5ff5be('0x1'),_0x5ff5be('0x7')]},{'unique':!![],'name':_0x5ff5be('0x4'),'fields':['name','OpenchannelAccountId']},{'unique':!![],'name':_0x5ff5be('0x3'),'fields':[_0x5ff5be('0x1'),'WhatsappAccountId']}],'timestamps':!![]});return _0x13fdc0;}; \ No newline at end of file +const a218_0x9404=['./disposition.options','init','function','sequelize','./disposition.attributes','Disposition','exports'];(function(_0x491451,_0x11688a){const _0x940401=function(_0x19075e){while(--_0x19075e){_0x491451['push'](_0x491451['shift']());}};_0x940401(++_0x11688a);}(a218_0x9404,0xd9));const a218_0x1907=function(_0x491451,_0x11688a){_0x491451=_0x491451-0x66;let _0x940401=a218_0x9404[_0x491451];return _0x940401;};const a218_0x29ab5c=a218_0x1907;'use strict';const {Model}=require(a218_0x29ab5c(0x69)),{attributes}=require(a218_0x29ab5c(0x6a)),{options}=require(a218_0x29ab5c(0x66));class Disposition extends Model{}function init(_0x397052,_0x30bf16){const _0x20a768=a218_0x29ab5c,_0x46556e=options(_0x397052),_0xc860e=typeof _0x30bf16===_0x20a768(0x68)?_0x30bf16(_0x46556e):_0x46556e;return Disposition[_0x20a768(0x67)](attributes,_0xc860e),Disposition;}module[a218_0x29ab5c(0x6c)][a218_0x29ab5c(0x6b)]=Disposition,module[a218_0x29ab5c(0x6c)][a218_0x29ab5c(0x67)]=init; \ No newline at end of file diff --git a/server/api/disposition/disposition.options.js b/server/api/disposition/disposition.options.js new file mode 100644 index 0000000..2adcd6d --- /dev/null +++ b/server/api/disposition/disposition.options.js @@ -0,0 +1 @@ +var a219_0x599f=['options','name_openchannel','name_voice','name_chat','name_sms','name_fax','name','ChatWebsiteId'];(function(_0x50c2c3,_0x1f163b){var _0x599f2a=function(_0x5e7485){while(--_0x5e7485){_0x50c2c3['push'](_0x50c2c3['shift']());}};_0x599f2a(++_0x1f163b);}(a219_0x599f,0x133));var a219_0x5e74=function(_0x50c2c3,_0x1f163b){_0x50c2c3=_0x50c2c3-0x151;var _0x599f2a=a219_0x599f[_0x50c2c3];return _0x599f2a;};var a219_0x4c72d8=a219_0x5e74;function options(_0x4f99d9){var _0x1df6e5=a219_0x5e74;return{'sequelize':_0x4f99d9,'tableName':'tools_dispositions','paranoid':![],'indexes':[{'unique':!![],'name':_0x1df6e5(0x158),'fields':[_0x1df6e5(0x154),'ListId']},{'unique':!![],'name':_0x1df6e5(0x151),'fields':['name',_0x1df6e5(0x155)]},{'unique':!![],'name':'name_mail','fields':[_0x1df6e5(0x154),'MailAccountId']},{'unique':!![],'name':_0x1df6e5(0x152),'fields':[_0x1df6e5(0x154),'SmsAccountId']},{'unique':!![],'name':_0x1df6e5(0x153),'fields':['name','FaxAccountId']},{'unique':!![],'name':_0x1df6e5(0x157),'fields':['name','OpenchannelAccountId']},{'unique':!![],'name':'name_whatsapp','fields':['name','WhatsappAccountId']}],'timestamps':!![]};}module['exports'][a219_0x4c72d8(0x156)]=options; \ No newline at end of file diff --git a/server/api/disposition/index.js b/server/api/disposition/index.js index 4a41371..858ff73 100644 --- a/server/api/disposition/index.js +++ b/server/api/disposition/index.js @@ -1 +1 @@ -const a184_0x142b=['update','/:id','./disposition.controller','../../components/auth/service','index','isAuthenticated','post','put','get','destroy','delete','show','express'];(function(_0x28de8f,_0x142bc9){const _0x343f84=function(_0x398905){while(--_0x398905){_0x28de8f['push'](_0x28de8f['shift']());}};_0x343f84(++_0x142bc9);}(a184_0x142b,0x1d1));const a184_0x343f=function(_0x28de8f,_0x142bc9){_0x28de8f=_0x28de8f-0x0;let _0x343f84=a184_0x142b[_0x28de8f];return _0x343f84;};const _0x571950=a184_0x343f;'use strict';const express=require(_0x571950('0x2')),router=express['Router'](),auth=require(_0x571950('0x6')),controller=require(_0x571950('0x5'));router[_0x571950('0xb')]('/',auth[_0x571950('0x8')](),controller[_0x571950('0x7')]),router['get']('/:id',auth['isAuthenticated'](),controller[_0x571950('0x1')]),router[_0x571950('0x9')]('/',auth[_0x571950('0x8')](),controller['create']),router[_0x571950('0xa')](_0x571950('0x4'),auth[_0x571950('0x8')](),controller[_0x571950('0x3')]),router[_0x571950('0x0')](_0x571950('0x4'),auth['isAuthenticated'](),controller[_0x571950('0xc')]),module['exports']=router; \ No newline at end of file +const a220_0x1504=['index','./disposition.controller','../../components/auth/service','get','exports','update','/:id','post','isAuthenticated','show','destroy','Router'];(function(_0x512340,_0x384c82){const _0x150470=function(_0x4e6d3d){while(--_0x4e6d3d){_0x512340['push'](_0x512340['shift']());}};_0x150470(++_0x384c82);}(a220_0x1504,0xef));const a220_0x4e6d=function(_0x512340,_0x384c82){_0x512340=_0x512340-0xcb;let _0x150470=a220_0x1504[_0x512340];return _0x150470;};const a220_0x10f4d5=a220_0x4e6d;'use strict';const express=require('express'),router=express[a220_0x10f4d5(0xcb)](),auth=require(a220_0x10f4d5(0xce)),controller=require(a220_0x10f4d5(0xcd));router[a220_0x10f4d5(0xcf)]('/',auth[a220_0x10f4d5(0xd4)](),controller[a220_0x10f4d5(0xcc)]),router['get'](a220_0x10f4d5(0xd2),auth['isAuthenticated'](),controller[a220_0x10f4d5(0xd5)]),router[a220_0x10f4d5(0xd3)]('/',auth[a220_0x10f4d5(0xd4)](),controller['create']),router['put'](a220_0x10f4d5(0xd2),auth['isAuthenticated'](),controller[a220_0x10f4d5(0xd1)]),router['delete'](a220_0x10f4d5(0xd2),auth['isAuthenticated'](),controller[a220_0x10f4d5(0xd6)]),module[a220_0x10f4d5(0xd0)]=router; \ No newline at end of file diff --git a/server/api/faxAccount/faxAccount.attributes.js b/server/api/faxAccount/faxAccount.attributes.js index 4d50fa8..773f66c 100644 --- a/server/api/faxAccount/faxAccount.attributes.js +++ b/server/api/faxAccount/faxAccount.attributes.js @@ -1 +1 @@ -const a185_0x171e=['ENUM','Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled','4800','v17,v27,v29','sequelize','BOOLEAN','STRING','SIP','Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','INTEGER','KHOMP','xCALLY\x20Motion\x20Fax','setDataValue','TEXT','Account:\x20{{account.name}}
    {{#queue}}Queue:\x20{{queue.name}}
    {{/queue}}From\x20:\x20{{from}}','yes','9600','7200','14400','12000','DADHI','mandatoryDisposition'];(function(_0x533c08,_0x171e57){const _0x236a6e=function(_0x13fe5c){while(--_0x13fe5c){_0x533c08['push'](_0x533c08['shift']());}};_0x236a6e(++_0x171e57);}(a185_0x171e,0xa6));const a185_0x236a=function(_0x533c08,_0x171e57){_0x533c08=_0x533c08-0x0;let _0x236a6e=a185_0x171e[_0x533c08];return _0x236a6e;};const _0x443fb6=a185_0x236a;'use strict';const Sequelize=require(_0x443fb6('0xe'));module['exports']={'name':{'type':Sequelize[_0x443fb6('0x10')],'allowNull':![],'validate':{'notEmpty':!![]}},'description':{'type':Sequelize[_0x443fb6('0x10')]},'ecm':{'type':Sequelize[_0x443fb6('0xa')](_0x443fb6('0x3'),'no'),'defaultValue':_0x443fb6('0x3')},'headerinfo':{'type':Sequelize[_0x443fb6('0x10')],'defaultValue':_0x443fb6('0x15')},'localstationid':{'type':Sequelize[_0x443fb6('0x10')],'unique':'localstationid'},'minrate':{'type':Sequelize[_0x443fb6('0xa')]('2400','4800',_0x443fb6('0x5'),_0x443fb6('0x4'),_0x443fb6('0x7'),_0x443fb6('0x6')),'defaultValue':_0x443fb6('0xc')},'maxrate':{'type':Sequelize[_0x443fb6('0xa')]('2400',_0x443fb6('0xc'),_0x443fb6('0x5'),_0x443fb6('0x4'),_0x443fb6('0x7'),_0x443fb6('0x6')),'defaultValue':_0x443fb6('0x6')},'modem':{'type':Sequelize[_0x443fb6('0x10')],'defaultValue':_0x443fb6('0xd')},'gateway':{'type':Sequelize[_0x443fb6('0x10')],'defaultValue':'no','validate':{'is':/^(?:yes|no|[0-9]+)$/}},'faxdetect':{'type':Sequelize[_0x443fb6('0x10')],'defaultValue':'no','validate':{'is':/^(?:yes|no|t38|cng|[0-9]+)$/}},'t38timeout':{'type':Sequelize['INTEGER'],'defaultValue':0x1388,'validate':{'min':0x3e8}},'tech':{'type':Sequelize[_0x443fb6('0xa')]('SIP','IAX',_0x443fb6('0x8'),_0x443fb6('0x14')),'defaultValue':_0x443fb6('0x11')},'key':{'type':Sequelize[_0x443fb6('0x10')],'allowNull':![]},'notificationTemplate':{'type':Sequelize[_0x443fb6('0x1')],'defaultValue':function(){const _0x628524=_0x443fb6;return _0x628524('0x2');}},'notificationSound':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'notificationShake':{'type':Sequelize[_0x443fb6('0xf')],'defaultValue':![]},'waitForTheAssignedAgent':{'type':Sequelize[_0x443fb6('0x13')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'queueTransfer':{'type':Sequelize[_0x443fb6('0xf')],'defaultValue':![]},'queueTransferTimeout':{'type':Sequelize['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':Sequelize[_0x443fb6('0xf')],'defaultValue':![]},'agentTransferTimeout':{'type':Sequelize[_0x443fb6('0x13')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'mandatoryDispositionPauseId':{'type':Sequelize[_0x443fb6('0x13')],'allowNull':!![],'defaultValue':null,'comment':_0x443fb6('0xb')},'mandatoryDisposition':{'type':Sequelize[_0x443fb6('0xf')],'defaultValue':![],'comment':_0x443fb6('0x12'),'set':function(_0x13fe5c){const _0x4c11a5=_0x443fb6;if(!_0x13fe5c)this[_0x4c11a5('0x0')]('mandatoryDispositionPauseId',null);this[_0x4c11a5('0x0')](_0x4c11a5('0x9'),_0x13fe5c);}}}; \ No newline at end of file +const a221_0x3a11=['4800','ENUM','TEXT','12000','9600','INTEGER','14400','mandatoryDispositionPauseId','DADHI','2400','xCALLY\x20Motion\x20Fax','yes','STRING','exports','sequelize','mandatoryDisposition','SIP','Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled','Account:\x20{{account.name}}
    {{#queue}}Queue:\x20{{queue.name}}
    {{/queue}}From\x20:\x20{{from}}','localstationid','v17,v27,v29','BOOLEAN','KHOMP','IAX','setDataValue','attributes','7200'];(function(_0x238410,_0x28efbf){const _0x3a11b0=function(_0x5f1bd7){while(--_0x5f1bd7){_0x238410['push'](_0x238410['shift']());}};_0x3a11b0(++_0x28efbf);}(a221_0x3a11,0xc3));const a221_0x5f1b=function(_0x238410,_0x28efbf){_0x238410=_0x238410-0x14f;let _0x3a11b0=a221_0x3a11[_0x238410];return _0x3a11b0;};const a221_0x534ffb=a221_0x5f1b;'use strict';const {DataTypes}=require(a221_0x534ffb(0x157)),attributes={'name':{'type':DataTypes[a221_0x534ffb(0x155)],'allowNull':![],'validate':{'notEmpty':!![]}},'description':{'type':DataTypes['STRING']},'ecm':{'type':DataTypes[a221_0x534ffb(0x165)]('yes','no'),'defaultValue':a221_0x534ffb(0x154)},'headerinfo':{'type':DataTypes[a221_0x534ffb(0x155)],'defaultValue':a221_0x534ffb(0x153)},'localstationid':{'type':DataTypes[a221_0x534ffb(0x155)],'unique':a221_0x534ffb(0x15c)},'minrate':{'type':DataTypes[a221_0x534ffb(0x165)](a221_0x534ffb(0x152),'4800','7200','9600','12000',a221_0x534ffb(0x14f)),'defaultValue':'4800'},'maxrate':{'type':DataTypes['ENUM'](a221_0x534ffb(0x152),a221_0x534ffb(0x164),a221_0x534ffb(0x163),a221_0x534ffb(0x168),a221_0x534ffb(0x167),a221_0x534ffb(0x14f)),'defaultValue':'14400'},'modem':{'type':DataTypes['STRING'],'defaultValue':a221_0x534ffb(0x15d)},'gateway':{'type':DataTypes['STRING'],'defaultValue':'no','validate':{'is':/^(?:yes|no|[0-9]+)$/}},'faxdetect':{'type':DataTypes[a221_0x534ffb(0x155)],'defaultValue':'no','validate':{'is':/^(?:yes|no|t38|cng|[0-9]+)$/}},'t38timeout':{'type':DataTypes['INTEGER'],'defaultValue':0x1388,'validate':{'min':0x3e8}},'tech':{'type':DataTypes['ENUM'](a221_0x534ffb(0x159),a221_0x534ffb(0x160),a221_0x534ffb(0x151),a221_0x534ffb(0x15f)),'defaultValue':a221_0x534ffb(0x159)},'key':{'type':DataTypes['STRING'],'allowNull':![]},'notificationTemplate':{'type':DataTypes[a221_0x534ffb(0x166)],'defaultValue':function(){const _0x50d08a=a221_0x534ffb;return _0x50d08a(0x15b);}},'notificationSound':{'type':DataTypes[a221_0x534ffb(0x15e)],'defaultValue':!![]},'notificationShake':{'type':DataTypes[a221_0x534ffb(0x15e)],'defaultValue':![]},'waitForTheAssignedAgent':{'type':DataTypes[a221_0x534ffb(0x169)],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'queueTransfer':{'type':DataTypes[a221_0x534ffb(0x15e)],'defaultValue':![]},'queueTransferTimeout':{'type':DataTypes[a221_0x534ffb(0x169)],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':DataTypes[a221_0x534ffb(0x15e)],'defaultValue':![]},'agentTransferTimeout':{'type':DataTypes['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'mandatoryDispositionPauseId':{'type':DataTypes[a221_0x534ffb(0x169)],'allowNull':!![],'defaultValue':null,'comment':a221_0x534ffb(0x15a)},'mandatoryDisposition':{'type':DataTypes[a221_0x534ffb(0x15e)],'defaultValue':![],'comment':'Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','set':function(_0x47d21b){const _0x5153c8=a221_0x534ffb;if(!_0x47d21b)this[_0x5153c8(0x161)](_0x5153c8(0x150),null);this[_0x5153c8(0x161)](_0x5153c8(0x158),_0x47d21b);}}};module[a221_0x534ffb(0x156)][a221_0x534ffb(0x162)]=attributes; \ No newline at end of file diff --git a/server/api/faxAccount/faxAccount.controller.js b/server/api/faxAccount/faxAccount.controller.js index 7baa8bf..15dec07 100644 --- a/server/api/faxAccount/faxAccount.controller.js +++ b/server/api/faxAccount/faxAccount.controller.js @@ -1 +1 @@ -const a186_0x17c1=['CDR(type)=inbound-fax','SendFaxRpc,\x20%s','map','from','updateAccountApplications','findByPk','pick','CannedAnswer','lodash','FaxAccountId','Unable\x20to\x20retrieve\x20the\x20current\x20user','color','$gte','json','getAnswers','internal','getDispositions','util','params','stringify','stack','Wait','rawAttributes','out','set','../../components/parsers/qs','message','where','YYYY-MM-DD\x20HH:mm:ss','user','join','name','intersection','path','undefined','minrate','register','removeAgents','filename','FaxAccount,\x20%s,\x20%s','body','description','defaults','addApplications','query','push','../../config/logger','FaxMessage','server/files/attachments','key','DESC','findAll','getInteractions','jayson/promise','catch','http','create','../../config/environment','Set','ListId','../../mysqldb','transaction','localstationid','getAgents','debug','exten','List','merge','like','../../rediscache','addDisposition','Tag','filter','./faxAccount.socket','destroy','ids','Owner','from-voip-provider','createdAt','priority','Contact\x20not\x20found','userFaxAccount:save','findOne','gateway','filters','options','mandatoryDispositionPause','offset','role','index','VoiceExtension','emit','Contacts','getMessages','Pause','UserProfileResource','status','rows','show','User','modem','updatedAt','sendStatus','send','Send\x20Fax\x20failed','api','Contact','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','split','FAXOPT(','faxdetect','format','describe','userProfileId','includeAll','update','count','\x22%s\x22\x20<%s>','FaxApplication','ReceiveFax','error','getApplications','nolimit','app','fields','get','info','ContactId','Disposition','FaxAccounts','tag','code','addAnswer','FaxAccount,\x20%s,\x20%s,\x20%s','autoAssociation','isNil','then','sequelize','addInteraction','moment','include','length','FaxInteraction','result','basename','client','CmContact','Fax\x20Extension','FaxAccount','fullname','appdata','SendFax','omit','UserProfileSection','sort','keys','removeAnswers','type','context','request\x20sent','headerinfo','findAndCountAll','userFaxAccount:remove','attributes','model','order','removeDispositions','limit','dataValues','Messages','end','attachments','addAgents'];(function(_0x315365,_0x17c1e9){const _0x11261e=function(_0x171bb0){while(--_0x171bb0){_0x315365['push'](_0x315365['shift']());}};_0x11261e(++_0x17c1e9);}(a186_0x17c1,0x16c));const a186_0x1126=function(_0x315365,_0x17c1e9){_0x315365=_0x315365-0x0;let _0x11261e=a186_0x17c1[_0x315365];return _0x11261e;};const _0x5ce2f5=a186_0x1126;'use strict';const moment=require(_0x5ce2f5('0x79')),util=require(_0x5ce2f5('0xac')),path=require(_0x5ce2f5('0xf')),_=require(_0x5ce2f5('0xa3')),{getSocket}=require(_0x5ce2f5('0x33')),socket=getSocket(),qs=require(_0x5ce2f5('0x7')),logger=require(_0x5ce2f5('0x1c'))(_0x5ce2f5('0x57')),config=require(_0x5ce2f5('0x27')),db=require(_0x5ce2f5('0x2a'))['db'],{Op}=require(_0x5ce2f5('0x77'));require(_0x5ce2f5('0x37'))[_0x5ce2f5('0x12')](socket);const jayson=require(_0x5ce2f5('0x23')),client=jayson[_0x5ce2f5('0x7f')]['http']({'port':0x232c}),client9002=jayson['client'][_0x5ce2f5('0x25')]({'port':0x232a});function respondWithRpcPromise(_0x171bb0,_0x323e98,_0x24b554,_0x44b3bb){return new Promise(function(_0x49cafb,_0x54d8fc){const _0x4ed18d=a186_0x1126,_0x5d8d8a=_0x44b3bb||client;return _0x5d8d8a['request'](_0x171bb0,_0x24b554)['then'](function(_0x560a51){const _0x2b59f3=a186_0x1126;logger[_0x2b59f3('0x6c')](_0x2b59f3('0x15'),_0x323e98,_0x2b59f3('0x8d')),logger[_0x2b59f3('0x2e')](_0x2b59f3('0x73'),_0x323e98,_0x2b59f3('0x8d'),JSON[_0x2b59f3('0x1')](_0x560a51));if(_0x560a51[_0x2b59f3('0x66')]){if(_0x560a51['error'][_0x2b59f3('0x71')]===0x1f4)return logger[_0x2b59f3('0x66')](_0x2b59f3('0x15'),_0x323e98,_0x560a51[_0x2b59f3('0x66')][_0x2b59f3('0x8')]),_0x54d8fc(_0x560a51[_0x2b59f3('0x66')]['message']);return logger[_0x2b59f3('0x66')](_0x2b59f3('0x15'),_0x323e98,_0x560a51['error'][_0x2b59f3('0x8')]),_0x49cafb(_0x560a51[_0x2b59f3('0x66')][_0x2b59f3('0x8')]);}else logger[_0x2b59f3('0x6c')]('FaxAccount,\x20%s,\x20%s',_0x323e98,_0x2b59f3('0x8d')),_0x49cafb(_0x560a51[_0x2b59f3('0x7d')]['message']);})[_0x4ed18d('0x24')](function(_0x3b3d25){logger['error']('FaxAccount,\x20%s,\x20%s',_0x323e98,_0x3b3d25),_0x54d8fc(_0x3b3d25);});});}function respondWithStatusCode(_0x3ac853,_0x286f19){return _0x286f19=_0x286f19||0xcc,function(_0x399e08){const _0x1c8e94=a186_0x1126;if(_0x399e08)return _0x3ac853[_0x1c8e94('0x54')](_0x286f19);return _0x3ac853[_0x1c8e94('0x4e')](_0x286f19)[_0x1c8e94('0x98')]();};}function respondWithResult(_0x56603d,_0x3d6f8d){return _0x3d6f8d=_0x3d6f8d||0xc8,function(_0x5a1e8e){const _0x4186c2=a186_0x1126;if(_0x5a1e8e)return _0x56603d[_0x4186c2('0x4e')](_0x3d6f8d)[_0x4186c2('0xa8')](_0x5a1e8e);};}function respondWithFilteredResult(_0x50a89a,_0x350be9){return function(_0x4b2269){const _0x1b12bc=a186_0x1126;if(_0x4b2269){const _0x17fd92=_0x4b2269[_0x1b12bc('0x62')],_0x2ab57f=_0x350be9['offset'];let _0x501b1a=_0x350be9['offset']+_0x350be9[_0x1b12bc('0x95')],_0x2a2051;return _0x501b1a>=_0x17fd92?(_0x501b1a=_0x17fd92,_0x2a2051=0xc8):_0x2a2051=0xce,_0x50a89a[_0x1b12bc('0x4e')](_0x2a2051),_0x50a89a[_0x1b12bc('0x6')]('Content-Range',_0x2ab57f+'-'+_0x501b1a+'/'+_0x17fd92)['json'](_0x4b2269);}return null;};}function saveUpdates(_0x1108e1){return function(_0x2744e0){const _0x120577=a186_0x1126;if(_0x2744e0)return _0x2744e0[_0x120577('0x61')](_0x1108e1)['then'](function(_0x2daf6e){return _0x2daf6e;});return null;};}function removeEntity(_0x11c79b){return function(_0xda2301){const _0x549144=a186_0x1126;if(_0xda2301)return _0xda2301[_0x549144('0x38')]()[_0x549144('0x76')](function(){const _0x58f04f=_0x549144,_0x8f103a=_0xda2301['get']({'plain':!![]}),_0x27a5dc='FaxAccounts';return db[_0x58f04f('0x4d')]['destroy']({'where':{'type':_0x27a5dc,'resourceId':_0x8f103a['id']}})['then'](function(){return _0xda2301;});})['then'](function(){const _0x4290b1=_0x549144;_0x11c79b[_0x4290b1('0x4e')](0xcc)[_0x4290b1('0x98')]();});};}function handleEntityNotFound(_0x570d47){return function(_0x320b91){const _0x36bb65=a186_0x1126;return!_0x320b91&&_0x570d47[_0x36bb65('0x54')](0x194),_0x320b91;};}function handleError(_0x230c28,_0x4a23db){return _0x4a23db=_0x4a23db||0x1f4,function(_0x1bcaae){const _0x39f882=a186_0x1126;logger[_0x39f882('0x66')](_0x1bcaae[_0x39f882('0x2')]),_0x1bcaae[_0x39f882('0xd')]&&delete _0x1bcaae[_0x39f882('0xd')],_0x230c28[_0x39f882('0x4e')](_0x4a23db)[_0x39f882('0x55')](_0x1bcaae);};}exports[_0x5ce2f5('0x47')]=function(_0x4f5596,_0x4c825e){const _0x2ced44=_0x5ce2f5;let _0x260bd9={'include':[{'model':db['Pause'],'as':'mandatoryDispositionPause'}]};const _0x440fa1={},_0x3bea2d={'count':0x0,'rows':[]},_0x4d2d77=_[_0x2ced44('0x9d')](db['FaxAccount'][_0x2ced44('0x4')],function(_0x40fdd1){const _0x57aa76=_0x2ced44;return{'name':_0x40fdd1['fieldName'],'type':_0x40fdd1[_0x57aa76('0x8b')][_0x57aa76('0x1f')]};});_0x440fa1['model']=_[_0x2ced44('0x9d')](_0x4d2d77,_0x2ced44('0xd')),_0x440fa1[_0x2ced44('0x1a')]=_[_0x2ced44('0x89')](_0x4f5596[_0x2ced44('0x1a')]),_0x440fa1[_0x2ced44('0x42')]=_[_0x2ced44('0xe')](_0x440fa1['model'],_0x440fa1[_0x2ced44('0x1a')]),_0x260bd9['attributes']=_[_0x2ced44('0xe')](_0x440fa1[_0x2ced44('0x92')],qs['fields'](_0x4f5596['query']['fields'])),_0x260bd9['attributes']=_0x260bd9['attributes']['length']?_0x260bd9[_0x2ced44('0x91')]:_0x440fa1['model'];typeof _0x4f5596[_0x2ced44('0x1a')]['nolimit']==='undefined'&&(_0x260bd9[_0x2ced44('0x95')]=qs['limit'](_0x4f5596[_0x2ced44('0x1a')]['limit']),_0x260bd9[_0x2ced44('0x45')]=qs[_0x2ced44('0x45')](_0x4f5596[_0x2ced44('0x1a')][_0x2ced44('0x45')]));_0x260bd9[_0x2ced44('0x93')]=qs[_0x2ced44('0x88')](_0x4f5596['query'][_0x2ced44('0x88')]),_0x260bd9[_0x2ced44('0x9')]=qs[_0x2ced44('0x42')](_[_0x2ced44('0xa1')](_0x4f5596[_0x2ced44('0x1a')],_0x440fa1['filters']),_0x4d2d77);_0x4f5596['query'][_0x2ced44('0x36')]&&(_0x260bd9['where']=_[_0x2ced44('0x31')](_0x260bd9[_0x2ced44('0x9')],{[Op['or']]:_['map'](_0x4d2d77,function(_0x3cf03b){const _0x1d44bc=_0x2ced44;if(_0x3cf03b[_0x1d44bc('0x8b')]!=='VIRTUAL'){const _0x357728={};return _0x357728[_0x3cf03b['name']]={[Op['like']]:'%'+_0x4f5596[_0x1d44bc('0x1a')][_0x1d44bc('0x36')]+'%'},_0x357728;}})}));_0x260bd9=_['merge']({},_0x260bd9,_0x4f5596['options']);const _0x2d1fc9={'where':_0x260bd9[_0x2ced44('0x9')]};return db['FaxAccount'][_0x2ced44('0x62')](_0x2d1fc9)['then'](function(_0x13752e){const _0x6dfc99=_0x2ced44;return _0x3bea2d[_0x6dfc99('0x62')]=_0x13752e,_0x4f5596[_0x6dfc99('0x1a')]['includeAll']&&(_0x260bd9[_0x6dfc99('0x7a')]=[{'all':!![]}]),db[_0x6dfc99('0x82')]['findAll'](_0x260bd9);})[_0x2ced44('0x76')](function(_0x591ad5){const _0xede151=_0x2ced44;return _0x3bea2d[_0xede151('0x4f')]=_0x591ad5,_0x3bea2d;})[_0x2ced44('0x76')](respondWithFilteredResult(_0x4c825e,_0x260bd9))[_0x2ced44('0x24')](handleError(_0x4c825e,null));},exports[_0x5ce2f5('0x50')]=function(_0x15901c,_0x5a17e9){const _0x264a92=_0x5ce2f5;let _0x3b51dd={'raw':![],'where':{'id':_0x15901c['params']['id']},'include':[{'model':db['Pause'],'as':_0x264a92('0x44')}]};const _0x27a9a7={};return _0x27a9a7[_0x264a92('0x92')]=_[_0x264a92('0x89')](db[_0x264a92('0x82')]['rawAttributes']),_0x27a9a7[_0x264a92('0x1a')]=_[_0x264a92('0x89')](_0x15901c[_0x264a92('0x1a')]),_0x27a9a7[_0x264a92('0x42')]=_[_0x264a92('0xe')](_0x27a9a7[_0x264a92('0x92')],_0x27a9a7[_0x264a92('0x1a')]),_0x3b51dd[_0x264a92('0x91')]=_[_0x264a92('0xe')](_0x27a9a7[_0x264a92('0x92')],qs['fields'](_0x15901c[_0x264a92('0x1a')]['fields'])),_0x3b51dd[_0x264a92('0x91')]=_0x3b51dd[_0x264a92('0x91')]['length']?_0x3b51dd[_0x264a92('0x91')]:_0x27a9a7[_0x264a92('0x92')],_0x15901c[_0x264a92('0x1a')]['includeAll']&&(_0x3b51dd[_0x264a92('0x7a')]=[{'all':!![]}]),_0x3b51dd=_[_0x264a92('0x31')]({},_0x3b51dd,_0x15901c[_0x264a92('0x43')]),db['FaxAccount'][_0x264a92('0x40')](_0x3b51dd)['then'](handleEntityNotFound(_0x5a17e9,null))[_0x264a92('0x76')](respondWithResult(_0x5a17e9,null))[_0x264a92('0x24')](handleError(_0x5a17e9,null));},exports[_0x5ce2f5('0x26')]=function(_0xe3f00d,_0x1ff59b){const _0x144df1=_0x5ce2f5;return db['FaxAccount'][_0x144df1('0x26')](_0xe3f00d[_0x144df1('0x16')],{})[_0x144df1('0x76')](function(_0x530b8e){const _0x54548c=_0x144df1,_0x26bc0f=_0xe3f00d['user'][_0x54548c('0x6b')]({'plain':!![]});if(!_0x26bc0f)throw new Error(_0x54548c('0xa5'));if(_0x26bc0f[_0x54548c('0x46')]==='user'){const _0x3f3edf=_0x530b8e[_0x54548c('0x6b')]({'plain':!![]}),_0x5c716f=_0x54548c('0x6f');return db[_0x54548c('0x87')]['findOne']({'where':{'name':_0x5c716f,'userProfileId':_0x26bc0f[_0x54548c('0x5f')]},'raw':!![]})[_0x54548c('0x76')](function(_0x4cd5c0){const _0x5988ca=_0x54548c;return _0x4cd5c0&&_0x4cd5c0[_0x5988ca('0x74')]===0x0?db[_0x5988ca('0x4d')][_0x5988ca('0x26')]({'name':_0x3f3edf[_0x5988ca('0xd')],'resourceId':_0x3f3edf['id'],'type':_0x4cd5c0[_0x5988ca('0xd')],'sectionId':_0x4cd5c0['id']},{})[_0x5988ca('0x76')](function(){return _0x530b8e;}):_0x530b8e;})[_0x54548c('0x24')](function(_0x3402e0){const _0x5d5352=_0x54548c;logger['error'](_0x5d5352('0x59'),_0x3402e0);throw _0x3402e0;});}return _0x530b8e;})[_0x144df1('0x76')](respondWithResult(_0x1ff59b,0xc9))[_0x144df1('0x24')](handleError(_0x1ff59b,null));},exports[_0x5ce2f5('0x61')]=function(_0x102045,_0x2972b0){const _0x7d718=_0x5ce2f5;return _0x102045[_0x7d718('0x16')]['id']&&delete _0x102045[_0x7d718('0x16')]['id'],db['FaxAccount'][_0x7d718('0x40')]({'where':{'id':_0x102045['params']['id']},'include':[{'model':db[_0x7d718('0x4c')],'as':'mandatoryDispositionPause'}]})[_0x7d718('0x76')](handleEntityNotFound(_0x2972b0,null))['then'](saveUpdates(_0x102045[_0x7d718('0x16')],null))['then'](respondWithResult(_0x2972b0,null))[_0x7d718('0x24')](handleError(_0x2972b0,null));},exports['destroy']=function(_0x1ecf8b,_0x3dcaa2){const _0x5f2ccf=_0x5ce2f5;return db[_0x5f2ccf('0x82')][_0x5f2ccf('0x40')]({'where':{'id':_0x1ecf8b[_0x5f2ccf('0x0')]['id']}})[_0x5f2ccf('0x76')](handleEntityNotFound(_0x3dcaa2,null))[_0x5f2ccf('0x76')](removeEntity(_0x3dcaa2,null))[_0x5f2ccf('0x24')](handleError(_0x3dcaa2,null));},exports[_0x5ce2f5('0x5e')]=function(_0x3d6ae2,_0x59f7ad){const _0x5961c8=_0x5ce2f5;return db['FaxAccount'][_0x5961c8('0x5e')]()['then'](respondWithResult(_0x59f7ad,null))[_0x5961c8('0x24')](handleError(_0x59f7ad,null));},exports[_0x5ce2f5('0x34')]=function(_0x1240c6,_0x174b57){const _0x45a9ee=_0x5ce2f5;return _0x1240c6[_0x45a9ee('0x16')]['id']&&delete _0x1240c6[_0x45a9ee('0x16')]['id'],db[_0x45a9ee('0x82')][_0x45a9ee('0x40')]({'where':{'id':_0x1240c6[_0x45a9ee('0x0')]['id']}})['then'](handleEntityNotFound(_0x174b57,null))[_0x45a9ee('0x76')](function(_0x4e5866){const _0x4b400e=_0x45a9ee;if(_0x4e5866)return _0x1240c6[_0x4b400e('0x16')][_0x4b400e('0xa4')]=_0x4e5866['id'],db[_0x4b400e('0x6e')][_0x4b400e('0x26')](_0x1240c6[_0x4b400e('0x16')]);})[_0x45a9ee('0x76')](respondWithResult(_0x174b57,null))[_0x45a9ee('0x24')](handleError(_0x174b57,null));},exports[_0x5ce2f5('0xab')]=function(_0x53ab63,_0x188954){const _0x973144=_0x5ce2f5;let _0x12e028={'raw':![],'where':{}};const _0x147251={},_0x3e1e31={'count':0x0,'rows':[]};return db[_0x973144('0x82')][_0x973144('0x40')]({'where':{'id':_0x53ab63['params']['id']}})[_0x973144('0x76')](handleEntityNotFound(_0x188954,null))[_0x973144('0x76')](function(_0x40f3be){const _0x2e6691=_0x973144;if(_0x40f3be)return _0x147251[_0x2e6691('0x92')]=_[_0x2e6691('0x89')](db[_0x2e6691('0x6e')]['rawAttributes']),_0x147251[_0x2e6691('0x1a')]=_[_0x2e6691('0x89')](_0x53ab63['query']),_0x147251[_0x2e6691('0x42')]=_[_0x2e6691('0xe')](_0x147251[_0x2e6691('0x92')],_0x147251[_0x2e6691('0x1a')]),_0x12e028[_0x2e6691('0x91')]=_['intersection'](_0x147251[_0x2e6691('0x92')],qs['fields'](_0x53ab63[_0x2e6691('0x1a')][_0x2e6691('0x6a')])),_0x12e028['attributes']=_0x12e028[_0x2e6691('0x91')][_0x2e6691('0x7b')]?_0x12e028[_0x2e6691('0x91')]:_0x147251[_0x2e6691('0x92')],typeof _0x53ab63[_0x2e6691('0x1a')][_0x2e6691('0x68')]===_0x2e6691('0x10')&&(_0x12e028[_0x2e6691('0x95')]=qs['limit'](_0x53ab63[_0x2e6691('0x1a')][_0x2e6691('0x95')]),_0x12e028[_0x2e6691('0x45')]=qs[_0x2e6691('0x45')](_0x53ab63['query'][_0x2e6691('0x45')])),_0x12e028['order']=qs[_0x2e6691('0x88')](_0x53ab63[_0x2e6691('0x1a')][_0x2e6691('0x88')]),_0x12e028[_0x2e6691('0x9')]=qs[_0x2e6691('0x42')](_[_0x2e6691('0xa1')](_0x53ab63[_0x2e6691('0x1a')],_0x147251['filters'])),_0x12e028['where'][_0x2e6691('0xa4')]=_0x40f3be['id'],_0x53ab63[_0x2e6691('0x1a')][_0x2e6691('0x36')]&&(_0x12e028['where']=_[_0x2e6691('0x31')](_0x12e028[_0x2e6691('0x9')],{[Op['or']]:_[_0x2e6691('0x9d')](_0x12e028['attributes'],function(_0x5265a1){const _0x18b915=_0x2e6691,_0x552edf={};return _0x552edf[_0x5265a1]={[Op[_0x18b915('0x32')]]:'%'+_0x53ab63[_0x18b915('0x1a')]['filter']+'%'},_0x552edf;})})),_0x12e028=_[_0x2e6691('0x31')]({},_0x12e028,_0x53ab63[_0x2e6691('0x43')]),db['Disposition'][_0x2e6691('0x62')]({'where':_0x12e028[_0x2e6691('0x9')]})[_0x2e6691('0x76')](function(_0x56c57e){const _0x5de2ea=_0x2e6691;return _0x3e1e31[_0x5de2ea('0x62')]=_0x56c57e,_0x53ab63[_0x5de2ea('0x1a')]['includeAll']&&(_0x12e028[_0x5de2ea('0x7a')]=[{'all':!![]}]),db['Disposition'][_0x5de2ea('0x21')](_0x12e028);})[_0x2e6691('0x76')](function(_0x27a36b){const _0x21106b=_0x2e6691;return _0x3e1e31[_0x21106b('0x4f')]=_0x27a36b,_0x3e1e31;});})[_0x973144('0x76')](respondWithFilteredResult(_0x188954,_0x12e028))[_0x973144('0x24')](handleError(_0x188954,null));},exports[_0x5ce2f5('0x94')]=function(_0x3fb900,_0x472880){const _0x32d001=_0x5ce2f5;return db[_0x32d001('0x82')][_0x32d001('0x40')]({'where':{'id':_0x3fb900['params']['id']}})[_0x32d001('0x76')](handleEntityNotFound(_0x472880,null))[_0x32d001('0x76')](function(_0x12015c){const _0xe798de=_0x32d001;if(_0x12015c)return _0x12015c[_0xe798de('0x94')](_0x3fb900['query']['ids']);})[_0x32d001('0x76')](respondWithStatusCode(_0x472880,null))[_0x32d001('0x24')](handleError(_0x472880,null));},exports[_0x5ce2f5('0x72')]=function(_0x5def08,_0x200d8f){const _0xbdd9f3=_0x5ce2f5;return _0x5def08['body']['id']&&delete _0x5def08['body']['id'],db[_0xbdd9f3('0x82')][_0xbdd9f3('0x40')]({'where':{'id':_0x5def08['params']['id']}})['then'](handleEntityNotFound(_0x200d8f,null))[_0xbdd9f3('0x76')](function(_0x3e245c){const _0x2e38cd=_0xbdd9f3;if(_0x3e245c)return _0x5def08[_0x2e38cd('0x16')][_0x2e38cd('0xa4')]=_0x3e245c['id'],db[_0x2e38cd('0xa2')][_0x2e38cd('0x26')](_0x5def08['body']);})[_0xbdd9f3('0x76')](respondWithResult(_0x200d8f,null))[_0xbdd9f3('0x24')](handleError(_0x200d8f,null));},exports[_0x5ce2f5('0xa9')]=function(_0x518ee2,_0x25b564){const _0x5dc552=_0x5ce2f5;let _0x3034db={'raw':![],'where':{}};const _0x465c56={},_0x195fd8={'count':0x0,'rows':[]};return db[_0x5dc552('0x82')][_0x5dc552('0x40')]({'where':{'id':_0x518ee2['params']['id']}})['then'](handleEntityNotFound(_0x25b564,null))[_0x5dc552('0x76')](function(_0x5a6c8f){const _0x286fd7=_0x5dc552;if(_0x5a6c8f)return _0x465c56[_0x286fd7('0x92')]=_[_0x286fd7('0x89')](db[_0x286fd7('0xa2')][_0x286fd7('0x4')]),_0x465c56[_0x286fd7('0x1a')]=_[_0x286fd7('0x89')](_0x518ee2[_0x286fd7('0x1a')]),_0x465c56[_0x286fd7('0x42')]=_[_0x286fd7('0xe')](_0x465c56[_0x286fd7('0x92')],_0x465c56[_0x286fd7('0x1a')]),_0x3034db[_0x286fd7('0x91')]=_['intersection'](_0x465c56['model'],qs[_0x286fd7('0x6a')](_0x518ee2['query'][_0x286fd7('0x6a')])),_0x3034db[_0x286fd7('0x91')]=_0x3034db[_0x286fd7('0x91')]['length']?_0x3034db['attributes']:_0x465c56[_0x286fd7('0x92')],typeof _0x518ee2['query'][_0x286fd7('0x68')]===_0x286fd7('0x10')&&(_0x3034db[_0x286fd7('0x95')]=qs[_0x286fd7('0x95')](_0x518ee2[_0x286fd7('0x1a')]['limit']),_0x3034db['offset']=qs['offset'](_0x518ee2[_0x286fd7('0x1a')][_0x286fd7('0x45')])),_0x3034db[_0x286fd7('0x93')]=qs[_0x286fd7('0x88')](_0x518ee2[_0x286fd7('0x1a')]['sort']),_0x3034db[_0x286fd7('0x9')]=qs[_0x286fd7('0x42')](_[_0x286fd7('0xa1')](_0x518ee2[_0x286fd7('0x1a')],_0x465c56[_0x286fd7('0x42')])),_0x3034db[_0x286fd7('0x9')]['FaxAccountId']=_0x5a6c8f['id'],_0x518ee2['query'][_0x286fd7('0x36')]&&(_0x3034db[_0x286fd7('0x9')]=_[_0x286fd7('0x31')](_0x3034db['where'],{[Op['or']]:_[_0x286fd7('0x9d')](_0x3034db['attributes'],function(_0x43c903){const _0x1eef21=_0x286fd7,_0x387022={};return _0x387022[_0x43c903]={[Op[_0x1eef21('0x32')]]:'%'+_0x518ee2[_0x1eef21('0x1a')][_0x1eef21('0x36')]+'%'},_0x387022;})})),_0x3034db=_[_0x286fd7('0x31')]({},_0x3034db,_0x518ee2[_0x286fd7('0x43')]),db[_0x286fd7('0xa2')][_0x286fd7('0x62')]({'where':_0x3034db[_0x286fd7('0x9')]})[_0x286fd7('0x76')](function(_0x519d3d){const _0xa7d5b0=_0x286fd7;return _0x195fd8[_0xa7d5b0('0x62')]=_0x519d3d,_0x518ee2[_0xa7d5b0('0x1a')][_0xa7d5b0('0x60')]&&(_0x3034db[_0xa7d5b0('0x7a')]=[{'all':!![]}]),db[_0xa7d5b0('0xa2')]['findAll'](_0x3034db);})['then'](function(_0x1aa5bd){const _0x36872f=_0x286fd7;return _0x195fd8[_0x36872f('0x4f')]=_0x1aa5bd,_0x195fd8;});})[_0x5dc552('0x76')](respondWithFilteredResult(_0x25b564,_0x3034db))[_0x5dc552('0x24')](handleError(_0x25b564,null));},exports[_0x5ce2f5('0x8a')]=function(_0x1df0c9,_0x535dc3){const _0x4548df=_0x5ce2f5;return db[_0x4548df('0x82')][_0x4548df('0x40')]({'where':{'id':_0x1df0c9[_0x4548df('0x0')]['id']}})[_0x4548df('0x76')](handleEntityNotFound(_0x535dc3,null))['then'](function(_0x2ed739){const _0x2fac72=_0x4548df;if(_0x2ed739)return _0x2ed739[_0x2fac72('0x8a')](_0x1df0c9[_0x2fac72('0x1a')][_0x2fac72('0x39')]);})['then'](respondWithStatusCode(_0x535dc3,null))[_0x4548df('0x24')](handleError(_0x535dc3,null));},exports['addInteraction']=function(_0x3fd200,_0x4a9ead){const _0x1d7229=_0x5ce2f5;return db[_0x1d7229('0x7c')][_0x1d7229('0x40')]({'where':{'id':_0x3fd200['params']['id']}})[_0x1d7229('0x76')](function(_0x35dfbb){const _0x3ed59d=_0x1d7229;if(_0x35dfbb)return _0x35dfbb[_0x3ed59d('0x78')](_0x3fd200[_0x3ed59d('0x16')][_0x3ed59d('0x39')],{'through':_[_0x3ed59d('0x86')](_0x3fd200[_0x3ed59d('0x16')],[_0x3ed59d('0x39'),'id'])});})[_0x1d7229('0x76')](respondWithResult(_0x4a9ead,null))[_0x1d7229('0x24')](handleError(_0x4a9ead,null));},exports[_0x5ce2f5('0x22')]=function(_0x3fae4a,_0x190852){const _0x54fb72=_0x5ce2f5;let _0x14c23d={'raw':![],'where':{}};const _0x2a81d2={},_0x3dc457={'count':0x0,'rows':[]};return db[_0x54fb72('0x82')][_0x54fb72('0x40')]({'where':{'id':_0x3fae4a[_0x54fb72('0x0')]['id']}})[_0x54fb72('0x76')](handleEntityNotFound(_0x190852,null))[_0x54fb72('0x76')](function(_0x2067c0){const _0x3ea250=_0x54fb72;if(_0x2067c0)return _0x2a81d2[_0x3ea250('0x92')]=_[_0x3ea250('0x89')](db[_0x3ea250('0x7c')][_0x3ea250('0x4')]),_0x2a81d2[_0x3ea250('0x1a')]=_[_0x3ea250('0x89')](_0x3fae4a[_0x3ea250('0x1a')]),_0x2a81d2[_0x3ea250('0x42')]=_[_0x3ea250('0xe')](_0x2a81d2[_0x3ea250('0x92')],_0x2a81d2['query']),_0x14c23d[_0x3ea250('0x91')]=_[_0x3ea250('0xe')](_0x2a81d2[_0x3ea250('0x92')],qs[_0x3ea250('0x6a')](_0x3fae4a[_0x3ea250('0x1a')][_0x3ea250('0x6a')])),_0x14c23d[_0x3ea250('0x91')]=_0x14c23d[_0x3ea250('0x91')][_0x3ea250('0x7b')]?_0x14c23d[_0x3ea250('0x91')]:_0x2a81d2[_0x3ea250('0x92')],typeof _0x3fae4a[_0x3ea250('0x1a')][_0x3ea250('0x68')]===_0x3ea250('0x10')&&(_0x14c23d[_0x3ea250('0x95')]=qs[_0x3ea250('0x95')](_0x3fae4a[_0x3ea250('0x1a')]['limit']),_0x14c23d['offset']=qs['offset'](_0x3fae4a['query'][_0x3ea250('0x45')])),_0x14c23d[_0x3ea250('0x93')]=qs[_0x3ea250('0x88')](_0x3fae4a['query'][_0x3ea250('0x88')]),_0x14c23d['where']=qs[_0x3ea250('0x42')](_[_0x3ea250('0xa1')](_0x3fae4a[_0x3ea250('0x1a')],_0x2a81d2['filters'])),_0x14c23d[_0x3ea250('0x9')][_0x3ea250('0xa4')]=_0x2067c0['id'],_0x3fae4a[_0x3ea250('0x1a')][_0x3ea250('0x36')]&&(_0x14c23d[_0x3ea250('0x9')]=_[_0x3ea250('0x31')](_0x14c23d[_0x3ea250('0x9')],{[Op['or']]:_['map'](_0x14c23d[_0x3ea250('0x91')],function(_0x4bc845){const _0x19d421=_0x3ea250,_0x39e107={};return _0x39e107[_0x4bc845]={[Op[_0x19d421('0x32')]]:'%'+_0x3fae4a[_0x19d421('0x1a')][_0x19d421('0x36')]+'%'},_0x39e107;})})),_0x14c23d=_[_0x3ea250('0x31')]({},_0x14c23d,_0x3fae4a['options']),db['FaxInteraction'][_0x3ea250('0x62')]({'where':_0x14c23d[_0x3ea250('0x9')]})[_0x3ea250('0x76')](function(_0x4b82eb){const _0x5494f3=_0x3ea250;return _0x3dc457[_0x5494f3('0x62')]=_0x4b82eb,_0x3fae4a['query'][_0x5494f3('0x60')]&&(_0x14c23d['include']=[{'model':db[_0x5494f3('0x80')],'as':_0x5494f3('0x58'),'required':![]},{'model':db[_0x5494f3('0x51')],'as':_0x5494f3('0x3a'),'attributes':[_0x5494f3('0xd'),_0x5494f3('0x83'),_0x5494f3('0xaa')],'required':![]},{'model':db[_0x5494f3('0x35')],'as':'Tags','attributes':['id',_0x5494f3('0xd'),_0x5494f3('0xa6')],'where':_0x3fae4a[_0x5494f3('0x1a')][_0x5494f3('0x70')]?{'id':_0x3fae4a[_0x5494f3('0x1a')][_0x5494f3('0x70')]}:undefined,'required':_0x3fae4a[_0x5494f3('0x1a')][_0x5494f3('0x70')]?!![]:![]}]),db[_0x5494f3('0x7c')][_0x5494f3('0x21')](_0x14c23d);})[_0x3ea250('0x76')](function(_0xf3156b){const _0x54735a=_0x3ea250;return _0x3dc457[_0x54735a('0x4f')]=_0xf3156b,_0x3dc457;});})[_0x54fb72('0x76')](respondWithFilteredResult(_0x190852,_0x14c23d))[_0x54fb72('0x24')](handleError(_0x190852,null));},exports[_0x5ce2f5('0x19')]=function(_0x572752,_0x5aa3d8){const _0xffd7a8=_0x5ce2f5;return db[_0xffd7a8('0x82')][_0xffd7a8('0x40')]({'where':{'id':_0x572752[_0xffd7a8('0x0')]['id']}})[_0xffd7a8('0x76')](handleEntityNotFound(_0x5aa3d8,null))['then'](function(_0xb3b8de){const _0x3d6221=_0xffd7a8;if(_0xb3b8de)return db['sequelize'][_0x3d6221('0x2b')](function(_0x24db37){const _0x5b173c=_0x3d6221;return db[_0x5b173c('0x64')][_0x5b173c('0x38')]({'where':{'FaxAccountId':_0x572752['params']['id']},'transaction':_0x24db37})[_0x5b173c('0x76')](function(){const _0x45aca1=_0x5b173c,_0x38da66=_[_0x45aca1('0x9d')](_0x572752[_0x45aca1('0x16')],function(_0x1fd193){const _0x2d69de=_0x45aca1;return _0x1fd193[_0x2d69de('0xa4')]=_0x572752[_0x2d69de('0x0')]['id'],_0x1fd193;});return db[_0x45aca1('0x64')]['bulkCreate'](_0x38da66,{'transaction':_0x24db37});});})[_0x3d6221('0x76')](function(){const _0x6015f1=_0x3d6221;return db[_0x6015f1('0x64')][_0x6015f1('0x8f')]({'where':{'FaxAccountId':_0x572752['params']['id']},'order':'priority'});});})[_0xffd7a8('0x76')](respondWithResult(_0x5aa3d8,null))['catch'](handleError(_0x5aa3d8,null));},exports[_0x5ce2f5('0x67')]=function(_0x5c58cd,_0x3433c8){const _0x1afd1c=_0x5ce2f5;let _0x33915c={};const _0x3b9b0f={};let _0x15d50b,_0x3d5c61;return db[_0x1afd1c('0x82')][_0x1afd1c('0x40')]({'where':{'id':_0x5c58cd[_0x1afd1c('0x0')]['id']}})[_0x1afd1c('0x76')](handleEntityNotFound(_0x3433c8,null))['then'](function(_0x524e90){const _0x125827=_0x1afd1c;if(_0x524e90)return _0x15d50b=_0x524e90,_0x3b9b0f[_0x125827('0x92')]=_[_0x125827('0x89')](db['FaxApplication'][_0x125827('0x4')]),_0x3b9b0f['query']=_[_0x125827('0x89')](_0x5c58cd[_0x125827('0x1a')]),_0x3b9b0f[_0x125827('0x42')]=_[_0x125827('0xe')](_0x3b9b0f['model'],_0x3b9b0f[_0x125827('0x1a')]),_0x33915c['attributes']=_[_0x125827('0xe')](_0x3b9b0f['model'],qs[_0x125827('0x6a')](_0x5c58cd[_0x125827('0x1a')][_0x125827('0x6a')])),_0x33915c[_0x125827('0x91')]=_0x33915c[_0x125827('0x91')][_0x125827('0x7b')]?_0x33915c[_0x125827('0x91')]:_0x3b9b0f[_0x125827('0x92')],_0x33915c[_0x125827('0x93')]=qs[_0x125827('0x88')](_0x5c58cd[_0x125827('0x1a')][_0x125827('0x88')]),_0x33915c[_0x125827('0x9')]=qs['filters'](_[_0x125827('0xa1')](_0x5c58cd['query'],_0x3b9b0f['filters'])),_0x5c58cd[_0x125827('0x1a')][_0x125827('0x36')]&&(_0x33915c[_0x125827('0x9')]=_[_0x125827('0x31')](_0x33915c['where'],{[Op['or']]:_['map'](_0x33915c[_0x125827('0x91')],function(_0x151970){const _0x9c4d9d=_0x125827,_0x2f814a={};return _0x2f814a[_0x151970]={[Op['like']]:'%'+_0x5c58cd[_0x9c4d9d('0x1a')][_0x9c4d9d('0x36')]+'%'},_0x2f814a;})})),_0x33915c=_[_0x125827('0x31')]({},_0x33915c,_0x5c58cd[_0x125827('0x43')]),_0x15d50b[_0x125827('0x67')](_0x33915c);})[_0x1afd1c('0x76')](function(_0x2b4f69){const _0xf8b2d5=_0x1afd1c;if(_0x2b4f69)return _0x3d5c61=_0x2b4f69[_0xf8b2d5('0x7b')],typeof _0x5c58cd[_0xf8b2d5('0x1a')]['nolimit']===_0xf8b2d5('0x10')&&(_0x33915c[_0xf8b2d5('0x95')]=qs[_0xf8b2d5('0x95')](_0x5c58cd[_0xf8b2d5('0x1a')]['limit']),_0x33915c['offset']=qs[_0xf8b2d5('0x45')](_0x5c58cd[_0xf8b2d5('0x1a')][_0xf8b2d5('0x45')])),_0x15d50b[_0xf8b2d5('0x67')](_0x33915c);})[_0x1afd1c('0x76')](function(_0x25aa81){if(_0x25aa81)return _0x25aa81?{'count':_0x3d5c61,'rows':_0x25aa81}:null;})[_0x1afd1c('0x76')](respondWithResult(_0x3433c8,null))[_0x1afd1c('0x24')](handleError(_0x3433c8,null));};function Extension(_0x3b35d5,_0x2b7bc7,_0x2dcb30,_0x56835a){const _0x988d94=_0x5ce2f5;this[_0x988d94('0x8c')]=_0x988d94('0x3b'),this[_0x988d94('0x2f')]=_0x3b35d5[_0x988d94('0x2c')],this[_0x988d94('0x69')]=_0x56835a,this[_0x988d94('0x8b')]='system',this[_0x988d94('0x17')]=_0x988d94('0x81'),this[_0x988d94('0xa4')]=_0x3b35d5['id'],this[_0x988d94('0x3d')]=_0x2b7bc7,this[_0x988d94('0x84')]=_0x2dcb30;}function createExtensionsReciveFax(_0x3bc497){const _0x3440c3=_0x5ce2f5;let _0x2af688=0x1;const _0x33bb98=[];_0x33bb98[_0x3440c3('0x1b')](new Extension(_0x3bc497,_0x2af688,'','Answer')),_0x2af688+=0x1,_0x33bb98['push'](new Extension(_0x3bc497,_0x2af688,_0x3440c3('0x9b'),_0x3440c3('0x28'))),_0x2af688+=0x1;for(const _0x3769f5 in _0x3bc497){typeof _0x3bc497[_0x3769f5]!==_0x3440c3('0x10')&&(_0x3769f5==='ecm'||_0x3769f5===_0x3440c3('0x2c')||_0x3769f5===_0x3440c3('0x41')||_0x3769f5===_0x3440c3('0x5c')||_0x3769f5===_0x3440c3('0x8e')||_0x3769f5==='maxrate'||_0x3769f5===_0x3440c3('0x11')||_0x3769f5===_0x3440c3('0x52')||_0x3769f5==='t38timeout')&&(_0x33bb98[_0x3440c3('0x1b')](new Extension(_0x3bc497,_0x2af688,_0x3440c3('0x5b')+_0x3769f5+')='+_0x3bc497[_0x3769f5],_0x3440c3('0x28'))),_0x2af688+=0x1);}return _0x33bb98['push'](new Extension(_0x3bc497,_0x2af688,'6',_0x3440c3('0x3'))),_0x2af688+=0x1,_0x33bb98[_0x3440c3('0x1b')](new Extension(_0x3bc497,_0x2af688,'/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',_0x3440c3('0x65'))),_0x2af688=0x0,_0x33bb98;}exports['addAccountApplications']=function(_0x44b250,_0x33fe96){const _0x4a5f21=_0x5ce2f5;let _0x5b3313;return db[_0x4a5f21('0x77')][_0x4a5f21('0x2b')](function(_0x350e52){const _0x29c261=_0x4a5f21;return db[_0x29c261('0x82')][_0x29c261('0x26')](_0x44b250[_0x29c261('0x16')],{'transaction':_0x350e52})[_0x29c261('0x76')](function(_0x26bce2){const _0x369658=_0x29c261;return _0x5b3313=_0x26bce2[_0x369658('0x6b')]({'plain':!![]}),db[_0x369658('0x48')]['bulkCreate'](createExtensionsReciveFax(_0x5b3313),{'transaction':_0x350e52});});})['then'](function(){return _0x5b3313;})[_0x4a5f21('0x76')](respondWithResult(_0x33fe96,null))['catch'](handleError(_0x33fe96,null));},exports[_0x5ce2f5('0x9f')]=function(_0xfa3bcd,_0x332485){const _0x40b5fe=_0x5ce2f5;return db[_0x40b5fe('0x77')][_0x40b5fe('0x2b')](function(_0x47ff35){const _0x12a78a=_0x40b5fe;return db['FaxAccount'][_0x12a78a('0x61')](_0xfa3bcd[_0x12a78a('0x16')],{'where':{'id':_0xfa3bcd[_0x12a78a('0x16')]['id']},'transaction':_0x47ff35})[_0x12a78a('0x76')](function(){const _0x4345e7=_0x12a78a;return db[_0x4345e7('0x48')][_0x4345e7('0x38')]({'where':{'FaxAccountId':_0xfa3bcd[_0x4345e7('0x16')]['id']},'transaction':_0x47ff35})[_0x4345e7('0x76')](function(){const _0x1ed23a=_0x4345e7;return db[_0x1ed23a('0x48')]['bulkCreate'](createExtensionsReciveFax(_['omit'](_0xfa3bcd[_0x1ed23a('0x16')],['tech',_0x1ed23a('0x1f'),_0x1ed23a('0x3c'),_0x1ed23a('0x53'),'TrunkId',_0x1ed23a('0x29')])),{'transaction':_0x47ff35});});});})[_0x40b5fe('0x76')](function(){const _0x45d139=_0x40b5fe;return db[_0x45d139('0x82')][_0x45d139('0xa0')](_0xfa3bcd[_0x45d139('0x16')]['id']);})[_0x40b5fe('0x76')](respondWithResult(_0x332485,null))[_0x40b5fe('0x24')](handleError(_0x332485,null));},exports[_0x5ce2f5('0x4b')]=function(_0x3445d0,_0x5290c9){const _0x22a6c8=_0x5ce2f5;let _0x177ed4={'raw':!![],'where':{}};const _0x1e115e={},_0x5ac1b4={'count':0x0,'rows':[]};return db[_0x22a6c8('0x82')][_0x22a6c8('0x40')]({'where':{'id':_0x3445d0['params']['id']}})[_0x22a6c8('0x76')](handleEntityNotFound(_0x5290c9,null))['then'](function(_0x161b9c){const _0x11e56e=_0x22a6c8;if(_0x161b9c){_0x1e115e[_0x11e56e('0x92')]=_[_0x11e56e('0x89')](db[_0x11e56e('0x1d')]['rawAttributes']),_0x1e115e['query']=_['keys'](_0x3445d0[_0x11e56e('0x1a')]),_0x1e115e[_0x11e56e('0x42')]=_[_0x11e56e('0xe')](_0x1e115e[_0x11e56e('0x92')],_0x1e115e['query']),_0x177ed4[_0x11e56e('0x91')]=_[_0x11e56e('0xe')](_0x1e115e[_0x11e56e('0x92')],qs[_0x11e56e('0x6a')](_0x3445d0[_0x11e56e('0x1a')]['fields'])),_0x177ed4[_0x11e56e('0x91')]=_0x177ed4[_0x11e56e('0x91')][_0x11e56e('0x7b')]?_0x177ed4[_0x11e56e('0x91')]:_0x1e115e[_0x11e56e('0x92')];typeof _0x3445d0[_0x11e56e('0x1a')][_0x11e56e('0x68')]===_0x11e56e('0x10')&&(_0x177ed4[_0x11e56e('0x95')]=qs['limit'](_0x3445d0[_0x11e56e('0x1a')]['limit']),_0x177ed4[_0x11e56e('0x45')]=qs[_0x11e56e('0x45')](_0x3445d0[_0x11e56e('0x1a')][_0x11e56e('0x45')]));_0x177ed4[_0x11e56e('0x93')]=qs[_0x11e56e('0x88')](_0x3445d0[_0x11e56e('0x1a')][_0x11e56e('0x88')]),_0x177ed4[_0x11e56e('0x9')]=qs['filters'](_[_0x11e56e('0xa1')](_0x3445d0[_0x11e56e('0x1a')],_0x1e115e[_0x11e56e('0x42')])),_0x177ed4[_0x11e56e('0x9')][_0x11e56e('0xa4')]=_0x161b9c['id'];_0x3445d0[_0x11e56e('0x1a')]['filter']&&(_0x177ed4[_0x11e56e('0x9')]=_[_0x11e56e('0x31')](_0x177ed4['where'],{[Op['or']]:_[_0x11e56e('0x9d')](_0x177ed4[_0x11e56e('0x91')],function(_0x50df3e){const _0x68065e=_0x11e56e,_0x166344={};return _0x166344[_0x50df3e]={[Op[_0x68065e('0x32')]]:'%'+_0x3445d0[_0x68065e('0x1a')][_0x68065e('0x36')]+'%'},_0x166344;})}));if(_0x3445d0[_0x11e56e('0x1a')][_0x11e56e('0xa7')]){const _0x429aa1=_0x3445d0['query'][_0x11e56e('0xa7')][_0x11e56e('0x5a')](','),_0x520be9={};_0x520be9[_0x429aa1[0x0]]={[Op['gte']]:moment(_0x429aa1[0x1])[_0x11e56e('0x5d')](_0x11e56e('0xa'))},_0x177ed4[_0x11e56e('0x9')]=_[_0x11e56e('0x31')](_0x177ed4[_0x11e56e('0x9')],_0x520be9);}return _0x177ed4=_[_0x11e56e('0x31')]({},_0x177ed4,_0x3445d0['options']),db[_0x11e56e('0x1d')][_0x11e56e('0x62')]({'where':_0x177ed4[_0x11e56e('0x9')]})[_0x11e56e('0x76')](function(_0x226b3e){const _0x3e898f=_0x11e56e;return _0x5ac1b4[_0x3e898f('0x62')]=_0x226b3e,_0x3445d0['query']['includeAll']&&(_0x177ed4[_0x3e898f('0x7a')]=[{'all':!![]}]),db[_0x3e898f('0x1d')]['findAll'](_0x177ed4);})[_0x11e56e('0x76')](function(_0x3b1152){return _0x5ac1b4['rows']=_0x3b1152,_0x5ac1b4;});}})[_0x22a6c8('0x76')](respondWithFilteredResult(_0x5290c9,_0x177ed4))[_0x22a6c8('0x24')](handleError(_0x5290c9,null));},exports[_0x5ce2f5('0x55')]=function(_0x1d18b5,_0x2f393){const _0x33d386=_0x5ce2f5;let _0xb3ee22,_0x13f89a;return _0x1d18b5[_0x33d386('0x16')]['to']&&(_0x13f89a=_0x1d18b5[_0x33d386('0x16')]['to'][0x0]),db[_0x33d386('0x82')]['findOne']({'where':{'id':_0x1d18b5['params']['id']},'include':[{'model':db['CmList'],'as':_0x33d386('0x30'),'include':[{'model':db[_0x33d386('0x80')],'as':_0x33d386('0x4a'),'where':{'fax':_0x13f89a},'limit':0x1,'order':[[_0x33d386('0x53'),_0x33d386('0x20')]]}]}]})[_0x33d386('0x76')](handleEntityNotFound(_0x2f393,null))['then'](function(_0x3b11ad){const _0x1ea5f5=_0x33d386;_0xb3ee22=_0x3b11ad;if(_0x1d18b5[_0x1ea5f5('0x16')][_0x1ea5f5('0x99')]&&_0x1d18b5['body'][_0x1ea5f5('0x99')]['length'])for(let _0x4dc43c=0x0;_0x4dc43c<_0x1d18b5[_0x1ea5f5('0x16')][_0x1ea5f5('0x99')][_0x1ea5f5('0x7b')];_0x4dc43c+=0x1){_0x1d18b5['body'][_0x1ea5f5('0x99')][_0x4dc43c]={'filename':_0x1d18b5[_0x1ea5f5('0x16')][_0x1ea5f5('0x99')][_0x4dc43c][_0x1ea5f5('0xd')],'id':_0x1d18b5[_0x1ea5f5('0x16')][_0x1ea5f5('0x99')][_0x4dc43c]['id'],'path':path[_0x1ea5f5('0xc')](config['root'],_0x1ea5f5('0x1e'),_0x1d18b5[_0x1ea5f5('0x16')][_0x1ea5f5('0x99')][_0x4dc43c][_0x1ea5f5('0x7e')])};}return respondWithRpcPromise('CheckAfterSend','CheckAfterSend',{'FaxAccountId':_[_0x1ea5f5('0x75')](_0x1d18b5['params']['id'])?undefined:_0x1d18b5[_0x1ea5f5('0x0')]['id'],'path':_[_0x1ea5f5('0x75')](_0x1d18b5[_0x1ea5f5('0x16')]['attachments'][0x0]['path'])?undefined:_0x1d18b5[_0x1ea5f5('0x16')][_0x1ea5f5('0x99')][0x0]['path'],'fax':_[_0x1ea5f5('0x75')](_0x1d18b5[_0x1ea5f5('0x16')]['to'][0x0])?undefined:_0x1d18b5[_0x1ea5f5('0x16')]['to'][0x0]},client9002);})[_0x33d386('0x76')](function(){const _0x3c61f6=_0x33d386;if(_0xb3ee22){_[_0x3c61f6('0x75')](_0x1d18b5[_0x3c61f6('0x16')][_0x3c61f6('0x9e')])&&(_0x1d18b5['body'][_0x3c61f6('0x9e')]=util[_0x3c61f6('0x5d')](_0x3c61f6('0x63'),_0xb3ee22['name'],_0xb3ee22['fax']));if(_0xb3ee22[_0x3c61f6('0x30')])return _0xb3ee22[_0x3c61f6('0x30')][_0x3c61f6('0x4a')][_0x3c61f6('0x7b')]?_0xb3ee22['List'][_0x3c61f6('0x4a')][0x0]:db[_0x3c61f6('0x80')][_0x3c61f6('0x26')](_[_0x3c61f6('0x18')](_0x1d18b5[_0x3c61f6('0x16')],{'firstName':_0x1d18b5[_0x3c61f6('0x16')]['to'][0x0],'phone':_0x1d18b5[_0x3c61f6('0x16')]['to'][0x0],'fax':_0x1d18b5[_0x3c61f6('0x16')]['to'][0x0],'ListId':_0xb3ee22[_0x3c61f6('0x29')]}));else throw new Error('List\x20not\x20found');}else throw new Error(_0x3c61f6('0x56'));})[_0x33d386('0x76')](function(_0x563fa7){const _0x162493=_0x33d386;if(_0x563fa7)return db['FaxInteraction'][_0x162493('0x40')]({'where':{'ContactId':_0x563fa7['id'],'closed':![],'FaxAccountId':_0xb3ee22['id']}})[_0x162493('0x76')](function(_0xd96e51){const _0x3ca03b=_0x162493;if(_0xd96e51)return[_0xd96e51,![]];return db[_0x3ca03b('0x7c')][_0x3ca03b('0x26')]({'UserId':_0x1d18b5[_0x3ca03b('0xb')]['id'],'ContactId':_0x563fa7['id'],'FaxAccountId':_0xb3ee22['id'],'fax':_0x1d18b5[_0x3ca03b('0x16')]['to'][0x0],'firstMsgDirection':_0x3ca03b('0x5'),'Messages':[_[_0x3ca03b('0x31')](_0x1d18b5[_0x3ca03b('0x16')],{'read':![],'body':_0x1d18b5[_0x3ca03b('0x16')][_0x3ca03b('0x99')][0x0][_0x3ca03b('0x14')],'FaxAccountId':_0xb3ee22['id'],'UserId':_0x1d18b5[_0x3ca03b('0xb')]['id'],'ContactId':_0x563fa7['id'],'AttachmentId':_0x1d18b5[_0x3ca03b('0x16')][_0x3ca03b('0x99')][0x0]['id']})]},{'include':[{'model':db[_0x3ca03b('0x1d')],'as':_0x3ca03b('0x97')}]})[_0x3ca03b('0x76')](function(_0x264a9a){return[_0x264a9a,!![]];});});else throw new Error(_0x162493('0x3e'));})[_0x33d386('0x76')](function([_0x5989b2,_0x44bda7]){const _0x58d3f5=_0x33d386;if(_0x44bda7)return _0x5989b2;return db[_0x58d3f5('0x1d')]['create']({'direction':'out','read':![],'body':_0x1d18b5[_0x58d3f5('0x16')]['attachments'][0x0][_0x58d3f5('0x14')],'FaxAccountId':_0xb3ee22['id'],'FaxInteractionId':_0x5989b2['id'],'UserId':_0x1d18b5[_0x58d3f5('0xb')]['id'],'ContactId':_0x5989b2[_0x58d3f5('0x6d')],'AttachmentId':_0x1d18b5['body'][_0x58d3f5('0x99')][0x0]['id']})[_0x58d3f5('0x76')](function(_0x4fea42){const _0x54bc4f=_0x58d3f5;return _0x5989b2['dataValues'][_0x54bc4f('0x97')]=[],_0x5989b2[_0x54bc4f('0x96')]['Messages'][_0x54bc4f('0x1b')](_0x4fea42[_0x54bc4f('0x96')]),_0x5989b2;});})['then'](function(_0x4ce544){const _0x1f58c6=_0x33d386;return respondWithRpcPromise(_0x1f58c6('0x85'),_0x1f58c6('0x85'),{'FaxAccountId':_[_0x1f58c6('0x75')](_0x1d18b5[_0x1f58c6('0x0')]['id'])?undefined:_0x1d18b5[_0x1f58c6('0x0')]['id'],'path':_[_0x1f58c6('0x75')](_0x1d18b5['body']['attachments'][0x0][_0x1f58c6('0xf')])?undefined:_0x1d18b5['body'][_0x1f58c6('0x99')][0x0][_0x1f58c6('0xf')],'fax':_[_0x1f58c6('0x75')](_0x1d18b5[_0x1f58c6('0x16')]['to'][0x0])?undefined:_0x1d18b5[_0x1f58c6('0x16')]['to'][0x0],'AttachmentId':_0x1d18b5[_0x1f58c6('0x16')]['attachments'][0x0]['id']},client9002)[_0x1f58c6('0x76')](function(_0x15c856){logger['info']('SendFaxRpc,\x20%s',_0x15c856);})[_0x1f58c6('0x24')](function(_0x1540a8){const _0x5048ed=_0x1f58c6;logger[_0x5048ed('0x6c')](_0x5048ed('0x9c'),_0x1540a8);}),_0x4ce544;})[_0x33d386('0x76')](respondWithResult(_0x2f393,null))[_0x33d386('0x24')](handleError(_0x2f393,null));},exports[_0x5ce2f5('0x9a')]=function(_0x4260d7,_0x7be675){const _0x575383=_0x5ce2f5;return db[_0x575383('0x82')][_0x575383('0x40')]({'where':{'id':_0x4260d7['params']['id']}})[_0x575383('0x76')](function(_0x3ceb07){const _0x66b51a=_0x575383;if(_0x3ceb07)return _0x3ceb07['addAgents'](_0x4260d7['body'][_0x66b51a('0x39')],{'through':_[_0x66b51a('0x86')](_0x4260d7[_0x66b51a('0x16')],[_0x66b51a('0x39'),'id'])})[_0x66b51a('0x76')](function(_0x4d22bc){const _0x2071a7=_0x66b51a;for(let _0x539cb2=0x0;_0x539cb2<_0x4260d7[_0x2071a7('0x16')]['ids'][_0x2071a7('0x7b')];_0x539cb2+=0x1){socket[_0x2071a7('0x49')](_0x2071a7('0x3f'),{'UserId':_0x4260d7[_0x2071a7('0x16')][_0x2071a7('0x39')][_0x539cb2],'FaxAccountId':_0x4260d7['params']['id']});}return _0x4d22bc;});})[_0x575383('0x76')](respondWithResult(_0x7be675,null))[_0x575383('0x24')](handleError(_0x7be675,null));},exports[_0x5ce2f5('0x13')]=function(_0x31c396,_0xec58f1){const _0x4edbd7=_0x5ce2f5;return db[_0x4edbd7('0x82')][_0x4edbd7('0x40')]({'where':{'id':_0x31c396[_0x4edbd7('0x0')]['id']}})[_0x4edbd7('0x76')](handleEntityNotFound(_0xec58f1,null))[_0x4edbd7('0x76')](function(_0x211f66){const _0x20da46=_0x4edbd7;if(_0x211f66)return _0x211f66[_0x20da46('0x13')](_0x31c396[_0x20da46('0x1a')][_0x20da46('0x39')])['then'](function(){const _0x195acf=_0x20da46;if(_['isArray'](_0x31c396['query']['ids']))for(let _0x619906=0x0;_0x619906<_0x31c396[_0x195acf('0x1a')][_0x195acf('0x39')][_0x195acf('0x7b')];_0x619906+=0x1){socket[_0x195acf('0x49')](_0x195acf('0x90'),{'UserId':Number(_0x31c396[_0x195acf('0x1a')][_0x195acf('0x39')][_0x619906]),'FaxAccountId':Number(_0x31c396['params']['id'])});}else socket[_0x195acf('0x49')](_0x195acf('0x90'),{'UserId':Number(_0x31c396['query']['ids']),'FaxAccountId':Number(_0x31c396[_0x195acf('0x0')]['id'])});});})['then'](respondWithStatusCode(_0xec58f1,null))[_0x4edbd7('0x24')](handleError(_0xec58f1,null));},exports[_0x5ce2f5('0x2d')]=function(_0x2b28d4,_0x112082){const _0x56dbca=_0x5ce2f5;let _0x5217e6={};const _0x3eba35={};let _0x16d16b,_0x228b9e;return db[_0x56dbca('0x82')][_0x56dbca('0x40')]({'where':{'id':_0x2b28d4[_0x56dbca('0x0')]['id']}})[_0x56dbca('0x76')](handleEntityNotFound(_0x112082,null))[_0x56dbca('0x76')](function(_0x19b2f3){const _0x2dcd5d=_0x56dbca;if(_0x19b2f3)return _0x16d16b=_0x19b2f3,_0x3eba35[_0x2dcd5d('0x92')]=_[_0x2dcd5d('0x89')](db[_0x2dcd5d('0x51')][_0x2dcd5d('0x4')]),_0x3eba35[_0x2dcd5d('0x1a')]=_[_0x2dcd5d('0x89')](_0x2b28d4[_0x2dcd5d('0x1a')]),_0x3eba35['filters']=_[_0x2dcd5d('0xe')](_0x3eba35[_0x2dcd5d('0x92')],_0x3eba35[_0x2dcd5d('0x1a')]),_0x5217e6['attributes']=_[_0x2dcd5d('0xe')](_0x3eba35[_0x2dcd5d('0x92')],qs[_0x2dcd5d('0x6a')](_0x2b28d4[_0x2dcd5d('0x1a')]['fields'])),_0x5217e6[_0x2dcd5d('0x91')]=_0x5217e6['attributes'][_0x2dcd5d('0x7b')]?_0x5217e6['attributes']:_0x3eba35[_0x2dcd5d('0x92')],_0x5217e6['order']=qs[_0x2dcd5d('0x88')](_0x2b28d4['query'][_0x2dcd5d('0x88')]),_0x5217e6[_0x2dcd5d('0x9')]=qs[_0x2dcd5d('0x42')](_[_0x2dcd5d('0xa1')](_0x2b28d4[_0x2dcd5d('0x1a')],_0x3eba35[_0x2dcd5d('0x42')])),_0x2b28d4[_0x2dcd5d('0x1a')]['filter']&&(_0x5217e6[_0x2dcd5d('0x9')]=_[_0x2dcd5d('0x31')](_0x5217e6[_0x2dcd5d('0x9')],{[Op['or']]:_[_0x2dcd5d('0x9d')](_0x5217e6[_0x2dcd5d('0x91')],function(_0x5df5a2){const _0x43db49=_0x2dcd5d,_0x582124={};return _0x582124[_0x5df5a2]={[Op[_0x43db49('0x32')]]:'%'+_0x2b28d4[_0x43db49('0x1a')]['filter']+'%'},_0x582124;})})),_0x5217e6=_[_0x2dcd5d('0x31')]({},_0x5217e6,_0x2b28d4['options']),_0x16d16b['getAgents'](_0x5217e6);})[_0x56dbca('0x76')](function(_0x111a4a){const _0x272f3c=_0x56dbca;if(_0x111a4a)return _0x228b9e=_0x111a4a[_0x272f3c('0x7b')],typeof _0x2b28d4[_0x272f3c('0x1a')][_0x272f3c('0x68')]===_0x272f3c('0x10')&&(_0x5217e6[_0x272f3c('0x95')]=qs[_0x272f3c('0x95')](_0x2b28d4['query'][_0x272f3c('0x95')]),_0x5217e6['offset']=qs[_0x272f3c('0x45')](_0x2b28d4[_0x272f3c('0x1a')][_0x272f3c('0x45')])),_0x16d16b[_0x272f3c('0x2d')](_0x5217e6);})[_0x56dbca('0x76')](function(_0x32f96f){if(_0x32f96f)return _0x32f96f?{'count':_0x228b9e,'rows':_0x32f96f}:null;})[_0x56dbca('0x76')](respondWithResult(_0x112082,null))[_0x56dbca('0x24')](handleError(_0x112082,null));}; \ No newline at end of file +const a222_0x2a15=['attributes','ContactId','findOne','getAgents','like','CmContact','priority','user','Pause','../../rediscache','getInteractions','minrate','fieldName','get','includeAll','User','json','include','exten','ids','stack','SendFaxRpc,\x20%s','catch','update','FaxAccount,\x20%s,\x20%s','merge','mandatoryDispositionPause','FaxInteraction','path','SendFax','Wait','status','sendStatus','attachments','VoiceExtension','omit','type','bulkCreate','Disposition','tech','info','server/files/attachments','register','filters','format','describe','Owner','FaxApplication','internal','FaxAccount','emit','gateway','Contact','gte','transaction','show','dataValues','localstationid','error','rows','model','updatedAt','then','CDR(type)=inbound-fax','Unable\x20to\x20retrieve\x20the\x20current\x20user','util','removeAnswers','moment','pick','set','getAnswers','addInteraction','ecm','../../mysqldb','userFaxAccount:remove','request\x20sent','removeAgents','params','fields','addAgents','Answer','$gte','Contact\x20not\x20found','filter','modem','FaxAccount,\x20%s,\x20%s,\x20%s','code','Contacts','t38timeout','maxrate','lodash','FaxMessage','Tags','CheckAfterSend','rawAttributes','message','Send\x20Fax\x20failed','push','order','stringify','length','UserProfileResource','faxdetect','app','sequelize','List\x20not\x20found','removeDispositions','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','debug','getMessages','from','tag','/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','options','sort','FaxAccounts','http','client','destroy','../../config/logger','FaxAccountId','intersection','undefined','role','createdAt','out','where','context','addApplications','addAccountApplications','map','limit','findAndCountAll','addDisposition','nolimit','Messages','CannedAnswer','UserProfileSection','name','List','fax','keys','getApplications','updateAccountApplications','headerinfo','system','findAll','userFaxAccount:save','count','isArray','key','ReceiveFax','end','body','basename','create','Set','TrunkId','filename','../../components/parsers/qs','jayson/promise','DESC','root','FAXOPT(','query','appdata','isNil','Fax\x20Extension','\x22%s\x22\x20<%s>','offset'];(function(_0x42dbd3,_0x4a2ae7){const _0x2a150c=function(_0x5a4e5d){while(--_0x5a4e5d){_0x42dbd3['push'](_0x42dbd3['shift']());}};_0x2a150c(++_0x4a2ae7);}(a222_0x2a15,0xfb));const a222_0x5a4e=function(_0x42dbd3,_0x4a2ae7){_0x42dbd3=_0x42dbd3-0x136;let _0x2a150c=a222_0x2a15[_0x42dbd3];return _0x2a150c;};const a222_0x1b0590=a222_0x5a4e;'use strict';const moment=require(a222_0x1b0590(0x1d2)),util=require(a222_0x1b0590(0x1d0)),path=require(a222_0x1b0590(0x1ab)),_=require(a222_0x1b0590(0x13f)),{getSocket}=require(a222_0x1b0590(0x198)),socket=getSocket(),qs=require(a222_0x1b0590(0x184)),logger=require(a222_0x1b0590(0x15c))('api'),config=require('../../config/environment'),{db}=require(a222_0x1b0590(0x1d8)),{Op}=require(a222_0x1b0590(0x14d));require('./faxAccount.socket')[a222_0x1b0590(0x1b9)](socket);const jayson=require(a222_0x1b0590(0x185)),client=jayson[a222_0x1b0590(0x15a)]['http']({'port':0x232c}),client9002=jayson[a222_0x1b0590(0x15a)][a222_0x1b0590(0x159)]({'port':0x232a});function respondWithRpcPromise(_0x580008,_0x4dcc39,_0x19c437,_0x4d8127){return new Promise(function(_0x5cb753,_0x4256e0){const _0x1beb69=a222_0x5a4e,_0x8e5e8c=_0x4d8127||client;return _0x8e5e8c['request'](_0x580008,_0x19c437)[_0x1beb69(0x1cd)](function(_0x90afc8){const _0x2f9fe8=_0x1beb69;logger[_0x2f9fe8(0x1b7)](_0x2f9fe8(0x1a7),_0x4dcc39,'request\x20sent'),logger[_0x2f9fe8(0x151)](_0x2f9fe8(0x13a),_0x4dcc39,_0x2f9fe8(0x1da),JSON[_0x2f9fe8(0x148)](_0x90afc8));if(_0x90afc8[_0x2f9fe8(0x1c9)]){if(_0x90afc8[_0x2f9fe8(0x1c9)][_0x2f9fe8(0x13b)]===0x1f4)return logger['error']('FaxAccount,\x20%s,\x20%s',_0x4dcc39,_0x90afc8[_0x2f9fe8(0x1c9)][_0x2f9fe8(0x144)]),_0x4256e0(_0x90afc8[_0x2f9fe8(0x1c9)][_0x2f9fe8(0x144)]);return logger[_0x2f9fe8(0x1c9)](_0x2f9fe8(0x1a7),_0x4dcc39,_0x90afc8[_0x2f9fe8(0x1c9)][_0x2f9fe8(0x144)]),_0x5cb753(_0x90afc8['error'][_0x2f9fe8(0x144)]);}else logger['info'](_0x2f9fe8(0x1a7),_0x4dcc39,_0x2f9fe8(0x1da)),_0x5cb753(_0x90afc8['result'][_0x2f9fe8(0x144)]);})[_0x1beb69(0x1a5)](function(_0x23bf5d){logger['error']('FaxAccount,\x20%s,\x20%s',_0x4dcc39,_0x23bf5d),_0x4256e0(_0x23bf5d);});});}function respondWithStatusCode(_0x4c7c64,_0x26e00f){return _0x26e00f=_0x26e00f||0xcc,function(_0x8c650){const _0x2491d4=a222_0x5a4e;if(_0x8c650)return _0x4c7c64[_0x2491d4(0x1af)](_0x26e00f);return _0x4c7c64[_0x2491d4(0x1ae)](_0x26e00f)[_0x2491d4(0x17d)]();};}function respondWithResult(_0x5997eb,_0x283b66){return _0x283b66=_0x283b66||0xc8,function(_0x2cb2f6){const _0x56181e=a222_0x5a4e;if(_0x2cb2f6)return _0x5997eb['status'](_0x283b66)[_0x56181e(0x19f)](_0x2cb2f6);};}function respondWithFilteredResult(_0x27cb98,_0x2903f3){return function(_0x422f6d){const _0x25ae05=a222_0x5a4e;if(_0x422f6d){const _0x2b0eac=_0x422f6d['count'],_0x54e438=_0x2903f3['offset'];let _0x494e5a=_0x2903f3[_0x25ae05(0x18e)]+_0x2903f3[_0x25ae05(0x168)],_0x73a1ac;return _0x494e5a>=_0x2b0eac?(_0x494e5a=_0x2b0eac,_0x73a1ac=0xc8):_0x73a1ac=0xce,_0x27cb98[_0x25ae05(0x1ae)](_0x73a1ac),_0x27cb98[_0x25ae05(0x1d4)]('Content-Range',_0x54e438+'-'+_0x494e5a+'/'+_0x2b0eac)[_0x25ae05(0x19f)](_0x422f6d);}return null;};}function saveUpdates(_0x46539e){return function(_0x13c87f){const _0x498fcc=a222_0x5a4e;if(_0x13c87f)return _0x13c87f[_0x498fcc(0x1a6)](_0x46539e)['then'](function(_0x5c5564){return _0x5c5564;});return null;};}function removeEntity(_0x4551d8){return function(_0x53b1a0){const _0x1d12f9=a222_0x5a4e;if(_0x53b1a0)return _0x53b1a0[_0x1d12f9(0x15b)]()[_0x1d12f9(0x1cd)](function(){const _0x3ed4a1=_0x1d12f9,_0x22d364=_0x53b1a0[_0x3ed4a1(0x19c)]({'plain':!![]}),_0x4683cc=_0x3ed4a1(0x158);return db['UserProfileResource'][_0x3ed4a1(0x15b)]({'where':{'type':_0x4683cc,'resourceId':_0x22d364['id']}})[_0x3ed4a1(0x1cd)](function(){return _0x53b1a0;});})[_0x1d12f9(0x1cd)](function(){const _0x4f2ff6=_0x1d12f9;_0x4551d8[_0x4f2ff6(0x1ae)](0xcc)[_0x4f2ff6(0x17d)]();});};}function handleEntityNotFound(_0x471247){return function(_0x4e3220){const _0x22adbe=a222_0x5a4e;return!_0x4e3220&&_0x471247[_0x22adbe(0x1af)](0x194),_0x4e3220;};}function handleError(_0x267ff6,_0x1e9d1f){return _0x1e9d1f=_0x1e9d1f||0x1f4,function(_0x581712){const _0x488919=a222_0x5a4e;logger['error'](_0x581712[_0x488919(0x1a3)]),_0x581712[_0x488919(0x16f)]&&delete _0x581712[_0x488919(0x16f)],_0x267ff6[_0x488919(0x1ae)](_0x1e9d1f)['send'](_0x581712);};}exports['index']=function(_0x5ec752,_0x811ed5){const _0x28f111=a222_0x1b0590;let _0x50f1af={'include':[{'model':db[_0x28f111(0x197)],'as':_0x28f111(0x1a9)}]};const _0x23f5fa={},_0x156090={'count':0x0,'rows':[]},_0x571c8c=_[_0x28f111(0x167)](db[_0x28f111(0x1c0)][_0x28f111(0x143)],function(_0x2ee9f7){const _0x3f0f00=_0x28f111;return{'name':_0x2ee9f7[_0x3f0f00(0x19b)],'type':_0x2ee9f7[_0x3f0f00(0x1b3)][_0x3f0f00(0x17b)]};});_0x23f5fa[_0x28f111(0x1cb)]=_[_0x28f111(0x167)](_0x571c8c,'name'),_0x23f5fa[_0x28f111(0x189)]=_['keys'](_0x5ec752[_0x28f111(0x189)]),_0x23f5fa[_0x28f111(0x1ba)]=_[_0x28f111(0x15e)](_0x23f5fa[_0x28f111(0x1cb)],_0x23f5fa[_0x28f111(0x189)]),_0x50f1af[_0x28f111(0x18f)]=_[_0x28f111(0x15e)](_0x23f5fa[_0x28f111(0x1cb)],qs[_0x28f111(0x1dd)](_0x5ec752['query'][_0x28f111(0x1dd)])),_0x50f1af['attributes']=_0x50f1af[_0x28f111(0x18f)]['length']?_0x50f1af[_0x28f111(0x18f)]:_0x23f5fa[_0x28f111(0x1cb)];typeof _0x5ec752[_0x28f111(0x189)]['nolimit']==='undefined'&&(_0x50f1af[_0x28f111(0x168)]=qs[_0x28f111(0x168)](_0x5ec752[_0x28f111(0x189)][_0x28f111(0x168)]),_0x50f1af[_0x28f111(0x18e)]=qs[_0x28f111(0x18e)](_0x5ec752[_0x28f111(0x189)][_0x28f111(0x18e)]));_0x50f1af[_0x28f111(0x147)]=qs['sort'](_0x5ec752['query'][_0x28f111(0x157)]),_0x50f1af['where']=qs['filters'](_[_0x28f111(0x1d3)](_0x5ec752[_0x28f111(0x189)],_0x23f5fa[_0x28f111(0x1ba)]),_0x571c8c);_0x5ec752[_0x28f111(0x189)]['filter']&&(_0x50f1af[_0x28f111(0x163)]=_[_0x28f111(0x1a8)](_0x50f1af[_0x28f111(0x163)],{[Op['or']]:_['map'](_0x571c8c,function(_0x257c06){const _0x93c259=_0x28f111;if(_0x257c06['type']!=='VIRTUAL'){const _0x57f3d2={};return _0x57f3d2[_0x257c06[_0x93c259(0x16f)]]={[Op[_0x93c259(0x193)]]:'%'+_0x5ec752[_0x93c259(0x189)][_0x93c259(0x138)]+'%'},_0x57f3d2;}})}));_0x50f1af=_[_0x28f111(0x1a8)]({},_0x50f1af,_0x5ec752['options']);const _0xc73655={'where':_0x50f1af[_0x28f111(0x163)]};return db[_0x28f111(0x1c0)][_0x28f111(0x179)](_0xc73655)[_0x28f111(0x1cd)](function(_0x1e8545){const _0x7979ae=_0x28f111;return _0x156090['count']=_0x1e8545,_0x5ec752[_0x7979ae(0x189)][_0x7979ae(0x19d)]&&(_0x50f1af['include']=[{'all':!![]}]),db['FaxAccount'][_0x7979ae(0x177)](_0x50f1af);})[_0x28f111(0x1cd)](function(_0x326a5a){const _0x202d14=_0x28f111;return _0x156090[_0x202d14(0x1ca)]=_0x326a5a,_0x156090;})['then'](respondWithFilteredResult(_0x811ed5,_0x50f1af))['catch'](handleError(_0x811ed5,null));},exports[a222_0x1b0590(0x1c6)]=function(_0x112cef,_0x3ecf75){const _0x46cf12=a222_0x1b0590;let _0x2408c1={'raw':![],'where':{'id':_0x112cef[_0x46cf12(0x1dc)]['id']},'include':[{'model':db[_0x46cf12(0x197)],'as':_0x46cf12(0x1a9)}]};const _0x1e1b16={};return _0x1e1b16['model']=_['keys'](db[_0x46cf12(0x1c0)][_0x46cf12(0x143)]),_0x1e1b16[_0x46cf12(0x189)]=_[_0x46cf12(0x172)](_0x112cef['query']),_0x1e1b16['filters']=_[_0x46cf12(0x15e)](_0x1e1b16[_0x46cf12(0x1cb)],_0x1e1b16[_0x46cf12(0x189)]),_0x2408c1['attributes']=_['intersection'](_0x1e1b16[_0x46cf12(0x1cb)],qs['fields'](_0x112cef[_0x46cf12(0x189)][_0x46cf12(0x1dd)])),_0x2408c1[_0x46cf12(0x18f)]=_0x2408c1[_0x46cf12(0x18f)][_0x46cf12(0x149)]?_0x2408c1[_0x46cf12(0x18f)]:_0x1e1b16[_0x46cf12(0x1cb)],_0x112cef[_0x46cf12(0x189)][_0x46cf12(0x19d)]&&(_0x2408c1[_0x46cf12(0x1a0)]=[{'all':!![]}]),_0x2408c1=_[_0x46cf12(0x1a8)]({},_0x2408c1,_0x112cef['options']),db[_0x46cf12(0x1c0)]['findOne'](_0x2408c1)['then'](handleEntityNotFound(_0x3ecf75,null))[_0x46cf12(0x1cd)](respondWithResult(_0x3ecf75,null))[_0x46cf12(0x1a5)](handleError(_0x3ecf75,null));},exports[a222_0x1b0590(0x180)]=function(_0x2d3446,_0x3701a5){const _0x5f3e47=a222_0x1b0590;return db[_0x5f3e47(0x1c0)][_0x5f3e47(0x180)](_0x2d3446[_0x5f3e47(0x17e)],{})['then'](function(_0x37b845){const _0x1b44c6=_0x5f3e47,_0x2a6b2d=_0x2d3446[_0x1b44c6(0x196)][_0x1b44c6(0x19c)]({'plain':!![]});if(!_0x2a6b2d)throw new Error(_0x1b44c6(0x1cf));if(_0x2a6b2d[_0x1b44c6(0x160)]===_0x1b44c6(0x196)){const _0x3d8a22=_0x37b845[_0x1b44c6(0x19c)]({'plain':!![]}),_0x444024=_0x1b44c6(0x158);return db[_0x1b44c6(0x16e)][_0x1b44c6(0x191)]({'where':{'name':_0x444024,'userProfileId':_0x2a6b2d['userProfileId']},'raw':!![]})['then'](function(_0x1fe98f){const _0x1b4b68=_0x1b44c6;return _0x1fe98f&&_0x1fe98f['autoAssociation']===0x0?db[_0x1b4b68(0x14a)]['create']({'name':_0x3d8a22[_0x1b4b68(0x16f)],'resourceId':_0x3d8a22['id'],'type':_0x1fe98f[_0x1b4b68(0x16f)],'sectionId':_0x1fe98f['id']},{})['then'](function(){return _0x37b845;}):_0x37b845;})[_0x1b44c6(0x1a5)](function(_0xb9fd0){const _0x31a240=_0x1b44c6;logger[_0x31a240(0x1c9)](_0x31a240(0x150),_0xb9fd0);throw _0xb9fd0;});}return _0x37b845;})[_0x5f3e47(0x1cd)](respondWithResult(_0x3701a5,0xc9))[_0x5f3e47(0x1a5)](handleError(_0x3701a5,null));},exports[a222_0x1b0590(0x1a6)]=function(_0x3f89a1,_0x178e72){const _0x47685d=a222_0x1b0590;return _0x3f89a1[_0x47685d(0x17e)]['id']&&delete _0x3f89a1[_0x47685d(0x17e)]['id'],db[_0x47685d(0x1c0)][_0x47685d(0x191)]({'where':{'id':_0x3f89a1['params']['id']},'include':[{'model':db[_0x47685d(0x197)],'as':_0x47685d(0x1a9)}]})[_0x47685d(0x1cd)](handleEntityNotFound(_0x178e72,null))[_0x47685d(0x1cd)](saveUpdates(_0x3f89a1[_0x47685d(0x17e)],null))[_0x47685d(0x1cd)](respondWithResult(_0x178e72,null))['catch'](handleError(_0x178e72,null));},exports[a222_0x1b0590(0x15b)]=function(_0x4588f4,_0x106d75){const _0x2ca209=a222_0x1b0590;return db[_0x2ca209(0x1c0)][_0x2ca209(0x191)]({'where':{'id':_0x4588f4[_0x2ca209(0x1dc)]['id']}})[_0x2ca209(0x1cd)](handleEntityNotFound(_0x106d75,null))[_0x2ca209(0x1cd)](removeEntity(_0x106d75,null))[_0x2ca209(0x1a5)](handleError(_0x106d75,null));},exports[a222_0x1b0590(0x1bc)]=function(_0x277925,_0x4c8a28){const _0x1dedf3=a222_0x1b0590;return db['FaxAccount']['describe']()[_0x1dedf3(0x1cd)](respondWithResult(_0x4c8a28,null))[_0x1dedf3(0x1a5)](handleError(_0x4c8a28,null));},exports[a222_0x1b0590(0x16a)]=function(_0x2444d6,_0x5687d5){const _0x317893=a222_0x1b0590;return _0x2444d6[_0x317893(0x17e)]['id']&&delete _0x2444d6['body']['id'],db[_0x317893(0x1c0)][_0x317893(0x191)]({'where':{'id':_0x2444d6[_0x317893(0x1dc)]['id']}})[_0x317893(0x1cd)](handleEntityNotFound(_0x5687d5,null))[_0x317893(0x1cd)](function(_0x228a00){const _0x28abfa=_0x317893;if(_0x228a00)return _0x2444d6[_0x28abfa(0x17e)]['FaxAccountId']=_0x228a00['id'],db[_0x28abfa(0x1b5)][_0x28abfa(0x180)](_0x2444d6[_0x28abfa(0x17e)]);})['then'](respondWithResult(_0x5687d5,null))[_0x317893(0x1a5)](handleError(_0x5687d5,null));},exports['getDispositions']=function(_0x74574d,_0x5cb3a0){const _0x3833b2=a222_0x1b0590;let _0x7e0e1e={'raw':![],'where':{}};const _0x4b3a42={},_0x361b3f={'count':0x0,'rows':[]};return db[_0x3833b2(0x1c0)]['findOne']({'where':{'id':_0x74574d[_0x3833b2(0x1dc)]['id']}})[_0x3833b2(0x1cd)](handleEntityNotFound(_0x5cb3a0,null))[_0x3833b2(0x1cd)](function(_0x672748){const _0x54abb4=_0x3833b2;if(_0x672748)return _0x4b3a42[_0x54abb4(0x1cb)]=_[_0x54abb4(0x172)](db[_0x54abb4(0x1b5)][_0x54abb4(0x143)]),_0x4b3a42[_0x54abb4(0x189)]=_[_0x54abb4(0x172)](_0x74574d['query']),_0x4b3a42[_0x54abb4(0x1ba)]=_['intersection'](_0x4b3a42[_0x54abb4(0x1cb)],_0x4b3a42['query']),_0x7e0e1e[_0x54abb4(0x18f)]=_['intersection'](_0x4b3a42['model'],qs[_0x54abb4(0x1dd)](_0x74574d[_0x54abb4(0x189)][_0x54abb4(0x1dd)])),_0x7e0e1e[_0x54abb4(0x18f)]=_0x7e0e1e['attributes']['length']?_0x7e0e1e['attributes']:_0x4b3a42[_0x54abb4(0x1cb)],typeof _0x74574d['query']['nolimit']===_0x54abb4(0x15f)&&(_0x7e0e1e[_0x54abb4(0x168)]=qs[_0x54abb4(0x168)](_0x74574d['query']['limit']),_0x7e0e1e[_0x54abb4(0x18e)]=qs['offset'](_0x74574d[_0x54abb4(0x189)]['offset'])),_0x7e0e1e[_0x54abb4(0x147)]=qs[_0x54abb4(0x157)](_0x74574d[_0x54abb4(0x189)][_0x54abb4(0x157)]),_0x7e0e1e[_0x54abb4(0x163)]=qs[_0x54abb4(0x1ba)](_['pick'](_0x74574d[_0x54abb4(0x189)],_0x4b3a42[_0x54abb4(0x1ba)])),_0x7e0e1e[_0x54abb4(0x163)][_0x54abb4(0x15d)]=_0x672748['id'],_0x74574d[_0x54abb4(0x189)][_0x54abb4(0x138)]&&(_0x7e0e1e[_0x54abb4(0x163)]=_[_0x54abb4(0x1a8)](_0x7e0e1e[_0x54abb4(0x163)],{[Op['or']]:_[_0x54abb4(0x167)](_0x7e0e1e[_0x54abb4(0x18f)],function(_0x331474){const _0xe09e2e=_0x54abb4,_0x3fd2fc={};return _0x3fd2fc[_0x331474]={[Op[_0xe09e2e(0x193)]]:'%'+_0x74574d[_0xe09e2e(0x189)]['filter']+'%'},_0x3fd2fc;})})),_0x7e0e1e=_[_0x54abb4(0x1a8)]({},_0x7e0e1e,_0x74574d[_0x54abb4(0x156)]),db[_0x54abb4(0x1b5)][_0x54abb4(0x179)]({'where':_0x7e0e1e[_0x54abb4(0x163)]})['then'](function(_0x32ffbf){const _0x5a1dc3=_0x54abb4;return _0x361b3f['count']=_0x32ffbf,_0x74574d[_0x5a1dc3(0x189)][_0x5a1dc3(0x19d)]&&(_0x7e0e1e[_0x5a1dc3(0x1a0)]=[{'all':!![]}]),db[_0x5a1dc3(0x1b5)][_0x5a1dc3(0x177)](_0x7e0e1e);})[_0x54abb4(0x1cd)](function(_0x581e06){return _0x361b3f['rows']=_0x581e06,_0x361b3f;});})[_0x3833b2(0x1cd)](respondWithFilteredResult(_0x5cb3a0,_0x7e0e1e))[_0x3833b2(0x1a5)](handleError(_0x5cb3a0,null));},exports[a222_0x1b0590(0x14f)]=function(_0x3342da,_0x1915c5){const _0x52b67b=a222_0x1b0590;return db[_0x52b67b(0x1c0)][_0x52b67b(0x191)]({'where':{'id':_0x3342da['params']['id']}})[_0x52b67b(0x1cd)](handleEntityNotFound(_0x1915c5,null))['then'](function(_0x100369){const _0x5b4a84=_0x52b67b;if(_0x100369)return _0x100369[_0x5b4a84(0x14f)](_0x3342da['query'][_0x5b4a84(0x1a2)]);})['then'](respondWithStatusCode(_0x1915c5,null))[_0x52b67b(0x1a5)](handleError(_0x1915c5,null));},exports['addAnswer']=function(_0xfac5a9,_0x58993e){const _0x5e7ccc=a222_0x1b0590;return _0xfac5a9['body']['id']&&delete _0xfac5a9[_0x5e7ccc(0x17e)]['id'],db[_0x5e7ccc(0x1c0)][_0x5e7ccc(0x191)]({'where':{'id':_0xfac5a9['params']['id']}})['then'](handleEntityNotFound(_0x58993e,null))[_0x5e7ccc(0x1cd)](function(_0x325a88){const _0x3488e4=_0x5e7ccc;if(_0x325a88)return _0xfac5a9[_0x3488e4(0x17e)][_0x3488e4(0x15d)]=_0x325a88['id'],db[_0x3488e4(0x16d)][_0x3488e4(0x180)](_0xfac5a9[_0x3488e4(0x17e)]);})[_0x5e7ccc(0x1cd)](respondWithResult(_0x58993e,null))['catch'](handleError(_0x58993e,null));},exports[a222_0x1b0590(0x1d5)]=function(_0x1bef7d,_0x23d718){const _0x4d73b2=a222_0x1b0590;let _0x38efb8={'raw':![],'where':{}};const _0x200ac8={},_0xeb0cb9={'count':0x0,'rows':[]};return db['FaxAccount']['findOne']({'where':{'id':_0x1bef7d['params']['id']}})[_0x4d73b2(0x1cd)](handleEntityNotFound(_0x23d718,null))[_0x4d73b2(0x1cd)](function(_0x4184a4){const _0x3d9601=_0x4d73b2;if(_0x4184a4)return _0x200ac8['model']=_[_0x3d9601(0x172)](db[_0x3d9601(0x16d)][_0x3d9601(0x143)]),_0x200ac8[_0x3d9601(0x189)]=_[_0x3d9601(0x172)](_0x1bef7d[_0x3d9601(0x189)]),_0x200ac8[_0x3d9601(0x1ba)]=_[_0x3d9601(0x15e)](_0x200ac8[_0x3d9601(0x1cb)],_0x200ac8['query']),_0x38efb8['attributes']=_[_0x3d9601(0x15e)](_0x200ac8[_0x3d9601(0x1cb)],qs[_0x3d9601(0x1dd)](_0x1bef7d[_0x3d9601(0x189)][_0x3d9601(0x1dd)])),_0x38efb8[_0x3d9601(0x18f)]=_0x38efb8[_0x3d9601(0x18f)]['length']?_0x38efb8[_0x3d9601(0x18f)]:_0x200ac8[_0x3d9601(0x1cb)],typeof _0x1bef7d[_0x3d9601(0x189)]['nolimit']===_0x3d9601(0x15f)&&(_0x38efb8['limit']=qs[_0x3d9601(0x168)](_0x1bef7d[_0x3d9601(0x189)][_0x3d9601(0x168)]),_0x38efb8['offset']=qs[_0x3d9601(0x18e)](_0x1bef7d['query']['offset'])),_0x38efb8[_0x3d9601(0x147)]=qs[_0x3d9601(0x157)](_0x1bef7d[_0x3d9601(0x189)][_0x3d9601(0x157)]),_0x38efb8['where']=qs[_0x3d9601(0x1ba)](_[_0x3d9601(0x1d3)](_0x1bef7d[_0x3d9601(0x189)],_0x200ac8[_0x3d9601(0x1ba)])),_0x38efb8[_0x3d9601(0x163)][_0x3d9601(0x15d)]=_0x4184a4['id'],_0x1bef7d[_0x3d9601(0x189)]['filter']&&(_0x38efb8['where']=_['merge'](_0x38efb8['where'],{[Op['or']]:_[_0x3d9601(0x167)](_0x38efb8[_0x3d9601(0x18f)],function(_0x304977){const _0x26a9b9=_0x3d9601,_0x289690={};return _0x289690[_0x304977]={[Op['like']]:'%'+_0x1bef7d[_0x26a9b9(0x189)][_0x26a9b9(0x138)]+'%'},_0x289690;})})),_0x38efb8=_['merge']({},_0x38efb8,_0x1bef7d['options']),db[_0x3d9601(0x16d)][_0x3d9601(0x179)]({'where':_0x38efb8[_0x3d9601(0x163)]})[_0x3d9601(0x1cd)](function(_0x5e448f){const _0x2a9d04=_0x3d9601;return _0xeb0cb9['count']=_0x5e448f,_0x1bef7d[_0x2a9d04(0x189)][_0x2a9d04(0x19d)]&&(_0x38efb8[_0x2a9d04(0x1a0)]=[{'all':!![]}]),db[_0x2a9d04(0x16d)][_0x2a9d04(0x177)](_0x38efb8);})[_0x3d9601(0x1cd)](function(_0x3416b2){return _0xeb0cb9['rows']=_0x3416b2,_0xeb0cb9;});})['then'](respondWithFilteredResult(_0x23d718,_0x38efb8))['catch'](handleError(_0x23d718,null));},exports[a222_0x1b0590(0x1d1)]=function(_0x3fafc7,_0x4e4821){const _0x5d34af=a222_0x1b0590;return db[_0x5d34af(0x1c0)][_0x5d34af(0x191)]({'where':{'id':_0x3fafc7[_0x5d34af(0x1dc)]['id']}})[_0x5d34af(0x1cd)](handleEntityNotFound(_0x4e4821,null))[_0x5d34af(0x1cd)](function(_0x599e6e){const _0x3777cf=_0x5d34af;if(_0x599e6e)return _0x599e6e['removeAnswers'](_0x3fafc7[_0x3777cf(0x189)][_0x3777cf(0x1a2)]);})[_0x5d34af(0x1cd)](respondWithStatusCode(_0x4e4821,null))[_0x5d34af(0x1a5)](handleError(_0x4e4821,null));},exports['addInteraction']=function(_0x3d8613,_0x2e6981){const _0x491a96=a222_0x1b0590;return db['FaxInteraction']['findOne']({'where':{'id':_0x3d8613['params']['id']}})[_0x491a96(0x1cd)](function(_0x4cab3d){const _0x87c474=_0x491a96;if(_0x4cab3d)return _0x4cab3d[_0x87c474(0x1d6)](_0x3d8613['body'][_0x87c474(0x1a2)],{'through':_[_0x87c474(0x1b2)](_0x3d8613[_0x87c474(0x17e)],[_0x87c474(0x1a2),'id'])});})[_0x491a96(0x1cd)](respondWithResult(_0x2e6981,null))[_0x491a96(0x1a5)](handleError(_0x2e6981,null));},exports[a222_0x1b0590(0x199)]=function(_0x2c049f,_0x4788b6){const _0x4bcff9=a222_0x1b0590;let _0x1ce744={'raw':![],'where':{}};const _0x5b4963={},_0x5f0499={'count':0x0,'rows':[]};return db[_0x4bcff9(0x1c0)]['findOne']({'where':{'id':_0x2c049f[_0x4bcff9(0x1dc)]['id']}})[_0x4bcff9(0x1cd)](handleEntityNotFound(_0x4788b6,null))[_0x4bcff9(0x1cd)](function(_0x5e0a66){const _0x25cb96=_0x4bcff9;if(_0x5e0a66)return _0x5b4963['model']=_[_0x25cb96(0x172)](db[_0x25cb96(0x1aa)][_0x25cb96(0x143)]),_0x5b4963[_0x25cb96(0x189)]=_[_0x25cb96(0x172)](_0x2c049f['query']),_0x5b4963['filters']=_['intersection'](_0x5b4963[_0x25cb96(0x1cb)],_0x5b4963[_0x25cb96(0x189)]),_0x1ce744[_0x25cb96(0x18f)]=_[_0x25cb96(0x15e)](_0x5b4963['model'],qs[_0x25cb96(0x1dd)](_0x2c049f[_0x25cb96(0x189)][_0x25cb96(0x1dd)])),_0x1ce744[_0x25cb96(0x18f)]=_0x1ce744[_0x25cb96(0x18f)][_0x25cb96(0x149)]?_0x1ce744['attributes']:_0x5b4963[_0x25cb96(0x1cb)],typeof _0x2c049f[_0x25cb96(0x189)][_0x25cb96(0x16b)]===_0x25cb96(0x15f)&&(_0x1ce744[_0x25cb96(0x168)]=qs[_0x25cb96(0x168)](_0x2c049f[_0x25cb96(0x189)]['limit']),_0x1ce744[_0x25cb96(0x18e)]=qs[_0x25cb96(0x18e)](_0x2c049f[_0x25cb96(0x189)][_0x25cb96(0x18e)])),_0x1ce744['order']=qs['sort'](_0x2c049f['query'][_0x25cb96(0x157)]),_0x1ce744[_0x25cb96(0x163)]=qs[_0x25cb96(0x1ba)](_[_0x25cb96(0x1d3)](_0x2c049f[_0x25cb96(0x189)],_0x5b4963['filters'])),_0x1ce744[_0x25cb96(0x163)][_0x25cb96(0x15d)]=_0x5e0a66['id'],_0x2c049f[_0x25cb96(0x189)]['filter']&&(_0x1ce744['where']=_['merge'](_0x1ce744[_0x25cb96(0x163)],{[Op['or']]:_[_0x25cb96(0x167)](_0x1ce744[_0x25cb96(0x18f)],function(_0x111d1e){const _0xdbf492=_0x25cb96,_0x14aff8={};return _0x14aff8[_0x111d1e]={[Op[_0xdbf492(0x193)]]:'%'+_0x2c049f[_0xdbf492(0x189)]['filter']+'%'},_0x14aff8;})})),_0x1ce744=_[_0x25cb96(0x1a8)]({},_0x1ce744,_0x2c049f[_0x25cb96(0x156)]),db[_0x25cb96(0x1aa)][_0x25cb96(0x179)]({'where':_0x1ce744[_0x25cb96(0x163)]})['then'](function(_0x493eb6){const _0x4f5d6e=_0x25cb96;return _0x5f0499[_0x4f5d6e(0x179)]=_0x493eb6,_0x2c049f[_0x4f5d6e(0x189)]['includeAll']&&(_0x1ce744['include']=[{'model':db[_0x4f5d6e(0x194)],'as':_0x4f5d6e(0x1c3),'required':![]},{'model':db['User'],'as':_0x4f5d6e(0x1bd),'attributes':[_0x4f5d6e(0x16f),'fullname',_0x4f5d6e(0x1bf)],'required':![]},{'model':db['Tag'],'as':_0x4f5d6e(0x141),'attributes':['id',_0x4f5d6e(0x16f),'color'],'where':_0x2c049f[_0x4f5d6e(0x189)][_0x4f5d6e(0x154)]?{'id':_0x2c049f[_0x4f5d6e(0x189)]['tag']}:undefined,'required':_0x2c049f['query'][_0x4f5d6e(0x154)]?!![]:![]}]),db[_0x4f5d6e(0x1aa)][_0x4f5d6e(0x177)](_0x1ce744);})[_0x25cb96(0x1cd)](function(_0x13bdc5){const _0x1d80c2=_0x25cb96;return _0x5f0499[_0x1d80c2(0x1ca)]=_0x13bdc5,_0x5f0499;});})['then'](respondWithFilteredResult(_0x4788b6,_0x1ce744))[_0x4bcff9(0x1a5)](handleError(_0x4788b6,null));},exports[a222_0x1b0590(0x165)]=function(_0x207a58,_0x22d7e8){const _0x4d1381=a222_0x1b0590;return db[_0x4d1381(0x1c0)][_0x4d1381(0x191)]({'where':{'id':_0x207a58['params']['id']}})[_0x4d1381(0x1cd)](handleEntityNotFound(_0x22d7e8,null))[_0x4d1381(0x1cd)](function(_0x532575){const _0xd4cb94=_0x4d1381;if(_0x532575)return db['sequelize'][_0xd4cb94(0x1c5)](function(_0x3cf896){const _0x2c2d1d=_0xd4cb94;return db[_0x2c2d1d(0x1be)][_0x2c2d1d(0x15b)]({'where':{'FaxAccountId':_0x207a58[_0x2c2d1d(0x1dc)]['id']},'transaction':_0x3cf896})['then'](function(){const _0xc5d340=_0x2c2d1d,_0x313062=_['map'](_0x207a58[_0xc5d340(0x17e)],function(_0x1dac3d){return _0x1dac3d['FaxAccountId']=_0x207a58['params']['id'],_0x1dac3d;});return db[_0xc5d340(0x1be)][_0xc5d340(0x1b4)](_0x313062,{'transaction':_0x3cf896});});})[_0xd4cb94(0x1cd)](function(){const _0x8f3659=_0xd4cb94;return db['FaxApplication'][_0x8f3659(0x169)]({'where':{'FaxAccountId':_0x207a58['params']['id']},'order':_0x8f3659(0x195)});});})['then'](respondWithResult(_0x22d7e8,null))[_0x4d1381(0x1a5)](handleError(_0x22d7e8,null));},exports[a222_0x1b0590(0x173)]=function(_0x34f8c3,_0x2c074a){const _0x11df0b=a222_0x1b0590;let _0x2e4b57={};const _0x4bb2a7={};let _0x5c4a82,_0x1bfc6e;return db['FaxAccount'][_0x11df0b(0x191)]({'where':{'id':_0x34f8c3['params']['id']}})[_0x11df0b(0x1cd)](handleEntityNotFound(_0x2c074a,null))['then'](function(_0x2a3f01){const _0x36088a=_0x11df0b;if(_0x2a3f01)return _0x5c4a82=_0x2a3f01,_0x4bb2a7[_0x36088a(0x1cb)]=_[_0x36088a(0x172)](db[_0x36088a(0x1be)][_0x36088a(0x143)]),_0x4bb2a7[_0x36088a(0x189)]=_[_0x36088a(0x172)](_0x34f8c3[_0x36088a(0x189)]),_0x4bb2a7[_0x36088a(0x1ba)]=_[_0x36088a(0x15e)](_0x4bb2a7[_0x36088a(0x1cb)],_0x4bb2a7['query']),_0x2e4b57['attributes']=_['intersection'](_0x4bb2a7[_0x36088a(0x1cb)],qs[_0x36088a(0x1dd)](_0x34f8c3[_0x36088a(0x189)][_0x36088a(0x1dd)])),_0x2e4b57[_0x36088a(0x18f)]=_0x2e4b57[_0x36088a(0x18f)]['length']?_0x2e4b57['attributes']:_0x4bb2a7[_0x36088a(0x1cb)],_0x2e4b57[_0x36088a(0x147)]=qs[_0x36088a(0x157)](_0x34f8c3[_0x36088a(0x189)][_0x36088a(0x157)]),_0x2e4b57[_0x36088a(0x163)]=qs[_0x36088a(0x1ba)](_[_0x36088a(0x1d3)](_0x34f8c3[_0x36088a(0x189)],_0x4bb2a7[_0x36088a(0x1ba)])),_0x34f8c3['query'][_0x36088a(0x138)]&&(_0x2e4b57[_0x36088a(0x163)]=_[_0x36088a(0x1a8)](_0x2e4b57[_0x36088a(0x163)],{[Op['or']]:_['map'](_0x2e4b57[_0x36088a(0x18f)],function(_0x10bfaa){const _0x290942=_0x36088a,_0x28f44f={};return _0x28f44f[_0x10bfaa]={[Op[_0x290942(0x193)]]:'%'+_0x34f8c3[_0x290942(0x189)]['filter']+'%'},_0x28f44f;})})),_0x2e4b57=_[_0x36088a(0x1a8)]({},_0x2e4b57,_0x34f8c3[_0x36088a(0x156)]),_0x5c4a82[_0x36088a(0x173)](_0x2e4b57);})[_0x11df0b(0x1cd)](function(_0x116498){const _0x1cd11c=_0x11df0b;if(_0x116498)return _0x1bfc6e=_0x116498[_0x1cd11c(0x149)],typeof _0x34f8c3[_0x1cd11c(0x189)][_0x1cd11c(0x16b)]==='undefined'&&(_0x2e4b57[_0x1cd11c(0x168)]=qs[_0x1cd11c(0x168)](_0x34f8c3[_0x1cd11c(0x189)]['limit']),_0x2e4b57['offset']=qs[_0x1cd11c(0x18e)](_0x34f8c3['query'][_0x1cd11c(0x18e)])),_0x5c4a82[_0x1cd11c(0x173)](_0x2e4b57);})[_0x11df0b(0x1cd)](function(_0x29d04b){if(_0x29d04b)return _0x29d04b?{'count':_0x1bfc6e,'rows':_0x29d04b}:null;})[_0x11df0b(0x1cd)](respondWithResult(_0x2c074a,null))['catch'](handleError(_0x2c074a,null));};function Extension(_0x21706f,_0x1bd0af,_0x5aa6c3,_0x319949){const _0x1ed46f=a222_0x1b0590;this[_0x1ed46f(0x164)]='from-voip-provider',this[_0x1ed46f(0x1a1)]=_0x21706f[_0x1ed46f(0x1c8)],this[_0x1ed46f(0x14c)]=_0x319949,this['type']=_0x1ed46f(0x176),this['description']=_0x1ed46f(0x18c),this[_0x1ed46f(0x15d)]=_0x21706f['id'],this[_0x1ed46f(0x195)]=_0x1bd0af,this[_0x1ed46f(0x18a)]=_0x5aa6c3;}function createExtensionsReciveFax(_0xa9abb2){const _0x46bf98=a222_0x1b0590;let _0x4138ba=0x1;const _0xff4d92=[];_0xff4d92['push'](new Extension(_0xa9abb2,_0x4138ba,'',_0x46bf98(0x1df))),_0x4138ba+=0x1,_0xff4d92[_0x46bf98(0x146)](new Extension(_0xa9abb2,_0x4138ba,_0x46bf98(0x1ce),_0x46bf98(0x181))),_0x4138ba+=0x1;for(const _0x300339 in _0xa9abb2){typeof _0xa9abb2[_0x300339]!==_0x46bf98(0x15f)&&(_0x300339===_0x46bf98(0x1d7)||_0x300339===_0x46bf98(0x1c8)||_0x300339===_0x46bf98(0x1c2)||_0x300339===_0x46bf98(0x14b)||_0x300339===_0x46bf98(0x175)||_0x300339===_0x46bf98(0x13e)||_0x300339===_0x46bf98(0x19a)||_0x300339===_0x46bf98(0x139)||_0x300339===_0x46bf98(0x13d))&&(_0xff4d92[_0x46bf98(0x146)](new Extension(_0xa9abb2,_0x4138ba,_0x46bf98(0x188)+_0x300339+')='+_0xa9abb2[_0x300339],_0x46bf98(0x181))),_0x4138ba+=0x1);}return _0xff4d92[_0x46bf98(0x146)](new Extension(_0xa9abb2,_0x4138ba,'6',_0x46bf98(0x1ad))),_0x4138ba+=0x1,_0xff4d92[_0x46bf98(0x146)](new Extension(_0xa9abb2,_0x4138ba,_0x46bf98(0x155),_0x46bf98(0x17c))),_0x4138ba=0x0,_0xff4d92;}exports[a222_0x1b0590(0x166)]=function(_0x214898,_0x311a82){const _0x12cfe4=a222_0x1b0590;let _0x24da9b;return db[_0x12cfe4(0x14d)]['transaction'](function(_0xbe92b7){const _0x4f577d=_0x12cfe4;return db[_0x4f577d(0x1c0)][_0x4f577d(0x180)](_0x214898[_0x4f577d(0x17e)],{'transaction':_0xbe92b7})[_0x4f577d(0x1cd)](function(_0x4a10f4){const _0x3af5af=_0x4f577d;return _0x24da9b=_0x4a10f4[_0x3af5af(0x19c)]({'plain':!![]}),db[_0x3af5af(0x1b1)][_0x3af5af(0x1b4)](createExtensionsReciveFax(_0x24da9b),{'transaction':_0xbe92b7});});})[_0x12cfe4(0x1cd)](function(){return _0x24da9b;})[_0x12cfe4(0x1cd)](respondWithResult(_0x311a82,null))['catch'](handleError(_0x311a82,null));},exports[a222_0x1b0590(0x174)]=function(_0x13b630,_0x11dd3b){const _0xae3828=a222_0x1b0590;return db[_0xae3828(0x14d)][_0xae3828(0x1c5)](function(_0x5a669e){const _0x3d1fff=_0xae3828;return db[_0x3d1fff(0x1c0)][_0x3d1fff(0x1a6)](_0x13b630[_0x3d1fff(0x17e)],{'where':{'id':_0x13b630['body']['id']},'transaction':_0x5a669e})[_0x3d1fff(0x1cd)](function(){const _0x242eac=_0x3d1fff;return db['VoiceExtension'][_0x242eac(0x15b)]({'where':{'FaxAccountId':_0x13b630['body']['id']},'transaction':_0x5a669e})[_0x242eac(0x1cd)](function(){const _0x24816d=_0x242eac;return db['VoiceExtension'][_0x24816d(0x1b4)](createExtensionsReciveFax(_[_0x24816d(0x1b2)](_0x13b630['body'],[_0x24816d(0x1b6),_0x24816d(0x17b),_0x24816d(0x161),_0x24816d(0x1cc),_0x24816d(0x182),'ListId'])),{'transaction':_0x5a669e});});});})[_0xae3828(0x1cd)](function(){const _0x3a4cbd=_0xae3828;return db[_0x3a4cbd(0x1c0)]['findByPk'](_0x13b630[_0x3a4cbd(0x17e)]['id']);})['then'](respondWithResult(_0x11dd3b,null))['catch'](handleError(_0x11dd3b,null));},exports[a222_0x1b0590(0x152)]=function(_0x45cbf4,_0x3fd0b9){const _0x4ea566=a222_0x1b0590;let _0x342020={'raw':!![],'where':{}};const _0x517388={},_0x45af3f={'count':0x0,'rows':[]};return db[_0x4ea566(0x1c0)][_0x4ea566(0x191)]({'where':{'id':_0x45cbf4[_0x4ea566(0x1dc)]['id']}})[_0x4ea566(0x1cd)](handleEntityNotFound(_0x3fd0b9,null))[_0x4ea566(0x1cd)](function(_0x58c919){const _0x84c324=_0x4ea566;if(_0x58c919){_0x517388[_0x84c324(0x1cb)]=_[_0x84c324(0x172)](db[_0x84c324(0x140)]['rawAttributes']),_0x517388[_0x84c324(0x189)]=_[_0x84c324(0x172)](_0x45cbf4[_0x84c324(0x189)]),_0x517388[_0x84c324(0x1ba)]=_['intersection'](_0x517388[_0x84c324(0x1cb)],_0x517388[_0x84c324(0x189)]),_0x342020[_0x84c324(0x18f)]=_[_0x84c324(0x15e)](_0x517388[_0x84c324(0x1cb)],qs[_0x84c324(0x1dd)](_0x45cbf4[_0x84c324(0x189)]['fields'])),_0x342020['attributes']=_0x342020[_0x84c324(0x18f)][_0x84c324(0x149)]?_0x342020[_0x84c324(0x18f)]:_0x517388['model'];typeof _0x45cbf4[_0x84c324(0x189)][_0x84c324(0x16b)]===_0x84c324(0x15f)&&(_0x342020[_0x84c324(0x168)]=qs[_0x84c324(0x168)](_0x45cbf4[_0x84c324(0x189)][_0x84c324(0x168)]),_0x342020['offset']=qs[_0x84c324(0x18e)](_0x45cbf4[_0x84c324(0x189)]['offset']));_0x342020[_0x84c324(0x147)]=qs[_0x84c324(0x157)](_0x45cbf4[_0x84c324(0x189)][_0x84c324(0x157)]),_0x342020[_0x84c324(0x163)]=qs[_0x84c324(0x1ba)](_[_0x84c324(0x1d3)](_0x45cbf4['query'],_0x517388[_0x84c324(0x1ba)])),_0x342020['where']['FaxAccountId']=_0x58c919['id'];_0x45cbf4[_0x84c324(0x189)][_0x84c324(0x138)]&&(_0x342020[_0x84c324(0x163)]=_['merge'](_0x342020[_0x84c324(0x163)],{[Op['or']]:_[_0x84c324(0x167)](_0x342020['attributes'],function(_0x54bd86){const _0x4b4cc9=_0x84c324,_0x293655={};return _0x293655[_0x54bd86]={[Op[_0x4b4cc9(0x193)]]:'%'+_0x45cbf4[_0x4b4cc9(0x189)][_0x4b4cc9(0x138)]+'%'},_0x293655;})}));if(_0x45cbf4['query'][_0x84c324(0x136)]){const _0x2bc955=_0x45cbf4['query'][_0x84c324(0x136)]['split'](','),_0x77382f={};_0x77382f[_0x2bc955[0x0]]={[Op[_0x84c324(0x1c4)]]:moment(_0x2bc955[0x1])[_0x84c324(0x1bb)]('YYYY-MM-DD\x20HH:mm:ss')},_0x342020[_0x84c324(0x163)]=_[_0x84c324(0x1a8)](_0x342020[_0x84c324(0x163)],_0x77382f);}return _0x342020=_[_0x84c324(0x1a8)]({},_0x342020,_0x45cbf4['options']),db[_0x84c324(0x140)][_0x84c324(0x179)]({'where':_0x342020[_0x84c324(0x163)]})[_0x84c324(0x1cd)](function(_0x1a9c30){const _0x2f6059=_0x84c324;return _0x45af3f[_0x2f6059(0x179)]=_0x1a9c30,_0x45cbf4[_0x2f6059(0x189)][_0x2f6059(0x19d)]&&(_0x342020[_0x2f6059(0x1a0)]=[{'all':!![]}]),db[_0x2f6059(0x140)][_0x2f6059(0x177)](_0x342020);})[_0x84c324(0x1cd)](function(_0x410952){return _0x45af3f['rows']=_0x410952,_0x45af3f;});}})[_0x4ea566(0x1cd)](respondWithFilteredResult(_0x3fd0b9,_0x342020))[_0x4ea566(0x1a5)](handleError(_0x3fd0b9,null));},exports['send']=function(_0x4402c7,_0x227d2d){const _0x6e6fad=a222_0x1b0590;let _0x276d07,_0x302bd4;return _0x4402c7['body']['to']&&(_0x302bd4=_0x4402c7[_0x6e6fad(0x17e)]['to'][0x0]),db['FaxAccount'][_0x6e6fad(0x191)]({'where':{'id':_0x4402c7[_0x6e6fad(0x1dc)]['id']},'include':[{'model':db['CmList'],'as':_0x6e6fad(0x170),'include':[{'model':db[_0x6e6fad(0x194)],'as':_0x6e6fad(0x13c),'where':{'fax':_0x302bd4},'limit':0x1,'order':[[_0x6e6fad(0x1cc),_0x6e6fad(0x186)]]}]}]})[_0x6e6fad(0x1cd)](handleEntityNotFound(_0x227d2d,null))[_0x6e6fad(0x1cd)](function(_0x5252a1){const _0x2d60fc=_0x6e6fad;_0x276d07=_0x5252a1;if(_0x4402c7[_0x2d60fc(0x17e)][_0x2d60fc(0x1b0)]&&_0x4402c7[_0x2d60fc(0x17e)][_0x2d60fc(0x1b0)]['length'])for(let _0x33c6c2=0x0;_0x33c6c2<_0x4402c7[_0x2d60fc(0x17e)][_0x2d60fc(0x1b0)][_0x2d60fc(0x149)];_0x33c6c2+=0x1){_0x4402c7[_0x2d60fc(0x17e)][_0x2d60fc(0x1b0)][_0x33c6c2]={'filename':_0x4402c7['body'][_0x2d60fc(0x1b0)][_0x33c6c2][_0x2d60fc(0x16f)],'id':_0x4402c7['body']['attachments'][_0x33c6c2]['id'],'path':path['join'](config[_0x2d60fc(0x187)],_0x2d60fc(0x1b8),_0x4402c7[_0x2d60fc(0x17e)][_0x2d60fc(0x1b0)][_0x33c6c2][_0x2d60fc(0x17f)])};}return respondWithRpcPromise(_0x2d60fc(0x142),_0x2d60fc(0x142),{'FaxAccountId':_['isNil'](_0x4402c7[_0x2d60fc(0x1dc)]['id'])?undefined:_0x4402c7[_0x2d60fc(0x1dc)]['id'],'path':_[_0x2d60fc(0x18b)](_0x4402c7[_0x2d60fc(0x17e)][_0x2d60fc(0x1b0)][0x0][_0x2d60fc(0x1ab)])?undefined:_0x4402c7[_0x2d60fc(0x17e)]['attachments'][0x0][_0x2d60fc(0x1ab)],'fax':_[_0x2d60fc(0x18b)](_0x4402c7[_0x2d60fc(0x17e)]['to'][0x0])?undefined:_0x4402c7[_0x2d60fc(0x17e)]['to'][0x0]},client9002);})[_0x6e6fad(0x1cd)](function(){const _0x52d82d=_0x6e6fad;if(_0x276d07){_['isNil'](_0x4402c7[_0x52d82d(0x17e)][_0x52d82d(0x153)])&&(_0x4402c7['body'][_0x52d82d(0x153)]=util[_0x52d82d(0x1bb)](_0x52d82d(0x18d),_0x276d07[_0x52d82d(0x16f)],_0x276d07[_0x52d82d(0x171)]));if(_0x276d07[_0x52d82d(0x170)])return _0x276d07[_0x52d82d(0x170)][_0x52d82d(0x13c)]['length']?_0x276d07[_0x52d82d(0x170)]['Contacts'][0x0]:db[_0x52d82d(0x194)][_0x52d82d(0x180)](_['defaults'](_0x4402c7[_0x52d82d(0x17e)],{'firstName':_0x4402c7[_0x52d82d(0x17e)]['to'][0x0],'phone':_0x4402c7[_0x52d82d(0x17e)]['to'][0x0],'fax':_0x4402c7[_0x52d82d(0x17e)]['to'][0x0],'ListId':_0x276d07['ListId']}));else throw new Error(_0x52d82d(0x14e));}else throw new Error(_0x52d82d(0x145));})[_0x6e6fad(0x1cd)](function(_0x4e2cf7){const _0x3b0d0b=_0x6e6fad;if(_0x4e2cf7)return db[_0x3b0d0b(0x1aa)]['findOne']({'where':{'ContactId':_0x4e2cf7['id'],'closed':![],'FaxAccountId':_0x276d07['id']}})[_0x3b0d0b(0x1cd)](function(_0x8266a3){const _0x363b9c=_0x3b0d0b;if(_0x8266a3)return[_0x8266a3,![]];return db[_0x363b9c(0x1aa)][_0x363b9c(0x180)]({'UserId':_0x4402c7[_0x363b9c(0x196)]['id'],'ContactId':_0x4e2cf7['id'],'FaxAccountId':_0x276d07['id'],'fax':_0x4402c7[_0x363b9c(0x17e)]['to'][0x0],'firstMsgDirection':'out','Messages':[_['merge'](_0x4402c7[_0x363b9c(0x17e)],{'read':![],'body':_0x4402c7['body'][_0x363b9c(0x1b0)][0x0]['filename'],'FaxAccountId':_0x276d07['id'],'UserId':_0x4402c7['user']['id'],'ContactId':_0x4e2cf7['id'],'AttachmentId':_0x4402c7[_0x363b9c(0x17e)][_0x363b9c(0x1b0)][0x0]['id']})]},{'include':[{'model':db[_0x363b9c(0x140)],'as':'Messages'}]})[_0x363b9c(0x1cd)](function(_0x4b78e0){return[_0x4b78e0,!![]];});});else throw new Error(_0x3b0d0b(0x137));})['then'](function([_0x3d38e4,_0x3150f]){const _0x43a875=_0x6e6fad;if(_0x3150f)return _0x3d38e4;return db['FaxMessage'][_0x43a875(0x180)]({'direction':_0x43a875(0x162),'read':![],'body':_0x4402c7['body'][_0x43a875(0x1b0)][0x0][_0x43a875(0x183)],'FaxAccountId':_0x276d07['id'],'FaxInteractionId':_0x3d38e4['id'],'UserId':_0x4402c7[_0x43a875(0x196)]['id'],'ContactId':_0x3d38e4[_0x43a875(0x190)],'AttachmentId':_0x4402c7['body']['attachments'][0x0]['id']})[_0x43a875(0x1cd)](function(_0x152477){const _0x4dcee0=_0x43a875;return _0x3d38e4['dataValues'][_0x4dcee0(0x16c)]=[],_0x3d38e4[_0x4dcee0(0x1c7)][_0x4dcee0(0x16c)][_0x4dcee0(0x146)](_0x152477[_0x4dcee0(0x1c7)]),_0x3d38e4;});})[_0x6e6fad(0x1cd)](function(_0x38b30e){const _0x5c27bd=_0x6e6fad;return respondWithRpcPromise(_0x5c27bd(0x1ac),_0x5c27bd(0x1ac),{'FaxAccountId':_[_0x5c27bd(0x18b)](_0x4402c7[_0x5c27bd(0x1dc)]['id'])?undefined:_0x4402c7[_0x5c27bd(0x1dc)]['id'],'path':_[_0x5c27bd(0x18b)](_0x4402c7[_0x5c27bd(0x17e)][_0x5c27bd(0x1b0)][0x0][_0x5c27bd(0x1ab)])?undefined:_0x4402c7[_0x5c27bd(0x17e)][_0x5c27bd(0x1b0)][0x0][_0x5c27bd(0x1ab)],'fax':_[_0x5c27bd(0x18b)](_0x4402c7[_0x5c27bd(0x17e)]['to'][0x0])?undefined:_0x4402c7[_0x5c27bd(0x17e)]['to'][0x0],'AttachmentId':_0x4402c7[_0x5c27bd(0x17e)][_0x5c27bd(0x1b0)][0x0]['id']},client9002)[_0x5c27bd(0x1cd)](function(_0x41b552){const _0x462d93=_0x5c27bd;logger['info'](_0x462d93(0x1a4),_0x41b552);})['catch'](function(_0x4dec29){const _0x1dd926=_0x5c27bd;logger['info'](_0x1dd926(0x1a4),_0x4dec29);}),_0x38b30e;})['then'](respondWithResult(_0x227d2d,null))[_0x6e6fad(0x1a5)](handleError(_0x227d2d,null));},exports[a222_0x1b0590(0x1de)]=function(_0x5261fc,_0x2628af){const _0x4e1bb9=a222_0x1b0590;return db[_0x4e1bb9(0x1c0)]['findOne']({'where':{'id':_0x5261fc['params']['id']}})[_0x4e1bb9(0x1cd)](function(_0x289125){const _0x59ba41=_0x4e1bb9;if(_0x289125)return _0x289125['addAgents'](_0x5261fc['body'][_0x59ba41(0x1a2)],{'through':_[_0x59ba41(0x1b2)](_0x5261fc[_0x59ba41(0x17e)],['ids','id'])})['then'](function(_0x37d8b2){const _0x13355a=_0x59ba41;for(let _0x2f7aff=0x0;_0x2f7aff<_0x5261fc['body']['ids'][_0x13355a(0x149)];_0x2f7aff+=0x1){socket[_0x13355a(0x1c1)](_0x13355a(0x178),{'UserId':_0x5261fc[_0x13355a(0x17e)][_0x13355a(0x1a2)][_0x2f7aff],'FaxAccountId':_0x5261fc['params']['id']});}return _0x37d8b2;});})[_0x4e1bb9(0x1cd)](respondWithResult(_0x2628af,null))[_0x4e1bb9(0x1a5)](handleError(_0x2628af,null));},exports['removeAgents']=function(_0x4a98f7,_0x2478a6){const _0xad3fc8=a222_0x1b0590;return db[_0xad3fc8(0x1c0)][_0xad3fc8(0x191)]({'where':{'id':_0x4a98f7[_0xad3fc8(0x1dc)]['id']}})[_0xad3fc8(0x1cd)](handleEntityNotFound(_0x2478a6,null))[_0xad3fc8(0x1cd)](function(_0x557b2e){const _0x2f7f36=_0xad3fc8;if(_0x557b2e)return _0x557b2e[_0x2f7f36(0x1db)](_0x4a98f7[_0x2f7f36(0x189)][_0x2f7f36(0x1a2)])[_0x2f7f36(0x1cd)](function(){const _0x194cb2=_0x2f7f36;if(_[_0x194cb2(0x17a)](_0x4a98f7[_0x194cb2(0x189)][_0x194cb2(0x1a2)]))for(let _0x17b980=0x0;_0x17b980<_0x4a98f7[_0x194cb2(0x189)][_0x194cb2(0x1a2)][_0x194cb2(0x149)];_0x17b980+=0x1){socket[_0x194cb2(0x1c1)](_0x194cb2(0x1d9),{'UserId':Number(_0x4a98f7[_0x194cb2(0x189)][_0x194cb2(0x1a2)][_0x17b980]),'FaxAccountId':Number(_0x4a98f7[_0x194cb2(0x1dc)]['id'])});}else socket[_0x194cb2(0x1c1)](_0x194cb2(0x1d9),{'UserId':Number(_0x4a98f7['query'][_0x194cb2(0x1a2)]),'FaxAccountId':Number(_0x4a98f7['params']['id'])});});})['then'](respondWithStatusCode(_0x2478a6,null))[_0xad3fc8(0x1a5)](handleError(_0x2478a6,null));},exports[a222_0x1b0590(0x192)]=function(_0x10c4a9,_0x420231){const _0x4ea82b=a222_0x1b0590;let _0x689ca5={};const _0x33b388={};let _0x533245,_0x30caf0;return db[_0x4ea82b(0x1c0)][_0x4ea82b(0x191)]({'where':{'id':_0x10c4a9[_0x4ea82b(0x1dc)]['id']}})[_0x4ea82b(0x1cd)](handleEntityNotFound(_0x420231,null))[_0x4ea82b(0x1cd)](function(_0x40e595){const _0x237a11=_0x4ea82b;if(_0x40e595)return _0x533245=_0x40e595,_0x33b388[_0x237a11(0x1cb)]=_['keys'](db[_0x237a11(0x19e)][_0x237a11(0x143)]),_0x33b388['query']=_[_0x237a11(0x172)](_0x10c4a9[_0x237a11(0x189)]),_0x33b388[_0x237a11(0x1ba)]=_['intersection'](_0x33b388[_0x237a11(0x1cb)],_0x33b388[_0x237a11(0x189)]),_0x689ca5[_0x237a11(0x18f)]=_[_0x237a11(0x15e)](_0x33b388[_0x237a11(0x1cb)],qs[_0x237a11(0x1dd)](_0x10c4a9[_0x237a11(0x189)][_0x237a11(0x1dd)])),_0x689ca5[_0x237a11(0x18f)]=_0x689ca5[_0x237a11(0x18f)][_0x237a11(0x149)]?_0x689ca5[_0x237a11(0x18f)]:_0x33b388['model'],_0x689ca5['order']=qs[_0x237a11(0x157)](_0x10c4a9[_0x237a11(0x189)][_0x237a11(0x157)]),_0x689ca5['where']=qs[_0x237a11(0x1ba)](_['pick'](_0x10c4a9[_0x237a11(0x189)],_0x33b388[_0x237a11(0x1ba)])),_0x10c4a9[_0x237a11(0x189)][_0x237a11(0x138)]&&(_0x689ca5[_0x237a11(0x163)]=_[_0x237a11(0x1a8)](_0x689ca5[_0x237a11(0x163)],{[Op['or']]:_[_0x237a11(0x167)](_0x689ca5[_0x237a11(0x18f)],function(_0x44a5ae){const _0x4d835d=_0x237a11,_0x3eb389={};return _0x3eb389[_0x44a5ae]={[Op['like']]:'%'+_0x10c4a9[_0x4d835d(0x189)][_0x4d835d(0x138)]+'%'},_0x3eb389;})})),_0x689ca5=_['merge']({},_0x689ca5,_0x10c4a9[_0x237a11(0x156)]),_0x533245[_0x237a11(0x192)](_0x689ca5);})[_0x4ea82b(0x1cd)](function(_0x3f2ba2){const _0x19166f=_0x4ea82b;if(_0x3f2ba2)return _0x30caf0=_0x3f2ba2[_0x19166f(0x149)],typeof _0x10c4a9['query'][_0x19166f(0x16b)]===_0x19166f(0x15f)&&(_0x689ca5['limit']=qs['limit'](_0x10c4a9[_0x19166f(0x189)][_0x19166f(0x168)]),_0x689ca5[_0x19166f(0x18e)]=qs[_0x19166f(0x18e)](_0x10c4a9[_0x19166f(0x189)]['offset'])),_0x533245[_0x19166f(0x192)](_0x689ca5);})['then'](function(_0x5ab68f){if(_0x5ab68f)return _0x5ab68f?{'count':_0x30caf0,'rows':_0x5ab68f}:null;})['then'](respondWithResult(_0x420231,null))[_0x4ea82b(0x1a5)](handleError(_0x420231,null));}; \ No newline at end of file diff --git a/server/api/faxAccount/faxAccount.events.js b/server/api/faxAccount/faxAccount.events.js index 613c473..402ed48 100644 --- a/server/api/faxAccount/faxAccount.events.js +++ b/server/api/faxAccount/faxAccount.events.js @@ -1 +1 @@ -const a187_0x28cc=['../../mysqldb','FaxAccount','update','save','undefined','events','exports','emit'];(function(_0x13b00b,_0x28cc73){const _0x3557bc=function(_0x4c920f){while(--_0x4c920f){_0x13b00b['push'](_0x13b00b['shift']());}};_0x3557bc(++_0x28cc73);}(a187_0x28cc,0x1ee));const a187_0x3557=function(_0x13b00b,_0x28cc73){_0x13b00b=_0x13b00b-0x0;let _0x3557bc=a187_0x28cc[_0x13b00b];return _0x3557bc;};const _0x46d81a=a187_0x3557;'use strict';const EventEmitter=require(_0x46d81a('0x7')),FaxAccount=require(_0x46d81a('0x2'))['db'][_0x46d81a('0x3')],FaxAccountEvents=new EventEmitter();FaxAccountEvents['setMaxListeners'](0x0);const events={'afterCreate':_0x46d81a('0x5'),'afterUpdate':_0x46d81a('0x4'),'afterDestroy':'remove'};function emitEvent(_0x4c920f){return function(_0x2752ae){const _0xe5a893=a187_0x3557;FaxAccountEvents['emit'](_0x4c920f+':'+_0x2752ae['id'],_0x2752ae),FaxAccountEvents[_0xe5a893('0x1')](_0x4c920f,_0x2752ae);};}for(const e in events){if(typeof events[e]!==_0x46d81a('0x6')){const event=events[e];FaxAccount['addHook'](e,emitEvent(event));}}module[_0x46d81a('0x0')]=FaxAccountEvents; \ No newline at end of file +const a223_0x305f=['undefined','addHook','emit','remove','exports','events','FaxAccount','save'];(function(_0x1778c7,_0x34a1ca){const _0x305fcb=function(_0x4ab117){while(--_0x4ab117){_0x1778c7['push'](_0x1778c7['shift']());}};_0x305fcb(++_0x34a1ca);}(a223_0x305f,0xf8));const a223_0x4ab1=function(_0x1778c7,_0x34a1ca){_0x1778c7=_0x1778c7-0x146;let _0x305fcb=a223_0x305f[_0x1778c7];return _0x305fcb;};const a223_0x3cb1bb=a223_0x4ab1;'use strict';const EventEmitter=require(a223_0x3cb1bb(0x14b)),FaxAccount=require('../../mysqldb')['db'][a223_0x3cb1bb(0x14c)],FaxAccountEvents=new EventEmitter();FaxAccountEvents['setMaxListeners'](0x0);const events={'afterCreate':a223_0x3cb1bb(0x14d),'afterUpdate':'update','afterDestroy':a223_0x3cb1bb(0x149)};function emitEvent(_0x5b21ff){return function(_0x2a6470){const _0x2aa41d=a223_0x4ab1;FaxAccountEvents[_0x2aa41d(0x148)](_0x5b21ff+':'+_0x2a6470['id'],_0x2a6470),FaxAccountEvents[_0x2aa41d(0x148)](_0x5b21ff,_0x2a6470);};}for(const e in events){if(typeof events[e]!==a223_0x3cb1bb(0x146)){const event=events[e];FaxAccount[a223_0x3cb1bb(0x147)](e,emitEvent(event));}}module[a223_0x3cb1bb(0x14a)]=FaxAccountEvents; \ No newline at end of file diff --git a/server/api/faxAccount/faxAccount.model.js b/server/api/faxAccount/faxAccount.model.js index 0f3c44d..fbedcf5 100644 --- a/server/api/faxAccount/faxAccount.model.js +++ b/server/api/faxAccount/faxAccount.model.js @@ -1 +1 @@ -const a188_0x51cb=['exports','fax_accounts','define'];(function(_0xeed271,_0x51cb33){const _0x128c6=function(_0x4b0a18){while(--_0x4b0a18){_0xeed271['push'](_0xeed271['shift']());}};_0x128c6(++_0x51cb33);}(a188_0x51cb,0xeb));const a188_0x128c=function(_0xeed271,_0x51cb33){_0xeed271=_0xeed271-0x0;let _0x128c6=a188_0x51cb[_0xeed271];return _0x128c6;};const _0x32e42a=a188_0x128c;'use strict';const attributes=require('./faxAccount.attributes');module[_0x32e42a('0x2')]=function(_0x4b0a18){const _0x26e326=_0x32e42a,_0x361ea4=_0x4b0a18[_0x26e326('0x1')]('FaxAccount',attributes,{'tableName':_0x26e326('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x361ea4;}; \ No newline at end of file +const a224_0x2933=['FaxAccount','function','sequelize','exports','./faxAccount.options','./faxAccount.attributes'];(function(_0x39cd8c,_0x40bf8b){const _0x293335=function(_0x459cab){while(--_0x459cab){_0x39cd8c['push'](_0x39cd8c['shift']());}};_0x293335(++_0x40bf8b);}(a224_0x2933,0x115));const a224_0x459c=function(_0x39cd8c,_0x40bf8b){_0x39cd8c=_0x39cd8c-0xff;let _0x293335=a224_0x2933[_0x39cd8c];return _0x293335;};const a224_0x51728f=a224_0x459c;'use strict';const {Model}=require(a224_0x51728f(0x100)),{attributes}=require(a224_0x51728f(0x103)),{options}=require(a224_0x51728f(0x102));class FaxAccount extends Model{}function init(_0x5edfdd,_0x35116c){const _0x515d30=a224_0x51728f,_0x435841=options(_0x5edfdd),_0x36d9ec=typeof _0x35116c===_0x515d30(0xff)?_0x35116c(_0x435841):_0x435841;return FaxAccount['init'](attributes,_0x36d9ec),FaxAccount;}module['exports'][a224_0x51728f(0x104)]=FaxAccount,module[a224_0x51728f(0x101)]['init']=init; \ No newline at end of file diff --git a/server/api/faxAccount/faxAccount.options.js b/server/api/faxAccount/faxAccount.options.js new file mode 100644 index 0000000..69d13f6 --- /dev/null +++ b/server/api/faxAccount/faxAccount.options.js @@ -0,0 +1 @@ +var a225_0x5bed=['options','exports','fax_accounts'];(function(_0x489de3,_0x1721af){var _0x5bedba=function(_0x100369){while(--_0x100369){_0x489de3['push'](_0x489de3['shift']());}};_0x5bedba(++_0x1721af);}(a225_0x5bed,0x1cb));var a225_0x1003=function(_0x489de3,_0x1721af){_0x489de3=_0x489de3-0xec;var _0x5bedba=a225_0x5bed[_0x489de3];return _0x5bedba;};var a225_0x6a873d=a225_0x1003;function options(_0xac2dc){var _0x2d0a3c=a225_0x1003;return{'sequelize':_0xac2dc,'tableName':_0x2d0a3c(0xee),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a225_0x6a873d(0xed)][a225_0x6a873d(0xec)]=options; \ No newline at end of file diff --git a/server/api/faxAccount/faxAccount.rpc.js b/server/api/faxAccount/faxAccount.rpc.js index 5f7e0b5..e24d9e3 100644 --- a/server/api/faxAccount/faxAccount.rpc.js +++ b/server/api/faxAccount/faxAccount.rpc.js @@ -1 +1 @@ -const a189_0xa683=['autoclose','orderBy','attributes','request','describe','FaxAccount,\x20%s,\x20%s','then','name','difference','request\x20sent','List','http','FaxAccount,\x20%s,\x20%s,\x20%s','*,*,*,*','created','push','CompanyId','catch','DESC','findAll','isNil','from\x20is\x20mandatory','keys','../../mysqldb','body','limit','info','body\x20is\x20mandatory\x20and\x20not\x20empty','options','interaction','updatedAt','mapKey\x20is\x20mandatory,\x20please\x20use\x20one\x20of\x20these:\x20','ListId','AttachmentId','create','findOne','../../rediscache','fax','UserId','Contacts','raw','include','get','FaxAccount','GetFaxAccount','waitForTheAssignedAgent','message','mapKey','result','Start','startRouting','Applications','client','FaxInteraction','length','./faxAccount.socket','debug','unmanaged','agent','mapKey\x20invalid,\x20please\x20use\x20one\x20of\x20these:\x20','createdAt','account','from','error','code','no\x20available\x20attributes','model','Contact\x20not\x20found','rpc','applications','CmContact','map'];(function(_0x5edd76,_0xa683bb){const _0x1494bc=function(_0x4fd70b){while(--_0x4fd70b){_0x5edd76['push'](_0x5edd76['shift']());}};_0x1494bc(++_0xa683bb);}(a189_0xa683,0x12b));const a189_0x1494=function(_0x5edd76,_0xa683bb){_0x5edd76=_0x5edd76-0x0;let _0x1494bc=a189_0xa683[_0x5edd76];return _0x1494bc;};const _0x1ae37e=a189_0x1494;'use strict';const _=require('lodash'),db=require(_0x1ae37e('0xc'))['db'],{ValidationError}=require('sequelize'),logger=require('../../config/logger')(_0x1ae37e('0x39')),{getSocket}=require(_0x1ae37e('0x19')),socket=getSocket(),jayson=require('jayson/promise'),client=jayson[_0x1ae37e('0x29')][_0x1ae37e('0x0')]({'port':0x232c});require(_0x1ae37e('0x2c'))['register'](socket);function respondWithRpcPromise(_0x4fd70b,_0x73981d,_0x35c123){return new Promise(function(_0x4e2d02,_0x4cbf1a){const _0x4ef7cb=a189_0x1494;return client[_0x4ef7cb('0x40')](_0x4fd70b,_0x35c123)[_0x4ef7cb('0x43')](function(_0x38c51e){const _0x3a34ea=_0x4ef7cb;logger[_0x3a34ea('0xf')](_0x3a34ea('0x42'),_0x73981d,'request\x20sent'),logger[_0x3a34ea('0x2d')](_0x3a34ea('0x1'),_0x73981d,_0x3a34ea('0x46'),JSON['stringify'](_0x38c51e));if(_0x38c51e[_0x3a34ea('0x34')]){if(_0x38c51e[_0x3a34ea('0x34')][_0x3a34ea('0x35')]===0x1f4)return logger[_0x3a34ea('0x34')](_0x3a34ea('0x42'),_0x73981d,_0x38c51e[_0x3a34ea('0x34')][_0x3a34ea('0x23')]),_0x4cbf1a(_0x38c51e[_0x3a34ea('0x34')][_0x3a34ea('0x23')]);return logger['error'](_0x3a34ea('0x42'),_0x73981d,_0x38c51e[_0x3a34ea('0x34')][_0x3a34ea('0x23')]),_0x4e2d02(_0x38c51e[_0x3a34ea('0x34')]['message']);}else logger[_0x3a34ea('0xf')](_0x3a34ea('0x42'),_0x73981d,'request\x20sent'),_0x4e2d02(_0x38c51e[_0x3a34ea('0x25')][_0x3a34ea('0x23')]);})['catch'](function(_0x30fdcf){const _0x23f5d6=_0x4ef7cb;logger[_0x23f5d6('0x34')](_0x23f5d6('0x42'),_0x73981d,_0x30fdcf),_0x4cbf1a(_0x30fdcf);});});}exports['GetFaxAccount']=function(_0x29b346){const _0x789b47=this;return new Promise(function(_0x4ef222,_0x1989fb){const _0x19f75d=a189_0x1494;return db['FaxAccount'][_0x19f75d('0x8')]({'raw':_0x29b346[_0x19f75d('0x11')]?_0x29b346['options'][_0x19f75d('0x1d')]===undefined?!![]:![]:!![],'where':_0x29b346[_0x19f75d('0x11')]?_0x29b346[_0x19f75d('0x11')]['where']||null:null,'attributes':_0x29b346[_0x19f75d('0x11')]?_0x29b346[_0x19f75d('0x11')][_0x19f75d('0x3f')]||null:null,'limit':_0x29b346[_0x19f75d('0x11')]?_0x29b346[_0x19f75d('0x11')][_0x19f75d('0xe')]||null:null,'include':_0x29b346['options']?_0x29b346[_0x19f75d('0x11')]['include']?_[_0x19f75d('0x3c')](_0x29b346[_0x19f75d('0x11')][_0x19f75d('0x1e')],function(_0xc8b0f4){const _0x2b0202=_0x19f75d;return{'model':db[_0xc8b0f4[_0x2b0202('0x37')]],'as':_0xc8b0f4['as'],'attributes':_0xc8b0f4[_0x2b0202('0x3f')],'include':_0xc8b0f4[_0x2b0202('0x1e')]?_[_0x2b0202('0x3c')](_0xc8b0f4[_0x2b0202('0x1e')],function(_0x4b2b3f){const _0x39a5e7=_0x2b0202;return{'model':db[_0x4b2b3f[_0x39a5e7('0x37')]],'as':_0x4b2b3f['as'],'attributes':_0x4b2b3f[_0x39a5e7('0x3f')],'include':_0x4b2b3f[_0x39a5e7('0x1e')]?_[_0x39a5e7('0x3c')](_0x4b2b3f[_0x39a5e7('0x1e')],function(_0x174cde){const _0x10937f=_0x39a5e7;return{'model':db[_0x174cde[_0x10937f('0x37')]],'as':_0x174cde['as'],'attributes':_0x174cde[_0x10937f('0x3f')]};}):[]};}):[]};}):[]:[]})[_0x19f75d('0x43')](function(_0x1214c0){const _0x58eeb5=_0x19f75d;logger['info'](_0x58eeb5('0x21'),_0x29b346),logger[_0x58eeb5('0x2d')]('GetFaxAccount',_0x29b346,JSON['stringify'](_0x1214c0)),_0x4ef222(_0x1214c0);})['catch'](function(_0x57c929){const _0x49c9e9=_0x19f75d;logger[_0x49c9e9('0x34')](_0x49c9e9('0x21'),_0x57c929[_0x49c9e9('0x23')],_0x29b346),_0x1989fb(_0x789b47[_0x49c9e9('0x34')](0x1f4,_0x57c929[_0x49c9e9('0x23')]));});});},exports['NotifyFaxAccount']=function(_0x36e8b0){const _0x4051e3=this;return new Promise(function(_0xc5007e,_0x329935){const _0x2aac1e=a189_0x1494,_0x4abdb4={'body':_0x36e8b0['body'],'channel':_0x2aac1e('0x1a')};let _0xed4a92=[],_0xfc0887=[];const _0x3c2b78={};return db[_0x2aac1e('0x3b')][_0x2aac1e('0x41')]()['then'](function(_0x45cbc8){const _0x580f42=_0x2aac1e;if(!_0x45cbc8)throw new ValidationError(_0x580f42('0x36'));_0xed4a92=_[_0x580f42('0x45')](_[_0x580f42('0xb')](_0x45cbc8),[_0x580f42('0x31'),'updatedAt']),_0xfc0887=_['difference'](_[_0x580f42('0xb')](_0x45cbc8),[_0x580f42('0x31'),_0x580f42('0x13'),_0x580f42('0x5'),_0x580f42('0x15')]);_0x36e8b0[_0x580f42('0xd')]['id']&&delete _0x36e8b0[_0x580f42('0xd')]['id'];if(_[_0x580f42('0x9')](_0x36e8b0[_0x580f42('0xd')][_0x580f42('0x33')]))throw new ValidationError(_0x580f42('0xa'));if(_[_0x580f42('0x9')](_0x36e8b0['body'][_0x580f42('0xd')])||_0x36e8b0[_0x580f42('0xd')][_0x580f42('0xd')]==='')throw new ValidationError(_0x580f42('0x10'));if(_[_0x580f42('0x9')](_0x36e8b0[_0x580f42('0xd')][_0x580f42('0x24')]))throw new ValidationError(_0x580f42('0x14')+_0xfc0887);if(!_['includes'](_0xfc0887,_0x36e8b0['body'][_0x580f42('0x24')]))throw new ValidationError(_0x580f42('0x30')+_0xfc0887);_0x3c2b78[_0x36e8b0[_0x580f42('0xd')][_0x580f42('0x24')]]=_0x36e8b0['body'][_0x580f42('0x33')];})[_0x2aac1e('0x43')](function(){const _0x1ff928=_0x2aac1e;return db[_0x1ff928('0x20')][_0x1ff928('0x18')]({'where':{'id':_0x36e8b0[_0x1ff928('0x32')]['id']},'include':[{'model':db['CmList'],'as':_0x1ff928('0x47'),'include':[{'model':db[_0x1ff928('0x3b')],'as':_0x1ff928('0x1c'),'where':_0x3c2b78,'limit':0x1,'order':[[_0x1ff928('0x13'),_0x1ff928('0x7')]]}]},{'model':db['FaxApplication'],'as':_0x1ff928('0x28')}]});})[_0x2aac1e('0x43')](function(_0x526ed1){const _0x2fdfcd=_0x2aac1e;if(_0x526ed1&&_0x526ed1['List']){const _0x1eb577=_0x526ed1[_0x2fdfcd('0x1f')]({'plain':!![]});_0x4abdb4['account']=_0x1eb577,_0x4abdb4[_0x2fdfcd('0x3a')]=_0x1eb577[_0x2fdfcd('0x28')],_0x4abdb4['list']=_0x1eb577[_0x2fdfcd('0x47')],_0x4abdb4[_0x2fdfcd('0x3a')]=_[_0x2fdfcd('0x3e')](_0x4abdb4[_0x2fdfcd('0x3a')],['priority'],['asc']);_0x4abdb4['account']['Applications']&&delete _0x4abdb4['account'][_0x2fdfcd('0x28')];if(_0x4abdb4['account']['List']&&_0x4abdb4['account'][_0x2fdfcd('0x47')][_0x2fdfcd('0x1c')]['length'])return _0x4abdb4[_0x2fdfcd('0x32')][_0x2fdfcd('0x47')][_0x2fdfcd('0x1c')][0x0];const _0x52aeab=_['defaults'](_0x36e8b0[_0x2fdfcd('0xd')],{'firstName':_0x36e8b0[_0x2fdfcd('0xd')][_0x2fdfcd('0x33')],'ListId':_0x1eb577[_0x2fdfcd('0x15')]});return _0x52aeab[_0x36e8b0['body'][_0x2fdfcd('0x24')]]=_0x36e8b0[_0x2fdfcd('0xd')][_0x2fdfcd('0x33')],db[_0x2fdfcd('0x3b')]['create'](_0x52aeab,{'fields':_0xed4a92,'raw':!![]});}})[_0x2aac1e('0x43')](function(_0xfe478f){const _0x2d305b=_0x2aac1e;_0x4abdb4['contact']=_0xfe478f;if(_0xfe478f){const _0x1e9656={'ContactId':_0xfe478f['id'],'FaxAccountId':_0x36e8b0[_0x2d305b('0x32')]['id'],'fax':_0xfe478f[_0x2d305b('0x1a')]};return db[_0x2d305b('0x2a')]['findOne']({'where':{'ContactId':_0xfe478f['id'],'closed':![],'FaxAccountId':_0x36e8b0[_0x2d305b('0x32')]['id']}})['then'](function(_0x5daf35){const _0x5627c9=_0x2d305b;if(_0x5daf35)return[_0x5daf35,![]];return db['FaxInteraction']['create'](_0x1e9656)[_0x5627c9('0x43')](function(_0x24b3a9){return[_0x24b3a9,!![]];});});}else throw new Error(_0x2d305b('0x38'));})[_0x2aac1e('0x43')](function([_0x3d79ac,_0x3c78c7]){const _0x4ec37f=_0x2aac1e,_0x5709a2=_0x3d79ac[_0x4ec37f('0x1f')]({'plain':!![]});return _0x3c78c7?(_0x4abdb4[_0x4ec37f('0x32')][_0x4ec37f('0x3d')]&&_0x4abdb4[_0x4ec37f('0x3a')][_0x4ec37f('0x4')]({'id':0x0,'priority':_0x4abdb4[_0x4ec37f('0x3a')][_0x4ec37f('0x2b')]+0x1,'app':'close','appdata':_0x4ec37f('0x2e'),'interval':_0x4ec37f('0x2')}),_0x5709a2[_0x4ec37f('0x3')]=!![]):_0x5709a2[_0x4ec37f('0x3')]=![],_0x4abdb4[_0x4ec37f('0x12')]=_0x5709a2,db['FaxMessage'][_0x4ec37f('0x17')]({'body':_0x36e8b0['body'][_0x4ec37f('0xd')],'FaxAccountId':_0x36e8b0[_0x4ec37f('0x32')]['id'],'FaxInteractionId':_0x3d79ac['id'],'direction':'in','ContactId':_0x3d79ac['ContactId'],'AttachmentId':_0x36e8b0[_0x4ec37f('0xd')][_0x4ec37f('0x16')]});})[_0x2aac1e('0x43')](function(_0x239658){const _0x2fd3b9=_0x2aac1e;_0x4abdb4[_0x2fd3b9('0x23')]=_0x239658;if(_0x4abdb4[_0x2fd3b9('0x12')]['UserId'])return db['User'][_0x2fd3b9('0x18')]({'attributes':['id',_0x2fd3b9('0x44')],'where':{'id':_0x4abdb4['interaction'][_0x2fd3b9('0x1b')]}})['then'](function(_0x4751c4){const _0x2a28d9=_0x2fd3b9;return _0x4751c4&&_0x4abdb4[_0x2a28d9('0x3a')]['unshift']({'id':0x0,'priority':0x0,'app':_0x2a28d9('0x2f'),'appdata':_0x4751c4[_0x2a28d9('0x44')]+','+(_0x4abdb4[_0x2a28d9('0x32')][_0x2a28d9('0x22')]||0xa),'interval':_0x2a28d9('0x2')}),respondWithRpcPromise('Start',_0x2a28d9('0x27'),_0x4abdb4);});return respondWithRpcPromise(_0x2fd3b9('0x26'),'startRouting',_0x4abdb4);})[_0x2aac1e('0x43')](function(_0x56b1a8){_0xc5007e(_0x56b1a8);})[_0x2aac1e('0x6')](function(_0x26cdc1){const _0x578f2b=_0x2aac1e;_0x329935(_0x4051e3[_0x578f2b('0x34')](0x1f4,_0x26cdc1[_0x578f2b('0x23')]));});});}; \ No newline at end of file +const a226_0x1f4b=['options','FaxMessage','debug','../../config/logger','fax','close','stringify','../../mysqldb','findAll','model','attributes','FaxAccount','difference','List','AttachmentId','Start','mapKey','ListId','unmanaged','created','push','UserId','Applications','from','body','client','CompanyId','catch','User','length','error','interaction','findOne','keys','name','create','limit','request\x20sent','isNil','info','autoclose','FaxAccount,\x20%s,\x20%s','FaxInteraction','CmList','mapKey\x20is\x20mandatory,\x20please\x20use\x20one\x20of\x20these:\x20','startRouting','http','Contacts','where','no\x20available\x20attributes','./faxAccount.socket','message','include','DESC','list','result','agent','register','defaults','waitForTheAssignedAgent','get','then','from\x20is\x20mandatory','map','account','sequelize','rpc','asc','includes','GetFaxAccount','contact','applications','FaxAccount,\x20%s,\x20%s,\x20%s','../../rediscache','Contact\x20not\x20found','updatedAt','CmContact','unshift','FaxApplication','*,*,*,*','createdAt'];(function(_0x5895f8,_0x385941){const _0x1f4b38=function(_0x4d6a44){while(--_0x4d6a44){_0x5895f8['push'](_0x5895f8['shift']());}};_0x1f4b38(++_0x385941);}(a226_0x1f4b,0x189));const a226_0x4d6a=function(_0x5895f8,_0x385941){_0x5895f8=_0x5895f8-0xf3;let _0x1f4b38=a226_0x1f4b[_0x5895f8];return _0x1f4b38;};const a226_0x4d811d=a226_0x4d6a;'use strict';const _=require('lodash'),db=require(a226_0x4d811d(0x106))['db'],{ValidationError}=require(a226_0x4d811d(0x140)),logger=require(a226_0x4d811d(0x102))(a226_0x4d811d(0x141)),{getSocket}=require(a226_0x4d811d(0xf7)),socket=getSocket(),jayson=require('jayson/promise'),client=jayson[a226_0x4d811d(0x118)][a226_0x4d811d(0x12d)]({'port':0x232c});require(a226_0x4d811d(0x131))[a226_0x4d811d(0x138)](socket);function respondWithRpcPromise(_0x1a4554,_0xcf43ec,_0x21e886){return new Promise(function(_0x5bff01,_0x4bbdd4){const _0x511717=a226_0x4d6a;return client['request'](_0x1a4554,_0x21e886)['then'](function(_0x1de4d9){const _0x1d4d0c=a226_0x4d6a;logger[_0x1d4d0c(0x126)](_0x1d4d0c(0x128),_0xcf43ec,_0x1d4d0c(0x124)),logger['debug'](_0x1d4d0c(0xf6),_0xcf43ec,_0x1d4d0c(0x124),JSON[_0x1d4d0c(0x105)](_0x1de4d9));if(_0x1de4d9[_0x1d4d0c(0x11d)]){if(_0x1de4d9[_0x1d4d0c(0x11d)]['code']===0x1f4)return logger[_0x1d4d0c(0x11d)](_0x1d4d0c(0x128),_0xcf43ec,_0x1de4d9[_0x1d4d0c(0x11d)]['message']),_0x4bbdd4(_0x1de4d9['error']['message']);return logger['error'](_0x1d4d0c(0x128),_0xcf43ec,_0x1de4d9[_0x1d4d0c(0x11d)][_0x1d4d0c(0x132)]),_0x5bff01(_0x1de4d9[_0x1d4d0c(0x11d)]['message']);}else logger[_0x1d4d0c(0x126)](_0x1d4d0c(0x128),_0xcf43ec,'request\x20sent'),_0x5bff01(_0x1de4d9[_0x1d4d0c(0x136)][_0x1d4d0c(0x132)]);})[_0x511717(0x11a)](function(_0x5898d3){const _0x2a7e23=_0x511717;logger[_0x2a7e23(0x11d)](_0x2a7e23(0x128),_0xcf43ec,_0x5898d3),_0x4bbdd4(_0x5898d3);});});}exports[a226_0x4d811d(0xf3)]=function(_0x50dfc5){const _0x51ba37=this;return new Promise(function(_0x674c37,_0x857604){const _0x51ade8=a226_0x4d6a;return db[_0x51ade8(0x10a)][_0x51ade8(0x107)]({'raw':_0x50dfc5[_0x51ade8(0xff)]?_0x50dfc5[_0x51ade8(0xff)]['raw']===undefined?!![]:![]:!![],'where':_0x50dfc5[_0x51ade8(0xff)]?_0x50dfc5[_0x51ade8(0xff)][_0x51ade8(0x12f)]||null:null,'attributes':_0x50dfc5[_0x51ade8(0xff)]?_0x50dfc5[_0x51ade8(0xff)][_0x51ade8(0x109)]||null:null,'limit':_0x50dfc5[_0x51ade8(0xff)]?_0x50dfc5[_0x51ade8(0xff)][_0x51ade8(0x123)]||null:null,'include':_0x50dfc5[_0x51ade8(0xff)]?_0x50dfc5['options'][_0x51ade8(0x133)]?_[_0x51ade8(0x13e)](_0x50dfc5[_0x51ade8(0xff)]['include'],function(_0x325f8b){const _0x5eaa2a=_0x51ade8;return{'model':db[_0x325f8b[_0x5eaa2a(0x108)]],'as':_0x325f8b['as'],'attributes':_0x325f8b[_0x5eaa2a(0x109)],'include':_0x325f8b[_0x5eaa2a(0x133)]?_[_0x5eaa2a(0x13e)](_0x325f8b[_0x5eaa2a(0x133)],function(_0xf989a0){const _0x336097=_0x5eaa2a;return{'model':db[_0xf989a0['model']],'as':_0xf989a0['as'],'attributes':_0xf989a0['attributes'],'include':_0xf989a0[_0x336097(0x133)]?_[_0x336097(0x13e)](_0xf989a0[_0x336097(0x133)],function(_0x3783d4){const _0xa1019e=_0x336097;return{'model':db[_0x3783d4['model']],'as':_0x3783d4['as'],'attributes':_0x3783d4[_0xa1019e(0x109)]};}):[]};}):[]};}):[]:[]})[_0x51ade8(0x13c)](function(_0x12e6f3){const _0x1d33fb=_0x51ade8;logger[_0x1d33fb(0x126)](_0x1d33fb(0xf3),_0x50dfc5),logger[_0x1d33fb(0x101)]('GetFaxAccount',_0x50dfc5,JSON[_0x1d33fb(0x105)](_0x12e6f3)),_0x674c37(_0x12e6f3);})[_0x51ade8(0x11a)](function(_0x40bcc1){const _0x31e7e2=_0x51ade8;logger[_0x31e7e2(0x11d)](_0x31e7e2(0xf3),_0x40bcc1[_0x31e7e2(0x132)],_0x50dfc5),_0x857604(_0x51ba37[_0x31e7e2(0x11d)](0x1f4,_0x40bcc1[_0x31e7e2(0x132)]));});});},exports['NotifyFaxAccount']=function(_0x10bfb9){const _0x1ce700=this;return new Promise(function(_0x36c8be,_0x12a166){const _0xf9375d=a226_0x4d6a,_0x4fdb3e={'body':_0x10bfb9[_0xf9375d(0x117)],'channel':_0xf9375d(0x103)};let _0x54380d=[],_0x53e7ad=[];const _0x3d9af1={};return db[_0xf9375d(0xfa)]['describe']()[_0xf9375d(0x13c)](function(_0x4c26c3){const _0x30f98d=_0xf9375d;if(!_0x4c26c3)throw new ValidationError(_0x30f98d(0x130));_0x54380d=_[_0x30f98d(0x10b)](_[_0x30f98d(0x120)](_0x4c26c3),[_0x30f98d(0xfe),_0x30f98d(0xf9)]),_0x53e7ad=_[_0x30f98d(0x10b)](_[_0x30f98d(0x120)](_0x4c26c3),[_0x30f98d(0xfe),_0x30f98d(0xf9),_0x30f98d(0x119),_0x30f98d(0x110)]);_0x10bfb9[_0x30f98d(0x117)]['id']&&delete _0x10bfb9[_0x30f98d(0x117)]['id'];if(_[_0x30f98d(0x125)](_0x10bfb9[_0x30f98d(0x117)][_0x30f98d(0x116)]))throw new ValidationError(_0x30f98d(0x13d));if(_[_0x30f98d(0x125)](_0x10bfb9[_0x30f98d(0x117)][_0x30f98d(0x117)])||_0x10bfb9[_0x30f98d(0x117)][_0x30f98d(0x117)]==='')throw new ValidationError('body\x20is\x20mandatory\x20and\x20not\x20empty');if(_[_0x30f98d(0x125)](_0x10bfb9[_0x30f98d(0x117)][_0x30f98d(0x10f)]))throw new ValidationError(_0x30f98d(0x12b)+_0x53e7ad);if(!_[_0x30f98d(0x143)](_0x53e7ad,_0x10bfb9[_0x30f98d(0x117)]['mapKey']))throw new ValidationError('mapKey\x20invalid,\x20please\x20use\x20one\x20of\x20these:\x20'+_0x53e7ad);_0x3d9af1[_0x10bfb9['body'][_0x30f98d(0x10f)]]=_0x10bfb9[_0x30f98d(0x117)][_0x30f98d(0x116)];})['then'](function(){const _0x68498e=_0xf9375d;return db['FaxAccount'][_0x68498e(0x11f)]({'where':{'id':_0x10bfb9[_0x68498e(0x13f)]['id']},'include':[{'model':db[_0x68498e(0x12a)],'as':_0x68498e(0x10c),'include':[{'model':db[_0x68498e(0xfa)],'as':_0x68498e(0x12e),'where':_0x3d9af1,'limit':0x1,'order':[['updatedAt',_0x68498e(0x134)]]}]},{'model':db[_0x68498e(0xfc)],'as':_0x68498e(0x115)}]});})[_0xf9375d(0x13c)](function(_0x28144d){const _0x486e20=_0xf9375d;if(_0x28144d&&_0x28144d[_0x486e20(0x10c)]){const _0x534bbc=_0x28144d['get']({'plain':!![]});_0x4fdb3e[_0x486e20(0x13f)]=_0x534bbc,_0x4fdb3e[_0x486e20(0xf5)]=_0x534bbc[_0x486e20(0x115)],_0x4fdb3e[_0x486e20(0x135)]=_0x534bbc['List'],_0x4fdb3e['applications']=_['orderBy'](_0x4fdb3e[_0x486e20(0xf5)],['priority'],[_0x486e20(0x142)]);_0x4fdb3e['account'][_0x486e20(0x115)]&&delete _0x4fdb3e['account'][_0x486e20(0x115)];if(_0x4fdb3e[_0x486e20(0x13f)][_0x486e20(0x10c)]&&_0x4fdb3e[_0x486e20(0x13f)][_0x486e20(0x10c)]['Contacts'][_0x486e20(0x11c)])return _0x4fdb3e['account'][_0x486e20(0x10c)][_0x486e20(0x12e)][0x0];const _0x13a1e7=_[_0x486e20(0x139)](_0x10bfb9['body'],{'firstName':_0x10bfb9[_0x486e20(0x117)]['from'],'ListId':_0x534bbc[_0x486e20(0x110)]});return _0x13a1e7[_0x10bfb9[_0x486e20(0x117)]['mapKey']]=_0x10bfb9['body'][_0x486e20(0x116)],db[_0x486e20(0xfa)][_0x486e20(0x122)](_0x13a1e7,{'fields':_0x54380d,'raw':!![]});}})[_0xf9375d(0x13c)](function(_0x45adde){const _0x38ad6d=_0xf9375d;_0x4fdb3e[_0x38ad6d(0xf4)]=_0x45adde;if(_0x45adde){const _0x1565a2={'ContactId':_0x45adde['id'],'FaxAccountId':_0x10bfb9[_0x38ad6d(0x13f)]['id'],'fax':_0x45adde[_0x38ad6d(0x103)]};return db[_0x38ad6d(0x129)]['findOne']({'where':{'ContactId':_0x45adde['id'],'closed':![],'FaxAccountId':_0x10bfb9['account']['id']}})['then'](function(_0x319fbf){const _0x48a005=_0x38ad6d;if(_0x319fbf)return[_0x319fbf,![]];return db[_0x48a005(0x129)][_0x48a005(0x122)](_0x1565a2)[_0x48a005(0x13c)](function(_0x554b6a){return[_0x554b6a,!![]];});});}else throw new Error(_0x38ad6d(0xf8));})['then'](function([_0xe14816,_0x8cc1ff]){const _0x1dd2d5=_0xf9375d,_0x43e35d=_0xe14816[_0x1dd2d5(0x13b)]({'plain':!![]});return _0x8cc1ff?(_0x4fdb3e['account'][_0x1dd2d5(0x127)]&&_0x4fdb3e[_0x1dd2d5(0xf5)][_0x1dd2d5(0x113)]({'id':0x0,'priority':_0x4fdb3e[_0x1dd2d5(0xf5)]['length']+0x1,'app':_0x1dd2d5(0x104),'appdata':_0x1dd2d5(0x111),'interval':_0x1dd2d5(0xfd)}),_0x43e35d[_0x1dd2d5(0x112)]=!![]):_0x43e35d[_0x1dd2d5(0x112)]=![],_0x4fdb3e[_0x1dd2d5(0x11e)]=_0x43e35d,db[_0x1dd2d5(0x100)]['create']({'body':_0x10bfb9['body']['body'],'FaxAccountId':_0x10bfb9[_0x1dd2d5(0x13f)]['id'],'FaxInteractionId':_0xe14816['id'],'direction':'in','ContactId':_0xe14816['ContactId'],'AttachmentId':_0x10bfb9[_0x1dd2d5(0x117)][_0x1dd2d5(0x10d)]});})['then'](function(_0xb384b3){const _0xe96ad5=_0xf9375d;_0x4fdb3e[_0xe96ad5(0x132)]=_0xb384b3;if(_0x4fdb3e['interaction'][_0xe96ad5(0x114)])return db[_0xe96ad5(0x11b)]['findOne']({'attributes':['id',_0xe96ad5(0x121)],'where':{'id':_0x4fdb3e[_0xe96ad5(0x11e)][_0xe96ad5(0x114)]}})[_0xe96ad5(0x13c)](function(_0x475b48){const _0x38877e=_0xe96ad5;return _0x475b48&&_0x4fdb3e['applications'][_0x38877e(0xfb)]({'id':0x0,'priority':0x0,'app':_0x38877e(0x137),'appdata':_0x475b48[_0x38877e(0x121)]+','+(_0x4fdb3e[_0x38877e(0x13f)][_0x38877e(0x13a)]||0xa),'interval':'*,*,*,*'}),respondWithRpcPromise(_0x38877e(0x10e),_0x38877e(0x12c),_0x4fdb3e);});return respondWithRpcPromise(_0xe96ad5(0x10e),_0xe96ad5(0x12c),_0x4fdb3e);})[_0xf9375d(0x13c)](function(_0x593cdc){_0x36c8be(_0x593cdc);})[_0xf9375d(0x11a)](function(_0x510551){const _0x48220d=_0xf9375d;_0x12a166(_0x1ce700['error'](0x1f4,_0x510551[_0x48220d(0x132)]));});});}; \ No newline at end of file diff --git a/server/api/faxAccount/faxAccount.socket.js b/server/api/faxAccount/faxAccount.socket.js index e38d22c..82acfad 100644 --- a/server/api/faxAccount/faxAccount.socket.js +++ b/server/api/faxAccount/faxAccount.socket.js @@ -1 +1 @@ -const a190_0xbd49=['faxAccount:','./faxAccount.events','remove','emit','length','register'];(function(_0xad2462,_0xbd491d){const _0x127a0d=function(_0x112629){while(--_0x112629){_0xad2462['push'](_0xad2462['shift']());}};_0x127a0d(++_0xbd491d);}(a190_0xbd49,0x1a3));const a190_0x127a=function(_0xad2462,_0xbd491d){_0xad2462=_0xad2462-0x0;let _0x127a0d=a190_0xbd49[_0xad2462];return _0x127a0d;};const _0x595a3c=a190_0x127a;'use strict';const FaxAccountEvents=require(_0x595a3c('0x2')),events=['save',_0x595a3c('0x3'),'update'];function createListener(_0x112629,_0x39b2ca){return function(_0x4f044d){const _0x498e7b=a190_0x127a;_0x39b2ca[_0x498e7b('0x4')](_0x112629,_0x4f044d);};}exports[_0x595a3c('0x0')]=function(_0x224605){const _0x3c1a08=_0x595a3c;for(let _0x4b439f=0x0,_0x141195=events[_0x3c1a08('0x5')];_0x4b439f<_0x141195;_0x4b439f++){const _0x38e676=events[_0x4b439f],_0x1b5a30=createListener(_0x3c1a08('0x1')+_0x38e676,_0x224605);FaxAccountEvents['on'](_0x38e676,_0x1b5a30);}}; \ No newline at end of file +const a227_0x12be=['./faxAccount.events','emit','length','update'];(function(_0x313895,_0x284263){const _0x12be43=function(_0x2a360b){while(--_0x2a360b){_0x313895['push'](_0x313895['shift']());}};_0x12be43(++_0x284263);}(a227_0x12be,0x114));const a227_0x2a36=function(_0x313895,_0x284263){_0x313895=_0x313895-0x8e;let _0x12be43=a227_0x12be[_0x313895];return _0x12be43;};const a227_0x1eae11=a227_0x2a36;'use strict';const FaxAccountEvents=require(a227_0x1eae11(0x8e)),events=['save','remove',a227_0x1eae11(0x91)];function createListener(_0x2bf2e3,_0x5529fd){return function(_0x4ad580){const _0x3ac45d=a227_0x2a36;_0x5529fd[_0x3ac45d(0x8f)](_0x2bf2e3,_0x4ad580);};}exports['register']=function(_0x2257e8){const _0x48e2ab=a227_0x1eae11;for(let _0x46f7b8=0x0,_0x1bc95a=events[_0x48e2ab(0x90)];_0x46f7b8<_0x1bc95a;_0x46f7b8++){const _0x3d8220=events[_0x46f7b8],_0x33dbc3=createListener('faxAccount:'+_0x3d8220,_0x2257e8);FaxAccountEvents['on'](_0x3d8220,_0x33dbc3);}}; \ No newline at end of file diff --git a/server/api/faxAccount/index.js b/server/api/faxAccount/index.js index 539afc4..6c2d281 100644 --- a/server/api/faxAccount/index.js +++ b/server/api/faxAccount/index.js @@ -1 +1 @@ -const a191_0x1132=['addAgents','Router','removeAnswers','update','addApplications','removeDispositions','/:id','create','/:id/interactions','/:id/canned_answers','/:id/users','delete','/:id/dispositions','getMessages','get','addAccountApplications','destroy','/describe','express','post','index','/:id/messages','getAnswers','getApplications','send','removeAgents','describe','getAgents','getInteractions','addAnswer','getDispositions','/:id/send','isAuthenticated','../../components/auth/service'];(function(_0x56c061,_0x1132bd){const _0xa5254c=function(_0xb82e32){while(--_0xb82e32){_0x56c061['push'](_0x56c061['shift']());}};_0xa5254c(++_0x1132bd);}(a191_0x1132,0xbd));const a191_0xa525=function(_0x56c061,_0x1132bd){_0x56c061=_0x56c061-0x0;let _0xa5254c=a191_0x1132[_0x56c061];return _0xa5254c;};const _0x2201eb=a191_0xa525;'use strict';const express=require(_0x2201eb('0x21')),router=express[_0x2201eb('0x10')](),auth=require(_0x2201eb('0xe')),controller=require('./faxAccount.controller');router[_0x2201eb('0x1d')]('/',auth[_0x2201eb('0xd')](),controller[_0x2201eb('0x1')]),router['get'](_0x2201eb('0x20'),auth[_0x2201eb('0xd')](),controller[_0x2201eb('0x7')]),router[_0x2201eb('0x1d')](_0x2201eb('0x15'),auth[_0x2201eb('0xd')](),controller['show']),router[_0x2201eb('0x1d')](_0x2201eb('0x1b'),auth[_0x2201eb('0xd')](),controller[_0x2201eb('0xb')]),router[_0x2201eb('0x1d')](_0x2201eb('0x18'),auth[_0x2201eb('0xd')](),controller[_0x2201eb('0x3')]),router['get'](_0x2201eb('0x17'),auth[_0x2201eb('0xd')](),controller[_0x2201eb('0x9')]),router[_0x2201eb('0x1d')]('/:id/applications',auth[_0x2201eb('0xd')](),controller[_0x2201eb('0x4')]),router[_0x2201eb('0x1d')](_0x2201eb('0x2'),auth[_0x2201eb('0xd')](),controller[_0x2201eb('0x1c')]),router[_0x2201eb('0x1d')](_0x2201eb('0x19'),auth[_0x2201eb('0xd')](),controller[_0x2201eb('0x8')]),router[_0x2201eb('0x0')]('/',auth['isAuthenticated'](),controller[_0x2201eb('0x16')]),router[_0x2201eb('0x0')](_0x2201eb('0x1b'),auth[_0x2201eb('0xd')](),controller['addDisposition']),router[_0x2201eb('0x0')](_0x2201eb('0x18'),auth['isAuthenticated'](),controller[_0x2201eb('0xa')]),router['post'](_0x2201eb('0x17'),auth[_0x2201eb('0xd')](),controller['addInteraction']),router[_0x2201eb('0x0')]('/:id/applications',auth['isAuthenticated'](),controller[_0x2201eb('0x13')]),router['post']('/addaccountapplications',auth[_0x2201eb('0xd')](),controller[_0x2201eb('0x1e')]),router[_0x2201eb('0x0')]('/updateaccountapplications',auth[_0x2201eb('0xd')](),controller['updateAccountApplications']),router[_0x2201eb('0x0')](_0x2201eb('0xc'),auth[_0x2201eb('0xd')](),controller[_0x2201eb('0x5')]),router[_0x2201eb('0x0')](_0x2201eb('0x19'),auth[_0x2201eb('0xd')](),controller[_0x2201eb('0xf')]),router['put'](_0x2201eb('0x15'),auth[_0x2201eb('0xd')](),controller[_0x2201eb('0x12')]),router['delete'](_0x2201eb('0x15'),auth[_0x2201eb('0xd')](),controller[_0x2201eb('0x1f')]),router[_0x2201eb('0x1a')](_0x2201eb('0x1b'),auth[_0x2201eb('0xd')](),controller[_0x2201eb('0x14')]),router[_0x2201eb('0x1a')](_0x2201eb('0x18'),auth['isAuthenticated'](),controller[_0x2201eb('0x11')]),router[_0x2201eb('0x1a')](_0x2201eb('0x19'),auth['isAuthenticated'](),controller[_0x2201eb('0x6')]),module['exports']=router; \ No newline at end of file +const a228_0x1ea0=['removeDispositions','/:id/dispositions','isAuthenticated','/:id/messages','addApplications','/:id/applications','get','/:id','/describe','../../components/auth/service','getDispositions','delete','/:id/interactions','exports','post','/:id/send','show','addInteraction','put','create','send','addAnswer','addAccountApplications','updateAccountApplications','/updateaccountapplications','express','getAgents','getMessages','update','index','getApplications','/:id/canned_answers','destroy','/addaccountapplications','Router','removeAnswers','/:id/users','./faxAccount.controller'];(function(_0x22b1c2,_0x41f561){const _0x1ea0f2=function(_0x30e04f){while(--_0x30e04f){_0x22b1c2['push'](_0x22b1c2['shift']());}};_0x1ea0f2(++_0x41f561);}(a228_0x1ea0,0xf2));const a228_0x30e0=function(_0x22b1c2,_0x41f561){_0x22b1c2=_0x22b1c2-0xe9;let _0x1ea0f2=a228_0x1ea0[_0x22b1c2];return _0x1ea0f2;};const a228_0xbf4e77=a228_0x30e0;'use strict';const express=require(a228_0xbf4e77(0xf4)),router=express[a228_0xbf4e77(0xfd)](),auth=require(a228_0xbf4e77(0x10a)),controller=require(a228_0xbf4e77(0x100));router[a228_0xbf4e77(0x107)]('/',auth[a228_0xbf4e77(0x103)](),controller[a228_0xbf4e77(0xf8)]),router[a228_0xbf4e77(0x107)](a228_0xbf4e77(0x109),auth['isAuthenticated'](),controller['describe']),router[a228_0xbf4e77(0x107)](a228_0xbf4e77(0x108),auth[a228_0xbf4e77(0x103)](),controller[a228_0xbf4e77(0xeb)]),router[a228_0xbf4e77(0x107)]('/:id/dispositions',auth['isAuthenticated'](),controller[a228_0xbf4e77(0x10b)]),router[a228_0xbf4e77(0x107)](a228_0xbf4e77(0xfa),auth[a228_0xbf4e77(0x103)](),controller['getAnswers']),router[a228_0xbf4e77(0x107)](a228_0xbf4e77(0x10d),auth[a228_0xbf4e77(0x103)](),controller['getInteractions']),router[a228_0xbf4e77(0x107)](a228_0xbf4e77(0x106),auth[a228_0xbf4e77(0x103)](),controller[a228_0xbf4e77(0xf9)]),router[a228_0xbf4e77(0x107)](a228_0xbf4e77(0x104),auth[a228_0xbf4e77(0x103)](),controller[a228_0xbf4e77(0xf6)]),router['get'](a228_0xbf4e77(0xff),auth[a228_0xbf4e77(0x103)](),controller[a228_0xbf4e77(0xf5)]),router['post']('/',auth[a228_0xbf4e77(0x103)](),controller[a228_0xbf4e77(0xee)]),router['post'](a228_0xbf4e77(0x102),auth['isAuthenticated'](),controller['addDisposition']),router[a228_0xbf4e77(0xe9)]('/:id/canned_answers',auth[a228_0xbf4e77(0x103)](),controller[a228_0xbf4e77(0xf0)]),router['post']('/:id/interactions',auth[a228_0xbf4e77(0x103)](),controller[a228_0xbf4e77(0xec)]),router[a228_0xbf4e77(0xe9)](a228_0xbf4e77(0x106),auth['isAuthenticated'](),controller[a228_0xbf4e77(0x105)]),router['post'](a228_0xbf4e77(0xfc),auth[a228_0xbf4e77(0x103)](),controller[a228_0xbf4e77(0xf1)]),router['post'](a228_0xbf4e77(0xf3),auth['isAuthenticated'](),controller[a228_0xbf4e77(0xf2)]),router[a228_0xbf4e77(0xe9)](a228_0xbf4e77(0xea),auth[a228_0xbf4e77(0x103)](),controller[a228_0xbf4e77(0xef)]),router[a228_0xbf4e77(0xe9)](a228_0xbf4e77(0xff),auth[a228_0xbf4e77(0x103)](),controller['addAgents']),router[a228_0xbf4e77(0xed)](a228_0xbf4e77(0x108),auth[a228_0xbf4e77(0x103)](),controller[a228_0xbf4e77(0xf7)]),router['delete'](a228_0xbf4e77(0x108),auth['isAuthenticated'](),controller[a228_0xbf4e77(0xfb)]),router['delete'](a228_0xbf4e77(0x102),auth[a228_0xbf4e77(0x103)](),controller[a228_0xbf4e77(0x101)]),router['delete'](a228_0xbf4e77(0xfa),auth['isAuthenticated'](),controller[a228_0xbf4e77(0xfe)]),router[a228_0xbf4e77(0x10c)](a228_0xbf4e77(0xff),auth[a228_0xbf4e77(0x103)](),controller['removeAgents']),module[a228_0xbf4e77(0x10e)]=router; \ No newline at end of file diff --git a/server/api/faxApplication/faxApplication.attributes.js b/server/api/faxApplication/faxApplication.attributes.js index 9d3820b..58823ac 100644 --- a/server/api/faxApplication/faxApplication.attributes.js +++ b/server/api/faxApplication/faxApplication.attributes.js @@ -1 +1 @@ -const a192_0x504e=['STRING','INTEGER','TEXT','noop','sequelize'];(function(_0x2450ee,_0x504e7e){const _0x756c1d=function(_0x12d7e9){while(--_0x12d7e9){_0x2450ee['push'](_0x2450ee['shift']());}};_0x756c1d(++_0x504e7e);}(a192_0x504e,0xe2));const a192_0x756c=function(_0x2450ee,_0x504e7e){_0x2450ee=_0x2450ee-0x0;let _0x756c1d=a192_0x504e[_0x2450ee];return _0x756c1d;};const _0x38d15d=a192_0x756c;'use strict';const Sequelize=require(_0x38d15d('0x3'));module['exports']={'priority':{'type':Sequelize[_0x38d15d('0x0')],'allowNull':![]},'app':{'type':Sequelize[_0x38d15d('0x4')],'allowNull':![],'defaultValue':_0x38d15d('0x2')},'appdata':{'type':Sequelize[_0x38d15d('0x1')]()},'description':{'type':Sequelize[_0x38d15d('0x4')]},'interval':{'type':Sequelize[_0x38d15d('0x4')],'defaultValue':'*,*,*,*'}}; \ No newline at end of file +const a229_0x13a8=['sequelize','TEXT','*,*,*,*','exports','attributes','STRING','noop','INTEGER'];(function(_0x239310,_0x2f1d91){const _0x13a85f=function(_0x1473c5){while(--_0x1473c5){_0x239310['push'](_0x239310['shift']());}};_0x13a85f(++_0x2f1d91);}(a229_0x13a8,0x1c7));const a229_0x1473=function(_0x239310,_0x2f1d91){_0x239310=_0x239310-0xb5;let _0x13a85f=a229_0x13a8[_0x239310];return _0x13a85f;};const a229_0x2842dd=a229_0x1473;'use strict';const {DataTypes}=require(a229_0x2842dd(0xb6)),attributes={'priority':{'type':DataTypes[a229_0x2842dd(0xb5)],'allowNull':![]},'app':{'type':DataTypes[a229_0x2842dd(0xbb)],'allowNull':![],'defaultValue':a229_0x2842dd(0xbc)},'appdata':{'type':DataTypes[a229_0x2842dd(0xb7)]()},'description':{'type':DataTypes[a229_0x2842dd(0xbb)]},'interval':{'type':DataTypes[a229_0x2842dd(0xbb)],'defaultValue':a229_0x2842dd(0xb8)}};module[a229_0x2842dd(0xb9)][a229_0x2842dd(0xba)]=attributes; \ No newline at end of file diff --git a/server/api/faxApplication/faxApplication.controller.js b/server/api/faxApplication/faxApplication.controller.js index b9df7a0..c589dc7 100644 --- a/server/api/faxApplication/faxApplication.controller.js +++ b/server/api/faxApplication/faxApplication.controller.js @@ -1 +1 @@ -const a193_0x2218=['body','options','sendStatus','length','name','index','../../components/parsers/qs','type','FaxApplication','model','nolimit','filters','status','query','include','fieldName','count','limit','where','order','keys','rawAttributes','findOne','create','sort','Content-Range','destroy','intersection','update','../../mysqldb','map','merge','then','error','../../config/logger','offset','send','includeAll','set','params','attributes','json','VIRTUAL','fields','sequelize','lodash','stack','findAll','catch'];(function(_0x2d8c99,_0x221897){const _0x5cf658=function(_0xb0dec9){while(--_0xb0dec9){_0x2d8c99['push'](_0x2d8c99['shift']());}};_0x5cf658(++_0x221897);}(a193_0x2218,0x1ed));const a193_0x5cf6=function(_0x2d8c99,_0x221897){_0x2d8c99=_0x2d8c99-0x0;let _0x5cf658=a193_0x2218[_0x2d8c99];return _0x5cf658;};const _0x4b7a8c=a193_0x5cf6;'use strict';const _=require(_0x4b7a8c('0x2a')),qs=require(_0x4b7a8c('0x3')),logger=require(_0x4b7a8c('0x1f'))('api'),db=require(_0x4b7a8c('0x1a'))['db'],{Op}=require(_0x4b7a8c('0x29'));function respondWithResult(_0xb0dec9,_0x71224f){return _0x71224f=_0x71224f||0xc8,function(_0xb76a96){const _0x13b174=a193_0x5cf6;if(_0xb76a96)return _0xb0dec9[_0x13b174('0x9')](_0x71224f)[_0x13b174('0x26')](_0xb76a96);};}function respondWithFilteredResult(_0x4fae79,_0x4782f5){return function(_0xaa489){const _0x403447=a193_0x5cf6;if(_0xaa489){const _0x31217a=_0xaa489[_0x403447('0xd')],_0x181a0d=_0x4782f5['offset'];let _0x21a1fb=_0x4782f5[_0x403447('0x20')]+_0x4782f5[_0x403447('0xe')],_0xbdc16f;return _0x21a1fb>=_0x31217a?(_0x21a1fb=_0x31217a,_0xbdc16f=0xc8):_0xbdc16f=0xce,_0x4fae79['status'](_0xbdc16f),_0x4fae79[_0x403447('0x23')](_0x403447('0x16'),_0x181a0d+'-'+_0x21a1fb+'/'+_0x31217a)[_0x403447('0x26')](_0xaa489);}return null;};}function saveUpdates(_0x148fbe){return function(_0x3e6964){const _0x5ad304=a193_0x5cf6;if(_0x3e6964)return _0x3e6964[_0x5ad304('0x19')](_0x148fbe)[_0x5ad304('0x1d')](function(_0x2236af){return _0x2236af;});return null;};}function removeEntity(_0x38b47e){return function(_0x57827b){const _0x4c330d=a193_0x5cf6;if(_0x57827b)return _0x57827b[_0x4c330d('0x17')]()[_0x4c330d('0x1d')](function(){const _0xc0df3c=_0x4c330d;_0x38b47e[_0xc0df3c('0x9')](0xcc)['end']();});};}function handleEntityNotFound(_0x43f1c8){return function(_0x5540e7){const _0x52118b=a193_0x5cf6;return!_0x5540e7&&_0x43f1c8[_0x52118b('0x30')](0x194),_0x5540e7;};}function handleError(_0x456360,_0x328a49){return _0x328a49=_0x328a49||0x1f4,function(_0x55fdaa){const _0x3dc997=a193_0x5cf6;logger[_0x3dc997('0x1e')](_0x55fdaa[_0x3dc997('0x2b')]),_0x55fdaa['name']&&delete _0x55fdaa[_0x3dc997('0x1')],_0x456360['status'](_0x328a49)[_0x3dc997('0x21')](_0x55fdaa);};}exports[_0x4b7a8c('0x2')]=function(_0x276df0,_0x5ec631){const _0x4c6552=_0x4b7a8c;let _0x59aec2={};const _0x2193eb={},_0x31a710={'count':0x0,'rows':[]},_0x182edb=_[_0x4c6552('0x1b')](db[_0x4c6552('0x5')]['rawAttributes'],function(_0x220b8f){const _0x8caee9=_0x4c6552;return{'name':_0x220b8f[_0x8caee9('0xc')],'type':_0x220b8f[_0x8caee9('0x4')]['key']};});_0x2193eb[_0x4c6552('0x6')]=_[_0x4c6552('0x1b')](_0x182edb,'name'),_0x2193eb[_0x4c6552('0xa')]=_[_0x4c6552('0x11')](_0x276df0[_0x4c6552('0xa')]),_0x2193eb[_0x4c6552('0x8')]=_[_0x4c6552('0x18')](_0x2193eb[_0x4c6552('0x6')],_0x2193eb['query']),_0x59aec2[_0x4c6552('0x25')]=_[_0x4c6552('0x18')](_0x2193eb['model'],qs[_0x4c6552('0x28')](_0x276df0[_0x4c6552('0xa')][_0x4c6552('0x28')])),_0x59aec2[_0x4c6552('0x25')]=_0x59aec2['attributes'][_0x4c6552('0x0')]?_0x59aec2[_0x4c6552('0x25')]:_0x2193eb[_0x4c6552('0x6')];typeof _0x276df0[_0x4c6552('0xa')][_0x4c6552('0x7')]==='undefined'&&(_0x59aec2[_0x4c6552('0xe')]=qs[_0x4c6552('0xe')](_0x276df0[_0x4c6552('0xa')][_0x4c6552('0xe')]),_0x59aec2[_0x4c6552('0x20')]=qs[_0x4c6552('0x20')](_0x276df0[_0x4c6552('0xa')][_0x4c6552('0x20')]));_0x59aec2[_0x4c6552('0x10')]=qs[_0x4c6552('0x15')](_0x276df0[_0x4c6552('0xa')]['sort']),_0x59aec2[_0x4c6552('0xf')]=qs[_0x4c6552('0x8')](_['pick'](_0x276df0[_0x4c6552('0xa')],_0x2193eb['filters']),_0x182edb);_0x276df0[_0x4c6552('0xa')]['filter']&&(_0x59aec2['where']=_[_0x4c6552('0x1c')](_0x59aec2[_0x4c6552('0xf')],{[Op['or']]:_[_0x4c6552('0x1b')](_0x182edb,function(_0x50a283){const _0x13b8c7=_0x4c6552;if(_0x50a283[_0x13b8c7('0x4')]!==_0x13b8c7('0x27')){const _0x4d91ba={};return _0x4d91ba[_0x50a283['name']]={[Op['like']]:'%'+_0x276df0[_0x13b8c7('0xa')]['filter']+'%'},_0x4d91ba;}})}));_0x59aec2=_[_0x4c6552('0x1c')]({},_0x59aec2,_0x276df0[_0x4c6552('0x2f')]);const _0x284b4f={'where':_0x59aec2[_0x4c6552('0xf')]};return db['FaxApplication'][_0x4c6552('0xd')](_0x284b4f)[_0x4c6552('0x1d')](function(_0x448c2a){const _0x9a992c=_0x4c6552;return _0x31a710[_0x9a992c('0xd')]=_0x448c2a,_0x276df0[_0x9a992c('0xa')][_0x9a992c('0x22')]&&(_0x59aec2[_0x9a992c('0xb')]=[{'all':!![]}]),db[_0x9a992c('0x5')][_0x9a992c('0x2c')](_0x59aec2);})[_0x4c6552('0x1d')](function(_0x3db2cc){return _0x31a710['rows']=_0x3db2cc,_0x31a710;})[_0x4c6552('0x1d')](respondWithFilteredResult(_0x5ec631,_0x59aec2))[_0x4c6552('0x2d')](handleError(_0x5ec631,null));},exports['show']=function(_0x5c31a2,_0x40cf41){const _0x2785c5=_0x4b7a8c;let _0x34b6e2={'raw':!![],'where':{'id':_0x5c31a2[_0x2785c5('0x24')]['id']}};const _0x3dd5cd={};return _0x3dd5cd[_0x2785c5('0x6')]=_[_0x2785c5('0x11')](db['FaxApplication'][_0x2785c5('0x12')]),_0x3dd5cd[_0x2785c5('0xa')]=_[_0x2785c5('0x11')](_0x5c31a2[_0x2785c5('0xa')]),_0x3dd5cd[_0x2785c5('0x8')]=_[_0x2785c5('0x18')](_0x3dd5cd['model'],_0x3dd5cd[_0x2785c5('0xa')]),_0x34b6e2[_0x2785c5('0x25')]=_[_0x2785c5('0x18')](_0x3dd5cd[_0x2785c5('0x6')],qs['fields'](_0x5c31a2[_0x2785c5('0xa')][_0x2785c5('0x28')])),_0x34b6e2[_0x2785c5('0x25')]=_0x34b6e2[_0x2785c5('0x25')]['length']?_0x34b6e2[_0x2785c5('0x25')]:_0x3dd5cd[_0x2785c5('0x6')],_0x5c31a2[_0x2785c5('0xa')]['includeAll']&&(_0x34b6e2[_0x2785c5('0xb')]=[{'all':!![]}]),_0x34b6e2=_['merge']({},_0x34b6e2,_0x5c31a2[_0x2785c5('0x2f')]),db[_0x2785c5('0x5')][_0x2785c5('0x13')](_0x34b6e2)[_0x2785c5('0x1d')](handleEntityNotFound(_0x40cf41,null))[_0x2785c5('0x1d')](respondWithResult(_0x40cf41,null))['catch'](handleError(_0x40cf41,null));},exports[_0x4b7a8c('0x14')]=function(_0xef9778,_0x48581c){const _0xa7585=_0x4b7a8c;return db[_0xa7585('0x5')][_0xa7585('0x14')](_0xef9778[_0xa7585('0x2e')],{})['then'](respondWithResult(_0x48581c,0xc9))['catch'](handleError(_0x48581c,null));},exports[_0x4b7a8c('0x19')]=function(_0x43dcbb,_0x3b554f){const _0x5687bc=_0x4b7a8c;return _0x43dcbb[_0x5687bc('0x2e')]['id']&&delete _0x43dcbb[_0x5687bc('0x2e')]['id'],db['FaxApplication']['findOne']({'where':{'id':_0x43dcbb[_0x5687bc('0x24')]['id']}})[_0x5687bc('0x1d')](handleEntityNotFound(_0x3b554f,null))[_0x5687bc('0x1d')](saveUpdates(_0x43dcbb[_0x5687bc('0x2e')],null))['then'](respondWithResult(_0x3b554f,null))[_0x5687bc('0x2d')](handleError(_0x3b554f,null));},exports[_0x4b7a8c('0x17')]=function(_0x5d8617,_0x2b0082){const _0x413569=_0x4b7a8c;return db[_0x413569('0x5')]['findOne']({'where':{'id':_0x5d8617['params']['id']}})[_0x413569('0x1d')](handleEntityNotFound(_0x2b0082,null))[_0x413569('0x1d')](removeEntity(_0x2b0082,null))['catch'](handleError(_0x2b0082,null));}; \ No newline at end of file +const a230_0x3783=['create','type','fieldName','Content-Range','nolimit','filter','merge','status','like','api','where','error','map','undefined','rawAttributes','fields','params','VIRTUAL','limit','options','offset','query','intersection','index','lodash','../../config/logger','show','json','count','key','order','body','end','FaxApplication','findOne','destroy','send','../../mysqldb','sort','rows','filters','includeAll','length','keys','sequelize','then','update','set','include','findAll','catch','model','sendStatus','attributes','name'];(function(_0x11762f,_0x573efd){const _0x3783dd=function(_0x211378){while(--_0x211378){_0x11762f['push'](_0x11762f['shift']());}};_0x3783dd(++_0x573efd);}(a230_0x3783,0x10a));const a230_0x2113=function(_0x11762f,_0x573efd){_0x11762f=_0x11762f-0x14b;let _0x3783dd=a230_0x3783[_0x11762f];return _0x3783dd;};const a230_0x3a0d3f=a230_0x2113;'use strict';const _=require(a230_0x3a0d3f(0x16c)),qs=require('../../components/parsers/qs'),logger=require(a230_0x3a0d3f(0x16d))(a230_0x3a0d3f(0x15d)),{db}=require(a230_0x3a0d3f(0x179)),{Op}=require(a230_0x3a0d3f(0x180));function respondWithResult(_0x3119d,_0x3fb6e9){return _0x3fb6e9=_0x3fb6e9||0xc8,function(_0x4d8e5a){const _0x1ea874=a230_0x2113;if(_0x4d8e5a)return _0x3119d[_0x1ea874(0x15b)](_0x3fb6e9)[_0x1ea874(0x16f)](_0x4d8e5a);};}function respondWithFilteredResult(_0x1c2583,_0x577e60){return function(_0x28d2c4){const _0x28498f=a230_0x2113;if(_0x28d2c4){const _0x12f011=_0x28d2c4[_0x28498f(0x170)],_0x47d91c=_0x577e60[_0x28498f(0x168)];let _0x88a063=_0x577e60[_0x28498f(0x168)]+_0x577e60[_0x28498f(0x166)],_0xa0edd0;return _0x88a063>=_0x12f011?(_0x88a063=_0x12f011,_0xa0edd0=0xc8):_0xa0edd0=0xce,_0x1c2583[_0x28498f(0x15b)](_0xa0edd0),_0x1c2583[_0x28498f(0x14c)](_0x28498f(0x157),_0x47d91c+'-'+_0x88a063+'/'+_0x12f011)[_0x28498f(0x16f)](_0x28d2c4);}return null;};}function saveUpdates(_0x378e85){return function(_0x3175e2){const _0x5a7874=a230_0x2113;if(_0x3175e2)return _0x3175e2[_0x5a7874(0x14b)](_0x378e85)[_0x5a7874(0x181)](function(_0x28bfa1){return _0x28bfa1;});return null;};}function removeEntity(_0x5cb8d9){return function(_0x545703){const _0x12461e=a230_0x2113;if(_0x545703)return _0x545703[_0x12461e(0x177)]()[_0x12461e(0x181)](function(){const _0x304f9a=_0x12461e;_0x5cb8d9[_0x304f9a(0x15b)](0xcc)[_0x304f9a(0x174)]();});};}function handleEntityNotFound(_0x588396){return function(_0x222ddf){const _0x14c903=a230_0x2113;return!_0x222ddf&&_0x588396[_0x14c903(0x151)](0x194),_0x222ddf;};}function handleError(_0x1f0fea,_0xebeb3c){return _0xebeb3c=_0xebeb3c||0x1f4,function(_0x3d82b0){const _0x32cbd0=a230_0x2113;logger[_0x32cbd0(0x15f)](_0x3d82b0['stack']),_0x3d82b0[_0x32cbd0(0x153)]&&delete _0x3d82b0[_0x32cbd0(0x153)],_0x1f0fea[_0x32cbd0(0x15b)](_0xebeb3c)[_0x32cbd0(0x178)](_0x3d82b0);};}exports[a230_0x3a0d3f(0x16b)]=function(_0x2df600,_0x1a5c29){const _0x4d0e7d=a230_0x3a0d3f;let _0x20a1f4={};const _0x4adf95={},_0x3c1843={'count':0x0,'rows':[]},_0x1a120a=_[_0x4d0e7d(0x160)](db['FaxApplication'][_0x4d0e7d(0x162)],function(_0x5055db){const _0xe7d524=_0x4d0e7d;return{'name':_0x5055db[_0xe7d524(0x156)],'type':_0x5055db['type'][_0xe7d524(0x171)]};});_0x4adf95[_0x4d0e7d(0x150)]=_['map'](_0x1a120a,_0x4d0e7d(0x153)),_0x4adf95['query']=_[_0x4d0e7d(0x17f)](_0x2df600[_0x4d0e7d(0x169)]),_0x4adf95[_0x4d0e7d(0x17c)]=_[_0x4d0e7d(0x16a)](_0x4adf95['model'],_0x4adf95[_0x4d0e7d(0x169)]),_0x20a1f4[_0x4d0e7d(0x152)]=_[_0x4d0e7d(0x16a)](_0x4adf95['model'],qs['fields'](_0x2df600[_0x4d0e7d(0x169)][_0x4d0e7d(0x163)])),_0x20a1f4[_0x4d0e7d(0x152)]=_0x20a1f4[_0x4d0e7d(0x152)]['length']?_0x20a1f4[_0x4d0e7d(0x152)]:_0x4adf95['model'];typeof _0x2df600[_0x4d0e7d(0x169)][_0x4d0e7d(0x158)]===_0x4d0e7d(0x161)&&(_0x20a1f4[_0x4d0e7d(0x166)]=qs[_0x4d0e7d(0x166)](_0x2df600[_0x4d0e7d(0x169)]['limit']),_0x20a1f4[_0x4d0e7d(0x168)]=qs[_0x4d0e7d(0x168)](_0x2df600[_0x4d0e7d(0x169)][_0x4d0e7d(0x168)]));_0x20a1f4[_0x4d0e7d(0x172)]=qs[_0x4d0e7d(0x17a)](_0x2df600['query']['sort']),_0x20a1f4['where']=qs['filters'](_['pick'](_0x2df600[_0x4d0e7d(0x169)],_0x4adf95[_0x4d0e7d(0x17c)]),_0x1a120a);_0x2df600[_0x4d0e7d(0x169)][_0x4d0e7d(0x159)]&&(_0x20a1f4[_0x4d0e7d(0x15e)]=_[_0x4d0e7d(0x15a)](_0x20a1f4[_0x4d0e7d(0x15e)],{[Op['or']]:_[_0x4d0e7d(0x160)](_0x1a120a,function(_0x245488){const _0x287033=_0x4d0e7d;if(_0x245488[_0x287033(0x155)]!==_0x287033(0x165)){const _0x47f7f6={};return _0x47f7f6[_0x245488[_0x287033(0x153)]]={[Op[_0x287033(0x15c)]]:'%'+_0x2df600[_0x287033(0x169)][_0x287033(0x159)]+'%'},_0x47f7f6;}})}));_0x20a1f4=_[_0x4d0e7d(0x15a)]({},_0x20a1f4,_0x2df600[_0x4d0e7d(0x167)]);const _0x56cfb3={'where':_0x20a1f4['where']};return db[_0x4d0e7d(0x175)][_0x4d0e7d(0x170)](_0x56cfb3)['then'](function(_0x33e3f7){const _0x57cdbc=_0x4d0e7d;return _0x3c1843['count']=_0x33e3f7,_0x2df600['query'][_0x57cdbc(0x17d)]&&(_0x20a1f4[_0x57cdbc(0x14d)]=[{'all':!![]}]),db[_0x57cdbc(0x175)][_0x57cdbc(0x14e)](_0x20a1f4);})[_0x4d0e7d(0x181)](function(_0x5133cb){const _0x503e8d=_0x4d0e7d;return _0x3c1843[_0x503e8d(0x17b)]=_0x5133cb,_0x3c1843;})[_0x4d0e7d(0x181)](respondWithFilteredResult(_0x1a5c29,_0x20a1f4))[_0x4d0e7d(0x14f)](handleError(_0x1a5c29,null));},exports[a230_0x3a0d3f(0x16e)]=function(_0x5c630e,_0x2e58a3){const _0x128e97=a230_0x3a0d3f;let _0x6524a5={'raw':!![],'where':{'id':_0x5c630e[_0x128e97(0x164)]['id']}};const _0x4fdeb9={};return _0x4fdeb9[_0x128e97(0x150)]=_[_0x128e97(0x17f)](db['FaxApplication']['rawAttributes']),_0x4fdeb9[_0x128e97(0x169)]=_[_0x128e97(0x17f)](_0x5c630e[_0x128e97(0x169)]),_0x4fdeb9['filters']=_[_0x128e97(0x16a)](_0x4fdeb9[_0x128e97(0x150)],_0x4fdeb9[_0x128e97(0x169)]),_0x6524a5[_0x128e97(0x152)]=_['intersection'](_0x4fdeb9['model'],qs[_0x128e97(0x163)](_0x5c630e[_0x128e97(0x169)]['fields'])),_0x6524a5['attributes']=_0x6524a5[_0x128e97(0x152)][_0x128e97(0x17e)]?_0x6524a5[_0x128e97(0x152)]:_0x4fdeb9[_0x128e97(0x150)],_0x5c630e[_0x128e97(0x169)][_0x128e97(0x17d)]&&(_0x6524a5['include']=[{'all':!![]}]),_0x6524a5=_[_0x128e97(0x15a)]({},_0x6524a5,_0x5c630e[_0x128e97(0x167)]),db[_0x128e97(0x175)][_0x128e97(0x176)](_0x6524a5)['then'](handleEntityNotFound(_0x2e58a3,null))[_0x128e97(0x181)](respondWithResult(_0x2e58a3,null))['catch'](handleError(_0x2e58a3,null));},exports[a230_0x3a0d3f(0x154)]=function(_0x102ff4,_0x1d23bc){const _0x279a7d=a230_0x3a0d3f;return db[_0x279a7d(0x175)][_0x279a7d(0x154)](_0x102ff4[_0x279a7d(0x173)],{})['then'](respondWithResult(_0x1d23bc,0xc9))[_0x279a7d(0x14f)](handleError(_0x1d23bc,null));},exports[a230_0x3a0d3f(0x14b)]=function(_0x4397e6,_0xadf08f){const _0xde94f9=a230_0x3a0d3f;return _0x4397e6['body']['id']&&delete _0x4397e6[_0xde94f9(0x173)]['id'],db[_0xde94f9(0x175)][_0xde94f9(0x176)]({'where':{'id':_0x4397e6[_0xde94f9(0x164)]['id']}})['then'](handleEntityNotFound(_0xadf08f,null))[_0xde94f9(0x181)](saveUpdates(_0x4397e6[_0xde94f9(0x173)],null))[_0xde94f9(0x181)](respondWithResult(_0xadf08f,null))[_0xde94f9(0x14f)](handleError(_0xadf08f,null));},exports[a230_0x3a0d3f(0x177)]=function(_0x27a24a,_0xef30bf){const _0x84e54d=a230_0x3a0d3f;return db[_0x84e54d(0x175)]['findOne']({'where':{'id':_0x27a24a['params']['id']}})[_0x84e54d(0x181)](handleEntityNotFound(_0xef30bf,null))[_0x84e54d(0x181)](removeEntity(_0xef30bf,null))[_0x84e54d(0x14f)](handleError(_0xef30bf,null));}; \ No newline at end of file diff --git a/server/api/faxApplication/faxApplication.model.js b/server/api/faxApplication/faxApplication.model.js index d6569a5..bb43bef 100644 --- a/server/api/faxApplication/faxApplication.model.js +++ b/server/api/faxApplication/faxApplication.model.js @@ -1 +1 @@ -const a194_0x4be5=['utf8mb4_unicode_ci','define','exports'];(function(_0x5de087,_0x4be5d7){const _0x2d338f=function(_0x3f7c6a){while(--_0x3f7c6a){_0x5de087['push'](_0x5de087['shift']());}};_0x2d338f(++_0x4be5d7);}(a194_0x4be5,0xd1));const a194_0x2d33=function(_0x5de087,_0x4be5d7){_0x5de087=_0x5de087-0x0;let _0x2d338f=a194_0x4be5[_0x5de087];return _0x2d338f;};const _0x1e6556=a194_0x2d33;'use strict';const attributes=require('./faxApplication.attributes');module[_0x1e6556('0x0')]=function(_0x3f7c6a){const _0x1f4c3d=_0x1e6556,_0x208bf6=_0x3f7c6a[_0x1f4c3d('0x2')]('FaxApplication',attributes,{'tableName':'fax_applications','paranoid':![],'indexes':[],'timestamps':!![],'charset':'utf8mb4','collate':_0x1f4c3d('0x1')});return _0x208bf6;}; \ No newline at end of file +const a231_0xdbb3=['exports','./faxApplication.options','function','./faxApplication.attributes','init'];(function(_0x96ac64,_0x5dbd81){const _0xdbb359=function(_0x2806f1){while(--_0x2806f1){_0x96ac64['push'](_0x96ac64['shift']());}};_0xdbb359(++_0x5dbd81);}(a231_0xdbb3,0xf0));const a231_0x2806=function(_0x96ac64,_0x5dbd81){_0x96ac64=_0x96ac64-0x6f;let _0xdbb359=a231_0xdbb3[_0x96ac64];return _0xdbb359;};const a231_0x45b6b7=a231_0x2806;'use strict';const {Model}=require('sequelize'),{attributes}=require(a231_0x45b6b7(0x72)),{options}=require(a231_0x45b6b7(0x70));class FaxApplication extends Model{}function init(_0x565425,_0x55e223){const _0x1d5371=a231_0x45b6b7,_0xde2184=options(_0x565425),_0xcfb01c=typeof _0x55e223===_0x1d5371(0x71)?_0x55e223(_0xde2184):_0xde2184;return FaxApplication[_0x1d5371(0x73)](attributes,_0xcfb01c),FaxApplication;}module[a231_0x45b6b7(0x6f)]['FaxApplication']=FaxApplication,module[a231_0x45b6b7(0x6f)][a231_0x45b6b7(0x73)]=init; \ No newline at end of file diff --git a/server/api/faxApplication/faxApplication.options.js b/server/api/faxApplication/faxApplication.options.js new file mode 100644 index 0000000..3044676 --- /dev/null +++ b/server/api/faxApplication/faxApplication.options.js @@ -0,0 +1 @@ +var a232_0x319d=['utf8mb4_unicode_ci','options','exports'];(function(_0x45464f,_0x259aeb){var _0x319d11=function(_0xf77ea3){while(--_0xf77ea3){_0x45464f['push'](_0x45464f['shift']());}};_0x319d11(++_0x259aeb);}(a232_0x319d,0xdd));var a232_0xf77e=function(_0x45464f,_0x259aeb){_0x45464f=_0x45464f-0x1cb;var _0x319d11=a232_0x319d[_0x45464f];return _0x319d11;};var a232_0x275490=a232_0xf77e;function options(_0x4e2709){var _0x1e95cc=a232_0xf77e;return{'sequelize':_0x4e2709,'tableName':'fax_applications','paranoid':![],'indexes':[],'timestamps':!![],'charset':'utf8mb4','collate':_0x1e95cc(0x1cc)};}module[a232_0x275490(0x1cb)][a232_0x275490(0x1cd)]=options; \ No newline at end of file diff --git a/server/api/faxApplication/faxApplication.rpc.js b/server/api/faxApplication/faxApplication.rpc.js index 3316414..c2721af 100644 --- a/server/api/faxApplication/faxApplication.rpc.js +++ b/server/api/faxApplication/faxApplication.rpc.js @@ -1 +1 @@ -const a195_0x346f=['catch','body','error','update','debug','options','rpc','UpdateFaxApplication','message','stringify','raw','info','FaxApplication','limit','../../mysqldb','../../config/logger'];(function(_0x515504,_0x346f61){const _0x1a79cf=function(_0x30af94){while(--_0x30af94){_0x515504['push'](_0x515504['shift']());}};_0x1a79cf(++_0x346f61);}(a195_0x346f,0xaf));const a195_0x1a79=function(_0x515504,_0x346f61){_0x515504=_0x515504-0x0;let _0x1a79cf=a195_0x346f[_0x515504];return _0x1a79cf;};const _0x160177=a195_0x1a79;'use strict';const db=require(_0x160177('0xf'))['db'],logger=require(_0x160177('0x0'))(_0x160177('0x7'));exports[_0x160177('0x8')]=function(_0x30af94){const _0x29e76f=this;return new Promise(function(_0x1823cb,_0x50468a){const _0x557f8b=a195_0x1a79;return db[_0x557f8b('0xd')][_0x557f8b('0x4')](_0x30af94[_0x557f8b('0x2')],{'raw':_0x30af94['options']?_0x30af94[_0x557f8b('0x6')][_0x557f8b('0xb')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x30af94['options']?_0x30af94['options']['where']||null:null,'attributes':_0x30af94[_0x557f8b('0x6')]?_0x30af94['options']['attributes']||null:null,'limit':_0x30af94[_0x557f8b('0x6')]?_0x30af94[_0x557f8b('0x6')][_0x557f8b('0xe')]||null:null})['then'](function(_0x4438db){const _0x5a8bb8=_0x557f8b;logger[_0x5a8bb8('0xc')](_0x5a8bb8('0x8'),_0x30af94),logger[_0x5a8bb8('0x5')]('UpdateFaxApplication',_0x30af94,JSON[_0x5a8bb8('0xa')](_0x4438db)),_0x1823cb(_0x4438db);})[_0x557f8b('0x1')](function(_0x364657){const _0x176294=_0x557f8b;logger['error'](_0x176294('0x8'),_0x364657[_0x176294('0x9')],_0x30af94),_0x50468a(_0x29e76f[_0x176294('0x3')](0x1f4,_0x364657['message']));});});}; \ No newline at end of file +const a233_0x248c=['stringify','info','body','attributes','options','../../config/logger','where','FaxApplication','error','rpc','UpdateFaxApplication','then','debug','raw'];(function(_0x2bebaf,_0x1c9a55){const _0x248c94=function(_0x3f5fc1){while(--_0x3f5fc1){_0x2bebaf['push'](_0x2bebaf['shift']());}};_0x248c94(++_0x1c9a55);}(a233_0x248c,0xd5));const a233_0x3f5f=function(_0x2bebaf,_0x1c9a55){_0x2bebaf=_0x2bebaf-0x97;let _0x248c94=a233_0x248c[_0x2bebaf];return _0x248c94;};const a233_0x3ce5b2=a233_0x3f5f;'use strict';const db=require('../../mysqldb')['db'],logger=require(a233_0x3ce5b2(0x99))(a233_0x3ce5b2(0x9d));exports[a233_0x3ce5b2(0x9e)]=function(_0x339c0a){const _0x537a9b=this;return new Promise(function(_0x44995e,_0xcc685c){const _0x328d7d=a233_0x3f5f;return db[_0x328d7d(0x9b)]['update'](_0x339c0a[_0x328d7d(0xa4)],{'raw':_0x339c0a[_0x328d7d(0x98)]?_0x339c0a[_0x328d7d(0x98)][_0x328d7d(0xa1)]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x339c0a[_0x328d7d(0x98)]?_0x339c0a[_0x328d7d(0x98)][_0x328d7d(0x9a)]||null:null,'attributes':_0x339c0a['options']?_0x339c0a[_0x328d7d(0x98)][_0x328d7d(0x97)]||null:null,'limit':_0x339c0a[_0x328d7d(0x98)]?_0x339c0a[_0x328d7d(0x98)]['limit']||null:null})[_0x328d7d(0x9f)](function(_0x5ede0a){const _0x5a3eb4=_0x328d7d;logger[_0x5a3eb4(0xa3)]('UpdateFaxApplication',_0x339c0a),logger[_0x5a3eb4(0xa0)](_0x5a3eb4(0x9e),_0x339c0a,JSON[_0x5a3eb4(0xa2)](_0x5ede0a)),_0x44995e(_0x5ede0a);})['catch'](function(_0x330d5b){const _0x4fe0f6=_0x328d7d;logger[_0x4fe0f6(0x9c)](_0x4fe0f6(0x9e),_0x330d5b['message'],_0x339c0a),_0xcc685c(_0x537a9b[_0x4fe0f6(0x9c)](0x1f4,_0x330d5b['message']));});});}; \ No newline at end of file diff --git a/server/api/faxApplication/index.js b/server/api/faxApplication/index.js index 8cc0c18..6322d41 100644 --- a/server/api/faxApplication/index.js +++ b/server/api/faxApplication/index.js @@ -1 +1 @@ -const a196_0x9e2b=['create','get','express','exports','index','destroy','post','Router','put','isAuthenticated','/:id','show','delete'];(function(_0x24eaf4,_0x9e2b52){const _0x57fe02=function(_0x39df58){while(--_0x39df58){_0x24eaf4['push'](_0x24eaf4['shift']());}};_0x57fe02(++_0x9e2b52);}(a196_0x9e2b,0x16d));const a196_0x57fe=function(_0x24eaf4,_0x9e2b52){_0x24eaf4=_0x24eaf4-0x0;let _0x57fe02=a196_0x9e2b[_0x24eaf4];return _0x57fe02;};const _0x48b532=a196_0x57fe;'use strict';const express=require(_0x48b532('0x1')),router=express[_0x48b532('0x6')](),auth=require('../../components/auth/service'),controller=require('./faxApplication.controller');router[_0x48b532('0x0')]('/',auth['isAuthenticated'](),controller[_0x48b532('0x3')]),router['get'](_0x48b532('0x9'),auth[_0x48b532('0x8')](),controller[_0x48b532('0xa')]),router[_0x48b532('0x5')]('/',auth[_0x48b532('0x8')](),controller[_0x48b532('0xc')]),router[_0x48b532('0x7')]('/:id',auth[_0x48b532('0x8')](),controller['update']),router[_0x48b532('0xb')](_0x48b532('0x9'),auth['isAuthenticated'](),controller[_0x48b532('0x4')]),module[_0x48b532('0x2')]=router; \ No newline at end of file +const a234_0x6515=['express','show','delete','/:id','./faxApplication.controller','update','exports','destroy','create','../../components/auth/service','index','Router','get','put','isAuthenticated','post'];(function(_0x5018ba,_0x4dc10){const _0x6515ac=function(_0x4452c8){while(--_0x4452c8){_0x5018ba['push'](_0x5018ba['shift']());}};_0x6515ac(++_0x4dc10);}(a234_0x6515,0x91));const a234_0x4452=function(_0x5018ba,_0x4dc10){_0x5018ba=_0x5018ba-0xd0;let _0x6515ac=a234_0x6515[_0x5018ba];return _0x6515ac;};const a234_0x3eadf8=a234_0x4452;'use strict';const express=require(a234_0x3eadf8(0xdf)),router=express[a234_0x3eadf8(0xda)](),auth=require(a234_0x3eadf8(0xd8)),controller=require(a234_0x3eadf8(0xd3));router['get']('/',auth[a234_0x3eadf8(0xdd)](),controller[a234_0x3eadf8(0xd9)]),router[a234_0x3eadf8(0xdb)](a234_0x3eadf8(0xd2),auth[a234_0x3eadf8(0xdd)](),controller[a234_0x3eadf8(0xd0)]),router[a234_0x3eadf8(0xde)]('/',auth[a234_0x3eadf8(0xdd)](),controller[a234_0x3eadf8(0xd7)]),router[a234_0x3eadf8(0xdc)]('/:id',auth[a234_0x3eadf8(0xdd)](),controller[a234_0x3eadf8(0xd4)]),router[a234_0x3eadf8(0xd1)](a234_0x3eadf8(0xd2),auth['isAuthenticated'](),controller[a234_0x3eadf8(0xd6)]),module[a234_0x3eadf8(0xd5)]=router; \ No newline at end of file diff --git a/server/api/faxInteraction/faxInteraction.attributes.js b/server/api/faxInteraction/faxInteraction.attributes.js index 5b5f512..d06900f 100644 --- a/server/api/faxInteraction/faxInteraction.attributes.js +++ b/server/api/faxInteraction/faxInteraction.attributes.js @@ -1 +1 @@ -const a197_0x13ed=['BOOLEAN','STRING','sequelize','out','ENUM','exports'];(function(_0x50976a,_0x13edd1){const _0x26a8be=function(_0x34bac1){while(--_0x34bac1){_0x50976a['push'](_0x50976a['shift']());}};_0x26a8be(++_0x13edd1);}(a197_0x13ed,0x126));const a197_0x26a8=function(_0x50976a,_0x13edd1){_0x50976a=_0x50976a-0x0;let _0x26a8be=a197_0x13ed[_0x50976a];return _0x26a8be;};const _0x50ff13=a197_0x26a8;'use strict';const Sequelize=require(_0x50ff13('0x2'));module[_0x50ff13('0x5')]={'closed':{'type':Sequelize[_0x50ff13('0x0')],'defaultValue':![]},'closedAt':{'type':Sequelize['DATE']},'disposition':{'type':Sequelize['STRING']},'secondDisposition':{'type':Sequelize[_0x50ff13('0x1')]},'thirdDisposition':{'type':Sequelize[_0x50ff13('0x1')]},'note':{'type':Sequelize[_0x50ff13('0x1')]},'read1stAt':{'type':Sequelize['DATE']},'fax':{'type':Sequelize[_0x50ff13('0x1')]},'firstMsgDirection':{'type':Sequelize[_0x50ff13('0x4')]('in',_0x50ff13('0x3')),'defaultValue':'in','allowNull':![]},'lastMsgAt':{'type':Sequelize['DATE']},'lastMsgDirection':{'type':Sequelize['ENUM']('in',_0x50ff13('0x3')),'defaultValue':'in','allowNull':![]}}; \ No newline at end of file +const a235_0x2849=['ENUM','STRING','DATE','BOOLEAN','exports','out'];(function(_0x183906,_0x33e6d5){const _0x284930=function(_0x15c67e){while(--_0x15c67e){_0x183906['push'](_0x183906['shift']());}};_0x284930(++_0x33e6d5);}(a235_0x2849,0xf5));const a235_0x15c6=function(_0x183906,_0x33e6d5){_0x183906=_0x183906-0x86;let _0x284930=a235_0x2849[_0x183906];return _0x284930;};const a235_0x122775=a235_0x15c6;'use strict';const {DataTypes}=require('sequelize'),attributes={'closed':{'type':DataTypes[a235_0x122775(0x8a)],'defaultValue':![]},'closedAt':{'type':DataTypes[a235_0x122775(0x89)]},'disposition':{'type':DataTypes['STRING']},'secondDisposition':{'type':DataTypes[a235_0x122775(0x88)]},'thirdDisposition':{'type':DataTypes[a235_0x122775(0x88)]},'note':{'type':DataTypes[a235_0x122775(0x88)]},'read1stAt':{'type':DataTypes[a235_0x122775(0x89)]},'fax':{'type':DataTypes[a235_0x122775(0x88)]},'firstMsgDirection':{'type':DataTypes['ENUM']('in',a235_0x122775(0x86)),'defaultValue':'in','allowNull':![]},'lastMsgAt':{'type':DataTypes['DATE']},'lastMsgDirection':{'type':DataTypes[a235_0x122775(0x87)]('in',a235_0x122775(0x86)),'defaultValue':'in','allowNull':![]}};module[a235_0x122775(0x8b)]['attributes']=attributes; \ No newline at end of file diff --git a/server/api/faxInteraction/faxInteraction.controller.js b/server/api/faxInteraction/faxInteraction.controller.js index a71d8f7..485658e 100644 --- a/server/api/faxInteraction/faxInteraction.controller.js +++ b/server/api/faxInteraction/faxInteraction.controller.js @@ -1 +1 @@ -const a198_0x568a=['buildExpression','clone','join','getFullTextValue','createWriteStream','rimraf','index','i.id','search','filter','model','rawAttributes','`\x20=\x200','destroy','value','query','count','Owner.internal','tools_tags','c.id\x20=\x20i.ContactId\x20AND\x20c.deletedAt\x20IS\x20NULL','u.fullname','server','i.*','field','findOne','a.key','resolve','CONCAT_WS(\x27\x20\x27,\x20o.name,\x20o.fullname)\x20LIKE\x20?','map','fax_interactions','status','forEach','length','CONCAT(\x27,\x27,\x20`TagIds`,\x20\x27,\x27)\x20LIKE\x20?','then','include','omit','isEmpty','MATCH\x20(c.firstName,\x20c.lastName,\x20c.phone,\x20c.mobile,\x20c.fax,\x20c.email)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','addMessage','FaxMessage','json','Contact.email','Contact.lastName','api','all','download','isArray','intersection','text','user','groupBy','a.id\x20=\x20i.FaxAccountId','SUM(me.read\x20=\x200\x20AND\x20me.direction\x20=\x20\x27in\x27)','GROUP_CONCAT(DISTINCT\x20t.id)','read','me.FaxInteractionId\x20=\x20i.id','end','start','attributes','files','Account.key','c.email','concat','fax_messages','CONCAT(c.firstName,\x20\x27\x20\x27,\x20c.lastName)\x20LIKE\x20?','pick','select','../../config/logger','ids','conditions','emit','rows','fullname','group','Owner.fullname','c.firstName','i.FaxAccountId\x20IS\x20NULL','isNumeric','includeAll','a.mandatoryDisposition','Contact.phone','i.FaxAccountId\x20IS\x20NOT\x20NULL','having','faxInteractionTags:save','sequelize','SELECT','undefined','QueryTypes','c.mobile','find','stack','Users','filters','get','create','left_join','format','root','removeTags','Content-Range','it.FaxInteractionId\x20=\x20i.id','createdAt','User','body','i.FaxAccountId\x20IN\x20?','FaxInteraction','log','push','squel','tag','`\x20>\x200','user_has_fax_interactions','i.fax\x20LIKE\x20?','Contact.mobile','compact','\x20IS\x20NULL','send','c.phone','YYYY-MM-DD\x20HH:mm:ss','cm_contacts','FaxInteractionId','pipe','sendStatus','type','\x20=\x20?','nolimit','`unreadMessages`\x20=\x200','Tag','color','offset','users','findAll','createReadStream','Messages','like','catch','update','$gte','options','limit','name','util','TagIds','./faxInteraction.socket','toString','Contact','addTags','../../components/parsers/advancedSearch','Tags','merge','unreadMessages','Attachment','moment','../../rediscache','$lte','operator','params','parse','set','split','key','transcript-%d-%s.zip','unix','order','sqlOperator','o.internal','basename','keys','journey','describe','c.fax','ContactId','`unreadMessages`\x20>\x200','../../components/parsers/qs','parseSearch','i.id\x20LIKE\x20?','FaxAccountId','from','error','mkdirSync','o.id\x20=\x20i.UserId','fax_interaction_has_tags','../../config/environment','sort','fields','Account.mandatoryDisposition','UserId','getFaxAccounts','where','lodash'];(function(_0x40b0a3,_0x568a56){const _0x18a57c=function(_0x439862){while(--_0x439862){_0x40b0a3['push'](_0x40b0a3['shift']());}};_0x18a57c(++_0x568a56);}(a198_0x568a,0x1d6));const a198_0x18a5=function(_0x40b0a3,_0x568a56){_0x40b0a3=_0x40b0a3-0x0;let _0x18a57c=a198_0x568a[_0x40b0a3];return _0x18a57c;};const _0x5e1c48=a198_0x18a5;'use strict';const rimraf=require(_0x5e1c48('0x6c')),zipdir=require('zip-dir'),moment=require(_0x5e1c48('0x41')),util=require(_0x5e1c48('0x36')),path=require('path'),fs=require('fs'),_=require(_0x5e1c48('0x66')),squel=require(_0x5e1c48('0x15')),{getSocket}=require(_0x5e1c48('0x42')),socket=getSocket(),qs=require(_0x5e1c48('0x56')),as=require(_0x5e1c48('0x3c')),logger=require(_0x5e1c48('0xab'))(_0x5e1c48('0x93')),config=require(_0x5e1c48('0x5f')),db=require('../../mysqldb')['db'],{Op}=require(_0x5e1c48('0xbc'));require(_0x5e1c48('0x38'))['register'](socket);function respondWithStatusCode(_0x439862,_0x49227f){return _0x49227f=_0x49227f||0xcc,function(_0x568cde){const _0x585c4f=a198_0x18a5;if(_0x568cde)return _0x439862[_0x585c4f('0x23')](_0x49227f);return _0x439862['status'](_0x49227f)[_0x585c4f('0xa0')]();};}function respondWithResult(_0xb970b0,_0x7724d5){return _0x7724d5=_0x7724d5||0xc8,function(_0x213cf4){const _0x263eb9=a198_0x18a5;if(_0x213cf4)return _0xb970b0[_0x263eb9('0x85')](_0x7724d5)[_0x263eb9('0x90')](_0x213cf4);};}function respondWithFilteredResult(_0x275b17,_0x1269f4){return function(_0x3e0817){const _0x5f1795=a198_0x18a5;if(_0x3e0817){const _0x355f68=_0x3e0817[_0x5f1795('0x77')],_0xac478e=_0x1269f4[_0x5f1795('0x2a')];let _0x58ab09=_0x1269f4[_0x5f1795('0x2a')]+_0x1269f4[_0x5f1795('0x34')],_0x1ac4d8;return _0x58ab09>=_0x355f68?(_0x58ab09=_0x355f68,_0x1ac4d8=0xc8):_0x1ac4d8=0xce,_0x275b17['status'](_0x1ac4d8),_0x275b17[_0x5f1795('0x47')](_0x5f1795('0xc'),_0xac478e+'-'+_0x58ab09+'/'+_0x355f68)['json'](_0x3e0817);}return null;};}function saveUpdates(_0x5f172b){return function(_0x41f215){const _0x661ff2=a198_0x18a5;if(_0x41f215)return _0x41f215[_0x661ff2('0x31')](_0x5f172b)[_0x661ff2('0x89')](function(_0x36ad7d){return _0x36ad7d;});return null;};}function removeEntity(_0x3bd1a6){return function(_0x3e692a){const _0x4c1ee6=a198_0x18a5;if(_0x3e692a)return _0x3e692a['destroy']()[_0x4c1ee6('0x89')](function(){const _0x307473=_0x4c1ee6;_0x3bd1a6[_0x307473('0x85')](0xcc)[_0x307473('0xa0')]();});};}function handleEntityNotFound(_0x11c8e8){return function(_0xdc9dfe){return!_0xdc9dfe&&_0x11c8e8['sendStatus'](0x194),_0xdc9dfe;};}function handleError(_0x41b5c4,_0x232e55){return _0x232e55=_0x232e55||0x1f4,function(_0x181332){const _0x4debd5=a198_0x18a5;logger[_0x4debd5('0x5b')](_0x181332[_0x4debd5('0x3')]),_0x181332[_0x4debd5('0x35')]&&delete _0x181332[_0x4debd5('0x35')],_0x41b5c4[_0x4debd5('0x85')](_0x232e55)[_0x4debd5('0x1d')](_0x181332);};}function getInteractionUsers(_0x3ecd00,_0x1849f4){return new Promise(function(_0x3d8638,_0x46ec59){const _0x4d729e=a198_0x18a5;try{_0x1849f4[_0x3ecd00['id']]&&(_0x3ecd00[_0x4d729e('0x4')]=_[_0x4d729e('0x83')](_0x1849f4[_0x3ecd00['id']],function(_0x45fce8){const _0xb77b2d=_0x4d729e;return{'id':_0x45fce8['id'],'fullname':_0x45fce8[_0xb77b2d('0xb0')]};}));}catch(_0x32858f){_0x46ec59(_0x32858f);}_0x3d8638(_0x3ecd00);});}function getInteractionTags(_0x5eda1f,_0x377cea){return new Promise(function(_0x399021,_0x11da2f){const _0x36d904=a198_0x18a5;try{_0x5eda1f[_0x36d904('0x37')]&&(_0x5eda1f[_0x36d904('0x3d')]=[],_0x5eda1f['TagIds']['split'](',')[_0x36d904('0x86')](function(_0x418c93){const _0x437eda=_0x36d904;_0x5eda1f[_0x437eda('0x3d')][_0x437eda('0x14')](_0x377cea[_0x418c93]);})),delete _0x5eda1f['TagIds'];}catch(_0x20296d){_0x11da2f(_0x20296d);}_0x399021(_0x5eda1f);});}function updateFaxInteraction(_0x449651,_0x1447a4,_0x3e1358){return new Promise(function(_0x587432,_0x4fb11f){const _0x336040=a198_0x18a5;return getInteractionUsers(_0x449651,_0x3e1358)[_0x336040('0x89')](function(_0x6dd326){return getInteractionTags(_0x6dd326,_0x1447a4);})[_0x336040('0x89')](function(_0x586ecd){_0x587432(_0x586ecd);})[_0x336040('0x30')](function(_0x37d20d){_0x4fb11f(_0x37d20d);});});}exports[_0x5e1c48('0x6d')]=function(_0x49fc36,_0x1d6475){const _0x5b1fdf=_0x5e1c48,_0x5c1aa2={},_0x18e160={},_0x2a5559={'count':0x0,'rows':[]},_0x5bd27d=_[_0x5b1fdf('0x83')](db[_0x5b1fdf('0x12')][_0x5b1fdf('0x72')],function(_0x50a3f5){const _0xcbde2f=_0x5b1fdf;return{'name':_0x50a3f5['fieldName'],'type':_0x50a3f5[_0xcbde2f('0x24')][_0xcbde2f('0x49')]};});_0x18e160['model']=_[_0x5b1fdf('0x83')](_0x5bd27d,_0x5b1fdf('0x35')),_0x18e160[_0x5b1fdf('0x76')]=_['keys'](_0x49fc36[_0x5b1fdf('0x76')]),_0x18e160[_0x5b1fdf('0x5')]=_['intersection'](_0x18e160['model'],_0x18e160[_0x5b1fdf('0x76')]),_0x5c1aa2['attributes']=_[_0x5b1fdf('0x97')](_0x18e160[_0x5b1fdf('0x71')],qs[_0x5b1fdf('0x61')](_0x49fc36[_0x5b1fdf('0x76')]['fields'])),_0x5c1aa2['attributes']=_0x5c1aa2['attributes'][_0x5b1fdf('0x87')]?_0x5c1aa2[_0x5b1fdf('0xa2')]:_0x18e160[_0x5b1fdf('0x71')];typeof _0x49fc36[_0x5b1fdf('0x76')][_0x5b1fdf('0x26')]===_0x5b1fdf('0xbe')&&(_0x5c1aa2['limit']=qs['limit'](_0x49fc36[_0x5b1fdf('0x76')][_0x5b1fdf('0x34')]),_0x5c1aa2[_0x5b1fdf('0x2a')]=qs['offset'](_0x49fc36[_0x5b1fdf('0x76')][_0x5b1fdf('0x2a')]));_0x5c1aa2[_0x5b1fdf('0x4c')]=qs[_0x5b1fdf('0x60')](_0x49fc36[_0x5b1fdf('0x76')]['sort']),_0x5c1aa2[_0x5b1fdf('0x65')]=qs[_0x5b1fdf('0x5')](_['pick'](_0x49fc36[_0x5b1fdf('0x76')],_0x18e160[_0x5b1fdf('0x5')]),_0x5bd27d);let _0x73e4ad=[];const _0x121e91=squel[_0x5b1fdf('0xaa')]()[_0x5b1fdf('0x7e')]('id')['field']('name')[_0x5b1fdf('0x7e')](_0x5b1fdf('0x29'))[_0x5b1fdf('0x5a')]('tools_tags'),_0x1f1487=squel['select']()[_0x5b1fdf('0x7e')]('u.id')['field'](_0x5b1fdf('0x7b'))[_0x5b1fdf('0x7e')]('ui.FaxInteractionId')['from'](_0x5b1fdf('0x18'),'ui')[_0x5b1fdf('0x8')]('users','u','u.id\x20=\x20ui.UserId'),_0x59b96e=squel['select']()[_0x5b1fdf('0x5a')](_0x5b1fdf('0x84'),'i')[_0x5b1fdf('0x8')](_0x5b1fdf('0x20'),'c',_0x5b1fdf('0x7a'))[_0x5b1fdf('0x8')](_0x5b1fdf('0x2b'),'o',_0x5b1fdf('0x5d'))[_0x5b1fdf('0x8')]('fax_accounts','a',_0x5b1fdf('0x9b'))['left_join'](_0x5b1fdf('0xa7'),'me',_0x5b1fdf('0x9f'))['left_join'](_0x5b1fdf('0x5e'),'it',_0x5b1fdf('0xd'))[_0x5b1fdf('0x8')](_0x5b1fdf('0x79'),'t','t.id\x20=\x20it.TagId'),_0xcd4b9d=squel['expr']();let _0x12dd82=[];const _0x44c615=squel['expr']();let _0x9428ae;if(_0x49fc36['query']['search']){_0x9428ae=as[_0x5b1fdf('0x57')](_0x49fc36[_0x5b1fdf('0x76')][_0x5b1fdf('0x6f')]);const _0x4c3663=_0x9428ae[_0x5b1fdf('0x4d')];for(let _0x14f3a0=0x0;_0x14f3a0<_0x9428ae[_0x5b1fdf('0xad')][_0x5b1fdf('0x87')];_0x14f3a0++){const _0x22fc28=_0x9428ae[_0x5b1fdf('0xad')][_0x14f3a0],_0x5031c3='i';let _0x2add74,_0x491b07=_[_0x5b1fdf('0x2')](_0x5bd27d,[_0x5b1fdf('0x35'),_0x22fc28[_0x5b1fdf('0x7e')]]);if(!_0x491b07)switch(_0x22fc28[_0x5b1fdf('0x7e')]){case _0x5b1fdf('0x3f'):_0x22fc28['value']==0x1?_0x59b96e[_0x5b1fdf('0xba')]('`'+_0x22fc28[_0x5b1fdf('0x7e')]+_0x5b1fdf('0x73')):_0x59b96e['having']('`'+_0x22fc28['field']+_0x5b1fdf('0x17'));break;case _0x5b1fdf('0x3a'):if(_0x22fc28[_0x5b1fdf('0x44')]==='$substring'){if(_0x22fc28['value'][_0x5b1fdf('0x48')]('\x20')['length']>0x1)_0xcd4b9d[_0x4c3663](_0x5b1fdf('0x8d'),qs[_0x5b1fdf('0x6a')](_0x22fc28[_0x5b1fdf('0x75')]),null);else{const _0x4513ea='%'+_0x22fc28[_0x5b1fdf('0x75')]+'%';_0xcd4b9d[_0x4c3663]('c.firstName\x20LIKE\x20?\x20OR\x20c.lastName\x20LIKE\x20?\x20OR\x20c.email\x20LIKE\x20?',_0x4513ea,_0x4513ea,_0x4513ea);}}else _0x491b07=_[_0x5b1fdf('0x2')](_0x5bd27d,[_0x5b1fdf('0x35'),_0x5b1fdf('0x54')]),_0x22fc28[_0x5b1fdf('0x7e')]=_0x5b1fdf('0x54'),_0x2add74=as[_0x5b1fdf('0x67')](_0x5031c3,_0x491b07[_0x5b1fdf('0x24')],_0x22fc28),_0xcd4b9d[_0x4c3663](_0x2add74[_0x5b1fdf('0x98')],_0x2add74[_0x5b1fdf('0x75')][_0x5b1fdf('0xa1')],_0x2add74[_0x5b1fdf('0x75')][_0x5b1fdf('0xa0')]);break;case _0x5b1fdf('0x28'):{const _0x3e24a7=_0x22fc28[_0x5b1fdf('0x75')]['split'](',')[_0x5b1fdf('0x83')](function(_0x17315f){return Number(_0x17315f);});_0x3e24a7['forEach'](function(_0x1ca956){const _0x4312c3=_0x5b1fdf;_0x44c615['or'](_0x4312c3('0x88'),'%,'+_0x1ca956+',%');}),_0x12dd82=_['union'](_0x12dd82,_0x3e24a7);}break;case _0x5b1fdf('0xf'):_0x22fc28[_0x5b1fdf('0x44')]==='$substring'?_0xcd4b9d[_0x4c3663](_0x5b1fdf('0x82'),'%'+_0x22fc28[_0x5b1fdf('0x75')]+'%',null):(_0x491b07=_[_0x5b1fdf('0x2')](_0x5bd27d,[_0x5b1fdf('0x35'),'UserId']),_0x22fc28[_0x5b1fdf('0x7e')]=_0x5b1fdf('0x63'),_0x2add74=as[_0x5b1fdf('0x67')](_0x5031c3,_0x491b07['type'],_0x22fc28),_0xcd4b9d[_0x4c3663](_0x2add74['text'],_0x2add74['value'][_0x5b1fdf('0xa1')],_0x2add74[_0x5b1fdf('0x75')]['end']));break;case'body':_0x2add74=as['buildExpression']('me',null,_0x22fc28),_0xcd4b9d[_0x4c3663](_0x2add74[_0x5b1fdf('0x98')],_0x2add74['value']['start'],_0x2add74[_0x5b1fdf('0x75')][_0x5b1fdf('0xa0')]);break;}else _0x2add74=as[_0x5b1fdf('0x67')](_0x5031c3,_0x491b07[_0x5b1fdf('0x24')],_0x22fc28),_0xcd4b9d[_0x4c3663](_0x2add74[_0x5b1fdf('0x98')],_0x2add74[_0x5b1fdf('0x75')]['start'],_0x2add74[_0x5b1fdf('0x75')]['end']);}}else{const _0x951619=_(_0x49fc36[_0x5b1fdf('0x76')])['keys']()[_0x5b1fdf('0x83')](function(_0x2464cc){const _0x42a041=_0x5b1fdf;return _['some'](_0x5bd27d,[_0x42a041('0x35'),_0x2464cc])?_0x2464cc:undefined;})[_0x5b1fdf('0x1b')]()[_0x5b1fdf('0x75')]();!_[_0x5b1fdf('0x8c')](_0x951619)&&_0x951619[_0x5b1fdf('0x86')](function(_0x28d506){const _0x30a9db=_0x5b1fdf;if(_0x28d506===_0x30a9db('0x59'))_0x59b96e['where'](_0x30a9db('0x11'),[][_0x30a9db('0xa6')](_0x49fc36[_0x30a9db('0x76')][_0x28d506]));else{if(_0x28d506===_0x30a9db('0xe')){const _0x54caf3=JSON[_0x30a9db('0x46')](_0x49fc36[_0x30a9db('0x76')][_0x28d506])[_0x30a9db('0x32')],_0x201ba4=JSON[_0x30a9db('0x46')](_0x49fc36[_0x30a9db('0x76')][_0x28d506])[_0x30a9db('0x43')];_0x59b96e[_0x30a9db('0x65')]('i.createdAt\x20BETWEEN\x20?\x20AND\x20?',_0x54caf3,_0x201ba4);}else _0x49fc36[_0x30a9db('0x76')][_0x28d506]==='null'?_0x59b96e[_0x30a9db('0x65')]('i.'+_0x28d506+_0x30a9db('0x1c')):_0x59b96e[_0x30a9db('0x65')]('i.'+_0x28d506+_0x30a9db('0x25'),_0x49fc36['query'][_0x28d506]);}});_0x49fc36[_0x5b1fdf('0x76')][_0x5b1fdf('0x9e')]&&(_0x49fc36['query']['read']==0x1?_0x59b96e[_0x5b1fdf('0xba')](_0x5b1fdf('0x27')):_0x59b96e[_0x5b1fdf('0xba')](_0x5b1fdf('0x55')));_0x49fc36['query'][_0x5b1fdf('0x16')]&&(_0x12dd82=_[_0x5b1fdf('0x96')](_0x49fc36[_0x5b1fdf('0x76')][_0x5b1fdf('0x16')])?_0x49fc36[_0x5b1fdf('0x76')][_0x5b1fdf('0x16')]:new Array(_0x49fc36['query']['tag']),_0x12dd82[_0x5b1fdf('0x86')](function(_0x30d94d){const _0x8164d5=_0x5b1fdf;_0x44c615['or'](_0x8164d5('0x88'),'%,'+_0x30d94d+',%');}));if(_0x49fc36[_0x5b1fdf('0x76')]['filter']){const _0x17fe41=_0x49fc36[_0x5b1fdf('0x76')][_0x5b1fdf('0x70')]['replace']('\x5c','\x5c\x5c')['replace'](/'/g,'\x27\x27');qs[_0x5b1fdf('0xb5')](_0x17fe41)&&_0xcd4b9d['or'](_0x5b1fdf('0x58'),_0x17fe41+'%')['or'](_0x5b1fdf('0x19'),_0x17fe41+'%'),_0xcd4b9d['or'](_0x5b1fdf('0xa8'),_0x17fe41+'%');}}_0x59b96e[_0x5b1fdf('0x65')](_0xcd4b9d),_0x59b96e[_0x5b1fdf('0xb1')](_0x5b1fdf('0x6e'));let _0x403e12={'type':db['Sequelize'][_0x5b1fdf('0x0')][_0x5b1fdf('0xbd')],'raw':!![]};const _0x422dfa=_0x59b96e[_0x5b1fdf('0x68')]();_0x422dfa[_0x5b1fdf('0x7e')](_0x5b1fdf('0x6e')),_0x422dfa[_0x5b1fdf('0x7e')](_0x5b1fdf('0x9c'),_0x5b1fdf('0x3f')),_0x5c1aa2['order']&&_0x5c1aa2[_0x5b1fdf('0x4c')][_0x5b1fdf('0x86')](function(_0x1279d9){const _0x730623=_0x5b1fdf;_0x59b96e[_0x730623('0x4c')]('i.'+_0x1279d9[0x0],_0x1279d9[0x1]==='DESC'?![]:!![]);}),!_[_0x5b1fdf('0x8c')](_0x12dd82)&&(_0x59b96e['having'](_0x44c615),_0x422dfa[_0x5b1fdf('0x65')]('t.id\x20IN\x20?',_0x12dd82)),Promise[_0x5b1fdf('0x81')]()[_0x5b1fdf('0x89')](function(){const _0x23334d=_0x5b1fdf;if(!_0x9428ae){if(_0x49fc36[_0x23334d('0x76')][_0x23334d('0x59')]||_0x49fc36[_0x23334d('0x76')][_0x23334d('0x51')])return;_0x422dfa[_0x23334d('0x65')](_0x23334d('0xb9')),_0x59b96e[_0x23334d('0x65')]('i.FaxAccountId\x20IS\x20NOT\x20NULL');return;}return _0x49fc36[_0x23334d('0x99')][_0x23334d('0x64')]({'attributes':['id'],'raw':!![]})['then'](function(_0x358de4){const _0x579f26=_0x23334d;_[_0x579f26('0x8c')](_0x358de4)?(_0x422dfa[_0x579f26('0x65')]('i.FaxAccountId\x20IS\x20NULL'),_0x59b96e['where'](_0x579f26('0xb4'))):(_0x422dfa['where'](_0x579f26('0x11'),_['map'](_0x358de4,'id')),_0x59b96e['where'](_0x579f26('0x11'),_[_0x579f26('0x83')](_0x358de4,'id')));});})[_0x5b1fdf('0x89')](function(){const _0x1cdd84=_0x5b1fdf;db[_0x1cdd84('0xbc')]['query'](_0x422dfa[_0x1cdd84('0x39')](),_0x403e12)[_0x1cdd84('0x89')](function(_0x57e5eb){const _0x3cc49c=_0x1cdd84;_0x2a5559['count']=_0x57e5eb[_0x3cc49c('0x87')];if(_0x2a5559['count']===0x0)return[];return db['sequelize'][_0x3cc49c('0x76')](_0x121e91['toString'](),_0x403e12)[_0x3cc49c('0x89')](function(_0x314201){const _0x3881d4=_0x3cc49c;_0x73e4ad=_['keyBy'](_0x314201,'id'),_0x403e12=_[_0x3881d4('0x3e')](_0x403e12,{'model':db['FaxInteraction'],'mapToModel':!![],'raw':!![],'nest':!![]});_0x49fc36['query'][_0x3881d4('0x61')]?_0x5c1aa2['attributes']['forEach'](function(_0x1029ec){_0x59b96e['field']('i.'+_0x1029ec);}):(_0x59b96e['field'](_0x3881d4('0x9c'),_0x3881d4('0x3f')),_0x59b96e[_0x3881d4('0x7e')](_0x3881d4('0x80'),_0x3881d4('0xa4')),_0x59b96e[_0x3881d4('0x7e')](_0x3881d4('0xb7'),_0x3881d4('0x62')),_0x59b96e[_0x3881d4('0x7e')](_0x3881d4('0x7d')),_0x59b96e[_0x3881d4('0x7e')](_0x3881d4('0xb3'),'Contact.firstName'),_0x59b96e[_0x3881d4('0x7e')]('c.lastName',_0x3881d4('0x92')),_0x59b96e[_0x3881d4('0x7e')](_0x3881d4('0xa5'),_0x3881d4('0x91')),_0x59b96e[_0x3881d4('0x7e')](_0x3881d4('0x1e'),_0x3881d4('0xb8')),_0x59b96e[_0x3881d4('0x7e')](_0x3881d4('0x1'),_0x3881d4('0x1a')),_0x59b96e['field'](_0x3881d4('0x53'),'Contact.fax'),_0x59b96e[_0x3881d4('0x7e')]('o.fullname',_0x3881d4('0xb2')),_0x59b96e[_0x3881d4('0x7e')](_0x3881d4('0x4e'),_0x3881d4('0x78')),_0x59b96e['field'](_0x3881d4('0x9d'),_0x3881d4('0x37')));if(_0x5c1aa2[_0x3881d4('0x34')])_0x59b96e[_0x3881d4('0x34')](_0x5c1aa2[_0x3881d4('0x34')]);if(_0x5c1aa2[_0x3881d4('0x2a')])_0x59b96e['offset'](_0x5c1aa2[_0x3881d4('0x2a')]);return db[_0x3881d4('0xbc')]['query'](_0x59b96e[_0x3881d4('0x39')](),_0x403e12);})[_0x3cc49c('0x89')](function(_0x4e06da){const _0x2135f1=_0x3cc49c;return _0x1f1487['where']('ui.FaxInteractionId\x20IN\x20?',_[_0x2135f1('0x83')](_0x4e06da,'id')),db[_0x2135f1('0xbc')]['query'](_0x1f1487[_0x2135f1('0x39')](),_0x403e12)[_0x2135f1('0x89')](function(_0x255483){const _0x134a0c=_0x2135f1,_0x1337d6=_[_0x134a0c('0x9a')](_0x255483,'FaxInteractionId'),_0x5dd664=[];return _0x4e06da[_0x134a0c('0x86')](function(_0x479302){const _0x52c775=_0x134a0c;_0x5dd664[_0x52c775('0x14')](updateFaxInteraction(_0x479302,_0x73e4ad,_0x1337d6));}),Promise[_0x134a0c('0x94')](_0x5dd664);});});})['then'](function(_0x3907c3){return _0x2a5559['rows']=_0x3907c3,_0x2a5559;})[_0x1cdd84('0x89')](respondWithFilteredResult(_0x1d6475,_0x5c1aa2));})[_0x5b1fdf('0x30')](handleError(_0x1d6475,null));},exports['show']=function(_0x34e66e,_0x4f6625){const _0x45d1f6=_0x5e1c48;let _0x4b2bf0={'raw':![],'where':{'id':_0x34e66e[_0x45d1f6('0x45')]['id']}};const _0x65144d={};return _0x65144d[_0x45d1f6('0x71')]=_[_0x45d1f6('0x50')](db[_0x45d1f6('0x12')][_0x45d1f6('0x72')]),_0x65144d[_0x45d1f6('0x76')]=_['keys'](_0x34e66e[_0x45d1f6('0x76')]),_0x65144d[_0x45d1f6('0x5')]=_[_0x45d1f6('0x97')](_0x65144d[_0x45d1f6('0x71')],_0x65144d[_0x45d1f6('0x76')]),_0x4b2bf0[_0x45d1f6('0xa2')]=_[_0x45d1f6('0x97')](_0x65144d[_0x45d1f6('0x71')],qs[_0x45d1f6('0x61')](_0x34e66e[_0x45d1f6('0x76')][_0x45d1f6('0x61')])),_0x4b2bf0[_0x45d1f6('0xa2')]=_0x4b2bf0['attributes'][_0x45d1f6('0x87')]?_0x4b2bf0[_0x45d1f6('0xa2')]:_0x65144d['model'],_0x34e66e[_0x45d1f6('0x76')]['includeAll']&&(_0x4b2bf0[_0x45d1f6('0x8a')]=[{'all':!![]}]),_0x4b2bf0=_[_0x45d1f6('0x3e')]({},_0x4b2bf0,_0x34e66e[_0x45d1f6('0x33')]),db[_0x45d1f6('0x12')][_0x45d1f6('0x7f')](_0x4b2bf0)[_0x45d1f6('0x89')](handleEntityNotFound(_0x4f6625,null))[_0x45d1f6('0x89')](respondWithResult(_0x4f6625,null))[_0x45d1f6('0x30')](handleError(_0x4f6625,null));},exports[_0x5e1c48('0x7')]=function(_0x47bd1a,_0x149ca5){const _0x3ef136=_0x5e1c48;return db[_0x3ef136('0x12')][_0x3ef136('0x7')](_0x47bd1a['body'],{})[_0x3ef136('0x89')](respondWithResult(_0x149ca5,0xc9))[_0x3ef136('0x30')](handleError(_0x149ca5,null));},exports['update']=function(_0x1b887b,_0x5adcfc){const _0x2db1f9=_0x5e1c48;return _0x1b887b[_0x2db1f9('0x10')]['id']&&delete _0x1b887b[_0x2db1f9('0x10')]['id'],db[_0x2db1f9('0x12')][_0x2db1f9('0x7f')]({'where':{'id':_0x1b887b['params']['id']}})['then'](handleEntityNotFound(_0x5adcfc,null))[_0x2db1f9('0x89')](saveUpdates(_0x1b887b[_0x2db1f9('0x10')],null))[_0x2db1f9('0x89')](respondWithResult(_0x5adcfc,null))[_0x2db1f9('0x30')](handleError(_0x5adcfc,null));},exports[_0x5e1c48('0x74')]=function(_0x5b65e3,_0x5418f4){const _0x484217=_0x5e1c48;return db['FaxInteraction'][_0x484217('0x7f')]({'where':{'id':_0x5b65e3['params']['id']}})[_0x484217('0x89')](handleEntityNotFound(_0x5418f4,null))['then'](removeEntity(_0x5418f4,null))['catch'](handleError(_0x5418f4,null));},exports[_0x5e1c48('0x52')]=function(_0x53aa4a,_0x12edce){const _0x200ae1=_0x5e1c48;return db[_0x200ae1('0x12')]['describe']()[_0x200ae1('0x89')](respondWithResult(_0x12edce,null))[_0x200ae1('0x30')](handleError(_0x12edce,null));},exports[_0x5e1c48('0x8e')]=function(_0x1740e0,_0x4e37e4){const _0x1e4925=_0x5e1c48;return db['FaxMessage'][_0x1e4925('0x7f')]({'where':{'id':_0x1740e0[_0x1e4925('0x45')]['id']}})[_0x1e4925('0x89')](function(_0x560c01){const _0x5d3b4f=_0x1e4925;if(_0x560c01)return _0x560c01[_0x5d3b4f('0x8e')](_0x1740e0[_0x5d3b4f('0x10')]['ids'],{'through':_[_0x5d3b4f('0x8b')](_0x1740e0[_0x5d3b4f('0x10')],[_0x5d3b4f('0xac'),'id'])});})[_0x1e4925('0x89')](respondWithResult(_0x4e37e4,null))[_0x1e4925('0x30')](handleError(_0x4e37e4,null));},exports['getMessages']=function(_0x3b3d78,_0x25ae31){const _0x2d870d=_0x5e1c48;let _0x3336cd={'raw':![],'where':{}};const _0x27464d={},_0x578bf6={'count':0x0,'rows':[]};return db[_0x2d870d('0x12')][_0x2d870d('0x7f')]({'where':{'id':_0x3b3d78[_0x2d870d('0x45')]['id']}})[_0x2d870d('0x89')](handleEntityNotFound(_0x25ae31,null))[_0x2d870d('0x89')](function(_0x25060c){const _0x27c046=_0x2d870d;if(_0x25060c){_0x27464d[_0x27c046('0x71')]=_[_0x27c046('0x50')](db[_0x27c046('0x8f')][_0x27c046('0x72')]),_0x27464d[_0x27c046('0x76')]=_[_0x27c046('0x50')](_0x3b3d78[_0x27c046('0x76')]),_0x27464d[_0x27c046('0x5')]=_[_0x27c046('0x97')](_0x27464d[_0x27c046('0x71')],_0x27464d['query']),_0x3336cd['attributes']=_['intersection'](_0x27464d[_0x27c046('0x71')],qs[_0x27c046('0x61')](_0x3b3d78[_0x27c046('0x76')][_0x27c046('0x61')])),_0x3336cd[_0x27c046('0xa2')]=_0x3336cd['attributes']['length']?_0x3336cd[_0x27c046('0xa2')]:_0x27464d[_0x27c046('0x71')];typeof _0x3b3d78['query'][_0x27c046('0x26')]===_0x27c046('0xbe')&&(_0x3336cd[_0x27c046('0x34')]=qs[_0x27c046('0x34')](_0x3b3d78['query'][_0x27c046('0x34')]),_0x3336cd[_0x27c046('0x2a')]=qs[_0x27c046('0x2a')](_0x3b3d78[_0x27c046('0x76')][_0x27c046('0x2a')]));_0x3336cd['order']=qs[_0x27c046('0x60')](_0x3b3d78[_0x27c046('0x76')]['sort']),_0x3336cd[_0x27c046('0x65')]=qs['filters'](_[_0x27c046('0xa9')](_0x3b3d78[_0x27c046('0x76')],_0x27464d[_0x27c046('0x5')])),_0x3336cd[_0x27c046('0x65')][_0x27c046('0x21')]=_0x25060c['id'];_0x3b3d78[_0x27c046('0x76')]['filter']&&(_0x3336cd[_0x27c046('0x65')]=_[_0x27c046('0x3e')](_0x3336cd['where'],{[Op['or']]:_[_0x27c046('0x83')](_0x3336cd['attributes'],function(_0x54797e){const _0x1e8644=_0x27c046,_0x5bfd54={};return _0x5bfd54[_0x54797e]={[Op[_0x1e8644('0x2f')]]:'%'+_0x3b3d78[_0x1e8644('0x76')]['filter']+'%'},_0x5bfd54;})}));if(_0x3b3d78['query'][_0x27c046('0x32')]){const _0xc62ea7=_0x3b3d78[_0x27c046('0x76')][_0x27c046('0x32')][_0x27c046('0x48')](','),_0x36c287={};_0x36c287[_0xc62ea7[0x0]]={[Op['gte']]:moment(_0xc62ea7[0x1])['format'](_0x27c046('0x1f'))},_0x3336cd['where']=_['merge'](_0x3336cd['where'],_0x36c287);}return _0x3336cd=_['merge']({},_0x3336cd,_0x3b3d78['options']),db[_0x27c046('0x8f')][_0x27c046('0x77')]({'where':_0x3336cd[_0x27c046('0x65')]})[_0x27c046('0x89')](function(_0x1f8be1){const _0x2fa4c4=_0x27c046;return _0x578bf6[_0x2fa4c4('0x77')]=_0x1f8be1,_0x3b3d78[_0x2fa4c4('0x76')][_0x2fa4c4('0xb6')]&&(_0x3336cd[_0x2fa4c4('0x8a')]=[{'all':!![]}]),db['FaxMessage'][_0x2fa4c4('0x2c')](_0x3336cd);})[_0x27c046('0x89')](function(_0x19f131){const _0x1f50e2=_0x27c046;return _0x578bf6[_0x1f50e2('0xaf')]=_0x19f131,_0x578bf6;});}})['then'](respondWithFilteredResult(_0x25ae31,_0x3336cd))[_0x2d870d('0x30')](handleError(_0x25ae31,null));},exports[_0x5e1c48('0x3b')]=function(_0x4a33bb,_0x8e9b4d){const _0x4d40a6=_0x5e1c48;return db['FaxInteraction'][_0x4d40a6('0x7f')]({'where':{'id':_0x4a33bb['params']['id']}})[_0x4d40a6('0x89')](function(_0x12b8c9){const _0x5e5a00=_0x4d40a6;if(_0x12b8c9)return _0x12b8c9['setTags'](_0x4a33bb[_0x5e5a00('0x10')][_0x5e5a00('0xac')],{'through':_[_0x5e5a00('0x8b')](_0x4a33bb[_0x5e5a00('0x10')],[_0x5e5a00('0xac'),'id'])})[_0x5e5a00('0x89')](function(){const _0x40e59f=_0x5e5a00;return db[_0x40e59f('0x28')][_0x40e59f('0x2c')]({'attributes':['id',_0x40e59f('0x35'),_0x40e59f('0x29')],'where':{'id':_0x4a33bb[_0x40e59f('0x10')][_0x40e59f('0xac')]}});})['then'](function(_0x5a3a5f){const _0x5cb5ab=_0x5e5a00;return socket[_0x5cb5ab('0xae')](_0x5cb5ab('0xbb'),{'id':Number(_0x4a33bb[_0x5cb5ab('0x45')]['id']),'tags':_0x5a3a5f||[]}),{'id':Number(_0x4a33bb[_0x5cb5ab('0x45')]['id']),'tags':_0x5a3a5f||[]};});})[_0x4d40a6('0x89')](respondWithResult(_0x8e9b4d,null))[_0x4d40a6('0x30')](handleError(_0x8e9b4d,null));},exports[_0x5e1c48('0xb')]=function(_0x490600,_0x56cb34){const _0x295c7b=_0x5e1c48;return db[_0x295c7b('0x12')]['findOne']({'where':{'id':_0x490600['params']['id']}})[_0x295c7b('0x89')](handleEntityNotFound(_0x56cb34,null))[_0x295c7b('0x89')](function(_0x5e39a7){const _0x2a39da=_0x295c7b;if(_0x5e39a7)return _0x5e39a7['removeTags'](_0x490600[_0x2a39da('0x76')][_0x2a39da('0xac')]);})['then'](respondWithStatusCode(_0x56cb34,null))[_0x295c7b('0x30')](handleError(_0x56cb34,null));},exports[_0x5e1c48('0x95')]=function(_0x31dbe1,_0x1199b8){const _0x4a2696=_0x5e1c48,_0x21d6ce=moment()[_0x4a2696('0x4b')]()[_0x4a2696('0x39')](),_0x26213c=path['join'](config['root'],'files','tmp'),_0x47f901=path[_0x4a2696('0x69')](config[_0x4a2696('0xa')],_0x4a2696('0x7c'),_0x4a2696('0xa3'),'attachments'),_0x49c731=path['join'](_0x26213c,_0x21d6ce),_0x507c59=util[_0x4a2696('0x9')](_0x4a2696('0x4a'),_0x31dbe1['params']['id'],_0x21d6ce),_0x327739=path[_0x4a2696('0x69')](_0x26213c,_0x507c59),_0x51633f=[];_0x51633f[_0x4a2696('0x14')]({'model':db[_0x4a2696('0x40')],'as':_0x4a2696('0x40'),'raw':!![]});const _0x485872=[{'model':db[_0x4a2696('0x8f')],'as':_0x4a2696('0x2e'),'attributes':['id','body','createdAt'],'include':_0x51633f}];return db['FaxInteraction'][_0x4a2696('0x7f')]({'where':{'id':_0x31dbe1[_0x4a2696('0x45')]['id']},'include':_0x485872})[_0x4a2696('0x89')](handleEntityNotFound(_0x1199b8,null))['then'](function(_0x51f2e9){const _0x224fed=_0x4a2696;if(_0x51f2e9&&_0x51f2e9[_0x224fed('0x2e')]){const _0x27b71c=_0x51f2e9[_0x224fed('0x6')]({'plain':!![]});fs[_0x224fed('0x5c')](_0x49c731);for(let _0x2a4431=0x0;_0x2a4431<_0x27b71c['Messages'][_0x224fed('0x87')];_0x2a4431++){const _0x36f6db=_0x27b71c[_0x224fed('0x2e')][_0x2a4431]['Attachment'];if(_0x36f6db){const _0x4e714a=path[_0x224fed('0x69')](_0x47f901,_0x36f6db[_0x224fed('0x4f')]);fs['existsSync'](_0x4e714a)&&fs[_0x224fed('0x2d')](_0x4e714a)[_0x224fed('0x22')](fs[_0x224fed('0x6b')](path['join'](_0x49c731,_0x36f6db[_0x224fed('0x4f')])));}}return Promise['resolve']()[_0x224fed('0x89')](function(){const _0x3d9461=_0x224fed;return new Promise(function(_0x5c3c17,_0x1810ed){zipdir(_0x49c731,{'saveTo':_0x327739},function(_0x51c9e2,_0x5374c6){if(_0x51c9e2)return _0x1810ed(_0x51c9e2);return _0x5c3c17(_0x5374c6);});})[_0x3d9461('0x89')](function(){return new Promise(function(_0x3e6bd6,_0x3facbc){rimraf(_0x49c731,function(_0x22e024){if(_0x22e024)_0x3facbc(_0x22e024);return _0x3e6bd6();});});})[_0x3d9461('0x89')](function(){const _0xef2000=_0x3d9461;return _0x1199b8[_0xef2000('0x95')](_0x327739,_0x507c59,function(_0x31a9a8){const _0x5ada2e=_0xef2000;_0x31a9a8?console[_0x5ada2e('0x13')]('err',_0x31a9a8):fs['unlinkSync'](_0x327739);});});});}else return _0x1199b8['sendStatus'](0xc8);})['catch'](handleError(_0x1199b8,null));}; \ No newline at end of file +const a236_0x3f0f=['Contact.mobile','User','start','color','o.internal','count','sequelize','keyBy','basename','squel','Contact.email','tag','Tags','nolimit','../../mysqldb','cm_contacts','`\x20>\x200','a.id\x20=\x20i.FaxAccountId','union','CONCAT(c.firstName,\x20\x27\x20\x27,\x20c.lastName)\x20LIKE\x20?','u.id','SELECT','attributes','transcript-%d-%s.zip','end','c.firstName\x20LIKE\x20?\x20OR\x20c.lastName\x20LIKE\x20?\x20OR\x20c.email\x20LIKE\x20?','FaxInteraction','FaxMessage','index','download','log','catch','Attachment','server','getMessages','send','tmp','c.lastName','fields','read','push','query','merge','mkdirSync','$substring','params','json','unix','split','addTags','Owner.internal','`\x20=\x200','Content-Range','then','operator','CONCAT(\x27,\x27,\x20`TagIds`,\x20\x27,\x27)\x20LIKE\x20?','update','sort','../../config/environment','moment','\x20=\x20?','filters','fax_interaction_has_tags','c.id\x20=\x20i.ContactId\x20AND\x20c.deletedAt\x20IS\x20NULL','files','Account.mandatoryDisposition','../../components/parsers/advancedSearch','i.FaxAccountId\x20IS\x20NULL','isArray','compact','group','SUM(me.read\x20=\x200\x20AND\x20me.direction\x20=\x20\x27in\x27)','create','limit','i.*','$gte','`unreadMessages`\x20=\x200','../../components/parsers/qs','addMessage','unreadMessages','c.firstName','c.phone','i.fax\x20LIKE\x20?','it.FaxInteractionId\x20=\x20i.id','Contact.fax','root','c.fax','tools_tags','err','MATCH\x20(c.firstName,\x20c.lastName,\x20c.phone,\x20c.mobile,\x20c.fax,\x20c.email)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','Tag','forEach','getFaxAccounts','rawAttributes','register','from','t.id\x20IN\x20?','findAll','destroy','user_has_fax_interactions','some','findOne','FaxInteractionId','Contact.firstName','fax_interactions','\x20IS\x20NULL','options','keys','Messages','journey','pipe','createWriteStream','having','search','`unreadMessages`\x20>\x200','get','resolve','i.id','setTags','where','removeTags','./faxInteraction.socket','i.createdAt\x20BETWEEN\x20?\x20AND\x20?','Contact.lastName','ContactId','key','t.id\x20=\x20it.TagId','filter','../../config/logger','TagIds','left_join','value','c.mobile','toString','createReadStream','faxInteractionTags:save','Contact','existsSync','find','show','u.id\x20=\x20ui.UserId','replace','field','a.mandatoryDisposition','all','i.id\x20LIKE\x20?','u.fullname','includeAll','Contact.phone','type','offset','i.FaxAccountId\x20IS\x20NOT\x20NULL','select','sendStatus','name','GROUP_CONCAT(DISTINCT\x20t.id)','length','model','set','describe','order','body','rows','../../rediscache','rimraf','intersection','error','pick','format','omit','path','status','buildExpression','FaxAccountId','map','fieldName','gte','i.FaxAccountId\x20IN\x20?','ui.FaxInteractionId\x20IN\x20?','null','c.email','users','util','join','user','createdAt','text','isEmpty','ui.FaxInteractionId','sqlOperator','ids','me.FaxInteractionId\x20=\x20i.id','concat'];(function(_0x1e6f9b,_0x219b66){const _0x3f0fd0=function(_0x4f7549){while(--_0x4f7549){_0x1e6f9b['push'](_0x1e6f9b['shift']());}};_0x3f0fd0(++_0x219b66);}(a236_0x3f0f,0x1d9));const a236_0x4f75=function(_0x1e6f9b,_0x219b66){_0x1e6f9b=_0x1e6f9b-0xd3;let _0x3f0fd0=a236_0x3f0f[_0x1e6f9b];return _0x3f0fd0;};const a236_0x4a0432=a236_0x4f75;'use strict';const rimraf=require(a236_0x4a0432(0x120)),zipdir=require('zip-dir'),moment=require(a236_0x4a0432(0x178)),util=require(a236_0x4a0432(0x132)),path=require(a236_0x4a0432(0x126)),fs=require('fs'),_=require('lodash'),squel=require(a236_0x4a0432(0x146)),{getSocket}=require(a236_0x4a0432(0x11f)),socket=getSocket(),qs=require(a236_0x4a0432(0x18a)),as=require(a236_0x4a0432(0x17f)),logger=require(a236_0x4a0432(0xfc))('api'),config=require(a236_0x4a0432(0x177)),{db}=require(a236_0x4a0432(0x14b)),{Op,QueryTypes}=require('sequelize');require(a236_0x4a0432(0xf5))[a236_0x4a0432(0xda)](socket);function respondWithStatusCode(_0x18fb3a,_0x1f6151){return _0x1f6151=_0x1f6151||0xcc,function(_0x296fff){const _0x305efe=a236_0x4f75;if(_0x296fff)return _0x18fb3a[_0x305efe(0x115)](_0x1f6151);return _0x18fb3a[_0x305efe(0x127)](_0x1f6151)[_0x305efe(0x155)]();};}function respondWithResult(_0x3725e5,_0x56646e){return _0x56646e=_0x56646e||0xc8,function(_0x3dd163){const _0x10718a=a236_0x4f75;if(_0x3dd163)return _0x3725e5[_0x10718a(0x127)](_0x56646e)[_0x10718a(0x16b)](_0x3dd163);};}function respondWithFilteredResult(_0x356e50,_0x397634){return function(_0x4ddb01){const _0x4c637f=a236_0x4f75;if(_0x4ddb01){const _0x561c7d=_0x4ddb01[_0x4c637f(0x142)],_0x43e7ef=_0x397634[_0x4c637f(0x112)];let _0x708dff=_0x397634[_0x4c637f(0x112)]+_0x397634[_0x4c637f(0x186)],_0x1f7f27;return _0x708dff>=_0x561c7d?(_0x708dff=_0x561c7d,_0x1f7f27=0xc8):_0x1f7f27=0xce,_0x356e50[_0x4c637f(0x127)](_0x1f7f27),_0x356e50[_0x4c637f(0x11a)](_0x4c637f(0x171),_0x43e7ef+'-'+_0x708dff+'/'+_0x561c7d)[_0x4c637f(0x16b)](_0x4ddb01);}return null;};}function saveUpdates(_0x68e137){return function(_0x583d8e){const _0x34beec=a236_0x4f75;if(_0x583d8e)return _0x583d8e[_0x34beec(0x175)](_0x68e137)['then'](function(_0x332b0e){return _0x332b0e;});return null;};}function removeEntity(_0x52a718){return function(_0x4d5122){const _0x16c355=a236_0x4f75;if(_0x4d5122)return _0x4d5122[_0x16c355(0xde)]()[_0x16c355(0x172)](function(){const _0x207d1a=_0x16c355;_0x52a718[_0x207d1a(0x127)](0xcc)[_0x207d1a(0x155)]();});};}function handleEntityNotFound(_0x5f18e9){return function(_0x3c910c){const _0x4fde82=a236_0x4f75;return!_0x3c910c&&_0x5f18e9[_0x4fde82(0x115)](0x194),_0x3c910c;};}function handleError(_0x15fc34,_0x1aea4e){return _0x1aea4e=_0x1aea4e||0x1f4,function(_0x11b9e5){const _0x45b9b5=a236_0x4f75;logger[_0x45b9b5(0x122)](_0x11b9e5['stack']),_0x11b9e5[_0x45b9b5(0x116)]&&delete _0x11b9e5[_0x45b9b5(0x116)],_0x15fc34['status'](_0x1aea4e)[_0x45b9b5(0x160)](_0x11b9e5);};}function getInteractionUsers(_0x3d4011,_0x5d1c3b){return new Promise(function(_0x1602e1,_0x5b3bc2){const _0x2e09b7=a236_0x4f75;try{_0x5d1c3b[_0x3d4011['id']]&&(_0x3d4011['Users']=_[_0x2e09b7(0x12a)](_0x5d1c3b[_0x3d4011['id']],function(_0x56e93b){return{'id':_0x56e93b['id'],'fullname':_0x56e93b['fullname']};}));}catch(_0x19ad39){_0x5b3bc2(_0x19ad39);}_0x1602e1(_0x3d4011);});}function getInteractionTags(_0x5d07e5,_0x47693b){return new Promise(function(_0x18a244,_0x10f328){const _0x178e41=a236_0x4f75;try{_0x5d07e5[_0x178e41(0xfd)]&&(_0x5d07e5[_0x178e41(0x149)]=[],_0x5d07e5['TagIds'][_0x178e41(0x16d)](',')[_0x178e41(0xd7)](function(_0x1b2e5f){_0x5d07e5['Tags']['push'](_0x47693b[_0x1b2e5f]);})),delete _0x5d07e5['TagIds'];}catch(_0x24b01b){_0x10f328(_0x24b01b);}_0x18a244(_0x5d07e5);});}function updateFaxInteraction(_0x361c11,_0x7c864f,_0x37daf3){return new Promise(function(_0x1fe602,_0x39975e){const _0x1f6adf=a236_0x4f75;return getInteractionUsers(_0x361c11,_0x37daf3)['then'](function(_0x16c31b){return getInteractionTags(_0x16c31b,_0x7c864f);})[_0x1f6adf(0x172)](function(_0x3e712a){_0x1fe602(_0x3e712a);})[_0x1f6adf(0x15c)](function(_0x254b87){_0x39975e(_0x254b87);});});}exports[a236_0x4a0432(0x159)]=function(_0x5445b0,_0x4852b7){const _0x57265f=a236_0x4a0432,_0x1ed0f2={},_0xbfa853={},_0x109014={'count':0x0,'rows':[]},_0xe910d9=_[_0x57265f(0x12a)](db['FaxInteraction']['rawAttributes'],function(_0x57917b){const _0x2053f3=_0x57265f;return{'name':_0x57917b[_0x2053f3(0x12b)],'type':_0x57917b[_0x2053f3(0x111)][_0x2053f3(0xf9)]};});_0xbfa853[_0x57265f(0x119)]=_['map'](_0xe910d9,_0x57265f(0x116)),_0xbfa853[_0x57265f(0x166)]=_[_0x57265f(0xe7)](_0x5445b0[_0x57265f(0x166)]),_0xbfa853['filters']=_[_0x57265f(0x121)](_0xbfa853[_0x57265f(0x119)],_0xbfa853[_0x57265f(0x166)]),_0x1ed0f2[_0x57265f(0x153)]=_[_0x57265f(0x121)](_0xbfa853[_0x57265f(0x119)],qs[_0x57265f(0x163)](_0x5445b0[_0x57265f(0x166)][_0x57265f(0x163)])),_0x1ed0f2[_0x57265f(0x153)]=_0x1ed0f2[_0x57265f(0x153)]['length']?_0x1ed0f2[_0x57265f(0x153)]:_0xbfa853[_0x57265f(0x119)];typeof _0x5445b0['query'][_0x57265f(0x14a)]==='undefined'&&(_0x1ed0f2[_0x57265f(0x186)]=qs[_0x57265f(0x186)](_0x5445b0['query'][_0x57265f(0x186)]),_0x1ed0f2['offset']=qs[_0x57265f(0x112)](_0x5445b0['query'][_0x57265f(0x112)]));_0x1ed0f2[_0x57265f(0x11c)]=qs['sort'](_0x5445b0[_0x57265f(0x166)][_0x57265f(0x176)]),_0x1ed0f2[_0x57265f(0xf3)]=qs[_0x57265f(0x17a)](_[_0x57265f(0x123)](_0x5445b0['query'],_0xbfa853[_0x57265f(0x17a)]),_0xe910d9);let _0x221248=[];const _0x2b0cc4=squel[_0x57265f(0x114)]()[_0x57265f(0x10a)]('id')['field'](_0x57265f(0x116))[_0x57265f(0x10a)](_0x57265f(0x140))[_0x57265f(0xdb)](_0x57265f(0xd3)),_0x219ab4=squel['select']()[_0x57265f(0x10a)](_0x57265f(0x151))[_0x57265f(0x10a)](_0x57265f(0x10e))[_0x57265f(0x10a)](_0x57265f(0x138))['from'](_0x57265f(0xdf),'ui')['left_join']('users','u',_0x57265f(0x108)),_0x44cb0d=squel['select']()['from'](_0x57265f(0xe4),'i')[_0x57265f(0xfe)](_0x57265f(0x14c),'c',_0x57265f(0x17c))[_0x57265f(0xfe)](_0x57265f(0x131),'o','o.id\x20=\x20i.UserId')[_0x57265f(0xfe)]('fax_accounts','a',_0x57265f(0x14e))[_0x57265f(0xfe)]('fax_messages','me',_0x57265f(0x13b))[_0x57265f(0xfe)](_0x57265f(0x17b),'it',_0x57265f(0x190))[_0x57265f(0xfe)](_0x57265f(0xd3),'t',_0x57265f(0xfa)),_0xf7d391=squel['expr']();let _0x232b4e=[];const _0x4cc765=squel['expr']();let _0x3b2543;if(_0x5445b0[_0x57265f(0x166)]['search']){_0x3b2543=as['parseSearch'](_0x5445b0[_0x57265f(0x166)][_0x57265f(0xed)]);const _0x4825f5=_0x3b2543[_0x57265f(0x139)];for(let _0x5aef9a=0x0;_0x5aef9a<_0x3b2543['conditions'][_0x57265f(0x118)];_0x5aef9a++){const _0x372334=_0x3b2543['conditions'][_0x5aef9a],_0x468100='i';let _0x3cdb21,_0x4e45f4=_[_0x57265f(0x106)](_0xe910d9,[_0x57265f(0x116),_0x372334['field']]);if(!_0x4e45f4)switch(_0x372334[_0x57265f(0x10a)]){case _0x57265f(0x18c):_0x372334[_0x57265f(0xff)]==0x1?_0x44cb0d['having']('`'+_0x372334['field']+_0x57265f(0x170)):_0x44cb0d[_0x57265f(0xec)]('`'+_0x372334[_0x57265f(0x10a)]+_0x57265f(0x14d));break;case _0x57265f(0x104):if(_0x372334['operator']===_0x57265f(0x169)){if(_0x372334[_0x57265f(0xff)][_0x57265f(0x16d)]('\x20')[_0x57265f(0x118)]>0x1)_0xf7d391[_0x4825f5](_0x57265f(0xd5),qs['getFullTextValue'](_0x372334[_0x57265f(0xff)]),null);else{const _0x592a88='%'+_0x372334[_0x57265f(0xff)]+'%';_0xf7d391[_0x4825f5](_0x57265f(0x156),_0x592a88,_0x592a88,_0x592a88);}}else _0x4e45f4=_[_0x57265f(0x106)](_0xe910d9,[_0x57265f(0x116),_0x57265f(0xf8)]),_0x372334[_0x57265f(0x10a)]=_0x57265f(0xf8),_0x3cdb21=as['buildExpression'](_0x468100,_0x4e45f4['type'],_0x372334),_0xf7d391[_0x4825f5](_0x3cdb21[_0x57265f(0x136)],_0x3cdb21[_0x57265f(0xff)][_0x57265f(0x13f)],_0x3cdb21[_0x57265f(0xff)][_0x57265f(0x155)]);break;case'Tag':{const _0x2ee7ba=_0x372334[_0x57265f(0xff)][_0x57265f(0x16d)](',')[_0x57265f(0x12a)](function(_0x473ed9){return Number(_0x473ed9);});_0x2ee7ba[_0x57265f(0xd7)](function(_0x3ee2a1){const _0x270aa3=_0x57265f;_0x4cc765['or'](_0x270aa3(0x174),'%,'+_0x3ee2a1+',%');}),_0x232b4e=_[_0x57265f(0x14f)](_0x232b4e,_0x2ee7ba);}break;case _0x57265f(0x13e):_0x372334[_0x57265f(0x173)]==='$substring'?_0xf7d391[_0x4825f5]('CONCAT_WS(\x27\x20\x27,\x20o.name,\x20o.fullname)\x20LIKE\x20?','%'+_0x372334[_0x57265f(0xff)]+'%',null):(_0x4e45f4=_[_0x57265f(0x106)](_0xe910d9,[_0x57265f(0x116),'UserId']),_0x372334[_0x57265f(0x10a)]='UserId',_0x3cdb21=as[_0x57265f(0x128)](_0x468100,_0x4e45f4['type'],_0x372334),_0xf7d391[_0x4825f5](_0x3cdb21[_0x57265f(0x136)],_0x3cdb21[_0x57265f(0xff)][_0x57265f(0x13f)],_0x3cdb21[_0x57265f(0xff)][_0x57265f(0x155)]));break;case _0x57265f(0x11d):_0x3cdb21=as['buildExpression']('me',null,_0x372334),_0xf7d391[_0x4825f5](_0x3cdb21[_0x57265f(0x136)],_0x3cdb21[_0x57265f(0xff)][_0x57265f(0x13f)],_0x3cdb21[_0x57265f(0xff)]['end']);break;}else _0x3cdb21=as[_0x57265f(0x128)](_0x468100,_0x4e45f4[_0x57265f(0x111)],_0x372334),_0xf7d391[_0x4825f5](_0x3cdb21[_0x57265f(0x136)],_0x3cdb21['value']['start'],_0x3cdb21[_0x57265f(0xff)]['end']);}}else{const _0x186520=_(_0x5445b0[_0x57265f(0x166)])['keys']()[_0x57265f(0x12a)](function(_0x32a8d1){const _0x3e521c=_0x57265f;return _[_0x3e521c(0xe0)](_0xe910d9,['name',_0x32a8d1])?_0x32a8d1:undefined;})[_0x57265f(0x182)]()[_0x57265f(0xff)]();!_[_0x57265f(0x137)](_0x186520)&&_0x186520[_0x57265f(0xd7)](function(_0x26445c){const _0x5b3911=_0x57265f;if(_0x26445c==='FaxAccountId')_0x44cb0d[_0x5b3911(0xf3)](_0x5b3911(0x12d),[][_0x5b3911(0x13c)](_0x5445b0['query'][_0x26445c]));else{if(_0x26445c===_0x5b3911(0x135)){const _0x21be8e=JSON['parse'](_0x5445b0[_0x5b3911(0x166)][_0x26445c])[_0x5b3911(0x188)],_0xaad766=JSON['parse'](_0x5445b0[_0x5b3911(0x166)][_0x26445c])['$lte'];_0x44cb0d[_0x5b3911(0xf3)](_0x5b3911(0xf6),_0x21be8e,_0xaad766);}else _0x5445b0[_0x5b3911(0x166)][_0x26445c]===_0x5b3911(0x12f)?_0x44cb0d['where']('i.'+_0x26445c+_0x5b3911(0xe5)):_0x44cb0d[_0x5b3911(0xf3)]('i.'+_0x26445c+_0x5b3911(0x179),_0x5445b0[_0x5b3911(0x166)][_0x26445c]);}});_0x5445b0[_0x57265f(0x166)][_0x57265f(0x164)]&&(_0x5445b0['query'][_0x57265f(0x164)]==0x1?_0x44cb0d[_0x57265f(0xec)](_0x57265f(0x189)):_0x44cb0d['having'](_0x57265f(0xee)));_0x5445b0[_0x57265f(0x166)]['tag']&&(_0x232b4e=_[_0x57265f(0x181)](_0x5445b0[_0x57265f(0x166)]['tag'])?_0x5445b0[_0x57265f(0x166)][_0x57265f(0x148)]:new Array(_0x5445b0['query'][_0x57265f(0x148)]),_0x232b4e['forEach'](function(_0x16df2c){_0x4cc765['or']('CONCAT(\x27,\x27,\x20`TagIds`,\x20\x27,\x27)\x20LIKE\x20?','%,'+_0x16df2c+',%');}));if(_0x5445b0[_0x57265f(0x166)][_0x57265f(0xfb)]){const _0x1d00b4=_0x5445b0[_0x57265f(0x166)]['filter'][_0x57265f(0x109)]('\x5c','\x5c\x5c')[_0x57265f(0x109)](/'/g,'\x27\x27');qs['isNumeric'](_0x1d00b4)&&_0xf7d391['or'](_0x57265f(0x10d),_0x1d00b4+'%')['or'](_0x57265f(0x18f),_0x1d00b4+'%'),_0xf7d391['or'](_0x57265f(0x150),_0x1d00b4+'%');}}_0x44cb0d['where'](_0xf7d391),_0x44cb0d[_0x57265f(0x183)](_0x57265f(0xf1));let _0x2ca420={'type':QueryTypes[_0x57265f(0x152)],'raw':!![]};const _0x45d083=_0x44cb0d['clone']();_0x45d083[_0x57265f(0x10a)](_0x57265f(0xf1)),_0x45d083['field'](_0x57265f(0x184),_0x57265f(0x18c)),_0x1ed0f2[_0x57265f(0x11c)]&&_0x1ed0f2[_0x57265f(0x11c)][_0x57265f(0xd7)](function(_0x2d016a){const _0x18327f=_0x57265f;_0x44cb0d[_0x18327f(0x11c)]('i.'+_0x2d016a[0x0],_0x2d016a[0x1]==='DESC'?![]:!![]);}),!_['isEmpty'](_0x232b4e)&&(_0x44cb0d['having'](_0x4cc765),_0x45d083[_0x57265f(0xf3)](_0x57265f(0xdc),_0x232b4e)),Promise[_0x57265f(0xf0)]()['then'](function(){const _0x267509=_0x57265f;if(!_0x3b2543){if(_0x5445b0['query'][_0x267509(0x129)]||_0x5445b0[_0x267509(0x166)][_0x267509(0xe9)])return;_0x45d083[_0x267509(0xf3)](_0x267509(0x113)),_0x44cb0d[_0x267509(0xf3)]('i.FaxAccountId\x20IS\x20NOT\x20NULL');return;}return _0x5445b0[_0x267509(0x134)][_0x267509(0xd8)]({'attributes':['id'],'raw':!![]})[_0x267509(0x172)](function(_0x191c1e){const _0x12c091=_0x267509;_[_0x12c091(0x137)](_0x191c1e)?(_0x45d083['where']('i.FaxAccountId\x20IS\x20NULL'),_0x44cb0d[_0x12c091(0xf3)](_0x12c091(0x180))):(_0x45d083[_0x12c091(0xf3)](_0x12c091(0x12d),_[_0x12c091(0x12a)](_0x191c1e,'id')),_0x44cb0d[_0x12c091(0xf3)](_0x12c091(0x12d),_[_0x12c091(0x12a)](_0x191c1e,'id')));});})[_0x57265f(0x172)](function(){const _0x5418c9=_0x57265f;db['sequelize']['query'](_0x45d083[_0x5418c9(0x101)](),_0x2ca420)[_0x5418c9(0x172)](function(_0x5a06bf){const _0x34a462=_0x5418c9;_0x109014[_0x34a462(0x142)]=_0x5a06bf[_0x34a462(0x118)];if(_0x109014['count']===0x0)return[];return db['sequelize'][_0x34a462(0x166)](_0x2b0cc4['toString'](),_0x2ca420)[_0x34a462(0x172)](function(_0x216428){const _0x442d8f=_0x34a462;_0x221248=_[_0x442d8f(0x144)](_0x216428,'id'),_0x2ca420=_['merge'](_0x2ca420,{'model':db[_0x442d8f(0x157)],'mapToModel':!![],'raw':!![],'nest':!![]});_0x5445b0[_0x442d8f(0x166)]['fields']?_0x1ed0f2[_0x442d8f(0x153)][_0x442d8f(0xd7)](function(_0x1d91c5){const _0x44d389=_0x442d8f;_0x44cb0d[_0x44d389(0x10a)]('i.'+_0x1d91c5);}):(_0x44cb0d[_0x442d8f(0x10a)](_0x442d8f(0x184),_0x442d8f(0x18c)),_0x44cb0d[_0x442d8f(0x10a)]('a.key','Account.key'),_0x44cb0d[_0x442d8f(0x10a)](_0x442d8f(0x10b),_0x442d8f(0x17e)),_0x44cb0d[_0x442d8f(0x10a)](_0x442d8f(0x187)),_0x44cb0d['field'](_0x442d8f(0x18d),_0x442d8f(0xe3)),_0x44cb0d[_0x442d8f(0x10a)](_0x442d8f(0x162),_0x442d8f(0xf7)),_0x44cb0d[_0x442d8f(0x10a)](_0x442d8f(0x130),_0x442d8f(0x147)),_0x44cb0d[_0x442d8f(0x10a)](_0x442d8f(0x18e),_0x442d8f(0x110)),_0x44cb0d[_0x442d8f(0x10a)](_0x442d8f(0x100),_0x442d8f(0x13d)),_0x44cb0d[_0x442d8f(0x10a)](_0x442d8f(0x193),_0x442d8f(0x191)),_0x44cb0d[_0x442d8f(0x10a)]('o.fullname','Owner.fullname'),_0x44cb0d[_0x442d8f(0x10a)](_0x442d8f(0x141),_0x442d8f(0x16f)),_0x44cb0d[_0x442d8f(0x10a)](_0x442d8f(0x117),_0x442d8f(0xfd)));if(_0x1ed0f2['limit'])_0x44cb0d[_0x442d8f(0x186)](_0x1ed0f2[_0x442d8f(0x186)]);if(_0x1ed0f2[_0x442d8f(0x112)])_0x44cb0d[_0x442d8f(0x112)](_0x1ed0f2[_0x442d8f(0x112)]);return db[_0x442d8f(0x143)][_0x442d8f(0x166)](_0x44cb0d['toString'](),_0x2ca420);})[_0x34a462(0x172)](function(_0x3833b8){const _0x17185f=_0x34a462;return _0x219ab4[_0x17185f(0xf3)](_0x17185f(0x12e),_['map'](_0x3833b8,'id')),db[_0x17185f(0x143)][_0x17185f(0x166)](_0x219ab4[_0x17185f(0x101)](),_0x2ca420)['then'](function(_0x43ed44){const _0x55eff8=_0x17185f,_0x21f429=_['groupBy'](_0x43ed44,'FaxInteractionId'),_0x29031a=[];return _0x3833b8[_0x55eff8(0xd7)](function(_0xa03dfe){const _0x8036ef=_0x55eff8;_0x29031a[_0x8036ef(0x165)](updateFaxInteraction(_0xa03dfe,_0x221248,_0x21f429));}),Promise[_0x55eff8(0x10c)](_0x29031a);});});})[_0x5418c9(0x172)](function(_0xd93896){const _0x1cc3aa=_0x5418c9;return _0x109014[_0x1cc3aa(0x11e)]=_0xd93896,_0x109014;})[_0x5418c9(0x172)](respondWithFilteredResult(_0x4852b7,_0x1ed0f2));})[_0x57265f(0x15c)](handleError(_0x4852b7,null));},exports[a236_0x4a0432(0x107)]=function(_0x58a180,_0x13ed56){const _0x4c2b5b=a236_0x4a0432;let _0x265c78={'raw':![],'where':{'id':_0x58a180[_0x4c2b5b(0x16a)]['id']}};const _0x1a8877={};return _0x1a8877[_0x4c2b5b(0x119)]=_[_0x4c2b5b(0xe7)](db[_0x4c2b5b(0x157)]['rawAttributes']),_0x1a8877[_0x4c2b5b(0x166)]=_[_0x4c2b5b(0xe7)](_0x58a180[_0x4c2b5b(0x166)]),_0x1a8877[_0x4c2b5b(0x17a)]=_[_0x4c2b5b(0x121)](_0x1a8877[_0x4c2b5b(0x119)],_0x1a8877['query']),_0x265c78[_0x4c2b5b(0x153)]=_[_0x4c2b5b(0x121)](_0x1a8877[_0x4c2b5b(0x119)],qs[_0x4c2b5b(0x163)](_0x58a180['query'][_0x4c2b5b(0x163)])),_0x265c78[_0x4c2b5b(0x153)]=_0x265c78['attributes'][_0x4c2b5b(0x118)]?_0x265c78[_0x4c2b5b(0x153)]:_0x1a8877[_0x4c2b5b(0x119)],_0x58a180[_0x4c2b5b(0x166)]['includeAll']&&(_0x265c78['include']=[{'all':!![]}]),_0x265c78=_[_0x4c2b5b(0x167)]({},_0x265c78,_0x58a180[_0x4c2b5b(0xe6)]),db[_0x4c2b5b(0x157)][_0x4c2b5b(0xe1)](_0x265c78)['then'](handleEntityNotFound(_0x13ed56,null))['then'](respondWithResult(_0x13ed56,null))[_0x4c2b5b(0x15c)](handleError(_0x13ed56,null));},exports[a236_0x4a0432(0x185)]=function(_0x39a2c8,_0x394fa3){const _0x2dd27a=a236_0x4a0432;return db[_0x2dd27a(0x157)][_0x2dd27a(0x185)](_0x39a2c8[_0x2dd27a(0x11d)],{})[_0x2dd27a(0x172)](respondWithResult(_0x394fa3,0xc9))[_0x2dd27a(0x15c)](handleError(_0x394fa3,null));},exports[a236_0x4a0432(0x175)]=function(_0x35a4c8,_0x292bfe){const _0x1c93c3=a236_0x4a0432;return _0x35a4c8[_0x1c93c3(0x11d)]['id']&&delete _0x35a4c8['body']['id'],db[_0x1c93c3(0x157)][_0x1c93c3(0xe1)]({'where':{'id':_0x35a4c8[_0x1c93c3(0x16a)]['id']}})[_0x1c93c3(0x172)](handleEntityNotFound(_0x292bfe,null))[_0x1c93c3(0x172)](saveUpdates(_0x35a4c8[_0x1c93c3(0x11d)],null))[_0x1c93c3(0x172)](respondWithResult(_0x292bfe,null))[_0x1c93c3(0x15c)](handleError(_0x292bfe,null));},exports[a236_0x4a0432(0xde)]=function(_0x422594,_0x276a0d){const _0x35af0d=a236_0x4a0432;return db[_0x35af0d(0x157)][_0x35af0d(0xe1)]({'where':{'id':_0x422594[_0x35af0d(0x16a)]['id']}})[_0x35af0d(0x172)](handleEntityNotFound(_0x276a0d,null))[_0x35af0d(0x172)](removeEntity(_0x276a0d,null))[_0x35af0d(0x15c)](handleError(_0x276a0d,null));},exports[a236_0x4a0432(0x11b)]=function(_0x566d86,_0xc9ad8c){const _0x4cccd9=a236_0x4a0432;return db[_0x4cccd9(0x157)][_0x4cccd9(0x11b)]()[_0x4cccd9(0x172)](respondWithResult(_0xc9ad8c,null))[_0x4cccd9(0x15c)](handleError(_0xc9ad8c,null));},exports[a236_0x4a0432(0x18b)]=function(_0x5aa698,_0x2bc863){const _0x214293=a236_0x4a0432;return db['FaxMessage'][_0x214293(0xe1)]({'where':{'id':_0x5aa698[_0x214293(0x16a)]['id']}})[_0x214293(0x172)](function(_0x5d6064){const _0x40c66b=_0x214293;if(_0x5d6064)return _0x5d6064[_0x40c66b(0x18b)](_0x5aa698[_0x40c66b(0x11d)][_0x40c66b(0x13a)],{'through':_['omit'](_0x5aa698[_0x40c66b(0x11d)],[_0x40c66b(0x13a),'id'])});})[_0x214293(0x172)](respondWithResult(_0x2bc863,null))['catch'](handleError(_0x2bc863,null));},exports[a236_0x4a0432(0x15f)]=function(_0x29935f,_0x1e9133){const _0x2593ed=a236_0x4a0432;let _0x4b1544={'raw':![],'where':{}};const _0x5cbf1c={},_0x1e72a6={'count':0x0,'rows':[]};return db[_0x2593ed(0x157)][_0x2593ed(0xe1)]({'where':{'id':_0x29935f[_0x2593ed(0x16a)]['id']}})[_0x2593ed(0x172)](handleEntityNotFound(_0x1e9133,null))[_0x2593ed(0x172)](function(_0x194105){const _0x1b8dd6=_0x2593ed;if(_0x194105){_0x5cbf1c[_0x1b8dd6(0x119)]=_[_0x1b8dd6(0xe7)](db[_0x1b8dd6(0x158)][_0x1b8dd6(0xd9)]),_0x5cbf1c[_0x1b8dd6(0x166)]=_[_0x1b8dd6(0xe7)](_0x29935f[_0x1b8dd6(0x166)]),_0x5cbf1c['filters']=_[_0x1b8dd6(0x121)](_0x5cbf1c[_0x1b8dd6(0x119)],_0x5cbf1c[_0x1b8dd6(0x166)]),_0x4b1544[_0x1b8dd6(0x153)]=_[_0x1b8dd6(0x121)](_0x5cbf1c[_0x1b8dd6(0x119)],qs['fields'](_0x29935f[_0x1b8dd6(0x166)][_0x1b8dd6(0x163)])),_0x4b1544['attributes']=_0x4b1544[_0x1b8dd6(0x153)][_0x1b8dd6(0x118)]?_0x4b1544[_0x1b8dd6(0x153)]:_0x5cbf1c['model'];typeof _0x29935f['query'][_0x1b8dd6(0x14a)]==='undefined'&&(_0x4b1544[_0x1b8dd6(0x186)]=qs[_0x1b8dd6(0x186)](_0x29935f[_0x1b8dd6(0x166)][_0x1b8dd6(0x186)]),_0x4b1544['offset']=qs['offset'](_0x29935f[_0x1b8dd6(0x166)][_0x1b8dd6(0x112)]));_0x4b1544[_0x1b8dd6(0x11c)]=qs[_0x1b8dd6(0x176)](_0x29935f[_0x1b8dd6(0x166)]['sort']),_0x4b1544[_0x1b8dd6(0xf3)]=qs[_0x1b8dd6(0x17a)](_[_0x1b8dd6(0x123)](_0x29935f[_0x1b8dd6(0x166)],_0x5cbf1c[_0x1b8dd6(0x17a)])),_0x4b1544[_0x1b8dd6(0xf3)][_0x1b8dd6(0xe2)]=_0x194105['id'];_0x29935f[_0x1b8dd6(0x166)][_0x1b8dd6(0xfb)]&&(_0x4b1544[_0x1b8dd6(0xf3)]=_[_0x1b8dd6(0x167)](_0x4b1544[_0x1b8dd6(0xf3)],{[Op['or']]:_[_0x1b8dd6(0x12a)](_0x4b1544['attributes'],function(_0x8cfa63){const _0x126ebc=_0x1b8dd6,_0x4e92e9={};return _0x4e92e9[_0x8cfa63]={[Op['like']]:'%'+_0x29935f[_0x126ebc(0x166)][_0x126ebc(0xfb)]+'%'},_0x4e92e9;})}));if(_0x29935f[_0x1b8dd6(0x166)][_0x1b8dd6(0x188)]){const _0x1a83f2=_0x29935f[_0x1b8dd6(0x166)][_0x1b8dd6(0x188)][_0x1b8dd6(0x16d)](','),_0x245c88={};_0x245c88[_0x1a83f2[0x0]]={[Op[_0x1b8dd6(0x12c)]]:moment(_0x1a83f2[0x1])[_0x1b8dd6(0x124)]('YYYY-MM-DD\x20HH:mm:ss')},_0x4b1544['where']=_['merge'](_0x4b1544['where'],_0x245c88);}return _0x4b1544=_[_0x1b8dd6(0x167)]({},_0x4b1544,_0x29935f[_0x1b8dd6(0xe6)]),db[_0x1b8dd6(0x158)][_0x1b8dd6(0x142)]({'where':_0x4b1544[_0x1b8dd6(0xf3)]})[_0x1b8dd6(0x172)](function(_0x51ff8b){const _0x17c696=_0x1b8dd6;return _0x1e72a6[_0x17c696(0x142)]=_0x51ff8b,_0x29935f[_0x17c696(0x166)][_0x17c696(0x10f)]&&(_0x4b1544['include']=[{'all':!![]}]),db[_0x17c696(0x158)][_0x17c696(0xdd)](_0x4b1544);})[_0x1b8dd6(0x172)](function(_0xc4a7a5){const _0x30d1ca=_0x1b8dd6;return _0x1e72a6[_0x30d1ca(0x11e)]=_0xc4a7a5,_0x1e72a6;});}})['then'](respondWithFilteredResult(_0x1e9133,_0x4b1544))['catch'](handleError(_0x1e9133,null));},exports[a236_0x4a0432(0x16e)]=function(_0x33401e,_0x4a3a1b){const _0x40616f=a236_0x4a0432;return db[_0x40616f(0x157)][_0x40616f(0xe1)]({'where':{'id':_0x33401e[_0x40616f(0x16a)]['id']}})[_0x40616f(0x172)](function(_0x3faa8f){const _0x42a469=_0x40616f;if(_0x3faa8f)return _0x3faa8f[_0x42a469(0xf2)](_0x33401e[_0x42a469(0x11d)][_0x42a469(0x13a)],{'through':_[_0x42a469(0x125)](_0x33401e[_0x42a469(0x11d)],[_0x42a469(0x13a),'id'])})['then'](function(){const _0x4ac73f=_0x42a469;return db[_0x4ac73f(0xd6)][_0x4ac73f(0xdd)]({'attributes':['id',_0x4ac73f(0x116),'color'],'where':{'id':_0x33401e['body']['ids']}});})[_0x42a469(0x172)](function(_0x304984){const _0x50cc88=_0x42a469;return socket['emit'](_0x50cc88(0x103),{'id':Number(_0x33401e['params']['id']),'tags':_0x304984||[]}),{'id':Number(_0x33401e['params']['id']),'tags':_0x304984||[]};});})['then'](respondWithResult(_0x4a3a1b,null))['catch'](handleError(_0x4a3a1b,null));},exports[a236_0x4a0432(0xf4)]=function(_0x39e160,_0x5bc7c2){const _0x391c4d=a236_0x4a0432;return db[_0x391c4d(0x157)][_0x391c4d(0xe1)]({'where':{'id':_0x39e160[_0x391c4d(0x16a)]['id']}})[_0x391c4d(0x172)](handleEntityNotFound(_0x5bc7c2,null))[_0x391c4d(0x172)](function(_0x94585a){const _0x78c53d=_0x391c4d;if(_0x94585a)return _0x94585a['removeTags'](_0x39e160[_0x78c53d(0x166)][_0x78c53d(0x13a)]);})[_0x391c4d(0x172)](respondWithStatusCode(_0x5bc7c2,null))['catch'](handleError(_0x5bc7c2,null));},exports['download']=function(_0x33769e,_0x360a59){const _0x232f29=a236_0x4a0432,_0x57d820=moment()[_0x232f29(0x16c)]()[_0x232f29(0x101)](),_0x1ecafb=path['join'](config[_0x232f29(0x192)],_0x232f29(0x17d),_0x232f29(0x161)),_0xdb4db0=path['join'](config['root'],_0x232f29(0x15e),_0x232f29(0x17d),'attachments'),_0x4d6027=path['join'](_0x1ecafb,_0x57d820),_0x13b89b=util['format'](_0x232f29(0x154),_0x33769e[_0x232f29(0x16a)]['id'],_0x57d820),_0x41f223=path['join'](_0x1ecafb,_0x13b89b),_0x2f2912=[];_0x2f2912['push']({'model':db[_0x232f29(0x15d)],'as':_0x232f29(0x15d),'raw':!![]});const _0xfd4b77=[{'model':db[_0x232f29(0x158)],'as':_0x232f29(0xe8),'attributes':['id',_0x232f29(0x11d),_0x232f29(0x135)],'include':_0x2f2912}];return db['FaxInteraction'][_0x232f29(0xe1)]({'where':{'id':_0x33769e['params']['id']},'include':_0xfd4b77})[_0x232f29(0x172)](handleEntityNotFound(_0x360a59,null))['then'](function(_0x4b7936){const _0x337d5c=_0x232f29;if(_0x4b7936&&_0x4b7936['Messages']){const _0x11625d=_0x4b7936[_0x337d5c(0xef)]({'plain':!![]});fs[_0x337d5c(0x168)](_0x4d6027);for(let _0x3df14a=0x0;_0x3df14a<_0x11625d['Messages'][_0x337d5c(0x118)];_0x3df14a++){const _0x14abf7=_0x11625d[_0x337d5c(0xe8)][_0x3df14a][_0x337d5c(0x15d)];if(_0x14abf7){const _0x29711d=path[_0x337d5c(0x133)](_0xdb4db0,_0x14abf7[_0x337d5c(0x145)]);fs[_0x337d5c(0x105)](_0x29711d)&&fs[_0x337d5c(0x102)](_0x29711d)[_0x337d5c(0xea)](fs[_0x337d5c(0xeb)](path['join'](_0x4d6027,_0x14abf7['basename'])));}}return Promise[_0x337d5c(0xf0)]()[_0x337d5c(0x172)](function(){const _0x4f846b=_0x337d5c;return new Promise(function(_0x248c0a,_0x3e9d29){zipdir(_0x4d6027,{'saveTo':_0x41f223},function(_0xf5fdfc,_0x17f441){if(_0xf5fdfc)return _0x3e9d29(_0xf5fdfc);return _0x248c0a(_0x17f441);});})[_0x4f846b(0x172)](function(){return new Promise(function(_0xa4e435,_0x4b5d55){rimraf(_0x4d6027,function(_0x3033ee){if(_0x3033ee)_0x4b5d55(_0x3033ee);return _0xa4e435();});});})[_0x4f846b(0x172)](function(){const _0x349b06=_0x4f846b;return _0x360a59[_0x349b06(0x15a)](_0x41f223,_0x13b89b,function(_0x4212d){const _0x6e8d5c=_0x349b06;_0x4212d?console[_0x6e8d5c(0x15b)](_0x6e8d5c(0xd4),_0x4212d):fs['unlinkSync'](_0x41f223);});});});}else return _0x360a59[_0x337d5c(0x115)](0xc8);})[_0x232f29(0x15c)](handleError(_0x360a59,null));}; \ No newline at end of file diff --git a/server/api/faxInteraction/faxInteraction.events.js b/server/api/faxInteraction/faxInteraction.events.js index 4fab9aa..13a504e 100644 --- a/server/api/faxInteraction/faxInteraction.events.js +++ b/server/api/faxInteraction/faxInteraction.events.js @@ -1 +1 @@ -const a199_0x1005=['exports','setMaxListeners','emit','unreadMessages','update','length','findAll','events','undefined','FaxMessage','FaxInteraction','getUsers','addHook','Users','setDataValue'];(function(_0x45c07b,_0x1005f8){const _0x54390f=function(_0xeee7c){while(--_0xeee7c){_0x45c07b['push'](_0x45c07b['shift']());}};_0x54390f(++_0x1005f8);}(a199_0x1005,0x72));const a199_0x5439=function(_0x45c07b,_0x1005f8){_0x45c07b=_0x45c07b-0x0;let _0x54390f=a199_0x1005[_0x45c07b];return _0x54390f;};const _0x21c40f=a199_0x5439;'use strict';const EventEmitter=require(_0x21c40f('0xd')),FaxInteraction=require('../../mysqldb')['db'][_0x21c40f('0x1')],FaxMessage=require('../../mysqldb')['db'][_0x21c40f('0x0')],FaxInteractionEvents=new EventEmitter();FaxInteractionEvents[_0x21c40f('0x7')](0x0);const events={'afterCreate':'save','afterUpdate':_0x21c40f('0xa'),'afterDestroy':'remove'};function emitEvent(_0xeee7c){return function(_0x1f822a){const _0x14594b=a199_0x5439;_0x1f822a[_0x14594b('0x2')]({'attributes':['id'],'raw':!![]})['then'](function(_0x30d5fa){const _0x8d741=_0x14594b;return _0x1f822a[_0x8d741('0x5')](_0x8d741('0x4'),_0x30d5fa['map'](function(_0x3c34c8){return{'id':_0x3c34c8['id']};})),FaxMessage[_0x8d741('0xc')]({'where':{'FaxInteractionId':_0x1f822a['id'],'direction':'in','read':![]},'raw':!![]});})['then'](function(_0x292c24){const _0x2f5b15=_0x14594b;_0x1f822a[_0x2f5b15('0x5')](_0x2f5b15('0x9'),_0x292c24[_0x2f5b15('0xb')]),FaxInteractionEvents[_0x2f5b15('0x8')](_0xeee7c+':'+_0x1f822a['id'],_0x1f822a),FaxInteractionEvents['emit'](_0xeee7c,_0x1f822a);})['catch'](()=>{});};}for(const e in events){if(typeof events[e]!==_0x21c40f('0xe')){const event=events[e];FaxInteraction[_0x21c40f('0x3')](e,emitEvent(event));}}module[_0x21c40f('0x6')]=FaxInteractionEvents; \ No newline at end of file +const a237_0x2e80=['setDataValue','then','Users','unreadMessages','save','findAll','catch','emit','exports','remove','events','setMaxListeners','FaxMessage','addHook','length'];(function(_0x4d867f,_0x2def96){const _0x2e8047=function(_0x2a346c){while(--_0x2a346c){_0x4d867f['push'](_0x4d867f['shift']());}};_0x2e8047(++_0x2def96);}(a237_0x2e80,0x149));const a237_0x2a34=function(_0x4d867f,_0x2def96){_0x4d867f=_0x4d867f-0x143;let _0x2e8047=a237_0x2e80[_0x4d867f];return _0x2e8047;};const a237_0x5b823f=a237_0x2a34;'use strict';const EventEmitter=require(a237_0x5b823f(0x14e)),FaxInteraction=require('../../mysqldb')['db']['FaxInteraction'],FaxMessage=require('../../mysqldb')['db'][a237_0x5b823f(0x150)],FaxInteractionEvents=new EventEmitter();FaxInteractionEvents[a237_0x5b823f(0x14f)](0x0);const events={'afterCreate':a237_0x5b823f(0x148),'afterUpdate':'update','afterDestroy':a237_0x5b823f(0x14d)};function emitEvent(_0x545da0){return function(_0x4b889b){const _0x337f9a=a237_0x2a34;_0x4b889b['getUsers']({'attributes':['id'],'raw':!![]})[_0x337f9a(0x145)](function(_0x416a19){const _0xfc7577=_0x337f9a;return _0x4b889b[_0xfc7577(0x144)](_0xfc7577(0x146),_0x416a19['map'](function(_0x40f8f2){return{'id':_0x40f8f2['id']};})),FaxMessage[_0xfc7577(0x149)]({'where':{'FaxInteractionId':_0x4b889b['id'],'direction':'in','read':![]},'raw':!![]});})['then'](function(_0x31e395){const _0x32dcf7=_0x337f9a;_0x4b889b[_0x32dcf7(0x144)](_0x32dcf7(0x147),_0x31e395[_0x32dcf7(0x143)]),FaxInteractionEvents[_0x32dcf7(0x14b)](_0x545da0+':'+_0x4b889b['id'],_0x4b889b),FaxInteractionEvents[_0x32dcf7(0x14b)](_0x545da0,_0x4b889b);})[_0x337f9a(0x14a)](()=>{});};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];FaxInteraction[a237_0x5b823f(0x151)](e,emitEvent(event));}}module[a237_0x5b823f(0x14c)]=FaxInteractionEvents; \ No newline at end of file diff --git a/server/api/faxInteraction/faxInteraction.model.js b/server/api/faxInteraction/faxInteraction.model.js index 73fb53d..4c95605 100644 --- a/server/api/faxInteraction/faxInteraction.model.js +++ b/server/api/faxInteraction/faxInteraction.model.js @@ -1 +1 @@ -const a200_0x3143=['closedAt','define','fax_interactions','./faxInteraction.attributes'];(function(_0x28fc76,_0x3143c8){const _0x38b640=function(_0xb4b5b5){while(--_0xb4b5b5){_0x28fc76['push'](_0x28fc76['shift']());}};_0x38b640(++_0x3143c8);}(a200_0x3143,0x1db));const a200_0x38b6=function(_0x28fc76,_0x3143c8){_0x28fc76=_0x28fc76-0x0;let _0x38b640=a200_0x3143[_0x28fc76];return _0x38b640;};const _0x3cf32d=a200_0x38b6;'use strict';const moment=require('moment'),attributes=require(_0x3cf32d('0x0'));module['exports']=function(_0xb4b5b5){const _0x1888dc=_0x3cf32d,_0x5bf9ca=_0xb4b5b5[_0x1888dc('0x2')]('FaxInteraction',attributes,{'tableName':_0x1888dc('0x3'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x1e0bfc){const _0x8fdef4=_0x1888dc;_0x1e0bfc['changed']('closed')&&(_0x1e0bfc[_0x8fdef4('0x1')]=moment()['format']('YYYY-MM-DD\x20HH:mm:ss'));}}});return _0x5bf9ca;}; \ No newline at end of file +const a238_0x57a4=['FaxInteraction','function','sequelize','init','./faxInteraction.attributes','exports'];(function(_0xd28497,_0xe6e370){const _0x57a430=function(_0x1c0e51){while(--_0x1c0e51){_0xd28497['push'](_0xd28497['shift']());}};_0x57a430(++_0xe6e370);}(a238_0x57a4,0xa9));const a238_0x1c0e=function(_0xd28497,_0xe6e370){_0xd28497=_0xd28497-0x1e9;let _0x57a430=a238_0x57a4[_0xd28497];return _0x57a430;};const a238_0x51f4d1=a238_0x1c0e;'use strict';const {Model}=require(a238_0x51f4d1(0x1ea)),{attributes}=require(a238_0x51f4d1(0x1ec)),{options}=require('./faxInteraction.options');class FaxInteraction extends Model{}function init(_0x16420b,_0x3acaba){const _0x54120f=a238_0x51f4d1,_0x4a4a5e=options(_0x16420b),_0x3ca377=typeof _0x3acaba===_0x54120f(0x1e9)?_0x3acaba(_0x4a4a5e):_0x4a4a5e;return FaxInteraction[_0x54120f(0x1eb)](attributes,_0x3ca377),FaxInteraction;}module[a238_0x51f4d1(0x1ed)][a238_0x51f4d1(0x1ee)]=FaxInteraction,module[a238_0x51f4d1(0x1ed)][a238_0x51f4d1(0x1eb)]=init; \ No newline at end of file diff --git a/server/api/faxInteraction/faxInteraction.options.js b/server/api/faxInteraction/faxInteraction.options.js new file mode 100644 index 0000000..a827018 --- /dev/null +++ b/server/api/faxInteraction/faxInteraction.options.js @@ -0,0 +1 @@ +const a239_0x41f4=['changed','exports','options','moment','fax_interactions','YYYY-MM-DD\x20HH:mm:ss','closedAt'];(function(_0x49f188,_0x5091e3){const _0x41f4f2=function(_0x78e3bd){while(--_0x78e3bd){_0x49f188['push'](_0x49f188['shift']());}};_0x41f4f2(++_0x5091e3);}(a239_0x41f4,0xc2));const a239_0x78e3=function(_0x49f188,_0x5091e3){_0x49f188=_0x49f188-0xe3;let _0x41f4f2=a239_0x41f4[_0x49f188];return _0x41f4f2;};const a239_0x515417=a239_0x78e3,moment=require(a239_0x515417(0xe8));function options(_0x19d8c4){const _0x38351a=a239_0x515417;return{'sequelize':_0x19d8c4,'tableName':_0x38351a(0xe9),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x187f5c){const _0x48b6c5=_0x38351a;_0x187f5c[_0x48b6c5(0xe5)]('closed')&&(_0x187f5c[_0x48b6c5(0xe4)]=moment()['format'](_0x48b6c5(0xe3)));}}};}module[a239_0x515417(0xe6)][a239_0x515417(0xe7)]=options; \ No newline at end of file diff --git a/server/api/faxInteraction/faxInteraction.rpc.js b/server/api/faxInteraction/faxInteraction.rpc.js index dfd4717..da4ce18 100644 --- a/server/api/faxInteraction/faxInteraction.rpc.js +++ b/server/api/faxInteraction/faxInteraction.rpc.js @@ -1 +1 @@ -const a201_0x15b6=['info','update','error','body','register','where','message','FaxInteraction','then','limit','UpdateFaxInteraction','attributes','raw','rpc','AddTagsToFaxInteraction','./faxInteraction.socket','omit','debug','stringify','addTags','options','ids','findOne','catch','AddTags','../../mysqldb'];(function(_0x5b391c,_0x15b644){const _0x2bab9d=function(_0x11a118){while(--_0x11a118){_0x5b391c['push'](_0x5b391c['shift']());}};_0x2bab9d(++_0x15b644);}(a201_0x15b6,0x12f));const a201_0x2bab=function(_0x5b391c,_0x15b644){_0x5b391c=_0x5b391c-0x0;let _0x2bab9d=a201_0x15b6[_0x5b391c];return _0x2bab9d;};const _0x8686a9=a201_0x2bab;'use strict';const _=require('lodash'),db=require(_0x8686a9('0x8'))['db'],logger=require('../../config/logger')(_0x8686a9('0x16')),{getSocket}=require('../../rediscache'),socket=getSocket();require(_0x8686a9('0x18'))[_0x8686a9('0xd')](socket),exports[_0x8686a9('0x13')]=function(_0x11a118){const _0xd83a33=this;return new Promise(function(_0x3dd93b,_0x206a77){const _0x5206db=a201_0x2bab;return db[_0x5206db('0x10')][_0x5206db('0xa')](_0x11a118[_0x5206db('0xc')],{'raw':_0x11a118[_0x5206db('0x3')]?_0x11a118[_0x5206db('0x3')][_0x5206db('0x15')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x11a118[_0x5206db('0x3')]?_0x11a118[_0x5206db('0x3')][_0x5206db('0xe')]||null:null,'attributes':_0x11a118[_0x5206db('0x3')]?_0x11a118['options'][_0x5206db('0x14')]||null:null,'limit':_0x11a118['options']?_0x11a118[_0x5206db('0x3')][_0x5206db('0x12')]||null:null})[_0x5206db('0x11')](function(_0x47b156){const _0x228633=_0x5206db;logger[_0x228633('0x9')](_0x228633('0x13'),_0x11a118),logger[_0x228633('0x0')](_0x228633('0x13'),_0x11a118,JSON['stringify'](_0x47b156)),_0x3dd93b(_0x47b156);})[_0x5206db('0x6')](function(_0x2ba71d){const _0x34d967=_0x5206db;logger[_0x34d967('0xb')]('UpdateFaxInteraction',_0x2ba71d['message'],_0x11a118),_0x206a77(_0xd83a33[_0x34d967('0xb')](0x1f4,_0x2ba71d['message']));});});},exports[_0x8686a9('0x17')]=function(_0x215a0c){const _0x213715=this;return new Promise(function(_0x45fe2f,_0x387ee4){const _0x553549=a201_0x2bab;return db[_0x553549('0x10')][_0x553549('0x5')]({'where':_0x215a0c['options']?_0x215a0c[_0x553549('0x3')][_0x553549('0xe')]||null:null})[_0x553549('0x11')](function(_0x16b736){const _0x25074d=_0x553549;if(_0x16b736)return _0x16b736[_0x25074d('0x2')](_0x215a0c[_0x25074d('0xc')][_0x25074d('0x4')],{'through':_[_0x25074d('0x19')](_0x215a0c[_0x25074d('0xc')],[_0x25074d('0x4'),'id'])});})[_0x553549('0x11')](function([_0x4c25f1]){const _0x573129=_0x553549;logger[_0x573129('0x9')](_0x573129('0x7'),_0x215a0c),logger[_0x573129('0x0')]('AddTags',_0x215a0c,JSON[_0x573129('0x1')](_0x4c25f1)),_0x45fe2f(_0x4c25f1);})[_0x553549('0x6')](function(_0x55dbb0){const _0x2e1694=_0x553549;logger[_0x2e1694('0xb')]('AddTags',_0x55dbb0[_0x2e1694('0xf')],_0x215a0c),_0x387ee4(_0x213715[_0x2e1694('0xb')](0x1f4,_0x55dbb0[_0x2e1694('0xf')]));});});}; \ No newline at end of file +const a240_0xb6c8=['message','raw','then','AddTags','UpdateFaxInteraction','update','rpc','attributes','info','options','../../rediscache','body','ids','error','omit','register','lodash','where','stringify','debug','FaxInteraction','catch','../../mysqldb','limit','./faxInteraction.socket'];(function(_0x3f5288,_0x2e7a2e){const _0xb6c802=function(_0x452f81){while(--_0x452f81){_0x3f5288['push'](_0x3f5288['shift']());}};_0xb6c802(++_0x2e7a2e);}(a240_0xb6c8,0x15f));const a240_0x452f=function(_0x3f5288,_0x2e7a2e){_0x3f5288=_0x3f5288-0xf4;let _0xb6c802=a240_0xb6c8[_0x3f5288];return _0xb6c802;};const a240_0xc5474e=a240_0x452f;'use strict';const _=require(a240_0xc5474e(0x103)),db=require(a240_0xc5474e(0x109))['db'],logger=require('../../config/logger')(a240_0xc5474e(0xf9)),{getSocket}=require(a240_0xc5474e(0xfd)),socket=getSocket();require(a240_0xc5474e(0x10b))[a240_0xc5474e(0x102)](socket),exports['UpdateFaxInteraction']=function(_0x3fa2e6){const _0x9a9c9f=this;return new Promise(function(_0x1c707f,_0x4df0e6){const _0x5b04f2=a240_0x452f;return db['FaxInteraction'][_0x5b04f2(0xf8)](_0x3fa2e6[_0x5b04f2(0xfe)],{'raw':_0x3fa2e6[_0x5b04f2(0xfc)]?_0x3fa2e6['options'][_0x5b04f2(0xf4)]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x3fa2e6['options']?_0x3fa2e6[_0x5b04f2(0xfc)][_0x5b04f2(0x104)]||null:null,'attributes':_0x3fa2e6[_0x5b04f2(0xfc)]?_0x3fa2e6[_0x5b04f2(0xfc)][_0x5b04f2(0xfa)]||null:null,'limit':_0x3fa2e6[_0x5b04f2(0xfc)]?_0x3fa2e6['options'][_0x5b04f2(0x10a)]||null:null})['then'](function(_0x384afb){const _0x5b770f=_0x5b04f2;logger[_0x5b770f(0xfb)](_0x5b770f(0xf7),_0x3fa2e6),logger[_0x5b770f(0x106)](_0x5b770f(0xf7),_0x3fa2e6,JSON[_0x5b770f(0x105)](_0x384afb)),_0x1c707f(_0x384afb);})[_0x5b04f2(0x108)](function(_0x3499a9){const _0x5f4cf2=_0x5b04f2;logger[_0x5f4cf2(0x100)]('UpdateFaxInteraction',_0x3499a9[_0x5f4cf2(0x10c)],_0x3fa2e6),_0x4df0e6(_0x9a9c9f[_0x5f4cf2(0x100)](0x1f4,_0x3499a9[_0x5f4cf2(0x10c)]));});});},exports['AddTagsToFaxInteraction']=function(_0x2d9be4){const _0x1ea435=this;return new Promise(function(_0x1db014,_0x3257de){const _0x598892=a240_0x452f;return db[_0x598892(0x107)]['findOne']({'where':_0x2d9be4[_0x598892(0xfc)]?_0x2d9be4[_0x598892(0xfc)][_0x598892(0x104)]||null:null})[_0x598892(0xf5)](function(_0x21fe2f){const _0x1821a2=_0x598892;if(_0x21fe2f)return _0x21fe2f['addTags'](_0x2d9be4[_0x1821a2(0xfe)]['ids'],{'through':_[_0x1821a2(0x101)](_0x2d9be4[_0x1821a2(0xfe)],[_0x1821a2(0xff),'id'])});})[_0x598892(0xf5)](function([_0x242c89]){const _0x1452a6=_0x598892;logger[_0x1452a6(0xfb)](_0x1452a6(0xf6),_0x2d9be4),logger['debug'](_0x1452a6(0xf6),_0x2d9be4,JSON[_0x1452a6(0x105)](_0x242c89)),_0x1db014(_0x242c89);})[_0x598892(0x108)](function(_0x255470){const _0x422999=_0x598892;logger[_0x422999(0x100)](_0x422999(0xf6),_0x255470[_0x422999(0x10c)],_0x2d9be4),_0x3257de(_0x1ea435[_0x422999(0x100)](0x1f4,_0x255470[_0x422999(0x10c)]));});});}; \ No newline at end of file diff --git a/server/api/faxInteraction/faxInteraction.socket.js b/server/api/faxInteraction/faxInteraction.socket.js index 50f0be4..499e05b 100644 --- a/server/api/faxInteraction/faxInteraction.socket.js +++ b/server/api/faxInteraction/faxInteraction.socket.js @@ -1 +1 @@ -const a202_0x3d1b=['remove','register','./faxInteraction.events','faxInteraction:','update','emit'];(function(_0x4c5836,_0x3d1b0b){const _0x50029f=function(_0x51eb26){while(--_0x51eb26){_0x4c5836['push'](_0x4c5836['shift']());}};_0x50029f(++_0x3d1b0b);}(a202_0x3d1b,0xbb));const a202_0x5002=function(_0x4c5836,_0x3d1b0b){_0x4c5836=_0x4c5836-0x0;let _0x50029f=a202_0x3d1b[_0x4c5836];return _0x50029f;};const _0xbce255=a202_0x5002;'use strict';const FaxInteractionEvents=require(_0xbce255('0x1')),events=['save',_0xbce255('0x5'),_0xbce255('0x3')];function createListener(_0x51eb26,_0xa1375e){return function(_0x37225a){const _0x31956f=a202_0x5002;_0xa1375e[_0x31956f('0x4')](_0x51eb26,_0x37225a);};}exports[_0xbce255('0x0')]=function(_0x56d07d){const _0x4bc78c=_0xbce255;for(let _0x3427e5=0x0,_0xf974d3=events['length'];_0x3427e5<_0xf974d3;_0x3427e5++){const _0x214d55=events[_0x3427e5],_0x243f0d=createListener(_0x4bc78c('0x2')+_0x214d55,_0x56d07d);FaxInteractionEvents['on'](_0x214d55,_0x243f0d);}}; \ No newline at end of file +const a241_0x7fec=['faxInteraction:','./faxInteraction.events','length','save','remove','update','emit'];(function(_0x179e86,_0x5d2010){const _0x7fecb7=function(_0x32cd36){while(--_0x32cd36){_0x179e86['push'](_0x179e86['shift']());}};_0x7fecb7(++_0x5d2010);}(a241_0x7fec,0x163));const a241_0x32cd=function(_0x179e86,_0x5d2010){_0x179e86=_0x179e86-0x1b0;let _0x7fecb7=a241_0x7fec[_0x179e86];return _0x7fecb7;};const a241_0x2225cd=a241_0x32cd;'use strict';const FaxInteractionEvents=require(a241_0x2225cd(0x1b3)),events=[a241_0x2225cd(0x1b5),a241_0x2225cd(0x1b6),a241_0x2225cd(0x1b0)];function createListener(_0x5671fd,_0x19e9da){return function(_0x2d8860){const _0x9db5b8=a241_0x32cd;_0x19e9da[_0x9db5b8(0x1b1)](_0x5671fd,_0x2d8860);};}exports['register']=function(_0xbb919e){const _0x3fe11f=a241_0x2225cd;for(let _0x77b175=0x0,_0x2e4391=events[_0x3fe11f(0x1b4)];_0x77b175<_0x2e4391;_0x77b175++){const _0x48af89=events[_0x77b175],_0x142f4f=createListener(_0x3fe11f(0x1b2)+_0x48af89,_0xbb919e);FaxInteractionEvents['on'](_0x48af89,_0x142f4f);}}; \ No newline at end of file diff --git a/server/api/faxInteraction/index.js b/server/api/faxInteraction/index.js index b363d16..7a318f6 100644 --- a/server/api/faxInteraction/index.js +++ b/server/api/faxInteraction/index.js @@ -1 +1 @@ -const a203_0xd0d1=['isAuthenticated','/:id/messages','getMessages','put','index','/:id','destroy','fax','delete','post','update','tracked','/describe','exports','removeTags','get','../../components/interaction/service','/:id/download','faxinteraction:destroy','describe','download','../../components/auth/service'];(function(_0x5ef62a,_0xd0d15d){const _0x139421=function(_0x517b6f){while(--_0x517b6f){_0x5ef62a['push'](_0x5ef62a['shift']());}};_0x139421(++_0xd0d15d);}(a203_0xd0d1,0xf7));const a203_0x1394=function(_0x5ef62a,_0xd0d15d){_0x5ef62a=_0x5ef62a-0x0;let _0x139421=a203_0xd0d1[_0x5ef62a];return _0x139421;};const _0x1d1647=a203_0x1394;'use strict';const express=require('express'),router=express['Router'](),auth=require(_0x1d1647('0x10')),interaction=require(_0x1d1647('0xb')),controller=require('./faxInteraction.controller');router[_0x1d1647('0xa')]('/',auth['isAuthenticated'](),controller[_0x1d1647('0x15')]),router[_0x1d1647('0xa')](_0x1d1647('0x7'),auth[_0x1d1647('0x11')](),controller[_0x1d1647('0xe')]),router[_0x1d1647('0xa')]('/:id',auth['isAuthenticated'](),controller['show']),router[_0x1d1647('0xa')](_0x1d1647('0x12'),auth[_0x1d1647('0x11')](),controller[_0x1d1647('0x13')]),router[_0x1d1647('0xa')](_0x1d1647('0xc'),auth[_0x1d1647('0x11')](),controller[_0x1d1647('0xf')]),router['post']('/',auth[_0x1d1647('0x11')](),controller['create']),router[_0x1d1647('0x4')](_0x1d1647('0x12'),auth[_0x1d1647('0x11')](),controller['addMessage']),router['post']('/:id/tags',auth[_0x1d1647('0x11')](),interaction[_0x1d1647('0x6')](_0x1d1647('0x2'),'faxinteraction:addtags'),controller['addTags']),router[_0x1d1647('0x14')](_0x1d1647('0x0'),auth[_0x1d1647('0x11')](),interaction[_0x1d1647('0x6')](_0x1d1647('0x2'),'faxinteraction:update'),controller[_0x1d1647('0x5')]),router[_0x1d1647('0x3')](_0x1d1647('0x0'),auth[_0x1d1647('0x11')](),interaction[_0x1d1647('0x6')](_0x1d1647('0x2'),_0x1d1647('0xd')),controller[_0x1d1647('0x1')]),router[_0x1d1647('0x3')]('/:id/tags',auth[_0x1d1647('0x11')](),controller[_0x1d1647('0x9')]),module[_0x1d1647('0x8')]=router; \ No newline at end of file +const a242_0xa058=['fax','destroy','addTags','/:id/download','faxinteraction:destroy','show','tracked','exports','put','../../components/auth/service','/:id','isAuthenticated','addMessage','create','index','../../components/interaction/service','describe','express','update','delete','download','get','/:id/tags','post','/:id/messages'];(function(_0x3b7193,_0x5df90e){const _0xa05880=function(_0xac6dd){while(--_0xac6dd){_0x3b7193['push'](_0x3b7193['shift']());}};_0xa05880(++_0x5df90e);}(a242_0xa058,0xb5));const a242_0xac6d=function(_0x3b7193,_0x5df90e){_0x3b7193=_0x3b7193-0x12f;let _0xa05880=a242_0xa058[_0x3b7193];return _0xa05880;};const a242_0x415318=a242_0xac6d;'use strict';const express=require(a242_0x415318(0x13a)),router=express['Router'](),auth=require(a242_0x415318(0x132)),interaction=require(a242_0x415318(0x138)),controller=require('./faxInteraction.controller');router[a242_0x415318(0x13e)]('/',auth[a242_0x415318(0x134)](),controller[a242_0x415318(0x137)]),router['get']('/describe',auth['isAuthenticated'](),controller[a242_0x415318(0x139)]),router[a242_0x415318(0x13e)](a242_0x415318(0x133),auth[a242_0x415318(0x134)](),controller[a242_0x415318(0x147)]),router[a242_0x415318(0x13e)]('/:id/messages',auth['isAuthenticated'](),controller['getMessages']),router[a242_0x415318(0x13e)](a242_0x415318(0x145),auth['isAuthenticated'](),controller[a242_0x415318(0x13d)]),router[a242_0x415318(0x140)]('/',auth['isAuthenticated'](),controller[a242_0x415318(0x136)]),router['post'](a242_0x415318(0x141),auth[a242_0x415318(0x134)](),controller[a242_0x415318(0x135)]),router['post'](a242_0x415318(0x13f),auth['isAuthenticated'](),interaction['tracked']('fax','faxinteraction:addtags'),controller[a242_0x415318(0x144)]),router[a242_0x415318(0x131)](a242_0x415318(0x133),auth[a242_0x415318(0x134)](),interaction[a242_0x415318(0x12f)](a242_0x415318(0x142),'faxinteraction:update'),controller[a242_0x415318(0x13b)]),router[a242_0x415318(0x13c)](a242_0x415318(0x133),auth[a242_0x415318(0x134)](),interaction[a242_0x415318(0x12f)]('fax',a242_0x415318(0x146)),controller[a242_0x415318(0x143)]),router[a242_0x415318(0x13c)]('/:id/tags',auth[a242_0x415318(0x134)](),controller['removeTags']),module[a242_0x415318(0x130)]=router; \ No newline at end of file diff --git a/server/api/faxMessage/faxMessage.attributes.js b/server/api/faxMessage/faxMessage.attributes.js index e8ef1b3..00e25a9 100644 --- a/server/api/faxMessage/faxMessage.attributes.js +++ b/server/api/faxMessage/faxMessage.attributes.js @@ -1 +1 @@ -const a204_0x32a8=['out','BOOLEAN','ENUM','sequelize','medium','TEXT','exports'];(function(_0x599cf2,_0x32a808){const _0x29743e=function(_0x27491b){while(--_0x27491b){_0x599cf2['push'](_0x599cf2['shift']());}};_0x29743e(++_0x32a808);}(a204_0x32a8,0x1d0));const a204_0x2974=function(_0x599cf2,_0x32a808){_0x599cf2=_0x599cf2-0x0;let _0x29743e=a204_0x32a8[_0x599cf2];return _0x29743e;};const _0x512aff=a204_0x2974;'use strict';const Sequelize=require(_0x512aff('0x1'));module[_0x512aff('0x4')]={'body':{'type':Sequelize[_0x512aff('0x3')](_0x512aff('0x2')),'allowNull':![]},'read':{'type':Sequelize[_0x512aff('0x6')],'defaultValue':![]},'direction':{'type':Sequelize[_0x512aff('0x0')]('in',_0x512aff('0x5')),'defaultValue':_0x512aff('0x5'),'allowNull':![]},'failMessage':{'type':Sequelize[_0x512aff('0x3')],'defaultValue':null},'readAt':{'type':Sequelize['DATE']}}; \ No newline at end of file +const a243_0x6140=['sequelize','exports','TEXT','attributes','ENUM','out','DATE'];(function(_0x1dc28d,_0x3f946b){const _0x6140ae=function(_0x4629d7){while(--_0x4629d7){_0x1dc28d['push'](_0x1dc28d['shift']());}};_0x6140ae(++_0x3f946b);}(a243_0x6140,0x1cf));const a243_0x4629=function(_0x1dc28d,_0x3f946b){_0x1dc28d=_0x1dc28d-0x1e6;let _0x6140ae=a243_0x6140[_0x1dc28d];return _0x6140ae;};const a243_0x539587=a243_0x4629;'use strict';const {DataTypes}=require(a243_0x539587(0x1ec)),attributes={'body':{'type':DataTypes[a243_0x539587(0x1e7)]({'length':'medium'}),'allowNull':![]},'read':{'type':DataTypes['BOOLEAN'],'defaultValue':![]},'direction':{'type':DataTypes[a243_0x539587(0x1e9)]('in','out'),'defaultValue':a243_0x539587(0x1ea),'allowNull':![]},'failMessage':{'type':DataTypes['TEXT'],'defaultValue':null},'readAt':{'type':DataTypes[a243_0x539587(0x1eb)]}};module[a243_0x539587(0x1e6)][a243_0x539587(0x1e8)]=attributes; \ No newline at end of file diff --git a/server/api/faxMessage/faxMessage.controller.js b/server/api/faxMessage/faxMessage.controller.js index 75beeb0..25c6405 100644 --- a/server/api/faxMessage/faxMessage.controller.js +++ b/server/api/faxMessage/faxMessage.controller.js @@ -1 +1 @@ -const a205_0x1b25=['key','sort','/var/opt/motion2/server/files/attachments/%s','index','Attachment','../../config/logger','findAll','FaxMessage,\x20%s,\x20%s','lodash','include','AttachmentId','reject','destroy','manual','result','FaxInteraction','client','interface','../../rediscache','query','VIRTUAL','jayson/promise','like','status','attributes','[FAXMESSAGE:REJECT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s','body','request\x20sent','interaction','nolimit','offset','acceptmessage','info','limit','Contact','order','filter','event','show','FaxInteractionId','path','params','send','create','join','fax-interactions','http','download','count','agent','../../mysqldb','keys','intersection','YYYY-MM-DD\x20HH:mm:ss','model','Content-Range','read','register','ContactId','merge','server','SendFax','UserId','[FAXMESSAGE:ACCEPT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s','stack','debug','read1stAt','attachments','FaxMessage','then','stringify','name','CmContact','options','EventManager','role','includeAll','map','rawAttributes','end','isNil','util','rows','error','request','catch','get','./faxMessage.socket','length','findOne','user','describe','format','moment','basename','acceptMessage','SIP/%s','accept','fields','fax','readAt','type','root','filters','AcceptMessage','null','sequelize','where','channel','message','update','rejectmessage'];(function(_0x408513,_0x1b2563){const _0x4cfcc1=function(_0x11516b){while(--_0x11516b){_0x408513['push'](_0x408513['shift']());}};_0x4cfcc1(++_0x1b2563);}(a205_0x1b25,0x193));const a205_0x4cfc=function(_0x408513,_0x1b2563){_0x408513=_0x408513-0x0;let _0x4cfcc1=a205_0x1b25[_0x408513];return _0x4cfcc1;};const _0x19105b=a205_0x4cfc;'use strict';const moment=require(_0x19105b('0x1a')),util=require(_0x19105b('0xe')),path=require(_0x19105b('0x55')),_=require(_0x19105b('0x35')),{getSocket}=require(_0x19105b('0x3f')),socket=getSocket(),qs=require('../../components/parsers/qs'),logger=require(_0x19105b('0x32'))('api'),config=require('../../config/environment'),interaction_log=require(_0x19105b('0x32'))(_0x19105b('0x5a')),db=require(_0x19105b('0x5f'))['db'],{Op}=require(_0x19105b('0x27'));require(_0x19105b('0x14'))[_0x19105b('0x66')](socket);const jayson=require(_0x19105b('0x42')),client=jayson[_0x19105b('0x3d')][_0x19105b('0x5b')]({'port':0x232c}),client9002=jayson[_0x19105b('0x3d')][_0x19105b('0x5b')]({'port':0x232a});function respondWithRpcPromise(_0x11516b,_0x2c8d64,_0x2b82ab,_0x234cef){return new Promise(function(_0x107f15,_0x1e20c9){const _0x286ec2=a205_0x4cfc,_0x52b2d0=_0x234cef||client;return _0x52b2d0[_0x286ec2('0x11')](_0x11516b,_0x2b82ab)['then'](function(_0x557e4d){const _0x1faa47=_0x286ec2;logger[_0x1faa47('0x4d')](_0x1faa47('0x34'),_0x2c8d64,'request\x20sent'),logger[_0x1faa47('0x6e')]('FaxMessage,\x20%s,\x20%s,\x20%s',_0x2c8d64,_0x1faa47('0x48'),JSON[_0x1faa47('0x3')](_0x557e4d));if(_0x557e4d[_0x1faa47('0x10')]){if(_0x557e4d[_0x1faa47('0x10')]['code']===0x1f4)return logger[_0x1faa47('0x10')](_0x1faa47('0x34'),_0x2c8d64,_0x557e4d['error'][_0x1faa47('0x2a')]),_0x1e20c9(_0x557e4d[_0x1faa47('0x10')]['message']);return logger[_0x1faa47('0x10')]('FaxMessage,\x20%s,\x20%s',_0x2c8d64,_0x557e4d[_0x1faa47('0x10')][_0x1faa47('0x2a')]),_0x107f15(_0x557e4d[_0x1faa47('0x10')]['message']);}else logger[_0x1faa47('0x4d')](_0x1faa47('0x34'),_0x2c8d64,'request\x20sent'),_0x107f15(_0x557e4d[_0x1faa47('0x3b')][_0x1faa47('0x2a')]);})[_0x286ec2('0x12')](function(_0x30f232){const _0x457cf3=_0x286ec2;logger[_0x457cf3('0x10')](_0x457cf3('0x34'),_0x2c8d64,_0x30f232),_0x1e20c9(_0x30f232);});});}function respondWithResult(_0x35be80,_0x4436f0){return _0x4436f0=_0x4436f0||0xc8,function(_0x51836e){if(_0x51836e)return _0x35be80['status'](_0x4436f0)['json'](_0x51836e);};}function respondWithFilteredResult(_0x4508b4,_0x2216f8){return function(_0x21a54){const _0xcf09be=a205_0x4cfc;if(_0x21a54){const _0x1fad77=_0x21a54[_0xcf09be('0x5d')],_0x230ac0=_0x2216f8[_0xcf09be('0x4b')];let _0x3b3ee4=_0x2216f8[_0xcf09be('0x4b')]+_0x2216f8[_0xcf09be('0x4e')],_0x50daf9;return _0x3b3ee4>=_0x1fad77?(_0x3b3ee4=_0x1fad77,_0x50daf9=0xc8):_0x50daf9=0xce,_0x4508b4[_0xcf09be('0x44')](_0x50daf9),_0x4508b4['set'](_0xcf09be('0x64'),_0x230ac0+'-'+_0x3b3ee4+'/'+_0x1fad77)['json'](_0x21a54);}return null;};}function saveUpdates(_0x37a87c){return function(_0xe2184){const _0x160872=a205_0x4cfc;if(_0xe2184)return _0xe2184[_0x160872('0x2b')](_0x37a87c)['then'](function(_0x2fb7ba){return _0x2fb7ba;});return null;};}function removeEntity(_0x143774){return function(_0x8bd43d){const _0x5961f7=a205_0x4cfc;if(_0x8bd43d)return _0x8bd43d['destroy']()[_0x5961f7('0x2')](function(){const _0x5f2d5e=_0x5961f7;_0x143774[_0x5f2d5e('0x44')](0xcc)[_0x5f2d5e('0xc')]();});};}function handleEntityNotFound(_0x558959){return function(_0x2eb6d9){return!_0x2eb6d9&&_0x558959['sendStatus'](0x194),_0x2eb6d9;};}function handleError(_0x11aeeb,_0x53183a){return _0x53183a=_0x53183a||0x1f4,function(_0x2426f6){const _0x49e431=a205_0x4cfc;logger[_0x49e431('0x10')](_0x2426f6[_0x49e431('0x6d')]),_0x2426f6[_0x49e431('0x4')]&&delete _0x2426f6[_0x49e431('0x4')],_0x11aeeb[_0x49e431('0x44')](_0x53183a)[_0x49e431('0x57')](_0x2426f6);};}exports[_0x19105b('0x30')]=function(_0x244776,_0xa497fd){const _0x345315=_0x19105b;let _0x4d0d23={};const _0x1b9669={},_0x52e120={'count':0x0,'rows':[]},_0x1b864b=_[_0x345315('0xa')](db['FaxMessage'][_0x345315('0xb')],function(_0x83fd93){const _0x19dcc3=_0x345315;return{'name':_0x83fd93['fieldName'],'type':_0x83fd93[_0x19dcc3('0x22')][_0x19dcc3('0x2d')]};});_0x1b9669['model']=_['map'](_0x1b864b,'name'),_0x1b9669[_0x345315('0x40')]=_['keys'](_0x244776[_0x345315('0x40')]),_0x1b9669[_0x345315('0x24')]=_[_0x345315('0x61')](_0x1b9669[_0x345315('0x63')],_0x1b9669[_0x345315('0x40')]),_0x4d0d23[_0x345315('0x45')]=_['intersection'](_0x1b9669[_0x345315('0x63')],qs[_0x345315('0x1f')](_0x244776['query'][_0x345315('0x1f')])),_0x4d0d23['attributes']=_0x4d0d23[_0x345315('0x45')][_0x345315('0x15')]?_0x4d0d23['attributes']:_0x1b9669[_0x345315('0x63')];typeof _0x244776['query'][_0x345315('0x4a')]==='undefined'&&(_0x4d0d23[_0x345315('0x4e')]=qs[_0x345315('0x4e')](_0x244776[_0x345315('0x40')][_0x345315('0x4e')]),_0x4d0d23[_0x345315('0x4b')]=qs['offset'](_0x244776[_0x345315('0x40')][_0x345315('0x4b')]));_0x4d0d23[_0x345315('0x50')]=qs['sort'](_0x244776['query'][_0x345315('0x2e')]),_0x4d0d23[_0x345315('0x28')]=qs[_0x345315('0x24')](_['pick'](_0x244776['query'],_0x1b9669[_0x345315('0x24')]),_0x1b864b);_0x244776[_0x345315('0x40')][_0x345315('0x51')]&&(_0x4d0d23[_0x345315('0x28')]=_['merge'](_0x4d0d23['where'],{[Op['or']]:_[_0x345315('0xa')](_0x1b864b,function(_0x27fde2){const _0x43cc94=_0x345315;if(_0x27fde2['type']!==_0x43cc94('0x41')){const _0x3d5f72={};return _0x3d5f72[_0x27fde2[_0x43cc94('0x4')]]={[Op[_0x43cc94('0x43')]]:'%'+_0x244776[_0x43cc94('0x40')][_0x43cc94('0x51')]+'%'},_0x3d5f72;}})}));_0x4d0d23=_[_0x345315('0x68')]({},_0x4d0d23,_0x244776[_0x345315('0x6')]);const _0x5b4fb2={'where':_0x4d0d23[_0x345315('0x28')]};return db[_0x345315('0x1')][_0x345315('0x5d')](_0x5b4fb2)[_0x345315('0x2')](function(_0x41bfde){const _0xbbdf95=_0x345315;return _0x52e120[_0xbbdf95('0x5d')]=_0x41bfde,_0x244776[_0xbbdf95('0x40')][_0xbbdf95('0x9')]&&(_0x4d0d23[_0xbbdf95('0x36')]=[{'all':!![]}]),db[_0xbbdf95('0x1')][_0xbbdf95('0x33')](_0x4d0d23);})[_0x345315('0x2')](function(_0x135772){const _0x497b98=_0x345315;return _0x52e120[_0x497b98('0xf')]=_0x135772,_0x52e120;})['then'](respondWithFilteredResult(_0xa497fd,_0x4d0d23))['catch'](handleError(_0xa497fd,null));},exports[_0x19105b('0x53')]=function(_0x43b4fd,_0x38d50e){const _0x274f83=_0x19105b;let _0x1f5a12={'raw':!![],'where':{'id':_0x43b4fd['params']['id']}};const _0x11df70={};return _0x11df70['model']=_[_0x274f83('0x60')](db[_0x274f83('0x1')]['rawAttributes']),_0x11df70[_0x274f83('0x40')]=_[_0x274f83('0x60')](_0x43b4fd['query']),_0x11df70['filters']=_[_0x274f83('0x61')](_0x11df70[_0x274f83('0x63')],_0x11df70[_0x274f83('0x40')]),_0x1f5a12['attributes']=_[_0x274f83('0x61')](_0x11df70[_0x274f83('0x63')],qs[_0x274f83('0x1f')](_0x43b4fd[_0x274f83('0x40')][_0x274f83('0x1f')])),_0x1f5a12[_0x274f83('0x45')]=_0x1f5a12[_0x274f83('0x45')][_0x274f83('0x15')]?_0x1f5a12[_0x274f83('0x45')]:_0x11df70[_0x274f83('0x63')],_0x43b4fd['query'][_0x274f83('0x9')]&&(_0x1f5a12[_0x274f83('0x36')]=[{'all':!![]}]),_0x1f5a12=_[_0x274f83('0x68')]({},_0x1f5a12,_0x43b4fd['options']),db[_0x274f83('0x1')][_0x274f83('0x16')](_0x1f5a12)['then'](handleEntityNotFound(_0x38d50e,null))['then'](respondWithResult(_0x38d50e,null))[_0x274f83('0x12')](handleError(_0x38d50e,null));},exports[_0x19105b('0x2b')]=function(_0x4735eb,_0x4cc817){const _0x22de86=_0x19105b;return _0x4735eb['body']['id']&&delete _0x4735eb[_0x22de86('0x47')]['id'],db['FaxMessage'][_0x22de86('0x16')]({'where':{'id':_0x4735eb[_0x22de86('0x56')]['id']}})[_0x22de86('0x2')](handleEntityNotFound(_0x4cc817,null))[_0x22de86('0x2')](saveUpdates(_0x4735eb[_0x22de86('0x47')],null))[_0x22de86('0x2')](respondWithResult(_0x4cc817,null))['catch'](handleError(_0x4cc817,null));},exports[_0x19105b('0x39')]=function(_0x133c11,_0x4c4520){const _0x10662b=_0x19105b;return db[_0x10662b('0x1')][_0x10662b('0x16')]({'where':{'id':_0x133c11[_0x10662b('0x56')]['id']}})[_0x10662b('0x2')](handleEntityNotFound(_0x4c4520,null))[_0x10662b('0x2')](removeEntity(_0x4c4520,null))[_0x10662b('0x12')](handleError(_0x4c4520,null));},exports[_0x19105b('0x18')]=function(_0x4aac09,_0x5985ef){const _0x4772cc=_0x19105b;return db['FaxMessage'][_0x4772cc('0x18')]()[_0x4772cc('0x2')](respondWithResult(_0x5985ef,null))[_0x4772cc('0x12')](handleError(_0x5985ef,null));},exports['accept']=function(_0x2c11a4,_0x377bb1){const _0x24682a=_0x19105b,_0x1d7ab1={'channel':_0x24682a('0x20')};return _0x2c11a4[_0x24682a('0x47')]['id']&&delete _0x2c11a4[_0x24682a('0x47')]['id'],_0x2c11a4[_0x24682a('0x47')][_0x24682a('0x65')]=!![],_0x2c11a4[_0x24682a('0x47')][_0x24682a('0x21')]=moment()[_0x24682a('0x19')](_0x24682a('0x62')),_0x2c11a4[_0x24682a('0x47')]['UserId']=_0x2c11a4[_0x24682a('0x47')]['UserId']||_0x2c11a4[_0x24682a('0x17')]['id'],db[_0x24682a('0x1')][_0x24682a('0x16')]({'where':{'id':_0x2c11a4[_0x24682a('0x56')]['id'],'UserId':null},'include':[{'model':db['CmContact'],'as':_0x24682a('0x4f')}]})[_0x24682a('0x2')](handleEntityNotFound(_0x377bb1,null))[_0x24682a('0x2')](saveUpdates(_0x2c11a4[_0x24682a('0x47')],null))['then'](function(_0x5b717c){const _0x527e1c=_0x24682a;if(_0x5b717c)return _0x1d7ab1[_0x527e1c('0x2a')]=_0x5b717c['get']({'plain':!![]}),db[_0x527e1c('0x3c')][_0x527e1c('0x16')]({'where':{'id':_0x5b717c[_0x527e1c('0x54')]}});return null;})[_0x24682a('0x2')](handleEntityNotFound(_0x377bb1,null))[_0x24682a('0x2')](function(_0x181531){const _0x3793d4=_0x24682a;if(_0x181531)return _0x181531[_0x3793d4('0x2b')]({'UserId':_0x2c11a4[_0x3793d4('0x47')]['UserId'],'read1stAt':_[_0x3793d4('0xd')](_0x181531[_0x3793d4('0x6f')])?moment()[_0x3793d4('0x19')](_0x3793d4('0x62')):undefined});return null;})['then'](function(_0x32939f){const _0x42b90c=_0x24682a;if(_0x32939f)return _0x1d7ab1[_0x42b90c('0x49')]=_0x32939f['get']({'plain':!![]}),interaction_log[_0x42b90c('0x4d')](_0x42b90c('0x6c'),_0x2c11a4['user']['id'],_0x2c11a4[_0x42b90c('0x17')][_0x42b90c('0x4')],_0x2c11a4['user']['role'],_0x1d7ab1[_0x42b90c('0x49')]['id'],_0x2c11a4[_0x42b90c('0x47')]?JSON[_0x42b90c('0x3')](_0x2c11a4[_0x42b90c('0x47')]):_0x42b90c('0x26')),respondWithRpcPromise(_0x42b90c('0x25'),_0x42b90c('0x1c'),_0x1d7ab1);return null;})['then'](function(_0x57db84){const _0x34fc10=_0x24682a;if(_0x57db84){if(_0x2c11a4[_0x34fc10('0x47')][_0x34fc10('0x3a')])return _0x1d7ab1[_0x34fc10('0x2a')][_0x34fc10('0x3e')]=util[_0x34fc10('0x19')](_0x34fc10('0x1d'),_0x2c11a4['user'][_0x34fc10('0x4')]),_0x1d7ab1[_0x34fc10('0x2a')]['channel']=_0x1d7ab1[_0x34fc10('0x29')],_0x1d7ab1[_0x34fc10('0x2a')][_0x34fc10('0x52')]=_0x34fc10('0x1e'),respondWithRpcPromise(_0x34fc10('0x7'),_0x34fc10('0x7'),{'event':_0x34fc10('0x4c'),'message':_0x1d7ab1[_0x34fc10('0x2a')]},client9002)[_0x34fc10('0x2')](function(){return _0x1d7ab1;});return _0x1d7ab1;}return null;})['then'](respondWithResult(_0x377bb1,null))['catch'](handleError(_0x377bb1,null));},exports[_0x19105b('0x38')]=function(_0x2008c9,_0x469f04){const _0x1eadea=_0x19105b,_0x1f1922={'agent':{},'channel':_0x1eadea('0x20')};return _0x2008c9[_0x1eadea('0x47')]['id']&&delete _0x2008c9['body']['id'],_0x2008c9[_0x1eadea('0x47')]['UserId']=_0x2008c9[_0x1eadea('0x47')][_0x1eadea('0x6b')]||_0x2008c9[_0x1eadea('0x17')]['id'],_0x1f1922[_0x1eadea('0x5e')]['id']=_0x2008c9[_0x1eadea('0x47')][_0x1eadea('0x6b')],db[_0x1eadea('0x1')][_0x1eadea('0x16')]({'where':{'id':_0x2008c9[_0x1eadea('0x56')]['id'],'UserId':null}})[_0x1eadea('0x2')](handleEntityNotFound(_0x469f04,null))[_0x1eadea('0x2')](function(_0x3f703d){const _0x3bcad9=_0x1eadea;if(_0x3f703d)return _0x1f1922[_0x3bcad9('0x2a')]=_0x3f703d[_0x3bcad9('0x13')]({'plain':!![]}),db[_0x3bcad9('0x3c')]['findOne']({'where':{'id':_0x3f703d[_0x3bcad9('0x54')]}});return null;})[_0x1eadea('0x2')](handleEntityNotFound(_0x469f04,null))[_0x1eadea('0x2')](function(_0x4fff72){const _0x4a9e40=_0x1eadea;if(_0x4fff72)return _0x1f1922[_0x4a9e40('0x49')]=_0x4fff72[_0x4a9e40('0x13')]({'plain':!![]}),interaction_log[_0x4a9e40('0x4d')](_0x4a9e40('0x46'),_0x2008c9[_0x4a9e40('0x17')]['id'],_0x2008c9[_0x4a9e40('0x17')][_0x4a9e40('0x4')],_0x2008c9[_0x4a9e40('0x17')][_0x4a9e40('0x8')],_0x1f1922[_0x4a9e40('0x49')]['id'],_0x2008c9['body']?JSON['stringify'](_0x2008c9[_0x4a9e40('0x47')]):'null'),respondWithRpcPromise('RejectMessage','rejectMessage',_0x1f1922);return null;})[_0x1eadea('0x2')](function(_0x12712a){const _0x41b1bf=_0x1eadea;if(_0x12712a)return _0x12712a[_0x41b1bf('0x2a')][_0x41b1bf('0x3e')]=util[_0x41b1bf('0x19')](_0x41b1bf('0x1d'),_0x2008c9[_0x41b1bf('0x17')]['name']),_0x12712a[_0x41b1bf('0x2a')]['channel']=_0x1f1922['channel'],_0x12712a[_0x41b1bf('0x2a')][_0x41b1bf('0x52')]=_0x41b1bf('0x38'),respondWithRpcPromise('EventManager',_0x41b1bf('0x7'),{'event':_0x41b1bf('0x2c'),'message':_0x12712a[_0x41b1bf('0x2a')]},client9002),_0x1f1922;return null;})[_0x1eadea('0x2')](respondWithResult(_0x469f04,null))[_0x1eadea('0x12')](handleError(_0x469f04,null));},exports[_0x19105b('0x58')]=function(_0x2059c3,_0x4122a7){const _0x4846b1=_0x19105b;let _0x3fd5b6;return db[_0x4846b1('0x1')][_0x4846b1('0x58')](_0x2059c3['body'],{})['then'](function(_0x2d18b3){const _0x4500a7=_0x4846b1;return _0x3fd5b6=_0x2d18b3,db[_0x4500a7('0x5')][_0x4500a7('0x16')]({'where':{'id':_0x3fd5b6[_0x4500a7('0x67')]}});})['then'](function(_0x149a76){const _0x2a1f89=_0x4846b1;if(_[_0x2a1f89('0xd')](_0x149a76))return;else return _0x3fd5b6[_0x2a1f89('0x20')]=_0x149a76[_0x2a1f89('0x20')],db[_0x2a1f89('0x31')][_0x2a1f89('0x16')]({'where':{'id':_0x3fd5b6[_0x2a1f89('0x37')]}});})['then'](function(_0x3b31da){const _0x118ac1=_0x4846b1;return respondWithRpcPromise(_0x118ac1('0x6a'),_0x118ac1('0x6a'),{'FaxAccountId':_[_0x118ac1('0xd')](_0x2059c3[_0x118ac1('0x47')])?undefined:_0x2059c3[_0x118ac1('0x47')]['FaxAccountId'],'path':_[_0x118ac1('0xd')](_0x3b31da)?undefined:util[_0x118ac1('0x19')](_0x118ac1('0x2f'),_0x3b31da[_0x118ac1('0x1b')]),'fax':_['isNil'](_0x3fd5b6[_0x118ac1('0x20')])?undefined:_0x3fd5b6[_0x118ac1('0x20')],'AttachmentId':_0x3fd5b6[_0x118ac1('0x37')]},client9002);})[_0x4846b1('0x2')](respondWithResult(_0x4122a7,0xc9))[_0x4846b1('0x12')](handleError(_0x4122a7,null));},exports[_0x19105b('0x5c')]=function(_0x984519,_0x8dd7aa){const _0x4e99e6=_0x19105b,_0x44b024=path['join'](config[_0x4e99e6('0x23')],_0x4e99e6('0x69'),'files',_0x4e99e6('0x0'));return db[_0x4e99e6('0x1')]['findOne']({'where':{'id':_0x984519[_0x4e99e6('0x56')]['id']},'include':[{'model':db[_0x4e99e6('0x31')],'as':_0x4e99e6('0x31')}]})['then'](handleEntityNotFound(_0x8dd7aa,null))[_0x4e99e6('0x2')](function(_0x5c42a3){const _0x25df0a=_0x4e99e6;if(_0x5c42a3)return _0x8dd7aa[_0x25df0a('0x5c')](path[_0x25df0a('0x59')](_0x44b024,_0x5c42a3[_0x25df0a('0x31')][_0x25df0a('0x1b')]));})[_0x4e99e6('0x12')](handleError(_0x8dd7aa,null));}; \ No newline at end of file +const a244_0x4e03=['jayson/promise','interaction','FaxInteractionId','status','fieldName','../../rediscache','EventManager','rejectMessage','attributes','agent','request\x20sent','debug','api','rejectmessage','json','UserId','filters','result','FaxAccountId','basename','request','sequelize','/var/opt/motion2/server/files/attachments/%s','stack','event','root','role','channel','stringify','undefined','query','[FAXMESSAGE:ACCEPT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s','register','YYYY-MM-DD\x20HH:mm:ss','describe','nolimit','sort','index','AttachmentId','limit','includeAll','null','include','SendFax','error','type','intersection','pick','isNil','map','moment','show','fax','../../config/environment','order','read','attachments','findAll','where','keys','Attachment','./faxMessage.socket','end','name','options','message','SIP/%s','Contact','FaxInteraction','format','fields','join','ContactId','model','merge','set','user','count','files','FaxMessage,\x20%s,\x20%s','accept','params','key','offset','AcceptMessage','fax-interactions','then','CmContact','code','util','create','readAt','http','interface','FaxMessage','manual','get','body','send','info','rawAttributes','client','length','findOne','read1stAt','destroy','sendStatus','update','filter','catch'];(function(_0xbaa6a8,_0x28f10c){const _0x4e0304=function(_0x31588d){while(--_0x31588d){_0xbaa6a8['push'](_0xbaa6a8['shift']());}};_0x4e0304(++_0x28f10c);}(a244_0x4e03,0x6b));const a244_0x3158=function(_0xbaa6a8,_0x28f10c){_0xbaa6a8=_0xbaa6a8-0x118;let _0x4e0304=a244_0x4e03[_0xbaa6a8];return _0x4e0304;};const a244_0x521b24=a244_0x3158;'use strict';const moment=require(a244_0x521b24(0x14d)),util=require(a244_0x521b24(0x174)),path=require('path'),_=require('lodash'),{getSocket}=require(a244_0x521b24(0x120)),socket=getSocket(),qs=require('../../components/parsers/qs'),logger=require('../../config/logger')(a244_0x521b24(0x127)),config=require(a244_0x521b24(0x150)),interaction_log=require('../../config/logger')(a244_0x521b24(0x170)),{db}=require('../../mysqldb'),{Op}=require(a244_0x521b24(0x130));require(a244_0x521b24(0x158))[a244_0x521b24(0x13b)](socket);const jayson=require(a244_0x521b24(0x11b)),client=jayson[a244_0x521b24(0x180)][a244_0x521b24(0x177)]({'port':0x232c}),client9002=jayson['client']['http']({'port':0x232a});function respondWithRpcPromise(_0x200aa4,_0x4b19aa,_0x209028,_0x15c3c5){return new Promise(function(_0xb71247,_0x31d21a){const _0x3b1525=a244_0x3158,_0x3bebb7=_0x15c3c5||client;return _0x3bebb7[_0x3b1525(0x12f)](_0x200aa4,_0x209028)[_0x3b1525(0x171)](function(_0x40781c){const _0x53e2b8=_0x3b1525;logger[_0x53e2b8(0x17e)](_0x53e2b8(0x16a),_0x4b19aa,_0x53e2b8(0x125)),logger[_0x53e2b8(0x126)]('FaxMessage,\x20%s,\x20%s,\x20%s',_0x4b19aa,_0x53e2b8(0x125),JSON['stringify'](_0x40781c));if(_0x40781c[_0x53e2b8(0x147)]){if(_0x40781c[_0x53e2b8(0x147)][_0x53e2b8(0x173)]===0x1f4)return logger[_0x53e2b8(0x147)](_0x53e2b8(0x16a),_0x4b19aa,_0x40781c[_0x53e2b8(0x147)]['message']),_0x31d21a(_0x40781c[_0x53e2b8(0x147)][_0x53e2b8(0x15c)]);return logger[_0x53e2b8(0x147)](_0x53e2b8(0x16a),_0x4b19aa,_0x40781c['error'][_0x53e2b8(0x15c)]),_0xb71247(_0x40781c[_0x53e2b8(0x147)][_0x53e2b8(0x15c)]);}else logger[_0x53e2b8(0x17e)](_0x53e2b8(0x16a),_0x4b19aa,_0x53e2b8(0x125)),_0xb71247(_0x40781c[_0x53e2b8(0x12c)][_0x53e2b8(0x15c)]);})['catch'](function(_0x4fa9ba){const _0x57365b=_0x3b1525;logger[_0x57365b(0x147)]('FaxMessage,\x20%s,\x20%s',_0x4b19aa,_0x4fa9ba),_0x31d21a(_0x4fa9ba);});});}function respondWithResult(_0x1aac2c,_0x461db7){return _0x461db7=_0x461db7||0xc8,function(_0x26a112){const _0x3de323=a244_0x3158;if(_0x26a112)return _0x1aac2c[_0x3de323(0x11e)](_0x461db7)[_0x3de323(0x129)](_0x26a112);};}function respondWithFilteredResult(_0xe63077,_0xf32049){return function(_0x55b840){const _0x1cce4e=a244_0x3158;if(_0x55b840){const _0x3b0601=_0x55b840['count'],_0x3e06cc=_0xf32049['offset'];let _0x3f2b00=_0xf32049['offset']+_0xf32049[_0x1cce4e(0x142)],_0x1dfc87;return _0x3f2b00>=_0x3b0601?(_0x3f2b00=_0x3b0601,_0x1dfc87=0xc8):_0x1dfc87=0xce,_0xe63077[_0x1cce4e(0x11e)](_0x1dfc87),_0xe63077[_0x1cce4e(0x166)]('Content-Range',_0x3e06cc+'-'+_0x3f2b00+'/'+_0x3b0601)['json'](_0x55b840);}return null;};}function saveUpdates(_0x37e807){return function(_0x29ce76){const _0x3dbb84=a244_0x3158;if(_0x29ce76)return _0x29ce76[_0x3dbb84(0x118)](_0x37e807)[_0x3dbb84(0x171)](function(_0x3bc001){return _0x3bc001;});return null;};}function removeEntity(_0x519c05){return function(_0x1cc2c0){const _0x212f93=a244_0x3158;if(_0x1cc2c0)return _0x1cc2c0[_0x212f93(0x184)]()[_0x212f93(0x171)](function(){const _0x1020df=_0x212f93;_0x519c05[_0x1020df(0x11e)](0xcc)[_0x1020df(0x159)]();});};}function handleEntityNotFound(_0x2130c8){return function(_0x5fcd75){const _0x3983c8=a244_0x3158;return!_0x5fcd75&&_0x2130c8[_0x3983c8(0x185)](0x194),_0x5fcd75;};}function handleError(_0xf56a2f,_0x50d74e){return _0x50d74e=_0x50d74e||0x1f4,function(_0x59caab){const _0xbee47=a244_0x3158;logger['error'](_0x59caab[_0xbee47(0x132)]),_0x59caab['name']&&delete _0x59caab[_0xbee47(0x15a)],_0xf56a2f['status'](_0x50d74e)[_0xbee47(0x17d)](_0x59caab);};}exports[a244_0x521b24(0x140)]=function(_0x76579b,_0x42c708){const _0x68fbac=a244_0x521b24;let _0x3db168={};const _0x12a734={},_0x4895d0={'count':0x0,'rows':[]},_0x644254=_['map'](db[_0x68fbac(0x179)][_0x68fbac(0x17f)],function(_0x55d874){const _0x1af9ef=_0x68fbac;return{'name':_0x55d874[_0x1af9ef(0x11f)],'type':_0x55d874[_0x1af9ef(0x148)][_0x1af9ef(0x16d)]};});_0x12a734['model']=_[_0x68fbac(0x14c)](_0x644254,_0x68fbac(0x15a)),_0x12a734['query']=_[_0x68fbac(0x156)](_0x76579b['query']),_0x12a734['filters']=_[_0x68fbac(0x149)](_0x12a734[_0x68fbac(0x164)],_0x12a734[_0x68fbac(0x139)]),_0x3db168[_0x68fbac(0x123)]=_[_0x68fbac(0x149)](_0x12a734[_0x68fbac(0x164)],qs[_0x68fbac(0x161)](_0x76579b[_0x68fbac(0x139)][_0x68fbac(0x161)])),_0x3db168[_0x68fbac(0x123)]=_0x3db168['attributes'][_0x68fbac(0x181)]?_0x3db168[_0x68fbac(0x123)]:_0x12a734['model'];typeof _0x76579b['query'][_0x68fbac(0x13e)]===_0x68fbac(0x138)&&(_0x3db168[_0x68fbac(0x142)]=qs[_0x68fbac(0x142)](_0x76579b[_0x68fbac(0x139)]['limit']),_0x3db168['offset']=qs[_0x68fbac(0x16e)](_0x76579b[_0x68fbac(0x139)][_0x68fbac(0x16e)]));_0x3db168[_0x68fbac(0x151)]=qs['sort'](_0x76579b['query'][_0x68fbac(0x13f)]),_0x3db168['where']=qs[_0x68fbac(0x12b)](_[_0x68fbac(0x14a)](_0x76579b[_0x68fbac(0x139)],_0x12a734[_0x68fbac(0x12b)]),_0x644254);_0x76579b[_0x68fbac(0x139)][_0x68fbac(0x119)]&&(_0x3db168[_0x68fbac(0x155)]=_[_0x68fbac(0x165)](_0x3db168['where'],{[Op['or']]:_['map'](_0x644254,function(_0x325024){const _0x24458f=_0x68fbac;if(_0x325024[_0x24458f(0x148)]!=='VIRTUAL'){const _0x231a38={};return _0x231a38[_0x325024[_0x24458f(0x15a)]]={[Op['like']]:'%'+_0x76579b[_0x24458f(0x139)]['filter']+'%'},_0x231a38;}})}));_0x3db168=_[_0x68fbac(0x165)]({},_0x3db168,_0x76579b[_0x68fbac(0x15b)]);const _0x1070ea={'where':_0x3db168[_0x68fbac(0x155)]};return db[_0x68fbac(0x179)][_0x68fbac(0x168)](_0x1070ea)[_0x68fbac(0x171)](function(_0x1a9f2d){const _0x3c8389=_0x68fbac;return _0x4895d0[_0x3c8389(0x168)]=_0x1a9f2d,_0x76579b[_0x3c8389(0x139)][_0x3c8389(0x143)]&&(_0x3db168[_0x3c8389(0x145)]=[{'all':!![]}]),db['FaxMessage'][_0x3c8389(0x154)](_0x3db168);})[_0x68fbac(0x171)](function(_0xcfd623){return _0x4895d0['rows']=_0xcfd623,_0x4895d0;})['then'](respondWithFilteredResult(_0x42c708,_0x3db168))[_0x68fbac(0x11a)](handleError(_0x42c708,null));},exports[a244_0x521b24(0x14e)]=function(_0x48e415,_0xdf6831){const _0x1d7219=a244_0x521b24;let _0x162273={'raw':!![],'where':{'id':_0x48e415['params']['id']}};const _0x16ff0f={};return _0x16ff0f['model']=_[_0x1d7219(0x156)](db[_0x1d7219(0x179)][_0x1d7219(0x17f)]),_0x16ff0f['query']=_[_0x1d7219(0x156)](_0x48e415[_0x1d7219(0x139)]),_0x16ff0f[_0x1d7219(0x12b)]=_[_0x1d7219(0x149)](_0x16ff0f[_0x1d7219(0x164)],_0x16ff0f['query']),_0x162273[_0x1d7219(0x123)]=_[_0x1d7219(0x149)](_0x16ff0f[_0x1d7219(0x164)],qs[_0x1d7219(0x161)](_0x48e415[_0x1d7219(0x139)]['fields'])),_0x162273[_0x1d7219(0x123)]=_0x162273[_0x1d7219(0x123)][_0x1d7219(0x181)]?_0x162273[_0x1d7219(0x123)]:_0x16ff0f[_0x1d7219(0x164)],_0x48e415[_0x1d7219(0x139)][_0x1d7219(0x143)]&&(_0x162273[_0x1d7219(0x145)]=[{'all':!![]}]),_0x162273=_[_0x1d7219(0x165)]({},_0x162273,_0x48e415['options']),db[_0x1d7219(0x179)][_0x1d7219(0x182)](_0x162273)[_0x1d7219(0x171)](handleEntityNotFound(_0xdf6831,null))[_0x1d7219(0x171)](respondWithResult(_0xdf6831,null))['catch'](handleError(_0xdf6831,null));},exports[a244_0x521b24(0x118)]=function(_0x5f05fc,_0x440b5d){const _0x25ff38=a244_0x521b24;return _0x5f05fc['body']['id']&&delete _0x5f05fc[_0x25ff38(0x17c)]['id'],db[_0x25ff38(0x179)][_0x25ff38(0x182)]({'where':{'id':_0x5f05fc[_0x25ff38(0x16c)]['id']}})[_0x25ff38(0x171)](handleEntityNotFound(_0x440b5d,null))[_0x25ff38(0x171)](saveUpdates(_0x5f05fc[_0x25ff38(0x17c)],null))['then'](respondWithResult(_0x440b5d,null))[_0x25ff38(0x11a)](handleError(_0x440b5d,null));},exports['destroy']=function(_0x2a5282,_0xacbb4b){const _0x385862=a244_0x521b24;return db[_0x385862(0x179)][_0x385862(0x182)]({'where':{'id':_0x2a5282['params']['id']}})[_0x385862(0x171)](handleEntityNotFound(_0xacbb4b,null))[_0x385862(0x171)](removeEntity(_0xacbb4b,null))[_0x385862(0x11a)](handleError(_0xacbb4b,null));},exports[a244_0x521b24(0x13d)]=function(_0x3ff6a1,_0x38464e){const _0x22b380=a244_0x521b24;return db['FaxMessage'][_0x22b380(0x13d)]()[_0x22b380(0x171)](respondWithResult(_0x38464e,null))['catch'](handleError(_0x38464e,null));},exports[a244_0x521b24(0x16b)]=function(_0xb70c5b,_0x5a60c1){const _0x5da520=a244_0x521b24,_0x28dcb7={'channel':'fax'};return _0xb70c5b['body']['id']&&delete _0xb70c5b[_0x5da520(0x17c)]['id'],_0xb70c5b['body'][_0x5da520(0x152)]=!![],_0xb70c5b[_0x5da520(0x17c)][_0x5da520(0x176)]=moment()[_0x5da520(0x160)]('YYYY-MM-DD\x20HH:mm:ss'),_0xb70c5b[_0x5da520(0x17c)]['UserId']=_0xb70c5b['body'][_0x5da520(0x12a)]||_0xb70c5b[_0x5da520(0x167)]['id'],db[_0x5da520(0x179)][_0x5da520(0x182)]({'where':{'id':_0xb70c5b[_0x5da520(0x16c)]['id'],'UserId':null},'include':[{'model':db[_0x5da520(0x172)],'as':_0x5da520(0x15e)}]})[_0x5da520(0x171)](handleEntityNotFound(_0x5a60c1,null))[_0x5da520(0x171)](saveUpdates(_0xb70c5b[_0x5da520(0x17c)],null))[_0x5da520(0x171)](function(_0x463a22){const _0x15f733=_0x5da520;if(_0x463a22)return _0x28dcb7[_0x15f733(0x15c)]=_0x463a22[_0x15f733(0x17b)]({'plain':!![]}),db[_0x15f733(0x15f)]['findOne']({'where':{'id':_0x463a22[_0x15f733(0x11d)]}});return null;})[_0x5da520(0x171)](handleEntityNotFound(_0x5a60c1,null))[_0x5da520(0x171)](function(_0x2489f){const _0x45cd60=_0x5da520;if(_0x2489f)return _0x2489f['update']({'UserId':_0xb70c5b[_0x45cd60(0x17c)][_0x45cd60(0x12a)],'read1stAt':_[_0x45cd60(0x14b)](_0x2489f[_0x45cd60(0x183)])?moment()[_0x45cd60(0x160)](_0x45cd60(0x13c)):undefined});return null;})[_0x5da520(0x171)](function(_0x4b2c47){const _0x512cdf=_0x5da520;if(_0x4b2c47)return _0x28dcb7[_0x512cdf(0x11c)]=_0x4b2c47[_0x512cdf(0x17b)]({'plain':!![]}),interaction_log[_0x512cdf(0x17e)](_0x512cdf(0x13a),_0xb70c5b[_0x512cdf(0x167)]['id'],_0xb70c5b[_0x512cdf(0x167)][_0x512cdf(0x15a)],_0xb70c5b[_0x512cdf(0x167)]['role'],_0x28dcb7['interaction']['id'],_0xb70c5b['body']?JSON[_0x512cdf(0x137)](_0xb70c5b[_0x512cdf(0x17c)]):_0x512cdf(0x144)),respondWithRpcPromise(_0x512cdf(0x16f),'acceptMessage',_0x28dcb7);return null;})['then'](function(_0xf0871e){const _0x1b710b=_0x5da520;if(_0xf0871e){if(_0xb70c5b['body'][_0x1b710b(0x17a)])return _0x28dcb7[_0x1b710b(0x15c)][_0x1b710b(0x178)]=util[_0x1b710b(0x160)](_0x1b710b(0x15d),_0xb70c5b[_0x1b710b(0x167)][_0x1b710b(0x15a)]),_0x28dcb7[_0x1b710b(0x15c)][_0x1b710b(0x136)]=_0x28dcb7[_0x1b710b(0x136)],_0x28dcb7['message'][_0x1b710b(0x133)]=_0x1b710b(0x16b),respondWithRpcPromise(_0x1b710b(0x121),'EventManager',{'event':'acceptmessage','message':_0x28dcb7['message']},client9002)[_0x1b710b(0x171)](function(){return _0x28dcb7;});return _0x28dcb7;}return null;})[_0x5da520(0x171)](respondWithResult(_0x5a60c1,null))[_0x5da520(0x11a)](handleError(_0x5a60c1,null));},exports['reject']=function(_0x46e8c5,_0x2d49a0){const _0x582d5a=a244_0x521b24,_0x1849a3={'agent':{},'channel':_0x582d5a(0x14f)};return _0x46e8c5[_0x582d5a(0x17c)]['id']&&delete _0x46e8c5[_0x582d5a(0x17c)]['id'],_0x46e8c5[_0x582d5a(0x17c)][_0x582d5a(0x12a)]=_0x46e8c5[_0x582d5a(0x17c)]['UserId']||_0x46e8c5['user']['id'],_0x1849a3[_0x582d5a(0x124)]['id']=_0x46e8c5[_0x582d5a(0x17c)][_0x582d5a(0x12a)],db[_0x582d5a(0x179)][_0x582d5a(0x182)]({'where':{'id':_0x46e8c5[_0x582d5a(0x16c)]['id'],'UserId':null}})['then'](handleEntityNotFound(_0x2d49a0,null))[_0x582d5a(0x171)](function(_0x4ed38d){const _0x22850e=_0x582d5a;if(_0x4ed38d)return _0x1849a3[_0x22850e(0x15c)]=_0x4ed38d[_0x22850e(0x17b)]({'plain':!![]}),db[_0x22850e(0x15f)]['findOne']({'where':{'id':_0x4ed38d[_0x22850e(0x11d)]}});return null;})[_0x582d5a(0x171)](handleEntityNotFound(_0x2d49a0,null))[_0x582d5a(0x171)](function(_0x276537){const _0x5b9c86=_0x582d5a;if(_0x276537)return _0x1849a3[_0x5b9c86(0x11c)]=_0x276537[_0x5b9c86(0x17b)]({'plain':!![]}),interaction_log[_0x5b9c86(0x17e)]('[FAXMESSAGE:REJECT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s',_0x46e8c5[_0x5b9c86(0x167)]['id'],_0x46e8c5[_0x5b9c86(0x167)]['name'],_0x46e8c5[_0x5b9c86(0x167)][_0x5b9c86(0x135)],_0x1849a3['interaction']['id'],_0x46e8c5[_0x5b9c86(0x17c)]?JSON[_0x5b9c86(0x137)](_0x46e8c5[_0x5b9c86(0x17c)]):_0x5b9c86(0x144)),respondWithRpcPromise('RejectMessage',_0x5b9c86(0x122),_0x1849a3);return null;})[_0x582d5a(0x171)](function(_0x3b9ca2){const _0x3e3f49=_0x582d5a;if(_0x3b9ca2)return _0x3b9ca2['message'][_0x3e3f49(0x178)]=util['format']('SIP/%s',_0x46e8c5[_0x3e3f49(0x167)][_0x3e3f49(0x15a)]),_0x3b9ca2[_0x3e3f49(0x15c)][_0x3e3f49(0x136)]=_0x1849a3[_0x3e3f49(0x136)],_0x3b9ca2[_0x3e3f49(0x15c)][_0x3e3f49(0x133)]='reject',respondWithRpcPromise(_0x3e3f49(0x121),_0x3e3f49(0x121),{'event':_0x3e3f49(0x128),'message':_0x3b9ca2['message']},client9002),_0x1849a3;return null;})['then'](respondWithResult(_0x2d49a0,null))[_0x582d5a(0x11a)](handleError(_0x2d49a0,null));},exports['create']=function(_0x23cf53,_0x5c702f){const _0x21efd=a244_0x521b24;let _0x2826fa;return db['FaxMessage'][_0x21efd(0x175)](_0x23cf53[_0x21efd(0x17c)],{})[_0x21efd(0x171)](function(_0x8ef44){const _0xa51cdd=_0x21efd;return _0x2826fa=_0x8ef44,db[_0xa51cdd(0x172)][_0xa51cdd(0x182)]({'where':{'id':_0x2826fa[_0xa51cdd(0x163)]}});})[_0x21efd(0x171)](function(_0x1ce3c9){const _0x1bd5d1=_0x21efd;if(_[_0x1bd5d1(0x14b)](_0x1ce3c9))return;else return _0x2826fa[_0x1bd5d1(0x14f)]=_0x1ce3c9['fax'],db[_0x1bd5d1(0x157)][_0x1bd5d1(0x182)]({'where':{'id':_0x2826fa[_0x1bd5d1(0x141)]}});})[_0x21efd(0x171)](function(_0x5ebd0c){const _0x306136=_0x21efd;return respondWithRpcPromise(_0x306136(0x146),_0x306136(0x146),{'FaxAccountId':_[_0x306136(0x14b)](_0x23cf53[_0x306136(0x17c)])?undefined:_0x23cf53[_0x306136(0x17c)][_0x306136(0x12d)],'path':_[_0x306136(0x14b)](_0x5ebd0c)?undefined:util[_0x306136(0x160)](_0x306136(0x131),_0x5ebd0c[_0x306136(0x12e)]),'fax':_[_0x306136(0x14b)](_0x2826fa['fax'])?undefined:_0x2826fa[_0x306136(0x14f)],'AttachmentId':_0x2826fa[_0x306136(0x141)]},client9002);})['then'](respondWithResult(_0x5c702f,0xc9))[_0x21efd(0x11a)](handleError(_0x5c702f,null));},exports['download']=function(_0x2d4f8f,_0x115952){const _0x33513f=a244_0x521b24,_0x389cc6=path[_0x33513f(0x162)](config[_0x33513f(0x134)],'server',_0x33513f(0x169),_0x33513f(0x153));return db['FaxMessage'][_0x33513f(0x182)]({'where':{'id':_0x2d4f8f[_0x33513f(0x16c)]['id']},'include':[{'model':db[_0x33513f(0x157)],'as':_0x33513f(0x157)}]})[_0x33513f(0x171)](handleEntityNotFound(_0x115952,null))[_0x33513f(0x171)](function(_0x35be25){const _0x5caff3=_0x33513f;if(_0x35be25)return _0x115952['download'](path[_0x5caff3(0x162)](_0x389cc6,_0x35be25[_0x5caff3(0x157)]['basename']));})[_0x33513f(0x11a)](handleError(_0x115952,null));}; \ No newline at end of file diff --git a/server/api/faxMessage/faxMessage.events.js b/server/api/faxMessage/faxMessage.events.js index 0f26f6b..ff41cee 100644 --- a/server/api/faxMessage/faxMessage.events.js +++ b/server/api/faxMessage/faxMessage.events.js @@ -1 +1 @@ -const a206_0x5520=['setMaxListeners','events','emit','exports','undefined','save','remove','FaxMessage','update'];(function(_0xa2db7f,_0x552038){const _0x2ddd75=function(_0x5c44df){while(--_0x5c44df){_0xa2db7f['push'](_0xa2db7f['shift']());}};_0x2ddd75(++_0x552038);}(a206_0x5520,0x191));const a206_0x2ddd=function(_0xa2db7f,_0x552038){_0xa2db7f=_0xa2db7f-0x0;let _0x2ddd75=a206_0x5520[_0xa2db7f];return _0x2ddd75;};const _0x5788d9=a206_0x2ddd;'use strict';const EventEmitter=require(_0x5788d9('0x5')),FaxMessage=require('../../mysqldb')['db'][_0x5788d9('0x2')],FaxMessageEvents=new EventEmitter();FaxMessageEvents[_0x5788d9('0x4')](0x0);const events={'afterCreate':_0x5788d9('0x0'),'afterUpdate':_0x5788d9('0x3'),'afterDestroy':_0x5788d9('0x1')};function emitEvent(_0x5c44df){return function(_0x408b60){const _0x50857c=a206_0x2ddd;FaxMessageEvents[_0x50857c('0x6')](_0x5c44df+':'+_0x408b60['id'],_0x408b60),FaxMessageEvents[_0x50857c('0x6')](_0x5c44df,_0x408b60);};}for(const e in events){if(typeof events[e]!==_0x5788d9('0x8')){const event=events[e];FaxMessage['addHook'](e,emitEvent(event));}}module[_0x5788d9('0x7')]=FaxMessageEvents; \ No newline at end of file +const a245_0x529d=['undefined','setMaxListeners','FaxMessage','emit','save','../../mysqldb','addHook'];(function(_0x1f2b12,_0x346566){const _0x529d3=function(_0x3bfe5c){while(--_0x3bfe5c){_0x1f2b12['push'](_0x1f2b12['shift']());}};_0x529d3(++_0x346566);}(a245_0x529d,0x148));const a245_0x3bfe=function(_0x1f2b12,_0x346566){_0x1f2b12=_0x1f2b12-0x13c;let _0x529d3=a245_0x529d[_0x1f2b12];return _0x529d3;};const a245_0x5c152a=a245_0x3bfe;'use strict';const EventEmitter=require('events'),FaxMessage=require(a245_0x5c152a(0x142))['db'][a245_0x5c152a(0x13f)],FaxMessageEvents=new EventEmitter();FaxMessageEvents[a245_0x5c152a(0x13e)](0x0);const events={'afterCreate':a245_0x5c152a(0x141),'afterUpdate':'update','afterDestroy':'remove'};function emitEvent(_0x39ebcd){return function(_0x53695f){const _0x70b4be=a245_0x3bfe;FaxMessageEvents['emit'](_0x39ebcd+':'+_0x53695f['id'],_0x53695f),FaxMessageEvents[_0x70b4be(0x140)](_0x39ebcd,_0x53695f);};}for(const e in events){if(typeof events[e]!==a245_0x5c152a(0x13d)){const event=events[e];FaxMessage[a245_0x5c152a(0x13c)](e,emitEvent(event));}}module['exports']=FaxMessageEvents; \ No newline at end of file diff --git a/server/api/faxMessage/faxMessage.model.js b/server/api/faxMessage/faxMessage.model.js index 741ac1d..f2c00d4 100644 --- a/server/api/faxMessage/faxMessage.model.js +++ b/server/api/faxMessage/faxMessage.model.js @@ -1 +1 @@ -const a207_0x3048=['models','FULLTEXT','lodash','error','FaxInteraction','UserId','then','out','exports','get','direction','secret','toLowerCase','FaxMessage','body','fti_fax_messages','createdAt','define','isNil','utf8mb4','fax_messages'];(function(_0x4640fb,_0x304866){const _0x446ed9=function(_0x429d3d){while(--_0x429d3d){_0x4640fb['push'](_0x4640fb['shift']());}};_0x446ed9(++_0x304866);}(a207_0x3048,0x195));const a207_0x446e=function(_0x4640fb,_0x304866){_0x4640fb=_0x4640fb-0x0;let _0x446ed9=a207_0x3048[_0x4640fb];return _0x446ed9;};const _0x335f61=a207_0x446e;'use strict';const _=require(_0x335f61('0x11')),attributes=require('./faxMessage.attributes');module[_0x335f61('0x2')]=function(_0x429d3d){const _0x525c76=_0x335f61,_0x773b56=_0x429d3d[_0x525c76('0xf')],_0x458fd8=_0x429d3d[_0x525c76('0xb')](_0x525c76('0x7'),attributes,{'tableName':_0x525c76('0xe'),'paranoid':![],'indexes':[{'name':_0x525c76('0x9'),'fields':[_0x525c76('0x8')],'type':_0x525c76('0x10')}],'timestamps':!![],'hooks':{'afterCreate':function(_0x3cdf95){const _0x577604=_0x525c76,_0x417d81=_0x3cdf95[_0x577604('0x3')]({'plain':!![]});(_0x417d81['direction']['toLowerCase']()==='in'||_0x417d81[_0x577604('0x4')][_0x577604('0x6')]()===_0x577604('0x1')&&!_0x417d81[_0x577604('0x5')]&&!_[_0x577604('0xc')](_0x417d81[_0x577604('0x14')]))&&_0x773b56[_0x577604('0x13')]['findOne']({'where':{'id':_0x417d81['FaxInteractionId']}})[_0x577604('0x0')](function(_0x4296ea){const _0x176e96=_0x577604;_0x4296ea&&_0x4296ea['update']({'lastMsgAt':_0x417d81[_0x176e96('0xa')],'lastMsgDirection':_0x417d81[_0x176e96('0x4')][_0x176e96('0x6')]()});})['catch'](function(_0x12686b){const _0x5d4ac3=_0x577604;console[_0x5d4ac3('0x12')](_0x12686b);});}},'charset':_0x525c76('0xd'),'collate':'utf8mb4_unicode_ci'});return _0x458fd8;}; \ No newline at end of file +const a246_0x4b1e=['sequelize','init','exports','./faxMessage.options','FaxMessage'];(function(_0x351ef2,_0x34858e){const _0x4b1e19=function(_0x27a4b9){while(--_0x27a4b9){_0x351ef2['push'](_0x351ef2['shift']());}};_0x4b1e19(++_0x34858e);}(a246_0x4b1e,0x1e4));const a246_0x27a4=function(_0x351ef2,_0x34858e){_0x351ef2=_0x351ef2-0x136;let _0x4b1e19=a246_0x4b1e[_0x351ef2];return _0x4b1e19;};const a246_0x13d1a3=a246_0x27a4;'use strict';const {Model}=require(a246_0x13d1a3(0x137)),{attributes}=require('./faxMessage.attributes'),{options}=require(a246_0x13d1a3(0x13a));class FaxMessage extends Model{}function init(_0x51c268,_0x4fbc90){const _0x5da9c2=options(_0x51c268),_0xb8595=typeof _0x4fbc90==='function'?_0x4fbc90(_0x5da9c2):_0x5da9c2;return FaxMessage['init'](attributes,_0xb8595),FaxMessage;}module[a246_0x13d1a3(0x139)][a246_0x13d1a3(0x136)]=FaxMessage,module[a246_0x13d1a3(0x139)][a246_0x13d1a3(0x138)]=init; \ No newline at end of file diff --git a/server/api/faxMessage/faxMessage.options.js b/server/api/faxMessage/faxMessage.options.js new file mode 100644 index 0000000..d717ccf --- /dev/null +++ b/server/api/faxMessage/faxMessage.options.js @@ -0,0 +1 @@ +const a247_0x14aa=['models','options','error','toLowerCase','createdAt','isNil','exports','catch','fti_fax_messages','fax_messages','FaxInteraction','direction','UserId','body','findOne','get','utf8mb4_unicode_ci','FULLTEXT','secret'];(function(_0x55bc6d,_0x35702d){const _0x14aaa6=function(_0x5b8729){while(--_0x5b8729){_0x55bc6d['push'](_0x55bc6d['shift']());}};_0x14aaa6(++_0x35702d);}(a247_0x14aa,0x7c));const a247_0x5b87=function(_0x55bc6d,_0x35702d){_0x55bc6d=_0x55bc6d-0xd1;let _0x14aaa6=a247_0x14aa[_0x55bc6d];return _0x14aaa6;};const a247_0x6e42ff=a247_0x5b87,_=require('lodash');function options(_0x4e7a8d){const _0xf0ba0=a247_0x5b87;return{'sequelize':_0x4e7a8d,'tableName':_0xf0ba0(0xe3),'paranoid':![],'indexes':[{'name':_0xf0ba0(0xe2),'fields':[_0xf0ba0(0xd4)],'type':_0xf0ba0(0xd8)}],'timestamps':!![],'hooks':{'afterCreate':function(_0x4d0b0a){const _0x52714d=_0xf0ba0,_0x29c5d6=_0x4e7a8d[_0x52714d(0xda)],_0x239c52=_0x4d0b0a[_0x52714d(0xd6)]({'plain':!![]});(_0x239c52['direction']['toLowerCase']()==='in'||_0x239c52[_0x52714d(0xd2)]['toLowerCase']()==='out'&&!_0x239c52[_0x52714d(0xd9)]&&!_[_0x52714d(0xdf)](_0x239c52[_0x52714d(0xd3)]))&&_0x29c5d6[_0x52714d(0xd1)][_0x52714d(0xd5)]({'where':{'id':_0x239c52['FaxInteractionId']}})['then'](function(_0x2730e6){const _0xc28d95=_0x52714d;_0x2730e6&&_0x2730e6['update']({'lastMsgAt':_0x239c52[_0xc28d95(0xde)],'lastMsgDirection':_0x239c52[_0xc28d95(0xd2)][_0xc28d95(0xdd)]()});})[_0x52714d(0xe1)](function(_0x44044f){const _0x1df312=_0x52714d;console[_0x1df312(0xdc)](_0x44044f);});}},'charset':'utf8mb4','collate':_0xf0ba0(0xd7)};}module[a247_0x6e42ff(0xe0)][a247_0x6e42ff(0xdb)]=options; \ No newline at end of file diff --git a/server/api/faxMessage/faxMessage.rpc.js b/server/api/faxMessage/faxMessage.rpc.js index 6672875..d916654 100644 --- a/server/api/faxMessage/faxMessage.rpc.js +++ b/server/api/faxMessage/faxMessage.rpc.js @@ -1 +1 @@ -const a208_0x3d25=['debug','where','then','../../mysqldb','../../rediscache','FaxMessage','attributes','options','catch','error','./faxMessage.socket','body','../../config/logger','raw','UpdateFaxMessage','update','create','limit','message','rpc','CreateFaxMessage','info','stringify'];(function(_0x5055de,_0x3d256d){const _0x6d08bc=function(_0xfde81e){while(--_0xfde81e){_0x5055de['push'](_0x5055de['shift']());}};_0x6d08bc(++_0x3d256d);}(a208_0x3d25,0x147));const a208_0x6d08=function(_0x5055de,_0x3d256d){_0x5055de=_0x5055de-0x0;let _0x6d08bc=a208_0x3d25[_0x5055de];return _0x6d08bc;};const _0x10d8f5=a208_0x6d08;'use strict';const db=require(_0x10d8f5('0x15'))['db'],logger=require(_0x10d8f5('0x7'))(_0x10d8f5('0xe')),{getSocket}=require(_0x10d8f5('0x16')),socket=getSocket();require(_0x10d8f5('0x5'))['register'](socket),exports[_0x10d8f5('0xf')]=function(_0xfde81e){const _0x4c1483=this;return new Promise(function(_0x1bd791,_0x5bf638){const _0x38ebba=a208_0x6d08;return db[_0x38ebba('0x0')][_0x38ebba('0xb')](_0xfde81e[_0x38ebba('0x6')],{'raw':_0xfde81e['options']?_0xfde81e['options'][_0x38ebba('0x8')]===undefined?!![]:![]:!![]})[_0x38ebba('0x14')](function(_0x32ffac){const _0x4933bf=_0x38ebba;logger[_0x4933bf('0x10')]('CreateFaxMessage',_0xfde81e),logger[_0x4933bf('0x12')](_0x4933bf('0xf'),_0xfde81e,JSON[_0x4933bf('0x11')](_0x32ffac)),_0x1bd791(_0x32ffac);})[_0x38ebba('0x3')](function(_0x13a343){const _0x369564=_0x38ebba;logger[_0x369564('0x4')](_0x369564('0xf'),_0x13a343[_0x369564('0xd')],_0xfde81e),_0x5bf638(_0x4c1483[_0x369564('0x4')](0x1f4,_0x13a343['message']));});});},exports[_0x10d8f5('0x9')]=function(_0x3f090e){const _0x2e2774=this;return new Promise(function(_0x22fed0,_0x31b145){const _0x335f0c=a208_0x6d08;return db[_0x335f0c('0x0')][_0x335f0c('0xa')](_0x3f090e[_0x335f0c('0x6')],{'raw':_0x3f090e[_0x335f0c('0x2')]?_0x3f090e['options'][_0x335f0c('0x8')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x3f090e['options']?_0x3f090e[_0x335f0c('0x2')][_0x335f0c('0x13')]||null:null,'attributes':_0x3f090e[_0x335f0c('0x2')]?_0x3f090e['options'][_0x335f0c('0x1')]||null:null,'limit':_0x3f090e[_0x335f0c('0x2')]?_0x3f090e['options'][_0x335f0c('0xc')]||null:null})['then'](function(_0x33e460){const _0x44da30=_0x335f0c;logger[_0x44da30('0x10')]('UpdateFaxMessage',_0x3f090e),logger[_0x44da30('0x12')](_0x44da30('0x9'),_0x3f090e,JSON[_0x44da30('0x11')](_0x33e460)),_0x22fed0(_0x33e460);})[_0x335f0c('0x3')](function(_0x271dc5){const _0x1ec85c=_0x335f0c;logger[_0x1ec85c('0x4')](_0x1ec85c('0x9'),_0x271dc5[_0x1ec85c('0xd')],_0x3f090e),_0x31b145(_0x2e2774[_0x1ec85c('0x4')](0x1f4,_0x271dc5[_0x1ec85c('0xd')]));});});}; \ No newline at end of file +const a248_0x475d=['error','options','raw','CreateFaxMessage','./faxMessage.socket','info','then','rpc','body','catch','message','../../rediscache','where','update','stringify','debug','../../config/logger','create','FaxMessage','UpdateFaxMessage'];(function(_0x156652,_0x2d3ed3){const _0x475d09=function(_0x1a8377){while(--_0x1a8377){_0x156652['push'](_0x156652['shift']());}};_0x475d09(++_0x2d3ed3);}(a248_0x475d,0x17e));const a248_0x1a83=function(_0x156652,_0x2d3ed3){_0x156652=_0x156652-0x1d5;let _0x475d09=a248_0x475d[_0x156652];return _0x475d09;};const a248_0xf7671d=a248_0x1a83;'use strict';const db=require('../../mysqldb')['db'],logger=require(a248_0xf7671d(0x1e3))(a248_0xf7671d(0x1da)),{getSocket}=require(a248_0xf7671d(0x1de)),socket=getSocket();require(a248_0xf7671d(0x1d7))['register'](socket),exports['CreateFaxMessage']=function(_0x511696){const _0x2ae742=this;return new Promise(function(_0x7de8d,_0x2886c8){const _0x1679ca=a248_0x1a83;return db['FaxMessage'][_0x1679ca(0x1e4)](_0x511696[_0x1679ca(0x1db)],{'raw':_0x511696[_0x1679ca(0x1e8)]?_0x511696[_0x1679ca(0x1e8)][_0x1679ca(0x1d5)]===undefined?!![]:![]:!![]})[_0x1679ca(0x1d9)](function(_0x453887){const _0x12ee4c=_0x1679ca;logger[_0x12ee4c(0x1d8)]('CreateFaxMessage',_0x511696),logger[_0x12ee4c(0x1e2)](_0x12ee4c(0x1d6),_0x511696,JSON[_0x12ee4c(0x1e1)](_0x453887)),_0x7de8d(_0x453887);})[_0x1679ca(0x1dc)](function(_0xea0084){const _0x430085=_0x1679ca;logger[_0x430085(0x1e7)](_0x430085(0x1d6),_0xea0084['message'],_0x511696),_0x2886c8(_0x2ae742['error'](0x1f4,_0xea0084[_0x430085(0x1dd)]));});});},exports[a248_0xf7671d(0x1e6)]=function(_0x2da359){const _0x2cb47c=this;return new Promise(function(_0x4c7816,_0x26c612){const _0x843ede=a248_0x1a83;return db[_0x843ede(0x1e5)][_0x843ede(0x1e0)](_0x2da359[_0x843ede(0x1db)],{'raw':_0x2da359['options']?_0x2da359[_0x843ede(0x1e8)]['raw']===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x2da359[_0x843ede(0x1e8)]?_0x2da359[_0x843ede(0x1e8)][_0x843ede(0x1df)]||null:null,'attributes':_0x2da359[_0x843ede(0x1e8)]?_0x2da359[_0x843ede(0x1e8)]['attributes']||null:null,'limit':_0x2da359[_0x843ede(0x1e8)]?_0x2da359[_0x843ede(0x1e8)]['limit']||null:null})['then'](function(_0x2f489f){const _0x1636d3=_0x843ede;logger[_0x1636d3(0x1d8)]('UpdateFaxMessage',_0x2da359),logger[_0x1636d3(0x1e2)]('UpdateFaxMessage',_0x2da359,JSON['stringify'](_0x2f489f)),_0x4c7816(_0x2f489f);})['catch'](function(_0xbd0673){const _0x32e9a0=_0x843ede;logger[_0x32e9a0(0x1e7)](_0x32e9a0(0x1e6),_0xbd0673[_0x32e9a0(0x1dd)],_0x2da359),_0x26c612(_0x2cb47c[_0x32e9a0(0x1e7)](0x1f4,_0xbd0673[_0x32e9a0(0x1dd)]));});});}; \ No newline at end of file diff --git a/server/api/faxMessage/faxMessage.socket.js b/server/api/faxMessage/faxMessage.socket.js index 8768634..ccb40e7 100644 --- a/server/api/faxMessage/faxMessage.socket.js +++ b/server/api/faxMessage/faxMessage.socket.js @@ -1 +1 @@ -const a209_0xbbdc=['length','remove','save','register','update','faxMessage:','./faxMessage.events','emit'];(function(_0x322f2b,_0xbbdc6){const _0x2988b5=function(_0x160d85){while(--_0x160d85){_0x322f2b['push'](_0x322f2b['shift']());}};_0x2988b5(++_0xbbdc6);}(a209_0xbbdc,0xa9));const a209_0x2988=function(_0x322f2b,_0xbbdc6){_0x322f2b=_0x322f2b-0x0;let _0x2988b5=a209_0xbbdc[_0x322f2b];return _0x2988b5;};const _0xd1f680=a209_0x2988;'use strict';const FaxMessageEvents=require(_0xd1f680('0x5')),events=[_0xd1f680('0x1'),_0xd1f680('0x0'),_0xd1f680('0x3')];function createListener(_0x160d85,_0x19eb8e){return function(_0x48df93){const _0x1553dc=a209_0x2988;_0x19eb8e[_0x1553dc('0x6')](_0x160d85,_0x48df93);};}exports[_0xd1f680('0x2')]=function(_0x46604f){const _0x13a805=_0xd1f680;for(let _0x4f237c=0x0,_0x4f584d=events[_0x13a805('0x7')];_0x4f237c<_0x4f584d;_0x4f237c++){const _0x46f2b9=events[_0x4f237c],_0x4b4789=createListener(_0x13a805('0x4')+_0x46f2b9,_0x46604f);FaxMessageEvents['on'](_0x46f2b9,_0x4b4789);}}; \ No newline at end of file +const a249_0x4e8a=['remove','./faxMessage.events','save','emit','register','faxMessage:'];(function(_0xd7e35,_0x1ff8bd){const _0x4e8a6e=function(_0x286ce1){while(--_0x286ce1){_0xd7e35['push'](_0xd7e35['shift']());}};_0x4e8a6e(++_0x1ff8bd);}(a249_0x4e8a,0xd2));const a249_0x286c=function(_0xd7e35,_0x1ff8bd){_0xd7e35=_0xd7e35-0x103;let _0x4e8a6e=a249_0x4e8a[_0xd7e35];return _0x4e8a6e;};const a249_0x45a723=a249_0x286c;'use strict';const FaxMessageEvents=require(a249_0x45a723(0x104)),events=[a249_0x45a723(0x105),a249_0x45a723(0x103),'update'];function createListener(_0x3e5a26,_0x349222){return function(_0x30e97c){const _0xabcaa2=a249_0x286c;_0x349222[_0xabcaa2(0x106)](_0x3e5a26,_0x30e97c);};}exports[a249_0x45a723(0x107)]=function(_0x4f053f){const _0x1433dc=a249_0x45a723;for(let _0x566250=0x0,_0x5b4f5b=events['length'];_0x566250<_0x5b4f5b;_0x566250++){const _0x100cd3=events[_0x566250],_0x547d12=createListener(_0x1433dc(0x108)+_0x100cd3,_0x4f053f);FaxMessageEvents['on'](_0x100cd3,_0x547d12);}}; \ No newline at end of file diff --git a/server/api/faxMessage/index.js b/server/api/faxMessage/index.js index b91b6e5..fc21357 100644 --- a/server/api/faxMessage/index.js +++ b/server/api/faxMessage/index.js @@ -1 +1 @@ -const a210_0x4e24=['destroy','accept','faxmessage:create','isAuthenticated','/:id/reject','update','put','./faxMessage.controller','/:id','reject','delete','describe','tracked','/:id/accept','show','../../components/auth/service','download','../../components/interaction/service','create','exports','get'];(function(_0x24dc28,_0x4e245f){const _0x267d37=function(_0x5c8e27){while(--_0x5c8e27){_0x24dc28['push'](_0x24dc28['shift']());}};_0x267d37(++_0x4e245f);}(a210_0x4e24,0x184));const a210_0x267d=function(_0x24dc28,_0x4e245f){_0x24dc28=_0x24dc28-0x0;let _0x267d37=a210_0x4e24[_0x24dc28];return _0x267d37;};const _0x50e1a7=a210_0x267d;'use strict';const express=require('express'),router=express['Router'](),auth=require(_0x50e1a7('0x5')),interaction=require(_0x50e1a7('0x7')),controller=require(_0x50e1a7('0x12'));router[_0x50e1a7('0xa')]('/',auth[_0x50e1a7('0xe')](),controller['index']),router[_0x50e1a7('0xa')]('/describe',auth[_0x50e1a7('0xe')](),controller[_0x50e1a7('0x1')]),router['get'](_0x50e1a7('0x13'),auth[_0x50e1a7('0xe')](),controller[_0x50e1a7('0x4')]),router[_0x50e1a7('0xa')]('/:id/download',auth[_0x50e1a7('0xe')](),controller[_0x50e1a7('0x6')]),router['post']('/',auth[_0x50e1a7('0xe')](),interaction[_0x50e1a7('0x2')]('fax',_0x50e1a7('0xd')),controller[_0x50e1a7('0x8')]),router[_0x50e1a7('0x11')](_0x50e1a7('0x13'),auth[_0x50e1a7('0xe')](),controller[_0x50e1a7('0x10')]),router[_0x50e1a7('0x11')](_0x50e1a7('0x3'),auth[_0x50e1a7('0xe')](),controller[_0x50e1a7('0xc')]),router[_0x50e1a7('0x11')](_0x50e1a7('0xf'),auth[_0x50e1a7('0xe')](),controller[_0x50e1a7('0x14')]),router[_0x50e1a7('0x0')](_0x50e1a7('0x13'),auth['isAuthenticated'](),controller[_0x50e1a7('0xb')]),module[_0x50e1a7('0x9')]=router; \ No newline at end of file +const a250_0x512b=['isAuthenticated','download','put','./faxMessage.controller','fax','describe','index','delete','post','update','/:id/accept','Router','destroy','tracked','show','faxmessage:create','/:id','get','create'];(function(_0x2616b4,_0x2b65ba){const _0x512bf6=function(_0x5c1059){while(--_0x5c1059){_0x2616b4['push'](_0x2616b4['shift']());}};_0x512bf6(++_0x2b65ba);}(a250_0x512b,0x1c9));const a250_0x5c10=function(_0x2616b4,_0x2b65ba){_0x2616b4=_0x2616b4-0xa0;let _0x512bf6=a250_0x512b[_0x2616b4];return _0x512bf6;};const a250_0x3c28f0=a250_0x5c10;'use strict';const express=require('express'),router=express[a250_0x3c28f0(0xaa)](),auth=require('../../components/auth/service'),interaction=require('../../components/interaction/service'),controller=require(a250_0x3c28f0(0xa2));router[a250_0x3c28f0(0xb0)]('/',auth['isAuthenticated'](),controller[a250_0x3c28f0(0xa5)]),router[a250_0x3c28f0(0xb0)]('/describe',auth['isAuthenticated'](),controller[a250_0x3c28f0(0xa4)]),router['get'](a250_0x3c28f0(0xaf),auth[a250_0x3c28f0(0xb2)](),controller[a250_0x3c28f0(0xad)]),router['get']('/:id/download',auth[a250_0x3c28f0(0xb2)](),controller[a250_0x3c28f0(0xa0)]),router[a250_0x3c28f0(0xa7)]('/',auth[a250_0x3c28f0(0xb2)](),interaction[a250_0x3c28f0(0xac)](a250_0x3c28f0(0xa3),a250_0x3c28f0(0xae)),controller[a250_0x3c28f0(0xb1)]),router['put'](a250_0x3c28f0(0xaf),auth[a250_0x3c28f0(0xb2)](),controller[a250_0x3c28f0(0xa8)]),router[a250_0x3c28f0(0xa1)](a250_0x3c28f0(0xa9),auth[a250_0x3c28f0(0xb2)](),controller['accept']),router['put']('/:id/reject',auth[a250_0x3c28f0(0xb2)](),controller['reject']),router[a250_0x3c28f0(0xa6)](a250_0x3c28f0(0xaf),auth[a250_0x3c28f0(0xb2)](),controller[a250_0x3c28f0(0xab)]),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 92fe723..fb1b25c 100644 --- a/server/api/faxQueue/faxQueue.attributes.js +++ b/server/api/faxQueue/faxQueue.attributes.js @@ -1 +1 @@ -const a211_0x33c6=['name','STRING','roundrobin','sequelize','INTEGER','ENUM','exports'];(function(_0x4a7782,_0x33c6a0){const _0x317e3d=function(_0x267de2){while(--_0x267de2){_0x4a7782['push'](_0x4a7782['shift']());}};_0x317e3d(++_0x33c6a0);}(a211_0x33c6,0xf3));const a211_0x317e=function(_0x4a7782,_0x33c6a0){_0x4a7782=_0x4a7782-0x0;let _0x317e3d=a211_0x33c6[_0x4a7782];return _0x317e3d;};const _0x183ab7=a211_0x317e;'use strict';const Sequelize=require(_0x183ab7('0x5'));module[_0x183ab7('0x1')]={'name':{'type':Sequelize[_0x183ab7('0x3')],'unique':_0x183ab7('0x2'),'allowNull':![],'validate':{'notEmpty':!![],'is':/^[A-Za-z0-9._]+$/i}},'description':{'type':Sequelize[_0x183ab7('0x3')]},'timeout':{'type':Sequelize[_0x183ab7('0x6')],'allowNull':![],'validate':{'min':0x1,'max':0x20c49b}},'strategy':{'type':Sequelize[_0x183ab7('0x0')]('rrmemory','beepall',_0x183ab7('0x4')),'allowNull':![]},'lastAgent':{'type':Sequelize[_0x183ab7('0x6')],'defaultValue':0x0}}; \ No newline at end of file +const a251_0x5009=['beepall','rrmemory','sequelize','roundrobin','INTEGER','name','STRING','attributes'];(function(_0x483180,_0x5e4d6a){const _0x5009f7=function(_0x19a60d){while(--_0x19a60d){_0x483180['push'](_0x483180['shift']());}};_0x5009f7(++_0x5e4d6a);}(a251_0x5009,0x1df));const a251_0x19a6=function(_0x483180,_0x5e4d6a){_0x483180=_0x483180-0x18c;let _0x5009f7=a251_0x5009[_0x483180];return _0x5009f7;};const a251_0x503525=a251_0x19a6;'use strict';const {DataTypes}=require(a251_0x503525(0x18f)),attributes={'name':{'type':DataTypes[a251_0x503525(0x193)],'unique':a251_0x503525(0x192),'allowNull':![],'validate':{'notEmpty':!![],'is':/^[A-Za-z0-9._]+$/i}},'description':{'type':DataTypes['STRING']},'timeout':{'type':DataTypes[a251_0x503525(0x191)],'allowNull':![],'validate':{'min':0x1,'max':0x20c49b}},'strategy':{'type':DataTypes['ENUM'](a251_0x503525(0x18e),a251_0x503525(0x18d),a251_0x503525(0x190)),'allowNull':![]},'lastAgent':{'type':DataTypes['INTEGER'],'defaultValue':0x0}};module['exports'][a251_0x503525(0x18c)]=attributes; \ No newline at end of file diff --git a/server/api/faxQueue/faxQueue.controller.js b/server/api/faxQueue/faxQueue.controller.js index a2bdcfe..79355bb 100644 --- a/server/api/faxQueue/faxQueue.controller.js +++ b/server/api/faxQueue/faxQueue.controller.js @@ -1 +1 @@ -const a212_0x2411=['pick','role','sort','sendStatus','forEach','flatMap','lodash','json','addTeams','findAndCountAll','type','SIP','findOne','from','removeTeams','emit','./faxQueue.socket','userFaxQueue:remove','rows','select','register','createdAt','error','online','ids','name','util','VIRTUAL','filters','includeAll','status','fields','findAll','findOrCreate','map','removeAgents','ut.TeamId\x20=\x20tq.TeamId','undefined','key','attributes','nolimit','interface','length','include','rawAttributes','transaction','show','UserProfileSection','Unable\x20to\x20retrieve\x20the\x20current\x20user','sequelize','compact','getAgents','stack','User','../../components/parsers/qs','query','every','../../config/logger','FaxQueues','order','Agents','catch','Content-Range','join','filter','get','updatedAt','user','index','FaxQueueId\x20=\x20?','../../mysqldb','isArray','body','field','set','limit','keys','end','getMembers','TeamId','push','all','where','FaxQueue','addAgents','includes','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','update','offset','then','user_has_teams','../../rediscache','clone','params','api','tq.TeamId','fieldName','union','count','isEmpty','getTeams','UserId','Team','merge','agent','options','FaxQueueId','userFaxQueue:save','describe','like','intersection','UserProfileResource','model','destroy','faxPause','ut.UserId\x20=\x20?','autoAssociation','omit'];(function(_0x47f2d4,_0x241199){const _0x6b283a=function(_0x57c2e4){while(--_0x57c2e4){_0x47f2d4['push'](_0x47f2d4['shift']());}};_0x6b283a(++_0x241199);}(a212_0x2411,0x134));const a212_0x6b28=function(_0x47f2d4,_0x241199){_0x47f2d4=_0x47f2d4-0x0;let _0x6b283a=a212_0x2411[_0x47f2d4];return _0x6b283a;};const _0x4191b1=a212_0x6b28;'use strict';const util=require(_0x4191b1('0x48')),_=require(_0x4191b1('0x34')),squel=require('squel'),qs=require(_0x4191b1('0x64')),logger=require(_0x4191b1('0x67'))(_0x4191b1('0x16')),{getSocket}=require(_0x4191b1('0x13')),socket=getSocket(),db=require(_0x4191b1('0x74'))['db'],{Op,QueryTypes}=require('sequelize');require(_0x4191b1('0x3e'))[_0x4191b1('0x42')](socket);function respondWithStatusCode(_0x57c2e4,_0xe2b871){return _0xe2b871=_0xe2b871||0xcc,function(_0x346efc){const _0x371a1f=a212_0x6b28;if(_0x346efc)return _0x57c2e4[_0x371a1f('0x31')](_0xe2b871);return _0x57c2e4[_0x371a1f('0x4c')](_0xe2b871)[_0x371a1f('0x5')]();};}function respondWithResult(_0x224dbb,_0x1f58e3){return _0x1f58e3=_0x1f58e3||0xc8,function(_0x388652){const _0x1a420a=a212_0x6b28;if(_0x388652)return _0x224dbb[_0x1a420a('0x4c')](_0x1f58e3)['json'](_0x388652);};}function respondWithFilteredResult(_0x34fd8a,_0x1c8aa1){return function(_0x3d89cf){const _0x336817=a212_0x6b28;if(_0x3d89cf){const _0x57f2d0=_0x3d89cf[_0x336817('0x1a')],_0x337004=_0x1c8aa1[_0x336817('0x10')];let _0x17d5ac=_0x1c8aa1[_0x336817('0x10')]+_0x1c8aa1[_0x336817('0x3')],_0x2293ee;return _0x17d5ac>=_0x57f2d0?(_0x17d5ac=_0x57f2d0,_0x2293ee=0xc8):_0x2293ee=0xce,_0x34fd8a[_0x336817('0x4c')](_0x2293ee),_0x34fd8a[_0x336817('0x2')](_0x336817('0x6c'),_0x337004+'-'+_0x17d5ac+'/'+_0x57f2d0)[_0x336817('0x35')](_0x3d89cf);}return null;};}function saveUpdates(_0x4d887d){return function(_0x1556a7){const _0x4c9c3d=a212_0x6b28;if(_0x1556a7)return _0x1556a7[_0x4c9c3d('0xf')](_0x4d887d)[_0x4c9c3d('0x11')](function(_0xeb477f){return _0xeb477f;});return null;};}function removeEntity(_0x5f31e7){return function(_0x422dd8){const _0x233f1c=a212_0x6b28;if(_0x422dd8)return _0x422dd8[_0x233f1c('0x29')]()[_0x233f1c('0x11')](function(){const _0x4c807a=_0x233f1c,_0xf43a9a=_0x422dd8[_0x4c807a('0x6f')]({'plain':!![]}),_0x56aa36=_0x4c807a('0x68');return db[_0x4c807a('0x27')][_0x4c807a('0x29')]({'where':{'type':_0x56aa36,'resourceId':_0xf43a9a['id']}})[_0x4c807a('0x11')](function(){return _0x422dd8;});})['then'](function(){const _0x1a7003=_0x233f1c;_0x5f31e7[_0x1a7003('0x4c')](0xcc)[_0x1a7003('0x5')]();});};}function handleEntityNotFound(_0x5ab196){return function(_0x1b4730){const _0x34a19b=a212_0x6b28;return!_0x1b4730&&_0x5ab196[_0x34a19b('0x31')](0x194),_0x1b4730;};}function handleError(_0x53d704,_0x2bd70b){return _0x2bd70b=_0x2bd70b||0x1f4,function(_0x2bd7cb){const _0x185a9a=a212_0x6b28;logger['error'](_0x2bd7cb[_0x185a9a('0x62')]),_0x2bd7cb['name']&&delete _0x2bd7cb[_0x185a9a('0x47')],_0x53d704[_0x185a9a('0x4c')](_0x2bd70b)['send'](_0x2bd7cb);};}exports[_0x4191b1('0x72')]=function(_0x3c3da5,_0x450aa6){const _0xacfb60=_0x4191b1;let _0xabc24e={};const _0x2cd502={},_0x48f770={'count':0x0,'rows':[]},_0x7f03f3=_[_0xacfb60('0x50')](db[_0xacfb60('0xb')]['rawAttributes'],function(_0x313469){const _0x33ca97=_0xacfb60;return{'name':_0x313469[_0x33ca97('0x18')],'type':_0x313469[_0x33ca97('0x38')][_0x33ca97('0x54')]};});_0x2cd502[_0xacfb60('0x28')]=_[_0xacfb60('0x50')](_0x7f03f3,_0xacfb60('0x47')),_0x2cd502['query']=_['keys'](_0x3c3da5[_0xacfb60('0x65')]),_0x2cd502[_0xacfb60('0x4a')]=_['intersection'](_0x2cd502['model'],_0x2cd502['query']),_0xabc24e[_0xacfb60('0x55')]=_['intersection'](_0x2cd502[_0xacfb60('0x28')],qs['fields'](_0x3c3da5[_0xacfb60('0x65')][_0xacfb60('0x4d')])),_0xabc24e[_0xacfb60('0x55')]=_0xabc24e[_0xacfb60('0x55')][_0xacfb60('0x58')]?_0xabc24e[_0xacfb60('0x55')]:_0x2cd502['model'];typeof _0x3c3da5[_0xacfb60('0x65')][_0xacfb60('0x56')]===_0xacfb60('0x53')&&(_0xabc24e[_0xacfb60('0x3')]=qs[_0xacfb60('0x3')](_0x3c3da5[_0xacfb60('0x65')][_0xacfb60('0x3')]),_0xabc24e['offset']=qs[_0xacfb60('0x10')](_0x3c3da5['query']['offset']));_0xabc24e['order']=qs[_0xacfb60('0x30')](_0x3c3da5[_0xacfb60('0x65')]['sort']),_0xabc24e[_0xacfb60('0xa')]=qs[_0xacfb60('0x4a')](_[_0xacfb60('0x2e')](_0x3c3da5[_0xacfb60('0x65')],_0x2cd502[_0xacfb60('0x4a')]),_0x7f03f3);_0x3c3da5[_0xacfb60('0x65')][_0xacfb60('0x6e')]&&(_0xabc24e[_0xacfb60('0xa')]=_[_0xacfb60('0x1f')](_0xabc24e[_0xacfb60('0xa')],{[Op['or']]:_[_0xacfb60('0x50')](_0x7f03f3,function(_0x4ff967){const _0x10bc41=_0xacfb60;if(_0x4ff967['type']!==_0x10bc41('0x49')){const _0x575a57={};return _0x575a57[_0x4ff967['name']]={[Op[_0x10bc41('0x25')]]:'%'+_0x3c3da5[_0x10bc41('0x65')][_0x10bc41('0x6e')]+'%'},_0x575a57;}})}));_0xabc24e=_[_0xacfb60('0x1f')]({},_0xabc24e,_0x3c3da5[_0xacfb60('0x21')]);const _0x519ad3={'where':_0xabc24e['where']};return db['FaxQueue'][_0xacfb60('0x1a')](_0x519ad3)[_0xacfb60('0x11')](function(_0x57c1da){const _0x331bed=_0xacfb60;return _0x48f770[_0x331bed('0x1a')]=_0x57c1da,_0x3c3da5['query'][_0x331bed('0x4b')]&&(_0xabc24e[_0x331bed('0x59')]=[{'all':!![]}]),db[_0x331bed('0xb')][_0x331bed('0x4e')](_0xabc24e);})[_0xacfb60('0x11')](function(_0xd69e2b){const _0x78ca74=_0xacfb60;return _0x48f770[_0x78ca74('0x40')]=_0xd69e2b,_0x48f770;})[_0xacfb60('0x11')](respondWithFilteredResult(_0x450aa6,_0xabc24e))[_0xacfb60('0x6b')](handleError(_0x450aa6,null));},exports[_0x4191b1('0x5c')]=function(_0xa5356e,_0x3a3c67){const _0x503895=_0x4191b1;let _0x9e680c={'raw':!![],'where':{'id':_0xa5356e[_0x503895('0x15')]['id']}};const _0x1cf081={};return _0x1cf081[_0x503895('0x28')]=_['keys'](db[_0x503895('0xb')][_0x503895('0x5a')]),_0x1cf081['query']=_['keys'](_0xa5356e[_0x503895('0x65')]),_0x1cf081[_0x503895('0x4a')]=_['intersection'](_0x1cf081[_0x503895('0x28')],_0x1cf081[_0x503895('0x65')]),_0x9e680c[_0x503895('0x55')]=_[_0x503895('0x26')](_0x1cf081['model'],qs[_0x503895('0x4d')](_0xa5356e[_0x503895('0x65')][_0x503895('0x4d')])),_0x9e680c['attributes']=_0x9e680c['attributes']['length']?_0x9e680c[_0x503895('0x55')]:_0x1cf081['model'],_0xa5356e['query'][_0x503895('0x4b')]&&(_0x9e680c[_0x503895('0x59')]=[{'all':!![]}]),_0x9e680c=_[_0x503895('0x1f')]({},_0x9e680c,_0xa5356e[_0x503895('0x21')]),db[_0x503895('0xb')][_0x503895('0x3a')](_0x9e680c)[_0x503895('0x11')](handleEntityNotFound(_0x3a3c67,null))[_0x503895('0x11')](respondWithResult(_0x3a3c67,null))[_0x503895('0x6b')](handleError(_0x3a3c67,null));},exports['create']=function(_0x1466f1,_0x224d36){const _0x383b71=_0x4191b1;return db[_0x383b71('0xb')]['create'](_0x1466f1[_0x383b71('0x0')],{})['then'](function(_0x1cf872){const _0x36814c=_0x383b71,_0x45f725=_0x1466f1[_0x36814c('0x71')]['get']({'plain':!![]});if(!_0x45f725)throw new Error(_0x36814c('0x5e'));if(_0x45f725[_0x36814c('0x2f')]==='user'){const _0x1de2bd=_0x1cf872[_0x36814c('0x6f')]({'plain':!![]}),_0x352749=_0x36814c('0x68');return db[_0x36814c('0x5d')]['findOne']({'where':{'name':_0x352749,'userProfileId':_0x45f725['userProfileId']},'raw':!![]})[_0x36814c('0x11')](function(_0x1776ca){const _0x50146a=_0x36814c;return _0x1776ca&&_0x1776ca[_0x50146a('0x2c')]===0x0?db['UserProfileResource']['create']({'name':_0x1de2bd['name'],'resourceId':_0x1de2bd['id'],'type':_0x1776ca['name'],'sectionId':_0x1776ca['id']},{})['then'](function(){return _0x1cf872;}):_0x1cf872;})[_0x36814c('0x6b')](function(_0x4c223c){const _0x5862ef=_0x36814c;logger[_0x5862ef('0x44')](_0x5862ef('0xe'),_0x4c223c);throw _0x4c223c;});}return _0x1cf872;})[_0x383b71('0x11')](respondWithResult(_0x224d36,0xc9))[_0x383b71('0x6b')](handleError(_0x224d36,null));},exports['update']=function(_0x534da0,_0x3896f5){const _0x494a5e=_0x4191b1;return _0x534da0[_0x494a5e('0x0')]['id']&&delete _0x534da0[_0x494a5e('0x0')]['id'],db[_0x494a5e('0xb')]['findOne']({'where':{'id':_0x534da0[_0x494a5e('0x15')]['id']}})[_0x494a5e('0x11')](handleEntityNotFound(_0x3896f5,null))[_0x494a5e('0x11')](saveUpdates(_0x534da0['body'],null))[_0x494a5e('0x11')](respondWithResult(_0x3896f5,null))['catch'](handleError(_0x3896f5,null));},exports['destroy']=function(_0x2a5dd7,_0x3e544a){const _0x1ebb83=_0x4191b1;return db[_0x1ebb83('0xb')][_0x1ebb83('0x3a')]({'where':{'id':_0x2a5dd7[_0x1ebb83('0x15')]['id']}})[_0x1ebb83('0x11')](handleEntityNotFound(_0x3e544a,null))[_0x1ebb83('0x11')](removeEntity(_0x3e544a,null))[_0x1ebb83('0x6b')](handleError(_0x3e544a,null));},exports[_0x4191b1('0x24')]=function(_0x490319,_0xc089e5){const _0x483012=_0x4191b1;return db['FaxQueue'][_0x483012('0x24')]()[_0x483012('0x11')](respondWithResult(_0xc089e5,null))[_0x483012('0x6b')](handleError(_0xc089e5,null));},exports[_0x4191b1('0x6')]=function(_0x28c082,_0x4e8466){const _0x44364e=_0x4191b1;let _0x157a97={'raw':!![],'where':{}};const _0xa68f75={};let _0x33734b;return db[_0x44364e('0xb')]['findOne']({'where':{'id':_0x28c082[_0x44364e('0x15')]['id']}})[_0x44364e('0x11')](handleEntityNotFound(_0x4e8466,null))[_0x44364e('0x11')](function(_0x198558){const _0x2ff885=_0x44364e;if(_0x198558)return _0x33734b=_0x198558[_0x2ff885('0x6f')]({'plain':!![]}),_0xa68f75[_0x2ff885('0x28')]=_[_0x2ff885('0x4')](db['UserFaxQueue']['rawAttributes']),_0xa68f75[_0x2ff885('0x65')]=_[_0x2ff885('0x4')](_0x28c082[_0x2ff885('0x65')]),_0xa68f75[_0x2ff885('0x4a')]=_[_0x2ff885('0x26')](_0xa68f75[_0x2ff885('0x28')],_0xa68f75['query']),_0x157a97[_0x2ff885('0x55')]=_[_0x2ff885('0x26')](_0xa68f75[_0x2ff885('0x28')],qs[_0x2ff885('0x4d')](_0x28c082[_0x2ff885('0x65')][_0x2ff885('0x4d')])),_0x157a97[_0x2ff885('0x55')]=_0x157a97[_0x2ff885('0x55')][_0x2ff885('0x58')]?_0x157a97[_0x2ff885('0x55')]:_0xa68f75[_0x2ff885('0x28')],typeof _0x28c082[_0x2ff885('0x65')][_0x2ff885('0x56')]===_0x2ff885('0x53')&&(_0x157a97[_0x2ff885('0x3')]=qs[_0x2ff885('0x3')](_0x28c082['query']['limit']),_0x157a97['offset']=qs[_0x2ff885('0x10')](_0x28c082['query'][_0x2ff885('0x10')])),_0x157a97[_0x2ff885('0x69')]=qs[_0x2ff885('0x30')](_0x28c082[_0x2ff885('0x65')][_0x2ff885('0x30')]),_0x157a97[_0x2ff885('0xa')]=qs[_0x2ff885('0x4a')](_['pick'](_0x28c082[_0x2ff885('0x65')],_0xa68f75[_0x2ff885('0x4a')])),_0x157a97['where'][_0x2ff885('0x22')]=_0x198558['id'],_0x28c082[_0x2ff885('0x65')][_0x2ff885('0x6e')]&&(_0x157a97[_0x2ff885('0xa')]=_['merge'](_0x157a97['where'],{[Op['or']]:_[_0x2ff885('0x50')](_0x157a97[_0x2ff885('0x55')],function(_0xb53c1d){const _0x51bc51=_0x2ff885,_0x4ff8a5={};return _0x4ff8a5[_0xb53c1d]={[Op[_0x51bc51('0x25')]]:'%'+_0x28c082[_0x51bc51('0x65')][_0x51bc51('0x6e')]+'%'},_0x4ff8a5;})})),_0x157a97=_['merge']({},_0x157a97,_0x28c082['options']),db['UserFaxQueue']['findAll'](_0x157a97);})[_0x44364e('0x11')](function(_0x4cd1df){const _0x55f3b8=_0x44364e;if(_0x4cd1df)return db[_0x55f3b8('0x63')][_0x55f3b8('0x37')]({'where':{'id':_['map'](_0x4cd1df,_0x55f3b8('0x1d')),'role':_0x55f3b8('0x20')},'attributes':['id',_0x55f3b8('0x47'),'faxPause',_0x55f3b8('0x70'),_0x55f3b8('0x43')]});})[_0x44364e('0x11')](function(_0x318ec7){const _0x10762d=_0x44364e;return _0x318ec7?{'count':_0x318ec7[_0x10762d('0x1a')],'rows':_[_0x10762d('0x50')](_0x318ec7[_0x10762d('0x40')],function(_0x13fa1d){const _0xcaf1c5=_0x10762d;return{'membername':_0x13fa1d['name'],'UserId':_0x13fa1d['id'],'queue_name':_0x33734b['name'],'FaxQueueId':_0x33734b['id'],'interface':util['format']('%s/%s',_0xcaf1c5('0x39'),_0x13fa1d[_0xcaf1c5('0x47')]),'penalty':0x0,'paused':_0x13fa1d[_0xcaf1c5('0x2a')],'createdAt':_0x13fa1d['createdAt'],'updatedAt':_0x13fa1d[_0xcaf1c5('0x70')]};})}:{'count':0x0,'rows':[]};})[_0x44364e('0x11')](respondWithFilteredResult(_0x4e8466,_0x157a97))[_0x44364e('0x6b')](handleError(_0x4e8466,null));},exports[_0x4191b1('0x1c')]=function(_0x304ff4,_0xc58066){const _0x347b8f=_0x4191b1;let _0x377f06={};const _0x174d00={};let _0x4017bd,_0x4a4e4c;return db[_0x347b8f('0xb')][_0x347b8f('0x3a')]({'where':{'id':_0x304ff4[_0x347b8f('0x15')]['id']}})[_0x347b8f('0x11')](handleEntityNotFound(_0xc58066,null))[_0x347b8f('0x11')](function(_0x4c8fd8){const _0x4f5e76=_0x347b8f;if(_0x4c8fd8)return _0x4017bd=_0x4c8fd8,_0x174d00[_0x4f5e76('0x28')]=_[_0x4f5e76('0x4')](db[_0x4f5e76('0x1e')]['rawAttributes']),_0x174d00[_0x4f5e76('0x65')]=_[_0x4f5e76('0x4')](_0x304ff4[_0x4f5e76('0x65')]),_0x174d00[_0x4f5e76('0x4a')]=_['intersection'](_0x174d00[_0x4f5e76('0x28')],_0x174d00[_0x4f5e76('0x65')]),_0x377f06[_0x4f5e76('0x55')]=_[_0x4f5e76('0x26')](_0x174d00['model'],qs[_0x4f5e76('0x4d')](_0x304ff4[_0x4f5e76('0x65')][_0x4f5e76('0x4d')])),_0x377f06['attributes']=_0x377f06[_0x4f5e76('0x55')][_0x4f5e76('0x58')]?_0x377f06[_0x4f5e76('0x55')]:_0x174d00[_0x4f5e76('0x28')],_0x377f06['order']=qs[_0x4f5e76('0x30')](_0x304ff4['query'][_0x4f5e76('0x30')]),_0x377f06['where']=qs['filters'](_[_0x4f5e76('0x2e')](_0x304ff4['query'],_0x174d00['filters'])),_0x304ff4['query'][_0x4f5e76('0x6e')]&&(_0x377f06[_0x4f5e76('0xa')]=_[_0x4f5e76('0x1f')](_0x377f06[_0x4f5e76('0xa')],{[Op['or']]:_[_0x4f5e76('0x50')](_0x377f06['attributes'],function(_0x968800){const _0x3b8830=_0x4f5e76,_0x57ae0f={};return _0x57ae0f[_0x968800]={[Op['like']]:'%'+_0x304ff4[_0x3b8830('0x65')][_0x3b8830('0x6e')]+'%'},_0x57ae0f;})})),_0x377f06=_[_0x4f5e76('0x1f')]({},_0x377f06,_0x304ff4[_0x4f5e76('0x21')]),_0x4017bd['getTeams'](_0x377f06);})[_0x347b8f('0x11')](function(_0x11e99e){const _0xfc3e8=_0x347b8f;if(_0x11e99e)return _0x4a4e4c=_0x11e99e[_0xfc3e8('0x58')],typeof _0x304ff4['query'][_0xfc3e8('0x56')]===_0xfc3e8('0x53')&&(_0x377f06['limit']=qs[_0xfc3e8('0x3')](_0x304ff4[_0xfc3e8('0x65')]['limit']),_0x377f06[_0xfc3e8('0x10')]=qs[_0xfc3e8('0x10')](_0x304ff4[_0xfc3e8('0x65')][_0xfc3e8('0x10')])),_0x4017bd[_0xfc3e8('0x1c')](_0x377f06);})[_0x347b8f('0x11')](function(_0x267037){if(_0x267037)return _0x267037?{'count':_0x4a4e4c,'rows':_0x267037}:null;})[_0x347b8f('0x11')](respondWithResult(_0xc58066,null))['catch'](handleError(_0xc58066,null));},exports['addTeams']=function(_0x52f83f,_0x54f99c){const _0x4e61c3=_0x4191b1,_0x26ff45=_0x52f83f[_0x4e61c3('0x0')][_0x4e61c3('0x46')];return db[_0x4e61c3('0x1e')][_0x4e61c3('0x4e')]({'where':{'id':_0x26ff45},'attributes':['id'],'include':[{'model':db[_0x4e61c3('0x63')],'as':'Agents','attributes':['id',_0x4e61c3('0x47'),_0x4e61c3('0x45'),'voicePause',_0x4e61c3('0x57')],'raw':!![]}]})['then'](function(_0x3cf2e6){const _0x24d43f=_0x4e61c3;if(_0x3cf2e6){const _0xe9b84a=_[_0x24d43f('0x33')](_0x3cf2e6,function(_0x2cff83){const _0x11e980=_0x24d43f,_0x2cf508=_0x2cff83[_0x11e980('0x6f')]({'plain':!![]});return _0x2cf508[_0x11e980('0x6a')];});return db[_0x24d43f('0xb')][_0x24d43f('0x3a')]({'where':{'id':_0x52f83f[_0x24d43f('0x15')]['id']}})[_0x24d43f('0x11')](function(_0x2a7614){const _0x452e04=_0x24d43f;return db[_0x452e04('0x5f')][_0x452e04('0x5b')](function(_0x40c6d8){const _0x4a2667=_0x452e04;return _0x2a7614[_0x4a2667('0x36')](_0x26ff45,{'transaction':_0x40c6d8})[_0x4a2667('0x11')](function(){const _0x25fb76=_0x4a2667;return Promise['all'](_0xe9b84a[_0x25fb76('0x50')](_0xf9d4f=>{const _0x494b18=_0x25fb76;return db['UserFaxQueue'][_0x494b18('0x4f')]({'where':{'UserId':_0xf9d4f['id'],'FaxQueueId':_0x52f83f[_0x494b18('0x15')]['id']},'transaction':_0x40c6d8});}));})[_0x4a2667('0x11')](function(){_0xe9b84a['forEach'](function(_0x3332cd){const _0x4ad272=a212_0x6b28;socket[_0x4ad272('0x3d')](_0x4ad272('0x23'),{'UserId':_0x3332cd['id'],'FaxQueueId':_0x2a7614['id']});});});});});}})[_0x4e61c3('0x11')](respondWithStatusCode(_0x54f99c,null))[_0x4e61c3('0x6b')](handleError(_0x54f99c,null));},exports[_0x4191b1('0x3c')]=function(_0x447d48,_0x12b638){const _0xa578a3=_0x4191b1;return db[_0xa578a3('0x1e')][_0xa578a3('0x4e')]({'where':{'id':_0x447d48[_0xa578a3('0x65')][_0xa578a3('0x46')]},'attributes':['id'],'include':[{'model':db[_0xa578a3('0x63')],'as':_0xa578a3('0x6a'),'attributes':['id'],'raw':!![]}]})[_0xa578a3('0x11')](handleEntityNotFound(_0x12b638,null))['then'](function(_0x5ea708){const _0x17823f=_0xa578a3,_0x7ae38b=_[_0x17823f('0x50')](_0x5ea708,'id');let _0x549652=[];const _0x4a5a52=[],_0x5709a7=squel[_0x17823f('0x41')]();_0x5709a7[_0x17823f('0x1')](_0x17823f('0x17'))[_0x17823f('0x3b')]('team_has_fax_queues','tq')[_0x17823f('0x6d')](_0x17823f('0x12'),'ut',_0x17823f('0x52'))[_0x17823f('0xa')](_0x17823f('0x73'),_0x447d48['params']['id']);for(let _0x428d46=0x0;_0x428d46<_0x5ea708[_0x17823f('0x58')];_0x428d46+=0x1){const _0x2935b2=_0x5ea708[_0x428d46];for(let _0x502009=0x0;_0x502009<_0x2935b2[_0x17823f('0x6a')][_0x17823f('0x58')];_0x502009+=0x1){const _0x56a5f3=_0x2935b2[_0x17823f('0x6a')][_0x502009],_0x2c58a7=_0x5709a7[_0x17823f('0x14')]();_0x2c58a7[_0x17823f('0xa')](_0x17823f('0x2b'),_0x56a5f3['id']),_0x4a5a52[_0x17823f('0x8')](db[_0x17823f('0x5f')][_0x17823f('0x65')](_0x2c58a7['toString'](),{'type':QueryTypes['SELECT']})[_0x17823f('0x11')](function(_0x136feb){const _0x14f8d3=_0x17823f;if(_0x136feb[_0x14f8d3('0x58')]===0x1)return _0x56a5f3['id'];else{const _0x4db67c=_[_0x14f8d3('0x66')](_['map'](_0x136feb,_0x14f8d3('0x7')),function(_0x3ddcc3){const _0x17815f=_0x14f8d3;return _[_0x17815f('0xd')](_0x7ae38b,_0x3ddcc3);});if(_0x4db67c)return _0x56a5f3['id'];}}));}}return Promise[_0x17823f('0x9')](_0x4a5a52)[_0x17823f('0x11')](function(_0x41129c){const _0x397fa2=_0x17823f;return _0x549652=_(_0x549652)[_0x397fa2('0x19')](_0x41129c)[_0x397fa2('0x60')]()['value'](),db[_0x397fa2('0xb')]['findOne']({'where':{'id':_0x447d48['params']['id']}})[_0x397fa2('0x11')](function(_0x3cacb4){const _0x2c8cf4=_0x397fa2;return db[_0x2c8cf4('0x5f')]['transaction'](function(_0x42418c){const _0x4685b2=_0x2c8cf4;return _0x3cacb4[_0x4685b2('0x3c')](_0x447d48[_0x4685b2('0x65')]['ids'],{'transaction':_0x42418c})[_0x4685b2('0x11')](function(){const _0x46ab4f=_0x4685b2;if(!_[_0x46ab4f('0x1b')](_0x549652))return _0x3cacb4[_0x46ab4f('0x51')](_0x549652,{'transaction':_0x42418c});})[_0x4685b2('0x11')](function(){const _0x5780a7=_0x4685b2;_0x549652[_0x5780a7('0x32')](function(_0x2e306e){const _0x2803b7=_0x5780a7;socket['emit'](_0x2803b7('0x3f'),{'UserId':_0x2e306e,'FaxQueueId':_0x3cacb4['id']});});});});});});})[_0xa578a3('0x11')](respondWithStatusCode(_0x12b638,null))['catch'](handleError(_0x12b638,null));},exports[_0x4191b1('0xc')]=function(_0x5647d5,_0x267d50){const _0x1339eb=_0x4191b1;return db[_0x1339eb('0xb')][_0x1339eb('0x3a')]({'where':{'id':_0x5647d5[_0x1339eb('0x15')]['id']}})[_0x1339eb('0x11')](function(_0x34a8c6){const _0x135a24=_0x1339eb;if(_0x34a8c6)return _0x34a8c6[_0x135a24('0xc')](_0x5647d5[_0x135a24('0x0')][_0x135a24('0x46')],{'through':_[_0x135a24('0x2d')](_0x5647d5[_0x135a24('0x0')],['ids','id'])})['then'](function(_0x25187b){const _0x3a2c23=_0x135a24;for(let _0x59c57b=0x0;_0x59c57b<_0x5647d5['body'][_0x3a2c23('0x46')][_0x3a2c23('0x58')];_0x59c57b+=0x1){socket['emit'](_0x3a2c23('0x23'),{'UserId':_0x5647d5[_0x3a2c23('0x0')]['ids'][_0x59c57b],'FaxQueueId':_0x5647d5['params']['id']});}return _0x25187b;});})['then'](respondWithResult(_0x267d50,null))['catch'](handleError(_0x267d50,null));},exports[_0x4191b1('0x51')]=function(_0x4d0d86,_0x41a9f1){const _0x1e6e2a=_0x4191b1;return db[_0x1e6e2a('0xb')][_0x1e6e2a('0x3a')]({'where':{'id':_0x4d0d86[_0x1e6e2a('0x15')]['id']}})[_0x1e6e2a('0x11')](handleEntityNotFound(_0x41a9f1,null))[_0x1e6e2a('0x11')](function(_0x31ce30){const _0x271b0b=_0x1e6e2a;if(_0x31ce30)return _0x31ce30[_0x271b0b('0x51')](_0x4d0d86[_0x271b0b('0x65')][_0x271b0b('0x46')])[_0x271b0b('0x11')](function(){const _0x2c57c2=_0x271b0b;if(_[_0x2c57c2('0x75')](_0x4d0d86[_0x2c57c2('0x65')][_0x2c57c2('0x46')]))for(let _0x27836a=0x0;_0x27836a<_0x4d0d86['query'][_0x2c57c2('0x46')]['length'];_0x27836a+=0x1){socket[_0x2c57c2('0x3d')](_0x2c57c2('0x3f'),{'UserId':Number(_0x4d0d86[_0x2c57c2('0x65')][_0x2c57c2('0x46')][_0x27836a]),'FaxQueueId':Number(_0x4d0d86[_0x2c57c2('0x15')]['id'])});}else socket[_0x2c57c2('0x3d')]('userFaxQueue:remove',{'UserId':Number(_0x4d0d86[_0x2c57c2('0x65')][_0x2c57c2('0x46')]),'FaxQueueId':Number(_0x4d0d86[_0x2c57c2('0x15')]['id'])});});})[_0x1e6e2a('0x11')](respondWithStatusCode(_0x41a9f1,null))['catch'](handleError(_0x41a9f1,null));},exports[_0x4191b1('0x61')]=function(_0x1dfb78,_0x2eaf4b){const _0x4b1bae=_0x4191b1;let _0x46a1ee={};const _0x26b93d={};let _0x51f238,_0x2a0744;return db[_0x4b1bae('0xb')]['findOne']({'where':{'id':_0x1dfb78[_0x4b1bae('0x15')]['id']}})[_0x4b1bae('0x11')](handleEntityNotFound(_0x2eaf4b,null))[_0x4b1bae('0x11')](function(_0x1959e3){const _0x48928e=_0x4b1bae;if(_0x1959e3)return _0x51f238=_0x1959e3,_0x26b93d['model']=_['keys'](db[_0x48928e('0x63')]['rawAttributes']),_0x26b93d[_0x48928e('0x65')]=_[_0x48928e('0x4')](_0x1dfb78[_0x48928e('0x65')]),_0x26b93d[_0x48928e('0x4a')]=_[_0x48928e('0x26')](_0x26b93d['model'],_0x26b93d[_0x48928e('0x65')]),_0x46a1ee['attributes']=_['intersection'](_0x26b93d['model'],qs[_0x48928e('0x4d')](_0x1dfb78[_0x48928e('0x65')][_0x48928e('0x4d')])),_0x46a1ee[_0x48928e('0x55')]=_0x46a1ee[_0x48928e('0x55')][_0x48928e('0x58')]?_0x46a1ee[_0x48928e('0x55')]:_0x26b93d[_0x48928e('0x28')],_0x46a1ee[_0x48928e('0x69')]=qs[_0x48928e('0x30')](_0x1dfb78[_0x48928e('0x65')]['sort']),_0x46a1ee['where']=qs[_0x48928e('0x4a')](_['pick'](_0x1dfb78[_0x48928e('0x65')],_0x26b93d[_0x48928e('0x4a')])),_0x1dfb78[_0x48928e('0x65')][_0x48928e('0x6e')]&&(_0x46a1ee[_0x48928e('0xa')]=_[_0x48928e('0x1f')](_0x46a1ee[_0x48928e('0xa')],{[Op['or']]:_[_0x48928e('0x50')](_0x46a1ee[_0x48928e('0x55')],function(_0xd64842){const _0x186cca=_0x48928e,_0x5c0fe4={};return _0x5c0fe4[_0xd64842]={[Op['like']]:'%'+_0x1dfb78[_0x186cca('0x65')][_0x186cca('0x6e')]+'%'},_0x5c0fe4;})})),_0x46a1ee=_[_0x48928e('0x1f')]({},_0x46a1ee,_0x1dfb78[_0x48928e('0x21')]),_0x51f238[_0x48928e('0x61')](_0x46a1ee);})[_0x4b1bae('0x11')](function(_0xc34553){const _0x2337e4=_0x4b1bae;if(_0xc34553)return _0x2a0744=_0xc34553[_0x2337e4('0x58')],typeof _0x1dfb78[_0x2337e4('0x65')][_0x2337e4('0x56')]===_0x2337e4('0x53')&&(_0x46a1ee[_0x2337e4('0x3')]=qs[_0x2337e4('0x3')](_0x1dfb78[_0x2337e4('0x65')][_0x2337e4('0x3')]),_0x46a1ee[_0x2337e4('0x10')]=qs['offset'](_0x1dfb78[_0x2337e4('0x65')][_0x2337e4('0x10')])),_0x51f238['getAgents'](_0x46a1ee);})[_0x4b1bae('0x11')](function(_0x53795d){if(_0x53795d)return _0x53795d?{'count':_0x2a0744,'rows':_0x53795d}:null;})['then'](respondWithResult(_0x2eaf4b,null))[_0x4b1bae('0x6b')](handleError(_0x2eaf4b,null));}; \ No newline at end of file +const a252_0x497a=['toString','addTeams','limit','push','field','sort','filters','findOne','map','merge','offset','user_has_teams','filter','includeAll','removeAgents','SIP','TeamId','includes','removeTeams','tq.TeamId','findOrCreate','agent','status','role','order','createdAt','UserProfileResource','body','Team','sendStatus','create','json','omit','like','options','index','flatMap','findAll','ids','union','sequelize','userFaxQueue:remove','pick','then','api','length','catch','isEmpty','getMembers','addAgents','rawAttributes','ut.TeamId\x20=\x20tq.TeamId','attributes','getTeams','isArray','select','../../mysqldb','include','update','user','User','every','online','nolimit','util','value','UserId','autoAssociation','stack','userFaxQueue:save','join','emit','%s/%s','end','./faxQueue.socket','error','UserFaxQueue','send','format','name','../../config/logger','describe','keys','intersection','SELECT','UserProfileSection','model','Agents','count','params','lodash','FaxQueueId','from','../../components/parsers/qs','where','all','../../rediscache','FaxQueueId\x20=\x20?','fields','VIRTUAL','type','destroy','rows','faxPause','query','get','forEach','getAgents','updatedAt','FaxQueues','Unable\x20to\x20retrieve\x20the\x20current\x20user','FaxQueue','transaction','set','undefined','team_has_fax_queues'];(function(_0x2795c8,_0xe1c9ba){const _0x497aec=function(_0x5d3969){while(--_0x5d3969){_0x2795c8['push'](_0x2795c8['shift']());}};_0x497aec(++_0xe1c9ba);}(a252_0x497a,0x82));const a252_0x5d39=function(_0x2795c8,_0xe1c9ba){_0x2795c8=_0x2795c8-0x1ea;let _0x497aec=a252_0x497a[_0x2795c8];return _0x497aec;};const a252_0x63be8c=a252_0x5d39;'use strict';const util=require(a252_0x63be8c(0x21c)),_=require(a252_0x63be8c(0x236)),squel=require('squel'),qs=require(a252_0x63be8c(0x239)),logger=require(a252_0x63be8c(0x22c))(a252_0x63be8c(0x208)),{getSocket}=require(a252_0x63be8c(0x23c)),socket=getSocket(),{db}=require(a252_0x63be8c(0x214)),{Op,QueryTypes}=require(a252_0x63be8c(0x204));require(a252_0x63be8c(0x226))['register'](socket);function respondWithStatusCode(_0x1289e4,_0x19f548){return _0x19f548=_0x19f548||0xcc,function(_0x3b38ff){const _0x27d229=a252_0x5d39;if(_0x3b38ff)return _0x1289e4[_0x27d229(0x1f9)](_0x19f548);return _0x1289e4[_0x27d229(0x1f2)](_0x19f548)[_0x27d229(0x225)]();};}function respondWithResult(_0x4b9dbe,_0x4440c4){return _0x4440c4=_0x4440c4||0xc8,function(_0x1fce4e){if(_0x1fce4e)return _0x4b9dbe['status'](_0x4440c4)['json'](_0x1fce4e);};}function respondWithFilteredResult(_0x19535a,_0xf314b1){return function(_0x3c07a9){const _0x1cfc6e=a252_0x5d39;if(_0x3c07a9){const _0x12e29c=_0x3c07a9[_0x1cfc6e(0x234)],_0x5b0d93=_0xf314b1[_0x1cfc6e(0x25a)];let _0x2e728f=_0xf314b1[_0x1cfc6e(0x25a)]+_0xf314b1['limit'],_0x3b9e22;return _0x2e728f>=_0x12e29c?(_0x2e728f=_0x12e29c,_0x3b9e22=0xc8):_0x3b9e22=0xce,_0x19535a[_0x1cfc6e(0x1f2)](_0x3b9e22),_0x19535a[_0x1cfc6e(0x24d)]('Content-Range',_0x5b0d93+'-'+_0x2e728f+'/'+_0x12e29c)[_0x1cfc6e(0x1fb)](_0x3c07a9);}return null;};}function saveUpdates(_0x4092b7){return function(_0x5f475c){const _0x22fdc6=a252_0x5d39;if(_0x5f475c)return _0x5f475c[_0x22fdc6(0x216)](_0x4092b7)[_0x22fdc6(0x207)](function(_0x5b1676){return _0x5b1676;});return null;};}function removeEntity(_0x559641){return function(_0x84668c){const _0xe2bb47=a252_0x5d39;if(_0x84668c)return _0x84668c[_0xe2bb47(0x241)]()[_0xe2bb47(0x207)](function(){const _0x53f392=_0xe2bb47,_0x157415=_0x84668c['get']({'plain':!![]}),_0x413b5a=_0x53f392(0x249);return db[_0x53f392(0x1f6)][_0x53f392(0x241)]({'where':{'type':_0x413b5a,'resourceId':_0x157415['id']}})[_0x53f392(0x207)](function(){return _0x84668c;});})[_0xe2bb47(0x207)](function(){const _0x3da011=_0xe2bb47;_0x559641[_0x3da011(0x1f2)](0xcc)[_0x3da011(0x225)]();});};}function handleEntityNotFound(_0x23fcd7){return function(_0x230484){const _0x3d1103=a252_0x5d39;return!_0x230484&&_0x23fcd7[_0x3d1103(0x1f9)](0x194),_0x230484;};}function handleError(_0xf1feca,_0x4a9d75){return _0x4a9d75=_0x4a9d75||0x1f4,function(_0x171fbc){const _0x23d3fc=a252_0x5d39;logger[_0x23d3fc(0x227)](_0x171fbc[_0x23d3fc(0x220)]),_0x171fbc['name']&&delete _0x171fbc[_0x23d3fc(0x22b)],_0xf1feca[_0x23d3fc(0x1f2)](_0x4a9d75)[_0x23d3fc(0x229)](_0x171fbc);};}exports[a252_0x63be8c(0x1ff)]=function(_0x17d6f2,_0x3d9172){const _0x21880c=a252_0x63be8c;let _0x4dd6ec={};const _0x4d3d65={},_0x326ebf={'count':0x0,'rows':[]},_0x515d0a=_['map'](db[_0x21880c(0x24b)][_0x21880c(0x20e)],function(_0xededf2){const _0xe7ad40=_0x21880c;return{'name':_0xededf2['fieldName'],'type':_0xededf2[_0xe7ad40(0x240)]['key']};});_0x4d3d65['model']=_['map'](_0x515d0a,_0x21880c(0x22b)),_0x4d3d65[_0x21880c(0x244)]=_[_0x21880c(0x22e)](_0x17d6f2[_0x21880c(0x244)]),_0x4d3d65[_0x21880c(0x256)]=_[_0x21880c(0x22f)](_0x4d3d65[_0x21880c(0x232)],_0x4d3d65[_0x21880c(0x244)]),_0x4dd6ec[_0x21880c(0x210)]=_[_0x21880c(0x22f)](_0x4d3d65[_0x21880c(0x232)],qs['fields'](_0x17d6f2[_0x21880c(0x244)][_0x21880c(0x23e)])),_0x4dd6ec[_0x21880c(0x210)]=_0x4dd6ec['attributes']['length']?_0x4dd6ec[_0x21880c(0x210)]:_0x4d3d65[_0x21880c(0x232)];typeof _0x17d6f2[_0x21880c(0x244)]['nolimit']===_0x21880c(0x24e)&&(_0x4dd6ec[_0x21880c(0x252)]=qs[_0x21880c(0x252)](_0x17d6f2['query'][_0x21880c(0x252)]),_0x4dd6ec['offset']=qs[_0x21880c(0x25a)](_0x17d6f2[_0x21880c(0x244)][_0x21880c(0x25a)]));_0x4dd6ec['order']=qs['sort'](_0x17d6f2[_0x21880c(0x244)]['sort']),_0x4dd6ec['where']=qs[_0x21880c(0x256)](_['pick'](_0x17d6f2[_0x21880c(0x244)],_0x4d3d65['filters']),_0x515d0a);_0x17d6f2[_0x21880c(0x244)][_0x21880c(0x25c)]&&(_0x4dd6ec[_0x21880c(0x23a)]=_[_0x21880c(0x259)](_0x4dd6ec[_0x21880c(0x23a)],{[Op['or']]:_[_0x21880c(0x258)](_0x515d0a,function(_0x4e8cad){const _0x349c2b=_0x21880c;if(_0x4e8cad[_0x349c2b(0x240)]!==_0x349c2b(0x23f)){const _0x472210={};return _0x472210[_0x4e8cad[_0x349c2b(0x22b)]]={[Op['like']]:'%'+_0x17d6f2[_0x349c2b(0x244)][_0x349c2b(0x25c)]+'%'},_0x472210;}})}));_0x4dd6ec=_[_0x21880c(0x259)]({},_0x4dd6ec,_0x17d6f2[_0x21880c(0x1fe)]);const _0x117004={'where':_0x4dd6ec[_0x21880c(0x23a)]};return db[_0x21880c(0x24b)][_0x21880c(0x234)](_0x117004)[_0x21880c(0x207)](function(_0x3b3a86){const _0x45d521=_0x21880c;return _0x326ebf[_0x45d521(0x234)]=_0x3b3a86,_0x17d6f2[_0x45d521(0x244)][_0x45d521(0x25d)]&&(_0x4dd6ec[_0x45d521(0x215)]=[{'all':!![]}]),db[_0x45d521(0x24b)][_0x45d521(0x201)](_0x4dd6ec);})[_0x21880c(0x207)](function(_0x903a00){return _0x326ebf['rows']=_0x903a00,_0x326ebf;})[_0x21880c(0x207)](respondWithFilteredResult(_0x3d9172,_0x4dd6ec))[_0x21880c(0x20a)](handleError(_0x3d9172,null));},exports['show']=function(_0xc15197,_0x5771cd){const _0x31eb45=a252_0x63be8c;let _0x29e30c={'raw':!![],'where':{'id':_0xc15197[_0x31eb45(0x235)]['id']}};const _0x304af4={};return _0x304af4[_0x31eb45(0x232)]=_[_0x31eb45(0x22e)](db[_0x31eb45(0x24b)][_0x31eb45(0x20e)]),_0x304af4['query']=_[_0x31eb45(0x22e)](_0xc15197['query']),_0x304af4[_0x31eb45(0x256)]=_['intersection'](_0x304af4[_0x31eb45(0x232)],_0x304af4['query']),_0x29e30c['attributes']=_[_0x31eb45(0x22f)](_0x304af4[_0x31eb45(0x232)],qs['fields'](_0xc15197[_0x31eb45(0x244)][_0x31eb45(0x23e)])),_0x29e30c[_0x31eb45(0x210)]=_0x29e30c[_0x31eb45(0x210)][_0x31eb45(0x209)]?_0x29e30c['attributes']:_0x304af4['model'],_0xc15197[_0x31eb45(0x244)][_0x31eb45(0x25d)]&&(_0x29e30c[_0x31eb45(0x215)]=[{'all':!![]}]),_0x29e30c=_[_0x31eb45(0x259)]({},_0x29e30c,_0xc15197[_0x31eb45(0x1fe)]),db[_0x31eb45(0x24b)][_0x31eb45(0x257)](_0x29e30c)[_0x31eb45(0x207)](handleEntityNotFound(_0x5771cd,null))[_0x31eb45(0x207)](respondWithResult(_0x5771cd,null))[_0x31eb45(0x20a)](handleError(_0x5771cd,null));},exports[a252_0x63be8c(0x1fa)]=function(_0x4efce1,_0x5ada81){const _0x26ec32=a252_0x63be8c;return db[_0x26ec32(0x24b)][_0x26ec32(0x1fa)](_0x4efce1['body'],{})['then'](function(_0x2b8af2){const _0x51f168=_0x26ec32,_0x232909=_0x4efce1[_0x51f168(0x217)][_0x51f168(0x245)]({'plain':!![]});if(!_0x232909)throw new Error(_0x51f168(0x24a));if(_0x232909[_0x51f168(0x1f3)]===_0x51f168(0x217)){const _0x33fb0f=_0x2b8af2[_0x51f168(0x245)]({'plain':!![]}),_0x539536=_0x51f168(0x249);return db[_0x51f168(0x231)]['findOne']({'where':{'name':_0x539536,'userProfileId':_0x232909['userProfileId']},'raw':!![]})[_0x51f168(0x207)](function(_0x3535ee){const _0x64c82b=_0x51f168;return _0x3535ee&&_0x3535ee[_0x64c82b(0x21f)]===0x0?db['UserProfileResource'][_0x64c82b(0x1fa)]({'name':_0x33fb0f['name'],'resourceId':_0x33fb0f['id'],'type':_0x3535ee['name'],'sectionId':_0x3535ee['id']},{})[_0x64c82b(0x207)](function(){return _0x2b8af2;}):_0x2b8af2;})[_0x51f168(0x20a)](function(_0x99eac1){const _0xc5e1c5=_0x51f168;logger[_0xc5e1c5(0x227)]('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0x99eac1);throw _0x99eac1;});}return _0x2b8af2;})[_0x26ec32(0x207)](respondWithResult(_0x5ada81,0xc9))[_0x26ec32(0x20a)](handleError(_0x5ada81,null));},exports['update']=function(_0x850f7a,_0x11c578){const _0x57f236=a252_0x63be8c;return _0x850f7a[_0x57f236(0x1f7)]['id']&&delete _0x850f7a[_0x57f236(0x1f7)]['id'],db[_0x57f236(0x24b)][_0x57f236(0x257)]({'where':{'id':_0x850f7a[_0x57f236(0x235)]['id']}})[_0x57f236(0x207)](handleEntityNotFound(_0x11c578,null))[_0x57f236(0x207)](saveUpdates(_0x850f7a[_0x57f236(0x1f7)],null))[_0x57f236(0x207)](respondWithResult(_0x11c578,null))[_0x57f236(0x20a)](handleError(_0x11c578,null));},exports[a252_0x63be8c(0x241)]=function(_0x57e4c0,_0x2716b9){const _0xe96706=a252_0x63be8c;return db['FaxQueue'][_0xe96706(0x257)]({'where':{'id':_0x57e4c0['params']['id']}})[_0xe96706(0x207)](handleEntityNotFound(_0x2716b9,null))[_0xe96706(0x207)](removeEntity(_0x2716b9,null))[_0xe96706(0x20a)](handleError(_0x2716b9,null));},exports['describe']=function(_0x125adf,_0x879216){const _0x44af31=a252_0x63be8c;return db[_0x44af31(0x24b)][_0x44af31(0x22d)]()[_0x44af31(0x207)](respondWithResult(_0x879216,null))['catch'](handleError(_0x879216,null));},exports[a252_0x63be8c(0x20c)]=function(_0xb47e78,_0x59387f){const _0x3f615c=a252_0x63be8c;let _0x2027d0={'raw':!![],'where':{}};const _0x3e37a8={};let _0x17ee4e;return db[_0x3f615c(0x24b)][_0x3f615c(0x257)]({'where':{'id':_0xb47e78[_0x3f615c(0x235)]['id']}})[_0x3f615c(0x207)](handleEntityNotFound(_0x59387f,null))[_0x3f615c(0x207)](function(_0x39ee1b){const _0x3ddea1=_0x3f615c;if(_0x39ee1b)return _0x17ee4e=_0x39ee1b['get']({'plain':!![]}),_0x3e37a8[_0x3ddea1(0x232)]=_[_0x3ddea1(0x22e)](db[_0x3ddea1(0x228)][_0x3ddea1(0x20e)]),_0x3e37a8['query']=_[_0x3ddea1(0x22e)](_0xb47e78['query']),_0x3e37a8[_0x3ddea1(0x256)]=_['intersection'](_0x3e37a8[_0x3ddea1(0x232)],_0x3e37a8[_0x3ddea1(0x244)]),_0x2027d0[_0x3ddea1(0x210)]=_['intersection'](_0x3e37a8['model'],qs[_0x3ddea1(0x23e)](_0xb47e78[_0x3ddea1(0x244)][_0x3ddea1(0x23e)])),_0x2027d0[_0x3ddea1(0x210)]=_0x2027d0[_0x3ddea1(0x210)][_0x3ddea1(0x209)]?_0x2027d0[_0x3ddea1(0x210)]:_0x3e37a8[_0x3ddea1(0x232)],typeof _0xb47e78[_0x3ddea1(0x244)]['nolimit']===_0x3ddea1(0x24e)&&(_0x2027d0[_0x3ddea1(0x252)]=qs[_0x3ddea1(0x252)](_0xb47e78[_0x3ddea1(0x244)][_0x3ddea1(0x252)]),_0x2027d0[_0x3ddea1(0x25a)]=qs[_0x3ddea1(0x25a)](_0xb47e78['query']['offset'])),_0x2027d0[_0x3ddea1(0x1f4)]=qs[_0x3ddea1(0x255)](_0xb47e78['query'][_0x3ddea1(0x255)]),_0x2027d0[_0x3ddea1(0x23a)]=qs[_0x3ddea1(0x256)](_[_0x3ddea1(0x206)](_0xb47e78['query'],_0x3e37a8['filters'])),_0x2027d0[_0x3ddea1(0x23a)][_0x3ddea1(0x237)]=_0x39ee1b['id'],_0xb47e78[_0x3ddea1(0x244)][_0x3ddea1(0x25c)]&&(_0x2027d0[_0x3ddea1(0x23a)]=_[_0x3ddea1(0x259)](_0x2027d0[_0x3ddea1(0x23a)],{[Op['or']]:_[_0x3ddea1(0x258)](_0x2027d0[_0x3ddea1(0x210)],function(_0x164429){const _0x540770=_0x3ddea1,_0x59b164={};return _0x59b164[_0x164429]={[Op['like']]:'%'+_0xb47e78[_0x540770(0x244)][_0x540770(0x25c)]+'%'},_0x59b164;})})),_0x2027d0=_[_0x3ddea1(0x259)]({},_0x2027d0,_0xb47e78[_0x3ddea1(0x1fe)]),db[_0x3ddea1(0x228)][_0x3ddea1(0x201)](_0x2027d0);})[_0x3f615c(0x207)](function(_0x333c4e){const _0x1df3bb=_0x3f615c;if(_0x333c4e)return db[_0x1df3bb(0x218)]['findAndCountAll']({'where':{'id':_[_0x1df3bb(0x258)](_0x333c4e,_0x1df3bb(0x21e)),'role':_0x1df3bb(0x1f1)},'attributes':['id',_0x1df3bb(0x22b),_0x1df3bb(0x243),_0x1df3bb(0x248),_0x1df3bb(0x1f5)]});})[_0x3f615c(0x207)](function(_0x2847a6){const _0x38a332=_0x3f615c;return _0x2847a6?{'count':_0x2847a6['count'],'rows':_[_0x38a332(0x258)](_0x2847a6[_0x38a332(0x242)],function(_0x4928ca){const _0xcca545=_0x38a332;return{'membername':_0x4928ca[_0xcca545(0x22b)],'UserId':_0x4928ca['id'],'queue_name':_0x17ee4e['name'],'FaxQueueId':_0x17ee4e['id'],'interface':util[_0xcca545(0x22a)](_0xcca545(0x224),_0xcca545(0x1eb),_0x4928ca[_0xcca545(0x22b)]),'penalty':0x0,'paused':_0x4928ca[_0xcca545(0x243)],'createdAt':_0x4928ca[_0xcca545(0x1f5)],'updatedAt':_0x4928ca[_0xcca545(0x248)]};})}:{'count':0x0,'rows':[]};})['then'](respondWithFilteredResult(_0x59387f,_0x2027d0))[_0x3f615c(0x20a)](handleError(_0x59387f,null));},exports[a252_0x63be8c(0x211)]=function(_0x38e034,_0x5cd1a4){const _0x206ab4=a252_0x63be8c;let _0x45b1a3={};const _0x3aae35={};let _0x1819a8,_0x2bff8a;return db[_0x206ab4(0x24b)]['findOne']({'where':{'id':_0x38e034[_0x206ab4(0x235)]['id']}})[_0x206ab4(0x207)](handleEntityNotFound(_0x5cd1a4,null))['then'](function(_0x446011){const _0x59b4d7=_0x206ab4;if(_0x446011)return _0x1819a8=_0x446011,_0x3aae35[_0x59b4d7(0x232)]=_[_0x59b4d7(0x22e)](db['Team'][_0x59b4d7(0x20e)]),_0x3aae35[_0x59b4d7(0x244)]=_['keys'](_0x38e034[_0x59b4d7(0x244)]),_0x3aae35[_0x59b4d7(0x256)]=_[_0x59b4d7(0x22f)](_0x3aae35[_0x59b4d7(0x232)],_0x3aae35['query']),_0x45b1a3['attributes']=_[_0x59b4d7(0x22f)](_0x3aae35[_0x59b4d7(0x232)],qs[_0x59b4d7(0x23e)](_0x38e034[_0x59b4d7(0x244)][_0x59b4d7(0x23e)])),_0x45b1a3[_0x59b4d7(0x210)]=_0x45b1a3[_0x59b4d7(0x210)][_0x59b4d7(0x209)]?_0x45b1a3[_0x59b4d7(0x210)]:_0x3aae35[_0x59b4d7(0x232)],_0x45b1a3[_0x59b4d7(0x1f4)]=qs[_0x59b4d7(0x255)](_0x38e034['query'][_0x59b4d7(0x255)]),_0x45b1a3[_0x59b4d7(0x23a)]=qs['filters'](_['pick'](_0x38e034[_0x59b4d7(0x244)],_0x3aae35[_0x59b4d7(0x256)])),_0x38e034[_0x59b4d7(0x244)][_0x59b4d7(0x25c)]&&(_0x45b1a3[_0x59b4d7(0x23a)]=_[_0x59b4d7(0x259)](_0x45b1a3[_0x59b4d7(0x23a)],{[Op['or']]:_['map'](_0x45b1a3[_0x59b4d7(0x210)],function(_0x415f76){const _0x3bd33b=_0x59b4d7,_0x5525bf={};return _0x5525bf[_0x415f76]={[Op[_0x3bd33b(0x1fd)]]:'%'+_0x38e034[_0x3bd33b(0x244)][_0x3bd33b(0x25c)]+'%'},_0x5525bf;})})),_0x45b1a3=_['merge']({},_0x45b1a3,_0x38e034[_0x59b4d7(0x1fe)]),_0x1819a8['getTeams'](_0x45b1a3);})['then'](function(_0x25070a){const _0xa13205=_0x206ab4;if(_0x25070a)return _0x2bff8a=_0x25070a[_0xa13205(0x209)],typeof _0x38e034[_0xa13205(0x244)][_0xa13205(0x21b)]===_0xa13205(0x24e)&&(_0x45b1a3['limit']=qs[_0xa13205(0x252)](_0x38e034[_0xa13205(0x244)][_0xa13205(0x252)]),_0x45b1a3['offset']=qs[_0xa13205(0x25a)](_0x38e034['query']['offset'])),_0x1819a8[_0xa13205(0x211)](_0x45b1a3);})[_0x206ab4(0x207)](function(_0x21e31b){if(_0x21e31b)return _0x21e31b?{'count':_0x2bff8a,'rows':_0x21e31b}:null;})[_0x206ab4(0x207)](respondWithResult(_0x5cd1a4,null))[_0x206ab4(0x20a)](handleError(_0x5cd1a4,null));},exports[a252_0x63be8c(0x251)]=function(_0x2d2bfa,_0x1e5032){const _0x5c2db5=a252_0x63be8c,_0x392de0=_0x2d2bfa[_0x5c2db5(0x1f7)][_0x5c2db5(0x202)];return db[_0x5c2db5(0x1f8)][_0x5c2db5(0x201)]({'where':{'id':_0x392de0},'attributes':['id'],'include':[{'model':db['User'],'as':_0x5c2db5(0x233),'attributes':['id',_0x5c2db5(0x22b),_0x5c2db5(0x21a),'voicePause','interface'],'raw':!![]}]})[_0x5c2db5(0x207)](function(_0x50d740){const _0x278d11=_0x5c2db5;if(_0x50d740){const _0x546ddd=_[_0x278d11(0x200)](_0x50d740,function(_0x321464){const _0x14ea85=_0x278d11,_0x1d015d=_0x321464[_0x14ea85(0x245)]({'plain':!![]});return _0x1d015d[_0x14ea85(0x233)];});return db['FaxQueue']['findOne']({'where':{'id':_0x2d2bfa[_0x278d11(0x235)]['id']}})['then'](function(_0x18ac7f){const _0x5f4e90=_0x278d11;return db['sequelize'][_0x5f4e90(0x24c)](function(_0x3a5bfd){const _0x4bcc5f=_0x5f4e90;return _0x18ac7f[_0x4bcc5f(0x251)](_0x392de0,{'transaction':_0x3a5bfd})[_0x4bcc5f(0x207)](function(){const _0x4ff8ee=_0x4bcc5f;return Promise[_0x4ff8ee(0x23b)](_0x546ddd['map'](_0x2c1908=>{const _0x174db0=_0x4ff8ee;return db[_0x174db0(0x228)][_0x174db0(0x1f0)]({'where':{'UserId':_0x2c1908['id'],'FaxQueueId':_0x2d2bfa[_0x174db0(0x235)]['id']},'transaction':_0x3a5bfd});}));})[_0x4bcc5f(0x207)](function(){const _0x4d099a=_0x4bcc5f;_0x546ddd[_0x4d099a(0x246)](function(_0x4b77c2){const _0x3cf7d2=_0x4d099a;socket['emit'](_0x3cf7d2(0x221),{'UserId':_0x4b77c2['id'],'FaxQueueId':_0x18ac7f['id']});});});});});}})['then'](respondWithStatusCode(_0x1e5032,null))['catch'](handleError(_0x1e5032,null));},exports[a252_0x63be8c(0x1ee)]=function(_0x550f03,_0x47f0f9){const _0x406d54=a252_0x63be8c;return db[_0x406d54(0x1f8)][_0x406d54(0x201)]({'where':{'id':_0x550f03['query'][_0x406d54(0x202)]},'attributes':['id'],'include':[{'model':db[_0x406d54(0x218)],'as':_0x406d54(0x233),'attributes':['id'],'raw':!![]}]})[_0x406d54(0x207)](handleEntityNotFound(_0x47f0f9,null))[_0x406d54(0x207)](function(_0x1edeab){const _0x57defd=_0x406d54,_0x3c8d01=_[_0x57defd(0x258)](_0x1edeab,'id');let _0x1d3666=[];const _0x231055=[],_0x3fb776=squel[_0x57defd(0x213)]();_0x3fb776[_0x57defd(0x254)](_0x57defd(0x1ef))[_0x57defd(0x238)](_0x57defd(0x24f),'tq')[_0x57defd(0x222)](_0x57defd(0x25b),'ut',_0x57defd(0x20f))[_0x57defd(0x23a)](_0x57defd(0x23d),_0x550f03[_0x57defd(0x235)]['id']);for(let _0x136c9b=0x0;_0x136c9b<_0x1edeab[_0x57defd(0x209)];_0x136c9b+=0x1){const _0x4755c4=_0x1edeab[_0x136c9b];for(let _0x1d839b=0x0;_0x1d839b<_0x4755c4[_0x57defd(0x233)][_0x57defd(0x209)];_0x1d839b+=0x1){const _0x336c58=_0x4755c4[_0x57defd(0x233)][_0x1d839b],_0x599e27=_0x3fb776['clone']();_0x599e27[_0x57defd(0x23a)]('ut.UserId\x20=\x20?',_0x336c58['id']),_0x231055[_0x57defd(0x253)](db[_0x57defd(0x204)][_0x57defd(0x244)](_0x599e27[_0x57defd(0x250)](),{'type':QueryTypes[_0x57defd(0x230)]})['then'](function(_0x26e53d){const _0x1b8648=_0x57defd;if(_0x26e53d[_0x1b8648(0x209)]===0x1)return _0x336c58['id'];else{const _0x58bbe3=_[_0x1b8648(0x219)](_['map'](_0x26e53d,_0x1b8648(0x1ec)),function(_0x468007){const _0x116aff=_0x1b8648;return _[_0x116aff(0x1ed)](_0x3c8d01,_0x468007);});if(_0x58bbe3)return _0x336c58['id'];}}));}}return Promise['all'](_0x231055)[_0x57defd(0x207)](function(_0x5ae88c){const _0x83a8c7=_0x57defd;return _0x1d3666=_(_0x1d3666)[_0x83a8c7(0x203)](_0x5ae88c)['compact']()[_0x83a8c7(0x21d)](),db['FaxQueue'][_0x83a8c7(0x257)]({'where':{'id':_0x550f03['params']['id']}})[_0x83a8c7(0x207)](function(_0x1bf63f){const _0xea00bf=_0x83a8c7;return db[_0xea00bf(0x204)][_0xea00bf(0x24c)](function(_0x4681a5){const _0x561bb3=_0xea00bf;return _0x1bf63f[_0x561bb3(0x1ee)](_0x550f03[_0x561bb3(0x244)][_0x561bb3(0x202)],{'transaction':_0x4681a5})[_0x561bb3(0x207)](function(){const _0x59087a=_0x561bb3;if(!_[_0x59087a(0x20b)](_0x1d3666))return _0x1bf63f[_0x59087a(0x1ea)](_0x1d3666,{'transaction':_0x4681a5});})[_0x561bb3(0x207)](function(){const _0x3a8316=_0x561bb3;_0x1d3666[_0x3a8316(0x246)](function(_0x4ead72){const _0x42ff5c=_0x3a8316;socket[_0x42ff5c(0x223)](_0x42ff5c(0x205),{'UserId':_0x4ead72,'FaxQueueId':_0x1bf63f['id']});});});});});});})[_0x406d54(0x207)](respondWithStatusCode(_0x47f0f9,null))['catch'](handleError(_0x47f0f9,null));},exports[a252_0x63be8c(0x20d)]=function(_0x54bbb2,_0x18ef1){const _0xfd1357=a252_0x63be8c;return db[_0xfd1357(0x24b)][_0xfd1357(0x257)]({'where':{'id':_0x54bbb2['params']['id']}})[_0xfd1357(0x207)](function(_0x5615d1){const _0x5a84d7=_0xfd1357;if(_0x5615d1)return _0x5615d1['addAgents'](_0x54bbb2['body']['ids'],{'through':_[_0x5a84d7(0x1fc)](_0x54bbb2[_0x5a84d7(0x1f7)],[_0x5a84d7(0x202),'id'])})[_0x5a84d7(0x207)](function(_0x827a31){const _0x329cf1=_0x5a84d7;for(let _0x2ce203=0x0;_0x2ce203<_0x54bbb2[_0x329cf1(0x1f7)]['ids'][_0x329cf1(0x209)];_0x2ce203+=0x1){socket[_0x329cf1(0x223)](_0x329cf1(0x221),{'UserId':_0x54bbb2[_0x329cf1(0x1f7)][_0x329cf1(0x202)][_0x2ce203],'FaxQueueId':_0x54bbb2['params']['id']});}return _0x827a31;});})['then'](respondWithResult(_0x18ef1,null))[_0xfd1357(0x20a)](handleError(_0x18ef1,null));},exports[a252_0x63be8c(0x1ea)]=function(_0x5c72a5,_0x53fec8){const _0x5ecbee=a252_0x63be8c;return db[_0x5ecbee(0x24b)][_0x5ecbee(0x257)]({'where':{'id':_0x5c72a5[_0x5ecbee(0x235)]['id']}})[_0x5ecbee(0x207)](handleEntityNotFound(_0x53fec8,null))[_0x5ecbee(0x207)](function(_0x481b42){const _0x22b7ab=_0x5ecbee;if(_0x481b42)return _0x481b42[_0x22b7ab(0x1ea)](_0x5c72a5[_0x22b7ab(0x244)][_0x22b7ab(0x202)])[_0x22b7ab(0x207)](function(){const _0x184699=_0x22b7ab;if(_[_0x184699(0x212)](_0x5c72a5[_0x184699(0x244)][_0x184699(0x202)]))for(let _0x2e2bcf=0x0;_0x2e2bcf<_0x5c72a5[_0x184699(0x244)][_0x184699(0x202)][_0x184699(0x209)];_0x2e2bcf+=0x1){socket[_0x184699(0x223)](_0x184699(0x205),{'UserId':Number(_0x5c72a5[_0x184699(0x244)]['ids'][_0x2e2bcf]),'FaxQueueId':Number(_0x5c72a5[_0x184699(0x235)]['id'])});}else socket[_0x184699(0x223)](_0x184699(0x205),{'UserId':Number(_0x5c72a5[_0x184699(0x244)][_0x184699(0x202)]),'FaxQueueId':Number(_0x5c72a5['params']['id'])});});})[_0x5ecbee(0x207)](respondWithStatusCode(_0x53fec8,null))[_0x5ecbee(0x20a)](handleError(_0x53fec8,null));},exports[a252_0x63be8c(0x247)]=function(_0x3fb4d4,_0x106875){const _0x2fd9fa=a252_0x63be8c;let _0x42f9b4={};const _0x280042={};let _0xc3b1d0,_0x137499;return db[_0x2fd9fa(0x24b)][_0x2fd9fa(0x257)]({'where':{'id':_0x3fb4d4['params']['id']}})[_0x2fd9fa(0x207)](handleEntityNotFound(_0x106875,null))[_0x2fd9fa(0x207)](function(_0x5dc008){const _0x18f26f=_0x2fd9fa;if(_0x5dc008)return _0xc3b1d0=_0x5dc008,_0x280042[_0x18f26f(0x232)]=_[_0x18f26f(0x22e)](db['User'][_0x18f26f(0x20e)]),_0x280042[_0x18f26f(0x244)]=_[_0x18f26f(0x22e)](_0x3fb4d4[_0x18f26f(0x244)]),_0x280042[_0x18f26f(0x256)]=_[_0x18f26f(0x22f)](_0x280042[_0x18f26f(0x232)],_0x280042['query']),_0x42f9b4[_0x18f26f(0x210)]=_[_0x18f26f(0x22f)](_0x280042[_0x18f26f(0x232)],qs[_0x18f26f(0x23e)](_0x3fb4d4[_0x18f26f(0x244)][_0x18f26f(0x23e)])),_0x42f9b4['attributes']=_0x42f9b4[_0x18f26f(0x210)]['length']?_0x42f9b4[_0x18f26f(0x210)]:_0x280042[_0x18f26f(0x232)],_0x42f9b4[_0x18f26f(0x1f4)]=qs[_0x18f26f(0x255)](_0x3fb4d4['query']['sort']),_0x42f9b4[_0x18f26f(0x23a)]=qs['filters'](_[_0x18f26f(0x206)](_0x3fb4d4[_0x18f26f(0x244)],_0x280042[_0x18f26f(0x256)])),_0x3fb4d4[_0x18f26f(0x244)][_0x18f26f(0x25c)]&&(_0x42f9b4[_0x18f26f(0x23a)]=_[_0x18f26f(0x259)](_0x42f9b4[_0x18f26f(0x23a)],{[Op['or']]:_['map'](_0x42f9b4[_0x18f26f(0x210)],function(_0x5b90f4){const _0x2d2e6f=_0x18f26f,_0x1983f0={};return _0x1983f0[_0x5b90f4]={[Op[_0x2d2e6f(0x1fd)]]:'%'+_0x3fb4d4['query'][_0x2d2e6f(0x25c)]+'%'},_0x1983f0;})})),_0x42f9b4=_[_0x18f26f(0x259)]({},_0x42f9b4,_0x3fb4d4[_0x18f26f(0x1fe)]),_0xc3b1d0[_0x18f26f(0x247)](_0x42f9b4);})[_0x2fd9fa(0x207)](function(_0x28422c){const _0x3557a3=_0x2fd9fa;if(_0x28422c)return _0x137499=_0x28422c[_0x3557a3(0x209)],typeof _0x3fb4d4[_0x3557a3(0x244)][_0x3557a3(0x21b)]===_0x3557a3(0x24e)&&(_0x42f9b4[_0x3557a3(0x252)]=qs[_0x3557a3(0x252)](_0x3fb4d4[_0x3557a3(0x244)][_0x3557a3(0x252)]),_0x42f9b4['offset']=qs['offset'](_0x3fb4d4['query'][_0x3557a3(0x25a)])),_0xc3b1d0[_0x3557a3(0x247)](_0x42f9b4);})[_0x2fd9fa(0x207)](function(_0x14fe06){if(_0x14fe06)return _0x14fe06?{'count':_0x137499,'rows':_0x14fe06}:null;})[_0x2fd9fa(0x207)](respondWithResult(_0x106875,null))[_0x2fd9fa(0x20a)](handleError(_0x106875,null));}; \ No newline at end of file diff --git a/server/api/faxQueue/faxQueue.events.js b/server/api/faxQueue/faxQueue.events.js index 972a9b5..60e2268 100644 --- a/server/api/faxQueue/faxQueue.events.js +++ b/server/api/faxQueue/faxQueue.events.js @@ -1 +1 @@ -const a213_0x5192=['update','addHook','exports','emit','../../mysqldb','events','remove','FaxQueue','setMaxListeners','undefined'];(function(_0x45a1dd,_0x5192fb){const _0x3b72a1=function(_0x7aeebd){while(--_0x7aeebd){_0x45a1dd['push'](_0x45a1dd['shift']());}};_0x3b72a1(++_0x5192fb);}(a213_0x5192,0xe1));const a213_0x3b72=function(_0x45a1dd,_0x5192fb){_0x45a1dd=_0x45a1dd-0x0;let _0x3b72a1=a213_0x5192[_0x45a1dd];return _0x3b72a1;};const _0x35467e=a213_0x3b72;'use strict';const EventEmitter=require(_0x35467e('0x0')),FaxQueue=require(_0x35467e('0x9'))['db'][_0x35467e('0x2')],FaxQueueEvents=new EventEmitter();FaxQueueEvents[_0x35467e('0x3')](0x0);const events={'afterCreate':'save','afterUpdate':_0x35467e('0x5'),'afterDestroy':_0x35467e('0x1')};function emitEvent(_0x7aeebd){return function(_0x9a898c){const _0x3c845c=a213_0x3b72;FaxQueueEvents[_0x3c845c('0x8')](_0x7aeebd+':'+_0x9a898c['id'],_0x9a898c),FaxQueueEvents[_0x3c845c('0x8')](_0x7aeebd,_0x9a898c);};}for(const e in events){if(typeof events[e]!==_0x35467e('0x4')){const event=events[e];FaxQueue[_0x35467e('0x6')](e,emitEvent(event));}}module[_0x35467e('0x7')]=FaxQueueEvents; \ No newline at end of file +const a253_0x14db=['remove','emit','update','setMaxListeners','exports','addHook','events','../../mysqldb'];(function(_0x37002b,_0x2d37a5){const _0x14db72=function(_0x4d5b60){while(--_0x4d5b60){_0x37002b['push'](_0x37002b['shift']());}};_0x14db72(++_0x2d37a5);}(a253_0x14db,0x104));const a253_0x4d5b=function(_0x37002b,_0x2d37a5){_0x37002b=_0x37002b-0x185;let _0x14db72=a253_0x14db[_0x37002b];return _0x14db72;};const a253_0x51a932=a253_0x4d5b;'use strict';const EventEmitter=require(a253_0x51a932(0x187)),FaxQueue=require(a253_0x51a932(0x188))['db']['FaxQueue'],FaxQueueEvents=new EventEmitter();FaxQueueEvents[a253_0x51a932(0x18c)](0x0);const events={'afterCreate':'save','afterUpdate':a253_0x51a932(0x18b),'afterDestroy':a253_0x51a932(0x189)};function emitEvent(_0x19ee20){return function(_0x25374d){const _0x5e93b5=a253_0x4d5b;FaxQueueEvents[_0x5e93b5(0x18a)](_0x19ee20+':'+_0x25374d['id'],_0x25374d),FaxQueueEvents[_0x5e93b5(0x18a)](_0x19ee20,_0x25374d);};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];FaxQueue[a253_0x51a932(0x186)](e,emitEvent(event));}}module[a253_0x51a932(0x185)]=FaxQueueEvents; \ No newline at end of file diff --git a/server/api/faxQueue/faxQueue.model.js b/server/api/faxQueue/faxQueue.model.js index e69e8a6..157fca7 100644 --- a/server/api/faxQueue/faxQueue.model.js +++ b/server/api/faxQueue/faxQueue.model.js @@ -1 +1 @@ -const a214_0x251f=['define','FaxQueue','exports','./faxQueue.attributes','fax_queues'];(function(_0x344963,_0x251fdc){const _0x14307b=function(_0x25413f){while(--_0x25413f){_0x344963['push'](_0x344963['shift']());}};_0x14307b(++_0x251fdc);}(a214_0x251f,0x181));const a214_0x1430=function(_0x344963,_0x251fdc){_0x344963=_0x344963-0x0;let _0x14307b=a214_0x251f[_0x344963];return _0x14307b;};const _0x372dd9=a214_0x1430;'use strict';const attributes=require(_0x372dd9('0x3'));module[_0x372dd9('0x2')]=function(_0x25413f){const _0xbb4ee8=_0x372dd9,_0x95d0b2=_0x25413f[_0xbb4ee8('0x0')](_0xbb4ee8('0x1'),attributes,{'tableName':_0xbb4ee8('0x4'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x95d0b2;}; \ No newline at end of file +const a254_0x540b=['FaxQueue','exports','sequelize','function','init','./faxQueue.attributes','./faxQueue.options'];(function(_0x2c9089,_0x78aee7){const _0x540b5c=function(_0x332227){while(--_0x332227){_0x2c9089['push'](_0x2c9089['shift']());}};_0x540b5c(++_0x78aee7);}(a254_0x540b,0x19f));const a254_0x3322=function(_0x2c9089,_0x78aee7){_0x2c9089=_0x2c9089-0x18d;let _0x540b5c=a254_0x540b[_0x2c9089];return _0x540b5c;};const a254_0x1db2e3=a254_0x3322;'use strict';const {Model}=require(a254_0x1db2e3(0x18d)),{attributes}=require(a254_0x1db2e3(0x190)),{options}=require(a254_0x1db2e3(0x191));class FaxQueue extends Model{}function init(_0x117dd4,_0x41a148){const _0x549fb8=a254_0x1db2e3,_0xeb0021=options(_0x117dd4),_0x452f13=typeof _0x41a148===_0x549fb8(0x18e)?_0x41a148(_0xeb0021):_0xeb0021;return FaxQueue[_0x549fb8(0x18f)](attributes,_0x452f13),FaxQueue;}module['exports'][a254_0x1db2e3(0x192)]=FaxQueue,module[a254_0x1db2e3(0x193)][a254_0x1db2e3(0x18f)]=init; \ No newline at end of file diff --git a/server/api/faxQueue/faxQueue.options.js b/server/api/faxQueue/faxQueue.options.js new file mode 100644 index 0000000..3678ccd --- /dev/null +++ b/server/api/faxQueue/faxQueue.options.js @@ -0,0 +1 @@ +var a255_0x14a1=['options','exports','fax_queues'];(function(_0x296f86,_0x5cc7f2){var _0x14a16c=function(_0x259fcd){while(--_0x259fcd){_0x296f86['push'](_0x296f86['shift']());}};_0x14a16c(++_0x5cc7f2);}(a255_0x14a1,0xd2));var a255_0x259f=function(_0x296f86,_0x5cc7f2){_0x296f86=_0x296f86-0x15d;var _0x14a16c=a255_0x14a1[_0x296f86];return _0x14a16c;};var a255_0x428f03=a255_0x259f;function options(_0x18e05b){var _0x151980=a255_0x259f;return{'sequelize':_0x18e05b,'tableName':_0x151980(0x15f),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a255_0x428f03(0x15e)][a255_0x428f03(0x15d)]=options; \ No newline at end of file diff --git a/server/api/faxQueue/faxQueue.rpc.js b/server/api/faxQueue/faxQueue.rpc.js index aee0331..06f6edd 100644 --- a/server/api/faxQueue/faxQueue.rpc.js +++ b/server/api/faxQueue/faxQueue.rpc.js @@ -1 +1 @@ -const a215_0x43cf=['model','limit','stringify','options','catch','GetFaxQueue','then','./faxQueue.socket','rpc','include','findAll','ShowFaxQueue','raw','debug','message','where','register','info','../../config/logger','../../mysqldb','map','error','lodash','findOne','FaxQueue','attributes'];(function(_0x5644a9,_0x43cf56){const _0x5757ce=function(_0x340865){while(--_0x340865){_0x5644a9['push'](_0x5644a9['shift']());}};_0x5757ce(++_0x43cf56);}(a215_0x43cf,0xc1));const a215_0x5757=function(_0x5644a9,_0x43cf56){_0x5644a9=_0x5644a9-0x0;let _0x5757ce=a215_0x43cf[_0x5644a9];return _0x5757ce;};const _0x1bbbd4=a215_0x5757;'use strict';const _=require(_0x1bbbd4('0xb')),db=require(_0x1bbbd4('0x8'))['db'],logger=require(_0x1bbbd4('0x7'))(_0x1bbbd4('0x17')),{getSocket}=require('../../rediscache'),socket=getSocket();require(_0x1bbbd4('0x16'))[_0x1bbbd4('0x5')](socket),exports[_0x1bbbd4('0x14')]=function(_0x340865){const _0x5c59c0=this;return new Promise(function(_0x5df28b,_0x246643){const _0x1b0bb0=a215_0x5757;return db[_0x1b0bb0('0xd')][_0x1b0bb0('0x19')]({'raw':_0x340865[_0x1b0bb0('0x12')]?_0x340865[_0x1b0bb0('0x12')][_0x1b0bb0('0x1')]===undefined?!![]:![]:!![],'where':_0x340865['options']?_0x340865[_0x1b0bb0('0x12')][_0x1b0bb0('0x4')]||null:null,'attributes':_0x340865[_0x1b0bb0('0x12')]?_0x340865['options'][_0x1b0bb0('0xe')]||null:null,'limit':_0x340865['options']?_0x340865[_0x1b0bb0('0x12')][_0x1b0bb0('0x10')]||null:null,'include':_0x340865[_0x1b0bb0('0x12')]?_0x340865['options']['include']?_[_0x1b0bb0('0x9')](_0x340865[_0x1b0bb0('0x12')][_0x1b0bb0('0x18')],function(_0x265e0e){const _0xb34c69=_0x1b0bb0;return{'model':db[_0x265e0e['model']],'as':_0x265e0e['as'],'attributes':_0x265e0e['attributes'],'include':_0x265e0e[_0xb34c69('0x18')]?_[_0xb34c69('0x9')](_0x265e0e[_0xb34c69('0x18')],function(_0x271ba2){const _0x3d1131=_0xb34c69;return{'model':db[_0x271ba2['model']],'as':_0x271ba2['as'],'attributes':_0x271ba2['attributes'],'include':_0x271ba2[_0x3d1131('0x18')]?_[_0x3d1131('0x9')](_0x271ba2[_0x3d1131('0x18')],function(_0x29a2f5){const _0x27c091=_0x3d1131;return{'model':db[_0x29a2f5[_0x27c091('0xf')]],'as':_0x29a2f5['as'],'attributes':_0x29a2f5[_0x27c091('0xe')]};}):[]};}):[]};}):[]:[]})[_0x1b0bb0('0x15')](function(_0x555e56){const _0x8cc8fb=_0x1b0bb0;logger[_0x8cc8fb('0x6')](_0x8cc8fb('0x14'),_0x340865),logger['debug'](_0x8cc8fb('0x14'),_0x340865,JSON['stringify'](_0x555e56)),_0x5df28b(_0x555e56);})[_0x1b0bb0('0x13')](function(_0x496e70){const _0x40a036=_0x1b0bb0;logger[_0x40a036('0xa')]('GetFaxQueue',_0x496e70[_0x40a036('0x3')],_0x340865),_0x246643(_0x5c59c0[_0x40a036('0xa')](0x1f4,_0x496e70['message']));});});},exports[_0x1bbbd4('0x0')]=function(_0x14405c){const _0x57e034=this;return new Promise(function(_0x16cfff,_0xc5295b){const _0x14cba9=a215_0x5757;return db['FaxQueue'][_0x14cba9('0xc')]({'raw':_0x14405c['options']?_0x14405c[_0x14cba9('0x12')][_0x14cba9('0x1')]===undefined?!![]:![]:!![],'where':_0x14405c[_0x14cba9('0x12')]?_0x14405c[_0x14cba9('0x12')]['where']||null:null,'attributes':_0x14405c['options']?_0x14405c[_0x14cba9('0x12')]['attributes']||null:null,'include':_0x14405c['options']?_0x14405c[_0x14cba9('0x12')]['include']?_['map'](_0x14405c[_0x14cba9('0x12')][_0x14cba9('0x18')],function(_0x559139){const _0x4cf7e5=_0x14cba9;return{'model':db[_0x559139[_0x4cf7e5('0xf')]],'as':_0x559139['as'],'attributes':_0x559139[_0x4cf7e5('0xe')],'include':_0x559139[_0x4cf7e5('0x18')]?_[_0x4cf7e5('0x9')](_0x559139['include'],function(_0x87ba8b){const _0x2faaab=_0x4cf7e5;return{'model':db[_0x87ba8b[_0x2faaab('0xf')]],'as':_0x87ba8b['as'],'attributes':_0x87ba8b[_0x2faaab('0xe')],'include':_0x87ba8b[_0x2faaab('0x18')]?_[_0x2faaab('0x9')](_0x87ba8b['include'],function(_0x3a99f3){const _0x909b61=_0x2faaab;return{'model':db[_0x3a99f3[_0x909b61('0xf')]],'as':_0x3a99f3['as'],'attributes':_0x3a99f3[_0x909b61('0xe')]};}):[]};}):[]};}):[]:[]})[_0x14cba9('0x15')](function(_0x13fb51){const _0x4fb7bf=_0x14cba9;logger[_0x4fb7bf('0x6')](_0x4fb7bf('0x0'),_0x14405c),logger[_0x4fb7bf('0x2')](_0x4fb7bf('0x0'),_0x14405c,JSON[_0x4fb7bf('0x11')](_0x13fb51)),_0x16cfff(_0x13fb51);})[_0x14cba9('0x13')](function(_0x2997b2){const _0x272dea=_0x14cba9;logger[_0x272dea('0xa')](_0x272dea('0x0'),_0x2997b2[_0x272dea('0x3')],_0x14405c),_0xc5295b(_0x57e034[_0x272dea('0xa')](0x1f4,_0x2997b2[_0x272dea('0x3')]));});});}; \ No newline at end of file +const a256_0x3497=['then','where','../../config/logger','attributes','error','GetFaxQueue','include','map','./faxQueue.socket','message','info','FaxQueue','../../mysqldb','model','../../rediscache','ShowFaxQueue','debug','rpc','raw','options','catch','lodash','stringify','register'];(function(_0x21d555,_0x2241a1){const _0x3497b1=function(_0x4feb05){while(--_0x4feb05){_0x21d555['push'](_0x21d555['shift']());}};_0x3497b1(++_0x2241a1);}(a256_0x3497,0x189));const a256_0x4feb=function(_0x21d555,_0x2241a1){_0x21d555=_0x21d555-0x72;let _0x3497b1=a256_0x3497[_0x21d555];return _0x3497b1;};const a256_0x502b98=a256_0x4feb;'use strict';const _=require(a256_0x502b98(0x7e)),db=require(a256_0x502b98(0x75))['db'],logger=require(a256_0x502b98(0x83))(a256_0x502b98(0x7a)),{getSocket}=require(a256_0x502b98(0x77)),socket=getSocket();require(a256_0x502b98(0x89))[a256_0x502b98(0x80)](socket),exports[a256_0x502b98(0x86)]=function(_0x583ff4){const _0x2085d9=this;return new Promise(function(_0x54a6d3,_0x2febd0){const _0x176c90=a256_0x4feb;return db[_0x176c90(0x74)]['findAll']({'raw':_0x583ff4['options']?_0x583ff4[_0x176c90(0x7c)][_0x176c90(0x7b)]===undefined?!![]:![]:!![],'where':_0x583ff4['options']?_0x583ff4[_0x176c90(0x7c)][_0x176c90(0x82)]||null:null,'attributes':_0x583ff4[_0x176c90(0x7c)]?_0x583ff4[_0x176c90(0x7c)][_0x176c90(0x84)]||null:null,'limit':_0x583ff4[_0x176c90(0x7c)]?_0x583ff4['options']['limit']||null:null,'include':_0x583ff4['options']?_0x583ff4['options'][_0x176c90(0x87)]?_[_0x176c90(0x88)](_0x583ff4['options'][_0x176c90(0x87)],function(_0x5b7e3e){const _0x5bd61f=_0x176c90;return{'model':db[_0x5b7e3e[_0x5bd61f(0x76)]],'as':_0x5b7e3e['as'],'attributes':_0x5b7e3e[_0x5bd61f(0x84)],'include':_0x5b7e3e[_0x5bd61f(0x87)]?_['map'](_0x5b7e3e[_0x5bd61f(0x87)],function(_0x183e0f){const _0xa37096=_0x5bd61f;return{'model':db[_0x183e0f[_0xa37096(0x76)]],'as':_0x183e0f['as'],'attributes':_0x183e0f[_0xa37096(0x84)],'include':_0x183e0f['include']?_[_0xa37096(0x88)](_0x183e0f['include'],function(_0x4c8b1e){const _0x4d0550=_0xa37096;return{'model':db[_0x4c8b1e[_0x4d0550(0x76)]],'as':_0x4c8b1e['as'],'attributes':_0x4c8b1e[_0x4d0550(0x84)]};}):[]};}):[]};}):[]:[]})[_0x176c90(0x81)](function(_0x26203e){const _0xeb1ed5=_0x176c90;logger[_0xeb1ed5(0x73)](_0xeb1ed5(0x86),_0x583ff4),logger[_0xeb1ed5(0x79)](_0xeb1ed5(0x86),_0x583ff4,JSON[_0xeb1ed5(0x7f)](_0x26203e)),_0x54a6d3(_0x26203e);})[_0x176c90(0x7d)](function(_0x315fde){const _0xed5c14=_0x176c90;logger[_0xed5c14(0x85)](_0xed5c14(0x86),_0x315fde[_0xed5c14(0x72)],_0x583ff4),_0x2febd0(_0x2085d9[_0xed5c14(0x85)](0x1f4,_0x315fde['message']));});});},exports['ShowFaxQueue']=function(_0x40dc01){const _0xf70094=this;return new Promise(function(_0x406d56,_0x3a7def){const _0x39dc25=a256_0x4feb;return db[_0x39dc25(0x74)]['findOne']({'raw':_0x40dc01[_0x39dc25(0x7c)]?_0x40dc01[_0x39dc25(0x7c)][_0x39dc25(0x7b)]===undefined?!![]:![]:!![],'where':_0x40dc01[_0x39dc25(0x7c)]?_0x40dc01[_0x39dc25(0x7c)][_0x39dc25(0x82)]||null:null,'attributes':_0x40dc01[_0x39dc25(0x7c)]?_0x40dc01['options'][_0x39dc25(0x84)]||null:null,'include':_0x40dc01[_0x39dc25(0x7c)]?_0x40dc01[_0x39dc25(0x7c)][_0x39dc25(0x87)]?_[_0x39dc25(0x88)](_0x40dc01[_0x39dc25(0x7c)][_0x39dc25(0x87)],function(_0x2bd534){const _0x247c97=_0x39dc25;return{'model':db[_0x2bd534[_0x247c97(0x76)]],'as':_0x2bd534['as'],'attributes':_0x2bd534[_0x247c97(0x84)],'include':_0x2bd534[_0x247c97(0x87)]?_[_0x247c97(0x88)](_0x2bd534[_0x247c97(0x87)],function(_0xdec2df){const _0x5a1195=_0x247c97;return{'model':db[_0xdec2df[_0x5a1195(0x76)]],'as':_0xdec2df['as'],'attributes':_0xdec2df['attributes'],'include':_0xdec2df[_0x5a1195(0x87)]?_[_0x5a1195(0x88)](_0xdec2df[_0x5a1195(0x87)],function(_0x6875b5){const _0x1dd91c=_0x5a1195;return{'model':db[_0x6875b5[_0x1dd91c(0x76)]],'as':_0x6875b5['as'],'attributes':_0x6875b5[_0x1dd91c(0x84)]};}):[]};}):[]};}):[]:[]})[_0x39dc25(0x81)](function(_0x2a3b4f){const _0x1764dd=_0x39dc25;logger['info'](_0x1764dd(0x78),_0x40dc01),logger['debug'](_0x1764dd(0x78),_0x40dc01,JSON['stringify'](_0x2a3b4f)),_0x406d56(_0x2a3b4f);})[_0x39dc25(0x7d)](function(_0x54af68){const _0x577fd8=_0x39dc25;logger[_0x577fd8(0x85)](_0x577fd8(0x78),_0x54af68[_0x577fd8(0x72)],_0x40dc01),_0x3a7def(_0xf70094[_0x577fd8(0x85)](0x1f4,_0x54af68['message']));});});}; \ No newline at end of file diff --git a/server/api/faxQueue/faxQueue.socket.js b/server/api/faxQueue/faxQueue.socket.js index d1eef39..8cb0615 100644 --- a/server/api/faxQueue/faxQueue.socket.js +++ b/server/api/faxQueue/faxQueue.socket.js @@ -1 +1 @@ -const a216_0x4776=['save','./faxQueue.events','emit','faxQueue:','register','length','update'];(function(_0x3564a0,_0x47764d){const _0x5b68d5=function(_0x4dea37){while(--_0x4dea37){_0x3564a0['push'](_0x3564a0['shift']());}};_0x5b68d5(++_0x47764d);}(a216_0x4776,0xc3));const a216_0x5b68=function(_0x3564a0,_0x47764d){_0x3564a0=_0x3564a0-0x0;let _0x5b68d5=a216_0x4776[_0x3564a0];return _0x5b68d5;};const _0x5c64c1=a216_0x5b68;'use strict';const FaxQueueEvents=require(_0x5c64c1('0x2')),events=[_0x5c64c1('0x1'),'remove',_0x5c64c1('0x0')];function createListener(_0x4dea37,_0x3cfaf0){return function(_0x3357e0){const _0x354210=a216_0x5b68;_0x3cfaf0[_0x354210('0x3')](_0x4dea37,_0x3357e0);};}exports[_0x5c64c1('0x5')]=function(_0x49a921){const _0x4ad906=_0x5c64c1;for(let _0x4c4955=0x0,_0x336b89=events[_0x4ad906('0x6')];_0x4c4955<_0x336b89;_0x4c4955++){const _0x287739=events[_0x4c4955],_0x4038de=createListener(_0x4ad906('0x4')+_0x287739,_0x49a921);FaxQueueEvents['on'](_0x287739,_0x4038de);}}; \ No newline at end of file +const a257_0x568f=['update','length','./faxQueue.events','save','faxQueue:','remove','emit'];(function(_0x3fb174,_0x50eda1){const _0x568f92=function(_0x48269a){while(--_0x48269a){_0x3fb174['push'](_0x3fb174['shift']());}};_0x568f92(++_0x50eda1);}(a257_0x568f,0x10f));const a257_0x4826=function(_0x3fb174,_0x50eda1){_0x3fb174=_0x3fb174-0x1b7;let _0x568f92=a257_0x568f[_0x3fb174];return _0x568f92;};const a257_0x3ec7be=a257_0x4826;'use strict';const FaxQueueEvents=require(a257_0x3ec7be(0x1bb)),events=[a257_0x3ec7be(0x1bc),a257_0x3ec7be(0x1b7),a257_0x3ec7be(0x1b9)];function createListener(_0x2abb8b,_0x6dff7e){return function(_0x23d257){const _0x156b43=a257_0x4826;_0x6dff7e[_0x156b43(0x1b8)](_0x2abb8b,_0x23d257);};}exports['register']=function(_0x4ada5c){const _0x26ef18=a257_0x3ec7be;for(let _0x222db6=0x0,_0x1b6c4e=events[_0x26ef18(0x1ba)];_0x222db6<_0x1b6c4e;_0x222db6++){const _0x282c94=events[_0x222db6],_0x386987=createListener(_0x26ef18(0x1bd)+_0x282c94,_0x4ada5c);FaxQueueEvents['on'](_0x282c94,_0x386987);}}; \ No newline at end of file diff --git a/server/api/faxQueue/index.js b/server/api/faxQueue/index.js index e3e4e10..9b736e1 100644 --- a/server/api/faxQueue/index.js +++ b/server/api/faxQueue/index.js @@ -1 +1 @@ -const a217_0x1577=['getMembers','getAgents','/:id/users','show','get','destroy','isAuthenticated','index','removeTeams','describe','exports','/:id','post','/describe','Router','../../components/auth/service','./faxQueue.controller','removeAgents','delete','create','/:id/members','addAgents','/:id/teams','put'];(function(_0x4f7267,_0x157782){const _0x85b47d=function(_0x4c100b){while(--_0x4c100b){_0x4f7267['push'](_0x4f7267['shift']());}};_0x85b47d(++_0x157782);}(a217_0x1577,0x1ea));const a217_0x85b4=function(_0x4f7267,_0x157782){_0x4f7267=_0x4f7267-0x0;let _0x85b47d=a217_0x1577[_0x4f7267];return _0x85b47d;};const _0x3021dc=a217_0x85b4;'use strict';const express=require('express'),router=express[_0x3021dc('0x4')](),auth=require(_0x3021dc('0x5')),controller=require(_0x3021dc('0x6'));router[_0x3021dc('0x12')]('/',auth[_0x3021dc('0x14')](),controller[_0x3021dc('0x15')]),router[_0x3021dc('0x12')](_0x3021dc('0x3'),auth[_0x3021dc('0x14')](),controller[_0x3021dc('0x17')]),router['get']('/:id',auth[_0x3021dc('0x14')](),controller[_0x3021dc('0x11')]),router[_0x3021dc('0x12')](_0x3021dc('0xa'),auth[_0x3021dc('0x14')](),controller[_0x3021dc('0xe')]),router[_0x3021dc('0x12')](_0x3021dc('0xc'),auth[_0x3021dc('0x14')](),controller['getTeams']),router[_0x3021dc('0x12')]('/:id/users',auth[_0x3021dc('0x14')](),controller[_0x3021dc('0xf')]),router['post']('/',auth[_0x3021dc('0x14')](),controller[_0x3021dc('0x9')]),router['post'](_0x3021dc('0xc'),auth[_0x3021dc('0x14')](),controller['addTeams']),router[_0x3021dc('0x2')](_0x3021dc('0x10'),auth[_0x3021dc('0x14')](),controller[_0x3021dc('0xb')]),router[_0x3021dc('0xd')]('/:id',auth[_0x3021dc('0x14')](),controller['update']),router[_0x3021dc('0x8')](_0x3021dc('0x1'),auth[_0x3021dc('0x14')](),controller[_0x3021dc('0x13')]),router['delete'](_0x3021dc('0xc'),auth[_0x3021dc('0x14')](),controller[_0x3021dc('0x16')]),router[_0x3021dc('0x8')](_0x3021dc('0x10'),auth['isAuthenticated'](),controller[_0x3021dc('0x7')]),module[_0x3021dc('0x0')]=router; \ No newline at end of file +const a258_0x5806=['destroy','isAuthenticated','delete','../../components/auth/service','Router','removeTeams','put','get','getMembers','show','./faxQueue.controller','/:id/users','post','exports','/:id/teams','getTeams','describe','addAgents','/:id','index','removeAgents'];(function(_0xa42cfa,_0x6d8d4d){const _0x58067e=function(_0x2f4d02){while(--_0x2f4d02){_0xa42cfa['push'](_0xa42cfa['shift']());}};_0x58067e(++_0x6d8d4d);}(a258_0x5806,0x115));const a258_0x2f4d=function(_0xa42cfa,_0x6d8d4d){_0xa42cfa=_0xa42cfa-0x12a;let _0x58067e=a258_0x5806[_0xa42cfa];return _0x58067e;};const a258_0x28367c=a258_0x2f4d;'use strict';const express=require('express'),router=express[a258_0x28367c(0x12a)](),auth=require(a258_0x28367c(0x13e)),controller=require(a258_0x28367c(0x130));router[a258_0x28367c(0x12d)]('/',auth[a258_0x28367c(0x13c)](),controller[a258_0x28367c(0x139)]),router[a258_0x28367c(0x12d)]('/describe',auth['isAuthenticated'](),controller[a258_0x28367c(0x136)]),router[a258_0x28367c(0x12d)](a258_0x28367c(0x138),auth['isAuthenticated'](),controller[a258_0x28367c(0x12f)]),router['get']('/:id/members',auth['isAuthenticated'](),controller[a258_0x28367c(0x12e)]),router[a258_0x28367c(0x12d)]('/:id/teams',auth[a258_0x28367c(0x13c)](),controller[a258_0x28367c(0x135)]),router['get'](a258_0x28367c(0x131),auth[a258_0x28367c(0x13c)](),controller['getAgents']),router[a258_0x28367c(0x132)]('/',auth[a258_0x28367c(0x13c)](),controller['create']),router[a258_0x28367c(0x132)](a258_0x28367c(0x134),auth[a258_0x28367c(0x13c)](),controller['addTeams']),router[a258_0x28367c(0x132)]('/:id/users',auth[a258_0x28367c(0x13c)](),controller[a258_0x28367c(0x137)]),router[a258_0x28367c(0x12c)](a258_0x28367c(0x138),auth[a258_0x28367c(0x13c)](),controller['update']),router[a258_0x28367c(0x13d)](a258_0x28367c(0x138),auth[a258_0x28367c(0x13c)](),controller[a258_0x28367c(0x13b)]),router[a258_0x28367c(0x13d)](a258_0x28367c(0x134),auth[a258_0x28367c(0x13c)](),controller[a258_0x28367c(0x12b)]),router[a258_0x28367c(0x13d)](a258_0x28367c(0x131),auth[a258_0x28367c(0x13c)](),controller[a258_0x28367c(0x13a)]),module[a258_0x28367c(0x133)]=router; \ No newline at end of file diff --git a/server/api/faxQueueReport/faxQueueReport.attributes.js b/server/api/faxQueueReport/faxQueueReport.attributes.js index 8ba0e24..f1dff07 100644 --- a/server/api/faxQueueReport/faxQueueReport.attributes.js +++ b/server/api/faxQueueReport/faxQueueReport.attributes.js @@ -1 +1 @@ -const a218_0xe0ca=['DATE','exports','STRING','sequelize'];(function(_0x3d942a,_0xe0ca15){const _0x2bb564=function(_0x33d791){while(--_0x33d791){_0x3d942a['push'](_0x3d942a['shift']());}};_0x2bb564(++_0xe0ca15);}(a218_0xe0ca,0x8f));const a218_0x2bb5=function(_0x3d942a,_0xe0ca15){_0x3d942a=_0x3d942a-0x0;let _0x2bb564=a218_0xe0ca[_0x3d942a];return _0x2bb564;};const _0xa4c761=a218_0x2bb5;'use strict';const Sequelize=require(_0xa4c761('0x0'));module[_0xa4c761('0x2')]={'uniqueid':{'type':Sequelize[_0xa4c761('0x3')],'allowNull':![]},'from':{'type':Sequelize['STRING']},'joinAt':{'type':Sequelize[_0xa4c761('0x1')]},'leaveAt':{'type':Sequelize[_0xa4c761('0x1')]},'acceptAt':{'type':Sequelize[_0xa4c761('0x1')]},'exitAt':{'type':Sequelize[_0xa4c761('0x1')]},'reason':{'type':Sequelize[_0xa4c761('0x3')]}}; \ No newline at end of file +const a259_0x14a1=['attributes','DATE','sequelize','STRING','exports'];(function(_0x2c4f6d,_0x3291f6){const _0x14a178=function(_0x5ca1b9){while(--_0x5ca1b9){_0x2c4f6d['push'](_0x2c4f6d['shift']());}};_0x14a178(++_0x3291f6);}(a259_0x14a1,0x1c8));const a259_0x5ca1=function(_0x2c4f6d,_0x3291f6){_0x2c4f6d=_0x2c4f6d-0x12b;let _0x14a178=a259_0x14a1[_0x2c4f6d];return _0x14a178;};const a259_0x27da4c=a259_0x5ca1;'use strict';const {DataTypes}=require(a259_0x27da4c(0x12c)),attributes={'uniqueid':{'type':DataTypes[a259_0x27da4c(0x12d)],'allowNull':![]},'from':{'type':DataTypes[a259_0x27da4c(0x12d)]},'joinAt':{'type':DataTypes['DATE']},'leaveAt':{'type':DataTypes[a259_0x27da4c(0x12b)]},'acceptAt':{'type':DataTypes[a259_0x27da4c(0x12b)]},'exitAt':{'type':DataTypes[a259_0x27da4c(0x12b)]},'reason':{'type':DataTypes[a259_0x27da4c(0x12d)]}};module[a259_0x27da4c(0x12e)][a259_0x27da4c(0x12f)]=attributes; \ No newline at end of file diff --git a/server/api/faxQueueReport/faxQueueReport.controller.js b/server/api/faxQueueReport/faxQueueReport.controller.js index 84e8055..215b6ca 100644 --- a/server/api/faxQueueReport/faxQueueReport.controller.js +++ b/server/api/faxQueueReport/faxQueueReport.controller.js @@ -1 +1 @@ -const a219_0x29f5=['map','includeAll','where','model','VIRTUAL','status','include','lodash','FaxQueueReport','then','filter','query','options','error','describe','rows','create','fieldName','intersection','findAll','undefined','type','Content-Range','like','attributes','api','set','end','offset','length','limit','../../components/parsers/qs','pick','../../mysqldb','keys','rawAttributes','params','fields','show','json','merge','update','name','findOne','catch','sort','count','index','sendStatus','send','sequelize','filters','body'];(function(_0xdd4859,_0x29f51d){const _0x1f284=function(_0x35847f){while(--_0x35847f){_0xdd4859['push'](_0xdd4859['shift']());}};_0x1f284(++_0x29f51d);}(a219_0x29f5,0x16d));const a219_0x1f28=function(_0xdd4859,_0x29f51d){_0xdd4859=_0xdd4859-0x0;let _0x1f284=a219_0x29f5[_0xdd4859];return _0x1f284;};const _0x1fcc42=a219_0x1f28;'use strict';const _=require(_0x1fcc42('0xd')),qs=require(_0x1fcc42('0x25')),logger=require('../../config/logger')(_0x1fcc42('0x1f')),db=require(_0x1fcc42('0x27'))['db'],{Op}=require(_0x1fcc42('0x3'));function respondWithResult(_0x35847f,_0x29e67d){return _0x29e67d=_0x29e67d||0xc8,function(_0x210bc6){const _0xd84c3c=a219_0x1f28;if(_0x210bc6)return _0x35847f[_0xd84c3c('0xb')](_0x29e67d)[_0xd84c3c('0x2d')](_0x210bc6);};}function respondWithFilteredResult(_0x515c27,_0x2dc470){return function(_0x2403c2){const _0x3c27a2=a219_0x1f28;if(_0x2403c2){const _0x1fcc77=_0x2403c2[_0x3c27a2('0x34')],_0x2a3621=_0x2dc470['offset'];let _0x4a93c0=_0x2dc470[_0x3c27a2('0x22')]+_0x2dc470['limit'],_0x5c2251;return _0x4a93c0>=_0x1fcc77?(_0x4a93c0=_0x1fcc77,_0x5c2251=0xc8):_0x5c2251=0xce,_0x515c27[_0x3c27a2('0xb')](_0x5c2251),_0x515c27[_0x3c27a2('0x20')](_0x3c27a2('0x1c'),_0x2a3621+'-'+_0x4a93c0+'/'+_0x1fcc77)[_0x3c27a2('0x2d')](_0x2403c2);}return null;};}function saveUpdates(_0x3afff8){return function(_0x21b4d6){const _0x5271a0=a219_0x1f28;if(_0x21b4d6)return _0x21b4d6['update'](_0x3afff8)[_0x5271a0('0xf')](function(_0x4fe8fa){return _0x4fe8fa;});return null;};}function removeEntity(_0x53c760){return function(_0x38b393){const _0x55d88b=a219_0x1f28;if(_0x38b393)return _0x38b393['destroy']()[_0x55d88b('0xf')](function(){const _0x37a182=_0x55d88b;_0x53c760[_0x37a182('0xb')](0xcc)[_0x37a182('0x21')]();});};}function handleEntityNotFound(_0x18faf7){return function(_0x5783ca){const _0x129a32=a219_0x1f28;return!_0x5783ca&&_0x18faf7[_0x129a32('0x1')](0x194),_0x5783ca;};}function handleError(_0xff3510,_0x400f03){return _0x400f03=_0x400f03||0x1f4,function(_0x4cd077){const _0xd5079c=a219_0x1f28;logger[_0xd5079c('0x13')](_0x4cd077['stack']),_0x4cd077[_0xd5079c('0x30')]&&delete _0x4cd077[_0xd5079c('0x30')],_0xff3510['status'](_0x400f03)[_0xd5079c('0x2')](_0x4cd077);};}exports[_0x1fcc42('0x0')]=function(_0x1b8ca8,_0x3209de){const _0x3be7dd=_0x1fcc42;let _0x19b8b4={};const _0xc54755={},_0x16bc36={'count':0x0,'rows':[]},_0x23d8f4=_[_0x3be7dd('0x6')](db[_0x3be7dd('0xe')][_0x3be7dd('0x29')],function(_0x4b97f6){const _0x41f701=_0x3be7dd;return{'name':_0x4b97f6[_0x41f701('0x17')],'type':_0x4b97f6[_0x41f701('0x1b')]['key']};});_0xc54755[_0x3be7dd('0x9')]=_[_0x3be7dd('0x6')](_0x23d8f4,_0x3be7dd('0x30')),_0xc54755[_0x3be7dd('0x11')]=_['keys'](_0x1b8ca8['query']),_0xc54755[_0x3be7dd('0x4')]=_[_0x3be7dd('0x18')](_0xc54755[_0x3be7dd('0x9')],_0xc54755[_0x3be7dd('0x11')]),_0x19b8b4[_0x3be7dd('0x1e')]=_[_0x3be7dd('0x18')](_0xc54755[_0x3be7dd('0x9')],qs['fields'](_0x1b8ca8[_0x3be7dd('0x11')]['fields'])),_0x19b8b4[_0x3be7dd('0x1e')]=_0x19b8b4[_0x3be7dd('0x1e')][_0x3be7dd('0x23')]?_0x19b8b4[_0x3be7dd('0x1e')]:_0xc54755['model'];typeof _0x1b8ca8['query']['nolimit']===_0x3be7dd('0x1a')&&(_0x19b8b4[_0x3be7dd('0x24')]=qs['limit'](_0x1b8ca8[_0x3be7dd('0x11')][_0x3be7dd('0x24')]),_0x19b8b4['offset']=qs[_0x3be7dd('0x22')](_0x1b8ca8[_0x3be7dd('0x11')]['offset']));_0x19b8b4['order']=qs[_0x3be7dd('0x33')](_0x1b8ca8[_0x3be7dd('0x11')]['sort']),_0x19b8b4[_0x3be7dd('0x8')]=qs[_0x3be7dd('0x4')](_[_0x3be7dd('0x26')](_0x1b8ca8['query'],_0xc54755[_0x3be7dd('0x4')]),_0x23d8f4);_0x1b8ca8[_0x3be7dd('0x11')][_0x3be7dd('0x10')]&&(_0x19b8b4[_0x3be7dd('0x8')]=_[_0x3be7dd('0x2e')](_0x19b8b4[_0x3be7dd('0x8')],{[Op['or']]:_[_0x3be7dd('0x6')](_0x23d8f4,function(_0x2a369e){const _0x14eb58=_0x3be7dd;if(_0x2a369e[_0x14eb58('0x1b')]!==_0x14eb58('0xa')){const _0x5681e0={};return _0x5681e0[_0x2a369e['name']]={[Op[_0x14eb58('0x1d')]]:'%'+_0x1b8ca8[_0x14eb58('0x11')][_0x14eb58('0x10')]+'%'},_0x5681e0;}})}));_0x19b8b4=_[_0x3be7dd('0x2e')]({},_0x19b8b4,_0x1b8ca8[_0x3be7dd('0x12')]);const _0x29cea6={'where':_0x19b8b4[_0x3be7dd('0x8')]};return db[_0x3be7dd('0xe')][_0x3be7dd('0x34')](_0x29cea6)[_0x3be7dd('0xf')](function(_0xdc6ed5){const _0xfea2a2=_0x3be7dd;return _0x16bc36['count']=_0xdc6ed5,_0x1b8ca8[_0xfea2a2('0x11')]['includeAll']&&(_0x19b8b4['include']=[{'all':!![]}]),db[_0xfea2a2('0xe')][_0xfea2a2('0x19')](_0x19b8b4);})[_0x3be7dd('0xf')](function(_0x56f316){const _0x4d6a13=_0x3be7dd;return _0x16bc36[_0x4d6a13('0x15')]=_0x56f316,_0x16bc36;})[_0x3be7dd('0xf')](respondWithFilteredResult(_0x3209de,_0x19b8b4))['catch'](handleError(_0x3209de,null));},exports[_0x1fcc42('0x2c')]=function(_0x21721b,_0xb4e8d1){const _0x296940=_0x1fcc42;let _0x28cf0d={'raw':!![],'where':{'id':_0x21721b[_0x296940('0x2a')]['id']}};const _0x2fa5d0={};return _0x2fa5d0[_0x296940('0x9')]=_[_0x296940('0x28')](db[_0x296940('0xe')][_0x296940('0x29')]),_0x2fa5d0[_0x296940('0x11')]=_[_0x296940('0x28')](_0x21721b[_0x296940('0x11')]),_0x2fa5d0[_0x296940('0x4')]=_['intersection'](_0x2fa5d0[_0x296940('0x9')],_0x2fa5d0[_0x296940('0x11')]),_0x28cf0d[_0x296940('0x1e')]=_[_0x296940('0x18')](_0x2fa5d0['model'],qs[_0x296940('0x2b')](_0x21721b[_0x296940('0x11')][_0x296940('0x2b')])),_0x28cf0d[_0x296940('0x1e')]=_0x28cf0d[_0x296940('0x1e')][_0x296940('0x23')]?_0x28cf0d[_0x296940('0x1e')]:_0x2fa5d0[_0x296940('0x9')],_0x21721b[_0x296940('0x11')][_0x296940('0x7')]&&(_0x28cf0d[_0x296940('0xc')]=[{'all':!![]}]),_0x28cf0d=_[_0x296940('0x2e')]({},_0x28cf0d,_0x21721b[_0x296940('0x12')]),db['FaxQueueReport'][_0x296940('0x31')](_0x28cf0d)['then'](handleEntityNotFound(_0xb4e8d1,null))[_0x296940('0xf')](respondWithResult(_0xb4e8d1,null))['catch'](handleError(_0xb4e8d1,null));},exports['create']=function(_0x1c445d,_0x5b8231){const _0x53fab=_0x1fcc42;return db['FaxQueueReport'][_0x53fab('0x16')](_0x1c445d[_0x53fab('0x5')],{})['then'](respondWithResult(_0x5b8231,0xc9))['catch'](handleError(_0x5b8231,null));},exports[_0x1fcc42('0x2f')]=function(_0x4966c7,_0x326cbc){const _0x5c90c6=_0x1fcc42;return _0x4966c7[_0x5c90c6('0x5')]['id']&&delete _0x4966c7[_0x5c90c6('0x5')]['id'],db[_0x5c90c6('0xe')][_0x5c90c6('0x31')]({'where':{'id':_0x4966c7[_0x5c90c6('0x2a')]['id']}})['then'](handleEntityNotFound(_0x326cbc,null))[_0x5c90c6('0xf')](saveUpdates(_0x4966c7[_0x5c90c6('0x5')],null))[_0x5c90c6('0xf')](respondWithResult(_0x326cbc,null))['catch'](handleError(_0x326cbc,null));},exports['destroy']=function(_0x3c926,_0x181634){const _0x215118=_0x1fcc42;return db[_0x215118('0xe')][_0x215118('0x31')]({'where':{'id':_0x3c926[_0x215118('0x2a')]['id']}})[_0x215118('0xf')](handleEntityNotFound(_0x181634,null))[_0x215118('0xf')](removeEntity(_0x181634,null))[_0x215118('0x32')](handleError(_0x181634,null));},exports[_0x1fcc42('0x14')]=function(_0x44189b,_0x5d875c){const _0x40d155=_0x1fcc42;return db[_0x40d155('0xe')][_0x40d155('0x14')]()[_0x40d155('0xf')](respondWithResult(_0x5d875c,null))[_0x40d155('0x32')](handleError(_0x5d875c,null));}; \ No newline at end of file +const a260_0x4708=['../../config/logger','fields','status','include','body','index','order','limit','key','options','destroy','length','send','sort','catch','merge','includeAll','create','api','query','findAll','type','filter','pick','intersection','model','undefined','attributes','count','map','update','nolimit','filters','name','set','stack','show','sendStatus','findOne','json','VIRTUAL','then','offset','params','lodash','where','keys','describe','FaxQueueReport','rawAttributes','like'];(function(_0x4f23dc,_0x2db4ce){const _0x4708d0=function(_0xac7725){while(--_0xac7725){_0x4f23dc['push'](_0x4f23dc['shift']());}};_0x4708d0(++_0x2db4ce);}(a260_0x4708,0x6b));const a260_0xac77=function(_0x4f23dc,_0x2db4ce){_0x4f23dc=_0x4f23dc-0x180;let _0x4708d0=a260_0x4708[_0x4f23dc];return _0x4708d0;};const a260_0x56c30d=a260_0xac77;'use strict';const _=require(a260_0x56c30d(0x1a7)),qs=require('../../components/parsers/qs'),logger=require(a260_0x56c30d(0x1ae))(a260_0x56c30d(0x18d)),{db}=require('../../mysqldb'),{Op}=require('sequelize');function respondWithResult(_0x31f245,_0x3d123b){return _0x3d123b=_0x3d123b||0xc8,function(_0x37ff32){const _0x28fa5c=a260_0xac77;if(_0x37ff32)return _0x31f245[_0x28fa5c(0x1b0)](_0x3d123b)[_0x28fa5c(0x1a2)](_0x37ff32);};}function respondWithFilteredResult(_0x48693f,_0x32c05d){return function(_0xe87c6d){const _0x332e61=a260_0xac77;if(_0xe87c6d){const _0x239d2e=_0xe87c6d[_0x332e61(0x197)],_0x2a922e=_0x32c05d[_0x332e61(0x1a5)];let _0x24882e=_0x32c05d[_0x332e61(0x1a5)]+_0x32c05d['limit'],_0x59d6ee;return _0x24882e>=_0x239d2e?(_0x24882e=_0x239d2e,_0x59d6ee=0xc8):_0x59d6ee=0xce,_0x48693f[_0x332e61(0x1b0)](_0x59d6ee),_0x48693f[_0x332e61(0x19d)]('Content-Range',_0x2a922e+'-'+_0x24882e+'/'+_0x239d2e)[_0x332e61(0x1a2)](_0xe87c6d);}return null;};}function saveUpdates(_0x46d341){return function(_0x17fb01){const _0x1f5b03=a260_0xac77;if(_0x17fb01)return _0x17fb01[_0x1f5b03(0x199)](_0x46d341)[_0x1f5b03(0x1a4)](function(_0x2f41b2){return _0x2f41b2;});return null;};}function removeEntity(_0x3cc888){return function(_0x351c50){const _0x159cd7=a260_0xac77;if(_0x351c50)return _0x351c50[_0x159cd7(0x185)]()['then'](function(){_0x3cc888['status'](0xcc)['end']();});};}function handleEntityNotFound(_0x29e4fc){return function(_0x27c2f6){const _0x2da857=a260_0xac77;return!_0x27c2f6&&_0x29e4fc[_0x2da857(0x1a0)](0x194),_0x27c2f6;};}function handleError(_0x2c0f44,_0x873ff2){return _0x873ff2=_0x873ff2||0x1f4,function(_0x157be1){const _0x1274d9=a260_0xac77;logger['error'](_0x157be1[_0x1274d9(0x19e)]),_0x157be1[_0x1274d9(0x19c)]&&delete _0x157be1['name'],_0x2c0f44[_0x1274d9(0x1b0)](_0x873ff2)[_0x1274d9(0x187)](_0x157be1);};}exports[a260_0x56c30d(0x180)]=function(_0x528a69,_0x3f80d3){const _0x233204=a260_0x56c30d;let _0x3d26c3={};const _0x579e67={},_0xbd00da={'count':0x0,'rows':[]},_0x8891e0=_[_0x233204(0x198)](db[_0x233204(0x1ab)][_0x233204(0x1ac)],function(_0x52d7b2){const _0x749aa4=_0x233204;return{'name':_0x52d7b2['fieldName'],'type':_0x52d7b2[_0x749aa4(0x190)][_0x749aa4(0x183)]};});_0x579e67[_0x233204(0x194)]=_[_0x233204(0x198)](_0x8891e0,_0x233204(0x19c)),_0x579e67[_0x233204(0x18e)]=_[_0x233204(0x1a9)](_0x528a69[_0x233204(0x18e)]),_0x579e67['filters']=_['intersection'](_0x579e67['model'],_0x579e67[_0x233204(0x18e)]),_0x3d26c3['attributes']=_[_0x233204(0x193)](_0x579e67[_0x233204(0x194)],qs['fields'](_0x528a69['query'][_0x233204(0x1af)])),_0x3d26c3[_0x233204(0x196)]=_0x3d26c3['attributes']['length']?_0x3d26c3[_0x233204(0x196)]:_0x579e67[_0x233204(0x194)];typeof _0x528a69[_0x233204(0x18e)][_0x233204(0x19a)]===_0x233204(0x195)&&(_0x3d26c3['limit']=qs[_0x233204(0x182)](_0x528a69[_0x233204(0x18e)]['limit']),_0x3d26c3[_0x233204(0x1a5)]=qs[_0x233204(0x1a5)](_0x528a69[_0x233204(0x18e)][_0x233204(0x1a5)]));_0x3d26c3[_0x233204(0x181)]=qs[_0x233204(0x188)](_0x528a69['query'][_0x233204(0x188)]),_0x3d26c3[_0x233204(0x1a8)]=qs[_0x233204(0x19b)](_[_0x233204(0x192)](_0x528a69['query'],_0x579e67['filters']),_0x8891e0);_0x528a69[_0x233204(0x18e)]['filter']&&(_0x3d26c3[_0x233204(0x1a8)]=_['merge'](_0x3d26c3[_0x233204(0x1a8)],{[Op['or']]:_[_0x233204(0x198)](_0x8891e0,function(_0x1a8b66){const _0x51495e=_0x233204;if(_0x1a8b66[_0x51495e(0x190)]!==_0x51495e(0x1a3)){const _0x1a02c1={};return _0x1a02c1[_0x1a8b66[_0x51495e(0x19c)]]={[Op[_0x51495e(0x1ad)]]:'%'+_0x528a69[_0x51495e(0x18e)][_0x51495e(0x191)]+'%'},_0x1a02c1;}})}));_0x3d26c3=_[_0x233204(0x18a)]({},_0x3d26c3,_0x528a69[_0x233204(0x184)]);const _0xd61190={'where':_0x3d26c3['where']};return db[_0x233204(0x1ab)]['count'](_0xd61190)['then'](function(_0x3f1e40){const _0x4b9217=_0x233204;return _0xbd00da[_0x4b9217(0x197)]=_0x3f1e40,_0x528a69[_0x4b9217(0x18e)][_0x4b9217(0x18b)]&&(_0x3d26c3[_0x4b9217(0x1b1)]=[{'all':!![]}]),db[_0x4b9217(0x1ab)][_0x4b9217(0x18f)](_0x3d26c3);})['then'](function(_0x1941d0){return _0xbd00da['rows']=_0x1941d0,_0xbd00da;})[_0x233204(0x1a4)](respondWithFilteredResult(_0x3f80d3,_0x3d26c3))[_0x233204(0x189)](handleError(_0x3f80d3,null));},exports[a260_0x56c30d(0x19f)]=function(_0x14b2da,_0x38d266){const _0x38bc56=a260_0x56c30d;let _0x5531b8={'raw':!![],'where':{'id':_0x14b2da['params']['id']}};const _0x4f7fbe={};return _0x4f7fbe[_0x38bc56(0x194)]=_[_0x38bc56(0x1a9)](db[_0x38bc56(0x1ab)][_0x38bc56(0x1ac)]),_0x4f7fbe['query']=_[_0x38bc56(0x1a9)](_0x14b2da[_0x38bc56(0x18e)]),_0x4f7fbe[_0x38bc56(0x19b)]=_[_0x38bc56(0x193)](_0x4f7fbe[_0x38bc56(0x194)],_0x4f7fbe['query']),_0x5531b8[_0x38bc56(0x196)]=_[_0x38bc56(0x193)](_0x4f7fbe[_0x38bc56(0x194)],qs[_0x38bc56(0x1af)](_0x14b2da[_0x38bc56(0x18e)][_0x38bc56(0x1af)])),_0x5531b8[_0x38bc56(0x196)]=_0x5531b8[_0x38bc56(0x196)][_0x38bc56(0x186)]?_0x5531b8['attributes']:_0x4f7fbe[_0x38bc56(0x194)],_0x14b2da[_0x38bc56(0x18e)][_0x38bc56(0x18b)]&&(_0x5531b8[_0x38bc56(0x1b1)]=[{'all':!![]}]),_0x5531b8=_['merge']({},_0x5531b8,_0x14b2da[_0x38bc56(0x184)]),db['FaxQueueReport']['findOne'](_0x5531b8)[_0x38bc56(0x1a4)](handleEntityNotFound(_0x38d266,null))[_0x38bc56(0x1a4)](respondWithResult(_0x38d266,null))[_0x38bc56(0x189)](handleError(_0x38d266,null));},exports[a260_0x56c30d(0x18c)]=function(_0xd15d54,_0x3c198e){const _0x180233=a260_0x56c30d;return db[_0x180233(0x1ab)][_0x180233(0x18c)](_0xd15d54[_0x180233(0x1b2)],{})[_0x180233(0x1a4)](respondWithResult(_0x3c198e,0xc9))[_0x180233(0x189)](handleError(_0x3c198e,null));},exports[a260_0x56c30d(0x199)]=function(_0x58d9a4,_0x3bbfd7){const _0x16ff97=a260_0x56c30d;return _0x58d9a4[_0x16ff97(0x1b2)]['id']&&delete _0x58d9a4[_0x16ff97(0x1b2)]['id'],db[_0x16ff97(0x1ab)][_0x16ff97(0x1a1)]({'where':{'id':_0x58d9a4[_0x16ff97(0x1a6)]['id']}})[_0x16ff97(0x1a4)](handleEntityNotFound(_0x3bbfd7,null))['then'](saveUpdates(_0x58d9a4['body'],null))[_0x16ff97(0x1a4)](respondWithResult(_0x3bbfd7,null))['catch'](handleError(_0x3bbfd7,null));},exports[a260_0x56c30d(0x185)]=function(_0x4db33d,_0x34698c){const _0xfb65c9=a260_0x56c30d;return db[_0xfb65c9(0x1ab)][_0xfb65c9(0x1a1)]({'where':{'id':_0x4db33d[_0xfb65c9(0x1a6)]['id']}})[_0xfb65c9(0x1a4)](handleEntityNotFound(_0x34698c,null))['then'](removeEntity(_0x34698c,null))[_0xfb65c9(0x189)](handleError(_0x34698c,null));},exports[a260_0x56c30d(0x1aa)]=function(_0x49424e,_0x178ed8){const _0x576a1b=a260_0x56c30d;return db[_0x576a1b(0x1ab)][_0x576a1b(0x1aa)]()['then'](respondWithResult(_0x178ed8,null))[_0x576a1b(0x189)](handleError(_0x178ed8,null));}; \ No newline at end of file diff --git a/server/api/faxQueueReport/faxQueueReport.model.js b/server/api/faxQueueReport/faxQueueReport.model.js index ca86318..e3059b3 100644 --- a/server/api/faxQueueReport/faxQueueReport.model.js +++ b/server/api/faxQueueReport/faxQueueReport.model.js @@ -1 +1 @@ -const a220_0x14b0=['report_fax_queue','define','./faxQueueReport.attributes','uniqueid','FaxQueueReport'];(function(_0x452566,_0x14b0af){const _0x2e295c=function(_0x343d36){while(--_0x343d36){_0x452566['push'](_0x452566['shift']());}};_0x2e295c(++_0x14b0af);}(a220_0x14b0,0xbb));const a220_0x2e29=function(_0x452566,_0x14b0af){_0x452566=_0x452566-0x0;let _0x2e295c=a220_0x14b0[_0x452566];return _0x2e295c;};const _0xbf340f=a220_0x2e29;'use strict';const attributes=require(_0xbf340f('0x0'));module['exports']=function(_0x343d36){const _0x31043f=_0xbf340f,_0x153d37=_0x343d36[_0x31043f('0x4')](_0x31043f('0x2'),attributes,{'tableName':_0x31043f('0x3'),'paranoid':![],'indexes':[{'name':'uniqueid','fields':[_0x31043f('0x1')]}],'timestamps':!![]});return _0x153d37;}; \ No newline at end of file +const a261_0x4b7d=['./faxQueueReport.options','exports','init','sequelize'];(function(_0x2f355f,_0x4687e0){const _0x4b7dad=function(_0x396168){while(--_0x396168){_0x2f355f['push'](_0x2f355f['shift']());}};_0x4b7dad(++_0x4687e0);}(a261_0x4b7d,0x95));const a261_0x3961=function(_0x2f355f,_0x4687e0){_0x2f355f=_0x2f355f-0x160;let _0x4b7dad=a261_0x4b7d[_0x2f355f];return _0x4b7dad;};const a261_0x4c9c3d=a261_0x3961;'use strict';const {Model}=require(a261_0x4c9c3d(0x162)),{attributes}=require('./faxQueueReport.attributes'),{options}=require(a261_0x4c9c3d(0x163));class FaxQueueReport extends Model{}function init(_0x227b0e,_0x4a0c06){const _0x3668=a261_0x4c9c3d,_0xb4b272=options(_0x227b0e),_0x1d9296=typeof _0x4a0c06==='function'?_0x4a0c06(_0xb4b272):_0xb4b272;return FaxQueueReport[_0x3668(0x161)](attributes,_0x1d9296),FaxQueueReport;}module[a261_0x4c9c3d(0x160)]['FaxQueueReport']=FaxQueueReport,module['exports'][a261_0x4c9c3d(0x161)]=init; \ No newline at end of file diff --git a/server/api/faxQueueReport/faxQueueReport.options.js b/server/api/faxQueueReport/faxQueueReport.options.js new file mode 100644 index 0000000..27da7c1 --- /dev/null +++ b/server/api/faxQueueReport/faxQueueReport.options.js @@ -0,0 +1 @@ +var a262_0x10da=['options','uniqueid','exports','report_fax_queue'];(function(_0x36a9e5,_0x3bc181){var _0x10da34=function(_0x3389dd){while(--_0x3389dd){_0x36a9e5['push'](_0x36a9e5['shift']());}};_0x10da34(++_0x3bc181);}(a262_0x10da,0x1c2));var a262_0x3389=function(_0x36a9e5,_0x3bc181){_0x36a9e5=_0x36a9e5-0x155;var _0x10da34=a262_0x10da[_0x36a9e5];return _0x10da34;};var a262_0x4e1e85=a262_0x3389;function options(_0x4cf2ab){var _0x216602=a262_0x3389;return{'sequelize':_0x4cf2ab,'tableName':_0x216602(0x156),'paranoid':![],'indexes':[{'name':'uniqueid','fields':[_0x216602(0x158)]}],'timestamps':!![]};}module[a262_0x4e1e85(0x155)][a262_0x4e1e85(0x157)]=options; \ No newline at end of file diff --git a/server/api/faxQueueReport/faxQueueReport.rpc.js b/server/api/faxQueueReport/faxQueueReport.rpc.js index 4c98767..723138b 100644 --- a/server/api/faxQueueReport/faxQueueReport.rpc.js +++ b/server/api/faxQueueReport/faxQueueReport.rpc.js @@ -1 +1 @@ -const a221_0x4d84=['update','body','catch','UpdateFaxQueueReport','error','where','debug','info','FaxQueueReport','CreateFaxQueueReport','message','attributes','raw','then','rpc','../../mysqldb','options'];(function(_0xa5d6a4,_0x4d84df){const _0x5b1e2f=function(_0x107e68){while(--_0x107e68){_0xa5d6a4['push'](_0xa5d6a4['shift']());}};_0x5b1e2f(++_0x4d84df);}(a221_0x4d84,0xbf));const a221_0x5b1e=function(_0xa5d6a4,_0x4d84df){_0xa5d6a4=_0xa5d6a4-0x0;let _0x5b1e2f=a221_0x4d84[_0xa5d6a4];return _0x5b1e2f;};const _0x244599=a221_0x5b1e;'use strict';const db=require(_0x244599('0xb'))['db'],logger=require('../../config/logger')(_0x244599('0xa'));exports[_0x244599('0x5')]=function(_0x107e68){const _0x205756=this;return new Promise(function(_0x498293,_0x5384c8){const _0x5bbacb=a221_0x5b1e;return db[_0x5bbacb('0x4')]['create'](_0x107e68[_0x5bbacb('0xe')],{'raw':_0x107e68['options']?_0x107e68[_0x5bbacb('0xc')][_0x5bbacb('0x8')]===undefined?!![]:![]:!![]})[_0x5bbacb('0x9')](function(_0x95d558){const _0x1edc31=_0x5bbacb;logger[_0x1edc31('0x3')](_0x1edc31('0x5'),_0x107e68),logger[_0x1edc31('0x2')](_0x1edc31('0x5'),_0x107e68,JSON['stringify'](_0x95d558)),_0x498293(_0x95d558);})[_0x5bbacb('0xf')](function(_0x5443c2){const _0x17096c=_0x5bbacb;logger[_0x17096c('0x0')](_0x17096c('0x5'),_0x5443c2[_0x17096c('0x6')],_0x107e68),_0x5384c8(_0x205756[_0x17096c('0x0')](0x1f4,_0x5443c2[_0x17096c('0x6')]));});});},exports[_0x244599('0x10')]=function(_0x2c2020){const _0x3dfe49=this;return new Promise(function(_0x4ceca8,_0x27f6e2){const _0x2f15a9=a221_0x5b1e;return db[_0x2f15a9('0x4')][_0x2f15a9('0xd')](_0x2c2020[_0x2f15a9('0xe')],{'raw':_0x2c2020[_0x2f15a9('0xc')]?_0x2c2020[_0x2f15a9('0xc')]['raw']===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x2c2020[_0x2f15a9('0xc')]?_0x2c2020['options'][_0x2f15a9('0x1')]||null:null,'attributes':_0x2c2020[_0x2f15a9('0xc')]?_0x2c2020[_0x2f15a9('0xc')][_0x2f15a9('0x7')]||null:null,'limit':_0x2c2020[_0x2f15a9('0xc')]?_0x2c2020[_0x2f15a9('0xc')]['limit']||null:null})[_0x2f15a9('0x9')](function(_0x271b8f){const _0x13568f=_0x2f15a9;logger['info']('UpdateFaxQueueReport',_0x2c2020),logger[_0x13568f('0x2')]('UpdateFaxQueueReport',_0x2c2020,JSON['stringify'](_0x271b8f)),_0x4ceca8(_0x271b8f);})[_0x2f15a9('0xf')](function(_0x3bb624){const _0x33cd08=_0x2f15a9;logger[_0x33cd08('0x0')](_0x33cd08('0x10'),_0x3bb624[_0x33cd08('0x6')],_0x2c2020),_0x27f6e2(_0x3dfe49[_0x33cd08('0x0')](0x1f4,_0x3bb624[_0x33cd08('0x6')]));});});}; \ No newline at end of file +const a263_0x1eee=['FaxQueueReport','rpc','../../mysqldb','../../config/logger','info','debug','body','where','attributes','options','catch','message','raw','stringify','CreateFaxQueueReport','update','then','limit','UpdateFaxQueueReport','error','create'];(function(_0x406b17,_0x5e416f){const _0x1eee93=function(_0x553160){while(--_0x553160){_0x406b17['push'](_0x406b17['shift']());}};_0x1eee93(++_0x5e416f);}(a263_0x1eee,0xff));const a263_0x5531=function(_0x406b17,_0x5e416f){_0x406b17=_0x406b17-0xb4;let _0x1eee93=a263_0x1eee[_0x406b17];return _0x1eee93;};const a263_0x29bfb5=a263_0x5531;'use strict';const db=require(a263_0x29bfb5(0xc8))['db'],logger=require(a263_0x29bfb5(0xb4))(a263_0x29bfb5(0xc7));exports[a263_0x29bfb5(0xbf)]=function(_0x3d2e23){const _0x20f962=this;return new Promise(function(_0x53d2fb,_0x4a7512){const _0x38289a=a263_0x5531;return db['FaxQueueReport'][_0x38289a(0xc5)](_0x3d2e23[_0x38289a(0xb7)],{'raw':_0x3d2e23[_0x38289a(0xba)]?_0x3d2e23[_0x38289a(0xba)]['raw']===undefined?!![]:![]:!![]})[_0x38289a(0xc1)](function(_0x37c748){const _0x21d526=_0x38289a;logger[_0x21d526(0xb5)]('CreateFaxQueueReport',_0x3d2e23),logger[_0x21d526(0xb6)](_0x21d526(0xbf),_0x3d2e23,JSON[_0x21d526(0xbe)](_0x37c748)),_0x53d2fb(_0x37c748);})[_0x38289a(0xbb)](function(_0x4a743f){const _0x53d5ef=_0x38289a;logger['error'](_0x53d5ef(0xbf),_0x4a743f['message'],_0x3d2e23),_0x4a7512(_0x20f962[_0x53d5ef(0xc4)](0x1f4,_0x4a743f[_0x53d5ef(0xbc)]));});});},exports[a263_0x29bfb5(0xc3)]=function(_0x3cdd7b){const _0x248403=this;return new Promise(function(_0x281baf,_0x74ddfb){const _0x2d99db=a263_0x5531;return db[_0x2d99db(0xc6)][_0x2d99db(0xc0)](_0x3cdd7b[_0x2d99db(0xb7)],{'raw':_0x3cdd7b[_0x2d99db(0xba)]?_0x3cdd7b[_0x2d99db(0xba)][_0x2d99db(0xbd)]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x3cdd7b[_0x2d99db(0xba)]?_0x3cdd7b[_0x2d99db(0xba)][_0x2d99db(0xb8)]||null:null,'attributes':_0x3cdd7b[_0x2d99db(0xba)]?_0x3cdd7b[_0x2d99db(0xba)][_0x2d99db(0xb9)]||null:null,'limit':_0x3cdd7b[_0x2d99db(0xba)]?_0x3cdd7b[_0x2d99db(0xba)][_0x2d99db(0xc2)]||null:null})['then'](function(_0x56f2b1){const _0x15b35f=_0x2d99db;logger[_0x15b35f(0xb5)](_0x15b35f(0xc3),_0x3cdd7b),logger[_0x15b35f(0xb6)](_0x15b35f(0xc3),_0x3cdd7b,JSON[_0x15b35f(0xbe)](_0x56f2b1)),_0x281baf(_0x56f2b1);})[_0x2d99db(0xbb)](function(_0x53013e){const _0x48e2f8=_0x2d99db;logger[_0x48e2f8(0xc4)](_0x48e2f8(0xc3),_0x53013e['message'],_0x3cdd7b),_0x74ddfb(_0x248403['error'](0x1f4,_0x53013e[_0x48e2f8(0xbc)]));});});}; \ No newline at end of file diff --git a/server/api/faxQueueReport/index.js b/server/api/faxQueueReport/index.js index 5d4ac2b..fdaba9b 100644 --- a/server/api/faxQueueReport/index.js +++ b/server/api/faxQueueReport/index.js @@ -1 +1 @@ -const a222_0x5282=['../../components/auth/service','./faxQueueReport.controller','destroy','create','show','delete','Router','describe','isAuthenticated','/describe','post','/:id','get'];(function(_0x67b4bc,_0x52824a){const _0x107878=function(_0x56b559){while(--_0x56b559){_0x67b4bc['push'](_0x67b4bc['shift']());}};_0x107878(++_0x52824a);}(a222_0x5282,0x186));const a222_0x1078=function(_0x67b4bc,_0x52824a){_0x67b4bc=_0x67b4bc-0x0;let _0x107878=a222_0x5282[_0x67b4bc];return _0x107878;};const _0x4bff65=a222_0x1078;'use strict';const express=require('express'),router=express[_0x4bff65('0x6')](),auth=require(_0x4bff65('0x0')),controller=require(_0x4bff65('0x1'));router[_0x4bff65('0xc')]('/',auth[_0x4bff65('0x8')](),controller['index']),router[_0x4bff65('0xc')](_0x4bff65('0x9'),auth[_0x4bff65('0x8')](),controller[_0x4bff65('0x7')]),router['get'](_0x4bff65('0xb'),auth[_0x4bff65('0x8')](),controller[_0x4bff65('0x4')]),router[_0x4bff65('0xa')]('/',auth[_0x4bff65('0x8')](),controller[_0x4bff65('0x3')]),router['put'](_0x4bff65('0xb'),auth[_0x4bff65('0x8')](),controller['update']),router[_0x4bff65('0x5')]('/:id',auth['isAuthenticated'](),controller[_0x4bff65('0x2')]),module['exports']=router; \ No newline at end of file +const a264_0x3562=['isAuthenticated','/:id','create','../../components/auth/service','show','express','exports','put','update','/describe','get','destroy','post','./faxQueueReport.controller'];(function(_0x162797,_0x3d0b75){const _0x3562bc=function(_0x227edd){while(--_0x227edd){_0x162797['push'](_0x162797['shift']());}};_0x3562bc(++_0x3d0b75);}(a264_0x3562,0xf9));const a264_0x227e=function(_0x162797,_0x3d0b75){_0x162797=_0x162797-0x117;let _0x3562bc=a264_0x3562[_0x162797];return _0x3562bc;};const a264_0xc82970=a264_0x227e;'use strict';const express=require(a264_0xc82970(0x11f)),router=express['Router'](),auth=require(a264_0xc82970(0x11d)),controller=require(a264_0xc82970(0x119));router[a264_0xc82970(0x124)]('/',auth['isAuthenticated'](),controller['index']),router[a264_0xc82970(0x124)](a264_0xc82970(0x123),auth[a264_0xc82970(0x11a)](),controller['describe']),router[a264_0xc82970(0x124)](a264_0xc82970(0x11b),auth[a264_0xc82970(0x11a)](),controller[a264_0xc82970(0x11e)]),router[a264_0xc82970(0x118)]('/',auth['isAuthenticated'](),controller[a264_0xc82970(0x11c)]),router[a264_0xc82970(0x121)](a264_0xc82970(0x11b),auth[a264_0xc82970(0x11a)](),controller[a264_0xc82970(0x122)]),router['delete'](a264_0xc82970(0x11b),auth['isAuthenticated'](),controller[a264_0xc82970(0x117)]),module[a264_0xc82970(0x120)]=router; \ No newline at end of file diff --git a/server/api/faxTransferReport/faxTransferReport.attributes.js b/server/api/faxTransferReport/faxTransferReport.attributes.js index 363a2ba..c7da17a 100644 --- a/server/api/faxTransferReport/faxTransferReport.attributes.js +++ b/server/api/faxTransferReport/faxTransferReport.attributes.js @@ -1 +1 @@ -const a223_0x5147=['ENUM','account','exports','queue','STRING','agent','DATE','sequelize'];(function(_0x46a8b4,_0x51478c){const _0x10142e=function(_0x141256){while(--_0x141256){_0x46a8b4['push'](_0x46a8b4['shift']());}};_0x10142e(++_0x51478c);}(a223_0x5147,0x187));const a223_0x1014=function(_0x46a8b4,_0x51478c){_0x46a8b4=_0x46a8b4-0x0;let _0x10142e=a223_0x5147[_0x46a8b4];return _0x10142e;};const _0x20d169=a223_0x1014;'use strict';const Sequelize=require(_0x20d169('0x0'));module[_0x20d169('0x3')]={'uniqueid':{'type':Sequelize[_0x20d169('0x5')],'allowNull':![]},'type':{'type':Sequelize[_0x20d169('0x1')](_0x20d169('0x2'),_0x20d169('0x6'),'queue'),'allowNull':![],'defaultValue':_0x20d169('0x4')},'transferredAt':{'type':Sequelize[_0x20d169('0x7')],'allowNull':![],'defaultValue':Sequelize['NOW']}}; \ No newline at end of file +const a265_0x9d21=['queue','attributes','STRING','ENUM','agent','NOW','sequelize','exports'];(function(_0x55327a,_0x1eef87){const _0x9d2107=function(_0x456b0d){while(--_0x456b0d){_0x55327a['push'](_0x55327a['shift']());}};_0x9d2107(++_0x1eef87);}(a265_0x9d21,0x97));const a265_0x456b=function(_0x55327a,_0x1eef87){_0x55327a=_0x55327a-0x129;let _0x9d2107=a265_0x9d21[_0x55327a];return _0x9d2107;};const a265_0x4a6697=a265_0x456b;'use strict';const {DataTypes}=require(a265_0x4a6697(0x130)),attributes={'uniqueid':{'type':DataTypes[a265_0x4a6697(0x12c)],'allowNull':![]},'type':{'type':DataTypes[a265_0x4a6697(0x12d)]('account',a265_0x4a6697(0x12e),a265_0x4a6697(0x12a)),'allowNull':![],'defaultValue':a265_0x4a6697(0x12a)},'transferredAt':{'type':DataTypes['DATE'],'allowNull':![],'defaultValue':DataTypes[a265_0x4a6697(0x12f)]}};module[a265_0x4a6697(0x129)][a265_0x4a6697(0x12b)]=attributes; \ No newline at end of file diff --git a/server/api/faxTransferReport/faxTransferReport.controller.js b/server/api/faxTransferReport/faxTransferReport.controller.js index c3eedd3..2e0f20f 100644 --- a/server/api/faxTransferReport/faxTransferReport.controller.js +++ b/server/api/faxTransferReport/faxTransferReport.controller.js @@ -1 +1 @@ -const a224_0x71b0=['where','attributes','../../components/parsers/qs','undefined','model','keys','map','type','body','params','findOne','rawAttributes','catch','VIRTUAL','order','query','Content-Range','like','filters','sequelize','options','includeAll','findAll','error','fields','FaxTransferReport','key','end','sort','name','limit','index','json','intersection','nolimit','destroy','length','stack','update','describe','then','../../config/logger','filter','api','merge','send','create','count','fieldName','../../mysqldb','status','offset','include','pick','sendStatus','rows'];(function(_0x2d5f86,_0x71b022){const _0x563037=function(_0x65bb02){while(--_0x65bb02){_0x2d5f86['push'](_0x2d5f86['shift']());}};_0x563037(++_0x71b022);}(a224_0x71b0,0x1a6));const a224_0x5630=function(_0x2d5f86,_0x71b022){_0x2d5f86=_0x2d5f86-0x0;let _0x563037=a224_0x71b0[_0x2d5f86];return _0x563037;};const _0x2c4172=a224_0x5630;'use strict';const _=require('lodash'),qs=require(_0x2c4172('0x1c')),logger=require(_0x2c4172('0xb'))(_0x2c4172('0xd')),db=require(_0x2c4172('0x13'))['db'],{Op}=require(_0x2c4172('0x2d'));function respondWithResult(_0x65bb02,_0x4bd0a3){return _0x4bd0a3=_0x4bd0a3||0xc8,function(_0x418382){const _0x35ab1=a224_0x5630;if(_0x418382)return _0x65bb02[_0x35ab1('0x14')](_0x4bd0a3)[_0x35ab1('0x2')](_0x418382);};}function respondWithFilteredResult(_0x317f93,_0x45e91c){return function(_0x449ee4){const _0x194902=a224_0x5630;if(_0x449ee4){const _0x280c1a=_0x449ee4[_0x194902('0x11')],_0x48fdb6=_0x45e91c[_0x194902('0x15')];let _0x22fe2a=_0x45e91c[_0x194902('0x15')]+_0x45e91c['limit'],_0x332cb0;return _0x22fe2a>=_0x280c1a?(_0x22fe2a=_0x280c1a,_0x332cb0=0xc8):_0x332cb0=0xce,_0x317f93[_0x194902('0x14')](_0x332cb0),_0x317f93['set'](_0x194902('0x2a'),_0x48fdb6+'-'+_0x22fe2a+'/'+_0x280c1a)[_0x194902('0x2')](_0x449ee4);}return null;};}function saveUpdates(_0x372d9c){return function(_0x3c717c){const _0x2466c1=a224_0x5630;if(_0x3c717c)return _0x3c717c[_0x2466c1('0x8')](_0x372d9c)[_0x2466c1('0xa')](function(_0x46b781){return _0x46b781;});return null;};}function removeEntity(_0x56c7af){return function(_0x426aeb){const _0x4755cc=a224_0x5630;if(_0x426aeb)return _0x426aeb[_0x4755cc('0x5')]()[_0x4755cc('0xa')](function(){const _0x50b540=_0x4755cc;_0x56c7af['status'](0xcc)[_0x50b540('0x35')]();});};}function handleEntityNotFound(_0x5a77de){return function(_0x2ea8e7){const _0x3e763e=a224_0x5630;return!_0x2ea8e7&&_0x5a77de[_0x3e763e('0x18')](0x194),_0x2ea8e7;};}function handleError(_0x52b420,_0x22375b){return _0x22375b=_0x22375b||0x1f4,function(_0x35aacf){const _0x1b6847=a224_0x5630;logger[_0x1b6847('0x31')](_0x35aacf[_0x1b6847('0x7')]),_0x35aacf[_0x1b6847('0x37')]&&delete _0x35aacf['name'],_0x52b420['status'](_0x22375b)[_0x1b6847('0xf')](_0x35aacf);};}exports[_0x2c4172('0x1')]=function(_0x170bca,_0x4cae0e){const _0x539ce8=_0x2c4172;let _0x3c75b1={};const _0x4e9cf8={},_0x186052={'count':0x0,'rows':[]},_0x13dbb1=_[_0x539ce8('0x20')](db['FaxTransferReport'][_0x539ce8('0x25')],function(_0x29e68c){const _0x349a55=_0x539ce8;return{'name':_0x29e68c[_0x349a55('0x12')],'type':_0x29e68c[_0x349a55('0x21')][_0x349a55('0x34')]};});_0x4e9cf8['model']=_[_0x539ce8('0x20')](_0x13dbb1,_0x539ce8('0x37')),_0x4e9cf8[_0x539ce8('0x29')]=_[_0x539ce8('0x1f')](_0x170bca[_0x539ce8('0x29')]),_0x4e9cf8[_0x539ce8('0x2c')]=_[_0x539ce8('0x3')](_0x4e9cf8[_0x539ce8('0x1e')],_0x4e9cf8[_0x539ce8('0x29')]),_0x3c75b1['attributes']=_[_0x539ce8('0x3')](_0x4e9cf8['model'],qs['fields'](_0x170bca[_0x539ce8('0x29')][_0x539ce8('0x32')])),_0x3c75b1[_0x539ce8('0x1b')]=_0x3c75b1['attributes'][_0x539ce8('0x6')]?_0x3c75b1['attributes']:_0x4e9cf8['model'];typeof _0x170bca['query'][_0x539ce8('0x4')]===_0x539ce8('0x1d')&&(_0x3c75b1[_0x539ce8('0x0')]=qs['limit'](_0x170bca[_0x539ce8('0x29')]['limit']),_0x3c75b1[_0x539ce8('0x15')]=qs[_0x539ce8('0x15')](_0x170bca[_0x539ce8('0x29')][_0x539ce8('0x15')]));_0x3c75b1[_0x539ce8('0x28')]=qs[_0x539ce8('0x36')](_0x170bca['query'][_0x539ce8('0x36')]),_0x3c75b1['where']=qs['filters'](_[_0x539ce8('0x17')](_0x170bca['query'],_0x4e9cf8['filters']),_0x13dbb1);_0x170bca[_0x539ce8('0x29')][_0x539ce8('0xc')]&&(_0x3c75b1[_0x539ce8('0x1a')]=_[_0x539ce8('0xe')](_0x3c75b1[_0x539ce8('0x1a')],{[Op['or']]:_['map'](_0x13dbb1,function(_0x3b1956){const _0x196a87=_0x539ce8;if(_0x3b1956[_0x196a87('0x21')]!==_0x196a87('0x27')){const _0x1677b6={};return _0x1677b6[_0x3b1956[_0x196a87('0x37')]]={[Op[_0x196a87('0x2b')]]:'%'+_0x170bca[_0x196a87('0x29')][_0x196a87('0xc')]+'%'},_0x1677b6;}})}));_0x3c75b1=_[_0x539ce8('0xe')]({},_0x3c75b1,_0x170bca[_0x539ce8('0x2e')]);const _0x15ec5e={'where':_0x3c75b1[_0x539ce8('0x1a')]};return db[_0x539ce8('0x33')][_0x539ce8('0x11')](_0x15ec5e)[_0x539ce8('0xa')](function(_0x48e32c){const _0x4428d1=_0x539ce8;return _0x186052[_0x4428d1('0x11')]=_0x48e32c,_0x170bca['query']['includeAll']&&(_0x3c75b1[_0x4428d1('0x16')]=[{'all':!![]}]),db[_0x4428d1('0x33')][_0x4428d1('0x30')](_0x3c75b1);})[_0x539ce8('0xa')](function(_0x51f3fd){const _0x51e49b=_0x539ce8;return _0x186052[_0x51e49b('0x19')]=_0x51f3fd,_0x186052;})['then'](respondWithFilteredResult(_0x4cae0e,_0x3c75b1))['catch'](handleError(_0x4cae0e,null));},exports['show']=function(_0x417a78,_0x306bfe){const _0xb14d85=_0x2c4172;let _0x4ec456={'raw':!![],'where':{'id':_0x417a78[_0xb14d85('0x23')]['id']}};const _0x48dd24={};return _0x48dd24[_0xb14d85('0x1e')]=_[_0xb14d85('0x1f')](db['FaxTransferReport']['rawAttributes']),_0x48dd24[_0xb14d85('0x29')]=_[_0xb14d85('0x1f')](_0x417a78[_0xb14d85('0x29')]),_0x48dd24['filters']=_['intersection'](_0x48dd24[_0xb14d85('0x1e')],_0x48dd24['query']),_0x4ec456[_0xb14d85('0x1b')]=_[_0xb14d85('0x3')](_0x48dd24['model'],qs[_0xb14d85('0x32')](_0x417a78[_0xb14d85('0x29')][_0xb14d85('0x32')])),_0x4ec456[_0xb14d85('0x1b')]=_0x4ec456[_0xb14d85('0x1b')]['length']?_0x4ec456[_0xb14d85('0x1b')]:_0x48dd24['model'],_0x417a78[_0xb14d85('0x29')][_0xb14d85('0x2f')]&&(_0x4ec456[_0xb14d85('0x16')]=[{'all':!![]}]),_0x4ec456=_[_0xb14d85('0xe')]({},_0x4ec456,_0x417a78[_0xb14d85('0x2e')]),db[_0xb14d85('0x33')][_0xb14d85('0x24')](_0x4ec456)[_0xb14d85('0xa')](handleEntityNotFound(_0x306bfe,null))[_0xb14d85('0xa')](respondWithResult(_0x306bfe,null))['catch'](handleError(_0x306bfe,null));},exports[_0x2c4172('0x10')]=function(_0x64fa03,_0x196cc7){const _0x29e0ea=_0x2c4172;return db['FaxTransferReport'][_0x29e0ea('0x10')](_0x64fa03[_0x29e0ea('0x22')],{})[_0x29e0ea('0xa')](respondWithResult(_0x196cc7,0xc9))[_0x29e0ea('0x26')](handleError(_0x196cc7,null));},exports[_0x2c4172('0x8')]=function(_0x3f29c8,_0x4e2acd){const _0x404c51=_0x2c4172;return _0x3f29c8[_0x404c51('0x22')]['id']&&delete _0x3f29c8['body']['id'],db[_0x404c51('0x33')]['findOne']({'where':{'id':_0x3f29c8[_0x404c51('0x23')]['id']}})[_0x404c51('0xa')](handleEntityNotFound(_0x4e2acd,null))['then'](saveUpdates(_0x3f29c8[_0x404c51('0x22')],null))[_0x404c51('0xa')](respondWithResult(_0x4e2acd,null))['catch'](handleError(_0x4e2acd,null));},exports[_0x2c4172('0x5')]=function(_0x28bfd7,_0x1d008a){const _0x4cb151=_0x2c4172;return db[_0x4cb151('0x33')][_0x4cb151('0x24')]({'where':{'id':_0x28bfd7[_0x4cb151('0x23')]['id']}})[_0x4cb151('0xa')](handleEntityNotFound(_0x1d008a,null))[_0x4cb151('0xa')](removeEntity(_0x1d008a,null))[_0x4cb151('0x26')](handleError(_0x1d008a,null));},exports[_0x2c4172('0x9')]=function(_0xfee9,_0x3b5488){const _0xf92aa1=_0x2c4172;return db[_0xf92aa1('0x33')][_0xf92aa1('0x9')]()[_0xf92aa1('0xa')](respondWithResult(_0x3b5488,null))[_0xf92aa1('0x26')](handleError(_0x3b5488,null));}; \ No newline at end of file +const a266_0x5535=['describe','includeAll','merge','count','json','filters','set','findOne','order','catch','VIRTUAL','end','key','body','limit','update','FaxTransferReport','destroy','fields','../../components/parsers/qs','create','model','include','where','name','send','status','fieldName','options','error','map','../../config/logger','rawAttributes','../../mysqldb','query','intersection','findAll','stack','offset','sendStatus','Content-Range','type','rows','like','index','then','params','attributes','keys','filter'];(function(_0x111672,_0x5b1f67){const _0x553509=function(_0x8b3a41){while(--_0x8b3a41){_0x111672['push'](_0x111672['shift']());}};_0x553509(++_0x5b1f67);}(a266_0x5535,0x77));const a266_0x8b3a=function(_0x111672,_0x5b1f67){_0x111672=_0x111672-0xcb;let _0x553509=a266_0x5535[_0x111672];return _0x553509;};const a266_0x569e6d=a266_0x8b3a;'use strict';const _=require('lodash'),qs=require(a266_0x569e6d(0xcb)),logger=require(a266_0x569e6d(0xd7))('api'),{db}=require(a266_0x569e6d(0xd9)),{Op}=require('sequelize');function respondWithResult(_0x122466,_0xcb59f9){return _0xcb59f9=_0xcb59f9||0xc8,function(_0x3a4a9d){const _0x5a9f7e=a266_0x8b3a;if(_0x3a4a9d)return _0x122466['status'](_0xcb59f9)[_0x5a9f7e(0xee)](_0x3a4a9d);};}function respondWithFilteredResult(_0xd91fd6,_0x1f4723){return function(_0x298cf2){const _0xff8d77=a266_0x8b3a;if(_0x298cf2){const _0x29cb64=_0x298cf2[_0xff8d77(0xed)],_0x20b370=_0x1f4723[_0xff8d77(0xde)];let _0x49a8fb=_0x1f4723['offset']+_0x1f4723[_0xff8d77(0xf8)],_0x2bf032;return _0x49a8fb>=_0x29cb64?(_0x49a8fb=_0x29cb64,_0x2bf032=0xc8):_0x2bf032=0xce,_0xd91fd6[_0xff8d77(0xd2)](_0x2bf032),_0xd91fd6[_0xff8d77(0xf0)](_0xff8d77(0xe0),_0x20b370+'-'+_0x49a8fb+'/'+_0x29cb64)[_0xff8d77(0xee)](_0x298cf2);}return null;};}function saveUpdates(_0x2fc177){return function(_0x414ceb){const _0x299517=a266_0x8b3a;if(_0x414ceb)return _0x414ceb[_0x299517(0xf9)](_0x2fc177)[_0x299517(0xe5)](function(_0x380248){return _0x380248;});return null;};}function removeEntity(_0x1b953d){return function(_0xc6c18a){const _0x57f737=a266_0x8b3a;if(_0xc6c18a)return _0xc6c18a[_0x57f737(0xfb)]()['then'](function(){const _0x16356f=_0x57f737;_0x1b953d['status'](0xcc)[_0x16356f(0xf5)]();});};}function handleEntityNotFound(_0x45c52f){return function(_0x5c8a28){const _0x14bfb3=a266_0x8b3a;return!_0x5c8a28&&_0x45c52f[_0x14bfb3(0xdf)](0x194),_0x5c8a28;};}function handleError(_0x2a294d,_0x191d2b){return _0x191d2b=_0x191d2b||0x1f4,function(_0x4bdc6b){const _0x29e388=a266_0x8b3a;logger[_0x29e388(0xd5)](_0x4bdc6b[_0x29e388(0xdd)]),_0x4bdc6b['name']&&delete _0x4bdc6b[_0x29e388(0xd0)],_0x2a294d['status'](_0x191d2b)[_0x29e388(0xd1)](_0x4bdc6b);};}exports[a266_0x569e6d(0xe4)]=function(_0x55a3f9,_0x3ceab1){const _0x2ef751=a266_0x569e6d;let _0x51be95={};const _0x56166f={},_0x4e4451={'count':0x0,'rows':[]},_0x26b515=_[_0x2ef751(0xd6)](db[_0x2ef751(0xfa)][_0x2ef751(0xd8)],function(_0x2cb468){const _0x29762e=_0x2ef751;return{'name':_0x2cb468[_0x29762e(0xd3)],'type':_0x2cb468[_0x29762e(0xe1)][_0x29762e(0xf6)]};});_0x56166f[_0x2ef751(0xcd)]=_[_0x2ef751(0xd6)](_0x26b515,_0x2ef751(0xd0)),_0x56166f[_0x2ef751(0xda)]=_[_0x2ef751(0xe8)](_0x55a3f9[_0x2ef751(0xda)]),_0x56166f[_0x2ef751(0xef)]=_[_0x2ef751(0xdb)](_0x56166f[_0x2ef751(0xcd)],_0x56166f[_0x2ef751(0xda)]),_0x51be95[_0x2ef751(0xe7)]=_[_0x2ef751(0xdb)](_0x56166f['model'],qs[_0x2ef751(0xfc)](_0x55a3f9[_0x2ef751(0xda)]['fields'])),_0x51be95[_0x2ef751(0xe7)]=_0x51be95[_0x2ef751(0xe7)]['length']?_0x51be95['attributes']:_0x56166f[_0x2ef751(0xcd)];typeof _0x55a3f9[_0x2ef751(0xda)]['nolimit']==='undefined'&&(_0x51be95[_0x2ef751(0xf8)]=qs[_0x2ef751(0xf8)](_0x55a3f9[_0x2ef751(0xda)]['limit']),_0x51be95[_0x2ef751(0xde)]=qs['offset'](_0x55a3f9['query']['offset']));_0x51be95[_0x2ef751(0xf2)]=qs['sort'](_0x55a3f9[_0x2ef751(0xda)]['sort']),_0x51be95[_0x2ef751(0xcf)]=qs[_0x2ef751(0xef)](_['pick'](_0x55a3f9[_0x2ef751(0xda)],_0x56166f[_0x2ef751(0xef)]),_0x26b515);_0x55a3f9[_0x2ef751(0xda)][_0x2ef751(0xe9)]&&(_0x51be95[_0x2ef751(0xcf)]=_[_0x2ef751(0xec)](_0x51be95['where'],{[Op['or']]:_[_0x2ef751(0xd6)](_0x26b515,function(_0xa2cd1f){const _0x2c267c=_0x2ef751;if(_0xa2cd1f['type']!==_0x2c267c(0xf4)){const _0x6e558f={};return _0x6e558f[_0xa2cd1f['name']]={[Op[_0x2c267c(0xe3)]]:'%'+_0x55a3f9[_0x2c267c(0xda)][_0x2c267c(0xe9)]+'%'},_0x6e558f;}})}));_0x51be95=_['merge']({},_0x51be95,_0x55a3f9[_0x2ef751(0xd4)]);const _0x6bd0bf={'where':_0x51be95[_0x2ef751(0xcf)]};return db[_0x2ef751(0xfa)]['count'](_0x6bd0bf)[_0x2ef751(0xe5)](function(_0xa85d1e){const _0x48d8a1=_0x2ef751;return _0x4e4451['count']=_0xa85d1e,_0x55a3f9[_0x48d8a1(0xda)][_0x48d8a1(0xeb)]&&(_0x51be95[_0x48d8a1(0xce)]=[{'all':!![]}]),db[_0x48d8a1(0xfa)][_0x48d8a1(0xdc)](_0x51be95);})['then'](function(_0x2c71a4){const _0x2dbfc6=_0x2ef751;return _0x4e4451[_0x2dbfc6(0xe2)]=_0x2c71a4,_0x4e4451;})[_0x2ef751(0xe5)](respondWithFilteredResult(_0x3ceab1,_0x51be95))['catch'](handleError(_0x3ceab1,null));},exports['show']=function(_0x5b584f,_0x3909c0){const _0x37fb65=a266_0x569e6d;let _0x51bf71={'raw':!![],'where':{'id':_0x5b584f['params']['id']}};const _0x1ac10d={};return _0x1ac10d[_0x37fb65(0xcd)]=_[_0x37fb65(0xe8)](db['FaxTransferReport'][_0x37fb65(0xd8)]),_0x1ac10d['query']=_['keys'](_0x5b584f[_0x37fb65(0xda)]),_0x1ac10d[_0x37fb65(0xef)]=_[_0x37fb65(0xdb)](_0x1ac10d[_0x37fb65(0xcd)],_0x1ac10d['query']),_0x51bf71['attributes']=_[_0x37fb65(0xdb)](_0x1ac10d[_0x37fb65(0xcd)],qs['fields'](_0x5b584f[_0x37fb65(0xda)][_0x37fb65(0xfc)])),_0x51bf71[_0x37fb65(0xe7)]=_0x51bf71[_0x37fb65(0xe7)]['length']?_0x51bf71[_0x37fb65(0xe7)]:_0x1ac10d[_0x37fb65(0xcd)],_0x5b584f[_0x37fb65(0xda)][_0x37fb65(0xeb)]&&(_0x51bf71[_0x37fb65(0xce)]=[{'all':!![]}]),_0x51bf71=_[_0x37fb65(0xec)]({},_0x51bf71,_0x5b584f[_0x37fb65(0xd4)]),db[_0x37fb65(0xfa)][_0x37fb65(0xf1)](_0x51bf71)[_0x37fb65(0xe5)](handleEntityNotFound(_0x3909c0,null))[_0x37fb65(0xe5)](respondWithResult(_0x3909c0,null))['catch'](handleError(_0x3909c0,null));},exports['create']=function(_0x472767,_0x141841){const _0x2ba49d=a266_0x569e6d;return db[_0x2ba49d(0xfa)][_0x2ba49d(0xcc)](_0x472767[_0x2ba49d(0xf7)],{})[_0x2ba49d(0xe5)](respondWithResult(_0x141841,0xc9))[_0x2ba49d(0xf3)](handleError(_0x141841,null));},exports[a266_0x569e6d(0xf9)]=function(_0x21e4c5,_0x1b2a53){const _0x1cf1d1=a266_0x569e6d;return _0x21e4c5[_0x1cf1d1(0xf7)]['id']&&delete _0x21e4c5['body']['id'],db[_0x1cf1d1(0xfa)][_0x1cf1d1(0xf1)]({'where':{'id':_0x21e4c5[_0x1cf1d1(0xe6)]['id']}})[_0x1cf1d1(0xe5)](handleEntityNotFound(_0x1b2a53,null))[_0x1cf1d1(0xe5)](saveUpdates(_0x21e4c5[_0x1cf1d1(0xf7)],null))[_0x1cf1d1(0xe5)](respondWithResult(_0x1b2a53,null))[_0x1cf1d1(0xf3)](handleError(_0x1b2a53,null));},exports[a266_0x569e6d(0xfb)]=function(_0x52da5c,_0x375637){const _0xde1ca7=a266_0x569e6d;return db[_0xde1ca7(0xfa)]['findOne']({'where':{'id':_0x52da5c[_0xde1ca7(0xe6)]['id']}})[_0xde1ca7(0xe5)](handleEntityNotFound(_0x375637,null))[_0xde1ca7(0xe5)](removeEntity(_0x375637,null))[_0xde1ca7(0xf3)](handleError(_0x375637,null));},exports[a266_0x569e6d(0xea)]=function(_0x49ddc9,_0x4b1f7b){const _0x692aca=a266_0x569e6d;return db['FaxTransferReport'][_0x692aca(0xea)]()[_0x692aca(0xe5)](respondWithResult(_0x4b1f7b,null))['catch'](handleError(_0x4b1f7b,null));}; \ No newline at end of file diff --git a/server/api/faxTransferReport/faxTransferReport.model.js b/server/api/faxTransferReport/faxTransferReport.model.js index d9cf6e6..7c42b4f 100644 --- a/server/api/faxTransferReport/faxTransferReport.model.js +++ b/server/api/faxTransferReport/faxTransferReport.model.js @@ -1 +1 @@ -const a225_0x1727=['./faxTransferReport.attributes','define','exports','report_fax_transfer'];(function(_0x3c0404,_0x172709){const _0x493005=function(_0x26c5dd){while(--_0x26c5dd){_0x3c0404['push'](_0x3c0404['shift']());}};_0x493005(++_0x172709);}(a225_0x1727,0xe0));const a225_0x4930=function(_0x3c0404,_0x172709){_0x3c0404=_0x3c0404-0x0;let _0x493005=a225_0x1727[_0x3c0404];return _0x493005;};const _0x4225d0=a225_0x4930;'use strict';const attributes=require(_0x4225d0('0x0'));module[_0x4225d0('0x2')]=function(_0x26c5dd){const _0x3e6a42=_0x4225d0,_0x32b647=_0x26c5dd[_0x3e6a42('0x1')]('FaxTransferReport',attributes,{'tableName':_0x3e6a42('0x3'),'paranoid':![],'indexes':[{'name':'uniqueid','fields':['uniqueid']}],'timestamps':!![]});return _0x32b647;}; \ No newline at end of file +const a267_0x3b1e=['exports','function','./faxTransferReport.attributes','FaxTransferReport'];(function(_0xe235d6,_0x3a97c8){const _0x3b1e50=function(_0x2c3cc8){while(--_0x2c3cc8){_0xe235d6['push'](_0xe235d6['shift']());}};_0x3b1e50(++_0x3a97c8);}(a267_0x3b1e,0x145));const a267_0x2c3c=function(_0xe235d6,_0x3a97c8){_0xe235d6=_0xe235d6-0x108;let _0x3b1e50=a267_0x3b1e[_0xe235d6];return _0x3b1e50;};const a267_0x4fca4c=a267_0x2c3c;'use strict';const {Model}=require('sequelize'),{attributes}=require(a267_0x4fca4c(0x109)),{options}=require('./faxTransferReport.options');class FaxTransferReport extends Model{}function init(_0x8e0383,_0x61f6ed){const _0x2ede54=a267_0x4fca4c,_0x292bb8=options(_0x8e0383),_0x1fb1be=typeof _0x61f6ed===_0x2ede54(0x108)?_0x61f6ed(_0x292bb8):_0x292bb8;return FaxTransferReport['init'](attributes,_0x1fb1be),FaxTransferReport;}module[a267_0x4fca4c(0x10b)][a267_0x4fca4c(0x10a)]=FaxTransferReport,module['exports']['init']=init; \ No newline at end of file diff --git a/server/api/faxTransferReport/faxTransferReport.options.js b/server/api/faxTransferReport/faxTransferReport.options.js new file mode 100644 index 0000000..3677417 --- /dev/null +++ b/server/api/faxTransferReport/faxTransferReport.options.js @@ -0,0 +1 @@ +var a268_0x30b3=['options','report_fax_transfer','uniqueid'];(function(_0x2032b5,_0x8d4d73){var _0x30b36b=function(_0x10591a){while(--_0x10591a){_0x2032b5['push'](_0x2032b5['shift']());}};_0x30b36b(++_0x8d4d73);}(a268_0x30b3,0x1cb));var a268_0x1059=function(_0x2032b5,_0x8d4d73){_0x2032b5=_0x2032b5-0x9c;var _0x30b36b=a268_0x30b3[_0x2032b5];return _0x30b36b;};var a268_0x2e2413=a268_0x1059;function options(_0x4ac197){var _0xc52348=a268_0x1059;return{'sequelize':_0x4ac197,'tableName':_0xc52348(0x9d),'paranoid':![],'indexes':[{'name':_0xc52348(0x9e),'fields':[_0xc52348(0x9e)]}],'timestamps':!![]};}module['exports'][a268_0x2e2413(0x9c)]=options; \ No newline at end of file diff --git a/server/api/faxTransferReport/index.js b/server/api/faxTransferReport/index.js index cf7756a..0f583f1 100644 --- a/server/api/faxTransferReport/index.js +++ b/server/api/faxTransferReport/index.js @@ -1 +1 @@ -const a226_0x5b00=['put','express','Router','post','index','/:id','isAuthenticated','get','create','destroy','describe','delete'];(function(_0x5f20bb,_0x5b00a3){const _0x2e5a89=function(_0xd22aa8){while(--_0xd22aa8){_0x5f20bb['push'](_0x5f20bb['shift']());}};_0x2e5a89(++_0x5b00a3);}(a226_0x5b00,0x6f));const a226_0x2e5a=function(_0x5f20bb,_0x5b00a3){_0x5f20bb=_0x5f20bb-0x0;let _0x2e5a89=a226_0x5b00[_0x5f20bb];return _0x2e5a89;};const _0x27504e=a226_0x2e5a;'use strict';const express=require(_0x27504e('0xa')),router=express[_0x27504e('0xb')](),auth=require('../../components/auth/service'),controller=require('./faxTransferReport.controller');router[_0x27504e('0x4')]('/',auth[_0x27504e('0x3')](),controller[_0x27504e('0x1')]),router[_0x27504e('0x4')]('/describe',auth['isAuthenticated'](),controller[_0x27504e('0x7')]),router[_0x27504e('0x4')]('/:id',auth[_0x27504e('0x3')](),controller['show']),router[_0x27504e('0x0')]('/',auth['isAuthenticated'](),controller[_0x27504e('0x5')]),router[_0x27504e('0x9')](_0x27504e('0x2'),auth[_0x27504e('0x3')](),controller['update']),router[_0x27504e('0x8')](_0x27504e('0x2'),auth[_0x27504e('0x3')](),controller[_0x27504e('0x6')]),module['exports']=router; \ No newline at end of file +const a269_0x11a6=['/:id','../../components/auth/service','destroy','express','delete','./faxTransferReport.controller','exports','isAuthenticated','describe','put','Router','show','get','index','/describe','create'];(function(_0x58b813,_0x5717f2){const _0x11a688=function(_0x3a6168){while(--_0x3a6168){_0x58b813['push'](_0x58b813['shift']());}};_0x11a688(++_0x5717f2);}(a269_0x11a6,0x1c3));const a269_0x3a61=function(_0x58b813,_0x5717f2){_0x58b813=_0x58b813-0x151;let _0x11a688=a269_0x11a6[_0x58b813];return _0x11a688;};const a269_0x15a21c=a269_0x3a61;'use strict';const express=require(a269_0x15a21c(0x151)),router=express[a269_0x15a21c(0x158)](),auth=require(a269_0x15a21c(0x15f)),controller=require(a269_0x15a21c(0x153));router['get']('/',auth[a269_0x15a21c(0x155)](),controller[a269_0x15a21c(0x15b)]),router[a269_0x15a21c(0x15a)](a269_0x15a21c(0x15c),auth[a269_0x15a21c(0x155)](),controller[a269_0x15a21c(0x156)]),router['get'](a269_0x15a21c(0x15e),auth[a269_0x15a21c(0x155)](),controller[a269_0x15a21c(0x159)]),router['post']('/',auth[a269_0x15a21c(0x155)](),controller[a269_0x15a21c(0x15d)]),router[a269_0x15a21c(0x157)](a269_0x15a21c(0x15e),auth[a269_0x15a21c(0x155)](),controller['update']),router[a269_0x15a21c(0x152)]('/:id',auth[a269_0x15a21c(0x155)](),controller[a269_0x15a21c(0x160)]),module[a269_0x15a21c(0x154)]=router; \ No newline at end of file diff --git a/server/api/intDeskAccount/index.js b/server/api/intDeskAccount/index.js index 2e59e18..8832fcb 100644 --- a/server/api/intDeskAccount/index.js +++ b/server/api/intDeskAccount/index.js @@ -1 +1 @@ -const a227_0x19fe=['delete','get','index','create','express','put','./intDeskAccount.controller','/:id/configurations','isAuthenticated','/:id','getFields','exports','/:id/fields','addConfiguration','Router','destroy','update'];(function(_0x1feea6,_0x19fec8){const _0xccbb6d=function(_0x2592fe){while(--_0x2592fe){_0x1feea6['push'](_0x1feea6['shift']());}};_0xccbb6d(++_0x19fec8);}(a227_0x19fe,0x1bb));const a227_0xccbb=function(_0x1feea6,_0x19fec8){_0x1feea6=_0x1feea6-0x0;let _0xccbb6d=a227_0x19fe[_0x1feea6];return _0xccbb6d;};const _0x1f1ecc=a227_0xccbb;'use strict';const express=require(_0x1f1ecc('0x3')),router=express[_0x1f1ecc('0xd')](),auth=require('../../components/auth/service'),controller=require(_0x1f1ecc('0x5'));router[_0x1f1ecc('0x0')]('/',auth['isAuthenticated'](),controller[_0x1f1ecc('0x1')]),router[_0x1f1ecc('0x0')](_0x1f1ecc('0x8'),auth[_0x1f1ecc('0x7')](),controller['show']),router['get']('/:id/configurations',auth['isAuthenticated'](),controller['getConfigurations']),router[_0x1f1ecc('0x0')](_0x1f1ecc('0xb'),auth[_0x1f1ecc('0x7')](),controller[_0x1f1ecc('0x9')]),router['post']('/',auth[_0x1f1ecc('0x7')](),controller[_0x1f1ecc('0x2')]),router['post'](_0x1f1ecc('0x6'),auth[_0x1f1ecc('0x7')](),controller[_0x1f1ecc('0xc')]),router[_0x1f1ecc('0x4')](_0x1f1ecc('0x8'),auth[_0x1f1ecc('0x7')](),controller[_0x1f1ecc('0xf')]),router[_0x1f1ecc('0x10')](_0x1f1ecc('0x8'),auth[_0x1f1ecc('0x7')](),controller[_0x1f1ecc('0xe')]),module[_0x1f1ecc('0xa')]=router; \ No newline at end of file +const a270_0x48ce=['isAuthenticated','express','Router','destroy','delete','../../components/auth/service','addConfiguration','/:id','./intDeskAccount.controller','/:id/fields','getConfigurations','index','post','/:id/configurations','get','show','put'];(function(_0x33c5ec,_0x16da4f){const _0x48ce7c=function(_0x34ed48){while(--_0x34ed48){_0x33c5ec['push'](_0x33c5ec['shift']());}};_0x48ce7c(++_0x16da4f);}(a270_0x48ce,0x98));const a270_0x34ed=function(_0x33c5ec,_0x16da4f){_0x33c5ec=_0x33c5ec-0x164;let _0x48ce7c=a270_0x48ce[_0x33c5ec];return _0x48ce7c;};const a270_0x5a4d9b=a270_0x34ed;'use strict';const express=require(a270_0x5a4d9b(0x166)),router=express[a270_0x5a4d9b(0x167)](),auth=require(a270_0x5a4d9b(0x16a)),controller=require(a270_0x5a4d9b(0x16d));router[a270_0x5a4d9b(0x173)]('/',auth['isAuthenticated'](),controller[a270_0x5a4d9b(0x170)]),router[a270_0x5a4d9b(0x173)](a270_0x5a4d9b(0x16c),auth[a270_0x5a4d9b(0x165)](),controller[a270_0x5a4d9b(0x174)]),router[a270_0x5a4d9b(0x173)](a270_0x5a4d9b(0x172),auth[a270_0x5a4d9b(0x165)](),controller[a270_0x5a4d9b(0x16f)]),router[a270_0x5a4d9b(0x173)](a270_0x5a4d9b(0x16e),auth[a270_0x5a4d9b(0x165)](),controller['getFields']),router[a270_0x5a4d9b(0x171)]('/',auth[a270_0x5a4d9b(0x165)](),controller['create']),router['post'](a270_0x5a4d9b(0x172),auth[a270_0x5a4d9b(0x165)](),controller[a270_0x5a4d9b(0x16b)]),router[a270_0x5a4d9b(0x164)](a270_0x5a4d9b(0x16c),auth[a270_0x5a4d9b(0x165)](),controller['update']),router[a270_0x5a4d9b(0x169)](a270_0x5a4d9b(0x16c),auth[a270_0x5a4d9b(0x165)](),controller[a270_0x5a4d9b(0x168)]),module['exports']=router; \ No newline at end of file diff --git a/server/api/intDeskAccount/intDeskAccount.attributes.js b/server/api/intDeskAccount/intDeskAccount.attributes.js index e806012..8ba45fc 100644 --- a/server/api/intDeskAccount/intDeskAccount.attributes.js +++ b/server/api/intDeskAccount/intDeskAccount.attributes.js @@ -1 +1 @@ -const a228_0x1695=['basic','ENUM','newTab','STRING'];(function(_0x25b861,_0x169553){const _0x2172b7=function(_0x4fc0c2){while(--_0x4fc0c2){_0x25b861['push'](_0x25b861['shift']());}};_0x2172b7(++_0x169553);}(a228_0x1695,0x110));const a228_0x2172=function(_0x25b861,_0x169553){_0x25b861=_0x25b861-0x0;let _0x2172b7=a228_0x1695[_0x25b861];return _0x2172b7;};const _0x79e1bc=a228_0x2172;'use strict';const Sequelize=require('sequelize');module['exports']={'name':{'type':Sequelize[_0x79e1bc('0x3')]},'description':{'type':Sequelize[_0x79e1bc('0x3')]},'username':{'type':Sequelize['STRING']},'remoteUri':{'type':Sequelize['STRING']},'authType':{'type':Sequelize[_0x79e1bc('0x1')](_0x79e1bc('0x0')),'defaultValue':_0x79e1bc('0x0')},'password':{'type':Sequelize[_0x79e1bc('0x3')]},'consumerKey':{'type':Sequelize[_0x79e1bc('0x3')]},'consumerSecret':{'type':Sequelize[_0x79e1bc('0x3')]},'token':{'type':Sequelize[_0x79e1bc('0x3')]},'tokenSecret':{'type':Sequelize[_0x79e1bc('0x3')]},'serverUrl':{'type':Sequelize['STRING']},'type':{'type':Sequelize['ENUM']('integrationTab',_0x79e1bc('0x2')),'defaultValue':'integrationTab'}}; \ No newline at end of file +const a271_0x5b81=['exports','integrationTab','ENUM','attributes','STRING','basic'];(function(_0x3f2537,_0x39d68e){const _0x5b814b=function(_0x2d9215){while(--_0x2d9215){_0x3f2537['push'](_0x3f2537['shift']());}};_0x5b814b(++_0x39d68e);}(a271_0x5b81,0xe6));const a271_0x2d92=function(_0x3f2537,_0x39d68e){_0x3f2537=_0x3f2537-0x74;let _0x5b814b=a271_0x5b81[_0x3f2537];return _0x5b814b;};const a271_0x54861c=a271_0x2d92;'use strict';const {DataTypes}=require('sequelize'),attributes={'name':{'type':DataTypes[a271_0x54861c(0x76)]},'description':{'type':DataTypes[a271_0x54861c(0x76)]},'username':{'type':DataTypes['STRING']},'remoteUri':{'type':DataTypes[a271_0x54861c(0x76)]},'authType':{'type':DataTypes[a271_0x54861c(0x74)](a271_0x54861c(0x77)),'defaultValue':a271_0x54861c(0x77)},'password':{'type':DataTypes[a271_0x54861c(0x76)]},'consumerKey':{'type':DataTypes[a271_0x54861c(0x76)]},'consumerSecret':{'type':DataTypes[a271_0x54861c(0x76)]},'token':{'type':DataTypes[a271_0x54861c(0x76)]},'tokenSecret':{'type':DataTypes[a271_0x54861c(0x76)]},'serverUrl':{'type':DataTypes[a271_0x54861c(0x76)]},'type':{'type':DataTypes['ENUM'](a271_0x54861c(0x79),'newTab'),'defaultValue':a271_0x54861c(0x79)}};module[a271_0x54861c(0x78)][a271_0x54861c(0x75)]=attributes; \ No newline at end of file diff --git a/server/api/intDeskAccount/intDeskAccount.controller.js b/server/api/intDeskAccount/intDeskAccount.controller.js index 4aac944..2737d0f 100644 --- a/server/api/intDeskAccount/intDeskAccount.controller.js +++ b/server/api/intDeskAccount/intDeskAccount.controller.js @@ -1 +1 @@ -const a229_0x4815=['lastIndexOf','toString','key','DeskField','fields','test','util','lodash','length','findOne','query','Subjects','../../mysqldb','end','consumerKey','AccountId','includeAll','options','GET','slice','catch','%s:%s','nolimit','request-promise-native','show','../../components/parsers/qs','application/json','like','type','getFields,\x20%s,\x20%s,\x20%s','create','../../components/integrations/configuration','sendStatus','offset','../../config/logger','then','rawAttributes','DeskAccount','pick','send','undefined','where','%s/custom_fields','remoteUri','index','intersection','sort','entries','destroy','channel','password','set','attributes','Wrong\x20credentials','getConfigurations','api','tokenSecret','filter','map','sequelize','statusCode','stringify','substring','Authorization','headers','merge','getFields','rows','authType','count','token','from','getSubjects','DeskConfiguration','error','filters','VIRTUAL','json','Descriptions','include','getDescriptions','name','order','Content-Range','model','format','priority','keys','limit','status','active','params','body','username'];(function(_0x2bb272,_0x481564){const _0x20714d=function(_0x4138f1){while(--_0x4138f1){_0x2bb272['push'](_0x2bb272['shift']());}};_0x20714d(++_0x481564);}(a229_0x4815,0x1e7));const a229_0x2071=function(_0x2bb272,_0x481564){_0x2bb272=_0x2bb272-0x0;let _0x20714d=a229_0x4815[_0x2bb272];return _0x20714d;};const _0x131994=a229_0x2071;'use strict';const rp=require(_0x131994('0x6')),util=require(_0x131994('0x53')),_=require(_0x131994('0x54')),qs=require(_0x131994('0x8')),logger=require(_0x131994('0x11'))(_0x131994('0x26')),db=require(_0x131994('0x59'))['db'],{Op}=require(_0x131994('0x2a')),integrations=require(_0x131994('0xe'));function respondWithResult(_0x4138f1,_0x4cb526){return _0x4cb526=_0x4cb526||0xc8,function(_0x4c9030){const _0x21bbc7=a229_0x2071;if(_0x4c9030)return _0x4138f1[_0x21bbc7('0x48')](_0x4cb526)[_0x21bbc7('0x3c')](_0x4c9030);};}function respondWithFilteredResult(_0x58e07e,_0x2aacb9){return function(_0x38f2ab){const _0x52e9c5=a229_0x2071;if(_0x38f2ab){const _0xc6641c=_0x38f2ab['count'],_0x443206=_0x2aacb9[_0x52e9c5('0x10')];let _0x320e3b=_0x2aacb9[_0x52e9c5('0x10')]+_0x2aacb9[_0x52e9c5('0x47')],_0x5142bd;return _0x320e3b>=_0xc6641c?(_0x320e3b=_0xc6641c,_0x5142bd=0xc8):_0x5142bd=0xce,_0x58e07e[_0x52e9c5('0x48')](_0x5142bd),_0x58e07e[_0x52e9c5('0x22')](_0x52e9c5('0x42'),_0x443206+'-'+_0x320e3b+'/'+_0xc6641c)[_0x52e9c5('0x3c')](_0x38f2ab);}return null;};}function saveUpdates(_0x1bcbc5){return function(_0x141115){const _0x4ba059=a229_0x2071;if(_0x141115)return _0x141115['update'](_0x1bcbc5)[_0x4ba059('0x12')](function(_0x75a168){return _0x75a168;});return null;};}function removeEntity(_0x3f6b85){return function(_0x21e321){const _0x51e56d=a229_0x2071;if(_0x21e321)return _0x21e321[_0x51e56d('0x1f')]()['then'](function(){const _0x7fefbd=_0x51e56d;_0x3f6b85[_0x7fefbd('0x48')](0xcc)[_0x7fefbd('0x5a')]();});};}function handleEntityNotFound(_0x494625){return function(_0x443b5c){const _0x36ab0a=a229_0x2071;return!_0x443b5c&&_0x494625[_0x36ab0a('0xf')](0x194),_0x443b5c;};}function handleError(_0x33d098,_0x3b2b7a){return _0x3b2b7a=_0x3b2b7a||0x1f4,function(_0x2beab0){const _0x484cb9=a229_0x2071;logger[_0x484cb9('0x39')](_0x2beab0['stack']),_0x2beab0[_0x484cb9('0x40')]&&delete _0x2beab0[_0x484cb9('0x40')],_0x33d098[_0x484cb9('0x48')](_0x3b2b7a)['send'](_0x2beab0);};}exports[_0x131994('0x1b')]=function(_0x15d76b,_0xbbf731){const _0x2fcf5a=_0x131994;let _0x352ac1={};const _0x1f6df4={},_0x1b756d={'count':0x0,'rows':[]},_0x46ec8c=_['map'](db[_0x2fcf5a('0x14')][_0x2fcf5a('0x13')],function(_0x46094d){const _0x1cb4b7=_0x2fcf5a;return{'name':_0x46094d['fieldName'],'type':_0x46094d[_0x1cb4b7('0xb')][_0x1cb4b7('0x4f')]};});_0x1f6df4['model']=_['map'](_0x46ec8c,'name'),_0x1f6df4[_0x2fcf5a('0x57')]=_[_0x2fcf5a('0x46')](_0x15d76b[_0x2fcf5a('0x57')]),_0x1f6df4['filters']=_['intersection'](_0x1f6df4[_0x2fcf5a('0x43')],_0x1f6df4['query']),_0x352ac1[_0x2fcf5a('0x23')]=_[_0x2fcf5a('0x1c')](_0x1f6df4[_0x2fcf5a('0x43')],qs[_0x2fcf5a('0x51')](_0x15d76b[_0x2fcf5a('0x57')][_0x2fcf5a('0x51')])),_0x352ac1[_0x2fcf5a('0x23')]=_0x352ac1['attributes'][_0x2fcf5a('0x55')]?_0x352ac1[_0x2fcf5a('0x23')]:_0x1f6df4[_0x2fcf5a('0x43')];typeof _0x15d76b['query']['nolimit']===_0x2fcf5a('0x17')&&(_0x352ac1[_0x2fcf5a('0x47')]=qs[_0x2fcf5a('0x47')](_0x15d76b[_0x2fcf5a('0x57')][_0x2fcf5a('0x47')]),_0x352ac1[_0x2fcf5a('0x10')]=qs['offset'](_0x15d76b[_0x2fcf5a('0x57')][_0x2fcf5a('0x10')]));_0x352ac1[_0x2fcf5a('0x41')]=qs[_0x2fcf5a('0x1d')](_0x15d76b[_0x2fcf5a('0x57')][_0x2fcf5a('0x1d')]),_0x352ac1[_0x2fcf5a('0x18')]=qs[_0x2fcf5a('0x3a')](_['pick'](_0x15d76b[_0x2fcf5a('0x57')],_0x1f6df4[_0x2fcf5a('0x3a')]),_0x46ec8c);_0x15d76b[_0x2fcf5a('0x57')][_0x2fcf5a('0x28')]&&(_0x352ac1[_0x2fcf5a('0x18')]=_[_0x2fcf5a('0x30')](_0x352ac1[_0x2fcf5a('0x18')],{[Op['or']]:_[_0x2fcf5a('0x29')](_0x46ec8c,function(_0x94a099){const _0x5290ea=_0x2fcf5a;if(_0x94a099[_0x5290ea('0xb')]!==_0x5290ea('0x3b')){const _0x204336={};return _0x204336[_0x94a099[_0x5290ea('0x40')]]={[Op[_0x5290ea('0xa')]]:'%'+_0x15d76b[_0x5290ea('0x57')][_0x5290ea('0x28')]+'%'},_0x204336;}})}));_0x352ac1=_['merge']({},_0x352ac1,_0x15d76b['options']);const _0x21bff4={'where':_0x352ac1[_0x2fcf5a('0x18')]};return db[_0x2fcf5a('0x14')][_0x2fcf5a('0x34')](_0x21bff4)[_0x2fcf5a('0x12')](function(_0x579375){const _0x45609f=_0x2fcf5a;return _0x1b756d['count']=_0x579375,_0x15d76b['query'][_0x45609f('0x5d')]&&(_0x352ac1[_0x45609f('0x3e')]=[{'all':!![]}]),db[_0x45609f('0x14')]['findAll'](_0x352ac1);})[_0x2fcf5a('0x12')](function(_0x1d3cad){const _0x3e711e=_0x2fcf5a;return _0x1b756d[_0x3e711e('0x32')]=_0x1d3cad,_0x1b756d;})['then'](respondWithFilteredResult(_0xbbf731,_0x352ac1))[_0x2fcf5a('0x3')](handleError(_0xbbf731,null));},exports[_0x131994('0x7')]=function(_0x4311dd,_0x469bc2){const _0x2f2944=_0x131994;let _0x178483={'raw':![],'where':{'id':_0x4311dd[_0x2f2944('0x4a')]['id']}};const _0x4ab0c0={};return _0x4ab0c0[_0x2f2944('0x43')]=_['keys'](db[_0x2f2944('0x14')][_0x2f2944('0x13')]),_0x4ab0c0[_0x2f2944('0x57')]=_[_0x2f2944('0x46')](_0x4311dd[_0x2f2944('0x57')]),_0x4ab0c0[_0x2f2944('0x3a')]=_['intersection'](_0x4ab0c0['model'],_0x4ab0c0[_0x2f2944('0x57')]),_0x178483['attributes']=_[_0x2f2944('0x1c')](_0x4ab0c0['model'],qs[_0x2f2944('0x51')](_0x4311dd[_0x2f2944('0x57')][_0x2f2944('0x51')])),_0x178483[_0x2f2944('0x23')]=_0x178483[_0x2f2944('0x23')]['length']?_0x178483[_0x2f2944('0x23')]:_0x4ab0c0['model'],_0x4311dd['query']['includeAll']&&(_0x178483[_0x2f2944('0x3e')]=[{'all':!![]}]),_0x178483=_['merge']({},_0x178483,_0x4311dd[_0x2f2944('0x0')]),db[_0x2f2944('0x14')][_0x2f2944('0x56')](_0x178483)[_0x2f2944('0x12')](handleEntityNotFound(_0x469bc2,null))[_0x2f2944('0x12')](respondWithResult(_0x469bc2,null))['catch'](handleError(_0x469bc2,null));},exports[_0x131994('0xd')]=function(_0x40b1e2,_0x1d24e6){const _0x2a4135=_0x131994;return db[_0x2a4135('0x14')][_0x2a4135('0xd')](_0x40b1e2[_0x2a4135('0x4b')],{})[_0x2a4135('0x12')](respondWithResult(_0x1d24e6,0xc9))['catch'](handleError(_0x1d24e6,null));},exports['update']=function(_0x481ae4,_0x106410){const _0x282334=_0x131994;return _0x481ae4[_0x282334('0x4b')]['id']&&delete _0x481ae4[_0x282334('0x4b')]['id'],db[_0x282334('0x14')][_0x282334('0x56')]({'where':{'id':_0x481ae4[_0x282334('0x4a')]['id']}})['then'](handleEntityNotFound(_0x106410,null))['then'](saveUpdates(_0x481ae4[_0x282334('0x4b')],null))['then'](respondWithResult(_0x106410,null))[_0x282334('0x3')](handleError(_0x106410,null));},exports['destroy']=function(_0x3dce55,_0x5b1acd){const _0x1d34d4=_0x131994;return db[_0x1d34d4('0x14')][_0x1d34d4('0x56')]({'where':{'id':_0x3dce55['params']['id']}})[_0x1d34d4('0x12')](handleEntityNotFound(_0x5b1acd,null))[_0x1d34d4('0x12')](removeEntity(_0x5b1acd,null))[_0x1d34d4('0x3')](handleError(_0x5b1acd,null));},exports[_0x131994('0x25')]=function(_0x3e35b7,_0x30d5b){const _0x18a6c0=_0x131994;let _0x4be42f={};const _0x339986={};let _0x228b1c,_0x222544;return db['DeskAccount'][_0x18a6c0('0x56')]({'where':{'id':_0x3e35b7[_0x18a6c0('0x4a')]['id']}})['then'](handleEntityNotFound(_0x30d5b,null))[_0x18a6c0('0x12')](function(_0x241f5a){const _0x2956f9=_0x18a6c0;if(_0x241f5a)return _0x228b1c=_0x241f5a,_0x339986[_0x2956f9('0x43')]=_[_0x2956f9('0x46')](db[_0x2956f9('0x38')][_0x2956f9('0x13')]),_0x339986[_0x2956f9('0x57')]=_['keys'](_0x3e35b7['query']),_0x339986[_0x2956f9('0x3a')]=_[_0x2956f9('0x1c')](_0x339986[_0x2956f9('0x43')],_0x339986[_0x2956f9('0x57')]),_0x4be42f[_0x2956f9('0x23')]=_[_0x2956f9('0x1c')](_0x339986['model'],qs[_0x2956f9('0x51')](_0x3e35b7['query'][_0x2956f9('0x51')])),_0x4be42f['attributes']=_0x4be42f[_0x2956f9('0x23')][_0x2956f9('0x55')]?_0x4be42f[_0x2956f9('0x23')]:_0x339986[_0x2956f9('0x43')],_0x4be42f['order']=qs['sort'](_0x3e35b7[_0x2956f9('0x57')][_0x2956f9('0x1d')]),_0x4be42f[_0x2956f9('0x18')]=qs['filters'](_[_0x2956f9('0x15')](_0x3e35b7['query'],_0x339986[_0x2956f9('0x3a')])),_0x3e35b7['query'][_0x2956f9('0x28')]&&(_0x4be42f[_0x2956f9('0x18')]=_['merge'](_0x4be42f[_0x2956f9('0x18')],{[Op['or']]:_[_0x2956f9('0x29')](_0x4be42f[_0x2956f9('0x23')],function(_0x1e521a){const _0x486798=_0x2956f9,_0x3cabce={};return _0x3cabce[_0x1e521a]={[Op[_0x486798('0xa')]]:'%'+_0x3e35b7[_0x486798('0x57')][_0x486798('0x28')]+'%'},_0x3cabce;})})),_0x4be42f=_[_0x2956f9('0x30')]({},_0x4be42f,_0x3e35b7['options']),_0x228b1c[_0x2956f9('0x25')](_0x4be42f);})[_0x18a6c0('0x12')](function(_0x471315){const _0x3016fc=_0x18a6c0;if(_0x471315)return _0x222544=_0x471315[_0x3016fc('0x55')],typeof _0x3e35b7[_0x3016fc('0x57')][_0x3016fc('0x5')]===_0x3016fc('0x17')&&(_0x4be42f[_0x3016fc('0x47')]=qs['limit'](_0x3e35b7['query'][_0x3016fc('0x47')]),_0x4be42f['offset']=qs[_0x3016fc('0x10')](_0x3e35b7['query'][_0x3016fc('0x10')])),_0x228b1c[_0x3016fc('0x25')](_0x4be42f);})['then'](function(_0x1fc7f9){if(_0x1fc7f9)return _0x1fc7f9?{'count':_0x222544,'rows':_0x1fc7f9}:null;})[_0x18a6c0('0x12')](respondWithResult(_0x30d5b,null))[_0x18a6c0('0x3')](handleError(_0x30d5b,null));},exports['addConfiguration']=function(_0x50a920,_0x287ce6){const _0x101612=_0x131994;return _0x50a920[_0x101612('0x4b')]['id']&&delete _0x50a920[_0x101612('0x4b')]['id'],db['DeskAccount'][_0x101612('0x56')]({'where':{'id':_0x50a920['params']['id']}})[_0x101612('0x12')](handleEntityNotFound(_0x287ce6,null))[_0x101612('0x12')](function(_0x3299b8){const _0x585e70=_0x101612;if(_0x3299b8)return _0x50a920[_0x585e70('0x4b')][_0x585e70('0x5c')]=_0x3299b8['id'],_0x50a920[_0x585e70('0x4b')][_0x585e70('0x58')]=integrations[_0x585e70('0x37')](_0x50a920['body'][_0x585e70('0x20')],_0x50a920['body'][_0x585e70('0xb')]),_0x50a920[_0x585e70('0x4b')][_0x585e70('0x3d')]=integrations[_0x585e70('0x3f')](_0x50a920['body'][_0x585e70('0x20')],_0x50a920[_0x585e70('0x4b')]['type']),db[_0x585e70('0x38')][_0x585e70('0xd')](_0x50a920[_0x585e70('0x4b')],{'include':[{'model':db[_0x585e70('0x50')],'as':_0x585e70('0x58')},{'model':db[_0x585e70('0x50')],'as':_0x585e70('0x3d')}]});return null;})[_0x101612('0x12')](respondWithResult(_0x287ce6,null))[_0x101612('0x3')](handleError(_0x287ce6,null));},exports['getFields']=function(_0x1b33bc,_0x15dd73){const _0x149747=_0x131994,_0x3860ff=[{'name':_0x149747('0x45'),'label':'priority','custom':![],'options':[{'name':0x1,'value':0x1},{'name':0x2,'value':0x2},{'name':0x3,'value':0x3},{'name':0x4,'value':0x4},{'name':0x5,'value':0x5},{'name':0x6,'value':0x6},{'name':0x7,'value':0x7},{'name':0x8,'value':0x8},{'name':0x9,'value':0x9},{'name':0xa,'value':0xa}]}];let _0x22632b='';return db[_0x149747('0x14')][_0x149747('0x56')]({'where':{'id':_0x1b33bc[_0x149747('0x4a')]['id']},'attributes':['id','remoteUri',_0x149747('0x33'),_0x149747('0x4c'),_0x149747('0x21'),_0x149747('0x5b'),'consumerSecret',_0x149747('0x35'),_0x149747('0x27')]})[_0x149747('0x12')](handleEntityNotFound(_0x15dd73,null))[_0x149747('0x12')](function(_0x32e727){const _0x4eaaa6=_0x149747;if(_0x32e727){_0x22632b=_0x32e727[_0x4eaaa6('0x1a')];const _0x2d855b=_0x22632b[_0x4eaaa6('0x2')](-0x1);_0x2d855b==='/'&&(_0x22632b=_0x22632b[_0x4eaaa6('0x2d')](0x0,_0x22632b[_0x4eaaa6('0x4d')](_0x2d855b)));const _0x596e35={'method':_0x4eaaa6('0x1'),'uri':util[_0x4eaaa6('0x44')](_0x4eaaa6('0x19'),_0x22632b),'headers':{'Content-Type':_0x4eaaa6('0x9'),'Accept':_0x4eaaa6('0x9')},'json':!![]};return _0x32e727[_0x4eaaa6('0x33')]==='basic'&&(_0x596e35[_0x4eaaa6('0x2f')][_0x4eaaa6('0x2e')]=util[_0x4eaaa6('0x44')]('Basic\x20%s',Buffer[_0x4eaaa6('0x36')](util[_0x4eaaa6('0x44')](_0x4eaaa6('0x4'),_0x32e727[_0x4eaaa6('0x4c')],_0x32e727[_0x4eaaa6('0x21')]))[_0x4eaaa6('0x4e')]('base64'))),rp(_0x596e35)[_0x4eaaa6('0x12')](function(_0xdfb9e6){const _0x1eab0c=_0x4eaaa6;return _0x3860ff['concat'](_[_0x1eab0c('0x29')](_0xdfb9e6['_embedded'][_0x1eab0c('0x1e')],function(_0x197cd3){const _0x4d23b6=_0x1eab0c;return{'id':_0x197cd3['name'],'name':_0x197cd3['name'],'type':_0x197cd3['type'],'active':_0x197cd3[_0x4d23b6('0x49')],'label':_0x197cd3['label'],'custom':!![]};}));});}})['then'](function(_0x29e047){const _0x766833=_0x149747;return{'count':_0x29e047[_0x766833('0x55')],'rows':_0x29e047};})['then'](respondWithResult(_0x15dd73,null))[_0x149747('0x3')](function(_0x256fe9){const _0x3c68e6=_0x149747;let _0x4649ef=_0x1b33bc['query'][_0x3c68e6('0x52')]?0x1f4:_0x256fe9[_0x3c68e6('0x2b')]||0x1f4;logger[_0x3c68e6('0x39')](_0x3c68e6('0xc'),_0x3c68e6('0x31'),_0x4649ef,JSON[_0x3c68e6('0x2c')](_0x256fe9)),delete _0x256fe9[_0x3c68e6('0x40')],_0x4649ef===0x191&&(_0x4649ef=0x190),_0x15dd73[_0x3c68e6('0x48')](_0x4649ef)[_0x3c68e6('0x16')](_0x1b33bc[_0x3c68e6('0x57')][_0x3c68e6('0x52')]?{'message':_0x3c68e6('0x24'),'statusCode':_0x256fe9[_0x3c68e6('0x2b')]}:_0x256fe9);});}; \ No newline at end of file +const a272_0x1929=['fields','slice','status','getFields,\x20%s,\x20%s,\x20%s','from','map','json','statusCode','filters','name','pick','remoteUri','VIRTUAL','consumerSecret','tokenSecret','token','like','api','util','Subjects','error','substring','channel','send','../../components/parsers/qs','then','model','create','getFields','include','DeskAccount','type','index','filter','intersection','query','label','findOne','DeskField','base64','authType','where','offset','../../config/logger','options','DeskConfiguration','keys','undefined','priority','Wrong\x20credentials','rawAttributes','nolimit','includeAll','addConfiguration','length','%s:%s','%s/custom_fields','merge','format','Basic\x20%s','concat','count','limit','findAll','username','password','order','catch','sequelize','test','params','lodash','getSubjects','getDescriptions','headers','sort','toString','sendStatus','AccountId','stringify','end','attributes','body','getConfigurations','application/json','key'];(function(_0x105c78,_0x10fe0b){const _0x1929c5=function(_0x43a29d){while(--_0x43a29d){_0x105c78['push'](_0x105c78['shift']());}};_0x1929c5(++_0x10fe0b);}(a272_0x1929,0x6b));const a272_0x43a2=function(_0x105c78,_0x10fe0b){_0x105c78=_0x105c78-0xc6;let _0x1929c5=a272_0x1929[_0x105c78];return _0x1929c5;};const a272_0xe1980a=a272_0x43a2;'use strict';const rp=require('request-promise-native'),util=require(a272_0xe1980a(0x119)),_=require(a272_0xe1980a(0xf8)),qs=require(a272_0xe1980a(0xc9)),logger=require(a272_0xe1980a(0xdc))(a272_0xe1980a(0x118)),{db}=require('../../mysqldb'),{Op}=require(a272_0xe1980a(0xf5)),integrations=require('../../components/integrations/configuration');function respondWithResult(_0x363508,_0x5dd320){return _0x5dd320=_0x5dd320||0xc8,function(_0xc514fb){const _0x9fe0f2=a272_0x43a2;if(_0xc514fb)return _0x363508['status'](_0x5dd320)[_0x9fe0f2(0x10d)](_0xc514fb);};}function respondWithFilteredResult(_0x144040,_0x45e026){return function(_0x5d479f){const _0x2b7b9b=a272_0x43a2;if(_0x5d479f){const _0x413d6e=_0x5d479f[_0x2b7b9b(0xee)],_0x1abb4c=_0x45e026['offset'];let _0x4afbab=_0x45e026[_0x2b7b9b(0xdb)]+_0x45e026[_0x2b7b9b(0xef)],_0x453dbf;return _0x4afbab>=_0x413d6e?(_0x4afbab=_0x413d6e,_0x453dbf=0xc8):_0x453dbf=0xce,_0x144040[_0x2b7b9b(0x109)](_0x453dbf),_0x144040['set']('Content-Range',_0x1abb4c+'-'+_0x4afbab+'/'+_0x413d6e)[_0x2b7b9b(0x10d)](_0x5d479f);}return null;};}function saveUpdates(_0x4f984c){return function(_0x16b7a9){const _0x242163=a272_0x43a2;if(_0x16b7a9)return _0x16b7a9['update'](_0x4f984c)[_0x242163(0xca)](function(_0x283b58){return _0x283b58;});return null;};}function removeEntity(_0x50848b){return function(_0x3b80ea){const _0x36c7fd=a272_0x43a2;if(_0x3b80ea)return _0x3b80ea['destroy']()[_0x36c7fd(0xca)](function(){const _0x2cc3ff=_0x36c7fd;_0x50848b[_0x2cc3ff(0x109)](0xcc)[_0x2cc3ff(0x101)]();});};}function handleEntityNotFound(_0x4e490f){return function(_0xad79e){const _0x536ced=a272_0x43a2;return!_0xad79e&&_0x4e490f[_0x536ced(0xfe)](0x194),_0xad79e;};}function handleError(_0x211233,_0x462850){return _0x462850=_0x462850||0x1f4,function(_0x29d21b){const _0x411a1e=a272_0x43a2;logger[_0x411a1e(0x11b)](_0x29d21b['stack']),_0x29d21b[_0x411a1e(0x110)]&&delete _0x29d21b[_0x411a1e(0x110)],_0x211233[_0x411a1e(0x109)](_0x462850)['send'](_0x29d21b);};}exports[a272_0xe1980a(0xd1)]=function(_0x53b109,_0x236a09){const _0xef649f=a272_0xe1980a;let _0x1d7bc7={};const _0xbaa0ea={},_0x2ae15f={'count':0x0,'rows':[]},_0x474ad4=_[_0xef649f(0x10c)](db[_0xef649f(0xcf)][_0xef649f(0xe3)],function(_0x44509b){const _0x4b8502=_0xef649f;return{'name':_0x44509b['fieldName'],'type':_0x44509b['type'][_0x4b8502(0x106)]};});_0xbaa0ea[_0xef649f(0xcb)]=_['map'](_0x474ad4,_0xef649f(0x110)),_0xbaa0ea['query']=_[_0xef649f(0xdf)](_0x53b109[_0xef649f(0xd4)]),_0xbaa0ea[_0xef649f(0x10f)]=_['intersection'](_0xbaa0ea[_0xef649f(0xcb)],_0xbaa0ea[_0xef649f(0xd4)]),_0x1d7bc7[_0xef649f(0x102)]=_[_0xef649f(0xd3)](_0xbaa0ea[_0xef649f(0xcb)],qs[_0xef649f(0x107)](_0x53b109[_0xef649f(0xd4)][_0xef649f(0x107)])),_0x1d7bc7[_0xef649f(0x102)]=_0x1d7bc7[_0xef649f(0x102)][_0xef649f(0xe7)]?_0x1d7bc7[_0xef649f(0x102)]:_0xbaa0ea['model'];typeof _0x53b109[_0xef649f(0xd4)][_0xef649f(0xe4)]===_0xef649f(0xe0)&&(_0x1d7bc7[_0xef649f(0xef)]=qs['limit'](_0x53b109['query'][_0xef649f(0xef)]),_0x1d7bc7[_0xef649f(0xdb)]=qs[_0xef649f(0xdb)](_0x53b109['query'][_0xef649f(0xdb)]));_0x1d7bc7[_0xef649f(0xf3)]=qs[_0xef649f(0xfc)](_0x53b109[_0xef649f(0xd4)][_0xef649f(0xfc)]),_0x1d7bc7[_0xef649f(0xda)]=qs[_0xef649f(0x10f)](_[_0xef649f(0x111)](_0x53b109[_0xef649f(0xd4)],_0xbaa0ea[_0xef649f(0x10f)]),_0x474ad4);_0x53b109[_0xef649f(0xd4)]['filter']&&(_0x1d7bc7[_0xef649f(0xda)]=_[_0xef649f(0xea)](_0x1d7bc7['where'],{[Op['or']]:_[_0xef649f(0x10c)](_0x474ad4,function(_0x297d3c){const _0xc389d1=_0xef649f;if(_0x297d3c[_0xc389d1(0xd0)]!==_0xc389d1(0x113)){const _0x2cb5f5={};return _0x2cb5f5[_0x297d3c[_0xc389d1(0x110)]]={[Op[_0xc389d1(0x117)]]:'%'+_0x53b109['query'][_0xc389d1(0xd2)]+'%'},_0x2cb5f5;}})}));_0x1d7bc7=_['merge']({},_0x1d7bc7,_0x53b109[_0xef649f(0xdd)]);const _0x27a8c4={'where':_0x1d7bc7[_0xef649f(0xda)]};return db[_0xef649f(0xcf)][_0xef649f(0xee)](_0x27a8c4)[_0xef649f(0xca)](function(_0x5394ef){const _0x9ca713=_0xef649f;return _0x2ae15f[_0x9ca713(0xee)]=_0x5394ef,_0x53b109[_0x9ca713(0xd4)][_0x9ca713(0xe5)]&&(_0x1d7bc7[_0x9ca713(0xce)]=[{'all':!![]}]),db[_0x9ca713(0xcf)][_0x9ca713(0xf0)](_0x1d7bc7);})['then'](function(_0x79f1a2){return _0x2ae15f['rows']=_0x79f1a2,_0x2ae15f;})[_0xef649f(0xca)](respondWithFilteredResult(_0x236a09,_0x1d7bc7))[_0xef649f(0xf4)](handleError(_0x236a09,null));},exports['show']=function(_0x47db5c,_0x111b91){const _0x2b9ef6=a272_0xe1980a;let _0x856918={'raw':![],'where':{'id':_0x47db5c['params']['id']}};const _0x157ef2={};return _0x157ef2[_0x2b9ef6(0xcb)]=_[_0x2b9ef6(0xdf)](db[_0x2b9ef6(0xcf)][_0x2b9ef6(0xe3)]),_0x157ef2[_0x2b9ef6(0xd4)]=_[_0x2b9ef6(0xdf)](_0x47db5c['query']),_0x157ef2[_0x2b9ef6(0x10f)]=_[_0x2b9ef6(0xd3)](_0x157ef2['model'],_0x157ef2[_0x2b9ef6(0xd4)]),_0x856918[_0x2b9ef6(0x102)]=_[_0x2b9ef6(0xd3)](_0x157ef2[_0x2b9ef6(0xcb)],qs['fields'](_0x47db5c[_0x2b9ef6(0xd4)]['fields'])),_0x856918['attributes']=_0x856918['attributes'][_0x2b9ef6(0xe7)]?_0x856918[_0x2b9ef6(0x102)]:_0x157ef2[_0x2b9ef6(0xcb)],_0x47db5c[_0x2b9ef6(0xd4)][_0x2b9ef6(0xe5)]&&(_0x856918[_0x2b9ef6(0xce)]=[{'all':!![]}]),_0x856918=_[_0x2b9ef6(0xea)]({},_0x856918,_0x47db5c[_0x2b9ef6(0xdd)]),db['DeskAccount']['findOne'](_0x856918)[_0x2b9ef6(0xca)](handleEntityNotFound(_0x111b91,null))[_0x2b9ef6(0xca)](respondWithResult(_0x111b91,null))['catch'](handleError(_0x111b91,null));},exports[a272_0xe1980a(0xcc)]=function(_0xd4aaaf,_0x5270e0){const _0x18d985=a272_0xe1980a;return db['DeskAccount'][_0x18d985(0xcc)](_0xd4aaaf['body'],{})[_0x18d985(0xca)](respondWithResult(_0x5270e0,0xc9))[_0x18d985(0xf4)](handleError(_0x5270e0,null));},exports['update']=function(_0x757ebc,_0x945acb){const _0x1cd6f2=a272_0xe1980a;return _0x757ebc[_0x1cd6f2(0x103)]['id']&&delete _0x757ebc[_0x1cd6f2(0x103)]['id'],db[_0x1cd6f2(0xcf)][_0x1cd6f2(0xd6)]({'where':{'id':_0x757ebc['params']['id']}})['then'](handleEntityNotFound(_0x945acb,null))[_0x1cd6f2(0xca)](saveUpdates(_0x757ebc[_0x1cd6f2(0x103)],null))[_0x1cd6f2(0xca)](respondWithResult(_0x945acb,null))['catch'](handleError(_0x945acb,null));},exports['destroy']=function(_0x28a72c,_0x4e260e){const _0x4b779a=a272_0xe1980a;return db[_0x4b779a(0xcf)][_0x4b779a(0xd6)]({'where':{'id':_0x28a72c['params']['id']}})[_0x4b779a(0xca)](handleEntityNotFound(_0x4e260e,null))[_0x4b779a(0xca)](removeEntity(_0x4e260e,null))[_0x4b779a(0xf4)](handleError(_0x4e260e,null));},exports[a272_0xe1980a(0x104)]=function(_0x192554,_0x4faf9c){const _0x5a6643=a272_0xe1980a;let _0xcf0f51={};const _0x2c9a9b={};let _0x248f1e,_0x2717c4;return db['DeskAccount'][_0x5a6643(0xd6)]({'where':{'id':_0x192554[_0x5a6643(0xf7)]['id']}})[_0x5a6643(0xca)](handleEntityNotFound(_0x4faf9c,null))[_0x5a6643(0xca)](function(_0x4b2f3d){const _0x3101c5=_0x5a6643;if(_0x4b2f3d)return _0x248f1e=_0x4b2f3d,_0x2c9a9b[_0x3101c5(0xcb)]=_['keys'](db[_0x3101c5(0xde)][_0x3101c5(0xe3)]),_0x2c9a9b[_0x3101c5(0xd4)]=_['keys'](_0x192554[_0x3101c5(0xd4)]),_0x2c9a9b['filters']=_['intersection'](_0x2c9a9b[_0x3101c5(0xcb)],_0x2c9a9b[_0x3101c5(0xd4)]),_0xcf0f51[_0x3101c5(0x102)]=_[_0x3101c5(0xd3)](_0x2c9a9b[_0x3101c5(0xcb)],qs[_0x3101c5(0x107)](_0x192554[_0x3101c5(0xd4)][_0x3101c5(0x107)])),_0xcf0f51[_0x3101c5(0x102)]=_0xcf0f51['attributes'][_0x3101c5(0xe7)]?_0xcf0f51[_0x3101c5(0x102)]:_0x2c9a9b[_0x3101c5(0xcb)],_0xcf0f51[_0x3101c5(0xf3)]=qs[_0x3101c5(0xfc)](_0x192554[_0x3101c5(0xd4)]['sort']),_0xcf0f51['where']=qs[_0x3101c5(0x10f)](_['pick'](_0x192554[_0x3101c5(0xd4)],_0x2c9a9b[_0x3101c5(0x10f)])),_0x192554[_0x3101c5(0xd4)][_0x3101c5(0xd2)]&&(_0xcf0f51[_0x3101c5(0xda)]=_[_0x3101c5(0xea)](_0xcf0f51[_0x3101c5(0xda)],{[Op['or']]:_['map'](_0xcf0f51[_0x3101c5(0x102)],function(_0x1eeaed){const _0x44e0c1=_0x3101c5,_0x34112b={};return _0x34112b[_0x1eeaed]={[Op[_0x44e0c1(0x117)]]:'%'+_0x192554[_0x44e0c1(0xd4)][_0x44e0c1(0xd2)]+'%'},_0x34112b;})})),_0xcf0f51=_[_0x3101c5(0xea)]({},_0xcf0f51,_0x192554['options']),_0x248f1e[_0x3101c5(0x104)](_0xcf0f51);})['then'](function(_0x208907){const _0x1b2912=_0x5a6643;if(_0x208907)return _0x2717c4=_0x208907[_0x1b2912(0xe7)],typeof _0x192554['query'][_0x1b2912(0xe4)]===_0x1b2912(0xe0)&&(_0xcf0f51['limit']=qs[_0x1b2912(0xef)](_0x192554[_0x1b2912(0xd4)][_0x1b2912(0xef)]),_0xcf0f51['offset']=qs[_0x1b2912(0xdb)](_0x192554[_0x1b2912(0xd4)][_0x1b2912(0xdb)])),_0x248f1e[_0x1b2912(0x104)](_0xcf0f51);})['then'](function(_0x3b9118){if(_0x3b9118)return _0x3b9118?{'count':_0x2717c4,'rows':_0x3b9118}:null;})[_0x5a6643(0xca)](respondWithResult(_0x4faf9c,null))[_0x5a6643(0xf4)](handleError(_0x4faf9c,null));},exports[a272_0xe1980a(0xe6)]=function(_0x110d61,_0x235767){const _0x466b58=a272_0xe1980a;return _0x110d61[_0x466b58(0x103)]['id']&&delete _0x110d61['body']['id'],db['DeskAccount'][_0x466b58(0xd6)]({'where':{'id':_0x110d61['params']['id']}})[_0x466b58(0xca)](handleEntityNotFound(_0x235767,null))[_0x466b58(0xca)](function(_0x33bda8){const _0x13db59=_0x466b58;if(_0x33bda8)return _0x110d61[_0x13db59(0x103)][_0x13db59(0xff)]=_0x33bda8['id'],_0x110d61[_0x13db59(0x103)][_0x13db59(0x11a)]=integrations[_0x13db59(0xf9)](_0x110d61[_0x13db59(0x103)][_0x13db59(0xc7)],_0x110d61['body'][_0x13db59(0xd0)]),_0x110d61['body']['Descriptions']=integrations[_0x13db59(0xfa)](_0x110d61[_0x13db59(0x103)][_0x13db59(0xc7)],_0x110d61[_0x13db59(0x103)][_0x13db59(0xd0)]),db[_0x13db59(0xde)][_0x13db59(0xcc)](_0x110d61[_0x13db59(0x103)],{'include':[{'model':db[_0x13db59(0xd7)],'as':_0x13db59(0x11a)},{'model':db[_0x13db59(0xd7)],'as':'Descriptions'}]});return null;})[_0x466b58(0xca)](respondWithResult(_0x235767,null))[_0x466b58(0xf4)](handleError(_0x235767,null));},exports[a272_0xe1980a(0xcd)]=function(_0x4efe60,_0x413ec8){const _0x59ccb8=a272_0xe1980a,_0x30a523=[{'name':_0x59ccb8(0xe1),'label':_0x59ccb8(0xe1),'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 _0x158e70='';return db[_0x59ccb8(0xcf)][_0x59ccb8(0xd6)]({'where':{'id':_0x4efe60[_0x59ccb8(0xf7)]['id']},'attributes':['id',_0x59ccb8(0x112),'authType',_0x59ccb8(0xf1),'password','consumerKey',_0x59ccb8(0x114),_0x59ccb8(0x116),_0x59ccb8(0x115)]})[_0x59ccb8(0xca)](handleEntityNotFound(_0x413ec8,null))[_0x59ccb8(0xca)](function(_0x24d7a7){const _0x4cf6a2=_0x59ccb8;if(_0x24d7a7){_0x158e70=_0x24d7a7[_0x4cf6a2(0x112)];const _0x1c5a12=_0x158e70[_0x4cf6a2(0x108)](-0x1);_0x1c5a12==='/'&&(_0x158e70=_0x158e70[_0x4cf6a2(0xc6)](0x0,_0x158e70['lastIndexOf'](_0x1c5a12)));const _0x3885a0={'method':'GET','uri':util[_0x4cf6a2(0xeb)](_0x4cf6a2(0xe9),_0x158e70),'headers':{'Content-Type':_0x4cf6a2(0x105),'Accept':'application/json'},'json':!![]};return _0x24d7a7[_0x4cf6a2(0xd9)]==='basic'&&(_0x3885a0[_0x4cf6a2(0xfb)]['Authorization']=util[_0x4cf6a2(0xeb)](_0x4cf6a2(0xec),Buffer[_0x4cf6a2(0x10b)](util[_0x4cf6a2(0xeb)](_0x4cf6a2(0xe8),_0x24d7a7['username'],_0x24d7a7[_0x4cf6a2(0xf2)]))[_0x4cf6a2(0xfd)](_0x4cf6a2(0xd8)))),rp(_0x3885a0)[_0x4cf6a2(0xca)](function(_0x4fb123){const _0x4e5150=_0x4cf6a2;return _0x30a523[_0x4e5150(0xed)](_[_0x4e5150(0x10c)](_0x4fb123['_embedded']['entries'],function(_0x5beea7){const _0x138c8d=_0x4e5150;return{'id':_0x5beea7[_0x138c8d(0x110)],'name':_0x5beea7[_0x138c8d(0x110)],'type':_0x5beea7[_0x138c8d(0xd0)],'active':_0x5beea7['active'],'label':_0x5beea7[_0x138c8d(0xd5)],'custom':!![]};}));});}})['then'](function(_0x418de0){return{'count':_0x418de0['length'],'rows':_0x418de0};})[_0x59ccb8(0xca)](respondWithResult(_0x413ec8,null))[_0x59ccb8(0xf4)](function(_0x53bb07){const _0x4b750b=_0x59ccb8;let _0x3c0cfd=_0x4efe60['query']['test']?0x1f4:_0x53bb07[_0x4b750b(0x10e)]||0x1f4;logger['error'](_0x4b750b(0x10a),_0x4b750b(0xcd),_0x3c0cfd,JSON[_0x4b750b(0x100)](_0x53bb07)),delete _0x53bb07[_0x4b750b(0x110)],_0x3c0cfd===0x191&&(_0x3c0cfd=0x190),_0x413ec8[_0x4b750b(0x109)](_0x3c0cfd)[_0x4b750b(0xc8)](_0x4efe60[_0x4b750b(0xd4)][_0x4b750b(0xf6)]?{'message':_0x4b750b(0xe2),'statusCode':_0x53bb07['statusCode']}:_0x53bb07);});}; \ No newline at end of file diff --git a/server/api/intDeskAccount/intDeskAccount.model.js b/server/api/intDeskAccount/intDeskAccount.model.js index 709d1f4..4f8e3e6 100644 --- a/server/api/intDeskAccount/intDeskAccount.model.js +++ b/server/api/intDeskAccount/intDeskAccount.model.js @@ -1 +1 @@ -const a230_0x102c=['define','exports','./intDeskAccount.attributes','int_desk_accounts','DeskAccount'];(function(_0x5de8ea,_0x102c18){const _0x52ad33=function(_0x46e53e){while(--_0x46e53e){_0x5de8ea['push'](_0x5de8ea['shift']());}};_0x52ad33(++_0x102c18);}(a230_0x102c,0x1ed));const a230_0x52ad=function(_0x5de8ea,_0x102c18){_0x5de8ea=_0x5de8ea-0x0;let _0x52ad33=a230_0x102c[_0x5de8ea];return _0x52ad33;};const _0x44e95b=a230_0x52ad;'use strict';const attributes=require(_0x44e95b('0x4'));module[_0x44e95b('0x3')]=function(_0x46e53e){const _0x58a4b7=_0x44e95b,_0x1f65ca=_0x46e53e[_0x58a4b7('0x2')](_0x58a4b7('0x1'),attributes,{'tableName':_0x58a4b7('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x1f65ca;}; \ No newline at end of file +const a273_0x5827=['init','sequelize','DeskAccount','./intDeskAccount.options','exports'];(function(_0x3f2a5d,_0x10db1e){const _0x582773=function(_0x13b4b4){while(--_0x13b4b4){_0x3f2a5d['push'](_0x3f2a5d['shift']());}};_0x582773(++_0x10db1e);}(a273_0x5827,0x177));const a273_0x13b4=function(_0x3f2a5d,_0x10db1e){_0x3f2a5d=_0x3f2a5d-0x163;let _0x582773=a273_0x5827[_0x3f2a5d];return _0x582773;};const a273_0x32245b=a273_0x13b4;'use strict';const {Model}=require(a273_0x32245b(0x164)),{attributes}=require('./intDeskAccount.attributes'),{options}=require(a273_0x32245b(0x166));class DeskAccount extends Model{}function init(_0x4f2719,_0x96a1f1){const _0x494b8d=options(_0x4f2719),_0x3872e6=typeof _0x96a1f1==='function'?_0x96a1f1(_0x494b8d):_0x494b8d;return DeskAccount['init'](attributes,_0x3872e6),DeskAccount;}module['exports'][a273_0x32245b(0x165)]=DeskAccount,module[a273_0x32245b(0x167)][a273_0x32245b(0x163)]=init; \ No newline at end of file diff --git a/server/api/intDeskAccount/intDeskAccount.options.js b/server/api/intDeskAccount/intDeskAccount.options.js new file mode 100644 index 0000000..3e9ff86 --- /dev/null +++ b/server/api/intDeskAccount/intDeskAccount.options.js @@ -0,0 +1 @@ +var a274_0x4b71=['options','int_desk_accounts'];(function(_0x1b9b9a,_0x41d005){var _0x4b7153=function(_0x31e889){while(--_0x31e889){_0x1b9b9a['push'](_0x1b9b9a['shift']());}};_0x4b7153(++_0x41d005);}(a274_0x4b71,0x16f));var a274_0x31e8=function(_0x1b9b9a,_0x41d005){_0x1b9b9a=_0x1b9b9a-0x1af;var _0x4b7153=a274_0x4b71[_0x1b9b9a];return _0x4b7153;};var a274_0x46ba7a=a274_0x31e8;function options(_0x115d50){var _0xb40a8c=a274_0x31e8;return{'sequelize':_0x115d50,'tableName':_0xb40a8c(0x1af),'paranoid':![],'indexes':[],'timestamps':!![]};}module['exports'][a274_0x46ba7a(0x1b0)]=options; \ No newline at end of file diff --git a/server/api/intDeskAccount/intDeskAccount.rpc.js b/server/api/intDeskAccount/intDeskAccount.rpc.js index b6f9b1e..2f2d136 100644 --- a/server/api/intDeskAccount/intDeskAccount.rpc.js +++ b/server/api/intDeskAccount/intDeskAccount.rpc.js @@ -1 +1 @@ -const a231_0x1760=['info','findAll','GetDeskAccount','model','attributes','raw','stringify','then','options','DeskAccount','rpc','../../config/logger','ShowDeskAccount','debug','error','map','lodash','../../mysqldb','message','include','catch','where'];(function(_0x430116,_0x1760a3){const _0x5c87e5=function(_0x309f1c){while(--_0x309f1c){_0x430116['push'](_0x430116['shift']());}};_0x5c87e5(++_0x1760a3);}(a231_0x1760,0x15c));const a231_0x5c87=function(_0x430116,_0x1760a3){_0x430116=_0x430116-0x0;let _0x5c87e5=a231_0x1760[_0x430116];return _0x5c87e5;};const _0x1e13af=a231_0x5c87;'use strict';const _=require(_0x1e13af('0x14')),db=require(_0x1e13af('0x15'))['db'],logger=require(_0x1e13af('0xf'))(_0x1e13af('0xe'));exports[_0x1e13af('0x6')]=function(_0x309f1c){const _0x1fa774=this;return new Promise(function(_0x330c08,_0x482fe0){const _0x58dd5a=a231_0x5c87;return db[_0x58dd5a('0xd')][_0x58dd5a('0x5')]({'raw':_0x309f1c[_0x58dd5a('0xc')]?_0x309f1c[_0x58dd5a('0xc')][_0x58dd5a('0x9')]===undefined?!![]:![]:!![],'where':_0x309f1c[_0x58dd5a('0xc')]?_0x309f1c['options'][_0x58dd5a('0x3')]||null:null,'attributes':_0x309f1c[_0x58dd5a('0xc')]?_0x309f1c[_0x58dd5a('0xc')][_0x58dd5a('0x8')]||null:null,'limit':_0x309f1c[_0x58dd5a('0xc')]?_0x309f1c['options']['limit']||null:null,'include':_0x309f1c[_0x58dd5a('0xc')]?_0x309f1c['options']['include']?_[_0x58dd5a('0x13')](_0x309f1c[_0x58dd5a('0xc')][_0x58dd5a('0x1')],function(_0x34bb29){const _0xbee849=_0x58dd5a;return{'model':db[_0x34bb29[_0xbee849('0x7')]],'as':_0x34bb29['as'],'attributes':_0x34bb29['attributes'],'include':_0x34bb29['include']?_[_0xbee849('0x13')](_0x34bb29[_0xbee849('0x1')],function(_0x3ea4b0){const _0x5e2e2b=_0xbee849;return{'model':db[_0x3ea4b0['model']],'as':_0x3ea4b0['as'],'attributes':_0x3ea4b0[_0x5e2e2b('0x8')],'include':_0x3ea4b0[_0x5e2e2b('0x1')]?_[_0x5e2e2b('0x13')](_0x3ea4b0[_0x5e2e2b('0x1')],function(_0x5d554b){const _0x26f691=_0x5e2e2b;return{'model':db[_0x5d554b[_0x26f691('0x7')]],'as':_0x5d554b['as'],'attributes':_0x5d554b['attributes']};}):[]};}):[]};}):[]:[]})[_0x58dd5a('0xb')](function(_0x424333){const _0x449b6c=_0x58dd5a;logger[_0x449b6c('0x4')](_0x449b6c('0x6'),_0x309f1c),logger[_0x449b6c('0x11')](_0x449b6c('0x6'),_0x309f1c,JSON['stringify'](_0x424333)),_0x330c08(_0x424333);})[_0x58dd5a('0x2')](function(_0x5130fc){const _0x35fe8d=_0x58dd5a;logger[_0x35fe8d('0x12')](_0x35fe8d('0x6'),_0x5130fc[_0x35fe8d('0x0')],_0x309f1c),_0x482fe0(_0x1fa774['error'](0x1f4,_0x5130fc[_0x35fe8d('0x0')]));});});},exports[_0x1e13af('0x10')]=function(_0x1ddfa0){const _0x1a4acc=this;return new Promise(function(_0x37ee2e,_0x401be5){const _0x4f6ef6=a231_0x5c87;return db[_0x4f6ef6('0xd')]['findOne']({'raw':_0x1ddfa0[_0x4f6ef6('0xc')]?_0x1ddfa0[_0x4f6ef6('0xc')][_0x4f6ef6('0x9')]===undefined?!![]:![]:!![],'where':_0x1ddfa0[_0x4f6ef6('0xc')]?_0x1ddfa0[_0x4f6ef6('0xc')][_0x4f6ef6('0x3')]||null:null,'attributes':_0x1ddfa0[_0x4f6ef6('0xc')]?_0x1ddfa0['options']['attributes']||null:null,'include':_0x1ddfa0[_0x4f6ef6('0xc')]?_0x1ddfa0[_0x4f6ef6('0xc')][_0x4f6ef6('0x1')]?_['map'](_0x1ddfa0[_0x4f6ef6('0xc')][_0x4f6ef6('0x1')],function(_0x3a9c60){const _0x4d0e3c=_0x4f6ef6;return{'model':db[_0x3a9c60[_0x4d0e3c('0x7')]],'as':_0x3a9c60['as'],'attributes':_0x3a9c60[_0x4d0e3c('0x8')],'include':_0x3a9c60[_0x4d0e3c('0x1')]?_[_0x4d0e3c('0x13')](_0x3a9c60[_0x4d0e3c('0x1')],function(_0x328a3c){const _0x33dc3f=_0x4d0e3c;return{'model':db[_0x328a3c['model']],'as':_0x328a3c['as'],'attributes':_0x328a3c['attributes'],'include':_0x328a3c[_0x33dc3f('0x1')]?_['map'](_0x328a3c[_0x33dc3f('0x1')],function(_0x126a22){const _0x22a82d=_0x33dc3f;return{'model':db[_0x126a22[_0x22a82d('0x7')]],'as':_0x126a22['as'],'attributes':_0x126a22[_0x22a82d('0x8')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x5d1be9){const _0x205d8e=_0x4f6ef6;logger['info'](_0x205d8e('0x10'),_0x1ddfa0),logger['debug']('ShowDeskAccount',_0x1ddfa0,JSON[_0x205d8e('0xa')](_0x5d1be9)),_0x37ee2e(_0x5d1be9);})[_0x4f6ef6('0x2')](function(_0x2f5791){const _0x42b27d=_0x4f6ef6;logger[_0x42b27d('0x12')]('ShowDeskAccount',_0x2f5791['message'],_0x1ddfa0),_0x401be5(_0x1a4acc[_0x42b27d('0x12')](0x1f4,_0x2f5791[_0x42b27d('0x0')]));});});}; \ No newline at end of file +const a275_0x56b4=['message','../../config/logger','stringify','lodash','DeskAccount','attributes','include','raw','rpc','options','info','GetDeskAccount','debug','../../mysqldb','map','limit','ShowDeskAccount','catch','findAll','where','then','model','findOne','error'];(function(_0x1f4ae5,_0x3437f4){const _0x56b4c9=function(_0xd91b13){while(--_0xd91b13){_0x1f4ae5['push'](_0x1f4ae5['shift']());}};_0x56b4c9(++_0x3437f4);}(a275_0x56b4,0x1d3));const a275_0xd91b=function(_0x1f4ae5,_0x3437f4){_0x1f4ae5=_0x1f4ae5-0x84;let _0x56b4c9=a275_0x56b4[_0x1f4ae5];return _0x56b4c9;};const a275_0x3ec91e=a275_0xd91b;'use strict';const _=require(a275_0x3ec91e(0x94)),db=require(a275_0x3ec91e(0x86))['db'],logger=require(a275_0x3ec91e(0x92))(a275_0x3ec91e(0x99));exports[a275_0x3ec91e(0x84)]=function(_0x230ef6){const _0x122ac2=this;return new Promise(function(_0x1fcfd5,_0x42cf0b){const _0x346072=a275_0xd91b;return db[_0x346072(0x95)][_0x346072(0x8b)]({'raw':_0x230ef6[_0x346072(0x9a)]?_0x230ef6[_0x346072(0x9a)]['raw']===undefined?!![]:![]:!![],'where':_0x230ef6[_0x346072(0x9a)]?_0x230ef6[_0x346072(0x9a)][_0x346072(0x8c)]||null:null,'attributes':_0x230ef6[_0x346072(0x9a)]?_0x230ef6['options'][_0x346072(0x96)]||null:null,'limit':_0x230ef6[_0x346072(0x9a)]?_0x230ef6['options'][_0x346072(0x88)]||null:null,'include':_0x230ef6[_0x346072(0x9a)]?_0x230ef6['options'][_0x346072(0x97)]?_[_0x346072(0x87)](_0x230ef6[_0x346072(0x9a)]['include'],function(_0x2e0028){const _0x3845b4=_0x346072;return{'model':db[_0x2e0028[_0x3845b4(0x8e)]],'as':_0x2e0028['as'],'attributes':_0x2e0028['attributes'],'include':_0x2e0028[_0x3845b4(0x97)]?_['map'](_0x2e0028[_0x3845b4(0x97)],function(_0x5d3503){const _0x1d2c9d=_0x3845b4;return{'model':db[_0x5d3503[_0x1d2c9d(0x8e)]],'as':_0x5d3503['as'],'attributes':_0x5d3503[_0x1d2c9d(0x96)],'include':_0x5d3503[_0x1d2c9d(0x97)]?_[_0x1d2c9d(0x87)](_0x5d3503[_0x1d2c9d(0x97)],function(_0x112f17){const _0x76bc80=_0x1d2c9d;return{'model':db[_0x112f17[_0x76bc80(0x8e)]],'as':_0x112f17['as'],'attributes':_0x112f17[_0x76bc80(0x96)]};}):[]};}):[]};}):[]:[]})['then'](function(_0xf05fa0){const _0x436b71=_0x346072;logger['info']('GetDeskAccount',_0x230ef6),logger['debug'](_0x436b71(0x84),_0x230ef6,JSON[_0x436b71(0x93)](_0xf05fa0)),_0x1fcfd5(_0xf05fa0);})[_0x346072(0x8a)](function(_0x3031e8){const _0x5834b1=_0x346072;logger['error']('GetDeskAccount',_0x3031e8[_0x5834b1(0x91)],_0x230ef6),_0x42cf0b(_0x122ac2['error'](0x1f4,_0x3031e8[_0x5834b1(0x91)]));});});},exports['ShowDeskAccount']=function(_0x1784e3){const _0x1f330a=this;return new Promise(function(_0x1303ed,_0xfe9282){const _0x3e6513=a275_0xd91b;return db[_0x3e6513(0x95)][_0x3e6513(0x8f)]({'raw':_0x1784e3[_0x3e6513(0x9a)]?_0x1784e3[_0x3e6513(0x9a)][_0x3e6513(0x98)]===undefined?!![]:![]:!![],'where':_0x1784e3[_0x3e6513(0x9a)]?_0x1784e3[_0x3e6513(0x9a)][_0x3e6513(0x8c)]||null:null,'attributes':_0x1784e3['options']?_0x1784e3['options']['attributes']||null:null,'include':_0x1784e3['options']?_0x1784e3['options'][_0x3e6513(0x97)]?_['map'](_0x1784e3[_0x3e6513(0x9a)]['include'],function(_0x494553){const _0x4ca1f0=_0x3e6513;return{'model':db[_0x494553['model']],'as':_0x494553['as'],'attributes':_0x494553[_0x4ca1f0(0x96)],'include':_0x494553['include']?_[_0x4ca1f0(0x87)](_0x494553['include'],function(_0x5c7754){const _0x4c9b5d=_0x4ca1f0;return{'model':db[_0x5c7754[_0x4c9b5d(0x8e)]],'as':_0x5c7754['as'],'attributes':_0x5c7754[_0x4c9b5d(0x96)],'include':_0x5c7754[_0x4c9b5d(0x97)]?_[_0x4c9b5d(0x87)](_0x5c7754[_0x4c9b5d(0x97)],function(_0xb34033){const _0x4a0ae2=_0x4c9b5d;return{'model':db[_0xb34033[_0x4a0ae2(0x8e)]],'as':_0xb34033['as'],'attributes':_0xb34033[_0x4a0ae2(0x96)]};}):[]};}):[]};}):[]:[]})[_0x3e6513(0x8d)](function(_0x184a1a){const _0x3d1a19=_0x3e6513;logger[_0x3d1a19(0x9b)](_0x3d1a19(0x89),_0x1784e3),logger[_0x3d1a19(0x85)](_0x3d1a19(0x89),_0x1784e3,JSON[_0x3d1a19(0x93)](_0x184a1a)),_0x1303ed(_0x184a1a);})[_0x3e6513(0x8a)](function(_0x5410a5){const _0x405131=_0x3e6513;logger[_0x405131(0x90)](_0x405131(0x89),_0x5410a5[_0x405131(0x91)],_0x1784e3),_0xfe9282(_0x1f330a[_0x405131(0x90)](0x1f4,_0x5410a5[_0x405131(0x91)]));});});}; \ No newline at end of file diff --git a/server/api/intDeskConfiguration/index.js b/server/api/intDeskConfiguration/index.js index dafce14..2d3e2c1 100644 --- a/server/api/intDeskConfiguration/index.js +++ b/server/api/intDeskConfiguration/index.js @@ -1 +1 @@ -const a232_0x34bc=['destroy','/:id/tags','create','getFields','getDescriptions','get','/:id','/:id/descriptions','post','isAuthenticated','exports','put','/:id/subjects','../../components/auth/service','delete','express','Router','./intDeskConfiguration.controller','index'];(function(_0x2f495c,_0x34bcaf){const _0x20b81e=function(_0x27589e){while(--_0x27589e){_0x2f495c['push'](_0x2f495c['shift']());}};_0x20b81e(++_0x34bcaf);}(a232_0x34bc,0x138));const a232_0x20b8=function(_0x2f495c,_0x34bcaf){_0x2f495c=_0x2f495c-0x0;let _0x20b81e=a232_0x34bc[_0x2f495c];return _0x20b81e;};const _0x576d60=a232_0x20b8;'use strict';const express=require(_0x576d60('0x7')),router=express[_0x576d60('0x8')](),auth=require(_0x576d60('0x5')),controller=require(_0x576d60('0x9'));router[_0x576d60('0x10')]('/',auth['isAuthenticated'](),controller[_0x576d60('0xa')]),router[_0x576d60('0x10')](_0x576d60('0x11'),auth[_0x576d60('0x1')](),controller['show']),router[_0x576d60('0x10')]('/:id/fields',auth[_0x576d60('0x1')](),controller[_0x576d60('0xe')]),router[_0x576d60('0x10')](_0x576d60('0x4'),auth['isAuthenticated'](),controller['getSubjects']),router[_0x576d60('0x10')](_0x576d60('0x12'),auth[_0x576d60('0x1')](),controller[_0x576d60('0xf')]),router[_0x576d60('0x10')](_0x576d60('0xc'),auth[_0x576d60('0x1')](),controller['getTags']),router[_0x576d60('0x0')]('/',auth['isAuthenticated'](),controller[_0x576d60('0xd')]),router['post'](_0x576d60('0xc'),auth[_0x576d60('0x1')](),controller['setTags']),router[_0x576d60('0x3')](_0x576d60('0x11'),auth[_0x576d60('0x1')](),controller['update']),router[_0x576d60('0x6')](_0x576d60('0x11'),auth[_0x576d60('0x1')](),controller[_0x576d60('0xb')]),module[_0x576d60('0x2')]=router; \ No newline at end of file +const a276_0x88d9=['put','/:id/fields','get','post','exports','Router','/:id/descriptions','getSubjects','show','getDescriptions','/:id','index','delete','create','/:id/tags','../../components/auth/service','isAuthenticated','./intDeskConfiguration.controller','getFields','express','destroy','update'];(function(_0x55e7a9,_0xd73673){const _0x88d992=function(_0x47c632){while(--_0x47c632){_0x55e7a9['push'](_0x55e7a9['shift']());}};_0x88d992(++_0xd73673);}(a276_0x88d9,0x156));const a276_0x47c6=function(_0x55e7a9,_0xd73673){_0x55e7a9=_0x55e7a9-0xa0;let _0x88d992=a276_0x88d9[_0x55e7a9];return _0x88d992;};const a276_0x57370b=a276_0x47c6;'use strict';const express=require(a276_0x57370b(0xa7)),router=express[a276_0x57370b(0xaf)](),auth=require(a276_0x57370b(0xa3)),controller=require(a276_0x57370b(0xa5));router[a276_0x57370b(0xac)]('/',auth['isAuthenticated'](),controller[a276_0x57370b(0xb5)]),router['get'](a276_0x57370b(0xb4),auth[a276_0x57370b(0xa4)](),controller[a276_0x57370b(0xb2)]),router[a276_0x57370b(0xac)](a276_0x57370b(0xab),auth[a276_0x57370b(0xa4)](),controller[a276_0x57370b(0xa6)]),router[a276_0x57370b(0xac)]('/:id/subjects',auth[a276_0x57370b(0xa4)](),controller[a276_0x57370b(0xb1)]),router[a276_0x57370b(0xac)](a276_0x57370b(0xb0),auth[a276_0x57370b(0xa4)](),controller[a276_0x57370b(0xb3)]),router['get'](a276_0x57370b(0xa2),auth[a276_0x57370b(0xa4)](),controller['getTags']),router[a276_0x57370b(0xad)]('/',auth[a276_0x57370b(0xa4)](),controller[a276_0x57370b(0xa1)]),router[a276_0x57370b(0xad)](a276_0x57370b(0xa2),auth['isAuthenticated'](),controller['setTags']),router[a276_0x57370b(0xaa)](a276_0x57370b(0xb4),auth[a276_0x57370b(0xa4)](),controller[a276_0x57370b(0xa9)]),router[a276_0x57370b(0xa0)](a276_0x57370b(0xb4),auth[a276_0x57370b(0xa4)](),controller[a276_0x57370b(0xa8)]),module[a276_0x57370b(0xae)]=router; \ No newline at end of file diff --git a/server/api/intDeskConfiguration/intDeskConfiguration.attributes.js b/server/api/intDeskConfiguration/intDeskConfiguration.attributes.js index eb68aaa..0f37f2e 100644 --- a/server/api/intDeskConfiguration/intDeskConfiguration.attributes.js +++ b/server/api/intDeskConfiguration/intDeskConfiguration.attributes.js @@ -1 +1 @@ -const a233_0x31a2=['sequelize','exports','STRING'];(function(_0x146939,_0x31a21b){const _0x4048e4=function(_0x11ea13){while(--_0x11ea13){_0x146939['push'](_0x146939['shift']());}};_0x4048e4(++_0x31a21b);}(a233_0x31a2,0x14c));const a233_0x4048=function(_0x146939,_0x31a21b){_0x146939=_0x146939-0x0;let _0x4048e4=a233_0x31a2[_0x146939];return _0x4048e4;};const _0x42644a=a233_0x4048;'use strict';const Sequelize=require(_0x42644a('0x1'));module[_0x42644a('0x2')]={'name':{'type':Sequelize[_0x42644a('0x0')]},'description':{'type':Sequelize[_0x42644a('0x0')]}}; \ No newline at end of file +const a277_0x533c=['sequelize','STRING','attributes'];(function(_0x18c1fe,_0x123b62){const _0x533c66=function(_0x362bcd){while(--_0x362bcd){_0x18c1fe['push'](_0x18c1fe['shift']());}};_0x533c66(++_0x123b62);}(a277_0x533c,0x1b1));const a277_0x362b=function(_0x18c1fe,_0x123b62){_0x18c1fe=_0x18c1fe-0x181;let _0x533c66=a277_0x533c[_0x18c1fe];return _0x533c66;};const a277_0x3add36=a277_0x362b;'use strict';const {DataTypes}=require(a277_0x3add36(0x183)),attributes={'name':{'type':DataTypes[a277_0x3add36(0x181)]},'description':{'type':DataTypes[a277_0x3add36(0x181)]}};module['exports'][a277_0x3add36(0x182)]=attributes; \ No newline at end of file diff --git a/server/api/intDeskConfiguration/intDeskConfiguration.controller.js b/server/api/intDeskConfiguration/intDeskConfiguration.controller.js index d97f28a..7e09915 100644 --- a/server/api/intDeskConfiguration/intDeskConfiguration.controller.js +++ b/server/api/intDeskConfiguration/intDeskConfiguration.controller.js @@ -1 +1 @@ -const a234_0x4f6a=['error','where','order','stack','VIRTUAL','attributes','getFields','rawAttributes','getSubjects','merge','DeskConfiguration','catch','filter','../../components/parsers/qs','pick','body','getDescriptions','index','nolimit','map','Content-Range','getTags','../../mysqldb','ids','params','fieldName','update','model','sort','json','fields','name','destroy','length','count','filters','findOne','status','end','sequelize','offset','like','lodash','intersection','undefined','create','../../config/logger','includeAll','setTags','type','then','limit','keys','Tag','set','options','rows','show','key','DeskField','query','sendStatus','include'];(function(_0x111571,_0x4f6af6){const _0x198a86=function(_0x19818e){while(--_0x19818e){_0x111571['push'](_0x111571['shift']());}};_0x198a86(++_0x4f6af6);}(a234_0x4f6a,0x15e));const a234_0x198a=function(_0x111571,_0x4f6af6){_0x111571=_0x111571-0x0;let _0x198a86=a234_0x4f6a[_0x111571];return _0x198a86;};const _0xbee69c=a234_0x198a;'use strict';const _=require(_0xbee69c('0x7')),qs=require(_0xbee69c('0x29')),logger=require(_0xbee69c('0xb'))('api'),db=require(_0xbee69c('0x32'))['db'],{Op}=require(_0xbee69c('0x4'));function respondWithResult(_0x19818e,_0x59dcc7){return _0x59dcc7=_0x59dcc7||0xc8,function(_0xaf61c6){const _0x24fe4c=a234_0x198a;if(_0xaf61c6)return _0x19818e['status'](_0x59dcc7)[_0x24fe4c('0x39')](_0xaf61c6);};}function respondWithFilteredResult(_0x5890cc,_0x50afae){return function(_0x58fcaf){const _0x5ea146=a234_0x198a;if(_0x58fcaf){const _0x3c2d5a=_0x58fcaf[_0x5ea146('0x3e')],_0x495566=_0x50afae[_0x5ea146('0x5')];let _0x3742c5=_0x50afae['offset']+_0x50afae['limit'],_0x595691;return _0x3742c5>=_0x3c2d5a?(_0x3742c5=_0x3c2d5a,_0x595691=0xc8):_0x595691=0xce,_0x5890cc[_0x5ea146('0x2')](_0x595691),_0x5890cc[_0x5ea146('0x13')](_0x5ea146('0x30'),_0x495566+'-'+_0x3742c5+'/'+_0x3c2d5a)['json'](_0x58fcaf);}return null;};}function saveUpdates(_0x54ba76){return function(_0x5c9963){const _0x32375b=a234_0x198a;if(_0x5c9963)return _0x5c9963['update'](_0x54ba76)[_0x32375b('0xf')](function(_0x5d746c){return _0x5d746c;});return null;};}function removeEntity(_0x451a16){return function(_0x40c33f){const _0x5b28ed=a234_0x198a;if(_0x40c33f)return _0x40c33f[_0x5b28ed('0x3c')]()[_0x5b28ed('0xf')](function(){const _0x26f22c=_0x5b28ed;_0x451a16[_0x26f22c('0x2')](0xcc)[_0x26f22c('0x3')]();});};}function handleEntityNotFound(_0x5cc7bd){return function(_0x37174e){const _0xb8f02c=a234_0x198a;return!_0x37174e&&_0x5cc7bd[_0xb8f02c('0x1a')](0x194),_0x37174e;};}function handleError(_0x40dfe7,_0x563038){return _0x563038=_0x563038||0x1f4,function(_0x51f565){const _0x5dbd14=a234_0x198a;logger[_0x5dbd14('0x1c')](_0x51f565[_0x5dbd14('0x1f')]),_0x51f565[_0x5dbd14('0x3b')]&&delete _0x51f565[_0x5dbd14('0x3b')],_0x40dfe7[_0x5dbd14('0x2')](_0x563038)['send'](_0x51f565);};}exports[_0xbee69c('0x2d')]=function(_0xf00ef3,_0xca326){const _0x2b2b0d=_0xbee69c;let _0x132b13={};const _0x321862={},_0x549dda={'count':0x0,'rows':[]},_0xa40e3c=_[_0x2b2b0d('0x2f')](db[_0x2b2b0d('0x26')][_0x2b2b0d('0x23')],function(_0x4b17e1){const _0x361e57=_0x2b2b0d;return{'name':_0x4b17e1[_0x361e57('0x35')],'type':_0x4b17e1[_0x361e57('0xe')][_0x361e57('0x17')]};});_0x321862['model']=_[_0x2b2b0d('0x2f')](_0xa40e3c,_0x2b2b0d('0x3b')),_0x321862['query']=_['keys'](_0xf00ef3[_0x2b2b0d('0x19')]),_0x321862[_0x2b2b0d('0x0')]=_['intersection'](_0x321862[_0x2b2b0d('0x37')],_0x321862[_0x2b2b0d('0x19')]),_0x132b13[_0x2b2b0d('0x21')]=_[_0x2b2b0d('0x8')](_0x321862[_0x2b2b0d('0x37')],qs['fields'](_0xf00ef3['query'][_0x2b2b0d('0x3a')])),_0x132b13[_0x2b2b0d('0x21')]=_0x132b13['attributes'][_0x2b2b0d('0x3d')]?_0x132b13[_0x2b2b0d('0x21')]:_0x321862[_0x2b2b0d('0x37')];typeof _0xf00ef3[_0x2b2b0d('0x19')][_0x2b2b0d('0x2e')]===_0x2b2b0d('0x9')&&(_0x132b13[_0x2b2b0d('0x10')]=qs[_0x2b2b0d('0x10')](_0xf00ef3[_0x2b2b0d('0x19')]['limit']),_0x132b13[_0x2b2b0d('0x5')]=qs[_0x2b2b0d('0x5')](_0xf00ef3['query'][_0x2b2b0d('0x5')]));_0x132b13['order']=qs[_0x2b2b0d('0x38')](_0xf00ef3[_0x2b2b0d('0x19')][_0x2b2b0d('0x38')]),_0x132b13[_0x2b2b0d('0x1d')]=qs[_0x2b2b0d('0x0')](_['pick'](_0xf00ef3[_0x2b2b0d('0x19')],_0x321862[_0x2b2b0d('0x0')]),_0xa40e3c);_0xf00ef3[_0x2b2b0d('0x19')][_0x2b2b0d('0x28')]&&(_0x132b13[_0x2b2b0d('0x1d')]=_['merge'](_0x132b13['where'],{[Op['or']]:_['map'](_0xa40e3c,function(_0x2159d2){const _0x24c3f2=_0x2b2b0d;if(_0x2159d2[_0x24c3f2('0xe')]!==_0x24c3f2('0x20')){const _0x2a83ea={};return _0x2a83ea[_0x2159d2[_0x24c3f2('0x3b')]]={[Op['like']]:'%'+_0xf00ef3['query'][_0x24c3f2('0x28')]+'%'},_0x2a83ea;}})}));_0x132b13=_['merge']({},_0x132b13,_0xf00ef3['options']);const _0x333e9c={'where':_0x132b13['where']};return db[_0x2b2b0d('0x26')]['count'](_0x333e9c)['then'](function(_0x2e2baf){const _0x588d8e=_0x2b2b0d;return _0x549dda['count']=_0x2e2baf,_0xf00ef3['query'][_0x588d8e('0xc')]&&(_0x132b13['include']=[{'all':!![]}]),db[_0x588d8e('0x26')]['findAll'](_0x132b13);})[_0x2b2b0d('0xf')](function(_0x446483){const _0x258de9=_0x2b2b0d;return _0x549dda[_0x258de9('0x15')]=_0x446483,_0x549dda;})['then'](respondWithFilteredResult(_0xca326,_0x132b13))[_0x2b2b0d('0x27')](handleError(_0xca326,null));},exports[_0xbee69c('0x16')]=function(_0x349a20,_0x3c01c6){const _0xefd231=_0xbee69c;let _0x401b5d={'raw':![],'where':{'id':_0x349a20['params']['id']}};const _0x152659={};return _0x152659[_0xefd231('0x37')]=_[_0xefd231('0x11')](db[_0xefd231('0x26')][_0xefd231('0x23')]),_0x152659[_0xefd231('0x19')]=_[_0xefd231('0x11')](_0x349a20[_0xefd231('0x19')]),_0x152659[_0xefd231('0x0')]=_[_0xefd231('0x8')](_0x152659['model'],_0x152659[_0xefd231('0x19')]),_0x401b5d[_0xefd231('0x21')]=_[_0xefd231('0x8')](_0x152659[_0xefd231('0x37')],qs[_0xefd231('0x3a')](_0x349a20[_0xefd231('0x19')][_0xefd231('0x3a')])),_0x401b5d[_0xefd231('0x21')]=_0x401b5d['attributes'][_0xefd231('0x3d')]?_0x401b5d[_0xefd231('0x21')]:_0x152659[_0xefd231('0x37')],_0x349a20[_0xefd231('0x19')][_0xefd231('0xc')]&&(_0x401b5d[_0xefd231('0x1b')]=[{'all':!![]}]),_0x401b5d=_[_0xefd231('0x25')]({},_0x401b5d,_0x349a20['options']),db[_0xefd231('0x26')]['findOne'](_0x401b5d)[_0xefd231('0xf')](handleEntityNotFound(_0x3c01c6,null))[_0xefd231('0xf')](respondWithResult(_0x3c01c6,null))[_0xefd231('0x27')](handleError(_0x3c01c6,null));},exports[_0xbee69c('0xa')]=function(_0x57677b,_0x57914b){const _0x22ed6a=_0xbee69c;return db[_0x22ed6a('0x26')][_0x22ed6a('0xa')](_0x57677b[_0x22ed6a('0x2b')],{})['then'](respondWithResult(_0x57914b,0xc9))[_0x22ed6a('0x27')](handleError(_0x57914b,null));},exports[_0xbee69c('0x36')]=function(_0x505d76,_0x8dd593){const _0x392631=_0xbee69c;return _0x505d76[_0x392631('0x2b')]['id']&&delete _0x505d76[_0x392631('0x2b')]['id'],db[_0x392631('0x26')][_0x392631('0x1')]({'where':{'id':_0x505d76[_0x392631('0x34')]['id']}})[_0x392631('0xf')](handleEntityNotFound(_0x8dd593,null))['then'](saveUpdates(_0x505d76['body'],null))[_0x392631('0xf')](respondWithResult(_0x8dd593,null))['catch'](handleError(_0x8dd593,null));},exports[_0xbee69c('0x3c')]=function(_0x451ce0,_0xbf6a7a){const _0x5eb3e6=_0xbee69c;return db[_0x5eb3e6('0x26')][_0x5eb3e6('0x1')]({'where':{'id':_0x451ce0[_0x5eb3e6('0x34')]['id']}})['then'](handleEntityNotFound(_0xbf6a7a,null))['then'](removeEntity(_0xbf6a7a,null))[_0x5eb3e6('0x27')](handleError(_0xbf6a7a,null));},exports['getFields']=function(_0x7060d5,_0x4498ae){const _0x3e0d0f=_0xbee69c;let _0x509d8b={};const _0x41bd5f={};let _0x4855f4,_0x4c6f59;return db['DeskConfiguration']['findOne']({'where':{'id':_0x7060d5['params']['id']}})[_0x3e0d0f('0xf')](handleEntityNotFound(_0x4498ae,null))['then'](function(_0xd3cd07){const _0x251343=_0x3e0d0f;if(_0xd3cd07)return _0x4855f4=_0xd3cd07,_0x41bd5f[_0x251343('0x37')]=_[_0x251343('0x11')](db[_0x251343('0x18')][_0x251343('0x23')]),_0x41bd5f['query']=_[_0x251343('0x11')](_0x7060d5[_0x251343('0x19')]),_0x41bd5f[_0x251343('0x0')]=_[_0x251343('0x8')](_0x41bd5f[_0x251343('0x37')],_0x41bd5f[_0x251343('0x19')]),_0x509d8b[_0x251343('0x21')]=_[_0x251343('0x8')](_0x41bd5f['model'],qs[_0x251343('0x3a')](_0x7060d5[_0x251343('0x19')]['fields'])),_0x509d8b[_0x251343('0x21')]=_0x509d8b[_0x251343('0x21')][_0x251343('0x3d')]?_0x509d8b[_0x251343('0x21')]:_0x41bd5f[_0x251343('0x37')],_0x509d8b[_0x251343('0x1e')]=qs['sort'](_0x7060d5[_0x251343('0x19')]['sort']),_0x509d8b[_0x251343('0x1d')]=qs[_0x251343('0x0')](_[_0x251343('0x2a')](_0x7060d5['query'],_0x41bd5f[_0x251343('0x0')])),_0x7060d5[_0x251343('0x19')][_0x251343('0x28')]&&(_0x509d8b[_0x251343('0x1d')]=_['merge'](_0x509d8b[_0x251343('0x1d')],{[Op['or']]:_[_0x251343('0x2f')](_0x509d8b[_0x251343('0x21')],function(_0x1ae8e7){const _0x163578=_0x251343,_0x32e0a0={};return _0x32e0a0[_0x1ae8e7]={[Op['like']]:'%'+_0x7060d5[_0x163578('0x19')][_0x163578('0x28')]+'%'},_0x32e0a0;})})),_0x509d8b=_[_0x251343('0x25')]({},_0x509d8b,_0x7060d5['options']),_0x4855f4[_0x251343('0x22')](_0x509d8b);})[_0x3e0d0f('0xf')](function(_0x24b106){const _0x524833=_0x3e0d0f;if(_0x24b106)return _0x4c6f59=_0x24b106[_0x524833('0x3d')],typeof _0x7060d5[_0x524833('0x19')][_0x524833('0x2e')]===_0x524833('0x9')&&(_0x509d8b[_0x524833('0x10')]=qs[_0x524833('0x10')](_0x7060d5[_0x524833('0x19')]['limit']),_0x509d8b[_0x524833('0x5')]=qs[_0x524833('0x5')](_0x7060d5['query']['offset'])),_0x4855f4[_0x524833('0x22')](_0x509d8b);})[_0x3e0d0f('0xf')](function(_0x27a0d0){if(_0x27a0d0)return _0x27a0d0?{'count':_0x4c6f59,'rows':_0x27a0d0}:null;})[_0x3e0d0f('0xf')](respondWithResult(_0x4498ae,null))['catch'](handleError(_0x4498ae,null));},exports[_0xbee69c('0x24')]=function(_0x502c1a,_0x5efe24){const _0x3774db=_0xbee69c;let _0x802a07={};const _0x5d546b={};let _0x1028a4,_0x4c763a;return db[_0x3774db('0x26')][_0x3774db('0x1')]({'where':{'id':_0x502c1a[_0x3774db('0x34')]['id']}})['then'](handleEntityNotFound(_0x5efe24,null))[_0x3774db('0xf')](function(_0x618382){const _0x5ee962=_0x3774db;if(_0x618382)return _0x1028a4=_0x618382,_0x5d546b[_0x5ee962('0x37')]=_['keys'](db[_0x5ee962('0x18')][_0x5ee962('0x23')]),_0x5d546b[_0x5ee962('0x19')]=_[_0x5ee962('0x11')](_0x502c1a['query']),_0x5d546b['filters']=_[_0x5ee962('0x8')](_0x5d546b['model'],_0x5d546b[_0x5ee962('0x19')]),_0x802a07[_0x5ee962('0x21')]=_[_0x5ee962('0x8')](_0x5d546b[_0x5ee962('0x37')],qs[_0x5ee962('0x3a')](_0x502c1a[_0x5ee962('0x19')][_0x5ee962('0x3a')])),_0x802a07['attributes']=_0x802a07[_0x5ee962('0x21')][_0x5ee962('0x3d')]?_0x802a07[_0x5ee962('0x21')]:_0x5d546b[_0x5ee962('0x37')],_0x802a07[_0x5ee962('0x1e')]=qs[_0x5ee962('0x38')](_0x502c1a[_0x5ee962('0x19')][_0x5ee962('0x38')]),_0x802a07[_0x5ee962('0x1d')]=qs[_0x5ee962('0x0')](_[_0x5ee962('0x2a')](_0x502c1a[_0x5ee962('0x19')],_0x5d546b[_0x5ee962('0x0')])),_0x502c1a[_0x5ee962('0x19')][_0x5ee962('0x28')]&&(_0x802a07[_0x5ee962('0x1d')]=_[_0x5ee962('0x25')](_0x802a07[_0x5ee962('0x1d')],{[Op['or']]:_[_0x5ee962('0x2f')](_0x802a07[_0x5ee962('0x21')],function(_0x1e0eaf){const _0x5e8a73=_0x5ee962,_0x3db1ed={};return _0x3db1ed[_0x1e0eaf]={[Op[_0x5e8a73('0x6')]]:'%'+_0x502c1a[_0x5e8a73('0x19')]['filter']+'%'},_0x3db1ed;})})),_0x802a07=_[_0x5ee962('0x25')]({},_0x802a07,_0x502c1a[_0x5ee962('0x14')]),_0x1028a4[_0x5ee962('0x24')](_0x802a07);})[_0x3774db('0xf')](function(_0x470771){const _0x5755c5=_0x3774db;if(_0x470771)return _0x4c763a=_0x470771[_0x5755c5('0x3d')],typeof _0x502c1a[_0x5755c5('0x19')][_0x5755c5('0x2e')]===_0x5755c5('0x9')&&(_0x802a07[_0x5755c5('0x10')]=qs[_0x5755c5('0x10')](_0x502c1a[_0x5755c5('0x19')][_0x5755c5('0x10')]),_0x802a07[_0x5755c5('0x5')]=qs[_0x5755c5('0x5')](_0x502c1a[_0x5755c5('0x19')][_0x5755c5('0x5')])),_0x1028a4[_0x5755c5('0x24')](_0x802a07);})[_0x3774db('0xf')](function(_0x514005){if(_0x514005)return _0x514005?{'count':_0x4c763a,'rows':_0x514005}:null;})[_0x3774db('0xf')](respondWithResult(_0x5efe24,null))['catch'](handleError(_0x5efe24,null));},exports['getDescriptions']=function(_0x5c955a,_0x2a0cbe){const _0x3ef4e0=_0xbee69c;let _0x538895={};const _0x282f15={};let _0x1bc497,_0x414471;return db[_0x3ef4e0('0x26')][_0x3ef4e0('0x1')]({'where':{'id':_0x5c955a[_0x3ef4e0('0x34')]['id']}})[_0x3ef4e0('0xf')](handleEntityNotFound(_0x2a0cbe,null))['then'](function(_0xb4e95f){const _0x37e543=_0x3ef4e0;if(_0xb4e95f)return _0x1bc497=_0xb4e95f,_0x282f15[_0x37e543('0x37')]=_[_0x37e543('0x11')](db[_0x37e543('0x18')]['rawAttributes']),_0x282f15[_0x37e543('0x19')]=_[_0x37e543('0x11')](_0x5c955a[_0x37e543('0x19')]),_0x282f15[_0x37e543('0x0')]=_['intersection'](_0x282f15[_0x37e543('0x37')],_0x282f15[_0x37e543('0x19')]),_0x538895[_0x37e543('0x21')]=_[_0x37e543('0x8')](_0x282f15[_0x37e543('0x37')],qs[_0x37e543('0x3a')](_0x5c955a[_0x37e543('0x19')]['fields'])),_0x538895[_0x37e543('0x21')]=_0x538895[_0x37e543('0x21')][_0x37e543('0x3d')]?_0x538895[_0x37e543('0x21')]:_0x282f15[_0x37e543('0x37')],_0x538895[_0x37e543('0x1e')]=qs[_0x37e543('0x38')](_0x5c955a['query']['sort']),_0x538895['where']=qs[_0x37e543('0x0')](_[_0x37e543('0x2a')](_0x5c955a[_0x37e543('0x19')],_0x282f15[_0x37e543('0x0')])),_0x5c955a[_0x37e543('0x19')][_0x37e543('0x28')]&&(_0x538895[_0x37e543('0x1d')]=_[_0x37e543('0x25')](_0x538895[_0x37e543('0x1d')],{[Op['or']]:_[_0x37e543('0x2f')](_0x538895[_0x37e543('0x21')],function(_0x471244){const _0x4915ea=_0x37e543,_0x26d607={};return _0x26d607[_0x471244]={[Op['like']]:'%'+_0x5c955a[_0x4915ea('0x19')][_0x4915ea('0x28')]+'%'},_0x26d607;})})),_0x538895=_[_0x37e543('0x25')]({},_0x538895,_0x5c955a[_0x37e543('0x14')]),_0x1bc497[_0x37e543('0x2c')](_0x538895);})[_0x3ef4e0('0xf')](function(_0x974f4c){const _0x371fd9=_0x3ef4e0;if(_0x974f4c)return _0x414471=_0x974f4c['length'],typeof _0x5c955a['query'][_0x371fd9('0x2e')]==='undefined'&&(_0x538895[_0x371fd9('0x10')]=qs[_0x371fd9('0x10')](_0x5c955a[_0x371fd9('0x19')]['limit']),_0x538895[_0x371fd9('0x5')]=qs[_0x371fd9('0x5')](_0x5c955a[_0x371fd9('0x19')][_0x371fd9('0x5')])),_0x1bc497[_0x371fd9('0x2c')](_0x538895);})[_0x3ef4e0('0xf')](function(_0x406582){if(_0x406582)return _0x406582?{'count':_0x414471,'rows':_0x406582}:null;})[_0x3ef4e0('0xf')](respondWithResult(_0x2a0cbe,null))[_0x3ef4e0('0x27')](handleError(_0x2a0cbe,null));},exports[_0xbee69c('0x31')]=function(_0x5acb19,_0x31a055){const _0x1c36ff=_0xbee69c;let _0x2a8853={};const _0x19b63e={};let _0x3b578b,_0x4101ca;return db[_0x1c36ff('0x26')][_0x1c36ff('0x1')]({'where':{'id':_0x5acb19['params']['id']}})[_0x1c36ff('0xf')](handleEntityNotFound(_0x31a055,null))[_0x1c36ff('0xf')](function(_0x2c255e){const _0x5b66b1=_0x1c36ff;if(_0x2c255e)return _0x3b578b=_0x2c255e,_0x19b63e[_0x5b66b1('0x37')]=_[_0x5b66b1('0x11')](db[_0x5b66b1('0x12')][_0x5b66b1('0x23')]),_0x19b63e[_0x5b66b1('0x19')]=_[_0x5b66b1('0x11')](_0x5acb19[_0x5b66b1('0x19')]),_0x19b63e[_0x5b66b1('0x0')]=_[_0x5b66b1('0x8')](_0x19b63e[_0x5b66b1('0x37')],_0x19b63e[_0x5b66b1('0x19')]),_0x2a8853[_0x5b66b1('0x21')]=_['intersection'](_0x19b63e[_0x5b66b1('0x37')],qs[_0x5b66b1('0x3a')](_0x5acb19[_0x5b66b1('0x19')][_0x5b66b1('0x3a')])),_0x2a8853['attributes']=_0x2a8853[_0x5b66b1('0x21')]['length']?_0x2a8853[_0x5b66b1('0x21')]:_0x19b63e['model'],_0x2a8853[_0x5b66b1('0x1e')]=qs[_0x5b66b1('0x38')](_0x5acb19[_0x5b66b1('0x19')][_0x5b66b1('0x38')]),_0x2a8853[_0x5b66b1('0x1d')]=qs[_0x5b66b1('0x0')](_[_0x5b66b1('0x2a')](_0x5acb19[_0x5b66b1('0x19')],_0x19b63e[_0x5b66b1('0x0')])),_0x5acb19[_0x5b66b1('0x19')][_0x5b66b1('0x28')]&&(_0x2a8853[_0x5b66b1('0x1d')]=_[_0x5b66b1('0x25')](_0x2a8853[_0x5b66b1('0x1d')],{[Op['or']]:_[_0x5b66b1('0x2f')](_0x2a8853[_0x5b66b1('0x21')],function(_0x3d1b0d){const _0x523c83=_0x5b66b1,_0x3a0dff={};return _0x3a0dff[_0x3d1b0d]={[Op[_0x523c83('0x6')]]:'%'+_0x5acb19[_0x523c83('0x19')][_0x523c83('0x28')]+'%'},_0x3a0dff;})})),_0x2a8853=_[_0x5b66b1('0x25')]({},_0x2a8853,_0x5acb19[_0x5b66b1('0x14')]),_0x3b578b['getTags'](_0x2a8853);})[_0x1c36ff('0xf')](function(_0x498c5f){const _0x54e2b1=_0x1c36ff;if(_0x498c5f)return _0x4101ca=_0x498c5f[_0x54e2b1('0x3d')],typeof _0x5acb19[_0x54e2b1('0x19')]['nolimit']===_0x54e2b1('0x9')&&(_0x2a8853['limit']=qs['limit'](_0x5acb19[_0x54e2b1('0x19')][_0x54e2b1('0x10')]),_0x2a8853[_0x54e2b1('0x5')]=qs[_0x54e2b1('0x5')](_0x5acb19[_0x54e2b1('0x19')][_0x54e2b1('0x5')])),_0x3b578b[_0x54e2b1('0x31')](_0x2a8853);})[_0x1c36ff('0xf')](function(_0x765339){if(_0x765339)return _0x765339?{'count':_0x4101ca,'rows':_0x765339}:null;})[_0x1c36ff('0xf')](respondWithResult(_0x31a055,null))[_0x1c36ff('0x27')](handleError(_0x31a055,null));},exports[_0xbee69c('0xd')]=function(_0x11c2a2,_0x11a4b0){const _0x35f724=_0xbee69c;return _0x11c2a2[_0x35f724('0x2b')]['id']&&delete _0x11c2a2[_0x35f724('0x2b')]['id'],db[_0x35f724('0x26')][_0x35f724('0x1')]({'where':{'id':_0x11c2a2['params']['id']}})['then'](handleEntityNotFound(_0x11a4b0,null))['then'](function(_0xc22264){const _0x2c4896=_0x35f724;if(_0xc22264)return _0xc22264[_0x2c4896('0xd')](_0x11c2a2[_0x2c4896('0x2b')][_0x2c4896('0x33')]||[]);return null;})[_0x35f724('0xf')](respondWithResult(_0x11a4b0,null))[_0x35f724('0x27')](handleError(_0x11a4b0,null));}; \ No newline at end of file +const a278_0x1fec=['findOne','set','options','sendStatus','length','end','count','merge','index','rows','getTags','query','getFields','create','getSubjects','intersection','../../mysqldb','includeAll','undefined','pick','json','getDescriptions','status','fields','sort','like','map','params','../../config/logger','update','DeskField','VIRTUAL','destroy','DeskConfiguration','send','attributes','where','../../components/parsers/qs','keys','model','filter','setTags','catch','order','body','type','include','lodash','api','rawAttributes','findAll','show','stack','offset','Tag','key','filters','then','fieldName','sequelize','limit','nolimit','Content-Range','name'];(function(_0x203352,_0x209cda){const _0x1fec7a=function(_0x650f3c){while(--_0x650f3c){_0x203352['push'](_0x203352['shift']());}};_0x1fec7a(++_0x209cda);}(a278_0x1fec,0x91));const a278_0x650f=function(_0x203352,_0x209cda){_0x203352=_0x203352-0x146;let _0x1fec7a=a278_0x1fec[_0x203352];return _0x1fec7a;};const a278_0x12e5ff=a278_0x650f;'use strict';const _=require(a278_0x12e5ff(0x164)),qs=require(a278_0x12e5ff(0x15a)),logger=require(a278_0x12e5ff(0x151))(a278_0x12e5ff(0x165)),{db}=require(a278_0x12e5ff(0x185)),{Op}=require(a278_0x12e5ff(0x170));function respondWithResult(_0x44b71b,_0x5ecab0){return _0x5ecab0=_0x5ecab0||0xc8,function(_0x393b92){const _0xc554b7=a278_0x650f;if(_0x393b92)return _0x44b71b[_0xc554b7(0x14b)](_0x5ecab0)[_0xc554b7(0x149)](_0x393b92);};}function respondWithFilteredResult(_0x41e6fd,_0x538d4f){return function(_0x1af57e){const _0x163114=a278_0x650f;if(_0x1af57e){const _0x573e2b=_0x1af57e['count'],_0x375cb4=_0x538d4f[_0x163114(0x16a)];let _0x29d904=_0x538d4f[_0x163114(0x16a)]+_0x538d4f[_0x163114(0x171)],_0x14b7fa;return _0x29d904>=_0x573e2b?(_0x29d904=_0x573e2b,_0x14b7fa=0xc8):_0x14b7fa=0xce,_0x41e6fd[_0x163114(0x14b)](_0x14b7fa),_0x41e6fd[_0x163114(0x176)](_0x163114(0x173),_0x375cb4+'-'+_0x29d904+'/'+_0x573e2b)[_0x163114(0x149)](_0x1af57e);}return null;};}function saveUpdates(_0x155a64){return function(_0x119464){const _0x335514=a278_0x650f;if(_0x119464)return _0x119464['update'](_0x155a64)[_0x335514(0x16e)](function(_0x42108c){return _0x42108c;});return null;};}function removeEntity(_0x1f2468){return function(_0x3a2bce){const _0x2e1bb8=a278_0x650f;if(_0x3a2bce)return _0x3a2bce[_0x2e1bb8(0x155)]()[_0x2e1bb8(0x16e)](function(){const _0x2538f3=_0x2e1bb8;_0x1f2468[_0x2538f3(0x14b)](0xcc)[_0x2538f3(0x17a)]();});};}function handleEntityNotFound(_0x490963){return function(_0xf28cb){const _0x188633=a278_0x650f;return!_0xf28cb&&_0x490963[_0x188633(0x178)](0x194),_0xf28cb;};}function handleError(_0x3b970b,_0x42a672){return _0x42a672=_0x42a672||0x1f4,function(_0x365f2c){const _0x128604=a278_0x650f;logger['error'](_0x365f2c[_0x128604(0x169)]),_0x365f2c['name']&&delete _0x365f2c[_0x128604(0x174)],_0x3b970b[_0x128604(0x14b)](_0x42a672)[_0x128604(0x157)](_0x365f2c);};}exports[a278_0x12e5ff(0x17d)]=function(_0x4160c8,_0x352454){const _0x3ec8ce=a278_0x12e5ff;let _0x36f05a={};const _0x34820a={},_0x4fbd36={'count':0x0,'rows':[]},_0x583b72=_[_0x3ec8ce(0x14f)](db['DeskConfiguration'][_0x3ec8ce(0x166)],function(_0x3efa20){const _0x2475d3=_0x3ec8ce;return{'name':_0x3efa20[_0x2475d3(0x16f)],'type':_0x3efa20[_0x2475d3(0x162)][_0x2475d3(0x16c)]};});_0x34820a[_0x3ec8ce(0x15c)]=_[_0x3ec8ce(0x14f)](_0x583b72,_0x3ec8ce(0x174)),_0x34820a[_0x3ec8ce(0x180)]=_['keys'](_0x4160c8[_0x3ec8ce(0x180)]),_0x34820a[_0x3ec8ce(0x16d)]=_[_0x3ec8ce(0x184)](_0x34820a[_0x3ec8ce(0x15c)],_0x34820a[_0x3ec8ce(0x180)]),_0x36f05a['attributes']=_['intersection'](_0x34820a[_0x3ec8ce(0x15c)],qs['fields'](_0x4160c8['query'][_0x3ec8ce(0x14c)])),_0x36f05a['attributes']=_0x36f05a[_0x3ec8ce(0x158)][_0x3ec8ce(0x179)]?_0x36f05a[_0x3ec8ce(0x158)]:_0x34820a[_0x3ec8ce(0x15c)];typeof _0x4160c8[_0x3ec8ce(0x180)][_0x3ec8ce(0x172)]===_0x3ec8ce(0x147)&&(_0x36f05a[_0x3ec8ce(0x171)]=qs[_0x3ec8ce(0x171)](_0x4160c8[_0x3ec8ce(0x180)][_0x3ec8ce(0x171)]),_0x36f05a['offset']=qs['offset'](_0x4160c8[_0x3ec8ce(0x180)]['offset']));_0x36f05a['order']=qs[_0x3ec8ce(0x14d)](_0x4160c8[_0x3ec8ce(0x180)][_0x3ec8ce(0x14d)]),_0x36f05a[_0x3ec8ce(0x159)]=qs[_0x3ec8ce(0x16d)](_['pick'](_0x4160c8['query'],_0x34820a[_0x3ec8ce(0x16d)]),_0x583b72);_0x4160c8[_0x3ec8ce(0x180)][_0x3ec8ce(0x15d)]&&(_0x36f05a[_0x3ec8ce(0x159)]=_['merge'](_0x36f05a[_0x3ec8ce(0x159)],{[Op['or']]:_['map'](_0x583b72,function(_0x12d229){const _0x3dd0bf=_0x3ec8ce;if(_0x12d229['type']!==_0x3dd0bf(0x154)){const _0x506f96={};return _0x506f96[_0x12d229['name']]={[Op[_0x3dd0bf(0x14e)]]:'%'+_0x4160c8['query'][_0x3dd0bf(0x15d)]+'%'},_0x506f96;}})}));_0x36f05a=_[_0x3ec8ce(0x17c)]({},_0x36f05a,_0x4160c8[_0x3ec8ce(0x177)]);const _0x25917a={'where':_0x36f05a[_0x3ec8ce(0x159)]};return db[_0x3ec8ce(0x156)][_0x3ec8ce(0x17b)](_0x25917a)[_0x3ec8ce(0x16e)](function(_0x25e43c){const _0x2493ee=_0x3ec8ce;return _0x4fbd36[_0x2493ee(0x17b)]=_0x25e43c,_0x4160c8['query']['includeAll']&&(_0x36f05a[_0x2493ee(0x163)]=[{'all':!![]}]),db[_0x2493ee(0x156)][_0x2493ee(0x167)](_0x36f05a);})[_0x3ec8ce(0x16e)](function(_0xf6cebb){const _0x3563af=_0x3ec8ce;return _0x4fbd36[_0x3563af(0x17e)]=_0xf6cebb,_0x4fbd36;})[_0x3ec8ce(0x16e)](respondWithFilteredResult(_0x352454,_0x36f05a))[_0x3ec8ce(0x15f)](handleError(_0x352454,null));},exports[a278_0x12e5ff(0x168)]=function(_0x363d92,_0x5bee47){const _0x486021=a278_0x12e5ff;let _0x2cf6c3={'raw':![],'where':{'id':_0x363d92[_0x486021(0x150)]['id']}};const _0x2f5271={};return _0x2f5271[_0x486021(0x15c)]=_[_0x486021(0x15b)](db['DeskConfiguration'][_0x486021(0x166)]),_0x2f5271[_0x486021(0x180)]=_['keys'](_0x363d92[_0x486021(0x180)]),_0x2f5271[_0x486021(0x16d)]=_[_0x486021(0x184)](_0x2f5271[_0x486021(0x15c)],_0x2f5271[_0x486021(0x180)]),_0x2cf6c3[_0x486021(0x158)]=_[_0x486021(0x184)](_0x2f5271[_0x486021(0x15c)],qs['fields'](_0x363d92['query'][_0x486021(0x14c)])),_0x2cf6c3[_0x486021(0x158)]=_0x2cf6c3[_0x486021(0x158)][_0x486021(0x179)]?_0x2cf6c3[_0x486021(0x158)]:_0x2f5271['model'],_0x363d92[_0x486021(0x180)][_0x486021(0x146)]&&(_0x2cf6c3['include']=[{'all':!![]}]),_0x2cf6c3=_[_0x486021(0x17c)]({},_0x2cf6c3,_0x363d92[_0x486021(0x177)]),db[_0x486021(0x156)]['findOne'](_0x2cf6c3)[_0x486021(0x16e)](handleEntityNotFound(_0x5bee47,null))[_0x486021(0x16e)](respondWithResult(_0x5bee47,null))['catch'](handleError(_0x5bee47,null));},exports[a278_0x12e5ff(0x182)]=function(_0x583e50,_0x47b019){const _0x3bb4fc=a278_0x12e5ff;return db[_0x3bb4fc(0x156)][_0x3bb4fc(0x182)](_0x583e50[_0x3bb4fc(0x161)],{})['then'](respondWithResult(_0x47b019,0xc9))[_0x3bb4fc(0x15f)](handleError(_0x47b019,null));},exports[a278_0x12e5ff(0x152)]=function(_0x5ba836,_0x2f033c){const _0x35cefa=a278_0x12e5ff;return _0x5ba836['body']['id']&&delete _0x5ba836['body']['id'],db[_0x35cefa(0x156)][_0x35cefa(0x175)]({'where':{'id':_0x5ba836['params']['id']}})[_0x35cefa(0x16e)](handleEntityNotFound(_0x2f033c,null))['then'](saveUpdates(_0x5ba836[_0x35cefa(0x161)],null))[_0x35cefa(0x16e)](respondWithResult(_0x2f033c,null))[_0x35cefa(0x15f)](handleError(_0x2f033c,null));},exports[a278_0x12e5ff(0x155)]=function(_0x42dad2,_0x1dc3e2){const _0x5a630f=a278_0x12e5ff;return db['DeskConfiguration'][_0x5a630f(0x175)]({'where':{'id':_0x42dad2['params']['id']}})[_0x5a630f(0x16e)](handleEntityNotFound(_0x1dc3e2,null))[_0x5a630f(0x16e)](removeEntity(_0x1dc3e2,null))['catch'](handleError(_0x1dc3e2,null));},exports[a278_0x12e5ff(0x181)]=function(_0x5efd84,_0x1b0057){const _0xee198c=a278_0x12e5ff;let _0x330ce6={};const _0x5a436d={};let _0x37cd46,_0x42ab17;return db[_0xee198c(0x156)]['findOne']({'where':{'id':_0x5efd84[_0xee198c(0x150)]['id']}})['then'](handleEntityNotFound(_0x1b0057,null))[_0xee198c(0x16e)](function(_0x14b69c){const _0x171cdf=_0xee198c;if(_0x14b69c)return _0x37cd46=_0x14b69c,_0x5a436d[_0x171cdf(0x15c)]=_[_0x171cdf(0x15b)](db[_0x171cdf(0x153)][_0x171cdf(0x166)]),_0x5a436d[_0x171cdf(0x180)]=_[_0x171cdf(0x15b)](_0x5efd84[_0x171cdf(0x180)]),_0x5a436d[_0x171cdf(0x16d)]=_['intersection'](_0x5a436d['model'],_0x5a436d[_0x171cdf(0x180)]),_0x330ce6[_0x171cdf(0x158)]=_['intersection'](_0x5a436d['model'],qs[_0x171cdf(0x14c)](_0x5efd84['query'][_0x171cdf(0x14c)])),_0x330ce6[_0x171cdf(0x158)]=_0x330ce6['attributes'][_0x171cdf(0x179)]?_0x330ce6[_0x171cdf(0x158)]:_0x5a436d[_0x171cdf(0x15c)],_0x330ce6[_0x171cdf(0x160)]=qs[_0x171cdf(0x14d)](_0x5efd84['query'][_0x171cdf(0x14d)]),_0x330ce6[_0x171cdf(0x159)]=qs['filters'](_[_0x171cdf(0x148)](_0x5efd84[_0x171cdf(0x180)],_0x5a436d[_0x171cdf(0x16d)])),_0x5efd84[_0x171cdf(0x180)][_0x171cdf(0x15d)]&&(_0x330ce6[_0x171cdf(0x159)]=_[_0x171cdf(0x17c)](_0x330ce6[_0x171cdf(0x159)],{[Op['or']]:_[_0x171cdf(0x14f)](_0x330ce6['attributes'],function(_0x3c6285){const _0x209fd7=_0x171cdf,_0x50d8e2={};return _0x50d8e2[_0x3c6285]={[Op[_0x209fd7(0x14e)]]:'%'+_0x5efd84[_0x209fd7(0x180)][_0x209fd7(0x15d)]+'%'},_0x50d8e2;})})),_0x330ce6=_[_0x171cdf(0x17c)]({},_0x330ce6,_0x5efd84['options']),_0x37cd46[_0x171cdf(0x181)](_0x330ce6);})[_0xee198c(0x16e)](function(_0x1c0295){const _0x3be918=_0xee198c;if(_0x1c0295)return _0x42ab17=_0x1c0295[_0x3be918(0x179)],typeof _0x5efd84['query'][_0x3be918(0x172)]===_0x3be918(0x147)&&(_0x330ce6['limit']=qs[_0x3be918(0x171)](_0x5efd84['query'][_0x3be918(0x171)]),_0x330ce6[_0x3be918(0x16a)]=qs[_0x3be918(0x16a)](_0x5efd84[_0x3be918(0x180)][_0x3be918(0x16a)])),_0x37cd46[_0x3be918(0x181)](_0x330ce6);})[_0xee198c(0x16e)](function(_0x93feef){if(_0x93feef)return _0x93feef?{'count':_0x42ab17,'rows':_0x93feef}:null;})['then'](respondWithResult(_0x1b0057,null))[_0xee198c(0x15f)](handleError(_0x1b0057,null));},exports[a278_0x12e5ff(0x183)]=function(_0x81776c,_0xcd3264){const _0x33bbe1=a278_0x12e5ff;let _0x29ad63={};const _0x33af6d={};let _0x351771,_0xbfc3cf;return db[_0x33bbe1(0x156)][_0x33bbe1(0x175)]({'where':{'id':_0x81776c[_0x33bbe1(0x150)]['id']}})[_0x33bbe1(0x16e)](handleEntityNotFound(_0xcd3264,null))[_0x33bbe1(0x16e)](function(_0x52668f){const _0x490eba=_0x33bbe1;if(_0x52668f)return _0x351771=_0x52668f,_0x33af6d[_0x490eba(0x15c)]=_['keys'](db[_0x490eba(0x153)][_0x490eba(0x166)]),_0x33af6d['query']=_[_0x490eba(0x15b)](_0x81776c[_0x490eba(0x180)]),_0x33af6d['filters']=_[_0x490eba(0x184)](_0x33af6d[_0x490eba(0x15c)],_0x33af6d[_0x490eba(0x180)]),_0x29ad63[_0x490eba(0x158)]=_[_0x490eba(0x184)](_0x33af6d[_0x490eba(0x15c)],qs[_0x490eba(0x14c)](_0x81776c[_0x490eba(0x180)][_0x490eba(0x14c)])),_0x29ad63[_0x490eba(0x158)]=_0x29ad63[_0x490eba(0x158)][_0x490eba(0x179)]?_0x29ad63['attributes']:_0x33af6d[_0x490eba(0x15c)],_0x29ad63[_0x490eba(0x160)]=qs['sort'](_0x81776c[_0x490eba(0x180)]['sort']),_0x29ad63['where']=qs[_0x490eba(0x16d)](_[_0x490eba(0x148)](_0x81776c[_0x490eba(0x180)],_0x33af6d['filters'])),_0x81776c['query'][_0x490eba(0x15d)]&&(_0x29ad63[_0x490eba(0x159)]=_[_0x490eba(0x17c)](_0x29ad63[_0x490eba(0x159)],{[Op['or']]:_[_0x490eba(0x14f)](_0x29ad63[_0x490eba(0x158)],function(_0x5d1bad){const _0xff8e00=_0x490eba,_0x24b05c={};return _0x24b05c[_0x5d1bad]={[Op['like']]:'%'+_0x81776c[_0xff8e00(0x180)][_0xff8e00(0x15d)]+'%'},_0x24b05c;})})),_0x29ad63=_[_0x490eba(0x17c)]({},_0x29ad63,_0x81776c[_0x490eba(0x177)]),_0x351771['getSubjects'](_0x29ad63);})[_0x33bbe1(0x16e)](function(_0x5d919d){const _0x1ca647=_0x33bbe1;if(_0x5d919d)return _0xbfc3cf=_0x5d919d[_0x1ca647(0x179)],typeof _0x81776c[_0x1ca647(0x180)]['nolimit']===_0x1ca647(0x147)&&(_0x29ad63[_0x1ca647(0x171)]=qs[_0x1ca647(0x171)](_0x81776c[_0x1ca647(0x180)][_0x1ca647(0x171)]),_0x29ad63[_0x1ca647(0x16a)]=qs['offset'](_0x81776c[_0x1ca647(0x180)][_0x1ca647(0x16a)])),_0x351771['getSubjects'](_0x29ad63);})['then'](function(_0xf670ca){if(_0xf670ca)return _0xf670ca?{'count':_0xbfc3cf,'rows':_0xf670ca}:null;})[_0x33bbe1(0x16e)](respondWithResult(_0xcd3264,null))[_0x33bbe1(0x15f)](handleError(_0xcd3264,null));},exports['getDescriptions']=function(_0x536699,_0x26be1c){const _0x569298=a278_0x12e5ff;let _0x35b5e8={};const _0x18ccea={};let _0x29598c,_0x1c3fb2;return db[_0x569298(0x156)][_0x569298(0x175)]({'where':{'id':_0x536699[_0x569298(0x150)]['id']}})[_0x569298(0x16e)](handleEntityNotFound(_0x26be1c,null))['then'](function(_0x4fee57){const _0x99d6c1=_0x569298;if(_0x4fee57)return _0x29598c=_0x4fee57,_0x18ccea[_0x99d6c1(0x15c)]=_[_0x99d6c1(0x15b)](db['DeskField'][_0x99d6c1(0x166)]),_0x18ccea[_0x99d6c1(0x180)]=_[_0x99d6c1(0x15b)](_0x536699[_0x99d6c1(0x180)]),_0x18ccea[_0x99d6c1(0x16d)]=_[_0x99d6c1(0x184)](_0x18ccea[_0x99d6c1(0x15c)],_0x18ccea['query']),_0x35b5e8['attributes']=_[_0x99d6c1(0x184)](_0x18ccea['model'],qs[_0x99d6c1(0x14c)](_0x536699[_0x99d6c1(0x180)]['fields'])),_0x35b5e8[_0x99d6c1(0x158)]=_0x35b5e8[_0x99d6c1(0x158)]['length']?_0x35b5e8[_0x99d6c1(0x158)]:_0x18ccea[_0x99d6c1(0x15c)],_0x35b5e8[_0x99d6c1(0x160)]=qs['sort'](_0x536699['query']['sort']),_0x35b5e8[_0x99d6c1(0x159)]=qs[_0x99d6c1(0x16d)](_[_0x99d6c1(0x148)](_0x536699[_0x99d6c1(0x180)],_0x18ccea[_0x99d6c1(0x16d)])),_0x536699[_0x99d6c1(0x180)][_0x99d6c1(0x15d)]&&(_0x35b5e8['where']=_[_0x99d6c1(0x17c)](_0x35b5e8[_0x99d6c1(0x159)],{[Op['or']]:_[_0x99d6c1(0x14f)](_0x35b5e8[_0x99d6c1(0x158)],function(_0xf62d90){const _0x5456d3=_0x99d6c1,_0x2cc5d8={};return _0x2cc5d8[_0xf62d90]={[Op[_0x5456d3(0x14e)]]:'%'+_0x536699[_0x5456d3(0x180)]['filter']+'%'},_0x2cc5d8;})})),_0x35b5e8=_[_0x99d6c1(0x17c)]({},_0x35b5e8,_0x536699[_0x99d6c1(0x177)]),_0x29598c[_0x99d6c1(0x14a)](_0x35b5e8);})['then'](function(_0x19a3ff){const _0x57b6e2=_0x569298;if(_0x19a3ff)return _0x1c3fb2=_0x19a3ff[_0x57b6e2(0x179)],typeof _0x536699[_0x57b6e2(0x180)][_0x57b6e2(0x172)]===_0x57b6e2(0x147)&&(_0x35b5e8[_0x57b6e2(0x171)]=qs[_0x57b6e2(0x171)](_0x536699['query'][_0x57b6e2(0x171)]),_0x35b5e8[_0x57b6e2(0x16a)]=qs[_0x57b6e2(0x16a)](_0x536699[_0x57b6e2(0x180)][_0x57b6e2(0x16a)])),_0x29598c[_0x57b6e2(0x14a)](_0x35b5e8);})[_0x569298(0x16e)](function(_0x4218de){if(_0x4218de)return _0x4218de?{'count':_0x1c3fb2,'rows':_0x4218de}:null;})[_0x569298(0x16e)](respondWithResult(_0x26be1c,null))[_0x569298(0x15f)](handleError(_0x26be1c,null));},exports[a278_0x12e5ff(0x17f)]=function(_0x52227b,_0x35d722){const _0x3d8843=a278_0x12e5ff;let _0x211bbe={};const _0x2a5815={};let _0x123c79,_0x353c97;return db[_0x3d8843(0x156)][_0x3d8843(0x175)]({'where':{'id':_0x52227b[_0x3d8843(0x150)]['id']}})['then'](handleEntityNotFound(_0x35d722,null))[_0x3d8843(0x16e)](function(_0x5029fe){const _0x252489=_0x3d8843;if(_0x5029fe)return _0x123c79=_0x5029fe,_0x2a5815['model']=_['keys'](db[_0x252489(0x16b)][_0x252489(0x166)]),_0x2a5815[_0x252489(0x180)]=_[_0x252489(0x15b)](_0x52227b['query']),_0x2a5815[_0x252489(0x16d)]=_[_0x252489(0x184)](_0x2a5815[_0x252489(0x15c)],_0x2a5815[_0x252489(0x180)]),_0x211bbe[_0x252489(0x158)]=_[_0x252489(0x184)](_0x2a5815[_0x252489(0x15c)],qs[_0x252489(0x14c)](_0x52227b[_0x252489(0x180)]['fields'])),_0x211bbe[_0x252489(0x158)]=_0x211bbe[_0x252489(0x158)][_0x252489(0x179)]?_0x211bbe[_0x252489(0x158)]:_0x2a5815[_0x252489(0x15c)],_0x211bbe[_0x252489(0x160)]=qs[_0x252489(0x14d)](_0x52227b[_0x252489(0x180)]['sort']),_0x211bbe[_0x252489(0x159)]=qs[_0x252489(0x16d)](_[_0x252489(0x148)](_0x52227b[_0x252489(0x180)],_0x2a5815[_0x252489(0x16d)])),_0x52227b[_0x252489(0x180)]['filter']&&(_0x211bbe[_0x252489(0x159)]=_['merge'](_0x211bbe[_0x252489(0x159)],{[Op['or']]:_['map'](_0x211bbe['attributes'],function(_0x4e30e9){const _0x380dfc=_0x252489,_0x3bcf46={};return _0x3bcf46[_0x4e30e9]={[Op[_0x380dfc(0x14e)]]:'%'+_0x52227b['query']['filter']+'%'},_0x3bcf46;})})),_0x211bbe=_['merge']({},_0x211bbe,_0x52227b[_0x252489(0x177)]),_0x123c79['getTags'](_0x211bbe);})[_0x3d8843(0x16e)](function(_0x5977e0){const _0x57298c=_0x3d8843;if(_0x5977e0)return _0x353c97=_0x5977e0[_0x57298c(0x179)],typeof _0x52227b[_0x57298c(0x180)][_0x57298c(0x172)]===_0x57298c(0x147)&&(_0x211bbe[_0x57298c(0x171)]=qs[_0x57298c(0x171)](_0x52227b[_0x57298c(0x180)][_0x57298c(0x171)]),_0x211bbe[_0x57298c(0x16a)]=qs['offset'](_0x52227b[_0x57298c(0x180)]['offset'])),_0x123c79[_0x57298c(0x17f)](_0x211bbe);})[_0x3d8843(0x16e)](function(_0x56736c){if(_0x56736c)return _0x56736c?{'count':_0x353c97,'rows':_0x56736c}:null;})['then'](respondWithResult(_0x35d722,null))[_0x3d8843(0x15f)](handleError(_0x35d722,null));},exports['setTags']=function(_0x5c4a58,_0x3f4b5d){const _0x18bb54=a278_0x12e5ff;return _0x5c4a58[_0x18bb54(0x161)]['id']&&delete _0x5c4a58[_0x18bb54(0x161)]['id'],db['DeskConfiguration'][_0x18bb54(0x175)]({'where':{'id':_0x5c4a58[_0x18bb54(0x150)]['id']}})[_0x18bb54(0x16e)](handleEntityNotFound(_0x3f4b5d,null))[_0x18bb54(0x16e)](function(_0x3461d7){const _0x1bffdd=_0x18bb54;if(_0x3461d7)return _0x3461d7[_0x1bffdd(0x15e)](_0x5c4a58[_0x1bffdd(0x161)]['ids']||[]);return null;})[_0x18bb54(0x16e)](respondWithResult(_0x3f4b5d,null))[_0x18bb54(0x15f)](handleError(_0x3f4b5d,null));}; \ No newline at end of file diff --git a/server/api/intDeskConfiguration/intDeskConfiguration.model.js b/server/api/intDeskConfiguration/intDeskConfiguration.model.js index ba6f85a..974dc38 100644 --- a/server/api/intDeskConfiguration/intDeskConfiguration.model.js +++ b/server/api/intDeskConfiguration/intDeskConfiguration.model.js @@ -1 +1 @@ -const a235_0x466e=['DeskConfiguration','./intDeskConfiguration.attributes','int_desk_configurations','define'];(function(_0x36cd29,_0x466e66){const _0x5aafc4=function(_0x264188){while(--_0x264188){_0x36cd29['push'](_0x36cd29['shift']());}};_0x5aafc4(++_0x466e66);}(a235_0x466e,0x127));const a235_0x5aaf=function(_0x36cd29,_0x466e66){_0x36cd29=_0x36cd29-0x0;let _0x5aafc4=a235_0x466e[_0x36cd29];return _0x5aafc4;};const _0x21f26f=a235_0x5aaf;'use strict';const attributes=require(_0x21f26f('0x2'));module['exports']=function(_0x264188){const _0x442059=_0x21f26f,_0x4915eb=_0x264188[_0x442059('0x0')](_0x442059('0x1'),attributes,{'tableName':_0x442059('0x3'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x4915eb;}; \ No newline at end of file +const a279_0x11e2=['init','./intDeskConfiguration.attributes','DeskConfiguration','exports','function','sequelize','./intDeskConfiguration.options'];(function(_0x24ca64,_0x23e9b9){const _0x11e232=function(_0x1c64e6){while(--_0x1c64e6){_0x24ca64['push'](_0x24ca64['shift']());}};_0x11e232(++_0x23e9b9);}(a279_0x11e2,0x121));const a279_0x1c64=function(_0x24ca64,_0x23e9b9){_0x24ca64=_0x24ca64-0x105;let _0x11e232=a279_0x11e2[_0x24ca64];return _0x11e232;};const a279_0xfaabc5=a279_0x1c64;'use strict';const {Model}=require(a279_0xfaabc5(0x108)),{attributes}=require(a279_0xfaabc5(0x10b)),{options}=require(a279_0xfaabc5(0x109));class DeskConfiguration extends Model{}function init(_0x8be65f,_0x233128){const _0xe6cf7b=a279_0xfaabc5,_0x1e4b3a=options(_0x8be65f),_0x4de2b3=typeof _0x233128===_0xe6cf7b(0x107)?_0x233128(_0x1e4b3a):_0x1e4b3a;return DeskConfiguration[_0xe6cf7b(0x10a)](attributes,_0x4de2b3),DeskConfiguration;}module['exports'][a279_0xfaabc5(0x105)]=DeskConfiguration,module[a279_0xfaabc5(0x106)][a279_0xfaabc5(0x10a)]=init; \ No newline at end of file diff --git a/server/api/intDeskConfiguration/intDeskConfiguration.options.js b/server/api/intDeskConfiguration/intDeskConfiguration.options.js new file mode 100644 index 0000000..d50655f --- /dev/null +++ b/server/api/intDeskConfiguration/intDeskConfiguration.options.js @@ -0,0 +1 @@ +var a280_0x3775=['int_desk_configurations','options'];(function(_0x2baf5a,_0x173bf7){var _0x37752d=function(_0x59b117){while(--_0x59b117){_0x2baf5a['push'](_0x2baf5a['shift']());}};_0x37752d(++_0x173bf7);}(a280_0x3775,0x1bc));var a280_0x59b1=function(_0x2baf5a,_0x173bf7){_0x2baf5a=_0x2baf5a-0x7c;var _0x37752d=a280_0x3775[_0x2baf5a];return _0x37752d;};var a280_0x4eae28=a280_0x59b1;function options(_0x53f4b1){var _0x520799=a280_0x59b1;return{'sequelize':_0x53f4b1,'tableName':_0x520799(0x7c),'paranoid':![],'indexes':[],'timestamps':!![]};}module['exports'][a280_0x4eae28(0x7d)]=options; \ No newline at end of file diff --git a/server/api/intDeskField/index.js b/server/api/intDeskField/index.js index e98bb34..1950086 100644 --- a/server/api/intDeskField/index.js +++ b/server/api/intDeskField/index.js @@ -1 +1 @@ -const a236_0x16c8=['index','./intDeskField.controller','isAuthenticated','exports','post','express','get','/:id','destroy','show','update'];(function(_0x3827cd,_0x16c8ea){const _0x41fa5b=function(_0x238887){while(--_0x238887){_0x3827cd['push'](_0x3827cd['shift']());}};_0x41fa5b(++_0x16c8ea);}(a236_0x16c8,0x69));const a236_0x41fa=function(_0x3827cd,_0x16c8ea){_0x3827cd=_0x3827cd-0x0;let _0x41fa5b=a236_0x16c8[_0x3827cd];return _0x41fa5b;};const _0x221ddb=a236_0x41fa;'use strict';const express=require(_0x221ddb('0xa')),router=express['Router'](),auth=require('../../components/auth/service'),controller=require(_0x221ddb('0x6'));router[_0x221ddb('0x0')]('/',auth[_0x221ddb('0x7')](),controller[_0x221ddb('0x5')]),router[_0x221ddb('0x0')](_0x221ddb('0x1'),auth[_0x221ddb('0x7')](),controller[_0x221ddb('0x3')]),router[_0x221ddb('0x9')]('/',auth[_0x221ddb('0x7')](),controller['create']),router['put'](_0x221ddb('0x1'),auth[_0x221ddb('0x7')](),controller[_0x221ddb('0x4')]),router['delete']('/:id',auth[_0x221ddb('0x7')](),controller[_0x221ddb('0x2')]),module[_0x221ddb('0x8')]=router; \ No newline at end of file +const a281_0x5b0d=['/:id','destroy','isAuthenticated','show','exports','index','get','../../components/auth/service','put','Router','create','./intDeskField.controller','post'];(function(_0x3e00f6,_0x526ae2){const _0x5b0dd9=function(_0x83ec51){while(--_0x83ec51){_0x3e00f6['push'](_0x3e00f6['shift']());}};_0x5b0dd9(++_0x526ae2);}(a281_0x5b0d,0x13e));const a281_0x83ec=function(_0x3e00f6,_0x526ae2){_0x3e00f6=_0x3e00f6-0x167;let _0x5b0dd9=a281_0x5b0d[_0x3e00f6];return _0x5b0dd9;};const a281_0x15d56a=a281_0x83ec;'use strict';const express=require('express'),router=express[a281_0x15d56a(0x16a)](),auth=require(a281_0x15d56a(0x168)),controller=require(a281_0x15d56a(0x16c));router[a281_0x15d56a(0x167)]('/',auth['isAuthenticated'](),controller[a281_0x15d56a(0x173)]),router[a281_0x15d56a(0x167)](a281_0x15d56a(0x16e),auth[a281_0x15d56a(0x170)](),controller[a281_0x15d56a(0x171)]),router[a281_0x15d56a(0x16d)]('/',auth[a281_0x15d56a(0x170)](),controller[a281_0x15d56a(0x16b)]),router[a281_0x15d56a(0x169)]('/:id',auth[a281_0x15d56a(0x170)](),controller['update']),router['delete'](a281_0x15d56a(0x16e),auth[a281_0x15d56a(0x170)](),controller[a281_0x15d56a(0x16f)]),module[a281_0x15d56a(0x172)]=router; \ No newline at end of file diff --git a/server/api/intDeskField/intDeskField.attributes.js b/server/api/intDeskField/intDeskField.attributes.js index bf63281..78a1fca 100644 --- a/server/api/intDeskField/intDeskField.attributes.js +++ b/server/api/intDeskField/intDeskField.attributes.js @@ -1 +1 @@ -const a237_0x274d=['string','ENUM','sequelize','STRING','variable','BOOLEAN','keyValue','customVariable'];(function(_0x4e27cf,_0x274d43){const _0x2e23a4=function(_0x33cbfc){while(--_0x33cbfc){_0x4e27cf['push'](_0x4e27cf['shift']());}};_0x2e23a4(++_0x274d43);}(a237_0x274d,0x1b5));const a237_0x2e23=function(_0x4e27cf,_0x274d43){_0x4e27cf=_0x4e27cf-0x0;let _0x2e23a4=a237_0x274d[_0x4e27cf];return _0x2e23a4;};const _0x1f7548=a237_0x2e23;'use strict';const Sequelize=require(_0x1f7548('0x5'));module['exports']={'type':{'type':Sequelize[_0x1f7548('0x4')](_0x1f7548('0x3'),_0x1f7548('0x7'),_0x1f7548('0x2'),_0x1f7548('0x1')),'defaultValue':_0x1f7548('0x3')},'content':{'type':Sequelize['STRING']},'key':{'type':Sequelize[_0x1f7548('0x6')]},'keyType':{'type':Sequelize[_0x1f7548('0x4')](_0x1f7548('0x3'),_0x1f7548('0x7'),_0x1f7548('0x2'))},'keyContent':{'type':Sequelize['STRING']},'idField':{'type':Sequelize[_0x1f7548('0x6')]},'nameField':{'type':Sequelize['STRING']},'customField':{'type':Sequelize[_0x1f7548('0x0')],'defaultValue':!![]},'variableName':{'type':Sequelize[_0x1f7548('0x6')]}}; \ No newline at end of file +const a282_0x2eef=['ENUM','customVariable','string','BOOLEAN','exports','STRING','variable','attributes','keyValue'];(function(_0x4f8b07,_0x214991){const _0x2eef7b=function(_0x299b09){while(--_0x299b09){_0x4f8b07['push'](_0x4f8b07['shift']());}};_0x2eef7b(++_0x214991);}(a282_0x2eef,0x109));const a282_0x299b=function(_0x4f8b07,_0x214991){_0x4f8b07=_0x4f8b07-0xe2;let _0x2eef7b=a282_0x2eef[_0x4f8b07];return _0x2eef7b;};const a282_0x44b639=a282_0x299b;'use strict';const {DataTypes}=require('sequelize'),attributes={'type':{'type':DataTypes[a282_0x44b639(0xe7)](a282_0x44b639(0xe9),'variable',a282_0x44b639(0xe8),a282_0x44b639(0xe6)),'defaultValue':'string'},'content':{'type':DataTypes[a282_0x44b639(0xe3)]},'key':{'type':DataTypes[a282_0x44b639(0xe3)]},'keyType':{'type':DataTypes['ENUM'](a282_0x44b639(0xe9),a282_0x44b639(0xe4),a282_0x44b639(0xe8))},'keyContent':{'type':DataTypes['STRING']},'idField':{'type':DataTypes[a282_0x44b639(0xe3)]},'nameField':{'type':DataTypes[a282_0x44b639(0xe3)]},'customField':{'type':DataTypes[a282_0x44b639(0xea)],'defaultValue':!![]},'variableName':{'type':DataTypes[a282_0x44b639(0xe3)]}};module[a282_0x44b639(0xe2)][a282_0x44b639(0xe5)]=attributes; \ No newline at end of file diff --git a/server/api/intDeskField/intDeskField.controller.js b/server/api/intDeskField/intDeskField.controller.js index 778333b..737de52 100644 --- a/server/api/intDeskField/intDeskField.controller.js +++ b/server/api/intDeskField/intDeskField.controller.js @@ -1 +1 @@ -const a238_0x34a7=['order','body','keys','undefined','findOne','filter','count','DeskField','set','fieldName','VIRTUAL','map','sendStatus','findAll','model','merge','filters','status','catch','attributes','end','fields','stack','../../components/parsers/qs','includeAll','../../mysqldb','Content-Range','error','then','lodash','query','create','update','include','rows','options','intersection','nolimit','type','destroy','index','../../config/logger','sort','params','name','where','json','limit','pick','send','rawAttributes','key','like','offset'];(function(_0x2367b6,_0x34a74e){const _0x20fe8f=function(_0x23020c){while(--_0x23020c){_0x2367b6['push'](_0x2367b6['shift']());}};_0x20fe8f(++_0x34a74e);}(a238_0x34a7,0x1b9));const a238_0x20fe=function(_0x2367b6,_0x34a74e){_0x2367b6=_0x2367b6-0x0;let _0x20fe8f=a238_0x34a7[_0x2367b6];return _0x20fe8f;};const _0x4ced20=a238_0x20fe;'use strict';const _=require(_0x4ced20('0x14')),qs=require(_0x4ced20('0xe')),logger=require(_0x4ced20('0x20'))('api'),db=require(_0x4ced20('0x10'))['db'],{Op}=require('sequelize');function respondWithResult(_0x23020c,_0x1fbdff){return _0x1fbdff=_0x1fbdff||0xc8,function(_0x3e6e80){const _0x441ac6=a238_0x20fe;if(_0x3e6e80)return _0x23020c[_0x441ac6('0x8')](_0x1fbdff)[_0x441ac6('0x25')](_0x3e6e80);};}function respondWithFilteredResult(_0x29e944,_0x24893e){return function(_0x5eaef5){const _0x2d6381=a238_0x20fe;if(_0x5eaef5){const _0x2ab484=_0x5eaef5[_0x2d6381('0x33')],_0x329b8b=_0x24893e[_0x2d6381('0x2c')];let _0x1d2487=_0x24893e[_0x2d6381('0x2c')]+_0x24893e['limit'],_0x277057;return _0x1d2487>=_0x2ab484?(_0x1d2487=_0x2ab484,_0x277057=0xc8):_0x277057=0xce,_0x29e944['status'](_0x277057),_0x29e944[_0x2d6381('0x35')](_0x2d6381('0x11'),_0x329b8b+'-'+_0x1d2487+'/'+_0x2ab484)[_0x2d6381('0x25')](_0x5eaef5);}return null;};}function saveUpdates(_0x1b74d4){return function(_0x375fd7){const _0x3fd2a2=a238_0x20fe;if(_0x375fd7)return _0x375fd7[_0x3fd2a2('0x17')](_0x1b74d4)[_0x3fd2a2('0x13')](function(_0x3a2a0c){return _0x3a2a0c;});return null;};}function removeEntity(_0x5ec729){return function(_0x8f2682){const _0x4a463c=a238_0x20fe;if(_0x8f2682)return _0x8f2682[_0x4a463c('0x1e')]()['then'](function(){const _0x5a739b=_0x4a463c;_0x5ec729[_0x5a739b('0x8')](0xcc)[_0x5a739b('0xb')]();});};}function handleEntityNotFound(_0x23fbfa){return function(_0x2fef41){const _0x48ef73=a238_0x20fe;return!_0x2fef41&&_0x23fbfa[_0x48ef73('0x3')](0x194),_0x2fef41;};}function handleError(_0x178297,_0x302dac){return _0x302dac=_0x302dac||0x1f4,function(_0x128582){const _0x2159ab=a238_0x20fe;logger[_0x2159ab('0x12')](_0x128582[_0x2159ab('0xd')]),_0x128582[_0x2159ab('0x23')]&&delete _0x128582[_0x2159ab('0x23')],_0x178297['status'](_0x302dac)[_0x2159ab('0x28')](_0x128582);};}exports[_0x4ced20('0x1f')]=function(_0x57f862,_0x23100f){const _0x2bfce3=_0x4ced20;let _0x2cf798={};const _0x1b59ca={},_0x59b17c={'count':0x0,'rows':[]},_0x566d92=_[_0x2bfce3('0x2')](db['DeskField'][_0x2bfce3('0x29')],function(_0x463acb){const _0x12b3f6=_0x2bfce3;return{'name':_0x463acb[_0x12b3f6('0x0')],'type':_0x463acb['type'][_0x12b3f6('0x2a')]};});_0x1b59ca[_0x2bfce3('0x5')]=_[_0x2bfce3('0x2')](_0x566d92,_0x2bfce3('0x23')),_0x1b59ca[_0x2bfce3('0x15')]=_['keys'](_0x57f862['query']),_0x1b59ca[_0x2bfce3('0x7')]=_[_0x2bfce3('0x1b')](_0x1b59ca[_0x2bfce3('0x5')],_0x1b59ca[_0x2bfce3('0x15')]),_0x2cf798[_0x2bfce3('0xa')]=_[_0x2bfce3('0x1b')](_0x1b59ca[_0x2bfce3('0x5')],qs[_0x2bfce3('0xc')](_0x57f862[_0x2bfce3('0x15')][_0x2bfce3('0xc')])),_0x2cf798[_0x2bfce3('0xa')]=_0x2cf798[_0x2bfce3('0xa')]['length']?_0x2cf798[_0x2bfce3('0xa')]:_0x1b59ca[_0x2bfce3('0x5')];typeof _0x57f862[_0x2bfce3('0x15')][_0x2bfce3('0x1c')]===_0x2bfce3('0x30')&&(_0x2cf798['limit']=qs[_0x2bfce3('0x26')](_0x57f862['query'][_0x2bfce3('0x26')]),_0x2cf798['offset']=qs['offset'](_0x57f862[_0x2bfce3('0x15')][_0x2bfce3('0x2c')]));_0x2cf798[_0x2bfce3('0x2d')]=qs[_0x2bfce3('0x21')](_0x57f862[_0x2bfce3('0x15')][_0x2bfce3('0x21')]),_0x2cf798['where']=qs[_0x2bfce3('0x7')](_[_0x2bfce3('0x27')](_0x57f862[_0x2bfce3('0x15')],_0x1b59ca[_0x2bfce3('0x7')]),_0x566d92);_0x57f862['query'][_0x2bfce3('0x32')]&&(_0x2cf798[_0x2bfce3('0x24')]=_[_0x2bfce3('0x6')](_0x2cf798[_0x2bfce3('0x24')],{[Op['or']]:_['map'](_0x566d92,function(_0x187210){const _0x5e2a6c=_0x2bfce3;if(_0x187210[_0x5e2a6c('0x1d')]!==_0x5e2a6c('0x1')){const _0x4eb2fc={};return _0x4eb2fc[_0x187210[_0x5e2a6c('0x23')]]={[Op[_0x5e2a6c('0x2b')]]:'%'+_0x57f862[_0x5e2a6c('0x15')][_0x5e2a6c('0x32')]+'%'},_0x4eb2fc;}})}));_0x2cf798=_[_0x2bfce3('0x6')]({},_0x2cf798,_0x57f862['options']);const _0x3abf8d={'where':_0x2cf798[_0x2bfce3('0x24')]};return db[_0x2bfce3('0x34')][_0x2bfce3('0x33')](_0x3abf8d)['then'](function(_0x484db4){const _0x257eb9=_0x2bfce3;return _0x59b17c[_0x257eb9('0x33')]=_0x484db4,_0x57f862['query'][_0x257eb9('0xf')]&&(_0x2cf798['include']=[{'all':!![]}]),db[_0x257eb9('0x34')][_0x257eb9('0x4')](_0x2cf798);})[_0x2bfce3('0x13')](function(_0x283859){const _0x591cad=_0x2bfce3;return _0x59b17c[_0x591cad('0x19')]=_0x283859,_0x59b17c;})[_0x2bfce3('0x13')](respondWithFilteredResult(_0x23100f,_0x2cf798))[_0x2bfce3('0x9')](handleError(_0x23100f,null));},exports['show']=function(_0x474ef9,_0x41bb46){const _0x59fb5a=_0x4ced20;let _0x1a2675={'raw':!![],'where':{'id':_0x474ef9[_0x59fb5a('0x22')]['id']}};const _0x5e65a0={};return _0x5e65a0['model']=_[_0x59fb5a('0x2f')](db[_0x59fb5a('0x34')][_0x59fb5a('0x29')]),_0x5e65a0['query']=_[_0x59fb5a('0x2f')](_0x474ef9[_0x59fb5a('0x15')]),_0x5e65a0[_0x59fb5a('0x7')]=_['intersection'](_0x5e65a0[_0x59fb5a('0x5')],_0x5e65a0[_0x59fb5a('0x15')]),_0x1a2675['attributes']=_[_0x59fb5a('0x1b')](_0x5e65a0['model'],qs[_0x59fb5a('0xc')](_0x474ef9['query'][_0x59fb5a('0xc')])),_0x1a2675[_0x59fb5a('0xa')]=_0x1a2675[_0x59fb5a('0xa')]['length']?_0x1a2675['attributes']:_0x5e65a0['model'],_0x474ef9[_0x59fb5a('0x15')][_0x59fb5a('0xf')]&&(_0x1a2675[_0x59fb5a('0x18')]=[{'all':!![]}]),_0x1a2675=_[_0x59fb5a('0x6')]({},_0x1a2675,_0x474ef9[_0x59fb5a('0x1a')]),db[_0x59fb5a('0x34')][_0x59fb5a('0x31')](_0x1a2675)['then'](handleEntityNotFound(_0x41bb46,null))['then'](respondWithResult(_0x41bb46,null))[_0x59fb5a('0x9')](handleError(_0x41bb46,null));},exports[_0x4ced20('0x16')]=function(_0x4cf560,_0x347d05){const _0x4cd477=_0x4ced20;return db[_0x4cd477('0x34')][_0x4cd477('0x16')](_0x4cf560['body'],{})[_0x4cd477('0x13')](respondWithResult(_0x347d05,0xc9))[_0x4cd477('0x9')](handleError(_0x347d05,null));},exports[_0x4ced20('0x17')]=function(_0x383f19,_0x3fabc9){const _0x1e91ac=_0x4ced20;return _0x383f19[_0x1e91ac('0x2e')]['id']&&delete _0x383f19[_0x1e91ac('0x2e')]['id'],db[_0x1e91ac('0x34')][_0x1e91ac('0x31')]({'where':{'id':_0x383f19[_0x1e91ac('0x22')]['id']}})[_0x1e91ac('0x13')](handleEntityNotFound(_0x3fabc9,null))['then'](saveUpdates(_0x383f19['body'],null))[_0x1e91ac('0x13')](respondWithResult(_0x3fabc9,null))['catch'](handleError(_0x3fabc9,null));},exports[_0x4ced20('0x1e')]=function(_0x599d75,_0x25723a){const _0x4ebaa7=_0x4ced20;return db[_0x4ebaa7('0x34')][_0x4ebaa7('0x31')]({'where':{'id':_0x599d75['params']['id']}})[_0x4ebaa7('0x13')](handleEntityNotFound(_0x25723a,null))[_0x4ebaa7('0x13')](removeEntity(_0x25723a,null))[_0x4ebaa7('0x9')](handleError(_0x25723a,null));}; \ No newline at end of file +const a283_0x41ec=['api','VIRTUAL','fields','then','where','offset','limit','findOne','pick','rows','create','json','Content-Range','intersection','end','error','filters','lodash','key','keys','update','query','model','attributes','type','catch','include','name','body','../../mysqldb','sequelize','count','merge','params','like','set','rawAttributes','options','DeskField','undefined','stack','show','includeAll','map','send','sort','destroy','status','../../config/logger','length','filter'];(function(_0x237808,_0x328410){const _0x41ec3d=function(_0xddb6ef){while(--_0xddb6ef){_0x237808['push'](_0x237808['shift']());}};_0x41ec3d(++_0x328410);}(a283_0x41ec,0x1b2));const a283_0xddb6=function(_0x237808,_0x328410){_0x237808=_0x237808-0x1f2;let _0x41ec3d=a283_0x41ec[_0x237808];return _0x41ec3d;};const a283_0x39794e=a283_0xddb6;'use strict';const _=require(a283_0x39794e(0x21c)),qs=require('../../components/parsers/qs'),logger=require(a283_0x39794e(0x208))(a283_0x39794e(0x20b)),{db}=require(a283_0x39794e(0x1f5)),{Op}=require(a283_0x39794e(0x1f6));function respondWithResult(_0x3c7d30,_0x8f6bef){return _0x8f6bef=_0x8f6bef||0xc8,function(_0x2420ee){const _0x5ee6d1=a283_0xddb6;if(_0x2420ee)return _0x3c7d30[_0x5ee6d1(0x207)](_0x8f6bef)[_0x5ee6d1(0x216)](_0x2420ee);};}function respondWithFilteredResult(_0x196649,_0x2f6c99){return function(_0x1d8eaa){const _0x24a85e=a283_0xddb6;if(_0x1d8eaa){const _0x1be55e=_0x1d8eaa['count'],_0x35b514=_0x2f6c99['offset'];let _0x28c1d4=_0x2f6c99[_0x24a85e(0x210)]+_0x2f6c99[_0x24a85e(0x211)],_0x39fe7;return _0x28c1d4>=_0x1be55e?(_0x28c1d4=_0x1be55e,_0x39fe7=0xc8):_0x39fe7=0xce,_0x196649[_0x24a85e(0x207)](_0x39fe7),_0x196649[_0x24a85e(0x1fb)](_0x24a85e(0x217),_0x35b514+'-'+_0x28c1d4+'/'+_0x1be55e)[_0x24a85e(0x216)](_0x1d8eaa);}return null;};}function saveUpdates(_0x4cbbec){return function(_0x57a8bf){const _0x5b533c=a283_0xddb6;if(_0x57a8bf)return _0x57a8bf[_0x5b533c(0x21f)](_0x4cbbec)[_0x5b533c(0x20e)](function(_0x4bec0e){return _0x4bec0e;});return null;};}function removeEntity(_0xb94f2){return function(_0xef331a){const _0x18bb83=a283_0xddb6;if(_0xef331a)return _0xef331a[_0x18bb83(0x206)]()[_0x18bb83(0x20e)](function(){const _0x1b8cd5=_0x18bb83;_0xb94f2[_0x1b8cd5(0x207)](0xcc)[_0x1b8cd5(0x219)]();});};}function handleEntityNotFound(_0x5d9af5){return function(_0x89aff6){return!_0x89aff6&&_0x5d9af5['sendStatus'](0x194),_0x89aff6;};}function handleError(_0xd40350,_0x2f8d8c){return _0x2f8d8c=_0x2f8d8c||0x1f4,function(_0x5027be){const _0x274149=a283_0xddb6;logger[_0x274149(0x21a)](_0x5027be[_0x274149(0x200)]),_0x5027be[_0x274149(0x1f3)]&&delete _0x5027be[_0x274149(0x1f3)],_0xd40350[_0x274149(0x207)](_0x2f8d8c)[_0x274149(0x204)](_0x5027be);};}exports['index']=function(_0x5c21ea,_0x483f5a){const _0x59a462=a283_0x39794e;let _0x42ec23={};const _0x3e35c3={},_0x5ef877={'count':0x0,'rows':[]},_0xd7d4bf=_[_0x59a462(0x203)](db[_0x59a462(0x1fe)][_0x59a462(0x1fc)],function(_0x5f4074){const _0x385910=_0x59a462;return{'name':_0x5f4074['fieldName'],'type':_0x5f4074[_0x385910(0x223)][_0x385910(0x21d)]};});_0x3e35c3['model']=_['map'](_0xd7d4bf,_0x59a462(0x1f3)),_0x3e35c3[_0x59a462(0x220)]=_[_0x59a462(0x21e)](_0x5c21ea[_0x59a462(0x220)]),_0x3e35c3['filters']=_[_0x59a462(0x218)](_0x3e35c3['model'],_0x3e35c3[_0x59a462(0x220)]),_0x42ec23[_0x59a462(0x222)]=_[_0x59a462(0x218)](_0x3e35c3['model'],qs['fields'](_0x5c21ea[_0x59a462(0x220)][_0x59a462(0x20d)])),_0x42ec23[_0x59a462(0x222)]=_0x42ec23[_0x59a462(0x222)][_0x59a462(0x209)]?_0x42ec23[_0x59a462(0x222)]:_0x3e35c3[_0x59a462(0x221)];typeof _0x5c21ea['query']['nolimit']===_0x59a462(0x1ff)&&(_0x42ec23[_0x59a462(0x211)]=qs[_0x59a462(0x211)](_0x5c21ea[_0x59a462(0x220)]['limit']),_0x42ec23[_0x59a462(0x210)]=qs[_0x59a462(0x210)](_0x5c21ea[_0x59a462(0x220)]['offset']));_0x42ec23['order']=qs['sort'](_0x5c21ea[_0x59a462(0x220)][_0x59a462(0x205)]),_0x42ec23['where']=qs[_0x59a462(0x21b)](_[_0x59a462(0x213)](_0x5c21ea[_0x59a462(0x220)],_0x3e35c3[_0x59a462(0x21b)]),_0xd7d4bf);_0x5c21ea[_0x59a462(0x220)][_0x59a462(0x20a)]&&(_0x42ec23[_0x59a462(0x20f)]=_[_0x59a462(0x1f8)](_0x42ec23[_0x59a462(0x20f)],{[Op['or']]:_[_0x59a462(0x203)](_0xd7d4bf,function(_0x4b3d4e){const _0x481081=_0x59a462;if(_0x4b3d4e[_0x481081(0x223)]!==_0x481081(0x20c)){const _0x35cb8f={};return _0x35cb8f[_0x4b3d4e[_0x481081(0x1f3)]]={[Op[_0x481081(0x1fa)]]:'%'+_0x5c21ea[_0x481081(0x220)][_0x481081(0x20a)]+'%'},_0x35cb8f;}})}));_0x42ec23=_['merge']({},_0x42ec23,_0x5c21ea[_0x59a462(0x1fd)]);const _0x346575={'where':_0x42ec23[_0x59a462(0x20f)]};return db['DeskField'][_0x59a462(0x1f7)](_0x346575)[_0x59a462(0x20e)](function(_0x5a738c){const _0x410f3c=_0x59a462;return _0x5ef877[_0x410f3c(0x1f7)]=_0x5a738c,_0x5c21ea[_0x410f3c(0x220)][_0x410f3c(0x202)]&&(_0x42ec23[_0x410f3c(0x1f2)]=[{'all':!![]}]),db['DeskField']['findAll'](_0x42ec23);})[_0x59a462(0x20e)](function(_0x55f2fb){const _0x4d4a22=_0x59a462;return _0x5ef877[_0x4d4a22(0x214)]=_0x55f2fb,_0x5ef877;})[_0x59a462(0x20e)](respondWithFilteredResult(_0x483f5a,_0x42ec23))[_0x59a462(0x224)](handleError(_0x483f5a,null));},exports[a283_0x39794e(0x201)]=function(_0x1f14f9,_0x189352){const _0x10767f=a283_0x39794e;let _0x4c0e03={'raw':!![],'where':{'id':_0x1f14f9[_0x10767f(0x1f9)]['id']}};const _0x59c5dd={};return _0x59c5dd['model']=_[_0x10767f(0x21e)](db[_0x10767f(0x1fe)]['rawAttributes']),_0x59c5dd['query']=_[_0x10767f(0x21e)](_0x1f14f9[_0x10767f(0x220)]),_0x59c5dd[_0x10767f(0x21b)]=_[_0x10767f(0x218)](_0x59c5dd['model'],_0x59c5dd[_0x10767f(0x220)]),_0x4c0e03['attributes']=_[_0x10767f(0x218)](_0x59c5dd[_0x10767f(0x221)],qs[_0x10767f(0x20d)](_0x1f14f9[_0x10767f(0x220)][_0x10767f(0x20d)])),_0x4c0e03[_0x10767f(0x222)]=_0x4c0e03[_0x10767f(0x222)][_0x10767f(0x209)]?_0x4c0e03[_0x10767f(0x222)]:_0x59c5dd['model'],_0x1f14f9[_0x10767f(0x220)][_0x10767f(0x202)]&&(_0x4c0e03[_0x10767f(0x1f2)]=[{'all':!![]}]),_0x4c0e03=_[_0x10767f(0x1f8)]({},_0x4c0e03,_0x1f14f9[_0x10767f(0x1fd)]),db[_0x10767f(0x1fe)][_0x10767f(0x212)](_0x4c0e03)['then'](handleEntityNotFound(_0x189352,null))[_0x10767f(0x20e)](respondWithResult(_0x189352,null))[_0x10767f(0x224)](handleError(_0x189352,null));},exports['create']=function(_0x449b87,_0x43cf5b){const _0xdbd2d2=a283_0x39794e;return db['DeskField'][_0xdbd2d2(0x215)](_0x449b87[_0xdbd2d2(0x1f4)],{})[_0xdbd2d2(0x20e)](respondWithResult(_0x43cf5b,0xc9))[_0xdbd2d2(0x224)](handleError(_0x43cf5b,null));},exports[a283_0x39794e(0x21f)]=function(_0x2eb354,_0x4cd336){const _0x52d987=a283_0x39794e;return _0x2eb354[_0x52d987(0x1f4)]['id']&&delete _0x2eb354[_0x52d987(0x1f4)]['id'],db['DeskField'][_0x52d987(0x212)]({'where':{'id':_0x2eb354[_0x52d987(0x1f9)]['id']}})[_0x52d987(0x20e)](handleEntityNotFound(_0x4cd336,null))['then'](saveUpdates(_0x2eb354[_0x52d987(0x1f4)],null))[_0x52d987(0x20e)](respondWithResult(_0x4cd336,null))[_0x52d987(0x224)](handleError(_0x4cd336,null));},exports[a283_0x39794e(0x206)]=function(_0x2fd6dd,_0x48e0e0){const _0x34c025=a283_0x39794e;return db['DeskField'][_0x34c025(0x212)]({'where':{'id':_0x2fd6dd[_0x34c025(0x1f9)]['id']}})[_0x34c025(0x20e)](handleEntityNotFound(_0x48e0e0,null))[_0x34c025(0x20e)](removeEntity(_0x48e0e0,null))['catch'](handleError(_0x48e0e0,null));}; \ No newline at end of file diff --git a/server/api/intDeskField/intDeskField.model.js b/server/api/intDeskField/intDeskField.model.js index 0e1f8ef..0de5587 100644 --- a/server/api/intDeskField/intDeskField.model.js +++ b/server/api/intDeskField/intDeskField.model.js @@ -1 +1 @@ -const a239_0x3d1c=['FieldId','int_desk_fields','exports','./intDeskField.attributes','desk_unique_index'];(function(_0x9ba19,_0x3d1cc6){const _0x85c03c=function(_0x1b4884){while(--_0x1b4884){_0x9ba19['push'](_0x9ba19['shift']());}};_0x85c03c(++_0x3d1cc6);}(a239_0x3d1c,0x173));const a239_0x85c0=function(_0x9ba19,_0x3d1cc6){_0x9ba19=_0x9ba19-0x0;let _0x85c03c=a239_0x3d1c[_0x9ba19];return _0x85c03c;};const _0xf531e0=a239_0x85c0;'use strict';const attributes=require(_0xf531e0('0x2'));module[_0xf531e0('0x1')]=function(_0x1b4884){const _0x4b91f1=_0xf531e0,_0x118a54=_0x1b4884['define']('DeskField',attributes,{'tableName':_0x4b91f1('0x0'),'paranoid':![],'indexes':[{'name':_0x4b91f1('0x3'),'fields':['idField',_0x4b91f1('0x4')],'unique':!![]}],'timestamps':!![]});return _0x118a54;}; \ No newline at end of file +const a284_0x1681=['exports','DeskField','init','./intDeskField.attributes'];(function(_0x1cff45,_0xee217b){const _0x168157=function(_0x26c90a){while(--_0x26c90a){_0x1cff45['push'](_0x1cff45['shift']());}};_0x168157(++_0xee217b);}(a284_0x1681,0x172));const a284_0x26c9=function(_0x1cff45,_0xee217b){_0x1cff45=_0x1cff45-0xa3;let _0x168157=a284_0x1681[_0x1cff45];return _0x168157;};const a284_0x2d9709=a284_0x26c9;'use strict';const {Model}=require('sequelize'),{attributes}=require(a284_0x2d9709(0xa4)),{options}=require('./intDeskField.options');class DeskField extends Model{}function init(_0x10c6d8,_0x18a784){const _0x67a150=a284_0x2d9709,_0x5a68e1=options(_0x10c6d8),_0x2b2370=typeof _0x18a784==='function'?_0x18a784(_0x5a68e1):_0x5a68e1;return DeskField[_0x67a150(0xa3)](attributes,_0x2b2370),DeskField;}module[a284_0x2d9709(0xa5)][a284_0x2d9709(0xa6)]=DeskField,module[a284_0x2d9709(0xa5)][a284_0x2d9709(0xa3)]=init; \ No newline at end of file diff --git a/server/api/intDeskField/intDeskField.options.js b/server/api/intDeskField/intDeskField.options.js new file mode 100644 index 0000000..26a6a07 --- /dev/null +++ b/server/api/intDeskField/intDeskField.options.js @@ -0,0 +1 @@ +var a285_0x45c2=['int_desk_fields','exports','FieldId'];(function(_0x2c1182,_0x3d4cee){var _0x45c22b=function(_0x1624bb){while(--_0x1624bb){_0x2c1182['push'](_0x2c1182['shift']());}};_0x45c22b(++_0x3d4cee);}(a285_0x45c2,0x17d));var a285_0x1624=function(_0x2c1182,_0x3d4cee){_0x2c1182=_0x2c1182-0xd8;var _0x45c22b=a285_0x45c2[_0x2c1182];return _0x45c22b;};var a285_0x583f44=a285_0x1624;function options(_0x321488){var _0x33c3ce=a285_0x1624;return{'sequelize':_0x321488,'tableName':_0x33c3ce(0xd8),'paranoid':![],'indexes':[{'name':'desk_unique_index','fields':['idField',_0x33c3ce(0xda)],'unique':!![]}],'timestamps':!![]};}module[a285_0x583f44(0xd9)]['options']=options; \ No newline at end of file diff --git a/server/api/intDynamics365Account/index.js b/server/api/intDynamics365Account/index.js index abe462c..699b24a 100644 --- a/server/api/intDynamics365Account/index.js +++ b/server/api/intDynamics365Account/index.js @@ -1 +1 @@ -const a240_0x34db=['express','/:id','get','getConfigurations','index','post','exports','Router','put','isAuthenticated','update','destroy','./intDynamics365Account.controller','/:id/configurations','create','../../components/auth/service'];(function(_0x1e32a1,_0x34db10){const _0x50b875=function(_0x276d23){while(--_0x276d23){_0x1e32a1['push'](_0x1e32a1['shift']());}};_0x50b875(++_0x34db10);}(a240_0x34db,0x12e));const a240_0x50b8=function(_0x1e32a1,_0x34db10){_0x1e32a1=_0x1e32a1-0x0;let _0x50b875=a240_0x34db[_0x1e32a1];return _0x50b875;};const _0xa1eae8=a240_0x50b8;'use strict';const express=require(_0xa1eae8('0x2')),router=express[_0xa1eae8('0x9')](),auth=require(_0xa1eae8('0x1')),controller=require(_0xa1eae8('0xe'));router[_0xa1eae8('0x4')]('/',auth[_0xa1eae8('0xb')](),controller[_0xa1eae8('0x6')]),router[_0xa1eae8('0x4')]('/:id',auth['isAuthenticated'](),controller['show']),router['get'](_0xa1eae8('0xf'),auth[_0xa1eae8('0xb')](),controller[_0xa1eae8('0x5')]),router[_0xa1eae8('0x4')]('/:id/fields',auth[_0xa1eae8('0xb')](),controller['getFields']),router[_0xa1eae8('0x7')]('/',auth['isAuthenticated'](),controller[_0xa1eae8('0x0')]),router[_0xa1eae8('0x7')]('/:id/configurations',auth[_0xa1eae8('0xb')](),controller['addConfiguration']),router[_0xa1eae8('0xa')]('/:id',auth[_0xa1eae8('0xb')](),controller[_0xa1eae8('0xc')]),router['delete'](_0xa1eae8('0x3'),auth[_0xa1eae8('0xb')](),controller[_0xa1eae8('0xd')]),module[_0xa1eae8('0x8')]=router; \ No newline at end of file +const a286_0x5387=['post','Router','update','isAuthenticated','/:id/configurations','/:id/fields','create','getConfigurations','/:id','express','show','destroy','getFields','get','./intDynamics365Account.controller','delete','addConfiguration','exports','put','../../components/auth/service'];(function(_0x87b151,_0x4379c4){const _0x53874b=function(_0x6202bb){while(--_0x6202bb){_0x87b151['push'](_0x87b151['shift']());}};_0x53874b(++_0x4379c4);}(a286_0x5387,0x18c));const a286_0x6202=function(_0x87b151,_0x4379c4){_0x87b151=_0x87b151-0x10a;let _0x53874b=a286_0x5387[_0x87b151];return _0x53874b;};const a286_0x2e9485=a286_0x6202;'use strict';const express=require(a286_0x2e9485(0x117)),router=express[a286_0x2e9485(0x10f)](),auth=require(a286_0x2e9485(0x10d)),controller=require(a286_0x2e9485(0x11c));router['get']('/',auth[a286_0x2e9485(0x111)](),controller['index']),router[a286_0x2e9485(0x11b)]('/:id',auth['isAuthenticated'](),controller[a286_0x2e9485(0x118)]),router[a286_0x2e9485(0x11b)](a286_0x2e9485(0x112),auth[a286_0x2e9485(0x111)](),controller[a286_0x2e9485(0x115)]),router['get'](a286_0x2e9485(0x113),auth[a286_0x2e9485(0x111)](),controller[a286_0x2e9485(0x11a)]),router['post']('/',auth[a286_0x2e9485(0x111)](),controller[a286_0x2e9485(0x114)]),router[a286_0x2e9485(0x10e)](a286_0x2e9485(0x112),auth['isAuthenticated'](),controller[a286_0x2e9485(0x10a)]),router[a286_0x2e9485(0x10c)]('/:id',auth[a286_0x2e9485(0x111)](),controller[a286_0x2e9485(0x110)]),router[a286_0x2e9485(0x11d)](a286_0x2e9485(0x116),auth[a286_0x2e9485(0x111)](),controller[a286_0x2e9485(0x119)]),module[a286_0x2e9485(0x10b)]=router; \ No newline at end of file diff --git a/server/api/intDynamics365Account/intDynamics365Account.attributes.js b/server/api/intDynamics365Account/intDynamics365Account.attributes.js index 8069f07..e64104b 100644 --- a/server/api/intDynamics365Account/intDynamics365Account.attributes.js +++ b/server/api/intDynamics365Account/intDynamics365Account.attributes.js @@ -1 +1 @@ -const a241_0xc2d7=['STRING','exports','sequelize'];(function(_0xa6019d,_0xc2d750){const _0xc439b6=function(_0x3718c5){while(--_0x3718c5){_0xa6019d['push'](_0xa6019d['shift']());}};_0xc439b6(++_0xc2d750);}(a241_0xc2d7,0x1e2));const a241_0xc439=function(_0xa6019d,_0xc2d750){_0xa6019d=_0xa6019d-0x0;let _0xc439b6=a241_0xc2d7[_0xa6019d];return _0xc439b6;};const _0x23052b=a241_0xc439;'use strict';const Sequelize=require(_0x23052b('0x0'));module[_0x23052b('0x2')]={'name':{'type':Sequelize['STRING']},'username':{'type':Sequelize[_0x23052b('0x1')]},'password':{'type':Sequelize[_0x23052b('0x1')]},'remoteUri':{'type':Sequelize['STRING']},'tenantId':{'type':Sequelize[_0x23052b('0x1')]},'clientId':{'type':Sequelize[_0x23052b('0x1')]},'clientSecret':{'type':Sequelize['STRING']},'serverUrl':{'type':Sequelize[_0x23052b('0x1')]},'description':{'type':Sequelize[_0x23052b('0x1')]}}; \ No newline at end of file +const a287_0x4297=['sequelize','exports','STRING'];(function(_0x5d59ea,_0x4cc301){const _0x429741=function(_0x5f5760){while(--_0x5f5760){_0x5d59ea['push'](_0x5d59ea['shift']());}};_0x429741(++_0x4cc301);}(a287_0x4297,0x1da));const a287_0x5f57=function(_0x5d59ea,_0x4cc301){_0x5d59ea=_0x5d59ea-0x109;let _0x429741=a287_0x4297[_0x5d59ea];return _0x429741;};const a287_0x100cad=a287_0x5f57;'use strict';const {DataTypes}=require(a287_0x100cad(0x109)),attributes={'name':{'type':DataTypes[a287_0x100cad(0x10b)]},'username':{'type':DataTypes[a287_0x100cad(0x10b)]},'password':{'type':DataTypes[a287_0x100cad(0x10b)]},'remoteUri':{'type':DataTypes[a287_0x100cad(0x10b)]},'tenantId':{'type':DataTypes[a287_0x100cad(0x10b)]},'clientId':{'type':DataTypes[a287_0x100cad(0x10b)]},'clientSecret':{'type':DataTypes[a287_0x100cad(0x10b)]},'serverUrl':{'type':DataTypes[a287_0x100cad(0x10b)]},'description':{'type':DataTypes[a287_0x100cad(0x10b)]}};module[a287_0x100cad(0x10a)]['attributes']=attributes; \ No newline at end of file diff --git a/server/api/intDynamics365Account/intDynamics365Account.controller.js b/server/api/intDynamics365Account/intDynamics365Account.controller.js index 62847c4..bff6b8a 100644 --- a/server/api/intDynamics365Account/intDynamics365Account.controller.js +++ b/server/api/intDynamics365Account/intDynamics365Account.controller.js @@ -1 +1 @@ -const a242_0xa57d=['merge','modifiedon','masteridname','productserialnumber','VIRTUAL','Wrong\x20credentials','socialprofileidname',')?$select=LogicalName&$expand=Attributes($select=LogicalName)','undefined','GET','includeAll','StateAttributeMetadata','ticketnumber','onholdtime','concat','stack',')/Attributes(','statusCode','filters','Bearer\x20','modifiedbyexternalpartyname','phonecall_activity_parties','all','like','ownerid','BigIntAttributeMetadata','owneridyominame','util','%s/api/data/v9.0/','slice','length','customerid','@odata.type','resolveby','getSubjects','prioritycodename','DecimalAttributeMetadata','createdbyexternalpartyname','type','createdonbehalfbyyominame','exchangerate','modifiedbyyominame','createdon','request-promise-native','MemoAttributeMetadata','modifiedonbehalfbyname','filter','modifiedonbehalfbyyominame','Options','api','where','query','UserLocalizedLabel','OptionSet','numberofchildincidents','entityimage_timestamp','limit','IntegerAttributeMetadata','push','sentimentvalue','lodash','../../components/parsers/qs','$select=DisplayName,LogicalName&$expand=OptionSet($select=Options)','substring','productidname','responseby','sort','DisplayName','then','show','username','customeridyominame','lastIndexOf','Incident','attributes','customeridtype','responsiblecontactidname','owneridtype','create','isNil','phonenumber','rawAttributes','include','sequelize','DoubleAttributeMetadata',')/Microsoft.Dynamics.CRM.BooleanAttributeMetadata?$select=DisplayName,LogicalName&$expand=OptionSet($select=FalseOption,\x20TrueOption)','TrueOption','error','index','emailaddress','clientId','nolimit','transactioncurrencyidname','Dynamics365Field','billedserviceunits','kbarticleidname','statuscode','findOne','body','modifiedbyname','test','timezoneruleversionnumber','accountidname','false','access_token','format','FalseOption','intersection','getFields','forEach','Dynamics365Configuration','modifiedbyexternalpartyyominame','model','slainvokedidname',')/Microsoft.Dynamics.CRM.PicklistAttributeMetadata?','update','followupby','subjectidname','msdyn_iotalertname','fieldName','createdbyname','params','pick','StatusAttributeMetadata','caseorigincode','https://login.microsoftonline.com/','influencescore','findAll','true','EntityDefinitions(','responsiblecontactidyominame','PicklistAttributeMetadata','addConfiguration','MetadataId','map','createdbyexternalpartyyominame','send','clientSecret','incident','createdonbehalfbyname','offset','statecode','contractdetailidname','Dynamics365Account','Descriptions','PhoneCall','remove','key','json','getConfigurations','entitlementidname','owneridname','keys','DateTimeAttributeMetadata','end','Label','value','createdbyyominame','Content-Range','4.0','entityimage_url','EntityNameAttributeMetadata','LogicalName','primarycontactidname','password','order','../../config/logger','remoteUri','directioncode','count','resolvebykpiidname','name','status','catch','traversedpath','tenantId','destroy','actualserviceunits','fields'];(function(_0x98abcb,_0xa57d4e){const _0x489c1c=function(_0x478e2c){while(--_0x478e2c){_0x98abcb['push'](_0x98abcb['shift']());}};_0x489c1c(++_0xa57d4e);}(a242_0xa57d,0x1c7));const a242_0x489c=function(_0x98abcb,_0xa57d4e){_0x98abcb=_0x98abcb-0x0;let _0x489c1c=a242_0xa57d[_0x98abcb];return _0x489c1c;};const _0x4cf0f6=a242_0x489c;'use strict';const rp=require(_0x4cf0f6('0x7d')),util=require(_0x4cf0f6('0x6d')),_=require(_0x4cf0f6('0x8e')),qs=require(_0x4cf0f6('0x8f')),logger=require(_0x4cf0f6('0x45'))(_0x4cf0f6('0x83')),db=require('../../mysqldb')['db'],{Op}=require(_0x4cf0f6('0xa5')),integrations=require('../../components/integrations/configuration');function respondWithResult(_0x478e2c,_0x524c99){return _0x524c99=_0x524c99||0xc8,function(_0x31fcf2){const _0xfc5c09=a242_0x489c;if(_0x31fcf2)return _0x478e2c[_0xfc5c09('0x4b')](_0x524c99)['json'](_0x31fcf2);};}function respondWithFilteredResult(_0x1225e9,_0x38cc9c){return function(_0x435856){const _0x23c04e=a242_0x489c;if(_0x435856){const _0x27fa2b=_0x435856[_0x23c04e('0x48')],_0x3bedc6=_0x38cc9c[_0x23c04e('0x2b')];let _0x55dd0c=_0x38cc9c[_0x23c04e('0x2b')]+_0x38cc9c[_0x23c04e('0x8a')],_0x4b462d;return _0x55dd0c>=_0x27fa2b?(_0x55dd0c=_0x27fa2b,_0x4b462d=0xc8):_0x4b462d=0xce,_0x1225e9[_0x23c04e('0x4b')](_0x4b462d),_0x1225e9['set'](_0x23c04e('0x3d'),_0x3bedc6+'-'+_0x55dd0c+'/'+_0x27fa2b)[_0x23c04e('0x33')](_0x435856);}return null;};}function saveUpdates(_0x64f111){return function(_0x2ed2f9){const _0x3ccecb=a242_0x489c;if(_0x2ed2f9)return _0x2ed2f9[_0x3ccecb('0x12')](_0x64f111)[_0x3ccecb('0x96')](function(_0x338173){return _0x338173;});return null;};}function removeEntity(_0x3b8bca){return function(_0x50b7c4){if(_0x50b7c4)return _0x50b7c4['destroy']()['then'](function(){const _0x469276=a242_0x489c;_0x3b8bca[_0x469276('0x4b')](0xcc)[_0x469276('0x39')]();});};}function handleEntityNotFound(_0x2058c5){return function(_0x2907a2){return!_0x2907a2&&_0x2058c5['sendStatus'](0x194),_0x2907a2;};}function handleError(_0x57d4ae,_0x3224fb){return _0x3224fb=_0x3224fb||0x1f4,function(_0xb77e97){const _0x1e11ba=a242_0x489c;logger[_0x1e11ba('0xa9')](_0xb77e97[_0x1e11ba('0x61')]),_0xb77e97[_0x1e11ba('0x4a')]&&delete _0xb77e97['name'],_0x57d4ae[_0x1e11ba('0x4b')](_0x3224fb)[_0x1e11ba('0x27')](_0xb77e97);};}exports[_0x4cf0f6('0xaa')]=function(_0x13af5c,_0x3398c4){const _0x4af55c=_0x4cf0f6;let _0x3f246e={};const _0x15ed7f={},_0x367a7f={'count':0x0,'rows':[]},_0x352b44=_[_0x4af55c('0x25')](db[_0x4af55c('0x2e')][_0x4af55c('0xa3')],function(_0x4e3a64){const _0x530dcd=_0x4af55c;return{'name':_0x4e3a64[_0x530dcd('0x16')],'type':_0x4e3a64[_0x530dcd('0x78')][_0x530dcd('0x32')]};});_0x15ed7f[_0x4af55c('0xf')]=_['map'](_0x352b44,_0x4af55c('0x4a')),_0x15ed7f[_0x4af55c('0x85')]=_[_0x4af55c('0x37')](_0x13af5c[_0x4af55c('0x85')]),_0x15ed7f[_0x4af55c('0x64')]=_[_0x4af55c('0xa')](_0x15ed7f[_0x4af55c('0xf')],_0x15ed7f[_0x4af55c('0x85')]),_0x3f246e[_0x4af55c('0x9c')]=_[_0x4af55c('0xa')](_0x15ed7f['model'],qs[_0x4af55c('0x51')](_0x13af5c[_0x4af55c('0x85')][_0x4af55c('0x51')])),_0x3f246e[_0x4af55c('0x9c')]=_0x3f246e['attributes'][_0x4af55c('0x70')]?_0x3f246e[_0x4af55c('0x9c')]:_0x15ed7f[_0x4af55c('0xf')];typeof _0x13af5c[_0x4af55c('0x85')][_0x4af55c('0xad')]===_0x4af55c('0x5a')&&(_0x3f246e[_0x4af55c('0x8a')]=qs[_0x4af55c('0x8a')](_0x13af5c['query'][_0x4af55c('0x8a')]),_0x3f246e['offset']=qs[_0x4af55c('0x2b')](_0x13af5c[_0x4af55c('0x85')]['offset']));_0x3f246e[_0x4af55c('0x44')]=qs[_0x4af55c('0x94')](_0x13af5c[_0x4af55c('0x85')]['sort']),_0x3f246e['where']=qs[_0x4af55c('0x64')](_[_0x4af55c('0x19')](_0x13af5c['query'],_0x15ed7f[_0x4af55c('0x64')]),_0x352b44);_0x13af5c[_0x4af55c('0x85')][_0x4af55c('0x80')]&&(_0x3f246e[_0x4af55c('0x84')]=_[_0x4af55c('0x52')](_0x3f246e['where'],{[Op['or']]:_[_0x4af55c('0x25')](_0x352b44,function(_0x1d28cb){const _0x5a8305=_0x4af55c;if(_0x1d28cb[_0x5a8305('0x78')]!==_0x5a8305('0x56')){const _0x4639b9={};return _0x4639b9[_0x1d28cb[_0x5a8305('0x4a')]]={[Op['like']]:'%'+_0x13af5c['query'][_0x5a8305('0x80')]+'%'},_0x4639b9;}})}));_0x3f246e=_[_0x4af55c('0x52')]({},_0x3f246e,_0x13af5c['options']);const _0x3906a3={'where':_0x3f246e['where']};return db[_0x4af55c('0x2e')]['count'](_0x3906a3)[_0x4af55c('0x96')](function(_0x1be33a){const _0x2d2d44=_0x4af55c;return _0x367a7f[_0x2d2d44('0x48')]=_0x1be33a,_0x13af5c[_0x2d2d44('0x85')]['includeAll']&&(_0x3f246e[_0x2d2d44('0xa4')]=[{'all':!![]}]),db[_0x2d2d44('0x2e')][_0x2d2d44('0x1e')](_0x3f246e);})[_0x4af55c('0x96')](function(_0x12636f){return _0x367a7f['rows']=_0x12636f,_0x367a7f;})[_0x4af55c('0x96')](respondWithFilteredResult(_0x3398c4,_0x3f246e))[_0x4af55c('0x4c')](handleError(_0x3398c4,null));},exports[_0x4cf0f6('0x97')]=function(_0x33fc01,_0x107119){const _0x2d3b84=_0x4cf0f6;let _0x45bb9f={'raw':![],'where':{'id':_0x33fc01[_0x2d3b84('0x18')]['id']}};const _0x133282={};return _0x133282['model']=_[_0x2d3b84('0x37')](db[_0x2d3b84('0x2e')][_0x2d3b84('0xa3')]),_0x133282[_0x2d3b84('0x85')]=_['keys'](_0x33fc01[_0x2d3b84('0x85')]),_0x133282[_0x2d3b84('0x64')]=_[_0x2d3b84('0xa')](_0x133282[_0x2d3b84('0xf')],_0x133282['query']),_0x45bb9f[_0x2d3b84('0x9c')]=_['intersection'](_0x133282['model'],qs[_0x2d3b84('0x51')](_0x33fc01[_0x2d3b84('0x85')][_0x2d3b84('0x51')])),_0x45bb9f[_0x2d3b84('0x9c')]=_0x45bb9f[_0x2d3b84('0x9c')][_0x2d3b84('0x70')]?_0x45bb9f[_0x2d3b84('0x9c')]:_0x133282[_0x2d3b84('0xf')],_0x33fc01['query'][_0x2d3b84('0x5c')]&&(_0x45bb9f[_0x2d3b84('0xa4')]=[{'all':!![]}]),_0x45bb9f=_[_0x2d3b84('0x52')]({},_0x45bb9f,_0x33fc01['options']),db['Dynamics365Account']['findOne'](_0x45bb9f)[_0x2d3b84('0x96')](handleEntityNotFound(_0x107119,null))[_0x2d3b84('0x96')](respondWithResult(_0x107119,null))['catch'](handleError(_0x107119,null));},exports[_0x4cf0f6('0xa0')]=function(_0x2bf335,_0x168e68){const _0x1e81a2=_0x4cf0f6;return db[_0x1e81a2('0x2e')]['create'](_0x2bf335['body'],{})[_0x1e81a2('0x96')](respondWithResult(_0x168e68,0xc9))['catch'](handleError(_0x168e68,null));},exports[_0x4cf0f6('0x12')]=function(_0x2fab57,_0x377ef5){const _0x3e809b=_0x4cf0f6;return _0x2fab57['body']['id']&&delete _0x2fab57[_0x3e809b('0x1')]['id'],db['Dynamics365Account'][_0x3e809b('0x0')]({'where':{'id':_0x2fab57[_0x3e809b('0x18')]['id']}})[_0x3e809b('0x96')](handleEntityNotFound(_0x377ef5,null))[_0x3e809b('0x96')](saveUpdates(_0x2fab57[_0x3e809b('0x1')],null))[_0x3e809b('0x96')](respondWithResult(_0x377ef5,null))[_0x3e809b('0x4c')](handleError(_0x377ef5,null));},exports[_0x4cf0f6('0x4f')]=function(_0x1f3630,_0x5a3ff7){const _0x195ce9=_0x4cf0f6;return db[_0x195ce9('0x2e')][_0x195ce9('0x0')]({'where':{'id':_0x1f3630[_0x195ce9('0x18')]['id']}})[_0x195ce9('0x96')](handleEntityNotFound(_0x5a3ff7,null))[_0x195ce9('0x96')](removeEntity(_0x5a3ff7,null))[_0x195ce9('0x4c')](handleError(_0x5a3ff7,null));},exports[_0x4cf0f6('0x34')]=function(_0x4e4aa3,_0x5260f8){const _0x57dbec=_0x4cf0f6;let _0x2a88e8={};const _0x98b1eb={};let _0x173557,_0x209040;return db[_0x57dbec('0x2e')][_0x57dbec('0x0')]({'where':{'id':_0x4e4aa3[_0x57dbec('0x18')]['id']}})[_0x57dbec('0x96')](handleEntityNotFound(_0x5260f8,null))[_0x57dbec('0x96')](function(_0xa3085){const _0xd9dfc9=_0x57dbec;if(_0xa3085)return _0x173557=_0xa3085,_0x98b1eb['model']=_['keys'](db[_0xd9dfc9('0xd')][_0xd9dfc9('0xa3')]),_0x98b1eb[_0xd9dfc9('0x85')]=_[_0xd9dfc9('0x37')](_0x4e4aa3[_0xd9dfc9('0x85')]),_0x98b1eb['filters']=_[_0xd9dfc9('0xa')](_0x98b1eb[_0xd9dfc9('0xf')],_0x98b1eb[_0xd9dfc9('0x85')]),_0x2a88e8['attributes']=_[_0xd9dfc9('0xa')](_0x98b1eb[_0xd9dfc9('0xf')],qs['fields'](_0x4e4aa3[_0xd9dfc9('0x85')][_0xd9dfc9('0x51')])),_0x2a88e8[_0xd9dfc9('0x9c')]=_0x2a88e8['attributes'][_0xd9dfc9('0x70')]?_0x2a88e8[_0xd9dfc9('0x9c')]:_0x98b1eb[_0xd9dfc9('0xf')],_0x2a88e8['order']=qs[_0xd9dfc9('0x94')](_0x4e4aa3['query']['sort']),_0x2a88e8['where']=qs[_0xd9dfc9('0x64')](_[_0xd9dfc9('0x19')](_0x4e4aa3[_0xd9dfc9('0x85')],_0x98b1eb[_0xd9dfc9('0x64')])),_0x4e4aa3['query'][_0xd9dfc9('0x80')]&&(_0x2a88e8[_0xd9dfc9('0x84')]=_[_0xd9dfc9('0x52')](_0x2a88e8[_0xd9dfc9('0x84')],{[Op['or']]:_['map'](_0x2a88e8[_0xd9dfc9('0x9c')],function(_0x12e09b){const _0x4a17fd=_0xd9dfc9,_0x3fc6cb={};return _0x3fc6cb[_0x12e09b]={[Op[_0x4a17fd('0x69')]]:'%'+_0x4e4aa3[_0x4a17fd('0x85')]['filter']+'%'},_0x3fc6cb;})})),_0x2a88e8=_[_0xd9dfc9('0x52')]({},_0x2a88e8,_0x4e4aa3['options']),_0x173557[_0xd9dfc9('0x34')](_0x2a88e8);})[_0x57dbec('0x96')](function(_0x2cbc8c){const _0x3d9c79=_0x57dbec;if(_0x2cbc8c)return _0x209040=_0x2cbc8c['length'],typeof _0x4e4aa3['query'][_0x3d9c79('0xad')]===_0x3d9c79('0x5a')&&(_0x2a88e8[_0x3d9c79('0x8a')]=qs['limit'](_0x4e4aa3[_0x3d9c79('0x85')][_0x3d9c79('0x8a')]),_0x2a88e8[_0x3d9c79('0x2b')]=qs[_0x3d9c79('0x2b')](_0x4e4aa3[_0x3d9c79('0x85')]['offset'])),_0x173557['getConfigurations'](_0x2a88e8);})[_0x57dbec('0x96')](function(_0x9c2c22){if(_0x9c2c22)return _0x9c2c22?{'count':_0x209040,'rows':_0x9c2c22}:null;})['then'](respondWithResult(_0x5260f8,null))[_0x57dbec('0x4c')](handleError(_0x5260f8,null));},exports[_0x4cf0f6('0x23')]=function(_0x28d429,_0x26d1f8){const _0x4aeaef=_0x4cf0f6;return _0x28d429['body']['id']&&delete _0x28d429[_0x4aeaef('0x1')]['id'],db[_0x4aeaef('0x2e')]['findOne']({'where':{'id':_0x28d429[_0x4aeaef('0x18')]['id']}})['then'](handleEntityNotFound(_0x26d1f8,null))[_0x4aeaef('0x96')](function(_0x57d706){const _0x5a2477=_0x4aeaef;if(_0x57d706)return _0x28d429[_0x5a2477('0x1')]['AccountId']=_0x57d706['id'],_0x28d429[_0x5a2477('0x1')]['Subjects']=integrations[_0x5a2477('0x74')](_0x28d429[_0x5a2477('0x1')]['channel'],_0x28d429[_0x5a2477('0x1')][_0x5a2477('0x78')]),_0x28d429[_0x5a2477('0x1')]['Descriptions']=integrations['getDescriptions'](_0x28d429[_0x5a2477('0x1')]['channel'],_0x28d429[_0x5a2477('0x1')]['type']),db[_0x5a2477('0xd')]['create'](_0x28d429[_0x5a2477('0x1')],{'include':[{'model':db['Dynamics365Field'],'as':'Subjects'},{'model':db[_0x5a2477('0xaf')],'as':_0x5a2477('0x2f')}]});return null;})[_0x4aeaef('0x96')](respondWithResult(_0x26d1f8,null))['catch'](handleError(_0x26d1f8,null));},exports[_0x4cf0f6('0xb')]=function(_0x246854,_0x21f2a7){const _0x1814eb=_0x4cf0f6,_0x5be5b0=_0x246854[_0x1814eb('0x85')]['ticketType'],_0x3b231f=_0x5be5b0===_0x1814eb('0x29')?_0x1814eb('0x9b'):_0x1814eb('0x30');let _0x11c9de='',_0x531c7e='',_0x5a9984='',_0x5dbd45='',_0x8eaac1='',_0x334358='',_0x2827cf='',_0x4a5550='';const _0x1a8de6=['title','description',_0x1814eb('0x71'),_0x1814eb('0x6a'),_0x1814eb('0x1b'),'subject',_0x1814eb('0xa2'),'regardingobjectid',_0x1814eb('0x47'),_0x1814eb('0x67')],_0x24adf5=[_0x1814eb('0x5'),'accountidyominame',_0x1814eb('0x50'),_0x1814eb('0xb0'),'contactidname','contactidyominame',_0x1814eb('0x2d'),'contractidname',_0x1814eb('0x77'),_0x1814eb('0x26'),_0x1814eb('0x17'),_0x1814eb('0x3c'),_0x1814eb('0x7c'),_0x1814eb('0x2a'),_0x1814eb('0x79'),'customeridname',_0x1814eb('0x9d'),_0x1814eb('0x99'),_0x1814eb('0xab'),_0x1814eb('0x35'),_0x1814eb('0x89'),_0x1814eb('0x3f'),'escalatedon',_0x1814eb('0x7a'),'firstresponsebykpiidname',_0x1814eb('0x13'),'importsequencenumber',_0x1814eb('0x1d'),_0x1814eb('0xb1'),'lastonholdtime',_0x1814eb('0x54'),_0x1814eb('0x66'),_0x1814eb('0xe'),_0x1814eb('0x2'),_0x1814eb('0x7b'),_0x1814eb('0x53'),_0x1814eb('0x7f'),_0x1814eb('0x81'),'msdyn_incidenttypename',_0x1814eb('0x15'),_0x1814eb('0x88'),_0x1814eb('0x5f'),'overriddencreatedon',_0x1814eb('0x36'),_0x1814eb('0x9f'),_0x1814eb('0x6c'),'parentcaseidname',_0x1814eb('0x42'),'primarycontactidyominame',_0x1814eb('0x75'),_0x1814eb('0x92'),_0x1814eb('0x55'),_0x1814eb('0x73'),_0x1814eb('0x49'),_0x1814eb('0x93'),_0x1814eb('0x9e'),_0x1814eb('0x21'),_0x1814eb('0x8d'),_0x1814eb('0x10'),'slaname',_0x1814eb('0x58'),_0x1814eb('0x2c'),_0x1814eb('0xb2'),_0x1814eb('0x14'),_0x1814eb('0x5e'),_0x1814eb('0x4'),_0x1814eb('0xae'),_0x1814eb('0x4d'),'utcconversiontimezonecode','versionnumber'],_0x3d1e9c=_0x1a8de6[_0x1814eb('0x60')](_0x24adf5);return db[_0x1814eb('0x2e')][_0x1814eb('0x0')]({'where':{'id':_0x246854['params']['id']},'attributes':['id',_0x1814eb('0x98'),_0x1814eb('0x43'),_0x1814eb('0x46'),_0x1814eb('0x4e'),_0x1814eb('0xac'),_0x1814eb('0x28')]})[_0x1814eb('0x96')](handleEntityNotFound(_0x21f2a7,null))[_0x1814eb('0x96')](function(_0x25eac3){const _0x4ee8a9=_0x1814eb;if(_0x25eac3){_0x4a5550=_0x25eac3[_0x4ee8a9('0x46')];const _0x1c50f5=_0x4a5550[_0x4ee8a9('0x6f')](-0x1);_0x1c50f5==='/'&&(_0x4a5550=_0x4a5550[_0x4ee8a9('0x91')](0x0,_0x4a5550[_0x4ee8a9('0x9a')](_0x1c50f5)));_0x2827cf=util[_0x4ee8a9('0x8')](_0x4ee8a9('0x6e'),_0x4a5550);const _0xb27307={'method':'POST','uri':_0x4ee8a9('0x1c')+_0x25eac3[_0x4ee8a9('0x4e')]+'/oauth2/token','form':{'client_id':_0x25eac3[_0x4ee8a9('0xac')],'resource':_0x4a5550,'username':_0x25eac3['username'],'password':_0x25eac3[_0x4ee8a9('0x43')],'grant_type':_0x4ee8a9('0x43'),'client_secret':_0x25eac3[_0x4ee8a9('0x28')]},'json':!![]};return rp(_0xb27307);}})[_0x1814eb('0x96')](function(_0x43c9d6){const _0x59a928=_0x1814eb;_0x334358=_0x43c9d6[_0x59a928('0x7')];const _0x46b3c5={'method':_0x59a928('0x5b'),'uri':encodeURI(_0x2827cf+'EntityDefinitions?$select=DisplayName,EntitySetName&$filter=SchemaName\x20eq\x20\x27'+_0x3b231f+'\x27'),'headers':{'Authorization':_0x59a928('0x65')+_0x334358,'If-None-Match':null,'OData-Version':_0x59a928('0x3e')},'json':!![]};return rp(_0x46b3c5);})[_0x1814eb('0x96')](function(_0x197b64){const _0x297846=_0x1814eb,_0x7fc1d=_0x197b64[_0x297846('0x3b')][0x0],_0x2a96c5=_0x7fc1d[_0x297846('0x24')],_0x4f10ca={'method':_0x297846('0x5b'),'uri':_0x2827cf+_0x297846('0x20')+_0x2a96c5+_0x297846('0x59'),'headers':{'Authorization':_0x297846('0x65')+_0x334358,'If-None-Match':null,'OData-Version':'4.0'},'json':!![]};return rp(_0x4f10ca);})[_0x1814eb('0x96')](function(_0x446995){const _0x59aeee=_0x1814eb;_0x11c9de=_0x446995,_0x531c7e=_0x11c9de['Attributes'],_0x531c7e=_[_0x59aeee('0x31')](_0x531c7e,function(_0x24c310){const _0x173b82=_0x59aeee;return!_0x3d1e9c['includes'](_0x24c310[_0x173b82('0x41')]);});const _0x1387e6=[],_0x18467f=[];return _0x531c7e[_0x59aeee('0xc')](function(_0x2c3665){const _0x596934=_0x59aeee;if(_0x2c3665[_0x596934('0x72')]){const _0x2d8612=_0x2c3665[_0x596934('0x72')][_0x596934('0x91')](_0x2c3665['@odata.type'][_0x596934('0x9a')]('.')+0x1);_0x2d8612===_0x596934('0x22')&&_0x1387e6[_0x596934('0x8c')](getSelectList(_0x2827cf,_0x5be5b0,_0x18467f,_0x11c9de[_0x596934('0x24')],_0x2c3665[_0x596934('0x24')],_0x334358));}}),Promise[_0x59aeee('0x68')](_0x1387e6);})[_0x1814eb('0x96')](function(_0x29be3f){const _0x2d71d7=_0x1814eb;_0x5a9984=_0x29be3f[0x0];const _0x2edd5f=[],_0x578bcf=[];return _0x531c7e[_0x2d71d7('0xc')](function(_0x4dce5f){const _0x1809f4=_0x2d71d7;if(!_[_0x1809f4('0xa1')](_0x4dce5f[_0x1809f4('0x72')])){const _0x58d13f=_0x4dce5f[_0x1809f4('0x72')][_0x1809f4('0x91')](_0x4dce5f[_0x1809f4('0x72')][_0x1809f4('0x9a')]('.')+0x1);_0x58d13f==='BooleanAttributeMetadata'&&_0x2edd5f[_0x1809f4('0x8c')](getBooleanList(_0x2827cf,_0x5be5b0,_0x578bcf,_0x11c9de[_0x1809f4('0x24')],_0x4dce5f[_0x1809f4('0x24')],_0x334358));}}),Promise['all'](_0x2edd5f);})[_0x1814eb('0x96')](function(_0x1ad6b7){const _0x3e5b37=_0x1814eb;_0x5dbd45=_0x1ad6b7[0x0];const _0x35098e=[],_0xd7a637=[];return _0x531c7e['forEach'](function(_0x5c0ef6){const _0x17fed9=a242_0x489c;if(_0x5c0ef6[_0x17fed9('0x72')]){const _0x1a1d0f=_0x5c0ef6[_0x17fed9('0x72')][_0x17fed9('0x91')](_0x5c0ef6['@odata.type'][_0x17fed9('0x9a')]('.')+0x1);(_0x1a1d0f==='StringAttributeMetadata'||_0x1a1d0f===_0x17fed9('0xa6')||_0x1a1d0f===_0x17fed9('0x6b')||_0x1a1d0f===_0x17fed9('0x8b')||_0x1a1d0f===_0x17fed9('0x7e')||_0x1a1d0f===_0x17fed9('0x38')||_0x1a1d0f===_0x17fed9('0x1a')||_0x1a1d0f===_0x17fed9('0x40')||_0x1a1d0f===_0x17fed9('0x5d')||_0x1a1d0f===_0x17fed9('0x76'))&&_0x35098e[_0x17fed9('0x8c')](getInputList(_0x2827cf,_0x5be5b0,_0x1a1d0f,_0xd7a637,_0x11c9de[_0x17fed9('0x24')],_0x5c0ef6[_0x17fed9('0x24')],_0x334358));}}),Promise[_0x3e5b37('0x68')](_0x35098e);})['then'](function(_0x979219){const _0x3c253b=_0x1814eb;_0x8eaac1=_0x979219[0x0];const _0x15c8d4=_0x5a9984[_0x3c253b('0x60')](_0x5dbd45)[_0x3c253b('0x60')](_0x8eaac1),_0x134da6={'count':_0x15c8d4[_0x3c253b('0x70')],'rows':_0x15c8d4};return _0x134da6;})['then'](respondWithResult(_0x21f2a7,null))[_0x1814eb('0x4c')](function(_0x46e586){const _0x2cb829=_0x1814eb;let _0x3f3e70=_0x246854['query'][_0x2cb829('0x3')]?0x1f4:_0x46e586[_0x2cb829('0x63')]||0x1f4;logger[_0x2cb829('0xa9')](_0x46e586[_0x2cb829('0x61')]),delete _0x46e586['name'],_0x3f3e70===0x191&&(_0x3f3e70=0x190),_0x21f2a7[_0x2cb829('0x4b')](_0x3f3e70)[_0x2cb829('0x27')](_0x246854['query'][_0x2cb829('0x3')]?{'message':_0x2cb829('0x57'),'statusCode':_0x46e586[_0x2cb829('0x63')]}:_0x46e586);});};function getSelectList(_0x233662,_0x3e19e1,_0x47afa1,_0x10cee1,_0x3b2a5f,_0x1d3510){const _0x44c382=_0x4cf0f6,_0xf3dd2a={'method':'GET','uri':_0x233662+_0x44c382('0x20')+_0x10cee1+_0x44c382('0x62')+_0x3b2a5f+_0x44c382('0x11')+_0x44c382('0x90'),'headers':{'Authorization':_0x44c382('0x65')+_0x1d3510,'If-None-Match':null,'OData-Version':'4.0'},'json':!![]};return rp(_0xf3dd2a)[_0x44c382('0x96')](function(_0x4f3776){const _0x35c3be=_0x44c382,_0x4ba86b=[],_0x5166f4=_0x4f3776[_0x35c3be('0x87')][_0x35c3be('0x82')];_0x5166f4[_0x35c3be('0xc')](function(_0x2cabc1){const _0x152889=_0x35c3be;_0x4ba86b[_0x152889('0x8c')]({'name':_0x2cabc1[_0x152889('0x3a')][_0x152889('0x86')][_0x152889('0x3a')],'value':String(_0x2cabc1['Value'])});});const _0x5a1327={'id':_0x3e19e1+'_'+_0x4f3776[_0x35c3be('0x41')],'name':_0x4f3776[_0x35c3be('0x95')][_0x35c3be('0x86')][_0x35c3be('0x3a')],'custom':![],'options':_0x4ba86b};return _0x47afa1[_0x35c3be('0x8c')](_0x5a1327),_0x47afa1;});}function getBooleanList(_0x2212ba,_0xb6f074,_0x379ef2,_0x17c5fb,_0x3a0226,_0x213372){const _0x41ee44=_0x4cf0f6,_0x370874={'method':_0x41ee44('0x5b'),'uri':_0x2212ba+_0x41ee44('0x20')+_0x17c5fb+_0x41ee44('0x62')+_0x3a0226+_0x41ee44('0xa7'),'headers':{'Authorization':_0x41ee44('0x65')+_0x213372,'If-None-Match':null,'OData-Version':_0x41ee44('0x3e')},'json':!![]};return rp(_0x370874)[_0x41ee44('0x96')](function(_0x17a9f9){const _0x4dca7d=_0x41ee44,_0x2645a7=[];_0x2645a7['push']({'name':_0x17a9f9['OptionSet'][_0x4dca7d('0xa8')][_0x4dca7d('0x3a')]['UserLocalizedLabel'][_0x4dca7d('0x3a')],'value':_0x4dca7d('0x1f')},{'name':_0x17a9f9[_0x4dca7d('0x87')][_0x4dca7d('0x9')][_0x4dca7d('0x3a')][_0x4dca7d('0x86')]['Label'],'value':_0x4dca7d('0x6')});const _0x41f00d={'id':_0xb6f074+'_'+_0x17a9f9[_0x4dca7d('0x41')],'name':_0x17a9f9[_0x4dca7d('0x95')]['UserLocalizedLabel']['Label'],'custom':![],'options':_0x2645a7};return _0x379ef2[_0x4dca7d('0x8c')](_0x41f00d),_0x379ef2;});}function getInputList(_0x141473,_0x31cbb1,_0x1dca2d,_0x31e228,_0x3f7846,_0x18a0af,_0x38439b){const _0x243a65=_0x4cf0f6,_0x4c6092={'method':_0x243a65('0x5b'),'uri':_0x141473+_0x243a65('0x20')+_0x3f7846+_0x243a65('0x62')+_0x18a0af+')/Microsoft.Dynamics.CRM.'+_0x1dca2d+'?$select=DisplayName,LogicalName','headers':{'Authorization':'Bearer\x20'+_0x38439b,'If-None-Match':null,'OData-Version':_0x243a65('0x3e')},'json':!![]};return rp(_0x4c6092)[_0x243a65('0x96')](function(_0x26733b){const _0x23dedd=_0x243a65,_0x1c960a={'id':_0x31cbb1+'_'+_0x26733b[_0x23dedd('0x41')],'name':_0x26733b[_0x23dedd('0x95')][_0x23dedd('0x86')]?_0x26733b[_0x23dedd('0x95')][_0x23dedd('0x86')][_0x23dedd('0x3a')]:_0x26733b[_0x23dedd('0x41')],'custom':![],'options':[]};return _0x31e228[_0x23dedd('0x8c')](_0x1c960a),_0x31e228;});} \ No newline at end of file +const a288_0x1674=['$select=DisplayName,LogicalName&$expand=OptionSet($select=Options)','transactioncurrencyidname','Label','Dynamics365Field','remoteUri','versionnumber','productserialnumber','ticketType','?$select=DisplayName,LogicalName','intersection','tenantId','addConfiguration','Subjects','productidname','model','directioncode','OptionSet','statecode','map','substring','DecimalAttributeMetadata','entitlementidname','entityimage_url','count','subject','forEach','@odata.type','json','sendStatus','show','slaname','getSubjects','filter','subjectidname','include','DateTimeAttributeMetadata','includeAll','slice','influencescore','nolimit','type','format','limit','lastonholdtime','fields','createdbyexternalpartyyominame','EntityNameAttributeMetadata','offset','Descriptions','responsiblecontactidyominame','caseorigincode','includes','importsequencenumber','index',')?$select=LogicalName&$expand=Attributes($select=LogicalName)','modifiedonbehalfbyname','set','request-promise-native','/oauth2/token','then','POST','ownerid','msdyn_iotalertname','update','MetadataId','MemoAttributeMetadata','true','firstresponsebykpiidname','pick','params','stack','body','owneridyominame','merge','escalatedon','GET','error','false','createdbyyominame','api','sentimentvalue','../../config/logger','all','modifiedonbehalfbyyominame','rawAttributes','status','Content-Range','StringAttributeMetadata','accountidname','where','overriddencreatedon','key',')/Microsoft.Dynamics.CRM.PicklistAttributeMetadata?','modifiedbyyominame','destroy','undefined','contractidname','Bearer\x20','name','../../mysqldb','lastIndexOf','TrueOption','owneridtype','parentcaseidname','clientSecret','resolvebykpiidname','PhoneCall','4.0','filters','remove','contactidyominame','DisplayName','customeridtype','StateAttributeMetadata','UserLocalizedLabel','username','modifiedon','getDescriptions','Dynamics365Account','onholdtime','findAll','password','LogicalName','msdyn_incidenttypename','statusCode','test','util','numberofchildincidents','Value','channel','createdbyname','ticketnumber','like','Attributes','customeridyominame','value','isNil','sort','catch','emailaddress','primarycontactidyominame','keys','masteridname','regardingobjectid','concat','getFields','getConfigurations','FalseOption',')/Attributes(','createdonbehalfbyyominame','options','prioritycodename','send','length','Options','modifiedbyname',')/Microsoft.Dynamics.CRM.BooleanAttributeMetadata?$select=DisplayName,LogicalName&$expand=OptionSet($select=FalseOption,\x20TrueOption)','StatusAttributeMetadata','entityimage_timestamp','order','actualserviceunits','attributes','push','query','findOne','utcconversiontimezonecode','socialprofileidname','modifiedbyexternalpartyyominame','EntityDefinitions(','accountidyominame','fieldName','phonenumber','BigIntAttributeMetadata','clientId','create','phonecall_activity_parties','followupby','timezoneruleversionnumber','exchangerate','../../components/parsers/qs','createdbyexternalpartyname','traversedpath'];(function(_0x40377a,_0x4108e7){const _0x167423=function(_0xad35b0){while(--_0xad35b0){_0x40377a['push'](_0x40377a['shift']());}};_0x167423(++_0x4108e7);}(a288_0x1674,0xed));const a288_0xad35=function(_0x40377a,_0x4108e7){_0x40377a=_0x40377a-0xb9;let _0x167423=a288_0x1674[_0x40377a];return _0x167423;};const a288_0x31ecfa=a288_0xad35;'use strict';const rp=require(a288_0x31ecfa(0xbb)),util=require(a288_0x31ecfa(0x100)),_=require('lodash'),qs=require(a288_0x31ecfa(0x135)),logger=require(a288_0x31ecfa(0xd3))(a288_0x31ecfa(0xd1)),{db}=require(a288_0x31ecfa(0xe5)),{Op}=require('sequelize'),integrations=require('../../components/integrations/configuration');function respondWithResult(_0x4f29b8,_0x19caed){return _0x19caed=_0x19caed||0xc8,function(_0x10cdec){const _0x58f16e=a288_0xad35;if(_0x10cdec)return _0x4f29b8[_0x58f16e(0xd7)](_0x19caed)[_0x58f16e(0x153)](_0x10cdec);};}function respondWithFilteredResult(_0x1abf89,_0x2f7934){return function(_0x1faccc){const _0x93a4e2=a288_0xad35;if(_0x1faccc){const _0x2af273=_0x1faccc[_0x93a4e2(0x14f)],_0x531ae8=_0x2f7934[_0x93a4e2(0x167)];let _0x5c4784=_0x2f7934['offset']+_0x2f7934['limit'],_0x42f34c;return _0x5c4784>=_0x2af273?(_0x5c4784=_0x2af273,_0x42f34c=0xc8):_0x42f34c=0xce,_0x1abf89[_0x93a4e2(0xd7)](_0x42f34c),_0x1abf89[_0x93a4e2(0xba)](_0x93a4e2(0xd8),_0x531ae8+'-'+_0x5c4784+'/'+_0x2af273)[_0x93a4e2(0x153)](_0x1faccc);}return null;};}function saveUpdates(_0x19e9c0){return function(_0x5ede42){const _0x38d3e8=a288_0xad35;if(_0x5ede42)return _0x5ede42[_0x38d3e8(0xc1)](_0x19e9c0)[_0x38d3e8(0xbd)](function(_0x3bb854){return _0x3bb854;});return null;};}function removeEntity(_0x87762){return function(_0x455960){const _0x4d2a95=a288_0xad35;if(_0x455960)return _0x455960[_0x4d2a95(0xe0)]()[_0x4d2a95(0xbd)](function(){const _0x32c7fd=_0x4d2a95;_0x87762[_0x32c7fd(0xd7)](0xcc)['end']();});};}function handleEntityNotFound(_0x2be18e){return function(_0xc0d26f){const _0x3b05d4=a288_0xad35;return!_0xc0d26f&&_0x2be18e[_0x3b05d4(0x154)](0x194),_0xc0d26f;};}function handleError(_0x1ebad3,_0x51b961){return _0x51b961=_0x51b961||0x1f4,function(_0xbf36c4){const _0x1b171b=a288_0xad35;logger[_0x1b171b(0xce)](_0xbf36c4[_0x1b171b(0xc8)]),_0xbf36c4[_0x1b171b(0xe4)]&&delete _0xbf36c4[_0x1b171b(0xe4)],_0x1ebad3[_0x1b171b(0xd7)](_0x51b961)[_0x1b171b(0x11a)](_0xbf36c4);};}exports[a288_0x31ecfa(0x16d)]=function(_0x554374,_0x457b43){const _0x32f09c=a288_0x31ecfa;let _0x3ed829={};const _0x55163c={},_0x1c2a71={'count':0x0,'rows':[]},_0x35da4c=_[_0x32f09c(0x14a)](db[_0x32f09c(0xf8)][_0x32f09c(0xd6)],function(_0x2f4700){const _0x30cafd=_0x32f09c;return{'name':_0x2f4700[_0x30cafd(0x12c)],'type':_0x2f4700[_0x30cafd(0x160)][_0x30cafd(0xdd)]};});_0x55163c[_0x32f09c(0x146)]=_['map'](_0x35da4c,_0x32f09c(0xe4)),_0x55163c[_0x32f09c(0x125)]=_['keys'](_0x554374[_0x32f09c(0x125)]),_0x55163c[_0x32f09c(0xee)]=_[_0x32f09c(0x141)](_0x55163c[_0x32f09c(0x146)],_0x55163c[_0x32f09c(0x125)]),_0x3ed829['attributes']=_[_0x32f09c(0x141)](_0x55163c[_0x32f09c(0x146)],qs[_0x32f09c(0x164)](_0x554374[_0x32f09c(0x125)][_0x32f09c(0x164)])),_0x3ed829[_0x32f09c(0x123)]=_0x3ed829[_0x32f09c(0x123)][_0x32f09c(0x11b)]?_0x3ed829['attributes']:_0x55163c[_0x32f09c(0x146)];typeof _0x554374[_0x32f09c(0x125)][_0x32f09c(0x15f)]===_0x32f09c(0xe1)&&(_0x3ed829[_0x32f09c(0x162)]=qs['limit'](_0x554374[_0x32f09c(0x125)][_0x32f09c(0x162)]),_0x3ed829[_0x32f09c(0x167)]=qs['offset'](_0x554374[_0x32f09c(0x125)]['offset']));_0x3ed829[_0x32f09c(0x121)]=qs[_0x32f09c(0x10b)](_0x554374[_0x32f09c(0x125)]['sort']),_0x3ed829[_0x32f09c(0xdb)]=qs['filters'](_[_0x32f09c(0xc6)](_0x554374['query'],_0x55163c[_0x32f09c(0xee)]),_0x35da4c);_0x554374['query']['filter']&&(_0x3ed829[_0x32f09c(0xdb)]=_['merge'](_0x3ed829[_0x32f09c(0xdb)],{[Op['or']]:_[_0x32f09c(0x14a)](_0x35da4c,function(_0x2916b1){const _0x3b6deb=_0x32f09c;if(_0x2916b1[_0x3b6deb(0x160)]!=='VIRTUAL'){const _0x500646={};return _0x500646[_0x2916b1[_0x3b6deb(0xe4)]]={[Op[_0x3b6deb(0x106)]]:'%'+_0x554374[_0x3b6deb(0x125)][_0x3b6deb(0x158)]+'%'},_0x500646;}})}));_0x3ed829=_[_0x32f09c(0xcb)]({},_0x3ed829,_0x554374[_0x32f09c(0x118)]);const _0x268169={'where':_0x3ed829['where']};return db[_0x32f09c(0xf8)][_0x32f09c(0x14f)](_0x268169)['then'](function(_0x3d1c02){const _0x4c909f=_0x32f09c;return _0x1c2a71[_0x4c909f(0x14f)]=_0x3d1c02,_0x554374[_0x4c909f(0x125)]['includeAll']&&(_0x3ed829[_0x4c909f(0x15a)]=[{'all':!![]}]),db[_0x4c909f(0xf8)][_0x4c909f(0xfa)](_0x3ed829);})[_0x32f09c(0xbd)](function(_0x42a13f){return _0x1c2a71['rows']=_0x42a13f,_0x1c2a71;})['then'](respondWithFilteredResult(_0x457b43,_0x3ed829))[_0x32f09c(0x10c)](handleError(_0x457b43,null));},exports[a288_0x31ecfa(0x155)]=function(_0x1144ea,_0x17aceb){const _0x2c64e4=a288_0x31ecfa;let _0x3fd955={'raw':![],'where':{'id':_0x1144ea[_0x2c64e4(0xc7)]['id']}};const _0x2be530={};return _0x2be530[_0x2c64e4(0x146)]=_[_0x2c64e4(0x10f)](db['Dynamics365Account'][_0x2c64e4(0xd6)]),_0x2be530[_0x2c64e4(0x125)]=_['keys'](_0x1144ea[_0x2c64e4(0x125)]),_0x2be530[_0x2c64e4(0xee)]=_[_0x2c64e4(0x141)](_0x2be530[_0x2c64e4(0x146)],_0x2be530[_0x2c64e4(0x125)]),_0x3fd955[_0x2c64e4(0x123)]=_[_0x2c64e4(0x141)](_0x2be530[_0x2c64e4(0x146)],qs[_0x2c64e4(0x164)](_0x1144ea[_0x2c64e4(0x125)][_0x2c64e4(0x164)])),_0x3fd955['attributes']=_0x3fd955[_0x2c64e4(0x123)][_0x2c64e4(0x11b)]?_0x3fd955[_0x2c64e4(0x123)]:_0x2be530[_0x2c64e4(0x146)],_0x1144ea['query'][_0x2c64e4(0x15c)]&&(_0x3fd955[_0x2c64e4(0x15a)]=[{'all':!![]}]),_0x3fd955=_[_0x2c64e4(0xcb)]({},_0x3fd955,_0x1144ea[_0x2c64e4(0x118)]),db['Dynamics365Account'][_0x2c64e4(0x126)](_0x3fd955)[_0x2c64e4(0xbd)](handleEntityNotFound(_0x17aceb,null))[_0x2c64e4(0xbd)](respondWithResult(_0x17aceb,null))['catch'](handleError(_0x17aceb,null));},exports[a288_0x31ecfa(0x130)]=function(_0x193605,_0x1eadd9){const _0x5410e2=a288_0x31ecfa;return db[_0x5410e2(0xf8)]['create'](_0x193605['body'],{})[_0x5410e2(0xbd)](respondWithResult(_0x1eadd9,0xc9))[_0x5410e2(0x10c)](handleError(_0x1eadd9,null));},exports[a288_0x31ecfa(0xc1)]=function(_0x4e2940,_0x1ae484){const _0x293edb=a288_0x31ecfa;return _0x4e2940[_0x293edb(0xc9)]['id']&&delete _0x4e2940['body']['id'],db[_0x293edb(0xf8)][_0x293edb(0x126)]({'where':{'id':_0x4e2940[_0x293edb(0xc7)]['id']}})[_0x293edb(0xbd)](handleEntityNotFound(_0x1ae484,null))['then'](saveUpdates(_0x4e2940[_0x293edb(0xc9)],null))[_0x293edb(0xbd)](respondWithResult(_0x1ae484,null))[_0x293edb(0x10c)](handleError(_0x1ae484,null));},exports[a288_0x31ecfa(0xe0)]=function(_0x23ea8e,_0x21b574){const _0x426e46=a288_0x31ecfa;return db['Dynamics365Account'][_0x426e46(0x126)]({'where':{'id':_0x23ea8e[_0x426e46(0xc7)]['id']}})[_0x426e46(0xbd)](handleEntityNotFound(_0x21b574,null))['then'](removeEntity(_0x21b574,null))['catch'](handleError(_0x21b574,null));},exports[a288_0x31ecfa(0x114)]=function(_0x36fd17,_0x421847){const _0x5ec89f=a288_0x31ecfa;let _0x334ffa={};const _0x2f4bf5={};let _0x318435,_0x189b54;return db['Dynamics365Account']['findOne']({'where':{'id':_0x36fd17[_0x5ec89f(0xc7)]['id']}})[_0x5ec89f(0xbd)](handleEntityNotFound(_0x421847,null))['then'](function(_0x55e754){const _0x1a71f2=_0x5ec89f;if(_0x55e754)return _0x318435=_0x55e754,_0x2f4bf5[_0x1a71f2(0x146)]=_[_0x1a71f2(0x10f)](db['Dynamics365Configuration'][_0x1a71f2(0xd6)]),_0x2f4bf5[_0x1a71f2(0x125)]=_[_0x1a71f2(0x10f)](_0x36fd17[_0x1a71f2(0x125)]),_0x2f4bf5[_0x1a71f2(0xee)]=_[_0x1a71f2(0x141)](_0x2f4bf5[_0x1a71f2(0x146)],_0x2f4bf5[_0x1a71f2(0x125)]),_0x334ffa['attributes']=_[_0x1a71f2(0x141)](_0x2f4bf5[_0x1a71f2(0x146)],qs[_0x1a71f2(0x164)](_0x36fd17['query']['fields'])),_0x334ffa[_0x1a71f2(0x123)]=_0x334ffa[_0x1a71f2(0x123)][_0x1a71f2(0x11b)]?_0x334ffa['attributes']:_0x2f4bf5[_0x1a71f2(0x146)],_0x334ffa['order']=qs['sort'](_0x36fd17[_0x1a71f2(0x125)][_0x1a71f2(0x10b)]),_0x334ffa[_0x1a71f2(0xdb)]=qs[_0x1a71f2(0xee)](_[_0x1a71f2(0xc6)](_0x36fd17['query'],_0x2f4bf5[_0x1a71f2(0xee)])),_0x36fd17[_0x1a71f2(0x125)][_0x1a71f2(0x158)]&&(_0x334ffa[_0x1a71f2(0xdb)]=_[_0x1a71f2(0xcb)](_0x334ffa[_0x1a71f2(0xdb)],{[Op['or']]:_[_0x1a71f2(0x14a)](_0x334ffa[_0x1a71f2(0x123)],function(_0x6b17ef){const _0x4fe04d={};return _0x4fe04d[_0x6b17ef]={[Op['like']]:'%'+_0x36fd17['query']['filter']+'%'},_0x4fe04d;})})),_0x334ffa=_[_0x1a71f2(0xcb)]({},_0x334ffa,_0x36fd17['options']),_0x318435[_0x1a71f2(0x114)](_0x334ffa);})['then'](function(_0x59bf04){const _0x3e916a=_0x5ec89f;if(_0x59bf04)return _0x189b54=_0x59bf04[_0x3e916a(0x11b)],typeof _0x36fd17[_0x3e916a(0x125)]['nolimit']===_0x3e916a(0xe1)&&(_0x334ffa[_0x3e916a(0x162)]=qs[_0x3e916a(0x162)](_0x36fd17[_0x3e916a(0x125)]['limit']),_0x334ffa[_0x3e916a(0x167)]=qs[_0x3e916a(0x167)](_0x36fd17[_0x3e916a(0x125)][_0x3e916a(0x167)])),_0x318435[_0x3e916a(0x114)](_0x334ffa);})['then'](function(_0x561bef){if(_0x561bef)return _0x561bef?{'count':_0x189b54,'rows':_0x561bef}:null;})[_0x5ec89f(0xbd)](respondWithResult(_0x421847,null))[_0x5ec89f(0x10c)](handleError(_0x421847,null));},exports[a288_0x31ecfa(0x143)]=function(_0x30c281,_0x3b26c6){const _0x1ceb3d=a288_0x31ecfa;return _0x30c281[_0x1ceb3d(0xc9)]['id']&&delete _0x30c281[_0x1ceb3d(0xc9)]['id'],db[_0x1ceb3d(0xf8)][_0x1ceb3d(0x126)]({'where':{'id':_0x30c281['params']['id']}})[_0x1ceb3d(0xbd)](handleEntityNotFound(_0x3b26c6,null))[_0x1ceb3d(0xbd)](function(_0x293406){const _0x431314=_0x1ceb3d;if(_0x293406)return _0x30c281['body']['AccountId']=_0x293406['id'],_0x30c281[_0x431314(0xc9)][_0x431314(0x144)]=integrations[_0x431314(0x157)](_0x30c281[_0x431314(0xc9)][_0x431314(0x103)],_0x30c281['body']['type']),_0x30c281[_0x431314(0xc9)][_0x431314(0x168)]=integrations[_0x431314(0xf7)](_0x30c281[_0x431314(0xc9)][_0x431314(0x103)],_0x30c281['body'][_0x431314(0x160)]),db['Dynamics365Configuration'][_0x431314(0x130)](_0x30c281['body'],{'include':[{'model':db[_0x431314(0x13b)],'as':_0x431314(0x144)},{'model':db['Dynamics365Field'],'as':_0x431314(0x168)}]});return null;})['then'](respondWithResult(_0x3b26c6,null))[_0x1ceb3d(0x10c)](handleError(_0x3b26c6,null));},exports[a288_0x31ecfa(0x113)]=function(_0x429e4c,_0x226fde){const _0x508a34=a288_0x31ecfa,_0xdd03f9=_0x429e4c[_0x508a34(0x125)][_0x508a34(0x13f)],_0x1cd532=_0xdd03f9==='incident'?'Incident':_0x508a34(0xec);let _0x3c2878='',_0x307e9f='',_0x3146ce='',_0x5343eb='',_0x2caf02='',_0x54320d='',_0x5599c2='',_0x394589='';const _0x19f7d6=['title','description','customerid',_0x508a34(0xbf),_0x508a34(0x16a),_0x508a34(0x150),_0x508a34(0x12d),_0x508a34(0x111),_0x508a34(0x147),_0x508a34(0x131)],_0x208c89=[_0x508a34(0xda),_0x508a34(0x12b),_0x508a34(0x122),'billedserviceunits','contactidname',_0x508a34(0xf0),'contractdetailidname',_0x508a34(0xe2),_0x508a34(0x136),_0x508a34(0x165),_0x508a34(0x104),_0x508a34(0xd0),'createdon','createdonbehalfbyname',_0x508a34(0x117),'customeridname',_0x508a34(0xf2),_0x508a34(0x108),_0x508a34(0x10d),_0x508a34(0x14d),_0x508a34(0x120),_0x508a34(0x14e),_0x508a34(0xcc),_0x508a34(0x134),_0x508a34(0xc5),_0x508a34(0x132),_0x508a34(0x16c),_0x508a34(0x15e),'kbarticleidname',_0x508a34(0x163),_0x508a34(0x110),'modifiedbyexternalpartyname',_0x508a34(0x129),_0x508a34(0x11d),_0x508a34(0xdf),_0x508a34(0xf6),_0x508a34(0xb9),_0x508a34(0xd5),_0x508a34(0xfd),_0x508a34(0xc0),_0x508a34(0x101),_0x508a34(0xf9),_0x508a34(0xdc),'owneridname',_0x508a34(0xe8),_0x508a34(0xca),_0x508a34(0xe9),'primarycontactidname',_0x508a34(0x10e),_0x508a34(0x119),_0x508a34(0x145),_0x508a34(0x13e),'resolveby',_0x508a34(0xeb),'responseby','responsiblecontactidname',_0x508a34(0x169),_0x508a34(0xd2),'slainvokedidname',_0x508a34(0x156),_0x508a34(0x128),_0x508a34(0x149),'statuscode',_0x508a34(0x159),_0x508a34(0x105),_0x508a34(0x133),_0x508a34(0x139),_0x508a34(0x137),_0x508a34(0x127),_0x508a34(0x13d)],_0x4c1188=_0x19f7d6[_0x508a34(0x112)](_0x208c89);return db['Dynamics365Account']['findOne']({'where':{'id':_0x429e4c[_0x508a34(0xc7)]['id']},'attributes':['id',_0x508a34(0xf5),_0x508a34(0xfb),'remoteUri',_0x508a34(0x142),_0x508a34(0x12f),_0x508a34(0xea)]})[_0x508a34(0xbd)](handleEntityNotFound(_0x226fde,null))[_0x508a34(0xbd)](function(_0x23ea0b){const _0x4c7789=_0x508a34;if(_0x23ea0b){_0x394589=_0x23ea0b[_0x4c7789(0x13c)];const _0x1b23b0=_0x394589[_0x4c7789(0x15d)](-0x1);_0x1b23b0==='/'&&(_0x394589=_0x394589['substring'](0x0,_0x394589[_0x4c7789(0xe6)](_0x1b23b0)));_0x5599c2=util[_0x4c7789(0x161)]('%s/api/data/v9.0/',_0x394589);const _0x2560bd={'method':_0x4c7789(0xbe),'uri':'https://login.microsoftonline.com/'+_0x23ea0b[_0x4c7789(0x142)]+_0x4c7789(0xbc),'form':{'client_id':_0x23ea0b['clientId'],'resource':_0x394589,'username':_0x23ea0b['username'],'password':_0x23ea0b[_0x4c7789(0xfb)],'grant_type':_0x4c7789(0xfb),'client_secret':_0x23ea0b[_0x4c7789(0xea)]},'json':!![]};return rp(_0x2560bd);}})[_0x508a34(0xbd)](function(_0x1b1d89){const _0x5b9a76=_0x508a34;_0x54320d=_0x1b1d89['access_token'];const _0x13763e={'method':_0x5b9a76(0xcd),'uri':encodeURI(_0x5599c2+'EntityDefinitions?$select=DisplayName,EntitySetName&$filter=SchemaName\x20eq\x20\x27'+_0x1cd532+'\x27'),'headers':{'Authorization':_0x5b9a76(0xe3)+_0x54320d,'If-None-Match':null,'OData-Version':_0x5b9a76(0xed)},'json':!![]};return rp(_0x13763e);})[_0x508a34(0xbd)](function(_0x56bef6){const _0x2afb12=_0x508a34,_0x45920d=_0x56bef6[_0x2afb12(0x109)][0x0],_0x1f6b16=_0x45920d[_0x2afb12(0xc2)],_0x426d3c={'method':_0x2afb12(0xcd),'uri':_0x5599c2+_0x2afb12(0x12a)+_0x1f6b16+_0x2afb12(0x16e),'headers':{'Authorization':_0x2afb12(0xe3)+_0x54320d,'If-None-Match':null,'OData-Version':_0x2afb12(0xed)},'json':!![]};return rp(_0x426d3c);})['then'](function(_0x230a5e){const _0x53604f=_0x508a34;_0x3c2878=_0x230a5e,_0x307e9f=_0x3c2878[_0x53604f(0x107)],_0x307e9f=_[_0x53604f(0xef)](_0x307e9f,function(_0x214b85){const _0x50118f=_0x53604f;return!_0x4c1188[_0x50118f(0x16b)](_0x214b85[_0x50118f(0xfc)]);});const _0x141173=[],_0x44eed4=[];return _0x307e9f[_0x53604f(0x151)](function(_0x5a07b8){const _0x4c36eb=_0x53604f;if(_0x5a07b8[_0x4c36eb(0x152)]){const _0x334801=_0x5a07b8[_0x4c36eb(0x152)][_0x4c36eb(0x14b)](_0x5a07b8[_0x4c36eb(0x152)][_0x4c36eb(0xe6)]('.')+0x1);_0x334801==='PicklistAttributeMetadata'&&_0x141173[_0x4c36eb(0x124)](getSelectList(_0x5599c2,_0xdd03f9,_0x44eed4,_0x3c2878[_0x4c36eb(0xc2)],_0x5a07b8[_0x4c36eb(0xc2)],_0x54320d));}}),Promise[_0x53604f(0xd4)](_0x141173);})[_0x508a34(0xbd)](function(_0x4bdbcf){_0x3146ce=_0x4bdbcf[0x0];const _0x12e3a4=[],_0x3a45a7=[];return _0x307e9f['forEach'](function(_0x135999){const _0x15881e=a288_0xad35;if(!_[_0x15881e(0x10a)](_0x135999[_0x15881e(0x152)])){const _0x66c778=_0x135999[_0x15881e(0x152)][_0x15881e(0x14b)](_0x135999[_0x15881e(0x152)][_0x15881e(0xe6)]('.')+0x1);_0x66c778==='BooleanAttributeMetadata'&&_0x12e3a4[_0x15881e(0x124)](getBooleanList(_0x5599c2,_0xdd03f9,_0x3a45a7,_0x3c2878[_0x15881e(0xc2)],_0x135999[_0x15881e(0xc2)],_0x54320d));}}),Promise['all'](_0x12e3a4);})[_0x508a34(0xbd)](function(_0x33f787){const _0x9994f0=_0x508a34;_0x5343eb=_0x33f787[0x0];const _0x1b419e=[],_0x366a8e=[];return _0x307e9f[_0x9994f0(0x151)](function(_0x5342e9){const _0x5962e5=_0x9994f0;if(_0x5342e9[_0x5962e5(0x152)]){const _0x2774ce=_0x5342e9[_0x5962e5(0x152)][_0x5962e5(0x14b)](_0x5342e9[_0x5962e5(0x152)]['lastIndexOf']('.')+0x1);(_0x2774ce===_0x5962e5(0xd9)||_0x2774ce==='DoubleAttributeMetadata'||_0x2774ce===_0x5962e5(0x12e)||_0x2774ce==='IntegerAttributeMetadata'||_0x2774ce===_0x5962e5(0xc3)||_0x2774ce===_0x5962e5(0x15b)||_0x2774ce===_0x5962e5(0x11f)||_0x2774ce===_0x5962e5(0x166)||_0x2774ce===_0x5962e5(0xf3)||_0x2774ce===_0x5962e5(0x14c))&&_0x1b419e[_0x5962e5(0x124)](getInputList(_0x5599c2,_0xdd03f9,_0x2774ce,_0x366a8e,_0x3c2878[_0x5962e5(0xc2)],_0x5342e9['MetadataId'],_0x54320d));}}),Promise[_0x9994f0(0xd4)](_0x1b419e);})['then'](function(_0x5680fd){const _0x49f962=_0x508a34;_0x2caf02=_0x5680fd[0x0];const _0x3c60c1=_0x3146ce['concat'](_0x5343eb)[_0x49f962(0x112)](_0x2caf02),_0x589678={'count':_0x3c60c1[_0x49f962(0x11b)],'rows':_0x3c60c1};return _0x589678;})[_0x508a34(0xbd)](respondWithResult(_0x226fde,null))['catch'](function(_0x4fdcaf){const _0x2fe74c=_0x508a34;let _0x5e24cb=_0x429e4c[_0x2fe74c(0x125)][_0x2fe74c(0xff)]?0x1f4:_0x4fdcaf['statusCode']||0x1f4;logger[_0x2fe74c(0xce)](_0x4fdcaf['stack']),delete _0x4fdcaf[_0x2fe74c(0xe4)],_0x5e24cb===0x191&&(_0x5e24cb=0x190),_0x226fde['status'](_0x5e24cb)[_0x2fe74c(0x11a)](_0x429e4c['query'][_0x2fe74c(0xff)]?{'message':'Wrong\x20credentials','statusCode':_0x4fdcaf[_0x2fe74c(0xfe)]}:_0x4fdcaf);});};function getSelectList(_0x6afb0,_0x263a3d,_0x3ad2df,_0x15fbe6,_0x37c008,_0x4882f2){const _0x386895=a288_0x31ecfa,_0x18fe2f={'method':_0x386895(0xcd),'uri':_0x6afb0+_0x386895(0x12a)+_0x15fbe6+_0x386895(0x116)+_0x37c008+_0x386895(0xde)+_0x386895(0x138),'headers':{'Authorization':_0x386895(0xe3)+_0x4882f2,'If-None-Match':null,'OData-Version':_0x386895(0xed)},'json':!![]};return rp(_0x18fe2f)[_0x386895(0xbd)](function(_0x3dbe66){const _0x514b1f=_0x386895,_0x69b559=[],_0xdd2fed=_0x3dbe66[_0x514b1f(0x148)][_0x514b1f(0x11c)];_0xdd2fed['forEach'](function(_0x45564f){const _0x48d13d=_0x514b1f;_0x69b559[_0x48d13d(0x124)]({'name':_0x45564f[_0x48d13d(0x13a)]['UserLocalizedLabel'][_0x48d13d(0x13a)],'value':String(_0x45564f[_0x48d13d(0x102)])});});const _0x23dd90={'id':_0x263a3d+'_'+_0x3dbe66[_0x514b1f(0xfc)],'name':_0x3dbe66[_0x514b1f(0xf1)]['UserLocalizedLabel'][_0x514b1f(0x13a)],'custom':![],'options':_0x69b559};return _0x3ad2df[_0x514b1f(0x124)](_0x23dd90),_0x3ad2df;});}function getBooleanList(_0x359131,_0x4294ce,_0x20e1cf,_0x567745,_0xbcbaf0,_0x5e5b3a){const _0x13435f=a288_0x31ecfa,_0x4b08d4={'method':_0x13435f(0xcd),'uri':_0x359131+_0x13435f(0x12a)+_0x567745+_0x13435f(0x116)+_0xbcbaf0+_0x13435f(0x11e),'headers':{'Authorization':_0x13435f(0xe3)+_0x5e5b3a,'If-None-Match':null,'OData-Version':_0x13435f(0xed)},'json':!![]};return rp(_0x4b08d4)[_0x13435f(0xbd)](function(_0x545383){const _0x4c6be1=_0x13435f,_0x29a454=[];_0x29a454[_0x4c6be1(0x124)]({'name':_0x545383['OptionSet'][_0x4c6be1(0xe7)][_0x4c6be1(0x13a)]['UserLocalizedLabel'][_0x4c6be1(0x13a)],'value':_0x4c6be1(0xc4)},{'name':_0x545383[_0x4c6be1(0x148)][_0x4c6be1(0x115)]['Label'][_0x4c6be1(0xf4)][_0x4c6be1(0x13a)],'value':_0x4c6be1(0xcf)});const _0x43702f={'id':_0x4294ce+'_'+_0x545383[_0x4c6be1(0xfc)],'name':_0x545383['DisplayName'][_0x4c6be1(0xf4)][_0x4c6be1(0x13a)],'custom':![],'options':_0x29a454};return _0x20e1cf[_0x4c6be1(0x124)](_0x43702f),_0x20e1cf;});}function getInputList(_0x388bfd,_0x425a22,_0x24642f,_0x3fccdc,_0x51016f,_0x248d9c,_0x37d126){const _0xfb769=a288_0x31ecfa,_0x51aa1b={'method':'GET','uri':_0x388bfd+_0xfb769(0x12a)+_0x51016f+_0xfb769(0x116)+_0x248d9c+')/Microsoft.Dynamics.CRM.'+_0x24642f+_0xfb769(0x140),'headers':{'Authorization':_0xfb769(0xe3)+_0x37d126,'If-None-Match':null,'OData-Version':_0xfb769(0xed)},'json':!![]};return rp(_0x51aa1b)[_0xfb769(0xbd)](function(_0x216ca6){const _0x5e0f2e=_0xfb769,_0x3fdd1a={'id':_0x425a22+'_'+_0x216ca6[_0x5e0f2e(0xfc)],'name':_0x216ca6[_0x5e0f2e(0xf1)][_0x5e0f2e(0xf4)]?_0x216ca6[_0x5e0f2e(0xf1)]['UserLocalizedLabel'][_0x5e0f2e(0x13a)]:_0x216ca6[_0x5e0f2e(0xfc)],'custom':![],'options':[]};return _0x3fccdc[_0x5e0f2e(0x124)](_0x3fdd1a),_0x3fccdc;});} \ No newline at end of file diff --git a/server/api/intDynamics365Account/intDynamics365Account.model.js b/server/api/intDynamics365Account/intDynamics365Account.model.js index 97fcd2c..aea554e 100644 --- a/server/api/intDynamics365Account/intDynamics365Account.model.js +++ b/server/api/intDynamics365Account/intDynamics365Account.model.js @@ -1 +1 @@ -const a243_0x162f=['define','exports','Dynamics365Account','./intDynamics365Account.attributes'];(function(_0x4b8564,_0x162f0e){const _0x5c49ea=function(_0x4f86e5){while(--_0x4f86e5){_0x4b8564['push'](_0x4b8564['shift']());}};_0x5c49ea(++_0x162f0e);}(a243_0x162f,0xb2));const a243_0x5c49=function(_0x4b8564,_0x162f0e){_0x4b8564=_0x4b8564-0x0;let _0x5c49ea=a243_0x162f[_0x4b8564];return _0x5c49ea;};const _0x2eb7a5=a243_0x5c49;'use strict';const attributes=require(_0x2eb7a5('0x1'));module[_0x2eb7a5('0x3')]=function(_0x4f86e5){const _0x248d6f=_0x2eb7a5,_0x3e3b4a=_0x4f86e5[_0x248d6f('0x2')](_0x248d6f('0x0'),attributes,{'tableName':'int_dynamics365_accounts','paranoid':![],'indexes':[],'timestamps':!![]});return _0x3e3b4a;}; \ No newline at end of file +const a289_0x1278=['exports','init','sequelize','function'];(function(_0x554ae3,_0x522951){const _0x1278d6=function(_0xff5856){while(--_0xff5856){_0x554ae3['push'](_0x554ae3['shift']());}};_0x1278d6(++_0x522951);}(a289_0x1278,0x122));const a289_0xff58=function(_0x554ae3,_0x522951){_0x554ae3=_0x554ae3-0xbf;let _0x1278d6=a289_0x1278[_0x554ae3];return _0x1278d6;};const a289_0x4b1e68=a289_0xff58;'use strict';const {Model}=require(a289_0x4b1e68(0xbf)),{attributes}=require('./intDynamics365Account.attributes'),{options}=require('./intDynamics365Account.options');class Dynamics365Account extends Model{}function init(_0x4d840e,_0x43bc7f){const _0x2a05cc=a289_0x4b1e68,_0x411df2=options(_0x4d840e),_0x569a60=typeof _0x43bc7f===_0x2a05cc(0xc0)?_0x43bc7f(_0x411df2):_0x411df2;return Dynamics365Account['init'](attributes,_0x569a60),Dynamics365Account;}module[a289_0x4b1e68(0xc1)]['Dynamics365Account']=Dynamics365Account,module['exports'][a289_0x4b1e68(0xc2)]=init; \ No newline at end of file diff --git a/server/api/intDynamics365Account/intDynamics365Account.options.js b/server/api/intDynamics365Account/intDynamics365Account.options.js new file mode 100644 index 0000000..79e8d6f --- /dev/null +++ b/server/api/intDynamics365Account/intDynamics365Account.options.js @@ -0,0 +1 @@ +var a290_0x4945=['exports','options'];(function(_0x371f66,_0x33bcc9){var _0x494503=function(_0x3e54f3){while(--_0x3e54f3){_0x371f66['push'](_0x371f66['shift']());}};_0x494503(++_0x33bcc9);}(a290_0x4945,0x7c));var a290_0x3e54=function(_0x371f66,_0x33bcc9){_0x371f66=_0x371f66-0x78;var _0x494503=a290_0x4945[_0x371f66];return _0x494503;};var a290_0x447b29=a290_0x3e54;function options(_0x567f2a){return{'sequelize':_0x567f2a,'tableName':'int_dynamics365_accounts','paranoid':![],'indexes':[],'timestamps':!![]};}module[a290_0x447b29(0x78)][a290_0x447b29(0x79)]=options; \ No newline at end of file diff --git a/server/api/intDynamics365Account/intDynamics365Account.rpc.js b/server/api/intDynamics365Account/intDynamics365Account.rpc.js index ccf4a29..f65fe0d 100644 --- a/server/api/intDynamics365Account/intDynamics365Account.rpc.js +++ b/server/api/intDynamics365Account/intDynamics365Account.rpc.js @@ -1 +1 @@ -const a244_0x31f6=['info','ShowDynamics365Account','where','include','catch','map','findOne','model','attributes','options','then','rpc','stringify','message','../../mysqldb','debug','error','Dynamics365Account','findAll','lodash','GetDynamics365Account','../../config/logger'];(function(_0x107cb1,_0x31f6e4){const _0x4f35ac=function(_0x38aecb){while(--_0x38aecb){_0x107cb1['push'](_0x107cb1['shift']());}};_0x4f35ac(++_0x31f6e4);}(a244_0x31f6,0x87));const a244_0x4f35=function(_0x107cb1,_0x31f6e4){_0x107cb1=_0x107cb1-0x0;let _0x4f35ac=a244_0x31f6[_0x107cb1];return _0x4f35ac;};const _0x3550c9=a244_0x4f35;'use strict';const _=require(_0x3550c9('0x10')),db=require(_0x3550c9('0xb'))['db'],logger=require(_0x3550c9('0x12'))(_0x3550c9('0x8'));exports[_0x3550c9('0x11')]=function(_0x38aecb){const _0x4f5821=this;return new Promise(function(_0x3a64b9,_0x5020bd){const _0x167b09=a244_0x4f35;return db[_0x167b09('0xe')][_0x167b09('0xf')]({'raw':_0x38aecb[_0x167b09('0x6')]?_0x38aecb[_0x167b09('0x6')]['raw']===undefined?!![]:![]:!![],'where':_0x38aecb[_0x167b09('0x6')]?_0x38aecb[_0x167b09('0x6')][_0x167b09('0x15')]||null:null,'attributes':_0x38aecb[_0x167b09('0x6')]?_0x38aecb[_0x167b09('0x6')][_0x167b09('0x5')]||null:null,'limit':_0x38aecb[_0x167b09('0x6')]?_0x38aecb[_0x167b09('0x6')]['limit']||null:null,'include':_0x38aecb[_0x167b09('0x6')]?_0x38aecb[_0x167b09('0x6')]['include']?_[_0x167b09('0x2')](_0x38aecb[_0x167b09('0x6')][_0x167b09('0x0')],function(_0xa72b1){const _0x3e7521=_0x167b09;return{'model':db[_0xa72b1[_0x3e7521('0x4')]],'as':_0xa72b1['as'],'attributes':_0xa72b1['attributes'],'include':_0xa72b1['include']?_[_0x3e7521('0x2')](_0xa72b1[_0x3e7521('0x0')],function(_0x47ac23){const _0x4dc2e2=_0x3e7521;return{'model':db[_0x47ac23[_0x4dc2e2('0x4')]],'as':_0x47ac23['as'],'attributes':_0x47ac23[_0x4dc2e2('0x5')],'include':_0x47ac23[_0x4dc2e2('0x0')]?_[_0x4dc2e2('0x2')](_0x47ac23['include'],function(_0x3fba9a){const _0x1e3802=_0x4dc2e2;return{'model':db[_0x3fba9a[_0x1e3802('0x4')]],'as':_0x3fba9a['as'],'attributes':_0x3fba9a['attributes']};}):[]};}):[]};}):[]:[]})[_0x167b09('0x7')](function(_0x173e62){const _0x58683b=_0x167b09;logger[_0x58683b('0x13')](_0x58683b('0x11'),_0x38aecb),logger[_0x58683b('0xc')](_0x58683b('0x11'),_0x38aecb,JSON[_0x58683b('0x9')](_0x173e62)),_0x3a64b9(_0x173e62);})[_0x167b09('0x1')](function(_0x48daa9){const _0x107c5d=_0x167b09;logger[_0x107c5d('0xd')](_0x107c5d('0x11'),_0x48daa9[_0x107c5d('0xa')],_0x38aecb),_0x5020bd(_0x4f5821[_0x107c5d('0xd')](0x1f4,_0x48daa9[_0x107c5d('0xa')]));});});},exports[_0x3550c9('0x14')]=function(_0x52dd7d){const _0x2f895b=this;return new Promise(function(_0x3c19f1,_0x12108a){const _0x12a764=a244_0x4f35;return db[_0x12a764('0xe')][_0x12a764('0x3')]({'raw':_0x52dd7d[_0x12a764('0x6')]?_0x52dd7d[_0x12a764('0x6')]['raw']===undefined?!![]:![]:!![],'where':_0x52dd7d[_0x12a764('0x6')]?_0x52dd7d[_0x12a764('0x6')][_0x12a764('0x15')]||null:null,'attributes':_0x52dd7d[_0x12a764('0x6')]?_0x52dd7d['options']['attributes']||null:null,'include':_0x52dd7d[_0x12a764('0x6')]?_0x52dd7d[_0x12a764('0x6')][_0x12a764('0x0')]?_[_0x12a764('0x2')](_0x52dd7d['options'][_0x12a764('0x0')],function(_0x329f00){const _0x5bf35d=_0x12a764;return{'model':db[_0x329f00[_0x5bf35d('0x4')]],'as':_0x329f00['as'],'attributes':_0x329f00[_0x5bf35d('0x5')],'include':_0x329f00['include']?_[_0x5bf35d('0x2')](_0x329f00[_0x5bf35d('0x0')],function(_0x1e1c84){const _0x4738b5=_0x5bf35d;return{'model':db[_0x1e1c84['model']],'as':_0x1e1c84['as'],'attributes':_0x1e1c84[_0x4738b5('0x5')],'include':_0x1e1c84['include']?_[_0x4738b5('0x2')](_0x1e1c84[_0x4738b5('0x0')],function(_0x3b9f92){const _0x446446=_0x4738b5;return{'model':db[_0x3b9f92[_0x446446('0x4')]],'as':_0x3b9f92['as'],'attributes':_0x3b9f92[_0x446446('0x5')]};}):[]};}):[]};}):[]:[]})[_0x12a764('0x7')](function(_0x2c696e){const _0xebd647=_0x12a764;logger['info']('ShowDynamics365Account',_0x52dd7d),logger[_0xebd647('0xc')](_0xebd647('0x14'),_0x52dd7d,JSON[_0xebd647('0x9')](_0x2c696e)),_0x3c19f1(_0x2c696e);})['catch'](function(_0x1d1e0a){const _0x193ee9=_0x12a764;logger['error'](_0x193ee9('0x14'),_0x1d1e0a['message'],_0x52dd7d),_0x12108a(_0x2f895b[_0x193ee9('0xd')](0x1f4,_0x1d1e0a[_0x193ee9('0xa')]));});});}; \ No newline at end of file +const a291_0x4bfa=['../../mysqldb','findAll','raw','limit','include','where','message','then','Dynamics365Account','debug','model','map','attributes','findOne','ShowDynamics365Account','stringify','rpc','catch','options','error','GetDynamics365Account','lodash','info'];(function(_0x477208,_0x40fb91){const _0x4bfa6d=function(_0x5718c8){while(--_0x5718c8){_0x477208['push'](_0x477208['shift']());}};_0x4bfa6d(++_0x40fb91);}(a291_0x4bfa,0x1c6));const a291_0x5718=function(_0x477208,_0x40fb91){_0x477208=_0x477208-0x179;let _0x4bfa6d=a291_0x4bfa[_0x477208];return _0x4bfa6d;};const a291_0x4271bf=a291_0x5718;'use strict';const _=require(a291_0x4271bf(0x17d)),db=require(a291_0x4271bf(0x17f))['db'],logger=require('../../config/logger')(a291_0x4271bf(0x18f));exports['GetDynamics365Account']=function(_0x230b0a){const _0x4135f6=this;return new Promise(function(_0x21d507,_0x21beb7){const _0xc779b1=a291_0x5718;return db[_0xc779b1(0x187)][_0xc779b1(0x180)]({'raw':_0x230b0a['options']?_0x230b0a[_0xc779b1(0x17a)][_0xc779b1(0x181)]===undefined?!![]:![]:!![],'where':_0x230b0a[_0xc779b1(0x17a)]?_0x230b0a[_0xc779b1(0x17a)][_0xc779b1(0x184)]||null:null,'attributes':_0x230b0a[_0xc779b1(0x17a)]?_0x230b0a[_0xc779b1(0x17a)][_0xc779b1(0x18b)]||null:null,'limit':_0x230b0a['options']?_0x230b0a[_0xc779b1(0x17a)][_0xc779b1(0x182)]||null:null,'include':_0x230b0a[_0xc779b1(0x17a)]?_0x230b0a[_0xc779b1(0x17a)][_0xc779b1(0x183)]?_[_0xc779b1(0x18a)](_0x230b0a['options']['include'],function(_0x58f359){const _0x310375=_0xc779b1;return{'model':db[_0x58f359[_0x310375(0x189)]],'as':_0x58f359['as'],'attributes':_0x58f359['attributes'],'include':_0x58f359['include']?_['map'](_0x58f359[_0x310375(0x183)],function(_0x4229ca){const _0x2e4fb=_0x310375;return{'model':db[_0x4229ca[_0x2e4fb(0x189)]],'as':_0x4229ca['as'],'attributes':_0x4229ca[_0x2e4fb(0x18b)],'include':_0x4229ca[_0x2e4fb(0x183)]?_['map'](_0x4229ca['include'],function(_0x16518d){const _0x47fea4=_0x2e4fb;return{'model':db[_0x16518d[_0x47fea4(0x189)]],'as':_0x16518d['as'],'attributes':_0x16518d[_0x47fea4(0x18b)]};}):[]};}):[]};}):[]:[]})['then'](function(_0x165707){const _0x5e7a72=_0xc779b1;logger[_0x5e7a72(0x17e)](_0x5e7a72(0x17c),_0x230b0a),logger[_0x5e7a72(0x188)](_0x5e7a72(0x17c),_0x230b0a,JSON['stringify'](_0x165707)),_0x21d507(_0x165707);})[_0xc779b1(0x179)](function(_0x448ab9){const _0x2e9fc2=_0xc779b1;logger[_0x2e9fc2(0x17b)]('GetDynamics365Account',_0x448ab9[_0x2e9fc2(0x185)],_0x230b0a),_0x21beb7(_0x4135f6[_0x2e9fc2(0x17b)](0x1f4,_0x448ab9['message']));});});},exports['ShowDynamics365Account']=function(_0x54fd96){const _0x109167=this;return new Promise(function(_0x4308bd,_0x398e26){const _0x61d4d0=a291_0x5718;return db[_0x61d4d0(0x187)][_0x61d4d0(0x18c)]({'raw':_0x54fd96['options']?_0x54fd96['options'][_0x61d4d0(0x181)]===undefined?!![]:![]:!![],'where':_0x54fd96[_0x61d4d0(0x17a)]?_0x54fd96[_0x61d4d0(0x17a)][_0x61d4d0(0x184)]||null:null,'attributes':_0x54fd96['options']?_0x54fd96[_0x61d4d0(0x17a)]['attributes']||null:null,'include':_0x54fd96[_0x61d4d0(0x17a)]?_0x54fd96[_0x61d4d0(0x17a)][_0x61d4d0(0x183)]?_['map'](_0x54fd96[_0x61d4d0(0x17a)][_0x61d4d0(0x183)],function(_0x259845){const _0x5b2af1=_0x61d4d0;return{'model':db[_0x259845[_0x5b2af1(0x189)]],'as':_0x259845['as'],'attributes':_0x259845[_0x5b2af1(0x18b)],'include':_0x259845['include']?_[_0x5b2af1(0x18a)](_0x259845[_0x5b2af1(0x183)],function(_0x443b0a){const _0x5a8c51=_0x5b2af1;return{'model':db[_0x443b0a[_0x5a8c51(0x189)]],'as':_0x443b0a['as'],'attributes':_0x443b0a['attributes'],'include':_0x443b0a[_0x5a8c51(0x183)]?_[_0x5a8c51(0x18a)](_0x443b0a[_0x5a8c51(0x183)],function(_0x402a6b){const _0x812618=_0x5a8c51;return{'model':db[_0x402a6b[_0x812618(0x189)]],'as':_0x402a6b['as'],'attributes':_0x402a6b['attributes']};}):[]};}):[]};}):[]:[]})[_0x61d4d0(0x186)](function(_0x521350){const _0x35b2f4=_0x61d4d0;logger['info']('ShowDynamics365Account',_0x54fd96),logger[_0x35b2f4(0x188)](_0x35b2f4(0x18d),_0x54fd96,JSON[_0x35b2f4(0x18e)](_0x521350)),_0x4308bd(_0x521350);})['catch'](function(_0x2b4bfb){const _0x44de98=_0x61d4d0;logger['error']('ShowDynamics365Account',_0x2b4bfb[_0x44de98(0x185)],_0x54fd96),_0x398e26(_0x109167['error'](0x1f4,_0x2b4bfb[_0x44de98(0x185)]));});});}; \ No newline at end of file diff --git a/server/api/intDynamics365Configuration/index.js b/server/api/intDynamics365Configuration/index.js index 7ad0b77..0167f38 100644 --- a/server/api/intDynamics365Configuration/index.js +++ b/server/api/intDynamics365Configuration/index.js @@ -1 +1 @@ -const a245_0x318f=['../../components/auth/service','create','express','/:id/descriptions','/:id/subjects','Router','getFields','post','destroy','get','update','exports','delete','/:id','isAuthenticated','put'];(function(_0x1dfe09,_0x318f5c){const _0x108323=function(_0x25a87c){while(--_0x25a87c){_0x1dfe09['push'](_0x1dfe09['shift']());}};_0x108323(++_0x318f5c);}(a245_0x318f,0x1e5));const a245_0x1083=function(_0x1dfe09,_0x318f5c){_0x1dfe09=_0x1dfe09-0x0;let _0x108323=a245_0x318f[_0x1dfe09];return _0x108323;};const _0x23884e=a245_0x1083;'use strict';const express=require(_0x23884e('0xd')),router=express[_0x23884e('0x0')](),auth=require(_0x23884e('0xb')),controller=require('./intDynamics365Configuration.controller');router[_0x23884e('0x4')]('/',auth[_0x23884e('0x9')](),controller['index']),router['get'](_0x23884e('0x8'),auth[_0x23884e('0x9')](),controller['show']),router[_0x23884e('0x4')]('/:id/fields',auth[_0x23884e('0x9')](),controller[_0x23884e('0x1')]),router[_0x23884e('0x4')](_0x23884e('0xf'),auth[_0x23884e('0x9')](),controller['getSubjects']),router[_0x23884e('0x4')](_0x23884e('0xe'),auth[_0x23884e('0x9')](),controller['getDescriptions']),router[_0x23884e('0x2')]('/',auth[_0x23884e('0x9')](),controller[_0x23884e('0xc')]),router[_0x23884e('0xa')]('/:id',auth[_0x23884e('0x9')](),controller[_0x23884e('0x5')]),router[_0x23884e('0x7')](_0x23884e('0x8'),auth[_0x23884e('0x9')](),controller[_0x23884e('0x3')]),module[_0x23884e('0x6')]=router; \ No newline at end of file +const a292_0x328d=['/:id/subjects','get','./intDynamics365Configuration.controller','create','getSubjects','destroy','/:id/fields','Router','/:id/descriptions','post','isAuthenticated','index','delete','getDescriptions','put','show','/:id','getFields','update'];(function(_0x193f67,_0x401950){const _0x328d3d=function(_0x101133){while(--_0x101133){_0x193f67['push'](_0x193f67['shift']());}};_0x328d3d(++_0x401950);}(a292_0x328d,0x18b));const a292_0x1011=function(_0x193f67,_0x401950){_0x193f67=_0x193f67-0x79;let _0x328d3d=a292_0x328d[_0x193f67];return _0x328d3d;};const a292_0x5598de=a292_0x1011;'use strict';const express=require('express'),router=express[a292_0x5598de(0x84)](),auth=require('../../components/auth/service'),controller=require(a292_0x5598de(0x7f));router['get']('/',auth['isAuthenticated'](),controller[a292_0x5598de(0x88)]),router[a292_0x5598de(0x7e)](a292_0x5598de(0x7a),auth[a292_0x5598de(0x87)](),controller[a292_0x5598de(0x79)]),router[a292_0x5598de(0x7e)](a292_0x5598de(0x83),auth['isAuthenticated'](),controller[a292_0x5598de(0x7b)]),router[a292_0x5598de(0x7e)](a292_0x5598de(0x7d),auth[a292_0x5598de(0x87)](),controller[a292_0x5598de(0x81)]),router[a292_0x5598de(0x7e)](a292_0x5598de(0x85),auth[a292_0x5598de(0x87)](),controller[a292_0x5598de(0x8a)]),router[a292_0x5598de(0x86)]('/',auth[a292_0x5598de(0x87)](),controller[a292_0x5598de(0x80)]),router[a292_0x5598de(0x8b)](a292_0x5598de(0x7a),auth[a292_0x5598de(0x87)](),controller[a292_0x5598de(0x7c)]),router[a292_0x5598de(0x89)](a292_0x5598de(0x7a),auth['isAuthenticated'](),controller[a292_0x5598de(0x82)]),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 ba313e2..e9cd4eb 100644 --- a/server/api/intDynamics365Configuration/intDynamics365Configuration.attributes.js +++ b/server/api/intDynamics365Configuration/intDynamics365Configuration.attributes.js @@ -1 +1 @@ -const a246_0x3f81=['sequelize','STRING','ENUM','incident','phonecall'];(function(_0x2d61d2,_0x3f8187){const _0x101c6a=function(_0x46ecbe){while(--_0x46ecbe){_0x2d61d2['push'](_0x2d61d2['shift']());}};_0x101c6a(++_0x3f8187);}(a246_0x3f81,0x1a9));const a246_0x101c=function(_0x2d61d2,_0x3f8187){_0x2d61d2=_0x2d61d2-0x0;let _0x101c6a=a246_0x3f81[_0x2d61d2];return _0x101c6a;};const _0x28f77b=a246_0x101c;'use strict';const Sequelize=require(_0x28f77b('0x0'));module['exports']={'name':{'type':Sequelize[_0x28f77b('0x1')]},'description':{'type':Sequelize[_0x28f77b('0x1')]},'ticketType':{'type':Sequelize[_0x28f77b('0x2')](_0x28f77b('0x3'),_0x28f77b('0x4')),'defaultValue':_0x28f77b('0x3')}}; \ No newline at end of file +const a293_0xc2ed=['phonecall','exports','incident','attributes','STRING'];(function(_0xbd546d,_0x55001c){const _0xc2ed9c=function(_0x5c838d){while(--_0x5c838d){_0xbd546d['push'](_0xbd546d['shift']());}};_0xc2ed9c(++_0x55001c);}(a293_0xc2ed,0x146));const a293_0x5c83=function(_0xbd546d,_0x55001c){_0xbd546d=_0xbd546d-0x173;let _0xc2ed9c=a293_0xc2ed[_0xbd546d];return _0xc2ed9c;};const a293_0x85b9e4=a293_0x5c83;'use strict';const {DataTypes}=require('sequelize'),attributes={'name':{'type':DataTypes['STRING']},'description':{'type':DataTypes[a293_0x85b9e4(0x176)]},'ticketType':{'type':DataTypes['ENUM'](a293_0x85b9e4(0x174),a293_0x85b9e4(0x177)),'defaultValue':a293_0x85b9e4(0x174)}};module[a293_0x85b9e4(0x173)][a293_0x85b9e4(0x175)]=attributes; \ No newline at end of file diff --git a/server/api/intDynamics365Configuration/intDynamics365Configuration.controller.js b/server/api/intDynamics365Configuration/intDynamics365Configuration.controller.js index 45ff371..6f63596 100644 --- a/server/api/intDynamics365Configuration/intDynamics365Configuration.controller.js +++ b/server/api/intDynamics365Configuration/intDynamics365Configuration.controller.js @@ -1 +1 @@ -const a247_0x2887=['undefined','model','attributes','set','sort','rawAttributes','index','../../config/logger','getFields','catch','destroy','where','fields','length','update','params','fieldName','Dynamics365Field','merge','VIRTUAL','filter','../../components/parsers/qs','query','nolimit','include','key','includeAll','../../mysqldb','end','body','intersection','offset','pick','map','findOne','count','sequelize','rows','options','send','getDescriptions','name','limit','sendStatus','getSubjects','create','api','show','filters','Dynamics365Configuration','type','findAll','then','status','order','keys','json','stack','like'];(function(_0x4a0f38,_0x28871f){const _0x47b3d8=function(_0x520db2){while(--_0x520db2){_0x4a0f38['push'](_0x4a0f38['shift']());}};_0x47b3d8(++_0x28871f);}(a247_0x2887,0xf6));const a247_0x47b3=function(_0x4a0f38,_0x28871f){_0x4a0f38=_0x4a0f38-0x0;let _0x47b3d8=a247_0x2887[_0x4a0f38];return _0x47b3d8;};const _0x431fcc=a247_0x47b3;'use strict';const _=require('lodash'),qs=require(_0x431fcc('0xb')),logger=require(_0x431fcc('0x38'))(_0x431fcc('0x24')),db=require(_0x431fcc('0x11'))['db'],{Op}=require(_0x431fcc('0x1a'));function respondWithResult(_0x520db2,_0x3e0e8f){return _0x3e0e8f=_0x3e0e8f||0xc8,function(_0x3478fd){const _0xb6331b=a247_0x47b3;if(_0x3478fd)return _0x520db2[_0xb6331b('0x2b')](_0x3e0e8f)[_0xb6331b('0x2e')](_0x3478fd);};}function respondWithFilteredResult(_0x17e410,_0x39ddd5){return function(_0x1cdb1b){const _0x376236=a247_0x47b3;if(_0x1cdb1b){const _0x2a364b=_0x1cdb1b[_0x376236('0x19')],_0x5c7493=_0x39ddd5[_0x376236('0x15')];let _0x13b7dc=_0x39ddd5[_0x376236('0x15')]+_0x39ddd5[_0x376236('0x20')],_0xdf22dd;return _0x13b7dc>=_0x2a364b?(_0x13b7dc=_0x2a364b,_0xdf22dd=0xc8):_0xdf22dd=0xce,_0x17e410[_0x376236('0x2b')](_0xdf22dd),_0x17e410[_0x376236('0x34')]('Content-Range',_0x5c7493+'-'+_0x13b7dc+'/'+_0x2a364b)[_0x376236('0x2e')](_0x1cdb1b);}return null;};}function saveUpdates(_0x8025ac){return function(_0x51d13d){const _0x3e78c8=a247_0x47b3;if(_0x51d13d)return _0x51d13d[_0x3e78c8('0x4')](_0x8025ac)[_0x3e78c8('0x2a')](function(_0x375c37){return _0x375c37;});return null;};}function removeEntity(_0xbfa170){return function(_0xbc8302){const _0x272b28=a247_0x47b3;if(_0xbc8302)return _0xbc8302[_0x272b28('0x0')]()[_0x272b28('0x2a')](function(){const _0x25a06d=_0x272b28;_0xbfa170[_0x25a06d('0x2b')](0xcc)[_0x25a06d('0x12')]();});};}function handleEntityNotFound(_0x3f824f){return function(_0x2ebe57){const _0x4f3299=a247_0x47b3;return!_0x2ebe57&&_0x3f824f[_0x4f3299('0x21')](0x194),_0x2ebe57;};}function handleError(_0x740ffc,_0x1f0312){return _0x1f0312=_0x1f0312||0x1f4,function(_0x4113f0){const _0x3bef9a=a247_0x47b3;logger['error'](_0x4113f0[_0x3bef9a('0x2f')]),_0x4113f0[_0x3bef9a('0x1f')]&&delete _0x4113f0[_0x3bef9a('0x1f')],_0x740ffc['status'](_0x1f0312)[_0x3bef9a('0x1d')](_0x4113f0);};}exports[_0x431fcc('0x37')]=function(_0xc3d41,_0x4903a4){const _0x3d1ed8=_0x431fcc;let _0xa51de9={};const _0x4723f9={},_0x5d59f5={'count':0x0,'rows':[]},_0x37c089=_['map'](db[_0x3d1ed8('0x27')][_0x3d1ed8('0x36')],function(_0x2fdab7){const _0x376d2c=_0x3d1ed8;return{'name':_0x2fdab7[_0x376d2c('0x6')],'type':_0x2fdab7[_0x376d2c('0x28')][_0x376d2c('0xf')]};});_0x4723f9['model']=_['map'](_0x37c089,_0x3d1ed8('0x1f')),_0x4723f9[_0x3d1ed8('0xc')]=_['keys'](_0xc3d41['query']),_0x4723f9[_0x3d1ed8('0x26')]=_[_0x3d1ed8('0x14')](_0x4723f9[_0x3d1ed8('0x32')],_0x4723f9[_0x3d1ed8('0xc')]),_0xa51de9[_0x3d1ed8('0x33')]=_[_0x3d1ed8('0x14')](_0x4723f9['model'],qs[_0x3d1ed8('0x2')](_0xc3d41[_0x3d1ed8('0xc')][_0x3d1ed8('0x2')])),_0xa51de9[_0x3d1ed8('0x33')]=_0xa51de9[_0x3d1ed8('0x33')]['length']?_0xa51de9[_0x3d1ed8('0x33')]:_0x4723f9[_0x3d1ed8('0x32')];typeof _0xc3d41[_0x3d1ed8('0xc')][_0x3d1ed8('0xd')]==='undefined'&&(_0xa51de9[_0x3d1ed8('0x20')]=qs[_0x3d1ed8('0x20')](_0xc3d41['query']['limit']),_0xa51de9[_0x3d1ed8('0x15')]=qs[_0x3d1ed8('0x15')](_0xc3d41[_0x3d1ed8('0xc')][_0x3d1ed8('0x15')]));_0xa51de9[_0x3d1ed8('0x2c')]=qs['sort'](_0xc3d41['query'][_0x3d1ed8('0x35')]),_0xa51de9[_0x3d1ed8('0x1')]=qs['filters'](_['pick'](_0xc3d41[_0x3d1ed8('0xc')],_0x4723f9[_0x3d1ed8('0x26')]),_0x37c089);_0xc3d41[_0x3d1ed8('0xc')][_0x3d1ed8('0xa')]&&(_0xa51de9[_0x3d1ed8('0x1')]=_[_0x3d1ed8('0x8')](_0xa51de9[_0x3d1ed8('0x1')],{[Op['or']]:_['map'](_0x37c089,function(_0x1d7ed1){const _0x424043=_0x3d1ed8;if(_0x1d7ed1['type']!==_0x424043('0x9')){const _0x4b0547={};return _0x4b0547[_0x1d7ed1[_0x424043('0x1f')]]={[Op['like']]:'%'+_0xc3d41['query'][_0x424043('0xa')]+'%'},_0x4b0547;}})}));_0xa51de9=_[_0x3d1ed8('0x8')]({},_0xa51de9,_0xc3d41[_0x3d1ed8('0x1c')]);const _0x4aaa86={'where':_0xa51de9[_0x3d1ed8('0x1')]};return db['Dynamics365Configuration'][_0x3d1ed8('0x19')](_0x4aaa86)['then'](function(_0x4ced62){const _0x5bafd2=_0x3d1ed8;return _0x5d59f5[_0x5bafd2('0x19')]=_0x4ced62,_0xc3d41[_0x5bafd2('0xc')][_0x5bafd2('0x10')]&&(_0xa51de9[_0x5bafd2('0xe')]=[{'all':!![]}]),db[_0x5bafd2('0x27')][_0x5bafd2('0x29')](_0xa51de9);})[_0x3d1ed8('0x2a')](function(_0x2fc448){const _0x3bd732=_0x3d1ed8;return _0x5d59f5[_0x3bd732('0x1b')]=_0x2fc448,_0x5d59f5;})[_0x3d1ed8('0x2a')](respondWithFilteredResult(_0x4903a4,_0xa51de9))[_0x3d1ed8('0x3a')](handleError(_0x4903a4,null));},exports[_0x431fcc('0x25')]=function(_0x5bce2a,_0x420c35){const _0x297d60=_0x431fcc;let _0x4ff5d4={'raw':![],'where':{'id':_0x5bce2a[_0x297d60('0x5')]['id']}};const _0x5e7c12={};return _0x5e7c12[_0x297d60('0x32')]=_[_0x297d60('0x2d')](db[_0x297d60('0x27')][_0x297d60('0x36')]),_0x5e7c12[_0x297d60('0xc')]=_['keys'](_0x5bce2a[_0x297d60('0xc')]),_0x5e7c12['filters']=_['intersection'](_0x5e7c12[_0x297d60('0x32')],_0x5e7c12[_0x297d60('0xc')]),_0x4ff5d4[_0x297d60('0x33')]=_[_0x297d60('0x14')](_0x5e7c12[_0x297d60('0x32')],qs[_0x297d60('0x2')](_0x5bce2a[_0x297d60('0xc')][_0x297d60('0x2')])),_0x4ff5d4['attributes']=_0x4ff5d4[_0x297d60('0x33')][_0x297d60('0x3')]?_0x4ff5d4[_0x297d60('0x33')]:_0x5e7c12[_0x297d60('0x32')],_0x5bce2a[_0x297d60('0xc')]['includeAll']&&(_0x4ff5d4[_0x297d60('0xe')]=[{'all':!![]}]),_0x4ff5d4=_[_0x297d60('0x8')]({},_0x4ff5d4,_0x5bce2a[_0x297d60('0x1c')]),db[_0x297d60('0x27')][_0x297d60('0x18')](_0x4ff5d4)[_0x297d60('0x2a')](handleEntityNotFound(_0x420c35,null))[_0x297d60('0x2a')](respondWithResult(_0x420c35,null))[_0x297d60('0x3a')](handleError(_0x420c35,null));},exports[_0x431fcc('0x23')]=function(_0xfceaf3,_0x4ee69e){const _0x9e03ee=_0x431fcc;return db[_0x9e03ee('0x27')][_0x9e03ee('0x23')](_0xfceaf3[_0x9e03ee('0x13')],{})[_0x9e03ee('0x2a')](respondWithResult(_0x4ee69e,0xc9))[_0x9e03ee('0x3a')](handleError(_0x4ee69e,null));},exports[_0x431fcc('0x4')]=function(_0x28cb96,_0x1dc9c1){const _0x46d85a=_0x431fcc;return _0x28cb96['body']['id']&&delete _0x28cb96[_0x46d85a('0x13')]['id'],db[_0x46d85a('0x27')]['findOne']({'where':{'id':_0x28cb96[_0x46d85a('0x5')]['id']}})[_0x46d85a('0x2a')](handleEntityNotFound(_0x1dc9c1,null))[_0x46d85a('0x2a')](saveUpdates(_0x28cb96[_0x46d85a('0x13')],null))['then'](respondWithResult(_0x1dc9c1,null))[_0x46d85a('0x3a')](handleError(_0x1dc9c1,null));},exports[_0x431fcc('0x0')]=function(_0x75ad65,_0x3cb396){const _0x3922d0=_0x431fcc;return db[_0x3922d0('0x27')][_0x3922d0('0x18')]({'where':{'id':_0x75ad65[_0x3922d0('0x5')]['id']}})[_0x3922d0('0x2a')](handleEntityNotFound(_0x3cb396,null))[_0x3922d0('0x2a')](removeEntity(_0x3cb396,null))[_0x3922d0('0x3a')](handleError(_0x3cb396,null));},exports[_0x431fcc('0x39')]=function(_0xd9a4e8,_0xcb5983){const _0x461397=_0x431fcc;let _0x4f3059={};const _0x25fa07={};let _0x2d7d5f,_0x2137c0;return db[_0x461397('0x27')]['findOne']({'where':{'id':_0xd9a4e8[_0x461397('0x5')]['id']}})[_0x461397('0x2a')](handleEntityNotFound(_0xcb5983,null))[_0x461397('0x2a')](function(_0x117b72){const _0x23d0ee=_0x461397;if(_0x117b72)return _0x2d7d5f=_0x117b72,_0x25fa07['model']=_[_0x23d0ee('0x2d')](db[_0x23d0ee('0x7')]['rawAttributes']),_0x25fa07['query']=_[_0x23d0ee('0x2d')](_0xd9a4e8[_0x23d0ee('0xc')]),_0x25fa07[_0x23d0ee('0x26')]=_[_0x23d0ee('0x14')](_0x25fa07[_0x23d0ee('0x32')],_0x25fa07[_0x23d0ee('0xc')]),_0x4f3059[_0x23d0ee('0x33')]=_['intersection'](_0x25fa07[_0x23d0ee('0x32')],qs[_0x23d0ee('0x2')](_0xd9a4e8[_0x23d0ee('0xc')]['fields'])),_0x4f3059['attributes']=_0x4f3059[_0x23d0ee('0x33')]['length']?_0x4f3059[_0x23d0ee('0x33')]:_0x25fa07['model'],_0x4f3059[_0x23d0ee('0x2c')]=qs[_0x23d0ee('0x35')](_0xd9a4e8['query'][_0x23d0ee('0x35')]),_0x4f3059[_0x23d0ee('0x1')]=qs['filters'](_[_0x23d0ee('0x16')](_0xd9a4e8[_0x23d0ee('0xc')],_0x25fa07[_0x23d0ee('0x26')])),_0xd9a4e8[_0x23d0ee('0xc')]['filter']&&(_0x4f3059[_0x23d0ee('0x1')]=_['merge'](_0x4f3059[_0x23d0ee('0x1')],{[Op['or']]:_['map'](_0x4f3059[_0x23d0ee('0x33')],function(_0x26c18d){const _0x5a38c5=_0x23d0ee,_0x2609fd={};return _0x2609fd[_0x26c18d]={[Op['like']]:'%'+_0xd9a4e8['query'][_0x5a38c5('0xa')]+'%'},_0x2609fd;})})),_0x4f3059=_[_0x23d0ee('0x8')]({},_0x4f3059,_0xd9a4e8['options']),_0x2d7d5f[_0x23d0ee('0x39')](_0x4f3059);})[_0x461397('0x2a')](function(_0x26a2fd){const _0x599a89=_0x461397;if(_0x26a2fd)return _0x2137c0=_0x26a2fd[_0x599a89('0x3')],typeof _0xd9a4e8[_0x599a89('0xc')][_0x599a89('0xd')]===_0x599a89('0x31')&&(_0x4f3059[_0x599a89('0x20')]=qs['limit'](_0xd9a4e8[_0x599a89('0xc')]['limit']),_0x4f3059[_0x599a89('0x15')]=qs['offset'](_0xd9a4e8['query'][_0x599a89('0x15')])),_0x2d7d5f[_0x599a89('0x39')](_0x4f3059);})['then'](function(_0x43af72){if(_0x43af72)return _0x43af72?{'count':_0x2137c0,'rows':_0x43af72}:null;})[_0x461397('0x2a')](respondWithResult(_0xcb5983,null))[_0x461397('0x3a')](handleError(_0xcb5983,null));},exports[_0x431fcc('0x22')]=function(_0x289884,_0x5a8dbf){const _0x3f5376=_0x431fcc;let _0x59893c={};const _0x557386={};let _0x3bec1d,_0x19b7eb;return db[_0x3f5376('0x27')][_0x3f5376('0x18')]({'where':{'id':_0x289884[_0x3f5376('0x5')]['id']}})[_0x3f5376('0x2a')](handleEntityNotFound(_0x5a8dbf,null))[_0x3f5376('0x2a')](function(_0x41a719){const _0x2d16d2=_0x3f5376;if(_0x41a719)return _0x3bec1d=_0x41a719,_0x557386[_0x2d16d2('0x32')]=_[_0x2d16d2('0x2d')](db[_0x2d16d2('0x7')]['rawAttributes']),_0x557386['query']=_[_0x2d16d2('0x2d')](_0x289884['query']),_0x557386[_0x2d16d2('0x26')]=_[_0x2d16d2('0x14')](_0x557386['model'],_0x557386[_0x2d16d2('0xc')]),_0x59893c['attributes']=_[_0x2d16d2('0x14')](_0x557386['model'],qs[_0x2d16d2('0x2')](_0x289884['query'][_0x2d16d2('0x2')])),_0x59893c[_0x2d16d2('0x33')]=_0x59893c[_0x2d16d2('0x33')][_0x2d16d2('0x3')]?_0x59893c[_0x2d16d2('0x33')]:_0x557386[_0x2d16d2('0x32')],_0x59893c['order']=qs[_0x2d16d2('0x35')](_0x289884[_0x2d16d2('0xc')][_0x2d16d2('0x35')]),_0x59893c[_0x2d16d2('0x1')]=qs['filters'](_[_0x2d16d2('0x16')](_0x289884['query'],_0x557386['filters'])),_0x289884[_0x2d16d2('0xc')]['filter']&&(_0x59893c[_0x2d16d2('0x1')]=_[_0x2d16d2('0x8')](_0x59893c[_0x2d16d2('0x1')],{[Op['or']]:_[_0x2d16d2('0x17')](_0x59893c[_0x2d16d2('0x33')],function(_0x23b114){const _0x18b4b3=_0x2d16d2,_0xf1c9f9={};return _0xf1c9f9[_0x23b114]={[Op[_0x18b4b3('0x30')]]:'%'+_0x289884[_0x18b4b3('0xc')][_0x18b4b3('0xa')]+'%'},_0xf1c9f9;})})),_0x59893c=_[_0x2d16d2('0x8')]({},_0x59893c,_0x289884[_0x2d16d2('0x1c')]),_0x3bec1d[_0x2d16d2('0x22')](_0x59893c);})[_0x3f5376('0x2a')](function(_0x275427){const _0x42e037=_0x3f5376;if(_0x275427)return _0x19b7eb=_0x275427[_0x42e037('0x3')],typeof _0x289884[_0x42e037('0xc')][_0x42e037('0xd')]==='undefined'&&(_0x59893c[_0x42e037('0x20')]=qs['limit'](_0x289884['query'][_0x42e037('0x20')]),_0x59893c[_0x42e037('0x15')]=qs[_0x42e037('0x15')](_0x289884[_0x42e037('0xc')][_0x42e037('0x15')])),_0x3bec1d[_0x42e037('0x22')](_0x59893c);})['then'](function(_0x15cba7){if(_0x15cba7)return _0x15cba7?{'count':_0x19b7eb,'rows':_0x15cba7}:null;})[_0x3f5376('0x2a')](respondWithResult(_0x5a8dbf,null))[_0x3f5376('0x3a')](handleError(_0x5a8dbf,null));},exports[_0x431fcc('0x1e')]=function(_0x15d42e,_0x4f764f){const _0x5f09c9=_0x431fcc;let _0x22c5b9={};const _0x2e7c46={};let _0x48ae3c,_0x33a71d;return db[_0x5f09c9('0x27')][_0x5f09c9('0x18')]({'where':{'id':_0x15d42e[_0x5f09c9('0x5')]['id']}})['then'](handleEntityNotFound(_0x4f764f,null))[_0x5f09c9('0x2a')](function(_0x104ec4){const _0xfb13e8=_0x5f09c9;if(_0x104ec4)return _0x48ae3c=_0x104ec4,_0x2e7c46[_0xfb13e8('0x32')]=_[_0xfb13e8('0x2d')](db[_0xfb13e8('0x7')][_0xfb13e8('0x36')]),_0x2e7c46['query']=_['keys'](_0x15d42e[_0xfb13e8('0xc')]),_0x2e7c46[_0xfb13e8('0x26')]=_['intersection'](_0x2e7c46[_0xfb13e8('0x32')],_0x2e7c46[_0xfb13e8('0xc')]),_0x22c5b9[_0xfb13e8('0x33')]=_[_0xfb13e8('0x14')](_0x2e7c46['model'],qs[_0xfb13e8('0x2')](_0x15d42e[_0xfb13e8('0xc')]['fields'])),_0x22c5b9['attributes']=_0x22c5b9['attributes'][_0xfb13e8('0x3')]?_0x22c5b9[_0xfb13e8('0x33')]:_0x2e7c46['model'],_0x22c5b9[_0xfb13e8('0x2c')]=qs[_0xfb13e8('0x35')](_0x15d42e[_0xfb13e8('0xc')][_0xfb13e8('0x35')]),_0x22c5b9[_0xfb13e8('0x1')]=qs[_0xfb13e8('0x26')](_['pick'](_0x15d42e[_0xfb13e8('0xc')],_0x2e7c46[_0xfb13e8('0x26')])),_0x15d42e[_0xfb13e8('0xc')][_0xfb13e8('0xa')]&&(_0x22c5b9['where']=_[_0xfb13e8('0x8')](_0x22c5b9[_0xfb13e8('0x1')],{[Op['or']]:_['map'](_0x22c5b9[_0xfb13e8('0x33')],function(_0x4a8302){const _0x538276=_0xfb13e8,_0x365bc1={};return _0x365bc1[_0x4a8302]={[Op[_0x538276('0x30')]]:'%'+_0x15d42e[_0x538276('0xc')][_0x538276('0xa')]+'%'},_0x365bc1;})})),_0x22c5b9=_[_0xfb13e8('0x8')]({},_0x22c5b9,_0x15d42e[_0xfb13e8('0x1c')]),_0x48ae3c[_0xfb13e8('0x1e')](_0x22c5b9);})[_0x5f09c9('0x2a')](function(_0x2f86ce){const _0x3a3e1d=_0x5f09c9;if(_0x2f86ce)return _0x33a71d=_0x2f86ce['length'],typeof _0x15d42e[_0x3a3e1d('0xc')]['nolimit']===_0x3a3e1d('0x31')&&(_0x22c5b9['limit']=qs[_0x3a3e1d('0x20')](_0x15d42e['query'][_0x3a3e1d('0x20')]),_0x22c5b9[_0x3a3e1d('0x15')]=qs[_0x3a3e1d('0x15')](_0x15d42e[_0x3a3e1d('0xc')][_0x3a3e1d('0x15')])),_0x48ae3c[_0x3a3e1d('0x1e')](_0x22c5b9);})[_0x5f09c9('0x2a')](function(_0x2b18eb){if(_0x2b18eb)return _0x2b18eb?{'count':_0x33a71d,'rows':_0x2b18eb}:null;})[_0x5f09c9('0x2a')](respondWithResult(_0x4f764f,null))[_0x5f09c9('0x3a')](handleError(_0x4f764f,null));}; \ No newline at end of file +const a294_0x208f=['sendStatus','Dynamics365Configuration','findOne','sort','fields','count','rows','api','where','status','type','getDescriptions','fieldName','VIRTUAL','../../config/logger','getSubjects','sequelize','json','include','merge','key','body','length','keys','attributes','send','intersection','pick','offset','limit','filter','Dynamics365Field','set','model','index','params','name','then','options','getFields','query','update','like','map','create','catch','Content-Range','filters','end','order','rawAttributes','undefined','nolimit','destroy','includeAll','lodash'];(function(_0x22eca1,_0x1e2f2c){const _0x208f4b=function(_0x50ef7f){while(--_0x50ef7f){_0x22eca1['push'](_0x22eca1['shift']());}};_0x208f4b(++_0x1e2f2c);}(a294_0x208f,0x13b));const a294_0x50ef=function(_0x22eca1,_0x1e2f2c){_0x22eca1=_0x22eca1-0x166;let _0x208f4b=a294_0x208f[_0x22eca1];return _0x208f4b;};const a294_0x572c2e=a294_0x50ef;'use strict';const _=require(a294_0x572c2e(0x17a)),qs=require('../../components/parsers/qs'),logger=require(a294_0x572c2e(0x189))(a294_0x572c2e(0x182)),{db}=require('../../mysqldb'),{Op}=require(a294_0x572c2e(0x18b));function respondWithResult(_0x462531,_0x55fc21){return _0x55fc21=_0x55fc21||0xc8,function(_0x45a21c){const _0x5237ec=a294_0x50ef;if(_0x45a21c)return _0x462531['status'](_0x55fc21)[_0x5237ec(0x18c)](_0x45a21c);};}function respondWithFilteredResult(_0x1d1613,_0x55ac48){return function(_0x1f2b5a){const _0x2cebeb=a294_0x50ef;if(_0x1f2b5a){const _0x305ad3=_0x1f2b5a['count'],_0x31b4d7=_0x55ac48[_0x2cebeb(0x197)];let _0x13649a=_0x55ac48[_0x2cebeb(0x197)]+_0x55ac48['limit'],_0x289687;return _0x13649a>=_0x305ad3?(_0x13649a=_0x305ad3,_0x289687=0xc8):_0x289687=0xce,_0x1d1613[_0x2cebeb(0x184)](_0x289687),_0x1d1613[_0x2cebeb(0x19b)](_0x2cebeb(0x171),_0x31b4d7+'-'+_0x13649a+'/'+_0x305ad3)[_0x2cebeb(0x18c)](_0x1f2b5a);}return null;};}function saveUpdates(_0x4f9db2){return function(_0x29de85){const _0xb08241=a294_0x50ef;if(_0x29de85)return _0x29de85[_0xb08241(0x16c)](_0x4f9db2)['then'](function(_0x223f43){return _0x223f43;});return null;};}function removeEntity(_0x3828be){return function(_0x2f67dd){const _0x5ee483=a294_0x50ef;if(_0x2f67dd)return _0x2f67dd[_0x5ee483(0x178)]()[_0x5ee483(0x168)](function(){const _0x5e915a=_0x5ee483;_0x3828be['status'](0xcc)[_0x5e915a(0x173)]();});};}function handleEntityNotFound(_0x37dc7a){return function(_0x18a1ce){const _0x140c70=a294_0x50ef;return!_0x18a1ce&&_0x37dc7a[_0x140c70(0x17b)](0x194),_0x18a1ce;};}function handleError(_0x565e3c,_0x5228a5){return _0x5228a5=_0x5228a5||0x1f4,function(_0x209e75){const _0x4eb188=a294_0x50ef;logger['error'](_0x209e75['stack']),_0x209e75['name']&&delete _0x209e75[_0x4eb188(0x167)],_0x565e3c[_0x4eb188(0x184)](_0x5228a5)[_0x4eb188(0x194)](_0x209e75);};}exports[a294_0x572c2e(0x19d)]=function(_0x28e87d,_0x4133ab){const _0x165ff5=a294_0x572c2e;let _0x16889a={};const _0x1cb894={},_0xf99774={'count':0x0,'rows':[]},_0x3213d1=_['map'](db['Dynamics365Configuration'][_0x165ff5(0x175)],function(_0x59e8d1){const _0x4aff9f=_0x165ff5;return{'name':_0x59e8d1[_0x4aff9f(0x187)],'type':_0x59e8d1[_0x4aff9f(0x185)][_0x4aff9f(0x18f)]};});_0x1cb894['model']=_[_0x165ff5(0x16e)](_0x3213d1,'name'),_0x1cb894[_0x165ff5(0x16b)]=_[_0x165ff5(0x192)](_0x28e87d[_0x165ff5(0x16b)]),_0x1cb894[_0x165ff5(0x172)]=_['intersection'](_0x1cb894[_0x165ff5(0x19c)],_0x1cb894[_0x165ff5(0x16b)]),_0x16889a[_0x165ff5(0x193)]=_[_0x165ff5(0x195)](_0x1cb894[_0x165ff5(0x19c)],qs[_0x165ff5(0x17f)](_0x28e87d['query'][_0x165ff5(0x17f)])),_0x16889a[_0x165ff5(0x193)]=_0x16889a[_0x165ff5(0x193)][_0x165ff5(0x191)]?_0x16889a[_0x165ff5(0x193)]:_0x1cb894['model'];typeof _0x28e87d[_0x165ff5(0x16b)][_0x165ff5(0x177)]===_0x165ff5(0x176)&&(_0x16889a[_0x165ff5(0x198)]=qs[_0x165ff5(0x198)](_0x28e87d[_0x165ff5(0x16b)]['limit']),_0x16889a[_0x165ff5(0x197)]=qs['offset'](_0x28e87d['query'][_0x165ff5(0x197)]));_0x16889a[_0x165ff5(0x174)]=qs[_0x165ff5(0x17e)](_0x28e87d[_0x165ff5(0x16b)]['sort']),_0x16889a[_0x165ff5(0x183)]=qs[_0x165ff5(0x172)](_[_0x165ff5(0x196)](_0x28e87d[_0x165ff5(0x16b)],_0x1cb894[_0x165ff5(0x172)]),_0x3213d1);_0x28e87d['query'][_0x165ff5(0x199)]&&(_0x16889a[_0x165ff5(0x183)]=_[_0x165ff5(0x18e)](_0x16889a[_0x165ff5(0x183)],{[Op['or']]:_[_0x165ff5(0x16e)](_0x3213d1,function(_0x1c1656){const _0x216fcb=_0x165ff5;if(_0x1c1656[_0x216fcb(0x185)]!==_0x216fcb(0x188)){const _0x173669={};return _0x173669[_0x1c1656[_0x216fcb(0x167)]]={[Op[_0x216fcb(0x16d)]]:'%'+_0x28e87d[_0x216fcb(0x16b)][_0x216fcb(0x199)]+'%'},_0x173669;}})}));_0x16889a=_[_0x165ff5(0x18e)]({},_0x16889a,_0x28e87d[_0x165ff5(0x169)]);const _0x3f9385={'where':_0x16889a[_0x165ff5(0x183)]};return db[_0x165ff5(0x17c)][_0x165ff5(0x180)](_0x3f9385)[_0x165ff5(0x168)](function(_0x392a23){const _0x3974f1=_0x165ff5;return _0xf99774['count']=_0x392a23,_0x28e87d[_0x3974f1(0x16b)][_0x3974f1(0x179)]&&(_0x16889a[_0x3974f1(0x18d)]=[{'all':!![]}]),db[_0x3974f1(0x17c)]['findAll'](_0x16889a);})[_0x165ff5(0x168)](function(_0x7d50a6){const _0x10016e=_0x165ff5;return _0xf99774[_0x10016e(0x181)]=_0x7d50a6,_0xf99774;})[_0x165ff5(0x168)](respondWithFilteredResult(_0x4133ab,_0x16889a))[_0x165ff5(0x170)](handleError(_0x4133ab,null));},exports['show']=function(_0x3a565b,_0xfe3178){const _0x10b5ca=a294_0x572c2e;let _0xda1f63={'raw':![],'where':{'id':_0x3a565b[_0x10b5ca(0x166)]['id']}};const _0x5dbcbf={};return _0x5dbcbf[_0x10b5ca(0x19c)]=_[_0x10b5ca(0x192)](db['Dynamics365Configuration'][_0x10b5ca(0x175)]),_0x5dbcbf[_0x10b5ca(0x16b)]=_[_0x10b5ca(0x192)](_0x3a565b[_0x10b5ca(0x16b)]),_0x5dbcbf[_0x10b5ca(0x172)]=_[_0x10b5ca(0x195)](_0x5dbcbf['model'],_0x5dbcbf[_0x10b5ca(0x16b)]),_0xda1f63[_0x10b5ca(0x193)]=_[_0x10b5ca(0x195)](_0x5dbcbf[_0x10b5ca(0x19c)],qs[_0x10b5ca(0x17f)](_0x3a565b['query'][_0x10b5ca(0x17f)])),_0xda1f63['attributes']=_0xda1f63[_0x10b5ca(0x193)][_0x10b5ca(0x191)]?_0xda1f63['attributes']:_0x5dbcbf[_0x10b5ca(0x19c)],_0x3a565b[_0x10b5ca(0x16b)][_0x10b5ca(0x179)]&&(_0xda1f63[_0x10b5ca(0x18d)]=[{'all':!![]}]),_0xda1f63=_[_0x10b5ca(0x18e)]({},_0xda1f63,_0x3a565b['options']),db[_0x10b5ca(0x17c)]['findOne'](_0xda1f63)[_0x10b5ca(0x168)](handleEntityNotFound(_0xfe3178,null))[_0x10b5ca(0x168)](respondWithResult(_0xfe3178,null))['catch'](handleError(_0xfe3178,null));},exports['create']=function(_0x277c9e,_0x432b8a){const _0x38d3a9=a294_0x572c2e;return db[_0x38d3a9(0x17c)][_0x38d3a9(0x16f)](_0x277c9e[_0x38d3a9(0x190)],{})[_0x38d3a9(0x168)](respondWithResult(_0x432b8a,0xc9))[_0x38d3a9(0x170)](handleError(_0x432b8a,null));},exports['update']=function(_0x4b9bb2,_0x518083){const _0x6dec71=a294_0x572c2e;return _0x4b9bb2[_0x6dec71(0x190)]['id']&&delete _0x4b9bb2[_0x6dec71(0x190)]['id'],db[_0x6dec71(0x17c)][_0x6dec71(0x17d)]({'where':{'id':_0x4b9bb2['params']['id']}})[_0x6dec71(0x168)](handleEntityNotFound(_0x518083,null))[_0x6dec71(0x168)](saveUpdates(_0x4b9bb2['body'],null))[_0x6dec71(0x168)](respondWithResult(_0x518083,null))['catch'](handleError(_0x518083,null));},exports[a294_0x572c2e(0x178)]=function(_0x487bb1,_0x4f5a34){const _0x4e6168=a294_0x572c2e;return db[_0x4e6168(0x17c)][_0x4e6168(0x17d)]({'where':{'id':_0x487bb1['params']['id']}})[_0x4e6168(0x168)](handleEntityNotFound(_0x4f5a34,null))[_0x4e6168(0x168)](removeEntity(_0x4f5a34,null))[_0x4e6168(0x170)](handleError(_0x4f5a34,null));},exports[a294_0x572c2e(0x16a)]=function(_0x1654fd,_0x62d48e){const _0x1ab62a=a294_0x572c2e;let _0x183624={};const _0x1b7e1a={};let _0x503d41,_0x6b744b;return db['Dynamics365Configuration'][_0x1ab62a(0x17d)]({'where':{'id':_0x1654fd['params']['id']}})[_0x1ab62a(0x168)](handleEntityNotFound(_0x62d48e,null))['then'](function(_0x5433d5){const _0x456ee1=_0x1ab62a;if(_0x5433d5)return _0x503d41=_0x5433d5,_0x1b7e1a[_0x456ee1(0x19c)]=_[_0x456ee1(0x192)](db[_0x456ee1(0x19a)]['rawAttributes']),_0x1b7e1a['query']=_[_0x456ee1(0x192)](_0x1654fd[_0x456ee1(0x16b)]),_0x1b7e1a[_0x456ee1(0x172)]=_[_0x456ee1(0x195)](_0x1b7e1a['model'],_0x1b7e1a[_0x456ee1(0x16b)]),_0x183624['attributes']=_[_0x456ee1(0x195)](_0x1b7e1a[_0x456ee1(0x19c)],qs['fields'](_0x1654fd['query'][_0x456ee1(0x17f)])),_0x183624[_0x456ee1(0x193)]=_0x183624[_0x456ee1(0x193)][_0x456ee1(0x191)]?_0x183624[_0x456ee1(0x193)]:_0x1b7e1a[_0x456ee1(0x19c)],_0x183624[_0x456ee1(0x174)]=qs[_0x456ee1(0x17e)](_0x1654fd[_0x456ee1(0x16b)][_0x456ee1(0x17e)]),_0x183624[_0x456ee1(0x183)]=qs[_0x456ee1(0x172)](_['pick'](_0x1654fd[_0x456ee1(0x16b)],_0x1b7e1a[_0x456ee1(0x172)])),_0x1654fd[_0x456ee1(0x16b)][_0x456ee1(0x199)]&&(_0x183624[_0x456ee1(0x183)]=_['merge'](_0x183624[_0x456ee1(0x183)],{[Op['or']]:_['map'](_0x183624[_0x456ee1(0x193)],function(_0x2fec9c){const _0x139457=_0x456ee1,_0xb2f14={};return _0xb2f14[_0x2fec9c]={[Op[_0x139457(0x16d)]]:'%'+_0x1654fd['query'][_0x139457(0x199)]+'%'},_0xb2f14;})})),_0x183624=_[_0x456ee1(0x18e)]({},_0x183624,_0x1654fd[_0x456ee1(0x169)]),_0x503d41[_0x456ee1(0x16a)](_0x183624);})[_0x1ab62a(0x168)](function(_0x476df4){const _0x34ebb4=_0x1ab62a;if(_0x476df4)return _0x6b744b=_0x476df4[_0x34ebb4(0x191)],typeof _0x1654fd['query'][_0x34ebb4(0x177)]==='undefined'&&(_0x183624[_0x34ebb4(0x198)]=qs[_0x34ebb4(0x198)](_0x1654fd[_0x34ebb4(0x16b)][_0x34ebb4(0x198)]),_0x183624[_0x34ebb4(0x197)]=qs[_0x34ebb4(0x197)](_0x1654fd['query'][_0x34ebb4(0x197)])),_0x503d41[_0x34ebb4(0x16a)](_0x183624);})['then'](function(_0x503de0){if(_0x503de0)return _0x503de0?{'count':_0x6b744b,'rows':_0x503de0}:null;})[_0x1ab62a(0x168)](respondWithResult(_0x62d48e,null))[_0x1ab62a(0x170)](handleError(_0x62d48e,null));},exports[a294_0x572c2e(0x18a)]=function(_0x172883,_0x24b3c9){const _0x35e7c3=a294_0x572c2e;let _0x46bca4={};const _0x189321={};let _0x35ae93,_0x3cdf34;return db['Dynamics365Configuration'][_0x35e7c3(0x17d)]({'where':{'id':_0x172883[_0x35e7c3(0x166)]['id']}})[_0x35e7c3(0x168)](handleEntityNotFound(_0x24b3c9,null))[_0x35e7c3(0x168)](function(_0x260f21){const _0x4d67e5=_0x35e7c3;if(_0x260f21)return _0x35ae93=_0x260f21,_0x189321[_0x4d67e5(0x19c)]=_[_0x4d67e5(0x192)](db['Dynamics365Field'][_0x4d67e5(0x175)]),_0x189321[_0x4d67e5(0x16b)]=_[_0x4d67e5(0x192)](_0x172883['query']),_0x189321['filters']=_['intersection'](_0x189321['model'],_0x189321[_0x4d67e5(0x16b)]),_0x46bca4['attributes']=_[_0x4d67e5(0x195)](_0x189321[_0x4d67e5(0x19c)],qs[_0x4d67e5(0x17f)](_0x172883[_0x4d67e5(0x16b)][_0x4d67e5(0x17f)])),_0x46bca4['attributes']=_0x46bca4[_0x4d67e5(0x193)][_0x4d67e5(0x191)]?_0x46bca4['attributes']:_0x189321['model'],_0x46bca4[_0x4d67e5(0x174)]=qs[_0x4d67e5(0x17e)](_0x172883[_0x4d67e5(0x16b)][_0x4d67e5(0x17e)]),_0x46bca4[_0x4d67e5(0x183)]=qs['filters'](_[_0x4d67e5(0x196)](_0x172883[_0x4d67e5(0x16b)],_0x189321[_0x4d67e5(0x172)])),_0x172883['query'][_0x4d67e5(0x199)]&&(_0x46bca4[_0x4d67e5(0x183)]=_['merge'](_0x46bca4[_0x4d67e5(0x183)],{[Op['or']]:_[_0x4d67e5(0x16e)](_0x46bca4['attributes'],function(_0x57cb9b){const _0x2777a8=_0x4d67e5,_0x436d8c={};return _0x436d8c[_0x57cb9b]={[Op[_0x2777a8(0x16d)]]:'%'+_0x172883['query'][_0x2777a8(0x199)]+'%'},_0x436d8c;})})),_0x46bca4=_[_0x4d67e5(0x18e)]({},_0x46bca4,_0x172883['options']),_0x35ae93['getSubjects'](_0x46bca4);})['then'](function(_0x856a42){const _0x3e86db=_0x35e7c3;if(_0x856a42)return _0x3cdf34=_0x856a42['length'],typeof _0x172883['query'][_0x3e86db(0x177)]===_0x3e86db(0x176)&&(_0x46bca4[_0x3e86db(0x198)]=qs[_0x3e86db(0x198)](_0x172883[_0x3e86db(0x16b)][_0x3e86db(0x198)]),_0x46bca4['offset']=qs['offset'](_0x172883[_0x3e86db(0x16b)]['offset'])),_0x35ae93[_0x3e86db(0x18a)](_0x46bca4);})[_0x35e7c3(0x168)](function(_0x4d3a8a){if(_0x4d3a8a)return _0x4d3a8a?{'count':_0x3cdf34,'rows':_0x4d3a8a}:null;})[_0x35e7c3(0x168)](respondWithResult(_0x24b3c9,null))['catch'](handleError(_0x24b3c9,null));},exports[a294_0x572c2e(0x186)]=function(_0x2a8a4f,_0x4f5263){const _0x45dff5=a294_0x572c2e;let _0xa1932d={};const _0xc06908={};let _0x88deb8,_0x522dd5;return db[_0x45dff5(0x17c)][_0x45dff5(0x17d)]({'where':{'id':_0x2a8a4f['params']['id']}})['then'](handleEntityNotFound(_0x4f5263,null))[_0x45dff5(0x168)](function(_0x3839e8){const _0x49d02e=_0x45dff5;if(_0x3839e8)return _0x88deb8=_0x3839e8,_0xc06908[_0x49d02e(0x19c)]=_['keys'](db[_0x49d02e(0x19a)]['rawAttributes']),_0xc06908[_0x49d02e(0x16b)]=_['keys'](_0x2a8a4f[_0x49d02e(0x16b)]),_0xc06908[_0x49d02e(0x172)]=_[_0x49d02e(0x195)](_0xc06908[_0x49d02e(0x19c)],_0xc06908[_0x49d02e(0x16b)]),_0xa1932d[_0x49d02e(0x193)]=_[_0x49d02e(0x195)](_0xc06908[_0x49d02e(0x19c)],qs[_0x49d02e(0x17f)](_0x2a8a4f[_0x49d02e(0x16b)][_0x49d02e(0x17f)])),_0xa1932d[_0x49d02e(0x193)]=_0xa1932d[_0x49d02e(0x193)][_0x49d02e(0x191)]?_0xa1932d[_0x49d02e(0x193)]:_0xc06908[_0x49d02e(0x19c)],_0xa1932d[_0x49d02e(0x174)]=qs[_0x49d02e(0x17e)](_0x2a8a4f[_0x49d02e(0x16b)]['sort']),_0xa1932d[_0x49d02e(0x183)]=qs['filters'](_['pick'](_0x2a8a4f['query'],_0xc06908[_0x49d02e(0x172)])),_0x2a8a4f[_0x49d02e(0x16b)][_0x49d02e(0x199)]&&(_0xa1932d[_0x49d02e(0x183)]=_['merge'](_0xa1932d[_0x49d02e(0x183)],{[Op['or']]:_[_0x49d02e(0x16e)](_0xa1932d[_0x49d02e(0x193)],function(_0x2f5405){const _0x21ca52=_0x49d02e,_0x2ebb9b={};return _0x2ebb9b[_0x2f5405]={[Op[_0x21ca52(0x16d)]]:'%'+_0x2a8a4f[_0x21ca52(0x16b)][_0x21ca52(0x199)]+'%'},_0x2ebb9b;})})),_0xa1932d=_['merge']({},_0xa1932d,_0x2a8a4f['options']),_0x88deb8['getDescriptions'](_0xa1932d);})[_0x45dff5(0x168)](function(_0x324051){const _0x8f3b22=_0x45dff5;if(_0x324051)return _0x522dd5=_0x324051[_0x8f3b22(0x191)],typeof _0x2a8a4f[_0x8f3b22(0x16b)][_0x8f3b22(0x177)]==='undefined'&&(_0xa1932d[_0x8f3b22(0x198)]=qs[_0x8f3b22(0x198)](_0x2a8a4f['query']['limit']),_0xa1932d[_0x8f3b22(0x197)]=qs[_0x8f3b22(0x197)](_0x2a8a4f[_0x8f3b22(0x16b)][_0x8f3b22(0x197)])),_0x88deb8[_0x8f3b22(0x186)](_0xa1932d);})[_0x45dff5(0x168)](function(_0x875625){if(_0x875625)return _0x875625?{'count':_0x522dd5,'rows':_0x875625}:null;})['then'](respondWithResult(_0x4f5263,null))[_0x45dff5(0x170)](handleError(_0x4f5263,null));}; \ No newline at end of file diff --git a/server/api/intDynamics365Configuration/intDynamics365Configuration.model.js b/server/api/intDynamics365Configuration/intDynamics365Configuration.model.js index f278f49..a972eab 100644 --- a/server/api/intDynamics365Configuration/intDynamics365Configuration.model.js +++ b/server/api/intDynamics365Configuration/intDynamics365Configuration.model.js @@ -1 +1 @@ -const a248_0x4881=['exports','int_dynamics365_configurations','./intDynamics365Configuration.attributes','Dynamics365Configuration','define'];(function(_0x5dd8ea,_0x488132){const _0x2419ae=function(_0x25ac48){while(--_0x25ac48){_0x5dd8ea['push'](_0x5dd8ea['shift']());}};_0x2419ae(++_0x488132);}(a248_0x4881,0x13e));const a248_0x2419=function(_0x5dd8ea,_0x488132){_0x5dd8ea=_0x5dd8ea-0x0;let _0x2419ae=a248_0x4881[_0x5dd8ea];return _0x2419ae;};const _0x4d466a=a248_0x2419;'use strict';const attributes=require(_0x4d466a('0x4'));module[_0x4d466a('0x2')]=function(_0x25ac48){const _0x42ff5f=_0x4d466a,_0xaf3ee1=_0x25ac48[_0x42ff5f('0x1')](_0x42ff5f('0x0'),attributes,{'tableName':_0x42ff5f('0x3'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0xaf3ee1;}; \ No newline at end of file +const a295_0xf319=['function','exports','./intDynamics365Configuration.attributes','Dynamics365Configuration','./intDynamics365Configuration.options','init'];(function(_0x2b1fa1,_0x1e6196){const _0xf319a8=function(_0x1cb190){while(--_0x1cb190){_0x2b1fa1['push'](_0x2b1fa1['shift']());}};_0xf319a8(++_0x1e6196);}(a295_0xf319,0x1d8));const a295_0x1cb1=function(_0x2b1fa1,_0x1e6196){_0x2b1fa1=_0x2b1fa1-0x169;let _0xf319a8=a295_0xf319[_0x2b1fa1];return _0xf319a8;};const a295_0xc01d76=a295_0x1cb1;'use strict';const {Model}=require('sequelize'),{attributes}=require(a295_0xc01d76(0x16d)),{options}=require(a295_0xc01d76(0x169));class Dynamics365Configuration extends Model{}function init(_0x31bce0,_0xe79375){const _0x29f0c9=a295_0xc01d76,_0x20cd05=options(_0x31bce0),_0x13a41d=typeof _0xe79375===_0x29f0c9(0x16b)?_0xe79375(_0x20cd05):_0x20cd05;return Dynamics365Configuration[_0x29f0c9(0x16a)](attributes,_0x13a41d),Dynamics365Configuration;}module[a295_0xc01d76(0x16c)][a295_0xc01d76(0x16e)]=Dynamics365Configuration,module[a295_0xc01d76(0x16c)][a295_0xc01d76(0x16a)]=init; \ No newline at end of file diff --git a/server/api/intDynamics365Configuration/intDynamics365Configuration.options.js b/server/api/intDynamics365Configuration/intDynamics365Configuration.options.js new file mode 100644 index 0000000..c36b642 --- /dev/null +++ b/server/api/intDynamics365Configuration/intDynamics365Configuration.options.js @@ -0,0 +1 @@ +var a296_0x1f79=['options','exports'];(function(_0x41c40d,_0x44a41b){var _0x1f7958=function(_0x510f9e){while(--_0x510f9e){_0x41c40d['push'](_0x41c40d['shift']());}};_0x1f7958(++_0x44a41b);}(a296_0x1f79,0x83));var a296_0x510f=function(_0x41c40d,_0x44a41b){_0x41c40d=_0x41c40d-0x170;var _0x1f7958=a296_0x1f79[_0x41c40d];return _0x1f7958;};var a296_0x1de16e=a296_0x510f;function options(_0x428ffa){return{'sequelize':_0x428ffa,'tableName':'int_dynamics365_configurations','paranoid':![],'indexes':[],'timestamps':!![]};}module[a296_0x1de16e(0x170)][a296_0x1de16e(0x171)]=options; \ No newline at end of file diff --git a/server/api/intDynamics365Field/index.js b/server/api/intDynamics365Field/index.js index a89adeb..600ae0e 100644 --- a/server/api/intDynamics365Field/index.js +++ b/server/api/intDynamics365Field/index.js @@ -1 +1 @@ -const a249_0x3ae2=['index','isAuthenticated','show','get','delete','../../components/auth/service','exports','express','/:id','update','post','destroy','./intDynamics365Field.controller'];(function(_0x103dd3,_0x3ae2f8){const _0x187f95=function(_0x3ea2cb){while(--_0x3ea2cb){_0x103dd3['push'](_0x103dd3['shift']());}};_0x187f95(++_0x3ae2f8);}(a249_0x3ae2,0x1e5));const a249_0x187f=function(_0x103dd3,_0x3ae2f8){_0x103dd3=_0x103dd3-0x0;let _0x187f95=a249_0x3ae2[_0x103dd3];return _0x187f95;};const _0x521d36=a249_0x187f;'use strict';const express=require(_0x521d36('0x3')),router=express['Router'](),auth=require(_0x521d36('0x1')),controller=require(_0x521d36('0x8'));router[_0x521d36('0xc')]('/',auth[_0x521d36('0xa')](),controller[_0x521d36('0x9')]),router[_0x521d36('0xc')](_0x521d36('0x4'),auth['isAuthenticated'](),controller[_0x521d36('0xb')]),router[_0x521d36('0x6')]('/',auth['isAuthenticated'](),controller['create']),router['put'](_0x521d36('0x4'),auth[_0x521d36('0xa')](),controller[_0x521d36('0x5')]),router[_0x521d36('0x0')](_0x521d36('0x4'),auth[_0x521d36('0xa')](),controller[_0x521d36('0x7')]),module[_0x521d36('0x2')]=router; \ No newline at end of file +const a297_0x5f57=['/:id','./intDynamics365Field.controller','delete','get','destroy','show','put','express','isAuthenticated','index','update'];(function(_0x90c47a,_0x253773){const _0x5f5716=function(_0x3f9d88){while(--_0x3f9d88){_0x90c47a['push'](_0x90c47a['shift']());}};_0x5f5716(++_0x253773);}(a297_0x5f57,0x196));const a297_0x3f9d=function(_0x90c47a,_0x253773){_0x90c47a=_0x90c47a-0x131;let _0x5f5716=a297_0x5f57[_0x90c47a];return _0x5f5716;};const a297_0x1bf7a3=a297_0x3f9d;'use strict';const express=require(a297_0x1bf7a3(0x139)),router=express['Router'](),auth=require('../../components/auth/service'),controller=require(a297_0x1bf7a3(0x133));router[a297_0x1bf7a3(0x135)]('/',auth['isAuthenticated'](),controller[a297_0x1bf7a3(0x13b)]),router[a297_0x1bf7a3(0x135)](a297_0x1bf7a3(0x132),auth[a297_0x1bf7a3(0x13a)](),controller[a297_0x1bf7a3(0x137)]),router['post']('/',auth[a297_0x1bf7a3(0x13a)](),controller['create']),router[a297_0x1bf7a3(0x138)](a297_0x1bf7a3(0x132),auth[a297_0x1bf7a3(0x13a)](),controller[a297_0x1bf7a3(0x131)]),router[a297_0x1bf7a3(0x134)](a297_0x1bf7a3(0x132),auth['isAuthenticated'](),controller[a297_0x1bf7a3(0x136)]),module['exports']=router; \ No newline at end of file diff --git a/server/api/intDynamics365Field/intDynamics365Field.attributes.js b/server/api/intDynamics365Field/intDynamics365Field.attributes.js index e8c7e59..9802c88 100644 --- a/server/api/intDynamics365Field/intDynamics365Field.attributes.js +++ b/server/api/intDynamics365Field/intDynamics365Field.attributes.js @@ -1 +1 @@ -const a250_0x40ea=['string','ENUM','BOOLEAN','customVariable','exports','STRING','sequelize','variable'];(function(_0x3ad707,_0x40ea25){const _0x2ab16f=function(_0x4757a1){while(--_0x4757a1){_0x3ad707['push'](_0x3ad707['shift']());}};_0x2ab16f(++_0x40ea25);}(a250_0x40ea,0xa1));const a250_0x2ab1=function(_0x3ad707,_0x40ea25){_0x3ad707=_0x3ad707-0x0;let _0x2ab16f=a250_0x40ea[_0x3ad707];return _0x2ab16f;};const _0x516806=a250_0x2ab1;'use strict';const Sequelize=require(_0x516806('0x5'));module[_0x516806('0x3')]={'type':{'type':Sequelize[_0x516806('0x0')]('string',_0x516806('0x6'),'customVariable','keyValue'),'defaultValue':_0x516806('0x7')},'content':{'type':Sequelize[_0x516806('0x4')]},'key':{'type':Sequelize[_0x516806('0x4')]},'keyType':{'type':Sequelize[_0x516806('0x0')](_0x516806('0x7'),_0x516806('0x6'),_0x516806('0x2'))},'keyContent':{'type':Sequelize[_0x516806('0x4')]},'idField':{'type':Sequelize[_0x516806('0x4')]},'nameField':{'type':Sequelize['STRING']},'customField':{'type':Sequelize[_0x516806('0x1')],'defaultValue':!![]},'variableName':{'type':Sequelize['STRING']}}; \ No newline at end of file +const a298_0x5151=['customVariable','keyValue','string','attributes','sequelize','variable','ENUM','STRING','BOOLEAN'];(function(_0x4f0da3,_0x280df0){const _0x515170=function(_0x5b55bb){while(--_0x5b55bb){_0x4f0da3['push'](_0x4f0da3['shift']());}};_0x515170(++_0x280df0);}(a298_0x5151,0x65));const a298_0x5b55=function(_0x4f0da3,_0x280df0){_0x4f0da3=_0x4f0da3-0x8a;let _0x515170=a298_0x5151[_0x4f0da3];return _0x515170;};const a298_0xad27d6=a298_0x5b55;'use strict';const {DataTypes}=require(a298_0xad27d6(0x8c)),attributes={'type':{'type':DataTypes[a298_0xad27d6(0x8e)](a298_0xad27d6(0x8a),a298_0xad27d6(0x8d),a298_0xad27d6(0x91),a298_0xad27d6(0x92)),'defaultValue':a298_0xad27d6(0x8a)},'content':{'type':DataTypes[a298_0xad27d6(0x8f)]},'key':{'type':DataTypes[a298_0xad27d6(0x8f)]},'keyType':{'type':DataTypes[a298_0xad27d6(0x8e)]('string','variable',a298_0xad27d6(0x91))},'keyContent':{'type':DataTypes['STRING']},'idField':{'type':DataTypes[a298_0xad27d6(0x8f)]},'nameField':{'type':DataTypes[a298_0xad27d6(0x8f)]},'customField':{'type':DataTypes[a298_0xad27d6(0x90)],'defaultValue':!![]},'variableName':{'type':DataTypes[a298_0xad27d6(0x8f)]}};module['exports'][a298_0xad27d6(0x8b)]=attributes; \ No newline at end of file diff --git a/server/api/intDynamics365Field/intDynamics365Field.controller.js b/server/api/intDynamics365Field/intDynamics365Field.controller.js index f317a7b..036c201 100644 --- a/server/api/intDynamics365Field/intDynamics365Field.controller.js +++ b/server/api/intDynamics365Field/intDynamics365Field.controller.js @@ -1 +1 @@ -const a251_0x1dc9=['nolimit','sendStatus','type','count','options','json','findAll','body','pick','attributes','then','destroy','catch','include','sequelize','lodash','map','../../components/parsers/qs','Content-Range','like','params','offset','where','includeAll','api','create','status','model','rows','../../config/logger','limit','fields','error','rawAttributes','query','keys','sort','findOne','intersection','filter','filters','stack','name','send','merge','VIRTUAL','../../mysqldb','length','Dynamics365Field','update'];(function(_0x148c61,_0x1dc978){const _0x3dc0dc=function(_0xdb1427){while(--_0xdb1427){_0x148c61['push'](_0x148c61['shift']());}};_0x3dc0dc(++_0x1dc978);}(a251_0x1dc9,0x1b3));const a251_0x3dc0=function(_0x148c61,_0x1dc978){_0x148c61=_0x148c61-0x0;let _0x3dc0dc=a251_0x1dc9[_0x148c61];return _0x3dc0dc;};const _0x215438=a251_0x3dc0;'use strict';const _=require(_0x215438('0x1e')),qs=require(_0x215438('0x20')),logger=require(_0x215438('0x2c'))(_0x215438('0x27')),db=require(_0x215438('0xb'))['db'],{Op}=require(_0x215438('0x1d'));function respondWithResult(_0xdb1427,_0x463b1f){return _0x463b1f=_0x463b1f||0xc8,function(_0xaa64d4){const _0x41303f=a251_0x3dc0;if(_0xaa64d4)return _0xdb1427[_0x41303f('0x29')](_0x463b1f)[_0x41303f('0x14')](_0xaa64d4);};}function respondWithFilteredResult(_0x28d834,_0x1ea387){return function(_0x1e21c5){const _0x3392cc=a251_0x3dc0;if(_0x1e21c5){const _0x112439=_0x1e21c5['count'],_0xe5e78e=_0x1ea387['offset'];let _0x38a8b1=_0x1ea387['offset']+_0x1ea387[_0x3392cc('0x2d')],_0x553fe2;return _0x38a8b1>=_0x112439?(_0x38a8b1=_0x112439,_0x553fe2=0xc8):_0x553fe2=0xce,_0x28d834['status'](_0x553fe2),_0x28d834['set'](_0x3392cc('0x21'),_0xe5e78e+'-'+_0x38a8b1+'/'+_0x112439)[_0x3392cc('0x14')](_0x1e21c5);}return null;};}function saveUpdates(_0x268fad){return function(_0x1d3bf5){const _0x2b64cf=a251_0x3dc0;if(_0x1d3bf5)return _0x1d3bf5['update'](_0x268fad)[_0x2b64cf('0x19')](function(_0x1bec22){return _0x1bec22;});return null;};}function removeEntity(_0x39e5d7){return function(_0x5cf06c){const _0xf8273b=a251_0x3dc0;if(_0x5cf06c)return _0x5cf06c[_0xf8273b('0x1a')]()['then'](function(){const _0x37a975=_0xf8273b;_0x39e5d7[_0x37a975('0x29')](0xcc)['end']();});};}function handleEntityNotFound(_0x44d9ae){return function(_0x42a37d){const _0x2d89b5=a251_0x3dc0;return!_0x42a37d&&_0x44d9ae[_0x2d89b5('0x10')](0x194),_0x42a37d;};}function handleError(_0x3bdc36,_0x38b08b){return _0x38b08b=_0x38b08b||0x1f4,function(_0x2b59a6){const _0x1395ca=a251_0x3dc0;logger[_0x1395ca('0x2f')](_0x2b59a6[_0x1395ca('0x6')]),_0x2b59a6['name']&&delete _0x2b59a6['name'],_0x3bdc36[_0x1395ca('0x29')](_0x38b08b)[_0x1395ca('0x8')](_0x2b59a6);};}exports['index']=function(_0x361797,_0xced92b){const _0x5873df=_0x215438;let _0x8e69a5={};const _0x1e2730={},_0x10b924={'count':0x0,'rows':[]},_0xf250a1=_[_0x5873df('0x1f')](db['Dynamics365Field'][_0x5873df('0x30')],function(_0x49a213){const _0x50b433=_0x5873df;return{'name':_0x49a213['fieldName'],'type':_0x49a213[_0x50b433('0x11')]['key']};});_0x1e2730['model']=_[_0x5873df('0x1f')](_0xf250a1,_0x5873df('0x7')),_0x1e2730[_0x5873df('0x31')]=_['keys'](_0x361797[_0x5873df('0x31')]),_0x1e2730['filters']=_[_0x5873df('0x3')](_0x1e2730[_0x5873df('0x2a')],_0x1e2730[_0x5873df('0x31')]),_0x8e69a5[_0x5873df('0x18')]=_['intersection'](_0x1e2730[_0x5873df('0x2a')],qs['fields'](_0x361797[_0x5873df('0x31')][_0x5873df('0x2e')])),_0x8e69a5[_0x5873df('0x18')]=_0x8e69a5[_0x5873df('0x18')][_0x5873df('0xc')]?_0x8e69a5[_0x5873df('0x18')]:_0x1e2730['model'];typeof _0x361797[_0x5873df('0x31')][_0x5873df('0xf')]==='undefined'&&(_0x8e69a5[_0x5873df('0x2d')]=qs['limit'](_0x361797[_0x5873df('0x31')][_0x5873df('0x2d')]),_0x8e69a5[_0x5873df('0x24')]=qs[_0x5873df('0x24')](_0x361797['query']['offset']));_0x8e69a5['order']=qs[_0x5873df('0x1')](_0x361797[_0x5873df('0x31')][_0x5873df('0x1')]),_0x8e69a5[_0x5873df('0x25')]=qs[_0x5873df('0x5')](_[_0x5873df('0x17')](_0x361797[_0x5873df('0x31')],_0x1e2730[_0x5873df('0x5')]),_0xf250a1);_0x361797['query'][_0x5873df('0x4')]&&(_0x8e69a5[_0x5873df('0x25')]=_[_0x5873df('0x9')](_0x8e69a5[_0x5873df('0x25')],{[Op['or']]:_[_0x5873df('0x1f')](_0xf250a1,function(_0x4cbe28){const _0x295be1=_0x5873df;if(_0x4cbe28[_0x295be1('0x11')]!==_0x295be1('0xa')){const _0x2e965f={};return _0x2e965f[_0x4cbe28[_0x295be1('0x7')]]={[Op[_0x295be1('0x22')]]:'%'+_0x361797[_0x295be1('0x31')][_0x295be1('0x4')]+'%'},_0x2e965f;}})}));_0x8e69a5=_[_0x5873df('0x9')]({},_0x8e69a5,_0x361797[_0x5873df('0x13')]);const _0x3191b2={'where':_0x8e69a5[_0x5873df('0x25')]};return db[_0x5873df('0xd')][_0x5873df('0x12')](_0x3191b2)['then'](function(_0x1c6dff){const _0x3850cd=_0x5873df;return _0x10b924[_0x3850cd('0x12')]=_0x1c6dff,_0x361797['query'][_0x3850cd('0x26')]&&(_0x8e69a5[_0x3850cd('0x1c')]=[{'all':!![]}]),db[_0x3850cd('0xd')][_0x3850cd('0x15')](_0x8e69a5);})[_0x5873df('0x19')](function(_0x47ec1a){const _0x5d2d3a=_0x5873df;return _0x10b924[_0x5d2d3a('0x2b')]=_0x47ec1a,_0x10b924;})[_0x5873df('0x19')](respondWithFilteredResult(_0xced92b,_0x8e69a5))[_0x5873df('0x1b')](handleError(_0xced92b,null));},exports['show']=function(_0x419dec,_0x223615){const _0x5fca77=_0x215438;let _0x344044={'raw':!![],'where':{'id':_0x419dec[_0x5fca77('0x23')]['id']}};const _0x410468={};return _0x410468['model']=_[_0x5fca77('0x0')](db[_0x5fca77('0xd')][_0x5fca77('0x30')]),_0x410468['query']=_['keys'](_0x419dec[_0x5fca77('0x31')]),_0x410468[_0x5fca77('0x5')]=_[_0x5fca77('0x3')](_0x410468['model'],_0x410468[_0x5fca77('0x31')]),_0x344044['attributes']=_[_0x5fca77('0x3')](_0x410468['model'],qs['fields'](_0x419dec[_0x5fca77('0x31')][_0x5fca77('0x2e')])),_0x344044[_0x5fca77('0x18')]=_0x344044[_0x5fca77('0x18')][_0x5fca77('0xc')]?_0x344044[_0x5fca77('0x18')]:_0x410468[_0x5fca77('0x2a')],_0x419dec[_0x5fca77('0x31')][_0x5fca77('0x26')]&&(_0x344044[_0x5fca77('0x1c')]=[{'all':!![]}]),_0x344044=_[_0x5fca77('0x9')]({},_0x344044,_0x419dec[_0x5fca77('0x13')]),db['Dynamics365Field'][_0x5fca77('0x2')](_0x344044)['then'](handleEntityNotFound(_0x223615,null))[_0x5fca77('0x19')](respondWithResult(_0x223615,null))['catch'](handleError(_0x223615,null));},exports[_0x215438('0x28')]=function(_0x47bff4,_0x3d8b12){const _0xea593=_0x215438;return db[_0xea593('0xd')][_0xea593('0x28')](_0x47bff4[_0xea593('0x16')],{})[_0xea593('0x19')](respondWithResult(_0x3d8b12,0xc9))[_0xea593('0x1b')](handleError(_0x3d8b12,null));},exports[_0x215438('0xe')]=function(_0x38f24f,_0x1ff0c6){const _0x443edc=_0x215438;return _0x38f24f[_0x443edc('0x16')]['id']&&delete _0x38f24f[_0x443edc('0x16')]['id'],db['Dynamics365Field'][_0x443edc('0x2')]({'where':{'id':_0x38f24f['params']['id']}})['then'](handleEntityNotFound(_0x1ff0c6,null))[_0x443edc('0x19')](saveUpdates(_0x38f24f[_0x443edc('0x16')],null))[_0x443edc('0x19')](respondWithResult(_0x1ff0c6,null))[_0x443edc('0x1b')](handleError(_0x1ff0c6,null));},exports[_0x215438('0x1a')]=function(_0x3598,_0x59e90a){const _0x308d9c=_0x215438;return db[_0x308d9c('0xd')]['findOne']({'where':{'id':_0x3598[_0x308d9c('0x23')]['id']}})[_0x308d9c('0x19')](handleEntityNotFound(_0x59e90a,null))[_0x308d9c('0x19')](removeEntity(_0x59e90a,null))[_0x308d9c('0x1b')](handleError(_0x59e90a,null));}; \ No newline at end of file +const a299_0x56ef=['show','json','map','fields','sendStatus','count','attributes','sequelize','findAll','length','stack','body','create','index','VIRTUAL','include','fieldName','model','like','undefined','limit','update','sort','then','api','query','catch','status','set','options','filter','where','lodash','rawAttributes','offset','filters','Dynamics365Field','name','includeAll','error','type','destroy','keys','order','intersection','params','send','merge','end'];(function(_0x12271e,_0x1925f8){const _0x56ef05=function(_0x708fa2){while(--_0x708fa2){_0x12271e['push'](_0x12271e['shift']());}};_0x56ef05(++_0x1925f8);}(a299_0x56ef,0x11f));const a299_0x708f=function(_0x12271e,_0x1925f8){_0x12271e=_0x12271e-0x189;let _0x56ef05=a299_0x56ef[_0x12271e];return _0x56ef05;};const a299_0x27865f=a299_0x708f;'use strict';const _=require(a299_0x27865f(0x1b0)),qs=require('../../components/parsers/qs'),logger=require('../../config/logger')(a299_0x27865f(0x1a8)),{db}=require('../../mysqldb'),{Op}=require(a299_0x27865f(0x197));function respondWithResult(_0x34a789,_0x5b0870){return _0x5b0870=_0x5b0870||0xc8,function(_0x3c7925){const _0x360b34=a299_0x708f;if(_0x3c7925)return _0x34a789['status'](_0x5b0870)[_0x360b34(0x191)](_0x3c7925);};}function respondWithFilteredResult(_0x5dda98,_0x3b5cd6){return function(_0xd5ea7d){const _0x1c4f27=a299_0x708f;if(_0xd5ea7d){const _0xdaf5b6=_0xd5ea7d[_0x1c4f27(0x195)],_0x4960ed=_0x3b5cd6[_0x1c4f27(0x1b2)];let _0x4363a3=_0x3b5cd6['offset']+_0x3b5cd6['limit'],_0x2ab448;return _0x4363a3>=_0xdaf5b6?(_0x4363a3=_0xdaf5b6,_0x2ab448=0xc8):_0x2ab448=0xce,_0x5dda98[_0x1c4f27(0x1ab)](_0x2ab448),_0x5dda98[_0x1c4f27(0x1ac)]('Content-Range',_0x4960ed+'-'+_0x4363a3+'/'+_0xdaf5b6)[_0x1c4f27(0x191)](_0xd5ea7d);}return null;};}function saveUpdates(_0x51e9c7){return function(_0x13f604){const _0x4c1c1a=a299_0x708f;if(_0x13f604)return _0x13f604[_0x4c1c1a(0x1a5)](_0x51e9c7)[_0x4c1c1a(0x1a7)](function(_0x209660){return _0x209660;});return null;};}function removeEntity(_0x33e7a4){return function(_0x435210){if(_0x435210)return _0x435210['destroy']()['then'](function(){const _0x152094=a299_0x708f;_0x33e7a4[_0x152094(0x1ab)](0xcc)[_0x152094(0x18f)]();});};}function handleEntityNotFound(_0x28d749){return function(_0xd5b6f1){const _0x377878=a299_0x708f;return!_0xd5b6f1&&_0x28d749[_0x377878(0x194)](0x194),_0xd5b6f1;};}function handleError(_0x3f7659,_0x2c5e31){return _0x2c5e31=_0x2c5e31||0x1f4,function(_0x4ab93a){const _0x419227=a299_0x708f;logger[_0x419227(0x1b7)](_0x4ab93a[_0x419227(0x19a)]),_0x4ab93a['name']&&delete _0x4ab93a['name'],_0x3f7659[_0x419227(0x1ab)](_0x2c5e31)[_0x419227(0x18d)](_0x4ab93a);};}exports[a299_0x27865f(0x19d)]=function(_0x356791,_0x3473f1){const _0xc02a92=a299_0x27865f;let _0x56851d={};const _0x55d8c5={},_0x5c6c61={'count':0x0,'rows':[]},_0x1b974c=_['map'](db[_0xc02a92(0x1b4)][_0xc02a92(0x1b1)],function(_0x5c00a0){const _0x112f51=_0xc02a92;return{'name':_0x5c00a0[_0x112f51(0x1a0)],'type':_0x5c00a0[_0x112f51(0x1b8)]['key']};});_0x55d8c5[_0xc02a92(0x1a1)]=_['map'](_0x1b974c,_0xc02a92(0x1b5)),_0x55d8c5[_0xc02a92(0x1a9)]=_[_0xc02a92(0x189)](_0x356791['query']),_0x55d8c5[_0xc02a92(0x1b3)]=_[_0xc02a92(0x18b)](_0x55d8c5[_0xc02a92(0x1a1)],_0x55d8c5[_0xc02a92(0x1a9)]),_0x56851d[_0xc02a92(0x196)]=_[_0xc02a92(0x18b)](_0x55d8c5['model'],qs[_0xc02a92(0x193)](_0x356791[_0xc02a92(0x1a9)][_0xc02a92(0x193)])),_0x56851d['attributes']=_0x56851d[_0xc02a92(0x196)]['length']?_0x56851d['attributes']:_0x55d8c5[_0xc02a92(0x1a1)];typeof _0x356791[_0xc02a92(0x1a9)]['nolimit']===_0xc02a92(0x1a3)&&(_0x56851d[_0xc02a92(0x1a4)]=qs[_0xc02a92(0x1a4)](_0x356791[_0xc02a92(0x1a9)][_0xc02a92(0x1a4)]),_0x56851d[_0xc02a92(0x1b2)]=qs['offset'](_0x356791[_0xc02a92(0x1a9)][_0xc02a92(0x1b2)]));_0x56851d[_0xc02a92(0x18a)]=qs['sort'](_0x356791[_0xc02a92(0x1a9)][_0xc02a92(0x1a6)]),_0x56851d[_0xc02a92(0x1af)]=qs[_0xc02a92(0x1b3)](_['pick'](_0x356791[_0xc02a92(0x1a9)],_0x55d8c5[_0xc02a92(0x1b3)]),_0x1b974c);_0x356791[_0xc02a92(0x1a9)][_0xc02a92(0x1ae)]&&(_0x56851d['where']=_[_0xc02a92(0x18e)](_0x56851d[_0xc02a92(0x1af)],{[Op['or']]:_[_0xc02a92(0x192)](_0x1b974c,function(_0x5d49fe){const _0x123b6b=_0xc02a92;if(_0x5d49fe[_0x123b6b(0x1b8)]!==_0x123b6b(0x19e)){const _0x4a3a9c={};return _0x4a3a9c[_0x5d49fe['name']]={[Op[_0x123b6b(0x1a2)]]:'%'+_0x356791['query'][_0x123b6b(0x1ae)]+'%'},_0x4a3a9c;}})}));_0x56851d=_['merge']({},_0x56851d,_0x356791['options']);const _0x17b656={'where':_0x56851d['where']};return db[_0xc02a92(0x1b4)][_0xc02a92(0x195)](_0x17b656)[_0xc02a92(0x1a7)](function(_0x38419b){const _0x374b8f=_0xc02a92;return _0x5c6c61[_0x374b8f(0x195)]=_0x38419b,_0x356791[_0x374b8f(0x1a9)][_0x374b8f(0x1b6)]&&(_0x56851d[_0x374b8f(0x19f)]=[{'all':!![]}]),db[_0x374b8f(0x1b4)][_0x374b8f(0x198)](_0x56851d);})[_0xc02a92(0x1a7)](function(_0x726476){return _0x5c6c61['rows']=_0x726476,_0x5c6c61;})[_0xc02a92(0x1a7)](respondWithFilteredResult(_0x3473f1,_0x56851d))[_0xc02a92(0x1aa)](handleError(_0x3473f1,null));},exports[a299_0x27865f(0x190)]=function(_0x4f1c7b,_0x234ae0){const _0x5457b5=a299_0x27865f;let _0xe22cb5={'raw':!![],'where':{'id':_0x4f1c7b[_0x5457b5(0x18c)]['id']}};const _0x3818c2={};return _0x3818c2['model']=_[_0x5457b5(0x189)](db[_0x5457b5(0x1b4)][_0x5457b5(0x1b1)]),_0x3818c2[_0x5457b5(0x1a9)]=_[_0x5457b5(0x189)](_0x4f1c7b[_0x5457b5(0x1a9)]),_0x3818c2[_0x5457b5(0x1b3)]=_[_0x5457b5(0x18b)](_0x3818c2[_0x5457b5(0x1a1)],_0x3818c2[_0x5457b5(0x1a9)]),_0xe22cb5[_0x5457b5(0x196)]=_[_0x5457b5(0x18b)](_0x3818c2[_0x5457b5(0x1a1)],qs[_0x5457b5(0x193)](_0x4f1c7b[_0x5457b5(0x1a9)][_0x5457b5(0x193)])),_0xe22cb5[_0x5457b5(0x196)]=_0xe22cb5['attributes'][_0x5457b5(0x199)]?_0xe22cb5['attributes']:_0x3818c2[_0x5457b5(0x1a1)],_0x4f1c7b['query']['includeAll']&&(_0xe22cb5[_0x5457b5(0x19f)]=[{'all':!![]}]),_0xe22cb5=_[_0x5457b5(0x18e)]({},_0xe22cb5,_0x4f1c7b[_0x5457b5(0x1ad)]),db[_0x5457b5(0x1b4)]['findOne'](_0xe22cb5)[_0x5457b5(0x1a7)](handleEntityNotFound(_0x234ae0,null))['then'](respondWithResult(_0x234ae0,null))[_0x5457b5(0x1aa)](handleError(_0x234ae0,null));},exports[a299_0x27865f(0x19c)]=function(_0x3f25fb,_0x3f7d9a){const _0x1106d0=a299_0x27865f;return db[_0x1106d0(0x1b4)][_0x1106d0(0x19c)](_0x3f25fb[_0x1106d0(0x19b)],{})[_0x1106d0(0x1a7)](respondWithResult(_0x3f7d9a,0xc9))[_0x1106d0(0x1aa)](handleError(_0x3f7d9a,null));},exports[a299_0x27865f(0x1a5)]=function(_0x44c373,_0x364c06){const _0x10b997=a299_0x27865f;return _0x44c373[_0x10b997(0x19b)]['id']&&delete _0x44c373[_0x10b997(0x19b)]['id'],db[_0x10b997(0x1b4)]['findOne']({'where':{'id':_0x44c373[_0x10b997(0x18c)]['id']}})['then'](handleEntityNotFound(_0x364c06,null))['then'](saveUpdates(_0x44c373[_0x10b997(0x19b)],null))[_0x10b997(0x1a7)](respondWithResult(_0x364c06,null))[_0x10b997(0x1aa)](handleError(_0x364c06,null));},exports[a299_0x27865f(0x1b9)]=function(_0x211cbd,_0x3135be){const _0x4f5b78=a299_0x27865f;return db[_0x4f5b78(0x1b4)]['findOne']({'where':{'id':_0x211cbd[_0x4f5b78(0x18c)]['id']}})[_0x4f5b78(0x1a7)](handleEntityNotFound(_0x3135be,null))['then'](removeEntity(_0x3135be,null))[_0x4f5b78(0x1aa)](handleError(_0x3135be,null));}; \ No newline at end of file diff --git a/server/api/intDynamics365Field/intDynamics365Field.model.js b/server/api/intDynamics365Field/intDynamics365Field.model.js index 5d86e6b..2a5d3db 100644 --- a/server/api/intDynamics365Field/intDynamics365Field.model.js +++ b/server/api/intDynamics365Field/intDynamics365Field.model.js @@ -1 +1 @@ -const a252_0x3f41=['Dynamics365Field','FieldId','int_dynamics365_fields','exports','./intDynamics365Field.attributes','dynamics365_unique_index','define','idField'];(function(_0x43699d,_0x3f418f){const _0x2111f7=function(_0x414438){while(--_0x414438){_0x43699d['push'](_0x43699d['shift']());}};_0x2111f7(++_0x3f418f);}(a252_0x3f41,0x198));const a252_0x2111=function(_0x43699d,_0x3f418f){_0x43699d=_0x43699d-0x0;let _0x2111f7=a252_0x3f41[_0x43699d];return _0x2111f7;};const _0x163a55=a252_0x2111;'use strict';const attributes=require(_0x163a55('0x4'));module[_0x163a55('0x3')]=function(_0x414438){const _0x3cbcfd=_0x163a55,_0x2a2fed=_0x414438[_0x3cbcfd('0x6')](_0x3cbcfd('0x0'),attributes,{'tableName':_0x3cbcfd('0x2'),'paranoid':![],'indexes':[{'name':_0x3cbcfd('0x5'),'fields':[_0x3cbcfd('0x7'),_0x3cbcfd('0x1')],'unique':!![]}],'timestamps':!![]});return _0x2a2fed;}; \ No newline at end of file +const a300_0x2026=['./intDynamics365Field.options','init','Dynamics365Field','sequelize','function','exports','./intDynamics365Field.attributes'];(function(_0x2ca308,_0x573920){const _0x20262=function(_0xb2225f){while(--_0xb2225f){_0x2ca308['push'](_0x2ca308['shift']());}};_0x20262(++_0x573920);}(a300_0x2026,0xa2));const a300_0xb222=function(_0x2ca308,_0x573920){_0x2ca308=_0x2ca308-0x148;let _0x20262=a300_0x2026[_0x2ca308];return _0x20262;};const a300_0x29627f=a300_0xb222;'use strict';const {Model}=require(a300_0x29627f(0x14a)),{attributes}=require(a300_0x29627f(0x14d)),{options}=require(a300_0x29627f(0x14e));class Dynamics365Field extends Model{}function init(_0x3a25ff,_0x4fa7f5){const _0x16d79f=a300_0x29627f,_0x38dc1d=options(_0x3a25ff),_0x4be14e=typeof _0x4fa7f5===_0x16d79f(0x14b)?_0x4fa7f5(_0x38dc1d):_0x38dc1d;return Dynamics365Field[_0x16d79f(0x148)](attributes,_0x4be14e),Dynamics365Field;}module[a300_0x29627f(0x14c)][a300_0x29627f(0x149)]=Dynamics365Field,module[a300_0x29627f(0x14c)][a300_0x29627f(0x148)]=init; \ No newline at end of file diff --git a/server/api/intDynamics365Field/intDynamics365Field.options.js b/server/api/intDynamics365Field/intDynamics365Field.options.js new file mode 100644 index 0000000..41a6798 --- /dev/null +++ b/server/api/intDynamics365Field/intDynamics365Field.options.js @@ -0,0 +1 @@ +var a301_0x52a3=['FieldId','options','int_dynamics365_fields','exports','idField'];(function(_0x479308,_0x137714){var _0x52a37d=function(_0x1c7882){while(--_0x1c7882){_0x479308['push'](_0x479308['shift']());}};_0x52a37d(++_0x137714);}(a301_0x52a3,0xe6));var a301_0x1c78=function(_0x479308,_0x137714){_0x479308=_0x479308-0x194;var _0x52a37d=a301_0x52a3[_0x479308];return _0x52a37d;};var a301_0x5b57dd=a301_0x1c78;function options(_0x4a69ea){var _0x418c5a=a301_0x1c78;return{'sequelize':_0x4a69ea,'tableName':_0x418c5a(0x196),'paranoid':![],'indexes':[{'name':'dynamics365_unique_index','fields':[_0x418c5a(0x198),_0x418c5a(0x194)],'unique':!![]}],'timestamps':!![]};}module[a301_0x5b57dd(0x197)][a301_0x5b57dd(0x195)]=options; \ No newline at end of file diff --git a/server/api/intFreshdeskAccount/index.js b/server/api/intFreshdeskAccount/index.js index db41360..4312813 100644 --- a/server/api/intFreshdeskAccount/index.js +++ b/server/api/intFreshdeskAccount/index.js @@ -1 +1 @@ -const a253_0x1d4a=['index','delete','getConfigurations','./intFreshdeskAccount.controller','express','destroy','exports','put','/:id/configurations','addConfiguration','create','getFields','isAuthenticated','/:id','Router','post','get'];(function(_0x2841be,_0x1d4aed){const _0x56a633=function(_0x2f6dd8){while(--_0x2f6dd8){_0x2841be['push'](_0x2841be['shift']());}};_0x56a633(++_0x1d4aed);}(a253_0x1d4a,0x13f));const a253_0x56a6=function(_0x2841be,_0x1d4aed){_0x2841be=_0x2841be-0x0;let _0x56a633=a253_0x1d4a[_0x2841be];return _0x56a633;};const _0x434160=a253_0x56a6;'use strict';const express=require(_0x434160('0x8')),router=express[_0x434160('0x1')](),auth=require('../../components/auth/service'),controller=require(_0x434160('0x7'));router[_0x434160('0x3')]('/',auth[_0x434160('0x10')](),controller[_0x434160('0x4')]),router['get'](_0x434160('0x0'),auth[_0x434160('0x10')](),controller['show']),router[_0x434160('0x3')]('/:id/configurations',auth[_0x434160('0x10')](),controller[_0x434160('0x6')]),router[_0x434160('0x3')]('/:id/fields',auth[_0x434160('0x10')](),controller[_0x434160('0xf')]),router[_0x434160('0x2')]('/',auth[_0x434160('0x10')](),controller[_0x434160('0xe')]),router[_0x434160('0x2')](_0x434160('0xc'),auth[_0x434160('0x10')](),controller[_0x434160('0xd')]),router[_0x434160('0xb')]('/:id',auth[_0x434160('0x10')](),controller['update']),router[_0x434160('0x5')](_0x434160('0x0'),auth[_0x434160('0x10')](),controller[_0x434160('0x9')]),module[_0x434160('0xa')]=router; \ No newline at end of file +const a302_0x2474=['/:id/fields','/:id/configurations','./intFreshdeskAccount.controller','index','get','isAuthenticated','post','create','exports','destroy','delete','/:id','../../components/auth/service','update','getFields','Router','getConfigurations','show','addConfiguration'];(function(_0x1aac6a,_0x5d8f71){const _0x247423=function(_0x2c5fe6){while(--_0x2c5fe6){_0x1aac6a['push'](_0x1aac6a['shift']());}};_0x247423(++_0x5d8f71);}(a302_0x2474,0xbd));const a302_0x2c5f=function(_0x1aac6a,_0x5d8f71){_0x1aac6a=_0x1aac6a-0x128;let _0x247423=a302_0x2474[_0x1aac6a];return _0x247423;};const a302_0x5655e6=a302_0x2c5f;'use strict';const express=require('express'),router=express[a302_0x5655e6(0x138)](),auth=require(a302_0x5655e6(0x135)),controller=require(a302_0x5655e6(0x12b));router[a302_0x5655e6(0x12d)]('/',auth[a302_0x5655e6(0x12e)](),controller[a302_0x5655e6(0x12c)]),router['get']('/:id',auth[a302_0x5655e6(0x12e)](),controller[a302_0x5655e6(0x13a)]),router['get'](a302_0x5655e6(0x12a),auth['isAuthenticated'](),controller[a302_0x5655e6(0x139)]),router[a302_0x5655e6(0x12d)](a302_0x5655e6(0x129),auth[a302_0x5655e6(0x12e)](),controller[a302_0x5655e6(0x137)]),router[a302_0x5655e6(0x12f)]('/',auth[a302_0x5655e6(0x12e)](),controller[a302_0x5655e6(0x130)]),router[a302_0x5655e6(0x12f)]('/:id/configurations',auth['isAuthenticated'](),controller[a302_0x5655e6(0x128)]),router['put'](a302_0x5655e6(0x134),auth['isAuthenticated'](),controller[a302_0x5655e6(0x136)]),router[a302_0x5655e6(0x133)](a302_0x5655e6(0x134),auth[a302_0x5655e6(0x12e)](),controller[a302_0x5655e6(0x132)]),module[a302_0x5655e6(0x131)]=router; \ No newline at end of file diff --git a/server/api/intFreshdeskAccount/intFreshdeskAccount.attributes.js b/server/api/intFreshdeskAccount/intFreshdeskAccount.attributes.js index 18b9c7f..9df831c 100644 --- a/server/api/intFreshdeskAccount/intFreshdeskAccount.attributes.js +++ b/server/api/intFreshdeskAccount/intFreshdeskAccount.attributes.js @@ -1 +1 @@ -const a254_0x40e9=['STRING','sequelize','exports','remoteUri','username'];(function(_0x5a759f,_0x40e939){const _0x2486c1=function(_0x228c04){while(--_0x228c04){_0x5a759f['push'](_0x5a759f['shift']());}};_0x2486c1(++_0x40e939);}(a254_0x40e9,0x1df));const a254_0x2486=function(_0x5a759f,_0x40e939){_0x5a759f=_0x5a759f-0x0;let _0x2486c1=a254_0x40e9[_0x5a759f];return _0x2486c1;};const _0x1ec4c4=a254_0x2486;'use strict';const Sequelize=require(_0x1ec4c4('0x2'));module[_0x1ec4c4('0x3')]={'name':{'type':Sequelize[_0x1ec4c4('0x1')]},'description':{'type':Sequelize[_0x1ec4c4('0x1')]},'username':{'type':Sequelize[_0x1ec4c4('0x1')],'unique':_0x1ec4c4('0x0')},'apiKey':{'type':Sequelize[_0x1ec4c4('0x1')]},'remoteUri':{'type':Sequelize[_0x1ec4c4('0x1')],'unique':_0x1ec4c4('0x4')},'serverUrl':{'type':Sequelize[_0x1ec4c4('0x1')]}}; \ No newline at end of file +const a303_0x507f=['sequelize','attributes','username','remoteUri','STRING','exports'];(function(_0x5491cd,_0x1a9125){const _0x507fd3=function(_0x922e3c){while(--_0x922e3c){_0x5491cd['push'](_0x5491cd['shift']());}};_0x507fd3(++_0x1a9125);}(a303_0x507f,0x1ab));const a303_0x922e=function(_0x5491cd,_0x1a9125){_0x5491cd=_0x5491cd-0x1e4;let _0x507fd3=a303_0x507f[_0x5491cd];return _0x507fd3;};const a303_0x45bc46=a303_0x922e;'use strict';const {DataTypes}=require(a303_0x45bc46(0x1e9)),attributes={'name':{'type':DataTypes[a303_0x45bc46(0x1e7)]},'description':{'type':DataTypes['STRING']},'username':{'type':DataTypes[a303_0x45bc46(0x1e7)],'unique':a303_0x45bc46(0x1e5)},'apiKey':{'type':DataTypes['STRING']},'remoteUri':{'type':DataTypes[a303_0x45bc46(0x1e7)],'unique':a303_0x45bc46(0x1e6)},'serverUrl':{'type':DataTypes['STRING']}};module[a303_0x45bc46(0x1e8)][a303_0x45bc46(0x1e4)]=attributes; \ No newline at end of file diff --git a/server/api/intFreshdeskAccount/intFreshdeskAccount.controller.js b/server/api/intFreshdeskAccount/intFreshdeskAccount.controller.js index c53fc28..8ff4ec2 100644 --- a/server/api/intFreshdeskAccount/intFreshdeskAccount.controller.js +++ b/server/api/intFreshdeskAccount/intFreshdeskAccount.controller.js @@ -1 +1 @@ -const a255_0x1096=['from','merge','error','destroy','getFields,\x20%s,\x20%s,\x20%s','util','lastIndexOf','stack','FreshdeskConfiguration','pick','show','subject','nolimit','status','filters','remoteUri','default','label','test','rawAttributes','order','channel','api','AccountId','end','../../mysqldb','count','findOne','custom_dropdown','undefined','index','filter','lodash','includeAll','../../components/parsers/qs','length','../../components/integrations/configuration','Basic\x20%s','options','include','update','model','apiKey','sort','getSubjects','offset','map','keys','custom_text','statusCode','fields','fieldName','group','getFields','sequelize','GET','where','send','Subjects','toString','create','type','base64','stringify','attributes','getConfigurations','slice','requester','params','json','catch','FreshdeskAccount','request-promise-native','api/v2/ticket_fields','limit','name','Wrong\x20credentials','body','%s:X','then','query','findAll','format','intersection','remove','Descriptions'];(function(_0x5676f1,_0x1096ec){const _0x719b96=function(_0x44436f){while(--_0x44436f){_0x5676f1['push'](_0x5676f1['shift']());}};_0x719b96(++_0x1096ec);}(a255_0x1096,0x11b));const a255_0x719b=function(_0x5676f1,_0x1096ec){_0x5676f1=_0x5676f1-0x0;let _0x719b96=a255_0x1096[_0x5676f1];return _0x719b96;};const _0x46aa72=a255_0x719b;'use strict';const rp=require(_0x46aa72('0x2f')),util=require(_0x46aa72('0x42')),_=require(_0x46aa72('0x7')),qs=require(_0x46aa72('0x9')),logger=require('../../config/logger')(_0x46aa72('0x53')),db=require(_0x46aa72('0x0'))['db'],{Op}=require(_0x46aa72('0x1d')),integrations=require(_0x46aa72('0xb'));function respondWithResult(_0x44436f,_0x4e3881){return _0x4e3881=_0x4e3881||0xc8,function(_0x16f393){const _0x2506f4=a255_0x719b;if(_0x16f393)return _0x44436f[_0x2506f4('0x4a')](_0x4e3881)[_0x2506f4('0x2c')](_0x16f393);};}function respondWithFilteredResult(_0x4bcf27,_0x247731){return function(_0x195af8){const _0x20dc64=a255_0x719b;if(_0x195af8){const _0x1032e4=_0x195af8[_0x20dc64('0x1')],_0x568214=_0x247731[_0x20dc64('0x14')];let _0x5940c4=_0x247731[_0x20dc64('0x14')]+_0x247731['limit'],_0x379db3;return _0x5940c4>=_0x1032e4?(_0x5940c4=_0x1032e4,_0x379db3=0xc8):_0x379db3=0xce,_0x4bcf27[_0x20dc64('0x4a')](_0x379db3),_0x4bcf27['set']('Content-Range',_0x568214+'-'+_0x5940c4+'/'+_0x1032e4)[_0x20dc64('0x2c')](_0x195af8);}return null;};}function saveUpdates(_0x48f123){return function(_0x3bce7d){const _0x39a614=a255_0x719b;if(_0x3bce7d)return _0x3bce7d['update'](_0x48f123)[_0x39a614('0x36')](function(_0x2db3bf){return _0x2db3bf;});return null;};}function removeEntity(_0x3c655d){return function(_0x335d53){const _0x173f19=a255_0x719b;if(_0x335d53)return _0x335d53['destroy']()[_0x173f19('0x36')](function(){const _0x48ece0=_0x173f19;_0x3c655d['status'](0xcc)[_0x48ece0('0x55')]();});};}function handleEntityNotFound(_0xd99448){return function(_0x1e04dc){return!_0x1e04dc&&_0xd99448['sendStatus'](0x194),_0x1e04dc;};}function handleError(_0x2cfae5,_0x26a0e5){return _0x26a0e5=_0x26a0e5||0x1f4,function(_0x294508){const _0x254abc=a255_0x719b;logger['error'](_0x294508[_0x254abc('0x44')]),_0x294508[_0x254abc('0x32')]&&delete _0x294508[_0x254abc('0x32')],_0x2cfae5[_0x254abc('0x4a')](_0x26a0e5)[_0x254abc('0x20')](_0x294508);};}exports[_0x46aa72('0x5')]=function(_0x55b6d3,_0x21b19c){const _0x3aa25f=_0x46aa72;let _0xdabd2f={};const _0x1dd323={},_0x127a8a={'count':0x0,'rows':[]},_0x13912f=_[_0x3aa25f('0x15')](db[_0x3aa25f('0x2e')]['rawAttributes'],function(_0x1fca93){const _0x111c84=_0x3aa25f;return{'name':_0x1fca93[_0x111c84('0x1a')],'type':_0x1fca93[_0x111c84('0x24')]['key']};});_0x1dd323['model']=_[_0x3aa25f('0x15')](_0x13912f,_0x3aa25f('0x32')),_0x1dd323[_0x3aa25f('0x37')]=_[_0x3aa25f('0x16')](_0x55b6d3[_0x3aa25f('0x37')]),_0x1dd323[_0x3aa25f('0x4b')]=_[_0x3aa25f('0x3a')](_0x1dd323[_0x3aa25f('0x10')],_0x1dd323[_0x3aa25f('0x37')]),_0xdabd2f[_0x3aa25f('0x27')]=_[_0x3aa25f('0x3a')](_0x1dd323['model'],qs[_0x3aa25f('0x19')](_0x55b6d3[_0x3aa25f('0x37')][_0x3aa25f('0x19')])),_0xdabd2f[_0x3aa25f('0x27')]=_0xdabd2f['attributes'][_0x3aa25f('0xa')]?_0xdabd2f[_0x3aa25f('0x27')]:_0x1dd323[_0x3aa25f('0x10')];typeof _0x55b6d3[_0x3aa25f('0x37')][_0x3aa25f('0x49')]===_0x3aa25f('0x4')&&(_0xdabd2f[_0x3aa25f('0x31')]=qs['limit'](_0x55b6d3[_0x3aa25f('0x37')][_0x3aa25f('0x31')]),_0xdabd2f[_0x3aa25f('0x14')]=qs[_0x3aa25f('0x14')](_0x55b6d3[_0x3aa25f('0x37')][_0x3aa25f('0x14')]));_0xdabd2f['order']=qs['sort'](_0x55b6d3[_0x3aa25f('0x37')][_0x3aa25f('0x12')]),_0xdabd2f[_0x3aa25f('0x1f')]=qs['filters'](_[_0x3aa25f('0x46')](_0x55b6d3[_0x3aa25f('0x37')],_0x1dd323[_0x3aa25f('0x4b')]),_0x13912f);_0x55b6d3[_0x3aa25f('0x37')]['filter']&&(_0xdabd2f[_0x3aa25f('0x1f')]=_[_0x3aa25f('0x3e')](_0xdabd2f[_0x3aa25f('0x1f')],{[Op['or']]:_[_0x3aa25f('0x15')](_0x13912f,function(_0x17534b){const _0xfa4021=_0x3aa25f;if(_0x17534b['type']!=='VIRTUAL'){const _0x2b4120={};return _0x2b4120[_0x17534b['name']]={[Op['like']]:'%'+_0x55b6d3[_0xfa4021('0x37')][_0xfa4021('0x6')]+'%'},_0x2b4120;}})}));_0xdabd2f=_[_0x3aa25f('0x3e')]({},_0xdabd2f,_0x55b6d3[_0x3aa25f('0xd')]);const _0x2d2f99={'where':_0xdabd2f[_0x3aa25f('0x1f')]};return db['FreshdeskAccount'][_0x3aa25f('0x1')](_0x2d2f99)[_0x3aa25f('0x36')](function(_0x23e6f5){const _0x454e4b=_0x3aa25f;return _0x127a8a[_0x454e4b('0x1')]=_0x23e6f5,_0x55b6d3[_0x454e4b('0x37')][_0x454e4b('0x8')]&&(_0xdabd2f[_0x454e4b('0xe')]=[{'all':!![]}]),db[_0x454e4b('0x2e')][_0x454e4b('0x38')](_0xdabd2f);})[_0x3aa25f('0x36')](function(_0x244147){return _0x127a8a['rows']=_0x244147,_0x127a8a;})[_0x3aa25f('0x36')](respondWithFilteredResult(_0x21b19c,_0xdabd2f))['catch'](handleError(_0x21b19c,null));},exports[_0x46aa72('0x47')]=function(_0x457e46,_0x5018f5){const _0x54899b=_0x46aa72;let _0x5793c1={'raw':![],'where':{'id':_0x457e46['params']['id']}};const _0x26bde5={};return _0x26bde5[_0x54899b('0x10')]=_['keys'](db[_0x54899b('0x2e')][_0x54899b('0x50')]),_0x26bde5[_0x54899b('0x37')]=_[_0x54899b('0x16')](_0x457e46[_0x54899b('0x37')]),_0x26bde5[_0x54899b('0x4b')]=_[_0x54899b('0x3a')](_0x26bde5[_0x54899b('0x10')],_0x26bde5[_0x54899b('0x37')]),_0x5793c1[_0x54899b('0x27')]=_['intersection'](_0x26bde5[_0x54899b('0x10')],qs['fields'](_0x457e46['query'][_0x54899b('0x19')])),_0x5793c1[_0x54899b('0x27')]=_0x5793c1[_0x54899b('0x27')][_0x54899b('0xa')]?_0x5793c1[_0x54899b('0x27')]:_0x26bde5[_0x54899b('0x10')],_0x457e46['query'][_0x54899b('0x8')]&&(_0x5793c1[_0x54899b('0xe')]=[{'all':!![]}]),_0x5793c1=_[_0x54899b('0x3e')]({},_0x5793c1,_0x457e46[_0x54899b('0xd')]),db[_0x54899b('0x2e')][_0x54899b('0x2')](_0x5793c1)[_0x54899b('0x36')](handleEntityNotFound(_0x5018f5,null))[_0x54899b('0x36')](respondWithResult(_0x5018f5,null))[_0x54899b('0x2d')](handleError(_0x5018f5,null));},exports[_0x46aa72('0x23')]=function(_0x4b8433,_0xd37fba){const _0x2f13c2=_0x46aa72;return db[_0x2f13c2('0x2e')][_0x2f13c2('0x23')](_0x4b8433[_0x2f13c2('0x34')],{})['then'](respondWithResult(_0xd37fba,0xc9))[_0x2f13c2('0x2d')](handleError(_0xd37fba,null));},exports[_0x46aa72('0xf')]=function(_0x6fbb0f,_0x46c940){const _0x37d291=_0x46aa72;return _0x6fbb0f[_0x37d291('0x34')]['id']&&delete _0x6fbb0f[_0x37d291('0x34')]['id'],db[_0x37d291('0x2e')][_0x37d291('0x2')]({'where':{'id':_0x6fbb0f[_0x37d291('0x2b')]['id']}})[_0x37d291('0x36')](handleEntityNotFound(_0x46c940,null))['then'](saveUpdates(_0x6fbb0f[_0x37d291('0x34')],null))[_0x37d291('0x36')](respondWithResult(_0x46c940,null))[_0x37d291('0x2d')](handleError(_0x46c940,null));},exports[_0x46aa72('0x40')]=function(_0x3a023d,_0x24f395){const _0x5f4fbc=_0x46aa72;return db[_0x5f4fbc('0x2e')][_0x5f4fbc('0x2')]({'where':{'id':_0x3a023d[_0x5f4fbc('0x2b')]['id']}})[_0x5f4fbc('0x36')](handleEntityNotFound(_0x24f395,null))[_0x5f4fbc('0x36')](removeEntity(_0x24f395,null))['catch'](handleError(_0x24f395,null));},exports[_0x46aa72('0x28')]=function(_0x3095b8,_0x239995){const _0x3ea0b9=_0x46aa72;let _0x31ceff={};const _0x5a4d28={};let _0x3f71f5,_0xa22924;return db[_0x3ea0b9('0x2e')]['findOne']({'where':{'id':_0x3095b8[_0x3ea0b9('0x2b')]['id']}})['then'](handleEntityNotFound(_0x239995,null))[_0x3ea0b9('0x36')](function(_0x209eac){const _0x3c2528=_0x3ea0b9;if(_0x209eac)return _0x3f71f5=_0x209eac,_0x5a4d28['model']=_[_0x3c2528('0x16')](db['FreshdeskConfiguration'][_0x3c2528('0x50')]),_0x5a4d28[_0x3c2528('0x37')]=_[_0x3c2528('0x16')](_0x3095b8[_0x3c2528('0x37')]),_0x5a4d28[_0x3c2528('0x4b')]=_[_0x3c2528('0x3a')](_0x5a4d28[_0x3c2528('0x10')],_0x5a4d28[_0x3c2528('0x37')]),_0x31ceff[_0x3c2528('0x27')]=_[_0x3c2528('0x3a')](_0x5a4d28[_0x3c2528('0x10')],qs[_0x3c2528('0x19')](_0x3095b8[_0x3c2528('0x37')][_0x3c2528('0x19')])),_0x31ceff['attributes']=_0x31ceff[_0x3c2528('0x27')]['length']?_0x31ceff[_0x3c2528('0x27')]:_0x5a4d28[_0x3c2528('0x10')],_0x31ceff[_0x3c2528('0x51')]=qs['sort'](_0x3095b8['query'][_0x3c2528('0x12')]),_0x31ceff[_0x3c2528('0x1f')]=qs[_0x3c2528('0x4b')](_[_0x3c2528('0x46')](_0x3095b8[_0x3c2528('0x37')],_0x5a4d28[_0x3c2528('0x4b')])),_0x3095b8[_0x3c2528('0x37')][_0x3c2528('0x6')]&&(_0x31ceff['where']=_['merge'](_0x31ceff[_0x3c2528('0x1f')],{[Op['or']]:_[_0x3c2528('0x15')](_0x31ceff['attributes'],function(_0x5e8f12){const _0x14079c=_0x3c2528,_0x259467={};return _0x259467[_0x5e8f12]={[Op['like']]:'%'+_0x3095b8[_0x14079c('0x37')]['filter']+'%'},_0x259467;})})),_0x31ceff=_[_0x3c2528('0x3e')]({},_0x31ceff,_0x3095b8[_0x3c2528('0xd')]),_0x3f71f5[_0x3c2528('0x28')](_0x31ceff);})[_0x3ea0b9('0x36')](function(_0x3e4994){const _0x4f04fd=_0x3ea0b9;if(_0x3e4994)return _0xa22924=_0x3e4994[_0x4f04fd('0xa')],typeof _0x3095b8[_0x4f04fd('0x37')]['nolimit']==='undefined'&&(_0x31ceff[_0x4f04fd('0x31')]=qs['limit'](_0x3095b8[_0x4f04fd('0x37')][_0x4f04fd('0x31')]),_0x31ceff[_0x4f04fd('0x14')]=qs['offset'](_0x3095b8['query'][_0x4f04fd('0x14')])),_0x3f71f5[_0x4f04fd('0x28')](_0x31ceff);})[_0x3ea0b9('0x36')](function(_0x4cf56e){if(_0x4cf56e)return _0x4cf56e?{'count':_0xa22924,'rows':_0x4cf56e}:null;})[_0x3ea0b9('0x36')](respondWithResult(_0x239995,null))[_0x3ea0b9('0x2d')](handleError(_0x239995,null));},exports['addConfiguration']=function(_0x35b89a,_0xb940e5){const _0x3dbd95=_0x46aa72;return _0x35b89a['body']['id']&&delete _0x35b89a[_0x3dbd95('0x34')]['id'],db[_0x3dbd95('0x2e')]['findOne']({'where':{'id':_0x35b89a[_0x3dbd95('0x2b')]['id']}})[_0x3dbd95('0x36')](handleEntityNotFound(_0xb940e5,null))[_0x3dbd95('0x36')](function(_0x2f9e8c){const _0x3f6fe0=_0x3dbd95;if(_0x2f9e8c)return _0x35b89a[_0x3f6fe0('0x34')][_0x3f6fe0('0x54')]=_0x2f9e8c['id'],_0x35b89a['body'][_0x3f6fe0('0x21')]=integrations[_0x3f6fe0('0x13')](_0x35b89a['body'][_0x3f6fe0('0x52')],_0x35b89a[_0x3f6fe0('0x34')][_0x3f6fe0('0x24')]),_0x35b89a[_0x3f6fe0('0x34')]['Descriptions']=integrations['getDescriptions'](_0x35b89a[_0x3f6fe0('0x34')][_0x3f6fe0('0x52')],_0x35b89a['body'][_0x3f6fe0('0x24')]),db[_0x3f6fe0('0x45')]['create'](_0x35b89a[_0x3f6fe0('0x34')],{'include':[{'model':db['FreshdeskField'],'as':_0x3f6fe0('0x21')},{'model':db['FreshdeskField'],'as':_0x3f6fe0('0x3c')}]});return null;})[_0x3dbd95('0x36')](respondWithResult(_0xb940e5,null))[_0x3dbd95('0x2d')](handleError(_0xb940e5,null));},exports[_0x46aa72('0x1c')]=function(_0x22e336,_0x1c3e8b){const _0x3aa50e=_0x46aa72;let _0xdf2cc2='';return db[_0x3aa50e('0x2e')]['findOne']({'where':{'id':_0x22e336[_0x3aa50e('0x2b')]['id']},'attributes':['id','remoteUri',_0x3aa50e('0x11')]})[_0x3aa50e('0x36')](handleEntityNotFound(_0x1c3e8b,null))[_0x3aa50e('0x36')](function(_0x3ccc59){const _0xa0a0c5=_0x3aa50e;if(_0x3ccc59){_0xdf2cc2=_0x3ccc59[_0xa0a0c5('0x4c')];const _0x3e2576=_0xdf2cc2[_0xa0a0c5('0x29')](-0x1);return _0x3e2576==='/'&&(_0xdf2cc2=_0xdf2cc2['substring'](0x0,_0xdf2cc2[_0xa0a0c5('0x43')](_0x3e2576))),rp({'method':_0xa0a0c5('0x1e'),'uri':util['format']('%s/%s',_0xdf2cc2,_0xa0a0c5('0x30')),'headers':{'Authorization':util[_0xa0a0c5('0x39')](_0xa0a0c5('0xc'),Buffer[_0xa0a0c5('0x3d')](util['format'](_0xa0a0c5('0x35'),_0x3ccc59[_0xa0a0c5('0x11')]))[_0xa0a0c5('0x22')](_0xa0a0c5('0x25')))},'json':!![]});}})[_0x3aa50e('0x36')](function(_0x4af8d6){const _0x19e750=_0x3aa50e;if(_0x4af8d6){const _0x2bf5d7=[_0x19e750('0x2a'),_0x19e750('0x48'),'agent','description',_0x19e750('0x4a'),'priority',_0x19e750('0x1b'),'source','ticket_type',_0x19e750('0x1b'),'company'];return _[_0x19e750('0x3b')](_0x4af8d6,function(_0x1f0901){const _0x357024=_0x19e750;return _0x2bf5d7['includes'](_0x1f0901[_0x357024('0x32')])||!_0x1f0901[_0x357024('0x4d')]&&_0x1f0901['type']!==_0x357024('0x17')&&_0x1f0901[_0x357024('0x24')]!==_0x357024('0x3');}),{'count':_0x4af8d6['length'],'rows':_['map'](_0x4af8d6,function(_0x2c2966){const _0x119ede=_0x19e750;return{'id':_0x2c2966[_0x119ede('0x32')],'name':_0x2c2966[_0x119ede('0x4e')],'custom':!_0x2c2966['default'],'options':_0x2c2966['choices']?_[_0x119ede('0x15')](_0x2c2966['choices'],function(_0x5c8185){return{'name':_['capitalize'](_0x5c8185),'value':_0x5c8185};}):[]};})};}})[_0x3aa50e('0x36')](respondWithResult(_0x1c3e8b,null))['catch'](function(_0x313d20){const _0x31e1b5=_0x3aa50e;let _0x45e913=_0x22e336['query'][_0x31e1b5('0x4f')]?0x1f4:_0x313d20[_0x31e1b5('0x18')]||0x1f4;logger[_0x31e1b5('0x3f')](_0x31e1b5('0x41'),_0x31e1b5('0x1c'),_0x45e913,JSON[_0x31e1b5('0x26')](_0x313d20)),delete _0x313d20[_0x31e1b5('0x32')],_0x45e913===0x191&&(_0x45e913=0x190),_0x1c3e8b[_0x31e1b5('0x4a')](_0x45e913)[_0x31e1b5('0x20')](_0x22e336[_0x31e1b5('0x37')][_0x31e1b5('0x4f')]?{'message':_0x31e1b5('0x33'),'statusCode':_0x313d20[_0x31e1b5('0x18')]}:_0x313d20);});}; \ No newline at end of file +const a304_0x3ee7=['slice','count','remoteUri','length','merge','channel','filter','includes','company','sort','type','json','options','request-promise-native','label','keys','rawAttributes','apiKey','FreshdeskField','requester','capitalize','sendStatus','lodash','agent','include','Subjects','getDescriptions','format','api','Content-Range','choices','intersection','error','model','where','like','nolimit','includeAll','offset','findAll','status','ticket_type','query','undefined','custom_text','FreshdeskConfiguration','statusCode','filters','../../components/integrations/configuration','GET','map','pick','limit','then','fields','order','name','base64','sequelize','custom_dropdown','send','attributes','FreshdeskAccount','params','Wrong\x20credentials','../../config/logger','findOne','source','default','Basic\x20%s','stringify','remove','priority','getSubjects','AccountId','test','group','getFields','fieldName','Descriptions','%s/%s','catch','destroy','toString','../../components/parsers/qs','../../mysqldb','VIRTUAL','body'];(function(_0x46a21f,_0x3e14cc){const _0x3ee76a=function(_0x5271cf){while(--_0x5271cf){_0x46a21f['push'](_0x46a21f['shift']());}};_0x3ee76a(++_0x3e14cc);}(a304_0x3ee7,0x158));const a304_0x5271=function(_0x46a21f,_0x3e14cc){_0x46a21f=_0x46a21f-0xc0;let _0x3ee76a=a304_0x3ee7[_0x46a21f];return _0x3ee76a;};const a304_0xd624ec=a304_0x5271;'use strict';const rp=require(a304_0xd624ec(0xd5)),util=require('util'),_=require(a304_0xd624ec(0xde)),qs=require(a304_0xd624ec(0xc4)),logger=require(a304_0xd624ec(0x109))(a304_0xd624ec(0xe4)),{db}=require(a304_0xd624ec(0xc5)),{Op}=require(a304_0xd624ec(0x102)),integrations=require(a304_0xd624ec(0xf8));function respondWithResult(_0x1f7722,_0x1dfd2c){return _0x1dfd2c=_0x1dfd2c||0xc8,function(_0x21fe65){if(_0x21fe65)return _0x1f7722['status'](_0x1dfd2c)['json'](_0x21fe65);};}function respondWithFilteredResult(_0x204f6d,_0xca8fdd){return function(_0x36f24a){const _0x89b727=a304_0x5271;if(_0x36f24a){const _0x302108=_0x36f24a['count'],_0x5da09f=_0xca8fdd[_0x89b727(0xee)];let _0x47d1a6=_0xca8fdd[_0x89b727(0xee)]+_0xca8fdd[_0x89b727(0xfc)],_0x4ff2c6;return _0x47d1a6>=_0x302108?(_0x47d1a6=_0x302108,_0x4ff2c6=0xc8):_0x4ff2c6=0xce,_0x204f6d[_0x89b727(0xf0)](_0x4ff2c6),_0x204f6d['set'](_0x89b727(0xe5),_0x5da09f+'-'+_0x47d1a6+'/'+_0x302108)[_0x89b727(0xd3)](_0x36f24a);}return null;};}function saveUpdates(_0x3778e1){return function(_0x226d31){const _0x1ac06f=a304_0x5271;if(_0x226d31)return _0x226d31['update'](_0x3778e1)[_0x1ac06f(0xfd)](function(_0x3601f8){return _0x3601f8;});return null;};}function removeEntity(_0x59d266){return function(_0x18d0d4){const _0x52a398=a304_0x5271;if(_0x18d0d4)return _0x18d0d4[_0x52a398(0xc2)]()[_0x52a398(0xfd)](function(){const _0x2d2105=_0x52a398;_0x59d266[_0x2d2105(0xf0)](0xcc)['end']();});};}function handleEntityNotFound(_0xc7f7c4){return function(_0x5670f9){const _0x2ed0f0=a304_0x5271;return!_0x5670f9&&_0xc7f7c4[_0x2ed0f0(0xdd)](0x194),_0x5670f9;};}function handleError(_0x3e52e7,_0x148e5e){return _0x148e5e=_0x148e5e||0x1f4,function(_0x3a927b){const _0x5ab7bb=a304_0x5271;logger[_0x5ab7bb(0xe8)](_0x3a927b['stack']),_0x3a927b[_0x5ab7bb(0x100)]&&delete _0x3a927b[_0x5ab7bb(0x100)],_0x3e52e7[_0x5ab7bb(0xf0)](_0x148e5e)[_0x5ab7bb(0x104)](_0x3a927b);};}exports['index']=function(_0x1fdd36,_0x3ddfbe){const _0x53b8be=a304_0xd624ec;let _0x57d317={};const _0x41a3c0={},_0x5ca031={'count':0x0,'rows':[]},_0x594ec7=_[_0x53b8be(0xfa)](db[_0x53b8be(0x106)][_0x53b8be(0xd8)],function(_0x4a2c56){const _0x403cee=_0x53b8be;return{'name':_0x4a2c56[_0x403cee(0x116)],'type':_0x4a2c56['type']['key']};});_0x41a3c0[_0x53b8be(0xe9)]=_[_0x53b8be(0xfa)](_0x594ec7,_0x53b8be(0x100)),_0x41a3c0[_0x53b8be(0xf2)]=_[_0x53b8be(0xd7)](_0x1fdd36[_0x53b8be(0xf2)]),_0x41a3c0['filters']=_[_0x53b8be(0xe7)](_0x41a3c0[_0x53b8be(0xe9)],_0x41a3c0[_0x53b8be(0xf2)]),_0x57d317[_0x53b8be(0x105)]=_[_0x53b8be(0xe7)](_0x41a3c0['model'],qs[_0x53b8be(0xfe)](_0x1fdd36[_0x53b8be(0xf2)][_0x53b8be(0xfe)])),_0x57d317['attributes']=_0x57d317[_0x53b8be(0x105)]['length']?_0x57d317[_0x53b8be(0x105)]:_0x41a3c0[_0x53b8be(0xe9)];typeof _0x1fdd36[_0x53b8be(0xf2)][_0x53b8be(0xec)]===_0x53b8be(0xf3)&&(_0x57d317[_0x53b8be(0xfc)]=qs[_0x53b8be(0xfc)](_0x1fdd36[_0x53b8be(0xf2)][_0x53b8be(0xfc)]),_0x57d317[_0x53b8be(0xee)]=qs['offset'](_0x1fdd36[_0x53b8be(0xf2)][_0x53b8be(0xee)]));_0x57d317[_0x53b8be(0xff)]=qs[_0x53b8be(0xd1)](_0x1fdd36[_0x53b8be(0xf2)][_0x53b8be(0xd1)]),_0x57d317[_0x53b8be(0xea)]=qs[_0x53b8be(0xf7)](_['pick'](_0x1fdd36[_0x53b8be(0xf2)],_0x41a3c0['filters']),_0x594ec7);_0x1fdd36[_0x53b8be(0xf2)][_0x53b8be(0xce)]&&(_0x57d317['where']=_[_0x53b8be(0xcc)](_0x57d317['where'],{[Op['or']]:_[_0x53b8be(0xfa)](_0x594ec7,function(_0x3e33f5){const _0x435bb0=_0x53b8be;if(_0x3e33f5[_0x435bb0(0xd2)]!==_0x435bb0(0xc6)){const _0x53f230={};return _0x53f230[_0x3e33f5[_0x435bb0(0x100)]]={[Op['like']]:'%'+_0x1fdd36['query'][_0x435bb0(0xce)]+'%'},_0x53f230;}})}));_0x57d317=_[_0x53b8be(0xcc)]({},_0x57d317,_0x1fdd36[_0x53b8be(0xd4)]);const _0xcacd1c={'where':_0x57d317['where']};return db[_0x53b8be(0x106)][_0x53b8be(0xc9)](_0xcacd1c)[_0x53b8be(0xfd)](function(_0x39f309){const _0x5d9ff5=_0x53b8be;return _0x5ca031[_0x5d9ff5(0xc9)]=_0x39f309,_0x1fdd36[_0x5d9ff5(0xf2)]['includeAll']&&(_0x57d317['include']=[{'all':!![]}]),db[_0x5d9ff5(0x106)][_0x5d9ff5(0xef)](_0x57d317);})[_0x53b8be(0xfd)](function(_0x191de0){return _0x5ca031['rows']=_0x191de0,_0x5ca031;})['then'](respondWithFilteredResult(_0x3ddfbe,_0x57d317))[_0x53b8be(0xc1)](handleError(_0x3ddfbe,null));},exports['show']=function(_0x4fbe08,_0x5da4d7){const _0x24cf16=a304_0xd624ec;let _0x1fc458={'raw':![],'where':{'id':_0x4fbe08[_0x24cf16(0x107)]['id']}};const _0x1a7062={};return _0x1a7062[_0x24cf16(0xe9)]=_[_0x24cf16(0xd7)](db[_0x24cf16(0x106)]['rawAttributes']),_0x1a7062[_0x24cf16(0xf2)]=_[_0x24cf16(0xd7)](_0x4fbe08[_0x24cf16(0xf2)]),_0x1a7062['filters']=_[_0x24cf16(0xe7)](_0x1a7062[_0x24cf16(0xe9)],_0x1a7062[_0x24cf16(0xf2)]),_0x1fc458[_0x24cf16(0x105)]=_[_0x24cf16(0xe7)](_0x1a7062['model'],qs[_0x24cf16(0xfe)](_0x4fbe08['query'][_0x24cf16(0xfe)])),_0x1fc458[_0x24cf16(0x105)]=_0x1fc458[_0x24cf16(0x105)][_0x24cf16(0xcb)]?_0x1fc458['attributes']:_0x1a7062[_0x24cf16(0xe9)],_0x4fbe08[_0x24cf16(0xf2)][_0x24cf16(0xed)]&&(_0x1fc458[_0x24cf16(0xe0)]=[{'all':!![]}]),_0x1fc458=_[_0x24cf16(0xcc)]({},_0x1fc458,_0x4fbe08[_0x24cf16(0xd4)]),db[_0x24cf16(0x106)][_0x24cf16(0x10a)](_0x1fc458)[_0x24cf16(0xfd)](handleEntityNotFound(_0x5da4d7,null))[_0x24cf16(0xfd)](respondWithResult(_0x5da4d7,null))[_0x24cf16(0xc1)](handleError(_0x5da4d7,null));},exports['create']=function(_0x3f6270,_0x10771){const _0x31e3a3=a304_0xd624ec;return db['FreshdeskAccount']['create'](_0x3f6270[_0x31e3a3(0xc7)],{})[_0x31e3a3(0xfd)](respondWithResult(_0x10771,0xc9))[_0x31e3a3(0xc1)](handleError(_0x10771,null));},exports['update']=function(_0x180792,_0x3be6ad){const _0x381c78=a304_0xd624ec;return _0x180792[_0x381c78(0xc7)]['id']&&delete _0x180792[_0x381c78(0xc7)]['id'],db['FreshdeskAccount'][_0x381c78(0x10a)]({'where':{'id':_0x180792[_0x381c78(0x107)]['id']}})[_0x381c78(0xfd)](handleEntityNotFound(_0x3be6ad,null))['then'](saveUpdates(_0x180792[_0x381c78(0xc7)],null))[_0x381c78(0xfd)](respondWithResult(_0x3be6ad,null))['catch'](handleError(_0x3be6ad,null));},exports['destroy']=function(_0x192db6,_0x247edf){const _0x3e5f51=a304_0xd624ec;return db[_0x3e5f51(0x106)][_0x3e5f51(0x10a)]({'where':{'id':_0x192db6['params']['id']}})['then'](handleEntityNotFound(_0x247edf,null))[_0x3e5f51(0xfd)](removeEntity(_0x247edf,null))[_0x3e5f51(0xc1)](handleError(_0x247edf,null));},exports['getConfigurations']=function(_0x11b5f3,_0xf4a533){const _0x5e9364=a304_0xd624ec;let _0x428ecc={};const _0x2b8d70={};let _0x2b45fd,_0xfccb7f;return db[_0x5e9364(0x106)][_0x5e9364(0x10a)]({'where':{'id':_0x11b5f3[_0x5e9364(0x107)]['id']}})[_0x5e9364(0xfd)](handleEntityNotFound(_0xf4a533,null))[_0x5e9364(0xfd)](function(_0x51dd87){const _0x5594a5=_0x5e9364;if(_0x51dd87)return _0x2b45fd=_0x51dd87,_0x2b8d70[_0x5594a5(0xe9)]=_[_0x5594a5(0xd7)](db[_0x5594a5(0xf5)][_0x5594a5(0xd8)]),_0x2b8d70[_0x5594a5(0xf2)]=_[_0x5594a5(0xd7)](_0x11b5f3[_0x5594a5(0xf2)]),_0x2b8d70['filters']=_[_0x5594a5(0xe7)](_0x2b8d70[_0x5594a5(0xe9)],_0x2b8d70[_0x5594a5(0xf2)]),_0x428ecc[_0x5594a5(0x105)]=_[_0x5594a5(0xe7)](_0x2b8d70[_0x5594a5(0xe9)],qs[_0x5594a5(0xfe)](_0x11b5f3['query'][_0x5594a5(0xfe)])),_0x428ecc[_0x5594a5(0x105)]=_0x428ecc['attributes']['length']?_0x428ecc[_0x5594a5(0x105)]:_0x2b8d70[_0x5594a5(0xe9)],_0x428ecc[_0x5594a5(0xff)]=qs['sort'](_0x11b5f3[_0x5594a5(0xf2)]['sort']),_0x428ecc[_0x5594a5(0xea)]=qs[_0x5594a5(0xf7)](_[_0x5594a5(0xfb)](_0x11b5f3['query'],_0x2b8d70['filters'])),_0x11b5f3[_0x5594a5(0xf2)][_0x5594a5(0xce)]&&(_0x428ecc[_0x5594a5(0xea)]=_['merge'](_0x428ecc[_0x5594a5(0xea)],{[Op['or']]:_['map'](_0x428ecc[_0x5594a5(0x105)],function(_0x20d361){const _0x3a3d46=_0x5594a5,_0x41bbed={};return _0x41bbed[_0x20d361]={[Op[_0x3a3d46(0xeb)]]:'%'+_0x11b5f3[_0x3a3d46(0xf2)][_0x3a3d46(0xce)]+'%'},_0x41bbed;})})),_0x428ecc=_['merge']({},_0x428ecc,_0x11b5f3[_0x5594a5(0xd4)]),_0x2b45fd['getConfigurations'](_0x428ecc);})[_0x5e9364(0xfd)](function(_0x3cc003){const _0x4e2b28=_0x5e9364;if(_0x3cc003)return _0xfccb7f=_0x3cc003['length'],typeof _0x11b5f3[_0x4e2b28(0xf2)][_0x4e2b28(0xec)]==='undefined'&&(_0x428ecc[_0x4e2b28(0xfc)]=qs['limit'](_0x11b5f3[_0x4e2b28(0xf2)][_0x4e2b28(0xfc)]),_0x428ecc['offset']=qs[_0x4e2b28(0xee)](_0x11b5f3['query']['offset'])),_0x2b45fd['getConfigurations'](_0x428ecc);})[_0x5e9364(0xfd)](function(_0x365771){if(_0x365771)return _0x365771?{'count':_0xfccb7f,'rows':_0x365771}:null;})[_0x5e9364(0xfd)](respondWithResult(_0xf4a533,null))['catch'](handleError(_0xf4a533,null));},exports['addConfiguration']=function(_0x1d5c5e,_0x362a81){const _0x3bffb3=a304_0xd624ec;return _0x1d5c5e[_0x3bffb3(0xc7)]['id']&&delete _0x1d5c5e[_0x3bffb3(0xc7)]['id'],db[_0x3bffb3(0x106)][_0x3bffb3(0x10a)]({'where':{'id':_0x1d5c5e['params']['id']}})[_0x3bffb3(0xfd)](handleEntityNotFound(_0x362a81,null))[_0x3bffb3(0xfd)](function(_0x3939f9){const _0xcb03bd=_0x3bffb3;if(_0x3939f9)return _0x1d5c5e['body'][_0xcb03bd(0x112)]=_0x3939f9['id'],_0x1d5c5e['body'][_0xcb03bd(0xe1)]=integrations[_0xcb03bd(0x111)](_0x1d5c5e[_0xcb03bd(0xc7)][_0xcb03bd(0xcd)],_0x1d5c5e[_0xcb03bd(0xc7)]['type']),_0x1d5c5e[_0xcb03bd(0xc7)][_0xcb03bd(0x117)]=integrations[_0xcb03bd(0xe2)](_0x1d5c5e[_0xcb03bd(0xc7)][_0xcb03bd(0xcd)],_0x1d5c5e['body'][_0xcb03bd(0xd2)]),db[_0xcb03bd(0xf5)]['create'](_0x1d5c5e[_0xcb03bd(0xc7)],{'include':[{'model':db['FreshdeskField'],'as':'Subjects'},{'model':db[_0xcb03bd(0xda)],'as':'Descriptions'}]});return null;})['then'](respondWithResult(_0x362a81,null))[_0x3bffb3(0xc1)](handleError(_0x362a81,null));},exports['getFields']=function(_0xcf3e16,_0x14e656){const _0x380b55=a304_0xd624ec;let _0x4c4877='';return db[_0x380b55(0x106)][_0x380b55(0x10a)]({'where':{'id':_0xcf3e16['params']['id']},'attributes':['id',_0x380b55(0xca),_0x380b55(0xd9)]})[_0x380b55(0xfd)](handleEntityNotFound(_0x14e656,null))[_0x380b55(0xfd)](function(_0x2fcacd){const _0x422b0d=_0x380b55;if(_0x2fcacd){_0x4c4877=_0x2fcacd[_0x422b0d(0xca)];const _0x5c8b28=_0x4c4877[_0x422b0d(0xc8)](-0x1);return _0x5c8b28==='/'&&(_0x4c4877=_0x4c4877['substring'](0x0,_0x4c4877['lastIndexOf'](_0x5c8b28))),rp({'method':_0x422b0d(0xf9),'uri':util[_0x422b0d(0xe3)](_0x422b0d(0xc0),_0x4c4877,'api/v2/ticket_fields'),'headers':{'Authorization':util['format'](_0x422b0d(0x10d),Buffer['from'](util[_0x422b0d(0xe3)]('%s:X',_0x2fcacd[_0x422b0d(0xd9)]))[_0x422b0d(0xc3)](_0x422b0d(0x101)))},'json':!![]});}})[_0x380b55(0xfd)](function(_0x5ccc54){const _0x1a63d6=_0x380b55;if(_0x5ccc54){const _0x3adb52=[_0x1a63d6(0xdb),'subject',_0x1a63d6(0xdf),'description',_0x1a63d6(0xf0),_0x1a63d6(0x110),_0x1a63d6(0x114),_0x1a63d6(0x10b),_0x1a63d6(0xf1),'group',_0x1a63d6(0xd0)];return _[_0x1a63d6(0x10f)](_0x5ccc54,function(_0x3061ac){const _0x1d8dd9=_0x1a63d6;return _0x3adb52[_0x1d8dd9(0xcf)](_0x3061ac['name'])||!_0x3061ac[_0x1d8dd9(0x10c)]&&_0x3061ac[_0x1d8dd9(0xd2)]!==_0x1d8dd9(0xf4)&&_0x3061ac['type']!==_0x1d8dd9(0x103);}),{'count':_0x5ccc54[_0x1a63d6(0xcb)],'rows':_[_0x1a63d6(0xfa)](_0x5ccc54,function(_0xd13d0e){const _0x4f19f7=_0x1a63d6;return{'id':_0xd13d0e[_0x4f19f7(0x100)],'name':_0xd13d0e[_0x4f19f7(0xd6)],'custom':!_0xd13d0e[_0x4f19f7(0x10c)],'options':_0xd13d0e[_0x4f19f7(0xe6)]?_[_0x4f19f7(0xfa)](_0xd13d0e['choices'],function(_0x4c0cb1){const _0x109a94=_0x4f19f7;return{'name':_[_0x109a94(0xdc)](_0x4c0cb1),'value':_0x4c0cb1};}):[]};})};}})['then'](respondWithResult(_0x14e656,null))[_0x380b55(0xc1)](function(_0x10995c){const _0x51f37b=_0x380b55;let _0x28f898=_0xcf3e16[_0x51f37b(0xf2)][_0x51f37b(0x113)]?0x1f4:_0x10995c['statusCode']||0x1f4;logger[_0x51f37b(0xe8)]('getFields,\x20%s,\x20%s,\x20%s',_0x51f37b(0x115),_0x28f898,JSON[_0x51f37b(0x10e)](_0x10995c)),delete _0x10995c['name'],_0x28f898===0x191&&(_0x28f898=0x190),_0x14e656[_0x51f37b(0xf0)](_0x28f898)[_0x51f37b(0x104)](_0xcf3e16[_0x51f37b(0xf2)][_0x51f37b(0x113)]?{'message':_0x51f37b(0x108),'statusCode':_0x10995c[_0x51f37b(0xf6)]}:_0x10995c);});}; \ No newline at end of file diff --git a/server/api/intFreshdeskAccount/intFreshdeskAccount.model.js b/server/api/intFreshdeskAccount/intFreshdeskAccount.model.js index 9445ce3..b2b9b66 100644 --- a/server/api/intFreshdeskAccount/intFreshdeskAccount.model.js +++ b/server/api/intFreshdeskAccount/intFreshdeskAccount.model.js @@ -1 +1 @@ -const a256_0x29fa=['exports','define','int_freshdesk_accounts'];(function(_0x16bf09,_0x29fa02){const _0x2a952d=function(_0x2f0e0e){while(--_0x2f0e0e){_0x16bf09['push'](_0x16bf09['shift']());}};_0x2a952d(++_0x29fa02);}(a256_0x29fa,0xd2));const a256_0x2a95=function(_0x16bf09,_0x29fa02){_0x16bf09=_0x16bf09-0x0;let _0x2a952d=a256_0x29fa[_0x16bf09];return _0x2a952d;};const _0x5b6257=a256_0x2a95;'use strict';const attributes=require('./intFreshdeskAccount.attributes');module[_0x5b6257('0x0')]=function(_0x2f0e0e){const _0x260089=_0x5b6257,_0x1bfc0e=_0x2f0e0e[_0x260089('0x1')]('FreshdeskAccount',attributes,{'tableName':_0x260089('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x1bfc0e;}; \ No newline at end of file +const a305_0x197f=['function','FreshdeskAccount','init','./intFreshdeskAccount.attributes','./intFreshdeskAccount.options','sequelize','exports'];(function(_0x53d1c5,_0x55cc39){const _0x197fb4=function(_0x2a5e88){while(--_0x2a5e88){_0x53d1c5['push'](_0x53d1c5['shift']());}};_0x197fb4(++_0x55cc39);}(a305_0x197f,0x1c4));const a305_0x2a5e=function(_0x53d1c5,_0x55cc39){_0x53d1c5=_0x53d1c5-0xf5;let _0x197fb4=a305_0x197f[_0x53d1c5];return _0x197fb4;};const a305_0x4538a3=a305_0x2a5e;'use strict';const {Model}=require(a305_0x4538a3(0xf6)),{attributes}=require(a305_0x4538a3(0xfb)),{options}=require(a305_0x4538a3(0xf5));class FreshdeskAccount extends Model{}function init(_0x4f57bd,_0x126d92){const _0x439926=a305_0x4538a3,_0x204205=options(_0x4f57bd),_0xe86a17=typeof _0x126d92===_0x439926(0xf8)?_0x126d92(_0x204205):_0x204205;return FreshdeskAccount[_0x439926(0xfa)](attributes,_0xe86a17),FreshdeskAccount;}module[a305_0x4538a3(0xf7)][a305_0x4538a3(0xf9)]=FreshdeskAccount,module[a305_0x4538a3(0xf7)][a305_0x4538a3(0xfa)]=init; \ No newline at end of file diff --git a/server/api/intFreshdeskAccount/intFreshdeskAccount.options.js b/server/api/intFreshdeskAccount/intFreshdeskAccount.options.js new file mode 100644 index 0000000..adf6cc8 --- /dev/null +++ b/server/api/intFreshdeskAccount/intFreshdeskAccount.options.js @@ -0,0 +1 @@ +var a306_0x5294=['exports','options'];(function(_0xabdcbf,_0x499d8d){var _0x52946c=function(_0x3bea2d){while(--_0x3bea2d){_0xabdcbf['push'](_0xabdcbf['shift']());}};_0x52946c(++_0x499d8d);}(a306_0x5294,0x7f));var a306_0x3bea=function(_0xabdcbf,_0x499d8d){_0xabdcbf=_0xabdcbf-0xfa;var _0x52946c=a306_0x5294[_0xabdcbf];return _0x52946c;};var a306_0xba28d4=a306_0x3bea;function options(_0x1e646e){return{'sequelize':_0x1e646e,'tableName':'int_freshdesk_accounts','paranoid':![],'indexes':[],'timestamps':!![]};}module[a306_0xba28d4(0xfb)][a306_0xba28d4(0xfa)]=options; \ No newline at end of file diff --git a/server/api/intFreshdeskAccount/intFreshdeskAccount.rpc.js b/server/api/intFreshdeskAccount/intFreshdeskAccount.rpc.js index e7bdbf8..3e69cff 100644 --- a/server/api/intFreshdeskAccount/intFreshdeskAccount.rpc.js +++ b/server/api/intFreshdeskAccount/intFreshdeskAccount.rpc.js @@ -1 +1 @@ -const a257_0x115f=['findOne','error','model','ShowFreshdeskAccount','message','attributes','then','../../mysqldb','info','map','stringify','lodash','debug','where','FreshdeskAccount','../../config/logger','rpc','GetFreshdeskAccount','options','include'];(function(_0x472b40,_0x115f75){const _0x40aeb3=function(_0x3a3b84){while(--_0x3a3b84){_0x472b40['push'](_0x472b40['shift']());}};_0x40aeb3(++_0x115f75);}(a257_0x115f,0xae));const a257_0x40ae=function(_0x472b40,_0x115f75){_0x472b40=_0x472b40-0x0;let _0x40aeb3=a257_0x115f[_0x472b40];return _0x40aeb3;};const _0x15c2a4=a257_0x40ae;'use strict';const _=require(_0x15c2a4('0x11')),db=require(_0x15c2a4('0xd'))['db'],logger=require(_0x15c2a4('0x1'))(_0x15c2a4('0x2'));exports[_0x15c2a4('0x3')]=function(_0x3a3b84){const _0x3a4c4b=this;return new Promise(function(_0x5a174e,_0x6d0883){const _0x213e94=a257_0x40ae;return db[_0x213e94('0x0')]['findAll']({'raw':_0x3a3b84['options']?_0x3a3b84[_0x213e94('0x4')]['raw']===undefined?!![]:![]:!![],'where':_0x3a3b84[_0x213e94('0x4')]?_0x3a3b84[_0x213e94('0x4')][_0x213e94('0x13')]||null:null,'attributes':_0x3a3b84[_0x213e94('0x4')]?_0x3a3b84['options'][_0x213e94('0xb')]||null:null,'limit':_0x3a3b84[_0x213e94('0x4')]?_0x3a3b84[_0x213e94('0x4')]['limit']||null:null,'include':_0x3a3b84[_0x213e94('0x4')]?_0x3a3b84[_0x213e94('0x4')][_0x213e94('0x5')]?_[_0x213e94('0xf')](_0x3a3b84[_0x213e94('0x4')][_0x213e94('0x5')],function(_0x80671e){const _0x4f25bc=_0x213e94;return{'model':db[_0x80671e['model']],'as':_0x80671e['as'],'attributes':_0x80671e[_0x4f25bc('0xb')],'include':_0x80671e['include']?_['map'](_0x80671e[_0x4f25bc('0x5')],function(_0x229145){const _0x4ff335=_0x4f25bc;return{'model':db[_0x229145[_0x4ff335('0x8')]],'as':_0x229145['as'],'attributes':_0x229145[_0x4ff335('0xb')],'include':_0x229145[_0x4ff335('0x5')]?_[_0x4ff335('0xf')](_0x229145[_0x4ff335('0x5')],function(_0x1f3dcf){const _0x3dfa7e=_0x4ff335;return{'model':db[_0x1f3dcf[_0x3dfa7e('0x8')]],'as':_0x1f3dcf['as'],'attributes':_0x1f3dcf[_0x3dfa7e('0xb')]};}):[]};}):[]};}):[]:[]})[_0x213e94('0xc')](function(_0x2c5b9f){const _0x5d5153=_0x213e94;logger[_0x5d5153('0xe')](_0x5d5153('0x3'),_0x3a3b84),logger[_0x5d5153('0x12')](_0x5d5153('0x3'),_0x3a3b84,JSON[_0x5d5153('0x10')](_0x2c5b9f)),_0x5a174e(_0x2c5b9f);})['catch'](function(_0x2c3c9d){const _0x5c2b58=_0x213e94;logger[_0x5c2b58('0x7')]('GetFreshdeskAccount',_0x2c3c9d['message'],_0x3a3b84),_0x6d0883(_0x3a4c4b['error'](0x1f4,_0x2c3c9d[_0x5c2b58('0xa')]));});});},exports[_0x15c2a4('0x9')]=function(_0x5ef1b9){const _0x577d35=this;return new Promise(function(_0x3bdd93,_0x121e88){const _0x11e781=a257_0x40ae;return db[_0x11e781('0x0')][_0x11e781('0x6')]({'raw':_0x5ef1b9[_0x11e781('0x4')]?_0x5ef1b9[_0x11e781('0x4')]['raw']===undefined?!![]:![]:!![],'where':_0x5ef1b9[_0x11e781('0x4')]?_0x5ef1b9[_0x11e781('0x4')][_0x11e781('0x13')]||null:null,'attributes':_0x5ef1b9[_0x11e781('0x4')]?_0x5ef1b9[_0x11e781('0x4')][_0x11e781('0xb')]||null:null,'include':_0x5ef1b9[_0x11e781('0x4')]?_0x5ef1b9['options']['include']?_[_0x11e781('0xf')](_0x5ef1b9[_0x11e781('0x4')][_0x11e781('0x5')],function(_0x2c77ab){const _0x25740a=_0x11e781;return{'model':db[_0x2c77ab[_0x25740a('0x8')]],'as':_0x2c77ab['as'],'attributes':_0x2c77ab[_0x25740a('0xb')],'include':_0x2c77ab[_0x25740a('0x5')]?_[_0x25740a('0xf')](_0x2c77ab[_0x25740a('0x5')],function(_0x38ce63){const _0x489c9e=_0x25740a;return{'model':db[_0x38ce63['model']],'as':_0x38ce63['as'],'attributes':_0x38ce63[_0x489c9e('0xb')],'include':_0x38ce63['include']?_['map'](_0x38ce63['include'],function(_0x2a7e7c){const _0x1e68c3=_0x489c9e;return{'model':db[_0x2a7e7c['model']],'as':_0x2a7e7c['as'],'attributes':_0x2a7e7c[_0x1e68c3('0xb')]};}):[]};}):[]};}):[]:[]})[_0x11e781('0xc')](function(_0x88d9a4){const _0xa19422=_0x11e781;logger[_0xa19422('0xe')]('ShowFreshdeskAccount',_0x5ef1b9),logger[_0xa19422('0x12')](_0xa19422('0x9'),_0x5ef1b9,JSON[_0xa19422('0x10')](_0x88d9a4)),_0x3bdd93(_0x88d9a4);})['catch'](function(_0x1f2125){const _0x25a941=_0x11e781;logger[_0x25a941('0x7')](_0x25a941('0x9'),_0x1f2125[_0x25a941('0xa')],_0x5ef1b9),_0x121e88(_0x577d35[_0x25a941('0x7')](0x1f4,_0x1f2125[_0x25a941('0xa')]));});});}; \ No newline at end of file +const a307_0x56e4=['attributes','findOne','FreshdeskAccount','include','rpc','info','lodash','options','stringify','then','model','GetFreshdeskAccount','debug','where','map','message','error','catch','../../mysqldb','raw','../../config/logger'];(function(_0x14c20e,_0x253608){const _0x56e47c=function(_0x12f758){while(--_0x12f758){_0x14c20e['push'](_0x14c20e['shift']());}};_0x56e47c(++_0x253608);}(a307_0x56e4,0x176));const a307_0x12f7=function(_0x14c20e,_0x253608){_0x14c20e=_0x14c20e-0xa5;let _0x56e47c=a307_0x56e4[_0x14c20e];return _0x56e47c;};const a307_0x1177ce=a307_0x12f7;'use strict';const _=require(a307_0x1177ce(0xaf)),db=require(a307_0x1177ce(0xa6))['db'],logger=require(a307_0x1177ce(0xa8))(a307_0x1177ce(0xad));exports[a307_0x1177ce(0xb4)]=function(_0x403485){const _0x1fd6b6=this;return new Promise(function(_0x415035,_0x4be04a){const _0x46bb17=a307_0x12f7;return db[_0x46bb17(0xab)]['findAll']({'raw':_0x403485[_0x46bb17(0xb0)]?_0x403485[_0x46bb17(0xb0)][_0x46bb17(0xa7)]===undefined?!![]:![]:!![],'where':_0x403485['options']?_0x403485[_0x46bb17(0xb0)][_0x46bb17(0xb6)]||null:null,'attributes':_0x403485[_0x46bb17(0xb0)]?_0x403485[_0x46bb17(0xb0)][_0x46bb17(0xa9)]||null:null,'limit':_0x403485[_0x46bb17(0xb0)]?_0x403485[_0x46bb17(0xb0)]['limit']||null:null,'include':_0x403485['options']?_0x403485['options'][_0x46bb17(0xac)]?_[_0x46bb17(0xb7)](_0x403485[_0x46bb17(0xb0)]['include'],function(_0x46721d){const _0x55eeb6=_0x46bb17;return{'model':db[_0x46721d[_0x55eeb6(0xb3)]],'as':_0x46721d['as'],'attributes':_0x46721d[_0x55eeb6(0xa9)],'include':_0x46721d[_0x55eeb6(0xac)]?_[_0x55eeb6(0xb7)](_0x46721d['include'],function(_0x2972e2){const _0x3e365f=_0x55eeb6;return{'model':db[_0x2972e2['model']],'as':_0x2972e2['as'],'attributes':_0x2972e2['attributes'],'include':_0x2972e2['include']?_['map'](_0x2972e2[_0x3e365f(0xac)],function(_0x4c2f74){const _0x5e502d=_0x3e365f;return{'model':db[_0x4c2f74['model']],'as':_0x4c2f74['as'],'attributes':_0x4c2f74[_0x5e502d(0xa9)]};}):[]};}):[]};}):[]:[]})[_0x46bb17(0xb2)](function(_0x3690da){const _0x4fea6e=_0x46bb17;logger[_0x4fea6e(0xae)](_0x4fea6e(0xb4),_0x403485),logger[_0x4fea6e(0xb5)](_0x4fea6e(0xb4),_0x403485,JSON[_0x4fea6e(0xb1)](_0x3690da)),_0x415035(_0x3690da);})[_0x46bb17(0xa5)](function(_0x34b58e){const _0x552acc=_0x46bb17;logger[_0x552acc(0xb9)](_0x552acc(0xb4),_0x34b58e[_0x552acc(0xb8)],_0x403485),_0x4be04a(_0x1fd6b6[_0x552acc(0xb9)](0x1f4,_0x34b58e[_0x552acc(0xb8)]));});});},exports['ShowFreshdeskAccount']=function(_0xd962cb){const _0x49e0e9=this;return new Promise(function(_0x20c17c,_0x4eb29e){const _0x18c220=a307_0x12f7;return db[_0x18c220(0xab)][_0x18c220(0xaa)]({'raw':_0xd962cb[_0x18c220(0xb0)]?_0xd962cb['options'][_0x18c220(0xa7)]===undefined?!![]:![]:!![],'where':_0xd962cb[_0x18c220(0xb0)]?_0xd962cb[_0x18c220(0xb0)][_0x18c220(0xb6)]||null:null,'attributes':_0xd962cb['options']?_0xd962cb[_0x18c220(0xb0)]['attributes']||null:null,'include':_0xd962cb['options']?_0xd962cb['options'][_0x18c220(0xac)]?_[_0x18c220(0xb7)](_0xd962cb[_0x18c220(0xb0)]['include'],function(_0x13359d){const _0x27c77d=_0x18c220;return{'model':db[_0x13359d[_0x27c77d(0xb3)]],'as':_0x13359d['as'],'attributes':_0x13359d[_0x27c77d(0xa9)],'include':_0x13359d['include']?_[_0x27c77d(0xb7)](_0x13359d[_0x27c77d(0xac)],function(_0x4f4b5d){const _0x435fac=_0x27c77d;return{'model':db[_0x4f4b5d[_0x435fac(0xb3)]],'as':_0x4f4b5d['as'],'attributes':_0x4f4b5d[_0x435fac(0xa9)],'include':_0x4f4b5d[_0x435fac(0xac)]?_[_0x435fac(0xb7)](_0x4f4b5d[_0x435fac(0xac)],function(_0x366d66){const _0x4ac704=_0x435fac;return{'model':db[_0x366d66[_0x4ac704(0xb3)]],'as':_0x366d66['as'],'attributes':_0x366d66[_0x4ac704(0xa9)]};}):[]};}):[]};}):[]:[]})[_0x18c220(0xb2)](function(_0x14161f){const _0x2178fa=_0x18c220;logger[_0x2178fa(0xae)]('ShowFreshdeskAccount',_0xd962cb),logger[_0x2178fa(0xb5)]('ShowFreshdeskAccount',_0xd962cb,JSON[_0x2178fa(0xb1)](_0x14161f)),_0x20c17c(_0x14161f);})[_0x18c220(0xa5)](function(_0x1396f3){const _0x3b200c=_0x18c220;logger[_0x3b200c(0xb9)]('ShowFreshdeskAccount',_0x1396f3[_0x3b200c(0xb8)],_0xd962cb),_0x4eb29e(_0x49e0e9[_0x3b200c(0xb9)](0x1f4,_0x1396f3['message']));});});}; \ No newline at end of file diff --git a/server/api/intFreshdeskConfiguration/index.js b/server/api/intFreshdeskConfiguration/index.js index 5958f94..3ff9331 100644 --- a/server/api/intFreshdeskConfiguration/index.js +++ b/server/api/intFreshdeskConfiguration/index.js @@ -1 +1 @@ -const a258_0x2f34=['index','getDescriptions','post','create','show','setTags','isAuthenticated','destroy','getTags','./intFreshdeskConfiguration.controller','/:id/fields','get','/:id/descriptions','getFields','../../components/auth/service','delete','express','update','/:id/tags','/:id','exports','put','Router'];(function(_0x250ae3,_0x2f34bd){const _0x338cab=function(_0x2861e0){while(--_0x2861e0){_0x250ae3['push'](_0x250ae3['shift']());}};_0x338cab(++_0x2f34bd);}(a258_0x2f34,0x19e));const a258_0x338c=function(_0x250ae3,_0x2f34bd){_0x250ae3=_0x250ae3-0x0;let _0x338cab=a258_0x2f34[_0x250ae3];return _0x338cab;};const _0x46b87f=a258_0x338c;'use strict';const express=require(_0x46b87f('0x10')),router=express[_0x46b87f('0x16')](),auth=require(_0x46b87f('0xe')),controller=require(_0x46b87f('0x9'));router[_0x46b87f('0xb')]('/',auth[_0x46b87f('0x6')](),controller[_0x46b87f('0x0')]),router[_0x46b87f('0xb')](_0x46b87f('0x13'),auth[_0x46b87f('0x6')](),controller[_0x46b87f('0x4')]),router[_0x46b87f('0xb')](_0x46b87f('0xa'),auth['isAuthenticated'](),controller[_0x46b87f('0xd')]),router[_0x46b87f('0xb')]('/:id/subjects',auth['isAuthenticated'](),controller['getSubjects']),router[_0x46b87f('0xb')](_0x46b87f('0xc'),auth[_0x46b87f('0x6')](),controller[_0x46b87f('0x1')]),router['get'](_0x46b87f('0x12'),auth[_0x46b87f('0x6')](),controller[_0x46b87f('0x8')]),router['post']('/',auth[_0x46b87f('0x6')](),controller[_0x46b87f('0x3')]),router[_0x46b87f('0x2')](_0x46b87f('0x12'),auth[_0x46b87f('0x6')](),controller[_0x46b87f('0x5')]),router[_0x46b87f('0x15')](_0x46b87f('0x13'),auth[_0x46b87f('0x6')](),controller[_0x46b87f('0x11')]),router[_0x46b87f('0xf')](_0x46b87f('0x13'),auth[_0x46b87f('0x6')](),controller[_0x46b87f('0x7')]),module[_0x46b87f('0x14')]=router; \ No newline at end of file +const a308_0x239e=['get','Router','exports','show','./intFreshdeskConfiguration.controller','/:id/fields','index','destroy','express','isAuthenticated','getSubjects','/:id/subjects','post','/:id/tags','getDescriptions','/:id/descriptions','create','getTags','put','/:id','getFields'];(function(_0x2fe2e3,_0x309c20){const _0x239ee2=function(_0x118b93){while(--_0x118b93){_0x2fe2e3['push'](_0x2fe2e3['shift']());}};_0x239ee2(++_0x309c20);}(a308_0x239e,0x15c));const a308_0x118b=function(_0x2fe2e3,_0x309c20){_0x2fe2e3=_0x2fe2e3-0xa0;let _0x239ee2=a308_0x239e[_0x2fe2e3];return _0x239ee2;};const a308_0xd2c117=a308_0x118b;'use strict';const express=require(a308_0xd2c117(0xb1)),router=express[a308_0xd2c117(0xaa)](),auth=require('../../components/auth/service'),controller=require(a308_0xd2c117(0xad));router[a308_0xd2c117(0xa9)]('/',auth[a308_0xd2c117(0xb2)](),controller[a308_0xd2c117(0xaf)]),router[a308_0xd2c117(0xa9)](a308_0xd2c117(0xa7),auth[a308_0xd2c117(0xb2)](),controller[a308_0xd2c117(0xac)]),router['get'](a308_0xd2c117(0xae),auth['isAuthenticated'](),controller[a308_0xd2c117(0xa8)]),router[a308_0xd2c117(0xa9)](a308_0xd2c117(0xb4),auth[a308_0xd2c117(0xb2)](),controller[a308_0xd2c117(0xb3)]),router[a308_0xd2c117(0xa9)](a308_0xd2c117(0xa3),auth[a308_0xd2c117(0xb2)](),controller[a308_0xd2c117(0xa2)]),router[a308_0xd2c117(0xa9)](a308_0xd2c117(0xa1),auth[a308_0xd2c117(0xb2)](),controller[a308_0xd2c117(0xa5)]),router[a308_0xd2c117(0xa0)]('/',auth['isAuthenticated'](),controller[a308_0xd2c117(0xa4)]),router[a308_0xd2c117(0xa0)]('/:id/tags',auth[a308_0xd2c117(0xb2)](),controller['setTags']),router[a308_0xd2c117(0xa6)](a308_0xd2c117(0xa7),auth['isAuthenticated'](),controller['update']),router['delete'](a308_0xd2c117(0xa7),auth['isAuthenticated'](),controller[a308_0xd2c117(0xb0)]),module[a308_0xd2c117(0xab)]=router; \ No newline at end of file diff --git a/server/api/intFreshdeskConfiguration/intFreshdeskConfiguration.attributes.js b/server/api/intFreshdeskConfiguration/intFreshdeskConfiguration.attributes.js index 112e65a..6c589d7 100644 --- a/server/api/intFreshdeskConfiguration/intFreshdeskConfiguration.attributes.js +++ b/server/api/intFreshdeskConfiguration/intFreshdeskConfiguration.attributes.js @@ -1 +1 @@ -const a259_0x25b4=['STRING'];(function(_0x25fc1c,_0x25b47c){const _0x55e57d=function(_0x56669b){while(--_0x56669b){_0x25fc1c['push'](_0x25fc1c['shift']());}};_0x55e57d(++_0x25b47c);}(a259_0x25b4,0x1b2));const a259_0x55e5=function(_0x25fc1c,_0x25b47c){_0x25fc1c=_0x25fc1c-0x0;let _0x55e57d=a259_0x25b4[_0x25fc1c];return _0x55e57d;};const _0x467f57=a259_0x55e5;'use strict';const Sequelize=require('sequelize');module['exports']={'name':{'type':Sequelize[_0x467f57('0x0')]},'description':{'type':Sequelize['STRING']}}; \ No newline at end of file +const a309_0x1bcd=['STRING','attributes'];(function(_0x9529e3,_0x5b2068){const _0x1bcd02=function(_0x839f8d){while(--_0x839f8d){_0x9529e3['push'](_0x9529e3['shift']());}};_0x1bcd02(++_0x5b2068);}(a309_0x1bcd,0xe1));const a309_0x839f=function(_0x9529e3,_0x5b2068){_0x9529e3=_0x9529e3-0x1ed;let _0x1bcd02=a309_0x1bcd[_0x9529e3];return _0x1bcd02;};const a309_0x3165e8=a309_0x839f;'use strict';const {DataTypes}=require('sequelize'),attributes={'name':{'type':DataTypes['STRING']},'description':{'type':DataTypes[a309_0x3165e8(0x1ee)]}};module['exports'][a309_0x3165e8(0x1ed)]=attributes; \ No newline at end of file diff --git a/server/api/intFreshdeskConfiguration/intFreshdeskConfiguration.controller.js b/server/api/intFreshdeskConfiguration/intFreshdeskConfiguration.controller.js index 3a75138..c6eb1af 100644 --- a/server/api/intFreshdeskConfiguration/intFreshdeskConfiguration.controller.js +++ b/server/api/intFreshdeskConfiguration/intFreshdeskConfiguration.controller.js @@ -1 +1 @@ -const a260_0x2ad0=['status','body','undefined','getFields','catch','error','findAll','filter','merge','getSubjects','type','query','params','options','update','Content-Range','count','name','VIRTUAL','../../mysqldb','intersection','rawAttributes','show','sort','fields','model','setTags','rows','set','where','sendStatus','FreshdeskField','getDescriptions','Tag','filters','end','attributes','limit','send','fieldName','key','order','map','getTags','like','findOne','json','stack','then','keys','length','pick','destroy','index','offset','nolimit','FreshdeskConfiguration','create'];(function(_0xa3393,_0x2ad0e7){const _0x360beb=function(_0x2c1386){while(--_0x2c1386){_0xa3393['push'](_0xa3393['shift']());}};_0x360beb(++_0x2ad0e7);}(a260_0x2ad0,0x15c));const a260_0x360b=function(_0xa3393,_0x2ad0e7){_0xa3393=_0xa3393-0x0;let _0x360beb=a260_0x2ad0[_0xa3393];return _0x360beb;};const _0x98ca20=a260_0x360b;'use strict';const _=require('lodash'),qs=require('../../components/parsers/qs'),logger=require('../../config/logger')('api'),db=require(_0x98ca20('0x13'))['db'],{Op}=require('sequelize');function respondWithResult(_0x2c1386,_0x530530){return _0x530530=_0x530530||0xc8,function(_0x2fe680){const _0x51dbc2=a260_0x360b;if(_0x2fe680)return _0x2c1386[_0x51dbc2('0x0')](_0x530530)[_0x51dbc2('0x2e')](_0x2fe680);};}function respondWithFilteredResult(_0x26f511,_0x119744){return function(_0x3b389c){const _0x489845=a260_0x360b;if(_0x3b389c){const _0x1bf134=_0x3b389c[_0x489845('0x10')],_0xd81b30=_0x119744[_0x489845('0x36')];let _0x35e908=_0x119744['offset']+_0x119744[_0x489845('0x25')],_0x46c2e5;return _0x35e908>=_0x1bf134?(_0x35e908=_0x1bf134,_0x46c2e5=0xc8):_0x46c2e5=0xce,_0x26f511['status'](_0x46c2e5),_0x26f511[_0x489845('0x1c')](_0x489845('0xf'),_0xd81b30+'-'+_0x35e908+'/'+_0x1bf134)[_0x489845('0x2e')](_0x3b389c);}return null;};}function saveUpdates(_0x1e3448){return function(_0x281493){const _0x351a64=a260_0x360b;if(_0x281493)return _0x281493['update'](_0x1e3448)[_0x351a64('0x30')](function(_0xd6caae){return _0xd6caae;});return null;};}function removeEntity(_0x4d7cd6){return function(_0x181dac){const _0xd169c0=a260_0x360b;if(_0x181dac)return _0x181dac[_0xd169c0('0x34')]()[_0xd169c0('0x30')](function(){const _0x4c0cf3=_0xd169c0;_0x4d7cd6['status'](0xcc)[_0x4c0cf3('0x23')]();});};}function handleEntityNotFound(_0x145555){return function(_0x20de39){const _0xe72051=a260_0x360b;return!_0x20de39&&_0x145555[_0xe72051('0x1e')](0x194),_0x20de39;};}function handleError(_0x3a8ee1,_0x1ef0d7){return _0x1ef0d7=_0x1ef0d7||0x1f4,function(_0x25b2c6){const _0x51e912=a260_0x360b;logger[_0x51e912('0x5')](_0x25b2c6[_0x51e912('0x2f')]),_0x25b2c6[_0x51e912('0x11')]&&delete _0x25b2c6[_0x51e912('0x11')],_0x3a8ee1['status'](_0x1ef0d7)[_0x51e912('0x26')](_0x25b2c6);};}exports[_0x98ca20('0x35')]=function(_0x196756,_0x3d7537){const _0x56d799=_0x98ca20;let _0x84c24e={};const _0x373179={},_0x30d7d2={'count':0x0,'rows':[]},_0xe6c18a=_['map'](db['FreshdeskConfiguration'][_0x56d799('0x15')],function(_0x5687d5){const _0x3955bb=_0x56d799;return{'name':_0x5687d5[_0x3955bb('0x27')],'type':_0x5687d5[_0x3955bb('0xa')][_0x3955bb('0x28')]};});_0x373179[_0x56d799('0x19')]=_[_0x56d799('0x2a')](_0xe6c18a,_0x56d799('0x11')),_0x373179[_0x56d799('0xb')]=_[_0x56d799('0x31')](_0x196756[_0x56d799('0xb')]),_0x373179[_0x56d799('0x22')]=_[_0x56d799('0x14')](_0x373179['model'],_0x373179['query']),_0x84c24e[_0x56d799('0x24')]=_[_0x56d799('0x14')](_0x373179[_0x56d799('0x19')],qs[_0x56d799('0x18')](_0x196756[_0x56d799('0xb')]['fields'])),_0x84c24e[_0x56d799('0x24')]=_0x84c24e[_0x56d799('0x24')][_0x56d799('0x32')]?_0x84c24e[_0x56d799('0x24')]:_0x373179[_0x56d799('0x19')];typeof _0x196756[_0x56d799('0xb')][_0x56d799('0x37')]===_0x56d799('0x2')&&(_0x84c24e[_0x56d799('0x25')]=qs['limit'](_0x196756[_0x56d799('0xb')]['limit']),_0x84c24e['offset']=qs[_0x56d799('0x36')](_0x196756[_0x56d799('0xb')][_0x56d799('0x36')]));_0x84c24e['order']=qs['sort'](_0x196756[_0x56d799('0xb')][_0x56d799('0x17')]),_0x84c24e[_0x56d799('0x1d')]=qs[_0x56d799('0x22')](_[_0x56d799('0x33')](_0x196756[_0x56d799('0xb')],_0x373179[_0x56d799('0x22')]),_0xe6c18a);_0x196756[_0x56d799('0xb')][_0x56d799('0x7')]&&(_0x84c24e[_0x56d799('0x1d')]=_['merge'](_0x84c24e[_0x56d799('0x1d')],{[Op['or']]:_[_0x56d799('0x2a')](_0xe6c18a,function(_0x867688){const _0x268cb9=_0x56d799;if(_0x867688[_0x268cb9('0xa')]!==_0x268cb9('0x12')){const _0x48d49f={};return _0x48d49f[_0x867688[_0x268cb9('0x11')]]={[Op[_0x268cb9('0x2c')]]:'%'+_0x196756[_0x268cb9('0xb')]['filter']+'%'},_0x48d49f;}})}));_0x84c24e=_['merge']({},_0x84c24e,_0x196756[_0x56d799('0xd')]);const _0x39811a={'where':_0x84c24e[_0x56d799('0x1d')]};return db['FreshdeskConfiguration'][_0x56d799('0x10')](_0x39811a)[_0x56d799('0x30')](function(_0x5cb57b){const _0x5bbec4=_0x56d799;return _0x30d7d2['count']=_0x5cb57b,_0x196756[_0x5bbec4('0xb')]['includeAll']&&(_0x84c24e['include']=[{'all':!![]}]),db[_0x5bbec4('0x38')][_0x5bbec4('0x6')](_0x84c24e);})[_0x56d799('0x30')](function(_0x672771){const _0x54ccb5=_0x56d799;return _0x30d7d2[_0x54ccb5('0x1b')]=_0x672771,_0x30d7d2;})[_0x56d799('0x30')](respondWithFilteredResult(_0x3d7537,_0x84c24e))['catch'](handleError(_0x3d7537,null));},exports[_0x98ca20('0x16')]=function(_0x5b5aa2,_0x26a203){const _0x9b00ec=_0x98ca20;let _0x595b29={'raw':![],'where':{'id':_0x5b5aa2[_0x9b00ec('0xc')]['id']}};const _0x5390e0={};return _0x5390e0['model']=_[_0x9b00ec('0x31')](db[_0x9b00ec('0x38')][_0x9b00ec('0x15')]),_0x5390e0['query']=_[_0x9b00ec('0x31')](_0x5b5aa2['query']),_0x5390e0[_0x9b00ec('0x22')]=_['intersection'](_0x5390e0[_0x9b00ec('0x19')],_0x5390e0['query']),_0x595b29[_0x9b00ec('0x24')]=_[_0x9b00ec('0x14')](_0x5390e0[_0x9b00ec('0x19')],qs[_0x9b00ec('0x18')](_0x5b5aa2['query'][_0x9b00ec('0x18')])),_0x595b29[_0x9b00ec('0x24')]=_0x595b29[_0x9b00ec('0x24')][_0x9b00ec('0x32')]?_0x595b29[_0x9b00ec('0x24')]:_0x5390e0[_0x9b00ec('0x19')],_0x5b5aa2['query']['includeAll']&&(_0x595b29['include']=[{'all':!![]}]),_0x595b29=_[_0x9b00ec('0x8')]({},_0x595b29,_0x5b5aa2['options']),db[_0x9b00ec('0x38')]['findOne'](_0x595b29)['then'](handleEntityNotFound(_0x26a203,null))['then'](respondWithResult(_0x26a203,null))[_0x9b00ec('0x4')](handleError(_0x26a203,null));},exports['create']=function(_0x1ecf02,_0x1400b0){const _0x4bde9a=_0x98ca20;return db[_0x4bde9a('0x38')][_0x4bde9a('0x39')](_0x1ecf02[_0x4bde9a('0x1')],{})[_0x4bde9a('0x30')](respondWithResult(_0x1400b0,0xc9))[_0x4bde9a('0x4')](handleError(_0x1400b0,null));},exports[_0x98ca20('0xe')]=function(_0x4afd5d,_0x16c71e){const _0x182297=_0x98ca20;return _0x4afd5d['body']['id']&&delete _0x4afd5d['body']['id'],db['FreshdeskConfiguration'][_0x182297('0x2d')]({'where':{'id':_0x4afd5d[_0x182297('0xc')]['id']}})[_0x182297('0x30')](handleEntityNotFound(_0x16c71e,null))['then'](saveUpdates(_0x4afd5d[_0x182297('0x1')],null))[_0x182297('0x30')](respondWithResult(_0x16c71e,null))[_0x182297('0x4')](handleError(_0x16c71e,null));},exports[_0x98ca20('0x34')]=function(_0x3be823,_0xc8a42f){const _0x141699=_0x98ca20;return db['FreshdeskConfiguration']['findOne']({'where':{'id':_0x3be823['params']['id']}})[_0x141699('0x30')](handleEntityNotFound(_0xc8a42f,null))[_0x141699('0x30')](removeEntity(_0xc8a42f,null))[_0x141699('0x4')](handleError(_0xc8a42f,null));},exports[_0x98ca20('0x3')]=function(_0x206dd0,_0x1482cc){const _0x203ac6=_0x98ca20;let _0x4b114d={};const _0x2c4bb5={};let _0x4e0ba1,_0x247efc;return db['FreshdeskConfiguration']['findOne']({'where':{'id':_0x206dd0[_0x203ac6('0xc')]['id']}})['then'](handleEntityNotFound(_0x1482cc,null))[_0x203ac6('0x30')](function(_0x5ca5e6){const _0x5b04c2=_0x203ac6;if(_0x5ca5e6)return _0x4e0ba1=_0x5ca5e6,_0x2c4bb5[_0x5b04c2('0x19')]=_[_0x5b04c2('0x31')](db[_0x5b04c2('0x1f')][_0x5b04c2('0x15')]),_0x2c4bb5[_0x5b04c2('0xb')]=_[_0x5b04c2('0x31')](_0x206dd0[_0x5b04c2('0xb')]),_0x2c4bb5[_0x5b04c2('0x22')]=_[_0x5b04c2('0x14')](_0x2c4bb5['model'],_0x2c4bb5[_0x5b04c2('0xb')]),_0x4b114d['attributes']=_[_0x5b04c2('0x14')](_0x2c4bb5[_0x5b04c2('0x19')],qs[_0x5b04c2('0x18')](_0x206dd0['query']['fields'])),_0x4b114d[_0x5b04c2('0x24')]=_0x4b114d[_0x5b04c2('0x24')]['length']?_0x4b114d[_0x5b04c2('0x24')]:_0x2c4bb5[_0x5b04c2('0x19')],_0x4b114d[_0x5b04c2('0x29')]=qs['sort'](_0x206dd0[_0x5b04c2('0xb')]['sort']),_0x4b114d['where']=qs[_0x5b04c2('0x22')](_[_0x5b04c2('0x33')](_0x206dd0[_0x5b04c2('0xb')],_0x2c4bb5[_0x5b04c2('0x22')])),_0x206dd0[_0x5b04c2('0xb')][_0x5b04c2('0x7')]&&(_0x4b114d['where']=_[_0x5b04c2('0x8')](_0x4b114d['where'],{[Op['or']]:_[_0x5b04c2('0x2a')](_0x4b114d[_0x5b04c2('0x24')],function(_0x5b3862){const _0x5b5809=_0x5b04c2,_0x3b077f={};return _0x3b077f[_0x5b3862]={[Op['like']]:'%'+_0x206dd0[_0x5b5809('0xb')][_0x5b5809('0x7')]+'%'},_0x3b077f;})})),_0x4b114d=_[_0x5b04c2('0x8')]({},_0x4b114d,_0x206dd0['options']),_0x4e0ba1['getFields'](_0x4b114d);})[_0x203ac6('0x30')](function(_0x4352f0){const _0xeb225f=_0x203ac6;if(_0x4352f0)return _0x247efc=_0x4352f0[_0xeb225f('0x32')],typeof _0x206dd0[_0xeb225f('0xb')][_0xeb225f('0x37')]===_0xeb225f('0x2')&&(_0x4b114d[_0xeb225f('0x25')]=qs[_0xeb225f('0x25')](_0x206dd0[_0xeb225f('0xb')][_0xeb225f('0x25')]),_0x4b114d[_0xeb225f('0x36')]=qs[_0xeb225f('0x36')](_0x206dd0[_0xeb225f('0xb')][_0xeb225f('0x36')])),_0x4e0ba1[_0xeb225f('0x3')](_0x4b114d);})[_0x203ac6('0x30')](function(_0x49cf78){if(_0x49cf78)return _0x49cf78?{'count':_0x247efc,'rows':_0x49cf78}:null;})['then'](respondWithResult(_0x1482cc,null))[_0x203ac6('0x4')](handleError(_0x1482cc,null));},exports['getSubjects']=function(_0xbec1df,_0x18cff9){const _0x4b7b6d=_0x98ca20;let _0x476b71={};const _0x52c2d3={};let _0x58e015,_0x57d1da;return db[_0x4b7b6d('0x38')][_0x4b7b6d('0x2d')]({'where':{'id':_0xbec1df[_0x4b7b6d('0xc')]['id']}})[_0x4b7b6d('0x30')](handleEntityNotFound(_0x18cff9,null))[_0x4b7b6d('0x30')](function(_0x296cf0){const _0x20b1cd=_0x4b7b6d;if(_0x296cf0)return _0x58e015=_0x296cf0,_0x52c2d3[_0x20b1cd('0x19')]=_[_0x20b1cd('0x31')](db['FreshdeskField']['rawAttributes']),_0x52c2d3[_0x20b1cd('0xb')]=_[_0x20b1cd('0x31')](_0xbec1df[_0x20b1cd('0xb')]),_0x52c2d3[_0x20b1cd('0x22')]=_['intersection'](_0x52c2d3[_0x20b1cd('0x19')],_0x52c2d3[_0x20b1cd('0xb')]),_0x476b71['attributes']=_['intersection'](_0x52c2d3[_0x20b1cd('0x19')],qs[_0x20b1cd('0x18')](_0xbec1df[_0x20b1cd('0xb')][_0x20b1cd('0x18')])),_0x476b71['attributes']=_0x476b71[_0x20b1cd('0x24')][_0x20b1cd('0x32')]?_0x476b71[_0x20b1cd('0x24')]:_0x52c2d3[_0x20b1cd('0x19')],_0x476b71[_0x20b1cd('0x29')]=qs['sort'](_0xbec1df[_0x20b1cd('0xb')][_0x20b1cd('0x17')]),_0x476b71[_0x20b1cd('0x1d')]=qs['filters'](_['pick'](_0xbec1df[_0x20b1cd('0xb')],_0x52c2d3[_0x20b1cd('0x22')])),_0xbec1df['query'][_0x20b1cd('0x7')]&&(_0x476b71[_0x20b1cd('0x1d')]=_['merge'](_0x476b71[_0x20b1cd('0x1d')],{[Op['or']]:_[_0x20b1cd('0x2a')](_0x476b71[_0x20b1cd('0x24')],function(_0x18be7b){const _0xad488c=_0x20b1cd,_0x3d49dc={};return _0x3d49dc[_0x18be7b]={[Op[_0xad488c('0x2c')]]:'%'+_0xbec1df['query'][_0xad488c('0x7')]+'%'},_0x3d49dc;})})),_0x476b71=_[_0x20b1cd('0x8')]({},_0x476b71,_0xbec1df['options']),_0x58e015[_0x20b1cd('0x9')](_0x476b71);})[_0x4b7b6d('0x30')](function(_0x459140){const _0x316e05=_0x4b7b6d;if(_0x459140)return _0x57d1da=_0x459140[_0x316e05('0x32')],typeof _0xbec1df[_0x316e05('0xb')][_0x316e05('0x37')]===_0x316e05('0x2')&&(_0x476b71['limit']=qs['limit'](_0xbec1df['query'][_0x316e05('0x25')]),_0x476b71['offset']=qs['offset'](_0xbec1df[_0x316e05('0xb')]['offset'])),_0x58e015['getSubjects'](_0x476b71);})[_0x4b7b6d('0x30')](function(_0x5deae8){if(_0x5deae8)return _0x5deae8?{'count':_0x57d1da,'rows':_0x5deae8}:null;})[_0x4b7b6d('0x30')](respondWithResult(_0x18cff9,null))[_0x4b7b6d('0x4')](handleError(_0x18cff9,null));},exports[_0x98ca20('0x20')]=function(_0x3bb2fb,_0x1bf00a){const _0x1abe2b=_0x98ca20;let _0x5ce86e={};const _0x3badd8={};let _0x397f30,_0x54eba9;return db[_0x1abe2b('0x38')][_0x1abe2b('0x2d')]({'where':{'id':_0x3bb2fb['params']['id']}})[_0x1abe2b('0x30')](handleEntityNotFound(_0x1bf00a,null))[_0x1abe2b('0x30')](function(_0x5ea635){const _0x38151f=_0x1abe2b;if(_0x5ea635)return _0x397f30=_0x5ea635,_0x3badd8[_0x38151f('0x19')]=_[_0x38151f('0x31')](db[_0x38151f('0x1f')][_0x38151f('0x15')]),_0x3badd8[_0x38151f('0xb')]=_['keys'](_0x3bb2fb[_0x38151f('0xb')]),_0x3badd8[_0x38151f('0x22')]=_[_0x38151f('0x14')](_0x3badd8[_0x38151f('0x19')],_0x3badd8[_0x38151f('0xb')]),_0x5ce86e['attributes']=_[_0x38151f('0x14')](_0x3badd8[_0x38151f('0x19')],qs['fields'](_0x3bb2fb[_0x38151f('0xb')][_0x38151f('0x18')])),_0x5ce86e[_0x38151f('0x24')]=_0x5ce86e[_0x38151f('0x24')][_0x38151f('0x32')]?_0x5ce86e['attributes']:_0x3badd8[_0x38151f('0x19')],_0x5ce86e['order']=qs[_0x38151f('0x17')](_0x3bb2fb[_0x38151f('0xb')][_0x38151f('0x17')]),_0x5ce86e[_0x38151f('0x1d')]=qs[_0x38151f('0x22')](_[_0x38151f('0x33')](_0x3bb2fb['query'],_0x3badd8['filters'])),_0x3bb2fb['query'][_0x38151f('0x7')]&&(_0x5ce86e[_0x38151f('0x1d')]=_[_0x38151f('0x8')](_0x5ce86e[_0x38151f('0x1d')],{[Op['or']]:_[_0x38151f('0x2a')](_0x5ce86e[_0x38151f('0x24')],function(_0x4c6cc2){const _0x9e0598=_0x38151f,_0x23eec5={};return _0x23eec5[_0x4c6cc2]={[Op[_0x9e0598('0x2c')]]:'%'+_0x3bb2fb[_0x9e0598('0xb')][_0x9e0598('0x7')]+'%'},_0x23eec5;})})),_0x5ce86e=_[_0x38151f('0x8')]({},_0x5ce86e,_0x3bb2fb[_0x38151f('0xd')]),_0x397f30[_0x38151f('0x20')](_0x5ce86e);})[_0x1abe2b('0x30')](function(_0x3e3e09){const _0x385e7f=_0x1abe2b;if(_0x3e3e09)return _0x54eba9=_0x3e3e09['length'],typeof _0x3bb2fb[_0x385e7f('0xb')][_0x385e7f('0x37')]===_0x385e7f('0x2')&&(_0x5ce86e[_0x385e7f('0x25')]=qs[_0x385e7f('0x25')](_0x3bb2fb['query'][_0x385e7f('0x25')]),_0x5ce86e[_0x385e7f('0x36')]=qs['offset'](_0x3bb2fb[_0x385e7f('0xb')][_0x385e7f('0x36')])),_0x397f30[_0x385e7f('0x20')](_0x5ce86e);})[_0x1abe2b('0x30')](function(_0x4cc534){if(_0x4cc534)return _0x4cc534?{'count':_0x54eba9,'rows':_0x4cc534}:null;})[_0x1abe2b('0x30')](respondWithResult(_0x1bf00a,null))[_0x1abe2b('0x4')](handleError(_0x1bf00a,null));},exports[_0x98ca20('0x2b')]=function(_0x277014,_0x457a8a){const _0x3f974f=_0x98ca20;let _0x35b5d1={};const _0x3a4dcf={};let _0x35ea9c,_0x34cd31;return db[_0x3f974f('0x38')][_0x3f974f('0x2d')]({'where':{'id':_0x277014['params']['id']}})[_0x3f974f('0x30')](handleEntityNotFound(_0x457a8a,null))['then'](function(_0x323251){const _0x335496=_0x3f974f;if(_0x323251)return _0x35ea9c=_0x323251,_0x3a4dcf[_0x335496('0x19')]=_[_0x335496('0x31')](db[_0x335496('0x21')][_0x335496('0x15')]),_0x3a4dcf['query']=_[_0x335496('0x31')](_0x277014[_0x335496('0xb')]),_0x3a4dcf[_0x335496('0x22')]=_['intersection'](_0x3a4dcf['model'],_0x3a4dcf[_0x335496('0xb')]),_0x35b5d1['attributes']=_[_0x335496('0x14')](_0x3a4dcf[_0x335496('0x19')],qs['fields'](_0x277014[_0x335496('0xb')][_0x335496('0x18')])),_0x35b5d1['attributes']=_0x35b5d1[_0x335496('0x24')][_0x335496('0x32')]?_0x35b5d1[_0x335496('0x24')]:_0x3a4dcf[_0x335496('0x19')],_0x35b5d1['order']=qs[_0x335496('0x17')](_0x277014[_0x335496('0xb')]['sort']),_0x35b5d1[_0x335496('0x1d')]=qs[_0x335496('0x22')](_[_0x335496('0x33')](_0x277014[_0x335496('0xb')],_0x3a4dcf[_0x335496('0x22')])),_0x277014[_0x335496('0xb')]['filter']&&(_0x35b5d1['where']=_['merge'](_0x35b5d1[_0x335496('0x1d')],{[Op['or']]:_['map'](_0x35b5d1[_0x335496('0x24')],function(_0x2331fb){const _0x38defd=_0x335496,_0x268d20={};return _0x268d20[_0x2331fb]={[Op[_0x38defd('0x2c')]]:'%'+_0x277014[_0x38defd('0xb')][_0x38defd('0x7')]+'%'},_0x268d20;})})),_0x35b5d1=_['merge']({},_0x35b5d1,_0x277014['options']),_0x35ea9c[_0x335496('0x2b')](_0x35b5d1);})[_0x3f974f('0x30')](function(_0x20ec9c){const _0x281a67=_0x3f974f;if(_0x20ec9c)return _0x34cd31=_0x20ec9c['length'],typeof _0x277014[_0x281a67('0xb')]['nolimit']==='undefined'&&(_0x35b5d1['limit']=qs[_0x281a67('0x25')](_0x277014[_0x281a67('0xb')][_0x281a67('0x25')]),_0x35b5d1[_0x281a67('0x36')]=qs['offset'](_0x277014[_0x281a67('0xb')]['offset'])),_0x35ea9c[_0x281a67('0x2b')](_0x35b5d1);})['then'](function(_0x53827a){if(_0x53827a)return _0x53827a?{'count':_0x34cd31,'rows':_0x53827a}:null;})[_0x3f974f('0x30')](respondWithResult(_0x457a8a,null))['catch'](handleError(_0x457a8a,null));},exports['setTags']=function(_0x7fbfcc,_0x2d30ed){const _0x595b86=_0x98ca20;return _0x7fbfcc['body']['id']&&delete _0x7fbfcc['body']['id'],db[_0x595b86('0x38')][_0x595b86('0x2d')]({'where':{'id':_0x7fbfcc[_0x595b86('0xc')]['id']}})['then'](handleEntityNotFound(_0x2d30ed,null))[_0x595b86('0x30')](function(_0x207855){const _0x3ff5be=_0x595b86;if(_0x207855)return _0x207855[_0x3ff5be('0x1a')](_0x7fbfcc['body']['ids']||[]);return null;})['then'](respondWithResult(_0x2d30ed,null))['catch'](handleError(_0x2d30ed,null));}; \ No newline at end of file +const a310_0x3923=['fields','findOne','filters','order','includeAll','undefined','body','destroy','like','json','sort','set','send','filter','FreshdeskConfiguration','create','map','error','Tag','../../mysqldb','setTags','offset','rows','limit','count','attributes','rawAttributes','getSubjects','catch','where','findAll','getDescriptions','key','end','getFields','options','update','lodash','pick','FreshdeskField','intersection','getTags','query','length','model','stack','status','include','merge','params','show','../../components/parsers/qs','Content-Range','type','nolimit','sequelize','name','fieldName','then','keys'];(function(_0x31f227,_0x3c6b39){const _0x392397=function(_0x3c73af){while(--_0x3c73af){_0x31f227['push'](_0x31f227['shift']());}};_0x392397(++_0x3c6b39);}(a310_0x3923,0x164));const a310_0x3c73=function(_0x31f227,_0x3c6b39){_0x31f227=_0x31f227-0x173;let _0x392397=a310_0x3923[_0x31f227];return _0x392397;};const a310_0xb29355=a310_0x3c73;'use strict';const _=require(a310_0xb29355(0x19c)),qs=require(a310_0xb29355(0x1aa)),logger=require('../../config/logger')('api'),{db}=require(a310_0xb29355(0x18a)),{Op}=require(a310_0xb29355(0x1ae));function respondWithResult(_0x2c3f5c,_0x342ab8){return _0x342ab8=_0x342ab8||0xc8,function(_0x319988){const _0x4688eb=a310_0x3c73;if(_0x319988)return _0x2c3f5c[_0x4688eb(0x1a5)](_0x342ab8)[_0x4688eb(0x180)](_0x319988);};}function respondWithFilteredResult(_0x30f631,_0x3a751d){return function(_0xcb6ffc){const _0x514c57=a310_0x3c73;if(_0xcb6ffc){const _0x3b44e6=_0xcb6ffc[_0x514c57(0x18f)],_0x3b37b4=_0x3a751d['offset'];let _0x596a04=_0x3a751d[_0x514c57(0x18c)]+_0x3a751d[_0x514c57(0x18e)],_0x4a01f6;return _0x596a04>=_0x3b44e6?(_0x596a04=_0x3b44e6,_0x4a01f6=0xc8):_0x4a01f6=0xce,_0x30f631[_0x514c57(0x1a5)](_0x4a01f6),_0x30f631[_0x514c57(0x182)](_0x514c57(0x1ab),_0x3b37b4+'-'+_0x596a04+'/'+_0x3b44e6)[_0x514c57(0x180)](_0xcb6ffc);}return null;};}function saveUpdates(_0x4cec6a){return function(_0x20513f){const _0xe00719=a310_0x3c73;if(_0x20513f)return _0x20513f[_0xe00719(0x19b)](_0x4cec6a)[_0xe00719(0x175)](function(_0x87cb7){return _0x87cb7;});return null;};}function removeEntity(_0x1f31bb){return function(_0x4bb139){const _0x7f2336=a310_0x3c73;if(_0x4bb139)return _0x4bb139[_0x7f2336(0x17e)]()[_0x7f2336(0x175)](function(){const _0x49ad16=_0x7f2336;_0x1f31bb['status'](0xcc)[_0x49ad16(0x198)]();});};}function handleEntityNotFound(_0x1b946f){return function(_0x34d60a){return!_0x34d60a&&_0x1b946f['sendStatus'](0x194),_0x34d60a;};}function handleError(_0xaef0c5,_0x54872c){return _0x54872c=_0x54872c||0x1f4,function(_0x28d2ee){const _0x4058c8=a310_0x3c73;logger[_0x4058c8(0x188)](_0x28d2ee[_0x4058c8(0x1a4)]),_0x28d2ee['name']&&delete _0x28d2ee[_0x4058c8(0x173)],_0xaef0c5[_0x4058c8(0x1a5)](_0x54872c)[_0x4058c8(0x183)](_0x28d2ee);};}exports['index']=function(_0x12dc14,_0x2d338e){const _0x1a07eb=a310_0xb29355;let _0x1fb9b5={};const _0x510a6f={},_0x475247={'count':0x0,'rows':[]},_0x305ce2=_[_0x1a07eb(0x187)](db[_0x1a07eb(0x185)]['rawAttributes'],function(_0x4867f3){const _0xdbbf56=_0x1a07eb;return{'name':_0x4867f3[_0xdbbf56(0x174)],'type':_0x4867f3[_0xdbbf56(0x1ac)][_0xdbbf56(0x197)]};});_0x510a6f[_0x1a07eb(0x1a3)]=_[_0x1a07eb(0x187)](_0x305ce2,_0x1a07eb(0x173)),_0x510a6f['query']=_[_0x1a07eb(0x176)](_0x12dc14[_0x1a07eb(0x1a1)]),_0x510a6f[_0x1a07eb(0x179)]=_['intersection'](_0x510a6f[_0x1a07eb(0x1a3)],_0x510a6f[_0x1a07eb(0x1a1)]),_0x1fb9b5[_0x1a07eb(0x190)]=_[_0x1a07eb(0x19f)](_0x510a6f[_0x1a07eb(0x1a3)],qs[_0x1a07eb(0x177)](_0x12dc14[_0x1a07eb(0x1a1)][_0x1a07eb(0x177)])),_0x1fb9b5[_0x1a07eb(0x190)]=_0x1fb9b5[_0x1a07eb(0x190)][_0x1a07eb(0x1a2)]?_0x1fb9b5[_0x1a07eb(0x190)]:_0x510a6f['model'];typeof _0x12dc14[_0x1a07eb(0x1a1)]['nolimit']==='undefined'&&(_0x1fb9b5[_0x1a07eb(0x18e)]=qs['limit'](_0x12dc14[_0x1a07eb(0x1a1)][_0x1a07eb(0x18e)]),_0x1fb9b5[_0x1a07eb(0x18c)]=qs[_0x1a07eb(0x18c)](_0x12dc14[_0x1a07eb(0x1a1)]['offset']));_0x1fb9b5[_0x1a07eb(0x17a)]=qs[_0x1a07eb(0x181)](_0x12dc14['query'][_0x1a07eb(0x181)]),_0x1fb9b5[_0x1a07eb(0x194)]=qs[_0x1a07eb(0x179)](_[_0x1a07eb(0x19d)](_0x12dc14['query'],_0x510a6f['filters']),_0x305ce2);_0x12dc14['query'][_0x1a07eb(0x184)]&&(_0x1fb9b5['where']=_['merge'](_0x1fb9b5['where'],{[Op['or']]:_['map'](_0x305ce2,function(_0x174b0e){const _0x4f8d2a=_0x1a07eb;if(_0x174b0e[_0x4f8d2a(0x1ac)]!=='VIRTUAL'){const _0x204491={};return _0x204491[_0x174b0e[_0x4f8d2a(0x173)]]={[Op[_0x4f8d2a(0x17f)]]:'%'+_0x12dc14[_0x4f8d2a(0x1a1)][_0x4f8d2a(0x184)]+'%'},_0x204491;}})}));_0x1fb9b5=_[_0x1a07eb(0x1a7)]({},_0x1fb9b5,_0x12dc14['options']);const _0x40730c={'where':_0x1fb9b5[_0x1a07eb(0x194)]};return db['FreshdeskConfiguration']['count'](_0x40730c)[_0x1a07eb(0x175)](function(_0x15d725){const _0x7bc148=_0x1a07eb;return _0x475247['count']=_0x15d725,_0x12dc14[_0x7bc148(0x1a1)]['includeAll']&&(_0x1fb9b5[_0x7bc148(0x1a6)]=[{'all':!![]}]),db[_0x7bc148(0x185)][_0x7bc148(0x195)](_0x1fb9b5);})[_0x1a07eb(0x175)](function(_0x38013c){const _0x598796=_0x1a07eb;return _0x475247[_0x598796(0x18d)]=_0x38013c,_0x475247;})[_0x1a07eb(0x175)](respondWithFilteredResult(_0x2d338e,_0x1fb9b5))[_0x1a07eb(0x193)](handleError(_0x2d338e,null));},exports[a310_0xb29355(0x1a9)]=function(_0x2f9318,_0x17bdf5){const _0x5baea4=a310_0xb29355;let _0x39d28e={'raw':![],'where':{'id':_0x2f9318[_0x5baea4(0x1a8)]['id']}};const _0x43ea23={};return _0x43ea23[_0x5baea4(0x1a3)]=_[_0x5baea4(0x176)](db[_0x5baea4(0x185)][_0x5baea4(0x191)]),_0x43ea23[_0x5baea4(0x1a1)]=_[_0x5baea4(0x176)](_0x2f9318['query']),_0x43ea23['filters']=_[_0x5baea4(0x19f)](_0x43ea23['model'],_0x43ea23['query']),_0x39d28e[_0x5baea4(0x190)]=_[_0x5baea4(0x19f)](_0x43ea23[_0x5baea4(0x1a3)],qs[_0x5baea4(0x177)](_0x2f9318[_0x5baea4(0x1a1)][_0x5baea4(0x177)])),_0x39d28e[_0x5baea4(0x190)]=_0x39d28e[_0x5baea4(0x190)][_0x5baea4(0x1a2)]?_0x39d28e['attributes']:_0x43ea23[_0x5baea4(0x1a3)],_0x2f9318['query'][_0x5baea4(0x17b)]&&(_0x39d28e['include']=[{'all':!![]}]),_0x39d28e=_[_0x5baea4(0x1a7)]({},_0x39d28e,_0x2f9318[_0x5baea4(0x19a)]),db[_0x5baea4(0x185)][_0x5baea4(0x178)](_0x39d28e)[_0x5baea4(0x175)](handleEntityNotFound(_0x17bdf5,null))[_0x5baea4(0x175)](respondWithResult(_0x17bdf5,null))[_0x5baea4(0x193)](handleError(_0x17bdf5,null));},exports[a310_0xb29355(0x186)]=function(_0x59977f,_0x3c78ab){const _0x5f4540=a310_0xb29355;return db['FreshdeskConfiguration'][_0x5f4540(0x186)](_0x59977f[_0x5f4540(0x17d)],{})[_0x5f4540(0x175)](respondWithResult(_0x3c78ab,0xc9))[_0x5f4540(0x193)](handleError(_0x3c78ab,null));},exports[a310_0xb29355(0x19b)]=function(_0xde6e3b,_0x56b4d3){const _0x49bd42=a310_0xb29355;return _0xde6e3b[_0x49bd42(0x17d)]['id']&&delete _0xde6e3b['body']['id'],db[_0x49bd42(0x185)]['findOne']({'where':{'id':_0xde6e3b[_0x49bd42(0x1a8)]['id']}})[_0x49bd42(0x175)](handleEntityNotFound(_0x56b4d3,null))[_0x49bd42(0x175)](saveUpdates(_0xde6e3b[_0x49bd42(0x17d)],null))[_0x49bd42(0x175)](respondWithResult(_0x56b4d3,null))[_0x49bd42(0x193)](handleError(_0x56b4d3,null));},exports[a310_0xb29355(0x17e)]=function(_0x1bf1e4,_0x284554){const _0x43510b=a310_0xb29355;return db[_0x43510b(0x185)][_0x43510b(0x178)]({'where':{'id':_0x1bf1e4[_0x43510b(0x1a8)]['id']}})[_0x43510b(0x175)](handleEntityNotFound(_0x284554,null))[_0x43510b(0x175)](removeEntity(_0x284554,null))[_0x43510b(0x193)](handleError(_0x284554,null));},exports['getFields']=function(_0x572184,_0x3d7629){const _0x36ef8e=a310_0xb29355;let _0x69b93c={};const _0x5c0150={};let _0xc989fc,_0x204306;return db['FreshdeskConfiguration'][_0x36ef8e(0x178)]({'where':{'id':_0x572184[_0x36ef8e(0x1a8)]['id']}})[_0x36ef8e(0x175)](handleEntityNotFound(_0x3d7629,null))[_0x36ef8e(0x175)](function(_0x16d6ea){const _0x265446=_0x36ef8e;if(_0x16d6ea)return _0xc989fc=_0x16d6ea,_0x5c0150[_0x265446(0x1a3)]=_['keys'](db['FreshdeskField']['rawAttributes']),_0x5c0150[_0x265446(0x1a1)]=_['keys'](_0x572184[_0x265446(0x1a1)]),_0x5c0150[_0x265446(0x179)]=_[_0x265446(0x19f)](_0x5c0150['model'],_0x5c0150[_0x265446(0x1a1)]),_0x69b93c['attributes']=_['intersection'](_0x5c0150[_0x265446(0x1a3)],qs['fields'](_0x572184[_0x265446(0x1a1)][_0x265446(0x177)])),_0x69b93c[_0x265446(0x190)]=_0x69b93c[_0x265446(0x190)]['length']?_0x69b93c['attributes']:_0x5c0150[_0x265446(0x1a3)],_0x69b93c[_0x265446(0x17a)]=qs[_0x265446(0x181)](_0x572184[_0x265446(0x1a1)][_0x265446(0x181)]),_0x69b93c['where']=qs[_0x265446(0x179)](_[_0x265446(0x19d)](_0x572184[_0x265446(0x1a1)],_0x5c0150[_0x265446(0x179)])),_0x572184[_0x265446(0x1a1)]['filter']&&(_0x69b93c[_0x265446(0x194)]=_[_0x265446(0x1a7)](_0x69b93c['where'],{[Op['or']]:_[_0x265446(0x187)](_0x69b93c[_0x265446(0x190)],function(_0x9e4c8e){const _0x596c02=_0x265446,_0x23d4f7={};return _0x23d4f7[_0x9e4c8e]={[Op[_0x596c02(0x17f)]]:'%'+_0x572184['query'][_0x596c02(0x184)]+'%'},_0x23d4f7;})})),_0x69b93c=_[_0x265446(0x1a7)]({},_0x69b93c,_0x572184[_0x265446(0x19a)]),_0xc989fc[_0x265446(0x199)](_0x69b93c);})[_0x36ef8e(0x175)](function(_0x3611ae){const _0x3837d1=_0x36ef8e;if(_0x3611ae)return _0x204306=_0x3611ae[_0x3837d1(0x1a2)],typeof _0x572184[_0x3837d1(0x1a1)]['nolimit']===_0x3837d1(0x17c)&&(_0x69b93c['limit']=qs[_0x3837d1(0x18e)](_0x572184['query']['limit']),_0x69b93c[_0x3837d1(0x18c)]=qs[_0x3837d1(0x18c)](_0x572184[_0x3837d1(0x1a1)][_0x3837d1(0x18c)])),_0xc989fc[_0x3837d1(0x199)](_0x69b93c);})[_0x36ef8e(0x175)](function(_0x75c3a6){if(_0x75c3a6)return _0x75c3a6?{'count':_0x204306,'rows':_0x75c3a6}:null;})[_0x36ef8e(0x175)](respondWithResult(_0x3d7629,null))[_0x36ef8e(0x193)](handleError(_0x3d7629,null));},exports[a310_0xb29355(0x192)]=function(_0x1e1ead,_0xfaa2e8){const _0x254f19=a310_0xb29355;let _0xfd5f0f={};const _0x463988={};let _0x546b46,_0x5ae0c0;return db['FreshdeskConfiguration'][_0x254f19(0x178)]({'where':{'id':_0x1e1ead[_0x254f19(0x1a8)]['id']}})['then'](handleEntityNotFound(_0xfaa2e8,null))[_0x254f19(0x175)](function(_0xc76281){const _0x31ec44=_0x254f19;if(_0xc76281)return _0x546b46=_0xc76281,_0x463988['model']=_['keys'](db['FreshdeskField']['rawAttributes']),_0x463988[_0x31ec44(0x1a1)]=_['keys'](_0x1e1ead['query']),_0x463988['filters']=_['intersection'](_0x463988[_0x31ec44(0x1a3)],_0x463988[_0x31ec44(0x1a1)]),_0xfd5f0f['attributes']=_[_0x31ec44(0x19f)](_0x463988[_0x31ec44(0x1a3)],qs[_0x31ec44(0x177)](_0x1e1ead[_0x31ec44(0x1a1)][_0x31ec44(0x177)])),_0xfd5f0f[_0x31ec44(0x190)]=_0xfd5f0f[_0x31ec44(0x190)][_0x31ec44(0x1a2)]?_0xfd5f0f[_0x31ec44(0x190)]:_0x463988[_0x31ec44(0x1a3)],_0xfd5f0f['order']=qs[_0x31ec44(0x181)](_0x1e1ead[_0x31ec44(0x1a1)][_0x31ec44(0x181)]),_0xfd5f0f[_0x31ec44(0x194)]=qs['filters'](_[_0x31ec44(0x19d)](_0x1e1ead[_0x31ec44(0x1a1)],_0x463988[_0x31ec44(0x179)])),_0x1e1ead[_0x31ec44(0x1a1)]['filter']&&(_0xfd5f0f[_0x31ec44(0x194)]=_[_0x31ec44(0x1a7)](_0xfd5f0f['where'],{[Op['or']]:_[_0x31ec44(0x187)](_0xfd5f0f[_0x31ec44(0x190)],function(_0x58a75d){const _0x105f7e=_0x31ec44,_0x11d812={};return _0x11d812[_0x58a75d]={[Op[_0x105f7e(0x17f)]]:'%'+_0x1e1ead[_0x105f7e(0x1a1)][_0x105f7e(0x184)]+'%'},_0x11d812;})})),_0xfd5f0f=_[_0x31ec44(0x1a7)]({},_0xfd5f0f,_0x1e1ead['options']),_0x546b46[_0x31ec44(0x192)](_0xfd5f0f);})[_0x254f19(0x175)](function(_0x4e5566){const _0x1b5907=_0x254f19;if(_0x4e5566)return _0x5ae0c0=_0x4e5566[_0x1b5907(0x1a2)],typeof _0x1e1ead[_0x1b5907(0x1a1)][_0x1b5907(0x1ad)]===_0x1b5907(0x17c)&&(_0xfd5f0f[_0x1b5907(0x18e)]=qs['limit'](_0x1e1ead[_0x1b5907(0x1a1)][_0x1b5907(0x18e)]),_0xfd5f0f[_0x1b5907(0x18c)]=qs['offset'](_0x1e1ead['query'][_0x1b5907(0x18c)])),_0x546b46[_0x1b5907(0x192)](_0xfd5f0f);})[_0x254f19(0x175)](function(_0x1504fd){if(_0x1504fd)return _0x1504fd?{'count':_0x5ae0c0,'rows':_0x1504fd}:null;})[_0x254f19(0x175)](respondWithResult(_0xfaa2e8,null))['catch'](handleError(_0xfaa2e8,null));},exports['getDescriptions']=function(_0x1efd59,_0x4e22e1){const _0x2ee49e=a310_0xb29355;let _0x1d8163={};const _0x47264b={};let _0x185230,_0x4c2968;return db['FreshdeskConfiguration']['findOne']({'where':{'id':_0x1efd59['params']['id']}})[_0x2ee49e(0x175)](handleEntityNotFound(_0x4e22e1,null))[_0x2ee49e(0x175)](function(_0x4f2205){const _0xbf93a0=_0x2ee49e;if(_0x4f2205)return _0x185230=_0x4f2205,_0x47264b[_0xbf93a0(0x1a3)]=_['keys'](db[_0xbf93a0(0x19e)]['rawAttributes']),_0x47264b[_0xbf93a0(0x1a1)]=_[_0xbf93a0(0x176)](_0x1efd59[_0xbf93a0(0x1a1)]),_0x47264b[_0xbf93a0(0x179)]=_[_0xbf93a0(0x19f)](_0x47264b[_0xbf93a0(0x1a3)],_0x47264b[_0xbf93a0(0x1a1)]),_0x1d8163['attributes']=_[_0xbf93a0(0x19f)](_0x47264b[_0xbf93a0(0x1a3)],qs[_0xbf93a0(0x177)](_0x1efd59[_0xbf93a0(0x1a1)][_0xbf93a0(0x177)])),_0x1d8163[_0xbf93a0(0x190)]=_0x1d8163[_0xbf93a0(0x190)][_0xbf93a0(0x1a2)]?_0x1d8163[_0xbf93a0(0x190)]:_0x47264b['model'],_0x1d8163[_0xbf93a0(0x17a)]=qs[_0xbf93a0(0x181)](_0x1efd59[_0xbf93a0(0x1a1)][_0xbf93a0(0x181)]),_0x1d8163['where']=qs[_0xbf93a0(0x179)](_[_0xbf93a0(0x19d)](_0x1efd59[_0xbf93a0(0x1a1)],_0x47264b[_0xbf93a0(0x179)])),_0x1efd59[_0xbf93a0(0x1a1)]['filter']&&(_0x1d8163['where']=_[_0xbf93a0(0x1a7)](_0x1d8163[_0xbf93a0(0x194)],{[Op['or']]:_[_0xbf93a0(0x187)](_0x1d8163[_0xbf93a0(0x190)],function(_0x52da4d){const _0x4faa0e=_0xbf93a0,_0x3e5be3={};return _0x3e5be3[_0x52da4d]={[Op[_0x4faa0e(0x17f)]]:'%'+_0x1efd59['query'][_0x4faa0e(0x184)]+'%'},_0x3e5be3;})})),_0x1d8163=_[_0xbf93a0(0x1a7)]({},_0x1d8163,_0x1efd59['options']),_0x185230[_0xbf93a0(0x196)](_0x1d8163);})[_0x2ee49e(0x175)](function(_0xa8f0){const _0x59cc50=_0x2ee49e;if(_0xa8f0)return _0x4c2968=_0xa8f0[_0x59cc50(0x1a2)],typeof _0x1efd59['query']['nolimit']===_0x59cc50(0x17c)&&(_0x1d8163['limit']=qs[_0x59cc50(0x18e)](_0x1efd59[_0x59cc50(0x1a1)][_0x59cc50(0x18e)]),_0x1d8163[_0x59cc50(0x18c)]=qs[_0x59cc50(0x18c)](_0x1efd59['query'][_0x59cc50(0x18c)])),_0x185230[_0x59cc50(0x196)](_0x1d8163);})['then'](function(_0x2fb948){if(_0x2fb948)return _0x2fb948?{'count':_0x4c2968,'rows':_0x2fb948}:null;})[_0x2ee49e(0x175)](respondWithResult(_0x4e22e1,null))[_0x2ee49e(0x193)](handleError(_0x4e22e1,null));},exports['getTags']=function(_0x70daaa,_0x24b0d8){const _0x35250d=a310_0xb29355;let _0x172319={};const _0x16ece7={};let _0x15deda,_0x2d09a5;return db[_0x35250d(0x185)][_0x35250d(0x178)]({'where':{'id':_0x70daaa[_0x35250d(0x1a8)]['id']}})[_0x35250d(0x175)](handleEntityNotFound(_0x24b0d8,null))[_0x35250d(0x175)](function(_0x1ad6cc){const _0x39035f=_0x35250d;if(_0x1ad6cc)return _0x15deda=_0x1ad6cc,_0x16ece7[_0x39035f(0x1a3)]=_[_0x39035f(0x176)](db[_0x39035f(0x189)][_0x39035f(0x191)]),_0x16ece7['query']=_[_0x39035f(0x176)](_0x70daaa[_0x39035f(0x1a1)]),_0x16ece7[_0x39035f(0x179)]=_[_0x39035f(0x19f)](_0x16ece7[_0x39035f(0x1a3)],_0x16ece7[_0x39035f(0x1a1)]),_0x172319[_0x39035f(0x190)]=_[_0x39035f(0x19f)](_0x16ece7[_0x39035f(0x1a3)],qs[_0x39035f(0x177)](_0x70daaa[_0x39035f(0x1a1)][_0x39035f(0x177)])),_0x172319[_0x39035f(0x190)]=_0x172319[_0x39035f(0x190)][_0x39035f(0x1a2)]?_0x172319[_0x39035f(0x190)]:_0x16ece7[_0x39035f(0x1a3)],_0x172319[_0x39035f(0x17a)]=qs[_0x39035f(0x181)](_0x70daaa[_0x39035f(0x1a1)]['sort']),_0x172319[_0x39035f(0x194)]=qs[_0x39035f(0x179)](_['pick'](_0x70daaa['query'],_0x16ece7[_0x39035f(0x179)])),_0x70daaa[_0x39035f(0x1a1)][_0x39035f(0x184)]&&(_0x172319[_0x39035f(0x194)]=_[_0x39035f(0x1a7)](_0x172319['where'],{[Op['or']]:_[_0x39035f(0x187)](_0x172319[_0x39035f(0x190)],function(_0x440cc7){const _0x257306=_0x39035f,_0x467ec0={};return _0x467ec0[_0x440cc7]={[Op[_0x257306(0x17f)]]:'%'+_0x70daaa[_0x257306(0x1a1)]['filter']+'%'},_0x467ec0;})})),_0x172319=_[_0x39035f(0x1a7)]({},_0x172319,_0x70daaa[_0x39035f(0x19a)]),_0x15deda[_0x39035f(0x1a0)](_0x172319);})[_0x35250d(0x175)](function(_0x29e4a2){const _0x3c22aa=_0x35250d;if(_0x29e4a2)return _0x2d09a5=_0x29e4a2['length'],typeof _0x70daaa[_0x3c22aa(0x1a1)][_0x3c22aa(0x1ad)]===_0x3c22aa(0x17c)&&(_0x172319[_0x3c22aa(0x18e)]=qs[_0x3c22aa(0x18e)](_0x70daaa[_0x3c22aa(0x1a1)][_0x3c22aa(0x18e)]),_0x172319['offset']=qs['offset'](_0x70daaa[_0x3c22aa(0x1a1)][_0x3c22aa(0x18c)])),_0x15deda['getTags'](_0x172319);})[_0x35250d(0x175)](function(_0xeb33e3){if(_0xeb33e3)return _0xeb33e3?{'count':_0x2d09a5,'rows':_0xeb33e3}:null;})['then'](respondWithResult(_0x24b0d8,null))[_0x35250d(0x193)](handleError(_0x24b0d8,null));},exports[a310_0xb29355(0x18b)]=function(_0x469a30,_0x25777f){const _0x280190=a310_0xb29355;return _0x469a30[_0x280190(0x17d)]['id']&&delete _0x469a30[_0x280190(0x17d)]['id'],db[_0x280190(0x185)][_0x280190(0x178)]({'where':{'id':_0x469a30[_0x280190(0x1a8)]['id']}})['then'](handleEntityNotFound(_0x25777f,null))[_0x280190(0x175)](function(_0x14fcdd){const _0x36e802=_0x280190;if(_0x14fcdd)return _0x14fcdd[_0x36e802(0x18b)](_0x469a30['body']['ids']||[]);return null;})[_0x280190(0x175)](respondWithResult(_0x25777f,null))['catch'](handleError(_0x25777f,null));}; \ No newline at end of file diff --git a/server/api/intFreshdeskConfiguration/intFreshdeskConfiguration.model.js b/server/api/intFreshdeskConfiguration/intFreshdeskConfiguration.model.js index 21aad3d..82d73be 100644 --- a/server/api/intFreshdeskConfiguration/intFreshdeskConfiguration.model.js +++ b/server/api/intFreshdeskConfiguration/intFreshdeskConfiguration.model.js @@ -1 +1 @@ -const a261_0x50fa=['define','./intFreshdeskConfiguration.attributes','exports','int_freshdesk_configurations'];(function(_0x46a24c,_0x50fafb){const _0xf52b96=function(_0x339418){while(--_0x339418){_0x46a24c['push'](_0x46a24c['shift']());}};_0xf52b96(++_0x50fafb);}(a261_0x50fa,0xd8));const a261_0xf52b=function(_0x46a24c,_0x50fafb){_0x46a24c=_0x46a24c-0x0;let _0xf52b96=a261_0x50fa[_0x46a24c];return _0xf52b96;};const _0x51445a=a261_0xf52b;'use strict';const attributes=require(_0x51445a('0x1'));module[_0x51445a('0x2')]=function(_0x339418){const _0x57f196=_0x51445a,_0x47d7e1=_0x339418[_0x57f196('0x0')]('FreshdeskConfiguration',attributes,{'tableName':_0x57f196('0x3'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x47d7e1;}; \ No newline at end of file +const a311_0x428d=['init','exports','sequelize','./intFreshdeskConfiguration.attributes','FreshdeskConfiguration'];(function(_0x1d6942,_0x295616){const _0x428da8=function(_0x14fb93){while(--_0x14fb93){_0x1d6942['push'](_0x1d6942['shift']());}};_0x428da8(++_0x295616);}(a311_0x428d,0x113));const a311_0x14fb=function(_0x1d6942,_0x295616){_0x1d6942=_0x1d6942-0xfa;let _0x428da8=a311_0x428d[_0x1d6942];return _0x428da8;};const a311_0x5a7d4d=a311_0x14fb;'use strict';const {Model}=require(a311_0x5a7d4d(0xfc)),{attributes}=require(a311_0x5a7d4d(0xfd)),{options}=require('./intFreshdeskConfiguration.options');class FreshdeskConfiguration extends Model{}function init(_0x2dd609,_0x47264b){const _0x477f20=a311_0x5a7d4d,_0x477438=options(_0x2dd609),_0x246a3b=typeof _0x47264b==='function'?_0x47264b(_0x477438):_0x477438;return FreshdeskConfiguration[_0x477f20(0xfa)](attributes,_0x246a3b),FreshdeskConfiguration;}module[a311_0x5a7d4d(0xfb)][a311_0x5a7d4d(0xfe)]=FreshdeskConfiguration,module[a311_0x5a7d4d(0xfb)][a311_0x5a7d4d(0xfa)]=init; \ No newline at end of file diff --git a/server/api/intFreshdeskConfiguration/intFreshdeskConfiguration.options.js b/server/api/intFreshdeskConfiguration/intFreshdeskConfiguration.options.js new file mode 100644 index 0000000..681974c --- /dev/null +++ b/server/api/intFreshdeskConfiguration/intFreshdeskConfiguration.options.js @@ -0,0 +1 @@ +var a312_0x47bc=['options','exports'];(function(_0x2a81ef,_0x3c120e){var _0x47bc65=function(_0x24f2ee){while(--_0x24f2ee){_0x2a81ef['push'](_0x2a81ef['shift']());}};_0x47bc65(++_0x3c120e);}(a312_0x47bc,0xf2));var a312_0x24f2=function(_0x2a81ef,_0x3c120e){_0x2a81ef=_0x2a81ef-0x1c7;var _0x47bc65=a312_0x47bc[_0x2a81ef];return _0x47bc65;};var a312_0x42cb05=a312_0x24f2;function options(_0x592997){return{'sequelize':_0x592997,'tableName':'int_freshdesk_configurations','paranoid':![],'indexes':[],'timestamps':!![]};}module[a312_0x42cb05(0x1c8)][a312_0x42cb05(0x1c7)]=options; \ No newline at end of file diff --git a/server/api/intFreshdeskField/index.js b/server/api/intFreshdeskField/index.js index f988cb0..ab2d9cb 100644 --- a/server/api/intFreshdeskField/index.js +++ b/server/api/intFreshdeskField/index.js @@ -1 +1 @@ -const a262_0x53fc=['Router','create','/:id','destroy','index','express','isAuthenticated','show','../../components/auth/service','post','exports','get','update','./intFreshdeskField.controller','put'];(function(_0x1c2ab2,_0x53fc39){const _0x5545d3=function(_0x2b6a6b){while(--_0x2b6a6b){_0x1c2ab2['push'](_0x1c2ab2['shift']());}};_0x5545d3(++_0x53fc39);}(a262_0x53fc,0x188));const a262_0x5545=function(_0x1c2ab2,_0x53fc39){_0x1c2ab2=_0x1c2ab2-0x0;let _0x5545d3=a262_0x53fc[_0x1c2ab2];return _0x5545d3;};const _0x5ef4a5=a262_0x5545;'use strict';const express=require(_0x5ef4a5('0x3')),router=express[_0x5ef4a5('0xd')](),auth=require(_0x5ef4a5('0x6')),controller=require(_0x5ef4a5('0xb'));router[_0x5ef4a5('0x9')]('/',auth[_0x5ef4a5('0x4')](),controller[_0x5ef4a5('0x2')]),router['get']('/:id',auth['isAuthenticated'](),controller[_0x5ef4a5('0x5')]),router[_0x5ef4a5('0x7')]('/',auth['isAuthenticated'](),controller[_0x5ef4a5('0xe')]),router[_0x5ef4a5('0xc')](_0x5ef4a5('0x0'),auth[_0x5ef4a5('0x4')](),controller[_0x5ef4a5('0xa')]),router['delete'](_0x5ef4a5('0x0'),auth[_0x5ef4a5('0x4')](),controller[_0x5ef4a5('0x1')]),module[_0x5ef4a5('0x8')]=router; \ No newline at end of file +const a313_0x558d=['get','delete','show','post','Router','index','update','./intFreshdeskField.controller','put','create','exports','../../components/auth/service','express','isAuthenticated'];(function(_0xc5dfd1,_0x200800){const _0x558d59=function(_0x400b47){while(--_0x400b47){_0xc5dfd1['push'](_0xc5dfd1['shift']());}};_0x558d59(++_0x200800);}(a313_0x558d,0x148));const a313_0x400b=function(_0xc5dfd1,_0x200800){_0xc5dfd1=_0xc5dfd1-0x93;let _0x558d59=a313_0x558d[_0xc5dfd1];return _0x558d59;};const a313_0x1d8a1=a313_0x400b;'use strict';const express=require(a313_0x1d8a1(0x99)),router=express[a313_0x1d8a1(0x9f)](),auth=require(a313_0x1d8a1(0x98)),controller=require(a313_0x1d8a1(0x94));router['get']('/',auth[a313_0x1d8a1(0x9a)](),controller[a313_0x1d8a1(0xa0)]),router[a313_0x1d8a1(0x9b)]('/:id',auth['isAuthenticated'](),controller[a313_0x1d8a1(0x9d)]),router[a313_0x1d8a1(0x9e)]('/',auth['isAuthenticated'](),controller[a313_0x1d8a1(0x96)]),router[a313_0x1d8a1(0x95)]('/:id',auth[a313_0x1d8a1(0x9a)](),controller[a313_0x1d8a1(0x93)]),router[a313_0x1d8a1(0x9c)]('/:id',auth[a313_0x1d8a1(0x9a)](),controller['destroy']),module[a313_0x1d8a1(0x97)]=router; \ No newline at end of file diff --git a/server/api/intFreshdeskField/intFreshdeskField.attributes.js b/server/api/intFreshdeskField/intFreshdeskField.attributes.js index 4ceb17d..c0fae3c 100644 --- a/server/api/intFreshdeskField/intFreshdeskField.attributes.js +++ b/server/api/intFreshdeskField/intFreshdeskField.attributes.js @@ -1 +1 @@ -const a263_0x5adf=['string','variable','STRING','customVariable','ENUM','BOOLEAN'];(function(_0x340d48,_0x5adfc4){const _0x47c9d9=function(_0x4acd7f){while(--_0x4acd7f){_0x340d48['push'](_0x340d48['shift']());}};_0x47c9d9(++_0x5adfc4);}(a263_0x5adf,0xfc));const a263_0x47c9=function(_0x340d48,_0x5adfc4){_0x340d48=_0x340d48-0x0;let _0x47c9d9=a263_0x5adf[_0x340d48];return _0x47c9d9;};const _0xdb11bf=a263_0x47c9;'use strict';const Sequelize=require('sequelize');module['exports']={'type':{'type':Sequelize[_0xdb11bf('0x4')](_0xdb11bf('0x0'),'variable',_0xdb11bf('0x3'),'keyValue'),'defaultValue':_0xdb11bf('0x0')},'content':{'type':Sequelize[_0xdb11bf('0x2')]},'key':{'type':Sequelize[_0xdb11bf('0x2')]},'keyType':{'type':Sequelize[_0xdb11bf('0x4')](_0xdb11bf('0x0'),_0xdb11bf('0x1'),_0xdb11bf('0x3'))},'keyContent':{'type':Sequelize[_0xdb11bf('0x2')]},'idField':{'type':Sequelize[_0xdb11bf('0x2')]},'nameField':{'type':Sequelize['STRING']},'customField':{'type':Sequelize[_0xdb11bf('0x5')],'defaultValue':!![]},'variableName':{'type':Sequelize['STRING']}}; \ No newline at end of file +const a314_0x20c8=['keyValue','ENUM','string','BOOLEAN','STRING','exports','variable','customVariable','sequelize','attributes'];(function(_0x135e1d,_0x47ca80){const _0x20c8db=function(_0x6bd6ab){while(--_0x6bd6ab){_0x135e1d['push'](_0x135e1d['shift']());}};_0x20c8db(++_0x47ca80);}(a314_0x20c8,0xec));const a314_0x6bd6=function(_0x135e1d,_0x47ca80){_0x135e1d=_0x135e1d-0x90;let _0x20c8db=a314_0x20c8[_0x135e1d];return _0x20c8db;};const a314_0x4d2e3c=a314_0x6bd6;'use strict';const {DataTypes}=require(a314_0x4d2e3c(0x92)),attributes={'type':{'type':DataTypes[a314_0x4d2e3c(0x95)]('string',a314_0x4d2e3c(0x90),'customVariable',a314_0x4d2e3c(0x94)),'defaultValue':a314_0x4d2e3c(0x96)},'content':{'type':DataTypes[a314_0x4d2e3c(0x98)]},'key':{'type':DataTypes[a314_0x4d2e3c(0x98)]},'keyType':{'type':DataTypes['ENUM'](a314_0x4d2e3c(0x96),a314_0x4d2e3c(0x90),a314_0x4d2e3c(0x91))},'keyContent':{'type':DataTypes[a314_0x4d2e3c(0x98)]},'idField':{'type':DataTypes[a314_0x4d2e3c(0x98)]},'nameField':{'type':DataTypes['STRING']},'customField':{'type':DataTypes[a314_0x4d2e3c(0x97)],'defaultValue':!![]},'variableName':{'type':DataTypes[a314_0x4d2e3c(0x98)]}};module[a314_0x4d2e3c(0x99)][a314_0x4d2e3c(0x93)]=attributes; \ No newline at end of file diff --git a/server/api/intFreshdeskField/intFreshdeskField.controller.js b/server/api/intFreshdeskField/intFreshdeskField.controller.js index 18dad1c..cc8d7d7 100644 --- a/server/api/intFreshdeskField/intFreshdeskField.controller.js +++ b/server/api/intFreshdeskField/intFreshdeskField.controller.js @@ -1 +1 @@ -const a264_0x400f=['key','order','intersection','sequelize','../../components/parsers/qs','undefined','destroy','lodash','keys','sort','findAll','name','json','Content-Range','update','offset','status','limit','../../mysqldb','map','rawAttributes','include','filters','includeAll','sendStatus','api','VIRTUAL','attributes','options','create','set','error','filter','fields','type','show','count','where','merge','body','then','FreshdeskField','end','query','findOne','fieldName','length','model','rows','catch','params','pick'];(function(_0x13cbbb,_0x400f35){const _0x434042=function(_0x205787){while(--_0x205787){_0x13cbbb['push'](_0x13cbbb['shift']());}};_0x434042(++_0x400f35);}(a264_0x400f,0x141));const a264_0x4340=function(_0x13cbbb,_0x400f35){_0x13cbbb=_0x13cbbb-0x0;let _0x434042=a264_0x400f[_0x13cbbb];return _0x434042;};const _0x5e3fa1=a264_0x4340;'use strict';const _=require(_0x5e3fa1('0x32')),qs=require(_0x5e3fa1('0x2f')),logger=require('../../config/logger')(_0x5e3fa1('0x10')),db=require(_0x5e3fa1('0x9'))['db'],{Op}=require(_0x5e3fa1('0x2e'));function respondWithResult(_0x205787,_0x3cb002){return _0x3cb002=_0x3cb002||0xc8,function(_0x4b4d1f){const _0x15987a=a264_0x4340;if(_0x4b4d1f)return _0x205787[_0x15987a('0x7')](_0x3cb002)[_0x15987a('0x3')](_0x4b4d1f);};}function respondWithFilteredResult(_0x5bb008,_0x4266fc){return function(_0xacb975){const _0x3d8cda=a264_0x4340;if(_0xacb975){const _0x3f1d6d=_0xacb975['count'],_0x3c32f4=_0x4266fc[_0x3d8cda('0x6')];let _0x3b8ec1=_0x4266fc[_0x3d8cda('0x6')]+_0x4266fc[_0x3d8cda('0x8')],_0x13eb71;return _0x3b8ec1>=_0x3f1d6d?(_0x3b8ec1=_0x3f1d6d,_0x13eb71=0xc8):_0x13eb71=0xce,_0x5bb008[_0x3d8cda('0x7')](_0x13eb71),_0x5bb008[_0x3d8cda('0x15')](_0x3d8cda('0x4'),_0x3c32f4+'-'+_0x3b8ec1+'/'+_0x3f1d6d)[_0x3d8cda('0x3')](_0xacb975);}return null;};}function saveUpdates(_0x441f35){return function(_0x11135c){const _0x2df082=a264_0x4340;if(_0x11135c)return _0x11135c[_0x2df082('0x5')](_0x441f35)[_0x2df082('0x1f')](function(_0x414fcd){return _0x414fcd;});return null;};}function removeEntity(_0x10c259){return function(_0x128406){const _0xa90f71=a264_0x4340;if(_0x128406)return _0x128406['destroy']()[_0xa90f71('0x1f')](function(){const _0x31aeac=_0xa90f71;_0x10c259[_0x31aeac('0x7')](0xcc)[_0x31aeac('0x21')]();});};}function handleEntityNotFound(_0x549dda){return function(_0x401d9b){const _0xcb70a0=a264_0x4340;return!_0x401d9b&&_0x549dda[_0xcb70a0('0xf')](0x194),_0x401d9b;};}function handleError(_0x45a924,_0x403fd8){return _0x403fd8=_0x403fd8||0x1f4,function(_0x20dd60){const _0x4e9853=a264_0x4340;logger[_0x4e9853('0x16')](_0x20dd60['stack']),_0x20dd60[_0x4e9853('0x2')]&&delete _0x20dd60['name'],_0x45a924[_0x4e9853('0x7')](_0x403fd8)['send'](_0x20dd60);};}exports['index']=function(_0x27f4bf,_0x1b03a7){const _0x510850=_0x5e3fa1;let _0x5c5a97={};const _0x2daab7={},_0x4dcc08={'count':0x0,'rows':[]},_0x745946=_[_0x510850('0xa')](db[_0x510850('0x20')][_0x510850('0xb')],function(_0x556887){const _0x11376e=_0x510850;return{'name':_0x556887[_0x11376e('0x24')],'type':_0x556887[_0x11376e('0x19')][_0x11376e('0x2b')]};});_0x2daab7['model']=_[_0x510850('0xa')](_0x745946,_0x510850('0x2')),_0x2daab7[_0x510850('0x22')]=_[_0x510850('0x33')](_0x27f4bf[_0x510850('0x22')]),_0x2daab7['filters']=_[_0x510850('0x2d')](_0x2daab7[_0x510850('0x26')],_0x2daab7[_0x510850('0x22')]),_0x5c5a97[_0x510850('0x12')]=_[_0x510850('0x2d')](_0x2daab7[_0x510850('0x26')],qs[_0x510850('0x18')](_0x27f4bf[_0x510850('0x22')][_0x510850('0x18')])),_0x5c5a97[_0x510850('0x12')]=_0x5c5a97[_0x510850('0x12')][_0x510850('0x25')]?_0x5c5a97[_0x510850('0x12')]:_0x2daab7[_0x510850('0x26')];typeof _0x27f4bf[_0x510850('0x22')]['nolimit']===_0x510850('0x30')&&(_0x5c5a97[_0x510850('0x8')]=qs[_0x510850('0x8')](_0x27f4bf[_0x510850('0x22')][_0x510850('0x8')]),_0x5c5a97[_0x510850('0x6')]=qs[_0x510850('0x6')](_0x27f4bf[_0x510850('0x22')]['offset']));_0x5c5a97[_0x510850('0x2c')]=qs[_0x510850('0x0')](_0x27f4bf[_0x510850('0x22')][_0x510850('0x0')]),_0x5c5a97[_0x510850('0x1c')]=qs['filters'](_[_0x510850('0x2a')](_0x27f4bf[_0x510850('0x22')],_0x2daab7[_0x510850('0xd')]),_0x745946);_0x27f4bf['query'][_0x510850('0x17')]&&(_0x5c5a97['where']=_[_0x510850('0x1d')](_0x5c5a97['where'],{[Op['or']]:_[_0x510850('0xa')](_0x745946,function(_0x2d7b02){const _0x5e2b12=_0x510850;if(_0x2d7b02[_0x5e2b12('0x19')]!==_0x5e2b12('0x11')){const _0x635d49={};return _0x635d49[_0x2d7b02[_0x5e2b12('0x2')]]={[Op['like']]:'%'+_0x27f4bf[_0x5e2b12('0x22')][_0x5e2b12('0x17')]+'%'},_0x635d49;}})}));_0x5c5a97=_[_0x510850('0x1d')]({},_0x5c5a97,_0x27f4bf[_0x510850('0x13')]);const _0x2bb75f={'where':_0x5c5a97[_0x510850('0x1c')]};return db['FreshdeskField'][_0x510850('0x1b')](_0x2bb75f)[_0x510850('0x1f')](function(_0x3adfb6){const _0x402396=_0x510850;return _0x4dcc08['count']=_0x3adfb6,_0x27f4bf[_0x402396('0x22')]['includeAll']&&(_0x5c5a97[_0x402396('0xc')]=[{'all':!![]}]),db[_0x402396('0x20')][_0x402396('0x1')](_0x5c5a97);})[_0x510850('0x1f')](function(_0x78d410){const _0x12cdff=_0x510850;return _0x4dcc08[_0x12cdff('0x27')]=_0x78d410,_0x4dcc08;})[_0x510850('0x1f')](respondWithFilteredResult(_0x1b03a7,_0x5c5a97))[_0x510850('0x28')](handleError(_0x1b03a7,null));},exports[_0x5e3fa1('0x1a')]=function(_0x45add7,_0x16b2fb){const _0x4fe625=_0x5e3fa1;let _0xf85aee={'raw':!![],'where':{'id':_0x45add7['params']['id']}};const _0x5a68b2={};return _0x5a68b2[_0x4fe625('0x26')]=_[_0x4fe625('0x33')](db['FreshdeskField'][_0x4fe625('0xb')]),_0x5a68b2[_0x4fe625('0x22')]=_['keys'](_0x45add7['query']),_0x5a68b2['filters']=_[_0x4fe625('0x2d')](_0x5a68b2[_0x4fe625('0x26')],_0x5a68b2[_0x4fe625('0x22')]),_0xf85aee[_0x4fe625('0x12')]=_[_0x4fe625('0x2d')](_0x5a68b2['model'],qs['fields'](_0x45add7[_0x4fe625('0x22')]['fields'])),_0xf85aee[_0x4fe625('0x12')]=_0xf85aee['attributes'][_0x4fe625('0x25')]?_0xf85aee[_0x4fe625('0x12')]:_0x5a68b2['model'],_0x45add7[_0x4fe625('0x22')][_0x4fe625('0xe')]&&(_0xf85aee[_0x4fe625('0xc')]=[{'all':!![]}]),_0xf85aee=_[_0x4fe625('0x1d')]({},_0xf85aee,_0x45add7[_0x4fe625('0x13')]),db[_0x4fe625('0x20')][_0x4fe625('0x23')](_0xf85aee)[_0x4fe625('0x1f')](handleEntityNotFound(_0x16b2fb,null))[_0x4fe625('0x1f')](respondWithResult(_0x16b2fb,null))[_0x4fe625('0x28')](handleError(_0x16b2fb,null));},exports[_0x5e3fa1('0x14')]=function(_0x10dbbf,_0x125bf7){const _0x3f3dde=_0x5e3fa1;return db[_0x3f3dde('0x20')][_0x3f3dde('0x14')](_0x10dbbf[_0x3f3dde('0x1e')],{})[_0x3f3dde('0x1f')](respondWithResult(_0x125bf7,0xc9))[_0x3f3dde('0x28')](handleError(_0x125bf7,null));},exports['update']=function(_0x33ae99,_0x55c672){const _0xb78199=_0x5e3fa1;return _0x33ae99[_0xb78199('0x1e')]['id']&&delete _0x33ae99[_0xb78199('0x1e')]['id'],db[_0xb78199('0x20')]['findOne']({'where':{'id':_0x33ae99[_0xb78199('0x29')]['id']}})[_0xb78199('0x1f')](handleEntityNotFound(_0x55c672,null))['then'](saveUpdates(_0x33ae99[_0xb78199('0x1e')],null))[_0xb78199('0x1f')](respondWithResult(_0x55c672,null))[_0xb78199('0x28')](handleError(_0x55c672,null));},exports[_0x5e3fa1('0x31')]=function(_0x51ac1b,_0x7c0c13){const _0x477831=_0x5e3fa1;return db['FreshdeskField'][_0x477831('0x23')]({'where':{'id':_0x51ac1b[_0x477831('0x29')]['id']}})[_0x477831('0x1f')](handleEntityNotFound(_0x7c0c13,null))[_0x477831('0x1f')](removeEntity(_0x7c0c13,null))[_0x477831('0x28')](handleError(_0x7c0c13,null));}; \ No newline at end of file +const a315_0x9908=['create','status','filters','include','fields','../../mysqldb','json','model','catch','limit','show','then','update','send','includeAll','end','map','key','api','name','findAll','where','intersection','count','params','pick','undefined','filter','order','fieldName','set','rawAttributes','keys','query','stack','type','sort','index','FreshdeskField','destroy','../../config/logger','sendStatus','body','findOne','Content-Range','nolimit','merge','length','attributes','../../components/parsers/qs','offset'];(function(_0x15b77e,_0x55e051){const _0x9908d2=function(_0x1d5072){while(--_0x1d5072){_0x15b77e['push'](_0x15b77e['shift']());}};_0x9908d2(++_0x55e051);}(a315_0x9908,0x1a4));const a315_0x1d50=function(_0x15b77e,_0x55e051){_0x15b77e=_0x15b77e-0xeb;let _0x9908d2=a315_0x9908[_0x15b77e];return _0x9908d2;};const a315_0x5079f2=a315_0x1d50;'use strict';const _=require('lodash'),qs=require(a315_0x5079f2(0x110)),logger=require(a315_0x5079f2(0x107))(a315_0x5079f2(0xf1)),{db}=require(a315_0x5079f2(0x117)),{Op}=require('sequelize');function respondWithResult(_0x529d6c,_0x43333e){return _0x43333e=_0x43333e||0xc8,function(_0x1da680){const _0x32947d=a315_0x1d50;if(_0x1da680)return _0x529d6c[_0x32947d(0x113)](_0x43333e)[_0x32947d(0x118)](_0x1da680);};}function respondWithFilteredResult(_0x3bd960,_0x27722b){return function(_0x24dba2){const _0x27771f=a315_0x1d50;if(_0x24dba2){const _0x467198=_0x24dba2[_0x27771f(0xf6)],_0x3582d1=_0x27722b[_0x27771f(0x111)];let _0x524445=_0x27722b['offset']+_0x27722b[_0x27771f(0x11b)],_0x13eaab;return _0x524445>=_0x467198?(_0x524445=_0x467198,_0x13eaab=0xc8):_0x13eaab=0xce,_0x3bd960['status'](_0x13eaab),_0x3bd960[_0x27771f(0xfd)](_0x27771f(0x10b),_0x3582d1+'-'+_0x524445+'/'+_0x467198)[_0x27771f(0x118)](_0x24dba2);}return null;};}function saveUpdates(_0x59355b){return function(_0x481ce7){const _0x36f50c=a315_0x1d50;if(_0x481ce7)return _0x481ce7[_0x36f50c(0xeb)](_0x59355b)[_0x36f50c(0x11d)](function(_0x25468e){return _0x25468e;});return null;};}function removeEntity(_0x4cfc99){return function(_0xd9a4cc){const _0x5e41e0=a315_0x1d50;if(_0xd9a4cc)return _0xd9a4cc[_0x5e41e0(0x106)]()[_0x5e41e0(0x11d)](function(){const _0x221c71=_0x5e41e0;_0x4cfc99['status'](0xcc)[_0x221c71(0xee)]();});};}function handleEntityNotFound(_0xa75e62){return function(_0x14c990){const _0x4adf85=a315_0x1d50;return!_0x14c990&&_0xa75e62[_0x4adf85(0x108)](0x194),_0x14c990;};}function handleError(_0x2aa025,_0x5aa056){return _0x5aa056=_0x5aa056||0x1f4,function(_0x18c895){const _0x5d3568=a315_0x1d50;logger['error'](_0x18c895[_0x5d3568(0x101)]),_0x18c895[_0x5d3568(0xf2)]&&delete _0x18c895[_0x5d3568(0xf2)],_0x2aa025[_0x5d3568(0x113)](_0x5aa056)[_0x5d3568(0xec)](_0x18c895);};}exports[a315_0x5079f2(0x104)]=function(_0x366376,_0x5dedd8){const _0x128533=a315_0x5079f2;let _0x5d1865={};const _0x4d8e02={},_0x3782e5={'count':0x0,'rows':[]},_0x165843=_[_0x128533(0xef)](db[_0x128533(0x105)][_0x128533(0xfe)],function(_0x240ef4){const _0x263050=_0x128533;return{'name':_0x240ef4[_0x263050(0xfc)],'type':_0x240ef4['type'][_0x263050(0xf0)]};});_0x4d8e02[_0x128533(0x119)]=_['map'](_0x165843,'name'),_0x4d8e02[_0x128533(0x100)]=_[_0x128533(0xff)](_0x366376[_0x128533(0x100)]),_0x4d8e02[_0x128533(0x114)]=_[_0x128533(0xf5)](_0x4d8e02['model'],_0x4d8e02['query']),_0x5d1865[_0x128533(0x10f)]=_[_0x128533(0xf5)](_0x4d8e02[_0x128533(0x119)],qs['fields'](_0x366376[_0x128533(0x100)][_0x128533(0x116)])),_0x5d1865['attributes']=_0x5d1865['attributes'][_0x128533(0x10e)]?_0x5d1865[_0x128533(0x10f)]:_0x4d8e02[_0x128533(0x119)];typeof _0x366376[_0x128533(0x100)][_0x128533(0x10c)]===_0x128533(0xf9)&&(_0x5d1865[_0x128533(0x11b)]=qs[_0x128533(0x11b)](_0x366376[_0x128533(0x100)][_0x128533(0x11b)]),_0x5d1865['offset']=qs[_0x128533(0x111)](_0x366376[_0x128533(0x100)][_0x128533(0x111)]));_0x5d1865[_0x128533(0xfb)]=qs['sort'](_0x366376[_0x128533(0x100)][_0x128533(0x103)]),_0x5d1865['where']=qs[_0x128533(0x114)](_[_0x128533(0xf8)](_0x366376[_0x128533(0x100)],_0x4d8e02[_0x128533(0x114)]),_0x165843);_0x366376['query']['filter']&&(_0x5d1865[_0x128533(0xf4)]=_['merge'](_0x5d1865['where'],{[Op['or']]:_[_0x128533(0xef)](_0x165843,function(_0x555300){const _0x536174=_0x128533;if(_0x555300[_0x536174(0x102)]!=='VIRTUAL'){const _0x589630={};return _0x589630[_0x555300[_0x536174(0xf2)]]={[Op['like']]:'%'+_0x366376[_0x536174(0x100)][_0x536174(0xfa)]+'%'},_0x589630;}})}));_0x5d1865=_[_0x128533(0x10d)]({},_0x5d1865,_0x366376['options']);const _0x1eb804={'where':_0x5d1865[_0x128533(0xf4)]};return db[_0x128533(0x105)][_0x128533(0xf6)](_0x1eb804)['then'](function(_0x58f249){const _0x98dee6=_0x128533;return _0x3782e5[_0x98dee6(0xf6)]=_0x58f249,_0x366376[_0x98dee6(0x100)][_0x98dee6(0xed)]&&(_0x5d1865[_0x98dee6(0x115)]=[{'all':!![]}]),db[_0x98dee6(0x105)][_0x98dee6(0xf3)](_0x5d1865);})[_0x128533(0x11d)](function(_0x154bd2){return _0x3782e5['rows']=_0x154bd2,_0x3782e5;})[_0x128533(0x11d)](respondWithFilteredResult(_0x5dedd8,_0x5d1865))[_0x128533(0x11a)](handleError(_0x5dedd8,null));},exports[a315_0x5079f2(0x11c)]=function(_0x16aafc,_0x5a1a54){const _0x524f19=a315_0x5079f2;let _0x1bdd3c={'raw':!![],'where':{'id':_0x16aafc[_0x524f19(0xf7)]['id']}};const _0x2de603={};return _0x2de603[_0x524f19(0x119)]=_['keys'](db[_0x524f19(0x105)][_0x524f19(0xfe)]),_0x2de603['query']=_['keys'](_0x16aafc[_0x524f19(0x100)]),_0x2de603['filters']=_[_0x524f19(0xf5)](_0x2de603[_0x524f19(0x119)],_0x2de603[_0x524f19(0x100)]),_0x1bdd3c[_0x524f19(0x10f)]=_['intersection'](_0x2de603[_0x524f19(0x119)],qs['fields'](_0x16aafc[_0x524f19(0x100)]['fields'])),_0x1bdd3c[_0x524f19(0x10f)]=_0x1bdd3c[_0x524f19(0x10f)][_0x524f19(0x10e)]?_0x1bdd3c['attributes']:_0x2de603[_0x524f19(0x119)],_0x16aafc['query'][_0x524f19(0xed)]&&(_0x1bdd3c[_0x524f19(0x115)]=[{'all':!![]}]),_0x1bdd3c=_[_0x524f19(0x10d)]({},_0x1bdd3c,_0x16aafc['options']),db['FreshdeskField'][_0x524f19(0x10a)](_0x1bdd3c)['then'](handleEntityNotFound(_0x5a1a54,null))['then'](respondWithResult(_0x5a1a54,null))[_0x524f19(0x11a)](handleError(_0x5a1a54,null));},exports[a315_0x5079f2(0x112)]=function(_0x4a4e9f,_0x435ead){const _0x3c874e=a315_0x5079f2;return db[_0x3c874e(0x105)]['create'](_0x4a4e9f[_0x3c874e(0x109)],{})['then'](respondWithResult(_0x435ead,0xc9))[_0x3c874e(0x11a)](handleError(_0x435ead,null));},exports[a315_0x5079f2(0xeb)]=function(_0x3257e6,_0x52b357){const _0x506518=a315_0x5079f2;return _0x3257e6[_0x506518(0x109)]['id']&&delete _0x3257e6[_0x506518(0x109)]['id'],db['FreshdeskField']['findOne']({'where':{'id':_0x3257e6[_0x506518(0xf7)]['id']}})[_0x506518(0x11d)](handleEntityNotFound(_0x52b357,null))['then'](saveUpdates(_0x3257e6[_0x506518(0x109)],null))['then'](respondWithResult(_0x52b357,null))[_0x506518(0x11a)](handleError(_0x52b357,null));},exports[a315_0x5079f2(0x106)]=function(_0x3e08ae,_0x21fd3c){const _0x590fa1=a315_0x5079f2;return db[_0x590fa1(0x105)]['findOne']({'where':{'id':_0x3e08ae[_0x590fa1(0xf7)]['id']}})[_0x590fa1(0x11d)](handleEntityNotFound(_0x21fd3c,null))[_0x590fa1(0x11d)](removeEntity(_0x21fd3c,null))[_0x590fa1(0x11a)](handleError(_0x21fd3c,null));}; \ No newline at end of file diff --git a/server/api/intFreshdeskField/intFreshdeskField.model.js b/server/api/intFreshdeskField/intFreshdeskField.model.js index 208c89f..950d652 100644 --- a/server/api/intFreshdeskField/intFreshdeskField.model.js +++ b/server/api/intFreshdeskField/intFreshdeskField.model.js @@ -1 +1 @@ -const a265_0x4b6d=['./intFreshdeskField.attributes','int_freshdesk_fields','freshdesk_unique_index'];(function(_0x34c049,_0x4b6d01){const _0x42c550=function(_0x1b29ab){while(--_0x1b29ab){_0x34c049['push'](_0x34c049['shift']());}};_0x42c550(++_0x4b6d01);}(a265_0x4b6d,0xd0));const a265_0x42c5=function(_0x34c049,_0x4b6d01){_0x34c049=_0x34c049-0x0;let _0x42c550=a265_0x4b6d[_0x34c049];return _0x42c550;};const _0x4dbea7=a265_0x42c5;'use strict';const attributes=require(_0x4dbea7('0x2'));module['exports']=function(_0x1b29ab){const _0x329d98=_0x4dbea7,_0x1bf886=_0x1b29ab['define']('FreshdeskField',attributes,{'tableName':_0x329d98('0x0'),'paranoid':![],'indexes':[{'name':_0x329d98('0x1'),'fields':['idField','FieldId'],'unique':!![]}],'timestamps':!![]});return _0x1bf886;}; \ No newline at end of file +const a316_0x5df9=['./intFreshdeskField.options','FreshdeskField','sequelize','exports','./intFreshdeskField.attributes','init'];(function(_0x102117,_0x251f76){const _0x5df9a9=function(_0x5306a1){while(--_0x5306a1){_0x102117['push'](_0x102117['shift']());}};_0x5df9a9(++_0x251f76);}(a316_0x5df9,0x170));const a316_0x5306=function(_0x102117,_0x251f76){_0x102117=_0x102117-0x115;let _0x5df9a9=a316_0x5df9[_0x102117];return _0x5df9a9;};const a316_0x2ff80c=a316_0x5306;'use strict';const {Model}=require(a316_0x2ff80c(0x115)),{attributes}=require(a316_0x2ff80c(0x117)),{options}=require(a316_0x2ff80c(0x119));class FreshdeskField extends Model{}function init(_0x316165,_0x262999){const _0x2d73fd=a316_0x2ff80c,_0x371f1d=options(_0x316165),_0x54133a=typeof _0x262999==='function'?_0x262999(_0x371f1d):_0x371f1d;return FreshdeskField[_0x2d73fd(0x118)](attributes,_0x54133a),FreshdeskField;}module[a316_0x2ff80c(0x116)][a316_0x2ff80c(0x11a)]=FreshdeskField,module[a316_0x2ff80c(0x116)][a316_0x2ff80c(0x118)]=init; \ No newline at end of file diff --git a/server/api/intFreshdeskField/intFreshdeskField.options.js b/server/api/intFreshdeskField/intFreshdeskField.options.js new file mode 100644 index 0000000..781ff21 --- /dev/null +++ b/server/api/intFreshdeskField/intFreshdeskField.options.js @@ -0,0 +1 @@ +var a317_0x1e82=['int_freshdesk_fields','exports','FieldId','options','freshdesk_unique_index'];(function(_0x109118,_0x28bc7a){var _0x1e8237=function(_0x4bedeb){while(--_0x4bedeb){_0x109118['push'](_0x109118['shift']());}};_0x1e8237(++_0x28bc7a);}(a317_0x1e82,0x6e));var a317_0x4bed=function(_0x109118,_0x28bc7a){_0x109118=_0x109118-0xfc;var _0x1e8237=a317_0x1e82[_0x109118];return _0x1e8237;};var a317_0x102d45=a317_0x4bed;function options(_0x291c50){var _0x16605d=a317_0x4bed;return{'sequelize':_0x291c50,'tableName':_0x16605d(0xfc),'paranoid':![],'indexes':[{'name':_0x16605d(0x100),'fields':['idField',_0x16605d(0xfe)],'unique':!![]}],'timestamps':!![]};}module[a317_0x102d45(0xfd)][a317_0x102d45(0xff)]=options; \ No newline at end of file diff --git a/server/api/intFreshsalesAccount/index.js b/server/api/intFreshsalesAccount/index.js index 5c49375..ae11e1b 100644 --- a/server/api/intFreshsalesAccount/index.js +++ b/server/api/intFreshsalesAccount/index.js @@ -1 +1 @@ -const a266_0x5024=['destroy','delete','/:id','/:id/configurations','express','post','addConfiguration','get','create','index','./intFreshsalesAccount.controller','update','Router','isAuthenticated','getConfigurations'];(function(_0x1cbe71,_0x5024f2){const _0x3b7c1d=function(_0x231896){while(--_0x231896){_0x1cbe71['push'](_0x1cbe71['shift']());}};_0x3b7c1d(++_0x5024f2);}(a266_0x5024,0x1ad));const a266_0x3b7c=function(_0x1cbe71,_0x5024f2){_0x1cbe71=_0x1cbe71-0x0;let _0x3b7c1d=a266_0x5024[_0x1cbe71];return _0x3b7c1d;};const _0x3b2c81=a266_0x3b7c;'use strict';const express=require(_0x3b2c81('0xa')),router=express[_0x3b2c81('0x3')](),auth=require('../../components/auth/service'),controller=require(_0x3b2c81('0x1'));router[_0x3b2c81('0xd')]('/',auth[_0x3b2c81('0x4')](),controller[_0x3b2c81('0x0')]),router[_0x3b2c81('0xd')](_0x3b2c81('0x8'),auth['isAuthenticated'](),controller['show']),router['get'](_0x3b2c81('0x9'),auth[_0x3b2c81('0x4')](),controller[_0x3b2c81('0x5')]),router[_0x3b2c81('0xd')]('/:id/fields',auth['isAuthenticated'](),controller['getFields']),router[_0x3b2c81('0xb')]('/',auth[_0x3b2c81('0x4')](),controller[_0x3b2c81('0xe')]),router['post'](_0x3b2c81('0x9'),auth[_0x3b2c81('0x4')](),controller[_0x3b2c81('0xc')]),router['put'](_0x3b2c81('0x8'),auth[_0x3b2c81('0x4')](),controller[_0x3b2c81('0x2')]),router[_0x3b2c81('0x7')](_0x3b2c81('0x8'),auth[_0x3b2c81('0x4')](),controller[_0x3b2c81('0x6')]),module['exports']=router; \ No newline at end of file +const a318_0x19b9=['index','get','show','Router','express','create','isAuthenticated','put','/:id/configurations','getFields','destroy','getConfigurations','/:id','exports','post'];(function(_0x1f7947,_0x46718c){const _0x19b924=function(_0x32d0fa){while(--_0x32d0fa){_0x1f7947['push'](_0x1f7947['shift']());}};_0x19b924(++_0x46718c);}(a318_0x19b9,0x103));const a318_0x32d0=function(_0x1f7947,_0x46718c){_0x1f7947=_0x1f7947-0x1bd;let _0x19b924=a318_0x19b9[_0x1f7947];return _0x19b924;};const a318_0x2e3f56=a318_0x32d0;'use strict';const express=require(a318_0x2e3f56(0x1bd)),router=express[a318_0x2e3f56(0x1cb)](),auth=require('../../components/auth/service'),controller=require('./intFreshsalesAccount.controller');router[a318_0x2e3f56(0x1c9)]('/',auth[a318_0x2e3f56(0x1bf)](),controller[a318_0x2e3f56(0x1c8)]),router['get'](a318_0x2e3f56(0x1c5),auth[a318_0x2e3f56(0x1bf)](),controller[a318_0x2e3f56(0x1ca)]),router[a318_0x2e3f56(0x1c9)]('/:id/configurations',auth[a318_0x2e3f56(0x1bf)](),controller[a318_0x2e3f56(0x1c4)]),router[a318_0x2e3f56(0x1c9)]('/:id/fields',auth['isAuthenticated'](),controller[a318_0x2e3f56(0x1c2)]),router[a318_0x2e3f56(0x1c7)]('/',auth[a318_0x2e3f56(0x1bf)](),controller[a318_0x2e3f56(0x1be)]),router[a318_0x2e3f56(0x1c7)](a318_0x2e3f56(0x1c1),auth['isAuthenticated'](),controller['addConfiguration']),router[a318_0x2e3f56(0x1c0)](a318_0x2e3f56(0x1c5),auth[a318_0x2e3f56(0x1bf)](),controller['update']),router['delete']('/:id',auth[a318_0x2e3f56(0x1bf)](),controller[a318_0x2e3f56(0x1c3)]),module[a318_0x2e3f56(0x1c6)]=router; \ No newline at end of file diff --git a/server/api/intFreshsalesAccount/intFreshsalesAccount.attributes.js b/server/api/intFreshsalesAccount/intFreshsalesAccount.attributes.js index 272601a..2517938 100644 --- a/server/api/intFreshsalesAccount/intFreshsalesAccount.attributes.js +++ b/server/api/intFreshsalesAccount/intFreshsalesAccount.attributes.js @@ -1 +1 @@ -const a267_0x50c1=['exports','username','sequelize','remoteUri','STRING'];(function(_0x420f4e,_0x50c1cf){const _0x53b782=function(_0x188ba3){while(--_0x188ba3){_0x420f4e['push'](_0x420f4e['shift']());}};_0x53b782(++_0x50c1cf);}(a267_0x50c1,0x118));const a267_0x53b7=function(_0x420f4e,_0x50c1cf){_0x420f4e=_0x420f4e-0x0;let _0x53b782=a267_0x50c1[_0x420f4e];return _0x53b782;};const _0x484059=a267_0x53b7;'use strict';const Sequelize=require(_0x484059('0x2'));module[_0x484059('0x0')]={'name':{'type':Sequelize[_0x484059('0x4')]},'description':{'type':Sequelize[_0x484059('0x4')]},'username':{'type':Sequelize['STRING'],'unique':_0x484059('0x1')},'apiKey':{'type':Sequelize[_0x484059('0x4')]},'remoteUri':{'type':Sequelize[_0x484059('0x4')],'unique':_0x484059('0x3')},'serverUrl':{'type':Sequelize['STRING']}}; \ No newline at end of file +const a319_0x5b7d=['STRING','exports','attributes','sequelize','remoteUri'];(function(_0x51b758,_0x48c8d4){const _0x5b7db2=function(_0x2a7333){while(--_0x2a7333){_0x51b758['push'](_0x51b758['shift']());}};_0x5b7db2(++_0x48c8d4);}(a319_0x5b7d,0x104));const a319_0x2a73=function(_0x51b758,_0x48c8d4){_0x51b758=_0x51b758-0x17a;let _0x5b7db2=a319_0x5b7d[_0x51b758];return _0x5b7db2;};const a319_0x5ab4d7=a319_0x2a73;'use strict';const {DataTypes}=require(a319_0x5ab4d7(0x17d)),attributes={'name':{'type':DataTypes[a319_0x5ab4d7(0x17a)]},'description':{'type':DataTypes['STRING']},'username':{'type':DataTypes[a319_0x5ab4d7(0x17a)],'unique':'username'},'apiKey':{'type':DataTypes['STRING']},'remoteUri':{'type':DataTypes[a319_0x5ab4d7(0x17a)],'unique':a319_0x5ab4d7(0x17e)},'serverUrl':{'type':DataTypes[a319_0x5ab4d7(0x17a)]}};module[a319_0x5ab4d7(0x17b)][a319_0x5ab4d7(0x17c)]=attributes; \ No newline at end of file diff --git a/server/api/intFreshsalesAccount/intFreshsalesAccount.controller.js b/server/api/intFreshsalesAccount/intFreshsalesAccount.controller.js index ed6e8d8..2e49b1f 100644 --- a/server/api/intFreshsalesAccount/intFreshsalesAccount.controller.js +++ b/server/api/intFreshsalesAccount/intFreshsalesAccount.controller.js @@ -1 +1 @@ -const a268_0x4b04=['Subjects','json','lodash','type','format','merge','like','count','params','limit','create','addConfiguration','set','Requested\x20Resource\x20not\x20Found','send','model','getDescriptions','offset','getSubjects','keys','sendStatus','filter','FreshsalesConfiguration','stringify','Token\x20token=','remoteUri','Descriptions','../../config/logger','include','name','destroy','pick','FreshsalesField','then','key','fields','../../components/integrations/configuration','where','catch','AccountId','query','show','email','body','fieldName','statusCode','nolimit','status','username','rawAttributes','intersection','rows','filters','getFields,\x20%s,\x20%s,\x20%s','attributes','map','users','slice','Content-Range','order','apiKey','stack','getConfigurations','length','error','sort','update','undefined','getFields','includeAll','test','channel','FreshsalesAccount','findOne','../../mysqldb','substring'];(function(_0x177097,_0x4b04fa){const _0x2a7464=function(_0x5134e7){while(--_0x5134e7){_0x177097['push'](_0x177097['shift']());}};_0x2a7464(++_0x4b04fa);}(a268_0x4b04,0xab));const a268_0x2a74=function(_0x177097,_0x4b04fa){_0x177097=_0x177097-0x0;let _0x2a7464=a268_0x4b04[_0x177097];return _0x2a7464;};const _0x40206a=a268_0x2a74;'use strict';const rp=require('request-promise-native'),util=require('util'),_=require(_0x40206a('0x3b')),qs=require('../../components/parsers/qs'),logger=require(_0x40206a('0x8'))('api'),db=require(_0x40206a('0x37'))['db'],{Op}=require('sequelize'),integrations=require(_0x40206a('0x11'));function respondWithResult(_0x5134e7,_0x1a8930){return _0x1a8930=_0x1a8930||0xc8,function(_0x4ccac6){const _0x31f6ae=a268_0x2a74;if(_0x4ccac6)return _0x5134e7[_0x31f6ae('0x1c')](_0x1a8930)[_0x31f6ae('0x3a')](_0x4ccac6);};}function respondWithFilteredResult(_0x508748,_0x24f89e){return function(_0x8f961b){const _0x164b72=a268_0x2a74;if(_0x8f961b){const _0x20d990=_0x8f961b[_0x164b72('0x40')],_0x295843=_0x24f89e[_0x164b72('0x4a')];let _0x24ee58=_0x24f89e['offset']+_0x24f89e[_0x164b72('0x42')],_0x34eabd;return _0x24ee58>=_0x20d990?(_0x24ee58=_0x20d990,_0x34eabd=0xc8):_0x34eabd=0xce,_0x508748[_0x164b72('0x1c')](_0x34eabd),_0x508748[_0x164b72('0x45')](_0x164b72('0x27'),_0x295843+'-'+_0x24ee58+'/'+_0x20d990)[_0x164b72('0x3a')](_0x8f961b);}return null;};}function saveUpdates(_0x525adf){return function(_0x1b5c9b){const _0x43f13f=a268_0x2a74;if(_0x1b5c9b)return _0x1b5c9b[_0x43f13f('0x2f')](_0x525adf)[_0x43f13f('0xe')](function(_0x1d6cca){return _0x1d6cca;});return null;};}function removeEntity(_0x45ced0){return function(_0x2e34e9){const _0x251e58=a268_0x2a74;if(_0x2e34e9)return _0x2e34e9['destroy']()[_0x251e58('0xe')](function(){const _0x549688=_0x251e58;_0x45ced0[_0x549688('0x1c')](0xcc)['end']();});};}function handleEntityNotFound(_0x463f76){return function(_0xfe3d2a){const _0x104277=a268_0x2a74;return!_0xfe3d2a&&_0x463f76[_0x104277('0x1')](0x194),_0xfe3d2a;};}function handleError(_0x59312b,_0x2e6cfa){return _0x2e6cfa=_0x2e6cfa||0x1f4,function(_0x13423b){const _0x3e56f1=a268_0x2a74;logger[_0x3e56f1('0x2d')](_0x13423b[_0x3e56f1('0x2a')]),_0x13423b[_0x3e56f1('0xa')]&&delete _0x13423b[_0x3e56f1('0xa')],_0x59312b[_0x3e56f1('0x1c')](_0x2e6cfa)[_0x3e56f1('0x47')](_0x13423b);};}exports['index']=function(_0x286bcf,_0x2c464d){const _0x4bada4=_0x40206a;let _0x151b14={};const _0x4e6837={},_0x204262={'count':0x0,'rows':[]},_0x14e609=_['map'](db[_0x4bada4('0x35')][_0x4bada4('0x1e')],function(_0x45e8e7){const _0xcc5b5f=_0x4bada4;return{'name':_0x45e8e7[_0xcc5b5f('0x19')],'type':_0x45e8e7[_0xcc5b5f('0x3c')][_0xcc5b5f('0xf')]};});_0x4e6837['model']=_[_0x4bada4('0x24')](_0x14e609,_0x4bada4('0xa')),_0x4e6837[_0x4bada4('0x15')]=_[_0x4bada4('0x0')](_0x286bcf[_0x4bada4('0x15')]),_0x4e6837[_0x4bada4('0x21')]=_[_0x4bada4('0x1f')](_0x4e6837['model'],_0x4e6837[_0x4bada4('0x15')]),_0x151b14[_0x4bada4('0x23')]=_['intersection'](_0x4e6837[_0x4bada4('0x48')],qs[_0x4bada4('0x10')](_0x286bcf[_0x4bada4('0x15')]['fields'])),_0x151b14[_0x4bada4('0x23')]=_0x151b14['attributes'][_0x4bada4('0x2c')]?_0x151b14[_0x4bada4('0x23')]:_0x4e6837['model'];typeof _0x286bcf['query'][_0x4bada4('0x1b')]===_0x4bada4('0x30')&&(_0x151b14[_0x4bada4('0x42')]=qs[_0x4bada4('0x42')](_0x286bcf[_0x4bada4('0x15')]['limit']),_0x151b14[_0x4bada4('0x4a')]=qs[_0x4bada4('0x4a')](_0x286bcf[_0x4bada4('0x15')][_0x4bada4('0x4a')]));_0x151b14[_0x4bada4('0x28')]=qs[_0x4bada4('0x2e')](_0x286bcf[_0x4bada4('0x15')]['sort']),_0x151b14[_0x4bada4('0x12')]=qs[_0x4bada4('0x21')](_[_0x4bada4('0xc')](_0x286bcf['query'],_0x4e6837[_0x4bada4('0x21')]),_0x14e609);_0x286bcf[_0x4bada4('0x15')]['filter']&&(_0x151b14[_0x4bada4('0x12')]=_['merge'](_0x151b14[_0x4bada4('0x12')],{[Op['or']]:_['map'](_0x14e609,function(_0xe10df4){const _0xd1bf79=_0x4bada4;if(_0xe10df4[_0xd1bf79('0x3c')]!=='VIRTUAL'){const _0x317bd6={};return _0x317bd6[_0xe10df4[_0xd1bf79('0xa')]]={[Op['like']]:'%'+_0x286bcf[_0xd1bf79('0x15')][_0xd1bf79('0x2')]+'%'},_0x317bd6;}})}));_0x151b14=_[_0x4bada4('0x3e')]({},_0x151b14,_0x286bcf['options']);const _0x4f673f={'where':_0x151b14[_0x4bada4('0x12')]};return db[_0x4bada4('0x35')][_0x4bada4('0x40')](_0x4f673f)[_0x4bada4('0xe')](function(_0x5ddd66){const _0x4c0d4f=_0x4bada4;return _0x204262[_0x4c0d4f('0x40')]=_0x5ddd66,_0x286bcf[_0x4c0d4f('0x15')][_0x4c0d4f('0x32')]&&(_0x151b14[_0x4c0d4f('0x9')]=[{'all':!![]}]),db[_0x4c0d4f('0x35')]['findAll'](_0x151b14);})[_0x4bada4('0xe')](function(_0x429ffa){const _0xee2691=_0x4bada4;return _0x204262[_0xee2691('0x20')]=_0x429ffa,_0x204262;})[_0x4bada4('0xe')](respondWithFilteredResult(_0x2c464d,_0x151b14))[_0x4bada4('0x13')](handleError(_0x2c464d,null));},exports[_0x40206a('0x16')]=function(_0xf34bc5,_0x218fd1){const _0x3d7d58=_0x40206a;let _0x3a7d16={'raw':![],'where':{'id':_0xf34bc5['params']['id']}};const _0xdc75d4={};return _0xdc75d4[_0x3d7d58('0x48')]=_[_0x3d7d58('0x0')](db[_0x3d7d58('0x35')]['rawAttributes']),_0xdc75d4[_0x3d7d58('0x15')]=_[_0x3d7d58('0x0')](_0xf34bc5[_0x3d7d58('0x15')]),_0xdc75d4['filters']=_[_0x3d7d58('0x1f')](_0xdc75d4['model'],_0xdc75d4['query']),_0x3a7d16[_0x3d7d58('0x23')]=_[_0x3d7d58('0x1f')](_0xdc75d4[_0x3d7d58('0x48')],qs[_0x3d7d58('0x10')](_0xf34bc5[_0x3d7d58('0x15')][_0x3d7d58('0x10')])),_0x3a7d16['attributes']=_0x3a7d16[_0x3d7d58('0x23')][_0x3d7d58('0x2c')]?_0x3a7d16[_0x3d7d58('0x23')]:_0xdc75d4[_0x3d7d58('0x48')],_0xf34bc5[_0x3d7d58('0x15')]['includeAll']&&(_0x3a7d16[_0x3d7d58('0x9')]=[{'all':!![]}]),_0x3a7d16=_[_0x3d7d58('0x3e')]({},_0x3a7d16,_0xf34bc5['options']),db[_0x3d7d58('0x35')][_0x3d7d58('0x36')](_0x3a7d16)[_0x3d7d58('0xe')](handleEntityNotFound(_0x218fd1,null))['then'](respondWithResult(_0x218fd1,null))[_0x3d7d58('0x13')](handleError(_0x218fd1,null));},exports[_0x40206a('0x43')]=function(_0x5daf48,_0x4a9116){const _0x1bb0f2=_0x40206a;return db[_0x1bb0f2('0x35')][_0x1bb0f2('0x43')](_0x5daf48[_0x1bb0f2('0x18')],{})[_0x1bb0f2('0xe')](respondWithResult(_0x4a9116,0xc9))[_0x1bb0f2('0x13')](handleError(_0x4a9116,null));},exports['update']=function(_0x41ef51,_0x593199){const _0x1e387c=_0x40206a;return _0x41ef51['body']['id']&&delete _0x41ef51[_0x1e387c('0x18')]['id'],db[_0x1e387c('0x35')][_0x1e387c('0x36')]({'where':{'id':_0x41ef51['params']['id']}})[_0x1e387c('0xe')](handleEntityNotFound(_0x593199,null))['then'](saveUpdates(_0x41ef51[_0x1e387c('0x18')],null))['then'](respondWithResult(_0x593199,null))[_0x1e387c('0x13')](handleError(_0x593199,null));},exports[_0x40206a('0xb')]=function(_0x5c4e94,_0x2bc32e){const _0x1f12cc=_0x40206a;return db[_0x1f12cc('0x35')][_0x1f12cc('0x36')]({'where':{'id':_0x5c4e94[_0x1f12cc('0x41')]['id']}})[_0x1f12cc('0xe')](handleEntityNotFound(_0x2bc32e,null))[_0x1f12cc('0xe')](removeEntity(_0x2bc32e,null))[_0x1f12cc('0x13')](handleError(_0x2bc32e,null));},exports[_0x40206a('0x2b')]=function(_0x44aa03,_0x5735c9){const _0x3037af=_0x40206a;let _0x5148bd={};const _0xe0829a={};let _0x294f75,_0x13c2f8;return db[_0x3037af('0x35')][_0x3037af('0x36')]({'where':{'id':_0x44aa03[_0x3037af('0x41')]['id']}})['then'](handleEntityNotFound(_0x5735c9,null))[_0x3037af('0xe')](function(_0x164ca5){const _0x201e74=_0x3037af;if(_0x164ca5)return _0x294f75=_0x164ca5,_0xe0829a[_0x201e74('0x48')]=_[_0x201e74('0x0')](db['FreshsalesConfiguration'][_0x201e74('0x1e')]),_0xe0829a[_0x201e74('0x15')]=_['keys'](_0x44aa03[_0x201e74('0x15')]),_0xe0829a['filters']=_[_0x201e74('0x1f')](_0xe0829a[_0x201e74('0x48')],_0xe0829a[_0x201e74('0x15')]),_0x5148bd['attributes']=_['intersection'](_0xe0829a['model'],qs[_0x201e74('0x10')](_0x44aa03[_0x201e74('0x15')][_0x201e74('0x10')])),_0x5148bd[_0x201e74('0x23')]=_0x5148bd[_0x201e74('0x23')][_0x201e74('0x2c')]?_0x5148bd[_0x201e74('0x23')]:_0xe0829a[_0x201e74('0x48')],_0x5148bd['order']=qs[_0x201e74('0x2e')](_0x44aa03['query'][_0x201e74('0x2e')]),_0x5148bd[_0x201e74('0x12')]=qs[_0x201e74('0x21')](_[_0x201e74('0xc')](_0x44aa03[_0x201e74('0x15')],_0xe0829a['filters'])),_0x44aa03['query'][_0x201e74('0x2')]&&(_0x5148bd[_0x201e74('0x12')]=_[_0x201e74('0x3e')](_0x5148bd['where'],{[Op['or']]:_[_0x201e74('0x24')](_0x5148bd[_0x201e74('0x23')],function(_0xcc9e72){const _0x93ee12=_0x201e74,_0x2f1df1={};return _0x2f1df1[_0xcc9e72]={[Op[_0x93ee12('0x3f')]]:'%'+_0x44aa03[_0x93ee12('0x15')][_0x93ee12('0x2')]+'%'},_0x2f1df1;})})),_0x5148bd=_['merge']({},_0x5148bd,_0x44aa03['options']),_0x294f75[_0x201e74('0x2b')](_0x5148bd);})[_0x3037af('0xe')](function(_0x1be664){const _0x1497e=_0x3037af;if(_0x1be664)return _0x13c2f8=_0x1be664[_0x1497e('0x2c')],typeof _0x44aa03[_0x1497e('0x15')][_0x1497e('0x1b')]===_0x1497e('0x30')&&(_0x5148bd[_0x1497e('0x42')]=qs['limit'](_0x44aa03['query'][_0x1497e('0x42')]),_0x5148bd[_0x1497e('0x4a')]=qs[_0x1497e('0x4a')](_0x44aa03[_0x1497e('0x15')][_0x1497e('0x4a')])),_0x294f75[_0x1497e('0x2b')](_0x5148bd);})[_0x3037af('0xe')](function(_0x2f8d4b){if(_0x2f8d4b)return _0x2f8d4b?{'count':_0x13c2f8,'rows':_0x2f8d4b}:null;})[_0x3037af('0xe')](respondWithResult(_0x5735c9,null))[_0x3037af('0x13')](handleError(_0x5735c9,null));},exports[_0x40206a('0x44')]=function(_0x5a3123,_0x117ef2){const _0x882012=_0x40206a;return _0x5a3123[_0x882012('0x18')]['id']&&delete _0x5a3123['body']['id'],db['FreshsalesAccount'][_0x882012('0x36')]({'where':{'id':_0x5a3123[_0x882012('0x41')]['id']}})['then'](handleEntityNotFound(_0x117ef2,null))[_0x882012('0xe')](function(_0x37338b){const _0x45823f=_0x882012;if(_0x37338b)return _0x5a3123[_0x45823f('0x18')][_0x45823f('0x14')]=_0x37338b['id'],_0x5a3123[_0x45823f('0x18')][_0x45823f('0x39')]=integrations[_0x45823f('0x4b')](_0x5a3123[_0x45823f('0x18')][_0x45823f('0x34')],_0x5a3123[_0x45823f('0x18')][_0x45823f('0x3c')]),_0x5a3123[_0x45823f('0x18')][_0x45823f('0x7')]=integrations[_0x45823f('0x49')](_0x5a3123[_0x45823f('0x18')]['channel'],_0x5a3123[_0x45823f('0x18')][_0x45823f('0x3c')]),db[_0x45823f('0x3')][_0x45823f('0x43')](_0x5a3123[_0x45823f('0x18')],{'include':[{'model':db[_0x45823f('0xd')],'as':_0x45823f('0x39')},{'model':db[_0x45823f('0xd')],'as':'Descriptions'}]});return null;})['then'](respondWithResult(_0x117ef2,null))[_0x882012('0x13')](handleError(_0x117ef2,null));},exports[_0x40206a('0x31')]=function(_0x3a9e70,_0x2cf4a0){const _0x3cbdd5=_0x40206a;let _0xcd02c8='',_0x432942='';return db['FreshsalesAccount'][_0x3cbdd5('0x36')]({'where':{'id':_0x3a9e70[_0x3cbdd5('0x41')]['id']},'attributes':['id','username',_0x3cbdd5('0x6'),_0x3cbdd5('0x29')]})[_0x3cbdd5('0xe')](handleEntityNotFound(_0x2cf4a0,null))[_0x3cbdd5('0xe')](function(_0x253c35){const _0x301ad5=_0x3cbdd5;if(_0x253c35){_0x432942=_0x253c35[_0x301ad5('0x1d')],_0xcd02c8=_0x253c35[_0x301ad5('0x6')];const _0x81d695=_0x253c35[_0x301ad5('0x6')][_0x301ad5('0x26')](-0x1);return _0x81d695==='/'&&(_0xcd02c8=_0xcd02c8[_0x301ad5('0x38')](0x0,_0xcd02c8['lastIndexOf'](_0x81d695))),rp({'method':'GET','uri':util[_0x301ad5('0x3d')]('%s%s',_0xcd02c8,'/api/selector/owners'),'headers':{'Authorization':_0x301ad5('0x5')+_0x253c35['apiKey']},'json':!![]});}})[_0x3cbdd5('0xe')](function(_0x3d6e2d){const _0x2725d3=_0x3cbdd5;if(_0x3d6e2d){const _0x45f077=_0x3d6e2d[_0x2725d3('0x25')];let _0x5a8be1=![],_0x350c10=null;for(_0x350c10=0x0;_0x350c10<_0x45f077[_0x2725d3('0x2c')];_0x350c10++){_0x45f077[_0x350c10][_0x2725d3('0x17')]===_0x432942&&(_0x5a8be1=!![]);}if(_0x5a8be1)return!![];else throw new Error({'statusCode':0x194,'message':_0x2725d3('0x46')});}})[_0x3cbdd5('0xe')](respondWithResult(_0x2cf4a0,null))[_0x3cbdd5('0x13')](function(_0x53c6b8){const _0x7772b5=_0x3cbdd5;let _0x8c58c=_0x3a9e70[_0x7772b5('0x15')][_0x7772b5('0x33')]?0x1f4:_0x53c6b8[_0x7772b5('0x1a')]||0x1f4;logger['error'](_0x7772b5('0x22'),'getFields',_0x8c58c,JSON[_0x7772b5('0x4')](_0x53c6b8)),delete _0x53c6b8[_0x7772b5('0xa')],_0x8c58c===0x191&&(_0x8c58c=0x190),_0x2cf4a0[_0x7772b5('0x1c')](_0x8c58c)[_0x7772b5('0x47')](_0x3a9e70[_0x7772b5('0x15')][_0x7772b5('0x33')]?{'message':'Wrong\x20credentials','statusCode':_0x53c6b8[_0x7772b5('0x1a')]}:_0x53c6b8);});}; \ No newline at end of file +const a320_0x1f3b=['lodash','intersection','findOne','filter','Subjects','nolimit','../../config/logger','slice','sendStatus','GET','getDescriptions','filters','send','../../mysqldb','Token\x20token=','Wrong\x20credentials','AccountId','Descriptions','FreshsalesField','status','VIRTUAL','query','type','/api/selector/owners','end','model','findAll','keys','json','map','pick','fields','name','catch','getFields,\x20%s,\x20%s,\x20%s','include','apiKey','username','create','count','channel','body','update','getConfigurations','options','show','then','where','FreshsalesConfiguration','getFields','like','addConfiguration','FreshsalesAccount','destroy','remoteUri','util','offset','undefined','request-promise-native','fieldName','format','../../components/integrations/configuration','merge','length','limit','users','rawAttributes','params','rows','index','sequelize','includeAll','sort','api','test','lastIndexOf','../../components/parsers/qs','attributes','statusCode','order','email','set','error'];(function(_0x4724ff,_0x309e1d){const _0x1f3bce=function(_0x4e1142){while(--_0x4e1142){_0x4724ff['push'](_0x4724ff['shift']());}};_0x1f3bce(++_0x309e1d);}(a320_0x1f3b,0x7a));const a320_0x4e11=function(_0x4724ff,_0x309e1d){_0x4724ff=_0x4724ff-0x16c;let _0x1f3bce=a320_0x1f3b[_0x4724ff];return _0x1f3bce;};const a320_0x52eecb=a320_0x4e11;'use strict';const rp=require(a320_0x52eecb(0x17f)),util=require(a320_0x52eecb(0x17c)),_=require(a320_0x52eecb(0x198)),qs=require(a320_0x52eecb(0x191)),logger=require(a320_0x52eecb(0x19e))(a320_0x52eecb(0x18e)),{db}=require(a320_0x52eecb(0x1a5)),{Op}=require(a320_0x52eecb(0x18b)),integrations=require(a320_0x52eecb(0x182));function respondWithResult(_0x45c4b2,_0x3002ad){return _0x3002ad=_0x3002ad||0xc8,function(_0x2793e7){const _0x123631=a320_0x4e11;if(_0x2793e7)return _0x45c4b2[_0x123631(0x1ab)](_0x3002ad)[_0x123631(0x1b4)](_0x2793e7);};}function respondWithFilteredResult(_0x5404dc,_0x3db413){return function(_0x4697b4){const _0x28d8d7=a320_0x4e11;if(_0x4697b4){const _0x4e2dd8=_0x4697b4[_0x28d8d7(0x16c)],_0x187312=_0x3db413[_0x28d8d7(0x17d)];let _0x42ac7f=_0x3db413[_0x28d8d7(0x17d)]+_0x3db413[_0x28d8d7(0x185)],_0x2d46bd;return _0x42ac7f>=_0x4e2dd8?(_0x42ac7f=_0x4e2dd8,_0x2d46bd=0xc8):_0x2d46bd=0xce,_0x5404dc['status'](_0x2d46bd),_0x5404dc[_0x28d8d7(0x196)]('Content-Range',_0x187312+'-'+_0x42ac7f+'/'+_0x4e2dd8)[_0x28d8d7(0x1b4)](_0x4697b4);}return null;};}function saveUpdates(_0x1be49c){return function(_0x2e05a5){const _0x5c62bf=a320_0x4e11;if(_0x2e05a5)return _0x2e05a5[_0x5c62bf(0x16f)](_0x1be49c)[_0x5c62bf(0x173)](function(_0x104fbd){return _0x104fbd;});return null;};}function removeEntity(_0x41d3c0){return function(_0x39259a){const _0x42a45e=a320_0x4e11;if(_0x39259a)return _0x39259a[_0x42a45e(0x17a)]()[_0x42a45e(0x173)](function(){const _0xec2935=_0x42a45e;_0x41d3c0['status'](0xcc)[_0xec2935(0x1b0)]();});};}function handleEntityNotFound(_0x1d560f){return function(_0x2af49a){const _0x3c1288=a320_0x4e11;return!_0x2af49a&&_0x1d560f[_0x3c1288(0x1a0)](0x194),_0x2af49a;};}function handleError(_0x447451,_0x4db9d9){return _0x4db9d9=_0x4db9d9||0x1f4,function(_0x45eb70){const _0x411d31=a320_0x4e11;logger[_0x411d31(0x197)](_0x45eb70['stack']),_0x45eb70['name']&&delete _0x45eb70[_0x411d31(0x1b8)],_0x447451[_0x411d31(0x1ab)](_0x4db9d9)['send'](_0x45eb70);};}exports[a320_0x52eecb(0x18a)]=function(_0x5d4b3d,_0x91a5c0){const _0x88eada=a320_0x52eecb;let _0xe2bc47={};const _0x4563ef={},_0x575abb={'count':0x0,'rows':[]},_0x274a17=_[_0x88eada(0x1b5)](db['FreshsalesAccount'][_0x88eada(0x187)],function(_0x1d99e4){const _0x1a5230=_0x88eada;return{'name':_0x1d99e4[_0x1a5230(0x180)],'type':_0x1d99e4[_0x1a5230(0x1ae)]['key']};});_0x4563ef[_0x88eada(0x1b1)]=_[_0x88eada(0x1b5)](_0x274a17,_0x88eada(0x1b8)),_0x4563ef[_0x88eada(0x1ad)]=_[_0x88eada(0x1b3)](_0x5d4b3d[_0x88eada(0x1ad)]),_0x4563ef[_0x88eada(0x1a3)]=_[_0x88eada(0x199)](_0x4563ef['model'],_0x4563ef['query']),_0xe2bc47[_0x88eada(0x192)]=_[_0x88eada(0x199)](_0x4563ef['model'],qs[_0x88eada(0x1b7)](_0x5d4b3d[_0x88eada(0x1ad)][_0x88eada(0x1b7)])),_0xe2bc47[_0x88eada(0x192)]=_0xe2bc47[_0x88eada(0x192)][_0x88eada(0x184)]?_0xe2bc47['attributes']:_0x4563ef[_0x88eada(0x1b1)];typeof _0x5d4b3d['query'][_0x88eada(0x19d)]===_0x88eada(0x17e)&&(_0xe2bc47[_0x88eada(0x185)]=qs[_0x88eada(0x185)](_0x5d4b3d[_0x88eada(0x1ad)][_0x88eada(0x185)]),_0xe2bc47[_0x88eada(0x17d)]=qs['offset'](_0x5d4b3d[_0x88eada(0x1ad)][_0x88eada(0x17d)]));_0xe2bc47[_0x88eada(0x194)]=qs[_0x88eada(0x18d)](_0x5d4b3d['query'][_0x88eada(0x18d)]),_0xe2bc47['where']=qs[_0x88eada(0x1a3)](_['pick'](_0x5d4b3d[_0x88eada(0x1ad)],_0x4563ef[_0x88eada(0x1a3)]),_0x274a17);_0x5d4b3d['query'][_0x88eada(0x19b)]&&(_0xe2bc47[_0x88eada(0x174)]=_[_0x88eada(0x183)](_0xe2bc47[_0x88eada(0x174)],{[Op['or']]:_[_0x88eada(0x1b5)](_0x274a17,function(_0x2a3471){const _0x5c7571=_0x88eada;if(_0x2a3471[_0x5c7571(0x1ae)]!==_0x5c7571(0x1ac)){const _0x318a2c={};return _0x318a2c[_0x2a3471[_0x5c7571(0x1b8)]]={[Op['like']]:'%'+_0x5d4b3d[_0x5c7571(0x1ad)][_0x5c7571(0x19b)]+'%'},_0x318a2c;}})}));_0xe2bc47=_[_0x88eada(0x183)]({},_0xe2bc47,_0x5d4b3d[_0x88eada(0x171)]);const _0x2179ed={'where':_0xe2bc47[_0x88eada(0x174)]};return db['FreshsalesAccount'][_0x88eada(0x16c)](_0x2179ed)[_0x88eada(0x173)](function(_0x106547){const _0x46f6cb=_0x88eada;return _0x575abb[_0x46f6cb(0x16c)]=_0x106547,_0x5d4b3d[_0x46f6cb(0x1ad)][_0x46f6cb(0x18c)]&&(_0xe2bc47[_0x46f6cb(0x1bb)]=[{'all':!![]}]),db[_0x46f6cb(0x179)][_0x46f6cb(0x1b2)](_0xe2bc47);})[_0x88eada(0x173)](function(_0x4c63fc){const _0x3a45e6=_0x88eada;return _0x575abb[_0x3a45e6(0x189)]=_0x4c63fc,_0x575abb;})['then'](respondWithFilteredResult(_0x91a5c0,_0xe2bc47))[_0x88eada(0x1b9)](handleError(_0x91a5c0,null));},exports[a320_0x52eecb(0x172)]=function(_0x3fdd38,_0x505a51){const _0x2c3cd4=a320_0x52eecb;let _0x450e4e={'raw':![],'where':{'id':_0x3fdd38['params']['id']}};const _0x5ab5d0={};return _0x5ab5d0[_0x2c3cd4(0x1b1)]=_[_0x2c3cd4(0x1b3)](db[_0x2c3cd4(0x179)][_0x2c3cd4(0x187)]),_0x5ab5d0['query']=_['keys'](_0x3fdd38[_0x2c3cd4(0x1ad)]),_0x5ab5d0['filters']=_['intersection'](_0x5ab5d0[_0x2c3cd4(0x1b1)],_0x5ab5d0[_0x2c3cd4(0x1ad)]),_0x450e4e['attributes']=_['intersection'](_0x5ab5d0[_0x2c3cd4(0x1b1)],qs[_0x2c3cd4(0x1b7)](_0x3fdd38[_0x2c3cd4(0x1ad)][_0x2c3cd4(0x1b7)])),_0x450e4e[_0x2c3cd4(0x192)]=_0x450e4e['attributes'][_0x2c3cd4(0x184)]?_0x450e4e[_0x2c3cd4(0x192)]:_0x5ab5d0[_0x2c3cd4(0x1b1)],_0x3fdd38[_0x2c3cd4(0x1ad)][_0x2c3cd4(0x18c)]&&(_0x450e4e['include']=[{'all':!![]}]),_0x450e4e=_[_0x2c3cd4(0x183)]({},_0x450e4e,_0x3fdd38['options']),db[_0x2c3cd4(0x179)][_0x2c3cd4(0x19a)](_0x450e4e)['then'](handleEntityNotFound(_0x505a51,null))['then'](respondWithResult(_0x505a51,null))[_0x2c3cd4(0x1b9)](handleError(_0x505a51,null));},exports[a320_0x52eecb(0x1be)]=function(_0x45a7e7,_0x103c40){const _0x126e17=a320_0x52eecb;return db[_0x126e17(0x179)][_0x126e17(0x1be)](_0x45a7e7[_0x126e17(0x16e)],{})[_0x126e17(0x173)](respondWithResult(_0x103c40,0xc9))[_0x126e17(0x1b9)](handleError(_0x103c40,null));},exports[a320_0x52eecb(0x16f)]=function(_0x2e81c9,_0x348273){const _0x108d1=a320_0x52eecb;return _0x2e81c9['body']['id']&&delete _0x2e81c9['body']['id'],db[_0x108d1(0x179)][_0x108d1(0x19a)]({'where':{'id':_0x2e81c9['params']['id']}})[_0x108d1(0x173)](handleEntityNotFound(_0x348273,null))[_0x108d1(0x173)](saveUpdates(_0x2e81c9[_0x108d1(0x16e)],null))[_0x108d1(0x173)](respondWithResult(_0x348273,null))['catch'](handleError(_0x348273,null));},exports[a320_0x52eecb(0x17a)]=function(_0x597e11,_0x1802a5){const _0x246a32=a320_0x52eecb;return db['FreshsalesAccount'][_0x246a32(0x19a)]({'where':{'id':_0x597e11[_0x246a32(0x188)]['id']}})[_0x246a32(0x173)](handleEntityNotFound(_0x1802a5,null))['then'](removeEntity(_0x1802a5,null))[_0x246a32(0x1b9)](handleError(_0x1802a5,null));},exports[a320_0x52eecb(0x170)]=function(_0x16a259,_0x492498){const _0x5e9ba7=a320_0x52eecb;let _0x2f8e74={};const _0x219f5b={};let _0x3ca742,_0x2d4de7;return db[_0x5e9ba7(0x179)][_0x5e9ba7(0x19a)]({'where':{'id':_0x16a259[_0x5e9ba7(0x188)]['id']}})[_0x5e9ba7(0x173)](handleEntityNotFound(_0x492498,null))[_0x5e9ba7(0x173)](function(_0x17a5b0){const _0x4bb7fd=_0x5e9ba7;if(_0x17a5b0)return _0x3ca742=_0x17a5b0,_0x219f5b['model']=_[_0x4bb7fd(0x1b3)](db[_0x4bb7fd(0x175)][_0x4bb7fd(0x187)]),_0x219f5b[_0x4bb7fd(0x1ad)]=_[_0x4bb7fd(0x1b3)](_0x16a259[_0x4bb7fd(0x1ad)]),_0x219f5b[_0x4bb7fd(0x1a3)]=_['intersection'](_0x219f5b['model'],_0x219f5b['query']),_0x2f8e74[_0x4bb7fd(0x192)]=_[_0x4bb7fd(0x199)](_0x219f5b[_0x4bb7fd(0x1b1)],qs[_0x4bb7fd(0x1b7)](_0x16a259[_0x4bb7fd(0x1ad)]['fields'])),_0x2f8e74['attributes']=_0x2f8e74[_0x4bb7fd(0x192)][_0x4bb7fd(0x184)]?_0x2f8e74[_0x4bb7fd(0x192)]:_0x219f5b['model'],_0x2f8e74[_0x4bb7fd(0x194)]=qs[_0x4bb7fd(0x18d)](_0x16a259['query'][_0x4bb7fd(0x18d)]),_0x2f8e74[_0x4bb7fd(0x174)]=qs[_0x4bb7fd(0x1a3)](_[_0x4bb7fd(0x1b6)](_0x16a259['query'],_0x219f5b[_0x4bb7fd(0x1a3)])),_0x16a259[_0x4bb7fd(0x1ad)][_0x4bb7fd(0x19b)]&&(_0x2f8e74[_0x4bb7fd(0x174)]=_[_0x4bb7fd(0x183)](_0x2f8e74['where'],{[Op['or']]:_[_0x4bb7fd(0x1b5)](_0x2f8e74[_0x4bb7fd(0x192)],function(_0x9ba9fa){const _0x3675a6=_0x4bb7fd,_0x51b15c={};return _0x51b15c[_0x9ba9fa]={[Op[_0x3675a6(0x177)]]:'%'+_0x16a259[_0x3675a6(0x1ad)][_0x3675a6(0x19b)]+'%'},_0x51b15c;})})),_0x2f8e74=_['merge']({},_0x2f8e74,_0x16a259[_0x4bb7fd(0x171)]),_0x3ca742['getConfigurations'](_0x2f8e74);})['then'](function(_0x3c4fe0){const _0x4cac97=_0x5e9ba7;if(_0x3c4fe0)return _0x2d4de7=_0x3c4fe0[_0x4cac97(0x184)],typeof _0x16a259[_0x4cac97(0x1ad)]['nolimit']===_0x4cac97(0x17e)&&(_0x2f8e74[_0x4cac97(0x185)]=qs[_0x4cac97(0x185)](_0x16a259[_0x4cac97(0x1ad)][_0x4cac97(0x185)]),_0x2f8e74['offset']=qs['offset'](_0x16a259[_0x4cac97(0x1ad)][_0x4cac97(0x17d)])),_0x3ca742[_0x4cac97(0x170)](_0x2f8e74);})['then'](function(_0x298da9){if(_0x298da9)return _0x298da9?{'count':_0x2d4de7,'rows':_0x298da9}:null;})['then'](respondWithResult(_0x492498,null))['catch'](handleError(_0x492498,null));},exports[a320_0x52eecb(0x178)]=function(_0x238a23,_0x2fea63){const _0x49f4c2=a320_0x52eecb;return _0x238a23['body']['id']&&delete _0x238a23[_0x49f4c2(0x16e)]['id'],db['FreshsalesAccount'][_0x49f4c2(0x19a)]({'where':{'id':_0x238a23[_0x49f4c2(0x188)]['id']}})[_0x49f4c2(0x173)](handleEntityNotFound(_0x2fea63,null))[_0x49f4c2(0x173)](function(_0x2be1c0){const _0x2746b9=_0x49f4c2;if(_0x2be1c0)return _0x238a23[_0x2746b9(0x16e)][_0x2746b9(0x1a8)]=_0x2be1c0['id'],_0x238a23['body'][_0x2746b9(0x19c)]=integrations['getSubjects'](_0x238a23['body']['channel'],_0x238a23[_0x2746b9(0x16e)][_0x2746b9(0x1ae)]),_0x238a23['body'][_0x2746b9(0x1a9)]=integrations[_0x2746b9(0x1a2)](_0x238a23[_0x2746b9(0x16e)][_0x2746b9(0x16d)],_0x238a23['body'][_0x2746b9(0x1ae)]),db[_0x2746b9(0x175)][_0x2746b9(0x1be)](_0x238a23['body'],{'include':[{'model':db[_0x2746b9(0x1aa)],'as':_0x2746b9(0x19c)},{'model':db[_0x2746b9(0x1aa)],'as':'Descriptions'}]});return null;})[_0x49f4c2(0x173)](respondWithResult(_0x2fea63,null))[_0x49f4c2(0x1b9)](handleError(_0x2fea63,null));},exports[a320_0x52eecb(0x176)]=function(_0x2993c2,_0x189687){const _0x3dbb34=a320_0x52eecb;let _0xb71ad3='',_0x471925='';return db[_0x3dbb34(0x179)][_0x3dbb34(0x19a)]({'where':{'id':_0x2993c2[_0x3dbb34(0x188)]['id']},'attributes':['id',_0x3dbb34(0x1bd),'remoteUri',_0x3dbb34(0x1bc)]})[_0x3dbb34(0x173)](handleEntityNotFound(_0x189687,null))[_0x3dbb34(0x173)](function(_0x55f610){const _0x2890b2=_0x3dbb34;if(_0x55f610){_0x471925=_0x55f610['username'],_0xb71ad3=_0x55f610[_0x2890b2(0x17b)];const _0x3bc481=_0x55f610['remoteUri'][_0x2890b2(0x19f)](-0x1);return _0x3bc481==='/'&&(_0xb71ad3=_0xb71ad3['substring'](0x0,_0xb71ad3[_0x2890b2(0x190)](_0x3bc481))),rp({'method':_0x2890b2(0x1a1),'uri':util[_0x2890b2(0x181)]('%s%s',_0xb71ad3,_0x2890b2(0x1af)),'headers':{'Authorization':_0x2890b2(0x1a6)+_0x55f610['apiKey']},'json':!![]});}})[_0x3dbb34(0x173)](function(_0x104487){const _0x15bd56=_0x3dbb34;if(_0x104487){const _0x3f38ac=_0x104487[_0x15bd56(0x186)];let _0x530a2b=![],_0xb4d9a9=null;for(_0xb4d9a9=0x0;_0xb4d9a9<_0x3f38ac[_0x15bd56(0x184)];_0xb4d9a9++){_0x3f38ac[_0xb4d9a9][_0x15bd56(0x195)]===_0x471925&&(_0x530a2b=!![]);}if(_0x530a2b)return!![];else throw new Error({'statusCode':0x194,'message':'Requested\x20Resource\x20not\x20Found'});}})[_0x3dbb34(0x173)](respondWithResult(_0x189687,null))['catch'](function(_0x2c354c){const _0x1e577a=_0x3dbb34;let _0x467d09=_0x2993c2['query'][_0x1e577a(0x18f)]?0x1f4:_0x2c354c[_0x1e577a(0x193)]||0x1f4;logger[_0x1e577a(0x197)](_0x1e577a(0x1ba),_0x1e577a(0x176),_0x467d09,JSON['stringify'](_0x2c354c)),delete _0x2c354c[_0x1e577a(0x1b8)],_0x467d09===0x191&&(_0x467d09=0x190),_0x189687['status'](_0x467d09)[_0x1e577a(0x1a4)](_0x2993c2['query'][_0x1e577a(0x18f)]?{'message':_0x1e577a(0x1a7),'statusCode':_0x2c354c['statusCode']}:_0x2c354c);});}; \ No newline at end of file diff --git a/server/api/intFreshsalesAccount/intFreshsalesAccount.model.js b/server/api/intFreshsalesAccount/intFreshsalesAccount.model.js index 0cbc8a2..db115af 100644 --- a/server/api/intFreshsalesAccount/intFreshsalesAccount.model.js +++ b/server/api/intFreshsalesAccount/intFreshsalesAccount.model.js @@ -1 +1 @@ -const a269_0xb5dc=['int_freshsales_accounts','./intFreshsalesAccount.attributes','FreshsalesAccount','define'];(function(_0x10813b,_0xb5dcfb){const _0x1d69a3=function(_0x102272){while(--_0x102272){_0x10813b['push'](_0x10813b['shift']());}};_0x1d69a3(++_0xb5dcfb);}(a269_0xb5dc,0x89));const a269_0x1d69=function(_0x10813b,_0xb5dcfb){_0x10813b=_0x10813b-0x0;let _0x1d69a3=a269_0xb5dc[_0x10813b];return _0x1d69a3;};const _0xc357bc=a269_0x1d69;'use strict';const attributes=require(_0xc357bc('0x0'));module['exports']=function(_0x102272){const _0x28a8d7=_0xc357bc,_0x322be5=_0x102272[_0x28a8d7('0x2')](_0x28a8d7('0x1'),attributes,{'tableName':_0x28a8d7('0x3'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x322be5;}; \ No newline at end of file +const a321_0x25e5=['init','exports','sequelize','function','FreshsalesAccount'];(function(_0xe67ca2,_0x4bf89c){const _0x25e571=function(_0x1d5683){while(--_0x1d5683){_0xe67ca2['push'](_0xe67ca2['shift']());}};_0x25e571(++_0x4bf89c);}(a321_0x25e5,0x1ed));const a321_0x1d56=function(_0xe67ca2,_0x4bf89c){_0xe67ca2=_0xe67ca2-0x1d4;let _0x25e571=a321_0x25e5[_0xe67ca2];return _0x25e571;};const a321_0x1e1ad3=a321_0x1d56;'use strict';const {Model}=require(a321_0x1e1ad3(0x1d8)),{attributes}=require('./intFreshsalesAccount.attributes'),{options}=require('./intFreshsalesAccount.options');class FreshsalesAccount extends Model{}function init(_0x38bf88,_0x538543){const _0x7da112=a321_0x1e1ad3,_0x10db01=options(_0x38bf88),_0x3597cf=typeof _0x538543===_0x7da112(0x1d4)?_0x538543(_0x10db01):_0x10db01;return FreshsalesAccount['init'](attributes,_0x3597cf),FreshsalesAccount;}module[a321_0x1e1ad3(0x1d7)][a321_0x1e1ad3(0x1d5)]=FreshsalesAccount,module[a321_0x1e1ad3(0x1d7)][a321_0x1e1ad3(0x1d6)]=init; \ No newline at end of file diff --git a/server/api/intFreshsalesAccount/intFreshsalesAccount.options.js b/server/api/intFreshsalesAccount/intFreshsalesAccount.options.js new file mode 100644 index 0000000..244548d --- /dev/null +++ b/server/api/intFreshsalesAccount/intFreshsalesAccount.options.js @@ -0,0 +1 @@ +var a322_0x4279=['int_freshsales_accounts','options'];(function(_0x2f9377,_0x5a979c){var _0x42790f=function(_0x40ef69){while(--_0x40ef69){_0x2f9377['push'](_0x2f9377['shift']());}};_0x42790f(++_0x5a979c);}(a322_0x4279,0xee));var a322_0x40ef=function(_0x2f9377,_0x5a979c){_0x2f9377=_0x2f9377-0xb6;var _0x42790f=a322_0x4279[_0x2f9377];return _0x42790f;};var a322_0x1977d8=a322_0x40ef;function options(_0x307ce3){var _0xb78d7a=a322_0x40ef;return{'sequelize':_0x307ce3,'tableName':_0xb78d7a(0xb6),'paranoid':![],'indexes':[],'timestamps':!![]};}module['exports'][a322_0x1977d8(0xb7)]=options; \ No newline at end of file diff --git a/server/api/intFreshsalesAccount/intFreshsalesAccount.rpc.js b/server/api/intFreshsalesAccount/intFreshsalesAccount.rpc.js index 54791dd..117387a 100644 --- a/server/api/intFreshsalesAccount/intFreshsalesAccount.rpc.js +++ b/server/api/intFreshsalesAccount/intFreshsalesAccount.rpc.js @@ -1 +1 @@ -const a270_0x3931=['../../mysqldb','include','findAll','../../config/logger','where','raw','ShowFreshsalesAccount','attributes','debug','GetFreshsalesAccount','info','map','stringify','catch','model','FreshsalesAccount','error','options','message','rpc','findOne'];(function(_0x149a66,_0x3931fa){const _0x690825=function(_0x5a4cf1){while(--_0x5a4cf1){_0x149a66['push'](_0x149a66['shift']());}};_0x690825(++_0x3931fa);}(a270_0x3931,0x1c6));const a270_0x6908=function(_0x149a66,_0x3931fa){_0x149a66=_0x149a66-0x0;let _0x690825=a270_0x3931[_0x149a66];return _0x690825;};const _0x365900=a270_0x6908;'use strict';const _=require('lodash'),db=require(_0x365900('0x8'))['db'],logger=require(_0x365900('0xb'))(_0x365900('0x6'));exports['GetFreshsalesAccount']=function(_0x5a4cf1){const _0x42b044=this;return new Promise(function(_0x701b7d,_0x118083){const _0x1f52f1=a270_0x6908;return db[_0x1f52f1('0x2')][_0x1f52f1('0xa')]({'raw':_0x5a4cf1[_0x1f52f1('0x4')]?_0x5a4cf1[_0x1f52f1('0x4')][_0x1f52f1('0xd')]===undefined?!![]:![]:!![],'where':_0x5a4cf1[_0x1f52f1('0x4')]?_0x5a4cf1[_0x1f52f1('0x4')][_0x1f52f1('0xc')]||null:null,'attributes':_0x5a4cf1[_0x1f52f1('0x4')]?_0x5a4cf1['options'][_0x1f52f1('0xf')]||null:null,'limit':_0x5a4cf1['options']?_0x5a4cf1['options']['limit']||null:null,'include':_0x5a4cf1[_0x1f52f1('0x4')]?_0x5a4cf1[_0x1f52f1('0x4')][_0x1f52f1('0x9')]?_[_0x1f52f1('0x13')](_0x5a4cf1[_0x1f52f1('0x4')]['include'],function(_0xf24a5c){const _0x21922a=_0x1f52f1;return{'model':db[_0xf24a5c['model']],'as':_0xf24a5c['as'],'attributes':_0xf24a5c[_0x21922a('0xf')],'include':_0xf24a5c[_0x21922a('0x9')]?_[_0x21922a('0x13')](_0xf24a5c[_0x21922a('0x9')],function(_0x2303b7){const _0x34cac9=_0x21922a;return{'model':db[_0x2303b7['model']],'as':_0x2303b7['as'],'attributes':_0x2303b7[_0x34cac9('0xf')],'include':_0x2303b7['include']?_[_0x34cac9('0x13')](_0x2303b7[_0x34cac9('0x9')],function(_0x4f5345){const _0x47a895=_0x34cac9;return{'model':db[_0x4f5345[_0x47a895('0x1')]],'as':_0x4f5345['as'],'attributes':_0x4f5345[_0x47a895('0xf')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x5833da){const _0x1bef34=_0x1f52f1;logger[_0x1bef34('0x12')](_0x1bef34('0x11'),_0x5a4cf1),logger[_0x1bef34('0x10')](_0x1bef34('0x11'),_0x5a4cf1,JSON[_0x1bef34('0x14')](_0x5833da)),_0x701b7d(_0x5833da);})[_0x1f52f1('0x0')](function(_0x2f1b78){const _0x119448=_0x1f52f1;logger[_0x119448('0x3')](_0x119448('0x11'),_0x2f1b78[_0x119448('0x5')],_0x5a4cf1),_0x118083(_0x42b044[_0x119448('0x3')](0x1f4,_0x2f1b78[_0x119448('0x5')]));});});},exports[_0x365900('0xe')]=function(_0x38020d){const _0x37fbab=this;return new Promise(function(_0x32e823,_0x4dad8f){const _0xd2edcb=a270_0x6908;return db[_0xd2edcb('0x2')][_0xd2edcb('0x7')]({'raw':_0x38020d[_0xd2edcb('0x4')]?_0x38020d[_0xd2edcb('0x4')][_0xd2edcb('0xd')]===undefined?!![]:![]:!![],'where':_0x38020d[_0xd2edcb('0x4')]?_0x38020d[_0xd2edcb('0x4')]['where']||null:null,'attributes':_0x38020d[_0xd2edcb('0x4')]?_0x38020d[_0xd2edcb('0x4')][_0xd2edcb('0xf')]||null:null,'include':_0x38020d[_0xd2edcb('0x4')]?_0x38020d['options'][_0xd2edcb('0x9')]?_[_0xd2edcb('0x13')](_0x38020d[_0xd2edcb('0x4')][_0xd2edcb('0x9')],function(_0x39f567){const _0x29ac32=_0xd2edcb;return{'model':db[_0x39f567[_0x29ac32('0x1')]],'as':_0x39f567['as'],'attributes':_0x39f567['attributes'],'include':_0x39f567[_0x29ac32('0x9')]?_[_0x29ac32('0x13')](_0x39f567[_0x29ac32('0x9')],function(_0x556384){const _0x48bbba=_0x29ac32;return{'model':db[_0x556384['model']],'as':_0x556384['as'],'attributes':_0x556384[_0x48bbba('0xf')],'include':_0x556384[_0x48bbba('0x9')]?_[_0x48bbba('0x13')](_0x556384[_0x48bbba('0x9')],function(_0x245067){const _0x518cda=_0x48bbba;return{'model':db[_0x245067[_0x518cda('0x1')]],'as':_0x245067['as'],'attributes':_0x245067[_0x518cda('0xf')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x8867a4){const _0x4d3835=_0xd2edcb;logger[_0x4d3835('0x12')](_0x4d3835('0xe'),_0x38020d),logger[_0x4d3835('0x10')](_0x4d3835('0xe'),_0x38020d,JSON[_0x4d3835('0x14')](_0x8867a4)),_0x32e823(_0x8867a4);})['catch'](function(_0x21caf4){const _0x15262e=_0xd2edcb;logger[_0x15262e('0x3')](_0x15262e('0xe'),_0x21caf4[_0x15262e('0x5')],_0x38020d),_0x4dad8f(_0x37fbab[_0x15262e('0x3')](0x1f4,_0x21caf4[_0x15262e('0x5')]));});});}; \ No newline at end of file +const a323_0x22cc=['GetFreshsalesAccount','attributes','../../config/logger','ShowFreshsalesAccount','model','rpc','../../mysqldb','options','findAll','catch','limit','findOne','raw','map','debug','where','info','error','lodash','FreshsalesAccount','message','stringify','include'];(function(_0x17770d,_0x293be5){const _0x22cc68=function(_0x4f9fc9){while(--_0x4f9fc9){_0x17770d['push'](_0x17770d['shift']());}};_0x22cc68(++_0x293be5);}(a323_0x22cc,0x12f));const a323_0x4f9f=function(_0x17770d,_0x293be5){_0x17770d=_0x17770d-0x15a;let _0x22cc68=a323_0x22cc[_0x17770d];return _0x22cc68;};const a323_0xdae137=a323_0x4f9f;'use strict';const _=require(a323_0xdae137(0x168)),db=require(a323_0xdae137(0x15c))['db'],logger=require(a323_0xdae137(0x16f))(a323_0xdae137(0x15b));exports['GetFreshsalesAccount']=function(_0x3dfab1){const _0xa56e87=this;return new Promise(function(_0x50a589,_0x32d1e0){const _0x3bf953=a323_0x4f9f;return db[_0x3bf953(0x169)][_0x3bf953(0x15e)]({'raw':_0x3dfab1['options']?_0x3dfab1['options']['raw']===undefined?!![]:![]:!![],'where':_0x3dfab1[_0x3bf953(0x15d)]?_0x3dfab1[_0x3bf953(0x15d)][_0x3bf953(0x165)]||null:null,'attributes':_0x3dfab1[_0x3bf953(0x15d)]?_0x3dfab1[_0x3bf953(0x15d)][_0x3bf953(0x16e)]||null:null,'limit':_0x3dfab1[_0x3bf953(0x15d)]?_0x3dfab1['options'][_0x3bf953(0x160)]||null:null,'include':_0x3dfab1[_0x3bf953(0x15d)]?_0x3dfab1['options'][_0x3bf953(0x16c)]?_[_0x3bf953(0x163)](_0x3dfab1[_0x3bf953(0x15d)][_0x3bf953(0x16c)],function(_0xbd0f18){const _0x563705=_0x3bf953;return{'model':db[_0xbd0f18['model']],'as':_0xbd0f18['as'],'attributes':_0xbd0f18[_0x563705(0x16e)],'include':_0xbd0f18[_0x563705(0x16c)]?_[_0x563705(0x163)](_0xbd0f18['include'],function(_0x33f6c9){const _0x4d1d4d=_0x563705;return{'model':db[_0x33f6c9[_0x4d1d4d(0x15a)]],'as':_0x33f6c9['as'],'attributes':_0x33f6c9[_0x4d1d4d(0x16e)],'include':_0x33f6c9[_0x4d1d4d(0x16c)]?_[_0x4d1d4d(0x163)](_0x33f6c9[_0x4d1d4d(0x16c)],function(_0x28426e){const _0x3b933c=_0x4d1d4d;return{'model':db[_0x28426e[_0x3b933c(0x15a)]],'as':_0x28426e['as'],'attributes':_0x28426e[_0x3b933c(0x16e)]};}):[]};}):[]};}):[]:[]})['then'](function(_0x30c483){const _0x3acb41=_0x3bf953;logger[_0x3acb41(0x166)](_0x3acb41(0x16d),_0x3dfab1),logger['debug'](_0x3acb41(0x16d),_0x3dfab1,JSON['stringify'](_0x30c483)),_0x50a589(_0x30c483);})[_0x3bf953(0x15f)](function(_0x406712){const _0x538abe=_0x3bf953;logger['error'](_0x538abe(0x16d),_0x406712['message'],_0x3dfab1),_0x32d1e0(_0xa56e87[_0x538abe(0x167)](0x1f4,_0x406712['message']));});});},exports[a323_0xdae137(0x170)]=function(_0xf53d0c){const _0x5c2faa=this;return new Promise(function(_0x283dac,_0x386069){const _0x59a635=a323_0x4f9f;return db[_0x59a635(0x169)][_0x59a635(0x161)]({'raw':_0xf53d0c[_0x59a635(0x15d)]?_0xf53d0c['options'][_0x59a635(0x162)]===undefined?!![]:![]:!![],'where':_0xf53d0c[_0x59a635(0x15d)]?_0xf53d0c['options'][_0x59a635(0x165)]||null:null,'attributes':_0xf53d0c[_0x59a635(0x15d)]?_0xf53d0c['options'][_0x59a635(0x16e)]||null:null,'include':_0xf53d0c[_0x59a635(0x15d)]?_0xf53d0c[_0x59a635(0x15d)][_0x59a635(0x16c)]?_[_0x59a635(0x163)](_0xf53d0c[_0x59a635(0x15d)][_0x59a635(0x16c)],function(_0x527dde){const _0x5a7649=_0x59a635;return{'model':db[_0x527dde[_0x5a7649(0x15a)]],'as':_0x527dde['as'],'attributes':_0x527dde[_0x5a7649(0x16e)],'include':_0x527dde[_0x5a7649(0x16c)]?_[_0x5a7649(0x163)](_0x527dde['include'],function(_0x16ea81){const _0x41a21d=_0x5a7649;return{'model':db[_0x16ea81[_0x41a21d(0x15a)]],'as':_0x16ea81['as'],'attributes':_0x16ea81[_0x41a21d(0x16e)],'include':_0x16ea81[_0x41a21d(0x16c)]?_[_0x41a21d(0x163)](_0x16ea81[_0x41a21d(0x16c)],function(_0x26c0a3){const _0x994b48=_0x41a21d;return{'model':db[_0x26c0a3[_0x994b48(0x15a)]],'as':_0x26c0a3['as'],'attributes':_0x26c0a3[_0x994b48(0x16e)]};}):[]};}):[]};}):[]:[]})['then'](function(_0x22e9e3){const _0x1a1bc8=_0x59a635;logger['info'](_0x1a1bc8(0x170),_0xf53d0c),logger[_0x1a1bc8(0x164)](_0x1a1bc8(0x170),_0xf53d0c,JSON[_0x1a1bc8(0x16b)](_0x22e9e3)),_0x283dac(_0x22e9e3);})[_0x59a635(0x15f)](function(_0x4767e5){const _0x4b90e8=_0x59a635;logger[_0x4b90e8(0x167)](_0x4b90e8(0x170),_0x4767e5[_0x4b90e8(0x16a)],_0xf53d0c),_0x386069(_0x5c2faa[_0x4b90e8(0x167)](0x1f4,_0x4767e5['message']));});});}; \ No newline at end of file diff --git a/server/api/intFreshsalesConfiguration/index.js b/server/api/intFreshsalesConfiguration/index.js index 5cf131f..8d848c1 100644 --- a/server/api/intFreshsalesConfiguration/index.js +++ b/server/api/intFreshsalesConfiguration/index.js @@ -1 +1 @@ -const a271_0x5cba=['./intFreshsalesConfiguration.controller','index','isAuthenticated','../../components/auth/service','destroy','Router','update','/:id','create','delete','/:id/subjects','express','exports','getDescriptions','getFields','get','put'];(function(_0x1c45b7,_0x5cba52){const _0x32f285=function(_0xa79272){while(--_0xa79272){_0x1c45b7['push'](_0x1c45b7['shift']());}};_0x32f285(++_0x5cba52);}(a271_0x5cba,0x177));const a271_0x32f2=function(_0x1c45b7,_0x5cba52){_0x1c45b7=_0x1c45b7-0x0;let _0x32f285=a271_0x5cba[_0x1c45b7];return _0x32f285;};const _0x365cdd=a271_0x32f2;'use strict';const express=require(_0x365cdd('0xa')),router=express[_0x365cdd('0x4')](),auth=require(_0x365cdd('0x2')),controller=require(_0x365cdd('0x10'));router['get']('/',auth[_0x365cdd('0x1')](),controller[_0x365cdd('0x0')]),router[_0x365cdd('0xe')](_0x365cdd('0x6'),auth['isAuthenticated'](),controller['show']),router[_0x365cdd('0xe')](_0x365cdd('0x9'),auth[_0x365cdd('0x1')](),controller['getSubjects']),router[_0x365cdd('0xe')]('/:id/descriptions',auth[_0x365cdd('0x1')](),controller[_0x365cdd('0xc')]),router[_0x365cdd('0xe')]('/:id/fields',auth[_0x365cdd('0x1')](),controller[_0x365cdd('0xd')]),router['post']('/',auth['isAuthenticated'](),controller[_0x365cdd('0x7')]),router[_0x365cdd('0xf')]('/:id',auth[_0x365cdd('0x1')](),controller[_0x365cdd('0x5')]),router[_0x365cdd('0x8')]('/:id',auth[_0x365cdd('0x1')](),controller[_0x365cdd('0x3')]),module[_0x365cdd('0xb')]=router; \ No newline at end of file +const a324_0x3fdb=['./intFreshsalesConfiguration.controller','getDescriptions','isAuthenticated','getSubjects','get','create','/:id/fields','show','put','exports','destroy','delete','/:id/descriptions','/:id','post','Router','../../components/auth/service','express','update'];(function(_0x2e01f4,_0x477394){const _0x3fdbd0=function(_0x3f293f){while(--_0x3f293f){_0x2e01f4['push'](_0x2e01f4['shift']());}};_0x3fdbd0(++_0x477394);}(a324_0x3fdb,0x173));const a324_0x3f29=function(_0x2e01f4,_0x477394){_0x2e01f4=_0x2e01f4-0x19c;let _0x3fdbd0=a324_0x3fdb[_0x2e01f4];return _0x3fdbd0;};const a324_0x27acba=a324_0x3f29;'use strict';const express=require(a324_0x27acba(0x1a3)),router=express[a324_0x27acba(0x1a1)](),auth=require(a324_0x27acba(0x1a2)),controller=require(a324_0x27acba(0x1a5));router['get']('/',auth['isAuthenticated'](),controller['index']),router[a324_0x27acba(0x1a9)](a324_0x27acba(0x19f),auth[a324_0x27acba(0x1a7)](),controller[a324_0x27acba(0x1ac)]),router[a324_0x27acba(0x1a9)]('/:id/subjects',auth['isAuthenticated'](),controller[a324_0x27acba(0x1a8)]),router[a324_0x27acba(0x1a9)](a324_0x27acba(0x19e),auth['isAuthenticated'](),controller[a324_0x27acba(0x1a6)]),router[a324_0x27acba(0x1a9)](a324_0x27acba(0x1ab),auth['isAuthenticated'](),controller['getFields']),router[a324_0x27acba(0x1a0)]('/',auth[a324_0x27acba(0x1a7)](),controller[a324_0x27acba(0x1aa)]),router[a324_0x27acba(0x1ad)](a324_0x27acba(0x19f),auth[a324_0x27acba(0x1a7)](),controller[a324_0x27acba(0x1a4)]),router[a324_0x27acba(0x19d)](a324_0x27acba(0x19f),auth[a324_0x27acba(0x1a7)](),controller[a324_0x27acba(0x19c)]),module[a324_0x27acba(0x1ae)]=router; \ No newline at end of file diff --git a/server/api/intFreshsalesConfiguration/intFreshsalesConfiguration.attributes.js b/server/api/intFreshsalesConfiguration/intFreshsalesConfiguration.attributes.js index ae1f52e..3dcaff4 100644 --- a/server/api/intFreshsalesConfiguration/intFreshsalesConfiguration.attributes.js +++ b/server/api/intFreshsalesConfiguration/intFreshsalesConfiguration.attributes.js @@ -1 +1 @@ -const a272_0x28a5=['sequelize','STRING','exports'];(function(_0x26c422,_0x28a5d7){const _0x1ccdc8=function(_0x40d480){while(--_0x40d480){_0x26c422['push'](_0x26c422['shift']());}};_0x1ccdc8(++_0x28a5d7);}(a272_0x28a5,0x166));const a272_0x1ccd=function(_0x26c422,_0x28a5d7){_0x26c422=_0x26c422-0x0;let _0x1ccdc8=a272_0x28a5[_0x26c422];return _0x1ccdc8;};const _0x30d658=a272_0x1ccd;'use strict';const Sequelize=require(_0x30d658('0x2'));module[_0x30d658('0x1')]={'name':{'type':Sequelize[_0x30d658('0x0')]},'description':{'type':Sequelize[_0x30d658('0x0')]}}; \ No newline at end of file +const a325_0x1aed=['STRING','sequelize','exports'];(function(_0x3df8ea,_0x5addf3){const _0x1aed31=function(_0x3cf9ff){while(--_0x3cf9ff){_0x3df8ea['push'](_0x3df8ea['shift']());}};_0x1aed31(++_0x5addf3);}(a325_0x1aed,0x18f));const a325_0x3cf9=function(_0x3df8ea,_0x5addf3){_0x3df8ea=_0x3df8ea-0x133;let _0x1aed31=a325_0x1aed[_0x3df8ea];return _0x1aed31;};const a325_0x5cda3b=a325_0x3cf9;'use strict';const {DataTypes}=require(a325_0x5cda3b(0x134)),attributes={'name':{'type':DataTypes['STRING']},'description':{'type':DataTypes[a325_0x5cda3b(0x133)]}};module[a325_0x5cda3b(0x135)]['attributes']=attributes; \ No newline at end of file diff --git a/server/api/intFreshsalesConfiguration/intFreshsalesConfiguration.controller.js b/server/api/intFreshsalesConfiguration/intFreshsalesConfiguration.controller.js index 5533bae..89a1769 100644 --- a/server/api/intFreshsalesConfiguration/intFreshsalesConfiguration.controller.js +++ b/server/api/intFreshsalesConfiguration/intFreshsalesConfiguration.controller.js @@ -1 +1 @@ -const a273_0x4525=['status','FreshsalesField','limit','map','merge','create','catch','then','where','stack','findOne','length','index','error','getSubjects','Content-Range','filters','undefined','getDescriptions','../../config/logger','filter','lodash','params','type','fieldName','order','options','like','fields','intersection','sort','getFields','nolimit','count','name','../../mysqldb','rows','attributes','model','destroy','includeAll','include','offset','keys','show','rawAttributes','body','FreshsalesConfiguration','query','update','pick','api','VIRTUAL'];(function(_0x4404a0,_0x45254e){const _0x18a06f=function(_0x4da2d5){while(--_0x4da2d5){_0x4404a0['push'](_0x4404a0['shift']());}};_0x18a06f(++_0x45254e);}(a273_0x4525,0x12a));const a273_0x18a0=function(_0x4404a0,_0x45254e){_0x4404a0=_0x4404a0-0x0;let _0x18a06f=a273_0x4525[_0x4404a0];return _0x18a06f;};const _0xd1d3c5=a273_0x18a0;'use strict';const _=require(_0xd1d3c5('0x29')),qs=require('../../components/parsers/qs'),logger=require(_0xd1d3c5('0x27'))(_0xd1d3c5('0x12')),db=require(_0xd1d3c5('0x2'))['db'],{Op}=require('sequelize');function respondWithResult(_0x4da2d5,_0x1eb850){return _0x1eb850=_0x1eb850||0xc8,function(_0x22dfe4){const _0x1f1faf=a273_0x18a0;if(_0x22dfe4)return _0x4da2d5[_0x1f1faf('0x14')](_0x1eb850)['json'](_0x22dfe4);};}function respondWithFilteredResult(_0x1aaa8a,_0x313e6a){return function(_0x4109bf){const _0x7394d2=a273_0x18a0;if(_0x4109bf){const _0x14e430=_0x4109bf['count'],_0x276b74=_0x313e6a['offset'];let _0x16793a=_0x313e6a[_0x7394d2('0x9')]+_0x313e6a[_0x7394d2('0x16')],_0xab74a8;return _0x16793a>=_0x14e430?(_0x16793a=_0x14e430,_0xab74a8=0xc8):_0xab74a8=0xce,_0x1aaa8a[_0x7394d2('0x14')](_0xab74a8),_0x1aaa8a['set'](_0x7394d2('0x23'),_0x276b74+'-'+_0x16793a+'/'+_0x14e430)['json'](_0x4109bf);}return null;};}function saveUpdates(_0x3594a3){return function(_0x4f7645){const _0x444e3b=a273_0x18a0;if(_0x4f7645)return _0x4f7645[_0x444e3b('0x10')](_0x3594a3)[_0x444e3b('0x1b')](function(_0x5d071a){return _0x5d071a;});return null;};}function removeEntity(_0x190269){return function(_0x3f1180){const _0x37ed5a=a273_0x18a0;if(_0x3f1180)return _0x3f1180[_0x37ed5a('0x6')]()[_0x37ed5a('0x1b')](function(){const _0x47a40b=_0x37ed5a;_0x190269[_0x47a40b('0x14')](0xcc)['end']();});};}function handleEntityNotFound(_0x3085d4){return function(_0x281d1d){return!_0x281d1d&&_0x3085d4['sendStatus'](0x194),_0x281d1d;};}function handleError(_0x4852cf,_0x1a6eee){return _0x1a6eee=_0x1a6eee||0x1f4,function(_0x265f4c){const _0x3e7874=a273_0x18a0;logger[_0x3e7874('0x21')](_0x265f4c[_0x3e7874('0x1d')]),_0x265f4c[_0x3e7874('0x1')]&&delete _0x265f4c[_0x3e7874('0x1')],_0x4852cf['status'](_0x1a6eee)['send'](_0x265f4c);};}exports[_0xd1d3c5('0x20')]=function(_0x45b9d8,_0x21b2e6){const _0x26fd66=_0xd1d3c5;let _0x217f2c={};const _0x244aec={},_0x1a3c31={'count':0x0,'rows':[]},_0x17218b=_[_0x26fd66('0x17')](db[_0x26fd66('0xe')][_0x26fd66('0xc')],function(_0x24adf5){const _0x4d1964=_0x26fd66;return{'name':_0x24adf5[_0x4d1964('0x2c')],'type':_0x24adf5[_0x4d1964('0x2b')]['key']};});_0x244aec['model']=_[_0x26fd66('0x17')](_0x17218b,_0x26fd66('0x1')),_0x244aec[_0x26fd66('0xf')]=_[_0x26fd66('0xa')](_0x45b9d8[_0x26fd66('0xf')]),_0x244aec[_0x26fd66('0x24')]=_[_0x26fd66('0x31')](_0x244aec[_0x26fd66('0x5')],_0x244aec[_0x26fd66('0xf')]),_0x217f2c['attributes']=_[_0x26fd66('0x31')](_0x244aec['model'],qs[_0x26fd66('0x30')](_0x45b9d8[_0x26fd66('0xf')][_0x26fd66('0x30')])),_0x217f2c[_0x26fd66('0x4')]=_0x217f2c[_0x26fd66('0x4')][_0x26fd66('0x1f')]?_0x217f2c[_0x26fd66('0x4')]:_0x244aec['model'];typeof _0x45b9d8[_0x26fd66('0xf')][_0x26fd66('0x34')]===_0x26fd66('0x25')&&(_0x217f2c[_0x26fd66('0x16')]=qs[_0x26fd66('0x16')](_0x45b9d8['query'][_0x26fd66('0x16')]),_0x217f2c[_0x26fd66('0x9')]=qs[_0x26fd66('0x9')](_0x45b9d8[_0x26fd66('0xf')][_0x26fd66('0x9')]));_0x217f2c['order']=qs[_0x26fd66('0x32')](_0x45b9d8[_0x26fd66('0xf')][_0x26fd66('0x32')]),_0x217f2c[_0x26fd66('0x1c')]=qs['filters'](_['pick'](_0x45b9d8[_0x26fd66('0xf')],_0x244aec[_0x26fd66('0x24')]),_0x17218b);_0x45b9d8['query'][_0x26fd66('0x28')]&&(_0x217f2c[_0x26fd66('0x1c')]=_[_0x26fd66('0x18')](_0x217f2c[_0x26fd66('0x1c')],{[Op['or']]:_['map'](_0x17218b,function(_0x349afc){const _0x180d77=_0x26fd66;if(_0x349afc[_0x180d77('0x2b')]!==_0x180d77('0x13')){const _0xfd92ba={};return _0xfd92ba[_0x349afc[_0x180d77('0x1')]]={[Op['like']]:'%'+_0x45b9d8['query'][_0x180d77('0x28')]+'%'},_0xfd92ba;}})}));_0x217f2c=_[_0x26fd66('0x18')]({},_0x217f2c,_0x45b9d8['options']);const _0x1fbcfb={'where':_0x217f2c['where']};return db[_0x26fd66('0xe')][_0x26fd66('0x0')](_0x1fbcfb)[_0x26fd66('0x1b')](function(_0x38bf1f){const _0x1c217c=_0x26fd66;return _0x1a3c31[_0x1c217c('0x0')]=_0x38bf1f,_0x45b9d8[_0x1c217c('0xf')][_0x1c217c('0x7')]&&(_0x217f2c[_0x1c217c('0x8')]=[{'all':!![]}]),db['FreshsalesConfiguration']['findAll'](_0x217f2c);})['then'](function(_0x125905){const _0x1b4bcc=_0x26fd66;return _0x1a3c31[_0x1b4bcc('0x3')]=_0x125905,_0x1a3c31;})[_0x26fd66('0x1b')](respondWithFilteredResult(_0x21b2e6,_0x217f2c))['catch'](handleError(_0x21b2e6,null));},exports[_0xd1d3c5('0xb')]=function(_0x343f40,_0x15b1cf){const _0x117b45=_0xd1d3c5;let _0x4bd799={'raw':![],'where':{'id':_0x343f40[_0x117b45('0x2a')]['id']}};const _0x5179bb={};return _0x5179bb[_0x117b45('0x5')]=_[_0x117b45('0xa')](db['FreshsalesConfiguration'][_0x117b45('0xc')]),_0x5179bb[_0x117b45('0xf')]=_[_0x117b45('0xa')](_0x343f40[_0x117b45('0xf')]),_0x5179bb['filters']=_['intersection'](_0x5179bb[_0x117b45('0x5')],_0x5179bb[_0x117b45('0xf')]),_0x4bd799[_0x117b45('0x4')]=_[_0x117b45('0x31')](_0x5179bb['model'],qs[_0x117b45('0x30')](_0x343f40[_0x117b45('0xf')][_0x117b45('0x30')])),_0x4bd799[_0x117b45('0x4')]=_0x4bd799['attributes'][_0x117b45('0x1f')]?_0x4bd799['attributes']:_0x5179bb[_0x117b45('0x5')],_0x343f40[_0x117b45('0xf')][_0x117b45('0x7')]&&(_0x4bd799[_0x117b45('0x8')]=[{'all':!![]}]),_0x4bd799=_['merge']({},_0x4bd799,_0x343f40[_0x117b45('0x2e')]),db['FreshsalesConfiguration'][_0x117b45('0x1e')](_0x4bd799)[_0x117b45('0x1b')](handleEntityNotFound(_0x15b1cf,null))['then'](respondWithResult(_0x15b1cf,null))[_0x117b45('0x1a')](handleError(_0x15b1cf,null));},exports[_0xd1d3c5('0x19')]=function(_0x53a3e3,_0x5160c2){const _0x54f016=_0xd1d3c5;return db[_0x54f016('0xe')][_0x54f016('0x19')](_0x53a3e3[_0x54f016('0xd')],{})[_0x54f016('0x1b')](respondWithResult(_0x5160c2,0xc9))[_0x54f016('0x1a')](handleError(_0x5160c2,null));},exports[_0xd1d3c5('0x10')]=function(_0x5307d6,_0xc08453){const _0x3946a9=_0xd1d3c5;return _0x5307d6[_0x3946a9('0xd')]['id']&&delete _0x5307d6[_0x3946a9('0xd')]['id'],db[_0x3946a9('0xe')][_0x3946a9('0x1e')]({'where':{'id':_0x5307d6[_0x3946a9('0x2a')]['id']}})[_0x3946a9('0x1b')](handleEntityNotFound(_0xc08453,null))['then'](saveUpdates(_0x5307d6[_0x3946a9('0xd')],null))[_0x3946a9('0x1b')](respondWithResult(_0xc08453,null))[_0x3946a9('0x1a')](handleError(_0xc08453,null));},exports[_0xd1d3c5('0x6')]=function(_0x39508b,_0x406dc3){const _0x55cd13=_0xd1d3c5;return db[_0x55cd13('0xe')][_0x55cd13('0x1e')]({'where':{'id':_0x39508b['params']['id']}})[_0x55cd13('0x1b')](handleEntityNotFound(_0x406dc3,null))[_0x55cd13('0x1b')](removeEntity(_0x406dc3,null))[_0x55cd13('0x1a')](handleError(_0x406dc3,null));},exports[_0xd1d3c5('0x22')]=function(_0x1479f0,_0x1871a1){const _0x2abffa=_0xd1d3c5;let _0x54be5b={};const _0x30b9e1={};let _0x369e3c,_0x4bc442;return db[_0x2abffa('0xe')][_0x2abffa('0x1e')]({'where':{'id':_0x1479f0[_0x2abffa('0x2a')]['id']}})[_0x2abffa('0x1b')](handleEntityNotFound(_0x1871a1,null))[_0x2abffa('0x1b')](function(_0x3de1f1){const _0x123fd7=_0x2abffa;if(_0x3de1f1)return _0x369e3c=_0x3de1f1,_0x30b9e1['model']=_['keys'](db[_0x123fd7('0x15')][_0x123fd7('0xc')]),_0x30b9e1[_0x123fd7('0xf')]=_['keys'](_0x1479f0[_0x123fd7('0xf')]),_0x30b9e1[_0x123fd7('0x24')]=_['intersection'](_0x30b9e1[_0x123fd7('0x5')],_0x30b9e1[_0x123fd7('0xf')]),_0x54be5b[_0x123fd7('0x4')]=_[_0x123fd7('0x31')](_0x30b9e1['model'],qs[_0x123fd7('0x30')](_0x1479f0[_0x123fd7('0xf')][_0x123fd7('0x30')])),_0x54be5b[_0x123fd7('0x4')]=_0x54be5b['attributes'][_0x123fd7('0x1f')]?_0x54be5b[_0x123fd7('0x4')]:_0x30b9e1[_0x123fd7('0x5')],_0x54be5b[_0x123fd7('0x2d')]=qs[_0x123fd7('0x32')](_0x1479f0[_0x123fd7('0xf')][_0x123fd7('0x32')]),_0x54be5b[_0x123fd7('0x1c')]=qs[_0x123fd7('0x24')](_[_0x123fd7('0x11')](_0x1479f0[_0x123fd7('0xf')],_0x30b9e1[_0x123fd7('0x24')])),_0x1479f0['query'][_0x123fd7('0x28')]&&(_0x54be5b[_0x123fd7('0x1c')]=_[_0x123fd7('0x18')](_0x54be5b[_0x123fd7('0x1c')],{[Op['or']]:_[_0x123fd7('0x17')](_0x54be5b['attributes'],function(_0x11a8f2){const _0x3a46b2=_0x123fd7,_0x28508b={};return _0x28508b[_0x11a8f2]={[Op['like']]:'%'+_0x1479f0[_0x3a46b2('0xf')]['filter']+'%'},_0x28508b;})})),_0x54be5b=_['merge']({},_0x54be5b,_0x1479f0[_0x123fd7('0x2e')]),_0x369e3c[_0x123fd7('0x22')](_0x54be5b);})[_0x2abffa('0x1b')](function(_0x3e2809){const _0x272d33=_0x2abffa;if(_0x3e2809)return _0x4bc442=_0x3e2809[_0x272d33('0x1f')],typeof _0x1479f0['query']['nolimit']===_0x272d33('0x25')&&(_0x54be5b[_0x272d33('0x16')]=qs[_0x272d33('0x16')](_0x1479f0[_0x272d33('0xf')][_0x272d33('0x16')]),_0x54be5b[_0x272d33('0x9')]=qs['offset'](_0x1479f0[_0x272d33('0xf')][_0x272d33('0x9')])),_0x369e3c[_0x272d33('0x22')](_0x54be5b);})[_0x2abffa('0x1b')](function(_0x48d91e){if(_0x48d91e)return _0x48d91e?{'count':_0x4bc442,'rows':_0x48d91e}:null;})[_0x2abffa('0x1b')](respondWithResult(_0x1871a1,null))['catch'](handleError(_0x1871a1,null));},exports[_0xd1d3c5('0x26')]=function(_0x5b5f4c,_0x3c9c69){const _0x550425=_0xd1d3c5;let _0x34d304={};const _0x204c9c={};let _0x75d7ac,_0x1a2c62;return db[_0x550425('0xe')]['findOne']({'where':{'id':_0x5b5f4c['params']['id']}})[_0x550425('0x1b')](handleEntityNotFound(_0x3c9c69,null))[_0x550425('0x1b')](function(_0x4666c1){const _0x3b7ca5=_0x550425;if(_0x4666c1)return _0x75d7ac=_0x4666c1,_0x204c9c[_0x3b7ca5('0x5')]=_[_0x3b7ca5('0xa')](db[_0x3b7ca5('0x15')][_0x3b7ca5('0xc')]),_0x204c9c[_0x3b7ca5('0xf')]=_[_0x3b7ca5('0xa')](_0x5b5f4c[_0x3b7ca5('0xf')]),_0x204c9c['filters']=_['intersection'](_0x204c9c[_0x3b7ca5('0x5')],_0x204c9c[_0x3b7ca5('0xf')]),_0x34d304['attributes']=_['intersection'](_0x204c9c['model'],qs[_0x3b7ca5('0x30')](_0x5b5f4c['query'][_0x3b7ca5('0x30')])),_0x34d304[_0x3b7ca5('0x4')]=_0x34d304[_0x3b7ca5('0x4')][_0x3b7ca5('0x1f')]?_0x34d304[_0x3b7ca5('0x4')]:_0x204c9c['model'],_0x34d304[_0x3b7ca5('0x2d')]=qs[_0x3b7ca5('0x32')](_0x5b5f4c[_0x3b7ca5('0xf')][_0x3b7ca5('0x32')]),_0x34d304[_0x3b7ca5('0x1c')]=qs[_0x3b7ca5('0x24')](_['pick'](_0x5b5f4c['query'],_0x204c9c['filters'])),_0x5b5f4c[_0x3b7ca5('0xf')][_0x3b7ca5('0x28')]&&(_0x34d304[_0x3b7ca5('0x1c')]=_[_0x3b7ca5('0x18')](_0x34d304['where'],{[Op['or']]:_['map'](_0x34d304[_0x3b7ca5('0x4')],function(_0x145611){const _0x267507=_0x3b7ca5,_0x440bba={};return _0x440bba[_0x145611]={[Op[_0x267507('0x2f')]]:'%'+_0x5b5f4c['query'][_0x267507('0x28')]+'%'},_0x440bba;})})),_0x34d304=_[_0x3b7ca5('0x18')]({},_0x34d304,_0x5b5f4c[_0x3b7ca5('0x2e')]),_0x75d7ac[_0x3b7ca5('0x26')](_0x34d304);})[_0x550425('0x1b')](function(_0xd1b8e6){const _0x49783d=_0x550425;if(_0xd1b8e6)return _0x1a2c62=_0xd1b8e6[_0x49783d('0x1f')],typeof _0x5b5f4c[_0x49783d('0xf')]['nolimit']===_0x49783d('0x25')&&(_0x34d304[_0x49783d('0x16')]=qs[_0x49783d('0x16')](_0x5b5f4c['query'][_0x49783d('0x16')]),_0x34d304[_0x49783d('0x9')]=qs[_0x49783d('0x9')](_0x5b5f4c[_0x49783d('0xf')][_0x49783d('0x9')])),_0x75d7ac[_0x49783d('0x26')](_0x34d304);})[_0x550425('0x1b')](function(_0x5de27c){if(_0x5de27c)return _0x5de27c?{'count':_0x1a2c62,'rows':_0x5de27c}:null;})['then'](respondWithResult(_0x3c9c69,null))[_0x550425('0x1a')](handleError(_0x3c9c69,null));},exports[_0xd1d3c5('0x33')]=function(_0x2f2ca0,_0x489198){const _0xfb0c4f=_0xd1d3c5;let _0x4c29e9={};const _0x5666eb={};let _0x383f37,_0x320b1d;return db[_0xfb0c4f('0xe')][_0xfb0c4f('0x1e')]({'where':{'id':_0x2f2ca0[_0xfb0c4f('0x2a')]['id']}})[_0xfb0c4f('0x1b')](handleEntityNotFound(_0x489198,null))[_0xfb0c4f('0x1b')](function(_0x2df5c9){const _0x24a12a=_0xfb0c4f;if(_0x2df5c9)return _0x383f37=_0x2df5c9,_0x5666eb[_0x24a12a('0x5')]=_[_0x24a12a('0xa')](db[_0x24a12a('0x15')][_0x24a12a('0xc')]),_0x5666eb[_0x24a12a('0xf')]=_['keys'](_0x2f2ca0[_0x24a12a('0xf')]),_0x5666eb[_0x24a12a('0x24')]=_[_0x24a12a('0x31')](_0x5666eb[_0x24a12a('0x5')],_0x5666eb['query']),_0x4c29e9['attributes']=_[_0x24a12a('0x31')](_0x5666eb[_0x24a12a('0x5')],qs[_0x24a12a('0x30')](_0x2f2ca0['query'][_0x24a12a('0x30')])),_0x4c29e9[_0x24a12a('0x4')]=_0x4c29e9[_0x24a12a('0x4')][_0x24a12a('0x1f')]?_0x4c29e9[_0x24a12a('0x4')]:_0x5666eb[_0x24a12a('0x5')],_0x4c29e9[_0x24a12a('0x2d')]=qs[_0x24a12a('0x32')](_0x2f2ca0[_0x24a12a('0xf')]['sort']),_0x4c29e9[_0x24a12a('0x1c')]=qs['filters'](_['pick'](_0x2f2ca0[_0x24a12a('0xf')],_0x5666eb[_0x24a12a('0x24')])),_0x2f2ca0[_0x24a12a('0xf')][_0x24a12a('0x28')]&&(_0x4c29e9[_0x24a12a('0x1c')]=_[_0x24a12a('0x18')](_0x4c29e9[_0x24a12a('0x1c')],{[Op['or']]:_[_0x24a12a('0x17')](_0x4c29e9[_0x24a12a('0x4')],function(_0x50af99){const _0x5c6a34=_0x24a12a,_0x572ae0={};return _0x572ae0[_0x50af99]={[Op[_0x5c6a34('0x2f')]]:'%'+_0x2f2ca0[_0x5c6a34('0xf')][_0x5c6a34('0x28')]+'%'},_0x572ae0;})})),_0x4c29e9=_[_0x24a12a('0x18')]({},_0x4c29e9,_0x2f2ca0[_0x24a12a('0x2e')]),_0x383f37[_0x24a12a('0x33')](_0x4c29e9);})[_0xfb0c4f('0x1b')](function(_0x4d75c7){const _0x497936=_0xfb0c4f;if(_0x4d75c7)return _0x320b1d=_0x4d75c7[_0x497936('0x1f')],typeof _0x2f2ca0[_0x497936('0xf')][_0x497936('0x34')]===_0x497936('0x25')&&(_0x4c29e9['limit']=qs['limit'](_0x2f2ca0[_0x497936('0xf')][_0x497936('0x16')]),_0x4c29e9[_0x497936('0x9')]=qs[_0x497936('0x9')](_0x2f2ca0[_0x497936('0xf')]['offset'])),_0x383f37[_0x497936('0x33')](_0x4c29e9);})[_0xfb0c4f('0x1b')](function(_0x3494f3){if(_0x3494f3)return _0x3494f3?{'count':_0x320b1d,'rows':_0x3494f3}:null;})[_0xfb0c4f('0x1b')](respondWithResult(_0x489198,null))[_0xfb0c4f('0x1a')](handleError(_0x489198,null));}; \ No newline at end of file +const a326_0x4347=['map','order','fieldName','where','then','destroy','end','update','lodash','attributes','body','FreshsalesField','pick','params','FreshsalesConfiguration','intersection','getFields','length','../../config/logger','getDescriptions','keys','offset','error','../../components/parsers/qs','include','options','model','rawAttributes','merge','set','Content-Range','findAll','create','nolimit','rows','name','like','query','getSubjects','status','count','send','fields','undefined','limit','catch','findOne','filter','filters','type','includeAll','index','../../mysqldb','sendStatus','key','sequelize','sort','json'];(function(_0x3dcad6,_0x4d4545){const _0x434719=function(_0x113aea){while(--_0x113aea){_0x3dcad6['push'](_0x3dcad6['shift']());}};_0x434719(++_0x4d4545);}(a326_0x4347,0xda));const a326_0x113a=function(_0x3dcad6,_0x4d4545){_0x3dcad6=_0x3dcad6-0x10f;let _0x434719=a326_0x4347[_0x3dcad6];return _0x434719;};const a326_0x5a4fa9=a326_0x113a;'use strict';const _=require(a326_0x5a4fa9(0x125)),qs=require(a326_0x5a4fa9(0x134)),logger=require(a326_0x5a4fa9(0x12f))('api'),{db}=require(a326_0x5a4fa9(0x117)),{Op}=require(a326_0x5a4fa9(0x11a));function respondWithResult(_0x45d191,_0x3e2359){return _0x3e2359=_0x3e2359||0xc8,function(_0x2b3b18){const _0x420ff5=a326_0x113a;if(_0x2b3b18)return _0x45d191[_0x420ff5(0x144)](_0x3e2359)[_0x420ff5(0x11c)](_0x2b3b18);};}function respondWithFilteredResult(_0x11dfb6,_0x275150){return function(_0x4b9a8f){const _0x5c5787=a326_0x113a;if(_0x4b9a8f){const _0x1c695a=_0x4b9a8f[_0x5c5787(0x145)],_0x5ec879=_0x275150[_0x5c5787(0x132)];let _0x320a5c=_0x275150['offset']+_0x275150[_0x5c5787(0x10f)],_0xc1895d;return _0x320a5c>=_0x1c695a?(_0x320a5c=_0x1c695a,_0xc1895d=0xc8):_0xc1895d=0xce,_0x11dfb6[_0x5c5787(0x144)](_0xc1895d),_0x11dfb6[_0x5c5787(0x13a)](_0x5c5787(0x13b),_0x5ec879+'-'+_0x320a5c+'/'+_0x1c695a)['json'](_0x4b9a8f);}return null;};}function saveUpdates(_0x37d762){return function(_0x40b7c1){const _0x1138ab=a326_0x113a;if(_0x40b7c1)return _0x40b7c1[_0x1138ab(0x124)](_0x37d762)[_0x1138ab(0x121)](function(_0x1dd12e){return _0x1dd12e;});return null;};}function removeEntity(_0x3aa7d9){return function(_0x945371){const _0x24d5c9=a326_0x113a;if(_0x945371)return _0x945371['destroy']()[_0x24d5c9(0x121)](function(){const _0x351c10=_0x24d5c9;_0x3aa7d9[_0x351c10(0x144)](0xcc)[_0x351c10(0x123)]();});};}function handleEntityNotFound(_0x23fbb1){return function(_0x23054b){const _0x3ec1e1=a326_0x113a;return!_0x23054b&&_0x23fbb1[_0x3ec1e1(0x118)](0x194),_0x23054b;};}function handleError(_0x3c6f04,_0x5d9d88){return _0x5d9d88=_0x5d9d88||0x1f4,function(_0x39aff6){const _0x1bc12b=a326_0x113a;logger[_0x1bc12b(0x133)](_0x39aff6['stack']),_0x39aff6[_0x1bc12b(0x140)]&&delete _0x39aff6[_0x1bc12b(0x140)],_0x3c6f04[_0x1bc12b(0x144)](_0x5d9d88)[_0x1bc12b(0x146)](_0x39aff6);};}exports[a326_0x5a4fa9(0x116)]=function(_0xc5bb14,_0x3204c9){const _0x30248a=a326_0x5a4fa9;let _0x16a33f={};const _0x4a7a17={},_0x55c227={'count':0x0,'rows':[]},_0x405879=_[_0x30248a(0x11d)](db[_0x30248a(0x12b)]['rawAttributes'],function(_0x35b2d5){const _0x45b463=_0x30248a;return{'name':_0x35b2d5[_0x45b463(0x11f)],'type':_0x35b2d5[_0x45b463(0x114)][_0x45b463(0x119)]};});_0x4a7a17[_0x30248a(0x137)]=_[_0x30248a(0x11d)](_0x405879,_0x30248a(0x140)),_0x4a7a17[_0x30248a(0x142)]=_[_0x30248a(0x131)](_0xc5bb14['query']),_0x4a7a17['filters']=_['intersection'](_0x4a7a17[_0x30248a(0x137)],_0x4a7a17[_0x30248a(0x142)]),_0x16a33f[_0x30248a(0x126)]=_[_0x30248a(0x12c)](_0x4a7a17[_0x30248a(0x137)],qs[_0x30248a(0x147)](_0xc5bb14['query'][_0x30248a(0x147)])),_0x16a33f[_0x30248a(0x126)]=_0x16a33f[_0x30248a(0x126)][_0x30248a(0x12e)]?_0x16a33f[_0x30248a(0x126)]:_0x4a7a17[_0x30248a(0x137)];typeof _0xc5bb14[_0x30248a(0x142)][_0x30248a(0x13e)]===_0x30248a(0x148)&&(_0x16a33f[_0x30248a(0x10f)]=qs['limit'](_0xc5bb14[_0x30248a(0x142)][_0x30248a(0x10f)]),_0x16a33f[_0x30248a(0x132)]=qs[_0x30248a(0x132)](_0xc5bb14[_0x30248a(0x142)][_0x30248a(0x132)]));_0x16a33f[_0x30248a(0x11e)]=qs[_0x30248a(0x11b)](_0xc5bb14['query']['sort']),_0x16a33f[_0x30248a(0x120)]=qs[_0x30248a(0x113)](_[_0x30248a(0x129)](_0xc5bb14[_0x30248a(0x142)],_0x4a7a17[_0x30248a(0x113)]),_0x405879);_0xc5bb14[_0x30248a(0x142)][_0x30248a(0x112)]&&(_0x16a33f['where']=_[_0x30248a(0x139)](_0x16a33f[_0x30248a(0x120)],{[Op['or']]:_[_0x30248a(0x11d)](_0x405879,function(_0x22020f){const _0x1cc028=_0x30248a;if(_0x22020f['type']!=='VIRTUAL'){const _0x29ab8a={};return _0x29ab8a[_0x22020f['name']]={[Op[_0x1cc028(0x141)]]:'%'+_0xc5bb14['query'][_0x1cc028(0x112)]+'%'},_0x29ab8a;}})}));_0x16a33f=_[_0x30248a(0x139)]({},_0x16a33f,_0xc5bb14['options']);const _0x146491={'where':_0x16a33f[_0x30248a(0x120)]};return db[_0x30248a(0x12b)][_0x30248a(0x145)](_0x146491)[_0x30248a(0x121)](function(_0x344480){const _0x464cd8=_0x30248a;return _0x55c227[_0x464cd8(0x145)]=_0x344480,_0xc5bb14[_0x464cd8(0x142)][_0x464cd8(0x115)]&&(_0x16a33f[_0x464cd8(0x135)]=[{'all':!![]}]),db[_0x464cd8(0x12b)][_0x464cd8(0x13c)](_0x16a33f);})[_0x30248a(0x121)](function(_0x2afd85){const _0x26de5a=_0x30248a;return _0x55c227[_0x26de5a(0x13f)]=_0x2afd85,_0x55c227;})['then'](respondWithFilteredResult(_0x3204c9,_0x16a33f))['catch'](handleError(_0x3204c9,null));},exports['show']=function(_0x3f82d3,_0x217978){const _0x2294c9=a326_0x5a4fa9;let _0x3e6b72={'raw':![],'where':{'id':_0x3f82d3[_0x2294c9(0x12a)]['id']}};const _0x4c2fc4={};return _0x4c2fc4[_0x2294c9(0x137)]=_[_0x2294c9(0x131)](db[_0x2294c9(0x12b)][_0x2294c9(0x138)]),_0x4c2fc4[_0x2294c9(0x142)]=_['keys'](_0x3f82d3['query']),_0x4c2fc4[_0x2294c9(0x113)]=_['intersection'](_0x4c2fc4['model'],_0x4c2fc4[_0x2294c9(0x142)]),_0x3e6b72[_0x2294c9(0x126)]=_['intersection'](_0x4c2fc4[_0x2294c9(0x137)],qs[_0x2294c9(0x147)](_0x3f82d3['query']['fields'])),_0x3e6b72[_0x2294c9(0x126)]=_0x3e6b72[_0x2294c9(0x126)][_0x2294c9(0x12e)]?_0x3e6b72[_0x2294c9(0x126)]:_0x4c2fc4[_0x2294c9(0x137)],_0x3f82d3[_0x2294c9(0x142)][_0x2294c9(0x115)]&&(_0x3e6b72[_0x2294c9(0x135)]=[{'all':!![]}]),_0x3e6b72=_[_0x2294c9(0x139)]({},_0x3e6b72,_0x3f82d3[_0x2294c9(0x136)]),db[_0x2294c9(0x12b)]['findOne'](_0x3e6b72)[_0x2294c9(0x121)](handleEntityNotFound(_0x217978,null))[_0x2294c9(0x121)](respondWithResult(_0x217978,null))[_0x2294c9(0x110)](handleError(_0x217978,null));},exports['create']=function(_0x36e565,_0x107afd){const _0x3996db=a326_0x5a4fa9;return db[_0x3996db(0x12b)][_0x3996db(0x13d)](_0x36e565[_0x3996db(0x127)],{})['then'](respondWithResult(_0x107afd,0xc9))['catch'](handleError(_0x107afd,null));},exports['update']=function(_0x3d95c4,_0x4211e6){const _0x33fb2d=a326_0x5a4fa9;return _0x3d95c4[_0x33fb2d(0x127)]['id']&&delete _0x3d95c4['body']['id'],db[_0x33fb2d(0x12b)]['findOne']({'where':{'id':_0x3d95c4[_0x33fb2d(0x12a)]['id']}})[_0x33fb2d(0x121)](handleEntityNotFound(_0x4211e6,null))['then'](saveUpdates(_0x3d95c4[_0x33fb2d(0x127)],null))[_0x33fb2d(0x121)](respondWithResult(_0x4211e6,null))[_0x33fb2d(0x110)](handleError(_0x4211e6,null));},exports[a326_0x5a4fa9(0x122)]=function(_0x2b04f1,_0x10a792){const _0x34e56b=a326_0x5a4fa9;return db[_0x34e56b(0x12b)]['findOne']({'where':{'id':_0x2b04f1[_0x34e56b(0x12a)]['id']}})[_0x34e56b(0x121)](handleEntityNotFound(_0x10a792,null))[_0x34e56b(0x121)](removeEntity(_0x10a792,null))[_0x34e56b(0x110)](handleError(_0x10a792,null));},exports[a326_0x5a4fa9(0x143)]=function(_0x59cf93,_0x56e50c){const _0x5cd56a=a326_0x5a4fa9;let _0x5c8a5c={};const _0x4da72a={};let _0xc14594,_0x2c6e6a;return db['FreshsalesConfiguration'][_0x5cd56a(0x111)]({'where':{'id':_0x59cf93[_0x5cd56a(0x12a)]['id']}})[_0x5cd56a(0x121)](handleEntityNotFound(_0x56e50c,null))['then'](function(_0x2607bc){const _0x35872d=_0x5cd56a;if(_0x2607bc)return _0xc14594=_0x2607bc,_0x4da72a[_0x35872d(0x137)]=_[_0x35872d(0x131)](db['FreshsalesField'][_0x35872d(0x138)]),_0x4da72a['query']=_[_0x35872d(0x131)](_0x59cf93['query']),_0x4da72a['filters']=_[_0x35872d(0x12c)](_0x4da72a[_0x35872d(0x137)],_0x4da72a['query']),_0x5c8a5c[_0x35872d(0x126)]=_[_0x35872d(0x12c)](_0x4da72a['model'],qs['fields'](_0x59cf93[_0x35872d(0x142)][_0x35872d(0x147)])),_0x5c8a5c[_0x35872d(0x126)]=_0x5c8a5c[_0x35872d(0x126)]['length']?_0x5c8a5c['attributes']:_0x4da72a[_0x35872d(0x137)],_0x5c8a5c[_0x35872d(0x11e)]=qs[_0x35872d(0x11b)](_0x59cf93[_0x35872d(0x142)]['sort']),_0x5c8a5c[_0x35872d(0x120)]=qs[_0x35872d(0x113)](_[_0x35872d(0x129)](_0x59cf93[_0x35872d(0x142)],_0x4da72a[_0x35872d(0x113)])),_0x59cf93[_0x35872d(0x142)][_0x35872d(0x112)]&&(_0x5c8a5c[_0x35872d(0x120)]=_[_0x35872d(0x139)](_0x5c8a5c[_0x35872d(0x120)],{[Op['or']]:_[_0x35872d(0x11d)](_0x5c8a5c['attributes'],function(_0x3a138e){const _0x23dad0=_0x35872d,_0x2e36e9={};return _0x2e36e9[_0x3a138e]={[Op[_0x23dad0(0x141)]]:'%'+_0x59cf93[_0x23dad0(0x142)][_0x23dad0(0x112)]+'%'},_0x2e36e9;})})),_0x5c8a5c=_[_0x35872d(0x139)]({},_0x5c8a5c,_0x59cf93[_0x35872d(0x136)]),_0xc14594[_0x35872d(0x143)](_0x5c8a5c);})[_0x5cd56a(0x121)](function(_0x4a9b46){const _0x1c86e2=_0x5cd56a;if(_0x4a9b46)return _0x2c6e6a=_0x4a9b46['length'],typeof _0x59cf93[_0x1c86e2(0x142)][_0x1c86e2(0x13e)]===_0x1c86e2(0x148)&&(_0x5c8a5c[_0x1c86e2(0x10f)]=qs[_0x1c86e2(0x10f)](_0x59cf93['query'][_0x1c86e2(0x10f)]),_0x5c8a5c[_0x1c86e2(0x132)]=qs[_0x1c86e2(0x132)](_0x59cf93[_0x1c86e2(0x142)][_0x1c86e2(0x132)])),_0xc14594['getSubjects'](_0x5c8a5c);})[_0x5cd56a(0x121)](function(_0x52229c){if(_0x52229c)return _0x52229c?{'count':_0x2c6e6a,'rows':_0x52229c}:null;})[_0x5cd56a(0x121)](respondWithResult(_0x56e50c,null))[_0x5cd56a(0x110)](handleError(_0x56e50c,null));},exports[a326_0x5a4fa9(0x130)]=function(_0x4c346d,_0x54a5bf){const _0x5dcbee=a326_0x5a4fa9;let _0x4ff0ac={};const _0x38b61d={};let _0x242c36,_0x5ed389;return db['FreshsalesConfiguration'][_0x5dcbee(0x111)]({'where':{'id':_0x4c346d[_0x5dcbee(0x12a)]['id']}})[_0x5dcbee(0x121)](handleEntityNotFound(_0x54a5bf,null))[_0x5dcbee(0x121)](function(_0x1343ed){const _0x5dd2c9=_0x5dcbee;if(_0x1343ed)return _0x242c36=_0x1343ed,_0x38b61d[_0x5dd2c9(0x137)]=_[_0x5dd2c9(0x131)](db['FreshsalesField']['rawAttributes']),_0x38b61d[_0x5dd2c9(0x142)]=_[_0x5dd2c9(0x131)](_0x4c346d['query']),_0x38b61d[_0x5dd2c9(0x113)]=_[_0x5dd2c9(0x12c)](_0x38b61d[_0x5dd2c9(0x137)],_0x38b61d[_0x5dd2c9(0x142)]),_0x4ff0ac['attributes']=_[_0x5dd2c9(0x12c)](_0x38b61d[_0x5dd2c9(0x137)],qs[_0x5dd2c9(0x147)](_0x4c346d[_0x5dd2c9(0x142)][_0x5dd2c9(0x147)])),_0x4ff0ac[_0x5dd2c9(0x126)]=_0x4ff0ac[_0x5dd2c9(0x126)][_0x5dd2c9(0x12e)]?_0x4ff0ac[_0x5dd2c9(0x126)]:_0x38b61d['model'],_0x4ff0ac['order']=qs['sort'](_0x4c346d[_0x5dd2c9(0x142)]['sort']),_0x4ff0ac[_0x5dd2c9(0x120)]=qs['filters'](_[_0x5dd2c9(0x129)](_0x4c346d[_0x5dd2c9(0x142)],_0x38b61d[_0x5dd2c9(0x113)])),_0x4c346d[_0x5dd2c9(0x142)][_0x5dd2c9(0x112)]&&(_0x4ff0ac[_0x5dd2c9(0x120)]=_[_0x5dd2c9(0x139)](_0x4ff0ac[_0x5dd2c9(0x120)],{[Op['or']]:_[_0x5dd2c9(0x11d)](_0x4ff0ac[_0x5dd2c9(0x126)],function(_0x53d3d4){const _0x225a50=_0x5dd2c9,_0x5d60f2={};return _0x5d60f2[_0x53d3d4]={[Op[_0x225a50(0x141)]]:'%'+_0x4c346d[_0x225a50(0x142)]['filter']+'%'},_0x5d60f2;})})),_0x4ff0ac=_['merge']({},_0x4ff0ac,_0x4c346d[_0x5dd2c9(0x136)]),_0x242c36[_0x5dd2c9(0x130)](_0x4ff0ac);})[_0x5dcbee(0x121)](function(_0x4d2811){const _0x2ceaa7=_0x5dcbee;if(_0x4d2811)return _0x5ed389=_0x4d2811['length'],typeof _0x4c346d[_0x2ceaa7(0x142)][_0x2ceaa7(0x13e)]==='undefined'&&(_0x4ff0ac[_0x2ceaa7(0x10f)]=qs[_0x2ceaa7(0x10f)](_0x4c346d[_0x2ceaa7(0x142)][_0x2ceaa7(0x10f)]),_0x4ff0ac[_0x2ceaa7(0x132)]=qs[_0x2ceaa7(0x132)](_0x4c346d[_0x2ceaa7(0x142)][_0x2ceaa7(0x132)])),_0x242c36[_0x2ceaa7(0x130)](_0x4ff0ac);})[_0x5dcbee(0x121)](function(_0x57dc81){if(_0x57dc81)return _0x57dc81?{'count':_0x5ed389,'rows':_0x57dc81}:null;})[_0x5dcbee(0x121)](respondWithResult(_0x54a5bf,null))[_0x5dcbee(0x110)](handleError(_0x54a5bf,null));},exports[a326_0x5a4fa9(0x12d)]=function(_0x115c96,_0x333eb3){const _0x596466=a326_0x5a4fa9;let _0x5349a8={};const _0x118979={};let _0x5a1ee4,_0x43396b;return db[_0x596466(0x12b)]['findOne']({'where':{'id':_0x115c96[_0x596466(0x12a)]['id']}})[_0x596466(0x121)](handleEntityNotFound(_0x333eb3,null))['then'](function(_0x4e26fc){const _0x3c037a=_0x596466;if(_0x4e26fc)return _0x5a1ee4=_0x4e26fc,_0x118979[_0x3c037a(0x137)]=_['keys'](db[_0x3c037a(0x128)][_0x3c037a(0x138)]),_0x118979[_0x3c037a(0x142)]=_[_0x3c037a(0x131)](_0x115c96['query']),_0x118979[_0x3c037a(0x113)]=_['intersection'](_0x118979['model'],_0x118979[_0x3c037a(0x142)]),_0x5349a8[_0x3c037a(0x126)]=_[_0x3c037a(0x12c)](_0x118979[_0x3c037a(0x137)],qs[_0x3c037a(0x147)](_0x115c96[_0x3c037a(0x142)][_0x3c037a(0x147)])),_0x5349a8[_0x3c037a(0x126)]=_0x5349a8[_0x3c037a(0x126)]['length']?_0x5349a8[_0x3c037a(0x126)]:_0x118979[_0x3c037a(0x137)],_0x5349a8[_0x3c037a(0x11e)]=qs['sort'](_0x115c96[_0x3c037a(0x142)][_0x3c037a(0x11b)]),_0x5349a8['where']=qs[_0x3c037a(0x113)](_[_0x3c037a(0x129)](_0x115c96[_0x3c037a(0x142)],_0x118979[_0x3c037a(0x113)])),_0x115c96['query'][_0x3c037a(0x112)]&&(_0x5349a8[_0x3c037a(0x120)]=_[_0x3c037a(0x139)](_0x5349a8[_0x3c037a(0x120)],{[Op['or']]:_[_0x3c037a(0x11d)](_0x5349a8['attributes'],function(_0xbfb783){const _0x46f7cb=_0x3c037a,_0x437f94={};return _0x437f94[_0xbfb783]={[Op['like']]:'%'+_0x115c96[_0x46f7cb(0x142)][_0x46f7cb(0x112)]+'%'},_0x437f94;})})),_0x5349a8=_[_0x3c037a(0x139)]({},_0x5349a8,_0x115c96[_0x3c037a(0x136)]),_0x5a1ee4[_0x3c037a(0x12d)](_0x5349a8);})['then'](function(_0x524d9f){const _0x2680c2=_0x596466;if(_0x524d9f)return _0x43396b=_0x524d9f[_0x2680c2(0x12e)],typeof _0x115c96['query'][_0x2680c2(0x13e)]===_0x2680c2(0x148)&&(_0x5349a8[_0x2680c2(0x10f)]=qs['limit'](_0x115c96['query'][_0x2680c2(0x10f)]),_0x5349a8[_0x2680c2(0x132)]=qs[_0x2680c2(0x132)](_0x115c96['query']['offset'])),_0x5a1ee4['getFields'](_0x5349a8);})[_0x596466(0x121)](function(_0x2c5ba7){if(_0x2c5ba7)return _0x2c5ba7?{'count':_0x43396b,'rows':_0x2c5ba7}:null;})[_0x596466(0x121)](respondWithResult(_0x333eb3,null))[_0x596466(0x110)](handleError(_0x333eb3,null));}; \ No newline at end of file diff --git a/server/api/intFreshsalesConfiguration/intFreshsalesConfiguration.model.js b/server/api/intFreshsalesConfiguration/intFreshsalesConfiguration.model.js index 3c67b50..3146285 100644 --- a/server/api/intFreshsalesConfiguration/intFreshsalesConfiguration.model.js +++ b/server/api/intFreshsalesConfiguration/intFreshsalesConfiguration.model.js @@ -1 +1 @@ -const a274_0x9b9b=['int_freshsales_configurations','define','./intFreshsalesConfiguration.attributes','FreshsalesConfiguration','exports'];(function(_0xde4438,_0x9b9bf9){const _0x3aff2b=function(_0x388e7e){while(--_0x388e7e){_0xde4438['push'](_0xde4438['shift']());}};_0x3aff2b(++_0x9b9bf9);}(a274_0x9b9b,0xac));const a274_0x3aff=function(_0xde4438,_0x9b9bf9){_0xde4438=_0xde4438-0x0;let _0x3aff2b=a274_0x9b9b[_0xde4438];return _0x3aff2b;};const _0xe97762=a274_0x3aff;'use strict';const attributes=require(_0xe97762('0x0'));module[_0xe97762('0x2')]=function(_0x388e7e){const _0x5b22e7=_0xe97762,_0x2cc1be=_0x388e7e[_0x5b22e7('0x4')](_0x5b22e7('0x1'),attributes,{'tableName':_0x5b22e7('0x3'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x2cc1be;}; \ No newline at end of file +const a327_0x45f3=['init','./intFreshsalesConfiguration.attributes','exports','function','./intFreshsalesConfiguration.options'];(function(_0x51c651,_0x4f3b7b){const _0x45f3d1=function(_0x57ac31){while(--_0x57ac31){_0x51c651['push'](_0x51c651['shift']());}};_0x45f3d1(++_0x4f3b7b);}(a327_0x45f3,0xdf));const a327_0x57ac=function(_0x51c651,_0x4f3b7b){_0x51c651=_0x51c651-0x171;let _0x45f3d1=a327_0x45f3[_0x51c651];return _0x45f3d1;};const a327_0x2f97c1=a327_0x57ac;'use strict';const {Model}=require('sequelize'),{attributes}=require(a327_0x2f97c1(0x174)),{options}=require(a327_0x2f97c1(0x172));class FreshsalesConfiguration extends Model{}function init(_0x57e4b1,_0x1c73d7){const _0x10868d=a327_0x2f97c1,_0x48517c=options(_0x57e4b1),_0x28c9ca=typeof _0x1c73d7===_0x10868d(0x171)?_0x1c73d7(_0x48517c):_0x48517c;return FreshsalesConfiguration['init'](attributes,_0x28c9ca),FreshsalesConfiguration;}module[a327_0x2f97c1(0x175)]['FreshsalesConfiguration']=FreshsalesConfiguration,module['exports'][a327_0x2f97c1(0x173)]=init; \ No newline at end of file diff --git a/server/api/intFreshsalesConfiguration/intFreshsalesConfiguration.options.js b/server/api/intFreshsalesConfiguration/intFreshsalesConfiguration.options.js new file mode 100644 index 0000000..5078f80 --- /dev/null +++ b/server/api/intFreshsalesConfiguration/intFreshsalesConfiguration.options.js @@ -0,0 +1 @@ +var a328_0x4e94=['exports','int_freshsales_configurations'];(function(_0x3fccc8,_0x528393){var _0x4e94fc=function(_0x5c5727){while(--_0x5c5727){_0x3fccc8['push'](_0x3fccc8['shift']());}};_0x4e94fc(++_0x528393);}(a328_0x4e94,0x16a));var a328_0x5c57=function(_0x3fccc8,_0x528393){_0x3fccc8=_0x3fccc8-0x18b;var _0x4e94fc=a328_0x4e94[_0x3fccc8];return _0x4e94fc;};var a328_0x27d076=a328_0x5c57;function options(_0x10a0f7){var _0x33f026=a328_0x5c57;return{'sequelize':_0x10a0f7,'tableName':_0x33f026(0x18c),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a328_0x27d076(0x18b)]['options']=options; \ No newline at end of file diff --git a/server/api/intFreshsalesField/index.js b/server/api/intFreshsalesField/index.js index 65b96f5..c4500b7 100644 --- a/server/api/intFreshsalesField/index.js +++ b/server/api/intFreshsalesField/index.js @@ -1 +1 @@ -const a275_0x4a11=['delete','put','isAuthenticated','index','destroy','Router','../../components/auth/service','./intFreshsalesField.controller','show','create','update','/:id','get'];(function(_0x256985,_0x4a1131){const _0x414ebf=function(_0x47f937){while(--_0x47f937){_0x256985['push'](_0x256985['shift']());}};_0x414ebf(++_0x4a1131);}(a275_0x4a11,0x16f));const a275_0x414e=function(_0x256985,_0x4a1131){_0x256985=_0x256985-0x0;let _0x414ebf=a275_0x4a11[_0x256985];return _0x414ebf;};const _0x269826=a275_0x414e;'use strict';const express=require('express'),router=express[_0x269826('0x2')](),auth=require(_0x269826('0x3')),controller=require(_0x269826('0x4'));router[_0x269826('0x9')]('/',auth[_0x269826('0xc')](),controller[_0x269826('0x0')]),router['get']('/:id',auth[_0x269826('0xc')](),controller[_0x269826('0x5')]),router['post']('/',auth[_0x269826('0xc')](),controller[_0x269826('0x6')]),router[_0x269826('0xb')](_0x269826('0x8'),auth['isAuthenticated'](),controller[_0x269826('0x7')]),router[_0x269826('0xa')]('/:id',auth[_0x269826('0xc')](),controller[_0x269826('0x1')]),module['exports']=router; \ No newline at end of file +const a329_0x3ce0=['post','index','get','create','destroy','/:id','update','./intFreshsalesField.controller','isAuthenticated','../../components/auth/service'];(function(_0x1e7905,_0x34ae2f){const _0x3ce0fd=function(_0x379070){while(--_0x379070){_0x1e7905['push'](_0x1e7905['shift']());}};_0x3ce0fd(++_0x34ae2f);}(a329_0x3ce0,0xb0));const a329_0x3790=function(_0x1e7905,_0x34ae2f){_0x1e7905=_0x1e7905-0x136;let _0x3ce0fd=a329_0x3ce0[_0x1e7905];return _0x3ce0fd;};const a329_0x414671=a329_0x3790;'use strict';const express=require('express'),router=express['Router'](),auth=require(a329_0x414671(0x139)),controller=require(a329_0x414671(0x137));router[a329_0x414671(0x13c)]('/',auth[a329_0x414671(0x138)](),controller[a329_0x414671(0x13b)]),router[a329_0x414671(0x13c)]('/:id',auth['isAuthenticated'](),controller['show']),router[a329_0x414671(0x13a)]('/',auth[a329_0x414671(0x138)](),controller[a329_0x414671(0x13d)]),router['put'](a329_0x414671(0x13f),auth['isAuthenticated'](),controller[a329_0x414671(0x136)]),router['delete'](a329_0x414671(0x13f),auth[a329_0x414671(0x138)](),controller[a329_0x414671(0x13e)]),module['exports']=router; \ No newline at end of file diff --git a/server/api/intFreshsalesField/intFreshsalesField.attributes.js b/server/api/intFreshsalesField/intFreshsalesField.attributes.js index 48c7894..8c42665 100644 --- a/server/api/intFreshsalesField/intFreshsalesField.attributes.js +++ b/server/api/intFreshsalesField/intFreshsalesField.attributes.js @@ -1 +1 @@ -const a276_0x2c8c=['BOOLEAN','variable','sequelize','string','keyValue','customVariable','exports','STRING','ENUM'];(function(_0x422c3d,_0x2c8c3b){const _0x4a4ed9=function(_0x2410e7){while(--_0x2410e7){_0x422c3d['push'](_0x422c3d['shift']());}};_0x4a4ed9(++_0x2c8c3b);}(a276_0x2c8c,0x17c));const a276_0x4a4e=function(_0x422c3d,_0x2c8c3b){_0x422c3d=_0x422c3d-0x0;let _0x4a4ed9=a276_0x2c8c[_0x422c3d];return _0x4a4ed9;};const _0x4bb915=a276_0x4a4e;'use strict';const Sequelize=require(_0x4bb915('0x0'));module[_0x4bb915('0x4')]={'type':{'type':Sequelize[_0x4bb915('0x6')](_0x4bb915('0x1'),'variable',_0x4bb915('0x3'),_0x4bb915('0x2')),'defaultValue':_0x4bb915('0x1')},'content':{'type':Sequelize['STRING']},'key':{'type':Sequelize[_0x4bb915('0x5')]},'keyType':{'type':Sequelize[_0x4bb915('0x6')](_0x4bb915('0x1'),_0x4bb915('0x8'),_0x4bb915('0x3'))},'keyContent':{'type':Sequelize[_0x4bb915('0x5')]},'idField':{'type':Sequelize[_0x4bb915('0x5')]},'nameField':{'type':Sequelize['STRING']},'customField':{'type':Sequelize[_0x4bb915('0x7')],'defaultValue':!![]},'variableName':{'type':Sequelize[_0x4bb915('0x5')]}}; \ No newline at end of file +const a330_0x3e6d=['exports','string','sequelize','attributes','variable','STRING','BOOLEAN','ENUM','customVariable'];(function(_0x38fa68,_0x5bc5b4){const _0x3e6d98=function(_0x3d97dc){while(--_0x3d97dc){_0x38fa68['push'](_0x38fa68['shift']());}};_0x3e6d98(++_0x5bc5b4);}(a330_0x3e6d,0x1a8));const a330_0x3d97=function(_0x38fa68,_0x5bc5b4){_0x38fa68=_0x38fa68-0xd4;let _0x3e6d98=a330_0x3e6d[_0x38fa68];return _0x3e6d98;};const a330_0x1b38e7=a330_0x3d97;'use strict';const {DataTypes}=require(a330_0x1b38e7(0xd5)),attributes={'type':{'type':DataTypes[a330_0x1b38e7(0xda)](a330_0x1b38e7(0xd4),a330_0x1b38e7(0xd7),a330_0x1b38e7(0xdb),'keyValue'),'defaultValue':a330_0x1b38e7(0xd4)},'content':{'type':DataTypes['STRING']},'key':{'type':DataTypes[a330_0x1b38e7(0xd8)]},'keyType':{'type':DataTypes[a330_0x1b38e7(0xda)]('string',a330_0x1b38e7(0xd7),a330_0x1b38e7(0xdb))},'keyContent':{'type':DataTypes[a330_0x1b38e7(0xd8)]},'idField':{'type':DataTypes[a330_0x1b38e7(0xd8)]},'nameField':{'type':DataTypes[a330_0x1b38e7(0xd8)]},'customField':{'type':DataTypes[a330_0x1b38e7(0xd9)],'defaultValue':!![]},'variableName':{'type':DataTypes[a330_0x1b38e7(0xd8)]}};module[a330_0x1b38e7(0xdc)][a330_0x1b38e7(0xd6)]=attributes; \ No newline at end of file diff --git a/server/api/intFreshsalesField/intFreshsalesField.controller.js b/server/api/intFreshsalesField/intFreshsalesField.controller.js index 36a0f0f..d734345 100644 --- a/server/api/intFreshsalesField/intFreshsalesField.controller.js +++ b/server/api/intFreshsalesField/intFreshsalesField.controller.js @@ -1 +1 @@ -const a277_0x127b=['findOne','body','map','count','fields','lodash','create','key','FreshsalesField','nolimit','like','then','api','sequelize','status','length','stack','../../config/logger','filters','filter','catch','sort','limit','Content-Range','attributes','undefined','json','show','include','keys','intersection','findAll','../../components/parsers/qs','VIRTUAL','../../mysqldb','index','destroy','merge','sendStatus','set','error','name','end','includeAll','query','offset','update','fieldName','rawAttributes','model','type','rows','where','options'];(function(_0x4a0778,_0x127bfc){const _0xaefa5b=function(_0x30f633){while(--_0x30f633){_0x4a0778['push'](_0x4a0778['shift']());}};_0xaefa5b(++_0x127bfc);}(a277_0x127b,0x1db));const a277_0xaefa=function(_0x4a0778,_0x127bfc){_0x4a0778=_0x4a0778-0x0;let _0xaefa5b=a277_0x127b[_0x4a0778];return _0xaefa5b;};const _0x4466bd=a277_0xaefa;'use strict';const _=require(_0x4466bd('0x10')),qs=require(_0x4466bd('0x2b')),logger=require(_0x4466bd('0x1c'))(_0x4466bd('0x17')),db=require(_0x4466bd('0x2d'))['db'],{Op}=require(_0x4466bd('0x18'));function respondWithResult(_0x30f633,_0x315d74){return _0x315d74=_0x315d74||0xc8,function(_0x3963e1){const _0x3a4421=a277_0xaefa;if(_0x3963e1)return _0x30f633[_0x3a4421('0x19')](_0x315d74)[_0x3a4421('0x25')](_0x3963e1);};}function respondWithFilteredResult(_0x15d4e1,_0x1b28be){return function(_0x2c02da){const _0x541257=a277_0xaefa;if(_0x2c02da){const _0x52675d=_0x2c02da[_0x541257('0xe')],_0x3beabe=_0x1b28be[_0x541257('0x2')];let _0x5f347e=_0x1b28be[_0x541257('0x2')]+_0x1b28be['limit'],_0x15c37a;return _0x5f347e>=_0x52675d?(_0x5f347e=_0x52675d,_0x15c37a=0xc8):_0x15c37a=0xce,_0x15d4e1[_0x541257('0x19')](_0x15c37a),_0x15d4e1[_0x541257('0x32')](_0x541257('0x22'),_0x3beabe+'-'+_0x5f347e+'/'+_0x52675d)[_0x541257('0x25')](_0x2c02da);}return null;};}function saveUpdates(_0x374925){return function(_0x4a9942){const _0x184353=a277_0xaefa;if(_0x4a9942)return _0x4a9942[_0x184353('0x3')](_0x374925)[_0x184353('0x16')](function(_0x5bcfe8){return _0x5bcfe8;});return null;};}function removeEntity(_0x11542a){return function(_0x3ebcb1){const _0x384e85=a277_0xaefa;if(_0x3ebcb1)return _0x3ebcb1[_0x384e85('0x2f')]()[_0x384e85('0x16')](function(){const _0x1f45c4=_0x384e85;_0x11542a['status'](0xcc)[_0x1f45c4('0x35')]();});};}function handleEntityNotFound(_0x544402){return function(_0x154748){const _0x494279=a277_0xaefa;return!_0x154748&&_0x544402[_0x494279('0x31')](0x194),_0x154748;};}function handleError(_0x12488f,_0x437894){return _0x437894=_0x437894||0x1f4,function(_0x51ff89){const _0x576f50=a277_0xaefa;logger[_0x576f50('0x33')](_0x51ff89[_0x576f50('0x1b')]),_0x51ff89[_0x576f50('0x34')]&&delete _0x51ff89[_0x576f50('0x34')],_0x12488f['status'](_0x437894)['send'](_0x51ff89);};}exports[_0x4466bd('0x2e')]=function(_0x3b9bd1,_0x896d83){const _0x572dbb=_0x4466bd;let _0x33647d={};const _0x1b2546={},_0x5ce933={'count':0x0,'rows':[]},_0xddbfc6=_[_0x572dbb('0xd')](db['FreshsalesField'][_0x572dbb('0x5')],function(_0x10b571){const _0x238719=_0x572dbb;return{'name':_0x10b571[_0x238719('0x4')],'type':_0x10b571['type'][_0x238719('0x12')]};});_0x1b2546[_0x572dbb('0x6')]=_['map'](_0xddbfc6,'name'),_0x1b2546[_0x572dbb('0x1')]=_[_0x572dbb('0x28')](_0x3b9bd1[_0x572dbb('0x1')]),_0x1b2546[_0x572dbb('0x1d')]=_[_0x572dbb('0x29')](_0x1b2546[_0x572dbb('0x6')],_0x1b2546['query']),_0x33647d[_0x572dbb('0x23')]=_[_0x572dbb('0x29')](_0x1b2546[_0x572dbb('0x6')],qs[_0x572dbb('0xf')](_0x3b9bd1[_0x572dbb('0x1')][_0x572dbb('0xf')])),_0x33647d[_0x572dbb('0x23')]=_0x33647d['attributes'][_0x572dbb('0x1a')]?_0x33647d[_0x572dbb('0x23')]:_0x1b2546[_0x572dbb('0x6')];typeof _0x3b9bd1[_0x572dbb('0x1')][_0x572dbb('0x14')]===_0x572dbb('0x24')&&(_0x33647d[_0x572dbb('0x21')]=qs['limit'](_0x3b9bd1['query']['limit']),_0x33647d[_0x572dbb('0x2')]=qs[_0x572dbb('0x2')](_0x3b9bd1[_0x572dbb('0x1')][_0x572dbb('0x2')]));_0x33647d['order']=qs[_0x572dbb('0x20')](_0x3b9bd1[_0x572dbb('0x1')][_0x572dbb('0x20')]),_0x33647d[_0x572dbb('0x9')]=qs[_0x572dbb('0x1d')](_['pick'](_0x3b9bd1[_0x572dbb('0x1')],_0x1b2546['filters']),_0xddbfc6);_0x3b9bd1[_0x572dbb('0x1')][_0x572dbb('0x1e')]&&(_0x33647d[_0x572dbb('0x9')]=_[_0x572dbb('0x30')](_0x33647d['where'],{[Op['or']]:_['map'](_0xddbfc6,function(_0x18fbae){const _0x5762b3=_0x572dbb;if(_0x18fbae[_0x5762b3('0x7')]!==_0x5762b3('0x2c')){const _0x25f727={};return _0x25f727[_0x18fbae['name']]={[Op[_0x5762b3('0x15')]]:'%'+_0x3b9bd1['query'][_0x5762b3('0x1e')]+'%'},_0x25f727;}})}));_0x33647d=_[_0x572dbb('0x30')]({},_0x33647d,_0x3b9bd1[_0x572dbb('0xa')]);const _0x557d4a={'where':_0x33647d[_0x572dbb('0x9')]};return db[_0x572dbb('0x13')][_0x572dbb('0xe')](_0x557d4a)[_0x572dbb('0x16')](function(_0x400e5a){const _0x24ef1=_0x572dbb;return _0x5ce933[_0x24ef1('0xe')]=_0x400e5a,_0x3b9bd1[_0x24ef1('0x1')]['includeAll']&&(_0x33647d[_0x24ef1('0x27')]=[{'all':!![]}]),db[_0x24ef1('0x13')][_0x24ef1('0x2a')](_0x33647d);})[_0x572dbb('0x16')](function(_0x13b432){const _0x4456dd=_0x572dbb;return _0x5ce933[_0x4456dd('0x8')]=_0x13b432,_0x5ce933;})[_0x572dbb('0x16')](respondWithFilteredResult(_0x896d83,_0x33647d))[_0x572dbb('0x1f')](handleError(_0x896d83,null));},exports[_0x4466bd('0x26')]=function(_0x52606f,_0x2071b2){const _0x90fa7a=_0x4466bd;let _0x5ad1f2={'raw':!![],'where':{'id':_0x52606f['params']['id']}};const _0x193d05={};return _0x193d05['model']=_['keys'](db['FreshsalesField']['rawAttributes']),_0x193d05[_0x90fa7a('0x1')]=_['keys'](_0x52606f['query']),_0x193d05['filters']=_[_0x90fa7a('0x29')](_0x193d05[_0x90fa7a('0x6')],_0x193d05[_0x90fa7a('0x1')]),_0x5ad1f2['attributes']=_[_0x90fa7a('0x29')](_0x193d05['model'],qs[_0x90fa7a('0xf')](_0x52606f[_0x90fa7a('0x1')][_0x90fa7a('0xf')])),_0x5ad1f2[_0x90fa7a('0x23')]=_0x5ad1f2[_0x90fa7a('0x23')]['length']?_0x5ad1f2[_0x90fa7a('0x23')]:_0x193d05[_0x90fa7a('0x6')],_0x52606f[_0x90fa7a('0x1')][_0x90fa7a('0x0')]&&(_0x5ad1f2[_0x90fa7a('0x27')]=[{'all':!![]}]),_0x5ad1f2=_[_0x90fa7a('0x30')]({},_0x5ad1f2,_0x52606f[_0x90fa7a('0xa')]),db[_0x90fa7a('0x13')][_0x90fa7a('0xb')](_0x5ad1f2)[_0x90fa7a('0x16')](handleEntityNotFound(_0x2071b2,null))[_0x90fa7a('0x16')](respondWithResult(_0x2071b2,null))[_0x90fa7a('0x1f')](handleError(_0x2071b2,null));},exports['create']=function(_0x43fe6a,_0x483fa6){const _0x5dc935=_0x4466bd;return db[_0x5dc935('0x13')][_0x5dc935('0x11')](_0x43fe6a[_0x5dc935('0xc')],{})[_0x5dc935('0x16')](respondWithResult(_0x483fa6,0xc9))[_0x5dc935('0x1f')](handleError(_0x483fa6,null));},exports[_0x4466bd('0x3')]=function(_0x4d3f84,_0x5d9219){const _0x1bf451=_0x4466bd;return _0x4d3f84['body']['id']&&delete _0x4d3f84['body']['id'],db['FreshsalesField']['findOne']({'where':{'id':_0x4d3f84['params']['id']}})[_0x1bf451('0x16')](handleEntityNotFound(_0x5d9219,null))[_0x1bf451('0x16')](saveUpdates(_0x4d3f84[_0x1bf451('0xc')],null))[_0x1bf451('0x16')](respondWithResult(_0x5d9219,null))[_0x1bf451('0x1f')](handleError(_0x5d9219,null));},exports['destroy']=function(_0x1eed0f,_0x12344b){const _0x3ab67e=_0x4466bd;return db[_0x3ab67e('0x13')][_0x3ab67e('0xb')]({'where':{'id':_0x1eed0f['params']['id']}})[_0x3ab67e('0x16')](handleEntityNotFound(_0x12344b,null))[_0x3ab67e('0x16')](removeEntity(_0x12344b,null))[_0x3ab67e('0x1f')](handleError(_0x12344b,null));}; \ No newline at end of file +const a331_0x21e0=['../../config/logger','query','set','catch','keys','options','pick','then','offset','length','name','json','filters','rows','key','rawAttributes','error','body','includeAll','lodash','like','create','fieldName','api','sort','status','../../mysqldb','end','FreshsalesField','where','map','nolimit','undefined','destroy','update','count','VIRTUAL','limit','params','show','model','type','filter','attributes','intersection','findOne','fields','include','Content-Range','merge','order'];(function(_0xec4e92,_0x1012ec){const _0x21e0bd=function(_0x38e104){while(--_0x38e104){_0xec4e92['push'](_0xec4e92['shift']());}};_0x21e0bd(++_0x1012ec);}(a331_0x21e0,0x193));const a331_0x38e1=function(_0xec4e92,_0x1012ec){_0xec4e92=_0xec4e92-0x1a4;let _0x21e0bd=a331_0x21e0[_0xec4e92];return _0x21e0bd;};const a331_0x372508=a331_0x38e1;'use strict';const _=require(a331_0x372508(0x1bc)),qs=require('../../components/parsers/qs'),logger=require(a331_0x372508(0x1a9))(a331_0x372508(0x1c0)),{db}=require(a331_0x372508(0x1c3)),{Op}=require('sequelize');function respondWithResult(_0x18cb0b,_0x1a4772){return _0x1a4772=_0x1a4772||0xc8,function(_0x4f500a){const _0x319d7b=a331_0x38e1;if(_0x4f500a)return _0x18cb0b['status'](_0x1a4772)[_0x319d7b(0x1b4)](_0x4f500a);};}function respondWithFilteredResult(_0x3f0d68,_0x39196e){return function(_0x956dd2){const _0x75103d=a331_0x38e1;if(_0x956dd2){const _0x3bf2e0=_0x956dd2[_0x75103d(0x1cc)],_0x3d8621=_0x39196e[_0x75103d(0x1b1)];let _0x4ab74f=_0x39196e[_0x75103d(0x1b1)]+_0x39196e['limit'],_0x54bdea;return _0x4ab74f>=_0x3bf2e0?(_0x4ab74f=_0x3bf2e0,_0x54bdea=0xc8):_0x54bdea=0xce,_0x3f0d68['status'](_0x54bdea),_0x3f0d68[_0x75103d(0x1ab)](_0x75103d(0x1a6),_0x3d8621+'-'+_0x4ab74f+'/'+_0x3bf2e0)[_0x75103d(0x1b4)](_0x956dd2);}return null;};}function saveUpdates(_0x5d0bf4){return function(_0x3e2dee){const _0x5ed43a=a331_0x38e1;if(_0x3e2dee)return _0x3e2dee[_0x5ed43a(0x1cb)](_0x5d0bf4)[_0x5ed43a(0x1b0)](function(_0x390b66){return _0x390b66;});return null;};}function removeEntity(_0x1d734e){return function(_0x3ac457){const _0x564ad1=a331_0x38e1;if(_0x3ac457)return _0x3ac457[_0x564ad1(0x1ca)]()[_0x564ad1(0x1b0)](function(){const _0x3d1a4a=_0x564ad1;_0x1d734e['status'](0xcc)[_0x3d1a4a(0x1c4)]();});};}function handleEntityNotFound(_0x1ae98d){return function(_0x57bf2d){return!_0x57bf2d&&_0x1ae98d['sendStatus'](0x194),_0x57bf2d;};}function handleError(_0x5f32d6,_0x190900){return _0x190900=_0x190900||0x1f4,function(_0x4fe84a){const _0x38f5cb=a331_0x38e1;logger[_0x38f5cb(0x1b9)](_0x4fe84a['stack']),_0x4fe84a[_0x38f5cb(0x1b3)]&&delete _0x4fe84a[_0x38f5cb(0x1b3)],_0x5f32d6[_0x38f5cb(0x1c2)](_0x190900)['send'](_0x4fe84a);};}exports['index']=function(_0x3198a0,_0x388415){const _0x569863=a331_0x372508;let _0x4b4c2d={};const _0x4af07b={},_0x576119={'count':0x0,'rows':[]},_0x5365f4=_[_0x569863(0x1c7)](db[_0x569863(0x1c5)][_0x569863(0x1b8)],function(_0x3ccdbc){const _0x189fac=_0x569863;return{'name':_0x3ccdbc[_0x189fac(0x1bf)],'type':_0x3ccdbc[_0x189fac(0x1d2)][_0x189fac(0x1b7)]};});_0x4af07b['model']=_[_0x569863(0x1c7)](_0x5365f4,_0x569863(0x1b3)),_0x4af07b[_0x569863(0x1aa)]=_['keys'](_0x3198a0[_0x569863(0x1aa)]),_0x4af07b[_0x569863(0x1b5)]=_['intersection'](_0x4af07b[_0x569863(0x1d1)],_0x4af07b[_0x569863(0x1aa)]),_0x4b4c2d['attributes']=_[_0x569863(0x1d5)](_0x4af07b[_0x569863(0x1d1)],qs[_0x569863(0x1a4)](_0x3198a0['query'][_0x569863(0x1a4)])),_0x4b4c2d[_0x569863(0x1d4)]=_0x4b4c2d['attributes']['length']?_0x4b4c2d[_0x569863(0x1d4)]:_0x4af07b[_0x569863(0x1d1)];typeof _0x3198a0[_0x569863(0x1aa)][_0x569863(0x1c8)]===_0x569863(0x1c9)&&(_0x4b4c2d[_0x569863(0x1ce)]=qs[_0x569863(0x1ce)](_0x3198a0[_0x569863(0x1aa)][_0x569863(0x1ce)]),_0x4b4c2d[_0x569863(0x1b1)]=qs[_0x569863(0x1b1)](_0x3198a0['query'][_0x569863(0x1b1)]));_0x4b4c2d[_0x569863(0x1a8)]=qs[_0x569863(0x1c1)](_0x3198a0[_0x569863(0x1aa)][_0x569863(0x1c1)]),_0x4b4c2d['where']=qs[_0x569863(0x1b5)](_[_0x569863(0x1af)](_0x3198a0[_0x569863(0x1aa)],_0x4af07b[_0x569863(0x1b5)]),_0x5365f4);_0x3198a0[_0x569863(0x1aa)][_0x569863(0x1d3)]&&(_0x4b4c2d['where']=_[_0x569863(0x1a7)](_0x4b4c2d[_0x569863(0x1c6)],{[Op['or']]:_[_0x569863(0x1c7)](_0x5365f4,function(_0x4604ae){const _0x37d96d=_0x569863;if(_0x4604ae[_0x37d96d(0x1d2)]!==_0x37d96d(0x1cd)){const _0xa128fb={};return _0xa128fb[_0x4604ae[_0x37d96d(0x1b3)]]={[Op[_0x37d96d(0x1bd)]]:'%'+_0x3198a0[_0x37d96d(0x1aa)][_0x37d96d(0x1d3)]+'%'},_0xa128fb;}})}));_0x4b4c2d=_[_0x569863(0x1a7)]({},_0x4b4c2d,_0x3198a0[_0x569863(0x1ae)]);const _0x82809={'where':_0x4b4c2d[_0x569863(0x1c6)]};return db[_0x569863(0x1c5)][_0x569863(0x1cc)](_0x82809)[_0x569863(0x1b0)](function(_0x5f491d){const _0x1008c0=_0x569863;return _0x576119[_0x1008c0(0x1cc)]=_0x5f491d,_0x3198a0[_0x1008c0(0x1aa)]['includeAll']&&(_0x4b4c2d[_0x1008c0(0x1a5)]=[{'all':!![]}]),db[_0x1008c0(0x1c5)]['findAll'](_0x4b4c2d);})[_0x569863(0x1b0)](function(_0x15e7e9){const _0x1b1665=_0x569863;return _0x576119[_0x1b1665(0x1b6)]=_0x15e7e9,_0x576119;})[_0x569863(0x1b0)](respondWithFilteredResult(_0x388415,_0x4b4c2d))[_0x569863(0x1ac)](handleError(_0x388415,null));},exports[a331_0x372508(0x1d0)]=function(_0xfd1a09,_0x4e67a6){const _0x1d7f0c=a331_0x372508;let _0x862181={'raw':!![],'where':{'id':_0xfd1a09[_0x1d7f0c(0x1cf)]['id']}};const _0x2edc76={};return _0x2edc76['model']=_['keys'](db[_0x1d7f0c(0x1c5)][_0x1d7f0c(0x1b8)]),_0x2edc76[_0x1d7f0c(0x1aa)]=_[_0x1d7f0c(0x1ad)](_0xfd1a09[_0x1d7f0c(0x1aa)]),_0x2edc76[_0x1d7f0c(0x1b5)]=_[_0x1d7f0c(0x1d5)](_0x2edc76[_0x1d7f0c(0x1d1)],_0x2edc76[_0x1d7f0c(0x1aa)]),_0x862181[_0x1d7f0c(0x1d4)]=_['intersection'](_0x2edc76['model'],qs[_0x1d7f0c(0x1a4)](_0xfd1a09[_0x1d7f0c(0x1aa)][_0x1d7f0c(0x1a4)])),_0x862181[_0x1d7f0c(0x1d4)]=_0x862181[_0x1d7f0c(0x1d4)][_0x1d7f0c(0x1b2)]?_0x862181[_0x1d7f0c(0x1d4)]:_0x2edc76[_0x1d7f0c(0x1d1)],_0xfd1a09['query'][_0x1d7f0c(0x1bb)]&&(_0x862181['include']=[{'all':!![]}]),_0x862181=_['merge']({},_0x862181,_0xfd1a09[_0x1d7f0c(0x1ae)]),db['FreshsalesField'][_0x1d7f0c(0x1d6)](_0x862181)[_0x1d7f0c(0x1b0)](handleEntityNotFound(_0x4e67a6,null))['then'](respondWithResult(_0x4e67a6,null))['catch'](handleError(_0x4e67a6,null));},exports[a331_0x372508(0x1be)]=function(_0x24ab6e,_0x511c00){const _0x1fb872=a331_0x372508;return db[_0x1fb872(0x1c5)][_0x1fb872(0x1be)](_0x24ab6e[_0x1fb872(0x1ba)],{})['then'](respondWithResult(_0x511c00,0xc9))[_0x1fb872(0x1ac)](handleError(_0x511c00,null));},exports[a331_0x372508(0x1cb)]=function(_0x41ca3b,_0x360b51){const _0x2a01f4=a331_0x372508;return _0x41ca3b[_0x2a01f4(0x1ba)]['id']&&delete _0x41ca3b[_0x2a01f4(0x1ba)]['id'],db[_0x2a01f4(0x1c5)][_0x2a01f4(0x1d6)]({'where':{'id':_0x41ca3b['params']['id']}})[_0x2a01f4(0x1b0)](handleEntityNotFound(_0x360b51,null))['then'](saveUpdates(_0x41ca3b[_0x2a01f4(0x1ba)],null))[_0x2a01f4(0x1b0)](respondWithResult(_0x360b51,null))[_0x2a01f4(0x1ac)](handleError(_0x360b51,null));},exports['destroy']=function(_0x5128b4,_0x44041d){const _0xf1d156=a331_0x372508;return db[_0xf1d156(0x1c5)]['findOne']({'where':{'id':_0x5128b4[_0xf1d156(0x1cf)]['id']}})['then'](handleEntityNotFound(_0x44041d,null))[_0xf1d156(0x1b0)](removeEntity(_0x44041d,null))[_0xf1d156(0x1ac)](handleError(_0x44041d,null));}; \ No newline at end of file diff --git a/server/api/intFreshsalesField/intFreshsalesField.model.js b/server/api/intFreshsalesField/intFreshsalesField.model.js index a5a0014..654c0e3 100644 --- a/server/api/intFreshsalesField/intFreshsalesField.model.js +++ b/server/api/intFreshsalesField/intFreshsalesField.model.js @@ -1 +1 @@ -const a278_0x27b0=['exports','freshsales_unique_index','FieldId','FreshsalesField','int_freshsales_fields','idField','./intFreshsalesField.attributes','define'];(function(_0xe91b77,_0x27b090){const _0x240f2e=function(_0x5fb6b9){while(--_0x5fb6b9){_0xe91b77['push'](_0xe91b77['shift']());}};_0x240f2e(++_0x27b090);}(a278_0x27b0,0x108));const a278_0x240f=function(_0xe91b77,_0x27b090){_0xe91b77=_0xe91b77-0x0;let _0x240f2e=a278_0x27b0[_0xe91b77];return _0x240f2e;};const _0x48df6b=a278_0x240f;'use strict';const attributes=require(_0x48df6b('0x6'));module[_0x48df6b('0x0')]=function(_0x5fb6b9){const _0x51c0bf=_0x48df6b,_0x50eb86=_0x5fb6b9[_0x51c0bf('0x7')](_0x51c0bf('0x3'),attributes,{'tableName':_0x51c0bf('0x4'),'paranoid':![],'indexes':[{'name':_0x51c0bf('0x1'),'fields':[_0x51c0bf('0x5'),_0x51c0bf('0x2')],'unique':!![]}],'timestamps':!![]});return _0x50eb86;}; \ No newline at end of file +const a332_0x5720=['function','exports','./intFreshsalesField.options','init','FreshsalesField','sequelize'];(function(_0x4cb7a8,_0x45da6f){const _0x57206f=function(_0x277f2e){while(--_0x277f2e){_0x4cb7a8['push'](_0x4cb7a8['shift']());}};_0x57206f(++_0x45da6f);}(a332_0x5720,0x12b));const a332_0x277f=function(_0x4cb7a8,_0x45da6f){_0x4cb7a8=_0x4cb7a8-0x16f;let _0x57206f=a332_0x5720[_0x4cb7a8];return _0x57206f;};const a332_0x47bf06=a332_0x277f;'use strict';const {Model}=require(a332_0x47bf06(0x16f)),{attributes}=require('./intFreshsalesField.attributes'),{options}=require(a332_0x47bf06(0x172));class FreshsalesField extends Model{}function init(_0x16b970,_0x55e835){const _0x2bb8d4=a332_0x47bf06,_0x186558=options(_0x16b970),_0x4b9be4=typeof _0x55e835===_0x2bb8d4(0x170)?_0x55e835(_0x186558):_0x186558;return FreshsalesField[_0x2bb8d4(0x173)](attributes,_0x4b9be4),FreshsalesField;}module[a332_0x47bf06(0x171)][a332_0x47bf06(0x174)]=FreshsalesField,module[a332_0x47bf06(0x171)][a332_0x47bf06(0x173)]=init; \ No newline at end of file diff --git a/server/api/intFreshsalesField/intFreshsalesField.options.js b/server/api/intFreshsalesField/intFreshsalesField.options.js new file mode 100644 index 0000000..0e1cbc4 --- /dev/null +++ b/server/api/intFreshsalesField/intFreshsalesField.options.js @@ -0,0 +1 @@ +var a333_0x1a6c=['int_freshsales_fields','idField','FieldId','exports'];(function(_0x330029,_0x5c72a0){var _0x1a6c8a=function(_0x2fccf3){while(--_0x2fccf3){_0x330029['push'](_0x330029['shift']());}};_0x1a6c8a(++_0x5c72a0);}(a333_0x1a6c,0x1c9));var a333_0x2fcc=function(_0x330029,_0x5c72a0){_0x330029=_0x330029-0x77;var _0x1a6c8a=a333_0x1a6c[_0x330029];return _0x1a6c8a;};var a333_0x599ff9=a333_0x2fcc;function options(_0x4a67cb){var _0x3e6621=a333_0x2fcc;return{'sequelize':_0x4a67cb,'tableName':_0x3e6621(0x7a),'paranoid':![],'indexes':[{'name':'freshsales_unique_index','fields':[_0x3e6621(0x77),_0x3e6621(0x78)],'unique':!![]}],'timestamps':!![]};}module[a333_0x599ff9(0x79)]['options']=options; \ No newline at end of file diff --git a/server/api/intSalesforceAccount/index.js b/server/api/intSalesforceAccount/index.js index 579fa86..25eaed2 100644 --- a/server/api/intSalesforceAccount/index.js +++ b/server/api/intSalesforceAccount/index.js @@ -1 +1 @@ -const a279_0x3719=['express','get','./intSalesforceAccount.controller','isAuthenticated','addConfiguration','update','exports','/:id/fields','show','/:id','create','getConfigurations','getFields','index','post','/:id/configurations','destroy','delete'];(function(_0x47dfa9,_0x37193d){const _0x6d5137=function(_0x3c247f){while(--_0x3c247f){_0x47dfa9['push'](_0x47dfa9['shift']());}};_0x6d5137(++_0x37193d);}(a279_0x3719,0xaf));const a279_0x6d51=function(_0x47dfa9,_0x37193d){_0x47dfa9=_0x47dfa9-0x0;let _0x6d5137=a279_0x3719[_0x47dfa9];return _0x6d5137;};const _0x47e8d4=a279_0x6d51;'use strict';const express=require(_0x47e8d4('0x5')),router=express['Router'](),auth=require('../../components/auth/service'),controller=require(_0x47e8d4('0x7'));router[_0x47e8d4('0x6')]('/',auth['isAuthenticated'](),controller[_0x47e8d4('0x0')]),router[_0x47e8d4('0x6')]('/:id',auth['isAuthenticated'](),controller[_0x47e8d4('0xd')]),router[_0x47e8d4('0x6')](_0x47e8d4('0x2'),auth['isAuthenticated'](),controller[_0x47e8d4('0x10')]),router[_0x47e8d4('0x6')](_0x47e8d4('0xc'),auth[_0x47e8d4('0x8')](),controller[_0x47e8d4('0x11')]),router[_0x47e8d4('0x1')]('/',auth['isAuthenticated'](),controller[_0x47e8d4('0xf')]),router[_0x47e8d4('0x1')]('/:id/configurations',auth[_0x47e8d4('0x8')](),controller[_0x47e8d4('0x9')]),router['put'](_0x47e8d4('0xe'),auth['isAuthenticated'](),controller[_0x47e8d4('0xa')]),router[_0x47e8d4('0x4')](_0x47e8d4('0xe'),auth[_0x47e8d4('0x8')](),controller[_0x47e8d4('0x3')]),module[_0x47e8d4('0xb')]=router; \ No newline at end of file +const a334_0x2e9c=['addConfiguration','isAuthenticated','./intSalesforceAccount.controller','destroy','get','../../components/auth/service','delete','express','/:id/fields','Router','/:id/configurations','getConfigurations','update','/:id','exports','put','post','show'];(function(_0x590d9e,_0x158212){const _0x2e9cb9=function(_0x35e940){while(--_0x35e940){_0x590d9e['push'](_0x590d9e['shift']());}};_0x2e9cb9(++_0x158212);}(a334_0x2e9c,0x14d));const a334_0x35e9=function(_0x590d9e,_0x158212){_0x590d9e=_0x590d9e-0xec;let _0x2e9cb9=a334_0x2e9c[_0x590d9e];return _0x2e9cb9;};const a334_0x23deb3=a334_0x35e9;'use strict';const express=require(a334_0x23deb3(0xfc)),router=express[a334_0x23deb3(0xec)](),auth=require(a334_0x23deb3(0xfa)),controller=require(a334_0x23deb3(0xf7));router[a334_0x23deb3(0xf9)]('/',auth['isAuthenticated'](),controller['index']),router[a334_0x23deb3(0xf9)](a334_0x23deb3(0xf0),auth[a334_0x23deb3(0xf6)](),controller[a334_0x23deb3(0xf4)]),router[a334_0x23deb3(0xf9)](a334_0x23deb3(0xed),auth[a334_0x23deb3(0xf6)](),controller[a334_0x23deb3(0xee)]),router[a334_0x23deb3(0xf9)](a334_0x23deb3(0xfd),auth[a334_0x23deb3(0xf6)](),controller['getFields']),router[a334_0x23deb3(0xf3)]('/',auth['isAuthenticated'](),controller['create']),router[a334_0x23deb3(0xf3)](a334_0x23deb3(0xed),auth['isAuthenticated'](),controller[a334_0x23deb3(0xf5)]),router[a334_0x23deb3(0xf2)](a334_0x23deb3(0xf0),auth[a334_0x23deb3(0xf6)](),controller[a334_0x23deb3(0xef)]),router[a334_0x23deb3(0xfb)](a334_0x23deb3(0xf0),auth[a334_0x23deb3(0xf6)](),controller[a334_0x23deb3(0xf8)]),module[a334_0x23deb3(0xf1)]=router; \ No newline at end of file diff --git a/server/api/intSalesforceAccount/intSalesforceAccount.attributes.js b/server/api/intSalesforceAccount/intSalesforceAccount.attributes.js index d51518d..fbfe035 100644 --- a/server/api/intSalesforceAccount/intSalesforceAccount.attributes.js +++ b/server/api/intSalesforceAccount/intSalesforceAccount.attributes.js @@ -1 +1 @@ -const a280_0x5db2=['exports','ENUM','STRING','integrationTab','newTab'];(function(_0x20a081,_0x5db2a0){const _0x4f1c5a=function(_0x5c7347){while(--_0x5c7347){_0x20a081['push'](_0x20a081['shift']());}};_0x4f1c5a(++_0x5db2a0);}(a280_0x5db2,0x115));const a280_0x4f1c=function(_0x20a081,_0x5db2a0){_0x20a081=_0x20a081-0x0;let _0x4f1c5a=a280_0x5db2[_0x20a081];return _0x4f1c5a;};const _0x3fd813=a280_0x4f1c;'use strict';const Sequelize=require('sequelize');module[_0x3fd813('0x3')]={'name':{'type':Sequelize[_0x3fd813('0x0')]},'description':{'type':Sequelize[_0x3fd813('0x0')]},'username':{'type':Sequelize[_0x3fd813('0x0')],'unique':'username'},'remoteUri':{'type':Sequelize[_0x3fd813('0x0')]},'password':{'type':Sequelize[_0x3fd813('0x0')]},'clientId':{'type':Sequelize['STRING']},'clientSecret':{'type':Sequelize[_0x3fd813('0x0')]},'securityToken':{'type':Sequelize['STRING']},'serverUrl':{'type':Sequelize['STRING']},'type':{'type':Sequelize[_0x3fd813('0x4')]('integrationTab',_0x3fd813('0x2')),'defaultValue':_0x3fd813('0x1')}}; \ No newline at end of file +const a335_0x17e9=['STRING','ENUM','attributes','integrationTab','exports'];(function(_0x306a6d,_0x23bf7e){const _0x17e9a8=function(_0xbb92ec){while(--_0xbb92ec){_0x306a6d['push'](_0x306a6d['shift']());}};_0x17e9a8(++_0x23bf7e);}(a335_0x17e9,0x122));const a335_0xbb92=function(_0x306a6d,_0x23bf7e){_0x306a6d=_0x306a6d-0x19c;let _0x17e9a8=a335_0x17e9[_0x306a6d];return _0x17e9a8;};const a335_0x58cd72=a335_0xbb92;'use strict';const {DataTypes}=require('sequelize'),attributes={'name':{'type':DataTypes[a335_0x58cd72(0x19c)]},'description':{'type':DataTypes[a335_0x58cd72(0x19c)]},'username':{'type':DataTypes['STRING'],'unique':'username'},'remoteUri':{'type':DataTypes[a335_0x58cd72(0x19c)]},'password':{'type':DataTypes[a335_0x58cd72(0x19c)]},'clientId':{'type':DataTypes[a335_0x58cd72(0x19c)]},'clientSecret':{'type':DataTypes[a335_0x58cd72(0x19c)]},'securityToken':{'type':DataTypes['STRING']},'serverUrl':{'type':DataTypes[a335_0x58cd72(0x19c)]},'type':{'type':DataTypes[a335_0x58cd72(0x19d)](a335_0x58cd72(0x19f),'newTab'),'defaultValue':a335_0x58cd72(0x19f)}};module[a335_0x58cd72(0x1a0)][a335_0x58cd72(0x19e)]=attributes; \ No newline at end of file diff --git a/server/api/intSalesforceAccount/intSalesforceAccount.controller.js b/server/api/intSalesforceAccount/intSalesforceAccount.controller.js index d758d52..aa2825d 100644 --- a/server/api/intSalesforceAccount/intSalesforceAccount.controller.js +++ b/server/api/intSalesforceAccount/intSalesforceAccount.controller.js @@ -1 +1 @@ -const a281_0x352b=['keys','test','destroy','custom','Priority','False','describe','body','params','pick','label','lastIndexOf','IsEscalated','CallObject','Task','../../components/parsers/qs','Subjects','api','catch','length','rawAttributes','stringify','getFields,\x20%s,\x20%s,\x20%s','findOne','True','fieldName','statusCode','getFields','include','picklistValues','clientSecret','sequelize','stack','filters','SalesforceConfiguration','sobject','then','username','set','limit','includeAll','map','VIRTUAL','order','json','channel','getSubjects','slice','remove','like','nolimit','findAll','count','status','show','offset','type','create','false','jsforce','SuppliedName','CallDisposition','options','Type','merge','ticketType','undefined','sendStatus','fields','name','getDescriptions','CallType','error','password','includes','where','Content-Range','update','attributes','intersection','AccountId','IsArchived','SalesforceField','isNil','Status','boolean','SuppliedCompany','key','../../components/integrations/configuration','concat','CallDurationInSeconds','send','value','Descriptions','Wrong\x20credentials','filter','query','model','sort','securityToken','SalesforceAccount','login','getConfigurations'];(function(_0x436d4b,_0x352b3d){const _0xffbb18=function(_0x5b2513){while(--_0x5b2513){_0x436d4b['push'](_0x436d4b['shift']());}};_0xffbb18(++_0x352b3d);}(a281_0x352b,0x122));const a281_0xffbb=function(_0x436d4b,_0x352b3d){_0x436d4b=_0x436d4b-0x0;let _0xffbb18=a281_0x352b[_0x436d4b];return _0xffbb18;};const _0x5d0f48=a281_0xffbb;'use strict';const _=require('lodash'),jsforce=require(_0x5d0f48('0x4e')),qs=require(_0x5d0f48('0x22')),logger=require('../../config/logger')(_0x5d0f48('0x24')),db=require('../../mysqldb')['db'],{Op}=require(_0x5d0f48('0x32')),integrations=require(_0x5d0f48('0x4'));function respondWithResult(_0x5b2513,_0x374c6f){return _0x374c6f=_0x374c6f||0xc8,function(_0x2f8c10){const _0x4314bf=a281_0xffbb;if(_0x2f8c10)return _0x5b2513[_0x4314bf('0x48')](_0x374c6f)[_0x4314bf('0x3f')](_0x2f8c10);};}function respondWithFilteredResult(_0x5ae4e3,_0x1d903c){return function(_0x521a0f){const _0x1d74d2=a281_0xffbb;if(_0x521a0f){const _0x1e986a=_0x521a0f['count'],_0x3492ac=_0x1d903c[_0x1d74d2('0x4a')];let _0x502401=_0x1d903c['offset']+_0x1d903c['limit'],_0x4aca7a;return _0x502401>=_0x1e986a?(_0x502401=_0x1e986a,_0x4aca7a=0xc8):_0x4aca7a=0xce,_0x5ae4e3[_0x1d74d2('0x48')](_0x4aca7a),_0x5ae4e3[_0x1d74d2('0x39')](_0x1d74d2('0x5f'),_0x3492ac+'-'+_0x502401+'/'+_0x1e986a)[_0x1d74d2('0x3f')](_0x521a0f);}return null;};}function saveUpdates(_0x4f4ae6){return function(_0x51e42b){const _0x4653ed=a281_0xffbb;if(_0x51e42b)return _0x51e42b[_0x4653ed('0x60')](_0x4f4ae6)[_0x4653ed('0x37')](function(_0x31667d){return _0x31667d;});return null;};}function removeEntity(_0x3e562a){return function(_0x936a6e){const _0x55e40c=a281_0xffbb;if(_0x936a6e)return _0x936a6e['destroy']()[_0x55e40c('0x37')](function(){const _0x2b9ed2=_0x55e40c;_0x3e562a[_0x2b9ed2('0x48')](0xcc)['end']();});};}function handleEntityNotFound(_0x390c8a){return function(_0x281ab2){const _0x49684d=a281_0xffbb;return!_0x281ab2&&_0x390c8a[_0x49684d('0x56')](0x194),_0x281ab2;};}function handleError(_0x566d3a,_0x210340){return _0x210340=_0x210340||0x1f4,function(_0x19a6f7){const _0x5ae924=a281_0xffbb;logger[_0x5ae924('0x5b')](_0x19a6f7[_0x5ae924('0x33')]),_0x19a6f7[_0x5ae924('0x58')]&&delete _0x19a6f7[_0x5ae924('0x58')],_0x566d3a[_0x5ae924('0x48')](_0x210340)[_0x5ae924('0x7')](_0x19a6f7);};}exports['index']=function(_0x14fa28,_0x29dd8a){const _0x2273c7=_0x5d0f48;let _0x2d29e1={};const _0x582ca4={},_0x125cac={'count':0x0,'rows':[]},_0x35dd3a=_[_0x2273c7('0x3c')](db[_0x2273c7('0x10')]['rawAttributes'],function(_0x486476){const _0x49770c=_0x2273c7;return{'name':_0x486476[_0x49770c('0x2c')],'type':_0x486476[_0x49770c('0x4b')][_0x49770c('0x3')]};});_0x582ca4[_0x2273c7('0xd')]=_[_0x2273c7('0x3c')](_0x35dd3a,_0x2273c7('0x58')),_0x582ca4[_0x2273c7('0xc')]=_[_0x2273c7('0x13')](_0x14fa28['query']),_0x582ca4[_0x2273c7('0x34')]=_[_0x2273c7('0x62')](_0x582ca4[_0x2273c7('0xd')],_0x582ca4[_0x2273c7('0xc')]),_0x2d29e1[_0x2273c7('0x61')]=_['intersection'](_0x582ca4[_0x2273c7('0xd')],qs[_0x2273c7('0x57')](_0x14fa28[_0x2273c7('0xc')][_0x2273c7('0x57')])),_0x2d29e1['attributes']=_0x2d29e1[_0x2273c7('0x61')]['length']?_0x2d29e1['attributes']:_0x582ca4['model'];typeof _0x14fa28['query'][_0x2273c7('0x45')]==='undefined'&&(_0x2d29e1[_0x2273c7('0x3a')]=qs['limit'](_0x14fa28[_0x2273c7('0xc')][_0x2273c7('0x3a')]),_0x2d29e1['offset']=qs[_0x2273c7('0x4a')](_0x14fa28[_0x2273c7('0xc')]['offset']));_0x2d29e1['order']=qs[_0x2273c7('0xe')](_0x14fa28['query'][_0x2273c7('0xe')]),_0x2d29e1['where']=qs[_0x2273c7('0x34')](_[_0x2273c7('0x1c')](_0x14fa28[_0x2273c7('0xc')],_0x582ca4[_0x2273c7('0x34')]),_0x35dd3a);_0x14fa28[_0x2273c7('0xc')][_0x2273c7('0xb')]&&(_0x2d29e1[_0x2273c7('0x5e')]=_[_0x2273c7('0x53')](_0x2d29e1[_0x2273c7('0x5e')],{[Op['or']]:_[_0x2273c7('0x3c')](_0x35dd3a,function(_0x5c5f4c){const _0x5612eb=_0x2273c7;if(_0x5c5f4c[_0x5612eb('0x4b')]!==_0x5612eb('0x3d')){const _0x21b6f6={};return _0x21b6f6[_0x5c5f4c[_0x5612eb('0x58')]]={[Op[_0x5612eb('0x44')]]:'%'+_0x14fa28[_0x5612eb('0xc')]['filter']+'%'},_0x21b6f6;}})}));_0x2d29e1=_[_0x2273c7('0x53')]({},_0x2d29e1,_0x14fa28[_0x2273c7('0x51')]);const _0x33cec5={'where':_0x2d29e1[_0x2273c7('0x5e')]};return db[_0x2273c7('0x10')]['count'](_0x33cec5)[_0x2273c7('0x37')](function(_0x4dc5b7){const _0x53f8f4=_0x2273c7;return _0x125cac[_0x53f8f4('0x47')]=_0x4dc5b7,_0x14fa28['query'][_0x53f8f4('0x3b')]&&(_0x2d29e1[_0x53f8f4('0x2f')]=[{'all':!![]}]),db['SalesforceAccount'][_0x53f8f4('0x46')](_0x2d29e1);})[_0x2273c7('0x37')](function(_0x36f995){return _0x125cac['rows']=_0x36f995,_0x125cac;})[_0x2273c7('0x37')](respondWithFilteredResult(_0x29dd8a,_0x2d29e1))[_0x2273c7('0x25')](handleError(_0x29dd8a,null));},exports[_0x5d0f48('0x49')]=function(_0x4cb7c7,_0x5c3f55){const _0x13a5f5=_0x5d0f48;let _0x584bc6={'raw':![],'where':{'id':_0x4cb7c7[_0x13a5f5('0x1b')]['id']}};const _0x2f8d59={};return _0x2f8d59[_0x13a5f5('0xd')]=_[_0x13a5f5('0x13')](db[_0x13a5f5('0x10')][_0x13a5f5('0x27')]),_0x2f8d59[_0x13a5f5('0xc')]=_[_0x13a5f5('0x13')](_0x4cb7c7[_0x13a5f5('0xc')]),_0x2f8d59[_0x13a5f5('0x34')]=_['intersection'](_0x2f8d59['model'],_0x2f8d59['query']),_0x584bc6[_0x13a5f5('0x61')]=_[_0x13a5f5('0x62')](_0x2f8d59[_0x13a5f5('0xd')],qs[_0x13a5f5('0x57')](_0x4cb7c7[_0x13a5f5('0xc')][_0x13a5f5('0x57')])),_0x584bc6[_0x13a5f5('0x61')]=_0x584bc6['attributes'][_0x13a5f5('0x26')]?_0x584bc6['attributes']:_0x2f8d59[_0x13a5f5('0xd')],_0x4cb7c7[_0x13a5f5('0xc')][_0x13a5f5('0x3b')]&&(_0x584bc6[_0x13a5f5('0x2f')]=[{'all':!![]}]),_0x584bc6=_[_0x13a5f5('0x53')]({},_0x584bc6,_0x4cb7c7[_0x13a5f5('0x51')]),db[_0x13a5f5('0x10')][_0x13a5f5('0x2a')](_0x584bc6)[_0x13a5f5('0x37')](handleEntityNotFound(_0x5c3f55,null))[_0x13a5f5('0x37')](respondWithResult(_0x5c3f55,null))[_0x13a5f5('0x25')](handleError(_0x5c3f55,null));},exports[_0x5d0f48('0x4c')]=function(_0x15d556,_0x56c2e1){const _0x3cd974=_0x5d0f48;return db['SalesforceAccount']['create'](_0x15d556[_0x3cd974('0x1a')],{})[_0x3cd974('0x37')](respondWithResult(_0x56c2e1,0xc9))[_0x3cd974('0x25')](handleError(_0x56c2e1,null));},exports[_0x5d0f48('0x60')]=function(_0x1df31f,_0x5c2f58){const _0x1dcff0=_0x5d0f48;return _0x1df31f['body']['id']&&delete _0x1df31f[_0x1dcff0('0x1a')]['id'],db[_0x1dcff0('0x10')][_0x1dcff0('0x2a')]({'where':{'id':_0x1df31f[_0x1dcff0('0x1b')]['id']}})[_0x1dcff0('0x37')](handleEntityNotFound(_0x5c2f58,null))['then'](saveUpdates(_0x1df31f[_0x1dcff0('0x1a')],null))['then'](respondWithResult(_0x5c2f58,null))['catch'](handleError(_0x5c2f58,null));},exports[_0x5d0f48('0x15')]=function(_0x5994e4,_0x4b70ca){const _0x12dba5=_0x5d0f48;return db[_0x12dba5('0x10')]['findOne']({'where':{'id':_0x5994e4['params']['id']}})[_0x12dba5('0x37')](handleEntityNotFound(_0x4b70ca,null))[_0x12dba5('0x37')](removeEntity(_0x4b70ca,null))[_0x12dba5('0x25')](handleError(_0x4b70ca,null));},exports['getConfigurations']=function(_0x1c4911,_0x201675){const _0x12f76f=_0x5d0f48;let _0x5f57bf={};const _0x54ba32={};let _0x4eb4b1,_0x528757;return db[_0x12f76f('0x10')][_0x12f76f('0x2a')]({'where':{'id':_0x1c4911[_0x12f76f('0x1b')]['id']}})['then'](handleEntityNotFound(_0x201675,null))[_0x12f76f('0x37')](function(_0x21e046){const _0x568c0c=_0x12f76f;if(_0x21e046)return _0x4eb4b1=_0x21e046,_0x54ba32[_0x568c0c('0xd')]=_[_0x568c0c('0x13')](db[_0x568c0c('0x35')][_0x568c0c('0x27')]),_0x54ba32[_0x568c0c('0xc')]=_['keys'](_0x1c4911[_0x568c0c('0xc')]),_0x54ba32[_0x568c0c('0x34')]=_['intersection'](_0x54ba32[_0x568c0c('0xd')],_0x54ba32[_0x568c0c('0xc')]),_0x5f57bf[_0x568c0c('0x61')]=_[_0x568c0c('0x62')](_0x54ba32[_0x568c0c('0xd')],qs[_0x568c0c('0x57')](_0x1c4911['query'][_0x568c0c('0x57')])),_0x5f57bf[_0x568c0c('0x61')]=_0x5f57bf['attributes']['length']?_0x5f57bf[_0x568c0c('0x61')]:_0x54ba32['model'],_0x5f57bf[_0x568c0c('0x3e')]=qs[_0x568c0c('0xe')](_0x1c4911['query'][_0x568c0c('0xe')]),_0x5f57bf[_0x568c0c('0x5e')]=qs[_0x568c0c('0x34')](_[_0x568c0c('0x1c')](_0x1c4911[_0x568c0c('0xc')],_0x54ba32[_0x568c0c('0x34')])),_0x1c4911[_0x568c0c('0xc')][_0x568c0c('0xb')]&&(_0x5f57bf['where']=_[_0x568c0c('0x53')](_0x5f57bf[_0x568c0c('0x5e')],{[Op['or']]:_[_0x568c0c('0x3c')](_0x5f57bf['attributes'],function(_0x2c4edc){const _0x50ecae=_0x568c0c,_0x153f32={};return _0x153f32[_0x2c4edc]={[Op[_0x50ecae('0x44')]]:'%'+_0x1c4911[_0x50ecae('0xc')][_0x50ecae('0xb')]+'%'},_0x153f32;})})),_0x5f57bf=_['merge']({},_0x5f57bf,_0x1c4911['options']),_0x4eb4b1[_0x568c0c('0x12')](_0x5f57bf);})['then'](function(_0x478b8a){const _0x7b1840=_0x12f76f;if(_0x478b8a)return _0x528757=_0x478b8a[_0x7b1840('0x26')],typeof _0x1c4911[_0x7b1840('0xc')]['nolimit']===_0x7b1840('0x55')&&(_0x5f57bf[_0x7b1840('0x3a')]=qs[_0x7b1840('0x3a')](_0x1c4911[_0x7b1840('0xc')][_0x7b1840('0x3a')]),_0x5f57bf[_0x7b1840('0x4a')]=qs[_0x7b1840('0x4a')](_0x1c4911[_0x7b1840('0xc')][_0x7b1840('0x4a')])),_0x4eb4b1[_0x7b1840('0x12')](_0x5f57bf);})['then'](function(_0x464985){if(_0x464985)return _0x464985?{'count':_0x528757,'rows':_0x464985}:null;})[_0x12f76f('0x37')](respondWithResult(_0x201675,null))['catch'](handleError(_0x201675,null));},exports['addConfiguration']=function(_0x179e0e,_0x2733bf){const _0x253f6a=_0x5d0f48;return _0x179e0e[_0x253f6a('0x1a')]['id']&&delete _0x179e0e['body']['id'],db[_0x253f6a('0x10')][_0x253f6a('0x2a')]({'where':{'id':_0x179e0e['params']['id']}})['then'](handleEntityNotFound(_0x2733bf,null))[_0x253f6a('0x37')](function(_0xfa985d){const _0x387364=_0x253f6a;if(_0xfa985d)return _0x179e0e[_0x387364('0x1a')][_0x387364('0x63')]=_0xfa985d['id'],_0x179e0e[_0x387364('0x1a')]['Subjects']=integrations[_0x387364('0x41')](_0x179e0e['body'][_0x387364('0x40')],_0x179e0e[_0x387364('0x1a')][_0x387364('0x4b')]),_0x179e0e['body'][_0x387364('0x9')]=integrations[_0x387364('0x59')](_0x179e0e[_0x387364('0x1a')]['channel'],_0x179e0e['body'][_0x387364('0x4b')]),db[_0x387364('0x35')][_0x387364('0x4c')](_0x179e0e['body'],{'include':[{'model':db['SalesforceField'],'as':_0x387364('0x23')},{'model':db[_0x387364('0x65')],'as':_0x387364('0x9')}]});return null;})[_0x253f6a('0x37')](respondWithResult(_0x2733bf,null))['catch'](handleError(_0x2733bf,null));},exports[_0x5d0f48('0x2e')]=function(_0x238fb4,_0x506ce6){const _0x452179=_0x5d0f48;let _0x1a74cc,_0xe40711='',_0x33b368=_0x452179('0x21');return db[_0x452179('0x10')][_0x452179('0x2a')]({'where':{'id':_0x238fb4[_0x452179('0x1b')]['id']},'attributes':['id','remoteUri','clientId',_0x452179('0x31'),_0x452179('0x38'),_0x452179('0x5c'),'securityToken']})[_0x452179('0x37')](handleEntityNotFound(_0x506ce6,null))['then'](function(_0x52320f){const _0x5ab497=_0x452179;if(_0x52320f){_0xe40711=_0x52320f['remoteUri'];const _0x62b6b0=_0xe40711[_0x5ab497('0x42')](-0x1);return _0x62b6b0==='/'&&(_0xe40711=_0xe40711['substring'](0x0,_0xe40711[_0x5ab497('0x1e')](_0x62b6b0))),_0x1a74cc=new jsforce['Connection']({'oauth2':{'loginUrl':_0xe40711,'clientId':_0x52320f['clientId'],'clientSecret':_0x52320f[_0x5ab497('0x31')]}}),_0x1a74cc[_0x5ab497('0x11')](_0x52320f['username'],_0x52320f['password'][_0x5ab497('0x5')](_0x52320f[_0x5ab497('0xf')]));}})[_0x452179('0x37')](function(_0x28a4f7){const _0x38109b=_0x452179;if(_0x28a4f7)return!_['isNil'](_0x238fb4[_0x38109b('0xc')][_0x38109b('0x54')])&&(_0x33b368=_0x238fb4[_0x38109b('0xc')][_0x38109b('0x54')]),_0x1a74cc[_0x38109b('0x36')](_0x33b368)[_0x38109b('0x19')]();})['then'](function(_0x268c82){const _0x2a790c=_0x452179;let _0xef52bc=[_0x2a790c('0x50'),_0x2a790c('0x6'),_0x2a790c('0x20'),_0x2a790c('0x5a'),_0x2a790c('0x64'),_0x2a790c('0x17'),_0x2a790c('0x0'),'Type'];!_[_0x2a790c('0x66')](_0x238fb4[_0x2a790c('0xc')]['ticketType'])&&_0x238fb4[_0x2a790c('0xc')][_0x2a790c('0x54')]==='Case'&&(_0xef52bc=[_0x2a790c('0x52'),'Origin','Reason',_0x2a790c('0x0'),_0x2a790c('0x17'),_0x2a790c('0x1f'),_0x2a790c('0x4f'),_0x2a790c('0x2')]);if(_0x268c82)return _[_0x2a790c('0x43')](_0x268c82[_0x2a790c('0x57')],function(_0x4cd25f){const _0x35a84a=_0x2a790c;return _0x4cd25f['custom']===![]&&!_0xef52bc[_0x35a84a('0x5d')](_0x4cd25f[_0x35a84a('0x58')]);}),{'count':_0x268c82[_0x2a790c('0x57')][_0x2a790c('0x26')],'rows':_[_0x2a790c('0x3c')](_0x268c82[_0x2a790c('0x57')],function(_0x15eaa6){const _0x24bdcf=_0x2a790c;return{'id':_0x15eaa6[_0x24bdcf('0x58')],'name':_0x15eaa6['label'],'custom':_0x15eaa6[_0x24bdcf('0x16')],'options':_0x15eaa6[_0x24bdcf('0x30')][_0x24bdcf('0x26')]>0x0?_[_0x24bdcf('0x3c')](_0x15eaa6[_0x24bdcf('0x30')],function(_0x3c381b){const _0x4c375c=_0x24bdcf;return{'name':_0x3c381b[_0x4c375c('0x1d')],'value':_0x3c381b[_0x4c375c('0x8')]};}):_0x15eaa6[_0x24bdcf('0x4b')]==_0x24bdcf('0x1')?[{'name':_0x24bdcf('0x2b'),'value':'true'},{'name':_0x24bdcf('0x18'),'value':_0x24bdcf('0x4d')}]:[]};})};})['then'](respondWithResult(_0x506ce6,null))['catch'](function(_0x276524){const _0x3f9d53=_0x452179;let _0x54bf92=_0x238fb4[_0x3f9d53('0xc')][_0x3f9d53('0x14')]?0x1f4:_0x276524[_0x3f9d53('0x2d')]||0x1f4;logger[_0x3f9d53('0x5b')](_0x3f9d53('0x29'),_0x3f9d53('0x2e'),_0x54bf92,JSON[_0x3f9d53('0x28')](_0x276524)),delete _0x276524['name'],_0x54bf92===0x191&&(_0x54bf92=0x190),_0x506ce6[_0x3f9d53('0x48')](_0x54bf92)[_0x3f9d53('0x7')](_0x238fb4[_0x3f9d53('0xc')][_0x3f9d53('0x14')]?{'message':_0x3f9d53('0xa'),'statusCode':_0x276524[_0x3f9d53('0x2d')]}:_0x276524);});}; \ No newline at end of file +const a336_0x4ae9=['substring','Reason','end','False','where','getDescriptions','catch','getFields','fields','statusCode','SuppliedName','Descriptions','Wrong\x20credentials','SuppliedCompany','SalesforceField','VIRTUAL','../../components/integrations/configuration','label','stringify','name','Status','order','jsforce','attributes','merge','sobject','json','password','custom','Priority','api','channel','AccountId','keys','rawAttributes','CallDurationInSeconds','concat','SalesforceAccount','query','CallType','pick','send','count','destroy','error','../../components/parsers/qs','Origin','Connection','intersection','getConfigurations','slice','findAll','stack','clientId','lodash','isNil','then','undefined','test','sendStatus','Case','SalesforceConfiguration','key','login','Subjects','status','rows','includeAll','IsArchived','offset','length','getFields,\x20%s,\x20%s,\x20%s','value','Type','findOne','IsEscalated','model','describe','include','sort','create','limit','CallObject','boolean','update','params','filter','map','true','body','../../mysqldb','lastIndexOf','type','filters','options','True','show','ticketType','picklistValues','sequelize','CallDisposition','like','remoteUri','username'];(function(_0x28bfb9,_0x53077f){const _0x4ae9d0=function(_0x4d771d){while(--_0x4d771d){_0x28bfb9['push'](_0x28bfb9['shift']());}};_0x4ae9d0(++_0x53077f);}(a336_0x4ae9,0x137));const a336_0x4d77=function(_0x28bfb9,_0x53077f){_0x28bfb9=_0x28bfb9-0x1ac;let _0x4ae9d0=a336_0x4ae9[_0x28bfb9];return _0x4ae9d0;};const a336_0xb7b50=a336_0x4d77;'use strict';const _=require(a336_0xb7b50(0x1e3)),jsforce=require(a336_0xb7b50(0x1c3)),qs=require(a336_0xb7b50(0x1da)),logger=require('../../config/logger')(a336_0xb7b50(0x1cb)),{db}=require(a336_0xb7b50(0x207)),{Op}=require(a336_0xb7b50(0x210)),integrations=require(a336_0xb7b50(0x1bd));function respondWithResult(_0x4f1a68,_0x436786){return _0x436786=_0x436786||0xc8,function(_0x22d334){const _0x410a0e=a336_0x4d77;if(_0x22d334)return _0x4f1a68[_0x410a0e(0x1ee)](_0x436786)[_0x410a0e(0x1c7)](_0x22d334);};}function respondWithFilteredResult(_0x57a249,_0x2875e8){return function(_0x3029ad){const _0x29e9e5=a336_0x4d77;if(_0x3029ad){const _0x1a2238=_0x3029ad['count'],_0x2d46f4=_0x2875e8['offset'];let _0x3aaa0a=_0x2875e8[_0x29e9e5(0x1f2)]+_0x2875e8['limit'],_0x8d71ab;return _0x3aaa0a>=_0x1a2238?(_0x3aaa0a=_0x1a2238,_0x8d71ab=0xc8):_0x8d71ab=0xce,_0x57a249[_0x29e9e5(0x1ee)](_0x8d71ab),_0x57a249['set']('Content-Range',_0x2d46f4+'-'+_0x3aaa0a+'/'+_0x1a2238)[_0x29e9e5(0x1c7)](_0x3029ad);}return null;};}function saveUpdates(_0x4268c4){return function(_0x1e470d){const _0x1a78ec=a336_0x4d77;if(_0x1e470d)return _0x1e470d[_0x1a78ec(0x201)](_0x4268c4)[_0x1a78ec(0x1e5)](function(_0x398cb0){return _0x398cb0;});return null;};}function removeEntity(_0x44ca3c){return function(_0x372482){const _0x371121=a336_0x4d77;if(_0x372482)return _0x372482[_0x371121(0x1d8)]()[_0x371121(0x1e5)](function(){const _0x14aa3a=_0x371121;_0x44ca3c[_0x14aa3a(0x1ee)](0xcc)[_0x14aa3a(0x1af)]();});};}function handleEntityNotFound(_0x122002){return function(_0x28e403){const _0x2aeae4=a336_0x4d77;return!_0x28e403&&_0x122002[_0x2aeae4(0x1e8)](0x194),_0x28e403;};}function handleError(_0xe2cfec,_0x56c1b0){return _0x56c1b0=_0x56c1b0||0x1f4,function(_0x325112){const _0x281aa0=a336_0x4d77;logger[_0x281aa0(0x1d9)](_0x325112[_0x281aa0(0x1e1)]),_0x325112['name']&&delete _0x325112['name'],_0xe2cfec[_0x281aa0(0x1ee)](_0x56c1b0)[_0x281aa0(0x1d6)](_0x325112);};}exports['index']=function(_0x368ce1,_0x5f30fe){const _0x3ffd22=a336_0xb7b50;let _0x2b3a5f={};const _0x262f26={},_0x4c047e={'count':0x0,'rows':[]},_0x5d0299=_[_0x3ffd22(0x204)](db['SalesforceAccount'][_0x3ffd22(0x1cf)],function(_0x33b924){const _0x5d0fb8=_0x3ffd22;return{'name':_0x33b924['fieldName'],'type':_0x33b924[_0x5d0fb8(0x209)][_0x5d0fb8(0x1eb)]};});_0x262f26[_0x3ffd22(0x1f9)]=_[_0x3ffd22(0x204)](_0x5d0299,_0x3ffd22(0x1c0)),_0x262f26[_0x3ffd22(0x1d3)]=_[_0x3ffd22(0x1ce)](_0x368ce1['query']),_0x262f26[_0x3ffd22(0x20a)]=_[_0x3ffd22(0x1dd)](_0x262f26[_0x3ffd22(0x1f9)],_0x262f26[_0x3ffd22(0x1d3)]),_0x2b3a5f['attributes']=_[_0x3ffd22(0x1dd)](_0x262f26[_0x3ffd22(0x1f9)],qs['fields'](_0x368ce1[_0x3ffd22(0x1d3)]['fields'])),_0x2b3a5f[_0x3ffd22(0x1c4)]=_0x2b3a5f[_0x3ffd22(0x1c4)][_0x3ffd22(0x1f3)]?_0x2b3a5f[_0x3ffd22(0x1c4)]:_0x262f26['model'];typeof _0x368ce1[_0x3ffd22(0x1d3)]['nolimit']===_0x3ffd22(0x1e6)&&(_0x2b3a5f[_0x3ffd22(0x1fe)]=qs[_0x3ffd22(0x1fe)](_0x368ce1[_0x3ffd22(0x1d3)][_0x3ffd22(0x1fe)]),_0x2b3a5f[_0x3ffd22(0x1f2)]=qs[_0x3ffd22(0x1f2)](_0x368ce1['query'][_0x3ffd22(0x1f2)]));_0x2b3a5f[_0x3ffd22(0x1c2)]=qs[_0x3ffd22(0x1fc)](_0x368ce1[_0x3ffd22(0x1d3)][_0x3ffd22(0x1fc)]),_0x2b3a5f['where']=qs[_0x3ffd22(0x20a)](_['pick'](_0x368ce1[_0x3ffd22(0x1d3)],_0x262f26[_0x3ffd22(0x20a)]),_0x5d0299);_0x368ce1[_0x3ffd22(0x1d3)][_0x3ffd22(0x203)]&&(_0x2b3a5f['where']=_['merge'](_0x2b3a5f[_0x3ffd22(0x1b1)],{[Op['or']]:_[_0x3ffd22(0x204)](_0x5d0299,function(_0x149007){const _0x49536c=_0x3ffd22;if(_0x149007[_0x49536c(0x209)]!==_0x49536c(0x1bc)){const _0x556c6c={};return _0x556c6c[_0x149007['name']]={[Op[_0x49536c(0x212)]]:'%'+_0x368ce1[_0x49536c(0x1d3)][_0x49536c(0x203)]+'%'},_0x556c6c;}})}));_0x2b3a5f=_[_0x3ffd22(0x1c5)]({},_0x2b3a5f,_0x368ce1[_0x3ffd22(0x20b)]);const _0x4be171={'where':_0x2b3a5f[_0x3ffd22(0x1b1)]};return db[_0x3ffd22(0x1d2)][_0x3ffd22(0x1d7)](_0x4be171)['then'](function(_0x2b3ee2){const _0x2a5835=_0x3ffd22;return _0x4c047e[_0x2a5835(0x1d7)]=_0x2b3ee2,_0x368ce1[_0x2a5835(0x1d3)]['includeAll']&&(_0x2b3a5f[_0x2a5835(0x1fb)]=[{'all':!![]}]),db[_0x2a5835(0x1d2)][_0x2a5835(0x1e0)](_0x2b3a5f);})['then'](function(_0x4b6520){const _0x3964d6=_0x3ffd22;return _0x4c047e[_0x3964d6(0x1ef)]=_0x4b6520,_0x4c047e;})['then'](respondWithFilteredResult(_0x5f30fe,_0x2b3a5f))['catch'](handleError(_0x5f30fe,null));},exports[a336_0xb7b50(0x20d)]=function(_0x1dacb3,_0x4fbf75){const _0x36f9ca=a336_0xb7b50;let _0x4147c4={'raw':![],'where':{'id':_0x1dacb3[_0x36f9ca(0x202)]['id']}};const _0x2eb208={};return _0x2eb208[_0x36f9ca(0x1f9)]=_[_0x36f9ca(0x1ce)](db[_0x36f9ca(0x1d2)]['rawAttributes']),_0x2eb208[_0x36f9ca(0x1d3)]=_[_0x36f9ca(0x1ce)](_0x1dacb3['query']),_0x2eb208['filters']=_['intersection'](_0x2eb208[_0x36f9ca(0x1f9)],_0x2eb208[_0x36f9ca(0x1d3)]),_0x4147c4[_0x36f9ca(0x1c4)]=_[_0x36f9ca(0x1dd)](_0x2eb208[_0x36f9ca(0x1f9)],qs[_0x36f9ca(0x1b5)](_0x1dacb3['query']['fields'])),_0x4147c4['attributes']=_0x4147c4['attributes']['length']?_0x4147c4['attributes']:_0x2eb208[_0x36f9ca(0x1f9)],_0x1dacb3['query'][_0x36f9ca(0x1f0)]&&(_0x4147c4[_0x36f9ca(0x1fb)]=[{'all':!![]}]),_0x4147c4=_[_0x36f9ca(0x1c5)]({},_0x4147c4,_0x1dacb3[_0x36f9ca(0x20b)]),db['SalesforceAccount']['findOne'](_0x4147c4)[_0x36f9ca(0x1e5)](handleEntityNotFound(_0x4fbf75,null))[_0x36f9ca(0x1e5)](respondWithResult(_0x4fbf75,null))[_0x36f9ca(0x1b3)](handleError(_0x4fbf75,null));},exports['create']=function(_0x14337d,_0x2e60e8){const _0x564793=a336_0xb7b50;return db['SalesforceAccount'][_0x564793(0x1fd)](_0x14337d[_0x564793(0x206)],{})[_0x564793(0x1e5)](respondWithResult(_0x2e60e8,0xc9))[_0x564793(0x1b3)](handleError(_0x2e60e8,null));},exports[a336_0xb7b50(0x201)]=function(_0x38b69c,_0x1989be){const _0x52720d=a336_0xb7b50;return _0x38b69c[_0x52720d(0x206)]['id']&&delete _0x38b69c['body']['id'],db[_0x52720d(0x1d2)][_0x52720d(0x1f7)]({'where':{'id':_0x38b69c[_0x52720d(0x202)]['id']}})[_0x52720d(0x1e5)](handleEntityNotFound(_0x1989be,null))[_0x52720d(0x1e5)](saveUpdates(_0x38b69c['body'],null))[_0x52720d(0x1e5)](respondWithResult(_0x1989be,null))[_0x52720d(0x1b3)](handleError(_0x1989be,null));},exports[a336_0xb7b50(0x1d8)]=function(_0x3eee8a,_0x1dc97a){const _0x12abbe=a336_0xb7b50;return db['SalesforceAccount'][_0x12abbe(0x1f7)]({'where':{'id':_0x3eee8a[_0x12abbe(0x202)]['id']}})[_0x12abbe(0x1e5)](handleEntityNotFound(_0x1dc97a,null))[_0x12abbe(0x1e5)](removeEntity(_0x1dc97a,null))[_0x12abbe(0x1b3)](handleError(_0x1dc97a,null));},exports[a336_0xb7b50(0x1de)]=function(_0x5ed7ca,_0x469984){const _0x32d132=a336_0xb7b50;let _0x5e62cc={};const _0x548b1={};let _0x1698e0,_0x311961;return db[_0x32d132(0x1d2)][_0x32d132(0x1f7)]({'where':{'id':_0x5ed7ca['params']['id']}})[_0x32d132(0x1e5)](handleEntityNotFound(_0x469984,null))[_0x32d132(0x1e5)](function(_0x25466d){const _0x3f2463=_0x32d132;if(_0x25466d)return _0x1698e0=_0x25466d,_0x548b1[_0x3f2463(0x1f9)]=_['keys'](db[_0x3f2463(0x1ea)][_0x3f2463(0x1cf)]),_0x548b1[_0x3f2463(0x1d3)]=_[_0x3f2463(0x1ce)](_0x5ed7ca[_0x3f2463(0x1d3)]),_0x548b1[_0x3f2463(0x20a)]=_['intersection'](_0x548b1['model'],_0x548b1['query']),_0x5e62cc['attributes']=_[_0x3f2463(0x1dd)](_0x548b1[_0x3f2463(0x1f9)],qs[_0x3f2463(0x1b5)](_0x5ed7ca[_0x3f2463(0x1d3)][_0x3f2463(0x1b5)])),_0x5e62cc[_0x3f2463(0x1c4)]=_0x5e62cc[_0x3f2463(0x1c4)][_0x3f2463(0x1f3)]?_0x5e62cc[_0x3f2463(0x1c4)]:_0x548b1[_0x3f2463(0x1f9)],_0x5e62cc[_0x3f2463(0x1c2)]=qs[_0x3f2463(0x1fc)](_0x5ed7ca[_0x3f2463(0x1d3)][_0x3f2463(0x1fc)]),_0x5e62cc[_0x3f2463(0x1b1)]=qs[_0x3f2463(0x20a)](_[_0x3f2463(0x1d5)](_0x5ed7ca['query'],_0x548b1[_0x3f2463(0x20a)])),_0x5ed7ca[_0x3f2463(0x1d3)][_0x3f2463(0x203)]&&(_0x5e62cc[_0x3f2463(0x1b1)]=_[_0x3f2463(0x1c5)](_0x5e62cc['where'],{[Op['or']]:_[_0x3f2463(0x204)](_0x5e62cc[_0x3f2463(0x1c4)],function(_0xf4facb){const _0x597a93=_0x3f2463,_0x36058a={};return _0x36058a[_0xf4facb]={[Op[_0x597a93(0x212)]]:'%'+_0x5ed7ca['query'][_0x597a93(0x203)]+'%'},_0x36058a;})})),_0x5e62cc=_[_0x3f2463(0x1c5)]({},_0x5e62cc,_0x5ed7ca[_0x3f2463(0x20b)]),_0x1698e0['getConfigurations'](_0x5e62cc);})[_0x32d132(0x1e5)](function(_0x25af60){const _0x8c9a69=_0x32d132;if(_0x25af60)return _0x311961=_0x25af60[_0x8c9a69(0x1f3)],typeof _0x5ed7ca[_0x8c9a69(0x1d3)]['nolimit']===_0x8c9a69(0x1e6)&&(_0x5e62cc[_0x8c9a69(0x1fe)]=qs[_0x8c9a69(0x1fe)](_0x5ed7ca[_0x8c9a69(0x1d3)][_0x8c9a69(0x1fe)]),_0x5e62cc[_0x8c9a69(0x1f2)]=qs[_0x8c9a69(0x1f2)](_0x5ed7ca['query']['offset'])),_0x1698e0['getConfigurations'](_0x5e62cc);})['then'](function(_0x5d954e){if(_0x5d954e)return _0x5d954e?{'count':_0x311961,'rows':_0x5d954e}:null;})[_0x32d132(0x1e5)](respondWithResult(_0x469984,null))[_0x32d132(0x1b3)](handleError(_0x469984,null));},exports['addConfiguration']=function(_0x310f38,_0x4ebdef){const _0x3a21fa=a336_0xb7b50;return _0x310f38[_0x3a21fa(0x206)]['id']&&delete _0x310f38[_0x3a21fa(0x206)]['id'],db[_0x3a21fa(0x1d2)][_0x3a21fa(0x1f7)]({'where':{'id':_0x310f38[_0x3a21fa(0x202)]['id']}})[_0x3a21fa(0x1e5)](handleEntityNotFound(_0x4ebdef,null))[_0x3a21fa(0x1e5)](function(_0x42022d){const _0x2cb66c=_0x3a21fa;if(_0x42022d)return _0x310f38['body'][_0x2cb66c(0x1cd)]=_0x42022d['id'],_0x310f38[_0x2cb66c(0x206)][_0x2cb66c(0x1ed)]=integrations['getSubjects'](_0x310f38['body'][_0x2cb66c(0x1cc)],_0x310f38['body']['type']),_0x310f38['body'][_0x2cb66c(0x1b8)]=integrations[_0x2cb66c(0x1b2)](_0x310f38[_0x2cb66c(0x206)]['channel'],_0x310f38['body'][_0x2cb66c(0x209)]),db[_0x2cb66c(0x1ea)][_0x2cb66c(0x1fd)](_0x310f38[_0x2cb66c(0x206)],{'include':[{'model':db[_0x2cb66c(0x1bb)],'as':_0x2cb66c(0x1ed)},{'model':db[_0x2cb66c(0x1bb)],'as':_0x2cb66c(0x1b8)}]});return null;})[_0x3a21fa(0x1e5)](respondWithResult(_0x4ebdef,null))[_0x3a21fa(0x1b3)](handleError(_0x4ebdef,null));},exports[a336_0xb7b50(0x1b4)]=function(_0x56ca98,_0x3bc341){const _0x47f59d=a336_0xb7b50;let _0x5035f6,_0x2d5dd8='',_0x550079='Task';return db[_0x47f59d(0x1d2)]['findOne']({'where':{'id':_0x56ca98[_0x47f59d(0x202)]['id']},'attributes':['id',_0x47f59d(0x213),'clientId','clientSecret',_0x47f59d(0x1ac),_0x47f59d(0x1c8),'securityToken']})[_0x47f59d(0x1e5)](handleEntityNotFound(_0x3bc341,null))[_0x47f59d(0x1e5)](function(_0x2b34f8){const _0x25443e=_0x47f59d;if(_0x2b34f8){_0x2d5dd8=_0x2b34f8['remoteUri'];const _0x1d20cc=_0x2d5dd8[_0x25443e(0x1df)](-0x1);return _0x1d20cc==='/'&&(_0x2d5dd8=_0x2d5dd8[_0x25443e(0x1ad)](0x0,_0x2d5dd8[_0x25443e(0x208)](_0x1d20cc))),_0x5035f6=new jsforce[(_0x25443e(0x1dc))]({'oauth2':{'loginUrl':_0x2d5dd8,'clientId':_0x2b34f8[_0x25443e(0x1e2)],'clientSecret':_0x2b34f8['clientSecret']}}),_0x5035f6[_0x25443e(0x1ec)](_0x2b34f8['username'],_0x2b34f8[_0x25443e(0x1c8)][_0x25443e(0x1d1)](_0x2b34f8['securityToken']));}})['then'](function(_0x3aadda){const _0x36855a=_0x47f59d;if(_0x3aadda)return!_[_0x36855a(0x1e4)](_0x56ca98[_0x36855a(0x1d3)]['ticketType'])&&(_0x550079=_0x56ca98['query'][_0x36855a(0x20e)]),_0x5035f6[_0x36855a(0x1c6)](_0x550079)[_0x36855a(0x1fa)]();})[_0x47f59d(0x1e5)](function(_0x1c4c8a){const _0x2485fd=_0x47f59d;let _0x2b01e7=[_0x2485fd(0x211),_0x2485fd(0x1d0),_0x2485fd(0x1ff),_0x2485fd(0x1d4),_0x2485fd(0x1f1),_0x2485fd(0x1ca),_0x2485fd(0x1c1),_0x2485fd(0x1f6)];!_[_0x2485fd(0x1e4)](_0x56ca98[_0x2485fd(0x1d3)][_0x2485fd(0x20e)])&&_0x56ca98[_0x2485fd(0x1d3)][_0x2485fd(0x20e)]===_0x2485fd(0x1e9)&&(_0x2b01e7=[_0x2485fd(0x1f6),_0x2485fd(0x1db),_0x2485fd(0x1ae),_0x2485fd(0x1c1),_0x2485fd(0x1ca),_0x2485fd(0x1f8),_0x2485fd(0x1b7),_0x2485fd(0x1ba)]);if(_0x1c4c8a)return _['remove'](_0x1c4c8a[_0x2485fd(0x1b5)],function(_0x444c88){const _0x5eb839=_0x2485fd;return _0x444c88[_0x5eb839(0x1c9)]===![]&&!_0x2b01e7['includes'](_0x444c88[_0x5eb839(0x1c0)]);}),{'count':_0x1c4c8a[_0x2485fd(0x1b5)]['length'],'rows':_[_0x2485fd(0x204)](_0x1c4c8a[_0x2485fd(0x1b5)],function(_0x591308){const _0x41a074=_0x2485fd;return{'id':_0x591308[_0x41a074(0x1c0)],'name':_0x591308['label'],'custom':_0x591308[_0x41a074(0x1c9)],'options':_0x591308['picklistValues'][_0x41a074(0x1f3)]>0x0?_[_0x41a074(0x204)](_0x591308[_0x41a074(0x20f)],function(_0x178e38){const _0xa1f3af=_0x41a074;return{'name':_0x178e38[_0xa1f3af(0x1be)],'value':_0x178e38[_0xa1f3af(0x1f5)]};}):_0x591308[_0x41a074(0x209)]==_0x41a074(0x200)?[{'name':_0x41a074(0x20c),'value':_0x41a074(0x205)},{'name':_0x41a074(0x1b0),'value':'false'}]:[]};})};})[_0x47f59d(0x1e5)](respondWithResult(_0x3bc341,null))['catch'](function(_0x2a9a82){const _0x4960d2=_0x47f59d;let _0x1d7bdf=_0x56ca98[_0x4960d2(0x1d3)][_0x4960d2(0x1e7)]?0x1f4:_0x2a9a82[_0x4960d2(0x1b6)]||0x1f4;logger['error'](_0x4960d2(0x1f4),'getFields',_0x1d7bdf,JSON[_0x4960d2(0x1bf)](_0x2a9a82)),delete _0x2a9a82['name'],_0x1d7bdf===0x191&&(_0x1d7bdf=0x190),_0x3bc341[_0x4960d2(0x1ee)](_0x1d7bdf)[_0x4960d2(0x1d6)](_0x56ca98[_0x4960d2(0x1d3)][_0x4960d2(0x1e7)]?{'message':_0x4960d2(0x1b9),'statusCode':_0x2a9a82[_0x4960d2(0x1b6)]}:_0x2a9a82);});}; \ No newline at end of file diff --git a/server/api/intSalesforceAccount/intSalesforceAccount.model.js b/server/api/intSalesforceAccount/intSalesforceAccount.model.js index 21921d9..84cb88f 100644 --- a/server/api/intSalesforceAccount/intSalesforceAccount.model.js +++ b/server/api/intSalesforceAccount/intSalesforceAccount.model.js @@ -1 +1 @@ -const a282_0x4bba=['./intSalesforceAccount.attributes','exports','int_salesforce_accounts','define','SalesforceAccount'];(function(_0x3d6478,_0x4bbaf8){const _0x2c5fe8=function(_0x1f5ab5){while(--_0x1f5ab5){_0x3d6478['push'](_0x3d6478['shift']());}};_0x2c5fe8(++_0x4bbaf8);}(a282_0x4bba,0x182));const a282_0x2c5f=function(_0x3d6478,_0x4bbaf8){_0x3d6478=_0x3d6478-0x0;let _0x2c5fe8=a282_0x4bba[_0x3d6478];return _0x2c5fe8;};const _0xa9526a=a282_0x2c5f;'use strict';const attributes=require(_0xa9526a('0x4'));module[_0xa9526a('0x0')]=function(_0x1f5ab5){const _0x156d72=_0xa9526a,_0x59e691=_0x1f5ab5[_0x156d72('0x2')](_0x156d72('0x3'),attributes,{'tableName':_0x156d72('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x59e691;}; \ No newline at end of file +const a337_0xee11=['exports','./intSalesforceAccount.attributes','function','init'];(function(_0x3ee3bb,_0xd7fd2e){const _0xee11ec=function(_0x17fb63){while(--_0x17fb63){_0x3ee3bb['push'](_0x3ee3bb['shift']());}};_0xee11ec(++_0xd7fd2e);}(a337_0xee11,0x1ce));const a337_0x17fb=function(_0x3ee3bb,_0xd7fd2e){_0x3ee3bb=_0x3ee3bb-0x18f;let _0xee11ec=a337_0xee11[_0x3ee3bb];return _0xee11ec;};const a337_0x15b9f0=a337_0x17fb;'use strict';const {Model}=require('sequelize'),{attributes}=require(a337_0x15b9f0(0x192)),{options}=require('./intSalesforceAccount.options');class SalesforceAccount extends Model{}function init(_0x54484a,_0x2bd123){const _0x761195=a337_0x15b9f0,_0x40920d=options(_0x54484a),_0x1adbcd=typeof _0x2bd123===_0x761195(0x18f)?_0x2bd123(_0x40920d):_0x40920d;return SalesforceAccount[_0x761195(0x190)](attributes,_0x1adbcd),SalesforceAccount;}module['exports']['SalesforceAccount']=SalesforceAccount,module[a337_0x15b9f0(0x191)][a337_0x15b9f0(0x190)]=init; \ No newline at end of file diff --git a/server/api/intSalesforceAccount/intSalesforceAccount.options.js b/server/api/intSalesforceAccount/intSalesforceAccount.options.js new file mode 100644 index 0000000..0ac9124 --- /dev/null +++ b/server/api/intSalesforceAccount/intSalesforceAccount.options.js @@ -0,0 +1 @@ +var a338_0x3634=['options','int_salesforce_accounts'];(function(_0x130b4d,_0x398d67){var _0x36343b=function(_0x270e42){while(--_0x270e42){_0x130b4d['push'](_0x130b4d['shift']());}};_0x36343b(++_0x398d67);}(a338_0x3634,0x19d));var a338_0x270e=function(_0x130b4d,_0x398d67){_0x130b4d=_0x130b4d-0x85;var _0x36343b=a338_0x3634[_0x130b4d];return _0x36343b;};var a338_0x1d3a8a=a338_0x270e;function options(_0x2dd96f){var _0x5e6a90=a338_0x270e;return{'sequelize':_0x2dd96f,'tableName':_0x5e6a90(0x85),'paranoid':![],'indexes':[],'timestamps':!![]};}module['exports'][a338_0x1d3a8a(0x86)]=options; \ No newline at end of file diff --git a/server/api/intSalesforceAccount/intSalesforceAccount.rpc.js b/server/api/intSalesforceAccount/intSalesforceAccount.rpc.js index cd171c9..d697436 100644 --- a/server/api/intSalesforceAccount/intSalesforceAccount.rpc.js +++ b/server/api/intSalesforceAccount/intSalesforceAccount.rpc.js @@ -1 +1 @@ -const a283_0x3977=['attributes','raw','catch','../../mysqldb','info','options','then','error','../../config/logger','map','rpc','GetSalesforceAccount','debug','where','lodash','ShowSalesforceAccount','include','SalesforceAccount','findAll','limit','findOne','message','stringify','model'];(function(_0x23ef12,_0x3977fe){const _0x11145e=function(_0x8e9790){while(--_0x8e9790){_0x23ef12['push'](_0x23ef12['shift']());}};_0x11145e(++_0x3977fe);}(a283_0x3977,0xf5));const a283_0x1114=function(_0x23ef12,_0x3977fe){_0x23ef12=_0x23ef12-0x0;let _0x11145e=a283_0x3977[_0x23ef12];return _0x11145e;};const _0x50793a=a283_0x1114;'use strict';const _=require(_0x50793a('0x9')),db=require(_0x50793a('0x16'))['db'],logger=require(_0x50793a('0x3'))(_0x50793a('0x5'));exports[_0x50793a('0x6')]=function(_0x8e9790){const _0x5c7330=this;return new Promise(function(_0x27f524,_0x2387db){const _0x1bd9b7=a283_0x1114;return db['SalesforceAccount'][_0x1bd9b7('0xd')]({'raw':_0x8e9790[_0x1bd9b7('0x0')]?_0x8e9790['options'][_0x1bd9b7('0x14')]===undefined?!![]:![]:!![],'where':_0x8e9790['options']?_0x8e9790[_0x1bd9b7('0x0')][_0x1bd9b7('0x8')]||null:null,'attributes':_0x8e9790[_0x1bd9b7('0x0')]?_0x8e9790[_0x1bd9b7('0x0')][_0x1bd9b7('0x13')]||null:null,'limit':_0x8e9790[_0x1bd9b7('0x0')]?_0x8e9790[_0x1bd9b7('0x0')][_0x1bd9b7('0xe')]||null:null,'include':_0x8e9790[_0x1bd9b7('0x0')]?_0x8e9790[_0x1bd9b7('0x0')][_0x1bd9b7('0xb')]?_[_0x1bd9b7('0x4')](_0x8e9790[_0x1bd9b7('0x0')][_0x1bd9b7('0xb')],function(_0x1f15b1){const _0x571cf9=_0x1bd9b7;return{'model':db[_0x1f15b1[_0x571cf9('0x12')]],'as':_0x1f15b1['as'],'attributes':_0x1f15b1[_0x571cf9('0x13')],'include':_0x1f15b1[_0x571cf9('0xb')]?_[_0x571cf9('0x4')](_0x1f15b1[_0x571cf9('0xb')],function(_0x4a8c1c){const _0x536903=_0x571cf9;return{'model':db[_0x4a8c1c[_0x536903('0x12')]],'as':_0x4a8c1c['as'],'attributes':_0x4a8c1c[_0x536903('0x13')],'include':_0x4a8c1c[_0x536903('0xb')]?_[_0x536903('0x4')](_0x4a8c1c[_0x536903('0xb')],function(_0x25dda1){const _0x18f55f=_0x536903;return{'model':db[_0x25dda1[_0x18f55f('0x12')]],'as':_0x25dda1['as'],'attributes':_0x25dda1[_0x18f55f('0x13')]};}):[]};}):[]};}):[]:[]})[_0x1bd9b7('0x1')](function(_0xcd5739){const _0x473f5d=_0x1bd9b7;logger[_0x473f5d('0x17')]('GetSalesforceAccount',_0x8e9790),logger[_0x473f5d('0x7')](_0x473f5d('0x6'),_0x8e9790,JSON[_0x473f5d('0x11')](_0xcd5739)),_0x27f524(_0xcd5739);})[_0x1bd9b7('0x15')](function(_0x25a8f4){const _0xc96d15=_0x1bd9b7;logger['error'](_0xc96d15('0x6'),_0x25a8f4['message'],_0x8e9790),_0x2387db(_0x5c7330['error'](0x1f4,_0x25a8f4[_0xc96d15('0x10')]));});});},exports[_0x50793a('0xa')]=function(_0x995871){const _0x254e11=this;return new Promise(function(_0x18d123,_0x114314){const _0x2381f2=a283_0x1114;return db[_0x2381f2('0xc')][_0x2381f2('0xf')]({'raw':_0x995871[_0x2381f2('0x0')]?_0x995871[_0x2381f2('0x0')][_0x2381f2('0x14')]===undefined?!![]:![]:!![],'where':_0x995871[_0x2381f2('0x0')]?_0x995871[_0x2381f2('0x0')][_0x2381f2('0x8')]||null:null,'attributes':_0x995871[_0x2381f2('0x0')]?_0x995871[_0x2381f2('0x0')][_0x2381f2('0x13')]||null:null,'include':_0x995871[_0x2381f2('0x0')]?_0x995871[_0x2381f2('0x0')]['include']?_[_0x2381f2('0x4')](_0x995871['options']['include'],function(_0x20a0eb){const _0x277552=_0x2381f2;return{'model':db[_0x20a0eb[_0x277552('0x12')]],'as':_0x20a0eb['as'],'attributes':_0x20a0eb[_0x277552('0x13')],'include':_0x20a0eb[_0x277552('0xb')]?_[_0x277552('0x4')](_0x20a0eb[_0x277552('0xb')],function(_0xe2afb5){const _0x21031e=_0x277552;return{'model':db[_0xe2afb5[_0x21031e('0x12')]],'as':_0xe2afb5['as'],'attributes':_0xe2afb5[_0x21031e('0x13')],'include':_0xe2afb5[_0x21031e('0xb')]?_[_0x21031e('0x4')](_0xe2afb5['include'],function(_0x3a6e4d){const _0x48ad64=_0x21031e;return{'model':db[_0x3a6e4d[_0x48ad64('0x12')]],'as':_0x3a6e4d['as'],'attributes':_0x3a6e4d[_0x48ad64('0x13')]};}):[]};}):[]};}):[]:[]})[_0x2381f2('0x1')](function(_0x220923){const _0xbf31a2=_0x2381f2;logger[_0xbf31a2('0x17')]('ShowSalesforceAccount',_0x995871),logger[_0xbf31a2('0x7')](_0xbf31a2('0xa'),_0x995871,JSON['stringify'](_0x220923)),_0x18d123(_0x220923);})[_0x2381f2('0x15')](function(_0x78f108){const _0x33981f=_0x2381f2;logger[_0x33981f('0x2')](_0x33981f('0xa'),_0x78f108[_0x33981f('0x10')],_0x995871),_0x114314(_0x254e11['error'](0x1f4,_0x78f108[_0x33981f('0x10')]));});});}; \ No newline at end of file +const a339_0xb752=['model','../../config/logger','attributes','raw','ShowSalesforceAccount','../../mysqldb','SalesforceAccount','map','debug','include','stringify','rpc','where','options','findOne','error','GetSalesforceAccount','message','lodash','info','catch','findAll','then'];(function(_0x18b988,_0x5e167b){const _0xb752d=function(_0x10ada2){while(--_0x10ada2){_0x18b988['push'](_0x18b988['shift']());}};_0xb752d(++_0x5e167b);}(a339_0xb752,0x9b));const a339_0x10ad=function(_0x18b988,_0x5e167b){_0x18b988=_0x18b988-0x1ef;let _0xb752d=a339_0xb752[_0x18b988];return _0xb752d;};const a339_0x46bb54=a339_0x10ad;'use strict';const _=require(a339_0x46bb54(0x1f0)),db=require(a339_0x46bb54(0x1fa))['db'],logger=require(a339_0x46bb54(0x1f6))(a339_0x46bb54(0x200));exports['GetSalesforceAccount']=function(_0x29ee55){const _0x1b368e=this;return new Promise(function(_0x5e2bdf,_0x2894c1){const _0x79d04d=a339_0x10ad;return db['SalesforceAccount'][_0x79d04d(0x1f3)]({'raw':_0x29ee55[_0x79d04d(0x202)]?_0x29ee55['options'][_0x79d04d(0x1f8)]===undefined?!![]:![]:!![],'where':_0x29ee55['options']?_0x29ee55[_0x79d04d(0x202)][_0x79d04d(0x201)]||null:null,'attributes':_0x29ee55[_0x79d04d(0x202)]?_0x29ee55[_0x79d04d(0x202)][_0x79d04d(0x1f7)]||null:null,'limit':_0x29ee55['options']?_0x29ee55[_0x79d04d(0x202)]['limit']||null:null,'include':_0x29ee55['options']?_0x29ee55[_0x79d04d(0x202)][_0x79d04d(0x1fe)]?_[_0x79d04d(0x1fc)](_0x29ee55['options']['include'],function(_0x390665){const _0x3013b6=_0x79d04d;return{'model':db[_0x390665[_0x3013b6(0x1f5)]],'as':_0x390665['as'],'attributes':_0x390665[_0x3013b6(0x1f7)],'include':_0x390665[_0x3013b6(0x1fe)]?_['map'](_0x390665[_0x3013b6(0x1fe)],function(_0x30d18d){const _0x210d71=_0x3013b6;return{'model':db[_0x30d18d[_0x210d71(0x1f5)]],'as':_0x30d18d['as'],'attributes':_0x30d18d[_0x210d71(0x1f7)],'include':_0x30d18d[_0x210d71(0x1fe)]?_[_0x210d71(0x1fc)](_0x30d18d['include'],function(_0x343566){const _0x428c92=_0x210d71;return{'model':db[_0x343566[_0x428c92(0x1f5)]],'as':_0x343566['as'],'attributes':_0x343566['attributes']};}):[]};}):[]};}):[]:[]})[_0x79d04d(0x1f4)](function(_0x4dbe84){const _0x5dd15b=_0x79d04d;logger[_0x5dd15b(0x1f1)](_0x5dd15b(0x205),_0x29ee55),logger[_0x5dd15b(0x1fd)](_0x5dd15b(0x205),_0x29ee55,JSON[_0x5dd15b(0x1ff)](_0x4dbe84)),_0x5e2bdf(_0x4dbe84);})[_0x79d04d(0x1f2)](function(_0x4a985b){const _0x59e587=_0x79d04d;logger['error'](_0x59e587(0x205),_0x4a985b['message'],_0x29ee55),_0x2894c1(_0x1b368e[_0x59e587(0x204)](0x1f4,_0x4a985b['message']));});});},exports[a339_0x46bb54(0x1f9)]=function(_0x3f625e){const _0xe0e2d9=this;return new Promise(function(_0x35d853,_0x1a54fa){const _0x1cac11=a339_0x10ad;return db[_0x1cac11(0x1fb)][_0x1cac11(0x203)]({'raw':_0x3f625e[_0x1cac11(0x202)]?_0x3f625e['options'][_0x1cac11(0x1f8)]===undefined?!![]:![]:!![],'where':_0x3f625e[_0x1cac11(0x202)]?_0x3f625e[_0x1cac11(0x202)][_0x1cac11(0x201)]||null:null,'attributes':_0x3f625e[_0x1cac11(0x202)]?_0x3f625e[_0x1cac11(0x202)][_0x1cac11(0x1f7)]||null:null,'include':_0x3f625e[_0x1cac11(0x202)]?_0x3f625e[_0x1cac11(0x202)][_0x1cac11(0x1fe)]?_[_0x1cac11(0x1fc)](_0x3f625e[_0x1cac11(0x202)][_0x1cac11(0x1fe)],function(_0x3d07b4){const _0x4d2483=_0x1cac11;return{'model':db[_0x3d07b4[_0x4d2483(0x1f5)]],'as':_0x3d07b4['as'],'attributes':_0x3d07b4[_0x4d2483(0x1f7)],'include':_0x3d07b4[_0x4d2483(0x1fe)]?_['map'](_0x3d07b4[_0x4d2483(0x1fe)],function(_0x3845cd){const _0x3831e2=_0x4d2483;return{'model':db[_0x3845cd[_0x3831e2(0x1f5)]],'as':_0x3845cd['as'],'attributes':_0x3845cd[_0x3831e2(0x1f7)],'include':_0x3845cd['include']?_['map'](_0x3845cd[_0x3831e2(0x1fe)],function(_0x3613d0){const _0x1868ec=_0x3831e2;return{'model':db[_0x3613d0[_0x1868ec(0x1f5)]],'as':_0x3613d0['as'],'attributes':_0x3613d0[_0x1868ec(0x1f7)]};}):[]};}):[]};}):[]:[]})[_0x1cac11(0x1f4)](function(_0x299d2a){const _0x67216d=_0x1cac11;logger[_0x67216d(0x1f1)](_0x67216d(0x1f9),_0x3f625e),logger[_0x67216d(0x1fd)](_0x67216d(0x1f9),_0x3f625e,JSON[_0x67216d(0x1ff)](_0x299d2a)),_0x35d853(_0x299d2a);})[_0x1cac11(0x1f2)](function(_0x3ba716){const _0x11dd0f=_0x1cac11;logger[_0x11dd0f(0x204)](_0x11dd0f(0x1f9),_0x3ba716[_0x11dd0f(0x1ef)],_0x3f625e),_0x1a54fa(_0xe0e2d9['error'](0x1f4,_0x3ba716[_0x11dd0f(0x1ef)]));});});}; \ No newline at end of file diff --git a/server/api/intSalesforceConfiguration/index.js b/server/api/intSalesforceConfiguration/index.js index 2693447..31bee73 100644 --- a/server/api/intSalesforceConfiguration/index.js +++ b/server/api/intSalesforceConfiguration/index.js @@ -1 +1 @@ -const a284_0xd737=['../../components/auth/service','delete','/:id','create','post','update','getDescriptions','isAuthenticated','getFields','express','put','./intSalesforceConfiguration.controller','getSubjects','/:id/subjects','/:id/fields','get'];(function(_0x178030,_0xd737ea){const _0x170d59=function(_0x19482c){while(--_0x19482c){_0x178030['push'](_0x178030['shift']());}};_0x170d59(++_0xd737ea);}(a284_0xd737,0x1dd));const a284_0x170d=function(_0x178030,_0xd737ea){_0x178030=_0x178030-0x0;let _0x170d59=a284_0xd737[_0x178030];return _0x170d59;};const _0xb6b6ad=a284_0x170d;'use strict';const express=require(_0xb6b6ad('0xc')),router=express['Router'](),auth=require(_0xb6b6ad('0x3')),controller=require(_0xb6b6ad('0xe'));router['get']('/',auth['isAuthenticated'](),controller['index']),router['get'](_0xb6b6ad('0x5'),auth[_0xb6b6ad('0xa')](),controller['show']),router['get'](_0xb6b6ad('0x1'),auth['isAuthenticated'](),controller[_0xb6b6ad('0xb')]),router[_0xb6b6ad('0x2')](_0xb6b6ad('0x0'),auth['isAuthenticated'](),controller[_0xb6b6ad('0xf')]),router[_0xb6b6ad('0x2')]('/:id/descriptions',auth[_0xb6b6ad('0xa')](),controller[_0xb6b6ad('0x9')]),router[_0xb6b6ad('0x7')]('/',auth[_0xb6b6ad('0xa')](),controller[_0xb6b6ad('0x6')]),router[_0xb6b6ad('0xd')](_0xb6b6ad('0x5'),auth[_0xb6b6ad('0xa')](),controller[_0xb6b6ad('0x8')]),router[_0xb6b6ad('0x4')](_0xb6b6ad('0x5'),auth[_0xb6b6ad('0xa')](),controller['destroy']),module['exports']=router; \ No newline at end of file +const a340_0x3882=['express','getSubjects','exports','create','isAuthenticated','getDescriptions','get','update','/:id','/:id/descriptions','getFields','../../components/auth/service','put','post','Router','/:id/subjects'];(function(_0x38610d,_0x3f7a0c){const _0x388287=function(_0x1bf16f){while(--_0x1bf16f){_0x38610d['push'](_0x38610d['shift']());}};_0x388287(++_0x3f7a0c);}(a340_0x3882,0x199));const a340_0x1bf1=function(_0x38610d,_0x3f7a0c){_0x38610d=_0x38610d-0x193;let _0x388287=a340_0x3882[_0x38610d];return _0x388287;};const a340_0x46a440=a340_0x1bf1;'use strict';const express=require(a340_0x46a440(0x19a)),router=express[a340_0x46a440(0x198)](),auth=require(a340_0x46a440(0x195)),controller=require('./intSalesforceConfiguration.controller');router[a340_0x46a440(0x1a0)]('/',auth[a340_0x46a440(0x19e)](),controller['index']),router[a340_0x46a440(0x1a0)](a340_0x46a440(0x1a2),auth[a340_0x46a440(0x19e)](),controller['show']),router['get']('/:id/fields',auth[a340_0x46a440(0x19e)](),controller[a340_0x46a440(0x194)]),router[a340_0x46a440(0x1a0)](a340_0x46a440(0x199),auth[a340_0x46a440(0x19e)](),controller[a340_0x46a440(0x19b)]),router['get'](a340_0x46a440(0x193),auth['isAuthenticated'](),controller[a340_0x46a440(0x19f)]),router[a340_0x46a440(0x197)]('/',auth['isAuthenticated'](),controller[a340_0x46a440(0x19d)]),router[a340_0x46a440(0x196)]('/:id',auth[a340_0x46a440(0x19e)](),controller[a340_0x46a440(0x1a1)]),router['delete']('/:id',auth[a340_0x46a440(0x19e)](),controller['destroy']),module[a340_0x46a440(0x19c)]=router; \ No newline at end of file diff --git a/server/api/intSalesforceConfiguration/intSalesforceConfiguration.attributes.js b/server/api/intSalesforceConfiguration/intSalesforceConfiguration.attributes.js index fddd5c6..f27f0ed 100644 --- a/server/api/intSalesforceConfiguration/intSalesforceConfiguration.attributes.js +++ b/server/api/intSalesforceConfiguration/intSalesforceConfiguration.attributes.js @@ -1 +1 @@ -const a285_0x54ed=['nothing','STRING','sequelize','lead','contact_lead','ENUM','contact'];(function(_0x1421cf,_0x54ed42){const _0x306b49=function(_0x1bce26){while(--_0x1bce26){_0x1421cf['push'](_0x1421cf['shift']());}};_0x306b49(++_0x54ed42);}(a285_0x54ed,0x17a));const a285_0x306b=function(_0x1421cf,_0x54ed42){_0x1421cf=_0x1421cf-0x0;let _0x306b49=a285_0x54ed[_0x1421cf];return _0x306b49;};const _0x3d36b8=a285_0x306b;'use strict';const Sequelize=require(_0x3d36b8('0x2'));module['exports']={'name':{'type':Sequelize[_0x3d36b8('0x1')]},'description':{'type':Sequelize[_0x3d36b8('0x1')]},'ticketType':{'type':Sequelize[_0x3d36b8('0x5')]('Task','Case'),'defaultValue':'Task'},'moduleSearch':{'type':Sequelize[_0x3d36b8('0x5')](_0x3d36b8('0x4'),_0x3d36b8('0x6'),'lead'),'defaultValue':_0x3d36b8('0x4')},'moduleCreate':{'type':Sequelize[_0x3d36b8('0x5')](_0x3d36b8('0x0'),_0x3d36b8('0x6'),_0x3d36b8('0x3')),'defaultValue':_0x3d36b8('0x3')}}; \ No newline at end of file +const a341_0x45d0=['lead','ENUM','contact','sequelize','attributes','STRING','Case','contact_lead','Task','exports'];(function(_0x12a468,_0x50aa57){const _0x45d02b=function(_0x42f485){while(--_0x42f485){_0x12a468['push'](_0x12a468['shift']());}};_0x45d02b(++_0x50aa57);}(a341_0x45d0,0x17b));const a341_0x42f4=function(_0x12a468,_0x50aa57){_0x12a468=_0x12a468-0xde;let _0x45d02b=a341_0x45d0[_0x12a468];return _0x45d02b;};const a341_0x37c708=a341_0x42f4;'use strict';const {DataTypes}=require(a341_0x37c708(0xe2)),attributes={'name':{'type':DataTypes['STRING']},'description':{'type':DataTypes[a341_0x37c708(0xe4)]},'ticketType':{'type':DataTypes[a341_0x37c708(0xe0)](a341_0x37c708(0xe7),a341_0x37c708(0xe5)),'defaultValue':a341_0x37c708(0xe7)},'moduleSearch':{'type':DataTypes[a341_0x37c708(0xe0)](a341_0x37c708(0xe6),a341_0x37c708(0xe1),a341_0x37c708(0xdf)),'defaultValue':a341_0x37c708(0xe6)},'moduleCreate':{'type':DataTypes[a341_0x37c708(0xe0)]('nothing',a341_0x37c708(0xe1),'lead'),'defaultValue':a341_0x37c708(0xdf)}};module[a341_0x37c708(0xde)][a341_0x37c708(0xe3)]=attributes; \ No newline at end of file diff --git a/server/api/intSalesforceConfiguration/intSalesforceConfiguration.controller.js b/server/api/intSalesforceConfiguration/intSalesforceConfiguration.controller.js index ce82d37..ab40fa9 100644 --- a/server/api/intSalesforceConfiguration/intSalesforceConfiguration.controller.js +++ b/server/api/intSalesforceConfiguration/intSalesforceConfiguration.controller.js @@ -1 +1 @@ -const a286_0x5082=['fields','json','include','body','send','getDescriptions','catch','rawAttributes','attributes','name','create','options','model','lodash','pick','../../components/parsers/qs','includeAll','count','map','rows','intersection','then','merge','../../mysqldb','end','offset','SalesforceConfiguration','type','show','stack','filters','nolimit','sort','../../config/logger','update','length','getFields','status','where','sequelize','filter','findOne','like','error','params','destroy','query','undefined','getSubjects','keys','SalesforceField','order','limit'];(function(_0x54f86d,_0x508204){const _0x3bb2e3=function(_0x44297c){while(--_0x44297c){_0x54f86d['push'](_0x54f86d['shift']());}};_0x3bb2e3(++_0x508204);}(a286_0x5082,0x154));const a286_0x3bb2=function(_0x54f86d,_0x508204){_0x54f86d=_0x54f86d-0x0;let _0x3bb2e3=a286_0x5082[_0x54f86d];return _0x3bb2e3;};const _0x396870=a286_0x3bb2;'use strict';const _=require(_0x396870('0x2c')),qs=require(_0x396870('0x2e')),logger=require(_0x396870('0xb'))('api'),db=require(_0x396870('0x1'))['db'],{Op}=require(_0x396870('0x11'));function respondWithResult(_0x44297c,_0xe38408){return _0xe38408=_0xe38408||0xc8,function(_0x5d3f66){const _0x1b49da=a286_0x3bb2;if(_0x5d3f66)return _0x44297c[_0x1b49da('0xf')](_0xe38408)[_0x1b49da('0x20')](_0x5d3f66);};}function respondWithFilteredResult(_0x56072e,_0x2f2034){return function(_0x18f9b0){const _0x1ae442=a286_0x3bb2;if(_0x18f9b0){const _0x3eea4c=_0x18f9b0['count'],_0x1f51fa=_0x2f2034['offset'];let _0x5b0c56=_0x2f2034[_0x1ae442('0x3')]+_0x2f2034['limit'],_0x148ec7;return _0x5b0c56>=_0x3eea4c?(_0x5b0c56=_0x3eea4c,_0x148ec7=0xc8):_0x148ec7=0xce,_0x56072e[_0x1ae442('0xf')](_0x148ec7),_0x56072e['set']('Content-Range',_0x1f51fa+'-'+_0x5b0c56+'/'+_0x3eea4c)[_0x1ae442('0x20')](_0x18f9b0);}return null;};}function saveUpdates(_0x4a44bb){return function(_0x3e24b4){const _0x523398=a286_0x3bb2;if(_0x3e24b4)return _0x3e24b4[_0x523398('0xc')](_0x4a44bb)[_0x523398('0x34')](function(_0x8ddf06){return _0x8ddf06;});return null;};}function removeEntity(_0x9b3223){return function(_0xa86712){const _0x1caf85=a286_0x3bb2;if(_0xa86712)return _0xa86712[_0x1caf85('0x17')]()[_0x1caf85('0x34')](function(){const _0x1a871f=_0x1caf85;_0x9b3223[_0x1a871f('0xf')](0xcc)[_0x1a871f('0x2')]();});};}function handleEntityNotFound(_0x454f73){return function(_0x1d7ca0){return!_0x1d7ca0&&_0x454f73['sendStatus'](0x194),_0x1d7ca0;};}function handleError(_0x284dc8,_0x157f4a){return _0x157f4a=_0x157f4a||0x1f4,function(_0x1e42a8){const _0x350046=a286_0x3bb2;logger[_0x350046('0x15')](_0x1e42a8[_0x350046('0x7')]),_0x1e42a8['name']&&delete _0x1e42a8[_0x350046('0x28')],_0x284dc8[_0x350046('0xf')](_0x157f4a)[_0x350046('0x23')](_0x1e42a8);};}exports['index']=function(_0x21ed97,_0xa9657){const _0x5004b0=_0x396870;let _0x13589b={};const _0x195de6={},_0x382814={'count':0x0,'rows':[]},_0x3c84c9=_[_0x5004b0('0x31')](db[_0x5004b0('0x4')][_0x5004b0('0x26')],function(_0x3a4f9d){const _0x1feb41=_0x5004b0;return{'name':_0x3a4f9d['fieldName'],'type':_0x3a4f9d[_0x1feb41('0x5')]['key']};});_0x195de6['model']=_['map'](_0x3c84c9,'name'),_0x195de6['query']=_[_0x5004b0('0x1b')](_0x21ed97[_0x5004b0('0x18')]),_0x195de6[_0x5004b0('0x8')]=_[_0x5004b0('0x33')](_0x195de6['model'],_0x195de6[_0x5004b0('0x18')]),_0x13589b[_0x5004b0('0x27')]=_[_0x5004b0('0x33')](_0x195de6['model'],qs[_0x5004b0('0x1f')](_0x21ed97[_0x5004b0('0x18')][_0x5004b0('0x1f')])),_0x13589b[_0x5004b0('0x27')]=_0x13589b[_0x5004b0('0x27')][_0x5004b0('0xd')]?_0x13589b[_0x5004b0('0x27')]:_0x195de6[_0x5004b0('0x2b')];typeof _0x21ed97[_0x5004b0('0x18')][_0x5004b0('0x9')]===_0x5004b0('0x19')&&(_0x13589b[_0x5004b0('0x1e')]=qs[_0x5004b0('0x1e')](_0x21ed97['query'][_0x5004b0('0x1e')]),_0x13589b[_0x5004b0('0x3')]=qs[_0x5004b0('0x3')](_0x21ed97[_0x5004b0('0x18')][_0x5004b0('0x3')]));_0x13589b['order']=qs[_0x5004b0('0xa')](_0x21ed97[_0x5004b0('0x18')][_0x5004b0('0xa')]),_0x13589b[_0x5004b0('0x10')]=qs[_0x5004b0('0x8')](_[_0x5004b0('0x2d')](_0x21ed97[_0x5004b0('0x18')],_0x195de6['filters']),_0x3c84c9);_0x21ed97[_0x5004b0('0x18')][_0x5004b0('0x12')]&&(_0x13589b[_0x5004b0('0x10')]=_[_0x5004b0('0x0')](_0x13589b[_0x5004b0('0x10')],{[Op['or']]:_[_0x5004b0('0x31')](_0x3c84c9,function(_0x17ff08){const _0x1df90d=_0x5004b0;if(_0x17ff08['type']!=='VIRTUAL'){const _0x3f1ef3={};return _0x3f1ef3[_0x17ff08['name']]={[Op[_0x1df90d('0x14')]]:'%'+_0x21ed97[_0x1df90d('0x18')][_0x1df90d('0x12')]+'%'},_0x3f1ef3;}})}));_0x13589b=_[_0x5004b0('0x0')]({},_0x13589b,_0x21ed97[_0x5004b0('0x2a')]);const _0x21617b={'where':_0x13589b[_0x5004b0('0x10')]};return db[_0x5004b0('0x4')][_0x5004b0('0x30')](_0x21617b)[_0x5004b0('0x34')](function(_0x188954){const _0x3c6d07=_0x5004b0;return _0x382814[_0x3c6d07('0x30')]=_0x188954,_0x21ed97[_0x3c6d07('0x18')][_0x3c6d07('0x2f')]&&(_0x13589b[_0x3c6d07('0x21')]=[{'all':!![]}]),db[_0x3c6d07('0x4')]['findAll'](_0x13589b);})[_0x5004b0('0x34')](function(_0x20c80a){const _0x20cd13=_0x5004b0;return _0x382814[_0x20cd13('0x32')]=_0x20c80a,_0x382814;})[_0x5004b0('0x34')](respondWithFilteredResult(_0xa9657,_0x13589b))[_0x5004b0('0x25')](handleError(_0xa9657,null));},exports[_0x396870('0x6')]=function(_0x2ac24b,_0x43c19a){const _0x1e2ca8=_0x396870;let _0x1956f4={'raw':![],'where':{'id':_0x2ac24b[_0x1e2ca8('0x16')]['id']}};const _0x1dd449={};return _0x1dd449[_0x1e2ca8('0x2b')]=_['keys'](db[_0x1e2ca8('0x4')][_0x1e2ca8('0x26')]),_0x1dd449[_0x1e2ca8('0x18')]=_[_0x1e2ca8('0x1b')](_0x2ac24b['query']),_0x1dd449[_0x1e2ca8('0x8')]=_['intersection'](_0x1dd449[_0x1e2ca8('0x2b')],_0x1dd449[_0x1e2ca8('0x18')]),_0x1956f4[_0x1e2ca8('0x27')]=_[_0x1e2ca8('0x33')](_0x1dd449[_0x1e2ca8('0x2b')],qs['fields'](_0x2ac24b[_0x1e2ca8('0x18')][_0x1e2ca8('0x1f')])),_0x1956f4[_0x1e2ca8('0x27')]=_0x1956f4['attributes']['length']?_0x1956f4[_0x1e2ca8('0x27')]:_0x1dd449[_0x1e2ca8('0x2b')],_0x2ac24b[_0x1e2ca8('0x18')]['includeAll']&&(_0x1956f4['include']=[{'all':!![]}]),_0x1956f4=_[_0x1e2ca8('0x0')]({},_0x1956f4,_0x2ac24b[_0x1e2ca8('0x2a')]),db[_0x1e2ca8('0x4')][_0x1e2ca8('0x13')](_0x1956f4)[_0x1e2ca8('0x34')](handleEntityNotFound(_0x43c19a,null))[_0x1e2ca8('0x34')](respondWithResult(_0x43c19a,null))[_0x1e2ca8('0x25')](handleError(_0x43c19a,null));},exports[_0x396870('0x29')]=function(_0x1521c6,_0x5d48fc){const _0x275bc=_0x396870;return db[_0x275bc('0x4')][_0x275bc('0x29')](_0x1521c6[_0x275bc('0x22')],{})[_0x275bc('0x34')](respondWithResult(_0x5d48fc,0xc9))[_0x275bc('0x25')](handleError(_0x5d48fc,null));},exports[_0x396870('0xc')]=function(_0xe96709,_0x317ac2){const _0x1d9df5=_0x396870;return _0xe96709[_0x1d9df5('0x22')]['id']&&delete _0xe96709[_0x1d9df5('0x22')]['id'],db[_0x1d9df5('0x4')]['findOne']({'where':{'id':_0xe96709[_0x1d9df5('0x16')]['id']}})['then'](handleEntityNotFound(_0x317ac2,null))[_0x1d9df5('0x34')](saveUpdates(_0xe96709[_0x1d9df5('0x22')],null))['then'](respondWithResult(_0x317ac2,null))[_0x1d9df5('0x25')](handleError(_0x317ac2,null));},exports[_0x396870('0x17')]=function(_0x4a3fbd,_0x136170){const _0x424307=_0x396870;return db[_0x424307('0x4')]['findOne']({'where':{'id':_0x4a3fbd['params']['id']}})['then'](handleEntityNotFound(_0x136170,null))['then'](removeEntity(_0x136170,null))[_0x424307('0x25')](handleError(_0x136170,null));},exports[_0x396870('0xe')]=function(_0x5bcd3d,_0x3b9c81){const _0x27d4ee=_0x396870;let _0x204be8={};const _0x2122e3={};let _0xd4a4cc,_0x395a3e;return db[_0x27d4ee('0x4')]['findOne']({'where':{'id':_0x5bcd3d[_0x27d4ee('0x16')]['id']}})[_0x27d4ee('0x34')](handleEntityNotFound(_0x3b9c81,null))[_0x27d4ee('0x34')](function(_0x34fddd){const _0x2cc338=_0x27d4ee;if(_0x34fddd)return _0xd4a4cc=_0x34fddd,_0x2122e3[_0x2cc338('0x2b')]=_[_0x2cc338('0x1b')](db[_0x2cc338('0x1c')][_0x2cc338('0x26')]),_0x2122e3[_0x2cc338('0x18')]=_['keys'](_0x5bcd3d[_0x2cc338('0x18')]),_0x2122e3['filters']=_[_0x2cc338('0x33')](_0x2122e3[_0x2cc338('0x2b')],_0x2122e3[_0x2cc338('0x18')]),_0x204be8[_0x2cc338('0x27')]=_[_0x2cc338('0x33')](_0x2122e3[_0x2cc338('0x2b')],qs[_0x2cc338('0x1f')](_0x5bcd3d[_0x2cc338('0x18')]['fields'])),_0x204be8[_0x2cc338('0x27')]=_0x204be8[_0x2cc338('0x27')][_0x2cc338('0xd')]?_0x204be8['attributes']:_0x2122e3[_0x2cc338('0x2b')],_0x204be8[_0x2cc338('0x1d')]=qs['sort'](_0x5bcd3d[_0x2cc338('0x18')][_0x2cc338('0xa')]),_0x204be8[_0x2cc338('0x10')]=qs['filters'](_[_0x2cc338('0x2d')](_0x5bcd3d['query'],_0x2122e3[_0x2cc338('0x8')])),_0x5bcd3d[_0x2cc338('0x18')][_0x2cc338('0x12')]&&(_0x204be8[_0x2cc338('0x10')]=_[_0x2cc338('0x0')](_0x204be8['where'],{[Op['or']]:_[_0x2cc338('0x31')](_0x204be8[_0x2cc338('0x27')],function(_0x3edbd5){const _0x4d24f3=_0x2cc338,_0x1c823b={};return _0x1c823b[_0x3edbd5]={[Op[_0x4d24f3('0x14')]]:'%'+_0x5bcd3d[_0x4d24f3('0x18')][_0x4d24f3('0x12')]+'%'},_0x1c823b;})})),_0x204be8=_['merge']({},_0x204be8,_0x5bcd3d[_0x2cc338('0x2a')]),_0xd4a4cc[_0x2cc338('0xe')](_0x204be8);})['then'](function(_0x4f1c19){const _0x5c63d5=_0x27d4ee;if(_0x4f1c19)return _0x395a3e=_0x4f1c19[_0x5c63d5('0xd')],typeof _0x5bcd3d[_0x5c63d5('0x18')][_0x5c63d5('0x9')]===_0x5c63d5('0x19')&&(_0x204be8[_0x5c63d5('0x1e')]=qs['limit'](_0x5bcd3d[_0x5c63d5('0x18')][_0x5c63d5('0x1e')]),_0x204be8[_0x5c63d5('0x3')]=qs['offset'](_0x5bcd3d['query'][_0x5c63d5('0x3')])),_0xd4a4cc['getFields'](_0x204be8);})[_0x27d4ee('0x34')](function(_0x5e6bae){if(_0x5e6bae)return _0x5e6bae?{'count':_0x395a3e,'rows':_0x5e6bae}:null;})[_0x27d4ee('0x34')](respondWithResult(_0x3b9c81,null))[_0x27d4ee('0x25')](handleError(_0x3b9c81,null));},exports['getSubjects']=function(_0x1b2864,_0x2cbb34){const _0x440237=_0x396870;let _0x2f9f11={};const _0x3578e3={};let _0x14f349,_0x59a4f8;return db[_0x440237('0x4')][_0x440237('0x13')]({'where':{'id':_0x1b2864[_0x440237('0x16')]['id']}})[_0x440237('0x34')](handleEntityNotFound(_0x2cbb34,null))['then'](function(_0x34139e){const _0x4281cc=_0x440237;if(_0x34139e)return _0x14f349=_0x34139e,_0x3578e3[_0x4281cc('0x2b')]=_['keys'](db[_0x4281cc('0x1c')][_0x4281cc('0x26')]),_0x3578e3[_0x4281cc('0x18')]=_[_0x4281cc('0x1b')](_0x1b2864[_0x4281cc('0x18')]),_0x3578e3[_0x4281cc('0x8')]=_[_0x4281cc('0x33')](_0x3578e3[_0x4281cc('0x2b')],_0x3578e3[_0x4281cc('0x18')]),_0x2f9f11[_0x4281cc('0x27')]=_[_0x4281cc('0x33')](_0x3578e3[_0x4281cc('0x2b')],qs[_0x4281cc('0x1f')](_0x1b2864[_0x4281cc('0x18')][_0x4281cc('0x1f')])),_0x2f9f11[_0x4281cc('0x27')]=_0x2f9f11[_0x4281cc('0x27')][_0x4281cc('0xd')]?_0x2f9f11[_0x4281cc('0x27')]:_0x3578e3['model'],_0x2f9f11['order']=qs['sort'](_0x1b2864[_0x4281cc('0x18')][_0x4281cc('0xa')]),_0x2f9f11[_0x4281cc('0x10')]=qs[_0x4281cc('0x8')](_['pick'](_0x1b2864[_0x4281cc('0x18')],_0x3578e3[_0x4281cc('0x8')])),_0x1b2864['query'][_0x4281cc('0x12')]&&(_0x2f9f11[_0x4281cc('0x10')]=_[_0x4281cc('0x0')](_0x2f9f11[_0x4281cc('0x10')],{[Op['or']]:_[_0x4281cc('0x31')](_0x2f9f11[_0x4281cc('0x27')],function(_0x428af6){const _0x463133=_0x4281cc,_0x27c5e1={};return _0x27c5e1[_0x428af6]={[Op[_0x463133('0x14')]]:'%'+_0x1b2864[_0x463133('0x18')]['filter']+'%'},_0x27c5e1;})})),_0x2f9f11=_[_0x4281cc('0x0')]({},_0x2f9f11,_0x1b2864['options']),_0x14f349[_0x4281cc('0x1a')](_0x2f9f11);})['then'](function(_0x3ccf49){const _0x581f43=_0x440237;if(_0x3ccf49)return _0x59a4f8=_0x3ccf49['length'],typeof _0x1b2864[_0x581f43('0x18')]['nolimit']==='undefined'&&(_0x2f9f11['limit']=qs[_0x581f43('0x1e')](_0x1b2864[_0x581f43('0x18')]['limit']),_0x2f9f11[_0x581f43('0x3')]=qs[_0x581f43('0x3')](_0x1b2864[_0x581f43('0x18')][_0x581f43('0x3')])),_0x14f349[_0x581f43('0x1a')](_0x2f9f11);})[_0x440237('0x34')](function(_0x5b6074){if(_0x5b6074)return _0x5b6074?{'count':_0x59a4f8,'rows':_0x5b6074}:null;})[_0x440237('0x34')](respondWithResult(_0x2cbb34,null))[_0x440237('0x25')](handleError(_0x2cbb34,null));},exports[_0x396870('0x24')]=function(_0x13bba4,_0x19409f){const _0x250de9=_0x396870;let _0x1f7982={};const _0x24b205={};let _0x363d0c,_0x57cace;return db[_0x250de9('0x4')][_0x250de9('0x13')]({'where':{'id':_0x13bba4['params']['id']}})[_0x250de9('0x34')](handleEntityNotFound(_0x19409f,null))[_0x250de9('0x34')](function(_0x1d38fb){const _0x39b4b7=_0x250de9;if(_0x1d38fb)return _0x363d0c=_0x1d38fb,_0x24b205[_0x39b4b7('0x2b')]=_['keys'](db[_0x39b4b7('0x1c')][_0x39b4b7('0x26')]),_0x24b205['query']=_['keys'](_0x13bba4[_0x39b4b7('0x18')]),_0x24b205[_0x39b4b7('0x8')]=_[_0x39b4b7('0x33')](_0x24b205[_0x39b4b7('0x2b')],_0x24b205[_0x39b4b7('0x18')]),_0x1f7982[_0x39b4b7('0x27')]=_['intersection'](_0x24b205[_0x39b4b7('0x2b')],qs['fields'](_0x13bba4['query']['fields'])),_0x1f7982[_0x39b4b7('0x27')]=_0x1f7982['attributes'][_0x39b4b7('0xd')]?_0x1f7982[_0x39b4b7('0x27')]:_0x24b205[_0x39b4b7('0x2b')],_0x1f7982['order']=qs[_0x39b4b7('0xa')](_0x13bba4[_0x39b4b7('0x18')][_0x39b4b7('0xa')]),_0x1f7982['where']=qs[_0x39b4b7('0x8')](_['pick'](_0x13bba4[_0x39b4b7('0x18')],_0x24b205[_0x39b4b7('0x8')])),_0x13bba4[_0x39b4b7('0x18')][_0x39b4b7('0x12')]&&(_0x1f7982[_0x39b4b7('0x10')]=_[_0x39b4b7('0x0')](_0x1f7982[_0x39b4b7('0x10')],{[Op['or']]:_[_0x39b4b7('0x31')](_0x1f7982[_0x39b4b7('0x27')],function(_0x2bddb9){const _0x2487c9=_0x39b4b7,_0x4d939e={};return _0x4d939e[_0x2bddb9]={[Op['like']]:'%'+_0x13bba4[_0x2487c9('0x18')]['filter']+'%'},_0x4d939e;})})),_0x1f7982=_[_0x39b4b7('0x0')]({},_0x1f7982,_0x13bba4['options']),_0x363d0c[_0x39b4b7('0x24')](_0x1f7982);})[_0x250de9('0x34')](function(_0x24df22){const _0x42e64d=_0x250de9;if(_0x24df22)return _0x57cace=_0x24df22['length'],typeof _0x13bba4['query'][_0x42e64d('0x9')]===_0x42e64d('0x19')&&(_0x1f7982['limit']=qs['limit'](_0x13bba4[_0x42e64d('0x18')][_0x42e64d('0x1e')]),_0x1f7982['offset']=qs[_0x42e64d('0x3')](_0x13bba4['query'][_0x42e64d('0x3')])),_0x363d0c['getDescriptions'](_0x1f7982);})['then'](function(_0x319e11){if(_0x319e11)return _0x319e11?{'count':_0x57cace,'rows':_0x319e11}:null;})[_0x250de9('0x34')](respondWithResult(_0x19409f,null))[_0x250de9('0x25')](handleError(_0x19409f,null));}; \ No newline at end of file +const a342_0x2a96=['send','filters','rawAttributes','limit','rows','intersection','query','api','stack','count','catch','includeAll','SalesforceField','json','options','create','Content-Range','params','nolimit','fieldName','fields','include','update','sort','undefined','offset','VIRTUAL','length','sequelize','type','index','like','map','getSubjects','pick','name','error','findOne','lodash','then','keys','where','../../components/parsers/qs','order','model','findAll','attributes','key','status','merge','show','body','getDescriptions','filter','SalesforceConfiguration','getFields'];(function(_0x18db78,_0xf6c4e6){const _0x2a96f3=function(_0x64f87){while(--_0x64f87){_0x18db78['push'](_0x18db78['shift']());}};_0x2a96f3(++_0xf6c4e6);}(a342_0x2a96,0x19a));const a342_0x64f8=function(_0x18db78,_0xf6c4e6){_0x18db78=_0x18db78-0x9f;let _0x2a96f3=a342_0x2a96[_0x18db78];return _0x2a96f3;};const a342_0x4e9f5d=a342_0x64f8;'use strict';const _=require(a342_0x4e9f5d(0xb3)),qs=require(a342_0x4e9f5d(0xb7)),logger=require('../../config/logger')(a342_0x4e9f5d(0xcc)),{db}=require('../../mysqldb'),{Op}=require(a342_0x4e9f5d(0xa9));function respondWithResult(_0xeabbe4,_0x3873a6){return _0x3873a6=_0x3873a6||0xc8,function(_0x9a6005){const _0x1a5162=a342_0x64f8;if(_0x9a6005)return _0xeabbe4['status'](_0x3873a6)[_0x1a5162(0xd2)](_0x9a6005);};}function respondWithFilteredResult(_0x3a4927,_0x4f0fa6){return function(_0x5710fd){const _0x11434b=a342_0x64f8;if(_0x5710fd){const _0x2d01b0=_0x5710fd['count'],_0x43eb77=_0x4f0fa6['offset'];let _0x14bcba=_0x4f0fa6[_0x11434b(0xa6)]+_0x4f0fa6[_0x11434b(0xc8)],_0x20ebc0;return _0x14bcba>=_0x2d01b0?(_0x14bcba=_0x2d01b0,_0x20ebc0=0xc8):_0x20ebc0=0xce,_0x3a4927[_0x11434b(0xbd)](_0x20ebc0),_0x3a4927['set'](_0x11434b(0xd5),_0x43eb77+'-'+_0x14bcba+'/'+_0x2d01b0)['json'](_0x5710fd);}return null;};}function saveUpdates(_0x198342){return function(_0x6aadfe){const _0x411773=a342_0x64f8;if(_0x6aadfe)return _0x6aadfe[_0x411773(0xa3)](_0x198342)['then'](function(_0x3acd3c){return _0x3acd3c;});return null;};}function removeEntity(_0x3099d7){return function(_0x4874b7){if(_0x4874b7)return _0x4874b7['destroy']()['then'](function(){_0x3099d7['status'](0xcc)['end']();});};}function handleEntityNotFound(_0x5ec279){return function(_0x1dd8c3){return!_0x1dd8c3&&_0x5ec279['sendStatus'](0x194),_0x1dd8c3;};}function handleError(_0x54ade7,_0x4615e0){return _0x4615e0=_0x4615e0||0x1f4,function(_0x5e70ae){const _0x446bb5=a342_0x64f8;logger[_0x446bb5(0xb1)](_0x5e70ae[_0x446bb5(0xcd)]),_0x5e70ae[_0x446bb5(0xb0)]&&delete _0x5e70ae['name'],_0x54ade7['status'](_0x4615e0)[_0x446bb5(0xc5)](_0x5e70ae);};}exports[a342_0x4e9f5d(0xab)]=function(_0xfa0939,_0x51f573){const _0x52bd6c=a342_0x4e9f5d;let _0x2e692d={};const _0x387a75={},_0xa2f4c7={'count':0x0,'rows':[]},_0x5640bd=_[_0x52bd6c(0xad)](db[_0x52bd6c(0xc3)][_0x52bd6c(0xc7)],function(_0x2bad32){const _0x57b3c0=_0x52bd6c;return{'name':_0x2bad32[_0x57b3c0(0xa0)],'type':_0x2bad32[_0x57b3c0(0xaa)][_0x57b3c0(0xbc)]};});_0x387a75[_0x52bd6c(0xb9)]=_[_0x52bd6c(0xad)](_0x5640bd,'name'),_0x387a75[_0x52bd6c(0xcb)]=_['keys'](_0xfa0939[_0x52bd6c(0xcb)]),_0x387a75['filters']=_[_0x52bd6c(0xca)](_0x387a75['model'],_0x387a75['query']),_0x2e692d['attributes']=_[_0x52bd6c(0xca)](_0x387a75[_0x52bd6c(0xb9)],qs[_0x52bd6c(0xa1)](_0xfa0939[_0x52bd6c(0xcb)][_0x52bd6c(0xa1)])),_0x2e692d[_0x52bd6c(0xbb)]=_0x2e692d[_0x52bd6c(0xbb)][_0x52bd6c(0xa8)]?_0x2e692d[_0x52bd6c(0xbb)]:_0x387a75[_0x52bd6c(0xb9)];typeof _0xfa0939[_0x52bd6c(0xcb)][_0x52bd6c(0x9f)]==='undefined'&&(_0x2e692d[_0x52bd6c(0xc8)]=qs[_0x52bd6c(0xc8)](_0xfa0939[_0x52bd6c(0xcb)][_0x52bd6c(0xc8)]),_0x2e692d['offset']=qs[_0x52bd6c(0xa6)](_0xfa0939['query'][_0x52bd6c(0xa6)]));_0x2e692d[_0x52bd6c(0xb8)]=qs[_0x52bd6c(0xa4)](_0xfa0939[_0x52bd6c(0xcb)][_0x52bd6c(0xa4)]),_0x2e692d[_0x52bd6c(0xb6)]=qs['filters'](_[_0x52bd6c(0xaf)](_0xfa0939[_0x52bd6c(0xcb)],_0x387a75['filters']),_0x5640bd);_0xfa0939['query'][_0x52bd6c(0xc2)]&&(_0x2e692d['where']=_[_0x52bd6c(0xbe)](_0x2e692d[_0x52bd6c(0xb6)],{[Op['or']]:_[_0x52bd6c(0xad)](_0x5640bd,function(_0x7e83c7){const _0x4d7935=_0x52bd6c;if(_0x7e83c7[_0x4d7935(0xaa)]!==_0x4d7935(0xa7)){const _0xdc909={};return _0xdc909[_0x7e83c7[_0x4d7935(0xb0)]]={[Op[_0x4d7935(0xac)]]:'%'+_0xfa0939[_0x4d7935(0xcb)]['filter']+'%'},_0xdc909;}})}));_0x2e692d=_[_0x52bd6c(0xbe)]({},_0x2e692d,_0xfa0939[_0x52bd6c(0xd3)]);const _0x4a1dcc={'where':_0x2e692d[_0x52bd6c(0xb6)]};return db[_0x52bd6c(0xc3)][_0x52bd6c(0xce)](_0x4a1dcc)[_0x52bd6c(0xb4)](function(_0x2a1ace){const _0x20845b=_0x52bd6c;return _0xa2f4c7['count']=_0x2a1ace,_0xfa0939[_0x20845b(0xcb)][_0x20845b(0xd0)]&&(_0x2e692d[_0x20845b(0xa2)]=[{'all':!![]}]),db[_0x20845b(0xc3)][_0x20845b(0xba)](_0x2e692d);})[_0x52bd6c(0xb4)](function(_0x415d87){const _0x391f81=_0x52bd6c;return _0xa2f4c7[_0x391f81(0xc9)]=_0x415d87,_0xa2f4c7;})[_0x52bd6c(0xb4)](respondWithFilteredResult(_0x51f573,_0x2e692d))[_0x52bd6c(0xcf)](handleError(_0x51f573,null));},exports[a342_0x4e9f5d(0xbf)]=function(_0x9549b8,_0xfacf79){const _0x578218=a342_0x4e9f5d;let _0x3f64ae={'raw':![],'where':{'id':_0x9549b8[_0x578218(0xd6)]['id']}};const _0x4abf92={};return _0x4abf92['model']=_['keys'](db[_0x578218(0xc3)][_0x578218(0xc7)]),_0x4abf92['query']=_[_0x578218(0xb5)](_0x9549b8['query']),_0x4abf92[_0x578218(0xc6)]=_[_0x578218(0xca)](_0x4abf92[_0x578218(0xb9)],_0x4abf92[_0x578218(0xcb)]),_0x3f64ae['attributes']=_[_0x578218(0xca)](_0x4abf92['model'],qs[_0x578218(0xa1)](_0x9549b8[_0x578218(0xcb)][_0x578218(0xa1)])),_0x3f64ae[_0x578218(0xbb)]=_0x3f64ae[_0x578218(0xbb)][_0x578218(0xa8)]?_0x3f64ae[_0x578218(0xbb)]:_0x4abf92['model'],_0x9549b8['query'][_0x578218(0xd0)]&&(_0x3f64ae[_0x578218(0xa2)]=[{'all':!![]}]),_0x3f64ae=_[_0x578218(0xbe)]({},_0x3f64ae,_0x9549b8[_0x578218(0xd3)]),db[_0x578218(0xc3)]['findOne'](_0x3f64ae)[_0x578218(0xb4)](handleEntityNotFound(_0xfacf79,null))[_0x578218(0xb4)](respondWithResult(_0xfacf79,null))[_0x578218(0xcf)](handleError(_0xfacf79,null));},exports[a342_0x4e9f5d(0xd4)]=function(_0x1448cd,_0x3238ed){const _0x45a53f=a342_0x4e9f5d;return db[_0x45a53f(0xc3)][_0x45a53f(0xd4)](_0x1448cd[_0x45a53f(0xc0)],{})[_0x45a53f(0xb4)](respondWithResult(_0x3238ed,0xc9))['catch'](handleError(_0x3238ed,null));},exports['update']=function(_0x5335bc,_0x580086){const _0x30886f=a342_0x4e9f5d;return _0x5335bc[_0x30886f(0xc0)]['id']&&delete _0x5335bc['body']['id'],db[_0x30886f(0xc3)]['findOne']({'where':{'id':_0x5335bc[_0x30886f(0xd6)]['id']}})[_0x30886f(0xb4)](handleEntityNotFound(_0x580086,null))[_0x30886f(0xb4)](saveUpdates(_0x5335bc[_0x30886f(0xc0)],null))[_0x30886f(0xb4)](respondWithResult(_0x580086,null))[_0x30886f(0xcf)](handleError(_0x580086,null));},exports['destroy']=function(_0x5802cb,_0x45fe36){const _0x1e32f9=a342_0x4e9f5d;return db[_0x1e32f9(0xc3)][_0x1e32f9(0xb2)]({'where':{'id':_0x5802cb[_0x1e32f9(0xd6)]['id']}})[_0x1e32f9(0xb4)](handleEntityNotFound(_0x45fe36,null))['then'](removeEntity(_0x45fe36,null))[_0x1e32f9(0xcf)](handleError(_0x45fe36,null));},exports['getFields']=function(_0x29f0c6,_0x251f02){const _0x1a7dc7=a342_0x4e9f5d;let _0x401db2={};const _0x4c0f6c={};let _0x5c3398,_0x3535ca;return db['SalesforceConfiguration'][_0x1a7dc7(0xb2)]({'where':{'id':_0x29f0c6[_0x1a7dc7(0xd6)]['id']}})[_0x1a7dc7(0xb4)](handleEntityNotFound(_0x251f02,null))[_0x1a7dc7(0xb4)](function(_0x259cc4){const _0x29acd9=_0x1a7dc7;if(_0x259cc4)return _0x5c3398=_0x259cc4,_0x4c0f6c['model']=_[_0x29acd9(0xb5)](db[_0x29acd9(0xd1)][_0x29acd9(0xc7)]),_0x4c0f6c[_0x29acd9(0xcb)]=_[_0x29acd9(0xb5)](_0x29f0c6['query']),_0x4c0f6c[_0x29acd9(0xc6)]=_[_0x29acd9(0xca)](_0x4c0f6c[_0x29acd9(0xb9)],_0x4c0f6c[_0x29acd9(0xcb)]),_0x401db2[_0x29acd9(0xbb)]=_[_0x29acd9(0xca)](_0x4c0f6c[_0x29acd9(0xb9)],qs['fields'](_0x29f0c6[_0x29acd9(0xcb)][_0x29acd9(0xa1)])),_0x401db2['attributes']=_0x401db2['attributes'][_0x29acd9(0xa8)]?_0x401db2[_0x29acd9(0xbb)]:_0x4c0f6c[_0x29acd9(0xb9)],_0x401db2[_0x29acd9(0xb8)]=qs[_0x29acd9(0xa4)](_0x29f0c6[_0x29acd9(0xcb)][_0x29acd9(0xa4)]),_0x401db2[_0x29acd9(0xb6)]=qs['filters'](_['pick'](_0x29f0c6[_0x29acd9(0xcb)],_0x4c0f6c[_0x29acd9(0xc6)])),_0x29f0c6[_0x29acd9(0xcb)]['filter']&&(_0x401db2[_0x29acd9(0xb6)]=_[_0x29acd9(0xbe)](_0x401db2[_0x29acd9(0xb6)],{[Op['or']]:_[_0x29acd9(0xad)](_0x401db2[_0x29acd9(0xbb)],function(_0x53e8f1){const _0x4cb848=_0x29acd9,_0x87c9de={};return _0x87c9de[_0x53e8f1]={[Op[_0x4cb848(0xac)]]:'%'+_0x29f0c6['query'][_0x4cb848(0xc2)]+'%'},_0x87c9de;})})),_0x401db2=_[_0x29acd9(0xbe)]({},_0x401db2,_0x29f0c6[_0x29acd9(0xd3)]),_0x5c3398[_0x29acd9(0xc4)](_0x401db2);})[_0x1a7dc7(0xb4)](function(_0x21ca04){const _0xa32aa4=_0x1a7dc7;if(_0x21ca04)return _0x3535ca=_0x21ca04['length'],typeof _0x29f0c6[_0xa32aa4(0xcb)][_0xa32aa4(0x9f)]===_0xa32aa4(0xa5)&&(_0x401db2['limit']=qs['limit'](_0x29f0c6[_0xa32aa4(0xcb)][_0xa32aa4(0xc8)]),_0x401db2[_0xa32aa4(0xa6)]=qs[_0xa32aa4(0xa6)](_0x29f0c6[_0xa32aa4(0xcb)]['offset'])),_0x5c3398[_0xa32aa4(0xc4)](_0x401db2);})[_0x1a7dc7(0xb4)](function(_0x2db633){if(_0x2db633)return _0x2db633?{'count':_0x3535ca,'rows':_0x2db633}:null;})['then'](respondWithResult(_0x251f02,null))[_0x1a7dc7(0xcf)](handleError(_0x251f02,null));},exports[a342_0x4e9f5d(0xae)]=function(_0x35f09a,_0x49c0dd){const _0x5b4729=a342_0x4e9f5d;let _0x569aa1={};const _0x337a15={};let _0x1c22c1,_0x40d1fd;return db[_0x5b4729(0xc3)][_0x5b4729(0xb2)]({'where':{'id':_0x35f09a['params']['id']}})[_0x5b4729(0xb4)](handleEntityNotFound(_0x49c0dd,null))[_0x5b4729(0xb4)](function(_0x20f024){const _0x373b7c=_0x5b4729;if(_0x20f024)return _0x1c22c1=_0x20f024,_0x337a15['model']=_[_0x373b7c(0xb5)](db[_0x373b7c(0xd1)][_0x373b7c(0xc7)]),_0x337a15[_0x373b7c(0xcb)]=_['keys'](_0x35f09a[_0x373b7c(0xcb)]),_0x337a15['filters']=_[_0x373b7c(0xca)](_0x337a15[_0x373b7c(0xb9)],_0x337a15[_0x373b7c(0xcb)]),_0x569aa1[_0x373b7c(0xbb)]=_[_0x373b7c(0xca)](_0x337a15['model'],qs[_0x373b7c(0xa1)](_0x35f09a['query']['fields'])),_0x569aa1[_0x373b7c(0xbb)]=_0x569aa1['attributes']['length']?_0x569aa1[_0x373b7c(0xbb)]:_0x337a15[_0x373b7c(0xb9)],_0x569aa1[_0x373b7c(0xb8)]=qs[_0x373b7c(0xa4)](_0x35f09a[_0x373b7c(0xcb)][_0x373b7c(0xa4)]),_0x569aa1[_0x373b7c(0xb6)]=qs[_0x373b7c(0xc6)](_[_0x373b7c(0xaf)](_0x35f09a[_0x373b7c(0xcb)],_0x337a15['filters'])),_0x35f09a['query'][_0x373b7c(0xc2)]&&(_0x569aa1[_0x373b7c(0xb6)]=_[_0x373b7c(0xbe)](_0x569aa1['where'],{[Op['or']]:_[_0x373b7c(0xad)](_0x569aa1[_0x373b7c(0xbb)],function(_0x24736a){const _0xb450a5=_0x373b7c,_0x4334c0={};return _0x4334c0[_0x24736a]={[Op[_0xb450a5(0xac)]]:'%'+_0x35f09a[_0xb450a5(0xcb)][_0xb450a5(0xc2)]+'%'},_0x4334c0;})})),_0x569aa1=_['merge']({},_0x569aa1,_0x35f09a[_0x373b7c(0xd3)]),_0x1c22c1['getSubjects'](_0x569aa1);})[_0x5b4729(0xb4)](function(_0x5a7fd6){const _0x4f4837=_0x5b4729;if(_0x5a7fd6)return _0x40d1fd=_0x5a7fd6[_0x4f4837(0xa8)],typeof _0x35f09a[_0x4f4837(0xcb)][_0x4f4837(0x9f)]===_0x4f4837(0xa5)&&(_0x569aa1[_0x4f4837(0xc8)]=qs[_0x4f4837(0xc8)](_0x35f09a['query'][_0x4f4837(0xc8)]),_0x569aa1['offset']=qs[_0x4f4837(0xa6)](_0x35f09a[_0x4f4837(0xcb)][_0x4f4837(0xa6)])),_0x1c22c1['getSubjects'](_0x569aa1);})[_0x5b4729(0xb4)](function(_0x36b419){if(_0x36b419)return _0x36b419?{'count':_0x40d1fd,'rows':_0x36b419}:null;})[_0x5b4729(0xb4)](respondWithResult(_0x49c0dd,null))[_0x5b4729(0xcf)](handleError(_0x49c0dd,null));},exports['getDescriptions']=function(_0x588bf8,_0x21abdd){const _0x157338=a342_0x4e9f5d;let _0x125c89={};const _0x1c177d={};let _0x4f9d80,_0x477ef1;return db['SalesforceConfiguration']['findOne']({'where':{'id':_0x588bf8[_0x157338(0xd6)]['id']}})[_0x157338(0xb4)](handleEntityNotFound(_0x21abdd,null))['then'](function(_0x3aff3e){const _0x4aab82=_0x157338;if(_0x3aff3e)return _0x4f9d80=_0x3aff3e,_0x1c177d['model']=_[_0x4aab82(0xb5)](db[_0x4aab82(0xd1)][_0x4aab82(0xc7)]),_0x1c177d['query']=_['keys'](_0x588bf8[_0x4aab82(0xcb)]),_0x1c177d[_0x4aab82(0xc6)]=_[_0x4aab82(0xca)](_0x1c177d[_0x4aab82(0xb9)],_0x1c177d[_0x4aab82(0xcb)]),_0x125c89[_0x4aab82(0xbb)]=_[_0x4aab82(0xca)](_0x1c177d['model'],qs[_0x4aab82(0xa1)](_0x588bf8[_0x4aab82(0xcb)][_0x4aab82(0xa1)])),_0x125c89[_0x4aab82(0xbb)]=_0x125c89[_0x4aab82(0xbb)][_0x4aab82(0xa8)]?_0x125c89[_0x4aab82(0xbb)]:_0x1c177d[_0x4aab82(0xb9)],_0x125c89[_0x4aab82(0xb8)]=qs[_0x4aab82(0xa4)](_0x588bf8[_0x4aab82(0xcb)][_0x4aab82(0xa4)]),_0x125c89[_0x4aab82(0xb6)]=qs[_0x4aab82(0xc6)](_[_0x4aab82(0xaf)](_0x588bf8[_0x4aab82(0xcb)],_0x1c177d[_0x4aab82(0xc6)])),_0x588bf8['query'][_0x4aab82(0xc2)]&&(_0x125c89[_0x4aab82(0xb6)]=_['merge'](_0x125c89['where'],{[Op['or']]:_[_0x4aab82(0xad)](_0x125c89['attributes'],function(_0x4d6ec4){const _0x369562=_0x4aab82,_0x274ca5={};return _0x274ca5[_0x4d6ec4]={[Op[_0x369562(0xac)]]:'%'+_0x588bf8['query']['filter']+'%'},_0x274ca5;})})),_0x125c89=_['merge']({},_0x125c89,_0x588bf8['options']),_0x4f9d80[_0x4aab82(0xc1)](_0x125c89);})[_0x157338(0xb4)](function(_0x23d90d){const _0x37aff7=_0x157338;if(_0x23d90d)return _0x477ef1=_0x23d90d[_0x37aff7(0xa8)],typeof _0x588bf8[_0x37aff7(0xcb)][_0x37aff7(0x9f)]===_0x37aff7(0xa5)&&(_0x125c89[_0x37aff7(0xc8)]=qs[_0x37aff7(0xc8)](_0x588bf8[_0x37aff7(0xcb)]['limit']),_0x125c89[_0x37aff7(0xa6)]=qs[_0x37aff7(0xa6)](_0x588bf8[_0x37aff7(0xcb)][_0x37aff7(0xa6)])),_0x4f9d80[_0x37aff7(0xc1)](_0x125c89);})[_0x157338(0xb4)](function(_0x59da93){if(_0x59da93)return _0x59da93?{'count':_0x477ef1,'rows':_0x59da93}:null;})[_0x157338(0xb4)](respondWithResult(_0x21abdd,null))[_0x157338(0xcf)](handleError(_0x21abdd,null));}; \ No newline at end of file diff --git a/server/api/intSalesforceConfiguration/intSalesforceConfiguration.model.js b/server/api/intSalesforceConfiguration/intSalesforceConfiguration.model.js index 7e6f93d..704c849 100644 --- a/server/api/intSalesforceConfiguration/intSalesforceConfiguration.model.js +++ b/server/api/intSalesforceConfiguration/intSalesforceConfiguration.model.js @@ -1 +1 @@ -const a287_0xca05=['define','exports','SalesforceConfiguration'];(function(_0x538dc7,_0xca0502){const _0x4c7651=function(_0x570af3){while(--_0x570af3){_0x538dc7['push'](_0x538dc7['shift']());}};_0x4c7651(++_0xca0502);}(a287_0xca05,0x77));const a287_0x4c76=function(_0x538dc7,_0xca0502){_0x538dc7=_0x538dc7-0x0;let _0x4c7651=a287_0xca05[_0x538dc7];return _0x4c7651;};const _0x5b0de3=a287_0x4c76;'use strict';const attributes=require('./intSalesforceConfiguration.attributes');module[_0x5b0de3('0x2')]=function(_0x570af3){const _0x49f47d=_0x5b0de3,_0x3466d8=_0x570af3[_0x49f47d('0x1')](_0x49f47d('0x0'),attributes,{'tableName':'int_salesforce_configurations','paranoid':![],'indexes':[],'timestamps':!![]});return _0x3466d8;}; \ No newline at end of file +const a343_0x2c1f=['exports','function','SalesforceConfiguration','sequelize','init'];(function(_0x455889,_0x4cb1f2){const _0x2c1fbd=function(_0x28c00c){while(--_0x28c00c){_0x455889['push'](_0x455889['shift']());}};_0x2c1fbd(++_0x4cb1f2);}(a343_0x2c1f,0x18c));const a343_0x28c0=function(_0x455889,_0x4cb1f2){_0x455889=_0x455889-0x8e;let _0x2c1fbd=a343_0x2c1f[_0x455889];return _0x2c1fbd;};const a343_0x5f5078=a343_0x28c0;'use strict';const {Model}=require(a343_0x5f5078(0x90)),{attributes}=require('./intSalesforceConfiguration.attributes'),{options}=require('./intSalesforceConfiguration.options');class SalesforceConfiguration extends Model{}function init(_0x1004db,_0x284552){const _0xab9c1a=a343_0x5f5078,_0x1bcadb=options(_0x1004db),_0x296efb=typeof _0x284552===_0xab9c1a(0x8e)?_0x284552(_0x1bcadb):_0x1bcadb;return SalesforceConfiguration[_0xab9c1a(0x91)](attributes,_0x296efb),SalesforceConfiguration;}module['exports'][a343_0x5f5078(0x8f)]=SalesforceConfiguration,module[a343_0x5f5078(0x92)][a343_0x5f5078(0x91)]=init; \ No newline at end of file diff --git a/server/api/intSalesforceConfiguration/intSalesforceConfiguration.options.js b/server/api/intSalesforceConfiguration/intSalesforceConfiguration.options.js new file mode 100644 index 0000000..ad3e877 --- /dev/null +++ b/server/api/intSalesforceConfiguration/intSalesforceConfiguration.options.js @@ -0,0 +1 @@ +var a344_0x5f14=['int_salesforce_configurations','exports'];(function(_0x3d5f66,_0x2cb92a){var _0x5f14b0=function(_0xa341fa){while(--_0xa341fa){_0x3d5f66['push'](_0x3d5f66['shift']());}};_0x5f14b0(++_0x2cb92a);}(a344_0x5f14,0x15f));var a344_0xa341=function(_0x3d5f66,_0x2cb92a){_0x3d5f66=_0x3d5f66-0x1a8;var _0x5f14b0=a344_0x5f14[_0x3d5f66];return _0x5f14b0;};var a344_0x4d342a=a344_0xa341;function options(_0x5d5b81){var _0x4bb9b7=a344_0xa341;return{'sequelize':_0x5d5b81,'tableName':_0x4bb9b7(0x1a9),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a344_0x4d342a(0x1a8)]['options']=options; \ No newline at end of file diff --git a/server/api/intSalesforceField/index.js b/server/api/intSalesforceField/index.js index 7626578..4637056 100644 --- a/server/api/intSalesforceField/index.js +++ b/server/api/intSalesforceField/index.js @@ -1 +1 @@ -const a288_0x599f=['exports','../../components/auth/service','update','isAuthenticated','create','/:id','get','post','delete','./intSalesforceField.controller','index','show','express','destroy','put'];(function(_0x2a3a4c,_0x599fbb){const _0x786b84=function(_0x20d6e4){while(--_0x20d6e4){_0x2a3a4c['push'](_0x2a3a4c['shift']());}};_0x786b84(++_0x599fbb);}(a288_0x599f,0x8d));const a288_0x786b=function(_0x2a3a4c,_0x599fbb){_0x2a3a4c=_0x2a3a4c-0x0;let _0x786b84=a288_0x599f[_0x2a3a4c];return _0x786b84;};const _0x5cd5c1=a288_0x786b;'use strict';const express=require(_0x5cd5c1('0x6')),router=express['Router'](),auth=require(_0x5cd5c1('0xa')),controller=require(_0x5cd5c1('0x3'));router[_0x5cd5c1('0x0')]('/',auth[_0x5cd5c1('0xc')](),controller[_0x5cd5c1('0x4')]),router['get']('/:id',auth[_0x5cd5c1('0xc')](),controller[_0x5cd5c1('0x5')]),router[_0x5cd5c1('0x1')]('/',auth['isAuthenticated'](),controller[_0x5cd5c1('0xd')]),router[_0x5cd5c1('0x8')](_0x5cd5c1('0xe'),auth['isAuthenticated'](),controller[_0x5cd5c1('0xb')]),router[_0x5cd5c1('0x2')](_0x5cd5c1('0xe'),auth[_0x5cd5c1('0xc')](),controller[_0x5cd5c1('0x7')]),module[_0x5cd5c1('0x9')]=router; \ No newline at end of file +const a345_0x60eb=['express','Router','destroy','../../components/auth/service','/:id','update','put','show','get','./intSalesforceField.controller','index','exports','isAuthenticated','create'];(function(_0x15ef9c,_0x1e2739){const _0x60eb8c=function(_0xb57806){while(--_0xb57806){_0x15ef9c['push'](_0x15ef9c['shift']());}};_0x60eb8c(++_0x1e2739);}(a345_0x60eb,0x1d6));const a345_0xb578=function(_0x15ef9c,_0x1e2739){_0x15ef9c=_0x15ef9c-0x12f;let _0x60eb8c=a345_0x60eb[_0x15ef9c];return _0x60eb8c;};const a345_0x4ed81e=a345_0xb578;'use strict';const express=require(a345_0x4ed81e(0x135)),router=express[a345_0x4ed81e(0x136)](),auth=require(a345_0x4ed81e(0x138)),controller=require(a345_0x4ed81e(0x130));router[a345_0x4ed81e(0x12f)]('/',auth[a345_0x4ed81e(0x133)](),controller[a345_0x4ed81e(0x131)]),router['get']('/:id',auth['isAuthenticated'](),controller[a345_0x4ed81e(0x13c)]),router['post']('/',auth[a345_0x4ed81e(0x133)](),controller[a345_0x4ed81e(0x134)]),router[a345_0x4ed81e(0x13b)](a345_0x4ed81e(0x139),auth['isAuthenticated'](),controller[a345_0x4ed81e(0x13a)]),router['delete'](a345_0x4ed81e(0x139),auth[a345_0x4ed81e(0x133)](),controller[a345_0x4ed81e(0x137)]),module[a345_0x4ed81e(0x132)]=router; \ No newline at end of file diff --git a/server/api/intSalesforceField/intSalesforceField.attributes.js b/server/api/intSalesforceField/intSalesforceField.attributes.js index 0925fb9..84d5b7a 100644 --- a/server/api/intSalesforceField/intSalesforceField.attributes.js +++ b/server/api/intSalesforceField/intSalesforceField.attributes.js @@ -1 +1 @@ -const a289_0x3baf=['STRING','sequelize','variable','string','exports','ENUM','keyValue'];(function(_0x125a85,_0x3bafee){const _0x260eee=function(_0x67be8c){while(--_0x67be8c){_0x125a85['push'](_0x125a85['shift']());}};_0x260eee(++_0x3bafee);}(a289_0x3baf,0x129));const a289_0x260e=function(_0x125a85,_0x3bafee){_0x125a85=_0x125a85-0x0;let _0x260eee=a289_0x3baf[_0x125a85];return _0x260eee;};const _0x1b3cab=a289_0x260e;'use strict';const Sequelize=require(_0x1b3cab('0x5'));module[_0x1b3cab('0x1')]={'type':{'type':Sequelize[_0x1b3cab('0x2')](_0x1b3cab('0x0'),_0x1b3cab('0x6'),'customVariable',_0x1b3cab('0x3')),'defaultValue':_0x1b3cab('0x0')},'content':{'type':Sequelize[_0x1b3cab('0x4')]},'key':{'type':Sequelize[_0x1b3cab('0x4')]},'keyType':{'type':Sequelize[_0x1b3cab('0x2')](_0x1b3cab('0x0'),_0x1b3cab('0x6'),'customVariable')},'keyContent':{'type':Sequelize[_0x1b3cab('0x4')]},'idField':{'type':Sequelize[_0x1b3cab('0x4')]},'variableName':{'type':Sequelize[_0x1b3cab('0x4')]}}; \ No newline at end of file +const a346_0x9349=['keyValue','customVariable','ENUM','string','sequelize','STRING','attributes','exports'];(function(_0x3aa627,_0x28f858){const _0x93496a=function(_0x3ea584){while(--_0x3ea584){_0x3aa627['push'](_0x3aa627['shift']());}};_0x93496a(++_0x28f858);}(a346_0x9349,0xc1));const a346_0x3ea5=function(_0x3aa627,_0x28f858){_0x3aa627=_0x3aa627-0x191;let _0x93496a=a346_0x9349[_0x3aa627];return _0x93496a;};const a346_0x52b979=a346_0x3ea5;'use strict';const {DataTypes}=require(a346_0x52b979(0x194)),attributes={'type':{'type':DataTypes['ENUM'](a346_0x52b979(0x193),'variable','customVariable',a346_0x52b979(0x198)),'defaultValue':a346_0x52b979(0x193)},'content':{'type':DataTypes[a346_0x52b979(0x195)]},'key':{'type':DataTypes[a346_0x52b979(0x195)]},'keyType':{'type':DataTypes[a346_0x52b979(0x192)](a346_0x52b979(0x193),'variable',a346_0x52b979(0x191))},'keyContent':{'type':DataTypes['STRING']},'idField':{'type':DataTypes['STRING']},'variableName':{'type':DataTypes[a346_0x52b979(0x195)]}};module[a346_0x52b979(0x197)][a346_0x52b979(0x196)]=attributes; \ No newline at end of file diff --git a/server/api/intSalesforceField/intSalesforceField.controller.js b/server/api/intSalesforceField/intSalesforceField.controller.js index 59b3291..0280968 100644 --- a/server/api/intSalesforceField/intSalesforceField.controller.js +++ b/server/api/intSalesforceField/intSalesforceField.controller.js @@ -1 +1 @@ -const a290_0x1ea2=['options','stack','sendStatus','pick','body','Content-Range','intersection','set','fieldName','destroy','then','includeAll','../../mysqldb','create','name','index','error','lodash','sort','count','params','rawAttributes','../../components/parsers/qs','merge','end','like','json','sequelize','../../config/logger','attributes','fields','include','nolimit','SalesforceField','map','limit','keys','where','filters','show','send','catch','offset','model','rows','query','update','findOne','status','type','undefined'];(function(_0x7b57ff,_0x1ea24b){const _0x207684=function(_0x4ce6d2){while(--_0x4ce6d2){_0x7b57ff['push'](_0x7b57ff['shift']());}};_0x207684(++_0x1ea24b);}(a290_0x1ea2,0x166));const a290_0x2076=function(_0x7b57ff,_0x1ea24b){_0x7b57ff=_0x7b57ff-0x0;let _0x207684=a290_0x1ea2[_0x7b57ff];return _0x207684;};const _0x17f718=a290_0x2076;'use strict';const _=require(_0x17f718('0x10')),qs=require(_0x17f718('0x15')),logger=require(_0x17f718('0x1b'))('api'),db=require(_0x17f718('0xb'))['db'],{Op}=require(_0x17f718('0x1a'));function respondWithResult(_0x4ce6d2,_0x12a89e){return _0x12a89e=_0x12a89e||0xc8,function(_0x58619c){const _0x43faa0=a290_0x2076;if(_0x58619c)return _0x4ce6d2[_0x43faa0('0x2f')](_0x12a89e)[_0x43faa0('0x19')](_0x58619c);};}function respondWithFilteredResult(_0x310c58,_0x3d48b9){return function(_0xcbf291){const _0x1c59a6=a290_0x2076;if(_0xcbf291){const _0x29a787=_0xcbf291[_0x1c59a6('0x12')],_0x505df4=_0x3d48b9[_0x1c59a6('0x29')];let _0x42d6b4=_0x3d48b9[_0x1c59a6('0x29')]+_0x3d48b9[_0x1c59a6('0x22')],_0x48c145;return _0x42d6b4>=_0x29a787?(_0x42d6b4=_0x29a787,_0x48c145=0xc8):_0x48c145=0xce,_0x310c58[_0x1c59a6('0x2f')](_0x48c145),_0x310c58[_0x1c59a6('0x6')](_0x1c59a6('0x4'),_0x505df4+'-'+_0x42d6b4+'/'+_0x29a787)[_0x1c59a6('0x19')](_0xcbf291);}return null;};}function saveUpdates(_0x599246){return function(_0x1ed875){const _0x345a63=a290_0x2076;if(_0x1ed875)return _0x1ed875[_0x345a63('0x2d')](_0x599246)[_0x345a63('0x9')](function(_0x1b93bf){return _0x1b93bf;});return null;};}function removeEntity(_0x569cfb){return function(_0x2d53aa){const _0x2a0d9e=a290_0x2076;if(_0x2d53aa)return _0x2d53aa['destroy']()[_0x2a0d9e('0x9')](function(){const _0x36c552=_0x2a0d9e;_0x569cfb[_0x36c552('0x2f')](0xcc)[_0x36c552('0x17')]();});};}function handleEntityNotFound(_0x3c9829){return function(_0x257b71){const _0x4325c8=a290_0x2076;return!_0x257b71&&_0x3c9829[_0x4325c8('0x1')](0x194),_0x257b71;};}function handleError(_0x771bae,_0xa5fcf){return _0xa5fcf=_0xa5fcf||0x1f4,function(_0x5a210a){const _0x2b1a74=a290_0x2076;logger[_0x2b1a74('0xf')](_0x5a210a[_0x2b1a74('0x0')]),_0x5a210a[_0x2b1a74('0xd')]&&delete _0x5a210a[_0x2b1a74('0xd')],_0x771bae[_0x2b1a74('0x2f')](_0xa5fcf)[_0x2b1a74('0x27')](_0x5a210a);};}exports[_0x17f718('0xe')]=function(_0x1f8e39,_0x544ea2){const _0x29a563=_0x17f718;let _0x3a284f={};const _0x476891={},_0x5d2554={'count':0x0,'rows':[]},_0x28fbb3=_[_0x29a563('0x21')](db[_0x29a563('0x20')][_0x29a563('0x14')],function(_0x480d45){const _0x38317d=_0x29a563;return{'name':_0x480d45[_0x38317d('0x7')],'type':_0x480d45['type']['key']};});_0x476891['model']=_[_0x29a563('0x21')](_0x28fbb3,_0x29a563('0xd')),_0x476891['query']=_[_0x29a563('0x23')](_0x1f8e39[_0x29a563('0x2c')]),_0x476891['filters']=_[_0x29a563('0x5')](_0x476891[_0x29a563('0x2a')],_0x476891[_0x29a563('0x2c')]),_0x3a284f[_0x29a563('0x1c')]=_[_0x29a563('0x5')](_0x476891[_0x29a563('0x2a')],qs[_0x29a563('0x1d')](_0x1f8e39[_0x29a563('0x2c')][_0x29a563('0x1d')])),_0x3a284f[_0x29a563('0x1c')]=_0x3a284f['attributes']['length']?_0x3a284f['attributes']:_0x476891['model'];typeof _0x1f8e39['query'][_0x29a563('0x1f')]===_0x29a563('0x31')&&(_0x3a284f[_0x29a563('0x22')]=qs[_0x29a563('0x22')](_0x1f8e39['query']['limit']),_0x3a284f[_0x29a563('0x29')]=qs[_0x29a563('0x29')](_0x1f8e39[_0x29a563('0x2c')][_0x29a563('0x29')]));_0x3a284f['order']=qs[_0x29a563('0x11')](_0x1f8e39[_0x29a563('0x2c')]['sort']),_0x3a284f[_0x29a563('0x24')]=qs[_0x29a563('0x25')](_[_0x29a563('0x2')](_0x1f8e39['query'],_0x476891[_0x29a563('0x25')]),_0x28fbb3);_0x1f8e39[_0x29a563('0x2c')]['filter']&&(_0x3a284f[_0x29a563('0x24')]=_[_0x29a563('0x16')](_0x3a284f[_0x29a563('0x24')],{[Op['or']]:_[_0x29a563('0x21')](_0x28fbb3,function(_0x419c30){const _0x15c69f=_0x29a563;if(_0x419c30[_0x15c69f('0x30')]!=='VIRTUAL'){const _0x983ac8={};return _0x983ac8[_0x419c30[_0x15c69f('0xd')]]={[Op[_0x15c69f('0x18')]]:'%'+_0x1f8e39[_0x15c69f('0x2c')]['filter']+'%'},_0x983ac8;}})}));_0x3a284f=_[_0x29a563('0x16')]({},_0x3a284f,_0x1f8e39[_0x29a563('0x32')]);const _0x5c3c57={'where':_0x3a284f[_0x29a563('0x24')]};return db['SalesforceField'][_0x29a563('0x12')](_0x5c3c57)['then'](function(_0x530fbe){const _0x35cd07=_0x29a563;return _0x5d2554[_0x35cd07('0x12')]=_0x530fbe,_0x1f8e39[_0x35cd07('0x2c')][_0x35cd07('0xa')]&&(_0x3a284f['include']=[{'all':!![]}]),db[_0x35cd07('0x20')]['findAll'](_0x3a284f);})[_0x29a563('0x9')](function(_0x2b5013){const _0x551d69=_0x29a563;return _0x5d2554[_0x551d69('0x2b')]=_0x2b5013,_0x5d2554;})['then'](respondWithFilteredResult(_0x544ea2,_0x3a284f))[_0x29a563('0x28')](handleError(_0x544ea2,null));},exports[_0x17f718('0x26')]=function(_0x366cba,_0x27296e){const _0x37030d=_0x17f718;let _0x4d0a7f={'raw':!![],'where':{'id':_0x366cba['params']['id']}};const _0x500a85={};return _0x500a85[_0x37030d('0x2a')]=_[_0x37030d('0x23')](db['SalesforceField']['rawAttributes']),_0x500a85[_0x37030d('0x2c')]=_[_0x37030d('0x23')](_0x366cba[_0x37030d('0x2c')]),_0x500a85[_0x37030d('0x25')]=_[_0x37030d('0x5')](_0x500a85[_0x37030d('0x2a')],_0x500a85[_0x37030d('0x2c')]),_0x4d0a7f[_0x37030d('0x1c')]=_[_0x37030d('0x5')](_0x500a85[_0x37030d('0x2a')],qs[_0x37030d('0x1d')](_0x366cba[_0x37030d('0x2c')][_0x37030d('0x1d')])),_0x4d0a7f[_0x37030d('0x1c')]=_0x4d0a7f[_0x37030d('0x1c')]['length']?_0x4d0a7f[_0x37030d('0x1c')]:_0x500a85[_0x37030d('0x2a')],_0x366cba[_0x37030d('0x2c')][_0x37030d('0xa')]&&(_0x4d0a7f[_0x37030d('0x1e')]=[{'all':!![]}]),_0x4d0a7f=_[_0x37030d('0x16')]({},_0x4d0a7f,_0x366cba['options']),db[_0x37030d('0x20')][_0x37030d('0x2e')](_0x4d0a7f)['then'](handleEntityNotFound(_0x27296e,null))[_0x37030d('0x9')](respondWithResult(_0x27296e,null))[_0x37030d('0x28')](handleError(_0x27296e,null));},exports[_0x17f718('0xc')]=function(_0x15fa89,_0x5a0af9){const _0x5554d8=_0x17f718;return db[_0x5554d8('0x20')]['create'](_0x15fa89['body'],{})[_0x5554d8('0x9')](respondWithResult(_0x5a0af9,0xc9))['catch'](handleError(_0x5a0af9,null));},exports[_0x17f718('0x2d')]=function(_0x3eba62,_0x2d80e7){const _0x872bfb=_0x17f718;return _0x3eba62[_0x872bfb('0x3')]['id']&&delete _0x3eba62[_0x872bfb('0x3')]['id'],db['SalesforceField']['findOne']({'where':{'id':_0x3eba62['params']['id']}})['then'](handleEntityNotFound(_0x2d80e7,null))[_0x872bfb('0x9')](saveUpdates(_0x3eba62[_0x872bfb('0x3')],null))[_0x872bfb('0x9')](respondWithResult(_0x2d80e7,null))['catch'](handleError(_0x2d80e7,null));},exports[_0x17f718('0x8')]=function(_0x2fa133,_0x3ea5e4){const _0x57f72b=_0x17f718;return db['SalesforceField'][_0x57f72b('0x2e')]({'where':{'id':_0x2fa133[_0x57f72b('0x13')]['id']}})[_0x57f72b('0x9')](handleEntityNotFound(_0x3ea5e4,null))[_0x57f72b('0x9')](removeEntity(_0x3ea5e4,null))[_0x57f72b('0x28')](handleError(_0x3ea5e4,null));}; \ No newline at end of file +const a347_0x12e1=['map','sort','create','SalesforceField','update','status','Content-Range','rawAttributes','options','attributes','name','type','keys','../../components/parsers/qs','pick','query','limit','count','intersection','../../mysqldb','../../config/logger','json','merge','model','offset','key','findAll','fields','error','filters','body','catch','destroy','findOne','then','fieldName','params','rows','show','send','nolimit','includeAll','sequelize','where','length','stack','include','sendStatus','lodash'];(function(_0x2d7041,_0xb7d412){const _0x12e17d=function(_0x118842){while(--_0x118842){_0x2d7041['push'](_0x2d7041['shift']());}};_0x12e17d(++_0xb7d412);}(a347_0x12e1,0xaf));const a347_0x1188=function(_0x2d7041,_0xb7d412){_0x2d7041=_0x2d7041-0x74;let _0x12e17d=a347_0x12e1[_0x2d7041];return _0x12e17d;};const a347_0x47d619=a347_0x1188;'use strict';const _=require(a347_0x47d619(0x88)),qs=require(a347_0x47d619(0x96)),logger=require(a347_0x47d619(0x9d))('api'),{db}=require(a347_0x47d619(0x9c)),{Op}=require(a347_0x47d619(0x82));function respondWithResult(_0x163bdd,_0x33ca39){return _0x33ca39=_0x33ca39||0xc8,function(_0x437d44){const _0x3ae859=a347_0x1188;if(_0x437d44)return _0x163bdd[_0x3ae859(0x8e)](_0x33ca39)[_0x3ae859(0x9e)](_0x437d44);};}function respondWithFilteredResult(_0x34081b,_0x4b99cb){return function(_0x468fda){const _0x9c9ed7=a347_0x1188;if(_0x468fda){const _0x3e4542=_0x468fda[_0x9c9ed7(0x9a)],_0x824a6f=_0x4b99cb[_0x9c9ed7(0xa1)];let _0x5690ce=_0x4b99cb['offset']+_0x4b99cb['limit'],_0x393c64;return _0x5690ce>=_0x3e4542?(_0x5690ce=_0x3e4542,_0x393c64=0xc8):_0x393c64=0xce,_0x34081b[_0x9c9ed7(0x8e)](_0x393c64),_0x34081b['set'](_0x9c9ed7(0x8f),_0x824a6f+'-'+_0x5690ce+'/'+_0x3e4542)['json'](_0x468fda);}return null;};}function saveUpdates(_0x3c85dd){return function(_0x4308c5){const _0x3cece2=a347_0x1188;if(_0x4308c5)return _0x4308c5[_0x3cece2(0x8d)](_0x3c85dd)['then'](function(_0x5e992d){return _0x5e992d;});return null;};}function removeEntity(_0x25a255){return function(_0x30257e){const _0x4401b2=a347_0x1188;if(_0x30257e)return _0x30257e[_0x4401b2(0x78)]()[_0x4401b2(0x7a)](function(){_0x25a255['status'](0xcc)['end']();});};}function handleEntityNotFound(_0x3f313a){return function(_0x321a60){const _0x184cd2=a347_0x1188;return!_0x321a60&&_0x3f313a[_0x184cd2(0x87)](0x194),_0x321a60;};}function handleError(_0x405dfd,_0x573911){return _0x573911=_0x573911||0x1f4,function(_0x3f20c2){const _0x3823f3=a347_0x1188;logger[_0x3823f3(0x74)](_0x3f20c2[_0x3823f3(0x85)]),_0x3f20c2[_0x3823f3(0x93)]&&delete _0x3f20c2['name'],_0x405dfd[_0x3823f3(0x8e)](_0x573911)[_0x3823f3(0x7f)](_0x3f20c2);};}exports['index']=function(_0x419310,_0x17c881){const _0x5651f5=a347_0x47d619;let _0x19f7b3={};const _0x9555be={},_0x2a4277={'count':0x0,'rows':[]},_0x3d81cc=_[_0x5651f5(0x89)](db['SalesforceField'][_0x5651f5(0x90)],function(_0x67e147){const _0x2bba0c=_0x5651f5;return{'name':_0x67e147[_0x2bba0c(0x7b)],'type':_0x67e147[_0x2bba0c(0x94)][_0x2bba0c(0xa2)]};});_0x9555be[_0x5651f5(0xa0)]=_[_0x5651f5(0x89)](_0x3d81cc,_0x5651f5(0x93)),_0x9555be[_0x5651f5(0x98)]=_[_0x5651f5(0x95)](_0x419310[_0x5651f5(0x98)]),_0x9555be[_0x5651f5(0x75)]=_['intersection'](_0x9555be[_0x5651f5(0xa0)],_0x9555be[_0x5651f5(0x98)]),_0x19f7b3[_0x5651f5(0x92)]=_[_0x5651f5(0x9b)](_0x9555be[_0x5651f5(0xa0)],qs[_0x5651f5(0xa4)](_0x419310[_0x5651f5(0x98)]['fields'])),_0x19f7b3[_0x5651f5(0x92)]=_0x19f7b3[_0x5651f5(0x92)][_0x5651f5(0x84)]?_0x19f7b3[_0x5651f5(0x92)]:_0x9555be[_0x5651f5(0xa0)];typeof _0x419310[_0x5651f5(0x98)][_0x5651f5(0x80)]==='undefined'&&(_0x19f7b3[_0x5651f5(0x99)]=qs['limit'](_0x419310[_0x5651f5(0x98)]['limit']),_0x19f7b3[_0x5651f5(0xa1)]=qs[_0x5651f5(0xa1)](_0x419310['query'][_0x5651f5(0xa1)]));_0x19f7b3['order']=qs[_0x5651f5(0x8a)](_0x419310[_0x5651f5(0x98)][_0x5651f5(0x8a)]),_0x19f7b3[_0x5651f5(0x83)]=qs[_0x5651f5(0x75)](_[_0x5651f5(0x97)](_0x419310[_0x5651f5(0x98)],_0x9555be[_0x5651f5(0x75)]),_0x3d81cc);_0x419310['query']['filter']&&(_0x19f7b3['where']=_['merge'](_0x19f7b3[_0x5651f5(0x83)],{[Op['or']]:_[_0x5651f5(0x89)](_0x3d81cc,function(_0x262dda){const _0x4590e6=_0x5651f5;if(_0x262dda[_0x4590e6(0x94)]!=='VIRTUAL'){const _0x1bde29={};return _0x1bde29[_0x262dda[_0x4590e6(0x93)]]={[Op['like']]:'%'+_0x419310[_0x4590e6(0x98)]['filter']+'%'},_0x1bde29;}})}));_0x19f7b3=_[_0x5651f5(0x9f)]({},_0x19f7b3,_0x419310['options']);const _0x14796d={'where':_0x19f7b3[_0x5651f5(0x83)]};return db[_0x5651f5(0x8c)][_0x5651f5(0x9a)](_0x14796d)[_0x5651f5(0x7a)](function(_0x2497d4){const _0xa3aedf=_0x5651f5;return _0x2a4277['count']=_0x2497d4,_0x419310[_0xa3aedf(0x98)][_0xa3aedf(0x81)]&&(_0x19f7b3[_0xa3aedf(0x86)]=[{'all':!![]}]),db[_0xa3aedf(0x8c)][_0xa3aedf(0xa3)](_0x19f7b3);})[_0x5651f5(0x7a)](function(_0x367bf8){const _0x45a401=_0x5651f5;return _0x2a4277[_0x45a401(0x7d)]=_0x367bf8,_0x2a4277;})[_0x5651f5(0x7a)](respondWithFilteredResult(_0x17c881,_0x19f7b3))['catch'](handleError(_0x17c881,null));},exports[a347_0x47d619(0x7e)]=function(_0x45e360,_0x27ddff){const _0x4d2a9c=a347_0x47d619;let _0x40b368={'raw':!![],'where':{'id':_0x45e360['params']['id']}};const _0x55e9c7={};return _0x55e9c7['model']=_[_0x4d2a9c(0x95)](db[_0x4d2a9c(0x8c)][_0x4d2a9c(0x90)]),_0x55e9c7[_0x4d2a9c(0x98)]=_['keys'](_0x45e360[_0x4d2a9c(0x98)]),_0x55e9c7[_0x4d2a9c(0x75)]=_[_0x4d2a9c(0x9b)](_0x55e9c7[_0x4d2a9c(0xa0)],_0x55e9c7['query']),_0x40b368[_0x4d2a9c(0x92)]=_[_0x4d2a9c(0x9b)](_0x55e9c7['model'],qs[_0x4d2a9c(0xa4)](_0x45e360['query'][_0x4d2a9c(0xa4)])),_0x40b368['attributes']=_0x40b368[_0x4d2a9c(0x92)]['length']?_0x40b368[_0x4d2a9c(0x92)]:_0x55e9c7[_0x4d2a9c(0xa0)],_0x45e360['query'][_0x4d2a9c(0x81)]&&(_0x40b368['include']=[{'all':!![]}]),_0x40b368=_[_0x4d2a9c(0x9f)]({},_0x40b368,_0x45e360[_0x4d2a9c(0x91)]),db['SalesforceField'][_0x4d2a9c(0x79)](_0x40b368)[_0x4d2a9c(0x7a)](handleEntityNotFound(_0x27ddff,null))[_0x4d2a9c(0x7a)](respondWithResult(_0x27ddff,null))[_0x4d2a9c(0x77)](handleError(_0x27ddff,null));},exports['create']=function(_0x46653e,_0x11cc9a){const _0x483b34=a347_0x47d619;return db[_0x483b34(0x8c)][_0x483b34(0x8b)](_0x46653e[_0x483b34(0x76)],{})[_0x483b34(0x7a)](respondWithResult(_0x11cc9a,0xc9))[_0x483b34(0x77)](handleError(_0x11cc9a,null));},exports[a347_0x47d619(0x8d)]=function(_0x344a23,_0x57fd96){const _0x1694c0=a347_0x47d619;return _0x344a23[_0x1694c0(0x76)]['id']&&delete _0x344a23['body']['id'],db['SalesforceField']['findOne']({'where':{'id':_0x344a23[_0x1694c0(0x7c)]['id']}})[_0x1694c0(0x7a)](handleEntityNotFound(_0x57fd96,null))[_0x1694c0(0x7a)](saveUpdates(_0x344a23['body'],null))['then'](respondWithResult(_0x57fd96,null))[_0x1694c0(0x77)](handleError(_0x57fd96,null));},exports[a347_0x47d619(0x78)]=function(_0x331557,_0x521b00){const _0x240651=a347_0x47d619;return db[_0x240651(0x8c)]['findOne']({'where':{'id':_0x331557[_0x240651(0x7c)]['id']}})[_0x240651(0x7a)](handleEntityNotFound(_0x521b00,null))[_0x240651(0x7a)](removeEntity(_0x521b00,null))[_0x240651(0x77)](handleError(_0x521b00,null));}; \ No newline at end of file diff --git a/server/api/intSalesforceField/intSalesforceField.model.js b/server/api/intSalesforceField/intSalesforceField.model.js index 733fe61..9e2780f 100644 --- a/server/api/intSalesforceField/intSalesforceField.model.js +++ b/server/api/intSalesforceField/intSalesforceField.model.js @@ -1 +1 @@ -const a291_0x26c1=['exports','salesforce_unique_index','int_salesforce_fields','./intSalesforceField.attributes'];(function(_0xed285e,_0x26c16e){const _0x116b6e=function(_0x1845b5){while(--_0x1845b5){_0xed285e['push'](_0xed285e['shift']());}};_0x116b6e(++_0x26c16e);}(a291_0x26c1,0x9f));const a291_0x116b=function(_0xed285e,_0x26c16e){_0xed285e=_0xed285e-0x0;let _0x116b6e=a291_0x26c1[_0xed285e];return _0x116b6e;};const _0x120fe5=a291_0x116b;'use strict';const attributes=require(_0x120fe5('0x0'));module[_0x120fe5('0x1')]=function(_0x1845b5){const _0x4a0970=_0x120fe5,_0x45cb88=_0x1845b5['define']('SalesforceField',attributes,{'tableName':_0x4a0970('0x3'),'paranoid':![],'indexes':[{'name':_0x4a0970('0x2'),'fields':['idField','FieldId'],'unique':!![]}],'timestamps':!![]});return _0x45cb88;}; \ No newline at end of file +const a348_0x279d=['exports','SalesforceField','function','init'];(function(_0x35a573,_0x39c2e6){const _0x279d31=function(_0x34e979){while(--_0x34e979){_0x35a573['push'](_0x35a573['shift']());}};_0x279d31(++_0x39c2e6);}(a348_0x279d,0x101));const a348_0x34e9=function(_0x35a573,_0x39c2e6){_0x35a573=_0x35a573-0xc4;let _0x279d31=a348_0x279d[_0x35a573];return _0x279d31;};const a348_0x454512=a348_0x34e9;'use strict';const {Model}=require('sequelize'),{attributes}=require('./intSalesforceField.attributes'),{options}=require('./intSalesforceField.options');class SalesforceField extends Model{}function init(_0x246482,_0x3f0526){const _0x31df6c=a348_0x34e9,_0xcaf99f=options(_0x246482),_0x3dadda=typeof _0x3f0526===_0x31df6c(0xc5)?_0x3f0526(_0xcaf99f):_0xcaf99f;return SalesforceField[_0x31df6c(0xc6)](attributes,_0x3dadda),SalesforceField;}module['exports'][a348_0x454512(0xc4)]=SalesforceField,module[a348_0x454512(0xc7)][a348_0x454512(0xc6)]=init; \ No newline at end of file diff --git a/server/api/intSalesforceField/intSalesforceField.options.js b/server/api/intSalesforceField/intSalesforceField.options.js new file mode 100644 index 0000000..20473e3 --- /dev/null +++ b/server/api/intSalesforceField/intSalesforceField.options.js @@ -0,0 +1 @@ +var a349_0x541a=['options','exports','FieldId','salesforce_unique_index','idField','int_salesforce_fields'];(function(_0xd63a2b,_0x233d35){var _0x541aa2=function(_0x16dccf){while(--_0x16dccf){_0xd63a2b['push'](_0xd63a2b['shift']());}};_0x541aa2(++_0x233d35);}(a349_0x541a,0xff));var a349_0x16dc=function(_0xd63a2b,_0x233d35){_0xd63a2b=_0xd63a2b-0x1cf;var _0x541aa2=a349_0x541a[_0xd63a2b];return _0x541aa2;};var a349_0x578371=a349_0x16dc;function options(_0x131275){var _0x33c36b=a349_0x16dc;return{'sequelize':_0x131275,'tableName':_0x33c36b(0x1d1),'paranoid':![],'indexes':[{'name':_0x33c36b(0x1cf),'fields':[_0x33c36b(0x1d0),_0x33c36b(0x1d4)],'unique':!![]}],'timestamps':!![]};}module[a349_0x578371(0x1d3)][a349_0x578371(0x1d2)]=options; \ No newline at end of file diff --git a/server/api/intServicenowAccount/index.js b/server/api/intServicenowAccount/index.js index 7b3e586..8e4853d 100644 --- a/server/api/intServicenowAccount/index.js +++ b/server/api/intServicenowAccount/index.js @@ -1 +1 @@ -const a292_0x407b=['../../components/auth/service','getFields','destroy','isAuthenticated','./intServicenowAccount.controller','exports','Router','/:id/fields','/:id/configurations','put','get','post','express','/:id','update','show','addConfiguration','create'];(function(_0x313d2f,_0x407bbd){const _0x182458=function(_0x255dd8){while(--_0x255dd8){_0x313d2f['push'](_0x313d2f['shift']());}};_0x182458(++_0x407bbd);}(a292_0x407b,0x99));const a292_0x1824=function(_0x313d2f,_0x407bbd){_0x313d2f=_0x313d2f-0x0;let _0x182458=a292_0x407b[_0x313d2f];return _0x182458;};const _0x6f5d13=a292_0x1824;'use strict';const express=require(_0x6f5d13('0x3')),router=express[_0x6f5d13('0xf')](),auth=require(_0x6f5d13('0x9')),controller=require(_0x6f5d13('0xd'));router[_0x6f5d13('0x1')]('/',auth['isAuthenticated'](),controller['index']),router['get'](_0x6f5d13('0x4'),auth[_0x6f5d13('0xc')](),controller[_0x6f5d13('0x6')]),router[_0x6f5d13('0x1')](_0x6f5d13('0x11'),auth[_0x6f5d13('0xc')](),controller['getConfigurations']),router[_0x6f5d13('0x1')](_0x6f5d13('0x10'),auth['isAuthenticated'](),controller[_0x6f5d13('0xa')]),router[_0x6f5d13('0x2')]('/',auth[_0x6f5d13('0xc')](),controller[_0x6f5d13('0x8')]),router[_0x6f5d13('0x2')](_0x6f5d13('0x11'),auth['isAuthenticated'](),controller[_0x6f5d13('0x7')]),router[_0x6f5d13('0x0')](_0x6f5d13('0x4'),auth[_0x6f5d13('0xc')](),controller[_0x6f5d13('0x5')]),router['delete'](_0x6f5d13('0x4'),auth['isAuthenticated'](),controller[_0x6f5d13('0xb')]),module[_0x6f5d13('0xe')]=router; \ No newline at end of file +const a350_0x2b95=['./intServicenowAccount.controller','exports','getFields','../../components/auth/service','Router','get','delete','isAuthenticated','getConfigurations','/:id/configurations','show','/:id','/:id/fields','put','express','destroy','post'];(function(_0x476309,_0x169f90){const _0x2b952a=function(_0x203405){while(--_0x203405){_0x476309['push'](_0x476309['shift']());}};_0x2b952a(++_0x169f90);}(a350_0x2b95,0x1e5));const a350_0x2034=function(_0x476309,_0x169f90){_0x476309=_0x476309-0x1a9;let _0x2b952a=a350_0x2b95[_0x476309];return _0x2b952a;};const a350_0x5ded9e=a350_0x2034;'use strict';const express=require(a350_0x5ded9e(0x1ae)),router=express[a350_0x5ded9e(0x1b5)](),auth=require(a350_0x5ded9e(0x1b4)),controller=require(a350_0x5ded9e(0x1b1));router[a350_0x5ded9e(0x1b6)]('/',auth[a350_0x5ded9e(0x1b8)](),controller['index']),router[a350_0x5ded9e(0x1b6)](a350_0x5ded9e(0x1ab),auth['isAuthenticated'](),controller[a350_0x5ded9e(0x1aa)]),router['get'](a350_0x5ded9e(0x1a9),auth[a350_0x5ded9e(0x1b8)](),controller[a350_0x5ded9e(0x1b9)]),router[a350_0x5ded9e(0x1b6)](a350_0x5ded9e(0x1ac),auth[a350_0x5ded9e(0x1b8)](),controller[a350_0x5ded9e(0x1b3)]),router[a350_0x5ded9e(0x1b0)]('/',auth[a350_0x5ded9e(0x1b8)](),controller['create']),router[a350_0x5ded9e(0x1b0)]('/:id/configurations',auth[a350_0x5ded9e(0x1b8)](),controller['addConfiguration']),router[a350_0x5ded9e(0x1ad)]('/:id',auth[a350_0x5ded9e(0x1b8)](),controller['update']),router[a350_0x5ded9e(0x1b7)](a350_0x5ded9e(0x1ab),auth[a350_0x5ded9e(0x1b8)](),controller[a350_0x5ded9e(0x1af)]),module[a350_0x5ded9e(0x1b2)]=router; \ No newline at end of file diff --git a/server/api/intServicenowAccount/intServicenowAccount.attributes.js b/server/api/intServicenowAccount/intServicenowAccount.attributes.js index 8692b6d..4dbf32a 100644 --- a/server/api/intServicenowAccount/intServicenowAccount.attributes.js +++ b/server/api/intServicenowAccount/intServicenowAccount.attributes.js @@ -1 +1 @@ -const a293_0x5d31=['username','STRING','exports'];(function(_0x4a0903,_0x5d31b5){const _0x20d9e3=function(_0x554a9b){while(--_0x554a9b){_0x4a0903['push'](_0x4a0903['shift']());}};_0x20d9e3(++_0x5d31b5);}(a293_0x5d31,0x191));const a293_0x20d9=function(_0x4a0903,_0x5d31b5){_0x4a0903=_0x4a0903-0x0;let _0x20d9e3=a293_0x5d31[_0x4a0903];return _0x20d9e3;};const _0x47b84d=a293_0x20d9;'use strict';const Sequelize=require('sequelize');module[_0x47b84d('0x0')]={'name':{'type':Sequelize[_0x47b84d('0x2')]},'description':{'type':Sequelize[_0x47b84d('0x2')]},'username':{'type':Sequelize[_0x47b84d('0x2')],'unique':_0x47b84d('0x1')},'password':{'type':Sequelize['STRING']},'email':{'type':Sequelize[_0x47b84d('0x2')]},'remoteUri':{'type':Sequelize['STRING'],'unique':'remoteUri'},'serverUrl':{'type':Sequelize[_0x47b84d('0x2')]}}; \ No newline at end of file +const a351_0x4f6a=['exports','attributes','STRING'];(function(_0x38f4fd,_0x184726){const _0x4f6a6b=function(_0x3d2d91){while(--_0x3d2d91){_0x38f4fd['push'](_0x38f4fd['shift']());}};_0x4f6a6b(++_0x184726);}(a351_0x4f6a,0x1e2));const a351_0x3d2d=function(_0x38f4fd,_0x184726){_0x38f4fd=_0x38f4fd-0x157;let _0x4f6a6b=a351_0x4f6a[_0x38f4fd];return _0x4f6a6b;};const a351_0x22fae2=a351_0x3d2d;'use strict';const {DataTypes}=require('sequelize'),attributes={'name':{'type':DataTypes[a351_0x22fae2(0x157)]},'description':{'type':DataTypes[a351_0x22fae2(0x157)]},'username':{'type':DataTypes[a351_0x22fae2(0x157)],'unique':'username'},'password':{'type':DataTypes[a351_0x22fae2(0x157)]},'email':{'type':DataTypes[a351_0x22fae2(0x157)]},'remoteUri':{'type':DataTypes[a351_0x22fae2(0x157)],'unique':'remoteUri'},'serverUrl':{'type':DataTypes[a351_0x22fae2(0x157)]}};module[a351_0x22fae2(0x158)][a351_0x22fae2(0x159)]=attributes; \ No newline at end of file diff --git a/server/api/intServicenowAccount/intServicenowAccount.controller.js b/server/api/intServicenowAccount/intServicenowAccount.controller.js index bec7452..d4e5dd4 100644 --- a/server/api/intServicenowAccount/intServicenowAccount.controller.js +++ b/server/api/intServicenowAccount/intServicenowAccount.controller.js @@ -1 +1 @@ -const a294_0x56bd=['sys_domain_path','%s/api/now/table/','name','Descriptions','then','priority','like','send','status','problem_id','index','ServicenowConfiguration','sys_updated_on','includeAll','parent','body','short_description','assign','resolved_by','assigned_to','category','model','sys_id','additional_assignee_list','cmdb_ci','channel','user_input','upon_reject','business_stc','options','api','resolved_at','reassignment_count','follow_up','sendStatus','sys_choice?sysparm_query=name=incident^element=','push','state','incident?sysparm_display_value=all','work_start','number','notify','closed_by','../../components/parsers/qs','due_date','urgency','catch','approval_history','where','map','set','made_sla','attributes','format','delivery_task','order','opened_at','GET','correlation_id','concat','parent_incident','all','subcategory','Content-Range','work_notes_list','result','util','TCL:\x20exports.getEntityFields\x20->\x20_objectsCustom','assignment_group','length','../../config/logger','undefined','contact_type','delivery_plan','business_service','incident\x20table\x20objects','getDescriptions','false','TCL:\x20_object','filter','intersection','reopen_count','sys_mod_count','serverUrl','True','remove','getConfigurations','ServicenowField','error','Subjects','correlation_display','opened_by','key','sla_due','sort','username','ServiceNow\x20error:\x20','count','stack','../../components/integrations/configuration','merge','work_end','active','query','sequelize','password','child_incidents','keys','calendar_duration','closed_at','forEach','location','ServicenowAccount','log','impact','watch_list','internalType','findAll','destroy','close_code','severity','hold_reason','sys_tags','json','upon_approval','filters','statusCode','False','rfc','findOne','../../mysqldb','expected_start','limit','reopened_by','fields','params','lodash','group_list','sys_updated_by','create','test','rawAttributes','pick','remoteUri','label','include','nolimit','true','addConfiguration','update','reopened_time','activity_due','includes','request-promise-native','company','knowledge','slice','type','approval_set','value','caused_by','offset'];(function(_0x1fdc9f,_0x56bded){const _0x31d2f8=function(_0x1f1863){while(--_0x1f1863){_0x1fdc9f['push'](_0x1fdc9f['shift']());}};_0x31d2f8(++_0x56bded);}(a294_0x56bd,0x176));const a294_0x31d2=function(_0x1fdc9f,_0x56bded){_0x1fdc9f=_0x1fdc9f-0x0;let _0x31d2f8=a294_0x56bd[_0x1fdc9f];return _0x31d2f8;};const _0x136ae4=a294_0x31d2;'use strict';const rp=require(_0x136ae4('0x67')),util=require(_0x136ae4('0x10')),_=require(_0x136ae4('0x56')),qs=require(_0x136ae4('0x9b')),logger=require(_0x136ae4('0x14'))(_0x136ae4('0x8e')),db=require(_0x136ae4('0x50'))['db'],{Op}=require(_0x136ae4('0x36')),integrations=require(_0x136ae4('0x31'));function respondWithResult(_0x1f1863,_0x19e466){return _0x19e466=_0x19e466||0xc8,function(_0x27df08){const _0x187a44=a294_0x31d2;if(_0x27df08)return _0x1f1863[_0x187a44('0x78')](_0x19e466)['json'](_0x27df08);};}function respondWithFilteredResult(_0x305bbf,_0x2366dd){return function(_0x3d9245){const _0x1ce115=a294_0x31d2;if(_0x3d9245){const _0x3b79bf=_0x3d9245['count'],_0x250cbb=_0x2366dd[_0x1ce115('0x6f')];let _0x2cbffb=_0x2366dd['offset']+_0x2366dd[_0x1ce115('0x52')],_0x1b481b;return _0x2cbffb>=_0x3b79bf?(_0x2cbffb=_0x3b79bf,_0x1b481b=0xc8):_0x1b481b=0xce,_0x305bbf[_0x1ce115('0x78')](_0x1b481b),_0x305bbf[_0x1ce115('0x0')](_0x1ce115('0xd'),_0x250cbb+'-'+_0x2cbffb+'/'+_0x3b79bf)[_0x1ce115('0x49')](_0x3d9245);}return null;};}function saveUpdates(_0x54902d){return function(_0x1655cb){const _0x4e31e9=a294_0x31d2;if(_0x1655cb)return _0x1655cb[_0x4e31e9('0x63')](_0x54902d)['then'](function(_0xcb4daa){return _0xcb4daa;});return null;};}function removeEntity(_0x42053f){return function(_0x197ebd){const _0x53db65=a294_0x31d2;if(_0x197ebd)return _0x197ebd[_0x53db65('0x44')]()[_0x53db65('0x74')](function(){_0x42053f['status'](0xcc)['end']();});};}function handleEntityNotFound(_0x172510){return function(_0x2f18f1){const _0x59c7f5=a294_0x31d2;return!_0x2f18f1&&_0x172510[_0x59c7f5('0x92')](0x194),_0x2f18f1;};}function handleError(_0x429f07,_0x471835){return _0x471835=_0x471835||0x1f4,function(_0x5e6f84){const _0x4be6ef=a294_0x31d2;logger[_0x4be6ef('0x26')](_0x5e6f84['stack']),_0x5e6f84[_0x4be6ef('0x72')]&&delete _0x5e6f84[_0x4be6ef('0x72')],_0x429f07[_0x4be6ef('0x78')](_0x471835)[_0x4be6ef('0x77')](_0x5e6f84);};}exports[_0x136ae4('0x7a')]=function(_0x5b6eb6,_0x593444){const _0x3f775f=_0x136ae4;let _0x4d32e7={};const _0x2624f5={},_0x455b79={'count':0x0,'rows':[]},_0x4c02bc=_['map'](db[_0x3f775f('0x3e')][_0x3f775f('0x5b')],function(_0x21ff52){const _0xf54c59=_0x3f775f;return{'name':_0x21ff52['fieldName'],'type':_0x21ff52[_0xf54c59('0x6b')][_0xf54c59('0x2a')]};});_0x2624f5['model']=_['map'](_0x4c02bc,_0x3f775f('0x72')),_0x2624f5['query']=_[_0x3f775f('0x39')](_0x5b6eb6[_0x3f775f('0x35')]),_0x2624f5[_0x3f775f('0x4b')]=_[_0x3f775f('0x1e')](_0x2624f5[_0x3f775f('0x85')],_0x2624f5['query']),_0x4d32e7[_0x3f775f('0x2')]=_[_0x3f775f('0x1e')](_0x2624f5[_0x3f775f('0x85')],qs[_0x3f775f('0x54')](_0x5b6eb6[_0x3f775f('0x35')][_0x3f775f('0x54')])),_0x4d32e7[_0x3f775f('0x2')]=_0x4d32e7[_0x3f775f('0x2')][_0x3f775f('0x13')]?_0x4d32e7[_0x3f775f('0x2')]:_0x2624f5[_0x3f775f('0x85')];typeof _0x5b6eb6['query'][_0x3f775f('0x60')]===_0x3f775f('0x15')&&(_0x4d32e7[_0x3f775f('0x52')]=qs[_0x3f775f('0x52')](_0x5b6eb6['query'][_0x3f775f('0x52')]),_0x4d32e7[_0x3f775f('0x6f')]=qs['offset'](_0x5b6eb6[_0x3f775f('0x35')]['offset']));_0x4d32e7[_0x3f775f('0x5')]=qs[_0x3f775f('0x2c')](_0x5b6eb6[_0x3f775f('0x35')][_0x3f775f('0x2c')]),_0x4d32e7[_0x3f775f('0xa0')]=qs[_0x3f775f('0x4b')](_['pick'](_0x5b6eb6['query'],_0x2624f5[_0x3f775f('0x4b')]),_0x4c02bc);_0x5b6eb6[_0x3f775f('0x35')][_0x3f775f('0x1d')]&&(_0x4d32e7[_0x3f775f('0xa0')]=_[_0x3f775f('0x32')](_0x4d32e7[_0x3f775f('0xa0')],{[Op['or']]:_[_0x3f775f('0xa1')](_0x4c02bc,function(_0x207f42){const _0x56cf42=_0x3f775f;if(_0x207f42[_0x56cf42('0x6b')]!=='VIRTUAL'){const _0x124466={};return _0x124466[_0x207f42['name']]={[Op['like']]:'%'+_0x5b6eb6[_0x56cf42('0x35')][_0x56cf42('0x1d')]+'%'},_0x124466;}})}));_0x4d32e7=_[_0x3f775f('0x32')]({},_0x4d32e7,_0x5b6eb6['options']);const _0x5ca9ae={'where':_0x4d32e7[_0x3f775f('0xa0')]};return db['ServicenowAccount'][_0x3f775f('0x2f')](_0x5ca9ae)[_0x3f775f('0x74')](function(_0x5f2096){const _0x4b25da=_0x3f775f;return _0x455b79[_0x4b25da('0x2f')]=_0x5f2096,_0x5b6eb6['query'][_0x4b25da('0x7d')]&&(_0x4d32e7[_0x4b25da('0x5f')]=[{'all':!![]}]),db['ServicenowAccount'][_0x4b25da('0x43')](_0x4d32e7);})['then'](function(_0x25e035){return _0x455b79['rows']=_0x25e035,_0x455b79;})[_0x3f775f('0x74')](respondWithFilteredResult(_0x593444,_0x4d32e7))[_0x3f775f('0x9e')](handleError(_0x593444,null));},exports['show']=function(_0x5ebf6c,_0x56a28d){const _0x3e68cc=_0x136ae4;let _0x3e3b4b={'raw':![],'where':{'id':_0x5ebf6c[_0x3e68cc('0x55')]['id']}};const _0x1feeba={};return _0x1feeba[_0x3e68cc('0x85')]=_['keys'](db['ServicenowAccount']['rawAttributes']),_0x1feeba[_0x3e68cc('0x35')]=_[_0x3e68cc('0x39')](_0x5ebf6c[_0x3e68cc('0x35')]),_0x1feeba[_0x3e68cc('0x4b')]=_['intersection'](_0x1feeba[_0x3e68cc('0x85')],_0x1feeba['query']),_0x3e3b4b[_0x3e68cc('0x2')]=_['intersection'](_0x1feeba['model'],qs['fields'](_0x5ebf6c[_0x3e68cc('0x35')][_0x3e68cc('0x54')])),_0x3e3b4b[_0x3e68cc('0x2')]=_0x3e3b4b['attributes'][_0x3e68cc('0x13')]?_0x3e3b4b[_0x3e68cc('0x2')]:_0x1feeba[_0x3e68cc('0x85')],_0x5ebf6c[_0x3e68cc('0x35')]['includeAll']&&(_0x3e3b4b['include']=[{'all':!![]}]),_0x3e3b4b=_[_0x3e68cc('0x32')]({},_0x3e3b4b,_0x5ebf6c[_0x3e68cc('0x8d')]),db[_0x3e68cc('0x3e')][_0x3e68cc('0x4f')](_0x3e3b4b)[_0x3e68cc('0x74')](handleEntityNotFound(_0x56a28d,null))[_0x3e68cc('0x74')](respondWithResult(_0x56a28d,null))[_0x3e68cc('0x9e')](handleError(_0x56a28d,null));},exports[_0x136ae4('0x59')]=function(_0x15bc96,_0x583f3e){const _0x8754d4=_0x136ae4;return db['ServicenowAccount'][_0x8754d4('0x59')](_0x15bc96['body'],{})[_0x8754d4('0x74')](respondWithResult(_0x583f3e,0xc9))[_0x8754d4('0x9e')](handleError(_0x583f3e,null));},exports[_0x136ae4('0x63')]=function(_0x4effb4,_0x17fa29){const _0x1247aa=_0x136ae4;return _0x4effb4[_0x1247aa('0x7f')]['id']&&delete _0x4effb4[_0x1247aa('0x7f')]['id'],db[_0x1247aa('0x3e')][_0x1247aa('0x4f')]({'where':{'id':_0x4effb4[_0x1247aa('0x55')]['id']}})[_0x1247aa('0x74')](handleEntityNotFound(_0x17fa29,null))[_0x1247aa('0x74')](saveUpdates(_0x4effb4[_0x1247aa('0x7f')],null))['then'](respondWithResult(_0x17fa29,null))['catch'](handleError(_0x17fa29,null));},exports[_0x136ae4('0x44')]=function(_0x527480,_0x44ed33){const _0xd2ed6c=_0x136ae4;return db[_0xd2ed6c('0x3e')][_0xd2ed6c('0x4f')]({'where':{'id':_0x527480[_0xd2ed6c('0x55')]['id']}})['then'](handleEntityNotFound(_0x44ed33,null))[_0xd2ed6c('0x74')](removeEntity(_0x44ed33,null))[_0xd2ed6c('0x9e')](handleError(_0x44ed33,null));},exports[_0x136ae4('0x24')]=function(_0x15563c,_0x3da65a){const _0x3038d4=_0x136ae4;let _0x417d11={};const _0x16b1b8={};let _0x5cdd45,_0x1c04ec;return db[_0x3038d4('0x3e')][_0x3038d4('0x4f')]({'where':{'id':_0x15563c[_0x3038d4('0x55')]['id']}})[_0x3038d4('0x74')](handleEntityNotFound(_0x3da65a,null))[_0x3038d4('0x74')](function(_0x416062){const _0x523ee3=_0x3038d4;if(_0x416062)return _0x5cdd45=_0x416062,_0x16b1b8[_0x523ee3('0x85')]=_[_0x523ee3('0x39')](db[_0x523ee3('0x7b')][_0x523ee3('0x5b')]),_0x16b1b8[_0x523ee3('0x35')]=_['keys'](_0x15563c[_0x523ee3('0x35')]),_0x16b1b8[_0x523ee3('0x4b')]=_[_0x523ee3('0x1e')](_0x16b1b8['model'],_0x16b1b8[_0x523ee3('0x35')]),_0x417d11[_0x523ee3('0x2')]=_[_0x523ee3('0x1e')](_0x16b1b8[_0x523ee3('0x85')],qs[_0x523ee3('0x54')](_0x15563c[_0x523ee3('0x35')][_0x523ee3('0x54')])),_0x417d11[_0x523ee3('0x2')]=_0x417d11[_0x523ee3('0x2')][_0x523ee3('0x13')]?_0x417d11['attributes']:_0x16b1b8[_0x523ee3('0x85')],_0x417d11[_0x523ee3('0x5')]=qs[_0x523ee3('0x2c')](_0x15563c[_0x523ee3('0x35')]['sort']),_0x417d11[_0x523ee3('0xa0')]=qs[_0x523ee3('0x4b')](_[_0x523ee3('0x5c')](_0x15563c[_0x523ee3('0x35')],_0x16b1b8[_0x523ee3('0x4b')])),_0x15563c['query'][_0x523ee3('0x1d')]&&(_0x417d11[_0x523ee3('0xa0')]=_['merge'](_0x417d11[_0x523ee3('0xa0')],{[Op['or']]:_[_0x523ee3('0xa1')](_0x417d11[_0x523ee3('0x2')],function(_0x3c3eff){const _0x4137d4=_0x523ee3,_0x2506d8={};return _0x2506d8[_0x3c3eff]={[Op[_0x4137d4('0x76')]]:'%'+_0x15563c[_0x4137d4('0x35')][_0x4137d4('0x1d')]+'%'},_0x2506d8;})})),_0x417d11=_[_0x523ee3('0x32')]({},_0x417d11,_0x15563c[_0x523ee3('0x8d')]),_0x5cdd45[_0x523ee3('0x24')](_0x417d11);})['then'](function(_0x5af687){const _0x23fbc7=_0x3038d4;if(_0x5af687)return _0x1c04ec=_0x5af687[_0x23fbc7('0x13')],typeof _0x15563c[_0x23fbc7('0x35')][_0x23fbc7('0x60')]===_0x23fbc7('0x15')&&(_0x417d11[_0x23fbc7('0x52')]=qs[_0x23fbc7('0x52')](_0x15563c[_0x23fbc7('0x35')][_0x23fbc7('0x52')]),_0x417d11[_0x23fbc7('0x6f')]=qs[_0x23fbc7('0x6f')](_0x15563c['query'][_0x23fbc7('0x6f')])),_0x5cdd45[_0x23fbc7('0x24')](_0x417d11);})[_0x3038d4('0x74')](function(_0x179c8c){if(_0x179c8c)return _0x179c8c?{'count':_0x1c04ec,'rows':_0x179c8c}:null;})[_0x3038d4('0x74')](respondWithResult(_0x3da65a,null))['catch'](handleError(_0x3da65a,null));},exports[_0x136ae4('0x62')]=function(_0x3d9fc3,_0x420691){const _0x28d6c4=_0x136ae4;return _0x3d9fc3[_0x28d6c4('0x7f')]['id']&&delete _0x3d9fc3['body']['id'],db[_0x28d6c4('0x3e')][_0x28d6c4('0x4f')]({'where':{'id':_0x3d9fc3[_0x28d6c4('0x55')]['id']}})[_0x28d6c4('0x74')](handleEntityNotFound(_0x420691,null))[_0x28d6c4('0x74')](function(_0x269164){const _0x281331=_0x28d6c4;if(_0x269164)return _0x3d9fc3['body']['AccountId']=_0x269164['id'],_0x3d9fc3[_0x281331('0x7f')][_0x281331('0x27')]=integrations['getSubjects'](_0x3d9fc3['body'][_0x281331('0x89')],_0x3d9fc3[_0x281331('0x7f')]['type']),_0x3d9fc3[_0x281331('0x7f')][_0x281331('0x73')]=integrations[_0x281331('0x1a')](_0x3d9fc3['body'][_0x281331('0x89')],_0x3d9fc3[_0x281331('0x7f')][_0x281331('0x6b')]),db[_0x281331('0x7b')][_0x281331('0x59')](_0x3d9fc3[_0x281331('0x7f')],{'include':[{'model':db[_0x281331('0x25')],'as':_0x281331('0x27')},{'model':db[_0x281331('0x25')],'as':_0x281331('0x73')}]});return null;})['then'](respondWithResult(_0x420691,null))[_0x28d6c4('0x9e')](handleError(_0x420691,null));},exports['getFields']=function(_0x375c01,_0x287654){const _0x3e63f1=_0x136ae4,_0x4ebe7e=[_0x3e63f1('0x1'),_0x3e63f1('0x47'),'knowledge','subcategory','close_code',_0x3e63f1('0x99'),'incident_state',_0x3e63f1('0x46'),'category'],_0x1d1fe7=[_0x3e63f1('0x7e'),'made_sla',_0x3e63f1('0x6e'),_0x3e63f1('0x41'),_0x3e63f1('0x8b'),_0x3e63f1('0x7c'),_0x3e63f1('0x38'),_0x3e63f1('0x47'),_0x3e63f1('0x9f'),_0x3e63f1('0x98'),_0x3e63f1('0x82'),_0x3e63f1('0x58'),_0x3e63f1('0x29'),_0x3e63f1('0x8a'),'sys_created_on','sys_domain',_0x3e63f1('0x95'),'sys_created_by',_0x3e63f1('0x69'),_0x3e63f1('0x5'),'calendar_stc',_0x3e63f1('0x3b'),_0x3e63f1('0x88'),_0x3e63f1('0x17'),_0x3e63f1('0x40'),_0x3e63f1('0x34'),_0x3e63f1('0xe'),_0x3e63f1('0x18'),_0x3e63f1('0x75'),_0x3e63f1('0x70'),_0x3e63f1('0x4e'),'time_worked',_0x3e63f1('0x51'),_0x3e63f1('0x6'),'business_duration',_0x3e63f1('0x57'),_0x3e63f1('0x33'),_0x3e63f1('0x64'),_0x3e63f1('0x8f'),'caller_id',_0x3e63f1('0x6c'),_0x3e63f1('0xc'),'work_notes',_0x3e63f1('0x80'),_0x3e63f1('0x45'),_0x3e63f1('0x28'),_0x3e63f1('0x4'),_0x3e63f1('0x97'),_0x3e63f1('0x12'),_0x3e63f1('0x8c'),_0x3e63f1('0x87'),'description',_0x3e63f1('0x3a'),_0x3e63f1('0x99'),'sys_class_name','close_notes',_0x3e63f1('0x9a'),_0x3e63f1('0x91'),_0x3e63f1('0xa'),_0x3e63f1('0x86'),_0x3e63f1('0x16'),_0x3e63f1('0x53'),'incident_state',_0x3e63f1('0x9d'),_0x3e63f1('0x79'),_0x3e63f1('0x68'),_0x3e63f1('0x90'),_0x3e63f1('0x65'),_0x3e63f1('0x83'),'severity','comments',_0x3e63f1('0x2b'),'approval','comments_and_work_notes',_0x3e63f1('0x9c'),_0x3e63f1('0x20'),_0x3e63f1('0x1f'),_0x3e63f1('0x48'),'escalation',_0x3e63f1('0x4a'),_0x3e63f1('0x8'),_0x3e63f1('0x3d'),_0x3e63f1('0x84')];let _0x47140e='',_0x128cd6='',_0x372478=[],_0x2791c5='',_0x50c9e4='',_0x1d8e46=[],_0x2308fe='',_0x41c17e='',_0x5745e7={},_0x4f4b9a='';return db[_0x3e63f1('0x3e')][_0x3e63f1('0x4f')]({'where':{'id':_0x375c01['params']['id']},'attributes':['id',_0x3e63f1('0x2d'),_0x3e63f1('0x37'),'email',_0x3e63f1('0x5d'),_0x3e63f1('0x21')]})[_0x3e63f1('0x74')](handleEntityNotFound(_0x287654,null))[_0x3e63f1('0x74')](function(_0x3f6018){const _0x4a61f9=_0x3e63f1;if(_0x3f6018){_0x4f4b9a=_0x3f6018[_0x4a61f9('0x5d')];const _0x1484a2=_0x4f4b9a[_0x4a61f9('0x6a')](-0x1);_0x1484a2==='/'&&(_0x4f4b9a=_0x4f4b9a['substring'](0x0,_0x4f4b9a['lastIndexOf'](_0x1484a2)));_0x41c17e=util[_0x4a61f9('0x3')]('%s/api/now/doc/table/schema/',_0x4f4b9a),_0x2308fe=util[_0x4a61f9('0x3')](_0x4a61f9('0x71'),_0x4f4b9a),_0x5745e7={'user':_0x3f6018[_0x4a61f9('0x2d')],'pass':_0x3f6018[_0x4a61f9('0x37')]};const _0x3c697f={'method':_0x4a61f9('0x7'),'uri':_0x41c17e+_0x4a61f9('0x96'),'auth':_0x5745e7,'json':!![]};return rp(_0x3c697f);}})['then'](function(_0x27fb02){const _0x477455=_0x3e63f1;return _0x27fb02['result'][_0x477455('0x13')]>0x0&&(_0x47140e=_0x27fb02['result']),console[_0x477455('0x3f')](_0x477455('0x19'),_0x47140e),_0x1d8e46=[],_0x128cd6=Object[_0x477455('0x81')]([],_0x47140e),_[_0x477455('0x23')](_0x128cd6,function(_0x5efc18){const _0x5b50bd=_0x477455;return!_0x4ebe7e['includes'](_0x5efc18[_0x5b50bd('0x72')]);}),_0x128cd6[_0x477455('0x3c')](function(_0x1634b0){const _0xeffe85=_0x477455,_0x200eba=createFieldObject(_0x2308fe,_0x5745e7,_0x1634b0[_0xeffe85('0x42')],_0x1634b0['name'],_0x1634b0['label'],![]);_0x1d8e46['push'](_0x200eba);}),Promise[_0x477455('0xb')](_0x1d8e46);})[_0x3e63f1('0x74')](function(_0x352776){const _0x245818=_0x3e63f1;return _0x372478=_0x352776,_0x2791c5=Object[_0x245818('0x81')]([],_0x47140e),console['log'](_0x245818('0x1c'),_0x47140e),_[_0x245818('0x23')](_0x2791c5,function(_0x59b690){const _0x2410b7=_0x245818;return _0x1d1fe7[_0x2410b7('0x66')](_0x59b690[_0x2410b7('0x72')]);}),console[_0x245818('0x3f')](_0x245818('0x11'),_0x2791c5),_0x1d8e46=[],_0x2791c5[_0x245818('0x3c')](function(_0x4e967e){const _0x512543=_0x245818,_0x27e490=createFieldObject(_0x2308fe,_0x5745e7,_0x4e967e[_0x512543('0x42')],_0x4e967e[_0x512543('0x72')],_0x4e967e['label'],!![]);_0x1d8e46[_0x512543('0x94')](_0x27e490);}),Promise[_0x245818('0xb')](_0x1d8e46);})[_0x3e63f1('0x74')](function(_0x2fd382){const _0x3bb310=_0x3e63f1;_0x50c9e4=_0x2fd382;const _0x40d715=_0x372478[_0x3bb310('0x9')](_0x50c9e4);return{'count':_0x40d715['length'],'rows':_0x40d715};})[_0x3e63f1('0x74')](respondWithResult(_0x287654,null))[_0x3e63f1('0x9e')](function(_0x17b94c){const _0x38e89d=_0x3e63f1;console[_0x38e89d('0x3f')](_0x38e89d('0x2e')+_0x17b94c);let _0x2743e2=_0x375c01[_0x38e89d('0x35')]['test']?0x1f4:_0x17b94c['statusCode']||0x1f4;logger['error'](_0x17b94c[_0x38e89d('0x30')]),delete _0x17b94c['name'],_0x2743e2===0x191&&(_0x2743e2=0x190),_0x287654[_0x38e89d('0x78')](_0x2743e2)[_0x38e89d('0x77')](_0x375c01[_0x38e89d('0x35')][_0x38e89d('0x5a')]?{'message':'Wrong\x20credentials','statusCode':_0x17b94c[_0x38e89d('0x4c')]}:_0x17b94c);});};function createFieldObject(_0x7f5a11,_0x5ad36d,_0x42f03f,_0x44fe35,_0x389141,_0x3e800b){return new Promise(function(_0x4921fc){const _0x845473=a294_0x31d2,_0x423da7={'id':_0x44fe35,'name':_0x389141,'custom':_0x3e800b};if(_0x42f03f==='boolean')_0x423da7[_0x845473('0x8d')]=[{'name':_0x845473('0x22'),'value':_0x845473('0x61')},{'name':_0x845473('0x4d'),'value':_0x845473('0x1b')}],_0x4921fc(_0x423da7);else{const _0x4f344a={'method':_0x845473('0x7'),'uri':_0x7f5a11+_0x845473('0x93')+_0x44fe35,'auth':_0x5ad36d,'json':!![]};return rp(_0x4f344a)[_0x845473('0x74')](function(_0x5dcad8){const _0x296336=_0x845473,_0x48da92=[];_0x5dcad8['result'][_0x296336('0x13')]>0x0&&_0x5dcad8[_0x296336('0xf')][_0x296336('0x3c')](function(_0x560d91){const _0x143971=_0x296336;if(_0x560d91['inactive']==='false'){const _0x297426={'name':_0x560d91[_0x143971('0x5e')],'value':_0x560d91[_0x143971('0x6d')]};_0x48da92[_0x143971('0x94')](_0x297426);}}),_0x423da7['options']=_0x48da92,_0x423da7[_0x296336('0x8d')][_0x296336('0x13')]>0x0?_0x4921fc(_0x423da7):_0x3e800b==![]?_0x4921fc():_0x4921fc(_0x423da7);});}});} \ No newline at end of file +const a352_0x249e=['closed_by','result','user_input','getConfigurations','api','attributes','upon_reject','GET','then','remove','calendar_stc','problem_id','urgency','name','description','knowledge','TCL:\x20_object','comments_and_work_notes','length','serverUrl','Subjects','label','VIRTUAL','model','addConfiguration','upon_approval','username','email','notify','count','show','state','fieldName','sys_updated_on','additional_assignee_list','type','location','sys_class_name','business_stc','impact','parent','%s/api/now/table/','AccountId','reopened_by','child_incidents','sla_due','statusCode','sys_updated_by','reopen_count','rows','ServicenowConfiguration','test','error','fields','channel','category','merge','remoteUri','all','map','business_service','pick','reassignment_count','catch','slice','work_notes_list','where','subcategory','value','made_sla','assignment_group','resolved_by','hold_reason','caused_by','caller_id','incident_state','getDescriptions','assigned_to','sort','short_description','ServicenowField','concat','company','sys_created_on','send','ServiceNow\x20error:\x20','contact_type','active','includes','expected_start','False','status','stack','watch_list','assign','limit','delivery_task','body','calendar_duration','approval_set','filter','reopened_time','sys_created_by','index','offset','include','cmdb_ci','rawAttributes','closed_at','follow_up','due_date','lastIndexOf','create','rfc','parent_incident','sys_choice?sysparm_query=name=incident^element=','options','incident\x20table\x20objects','number','update','query','Descriptions','filters','lodash','keys','resolved_at','ServicenowAccount','json','includeAll','sequelize','order','work_start','params','log','group_list','TCL:\x20exports.getEntityFields\x20->\x20_objectsCustom','boolean','../../mysqldb','severity','approval','findOne','intersection','like','priority','push','key','password','destroy','nolimit','forEach','request-promise-native','opened_at','comments','false','sys_mod_count','True','correlation_id','Wrong\x20credentials'];(function(_0x3c06e8,_0x264419){const _0x249e6d=function(_0x5b8f58){while(--_0x5b8f58){_0x3c06e8['push'](_0x3c06e8['shift']());}};_0x249e6d(++_0x264419);}(a352_0x249e,0x17d));const a352_0x5b8f=function(_0x3c06e8,_0x264419){_0x3c06e8=_0x3c06e8-0x113;let _0x249e6d=a352_0x249e[_0x3c06e8];return _0x249e6d;};const a352_0x4ec114=a352_0x5b8f;'use strict';const rp=require(a352_0x4ec114(0x168)),util=require('util'),_=require(a352_0x4ec114(0x14d)),qs=require('../../components/parsers/qs'),logger=require('../../config/logger')(a352_0x4ec114(0x174)),{db}=require(a352_0x4ec114(0x15b)),{Op}=require(a352_0x4ec114(0x153)),integrations=require('../../components/integrations/configuration');function respondWithResult(_0x385d32,_0x46f729){return _0x46f729=_0x46f729||0xc8,function(_0x1c659e){const _0x1b9a7a=a352_0x5b8f;if(_0x1c659e)return _0x385d32[_0x1b9a7a(0x12d)](_0x46f729)[_0x1b9a7a(0x151)](_0x1c659e);};}function respondWithFilteredResult(_0x254520,_0x3dc4e3){return function(_0x168d1a){const _0x50ee03=a352_0x5b8f;if(_0x168d1a){const _0xcf13c7=_0x168d1a[_0x50ee03(0x18d)],_0x57cd70=_0x3dc4e3[_0x50ee03(0x13a)];let _0x1768bd=_0x3dc4e3[_0x50ee03(0x13a)]+_0x3dc4e3[_0x50ee03(0x131)],_0x1cead6;return _0x1768bd>=_0xcf13c7?(_0x1768bd=_0xcf13c7,_0x1cead6=0xc8):_0x1cead6=0xce,_0x254520[_0x50ee03(0x12d)](_0x1cead6),_0x254520['set']('Content-Range',_0x57cd70+'-'+_0x1768bd+'/'+_0xcf13c7)[_0x50ee03(0x151)](_0x168d1a);}return null;};}function saveUpdates(_0x1499bd){return function(_0x32e0c3){const _0x5a5478=a352_0x5b8f;if(_0x32e0c3)return _0x32e0c3[_0x5a5478(0x149)](_0x1499bd)[_0x5a5478(0x178)](function(_0x45cca7){return _0x45cca7;});return null;};}function removeEntity(_0x543ba2){return function(_0x39eaf9){const _0x650873=a352_0x5b8f;if(_0x39eaf9)return _0x39eaf9[_0x650873(0x165)]()['then'](function(){const _0x47d62e=_0x650873;_0x543ba2[_0x47d62e(0x12d)](0xcc)['end']();});};}function handleEntityNotFound(_0x21f220){return function(_0x2da1e2){return!_0x2da1e2&&_0x21f220['sendStatus'](0x194),_0x2da1e2;};}function handleError(_0xeea762,_0x4fdb1e){return _0x4fdb1e=_0x4fdb1e||0x1f4,function(_0x4925b9){const _0x296ee0=a352_0x5b8f;logger[_0x296ee0(0x1a4)](_0x4925b9[_0x296ee0(0x12e)]),_0x4925b9[_0x296ee0(0x17d)]&&delete _0x4925b9[_0x296ee0(0x17d)],_0xeea762[_0x296ee0(0x12d)](_0x4fdb1e)[_0x296ee0(0x126)](_0x4925b9);};}exports[a352_0x4ec114(0x139)]=function(_0x6ab484,_0x2f1f69){const _0x1b1300=a352_0x4ec114;let _0x3c50d2={};const _0x4f3f4c={},_0xfbd0e1={'count':0x0,'rows':[]},_0x1f19ce=_['map'](db[_0x1b1300(0x150)][_0x1b1300(0x13d)],function(_0x25c488){const _0x243711=_0x1b1300;return{'name':_0x25c488[_0x243711(0x190)],'type':_0x25c488[_0x243711(0x193)][_0x243711(0x163)]};});_0x4f3f4c[_0x1b1300(0x187)]=_['map'](_0x1f19ce,'name'),_0x4f3f4c['query']=_[_0x1b1300(0x14e)](_0x6ab484[_0x1b1300(0x14a)]),_0x4f3f4c['filters']=_[_0x1b1300(0x15f)](_0x4f3f4c[_0x1b1300(0x187)],_0x4f3f4c['query']),_0x3c50d2[_0x1b1300(0x175)]=_[_0x1b1300(0x15f)](_0x4f3f4c['model'],qs[_0x1b1300(0x1a5)](_0x6ab484[_0x1b1300(0x14a)][_0x1b1300(0x1a5)])),_0x3c50d2[_0x1b1300(0x175)]=_0x3c50d2[_0x1b1300(0x175)][_0x1b1300(0x182)]?_0x3c50d2['attributes']:_0x4f3f4c[_0x1b1300(0x187)];typeof _0x6ab484['query'][_0x1b1300(0x166)]==='undefined'&&(_0x3c50d2['limit']=qs[_0x1b1300(0x131)](_0x6ab484[_0x1b1300(0x14a)][_0x1b1300(0x131)]),_0x3c50d2[_0x1b1300(0x13a)]=qs[_0x1b1300(0x13a)](_0x6ab484[_0x1b1300(0x14a)]['offset']));_0x3c50d2[_0x1b1300(0x154)]=qs[_0x1b1300(0x120)](_0x6ab484[_0x1b1300(0x14a)][_0x1b1300(0x120)]),_0x3c50d2[_0x1b1300(0x114)]=qs['filters'](_[_0x1b1300(0x1ad)](_0x6ab484['query'],_0x4f3f4c[_0x1b1300(0x14c)]),_0x1f19ce);_0x6ab484['query']['filter']&&(_0x3c50d2[_0x1b1300(0x114)]=_[_0x1b1300(0x1a8)](_0x3c50d2['where'],{[Op['or']]:_['map'](_0x1f19ce,function(_0x510f28){const _0x481e38=_0x1b1300;if(_0x510f28[_0x481e38(0x193)]!==_0x481e38(0x186)){const _0x32ef05={};return _0x32ef05[_0x510f28[_0x481e38(0x17d)]]={[Op[_0x481e38(0x160)]]:'%'+_0x6ab484[_0x481e38(0x14a)][_0x481e38(0x136)]+'%'},_0x32ef05;}})}));_0x3c50d2=_[_0x1b1300(0x1a8)]({},_0x3c50d2,_0x6ab484[_0x1b1300(0x146)]);const _0x3cf3b9={'where':_0x3c50d2['where']};return db['ServicenowAccount'][_0x1b1300(0x18d)](_0x3cf3b9)[_0x1b1300(0x178)](function(_0x5f15e5){const _0x18edd1=_0x1b1300;return _0xfbd0e1['count']=_0x5f15e5,_0x6ab484['query'][_0x18edd1(0x152)]&&(_0x3c50d2[_0x18edd1(0x13b)]=[{'all':!![]}]),db['ServicenowAccount']['findAll'](_0x3c50d2);})['then'](function(_0x265455){const _0x168362=_0x1b1300;return _0xfbd0e1[_0x168362(0x1a1)]=_0x265455,_0xfbd0e1;})[_0x1b1300(0x178)](respondWithFilteredResult(_0x2f1f69,_0x3c50d2))[_0x1b1300(0x1af)](handleError(_0x2f1f69,null));},exports[a352_0x4ec114(0x18e)]=function(_0x38e0db,_0x4ec798){const _0x281017=a352_0x4ec114;let _0x231ef7={'raw':![],'where':{'id':_0x38e0db['params']['id']}};const _0x313a55={};return _0x313a55[_0x281017(0x187)]=_[_0x281017(0x14e)](db[_0x281017(0x150)][_0x281017(0x13d)]),_0x313a55[_0x281017(0x14a)]=_[_0x281017(0x14e)](_0x38e0db[_0x281017(0x14a)]),_0x313a55[_0x281017(0x14c)]=_[_0x281017(0x15f)](_0x313a55['model'],_0x313a55['query']),_0x231ef7[_0x281017(0x175)]=_[_0x281017(0x15f)](_0x313a55[_0x281017(0x187)],qs['fields'](_0x38e0db[_0x281017(0x14a)]['fields'])),_0x231ef7[_0x281017(0x175)]=_0x231ef7[_0x281017(0x175)][_0x281017(0x182)]?_0x231ef7[_0x281017(0x175)]:_0x313a55[_0x281017(0x187)],_0x38e0db[_0x281017(0x14a)][_0x281017(0x152)]&&(_0x231ef7[_0x281017(0x13b)]=[{'all':!![]}]),_0x231ef7=_[_0x281017(0x1a8)]({},_0x231ef7,_0x38e0db[_0x281017(0x146)]),db[_0x281017(0x150)]['findOne'](_0x231ef7)[_0x281017(0x178)](handleEntityNotFound(_0x4ec798,null))[_0x281017(0x178)](respondWithResult(_0x4ec798,null))[_0x281017(0x1af)](handleError(_0x4ec798,null));},exports['create']=function(_0x683a44,_0x4c508d){const _0x3c6736=a352_0x4ec114;return db[_0x3c6736(0x150)][_0x3c6736(0x142)](_0x683a44[_0x3c6736(0x133)],{})[_0x3c6736(0x178)](respondWithResult(_0x4c508d,0xc9))[_0x3c6736(0x1af)](handleError(_0x4c508d,null));},exports['update']=function(_0x1e4796,_0x334cba){const _0x29cbbb=a352_0x4ec114;return _0x1e4796[_0x29cbbb(0x133)]['id']&&delete _0x1e4796[_0x29cbbb(0x133)]['id'],db[_0x29cbbb(0x150)][_0x29cbbb(0x15e)]({'where':{'id':_0x1e4796[_0x29cbbb(0x156)]['id']}})[_0x29cbbb(0x178)](handleEntityNotFound(_0x334cba,null))[_0x29cbbb(0x178)](saveUpdates(_0x1e4796[_0x29cbbb(0x133)],null))['then'](respondWithResult(_0x334cba,null))[_0x29cbbb(0x1af)](handleError(_0x334cba,null));},exports[a352_0x4ec114(0x165)]=function(_0x3974c2,_0x140c9a){const _0x1b0c85=a352_0x4ec114;return db[_0x1b0c85(0x150)]['findOne']({'where':{'id':_0x3974c2[_0x1b0c85(0x156)]['id']}})['then'](handleEntityNotFound(_0x140c9a,null))[_0x1b0c85(0x178)](removeEntity(_0x140c9a,null))[_0x1b0c85(0x1af)](handleError(_0x140c9a,null));},exports[a352_0x4ec114(0x173)]=function(_0x40703c,_0x44ca67){const _0x24a60d=a352_0x4ec114;let _0x37f993={};const _0x31e1b9={};let _0x554870,_0x1d9826;return db['ServicenowAccount']['findOne']({'where':{'id':_0x40703c[_0x24a60d(0x156)]['id']}})[_0x24a60d(0x178)](handleEntityNotFound(_0x44ca67,null))[_0x24a60d(0x178)](function(_0x3512bf){const _0x125b73=_0x24a60d;if(_0x3512bf)return _0x554870=_0x3512bf,_0x31e1b9[_0x125b73(0x187)]=_[_0x125b73(0x14e)](db[_0x125b73(0x1a2)][_0x125b73(0x13d)]),_0x31e1b9[_0x125b73(0x14a)]=_[_0x125b73(0x14e)](_0x40703c[_0x125b73(0x14a)]),_0x31e1b9[_0x125b73(0x14c)]=_[_0x125b73(0x15f)](_0x31e1b9[_0x125b73(0x187)],_0x31e1b9[_0x125b73(0x14a)]),_0x37f993[_0x125b73(0x175)]=_[_0x125b73(0x15f)](_0x31e1b9[_0x125b73(0x187)],qs[_0x125b73(0x1a5)](_0x40703c[_0x125b73(0x14a)]['fields'])),_0x37f993[_0x125b73(0x175)]=_0x37f993[_0x125b73(0x175)][_0x125b73(0x182)]?_0x37f993[_0x125b73(0x175)]:_0x31e1b9[_0x125b73(0x187)],_0x37f993[_0x125b73(0x154)]=qs['sort'](_0x40703c[_0x125b73(0x14a)][_0x125b73(0x120)]),_0x37f993['where']=qs['filters'](_[_0x125b73(0x1ad)](_0x40703c[_0x125b73(0x14a)],_0x31e1b9[_0x125b73(0x14c)])),_0x40703c[_0x125b73(0x14a)][_0x125b73(0x136)]&&(_0x37f993['where']=_[_0x125b73(0x1a8)](_0x37f993[_0x125b73(0x114)],{[Op['or']]:_[_0x125b73(0x1ab)](_0x37f993['attributes'],function(_0x427574){const _0x41308d=_0x125b73,_0x401337={};return _0x401337[_0x427574]={[Op[_0x41308d(0x160)]]:'%'+_0x40703c['query'][_0x41308d(0x136)]+'%'},_0x401337;})})),_0x37f993=_['merge']({},_0x37f993,_0x40703c[_0x125b73(0x146)]),_0x554870[_0x125b73(0x173)](_0x37f993);})[_0x24a60d(0x178)](function(_0x36e74b){const _0x46fa16=_0x24a60d;if(_0x36e74b)return _0x1d9826=_0x36e74b[_0x46fa16(0x182)],typeof _0x40703c[_0x46fa16(0x14a)][_0x46fa16(0x166)]==='undefined'&&(_0x37f993['limit']=qs['limit'](_0x40703c[_0x46fa16(0x14a)][_0x46fa16(0x131)]),_0x37f993[_0x46fa16(0x13a)]=qs[_0x46fa16(0x13a)](_0x40703c[_0x46fa16(0x14a)][_0x46fa16(0x13a)])),_0x554870[_0x46fa16(0x173)](_0x37f993);})[_0x24a60d(0x178)](function(_0x581625){if(_0x581625)return _0x581625?{'count':_0x1d9826,'rows':_0x581625}:null;})[_0x24a60d(0x178)](respondWithResult(_0x44ca67,null))['catch'](handleError(_0x44ca67,null));},exports[a352_0x4ec114(0x188)]=function(_0x35970a,_0x45697c){const _0x1458e1=a352_0x4ec114;return _0x35970a['body']['id']&&delete _0x35970a['body']['id'],db[_0x1458e1(0x150)][_0x1458e1(0x15e)]({'where':{'id':_0x35970a[_0x1458e1(0x156)]['id']}})[_0x1458e1(0x178)](handleEntityNotFound(_0x45697c,null))[_0x1458e1(0x178)](function(_0x483c7c){const _0x2742df=_0x1458e1;if(_0x483c7c)return _0x35970a[_0x2742df(0x133)][_0x2742df(0x19a)]=_0x483c7c['id'],_0x35970a['body'][_0x2742df(0x184)]=integrations['getSubjects'](_0x35970a[_0x2742df(0x133)][_0x2742df(0x1a6)],_0x35970a[_0x2742df(0x133)][_0x2742df(0x193)]),_0x35970a[_0x2742df(0x133)][_0x2742df(0x14b)]=integrations[_0x2742df(0x11e)](_0x35970a['body'][_0x2742df(0x1a6)],_0x35970a[_0x2742df(0x133)][_0x2742df(0x193)]),db['ServicenowConfiguration'][_0x2742df(0x142)](_0x35970a[_0x2742df(0x133)],{'include':[{'model':db[_0x2742df(0x122)],'as':_0x2742df(0x184)},{'model':db[_0x2742df(0x122)],'as':_0x2742df(0x14b)}]});return null;})[_0x1458e1(0x178)](respondWithResult(_0x45697c,null))[_0x1458e1(0x1af)](handleError(_0x45697c,null));},exports['getFields']=function(_0x509570,_0x1b92df){const _0x16a0d0=a352_0x4ec114,_0x32c062=[_0x16a0d0(0x117),'hold_reason',_0x16a0d0(0x17f),_0x16a0d0(0x115),'close_code',_0x16a0d0(0x18c),_0x16a0d0(0x11d),'severity','category'],_0x540aeb=[_0x16a0d0(0x198),_0x16a0d0(0x117),_0x16a0d0(0x11b),_0x16a0d0(0x12f),_0x16a0d0(0x176),_0x16a0d0(0x191),_0x16a0d0(0x19c),_0x16a0d0(0x11a),'approval_history',_0x16a0d0(0x148),_0x16a0d0(0x119),_0x16a0d0(0x19f),'opened_by',_0x16a0d0(0x172),_0x16a0d0(0x125),'sys_domain',_0x16a0d0(0x18f),_0x16a0d0(0x138),_0x16a0d0(0x17f),_0x16a0d0(0x154),_0x16a0d0(0x17a),_0x16a0d0(0x13e),_0x16a0d0(0x13c),'delivery_plan',_0x16a0d0(0x197),_0x16a0d0(0x129),_0x16a0d0(0x113),_0x16a0d0(0x1ac),_0x16a0d0(0x161),'sys_domain_path',_0x16a0d0(0x143),'time_worked',_0x16a0d0(0x12b),_0x16a0d0(0x169),'business_duration',_0x16a0d0(0x158),'work_end',_0x16a0d0(0x137),_0x16a0d0(0x14f),_0x16a0d0(0x11c),_0x16a0d0(0x135),_0x16a0d0(0x115),'work_notes',_0x16a0d0(0x121),'close_code','correlation_display',_0x16a0d0(0x132),_0x16a0d0(0x155),_0x16a0d0(0x118),_0x16a0d0(0x196),_0x16a0d0(0x192),_0x16a0d0(0x17e),_0x16a0d0(0x134),'notify',_0x16a0d0(0x195),'close_notes',_0x16a0d0(0x170),_0x16a0d0(0x13f),_0x16a0d0(0x144),'sys_id',_0x16a0d0(0x128),_0x16a0d0(0x19b),_0x16a0d0(0x11d),_0x16a0d0(0x17c),_0x16a0d0(0x17b),_0x16a0d0(0x124),_0x16a0d0(0x1ae),'activity_due',_0x16a0d0(0x11f),_0x16a0d0(0x15c),_0x16a0d0(0x16a),_0x16a0d0(0x19d),_0x16a0d0(0x15d),_0x16a0d0(0x181),_0x16a0d0(0x140),_0x16a0d0(0x16c),_0x16a0d0(0x1a0),'sys_tags','escalation',_0x16a0d0(0x189),_0x16a0d0(0x16e),_0x16a0d0(0x194),_0x16a0d0(0x1a7)];let _0x2d38b9='',_0x1ee54d='',_0x5bda2b=[],_0xb2cd87='',_0x1eddd1='',_0x1bd978=[],_0x23b7ee='',_0x34a937='',_0xc1bb6a={},_0x3e83ea='';return db[_0x16a0d0(0x150)][_0x16a0d0(0x15e)]({'where':{'id':_0x509570['params']['id']},'attributes':['id',_0x16a0d0(0x18a),_0x16a0d0(0x164),_0x16a0d0(0x18b),_0x16a0d0(0x1a9),_0x16a0d0(0x183)]})[_0x16a0d0(0x178)](handleEntityNotFound(_0x1b92df,null))[_0x16a0d0(0x178)](function(_0x35c99b){const _0x532322=_0x16a0d0;if(_0x35c99b){_0x3e83ea=_0x35c99b[_0x532322(0x1a9)];const _0x1e3fc9=_0x3e83ea[_0x532322(0x1b0)](-0x1);_0x1e3fc9==='/'&&(_0x3e83ea=_0x3e83ea['substring'](0x0,_0x3e83ea[_0x532322(0x141)](_0x1e3fc9)));_0x34a937=util['format']('%s/api/now/doc/table/schema/',_0x3e83ea),_0x23b7ee=util['format'](_0x532322(0x199),_0x3e83ea),_0xc1bb6a={'user':_0x35c99b[_0x532322(0x18a)],'pass':_0x35c99b[_0x532322(0x164)]};const _0x55f464={'method':_0x532322(0x177),'uri':_0x34a937+'incident?sysparm_display_value=all','auth':_0xc1bb6a,'json':!![]};return rp(_0x55f464);}})[_0x16a0d0(0x178)](function(_0x12fe68){const _0x2d1cfe=_0x16a0d0;return _0x12fe68['result'][_0x2d1cfe(0x182)]>0x0&&(_0x2d38b9=_0x12fe68[_0x2d1cfe(0x171)]),console[_0x2d1cfe(0x157)](_0x2d1cfe(0x147),_0x2d38b9),_0x1bd978=[],_0x1ee54d=Object[_0x2d1cfe(0x130)]([],_0x2d38b9),_[_0x2d1cfe(0x179)](_0x1ee54d,function(_0x263a20){return!_0x32c062['includes'](_0x263a20['name']);}),_0x1ee54d['forEach'](function(_0x54ef38){const _0x5cb8a1=_0x2d1cfe,_0x2c88b6=createFieldObject(_0x23b7ee,_0xc1bb6a,_0x54ef38['internalType'],_0x54ef38['name'],_0x54ef38[_0x5cb8a1(0x185)],![]);_0x1bd978[_0x5cb8a1(0x162)](_0x2c88b6);}),Promise[_0x2d1cfe(0x1aa)](_0x1bd978);})['then'](function(_0x5c785d){const _0x57952b=_0x16a0d0;return _0x5bda2b=_0x5c785d,_0xb2cd87=Object['assign']([],_0x2d38b9),console['log'](_0x57952b(0x180),_0x2d38b9),_[_0x57952b(0x179)](_0xb2cd87,function(_0x169151){const _0x12bbbd=_0x57952b;return _0x540aeb[_0x12bbbd(0x12a)](_0x169151[_0x12bbbd(0x17d)]);}),console['log'](_0x57952b(0x159),_0xb2cd87),_0x1bd978=[],_0xb2cd87['forEach'](function(_0x4928ee){const _0x5417d4=_0x57952b,_0x999887=createFieldObject(_0x23b7ee,_0xc1bb6a,_0x4928ee['internalType'],_0x4928ee[_0x5417d4(0x17d)],_0x4928ee['label'],!![]);_0x1bd978[_0x5417d4(0x162)](_0x999887);}),Promise[_0x57952b(0x1aa)](_0x1bd978);})['then'](function(_0x30187b){const _0x4192b8=_0x16a0d0;_0x1eddd1=_0x30187b;const _0x316322=_0x5bda2b[_0x4192b8(0x123)](_0x1eddd1);return{'count':_0x316322['length'],'rows':_0x316322};})[_0x16a0d0(0x178)](respondWithResult(_0x1b92df,null))[_0x16a0d0(0x1af)](function(_0xdad79c){const _0x2f8921=_0x16a0d0;console[_0x2f8921(0x157)](_0x2f8921(0x127)+_0xdad79c);let _0x46d065=_0x509570['query'][_0x2f8921(0x1a3)]?0x1f4:_0xdad79c[_0x2f8921(0x19e)]||0x1f4;logger[_0x2f8921(0x1a4)](_0xdad79c[_0x2f8921(0x12e)]),delete _0xdad79c['name'],_0x46d065===0x191&&(_0x46d065=0x190),_0x1b92df[_0x2f8921(0x12d)](_0x46d065)[_0x2f8921(0x126)](_0x509570[_0x2f8921(0x14a)]['test']?{'message':_0x2f8921(0x16f),'statusCode':_0xdad79c[_0x2f8921(0x19e)]}:_0xdad79c);});};function createFieldObject(_0x5dd575,_0x101bc8,_0x3c3b51,_0x59b657,_0xe06df8,_0xe5de5){return new Promise(function(_0x5e13af){const _0x3b00c6=a352_0x5b8f,_0x4b0ad3={'id':_0x59b657,'name':_0xe06df8,'custom':_0xe5de5};if(_0x3c3b51===_0x3b00c6(0x15a))_0x4b0ad3[_0x3b00c6(0x146)]=[{'name':_0x3b00c6(0x16d),'value':'true'},{'name':_0x3b00c6(0x12c),'value':_0x3b00c6(0x16b)}],_0x5e13af(_0x4b0ad3);else{const _0xeff655={'method':_0x3b00c6(0x177),'uri':_0x5dd575+_0x3b00c6(0x145)+_0x59b657,'auth':_0x101bc8,'json':!![]};return rp(_0xeff655)[_0x3b00c6(0x178)](function(_0x266081){const _0x4a4c96=_0x3b00c6,_0x454857=[];_0x266081[_0x4a4c96(0x171)][_0x4a4c96(0x182)]>0x0&&_0x266081['result'][_0x4a4c96(0x167)](function(_0x562a52){const _0x10fcbe=_0x4a4c96;if(_0x562a52['inactive']===_0x10fcbe(0x16b)){const _0x5a86d7={'name':_0x562a52['label'],'value':_0x562a52[_0x10fcbe(0x116)]};_0x454857['push'](_0x5a86d7);}}),_0x4b0ad3[_0x4a4c96(0x146)]=_0x454857,_0x4b0ad3['options'][_0x4a4c96(0x182)]>0x0?_0x5e13af(_0x4b0ad3):_0xe5de5==![]?_0x5e13af():_0x5e13af(_0x4b0ad3);});}});} \ No newline at end of file diff --git a/server/api/intServicenowAccount/intServicenowAccount.model.js b/server/api/intServicenowAccount/intServicenowAccount.model.js index d6d3864..b7dd0ad 100644 --- a/server/api/intServicenowAccount/intServicenowAccount.model.js +++ b/server/api/intServicenowAccount/intServicenowAccount.model.js @@ -1 +1 @@ -const a295_0x4571=['ServicenowAccount','define','./intServicenowAccount.attributes','exports','int_servicenow_accounts'];(function(_0x16973d,_0x4571a7){const _0x484579=function(_0x21446e){while(--_0x21446e){_0x16973d['push'](_0x16973d['shift']());}};_0x484579(++_0x4571a7);}(a295_0x4571,0x11f));const a295_0x4845=function(_0x16973d,_0x4571a7){_0x16973d=_0x16973d-0x0;let _0x484579=a295_0x4571[_0x16973d];return _0x484579;};const _0x56bba0=a295_0x4845;'use strict';const attributes=require(_0x56bba0('0x0'));module[_0x56bba0('0x1')]=function(_0x21446e){const _0x3c8457=_0x56bba0,_0xb87728=_0x21446e[_0x3c8457('0x4')](_0x3c8457('0x3'),attributes,{'tableName':_0x3c8457('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0xb87728;}; \ No newline at end of file +const a353_0x19e1=['./intServicenowAccount.attributes','ServicenowAccount','init','function','exports'];(function(_0x4ab0c8,_0x1e9e9a){const _0x19e1b6=function(_0xbdf934){while(--_0xbdf934){_0x4ab0c8['push'](_0x4ab0c8['shift']());}};_0x19e1b6(++_0x1e9e9a);}(a353_0x19e1,0x100));const a353_0xbdf9=function(_0x4ab0c8,_0x1e9e9a){_0x4ab0c8=_0x4ab0c8-0x1c0;let _0x19e1b6=a353_0x19e1[_0x4ab0c8];return _0x19e1b6;};const a353_0x9758c6=a353_0xbdf9;'use strict';const {Model}=require('sequelize'),{attributes}=require(a353_0x9758c6(0x1c4)),{options}=require('./intServicenowAccount.options');class ServicenowAccount extends Model{}function init(_0x1a76e5,_0x4b31c7){const _0x5c22f4=a353_0x9758c6,_0x88b4e7=options(_0x1a76e5),_0x24449d=typeof _0x4b31c7===_0x5c22f4(0x1c2)?_0x4b31c7(_0x88b4e7):_0x88b4e7;return ServicenowAccount['init'](attributes,_0x24449d),ServicenowAccount;}module[a353_0x9758c6(0x1c3)][a353_0x9758c6(0x1c0)]=ServicenowAccount,module[a353_0x9758c6(0x1c3)][a353_0x9758c6(0x1c1)]=init; \ No newline at end of file diff --git a/server/api/intServicenowAccount/intServicenowAccount.options.js b/server/api/intServicenowAccount/intServicenowAccount.options.js new file mode 100644 index 0000000..83754f5 --- /dev/null +++ b/server/api/intServicenowAccount/intServicenowAccount.options.js @@ -0,0 +1 @@ +var a354_0x5d21=['options','exports','int_servicenow_accounts'];(function(_0x9aba95,_0x1ff7af){var _0x5d2184=function(_0x34caf0){while(--_0x34caf0){_0x9aba95['push'](_0x9aba95['shift']());}};_0x5d2184(++_0x1ff7af);}(a354_0x5d21,0x66));var a354_0x34ca=function(_0x9aba95,_0x1ff7af){_0x9aba95=_0x9aba95-0x16a;var _0x5d2184=a354_0x5d21[_0x9aba95];return _0x5d2184;};var a354_0x3c49b3=a354_0x34ca;function options(_0x1b3253){var _0x5d75b4=a354_0x34ca;return{'sequelize':_0x1b3253,'tableName':_0x5d75b4(0x16c),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a354_0x3c49b3(0x16b)][a354_0x3c49b3(0x16a)]=options; \ No newline at end of file diff --git a/server/api/intServicenowAccount/intServicenowAccount.rpc.js b/server/api/intServicenowAccount/intServicenowAccount.rpc.js index eaa595e..52d3fb7 100644 --- a/server/api/intServicenowAccount/intServicenowAccount.rpc.js +++ b/server/api/intServicenowAccount/intServicenowAccount.rpc.js @@ -1 +1 @@ -const a296_0x4798=['limit','info','catch','options','findOne','model','map','attributes','findAll','then','error','where','message','GetServicenowAccount','include','../../config/logger','ShowServicenowAccount','stringify','rpc'];(function(_0x225efe,_0x47984b){const _0x5ba78f=function(_0x5291b7){while(--_0x5291b7){_0x225efe['push'](_0x225efe['shift']());}};_0x5ba78f(++_0x47984b);}(a296_0x4798,0x150));const a296_0x5ba7=function(_0x225efe,_0x47984b){_0x225efe=_0x225efe-0x0;let _0x5ba78f=a296_0x4798[_0x225efe];return _0x5ba78f;};const _0x2ff10d=a296_0x5ba7;'use strict';const _=require('lodash'),db=require('../../mysqldb')['db'],logger=require(_0x2ff10d('0x2'))(_0x2ff10d('0x5'));exports[_0x2ff10d('0x0')]=function(_0x5291b7){const _0x3b0d2e=this;return new Promise(function(_0x4efa75,_0xacb6c5){const _0x524e7c=a296_0x5ba7;return db['ServicenowAccount'][_0x524e7c('0xe')]({'raw':_0x5291b7[_0x524e7c('0x9')]?_0x5291b7[_0x524e7c('0x9')]['raw']===undefined?!![]:![]:!![],'where':_0x5291b7['options']?_0x5291b7[_0x524e7c('0x9')][_0x524e7c('0x11')]||null:null,'attributes':_0x5291b7[_0x524e7c('0x9')]?_0x5291b7['options'][_0x524e7c('0xd')]||null:null,'limit':_0x5291b7['options']?_0x5291b7[_0x524e7c('0x9')][_0x524e7c('0x6')]||null:null,'include':_0x5291b7['options']?_0x5291b7['options'][_0x524e7c('0x1')]?_[_0x524e7c('0xc')](_0x5291b7[_0x524e7c('0x9')][_0x524e7c('0x1')],function(_0x13f5f8){const _0x57c6a1=_0x524e7c;return{'model':db[_0x13f5f8[_0x57c6a1('0xb')]],'as':_0x13f5f8['as'],'attributes':_0x13f5f8['attributes'],'include':_0x13f5f8[_0x57c6a1('0x1')]?_[_0x57c6a1('0xc')](_0x13f5f8['include'],function(_0x59f7fa){const _0x2b1f8c=_0x57c6a1;return{'model':db[_0x59f7fa[_0x2b1f8c('0xb')]],'as':_0x59f7fa['as'],'attributes':_0x59f7fa['attributes'],'include':_0x59f7fa[_0x2b1f8c('0x1')]?_[_0x2b1f8c('0xc')](_0x59f7fa[_0x2b1f8c('0x1')],function(_0x15c490){const _0x183354=_0x2b1f8c;return{'model':db[_0x15c490[_0x183354('0xb')]],'as':_0x15c490['as'],'attributes':_0x15c490[_0x183354('0xd')]};}):[]};}):[]};}):[]:[]})[_0x524e7c('0xf')](function(_0xc52917){const _0x18bc5c=_0x524e7c;logger[_0x18bc5c('0x7')]('GetServicenowAccount',_0x5291b7),logger['debug'](_0x18bc5c('0x0'),_0x5291b7,JSON[_0x18bc5c('0x4')](_0xc52917)),_0x4efa75(_0xc52917);})[_0x524e7c('0x8')](function(_0x288acf){const _0x9980cb=_0x524e7c;logger['error'](_0x9980cb('0x0'),_0x288acf[_0x9980cb('0x12')],_0x5291b7),_0xacb6c5(_0x3b0d2e[_0x9980cb('0x10')](0x1f4,_0x288acf[_0x9980cb('0x12')]));});});},exports['ShowServicenowAccount']=function(_0x3276e2){const _0x2ea013=this;return new Promise(function(_0x3ccb38,_0x10520e){const _0x25b38e=a296_0x5ba7;return db['ServicenowAccount'][_0x25b38e('0xa')]({'raw':_0x3276e2[_0x25b38e('0x9')]?_0x3276e2[_0x25b38e('0x9')]['raw']===undefined?!![]:![]:!![],'where':_0x3276e2[_0x25b38e('0x9')]?_0x3276e2[_0x25b38e('0x9')][_0x25b38e('0x11')]||null:null,'attributes':_0x3276e2[_0x25b38e('0x9')]?_0x3276e2['options']['attributes']||null:null,'include':_0x3276e2[_0x25b38e('0x9')]?_0x3276e2[_0x25b38e('0x9')][_0x25b38e('0x1')]?_['map'](_0x3276e2[_0x25b38e('0x9')]['include'],function(_0x2ab389){const _0x4b0214=_0x25b38e;return{'model':db[_0x2ab389[_0x4b0214('0xb')]],'as':_0x2ab389['as'],'attributes':_0x2ab389[_0x4b0214('0xd')],'include':_0x2ab389[_0x4b0214('0x1')]?_[_0x4b0214('0xc')](_0x2ab389['include'],function(_0x12ff6d){const _0x325c05=_0x4b0214;return{'model':db[_0x12ff6d[_0x325c05('0xb')]],'as':_0x12ff6d['as'],'attributes':_0x12ff6d[_0x325c05('0xd')],'include':_0x12ff6d[_0x325c05('0x1')]?_['map'](_0x12ff6d[_0x325c05('0x1')],function(_0x1a4c83){const _0xe5bec=_0x325c05;return{'model':db[_0x1a4c83[_0xe5bec('0xb')]],'as':_0x1a4c83['as'],'attributes':_0x1a4c83[_0xe5bec('0xd')]};}):[]};}):[]};}):[]:[]})[_0x25b38e('0xf')](function(_0x4a6a81){const _0xf7dfa5=_0x25b38e;logger['info'](_0xf7dfa5('0x3'),_0x3276e2),logger['debug'](_0xf7dfa5('0x3'),_0x3276e2,JSON[_0xf7dfa5('0x4')](_0x4a6a81)),_0x3ccb38(_0x4a6a81);})[_0x25b38e('0x8')](function(_0x1ba750){const _0x4a68fd=_0x25b38e;logger['error'](_0x4a68fd('0x3'),_0x1ba750[_0x4a68fd('0x12')],_0x3276e2),_0x10520e(_0x2ea013[_0x4a68fd('0x10')](0x1f4,_0x1ba750[_0x4a68fd('0x12')]));});});}; \ No newline at end of file +const a355_0x2610=['info','GetServicenowAccount','stringify','then','ShowServicenowAccount','map','findOne','limit','model','../../config/logger','message','ServicenowAccount','catch','../../mysqldb','debug','include','attributes','options','raw','error','lodash','where'];(function(_0x32b869,_0x1564f0){const _0x261041=function(_0x12032d){while(--_0x12032d){_0x32b869['push'](_0x32b869['shift']());}};_0x261041(++_0x1564f0);}(a355_0x2610,0x15a));const a355_0x1203=function(_0x32b869,_0x1564f0){_0x32b869=_0x32b869-0x154;let _0x261041=a355_0x2610[_0x32b869];return _0x261041;};const a355_0xa87396=a355_0x1203;'use strict';const _=require(a355_0xa87396(0x158)),db=require(a355_0xa87396(0x167))['db'],logger=require(a355_0xa87396(0x163))('rpc');exports['GetServicenowAccount']=function(_0x2e4132){const _0xf9f34b=this;return new Promise(function(_0x88e7d2,_0x4c0d8f){const _0x32af96=a355_0x1203;return db[_0x32af96(0x165)]['findAll']({'raw':_0x2e4132[_0x32af96(0x155)]?_0x2e4132[_0x32af96(0x155)][_0x32af96(0x156)]===undefined?!![]:![]:!![],'where':_0x2e4132['options']?_0x2e4132[_0x32af96(0x155)][_0x32af96(0x159)]||null:null,'attributes':_0x2e4132[_0x32af96(0x155)]?_0x2e4132['options'][_0x32af96(0x154)]||null:null,'limit':_0x2e4132['options']?_0x2e4132['options'][_0x32af96(0x161)]||null:null,'include':_0x2e4132[_0x32af96(0x155)]?_0x2e4132['options'][_0x32af96(0x169)]?_[_0x32af96(0x15f)](_0x2e4132[_0x32af96(0x155)][_0x32af96(0x169)],function(_0xb0d160){const _0x2bd30f=_0x32af96;return{'model':db[_0xb0d160[_0x2bd30f(0x162)]],'as':_0xb0d160['as'],'attributes':_0xb0d160['attributes'],'include':_0xb0d160[_0x2bd30f(0x169)]?_['map'](_0xb0d160[_0x2bd30f(0x169)],function(_0x110a72){const _0x26a519=_0x2bd30f;return{'model':db[_0x110a72['model']],'as':_0x110a72['as'],'attributes':_0x110a72['attributes'],'include':_0x110a72['include']?_[_0x26a519(0x15f)](_0x110a72[_0x26a519(0x169)],function(_0x57bd25){const _0x13ee38=_0x26a519;return{'model':db[_0x57bd25['model']],'as':_0x57bd25['as'],'attributes':_0x57bd25[_0x13ee38(0x154)]};}):[]};}):[]};}):[]:[]})['then'](function(_0x4628fc){const _0x43a73c=_0x32af96;logger[_0x43a73c(0x15a)]('GetServicenowAccount',_0x2e4132),logger[_0x43a73c(0x168)](_0x43a73c(0x15b),_0x2e4132,JSON[_0x43a73c(0x15c)](_0x4628fc)),_0x88e7d2(_0x4628fc);})['catch'](function(_0x4ccf25){const _0x5ea72f=_0x32af96;logger[_0x5ea72f(0x157)](_0x5ea72f(0x15b),_0x4ccf25['message'],_0x2e4132),_0x4c0d8f(_0xf9f34b[_0x5ea72f(0x157)](0x1f4,_0x4ccf25[_0x5ea72f(0x164)]));});});},exports[a355_0xa87396(0x15e)]=function(_0x52bb5e){const _0x1b1e9a=this;return new Promise(function(_0x2e62ec,_0x44a205){const _0x299fa2=a355_0x1203;return db['ServicenowAccount'][_0x299fa2(0x160)]({'raw':_0x52bb5e[_0x299fa2(0x155)]?_0x52bb5e['options'][_0x299fa2(0x156)]===undefined?!![]:![]:!![],'where':_0x52bb5e[_0x299fa2(0x155)]?_0x52bb5e[_0x299fa2(0x155)][_0x299fa2(0x159)]||null:null,'attributes':_0x52bb5e[_0x299fa2(0x155)]?_0x52bb5e['options'][_0x299fa2(0x154)]||null:null,'include':_0x52bb5e[_0x299fa2(0x155)]?_0x52bb5e[_0x299fa2(0x155)]['include']?_[_0x299fa2(0x15f)](_0x52bb5e[_0x299fa2(0x155)]['include'],function(_0x7160f){const _0x3e9b44=_0x299fa2;return{'model':db[_0x7160f[_0x3e9b44(0x162)]],'as':_0x7160f['as'],'attributes':_0x7160f['attributes'],'include':_0x7160f[_0x3e9b44(0x169)]?_['map'](_0x7160f[_0x3e9b44(0x169)],function(_0x1dd2fd){const _0x59a705=_0x3e9b44;return{'model':db[_0x1dd2fd['model']],'as':_0x1dd2fd['as'],'attributes':_0x1dd2fd[_0x59a705(0x154)],'include':_0x1dd2fd[_0x59a705(0x169)]?_[_0x59a705(0x15f)](_0x1dd2fd[_0x59a705(0x169)],function(_0x4bb9ca){const _0x20e6c1=_0x59a705;return{'model':db[_0x4bb9ca[_0x20e6c1(0x162)]],'as':_0x4bb9ca['as'],'attributes':_0x4bb9ca['attributes']};}):[]};}):[]};}):[]:[]})[_0x299fa2(0x15d)](function(_0xfbcdc1){const _0x1b6fea=_0x299fa2;logger[_0x1b6fea(0x15a)](_0x1b6fea(0x15e),_0x52bb5e),logger[_0x1b6fea(0x168)](_0x1b6fea(0x15e),_0x52bb5e,JSON[_0x1b6fea(0x15c)](_0xfbcdc1)),_0x2e62ec(_0xfbcdc1);})[_0x299fa2(0x166)](function(_0x2d2856){const _0x31a0cf=_0x299fa2;logger['error']('ShowServicenowAccount',_0x2d2856[_0x31a0cf(0x164)],_0x52bb5e),_0x44a205(_0x1b1e9a[_0x31a0cf(0x157)](0x1f4,_0x2d2856[_0x31a0cf(0x164)]));});});}; \ No newline at end of file diff --git a/server/api/intServicenowConfiguration/index.js b/server/api/intServicenowConfiguration/index.js index 957a4d4..d60c392 100644 --- a/server/api/intServicenowConfiguration/index.js +++ b/server/api/intServicenowConfiguration/index.js @@ -1 +1 @@ -const a297_0x379d=['/:id/descriptions','getSubjects','express','isAuthenticated','update','Router','index','create','delete','./intServicenowConfiguration.controller','post','/:id/subjects','/:id','get'];(function(_0x35f706,_0x379d6c){const _0x4f1e5b=function(_0x8c69ec){while(--_0x8c69ec){_0x35f706['push'](_0x35f706['shift']());}};_0x4f1e5b(++_0x379d6c);}(a297_0x379d,0x173));const a297_0x4f1e=function(_0x35f706,_0x379d6c){_0x35f706=_0x35f706-0x0;let _0x4f1e5b=a297_0x379d[_0x35f706];return _0x4f1e5b;};const _0x116410=a297_0x4f1e;'use strict';const express=require(_0x116410('0x9')),router=express[_0x116410('0xc')](),auth=require('../../components/auth/service'),controller=require(_0x116410('0x2'));router[_0x116410('0x6')]('/',auth[_0x116410('0xa')](),controller[_0x116410('0xd')]),router[_0x116410('0x6')](_0x116410('0x5'),auth[_0x116410('0xa')](),controller['show']),router[_0x116410('0x6')]('/:id/fields',auth[_0x116410('0xa')](),controller['getFields']),router[_0x116410('0x6')](_0x116410('0x4'),auth['isAuthenticated'](),controller[_0x116410('0x8')]),router[_0x116410('0x6')](_0x116410('0x7'),auth[_0x116410('0xa')](),controller['getDescriptions']),router[_0x116410('0x3')]('/',auth[_0x116410('0xa')](),controller[_0x116410('0x0')]),router['put'](_0x116410('0x5'),auth[_0x116410('0xa')](),controller[_0x116410('0xb')]),router[_0x116410('0x1')](_0x116410('0x5'),auth[_0x116410('0xa')](),controller['destroy']),module['exports']=router; \ No newline at end of file +const a356_0x5b19=['getFields','/:id','destroy','/:id/descriptions','../../components/auth/service','/:id/subjects','getDescriptions','get','express','/:id/fields','update','index','exports','Router','create','./intServicenowConfiguration.controller','isAuthenticated'];(function(_0x31e984,_0xd3c134){const _0x5b19b1=function(_0x5d9171){while(--_0x5d9171){_0x31e984['push'](_0x31e984['shift']());}};_0x5b19b1(++_0xd3c134);}(a356_0x5b19,0xb2));const a356_0x5d91=function(_0x31e984,_0xd3c134){_0x31e984=_0x31e984-0x130;let _0x5b19b1=a356_0x5b19[_0x31e984];return _0x5b19b1;};const a356_0x5182c7=a356_0x5d91;'use strict';const express=require(a356_0x5182c7(0x130)),router=express[a356_0x5182c7(0x135)](),auth=require(a356_0x5182c7(0x13d)),controller=require(a356_0x5182c7(0x137));router[a356_0x5182c7(0x140)]('/',auth['isAuthenticated'](),controller[a356_0x5182c7(0x133)]),router[a356_0x5182c7(0x140)]('/:id',auth[a356_0x5182c7(0x138)](),controller['show']),router[a356_0x5182c7(0x140)](a356_0x5182c7(0x131),auth['isAuthenticated'](),controller[a356_0x5182c7(0x139)]),router[a356_0x5182c7(0x140)](a356_0x5182c7(0x13e),auth[a356_0x5182c7(0x138)](),controller['getSubjects']),router['get'](a356_0x5182c7(0x13c),auth[a356_0x5182c7(0x138)](),controller[a356_0x5182c7(0x13f)]),router['post']('/',auth[a356_0x5182c7(0x138)](),controller[a356_0x5182c7(0x136)]),router['put'](a356_0x5182c7(0x13a),auth[a356_0x5182c7(0x138)](),controller[a356_0x5182c7(0x132)]),router['delete'](a356_0x5182c7(0x13a),auth['isAuthenticated'](),controller[a356_0x5182c7(0x13b)]),module[a356_0x5182c7(0x134)]=router; \ No newline at end of file diff --git a/server/api/intServicenowConfiguration/intServicenowConfiguration.attributes.js b/server/api/intServicenowConfiguration/intServicenowConfiguration.attributes.js index 533531b..9fccae7 100644 --- a/server/api/intServicenowConfiguration/intServicenowConfiguration.attributes.js +++ b/server/api/intServicenowConfiguration/intServicenowConfiguration.attributes.js @@ -1 +1 @@ -const a298_0x38a1=['exports','STRING'];(function(_0x430780,_0x38a16b){const _0x3c056a=function(_0x585ec8){while(--_0x585ec8){_0x430780['push'](_0x430780['shift']());}};_0x3c056a(++_0x38a16b);}(a298_0x38a1,0x16e));const a298_0x3c05=function(_0x430780,_0x38a16b){_0x430780=_0x430780-0x0;let _0x3c056a=a298_0x38a1[_0x430780];return _0x3c056a;};const _0x542d6a=a298_0x3c05;'use strict';const Sequelize=require('sequelize');module[_0x542d6a('0x0')]={'name':{'type':Sequelize[_0x542d6a('0x1')]},'description':{'type':Sequelize['STRING']}}; \ No newline at end of file +const a357_0x193a=['exports','STRING','sequelize','attributes'];(function(_0x4e0799,_0x36cceb){const _0x193a9f=function(_0x56f631){while(--_0x56f631){_0x4e0799['push'](_0x4e0799['shift']());}};_0x193a9f(++_0x36cceb);}(a357_0x193a,0x1db));const a357_0x56f6=function(_0x4e0799,_0x36cceb){_0x4e0799=_0x4e0799-0x140;let _0x193a9f=a357_0x193a[_0x4e0799];return _0x193a9f;};const a357_0x4b4a43=a357_0x56f6;'use strict';const {DataTypes}=require(a357_0x4b4a43(0x143)),attributes={'name':{'type':DataTypes[a357_0x4b4a43(0x142)]},'description':{'type':DataTypes[a357_0x4b4a43(0x142)]}};module[a357_0x4b4a43(0x141)][a357_0x4b4a43(0x140)]=attributes; \ No newline at end of file diff --git a/server/api/intServicenowConfiguration/intServicenowConfiguration.controller.js b/server/api/intServicenowConfiguration/intServicenowConfiguration.controller.js index 8915c88..26ddca8 100644 --- a/server/api/intServicenowConfiguration/intServicenowConfiguration.controller.js +++ b/server/api/intServicenowConfiguration/intServicenowConfiguration.controller.js @@ -1 +1 @@ -const a299_0x17da=['fieldName','options','body','rows','length','name','attributes','status','Content-Range','key','VIRTUAL','model','create','order','map','sequelize','sort','filters','error','undefined','like','include','destroy','filter','getSubjects','where','catch','query','includeAll','nolimit','count','send','set','../../mysqldb','lodash','rawAttributes','intersection','params','offset','pick','merge','getDescriptions','then','type','update','limit','keys','stack','ServicenowConfiguration','json','sendStatus','findOne','index','fields','ServicenowField'];(function(_0x411a2a,_0x17da67){const _0x48ae88=function(_0x3020f1){while(--_0x3020f1){_0x411a2a['push'](_0x411a2a['shift']());}};_0x48ae88(++_0x17da67);}(a299_0x17da,0x10b));const a299_0x48ae=function(_0x411a2a,_0x17da67){_0x411a2a=_0x411a2a-0x0;let _0x48ae88=a299_0x17da[_0x411a2a];return _0x48ae88;};const _0x4d2c10=a299_0x48ae;'use strict';const _=require(_0x4d2c10('0x2a')),qs=require('../../components/parsers/qs'),logger=require('../../config/logger')('api'),db=require(_0x4d2c10('0x29'))['db'],{Op}=require(_0x4d2c10('0x17'));function respondWithResult(_0x3020f1,_0x560fe6){return _0x560fe6=_0x560fe6||0xc8,function(_0x57ec62){const _0x30743e=a299_0x48ae;if(_0x57ec62)return _0x3020f1[_0x30743e('0xf')](_0x560fe6)[_0x30743e('0x2')](_0x57ec62);};}function respondWithFilteredResult(_0xdea2c8,_0x531c4a){return function(_0x5974a7){const _0x28bfed=a299_0x48ae;if(_0x5974a7){const _0x5c14f9=_0x5974a7[_0x28bfed('0x26')],_0x516c49=_0x531c4a['offset'];let _0x29dd08=_0x531c4a['offset']+_0x531c4a[_0x28bfed('0x35')],_0x29837a;return _0x29dd08>=_0x5c14f9?(_0x29dd08=_0x5c14f9,_0x29837a=0xc8):_0x29837a=0xce,_0xdea2c8[_0x28bfed('0xf')](_0x29837a),_0xdea2c8[_0x28bfed('0x28')](_0x28bfed('0x10'),_0x516c49+'-'+_0x29dd08+'/'+_0x5c14f9)[_0x28bfed('0x2')](_0x5974a7);}return null;};}function saveUpdates(_0x5c566e){return function(_0x38bfd5){const _0x55eb72=a299_0x48ae;if(_0x38bfd5)return _0x38bfd5[_0x55eb72('0x34')](_0x5c566e)['then'](function(_0x2953b2){return _0x2953b2;});return null;};}function removeEntity(_0xb054fe){return function(_0x12ba05){if(_0x12ba05)return _0x12ba05['destroy']()['then'](function(){const _0x1bb014=a299_0x48ae;_0xb054fe[_0x1bb014('0xf')](0xcc)['end']();});};}function handleEntityNotFound(_0x4074bf){return function(_0x4880ff){const _0x3715fe=a299_0x48ae;return!_0x4880ff&&_0x4074bf[_0x3715fe('0x3')](0x194),_0x4880ff;};}function handleError(_0x39e065,_0x43cdff){return _0x43cdff=_0x43cdff||0x1f4,function(_0xa33217){const _0x4e0be0=a299_0x48ae;logger[_0x4e0be0('0x1a')](_0xa33217[_0x4e0be0('0x0')]),_0xa33217[_0x4e0be0('0xd')]&&delete _0xa33217['name'],_0x39e065['status'](_0x43cdff)[_0x4e0be0('0x27')](_0xa33217);};}exports[_0x4d2c10('0x5')]=function(_0x2a979c,_0x419137){const _0x57cba8=_0x4d2c10;let _0x96d33b={};const _0x5b8543={},_0x65b4d1={'count':0x0,'rows':[]},_0x5ee8ad=_[_0x57cba8('0x16')](db['ServicenowConfiguration']['rawAttributes'],function(_0x3754f3){const _0x3c1cce=_0x57cba8;return{'name':_0x3754f3[_0x3c1cce('0x8')],'type':_0x3754f3[_0x3c1cce('0x33')][_0x3c1cce('0x11')]};});_0x5b8543[_0x57cba8('0x13')]=_[_0x57cba8('0x16')](_0x5ee8ad,_0x57cba8('0xd')),_0x5b8543[_0x57cba8('0x23')]=_['keys'](_0x2a979c[_0x57cba8('0x23')]),_0x5b8543[_0x57cba8('0x19')]=_[_0x57cba8('0x2c')](_0x5b8543[_0x57cba8('0x13')],_0x5b8543[_0x57cba8('0x23')]),_0x96d33b[_0x57cba8('0xe')]=_[_0x57cba8('0x2c')](_0x5b8543['model'],qs['fields'](_0x2a979c[_0x57cba8('0x23')]['fields'])),_0x96d33b[_0x57cba8('0xe')]=_0x96d33b[_0x57cba8('0xe')]['length']?_0x96d33b['attributes']:_0x5b8543[_0x57cba8('0x13')];typeof _0x2a979c['query'][_0x57cba8('0x25')]===_0x57cba8('0x1b')&&(_0x96d33b['limit']=qs[_0x57cba8('0x35')](_0x2a979c['query'][_0x57cba8('0x35')]),_0x96d33b['offset']=qs[_0x57cba8('0x2e')](_0x2a979c[_0x57cba8('0x23')][_0x57cba8('0x2e')]));_0x96d33b[_0x57cba8('0x15')]=qs[_0x57cba8('0x18')](_0x2a979c[_0x57cba8('0x23')][_0x57cba8('0x18')]),_0x96d33b['where']=qs[_0x57cba8('0x19')](_[_0x57cba8('0x2f')](_0x2a979c[_0x57cba8('0x23')],_0x5b8543[_0x57cba8('0x19')]),_0x5ee8ad);_0x2a979c[_0x57cba8('0x23')][_0x57cba8('0x1f')]&&(_0x96d33b[_0x57cba8('0x21')]=_[_0x57cba8('0x30')](_0x96d33b[_0x57cba8('0x21')],{[Op['or']]:_[_0x57cba8('0x16')](_0x5ee8ad,function(_0x280322){const _0x4bf274=_0x57cba8;if(_0x280322['type']!==_0x4bf274('0x12')){const _0x588274={};return _0x588274[_0x280322['name']]={[Op[_0x4bf274('0x1c')]]:'%'+_0x2a979c['query']['filter']+'%'},_0x588274;}})}));_0x96d33b=_['merge']({},_0x96d33b,_0x2a979c[_0x57cba8('0x9')]);const _0x4ea361={'where':_0x96d33b['where']};return db['ServicenowConfiguration'][_0x57cba8('0x26')](_0x4ea361)[_0x57cba8('0x32')](function(_0x109aab){const _0x35f32f=_0x57cba8;return _0x65b4d1[_0x35f32f('0x26')]=_0x109aab,_0x2a979c[_0x35f32f('0x23')][_0x35f32f('0x24')]&&(_0x96d33b[_0x35f32f('0x1d')]=[{'all':!![]}]),db[_0x35f32f('0x1')]['findAll'](_0x96d33b);})[_0x57cba8('0x32')](function(_0x27be55){const _0x6b9900=_0x57cba8;return _0x65b4d1[_0x6b9900('0xb')]=_0x27be55,_0x65b4d1;})['then'](respondWithFilteredResult(_0x419137,_0x96d33b))[_0x57cba8('0x22')](handleError(_0x419137,null));},exports['show']=function(_0x507894,_0x144fbe){const _0x216f4a=_0x4d2c10;let _0x3ec5c8={'raw':![],'where':{'id':_0x507894[_0x216f4a('0x2d')]['id']}};const _0x1584f6={};return _0x1584f6[_0x216f4a('0x13')]=_[_0x216f4a('0x36')](db[_0x216f4a('0x1')]['rawAttributes']),_0x1584f6[_0x216f4a('0x23')]=_[_0x216f4a('0x36')](_0x507894[_0x216f4a('0x23')]),_0x1584f6[_0x216f4a('0x19')]=_[_0x216f4a('0x2c')](_0x1584f6['model'],_0x1584f6[_0x216f4a('0x23')]),_0x3ec5c8[_0x216f4a('0xe')]=_[_0x216f4a('0x2c')](_0x1584f6[_0x216f4a('0x13')],qs[_0x216f4a('0x6')](_0x507894[_0x216f4a('0x23')][_0x216f4a('0x6')])),_0x3ec5c8[_0x216f4a('0xe')]=_0x3ec5c8['attributes'][_0x216f4a('0xc')]?_0x3ec5c8[_0x216f4a('0xe')]:_0x1584f6[_0x216f4a('0x13')],_0x507894[_0x216f4a('0x23')][_0x216f4a('0x24')]&&(_0x3ec5c8['include']=[{'all':!![]}]),_0x3ec5c8=_[_0x216f4a('0x30')]({},_0x3ec5c8,_0x507894[_0x216f4a('0x9')]),db[_0x216f4a('0x1')][_0x216f4a('0x4')](_0x3ec5c8)[_0x216f4a('0x32')](handleEntityNotFound(_0x144fbe,null))[_0x216f4a('0x32')](respondWithResult(_0x144fbe,null))[_0x216f4a('0x22')](handleError(_0x144fbe,null));},exports[_0x4d2c10('0x14')]=function(_0xd192e7,_0xcb43ec){const _0x4f8967=_0x4d2c10;return db['ServicenowConfiguration'][_0x4f8967('0x14')](_0xd192e7[_0x4f8967('0xa')],{})[_0x4f8967('0x32')](respondWithResult(_0xcb43ec,0xc9))[_0x4f8967('0x22')](handleError(_0xcb43ec,null));},exports[_0x4d2c10('0x34')]=function(_0x44305b,_0x3e8afd){const _0x4379b4=_0x4d2c10;return _0x44305b[_0x4379b4('0xa')]['id']&&delete _0x44305b[_0x4379b4('0xa')]['id'],db[_0x4379b4('0x1')][_0x4379b4('0x4')]({'where':{'id':_0x44305b['params']['id']}})['then'](handleEntityNotFound(_0x3e8afd,null))[_0x4379b4('0x32')](saveUpdates(_0x44305b[_0x4379b4('0xa')],null))['then'](respondWithResult(_0x3e8afd,null))[_0x4379b4('0x22')](handleError(_0x3e8afd,null));},exports[_0x4d2c10('0x1e')]=function(_0x36646b,_0x1ca3e1){const _0x1a492e=_0x4d2c10;return db['ServicenowConfiguration'][_0x1a492e('0x4')]({'where':{'id':_0x36646b[_0x1a492e('0x2d')]['id']}})['then'](handleEntityNotFound(_0x1ca3e1,null))['then'](removeEntity(_0x1ca3e1,null))[_0x1a492e('0x22')](handleError(_0x1ca3e1,null));},exports['getFields']=function(_0x505959,_0x839ee5){const _0x9a57ef=_0x4d2c10;let _0x4e48de={};const _0x59ad44={};let _0x2a1778,_0x4b1ea7;return db[_0x9a57ef('0x1')][_0x9a57ef('0x4')]({'where':{'id':_0x505959[_0x9a57ef('0x2d')]['id']}})[_0x9a57ef('0x32')](handleEntityNotFound(_0x839ee5,null))[_0x9a57ef('0x32')](function(_0x1f5e24){const _0x56dd42=_0x9a57ef;if(_0x1f5e24)return _0x2a1778=_0x1f5e24,_0x59ad44['model']=_[_0x56dd42('0x36')](db['ServicenowField'][_0x56dd42('0x2b')]),_0x59ad44[_0x56dd42('0x23')]=_[_0x56dd42('0x36')](_0x505959['query']),_0x59ad44[_0x56dd42('0x19')]=_[_0x56dd42('0x2c')](_0x59ad44[_0x56dd42('0x13')],_0x59ad44['query']),_0x4e48de[_0x56dd42('0xe')]=_[_0x56dd42('0x2c')](_0x59ad44[_0x56dd42('0x13')],qs['fields'](_0x505959[_0x56dd42('0x23')][_0x56dd42('0x6')])),_0x4e48de[_0x56dd42('0xe')]=_0x4e48de[_0x56dd42('0xe')][_0x56dd42('0xc')]?_0x4e48de['attributes']:_0x59ad44[_0x56dd42('0x13')],_0x4e48de[_0x56dd42('0x15')]=qs[_0x56dd42('0x18')](_0x505959[_0x56dd42('0x23')][_0x56dd42('0x18')]),_0x4e48de['where']=qs[_0x56dd42('0x19')](_[_0x56dd42('0x2f')](_0x505959['query'],_0x59ad44[_0x56dd42('0x19')])),_0x505959[_0x56dd42('0x23')]['filter']&&(_0x4e48de[_0x56dd42('0x21')]=_[_0x56dd42('0x30')](_0x4e48de[_0x56dd42('0x21')],{[Op['or']]:_[_0x56dd42('0x16')](_0x4e48de[_0x56dd42('0xe')],function(_0x4af27b){const _0x3bca17=_0x56dd42,_0x4bb958={};return _0x4bb958[_0x4af27b]={[Op[_0x3bca17('0x1c')]]:'%'+_0x505959[_0x3bca17('0x23')]['filter']+'%'},_0x4bb958;})})),_0x4e48de=_[_0x56dd42('0x30')]({},_0x4e48de,_0x505959[_0x56dd42('0x9')]),_0x2a1778['getFields'](_0x4e48de);})[_0x9a57ef('0x32')](function(_0x52a1ba){const _0x33b59e=_0x9a57ef;if(_0x52a1ba)return _0x4b1ea7=_0x52a1ba['length'],typeof _0x505959[_0x33b59e('0x23')][_0x33b59e('0x25')]===_0x33b59e('0x1b')&&(_0x4e48de[_0x33b59e('0x35')]=qs[_0x33b59e('0x35')](_0x505959[_0x33b59e('0x23')][_0x33b59e('0x35')]),_0x4e48de[_0x33b59e('0x2e')]=qs[_0x33b59e('0x2e')](_0x505959[_0x33b59e('0x23')]['offset'])),_0x2a1778['getFields'](_0x4e48de);})[_0x9a57ef('0x32')](function(_0x187b90){if(_0x187b90)return _0x187b90?{'count':_0x4b1ea7,'rows':_0x187b90}:null;})['then'](respondWithResult(_0x839ee5,null))[_0x9a57ef('0x22')](handleError(_0x839ee5,null));},exports[_0x4d2c10('0x20')]=function(_0x25a61b,_0x508057){const _0x2de090=_0x4d2c10;let _0x40dbea={};const _0x35c075={};let _0x4c7795,_0x31377d;return db[_0x2de090('0x1')][_0x2de090('0x4')]({'where':{'id':_0x25a61b['params']['id']}})[_0x2de090('0x32')](handleEntityNotFound(_0x508057,null))[_0x2de090('0x32')](function(_0xf74b8c){const _0x163ea2=_0x2de090;if(_0xf74b8c)return _0x4c7795=_0xf74b8c,_0x35c075[_0x163ea2('0x13')]=_['keys'](db[_0x163ea2('0x7')]['rawAttributes']),_0x35c075[_0x163ea2('0x23')]=_[_0x163ea2('0x36')](_0x25a61b[_0x163ea2('0x23')]),_0x35c075['filters']=_['intersection'](_0x35c075[_0x163ea2('0x13')],_0x35c075[_0x163ea2('0x23')]),_0x40dbea[_0x163ea2('0xe')]=_[_0x163ea2('0x2c')](_0x35c075['model'],qs['fields'](_0x25a61b[_0x163ea2('0x23')][_0x163ea2('0x6')])),_0x40dbea[_0x163ea2('0xe')]=_0x40dbea[_0x163ea2('0xe')][_0x163ea2('0xc')]?_0x40dbea[_0x163ea2('0xe')]:_0x35c075['model'],_0x40dbea[_0x163ea2('0x15')]=qs[_0x163ea2('0x18')](_0x25a61b[_0x163ea2('0x23')][_0x163ea2('0x18')]),_0x40dbea[_0x163ea2('0x21')]=qs[_0x163ea2('0x19')](_[_0x163ea2('0x2f')](_0x25a61b['query'],_0x35c075['filters'])),_0x25a61b[_0x163ea2('0x23')][_0x163ea2('0x1f')]&&(_0x40dbea[_0x163ea2('0x21')]=_[_0x163ea2('0x30')](_0x40dbea[_0x163ea2('0x21')],{[Op['or']]:_[_0x163ea2('0x16')](_0x40dbea[_0x163ea2('0xe')],function(_0x5495bb){const _0x41d8a6=_0x163ea2,_0x64e06d={};return _0x64e06d[_0x5495bb]={[Op[_0x41d8a6('0x1c')]]:'%'+_0x25a61b[_0x41d8a6('0x23')][_0x41d8a6('0x1f')]+'%'},_0x64e06d;})})),_0x40dbea=_[_0x163ea2('0x30')]({},_0x40dbea,_0x25a61b[_0x163ea2('0x9')]),_0x4c7795[_0x163ea2('0x20')](_0x40dbea);})['then'](function(_0x47c267){const _0x1cd5f0=_0x2de090;if(_0x47c267)return _0x31377d=_0x47c267['length'],typeof _0x25a61b[_0x1cd5f0('0x23')]['nolimit']===_0x1cd5f0('0x1b')&&(_0x40dbea[_0x1cd5f0('0x35')]=qs['limit'](_0x25a61b[_0x1cd5f0('0x23')][_0x1cd5f0('0x35')]),_0x40dbea['offset']=qs[_0x1cd5f0('0x2e')](_0x25a61b[_0x1cd5f0('0x23')][_0x1cd5f0('0x2e')])),_0x4c7795[_0x1cd5f0('0x20')](_0x40dbea);})[_0x2de090('0x32')](function(_0x1b6ff4){if(_0x1b6ff4)return _0x1b6ff4?{'count':_0x31377d,'rows':_0x1b6ff4}:null;})[_0x2de090('0x32')](respondWithResult(_0x508057,null))[_0x2de090('0x22')](handleError(_0x508057,null));},exports[_0x4d2c10('0x31')]=function(_0x24cea1,_0x49d8b5){const _0x349f1d=_0x4d2c10;let _0x36fa79={};const _0xc11064={};let _0x49bd6f,_0xeb2726;return db[_0x349f1d('0x1')]['findOne']({'where':{'id':_0x24cea1['params']['id']}})['then'](handleEntityNotFound(_0x49d8b5,null))['then'](function(_0x2cc17a){const _0x36a16f=_0x349f1d;if(_0x2cc17a)return _0x49bd6f=_0x2cc17a,_0xc11064[_0x36a16f('0x13')]=_[_0x36a16f('0x36')](db['ServicenowField'][_0x36a16f('0x2b')]),_0xc11064[_0x36a16f('0x23')]=_[_0x36a16f('0x36')](_0x24cea1['query']),_0xc11064['filters']=_[_0x36a16f('0x2c')](_0xc11064['model'],_0xc11064[_0x36a16f('0x23')]),_0x36fa79['attributes']=_[_0x36a16f('0x2c')](_0xc11064[_0x36a16f('0x13')],qs[_0x36a16f('0x6')](_0x24cea1[_0x36a16f('0x23')][_0x36a16f('0x6')])),_0x36fa79[_0x36a16f('0xe')]=_0x36fa79[_0x36a16f('0xe')][_0x36a16f('0xc')]?_0x36fa79['attributes']:_0xc11064[_0x36a16f('0x13')],_0x36fa79[_0x36a16f('0x15')]=qs[_0x36a16f('0x18')](_0x24cea1['query'][_0x36a16f('0x18')]),_0x36fa79[_0x36a16f('0x21')]=qs[_0x36a16f('0x19')](_[_0x36a16f('0x2f')](_0x24cea1['query'],_0xc11064[_0x36a16f('0x19')])),_0x24cea1[_0x36a16f('0x23')][_0x36a16f('0x1f')]&&(_0x36fa79[_0x36a16f('0x21')]=_[_0x36a16f('0x30')](_0x36fa79['where'],{[Op['or']]:_[_0x36a16f('0x16')](_0x36fa79[_0x36a16f('0xe')],function(_0x46cdaa){const _0x553332=_0x36a16f,_0x1a8bf6={};return _0x1a8bf6[_0x46cdaa]={[Op[_0x553332('0x1c')]]:'%'+_0x24cea1[_0x553332('0x23')][_0x553332('0x1f')]+'%'},_0x1a8bf6;})})),_0x36fa79=_['merge']({},_0x36fa79,_0x24cea1[_0x36a16f('0x9')]),_0x49bd6f[_0x36a16f('0x31')](_0x36fa79);})[_0x349f1d('0x32')](function(_0x2ad0f2){const _0x42d223=_0x349f1d;if(_0x2ad0f2)return _0xeb2726=_0x2ad0f2[_0x42d223('0xc')],typeof _0x24cea1[_0x42d223('0x23')][_0x42d223('0x25')]===_0x42d223('0x1b')&&(_0x36fa79[_0x42d223('0x35')]=qs[_0x42d223('0x35')](_0x24cea1[_0x42d223('0x23')][_0x42d223('0x35')]),_0x36fa79['offset']=qs[_0x42d223('0x2e')](_0x24cea1[_0x42d223('0x23')][_0x42d223('0x2e')])),_0x49bd6f[_0x42d223('0x31')](_0x36fa79);})['then'](function(_0x4e2d6d){if(_0x4e2d6d)return _0x4e2d6d?{'count':_0xeb2726,'rows':_0x4e2d6d}:null;})[_0x349f1d('0x32')](respondWithResult(_0x49d8b5,null))['catch'](handleError(_0x49d8b5,null));}; \ No newline at end of file +const a358_0x1ee6=['ServicenowField','../../mysqldb','order','then','findOne','like','length','model','attributes','../../config/logger','where','sort','includeAll','getDescriptions','fieldName','query','body','lodash','Content-Range','offset','fields','keys','limit','options','error','pick','sendStatus','send','catch','map','../../components/parsers/qs','update','show','count','api','index','destroy','type','params','undefined','filter','rows','filters','nolimit','intersection','ServicenowConfiguration','merge','sequelize','rawAttributes','end','findAll','create','name','getFields','key','getSubjects','status','json'];(function(_0x2869b3,_0x2a9bca){const _0x1ee648=function(_0x5e3858){while(--_0x5e3858){_0x2869b3['push'](_0x2869b3['shift']());}};_0x1ee648(++_0x2a9bca);}(a358_0x1ee6,0x1aa));const a358_0x5e38=function(_0x2869b3,_0x2a9bca){_0x2869b3=_0x2869b3-0x153;let _0x1ee648=a358_0x1ee6[_0x2869b3];return _0x1ee648;};const a358_0x295702=a358_0x5e38;'use strict';const _=require(a358_0x295702(0x18a)),qs=require(a358_0x295702(0x15d)),logger=require(a358_0x295702(0x182))(a358_0x295702(0x161)),{db}=require(a358_0x295702(0x17a)),{Op}=require(a358_0x295702(0x16e));function respondWithResult(_0x32bc25,_0x48bc8b){return _0x48bc8b=_0x48bc8b||0xc8,function(_0x24cf65){const _0x41d2e4=a358_0x5e38;if(_0x24cf65)return _0x32bc25[_0x41d2e4(0x177)](_0x48bc8b)[_0x41d2e4(0x178)](_0x24cf65);};}function respondWithFilteredResult(_0x3c7780,_0xd60713){return function(_0x100eec){const _0xce1d0f=a358_0x5e38;if(_0x100eec){const _0x3fdd45=_0x100eec[_0xce1d0f(0x160)],_0x37f6c5=_0xd60713['offset'];let _0x55464f=_0xd60713[_0xce1d0f(0x18c)]+_0xd60713[_0xce1d0f(0x155)],_0x15083d;return _0x55464f>=_0x3fdd45?(_0x55464f=_0x3fdd45,_0x15083d=0xc8):_0x15083d=0xce,_0x3c7780['status'](_0x15083d),_0x3c7780['set'](_0xce1d0f(0x18b),_0x37f6c5+'-'+_0x55464f+'/'+_0x3fdd45)[_0xce1d0f(0x178)](_0x100eec);}return null;};}function saveUpdates(_0x275cb1){return function(_0x361d3b){const _0x273c26=a358_0x5e38;if(_0x361d3b)return _0x361d3b['update'](_0x275cb1)[_0x273c26(0x17c)](function(_0x2b236e){return _0x2b236e;});return null;};}function removeEntity(_0x2cc546){return function(_0x481760){const _0x50e4e5=a358_0x5e38;if(_0x481760)return _0x481760[_0x50e4e5(0x163)]()[_0x50e4e5(0x17c)](function(){const _0x356f80=_0x50e4e5;_0x2cc546[_0x356f80(0x177)](0xcc)[_0x356f80(0x170)]();});};}function handleEntityNotFound(_0x2f05e4){return function(_0x26beae){const _0xffca72=a358_0x5e38;return!_0x26beae&&_0x2f05e4[_0xffca72(0x159)](0x194),_0x26beae;};}function handleError(_0x374d64,_0x336ac6){return _0x336ac6=_0x336ac6||0x1f4,function(_0x3b764c){const _0x3e8a6e=a358_0x5e38;logger[_0x3e8a6e(0x157)](_0x3b764c['stack']),_0x3b764c['name']&&delete _0x3b764c['name'],_0x374d64[_0x3e8a6e(0x177)](_0x336ac6)[_0x3e8a6e(0x15a)](_0x3b764c);};}exports[a358_0x295702(0x162)]=function(_0x1874de,_0x4a91a7){const _0x5f0fed=a358_0x295702;let _0x4ce809={};const _0x35814e={},_0x5db68e={'count':0x0,'rows':[]},_0xaf480=_[_0x5f0fed(0x15c)](db[_0x5f0fed(0x16c)][_0x5f0fed(0x16f)],function(_0x12f395){const _0x41561b=_0x5f0fed;return{'name':_0x12f395[_0x41561b(0x187)],'type':_0x12f395[_0x41561b(0x164)][_0x41561b(0x175)]};});_0x35814e[_0x5f0fed(0x180)]=_[_0x5f0fed(0x15c)](_0xaf480,'name'),_0x35814e[_0x5f0fed(0x188)]=_[_0x5f0fed(0x154)](_0x1874de[_0x5f0fed(0x188)]),_0x35814e[_0x5f0fed(0x169)]=_[_0x5f0fed(0x16b)](_0x35814e[_0x5f0fed(0x180)],_0x35814e['query']),_0x4ce809[_0x5f0fed(0x181)]=_[_0x5f0fed(0x16b)](_0x35814e['model'],qs[_0x5f0fed(0x153)](_0x1874de['query'][_0x5f0fed(0x153)])),_0x4ce809['attributes']=_0x4ce809[_0x5f0fed(0x181)][_0x5f0fed(0x17f)]?_0x4ce809[_0x5f0fed(0x181)]:_0x35814e[_0x5f0fed(0x180)];typeof _0x1874de[_0x5f0fed(0x188)][_0x5f0fed(0x16a)]===_0x5f0fed(0x166)&&(_0x4ce809['limit']=qs[_0x5f0fed(0x155)](_0x1874de['query']['limit']),_0x4ce809[_0x5f0fed(0x18c)]=qs[_0x5f0fed(0x18c)](_0x1874de[_0x5f0fed(0x188)][_0x5f0fed(0x18c)]));_0x4ce809['order']=qs[_0x5f0fed(0x184)](_0x1874de[_0x5f0fed(0x188)][_0x5f0fed(0x184)]),_0x4ce809[_0x5f0fed(0x183)]=qs['filters'](_[_0x5f0fed(0x158)](_0x1874de['query'],_0x35814e[_0x5f0fed(0x169)]),_0xaf480);_0x1874de['query'][_0x5f0fed(0x167)]&&(_0x4ce809[_0x5f0fed(0x183)]=_[_0x5f0fed(0x16d)](_0x4ce809['where'],{[Op['or']]:_[_0x5f0fed(0x15c)](_0xaf480,function(_0x1052e3){const _0x26e67c=_0x5f0fed;if(_0x1052e3[_0x26e67c(0x164)]!=='VIRTUAL'){const _0x1940fb={};return _0x1940fb[_0x1052e3[_0x26e67c(0x173)]]={[Op[_0x26e67c(0x17e)]]:'%'+_0x1874de['query']['filter']+'%'},_0x1940fb;}})}));_0x4ce809=_['merge']({},_0x4ce809,_0x1874de[_0x5f0fed(0x156)]);const _0x44b442={'where':_0x4ce809[_0x5f0fed(0x183)]};return db[_0x5f0fed(0x16c)]['count'](_0x44b442)[_0x5f0fed(0x17c)](function(_0x3e0cb2){const _0x4a69c2=_0x5f0fed;return _0x5db68e[_0x4a69c2(0x160)]=_0x3e0cb2,_0x1874de[_0x4a69c2(0x188)][_0x4a69c2(0x185)]&&(_0x4ce809['include']=[{'all':!![]}]),db[_0x4a69c2(0x16c)][_0x4a69c2(0x171)](_0x4ce809);})[_0x5f0fed(0x17c)](function(_0x5273d0){const _0x73996d=_0x5f0fed;return _0x5db68e[_0x73996d(0x168)]=_0x5273d0,_0x5db68e;})[_0x5f0fed(0x17c)](respondWithFilteredResult(_0x4a91a7,_0x4ce809))[_0x5f0fed(0x15b)](handleError(_0x4a91a7,null));},exports[a358_0x295702(0x15f)]=function(_0x54dd61,_0x99005){const _0x35025e=a358_0x295702;let _0xec57da={'raw':![],'where':{'id':_0x54dd61['params']['id']}};const _0x40187c={};return _0x40187c['model']=_[_0x35025e(0x154)](db[_0x35025e(0x16c)][_0x35025e(0x16f)]),_0x40187c['query']=_[_0x35025e(0x154)](_0x54dd61[_0x35025e(0x188)]),_0x40187c[_0x35025e(0x169)]=_['intersection'](_0x40187c[_0x35025e(0x180)],_0x40187c[_0x35025e(0x188)]),_0xec57da['attributes']=_[_0x35025e(0x16b)](_0x40187c[_0x35025e(0x180)],qs[_0x35025e(0x153)](_0x54dd61['query'][_0x35025e(0x153)])),_0xec57da['attributes']=_0xec57da[_0x35025e(0x181)][_0x35025e(0x17f)]?_0xec57da['attributes']:_0x40187c[_0x35025e(0x180)],_0x54dd61[_0x35025e(0x188)]['includeAll']&&(_0xec57da['include']=[{'all':!![]}]),_0xec57da=_[_0x35025e(0x16d)]({},_0xec57da,_0x54dd61[_0x35025e(0x156)]),db[_0x35025e(0x16c)][_0x35025e(0x17d)](_0xec57da)[_0x35025e(0x17c)](handleEntityNotFound(_0x99005,null))['then'](respondWithResult(_0x99005,null))[_0x35025e(0x15b)](handleError(_0x99005,null));},exports[a358_0x295702(0x172)]=function(_0x31233c,_0x3582da){const _0x345415=a358_0x295702;return db['ServicenowConfiguration'][_0x345415(0x172)](_0x31233c['body'],{})['then'](respondWithResult(_0x3582da,0xc9))['catch'](handleError(_0x3582da,null));},exports[a358_0x295702(0x15e)]=function(_0x48e3bb,_0x4f1d6b){const _0x284b63=a358_0x295702;return _0x48e3bb[_0x284b63(0x189)]['id']&&delete _0x48e3bb[_0x284b63(0x189)]['id'],db[_0x284b63(0x16c)]['findOne']({'where':{'id':_0x48e3bb[_0x284b63(0x165)]['id']}})[_0x284b63(0x17c)](handleEntityNotFound(_0x4f1d6b,null))[_0x284b63(0x17c)](saveUpdates(_0x48e3bb[_0x284b63(0x189)],null))['then'](respondWithResult(_0x4f1d6b,null))[_0x284b63(0x15b)](handleError(_0x4f1d6b,null));},exports[a358_0x295702(0x163)]=function(_0xcf6e3b,_0x5bade8){const _0x28cdda=a358_0x295702;return db[_0x28cdda(0x16c)][_0x28cdda(0x17d)]({'where':{'id':_0xcf6e3b['params']['id']}})[_0x28cdda(0x17c)](handleEntityNotFound(_0x5bade8,null))[_0x28cdda(0x17c)](removeEntity(_0x5bade8,null))['catch'](handleError(_0x5bade8,null));},exports[a358_0x295702(0x174)]=function(_0x17c2f4,_0x3a122b){const _0x1e08e7=a358_0x295702;let _0x156abc={};const _0x2e9053={};let _0x4ae014,_0x4d3ab7;return db[_0x1e08e7(0x16c)][_0x1e08e7(0x17d)]({'where':{'id':_0x17c2f4[_0x1e08e7(0x165)]['id']}})[_0x1e08e7(0x17c)](handleEntityNotFound(_0x3a122b,null))[_0x1e08e7(0x17c)](function(_0x3fb52c){const _0x411ec3=_0x1e08e7;if(_0x3fb52c)return _0x4ae014=_0x3fb52c,_0x2e9053[_0x411ec3(0x180)]=_[_0x411ec3(0x154)](db['ServicenowField'][_0x411ec3(0x16f)]),_0x2e9053['query']=_[_0x411ec3(0x154)](_0x17c2f4[_0x411ec3(0x188)]),_0x2e9053['filters']=_['intersection'](_0x2e9053[_0x411ec3(0x180)],_0x2e9053[_0x411ec3(0x188)]),_0x156abc[_0x411ec3(0x181)]=_[_0x411ec3(0x16b)](_0x2e9053['model'],qs[_0x411ec3(0x153)](_0x17c2f4[_0x411ec3(0x188)]['fields'])),_0x156abc[_0x411ec3(0x181)]=_0x156abc[_0x411ec3(0x181)][_0x411ec3(0x17f)]?_0x156abc[_0x411ec3(0x181)]:_0x2e9053[_0x411ec3(0x180)],_0x156abc[_0x411ec3(0x17b)]=qs[_0x411ec3(0x184)](_0x17c2f4['query']['sort']),_0x156abc[_0x411ec3(0x183)]=qs[_0x411ec3(0x169)](_[_0x411ec3(0x158)](_0x17c2f4[_0x411ec3(0x188)],_0x2e9053[_0x411ec3(0x169)])),_0x17c2f4['query']['filter']&&(_0x156abc[_0x411ec3(0x183)]=_[_0x411ec3(0x16d)](_0x156abc[_0x411ec3(0x183)],{[Op['or']]:_[_0x411ec3(0x15c)](_0x156abc[_0x411ec3(0x181)],function(_0x4b11d8){const _0x31da56=_0x411ec3,_0x8207a={};return _0x8207a[_0x4b11d8]={[Op['like']]:'%'+_0x17c2f4['query'][_0x31da56(0x167)]+'%'},_0x8207a;})})),_0x156abc=_['merge']({},_0x156abc,_0x17c2f4[_0x411ec3(0x156)]),_0x4ae014[_0x411ec3(0x174)](_0x156abc);})[_0x1e08e7(0x17c)](function(_0xde83b9){const _0x43f79b=_0x1e08e7;if(_0xde83b9)return _0x4d3ab7=_0xde83b9['length'],typeof _0x17c2f4['query'][_0x43f79b(0x16a)]===_0x43f79b(0x166)&&(_0x156abc[_0x43f79b(0x155)]=qs[_0x43f79b(0x155)](_0x17c2f4[_0x43f79b(0x188)][_0x43f79b(0x155)]),_0x156abc[_0x43f79b(0x18c)]=qs[_0x43f79b(0x18c)](_0x17c2f4[_0x43f79b(0x188)][_0x43f79b(0x18c)])),_0x4ae014[_0x43f79b(0x174)](_0x156abc);})[_0x1e08e7(0x17c)](function(_0x28e918){if(_0x28e918)return _0x28e918?{'count':_0x4d3ab7,'rows':_0x28e918}:null;})[_0x1e08e7(0x17c)](respondWithResult(_0x3a122b,null))[_0x1e08e7(0x15b)](handleError(_0x3a122b,null));},exports[a358_0x295702(0x176)]=function(_0x316367,_0x5dc83b){const _0x54ff76=a358_0x295702;let _0x5d7493={};const _0x2304af={};let _0x32873c,_0x191cf4;return db[_0x54ff76(0x16c)]['findOne']({'where':{'id':_0x316367[_0x54ff76(0x165)]['id']}})[_0x54ff76(0x17c)](handleEntityNotFound(_0x5dc83b,null))[_0x54ff76(0x17c)](function(_0x10d808){const _0x9e4b06=_0x54ff76;if(_0x10d808)return _0x32873c=_0x10d808,_0x2304af[_0x9e4b06(0x180)]=_['keys'](db[_0x9e4b06(0x179)][_0x9e4b06(0x16f)]),_0x2304af[_0x9e4b06(0x188)]=_[_0x9e4b06(0x154)](_0x316367[_0x9e4b06(0x188)]),_0x2304af[_0x9e4b06(0x169)]=_[_0x9e4b06(0x16b)](_0x2304af[_0x9e4b06(0x180)],_0x2304af['query']),_0x5d7493[_0x9e4b06(0x181)]=_['intersection'](_0x2304af[_0x9e4b06(0x180)],qs[_0x9e4b06(0x153)](_0x316367[_0x9e4b06(0x188)][_0x9e4b06(0x153)])),_0x5d7493[_0x9e4b06(0x181)]=_0x5d7493['attributes'][_0x9e4b06(0x17f)]?_0x5d7493[_0x9e4b06(0x181)]:_0x2304af['model'],_0x5d7493[_0x9e4b06(0x17b)]=qs[_0x9e4b06(0x184)](_0x316367[_0x9e4b06(0x188)]['sort']),_0x5d7493['where']=qs[_0x9e4b06(0x169)](_[_0x9e4b06(0x158)](_0x316367[_0x9e4b06(0x188)],_0x2304af[_0x9e4b06(0x169)])),_0x316367[_0x9e4b06(0x188)][_0x9e4b06(0x167)]&&(_0x5d7493[_0x9e4b06(0x183)]=_[_0x9e4b06(0x16d)](_0x5d7493[_0x9e4b06(0x183)],{[Op['or']]:_[_0x9e4b06(0x15c)](_0x5d7493[_0x9e4b06(0x181)],function(_0x50ae9c){const _0x2fd181=_0x9e4b06,_0x292926={};return _0x292926[_0x50ae9c]={[Op[_0x2fd181(0x17e)]]:'%'+_0x316367['query'][_0x2fd181(0x167)]+'%'},_0x292926;})})),_0x5d7493=_[_0x9e4b06(0x16d)]({},_0x5d7493,_0x316367[_0x9e4b06(0x156)]),_0x32873c[_0x9e4b06(0x176)](_0x5d7493);})[_0x54ff76(0x17c)](function(_0xad0f59){const _0xae2c63=_0x54ff76;if(_0xad0f59)return _0x191cf4=_0xad0f59[_0xae2c63(0x17f)],typeof _0x316367[_0xae2c63(0x188)]['nolimit']==='undefined'&&(_0x5d7493['limit']=qs[_0xae2c63(0x155)](_0x316367[_0xae2c63(0x188)][_0xae2c63(0x155)]),_0x5d7493[_0xae2c63(0x18c)]=qs[_0xae2c63(0x18c)](_0x316367[_0xae2c63(0x188)][_0xae2c63(0x18c)])),_0x32873c[_0xae2c63(0x176)](_0x5d7493);})[_0x54ff76(0x17c)](function(_0xcd586d){if(_0xcd586d)return _0xcd586d?{'count':_0x191cf4,'rows':_0xcd586d}:null;})[_0x54ff76(0x17c)](respondWithResult(_0x5dc83b,null))[_0x54ff76(0x15b)](handleError(_0x5dc83b,null));},exports[a358_0x295702(0x186)]=function(_0x162822,_0x331cc6){const _0x49f15c=a358_0x295702;let _0x4985cd={};const _0x2d68da={};let _0x1e7270,_0xbed813;return db[_0x49f15c(0x16c)]['findOne']({'where':{'id':_0x162822['params']['id']}})[_0x49f15c(0x17c)](handleEntityNotFound(_0x331cc6,null))['then'](function(_0x306775){const _0x57bcd9=_0x49f15c;if(_0x306775)return _0x1e7270=_0x306775,_0x2d68da[_0x57bcd9(0x180)]=_[_0x57bcd9(0x154)](db['ServicenowField']['rawAttributes']),_0x2d68da[_0x57bcd9(0x188)]=_[_0x57bcd9(0x154)](_0x162822[_0x57bcd9(0x188)]),_0x2d68da['filters']=_['intersection'](_0x2d68da['model'],_0x2d68da[_0x57bcd9(0x188)]),_0x4985cd['attributes']=_['intersection'](_0x2d68da[_0x57bcd9(0x180)],qs[_0x57bcd9(0x153)](_0x162822[_0x57bcd9(0x188)][_0x57bcd9(0x153)])),_0x4985cd['attributes']=_0x4985cd[_0x57bcd9(0x181)][_0x57bcd9(0x17f)]?_0x4985cd['attributes']:_0x2d68da['model'],_0x4985cd['order']=qs[_0x57bcd9(0x184)](_0x162822[_0x57bcd9(0x188)][_0x57bcd9(0x184)]),_0x4985cd[_0x57bcd9(0x183)]=qs[_0x57bcd9(0x169)](_[_0x57bcd9(0x158)](_0x162822[_0x57bcd9(0x188)],_0x2d68da[_0x57bcd9(0x169)])),_0x162822[_0x57bcd9(0x188)][_0x57bcd9(0x167)]&&(_0x4985cd[_0x57bcd9(0x183)]=_[_0x57bcd9(0x16d)](_0x4985cd[_0x57bcd9(0x183)],{[Op['or']]:_['map'](_0x4985cd[_0x57bcd9(0x181)],function(_0x52faa9){const _0x327fb1=_0x57bcd9,_0x650001={};return _0x650001[_0x52faa9]={[Op['like']]:'%'+_0x162822[_0x327fb1(0x188)]['filter']+'%'},_0x650001;})})),_0x4985cd=_['merge']({},_0x4985cd,_0x162822[_0x57bcd9(0x156)]),_0x1e7270['getDescriptions'](_0x4985cd);})[_0x49f15c(0x17c)](function(_0x10b965){const _0x2b6fc6=_0x49f15c;if(_0x10b965)return _0xbed813=_0x10b965['length'],typeof _0x162822['query']['nolimit']===_0x2b6fc6(0x166)&&(_0x4985cd[_0x2b6fc6(0x155)]=qs[_0x2b6fc6(0x155)](_0x162822[_0x2b6fc6(0x188)]['limit']),_0x4985cd[_0x2b6fc6(0x18c)]=qs['offset'](_0x162822[_0x2b6fc6(0x188)][_0x2b6fc6(0x18c)])),_0x1e7270[_0x2b6fc6(0x186)](_0x4985cd);})[_0x49f15c(0x17c)](function(_0x8a68a2){if(_0x8a68a2)return _0x8a68a2?{'count':_0xbed813,'rows':_0x8a68a2}:null;})[_0x49f15c(0x17c)](respondWithResult(_0x331cc6,null))['catch'](handleError(_0x331cc6,null));}; \ No newline at end of file diff --git a/server/api/intServicenowConfiguration/intServicenowConfiguration.model.js b/server/api/intServicenowConfiguration/intServicenowConfiguration.model.js index 95556fb..ac49a0d 100644 --- a/server/api/intServicenowConfiguration/intServicenowConfiguration.model.js +++ b/server/api/intServicenowConfiguration/intServicenowConfiguration.model.js @@ -1 +1 @@ -const a300_0x5697=['define','exports'];(function(_0x5ced4c,_0x569794){const _0x5228e4=function(_0x333cea){while(--_0x333cea){_0x5ced4c['push'](_0x5ced4c['shift']());}};_0x5228e4(++_0x569794);}(a300_0x5697,0x160));const a300_0x5228=function(_0x5ced4c,_0x569794){_0x5ced4c=_0x5ced4c-0x0;let _0x5228e4=a300_0x5697[_0x5ced4c];return _0x5228e4;};const _0x52e533=a300_0x5228;'use strict';const attributes=require('./intServicenowConfiguration.attributes');module[_0x52e533('0x1')]=function(_0x333cea){const _0x310818=_0x52e533,_0x3faa71=_0x333cea[_0x310818('0x0')]('ServicenowConfiguration',attributes,{'tableName':'int_servicenow_configurations','paranoid':![],'indexes':[],'timestamps':!![]});return _0x3faa71;}; \ No newline at end of file +const a359_0x2df2=['./intServicenowConfiguration.attributes','init','exports','./intServicenowConfiguration.options','function'];(function(_0x1d5e1f,_0x413fe2){const _0x2df2ef=function(_0x3c7a41){while(--_0x3c7a41){_0x1d5e1f['push'](_0x1d5e1f['shift']());}};_0x2df2ef(++_0x413fe2);}(a359_0x2df2,0x12d));const a359_0x3c7a=function(_0x1d5e1f,_0x413fe2){_0x1d5e1f=_0x1d5e1f-0xd1;let _0x2df2ef=a359_0x2df2[_0x1d5e1f];return _0x2df2ef;};const a359_0xca5537=a359_0x3c7a;'use strict';const {Model}=require('sequelize'),{attributes}=require(a359_0xca5537(0xd5)),{options}=require(a359_0xca5537(0xd3));class ServicenowConfiguration extends Model{}function init(_0x1b9810,_0x5d1fe3){const _0xb390f4=a359_0xca5537,_0x274bd1=options(_0x1b9810),_0x56fb08=typeof _0x5d1fe3===_0xb390f4(0xd4)?_0x5d1fe3(_0x274bd1):_0x274bd1;return ServicenowConfiguration[_0xb390f4(0xd1)](attributes,_0x56fb08),ServicenowConfiguration;}module[a359_0xca5537(0xd2)]['ServicenowConfiguration']=ServicenowConfiguration,module['exports'][a359_0xca5537(0xd1)]=init; \ No newline at end of file diff --git a/server/api/intServicenowConfiguration/intServicenowConfiguration.options.js b/server/api/intServicenowConfiguration/intServicenowConfiguration.options.js new file mode 100644 index 0000000..38599e0 --- /dev/null +++ b/server/api/intServicenowConfiguration/intServicenowConfiguration.options.js @@ -0,0 +1 @@ +var a360_0x44b1=['options','exports'];(function(_0xf627e9,_0x539d3c){var _0x44b142=function(_0x54144e){while(--_0x54144e){_0xf627e9['push'](_0xf627e9['shift']());}};_0x44b142(++_0x539d3c);}(a360_0x44b1,0x67));var a360_0x5414=function(_0xf627e9,_0x539d3c){_0xf627e9=_0xf627e9-0x123;var _0x44b142=a360_0x44b1[_0xf627e9];return _0x44b142;};var a360_0x4c2e64=a360_0x5414;function options(_0x5ced60){return{'sequelize':_0x5ced60,'tableName':'int_servicenow_configurations','paranoid':![],'indexes':[],'timestamps':!![]};}module[a360_0x4c2e64(0x123)][a360_0x4c2e64(0x124)]=options; \ No newline at end of file diff --git a/server/api/intServicenowField/index.js b/server/api/intServicenowField/index.js index 699a426..b9ae3f5 100644 --- a/server/api/intServicenowField/index.js +++ b/server/api/intServicenowField/index.js @@ -1 +1 @@ -const a301_0x23e8=['express','index','destroy','delete','isAuthenticated','put','/:id','./intServicenowField.controller','post','Router','update','get'];(function(_0x217562,_0x23e8ca){const _0x2d1917=function(_0x403bb9){while(--_0x403bb9){_0x217562['push'](_0x217562['shift']());}};_0x2d1917(++_0x23e8ca);}(a301_0x23e8,0x19e));const a301_0x2d19=function(_0x217562,_0x23e8ca){_0x217562=_0x217562-0x0;let _0x2d1917=a301_0x23e8[_0x217562];return _0x2d1917;};const _0xb40eaa=a301_0x2d19;'use strict';const express=require(_0xb40eaa('0x6')),router=express[_0xb40eaa('0x3')](),auth=require('../../components/auth/service'),controller=require(_0xb40eaa('0x1'));router[_0xb40eaa('0x5')]('/',auth[_0xb40eaa('0xa')](),controller[_0xb40eaa('0x7')]),router[_0xb40eaa('0x5')](_0xb40eaa('0x0'),auth[_0xb40eaa('0xa')](),controller['show']),router[_0xb40eaa('0x2')]('/',auth['isAuthenticated'](),controller['create']),router[_0xb40eaa('0xb')](_0xb40eaa('0x0'),auth[_0xb40eaa('0xa')](),controller[_0xb40eaa('0x4')]),router[_0xb40eaa('0x9')]('/:id',auth[_0xb40eaa('0xa')](),controller[_0xb40eaa('0x8')]),module['exports']=router; \ No newline at end of file +const a361_0x341a=['Router','put','delete','./intServicenowField.controller','get','update','post','show','/:id','exports','index','express','../../components/auth/service','isAuthenticated'];(function(_0x21b555,_0x554b2d){const _0x341a4a=function(_0x28a317){while(--_0x28a317){_0x21b555['push'](_0x21b555['shift']());}};_0x341a4a(++_0x554b2d);}(a361_0x341a,0x6a));const a361_0x28a3=function(_0x21b555,_0x554b2d){_0x21b555=_0x21b555-0x1ed;let _0x341a4a=a361_0x341a[_0x21b555];return _0x341a4a;};const a361_0x27c50b=a361_0x28a3;'use strict';const express=require(a361_0x27c50b(0x1f0)),router=express[a361_0x27c50b(0x1f3)](),auth=require(a361_0x27c50b(0x1f1)),controller=require(a361_0x27c50b(0x1f6));router[a361_0x27c50b(0x1f7)]('/',auth[a361_0x27c50b(0x1f2)](),controller[a361_0x27c50b(0x1ef)]),router[a361_0x27c50b(0x1f7)](a361_0x27c50b(0x1ed),auth['isAuthenticated'](),controller[a361_0x27c50b(0x1fa)]),router[a361_0x27c50b(0x1f9)]('/',auth['isAuthenticated'](),controller['create']),router[a361_0x27c50b(0x1f4)](a361_0x27c50b(0x1ed),auth[a361_0x27c50b(0x1f2)](),controller[a361_0x27c50b(0x1f8)]),router[a361_0x27c50b(0x1f5)](a361_0x27c50b(0x1ed),auth['isAuthenticated'](),controller['destroy']),module[a361_0x27c50b(0x1ee)]=router; \ No newline at end of file diff --git a/server/api/intServicenowField/intServicenowField.attributes.js b/server/api/intServicenowField/intServicenowField.attributes.js index efdaeb1..334e4b3 100644 --- a/server/api/intServicenowField/intServicenowField.attributes.js +++ b/server/api/intServicenowField/intServicenowField.attributes.js @@ -1 +1 @@ -const a302_0x29b9=['STRING','sequelize','customVariable','variable','string','ENUM','exports','keyValue'];(function(_0x509c8a,_0x29b993){const _0x58ac93=function(_0x57b179){while(--_0x57b179){_0x509c8a['push'](_0x509c8a['shift']());}};_0x58ac93(++_0x29b993);}(a302_0x29b9,0x1cf));const a302_0x58ac=function(_0x509c8a,_0x29b993){_0x509c8a=_0x509c8a-0x0;let _0x58ac93=a302_0x29b9[_0x509c8a];return _0x58ac93;};const _0x1f99d3=a302_0x58ac;'use strict';const Sequelize=require(_0x1f99d3('0x2'));module[_0x1f99d3('0x7')]={'type':{'type':Sequelize[_0x1f99d3('0x6')]('string',_0x1f99d3('0x4'),_0x1f99d3('0x3'),_0x1f99d3('0x0')),'defaultValue':'string'},'content':{'type':Sequelize[_0x1f99d3('0x1')]},'key':{'type':Sequelize[_0x1f99d3('0x1')]},'keyType':{'type':Sequelize['ENUM'](_0x1f99d3('0x5'),_0x1f99d3('0x4'),_0x1f99d3('0x3'))},'keyContent':{'type':Sequelize[_0x1f99d3('0x1')]},'idField':{'type':Sequelize[_0x1f99d3('0x1')]},'nameField':{'type':Sequelize[_0x1f99d3('0x1')]},'customField':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'variableName':{'type':Sequelize[_0x1f99d3('0x1')]}}; \ No newline at end of file +const a362_0x46e7=['string','ENUM','customVariable','sequelize','attributes','variable','STRING'];(function(_0x1ad5b4,_0x3323aa){const _0x46e76f=function(_0x1fea22){while(--_0x1fea22){_0x1ad5b4['push'](_0x1ad5b4['shift']());}};_0x46e76f(++_0x3323aa);}(a362_0x46e7,0xd3));const a362_0x1fea=function(_0x1ad5b4,_0x3323aa){_0x1ad5b4=_0x1ad5b4-0x1a6;let _0x46e76f=a362_0x46e7[_0x1ad5b4];return _0x46e76f;};const a362_0x5a0bb7=a362_0x1fea;'use strict';const {DataTypes}=require(a362_0x5a0bb7(0x1a8)),attributes={'type':{'type':DataTypes[a362_0x5a0bb7(0x1a6)]('string',a362_0x5a0bb7(0x1aa),a362_0x5a0bb7(0x1a7),'keyValue'),'defaultValue':a362_0x5a0bb7(0x1ac)},'content':{'type':DataTypes[a362_0x5a0bb7(0x1ab)]},'key':{'type':DataTypes[a362_0x5a0bb7(0x1ab)]},'keyType':{'type':DataTypes['ENUM'](a362_0x5a0bb7(0x1ac),a362_0x5a0bb7(0x1aa),a362_0x5a0bb7(0x1a7))},'keyContent':{'type':DataTypes['STRING']},'idField':{'type':DataTypes['STRING']},'nameField':{'type':DataTypes[a362_0x5a0bb7(0x1ab)]},'customField':{'type':DataTypes['BOOLEAN'],'defaultValue':!![]},'variableName':{'type':DataTypes[a362_0x5a0bb7(0x1ab)]}};module['exports'][a362_0x5a0bb7(0x1a9)]=attributes; \ No newline at end of file diff --git a/server/api/intServicenowField/intServicenowField.controller.js b/server/api/intServicenowField/intServicenowField.controller.js index 1f01d5a..05dcfb3 100644 --- a/server/api/intServicenowField/intServicenowField.controller.js +++ b/server/api/intServicenowField/intServicenowField.controller.js @@ -1 +1 @@ -const a303_0xc083=['stack','type','fields','ServicenowField','catch','send','params','api','lodash','show','attributes','VIRTUAL','rawAttributes','model','../../components/parsers/qs','json','destroy','keys','status','order','set','findOne','error','sort','findAll','body','then','query','../../config/logger','length','where','offset','index','like','create','rows','Content-Range','sequelize','name','merge','nolimit','options','intersection','include','includeAll','filters','pick','map','count','limit','update','filter'];(function(_0x42dbee,_0xc083ed){const _0x4b4ffc=function(_0x39759d){while(--_0x39759d){_0x42dbee['push'](_0x42dbee['shift']());}};_0x4b4ffc(++_0xc083ed);}(a303_0xc083,0x15b));const a303_0x4b4f=function(_0x42dbee,_0xc083ed){_0x42dbee=_0x42dbee-0x0;let _0x4b4ffc=a303_0xc083[_0x42dbee];return _0x4b4ffc;};const _0x554f25=a303_0x4b4f;'use strict';const _=require(_0x554f25('0x19')),qs=require(_0x554f25('0x1f')),logger=require(_0x554f25('0x2d'))(_0x554f25('0x18')),db=require('../../mysqldb')['db'],{Op}=require(_0x554f25('0x2'));function respondWithResult(_0x39759d,_0x5d05cf){return _0x5d05cf=_0x5d05cf||0xc8,function(_0x3cd05f){const _0x2d14d1=a303_0x4b4f;if(_0x3cd05f)return _0x39759d[_0x2d14d1('0x23')](_0x5d05cf)[_0x2d14d1('0x20')](_0x3cd05f);};}function respondWithFilteredResult(_0x434c2d,_0x38a0c2){return function(_0x2f41c9){const _0x2c4ec2=a303_0x4b4f;if(_0x2f41c9){const _0x1c4fd3=_0x2f41c9[_0x2c4ec2('0xd')],_0x27c7c2=_0x38a0c2[_0x2c4ec2('0x30')];let _0x11fec3=_0x38a0c2[_0x2c4ec2('0x30')]+_0x38a0c2[_0x2c4ec2('0xe')],_0x1f100d;return _0x11fec3>=_0x1c4fd3?(_0x11fec3=_0x1c4fd3,_0x1f100d=0xc8):_0x1f100d=0xce,_0x434c2d[_0x2c4ec2('0x23')](_0x1f100d),_0x434c2d[_0x2c4ec2('0x25')](_0x2c4ec2('0x1'),_0x27c7c2+'-'+_0x11fec3+'/'+_0x1c4fd3)[_0x2c4ec2('0x20')](_0x2f41c9);}return null;};}function saveUpdates(_0x574d1e){return function(_0x120b9c){const _0x1ba58d=a303_0x4b4f;if(_0x120b9c)return _0x120b9c[_0x1ba58d('0xf')](_0x574d1e)['then'](function(_0x48b9ea){return _0x48b9ea;});return null;};}function removeEntity(_0x9e393c){return function(_0x4db530){const _0x25036c=a303_0x4b4f;if(_0x4db530)return _0x4db530[_0x25036c('0x21')]()['then'](function(){_0x9e393c['status'](0xcc)['end']();});};}function handleEntityNotFound(_0x42d21a){return function(_0x231431){return!_0x231431&&_0x42d21a['sendStatus'](0x194),_0x231431;};}function handleError(_0x2dd9e2,_0xca6264){return _0xca6264=_0xca6264||0x1f4,function(_0x497611){const _0x3a2105=a303_0x4b4f;logger[_0x3a2105('0x27')](_0x497611[_0x3a2105('0x11')]),_0x497611[_0x3a2105('0x3')]&&delete _0x497611['name'],_0x2dd9e2[_0x3a2105('0x23')](_0xca6264)[_0x3a2105('0x16')](_0x497611);};}exports[_0x554f25('0x31')]=function(_0x313f3d,_0x2e4e55){const _0x4fd997=_0x554f25;let _0x46cbee={};const _0x5ea38d={},_0x5cb235={'count':0x0,'rows':[]},_0x20bff9=_[_0x4fd997('0xc')](db[_0x4fd997('0x14')][_0x4fd997('0x1d')],function(_0x212558){const _0x25501b=_0x4fd997;return{'name':_0x212558['fieldName'],'type':_0x212558[_0x25501b('0x12')]['key']};});_0x5ea38d['model']=_[_0x4fd997('0xc')](_0x20bff9,'name'),_0x5ea38d[_0x4fd997('0x2c')]=_[_0x4fd997('0x22')](_0x313f3d[_0x4fd997('0x2c')]),_0x5ea38d[_0x4fd997('0xa')]=_['intersection'](_0x5ea38d[_0x4fd997('0x1e')],_0x5ea38d['query']),_0x46cbee[_0x4fd997('0x1b')]=_['intersection'](_0x5ea38d[_0x4fd997('0x1e')],qs[_0x4fd997('0x13')](_0x313f3d[_0x4fd997('0x2c')][_0x4fd997('0x13')])),_0x46cbee[_0x4fd997('0x1b')]=_0x46cbee[_0x4fd997('0x1b')][_0x4fd997('0x2e')]?_0x46cbee[_0x4fd997('0x1b')]:_0x5ea38d[_0x4fd997('0x1e')];typeof _0x313f3d[_0x4fd997('0x2c')][_0x4fd997('0x5')]==='undefined'&&(_0x46cbee[_0x4fd997('0xe')]=qs[_0x4fd997('0xe')](_0x313f3d[_0x4fd997('0x2c')][_0x4fd997('0xe')]),_0x46cbee[_0x4fd997('0x30')]=qs['offset'](_0x313f3d['query']['offset']));_0x46cbee[_0x4fd997('0x24')]=qs[_0x4fd997('0x28')](_0x313f3d[_0x4fd997('0x2c')][_0x4fd997('0x28')]),_0x46cbee[_0x4fd997('0x2f')]=qs[_0x4fd997('0xa')](_[_0x4fd997('0xb')](_0x313f3d[_0x4fd997('0x2c')],_0x5ea38d['filters']),_0x20bff9);_0x313f3d[_0x4fd997('0x2c')][_0x4fd997('0x10')]&&(_0x46cbee[_0x4fd997('0x2f')]=_['merge'](_0x46cbee[_0x4fd997('0x2f')],{[Op['or']]:_[_0x4fd997('0xc')](_0x20bff9,function(_0x2cf872){const _0xc7b3e7=_0x4fd997;if(_0x2cf872[_0xc7b3e7('0x12')]!==_0xc7b3e7('0x1c')){const _0x280e5b={};return _0x280e5b[_0x2cf872[_0xc7b3e7('0x3')]]={[Op[_0xc7b3e7('0x32')]]:'%'+_0x313f3d[_0xc7b3e7('0x2c')][_0xc7b3e7('0x10')]+'%'},_0x280e5b;}})}));_0x46cbee=_['merge']({},_0x46cbee,_0x313f3d[_0x4fd997('0x6')]);const _0x446ae5={'where':_0x46cbee[_0x4fd997('0x2f')]};return db['ServicenowField'][_0x4fd997('0xd')](_0x446ae5)[_0x4fd997('0x2b')](function(_0x4ff21b){const _0x3dd713=_0x4fd997;return _0x5cb235[_0x3dd713('0xd')]=_0x4ff21b,_0x313f3d[_0x3dd713('0x2c')][_0x3dd713('0x9')]&&(_0x46cbee['include']=[{'all':!![]}]),db[_0x3dd713('0x14')][_0x3dd713('0x29')](_0x46cbee);})[_0x4fd997('0x2b')](function(_0xf8543d){const _0x3f141f=_0x4fd997;return _0x5cb235[_0x3f141f('0x0')]=_0xf8543d,_0x5cb235;})['then'](respondWithFilteredResult(_0x2e4e55,_0x46cbee))[_0x4fd997('0x15')](handleError(_0x2e4e55,null));},exports[_0x554f25('0x1a')]=function(_0x3ad28d,_0x280f1c){const _0x2fb14f=_0x554f25;let _0x3bff32={'raw':!![],'where':{'id':_0x3ad28d[_0x2fb14f('0x17')]['id']}};const _0x1fc05d={};return _0x1fc05d[_0x2fb14f('0x1e')]=_['keys'](db[_0x2fb14f('0x14')][_0x2fb14f('0x1d')]),_0x1fc05d[_0x2fb14f('0x2c')]=_[_0x2fb14f('0x22')](_0x3ad28d[_0x2fb14f('0x2c')]),_0x1fc05d['filters']=_[_0x2fb14f('0x7')](_0x1fc05d[_0x2fb14f('0x1e')],_0x1fc05d['query']),_0x3bff32['attributes']=_[_0x2fb14f('0x7')](_0x1fc05d[_0x2fb14f('0x1e')],qs[_0x2fb14f('0x13')](_0x3ad28d['query'][_0x2fb14f('0x13')])),_0x3bff32['attributes']=_0x3bff32[_0x2fb14f('0x1b')][_0x2fb14f('0x2e')]?_0x3bff32[_0x2fb14f('0x1b')]:_0x1fc05d[_0x2fb14f('0x1e')],_0x3ad28d[_0x2fb14f('0x2c')]['includeAll']&&(_0x3bff32[_0x2fb14f('0x8')]=[{'all':!![]}]),_0x3bff32=_[_0x2fb14f('0x4')]({},_0x3bff32,_0x3ad28d[_0x2fb14f('0x6')]),db[_0x2fb14f('0x14')][_0x2fb14f('0x26')](_0x3bff32)[_0x2fb14f('0x2b')](handleEntityNotFound(_0x280f1c,null))['then'](respondWithResult(_0x280f1c,null))[_0x2fb14f('0x15')](handleError(_0x280f1c,null));},exports[_0x554f25('0x33')]=function(_0x1fb573,_0x5737b2){const _0x360943=_0x554f25;return db[_0x360943('0x14')]['create'](_0x1fb573[_0x360943('0x2a')],{})[_0x360943('0x2b')](respondWithResult(_0x5737b2,0xc9))[_0x360943('0x15')](handleError(_0x5737b2,null));},exports[_0x554f25('0xf')]=function(_0x43d9af,_0x15e787){const _0x2c1849=_0x554f25;return _0x43d9af[_0x2c1849('0x2a')]['id']&&delete _0x43d9af['body']['id'],db[_0x2c1849('0x14')]['findOne']({'where':{'id':_0x43d9af[_0x2c1849('0x17')]['id']}})[_0x2c1849('0x2b')](handleEntityNotFound(_0x15e787,null))[_0x2c1849('0x2b')](saveUpdates(_0x43d9af[_0x2c1849('0x2a')],null))[_0x2c1849('0x2b')](respondWithResult(_0x15e787,null))[_0x2c1849('0x15')](handleError(_0x15e787,null));},exports[_0x554f25('0x21')]=function(_0x561067,_0x494330){const _0x11e442=_0x554f25;return db[_0x11e442('0x14')]['findOne']({'where':{'id':_0x561067[_0x11e442('0x17')]['id']}})[_0x11e442('0x2b')](handleEntityNotFound(_0x494330,null))[_0x11e442('0x2b')](removeEntity(_0x494330,null))[_0x11e442('0x15')](handleError(_0x494330,null));}; \ No newline at end of file +const a363_0x1c17=['order','merge','attributes','../../mysqldb','end','fieldName','options','then','where','error','length','name','limit','status','findOne','model','query','type','filter','rows','offset','stack','set','params','sequelize','Content-Range','catch','show','keys','send','destroy','update','body','findAll','create','fields','json','map','filters','count','VIRTUAL','nolimit','intersection','undefined','index','lodash','ServicenowField','sort','includeAll','include'];(function(_0x3ab01f,_0x38f068){const _0x1c1786=function(_0x57ff47){while(--_0x57ff47){_0x3ab01f['push'](_0x3ab01f['shift']());}};_0x1c1786(++_0x38f068);}(a363_0x1c17,0x6c));const a363_0x57ff=function(_0x3ab01f,_0x38f068){_0x3ab01f=_0x3ab01f-0x1e6;let _0x1c1786=a363_0x1c17[_0x3ab01f];return _0x1c1786;};const a363_0x1d4f90=a363_0x57ff;'use strict';const _=require(a363_0x1d4f90(0x20b)),qs=require('../../components/parsers/qs'),logger=require('../../config/logger')('api'),{db}=require(a363_0x1d4f90(0x213)),{Op}=require(a363_0x1d4f90(0x1f6));function respondWithResult(_0x58e3a9,_0x146e5b){return _0x146e5b=_0x146e5b||0xc8,function(_0x253138){const _0x5ed8b4=a363_0x57ff;if(_0x253138)return _0x58e3a9[_0x5ed8b4(0x1eb)](_0x146e5b)[_0x5ed8b4(0x202)](_0x253138);};}function respondWithFilteredResult(_0x7b0822,_0x6df56){return function(_0x1948a4){const _0x17ba43=a363_0x57ff;if(_0x1948a4){const _0x5bcd8f=_0x1948a4[_0x17ba43(0x205)],_0x4d4550=_0x6df56[_0x17ba43(0x1f2)];let _0x55abf5=_0x6df56[_0x17ba43(0x1f2)]+_0x6df56['limit'],_0x2036c7;return _0x55abf5>=_0x5bcd8f?(_0x55abf5=_0x5bcd8f,_0x2036c7=0xc8):_0x2036c7=0xce,_0x7b0822[_0x17ba43(0x1eb)](_0x2036c7),_0x7b0822[_0x17ba43(0x1f4)](_0x17ba43(0x1f7),_0x4d4550+'-'+_0x55abf5+'/'+_0x5bcd8f)[_0x17ba43(0x202)](_0x1948a4);}return null;};}function saveUpdates(_0x6731a1){return function(_0x5dcb0d){const _0x234fdc=a363_0x57ff;if(_0x5dcb0d)return _0x5dcb0d[_0x234fdc(0x1fd)](_0x6731a1)['then'](function(_0x464444){return _0x464444;});return null;};}function removeEntity(_0xc6bcc3){return function(_0x40526f){const _0x1d8703=a363_0x57ff;if(_0x40526f)return _0x40526f[_0x1d8703(0x1fc)]()['then'](function(){const _0x52e1ee=_0x1d8703;_0xc6bcc3[_0x52e1ee(0x1eb)](0xcc)[_0x52e1ee(0x214)]();});};}function handleEntityNotFound(_0x3a1f8d){return function(_0x30fbf5){return!_0x30fbf5&&_0x3a1f8d['sendStatus'](0x194),_0x30fbf5;};}function handleError(_0x442610,_0x6e3c65){return _0x6e3c65=_0x6e3c65||0x1f4,function(_0x32915f){const _0x23f127=a363_0x57ff;logger[_0x23f127(0x1e7)](_0x32915f[_0x23f127(0x1f3)]),_0x32915f[_0x23f127(0x1e9)]&&delete _0x32915f['name'],_0x442610[_0x23f127(0x1eb)](_0x6e3c65)[_0x23f127(0x1fb)](_0x32915f);};}exports[a363_0x1d4f90(0x20a)]=function(_0x494cc2,_0x29d1b8){const _0x1280d5=a363_0x1d4f90;let _0x140ff4={};const _0x509fe6={},_0x3cbb4b={'count':0x0,'rows':[]},_0x5e5378=_['map'](db[_0x1280d5(0x20c)]['rawAttributes'],function(_0x569c20){const _0x52e826=_0x1280d5;return{'name':_0x569c20[_0x52e826(0x215)],'type':_0x569c20[_0x52e826(0x1ef)]['key']};});_0x509fe6['model']=_[_0x1280d5(0x203)](_0x5e5378,_0x1280d5(0x1e9)),_0x509fe6[_0x1280d5(0x1ee)]=_[_0x1280d5(0x1fa)](_0x494cc2[_0x1280d5(0x1ee)]),_0x509fe6[_0x1280d5(0x204)]=_[_0x1280d5(0x208)](_0x509fe6[_0x1280d5(0x1ed)],_0x509fe6[_0x1280d5(0x1ee)]),_0x140ff4['attributes']=_[_0x1280d5(0x208)](_0x509fe6[_0x1280d5(0x1ed)],qs[_0x1280d5(0x201)](_0x494cc2[_0x1280d5(0x1ee)][_0x1280d5(0x201)])),_0x140ff4['attributes']=_0x140ff4[_0x1280d5(0x212)][_0x1280d5(0x1e8)]?_0x140ff4[_0x1280d5(0x212)]:_0x509fe6[_0x1280d5(0x1ed)];typeof _0x494cc2[_0x1280d5(0x1ee)][_0x1280d5(0x207)]===_0x1280d5(0x209)&&(_0x140ff4['limit']=qs[_0x1280d5(0x1ea)](_0x494cc2['query']['limit']),_0x140ff4[_0x1280d5(0x1f2)]=qs['offset'](_0x494cc2[_0x1280d5(0x1ee)][_0x1280d5(0x1f2)]));_0x140ff4[_0x1280d5(0x210)]=qs[_0x1280d5(0x20d)](_0x494cc2[_0x1280d5(0x1ee)][_0x1280d5(0x20d)]),_0x140ff4[_0x1280d5(0x1e6)]=qs[_0x1280d5(0x204)](_['pick'](_0x494cc2[_0x1280d5(0x1ee)],_0x509fe6[_0x1280d5(0x204)]),_0x5e5378);_0x494cc2[_0x1280d5(0x1ee)][_0x1280d5(0x1f0)]&&(_0x140ff4[_0x1280d5(0x1e6)]=_[_0x1280d5(0x211)](_0x140ff4[_0x1280d5(0x1e6)],{[Op['or']]:_['map'](_0x5e5378,function(_0x3be20f){const _0x58ebd4=_0x1280d5;if(_0x3be20f[_0x58ebd4(0x1ef)]!==_0x58ebd4(0x206)){const _0x3c4d5e={};return _0x3c4d5e[_0x3be20f['name']]={[Op['like']]:'%'+_0x494cc2[_0x58ebd4(0x1ee)][_0x58ebd4(0x1f0)]+'%'},_0x3c4d5e;}})}));_0x140ff4=_['merge']({},_0x140ff4,_0x494cc2[_0x1280d5(0x216)]);const _0x1e00cc={'where':_0x140ff4[_0x1280d5(0x1e6)]};return db[_0x1280d5(0x20c)]['count'](_0x1e00cc)[_0x1280d5(0x217)](function(_0x319342){const _0x5be0a4=_0x1280d5;return _0x3cbb4b[_0x5be0a4(0x205)]=_0x319342,_0x494cc2[_0x5be0a4(0x1ee)][_0x5be0a4(0x20e)]&&(_0x140ff4[_0x5be0a4(0x20f)]=[{'all':!![]}]),db[_0x5be0a4(0x20c)][_0x5be0a4(0x1ff)](_0x140ff4);})[_0x1280d5(0x217)](function(_0x302a84){const _0x20fae6=_0x1280d5;return _0x3cbb4b[_0x20fae6(0x1f1)]=_0x302a84,_0x3cbb4b;})[_0x1280d5(0x217)](respondWithFilteredResult(_0x29d1b8,_0x140ff4))[_0x1280d5(0x1f8)](handleError(_0x29d1b8,null));},exports[a363_0x1d4f90(0x1f9)]=function(_0x454643,_0x3dede8){const _0x40c2cb=a363_0x1d4f90;let _0x2e7951={'raw':!![],'where':{'id':_0x454643[_0x40c2cb(0x1f5)]['id']}};const _0x522cce={};return _0x522cce[_0x40c2cb(0x1ed)]=_['keys'](db[_0x40c2cb(0x20c)]['rawAttributes']),_0x522cce['query']=_[_0x40c2cb(0x1fa)](_0x454643[_0x40c2cb(0x1ee)]),_0x522cce[_0x40c2cb(0x204)]=_['intersection'](_0x522cce[_0x40c2cb(0x1ed)],_0x522cce[_0x40c2cb(0x1ee)]),_0x2e7951['attributes']=_['intersection'](_0x522cce[_0x40c2cb(0x1ed)],qs[_0x40c2cb(0x201)](_0x454643[_0x40c2cb(0x1ee)][_0x40c2cb(0x201)])),_0x2e7951['attributes']=_0x2e7951[_0x40c2cb(0x212)][_0x40c2cb(0x1e8)]?_0x2e7951[_0x40c2cb(0x212)]:_0x522cce[_0x40c2cb(0x1ed)],_0x454643[_0x40c2cb(0x1ee)][_0x40c2cb(0x20e)]&&(_0x2e7951[_0x40c2cb(0x20f)]=[{'all':!![]}]),_0x2e7951=_['merge']({},_0x2e7951,_0x454643['options']),db['ServicenowField'][_0x40c2cb(0x1ec)](_0x2e7951)[_0x40c2cb(0x217)](handleEntityNotFound(_0x3dede8,null))['then'](respondWithResult(_0x3dede8,null))[_0x40c2cb(0x1f8)](handleError(_0x3dede8,null));},exports[a363_0x1d4f90(0x200)]=function(_0x480c85,_0x1afc63){const _0x3bfd0f=a363_0x1d4f90;return db[_0x3bfd0f(0x20c)][_0x3bfd0f(0x200)](_0x480c85['body'],{})[_0x3bfd0f(0x217)](respondWithResult(_0x1afc63,0xc9))[_0x3bfd0f(0x1f8)](handleError(_0x1afc63,null));},exports[a363_0x1d4f90(0x1fd)]=function(_0x48550e,_0x252f42){const _0x3a1b04=a363_0x1d4f90;return _0x48550e[_0x3a1b04(0x1fe)]['id']&&delete _0x48550e[_0x3a1b04(0x1fe)]['id'],db['ServicenowField'][_0x3a1b04(0x1ec)]({'where':{'id':_0x48550e[_0x3a1b04(0x1f5)]['id']}})[_0x3a1b04(0x217)](handleEntityNotFound(_0x252f42,null))[_0x3a1b04(0x217)](saveUpdates(_0x48550e['body'],null))[_0x3a1b04(0x217)](respondWithResult(_0x252f42,null))[_0x3a1b04(0x1f8)](handleError(_0x252f42,null));},exports[a363_0x1d4f90(0x1fc)]=function(_0x57a2b9,_0x4d4340){const _0x48f749=a363_0x1d4f90;return db[_0x48f749(0x20c)][_0x48f749(0x1ec)]({'where':{'id':_0x57a2b9[_0x48f749(0x1f5)]['id']}})[_0x48f749(0x217)](handleEntityNotFound(_0x4d4340,null))[_0x48f749(0x217)](removeEntity(_0x4d4340,null))[_0x48f749(0x1f8)](handleError(_0x4d4340,null));}; \ No newline at end of file diff --git a/server/api/intServicenowField/intServicenowField.model.js b/server/api/intServicenowField/intServicenowField.model.js index 4c7115e..32727e0 100644 --- a/server/api/intServicenowField/intServicenowField.model.js +++ b/server/api/intServicenowField/intServicenowField.model.js @@ -1 +1 @@ -const a304_0x2019=['servicenow_unique_index','FieldId','ServicenowField','int_servicenow_fields','./intServicenowField.attributes'];(function(_0x5c0676,_0x201980){const _0x399130=function(_0x5da48a){while(--_0x5da48a){_0x5c0676['push'](_0x5c0676['shift']());}};_0x399130(++_0x201980);}(a304_0x2019,0x1e9));const a304_0x3991=function(_0x5c0676,_0x201980){_0x5c0676=_0x5c0676-0x0;let _0x399130=a304_0x2019[_0x5c0676];return _0x399130;};const _0x28c046=a304_0x3991;'use strict';const attributes=require(_0x28c046('0x0'));module['exports']=function(_0x5da48a){const _0x5e6b21=_0x28c046,_0x4a362f=_0x5da48a['define'](_0x5e6b21('0x3'),attributes,{'tableName':_0x5e6b21('0x4'),'paranoid':![],'indexes':[{'name':_0x5e6b21('0x1'),'fields':['idField',_0x5e6b21('0x2')],'unique':!![]}],'timestamps':!![]});return _0x4a362f;}; \ No newline at end of file +const a364_0x31cb=['exports','ServicenowField','sequelize','function','init'];(function(_0x310220,_0x5239b8){const _0x31cbeb=function(_0x1988f1){while(--_0x1988f1){_0x310220['push'](_0x310220['shift']());}};_0x31cbeb(++_0x5239b8);}(a364_0x31cb,0x17e));const a364_0x1988=function(_0x310220,_0x5239b8){_0x310220=_0x310220-0xa2;let _0x31cbeb=a364_0x31cb[_0x310220];return _0x31cbeb;};const a364_0xceee3a=a364_0x1988;'use strict';const {Model}=require(a364_0xceee3a(0xa2)),{attributes}=require('./intServicenowField.attributes'),{options}=require('./intServicenowField.options');class ServicenowField extends Model{}function init(_0x21cbf4,_0xff0d71){const _0x4e106f=a364_0xceee3a,_0x3b8468=options(_0x21cbf4),_0x1951f9=typeof _0xff0d71===_0x4e106f(0xa3)?_0xff0d71(_0x3b8468):_0x3b8468;return ServicenowField[_0x4e106f(0xa4)](attributes,_0x1951f9),ServicenowField;}module[a364_0xceee3a(0xa5)][a364_0xceee3a(0xa6)]=ServicenowField,module['exports']['init']=init; \ No newline at end of file diff --git a/server/api/intServicenowField/intServicenowField.options.js b/server/api/intServicenowField/intServicenowField.options.js new file mode 100644 index 0000000..deeea2c --- /dev/null +++ b/server/api/intServicenowField/intServicenowField.options.js @@ -0,0 +1 @@ +var a365_0x3c40=['exports','int_servicenow_fields','servicenow_unique_index','options','idField','FieldId'];(function(_0xb4cf46,_0xea7b52){var _0x3c409a=function(_0x191c85){while(--_0x191c85){_0xb4cf46['push'](_0xb4cf46['shift']());}};_0x3c409a(++_0xea7b52);}(a365_0x3c40,0x1c9));var a365_0x191c=function(_0xb4cf46,_0xea7b52){_0xb4cf46=_0xb4cf46-0x1b9;var _0x3c409a=a365_0x3c40[_0xb4cf46];return _0x3c409a;};var a365_0x3d32c0=a365_0x191c;function options(_0x1cf73b){var _0x402eae=a365_0x191c;return{'sequelize':_0x1cf73b,'tableName':_0x402eae(0x1b9),'paranoid':![],'indexes':[{'name':_0x402eae(0x1ba),'fields':[_0x402eae(0x1bc),_0x402eae(0x1bd)],'unique':!![]}],'timestamps':!![]};}module[a365_0x3d32c0(0x1be)][a365_0x3d32c0(0x1bb)]=options; \ No newline at end of file diff --git a/server/api/intSugarcrmAccount/index.js b/server/api/intSugarcrmAccount/index.js index c067a18..33bea34 100644 --- a/server/api/intSugarcrmAccount/index.js +++ b/server/api/intSugarcrmAccount/index.js @@ -1 +1 @@ -const a305_0x34a3=['exports','get','create','put','delete','post','/:id/configurations','Router','update','/:id','isAuthenticated','getFields','addConfiguration','getConfigurations','../../components/auth/service'];(function(_0x14c3c3,_0x34a310){const _0x5198ce=function(_0x5086e4){while(--_0x5086e4){_0x14c3c3['push'](_0x14c3c3['shift']());}};_0x5198ce(++_0x34a310);}(a305_0x34a3,0x1d1));const a305_0x5198=function(_0x14c3c3,_0x34a310){_0x14c3c3=_0x14c3c3-0x0;let _0x5198ce=a305_0x34a3[_0x14c3c3];return _0x5198ce;};const _0x2b5853=a305_0x5198;'use strict';const express=require('express'),router=express[_0x2b5853('0x7')](),auth=require(_0x2b5853('0xe')),controller=require('./intSugarcrmAccount.controller');router[_0x2b5853('0x1')]('/',auth[_0x2b5853('0xa')](),controller['index']),router[_0x2b5853('0x1')](_0x2b5853('0x9'),auth[_0x2b5853('0xa')](),controller['show']),router[_0x2b5853('0x1')](_0x2b5853('0x6'),auth[_0x2b5853('0xa')](),controller[_0x2b5853('0xd')]),router[_0x2b5853('0x1')]('/:id/fields',auth[_0x2b5853('0xa')](),controller[_0x2b5853('0xb')]),router[_0x2b5853('0x5')]('/',auth[_0x2b5853('0xa')](),controller[_0x2b5853('0x2')]),router[_0x2b5853('0x5')]('/:id/configurations',auth['isAuthenticated'](),controller[_0x2b5853('0xc')]),router[_0x2b5853('0x3')](_0x2b5853('0x9'),auth[_0x2b5853('0xa')](),controller[_0x2b5853('0x8')]),router[_0x2b5853('0x4')](_0x2b5853('0x9'),auth[_0x2b5853('0xa')](),controller['destroy']),module[_0x2b5853('0x0')]=router; \ No newline at end of file +const a366_0x4678=['getConfigurations','./intSugarcrmAccount.controller','../../components/auth/service','destroy','show','get','getFields','isAuthenticated','express','put','addConfiguration','/:id','delete','post','update','/:id/configurations'];(function(_0x1b4cc6,_0x1ccc30){const _0x4678c7=function(_0x59a450){while(--_0x59a450){_0x1b4cc6['push'](_0x1b4cc6['shift']());}};_0x4678c7(++_0x1ccc30);}(a366_0x4678,0xe0));const a366_0x59a4=function(_0x1b4cc6,_0x1ccc30){_0x1b4cc6=_0x1b4cc6-0x11a;let _0x4678c7=a366_0x4678[_0x1b4cc6];return _0x4678c7;};const a366_0x787b52=a366_0x59a4;'use strict';const express=require(a366_0x787b52(0x122)),router=express['Router'](),auth=require(a366_0x787b52(0x11c)),controller=require(a366_0x787b52(0x11b));router[a366_0x787b52(0x11f)]('/',auth['isAuthenticated'](),controller['index']),router[a366_0x787b52(0x11f)](a366_0x787b52(0x125),auth['isAuthenticated'](),controller[a366_0x787b52(0x11e)]),router[a366_0x787b52(0x11f)](a366_0x787b52(0x129),auth[a366_0x787b52(0x121)](),controller[a366_0x787b52(0x11a)]),router['get']('/:id/fields',auth[a366_0x787b52(0x121)](),controller[a366_0x787b52(0x120)]),router[a366_0x787b52(0x127)]('/',auth[a366_0x787b52(0x121)](),controller['create']),router[a366_0x787b52(0x127)](a366_0x787b52(0x129),auth[a366_0x787b52(0x121)](),controller[a366_0x787b52(0x124)]),router[a366_0x787b52(0x123)](a366_0x787b52(0x125),auth[a366_0x787b52(0x121)](),controller[a366_0x787b52(0x128)]),router[a366_0x787b52(0x126)](a366_0x787b52(0x125),auth[a366_0x787b52(0x121)](),controller[a366_0x787b52(0x11d)]),module['exports']=router; \ No newline at end of file diff --git a/server/api/intSugarcrmAccount/intSugarcrmAccount.attributes.js b/server/api/intSugarcrmAccount/intSugarcrmAccount.attributes.js index 39c088f..2068ae5 100644 --- a/server/api/intSugarcrmAccount/intSugarcrmAccount.attributes.js +++ b/server/api/intSugarcrmAccount/intSugarcrmAccount.attributes.js @@ -1 +1 @@ -const a306_0x5260=['remoteUri','sequelize','STRING','username'];(function(_0x396baa,_0x5260b8){const _0x1700f0=function(_0x129855){while(--_0x129855){_0x396baa['push'](_0x396baa['shift']());}};_0x1700f0(++_0x5260b8);}(a306_0x5260,0xe8));const a306_0x1700=function(_0x396baa,_0x5260b8){_0x396baa=_0x396baa-0x0;let _0x1700f0=a306_0x5260[_0x396baa];return _0x1700f0;};const _0x55dae2=a306_0x1700;'use strict';const Sequelize=require(_0x55dae2('0x1'));module['exports']={'name':{'type':Sequelize['STRING']},'description':{'type':Sequelize[_0x55dae2('0x2')]},'username':{'type':Sequelize[_0x55dae2('0x2')],'unique':_0x55dae2('0x3')},'password':{'type':Sequelize['STRING']},'remoteUri':{'type':Sequelize[_0x55dae2('0x2')],'unique':_0x55dae2('0x0')},'serverUrl':{'type':Sequelize[_0x55dae2('0x2')]}}; \ No newline at end of file +const a367_0x294d=['sequelize','username','attributes','STRING'];(function(_0x5cc89,_0x29f4c6){const _0x294d1a=function(_0x236a9a){while(--_0x236a9a){_0x5cc89['push'](_0x5cc89['shift']());}};_0x294d1a(++_0x29f4c6);}(a367_0x294d,0x149));const a367_0x236a=function(_0x5cc89,_0x29f4c6){_0x5cc89=_0x5cc89-0x11f;let _0x294d1a=a367_0x294d[_0x5cc89];return _0x294d1a;};const a367_0x425dbb=a367_0x236a;'use strict';const {DataTypes}=require(a367_0x425dbb(0x122)),attributes={'name':{'type':DataTypes[a367_0x425dbb(0x121)]},'description':{'type':DataTypes['STRING']},'username':{'type':DataTypes['STRING'],'unique':a367_0x425dbb(0x11f)},'password':{'type':DataTypes['STRING']},'remoteUri':{'type':DataTypes[a367_0x425dbb(0x121)],'unique':'remoteUri'},'serverUrl':{'type':DataTypes[a367_0x425dbb(0x121)]}};module['exports'][a367_0x425dbb(0x120)]=attributes; \ No newline at end of file diff --git a/server/api/intSugarcrmAccount/intSugarcrmAccount.controller.js b/server/api/intSugarcrmAccount/intSugarcrmAccount.controller.js index 22b9e18..79d4da4 100644 --- a/server/api/intSugarcrmAccount/intSugarcrmAccount.controller.js +++ b/server/api/intSugarcrmAccount/intSugarcrmAccount.controller.js @@ -1 +1 @@ -const a307_0x34ce=['offset','Calls','parent_name','filter','api','SugarcrmConfiguration','JSON','statusCode','%s%s','attributes','stack','then','keys','includes','filters','pick','channel','Password\x20Expired','direction','slice','getFields','login','password','/service/v4_1/rest.php','send','name','sort','endsWith','SugarcrmAccount','test','value','intersection','Wrong\x20credentials','map','../../components/parsers/qs','sequelize','like','POST','status','assigned_user_id','label','remove','format','created_by','show','nolimit','json','undefined','SugarcrmField','getConfigurations','order','includeAll','request-promise-native','findAll','Descriptions','../../mysqldb','rawAttributes','catch','lastIndexOf','model','parent_id','options','username','module_fields','../../config/logger','Subjects','getSubjects','body','Invalid\x20Login','findOne','duration_hours','getDescriptions','getFields,\x20%s,\x20%s,\x20%s','params','create','error','lodash','stringify','where','fields','merge','description','include','parent_type','AccountId','update','VIRTUAL','duration_minutes','sendStatus','end','index','limit','destroy','Content-Range','remoteUri','length','type','query','count','values'];(function(_0x1b0ef6,_0x34cea4){const _0x3db9ea=function(_0x3c05ed){while(--_0x3c05ed){_0x1b0ef6['push'](_0x1b0ef6['shift']());}};_0x3db9ea(++_0x34cea4);}(a307_0x34ce,0x178));const a307_0x3db9=function(_0x1b0ef6,_0x34cea4){_0x1b0ef6=_0x1b0ef6-0x0;let _0x3db9ea=a307_0x34ce[_0x1b0ef6];return _0x3db9ea;};const _0x2eb277=a307_0x3db9;'use strict';const rp=require(_0x2eb277('0x4c')),util=require('util'),_=require(_0x2eb277('0x0')),qs=require(_0x2eb277('0x3a')),logger=require(_0x2eb277('0x58'))(_0x2eb277('0x1c')),db=require(_0x2eb277('0x4f'))['db'],{Op}=require(_0x2eb277('0x3b')),integrations=require('../../components/integrations/configuration');function respondWithResult(_0x3c05ed,_0x2abd60){return _0x2abd60=_0x2abd60||0xc8,function(_0x58d763){const _0x4b97dd=a307_0x3db9;if(_0x58d763)return _0x3c05ed[_0x4b97dd('0x3e')](_0x2abd60)[_0x4b97dd('0x46')](_0x58d763);};}function respondWithFilteredResult(_0x5a8898,_0x2c3641){return function(_0x2d22b0){const _0x46a690=a307_0x3db9;if(_0x2d22b0){const _0x218b75=_0x2d22b0[_0x46a690('0x16')],_0x544183=_0x2c3641[_0x46a690('0x18')];let _0x30b3df=_0x2c3641[_0x46a690('0x18')]+_0x2c3641['limit'],_0x455467;return _0x30b3df>=_0x218b75?(_0x30b3df=_0x218b75,_0x455467=0xc8):_0x455467=0xce,_0x5a8898[_0x46a690('0x3e')](_0x455467),_0x5a8898['set'](_0x46a690('0x11'),_0x544183+'-'+_0x30b3df+'/'+_0x218b75)[_0x46a690('0x46')](_0x2d22b0);}return null;};}function saveUpdates(_0x4bc277){return function(_0x3aba31){const _0x4243e4=a307_0x3db9;if(_0x3aba31)return _0x3aba31[_0x4243e4('0x9')](_0x4bc277)[_0x4243e4('0x23')](function(_0x1959d0){return _0x1959d0;});return null;};}function removeEntity(_0xcef8b8){return function(_0x4bd323){const _0x2cc01d=a307_0x3db9;if(_0x4bd323)return _0x4bd323[_0x2cc01d('0x10')]()['then'](function(){const _0x116028=_0x2cc01d;_0xcef8b8[_0x116028('0x3e')](0xcc)[_0x116028('0xd')]();});};}function handleEntityNotFound(_0x53792c){return function(_0x535bd9){const _0x19dde1=a307_0x3db9;return!_0x535bd9&&_0x53792c[_0x19dde1('0xc')](0x194),_0x535bd9;};}function handleError(_0x2c59f7,_0x24cb56){return _0x24cb56=_0x24cb56||0x1f4,function(_0x56a150){const _0x220e74=a307_0x3db9;logger[_0x220e74('0x63')](_0x56a150[_0x220e74('0x22')]),_0x56a150[_0x220e74('0x31')]&&delete _0x56a150[_0x220e74('0x31')],_0x2c59f7['status'](_0x24cb56)['send'](_0x56a150);};}exports[_0x2eb277('0xe')]=function(_0x12e799,_0x5cb72a){const _0x3ed468=_0x2eb277;let _0x599608={};const _0x59d012={},_0x1eead6={'count':0x0,'rows':[]},_0x179f34=_[_0x3ed468('0x39')](db[_0x3ed468('0x34')][_0x3ed468('0x50')],function(_0x4816ef){return{'name':_0x4816ef['fieldName'],'type':_0x4816ef['type']['key']};});_0x59d012['model']=_[_0x3ed468('0x39')](_0x179f34,_0x3ed468('0x31')),_0x59d012[_0x3ed468('0x15')]=_[_0x3ed468('0x24')](_0x12e799['query']),_0x59d012[_0x3ed468('0x26')]=_['intersection'](_0x59d012[_0x3ed468('0x53')],_0x59d012[_0x3ed468('0x15')]),_0x599608[_0x3ed468('0x21')]=_[_0x3ed468('0x37')](_0x59d012['model'],qs[_0x3ed468('0x3')](_0x12e799[_0x3ed468('0x15')][_0x3ed468('0x3')])),_0x599608[_0x3ed468('0x21')]=_0x599608['attributes'][_0x3ed468('0x13')]?_0x599608[_0x3ed468('0x21')]:_0x59d012[_0x3ed468('0x53')];typeof _0x12e799['query'][_0x3ed468('0x45')]===_0x3ed468('0x47')&&(_0x599608['limit']=qs[_0x3ed468('0xf')](_0x12e799[_0x3ed468('0x15')]['limit']),_0x599608[_0x3ed468('0x18')]=qs[_0x3ed468('0x18')](_0x12e799[_0x3ed468('0x15')][_0x3ed468('0x18')]));_0x599608[_0x3ed468('0x4a')]=qs[_0x3ed468('0x32')](_0x12e799[_0x3ed468('0x15')][_0x3ed468('0x32')]),_0x599608['where']=qs[_0x3ed468('0x26')](_[_0x3ed468('0x27')](_0x12e799[_0x3ed468('0x15')],_0x59d012[_0x3ed468('0x26')]),_0x179f34);_0x12e799[_0x3ed468('0x15')][_0x3ed468('0x1b')]&&(_0x599608[_0x3ed468('0x2')]=_[_0x3ed468('0x4')](_0x599608[_0x3ed468('0x2')],{[Op['or']]:_[_0x3ed468('0x39')](_0x179f34,function(_0x1cce40){const _0x5d6eea=_0x3ed468;if(_0x1cce40[_0x5d6eea('0x14')]!==_0x5d6eea('0xa')){const _0x5c59c0={};return _0x5c59c0[_0x1cce40[_0x5d6eea('0x31')]]={[Op[_0x5d6eea('0x3c')]]:'%'+_0x12e799[_0x5d6eea('0x15')][_0x5d6eea('0x1b')]+'%'},_0x5c59c0;}})}));_0x599608=_['merge']({},_0x599608,_0x12e799[_0x3ed468('0x55')]);const _0x215d32={'where':_0x599608['where']};return db['SugarcrmAccount'][_0x3ed468('0x16')](_0x215d32)[_0x3ed468('0x23')](function(_0x4e1b72){const _0x3b0c84=_0x3ed468;return _0x1eead6[_0x3b0c84('0x16')]=_0x4e1b72,_0x12e799[_0x3b0c84('0x15')][_0x3b0c84('0x4b')]&&(_0x599608['include']=[{'all':!![]}]),db[_0x3b0c84('0x34')][_0x3b0c84('0x4d')](_0x599608);})['then'](function(_0x1c3e6a){return _0x1eead6['rows']=_0x1c3e6a,_0x1eead6;})[_0x3ed468('0x23')](respondWithFilteredResult(_0x5cb72a,_0x599608))['catch'](handleError(_0x5cb72a,null));},exports[_0x2eb277('0x44')]=function(_0x4bfde8,_0x573895){const _0x5a26ca=_0x2eb277;let _0x108d1d={'raw':![],'where':{'id':_0x4bfde8[_0x5a26ca('0x61')]['id']}};const _0x236a17={};return _0x236a17[_0x5a26ca('0x53')]=_[_0x5a26ca('0x24')](db[_0x5a26ca('0x34')]['rawAttributes']),_0x236a17[_0x5a26ca('0x15')]=_[_0x5a26ca('0x24')](_0x4bfde8[_0x5a26ca('0x15')]),_0x236a17['filters']=_[_0x5a26ca('0x37')](_0x236a17[_0x5a26ca('0x53')],_0x236a17[_0x5a26ca('0x15')]),_0x108d1d[_0x5a26ca('0x21')]=_[_0x5a26ca('0x37')](_0x236a17['model'],qs[_0x5a26ca('0x3')](_0x4bfde8[_0x5a26ca('0x15')][_0x5a26ca('0x3')])),_0x108d1d[_0x5a26ca('0x21')]=_0x108d1d[_0x5a26ca('0x21')][_0x5a26ca('0x13')]?_0x108d1d[_0x5a26ca('0x21')]:_0x236a17['model'],_0x4bfde8['query'][_0x5a26ca('0x4b')]&&(_0x108d1d[_0x5a26ca('0x6')]=[{'all':!![]}]),_0x108d1d=_[_0x5a26ca('0x4')]({},_0x108d1d,_0x4bfde8[_0x5a26ca('0x55')]),db[_0x5a26ca('0x34')][_0x5a26ca('0x5d')](_0x108d1d)['then'](handleEntityNotFound(_0x573895,null))['then'](respondWithResult(_0x573895,null))['catch'](handleError(_0x573895,null));},exports[_0x2eb277('0x62')]=function(_0xd06bcf,_0x6c12fb){const _0x18ed20=_0x2eb277;return db['SugarcrmAccount'][_0x18ed20('0x62')](_0xd06bcf[_0x18ed20('0x5b')],{})[_0x18ed20('0x23')](respondWithResult(_0x6c12fb,0xc9))[_0x18ed20('0x51')](handleError(_0x6c12fb,null));},exports[_0x2eb277('0x9')]=function(_0x4049da,_0x3d57b6){const _0x4ad5e7=_0x2eb277;return _0x4049da['body']['id']&&delete _0x4049da['body']['id'],db['SugarcrmAccount'][_0x4ad5e7('0x5d')]({'where':{'id':_0x4049da[_0x4ad5e7('0x61')]['id']}})[_0x4ad5e7('0x23')](handleEntityNotFound(_0x3d57b6,null))[_0x4ad5e7('0x23')](saveUpdates(_0x4049da['body'],null))[_0x4ad5e7('0x23')](respondWithResult(_0x3d57b6,null))[_0x4ad5e7('0x51')](handleError(_0x3d57b6,null));},exports[_0x2eb277('0x10')]=function(_0x30f475,_0x2b0b4d){const _0x3c9e8d=_0x2eb277;return db['SugarcrmAccount'][_0x3c9e8d('0x5d')]({'where':{'id':_0x30f475[_0x3c9e8d('0x61')]['id']}})[_0x3c9e8d('0x23')](handleEntityNotFound(_0x2b0b4d,null))[_0x3c9e8d('0x23')](removeEntity(_0x2b0b4d,null))[_0x3c9e8d('0x51')](handleError(_0x2b0b4d,null));},exports['getConfigurations']=function(_0x4d1d80,_0x55878b){const _0x12cc59=_0x2eb277;let _0x38d1a1={};const _0x27100a={};let _0xb202f1,_0x48675a;return db[_0x12cc59('0x34')][_0x12cc59('0x5d')]({'where':{'id':_0x4d1d80['params']['id']}})[_0x12cc59('0x23')](handleEntityNotFound(_0x55878b,null))[_0x12cc59('0x23')](function(_0x3493e8){const _0x896995=_0x12cc59;if(_0x3493e8)return _0xb202f1=_0x3493e8,_0x27100a[_0x896995('0x53')]=_['keys'](db[_0x896995('0x1d')][_0x896995('0x50')]),_0x27100a[_0x896995('0x15')]=_[_0x896995('0x24')](_0x4d1d80['query']),_0x27100a['filters']=_[_0x896995('0x37')](_0x27100a[_0x896995('0x53')],_0x27100a[_0x896995('0x15')]),_0x38d1a1[_0x896995('0x21')]=_[_0x896995('0x37')](_0x27100a[_0x896995('0x53')],qs['fields'](_0x4d1d80[_0x896995('0x15')]['fields'])),_0x38d1a1[_0x896995('0x21')]=_0x38d1a1[_0x896995('0x21')][_0x896995('0x13')]?_0x38d1a1[_0x896995('0x21')]:_0x27100a[_0x896995('0x53')],_0x38d1a1['order']=qs['sort'](_0x4d1d80[_0x896995('0x15')][_0x896995('0x32')]),_0x38d1a1[_0x896995('0x2')]=qs[_0x896995('0x26')](_[_0x896995('0x27')](_0x4d1d80[_0x896995('0x15')],_0x27100a['filters'])),_0x4d1d80[_0x896995('0x15')]['filter']&&(_0x38d1a1[_0x896995('0x2')]=_[_0x896995('0x4')](_0x38d1a1[_0x896995('0x2')],{[Op['or']]:_[_0x896995('0x39')](_0x38d1a1['attributes'],function(_0x1ef453){const _0x151dc1=_0x896995,_0x30f681={};return _0x30f681[_0x1ef453]={[Op[_0x151dc1('0x3c')]]:'%'+_0x4d1d80[_0x151dc1('0x15')]['filter']+'%'},_0x30f681;})})),_0x38d1a1=_['merge']({},_0x38d1a1,_0x4d1d80[_0x896995('0x55')]),_0xb202f1[_0x896995('0x49')](_0x38d1a1);})['then'](function(_0x185f13){const _0x390061=_0x12cc59;if(_0x185f13)return _0x48675a=_0x185f13[_0x390061('0x13')],typeof _0x4d1d80[_0x390061('0x15')][_0x390061('0x45')]==='undefined'&&(_0x38d1a1[_0x390061('0xf')]=qs[_0x390061('0xf')](_0x4d1d80['query'][_0x390061('0xf')]),_0x38d1a1[_0x390061('0x18')]=qs['offset'](_0x4d1d80[_0x390061('0x15')][_0x390061('0x18')])),_0xb202f1[_0x390061('0x49')](_0x38d1a1);})[_0x12cc59('0x23')](function(_0x4dfe1c){if(_0x4dfe1c)return _0x4dfe1c?{'count':_0x48675a,'rows':_0x4dfe1c}:null;})[_0x12cc59('0x23')](respondWithResult(_0x55878b,null))[_0x12cc59('0x51')](handleError(_0x55878b,null));},exports['addConfiguration']=function(_0x3a0e51,_0x13b296){const _0x23ebb0=_0x2eb277;return _0x3a0e51['body']['id']&&delete _0x3a0e51['body']['id'],db[_0x23ebb0('0x34')][_0x23ebb0('0x5d')]({'where':{'id':_0x3a0e51['params']['id']}})[_0x23ebb0('0x23')](handleEntityNotFound(_0x13b296,null))[_0x23ebb0('0x23')](function(_0x461b1e){const _0x32687d=_0x23ebb0;if(_0x461b1e)return _0x3a0e51['body'][_0x32687d('0x8')]=_0x461b1e['id'],_0x3a0e51[_0x32687d('0x5b')][_0x32687d('0x59')]=integrations[_0x32687d('0x5a')](_0x3a0e51['body'][_0x32687d('0x28')],_0x3a0e51[_0x32687d('0x5b')][_0x32687d('0x14')]),_0x3a0e51['body'][_0x32687d('0x4e')]=integrations[_0x32687d('0x5f')](_0x3a0e51[_0x32687d('0x5b')][_0x32687d('0x28')],_0x3a0e51[_0x32687d('0x5b')][_0x32687d('0x14')]),db[_0x32687d('0x1d')][_0x32687d('0x62')](_0x3a0e51[_0x32687d('0x5b')],{'include':[{'model':db[_0x32687d('0x48')],'as':'Subjects'},{'model':db[_0x32687d('0x48')],'as':_0x32687d('0x4e')}]});return null;})['then'](respondWithResult(_0x13b296,null))['catch'](handleError(_0x13b296,null));},exports[_0x2eb277('0x2c')]=function(_0x1a0311,_0x1f912e){const _0x24bd1d=_0x2eb277;let _0xc265e4='';const _0x164ec3=['id',_0x24bd1d('0x31'),_0x24bd1d('0x3f'),_0x24bd1d('0x43'),_0x24bd1d('0x5'),'date_start',_0x24bd1d('0x5e'),_0x24bd1d('0xb'),_0x24bd1d('0x54'),_0x24bd1d('0x7'),_0x24bd1d('0x1a'),_0x24bd1d('0x2a')];return db[_0x24bd1d('0x34')][_0x24bd1d('0x5d')]({'where':{'id':_0x1a0311[_0x24bd1d('0x61')]['id']},'attributes':['id',_0x24bd1d('0x56'),'password',_0x24bd1d('0x12')]})[_0x24bd1d('0x23')](handleEntityNotFound(_0x1f912e,null))[_0x24bd1d('0x23')](function(_0xc9d290){const _0x51b6d3=_0x24bd1d;if(_0xc9d290){_0xc265e4=_0xc9d290[_0x51b6d3('0x12')];const _0x50b592=_0xc265e4[_0x51b6d3('0x2b')](-0x1);return _0x50b592==='/'&&(_0xc265e4=_0xc265e4['substring'](0x0,_0xc265e4[_0x51b6d3('0x52')](_0x50b592))),rp({'method':_0x51b6d3('0x3d'),'uri':util['format'](_0x51b6d3('0x20'),_0xc265e4,_0x51b6d3('0x2f')),'json':!![],'form':{'method':_0x51b6d3('0x2d'),'input_type':_0x51b6d3('0x1e'),'response_type':'JSON','rest_data':JSON[_0x51b6d3('0x1')]({'user_auth':{'user_name':_0xc9d290[_0x51b6d3('0x56')],'password':_0xc9d290[_0x51b6d3('0x2e')],'encryption':'PLAIN'},'application':'xCALLY\x20Motion\x20Integration'})}});}})[_0x24bd1d('0x23')](function(_0xd849d2){const _0x302407=_0x24bd1d;if(_0xd849d2&&_0xd849d2[_0x302407('0x31')]!==_0x302407('0x5c')&&_0xd849d2[_0x302407('0x31')]!==_0x302407('0x29'))return rp({'method':_0x302407('0x3d'),'uri':util[_0x302407('0x42')]('%s%s',_0xc265e4,_0x302407('0x2f')),'json':!![],'form':{'method':'get_module_fields','input_type':_0x302407('0x1e'),'response_type':_0x302407('0x1e'),'rest_data':JSON[_0x302407('0x1')]({'session':_0xd849d2['id'],'module_name':_0x302407('0x19')})}})[_0x302407('0x23')](function(_0x16db3d){const _0x1e2396=_0x302407;if(_0x16db3d){const _0x5c24fa=_[_0x1e2396('0x17')](_0x16db3d[_0x1e2396('0x57')]);return _[_0x1e2396('0x41')](_0x5c24fa,function(_0x1948ce){const _0x584f5d=_0x1e2396;return _0x164ec3[_0x584f5d('0x25')](_0x1948ce['name']);}),{'count':_0x5c24fa[_0x1e2396('0x13')],'rows':_[_0x1e2396('0x39')](_0x5c24fa,function(_0x15fc9b){const _0x48f52f=_0x1e2396;return{'id':_0x15fc9b['name'],'name':_0x15fc9b[_0x48f52f('0x40')],'custom':_[_0x48f52f('0x33')](_0x15fc9b['name'],'_c')?!![]:![],'options':_0x15fc9b['options']?_['map'](_['values'](_0x15fc9b['options']),function(_0x1cec4a){const _0x29bc7e=_0x48f52f;return{'name':_0x1cec4a[_0x29bc7e('0x36')],'value':_0x1cec4a[_0x29bc7e('0x31')]};}):[]};})};}})[_0x302407('0x23')](respondWithResult(_0x1f912e,null))['catch'](function(_0x4455b5){const _0x445454=_0x302407;let _0x56522d=_0x1a0311[_0x445454('0x15')][_0x445454('0x35')]?0x1f4:_0x4455b5[_0x445454('0x1f')]||0x1f4;logger['error'](_0x445454('0x60'),_0x445454('0x2c'),_0x56522d,JSON['stringify'](_0x4455b5)),delete _0x4455b5[_0x445454('0x31')],_0x56522d===0x191&&(_0x56522d=0x190),_0x1f912e['status'](_0x56522d)['send'](_0x1a0311[_0x445454('0x15')]['test']?{'message':_0x445454('0x38'),'statusCode':_0x4455b5[_0x445454('0x1f')]}:_0x4455b5);});else{const _0x3f2908=0x1f4;_0x1f912e[_0x302407('0x3e')](_0x3f2908)[_0x302407('0x30')]({'message':_0x302407('0x38'),'statusCode':0x190});}});}; \ No newline at end of file +const a368_0x5c10=['pick','sequelize','filter','findAll','where','merge','login','Descriptions','rawAttributes','map','Content-Range','util','../../config/logger','parent_id','date_start','created_by','xCALLY\x20Motion\x20Integration','%s%s','rows','endsWith','sendStatus','Password\x20Expired','request-promise-native','../../components/parsers/qs','stringify','intersection','POST','value','index','catch','PLAIN','Calls','duration_minutes','undefined','addConfiguration','include','order','name','slice','stack','password','statusCode','module_fields','show','Subjects','fields','query','model','getDescriptions','lastIndexOf','error','type','count','AccountId','update','fieldName','includeAll','create','getFields,\x20%s,\x20%s,\x20%s','assigned_user_id','duration_hours','attributes','direction','test','body','remoteUri','set','limit','keys','values','parent_type','get_module_fields','SugarcrmField','then','remove','offset','description','username','findOne','../../mysqldb','parent_name','label','/service/v4_1/rest.php','filters','getFields','Wrong\x20credentials','options','JSON','getConfigurations','destroy','substring','params','nolimit','json','format','status','length','SugarcrmConfiguration','SugarcrmAccount','send','sort','like','../../components/integrations/configuration'];(function(_0x2db31b,_0x5051f8){const _0x5c1092=function(_0x2e311d){while(--_0x2e311d){_0x2db31b['push'](_0x2db31b['shift']());}};_0x5c1092(++_0x5051f8);}(a368_0x5c10,0x69));const a368_0x2e31=function(_0x2db31b,_0x5051f8){_0x2db31b=_0x2db31b-0x85;let _0x5c1092=a368_0x5c10[_0x2db31b];return _0x5c1092;};const a368_0x1afb0c=a368_0x2e31;'use strict';const rp=require(a368_0x1afb0c(0x99)),util=require(a368_0x1afb0c(0x8e)),_=require('lodash'),qs=require(a368_0x1afb0c(0x9a)),logger=require(a368_0x1afb0c(0x8f))('api'),{db}=require(a368_0x1afb0c(0xd2)),{Op}=require(a368_0x1afb0c(0xeb)),integrations=require(a368_0x1afb0c(0xe9));function respondWithResult(_0x41cafc,_0x4c035d){return _0x4c035d=_0x4c035d||0xc8,function(_0x1de44c){if(_0x1de44c)return _0x41cafc['status'](_0x4c035d)['json'](_0x1de44c);};}function respondWithFilteredResult(_0x4e1488,_0xdc6180){return function(_0x293dc7){const _0x33d16b=a368_0x2e31;if(_0x293dc7){const _0x13dd24=_0x293dc7[_0x33d16b(0xb7)],_0x20c4ff=_0xdc6180[_0x33d16b(0xce)];let _0x7728f4=_0xdc6180[_0x33d16b(0xce)]+_0xdc6180[_0x33d16b(0xc6)],_0xf14422;return _0x7728f4>=_0x13dd24?(_0x7728f4=_0x13dd24,_0xf14422=0xc8):_0xf14422=0xce,_0x4e1488[_0x33d16b(0xe2)](_0xf14422),_0x4e1488[_0x33d16b(0xc5)](_0x33d16b(0x8d),_0x20c4ff+'-'+_0x7728f4+'/'+_0x13dd24)[_0x33d16b(0xe0)](_0x293dc7);}return null;};}function saveUpdates(_0x329334){return function(_0x1605a8){const _0x39db65=a368_0x2e31;if(_0x1605a8)return _0x1605a8[_0x39db65(0xb9)](_0x329334)[_0x39db65(0xcc)](function(_0x4cbe91){return _0x4cbe91;});return null;};}function removeEntity(_0x14d91c){return function(_0x417757){const _0x485ccd=a368_0x2e31;if(_0x417757)return _0x417757[_0x485ccd(0xdc)]()[_0x485ccd(0xcc)](function(){const _0x75814d=_0x485ccd;_0x14d91c[_0x75814d(0xe2)](0xcc)['end']();});};}function handleEntityNotFound(_0x17c4ff){return function(_0x31dbd0){const _0x514d04=a368_0x2e31;return!_0x31dbd0&&_0x17c4ff[_0x514d04(0x97)](0x194),_0x31dbd0;};}function handleError(_0x63e6c1,_0x3432b4){return _0x3432b4=_0x3432b4||0x1f4,function(_0x353ab6){const _0xe3901d=a368_0x2e31;logger[_0xe3901d(0xb5)](_0x353ab6[_0xe3901d(0xaa)]),_0x353ab6['name']&&delete _0x353ab6[_0xe3901d(0xa8)],_0x63e6c1[_0xe3901d(0xe2)](_0x3432b4)['send'](_0x353ab6);};}exports[a368_0x1afb0c(0x9f)]=function(_0x16b638,_0x327ce0){const _0x2eaf45=a368_0x1afb0c;let _0x243530={};const _0x1e7561={},_0x2a9eba={'count':0x0,'rows':[]},_0x3d5d2c=_[_0x2eaf45(0x8c)](db['SugarcrmAccount'][_0x2eaf45(0x8b)],function(_0x195a06){const _0x1719dd=_0x2eaf45;return{'name':_0x195a06[_0x1719dd(0xba)],'type':_0x195a06[_0x1719dd(0xb6)]['key']};});_0x1e7561['model']=_[_0x2eaf45(0x8c)](_0x3d5d2c,_0x2eaf45(0xa8)),_0x1e7561[_0x2eaf45(0xb1)]=_[_0x2eaf45(0xc7)](_0x16b638[_0x2eaf45(0xb1)]),_0x1e7561[_0x2eaf45(0xd6)]=_['intersection'](_0x1e7561[_0x2eaf45(0xb2)],_0x1e7561[_0x2eaf45(0xb1)]),_0x243530[_0x2eaf45(0xc0)]=_['intersection'](_0x1e7561['model'],qs['fields'](_0x16b638[_0x2eaf45(0xb1)][_0x2eaf45(0xb0)])),_0x243530[_0x2eaf45(0xc0)]=_0x243530['attributes'][_0x2eaf45(0xe3)]?_0x243530[_0x2eaf45(0xc0)]:_0x1e7561['model'];typeof _0x16b638['query'][_0x2eaf45(0xdf)]==='undefined'&&(_0x243530[_0x2eaf45(0xc6)]=qs[_0x2eaf45(0xc6)](_0x16b638[_0x2eaf45(0xb1)]['limit']),_0x243530[_0x2eaf45(0xce)]=qs[_0x2eaf45(0xce)](_0x16b638[_0x2eaf45(0xb1)][_0x2eaf45(0xce)]));_0x243530[_0x2eaf45(0xa7)]=qs[_0x2eaf45(0xe7)](_0x16b638[_0x2eaf45(0xb1)][_0x2eaf45(0xe7)]),_0x243530[_0x2eaf45(0x87)]=qs[_0x2eaf45(0xd6)](_['pick'](_0x16b638['query'],_0x1e7561[_0x2eaf45(0xd6)]),_0x3d5d2c);_0x16b638['query'][_0x2eaf45(0x85)]&&(_0x243530['where']=_[_0x2eaf45(0x88)](_0x243530[_0x2eaf45(0x87)],{[Op['or']]:_['map'](_0x3d5d2c,function(_0x178eef){const _0x27add0=_0x2eaf45;if(_0x178eef[_0x27add0(0xb6)]!=='VIRTUAL'){const _0xbd1c8b={};return _0xbd1c8b[_0x178eef[_0x27add0(0xa8)]]={[Op[_0x27add0(0xe8)]]:'%'+_0x16b638[_0x27add0(0xb1)]['filter']+'%'},_0xbd1c8b;}})}));_0x243530=_[_0x2eaf45(0x88)]({},_0x243530,_0x16b638[_0x2eaf45(0xd9)]);const _0x206d49={'where':_0x243530['where']};return db[_0x2eaf45(0xe5)][_0x2eaf45(0xb7)](_0x206d49)[_0x2eaf45(0xcc)](function(_0x4a3560){const _0x4007a0=_0x2eaf45;return _0x2a9eba[_0x4007a0(0xb7)]=_0x4a3560,_0x16b638[_0x4007a0(0xb1)][_0x4007a0(0xbb)]&&(_0x243530[_0x4007a0(0xa6)]=[{'all':!![]}]),db[_0x4007a0(0xe5)][_0x4007a0(0x86)](_0x243530);})[_0x2eaf45(0xcc)](function(_0xd4858b){const _0x4d573d=_0x2eaf45;return _0x2a9eba[_0x4d573d(0x95)]=_0xd4858b,_0x2a9eba;})[_0x2eaf45(0xcc)](respondWithFilteredResult(_0x327ce0,_0x243530))[_0x2eaf45(0xa0)](handleError(_0x327ce0,null));},exports[a368_0x1afb0c(0xae)]=function(_0x1539a7,_0x323751){const _0x532aa4=a368_0x1afb0c;let _0x46b80f={'raw':![],'where':{'id':_0x1539a7[_0x532aa4(0xde)]['id']}};const _0x1dc681={};return _0x1dc681[_0x532aa4(0xb2)]=_[_0x532aa4(0xc7)](db['SugarcrmAccount']['rawAttributes']),_0x1dc681[_0x532aa4(0xb1)]=_['keys'](_0x1539a7[_0x532aa4(0xb1)]),_0x1dc681['filters']=_[_0x532aa4(0x9c)](_0x1dc681[_0x532aa4(0xb2)],_0x1dc681[_0x532aa4(0xb1)]),_0x46b80f[_0x532aa4(0xc0)]=_[_0x532aa4(0x9c)](_0x1dc681[_0x532aa4(0xb2)],qs[_0x532aa4(0xb0)](_0x1539a7['query']['fields'])),_0x46b80f[_0x532aa4(0xc0)]=_0x46b80f[_0x532aa4(0xc0)][_0x532aa4(0xe3)]?_0x46b80f[_0x532aa4(0xc0)]:_0x1dc681[_0x532aa4(0xb2)],_0x1539a7[_0x532aa4(0xb1)][_0x532aa4(0xbb)]&&(_0x46b80f['include']=[{'all':!![]}]),_0x46b80f=_[_0x532aa4(0x88)]({},_0x46b80f,_0x1539a7[_0x532aa4(0xd9)]),db[_0x532aa4(0xe5)][_0x532aa4(0xd1)](_0x46b80f)[_0x532aa4(0xcc)](handleEntityNotFound(_0x323751,null))['then'](respondWithResult(_0x323751,null))['catch'](handleError(_0x323751,null));},exports[a368_0x1afb0c(0xbc)]=function(_0x4c8370,_0xd1fd3c){const _0x5e1c24=a368_0x1afb0c;return db[_0x5e1c24(0xe5)]['create'](_0x4c8370[_0x5e1c24(0xc3)],{})[_0x5e1c24(0xcc)](respondWithResult(_0xd1fd3c,0xc9))[_0x5e1c24(0xa0)](handleError(_0xd1fd3c,null));},exports[a368_0x1afb0c(0xb9)]=function(_0x10034b,_0x1b4b89){const _0x44d908=a368_0x1afb0c;return _0x10034b[_0x44d908(0xc3)]['id']&&delete _0x10034b[_0x44d908(0xc3)]['id'],db[_0x44d908(0xe5)][_0x44d908(0xd1)]({'where':{'id':_0x10034b[_0x44d908(0xde)]['id']}})['then'](handleEntityNotFound(_0x1b4b89,null))['then'](saveUpdates(_0x10034b[_0x44d908(0xc3)],null))[_0x44d908(0xcc)](respondWithResult(_0x1b4b89,null))[_0x44d908(0xa0)](handleError(_0x1b4b89,null));},exports['destroy']=function(_0x1f3148,_0x413c51){const _0x27bd0c=a368_0x1afb0c;return db[_0x27bd0c(0xe5)]['findOne']({'where':{'id':_0x1f3148['params']['id']}})[_0x27bd0c(0xcc)](handleEntityNotFound(_0x413c51,null))[_0x27bd0c(0xcc)](removeEntity(_0x413c51,null))[_0x27bd0c(0xa0)](handleError(_0x413c51,null));},exports[a368_0x1afb0c(0xdb)]=function(_0x3f10bb,_0x4be77f){const _0x4be7d7=a368_0x1afb0c;let _0x2417f9={};const _0x527f96={};let _0x17ee67,_0x44c6f9;return db[_0x4be7d7(0xe5)]['findOne']({'where':{'id':_0x3f10bb[_0x4be7d7(0xde)]['id']}})[_0x4be7d7(0xcc)](handleEntityNotFound(_0x4be77f,null))[_0x4be7d7(0xcc)](function(_0x2d3efc){const _0x15925c=_0x4be7d7;if(_0x2d3efc)return _0x17ee67=_0x2d3efc,_0x527f96[_0x15925c(0xb2)]=_[_0x15925c(0xc7)](db[_0x15925c(0xe4)]['rawAttributes']),_0x527f96[_0x15925c(0xb1)]=_[_0x15925c(0xc7)](_0x3f10bb['query']),_0x527f96[_0x15925c(0xd6)]=_[_0x15925c(0x9c)](_0x527f96[_0x15925c(0xb2)],_0x527f96[_0x15925c(0xb1)]),_0x2417f9[_0x15925c(0xc0)]=_[_0x15925c(0x9c)](_0x527f96[_0x15925c(0xb2)],qs['fields'](_0x3f10bb[_0x15925c(0xb1)][_0x15925c(0xb0)])),_0x2417f9[_0x15925c(0xc0)]=_0x2417f9[_0x15925c(0xc0)][_0x15925c(0xe3)]?_0x2417f9['attributes']:_0x527f96[_0x15925c(0xb2)],_0x2417f9['order']=qs[_0x15925c(0xe7)](_0x3f10bb[_0x15925c(0xb1)][_0x15925c(0xe7)]),_0x2417f9['where']=qs[_0x15925c(0xd6)](_[_0x15925c(0xea)](_0x3f10bb[_0x15925c(0xb1)],_0x527f96[_0x15925c(0xd6)])),_0x3f10bb[_0x15925c(0xb1)][_0x15925c(0x85)]&&(_0x2417f9[_0x15925c(0x87)]=_['merge'](_0x2417f9['where'],{[Op['or']]:_[_0x15925c(0x8c)](_0x2417f9[_0x15925c(0xc0)],function(_0x34425b){const _0x54498a=_0x15925c,_0x422507={};return _0x422507[_0x34425b]={[Op[_0x54498a(0xe8)]]:'%'+_0x3f10bb[_0x54498a(0xb1)][_0x54498a(0x85)]+'%'},_0x422507;})})),_0x2417f9=_[_0x15925c(0x88)]({},_0x2417f9,_0x3f10bb['options']),_0x17ee67[_0x15925c(0xdb)](_0x2417f9);})[_0x4be7d7(0xcc)](function(_0x11a8d7){const _0x40f5b7=_0x4be7d7;if(_0x11a8d7)return _0x44c6f9=_0x11a8d7[_0x40f5b7(0xe3)],typeof _0x3f10bb[_0x40f5b7(0xb1)][_0x40f5b7(0xdf)]===_0x40f5b7(0xa4)&&(_0x2417f9['limit']=qs[_0x40f5b7(0xc6)](_0x3f10bb[_0x40f5b7(0xb1)]['limit']),_0x2417f9['offset']=qs[_0x40f5b7(0xce)](_0x3f10bb[_0x40f5b7(0xb1)][_0x40f5b7(0xce)])),_0x17ee67[_0x40f5b7(0xdb)](_0x2417f9);})[_0x4be7d7(0xcc)](function(_0x31ff77){if(_0x31ff77)return _0x31ff77?{'count':_0x44c6f9,'rows':_0x31ff77}:null;})['then'](respondWithResult(_0x4be77f,null))[_0x4be7d7(0xa0)](handleError(_0x4be77f,null));},exports[a368_0x1afb0c(0xa5)]=function(_0x3610fe,_0x4b2bd9){const _0x2ddd02=a368_0x1afb0c;return _0x3610fe[_0x2ddd02(0xc3)]['id']&&delete _0x3610fe[_0x2ddd02(0xc3)]['id'],db['SugarcrmAccount']['findOne']({'where':{'id':_0x3610fe[_0x2ddd02(0xde)]['id']}})[_0x2ddd02(0xcc)](handleEntityNotFound(_0x4b2bd9,null))[_0x2ddd02(0xcc)](function(_0x39a65e){const _0x1effcf=_0x2ddd02;if(_0x39a65e)return _0x3610fe['body'][_0x1effcf(0xb8)]=_0x39a65e['id'],_0x3610fe[_0x1effcf(0xc3)]['Subjects']=integrations['getSubjects'](_0x3610fe['body']['channel'],_0x3610fe[_0x1effcf(0xc3)][_0x1effcf(0xb6)]),_0x3610fe[_0x1effcf(0xc3)][_0x1effcf(0x8a)]=integrations[_0x1effcf(0xb3)](_0x3610fe[_0x1effcf(0xc3)]['channel'],_0x3610fe[_0x1effcf(0xc3)]['type']),db[_0x1effcf(0xe4)]['create'](_0x3610fe[_0x1effcf(0xc3)],{'include':[{'model':db[_0x1effcf(0xcb)],'as':_0x1effcf(0xaf)},{'model':db[_0x1effcf(0xcb)],'as':_0x1effcf(0x8a)}]});return null;})[_0x2ddd02(0xcc)](respondWithResult(_0x4b2bd9,null))[_0x2ddd02(0xa0)](handleError(_0x4b2bd9,null));},exports[a368_0x1afb0c(0xd7)]=function(_0x55ba6c,_0x28a845){const _0x3327f6=a368_0x1afb0c;let _0x55c9f1='';const _0x48e0f2=['id',_0x3327f6(0xa8),_0x3327f6(0xbe),_0x3327f6(0x92),_0x3327f6(0xcf),_0x3327f6(0x91),_0x3327f6(0xbf),_0x3327f6(0xa3),_0x3327f6(0x90),_0x3327f6(0xc9),_0x3327f6(0xd3),_0x3327f6(0xc1)];return db['SugarcrmAccount']['findOne']({'where':{'id':_0x55ba6c[_0x3327f6(0xde)]['id']},'attributes':['id','username',_0x3327f6(0xab),_0x3327f6(0xc4)]})[_0x3327f6(0xcc)](handleEntityNotFound(_0x28a845,null))[_0x3327f6(0xcc)](function(_0x18375f){const _0x17e5eb=_0x3327f6;if(_0x18375f){_0x55c9f1=_0x18375f[_0x17e5eb(0xc4)];const _0x4d38e2=_0x55c9f1[_0x17e5eb(0xa9)](-0x1);return _0x4d38e2==='/'&&(_0x55c9f1=_0x55c9f1[_0x17e5eb(0xdd)](0x0,_0x55c9f1[_0x17e5eb(0xb4)](_0x4d38e2))),rp({'method':_0x17e5eb(0x9d),'uri':util[_0x17e5eb(0xe1)]('%s%s',_0x55c9f1,'/service/v4_1/rest.php'),'json':!![],'form':{'method':_0x17e5eb(0x89),'input_type':_0x17e5eb(0xda),'response_type':_0x17e5eb(0xda),'rest_data':JSON[_0x17e5eb(0x9b)]({'user_auth':{'user_name':_0x18375f[_0x17e5eb(0xd0)],'password':_0x18375f[_0x17e5eb(0xab)],'encryption':_0x17e5eb(0xa1)},'application':_0x17e5eb(0x93)})}});}})[_0x3327f6(0xcc)](function(_0x5acd32){const _0x513d69=_0x3327f6;if(_0x5acd32&&_0x5acd32[_0x513d69(0xa8)]!=='Invalid\x20Login'&&_0x5acd32[_0x513d69(0xa8)]!==_0x513d69(0x98))return rp({'method':'POST','uri':util[_0x513d69(0xe1)](_0x513d69(0x94),_0x55c9f1,_0x513d69(0xd5)),'json':!![],'form':{'method':_0x513d69(0xca),'input_type':_0x513d69(0xda),'response_type':_0x513d69(0xda),'rest_data':JSON[_0x513d69(0x9b)]({'session':_0x5acd32['id'],'module_name':_0x513d69(0xa2)})}})[_0x513d69(0xcc)](function(_0xdbea6){const _0x4998a7=_0x513d69;if(_0xdbea6){const _0x1c9e71=_[_0x4998a7(0xc8)](_0xdbea6[_0x4998a7(0xad)]);return _[_0x4998a7(0xcd)](_0x1c9e71,function(_0xdcf23e){return _0x48e0f2['includes'](_0xdcf23e['name']);}),{'count':_0x1c9e71['length'],'rows':_[_0x4998a7(0x8c)](_0x1c9e71,function(_0x19ee78){const _0x3dde21=_0x4998a7;return{'id':_0x19ee78[_0x3dde21(0xa8)],'name':_0x19ee78[_0x3dde21(0xd4)],'custom':_[_0x3dde21(0x96)](_0x19ee78['name'],'_c')?!![]:![],'options':_0x19ee78[_0x3dde21(0xd9)]?_[_0x3dde21(0x8c)](_[_0x3dde21(0xc8)](_0x19ee78['options']),function(_0xa6db9c){const _0x74ab19=_0x3dde21;return{'name':_0xa6db9c[_0x74ab19(0x9e)],'value':_0xa6db9c['name']};}):[]};})};}})[_0x513d69(0xcc)](respondWithResult(_0x28a845,null))[_0x513d69(0xa0)](function(_0x170a85){const _0x5ab648=_0x513d69;let _0x278a85=_0x55ba6c['query'][_0x5ab648(0xc2)]?0x1f4:_0x170a85['statusCode']||0x1f4;logger[_0x5ab648(0xb5)](_0x5ab648(0xbd),'getFields',_0x278a85,JSON['stringify'](_0x170a85)),delete _0x170a85[_0x5ab648(0xa8)],_0x278a85===0x191&&(_0x278a85=0x190),_0x28a845[_0x5ab648(0xe2)](_0x278a85)[_0x5ab648(0xe6)](_0x55ba6c['query'][_0x5ab648(0xc2)]?{'message':_0x5ab648(0xd8),'statusCode':_0x170a85[_0x5ab648(0xac)]}:_0x170a85);});else{const _0x50d931=0x1f4;_0x28a845[_0x513d69(0xe2)](_0x50d931)[_0x513d69(0xe6)]({'message':_0x513d69(0xd8),'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 3780330..3964907 100644 --- a/server/api/intSugarcrmAccount/intSugarcrmAccount.model.js +++ b/server/api/intSugarcrmAccount/intSugarcrmAccount.model.js @@ -1 +1 @@ -const a308_0x26ad=['exports','int_sugarcrm_accounts','./intSugarcrmAccount.attributes'];(function(_0x274edd,_0x26ad71){const _0x2cb4b3=function(_0x30ea0b){while(--_0x30ea0b){_0x274edd['push'](_0x274edd['shift']());}};_0x2cb4b3(++_0x26ad71);}(a308_0x26ad,0xc8));const a308_0x2cb4=function(_0x274edd,_0x26ad71){_0x274edd=_0x274edd-0x0;let _0x2cb4b3=a308_0x26ad[_0x274edd];return _0x2cb4b3;};const _0x1ba076=a308_0x2cb4;'use strict';const attributes=require(_0x1ba076('0x0'));module[_0x1ba076('0x1')]=function(_0x30ea0b){const _0x20f21b=_0x1ba076,_0x4cee22=_0x30ea0b['define']('SugarcrmAccount',attributes,{'tableName':_0x20f21b('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x4cee22;}; \ No newline at end of file +const a369_0x2df1=['init','./intSugarcrmAccount.options','exports','function','sequelize','./intSugarcrmAccount.attributes','SugarcrmAccount'];(function(_0x2ffce0,_0x729d14){const _0x2df10b=function(_0x2361f6){while(--_0x2361f6){_0x2ffce0['push'](_0x2ffce0['shift']());}};_0x2df10b(++_0x729d14);}(a369_0x2df1,0x112));const a369_0x2361=function(_0x2ffce0,_0x729d14){_0x2ffce0=_0x2ffce0-0x1a4;let _0x2df10b=a369_0x2df1[_0x2ffce0];return _0x2df10b;};const a369_0x42e19d=a369_0x2361;'use strict';const {Model}=require(a369_0x42e19d(0x1a7)),{attributes}=require(a369_0x42e19d(0x1a8)),{options}=require(a369_0x42e19d(0x1a4));class SugarcrmAccount extends Model{}function init(_0x1afe89,_0x370e59){const _0x2e9855=a369_0x42e19d,_0x34f0a2=options(_0x1afe89),_0x6a750c=typeof _0x370e59===_0x2e9855(0x1a6)?_0x370e59(_0x34f0a2):_0x34f0a2;return SugarcrmAccount['init'](attributes,_0x6a750c),SugarcrmAccount;}module[a369_0x42e19d(0x1a5)][a369_0x42e19d(0x1a9)]=SugarcrmAccount,module[a369_0x42e19d(0x1a5)][a369_0x42e19d(0x1aa)]=init; \ No newline at end of file diff --git a/server/api/intSugarcrmAccount/intSugarcrmAccount.options.js b/server/api/intSugarcrmAccount/intSugarcrmAccount.options.js new file mode 100644 index 0000000..a331a51 --- /dev/null +++ b/server/api/intSugarcrmAccount/intSugarcrmAccount.options.js @@ -0,0 +1 @@ +var a370_0x5cfc=['options','int_sugarcrm_accounts','exports'];(function(_0x24420d,_0x5a57de){var _0x5cfc95=function(_0x30f27d){while(--_0x30f27d){_0x24420d['push'](_0x24420d['shift']());}};_0x5cfc95(++_0x5a57de);}(a370_0x5cfc,0x80));var a370_0x30f2=function(_0x24420d,_0x5a57de){_0x24420d=_0x24420d-0xf1;var _0x5cfc95=a370_0x5cfc[_0x24420d];return _0x5cfc95;};var a370_0x10bb84=a370_0x30f2;function options(_0x30af48){var _0x36f04a=a370_0x30f2;return{'sequelize':_0x30af48,'tableName':_0x36f04a(0xf3),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a370_0x10bb84(0xf1)][a370_0x10bb84(0xf2)]=options; \ No newline at end of file diff --git a/server/api/intSugarcrmAccount/intSugarcrmAccount.rpc.js b/server/api/intSugarcrmAccount/intSugarcrmAccount.rpc.js index 8290e79..5d382e0 100644 --- a/server/api/intSugarcrmAccount/intSugarcrmAccount.rpc.js +++ b/server/api/intSugarcrmAccount/intSugarcrmAccount.rpc.js @@ -1 +1 @@ -const a309_0x5acc=['message','attributes','raw','model','then','include','map','findOne','debug','GetSugarcrmAccount','options','SugarcrmAccount','../../config/logger','where','info','limit','stringify','ShowSugarcrmAccount','rpc','error','catch','lodash'];(function(_0x43c795,_0x5accbd){const _0x51ca96=function(_0x14ac09){while(--_0x14ac09){_0x43c795['push'](_0x43c795['shift']());}};_0x51ca96(++_0x5accbd);}(a309_0x5acc,0x1d8));const a309_0x51ca=function(_0x43c795,_0x5accbd){_0x43c795=_0x43c795-0x0;let _0x51ca96=a309_0x5acc[_0x43c795];return _0x51ca96;};const _0x2209a5=a309_0x51ca;'use strict';const _=require(_0x2209a5('0xb')),db=require('../../mysqldb')['db'],logger=require(_0x2209a5('0x2'))(_0x2209a5('0x8'));exports[_0x2209a5('0x15')]=function(_0x14ac09){const _0xcf471f=this;return new Promise(function(_0x374330,_0x2156e7){const _0x5d35f3=a309_0x51ca;return db[_0x5d35f3('0x1')]['findAll']({'raw':_0x14ac09[_0x5d35f3('0x0')]?_0x14ac09[_0x5d35f3('0x0')][_0x5d35f3('0xe')]===undefined?!![]:![]:!![],'where':_0x14ac09[_0x5d35f3('0x0')]?_0x14ac09[_0x5d35f3('0x0')][_0x5d35f3('0x3')]||null:null,'attributes':_0x14ac09['options']?_0x14ac09[_0x5d35f3('0x0')][_0x5d35f3('0xd')]||null:null,'limit':_0x14ac09[_0x5d35f3('0x0')]?_0x14ac09['options'][_0x5d35f3('0x5')]||null:null,'include':_0x14ac09[_0x5d35f3('0x0')]?_0x14ac09[_0x5d35f3('0x0')]['include']?_[_0x5d35f3('0x12')](_0x14ac09[_0x5d35f3('0x0')][_0x5d35f3('0x11')],function(_0x54d835){const _0x4134e7=_0x5d35f3;return{'model':db[_0x54d835[_0x4134e7('0xf')]],'as':_0x54d835['as'],'attributes':_0x54d835[_0x4134e7('0xd')],'include':_0x54d835[_0x4134e7('0x11')]?_[_0x4134e7('0x12')](_0x54d835['include'],function(_0x10ea96){const _0x2231d2=_0x4134e7;return{'model':db[_0x10ea96[_0x2231d2('0xf')]],'as':_0x10ea96['as'],'attributes':_0x10ea96['attributes'],'include':_0x10ea96[_0x2231d2('0x11')]?_[_0x2231d2('0x12')](_0x10ea96['include'],function(_0x583ba3){const _0x5c5f7e=_0x2231d2;return{'model':db[_0x583ba3[_0x5c5f7e('0xf')]],'as':_0x583ba3['as'],'attributes':_0x583ba3[_0x5c5f7e('0xd')]};}):[]};}):[]};}):[]:[]})[_0x5d35f3('0x10')](function(_0x41ac8a){const _0x5cb20d=_0x5d35f3;logger[_0x5cb20d('0x4')](_0x5cb20d('0x15'),_0x14ac09),logger[_0x5cb20d('0x14')]('GetSugarcrmAccount',_0x14ac09,JSON[_0x5cb20d('0x6')](_0x41ac8a)),_0x374330(_0x41ac8a);})['catch'](function(_0xff46e2){const _0x53513b=_0x5d35f3;logger[_0x53513b('0x9')](_0x53513b('0x15'),_0xff46e2[_0x53513b('0xc')],_0x14ac09),_0x2156e7(_0xcf471f[_0x53513b('0x9')](0x1f4,_0xff46e2[_0x53513b('0xc')]));});});},exports[_0x2209a5('0x7')]=function(_0x42e290){const _0x20b5e1=this;return new Promise(function(_0x3a5562,_0x8b3606){const _0x17b550=a309_0x51ca;return db[_0x17b550('0x1')][_0x17b550('0x13')]({'raw':_0x42e290[_0x17b550('0x0')]?_0x42e290[_0x17b550('0x0')]['raw']===undefined?!![]:![]:!![],'where':_0x42e290[_0x17b550('0x0')]?_0x42e290[_0x17b550('0x0')]['where']||null:null,'attributes':_0x42e290['options']?_0x42e290['options'][_0x17b550('0xd')]||null:null,'include':_0x42e290[_0x17b550('0x0')]?_0x42e290[_0x17b550('0x0')][_0x17b550('0x11')]?_[_0x17b550('0x12')](_0x42e290[_0x17b550('0x0')]['include'],function(_0x6029e5){const _0x5c52fd=_0x17b550;return{'model':db[_0x6029e5[_0x5c52fd('0xf')]],'as':_0x6029e5['as'],'attributes':_0x6029e5[_0x5c52fd('0xd')],'include':_0x6029e5[_0x5c52fd('0x11')]?_['map'](_0x6029e5[_0x5c52fd('0x11')],function(_0x5c8150){const _0x1896a3=_0x5c52fd;return{'model':db[_0x5c8150[_0x1896a3('0xf')]],'as':_0x5c8150['as'],'attributes':_0x5c8150['attributes'],'include':_0x5c8150[_0x1896a3('0x11')]?_[_0x1896a3('0x12')](_0x5c8150[_0x1896a3('0x11')],function(_0x53560e){const _0x2aba2d=_0x1896a3;return{'model':db[_0x53560e[_0x2aba2d('0xf')]],'as':_0x53560e['as'],'attributes':_0x53560e['attributes']};}):[]};}):[]};}):[]:[]})['then'](function(_0x180e7d){const _0x571a8c=_0x17b550;logger[_0x571a8c('0x4')](_0x571a8c('0x7'),_0x42e290),logger[_0x571a8c('0x14')]('ShowSugarcrmAccount',_0x42e290,JSON[_0x571a8c('0x6')](_0x180e7d)),_0x3a5562(_0x180e7d);})[_0x17b550('0xa')](function(_0xef37){const _0x3c8a2b=_0x17b550;logger[_0x3c8a2b('0x9')](_0x3c8a2b('0x7'),_0xef37[_0x3c8a2b('0xc')],_0x42e290),_0x8b3606(_0x20b5e1[_0x3c8a2b('0x9')](0x1f4,_0xef37['message']));});});}; \ No newline at end of file +const a371_0x46b1=['info','rpc','then','options','model','limit','map','include','stringify','../../mysqldb','where','GetSugarcrmAccount','SugarcrmAccount','../../config/logger','attributes','message','debug','raw','ShowSugarcrmAccount','lodash','catch','error'];(function(_0x274259,_0x1a3758){const _0x46b141=function(_0x1af17c){while(--_0x1af17c){_0x274259['push'](_0x274259['shift']());}};_0x46b141(++_0x1a3758);}(a371_0x46b1,0x13c));const a371_0x1af1=function(_0x274259,_0x1a3758){_0x274259=_0x274259-0x1d0;let _0x46b141=a371_0x46b1[_0x274259];return _0x46b141;};const a371_0xfc065a=a371_0x1af1;'use strict';const _=require(a371_0xfc065a(0x1db)),db=require(a371_0xfc065a(0x1d1))['db'],logger=require(a371_0xfc065a(0x1d5))(a371_0xfc065a(0x1df));exports[a371_0xfc065a(0x1d3)]=function(_0x2883ac){const _0x2f873f=this;return new Promise(function(_0x575e17,_0x4e3954){const _0x4afac4=a371_0x1af1;return db[_0x4afac4(0x1d4)]['findAll']({'raw':_0x2883ac[_0x4afac4(0x1e1)]?_0x2883ac['options'][_0x4afac4(0x1d9)]===undefined?!![]:![]:!![],'where':_0x2883ac[_0x4afac4(0x1e1)]?_0x2883ac[_0x4afac4(0x1e1)][_0x4afac4(0x1d2)]||null:null,'attributes':_0x2883ac[_0x4afac4(0x1e1)]?_0x2883ac['options'][_0x4afac4(0x1d6)]||null:null,'limit':_0x2883ac[_0x4afac4(0x1e1)]?_0x2883ac['options'][_0x4afac4(0x1e3)]||null:null,'include':_0x2883ac[_0x4afac4(0x1e1)]?_0x2883ac[_0x4afac4(0x1e1)][_0x4afac4(0x1e5)]?_[_0x4afac4(0x1e4)](_0x2883ac[_0x4afac4(0x1e1)][_0x4afac4(0x1e5)],function(_0x5d17e9){const _0x1740bf=_0x4afac4;return{'model':db[_0x5d17e9[_0x1740bf(0x1e2)]],'as':_0x5d17e9['as'],'attributes':_0x5d17e9[_0x1740bf(0x1d6)],'include':_0x5d17e9[_0x1740bf(0x1e5)]?_[_0x1740bf(0x1e4)](_0x5d17e9[_0x1740bf(0x1e5)],function(_0x201ce0){const _0x3c394e=_0x1740bf;return{'model':db[_0x201ce0[_0x3c394e(0x1e2)]],'as':_0x201ce0['as'],'attributes':_0x201ce0['attributes'],'include':_0x201ce0['include']?_[_0x3c394e(0x1e4)](_0x201ce0[_0x3c394e(0x1e5)],function(_0x54fb04){const _0x5a4047=_0x3c394e;return{'model':db[_0x54fb04[_0x5a4047(0x1e2)]],'as':_0x54fb04['as'],'attributes':_0x54fb04['attributes']};}):[]};}):[]};}):[]:[]})['then'](function(_0x485382){const _0x4582fc=_0x4afac4;logger[_0x4582fc(0x1de)](_0x4582fc(0x1d3),_0x2883ac),logger[_0x4582fc(0x1d8)]('GetSugarcrmAccount',_0x2883ac,JSON[_0x4582fc(0x1d0)](_0x485382)),_0x575e17(_0x485382);})['catch'](function(_0x58c2bf){const _0x1c4b8a=_0x4afac4;logger[_0x1c4b8a(0x1dd)](_0x1c4b8a(0x1d3),_0x58c2bf[_0x1c4b8a(0x1d7)],_0x2883ac),_0x4e3954(_0x2f873f[_0x1c4b8a(0x1dd)](0x1f4,_0x58c2bf[_0x1c4b8a(0x1d7)]));});});},exports[a371_0xfc065a(0x1da)]=function(_0x13e531){const _0x5bdadb=this;return new Promise(function(_0x533a9a,_0x1275ea){const _0x4ee8f8=a371_0x1af1;return db[_0x4ee8f8(0x1d4)]['findOne']({'raw':_0x13e531[_0x4ee8f8(0x1e1)]?_0x13e531[_0x4ee8f8(0x1e1)][_0x4ee8f8(0x1d9)]===undefined?!![]:![]:!![],'where':_0x13e531[_0x4ee8f8(0x1e1)]?_0x13e531[_0x4ee8f8(0x1e1)][_0x4ee8f8(0x1d2)]||null:null,'attributes':_0x13e531[_0x4ee8f8(0x1e1)]?_0x13e531[_0x4ee8f8(0x1e1)]['attributes']||null:null,'include':_0x13e531['options']?_0x13e531[_0x4ee8f8(0x1e1)][_0x4ee8f8(0x1e5)]?_[_0x4ee8f8(0x1e4)](_0x13e531[_0x4ee8f8(0x1e1)][_0x4ee8f8(0x1e5)],function(_0x543732){const _0x33c794=_0x4ee8f8;return{'model':db[_0x543732[_0x33c794(0x1e2)]],'as':_0x543732['as'],'attributes':_0x543732['attributes'],'include':_0x543732[_0x33c794(0x1e5)]?_['map'](_0x543732[_0x33c794(0x1e5)],function(_0x3f4315){const _0x3c545f=_0x33c794;return{'model':db[_0x3f4315['model']],'as':_0x3f4315['as'],'attributes':_0x3f4315['attributes'],'include':_0x3f4315[_0x3c545f(0x1e5)]?_[_0x3c545f(0x1e4)](_0x3f4315[_0x3c545f(0x1e5)],function(_0x33262f){const _0x2a62b5=_0x3c545f;return{'model':db[_0x33262f[_0x2a62b5(0x1e2)]],'as':_0x33262f['as'],'attributes':_0x33262f[_0x2a62b5(0x1d6)]};}):[]};}):[]};}):[]:[]})[_0x4ee8f8(0x1e0)](function(_0x226eb){const _0x3f8a03=_0x4ee8f8;logger['info']('ShowSugarcrmAccount',_0x13e531),logger[_0x3f8a03(0x1d8)](_0x3f8a03(0x1da),_0x13e531,JSON['stringify'](_0x226eb)),_0x533a9a(_0x226eb);})[_0x4ee8f8(0x1dc)](function(_0x474e70){const _0x4aa16c=_0x4ee8f8;logger[_0x4aa16c(0x1dd)](_0x4aa16c(0x1da),_0x474e70[_0x4aa16c(0x1d7)],_0x13e531),_0x1275ea(_0x5bdadb[_0x4aa16c(0x1dd)](0x1f4,_0x474e70[_0x4aa16c(0x1d7)]));});});}; \ No newline at end of file diff --git a/server/api/intSugarcrmConfiguration/index.js b/server/api/intSugarcrmConfiguration/index.js index 51cfb78..1bbd8bf 100644 --- a/server/api/intSugarcrmConfiguration/index.js +++ b/server/api/intSugarcrmConfiguration/index.js @@ -1 +1 @@ -const a310_0x178f=['../../components/auth/service','express','/:id/subjects','put','show','exports','isAuthenticated','/:id','get','/:id/descriptions','post','./intSugarcrmConfiguration.controller','getSubjects'];(function(_0x118e97,_0x178f49){const _0x401258=function(_0x3354ac){while(--_0x3354ac){_0x118e97['push'](_0x118e97['shift']());}};_0x401258(++_0x178f49);}(a310_0x178f,0x125));const a310_0x4012=function(_0x118e97,_0x178f49){_0x118e97=_0x118e97-0x0;let _0x401258=a310_0x178f[_0x118e97];return _0x401258;};const _0x3a6ad0=a310_0x4012;'use strict';const express=require(_0x3a6ad0('0x7')),router=express['Router'](),auth=require(_0x3a6ad0('0x6')),controller=require(_0x3a6ad0('0x4'));router[_0x3a6ad0('0x1')]('/',auth[_0x3a6ad0('0xc')](),controller['index']),router[_0x3a6ad0('0x1')]('/:id',auth[_0x3a6ad0('0xc')](),controller[_0x3a6ad0('0xa')]),router['get']('/:id/fields',auth[_0x3a6ad0('0xc')](),controller['getFields']),router[_0x3a6ad0('0x1')](_0x3a6ad0('0x8'),auth[_0x3a6ad0('0xc')](),controller[_0x3a6ad0('0x5')]),router['get'](_0x3a6ad0('0x2'),auth[_0x3a6ad0('0xc')](),controller['getDescriptions']),router[_0x3a6ad0('0x3')]('/',auth[_0x3a6ad0('0xc')](),controller['create']),router[_0x3a6ad0('0x9')]('/:id',auth['isAuthenticated'](),controller['update']),router['delete'](_0x3a6ad0('0x0'),auth['isAuthenticated'](),controller['destroy']),module[_0x3a6ad0('0xb')]=router; \ No newline at end of file +const a372_0x418d=['destroy','/:id','/:id/descriptions','./intSugarcrmConfiguration.controller','/:id/fields','create','get','Router','../../components/auth/service','isAuthenticated','exports','delete','/:id/subjects','post','getDescriptions','express','put','show','index','getFields'];(function(_0x1a6600,_0x453a7f){const _0x418d3f=function(_0x416d79){while(--_0x416d79){_0x1a6600['push'](_0x1a6600['shift']());}};_0x418d3f(++_0x453a7f);}(a372_0x418d,0xfa));const a372_0x416d=function(_0x1a6600,_0x453a7f){_0x1a6600=_0x1a6600-0xf6;let _0x418d3f=a372_0x418d[_0x1a6600];return _0x418d3f;};const a372_0x1973f6=a372_0x416d;'use strict';const express=require(a372_0x1973f6(0xfb)),router=express[a372_0x1973f6(0x107)](),auth=require(a372_0x1973f6(0x108)),controller=require(a372_0x1973f6(0x103));router[a372_0x1973f6(0x106)]('/',auth['isAuthenticated'](),controller[a372_0x1973f6(0xfe)]),router[a372_0x1973f6(0x106)](a372_0x1973f6(0x101),auth['isAuthenticated'](),controller[a372_0x1973f6(0xfd)]),router[a372_0x1973f6(0x106)](a372_0x1973f6(0x104),auth[a372_0x1973f6(0x109)](),controller[a372_0x1973f6(0xff)]),router['get'](a372_0x1973f6(0xf8),auth['isAuthenticated'](),controller['getSubjects']),router[a372_0x1973f6(0x106)](a372_0x1973f6(0x102),auth[a372_0x1973f6(0x109)](),controller[a372_0x1973f6(0xfa)]),router[a372_0x1973f6(0xf9)]('/',auth[a372_0x1973f6(0x109)](),controller[a372_0x1973f6(0x105)]),router[a372_0x1973f6(0xfc)](a372_0x1973f6(0x101),auth[a372_0x1973f6(0x109)](),controller['update']),router[a372_0x1973f6(0xf7)](a372_0x1973f6(0x101),auth[a372_0x1973f6(0x109)](),controller[a372_0x1973f6(0x100)]),module[a372_0x1973f6(0xf6)]=router; \ No newline at end of file diff --git a/server/api/intSugarcrmConfiguration/intSugarcrmConfiguration.attributes.js b/server/api/intSugarcrmConfiguration/intSugarcrmConfiguration.attributes.js index d075f58..ce55036 100644 --- a/server/api/intSugarcrmConfiguration/intSugarcrmConfiguration.attributes.js +++ b/server/api/intSugarcrmConfiguration/intSugarcrmConfiguration.attributes.js @@ -1 +1 @@ -const a311_0x34ba=['exports','sequelize','STRING'];(function(_0x3ae4ba,_0x34bac6){const _0x3625ac=function(_0x76d561){while(--_0x76d561){_0x3ae4ba['push'](_0x3ae4ba['shift']());}};_0x3625ac(++_0x34bac6);}(a311_0x34ba,0x142));const a311_0x3625=function(_0x3ae4ba,_0x34bac6){_0x3ae4ba=_0x3ae4ba-0x0;let _0x3625ac=a311_0x34ba[_0x3ae4ba];return _0x3625ac;};const _0x54e3ca=a311_0x3625;'use strict';const Sequelize=require(_0x54e3ca('0x0'));module[_0x54e3ca('0x2')]={'name':{'type':Sequelize['STRING']},'description':{'type':Sequelize[_0x54e3ca('0x1')]}}; \ No newline at end of file +const a373_0x4c0d=['sequelize','STRING','exports','attributes'];(function(_0x56741b,_0x341245){const _0x4c0d81=function(_0x50eb5f){while(--_0x50eb5f){_0x56741b['push'](_0x56741b['shift']());}};_0x4c0d81(++_0x341245);}(a373_0x4c0d,0xfe));const a373_0x50eb=function(_0x56741b,_0x341245){_0x56741b=_0x56741b-0xd3;let _0x4c0d81=a373_0x4c0d[_0x56741b];return _0x4c0d81;};const a373_0x673ba2=a373_0x50eb;'use strict';const {DataTypes}=require(a373_0x673ba2(0xd5)),attributes={'name':{'type':DataTypes[a373_0x673ba2(0xd6)]},'description':{'type':DataTypes[a373_0x673ba2(0xd6)]}};module[a373_0x673ba2(0xd3)][a373_0x673ba2(0xd4)]=attributes; \ No newline at end of file diff --git a/server/api/intSugarcrmConfiguration/intSugarcrmConfiguration.controller.js b/server/api/intSugarcrmConfiguration/intSugarcrmConfiguration.controller.js index ce18aa5..9f7e00a 100644 --- a/server/api/intSugarcrmConfiguration/intSugarcrmConfiguration.controller.js +++ b/server/api/intSugarcrmConfiguration/intSugarcrmConfiguration.controller.js @@ -1 +1 @@ -const a312_0x45c5=['VIRTUAL','limit','count','fieldName','filters','nolimit','lodash','pick','send','offset','sendStatus','create','../../components/parsers/qs','keys','name','params','include','SugarcrmField','set','SugarcrmConfiguration','length','rawAttributes','getDescriptions','includeAll','options','map','fields','status','findOne','merge','then','json','getSubjects','stack','index','catch','undefined','query','like','where','../../mysqldb','destroy','body','update','rows','order','sort','filter','attributes','findAll','getFields','api','type','model','intersection'];(function(_0x46ac1a,_0x45c5ef){const _0x1fd3c3=function(_0x339b00){while(--_0x339b00){_0x46ac1a['push'](_0x46ac1a['shift']());}};_0x1fd3c3(++_0x45c5ef);}(a312_0x45c5,0xe9));const a312_0x1fd3=function(_0x46ac1a,_0x45c5ef){_0x46ac1a=_0x46ac1a-0x0;let _0x1fd3c3=a312_0x45c5[_0x46ac1a];return _0x1fd3c3;};const _0x59d5f5=a312_0x1fd3;'use strict';const _=require(_0x59d5f5('0x30')),qs=require(_0x59d5f5('0x36')),logger=require('../../config/logger')(_0x59d5f5('0x26')),db=require(_0x59d5f5('0x1b'))['db'],{Op}=require('sequelize');function respondWithResult(_0x339b00,_0x4c0d6b){return _0x4c0d6b=_0x4c0d6b||0xc8,function(_0x4b4797){const _0xaa6ec5=a312_0x1fd3;if(_0x4b4797)return _0x339b00[_0xaa6ec5('0xe')](_0x4c0d6b)[_0xaa6ec5('0x12')](_0x4b4797);};}function respondWithFilteredResult(_0x55dc27,_0x36b4fa){return function(_0x4ce486){const _0x4529ca=a312_0x1fd3;if(_0x4ce486){const _0x198b67=_0x4ce486[_0x4529ca('0x2c')],_0xa0af2f=_0x36b4fa[_0x4529ca('0x33')];let _0x417982=_0x36b4fa['offset']+_0x36b4fa[_0x4529ca('0x2b')],_0x5b0b08;return _0x417982>=_0x198b67?(_0x417982=_0x198b67,_0x5b0b08=0xc8):_0x5b0b08=0xce,_0x55dc27[_0x4529ca('0xe')](_0x5b0b08),_0x55dc27[_0x4529ca('0x5')]('Content-Range',_0xa0af2f+'-'+_0x417982+'/'+_0x198b67)[_0x4529ca('0x12')](_0x4ce486);}return null;};}function saveUpdates(_0x402941){return function(_0x1be4f2){const _0x550620=a312_0x1fd3;if(_0x1be4f2)return _0x1be4f2[_0x550620('0x1e')](_0x402941)['then'](function(_0x427512){return _0x427512;});return null;};}function removeEntity(_0x464690){return function(_0x5a8707){const _0x1da3c7=a312_0x1fd3;if(_0x5a8707)return _0x5a8707[_0x1da3c7('0x1c')]()[_0x1da3c7('0x11')](function(){_0x464690['status'](0xcc)['end']();});};}function handleEntityNotFound(_0x1111ff){return function(_0x4aa30d){const _0x498932=a312_0x1fd3;return!_0x4aa30d&&_0x1111ff[_0x498932('0x34')](0x194),_0x4aa30d;};}function handleError(_0x4a9d6b,_0x4a5845){return _0x4a5845=_0x4a5845||0x1f4,function(_0x115419){const _0xbdc2ac=a312_0x1fd3;logger['error'](_0x115419[_0xbdc2ac('0x14')]),_0x115419[_0xbdc2ac('0x1')]&&delete _0x115419[_0xbdc2ac('0x1')],_0x4a9d6b[_0xbdc2ac('0xe')](_0x4a5845)[_0xbdc2ac('0x32')](_0x115419);};}exports[_0x59d5f5('0x15')]=function(_0x37945d,_0x4ac620){const _0x29bcf4=_0x59d5f5;let _0x5aa248={};const _0x2e81a6={},_0x50555d={'count':0x0,'rows':[]},_0x484401=_[_0x29bcf4('0xc')](db['SugarcrmConfiguration'][_0x29bcf4('0x8')],function(_0x31e919){const _0x560b00=_0x29bcf4;return{'name':_0x31e919[_0x560b00('0x2d')],'type':_0x31e919[_0x560b00('0x27')]['key']};});_0x2e81a6[_0x29bcf4('0x28')]=_[_0x29bcf4('0xc')](_0x484401,_0x29bcf4('0x1')),_0x2e81a6[_0x29bcf4('0x18')]=_['keys'](_0x37945d[_0x29bcf4('0x18')]),_0x2e81a6[_0x29bcf4('0x2e')]=_['intersection'](_0x2e81a6[_0x29bcf4('0x28')],_0x2e81a6[_0x29bcf4('0x18')]),_0x5aa248[_0x29bcf4('0x23')]=_['intersection'](_0x2e81a6[_0x29bcf4('0x28')],qs[_0x29bcf4('0xd')](_0x37945d['query'][_0x29bcf4('0xd')])),_0x5aa248[_0x29bcf4('0x23')]=_0x5aa248[_0x29bcf4('0x23')][_0x29bcf4('0x7')]?_0x5aa248[_0x29bcf4('0x23')]:_0x2e81a6[_0x29bcf4('0x28')];typeof _0x37945d[_0x29bcf4('0x18')][_0x29bcf4('0x2f')]===_0x29bcf4('0x17')&&(_0x5aa248['limit']=qs[_0x29bcf4('0x2b')](_0x37945d['query'][_0x29bcf4('0x2b')]),_0x5aa248['offset']=qs[_0x29bcf4('0x33')](_0x37945d[_0x29bcf4('0x18')][_0x29bcf4('0x33')]));_0x5aa248[_0x29bcf4('0x20')]=qs[_0x29bcf4('0x21')](_0x37945d[_0x29bcf4('0x18')][_0x29bcf4('0x21')]),_0x5aa248[_0x29bcf4('0x1a')]=qs[_0x29bcf4('0x2e')](_[_0x29bcf4('0x31')](_0x37945d[_0x29bcf4('0x18')],_0x2e81a6['filters']),_0x484401);_0x37945d['query'][_0x29bcf4('0x22')]&&(_0x5aa248[_0x29bcf4('0x1a')]=_[_0x29bcf4('0x10')](_0x5aa248['where'],{[Op['or']]:_[_0x29bcf4('0xc')](_0x484401,function(_0x5a5246){const _0x33f326=_0x29bcf4;if(_0x5a5246['type']!==_0x33f326('0x2a')){const _0x585cf8={};return _0x585cf8[_0x5a5246[_0x33f326('0x1')]]={[Op['like']]:'%'+_0x37945d[_0x33f326('0x18')][_0x33f326('0x22')]+'%'},_0x585cf8;}})}));_0x5aa248=_[_0x29bcf4('0x10')]({},_0x5aa248,_0x37945d['options']);const _0x5b8b4f={'where':_0x5aa248[_0x29bcf4('0x1a')]};return db[_0x29bcf4('0x6')][_0x29bcf4('0x2c')](_0x5b8b4f)[_0x29bcf4('0x11')](function(_0x2434cf){const _0x28406e=_0x29bcf4;return _0x50555d[_0x28406e('0x2c')]=_0x2434cf,_0x37945d[_0x28406e('0x18')]['includeAll']&&(_0x5aa248[_0x28406e('0x3')]=[{'all':!![]}]),db[_0x28406e('0x6')][_0x28406e('0x24')](_0x5aa248);})[_0x29bcf4('0x11')](function(_0x189866){const _0x544977=_0x29bcf4;return _0x50555d[_0x544977('0x1f')]=_0x189866,_0x50555d;})[_0x29bcf4('0x11')](respondWithFilteredResult(_0x4ac620,_0x5aa248))[_0x29bcf4('0x16')](handleError(_0x4ac620,null));},exports['show']=function(_0x117462,_0x2f0ddb){const _0x5ed3e2=_0x59d5f5;let _0x4d8bac={'raw':![],'where':{'id':_0x117462[_0x5ed3e2('0x2')]['id']}};const _0x2466df={};return _0x2466df[_0x5ed3e2('0x28')]=_[_0x5ed3e2('0x0')](db[_0x5ed3e2('0x6')][_0x5ed3e2('0x8')]),_0x2466df[_0x5ed3e2('0x18')]=_[_0x5ed3e2('0x0')](_0x117462[_0x5ed3e2('0x18')]),_0x2466df[_0x5ed3e2('0x2e')]=_[_0x5ed3e2('0x29')](_0x2466df['model'],_0x2466df[_0x5ed3e2('0x18')]),_0x4d8bac[_0x5ed3e2('0x23')]=_[_0x5ed3e2('0x29')](_0x2466df[_0x5ed3e2('0x28')],qs['fields'](_0x117462[_0x5ed3e2('0x18')][_0x5ed3e2('0xd')])),_0x4d8bac['attributes']=_0x4d8bac[_0x5ed3e2('0x23')][_0x5ed3e2('0x7')]?_0x4d8bac['attributes']:_0x2466df[_0x5ed3e2('0x28')],_0x117462[_0x5ed3e2('0x18')][_0x5ed3e2('0xa')]&&(_0x4d8bac['include']=[{'all':!![]}]),_0x4d8bac=_['merge']({},_0x4d8bac,_0x117462[_0x5ed3e2('0xb')]),db[_0x5ed3e2('0x6')][_0x5ed3e2('0xf')](_0x4d8bac)[_0x5ed3e2('0x11')](handleEntityNotFound(_0x2f0ddb,null))[_0x5ed3e2('0x11')](respondWithResult(_0x2f0ddb,null))[_0x5ed3e2('0x16')](handleError(_0x2f0ddb,null));},exports[_0x59d5f5('0x35')]=function(_0x3e2997,_0x237223){const _0x93723d=_0x59d5f5;return db[_0x93723d('0x6')][_0x93723d('0x35')](_0x3e2997['body'],{})[_0x93723d('0x11')](respondWithResult(_0x237223,0xc9))[_0x93723d('0x16')](handleError(_0x237223,null));},exports['update']=function(_0x509648,_0x3d0a80){const _0x480aac=_0x59d5f5;return _0x509648[_0x480aac('0x1d')]['id']&&delete _0x509648[_0x480aac('0x1d')]['id'],db['SugarcrmConfiguration']['findOne']({'where':{'id':_0x509648[_0x480aac('0x2')]['id']}})[_0x480aac('0x11')](handleEntityNotFound(_0x3d0a80,null))[_0x480aac('0x11')](saveUpdates(_0x509648[_0x480aac('0x1d')],null))[_0x480aac('0x11')](respondWithResult(_0x3d0a80,null))[_0x480aac('0x16')](handleError(_0x3d0a80,null));},exports[_0x59d5f5('0x1c')]=function(_0x38e59b,_0x5c3063){const _0x2242d1=_0x59d5f5;return db['SugarcrmConfiguration'][_0x2242d1('0xf')]({'where':{'id':_0x38e59b['params']['id']}})[_0x2242d1('0x11')](handleEntityNotFound(_0x5c3063,null))[_0x2242d1('0x11')](removeEntity(_0x5c3063,null))['catch'](handleError(_0x5c3063,null));},exports[_0x59d5f5('0x25')]=function(_0x54da84,_0xefb31c){const _0x555fda=_0x59d5f5;let _0x39131c={};const _0x30b6ed={};let _0x1b7809,_0x1a5e8a;return db[_0x555fda('0x6')][_0x555fda('0xf')]({'where':{'id':_0x54da84['params']['id']}})['then'](handleEntityNotFound(_0xefb31c,null))[_0x555fda('0x11')](function(_0x317436){const _0x1549a7=_0x555fda;if(_0x317436)return _0x1b7809=_0x317436,_0x30b6ed['model']=_[_0x1549a7('0x0')](db[_0x1549a7('0x4')][_0x1549a7('0x8')]),_0x30b6ed['query']=_['keys'](_0x54da84[_0x1549a7('0x18')]),_0x30b6ed[_0x1549a7('0x2e')]=_[_0x1549a7('0x29')](_0x30b6ed['model'],_0x30b6ed[_0x1549a7('0x18')]),_0x39131c['attributes']=_[_0x1549a7('0x29')](_0x30b6ed['model'],qs[_0x1549a7('0xd')](_0x54da84[_0x1549a7('0x18')][_0x1549a7('0xd')])),_0x39131c[_0x1549a7('0x23')]=_0x39131c[_0x1549a7('0x23')][_0x1549a7('0x7')]?_0x39131c[_0x1549a7('0x23')]:_0x30b6ed[_0x1549a7('0x28')],_0x39131c[_0x1549a7('0x20')]=qs[_0x1549a7('0x21')](_0x54da84['query'][_0x1549a7('0x21')]),_0x39131c['where']=qs[_0x1549a7('0x2e')](_[_0x1549a7('0x31')](_0x54da84[_0x1549a7('0x18')],_0x30b6ed[_0x1549a7('0x2e')])),_0x54da84['query'][_0x1549a7('0x22')]&&(_0x39131c[_0x1549a7('0x1a')]=_[_0x1549a7('0x10')](_0x39131c[_0x1549a7('0x1a')],{[Op['or']]:_[_0x1549a7('0xc')](_0x39131c['attributes'],function(_0x81750b){const _0x1c2563=_0x1549a7,_0x54763b={};return _0x54763b[_0x81750b]={[Op['like']]:'%'+_0x54da84['query'][_0x1c2563('0x22')]+'%'},_0x54763b;})})),_0x39131c=_['merge']({},_0x39131c,_0x54da84[_0x1549a7('0xb')]),_0x1b7809[_0x1549a7('0x25')](_0x39131c);})[_0x555fda('0x11')](function(_0x21083c){const _0x4dcaa3=_0x555fda;if(_0x21083c)return _0x1a5e8a=_0x21083c[_0x4dcaa3('0x7')],typeof _0x54da84[_0x4dcaa3('0x18')][_0x4dcaa3('0x2f')]===_0x4dcaa3('0x17')&&(_0x39131c['limit']=qs['limit'](_0x54da84[_0x4dcaa3('0x18')][_0x4dcaa3('0x2b')]),_0x39131c[_0x4dcaa3('0x33')]=qs[_0x4dcaa3('0x33')](_0x54da84[_0x4dcaa3('0x18')]['offset'])),_0x1b7809[_0x4dcaa3('0x25')](_0x39131c);})['then'](function(_0x27a485){if(_0x27a485)return _0x27a485?{'count':_0x1a5e8a,'rows':_0x27a485}:null;})[_0x555fda('0x11')](respondWithResult(_0xefb31c,null))[_0x555fda('0x16')](handleError(_0xefb31c,null));},exports['getSubjects']=function(_0x437c5d,_0x16ebad){const _0x1b0852=_0x59d5f5;let _0x16a6f4={};const _0x4f1178={};let _0xef3210,_0x1232ff;return db['SugarcrmConfiguration'][_0x1b0852('0xf')]({'where':{'id':_0x437c5d['params']['id']}})[_0x1b0852('0x11')](handleEntityNotFound(_0x16ebad,null))['then'](function(_0x3b91c1){const _0x38012d=_0x1b0852;if(_0x3b91c1)return _0xef3210=_0x3b91c1,_0x4f1178[_0x38012d('0x28')]=_[_0x38012d('0x0')](db[_0x38012d('0x4')]['rawAttributes']),_0x4f1178[_0x38012d('0x18')]=_[_0x38012d('0x0')](_0x437c5d[_0x38012d('0x18')]),_0x4f1178[_0x38012d('0x2e')]=_[_0x38012d('0x29')](_0x4f1178['model'],_0x4f1178[_0x38012d('0x18')]),_0x16a6f4[_0x38012d('0x23')]=_[_0x38012d('0x29')](_0x4f1178['model'],qs[_0x38012d('0xd')](_0x437c5d[_0x38012d('0x18')][_0x38012d('0xd')])),_0x16a6f4[_0x38012d('0x23')]=_0x16a6f4[_0x38012d('0x23')][_0x38012d('0x7')]?_0x16a6f4[_0x38012d('0x23')]:_0x4f1178[_0x38012d('0x28')],_0x16a6f4[_0x38012d('0x20')]=qs[_0x38012d('0x21')](_0x437c5d[_0x38012d('0x18')]['sort']),_0x16a6f4['where']=qs['filters'](_[_0x38012d('0x31')](_0x437c5d['query'],_0x4f1178[_0x38012d('0x2e')])),_0x437c5d['query'][_0x38012d('0x22')]&&(_0x16a6f4[_0x38012d('0x1a')]=_[_0x38012d('0x10')](_0x16a6f4['where'],{[Op['or']]:_[_0x38012d('0xc')](_0x16a6f4[_0x38012d('0x23')],function(_0x58e256){const _0x2499f3=_0x38012d,_0x3108a9={};return _0x3108a9[_0x58e256]={[Op['like']]:'%'+_0x437c5d[_0x2499f3('0x18')][_0x2499f3('0x22')]+'%'},_0x3108a9;})})),_0x16a6f4=_[_0x38012d('0x10')]({},_0x16a6f4,_0x437c5d[_0x38012d('0xb')]),_0xef3210[_0x38012d('0x13')](_0x16a6f4);})[_0x1b0852('0x11')](function(_0x234fa4){const _0x87cb99=_0x1b0852;if(_0x234fa4)return _0x1232ff=_0x234fa4[_0x87cb99('0x7')],typeof _0x437c5d[_0x87cb99('0x18')][_0x87cb99('0x2f')]===_0x87cb99('0x17')&&(_0x16a6f4[_0x87cb99('0x2b')]=qs['limit'](_0x437c5d[_0x87cb99('0x18')][_0x87cb99('0x2b')]),_0x16a6f4['offset']=qs[_0x87cb99('0x33')](_0x437c5d['query'][_0x87cb99('0x33')])),_0xef3210['getSubjects'](_0x16a6f4);})[_0x1b0852('0x11')](function(_0xced19e){if(_0xced19e)return _0xced19e?{'count':_0x1232ff,'rows':_0xced19e}:null;})[_0x1b0852('0x11')](respondWithResult(_0x16ebad,null))[_0x1b0852('0x16')](handleError(_0x16ebad,null));},exports['getDescriptions']=function(_0x140865,_0x1e6fcb){const _0x4ddd31=_0x59d5f5;let _0x260a23={};const _0x42227f={};let _0x3000fd,_0x5b79cf;return db[_0x4ddd31('0x6')]['findOne']({'where':{'id':_0x140865[_0x4ddd31('0x2')]['id']}})[_0x4ddd31('0x11')](handleEntityNotFound(_0x1e6fcb,null))[_0x4ddd31('0x11')](function(_0x359075){const _0x2c31fa=_0x4ddd31;if(_0x359075)return _0x3000fd=_0x359075,_0x42227f['model']=_[_0x2c31fa('0x0')](db[_0x2c31fa('0x4')][_0x2c31fa('0x8')]),_0x42227f[_0x2c31fa('0x18')]=_[_0x2c31fa('0x0')](_0x140865[_0x2c31fa('0x18')]),_0x42227f['filters']=_[_0x2c31fa('0x29')](_0x42227f[_0x2c31fa('0x28')],_0x42227f[_0x2c31fa('0x18')]),_0x260a23['attributes']=_[_0x2c31fa('0x29')](_0x42227f['model'],qs[_0x2c31fa('0xd')](_0x140865[_0x2c31fa('0x18')][_0x2c31fa('0xd')])),_0x260a23[_0x2c31fa('0x23')]=_0x260a23['attributes'][_0x2c31fa('0x7')]?_0x260a23[_0x2c31fa('0x23')]:_0x42227f['model'],_0x260a23['order']=qs[_0x2c31fa('0x21')](_0x140865[_0x2c31fa('0x18')][_0x2c31fa('0x21')]),_0x260a23[_0x2c31fa('0x1a')]=qs[_0x2c31fa('0x2e')](_[_0x2c31fa('0x31')](_0x140865[_0x2c31fa('0x18')],_0x42227f[_0x2c31fa('0x2e')])),_0x140865['query'][_0x2c31fa('0x22')]&&(_0x260a23['where']=_[_0x2c31fa('0x10')](_0x260a23[_0x2c31fa('0x1a')],{[Op['or']]:_[_0x2c31fa('0xc')](_0x260a23['attributes'],function(_0x1cc318){const _0x1098e6=_0x2c31fa,_0x2ad208={};return _0x2ad208[_0x1cc318]={[Op[_0x1098e6('0x19')]]:'%'+_0x140865[_0x1098e6('0x18')]['filter']+'%'},_0x2ad208;})})),_0x260a23=_[_0x2c31fa('0x10')]({},_0x260a23,_0x140865[_0x2c31fa('0xb')]),_0x3000fd['getDescriptions'](_0x260a23);})[_0x4ddd31('0x11')](function(_0x5e628f){const _0x5c9ba9=_0x4ddd31;if(_0x5e628f)return _0x5b79cf=_0x5e628f[_0x5c9ba9('0x7')],typeof _0x140865['query']['nolimit']===_0x5c9ba9('0x17')&&(_0x260a23[_0x5c9ba9('0x2b')]=qs[_0x5c9ba9('0x2b')](_0x140865[_0x5c9ba9('0x18')][_0x5c9ba9('0x2b')]),_0x260a23[_0x5c9ba9('0x33')]=qs[_0x5c9ba9('0x33')](_0x140865[_0x5c9ba9('0x18')][_0x5c9ba9('0x33')])),_0x3000fd[_0x5c9ba9('0x9')](_0x260a23);})[_0x4ddd31('0x11')](function(_0x8b0e5c){if(_0x8b0e5c)return _0x8b0e5c?{'count':_0x5b79cf,'rows':_0x8b0e5c}:null;})[_0x4ddd31('0x11')](respondWithResult(_0x1e6fcb,null))[_0x4ddd31('0x16')](handleError(_0x1e6fcb,null));}; \ No newline at end of file +const a374_0x2bdf=['create','includeAll','offset','lodash','error','fields','length','rawAttributes','filters','findOne','set','json','keys','filter','nolimit','merge','where','count','findAll','catch','params','../../mysqldb','include','like','getSubjects','map','name','query','VIRTUAL','intersection','send','sendStatus','update','status','../../config/logger','show','Content-Range','body','getFields','key','order','undefined','destroy','getDescriptions','model','limit','sort','attributes','api','then','sequelize','SugarcrmConfiguration','../../components/parsers/qs','SugarcrmField','options','stack','pick','type'];(function(_0x351110,_0x28fba3){const _0x2bdf39=function(_0x10cad7){while(--_0x10cad7){_0x351110['push'](_0x351110['shift']());}};_0x2bdf39(++_0x28fba3);}(a374_0x2bdf,0x149));const a374_0x10ca=function(_0x351110,_0x28fba3){_0x351110=_0x351110-0xc6;let _0x2bdf39=a374_0x2bdf[_0x351110];return _0x2bdf39;};const a374_0x27b804=a374_0x10ca;'use strict';const _=require(a374_0x27b804(0xdc)),qs=require(a374_0x27b804(0xd3)),logger=require(a374_0x27b804(0xfb))(a374_0x27b804(0xcf)),{db}=require(a374_0x27b804(0xee)),{Op}=require(a374_0x27b804(0xd1));function respondWithResult(_0x3be5bd,_0x16c37c){return _0x16c37c=_0x16c37c||0xc8,function(_0x3d2bb5){const _0x3bec52=a374_0x10ca;if(_0x3d2bb5)return _0x3be5bd[_0x3bec52(0xfa)](_0x16c37c)[_0x3bec52(0xe4)](_0x3d2bb5);};}function respondWithFilteredResult(_0x16ab13,_0x301fa6){return function(_0x249131){const _0x2a5231=a374_0x10ca;if(_0x249131){const _0x4ea7a4=_0x249131[_0x2a5231(0xea)],_0x314402=_0x301fa6['offset'];let _0x2e6bfd=_0x301fa6[_0x2a5231(0xdb)]+_0x301fa6[_0x2a5231(0xcc)],_0x5bcfa2;return _0x2e6bfd>=_0x4ea7a4?(_0x2e6bfd=_0x4ea7a4,_0x5bcfa2=0xc8):_0x5bcfa2=0xce,_0x16ab13[_0x2a5231(0xfa)](_0x5bcfa2),_0x16ab13[_0x2a5231(0xe3)](_0x2a5231(0xfd),_0x314402+'-'+_0x2e6bfd+'/'+_0x4ea7a4)[_0x2a5231(0xe4)](_0x249131);}return null;};}function saveUpdates(_0xe546a4){return function(_0x206791){const _0x52b1ca=a374_0x10ca;if(_0x206791)return _0x206791[_0x52b1ca(0xf9)](_0xe546a4)[_0x52b1ca(0xd0)](function(_0x164b81){return _0x164b81;});return null;};}function removeEntity(_0x4f2703){return function(_0x3d0ac2){const _0x258045=a374_0x10ca;if(_0x3d0ac2)return _0x3d0ac2['destroy']()[_0x258045(0xd0)](function(){_0x4f2703['status'](0xcc)['end']();});};}function handleEntityNotFound(_0xfb2d69){return function(_0x3eb0e6){const _0x5a8202=a374_0x10ca;return!_0x3eb0e6&&_0xfb2d69[_0x5a8202(0xf8)](0x194),_0x3eb0e6;};}function handleError(_0x22d481,_0x4ce3e7){return _0x4ce3e7=_0x4ce3e7||0x1f4,function(_0x52c674){const _0xf88b3c=a374_0x10ca;logger[_0xf88b3c(0xdd)](_0x52c674[_0xf88b3c(0xd6)]),_0x52c674[_0xf88b3c(0xf3)]&&delete _0x52c674[_0xf88b3c(0xf3)],_0x22d481[_0xf88b3c(0xfa)](_0x4ce3e7)[_0xf88b3c(0xf7)](_0x52c674);};}exports['index']=function(_0x271306,_0x19366c){const _0x1e560f=a374_0x27b804;let _0x53516c={};const _0x5ee8e7={},_0x5c1b0c={'count':0x0,'rows':[]},_0x55cabd=_[_0x1e560f(0xf2)](db['SugarcrmConfiguration']['rawAttributes'],function(_0x2de593){const _0x22f91e=_0x1e560f;return{'name':_0x2de593['fieldName'],'type':_0x2de593['type'][_0x22f91e(0xc6)]};});_0x5ee8e7['model']=_[_0x1e560f(0xf2)](_0x55cabd,_0x1e560f(0xf3)),_0x5ee8e7[_0x1e560f(0xf4)]=_['keys'](_0x271306['query']),_0x5ee8e7['filters']=_[_0x1e560f(0xf6)](_0x5ee8e7[_0x1e560f(0xcb)],_0x5ee8e7[_0x1e560f(0xf4)]),_0x53516c[_0x1e560f(0xce)]=_[_0x1e560f(0xf6)](_0x5ee8e7[_0x1e560f(0xcb)],qs[_0x1e560f(0xde)](_0x271306['query']['fields'])),_0x53516c[_0x1e560f(0xce)]=_0x53516c['attributes'][_0x1e560f(0xdf)]?_0x53516c[_0x1e560f(0xce)]:_0x5ee8e7['model'];typeof _0x271306[_0x1e560f(0xf4)][_0x1e560f(0xe7)]===_0x1e560f(0xc8)&&(_0x53516c[_0x1e560f(0xcc)]=qs[_0x1e560f(0xcc)](_0x271306['query'][_0x1e560f(0xcc)]),_0x53516c[_0x1e560f(0xdb)]=qs['offset'](_0x271306[_0x1e560f(0xf4)][_0x1e560f(0xdb)]));_0x53516c[_0x1e560f(0xc7)]=qs['sort'](_0x271306[_0x1e560f(0xf4)][_0x1e560f(0xcd)]),_0x53516c[_0x1e560f(0xe9)]=qs[_0x1e560f(0xe1)](_['pick'](_0x271306[_0x1e560f(0xf4)],_0x5ee8e7['filters']),_0x55cabd);_0x271306[_0x1e560f(0xf4)][_0x1e560f(0xe6)]&&(_0x53516c['where']=_[_0x1e560f(0xe8)](_0x53516c['where'],{[Op['or']]:_[_0x1e560f(0xf2)](_0x55cabd,function(_0x4eca5f){const _0x1d29cf=_0x1e560f;if(_0x4eca5f[_0x1d29cf(0xd8)]!==_0x1d29cf(0xf5)){const _0x49168e={};return _0x49168e[_0x4eca5f[_0x1d29cf(0xf3)]]={[Op[_0x1d29cf(0xf0)]]:'%'+_0x271306[_0x1d29cf(0xf4)][_0x1d29cf(0xe6)]+'%'},_0x49168e;}})}));_0x53516c=_[_0x1e560f(0xe8)]({},_0x53516c,_0x271306[_0x1e560f(0xd5)]);const _0x1375b7={'where':_0x53516c['where']};return db['SugarcrmConfiguration'][_0x1e560f(0xea)](_0x1375b7)[_0x1e560f(0xd0)](function(_0x1e36da){const _0x560a52=_0x1e560f;return _0x5c1b0c[_0x560a52(0xea)]=_0x1e36da,_0x271306[_0x560a52(0xf4)]['includeAll']&&(_0x53516c[_0x560a52(0xef)]=[{'all':!![]}]),db[_0x560a52(0xd2)][_0x560a52(0xeb)](_0x53516c);})[_0x1e560f(0xd0)](function(_0x3e9268){return _0x5c1b0c['rows']=_0x3e9268,_0x5c1b0c;})[_0x1e560f(0xd0)](respondWithFilteredResult(_0x19366c,_0x53516c))[_0x1e560f(0xec)](handleError(_0x19366c,null));},exports[a374_0x27b804(0xfc)]=function(_0x3a8b35,_0x25cc2a){const _0x5d0b49=a374_0x27b804;let _0x29ea3c={'raw':![],'where':{'id':_0x3a8b35[_0x5d0b49(0xed)]['id']}};const _0x558a25={};return _0x558a25['model']=_[_0x5d0b49(0xe5)](db[_0x5d0b49(0xd2)][_0x5d0b49(0xe0)]),_0x558a25[_0x5d0b49(0xf4)]=_[_0x5d0b49(0xe5)](_0x3a8b35[_0x5d0b49(0xf4)]),_0x558a25['filters']=_['intersection'](_0x558a25[_0x5d0b49(0xcb)],_0x558a25['query']),_0x29ea3c[_0x5d0b49(0xce)]=_['intersection'](_0x558a25[_0x5d0b49(0xcb)],qs[_0x5d0b49(0xde)](_0x3a8b35[_0x5d0b49(0xf4)][_0x5d0b49(0xde)])),_0x29ea3c['attributes']=_0x29ea3c[_0x5d0b49(0xce)][_0x5d0b49(0xdf)]?_0x29ea3c[_0x5d0b49(0xce)]:_0x558a25[_0x5d0b49(0xcb)],_0x3a8b35['query'][_0x5d0b49(0xda)]&&(_0x29ea3c['include']=[{'all':!![]}]),_0x29ea3c=_['merge']({},_0x29ea3c,_0x3a8b35['options']),db['SugarcrmConfiguration'][_0x5d0b49(0xe2)](_0x29ea3c)[_0x5d0b49(0xd0)](handleEntityNotFound(_0x25cc2a,null))['then'](respondWithResult(_0x25cc2a,null))[_0x5d0b49(0xec)](handleError(_0x25cc2a,null));},exports[a374_0x27b804(0xd9)]=function(_0x445213,_0x329406){const _0x1b7848=a374_0x27b804;return db[_0x1b7848(0xd2)]['create'](_0x445213[_0x1b7848(0xfe)],{})[_0x1b7848(0xd0)](respondWithResult(_0x329406,0xc9))[_0x1b7848(0xec)](handleError(_0x329406,null));},exports[a374_0x27b804(0xf9)]=function(_0x7abe3d,_0x339d5a){const _0x92bb9=a374_0x27b804;return _0x7abe3d[_0x92bb9(0xfe)]['id']&&delete _0x7abe3d[_0x92bb9(0xfe)]['id'],db[_0x92bb9(0xd2)][_0x92bb9(0xe2)]({'where':{'id':_0x7abe3d[_0x92bb9(0xed)]['id']}})[_0x92bb9(0xd0)](handleEntityNotFound(_0x339d5a,null))[_0x92bb9(0xd0)](saveUpdates(_0x7abe3d['body'],null))[_0x92bb9(0xd0)](respondWithResult(_0x339d5a,null))[_0x92bb9(0xec)](handleError(_0x339d5a,null));},exports[a374_0x27b804(0xc9)]=function(_0x448d50,_0x4689ac){const _0x40f8b6=a374_0x27b804;return db['SugarcrmConfiguration'][_0x40f8b6(0xe2)]({'where':{'id':_0x448d50[_0x40f8b6(0xed)]['id']}})[_0x40f8b6(0xd0)](handleEntityNotFound(_0x4689ac,null))['then'](removeEntity(_0x4689ac,null))[_0x40f8b6(0xec)](handleError(_0x4689ac,null));},exports[a374_0x27b804(0xff)]=function(_0x45f897,_0x4567cf){const _0x34744c=a374_0x27b804;let _0x53591a={};const _0x421d50={};let _0x495177,_0x4d1a3d;return db[_0x34744c(0xd2)][_0x34744c(0xe2)]({'where':{'id':_0x45f897[_0x34744c(0xed)]['id']}})[_0x34744c(0xd0)](handleEntityNotFound(_0x4567cf,null))[_0x34744c(0xd0)](function(_0x185527){const _0xaa368c=_0x34744c;if(_0x185527)return _0x495177=_0x185527,_0x421d50['model']=_['keys'](db[_0xaa368c(0xd4)][_0xaa368c(0xe0)]),_0x421d50[_0xaa368c(0xf4)]=_['keys'](_0x45f897['query']),_0x421d50['filters']=_[_0xaa368c(0xf6)](_0x421d50[_0xaa368c(0xcb)],_0x421d50[_0xaa368c(0xf4)]),_0x53591a[_0xaa368c(0xce)]=_['intersection'](_0x421d50[_0xaa368c(0xcb)],qs['fields'](_0x45f897['query'][_0xaa368c(0xde)])),_0x53591a[_0xaa368c(0xce)]=_0x53591a[_0xaa368c(0xce)][_0xaa368c(0xdf)]?_0x53591a[_0xaa368c(0xce)]:_0x421d50[_0xaa368c(0xcb)],_0x53591a[_0xaa368c(0xc7)]=qs[_0xaa368c(0xcd)](_0x45f897[_0xaa368c(0xf4)]['sort']),_0x53591a[_0xaa368c(0xe9)]=qs[_0xaa368c(0xe1)](_[_0xaa368c(0xd7)](_0x45f897[_0xaa368c(0xf4)],_0x421d50[_0xaa368c(0xe1)])),_0x45f897[_0xaa368c(0xf4)]['filter']&&(_0x53591a['where']=_[_0xaa368c(0xe8)](_0x53591a[_0xaa368c(0xe9)],{[Op['or']]:_['map'](_0x53591a[_0xaa368c(0xce)],function(_0x201fae){const _0xf01bb=_0xaa368c,_0x4c7348={};return _0x4c7348[_0x201fae]={[Op['like']]:'%'+_0x45f897[_0xf01bb(0xf4)]['filter']+'%'},_0x4c7348;})})),_0x53591a=_['merge']({},_0x53591a,_0x45f897[_0xaa368c(0xd5)]),_0x495177['getFields'](_0x53591a);})[_0x34744c(0xd0)](function(_0x61593d){const _0x2e03f6=_0x34744c;if(_0x61593d)return _0x4d1a3d=_0x61593d[_0x2e03f6(0xdf)],typeof _0x45f897[_0x2e03f6(0xf4)][_0x2e03f6(0xe7)]===_0x2e03f6(0xc8)&&(_0x53591a[_0x2e03f6(0xcc)]=qs['limit'](_0x45f897[_0x2e03f6(0xf4)]['limit']),_0x53591a[_0x2e03f6(0xdb)]=qs[_0x2e03f6(0xdb)](_0x45f897[_0x2e03f6(0xf4)]['offset'])),_0x495177[_0x2e03f6(0xff)](_0x53591a);})['then'](function(_0x2a068){if(_0x2a068)return _0x2a068?{'count':_0x4d1a3d,'rows':_0x2a068}:null;})[_0x34744c(0xd0)](respondWithResult(_0x4567cf,null))[_0x34744c(0xec)](handleError(_0x4567cf,null));},exports['getSubjects']=function(_0x4add52,_0x1e1827){const _0x3900b7=a374_0x27b804;let _0x258033={};const _0x1b1417={};let _0x5cc1f7,_0x5ec83d;return db[_0x3900b7(0xd2)][_0x3900b7(0xe2)]({'where':{'id':_0x4add52['params']['id']}})[_0x3900b7(0xd0)](handleEntityNotFound(_0x1e1827,null))[_0x3900b7(0xd0)](function(_0x23a153){const _0xffe4aa=_0x3900b7;if(_0x23a153)return _0x5cc1f7=_0x23a153,_0x1b1417[_0xffe4aa(0xcb)]=_[_0xffe4aa(0xe5)](db['SugarcrmField'][_0xffe4aa(0xe0)]),_0x1b1417['query']=_[_0xffe4aa(0xe5)](_0x4add52['query']),_0x1b1417[_0xffe4aa(0xe1)]=_[_0xffe4aa(0xf6)](_0x1b1417[_0xffe4aa(0xcb)],_0x1b1417[_0xffe4aa(0xf4)]),_0x258033['attributes']=_[_0xffe4aa(0xf6)](_0x1b1417[_0xffe4aa(0xcb)],qs[_0xffe4aa(0xde)](_0x4add52['query']['fields'])),_0x258033[_0xffe4aa(0xce)]=_0x258033[_0xffe4aa(0xce)]['length']?_0x258033[_0xffe4aa(0xce)]:_0x1b1417['model'],_0x258033[_0xffe4aa(0xc7)]=qs[_0xffe4aa(0xcd)](_0x4add52['query'][_0xffe4aa(0xcd)]),_0x258033[_0xffe4aa(0xe9)]=qs[_0xffe4aa(0xe1)](_['pick'](_0x4add52[_0xffe4aa(0xf4)],_0x1b1417[_0xffe4aa(0xe1)])),_0x4add52['query'][_0xffe4aa(0xe6)]&&(_0x258033[_0xffe4aa(0xe9)]=_[_0xffe4aa(0xe8)](_0x258033[_0xffe4aa(0xe9)],{[Op['or']]:_[_0xffe4aa(0xf2)](_0x258033[_0xffe4aa(0xce)],function(_0x8bcd1f){const _0xafe15d=_0xffe4aa,_0x83dfbf={};return _0x83dfbf[_0x8bcd1f]={[Op[_0xafe15d(0xf0)]]:'%'+_0x4add52[_0xafe15d(0xf4)]['filter']+'%'},_0x83dfbf;})})),_0x258033=_[_0xffe4aa(0xe8)]({},_0x258033,_0x4add52[_0xffe4aa(0xd5)]),_0x5cc1f7['getSubjects'](_0x258033);})['then'](function(_0x38069e){const _0x1760a4=_0x3900b7;if(_0x38069e)return _0x5ec83d=_0x38069e[_0x1760a4(0xdf)],typeof _0x4add52['query']['nolimit']===_0x1760a4(0xc8)&&(_0x258033['limit']=qs[_0x1760a4(0xcc)](_0x4add52[_0x1760a4(0xf4)][_0x1760a4(0xcc)]),_0x258033[_0x1760a4(0xdb)]=qs['offset'](_0x4add52[_0x1760a4(0xf4)][_0x1760a4(0xdb)])),_0x5cc1f7[_0x1760a4(0xf1)](_0x258033);})[_0x3900b7(0xd0)](function(_0x2e13c5){if(_0x2e13c5)return _0x2e13c5?{'count':_0x5ec83d,'rows':_0x2e13c5}:null;})[_0x3900b7(0xd0)](respondWithResult(_0x1e1827,null))[_0x3900b7(0xec)](handleError(_0x1e1827,null));},exports[a374_0x27b804(0xca)]=function(_0x476a76,_0x3dbe88){const _0x5b537d=a374_0x27b804;let _0x38fdf5={};const _0x3aae30={};let _0x4f6800,_0x26159c;return db[_0x5b537d(0xd2)][_0x5b537d(0xe2)]({'where':{'id':_0x476a76[_0x5b537d(0xed)]['id']}})['then'](handleEntityNotFound(_0x3dbe88,null))[_0x5b537d(0xd0)](function(_0x1b6205){const _0x5307a8=_0x5b537d;if(_0x1b6205)return _0x4f6800=_0x1b6205,_0x3aae30[_0x5307a8(0xcb)]=_[_0x5307a8(0xe5)](db[_0x5307a8(0xd4)]['rawAttributes']),_0x3aae30['query']=_['keys'](_0x476a76[_0x5307a8(0xf4)]),_0x3aae30[_0x5307a8(0xe1)]=_[_0x5307a8(0xf6)](_0x3aae30['model'],_0x3aae30['query']),_0x38fdf5[_0x5307a8(0xce)]=_[_0x5307a8(0xf6)](_0x3aae30[_0x5307a8(0xcb)],qs['fields'](_0x476a76[_0x5307a8(0xf4)]['fields'])),_0x38fdf5['attributes']=_0x38fdf5[_0x5307a8(0xce)]['length']?_0x38fdf5[_0x5307a8(0xce)]:_0x3aae30[_0x5307a8(0xcb)],_0x38fdf5[_0x5307a8(0xc7)]=qs[_0x5307a8(0xcd)](_0x476a76[_0x5307a8(0xf4)][_0x5307a8(0xcd)]),_0x38fdf5[_0x5307a8(0xe9)]=qs['filters'](_[_0x5307a8(0xd7)](_0x476a76[_0x5307a8(0xf4)],_0x3aae30[_0x5307a8(0xe1)])),_0x476a76['query'][_0x5307a8(0xe6)]&&(_0x38fdf5[_0x5307a8(0xe9)]=_['merge'](_0x38fdf5[_0x5307a8(0xe9)],{[Op['or']]:_[_0x5307a8(0xf2)](_0x38fdf5[_0x5307a8(0xce)],function(_0x347636){const _0x36b56b=_0x5307a8,_0x20b9ef={};return _0x20b9ef[_0x347636]={[Op[_0x36b56b(0xf0)]]:'%'+_0x476a76[_0x36b56b(0xf4)][_0x36b56b(0xe6)]+'%'},_0x20b9ef;})})),_0x38fdf5=_[_0x5307a8(0xe8)]({},_0x38fdf5,_0x476a76[_0x5307a8(0xd5)]),_0x4f6800['getDescriptions'](_0x38fdf5);})[_0x5b537d(0xd0)](function(_0x56307a){const _0x59fbc6=_0x5b537d;if(_0x56307a)return _0x26159c=_0x56307a['length'],typeof _0x476a76[_0x59fbc6(0xf4)]['nolimit']===_0x59fbc6(0xc8)&&(_0x38fdf5[_0x59fbc6(0xcc)]=qs[_0x59fbc6(0xcc)](_0x476a76[_0x59fbc6(0xf4)][_0x59fbc6(0xcc)]),_0x38fdf5['offset']=qs[_0x59fbc6(0xdb)](_0x476a76['query'][_0x59fbc6(0xdb)])),_0x4f6800[_0x59fbc6(0xca)](_0x38fdf5);})[_0x5b537d(0xd0)](function(_0x4f779d){if(_0x4f779d)return _0x4f779d?{'count':_0x26159c,'rows':_0x4f779d}:null;})[_0x5b537d(0xd0)](respondWithResult(_0x3dbe88,null))['catch'](handleError(_0x3dbe88,null));}; \ No newline at end of file diff --git a/server/api/intSugarcrmConfiguration/intSugarcrmConfiguration.model.js b/server/api/intSugarcrmConfiguration/intSugarcrmConfiguration.model.js index 1ed684c..abaa7b6 100644 --- a/server/api/intSugarcrmConfiguration/intSugarcrmConfiguration.model.js +++ b/server/api/intSugarcrmConfiguration/intSugarcrmConfiguration.model.js @@ -1 +1 @@ -const a313_0x2fbb=['./intSugarcrmConfiguration.attributes','define','SugarcrmConfiguration'];(function(_0x71b2e8,_0x2fbbfe){const _0x1f61c5=function(_0x2e4b20){while(--_0x2e4b20){_0x71b2e8['push'](_0x71b2e8['shift']());}};_0x1f61c5(++_0x2fbbfe);}(a313_0x2fbb,0x151));const a313_0x1f61=function(_0x71b2e8,_0x2fbbfe){_0x71b2e8=_0x71b2e8-0x0;let _0x1f61c5=a313_0x2fbb[_0x71b2e8];return _0x1f61c5;};const _0x2da558=a313_0x1f61;'use strict';const attributes=require(_0x2da558('0x2'));module['exports']=function(_0x2e4b20){const _0x1a5c72=_0x2da558,_0x5c18a1=_0x2e4b20[_0x1a5c72('0x0')](_0x1a5c72('0x1'),attributes,{'tableName':'int_sugarcrm_configurations','paranoid':![],'indexes':[],'timestamps':!![]});return _0x5c18a1;}; \ No newline at end of file +const a375_0x54a8=['sequelize','function','init','exports'];(function(_0x4e11d8,_0x2d9a9e){const _0x54a825=function(_0x46698c){while(--_0x46698c){_0x4e11d8['push'](_0x4e11d8['shift']());}};_0x54a825(++_0x2d9a9e);}(a375_0x54a8,0x125));const a375_0x4669=function(_0x4e11d8,_0x2d9a9e){_0x4e11d8=_0x4e11d8-0x1a7;let _0x54a825=a375_0x54a8[_0x4e11d8];return _0x54a825;};const a375_0xba836d=a375_0x4669;'use strict';const {Model}=require(a375_0xba836d(0x1aa)),{attributes}=require('./intSugarcrmConfiguration.attributes'),{options}=require('./intSugarcrmConfiguration.options');class SugarcrmConfiguration extends Model{}function init(_0x532610,_0x17d69b){const _0x3c982e=a375_0xba836d,_0x2ddcfd=options(_0x532610),_0x6c21ca=typeof _0x17d69b===_0x3c982e(0x1a7)?_0x17d69b(_0x2ddcfd):_0x2ddcfd;return SugarcrmConfiguration[_0x3c982e(0x1a8)](attributes,_0x6c21ca),SugarcrmConfiguration;}module[a375_0xba836d(0x1a9)]['SugarcrmConfiguration']=SugarcrmConfiguration,module[a375_0xba836d(0x1a9)][a375_0xba836d(0x1a8)]=init; \ No newline at end of file diff --git a/server/api/intSugarcrmConfiguration/intSugarcrmConfiguration.options.js b/server/api/intSugarcrmConfiguration/intSugarcrmConfiguration.options.js new file mode 100644 index 0000000..7480e9a --- /dev/null +++ b/server/api/intSugarcrmConfiguration/intSugarcrmConfiguration.options.js @@ -0,0 +1 @@ +var a376_0x4af2=['int_sugarcrm_configurations','exports','options'];(function(_0x4a55a7,_0x271803){var _0x4af2a6=function(_0x5cd449){while(--_0x5cd449){_0x4a55a7['push'](_0x4a55a7['shift']());}};_0x4af2a6(++_0x271803);}(a376_0x4af2,0x189));var a376_0x5cd4=function(_0x4a55a7,_0x271803){_0x4a55a7=_0x4a55a7-0xff;var _0x4af2a6=a376_0x4af2[_0x4a55a7];return _0x4af2a6;};var a376_0x5de882=a376_0x5cd4;function options(_0x284946){var _0x194694=a376_0x5cd4;return{'sequelize':_0x284946,'tableName':_0x194694(0xff),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a376_0x5de882(0x100)][a376_0x5de882(0x101)]=options; \ No newline at end of file diff --git a/server/api/intSugarcrmField/index.js b/server/api/intSugarcrmField/index.js index fee50ff..bb15473 100644 --- a/server/api/intSugarcrmField/index.js +++ b/server/api/intSugarcrmField/index.js @@ -1 +1 @@ -const a314_0x2082=['get','update','express','../../components/auth/service','create','/:id','post','Router','delete','isAuthenticated','./intSugarcrmField.controller'];(function(_0x46deb5,_0x208248){const _0x32ae59=function(_0x426f9c){while(--_0x426f9c){_0x46deb5['push'](_0x46deb5['shift']());}};_0x32ae59(++_0x208248);}(a314_0x2082,0x1cf));const a314_0x32ae=function(_0x46deb5,_0x208248){_0x46deb5=_0x46deb5-0x0;let _0x32ae59=a314_0x2082[_0x46deb5];return _0x32ae59;};const _0x3d5215=a314_0x32ae;'use strict';const express=require(_0x3d5215('0x1')),router=express[_0x3d5215('0x6')](),auth=require(_0x3d5215('0x2')),controller=require(_0x3d5215('0x9'));router[_0x3d5215('0xa')]('/',auth[_0x3d5215('0x8')](),controller['index']),router[_0x3d5215('0xa')](_0x3d5215('0x4'),auth[_0x3d5215('0x8')](),controller['show']),router[_0x3d5215('0x5')]('/',auth[_0x3d5215('0x8')](),controller[_0x3d5215('0x3')]),router['put'](_0x3d5215('0x4'),auth[_0x3d5215('0x8')](),controller[_0x3d5215('0x0')]),router[_0x3d5215('0x7')]('/:id',auth[_0x3d5215('0x8')](),controller['destroy']),module['exports']=router; \ No newline at end of file +const a377_0xeecf=['destroy','../../components/auth/service','delete','create','show','./intSugarcrmField.controller','post','isAuthenticated','Router','put','/:id','get','exports','index'];(function(_0x3b0112,_0x47ed00){const _0xeecf5e=function(_0x450f00){while(--_0x450f00){_0x3b0112['push'](_0x3b0112['shift']());}};_0xeecf5e(++_0x47ed00);}(a377_0xeecf,0x136));const a377_0x450f=function(_0x3b0112,_0x47ed00){_0x3b0112=_0x3b0112-0xd2;let _0xeecf5e=a377_0xeecf[_0x3b0112];return _0xeecf5e;};const a377_0x1e32c9=a377_0x450f;'use strict';const express=require('express'),router=express[a377_0x1e32c9(0xd8)](),auth=require(a377_0x1e32c9(0xdf)),controller=require(a377_0x1e32c9(0xd5));router[a377_0x1e32c9(0xdb)]('/',auth[a377_0x1e32c9(0xd7)](),controller[a377_0x1e32c9(0xdd)]),router['get'](a377_0x1e32c9(0xda),auth['isAuthenticated'](),controller[a377_0x1e32c9(0xd4)]),router[a377_0x1e32c9(0xd6)]('/',auth[a377_0x1e32c9(0xd7)](),controller[a377_0x1e32c9(0xd3)]),router[a377_0x1e32c9(0xd9)](a377_0x1e32c9(0xda),auth[a377_0x1e32c9(0xd7)](),controller['update']),router[a377_0x1e32c9(0xd2)](a377_0x1e32c9(0xda),auth[a377_0x1e32c9(0xd7)](),controller[a377_0x1e32c9(0xde)]),module[a377_0x1e32c9(0xdc)]=router; \ No newline at end of file diff --git a/server/api/intSugarcrmField/intSugarcrmField.attributes.js b/server/api/intSugarcrmField/intSugarcrmField.attributes.js index 71acf40..d96b1f5 100644 --- a/server/api/intSugarcrmField/intSugarcrmField.attributes.js +++ b/server/api/intSugarcrmField/intSugarcrmField.attributes.js @@ -1 +1 @@ -const a315_0x37e8=['variable','keyValue','BOOLEAN','string','STRING','customVariable','exports','ENUM'];(function(_0x158abc,_0x37e8c5){const _0x17e1d1=function(_0x5e3849){while(--_0x5e3849){_0x158abc['push'](_0x158abc['shift']());}};_0x17e1d1(++_0x37e8c5);}(a315_0x37e8,0x6a));const a315_0x17e1=function(_0x158abc,_0x37e8c5){_0x158abc=_0x158abc-0x0;let _0x17e1d1=a315_0x37e8[_0x158abc];return _0x17e1d1;};const _0x505ba5=a315_0x17e1;'use strict';const Sequelize=require('sequelize');module[_0x505ba5('0x4')]={'type':{'type':Sequelize[_0x505ba5('0x5')](_0x505ba5('0x1'),_0x505ba5('0x6'),_0x505ba5('0x3'),_0x505ba5('0x7')),'defaultValue':_0x505ba5('0x1')},'content':{'type':Sequelize[_0x505ba5('0x2')]},'key':{'type':Sequelize[_0x505ba5('0x2')]},'keyType':{'type':Sequelize[_0x505ba5('0x5')](_0x505ba5('0x1'),'variable',_0x505ba5('0x3'))},'keyContent':{'type':Sequelize[_0x505ba5('0x2')]},'idField':{'type':Sequelize[_0x505ba5('0x2')]},'nameField':{'type':Sequelize['STRING']},'customField':{'type':Sequelize[_0x505ba5('0x0')],'defaultValue':!![]},'variableName':{'type':Sequelize[_0x505ba5('0x2')]}}; \ No newline at end of file +const a378_0x5f5b=['STRING','sequelize','keyValue','BOOLEAN','ENUM','customVariable','string','variable'];(function(_0x15749f,_0x7658f9){const _0x5f5b5d=function(_0x4b8834){while(--_0x4b8834){_0x15749f['push'](_0x15749f['shift']());}};_0x5f5b5d(++_0x7658f9);}(a378_0x5f5b,0xa8));const a378_0x4b88=function(_0x15749f,_0x7658f9){_0x15749f=_0x15749f-0x1cd;let _0x5f5b5d=a378_0x5f5b[_0x15749f];return _0x5f5b5d;};const a378_0x2e6b85=a378_0x4b88;'use strict';const {DataTypes}=require(a378_0x2e6b85(0x1ce)),attributes={'type':{'type':DataTypes['ENUM'](a378_0x2e6b85(0x1d3),'variable',a378_0x2e6b85(0x1d2),a378_0x2e6b85(0x1cf)),'defaultValue':a378_0x2e6b85(0x1d3)},'content':{'type':DataTypes['STRING']},'key':{'type':DataTypes[a378_0x2e6b85(0x1cd)]},'keyType':{'type':DataTypes[a378_0x2e6b85(0x1d1)](a378_0x2e6b85(0x1d3),a378_0x2e6b85(0x1d4),a378_0x2e6b85(0x1d2))},'keyContent':{'type':DataTypes['STRING']},'idField':{'type':DataTypes[a378_0x2e6b85(0x1cd)]},'nameField':{'type':DataTypes['STRING']},'customField':{'type':DataTypes[a378_0x2e6b85(0x1d0)],'defaultValue':!![]},'variableName':{'type':DataTypes[a378_0x2e6b85(0x1cd)]}};module['exports']['attributes']=attributes; \ No newline at end of file diff --git a/server/api/intSugarcrmField/intSugarcrmField.controller.js b/server/api/intSugarcrmField/intSugarcrmField.controller.js index 2234a0f..f62b6dd 100644 --- a/server/api/intSugarcrmField/intSugarcrmField.controller.js +++ b/server/api/intSugarcrmField/intSugarcrmField.controller.js @@ -1 +1 @@ -const a316_0x2123=['status','undefined','fieldName','end','order','destroy','map','include','where','name','key','fields','intersection','body','keys','sort','then','merge','type','attributes','send','findOne','model','rawAttributes','Content-Range','findAll','query','includeAll','rows','filters','sendStatus','VIRTUAL','json','create','update','limit','error','options','SugarcrmField','offset','sequelize','../../components/parsers/qs','params','set','../../config/logger','length','pick','filter','catch'];(function(_0x186f3b,_0x212376){const _0x84cbff=function(_0x5c8e06){while(--_0x5c8e06){_0x186f3b['push'](_0x186f3b['shift']());}};_0x84cbff(++_0x212376);}(a316_0x2123,0x10f));const a316_0x84cb=function(_0x186f3b,_0x212376){_0x186f3b=_0x186f3b-0x0;let _0x84cbff=a316_0x2123[_0x186f3b];return _0x84cbff;};const _0x3a04c8=a316_0x84cb;'use strict';const _=require('lodash'),qs=require(_0x3a04c8('0xf')),logger=require(_0x3a04c8('0x12'))('api'),db=require('../../mysqldb')['db'],{Op}=require(_0x3a04c8('0xe'));function respondWithResult(_0x5c8e06,_0x3421d3){return _0x3421d3=_0x3421d3||0xc8,function(_0x14260a){const _0x3b1e94=a316_0x84cb;if(_0x14260a)return _0x5c8e06[_0x3b1e94('0x17')](_0x3421d3)[_0x3b1e94('0x6')](_0x14260a);};}function respondWithFilteredResult(_0x132095,_0x74d7f8){return function(_0x36000a){const _0x2c14ad=a316_0x84cb;if(_0x36000a){const _0x2922ce=_0x36000a['count'],_0x43210e=_0x74d7f8[_0x2c14ad('0xd')];let _0x4986e0=_0x74d7f8['offset']+_0x74d7f8[_0x2c14ad('0x9')],_0x596f2f;return _0x4986e0>=_0x2922ce?(_0x4986e0=_0x2922ce,_0x596f2f=0xc8):_0x596f2f=0xce,_0x132095[_0x2c14ad('0x17')](_0x596f2f),_0x132095[_0x2c14ad('0x11')](_0x2c14ad('0x2f'),_0x43210e+'-'+_0x4986e0+'/'+_0x2922ce)[_0x2c14ad('0x6')](_0x36000a);}return null;};}function saveUpdates(_0x1f2b80){return function(_0x47cf04){const _0x94e9f9=a316_0x84cb;if(_0x47cf04)return _0x47cf04[_0x94e9f9('0x8')](_0x1f2b80)[_0x94e9f9('0x27')](function(_0x21b28a){return _0x21b28a;});return null;};}function removeEntity(_0x246979){return function(_0x3c3db1){const _0xb4a00d=a316_0x84cb;if(_0x3c3db1)return _0x3c3db1[_0xb4a00d('0x1c')]()['then'](function(){const _0x595682=_0xb4a00d;_0x246979[_0x595682('0x17')](0xcc)[_0x595682('0x1a')]();});};}function handleEntityNotFound(_0x4625b3){return function(_0x1fab7b){const _0x4ecf88=a316_0x84cb;return!_0x1fab7b&&_0x4625b3[_0x4ecf88('0x4')](0x194),_0x1fab7b;};}function handleError(_0xaf5adc,_0x513b6f){return _0x513b6f=_0x513b6f||0x1f4,function(_0x4e9d95){const _0x10bef5=a316_0x84cb;logger[_0x10bef5('0xa')](_0x4e9d95['stack']),_0x4e9d95[_0x10bef5('0x20')]&&delete _0x4e9d95[_0x10bef5('0x20')],_0xaf5adc[_0x10bef5('0x17')](_0x513b6f)[_0x10bef5('0x2b')](_0x4e9d95);};}exports['index']=function(_0x1b1051,_0x3a64e7){const _0x160d57=_0x3a04c8;let _0xb99c5f={};const _0x3ef516={},_0x10c737={'count':0x0,'rows':[]},_0x3cc99e=_['map'](db[_0x160d57('0xc')][_0x160d57('0x2e')],function(_0x4f9759){const _0x124957=_0x160d57;return{'name':_0x4f9759[_0x124957('0x19')],'type':_0x4f9759[_0x124957('0x29')][_0x124957('0x21')]};});_0x3ef516['model']=_['map'](_0x3cc99e,'name'),_0x3ef516[_0x160d57('0x0')]=_['keys'](_0x1b1051['query']),_0x3ef516[_0x160d57('0x3')]=_[_0x160d57('0x23')](_0x3ef516[_0x160d57('0x2d')],_0x3ef516[_0x160d57('0x0')]),_0xb99c5f[_0x160d57('0x2a')]=_[_0x160d57('0x23')](_0x3ef516['model'],qs[_0x160d57('0x22')](_0x1b1051[_0x160d57('0x0')][_0x160d57('0x22')])),_0xb99c5f[_0x160d57('0x2a')]=_0xb99c5f[_0x160d57('0x2a')][_0x160d57('0x13')]?_0xb99c5f[_0x160d57('0x2a')]:_0x3ef516[_0x160d57('0x2d')];typeof _0x1b1051[_0x160d57('0x0')]['nolimit']===_0x160d57('0x18')&&(_0xb99c5f['limit']=qs[_0x160d57('0x9')](_0x1b1051['query'][_0x160d57('0x9')]),_0xb99c5f[_0x160d57('0xd')]=qs['offset'](_0x1b1051['query'][_0x160d57('0xd')]));_0xb99c5f[_0x160d57('0x1b')]=qs['sort'](_0x1b1051[_0x160d57('0x0')][_0x160d57('0x26')]),_0xb99c5f[_0x160d57('0x1f')]=qs['filters'](_[_0x160d57('0x14')](_0x1b1051['query'],_0x3ef516[_0x160d57('0x3')]),_0x3cc99e);_0x1b1051[_0x160d57('0x0')][_0x160d57('0x15')]&&(_0xb99c5f[_0x160d57('0x1f')]=_[_0x160d57('0x28')](_0xb99c5f[_0x160d57('0x1f')],{[Op['or']]:_[_0x160d57('0x1d')](_0x3cc99e,function(_0x114151){const _0x14bf84=_0x160d57;if(_0x114151[_0x14bf84('0x29')]!==_0x14bf84('0x5')){const _0x5c518d={};return _0x5c518d[_0x114151[_0x14bf84('0x20')]]={[Op['like']]:'%'+_0x1b1051[_0x14bf84('0x0')][_0x14bf84('0x15')]+'%'},_0x5c518d;}})}));_0xb99c5f=_['merge']({},_0xb99c5f,_0x1b1051['options']);const _0x521b1e={'where':_0xb99c5f[_0x160d57('0x1f')]};return db['SugarcrmField']['count'](_0x521b1e)[_0x160d57('0x27')](function(_0x2e9360){const _0x397819=_0x160d57;return _0x10c737['count']=_0x2e9360,_0x1b1051['query'][_0x397819('0x1')]&&(_0xb99c5f[_0x397819('0x1e')]=[{'all':!![]}]),db[_0x397819('0xc')][_0x397819('0x30')](_0xb99c5f);})[_0x160d57('0x27')](function(_0x5c9419){const _0x139948=_0x160d57;return _0x10c737[_0x139948('0x2')]=_0x5c9419,_0x10c737;})['then'](respondWithFilteredResult(_0x3a64e7,_0xb99c5f))[_0x160d57('0x16')](handleError(_0x3a64e7,null));},exports['show']=function(_0x167ca2,_0x587b79){const _0x592d2c=_0x3a04c8;let _0x8d11ca={'raw':!![],'where':{'id':_0x167ca2['params']['id']}};const _0x4fcaeb={};return _0x4fcaeb[_0x592d2c('0x2d')]=_[_0x592d2c('0x25')](db['SugarcrmField'][_0x592d2c('0x2e')]),_0x4fcaeb[_0x592d2c('0x0')]=_[_0x592d2c('0x25')](_0x167ca2['query']),_0x4fcaeb[_0x592d2c('0x3')]=_[_0x592d2c('0x23')](_0x4fcaeb['model'],_0x4fcaeb[_0x592d2c('0x0')]),_0x8d11ca['attributes']=_['intersection'](_0x4fcaeb['model'],qs[_0x592d2c('0x22')](_0x167ca2[_0x592d2c('0x0')][_0x592d2c('0x22')])),_0x8d11ca[_0x592d2c('0x2a')]=_0x8d11ca[_0x592d2c('0x2a')][_0x592d2c('0x13')]?_0x8d11ca['attributes']:_0x4fcaeb[_0x592d2c('0x2d')],_0x167ca2[_0x592d2c('0x0')][_0x592d2c('0x1')]&&(_0x8d11ca['include']=[{'all':!![]}]),_0x8d11ca=_[_0x592d2c('0x28')]({},_0x8d11ca,_0x167ca2[_0x592d2c('0xb')]),db[_0x592d2c('0xc')][_0x592d2c('0x2c')](_0x8d11ca)[_0x592d2c('0x27')](handleEntityNotFound(_0x587b79,null))[_0x592d2c('0x27')](respondWithResult(_0x587b79,null))['catch'](handleError(_0x587b79,null));},exports[_0x3a04c8('0x7')]=function(_0x1bd57b,_0x2763da){const _0x1260bb=_0x3a04c8;return db[_0x1260bb('0xc')][_0x1260bb('0x7')](_0x1bd57b[_0x1260bb('0x24')],{})[_0x1260bb('0x27')](respondWithResult(_0x2763da,0xc9))[_0x1260bb('0x16')](handleError(_0x2763da,null));},exports[_0x3a04c8('0x8')]=function(_0x3d6d8b,_0x23d9fb){const _0x1270ff=_0x3a04c8;return _0x3d6d8b[_0x1270ff('0x24')]['id']&&delete _0x3d6d8b[_0x1270ff('0x24')]['id'],db['SugarcrmField']['findOne']({'where':{'id':_0x3d6d8b[_0x1270ff('0x10')]['id']}})[_0x1270ff('0x27')](handleEntityNotFound(_0x23d9fb,null))[_0x1270ff('0x27')](saveUpdates(_0x3d6d8b['body'],null))[_0x1270ff('0x27')](respondWithResult(_0x23d9fb,null))[_0x1270ff('0x16')](handleError(_0x23d9fb,null));},exports[_0x3a04c8('0x1c')]=function(_0x1fcafe,_0x10b7ea){const _0x578db6=_0x3a04c8;return db[_0x578db6('0xc')][_0x578db6('0x2c')]({'where':{'id':_0x1fcafe['params']['id']}})[_0x578db6('0x27')](handleEntityNotFound(_0x10b7ea,null))['then'](removeEntity(_0x10b7ea,null))[_0x578db6('0x16')](handleError(_0x10b7ea,null));}; \ No newline at end of file +const a379_0x3466=['filter','fieldName','../../config/logger','VIRTUAL','create','status','sendStatus','rows','name','rawAttributes','body','send','Content-Range','catch','map','../../mysqldb','merge','keys','show','params','type','SugarcrmField','model','sort','fields','like','error','set','offset','then','json','stack','count','limit','pick','where','findAll','../../components/parsers/qs','sequelize','end','options','findOne','api','includeAll','nolimit','intersection','index','lodash','query','attributes','order','include','filters','length','key'];(function(_0x2bdfcc,_0x409ab1){const _0x346609=function(_0x1f6d0c){while(--_0x1f6d0c){_0x2bdfcc['push'](_0x2bdfcc['shift']());}};_0x346609(++_0x409ab1);}(a379_0x3466,0x190));const a379_0x1f6d=function(_0x2bdfcc,_0x409ab1){_0x2bdfcc=_0x2bdfcc-0x1c2;let _0x346609=a379_0x3466[_0x2bdfcc];return _0x346609;};const a379_0x40f857=a379_0x1f6d;'use strict';const _=require(a379_0x40f857(0x1e2)),qs=require(a379_0x40f857(0x1d8)),logger=require(a379_0x40f857(0x1ec))(a379_0x40f857(0x1dd)),{db}=require(a379_0x40f857(0x1c2)),{Op}=require(a379_0x40f857(0x1d9));function respondWithResult(_0x2c0bb6,_0x512180){return _0x512180=_0x512180||0xc8,function(_0x4dd7c1){const _0x4d8f06=a379_0x1f6d;if(_0x4dd7c1)return _0x2c0bb6[_0x4d8f06(0x1ef)](_0x512180)['json'](_0x4dd7c1);};}function respondWithFilteredResult(_0x27fa74,_0x36a66e){return function(_0x38d1d9){const _0x508beb=a379_0x1f6d;if(_0x38d1d9){const _0xdb9b24=_0x38d1d9[_0x508beb(0x1d3)],_0x399366=_0x36a66e[_0x508beb(0x1cf)];let _0x3078cd=_0x36a66e['offset']+_0x36a66e['limit'],_0x210b70;return _0x3078cd>=_0xdb9b24?(_0x3078cd=_0xdb9b24,_0x210b70=0xc8):_0x210b70=0xce,_0x27fa74[_0x508beb(0x1ef)](_0x210b70),_0x27fa74[_0x508beb(0x1ce)](_0x508beb(0x1f6),_0x399366+'-'+_0x3078cd+'/'+_0xdb9b24)[_0x508beb(0x1d1)](_0x38d1d9);}return null;};}function saveUpdates(_0x5e9403){return function(_0x11004e){const _0x451b26=a379_0x1f6d;if(_0x11004e)return _0x11004e['update'](_0x5e9403)[_0x451b26(0x1d0)](function(_0x5647e4){return _0x5647e4;});return null;};}function removeEntity(_0x417bb5){return function(_0xb5bbe){if(_0xb5bbe)return _0xb5bbe['destroy']()['then'](function(){const _0x3eb457=a379_0x1f6d;_0x417bb5['status'](0xcc)[_0x3eb457(0x1da)]();});};}function handleEntityNotFound(_0x199fa2){return function(_0x3942a3){const _0x426550=a379_0x1f6d;return!_0x3942a3&&_0x199fa2[_0x426550(0x1f0)](0x194),_0x3942a3;};}function handleError(_0xaccf51,_0x19b22c){return _0x19b22c=_0x19b22c||0x1f4,function(_0x32ce37){const _0x3fed20=a379_0x1f6d;logger[_0x3fed20(0x1cd)](_0x32ce37[_0x3fed20(0x1d2)]),_0x32ce37[_0x3fed20(0x1f2)]&&delete _0x32ce37[_0x3fed20(0x1f2)],_0xaccf51[_0x3fed20(0x1ef)](_0x19b22c)[_0x3fed20(0x1f5)](_0x32ce37);};}exports[a379_0x40f857(0x1e1)]=function(_0x37906c,_0xc306b0){const _0x46e6be=a379_0x40f857;let _0x42d892={};const _0x3f3374={},_0x1adf7c={'count':0x0,'rows':[]},_0x9a4927=_[_0x46e6be(0x1f8)](db[_0x46e6be(0x1c8)]['rawAttributes'],function(_0x311746){const _0x1971c9=_0x46e6be;return{'name':_0x311746[_0x1971c9(0x1eb)],'type':_0x311746[_0x1971c9(0x1c7)][_0x1971c9(0x1e9)]};});_0x3f3374[_0x46e6be(0x1c9)]=_['map'](_0x9a4927,_0x46e6be(0x1f2)),_0x3f3374[_0x46e6be(0x1e3)]=_[_0x46e6be(0x1c4)](_0x37906c['query']),_0x3f3374[_0x46e6be(0x1e7)]=_['intersection'](_0x3f3374['model'],_0x3f3374[_0x46e6be(0x1e3)]),_0x42d892[_0x46e6be(0x1e4)]=_[_0x46e6be(0x1e0)](_0x3f3374['model'],qs[_0x46e6be(0x1cb)](_0x37906c[_0x46e6be(0x1e3)][_0x46e6be(0x1cb)])),_0x42d892[_0x46e6be(0x1e4)]=_0x42d892[_0x46e6be(0x1e4)][_0x46e6be(0x1e8)]?_0x42d892[_0x46e6be(0x1e4)]:_0x3f3374[_0x46e6be(0x1c9)];typeof _0x37906c['query'][_0x46e6be(0x1df)]==='undefined'&&(_0x42d892[_0x46e6be(0x1d4)]=qs['limit'](_0x37906c[_0x46e6be(0x1e3)][_0x46e6be(0x1d4)]),_0x42d892[_0x46e6be(0x1cf)]=qs[_0x46e6be(0x1cf)](_0x37906c[_0x46e6be(0x1e3)]['offset']));_0x42d892[_0x46e6be(0x1e5)]=qs[_0x46e6be(0x1ca)](_0x37906c['query'][_0x46e6be(0x1ca)]),_0x42d892[_0x46e6be(0x1d6)]=qs[_0x46e6be(0x1e7)](_[_0x46e6be(0x1d5)](_0x37906c[_0x46e6be(0x1e3)],_0x3f3374[_0x46e6be(0x1e7)]),_0x9a4927);_0x37906c[_0x46e6be(0x1e3)][_0x46e6be(0x1ea)]&&(_0x42d892[_0x46e6be(0x1d6)]=_['merge'](_0x42d892[_0x46e6be(0x1d6)],{[Op['or']]:_[_0x46e6be(0x1f8)](_0x9a4927,function(_0x23c823){const _0x5bc026=_0x46e6be;if(_0x23c823[_0x5bc026(0x1c7)]!==_0x5bc026(0x1ed)){const _0x2f23af={};return _0x2f23af[_0x23c823[_0x5bc026(0x1f2)]]={[Op[_0x5bc026(0x1cc)]]:'%'+_0x37906c[_0x5bc026(0x1e3)][_0x5bc026(0x1ea)]+'%'},_0x2f23af;}})}));_0x42d892=_[_0x46e6be(0x1c3)]({},_0x42d892,_0x37906c[_0x46e6be(0x1db)]);const _0x5d92bc={'where':_0x42d892[_0x46e6be(0x1d6)]};return db[_0x46e6be(0x1c8)]['count'](_0x5d92bc)[_0x46e6be(0x1d0)](function(_0x2fbc96){const _0x2fbdac=_0x46e6be;return _0x1adf7c[_0x2fbdac(0x1d3)]=_0x2fbc96,_0x37906c[_0x2fbdac(0x1e3)][_0x2fbdac(0x1de)]&&(_0x42d892[_0x2fbdac(0x1e6)]=[{'all':!![]}]),db['SugarcrmField'][_0x2fbdac(0x1d7)](_0x42d892);})['then'](function(_0x41efc1){const _0x5c6997=_0x46e6be;return _0x1adf7c[_0x5c6997(0x1f1)]=_0x41efc1,_0x1adf7c;})[_0x46e6be(0x1d0)](respondWithFilteredResult(_0xc306b0,_0x42d892))['catch'](handleError(_0xc306b0,null));},exports[a379_0x40f857(0x1c5)]=function(_0x474dfb,_0x1f46f3){const _0x5616f9=a379_0x40f857;let _0x47761b={'raw':!![],'where':{'id':_0x474dfb[_0x5616f9(0x1c6)]['id']}};const _0x4e6225={};return _0x4e6225[_0x5616f9(0x1c9)]=_[_0x5616f9(0x1c4)](db['SugarcrmField'][_0x5616f9(0x1f3)]),_0x4e6225[_0x5616f9(0x1e3)]=_[_0x5616f9(0x1c4)](_0x474dfb[_0x5616f9(0x1e3)]),_0x4e6225[_0x5616f9(0x1e7)]=_[_0x5616f9(0x1e0)](_0x4e6225['model'],_0x4e6225[_0x5616f9(0x1e3)]),_0x47761b[_0x5616f9(0x1e4)]=_['intersection'](_0x4e6225[_0x5616f9(0x1c9)],qs[_0x5616f9(0x1cb)](_0x474dfb[_0x5616f9(0x1e3)][_0x5616f9(0x1cb)])),_0x47761b[_0x5616f9(0x1e4)]=_0x47761b[_0x5616f9(0x1e4)][_0x5616f9(0x1e8)]?_0x47761b['attributes']:_0x4e6225[_0x5616f9(0x1c9)],_0x474dfb[_0x5616f9(0x1e3)][_0x5616f9(0x1de)]&&(_0x47761b['include']=[{'all':!![]}]),_0x47761b=_['merge']({},_0x47761b,_0x474dfb[_0x5616f9(0x1db)]),db['SugarcrmField']['findOne'](_0x47761b)[_0x5616f9(0x1d0)](handleEntityNotFound(_0x1f46f3,null))['then'](respondWithResult(_0x1f46f3,null))[_0x5616f9(0x1f7)](handleError(_0x1f46f3,null));},exports[a379_0x40f857(0x1ee)]=function(_0xb29f28,_0x25a1d7){const _0x4a6ba1=a379_0x40f857;return db[_0x4a6ba1(0x1c8)][_0x4a6ba1(0x1ee)](_0xb29f28['body'],{})[_0x4a6ba1(0x1d0)](respondWithResult(_0x25a1d7,0xc9))[_0x4a6ba1(0x1f7)](handleError(_0x25a1d7,null));},exports['update']=function(_0x4757ec,_0x46020){const _0x1f1520=a379_0x40f857;return _0x4757ec[_0x1f1520(0x1f4)]['id']&&delete _0x4757ec[_0x1f1520(0x1f4)]['id'],db[_0x1f1520(0x1c8)][_0x1f1520(0x1dc)]({'where':{'id':_0x4757ec[_0x1f1520(0x1c6)]['id']}})[_0x1f1520(0x1d0)](handleEntityNotFound(_0x46020,null))[_0x1f1520(0x1d0)](saveUpdates(_0x4757ec[_0x1f1520(0x1f4)],null))[_0x1f1520(0x1d0)](respondWithResult(_0x46020,null))[_0x1f1520(0x1f7)](handleError(_0x46020,null));},exports['destroy']=function(_0x2e8b4b,_0x3985db){const _0x56d242=a379_0x40f857;return db['SugarcrmField'][_0x56d242(0x1dc)]({'where':{'id':_0x2e8b4b[_0x56d242(0x1c6)]['id']}})[_0x56d242(0x1d0)](handleEntityNotFound(_0x3985db,null))[_0x56d242(0x1d0)](removeEntity(_0x3985db,null))[_0x56d242(0x1f7)](handleError(_0x3985db,null));}; \ No newline at end of file diff --git a/server/api/intSugarcrmField/intSugarcrmField.model.js b/server/api/intSugarcrmField/intSugarcrmField.model.js index 8709c36..26f92ef 100644 --- a/server/api/intSugarcrmField/intSugarcrmField.model.js +++ b/server/api/intSugarcrmField/intSugarcrmField.model.js @@ -1 +1 @@ -const a317_0x1731=['sugarcrm_unique_index','idField','define','FieldId','int_sugarcrm_fields','exports','SugarcrmField'];(function(_0x4e3580,_0x173153){const _0x144766=function(_0x1cff4d){while(--_0x1cff4d){_0x4e3580['push'](_0x4e3580['shift']());}};_0x144766(++_0x173153);}(a317_0x1731,0x105));const a317_0x1447=function(_0x4e3580,_0x173153){_0x4e3580=_0x4e3580-0x0;let _0x144766=a317_0x1731[_0x4e3580];return _0x144766;};const _0x6f218e=a317_0x1447;'use strict';const attributes=require('./intSugarcrmField.attributes');module[_0x6f218e('0x3')]=function(_0x1cff4d){const _0x5848ac=_0x6f218e,_0x59eab3=_0x1cff4d[_0x5848ac('0x0')](_0x5848ac('0x4'),attributes,{'tableName':_0x5848ac('0x2'),'paranoid':![],'indexes':[{'name':_0x5848ac('0x5'),'fields':[_0x5848ac('0x6'),_0x5848ac('0x1')],'unique':!![]}],'timestamps':!![]});return _0x59eab3;}; \ No newline at end of file +const a380_0xcbcd=['init','exports','sequelize','SugarcrmField','function','./intSugarcrmField.options'];(function(_0x8fa372,_0x5f0726){const _0xcbcdcb=function(_0x5f2986){while(--_0x5f2986){_0x8fa372['push'](_0x8fa372['shift']());}};_0xcbcdcb(++_0x5f0726);}(a380_0xcbcd,0x1eb));const a380_0x5f29=function(_0x8fa372,_0x5f0726){_0x8fa372=_0x8fa372-0x1b9;let _0xcbcdcb=a380_0xcbcd[_0x8fa372];return _0xcbcdcb;};const a380_0x4641dd=a380_0x5f29;'use strict';const {Model}=require(a380_0x4641dd(0x1bc)),{attributes}=require('./intSugarcrmField.attributes'),{options}=require(a380_0x4641dd(0x1b9));class SugarcrmField extends Model{}function init(_0x3b0a41,_0x5e0056){const _0x4a6fcd=a380_0x4641dd,_0x1bd469=options(_0x3b0a41),_0x5f5a78=typeof _0x5e0056===_0x4a6fcd(0x1be)?_0x5e0056(_0x1bd469):_0x1bd469;return SugarcrmField[_0x4a6fcd(0x1ba)](attributes,_0x5f5a78),SugarcrmField;}module[a380_0x4641dd(0x1bb)][a380_0x4641dd(0x1bd)]=SugarcrmField,module[a380_0x4641dd(0x1bb)][a380_0x4641dd(0x1ba)]=init; \ No newline at end of file diff --git a/server/api/intSugarcrmField/intSugarcrmField.options.js b/server/api/intSugarcrmField/intSugarcrmField.options.js new file mode 100644 index 0000000..4eeefb7 --- /dev/null +++ b/server/api/intSugarcrmField/intSugarcrmField.options.js @@ -0,0 +1 @@ +var a381_0x2fe6=['idField','sugarcrm_unique_index','exports','int_sugarcrm_fields','FieldId'];(function(_0x2e75a1,_0x45f981){var _0x2fe69c=function(_0x187608){while(--_0x187608){_0x2e75a1['push'](_0x2e75a1['shift']());}};_0x2fe69c(++_0x45f981);}(a381_0x2fe6,0xc0));var a381_0x1876=function(_0x2e75a1,_0x45f981){_0x2e75a1=_0x2e75a1-0x11e;var _0x2fe69c=a381_0x2fe6[_0x2e75a1];return _0x2fe69c;};var a381_0x4dc1aa=a381_0x1876;function options(_0x1b9e23){var _0x4b96af=a381_0x1876;return{'sequelize':_0x1b9e23,'tableName':_0x4b96af(0x11f),'paranoid':![],'indexes':[{'name':_0x4b96af(0x122),'fields':[_0x4b96af(0x121),_0x4b96af(0x120)],'unique':!![]}],'timestamps':!![]};}module[a381_0x4dc1aa(0x11e)]['options']=options; \ No newline at end of file diff --git a/server/api/intVtigerAccount/index.js b/server/api/intVtigerAccount/index.js index eb59f53..3536d01 100644 --- a/server/api/intVtigerAccount/index.js +++ b/server/api/intVtigerAccount/index.js @@ -1 +1 @@ -const a318_0x3ce2=['get','isAuthenticated','/:id','show','addConfiguration','express','post','getFields','../../components/auth/service','create','destroy','update','/:id/configurations','getConfigurations','exports','/:id/fields','Router','./intVtigerAccount.controller'];(function(_0x5a4319,_0x3ce2b9){const _0x7ef3b=function(_0x230f11){while(--_0x230f11){_0x5a4319['push'](_0x5a4319['shift']());}};_0x7ef3b(++_0x3ce2b9);}(a318_0x3ce2,0xe2));const a318_0x7ef3=function(_0x5a4319,_0x3ce2b9){_0x5a4319=_0x5a4319-0x0;let _0x7ef3b=a318_0x3ce2[_0x5a4319];return _0x7ef3b;};const _0x3e636a=a318_0x7ef3;'use strict';const express=require(_0x3e636a('0xd')),router=express[_0x3e636a('0x6')](),auth=require(_0x3e636a('0x10')),controller=require(_0x3e636a('0x7'));router[_0x3e636a('0x8')]('/',auth['isAuthenticated'](),controller['index']),router[_0x3e636a('0x8')](_0x3e636a('0xa'),auth[_0x3e636a('0x9')](),controller[_0x3e636a('0xb')]),router[_0x3e636a('0x8')]('/:id/configurations',auth['isAuthenticated'](),controller[_0x3e636a('0x3')]),router[_0x3e636a('0x8')](_0x3e636a('0x5'),auth[_0x3e636a('0x9')](),controller[_0x3e636a('0xf')]),router[_0x3e636a('0xe')]('/',auth[_0x3e636a('0x9')](),controller[_0x3e636a('0x11')]),router[_0x3e636a('0xe')](_0x3e636a('0x2'),auth[_0x3e636a('0x9')](),controller[_0x3e636a('0xc')]),router['put']('/:id',auth['isAuthenticated'](),controller[_0x3e636a('0x1')]),router['delete'](_0x3e636a('0xa'),auth[_0x3e636a('0x9')](),controller[_0x3e636a('0x0')]),module[_0x3e636a('0x4')]=router; \ No newline at end of file +const a382_0xdf7c=['get','../../components/auth/service','update','/:id/fields','/:id/configurations','create','/:id','delete','show','isAuthenticated','getFields','post','exports','./intVtigerAccount.controller','index'];(function(_0x1ef040,_0xd96e6e){const _0xdf7c2f=function(_0x270318){while(--_0x270318){_0x1ef040['push'](_0x1ef040['shift']());}};_0xdf7c2f(++_0xd96e6e);}(a382_0xdf7c,0x19e));const a382_0x2703=function(_0x1ef040,_0xd96e6e){_0x1ef040=_0x1ef040-0xd7;let _0xdf7c2f=a382_0xdf7c[_0x1ef040];return _0xdf7c2f;};const a382_0x5a8866=a382_0x2703;'use strict';const express=require('express'),router=express['Router'](),auth=require(a382_0x5a8866(0xde)),controller=require(a382_0x5a8866(0xdb));router['get']('/',auth[a382_0x5a8866(0xd7)](),controller[a382_0x5a8866(0xdc)]),router[a382_0x5a8866(0xdd)]('/:id',auth[a382_0x5a8866(0xd7)](),controller[a382_0x5a8866(0xe5)]),router['get'](a382_0x5a8866(0xe1),auth[a382_0x5a8866(0xd7)](),controller['getConfigurations']),router[a382_0x5a8866(0xdd)](a382_0x5a8866(0xe0),auth[a382_0x5a8866(0xd7)](),controller[a382_0x5a8866(0xd8)]),router['post']('/',auth['isAuthenticated'](),controller[a382_0x5a8866(0xe2)]),router[a382_0x5a8866(0xd9)](a382_0x5a8866(0xe1),auth[a382_0x5a8866(0xd7)](),controller['addConfiguration']),router['put'](a382_0x5a8866(0xe3),auth[a382_0x5a8866(0xd7)](),controller[a382_0x5a8866(0xdf)]),router[a382_0x5a8866(0xe4)]('/:id',auth['isAuthenticated'](),controller['destroy']),module[a382_0x5a8866(0xda)]=router; \ No newline at end of file diff --git a/server/api/intVtigerAccount/intVtigerAccount.attributes.js b/server/api/intVtigerAccount/intVtigerAccount.attributes.js index b6289f2..a14d887 100644 --- a/server/api/intVtigerAccount/intVtigerAccount.attributes.js +++ b/server/api/intVtigerAccount/intVtigerAccount.attributes.js @@ -1 +1 @@ -const a319_0x5af7=['STRING','sequelize','exports'];(function(_0x20c65b,_0x5af799){const _0x9bbc54=function(_0x382024){while(--_0x382024){_0x20c65b['push'](_0x20c65b['shift']());}};_0x9bbc54(++_0x5af799);}(a319_0x5af7,0x10b));const a319_0x9bbc=function(_0x20c65b,_0x5af799){_0x20c65b=_0x20c65b-0x0;let _0x9bbc54=a319_0x5af7[_0x20c65b];return _0x9bbc54;};const _0x53f153=a319_0x9bbc;'use strict';const Sequelize=require(_0x53f153('0x1'));module[_0x53f153('0x2')]={'name':{'type':Sequelize[_0x53f153('0x0')],'allowNull':![]},'description':{'type':Sequelize[_0x53f153('0x0')]},'username':{'type':Sequelize[_0x53f153('0x0')],'allowNull':![]},'moduleName':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':'HelpDesk'},'remoteUri':{'type':Sequelize['STRING'],'allowNull':![]},'serverUrl':{'type':Sequelize[_0x53f153('0x0')]},'accessKey':{'type':Sequelize['STRING'],'allowNull':![]}}; \ No newline at end of file +const a383_0x34d1=['STRING','sequelize','HelpDesk'];(function(_0x355141,_0x1b63f7){const _0x34d131=function(_0x25d345){while(--_0x25d345){_0x355141['push'](_0x355141['shift']());}};_0x34d131(++_0x1b63f7);}(a383_0x34d1,0x1cc));const a383_0x25d3=function(_0x355141,_0x1b63f7){_0x355141=_0x355141-0x72;let _0x34d131=a383_0x34d1[_0x355141];return _0x34d131;};const a383_0x28c813=a383_0x25d3;'use strict';const {DataTypes}=require(a383_0x28c813(0x72)),attributes={'name':{'type':DataTypes[a383_0x28c813(0x74)],'allowNull':![]},'description':{'type':DataTypes[a383_0x28c813(0x74)]},'username':{'type':DataTypes['STRING'],'allowNull':![]},'moduleName':{'type':DataTypes[a383_0x28c813(0x74)],'allowNull':![],'defaultValue':a383_0x28c813(0x73)},'remoteUri':{'type':DataTypes['STRING'],'allowNull':![]},'serverUrl':{'type':DataTypes[a383_0x28c813(0x74)]},'accessKey':{'type':DataTypes[a383_0x28c813(0x74)],'allowNull':![]}};module['exports']['attributes']=attributes; \ No newline at end of file diff --git a/server/api/intVtigerAccount/intVtigerAccount.controller.js b/server/api/intVtigerAccount/intVtigerAccount.controller.js index 848af0d..ea3240b 100644 --- a/server/api/intVtigerAccount/intVtigerAccount.controller.js +++ b/server/api/intVtigerAccount/intVtigerAccount.controller.js @@ -1 +1 @@ -const a320_0x3ba0=['model','sessionName','keys','description','success','body','Wrong\x20credentials','token','getFields,\x20%s,\x20%s,\x20%s','serverUrl','VIRTUAL','getFields','create','startsWith','params','cf_','value','accessKey','request-promise-native','getDescriptions','findOne','substring','options','order','rawAttributes','send','type','lodash','error','Descriptions','status','filters','getchallenge','picklistValues','remove','remoteUri','../../components/integrations/configuration','set','limit','result','username','../../mysqldb','count','length','query','then','include','format','AccountId','owner','includeAll','json','moduleName','../../components/parsers/qs','filter','offset','includes','pick','Subjects','attributes','channel','reference','findAll','sort','nolimit','GET','Content-Range','update','lastIndexOf','md5','VtigerAccount','sequelize','picklist','key','merge','name','index','map','where','catch','getConfigurations','rows','destroy','intersection','fields','statusCode','VtigerField','getSubjects','test','label','like','end','stringify','../../config/logger','vTiger\x20error:\x20','login'];(function(_0x549fe6,_0x3ba0e3){const _0x432f83=function(_0x333c11){while(--_0x333c11){_0x549fe6['push'](_0x549fe6['shift']());}};_0x432f83(++_0x3ba0e3);}(a320_0x3ba0,0x1db));const a320_0x432f=function(_0x549fe6,_0x3ba0e3){_0x549fe6=_0x549fe6-0x0;let _0x432f83=a320_0x3ba0[_0x549fe6];return _0x432f83;};const _0x3faa8d=a320_0x432f;'use strict';const rp=require(_0x3faa8d('0x17')),util=require('util'),_=require(_0x3faa8d('0x20')),qs=require(_0x3faa8d('0x3a')),logger=require(_0x3faa8d('0x2'))('api'),db=require(_0x3faa8d('0x2e'))['db'],{Op}=require(_0x3faa8d('0x4c')),integrations=require(_0x3faa8d('0x29'));function respondWithResult(_0x333c11,_0x3dd1ac){return _0x3dd1ac=_0x3dd1ac||0xc8,function(_0x2d2805){const _0x427ffd=a320_0x432f;if(_0x2d2805)return _0x333c11[_0x427ffd('0x23')](_0x3dd1ac)['json'](_0x2d2805);};}function respondWithFilteredResult(_0x101ce6,_0x5a1acb){return function(_0x230b2c){const _0x349386=a320_0x432f;if(_0x230b2c){const _0x5594dc=_0x230b2c[_0x349386('0x2f')],_0x44f41c=_0x5a1acb['offset'];let _0x4eb0b2=_0x5a1acb[_0x349386('0x3c')]+_0x5a1acb[_0x349386('0x2b')],_0x16b5b0;return _0x4eb0b2>=_0x5594dc?(_0x4eb0b2=_0x5594dc,_0x16b5b0=0xc8):_0x16b5b0=0xce,_0x101ce6[_0x349386('0x23')](_0x16b5b0),_0x101ce6[_0x349386('0x2a')](_0x349386('0x47'),_0x44f41c+'-'+_0x4eb0b2+'/'+_0x5594dc)[_0x349386('0x38')](_0x230b2c);}return null;};}function saveUpdates(_0x461b63){return function(_0x153cb4){const _0x1c6c94=a320_0x432f;if(_0x153cb4)return _0x153cb4[_0x1c6c94('0x48')](_0x461b63)[_0x1c6c94('0x32')](function(_0x5214cb){return _0x5214cb;});return null;};}function removeEntity(_0x415339){return function(_0x3969fa){const _0x5d9213=a320_0x432f;if(_0x3969fa)return _0x3969fa[_0x5d9213('0x57')]()['then'](function(){const _0x5731bf=_0x5d9213;_0x415339[_0x5731bf('0x23')](0xcc)[_0x5731bf('0x0')]();});};}function handleEntityNotFound(_0x3586ab){return function(_0x2b02a8){return!_0x2b02a8&&_0x3586ab['sendStatus'](0x194),_0x2b02a8;};}function handleError(_0x1ec070,_0x39e995){return _0x39e995=_0x39e995||0x1f4,function(_0x3ab9f6){const _0x3a33ac=a320_0x432f;logger[_0x3a33ac('0x21')](_0x3ab9f6['stack']),_0x3ab9f6['name']&&delete _0x3ab9f6[_0x3a33ac('0x50')],_0x1ec070['status'](_0x39e995)[_0x3a33ac('0x1e')](_0x3ab9f6);};}exports[_0x3faa8d('0x51')]=function(_0xdde82e,_0x5ef888){const _0x301907=_0x3faa8d;let _0x1109e7={};const _0x24a9b6={},_0x4dcc13={'count':0x0,'rows':[]},_0x35cd6e=_[_0x301907('0x52')](db['VtigerAccount'][_0x301907('0x1d')],function(_0x1c8734){const _0x53d3cc=_0x301907;return{'name':_0x1c8734['fieldName'],'type':_0x1c8734[_0x53d3cc('0x1f')][_0x53d3cc('0x4e')]};});_0x24a9b6[_0x301907('0x5')]=_[_0x301907('0x52')](_0x35cd6e,'name'),_0x24a9b6[_0x301907('0x31')]=_[_0x301907('0x7')](_0xdde82e[_0x301907('0x31')]),_0x24a9b6[_0x301907('0x24')]=_[_0x301907('0x58')](_0x24a9b6[_0x301907('0x5')],_0x24a9b6[_0x301907('0x31')]),_0x1109e7[_0x301907('0x40')]=_[_0x301907('0x58')](_0x24a9b6[_0x301907('0x5')],qs['fields'](_0xdde82e[_0x301907('0x31')][_0x301907('0x59')])),_0x1109e7[_0x301907('0x40')]=_0x1109e7[_0x301907('0x40')][_0x301907('0x30')]?_0x1109e7[_0x301907('0x40')]:_0x24a9b6[_0x301907('0x5')];typeof _0xdde82e[_0x301907('0x31')][_0x301907('0x45')]==='undefined'&&(_0x1109e7[_0x301907('0x2b')]=qs['limit'](_0xdde82e[_0x301907('0x31')][_0x301907('0x2b')]),_0x1109e7[_0x301907('0x3c')]=qs['offset'](_0xdde82e[_0x301907('0x31')][_0x301907('0x3c')]));_0x1109e7[_0x301907('0x1c')]=qs[_0x301907('0x44')](_0xdde82e[_0x301907('0x31')][_0x301907('0x44')]),_0x1109e7[_0x301907('0x53')]=qs['filters'](_[_0x301907('0x3e')](_0xdde82e[_0x301907('0x31')],_0x24a9b6[_0x301907('0x24')]),_0x35cd6e);_0xdde82e[_0x301907('0x31')]['filter']&&(_0x1109e7[_0x301907('0x53')]=_[_0x301907('0x4f')](_0x1109e7[_0x301907('0x53')],{[Op['or']]:_[_0x301907('0x52')](_0x35cd6e,function(_0x34bd22){const _0x30f2ed=_0x301907;if(_0x34bd22['type']!==_0x30f2ed('0xf')){const _0x152c3d={};return _0x152c3d[_0x34bd22[_0x30f2ed('0x50')]]={[Op[_0x30f2ed('0x5f')]]:'%'+_0xdde82e[_0x30f2ed('0x31')]['filter']+'%'},_0x152c3d;}})}));_0x1109e7=_['merge']({},_0x1109e7,_0xdde82e[_0x301907('0x1b')]);const _0x5c71be={'where':_0x1109e7[_0x301907('0x53')]};return db[_0x301907('0x4b')][_0x301907('0x2f')](_0x5c71be)['then'](function(_0x232657){const _0x263e1a=_0x301907;return _0x4dcc13['count']=_0x232657,_0xdde82e[_0x263e1a('0x31')][_0x263e1a('0x37')]&&(_0x1109e7['include']=[{'all':!![]}]),db[_0x263e1a('0x4b')][_0x263e1a('0x43')](_0x1109e7);})[_0x301907('0x32')](function(_0x5e61bf){const _0x795eae=_0x301907;return _0x4dcc13[_0x795eae('0x56')]=_0x5e61bf,_0x4dcc13;})[_0x301907('0x32')](respondWithFilteredResult(_0x5ef888,_0x1109e7))['catch'](handleError(_0x5ef888,null));},exports['show']=function(_0x13b7f7,_0x5a1556){const _0x3e1233=_0x3faa8d;let _0x3c98e8={'raw':![],'where':{'id':_0x13b7f7['params']['id']}};const _0x1ad68b={};return _0x1ad68b[_0x3e1233('0x5')]=_[_0x3e1233('0x7')](db[_0x3e1233('0x4b')][_0x3e1233('0x1d')]),_0x1ad68b[_0x3e1233('0x31')]=_[_0x3e1233('0x7')](_0x13b7f7[_0x3e1233('0x31')]),_0x1ad68b[_0x3e1233('0x24')]=_['intersection'](_0x1ad68b[_0x3e1233('0x5')],_0x1ad68b[_0x3e1233('0x31')]),_0x3c98e8[_0x3e1233('0x40')]=_[_0x3e1233('0x58')](_0x1ad68b[_0x3e1233('0x5')],qs['fields'](_0x13b7f7[_0x3e1233('0x31')][_0x3e1233('0x59')])),_0x3c98e8['attributes']=_0x3c98e8[_0x3e1233('0x40')][_0x3e1233('0x30')]?_0x3c98e8['attributes']:_0x1ad68b[_0x3e1233('0x5')],_0x13b7f7['query'][_0x3e1233('0x37')]&&(_0x3c98e8[_0x3e1233('0x33')]=[{'all':!![]}]),_0x3c98e8=_[_0x3e1233('0x4f')]({},_0x3c98e8,_0x13b7f7[_0x3e1233('0x1b')]),db[_0x3e1233('0x4b')][_0x3e1233('0x19')](_0x3c98e8)[_0x3e1233('0x32')](handleEntityNotFound(_0x5a1556,null))[_0x3e1233('0x32')](respondWithResult(_0x5a1556,null))[_0x3e1233('0x54')](handleError(_0x5a1556,null));},exports[_0x3faa8d('0x11')]=function(_0x35cefb,_0x5e3a88){const _0x53c775=_0x3faa8d;return db['VtigerAccount'][_0x53c775('0x11')](_0x35cefb[_0x53c775('0xa')],{})['then'](respondWithResult(_0x5e3a88,0xc9))[_0x53c775('0x54')](handleError(_0x5e3a88,null));},exports[_0x3faa8d('0x48')]=function(_0x3df546,_0x5ec06c){const _0xbd0179=_0x3faa8d;return _0x3df546['body']['id']&&delete _0x3df546['body']['id'],db['VtigerAccount'][_0xbd0179('0x19')]({'where':{'id':_0x3df546[_0xbd0179('0x13')]['id']}})[_0xbd0179('0x32')](handleEntityNotFound(_0x5ec06c,null))[_0xbd0179('0x32')](saveUpdates(_0x3df546[_0xbd0179('0xa')],null))[_0xbd0179('0x32')](respondWithResult(_0x5ec06c,null))[_0xbd0179('0x54')](handleError(_0x5ec06c,null));},exports[_0x3faa8d('0x57')]=function(_0x235b24,_0x2cab96){const _0x33c2e5=_0x3faa8d;return db[_0x33c2e5('0x4b')][_0x33c2e5('0x19')]({'where':{'id':_0x235b24['params']['id']}})[_0x33c2e5('0x32')](handleEntityNotFound(_0x2cab96,null))[_0x33c2e5('0x32')](removeEntity(_0x2cab96,null))[_0x33c2e5('0x54')](handleError(_0x2cab96,null));},exports[_0x3faa8d('0x55')]=function(_0x2dc39f,_0x19e6d5){const _0x4a9bc7=_0x3faa8d;let _0x125c97={};const _0x216efb={};let _0x138150,_0x1bf3ec;return db[_0x4a9bc7('0x4b')][_0x4a9bc7('0x19')]({'where':{'id':_0x2dc39f['params']['id']}})['then'](handleEntityNotFound(_0x19e6d5,null))[_0x4a9bc7('0x32')](function(_0x159294){const _0x17847c=_0x4a9bc7;if(_0x159294)return _0x138150=_0x159294,_0x216efb['model']=_[_0x17847c('0x7')](db['VtigerConfiguration']['rawAttributes']),_0x216efb['query']=_[_0x17847c('0x7')](_0x2dc39f[_0x17847c('0x31')]),_0x216efb['filters']=_[_0x17847c('0x58')](_0x216efb[_0x17847c('0x5')],_0x216efb[_0x17847c('0x31')]),_0x125c97[_0x17847c('0x40')]=_['intersection'](_0x216efb[_0x17847c('0x5')],qs[_0x17847c('0x59')](_0x2dc39f['query'][_0x17847c('0x59')])),_0x125c97[_0x17847c('0x40')]=_0x125c97[_0x17847c('0x40')][_0x17847c('0x30')]?_0x125c97[_0x17847c('0x40')]:_0x216efb[_0x17847c('0x5')],_0x125c97['order']=qs[_0x17847c('0x44')](_0x2dc39f['query'][_0x17847c('0x44')]),_0x125c97[_0x17847c('0x53')]=qs['filters'](_[_0x17847c('0x3e')](_0x2dc39f[_0x17847c('0x31')],_0x216efb[_0x17847c('0x24')])),_0x2dc39f['query'][_0x17847c('0x3b')]&&(_0x125c97[_0x17847c('0x53')]=_[_0x17847c('0x4f')](_0x125c97[_0x17847c('0x53')],{[Op['or']]:_[_0x17847c('0x52')](_0x125c97[_0x17847c('0x40')],function(_0x31e4ba){const _0x51d2df=_0x17847c,_0x40a6fd={};return _0x40a6fd[_0x31e4ba]={[Op[_0x51d2df('0x5f')]]:'%'+_0x2dc39f[_0x51d2df('0x31')][_0x51d2df('0x3b')]+'%'},_0x40a6fd;})})),_0x125c97=_[_0x17847c('0x4f')]({},_0x125c97,_0x2dc39f[_0x17847c('0x1b')]),_0x138150[_0x17847c('0x55')](_0x125c97);})[_0x4a9bc7('0x32')](function(_0x19d4eb){const _0x4f8855=_0x4a9bc7;if(_0x19d4eb)return _0x1bf3ec=_0x19d4eb[_0x4f8855('0x30')],typeof _0x2dc39f['query']['nolimit']==='undefined'&&(_0x125c97[_0x4f8855('0x2b')]=qs[_0x4f8855('0x2b')](_0x2dc39f[_0x4f8855('0x31')][_0x4f8855('0x2b')]),_0x125c97[_0x4f8855('0x3c')]=qs['offset'](_0x2dc39f[_0x4f8855('0x31')][_0x4f8855('0x3c')])),_0x138150[_0x4f8855('0x55')](_0x125c97);})[_0x4a9bc7('0x32')](function(_0x11e410){if(_0x11e410)return _0x11e410?{'count':_0x1bf3ec,'rows':_0x11e410}:null;})[_0x4a9bc7('0x32')](respondWithResult(_0x19e6d5,null))[_0x4a9bc7('0x54')](handleError(_0x19e6d5,null));},exports['addConfiguration']=function(_0xfafc97,_0x1f10ee){const _0x48e572=_0x3faa8d;return _0xfafc97[_0x48e572('0xa')]['id']&&delete _0xfafc97[_0x48e572('0xa')]['id'],db[_0x48e572('0x4b')][_0x48e572('0x19')]({'where':{'id':_0xfafc97['params']['id']}})[_0x48e572('0x32')](handleEntityNotFound(_0x1f10ee,null))['then'](function(_0x1e81e3){const _0xe67cd2=_0x48e572;if(_0x1e81e3)return _0xfafc97[_0xe67cd2('0xa')][_0xe67cd2('0x35')]=_0x1e81e3['id'],_0xfafc97[_0xe67cd2('0xa')][_0xe67cd2('0x3f')]=integrations[_0xe67cd2('0x5c')](_0xfafc97[_0xe67cd2('0xa')][_0xe67cd2('0x41')],_0xfafc97[_0xe67cd2('0xa')][_0xe67cd2('0x1f')]),_0xfafc97[_0xe67cd2('0xa')]['Descriptions']=integrations[_0xe67cd2('0x18')](_0xfafc97[_0xe67cd2('0xa')][_0xe67cd2('0x41')],_0xfafc97[_0xe67cd2('0xa')]['type']),db['VtigerConfiguration']['create'](_0xfafc97[_0xe67cd2('0xa')],{'include':[{'model':db[_0xe67cd2('0x5b')],'as':_0xe67cd2('0x3f')},{'model':db[_0xe67cd2('0x5b')],'as':_0xe67cd2('0x22')}]});return null;})[_0x48e572('0x32')](respondWithResult(_0x1f10ee,null))['catch'](handleError(_0x1f10ee,null));};const md5=require(_0x3faa8d('0x4a'));exports[_0x3faa8d('0x10')]=function(_0x538583,_0x30276a){const _0x2829a2=_0x3faa8d;let _0x4d4b35=null,_0x285d37=null,_0xc9bc45=null,_0xfb4d35=null,_0x4764fc='';return db['VtigerAccount'][_0x2829a2('0x19')]({'where':{'id':_0x538583[_0x2829a2('0x13')]['id']},'attributes':['id','name',_0x2829a2('0x2d'),_0x2829a2('0x8'),'moduleName',_0x2829a2('0x28'),_0x2829a2('0xe'),_0x2829a2('0x16')]})[_0x2829a2('0x32')](handleEntityNotFound(_0x30276a,null))['then'](function(_0x3df387){const _0x1ca8d4=_0x2829a2;if(_0x3df387){_0x4d4b35=_0x3df387[_0x1ca8d4('0x2d')],_0x285d37=_0x3df387[_0x1ca8d4('0x16')],_0xc9bc45=_0x3df387[_0x1ca8d4('0x39')],_0x4764fc=_0x3df387[_0x1ca8d4('0x28')];const _0x433392=_0x4764fc['slice'](-0x1);_0x433392==='/'&&(_0x4764fc=_0x4764fc[_0x1ca8d4('0x1a')](0x0,_0x4764fc[_0x1ca8d4('0x49')](_0x433392)));_0xfb4d35=util[_0x1ca8d4('0x34')]('%s/webservice.php',_0x4764fc);const _0x9255c3={'method':'GET','uri':_0xfb4d35,'qs':{'operation':_0x1ca8d4('0x25'),'username':_0x3df387[_0x1ca8d4('0x2d')]},'json':!![]};return rp(_0x9255c3);}})['then'](function(_0x19ce98){const _0x144ed9=_0x2829a2;if(_0x19ce98[_0x144ed9('0x9')]){const _0x473153={'method':'POST','uri':_0xfb4d35,'form':{'operation':_0x144ed9('0x4'),'username':_0x4d4b35,'accessKey':md5(_0x19ce98[_0x144ed9('0x2c')][_0x144ed9('0xc')]+_0x285d37)},'json':!![]};return rp(_0x473153);}})[_0x2829a2('0x32')](function(_0x3179f3){const _0x24cac2=_0x2829a2;if(_0x3179f3[_0x24cac2('0x9')]){const _0x5f3707={'method':_0x24cac2('0x46'),'uri':_0xfb4d35,'qs':{'operation':'describe','username':_0x4d4b35,'sessionName':_0x3179f3['result'][_0x24cac2('0x6')],'elementType':_0xc9bc45},'json':!![]};return rp(_0x5f3707);}})[_0x2829a2('0x32')](function(_0x11c4b3){const _0x38826a=_0x2829a2;if(_0x11c4b3[_0x38826a('0x9')]){const _0x511de1=['autogenerated',_0x38826a('0x42'),_0x38826a('0x36')];return _[_0x38826a('0x27')](_0x11c4b3[_0x38826a('0x2c')][_0x38826a('0x59')],function(_0x1be3dd){const _0x5ba061=_0x38826a;return _0x511de1[_0x5ba061('0x3d')](_0x1be3dd[_0x5ba061('0x1f')][_0x5ba061('0x50')]);}),_[_0x38826a('0x27')](_0x11c4b3['result'][_0x38826a('0x59')],function(_0x58fd4d){return _0x58fd4d['editable']==='false';}),{'count':_0x11c4b3[_0x38826a('0x2c')][_0x38826a('0x59')][_0x38826a('0x30')],'rows':_[_0x38826a('0x52')](_0x11c4b3[_0x38826a('0x2c')][_0x38826a('0x59')],function(_0x5d8bb8){const _0x4f5154=_0x38826a;return{'id':_0x5d8bb8['name'],'name':_0x5d8bb8[_0x4f5154('0x5e')],'custom':_[_0x4f5154('0x12')](_0x5d8bb8[_0x4f5154('0x50')],_0x4f5154('0x14'))?!![]:![],'options':_0x5d8bb8['type'][_0x4f5154('0x50')]===_0x4f5154('0x4d')&&_0x5d8bb8['type'][_0x4f5154('0x26')][_0x4f5154('0x30')]>0x0?_['map'](_0x5d8bb8[_0x4f5154('0x1f')][_0x4f5154('0x26')],function(_0x2a93ad){const _0x50def0=_0x4f5154;return{'name':_0x2a93ad[_0x50def0('0x5e')],'value':_0x2a93ad[_0x50def0('0x15')]};}):[]};})};}})[_0x2829a2('0x32')](respondWithResult(_0x30276a,null))['catch'](function(_0x2a0360){const _0x97d6ba=_0x2829a2;console['log'](_0x97d6ba('0x3')+_0x2a0360);let _0x1d6272=_0x538583[_0x97d6ba('0x31')][_0x97d6ba('0x5d')]?0x1f4:_0x2a0360[_0x97d6ba('0x5a')]||0x1f4;logger[_0x97d6ba('0x21')](_0x97d6ba('0xd'),_0x97d6ba('0x10'),_0x1d6272,JSON[_0x97d6ba('0x1')](_0x2a0360)),delete _0x2a0360[_0x97d6ba('0x50')],_0x1d6272===0x191&&(_0x1d6272=0x190),_0x30276a[_0x97d6ba('0x23')](_0x1d6272)[_0x97d6ba('0x1e')](_0x538583[_0x97d6ba('0x31')][_0x97d6ba('0x5d')]?{'message':_0x97d6ba('0xb'),'statusCode':_0x2a0360['statusCode']}:_0x2a0360);});}; \ No newline at end of file +const a384_0x3431=['remoteUri','nolimit','limit','params','Subjects','result','editable','VtigerField','username','GET','getConfigurations','offset','success','getFields,\x20%s,\x20%s,\x20%s','where','key','test','login','api','body','serverUrl','md5','format','stringify','../../components/parsers/qs','accessKey','../../config/logger','channel','sessionName','addConfiguration','findOne','description','catch','filter','status','label','length','getDescriptions','statusCode','request-promise-native','includeAll','fieldName','json','update','intersection','sendStatus','rows','slice','getchallenge','model','getSubjects','remove','undefined','create','merge','log','fields','../../mysqldb','destroy','error','query','include','like','attributes','then','value','AccountId','includes','filters','order','VtigerAccount','findAll','Wrong\x20credentials','pick','picklistValues','../../components/integrations/configuration','keys','rawAttributes','map','vTiger\x20error:\x20','type','picklist','sequelize','name','moduleName','options','autogenerated','sort','lodash','send','count','getFields','util','describe','VtigerConfiguration','Descriptions','show'];(function(_0x4264ee,_0x58bc8a){const _0x3431ba=function(_0x4567cf){while(--_0x4567cf){_0x4264ee['push'](_0x4264ee['shift']());}};_0x3431ba(++_0x58bc8a);}(a384_0x3431,0x10b));const a384_0x4567=function(_0x4264ee,_0x58bc8a){_0x4264ee=_0x4264ee-0xba;let _0x3431ba=a384_0x3431[_0x4264ee];return _0x3431ba;};const a384_0x31ed75=a384_0x4567;'use strict';const rp=require(a384_0x31ed75(0xf9)),util=require(a384_0x31ed75(0xcd)),_=require(a384_0x31ed75(0xc9)),qs=require(a384_0x31ed75(0xea)),logger=require(a384_0x31ed75(0xec))(a384_0x31ed75(0xe4)),{db}=require(a384_0x31ed75(0x10b)),{Op}=require(a384_0x31ed75(0xc3)),integrations=require(a384_0x31ed75(0xbc));function respondWithResult(_0x602f52,_0x586d3f){return _0x586d3f=_0x586d3f||0xc8,function(_0x2e966c){const _0x4d1568=a384_0x4567;if(_0x2e966c)return _0x602f52[_0x4d1568(0xf4)](_0x586d3f)[_0x4d1568(0xfc)](_0x2e966c);};}function respondWithFilteredResult(_0x2ab979,_0x4be15f){return function(_0x54a348){const _0x54f743=a384_0x4567;if(_0x54a348){const _0xa70118=_0x54a348['count'],_0x1a047a=_0x4be15f[_0x54f743(0xdd)];let _0x24fdcc=_0x4be15f[_0x54f743(0xdd)]+_0x4be15f['limit'],_0x48f37f;return _0x24fdcc>=_0xa70118?(_0x24fdcc=_0xa70118,_0x48f37f=0xc8):_0x48f37f=0xce,_0x2ab979[_0x54f743(0xf4)](_0x48f37f),_0x2ab979['set']('Content-Range',_0x1a047a+'-'+_0x24fdcc+'/'+_0xa70118)[_0x54f743(0xfc)](_0x54a348);}return null;};}function saveUpdates(_0x3d58bd){return function(_0x10ffcd){if(_0x10ffcd)return _0x10ffcd['update'](_0x3d58bd)['then'](function(_0x42e73a){return _0x42e73a;});return null;};}function removeEntity(_0xa83a8){return function(_0x7ca23){const _0x2e0f5b=a384_0x4567;if(_0x7ca23)return _0x7ca23[_0x2e0f5b(0x10c)]()[_0x2e0f5b(0x112)](function(){const _0x1607c1=_0x2e0f5b;_0xa83a8[_0x1607c1(0xf4)](0xcc)['end']();});};}function handleEntityNotFound(_0x180e66){return function(_0x1a5ea){const _0x5eb6b4=a384_0x4567;return!_0x1a5ea&&_0x180e66[_0x5eb6b4(0xff)](0x194),_0x1a5ea;};}function handleError(_0x4cff05,_0x4ec279){return _0x4ec279=_0x4ec279||0x1f4,function(_0x5b421f){const _0x3e1669=a384_0x4567;logger[_0x3e1669(0x10d)](_0x5b421f['stack']),_0x5b421f[_0x3e1669(0xc4)]&&delete _0x5b421f['name'],_0x4cff05[_0x3e1669(0xf4)](_0x4ec279)[_0x3e1669(0xca)](_0x5b421f);};}exports['index']=function(_0x4517d8,_0x135dac){const _0x27f15e=a384_0x31ed75;let _0x6f5520={};const _0x1eef39={},_0x3cf396={'count':0x0,'rows':[]},_0xa2e4d6=_[_0x27f15e(0xbf)](db['VtigerAccount'][_0x27f15e(0xbe)],function(_0x405a77){const _0x2bf0ff=_0x27f15e;return{'name':_0x405a77[_0x2bf0ff(0xfb)],'type':_0x405a77[_0x2bf0ff(0xc1)][_0x2bf0ff(0xe1)]};});_0x1eef39['model']=_[_0x27f15e(0xbf)](_0xa2e4d6,_0x27f15e(0xc4)),_0x1eef39[_0x27f15e(0x10e)]=_['keys'](_0x4517d8[_0x27f15e(0x10e)]),_0x1eef39['filters']=_['intersection'](_0x1eef39['model'],_0x1eef39[_0x27f15e(0x10e)]),_0x6f5520['attributes']=_[_0x27f15e(0xfe)](_0x1eef39[_0x27f15e(0x103)],qs[_0x27f15e(0x10a)](_0x4517d8[_0x27f15e(0x10e)][_0x27f15e(0x10a)])),_0x6f5520[_0x27f15e(0x111)]=_0x6f5520['attributes'][_0x27f15e(0xf6)]?_0x6f5520[_0x27f15e(0x111)]:_0x1eef39[_0x27f15e(0x103)];typeof _0x4517d8[_0x27f15e(0x10e)][_0x27f15e(0xd3)]===_0x27f15e(0x106)&&(_0x6f5520[_0x27f15e(0xd4)]=qs['limit'](_0x4517d8['query']['limit']),_0x6f5520[_0x27f15e(0xdd)]=qs['offset'](_0x4517d8[_0x27f15e(0x10e)][_0x27f15e(0xdd)]));_0x6f5520[_0x27f15e(0x117)]=qs[_0x27f15e(0xc8)](_0x4517d8['query'][_0x27f15e(0xc8)]),_0x6f5520['where']=qs[_0x27f15e(0x116)](_[_0x27f15e(0xba)](_0x4517d8[_0x27f15e(0x10e)],_0x1eef39[_0x27f15e(0x116)]),_0xa2e4d6);_0x4517d8[_0x27f15e(0x10e)]['filter']&&(_0x6f5520[_0x27f15e(0xe0)]=_[_0x27f15e(0x108)](_0x6f5520[_0x27f15e(0xe0)],{[Op['or']]:_[_0x27f15e(0xbf)](_0xa2e4d6,function(_0x4a0fac){const _0x3d8493=_0x27f15e;if(_0x4a0fac[_0x3d8493(0xc1)]!=='VIRTUAL'){const _0x2f2805={};return _0x2f2805[_0x4a0fac['name']]={[Op[_0x3d8493(0x110)]]:'%'+_0x4517d8['query'][_0x3d8493(0xf3)]+'%'},_0x2f2805;}})}));_0x6f5520=_[_0x27f15e(0x108)]({},_0x6f5520,_0x4517d8['options']);const _0x351aae={'where':_0x6f5520['where']};return db[_0x27f15e(0x118)][_0x27f15e(0xcb)](_0x351aae)[_0x27f15e(0x112)](function(_0x156118){const _0x47ef3a=_0x27f15e;return _0x3cf396['count']=_0x156118,_0x4517d8[_0x47ef3a(0x10e)][_0x47ef3a(0xfa)]&&(_0x6f5520[_0x47ef3a(0x10f)]=[{'all':!![]}]),db[_0x47ef3a(0x118)][_0x47ef3a(0x119)](_0x6f5520);})[_0x27f15e(0x112)](function(_0x3e57ec){const _0x565a82=_0x27f15e;return _0x3cf396[_0x565a82(0x100)]=_0x3e57ec,_0x3cf396;})[_0x27f15e(0x112)](respondWithFilteredResult(_0x135dac,_0x6f5520))[_0x27f15e(0xf2)](handleError(_0x135dac,null));},exports[a384_0x31ed75(0xd1)]=function(_0x483736,_0x3b1c16){const _0xf587a3=a384_0x31ed75;let _0x59c3c3={'raw':![],'where':{'id':_0x483736[_0xf587a3(0xd5)]['id']}};const _0x571674={};return _0x571674[_0xf587a3(0x103)]=_[_0xf587a3(0xbd)](db[_0xf587a3(0x118)][_0xf587a3(0xbe)]),_0x571674[_0xf587a3(0x10e)]=_[_0xf587a3(0xbd)](_0x483736['query']),_0x571674['filters']=_['intersection'](_0x571674[_0xf587a3(0x103)],_0x571674['query']),_0x59c3c3[_0xf587a3(0x111)]=_['intersection'](_0x571674['model'],qs[_0xf587a3(0x10a)](_0x483736['query'][_0xf587a3(0x10a)])),_0x59c3c3[_0xf587a3(0x111)]=_0x59c3c3['attributes'][_0xf587a3(0xf6)]?_0x59c3c3[_0xf587a3(0x111)]:_0x571674['model'],_0x483736['query'][_0xf587a3(0xfa)]&&(_0x59c3c3[_0xf587a3(0x10f)]=[{'all':!![]}]),_0x59c3c3=_[_0xf587a3(0x108)]({},_0x59c3c3,_0x483736[_0xf587a3(0xc6)]),db[_0xf587a3(0x118)][_0xf587a3(0xf0)](_0x59c3c3)[_0xf587a3(0x112)](handleEntityNotFound(_0x3b1c16,null))['then'](respondWithResult(_0x3b1c16,null))[_0xf587a3(0xf2)](handleError(_0x3b1c16,null));},exports[a384_0x31ed75(0x107)]=function(_0x48dc69,_0x5b22ce){const _0x1a1bbb=a384_0x31ed75;return db[_0x1a1bbb(0x118)][_0x1a1bbb(0x107)](_0x48dc69['body'],{})['then'](respondWithResult(_0x5b22ce,0xc9))[_0x1a1bbb(0xf2)](handleError(_0x5b22ce,null));},exports[a384_0x31ed75(0xfd)]=function(_0x4efce0,_0x2b3acc){const _0xf9820=a384_0x31ed75;return _0x4efce0[_0xf9820(0xe5)]['id']&&delete _0x4efce0[_0xf9820(0xe5)]['id'],db[_0xf9820(0x118)]['findOne']({'where':{'id':_0x4efce0[_0xf9820(0xd5)]['id']}})[_0xf9820(0x112)](handleEntityNotFound(_0x2b3acc,null))[_0xf9820(0x112)](saveUpdates(_0x4efce0[_0xf9820(0xe5)],null))[_0xf9820(0x112)](respondWithResult(_0x2b3acc,null))['catch'](handleError(_0x2b3acc,null));},exports[a384_0x31ed75(0x10c)]=function(_0x2019b7,_0x5698be){const _0x52d076=a384_0x31ed75;return db[_0x52d076(0x118)][_0x52d076(0xf0)]({'where':{'id':_0x2019b7['params']['id']}})[_0x52d076(0x112)](handleEntityNotFound(_0x5698be,null))[_0x52d076(0x112)](removeEntity(_0x5698be,null))[_0x52d076(0xf2)](handleError(_0x5698be,null));},exports[a384_0x31ed75(0xdc)]=function(_0x55e67d,_0x2a8c29){const _0x3ff7da=a384_0x31ed75;let _0x5efe7a={};const _0x4aed49={};let _0x4fcb70,_0xf6c880;return db[_0x3ff7da(0x118)][_0x3ff7da(0xf0)]({'where':{'id':_0x55e67d[_0x3ff7da(0xd5)]['id']}})[_0x3ff7da(0x112)](handleEntityNotFound(_0x2a8c29,null))['then'](function(_0x11f31e){const _0x21367f=_0x3ff7da;if(_0x11f31e)return _0x4fcb70=_0x11f31e,_0x4aed49['model']=_[_0x21367f(0xbd)](db[_0x21367f(0xcf)][_0x21367f(0xbe)]),_0x4aed49[_0x21367f(0x10e)]=_[_0x21367f(0xbd)](_0x55e67d[_0x21367f(0x10e)]),_0x4aed49['filters']=_[_0x21367f(0xfe)](_0x4aed49['model'],_0x4aed49[_0x21367f(0x10e)]),_0x5efe7a[_0x21367f(0x111)]=_['intersection'](_0x4aed49['model'],qs['fields'](_0x55e67d[_0x21367f(0x10e)][_0x21367f(0x10a)])),_0x5efe7a[_0x21367f(0x111)]=_0x5efe7a[_0x21367f(0x111)]['length']?_0x5efe7a[_0x21367f(0x111)]:_0x4aed49['model'],_0x5efe7a[_0x21367f(0x117)]=qs['sort'](_0x55e67d[_0x21367f(0x10e)][_0x21367f(0xc8)]),_0x5efe7a[_0x21367f(0xe0)]=qs[_0x21367f(0x116)](_[_0x21367f(0xba)](_0x55e67d['query'],_0x4aed49[_0x21367f(0x116)])),_0x55e67d['query']['filter']&&(_0x5efe7a[_0x21367f(0xe0)]=_[_0x21367f(0x108)](_0x5efe7a['where'],{[Op['or']]:_[_0x21367f(0xbf)](_0x5efe7a[_0x21367f(0x111)],function(_0x779f4){const _0x443910=_0x21367f,_0x46eaf0={};return _0x46eaf0[_0x779f4]={[Op[_0x443910(0x110)]]:'%'+_0x55e67d[_0x443910(0x10e)][_0x443910(0xf3)]+'%'},_0x46eaf0;})})),_0x5efe7a=_['merge']({},_0x5efe7a,_0x55e67d['options']),_0x4fcb70['getConfigurations'](_0x5efe7a);})['then'](function(_0x5209d1){const _0x5e5284=_0x3ff7da;if(_0x5209d1)return _0xf6c880=_0x5209d1[_0x5e5284(0xf6)],typeof _0x55e67d[_0x5e5284(0x10e)][_0x5e5284(0xd3)]===_0x5e5284(0x106)&&(_0x5efe7a[_0x5e5284(0xd4)]=qs[_0x5e5284(0xd4)](_0x55e67d[_0x5e5284(0x10e)][_0x5e5284(0xd4)]),_0x5efe7a[_0x5e5284(0xdd)]=qs[_0x5e5284(0xdd)](_0x55e67d[_0x5e5284(0x10e)]['offset'])),_0x4fcb70['getConfigurations'](_0x5efe7a);})['then'](function(_0x845249){if(_0x845249)return _0x845249?{'count':_0xf6c880,'rows':_0x845249}:null;})[_0x3ff7da(0x112)](respondWithResult(_0x2a8c29,null))[_0x3ff7da(0xf2)](handleError(_0x2a8c29,null));},exports[a384_0x31ed75(0xef)]=function(_0x55825f,_0x9be37b){const _0x427ade=a384_0x31ed75;return _0x55825f[_0x427ade(0xe5)]['id']&&delete _0x55825f[_0x427ade(0xe5)]['id'],db['VtigerAccount'][_0x427ade(0xf0)]({'where':{'id':_0x55825f[_0x427ade(0xd5)]['id']}})[_0x427ade(0x112)](handleEntityNotFound(_0x9be37b,null))[_0x427ade(0x112)](function(_0x477748){const _0x1bfbde=_0x427ade;if(_0x477748)return _0x55825f[_0x1bfbde(0xe5)][_0x1bfbde(0x114)]=_0x477748['id'],_0x55825f[_0x1bfbde(0xe5)][_0x1bfbde(0xd6)]=integrations[_0x1bfbde(0x104)](_0x55825f[_0x1bfbde(0xe5)][_0x1bfbde(0xed)],_0x55825f['body']['type']),_0x55825f['body'][_0x1bfbde(0xd0)]=integrations[_0x1bfbde(0xf7)](_0x55825f[_0x1bfbde(0xe5)][_0x1bfbde(0xed)],_0x55825f[_0x1bfbde(0xe5)][_0x1bfbde(0xc1)]),db['VtigerConfiguration'][_0x1bfbde(0x107)](_0x55825f[_0x1bfbde(0xe5)],{'include':[{'model':db[_0x1bfbde(0xd9)],'as':'Subjects'},{'model':db[_0x1bfbde(0xd9)],'as':_0x1bfbde(0xd0)}]});return null;})[_0x427ade(0x112)](respondWithResult(_0x9be37b,null))[_0x427ade(0xf2)](handleError(_0x9be37b,null));};const md5=require(a384_0x31ed75(0xe7));exports[a384_0x31ed75(0xcc)]=function(_0x2baea0,_0x2ca13e){const _0x724689=a384_0x31ed75;let _0x32f9b2=null,_0x81f6d6=null,_0x4a3648=null,_0x28ffdb=null,_0xf85c0f='';return db[_0x724689(0x118)][_0x724689(0xf0)]({'where':{'id':_0x2baea0[_0x724689(0xd5)]['id']},'attributes':['id',_0x724689(0xc4),'username',_0x724689(0xf1),_0x724689(0xc5),_0x724689(0xd2),_0x724689(0xe6),'accessKey']})[_0x724689(0x112)](handleEntityNotFound(_0x2ca13e,null))[_0x724689(0x112)](function(_0x283746){const _0x3ec932=_0x724689;if(_0x283746){_0x32f9b2=_0x283746[_0x3ec932(0xda)],_0x81f6d6=_0x283746[_0x3ec932(0xeb)],_0x4a3648=_0x283746['moduleName'],_0xf85c0f=_0x283746[_0x3ec932(0xd2)];const _0x54ef78=_0xf85c0f[_0x3ec932(0x101)](-0x1);_0x54ef78==='/'&&(_0xf85c0f=_0xf85c0f['substring'](0x0,_0xf85c0f['lastIndexOf'](_0x54ef78)));_0x28ffdb=util[_0x3ec932(0xe8)]('%s/webservice.php',_0xf85c0f);const _0x3602c9={'method':_0x3ec932(0xdb),'uri':_0x28ffdb,'qs':{'operation':_0x3ec932(0x102),'username':_0x283746['username']},'json':!![]};return rp(_0x3602c9);}})[_0x724689(0x112)](function(_0x4b2f06){const _0x4dceaa=_0x724689;if(_0x4b2f06[_0x4dceaa(0xde)]){const _0x331fb6={'method':'POST','uri':_0x28ffdb,'form':{'operation':_0x4dceaa(0xe3),'username':_0x32f9b2,'accessKey':md5(_0x4b2f06[_0x4dceaa(0xd7)]['token']+_0x81f6d6)},'json':!![]};return rp(_0x331fb6);}})[_0x724689(0x112)](function(_0x4ec098){const _0x4a6f5c=_0x724689;if(_0x4ec098[_0x4a6f5c(0xde)]){const _0x27c730={'method':_0x4a6f5c(0xdb),'uri':_0x28ffdb,'qs':{'operation':_0x4a6f5c(0xce),'username':_0x32f9b2,'sessionName':_0x4ec098['result'][_0x4a6f5c(0xee)],'elementType':_0x4a3648},'json':!![]};return rp(_0x27c730);}})[_0x724689(0x112)](function(_0x5907c9){const _0x136e7b=_0x724689;if(_0x5907c9[_0x136e7b(0xde)]){const _0x10153d=[_0x136e7b(0xc7),'reference','owner'];return _[_0x136e7b(0x105)](_0x5907c9[_0x136e7b(0xd7)][_0x136e7b(0x10a)],function(_0x429913){const _0x158a82=_0x136e7b;return _0x10153d[_0x158a82(0x115)](_0x429913[_0x158a82(0xc1)]['name']);}),_['remove'](_0x5907c9[_0x136e7b(0xd7)]['fields'],function(_0x21cc2d){const _0x5bf713=_0x136e7b;return _0x21cc2d[_0x5bf713(0xd8)]==='false';}),{'count':_0x5907c9['result']['fields'][_0x136e7b(0xf6)],'rows':_[_0x136e7b(0xbf)](_0x5907c9['result']['fields'],function(_0xe0709){const _0xd6d4f=_0x136e7b;return{'id':_0xe0709[_0xd6d4f(0xc4)],'name':_0xe0709[_0xd6d4f(0xf5)],'custom':_['startsWith'](_0xe0709[_0xd6d4f(0xc4)],'cf_')?!![]:![],'options':_0xe0709['type'][_0xd6d4f(0xc4)]===_0xd6d4f(0xc2)&&_0xe0709['type']['picklistValues'][_0xd6d4f(0xf6)]>0x0?_[_0xd6d4f(0xbf)](_0xe0709[_0xd6d4f(0xc1)][_0xd6d4f(0xbb)],function(_0x522783){const _0x297c93=_0xd6d4f;return{'name':_0x522783[_0x297c93(0xf5)],'value':_0x522783[_0x297c93(0x113)]};}):[]};})};}})[_0x724689(0x112)](respondWithResult(_0x2ca13e,null))[_0x724689(0xf2)](function(_0x3c2f0a){const _0x573a2e=_0x724689;console[_0x573a2e(0x109)](_0x573a2e(0xc0)+_0x3c2f0a);let _0x2b21a9=_0x2baea0['query'][_0x573a2e(0xe2)]?0x1f4:_0x3c2f0a[_0x573a2e(0xf8)]||0x1f4;logger['error'](_0x573a2e(0xdf),'getFields',_0x2b21a9,JSON[_0x573a2e(0xe9)](_0x3c2f0a)),delete _0x3c2f0a[_0x573a2e(0xc4)],_0x2b21a9===0x191&&(_0x2b21a9=0x190),_0x2ca13e[_0x573a2e(0xf4)](_0x2b21a9)['send'](_0x2baea0[_0x573a2e(0x10e)]['test']?{'message':_0x573a2e(0x11a),'statusCode':_0x3c2f0a[_0x573a2e(0xf8)]}:_0x3c2f0a);});}; \ No newline at end of file diff --git a/server/api/intVtigerAccount/intVtigerAccount.model.js b/server/api/intVtigerAccount/intVtigerAccount.model.js index 22701b0..78c9a2f 100644 --- a/server/api/intVtigerAccount/intVtigerAccount.model.js +++ b/server/api/intVtigerAccount/intVtigerAccount.model.js @@ -1 +1 @@ -const a321_0x23ed=['int_vtiger_accounts','./intVtigerAccount.attributes','exports'];(function(_0x325ab9,_0x23ed2a){const _0x5652b9=function(_0x5cebce){while(--_0x5cebce){_0x325ab9['push'](_0x325ab9['shift']());}};_0x5652b9(++_0x23ed2a);}(a321_0x23ed,0x12c));const a321_0x5652=function(_0x325ab9,_0x23ed2a){_0x325ab9=_0x325ab9-0x0;let _0x5652b9=a321_0x23ed[_0x325ab9];return _0x5652b9;};const _0x41556a=a321_0x5652;'use strict';const attributes=require(_0x41556a('0x1'));module[_0x41556a('0x2')]=function(_0x5cebce){const _0x4081b6=_0x41556a,_0x1d1fa5=_0x5cebce['define']('VtigerAccount',attributes,{'tableName':_0x4081b6('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x1d1fa5;}; \ No newline at end of file +const a385_0x3be3=['./intVtigerAccount.options','function','./intVtigerAccount.attributes','init','exports','sequelize'];(function(_0x45a5bf,_0x5a3f38){const _0x3be3cf=function(_0x4f8763){while(--_0x4f8763){_0x45a5bf['push'](_0x45a5bf['shift']());}};_0x3be3cf(++_0x5a3f38);}(a385_0x3be3,0xb6));const a385_0x4f87=function(_0x45a5bf,_0x5a3f38){_0x45a5bf=_0x45a5bf-0x114;let _0x3be3cf=a385_0x3be3[_0x45a5bf];return _0x3be3cf;};const a385_0x233559=a385_0x4f87;'use strict';const {Model}=require(a385_0x233559(0x117)),{attributes}=require(a385_0x233559(0x114)),{options}=require(a385_0x233559(0x118));class VtigerAccount extends Model{}function init(_0x41e6b5,_0xf85d4a){const _0x5b586f=a385_0x233559,_0x300922=options(_0x41e6b5),_0x53a39a=typeof _0xf85d4a===_0x5b586f(0x119)?_0xf85d4a(_0x300922):_0x300922;return VtigerAccount[_0x5b586f(0x115)](attributes,_0x53a39a),VtigerAccount;}module[a385_0x233559(0x116)]['VtigerAccount']=VtigerAccount,module['exports']['init']=init; \ No newline at end of file diff --git a/server/api/intVtigerAccount/intVtigerAccount.options.js b/server/api/intVtigerAccount/intVtigerAccount.options.js new file mode 100644 index 0000000..558ec84 --- /dev/null +++ b/server/api/intVtigerAccount/intVtigerAccount.options.js @@ -0,0 +1 @@ +var a386_0x29a0=['exports','int_vtiger_accounts'];(function(_0x49ffb9,_0x4a8bd7){var _0x29a01d=function(_0x422eb1){while(--_0x422eb1){_0x49ffb9['push'](_0x49ffb9['shift']());}};_0x29a01d(++_0x4a8bd7);}(a386_0x29a0,0xbf));var a386_0x422e=function(_0x49ffb9,_0x4a8bd7){_0x49ffb9=_0x49ffb9-0x18e;var _0x29a01d=a386_0x29a0[_0x49ffb9];return _0x29a01d;};var a386_0x3594a1=a386_0x422e;function options(_0x29fda6){var _0x48bbd2=a386_0x422e;return{'sequelize':_0x29fda6,'tableName':_0x48bbd2(0x18e),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a386_0x3594a1(0x18f)]['options']=options; \ No newline at end of file diff --git a/server/api/intVtigerAccount/intVtigerAccount.rpc.js b/server/api/intVtigerAccount/intVtigerAccount.rpc.js index 519cc27..c461bb0 100644 --- a/server/api/intVtigerAccount/intVtigerAccount.rpc.js +++ b/server/api/intVtigerAccount/intVtigerAccount.rpc.js @@ -1 +1 @@ -const a322_0x593c=['then','options','map','where','ShowVtigerAccount','info','findAll','VtigerAccount','attributes','message','raw','lodash','GetVtigerAccount','include','limit','catch','debug','stringify','findOne','../../config/logger','error','model'];(function(_0x251dfe,_0x593c2b){const _0x2a7a16=function(_0x3ea268){while(--_0x3ea268){_0x251dfe['push'](_0x251dfe['shift']());}};_0x2a7a16(++_0x593c2b);}(a322_0x593c,0x8a));const a322_0x2a7a=function(_0x251dfe,_0x593c2b){_0x251dfe=_0x251dfe-0x0;let _0x2a7a16=a322_0x593c[_0x251dfe];return _0x2a7a16;};const _0x42818d=a322_0x2a7a;'use strict';const _=require(_0x42818d('0x5')),db=require('../../mysqldb')['db'],logger=require(_0x42818d('0xd'))('rpc');exports[_0x42818d('0x6')]=function(_0x3ea268){const _0x72a24c=this;return new Promise(function(_0x15405f,_0x27e2a3){const _0x83ba04=a322_0x2a7a;return db[_0x83ba04('0x1')][_0x83ba04('0x0')]({'raw':_0x3ea268['options']?_0x3ea268[_0x83ba04('0x11')][_0x83ba04('0x4')]===undefined?!![]:![]:!![],'where':_0x3ea268[_0x83ba04('0x11')]?_0x3ea268[_0x83ba04('0x11')][_0x83ba04('0x13')]||null:null,'attributes':_0x3ea268[_0x83ba04('0x11')]?_0x3ea268[_0x83ba04('0x11')]['attributes']||null:null,'limit':_0x3ea268[_0x83ba04('0x11')]?_0x3ea268[_0x83ba04('0x11')][_0x83ba04('0x8')]||null:null,'include':_0x3ea268[_0x83ba04('0x11')]?_0x3ea268[_0x83ba04('0x11')][_0x83ba04('0x7')]?_[_0x83ba04('0x12')](_0x3ea268[_0x83ba04('0x11')]['include'],function(_0x104b37){const _0x1de4c4=_0x83ba04;return{'model':db[_0x104b37[_0x1de4c4('0xf')]],'as':_0x104b37['as'],'attributes':_0x104b37[_0x1de4c4('0x2')],'include':_0x104b37[_0x1de4c4('0x7')]?_['map'](_0x104b37['include'],function(_0x5cdc2e){const _0x4ede86=_0x1de4c4;return{'model':db[_0x5cdc2e[_0x4ede86('0xf')]],'as':_0x5cdc2e['as'],'attributes':_0x5cdc2e[_0x4ede86('0x2')],'include':_0x5cdc2e[_0x4ede86('0x7')]?_[_0x4ede86('0x12')](_0x5cdc2e[_0x4ede86('0x7')],function(_0xfacf4d){const _0x4b0ce1=_0x4ede86;return{'model':db[_0xfacf4d[_0x4b0ce1('0xf')]],'as':_0xfacf4d['as'],'attributes':_0xfacf4d[_0x4b0ce1('0x2')]};}):[]};}):[]};}):[]:[]})[_0x83ba04('0x10')](function(_0x50f894){const _0x3539c3=_0x83ba04;logger[_0x3539c3('0x15')](_0x3539c3('0x6'),_0x3ea268),logger[_0x3539c3('0xa')]('GetVtigerAccount',_0x3ea268,JSON['stringify'](_0x50f894)),_0x15405f(_0x50f894);})['catch'](function(_0x574b83){const _0x2327ee=_0x83ba04;logger['error']('GetVtigerAccount',_0x574b83[_0x2327ee('0x3')],_0x3ea268),_0x27e2a3(_0x72a24c['error'](0x1f4,_0x574b83[_0x2327ee('0x3')]));});});},exports['ShowVtigerAccount']=function(_0x445eb7){const _0x4d3f90=this;return new Promise(function(_0x246cd6,_0x41bcfe){const _0x54c17b=a322_0x2a7a;return db[_0x54c17b('0x1')][_0x54c17b('0xc')]({'raw':_0x445eb7['options']?_0x445eb7[_0x54c17b('0x11')]['raw']===undefined?!![]:![]:!![],'where':_0x445eb7[_0x54c17b('0x11')]?_0x445eb7[_0x54c17b('0x11')][_0x54c17b('0x13')]||null:null,'attributes':_0x445eb7[_0x54c17b('0x11')]?_0x445eb7[_0x54c17b('0x11')][_0x54c17b('0x2')]||null:null,'include':_0x445eb7['options']?_0x445eb7['options']['include']?_['map'](_0x445eb7[_0x54c17b('0x11')][_0x54c17b('0x7')],function(_0x586966){const _0x1e0144=_0x54c17b;return{'model':db[_0x586966[_0x1e0144('0xf')]],'as':_0x586966['as'],'attributes':_0x586966[_0x1e0144('0x2')],'include':_0x586966['include']?_[_0x1e0144('0x12')](_0x586966[_0x1e0144('0x7')],function(_0x3fa494){const _0x5dcc30=_0x1e0144;return{'model':db[_0x3fa494['model']],'as':_0x3fa494['as'],'attributes':_0x3fa494[_0x5dcc30('0x2')],'include':_0x3fa494['include']?_[_0x5dcc30('0x12')](_0x3fa494[_0x5dcc30('0x7')],function(_0x1b38df){const _0x5023ff=_0x5dcc30;return{'model':db[_0x1b38df[_0x5023ff('0xf')]],'as':_0x1b38df['as'],'attributes':_0x1b38df[_0x5023ff('0x2')]};}):[]};}):[]};}):[]:[]})[_0x54c17b('0x10')](function(_0x6240bc){const _0x3c1e55=_0x54c17b;logger[_0x3c1e55('0x15')](_0x3c1e55('0x14'),_0x445eb7),logger[_0x3c1e55('0xa')](_0x3c1e55('0x14'),_0x445eb7,JSON[_0x3c1e55('0xb')](_0x6240bc)),_0x246cd6(_0x6240bc);})[_0x54c17b('0x9')](function(_0x27bef0){const _0x1909b2=_0x54c17b;logger[_0x1909b2('0xe')](_0x1909b2('0x14'),_0x27bef0['message'],_0x445eb7),_0x41bcfe(_0x4d3f90[_0x1909b2('0xe')](0x1f4,_0x27bef0['message']));});});}; \ No newline at end of file +const a387_0xfa05=['message','raw','VtigerAccount','attributes','findAll','debug','error','limit','stringify','info','GetVtigerAccount','where','ShowVtigerAccount','../../config/logger','map','../../mysqldb','catch','then','options','model','include','rpc'];(function(_0x27f907,_0x22efca){const _0xfa05cf=function(_0x20aeed){while(--_0x20aeed){_0x27f907['push'](_0x27f907['shift']());}};_0xfa05cf(++_0x22efca);}(a387_0xfa05,0x150));const a387_0x20ae=function(_0x27f907,_0x22efca){_0x27f907=_0x27f907-0x6b;let _0xfa05cf=a387_0xfa05[_0x27f907];return _0xfa05cf;};const a387_0x107506=a387_0x20ae;'use strict';const _=require('lodash'),db=require(a387_0x107506(0x74))['db'],logger=require(a387_0x107506(0x72))(a387_0x107506(0x7a));exports['GetVtigerAccount']=function(_0x151a28){const _0x3fab59=this;return new Promise(function(_0x539710,_0x56a643){const _0x4ce056=a387_0x20ae;return db[_0x4ce056(0x7d)][_0x4ce056(0x7f)]({'raw':_0x151a28[_0x4ce056(0x77)]?_0x151a28['options'][_0x4ce056(0x7c)]===undefined?!![]:![]:!![],'where':_0x151a28[_0x4ce056(0x77)]?_0x151a28[_0x4ce056(0x77)][_0x4ce056(0x70)]||null:null,'attributes':_0x151a28[_0x4ce056(0x77)]?_0x151a28['options'][_0x4ce056(0x7e)]||null:null,'limit':_0x151a28[_0x4ce056(0x77)]?_0x151a28[_0x4ce056(0x77)][_0x4ce056(0x6c)]||null:null,'include':_0x151a28['options']?_0x151a28['options'][_0x4ce056(0x79)]?_[_0x4ce056(0x73)](_0x151a28[_0x4ce056(0x77)][_0x4ce056(0x79)],function(_0x20f087){const _0x3e7621=_0x4ce056;return{'model':db[_0x20f087[_0x3e7621(0x78)]],'as':_0x20f087['as'],'attributes':_0x20f087[_0x3e7621(0x7e)],'include':_0x20f087[_0x3e7621(0x79)]?_[_0x3e7621(0x73)](_0x20f087[_0x3e7621(0x79)],function(_0x149f95){const _0xfb5701=_0x3e7621;return{'model':db[_0x149f95[_0xfb5701(0x78)]],'as':_0x149f95['as'],'attributes':_0x149f95[_0xfb5701(0x7e)],'include':_0x149f95[_0xfb5701(0x79)]?_[_0xfb5701(0x73)](_0x149f95['include'],function(_0x233bc4){const _0x16a5a0=_0xfb5701;return{'model':db[_0x233bc4[_0x16a5a0(0x78)]],'as':_0x233bc4['as'],'attributes':_0x233bc4[_0x16a5a0(0x7e)]};}):[]};}):[]};}):[]:[]})[_0x4ce056(0x76)](function(_0x1c8116){const _0x492439=_0x4ce056;logger['info'](_0x492439(0x6f),_0x151a28),logger[_0x492439(0x80)](_0x492439(0x6f),_0x151a28,JSON[_0x492439(0x6d)](_0x1c8116)),_0x539710(_0x1c8116);})[_0x4ce056(0x75)](function(_0x41ce89){const _0x174646=_0x4ce056;logger[_0x174646(0x6b)](_0x174646(0x6f),_0x41ce89[_0x174646(0x7b)],_0x151a28),_0x56a643(_0x3fab59[_0x174646(0x6b)](0x1f4,_0x41ce89['message']));});});},exports[a387_0x107506(0x71)]=function(_0x4248b6){const _0x1fabca=this;return new Promise(function(_0x372604,_0x1805f9){const _0x1f5996=a387_0x20ae;return db['VtigerAccount']['findOne']({'raw':_0x4248b6[_0x1f5996(0x77)]?_0x4248b6[_0x1f5996(0x77)][_0x1f5996(0x7c)]===undefined?!![]:![]:!![],'where':_0x4248b6[_0x1f5996(0x77)]?_0x4248b6[_0x1f5996(0x77)]['where']||null:null,'attributes':_0x4248b6[_0x1f5996(0x77)]?_0x4248b6[_0x1f5996(0x77)][_0x1f5996(0x7e)]||null:null,'include':_0x4248b6['options']?_0x4248b6['options'][_0x1f5996(0x79)]?_['map'](_0x4248b6[_0x1f5996(0x77)][_0x1f5996(0x79)],function(_0x4b74de){const _0x5bb2e7=_0x1f5996;return{'model':db[_0x4b74de[_0x5bb2e7(0x78)]],'as':_0x4b74de['as'],'attributes':_0x4b74de['attributes'],'include':_0x4b74de[_0x5bb2e7(0x79)]?_['map'](_0x4b74de[_0x5bb2e7(0x79)],function(_0x26d948){const _0x40a65a=_0x5bb2e7;return{'model':db[_0x26d948['model']],'as':_0x26d948['as'],'attributes':_0x26d948['attributes'],'include':_0x26d948[_0x40a65a(0x79)]?_[_0x40a65a(0x73)](_0x26d948['include'],function(_0x21c13d){const _0x35eb04=_0x40a65a;return{'model':db[_0x21c13d[_0x35eb04(0x78)]],'as':_0x21c13d['as'],'attributes':_0x21c13d[_0x35eb04(0x7e)]};}):[]};}):[]};}):[]:[]})[_0x1f5996(0x76)](function(_0x3ef405){const _0x1d940d=_0x1f5996;logger[_0x1d940d(0x6e)]('ShowVtigerAccount',_0x4248b6),logger[_0x1d940d(0x80)](_0x1d940d(0x71),_0x4248b6,JSON['stringify'](_0x3ef405)),_0x372604(_0x3ef405);})[_0x1f5996(0x75)](function(_0x25dba6){const _0x533ea5=_0x1f5996;logger['error'](_0x533ea5(0x71),_0x25dba6[_0x533ea5(0x7b)],_0x4248b6),_0x1805f9(_0x1fabca[_0x533ea5(0x6b)](0x1f4,_0x25dba6[_0x533ea5(0x7b)]));});});}; \ No newline at end of file diff --git a/server/api/intVtigerConfiguration/index.js b/server/api/intVtigerConfiguration/index.js index 065545c..1101136 100644 --- a/server/api/intVtigerConfiguration/index.js +++ b/server/api/intVtigerConfiguration/index.js @@ -1 +1 @@ -const a323_0x119c=['exports','getFields','index','/:id/subjects','delete','getDescriptions','create','/:id/fields','Router','getSubjects','get','/:id/descriptions','show','./intVtigerConfiguration.controller','isAuthenticated','/:id','update','destroy'];(function(_0xbc55f3,_0x119c1a){const _0x33d857=function(_0x54d4dd){while(--_0x54d4dd){_0xbc55f3['push'](_0xbc55f3['shift']());}};_0x33d857(++_0x119c1a);}(a323_0x119c,0xbf));const a323_0x33d8=function(_0xbc55f3,_0x119c1a){_0xbc55f3=_0xbc55f3-0x0;let _0x33d857=a323_0x119c[_0xbc55f3];return _0x33d857;};const _0x2dea71=a323_0x33d8;'use strict';const express=require('express'),router=express[_0x2dea71('0xf')](),auth=require('../../components/auth/service'),controller=require(_0x2dea71('0x2'));router[_0x2dea71('0x11')]('/',auth['isAuthenticated'](),controller[_0x2dea71('0x9')]),router['get'](_0x2dea71('0x4'),auth[_0x2dea71('0x3')](),controller[_0x2dea71('0x1')]),router[_0x2dea71('0x11')](_0x2dea71('0xe'),auth[_0x2dea71('0x3')](),controller[_0x2dea71('0x8')]),router[_0x2dea71('0x11')](_0x2dea71('0xa'),auth[_0x2dea71('0x3')](),controller[_0x2dea71('0x10')]),router[_0x2dea71('0x11')](_0x2dea71('0x0'),auth[_0x2dea71('0x3')](),controller[_0x2dea71('0xc')]),router['post']('/',auth[_0x2dea71('0x3')](),controller[_0x2dea71('0xd')]),router['put'](_0x2dea71('0x4'),auth[_0x2dea71('0x3')](),controller[_0x2dea71('0x5')]),router[_0x2dea71('0xb')]('/:id',auth[_0x2dea71('0x3')](),controller[_0x2dea71('0x6')]),module[_0x2dea71('0x7')]=router; \ No newline at end of file +const a388_0x2347=['isAuthenticated','/:id','index','destroy','update','delete','./intVtigerConfiguration.controller','../../components/auth/service','/:id/subjects','show','/:id/descriptions','/:id/fields','getSubjects','getDescriptions','put','exports','express','get','create'];(function(_0xed85d3,_0x3cae02){const _0x2347c9=function(_0x21a7b2){while(--_0x21a7b2){_0xed85d3['push'](_0xed85d3['shift']());}};_0x2347c9(++_0x3cae02);}(a388_0x2347,0xda));const a388_0x21a7=function(_0xed85d3,_0x3cae02){_0xed85d3=_0xed85d3-0x191;let _0x2347c9=a388_0x2347[_0xed85d3];return _0x2347c9;};const a388_0x4abb7e=a388_0x21a7;'use strict';const express=require(a388_0x4abb7e(0x198)),router=express['Router'](),auth=require(a388_0x4abb7e(0x1a2)),controller=require(a388_0x4abb7e(0x1a1));router['get']('/',auth[a388_0x4abb7e(0x19b)](),controller[a388_0x4abb7e(0x19d)]),router[a388_0x4abb7e(0x199)]('/:id',auth[a388_0x4abb7e(0x19b)](),controller[a388_0x4abb7e(0x191)]),router[a388_0x4abb7e(0x199)](a388_0x4abb7e(0x193),auth['isAuthenticated'](),controller['getFields']),router[a388_0x4abb7e(0x199)](a388_0x4abb7e(0x1a3),auth[a388_0x4abb7e(0x19b)](),controller[a388_0x4abb7e(0x194)]),router[a388_0x4abb7e(0x199)](a388_0x4abb7e(0x192),auth[a388_0x4abb7e(0x19b)](),controller[a388_0x4abb7e(0x195)]),router['post']('/',auth[a388_0x4abb7e(0x19b)](),controller[a388_0x4abb7e(0x19a)]),router[a388_0x4abb7e(0x196)](a388_0x4abb7e(0x19c),auth['isAuthenticated'](),controller[a388_0x4abb7e(0x19f)]),router[a388_0x4abb7e(0x1a0)](a388_0x4abb7e(0x19c),auth['isAuthenticated'](),controller[a388_0x4abb7e(0x19e)]),module[a388_0x4abb7e(0x197)]=router; \ No newline at end of file diff --git a/server/api/intVtigerConfiguration/intVtigerConfiguration.attributes.js b/server/api/intVtigerConfiguration/intVtigerConfiguration.attributes.js index 1aadcf4..0118671 100644 --- a/server/api/intVtigerConfiguration/intVtigerConfiguration.attributes.js +++ b/server/api/intVtigerConfiguration/intVtigerConfiguration.attributes.js @@ -1 +1 @@ -const a324_0x2e3c=['exports','sequelize','STRING'];(function(_0x22cf76,_0x2e3cd1){const _0x5cae08=function(_0xbf9c6c){while(--_0xbf9c6c){_0x22cf76['push'](_0x22cf76['shift']());}};_0x5cae08(++_0x2e3cd1);}(a324_0x2e3c,0x10b));const a324_0x5cae=function(_0x22cf76,_0x2e3cd1){_0x22cf76=_0x22cf76-0x0;let _0x5cae08=a324_0x2e3c[_0x22cf76];return _0x5cae08;};const _0x2511dd=a324_0x5cae;'use strict';const Sequelize=require(_0x2511dd('0x1'));module[_0x2511dd('0x0')]={'name':{'type':Sequelize['STRING']},'description':{'type':Sequelize[_0x2511dd('0x2')]}}; \ No newline at end of file +const a389_0x349e=['STRING'];(function(_0x2235df,_0x25cb9d){const _0x349ec4=function(_0x2ecb04){while(--_0x2ecb04){_0x2235df['push'](_0x2235df['shift']());}};_0x349ec4(++_0x25cb9d);}(a389_0x349e,0x13b));const a389_0x2ecb=function(_0x2235df,_0x25cb9d){_0x2235df=_0x2235df-0x163;let _0x349ec4=a389_0x349e[_0x2235df];return _0x349ec4;};const a389_0xe4e49e=a389_0x2ecb;'use strict';const {DataTypes}=require('sequelize'),attributes={'name':{'type':DataTypes[a389_0xe4e49e(0x163)]},'description':{'type':DataTypes[a389_0xe4e49e(0x163)]}};module['exports']['attributes']=attributes; \ No newline at end of file diff --git a/server/api/intVtigerConfiguration/intVtigerConfiguration.controller.js b/server/api/intVtigerConfiguration/intVtigerConfiguration.controller.js index 4a68394..00e4c22 100644 --- a/server/api/intVtigerConfiguration/intVtigerConfiguration.controller.js +++ b/server/api/intVtigerConfiguration/intVtigerConfiguration.controller.js @@ -1 +1 @@ -const a325_0xd29c=['order','../../components/parsers/qs','then','offset','getSubjects','includeAll','pick','end','length','destroy','nolimit','model','VtigerConfiguration','catch','keys','sendStatus','fieldName','key','fields','stack','attributes','findAll','rows','query','rawAttributes','create','set','type','getDescriptions','status','sequelize','body','where','count','like','map','show','error','params','update','findOne','undefined','VIRTUAL','send','sort','name','merge','getFields','options','intersection','index','limit','VtigerField','filters','filter','include'];(function(_0x5971a2,_0xd29c55){const _0x3d009d=function(_0x383652){while(--_0x383652){_0x5971a2['push'](_0x5971a2['shift']());}};_0x3d009d(++_0xd29c55);}(a325_0xd29c,0x19c));const a325_0x3d00=function(_0x5971a2,_0xd29c55){_0x5971a2=_0x5971a2-0x0;let _0x3d009d=a325_0xd29c[_0x5971a2];return _0x3d009d;};const _0x2b0137=a325_0x3d00;'use strict';const _=require('lodash'),qs=require(_0x2b0137('0x25')),logger=require('../../config/logger')('api'),db=require('../../mysqldb')['db'],{Op}=require(_0x2b0137('0xa'));function respondWithResult(_0x383652,_0x400d76){return _0x400d76=_0x400d76||0xc8,function(_0xcb7d5a){const _0x1fcf86=a325_0x3d00;if(_0xcb7d5a)return _0x383652[_0x1fcf86('0x9')](_0x400d76)['json'](_0xcb7d5a);};}function respondWithFilteredResult(_0xa54727,_0x57cd55){return function(_0x4fc576){const _0x29a979=a325_0x3d00;if(_0x4fc576){const _0x3a1a7b=_0x4fc576['count'],_0x34e96d=_0x57cd55['offset'];let _0x243f32=_0x57cd55['offset']+_0x57cd55['limit'],_0x5eecdb;return _0x243f32>=_0x3a1a7b?(_0x243f32=_0x3a1a7b,_0x5eecdb=0xc8):_0x5eecdb=0xce,_0xa54727[_0x29a979('0x9')](_0x5eecdb),_0xa54727[_0x29a979('0x6')]('Content-Range',_0x34e96d+'-'+_0x243f32+'/'+_0x3a1a7b)['json'](_0x4fc576);}return null;};}function saveUpdates(_0x5d8601){return function(_0x32b65b){const _0x216110=a325_0x3d00;if(_0x32b65b)return _0x32b65b[_0x216110('0x13')](_0x5d8601)[_0x216110('0x26')](function(_0x3d02f0){return _0x3d02f0;});return null;};}function removeEntity(_0x393b79){return function(_0x14a2b1){const _0x2b4bbd=a325_0x3d00;if(_0x14a2b1)return _0x14a2b1[_0x2b4bbd('0x2d')]()[_0x2b4bbd('0x26')](function(){const _0xf4fdb8=_0x2b4bbd;_0x393b79[_0xf4fdb8('0x9')](0xcc)[_0xf4fdb8('0x2b')]();});};}function handleEntityNotFound(_0x20501b){return function(_0x2782c8){const _0x16e1e6=a325_0x3d00;return!_0x2782c8&&_0x20501b[_0x16e1e6('0x33')](0x194),_0x2782c8;};}function handleError(_0x23d17d,_0x36f6fb){return _0x36f6fb=_0x36f6fb||0x1f4,function(_0x2a1c18){const _0x289f10=a325_0x3d00;logger[_0x289f10('0x11')](_0x2a1c18[_0x289f10('0x37')]),_0x2a1c18[_0x289f10('0x19')]&&delete _0x2a1c18['name'],_0x23d17d[_0x289f10('0x9')](_0x36f6fb)[_0x289f10('0x17')](_0x2a1c18);};}exports[_0x2b0137('0x1e')]=function(_0x195360,_0x3ac135){const _0x15f9a5=_0x2b0137;let _0x4e65d1={};const _0x2e1f06={},_0x135d89={'count':0x0,'rows':[]},_0x3ae37=_[_0x15f9a5('0xf')](db[_0x15f9a5('0x30')]['rawAttributes'],function(_0x43cb72){const _0x6a33b=_0x15f9a5;return{'name':_0x43cb72[_0x6a33b('0x34')],'type':_0x43cb72['type'][_0x6a33b('0x35')]};});_0x2e1f06[_0x15f9a5('0x2f')]=_[_0x15f9a5('0xf')](_0x3ae37,'name'),_0x2e1f06[_0x15f9a5('0x3')]=_[_0x15f9a5('0x32')](_0x195360[_0x15f9a5('0x3')]),_0x2e1f06[_0x15f9a5('0x21')]=_[_0x15f9a5('0x1d')](_0x2e1f06[_0x15f9a5('0x2f')],_0x2e1f06[_0x15f9a5('0x3')]),_0x4e65d1[_0x15f9a5('0x0')]=_[_0x15f9a5('0x1d')](_0x2e1f06[_0x15f9a5('0x2f')],qs['fields'](_0x195360['query']['fields'])),_0x4e65d1['attributes']=_0x4e65d1[_0x15f9a5('0x0')]['length']?_0x4e65d1[_0x15f9a5('0x0')]:_0x2e1f06[_0x15f9a5('0x2f')];typeof _0x195360[_0x15f9a5('0x3')][_0x15f9a5('0x2e')]===_0x15f9a5('0x15')&&(_0x4e65d1['limit']=qs[_0x15f9a5('0x1f')](_0x195360['query'][_0x15f9a5('0x1f')]),_0x4e65d1[_0x15f9a5('0x27')]=qs['offset'](_0x195360[_0x15f9a5('0x3')][_0x15f9a5('0x27')]));_0x4e65d1[_0x15f9a5('0x24')]=qs[_0x15f9a5('0x18')](_0x195360['query'][_0x15f9a5('0x18')]),_0x4e65d1['where']=qs[_0x15f9a5('0x21')](_[_0x15f9a5('0x2a')](_0x195360[_0x15f9a5('0x3')],_0x2e1f06[_0x15f9a5('0x21')]),_0x3ae37);_0x195360[_0x15f9a5('0x3')]['filter']&&(_0x4e65d1[_0x15f9a5('0xc')]=_[_0x15f9a5('0x1a')](_0x4e65d1[_0x15f9a5('0xc')],{[Op['or']]:_['map'](_0x3ae37,function(_0x1e5923){const _0x479dfb=_0x15f9a5;if(_0x1e5923[_0x479dfb('0x7')]!==_0x479dfb('0x16')){const _0x1674e5={};return _0x1674e5[_0x1e5923[_0x479dfb('0x19')]]={[Op[_0x479dfb('0xe')]]:'%'+_0x195360[_0x479dfb('0x3')]['filter']+'%'},_0x1674e5;}})}));_0x4e65d1=_[_0x15f9a5('0x1a')]({},_0x4e65d1,_0x195360[_0x15f9a5('0x1c')]);const _0x4232ad={'where':_0x4e65d1[_0x15f9a5('0xc')]};return db[_0x15f9a5('0x30')][_0x15f9a5('0xd')](_0x4232ad)[_0x15f9a5('0x26')](function(_0x581b1b){const _0x4aff8e=_0x15f9a5;return _0x135d89[_0x4aff8e('0xd')]=_0x581b1b,_0x195360[_0x4aff8e('0x3')][_0x4aff8e('0x29')]&&(_0x4e65d1[_0x4aff8e('0x23')]=[{'all':!![]}]),db[_0x4aff8e('0x30')][_0x4aff8e('0x1')](_0x4e65d1);})['then'](function(_0x22ba06){const _0x30be60=_0x15f9a5;return _0x135d89[_0x30be60('0x2')]=_0x22ba06,_0x135d89;})[_0x15f9a5('0x26')](respondWithFilteredResult(_0x3ac135,_0x4e65d1))[_0x15f9a5('0x31')](handleError(_0x3ac135,null));},exports[_0x2b0137('0x10')]=function(_0xc6ca8d,_0x58a840){const _0x2047c8=_0x2b0137;let _0x229d0e={'raw':![],'where':{'id':_0xc6ca8d['params']['id']}};const _0x24ac14={};return _0x24ac14[_0x2047c8('0x2f')]=_['keys'](db[_0x2047c8('0x30')]['rawAttributes']),_0x24ac14[_0x2047c8('0x3')]=_[_0x2047c8('0x32')](_0xc6ca8d[_0x2047c8('0x3')]),_0x24ac14[_0x2047c8('0x21')]=_[_0x2047c8('0x1d')](_0x24ac14[_0x2047c8('0x2f')],_0x24ac14[_0x2047c8('0x3')]),_0x229d0e[_0x2047c8('0x0')]=_[_0x2047c8('0x1d')](_0x24ac14['model'],qs[_0x2047c8('0x36')](_0xc6ca8d[_0x2047c8('0x3')][_0x2047c8('0x36')])),_0x229d0e[_0x2047c8('0x0')]=_0x229d0e[_0x2047c8('0x0')][_0x2047c8('0x2c')]?_0x229d0e[_0x2047c8('0x0')]:_0x24ac14[_0x2047c8('0x2f')],_0xc6ca8d[_0x2047c8('0x3')][_0x2047c8('0x29')]&&(_0x229d0e[_0x2047c8('0x23')]=[{'all':!![]}]),_0x229d0e=_[_0x2047c8('0x1a')]({},_0x229d0e,_0xc6ca8d[_0x2047c8('0x1c')]),db[_0x2047c8('0x30')][_0x2047c8('0x14')](_0x229d0e)[_0x2047c8('0x26')](handleEntityNotFound(_0x58a840,null))['then'](respondWithResult(_0x58a840,null))['catch'](handleError(_0x58a840,null));},exports['create']=function(_0xf57b2a,_0x4dca2d){const _0x1a5f00=_0x2b0137;return db[_0x1a5f00('0x30')][_0x1a5f00('0x5')](_0xf57b2a[_0x1a5f00('0xb')],{})['then'](respondWithResult(_0x4dca2d,0xc9))[_0x1a5f00('0x31')](handleError(_0x4dca2d,null));},exports['update']=function(_0x5854e3,_0x1831bd){const _0x40c33b=_0x2b0137;return _0x5854e3[_0x40c33b('0xb')]['id']&&delete _0x5854e3[_0x40c33b('0xb')]['id'],db['VtigerConfiguration'][_0x40c33b('0x14')]({'where':{'id':_0x5854e3[_0x40c33b('0x12')]['id']}})[_0x40c33b('0x26')](handleEntityNotFound(_0x1831bd,null))['then'](saveUpdates(_0x5854e3[_0x40c33b('0xb')],null))[_0x40c33b('0x26')](respondWithResult(_0x1831bd,null))[_0x40c33b('0x31')](handleError(_0x1831bd,null));},exports[_0x2b0137('0x2d')]=function(_0x41e8ba,_0xf2bcdb){const _0xee754d=_0x2b0137;return db['VtigerConfiguration']['findOne']({'where':{'id':_0x41e8ba['params']['id']}})[_0xee754d('0x26')](handleEntityNotFound(_0xf2bcdb,null))[_0xee754d('0x26')](removeEntity(_0xf2bcdb,null))[_0xee754d('0x31')](handleError(_0xf2bcdb,null));},exports[_0x2b0137('0x1b')]=function(_0x29cc79,_0x444b24){const _0xa4c0a3=_0x2b0137;let _0x4eb7e7={};const _0x11f011={};let _0x31e422,_0x4bec99;return db['VtigerConfiguration'][_0xa4c0a3('0x14')]({'where':{'id':_0x29cc79[_0xa4c0a3('0x12')]['id']}})[_0xa4c0a3('0x26')](handleEntityNotFound(_0x444b24,null))[_0xa4c0a3('0x26')](function(_0x561267){const _0x4693b1=_0xa4c0a3;if(_0x561267)return _0x31e422=_0x561267,_0x11f011[_0x4693b1('0x2f')]=_[_0x4693b1('0x32')](db[_0x4693b1('0x20')]['rawAttributes']),_0x11f011[_0x4693b1('0x3')]=_[_0x4693b1('0x32')](_0x29cc79[_0x4693b1('0x3')]),_0x11f011[_0x4693b1('0x21')]=_['intersection'](_0x11f011[_0x4693b1('0x2f')],_0x11f011['query']),_0x4eb7e7[_0x4693b1('0x0')]=_['intersection'](_0x11f011['model'],qs[_0x4693b1('0x36')](_0x29cc79[_0x4693b1('0x3')][_0x4693b1('0x36')])),_0x4eb7e7['attributes']=_0x4eb7e7[_0x4693b1('0x0')]['length']?_0x4eb7e7['attributes']:_0x11f011[_0x4693b1('0x2f')],_0x4eb7e7[_0x4693b1('0x24')]=qs[_0x4693b1('0x18')](_0x29cc79[_0x4693b1('0x3')]['sort']),_0x4eb7e7[_0x4693b1('0xc')]=qs[_0x4693b1('0x21')](_[_0x4693b1('0x2a')](_0x29cc79[_0x4693b1('0x3')],_0x11f011[_0x4693b1('0x21')])),_0x29cc79[_0x4693b1('0x3')]['filter']&&(_0x4eb7e7[_0x4693b1('0xc')]=_[_0x4693b1('0x1a')](_0x4eb7e7[_0x4693b1('0xc')],{[Op['or']]:_['map'](_0x4eb7e7['attributes'],function(_0x2bc910){const _0xd8fc11=_0x4693b1,_0x5e4563={};return _0x5e4563[_0x2bc910]={[Op[_0xd8fc11('0xe')]]:'%'+_0x29cc79['query'][_0xd8fc11('0x22')]+'%'},_0x5e4563;})})),_0x4eb7e7=_[_0x4693b1('0x1a')]({},_0x4eb7e7,_0x29cc79[_0x4693b1('0x1c')]),_0x31e422['getFields'](_0x4eb7e7);})['then'](function(_0x202ca8){const _0x5b9180=_0xa4c0a3;if(_0x202ca8)return _0x4bec99=_0x202ca8[_0x5b9180('0x2c')],typeof _0x29cc79[_0x5b9180('0x3')][_0x5b9180('0x2e')]===_0x5b9180('0x15')&&(_0x4eb7e7[_0x5b9180('0x1f')]=qs['limit'](_0x29cc79[_0x5b9180('0x3')][_0x5b9180('0x1f')]),_0x4eb7e7[_0x5b9180('0x27')]=qs['offset'](_0x29cc79['query'][_0x5b9180('0x27')])),_0x31e422[_0x5b9180('0x1b')](_0x4eb7e7);})[_0xa4c0a3('0x26')](function(_0x408c83){if(_0x408c83)return _0x408c83?{'count':_0x4bec99,'rows':_0x408c83}:null;})[_0xa4c0a3('0x26')](respondWithResult(_0x444b24,null))[_0xa4c0a3('0x31')](handleError(_0x444b24,null));},exports[_0x2b0137('0x28')]=function(_0x4ab9a1,_0x2beca7){const _0x470e3b=_0x2b0137;let _0x54e956={};const _0x1e62bd={};let _0x7183cf,_0x5bcd06;return db[_0x470e3b('0x30')][_0x470e3b('0x14')]({'where':{'id':_0x4ab9a1['params']['id']}})[_0x470e3b('0x26')](handleEntityNotFound(_0x2beca7,null))[_0x470e3b('0x26')](function(_0xccc73c){const _0x481cc2=_0x470e3b;if(_0xccc73c)return _0x7183cf=_0xccc73c,_0x1e62bd[_0x481cc2('0x2f')]=_[_0x481cc2('0x32')](db[_0x481cc2('0x20')][_0x481cc2('0x4')]),_0x1e62bd[_0x481cc2('0x3')]=_[_0x481cc2('0x32')](_0x4ab9a1[_0x481cc2('0x3')]),_0x1e62bd[_0x481cc2('0x21')]=_[_0x481cc2('0x1d')](_0x1e62bd[_0x481cc2('0x2f')],_0x1e62bd['query']),_0x54e956[_0x481cc2('0x0')]=_['intersection'](_0x1e62bd[_0x481cc2('0x2f')],qs[_0x481cc2('0x36')](_0x4ab9a1[_0x481cc2('0x3')][_0x481cc2('0x36')])),_0x54e956[_0x481cc2('0x0')]=_0x54e956[_0x481cc2('0x0')][_0x481cc2('0x2c')]?_0x54e956[_0x481cc2('0x0')]:_0x1e62bd['model'],_0x54e956[_0x481cc2('0x24')]=qs['sort'](_0x4ab9a1[_0x481cc2('0x3')][_0x481cc2('0x18')]),_0x54e956[_0x481cc2('0xc')]=qs[_0x481cc2('0x21')](_[_0x481cc2('0x2a')](_0x4ab9a1[_0x481cc2('0x3')],_0x1e62bd[_0x481cc2('0x21')])),_0x4ab9a1[_0x481cc2('0x3')][_0x481cc2('0x22')]&&(_0x54e956[_0x481cc2('0xc')]=_[_0x481cc2('0x1a')](_0x54e956['where'],{[Op['or']]:_[_0x481cc2('0xf')](_0x54e956[_0x481cc2('0x0')],function(_0x590a87){const _0x159f41=_0x481cc2,_0x42ff9e={};return _0x42ff9e[_0x590a87]={[Op['like']]:'%'+_0x4ab9a1[_0x159f41('0x3')][_0x159f41('0x22')]+'%'},_0x42ff9e;})})),_0x54e956=_[_0x481cc2('0x1a')]({},_0x54e956,_0x4ab9a1['options']),_0x7183cf['getSubjects'](_0x54e956);})['then'](function(_0x4ff843){const _0x53ed47=_0x470e3b;if(_0x4ff843)return _0x5bcd06=_0x4ff843[_0x53ed47('0x2c')],typeof _0x4ab9a1[_0x53ed47('0x3')][_0x53ed47('0x2e')]===_0x53ed47('0x15')&&(_0x54e956['limit']=qs[_0x53ed47('0x1f')](_0x4ab9a1[_0x53ed47('0x3')]['limit']),_0x54e956['offset']=qs[_0x53ed47('0x27')](_0x4ab9a1[_0x53ed47('0x3')][_0x53ed47('0x27')])),_0x7183cf['getSubjects'](_0x54e956);})[_0x470e3b('0x26')](function(_0x2b17e3){if(_0x2b17e3)return _0x2b17e3?{'count':_0x5bcd06,'rows':_0x2b17e3}:null;})['then'](respondWithResult(_0x2beca7,null))[_0x470e3b('0x31')](handleError(_0x2beca7,null));},exports[_0x2b0137('0x8')]=function(_0x35c009,_0x318cfc){const _0x5024d2=_0x2b0137;let _0x412fac={};const _0x48bdea={};let _0x5cad87,_0x4d17f3;return db['VtigerConfiguration'][_0x5024d2('0x14')]({'where':{'id':_0x35c009[_0x5024d2('0x12')]['id']}})['then'](handleEntityNotFound(_0x318cfc,null))[_0x5024d2('0x26')](function(_0x5c9ce8){const _0x8923ca=_0x5024d2;if(_0x5c9ce8)return _0x5cad87=_0x5c9ce8,_0x48bdea[_0x8923ca('0x2f')]=_[_0x8923ca('0x32')](db[_0x8923ca('0x20')][_0x8923ca('0x4')]),_0x48bdea[_0x8923ca('0x3')]=_[_0x8923ca('0x32')](_0x35c009['query']),_0x48bdea[_0x8923ca('0x21')]=_['intersection'](_0x48bdea['model'],_0x48bdea[_0x8923ca('0x3')]),_0x412fac[_0x8923ca('0x0')]=_[_0x8923ca('0x1d')](_0x48bdea[_0x8923ca('0x2f')],qs['fields'](_0x35c009[_0x8923ca('0x3')][_0x8923ca('0x36')])),_0x412fac[_0x8923ca('0x0')]=_0x412fac['attributes'][_0x8923ca('0x2c')]?_0x412fac[_0x8923ca('0x0')]:_0x48bdea['model'],_0x412fac['order']=qs[_0x8923ca('0x18')](_0x35c009[_0x8923ca('0x3')][_0x8923ca('0x18')]),_0x412fac['where']=qs[_0x8923ca('0x21')](_[_0x8923ca('0x2a')](_0x35c009[_0x8923ca('0x3')],_0x48bdea[_0x8923ca('0x21')])),_0x35c009[_0x8923ca('0x3')][_0x8923ca('0x22')]&&(_0x412fac[_0x8923ca('0xc')]=_[_0x8923ca('0x1a')](_0x412fac[_0x8923ca('0xc')],{[Op['or']]:_[_0x8923ca('0xf')](_0x412fac[_0x8923ca('0x0')],function(_0x571005){const _0x491d67={};return _0x491d67[_0x571005]={[Op['like']]:'%'+_0x35c009['query']['filter']+'%'},_0x491d67;})})),_0x412fac=_[_0x8923ca('0x1a')]({},_0x412fac,_0x35c009[_0x8923ca('0x1c')]),_0x5cad87[_0x8923ca('0x8')](_0x412fac);})[_0x5024d2('0x26')](function(_0x43e508){const _0x504e16=_0x5024d2;if(_0x43e508)return _0x4d17f3=_0x43e508[_0x504e16('0x2c')],typeof _0x35c009[_0x504e16('0x3')][_0x504e16('0x2e')]===_0x504e16('0x15')&&(_0x412fac[_0x504e16('0x1f')]=qs[_0x504e16('0x1f')](_0x35c009[_0x504e16('0x3')][_0x504e16('0x1f')]),_0x412fac[_0x504e16('0x27')]=qs['offset'](_0x35c009[_0x504e16('0x3')][_0x504e16('0x27')])),_0x5cad87['getDescriptions'](_0x412fac);})[_0x5024d2('0x26')](function(_0x2bc179){if(_0x2bc179)return _0x2bc179?{'count':_0x4d17f3,'rows':_0x2bc179}:null;})[_0x5024d2('0x26')](respondWithResult(_0x318cfc,null))[_0x5024d2('0x31')](handleError(_0x318cfc,null));}; \ No newline at end of file +const a390_0x137b=['../../components/parsers/qs','../../mysqldb','includeAll','filters','attributes','send','create','VtigerField','map','getFields','key','offset','catch','getDescriptions','stack','index','where','nolimit','sendStatus','filter','lodash','rows','body','sort','intersection','limit','then','include','undefined','error','name','status','fieldName','pick','count','VtigerConfiguration','merge','Content-Range','findOne','type','getSubjects','fields','rawAttributes','api','destroy','model','length','like','params','keys','order','query','json','VIRTUAL','options','show','update'];(function(_0x4b48de,_0x31bf4f){const _0x137bff=function(_0x5b72f9){while(--_0x5b72f9){_0x4b48de['push'](_0x4b48de['shift']());}};_0x137bff(++_0x31bf4f);}(a390_0x137b,0x19b));const a390_0x5b72=function(_0x4b48de,_0x31bf4f){_0x4b48de=_0x4b48de-0xd3;let _0x137bff=a390_0x137b[_0x4b48de];return _0x137bff;};const a390_0x58e7bc=a390_0x5b72;'use strict';const _=require(a390_0x58e7bc(0xdb)),qs=require(a390_0x58e7bc(0x100)),logger=require('../../config/logger')(a390_0x58e7bc(0xf2)),{db}=require(a390_0x58e7bc(0x101)),{Op}=require('sequelize');function respondWithResult(_0x1c3647,_0x50bf40){return _0x50bf40=_0x50bf40||0xc8,function(_0x3fddc1){const _0x50e0ea=a390_0x5b72;if(_0x3fddc1)return _0x1c3647[_0x50e0ea(0xe6)](_0x50bf40)['json'](_0x3fddc1);};}function respondWithFilteredResult(_0x49af64,_0x49796c){return function(_0x527e33){const _0x4a31b5=a390_0x5b72;if(_0x527e33){const _0x249031=_0x527e33[_0x4a31b5(0xe9)],_0x45ca93=_0x49796c[_0x4a31b5(0x10b)];let _0x2384c7=_0x49796c[_0x4a31b5(0x10b)]+_0x49796c[_0x4a31b5(0xe0)],_0x2c78c7;return _0x2384c7>=_0x249031?(_0x2384c7=_0x249031,_0x2c78c7=0xc8):_0x2c78c7=0xce,_0x49af64[_0x4a31b5(0xe6)](_0x2c78c7),_0x49af64['set'](_0x4a31b5(0xec),_0x45ca93+'-'+_0x2384c7+'/'+_0x249031)[_0x4a31b5(0xfb)](_0x527e33);}return null;};}function saveUpdates(_0x31db7c){return function(_0x23eab6){const _0x71416c=a390_0x5b72;if(_0x23eab6)return _0x23eab6['update'](_0x31db7c)[_0x71416c(0xe1)](function(_0x2f51c6){return _0x2f51c6;});return null;};}function removeEntity(_0x5c6f46){return function(_0x5e8c74){const _0x5ae8df=a390_0x5b72;if(_0x5e8c74)return _0x5e8c74[_0x5ae8df(0xf3)]()[_0x5ae8df(0xe1)](function(){const _0x1b9787=_0x5ae8df;_0x5c6f46[_0x1b9787(0xe6)](0xcc)['end']();});};}function handleEntityNotFound(_0x48cf6f){return function(_0x536e10){const _0x483fe9=a390_0x5b72;return!_0x536e10&&_0x48cf6f[_0x483fe9(0xd9)](0x194),_0x536e10;};}function handleError(_0x5bf76f,_0x2ebe6e){return _0x2ebe6e=_0x2ebe6e||0x1f4,function(_0x26b4c1){const _0x21c9d9=a390_0x5b72;logger[_0x21c9d9(0xe4)](_0x26b4c1[_0x21c9d9(0xd5)]),_0x26b4c1[_0x21c9d9(0xe5)]&&delete _0x26b4c1[_0x21c9d9(0xe5)],_0x5bf76f[_0x21c9d9(0xe6)](_0x2ebe6e)[_0x21c9d9(0x105)](_0x26b4c1);};}exports[a390_0x58e7bc(0xd6)]=function(_0x3d0a2c,_0x1908d9){const _0x543b8e=a390_0x58e7bc;let _0x2994ff={};const _0x19205e={},_0x181055={'count':0x0,'rows':[]},_0x5c546a=_['map'](db[_0x543b8e(0xea)]['rawAttributes'],function(_0x3e71df){const _0x162c79=_0x543b8e;return{'name':_0x3e71df[_0x162c79(0xe7)],'type':_0x3e71df['type'][_0x162c79(0x10a)]};});_0x19205e[_0x543b8e(0xf4)]=_[_0x543b8e(0x108)](_0x5c546a,_0x543b8e(0xe5)),_0x19205e[_0x543b8e(0xfa)]=_[_0x543b8e(0xf8)](_0x3d0a2c[_0x543b8e(0xfa)]),_0x19205e['filters']=_[_0x543b8e(0xdf)](_0x19205e[_0x543b8e(0xf4)],_0x19205e[_0x543b8e(0xfa)]),_0x2994ff['attributes']=_[_0x543b8e(0xdf)](_0x19205e[_0x543b8e(0xf4)],qs['fields'](_0x3d0a2c[_0x543b8e(0xfa)][_0x543b8e(0xf0)])),_0x2994ff[_0x543b8e(0x104)]=_0x2994ff[_0x543b8e(0x104)][_0x543b8e(0xf5)]?_0x2994ff['attributes']:_0x19205e['model'];typeof _0x3d0a2c[_0x543b8e(0xfa)][_0x543b8e(0xd8)]===_0x543b8e(0xe3)&&(_0x2994ff['limit']=qs[_0x543b8e(0xe0)](_0x3d0a2c[_0x543b8e(0xfa)]['limit']),_0x2994ff[_0x543b8e(0x10b)]=qs['offset'](_0x3d0a2c[_0x543b8e(0xfa)][_0x543b8e(0x10b)]));_0x2994ff[_0x543b8e(0xf9)]=qs[_0x543b8e(0xde)](_0x3d0a2c['query'][_0x543b8e(0xde)]),_0x2994ff[_0x543b8e(0xd7)]=qs['filters'](_['pick'](_0x3d0a2c[_0x543b8e(0xfa)],_0x19205e[_0x543b8e(0x103)]),_0x5c546a);_0x3d0a2c[_0x543b8e(0xfa)][_0x543b8e(0xda)]&&(_0x2994ff[_0x543b8e(0xd7)]=_[_0x543b8e(0xeb)](_0x2994ff[_0x543b8e(0xd7)],{[Op['or']]:_['map'](_0x5c546a,function(_0x5373fe){const _0x5a17d7=_0x543b8e;if(_0x5373fe[_0x5a17d7(0xee)]!==_0x5a17d7(0xfc)){const _0x36d241={};return _0x36d241[_0x5373fe[_0x5a17d7(0xe5)]]={[Op[_0x5a17d7(0xf6)]]:'%'+_0x3d0a2c[_0x5a17d7(0xfa)][_0x5a17d7(0xda)]+'%'},_0x36d241;}})}));_0x2994ff=_[_0x543b8e(0xeb)]({},_0x2994ff,_0x3d0a2c['options']);const _0x16f902={'where':_0x2994ff[_0x543b8e(0xd7)]};return db[_0x543b8e(0xea)]['count'](_0x16f902)[_0x543b8e(0xe1)](function(_0x2ed39e){const _0x2c2087=_0x543b8e;return _0x181055[_0x2c2087(0xe9)]=_0x2ed39e,_0x3d0a2c['query']['includeAll']&&(_0x2994ff[_0x2c2087(0xe2)]=[{'all':!![]}]),db['VtigerConfiguration']['findAll'](_0x2994ff);})[_0x543b8e(0xe1)](function(_0x34e642){const _0x13c16d=_0x543b8e;return _0x181055[_0x13c16d(0xdc)]=_0x34e642,_0x181055;})[_0x543b8e(0xe1)](respondWithFilteredResult(_0x1908d9,_0x2994ff))[_0x543b8e(0xd3)](handleError(_0x1908d9,null));},exports[a390_0x58e7bc(0xfe)]=function(_0x23d6e0,_0x33c4c6){const _0x222926=a390_0x58e7bc;let _0x3dc0f2={'raw':![],'where':{'id':_0x23d6e0[_0x222926(0xf7)]['id']}};const _0x14efd3={};return _0x14efd3[_0x222926(0xf4)]=_['keys'](db['VtigerConfiguration'][_0x222926(0xf1)]),_0x14efd3[_0x222926(0xfa)]=_[_0x222926(0xf8)](_0x23d6e0[_0x222926(0xfa)]),_0x14efd3[_0x222926(0x103)]=_['intersection'](_0x14efd3[_0x222926(0xf4)],_0x14efd3[_0x222926(0xfa)]),_0x3dc0f2[_0x222926(0x104)]=_[_0x222926(0xdf)](_0x14efd3[_0x222926(0xf4)],qs['fields'](_0x23d6e0['query'][_0x222926(0xf0)])),_0x3dc0f2['attributes']=_0x3dc0f2[_0x222926(0x104)][_0x222926(0xf5)]?_0x3dc0f2[_0x222926(0x104)]:_0x14efd3[_0x222926(0xf4)],_0x23d6e0[_0x222926(0xfa)][_0x222926(0x102)]&&(_0x3dc0f2['include']=[{'all':!![]}]),_0x3dc0f2=_[_0x222926(0xeb)]({},_0x3dc0f2,_0x23d6e0[_0x222926(0xfd)]),db['VtigerConfiguration']['findOne'](_0x3dc0f2)[_0x222926(0xe1)](handleEntityNotFound(_0x33c4c6,null))[_0x222926(0xe1)](respondWithResult(_0x33c4c6,null))[_0x222926(0xd3)](handleError(_0x33c4c6,null));},exports[a390_0x58e7bc(0x106)]=function(_0x467e83,_0x146c9d){const _0xf4be3e=a390_0x58e7bc;return db[_0xf4be3e(0xea)]['create'](_0x467e83[_0xf4be3e(0xdd)],{})[_0xf4be3e(0xe1)](respondWithResult(_0x146c9d,0xc9))['catch'](handleError(_0x146c9d,null));},exports[a390_0x58e7bc(0xff)]=function(_0x5c63a4,_0x131883){const _0x41028f=a390_0x58e7bc;return _0x5c63a4['body']['id']&&delete _0x5c63a4[_0x41028f(0xdd)]['id'],db[_0x41028f(0xea)]['findOne']({'where':{'id':_0x5c63a4[_0x41028f(0xf7)]['id']}})['then'](handleEntityNotFound(_0x131883,null))[_0x41028f(0xe1)](saveUpdates(_0x5c63a4[_0x41028f(0xdd)],null))[_0x41028f(0xe1)](respondWithResult(_0x131883,null))[_0x41028f(0xd3)](handleError(_0x131883,null));},exports[a390_0x58e7bc(0xf3)]=function(_0xfa6179,_0x5a9b78){const _0x4f98e4=a390_0x58e7bc;return db[_0x4f98e4(0xea)][_0x4f98e4(0xed)]({'where':{'id':_0xfa6179[_0x4f98e4(0xf7)]['id']}})[_0x4f98e4(0xe1)](handleEntityNotFound(_0x5a9b78,null))[_0x4f98e4(0xe1)](removeEntity(_0x5a9b78,null))['catch'](handleError(_0x5a9b78,null));},exports[a390_0x58e7bc(0x109)]=function(_0x48e178,_0x5567a8){const _0x1144a9=a390_0x58e7bc;let _0x4bc76c={};const _0x314cde={};let _0x190ec5,_0x4c08e5;return db['VtigerConfiguration'][_0x1144a9(0xed)]({'where':{'id':_0x48e178[_0x1144a9(0xf7)]['id']}})[_0x1144a9(0xe1)](handleEntityNotFound(_0x5567a8,null))[_0x1144a9(0xe1)](function(_0x56cffb){const _0x2b6a63=_0x1144a9;if(_0x56cffb)return _0x190ec5=_0x56cffb,_0x314cde[_0x2b6a63(0xf4)]=_['keys'](db[_0x2b6a63(0x107)][_0x2b6a63(0xf1)]),_0x314cde['query']=_['keys'](_0x48e178[_0x2b6a63(0xfa)]),_0x314cde['filters']=_['intersection'](_0x314cde['model'],_0x314cde[_0x2b6a63(0xfa)]),_0x4bc76c[_0x2b6a63(0x104)]=_[_0x2b6a63(0xdf)](_0x314cde[_0x2b6a63(0xf4)],qs[_0x2b6a63(0xf0)](_0x48e178['query'][_0x2b6a63(0xf0)])),_0x4bc76c['attributes']=_0x4bc76c[_0x2b6a63(0x104)][_0x2b6a63(0xf5)]?_0x4bc76c['attributes']:_0x314cde[_0x2b6a63(0xf4)],_0x4bc76c[_0x2b6a63(0xf9)]=qs['sort'](_0x48e178[_0x2b6a63(0xfa)]['sort']),_0x4bc76c[_0x2b6a63(0xd7)]=qs['filters'](_[_0x2b6a63(0xe8)](_0x48e178['query'],_0x314cde[_0x2b6a63(0x103)])),_0x48e178[_0x2b6a63(0xfa)][_0x2b6a63(0xda)]&&(_0x4bc76c[_0x2b6a63(0xd7)]=_['merge'](_0x4bc76c[_0x2b6a63(0xd7)],{[Op['or']]:_['map'](_0x4bc76c[_0x2b6a63(0x104)],function(_0x4974c0){const _0x1fbb62=_0x2b6a63,_0x550cb5={};return _0x550cb5[_0x4974c0]={[Op[_0x1fbb62(0xf6)]]:'%'+_0x48e178[_0x1fbb62(0xfa)][_0x1fbb62(0xda)]+'%'},_0x550cb5;})})),_0x4bc76c=_[_0x2b6a63(0xeb)]({},_0x4bc76c,_0x48e178['options']),_0x190ec5[_0x2b6a63(0x109)](_0x4bc76c);})['then'](function(_0x12a6d3){const _0x2cde81=_0x1144a9;if(_0x12a6d3)return _0x4c08e5=_0x12a6d3[_0x2cde81(0xf5)],typeof _0x48e178[_0x2cde81(0xfa)][_0x2cde81(0xd8)]===_0x2cde81(0xe3)&&(_0x4bc76c[_0x2cde81(0xe0)]=qs[_0x2cde81(0xe0)](_0x48e178[_0x2cde81(0xfa)][_0x2cde81(0xe0)]),_0x4bc76c[_0x2cde81(0x10b)]=qs[_0x2cde81(0x10b)](_0x48e178[_0x2cde81(0xfa)][_0x2cde81(0x10b)])),_0x190ec5['getFields'](_0x4bc76c);})[_0x1144a9(0xe1)](function(_0x181836){if(_0x181836)return _0x181836?{'count':_0x4c08e5,'rows':_0x181836}:null;})['then'](respondWithResult(_0x5567a8,null))[_0x1144a9(0xd3)](handleError(_0x5567a8,null));},exports['getSubjects']=function(_0x11263b,_0x16b544){const _0x5e282a=a390_0x58e7bc;let _0x9eccf5={};const _0x1d7f6c={};let _0x3764f8,_0x4490a9;return db[_0x5e282a(0xea)][_0x5e282a(0xed)]({'where':{'id':_0x11263b[_0x5e282a(0xf7)]['id']}})[_0x5e282a(0xe1)](handleEntityNotFound(_0x16b544,null))[_0x5e282a(0xe1)](function(_0x1f233d){const _0x180225=_0x5e282a;if(_0x1f233d)return _0x3764f8=_0x1f233d,_0x1d7f6c[_0x180225(0xf4)]=_[_0x180225(0xf8)](db[_0x180225(0x107)]['rawAttributes']),_0x1d7f6c['query']=_[_0x180225(0xf8)](_0x11263b[_0x180225(0xfa)]),_0x1d7f6c[_0x180225(0x103)]=_[_0x180225(0xdf)](_0x1d7f6c[_0x180225(0xf4)],_0x1d7f6c[_0x180225(0xfa)]),_0x9eccf5[_0x180225(0x104)]=_[_0x180225(0xdf)](_0x1d7f6c['model'],qs[_0x180225(0xf0)](_0x11263b[_0x180225(0xfa)]['fields'])),_0x9eccf5['attributes']=_0x9eccf5[_0x180225(0x104)][_0x180225(0xf5)]?_0x9eccf5[_0x180225(0x104)]:_0x1d7f6c[_0x180225(0xf4)],_0x9eccf5['order']=qs[_0x180225(0xde)](_0x11263b[_0x180225(0xfa)][_0x180225(0xde)]),_0x9eccf5[_0x180225(0xd7)]=qs[_0x180225(0x103)](_['pick'](_0x11263b[_0x180225(0xfa)],_0x1d7f6c[_0x180225(0x103)])),_0x11263b[_0x180225(0xfa)][_0x180225(0xda)]&&(_0x9eccf5[_0x180225(0xd7)]=_[_0x180225(0xeb)](_0x9eccf5[_0x180225(0xd7)],{[Op['or']]:_['map'](_0x9eccf5[_0x180225(0x104)],function(_0x23ae63){const _0x10c49a=_0x180225,_0x1a9ec2={};return _0x1a9ec2[_0x23ae63]={[Op[_0x10c49a(0xf6)]]:'%'+_0x11263b['query'][_0x10c49a(0xda)]+'%'},_0x1a9ec2;})})),_0x9eccf5=_[_0x180225(0xeb)]({},_0x9eccf5,_0x11263b[_0x180225(0xfd)]),_0x3764f8[_0x180225(0xef)](_0x9eccf5);})[_0x5e282a(0xe1)](function(_0x10c14c){const _0x436ea1=_0x5e282a;if(_0x10c14c)return _0x4490a9=_0x10c14c[_0x436ea1(0xf5)],typeof _0x11263b[_0x436ea1(0xfa)][_0x436ea1(0xd8)]===_0x436ea1(0xe3)&&(_0x9eccf5[_0x436ea1(0xe0)]=qs[_0x436ea1(0xe0)](_0x11263b[_0x436ea1(0xfa)][_0x436ea1(0xe0)]),_0x9eccf5[_0x436ea1(0x10b)]=qs[_0x436ea1(0x10b)](_0x11263b[_0x436ea1(0xfa)]['offset'])),_0x3764f8[_0x436ea1(0xef)](_0x9eccf5);})[_0x5e282a(0xe1)](function(_0x5ad10f){if(_0x5ad10f)return _0x5ad10f?{'count':_0x4490a9,'rows':_0x5ad10f}:null;})[_0x5e282a(0xe1)](respondWithResult(_0x16b544,null))[_0x5e282a(0xd3)](handleError(_0x16b544,null));},exports[a390_0x58e7bc(0xd4)]=function(_0x267c71,_0x1a08e1){const _0x5aed8e=a390_0x58e7bc;let _0x4e4800={};const _0x4131bc={};let _0x404da7,_0x5d7395;return db[_0x5aed8e(0xea)]['findOne']({'where':{'id':_0x267c71[_0x5aed8e(0xf7)]['id']}})[_0x5aed8e(0xe1)](handleEntityNotFound(_0x1a08e1,null))[_0x5aed8e(0xe1)](function(_0x4908a9){const _0x5ae345=_0x5aed8e;if(_0x4908a9)return _0x404da7=_0x4908a9,_0x4131bc[_0x5ae345(0xf4)]=_[_0x5ae345(0xf8)](db[_0x5ae345(0x107)][_0x5ae345(0xf1)]),_0x4131bc['query']=_[_0x5ae345(0xf8)](_0x267c71[_0x5ae345(0xfa)]),_0x4131bc[_0x5ae345(0x103)]=_['intersection'](_0x4131bc[_0x5ae345(0xf4)],_0x4131bc[_0x5ae345(0xfa)]),_0x4e4800[_0x5ae345(0x104)]=_['intersection'](_0x4131bc[_0x5ae345(0xf4)],qs[_0x5ae345(0xf0)](_0x267c71[_0x5ae345(0xfa)][_0x5ae345(0xf0)])),_0x4e4800['attributes']=_0x4e4800['attributes'][_0x5ae345(0xf5)]?_0x4e4800[_0x5ae345(0x104)]:_0x4131bc['model'],_0x4e4800[_0x5ae345(0xf9)]=qs[_0x5ae345(0xde)](_0x267c71[_0x5ae345(0xfa)][_0x5ae345(0xde)]),_0x4e4800[_0x5ae345(0xd7)]=qs[_0x5ae345(0x103)](_['pick'](_0x267c71[_0x5ae345(0xfa)],_0x4131bc[_0x5ae345(0x103)])),_0x267c71[_0x5ae345(0xfa)][_0x5ae345(0xda)]&&(_0x4e4800[_0x5ae345(0xd7)]=_[_0x5ae345(0xeb)](_0x4e4800[_0x5ae345(0xd7)],{[Op['or']]:_[_0x5ae345(0x108)](_0x4e4800['attributes'],function(_0x17c203){const _0x176927=_0x5ae345,_0x3f4f46={};return _0x3f4f46[_0x17c203]={[Op['like']]:'%'+_0x267c71[_0x176927(0xfa)]['filter']+'%'},_0x3f4f46;})})),_0x4e4800=_[_0x5ae345(0xeb)]({},_0x4e4800,_0x267c71[_0x5ae345(0xfd)]),_0x404da7[_0x5ae345(0xd4)](_0x4e4800);})['then'](function(_0x215caa){const _0x8cd36b=_0x5aed8e;if(_0x215caa)return _0x5d7395=_0x215caa['length'],typeof _0x267c71[_0x8cd36b(0xfa)][_0x8cd36b(0xd8)]===_0x8cd36b(0xe3)&&(_0x4e4800[_0x8cd36b(0xe0)]=qs['limit'](_0x267c71['query'][_0x8cd36b(0xe0)]),_0x4e4800[_0x8cd36b(0x10b)]=qs['offset'](_0x267c71[_0x8cd36b(0xfa)]['offset'])),_0x404da7[_0x8cd36b(0xd4)](_0x4e4800);})[_0x5aed8e(0xe1)](function(_0x47e39b){if(_0x47e39b)return _0x47e39b?{'count':_0x5d7395,'rows':_0x47e39b}:null;})['then'](respondWithResult(_0x1a08e1,null))[_0x5aed8e(0xd3)](handleError(_0x1a08e1,null));}; \ No newline at end of file diff --git a/server/api/intVtigerConfiguration/intVtigerConfiguration.model.js b/server/api/intVtigerConfiguration/intVtigerConfiguration.model.js index ff2abb6..03bb8f7 100644 --- a/server/api/intVtigerConfiguration/intVtigerConfiguration.model.js +++ b/server/api/intVtigerConfiguration/intVtigerConfiguration.model.js @@ -1 +1 @@ -const a326_0x3751=['exports','./intVtigerConfiguration.attributes','VtigerConfiguration'];(function(_0x167a6e,_0x3751a7){const _0x596276=function(_0x464076){while(--_0x464076){_0x167a6e['push'](_0x167a6e['shift']());}};_0x596276(++_0x3751a7);}(a326_0x3751,0x1a6));const a326_0x5962=function(_0x167a6e,_0x3751a7){_0x167a6e=_0x167a6e-0x0;let _0x596276=a326_0x3751[_0x167a6e];return _0x596276;};const _0xd0703c=a326_0x5962;'use strict';const attributes=require(_0xd0703c('0x2'));module[_0xd0703c('0x1')]=function(_0x464076){const _0x3a1c16=_0xd0703c,_0x23172f=_0x464076['define'](_0x3a1c16('0x0'),attributes,{'tableName':'int_vtiger_configurations','paranoid':![],'indexes':[],'timestamps':!![]});return _0x23172f;}; \ No newline at end of file +const a391_0x8d7d=['function','./intVtigerConfiguration.options','exports','init','./intVtigerConfiguration.attributes'];(function(_0x2afbb5,_0x574bc1){const _0x8d7dd6=function(_0x1b2ff1){while(--_0x1b2ff1){_0x2afbb5['push'](_0x2afbb5['shift']());}};_0x8d7dd6(++_0x574bc1);}(a391_0x8d7d,0xfa));const a391_0x1b2f=function(_0x2afbb5,_0x574bc1){_0x2afbb5=_0x2afbb5-0x1af;let _0x8d7dd6=a391_0x8d7d[_0x2afbb5];return _0x8d7dd6;};const a391_0x4cf094=a391_0x1b2f;'use strict';const {Model}=require('sequelize'),{attributes}=require(a391_0x4cf094(0x1b3)),{options}=require(a391_0x4cf094(0x1b0));class VtigerConfiguration extends Model{}function init(_0x4bd614,_0x1334db){const _0x530631=a391_0x4cf094,_0x282fc5=options(_0x4bd614),_0x22d2d6=typeof _0x1334db===_0x530631(0x1af)?_0x1334db(_0x282fc5):_0x282fc5;return VtigerConfiguration[_0x530631(0x1b2)](attributes,_0x22d2d6),VtigerConfiguration;}module['exports']['VtigerConfiguration']=VtigerConfiguration,module[a391_0x4cf094(0x1b1)][a391_0x4cf094(0x1b2)]=init; \ No newline at end of file diff --git a/server/api/intVtigerConfiguration/intVtigerConfiguration.options.js b/server/api/intVtigerConfiguration/intVtigerConfiguration.options.js new file mode 100644 index 0000000..65fb282 --- /dev/null +++ b/server/api/intVtigerConfiguration/intVtigerConfiguration.options.js @@ -0,0 +1 @@ +var a392_0x521c=['options'];(function(_0x426ed2,_0x19a14f){var _0x521c22=function(_0x5a0dec){while(--_0x5a0dec){_0x426ed2['push'](_0x426ed2['shift']());}};_0x521c22(++_0x19a14f);}(a392_0x521c,0x152));var a392_0x5a0d=function(_0x426ed2,_0x19a14f){_0x426ed2=_0x426ed2-0x16c;var _0x521c22=a392_0x521c[_0x426ed2];return _0x521c22;};var a392_0x55c1b4=a392_0x5a0d;function options(_0x2c6bb6){return{'sequelize':_0x2c6bb6,'tableName':'int_vtiger_configurations','paranoid':![],'indexes':[],'timestamps':!![]};}module['exports'][a392_0x55c1b4(0x16c)]=options; \ No newline at end of file diff --git a/server/api/intVtigerField/index.js b/server/api/intVtigerField/index.js index 39d06a2..12a19b9 100644 --- a/server/api/intVtigerField/index.js +++ b/server/api/intVtigerField/index.js @@ -1 +1 @@ -const a327_0x1d10=['Router','delete','../../components/auth/service','update','create','post','show','express','/:id','get','isAuthenticated','./intVtigerField.controller'];(function(_0x1fe908,_0x1d10b0){const _0x32b214=function(_0xcd8c4d){while(--_0xcd8c4d){_0x1fe908['push'](_0x1fe908['shift']());}};_0x32b214(++_0x1d10b0);}(a327_0x1d10,0x12b));const a327_0x32b2=function(_0x1fe908,_0x1d10b0){_0x1fe908=_0x1fe908-0x0;let _0x32b214=a327_0x1d10[_0x1fe908];return _0x32b214;};const _0x20c7db=a327_0x32b2;'use strict';const express=require(_0x20c7db('0x8')),router=express[_0x20c7db('0x1')](),auth=require(_0x20c7db('0x3')),controller=require(_0x20c7db('0x0'));router['get']('/',auth[_0x20c7db('0xb')](),controller['index']),router[_0x20c7db('0xa')]('/:id',auth[_0x20c7db('0xb')](),controller[_0x20c7db('0x7')]),router[_0x20c7db('0x6')]('/',auth['isAuthenticated'](),controller[_0x20c7db('0x5')]),router['put'](_0x20c7db('0x9'),auth[_0x20c7db('0xb')](),controller[_0x20c7db('0x4')]),router[_0x20c7db('0x2')](_0x20c7db('0x9'),auth[_0x20c7db('0xb')](),controller['destroy']),module['exports']=router; \ No newline at end of file +const a393_0x3fb0=['get','show','./intVtigerField.controller','Router','index','put','delete','/:id','exports','isAuthenticated','create','destroy','post','../../components/auth/service'];(function(_0x27e05f,_0x206dfa){const _0x3fb071=function(_0x572fd3){while(--_0x572fd3){_0x27e05f['push'](_0x27e05f['shift']());}};_0x3fb071(++_0x206dfa);}(a393_0x3fb0,0x19a));const a393_0x572f=function(_0x27e05f,_0x206dfa){_0x27e05f=_0x27e05f-0x15a;let _0x3fb071=a393_0x3fb0[_0x27e05f];return _0x3fb071;};const a393_0xe7dc57=a393_0x572f;'use strict';const express=require('express'),router=express[a393_0xe7dc57(0x167)](),auth=require(a393_0xe7dc57(0x163)),controller=require(a393_0xe7dc57(0x166));router[a393_0xe7dc57(0x164)]('/',auth[a393_0xe7dc57(0x15f)](),controller[a393_0xe7dc57(0x15a)]),router[a393_0xe7dc57(0x164)](a393_0xe7dc57(0x15d),auth[a393_0xe7dc57(0x15f)](),controller[a393_0xe7dc57(0x165)]),router[a393_0xe7dc57(0x162)]('/',auth[a393_0xe7dc57(0x15f)](),controller[a393_0xe7dc57(0x160)]),router[a393_0xe7dc57(0x15b)]('/:id',auth['isAuthenticated'](),controller['update']),router[a393_0xe7dc57(0x15c)](a393_0xe7dc57(0x15d),auth[a393_0xe7dc57(0x15f)](),controller[a393_0xe7dc57(0x161)]),module[a393_0xe7dc57(0x15e)]=router; \ No newline at end of file diff --git a/server/api/intVtigerField/intVtigerField.attributes.js b/server/api/intVtigerField/intVtigerField.attributes.js index f06fd14..56ee9c2 100644 --- a/server/api/intVtigerField/intVtigerField.attributes.js +++ b/server/api/intVtigerField/intVtigerField.attributes.js @@ -1 +1 @@ -const a328_0x1a5d=['string','STRING','keyValue','customVariable','ENUM','variable'];(function(_0x431bff,_0x1a5d46){const _0x39ff53=function(_0x55a044){while(--_0x55a044){_0x431bff['push'](_0x431bff['shift']());}};_0x39ff53(++_0x1a5d46);}(a328_0x1a5d,0x7b));const a328_0x39ff=function(_0x431bff,_0x1a5d46){_0x431bff=_0x431bff-0x0;let _0x39ff53=a328_0x1a5d[_0x431bff];return _0x39ff53;};const _0x2efd2c=a328_0x39ff;'use strict';const Sequelize=require('sequelize');module['exports']={'type':{'type':Sequelize[_0x2efd2c('0x1')](_0x2efd2c('0x3'),_0x2efd2c('0x2'),_0x2efd2c('0x0'),_0x2efd2c('0x5')),'defaultValue':_0x2efd2c('0x3')},'content':{'type':Sequelize[_0x2efd2c('0x4')]},'key':{'type':Sequelize[_0x2efd2c('0x4')]},'keyType':{'type':Sequelize['ENUM']('string',_0x2efd2c('0x2'),_0x2efd2c('0x0'))},'keyContent':{'type':Sequelize[_0x2efd2c('0x4')]},'idField':{'type':Sequelize['STRING']},'nameField':{'type':Sequelize[_0x2efd2c('0x4')]},'customField':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'variableName':{'type':Sequelize['STRING']}}; \ No newline at end of file +const a394_0xf8b3=['variable','exports','STRING','keyValue','BOOLEAN','customVariable','ENUM','string'];(function(_0x49c8fa,_0xdf0c19){const _0xf8b3e0=function(_0xd49f25){while(--_0xd49f25){_0x49c8fa['push'](_0x49c8fa['shift']());}};_0xf8b3e0(++_0xdf0c19);}(a394_0xf8b3,0x178));const a394_0xd49f=function(_0x49c8fa,_0xdf0c19){_0x49c8fa=_0x49c8fa-0x1e5;let _0xf8b3e0=a394_0xf8b3[_0x49c8fa];return _0xf8b3e0;};const a394_0x1c845f=a394_0xd49f;'use strict';const {DataTypes}=require('sequelize'),attributes={'type':{'type':DataTypes[a394_0x1c845f(0x1eb)](a394_0x1c845f(0x1ec),a394_0x1c845f(0x1e5),a394_0x1c845f(0x1ea),a394_0x1c845f(0x1e8)),'defaultValue':a394_0x1c845f(0x1ec)},'content':{'type':DataTypes[a394_0x1c845f(0x1e7)]},'key':{'type':DataTypes[a394_0x1c845f(0x1e7)]},'keyType':{'type':DataTypes[a394_0x1c845f(0x1eb)](a394_0x1c845f(0x1ec),a394_0x1c845f(0x1e5),a394_0x1c845f(0x1ea))},'keyContent':{'type':DataTypes[a394_0x1c845f(0x1e7)]},'idField':{'type':DataTypes[a394_0x1c845f(0x1e7)]},'nameField':{'type':DataTypes['STRING']},'customField':{'type':DataTypes[a394_0x1c845f(0x1e9)],'defaultValue':!![]},'variableName':{'type':DataTypes[a394_0x1c845f(0x1e7)]}};module[a394_0x1c845f(0x1e6)]['attributes']=attributes; \ No newline at end of file diff --git a/server/api/intVtigerField/intVtigerField.controller.js b/server/api/intVtigerField/intVtigerField.controller.js index 1b306b0..af6b2d0 100644 --- a/server/api/intVtigerField/intVtigerField.controller.js +++ b/server/api/intVtigerField/intVtigerField.controller.js @@ -1 +1 @@ -const a329_0x5bd3=['show','catch','limit','attributes','end','../../mysqldb','findOne','sort','map','create','filter','index','stack','body','then','include','length','count','sendStatus','model','merge','fields','undefined','includeAll','status','VIRTUAL','VtigerField','../../config/logger','params','name','order','findAll','set','sequelize','pick','send','offset','lodash','nolimit','rawAttributes','error','rows','query','json','filters','options','destroy','../../components/parsers/qs','intersection','where','type','like','update','keys','Content-Range'];(function(_0x51764a,_0x5bd3d7){const _0x1f88c5=function(_0x281819){while(--_0x281819){_0x51764a['push'](_0x51764a['shift']());}};_0x1f88c5(++_0x5bd3d7);}(a329_0x5bd3,0x108));const a329_0x1f88=function(_0x51764a,_0x5bd3d7){_0x51764a=_0x51764a-0x0;let _0x1f88c5=a329_0x5bd3[_0x51764a];return _0x1f88c5;};const _0x4abf5c=a329_0x1f88;'use strict';const _=require(_0x4abf5c('0x30')),qs=require(_0x4abf5c('0x3')),logger=require(_0x4abf5c('0x26'))('api'),db=require(_0x4abf5c('0x10'))['db'],{Op}=require(_0x4abf5c('0x2c'));function respondWithResult(_0x281819,_0x55f35f){return _0x55f35f=_0x55f35f||0xc8,function(_0x97c5bb){const _0x460afe=a329_0x1f88;if(_0x97c5bb)return _0x281819[_0x460afe('0x23')](_0x55f35f)[_0x460afe('0x36')](_0x97c5bb);};}function respondWithFilteredResult(_0x6ee11,_0x120868){return function(_0x140f20){const _0x4fa32d=a329_0x1f88;if(_0x140f20){const _0x2ab55f=_0x140f20[_0x4fa32d('0x1c')],_0x12a360=_0x120868[_0x4fa32d('0x2f')];let _0x451136=_0x120868[_0x4fa32d('0x2f')]+_0x120868['limit'],_0x120f47;return _0x451136>=_0x2ab55f?(_0x451136=_0x2ab55f,_0x120f47=0xc8):_0x120f47=0xce,_0x6ee11[_0x4fa32d('0x23')](_0x120f47),_0x6ee11[_0x4fa32d('0x2b')](_0x4fa32d('0xa'),_0x12a360+'-'+_0x451136+'/'+_0x2ab55f)['json'](_0x140f20);}return null;};}function saveUpdates(_0x331605){return function(_0x3c6cbd){const _0x2ad8e8=a329_0x1f88;if(_0x3c6cbd)return _0x3c6cbd[_0x2ad8e8('0x8')](_0x331605)[_0x2ad8e8('0x19')](function(_0x3bcc57){return _0x3bcc57;});return null;};}function removeEntity(_0x4857e2){return function(_0x4e3697){const _0xda69db=a329_0x1f88;if(_0x4e3697)return _0x4e3697[_0xda69db('0x2')]()[_0xda69db('0x19')](function(){const _0x3727e9=_0xda69db;_0x4857e2['status'](0xcc)[_0x3727e9('0xf')]();});};}function handleEntityNotFound(_0x34c0ce){return function(_0x460806){const _0x4aab58=a329_0x1f88;return!_0x460806&&_0x34c0ce[_0x4aab58('0x1d')](0x194),_0x460806;};}function handleError(_0x2bf9ec,_0x28d5be){return _0x28d5be=_0x28d5be||0x1f4,function(_0x5c9e30){const _0x2f5ac=a329_0x1f88;logger[_0x2f5ac('0x33')](_0x5c9e30[_0x2f5ac('0x17')]),_0x5c9e30[_0x2f5ac('0x28')]&&delete _0x5c9e30[_0x2f5ac('0x28')],_0x2bf9ec[_0x2f5ac('0x23')](_0x28d5be)[_0x2f5ac('0x2e')](_0x5c9e30);};}exports[_0x4abf5c('0x16')]=function(_0x89285f,_0x2d5a6d){const _0x4df5ac=_0x4abf5c;let _0x449636={};const _0x1fd97b={},_0x26fd82={'count':0x0,'rows':[]},_0x4f2134=_[_0x4df5ac('0x13')](db[_0x4df5ac('0x25')][_0x4df5ac('0x32')],function(_0x18f231){const _0x599ded=_0x4df5ac;return{'name':_0x18f231['fieldName'],'type':_0x18f231[_0x599ded('0x6')]['key']};});_0x1fd97b[_0x4df5ac('0x1e')]=_[_0x4df5ac('0x13')](_0x4f2134,'name'),_0x1fd97b[_0x4df5ac('0x35')]=_['keys'](_0x89285f[_0x4df5ac('0x35')]),_0x1fd97b['filters']=_[_0x4df5ac('0x4')](_0x1fd97b[_0x4df5ac('0x1e')],_0x1fd97b[_0x4df5ac('0x35')]),_0x449636[_0x4df5ac('0xe')]=_[_0x4df5ac('0x4')](_0x1fd97b[_0x4df5ac('0x1e')],qs['fields'](_0x89285f[_0x4df5ac('0x35')][_0x4df5ac('0x20')])),_0x449636[_0x4df5ac('0xe')]=_0x449636[_0x4df5ac('0xe')][_0x4df5ac('0x1b')]?_0x449636[_0x4df5ac('0xe')]:_0x1fd97b[_0x4df5ac('0x1e')];typeof _0x89285f[_0x4df5ac('0x35')][_0x4df5ac('0x31')]===_0x4df5ac('0x21')&&(_0x449636[_0x4df5ac('0xd')]=qs['limit'](_0x89285f['query']['limit']),_0x449636[_0x4df5ac('0x2f')]=qs[_0x4df5ac('0x2f')](_0x89285f[_0x4df5ac('0x35')][_0x4df5ac('0x2f')]));_0x449636[_0x4df5ac('0x29')]=qs[_0x4df5ac('0x12')](_0x89285f['query'][_0x4df5ac('0x12')]),_0x449636[_0x4df5ac('0x5')]=qs[_0x4df5ac('0x0')](_[_0x4df5ac('0x2d')](_0x89285f[_0x4df5ac('0x35')],_0x1fd97b[_0x4df5ac('0x0')]),_0x4f2134);_0x89285f[_0x4df5ac('0x35')][_0x4df5ac('0x15')]&&(_0x449636[_0x4df5ac('0x5')]=_[_0x4df5ac('0x1f')](_0x449636[_0x4df5ac('0x5')],{[Op['or']]:_[_0x4df5ac('0x13')](_0x4f2134,function(_0x1ad2b8){const _0x36f899=_0x4df5ac;if(_0x1ad2b8[_0x36f899('0x6')]!==_0x36f899('0x24')){const _0x157cb8={};return _0x157cb8[_0x1ad2b8[_0x36f899('0x28')]]={[Op[_0x36f899('0x7')]]:'%'+_0x89285f[_0x36f899('0x35')][_0x36f899('0x15')]+'%'},_0x157cb8;}})}));_0x449636=_[_0x4df5ac('0x1f')]({},_0x449636,_0x89285f[_0x4df5ac('0x1')]);const _0x10752d={'where':_0x449636[_0x4df5ac('0x5')]};return db[_0x4df5ac('0x25')]['count'](_0x10752d)['then'](function(_0x48148e){const _0x38e4dc=_0x4df5ac;return _0x26fd82[_0x38e4dc('0x1c')]=_0x48148e,_0x89285f[_0x38e4dc('0x35')][_0x38e4dc('0x22')]&&(_0x449636['include']=[{'all':!![]}]),db['VtigerField'][_0x38e4dc('0x2a')](_0x449636);})[_0x4df5ac('0x19')](function(_0x274767){const _0xfec7cc=_0x4df5ac;return _0x26fd82[_0xfec7cc('0x34')]=_0x274767,_0x26fd82;})[_0x4df5ac('0x19')](respondWithFilteredResult(_0x2d5a6d,_0x449636))[_0x4df5ac('0xc')](handleError(_0x2d5a6d,null));},exports[_0x4abf5c('0xb')]=function(_0x40e3f1,_0x513dce){const _0x39e982=_0x4abf5c;let _0x2d022d={'raw':!![],'where':{'id':_0x40e3f1[_0x39e982('0x27')]['id']}};const _0x1bbb21={};return _0x1bbb21[_0x39e982('0x1e')]=_[_0x39e982('0x9')](db[_0x39e982('0x25')][_0x39e982('0x32')]),_0x1bbb21[_0x39e982('0x35')]=_[_0x39e982('0x9')](_0x40e3f1['query']),_0x1bbb21[_0x39e982('0x0')]=_['intersection'](_0x1bbb21['model'],_0x1bbb21['query']),_0x2d022d['attributes']=_[_0x39e982('0x4')](_0x1bbb21[_0x39e982('0x1e')],qs['fields'](_0x40e3f1['query'][_0x39e982('0x20')])),_0x2d022d[_0x39e982('0xe')]=_0x2d022d['attributes']['length']?_0x2d022d[_0x39e982('0xe')]:_0x1bbb21[_0x39e982('0x1e')],_0x40e3f1['query'][_0x39e982('0x22')]&&(_0x2d022d[_0x39e982('0x1a')]=[{'all':!![]}]),_0x2d022d=_['merge']({},_0x2d022d,_0x40e3f1[_0x39e982('0x1')]),db['VtigerField']['findOne'](_0x2d022d)['then'](handleEntityNotFound(_0x513dce,null))[_0x39e982('0x19')](respondWithResult(_0x513dce,null))[_0x39e982('0xc')](handleError(_0x513dce,null));},exports[_0x4abf5c('0x14')]=function(_0x3f999a,_0x1a9618){const _0xa2177=_0x4abf5c;return db['VtigerField'][_0xa2177('0x14')](_0x3f999a['body'],{})['then'](respondWithResult(_0x1a9618,0xc9))[_0xa2177('0xc')](handleError(_0x1a9618,null));},exports[_0x4abf5c('0x8')]=function(_0x4d7f2e,_0x264c8d){const _0xd82e8f=_0x4abf5c;return _0x4d7f2e[_0xd82e8f('0x18')]['id']&&delete _0x4d7f2e[_0xd82e8f('0x18')]['id'],db[_0xd82e8f('0x25')]['findOne']({'where':{'id':_0x4d7f2e[_0xd82e8f('0x27')]['id']}})[_0xd82e8f('0x19')](handleEntityNotFound(_0x264c8d,null))['then'](saveUpdates(_0x4d7f2e[_0xd82e8f('0x18')],null))[_0xd82e8f('0x19')](respondWithResult(_0x264c8d,null))[_0xd82e8f('0xc')](handleError(_0x264c8d,null));},exports[_0x4abf5c('0x2')]=function(_0x311972,_0x262b9f){const _0x84d215=_0x4abf5c;return db[_0x84d215('0x25')][_0x84d215('0x11')]({'where':{'id':_0x311972[_0x84d215('0x27')]['id']}})[_0x84d215('0x19')](handleEntityNotFound(_0x262b9f,null))['then'](removeEntity(_0x262b9f,null))['catch'](handleError(_0x262b9f,null));}; \ No newline at end of file +const a395_0x4e2e=['fieldName','error','lodash','model','nolimit','status','rows','attributes','end','VtigerField','type','destroy','findOne','merge','query','VIRTUAL','body','catch','filter','filters','fields','sort','pick','options','send','stack','create','intersection','include','limit','name','count','index','like','show','includeAll','sequelize','update','length','offset','undefined','params','where','sendStatus','map','key','../../mysqldb','Content-Range','then'];(function(_0x27b919,_0x4f2035){const _0x4e2eef=function(_0x24e71c){while(--_0x24e71c){_0x27b919['push'](_0x27b919['shift']());}};_0x4e2eef(++_0x4f2035);}(a395_0x4e2e,0x1dc));const a395_0x24e7=function(_0x27b919,_0x4f2035){_0x27b919=_0x27b919-0x68;let _0x4e2eef=a395_0x4e2e[_0x27b919];return _0x4e2eef;};const a395_0x1899c8=a395_0x24e7;'use strict';const _=require(a395_0x1899c8(0x78)),qs=require('../../components/parsers/qs'),logger=require('../../config/logger')('api'),{db}=require(a395_0x1899c8(0x73)),{Op}=require(a395_0x1899c8(0x69));function respondWithResult(_0x1581af,_0x56fe57){return _0x56fe57=_0x56fe57||0xc8,function(_0x44b95b){const _0x197a98=a395_0x24e7;if(_0x44b95b)return _0x1581af[_0x197a98(0x7b)](_0x56fe57)['json'](_0x44b95b);};}function respondWithFilteredResult(_0xf9d89e,_0x1bad75){return function(_0x4a29e5){const _0x2ea97f=a395_0x24e7;if(_0x4a29e5){const _0x25891e=_0x4a29e5[_0x2ea97f(0x95)],_0x436f13=_0x1bad75['offset'];let _0x3f2871=_0x1bad75[_0x2ea97f(0x6c)]+_0x1bad75[_0x2ea97f(0x93)],_0x36071c;return _0x3f2871>=_0x25891e?(_0x3f2871=_0x25891e,_0x36071c=0xc8):_0x36071c=0xce,_0xf9d89e['status'](_0x36071c),_0xf9d89e['set'](_0x2ea97f(0x74),_0x436f13+'-'+_0x3f2871+'/'+_0x25891e)['json'](_0x4a29e5);}return null;};}function saveUpdates(_0x4fe334){return function(_0x2c7869){const _0x5dc448=a395_0x24e7;if(_0x2c7869)return _0x2c7869[_0x5dc448(0x6a)](_0x4fe334)[_0x5dc448(0x75)](function(_0x35c862){return _0x35c862;});return null;};}function removeEntity(_0x31e47e){return function(_0x171aa2){const _0x386853=a395_0x24e7;if(_0x171aa2)return _0x171aa2[_0x386853(0x81)]()[_0x386853(0x75)](function(){const _0x23abde=_0x386853;_0x31e47e[_0x23abde(0x7b)](0xcc)[_0x23abde(0x7e)]();});};}function handleEntityNotFound(_0x5987c4){return function(_0x4f8678){const _0x5dc987=a395_0x24e7;return!_0x4f8678&&_0x5987c4[_0x5dc987(0x70)](0x194),_0x4f8678;};}function handleError(_0x468efc,_0x8ac62e){return _0x8ac62e=_0x8ac62e||0x1f4,function(_0xb87da2){const _0x4ccc92=a395_0x24e7;logger[_0x4ccc92(0x77)](_0xb87da2[_0x4ccc92(0x8f)]),_0xb87da2[_0x4ccc92(0x94)]&&delete _0xb87da2[_0x4ccc92(0x94)],_0x468efc[_0x4ccc92(0x7b)](_0x8ac62e)[_0x4ccc92(0x8e)](_0xb87da2);};}exports[a395_0x1899c8(0x96)]=function(_0x4f14a8,_0x3657b4){const _0x59ff3d=a395_0x1899c8;let _0x22aabe={};const _0x1fda45={},_0x443842={'count':0x0,'rows':[]},_0x4e2225=_['map'](db[_0x59ff3d(0x7f)]['rawAttributes'],function(_0x11acda){const _0x5d9f6d=_0x59ff3d;return{'name':_0x11acda[_0x5d9f6d(0x76)],'type':_0x11acda[_0x5d9f6d(0x80)][_0x5d9f6d(0x72)]};});_0x1fda45[_0x59ff3d(0x79)]=_[_0x59ff3d(0x71)](_0x4e2225,_0x59ff3d(0x94)),_0x1fda45[_0x59ff3d(0x84)]=_['keys'](_0x4f14a8['query']),_0x1fda45[_0x59ff3d(0x89)]=_[_0x59ff3d(0x91)](_0x1fda45[_0x59ff3d(0x79)],_0x1fda45[_0x59ff3d(0x84)]),_0x22aabe[_0x59ff3d(0x7d)]=_['intersection'](_0x1fda45[_0x59ff3d(0x79)],qs[_0x59ff3d(0x8a)](_0x4f14a8[_0x59ff3d(0x84)]['fields'])),_0x22aabe[_0x59ff3d(0x7d)]=_0x22aabe[_0x59ff3d(0x7d)]['length']?_0x22aabe[_0x59ff3d(0x7d)]:_0x1fda45[_0x59ff3d(0x79)];typeof _0x4f14a8['query'][_0x59ff3d(0x7a)]===_0x59ff3d(0x6d)&&(_0x22aabe['limit']=qs['limit'](_0x4f14a8[_0x59ff3d(0x84)][_0x59ff3d(0x93)]),_0x22aabe[_0x59ff3d(0x6c)]=qs[_0x59ff3d(0x6c)](_0x4f14a8[_0x59ff3d(0x84)][_0x59ff3d(0x6c)]));_0x22aabe['order']=qs[_0x59ff3d(0x8b)](_0x4f14a8[_0x59ff3d(0x84)][_0x59ff3d(0x8b)]),_0x22aabe[_0x59ff3d(0x6f)]=qs[_0x59ff3d(0x89)](_[_0x59ff3d(0x8c)](_0x4f14a8[_0x59ff3d(0x84)],_0x1fda45['filters']),_0x4e2225);_0x4f14a8[_0x59ff3d(0x84)]['filter']&&(_0x22aabe[_0x59ff3d(0x6f)]=_[_0x59ff3d(0x83)](_0x22aabe[_0x59ff3d(0x6f)],{[Op['or']]:_['map'](_0x4e2225,function(_0x383c21){const _0x55b59d=_0x59ff3d;if(_0x383c21['type']!==_0x55b59d(0x85)){const _0x35af90={};return _0x35af90[_0x383c21[_0x55b59d(0x94)]]={[Op[_0x55b59d(0x97)]]:'%'+_0x4f14a8[_0x55b59d(0x84)][_0x55b59d(0x88)]+'%'},_0x35af90;}})}));_0x22aabe=_[_0x59ff3d(0x83)]({},_0x22aabe,_0x4f14a8[_0x59ff3d(0x8d)]);const _0x3babcb={'where':_0x22aabe[_0x59ff3d(0x6f)]};return db['VtigerField'][_0x59ff3d(0x95)](_0x3babcb)[_0x59ff3d(0x75)](function(_0x1ff29d){const _0x2d89e0=_0x59ff3d;return _0x443842[_0x2d89e0(0x95)]=_0x1ff29d,_0x4f14a8[_0x2d89e0(0x84)][_0x2d89e0(0x68)]&&(_0x22aabe[_0x2d89e0(0x92)]=[{'all':!![]}]),db[_0x2d89e0(0x7f)]['findAll'](_0x22aabe);})[_0x59ff3d(0x75)](function(_0x4921b6){const _0x51c245=_0x59ff3d;return _0x443842[_0x51c245(0x7c)]=_0x4921b6,_0x443842;})[_0x59ff3d(0x75)](respondWithFilteredResult(_0x3657b4,_0x22aabe))[_0x59ff3d(0x87)](handleError(_0x3657b4,null));},exports[a395_0x1899c8(0x98)]=function(_0x46a631,_0x1f08ba){const _0x1c4672=a395_0x1899c8;let _0x593979={'raw':!![],'where':{'id':_0x46a631[_0x1c4672(0x6e)]['id']}};const _0x157cc8={};return _0x157cc8[_0x1c4672(0x79)]=_['keys'](db[_0x1c4672(0x7f)]['rawAttributes']),_0x157cc8[_0x1c4672(0x84)]=_['keys'](_0x46a631[_0x1c4672(0x84)]),_0x157cc8[_0x1c4672(0x89)]=_[_0x1c4672(0x91)](_0x157cc8[_0x1c4672(0x79)],_0x157cc8[_0x1c4672(0x84)]),_0x593979['attributes']=_[_0x1c4672(0x91)](_0x157cc8[_0x1c4672(0x79)],qs[_0x1c4672(0x8a)](_0x46a631['query']['fields'])),_0x593979[_0x1c4672(0x7d)]=_0x593979[_0x1c4672(0x7d)][_0x1c4672(0x6b)]?_0x593979[_0x1c4672(0x7d)]:_0x157cc8[_0x1c4672(0x79)],_0x46a631[_0x1c4672(0x84)][_0x1c4672(0x68)]&&(_0x593979[_0x1c4672(0x92)]=[{'all':!![]}]),_0x593979=_[_0x1c4672(0x83)]({},_0x593979,_0x46a631[_0x1c4672(0x8d)]),db[_0x1c4672(0x7f)]['findOne'](_0x593979)['then'](handleEntityNotFound(_0x1f08ba,null))['then'](respondWithResult(_0x1f08ba,null))['catch'](handleError(_0x1f08ba,null));},exports['create']=function(_0x522a35,_0x4357a6){const _0x4e2029=a395_0x1899c8;return db[_0x4e2029(0x7f)][_0x4e2029(0x90)](_0x522a35['body'],{})[_0x4e2029(0x75)](respondWithResult(_0x4357a6,0xc9))[_0x4e2029(0x87)](handleError(_0x4357a6,null));},exports[a395_0x1899c8(0x6a)]=function(_0x411ad7,_0x5df637){const _0xaf1438=a395_0x1899c8;return _0x411ad7[_0xaf1438(0x86)]['id']&&delete _0x411ad7[_0xaf1438(0x86)]['id'],db[_0xaf1438(0x7f)]['findOne']({'where':{'id':_0x411ad7['params']['id']}})[_0xaf1438(0x75)](handleEntityNotFound(_0x5df637,null))[_0xaf1438(0x75)](saveUpdates(_0x411ad7[_0xaf1438(0x86)],null))[_0xaf1438(0x75)](respondWithResult(_0x5df637,null))['catch'](handleError(_0x5df637,null));},exports[a395_0x1899c8(0x81)]=function(_0x10f872,_0x51fc11){const _0x23073c=a395_0x1899c8;return db[_0x23073c(0x7f)][_0x23073c(0x82)]({'where':{'id':_0x10f872[_0x23073c(0x6e)]['id']}})['then'](handleEntityNotFound(_0x51fc11,null))[_0x23073c(0x75)](removeEntity(_0x51fc11,null))['catch'](handleError(_0x51fc11,null));}; \ No newline at end of file diff --git a/server/api/intVtigerField/intVtigerField.model.js b/server/api/intVtigerField/intVtigerField.model.js index cdd7fd1..457b521 100644 --- a/server/api/intVtigerField/intVtigerField.model.js +++ b/server/api/intVtigerField/intVtigerField.model.js @@ -1 +1 @@ -const a330_0x39ce=['FieldId','./intVtigerField.attributes','int_vtiger_fields','idField','VtigerField'];(function(_0x371e52,_0x39ce71){const _0x545f74=function(_0x17c795){while(--_0x17c795){_0x371e52['push'](_0x371e52['shift']());}};_0x545f74(++_0x39ce71);}(a330_0x39ce,0x67));const a330_0x545f=function(_0x371e52,_0x39ce71){_0x371e52=_0x371e52-0x0;let _0x545f74=a330_0x39ce[_0x371e52];return _0x545f74;};const _0x360db8=a330_0x545f;'use strict';const attributes=require(_0x360db8('0x3'));module['exports']=function(_0x17c795){const _0x1923e5=_0x360db8,_0x1fec71=_0x17c795['define'](_0x1923e5('0x1'),attributes,{'tableName':_0x1923e5('0x4'),'paranoid':![],'indexes':[{'name':'vtiger_unique_index','fields':[_0x1923e5('0x0'),_0x1923e5('0x2')],'unique':!![]}],'timestamps':!![]});return _0x1fec71;}; \ No newline at end of file +const a396_0x5835=['function','init','sequelize','./intVtigerField.options','exports'];(function(_0x5c7b83,_0x1f372c){const _0x58356a=function(_0x277f19){while(--_0x277f19){_0x5c7b83['push'](_0x5c7b83['shift']());}};_0x58356a(++_0x1f372c);}(a396_0x5835,0x135));const a396_0x277f=function(_0x5c7b83,_0x1f372c){_0x5c7b83=_0x5c7b83-0x179;let _0x58356a=a396_0x5835[_0x5c7b83];return _0x58356a;};const a396_0x290fba=a396_0x277f;'use strict';const {Model}=require(a396_0x290fba(0x17c)),{attributes}=require('./intVtigerField.attributes'),{options}=require(a396_0x290fba(0x17d));class VtigerField extends Model{}function init(_0x1d30ed,_0x48f5a4){const _0x5590fc=a396_0x290fba,_0x17bd66=options(_0x1d30ed),_0x439de3=typeof _0x48f5a4===_0x5590fc(0x17a)?_0x48f5a4(_0x17bd66):_0x17bd66;return VtigerField[_0x5590fc(0x17b)](attributes,_0x439de3),VtigerField;}module[a396_0x290fba(0x179)]['VtigerField']=VtigerField,module[a396_0x290fba(0x179)]['init']=init; \ No newline at end of file diff --git a/server/api/intVtigerField/intVtigerField.options.js b/server/api/intVtigerField/intVtigerField.options.js new file mode 100644 index 0000000..f4e25f1 --- /dev/null +++ b/server/api/intVtigerField/intVtigerField.options.js @@ -0,0 +1 @@ +var a397_0x1bdb=['exports','FieldId','vtiger_unique_index','options','int_vtiger_fields','idField'];(function(_0x2f22e1,_0x32356b){var _0x1bdb7f=function(_0x5b647b){while(--_0x5b647b){_0x2f22e1['push'](_0x2f22e1['shift']());}};_0x1bdb7f(++_0x32356b);}(a397_0x1bdb,0x1d3));var a397_0x5b64=function(_0x2f22e1,_0x32356b){_0x2f22e1=_0x2f22e1-0x1f2;var _0x1bdb7f=a397_0x1bdb[_0x2f22e1];return _0x1bdb7f;};var a397_0x545887=a397_0x5b64;function options(_0x58c8e7){var _0xbf9e46=a397_0x5b64;return{'sequelize':_0x58c8e7,'tableName':_0xbf9e46(0x1f7),'paranoid':![],'indexes':[{'name':_0xbf9e46(0x1f5),'fields':[_0xbf9e46(0x1f2),_0xbf9e46(0x1f4)],'unique':!![]}],'timestamps':!![]};}module[a397_0x545887(0x1f3)][a397_0x545887(0x1f6)]=options; \ No newline at end of file diff --git a/server/api/intZendeskAccount/index.js b/server/api/intZendeskAccount/index.js index 0756a5d..1b5cc5c 100644 --- a/server/api/intZendeskAccount/index.js +++ b/server/api/intZendeskAccount/index.js @@ -1 +1 @@ -const a331_0x1a78=['put','express','getFields','../../components/auth/service','create','Router','update','/:id/fields','get','/:id/configurations','./intZendeskAccount.controller','isAuthenticated','index','show','exports','post','addConfiguration','delete','getConfigurations','/:id'];(function(_0x24d90e,_0x1a78b4){const _0x270f51=function(_0x187023){while(--_0x187023){_0x24d90e['push'](_0x24d90e['shift']());}};_0x270f51(++_0x1a78b4);}(a331_0x1a78,0x16b));const a331_0x270f=function(_0x24d90e,_0x1a78b4){_0x24d90e=_0x24d90e-0x0;let _0x270f51=a331_0x1a78[_0x24d90e];return _0x270f51;};const _0x41439e=a331_0x270f;'use strict';const express=require(_0x41439e('0x12')),router=express[_0x41439e('0x2')](),auth=require(_0x41439e('0x0')),controller=require(_0x41439e('0x7'));router[_0x41439e('0x5')]('/',auth[_0x41439e('0x8')](),controller[_0x41439e('0x9')]),router[_0x41439e('0x5')](_0x41439e('0x10'),auth[_0x41439e('0x8')](),controller[_0x41439e('0xa')]),router['get']('/:id/configurations',auth[_0x41439e('0x8')](),controller[_0x41439e('0xf')]),router[_0x41439e('0x5')](_0x41439e('0x4'),auth[_0x41439e('0x8')](),controller[_0x41439e('0x13')]),router[_0x41439e('0xc')]('/',auth[_0x41439e('0x8')](),controller[_0x41439e('0x1')]),router[_0x41439e('0xc')](_0x41439e('0x6'),auth[_0x41439e('0x8')](),controller[_0x41439e('0xd')]),router[_0x41439e('0x11')](_0x41439e('0x10'),auth[_0x41439e('0x8')](),controller[_0x41439e('0x3')]),router[_0x41439e('0xe')](_0x41439e('0x10'),auth['isAuthenticated'](),controller['destroy']),module[_0x41439e('0xb')]=router; \ No newline at end of file +const a398_0x2dcf=['Router','getFields','get','post','update','./intZendeskAccount.controller','../../components/auth/service','/:id/fields','destroy','create','/:id','getConfigurations','addConfiguration','/:id/configurations','isAuthenticated','express'];(function(_0xf0e723,_0x2e850e){const _0x2dcfd2=function(_0x4e8840){while(--_0x4e8840){_0xf0e723['push'](_0xf0e723['shift']());}};_0x2dcfd2(++_0x2e850e);}(a398_0x2dcf,0xd8));const a398_0x4e88=function(_0xf0e723,_0x2e850e){_0xf0e723=_0xf0e723-0xc8;let _0x2dcfd2=a398_0x2dcf[_0xf0e723];return _0x2dcfd2;};const a398_0xd1b9e7=a398_0x4e88;'use strict';const express=require(a398_0xd1b9e7(0xcf)),router=express[a398_0xd1b9e7(0xd0)](),auth=require(a398_0xd1b9e7(0xd6)),controller=require(a398_0xd1b9e7(0xd5));router['get']('/',auth[a398_0xd1b9e7(0xce)](),controller['index']),router[a398_0xd1b9e7(0xd2)](a398_0xd1b9e7(0xca),auth['isAuthenticated'](),controller['show']),router[a398_0xd1b9e7(0xd2)]('/:id/configurations',auth['isAuthenticated'](),controller[a398_0xd1b9e7(0xcb)]),router[a398_0xd1b9e7(0xd2)](a398_0xd1b9e7(0xd7),auth['isAuthenticated'](),controller[a398_0xd1b9e7(0xd1)]),router[a398_0xd1b9e7(0xd3)]('/',auth[a398_0xd1b9e7(0xce)](),controller[a398_0xd1b9e7(0xc9)]),router[a398_0xd1b9e7(0xd3)](a398_0xd1b9e7(0xcd),auth['isAuthenticated'](),controller[a398_0xd1b9e7(0xcc)]),router['put'](a398_0xd1b9e7(0xca),auth['isAuthenticated'](),controller[a398_0xd1b9e7(0xd4)]),router['delete']('/:id',auth[a398_0xd1b9e7(0xce)](),controller[a398_0xd1b9e7(0xc8)]),module['exports']=router; \ No newline at end of file diff --git a/server/api/intZendeskAccount/intZendeskAccount.attributes.js b/server/api/intZendeskAccount/intZendeskAccount.attributes.js index 5de28c0..820cebd 100644 --- a/server/api/intZendeskAccount/intZendeskAccount.attributes.js +++ b/server/api/intZendeskAccount/intZendeskAccount.attributes.js @@ -1 +1 @@ -const a332_0x31c6=['remoteUri','exports','newTab','ENUM','username','sequelize','STRING','token','password'];(function(_0x4a3f41,_0x31c6a4){const _0x539f03=function(_0x895632){while(--_0x895632){_0x4a3f41['push'](_0x4a3f41['shift']());}};_0x539f03(++_0x31c6a4);}(a332_0x31c6,0x193));const a332_0x539f=function(_0x4a3f41,_0x31c6a4){_0x4a3f41=_0x4a3f41-0x0;let _0x539f03=a332_0x31c6[_0x4a3f41];return _0x539f03;};const _0x25d817=a332_0x539f;'use strict';const Sequelize=require(_0x25d817('0x7'));module[_0x25d817('0x3')]={'name':{'type':Sequelize['STRING']},'description':{'type':Sequelize[_0x25d817('0x8')]},'username':{'type':Sequelize[_0x25d817('0x8')],'unique':_0x25d817('0x6')},'password':{'type':Sequelize[_0x25d817('0x8')]},'token':{'type':Sequelize['STRING']},'remoteUri':{'type':Sequelize[_0x25d817('0x8')],'unique':_0x25d817('0x2')},'authType':{'type':Sequelize['ENUM'](_0x25d817('0x1'),_0x25d817('0x0')),'defaultValue':_0x25d817('0x1')},'serverUrl':{'type':Sequelize[_0x25d817('0x8')]},'type':{'type':Sequelize[_0x25d817('0x5')]('integrationTab',_0x25d817('0x4')),'defaultValue':'integrationTab'}}; \ No newline at end of file +const a399_0x4916=['token','remoteUri','STRING','exports','newTab','ENUM','password','attributes','integrationTab'];(function(_0x53a612,_0xb4876b){const _0x49164b=function(_0x38c4d1){while(--_0x38c4d1){_0x53a612['push'](_0x53a612['shift']());}};_0x49164b(++_0xb4876b);}(a399_0x4916,0x8c));const a399_0x38c4=function(_0x53a612,_0xb4876b){_0x53a612=_0x53a612-0xc7;let _0x49164b=a399_0x4916[_0x53a612];return _0x49164b;};const a399_0x1489be=a399_0x38c4;'use strict';const {DataTypes}=require('sequelize'),attributes={'name':{'type':DataTypes[a399_0x1489be(0xcd)]},'description':{'type':DataTypes[a399_0x1489be(0xcd)]},'username':{'type':DataTypes[a399_0x1489be(0xcd)],'unique':'username'},'password':{'type':DataTypes['STRING']},'token':{'type':DataTypes['STRING']},'remoteUri':{'type':DataTypes[a399_0x1489be(0xcd)],'unique':a399_0x1489be(0xcc)},'authType':{'type':DataTypes[a399_0x1489be(0xc7)](a399_0x1489be(0xc8),a399_0x1489be(0xcb)),'defaultValue':'password'},'serverUrl':{'type':DataTypes[a399_0x1489be(0xcd)]},'type':{'type':DataTypes[a399_0x1489be(0xc7)](a399_0x1489be(0xca),a399_0x1489be(0xcf)),'defaultValue':'integrationTab'}};module[a399_0x1489be(0xce)][a399_0x1489be(0xc9)]=attributes; \ No newline at end of file diff --git a/server/api/intZendeskAccount/intZendeskAccount.controller.js b/server/api/intZendeskAccount/intZendeskAccount.controller.js index 9ea0f22..5a8b911 100644 --- a/server/api/intZendeskAccount/intZendeskAccount.controller.js +++ b/server/api/intZendeskAccount/intZendeskAccount.controller.js @@ -1 +1 @@ -const a333_0x3bdd=['attributes','statusCode','title','index','fieldName','../../components/parsers/qs','includes','filter','ZendeskConfiguration','show','sort','Subjects','json','map','format','getFields','lodash','Descriptions','destroy','system_field_options','assignee','addConfiguration','custom_field_options','remoteUri','like','filters','group','limit','query','findAll','Unknown\x20authentication\x20type','offset','intersection','rawAttributes','ZendeskAccount','getSubjects','catch','fields','length','stringify','keys','lastIndexOf','ZendeskField','send','Basic\x20%s','subject','create','include','then','%s:%s','toString','getConfigurations','model','order','options','../../mysqldb','undefined','substring','%s/token:%s','params','sendStatus','error','test','where','channel','key','count','stack','status','merge','end','username','includeAll','body','rows','from','api','token','remove','base64','position','update','util','ticket_fields','findOne','type','request-promise-native','name','password','getDescriptions','authType','pick','headers','set','description'];(function(_0x14b2b0,_0x3bdde5){const _0x22ca6b=function(_0x199a33){while(--_0x199a33){_0x14b2b0['push'](_0x14b2b0['shift']());}};_0x22ca6b(++_0x3bdde5);}(a333_0x3bdd,0x14b));const a333_0x22ca=function(_0x14b2b0,_0x3bdde5){_0x14b2b0=_0x14b2b0-0x0;let _0x22ca6b=a333_0x3bdd[_0x14b2b0];return _0x22ca6b;};const _0x57701f=a333_0x22ca;'use strict';const rp=require(_0x57701f('0x28')),util=require(_0x57701f('0x24')),_=require(_0x57701f('0x41')),qs=require(_0x57701f('0x36')),logger=require('../../config/logger')(_0x57701f('0x1e')),db=require(_0x57701f('0x9'))['db'],{Op,ValidationError}=require('sequelize'),integrations=require('../../components/integrations/configuration');function respondWithResult(_0x199a33,_0x2d0100){return _0x2d0100=_0x2d0100||0xc8,function(_0xe6211e){const _0xea9f4e=a333_0x22ca;if(_0xe6211e)return _0x199a33[_0xea9f4e('0x16')](_0x2d0100)[_0xea9f4e('0x3d')](_0xe6211e);};}function respondWithFilteredResult(_0x57bb3d,_0x45f8cc){return function(_0x11f825){const _0x325fa5=a333_0x22ca;if(_0x11f825){const _0x190ada=_0x11f825[_0x325fa5('0x14')],_0x328290=_0x45f8cc[_0x325fa5('0x50')];let _0x415208=_0x45f8cc[_0x325fa5('0x50')]+_0x45f8cc[_0x325fa5('0x4c')],_0x226dc6;return _0x415208>=_0x190ada?(_0x415208=_0x190ada,_0x226dc6=0xc8):_0x226dc6=0xce,_0x57bb3d[_0x325fa5('0x16')](_0x226dc6),_0x57bb3d[_0x325fa5('0x2f')]('Content-Range',_0x328290+'-'+_0x415208+'/'+_0x190ada)[_0x325fa5('0x3d')](_0x11f825);}return null;};}function saveUpdates(_0x215bf9){return function(_0x16505f){const _0x46d7d1=a333_0x22ca;if(_0x16505f)return _0x16505f[_0x46d7d1('0x23')](_0x215bf9)[_0x46d7d1('0x2')](function(_0x45d22f){return _0x45d22f;});return null;};}function removeEntity(_0x10d5e7){return function(_0x1741b7){const _0x17de98=a333_0x22ca;if(_0x1741b7)return _0x1741b7[_0x17de98('0x43')]()[_0x17de98('0x2')](function(){const _0x309a35=_0x17de98;_0x10d5e7[_0x309a35('0x16')](0xcc)[_0x309a35('0x18')]();});};}function handleEntityNotFound(_0x3972f2){return function(_0x57a7ec){const _0x21feb0=a333_0x22ca;return!_0x57a7ec&&_0x3972f2[_0x21feb0('0xe')](0x194),_0x57a7ec;};}function handleError(_0x272cba,_0x18bbf8){return _0x18bbf8=_0x18bbf8||0x1f4,function(_0xad62c2){const _0x495615=a333_0x22ca;logger[_0x495615('0xf')](_0xad62c2[_0x495615('0x15')]),_0xad62c2[_0x495615('0x29')]&&delete _0xad62c2[_0x495615('0x29')],_0x272cba[_0x495615('0x16')](_0x18bbf8)[_0x495615('0x5c')](_0xad62c2);};}exports[_0x57701f('0x34')]=function(_0x28425d,_0x598664){const _0x16579f=_0x57701f;let _0x2cc20d={};const _0x339eba={},_0x1e8f7b={'count':0x0,'rows':[]},_0x92db05=_['map'](db[_0x16579f('0x53')][_0x16579f('0x52')],function(_0x8bcb5f){const _0x389658=_0x16579f;return{'name':_0x8bcb5f[_0x389658('0x35')],'type':_0x8bcb5f['type'][_0x389658('0x13')]};});_0x339eba['model']=_[_0x16579f('0x3e')](_0x92db05,'name'),_0x339eba[_0x16579f('0x4d')]=_[_0x16579f('0x59')](_0x28425d['query']),_0x339eba[_0x16579f('0x4a')]=_[_0x16579f('0x51')](_0x339eba[_0x16579f('0x6')],_0x339eba['query']),_0x2cc20d[_0x16579f('0x31')]=_[_0x16579f('0x51')](_0x339eba['model'],qs[_0x16579f('0x56')](_0x28425d[_0x16579f('0x4d')]['fields'])),_0x2cc20d[_0x16579f('0x31')]=_0x2cc20d['attributes'][_0x16579f('0x57')]?_0x2cc20d[_0x16579f('0x31')]:_0x339eba[_0x16579f('0x6')];typeof _0x28425d[_0x16579f('0x4d')]['nolimit']===_0x16579f('0xa')&&(_0x2cc20d[_0x16579f('0x4c')]=qs[_0x16579f('0x4c')](_0x28425d[_0x16579f('0x4d')][_0x16579f('0x4c')]),_0x2cc20d[_0x16579f('0x50')]=qs[_0x16579f('0x50')](_0x28425d['query'][_0x16579f('0x50')]));_0x2cc20d[_0x16579f('0x7')]=qs['sort'](_0x28425d['query'][_0x16579f('0x3b')]),_0x2cc20d['where']=qs[_0x16579f('0x4a')](_[_0x16579f('0x2d')](_0x28425d['query'],_0x339eba[_0x16579f('0x4a')]),_0x92db05);_0x28425d['query']['filter']&&(_0x2cc20d[_0x16579f('0x11')]=_[_0x16579f('0x17')](_0x2cc20d['where'],{[Op['or']]:_['map'](_0x92db05,function(_0x2dfb4d){const _0xb914ec=_0x16579f;if(_0x2dfb4d[_0xb914ec('0x27')]!=='VIRTUAL'){const _0x293520={};return _0x293520[_0x2dfb4d['name']]={[Op['like']]:'%'+_0x28425d[_0xb914ec('0x4d')]['filter']+'%'},_0x293520;}})}));_0x2cc20d=_[_0x16579f('0x17')]({},_0x2cc20d,_0x28425d['options']);const _0x2f456e={'where':_0x2cc20d[_0x16579f('0x11')]};return db['ZendeskAccount']['count'](_0x2f456e)[_0x16579f('0x2')](function(_0x188b4e){const _0x417ce9=_0x16579f;return _0x1e8f7b[_0x417ce9('0x14')]=_0x188b4e,_0x28425d[_0x417ce9('0x4d')]['includeAll']&&(_0x2cc20d[_0x417ce9('0x1')]=[{'all':!![]}]),db[_0x417ce9('0x53')][_0x417ce9('0x4e')](_0x2cc20d);})[_0x16579f('0x2')](function(_0x3e3495){const _0x503c5e=_0x16579f;return _0x1e8f7b[_0x503c5e('0x1c')]=_0x3e3495,_0x1e8f7b;})[_0x16579f('0x2')](respondWithFilteredResult(_0x598664,_0x2cc20d))['catch'](handleError(_0x598664,null));},exports[_0x57701f('0x3a')]=function(_0x508f07,_0x30c2e4){const _0x420195=_0x57701f;let _0xe93043={'raw':![],'where':{'id':_0x508f07[_0x420195('0xd')]['id']}};const _0x55ce3c={};return _0x55ce3c['model']=_['keys'](db[_0x420195('0x53')][_0x420195('0x52')]),_0x55ce3c['query']=_[_0x420195('0x59')](_0x508f07['query']),_0x55ce3c[_0x420195('0x4a')]=_[_0x420195('0x51')](_0x55ce3c[_0x420195('0x6')],_0x55ce3c[_0x420195('0x4d')]),_0xe93043[_0x420195('0x31')]=_[_0x420195('0x51')](_0x55ce3c['model'],qs['fields'](_0x508f07['query'][_0x420195('0x56')])),_0xe93043[_0x420195('0x31')]=_0xe93043[_0x420195('0x31')]['length']?_0xe93043[_0x420195('0x31')]:_0x55ce3c[_0x420195('0x6')],_0x508f07[_0x420195('0x4d')][_0x420195('0x1a')]&&(_0xe93043['include']=[{'all':!![]}]),_0xe93043=_['merge']({},_0xe93043,_0x508f07[_0x420195('0x8')]),db[_0x420195('0x53')][_0x420195('0x26')](_0xe93043)[_0x420195('0x2')](handleEntityNotFound(_0x30c2e4,null))[_0x420195('0x2')](respondWithResult(_0x30c2e4,null))[_0x420195('0x55')](handleError(_0x30c2e4,null));},exports[_0x57701f('0x0')]=function(_0x41c9ae,_0x5897ab){const _0x1348d8=_0x57701f;return db[_0x1348d8('0x53')][_0x1348d8('0x0')](_0x41c9ae[_0x1348d8('0x1b')],{})[_0x1348d8('0x2')](respondWithResult(_0x5897ab,0xc9))[_0x1348d8('0x55')](handleError(_0x5897ab,null));},exports[_0x57701f('0x23')]=function(_0x21ab5a,_0x539bc7){const _0x3c6654=_0x57701f;return _0x21ab5a[_0x3c6654('0x1b')]['id']&&delete _0x21ab5a[_0x3c6654('0x1b')]['id'],db[_0x3c6654('0x53')][_0x3c6654('0x26')]({'where':{'id':_0x21ab5a[_0x3c6654('0xd')]['id']}})['then'](handleEntityNotFound(_0x539bc7,null))[_0x3c6654('0x2')](saveUpdates(_0x21ab5a[_0x3c6654('0x1b')],null))[_0x3c6654('0x2')](respondWithResult(_0x539bc7,null))[_0x3c6654('0x55')](handleError(_0x539bc7,null));},exports[_0x57701f('0x43')]=function(_0x28732e,_0x48286b){const _0x39365b=_0x57701f;return db[_0x39365b('0x53')][_0x39365b('0x26')]({'where':{'id':_0x28732e['params']['id']}})['then'](handleEntityNotFound(_0x48286b,null))['then'](removeEntity(_0x48286b,null))[_0x39365b('0x55')](handleError(_0x48286b,null));},exports[_0x57701f('0x5')]=function(_0x279c5f,_0x13c168){const _0x2fedb2=_0x57701f;let _0x16d3e3={};const _0x57d161={};let _0x3cb77e,_0x4ae6dc;return db[_0x2fedb2('0x53')][_0x2fedb2('0x26')]({'where':{'id':_0x279c5f['params']['id']}})['then'](handleEntityNotFound(_0x13c168,null))['then'](function(_0x2c6ee7){const _0x13b985=_0x2fedb2;if(_0x2c6ee7)return _0x3cb77e=_0x2c6ee7,_0x57d161[_0x13b985('0x6')]=_[_0x13b985('0x59')](db[_0x13b985('0x39')][_0x13b985('0x52')]),_0x57d161['query']=_['keys'](_0x279c5f[_0x13b985('0x4d')]),_0x57d161[_0x13b985('0x4a')]=_[_0x13b985('0x51')](_0x57d161[_0x13b985('0x6')],_0x57d161['query']),_0x16d3e3[_0x13b985('0x31')]=_[_0x13b985('0x51')](_0x57d161[_0x13b985('0x6')],qs[_0x13b985('0x56')](_0x279c5f[_0x13b985('0x4d')]['fields'])),_0x16d3e3[_0x13b985('0x31')]=_0x16d3e3['attributes'][_0x13b985('0x57')]?_0x16d3e3[_0x13b985('0x31')]:_0x57d161['model'],_0x16d3e3[_0x13b985('0x7')]=qs[_0x13b985('0x3b')](_0x279c5f[_0x13b985('0x4d')][_0x13b985('0x3b')]),_0x16d3e3[_0x13b985('0x11')]=qs[_0x13b985('0x4a')](_[_0x13b985('0x2d')](_0x279c5f['query'],_0x57d161['filters'])),_0x279c5f[_0x13b985('0x4d')][_0x13b985('0x38')]&&(_0x16d3e3[_0x13b985('0x11')]=_[_0x13b985('0x17')](_0x16d3e3[_0x13b985('0x11')],{[Op['or']]:_[_0x13b985('0x3e')](_0x16d3e3['attributes'],function(_0x346d91){const _0x21b9da=_0x13b985,_0x51c102={};return _0x51c102[_0x346d91]={[Op[_0x21b9da('0x49')]]:'%'+_0x279c5f[_0x21b9da('0x4d')]['filter']+'%'},_0x51c102;})})),_0x16d3e3=_[_0x13b985('0x17')]({},_0x16d3e3,_0x279c5f['options']),_0x3cb77e['getConfigurations'](_0x16d3e3);})[_0x2fedb2('0x2')](function(_0x3ccec8){const _0x13754a=_0x2fedb2;if(_0x3ccec8)return _0x4ae6dc=_0x3ccec8[_0x13754a('0x57')],typeof _0x279c5f[_0x13754a('0x4d')]['nolimit']===_0x13754a('0xa')&&(_0x16d3e3['limit']=qs[_0x13754a('0x4c')](_0x279c5f[_0x13754a('0x4d')][_0x13754a('0x4c')]),_0x16d3e3[_0x13754a('0x50')]=qs[_0x13754a('0x50')](_0x279c5f['query'][_0x13754a('0x50')])),_0x3cb77e[_0x13754a('0x5')](_0x16d3e3);})[_0x2fedb2('0x2')](function(_0x3a7060){if(_0x3a7060)return _0x3a7060?{'count':_0x4ae6dc,'rows':_0x3a7060}:null;})['then'](respondWithResult(_0x13c168,null))['catch'](handleError(_0x13c168,null));},exports[_0x57701f('0x46')]=function(_0x47b290,_0x43fa64){const _0x7aa913=_0x57701f;return _0x47b290['body']['id']&&delete _0x47b290[_0x7aa913('0x1b')]['id'],db['ZendeskAccount'][_0x7aa913('0x26')]({'where':{'id':_0x47b290[_0x7aa913('0xd')]['id']}})[_0x7aa913('0x2')](handleEntityNotFound(_0x43fa64,null))[_0x7aa913('0x2')](function(_0x2c279c){const _0x37b9ac=_0x7aa913;if(_0x2c279c)return _0x47b290['body']['AccountId']=_0x2c279c['id'],_0x47b290[_0x37b9ac('0x1b')][_0x37b9ac('0x3c')]=integrations[_0x37b9ac('0x54')](_0x47b290[_0x37b9ac('0x1b')][_0x37b9ac('0x12')],_0x47b290[_0x37b9ac('0x1b')]['type']),_0x47b290[_0x37b9ac('0x1b')][_0x37b9ac('0x42')]=integrations[_0x37b9ac('0x2b')](_0x47b290[_0x37b9ac('0x1b')][_0x37b9ac('0x12')],_0x47b290[_0x37b9ac('0x1b')][_0x37b9ac('0x27')]),db[_0x37b9ac('0x39')][_0x37b9ac('0x0')](_0x47b290['body'],{'include':[{'model':db[_0x37b9ac('0x5b')],'as':_0x37b9ac('0x3c')},{'model':db[_0x37b9ac('0x5b')],'as':_0x37b9ac('0x42')}]});return null;})[_0x7aa913('0x2')](respondWithResult(_0x43fa64,null))[_0x7aa913('0x55')](handleError(_0x43fa64,null));},exports[_0x57701f('0x40')]=function(_0x4f6c5c,_0x1eb6fd){const _0x11946a=_0x57701f;let _0x1f554e='';return db[_0x11946a('0x53')][_0x11946a('0x26')]({'where':{'id':_0x4f6c5c[_0x11946a('0xd')]['id']},'attributes':['id','username',_0x11946a('0x2a'),_0x11946a('0x1f'),'authType',_0x11946a('0x48')]})[_0x11946a('0x2')](handleEntityNotFound(_0x1eb6fd,null))[_0x11946a('0x2')](function(_0x4ed358){const _0x35694f=_0x11946a;if(_0x4ed358){_0x1f554e=_0x4ed358[_0x35694f('0x48')];const _0x5297ce=_0x1f554e['slice'](-0x1);_0x5297ce==='/'&&(_0x1f554e=_0x1f554e[_0x35694f('0xb')](0x0,_0x1f554e[_0x35694f('0x5a')](_0x5297ce)));const _0x34c8bf={'method':'GET','uri':util[_0x35694f('0x3f')]('%s/%s',_0x1f554e,'ticket_fields'),'json':!![]};switch(_0x4ed358[_0x35694f('0x2c')]){case _0x35694f('0x2a'):_0x34c8bf[_0x35694f('0x2e')]={'Authorization':util['format'](_0x35694f('0x5d'),Buffer[_0x35694f('0x1d')](util[_0x35694f('0x3f')](_0x35694f('0x3'),_0x4ed358[_0x35694f('0x19')],_0x4ed358[_0x35694f('0x2a')]))[_0x35694f('0x4')](_0x35694f('0x21')))};break;case _0x35694f('0x1f'):_0x34c8bf[_0x35694f('0x2e')]={'Authorization':util[_0x35694f('0x3f')](_0x35694f('0x5d'),Buffer[_0x35694f('0x1d')](util[_0x35694f('0x3f')](_0x35694f('0xc'),_0x4ed358[_0x35694f('0x19')],_0x4ed358[_0x35694f('0x1f')]))[_0x35694f('0x4')](_0x35694f('0x21')))};break;default:throw new ValidationError(_0x35694f('0x4f'));}return rp(_0x34c8bf);}})[_0x11946a('0x2')](function(_0x52f5a9){const _0x30b947=_0x11946a;if(_0x52f5a9){const _0x3517f0=[_0x30b947('0x5e'),_0x30b947('0x30'),_0x30b947('0x4b'),_0x30b947('0x45')];return _[_0x30b947('0x20')](_0x52f5a9[_0x30b947('0x25')],function(_0x1bd6c9){const _0x394a52=_0x30b947;return _0x3517f0[_0x394a52('0x37')](_0x1bd6c9[_0x394a52('0x27')]);}),{'count':_0x52f5a9[_0x30b947('0x25')][_0x30b947('0x57')],'rows':_[_0x30b947('0x3e')](_0x52f5a9['ticket_fields'],function(_0x4a0cb4){const _0x2440f3=_0x30b947;return{'id':_0x4a0cb4['id'],'name':_0x4a0cb4['position']>0x7?_0x4a0cb4[_0x2440f3('0x33')]:_0x4a0cb4[_0x2440f3('0x27')],'custom':_0x4a0cb4[_0x2440f3('0x22')]>0x7?!![]:![],'options':_0x4a0cb4[_0x2440f3('0x44')]?_0x4a0cb4['system_field_options']:_0x4a0cb4[_0x2440f3('0x47')]?_0x4a0cb4[_0x2440f3('0x47')]:[]};})};}})[_0x11946a('0x2')](respondWithResult(_0x1eb6fd,null))[_0x11946a('0x55')](function(_0x411395){const _0x1f45e7=_0x11946a;let _0x232cb7=_0x4f6c5c['query']['test']?0x1f4:_0x411395['statusCode']||0x1f4;logger[_0x1f45e7('0xf')]('getFields,\x20%s,\x20%s,\x20%s',_0x1f45e7('0x40'),_0x232cb7,JSON[_0x1f45e7('0x58')](_0x411395)),delete _0x411395[_0x1f45e7('0x29')],_0x232cb7===0x191&&(_0x232cb7=0x190),_0x1eb6fd[_0x1f45e7('0x16')](_0x232cb7)[_0x1f45e7('0x5c')](_0x4f6c5c[_0x1f45e7('0x4d')][_0x1f45e7('0x10')]?{'message':'Wrong\x20credentials','statusCode':_0x411395[_0x1f45e7('0x32')]}:_0x411395);});}; \ No newline at end of file +const a400_0x596a=['lastIndexOf','body','%s/token:%s','pick','headers','limit','sequelize','getConfigurations','rawAttributes','%s:%s','../../mysqldb','username','ZendeskConfiguration','ZendeskField','format','set','custom_field_options','order','base64','error','catch','index','fields','../../components/integrations/configuration','Descriptions','stringify','nolimit','where','from','keys','name','lodash','description','filter','offset','fieldName','destroy','json','getFields,\x20%s,\x20%s,\x20%s','then','toString','type','Wrong\x20credentials','getFields','end','undefined','status','ZendeskAccount','subject','create','key','%s/%s','substring','Basic\x20%s','sendStatus','api','group','Subjects','includes','query','update','merge','getSubjects','length','attributes','GET','authType','filters','intersection','VIRTUAL','options','addConfiguration','includeAll','test','ticket_fields','Unknown\x20authentication\x20type','getDescriptions','../../config/logger','send','rows','statusCode','map','system_field_options','include','findOne','params','like','request-promise-native','remoteUri','password','slice','count','token','../../components/parsers/qs','sort','position','title','model'];(function(_0x53f72b,_0x2b5c42){const _0x596a17=function(_0x5384e3){while(--_0x5384e3){_0x53f72b['push'](_0x53f72b['shift']());}};_0x596a17(++_0x2b5c42);}(a400_0x596a,0x128));const a400_0x5384=function(_0x53f72b,_0x2b5c42){_0x53f72b=_0x53f72b-0xc9;let _0x596a17=a400_0x596a[_0x53f72b];return _0x596a17;};const a400_0x238239=a400_0x5384;'use strict';const rp=require(a400_0x238239(0x11e)),util=require('util'),_=require(a400_0x238239(0xe6)),qs=require(a400_0x238239(0x124)),logger=require(a400_0x238239(0x114))(a400_0x238239(0xfe)),{db}=require(a400_0x238239(0xd1)),{Op,ValidationError}=require(a400_0x238239(0xcd)),integrations=require(a400_0x238239(0xde));function respondWithResult(_0x3c5538,_0x17a836){return _0x17a836=_0x17a836||0xc8,function(_0x34a6d7){const _0x26c4ae=a400_0x5384;if(_0x34a6d7)return _0x3c5538[_0x26c4ae(0xf5)](_0x17a836)[_0x26c4ae(0xec)](_0x34a6d7);};}function respondWithFilteredResult(_0x4534a2,_0x49bb89){return function(_0x596e2d){const _0x191be1=a400_0x5384;if(_0x596e2d){const _0x45ca71=_0x596e2d[_0x191be1(0x122)],_0x538521=_0x49bb89[_0x191be1(0xe9)];let _0x4667f2=_0x49bb89[_0x191be1(0xe9)]+_0x49bb89[_0x191be1(0xcc)],_0x8144d6;return _0x4667f2>=_0x45ca71?(_0x4667f2=_0x45ca71,_0x8144d6=0xc8):_0x8144d6=0xce,_0x4534a2['status'](_0x8144d6),_0x4534a2[_0x191be1(0xd6)]('Content-Range',_0x538521+'-'+_0x4667f2+'/'+_0x45ca71)[_0x191be1(0xec)](_0x596e2d);}return null;};}function saveUpdates(_0x33d10f){return function(_0x248ec3){const _0x5032a2=a400_0x5384;if(_0x248ec3)return _0x248ec3[_0x5032a2(0x103)](_0x33d10f)[_0x5032a2(0xee)](function(_0x5a303a){return _0x5a303a;});return null;};}function removeEntity(_0x6b77c3){return function(_0x41d399){const _0x201021=a400_0x5384;if(_0x41d399)return _0x41d399[_0x201021(0xeb)]()[_0x201021(0xee)](function(){const _0x312109=_0x201021;_0x6b77c3['status'](0xcc)[_0x312109(0xf3)]();});};}function handleEntityNotFound(_0x38e41f){return function(_0x2a2a9c){const _0x529da9=a400_0x5384;return!_0x2a2a9c&&_0x38e41f[_0x529da9(0xfd)](0x194),_0x2a2a9c;};}function handleError(_0xbb8abc,_0x22f9a1){return _0x22f9a1=_0x22f9a1||0x1f4,function(_0x22f18d){const _0x2dda83=a400_0x5384;logger[_0x2dda83(0xda)](_0x22f18d['stack']),_0x22f18d[_0x2dda83(0xe5)]&&delete _0x22f18d[_0x2dda83(0xe5)],_0xbb8abc[_0x2dda83(0xf5)](_0x22f9a1)[_0x2dda83(0x115)](_0x22f18d);};}exports[a400_0x238239(0xdc)]=function(_0x2f9d28,_0x3f1d74){const _0x3dad02=a400_0x238239;let _0x525ead={};const _0x3e1a3e={},_0x100d10={'count':0x0,'rows':[]},_0x328b47=_['map'](db[_0x3dad02(0xf6)][_0x3dad02(0xcf)],function(_0x314b60){const _0x9680b9=_0x3dad02;return{'name':_0x314b60[_0x9680b9(0xea)],'type':_0x314b60[_0x9680b9(0xf0)][_0x9680b9(0xf9)]};});_0x3e1a3e[_0x3dad02(0x128)]=_[_0x3dad02(0x118)](_0x328b47,_0x3dad02(0xe5)),_0x3e1a3e['query']=_['keys'](_0x2f9d28['query']),_0x3e1a3e[_0x3dad02(0x10a)]=_[_0x3dad02(0x10b)](_0x3e1a3e[_0x3dad02(0x128)],_0x3e1a3e[_0x3dad02(0x102)]),_0x525ead['attributes']=_[_0x3dad02(0x10b)](_0x3e1a3e['model'],qs[_0x3dad02(0xdd)](_0x2f9d28[_0x3dad02(0x102)][_0x3dad02(0xdd)])),_0x525ead[_0x3dad02(0x107)]=_0x525ead[_0x3dad02(0x107)]['length']?_0x525ead[_0x3dad02(0x107)]:_0x3e1a3e[_0x3dad02(0x128)];typeof _0x2f9d28['query']['nolimit']===_0x3dad02(0xf4)&&(_0x525ead[_0x3dad02(0xcc)]=qs[_0x3dad02(0xcc)](_0x2f9d28[_0x3dad02(0x102)]['limit']),_0x525ead[_0x3dad02(0xe9)]=qs[_0x3dad02(0xe9)](_0x2f9d28[_0x3dad02(0x102)]['offset']));_0x525ead[_0x3dad02(0xd8)]=qs['sort'](_0x2f9d28['query']['sort']),_0x525ead[_0x3dad02(0xe2)]=qs[_0x3dad02(0x10a)](_[_0x3dad02(0xca)](_0x2f9d28[_0x3dad02(0x102)],_0x3e1a3e[_0x3dad02(0x10a)]),_0x328b47);_0x2f9d28[_0x3dad02(0x102)][_0x3dad02(0xe8)]&&(_0x525ead[_0x3dad02(0xe2)]=_['merge'](_0x525ead[_0x3dad02(0xe2)],{[Op['or']]:_[_0x3dad02(0x118)](_0x328b47,function(_0x2de9c9){const _0xd124b1=_0x3dad02;if(_0x2de9c9[_0xd124b1(0xf0)]!==_0xd124b1(0x10c)){const _0x5a48f8={};return _0x5a48f8[_0x2de9c9[_0xd124b1(0xe5)]]={[Op[_0xd124b1(0x11d)]]:'%'+_0x2f9d28[_0xd124b1(0x102)]['filter']+'%'},_0x5a48f8;}})}));_0x525ead=_[_0x3dad02(0x104)]({},_0x525ead,_0x2f9d28[_0x3dad02(0x10d)]);const _0x91f38f={'where':_0x525ead[_0x3dad02(0xe2)]};return db[_0x3dad02(0xf6)][_0x3dad02(0x122)](_0x91f38f)[_0x3dad02(0xee)](function(_0x1e1066){const _0x462121=_0x3dad02;return _0x100d10['count']=_0x1e1066,_0x2f9d28[_0x462121(0x102)][_0x462121(0x10f)]&&(_0x525ead[_0x462121(0x11a)]=[{'all':!![]}]),db[_0x462121(0xf6)]['findAll'](_0x525ead);})[_0x3dad02(0xee)](function(_0x222adc){const _0x47ba87=_0x3dad02;return _0x100d10[_0x47ba87(0x116)]=_0x222adc,_0x100d10;})[_0x3dad02(0xee)](respondWithFilteredResult(_0x3f1d74,_0x525ead))[_0x3dad02(0xdb)](handleError(_0x3f1d74,null));},exports['show']=function(_0x4b4c08,_0x1e8599){const _0x1d6329=a400_0x238239;let _0x15c3ce={'raw':![],'where':{'id':_0x4b4c08['params']['id']}};const _0x58999e={};return _0x58999e[_0x1d6329(0x128)]=_[_0x1d6329(0xe4)](db['ZendeskAccount'][_0x1d6329(0xcf)]),_0x58999e['query']=_[_0x1d6329(0xe4)](_0x4b4c08[_0x1d6329(0x102)]),_0x58999e['filters']=_[_0x1d6329(0x10b)](_0x58999e['model'],_0x58999e[_0x1d6329(0x102)]),_0x15c3ce[_0x1d6329(0x107)]=_[_0x1d6329(0x10b)](_0x58999e[_0x1d6329(0x128)],qs[_0x1d6329(0xdd)](_0x4b4c08['query'][_0x1d6329(0xdd)])),_0x15c3ce[_0x1d6329(0x107)]=_0x15c3ce[_0x1d6329(0x107)][_0x1d6329(0x106)]?_0x15c3ce[_0x1d6329(0x107)]:_0x58999e[_0x1d6329(0x128)],_0x4b4c08['query']['includeAll']&&(_0x15c3ce[_0x1d6329(0x11a)]=[{'all':!![]}]),_0x15c3ce=_['merge']({},_0x15c3ce,_0x4b4c08[_0x1d6329(0x10d)]),db[_0x1d6329(0xf6)][_0x1d6329(0x11b)](_0x15c3ce)['then'](handleEntityNotFound(_0x1e8599,null))['then'](respondWithResult(_0x1e8599,null))[_0x1d6329(0xdb)](handleError(_0x1e8599,null));},exports[a400_0x238239(0xf8)]=function(_0x300b7b,_0x315a90){const _0x34fa79=a400_0x238239;return db[_0x34fa79(0xf6)][_0x34fa79(0xf8)](_0x300b7b['body'],{})['then'](respondWithResult(_0x315a90,0xc9))[_0x34fa79(0xdb)](handleError(_0x315a90,null));},exports[a400_0x238239(0x103)]=function(_0x377ded,_0x46b5af){const _0x474db9=a400_0x238239;return _0x377ded[_0x474db9(0x12a)]['id']&&delete _0x377ded[_0x474db9(0x12a)]['id'],db['ZendeskAccount']['findOne']({'where':{'id':_0x377ded[_0x474db9(0x11c)]['id']}})['then'](handleEntityNotFound(_0x46b5af,null))[_0x474db9(0xee)](saveUpdates(_0x377ded[_0x474db9(0x12a)],null))[_0x474db9(0xee)](respondWithResult(_0x46b5af,null))[_0x474db9(0xdb)](handleError(_0x46b5af,null));},exports['destroy']=function(_0x5ff3a7,_0x4db926){const _0x4c2f46=a400_0x238239;return db[_0x4c2f46(0xf6)]['findOne']({'where':{'id':_0x5ff3a7[_0x4c2f46(0x11c)]['id']}})['then'](handleEntityNotFound(_0x4db926,null))[_0x4c2f46(0xee)](removeEntity(_0x4db926,null))[_0x4c2f46(0xdb)](handleError(_0x4db926,null));},exports[a400_0x238239(0xce)]=function(_0x2031a9,_0x26fed3){const _0x362cad=a400_0x238239;let _0x5ad0e8={};const _0x429809={};let _0x32b6d8,_0x4752b3;return db[_0x362cad(0xf6)]['findOne']({'where':{'id':_0x2031a9[_0x362cad(0x11c)]['id']}})[_0x362cad(0xee)](handleEntityNotFound(_0x26fed3,null))[_0x362cad(0xee)](function(_0x2d6c3b){const _0x304924=_0x362cad;if(_0x2d6c3b)return _0x32b6d8=_0x2d6c3b,_0x429809[_0x304924(0x128)]=_[_0x304924(0xe4)](db[_0x304924(0xd3)][_0x304924(0xcf)]),_0x429809[_0x304924(0x102)]=_[_0x304924(0xe4)](_0x2031a9[_0x304924(0x102)]),_0x429809['filters']=_[_0x304924(0x10b)](_0x429809[_0x304924(0x128)],_0x429809['query']),_0x5ad0e8[_0x304924(0x107)]=_['intersection'](_0x429809[_0x304924(0x128)],qs[_0x304924(0xdd)](_0x2031a9[_0x304924(0x102)]['fields'])),_0x5ad0e8[_0x304924(0x107)]=_0x5ad0e8[_0x304924(0x107)]['length']?_0x5ad0e8[_0x304924(0x107)]:_0x429809[_0x304924(0x128)],_0x5ad0e8['order']=qs[_0x304924(0x125)](_0x2031a9[_0x304924(0x102)][_0x304924(0x125)]),_0x5ad0e8[_0x304924(0xe2)]=qs[_0x304924(0x10a)](_['pick'](_0x2031a9['query'],_0x429809[_0x304924(0x10a)])),_0x2031a9[_0x304924(0x102)][_0x304924(0xe8)]&&(_0x5ad0e8[_0x304924(0xe2)]=_[_0x304924(0x104)](_0x5ad0e8['where'],{[Op['or']]:_[_0x304924(0x118)](_0x5ad0e8[_0x304924(0x107)],function(_0x4fb83d){const _0x271336=_0x304924,_0x2b097b={};return _0x2b097b[_0x4fb83d]={[Op[_0x271336(0x11d)]]:'%'+_0x2031a9[_0x271336(0x102)]['filter']+'%'},_0x2b097b;})})),_0x5ad0e8=_['merge']({},_0x5ad0e8,_0x2031a9['options']),_0x32b6d8[_0x304924(0xce)](_0x5ad0e8);})[_0x362cad(0xee)](function(_0x4c6abf){const _0x3acb2c=_0x362cad;if(_0x4c6abf)return _0x4752b3=_0x4c6abf['length'],typeof _0x2031a9[_0x3acb2c(0x102)][_0x3acb2c(0xe1)]===_0x3acb2c(0xf4)&&(_0x5ad0e8[_0x3acb2c(0xcc)]=qs['limit'](_0x2031a9[_0x3acb2c(0x102)]['limit']),_0x5ad0e8[_0x3acb2c(0xe9)]=qs['offset'](_0x2031a9[_0x3acb2c(0x102)][_0x3acb2c(0xe9)])),_0x32b6d8[_0x3acb2c(0xce)](_0x5ad0e8);})[_0x362cad(0xee)](function(_0x1721d1){if(_0x1721d1)return _0x1721d1?{'count':_0x4752b3,'rows':_0x1721d1}:null;})[_0x362cad(0xee)](respondWithResult(_0x26fed3,null))[_0x362cad(0xdb)](handleError(_0x26fed3,null));},exports[a400_0x238239(0x10e)]=function(_0x4bd56a,_0x479e34){const _0x5947a9=a400_0x238239;return _0x4bd56a[_0x5947a9(0x12a)]['id']&&delete _0x4bd56a[_0x5947a9(0x12a)]['id'],db[_0x5947a9(0xf6)][_0x5947a9(0x11b)]({'where':{'id':_0x4bd56a[_0x5947a9(0x11c)]['id']}})[_0x5947a9(0xee)](handleEntityNotFound(_0x479e34,null))[_0x5947a9(0xee)](function(_0x5d7d2e){const _0x290494=_0x5947a9;if(_0x5d7d2e)return _0x4bd56a['body']['AccountId']=_0x5d7d2e['id'],_0x4bd56a[_0x290494(0x12a)]['Subjects']=integrations[_0x290494(0x105)](_0x4bd56a[_0x290494(0x12a)]['channel'],_0x4bd56a[_0x290494(0x12a)][_0x290494(0xf0)]),_0x4bd56a['body']['Descriptions']=integrations[_0x290494(0x113)](_0x4bd56a['body']['channel'],_0x4bd56a[_0x290494(0x12a)][_0x290494(0xf0)]),db[_0x290494(0xd3)]['create'](_0x4bd56a[_0x290494(0x12a)],{'include':[{'model':db[_0x290494(0xd4)],'as':_0x290494(0x100)},{'model':db[_0x290494(0xd4)],'as':_0x290494(0xdf)}]});return null;})['then'](respondWithResult(_0x479e34,null))[_0x5947a9(0xdb)](handleError(_0x479e34,null));},exports[a400_0x238239(0xf2)]=function(_0x36edf4,_0x6434c1){const _0x345444=a400_0x238239;let _0xb8e6ad='';return db[_0x345444(0xf6)][_0x345444(0x11b)]({'where':{'id':_0x36edf4['params']['id']},'attributes':['id',_0x345444(0xd2),_0x345444(0x120),_0x345444(0x123),'authType',_0x345444(0x11f)]})[_0x345444(0xee)](handleEntityNotFound(_0x6434c1,null))[_0x345444(0xee)](function(_0x32c04f){const _0x2956a9=_0x345444;if(_0x32c04f){_0xb8e6ad=_0x32c04f['remoteUri'];const _0x1ba8aa=_0xb8e6ad[_0x2956a9(0x121)](-0x1);_0x1ba8aa==='/'&&(_0xb8e6ad=_0xb8e6ad[_0x2956a9(0xfb)](0x0,_0xb8e6ad[_0x2956a9(0x129)](_0x1ba8aa)));const _0x380399={'method':_0x2956a9(0x108),'uri':util[_0x2956a9(0xd5)](_0x2956a9(0xfa),_0xb8e6ad,_0x2956a9(0x111)),'json':!![]};switch(_0x32c04f[_0x2956a9(0x109)]){case _0x2956a9(0x120):_0x380399[_0x2956a9(0xcb)]={'Authorization':util[_0x2956a9(0xd5)](_0x2956a9(0xfc),Buffer[_0x2956a9(0xe3)](util[_0x2956a9(0xd5)](_0x2956a9(0xd0),_0x32c04f[_0x2956a9(0xd2)],_0x32c04f[_0x2956a9(0x120)]))[_0x2956a9(0xef)]('base64'))};break;case'token':_0x380399['headers']={'Authorization':util['format'](_0x2956a9(0xfc),Buffer[_0x2956a9(0xe3)](util[_0x2956a9(0xd5)](_0x2956a9(0xc9),_0x32c04f[_0x2956a9(0xd2)],_0x32c04f['token']))[_0x2956a9(0xef)](_0x2956a9(0xd9)))};break;default:throw new ValidationError(_0x2956a9(0x112));}return rp(_0x380399);}})[_0x345444(0xee)](function(_0x5a63e8){const _0x251a7b=_0x345444;if(_0x5a63e8){const _0x2c45e4=[_0x251a7b(0xf7),_0x251a7b(0xe7),_0x251a7b(0xff),'assignee'];return _['remove'](_0x5a63e8[_0x251a7b(0x111)],function(_0x55d4c2){const _0x2b3f1f=_0x251a7b;return _0x2c45e4[_0x2b3f1f(0x101)](_0x55d4c2[_0x2b3f1f(0xf0)]);}),{'count':_0x5a63e8[_0x251a7b(0x111)][_0x251a7b(0x106)],'rows':_[_0x251a7b(0x118)](_0x5a63e8['ticket_fields'],function(_0x3ff6ab){const _0xde8915=_0x251a7b;return{'id':_0x3ff6ab['id'],'name':_0x3ff6ab[_0xde8915(0x126)]>0x7?_0x3ff6ab[_0xde8915(0x127)]:_0x3ff6ab[_0xde8915(0xf0)],'custom':_0x3ff6ab[_0xde8915(0x126)]>0x7?!![]:![],'options':_0x3ff6ab['system_field_options']?_0x3ff6ab[_0xde8915(0x119)]:_0x3ff6ab[_0xde8915(0xd7)]?_0x3ff6ab['custom_field_options']:[]};})};}})[_0x345444(0xee)](respondWithResult(_0x6434c1,null))['catch'](function(_0x1a3c92){const _0x35f63e=_0x345444;let _0xe3ee93=_0x36edf4[_0x35f63e(0x102)][_0x35f63e(0x110)]?0x1f4:_0x1a3c92[_0x35f63e(0x117)]||0x1f4;logger[_0x35f63e(0xda)](_0x35f63e(0xed),'getFields',_0xe3ee93,JSON[_0x35f63e(0xe0)](_0x1a3c92)),delete _0x1a3c92['name'],_0xe3ee93===0x191&&(_0xe3ee93=0x190),_0x6434c1[_0x35f63e(0xf5)](_0xe3ee93)[_0x35f63e(0x115)](_0x36edf4[_0x35f63e(0x102)]['test']?{'message':_0x35f63e(0xf1),'statusCode':_0x1a3c92['statusCode']}:_0x1a3c92);});}; \ No newline at end of file diff --git a/server/api/intZendeskAccount/intZendeskAccount.model.js b/server/api/intZendeskAccount/intZendeskAccount.model.js index 312b631..ee0e2d0 100644 --- a/server/api/intZendeskAccount/intZendeskAccount.model.js +++ b/server/api/intZendeskAccount/intZendeskAccount.model.js @@ -1 +1 @@ -const a334_0x4025=['exports','define','./intZendeskAccount.attributes','ZendeskAccount'];(function(_0x1ad1ab,_0x402566){const _0x2fb4bd=function(_0x5d0cd1){while(--_0x5d0cd1){_0x1ad1ab['push'](_0x1ad1ab['shift']());}};_0x2fb4bd(++_0x402566);}(a334_0x4025,0x176));const a334_0x2fb4=function(_0x1ad1ab,_0x402566){_0x1ad1ab=_0x1ad1ab-0x0;let _0x2fb4bd=a334_0x4025[_0x1ad1ab];return _0x2fb4bd;};const _0x38c291=a334_0x2fb4;'use strict';const attributes=require(_0x38c291('0x0'));module[_0x38c291('0x2')]=function(_0x5d0cd1){const _0x5d0b04=_0x38c291,_0x349885=_0x5d0cd1[_0x5d0b04('0x3')](_0x5d0b04('0x1'),attributes,{'tableName':'int_zendesk_accounts','paranoid':![],'indexes':[],'timestamps':!![]});return _0x349885;}; \ No newline at end of file +const a401_0x196d=['ZendeskAccount','function','init','./intZendeskAccount.attributes','sequelize'];(function(_0x458d87,_0x32dd8c){const _0x196dd1=function(_0x5e9903){while(--_0x5e9903){_0x458d87['push'](_0x458d87['shift']());}};_0x196dd1(++_0x32dd8c);}(a401_0x196d,0x74));const a401_0x5e99=function(_0x458d87,_0x32dd8c){_0x458d87=_0x458d87-0xdb;let _0x196dd1=a401_0x196d[_0x458d87];return _0x196dd1;};const a401_0x491386=a401_0x5e99;'use strict';const {Model}=require(a401_0x491386(0xde)),{attributes}=require(a401_0x491386(0xdd)),{options}=require('./intZendeskAccount.options');class ZendeskAccount extends Model{}function init(_0x41e054,_0x5c4adc){const _0x1a4ada=a401_0x491386,_0x2f62f0=options(_0x41e054),_0xbf59e3=typeof _0x5c4adc===_0x1a4ada(0xdb)?_0x5c4adc(_0x2f62f0):_0x2f62f0;return ZendeskAccount[_0x1a4ada(0xdc)](attributes,_0xbf59e3),ZendeskAccount;}module['exports'][a401_0x491386(0xdf)]=ZendeskAccount,module['exports'][a401_0x491386(0xdc)]=init; \ No newline at end of file diff --git a/server/api/intZendeskAccount/intZendeskAccount.options.js b/server/api/intZendeskAccount/intZendeskAccount.options.js new file mode 100644 index 0000000..1a6dbd5 --- /dev/null +++ b/server/api/intZendeskAccount/intZendeskAccount.options.js @@ -0,0 +1 @@ +var a402_0x4fd2=['options','int_zendesk_accounts','exports'];(function(_0x304589,_0x40bbe6){var _0x4fd229=function(_0x288570){while(--_0x288570){_0x304589['push'](_0x304589['shift']());}};_0x4fd229(++_0x40bbe6);}(a402_0x4fd2,0xda));var a402_0x2885=function(_0x304589,_0x40bbe6){_0x304589=_0x304589-0xe0;var _0x4fd229=a402_0x4fd2[_0x304589];return _0x4fd229;};var a402_0x17f7fb=a402_0x2885;function options(_0x4c0a68){var _0x1a0e0e=a402_0x2885;return{'sequelize':_0x4c0a68,'tableName':_0x1a0e0e(0xe2),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a402_0x17f7fb(0xe0)][a402_0x17f7fb(0xe1)]=options; \ No newline at end of file diff --git a/server/api/intZendeskAccount/intZendeskAccount.rpc.js b/server/api/intZendeskAccount/intZendeskAccount.rpc.js index 3443813..85c06d5 100644 --- a/server/api/intZendeskAccount/intZendeskAccount.rpc.js +++ b/server/api/intZendeskAccount/intZendeskAccount.rpc.js @@ -1 +1 @@ -const a335_0x2798=['include','message','model','error','map','attributes','findAll','info','then','GetZendeskAccount','catch','lodash','stringify','ShowZendeskAccount','../../config/logger','raw','../../mysqldb','options','where','debug'];(function(_0xc0dd8b,_0x27980d){const _0xed954f=function(_0x48c864){while(--_0x48c864){_0xc0dd8b['push'](_0xc0dd8b['shift']());}};_0xed954f(++_0x27980d);}(a335_0x2798,0x13f));const a335_0xed95=function(_0xc0dd8b,_0x27980d){_0xc0dd8b=_0xc0dd8b-0x0;let _0xed954f=a335_0x2798[_0xc0dd8b];return _0xed954f;};const _0x4333c9=a335_0xed95;'use strict';const _=require(_0x4333c9('0xc')),db=require(_0x4333c9('0x11'))['db'],logger=require(_0x4333c9('0xf'))('rpc');exports[_0x4333c9('0xa')]=function(_0x48c864){const _0x5f1a02=this;return new Promise(function(_0x1c16c6,_0x45fb6d){const _0x7b6a2f=a335_0xed95;return db['ZendeskAccount'][_0x7b6a2f('0x7')]({'raw':_0x48c864[_0x7b6a2f('0x12')]?_0x48c864[_0x7b6a2f('0x12')][_0x7b6a2f('0x10')]===undefined?!![]:![]:!![],'where':_0x48c864[_0x7b6a2f('0x12')]?_0x48c864['options'][_0x7b6a2f('0x13')]||null:null,'attributes':_0x48c864[_0x7b6a2f('0x12')]?_0x48c864[_0x7b6a2f('0x12')][_0x7b6a2f('0x6')]||null:null,'limit':_0x48c864['options']?_0x48c864[_0x7b6a2f('0x12')]['limit']||null:null,'include':_0x48c864[_0x7b6a2f('0x12')]?_0x48c864[_0x7b6a2f('0x12')][_0x7b6a2f('0x1')]?_[_0x7b6a2f('0x5')](_0x48c864[_0x7b6a2f('0x12')][_0x7b6a2f('0x1')],function(_0x2f56ef){const _0x19b337=_0x7b6a2f;return{'model':db[_0x2f56ef[_0x19b337('0x3')]],'as':_0x2f56ef['as'],'attributes':_0x2f56ef[_0x19b337('0x6')],'include':_0x2f56ef[_0x19b337('0x1')]?_[_0x19b337('0x5')](_0x2f56ef[_0x19b337('0x1')],function(_0xa2625a){const _0x5be019=_0x19b337;return{'model':db[_0xa2625a[_0x5be019('0x3')]],'as':_0xa2625a['as'],'attributes':_0xa2625a[_0x5be019('0x6')],'include':_0xa2625a[_0x5be019('0x1')]?_[_0x5be019('0x5')](_0xa2625a[_0x5be019('0x1')],function(_0x4056c8){const _0x529d19=_0x5be019;return{'model':db[_0x4056c8[_0x529d19('0x3')]],'as':_0x4056c8['as'],'attributes':_0x4056c8['attributes']};}):[]};}):[]};}):[]:[]})[_0x7b6a2f('0x9')](function(_0x2483db){const _0x474c8f=_0x7b6a2f;logger[_0x474c8f('0x8')](_0x474c8f('0xa'),_0x48c864),logger[_0x474c8f('0x0')](_0x474c8f('0xa'),_0x48c864,JSON[_0x474c8f('0xd')](_0x2483db)),_0x1c16c6(_0x2483db);})[_0x7b6a2f('0xb')](function(_0x3943e5){const _0x2e1c5d=_0x7b6a2f;logger[_0x2e1c5d('0x4')]('GetZendeskAccount',_0x3943e5[_0x2e1c5d('0x2')],_0x48c864),_0x45fb6d(_0x5f1a02[_0x2e1c5d('0x4')](0x1f4,_0x3943e5[_0x2e1c5d('0x2')]));});});},exports[_0x4333c9('0xe')]=function(_0x3368cb){const _0x382b46=this;return new Promise(function(_0x2745ba,_0xd51887){const _0x13b587=a335_0xed95;return db['ZendeskAccount']['findOne']({'raw':_0x3368cb[_0x13b587('0x12')]?_0x3368cb['options'][_0x13b587('0x10')]===undefined?!![]:![]:!![],'where':_0x3368cb['options']?_0x3368cb[_0x13b587('0x12')]['where']||null:null,'attributes':_0x3368cb[_0x13b587('0x12')]?_0x3368cb[_0x13b587('0x12')][_0x13b587('0x6')]||null:null,'include':_0x3368cb['options']?_0x3368cb[_0x13b587('0x12')][_0x13b587('0x1')]?_[_0x13b587('0x5')](_0x3368cb['options']['include'],function(_0x4a9435){const _0x2e07b4=_0x13b587;return{'model':db[_0x4a9435[_0x2e07b4('0x3')]],'as':_0x4a9435['as'],'attributes':_0x4a9435[_0x2e07b4('0x6')],'include':_0x4a9435['include']?_[_0x2e07b4('0x5')](_0x4a9435[_0x2e07b4('0x1')],function(_0x1d958c){const _0x15b5db=_0x2e07b4;return{'model':db[_0x1d958c[_0x15b5db('0x3')]],'as':_0x1d958c['as'],'attributes':_0x1d958c[_0x15b5db('0x6')],'include':_0x1d958c[_0x15b5db('0x1')]?_[_0x15b5db('0x5')](_0x1d958c[_0x15b5db('0x1')],function(_0x3b7f4a){const _0x107bf1=_0x15b5db;return{'model':db[_0x3b7f4a[_0x107bf1('0x3')]],'as':_0x3b7f4a['as'],'attributes':_0x3b7f4a[_0x107bf1('0x6')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x41ea54){const _0x46215f=_0x13b587;logger['info'](_0x46215f('0xe'),_0x3368cb),logger['debug']('ShowZendeskAccount',_0x3368cb,JSON[_0x46215f('0xd')](_0x41ea54)),_0x2745ba(_0x41ea54);})[_0x13b587('0xb')](function(_0x1382e5){const _0x45e9d4=_0x13b587;logger[_0x45e9d4('0x4')](_0x45e9d4('0xe'),_0x1382e5['message'],_0x3368cb),_0xd51887(_0x382b46[_0x45e9d4('0x4')](0x1f4,_0x1382e5[_0x45e9d4('0x2')]));});});}; \ No newline at end of file +const a403_0x2f8c=['then','limit','model','info','message','stringify','where','attributes','findOne','rpc','raw','../../config/logger','ShowZendeskAccount','include','map','options','error','catch','findAll','ZendeskAccount','GetZendeskAccount','../../mysqldb','debug'];(function(_0x4f3b1a,_0x48e931){const _0x2f8ceb=function(_0x459d0a){while(--_0x459d0a){_0x4f3b1a['push'](_0x4f3b1a['shift']());}};_0x2f8ceb(++_0x48e931);}(a403_0x2f8c,0x1d8));const a403_0x459d=function(_0x4f3b1a,_0x48e931){_0x4f3b1a=_0x4f3b1a-0x93;let _0x2f8ceb=a403_0x2f8c[_0x4f3b1a];return _0x2f8ceb;};const a403_0x159e33=a403_0x459d;'use strict';const _=require('lodash'),db=require(a403_0x159e33(0x9c))['db'],logger=require(a403_0x159e33(0xa9))(a403_0x159e33(0xa7));exports[a403_0x159e33(0x9b)]=function(_0x1b131b){const _0x16eaf5=this;return new Promise(function(_0x632bee,_0x796901){const _0x3d3734=a403_0x459d;return db[_0x3d3734(0x9a)][_0x3d3734(0x99)]({'raw':_0x1b131b[_0x3d3734(0x96)]?_0x1b131b[_0x3d3734(0x96)]['raw']===undefined?!![]:![]:!![],'where':_0x1b131b[_0x3d3734(0x96)]?_0x1b131b[_0x3d3734(0x96)][_0x3d3734(0xa4)]||null:null,'attributes':_0x1b131b[_0x3d3734(0x96)]?_0x1b131b[_0x3d3734(0x96)][_0x3d3734(0xa5)]||null:null,'limit':_0x1b131b['options']?_0x1b131b[_0x3d3734(0x96)][_0x3d3734(0x9f)]||null:null,'include':_0x1b131b['options']?_0x1b131b[_0x3d3734(0x96)][_0x3d3734(0x94)]?_[_0x3d3734(0x95)](_0x1b131b[_0x3d3734(0x96)][_0x3d3734(0x94)],function(_0x5812c0){const _0x524b00=_0x3d3734;return{'model':db[_0x5812c0[_0x524b00(0xa0)]],'as':_0x5812c0['as'],'attributes':_0x5812c0[_0x524b00(0xa5)],'include':_0x5812c0[_0x524b00(0x94)]?_[_0x524b00(0x95)](_0x5812c0[_0x524b00(0x94)],function(_0xacc121){const _0x497dda=_0x524b00;return{'model':db[_0xacc121[_0x497dda(0xa0)]],'as':_0xacc121['as'],'attributes':_0xacc121[_0x497dda(0xa5)],'include':_0xacc121[_0x497dda(0x94)]?_['map'](_0xacc121[_0x497dda(0x94)],function(_0x136554){return{'model':db[_0x136554['model']],'as':_0x136554['as'],'attributes':_0x136554['attributes']};}):[]};}):[]};}):[]:[]})[_0x3d3734(0x9e)](function(_0x4be958){const _0x1243b7=_0x3d3734;logger[_0x1243b7(0xa1)](_0x1243b7(0x9b),_0x1b131b),logger['debug'](_0x1243b7(0x9b),_0x1b131b,JSON[_0x1243b7(0xa3)](_0x4be958)),_0x632bee(_0x4be958);})[_0x3d3734(0x98)](function(_0x5945e2){const _0x5e1037=_0x3d3734;logger[_0x5e1037(0x97)](_0x5e1037(0x9b),_0x5945e2[_0x5e1037(0xa2)],_0x1b131b),_0x796901(_0x16eaf5[_0x5e1037(0x97)](0x1f4,_0x5945e2['message']));});});},exports[a403_0x159e33(0x93)]=function(_0x42927b){const _0x401ca6=this;return new Promise(function(_0x530c81,_0x5ced83){const _0x1be5b8=a403_0x459d;return db['ZendeskAccount'][_0x1be5b8(0xa6)]({'raw':_0x42927b[_0x1be5b8(0x96)]?_0x42927b['options'][_0x1be5b8(0xa8)]===undefined?!![]:![]:!![],'where':_0x42927b[_0x1be5b8(0x96)]?_0x42927b[_0x1be5b8(0x96)][_0x1be5b8(0xa4)]||null:null,'attributes':_0x42927b['options']?_0x42927b['options'][_0x1be5b8(0xa5)]||null:null,'include':_0x42927b[_0x1be5b8(0x96)]?_0x42927b['options'][_0x1be5b8(0x94)]?_[_0x1be5b8(0x95)](_0x42927b[_0x1be5b8(0x96)][_0x1be5b8(0x94)],function(_0xfdac15){const _0x56787b=_0x1be5b8;return{'model':db[_0xfdac15['model']],'as':_0xfdac15['as'],'attributes':_0xfdac15[_0x56787b(0xa5)],'include':_0xfdac15[_0x56787b(0x94)]?_[_0x56787b(0x95)](_0xfdac15[_0x56787b(0x94)],function(_0x27a2bd){const _0xf25fe9=_0x56787b;return{'model':db[_0x27a2bd[_0xf25fe9(0xa0)]],'as':_0x27a2bd['as'],'attributes':_0x27a2bd['attributes'],'include':_0x27a2bd[_0xf25fe9(0x94)]?_[_0xf25fe9(0x95)](_0x27a2bd[_0xf25fe9(0x94)],function(_0x13d282){const _0x4ec9e2=_0xf25fe9;return{'model':db[_0x13d282['model']],'as':_0x13d282['as'],'attributes':_0x13d282[_0x4ec9e2(0xa5)]};}):[]};}):[]};}):[]:[]})[_0x1be5b8(0x9e)](function(_0x4d0b04){const _0x524fcb=_0x1be5b8;logger[_0x524fcb(0xa1)](_0x524fcb(0x93),_0x42927b),logger[_0x524fcb(0x9d)](_0x524fcb(0x93),_0x42927b,JSON[_0x524fcb(0xa3)](_0x4d0b04)),_0x530c81(_0x4d0b04);})[_0x1be5b8(0x98)](function(_0x5b77a3){const _0x45ebce=_0x1be5b8;logger[_0x45ebce(0x97)](_0x45ebce(0x93),_0x5b77a3[_0x45ebce(0xa2)],_0x42927b),_0x5ced83(_0x401ca6[_0x45ebce(0x97)](0x1f4,_0x5b77a3[_0x45ebce(0xa2)]));});});}; \ No newline at end of file diff --git a/server/api/intZendeskConfiguration/index.js b/server/api/intZendeskConfiguration/index.js index 76b3c51..7b00bbb 100644 --- a/server/api/intZendeskConfiguration/index.js +++ b/server/api/intZendeskConfiguration/index.js @@ -1 +1 @@ -const a336_0x558d=['getTags','../../components/auth/service','getDescriptions','update','put','Router','/:id/fields','index','show','./intZendeskConfiguration.controller','/:id/tags','setTags','post','isAuthenticated','exports','delete','get','/:id','getFields','/:id/subjects','getSubjects','express'];(function(_0x213c8d,_0x558db8){const _0x43c18b=function(_0xcb5f70){while(--_0xcb5f70){_0x213c8d['push'](_0x213c8d['shift']());}};_0x43c18b(++_0x558db8);}(a336_0x558d,0x1b6));const a336_0x43c1=function(_0x213c8d,_0x558db8){_0x213c8d=_0x213c8d-0x0;let _0x43c18b=a336_0x558d[_0x213c8d];return _0x43c18b;};const _0x94fcfc=a336_0x43c1;'use strict';const express=require(_0x94fcfc('0x1')),router=express[_0x94fcfc('0x7')](),auth=require(_0x94fcfc('0x3')),controller=require(_0x94fcfc('0xb'));router['get']('/',auth[_0x94fcfc('0xf')](),controller[_0x94fcfc('0x9')]),router['get']('/:id',auth['isAuthenticated'](),controller[_0x94fcfc('0xa')]),router['get'](_0x94fcfc('0x8'),auth['isAuthenticated'](),controller[_0x94fcfc('0x14')]),router[_0x94fcfc('0x12')](_0x94fcfc('0x15'),auth[_0x94fcfc('0xf')](),controller[_0x94fcfc('0x0')]),router[_0x94fcfc('0x12')]('/:id/descriptions',auth[_0x94fcfc('0xf')](),controller[_0x94fcfc('0x4')]),router[_0x94fcfc('0x12')](_0x94fcfc('0xc'),auth[_0x94fcfc('0xf')](),controller[_0x94fcfc('0x2')]),router[_0x94fcfc('0xe')]('/',auth['isAuthenticated'](),controller['create']),router['post']('/:id/tags',auth[_0x94fcfc('0xf')](),controller[_0x94fcfc('0xd')]),router[_0x94fcfc('0x6')](_0x94fcfc('0x13'),auth[_0x94fcfc('0xf')](),controller[_0x94fcfc('0x5')]),router[_0x94fcfc('0x11')](_0x94fcfc('0x13'),auth['isAuthenticated'](),controller['destroy']),module[_0x94fcfc('0x10')]=router; \ No newline at end of file +const a404_0x2ceb=['getDescriptions','get','index','getTags','/:id/subjects','setTags','post','Router','../../components/auth/service','getFields','show','/:id/descriptions','update','/:id','create','/:id/fields','isAuthenticated','destroy','exports','/:id/tags','./intZendeskConfiguration.controller','getSubjects','delete','express'];(function(_0xcde431,_0x2865a2){const _0x2cebb6=function(_0x13b5f9){while(--_0x13b5f9){_0xcde431['push'](_0xcde431['shift']());}};_0x2cebb6(++_0x2865a2);}(a404_0x2ceb,0x173));const a404_0x13b5=function(_0xcde431,_0x2865a2){_0xcde431=_0xcde431-0x170;let _0x2cebb6=a404_0x2ceb[_0xcde431];return _0x2cebb6;};const a404_0xddad97=a404_0x13b5;'use strict';const express=require(a404_0xddad97(0x17c)),router=express[a404_0xddad97(0x184)](),auth=require(a404_0xddad97(0x185)),controller=require(a404_0xddad97(0x179));router['get']('/',auth[a404_0xddad97(0x175)](),controller[a404_0xddad97(0x17f)]),router[a404_0xddad97(0x17e)](a404_0xddad97(0x172),auth[a404_0xddad97(0x175)](),controller[a404_0xddad97(0x187)]),router[a404_0xddad97(0x17e)](a404_0xddad97(0x174),auth[a404_0xddad97(0x175)](),controller[a404_0xddad97(0x186)]),router['get'](a404_0xddad97(0x181),auth[a404_0xddad97(0x175)](),controller[a404_0xddad97(0x17a)]),router[a404_0xddad97(0x17e)](a404_0xddad97(0x170),auth[a404_0xddad97(0x175)](),controller[a404_0xddad97(0x17d)]),router[a404_0xddad97(0x17e)](a404_0xddad97(0x178),auth[a404_0xddad97(0x175)](),controller[a404_0xddad97(0x180)]),router[a404_0xddad97(0x183)]('/',auth[a404_0xddad97(0x175)](),controller[a404_0xddad97(0x173)]),router[a404_0xddad97(0x183)](a404_0xddad97(0x178),auth[a404_0xddad97(0x175)](),controller[a404_0xddad97(0x182)]),router['put']('/:id',auth[a404_0xddad97(0x175)](),controller[a404_0xddad97(0x171)]),router[a404_0xddad97(0x17b)](a404_0xddad97(0x172),auth[a404_0xddad97(0x175)](),controller[a404_0xddad97(0x176)]),module[a404_0xddad97(0x177)]=router; \ No newline at end of file diff --git a/server/api/intZendeskConfiguration/intZendeskConfiguration.attributes.js b/server/api/intZendeskConfiguration/intZendeskConfiguration.attributes.js index 3affbf4..27df094 100644 --- a/server/api/intZendeskConfiguration/intZendeskConfiguration.attributes.js +++ b/server/api/intZendeskConfiguration/intZendeskConfiguration.attributes.js @@ -1 +1 @@ -const a337_0x4f05=['exports','STRING','sequelize'];(function(_0x16be59,_0x4f05e9){const _0x3c1bc=function(_0x2ece0e){while(--_0x2ece0e){_0x16be59['push'](_0x16be59['shift']());}};_0x3c1bc(++_0x4f05e9);}(a337_0x4f05,0x16c));const a337_0x3c1b=function(_0x16be59,_0x4f05e9){_0x16be59=_0x16be59-0x0;let _0x3c1bc=a337_0x4f05[_0x16be59];return _0x3c1bc;};const _0x201000=a337_0x3c1b;'use strict';const Sequelize=require(_0x201000('0x1'));module[_0x201000('0x2')]={'name':{'type':Sequelize[_0x201000('0x0')]},'description':{'type':Sequelize[_0x201000('0x0')]}}; \ No newline at end of file +const a405_0x3178=['attributes','sequelize','exports','STRING'];(function(_0x5725fd,_0x1e45e5){const _0x3178a3=function(_0x26ceee){while(--_0x26ceee){_0x5725fd['push'](_0x5725fd['shift']());}};_0x3178a3(++_0x1e45e5);}(a405_0x3178,0x18a));const a405_0x26ce=function(_0x5725fd,_0x1e45e5){_0x5725fd=_0x5725fd-0x13b;let _0x3178a3=a405_0x3178[_0x5725fd];return _0x3178a3;};const a405_0x5c59ff=a405_0x26ce;'use strict';const {DataTypes}=require(a405_0x5c59ff(0x13e)),attributes={'name':{'type':DataTypes[a405_0x5c59ff(0x13c)]},'description':{'type':DataTypes[a405_0x5c59ff(0x13c)]}};module[a405_0x5c59ff(0x13b)][a405_0x5c59ff(0x13d)]=attributes; \ No newline at end of file diff --git a/server/api/intZendeskConfiguration/intZendeskConfiguration.controller.js b/server/api/intZendeskConfiguration/intZendeskConfiguration.controller.js index d16e4d2..234cf5b 100644 --- a/server/api/intZendeskConfiguration/intZendeskConfiguration.controller.js +++ b/server/api/intZendeskConfiguration/intZendeskConfiguration.controller.js @@ -1 +1 @@ -const a338_0x5ba2=['Tag','length','status','end','model','filters','then','getFields','offset','findOne','filter','nolimit','../../mysqldb','fields','../../components/parsers/qs','create','api','keys','index','count','sort','attributes','type','ZendeskField','send','setTags','intersection','rows','update','limit','getDescriptions','json','getSubjects','body','catch','map','Content-Range','query','show','undefined','params','destroy','includeAll','lodash','order','getTags','fieldName','merge','rawAttributes','where','ZendeskConfiguration','ids','options','stack','name','like','VIRTUAL','set','findAll','pick'];(function(_0x9767fc,_0x5ba252){const _0x45351b=function(_0x1a9574){while(--_0x1a9574){_0x9767fc['push'](_0x9767fc['shift']());}};_0x45351b(++_0x5ba252);}(a338_0x5ba2,0x106));const a338_0x4535=function(_0x9767fc,_0x5ba252){_0x9767fc=_0x9767fc-0x0;let _0x45351b=a338_0x5ba2[_0x9767fc];return _0x45351b;};const _0x370833=a338_0x4535;'use strict';const _=require(_0x370833('0x15')),qs=require(_0x370833('0x34')),logger=require('../../config/logger')(_0x370833('0x36')),db=require(_0x370833('0x32'))['db'],{Op}=require('sequelize');function respondWithResult(_0x1a9574,_0x40a3ef){return _0x40a3ef=_0x40a3ef||0xc8,function(_0x166936){const _0x28eaba=a338_0x4535;if(_0x166936)return _0x1a9574['status'](_0x40a3ef)[_0x28eaba('0x9')](_0x166936);};}function respondWithFilteredResult(_0x3819ef,_0xa48351){return function(_0x479121){const _0x2ac872=a338_0x4535;if(_0x479121){const _0x22aac0=_0x479121[_0x2ac872('0x39')],_0x1fd3d7=_0xa48351[_0x2ac872('0x2e')];let _0x4753de=_0xa48351['offset']+_0xa48351[_0x2ac872('0x7')],_0x10d092;return _0x4753de>=_0x22aac0?(_0x4753de=_0x22aac0,_0x10d092=0xc8):_0x10d092=0xce,_0x3819ef['status'](_0x10d092),_0x3819ef[_0x2ac872('0x23')](_0x2ac872('0xe'),_0x1fd3d7+'-'+_0x4753de+'/'+_0x22aac0)[_0x2ac872('0x9')](_0x479121);}return null;};}function saveUpdates(_0x2a922f){return function(_0x492a77){const _0xb0f3df=a338_0x4535;if(_0x492a77)return _0x492a77[_0xb0f3df('0x6')](_0x2a922f)['then'](function(_0x35af63){return _0x35af63;});return null;};}function removeEntity(_0x20931f){return function(_0x27deb5){const _0x58f306=a338_0x4535;if(_0x27deb5)return _0x27deb5[_0x58f306('0x13')]()['then'](function(){const _0x55bc77=_0x58f306;_0x20931f[_0x55bc77('0x28')](0xcc)[_0x55bc77('0x29')]();});};}function handleEntityNotFound(_0x34cb19){return function(_0xc820c4){return!_0xc820c4&&_0x34cb19['sendStatus'](0x194),_0xc820c4;};}function handleError(_0x1c4918,_0x520808){return _0x520808=_0x520808||0x1f4,function(_0xb6fa3f){const _0x2d1e84=a338_0x4535;logger['error'](_0xb6fa3f[_0x2d1e84('0x1f')]),_0xb6fa3f[_0x2d1e84('0x20')]&&delete _0xb6fa3f[_0x2d1e84('0x20')],_0x1c4918['status'](_0x520808)[_0x2d1e84('0x2')](_0xb6fa3f);};}exports[_0x370833('0x38')]=function(_0x220c53,_0x1b5bd2){const _0x4c39a7=_0x370833;let _0xd62367={};const _0x5b062a={},_0x2b58db={'count':0x0,'rows':[]},_0x44bc45=_[_0x4c39a7('0xd')](db[_0x4c39a7('0x1c')][_0x4c39a7('0x1a')],function(_0x2b29b8){const _0x37acca=_0x4c39a7;return{'name':_0x2b29b8[_0x37acca('0x18')],'type':_0x2b29b8[_0x37acca('0x0')]['key']};});_0x5b062a[_0x4c39a7('0x2a')]=_['map'](_0x44bc45,_0x4c39a7('0x20')),_0x5b062a[_0x4c39a7('0xf')]=_[_0x4c39a7('0x37')](_0x220c53[_0x4c39a7('0xf')]),_0x5b062a[_0x4c39a7('0x2b')]=_[_0x4c39a7('0x4')](_0x5b062a['model'],_0x5b062a['query']),_0xd62367['attributes']=_[_0x4c39a7('0x4')](_0x5b062a[_0x4c39a7('0x2a')],qs[_0x4c39a7('0x33')](_0x220c53[_0x4c39a7('0xf')][_0x4c39a7('0x33')])),_0xd62367[_0x4c39a7('0x3b')]=_0xd62367[_0x4c39a7('0x3b')][_0x4c39a7('0x27')]?_0xd62367[_0x4c39a7('0x3b')]:_0x5b062a[_0x4c39a7('0x2a')];typeof _0x220c53[_0x4c39a7('0xf')][_0x4c39a7('0x31')]==='undefined'&&(_0xd62367['limit']=qs[_0x4c39a7('0x7')](_0x220c53[_0x4c39a7('0xf')][_0x4c39a7('0x7')]),_0xd62367[_0x4c39a7('0x2e')]=qs[_0x4c39a7('0x2e')](_0x220c53['query'][_0x4c39a7('0x2e')]));_0xd62367[_0x4c39a7('0x16')]=qs[_0x4c39a7('0x3a')](_0x220c53[_0x4c39a7('0xf')][_0x4c39a7('0x3a')]),_0xd62367[_0x4c39a7('0x1b')]=qs[_0x4c39a7('0x2b')](_[_0x4c39a7('0x25')](_0x220c53[_0x4c39a7('0xf')],_0x5b062a['filters']),_0x44bc45);_0x220c53[_0x4c39a7('0xf')][_0x4c39a7('0x30')]&&(_0xd62367[_0x4c39a7('0x1b')]=_['merge'](_0xd62367[_0x4c39a7('0x1b')],{[Op['or']]:_['map'](_0x44bc45,function(_0x439454){const _0x39daec=_0x4c39a7;if(_0x439454[_0x39daec('0x0')]!==_0x39daec('0x22')){const _0x223d8f={};return _0x223d8f[_0x439454[_0x39daec('0x20')]]={[Op[_0x39daec('0x21')]]:'%'+_0x220c53[_0x39daec('0xf')]['filter']+'%'},_0x223d8f;}})}));_0xd62367=_[_0x4c39a7('0x19')]({},_0xd62367,_0x220c53['options']);const _0x25b6c5={'where':_0xd62367[_0x4c39a7('0x1b')]};return db[_0x4c39a7('0x1c')][_0x4c39a7('0x39')](_0x25b6c5)[_0x4c39a7('0x2c')](function(_0x1a1f68){const _0x4ac11d=_0x4c39a7;return _0x2b58db[_0x4ac11d('0x39')]=_0x1a1f68,_0x220c53[_0x4ac11d('0xf')][_0x4ac11d('0x14')]&&(_0xd62367['include']=[{'all':!![]}]),db['ZendeskConfiguration'][_0x4ac11d('0x24')](_0xd62367);})['then'](function(_0x455fc3){const _0x2ef570=_0x4c39a7;return _0x2b58db[_0x2ef570('0x5')]=_0x455fc3,_0x2b58db;})[_0x4c39a7('0x2c')](respondWithFilteredResult(_0x1b5bd2,_0xd62367))[_0x4c39a7('0xc')](handleError(_0x1b5bd2,null));},exports[_0x370833('0x10')]=function(_0x2a8a35,_0x1230e9){const _0x45fa74=_0x370833;let _0x4b4642={'raw':![],'where':{'id':_0x2a8a35[_0x45fa74('0x12')]['id']}};const _0x54b03d={};return _0x54b03d['model']=_[_0x45fa74('0x37')](db[_0x45fa74('0x1c')]['rawAttributes']),_0x54b03d[_0x45fa74('0xf')]=_[_0x45fa74('0x37')](_0x2a8a35[_0x45fa74('0xf')]),_0x54b03d[_0x45fa74('0x2b')]=_[_0x45fa74('0x4')](_0x54b03d['model'],_0x54b03d['query']),_0x4b4642['attributes']=_[_0x45fa74('0x4')](_0x54b03d[_0x45fa74('0x2a')],qs[_0x45fa74('0x33')](_0x2a8a35[_0x45fa74('0xf')][_0x45fa74('0x33')])),_0x4b4642[_0x45fa74('0x3b')]=_0x4b4642[_0x45fa74('0x3b')][_0x45fa74('0x27')]?_0x4b4642['attributes']:_0x54b03d['model'],_0x2a8a35[_0x45fa74('0xf')][_0x45fa74('0x14')]&&(_0x4b4642['include']=[{'all':!![]}]),_0x4b4642=_[_0x45fa74('0x19')]({},_0x4b4642,_0x2a8a35[_0x45fa74('0x1e')]),db[_0x45fa74('0x1c')][_0x45fa74('0x2f')](_0x4b4642)[_0x45fa74('0x2c')](handleEntityNotFound(_0x1230e9,null))['then'](respondWithResult(_0x1230e9,null))[_0x45fa74('0xc')](handleError(_0x1230e9,null));},exports['create']=function(_0x822af9,_0x40d12a){const _0x584a7a=_0x370833;return db['ZendeskConfiguration'][_0x584a7a('0x35')](_0x822af9[_0x584a7a('0xb')],{})[_0x584a7a('0x2c')](respondWithResult(_0x40d12a,0xc9))[_0x584a7a('0xc')](handleError(_0x40d12a,null));},exports[_0x370833('0x6')]=function(_0x170078,_0x5c5788){const _0x363b21=_0x370833;return _0x170078[_0x363b21('0xb')]['id']&&delete _0x170078[_0x363b21('0xb')]['id'],db['ZendeskConfiguration']['findOne']({'where':{'id':_0x170078[_0x363b21('0x12')]['id']}})[_0x363b21('0x2c')](handleEntityNotFound(_0x5c5788,null))[_0x363b21('0x2c')](saveUpdates(_0x170078['body'],null))['then'](respondWithResult(_0x5c5788,null))[_0x363b21('0xc')](handleError(_0x5c5788,null));},exports[_0x370833('0x13')]=function(_0xb0337a,_0x50fa24){const _0x452bad=_0x370833;return db[_0x452bad('0x1c')]['findOne']({'where':{'id':_0xb0337a[_0x452bad('0x12')]['id']}})[_0x452bad('0x2c')](handleEntityNotFound(_0x50fa24,null))[_0x452bad('0x2c')](removeEntity(_0x50fa24,null))[_0x452bad('0xc')](handleError(_0x50fa24,null));},exports['getFields']=function(_0x2d6083,_0x40518d){const _0x334147=_0x370833;let _0xf8d2f3={};const _0x47a6c9={};let _0x48d1ac,_0x304092;return db[_0x334147('0x1c')][_0x334147('0x2f')]({'where':{'id':_0x2d6083[_0x334147('0x12')]['id']}})['then'](handleEntityNotFound(_0x40518d,null))[_0x334147('0x2c')](function(_0x2b6645){const _0x2e5149=_0x334147;if(_0x2b6645)return _0x48d1ac=_0x2b6645,_0x47a6c9[_0x2e5149('0x2a')]=_[_0x2e5149('0x37')](db[_0x2e5149('0x1')][_0x2e5149('0x1a')]),_0x47a6c9[_0x2e5149('0xf')]=_[_0x2e5149('0x37')](_0x2d6083[_0x2e5149('0xf')]),_0x47a6c9[_0x2e5149('0x2b')]=_['intersection'](_0x47a6c9[_0x2e5149('0x2a')],_0x47a6c9[_0x2e5149('0xf')]),_0xf8d2f3[_0x2e5149('0x3b')]=_[_0x2e5149('0x4')](_0x47a6c9[_0x2e5149('0x2a')],qs['fields'](_0x2d6083[_0x2e5149('0xf')][_0x2e5149('0x33')])),_0xf8d2f3[_0x2e5149('0x3b')]=_0xf8d2f3['attributes'][_0x2e5149('0x27')]?_0xf8d2f3[_0x2e5149('0x3b')]:_0x47a6c9[_0x2e5149('0x2a')],_0xf8d2f3[_0x2e5149('0x16')]=qs['sort'](_0x2d6083[_0x2e5149('0xf')][_0x2e5149('0x3a')]),_0xf8d2f3['where']=qs['filters'](_[_0x2e5149('0x25')](_0x2d6083[_0x2e5149('0xf')],_0x47a6c9['filters'])),_0x2d6083[_0x2e5149('0xf')]['filter']&&(_0xf8d2f3[_0x2e5149('0x1b')]=_['merge'](_0xf8d2f3[_0x2e5149('0x1b')],{[Op['or']]:_['map'](_0xf8d2f3[_0x2e5149('0x3b')],function(_0x2de311){const _0x4246ad=_0x2e5149,_0x4717ef={};return _0x4717ef[_0x2de311]={[Op[_0x4246ad('0x21')]]:'%'+_0x2d6083['query'][_0x4246ad('0x30')]+'%'},_0x4717ef;})})),_0xf8d2f3=_[_0x2e5149('0x19')]({},_0xf8d2f3,_0x2d6083[_0x2e5149('0x1e')]),_0x48d1ac[_0x2e5149('0x2d')](_0xf8d2f3);})[_0x334147('0x2c')](function(_0x332a64){const _0x26e0cc=_0x334147;if(_0x332a64)return _0x304092=_0x332a64[_0x26e0cc('0x27')],typeof _0x2d6083['query'][_0x26e0cc('0x31')]===_0x26e0cc('0x11')&&(_0xf8d2f3[_0x26e0cc('0x7')]=qs[_0x26e0cc('0x7')](_0x2d6083[_0x26e0cc('0xf')]['limit']),_0xf8d2f3[_0x26e0cc('0x2e')]=qs[_0x26e0cc('0x2e')](_0x2d6083['query'][_0x26e0cc('0x2e')])),_0x48d1ac[_0x26e0cc('0x2d')](_0xf8d2f3);})[_0x334147('0x2c')](function(_0x3cf77d){if(_0x3cf77d)return _0x3cf77d?{'count':_0x304092,'rows':_0x3cf77d}:null;})[_0x334147('0x2c')](respondWithResult(_0x40518d,null))[_0x334147('0xc')](handleError(_0x40518d,null));},exports[_0x370833('0xa')]=function(_0x2cc161,_0x423337){const _0x31decf=_0x370833;let _0x5b11fc={};const _0x5e75d9={};let _0x524df1,_0xeebd47;return db[_0x31decf('0x1c')][_0x31decf('0x2f')]({'where':{'id':_0x2cc161[_0x31decf('0x12')]['id']}})[_0x31decf('0x2c')](handleEntityNotFound(_0x423337,null))[_0x31decf('0x2c')](function(_0x4eba54){const _0x2a129b=_0x31decf;if(_0x4eba54)return _0x524df1=_0x4eba54,_0x5e75d9[_0x2a129b('0x2a')]=_['keys'](db[_0x2a129b('0x1')][_0x2a129b('0x1a')]),_0x5e75d9[_0x2a129b('0xf')]=_[_0x2a129b('0x37')](_0x2cc161['query']),_0x5e75d9[_0x2a129b('0x2b')]=_[_0x2a129b('0x4')](_0x5e75d9[_0x2a129b('0x2a')],_0x5e75d9[_0x2a129b('0xf')]),_0x5b11fc[_0x2a129b('0x3b')]=_['intersection'](_0x5e75d9[_0x2a129b('0x2a')],qs['fields'](_0x2cc161[_0x2a129b('0xf')][_0x2a129b('0x33')])),_0x5b11fc[_0x2a129b('0x3b')]=_0x5b11fc[_0x2a129b('0x3b')][_0x2a129b('0x27')]?_0x5b11fc[_0x2a129b('0x3b')]:_0x5e75d9[_0x2a129b('0x2a')],_0x5b11fc['order']=qs['sort'](_0x2cc161['query']['sort']),_0x5b11fc['where']=qs[_0x2a129b('0x2b')](_[_0x2a129b('0x25')](_0x2cc161['query'],_0x5e75d9['filters'])),_0x2cc161['query'][_0x2a129b('0x30')]&&(_0x5b11fc[_0x2a129b('0x1b')]=_[_0x2a129b('0x19')](_0x5b11fc['where'],{[Op['or']]:_[_0x2a129b('0xd')](_0x5b11fc[_0x2a129b('0x3b')],function(_0x40678f){const _0x242d6b=_0x2a129b,_0x2f3c3={};return _0x2f3c3[_0x40678f]={[Op['like']]:'%'+_0x2cc161[_0x242d6b('0xf')][_0x242d6b('0x30')]+'%'},_0x2f3c3;})})),_0x5b11fc=_[_0x2a129b('0x19')]({},_0x5b11fc,_0x2cc161[_0x2a129b('0x1e')]),_0x524df1[_0x2a129b('0xa')](_0x5b11fc);})[_0x31decf('0x2c')](function(_0x2583d9){const _0x4a4d23=_0x31decf;if(_0x2583d9)return _0xeebd47=_0x2583d9[_0x4a4d23('0x27')],typeof _0x2cc161['query'][_0x4a4d23('0x31')]===_0x4a4d23('0x11')&&(_0x5b11fc[_0x4a4d23('0x7')]=qs[_0x4a4d23('0x7')](_0x2cc161['query']['limit']),_0x5b11fc['offset']=qs[_0x4a4d23('0x2e')](_0x2cc161[_0x4a4d23('0xf')]['offset'])),_0x524df1[_0x4a4d23('0xa')](_0x5b11fc);})[_0x31decf('0x2c')](function(_0x50556a){if(_0x50556a)return _0x50556a?{'count':_0xeebd47,'rows':_0x50556a}:null;})['then'](respondWithResult(_0x423337,null))[_0x31decf('0xc')](handleError(_0x423337,null));},exports[_0x370833('0x8')]=function(_0x1a6acf,_0x38464e){const _0x299b21=_0x370833;let _0x155dba={};const _0x266f94={};let _0x5ae114,_0x5e9cde;return db[_0x299b21('0x1c')][_0x299b21('0x2f')]({'where':{'id':_0x1a6acf['params']['id']}})[_0x299b21('0x2c')](handleEntityNotFound(_0x38464e,null))[_0x299b21('0x2c')](function(_0x490328){const _0x38f950=_0x299b21;if(_0x490328)return _0x5ae114=_0x490328,_0x266f94[_0x38f950('0x2a')]=_['keys'](db[_0x38f950('0x1')][_0x38f950('0x1a')]),_0x266f94[_0x38f950('0xf')]=_[_0x38f950('0x37')](_0x1a6acf[_0x38f950('0xf')]),_0x266f94[_0x38f950('0x2b')]=_[_0x38f950('0x4')](_0x266f94[_0x38f950('0x2a')],_0x266f94['query']),_0x155dba[_0x38f950('0x3b')]=_[_0x38f950('0x4')](_0x266f94[_0x38f950('0x2a')],qs[_0x38f950('0x33')](_0x1a6acf['query'][_0x38f950('0x33')])),_0x155dba[_0x38f950('0x3b')]=_0x155dba[_0x38f950('0x3b')][_0x38f950('0x27')]?_0x155dba[_0x38f950('0x3b')]:_0x266f94[_0x38f950('0x2a')],_0x155dba[_0x38f950('0x16')]=qs[_0x38f950('0x3a')](_0x1a6acf[_0x38f950('0xf')][_0x38f950('0x3a')]),_0x155dba[_0x38f950('0x1b')]=qs['filters'](_['pick'](_0x1a6acf[_0x38f950('0xf')],_0x266f94['filters'])),_0x1a6acf[_0x38f950('0xf')][_0x38f950('0x30')]&&(_0x155dba[_0x38f950('0x1b')]=_[_0x38f950('0x19')](_0x155dba[_0x38f950('0x1b')],{[Op['or']]:_['map'](_0x155dba['attributes'],function(_0x4a5d94){const _0x2a9124=_0x38f950,_0x302a89={};return _0x302a89[_0x4a5d94]={[Op[_0x2a9124('0x21')]]:'%'+_0x1a6acf[_0x2a9124('0xf')][_0x2a9124('0x30')]+'%'},_0x302a89;})})),_0x155dba=_['merge']({},_0x155dba,_0x1a6acf[_0x38f950('0x1e')]),_0x5ae114['getDescriptions'](_0x155dba);})[_0x299b21('0x2c')](function(_0x53a414){const _0x46ca81=_0x299b21;if(_0x53a414)return _0x5e9cde=_0x53a414[_0x46ca81('0x27')],typeof _0x1a6acf['query'][_0x46ca81('0x31')]===_0x46ca81('0x11')&&(_0x155dba['limit']=qs[_0x46ca81('0x7')](_0x1a6acf[_0x46ca81('0xf')]['limit']),_0x155dba[_0x46ca81('0x2e')]=qs[_0x46ca81('0x2e')](_0x1a6acf['query']['offset'])),_0x5ae114[_0x46ca81('0x8')](_0x155dba);})[_0x299b21('0x2c')](function(_0x2b31f0){if(_0x2b31f0)return _0x2b31f0?{'count':_0x5e9cde,'rows':_0x2b31f0}:null;})[_0x299b21('0x2c')](respondWithResult(_0x38464e,null))[_0x299b21('0xc')](handleError(_0x38464e,null));},exports[_0x370833('0x17')]=function(_0x3d0ca9,_0x5ce706){const _0x216663=_0x370833;let _0x558c09={};const _0x4abd89={};let _0x123623,_0x1d7930;return db[_0x216663('0x1c')][_0x216663('0x2f')]({'where':{'id':_0x3d0ca9[_0x216663('0x12')]['id']}})[_0x216663('0x2c')](handleEntityNotFound(_0x5ce706,null))[_0x216663('0x2c')](function(_0x498f21){const _0x5ae10e=_0x216663;if(_0x498f21)return _0x123623=_0x498f21,_0x4abd89[_0x5ae10e('0x2a')]=_['keys'](db[_0x5ae10e('0x26')][_0x5ae10e('0x1a')]),_0x4abd89['query']=_['keys'](_0x3d0ca9[_0x5ae10e('0xf')]),_0x4abd89[_0x5ae10e('0x2b')]=_[_0x5ae10e('0x4')](_0x4abd89[_0x5ae10e('0x2a')],_0x4abd89[_0x5ae10e('0xf')]),_0x558c09[_0x5ae10e('0x3b')]=_[_0x5ae10e('0x4')](_0x4abd89[_0x5ae10e('0x2a')],qs['fields'](_0x3d0ca9[_0x5ae10e('0xf')][_0x5ae10e('0x33')])),_0x558c09[_0x5ae10e('0x3b')]=_0x558c09[_0x5ae10e('0x3b')]['length']?_0x558c09[_0x5ae10e('0x3b')]:_0x4abd89[_0x5ae10e('0x2a')],_0x558c09['order']=qs[_0x5ae10e('0x3a')](_0x3d0ca9['query'][_0x5ae10e('0x3a')]),_0x558c09['where']=qs[_0x5ae10e('0x2b')](_['pick'](_0x3d0ca9['query'],_0x4abd89[_0x5ae10e('0x2b')])),_0x3d0ca9['query'][_0x5ae10e('0x30')]&&(_0x558c09[_0x5ae10e('0x1b')]=_[_0x5ae10e('0x19')](_0x558c09[_0x5ae10e('0x1b')],{[Op['or']]:_[_0x5ae10e('0xd')](_0x558c09[_0x5ae10e('0x3b')],function(_0x367da4){const _0x444386=_0x5ae10e,_0x1735a1={};return _0x1735a1[_0x367da4]={[Op[_0x444386('0x21')]]:'%'+_0x3d0ca9[_0x444386('0xf')][_0x444386('0x30')]+'%'},_0x1735a1;})})),_0x558c09=_[_0x5ae10e('0x19')]({},_0x558c09,_0x3d0ca9[_0x5ae10e('0x1e')]),_0x123623['getTags'](_0x558c09);})[_0x216663('0x2c')](function(_0x9fa5fc){const _0x382a96=_0x216663;if(_0x9fa5fc)return _0x1d7930=_0x9fa5fc[_0x382a96('0x27')],typeof _0x3d0ca9[_0x382a96('0xf')][_0x382a96('0x31')]===_0x382a96('0x11')&&(_0x558c09[_0x382a96('0x7')]=qs['limit'](_0x3d0ca9[_0x382a96('0xf')][_0x382a96('0x7')]),_0x558c09[_0x382a96('0x2e')]=qs[_0x382a96('0x2e')](_0x3d0ca9['query'][_0x382a96('0x2e')])),_0x123623[_0x382a96('0x17')](_0x558c09);})['then'](function(_0x40c168){if(_0x40c168)return _0x40c168?{'count':_0x1d7930,'rows':_0x40c168}:null;})[_0x216663('0x2c')](respondWithResult(_0x5ce706,null))['catch'](handleError(_0x5ce706,null));},exports[_0x370833('0x3')]=function(_0x5b8e2b,_0x2e8195){const _0x182817=_0x370833;return _0x5b8e2b[_0x182817('0xb')]['id']&&delete _0x5b8e2b[_0x182817('0xb')]['id'],db['ZendeskConfiguration'][_0x182817('0x2f')]({'where':{'id':_0x5b8e2b[_0x182817('0x12')]['id']}})['then'](handleEntityNotFound(_0x2e8195,null))[_0x182817('0x2c')](function(_0x2914a3){const _0x229b39=_0x182817;if(_0x2914a3)return _0x2914a3[_0x229b39('0x3')](_0x5b8e2b[_0x229b39('0xb')][_0x229b39('0x1d')]||[]);return null;})[_0x182817('0x2c')](respondWithResult(_0x2e8195,null))['catch'](handleError(_0x2e8195,null));}; \ No newline at end of file +const a406_0x4667=['nolimit','includeAll','getSubjects','update','options','fieldName','limit','filters','ZendeskField','error','json','order','undefined','ids','findAll','rows','set','getDescriptions','sendStatus','api','stack','fields','like','intersection','name','filter','pick','attributes','key','status','offset','ZendeskConfiguration','show','merge','../../config/logger','count','where','destroy','keys','create','model','catch','type','body','params','query','getTags','findOne','sort','rawAttributes','length','VIRTUAL','then','lodash','Content-Range','getFields','map','include','send'];(function(_0x4f766e,_0x2fb20d){const _0x4667b3=function(_0x5eb7d7){while(--_0x5eb7d7){_0x4f766e['push'](_0x4f766e['shift']());}};_0x4667b3(++_0x2fb20d);}(a406_0x4667,0xab));const a406_0x5eb7=function(_0x4f766e,_0x2fb20d){_0x4f766e=_0x4f766e-0x195;let _0x4667b3=a406_0x4667[_0x4f766e];return _0x4667b3;};const a406_0x4a8984=a406_0x5eb7;'use strict';const _=require(a406_0x4a8984(0x195)),qs=require('../../components/parsers/qs'),logger=require(a406_0x4a8984(0x1bd))(a406_0x4a8984(0x1ae)),{db}=require('../../mysqldb'),{Op}=require('sequelize');function respondWithResult(_0x557c1,_0x4a21e6){return _0x4a21e6=_0x4a21e6||0xc8,function(_0x1b13f2){const _0x21aec5=a406_0x5eb7;if(_0x1b13f2)return _0x557c1['status'](_0x4a21e6)[_0x21aec5(0x1a5)](_0x1b13f2);};}function respondWithFilteredResult(_0x227ec3,_0x3f9c1a){return function(_0x59ac6b){const _0x212eba=a406_0x5eb7;if(_0x59ac6b){const _0x35af3f=_0x59ac6b[_0x212eba(0x1be)],_0x578a5c=_0x3f9c1a[_0x212eba(0x1b9)];let _0x29658e=_0x3f9c1a['offset']+_0x3f9c1a[_0x212eba(0x1a1)],_0x4781f9;return _0x29658e>=_0x35af3f?(_0x29658e=_0x35af3f,_0x4781f9=0xc8):_0x4781f9=0xce,_0x227ec3[_0x212eba(0x1b8)](_0x4781f9),_0x227ec3[_0x212eba(0x1ab)](_0x212eba(0x196),_0x578a5c+'-'+_0x29658e+'/'+_0x35af3f)[_0x212eba(0x1a5)](_0x59ac6b);}return null;};}function saveUpdates(_0x21fb5d){return function(_0x2ae0db){if(_0x2ae0db)return _0x2ae0db['update'](_0x21fb5d)['then'](function(_0x23201e){return _0x23201e;});return null;};}function removeEntity(_0x1d2c8){return function(_0x21e39c){const _0x47646a=a406_0x5eb7;if(_0x21e39c)return _0x21e39c['destroy']()[_0x47646a(0x1cf)](function(){const _0x386689=_0x47646a;_0x1d2c8[_0x386689(0x1b8)](0xcc)['end']();});};}function handleEntityNotFound(_0xd56112){return function(_0x2fc80f){const _0x9cffc8=a406_0x5eb7;return!_0x2fc80f&&_0xd56112[_0x9cffc8(0x1ad)](0x194),_0x2fc80f;};}function handleError(_0x42bcb3,_0x575590){return _0x575590=_0x575590||0x1f4,function(_0x5cfce1){const _0xafb8c0=a406_0x5eb7;logger[_0xafb8c0(0x1a4)](_0x5cfce1[_0xafb8c0(0x1af)]),_0x5cfce1['name']&&delete _0x5cfce1[_0xafb8c0(0x1b3)],_0x42bcb3['status'](_0x575590)[_0xafb8c0(0x19a)](_0x5cfce1);};}exports['index']=function(_0x1f92f0,_0x385f5e){const _0x46781b=a406_0x4a8984;let _0x28c4b6={};const _0x44420e={},_0x43a99b={'count':0x0,'rows':[]},_0x57c515=_[_0x46781b(0x198)](db[_0x46781b(0x1ba)]['rawAttributes'],function(_0xd3f3bd){const _0x1940a5=_0x46781b;return{'name':_0xd3f3bd[_0x1940a5(0x1a0)],'type':_0xd3f3bd[_0x1940a5(0x1c5)][_0x1940a5(0x1b7)]};});_0x44420e['model']=_[_0x46781b(0x198)](_0x57c515,_0x46781b(0x1b3)),_0x44420e[_0x46781b(0x1c8)]=_[_0x46781b(0x1c1)](_0x1f92f0[_0x46781b(0x1c8)]),_0x44420e[_0x46781b(0x1a2)]=_[_0x46781b(0x1b2)](_0x44420e[_0x46781b(0x1c3)],_0x44420e[_0x46781b(0x1c8)]),_0x28c4b6[_0x46781b(0x1b6)]=_[_0x46781b(0x1b2)](_0x44420e[_0x46781b(0x1c3)],qs[_0x46781b(0x1b0)](_0x1f92f0[_0x46781b(0x1c8)]['fields'])),_0x28c4b6[_0x46781b(0x1b6)]=_0x28c4b6['attributes'][_0x46781b(0x1cd)]?_0x28c4b6[_0x46781b(0x1b6)]:_0x44420e[_0x46781b(0x1c3)];typeof _0x1f92f0[_0x46781b(0x1c8)][_0x46781b(0x19b)]===_0x46781b(0x1a7)&&(_0x28c4b6[_0x46781b(0x1a1)]=qs[_0x46781b(0x1a1)](_0x1f92f0[_0x46781b(0x1c8)][_0x46781b(0x1a1)]),_0x28c4b6['offset']=qs[_0x46781b(0x1b9)](_0x1f92f0['query'][_0x46781b(0x1b9)]));_0x28c4b6[_0x46781b(0x1a6)]=qs[_0x46781b(0x1cb)](_0x1f92f0[_0x46781b(0x1c8)]['sort']),_0x28c4b6[_0x46781b(0x1bf)]=qs[_0x46781b(0x1a2)](_[_0x46781b(0x1b5)](_0x1f92f0[_0x46781b(0x1c8)],_0x44420e[_0x46781b(0x1a2)]),_0x57c515);_0x1f92f0[_0x46781b(0x1c8)][_0x46781b(0x1b4)]&&(_0x28c4b6['where']=_[_0x46781b(0x1bc)](_0x28c4b6[_0x46781b(0x1bf)],{[Op['or']]:_['map'](_0x57c515,function(_0x83490b){const _0xb79fd2=_0x46781b;if(_0x83490b[_0xb79fd2(0x1c5)]!==_0xb79fd2(0x1ce)){const _0x57fc35={};return _0x57fc35[_0x83490b['name']]={[Op[_0xb79fd2(0x1b1)]]:'%'+_0x1f92f0[_0xb79fd2(0x1c8)][_0xb79fd2(0x1b4)]+'%'},_0x57fc35;}})}));_0x28c4b6=_[_0x46781b(0x1bc)]({},_0x28c4b6,_0x1f92f0[_0x46781b(0x19f)]);const _0x4d8038={'where':_0x28c4b6[_0x46781b(0x1bf)]};return db[_0x46781b(0x1ba)][_0x46781b(0x1be)](_0x4d8038)[_0x46781b(0x1cf)](function(_0x286586){const _0x48d3d6=_0x46781b;return _0x43a99b[_0x48d3d6(0x1be)]=_0x286586,_0x1f92f0[_0x48d3d6(0x1c8)][_0x48d3d6(0x19c)]&&(_0x28c4b6['include']=[{'all':!![]}]),db[_0x48d3d6(0x1ba)][_0x48d3d6(0x1a9)](_0x28c4b6);})[_0x46781b(0x1cf)](function(_0x18328a){const _0x5ec07b=_0x46781b;return _0x43a99b[_0x5ec07b(0x1aa)]=_0x18328a,_0x43a99b;})[_0x46781b(0x1cf)](respondWithFilteredResult(_0x385f5e,_0x28c4b6))[_0x46781b(0x1c4)](handleError(_0x385f5e,null));},exports[a406_0x4a8984(0x1bb)]=function(_0x51980e,_0x2e8cbc){const _0x1384c4=a406_0x4a8984;let _0x4a3cae={'raw':![],'where':{'id':_0x51980e['params']['id']}};const _0x23c6d1={};return _0x23c6d1['model']=_[_0x1384c4(0x1c1)](db['ZendeskConfiguration'][_0x1384c4(0x1cc)]),_0x23c6d1['query']=_[_0x1384c4(0x1c1)](_0x51980e['query']),_0x23c6d1[_0x1384c4(0x1a2)]=_[_0x1384c4(0x1b2)](_0x23c6d1['model'],_0x23c6d1[_0x1384c4(0x1c8)]),_0x4a3cae[_0x1384c4(0x1b6)]=_[_0x1384c4(0x1b2)](_0x23c6d1[_0x1384c4(0x1c3)],qs['fields'](_0x51980e[_0x1384c4(0x1c8)][_0x1384c4(0x1b0)])),_0x4a3cae[_0x1384c4(0x1b6)]=_0x4a3cae['attributes']['length']?_0x4a3cae[_0x1384c4(0x1b6)]:_0x23c6d1[_0x1384c4(0x1c3)],_0x51980e[_0x1384c4(0x1c8)][_0x1384c4(0x19c)]&&(_0x4a3cae[_0x1384c4(0x199)]=[{'all':!![]}]),_0x4a3cae=_['merge']({},_0x4a3cae,_0x51980e['options']),db[_0x1384c4(0x1ba)]['findOne'](_0x4a3cae)[_0x1384c4(0x1cf)](handleEntityNotFound(_0x2e8cbc,null))[_0x1384c4(0x1cf)](respondWithResult(_0x2e8cbc,null))[_0x1384c4(0x1c4)](handleError(_0x2e8cbc,null));},exports[a406_0x4a8984(0x1c2)]=function(_0x251cc8,_0x2bd787){const _0x444345=a406_0x4a8984;return db[_0x444345(0x1ba)][_0x444345(0x1c2)](_0x251cc8[_0x444345(0x1c6)],{})[_0x444345(0x1cf)](respondWithResult(_0x2bd787,0xc9))[_0x444345(0x1c4)](handleError(_0x2bd787,null));},exports[a406_0x4a8984(0x19e)]=function(_0x1b57fb,_0x5e5b58){const _0xe836fd=a406_0x4a8984;return _0x1b57fb[_0xe836fd(0x1c6)]['id']&&delete _0x1b57fb[_0xe836fd(0x1c6)]['id'],db[_0xe836fd(0x1ba)]['findOne']({'where':{'id':_0x1b57fb[_0xe836fd(0x1c7)]['id']}})[_0xe836fd(0x1cf)](handleEntityNotFound(_0x5e5b58,null))[_0xe836fd(0x1cf)](saveUpdates(_0x1b57fb[_0xe836fd(0x1c6)],null))[_0xe836fd(0x1cf)](respondWithResult(_0x5e5b58,null))[_0xe836fd(0x1c4)](handleError(_0x5e5b58,null));},exports[a406_0x4a8984(0x1c0)]=function(_0x230827,_0x58e19c){const _0x82285b=a406_0x4a8984;return db[_0x82285b(0x1ba)][_0x82285b(0x1ca)]({'where':{'id':_0x230827[_0x82285b(0x1c7)]['id']}})[_0x82285b(0x1cf)](handleEntityNotFound(_0x58e19c,null))[_0x82285b(0x1cf)](removeEntity(_0x58e19c,null))[_0x82285b(0x1c4)](handleError(_0x58e19c,null));},exports[a406_0x4a8984(0x197)]=function(_0x31ec0d,_0x6a4c1f){const _0x108404=a406_0x4a8984;let _0x43bcb5={};const _0x225c5b={};let _0x302a42,_0x2b48b4;return db[_0x108404(0x1ba)]['findOne']({'where':{'id':_0x31ec0d['params']['id']}})['then'](handleEntityNotFound(_0x6a4c1f,null))[_0x108404(0x1cf)](function(_0x3a342e){const _0x4ffac1=_0x108404;if(_0x3a342e)return _0x302a42=_0x3a342e,_0x225c5b[_0x4ffac1(0x1c3)]=_['keys'](db['ZendeskField'][_0x4ffac1(0x1cc)]),_0x225c5b[_0x4ffac1(0x1c8)]=_[_0x4ffac1(0x1c1)](_0x31ec0d[_0x4ffac1(0x1c8)]),_0x225c5b[_0x4ffac1(0x1a2)]=_['intersection'](_0x225c5b[_0x4ffac1(0x1c3)],_0x225c5b[_0x4ffac1(0x1c8)]),_0x43bcb5[_0x4ffac1(0x1b6)]=_[_0x4ffac1(0x1b2)](_0x225c5b[_0x4ffac1(0x1c3)],qs[_0x4ffac1(0x1b0)](_0x31ec0d[_0x4ffac1(0x1c8)][_0x4ffac1(0x1b0)])),_0x43bcb5['attributes']=_0x43bcb5[_0x4ffac1(0x1b6)][_0x4ffac1(0x1cd)]?_0x43bcb5[_0x4ffac1(0x1b6)]:_0x225c5b[_0x4ffac1(0x1c3)],_0x43bcb5[_0x4ffac1(0x1a6)]=qs[_0x4ffac1(0x1cb)](_0x31ec0d[_0x4ffac1(0x1c8)]['sort']),_0x43bcb5['where']=qs[_0x4ffac1(0x1a2)](_[_0x4ffac1(0x1b5)](_0x31ec0d[_0x4ffac1(0x1c8)],_0x225c5b[_0x4ffac1(0x1a2)])),_0x31ec0d[_0x4ffac1(0x1c8)]['filter']&&(_0x43bcb5[_0x4ffac1(0x1bf)]=_[_0x4ffac1(0x1bc)](_0x43bcb5[_0x4ffac1(0x1bf)],{[Op['or']]:_[_0x4ffac1(0x198)](_0x43bcb5['attributes'],function(_0x412d1a){const _0x70a3f6=_0x4ffac1,_0x17e68b={};return _0x17e68b[_0x412d1a]={[Op[_0x70a3f6(0x1b1)]]:'%'+_0x31ec0d['query'][_0x70a3f6(0x1b4)]+'%'},_0x17e68b;})})),_0x43bcb5=_[_0x4ffac1(0x1bc)]({},_0x43bcb5,_0x31ec0d[_0x4ffac1(0x19f)]),_0x302a42[_0x4ffac1(0x197)](_0x43bcb5);})['then'](function(_0x191da0){const _0x9206e5=_0x108404;if(_0x191da0)return _0x2b48b4=_0x191da0[_0x9206e5(0x1cd)],typeof _0x31ec0d['query'][_0x9206e5(0x19b)]===_0x9206e5(0x1a7)&&(_0x43bcb5[_0x9206e5(0x1a1)]=qs['limit'](_0x31ec0d[_0x9206e5(0x1c8)]['limit']),_0x43bcb5[_0x9206e5(0x1b9)]=qs[_0x9206e5(0x1b9)](_0x31ec0d[_0x9206e5(0x1c8)][_0x9206e5(0x1b9)])),_0x302a42['getFields'](_0x43bcb5);})[_0x108404(0x1cf)](function(_0x56625e){if(_0x56625e)return _0x56625e?{'count':_0x2b48b4,'rows':_0x56625e}:null;})[_0x108404(0x1cf)](respondWithResult(_0x6a4c1f,null))[_0x108404(0x1c4)](handleError(_0x6a4c1f,null));},exports['getSubjects']=function(_0x28544b,_0x1ddf02){const _0x1f12c0=a406_0x4a8984;let _0x2dc006={};const _0x51fb5e={};let _0x337b52,_0x111ff3;return db[_0x1f12c0(0x1ba)][_0x1f12c0(0x1ca)]({'where':{'id':_0x28544b['params']['id']}})['then'](handleEntityNotFound(_0x1ddf02,null))[_0x1f12c0(0x1cf)](function(_0x2a3929){const _0xf7bf8c=_0x1f12c0;if(_0x2a3929)return _0x337b52=_0x2a3929,_0x51fb5e[_0xf7bf8c(0x1c3)]=_[_0xf7bf8c(0x1c1)](db[_0xf7bf8c(0x1a3)][_0xf7bf8c(0x1cc)]),_0x51fb5e[_0xf7bf8c(0x1c8)]=_['keys'](_0x28544b[_0xf7bf8c(0x1c8)]),_0x51fb5e[_0xf7bf8c(0x1a2)]=_['intersection'](_0x51fb5e[_0xf7bf8c(0x1c3)],_0x51fb5e[_0xf7bf8c(0x1c8)]),_0x2dc006[_0xf7bf8c(0x1b6)]=_[_0xf7bf8c(0x1b2)](_0x51fb5e[_0xf7bf8c(0x1c3)],qs[_0xf7bf8c(0x1b0)](_0x28544b['query'][_0xf7bf8c(0x1b0)])),_0x2dc006[_0xf7bf8c(0x1b6)]=_0x2dc006[_0xf7bf8c(0x1b6)][_0xf7bf8c(0x1cd)]?_0x2dc006[_0xf7bf8c(0x1b6)]:_0x51fb5e['model'],_0x2dc006[_0xf7bf8c(0x1a6)]=qs[_0xf7bf8c(0x1cb)](_0x28544b['query']['sort']),_0x2dc006['where']=qs['filters'](_[_0xf7bf8c(0x1b5)](_0x28544b[_0xf7bf8c(0x1c8)],_0x51fb5e[_0xf7bf8c(0x1a2)])),_0x28544b[_0xf7bf8c(0x1c8)][_0xf7bf8c(0x1b4)]&&(_0x2dc006[_0xf7bf8c(0x1bf)]=_[_0xf7bf8c(0x1bc)](_0x2dc006[_0xf7bf8c(0x1bf)],{[Op['or']]:_['map'](_0x2dc006['attributes'],function(_0x159fe5){const _0x697b2f=_0xf7bf8c,_0x508fc7={};return _0x508fc7[_0x159fe5]={[Op[_0x697b2f(0x1b1)]]:'%'+_0x28544b[_0x697b2f(0x1c8)]['filter']+'%'},_0x508fc7;})})),_0x2dc006=_[_0xf7bf8c(0x1bc)]({},_0x2dc006,_0x28544b[_0xf7bf8c(0x19f)]),_0x337b52[_0xf7bf8c(0x19d)](_0x2dc006);})[_0x1f12c0(0x1cf)](function(_0x122d36){const _0x3c1646=_0x1f12c0;if(_0x122d36)return _0x111ff3=_0x122d36[_0x3c1646(0x1cd)],typeof _0x28544b[_0x3c1646(0x1c8)]['nolimit']==='undefined'&&(_0x2dc006[_0x3c1646(0x1a1)]=qs['limit'](_0x28544b[_0x3c1646(0x1c8)]['limit']),_0x2dc006[_0x3c1646(0x1b9)]=qs[_0x3c1646(0x1b9)](_0x28544b[_0x3c1646(0x1c8)][_0x3c1646(0x1b9)])),_0x337b52[_0x3c1646(0x19d)](_0x2dc006);})[_0x1f12c0(0x1cf)](function(_0x11710d){if(_0x11710d)return _0x11710d?{'count':_0x111ff3,'rows':_0x11710d}:null;})[_0x1f12c0(0x1cf)](respondWithResult(_0x1ddf02,null))['catch'](handleError(_0x1ddf02,null));},exports[a406_0x4a8984(0x1ac)]=function(_0x5bf37c,_0x5da5d7){const _0x2e96a2=a406_0x4a8984;let _0x162a67={};const _0xd7c392={};let _0x553993,_0x3b3ed1;return db[_0x2e96a2(0x1ba)][_0x2e96a2(0x1ca)]({'where':{'id':_0x5bf37c[_0x2e96a2(0x1c7)]['id']}})[_0x2e96a2(0x1cf)](handleEntityNotFound(_0x5da5d7,null))[_0x2e96a2(0x1cf)](function(_0x5044e0){const _0x157b40=_0x2e96a2;if(_0x5044e0)return _0x553993=_0x5044e0,_0xd7c392['model']=_['keys'](db[_0x157b40(0x1a3)]['rawAttributes']),_0xd7c392['query']=_[_0x157b40(0x1c1)](_0x5bf37c[_0x157b40(0x1c8)]),_0xd7c392[_0x157b40(0x1a2)]=_[_0x157b40(0x1b2)](_0xd7c392[_0x157b40(0x1c3)],_0xd7c392[_0x157b40(0x1c8)]),_0x162a67[_0x157b40(0x1b6)]=_[_0x157b40(0x1b2)](_0xd7c392[_0x157b40(0x1c3)],qs[_0x157b40(0x1b0)](_0x5bf37c[_0x157b40(0x1c8)][_0x157b40(0x1b0)])),_0x162a67[_0x157b40(0x1b6)]=_0x162a67[_0x157b40(0x1b6)][_0x157b40(0x1cd)]?_0x162a67[_0x157b40(0x1b6)]:_0xd7c392[_0x157b40(0x1c3)],_0x162a67[_0x157b40(0x1a6)]=qs[_0x157b40(0x1cb)](_0x5bf37c[_0x157b40(0x1c8)][_0x157b40(0x1cb)]),_0x162a67[_0x157b40(0x1bf)]=qs[_0x157b40(0x1a2)](_[_0x157b40(0x1b5)](_0x5bf37c[_0x157b40(0x1c8)],_0xd7c392[_0x157b40(0x1a2)])),_0x5bf37c[_0x157b40(0x1c8)][_0x157b40(0x1b4)]&&(_0x162a67['where']=_[_0x157b40(0x1bc)](_0x162a67['where'],{[Op['or']]:_[_0x157b40(0x198)](_0x162a67[_0x157b40(0x1b6)],function(_0x5e3c5c){const _0x25f4d1=_0x157b40,_0x1dc331={};return _0x1dc331[_0x5e3c5c]={[Op[_0x25f4d1(0x1b1)]]:'%'+_0x5bf37c['query'][_0x25f4d1(0x1b4)]+'%'},_0x1dc331;})})),_0x162a67=_[_0x157b40(0x1bc)]({},_0x162a67,_0x5bf37c[_0x157b40(0x19f)]),_0x553993[_0x157b40(0x1ac)](_0x162a67);})[_0x2e96a2(0x1cf)](function(_0x37f528){const _0x490b08=_0x2e96a2;if(_0x37f528)return _0x3b3ed1=_0x37f528[_0x490b08(0x1cd)],typeof _0x5bf37c[_0x490b08(0x1c8)]['nolimit']==='undefined'&&(_0x162a67['limit']=qs[_0x490b08(0x1a1)](_0x5bf37c[_0x490b08(0x1c8)][_0x490b08(0x1a1)]),_0x162a67[_0x490b08(0x1b9)]=qs[_0x490b08(0x1b9)](_0x5bf37c['query']['offset'])),_0x553993[_0x490b08(0x1ac)](_0x162a67);})[_0x2e96a2(0x1cf)](function(_0xe33812){if(_0xe33812)return _0xe33812?{'count':_0x3b3ed1,'rows':_0xe33812}:null;})[_0x2e96a2(0x1cf)](respondWithResult(_0x5da5d7,null))[_0x2e96a2(0x1c4)](handleError(_0x5da5d7,null));},exports[a406_0x4a8984(0x1c9)]=function(_0x50310f,_0x299e26){const _0x17ce11=a406_0x4a8984;let _0x2bcd0e={};const _0x2a2dd4={};let _0x448857,_0x147fe8;return db[_0x17ce11(0x1ba)][_0x17ce11(0x1ca)]({'where':{'id':_0x50310f[_0x17ce11(0x1c7)]['id']}})[_0x17ce11(0x1cf)](handleEntityNotFound(_0x299e26,null))[_0x17ce11(0x1cf)](function(_0x345b10){const _0xef93e6=_0x17ce11;if(_0x345b10)return _0x448857=_0x345b10,_0x2a2dd4[_0xef93e6(0x1c3)]=_[_0xef93e6(0x1c1)](db['Tag']['rawAttributes']),_0x2a2dd4[_0xef93e6(0x1c8)]=_[_0xef93e6(0x1c1)](_0x50310f[_0xef93e6(0x1c8)]),_0x2a2dd4['filters']=_[_0xef93e6(0x1b2)](_0x2a2dd4[_0xef93e6(0x1c3)],_0x2a2dd4[_0xef93e6(0x1c8)]),_0x2bcd0e['attributes']=_[_0xef93e6(0x1b2)](_0x2a2dd4['model'],qs['fields'](_0x50310f[_0xef93e6(0x1c8)][_0xef93e6(0x1b0)])),_0x2bcd0e[_0xef93e6(0x1b6)]=_0x2bcd0e['attributes'][_0xef93e6(0x1cd)]?_0x2bcd0e['attributes']:_0x2a2dd4[_0xef93e6(0x1c3)],_0x2bcd0e[_0xef93e6(0x1a6)]=qs[_0xef93e6(0x1cb)](_0x50310f[_0xef93e6(0x1c8)][_0xef93e6(0x1cb)]),_0x2bcd0e[_0xef93e6(0x1bf)]=qs['filters'](_[_0xef93e6(0x1b5)](_0x50310f[_0xef93e6(0x1c8)],_0x2a2dd4[_0xef93e6(0x1a2)])),_0x50310f[_0xef93e6(0x1c8)][_0xef93e6(0x1b4)]&&(_0x2bcd0e[_0xef93e6(0x1bf)]=_[_0xef93e6(0x1bc)](_0x2bcd0e[_0xef93e6(0x1bf)],{[Op['or']]:_[_0xef93e6(0x198)](_0x2bcd0e[_0xef93e6(0x1b6)],function(_0x123545){const _0x32a473=_0xef93e6,_0x4ca37d={};return _0x4ca37d[_0x123545]={[Op[_0x32a473(0x1b1)]]:'%'+_0x50310f['query'][_0x32a473(0x1b4)]+'%'},_0x4ca37d;})})),_0x2bcd0e=_[_0xef93e6(0x1bc)]({},_0x2bcd0e,_0x50310f['options']),_0x448857['getTags'](_0x2bcd0e);})['then'](function(_0x47efda){const _0x118d1a=_0x17ce11;if(_0x47efda)return _0x147fe8=_0x47efda[_0x118d1a(0x1cd)],typeof _0x50310f[_0x118d1a(0x1c8)][_0x118d1a(0x19b)]===_0x118d1a(0x1a7)&&(_0x2bcd0e['limit']=qs['limit'](_0x50310f[_0x118d1a(0x1c8)][_0x118d1a(0x1a1)]),_0x2bcd0e[_0x118d1a(0x1b9)]=qs['offset'](_0x50310f[_0x118d1a(0x1c8)][_0x118d1a(0x1b9)])),_0x448857[_0x118d1a(0x1c9)](_0x2bcd0e);})[_0x17ce11(0x1cf)](function(_0x452600){if(_0x452600)return _0x452600?{'count':_0x147fe8,'rows':_0x452600}:null;})[_0x17ce11(0x1cf)](respondWithResult(_0x299e26,null))[_0x17ce11(0x1c4)](handleError(_0x299e26,null));},exports['setTags']=function(_0x324ef3,_0x320134){const _0x43a3c8=a406_0x4a8984;return _0x324ef3['body']['id']&&delete _0x324ef3[_0x43a3c8(0x1c6)]['id'],db[_0x43a3c8(0x1ba)][_0x43a3c8(0x1ca)]({'where':{'id':_0x324ef3[_0x43a3c8(0x1c7)]['id']}})[_0x43a3c8(0x1cf)](handleEntityNotFound(_0x320134,null))[_0x43a3c8(0x1cf)](function(_0x20d7eb){const _0x592a0e=_0x43a3c8;if(_0x20d7eb)return _0x20d7eb['setTags'](_0x324ef3['body'][_0x592a0e(0x1a8)]||[]);return null;})[_0x43a3c8(0x1cf)](respondWithResult(_0x320134,null))[_0x43a3c8(0x1c4)](handleError(_0x320134,null));}; \ No newline at end of file diff --git a/server/api/intZendeskConfiguration/intZendeskConfiguration.model.js b/server/api/intZendeskConfiguration/intZendeskConfiguration.model.js index 55b9b8d..e49541b 100644 --- a/server/api/intZendeskConfiguration/intZendeskConfiguration.model.js +++ b/server/api/intZendeskConfiguration/intZendeskConfiguration.model.js @@ -1 +1 @@ -const a339_0x4b39=['./intZendeskConfiguration.attributes','int_zendesk_configurations','ZendeskConfiguration','exports'];(function(_0x3b29b0,_0x4b3908){const _0x4cd7bc=function(_0x123f03){while(--_0x123f03){_0x3b29b0['push'](_0x3b29b0['shift']());}};_0x4cd7bc(++_0x4b3908);}(a339_0x4b39,0x1ca));const a339_0x4cd7=function(_0x3b29b0,_0x4b3908){_0x3b29b0=_0x3b29b0-0x0;let _0x4cd7bc=a339_0x4b39[_0x3b29b0];return _0x4cd7bc;};const _0x3b7f98=a339_0x4cd7;'use strict';const attributes=require(_0x3b7f98('0x2'));module[_0x3b7f98('0x1')]=function(_0x123f03){const _0x4079cc=_0x3b7f98,_0x2222cb=_0x123f03['define'](_0x4079cc('0x0'),attributes,{'tableName':_0x4079cc('0x3'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x2222cb;}; \ No newline at end of file +const a407_0x10d5=['init','./intZendeskConfiguration.options','ZendeskConfiguration','./intZendeskConfiguration.attributes','sequelize','exports','function'];(function(_0x18d7e6,_0x47bede){const _0x10d533=function(_0x17ad4f){while(--_0x17ad4f){_0x18d7e6['push'](_0x18d7e6['shift']());}};_0x10d533(++_0x47bede);}(a407_0x10d5,0x11e));const a407_0x17ad=function(_0x18d7e6,_0x47bede){_0x18d7e6=_0x18d7e6-0xeb;let _0x10d533=a407_0x10d5[_0x18d7e6];return _0x10d533;};const a407_0xa35043=a407_0x17ad;'use strict';const {Model}=require(a407_0xa35043(0xf0)),{attributes}=require(a407_0xa35043(0xef)),{options}=require(a407_0xa35043(0xed));class ZendeskConfiguration extends Model{}function init(_0x538a4e,_0x52a95d){const _0x2a98b9=a407_0xa35043,_0x507048=options(_0x538a4e),_0xf67cc4=typeof _0x52a95d===_0x2a98b9(0xeb)?_0x52a95d(_0x507048):_0x507048;return ZendeskConfiguration[_0x2a98b9(0xec)](attributes,_0xf67cc4),ZendeskConfiguration;}module['exports'][a407_0xa35043(0xee)]=ZendeskConfiguration,module[a407_0xa35043(0xf1)][a407_0xa35043(0xec)]=init; \ No newline at end of file diff --git a/server/api/intZendeskConfiguration/intZendeskConfiguration.options.js b/server/api/intZendeskConfiguration/intZendeskConfiguration.options.js new file mode 100644 index 0000000..97c568f --- /dev/null +++ b/server/api/intZendeskConfiguration/intZendeskConfiguration.options.js @@ -0,0 +1 @@ +var a408_0x4046=['options','int_zendesk_configurations','exports'];(function(_0x447608,_0x17b76a){var _0x40461b=function(_0x5a23a9){while(--_0x5a23a9){_0x447608['push'](_0x447608['shift']());}};_0x40461b(++_0x17b76a);}(a408_0x4046,0x64));var a408_0x5a23=function(_0x447608,_0x17b76a){_0x447608=_0x447608-0x1a6;var _0x40461b=a408_0x4046[_0x447608];return _0x40461b;};var a408_0x974fe3=a408_0x5a23;function options(_0x4b67de){var _0x468174=a408_0x5a23;return{'sequelize':_0x4b67de,'tableName':_0x468174(0x1a6),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a408_0x974fe3(0x1a7)][a408_0x974fe3(0x1a8)]=options; \ No newline at end of file diff --git a/server/api/intZendeskField/index.js b/server/api/intZendeskField/index.js index 2a0bafc..3c7b759 100644 --- a/server/api/intZendeskField/index.js +++ b/server/api/intZendeskField/index.js @@ -1 +1 @@ -const a340_0x3cc1=['delete','create','isAuthenticated','destroy','post','get','update','../../components/auth/service','index','exports','Router','/:id','./intZendeskField.controller'];(function(_0x1b5765,_0x3cc1e5){const _0x369c6e=function(_0x52ff43){while(--_0x52ff43){_0x1b5765['push'](_0x1b5765['shift']());}};_0x369c6e(++_0x3cc1e5);}(a340_0x3cc1,0x1c5));const a340_0x369c=function(_0x1b5765,_0x3cc1e5){_0x1b5765=_0x1b5765-0x0;let _0x369c6e=a340_0x3cc1[_0x1b5765];return _0x369c6e;};const _0x263619=a340_0x369c;'use strict';const express=require('express'),router=express[_0x263619('0xc')](),auth=require(_0x263619('0x9')),controller=require(_0x263619('0x1'));router[_0x263619('0x7')]('/',auth['isAuthenticated'](),controller[_0x263619('0xa')]),router[_0x263619('0x7')](_0x263619('0x0'),auth[_0x263619('0x4')](),controller['show']),router[_0x263619('0x6')]('/',auth[_0x263619('0x4')](),controller[_0x263619('0x3')]),router['put'](_0x263619('0x0'),auth[_0x263619('0x4')](),controller[_0x263619('0x8')]),router[_0x263619('0x2')](_0x263619('0x0'),auth[_0x263619('0x4')](),controller[_0x263619('0x5')]),module[_0x263619('0xb')]=router; \ No newline at end of file +const a409_0x4e40=['./intZendeskField.controller','delete','Router','index','get','isAuthenticated','destroy','/:id','show','update','exports','create'];(function(_0x281a59,_0x1c7038){const _0x4e40ba=function(_0x5aabd3){while(--_0x5aabd3){_0x281a59['push'](_0x281a59['shift']());}};_0x4e40ba(++_0x1c7038);}(a409_0x4e40,0x17b));const a409_0x5aab=function(_0x281a59,_0x1c7038){_0x281a59=_0x281a59-0xb6;let _0x4e40ba=a409_0x4e40[_0x281a59];return _0x4e40ba;};const a409_0x20e82a=a409_0x5aab;'use strict';const express=require('express'),router=express[a409_0x20e82a(0xbd)](),auth=require('../../components/auth/service'),controller=require(a409_0x20e82a(0xbb));router[a409_0x20e82a(0xbf)]('/',auth['isAuthenticated'](),controller[a409_0x20e82a(0xbe)]),router[a409_0x20e82a(0xbf)](a409_0x20e82a(0xb6),auth[a409_0x20e82a(0xc0)](),controller[a409_0x20e82a(0xb7)]),router['post']('/',auth[a409_0x20e82a(0xc0)](),controller[a409_0x20e82a(0xba)]),router['put']('/:id',auth[a409_0x20e82a(0xc0)](),controller[a409_0x20e82a(0xb8)]),router[a409_0x20e82a(0xbc)](a409_0x20e82a(0xb6),auth[a409_0x20e82a(0xc0)](),controller[a409_0x20e82a(0xc1)]),module[a409_0x20e82a(0xb9)]=router; \ No newline at end of file diff --git a/server/api/intZendeskField/intZendeskField.attributes.js b/server/api/intZendeskField/intZendeskField.attributes.js index 7ec2bb1..af49471 100644 --- a/server/api/intZendeskField/intZendeskField.attributes.js +++ b/server/api/intZendeskField/intZendeskField.attributes.js @@ -1 +1 @@ -const a341_0x35d7=['BOOLEAN','string','STRING','keyValue','customVariable','ENUM','variable','exports'];(function(_0x32ef8a,_0x35d760){const _0x142ac7=function(_0x527deb){while(--_0x527deb){_0x32ef8a['push'](_0x32ef8a['shift']());}};_0x142ac7(++_0x35d760);}(a341_0x35d7,0x11e));const a341_0x142a=function(_0x32ef8a,_0x35d760){_0x32ef8a=_0x32ef8a-0x0;let _0x142ac7=a341_0x35d7[_0x32ef8a];return _0x142ac7;};const _0x4aa2df=a341_0x142a;'use strict';const Sequelize=require('sequelize');module[_0x4aa2df('0x1')]={'type':{'type':Sequelize[_0x4aa2df('0x7')](_0x4aa2df('0x3'),_0x4aa2df('0x0'),_0x4aa2df('0x6'),_0x4aa2df('0x5')),'defaultValue':_0x4aa2df('0x3')},'content':{'type':Sequelize[_0x4aa2df('0x4')]},'key':{'type':Sequelize[_0x4aa2df('0x4')]},'keyType':{'type':Sequelize['ENUM']('string',_0x4aa2df('0x0'),_0x4aa2df('0x6'))},'keyContent':{'type':Sequelize[_0x4aa2df('0x4')]},'idField':{'type':Sequelize[_0x4aa2df('0x4')]},'nameField':{'type':Sequelize[_0x4aa2df('0x4')]},'customField':{'type':Sequelize[_0x4aa2df('0x2')],'defaultValue':!![]},'variableName':{'type':Sequelize['STRING']}}; \ No newline at end of file +const a410_0x18aa=['attributes','STRING','customVariable','variable','keyValue','exports','ENUM','string'];(function(_0x21b216,_0x56e58a){const _0x18aa0d=function(_0x2d3430){while(--_0x2d3430){_0x21b216['push'](_0x21b216['shift']());}};_0x18aa0d(++_0x56e58a);}(a410_0x18aa,0xa4));const a410_0x2d34=function(_0x21b216,_0x56e58a){_0x21b216=_0x21b216-0x197;let _0x18aa0d=a410_0x18aa[_0x21b216];return _0x18aa0d;};const a410_0x298e9d=a410_0x2d34;'use strict';const {DataTypes}=require('sequelize'),attributes={'type':{'type':DataTypes['ENUM']('string',a410_0x298e9d(0x19e),a410_0x298e9d(0x19d),a410_0x298e9d(0x197)),'defaultValue':a410_0x298e9d(0x19a)},'content':{'type':DataTypes[a410_0x298e9d(0x19c)]},'key':{'type':DataTypes[a410_0x298e9d(0x19c)]},'keyType':{'type':DataTypes[a410_0x298e9d(0x199)](a410_0x298e9d(0x19a),a410_0x298e9d(0x19e),a410_0x298e9d(0x19d))},'keyContent':{'type':DataTypes['STRING']},'idField':{'type':DataTypes['STRING']},'nameField':{'type':DataTypes[a410_0x298e9d(0x19c)]},'customField':{'type':DataTypes['BOOLEAN'],'defaultValue':!![]},'variableName':{'type':DataTypes['STRING']}};module[a410_0x298e9d(0x198)][a410_0x298e9d(0x19b)]=attributes; \ No newline at end of file diff --git a/server/api/intZendeskField/intZendeskField.controller.js b/server/api/intZendeskField/intZendeskField.controller.js index fdcde9c..a5a677d 100644 --- a/server/api/intZendeskField/intZendeskField.controller.js +++ b/server/api/intZendeskField/intZendeskField.controller.js @@ -1 +1 @@ -const a342_0x1655=['merge','map','findAll','include','pick','lodash','length','limit','filters','keys','fields','offset','filter','sort','intersection','set','then','query','send','rawAttributes','params','../../config/logger','catch','end','../../components/parsers/qs','destroy','sequelize','includeAll','like','name','undefined','order','body','stack','nolimit','type','ZendeskField','attributes','key','index','model','status','where','create','count','VIRTUAL','fieldName','findOne','update','json'];(function(_0x16d327,_0x165539){const _0x45330e=function(_0x5796dc){while(--_0x5796dc){_0x16d327['push'](_0x16d327['shift']());}};_0x45330e(++_0x165539);}(a342_0x1655,0x12d));const a342_0x4533=function(_0x16d327,_0x165539){_0x16d327=_0x16d327-0x0;let _0x45330e=a342_0x1655[_0x16d327];return _0x45330e;};const _0x139721=a342_0x4533;'use strict';const _=require(_0x139721('0x4')),qs=require(_0x139721('0x17')),logger=require(_0x139721('0x14'))('api'),db=require('../../mysqldb')['db'],{Op}=require(_0x139721('0x19'));function respondWithResult(_0x5796dc,_0x206c26){return _0x206c26=_0x206c26||0xc8,function(_0x32f489){const _0x1fc24a=a342_0x4533;if(_0x32f489)return _0x5796dc[_0x1fc24a('0x28')](_0x206c26)['json'](_0x32f489);};}function respondWithFilteredResult(_0x1e533b,_0x3c6f8c){return function(_0x24cb24){const _0x3cc307=a342_0x4533;if(_0x24cb24){const _0x4ea2e0=_0x24cb24[_0x3cc307('0x2b')],_0xf4b6d4=_0x3c6f8c['offset'];let _0x14be4a=_0x3c6f8c[_0x3cc307('0xa')]+_0x3c6f8c[_0x3cc307('0x6')],_0x1ebbd9;return _0x14be4a>=_0x4ea2e0?(_0x14be4a=_0x4ea2e0,_0x1ebbd9=0xc8):_0x1ebbd9=0xce,_0x1e533b[_0x3cc307('0x28')](_0x1ebbd9),_0x1e533b[_0x3cc307('0xe')]('Content-Range',_0xf4b6d4+'-'+_0x14be4a+'/'+_0x4ea2e0)[_0x3cc307('0x30')](_0x24cb24);}return null;};}function saveUpdates(_0x5a9179){return function(_0x386fc2){const _0x191d35=a342_0x4533;if(_0x386fc2)return _0x386fc2[_0x191d35('0x2f')](_0x5a9179)[_0x191d35('0xf')](function(_0x2f1ef5){return _0x2f1ef5;});return null;};}function removeEntity(_0x3344ff){return function(_0x49dc1e){if(_0x49dc1e)return _0x49dc1e['destroy']()['then'](function(){const _0x319010=a342_0x4533;_0x3344ff[_0x319010('0x28')](0xcc)[_0x319010('0x16')]();});};}function handleEntityNotFound(_0x35a0c1){return function(_0x35edbe){return!_0x35edbe&&_0x35a0c1['sendStatus'](0x194),_0x35edbe;};}function handleError(_0x11b0e3,_0x418ec2){return _0x418ec2=_0x418ec2||0x1f4,function(_0x5bf85a){const _0x3291c9=a342_0x4533;logger['error'](_0x5bf85a[_0x3291c9('0x20')]),_0x5bf85a[_0x3291c9('0x1c')]&&delete _0x5bf85a[_0x3291c9('0x1c')],_0x11b0e3['status'](_0x418ec2)[_0x3291c9('0x11')](_0x5bf85a);};}exports[_0x139721('0x26')]=function(_0x22900a,_0xa492f7){const _0x1be126=_0x139721;let _0x192215={};const _0x334294={},_0x5de4b3={'count':0x0,'rows':[]},_0x49675f=_['map'](db[_0x1be126('0x23')][_0x1be126('0x12')],function(_0x43ea5e){const _0x395dfb=_0x1be126;return{'name':_0x43ea5e[_0x395dfb('0x2d')],'type':_0x43ea5e[_0x395dfb('0x22')][_0x395dfb('0x25')]};});_0x334294['model']=_[_0x1be126('0x0')](_0x49675f,'name'),_0x334294[_0x1be126('0x10')]=_[_0x1be126('0x8')](_0x22900a[_0x1be126('0x10')]),_0x334294[_0x1be126('0x7')]=_[_0x1be126('0xd')](_0x334294['model'],_0x334294[_0x1be126('0x10')]),_0x192215['attributes']=_[_0x1be126('0xd')](_0x334294['model'],qs[_0x1be126('0x9')](_0x22900a[_0x1be126('0x10')][_0x1be126('0x9')])),_0x192215[_0x1be126('0x24')]=_0x192215[_0x1be126('0x24')][_0x1be126('0x5')]?_0x192215[_0x1be126('0x24')]:_0x334294[_0x1be126('0x27')];typeof _0x22900a[_0x1be126('0x10')][_0x1be126('0x21')]===_0x1be126('0x1d')&&(_0x192215['limit']=qs[_0x1be126('0x6')](_0x22900a['query']['limit']),_0x192215[_0x1be126('0xa')]=qs[_0x1be126('0xa')](_0x22900a[_0x1be126('0x10')]['offset']));_0x192215[_0x1be126('0x1e')]=qs[_0x1be126('0xc')](_0x22900a[_0x1be126('0x10')][_0x1be126('0xc')]),_0x192215[_0x1be126('0x29')]=qs[_0x1be126('0x7')](_[_0x1be126('0x3')](_0x22900a[_0x1be126('0x10')],_0x334294['filters']),_0x49675f);_0x22900a['query'][_0x1be126('0xb')]&&(_0x192215[_0x1be126('0x29')]=_[_0x1be126('0x31')](_0x192215['where'],{[Op['or']]:_[_0x1be126('0x0')](_0x49675f,function(_0x23aed6){const _0x56d84a=_0x1be126;if(_0x23aed6[_0x56d84a('0x22')]!==_0x56d84a('0x2c')){const _0x2f671a={};return _0x2f671a[_0x23aed6[_0x56d84a('0x1c')]]={[Op[_0x56d84a('0x1b')]]:'%'+_0x22900a[_0x56d84a('0x10')][_0x56d84a('0xb')]+'%'},_0x2f671a;}})}));_0x192215=_['merge']({},_0x192215,_0x22900a['options']);const _0x3e43c8={'where':_0x192215[_0x1be126('0x29')]};return db[_0x1be126('0x23')][_0x1be126('0x2b')](_0x3e43c8)[_0x1be126('0xf')](function(_0x5c6e7f){const _0x5d201f=_0x1be126;return _0x5de4b3[_0x5d201f('0x2b')]=_0x5c6e7f,_0x22900a[_0x5d201f('0x10')][_0x5d201f('0x1a')]&&(_0x192215['include']=[{'all':!![]}]),db[_0x5d201f('0x23')][_0x5d201f('0x1')](_0x192215);})['then'](function(_0x2c7f3e){return _0x5de4b3['rows']=_0x2c7f3e,_0x5de4b3;})[_0x1be126('0xf')](respondWithFilteredResult(_0xa492f7,_0x192215))[_0x1be126('0x15')](handleError(_0xa492f7,null));},exports['show']=function(_0x1318b4,_0x584d15){const _0x39b29b=_0x139721;let _0x51ebcd={'raw':!![],'where':{'id':_0x1318b4['params']['id']}};const _0x36eb12={};return _0x36eb12['model']=_[_0x39b29b('0x8')](db[_0x39b29b('0x23')][_0x39b29b('0x12')]),_0x36eb12['query']=_['keys'](_0x1318b4[_0x39b29b('0x10')]),_0x36eb12[_0x39b29b('0x7')]=_[_0x39b29b('0xd')](_0x36eb12[_0x39b29b('0x27')],_0x36eb12[_0x39b29b('0x10')]),_0x51ebcd[_0x39b29b('0x24')]=_[_0x39b29b('0xd')](_0x36eb12[_0x39b29b('0x27')],qs[_0x39b29b('0x9')](_0x1318b4[_0x39b29b('0x10')][_0x39b29b('0x9')])),_0x51ebcd[_0x39b29b('0x24')]=_0x51ebcd[_0x39b29b('0x24')][_0x39b29b('0x5')]?_0x51ebcd[_0x39b29b('0x24')]:_0x36eb12[_0x39b29b('0x27')],_0x1318b4['query']['includeAll']&&(_0x51ebcd[_0x39b29b('0x2')]=[{'all':!![]}]),_0x51ebcd=_[_0x39b29b('0x31')]({},_0x51ebcd,_0x1318b4['options']),db[_0x39b29b('0x23')]['findOne'](_0x51ebcd)[_0x39b29b('0xf')](handleEntityNotFound(_0x584d15,null))[_0x39b29b('0xf')](respondWithResult(_0x584d15,null))[_0x39b29b('0x15')](handleError(_0x584d15,null));},exports[_0x139721('0x2a')]=function(_0x1333f8,_0x26e6bf){const _0x2f4129=_0x139721;return db[_0x2f4129('0x23')][_0x2f4129('0x2a')](_0x1333f8[_0x2f4129('0x1f')],{})[_0x2f4129('0xf')](respondWithResult(_0x26e6bf,0xc9))[_0x2f4129('0x15')](handleError(_0x26e6bf,null));},exports[_0x139721('0x2f')]=function(_0x24a2ad,_0x3311ec){const _0x289693=_0x139721;return _0x24a2ad[_0x289693('0x1f')]['id']&&delete _0x24a2ad[_0x289693('0x1f')]['id'],db[_0x289693('0x23')][_0x289693('0x2e')]({'where':{'id':_0x24a2ad[_0x289693('0x13')]['id']}})[_0x289693('0xf')](handleEntityNotFound(_0x3311ec,null))['then'](saveUpdates(_0x24a2ad['body'],null))[_0x289693('0xf')](respondWithResult(_0x3311ec,null))[_0x289693('0x15')](handleError(_0x3311ec,null));},exports[_0x139721('0x18')]=function(_0xe9accf,_0x4b6f26){const _0x416997=_0x139721;return db['ZendeskField'][_0x416997('0x2e')]({'where':{'id':_0xe9accf[_0x416997('0x13')]['id']}})[_0x416997('0xf')](handleEntityNotFound(_0x4b6f26,null))['then'](removeEntity(_0x4b6f26,null))[_0x416997('0x15')](handleError(_0x4b6f26,null));}; \ No newline at end of file +const a411_0x538c=['../../components/parsers/qs','length','set','create','catch','include','map','fieldName','body','offset','show','end','findOne','rows','attributes','filters','limit','where','Content-Range','order','fields','destroy','lodash','ZendeskField','json','pick','sequelize','index','model','name','then','intersection','query','options','filter','type','sort','params','status','send','keys','merge','rawAttributes','../../config/logger','VIRTUAL','key','includeAll','api'];(function(_0x1998f7,_0x506711){const _0x538c44=function(_0x110bea){while(--_0x110bea){_0x1998f7['push'](_0x1998f7['shift']());}};_0x538c44(++_0x506711);}(a411_0x538c,0x189));const a411_0x110b=function(_0x1998f7,_0x506711){_0x1998f7=_0x1998f7-0x9c;let _0x538c44=a411_0x538c[_0x1998f7];return _0x538c44;};const a411_0x459e30=a411_0x110b;'use strict';const _=require(a411_0x459e30(0xa9)),qs=require(a411_0x459e30(0xc3)),logger=require(a411_0x459e30(0xbe))(a411_0x459e30(0xc2)),{db}=require('../../mysqldb'),{Op}=require(a411_0x459e30(0xad));function respondWithResult(_0x17bfce,_0x3dc746){return _0x3dc746=_0x3dc746||0xc8,function(_0x143809){const _0x394a8a=a411_0x110b;if(_0x143809)return _0x17bfce[_0x394a8a(0xb9)](_0x3dc746)[_0x394a8a(0xab)](_0x143809);};}function respondWithFilteredResult(_0x3f3684,_0x221c50){return function(_0x454946){const _0x57a17c=a411_0x110b;if(_0x454946){const _0x405d1c=_0x454946['count'],_0x3ef627=_0x221c50[_0x57a17c(0x9c)];let _0x44c5e4=_0x221c50[_0x57a17c(0x9c)]+_0x221c50['limit'],_0x418e0f;return _0x44c5e4>=_0x405d1c?(_0x44c5e4=_0x405d1c,_0x418e0f=0xc8):_0x418e0f=0xce,_0x3f3684['status'](_0x418e0f),_0x3f3684[_0x57a17c(0xc5)](_0x57a17c(0xa5),_0x3ef627+'-'+_0x44c5e4+'/'+_0x405d1c)[_0x57a17c(0xab)](_0x454946);}return null;};}function saveUpdates(_0x4b83ea){return function(_0x4ac60c){if(_0x4ac60c)return _0x4ac60c['update'](_0x4b83ea)['then'](function(_0x30738b){return _0x30738b;});return null;};}function removeEntity(_0x2b2aab){return function(_0x5b2afb){const _0x4633de=a411_0x110b;if(_0x5b2afb)return _0x5b2afb[_0x4633de(0xa8)]()[_0x4633de(0xb1)](function(){const _0x1c5681=_0x4633de;_0x2b2aab['status'](0xcc)[_0x1c5681(0x9e)]();});};}function handleEntityNotFound(_0x5d4a29){return function(_0x6c5a1a){return!_0x6c5a1a&&_0x5d4a29['sendStatus'](0x194),_0x6c5a1a;};}function handleError(_0x274cd2,_0xefda7c){return _0xefda7c=_0xefda7c||0x1f4,function(_0x3d8a46){const _0x1bfc52=a411_0x110b;logger['error'](_0x3d8a46['stack']),_0x3d8a46[_0x1bfc52(0xb0)]&&delete _0x3d8a46[_0x1bfc52(0xb0)],_0x274cd2[_0x1bfc52(0xb9)](_0xefda7c)[_0x1bfc52(0xba)](_0x3d8a46);};}exports[a411_0x459e30(0xae)]=function(_0x3f16f8,_0x24b623){const _0x4bfa36=a411_0x459e30;let _0x11688a={};const _0x56c798={},_0x2eb74c={'count':0x0,'rows':[]},_0x2783f9=_[_0x4bfa36(0xc9)](db['ZendeskField'][_0x4bfa36(0xbd)],function(_0x5b5017){const _0x2c6a49=_0x4bfa36;return{'name':_0x5b5017[_0x2c6a49(0xca)],'type':_0x5b5017[_0x2c6a49(0xb6)][_0x2c6a49(0xc0)]};});_0x56c798[_0x4bfa36(0xaf)]=_[_0x4bfa36(0xc9)](_0x2783f9,_0x4bfa36(0xb0)),_0x56c798[_0x4bfa36(0xb3)]=_[_0x4bfa36(0xbb)](_0x3f16f8[_0x4bfa36(0xb3)]),_0x56c798[_0x4bfa36(0xa2)]=_[_0x4bfa36(0xb2)](_0x56c798[_0x4bfa36(0xaf)],_0x56c798['query']),_0x11688a[_0x4bfa36(0xa1)]=_[_0x4bfa36(0xb2)](_0x56c798[_0x4bfa36(0xaf)],qs[_0x4bfa36(0xa7)](_0x3f16f8[_0x4bfa36(0xb3)][_0x4bfa36(0xa7)])),_0x11688a['attributes']=_0x11688a[_0x4bfa36(0xa1)][_0x4bfa36(0xc4)]?_0x11688a['attributes']:_0x56c798[_0x4bfa36(0xaf)];typeof _0x3f16f8['query']['nolimit']==='undefined'&&(_0x11688a[_0x4bfa36(0xa3)]=qs['limit'](_0x3f16f8[_0x4bfa36(0xb3)]['limit']),_0x11688a[_0x4bfa36(0x9c)]=qs[_0x4bfa36(0x9c)](_0x3f16f8[_0x4bfa36(0xb3)][_0x4bfa36(0x9c)]));_0x11688a[_0x4bfa36(0xa6)]=qs['sort'](_0x3f16f8['query'][_0x4bfa36(0xb7)]),_0x11688a[_0x4bfa36(0xa4)]=qs[_0x4bfa36(0xa2)](_[_0x4bfa36(0xac)](_0x3f16f8[_0x4bfa36(0xb3)],_0x56c798[_0x4bfa36(0xa2)]),_0x2783f9);_0x3f16f8[_0x4bfa36(0xb3)][_0x4bfa36(0xb5)]&&(_0x11688a[_0x4bfa36(0xa4)]=_['merge'](_0x11688a[_0x4bfa36(0xa4)],{[Op['or']]:_[_0x4bfa36(0xc9)](_0x2783f9,function(_0x219f2a){const _0x583bde=_0x4bfa36;if(_0x219f2a['type']!==_0x583bde(0xbf)){const _0x1807e8={};return _0x1807e8[_0x219f2a['name']]={[Op['like']]:'%'+_0x3f16f8[_0x583bde(0xb3)][_0x583bde(0xb5)]+'%'},_0x1807e8;}})}));_0x11688a=_[_0x4bfa36(0xbc)]({},_0x11688a,_0x3f16f8[_0x4bfa36(0xb4)]);const _0x416be8={'where':_0x11688a['where']};return db[_0x4bfa36(0xaa)]['count'](_0x416be8)[_0x4bfa36(0xb1)](function(_0x359a72){const _0x2bc2cd=_0x4bfa36;return _0x2eb74c['count']=_0x359a72,_0x3f16f8[_0x2bc2cd(0xb3)][_0x2bc2cd(0xc1)]&&(_0x11688a['include']=[{'all':!![]}]),db[_0x2bc2cd(0xaa)]['findAll'](_0x11688a);})['then'](function(_0x4bc12d){const _0x50b415=_0x4bfa36;return _0x2eb74c[_0x50b415(0xa0)]=_0x4bc12d,_0x2eb74c;})[_0x4bfa36(0xb1)](respondWithFilteredResult(_0x24b623,_0x11688a))[_0x4bfa36(0xc7)](handleError(_0x24b623,null));},exports[a411_0x459e30(0x9d)]=function(_0x4f720b,_0x190dc5){const _0x1fa8ee=a411_0x459e30;let _0x156cd6={'raw':!![],'where':{'id':_0x4f720b[_0x1fa8ee(0xb8)]['id']}};const _0xef9f5d={};return _0xef9f5d[_0x1fa8ee(0xaf)]=_[_0x1fa8ee(0xbb)](db['ZendeskField'][_0x1fa8ee(0xbd)]),_0xef9f5d['query']=_['keys'](_0x4f720b['query']),_0xef9f5d[_0x1fa8ee(0xa2)]=_[_0x1fa8ee(0xb2)](_0xef9f5d[_0x1fa8ee(0xaf)],_0xef9f5d[_0x1fa8ee(0xb3)]),_0x156cd6[_0x1fa8ee(0xa1)]=_['intersection'](_0xef9f5d[_0x1fa8ee(0xaf)],qs[_0x1fa8ee(0xa7)](_0x4f720b[_0x1fa8ee(0xb3)][_0x1fa8ee(0xa7)])),_0x156cd6[_0x1fa8ee(0xa1)]=_0x156cd6[_0x1fa8ee(0xa1)][_0x1fa8ee(0xc4)]?_0x156cd6[_0x1fa8ee(0xa1)]:_0xef9f5d[_0x1fa8ee(0xaf)],_0x4f720b[_0x1fa8ee(0xb3)]['includeAll']&&(_0x156cd6[_0x1fa8ee(0xc8)]=[{'all':!![]}]),_0x156cd6=_['merge']({},_0x156cd6,_0x4f720b['options']),db['ZendeskField']['findOne'](_0x156cd6)[_0x1fa8ee(0xb1)](handleEntityNotFound(_0x190dc5,null))[_0x1fa8ee(0xb1)](respondWithResult(_0x190dc5,null))[_0x1fa8ee(0xc7)](handleError(_0x190dc5,null));},exports[a411_0x459e30(0xc6)]=function(_0x37820f,_0x46790b){const _0xe49c3=a411_0x459e30;return db[_0xe49c3(0xaa)][_0xe49c3(0xc6)](_0x37820f[_0xe49c3(0xcb)],{})[_0xe49c3(0xb1)](respondWithResult(_0x46790b,0xc9))[_0xe49c3(0xc7)](handleError(_0x46790b,null));},exports['update']=function(_0x266534,_0x529e5a){const _0xe51dc4=a411_0x459e30;return _0x266534[_0xe51dc4(0xcb)]['id']&&delete _0x266534[_0xe51dc4(0xcb)]['id'],db[_0xe51dc4(0xaa)][_0xe51dc4(0x9f)]({'where':{'id':_0x266534[_0xe51dc4(0xb8)]['id']}})[_0xe51dc4(0xb1)](handleEntityNotFound(_0x529e5a,null))[_0xe51dc4(0xb1)](saveUpdates(_0x266534[_0xe51dc4(0xcb)],null))[_0xe51dc4(0xb1)](respondWithResult(_0x529e5a,null))[_0xe51dc4(0xc7)](handleError(_0x529e5a,null));},exports[a411_0x459e30(0xa8)]=function(_0x42abb8,_0x564f38){const _0x235f3c=a411_0x459e30;return db[_0x235f3c(0xaa)][_0x235f3c(0x9f)]({'where':{'id':_0x42abb8[_0x235f3c(0xb8)]['id']}})['then'](handleEntityNotFound(_0x564f38,null))[_0x235f3c(0xb1)](removeEntity(_0x564f38,null))[_0x235f3c(0xc7)](handleError(_0x564f38,null));}; \ No newline at end of file diff --git a/server/api/intZendeskField/intZendeskField.model.js b/server/api/intZendeskField/intZendeskField.model.js index 8b94721..c3a36b8 100644 --- a/server/api/intZendeskField/intZendeskField.model.js +++ b/server/api/intZendeskField/intZendeskField.model.js @@ -1 +1 @@ -const a343_0x1bf2=['zendesk_unique_index','int_zendesk_fields','exports','./intZendeskField.attributes','idField','define','ZendeskField','FieldId'];(function(_0x9cf553,_0x1bf28b){const _0x5ec061=function(_0x4230c7){while(--_0x4230c7){_0x9cf553['push'](_0x9cf553['shift']());}};_0x5ec061(++_0x1bf28b);}(a343_0x1bf2,0x1b3));const a343_0x5ec0=function(_0x9cf553,_0x1bf28b){_0x9cf553=_0x9cf553-0x0;let _0x5ec061=a343_0x1bf2[_0x9cf553];return _0x5ec061;};const _0x118618=a343_0x5ec0;'use strict';const attributes=require(_0x118618('0x0'));module[_0x118618('0x7')]=function(_0x4230c7){const _0x5d9a22=_0x118618,_0x57255a=_0x4230c7[_0x5d9a22('0x2')](_0x5d9a22('0x3'),attributes,{'tableName':_0x5d9a22('0x6'),'paranoid':![],'indexes':[{'name':_0x5d9a22('0x5'),'fields':[_0x5d9a22('0x1'),_0x5d9a22('0x4')],'unique':!![]}],'timestamps':!![]});return _0x57255a;}; \ No newline at end of file +const a412_0x1e1e=['./intZendeskField.options','exports','function','ZendeskField','sequelize','init'];(function(_0x50f33a,_0x512878){const _0x1e1ed6=function(_0x1fdad6){while(--_0x1fdad6){_0x50f33a['push'](_0x50f33a['shift']());}};_0x1e1ed6(++_0x512878);}(a412_0x1e1e,0xc0));const a412_0x1fda=function(_0x50f33a,_0x512878){_0x50f33a=_0x50f33a-0x76;let _0x1e1ed6=a412_0x1e1e[_0x50f33a];return _0x1e1ed6;};const a412_0x15ac07=a412_0x1fda;'use strict';const {Model}=require(a412_0x15ac07(0x7a)),{attributes}=require('./intZendeskField.attributes'),{options}=require(a412_0x15ac07(0x76));class ZendeskField extends Model{}function init(_0xbd2811,_0x547502){const _0x4cb998=a412_0x15ac07,_0x377088=options(_0xbd2811),_0x5d1041=typeof _0x547502===_0x4cb998(0x78)?_0x547502(_0x377088):_0x377088;return ZendeskField[_0x4cb998(0x7b)](attributes,_0x5d1041),ZendeskField;}module['exports'][a412_0x15ac07(0x79)]=ZendeskField,module[a412_0x15ac07(0x77)][a412_0x15ac07(0x7b)]=init; \ No newline at end of file diff --git a/server/api/intZendeskField/intZendeskField.options.js b/server/api/intZendeskField/intZendeskField.options.js new file mode 100644 index 0000000..9279ba6 --- /dev/null +++ b/server/api/intZendeskField/intZendeskField.options.js @@ -0,0 +1 @@ +var a413_0x1372=['idField','FieldId','int_zendesk_fields','zendesk_unique_index'];(function(_0x3e9568,_0x10a32a){var _0x137290=function(_0x59b28c){while(--_0x59b28c){_0x3e9568['push'](_0x3e9568['shift']());}};_0x137290(++_0x10a32a);}(a413_0x1372,0xb3));var a413_0x59b2=function(_0x3e9568,_0x10a32a){_0x3e9568=_0x3e9568-0x180;var _0x137290=a413_0x1372[_0x3e9568];return _0x137290;};function options(_0x384db9){var _0x4b7bcd=a413_0x59b2;return{'sequelize':_0x384db9,'tableName':_0x4b7bcd(0x183),'paranoid':![],'indexes':[{'name':_0x4b7bcd(0x180),'fields':[_0x4b7bcd(0x181),_0x4b7bcd(0x182)],'unique':!![]}],'timestamps':!![]};}module['exports']['options']=options; \ No newline at end of file diff --git a/server/api/intZohoAccount/index.js b/server/api/intZohoAccount/index.js index ce569d3..988034e 100644 --- a/server/api/intZohoAccount/index.js +++ b/server/api/intZohoAccount/index.js @@ -1 +1 @@ -const a344_0x168a=['get','express','addConfiguration','exports','../../components/auth/service','create','index','update','./intZohoAccount.controller','/:id/configurations','isAuthenticated','post','destroy','/:id'];(function(_0x268f7c,_0x168aa3){const _0x5b0c78=function(_0xc8b860){while(--_0xc8b860){_0x268f7c['push'](_0x268f7c['shift']());}};_0x5b0c78(++_0x168aa3);}(a344_0x168a,0x1c3));const a344_0x5b0c=function(_0x268f7c,_0x168aa3){_0x268f7c=_0x268f7c-0x0;let _0x5b0c78=a344_0x168a[_0x268f7c];return _0x5b0c78;};const _0x7f4e64=a344_0x5b0c;'use strict';const express=require(_0x7f4e64('0xc')),router=express['Router'](),auth=require(_0x7f4e64('0x1')),controller=require(_0x7f4e64('0x5'));router[_0x7f4e64('0xb')]('/',auth[_0x7f4e64('0x7')](),controller[_0x7f4e64('0x3')]),router[_0x7f4e64('0xb')](_0x7f4e64('0xa'),auth[_0x7f4e64('0x7')](),controller['show']),router[_0x7f4e64('0xb')](_0x7f4e64('0x6'),auth['isAuthenticated'](),controller['getConfigurations']),router['get']('/:id/fields',auth['isAuthenticated'](),controller['getFields']),router['post']('/',auth[_0x7f4e64('0x7')](),controller[_0x7f4e64('0x2')]),router[_0x7f4e64('0x8')](_0x7f4e64('0x6'),auth['isAuthenticated'](),controller[_0x7f4e64('0xd')]),router['put'](_0x7f4e64('0xa'),auth[_0x7f4e64('0x7')](),controller[_0x7f4e64('0x4')]),router['delete'](_0x7f4e64('0xa'),auth[_0x7f4e64('0x7')](),controller[_0x7f4e64('0x9')]),module[_0x7f4e64('0x0')]=router; \ No newline at end of file +const a414_0xdcd6=['update','show','exports','create','get','isAuthenticated','/:id/configurations','express','addConfiguration','./intZohoAccount.controller','put','../../components/auth/service','Router','getConfigurations','getFields','/:id/fields','/:id'];(function(_0xc18a0e,_0xa1475b){const _0xdcd644=function(_0x303446){while(--_0x303446){_0xc18a0e['push'](_0xc18a0e['shift']());}};_0xdcd644(++_0xa1475b);}(a414_0xdcd6,0x1a5));const a414_0x3034=function(_0xc18a0e,_0xa1475b){_0xc18a0e=_0xc18a0e-0xab;let _0xdcd644=a414_0xdcd6[_0xc18a0e];return _0xdcd644;};const a414_0x325936=a414_0x3034;'use strict';const express=require(a414_0x325936(0xb6)),router=express[a414_0x325936(0xbb)](),auth=require(a414_0x325936(0xba)),controller=require(a414_0x325936(0xb8));router[a414_0x325936(0xb3)]('/',auth['isAuthenticated'](),controller['index']),router[a414_0x325936(0xb3)](a414_0x325936(0xae),auth[a414_0x325936(0xb4)](),controller[a414_0x325936(0xb0)]),router[a414_0x325936(0xb3)](a414_0x325936(0xb5),auth[a414_0x325936(0xb4)](),controller[a414_0x325936(0xab)]),router[a414_0x325936(0xb3)](a414_0x325936(0xad),auth[a414_0x325936(0xb4)](),controller[a414_0x325936(0xac)]),router['post']('/',auth[a414_0x325936(0xb4)](),controller[a414_0x325936(0xb2)]),router['post'](a414_0x325936(0xb5),auth[a414_0x325936(0xb4)](),controller[a414_0x325936(0xb7)]),router[a414_0x325936(0xb9)](a414_0x325936(0xae),auth[a414_0x325936(0xb4)](),controller[a414_0x325936(0xaf)]),router['delete'](a414_0x325936(0xae),auth[a414_0x325936(0xb4)](),controller['destroy']),module[a414_0x325936(0xb1)]=router; \ No newline at end of file diff --git a/server/api/intZohoAccount/intZohoAccount.attributes.js b/server/api/intZohoAccount/intZohoAccount.attributes.js index ae92130..f9a8ff7 100644 --- a/server/api/intZohoAccount/intZohoAccount.attributes.js +++ b/server/api/intZohoAccount/intZohoAccount.attributes.js @@ -1 +1 @@ -const a345_0x42d2=['sequelize','STRING'];(function(_0x47fad6,_0x42d21e){const _0x4546c0=function(_0x219698){while(--_0x219698){_0x47fad6['push'](_0x47fad6['shift']());}};_0x4546c0(++_0x42d21e);}(a345_0x42d2,0x71));const a345_0x4546=function(_0x47fad6,_0x42d21e){_0x47fad6=_0x47fad6-0x0;let _0x4546c0=a345_0x42d2[_0x47fad6];return _0x4546c0;};const _0x51b7e4=a345_0x4546;'use strict';const Sequelize=require(_0x51b7e4('0x1'));module['exports']={'name':{'type':Sequelize[_0x51b7e4('0x0')]},'description':{'type':Sequelize['STRING']},'host':{'type':Sequelize[_0x51b7e4('0x0')]},'zone':{'type':Sequelize[_0x51b7e4('0x0')]},'clientId':{'type':Sequelize['STRING']},'clientSecret':{'type':Sequelize[_0x51b7e4('0x0')]},'serverUrl':{'type':Sequelize[_0x51b7e4('0x0')]},'code':{'type':Sequelize[_0x51b7e4('0x0')]},'refreshToken':{'type':Sequelize['STRING']}}; \ No newline at end of file +const a415_0x39f7=['sequelize','STRING','attributes','exports'];(function(_0x2f85e1,_0x1e0ebe){const _0x39f74f=function(_0x9c3234){while(--_0x9c3234){_0x2f85e1['push'](_0x2f85e1['shift']());}};_0x39f74f(++_0x1e0ebe);}(a415_0x39f7,0x1ed));const a415_0x9c32=function(_0x2f85e1,_0x1e0ebe){_0x2f85e1=_0x2f85e1-0x11f;let _0x39f74f=a415_0x39f7[_0x2f85e1];return _0x39f74f;};const a415_0x21e41a=a415_0x9c32;'use strict';const {DataTypes}=require(a415_0x21e41a(0x122)),attributes={'name':{'type':DataTypes['STRING']},'description':{'type':DataTypes[a415_0x21e41a(0x11f)]},'host':{'type':DataTypes[a415_0x21e41a(0x11f)]},'zone':{'type':DataTypes[a415_0x21e41a(0x11f)]},'clientId':{'type':DataTypes[a415_0x21e41a(0x11f)]},'clientSecret':{'type':DataTypes['STRING']},'serverUrl':{'type':DataTypes['STRING']},'code':{'type':DataTypes[a415_0x21e41a(0x11f)]},'refreshToken':{'type':DataTypes[a415_0x21e41a(0x11f)]}};module[a415_0x21e41a(0x121)][a415_0x21e41a(0x120)]=attributes; \ No newline at end of file diff --git a/server/api/intZohoAccount/intZohoAccount.controller.js b/server/api/intZohoAccount/intZohoAccount.controller.js index 2e5c3f9..1bd9dc0 100644 --- a/server/api/intZohoAccount/intZohoAccount.controller.js +++ b/server/api/intZohoAccount/intZohoAccount.controller.js @@ -1 +1 @@ -const a346_0x2b5e=['https://accounts.zoho.eu','Subject','ZohoConfiguration','getFields','show','clientId','catch','https://accounts.zoho.com.au','refresh_token','https://accounts.zoho.in','test','sendStatus','merge','options','length','filters','include','../../mysqldb','keys','VIRTUAL','serverUrl','error','attributes','channel','api_name','Call_Result','pick_list_values','response','where','index','format','GET','model','zoho.eu','AccountId','message','substring','Unable\x20to\x20retrieve\x20the\x20access\x20token','findOne','stringify','Content-Range','offset','remove','host','WhoId','includes','stack','system_mandatory','statusCode','addConfiguration','request-promise-native','display_label','rawAttributes','https://accounts.zoho.com.cn','create','../../config/logger','zone','includeAll','sort','picklist','type','rows','https://www.zohoapis.%s/crm/v2/settings/fields','key','Call_Duration','order','getConfigurations','lodash','/oauth/v2/token','status','nolimit','../../components/integrations/configuration','update','ZohoAccount','util','api','code','clientSecret','name','query','pick','then','send','sequelize','undefined','body','count','com','Zoho-oauthtoken\x20','limit','refreshToken','filter','intersection','json','destroy','Descriptions','Subjects','set','POST','access_token','params','fields','fieldName','push','custom_field','Call_Start_Time','Description','map','like'];(function(_0x583094,_0x2b5e29){const _0x1cb3d5=function(_0x67603a){while(--_0x67603a){_0x583094['push'](_0x583094['shift']());}};_0x1cb3d5(++_0x2b5e29);}(a346_0x2b5e,0x84));const a346_0x1cb3=function(_0x583094,_0x2b5e29){_0x583094=_0x583094-0x0;let _0x1cb3d5=a346_0x2b5e[_0x583094];return _0x1cb3d5;};const _0x1803e9=a346_0x1cb3;'use strict';const rp=require(_0x1803e9('0x1b')),util=require(_0x1803e9('0x33')),_=require(_0x1803e9('0x2c')),qs=require('../../components/parsers/qs'),logger=require(_0x1803e9('0x20'))(_0x1803e9('0x34')),db=require(_0x1803e9('0x67'))['db'],{Op}=require(_0x1803e9('0x3c')),integrations=require(_0x1803e9('0x30'));function respondWithResult(_0x67603a,_0x10ed26){return _0x10ed26=_0x10ed26||0xc8,function(_0x25e35f){const _0x55bf23=a346_0x1cb3;if(_0x25e35f)return _0x67603a[_0x55bf23('0x2e')](_0x10ed26)['json'](_0x25e35f);};}function respondWithFilteredResult(_0x3bfaf0,_0x25cc24){return function(_0x2dfadf){const _0x2ef3ef=a346_0x1cb3;if(_0x2dfadf){const _0x454ad3=_0x2dfadf[_0x2ef3ef('0x3f')],_0x56544b=_0x25cc24[_0x2ef3ef('0x12')];let _0x142589=_0x25cc24[_0x2ef3ef('0x12')]+_0x25cc24[_0x2ef3ef('0x42')],_0x2348eb;return _0x142589>=_0x454ad3?(_0x142589=_0x454ad3,_0x2348eb=0xc8):_0x2348eb=0xce,_0x3bfaf0[_0x2ef3ef('0x2e')](_0x2348eb),_0x3bfaf0[_0x2ef3ef('0x4a')](_0x2ef3ef('0x11'),_0x56544b+'-'+_0x142589+'/'+_0x454ad3)[_0x2ef3ef('0x46')](_0x2dfadf);}return null;};}function saveUpdates(_0x4b2c4a){return function(_0x3bd843){const _0x1c0b80=a346_0x1cb3;if(_0x3bd843)return _0x3bd843['update'](_0x4b2c4a)[_0x1c0b80('0x3a')](function(_0x5684c6){return _0x5684c6;});return null;};}function removeEntity(_0x122f26){return function(_0x4a2802){const _0x5e82a0=a346_0x1cb3;if(_0x4a2802)return _0x4a2802[_0x5e82a0('0x47')]()[_0x5e82a0('0x3a')](function(){_0x122f26['status'](0xcc)['end']();});};}function handleEntityNotFound(_0x336036){return function(_0x197bfa){const _0x2312e1=a346_0x1cb3;return!_0x197bfa&&_0x336036[_0x2312e1('0x61')](0x194),_0x197bfa;};}function handleError(_0xfe08f9,_0x1abb43){return _0x1abb43=_0x1abb43||0x1f4,function(_0x41aac8){const _0x38008e=a346_0x1cb3;logger[_0x38008e('0x6b')](_0x41aac8[_0x38008e('0x17')]),_0x41aac8[_0x38008e('0x37')]&&delete _0x41aac8[_0x38008e('0x37')],_0xfe08f9['status'](_0x1abb43)[_0x38008e('0x3b')](_0x41aac8);};}exports[_0x1803e9('0x6')]=function(_0x4689a3,_0x5aa026){const _0x317108=_0x1803e9;let _0x59ff3a={};const _0x45b70e={},_0x39f7cb={'count':0x0,'rows':[]},_0x169076=_[_0x317108('0x54')](db[_0x317108('0x32')]['rawAttributes'],function(_0x4b3ba6){const _0x278cb0=_0x317108;return{'name':_0x4b3ba6[_0x278cb0('0x4f')],'type':_0x4b3ba6['type'][_0x278cb0('0x28')]};});_0x45b70e['model']=_['map'](_0x169076,'name'),_0x45b70e[_0x317108('0x38')]=_[_0x317108('0x68')](_0x4689a3[_0x317108('0x38')]),_0x45b70e[_0x317108('0x65')]=_['intersection'](_0x45b70e[_0x317108('0x9')],_0x45b70e[_0x317108('0x38')]),_0x59ff3a[_0x317108('0x6c')]=_[_0x317108('0x45')](_0x45b70e[_0x317108('0x9')],qs[_0x317108('0x4e')](_0x4689a3[_0x317108('0x38')]['fields'])),_0x59ff3a[_0x317108('0x6c')]=_0x59ff3a[_0x317108('0x6c')][_0x317108('0x64')]?_0x59ff3a[_0x317108('0x6c')]:_0x45b70e[_0x317108('0x9')];typeof _0x4689a3[_0x317108('0x38')][_0x317108('0x2f')]===_0x317108('0x3d')&&(_0x59ff3a[_0x317108('0x42')]=qs['limit'](_0x4689a3[_0x317108('0x38')][_0x317108('0x42')]),_0x59ff3a[_0x317108('0x12')]=qs[_0x317108('0x12')](_0x4689a3[_0x317108('0x38')]['offset']));_0x59ff3a['order']=qs[_0x317108('0x23')](_0x4689a3[_0x317108('0x38')]['sort']),_0x59ff3a[_0x317108('0x5')]=qs[_0x317108('0x65')](_[_0x317108('0x39')](_0x4689a3['query'],_0x45b70e[_0x317108('0x65')]),_0x169076);_0x4689a3['query'][_0x317108('0x44')]&&(_0x59ff3a[_0x317108('0x5')]=_[_0x317108('0x62')](_0x59ff3a[_0x317108('0x5')],{[Op['or']]:_[_0x317108('0x54')](_0x169076,function(_0x167b7f){const _0x30b9af=_0x317108;if(_0x167b7f[_0x30b9af('0x25')]!==_0x30b9af('0x69')){const _0x35d191={};return _0x35d191[_0x167b7f['name']]={[Op['like']]:'%'+_0x4689a3['query'][_0x30b9af('0x44')]+'%'},_0x35d191;}})}));_0x59ff3a=_[_0x317108('0x62')]({},_0x59ff3a,_0x4689a3[_0x317108('0x63')]);const _0x4c38fb={'where':_0x59ff3a['where']};return db['ZohoAccount'][_0x317108('0x3f')](_0x4c38fb)[_0x317108('0x3a')](function(_0x3eb0c9){const _0x2e8d89=_0x317108;return _0x39f7cb[_0x2e8d89('0x3f')]=_0x3eb0c9,_0x4689a3[_0x2e8d89('0x38')]['includeAll']&&(_0x59ff3a[_0x2e8d89('0x66')]=[{'all':!![]}]),db['ZohoAccount']['findAll'](_0x59ff3a);})['then'](function(_0x253062){const _0x187548=_0x317108;return _0x39f7cb[_0x187548('0x26')]=_0x253062,_0x39f7cb;})[_0x317108('0x3a')](respondWithFilteredResult(_0x5aa026,_0x59ff3a))[_0x317108('0x5c')](handleError(_0x5aa026,null));},exports[_0x1803e9('0x5a')]=function(_0x4f979c,_0x4eb31a){const _0x4294d4=_0x1803e9;let _0x1437db={'raw':![],'where':{'id':_0x4f979c[_0x4294d4('0x4d')]['id']}};const _0x340b5d={};return _0x340b5d[_0x4294d4('0x9')]=_[_0x4294d4('0x68')](db[_0x4294d4('0x32')][_0x4294d4('0x1d')]),_0x340b5d['query']=_[_0x4294d4('0x68')](_0x4f979c[_0x4294d4('0x38')]),_0x340b5d[_0x4294d4('0x65')]=_[_0x4294d4('0x45')](_0x340b5d[_0x4294d4('0x9')],_0x340b5d[_0x4294d4('0x38')]),_0x1437db[_0x4294d4('0x6c')]=_[_0x4294d4('0x45')](_0x340b5d[_0x4294d4('0x9')],qs['fields'](_0x4f979c['query'][_0x4294d4('0x4e')])),_0x1437db[_0x4294d4('0x6c')]=_0x1437db[_0x4294d4('0x6c')]['length']?_0x1437db['attributes']:_0x340b5d[_0x4294d4('0x9')],_0x4f979c[_0x4294d4('0x38')][_0x4294d4('0x22')]&&(_0x1437db[_0x4294d4('0x66')]=[{'all':!![]}]),_0x1437db=_[_0x4294d4('0x62')]({},_0x1437db,_0x4f979c['options']),db[_0x4294d4('0x32')][_0x4294d4('0xf')](_0x1437db)[_0x4294d4('0x3a')](handleEntityNotFound(_0x4eb31a,null))[_0x4294d4('0x3a')](respondWithResult(_0x4eb31a,null))[_0x4294d4('0x5c')](handleError(_0x4eb31a,null));},exports[_0x1803e9('0x1f')]=function(_0x1dfa0a,_0x58fc43){const _0xbb1bea=_0x1803e9;return db[_0xbb1bea('0x32')][_0xbb1bea('0x1f')](_0x1dfa0a[_0xbb1bea('0x3e')],{})['then'](respondWithResult(_0x58fc43,0xc9))[_0xbb1bea('0x5c')](handleError(_0x58fc43,null));},exports[_0x1803e9('0x31')]=function(_0x40da3c,_0x972997){const _0x39bec4=_0x1803e9;return _0x40da3c['body']['id']&&delete _0x40da3c['body']['id'],db['ZohoAccount'][_0x39bec4('0xf')]({'where':{'id':_0x40da3c[_0x39bec4('0x4d')]['id']}})['then'](handleEntityNotFound(_0x972997,null))[_0x39bec4('0x3a')](saveUpdates(_0x40da3c['body'],null))[_0x39bec4('0x3a')](respondWithResult(_0x972997,null))[_0x39bec4('0x5c')](handleError(_0x972997,null));},exports[_0x1803e9('0x47')]=function(_0x2d2172,_0x2159a2){const _0x4e2626=_0x1803e9;return db[_0x4e2626('0x32')][_0x4e2626('0xf')]({'where':{'id':_0x2d2172[_0x4e2626('0x4d')]['id']}})[_0x4e2626('0x3a')](handleEntityNotFound(_0x2159a2,null))[_0x4e2626('0x3a')](removeEntity(_0x2159a2,null))[_0x4e2626('0x5c')](handleError(_0x2159a2,null));},exports['getConfigurations']=function(_0x168245,_0xbb807b){const _0x42da25=_0x1803e9;let _0xdecfa2={};const _0x33eff3={};let _0x231fab,_0x1a0f88;return db[_0x42da25('0x32')][_0x42da25('0xf')]({'where':{'id':_0x168245[_0x42da25('0x4d')]['id']}})['then'](handleEntityNotFound(_0xbb807b,null))['then'](function(_0x3b010f){const _0x2e29ca=_0x42da25;if(_0x3b010f)return _0x231fab=_0x3b010f,_0x33eff3[_0x2e29ca('0x9')]=_[_0x2e29ca('0x68')](db['ZohoConfiguration'][_0x2e29ca('0x1d')]),_0x33eff3['query']=_['keys'](_0x168245[_0x2e29ca('0x38')]),_0x33eff3[_0x2e29ca('0x65')]=_[_0x2e29ca('0x45')](_0x33eff3[_0x2e29ca('0x9')],_0x33eff3[_0x2e29ca('0x38')]),_0xdecfa2['attributes']=_[_0x2e29ca('0x45')](_0x33eff3[_0x2e29ca('0x9')],qs['fields'](_0x168245['query'][_0x2e29ca('0x4e')])),_0xdecfa2[_0x2e29ca('0x6c')]=_0xdecfa2[_0x2e29ca('0x6c')]['length']?_0xdecfa2[_0x2e29ca('0x6c')]:_0x33eff3[_0x2e29ca('0x9')],_0xdecfa2[_0x2e29ca('0x2a')]=qs[_0x2e29ca('0x23')](_0x168245[_0x2e29ca('0x38')][_0x2e29ca('0x23')]),_0xdecfa2['where']=qs[_0x2e29ca('0x65')](_[_0x2e29ca('0x39')](_0x168245[_0x2e29ca('0x38')],_0x33eff3[_0x2e29ca('0x65')])),_0x168245[_0x2e29ca('0x38')][_0x2e29ca('0x44')]&&(_0xdecfa2[_0x2e29ca('0x5')]=_[_0x2e29ca('0x62')](_0xdecfa2[_0x2e29ca('0x5')],{[Op['or']]:_['map'](_0xdecfa2[_0x2e29ca('0x6c')],function(_0x54bc96){const _0x8b7004=_0x2e29ca,_0x5a2a18={};return _0x5a2a18[_0x54bc96]={[Op[_0x8b7004('0x55')]]:'%'+_0x168245[_0x8b7004('0x38')][_0x8b7004('0x44')]+'%'},_0x5a2a18;})})),_0xdecfa2=_[_0x2e29ca('0x62')]({},_0xdecfa2,_0x168245['options']),_0x231fab['getConfigurations'](_0xdecfa2);})['then'](function(_0x172bd4){const _0x19b87c=_0x42da25;if(_0x172bd4)return _0x1a0f88=_0x172bd4['length'],typeof _0x168245['query'][_0x19b87c('0x2f')]===_0x19b87c('0x3d')&&(_0xdecfa2[_0x19b87c('0x42')]=qs['limit'](_0x168245[_0x19b87c('0x38')]['limit']),_0xdecfa2[_0x19b87c('0x12')]=qs[_0x19b87c('0x12')](_0x168245[_0x19b87c('0x38')][_0x19b87c('0x12')])),_0x231fab[_0x19b87c('0x2b')](_0xdecfa2);})['then'](function(_0x54e8e0){if(_0x54e8e0)return _0x54e8e0?{'count':_0x1a0f88,'rows':_0x54e8e0}:null;})[_0x42da25('0x3a')](respondWithResult(_0xbb807b,null))[_0x42da25('0x5c')](handleError(_0xbb807b,null));},exports[_0x1803e9('0x1a')]=function(_0x1008db,_0x11b996){const _0x38e6ff=_0x1803e9;return _0x1008db['body']['id']&&delete _0x1008db['body']['id'],db[_0x38e6ff('0x32')][_0x38e6ff('0xf')]({'where':{'id':_0x1008db[_0x38e6ff('0x4d')]['id']}})[_0x38e6ff('0x3a')](handleEntityNotFound(_0x11b996,null))[_0x38e6ff('0x3a')](function(_0x470d1f){const _0x47b9cf=_0x38e6ff;if(_0x470d1f)return _0x1008db[_0x47b9cf('0x3e')][_0x47b9cf('0xb')]=_0x470d1f['id'],_0x1008db[_0x47b9cf('0x3e')][_0x47b9cf('0x49')]=integrations['getSubjects'](_0x1008db['body'][_0x47b9cf('0x0')],_0x1008db[_0x47b9cf('0x3e')][_0x47b9cf('0x25')]),_0x1008db[_0x47b9cf('0x3e')][_0x47b9cf('0x48')]=integrations['getDescriptions'](_0x1008db[_0x47b9cf('0x3e')]['channel'],_0x1008db[_0x47b9cf('0x3e')][_0x47b9cf('0x25')]),db[_0x47b9cf('0x58')]['create'](_0x1008db[_0x47b9cf('0x3e')],{'include':[{'model':db['ZohoField'],'as':_0x47b9cf('0x49')},{'model':db['ZohoField'],'as':_0x47b9cf('0x48')}]});return null;})['then'](respondWithResult(_0x11b996,null))['catch'](handleError(_0x11b996,null));};function getAccessToken(_0x5a2393){return new Promise(function(_0x415b64,_0x1a1d57){const _0x59dbcd=a346_0x1cb3;let _0xb62c3;switch(_0x5a2393[_0x59dbcd('0x21')]){case'US':_0xb62c3='https://accounts.zoho.com';break;case'AU':_0xb62c3=_0x59dbcd('0x5d');break;case'EU':_0xb62c3=_0x59dbcd('0x56');break;case'IN':_0xb62c3=_0x59dbcd('0x5f');break;case'CN':_0xb62c3=_0x59dbcd('0x1e');break;default:_0xb62c3=_0x59dbcd('0x56');break;}const _0x33a1d3={'method':_0x59dbcd('0x4b'),'uri':_0xb62c3+_0x59dbcd('0x2d'),'qs':{'refresh_token':_0x5a2393['refreshToken'],'client_id':_0x5a2393['clientId'],'client_secret':_0x5a2393[_0x59dbcd('0x36')],'grant_type':_0x59dbcd('0x5e')},'json':!![]};return rp(_0x33a1d3)[_0x59dbcd('0x3a')](function(_0x56c2f6){const _0x17348c=_0x59dbcd;_0x56c2f6[_0x17348c('0x4c')]?_0x415b64(_0x56c2f6['access_token']):_0x1a1d57(_0x17348c('0xe'));})['catch'](function(_0x915571){_0x1a1d57(_0x915571);});});}exports[_0x1803e9('0x59')]=function(_0x3908e6,_0x46a799){const _0x12f496=_0x1803e9;let _0xcacb42,_0x53702d,_0x30a424,_0x54b19a;return db[_0x12f496('0x32')][_0x12f496('0xf')]({'where':{'id':_0x3908e6[_0x12f496('0x4d')]['id']},'attributes':['id',_0x12f496('0x14'),'zone',_0x12f496('0x5b'),_0x12f496('0x36'),_0x12f496('0x6a'),_0x12f496('0x35'),'refreshToken']})['then'](handleEntityNotFound(_0x46a799,null))['then'](function(_0x1294a1){const _0x236530=_0x12f496;_0x54b19a=_0x1294a1,_0xcacb42=_0x54b19a[_0x236530('0x14')],_0x53702d=_0xcacb42===_0x236530('0xa')?'eu':_0x236530('0x40'),_0x30a424=_0x54b19a['serverUrl'];const _0x1b2ed6=_0x30a424['slice'](-0x1);(_0x1b2ed6==='/'||_0x1b2ed6==='\x5c'||_0x1b2ed6===':')&&(_0x30a424=_0x30a424[_0x236530('0xd')](0x0,_0x30a424['lastIndexOf'](_0x1b2ed6)));if(!_0x54b19a[_0x236530('0x43')])throw new Error('Refresh\x20Token\x20not\x20available\x20for\x20the\x20account');return getAccessToken(_0x54b19a);})[_0x12f496('0x3a')](function(_0x39c35b){const _0x525edb=_0x12f496;if(_0x39c35b)return rp({'method':_0x525edb('0x8'),'uri':util[_0x525edb('0x7')](_0x525edb('0x27'),_0x53702d),'qs':{'module':'Calls'},'headers':{'Authorization':_0x525edb('0x41')+_0x39c35b},'json':!![]});})[_0x12f496('0x3a')](function(_0x774986){const _0x992703=_0x12f496;if(_0x774986){if(_0x774986[_0x992703('0x4')]&&_0x774986[_0x992703('0x4')]['error'])throw new Error(_0x774986['response'][_0x992703('0x6b')][_0x992703('0xc')]);const _0x5829d3=[];let _0x58d3d0=[];const _0x5a4ec3=['Owner',_0x992703('0x57'),_0x992703('0x53'),_0x992703('0x15'),_0x992703('0x29'),_0x992703('0x2'),_0x992703('0x52'),'Call_Type'];_0x58d3d0=_[_0x992703('0x13')](_0x774986[_0x992703('0x4e')],function(_0x3ea7f3){const _0x23ee72=_0x992703;return _0x5a4ec3[_0x23ee72('0x16')](_0x3ea7f3[_0x23ee72('0x1')]);});for(let _0x1b5532=0x0;_0x1b5532<_0x58d3d0[_0x992703('0x64')];_0x1b5532++){_0x58d3d0[_0x1b5532][_0x992703('0x18')]===![]&&_0x5829d3[_0x992703('0x50')]({'id':_0x58d3d0[_0x1b5532]['id'],'name':_0x58d3d0[_0x1b5532][_0x992703('0x1c')],'custom':_0x58d3d0[_0x1b5532][_0x992703('0x51')],'options':_0x58d3d0[_0x1b5532]['data_type']===_0x992703('0x24')&&_0x58d3d0[_0x1b5532]['pick_list_values'][_0x992703('0x64')]>-0x1?_[_0x992703('0x54')](_0x58d3d0[_0x1b5532][_0x992703('0x3')],function(_0x329ab3){return{'name':_0x329ab3,'value':_0x329ab3};}):[]});}return{'count':_0x5829d3['length'],'rows':_0x5829d3};}else return{'count':0x0,'rows':[]};})['then'](respondWithResult(_0x46a799,null))[_0x12f496('0x5c')](function(_0x1b12d9){const _0x3c2041=_0x12f496;let _0x6bd16f=_0x3908e6[_0x3c2041('0x38')]['test']?0x1f4:_0x1b12d9[_0x3c2041('0x19')]||0x1f4;logger[_0x3c2041('0x6b')]('getFields,\x20%s,\x20%s,\x20%s',_0x3c2041('0x59'),_0x6bd16f,JSON[_0x3c2041('0x10')](_0x1b12d9)),delete _0x1b12d9[_0x3c2041('0x37')],_0x6bd16f===0x191&&(_0x6bd16f=0x190),_0x46a799['status'](_0x6bd16f)[_0x3c2041('0x3b')](_0x3908e6[_0x3c2041('0x38')][_0x3c2041('0x60')]?{'message':'Wrong\x20credentials','statusCode':_0x1b12d9[_0x3c2041('0x19')]}:_0x1b12d9);});}; \ No newline at end of file +const a416_0x53da=['body','access_token','code','lastIndexOf','util','attributes','filters','../../config/logger','key','POST','merge','format','refresh_token','clientId','set','undefined','create','keys','findOne','getDescriptions','getFields,\x20%s,\x20%s,\x20%s','https://www.zohoapis.%s/crm/v2/settings/fields','Refresh\x20Token\x20not\x20available\x20for\x20the\x20account','getSubjects','remove','system_mandatory','request-promise-native','host','https://accounts.zoho.in','clientSecret','getFields','response','Owner','sequelize','update','nolimit','map','WhoId','count','error','../../components/parsers/qs','lodash','Wrong\x20credentials','rawAttributes','model','../../components/integrations/configuration','addConfiguration','destroy','Subjects','Subject','test','Unable\x20to\x20retrieve\x20the\x20access\x20token','stack','offset','Call_Type','Descriptions','ZohoAccount','serverUrl','include','data_type','../../mysqldb','substring','AccountId','message','https://accounts.zoho.eu','Description','Call_Duration','status','VIRTUAL','getConfigurations','json','display_label','show','pick','send','custom_field','Calls','filter','refreshToken','ZohoField','/oauth/v2/token','fields','catch','type','intersection','length','https://accounts.zoho.com.cn','Content-Range','findAll','Zoho-oauthtoken\x20','https://accounts.zoho.com','sort','pick_list_values','Call_Result','fieldName','like','params','limit','rows','zone','index','stringify','then','ZohoConfiguration','slice','api_name','name','zoho.eu','order','channel','query','includeAll','includes','where'];(function(_0x89caa8,_0x599f2b){const _0x53da00=function(_0x383642){while(--_0x383642){_0x89caa8['push'](_0x89caa8['shift']());}};_0x53da00(++_0x599f2b);}(a416_0x53da,0xba));const a416_0x3836=function(_0x89caa8,_0x599f2b){_0x89caa8=_0x89caa8-0xf7;let _0x53da00=a416_0x53da[_0x89caa8];return _0x53da00;};const a416_0x1186bd=a416_0x3836;'use strict';const rp=require(a416_0x1186bd(0x13b)),util=require(a416_0x1186bd(0x125)),_=require(a416_0x1186bd(0x14a)),qs=require(a416_0x1186bd(0x149)),logger=require(a416_0x1186bd(0x128))('api'),{db}=require(a416_0x1186bd(0x15d)),{Op}=require(a416_0x1186bd(0x142)),integrations=require(a416_0x1186bd(0x14e));function respondWithResult(_0x39634a,_0x28a1e5){return _0x28a1e5=_0x28a1e5||0xc8,function(_0x2909b5){const _0x3173a4=a416_0x3836;if(_0x2909b5)return _0x39634a['status'](_0x28a1e5)[_0x3173a4(0x167)](_0x2909b5);};}function respondWithFilteredResult(_0x136c3d,_0xdbf80){return function(_0x4497f5){const _0x103b0a=a416_0x3836;if(_0x4497f5){const _0x420bb2=_0x4497f5['count'],_0x4e9e53=_0xdbf80[_0x103b0a(0x156)];let _0x502191=_0xdbf80[_0x103b0a(0x156)]+_0xdbf80[_0x103b0a(0x110)],_0x95c6a4;return _0x502191>=_0x420bb2?(_0x502191=_0x420bb2,_0x95c6a4=0xc8):_0x95c6a4=0xce,_0x136c3d[_0x103b0a(0x164)](_0x95c6a4),_0x136c3d[_0x103b0a(0x12f)](_0x103b0a(0x106),_0x4e9e53+'-'+_0x502191+'/'+_0x420bb2)[_0x103b0a(0x167)](_0x4497f5);}return null;};}function saveUpdates(_0x26af40){return function(_0x5adbf5){const _0x466713=a416_0x3836;if(_0x5adbf5)return _0x5adbf5[_0x466713(0x143)](_0x26af40)[_0x466713(0x115)](function(_0x39a761){return _0x39a761;});return null;};}function removeEntity(_0x4bb133){return function(_0x35159c){const _0x4343be=a416_0x3836;if(_0x35159c)return _0x35159c[_0x4343be(0x150)]()[_0x4343be(0x115)](function(){const _0x2300e7=_0x4343be;_0x4bb133[_0x2300e7(0x164)](0xcc)['end']();});};}function handleEntityNotFound(_0x2a32f6){return function(_0x2ef61c){return!_0x2ef61c&&_0x2a32f6['sendStatus'](0x194),_0x2ef61c;};}function handleError(_0x4050c8,_0x48d5af){return _0x48d5af=_0x48d5af||0x1f4,function(_0x3abe92){const _0x454d69=a416_0x3836;logger['error'](_0x3abe92[_0x454d69(0x155)]),_0x3abe92[_0x454d69(0x119)]&&delete _0x3abe92[_0x454d69(0x119)],_0x4050c8[_0x454d69(0x164)](_0x48d5af)[_0x454d69(0xf9)](_0x3abe92);};}exports[a416_0x1186bd(0x113)]=function(_0x293a02,_0x2f5486){const _0x47e335=a416_0x1186bd;let _0x485968={};const _0x446cd7={},_0x3b5a15={'count':0x0,'rows':[]},_0x55ede7=_[_0x47e335(0x145)](db[_0x47e335(0x159)][_0x47e335(0x14c)],function(_0x45f12f){const _0x2d8021=_0x47e335;return{'name':_0x45f12f[_0x2d8021(0x10d)],'type':_0x45f12f[_0x2d8021(0x102)][_0x2d8021(0x129)]};});_0x446cd7['model']=_[_0x47e335(0x145)](_0x55ede7,_0x47e335(0x119)),_0x446cd7[_0x47e335(0x11d)]=_['keys'](_0x293a02[_0x47e335(0x11d)]),_0x446cd7[_0x47e335(0x127)]=_[_0x47e335(0x103)](_0x446cd7[_0x47e335(0x14d)],_0x446cd7[_0x47e335(0x11d)]),_0x485968[_0x47e335(0x126)]=_[_0x47e335(0x103)](_0x446cd7[_0x47e335(0x14d)],qs['fields'](_0x293a02['query'][_0x47e335(0x100)])),_0x485968[_0x47e335(0x126)]=_0x485968[_0x47e335(0x126)][_0x47e335(0x104)]?_0x485968[_0x47e335(0x126)]:_0x446cd7[_0x47e335(0x14d)];typeof _0x293a02[_0x47e335(0x11d)][_0x47e335(0x144)]===_0x47e335(0x130)&&(_0x485968[_0x47e335(0x110)]=qs['limit'](_0x293a02[_0x47e335(0x11d)][_0x47e335(0x110)]),_0x485968['offset']=qs[_0x47e335(0x156)](_0x293a02[_0x47e335(0x11d)][_0x47e335(0x156)]));_0x485968[_0x47e335(0x11b)]=qs['sort'](_0x293a02['query'][_0x47e335(0x10a)]),_0x485968[_0x47e335(0x120)]=qs[_0x47e335(0x127)](_['pick'](_0x293a02[_0x47e335(0x11d)],_0x446cd7['filters']),_0x55ede7);_0x293a02[_0x47e335(0x11d)][_0x47e335(0xfc)]&&(_0x485968['where']=_[_0x47e335(0x12b)](_0x485968[_0x47e335(0x120)],{[Op['or']]:_[_0x47e335(0x145)](_0x55ede7,function(_0x552fff){const _0x1f119f=_0x47e335;if(_0x552fff[_0x1f119f(0x102)]!==_0x1f119f(0x165)){const _0x3f986f={};return _0x3f986f[_0x552fff['name']]={[Op[_0x1f119f(0x10e)]]:'%'+_0x293a02[_0x1f119f(0x11d)][_0x1f119f(0xfc)]+'%'},_0x3f986f;}})}));_0x485968=_['merge']({},_0x485968,_0x293a02['options']);const _0x2f75d3={'where':_0x485968[_0x47e335(0x120)]};return db[_0x47e335(0x159)][_0x47e335(0x147)](_0x2f75d3)['then'](function(_0x45bd8f){const _0x5e2d3d=_0x47e335;return _0x3b5a15['count']=_0x45bd8f,_0x293a02[_0x5e2d3d(0x11d)][_0x5e2d3d(0x11e)]&&(_0x485968[_0x5e2d3d(0x15b)]=[{'all':!![]}]),db[_0x5e2d3d(0x159)][_0x5e2d3d(0x107)](_0x485968);})['then'](function(_0x1f8bd2){const _0x57ba40=_0x47e335;return _0x3b5a15[_0x57ba40(0x111)]=_0x1f8bd2,_0x3b5a15;})['then'](respondWithFilteredResult(_0x2f5486,_0x485968))[_0x47e335(0x101)](handleError(_0x2f5486,null));},exports[a416_0x1186bd(0xf7)]=function(_0x5d4afd,_0x3f6432){const _0x4ecf90=a416_0x1186bd;let _0x58b660={'raw':![],'where':{'id':_0x5d4afd[_0x4ecf90(0x10f)]['id']}};const _0x1042ec={};return _0x1042ec[_0x4ecf90(0x14d)]=_[_0x4ecf90(0x132)](db[_0x4ecf90(0x159)][_0x4ecf90(0x14c)]),_0x1042ec['query']=_['keys'](_0x5d4afd[_0x4ecf90(0x11d)]),_0x1042ec[_0x4ecf90(0x127)]=_[_0x4ecf90(0x103)](_0x1042ec[_0x4ecf90(0x14d)],_0x1042ec[_0x4ecf90(0x11d)]),_0x58b660[_0x4ecf90(0x126)]=_[_0x4ecf90(0x103)](_0x1042ec[_0x4ecf90(0x14d)],qs['fields'](_0x5d4afd[_0x4ecf90(0x11d)][_0x4ecf90(0x100)])),_0x58b660[_0x4ecf90(0x126)]=_0x58b660[_0x4ecf90(0x126)]['length']?_0x58b660[_0x4ecf90(0x126)]:_0x1042ec[_0x4ecf90(0x14d)],_0x5d4afd[_0x4ecf90(0x11d)]['includeAll']&&(_0x58b660['include']=[{'all':!![]}]),_0x58b660=_[_0x4ecf90(0x12b)]({},_0x58b660,_0x5d4afd['options']),db['ZohoAccount'][_0x4ecf90(0x133)](_0x58b660)['then'](handleEntityNotFound(_0x3f6432,null))['then'](respondWithResult(_0x3f6432,null))[_0x4ecf90(0x101)](handleError(_0x3f6432,null));},exports[a416_0x1186bd(0x131)]=function(_0x395e46,_0x3c3967){const _0x4887c4=a416_0x1186bd;return db[_0x4887c4(0x159)]['create'](_0x395e46[_0x4887c4(0x121)],{})[_0x4887c4(0x115)](respondWithResult(_0x3c3967,0xc9))['catch'](handleError(_0x3c3967,null));},exports[a416_0x1186bd(0x143)]=function(_0x2f8ab9,_0x1ce72e){const _0x1948a5=a416_0x1186bd;return _0x2f8ab9[_0x1948a5(0x121)]['id']&&delete _0x2f8ab9[_0x1948a5(0x121)]['id'],db[_0x1948a5(0x159)][_0x1948a5(0x133)]({'where':{'id':_0x2f8ab9[_0x1948a5(0x10f)]['id']}})[_0x1948a5(0x115)](handleEntityNotFound(_0x1ce72e,null))['then'](saveUpdates(_0x2f8ab9[_0x1948a5(0x121)],null))['then'](respondWithResult(_0x1ce72e,null))['catch'](handleError(_0x1ce72e,null));},exports['destroy']=function(_0x299ae2,_0x3765c7){const _0x3abb11=a416_0x1186bd;return db[_0x3abb11(0x159)]['findOne']({'where':{'id':_0x299ae2['params']['id']}})['then'](handleEntityNotFound(_0x3765c7,null))[_0x3abb11(0x115)](removeEntity(_0x3765c7,null))['catch'](handleError(_0x3765c7,null));},exports[a416_0x1186bd(0x166)]=function(_0x592027,_0x4dc036){const _0x42ab5c=a416_0x1186bd;let _0x9ad491={};const _0x1c5eb1={};let _0xe778f4,_0x38187a;return db[_0x42ab5c(0x159)][_0x42ab5c(0x133)]({'where':{'id':_0x592027[_0x42ab5c(0x10f)]['id']}})[_0x42ab5c(0x115)](handleEntityNotFound(_0x4dc036,null))['then'](function(_0x4ef863){const _0x26fae0=_0x42ab5c;if(_0x4ef863)return _0xe778f4=_0x4ef863,_0x1c5eb1[_0x26fae0(0x14d)]=_['keys'](db['ZohoConfiguration'][_0x26fae0(0x14c)]),_0x1c5eb1['query']=_[_0x26fae0(0x132)](_0x592027[_0x26fae0(0x11d)]),_0x1c5eb1[_0x26fae0(0x127)]=_[_0x26fae0(0x103)](_0x1c5eb1[_0x26fae0(0x14d)],_0x1c5eb1['query']),_0x9ad491[_0x26fae0(0x126)]=_[_0x26fae0(0x103)](_0x1c5eb1[_0x26fae0(0x14d)],qs[_0x26fae0(0x100)](_0x592027['query'][_0x26fae0(0x100)])),_0x9ad491[_0x26fae0(0x126)]=_0x9ad491[_0x26fae0(0x126)][_0x26fae0(0x104)]?_0x9ad491[_0x26fae0(0x126)]:_0x1c5eb1[_0x26fae0(0x14d)],_0x9ad491[_0x26fae0(0x11b)]=qs[_0x26fae0(0x10a)](_0x592027['query'][_0x26fae0(0x10a)]),_0x9ad491[_0x26fae0(0x120)]=qs[_0x26fae0(0x127)](_[_0x26fae0(0xf8)](_0x592027[_0x26fae0(0x11d)],_0x1c5eb1[_0x26fae0(0x127)])),_0x592027[_0x26fae0(0x11d)][_0x26fae0(0xfc)]&&(_0x9ad491[_0x26fae0(0x120)]=_[_0x26fae0(0x12b)](_0x9ad491[_0x26fae0(0x120)],{[Op['or']]:_[_0x26fae0(0x145)](_0x9ad491[_0x26fae0(0x126)],function(_0x41ba49){const _0x31717c=_0x26fae0,_0x414e8e={};return _0x414e8e[_0x41ba49]={[Op[_0x31717c(0x10e)]]:'%'+_0x592027[_0x31717c(0x11d)][_0x31717c(0xfc)]+'%'},_0x414e8e;})})),_0x9ad491=_['merge']({},_0x9ad491,_0x592027['options']),_0xe778f4[_0x26fae0(0x166)](_0x9ad491);})[_0x42ab5c(0x115)](function(_0x17d4fa){const _0x253465=_0x42ab5c;if(_0x17d4fa)return _0x38187a=_0x17d4fa[_0x253465(0x104)],typeof _0x592027['query'][_0x253465(0x144)]===_0x253465(0x130)&&(_0x9ad491[_0x253465(0x110)]=qs[_0x253465(0x110)](_0x592027[_0x253465(0x11d)][_0x253465(0x110)]),_0x9ad491[_0x253465(0x156)]=qs[_0x253465(0x156)](_0x592027[_0x253465(0x11d)]['offset'])),_0xe778f4[_0x253465(0x166)](_0x9ad491);})[_0x42ab5c(0x115)](function(_0x5d14e2){if(_0x5d14e2)return _0x5d14e2?{'count':_0x38187a,'rows':_0x5d14e2}:null;})[_0x42ab5c(0x115)](respondWithResult(_0x4dc036,null))[_0x42ab5c(0x101)](handleError(_0x4dc036,null));},exports[a416_0x1186bd(0x14f)]=function(_0x464368,_0x2e161c){const _0x27e71c=a416_0x1186bd;return _0x464368['body']['id']&&delete _0x464368[_0x27e71c(0x121)]['id'],db[_0x27e71c(0x159)]['findOne']({'where':{'id':_0x464368['params']['id']}})[_0x27e71c(0x115)](handleEntityNotFound(_0x2e161c,null))['then'](function(_0x3e00bd){const _0x30f11c=_0x27e71c;if(_0x3e00bd)return _0x464368[_0x30f11c(0x121)][_0x30f11c(0x15f)]=_0x3e00bd['id'],_0x464368[_0x30f11c(0x121)][_0x30f11c(0x151)]=integrations[_0x30f11c(0x138)](_0x464368[_0x30f11c(0x121)][_0x30f11c(0x11c)],_0x464368[_0x30f11c(0x121)][_0x30f11c(0x102)]),_0x464368[_0x30f11c(0x121)][_0x30f11c(0x158)]=integrations[_0x30f11c(0x134)](_0x464368['body'][_0x30f11c(0x11c)],_0x464368[_0x30f11c(0x121)][_0x30f11c(0x102)]),db[_0x30f11c(0x116)][_0x30f11c(0x131)](_0x464368[_0x30f11c(0x121)],{'include':[{'model':db['ZohoField'],'as':_0x30f11c(0x151)},{'model':db[_0x30f11c(0xfe)],'as':_0x30f11c(0x158)}]});return null;})[_0x27e71c(0x115)](respondWithResult(_0x2e161c,null))[_0x27e71c(0x101)](handleError(_0x2e161c,null));};function getAccessToken(_0xd0fb91){return new Promise(function(_0x599495,_0x3e250b){const _0x144c94=a416_0x3836;let _0x5c9268;switch(_0xd0fb91[_0x144c94(0x112)]){case'US':_0x5c9268=_0x144c94(0x109);break;case'AU':_0x5c9268='https://accounts.zoho.com.au';break;case'EU':_0x5c9268=_0x144c94(0x161);break;case'IN':_0x5c9268=_0x144c94(0x13d);break;case'CN':_0x5c9268=_0x144c94(0x105);break;default:_0x5c9268='https://accounts.zoho.eu';break;}const _0x2356f6={'method':_0x144c94(0x12a),'uri':_0x5c9268+_0x144c94(0xff),'qs':{'refresh_token':_0xd0fb91[_0x144c94(0xfd)],'client_id':_0xd0fb91[_0x144c94(0x12e)],'client_secret':_0xd0fb91[_0x144c94(0x13e)],'grant_type':_0x144c94(0x12d)},'json':!![]};return rp(_0x2356f6)[_0x144c94(0x115)](function(_0xa59c72){const _0x545b36=_0x144c94;_0xa59c72[_0x545b36(0x122)]?_0x599495(_0xa59c72['access_token']):_0x3e250b(_0x545b36(0x154));})[_0x144c94(0x101)](function(_0x32c9de){_0x3e250b(_0x32c9de);});});}exports[a416_0x1186bd(0x13f)]=function(_0x2f0e3a,_0x1e9901){const _0x391483=a416_0x1186bd;let _0x1e2b70,_0x2fd203,_0x876427,_0x14eaf3;return db['ZohoAccount'][_0x391483(0x133)]({'where':{'id':_0x2f0e3a['params']['id']},'attributes':['id',_0x391483(0x13c),'zone',_0x391483(0x12e),_0x391483(0x13e),'serverUrl',_0x391483(0x123),_0x391483(0xfd)]})[_0x391483(0x115)](handleEntityNotFound(_0x1e9901,null))[_0x391483(0x115)](function(_0x24b8af){const _0x327d82=_0x391483;_0x14eaf3=_0x24b8af,_0x1e2b70=_0x14eaf3[_0x327d82(0x13c)],_0x2fd203=_0x1e2b70===_0x327d82(0x11a)?'eu':'com',_0x876427=_0x14eaf3[_0x327d82(0x15a)];const _0x3e58af=_0x876427[_0x327d82(0x117)](-0x1);(_0x3e58af==='/'||_0x3e58af==='\x5c'||_0x3e58af===':')&&(_0x876427=_0x876427[_0x327d82(0x15e)](0x0,_0x876427[_0x327d82(0x124)](_0x3e58af)));if(!_0x14eaf3[_0x327d82(0xfd)])throw new Error(_0x327d82(0x137));return getAccessToken(_0x14eaf3);})['then'](function(_0x3e91ea){const _0x3a28be=_0x391483;if(_0x3e91ea)return rp({'method':'GET','uri':util[_0x3a28be(0x12c)](_0x3a28be(0x136),_0x2fd203),'qs':{'module':_0x3a28be(0xfb)},'headers':{'Authorization':_0x3a28be(0x108)+_0x3e91ea},'json':!![]});})['then'](function(_0x475574){const _0x4cc5f4=_0x391483;if(_0x475574){if(_0x475574[_0x4cc5f4(0x140)]&&_0x475574[_0x4cc5f4(0x140)][_0x4cc5f4(0x148)])throw new Error(_0x475574[_0x4cc5f4(0x140)]['error'][_0x4cc5f4(0x160)]);const _0x4da8b6=[];let _0x528e05=[];const _0x326cd3=[_0x4cc5f4(0x141),_0x4cc5f4(0x152),_0x4cc5f4(0x162),_0x4cc5f4(0x146),_0x4cc5f4(0x163),_0x4cc5f4(0x10c),'Call_Start_Time',_0x4cc5f4(0x157)];_0x528e05=_[_0x4cc5f4(0x139)](_0x475574[_0x4cc5f4(0x100)],function(_0x3a1a0a){const _0x381d41=_0x4cc5f4;return _0x326cd3[_0x381d41(0x11f)](_0x3a1a0a[_0x381d41(0x118)]);});for(let _0x402780=0x0;_0x402780<_0x528e05[_0x4cc5f4(0x104)];_0x402780++){_0x528e05[_0x402780][_0x4cc5f4(0x13a)]===![]&&_0x4da8b6['push']({'id':_0x528e05[_0x402780]['id'],'name':_0x528e05[_0x402780][_0x4cc5f4(0x168)],'custom':_0x528e05[_0x402780][_0x4cc5f4(0xfa)],'options':_0x528e05[_0x402780][_0x4cc5f4(0x15c)]==='picklist'&&_0x528e05[_0x402780][_0x4cc5f4(0x10b)][_0x4cc5f4(0x104)]>-0x1?_[_0x4cc5f4(0x145)](_0x528e05[_0x402780]['pick_list_values'],function(_0x3d9c82){return{'name':_0x3d9c82,'value':_0x3d9c82};}):[]});}return{'count':_0x4da8b6[_0x4cc5f4(0x104)],'rows':_0x4da8b6};}else return{'count':0x0,'rows':[]};})[_0x391483(0x115)](respondWithResult(_0x1e9901,null))[_0x391483(0x101)](function(_0x1bb3f5){const _0x198a34=_0x391483;let _0x28bfdb=_0x2f0e3a[_0x198a34(0x11d)]['test']?0x1f4:_0x1bb3f5['statusCode']||0x1f4;logger[_0x198a34(0x148)](_0x198a34(0x135),_0x198a34(0x13f),_0x28bfdb,JSON[_0x198a34(0x114)](_0x1bb3f5)),delete _0x1bb3f5[_0x198a34(0x119)],_0x28bfdb===0x191&&(_0x28bfdb=0x190),_0x1e9901[_0x198a34(0x164)](_0x28bfdb)[_0x198a34(0xf9)](_0x2f0e3a[_0x198a34(0x11d)][_0x198a34(0x153)]?{'message':_0x198a34(0x14b),'statusCode':_0x1bb3f5['statusCode']}:_0x1bb3f5);});}; \ No newline at end of file diff --git a/server/api/intZohoAccount/intZohoAccount.model.js b/server/api/intZohoAccount/intZohoAccount.model.js index c4fedc9..0fbd1d8 100644 --- a/server/api/intZohoAccount/intZohoAccount.model.js +++ b/server/api/intZohoAccount/intZohoAccount.model.js @@ -1 +1 @@ -const a347_0x33dd=['int_zoho_accounts','code','then','name','POST','parse','substring','changed','https://accounts.zoho.com','lastIndexOf','slice','serverUrl','ZohoAccount,\x20Unable\x20to\x20generate\x20the\x20refresh\x20token\x20for\x20account\x20\x22%s\x22\x20#%d','exports','zone','https://accounts.zoho.in','ZohoAccount','util','host','refresh_token','inspect','https://accounts.zoho.com.au','./intZohoAccount.attributes','https://accounts.zoho.com.cn','application/x-www-form-urlencoded','error','clientId','format','catch','ZohoAccount,\x20Refresh\x20token\x20successfully\x20generated\x20for\x20account\x20\x22%s\x22\x20#%d','define','info','clientSecret','authorization_code','refreshToken','https://accounts.zoho.eu','/oauth/v2/token'];(function(_0x25e59e,_0x33dd61){const _0x322c5c=function(_0x137228){while(--_0x137228){_0x25e59e['push'](_0x25e59e['shift']());}};_0x322c5c(++_0x33dd61);}(a347_0x33dd,0x104));const a347_0x322c=function(_0x25e59e,_0x33dd61){_0x25e59e=_0x25e59e-0x0;let _0x322c5c=a347_0x33dd[_0x25e59e];return _0x322c5c;};const _0x35fbe5=a347_0x322c;'use strict';const util=require(_0x35fbe5('0x10')),logger=require('../../config/logger')('api'),rp=require('request-promise-native'),attributes=require(_0x35fbe5('0x15'));module[_0x35fbe5('0xc')]=function(_0x137228){const _0x319c6a=_0x35fbe5,_0x1fd2f6=_0x137228[_0x319c6a('0x1d')](_0x319c6a('0xf'),attributes,{'tableName':_0x319c6a('0x24'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeCreate':function(_0xddbdec){const _0x49d188=_0x319c6a;if(_0xddbdec['changed'](_0x49d188('0xd'))||_0xddbdec[_0x49d188('0x6')](_0x49d188('0xa'))||_0xddbdec[_0x49d188('0x6')](_0x49d188('0x19'))||_0xddbdec[_0x49d188('0x6')](_0x49d188('0x1f'))||_0xddbdec[_0x49d188('0x6')](_0x49d188('0x0'))||_0xddbdec[_0x49d188('0x6')](_0x49d188('0x11'))){let _0x33514e,_0x5e7773;_0x33514e=_0xddbdec[_0x49d188('0xa')];const _0x383296=_0x33514e['slice'](-0x1);(_0x383296==='/'||_0x383296==='\x5c'||_0x383296===':')&&(_0x33514e=_0x33514e[_0x49d188('0x5')](0x0,_0x33514e['lastIndexOf'](_0x383296)));switch(_0xddbdec['zone']){case'US':_0x5e7773='https://accounts.zoho.com';break;case'AU':_0x5e7773=_0x49d188('0x14');break;case'IN':_0x5e7773='https://accounts.zoho.in';break;case'CN':_0x5e7773=_0x49d188('0x16');break;default:_0x5e7773=_0x49d188('0x22');break;}const _0x4fff31={'method':_0x49d188('0x3'),'uri':_0x5e7773+_0x49d188('0x23'),'form':{'grant_type':_0x49d188('0x20'),'client_id':_0xddbdec[_0x49d188('0x19')],'client_secret':_0xddbdec[_0x49d188('0x1f')],'redirect_uri':_0xddbdec[_0x49d188('0xa')],'code':_0xddbdec[_0x49d188('0x0')]},'headers':{'Content-Type':_0x49d188('0x17')}};let _0x126a90=null;return rp(_0x4fff31)[_0x49d188('0x1')](function(_0x2b5217){const _0x324bbc=_0x49d188;return _0x126a90=JSON['parse'](_0x2b5217),_0x126a90[_0x324bbc('0x12')]?(_0xddbdec[_0x324bbc('0x21')]=_0x126a90[_0x324bbc('0x12')],logger['info'](util[_0x324bbc('0x1a')](_0x324bbc('0x1c'),_0xddbdec[_0x324bbc('0x2')],_0xddbdec['id']))):logger[_0x324bbc('0x18')](util['format'](_0x324bbc('0xb'),_0xddbdec[_0x324bbc('0x2')],_0xddbdec['id']),util['inspect'](_0x126a90,{'showHidden':![],'depth':null})),null;})[_0x49d188('0x1b')](function(_0x234edb){const _0x249fa0=_0x49d188;return logger[_0x249fa0('0x18')](util[_0x249fa0('0x1a')]('ZohoAccount,\x20Unable\x20to\x20generate\x20the\x20refresh\x20token\x20for\x20account\x20\x22%s\x22\x20#%d',_0xddbdec['name'],_0xddbdec['id']),util[_0x249fa0('0x13')](_0x126a90,{'showHidden':![],'depth':null})),_0x234edb;});}else return null;},'beforeUpdate':function(_0x578218){const _0x4f76f6=_0x319c6a;if(_0x578218[_0x4f76f6('0x6')](_0x4f76f6('0xd'))||_0x578218['changed'](_0x4f76f6('0xa'))||_0x578218[_0x4f76f6('0x6')]('clientId')||_0x578218[_0x4f76f6('0x6')]('clientSecret')||_0x578218[_0x4f76f6('0x6')](_0x4f76f6('0x0'))||_0x578218['changed'](_0x4f76f6('0x11'))){let _0x18695e,_0x2458df;_0x18695e=_0x578218[_0x4f76f6('0xa')];const _0x2ac632=_0x18695e[_0x4f76f6('0x9')](-0x1);(_0x2ac632==='/'||_0x2ac632==='\x5c'||_0x2ac632===':')&&(_0x18695e=_0x18695e['substring'](0x0,_0x18695e[_0x4f76f6('0x8')](_0x2ac632)));switch(_0x578218[_0x4f76f6('0xd')]){case'US':_0x2458df=_0x4f76f6('0x7');break;case'AU':_0x2458df=_0x4f76f6('0x14');break;case'IN':_0x2458df=_0x4f76f6('0xe');break;case'CN':_0x2458df='https://accounts.zoho.com.cn';break;default:_0x2458df=_0x4f76f6('0x22');break;}const _0x58d317={'method':_0x4f76f6('0x3'),'uri':_0x2458df+_0x4f76f6('0x23'),'form':{'grant_type':_0x4f76f6('0x20'),'client_id':_0x578218[_0x4f76f6('0x19')],'client_secret':_0x578218[_0x4f76f6('0x1f')],'redirect_uri':_0x578218[_0x4f76f6('0xa')],'code':_0x578218[_0x4f76f6('0x0')]},'headers':{'Content-Type':'application/x-www-form-urlencoded'}};let _0x426afc=null;return rp(_0x58d317)[_0x4f76f6('0x1')](function(_0x43c681){const _0x42431a=_0x4f76f6;return _0x426afc=JSON[_0x42431a('0x4')](_0x43c681),_0x426afc['refresh_token']?(_0x578218[_0x42431a('0x21')]=_0x426afc[_0x42431a('0x12')],logger[_0x42431a('0x1e')](util[_0x42431a('0x1a')](_0x42431a('0x1c'),_0x578218[_0x42431a('0x2')],_0x578218['id']))):logger['error'](util['format'](_0x42431a('0xb'),_0x578218[_0x42431a('0x2')],_0x578218['id']),util[_0x42431a('0x13')](_0x426afc,{'showHidden':![],'depth':null})),null;})[_0x4f76f6('0x1b')](function(_0x271485){const _0x27d08d=_0x4f76f6;return logger[_0x27d08d('0x18')](util[_0x27d08d('0x1a')]('ZohoAccount,\x20Unable\x20to\x20generate\x20the\x20refresh\x20token\x20for\x20account\x20\x22%s\x22\x20#%d',_0x578218['name'],_0x578218['id']),util[_0x27d08d('0x13')](_0x426afc,{'showHidden':![],'depth':null})),_0x271485;});}else return null;}}});return _0x1fd2f6;}; \ No newline at end of file +const a417_0xfb61=['init','ZohoAccount','sequelize','exports','function','./intZohoAccount.options'];(function(_0x3d264f,_0x35ad76){const _0xfb61cd=function(_0x501e46){while(--_0x501e46){_0x3d264f['push'](_0x3d264f['shift']());}};_0xfb61cd(++_0x35ad76);}(a417_0xfb61,0x1f4));const a417_0x501e=function(_0x3d264f,_0x35ad76){_0x3d264f=_0x3d264f-0x179;let _0xfb61cd=a417_0xfb61[_0x3d264f];return _0xfb61cd;};const a417_0x257bf1=a417_0x501e;'use strict';const {Model}=require(a417_0x257bf1(0x179)),{attributes}=require('./intZohoAccount.attributes'),{options}=require(a417_0x257bf1(0x17c));class ZohoAccount extends Model{}function init(_0x3b1b9d,_0x39b609){const _0x378110=a417_0x257bf1,_0x1f7f3b=options(_0x3b1b9d),_0x1afc00=typeof _0x39b609===_0x378110(0x17b)?_0x39b609(_0x1f7f3b):_0x1f7f3b;return ZohoAccount[_0x378110(0x17d)](attributes,_0x1afc00),ZohoAccount;}module[a417_0x257bf1(0x17a)][a417_0x257bf1(0x17e)]=ZohoAccount,module['exports'][a417_0x257bf1(0x17d)]=init; \ No newline at end of file diff --git a/server/api/intZohoAccount/intZohoAccount.options.js b/server/api/intZohoAccount/intZohoAccount.options.js new file mode 100644 index 0000000..2b87408 --- /dev/null +++ b/server/api/intZohoAccount/intZohoAccount.options.js @@ -0,0 +1 @@ +const a418_0x265f=['int_zoho_accounts','https://accounts.zoho.com','ZohoAccount,\x20Unable\x20to\x20generate\x20the\x20refresh\x20token\x20for\x20account\x20\x22%s\x22\x20#%d','format','exports','../../config/logger','https://accounts.zoho.in','info','https://accounts.zoho.com.au','request-promise-native','/oauth/v2/token','application/x-www-form-urlencoded','api','then','changed','https://accounts.zoho.eu','clientSecret','ZohoAccount,\x20Refresh\x20token\x20successfully\x20generated\x20for\x20account\x20\x22%s\x22\x20#%d','code','parse','clientId','https://accounts.zoho.com.cn','inspect','name','slice','serverUrl','error','zone','substring','options','refresh_token','refreshToken','POST','host','lastIndexOf'];(function(_0x44a819,_0x40b92d){const _0x265f5a=function(_0x1c7345){while(--_0x1c7345){_0x44a819['push'](_0x44a819['shift']());}};_0x265f5a(++_0x40b92d);}(a418_0x265f,0x1f1));const a418_0x1c73=function(_0x44a819,_0x40b92d){_0x44a819=_0x44a819-0x118;let _0x265f5a=a418_0x265f[_0x44a819];return _0x265f5a;};const a418_0x39564c=a418_0x1c73,util=require('util'),rp=require(a418_0x39564c(0x11a)),logger=require(a418_0x39564c(0x139))(a418_0x39564c(0x11d));function options(_0x207034){const _0x29dbd5=a418_0x39564c;return{'sequelize':_0x207034,'tableName':_0x29dbd5(0x134),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeCreate':function(_0x4ceb9a){const _0x420d25=_0x29dbd5;if(_0x4ceb9a[_0x420d25(0x11f)]('zone')||_0x4ceb9a['changed'](_0x420d25(0x12a))||_0x4ceb9a[_0x420d25(0x11f)](_0x420d25(0x125))||_0x4ceb9a[_0x420d25(0x11f)](_0x420d25(0x121))||_0x4ceb9a[_0x420d25(0x11f)](_0x420d25(0x123))||_0x4ceb9a[_0x420d25(0x11f)](_0x420d25(0x132))){let _0x40eb3c,_0x2c2bca;_0x40eb3c=_0x4ceb9a[_0x420d25(0x12a)];const _0x436a7c=_0x40eb3c[_0x420d25(0x129)](-0x1);(_0x436a7c==='/'||_0x436a7c==='\x5c'||_0x436a7c===':')&&(_0x40eb3c=_0x40eb3c[_0x420d25(0x12d)](0x0,_0x40eb3c[_0x420d25(0x133)](_0x436a7c)));switch(_0x4ceb9a[_0x420d25(0x12c)]){case'US':_0x2c2bca=_0x420d25(0x135);break;case'AU':_0x2c2bca='https://accounts.zoho.com.au';break;case'IN':_0x2c2bca='https://accounts.zoho.in';break;case'CN':_0x2c2bca=_0x420d25(0x126);break;default:_0x2c2bca=_0x420d25(0x120);break;}const _0x3f0e5c={'method':_0x420d25(0x131),'uri':_0x2c2bca+_0x420d25(0x11b),'form':{'grant_type':'authorization_code','client_id':_0x4ceb9a[_0x420d25(0x125)],'client_secret':_0x4ceb9a[_0x420d25(0x121)],'redirect_uri':_0x4ceb9a[_0x420d25(0x12a)],'code':_0x4ceb9a[_0x420d25(0x123)]},'headers':{'Content-Type':_0x420d25(0x11c)}};return rp(_0x3f0e5c)[_0x420d25(0x11e)](function(_0x45d281){const _0x6645df=_0x420d25,_0x5df60a=JSON[_0x6645df(0x124)](_0x45d281);_0x5df60a[_0x6645df(0x12f)]?(_0x4ceb9a[_0x6645df(0x130)]=_0x5df60a['refresh_token'],logger[_0x6645df(0x118)](util['format'](_0x6645df(0x122),_0x4ceb9a[_0x6645df(0x128)],_0x4ceb9a['id']))):logger['error'](util[_0x6645df(0x137)](_0x6645df(0x136),_0x4ceb9a['name'],_0x4ceb9a['id']),util[_0x6645df(0x127)](_0x5df60a,{'showHidden':![],'depth':null}));})['catch'](function(_0x433b1a){const _0x1618fe=_0x420d25;logger[_0x1618fe(0x12b)](util[_0x1618fe(0x137)]('ZohoAccount,\x20Unable\x20to\x20generate\x20the\x20refresh\x20token\x20for\x20account\x20\x22%s\x22\x20#%d',_0x4ceb9a[_0x1618fe(0x128)],_0x4ceb9a['id']));throw _0x433b1a;});}},'beforeUpdate':function(_0x17511b){const _0x5394fb=_0x29dbd5;if(_0x17511b[_0x5394fb(0x11f)](_0x5394fb(0x12c))||_0x17511b[_0x5394fb(0x11f)](_0x5394fb(0x12a))||_0x17511b[_0x5394fb(0x11f)](_0x5394fb(0x125))||_0x17511b[_0x5394fb(0x11f)](_0x5394fb(0x121))||_0x17511b[_0x5394fb(0x11f)](_0x5394fb(0x123))||_0x17511b[_0x5394fb(0x11f)](_0x5394fb(0x132))){let _0x251b52,_0x49b28a;_0x251b52=_0x17511b[_0x5394fb(0x12a)];const _0x11248f=_0x251b52[_0x5394fb(0x129)](-0x1);(_0x11248f==='/'||_0x11248f==='\x5c'||_0x11248f===':')&&(_0x251b52=_0x251b52[_0x5394fb(0x12d)](0x0,_0x251b52['lastIndexOf'](_0x11248f)));switch(_0x17511b[_0x5394fb(0x12c)]){case'US':_0x49b28a=_0x5394fb(0x135);break;case'AU':_0x49b28a=_0x5394fb(0x119);break;case'IN':_0x49b28a=_0x5394fb(0x13a);break;case'CN':_0x49b28a='https://accounts.zoho.com.cn';break;default:_0x49b28a=_0x5394fb(0x120);break;}const _0x2cbe37={'method':_0x5394fb(0x131),'uri':_0x49b28a+_0x5394fb(0x11b),'form':{'grant_type':'authorization_code','client_id':_0x17511b[_0x5394fb(0x125)],'client_secret':_0x17511b[_0x5394fb(0x121)],'redirect_uri':_0x17511b[_0x5394fb(0x12a)],'code':_0x17511b[_0x5394fb(0x123)]},'headers':{'Content-Type':_0x5394fb(0x11c)}};return rp(_0x2cbe37)[_0x5394fb(0x11e)](function(_0x157096){const _0x4f8ed4=_0x5394fb,_0xc9835d=JSON['parse'](_0x157096);_0xc9835d['refresh_token']?(_0x17511b['refreshToken']=_0xc9835d[_0x4f8ed4(0x12f)],logger['info'](util[_0x4f8ed4(0x137)]('ZohoAccount,\x20Refresh\x20token\x20successfully\x20generated\x20for\x20account\x20\x22%s\x22\x20#%d',_0x17511b[_0x4f8ed4(0x128)],_0x17511b['id']))):logger[_0x4f8ed4(0x12b)](util['format'](_0x4f8ed4(0x136),_0x17511b[_0x4f8ed4(0x128)],_0x17511b['id']),util['inspect'](_0xc9835d,{'showHidden':![],'depth':null}));})['catch'](function(_0x3c0449){const _0x39c294=_0x5394fb;logger[_0x39c294(0x12b)](util[_0x39c294(0x137)](_0x39c294(0x136),_0x17511b[_0x39c294(0x128)],_0x17511b['id']));throw _0x3c0449;});}}}};}module[a418_0x39564c(0x138)][a418_0x39564c(0x12e)]=options; \ No newline at end of file diff --git a/server/api/intZohoAccount/intZohoAccount.rpc.js b/server/api/intZohoAccount/intZohoAccount.rpc.js index aaf63d7..9ef2244 100644 --- a/server/api/intZohoAccount/intZohoAccount.rpc.js +++ b/server/api/intZohoAccount/intZohoAccount.rpc.js @@ -1 +1 @@ -const a348_0x4f95=['rpc','stringify','../../mysqldb','where','findOne','ZohoAccount','map','model','include','ShowZohoAccount','options','raw','debug','GetZohoAccount','catch','error','findAll','limit','attributes','message','lodash','../../config/logger'];(function(_0x50a7b3,_0x4f95c6){const _0x45110f=function(_0x274433){while(--_0x274433){_0x50a7b3['push'](_0x50a7b3['shift']());}};_0x45110f(++_0x4f95c6);}(a348_0x4f95,0x81));const a348_0x4511=function(_0x50a7b3,_0x4f95c6){_0x50a7b3=_0x50a7b3-0x0;let _0x45110f=a348_0x4f95[_0x50a7b3];return _0x45110f;};const _0x356684=a348_0x4511;'use strict';const _=require(_0x356684('0x1')),db=require(_0x356684('0x5'))['db'],logger=require(_0x356684('0x2'))(_0x356684('0x3'));exports[_0x356684('0x10')]=function(_0x274433){const _0x18ac20=this;return new Promise(function(_0x1ef71b,_0x9b7077){const _0x21367b=a348_0x4511;return db[_0x21367b('0x8')][_0x21367b('0x13')]({'raw':_0x274433['options']?_0x274433[_0x21367b('0xd')]['raw']===undefined?!![]:![]:!![],'where':_0x274433[_0x21367b('0xd')]?_0x274433[_0x21367b('0xd')]['where']||null:null,'attributes':_0x274433[_0x21367b('0xd')]?_0x274433[_0x21367b('0xd')][_0x21367b('0x15')]||null:null,'limit':_0x274433[_0x21367b('0xd')]?_0x274433[_0x21367b('0xd')][_0x21367b('0x14')]||null:null,'include':_0x274433[_0x21367b('0xd')]?_0x274433['options'][_0x21367b('0xb')]?_[_0x21367b('0x9')](_0x274433['options']['include'],function(_0x5beb88){const _0x36ea59=_0x21367b;return{'model':db[_0x5beb88[_0x36ea59('0xa')]],'as':_0x5beb88['as'],'attributes':_0x5beb88[_0x36ea59('0x15')],'include':_0x5beb88[_0x36ea59('0xb')]?_[_0x36ea59('0x9')](_0x5beb88[_0x36ea59('0xb')],function(_0x43f0b7){const _0x16b52c=_0x36ea59;return{'model':db[_0x43f0b7[_0x16b52c('0xa')]],'as':_0x43f0b7['as'],'attributes':_0x43f0b7[_0x16b52c('0x15')],'include':_0x43f0b7[_0x16b52c('0xb')]?_[_0x16b52c('0x9')](_0x43f0b7[_0x16b52c('0xb')],function(_0x1cda09){const _0x26daaf=_0x16b52c;return{'model':db[_0x1cda09[_0x26daaf('0xa')]],'as':_0x1cda09['as'],'attributes':_0x1cda09[_0x26daaf('0x15')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x2f87cb){const _0x1823f8=_0x21367b;logger['info'](_0x1823f8('0x10'),_0x274433),logger[_0x1823f8('0xf')]('GetZohoAccount',_0x274433,JSON['stringify'](_0x2f87cb)),_0x1ef71b(_0x2f87cb);})[_0x21367b('0x11')](function(_0x736f6a){const _0x273012=_0x21367b;logger[_0x273012('0x12')](_0x273012('0x10'),_0x736f6a[_0x273012('0x0')],_0x274433),_0x9b7077(_0x18ac20[_0x273012('0x12')](0x1f4,_0x736f6a['message']));});});},exports[_0x356684('0xc')]=function(_0x4feae7){const _0x22c517=this;return new Promise(function(_0x43aea2,_0x55a828){const _0x4942b5=a348_0x4511;return db[_0x4942b5('0x8')][_0x4942b5('0x7')]({'raw':_0x4feae7[_0x4942b5('0xd')]?_0x4feae7[_0x4942b5('0xd')][_0x4942b5('0xe')]===undefined?!![]:![]:!![],'where':_0x4feae7[_0x4942b5('0xd')]?_0x4feae7['options'][_0x4942b5('0x6')]||null:null,'attributes':_0x4feae7['options']?_0x4feae7['options']['attributes']||null:null,'include':_0x4feae7['options']?_0x4feae7[_0x4942b5('0xd')][_0x4942b5('0xb')]?_[_0x4942b5('0x9')](_0x4feae7[_0x4942b5('0xd')]['include'],function(_0x514e31){const _0x137cb5=_0x4942b5;return{'model':db[_0x514e31[_0x137cb5('0xa')]],'as':_0x514e31['as'],'attributes':_0x514e31[_0x137cb5('0x15')],'include':_0x514e31[_0x137cb5('0xb')]?_[_0x137cb5('0x9')](_0x514e31[_0x137cb5('0xb')],function(_0x5f10fa){const _0x1b3158=_0x137cb5;return{'model':db[_0x5f10fa[_0x1b3158('0xa')]],'as':_0x5f10fa['as'],'attributes':_0x5f10fa[_0x1b3158('0x15')],'include':_0x5f10fa[_0x1b3158('0xb')]?_[_0x1b3158('0x9')](_0x5f10fa['include'],function(_0x3a821d){const _0x273e63=_0x1b3158;return{'model':db[_0x3a821d[_0x273e63('0xa')]],'as':_0x3a821d['as'],'attributes':_0x3a821d['attributes']};}):[]};}):[]};}):[]:[]})['then'](function(_0x316adc){const _0x248ea3=_0x4942b5;logger['info'](_0x248ea3('0xc'),_0x4feae7),logger[_0x248ea3('0xf')](_0x248ea3('0xc'),_0x4feae7,JSON[_0x248ea3('0x4')](_0x316adc)),_0x43aea2(_0x316adc);})[_0x4942b5('0x11')](function(_0x50636){const _0x554fb0=_0x4942b5;logger[_0x554fb0('0x12')](_0x554fb0('0xc'),_0x50636['message'],_0x4feae7),_0x55a828(_0x22c517[_0x554fb0('0x12')](0x1f4,_0x50636['message']));});});}; \ No newline at end of file +const a419_0x1252=['catch','ZohoAccount','error','raw','info','../../config/logger','GetZohoAccount','where','options','lodash','rpc','message','findAll','then','../../mysqldb','ShowZohoAccount','findOne','include','debug','model','stringify','map','attributes'];(function(_0x1c5978,_0x5dd981){const _0x1252f4=function(_0x3d5387){while(--_0x3d5387){_0x1c5978['push'](_0x1c5978['shift']());}};_0x1252f4(++_0x5dd981);}(a419_0x1252,0x1c6));const a419_0x3d53=function(_0x1c5978,_0x5dd981){_0x1c5978=_0x1c5978-0x1eb;let _0x1252f4=a419_0x1252[_0x1c5978];return _0x1252f4;};const a419_0x56c7aa=a419_0x3d53;'use strict';const _=require(a419_0x56c7aa(0x1fa)),db=require(a419_0x56c7aa(0x1ff))['db'],logger=require(a419_0x56c7aa(0x1f6))(a419_0x56c7aa(0x1fb));exports[a419_0x56c7aa(0x1f7)]=function(_0xf4a4dd){const _0x15ac38=this;return new Promise(function(_0xb42a,_0x212ada){const _0x3f4c16=a419_0x3d53;return db[_0x3f4c16(0x1f2)][_0x3f4c16(0x1fd)]({'raw':_0xf4a4dd[_0x3f4c16(0x1f9)]?_0xf4a4dd[_0x3f4c16(0x1f9)][_0x3f4c16(0x1f4)]===undefined?!![]:![]:!![],'where':_0xf4a4dd['options']?_0xf4a4dd[_0x3f4c16(0x1f9)]['where']||null:null,'attributes':_0xf4a4dd[_0x3f4c16(0x1f9)]?_0xf4a4dd[_0x3f4c16(0x1f9)][_0x3f4c16(0x1f0)]||null:null,'limit':_0xf4a4dd[_0x3f4c16(0x1f9)]?_0xf4a4dd['options']['limit']||null:null,'include':_0xf4a4dd[_0x3f4c16(0x1f9)]?_0xf4a4dd[_0x3f4c16(0x1f9)][_0x3f4c16(0x1eb)]?_[_0x3f4c16(0x1ef)](_0xf4a4dd[_0x3f4c16(0x1f9)][_0x3f4c16(0x1eb)],function(_0x31127d){const _0x29c2c8=_0x3f4c16;return{'model':db[_0x31127d['model']],'as':_0x31127d['as'],'attributes':_0x31127d['attributes'],'include':_0x31127d[_0x29c2c8(0x1eb)]?_[_0x29c2c8(0x1ef)](_0x31127d[_0x29c2c8(0x1eb)],function(_0x2bef95){const _0x219a8a=_0x29c2c8;return{'model':db[_0x2bef95['model']],'as':_0x2bef95['as'],'attributes':_0x2bef95['attributes'],'include':_0x2bef95[_0x219a8a(0x1eb)]?_['map'](_0x2bef95[_0x219a8a(0x1eb)],function(_0x1a0a33){const _0x26fa67=_0x219a8a;return{'model':db[_0x1a0a33[_0x26fa67(0x1ed)]],'as':_0x1a0a33['as'],'attributes':_0x1a0a33[_0x26fa67(0x1f0)]};}):[]};}):[]};}):[]:[]})[_0x3f4c16(0x1fe)](function(_0x122e4d){const _0x534b3b=_0x3f4c16;logger[_0x534b3b(0x1f5)](_0x534b3b(0x1f7),_0xf4a4dd),logger['debug'](_0x534b3b(0x1f7),_0xf4a4dd,JSON['stringify'](_0x122e4d)),_0xb42a(_0x122e4d);})[_0x3f4c16(0x1f1)](function(_0x330842){const _0xa32407=_0x3f4c16;logger[_0xa32407(0x1f3)](_0xa32407(0x1f7),_0x330842[_0xa32407(0x1fc)],_0xf4a4dd),_0x212ada(_0x15ac38[_0xa32407(0x1f3)](0x1f4,_0x330842[_0xa32407(0x1fc)]));});});},exports['ShowZohoAccount']=function(_0x1ffbd3){const _0x11cddb=this;return new Promise(function(_0x205c5d,_0x54f207){const _0x2cdfb6=a419_0x3d53;return db[_0x2cdfb6(0x1f2)][_0x2cdfb6(0x201)]({'raw':_0x1ffbd3[_0x2cdfb6(0x1f9)]?_0x1ffbd3[_0x2cdfb6(0x1f9)]['raw']===undefined?!![]:![]:!![],'where':_0x1ffbd3[_0x2cdfb6(0x1f9)]?_0x1ffbd3[_0x2cdfb6(0x1f9)][_0x2cdfb6(0x1f8)]||null:null,'attributes':_0x1ffbd3['options']?_0x1ffbd3[_0x2cdfb6(0x1f9)][_0x2cdfb6(0x1f0)]||null:null,'include':_0x1ffbd3[_0x2cdfb6(0x1f9)]?_0x1ffbd3[_0x2cdfb6(0x1f9)][_0x2cdfb6(0x1eb)]?_[_0x2cdfb6(0x1ef)](_0x1ffbd3[_0x2cdfb6(0x1f9)]['include'],function(_0x354643){const _0x3f02b2=_0x2cdfb6;return{'model':db[_0x354643[_0x3f02b2(0x1ed)]],'as':_0x354643['as'],'attributes':_0x354643[_0x3f02b2(0x1f0)],'include':_0x354643[_0x3f02b2(0x1eb)]?_['map'](_0x354643[_0x3f02b2(0x1eb)],function(_0x2eb831){const _0x247d20=_0x3f02b2;return{'model':db[_0x2eb831[_0x247d20(0x1ed)]],'as':_0x2eb831['as'],'attributes':_0x2eb831[_0x247d20(0x1f0)],'include':_0x2eb831[_0x247d20(0x1eb)]?_[_0x247d20(0x1ef)](_0x2eb831[_0x247d20(0x1eb)],function(_0xa775c7){const _0x27b457=_0x247d20;return{'model':db[_0xa775c7[_0x27b457(0x1ed)]],'as':_0xa775c7['as'],'attributes':_0xa775c7['attributes']};}):[]};}):[]};}):[]:[]})[_0x2cdfb6(0x1fe)](function(_0x1d619b){const _0x25388a=_0x2cdfb6;logger[_0x25388a(0x1f5)](_0x25388a(0x200),_0x1ffbd3),logger[_0x25388a(0x1ec)](_0x25388a(0x200),_0x1ffbd3,JSON[_0x25388a(0x1ee)](_0x1d619b)),_0x205c5d(_0x1d619b);})[_0x2cdfb6(0x1f1)](function(_0x156d21){const _0x35d496=_0x2cdfb6;logger[_0x35d496(0x1f3)]('ShowZohoAccount',_0x156d21['message'],_0x1ffbd3),_0x54f207(_0x11cddb[_0x35d496(0x1f3)](0x1f4,_0x156d21[_0x35d496(0x1fc)]));});});}; \ No newline at end of file diff --git a/server/api/intZohoConfiguration/index.js b/server/api/intZohoConfiguration/index.js index 5f5cbd7..9b01e5e 100644 --- a/server/api/intZohoConfiguration/index.js +++ b/server/api/intZohoConfiguration/index.js @@ -1 +1 @@ -const a349_0x25b8=['show','/:id/fields','update','getSubjects','express','/:id/descriptions','./intZohoConfiguration.controller','getFields','/:id/subjects','put','getDescriptions','Router','isAuthenticated','destroy','get','/:id','../../components/auth/service'];(function(_0x465785,_0x25b859){const _0x24e415=function(_0x1b3796){while(--_0x1b3796){_0x465785['push'](_0x465785['shift']());}};_0x24e415(++_0x25b859);}(a349_0x25b8,0xd1));const a349_0x24e4=function(_0x465785,_0x25b859){_0x465785=_0x465785-0x0;let _0x24e415=a349_0x25b8[_0x465785];return _0x24e415;};const _0x8cc8c1=a349_0x24e4;'use strict';const express=require(_0x8cc8c1('0x10')),router=express[_0x8cc8c1('0x6')](),auth=require(_0x8cc8c1('0xb')),controller=require(_0x8cc8c1('0x1'));router[_0x8cc8c1('0x9')]('/',auth[_0x8cc8c1('0x7')](),controller['index']),router[_0x8cc8c1('0x9')]('/:id',auth[_0x8cc8c1('0x7')](),controller[_0x8cc8c1('0xc')]),router[_0x8cc8c1('0x9')](_0x8cc8c1('0xd'),auth['isAuthenticated'](),controller[_0x8cc8c1('0x2')]),router[_0x8cc8c1('0x9')](_0x8cc8c1('0x3'),auth[_0x8cc8c1('0x7')](),controller[_0x8cc8c1('0xf')]),router['get'](_0x8cc8c1('0x0'),auth[_0x8cc8c1('0x7')](),controller[_0x8cc8c1('0x5')]),router['post']('/',auth['isAuthenticated'](),controller['create']),router[_0x8cc8c1('0x4')](_0x8cc8c1('0xa'),auth[_0x8cc8c1('0x7')](),controller[_0x8cc8c1('0xe')]),router['delete'](_0x8cc8c1('0xa'),auth['isAuthenticated'](),controller[_0x8cc8c1('0x8')]),module['exports']=router; \ No newline at end of file +const a420_0x2143=['post','/:id/fields','/:id','index','put','express','/:id/descriptions','get','exports','destroy','create','../../components/auth/service','./intZohoConfiguration.controller','/:id/subjects','getDescriptions','getFields','isAuthenticated'];(function(_0x33a83f,_0x779fb3){const _0x2143c7=function(_0x1a5598){while(--_0x1a5598){_0x33a83f['push'](_0x33a83f['shift']());}};_0x2143c7(++_0x779fb3);}(a420_0x2143,0x17f));const a420_0x1a55=function(_0x33a83f,_0x779fb3){_0x33a83f=_0x33a83f-0x12e;let _0x2143c7=a420_0x2143[_0x33a83f];return _0x2143c7;};const a420_0x1876a0=a420_0x1a55;'use strict';const express=require(a420_0x1876a0(0x13b)),router=express['Router'](),auth=require(a420_0x1876a0(0x130)),controller=require(a420_0x1876a0(0x131));router[a420_0x1876a0(0x13d)]('/',auth[a420_0x1876a0(0x135)](),controller[a420_0x1876a0(0x139)]),router[a420_0x1876a0(0x13d)](a420_0x1876a0(0x138),auth[a420_0x1876a0(0x135)](),controller['show']),router[a420_0x1876a0(0x13d)](a420_0x1876a0(0x137),auth[a420_0x1876a0(0x135)](),controller[a420_0x1876a0(0x134)]),router[a420_0x1876a0(0x13d)](a420_0x1876a0(0x132),auth[a420_0x1876a0(0x135)](),controller['getSubjects']),router[a420_0x1876a0(0x13d)](a420_0x1876a0(0x13c),auth['isAuthenticated'](),controller[a420_0x1876a0(0x133)]),router[a420_0x1876a0(0x136)]('/',auth[a420_0x1876a0(0x135)](),controller[a420_0x1876a0(0x12f)]),router[a420_0x1876a0(0x13a)](a420_0x1876a0(0x138),auth[a420_0x1876a0(0x135)](),controller['update']),router['delete']('/:id',auth[a420_0x1876a0(0x135)](),controller[a420_0x1876a0(0x12e)]),module[a420_0x1876a0(0x13e)]=router; \ No newline at end of file diff --git a/server/api/intZohoConfiguration/intZohoConfiguration.attributes.js b/server/api/intZohoConfiguration/intZohoConfiguration.attributes.js index 018aec8..fd09f96 100644 --- a/server/api/intZohoConfiguration/intZohoConfiguration.attributes.js +++ b/server/api/intZohoConfiguration/intZohoConfiguration.attributes.js @@ -1 +1 @@ -const a350_0x1889=['contact','nothing','lead','STRING','exports','ENUM','contact_lead','sequelize'];(function(_0xb575eb,_0x1889ff){const _0x14f1b5=function(_0x13ce5d){while(--_0x13ce5d){_0xb575eb['push'](_0xb575eb['shift']());}};_0x14f1b5(++_0x1889ff);}(a350_0x1889,0x89));const a350_0x14f1=function(_0xb575eb,_0x1889ff){_0xb575eb=_0xb575eb-0x0;let _0x14f1b5=a350_0x1889[_0xb575eb];return _0x14f1b5;};const _0x33c1a2=a350_0x14f1;'use strict';const Sequelize=require(_0x33c1a2('0x6'));module[_0x33c1a2('0x3')]={'name':{'type':Sequelize[_0x33c1a2('0x2')]},'moduleCreate':{'type':Sequelize['ENUM'](_0x33c1a2('0x1'),_0x33c1a2('0x7'),_0x33c1a2('0x0')),'defaultValue':'lead'},'moduleSearch':{'type':Sequelize[_0x33c1a2('0x4')]('contact_lead',_0x33c1a2('0x7'),_0x33c1a2('0x1')),'defaultValue':_0x33c1a2('0x5')},'description':{'type':Sequelize['STRING']}}; \ No newline at end of file +const a421_0x3970=['STRING','contact','ENUM','lead','attributes','sequelize','nothing','contact_lead'];(function(_0x471f3b,_0x1cbc08){const _0x397050=function(_0x30a9f3){while(--_0x30a9f3){_0x471f3b['push'](_0x471f3b['shift']());}};_0x397050(++_0x1cbc08);}(a421_0x3970,0x1c3));const a421_0x30a9=function(_0x471f3b,_0x1cbc08){_0x471f3b=_0x471f3b-0x193;let _0x397050=a421_0x3970[_0x471f3b];return _0x397050;};const a421_0x528b96=a421_0x30a9;'use strict';const {DataTypes}=require(a421_0x528b96(0x195)),attributes={'name':{'type':DataTypes[a421_0x528b96(0x198)]},'moduleCreate':{'type':DataTypes[a421_0x528b96(0x19a)](a421_0x528b96(0x193),a421_0x528b96(0x199),a421_0x528b96(0x196)),'defaultValue':'lead'},'moduleSearch':{'type':DataTypes[a421_0x528b96(0x19a)](a421_0x528b96(0x197),a421_0x528b96(0x199),a421_0x528b96(0x193)),'defaultValue':a421_0x528b96(0x197)},'description':{'type':DataTypes[a421_0x528b96(0x198)]}};module['exports'][a421_0x528b96(0x194)]=attributes; \ No newline at end of file diff --git a/server/api/intZohoConfiguration/intZohoConfiguration.controller.js b/server/api/intZohoConfiguration/intZohoConfiguration.controller.js index bf361d4..1b718a6 100644 --- a/server/api/intZohoConfiguration/intZohoConfiguration.controller.js +++ b/server/api/intZohoConfiguration/intZohoConfiguration.controller.js @@ -1 +1 @@ -const a351_0x1bca=['intersection','undefined','show','index','options','offset','params','create','api','destroy','Content-Range','ZohoField','sendStatus','getFields','catch','then','filter','type','where','sequelize','limit','includeAll','error','attributes','fields','map','../../mysqldb','model','key','name','rawAttributes','getSubjects','query','count','set','keys','findOne','ZohoConfiguration','rows','stack','filters','findAll','VIRTUAL','like','getDescriptions','pick','body','include','order','status','update','sort','json','length','nolimit','merge'];(function(_0x470ec2,_0x1bca0c){const _0xd661f5=function(_0xdd9f25){while(--_0xdd9f25){_0x470ec2['push'](_0x470ec2['shift']());}};_0xd661f5(++_0x1bca0c);}(a351_0x1bca,0x1f0));const a351_0xd661=function(_0x470ec2,_0x1bca0c){_0x470ec2=_0x470ec2-0x0;let _0xd661f5=a351_0x1bca[_0x470ec2];return _0xd661f5;};const _0x347a7f=a351_0xd661;'use strict';const _=require('lodash'),qs=require('../../components/parsers/qs'),logger=require('../../config/logger')(_0x347a7f('0x10')),db=require(_0x347a7f('0x22'))['db'],{Op}=require(_0x347a7f('0x1b'));function respondWithResult(_0xdd9f25,_0x5d595d){return _0x5d595d=_0x5d595d||0xc8,function(_0x4c6d92){const _0x157fe=a351_0xd661;if(_0x4c6d92)return _0xdd9f25[_0x157fe('0x1')](_0x5d595d)[_0x157fe('0x4')](_0x4c6d92);};}function respondWithFilteredResult(_0x17447e,_0x2381ff){return function(_0x128870){const _0x50f0d6=a351_0xd661;if(_0x128870){const _0x45f0c0=_0x128870[_0x50f0d6('0x29')],_0x245480=_0x2381ff[_0x50f0d6('0xd')];let _0x4d67da=_0x2381ff[_0x50f0d6('0xd')]+_0x2381ff['limit'],_0xb6ee62;return _0x4d67da>=_0x45f0c0?(_0x4d67da=_0x45f0c0,_0xb6ee62=0xc8):_0xb6ee62=0xce,_0x17447e[_0x50f0d6('0x1')](_0xb6ee62),_0x17447e[_0x50f0d6('0x2a')](_0x50f0d6('0x12'),_0x245480+'-'+_0x4d67da+'/'+_0x45f0c0)[_0x50f0d6('0x4')](_0x128870);}return null;};}function saveUpdates(_0x578ec0){return function(_0x15809b){const _0x51ed0d=a351_0xd661;if(_0x15809b)return _0x15809b['update'](_0x578ec0)[_0x51ed0d('0x17')](function(_0x35f846){return _0x35f846;});return null;};}function removeEntity(_0x1cd1b6){return function(_0x49d255){const _0x4f862f=a351_0xd661;if(_0x49d255)return _0x49d255[_0x4f862f('0x11')]()['then'](function(){const _0x27b36e=_0x4f862f;_0x1cd1b6[_0x27b36e('0x1')](0xcc)['end']();});};}function handleEntityNotFound(_0x35be11){return function(_0x3e440f){const _0x1295a5=a351_0xd661;return!_0x3e440f&&_0x35be11[_0x1295a5('0x14')](0x194),_0x3e440f;};}function handleError(_0x33d83c,_0x282165){return _0x282165=_0x282165||0x1f4,function(_0x26c5d2){const _0x437241=a351_0xd661;logger[_0x437241('0x1e')](_0x26c5d2[_0x437241('0x2f')]),_0x26c5d2['name']&&delete _0x26c5d2[_0x437241('0x25')],_0x33d83c[_0x437241('0x1')](_0x282165)['send'](_0x26c5d2);};}exports[_0x347a7f('0xb')]=function(_0x487e7e,_0x1347b6){const _0x2ad69b=_0x347a7f;let _0x1a4be9={};const _0x26910c={},_0x52fdcf={'count':0x0,'rows':[]},_0x17e443=_[_0x2ad69b('0x21')](db[_0x2ad69b('0x2d')][_0x2ad69b('0x26')],function(_0x2dc329){const _0x20c806=_0x2ad69b;return{'name':_0x2dc329['fieldName'],'type':_0x2dc329[_0x20c806('0x19')][_0x20c806('0x24')]};});_0x26910c[_0x2ad69b('0x23')]=_['map'](_0x17e443,_0x2ad69b('0x25')),_0x26910c[_0x2ad69b('0x28')]=_['keys'](_0x487e7e[_0x2ad69b('0x28')]),_0x26910c[_0x2ad69b('0x30')]=_[_0x2ad69b('0x8')](_0x26910c[_0x2ad69b('0x23')],_0x26910c[_0x2ad69b('0x28')]),_0x1a4be9[_0x2ad69b('0x1f')]=_[_0x2ad69b('0x8')](_0x26910c[_0x2ad69b('0x23')],qs[_0x2ad69b('0x20')](_0x487e7e[_0x2ad69b('0x28')][_0x2ad69b('0x20')])),_0x1a4be9[_0x2ad69b('0x1f')]=_0x1a4be9[_0x2ad69b('0x1f')]['length']?_0x1a4be9['attributes']:_0x26910c['model'];typeof _0x487e7e[_0x2ad69b('0x28')][_0x2ad69b('0x6')]===_0x2ad69b('0x9')&&(_0x1a4be9[_0x2ad69b('0x1c')]=qs[_0x2ad69b('0x1c')](_0x487e7e[_0x2ad69b('0x28')][_0x2ad69b('0x1c')]),_0x1a4be9[_0x2ad69b('0xd')]=qs[_0x2ad69b('0xd')](_0x487e7e['query'][_0x2ad69b('0xd')]));_0x1a4be9[_0x2ad69b('0x0')]=qs[_0x2ad69b('0x3')](_0x487e7e[_0x2ad69b('0x28')][_0x2ad69b('0x3')]),_0x1a4be9[_0x2ad69b('0x1a')]=qs[_0x2ad69b('0x30')](_[_0x2ad69b('0x35')](_0x487e7e[_0x2ad69b('0x28')],_0x26910c[_0x2ad69b('0x30')]),_0x17e443);_0x487e7e[_0x2ad69b('0x28')]['filter']&&(_0x1a4be9[_0x2ad69b('0x1a')]=_[_0x2ad69b('0x7')](_0x1a4be9[_0x2ad69b('0x1a')],{[Op['or']]:_['map'](_0x17e443,function(_0xc561f1){const _0x2637c0=_0x2ad69b;if(_0xc561f1[_0x2637c0('0x19')]!==_0x2637c0('0x32')){const _0x52a94f={};return _0x52a94f[_0xc561f1[_0x2637c0('0x25')]]={[Op[_0x2637c0('0x33')]]:'%'+_0x487e7e[_0x2637c0('0x28')][_0x2637c0('0x18')]+'%'},_0x52a94f;}})}));_0x1a4be9=_['merge']({},_0x1a4be9,_0x487e7e[_0x2ad69b('0xc')]);const _0x9ea645={'where':_0x1a4be9['where']};return db['ZohoConfiguration'][_0x2ad69b('0x29')](_0x9ea645)['then'](function(_0x11681b){const _0x313d50=_0x2ad69b;return _0x52fdcf[_0x313d50('0x29')]=_0x11681b,_0x487e7e[_0x313d50('0x28')]['includeAll']&&(_0x1a4be9[_0x313d50('0x37')]=[{'all':!![]}]),db[_0x313d50('0x2d')][_0x313d50('0x31')](_0x1a4be9);})[_0x2ad69b('0x17')](function(_0x47d610){const _0x5da191=_0x2ad69b;return _0x52fdcf[_0x5da191('0x2e')]=_0x47d610,_0x52fdcf;})[_0x2ad69b('0x17')](respondWithFilteredResult(_0x1347b6,_0x1a4be9))[_0x2ad69b('0x16')](handleError(_0x1347b6,null));},exports[_0x347a7f('0xa')]=function(_0x57cbcd,_0x34d974){const _0x2d538e=_0x347a7f;let _0x5cbecb={'raw':![],'where':{'id':_0x57cbcd[_0x2d538e('0xe')]['id']}};const _0x232e22={};return _0x232e22[_0x2d538e('0x23')]=_['keys'](db[_0x2d538e('0x2d')][_0x2d538e('0x26')]),_0x232e22[_0x2d538e('0x28')]=_[_0x2d538e('0x2b')](_0x57cbcd[_0x2d538e('0x28')]),_0x232e22[_0x2d538e('0x30')]=_[_0x2d538e('0x8')](_0x232e22[_0x2d538e('0x23')],_0x232e22[_0x2d538e('0x28')]),_0x5cbecb[_0x2d538e('0x1f')]=_['intersection'](_0x232e22[_0x2d538e('0x23')],qs[_0x2d538e('0x20')](_0x57cbcd[_0x2d538e('0x28')][_0x2d538e('0x20')])),_0x5cbecb[_0x2d538e('0x1f')]=_0x5cbecb[_0x2d538e('0x1f')][_0x2d538e('0x5')]?_0x5cbecb[_0x2d538e('0x1f')]:_0x232e22[_0x2d538e('0x23')],_0x57cbcd[_0x2d538e('0x28')][_0x2d538e('0x1d')]&&(_0x5cbecb[_0x2d538e('0x37')]=[{'all':!![]}]),_0x5cbecb=_[_0x2d538e('0x7')]({},_0x5cbecb,_0x57cbcd[_0x2d538e('0xc')]),db[_0x2d538e('0x2d')][_0x2d538e('0x2c')](_0x5cbecb)[_0x2d538e('0x17')](handleEntityNotFound(_0x34d974,null))[_0x2d538e('0x17')](respondWithResult(_0x34d974,null))[_0x2d538e('0x16')](handleError(_0x34d974,null));},exports[_0x347a7f('0xf')]=function(_0x4e9225,_0x460349){const _0xb288cc=_0x347a7f;return db[_0xb288cc('0x2d')][_0xb288cc('0xf')](_0x4e9225[_0xb288cc('0x36')],{})[_0xb288cc('0x17')](respondWithResult(_0x460349,0xc9))[_0xb288cc('0x16')](handleError(_0x460349,null));},exports[_0x347a7f('0x2')]=function(_0x16e87d,_0x466f48){const _0x2e4737=_0x347a7f;return _0x16e87d[_0x2e4737('0x36')]['id']&&delete _0x16e87d[_0x2e4737('0x36')]['id'],db[_0x2e4737('0x2d')][_0x2e4737('0x2c')]({'where':{'id':_0x16e87d['params']['id']}})[_0x2e4737('0x17')](handleEntityNotFound(_0x466f48,null))[_0x2e4737('0x17')](saveUpdates(_0x16e87d[_0x2e4737('0x36')],null))[_0x2e4737('0x17')](respondWithResult(_0x466f48,null))[_0x2e4737('0x16')](handleError(_0x466f48,null));},exports['destroy']=function(_0x511c08,_0x305596){const _0x402ae1=_0x347a7f;return db[_0x402ae1('0x2d')]['findOne']({'where':{'id':_0x511c08[_0x402ae1('0xe')]['id']}})['then'](handleEntityNotFound(_0x305596,null))[_0x402ae1('0x17')](removeEntity(_0x305596,null))[_0x402ae1('0x16')](handleError(_0x305596,null));},exports[_0x347a7f('0x15')]=function(_0x2ffe7e,_0x1dbc3f){const _0x418ce9=_0x347a7f;let _0x133a8b={};const _0x45311e={};let _0x11fede,_0x367129;return db[_0x418ce9('0x2d')][_0x418ce9('0x2c')]({'where':{'id':_0x2ffe7e['params']['id']}})[_0x418ce9('0x17')](handleEntityNotFound(_0x1dbc3f,null))[_0x418ce9('0x17')](function(_0x2beef8){const _0x3a4e95=_0x418ce9;if(_0x2beef8)return _0x11fede=_0x2beef8,_0x45311e[_0x3a4e95('0x23')]=_[_0x3a4e95('0x2b')](db['ZohoField']['rawAttributes']),_0x45311e[_0x3a4e95('0x28')]=_[_0x3a4e95('0x2b')](_0x2ffe7e['query']),_0x45311e[_0x3a4e95('0x30')]=_[_0x3a4e95('0x8')](_0x45311e['model'],_0x45311e['query']),_0x133a8b[_0x3a4e95('0x1f')]=_[_0x3a4e95('0x8')](_0x45311e['model'],qs['fields'](_0x2ffe7e[_0x3a4e95('0x28')][_0x3a4e95('0x20')])),_0x133a8b[_0x3a4e95('0x1f')]=_0x133a8b[_0x3a4e95('0x1f')][_0x3a4e95('0x5')]?_0x133a8b[_0x3a4e95('0x1f')]:_0x45311e[_0x3a4e95('0x23')],_0x133a8b[_0x3a4e95('0x0')]=qs[_0x3a4e95('0x3')](_0x2ffe7e['query'][_0x3a4e95('0x3')]),_0x133a8b[_0x3a4e95('0x1a')]=qs[_0x3a4e95('0x30')](_[_0x3a4e95('0x35')](_0x2ffe7e[_0x3a4e95('0x28')],_0x45311e['filters'])),_0x2ffe7e['query']['filter']&&(_0x133a8b[_0x3a4e95('0x1a')]=_[_0x3a4e95('0x7')](_0x133a8b[_0x3a4e95('0x1a')],{[Op['or']]:_[_0x3a4e95('0x21')](_0x133a8b[_0x3a4e95('0x1f')],function(_0x1145a3){const _0x3b8965=_0x3a4e95,_0x23af6d={};return _0x23af6d[_0x1145a3]={[Op[_0x3b8965('0x33')]]:'%'+_0x2ffe7e[_0x3b8965('0x28')][_0x3b8965('0x18')]+'%'},_0x23af6d;})})),_0x133a8b=_[_0x3a4e95('0x7')]({},_0x133a8b,_0x2ffe7e[_0x3a4e95('0xc')]),_0x11fede[_0x3a4e95('0x15')](_0x133a8b);})['then'](function(_0x583ed2){const _0x1488e6=_0x418ce9;if(_0x583ed2)return _0x367129=_0x583ed2[_0x1488e6('0x5')],typeof _0x2ffe7e['query'][_0x1488e6('0x6')]===_0x1488e6('0x9')&&(_0x133a8b[_0x1488e6('0x1c')]=qs[_0x1488e6('0x1c')](_0x2ffe7e['query']['limit']),_0x133a8b[_0x1488e6('0xd')]=qs['offset'](_0x2ffe7e['query']['offset'])),_0x11fede[_0x1488e6('0x15')](_0x133a8b);})[_0x418ce9('0x17')](function(_0x1a5855){if(_0x1a5855)return _0x1a5855?{'count':_0x367129,'rows':_0x1a5855}:null;})[_0x418ce9('0x17')](respondWithResult(_0x1dbc3f,null))[_0x418ce9('0x16')](handleError(_0x1dbc3f,null));},exports[_0x347a7f('0x27')]=function(_0x458733,_0x41bd39){const _0x4b8e69=_0x347a7f;let _0x3aeef8={};const _0x488c28={};let _0x4180ac,_0x2be8d2;return db[_0x4b8e69('0x2d')]['findOne']({'where':{'id':_0x458733['params']['id']}})['then'](handleEntityNotFound(_0x41bd39,null))[_0x4b8e69('0x17')](function(_0x1d197a){const _0x46b14c=_0x4b8e69;if(_0x1d197a)return _0x4180ac=_0x1d197a,_0x488c28['model']=_['keys'](db[_0x46b14c('0x13')]['rawAttributes']),_0x488c28['query']=_[_0x46b14c('0x2b')](_0x458733[_0x46b14c('0x28')]),_0x488c28['filters']=_[_0x46b14c('0x8')](_0x488c28[_0x46b14c('0x23')],_0x488c28[_0x46b14c('0x28')]),_0x3aeef8[_0x46b14c('0x1f')]=_[_0x46b14c('0x8')](_0x488c28[_0x46b14c('0x23')],qs[_0x46b14c('0x20')](_0x458733[_0x46b14c('0x28')][_0x46b14c('0x20')])),_0x3aeef8[_0x46b14c('0x1f')]=_0x3aeef8[_0x46b14c('0x1f')]['length']?_0x3aeef8[_0x46b14c('0x1f')]:_0x488c28[_0x46b14c('0x23')],_0x3aeef8[_0x46b14c('0x0')]=qs[_0x46b14c('0x3')](_0x458733[_0x46b14c('0x28')][_0x46b14c('0x3')]),_0x3aeef8[_0x46b14c('0x1a')]=qs[_0x46b14c('0x30')](_[_0x46b14c('0x35')](_0x458733['query'],_0x488c28[_0x46b14c('0x30')])),_0x458733[_0x46b14c('0x28')][_0x46b14c('0x18')]&&(_0x3aeef8[_0x46b14c('0x1a')]=_[_0x46b14c('0x7')](_0x3aeef8['where'],{[Op['or']]:_[_0x46b14c('0x21')](_0x3aeef8[_0x46b14c('0x1f')],function(_0x52a0a8){const _0x5730cd=_0x46b14c,_0x154b4c={};return _0x154b4c[_0x52a0a8]={[Op[_0x5730cd('0x33')]]:'%'+_0x458733[_0x5730cd('0x28')][_0x5730cd('0x18')]+'%'},_0x154b4c;})})),_0x3aeef8=_['merge']({},_0x3aeef8,_0x458733[_0x46b14c('0xc')]),_0x4180ac[_0x46b14c('0x27')](_0x3aeef8);})[_0x4b8e69('0x17')](function(_0x52233f){const _0x210ab1=_0x4b8e69;if(_0x52233f)return _0x2be8d2=_0x52233f[_0x210ab1('0x5')],typeof _0x458733[_0x210ab1('0x28')]['nolimit']==='undefined'&&(_0x3aeef8['limit']=qs[_0x210ab1('0x1c')](_0x458733['query']['limit']),_0x3aeef8[_0x210ab1('0xd')]=qs['offset'](_0x458733['query'][_0x210ab1('0xd')])),_0x4180ac[_0x210ab1('0x27')](_0x3aeef8);})[_0x4b8e69('0x17')](function(_0x31e629){if(_0x31e629)return _0x31e629?{'count':_0x2be8d2,'rows':_0x31e629}:null;})[_0x4b8e69('0x17')](respondWithResult(_0x41bd39,null))['catch'](handleError(_0x41bd39,null));},exports[_0x347a7f('0x34')]=function(_0x1245f9,_0x52d3ae){const _0x2468fb=_0x347a7f;let _0x5291ae={};const _0x50c584={};let _0x15dcbf,_0x1b0c94;return db[_0x2468fb('0x2d')][_0x2468fb('0x2c')]({'where':{'id':_0x1245f9['params']['id']}})['then'](handleEntityNotFound(_0x52d3ae,null))[_0x2468fb('0x17')](function(_0x4e4e3b){const _0x7d7220=_0x2468fb;if(_0x4e4e3b)return _0x15dcbf=_0x4e4e3b,_0x50c584['model']=_['keys'](db[_0x7d7220('0x13')][_0x7d7220('0x26')]),_0x50c584[_0x7d7220('0x28')]=_['keys'](_0x1245f9['query']),_0x50c584['filters']=_[_0x7d7220('0x8')](_0x50c584['model'],_0x50c584[_0x7d7220('0x28')]),_0x5291ae[_0x7d7220('0x1f')]=_['intersection'](_0x50c584[_0x7d7220('0x23')],qs[_0x7d7220('0x20')](_0x1245f9['query'][_0x7d7220('0x20')])),_0x5291ae[_0x7d7220('0x1f')]=_0x5291ae['attributes'][_0x7d7220('0x5')]?_0x5291ae[_0x7d7220('0x1f')]:_0x50c584['model'],_0x5291ae['order']=qs['sort'](_0x1245f9[_0x7d7220('0x28')]['sort']),_0x5291ae[_0x7d7220('0x1a')]=qs[_0x7d7220('0x30')](_['pick'](_0x1245f9['query'],_0x50c584[_0x7d7220('0x30')])),_0x1245f9[_0x7d7220('0x28')]['filter']&&(_0x5291ae['where']=_['merge'](_0x5291ae[_0x7d7220('0x1a')],{[Op['or']]:_[_0x7d7220('0x21')](_0x5291ae['attributes'],function(_0x825a42){const _0x46d0cb=_0x7d7220,_0x20cb9f={};return _0x20cb9f[_0x825a42]={[Op[_0x46d0cb('0x33')]]:'%'+_0x1245f9['query']['filter']+'%'},_0x20cb9f;})})),_0x5291ae=_[_0x7d7220('0x7')]({},_0x5291ae,_0x1245f9[_0x7d7220('0xc')]),_0x15dcbf[_0x7d7220('0x34')](_0x5291ae);})[_0x2468fb('0x17')](function(_0x31955c){const _0x26cacc=_0x2468fb;if(_0x31955c)return _0x1b0c94=_0x31955c[_0x26cacc('0x5')],typeof _0x1245f9[_0x26cacc('0x28')]['nolimit']===_0x26cacc('0x9')&&(_0x5291ae[_0x26cacc('0x1c')]=qs[_0x26cacc('0x1c')](_0x1245f9[_0x26cacc('0x28')]['limit']),_0x5291ae['offset']=qs[_0x26cacc('0xd')](_0x1245f9[_0x26cacc('0x28')][_0x26cacc('0xd')])),_0x15dcbf['getDescriptions'](_0x5291ae);})[_0x2468fb('0x17')](function(_0x501346){if(_0x501346)return _0x501346?{'count':_0x1b0c94,'rows':_0x501346}:null;})[_0x2468fb('0x17')](respondWithResult(_0x52d3ae,null))[_0x2468fb('0x16')](handleError(_0x52d3ae,null));}; \ No newline at end of file +const a422_0x5183=['getSubjects','merge','filters','end','body','error','filter','sendStatus','rawAttributes','include','order','query','type','attributes','findOne','index','Content-Range','model','includeAll','ZohoField','../../mysqldb','params','findAll','set','fields','where','offset','update','stack','nolimit','name','getDescriptions','map','json','then','keys','like','ZohoConfiguration','undefined','lodash','../../config/logger','../../components/parsers/qs','create','show','getFields','limit','length','sort','pick','key','destroy','sequelize','status','intersection','catch','count','options','send'];(function(_0x484c0a,_0x193428){const _0x51838c=function(_0x5bdeb5){while(--_0x5bdeb5){_0x484c0a['push'](_0x484c0a['shift']());}};_0x51838c(++_0x193428);}(a422_0x5183,0x1d5));const a422_0x5bde=function(_0x484c0a,_0x193428){_0x484c0a=_0x484c0a-0x9e;let _0x51838c=a422_0x5183[_0x484c0a];return _0x51838c;};const a422_0x58be5a=a422_0x5bde;'use strict';const _=require(a422_0x58be5a(0xc0)),qs=require(a422_0x58be5a(0xc2)),logger=require(a422_0x58be5a(0xc1))('api'),{db}=require(a422_0x58be5a(0xad)),{Op}=require(a422_0x58be5a(0xcc));function respondWithResult(_0x4265fd,_0x3e0371){return _0x3e0371=_0x3e0371||0xc8,function(_0x3d10fc){const _0x5693f0=a422_0x5bde;if(_0x3d10fc)return _0x4265fd[_0x5693f0(0xcd)](_0x3e0371)[_0x5693f0(0xba)](_0x3d10fc);};}function respondWithFilteredResult(_0x79d86c,_0x5e8d7e){return function(_0x4d0a45){const _0x5aee92=a422_0x5bde;if(_0x4d0a45){const _0x429aac=_0x4d0a45[_0x5aee92(0xd0)],_0x38c8db=_0x5e8d7e[_0x5aee92(0xb3)];let _0x170c3e=_0x5e8d7e[_0x5aee92(0xb3)]+_0x5e8d7e[_0x5aee92(0xc6)],_0x866bef;return _0x170c3e>=_0x429aac?(_0x170c3e=_0x429aac,_0x866bef=0xc8):_0x866bef=0xce,_0x79d86c[_0x5aee92(0xcd)](_0x866bef),_0x79d86c[_0x5aee92(0xb0)](_0x5aee92(0xa9),_0x38c8db+'-'+_0x170c3e+'/'+_0x429aac)[_0x5aee92(0xba)](_0x4d0a45);}return null;};}function saveUpdates(_0x4a2ab5){return function(_0x43204e){const _0x5cc466=a422_0x5bde;if(_0x43204e)return _0x43204e[_0x5cc466(0xb4)](_0x4a2ab5)[_0x5cc466(0xbb)](function(_0x3e38cb){return _0x3e38cb;});return null;};}function removeEntity(_0x18a1ca){return function(_0xbe9fd){const _0x46d025=a422_0x5bde;if(_0xbe9fd)return _0xbe9fd['destroy']()[_0x46d025(0xbb)](function(){const _0x477618=_0x46d025;_0x18a1ca[_0x477618(0xcd)](0xcc)[_0x477618(0xd6)]();});};}function handleEntityNotFound(_0x2250d3){return function(_0x546bd9){const _0x385319=a422_0x5bde;return!_0x546bd9&&_0x2250d3[_0x385319(0xa0)](0x194),_0x546bd9;};}function handleError(_0x21d827,_0x3ed475){return _0x3ed475=_0x3ed475||0x1f4,function(_0x413f58){const _0x482a39=a422_0x5bde;logger[_0x482a39(0x9e)](_0x413f58[_0x482a39(0xb5)]),_0x413f58[_0x482a39(0xb7)]&&delete _0x413f58['name'],_0x21d827['status'](_0x3ed475)[_0x482a39(0xd2)](_0x413f58);};}exports[a422_0x58be5a(0xa8)]=function(_0x52e830,_0x27ce3d){const _0x1c27b5=a422_0x58be5a;let _0x4d1cef={};const _0x5b1349={},_0x514092={'count':0x0,'rows':[]},_0x219d99=_[_0x1c27b5(0xb9)](db[_0x1c27b5(0xbe)][_0x1c27b5(0xa1)],function(_0x523be6){const _0x3c3bbf=_0x1c27b5;return{'name':_0x523be6['fieldName'],'type':_0x523be6[_0x3c3bbf(0xa5)][_0x3c3bbf(0xca)]};});_0x5b1349[_0x1c27b5(0xaa)]=_[_0x1c27b5(0xb9)](_0x219d99,_0x1c27b5(0xb7)),_0x5b1349['query']=_['keys'](_0x52e830[_0x1c27b5(0xa4)]),_0x5b1349['filters']=_[_0x1c27b5(0xce)](_0x5b1349['model'],_0x5b1349[_0x1c27b5(0xa4)]),_0x4d1cef[_0x1c27b5(0xa6)]=_[_0x1c27b5(0xce)](_0x5b1349[_0x1c27b5(0xaa)],qs[_0x1c27b5(0xb1)](_0x52e830[_0x1c27b5(0xa4)][_0x1c27b5(0xb1)])),_0x4d1cef[_0x1c27b5(0xa6)]=_0x4d1cef[_0x1c27b5(0xa6)][_0x1c27b5(0xc7)]?_0x4d1cef['attributes']:_0x5b1349[_0x1c27b5(0xaa)];typeof _0x52e830['query'][_0x1c27b5(0xb6)]===_0x1c27b5(0xbf)&&(_0x4d1cef[_0x1c27b5(0xc6)]=qs[_0x1c27b5(0xc6)](_0x52e830[_0x1c27b5(0xa4)]['limit']),_0x4d1cef[_0x1c27b5(0xb3)]=qs['offset'](_0x52e830[_0x1c27b5(0xa4)][_0x1c27b5(0xb3)]));_0x4d1cef[_0x1c27b5(0xa3)]=qs[_0x1c27b5(0xc8)](_0x52e830[_0x1c27b5(0xa4)]['sort']),_0x4d1cef[_0x1c27b5(0xb2)]=qs[_0x1c27b5(0xd5)](_['pick'](_0x52e830['query'],_0x5b1349[_0x1c27b5(0xd5)]),_0x219d99);_0x52e830['query']['filter']&&(_0x4d1cef['where']=_[_0x1c27b5(0xd4)](_0x4d1cef['where'],{[Op['or']]:_[_0x1c27b5(0xb9)](_0x219d99,function(_0x4ce4b5){const _0x24bc57=_0x1c27b5;if(_0x4ce4b5[_0x24bc57(0xa5)]!=='VIRTUAL'){const _0x5a2beb={};return _0x5a2beb[_0x4ce4b5[_0x24bc57(0xb7)]]={[Op[_0x24bc57(0xbd)]]:'%'+_0x52e830[_0x24bc57(0xa4)][_0x24bc57(0x9f)]+'%'},_0x5a2beb;}})}));_0x4d1cef=_[_0x1c27b5(0xd4)]({},_0x4d1cef,_0x52e830[_0x1c27b5(0xd1)]);const _0x316f50={'where':_0x4d1cef[_0x1c27b5(0xb2)]};return db[_0x1c27b5(0xbe)][_0x1c27b5(0xd0)](_0x316f50)[_0x1c27b5(0xbb)](function(_0x5e770b){const _0x479ac7=_0x1c27b5;return _0x514092['count']=_0x5e770b,_0x52e830['query']['includeAll']&&(_0x4d1cef[_0x479ac7(0xa2)]=[{'all':!![]}]),db[_0x479ac7(0xbe)][_0x479ac7(0xaf)](_0x4d1cef);})[_0x1c27b5(0xbb)](function(_0x853152){return _0x514092['rows']=_0x853152,_0x514092;})[_0x1c27b5(0xbb)](respondWithFilteredResult(_0x27ce3d,_0x4d1cef))['catch'](handleError(_0x27ce3d,null));},exports[a422_0x58be5a(0xc4)]=function(_0xff7150,_0x1b33d8){const _0x17949f=a422_0x58be5a;let _0x2f9acb={'raw':![],'where':{'id':_0xff7150[_0x17949f(0xae)]['id']}};const _0x3e8ed5={};return _0x3e8ed5[_0x17949f(0xaa)]=_[_0x17949f(0xbc)](db[_0x17949f(0xbe)][_0x17949f(0xa1)]),_0x3e8ed5[_0x17949f(0xa4)]=_['keys'](_0xff7150[_0x17949f(0xa4)]),_0x3e8ed5[_0x17949f(0xd5)]=_['intersection'](_0x3e8ed5['model'],_0x3e8ed5['query']),_0x2f9acb[_0x17949f(0xa6)]=_[_0x17949f(0xce)](_0x3e8ed5['model'],qs[_0x17949f(0xb1)](_0xff7150[_0x17949f(0xa4)][_0x17949f(0xb1)])),_0x2f9acb[_0x17949f(0xa6)]=_0x2f9acb[_0x17949f(0xa6)][_0x17949f(0xc7)]?_0x2f9acb[_0x17949f(0xa6)]:_0x3e8ed5[_0x17949f(0xaa)],_0xff7150[_0x17949f(0xa4)][_0x17949f(0xab)]&&(_0x2f9acb['include']=[{'all':!![]}]),_0x2f9acb=_[_0x17949f(0xd4)]({},_0x2f9acb,_0xff7150['options']),db[_0x17949f(0xbe)][_0x17949f(0xa7)](_0x2f9acb)[_0x17949f(0xbb)](handleEntityNotFound(_0x1b33d8,null))['then'](respondWithResult(_0x1b33d8,null))['catch'](handleError(_0x1b33d8,null));},exports['create']=function(_0xaa58fb,_0x1b4871){const _0x19710b=a422_0x58be5a;return db[_0x19710b(0xbe)][_0x19710b(0xc3)](_0xaa58fb[_0x19710b(0xd7)],{})[_0x19710b(0xbb)](respondWithResult(_0x1b4871,0xc9))[_0x19710b(0xcf)](handleError(_0x1b4871,null));},exports[a422_0x58be5a(0xb4)]=function(_0x9f6a16,_0x85de24){const _0x11ee00=a422_0x58be5a;return _0x9f6a16[_0x11ee00(0xd7)]['id']&&delete _0x9f6a16[_0x11ee00(0xd7)]['id'],db[_0x11ee00(0xbe)]['findOne']({'where':{'id':_0x9f6a16[_0x11ee00(0xae)]['id']}})[_0x11ee00(0xbb)](handleEntityNotFound(_0x85de24,null))[_0x11ee00(0xbb)](saveUpdates(_0x9f6a16['body'],null))[_0x11ee00(0xbb)](respondWithResult(_0x85de24,null))[_0x11ee00(0xcf)](handleError(_0x85de24,null));},exports[a422_0x58be5a(0xcb)]=function(_0x308993,_0x757243){const _0x42cec4=a422_0x58be5a;return db[_0x42cec4(0xbe)][_0x42cec4(0xa7)]({'where':{'id':_0x308993['params']['id']}})['then'](handleEntityNotFound(_0x757243,null))[_0x42cec4(0xbb)](removeEntity(_0x757243,null))[_0x42cec4(0xcf)](handleError(_0x757243,null));},exports[a422_0x58be5a(0xc5)]=function(_0x2a3c37,_0x12a42c){const _0xfbfa8b=a422_0x58be5a;let _0x403182={};const _0x67c44c={};let _0x3214c0,_0x1f9bc8;return db[_0xfbfa8b(0xbe)][_0xfbfa8b(0xa7)]({'where':{'id':_0x2a3c37[_0xfbfa8b(0xae)]['id']}})['then'](handleEntityNotFound(_0x12a42c,null))[_0xfbfa8b(0xbb)](function(_0x44a542){const _0x5e0d80=_0xfbfa8b;if(_0x44a542)return _0x3214c0=_0x44a542,_0x67c44c[_0x5e0d80(0xaa)]=_[_0x5e0d80(0xbc)](db[_0x5e0d80(0xac)][_0x5e0d80(0xa1)]),_0x67c44c[_0x5e0d80(0xa4)]=_['keys'](_0x2a3c37[_0x5e0d80(0xa4)]),_0x67c44c[_0x5e0d80(0xd5)]=_[_0x5e0d80(0xce)](_0x67c44c[_0x5e0d80(0xaa)],_0x67c44c[_0x5e0d80(0xa4)]),_0x403182[_0x5e0d80(0xa6)]=_[_0x5e0d80(0xce)](_0x67c44c['model'],qs[_0x5e0d80(0xb1)](_0x2a3c37[_0x5e0d80(0xa4)]['fields'])),_0x403182['attributes']=_0x403182[_0x5e0d80(0xa6)][_0x5e0d80(0xc7)]?_0x403182[_0x5e0d80(0xa6)]:_0x67c44c[_0x5e0d80(0xaa)],_0x403182['order']=qs[_0x5e0d80(0xc8)](_0x2a3c37[_0x5e0d80(0xa4)][_0x5e0d80(0xc8)]),_0x403182[_0x5e0d80(0xb2)]=qs[_0x5e0d80(0xd5)](_[_0x5e0d80(0xc9)](_0x2a3c37[_0x5e0d80(0xa4)],_0x67c44c[_0x5e0d80(0xd5)])),_0x2a3c37[_0x5e0d80(0xa4)]['filter']&&(_0x403182[_0x5e0d80(0xb2)]=_[_0x5e0d80(0xd4)](_0x403182[_0x5e0d80(0xb2)],{[Op['or']]:_[_0x5e0d80(0xb9)](_0x403182[_0x5e0d80(0xa6)],function(_0x5b84ed){const _0x2566a8=_0x5e0d80,_0x3beb50={};return _0x3beb50[_0x5b84ed]={[Op['like']]:'%'+_0x2a3c37[_0x2566a8(0xa4)][_0x2566a8(0x9f)]+'%'},_0x3beb50;})})),_0x403182=_[_0x5e0d80(0xd4)]({},_0x403182,_0x2a3c37[_0x5e0d80(0xd1)]),_0x3214c0[_0x5e0d80(0xc5)](_0x403182);})['then'](function(_0x2acd41){const _0x52e20e=_0xfbfa8b;if(_0x2acd41)return _0x1f9bc8=_0x2acd41['length'],typeof _0x2a3c37[_0x52e20e(0xa4)][_0x52e20e(0xb6)]===_0x52e20e(0xbf)&&(_0x403182[_0x52e20e(0xc6)]=qs[_0x52e20e(0xc6)](_0x2a3c37[_0x52e20e(0xa4)]['limit']),_0x403182[_0x52e20e(0xb3)]=qs[_0x52e20e(0xb3)](_0x2a3c37[_0x52e20e(0xa4)][_0x52e20e(0xb3)])),_0x3214c0['getFields'](_0x403182);})[_0xfbfa8b(0xbb)](function(_0x2a3175){if(_0x2a3175)return _0x2a3175?{'count':_0x1f9bc8,'rows':_0x2a3175}:null;})[_0xfbfa8b(0xbb)](respondWithResult(_0x12a42c,null))['catch'](handleError(_0x12a42c,null));},exports[a422_0x58be5a(0xd3)]=function(_0x1af711,_0x3c228b){const _0x2baadf=a422_0x58be5a;let _0x265e00={};const _0xbf09e3={};let _0x3bc11d,_0x57d4c4;return db[_0x2baadf(0xbe)]['findOne']({'where':{'id':_0x1af711[_0x2baadf(0xae)]['id']}})[_0x2baadf(0xbb)](handleEntityNotFound(_0x3c228b,null))[_0x2baadf(0xbb)](function(_0x423a71){const _0x46c57e=_0x2baadf;if(_0x423a71)return _0x3bc11d=_0x423a71,_0xbf09e3['model']=_['keys'](db['ZohoField'][_0x46c57e(0xa1)]),_0xbf09e3['query']=_['keys'](_0x1af711['query']),_0xbf09e3[_0x46c57e(0xd5)]=_['intersection'](_0xbf09e3['model'],_0xbf09e3[_0x46c57e(0xa4)]),_0x265e00['attributes']=_[_0x46c57e(0xce)](_0xbf09e3[_0x46c57e(0xaa)],qs[_0x46c57e(0xb1)](_0x1af711[_0x46c57e(0xa4)][_0x46c57e(0xb1)])),_0x265e00[_0x46c57e(0xa6)]=_0x265e00[_0x46c57e(0xa6)][_0x46c57e(0xc7)]?_0x265e00['attributes']:_0xbf09e3['model'],_0x265e00[_0x46c57e(0xa3)]=qs[_0x46c57e(0xc8)](_0x1af711['query'][_0x46c57e(0xc8)]),_0x265e00[_0x46c57e(0xb2)]=qs[_0x46c57e(0xd5)](_[_0x46c57e(0xc9)](_0x1af711[_0x46c57e(0xa4)],_0xbf09e3[_0x46c57e(0xd5)])),_0x1af711[_0x46c57e(0xa4)][_0x46c57e(0x9f)]&&(_0x265e00[_0x46c57e(0xb2)]=_[_0x46c57e(0xd4)](_0x265e00[_0x46c57e(0xb2)],{[Op['or']]:_[_0x46c57e(0xb9)](_0x265e00['attributes'],function(_0x393b14){const _0x441e90=_0x46c57e,_0x519170={};return _0x519170[_0x393b14]={[Op[_0x441e90(0xbd)]]:'%'+_0x1af711[_0x441e90(0xa4)][_0x441e90(0x9f)]+'%'},_0x519170;})})),_0x265e00=_['merge']({},_0x265e00,_0x1af711['options']),_0x3bc11d[_0x46c57e(0xd3)](_0x265e00);})[_0x2baadf(0xbb)](function(_0x5e639b){const _0x10424f=_0x2baadf;if(_0x5e639b)return _0x57d4c4=_0x5e639b[_0x10424f(0xc7)],typeof _0x1af711[_0x10424f(0xa4)][_0x10424f(0xb6)]==='undefined'&&(_0x265e00[_0x10424f(0xc6)]=qs[_0x10424f(0xc6)](_0x1af711[_0x10424f(0xa4)]['limit']),_0x265e00[_0x10424f(0xb3)]=qs[_0x10424f(0xb3)](_0x1af711[_0x10424f(0xa4)][_0x10424f(0xb3)])),_0x3bc11d[_0x10424f(0xd3)](_0x265e00);})[_0x2baadf(0xbb)](function(_0x3800c7){if(_0x3800c7)return _0x3800c7?{'count':_0x57d4c4,'rows':_0x3800c7}:null;})['then'](respondWithResult(_0x3c228b,null))[_0x2baadf(0xcf)](handleError(_0x3c228b,null));},exports[a422_0x58be5a(0xb8)]=function(_0x1f1f83,_0x4ec2c2){const _0x167ce5=a422_0x58be5a;let _0x2d875a={};const _0x419e7a={};let _0x2fc396,_0x254e9a;return db[_0x167ce5(0xbe)][_0x167ce5(0xa7)]({'where':{'id':_0x1f1f83[_0x167ce5(0xae)]['id']}})['then'](handleEntityNotFound(_0x4ec2c2,null))[_0x167ce5(0xbb)](function(_0x45669f){const _0x451af2=_0x167ce5;if(_0x45669f)return _0x2fc396=_0x45669f,_0x419e7a[_0x451af2(0xaa)]=_['keys'](db['ZohoField']['rawAttributes']),_0x419e7a['query']=_['keys'](_0x1f1f83['query']),_0x419e7a[_0x451af2(0xd5)]=_[_0x451af2(0xce)](_0x419e7a[_0x451af2(0xaa)],_0x419e7a[_0x451af2(0xa4)]),_0x2d875a[_0x451af2(0xa6)]=_[_0x451af2(0xce)](_0x419e7a[_0x451af2(0xaa)],qs[_0x451af2(0xb1)](_0x1f1f83[_0x451af2(0xa4)]['fields'])),_0x2d875a[_0x451af2(0xa6)]=_0x2d875a[_0x451af2(0xa6)][_0x451af2(0xc7)]?_0x2d875a[_0x451af2(0xa6)]:_0x419e7a[_0x451af2(0xaa)],_0x2d875a['order']=qs[_0x451af2(0xc8)](_0x1f1f83[_0x451af2(0xa4)]['sort']),_0x2d875a[_0x451af2(0xb2)]=qs['filters'](_['pick'](_0x1f1f83[_0x451af2(0xa4)],_0x419e7a[_0x451af2(0xd5)])),_0x1f1f83[_0x451af2(0xa4)]['filter']&&(_0x2d875a[_0x451af2(0xb2)]=_[_0x451af2(0xd4)](_0x2d875a['where'],{[Op['or']]:_['map'](_0x2d875a[_0x451af2(0xa6)],function(_0x21a01a){const _0x2d9e48=_0x451af2,_0x373741={};return _0x373741[_0x21a01a]={[Op[_0x2d9e48(0xbd)]]:'%'+_0x1f1f83[_0x2d9e48(0xa4)]['filter']+'%'},_0x373741;})})),_0x2d875a=_[_0x451af2(0xd4)]({},_0x2d875a,_0x1f1f83[_0x451af2(0xd1)]),_0x2fc396[_0x451af2(0xb8)](_0x2d875a);})['then'](function(_0x1e4efa){const _0x4d6317=_0x167ce5;if(_0x1e4efa)return _0x254e9a=_0x1e4efa[_0x4d6317(0xc7)],typeof _0x1f1f83[_0x4d6317(0xa4)][_0x4d6317(0xb6)]==='undefined'&&(_0x2d875a[_0x4d6317(0xc6)]=qs[_0x4d6317(0xc6)](_0x1f1f83['query'][_0x4d6317(0xc6)]),_0x2d875a['offset']=qs[_0x4d6317(0xb3)](_0x1f1f83[_0x4d6317(0xa4)][_0x4d6317(0xb3)])),_0x2fc396[_0x4d6317(0xb8)](_0x2d875a);})[_0x167ce5(0xbb)](function(_0x5c57ca){if(_0x5c57ca)return _0x5c57ca?{'count':_0x254e9a,'rows':_0x5c57ca}:null;})[_0x167ce5(0xbb)](respondWithResult(_0x4ec2c2,null))[_0x167ce5(0xcf)](handleError(_0x4ec2c2,null));}; \ No newline at end of file diff --git a/server/api/intZohoConfiguration/intZohoConfiguration.model.js b/server/api/intZohoConfiguration/intZohoConfiguration.model.js index d3f93db..1e4ff62 100644 --- a/server/api/intZohoConfiguration/intZohoConfiguration.model.js +++ b/server/api/intZohoConfiguration/intZohoConfiguration.model.js @@ -1 +1 @@ -const a352_0x591e=['define'];(function(_0x99edc6,_0x591e56){const _0x221500=function(_0x35c411){while(--_0x35c411){_0x99edc6['push'](_0x99edc6['shift']());}};_0x221500(++_0x591e56);}(a352_0x591e,0x65));const a352_0x2215=function(_0x99edc6,_0x591e56){_0x99edc6=_0x99edc6-0x0;let _0x221500=a352_0x591e[_0x99edc6];return _0x221500;};'use strict';const attributes=require('./intZohoConfiguration.attributes');module['exports']=function(_0x35c411){const _0x5d1500=a352_0x2215,_0x4c244b=_0x35c411[_0x5d1500('0x0')]('ZohoConfiguration',attributes,{'tableName':'int_zoho_configurations','paranoid':![],'indexes':[],'timestamps':!![]});return _0x4c244b;}; \ No newline at end of file +const a423_0xedb9=['init','ZohoConfiguration','./intZohoConfiguration.options','./intZohoConfiguration.attributes','exports','sequelize','function'];(function(_0x1d60e5,_0x7ec6b4){const _0xedb9ce=function(_0x1198b4){while(--_0x1198b4){_0x1d60e5['push'](_0x1d60e5['shift']());}};_0xedb9ce(++_0x7ec6b4);}(a423_0xedb9,0x10b));const a423_0x1198=function(_0x1d60e5,_0x7ec6b4){_0x1d60e5=_0x1d60e5-0x19f;let _0xedb9ce=a423_0xedb9[_0x1d60e5];return _0xedb9ce;};const a423_0x50c72e=a423_0x1198;'use strict';const {Model}=require(a423_0x50c72e(0x1a3)),{attributes}=require(a423_0x50c72e(0x1a1)),{options}=require(a423_0x50c72e(0x1a0));class ZohoConfiguration extends Model{}function init(_0x26b423,_0x2db53e){const _0x16fb76=a423_0x50c72e,_0x73f33b=options(_0x26b423),_0x3a33ee=typeof _0x2db53e===_0x16fb76(0x1a4)?_0x2db53e(_0x73f33b):_0x73f33b;return ZohoConfiguration[_0x16fb76(0x1a5)](attributes,_0x3a33ee),ZohoConfiguration;}module[a423_0x50c72e(0x1a2)][a423_0x50c72e(0x19f)]=ZohoConfiguration,module[a423_0x50c72e(0x1a2)]['init']=init; \ No newline at end of file diff --git a/server/api/intZohoConfiguration/intZohoConfiguration.options.js b/server/api/intZohoConfiguration/intZohoConfiguration.options.js new file mode 100644 index 0000000..fa607ed --- /dev/null +++ b/server/api/intZohoConfiguration/intZohoConfiguration.options.js @@ -0,0 +1 @@ +var a424_0x29d4=['options','exports','int_zoho_configurations'];(function(_0x3993e4,_0x1274ba){var _0x29d4fb=function(_0x143884){while(--_0x143884){_0x3993e4['push'](_0x3993e4['shift']());}};_0x29d4fb(++_0x1274ba);}(a424_0x29d4,0x143));var a424_0x1438=function(_0x3993e4,_0x1274ba){_0x3993e4=_0x3993e4-0x1e8;var _0x29d4fb=a424_0x29d4[_0x3993e4];return _0x29d4fb;};var a424_0x456e3f=a424_0x1438;function options(_0x20330a){var _0x317674=a424_0x1438;return{'sequelize':_0x20330a,'tableName':_0x317674(0x1e8),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a424_0x456e3f(0x1ea)][a424_0x456e3f(0x1e9)]=options; \ No newline at end of file diff --git a/server/api/intZohoField/index.js b/server/api/intZohoField/index.js index 1356bb9..4e738d2 100644 --- a/server/api/intZohoField/index.js +++ b/server/api/intZohoField/index.js @@ -1 +1 @@ -const a353_0xb15d=['update','create','delete','./intZohoField.controller','put','/:id','exports','destroy','../../components/auth/service','get','Router','show','isAuthenticated'];(function(_0x34847a,_0xb15d5f){const _0xe3d26=function(_0x5144aa){while(--_0x5144aa){_0x34847a['push'](_0x34847a['shift']());}};_0xe3d26(++_0xb15d5f);}(a353_0xb15d,0x11a));const a353_0xe3d2=function(_0x34847a,_0xb15d5f){_0x34847a=_0x34847a-0x0;let _0xe3d26=a353_0xb15d[_0x34847a];return _0xe3d26;};const _0x36560c=a353_0xe3d2;'use strict';const express=require('express'),router=express[_0x36560c('0x1')](),auth=require(_0x36560c('0xc')),controller=require(_0x36560c('0x7'));router[_0x36560c('0x0')]('/',auth[_0x36560c('0x3')](),controller['index']),router['get'](_0x36560c('0x9'),auth[_0x36560c('0x3')](),controller[_0x36560c('0x2')]),router['post']('/',auth[_0x36560c('0x3')](),controller[_0x36560c('0x5')]),router[_0x36560c('0x8')]('/:id',auth[_0x36560c('0x3')](),controller[_0x36560c('0x4')]),router[_0x36560c('0x6')](_0x36560c('0x9'),auth[_0x36560c('0x3')](),controller[_0x36560c('0xb')]),module[_0x36560c('0xa')]=router; \ No newline at end of file +const a425_0x383f=['./intZohoField.controller','isAuthenticated','create','show','put','/:id','post','get','exports','delete','update','Router','destroy','../../components/auth/service'];(function(_0x39fde5,_0x2b8ba1){const _0x383f42=function(_0x496f64){while(--_0x496f64){_0x39fde5['push'](_0x39fde5['shift']());}};_0x383f42(++_0x2b8ba1);}(a425_0x383f,0x169));const a425_0x496f=function(_0x39fde5,_0x2b8ba1){_0x39fde5=_0x39fde5-0x156;let _0x383f42=a425_0x383f[_0x39fde5];return _0x383f42;};const a425_0x113024=a425_0x496f;'use strict';const express=require('express'),router=express[a425_0x113024(0x156)](),auth=require(a425_0x113024(0x158)),controller=require(a425_0x113024(0x159));router[a425_0x113024(0x160)]('/',auth[a425_0x113024(0x15a)](),controller['index']),router[a425_0x113024(0x160)](a425_0x113024(0x15e),auth[a425_0x113024(0x15a)](),controller[a425_0x113024(0x15c)]),router[a425_0x113024(0x15f)]('/',auth[a425_0x113024(0x15a)](),controller[a425_0x113024(0x15b)]),router[a425_0x113024(0x15d)](a425_0x113024(0x15e),auth[a425_0x113024(0x15a)](),controller[a425_0x113024(0x163)]),router[a425_0x113024(0x162)]('/:id',auth[a425_0x113024(0x15a)](),controller[a425_0x113024(0x157)]),module[a425_0x113024(0x161)]=router; \ No newline at end of file diff --git a/server/api/intZohoField/intZohoField.attributes.js b/server/api/intZohoField/intZohoField.attributes.js index 8f85568..d6ca058 100644 --- a/server/api/intZohoField/intZohoField.attributes.js +++ b/server/api/intZohoField/intZohoField.attributes.js @@ -1 +1 @@ -const a354_0x4618=['customVariable','exports','BOOLEAN','string','ENUM','keyValue','STRING','variable'];(function(_0x4ad356,_0x461826){const _0x423028=function(_0x597799){while(--_0x597799){_0x4ad356['push'](_0x4ad356['shift']());}};_0x423028(++_0x461826);}(a354_0x4618,0x69));const a354_0x4230=function(_0x4ad356,_0x461826){_0x4ad356=_0x4ad356-0x0;let _0x423028=a354_0x4618[_0x4ad356];return _0x423028;};const _0x2c2a10=a354_0x4230;'use strict';const Sequelize=require('sequelize');module[_0x2c2a10('0x0')]={'type':{'type':Sequelize[_0x2c2a10('0x3')](_0x2c2a10('0x2'),'variable',_0x2c2a10('0x7'),_0x2c2a10('0x4')),'defaultValue':_0x2c2a10('0x2')},'content':{'type':Sequelize[_0x2c2a10('0x5')]},'key':{'type':Sequelize[_0x2c2a10('0x5')]},'keyType':{'type':Sequelize[_0x2c2a10('0x3')](_0x2c2a10('0x2'),_0x2c2a10('0x6'),_0x2c2a10('0x7'))},'keyContent':{'type':Sequelize[_0x2c2a10('0x5')]},'idField':{'type':Sequelize[_0x2c2a10('0x5')]},'nameField':{'type':Sequelize[_0x2c2a10('0x5')]},'customField':{'type':Sequelize[_0x2c2a10('0x1')],'defaultValue':!![]},'variableName':{'type':Sequelize[_0x2c2a10('0x5')]}}; \ No newline at end of file +const a426_0x54ca=['customVariable','keyValue','exports','ENUM','variable','string','BOOLEAN','attributes','STRING'];(function(_0x34ef41,_0x21cfd4){const _0x54ca1f=function(_0x46bc05){while(--_0x46bc05){_0x34ef41['push'](_0x34ef41['shift']());}};_0x54ca1f(++_0x21cfd4);}(a426_0x54ca,0x1ad));const a426_0x46bc=function(_0x34ef41,_0x21cfd4){_0x34ef41=_0x34ef41-0x173;let _0x54ca1f=a426_0x54ca[_0x34ef41];return _0x54ca1f;};const a426_0xe345e2=a426_0x46bc;'use strict';const {DataTypes}=require('sequelize'),attributes={'type':{'type':DataTypes['ENUM'](a426_0xe345e2(0x17b),a426_0xe345e2(0x17a),a426_0xe345e2(0x176),a426_0xe345e2(0x177)),'defaultValue':a426_0xe345e2(0x17b)},'content':{'type':DataTypes['STRING']},'key':{'type':DataTypes['STRING']},'keyType':{'type':DataTypes[a426_0xe345e2(0x179)](a426_0xe345e2(0x17b),a426_0xe345e2(0x17a),'customVariable')},'keyContent':{'type':DataTypes[a426_0xe345e2(0x175)]},'idField':{'type':DataTypes[a426_0xe345e2(0x175)]},'nameField':{'type':DataTypes['STRING']},'customField':{'type':DataTypes[a426_0xe345e2(0x173)],'defaultValue':!![]},'variableName':{'type':DataTypes[a426_0xe345e2(0x175)]}};module[a426_0xe345e2(0x178)][a426_0xe345e2(0x174)]=attributes; \ No newline at end of file diff --git a/server/api/intZohoField/intZohoField.controller.js b/server/api/intZohoField/intZohoField.controller.js index 1e2b9ea..e5b4ec9 100644 --- a/server/api/intZohoField/intZohoField.controller.js +++ b/server/api/intZohoField/intZohoField.controller.js @@ -1 +1 @@ -const a355_0x42b8=['Content-Range','includeAll','update','status','params','like','catch','body','then','error','api','query','fieldName','where','findOne','set','length','fields','keys','name','offset','stack','lodash','map','show','../../mysqldb','filters','intersection','pick','model','destroy','rawAttributes','merge','type','filter','include','../../config/logger','key','count','../../components/parsers/qs','create','index','undefined','limit','attributes','ZohoField','order','sort','VIRTUAL'];(function(_0x5107ec,_0x42b80f){const _0x3d1f6c=function(_0x1c0b6a){while(--_0x1c0b6a){_0x5107ec['push'](_0x5107ec['shift']());}};_0x3d1f6c(++_0x42b80f);}(a355_0x42b8,0xe7));const a355_0x3d1f=function(_0x5107ec,_0x42b80f){_0x5107ec=_0x5107ec-0x0;let _0x3d1f6c=a355_0x42b8[_0x5107ec];return _0x3d1f6c;};const _0x45a11e=a355_0x3d1f;'use strict';const _=require(_0x45a11e('0x24')),qs=require(_0x45a11e('0x4')),logger=require(_0x45a11e('0x1'))(_0x45a11e('0x18')),db=require(_0x45a11e('0x27'))['db'],{Op}=require('sequelize');function respondWithResult(_0x1c0b6a,_0x5942c4){return _0x5942c4=_0x5942c4||0xc8,function(_0x4e6ddc){if(_0x4e6ddc)return _0x1c0b6a['status'](_0x5942c4)['json'](_0x4e6ddc);};}function respondWithFilteredResult(_0x1beb33,_0x1b3d6b){return function(_0x4d242f){const _0x559fe6=a355_0x3d1f;if(_0x4d242f){const _0x526761=_0x4d242f[_0x559fe6('0x3')],_0x150d28=_0x1b3d6b[_0x559fe6('0x22')];let _0x1fed05=_0x1b3d6b[_0x559fe6('0x22')]+_0x1b3d6b['limit'],_0x49200f;return _0x1fed05>=_0x526761?(_0x1fed05=_0x526761,_0x49200f=0xc8):_0x49200f=0xce,_0x1beb33[_0x559fe6('0x11')](_0x49200f),_0x1beb33[_0x559fe6('0x1d')](_0x559fe6('0xe'),_0x150d28+'-'+_0x1fed05+'/'+_0x526761)['json'](_0x4d242f);}return null;};}function saveUpdates(_0x33d64a){return function(_0x1068fc){const _0x77aa7f=a355_0x3d1f;if(_0x1068fc)return _0x1068fc['update'](_0x33d64a)[_0x77aa7f('0x16')](function(_0x40ab2d){return _0x40ab2d;});return null;};}function removeEntity(_0x85ab2d){return function(_0x424378){const _0x2e393d=a355_0x3d1f;if(_0x424378)return _0x424378[_0x2e393d('0x2c')]()[_0x2e393d('0x16')](function(){const _0x1e8a5f=_0x2e393d;_0x85ab2d[_0x1e8a5f('0x11')](0xcc)['end']();});};}function handleEntityNotFound(_0x181b8e){return function(_0x5e0de7){return!_0x5e0de7&&_0x181b8e['sendStatus'](0x194),_0x5e0de7;};}function handleError(_0x46b906,_0x158dd1){return _0x158dd1=_0x158dd1||0x1f4,function(_0x10ace3){const _0x26e415=a355_0x3d1f;logger[_0x26e415('0x17')](_0x10ace3[_0x26e415('0x23')]),_0x10ace3[_0x26e415('0x21')]&&delete _0x10ace3[_0x26e415('0x21')],_0x46b906['status'](_0x158dd1)['send'](_0x10ace3);};}exports[_0x45a11e('0x6')]=function(_0x1f02e0,_0x427b61){const _0x3044f3=_0x45a11e;let _0x59b162={};const _0x213db1={},_0x1647ea={'count':0x0,'rows':[]},_0x10cf2d=_[_0x3044f3('0x25')](db[_0x3044f3('0xa')][_0x3044f3('0x2d')],function(_0x5c878a){const _0xbb1bd1=_0x3044f3;return{'name':_0x5c878a[_0xbb1bd1('0x1a')],'type':_0x5c878a[_0xbb1bd1('0x2f')][_0xbb1bd1('0x2')]};});_0x213db1[_0x3044f3('0x2b')]=_[_0x3044f3('0x25')](_0x10cf2d,_0x3044f3('0x21')),_0x213db1[_0x3044f3('0x19')]=_[_0x3044f3('0x20')](_0x1f02e0[_0x3044f3('0x19')]),_0x213db1[_0x3044f3('0x28')]=_[_0x3044f3('0x29')](_0x213db1[_0x3044f3('0x2b')],_0x213db1[_0x3044f3('0x19')]),_0x59b162[_0x3044f3('0x9')]=_[_0x3044f3('0x29')](_0x213db1['model'],qs[_0x3044f3('0x1f')](_0x1f02e0[_0x3044f3('0x19')][_0x3044f3('0x1f')])),_0x59b162[_0x3044f3('0x9')]=_0x59b162[_0x3044f3('0x9')][_0x3044f3('0x1e')]?_0x59b162[_0x3044f3('0x9')]:_0x213db1[_0x3044f3('0x2b')];typeof _0x1f02e0['query']['nolimit']===_0x3044f3('0x7')&&(_0x59b162[_0x3044f3('0x8')]=qs['limit'](_0x1f02e0[_0x3044f3('0x19')][_0x3044f3('0x8')]),_0x59b162[_0x3044f3('0x22')]=qs[_0x3044f3('0x22')](_0x1f02e0[_0x3044f3('0x19')][_0x3044f3('0x22')]));_0x59b162[_0x3044f3('0xb')]=qs[_0x3044f3('0xc')](_0x1f02e0[_0x3044f3('0x19')][_0x3044f3('0xc')]),_0x59b162['where']=qs['filters'](_[_0x3044f3('0x2a')](_0x1f02e0[_0x3044f3('0x19')],_0x213db1[_0x3044f3('0x28')]),_0x10cf2d);_0x1f02e0[_0x3044f3('0x19')][_0x3044f3('0x30')]&&(_0x59b162[_0x3044f3('0x1b')]=_[_0x3044f3('0x2e')](_0x59b162[_0x3044f3('0x1b')],{[Op['or']]:_[_0x3044f3('0x25')](_0x10cf2d,function(_0x25b72a){const _0x2f7510=_0x3044f3;if(_0x25b72a['type']!==_0x2f7510('0xd')){const _0x576e95={};return _0x576e95[_0x25b72a[_0x2f7510('0x21')]]={[Op[_0x2f7510('0x13')]]:'%'+_0x1f02e0[_0x2f7510('0x19')]['filter']+'%'},_0x576e95;}})}));_0x59b162=_['merge']({},_0x59b162,_0x1f02e0['options']);const _0x498350={'where':_0x59b162[_0x3044f3('0x1b')]};return db[_0x3044f3('0xa')][_0x3044f3('0x3')](_0x498350)['then'](function(_0x405682){const _0x209745=_0x3044f3;return _0x1647ea[_0x209745('0x3')]=_0x405682,_0x1f02e0['query'][_0x209745('0xf')]&&(_0x59b162[_0x209745('0x0')]=[{'all':!![]}]),db[_0x209745('0xa')]['findAll'](_0x59b162);})[_0x3044f3('0x16')](function(_0x5206a9){return _0x1647ea['rows']=_0x5206a9,_0x1647ea;})[_0x3044f3('0x16')](respondWithFilteredResult(_0x427b61,_0x59b162))[_0x3044f3('0x14')](handleError(_0x427b61,null));},exports[_0x45a11e('0x26')]=function(_0x4189b9,_0x43ef91){const _0x34a40a=_0x45a11e;let _0x493fdc={'raw':!![],'where':{'id':_0x4189b9[_0x34a40a('0x12')]['id']}};const _0x4734fa={};return _0x4734fa[_0x34a40a('0x2b')]=_[_0x34a40a('0x20')](db[_0x34a40a('0xa')][_0x34a40a('0x2d')]),_0x4734fa[_0x34a40a('0x19')]=_[_0x34a40a('0x20')](_0x4189b9[_0x34a40a('0x19')]),_0x4734fa[_0x34a40a('0x28')]=_[_0x34a40a('0x29')](_0x4734fa[_0x34a40a('0x2b')],_0x4734fa[_0x34a40a('0x19')]),_0x493fdc['attributes']=_['intersection'](_0x4734fa[_0x34a40a('0x2b')],qs[_0x34a40a('0x1f')](_0x4189b9[_0x34a40a('0x19')][_0x34a40a('0x1f')])),_0x493fdc[_0x34a40a('0x9')]=_0x493fdc[_0x34a40a('0x9')][_0x34a40a('0x1e')]?_0x493fdc[_0x34a40a('0x9')]:_0x4734fa[_0x34a40a('0x2b')],_0x4189b9[_0x34a40a('0x19')][_0x34a40a('0xf')]&&(_0x493fdc['include']=[{'all':!![]}]),_0x493fdc=_['merge']({},_0x493fdc,_0x4189b9['options']),db['ZohoField']['findOne'](_0x493fdc)[_0x34a40a('0x16')](handleEntityNotFound(_0x43ef91,null))['then'](respondWithResult(_0x43ef91,null))[_0x34a40a('0x14')](handleError(_0x43ef91,null));},exports[_0x45a11e('0x5')]=function(_0x5a7410,_0x299380){const _0x1d494d=_0x45a11e;return db['ZohoField'][_0x1d494d('0x5')](_0x5a7410['body'],{})[_0x1d494d('0x16')](respondWithResult(_0x299380,0xc9))[_0x1d494d('0x14')](handleError(_0x299380,null));},exports[_0x45a11e('0x10')]=function(_0x2f1a88,_0x2cd24b){const _0x201a16=_0x45a11e;return _0x2f1a88[_0x201a16('0x15')]['id']&&delete _0x2f1a88['body']['id'],db[_0x201a16('0xa')][_0x201a16('0x1c')]({'where':{'id':_0x2f1a88[_0x201a16('0x12')]['id']}})[_0x201a16('0x16')](handleEntityNotFound(_0x2cd24b,null))[_0x201a16('0x16')](saveUpdates(_0x2f1a88[_0x201a16('0x15')],null))[_0x201a16('0x16')](respondWithResult(_0x2cd24b,null))[_0x201a16('0x14')](handleError(_0x2cd24b,null));},exports[_0x45a11e('0x2c')]=function(_0x3ed40b,_0x5c59cc){const _0x2b60c7=_0x45a11e;return db[_0x2b60c7('0xa')][_0x2b60c7('0x1c')]({'where':{'id':_0x3ed40b['params']['id']}})['then'](handleEntityNotFound(_0x5c59cc,null))[_0x2b60c7('0x16')](removeEntity(_0x5c59cc,null))['catch'](handleError(_0x5c59cc,null));}; \ No newline at end of file +const a427_0x559c=['send','destroy','index','body','offset','then','limit','merge','fields','end','options','set','ZohoField','findAll','../../components/parsers/qs','include','json','fieldName','../../config/logger','type','count','findOne','like','name','map','status','length','rawAttributes','catch','nolimit','order','../../mysqldb','sequelize','keys','sort','api','rows','params','model','show','create','intersection','filters','update','attributes','query','VIRTUAL','undefined','where'];(function(_0xd79c53,_0x42cf89){const _0x559cb4=function(_0x2a0668){while(--_0x2a0668){_0xd79c53['push'](_0xd79c53['shift']());}};_0x559cb4(++_0x42cf89);}(a427_0x559c,0x69));const a427_0x2a06=function(_0xd79c53,_0x42cf89){_0xd79c53=_0xd79c53-0xa1;let _0x559cb4=a427_0x559c[_0xd79c53];return _0x559cb4;};const a427_0x2847e2=a427_0x2a06;'use strict';const _=require('lodash'),qs=require(a427_0x2847e2(0xa8)),logger=require(a427_0x2847e2(0xac))(a427_0x2847e2(0xbd)),{db}=require(a427_0x2847e2(0xb9)),{Op}=require(a427_0x2847e2(0xba));function respondWithResult(_0x8e2346,_0x1fc4bb){return _0x1fc4bb=_0x1fc4bb||0xc8,function(_0xcbc9eb){const _0x23823b=a427_0x2a06;if(_0xcbc9eb)return _0x8e2346[_0x23823b(0xb3)](_0x1fc4bb)[_0x23823b(0xaa)](_0xcbc9eb);};}function respondWithFilteredResult(_0x25cb07,_0x2c01c3){return function(_0x4f7625){const _0x1cb94d=a427_0x2a06;if(_0x4f7625){const _0x18aa2a=_0x4f7625[_0x1cb94d(0xae)],_0x46ce5e=_0x2c01c3[_0x1cb94d(0xcf)];let _0x3ed33a=_0x2c01c3[_0x1cb94d(0xcf)]+_0x2c01c3[_0x1cb94d(0xd1)],_0x3024f0;return _0x3ed33a>=_0x18aa2a?(_0x3ed33a=_0x18aa2a,_0x3024f0=0xc8):_0x3024f0=0xce,_0x25cb07[_0x1cb94d(0xb3)](_0x3024f0),_0x25cb07[_0x1cb94d(0xa5)]('Content-Range',_0x46ce5e+'-'+_0x3ed33a+'/'+_0x18aa2a)[_0x1cb94d(0xaa)](_0x4f7625);}return null;};}function saveUpdates(_0x6e08e7){return function(_0x765574){const _0x2484b7=a427_0x2a06;if(_0x765574)return _0x765574[_0x2484b7(0xc5)](_0x6e08e7)['then'](function(_0x2c33ee){return _0x2c33ee;});return null;};}function removeEntity(_0x5ac507){return function(_0x3d0b98){if(_0x3d0b98)return _0x3d0b98['destroy']()['then'](function(){const _0x4a75d7=a427_0x2a06;_0x5ac507[_0x4a75d7(0xb3)](0xcc)[_0x4a75d7(0xa3)]();});};}function handleEntityNotFound(_0x14b24f){return function(_0x431d36){return!_0x431d36&&_0x14b24f['sendStatus'](0x194),_0x431d36;};}function handleError(_0x133ce2,_0x6b1052){return _0x6b1052=_0x6b1052||0x1f4,function(_0x43a232){const _0x339f29=a427_0x2a06;logger['error'](_0x43a232['stack']),_0x43a232['name']&&delete _0x43a232[_0x339f29(0xb1)],_0x133ce2['status'](_0x6b1052)[_0x339f29(0xcb)](_0x43a232);};}exports[a427_0x2847e2(0xcd)]=function(_0x4c2fb7,_0xaee884){const _0x3164e3=a427_0x2847e2;let _0x430c79={};const _0x204ddd={},_0x2f7e2a={'count':0x0,'rows':[]},_0x975c8f=_[_0x3164e3(0xb2)](db[_0x3164e3(0xa6)]['rawAttributes'],function(_0x3dc37a){const _0x39d198=_0x3164e3;return{'name':_0x3dc37a[_0x39d198(0xab)],'type':_0x3dc37a[_0x39d198(0xad)]['key']};});_0x204ddd[_0x3164e3(0xc0)]=_['map'](_0x975c8f,'name'),_0x204ddd[_0x3164e3(0xc7)]=_[_0x3164e3(0xbb)](_0x4c2fb7['query']),_0x204ddd[_0x3164e3(0xc4)]=_[_0x3164e3(0xc3)](_0x204ddd[_0x3164e3(0xc0)],_0x204ddd[_0x3164e3(0xc7)]),_0x430c79[_0x3164e3(0xc6)]=_[_0x3164e3(0xc3)](_0x204ddd[_0x3164e3(0xc0)],qs['fields'](_0x4c2fb7[_0x3164e3(0xc7)][_0x3164e3(0xa2)])),_0x430c79[_0x3164e3(0xc6)]=_0x430c79[_0x3164e3(0xc6)][_0x3164e3(0xb4)]?_0x430c79[_0x3164e3(0xc6)]:_0x204ddd[_0x3164e3(0xc0)];typeof _0x4c2fb7[_0x3164e3(0xc7)][_0x3164e3(0xb7)]===_0x3164e3(0xc9)&&(_0x430c79[_0x3164e3(0xd1)]=qs[_0x3164e3(0xd1)](_0x4c2fb7[_0x3164e3(0xc7)][_0x3164e3(0xd1)]),_0x430c79[_0x3164e3(0xcf)]=qs['offset'](_0x4c2fb7['query'][_0x3164e3(0xcf)]));_0x430c79[_0x3164e3(0xb8)]=qs[_0x3164e3(0xbc)](_0x4c2fb7[_0x3164e3(0xc7)][_0x3164e3(0xbc)]),_0x430c79[_0x3164e3(0xca)]=qs[_0x3164e3(0xc4)](_['pick'](_0x4c2fb7[_0x3164e3(0xc7)],_0x204ddd[_0x3164e3(0xc4)]),_0x975c8f);_0x4c2fb7[_0x3164e3(0xc7)]['filter']&&(_0x430c79[_0x3164e3(0xca)]=_[_0x3164e3(0xa1)](_0x430c79[_0x3164e3(0xca)],{[Op['or']]:_[_0x3164e3(0xb2)](_0x975c8f,function(_0xb9af3c){const _0x5d2835=_0x3164e3;if(_0xb9af3c[_0x5d2835(0xad)]!==_0x5d2835(0xc8)){const _0x2b6472={};return _0x2b6472[_0xb9af3c['name']]={[Op[_0x5d2835(0xb0)]]:'%'+_0x4c2fb7[_0x5d2835(0xc7)]['filter']+'%'},_0x2b6472;}})}));_0x430c79=_[_0x3164e3(0xa1)]({},_0x430c79,_0x4c2fb7[_0x3164e3(0xa4)]);const _0x15d9d8={'where':_0x430c79[_0x3164e3(0xca)]};return db[_0x3164e3(0xa6)]['count'](_0x15d9d8)[_0x3164e3(0xd0)](function(_0x4186ec){const _0x51a964=_0x3164e3;return _0x2f7e2a[_0x51a964(0xae)]=_0x4186ec,_0x4c2fb7['query']['includeAll']&&(_0x430c79[_0x51a964(0xa9)]=[{'all':!![]}]),db['ZohoField'][_0x51a964(0xa7)](_0x430c79);})[_0x3164e3(0xd0)](function(_0x57065f){const _0x1c9532=_0x3164e3;return _0x2f7e2a[_0x1c9532(0xbe)]=_0x57065f,_0x2f7e2a;})['then'](respondWithFilteredResult(_0xaee884,_0x430c79))[_0x3164e3(0xb6)](handleError(_0xaee884,null));},exports[a427_0x2847e2(0xc1)]=function(_0xb2ef44,_0x2b7b88){const _0x1805ab=a427_0x2847e2;let _0x3f8bfd={'raw':!![],'where':{'id':_0xb2ef44[_0x1805ab(0xbf)]['id']}};const _0x26b148={};return _0x26b148[_0x1805ab(0xc0)]=_[_0x1805ab(0xbb)](db['ZohoField'][_0x1805ab(0xb5)]),_0x26b148['query']=_[_0x1805ab(0xbb)](_0xb2ef44[_0x1805ab(0xc7)]),_0x26b148[_0x1805ab(0xc4)]=_['intersection'](_0x26b148[_0x1805ab(0xc0)],_0x26b148['query']),_0x3f8bfd[_0x1805ab(0xc6)]=_[_0x1805ab(0xc3)](_0x26b148[_0x1805ab(0xc0)],qs[_0x1805ab(0xa2)](_0xb2ef44[_0x1805ab(0xc7)][_0x1805ab(0xa2)])),_0x3f8bfd[_0x1805ab(0xc6)]=_0x3f8bfd[_0x1805ab(0xc6)][_0x1805ab(0xb4)]?_0x3f8bfd[_0x1805ab(0xc6)]:_0x26b148[_0x1805ab(0xc0)],_0xb2ef44[_0x1805ab(0xc7)]['includeAll']&&(_0x3f8bfd[_0x1805ab(0xa9)]=[{'all':!![]}]),_0x3f8bfd=_['merge']({},_0x3f8bfd,_0xb2ef44[_0x1805ab(0xa4)]),db[_0x1805ab(0xa6)][_0x1805ab(0xaf)](_0x3f8bfd)['then'](handleEntityNotFound(_0x2b7b88,null))['then'](respondWithResult(_0x2b7b88,null))[_0x1805ab(0xb6)](handleError(_0x2b7b88,null));},exports['create']=function(_0x513453,_0x59eece){const _0x47cc56=a427_0x2847e2;return db[_0x47cc56(0xa6)][_0x47cc56(0xc2)](_0x513453['body'],{})[_0x47cc56(0xd0)](respondWithResult(_0x59eece,0xc9))[_0x47cc56(0xb6)](handleError(_0x59eece,null));},exports['update']=function(_0x1e8871,_0x1ad7eb){const _0x5a3bc0=a427_0x2847e2;return _0x1e8871[_0x5a3bc0(0xce)]['id']&&delete _0x1e8871[_0x5a3bc0(0xce)]['id'],db[_0x5a3bc0(0xa6)][_0x5a3bc0(0xaf)]({'where':{'id':_0x1e8871[_0x5a3bc0(0xbf)]['id']}})[_0x5a3bc0(0xd0)](handleEntityNotFound(_0x1ad7eb,null))[_0x5a3bc0(0xd0)](saveUpdates(_0x1e8871['body'],null))[_0x5a3bc0(0xd0)](respondWithResult(_0x1ad7eb,null))[_0x5a3bc0(0xb6)](handleError(_0x1ad7eb,null));},exports[a427_0x2847e2(0xcc)]=function(_0x45afe3,_0xabbb62){const _0x4336ba=a427_0x2847e2;return db['ZohoField'][_0x4336ba(0xaf)]({'where':{'id':_0x45afe3[_0x4336ba(0xbf)]['id']}})[_0x4336ba(0xd0)](handleEntityNotFound(_0xabbb62,null))[_0x4336ba(0xd0)](removeEntity(_0xabbb62,null))[_0x4336ba(0xb6)](handleError(_0xabbb62,null));}; \ No newline at end of file diff --git a/server/api/intZohoField/intZohoField.model.js b/server/api/intZohoField/intZohoField.model.js index e724e75..9f3a391 100644 --- a/server/api/intZohoField/intZohoField.model.js +++ b/server/api/intZohoField/intZohoField.model.js @@ -1 +1 @@ -const a356_0x5310=['./intZohoField.attributes','FieldId','define','int_zoho_fields','idField','ZohoField'];(function(_0xca01fe,_0x5310b4){const _0x29ece1=function(_0x5a574d){while(--_0x5a574d){_0xca01fe['push'](_0xca01fe['shift']());}};_0x29ece1(++_0x5310b4);}(a356_0x5310,0x154));const a356_0x29ec=function(_0xca01fe,_0x5310b4){_0xca01fe=_0xca01fe-0x0;let _0x29ece1=a356_0x5310[_0xca01fe];return _0x29ece1;};const _0x351c92=a356_0x29ec;'use strict';const attributes=require(_0x351c92('0x2'));module['exports']=function(_0x5a574d){const _0x4b670c=_0x351c92,_0x203058=_0x5a574d[_0x4b670c('0x4')](_0x4b670c('0x1'),attributes,{'tableName':_0x4b670c('0x5'),'paranoid':![],'indexes':[{'name':'zoho_unique_index','fields':[_0x4b670c('0x0'),_0x4b670c('0x3')],'unique':!![]}],'timestamps':!![]});return _0x203058;}; \ No newline at end of file +const a428_0x3654=['exports','init','./intZohoField.options','./intZohoField.attributes'];(function(_0x17c41b,_0x215389){const _0x3654ca=function(_0x37b4b1){while(--_0x37b4b1){_0x17c41b['push'](_0x17c41b['shift']());}};_0x3654ca(++_0x215389);}(a428_0x3654,0x1d7));const a428_0x37b4=function(_0x17c41b,_0x215389){_0x17c41b=_0x17c41b-0x180;let _0x3654ca=a428_0x3654[_0x17c41b];return _0x3654ca;};const a428_0xc008b9=a428_0x37b4;'use strict';const {Model}=require('sequelize'),{attributes}=require(a428_0xc008b9(0x180)),{options}=require(a428_0xc008b9(0x183));class ZohoField extends Model{}function init(_0x490244,_0x33142a){const _0x4716e3=options(_0x490244),_0x217c7b=typeof _0x33142a==='function'?_0x33142a(_0x4716e3):_0x4716e3;return ZohoField['init'](attributes,_0x217c7b),ZohoField;}module[a428_0xc008b9(0x181)]['ZohoField']=ZohoField,module[a428_0xc008b9(0x181)][a428_0xc008b9(0x182)]=init; \ No newline at end of file diff --git a/server/api/intZohoField/intZohoField.options.js b/server/api/intZohoField/intZohoField.options.js new file mode 100644 index 0000000..5689abe --- /dev/null +++ b/server/api/intZohoField/intZohoField.options.js @@ -0,0 +1 @@ +var a429_0x38f7=['FieldId','options','idField','int_zoho_fields','zoho_unique_index'];(function(_0x4df021,_0xa85d37){var _0x38f7e4=function(_0x4cac58){while(--_0x4cac58){_0x4df021['push'](_0x4df021['shift']());}};_0x38f7e4(++_0xa85d37);}(a429_0x38f7,0x1ed));var a429_0x4cac=function(_0x4df021,_0xa85d37){_0x4df021=_0x4df021-0xa9;var _0x38f7e4=a429_0x38f7[_0x4df021];return _0x38f7e4;};var a429_0x8922b9=a429_0x4cac;function options(_0x11f97e){var _0x34d731=a429_0x4cac;return{'sequelize':_0x11f97e,'tableName':_0x34d731(0xa9),'paranoid':![],'indexes':[{'name':_0x34d731(0xaa),'fields':[_0x34d731(0xad),_0x34d731(0xab)],'unique':!![]}],'timestamps':!![]};}module['exports'][a429_0x8922b9(0xac)]=options; \ No newline at end of file diff --git a/server/api/integration/index.js b/server/api/integration/index.js index c9b5fb7..6201e1e 100644 --- a/server/api/integration/index.js +++ b/server/api/integration/index.js @@ -1 +1 @@ -const a357_0x46b1=['exports','Router','express'];(function(_0x30b604,_0x46b17f){const _0x273cd5=function(_0x1719c3){while(--_0x1719c3){_0x30b604['push'](_0x30b604['shift']());}};_0x273cd5(++_0x46b17f);}(a357_0x46b1,0xd0));const a357_0x273c=function(_0x30b604,_0x46b17f){_0x30b604=_0x30b604-0x0;let _0x273cd5=a357_0x46b1[_0x30b604];return _0x273cd5;};const _0x528de2=a357_0x273c;'use strict';const express=require(_0x528de2('0x1')),router=express[_0x528de2('0x0')]();module[_0x528de2('0x2')]=router; \ No newline at end of file +const a430_0x4fd3=['show','index','exports','./integration.controller','/:id','create','update','delete','put','isAuthenticated','destroy','express','../../components/auth/service','get'];(function(_0x523e42,_0x3b0119){const _0x4fd300=function(_0x4476f8){while(--_0x4476f8){_0x523e42['push'](_0x523e42['shift']());}};_0x4fd300(++_0x3b0119);}(a430_0x4fd3,0x1ab));const a430_0x4476=function(_0x523e42,_0x3b0119){_0x523e42=_0x523e42-0x1b1;let _0x4fd300=a430_0x4fd3[_0x523e42];return _0x4fd300;};const a430_0x26e490=a430_0x4476;'use strict';const express=require(a430_0x26e490(0x1b5)),router=express['Router'](),auth=require(a430_0x26e490(0x1b6)),controller=require(a430_0x26e490(0x1bb));router[a430_0x26e490(0x1b7)]('/',auth['isAuthenticated'](),controller[a430_0x26e490(0x1b9)]),router[a430_0x26e490(0x1b7)](a430_0x26e490(0x1bc),auth[a430_0x26e490(0x1b3)](),controller[a430_0x26e490(0x1b8)]),router['post']('/',auth[a430_0x26e490(0x1b3)](),controller[a430_0x26e490(0x1bd)]),router[a430_0x26e490(0x1b2)]('/:id',auth['isAuthenticated'](),controller[a430_0x26e490(0x1be)]),router[a430_0x26e490(0x1b1)](a430_0x26e490(0x1bc),auth[a430_0x26e490(0x1b3)](),controller[a430_0x26e490(0x1b4)]),module[a430_0x26e490(0x1ba)]=router; \ No newline at end of file diff --git a/server/api/integration/integration.attributes.js b/server/api/integration/integration.attributes.js index d801f92..ea4cf7e 100644 --- a/server/api/integration/integration.attributes.js +++ b/server/api/integration/integration.attributes.js @@ -1 +1 @@ -const a358_0xbabe=['app.js','INTEGER','exports','state','unique_name_and_version','sequelize','STRING','BOOLEAN'];(function(_0x25130c,_0xbabe3f){const _0x2ad60d=function(_0x336b49){while(--_0x336b49){_0x25130c['push'](_0x25130c['shift']());}};_0x2ad60d(++_0xbabe3f);}(a358_0xbabe,0xcf));const a358_0x2ad6=function(_0x25130c,_0xbabe3f){_0x25130c=_0x25130c-0x0;let _0x2ad60d=a358_0xbabe[_0x25130c];return _0x2ad60d;};const _0x312129=a358_0x2ad6;'use strict';const Sequelize=require(_0x312129('0x6'));module[_0x312129('0x3')]={'name':{'type':Sequelize[_0x312129('0x7')],'allowNull':![],'unique':_0x312129('0x5')},'version':{'type':Sequelize[_0x312129('0x7')],'allowNull':![],'unique':_0x312129('0x5')},'main':{'type':Sequelize['STRING'],'defaultValue':_0x312129('0x1')},'filename':{'type':Sequelize['STRING']},'path':{'type':Sequelize[_0x312129('0x7')]},'type':{'type':Sequelize['STRING']},'size':{'type':Sequelize[_0x312129('0x2')]},'active':{'type':Sequelize[_0x312129('0x0')],'defaultValue':![]},'author':{'type':Sequelize[_0x312129('0x7')]},'logo':{'type':Sequelize[_0x312129('0x7')]},'state':{'type':Sequelize[_0x312129('0x7')],'unique':_0x312129('0x4')},'description':{'type':Sequelize[_0x312129('0x7')]},'title':{'type':Sequelize[_0x312129('0x7')]},'remoteUri':{'type':Sequelize[_0x312129('0x7')]},'link':{'type':Sequelize[_0x312129('0x7')],'defaultValue':'#'}}; \ No newline at end of file +const a431_0x37bf=['INTEGER','STRING','state','app.js','unique_name_and_version','BOOLEAN'];(function(_0x5653dc,_0x1c0552){const _0x37bf44=function(_0xd2616a){while(--_0xd2616a){_0x5653dc['push'](_0x5653dc['shift']());}};_0x37bf44(++_0x1c0552);}(a431_0x37bf,0x1e1));const a431_0xd261=function(_0x5653dc,_0x1c0552){_0x5653dc=_0x5653dc-0x15e;let _0x37bf44=a431_0x37bf[_0x5653dc];return _0x37bf44;};const a431_0x112864=a431_0xd261;'use strict';const {DataTypes}=require('sequelize'),attributes={'name':{'type':DataTypes[a431_0x112864(0x15e)],'allowNull':![],'unique':a431_0x112864(0x161)},'version':{'type':DataTypes[a431_0x112864(0x15e)],'allowNull':![],'unique':a431_0x112864(0x161)},'main':{'type':DataTypes[a431_0x112864(0x15e)],'defaultValue':a431_0x112864(0x160)},'filename':{'type':DataTypes['STRING']},'path':{'type':DataTypes[a431_0x112864(0x15e)]},'type':{'type':DataTypes[a431_0x112864(0x15e)]},'size':{'type':DataTypes[a431_0x112864(0x163)]},'active':{'type':DataTypes[a431_0x112864(0x162)],'defaultValue':![]},'author':{'type':DataTypes[a431_0x112864(0x15e)]},'logo':{'type':DataTypes[a431_0x112864(0x15e)]},'state':{'type':DataTypes[a431_0x112864(0x15e)],'unique':a431_0x112864(0x15f)},'description':{'type':DataTypes[a431_0x112864(0x15e)]},'title':{'type':DataTypes[a431_0x112864(0x15e)]},'remoteUri':{'type':DataTypes[a431_0x112864(0x15e)]},'link':{'type':DataTypes['STRING'],'defaultValue':'#'}};module['exports']['attributes']=attributes; \ No newline at end of file diff --git a/server/api/integration/integration.controller.js b/server/api/integration/integration.controller.js index 08a4eff..2ac8d09 100644 --- a/server/api/integration/integration.controller.js +++ b/server/api/integration/integration.controller.js @@ -1 +1 @@ -const a359_0x4b3e=['VIRTUAL','rawAttributes','includeAll','length','map','include','create','findOne','filter','like','findAll','query','pick','index','model','fieldName','json','send','options','limit','where','fields','end','update','offset','status','sort','key','keys','then','../../mysqldb','api','error','filters','sendStatus','rows','show','catch','Integration','lodash','attributes','body','set','intersection','params','count','Content-Range','merge','type','name','sequelize','order'];(function(_0xcff113,_0x4b3e27){const _0x2f3fc0=function(_0x161c15){while(--_0x161c15){_0xcff113['push'](_0xcff113['shift']());}};_0x2f3fc0(++_0x4b3e27);}(a359_0x4b3e,0x146));const a359_0x2f3f=function(_0xcff113,_0x4b3e27){_0xcff113=_0xcff113-0x0;let _0x2f3fc0=a359_0x4b3e[_0xcff113];return _0x2f3fc0;};const _0x1171e5=a359_0x2f3f;'use strict';const _=require(_0x1171e5('0x19')),qs=require('../../components/parsers/qs'),logger=require('../../config/logger')(_0x1171e5('0x11')),db=require(_0x1171e5('0x10'))['db'],{Op}=require(_0x1171e5('0x24'));function respondWithResult(_0x161c15,_0x22ba9a){return _0x22ba9a=_0x22ba9a||0xc8,function(_0xef744b){const _0x1afc14=a359_0x2f3f;if(_0xef744b)return _0x161c15['status'](_0x22ba9a)[_0x1afc14('0x2')](_0xef744b);};}function respondWithFilteredResult(_0x47417d,_0x113bca){return function(_0x159c05){const _0x5a893c=a359_0x2f3f;if(_0x159c05){const _0x32d0ec=_0x159c05[_0x5a893c('0x1f')],_0xb2f686=_0x113bca[_0x5a893c('0xa')];let _0x392a86=_0x113bca[_0x5a893c('0xa')]+_0x113bca[_0x5a893c('0x5')],_0x297931;return _0x392a86>=_0x32d0ec?(_0x392a86=_0x32d0ec,_0x297931=0xc8):_0x297931=0xce,_0x47417d[_0x5a893c('0xb')](_0x297931),_0x47417d[_0x5a893c('0x1c')](_0x5a893c('0x20'),_0xb2f686+'-'+_0x392a86+'/'+_0x32d0ec)['json'](_0x159c05);}return null;};}function saveUpdates(_0x4f40f9){return function(_0x568bf1){const _0x34d725=a359_0x2f3f;if(_0x568bf1)return _0x568bf1[_0x34d725('0x9')](_0x4f40f9)[_0x34d725('0xf')](function(_0x5c53c1){return _0x5c53c1;});return null;};}function removeEntity(_0x29aa20){return function(_0x4194bc){const _0x13697e=a359_0x2f3f;if(_0x4194bc)return _0x4194bc['destroy']()[_0x13697e('0xf')](function(){const _0x16808a=_0x13697e;_0x29aa20['status'](0xcc)[_0x16808a('0x8')]();});};}function handleEntityNotFound(_0xa40db9){return function(_0x197f39){const _0xc83ee7=a359_0x2f3f;return!_0x197f39&&_0xa40db9[_0xc83ee7('0x14')](0x194),_0x197f39;};}function handleError(_0x223b42,_0x422d92){return _0x422d92=_0x422d92||0x1f4,function(_0x17708e){const _0xdab972=a359_0x2f3f;logger[_0xdab972('0x12')](_0x17708e['stack']),_0x17708e['name']&&delete _0x17708e['name'],_0x223b42['status'](_0x422d92)[_0xdab972('0x3')](_0x17708e);};}exports[_0x1171e5('0x33')]=function(_0x512fd5,_0x1f9346){const _0x581b41=_0x1171e5;let _0x449704={};const _0x571203={},_0x22f280={'count':0x0,'rows':[]},_0x47ee80=_[_0x581b41('0x2a')](db['Integration'][_0x581b41('0x27')],function(_0x52b695){const _0xdccc0f=_0x581b41;return{'name':_0x52b695[_0xdccc0f('0x1')],'type':_0x52b695[_0xdccc0f('0x22')][_0xdccc0f('0xd')]};});_0x571203[_0x581b41('0x0')]=_['map'](_0x47ee80,_0x581b41('0x23')),_0x571203['query']=_[_0x581b41('0xe')](_0x512fd5['query']),_0x571203['filters']=_[_0x581b41('0x1d')](_0x571203[_0x581b41('0x0')],_0x571203[_0x581b41('0x31')]),_0x449704['attributes']=_['intersection'](_0x571203[_0x581b41('0x0')],qs[_0x581b41('0x7')](_0x512fd5[_0x581b41('0x31')][_0x581b41('0x7')])),_0x449704[_0x581b41('0x1a')]=_0x449704[_0x581b41('0x1a')][_0x581b41('0x29')]?_0x449704[_0x581b41('0x1a')]:_0x571203[_0x581b41('0x0')];typeof _0x512fd5[_0x581b41('0x31')]['nolimit']==='undefined'&&(_0x449704[_0x581b41('0x5')]=qs[_0x581b41('0x5')](_0x512fd5[_0x581b41('0x31')][_0x581b41('0x5')]),_0x449704[_0x581b41('0xa')]=qs[_0x581b41('0xa')](_0x512fd5[_0x581b41('0x31')]['offset']));_0x449704[_0x581b41('0x25')]=qs[_0x581b41('0xc')](_0x512fd5[_0x581b41('0x31')][_0x581b41('0xc')]),_0x449704[_0x581b41('0x6')]=qs[_0x581b41('0x13')](_[_0x581b41('0x32')](_0x512fd5[_0x581b41('0x31')],_0x571203[_0x581b41('0x13')]),_0x47ee80);_0x512fd5['query'][_0x581b41('0x2e')]&&(_0x449704[_0x581b41('0x6')]=_[_0x581b41('0x21')](_0x449704[_0x581b41('0x6')],{[Op['or']]:_['map'](_0x47ee80,function(_0x1e2d5c){const _0x32a1bc=_0x581b41;if(_0x1e2d5c[_0x32a1bc('0x22')]!==_0x32a1bc('0x26')){const _0x396c76={};return _0x396c76[_0x1e2d5c[_0x32a1bc('0x23')]]={[Op[_0x32a1bc('0x2f')]]:'%'+_0x512fd5['query'][_0x32a1bc('0x2e')]+'%'},_0x396c76;}})}));_0x449704=_[_0x581b41('0x21')]({},_0x449704,_0x512fd5[_0x581b41('0x4')]);const _0x22d2ea={'where':_0x449704[_0x581b41('0x6')]};return db[_0x581b41('0x18')][_0x581b41('0x1f')](_0x22d2ea)[_0x581b41('0xf')](function(_0x22f7ff){const _0x1f267c=_0x581b41;return _0x22f280['count']=_0x22f7ff,_0x512fd5[_0x1f267c('0x31')]['includeAll']&&(_0x449704[_0x1f267c('0x2b')]=[{'all':!![]}]),db[_0x1f267c('0x18')][_0x1f267c('0x30')](_0x449704);})['then'](function(_0x2601b5){const _0x3fd21f=_0x581b41;return _0x22f280[_0x3fd21f('0x15')]=_0x2601b5,_0x22f280;})[_0x581b41('0xf')](respondWithFilteredResult(_0x1f9346,_0x449704))[_0x581b41('0x17')](handleError(_0x1f9346,null));},exports[_0x1171e5('0x16')]=function(_0x3f3ec7,_0xda78ee){const _0x223aa7=_0x1171e5;let _0x4c98a5={'raw':![],'where':{'id':_0x3f3ec7['params']['id']}};const _0x36f7bf={};return _0x36f7bf['model']=_['keys'](db[_0x223aa7('0x18')][_0x223aa7('0x27')]),_0x36f7bf[_0x223aa7('0x31')]=_['keys'](_0x3f3ec7[_0x223aa7('0x31')]),_0x36f7bf[_0x223aa7('0x13')]=_[_0x223aa7('0x1d')](_0x36f7bf['model'],_0x36f7bf[_0x223aa7('0x31')]),_0x4c98a5[_0x223aa7('0x1a')]=_[_0x223aa7('0x1d')](_0x36f7bf['model'],qs['fields'](_0x3f3ec7[_0x223aa7('0x31')][_0x223aa7('0x7')])),_0x4c98a5['attributes']=_0x4c98a5[_0x223aa7('0x1a')][_0x223aa7('0x29')]?_0x4c98a5['attributes']:_0x36f7bf[_0x223aa7('0x0')],_0x3f3ec7[_0x223aa7('0x31')][_0x223aa7('0x28')]&&(_0x4c98a5['include']=[{'all':!![]}]),_0x4c98a5=_['merge']({},_0x4c98a5,_0x3f3ec7['options']),db[_0x223aa7('0x18')][_0x223aa7('0x2d')](_0x4c98a5)['then'](handleEntityNotFound(_0xda78ee,null))['then'](respondWithResult(_0xda78ee,null))[_0x223aa7('0x17')](handleError(_0xda78ee,null));},exports[_0x1171e5('0x2c')]=function(_0x529811,_0xd74aa6){const _0x382402=_0x1171e5;return db[_0x382402('0x18')][_0x382402('0x2c')](_0x529811[_0x382402('0x1b')],{})[_0x382402('0xf')](respondWithResult(_0xd74aa6,0xc9))[_0x382402('0x17')](handleError(_0xd74aa6,null));},exports['update']=function(_0x374aec,_0x1dd979){const _0x4fdaad=_0x1171e5;return _0x374aec[_0x4fdaad('0x1b')]['id']&&delete _0x374aec['body']['id'],db[_0x4fdaad('0x18')]['findOne']({'where':{'id':_0x374aec[_0x4fdaad('0x1e')]['id']}})['then'](handleEntityNotFound(_0x1dd979,null))[_0x4fdaad('0xf')](saveUpdates(_0x374aec[_0x4fdaad('0x1b')],null))['then'](respondWithResult(_0x1dd979,null))[_0x4fdaad('0x17')](handleError(_0x1dd979,null));},exports['destroy']=function(_0x3aad59,_0x19210d){const _0x49254f=_0x1171e5;return db[_0x49254f('0x18')]['findOne']({'where':{'id':_0x3aad59['params']['id']}})[_0x49254f('0xf')](handleEntityNotFound(_0x19210d,null))[_0x49254f('0xf')](removeEntity(_0x19210d,null))[_0x49254f('0x17')](handleError(_0x19210d,null));}; \ No newline at end of file +const a432_0x1bb6=['options','params','includeAll','order','where','create','status','body','merge','../../config/logger','filters','../../components/parsers/qs','count','rawAttributes','lodash','Content-Range','model','limit','map','pick','sort','stack','undefined','then','filter','fields','api','index','findOne','name','findAll','update','catch','sendStatus','error','key','nolimit','show','query','keys','destroy','attributes','intersection','offset','length','type','Integration','json','rows','fieldName'];(function(_0x4f84cf,_0x127c6a){const _0x1bb66d=function(_0x2e15c1){while(--_0x2e15c1){_0x4f84cf['push'](_0x4f84cf['shift']());}};_0x1bb66d(++_0x127c6a);}(a432_0x1bb6,0x143));const a432_0x2e15=function(_0x4f84cf,_0x127c6a){_0x4f84cf=_0x4f84cf-0x1a9;let _0x1bb66d=a432_0x1bb6[_0x4f84cf];return _0x1bb66d;};const a432_0x153380=a432_0x2e15;'use strict';const _=require(a432_0x153380(0x1d2)),qs=require(a432_0x153380(0x1cf)),logger=require(a432_0x153380(0x1cd))(a432_0x153380(0x1ac)),{db}=require('../../mysqldb'),{Op}=require('sequelize');function respondWithResult(_0x2c8f33,_0x1d16f0){return _0x1d16f0=_0x1d16f0||0xc8,function(_0x58b9c6){const _0x424211=a432_0x2e15;if(_0x58b9c6)return _0x2c8f33[_0x424211(0x1ca)](_0x1d16f0)[_0x424211(0x1c1)](_0x58b9c6);};}function respondWithFilteredResult(_0x2b94d9,_0x3369ad){return function(_0x326ca1){const _0x11788b=a432_0x2e15;if(_0x326ca1){const _0x5e9c82=_0x326ca1[_0x11788b(0x1d0)],_0x4012a1=_0x3369ad[_0x11788b(0x1bd)];let _0x519efe=_0x3369ad['offset']+_0x3369ad['limit'],_0x576245;return _0x519efe>=_0x5e9c82?(_0x519efe=_0x5e9c82,_0x576245=0xc8):_0x576245=0xce,_0x2b94d9['status'](_0x576245),_0x2b94d9['set'](_0x11788b(0x1d3),_0x4012a1+'-'+_0x519efe+'/'+_0x5e9c82)[_0x11788b(0x1c1)](_0x326ca1);}return null;};}function saveUpdates(_0x49fd93){return function(_0x294ff3){const _0x1834df=a432_0x2e15;if(_0x294ff3)return _0x294ff3[_0x1834df(0x1b1)](_0x49fd93)['then'](function(_0x2e29fc){return _0x2e29fc;});return null;};}function removeEntity(_0x4664cf){return function(_0xce552e){if(_0xce552e)return _0xce552e['destroy']()['then'](function(){const _0x2b1127=a432_0x2e15;_0x4664cf[_0x2b1127(0x1ca)](0xcc)['end']();});};}function handleEntityNotFound(_0x1dd1e4){return function(_0x5920be){const _0x3f0f7f=a432_0x2e15;return!_0x5920be&&_0x1dd1e4[_0x3f0f7f(0x1b3)](0x194),_0x5920be;};}function handleError(_0x56538b,_0x29af19){return _0x29af19=_0x29af19||0x1f4,function(_0x552916){const _0x1e4037=a432_0x2e15;logger[_0x1e4037(0x1b4)](_0x552916[_0x1e4037(0x1d9)]),_0x552916[_0x1e4037(0x1af)]&&delete _0x552916['name'],_0x56538b[_0x1e4037(0x1ca)](_0x29af19)['send'](_0x552916);};}exports[a432_0x153380(0x1ad)]=function(_0x17bab1,_0x1b0f81){const _0x247e8a=a432_0x153380;let _0x99d557={};const _0x15c675={},_0x4064a6={'count':0x0,'rows':[]},_0x152de2=_[_0x247e8a(0x1d6)](db[_0x247e8a(0x1c0)][_0x247e8a(0x1d1)],function(_0x2cdbd2){const _0x2d9c81=_0x247e8a;return{'name':_0x2cdbd2[_0x2d9c81(0x1c3)],'type':_0x2cdbd2[_0x2d9c81(0x1bf)][_0x2d9c81(0x1b5)]};});_0x15c675[_0x247e8a(0x1d4)]=_['map'](_0x152de2,'name'),_0x15c675['query']=_[_0x247e8a(0x1b9)](_0x17bab1[_0x247e8a(0x1b8)]),_0x15c675[_0x247e8a(0x1ce)]=_['intersection'](_0x15c675[_0x247e8a(0x1d4)],_0x15c675[_0x247e8a(0x1b8)]),_0x99d557[_0x247e8a(0x1bb)]=_[_0x247e8a(0x1bc)](_0x15c675['model'],qs[_0x247e8a(0x1ab)](_0x17bab1[_0x247e8a(0x1b8)][_0x247e8a(0x1ab)])),_0x99d557[_0x247e8a(0x1bb)]=_0x99d557[_0x247e8a(0x1bb)][_0x247e8a(0x1be)]?_0x99d557[_0x247e8a(0x1bb)]:_0x15c675[_0x247e8a(0x1d4)];typeof _0x17bab1['query'][_0x247e8a(0x1b6)]===_0x247e8a(0x1da)&&(_0x99d557['limit']=qs['limit'](_0x17bab1[_0x247e8a(0x1b8)][_0x247e8a(0x1d5)]),_0x99d557[_0x247e8a(0x1bd)]=qs['offset'](_0x17bab1[_0x247e8a(0x1b8)][_0x247e8a(0x1bd)]));_0x99d557[_0x247e8a(0x1c7)]=qs['sort'](_0x17bab1[_0x247e8a(0x1b8)][_0x247e8a(0x1d8)]),_0x99d557[_0x247e8a(0x1c8)]=qs['filters'](_[_0x247e8a(0x1d7)](_0x17bab1[_0x247e8a(0x1b8)],_0x15c675['filters']),_0x152de2);_0x17bab1[_0x247e8a(0x1b8)][_0x247e8a(0x1aa)]&&(_0x99d557[_0x247e8a(0x1c8)]=_['merge'](_0x99d557[_0x247e8a(0x1c8)],{[Op['or']]:_[_0x247e8a(0x1d6)](_0x152de2,function(_0x427738){const _0x429356=_0x247e8a;if(_0x427738[_0x429356(0x1bf)]!=='VIRTUAL'){const _0x280c8f={};return _0x280c8f[_0x427738[_0x429356(0x1af)]]={[Op['like']]:'%'+_0x17bab1[_0x429356(0x1b8)][_0x429356(0x1aa)]+'%'},_0x280c8f;}})}));_0x99d557=_[_0x247e8a(0x1cc)]({},_0x99d557,_0x17bab1[_0x247e8a(0x1c4)]);const _0x149593={'where':_0x99d557[_0x247e8a(0x1c8)]};return db['Integration'][_0x247e8a(0x1d0)](_0x149593)[_0x247e8a(0x1a9)](function(_0x19f625){const _0x2e9707=_0x247e8a;return _0x4064a6[_0x2e9707(0x1d0)]=_0x19f625,_0x17bab1[_0x2e9707(0x1b8)][_0x2e9707(0x1c6)]&&(_0x99d557['include']=[{'all':!![]}]),db['Integration'][_0x2e9707(0x1b0)](_0x99d557);})[_0x247e8a(0x1a9)](function(_0x5519d6){const _0x21ef9d=_0x247e8a;return _0x4064a6[_0x21ef9d(0x1c2)]=_0x5519d6,_0x4064a6;})[_0x247e8a(0x1a9)](respondWithFilteredResult(_0x1b0f81,_0x99d557))[_0x247e8a(0x1b2)](handleError(_0x1b0f81,null));},exports[a432_0x153380(0x1b7)]=function(_0x3c639a,_0x4b4f50){const _0x22209f=a432_0x153380;let _0xb23b32={'raw':![],'where':{'id':_0x3c639a['params']['id']}};const _0x35c84f={};return _0x35c84f['model']=_[_0x22209f(0x1b9)](db['Integration'][_0x22209f(0x1d1)]),_0x35c84f['query']=_[_0x22209f(0x1b9)](_0x3c639a[_0x22209f(0x1b8)]),_0x35c84f['filters']=_['intersection'](_0x35c84f['model'],_0x35c84f[_0x22209f(0x1b8)]),_0xb23b32[_0x22209f(0x1bb)]=_[_0x22209f(0x1bc)](_0x35c84f[_0x22209f(0x1d4)],qs[_0x22209f(0x1ab)](_0x3c639a[_0x22209f(0x1b8)]['fields'])),_0xb23b32[_0x22209f(0x1bb)]=_0xb23b32[_0x22209f(0x1bb)][_0x22209f(0x1be)]?_0xb23b32[_0x22209f(0x1bb)]:_0x35c84f['model'],_0x3c639a[_0x22209f(0x1b8)][_0x22209f(0x1c6)]&&(_0xb23b32['include']=[{'all':!![]}]),_0xb23b32=_['merge']({},_0xb23b32,_0x3c639a['options']),db[_0x22209f(0x1c0)]['findOne'](_0xb23b32)['then'](handleEntityNotFound(_0x4b4f50,null))[_0x22209f(0x1a9)](respondWithResult(_0x4b4f50,null))[_0x22209f(0x1b2)](handleError(_0x4b4f50,null));},exports[a432_0x153380(0x1c9)]=function(_0x2823b5,_0x32f4f3){const _0xd4a18d=a432_0x153380;return db['Integration'][_0xd4a18d(0x1c9)](_0x2823b5[_0xd4a18d(0x1cb)],{})[_0xd4a18d(0x1a9)](respondWithResult(_0x32f4f3,0xc9))[_0xd4a18d(0x1b2)](handleError(_0x32f4f3,null));},exports['update']=function(_0xdd45f4,_0x329ff4){const _0x36138f=a432_0x153380;return _0xdd45f4[_0x36138f(0x1cb)]['id']&&delete _0xdd45f4[_0x36138f(0x1cb)]['id'],db['Integration'][_0x36138f(0x1ae)]({'where':{'id':_0xdd45f4[_0x36138f(0x1c5)]['id']}})[_0x36138f(0x1a9)](handleEntityNotFound(_0x329ff4,null))[_0x36138f(0x1a9)](saveUpdates(_0xdd45f4[_0x36138f(0x1cb)],null))[_0x36138f(0x1a9)](respondWithResult(_0x329ff4,null))[_0x36138f(0x1b2)](handleError(_0x329ff4,null));},exports[a432_0x153380(0x1ba)]=function(_0x56a356,_0x2669b9){const _0x51764f=a432_0x153380;return db[_0x51764f(0x1c0)][_0x51764f(0x1ae)]({'where':{'id':_0x56a356[_0x51764f(0x1c5)]['id']}})[_0x51764f(0x1a9)](handleEntityNotFound(_0x2669b9,null))['then'](removeEntity(_0x2669b9,null))[_0x51764f(0x1b2)](handleError(_0x2669b9,null));}; \ No newline at end of file diff --git a/server/api/integration/integration.model.js b/server/api/integration/integration.model.js index 1f94d36..cda2f46 100644 --- a/server/api/integration/integration.model.js +++ b/server/api/integration/integration.model.js @@ -1 +1 @@ -const a360_0x106b=['integrations','Integration','define'];(function(_0x42a749,_0x106ba0){const _0x1416b5=function(_0x48c922){while(--_0x48c922){_0x42a749['push'](_0x42a749['shift']());}};_0x1416b5(++_0x106ba0);}(a360_0x106b,0x165));const a360_0x1416=function(_0x42a749,_0x106ba0){_0x42a749=_0x42a749-0x0;let _0x1416b5=a360_0x106b[_0x42a749];return _0x1416b5;};'use strict';const attributes=require('./integration.attributes');module['exports']=function(_0x48c922){const _0x2e254f=a360_0x1416,_0x59e014=_0x48c922[_0x2e254f('0x2')](_0x2e254f('0x1'),attributes,{'tableName':_0x2e254f('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x59e014;}; \ No newline at end of file +const a433_0x325e=['./integration.options','./integration.attributes','exports','function','Integration','init','sequelize'];(function(_0x39865a,_0x12827c){const _0x325ed5=function(_0x3bb0d6){while(--_0x3bb0d6){_0x39865a['push'](_0x39865a['shift']());}};_0x325ed5(++_0x12827c);}(a433_0x325e,0x116));const a433_0x3bb0=function(_0x39865a,_0x12827c){_0x39865a=_0x39865a-0x1cb;let _0x325ed5=a433_0x325e[_0x39865a];return _0x325ed5;};const a433_0x42c9b7=a433_0x3bb0;'use strict';const {Model}=require(a433_0x42c9b7(0x1cc)),{attributes}=require(a433_0x42c9b7(0x1ce)),{options}=require(a433_0x42c9b7(0x1cd));class Integration extends Model{}function init(_0x49c9f8,_0x43cb51){const _0x5e2e0d=a433_0x42c9b7,_0x84d15f=options(_0x49c9f8),_0x505f63=typeof _0x43cb51===_0x5e2e0d(0x1d0)?_0x43cb51(_0x84d15f):_0x84d15f;return Integration[_0x5e2e0d(0x1cb)](attributes,_0x505f63),Integration;}module[a433_0x42c9b7(0x1cf)][a433_0x42c9b7(0x1d1)]=Integration,module[a433_0x42c9b7(0x1cf)]['init']=init; \ No newline at end of file diff --git a/server/api/integration/integration.options.js b/server/api/integration/integration.options.js new file mode 100644 index 0000000..366fcc1 --- /dev/null +++ b/server/api/integration/integration.options.js @@ -0,0 +1 @@ +var a434_0xc82f=['integrations'];(function(_0x2ee4ef,_0x313408){var _0xc82f4d=function(_0x1118e3){while(--_0x1118e3){_0x2ee4ef['push'](_0x2ee4ef['shift']());}};_0xc82f4d(++_0x313408);}(a434_0xc82f,0x171));var a434_0x1118=function(_0x2ee4ef,_0x313408){_0x2ee4ef=_0x2ee4ef-0x12f;var _0xc82f4d=a434_0xc82f[_0x2ee4ef];return _0xc82f4d;};function options(_0x3d80bd){var _0x17a1b7=a434_0x1118;return{'sequelize':_0x3d80bd,'tableName':_0x17a1b7(0x12f),'paranoid':![],'indexes':[],'timestamps':!![]};}module['exports']['options']=options; \ No newline at end of file diff --git a/server/api/integrationReport/index.js b/server/api/integrationReport/index.js index b786037..eadf4a4 100644 --- a/server/api/integrationReport/index.js +++ b/server/api/integrationReport/index.js @@ -1 +1 @@ -const a361_0x7f9e=['destroy','create','put','update','isAuthenticated','index','Router','./integrationReport.controller','/:id','show','get','/describe','../../components/auth/service'];(function(_0x8bea6d,_0x7f9e85){const _0x5484f5=function(_0x4813d8){while(--_0x4813d8){_0x8bea6d['push'](_0x8bea6d['shift']());}};_0x5484f5(++_0x7f9e85);}(a361_0x7f9e,0x70));const a361_0x5484=function(_0x8bea6d,_0x7f9e85){_0x8bea6d=_0x8bea6d-0x0;let _0x5484f5=a361_0x7f9e[_0x8bea6d];return _0x5484f5;};const _0xc8c600=a361_0x5484;'use strict';const express=require('express'),router=express[_0xc8c600('0xb')](),auth=require(_0xc8c600('0x4')),controller=require(_0xc8c600('0xc'));router[_0xc8c600('0x2')]('/',auth[_0xc8c600('0x9')](),controller[_0xc8c600('0xa')]),router[_0xc8c600('0x2')](_0xc8c600('0x3'),auth[_0xc8c600('0x9')](),controller['describe']),router[_0xc8c600('0x2')]('/:id',auth[_0xc8c600('0x9')](),controller[_0xc8c600('0x1')]),router['post']('/',auth['isAuthenticated'](),controller[_0xc8c600('0x6')]),router[_0xc8c600('0x7')](_0xc8c600('0x0'),auth[_0xc8c600('0x9')](),controller[_0xc8c600('0x8')]),router['delete'](_0xc8c600('0x0'),auth['isAuthenticated'](),controller[_0xc8c600('0x5')]),module['exports']=router; \ No newline at end of file +const a435_0x4f2e=['describe','./integrationReport.controller','express','delete','update','destroy','isAuthenticated','../../components/auth/service','/describe','/:id','Router','get'];(function(_0x2ae6a2,_0x459c48){const _0x4f2ea1=function(_0x2edb0c){while(--_0x2edb0c){_0x2ae6a2['push'](_0x2ae6a2['shift']());}};_0x4f2ea1(++_0x459c48);}(a435_0x4f2e,0xd9));const a435_0x2edb=function(_0x2ae6a2,_0x459c48){_0x2ae6a2=_0x2ae6a2-0x13f;let _0x4f2ea1=a435_0x4f2e[_0x2ae6a2];return _0x4f2ea1;};const a435_0x14f259=a435_0x2edb;'use strict';const express=require(a435_0x14f259(0x140)),router=express[a435_0x14f259(0x148)](),auth=require(a435_0x14f259(0x145)),controller=require(a435_0x14f259(0x13f));router[a435_0x14f259(0x149)]('/',auth[a435_0x14f259(0x144)](),controller['index']),router[a435_0x14f259(0x149)](a435_0x14f259(0x146),auth['isAuthenticated'](),controller[a435_0x14f259(0x14a)]),router[a435_0x14f259(0x149)]('/:id',auth['isAuthenticated'](),controller['show']),router['post']('/',auth[a435_0x14f259(0x144)](),controller['create']),router['put']('/:id',auth[a435_0x14f259(0x144)](),controller[a435_0x14f259(0x142)]),router[a435_0x14f259(0x141)](a435_0x14f259(0x147),auth[a435_0x14f259(0x144)](),controller[a435_0x14f259(0x143)]),module['exports']=router; \ No newline at end of file diff --git a/server/api/integrationReport/integrationReport.attributes.js b/server/api/integrationReport/integrationReport.attributes.js index ef2cadb..89b1dc0 100644 --- a/server/api/integrationReport/integrationReport.attributes.js +++ b/server/api/integrationReport/integrationReport.attributes.js @@ -1 +1 @@ -const a362_0x2118=['INTEGER','exports','SENT','BOOLEAN','STRING','FAILED','DATE','ENUM','sequelize','TEXT','SENDING'];(function(_0x10641c,_0x2118bc){const _0x4d7234=function(_0x17b834){while(--_0x17b834){_0x10641c['push'](_0x10641c['shift']());}};_0x4d7234(++_0x2118bc);}(a362_0x2118,0x1d3));const a362_0x4d72=function(_0x10641c,_0x2118bc){_0x10641c=_0x10641c-0x0;let _0x4d7234=a362_0x2118[_0x10641c];return _0x4d7234;};const _0x4cef89=a362_0x4d72;'use strict';const Sequelize=require(_0x4cef89('0x3'));module[_0x4cef89('0x7')]={'integration':{'type':Sequelize[_0x4cef89('0xa')]},'eventChannel':{'type':Sequelize[_0x4cef89('0xa')]},'exitStatus':{'type':Sequelize['STRING']},'ticketId':{'type':Sequelize['STRING']},'integrationId':{'type':Sequelize[_0x4cef89('0x6')]},'contacts':{'type':Sequelize['STRING']},'uniqueid':{'type':Sequelize[_0x4cef89('0xa')]},'calleridnum':{'type':Sequelize[_0x4cef89('0xa')]},'calleridname':{'type':Sequelize[_0x4cef89('0xa')]},'queue':{'type':Sequelize['STRING']},'interface':{'type':Sequelize[_0x4cef89('0xa')]},'membername':{'type':Sequelize['STRING']},'agentcalledAt':{'type':Sequelize['DATE']},'agentconnectAt':{'type':Sequelize['DATE']},'holdtime':{'type':Sequelize[_0x4cef89('0x6')]},'agentcomplete':{'type':Sequelize[_0x4cef89('0x9')],'defaultValue':![]},'agentcompleteAt':{'type':Sequelize[_0x4cef89('0x1')]},'talktime':{'type':Sequelize['INTEGER']},'agentacw':{'type':Sequelize[_0x4cef89('0x9')],'defaultValue':![]},'acwtime':{'type':Sequelize['INTEGER']},'reason':{'type':Sequelize[_0x4cef89('0xa')]},'agentringnoanswer':{'type':Sequelize[_0x4cef89('0x9')],'defaultValue':![]},'agentringnoanswerAt':{'type':Sequelize[_0x4cef89('0x1')]},'agentdump':{'type':Sequelize[_0x4cef89('0x9')],'defaultValue':![]},'agentdumpAt':{'type':Sequelize[_0x4cef89('0x1')]},'lastevent':{'type':Sequelize[_0x4cef89('0xa')]},'channel':{'type':Sequelize[_0x4cef89('0xa')]},'channelstate':{'type':Sequelize[_0x4cef89('0x6')]},'channelstatedesc':{'type':Sequelize[_0x4cef89('0xa')]},'connectedlinenum':{'type':Sequelize['STRING']},'connectedlinename':{'type':Sequelize[_0x4cef89('0xa')]},'language':{'type':Sequelize[_0x4cef89('0xa')]},'accountcode':{'type':Sequelize[_0x4cef89('0xa')]},'context':{'type':Sequelize[_0x4cef89('0xa')]},'exten':{'type':Sequelize[_0x4cef89('0xa')]},'priority':{'type':Sequelize[_0x4cef89('0xa')]},'destchannel':{'type':Sequelize[_0x4cef89('0xa')]},'destchannelstate':{'type':Sequelize[_0x4cef89('0x6')]},'destchannelstatedesc':{'type':Sequelize[_0x4cef89('0xa')]},'destcalleridnum':{'type':Sequelize[_0x4cef89('0xa')]},'destcalleridname':{'type':Sequelize[_0x4cef89('0xa')]},'destconnectedlinenum':{'type':Sequelize[_0x4cef89('0xa')]},'destconnectedlinename':{'type':Sequelize[_0x4cef89('0xa')]},'destlanguage':{'type':Sequelize['STRING']},'destaccountcode':{'type':Sequelize['STRING']},'destcontext':{'type':Sequelize[_0x4cef89('0xa')]},'destexten':{'type':Sequelize['STRING']},'destpriority':{'type':Sequelize[_0x4cef89('0xa')]},'destuniqueid':{'type':Sequelize[_0x4cef89('0xa')]},'messageId':{'type':Sequelize['STRING']},'inReplyTo':{'type':Sequelize[_0x4cef89('0xa')]},'subject':{'type':Sequelize['STRING']},'from':{'type':Sequelize[_0x4cef89('0xa')]},'to':{'type':Sequelize[_0x4cef89('0xa')]},'cc':{'type':Sequelize[_0x4cef89('0xa')]},'attachment':{'type':Sequelize['TEXT']},'html':{'type':Sequelize['TEXT']},'text':{'type':Sequelize[_0x4cef89('0x4')]},'status':{'type':Sequelize[_0x4cef89('0x2')](_0x4cef89('0x8'),_0x4cef89('0x5'),'RECEIVED',_0x4cef89('0x0'))},'url':{'type':Sequelize[_0x4cef89('0xa')]},'app':{'type':Sequelize[_0x4cef89('0xa')]},'appdata':{'type':Sequelize[_0x4cef89('0xa')]},'projectId':{'type':Sequelize[_0x4cef89('0x6')]}}; \ No newline at end of file +const a436_0x527c=['RECEIVED','attributes','TEXT','BOOLEAN','exports','SENT','STRING','SENDING','DATE','INTEGER','ENUM','FAILED'];(function(_0xe6b879,_0x361376){const _0x527cf2=function(_0x450ccf){while(--_0x450ccf){_0xe6b879['push'](_0xe6b879['shift']());}};_0x527cf2(++_0x361376);}(a436_0x527c,0x189));const a436_0x450c=function(_0xe6b879,_0x361376){_0xe6b879=_0xe6b879-0x1cd;let _0x527cf2=a436_0x527c[_0xe6b879];return _0x527cf2;};const a436_0x57550e=a436_0x450c;'use strict';const {DataTypes}=require('sequelize'),attributes={'integration':{'type':DataTypes[a436_0x57550e(0x1d6)]},'eventChannel':{'type':DataTypes[a436_0x57550e(0x1d6)]},'exitStatus':{'type':DataTypes[a436_0x57550e(0x1d6)]},'ticketId':{'type':DataTypes[a436_0x57550e(0x1d6)]},'integrationId':{'type':DataTypes[a436_0x57550e(0x1cd)]},'contacts':{'type':DataTypes['STRING']},'uniqueid':{'type':DataTypes[a436_0x57550e(0x1d6)]},'calleridnum':{'type':DataTypes[a436_0x57550e(0x1d6)]},'calleridname':{'type':DataTypes[a436_0x57550e(0x1d6)]},'queue':{'type':DataTypes[a436_0x57550e(0x1d6)]},'interface':{'type':DataTypes['STRING']},'membername':{'type':DataTypes[a436_0x57550e(0x1d6)]},'agentcalledAt':{'type':DataTypes[a436_0x57550e(0x1d8)]},'agentconnectAt':{'type':DataTypes['DATE']},'holdtime':{'type':DataTypes['INTEGER']},'agentcomplete':{'type':DataTypes[a436_0x57550e(0x1d3)],'defaultValue':![]},'agentcompleteAt':{'type':DataTypes[a436_0x57550e(0x1d8)]},'talktime':{'type':DataTypes[a436_0x57550e(0x1cd)]},'agentacw':{'type':DataTypes[a436_0x57550e(0x1d3)],'defaultValue':![]},'acwtime':{'type':DataTypes[a436_0x57550e(0x1cd)]},'reason':{'type':DataTypes[a436_0x57550e(0x1d6)]},'agentringnoanswer':{'type':DataTypes[a436_0x57550e(0x1d3)],'defaultValue':![]},'agentringnoanswerAt':{'type':DataTypes[a436_0x57550e(0x1d8)]},'agentdump':{'type':DataTypes[a436_0x57550e(0x1d3)],'defaultValue':![]},'agentdumpAt':{'type':DataTypes[a436_0x57550e(0x1d8)]},'lastevent':{'type':DataTypes[a436_0x57550e(0x1d6)]},'channel':{'type':DataTypes[a436_0x57550e(0x1d6)]},'channelstate':{'type':DataTypes[a436_0x57550e(0x1cd)]},'channelstatedesc':{'type':DataTypes[a436_0x57550e(0x1d6)]},'connectedlinenum':{'type':DataTypes[a436_0x57550e(0x1d6)]},'connectedlinename':{'type':DataTypes[a436_0x57550e(0x1d6)]},'language':{'type':DataTypes['STRING']},'accountcode':{'type':DataTypes[a436_0x57550e(0x1d6)]},'context':{'type':DataTypes['STRING']},'exten':{'type':DataTypes[a436_0x57550e(0x1d6)]},'priority':{'type':DataTypes[a436_0x57550e(0x1d6)]},'destchannel':{'type':DataTypes[a436_0x57550e(0x1d6)]},'destchannelstate':{'type':DataTypes[a436_0x57550e(0x1cd)]},'destchannelstatedesc':{'type':DataTypes['STRING']},'destcalleridnum':{'type':DataTypes[a436_0x57550e(0x1d6)]},'destcalleridname':{'type':DataTypes['STRING']},'destconnectedlinenum':{'type':DataTypes[a436_0x57550e(0x1d6)]},'destconnectedlinename':{'type':DataTypes['STRING']},'destlanguage':{'type':DataTypes[a436_0x57550e(0x1d6)]},'destaccountcode':{'type':DataTypes['STRING']},'destcontext':{'type':DataTypes[a436_0x57550e(0x1d6)]},'destexten':{'type':DataTypes[a436_0x57550e(0x1d6)]},'destpriority':{'type':DataTypes[a436_0x57550e(0x1d6)]},'destuniqueid':{'type':DataTypes[a436_0x57550e(0x1d6)]},'messageId':{'type':DataTypes[a436_0x57550e(0x1d6)]},'inReplyTo':{'type':DataTypes[a436_0x57550e(0x1d6)]},'subject':{'type':DataTypes['STRING']},'from':{'type':DataTypes[a436_0x57550e(0x1d6)]},'to':{'type':DataTypes[a436_0x57550e(0x1d6)]},'cc':{'type':DataTypes[a436_0x57550e(0x1d6)]},'attachment':{'type':DataTypes[a436_0x57550e(0x1d2)]},'html':{'type':DataTypes[a436_0x57550e(0x1d2)]},'text':{'type':DataTypes['TEXT']},'status':{'type':DataTypes[a436_0x57550e(0x1ce)](a436_0x57550e(0x1d5),a436_0x57550e(0x1d7),a436_0x57550e(0x1d0),a436_0x57550e(0x1cf))},'url':{'type':DataTypes['STRING']},'app':{'type':DataTypes[a436_0x57550e(0x1d6)]},'appdata':{'type':DataTypes[a436_0x57550e(0x1d6)]},'projectId':{'type':DataTypes[a436_0x57550e(0x1cd)]}};module[a436_0x57550e(0x1d4)][a436_0x57550e(0x1d1)]=attributes; \ No newline at end of file diff --git a/server/api/integrationReport/integrationReport.controller.js b/server/api/integrationReport/integrationReport.controller.js index 77e755c..ad60356 100644 --- a/server/api/integrationReport/integrationReport.controller.js +++ b/server/api/integrationReport/integrationReport.controller.js @@ -1 +1 @@ -const a363_0x363e=['length','fieldName','catch','includeAll','create','map','query','options','../../components/parsers/qs','like','intersection','attributes','undefined','error','body','fields','destroy','describe','type','order','json','nolimit','key','stack','count','include','findOne','findAll','update','limit','end','send','model','params','then','sort','name','filter','status','filters','show','lodash','rows','keys','pick','sequelize','IntegrationReport','api','rawAttributes','offset','where','set'];(function(_0x508b55,_0x363e9f){const _0x1d45fd=function(_0x251a57){while(--_0x251a57){_0x508b55['push'](_0x508b55['shift']());}};_0x1d45fd(++_0x363e9f);}(a363_0x363e,0x163));const a363_0x1d45=function(_0x508b55,_0x363e9f){_0x508b55=_0x508b55-0x0;let _0x1d45fd=a363_0x363e[_0x508b55];return _0x1d45fd;};const _0x17a4b6=a363_0x1d45;'use strict';const _=require(_0x17a4b6('0x32')),qs=require(_0x17a4b6('0x11')),logger=require('../../config/logger')(_0x17a4b6('0x4')),db=require('../../mysqldb')['db'],{Op}=require(_0x17a4b6('0x2'));function respondWithResult(_0x251a57,_0x615eef){return _0x615eef=_0x615eef||0xc8,function(_0x2c635a){const _0x5222da=a363_0x1d45;if(_0x2c635a)return _0x251a57[_0x5222da('0x2f')](_0x615eef)['json'](_0x2c635a);};}function respondWithFilteredResult(_0x28bf72,_0x2ece86){return function(_0x22feb6){const _0x48b5e4=a363_0x1d45;if(_0x22feb6){const _0x1d143c=_0x22feb6[_0x48b5e4('0x21')],_0x182ccc=_0x2ece86['offset'];let _0x13529b=_0x2ece86[_0x48b5e4('0x6')]+_0x2ece86[_0x48b5e4('0x26')],_0x38c442;return _0x13529b>=_0x1d143c?(_0x13529b=_0x1d143c,_0x38c442=0xc8):_0x38c442=0xce,_0x28bf72[_0x48b5e4('0x2f')](_0x38c442),_0x28bf72[_0x48b5e4('0x8')]('Content-Range',_0x182ccc+'-'+_0x13529b+'/'+_0x1d143c)[_0x48b5e4('0x1d')](_0x22feb6);}return null;};}function saveUpdates(_0x88223f){return function(_0xae81fb){const _0x4eee40=a363_0x1d45;if(_0xae81fb)return _0xae81fb[_0x4eee40('0x25')](_0x88223f)[_0x4eee40('0x2b')](function(_0x36a132){return _0x36a132;});return null;};}function removeEntity(_0x4adc82){return function(_0x3a4195){const _0x91b834=a363_0x1d45;if(_0x3a4195)return _0x3a4195[_0x91b834('0x19')]()[_0x91b834('0x2b')](function(){const _0x338486=_0x91b834;_0x4adc82[_0x338486('0x2f')](0xcc)[_0x338486('0x27')]();});};}function handleEntityNotFound(_0x1594b2){return function(_0x44d867){return!_0x44d867&&_0x1594b2['sendStatus'](0x194),_0x44d867;};}function handleError(_0x124cef,_0x4e9a8a){return _0x4e9a8a=_0x4e9a8a||0x1f4,function(_0x4a9dea){const _0x24a82b=a363_0x1d45;logger[_0x24a82b('0x16')](_0x4a9dea[_0x24a82b('0x20')]),_0x4a9dea[_0x24a82b('0x2d')]&&delete _0x4a9dea[_0x24a82b('0x2d')],_0x124cef[_0x24a82b('0x2f')](_0x4e9a8a)[_0x24a82b('0x28')](_0x4a9dea);};}exports['index']=function(_0x3ad46c,_0x54f29c){const _0x4c4d23=_0x17a4b6;let _0x48f038={};const _0x2d66a7={},_0x112054={'count':0x0,'rows':[]},_0x139ff3=_[_0x4c4d23('0xe')](db['IntegrationReport'][_0x4c4d23('0x5')],function(_0x3ce3d9){const _0x4c2b2b=_0x4c4d23;return{'name':_0x3ce3d9[_0x4c2b2b('0xa')],'type':_0x3ce3d9[_0x4c2b2b('0x1b')][_0x4c2b2b('0x1f')]};});_0x2d66a7['model']=_['map'](_0x139ff3,'name'),_0x2d66a7[_0x4c4d23('0xf')]=_[_0x4c4d23('0x0')](_0x3ad46c[_0x4c4d23('0xf')]),_0x2d66a7[_0x4c4d23('0x30')]=_[_0x4c4d23('0x13')](_0x2d66a7['model'],_0x2d66a7['query']),_0x48f038[_0x4c4d23('0x14')]=_['intersection'](_0x2d66a7[_0x4c4d23('0x29')],qs['fields'](_0x3ad46c[_0x4c4d23('0xf')][_0x4c4d23('0x18')])),_0x48f038[_0x4c4d23('0x14')]=_0x48f038[_0x4c4d23('0x14')][_0x4c4d23('0x9')]?_0x48f038[_0x4c4d23('0x14')]:_0x2d66a7['model'];typeof _0x3ad46c['query'][_0x4c4d23('0x1e')]===_0x4c4d23('0x15')&&(_0x48f038[_0x4c4d23('0x26')]=qs[_0x4c4d23('0x26')](_0x3ad46c[_0x4c4d23('0xf')][_0x4c4d23('0x26')]),_0x48f038[_0x4c4d23('0x6')]=qs[_0x4c4d23('0x6')](_0x3ad46c[_0x4c4d23('0xf')][_0x4c4d23('0x6')]));_0x48f038[_0x4c4d23('0x1c')]=qs[_0x4c4d23('0x2c')](_0x3ad46c[_0x4c4d23('0xf')]['sort']),_0x48f038['where']=qs[_0x4c4d23('0x30')](_[_0x4c4d23('0x1')](_0x3ad46c[_0x4c4d23('0xf')],_0x2d66a7['filters']),_0x139ff3);_0x3ad46c[_0x4c4d23('0xf')][_0x4c4d23('0x2e')]&&(_0x48f038[_0x4c4d23('0x7')]=_['merge'](_0x48f038[_0x4c4d23('0x7')],{[Op['or']]:_['map'](_0x139ff3,function(_0x52ab84){const _0xb6b134=_0x4c4d23;if(_0x52ab84[_0xb6b134('0x1b')]!=='VIRTUAL'){const _0x5cfe8a={};return _0x5cfe8a[_0x52ab84[_0xb6b134('0x2d')]]={[Op[_0xb6b134('0x12')]]:'%'+_0x3ad46c[_0xb6b134('0xf')]['filter']+'%'},_0x5cfe8a;}})}));_0x48f038=_['merge']({},_0x48f038,_0x3ad46c[_0x4c4d23('0x10')]);const _0x4b9fe3={'where':_0x48f038[_0x4c4d23('0x7')]};return db[_0x4c4d23('0x3')][_0x4c4d23('0x21')](_0x4b9fe3)[_0x4c4d23('0x2b')](function(_0x41d7b8){const _0x26eb81=_0x4c4d23;return _0x112054[_0x26eb81('0x21')]=_0x41d7b8,_0x3ad46c[_0x26eb81('0xf')]['includeAll']&&(_0x48f038['include']=[{'all':!![]}]),db[_0x26eb81('0x3')][_0x26eb81('0x24')](_0x48f038);})[_0x4c4d23('0x2b')](function(_0x56f327){const _0x1a82eb=_0x4c4d23;return _0x112054[_0x1a82eb('0x33')]=_0x56f327,_0x112054;})[_0x4c4d23('0x2b')](respondWithFilteredResult(_0x54f29c,_0x48f038))[_0x4c4d23('0xb')](handleError(_0x54f29c,null));},exports[_0x17a4b6('0x31')]=function(_0x5073a3,_0x4f659b){const _0xd74f21=_0x17a4b6;let _0x2210d6={'raw':![],'where':{'id':_0x5073a3['params']['id']}};const _0x69e894={};return _0x69e894[_0xd74f21('0x29')]=_[_0xd74f21('0x0')](db[_0xd74f21('0x3')][_0xd74f21('0x5')]),_0x69e894['query']=_[_0xd74f21('0x0')](_0x5073a3[_0xd74f21('0xf')]),_0x69e894['filters']=_[_0xd74f21('0x13')](_0x69e894[_0xd74f21('0x29')],_0x69e894['query']),_0x2210d6[_0xd74f21('0x14')]=_[_0xd74f21('0x13')](_0x69e894[_0xd74f21('0x29')],qs[_0xd74f21('0x18')](_0x5073a3[_0xd74f21('0xf')]['fields'])),_0x2210d6[_0xd74f21('0x14')]=_0x2210d6[_0xd74f21('0x14')][_0xd74f21('0x9')]?_0x2210d6['attributes']:_0x69e894['model'],_0x5073a3[_0xd74f21('0xf')][_0xd74f21('0xc')]&&(_0x2210d6[_0xd74f21('0x22')]=[{'all':!![]}]),_0x2210d6=_['merge']({},_0x2210d6,_0x5073a3[_0xd74f21('0x10')]),db[_0xd74f21('0x3')][_0xd74f21('0x23')](_0x2210d6)['then'](handleEntityNotFound(_0x4f659b,null))['then'](respondWithResult(_0x4f659b,null))['catch'](handleError(_0x4f659b,null));},exports[_0x17a4b6('0xd')]=function(_0x33690b,_0x4609d0){const _0x4597cd=_0x17a4b6;return db[_0x4597cd('0x3')][_0x4597cd('0xd')](_0x33690b[_0x4597cd('0x17')],{})[_0x4597cd('0x2b')](respondWithResult(_0x4609d0,0xc9))[_0x4597cd('0xb')](handleError(_0x4609d0,null));},exports[_0x17a4b6('0x25')]=function(_0x365f14,_0x16000c){const _0x17f04d=_0x17a4b6;return _0x365f14['body']['id']&&delete _0x365f14[_0x17f04d('0x17')]['id'],db['IntegrationReport'][_0x17f04d('0x23')]({'where':{'id':_0x365f14[_0x17f04d('0x2a')]['id']}})[_0x17f04d('0x2b')](handleEntityNotFound(_0x16000c,null))['then'](saveUpdates(_0x365f14[_0x17f04d('0x17')],null))[_0x17f04d('0x2b')](respondWithResult(_0x16000c,null))[_0x17f04d('0xb')](handleError(_0x16000c,null));},exports[_0x17a4b6('0x19')]=function(_0x5b11d7,_0x33beba){const _0x8e9b16=_0x17a4b6;return db[_0x8e9b16('0x3')][_0x8e9b16('0x23')]({'where':{'id':_0x5b11d7[_0x8e9b16('0x2a')]['id']}})[_0x8e9b16('0x2b')](handleEntityNotFound(_0x33beba,null))[_0x8e9b16('0x2b')](removeEntity(_0x33beba,null))[_0x8e9b16('0xb')](handleError(_0x33beba,null));},exports['describe']=function(_0x3162db,_0x3d1b87){const _0x13f571=_0x17a4b6;return db['IntegrationReport'][_0x13f571('0x1a')]()[_0x13f571('0x2b')](respondWithResult(_0x3d1b87,null))[_0x13f571('0xb')](handleError(_0x3d1b87,null));}; \ No newline at end of file +const a437_0x941b=['update','attributes','like','rows','json','limit','send','sendStatus','then','nolimit','sort','type','length','sequelize','catch','model','name','includeAll','order','lodash','destroy','params','filters','count','set','create','keys','describe','merge','query','rawAttributes','error','fieldName','findAll','body','../../components/parsers/qs','include','fields','options','undefined','where','intersection','api','map','key','findOne','IntegrationReport','offset','status'];(function(_0x50c8fd,_0x59f34e){const _0x941bdf=function(_0x5a2a71){while(--_0x5a2a71){_0x50c8fd['push'](_0x50c8fd['shift']());}};_0x941bdf(++_0x59f34e);}(a437_0x941b,0x1ce));const a437_0x5a2a=function(_0x50c8fd,_0x59f34e){_0x50c8fd=_0x50c8fd-0x15e;let _0x941bdf=a437_0x941b[_0x50c8fd];return _0x941bdf;};const a437_0xce14ac=a437_0x5a2a;'use strict';const _=require(a437_0xce14ac(0x18d)),qs=require(a437_0xce14ac(0x16c)),logger=require('../../config/logger')(a437_0xce14ac(0x173)),{db}=require('../../mysqldb'),{Op}=require(a437_0xce14ac(0x187));function respondWithResult(_0x318973,_0x1ce6f4){return _0x1ce6f4=_0x1ce6f4||0xc8,function(_0x291d23){const _0x3b8aa9=a437_0x5a2a;if(_0x291d23)return _0x318973['status'](_0x1ce6f4)[_0x3b8aa9(0x17e)](_0x291d23);};}function respondWithFilteredResult(_0x2daecd,_0x3f3609){return function(_0x290467){const _0x2ac385=a437_0x5a2a;if(_0x290467){const _0x7c2f9c=_0x290467[_0x2ac385(0x160)],_0x5f3797=_0x3f3609['offset'];let _0x580762=_0x3f3609[_0x2ac385(0x178)]+_0x3f3609[_0x2ac385(0x17f)],_0xf697a0;return _0x580762>=_0x7c2f9c?(_0x580762=_0x7c2f9c,_0xf697a0=0xc8):_0xf697a0=0xce,_0x2daecd['status'](_0xf697a0),_0x2daecd[_0x2ac385(0x161)]('Content-Range',_0x5f3797+'-'+_0x580762+'/'+_0x7c2f9c)[_0x2ac385(0x17e)](_0x290467);}return null;};}function saveUpdates(_0x4a1ccb){return function(_0xa9de62){const _0x50abea=a437_0x5a2a;if(_0xa9de62)return _0xa9de62[_0x50abea(0x17a)](_0x4a1ccb)[_0x50abea(0x182)](function(_0x306c85){return _0x306c85;});return null;};}function removeEntity(_0x21e391){return function(_0x1f14de){const _0x45ef31=a437_0x5a2a;if(_0x1f14de)return _0x1f14de[_0x45ef31(0x18e)]()[_0x45ef31(0x182)](function(){const _0x489753=_0x45ef31;_0x21e391[_0x489753(0x179)](0xcc)['end']();});};}function handleEntityNotFound(_0x494e0d){return function(_0x586c00){const _0xa38512=a437_0x5a2a;return!_0x586c00&&_0x494e0d[_0xa38512(0x181)](0x194),_0x586c00;};}function handleError(_0x4834de,_0x4c29c2){return _0x4c29c2=_0x4c29c2||0x1f4,function(_0x52adcc){const _0x2f5e3d=a437_0x5a2a;logger[_0x2f5e3d(0x168)](_0x52adcc['stack']),_0x52adcc['name']&&delete _0x52adcc[_0x2f5e3d(0x18a)],_0x4834de[_0x2f5e3d(0x179)](_0x4c29c2)[_0x2f5e3d(0x180)](_0x52adcc);};}exports['index']=function(_0x1eebdd,_0x1681c3){const _0x2dcb81=a437_0xce14ac;let _0x56b2e0={};const _0x12582c={},_0x28c442={'count':0x0,'rows':[]},_0xc235b=_[_0x2dcb81(0x174)](db[_0x2dcb81(0x177)]['rawAttributes'],function(_0x195bb2){const _0x563947=_0x2dcb81;return{'name':_0x195bb2[_0x563947(0x169)],'type':_0x195bb2['type'][_0x563947(0x175)]};});_0x12582c['model']=_[_0x2dcb81(0x174)](_0xc235b,_0x2dcb81(0x18a)),_0x12582c[_0x2dcb81(0x166)]=_[_0x2dcb81(0x163)](_0x1eebdd[_0x2dcb81(0x166)]),_0x12582c['filters']=_[_0x2dcb81(0x172)](_0x12582c[_0x2dcb81(0x189)],_0x12582c[_0x2dcb81(0x166)]),_0x56b2e0[_0x2dcb81(0x17b)]=_[_0x2dcb81(0x172)](_0x12582c[_0x2dcb81(0x189)],qs[_0x2dcb81(0x16e)](_0x1eebdd[_0x2dcb81(0x166)]['fields'])),_0x56b2e0['attributes']=_0x56b2e0['attributes']['length']?_0x56b2e0[_0x2dcb81(0x17b)]:_0x12582c[_0x2dcb81(0x189)];typeof _0x1eebdd[_0x2dcb81(0x166)][_0x2dcb81(0x183)]===_0x2dcb81(0x170)&&(_0x56b2e0[_0x2dcb81(0x17f)]=qs['limit'](_0x1eebdd['query'][_0x2dcb81(0x17f)]),_0x56b2e0[_0x2dcb81(0x178)]=qs[_0x2dcb81(0x178)](_0x1eebdd[_0x2dcb81(0x166)][_0x2dcb81(0x178)]));_0x56b2e0[_0x2dcb81(0x18c)]=qs['sort'](_0x1eebdd[_0x2dcb81(0x166)][_0x2dcb81(0x184)]),_0x56b2e0[_0x2dcb81(0x171)]=qs[_0x2dcb81(0x15f)](_['pick'](_0x1eebdd[_0x2dcb81(0x166)],_0x12582c[_0x2dcb81(0x15f)]),_0xc235b);_0x1eebdd[_0x2dcb81(0x166)]['filter']&&(_0x56b2e0[_0x2dcb81(0x171)]=_[_0x2dcb81(0x165)](_0x56b2e0[_0x2dcb81(0x171)],{[Op['or']]:_[_0x2dcb81(0x174)](_0xc235b,function(_0xf8750){const _0x15dac7=_0x2dcb81;if(_0xf8750[_0x15dac7(0x185)]!=='VIRTUAL'){const _0x59b82c={};return _0x59b82c[_0xf8750[_0x15dac7(0x18a)]]={[Op[_0x15dac7(0x17c)]]:'%'+_0x1eebdd[_0x15dac7(0x166)]['filter']+'%'},_0x59b82c;}})}));_0x56b2e0=_[_0x2dcb81(0x165)]({},_0x56b2e0,_0x1eebdd[_0x2dcb81(0x16f)]);const _0x51d6d0={'where':_0x56b2e0[_0x2dcb81(0x171)]};return db[_0x2dcb81(0x177)][_0x2dcb81(0x160)](_0x51d6d0)['then'](function(_0x36ce3c){const _0x52b8dc=_0x2dcb81;return _0x28c442[_0x52b8dc(0x160)]=_0x36ce3c,_0x1eebdd[_0x52b8dc(0x166)][_0x52b8dc(0x18b)]&&(_0x56b2e0[_0x52b8dc(0x16d)]=[{'all':!![]}]),db[_0x52b8dc(0x177)][_0x52b8dc(0x16a)](_0x56b2e0);})['then'](function(_0x24bcb6){const _0x4b461c=_0x2dcb81;return _0x28c442[_0x4b461c(0x17d)]=_0x24bcb6,_0x28c442;})[_0x2dcb81(0x182)](respondWithFilteredResult(_0x1681c3,_0x56b2e0))['catch'](handleError(_0x1681c3,null));},exports['show']=function(_0x291d0e,_0x274440){const _0x1ae979=a437_0xce14ac;let _0x3d79c4={'raw':![],'where':{'id':_0x291d0e[_0x1ae979(0x15e)]['id']}};const _0x39e97c={};return _0x39e97c[_0x1ae979(0x189)]=_[_0x1ae979(0x163)](db[_0x1ae979(0x177)][_0x1ae979(0x167)]),_0x39e97c[_0x1ae979(0x166)]=_[_0x1ae979(0x163)](_0x291d0e[_0x1ae979(0x166)]),_0x39e97c[_0x1ae979(0x15f)]=_['intersection'](_0x39e97c['model'],_0x39e97c['query']),_0x3d79c4[_0x1ae979(0x17b)]=_[_0x1ae979(0x172)](_0x39e97c[_0x1ae979(0x189)],qs[_0x1ae979(0x16e)](_0x291d0e[_0x1ae979(0x166)][_0x1ae979(0x16e)])),_0x3d79c4[_0x1ae979(0x17b)]=_0x3d79c4['attributes'][_0x1ae979(0x186)]?_0x3d79c4[_0x1ae979(0x17b)]:_0x39e97c[_0x1ae979(0x189)],_0x291d0e['query'][_0x1ae979(0x18b)]&&(_0x3d79c4[_0x1ae979(0x16d)]=[{'all':!![]}]),_0x3d79c4=_['merge']({},_0x3d79c4,_0x291d0e[_0x1ae979(0x16f)]),db[_0x1ae979(0x177)][_0x1ae979(0x176)](_0x3d79c4)[_0x1ae979(0x182)](handleEntityNotFound(_0x274440,null))[_0x1ae979(0x182)](respondWithResult(_0x274440,null))[_0x1ae979(0x188)](handleError(_0x274440,null));},exports[a437_0xce14ac(0x162)]=function(_0x40dfd0,_0x3a2183){const _0x13afad=a437_0xce14ac;return db[_0x13afad(0x177)][_0x13afad(0x162)](_0x40dfd0['body'],{})['then'](respondWithResult(_0x3a2183,0xc9))[_0x13afad(0x188)](handleError(_0x3a2183,null));},exports[a437_0xce14ac(0x17a)]=function(_0x53d725,_0x145f52){const _0x2c9135=a437_0xce14ac;return _0x53d725[_0x2c9135(0x16b)]['id']&&delete _0x53d725[_0x2c9135(0x16b)]['id'],db[_0x2c9135(0x177)]['findOne']({'where':{'id':_0x53d725['params']['id']}})[_0x2c9135(0x182)](handleEntityNotFound(_0x145f52,null))[_0x2c9135(0x182)](saveUpdates(_0x53d725['body'],null))[_0x2c9135(0x182)](respondWithResult(_0x145f52,null))[_0x2c9135(0x188)](handleError(_0x145f52,null));},exports[a437_0xce14ac(0x18e)]=function(_0x51e17f,_0x3be299){const _0x41da94=a437_0xce14ac;return db[_0x41da94(0x177)][_0x41da94(0x176)]({'where':{'id':_0x51e17f[_0x41da94(0x15e)]['id']}})['then'](handleEntityNotFound(_0x3be299,null))[_0x41da94(0x182)](removeEntity(_0x3be299,null))[_0x41da94(0x188)](handleError(_0x3be299,null));},exports['describe']=function(_0x17c8ec,_0x3467b4){const _0x46c180=a437_0xce14ac;return db['IntegrationReport'][_0x46c180(0x164)]()[_0x46c180(0x182)](respondWithResult(_0x3467b4,null))['catch'](handleError(_0x3467b4,null));}; \ No newline at end of file diff --git a/server/api/integrationReport/integrationReport.model.js b/server/api/integrationReport/integrationReport.model.js index 990aa4e..17f1a17 100644 --- a/server/api/integrationReport/integrationReport.model.js +++ b/server/api/integrationReport/integrationReport.model.js @@ -1 +1 @@ -const a364_0x12b8=['exports','report_integration','IntegrationReport','./integrationReport.attributes','define'];(function(_0x504bb5,_0x12b849){const _0x2b5351=function(_0x4ceac7){while(--_0x4ceac7){_0x504bb5['push'](_0x504bb5['shift']());}};_0x2b5351(++_0x12b849);}(a364_0x12b8,0x1a5));const a364_0x2b53=function(_0x504bb5,_0x12b849){_0x504bb5=_0x504bb5-0x0;let _0x2b5351=a364_0x12b8[_0x504bb5];return _0x2b5351;};const _0x8a72e4=a364_0x2b53;'use strict';const attributes=require(_0x8a72e4('0x2'));module[_0x8a72e4('0x4')]=function(_0x4ceac7){const _0x1f487b=_0x8a72e4,_0x1e2ea7=_0x4ceac7[_0x1f487b('0x3')](_0x1f487b('0x1'),attributes,{'tableName':_0x1f487b('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x1e2ea7;}; \ No newline at end of file +const a438_0x18c4=['function','./integrationReport.attributes','sequelize','init','exports','./integrationReport.options'];(function(_0x2783e4,_0x3fafb7){const _0x18c43e=function(_0x35a132){while(--_0x35a132){_0x2783e4['push'](_0x2783e4['shift']());}};_0x18c43e(++_0x3fafb7);}(a438_0x18c4,0x17b));const a438_0x35a1=function(_0x2783e4,_0x3fafb7){_0x2783e4=_0x2783e4-0x12a;let _0x18c43e=a438_0x18c4[_0x2783e4];return _0x18c43e;};const a438_0x1a3aa1=a438_0x35a1;'use strict';const {Model}=require(a438_0x1a3aa1(0x12b)),{attributes}=require(a438_0x1a3aa1(0x12a)),{options}=require(a438_0x1a3aa1(0x12e));class IntegrationReport extends Model{}function init(_0x3eab91,_0x1c9faf){const _0xf41704=a438_0x1a3aa1,_0x1940f8=options(_0x3eab91),_0xb5bbe5=typeof _0x1c9faf===_0xf41704(0x12f)?_0x1c9faf(_0x1940f8):_0x1940f8;return IntegrationReport[_0xf41704(0x12c)](attributes,_0xb5bbe5),IntegrationReport;}module[a438_0x1a3aa1(0x12d)]['IntegrationReport']=IntegrationReport,module[a438_0x1a3aa1(0x12d)][a438_0x1a3aa1(0x12c)]=init; \ No newline at end of file diff --git a/server/api/integrationReport/integrationReport.options.js b/server/api/integrationReport/integrationReport.options.js new file mode 100644 index 0000000..6f96c6c --- /dev/null +++ b/server/api/integrationReport/integrationReport.options.js @@ -0,0 +1 @@ +var a439_0x30d1=['report_integration','exports','options'];(function(_0x568d27,_0x500f90){var _0x30d196=function(_0x5be71e){while(--_0x5be71e){_0x568d27['push'](_0x568d27['shift']());}};_0x30d196(++_0x500f90);}(a439_0x30d1,0x165));var a439_0x5be7=function(_0x568d27,_0x500f90){_0x568d27=_0x568d27-0xe5;var _0x30d196=a439_0x30d1[_0x568d27];return _0x30d196;};var a439_0x16e874=a439_0x5be7;function options(_0x4ff7df){var _0x146513=a439_0x5be7;return{'sequelize':_0x4ff7df,'tableName':_0x146513(0xe5),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a439_0x16e874(0xe6)][a439_0x16e874(0xe7)]=options; \ No newline at end of file diff --git a/server/api/interval/index.js b/server/api/interval/index.js index 899838b..c5f790a 100644 --- a/server/api/interval/index.js +++ b/server/api/interval/index.js @@ -1 +1 @@ -const a365_0x5ed0=['./interval.controller','/:id/sub_intervals/create_many','exports','update','Router','addInterval','destroy','/:id','index','express','/:id/sub_intervals','post','../../components/auth/service','show','delete','getIntervals','isAuthenticated','get','create','addIntervals','put'];(function(_0x796636,_0x5ed0b0){const _0xe69c43=function(_0x39488f){while(--_0x39488f){_0x796636['push'](_0x796636['shift']());}};_0xe69c43(++_0x5ed0b0);}(a365_0x5ed0,0x1e8));const a365_0xe69c=function(_0x796636,_0x5ed0b0){_0x796636=_0x796636-0x0;let _0xe69c43=a365_0x5ed0[_0x796636];return _0xe69c43;};const _0x8758aa=a365_0xe69c;'use strict';const express=require(_0x8758aa('0x4')),router=express[_0x8758aa('0x14')](),auth=require(_0x8758aa('0x7')),controller=require(_0x8758aa('0x10'));router[_0x8758aa('0xc')]('/',auth[_0x8758aa('0xb')](),controller[_0x8758aa('0x3')]),router[_0x8758aa('0xc')](_0x8758aa('0x2'),auth[_0x8758aa('0xb')](),controller[_0x8758aa('0x8')]),router[_0x8758aa('0xc')](_0x8758aa('0x5'),auth['isAuthenticated'](),controller[_0x8758aa('0xa')]),router[_0x8758aa('0x6')]('/',auth[_0x8758aa('0xb')](),controller[_0x8758aa('0xd')]),router[_0x8758aa('0x6')](_0x8758aa('0x5'),auth['isAuthenticated'](),controller[_0x8758aa('0x0')]),router[_0x8758aa('0x6')](_0x8758aa('0x11'),auth[_0x8758aa('0xb')](),controller[_0x8758aa('0xe')]),router[_0x8758aa('0xf')]('/:id',auth[_0x8758aa('0xb')](),controller[_0x8758aa('0x13')]),router[_0x8758aa('0x9')](_0x8758aa('0x2'),auth[_0x8758aa('0xb')](),controller[_0x8758aa('0x1')]),module[_0x8758aa('0x12')]=router; \ No newline at end of file +const a440_0x9d7a=['Router','express','/:id/sub_intervals','../../components/auth/service','update','addIntervals','./interval.controller','put','create','/:id','post','exports','show','get','index','delete','isAuthenticated'];(function(_0x42ac47,_0x5e2e3c){const _0x9d7ad1=function(_0x39a865){while(--_0x39a865){_0x42ac47['push'](_0x42ac47['shift']());}};_0x9d7ad1(++_0x5e2e3c);}(a440_0x9d7a,0x8c));const a440_0x39a8=function(_0x42ac47,_0x5e2e3c){_0x42ac47=_0x42ac47-0x178;let _0x9d7ad1=a440_0x9d7a[_0x42ac47];return _0x9d7ad1;};const a440_0x22da98=a440_0x39a8;'use strict';const express=require(a440_0x22da98(0x186)),router=express[a440_0x22da98(0x185)](),auth=require(a440_0x22da98(0x188)),controller=require(a440_0x22da98(0x17a));router[a440_0x22da98(0x181)]('/',auth[a440_0x22da98(0x184)](),controller[a440_0x22da98(0x182)]),router[a440_0x22da98(0x181)](a440_0x22da98(0x17d),auth['isAuthenticated'](),controller[a440_0x22da98(0x180)]),router[a440_0x22da98(0x181)](a440_0x22da98(0x187),auth[a440_0x22da98(0x184)](),controller['getIntervals']),router[a440_0x22da98(0x17e)]('/',auth['isAuthenticated'](),controller[a440_0x22da98(0x17c)]),router[a440_0x22da98(0x17e)](a440_0x22da98(0x187),auth[a440_0x22da98(0x184)](),controller['addInterval']),router[a440_0x22da98(0x17e)]('/:id/sub_intervals/create_many',auth['isAuthenticated'](),controller[a440_0x22da98(0x179)]),router[a440_0x22da98(0x17b)](a440_0x22da98(0x17d),auth[a440_0x22da98(0x184)](),controller[a440_0x22da98(0x178)]),router[a440_0x22da98(0x183)](a440_0x22da98(0x17d),auth[a440_0x22da98(0x184)](),controller['destroy']),module[a440_0x22da98(0x17f)]=router; \ No newline at end of file diff --git a/server/api/interval/interval.attributes.js b/server/api/interval/interval.attributes.js index 6e832af..33cb95f 100644 --- a/server/api/interval/interval.attributes.js +++ b/server/api/interval/interval.attributes.js @@ -1 +1 @@ -const a366_0x4cf6=['STRING','sequelize'];(function(_0x4e09f0,_0x4cf630){const _0x2dd3e=function(_0x27c6a6){while(--_0x27c6a6){_0x4e09f0['push'](_0x4e09f0['shift']());}};_0x2dd3e(++_0x4cf630);}(a366_0x4cf6,0x160));const a366_0x2dd3=function(_0x4e09f0,_0x4cf630){_0x4e09f0=_0x4e09f0-0x0;let _0x2dd3e=a366_0x4cf6[_0x4e09f0];return _0x2dd3e;};const _0x54c330=a366_0x2dd3;'use strict';const Sequelize=require(_0x54c330('0x1'));module['exports']={'name':{'type':Sequelize[_0x54c330('0x0')]},'description':{'type':Sequelize['STRING']},'interval':{'type':Sequelize[_0x54c330('0x0')],'allowNull':!![]}}; \ No newline at end of file +const a441_0x25c0=['STRING','attributes','exports','sequelize'];(function(_0x58beb0,_0x17ccba){const _0x25c0c2=function(_0x50cff8){while(--_0x50cff8){_0x58beb0['push'](_0x58beb0['shift']());}};_0x25c0c2(++_0x17ccba);}(a441_0x25c0,0x186));const a441_0x50cf=function(_0x58beb0,_0x17ccba){_0x58beb0=_0x58beb0-0x133;let _0x25c0c2=a441_0x25c0[_0x58beb0];return _0x25c0c2;};const a441_0x122845=a441_0x50cf;'use strict';const {DataTypes}=require(a441_0x122845(0x134)),attributes={'name':{'type':DataTypes[a441_0x122845(0x135)]},'description':{'type':DataTypes['STRING']},'interval':{'type':DataTypes['STRING'],'allowNull':!![]}};module[a441_0x122845(0x133)][a441_0x122845(0x136)]=attributes; \ No newline at end of file diff --git a/server/api/interval/interval.controller.js b/server/api/interval/interval.controller.js index 1611be8..87ff638 100644 --- a/server/api/interval/interval.controller.js +++ b/server/api/interval/interval.controller.js @@ -1 +1 @@ -const a367_0x8089=['pick','Content-Range','catch','IntervalId','Intervals','attributes','merge','like','filters','set','rawAttributes','update','params','user','../../components/parsers/qs','limit','intersection','json','map','index','findAll','offset','body','includeAll','transaction','query','fields','count','model','UserProfileResource','addIntervals','order','findOne','keys','create','length','addInterval','destroy','show','../../config/logger','Interval','status','Unable\x20to\x20retrieve\x20the\x20current\x20user','options','filter','error','sequelize','then','../../mysqldb','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','type','rows','userProfileId','where','getIntervals','bulkCreate','send','get','include','sort','stack','VIRTUAL','UserProfileSection','key','name'];(function(_0x575391,_0x808982){const _0x5e528e=function(_0x51aade){while(--_0x51aade){_0x575391['push'](_0x575391['shift']());}};_0x5e528e(++_0x808982);}(a367_0x8089,0x18f));const a367_0x5e52=function(_0x575391,_0x808982){_0x575391=_0x575391-0x0;let _0x5e528e=a367_0x8089[_0x575391];return _0x5e528e;};const _0x48da3e=a367_0x5e52;'use strict';const _=require('lodash'),qs=require(_0x48da3e('0x5')),logger=require(_0x48da3e('0x1e'))('api'),db=require(_0x48da3e('0x27'))['db'],{Op}=require(_0x48da3e('0x25'));function respondWithResult(_0x51aade,_0x2824b2){return _0x2824b2=_0x2824b2||0xc8,function(_0x40b4ba){const _0x195045=a367_0x5e52;if(_0x40b4ba)return _0x51aade['status'](_0x2824b2)[_0x195045('0x8')](_0x40b4ba);};}function respondWithFilteredResult(_0x21b4a4,_0x1f8bfa){return function(_0x2d545a){const _0xb5001d=a367_0x5e52;if(_0x2d545a){const _0x1172b1=_0x2d545a['count'],_0xa44ace=_0x1f8bfa[_0xb5001d('0xc')];let _0x4f7f3b=_0x1f8bfa[_0xb5001d('0xc')]+_0x1f8bfa[_0xb5001d('0x6')],_0x3be333;return _0x4f7f3b>=_0x1172b1?(_0x4f7f3b=_0x1172b1,_0x3be333=0xc8):_0x3be333=0xce,_0x21b4a4[_0xb5001d('0x20')](_0x3be333),_0x21b4a4[_0xb5001d('0x0')](_0xb5001d('0x39'),_0xa44ace+'-'+_0x4f7f3b+'/'+_0x1172b1)[_0xb5001d('0x8')](_0x2d545a);}return null;};}function saveUpdates(_0x577061){return function(_0x3bed75){const _0x236d58=a367_0x5e52;if(_0x3bed75)return _0x3bed75[_0x236d58('0x2')](_0x577061)[_0x236d58('0x26')](function(_0x29aa95){return _0x29aa95;});return null;};}function removeEntity(_0x37245f){return function(_0x509653){const _0x4edd2a=a367_0x5e52;if(_0x509653)return _0x509653[_0x4edd2a('0x1c')]()[_0x4edd2a('0x26')](function(){const _0x2b7c7c=_0x4edd2a,_0x7a9ff6=_0x509653[_0x2b7c7c('0x30')]({'plain':!![]}),_0xd97183=_0x2b7c7c('0x3c');return db['UserProfileResource']['destroy']({'where':{'type':_0xd97183,'resourceId':_0x7a9ff6['id']}})[_0x2b7c7c('0x26')](function(){return _0x509653;});})[_0x4edd2a('0x26')](function(){_0x37245f['status'](0xcc)['end']();});};}function handleEntityNotFound(_0x20cd55){return function(_0x16f891){return!_0x16f891&&_0x20cd55['sendStatus'](0x194),_0x16f891;};}function handleError(_0xbc228d,_0x33ae04){return _0x33ae04=_0x33ae04||0x1f4,function(_0x4fc077){const _0x4bfd21=a367_0x5e52;logger[_0x4bfd21('0x24')](_0x4fc077[_0x4bfd21('0x33')]),_0x4fc077['name']&&delete _0x4fc077[_0x4bfd21('0x37')],_0xbc228d[_0x4bfd21('0x20')](_0x33ae04)[_0x4bfd21('0x2f')](_0x4fc077);};}exports[_0x48da3e('0xa')]=function(_0x341d60,_0x2de1d4){const _0x1c598d=_0x48da3e;let _0x2d6961={};const _0x1d2791={},_0xa45576={'count':0x0,'rows':[]},_0x3961e5=_[_0x1c598d('0x9')](db[_0x1c598d('0x1f')]['rawAttributes'],function(_0x1b0f14){const _0x46f5b7=_0x1c598d;return{'name':_0x1b0f14['fieldName'],'type':_0x1b0f14[_0x46f5b7('0x29')][_0x46f5b7('0x36')]};});_0x1d2791[_0x1c598d('0x13')]=_[_0x1c598d('0x9')](_0x3961e5,_0x1c598d('0x37')),_0x1d2791[_0x1c598d('0x10')]=_[_0x1c598d('0x18')](_0x341d60[_0x1c598d('0x10')]),_0x1d2791['filters']=_[_0x1c598d('0x7')](_0x1d2791[_0x1c598d('0x13')],_0x1d2791[_0x1c598d('0x10')]),_0x2d6961['attributes']=_[_0x1c598d('0x7')](_0x1d2791[_0x1c598d('0x13')],qs['fields'](_0x341d60[_0x1c598d('0x10')][_0x1c598d('0x11')])),_0x2d6961[_0x1c598d('0x3d')]=_0x2d6961['attributes']['length']?_0x2d6961[_0x1c598d('0x3d')]:_0x1d2791[_0x1c598d('0x13')];typeof _0x341d60[_0x1c598d('0x10')]['nolimit']==='undefined'&&(_0x2d6961['limit']=qs[_0x1c598d('0x6')](_0x341d60[_0x1c598d('0x10')][_0x1c598d('0x6')]),_0x2d6961[_0x1c598d('0xc')]=qs[_0x1c598d('0xc')](_0x341d60[_0x1c598d('0x10')][_0x1c598d('0xc')]));_0x2d6961[_0x1c598d('0x16')]=qs[_0x1c598d('0x32')](_0x341d60['query'][_0x1c598d('0x32')]),_0x2d6961['where']=qs[_0x1c598d('0x40')](_[_0x1c598d('0x38')](_0x341d60[_0x1c598d('0x10')],_0x1d2791[_0x1c598d('0x40')]),_0x3961e5);_0x341d60[_0x1c598d('0x10')][_0x1c598d('0x23')]&&(_0x2d6961[_0x1c598d('0x2c')]=_[_0x1c598d('0x3e')](_0x2d6961[_0x1c598d('0x2c')],{[Op['or']]:_['map'](_0x3961e5,function(_0x20537f){const _0x4329e9=_0x1c598d;if(_0x20537f[_0x4329e9('0x29')]!==_0x4329e9('0x34')){const _0xffb30b={};return _0xffb30b[_0x20537f[_0x4329e9('0x37')]]={[Op[_0x4329e9('0x3f')]]:'%'+_0x341d60['query']['filter']+'%'},_0xffb30b;}})}));_0x2d6961=_[_0x1c598d('0x3e')]({},_0x2d6961,_0x341d60[_0x1c598d('0x22')]);const _0x3303ae={'where':_0x2d6961[_0x1c598d('0x2c')]};return db[_0x1c598d('0x1f')]['count'](_0x3303ae)[_0x1c598d('0x26')](function(_0x1c374f){const _0x37b84e=_0x1c598d;return _0xa45576[_0x37b84e('0x12')]=_0x1c374f,_0x341d60[_0x37b84e('0x10')][_0x37b84e('0xe')]&&(_0x2d6961['include']=[{'all':!![]}]),db[_0x37b84e('0x1f')][_0x37b84e('0xb')](_0x2d6961);})['then'](function(_0x32323e){const _0x3bad51=_0x1c598d;return _0xa45576[_0x3bad51('0x2a')]=_0x32323e,_0xa45576;})[_0x1c598d('0x26')](respondWithFilteredResult(_0x2de1d4,_0x2d6961))[_0x1c598d('0x3a')](handleError(_0x2de1d4,null));},exports[_0x48da3e('0x1d')]=function(_0x32df9c,_0x499de3){const _0x6cd771=_0x48da3e;let _0xabfa5b={'raw':!![],'where':{'id':_0x32df9c[_0x6cd771('0x3')]['id']}};const _0x5df2aa={};return _0x5df2aa['model']=_[_0x6cd771('0x18')](db[_0x6cd771('0x1f')][_0x6cd771('0x1')]),_0x5df2aa[_0x6cd771('0x10')]=_[_0x6cd771('0x18')](_0x32df9c[_0x6cd771('0x10')]),_0x5df2aa[_0x6cd771('0x40')]=_[_0x6cd771('0x7')](_0x5df2aa[_0x6cd771('0x13')],_0x5df2aa[_0x6cd771('0x10')]),_0xabfa5b[_0x6cd771('0x3d')]=_[_0x6cd771('0x7')](_0x5df2aa[_0x6cd771('0x13')],qs['fields'](_0x32df9c['query'][_0x6cd771('0x11')])),_0xabfa5b['attributes']=_0xabfa5b[_0x6cd771('0x3d')][_0x6cd771('0x1a')]?_0xabfa5b['attributes']:_0x5df2aa[_0x6cd771('0x13')],_0x32df9c[_0x6cd771('0x10')][_0x6cd771('0xe')]&&(_0xabfa5b[_0x6cd771('0x31')]=[{'all':!![]}]),_0xabfa5b=_[_0x6cd771('0x3e')]({},_0xabfa5b,_0x32df9c[_0x6cd771('0x22')]),db[_0x6cd771('0x1f')]['findOne'](_0xabfa5b)[_0x6cd771('0x26')](handleEntityNotFound(_0x499de3,null))[_0x6cd771('0x26')](respondWithResult(_0x499de3,null))['catch'](handleError(_0x499de3,null));},exports['create']=function(_0x44f011,_0x2f99f6){const _0x484ea0=_0x48da3e;return db[_0x484ea0('0x1f')][_0x484ea0('0x19')](_0x44f011['body'],{})[_0x484ea0('0x26')](function(_0x2dcda6){const _0xec21bd=_0x484ea0,_0x5219b1=_0x44f011['user'][_0xec21bd('0x30')]({'plain':!![]});if(!_0x5219b1)throw new Error(_0xec21bd('0x21'));if(_0x5219b1['role']===_0xec21bd('0x4')){const _0x3846c9=_0x2dcda6[_0xec21bd('0x30')]({'plain':!![]}),_0x593281=_0xec21bd('0x3c');return db[_0xec21bd('0x35')][_0xec21bd('0x17')]({'where':{'name':_0x593281,'userProfileId':_0x5219b1[_0xec21bd('0x2b')]},'raw':!![]})[_0xec21bd('0x26')](function(_0x540a67){const _0x337215=_0xec21bd;return _0x540a67&&_0x540a67['autoAssociation']===0x0?db[_0x337215('0x14')][_0x337215('0x19')]({'name':_0x3846c9[_0x337215('0x37')],'resourceId':_0x3846c9['id'],'type':_0x540a67[_0x337215('0x37')],'sectionId':_0x540a67['id']},{})[_0x337215('0x26')](function(){return _0x2dcda6;}):_0x2dcda6;})[_0xec21bd('0x3a')](function(_0x559d5a){const _0x4e8b23=_0xec21bd;logger[_0x4e8b23('0x24')](_0x4e8b23('0x28'),_0x559d5a);throw _0x559d5a;});}return _0x2dcda6;})['then'](respondWithResult(_0x2f99f6,0xc9))[_0x484ea0('0x3a')](handleError(_0x2f99f6,null));},exports[_0x48da3e('0x2')]=function(_0x4fc2e4,_0x14a82f){const _0x548776=_0x48da3e;return _0x4fc2e4['body']['id']&&delete _0x4fc2e4['body']['id'],db['Interval'][_0x548776('0x17')]({'where':{'id':_0x4fc2e4[_0x548776('0x3')]['id']}})[_0x548776('0x26')](handleEntityNotFound(_0x14a82f,null))[_0x548776('0x26')](saveUpdates(_0x4fc2e4['body'],null))[_0x548776('0x26')](respondWithResult(_0x14a82f,null))['catch'](handleError(_0x14a82f,null));},exports[_0x48da3e('0x1c')]=function(_0x56e14c,_0x5bead8){const _0x52ee4d=_0x48da3e;return db['Interval'][_0x52ee4d('0x17')]({'where':{'id':_0x56e14c[_0x52ee4d('0x3')]['id']}})[_0x52ee4d('0x26')](handleEntityNotFound(_0x5bead8,null))[_0x52ee4d('0x26')](removeEntity(_0x5bead8,null))['catch'](handleError(_0x5bead8,null));},exports[_0x48da3e('0x1b')]=function(_0x3b2865,_0x120de8){const _0x4f4a5d=_0x48da3e;return _0x3b2865[_0x4f4a5d('0xd')]['id']&&delete _0x3b2865[_0x4f4a5d('0xd')]['id'],db[_0x4f4a5d('0x1f')]['findOne']({'where':{'id':_0x3b2865['params']['id']}})[_0x4f4a5d('0x26')](handleEntityNotFound(_0x120de8,null))[_0x4f4a5d('0x26')](function(_0x2ae609){const _0x53b7f1=_0x4f4a5d;if(_0x2ae609)return _0x3b2865[_0x53b7f1('0xd')][_0x53b7f1('0x3b')]=_0x2ae609['id'],db['Interval'][_0x53b7f1('0x19')](_0x3b2865['body']);})[_0x4f4a5d('0x26')](respondWithResult(_0x120de8,null))[_0x4f4a5d('0x3a')](handleError(_0x120de8,null));},exports[_0x48da3e('0x2d')]=function(_0x104662,_0x2d3f90){const _0x1b6d9c=_0x48da3e;let _0x203c47={};const _0x41f9fb={};let _0x90484e,_0x4124eb;return db['Interval'][_0x1b6d9c('0x17')]({'where':{'id':_0x104662['params']['id']}})[_0x1b6d9c('0x26')](handleEntityNotFound(_0x2d3f90,null))[_0x1b6d9c('0x26')](function(_0x1a7cb2){const _0xd8a0f2=_0x1b6d9c;if(_0x1a7cb2)return _0x90484e=_0x1a7cb2,_0x41f9fb[_0xd8a0f2('0x13')]=_['keys'](db[_0xd8a0f2('0x1f')][_0xd8a0f2('0x1')]),_0x41f9fb[_0xd8a0f2('0x10')]=_['keys'](_0x104662[_0xd8a0f2('0x10')]),_0x41f9fb[_0xd8a0f2('0x40')]=_[_0xd8a0f2('0x7')](_0x41f9fb[_0xd8a0f2('0x13')],_0x41f9fb[_0xd8a0f2('0x10')]),_0x203c47[_0xd8a0f2('0x3d')]=_[_0xd8a0f2('0x7')](_0x41f9fb[_0xd8a0f2('0x13')],qs[_0xd8a0f2('0x11')](_0x104662['query'][_0xd8a0f2('0x11')])),_0x203c47[_0xd8a0f2('0x3d')]=_0x203c47[_0xd8a0f2('0x3d')]['length']?_0x203c47[_0xd8a0f2('0x3d')]:_0x41f9fb['model'],_0x203c47[_0xd8a0f2('0x16')]=qs['sort'](_0x104662[_0xd8a0f2('0x10')][_0xd8a0f2('0x32')]),_0x203c47[_0xd8a0f2('0x2c')]=qs[_0xd8a0f2('0x40')](_[_0xd8a0f2('0x38')](_0x104662[_0xd8a0f2('0x10')],_0x41f9fb[_0xd8a0f2('0x40')])),_0x104662[_0xd8a0f2('0x10')][_0xd8a0f2('0x23')]&&(_0x203c47[_0xd8a0f2('0x2c')]=_[_0xd8a0f2('0x3e')](_0x203c47[_0xd8a0f2('0x2c')],{[Op['or']]:_['map'](_0x203c47['attributes'],function(_0x55bb64){const _0x197778=_0xd8a0f2,_0x445bf1={};return _0x445bf1[_0x55bb64]={[Op['like']]:'%'+_0x104662[_0x197778('0x10')][_0x197778('0x23')]+'%'},_0x445bf1;})})),_0x203c47=_[_0xd8a0f2('0x3e')]({},_0x203c47,_0x104662[_0xd8a0f2('0x22')]),_0x90484e[_0xd8a0f2('0x2d')](_0x203c47);})['then'](function(_0x351c5d){const _0x12f843=_0x1b6d9c;if(_0x351c5d)return _0x4124eb=_0x351c5d['length'],typeof _0x104662[_0x12f843('0x10')]['nolimit']==='undefined'&&(_0x203c47['limit']=qs[_0x12f843('0x6')](_0x104662['query'][_0x12f843('0x6')]),_0x203c47[_0x12f843('0xc')]=qs['offset'](_0x104662[_0x12f843('0x10')][_0x12f843('0xc')])),_0x90484e[_0x12f843('0x2d')](_0x203c47);})['then'](function(_0x230749){if(_0x230749)return _0x230749?{'count':_0x4124eb,'rows':_0x230749}:null;})['then'](respondWithResult(_0x2d3f90,null))[_0x1b6d9c('0x3a')](handleError(_0x2d3f90,null));},exports[_0x48da3e('0x15')]=function(_0x1662cf,_0x34d333){const _0x1d36ab=_0x48da3e;return db[_0x1d36ab('0x1f')][_0x1d36ab('0x17')]({'where':{'id':_0x1662cf[_0x1d36ab('0x3')]['id']}})[_0x1d36ab('0x26')](handleEntityNotFound(_0x34d333,null))[_0x1d36ab('0x26')](function(_0x598d46){const _0x162a88=_0x1d36ab;if(_0x598d46)return db[_0x162a88('0x25')][_0x162a88('0xf')](function(_0x469cab){const _0x51e6b1=_0x162a88;return db[_0x51e6b1('0x1f')][_0x51e6b1('0x1c')]({'where':{'IntervalId':_0x1662cf[_0x51e6b1('0x3')]['id']},'transaction':_0x469cab})[_0x51e6b1('0x26')](function(){const _0x5d53e9=_0x51e6b1,_0x594175=_['map'](_0x1662cf['body'],function(_0x399626){const _0x3eb19a=a367_0x5e52;return delete _0x399626['id'],_0x399626['IntervalId']=_0x1662cf[_0x3eb19a('0x3')]['id'],_0x399626;});return db['Interval'][_0x5d53e9('0x2e')](_0x594175,{'transaction':_0x469cab});});})[_0x162a88('0x26')](function(){const _0x1e9370=_0x162a88;return db[_0x1e9370('0x1f')][_0x1e9370('0xb')]({'where':{'IntervalId':_0x1662cf[_0x1e9370('0x3')]['id']}});});})['then'](respondWithResult(_0x34d333,null))[_0x1d36ab('0x3a')](handleError(_0x34d333,null));}; \ No newline at end of file +const a442_0x24ac=['Intervals','merge','then','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','filter','params','get','findOne','error','offset','../../config/logger','catch','transaction','getIntervals','attributes','userProfileId','api','filters','addIntervals','VIRTUAL','undefined','stack','user','status','UserProfileSection','create','findAll','bulkCreate','length','where','options','Content-Range','rows','Unable\x20to\x20retrieve\x20the\x20current\x20user','count','map','sort','end','name','nolimit','model','addInterval','destroy','include','Interval','sendStatus','query','IntervalId','intersection','pick','send','set','show','key','UserProfileResource','type','keys','body','fields','rawAttributes','../../components/parsers/qs','lodash','role','update','limit','json','autoAssociation','includeAll','order'];(function(_0x107676,_0x58675a){const _0x24ac32=function(_0x587aa8){while(--_0x587aa8){_0x107676['push'](_0x107676['shift']());}};_0x24ac32(++_0x58675a);}(a442_0x24ac,0x182));const a442_0x587a=function(_0x107676,_0x58675a){_0x107676=_0x107676-0xdd;let _0x24ac32=a442_0x24ac[_0x107676];return _0x24ac32;};const a442_0x105528=a442_0x587a;'use strict';const _=require(a442_0x105528(0xf1)),qs=require(a442_0x105528(0xf0)),logger=require(a442_0x105528(0x103))(a442_0x105528(0x109)),{db}=require('../../mysqldb'),{Op}=require('sequelize');function respondWithResult(_0x36881f,_0x474044){return _0x474044=_0x474044||0xc8,function(_0x3dea1c){const _0x66a021=a442_0x587a;if(_0x3dea1c)return _0x36881f[_0x66a021(0x110)](_0x474044)[_0x66a021(0xf5)](_0x3dea1c);};}function respondWithFilteredResult(_0xd12144,_0x2fcaa3){return function(_0x10b979){const _0x1304ea=a442_0x587a;if(_0x10b979){const _0x1b7740=_0x10b979[_0x1304ea(0x11b)],_0x2340c9=_0x2fcaa3[_0x1304ea(0x102)];let _0x3abe33=_0x2fcaa3[_0x1304ea(0x102)]+_0x2fcaa3[_0x1304ea(0xf4)],_0x27f043;return _0x3abe33>=_0x1b7740?(_0x3abe33=_0x1b7740,_0x27f043=0xc8):_0x27f043=0xce,_0xd12144[_0x1304ea(0x110)](_0x27f043),_0xd12144[_0x1304ea(0xe7)](_0x1304ea(0x118),_0x2340c9+'-'+_0x3abe33+'/'+_0x1b7740)[_0x1304ea(0xf5)](_0x10b979);}return null;};}function saveUpdates(_0x74aab9){return function(_0x2bf8e5){const _0x3ab689=a442_0x587a;if(_0x2bf8e5)return _0x2bf8e5[_0x3ab689(0xf3)](_0x74aab9)['then'](function(_0x53daff){return _0x53daff;});return null;};}function removeEntity(_0x524aa1){return function(_0x338d05){const _0x1a21fd=a442_0x587a;if(_0x338d05)return _0x338d05[_0x1a21fd(0xde)]()[_0x1a21fd(0xfb)](function(){const _0x367500=_0x1a21fd,_0x313f3c=_0x338d05['get']({'plain':!![]}),_0x466de0=_0x367500(0xf9);return db[_0x367500(0xea)][_0x367500(0xde)]({'where':{'type':_0x466de0,'resourceId':_0x313f3c['id']}})[_0x367500(0xfb)](function(){return _0x338d05;});})[_0x1a21fd(0xfb)](function(){const _0x2404c6=_0x1a21fd;_0x524aa1[_0x2404c6(0x110)](0xcc)[_0x2404c6(0x11e)]();});};}function handleEntityNotFound(_0x2467a8){return function(_0xf4f048){const _0x32f9b6=a442_0x587a;return!_0xf4f048&&_0x2467a8[_0x32f9b6(0xe1)](0x194),_0xf4f048;};}function handleError(_0x3e4177,_0x59082a){return _0x59082a=_0x59082a||0x1f4,function(_0x2a7c6f){const _0x3dcdf3=a442_0x587a;logger['error'](_0x2a7c6f[_0x3dcdf3(0x10e)]),_0x2a7c6f['name']&&delete _0x2a7c6f[_0x3dcdf3(0x11f)],_0x3e4177[_0x3dcdf3(0x110)](_0x59082a)[_0x3dcdf3(0xe6)](_0x2a7c6f);};}exports['index']=function(_0x2467a4,_0x6c3635){const _0x552efb=a442_0x105528;let _0x26ba74={};const _0x189a3b={},_0x5559cd={'count':0x0,'rows':[]},_0x710e49=_[_0x552efb(0x11c)](db[_0x552efb(0xe0)][_0x552efb(0xef)],function(_0x15bb07){const _0x10b0e6=_0x552efb;return{'name':_0x15bb07['fieldName'],'type':_0x15bb07[_0x10b0e6(0xeb)][_0x10b0e6(0xe9)]};});_0x189a3b[_0x552efb(0x121)]=_['map'](_0x710e49,_0x552efb(0x11f)),_0x189a3b['query']=_[_0x552efb(0xec)](_0x2467a4[_0x552efb(0xe2)]),_0x189a3b[_0x552efb(0x10a)]=_['intersection'](_0x189a3b[_0x552efb(0x121)],_0x189a3b['query']),_0x26ba74[_0x552efb(0x107)]=_[_0x552efb(0xe4)](_0x189a3b['model'],qs[_0x552efb(0xee)](_0x2467a4['query'][_0x552efb(0xee)])),_0x26ba74[_0x552efb(0x107)]=_0x26ba74[_0x552efb(0x107)][_0x552efb(0x115)]?_0x26ba74[_0x552efb(0x107)]:_0x189a3b[_0x552efb(0x121)];typeof _0x2467a4[_0x552efb(0xe2)][_0x552efb(0x120)]===_0x552efb(0x10d)&&(_0x26ba74['limit']=qs[_0x552efb(0xf4)](_0x2467a4[_0x552efb(0xe2)][_0x552efb(0xf4)]),_0x26ba74[_0x552efb(0x102)]=qs[_0x552efb(0x102)](_0x2467a4[_0x552efb(0xe2)]['offset']));_0x26ba74[_0x552efb(0xf8)]=qs[_0x552efb(0x11d)](_0x2467a4['query'][_0x552efb(0x11d)]),_0x26ba74['where']=qs[_0x552efb(0x10a)](_[_0x552efb(0xe5)](_0x2467a4[_0x552efb(0xe2)],_0x189a3b['filters']),_0x710e49);_0x2467a4['query'][_0x552efb(0xfd)]&&(_0x26ba74[_0x552efb(0x116)]=_[_0x552efb(0xfa)](_0x26ba74[_0x552efb(0x116)],{[Op['or']]:_[_0x552efb(0x11c)](_0x710e49,function(_0x30817d){const _0x2174b8=_0x552efb;if(_0x30817d[_0x2174b8(0xeb)]!==_0x2174b8(0x10c)){const _0x56086c={};return _0x56086c[_0x30817d[_0x2174b8(0x11f)]]={[Op['like']]:'%'+_0x2467a4[_0x2174b8(0xe2)][_0x2174b8(0xfd)]+'%'},_0x56086c;}})}));_0x26ba74=_[_0x552efb(0xfa)]({},_0x26ba74,_0x2467a4[_0x552efb(0x117)]);const _0x50956e={'where':_0x26ba74['where']};return db[_0x552efb(0xe0)]['count'](_0x50956e)['then'](function(_0x2a5746){const _0x30efd4=_0x552efb;return _0x5559cd[_0x30efd4(0x11b)]=_0x2a5746,_0x2467a4['query'][_0x30efd4(0xf7)]&&(_0x26ba74[_0x30efd4(0xdf)]=[{'all':!![]}]),db[_0x30efd4(0xe0)][_0x30efd4(0x113)](_0x26ba74);})[_0x552efb(0xfb)](function(_0x5b79a2){const _0x28f736=_0x552efb;return _0x5559cd[_0x28f736(0x119)]=_0x5b79a2,_0x5559cd;})['then'](respondWithFilteredResult(_0x6c3635,_0x26ba74))[_0x552efb(0x104)](handleError(_0x6c3635,null));},exports[a442_0x105528(0xe8)]=function(_0x43857b,_0x5d4d3c){const _0x214eec=a442_0x105528;let _0x333dca={'raw':!![],'where':{'id':_0x43857b[_0x214eec(0xfe)]['id']}};const _0x5cbe97={};return _0x5cbe97[_0x214eec(0x121)]=_[_0x214eec(0xec)](db['Interval'][_0x214eec(0xef)]),_0x5cbe97['query']=_[_0x214eec(0xec)](_0x43857b[_0x214eec(0xe2)]),_0x5cbe97[_0x214eec(0x10a)]=_['intersection'](_0x5cbe97[_0x214eec(0x121)],_0x5cbe97[_0x214eec(0xe2)]),_0x333dca[_0x214eec(0x107)]=_[_0x214eec(0xe4)](_0x5cbe97['model'],qs['fields'](_0x43857b[_0x214eec(0xe2)][_0x214eec(0xee)])),_0x333dca[_0x214eec(0x107)]=_0x333dca[_0x214eec(0x107)][_0x214eec(0x115)]?_0x333dca[_0x214eec(0x107)]:_0x5cbe97[_0x214eec(0x121)],_0x43857b[_0x214eec(0xe2)][_0x214eec(0xf7)]&&(_0x333dca[_0x214eec(0xdf)]=[{'all':!![]}]),_0x333dca=_[_0x214eec(0xfa)]({},_0x333dca,_0x43857b[_0x214eec(0x117)]),db[_0x214eec(0xe0)]['findOne'](_0x333dca)['then'](handleEntityNotFound(_0x5d4d3c,null))[_0x214eec(0xfb)](respondWithResult(_0x5d4d3c,null))[_0x214eec(0x104)](handleError(_0x5d4d3c,null));},exports['create']=function(_0x35ab08,_0xc13dd5){const _0x5ba409=a442_0x105528;return db['Interval']['create'](_0x35ab08[_0x5ba409(0xed)],{})[_0x5ba409(0xfb)](function(_0x2aa0d1){const _0x3a7c44=_0x5ba409,_0x5595ae=_0x35ab08[_0x3a7c44(0x10f)][_0x3a7c44(0xff)]({'plain':!![]});if(!_0x5595ae)throw new Error(_0x3a7c44(0x11a));if(_0x5595ae[_0x3a7c44(0xf2)]===_0x3a7c44(0x10f)){const _0x799daf=_0x2aa0d1[_0x3a7c44(0xff)]({'plain':!![]}),_0x2e1bf6=_0x3a7c44(0xf9);return db[_0x3a7c44(0x111)][_0x3a7c44(0x100)]({'where':{'name':_0x2e1bf6,'userProfileId':_0x5595ae[_0x3a7c44(0x108)]},'raw':!![]})[_0x3a7c44(0xfb)](function(_0x4798a6){const _0xe924e0=_0x3a7c44;return _0x4798a6&&_0x4798a6[_0xe924e0(0xf6)]===0x0?db[_0xe924e0(0xea)]['create']({'name':_0x799daf[_0xe924e0(0x11f)],'resourceId':_0x799daf['id'],'type':_0x4798a6[_0xe924e0(0x11f)],'sectionId':_0x4798a6['id']},{})[_0xe924e0(0xfb)](function(){return _0x2aa0d1;}):_0x2aa0d1;})['catch'](function(_0x596d13){const _0x30b307=_0x3a7c44;logger[_0x30b307(0x101)](_0x30b307(0xfc),_0x596d13);throw _0x596d13;});}return _0x2aa0d1;})[_0x5ba409(0xfb)](respondWithResult(_0xc13dd5,0xc9))[_0x5ba409(0x104)](handleError(_0xc13dd5,null));},exports[a442_0x105528(0xf3)]=function(_0x1c5fd6,_0x227439){const _0x2e8715=a442_0x105528;return _0x1c5fd6['body']['id']&&delete _0x1c5fd6['body']['id'],db[_0x2e8715(0xe0)][_0x2e8715(0x100)]({'where':{'id':_0x1c5fd6['params']['id']}})[_0x2e8715(0xfb)](handleEntityNotFound(_0x227439,null))[_0x2e8715(0xfb)](saveUpdates(_0x1c5fd6['body'],null))[_0x2e8715(0xfb)](respondWithResult(_0x227439,null))['catch'](handleError(_0x227439,null));},exports[a442_0x105528(0xde)]=function(_0xfae2ef,_0x33e19e){const _0x43ba5b=a442_0x105528;return db[_0x43ba5b(0xe0)][_0x43ba5b(0x100)]({'where':{'id':_0xfae2ef['params']['id']}})['then'](handleEntityNotFound(_0x33e19e,null))[_0x43ba5b(0xfb)](removeEntity(_0x33e19e,null))[_0x43ba5b(0x104)](handleError(_0x33e19e,null));},exports[a442_0x105528(0xdd)]=function(_0x5792ca,_0x2d0ed9){const _0x1b6ae5=a442_0x105528;return _0x5792ca['body']['id']&&delete _0x5792ca['body']['id'],db[_0x1b6ae5(0xe0)]['findOne']({'where':{'id':_0x5792ca['params']['id']}})[_0x1b6ae5(0xfb)](handleEntityNotFound(_0x2d0ed9,null))[_0x1b6ae5(0xfb)](function(_0x16390e){const _0x37c189=_0x1b6ae5;if(_0x16390e)return _0x5792ca[_0x37c189(0xed)][_0x37c189(0xe3)]=_0x16390e['id'],db[_0x37c189(0xe0)][_0x37c189(0x112)](_0x5792ca['body']);})[_0x1b6ae5(0xfb)](respondWithResult(_0x2d0ed9,null))['catch'](handleError(_0x2d0ed9,null));},exports[a442_0x105528(0x106)]=function(_0x5b00be,_0x4aa854){const _0x58693a=a442_0x105528;let _0xc70150={};const _0x246acf={};let _0x59fe8b,_0x1f99a5;return db[_0x58693a(0xe0)]['findOne']({'where':{'id':_0x5b00be[_0x58693a(0xfe)]['id']}})[_0x58693a(0xfb)](handleEntityNotFound(_0x4aa854,null))[_0x58693a(0xfb)](function(_0x218ded){const _0x160802=_0x58693a;if(_0x218ded)return _0x59fe8b=_0x218ded,_0x246acf['model']=_[_0x160802(0xec)](db[_0x160802(0xe0)][_0x160802(0xef)]),_0x246acf[_0x160802(0xe2)]=_[_0x160802(0xec)](_0x5b00be[_0x160802(0xe2)]),_0x246acf['filters']=_[_0x160802(0xe4)](_0x246acf[_0x160802(0x121)],_0x246acf[_0x160802(0xe2)]),_0xc70150[_0x160802(0x107)]=_[_0x160802(0xe4)](_0x246acf['model'],qs[_0x160802(0xee)](_0x5b00be[_0x160802(0xe2)][_0x160802(0xee)])),_0xc70150[_0x160802(0x107)]=_0xc70150[_0x160802(0x107)][_0x160802(0x115)]?_0xc70150[_0x160802(0x107)]:_0x246acf[_0x160802(0x121)],_0xc70150[_0x160802(0xf8)]=qs[_0x160802(0x11d)](_0x5b00be[_0x160802(0xe2)][_0x160802(0x11d)]),_0xc70150[_0x160802(0x116)]=qs[_0x160802(0x10a)](_['pick'](_0x5b00be[_0x160802(0xe2)],_0x246acf[_0x160802(0x10a)])),_0x5b00be['query'][_0x160802(0xfd)]&&(_0xc70150['where']=_[_0x160802(0xfa)](_0xc70150[_0x160802(0x116)],{[Op['or']]:_['map'](_0xc70150['attributes'],function(_0x3a4184){const _0x486e8a=_0x160802,_0xc24dcd={};return _0xc24dcd[_0x3a4184]={[Op['like']]:'%'+_0x5b00be[_0x486e8a(0xe2)]['filter']+'%'},_0xc24dcd;})})),_0xc70150=_[_0x160802(0xfa)]({},_0xc70150,_0x5b00be['options']),_0x59fe8b[_0x160802(0x106)](_0xc70150);})[_0x58693a(0xfb)](function(_0x494117){const _0x45fcc7=_0x58693a;if(_0x494117)return _0x1f99a5=_0x494117['length'],typeof _0x5b00be[_0x45fcc7(0xe2)]['nolimit']===_0x45fcc7(0x10d)&&(_0xc70150[_0x45fcc7(0xf4)]=qs['limit'](_0x5b00be[_0x45fcc7(0xe2)][_0x45fcc7(0xf4)]),_0xc70150['offset']=qs[_0x45fcc7(0x102)](_0x5b00be[_0x45fcc7(0xe2)][_0x45fcc7(0x102)])),_0x59fe8b['getIntervals'](_0xc70150);})[_0x58693a(0xfb)](function(_0x5d9aa2){if(_0x5d9aa2)return _0x5d9aa2?{'count':_0x1f99a5,'rows':_0x5d9aa2}:null;})[_0x58693a(0xfb)](respondWithResult(_0x4aa854,null))[_0x58693a(0x104)](handleError(_0x4aa854,null));},exports[a442_0x105528(0x10b)]=function(_0x5e78d1,_0x3a94fa){const _0x1a09f0=a442_0x105528;return db[_0x1a09f0(0xe0)]['findOne']({'where':{'id':_0x5e78d1[_0x1a09f0(0xfe)]['id']}})[_0x1a09f0(0xfb)](handleEntityNotFound(_0x3a94fa,null))[_0x1a09f0(0xfb)](function(_0x104136){const _0x220a23=_0x1a09f0;if(_0x104136)return db['sequelize'][_0x220a23(0x105)](function(_0x5651e0){const _0x22e048=_0x220a23;return db[_0x22e048(0xe0)][_0x22e048(0xde)]({'where':{'IntervalId':_0x5e78d1[_0x22e048(0xfe)]['id']},'transaction':_0x5651e0})['then'](function(){const _0x15408f=_0x22e048,_0x550d49=_[_0x15408f(0x11c)](_0x5e78d1['body'],function(_0x2db81f){const _0x2c9e9d=_0x15408f;return delete _0x2db81f['id'],_0x2db81f[_0x2c9e9d(0xe3)]=_0x5e78d1[_0x2c9e9d(0xfe)]['id'],_0x2db81f;});return db['Interval'][_0x15408f(0x114)](_0x550d49,{'transaction':_0x5651e0});});})['then'](function(){const _0x24e0af=_0x220a23;return db[_0x24e0af(0xe0)][_0x24e0af(0x113)]({'where':{'IntervalId':_0x5e78d1[_0x24e0af(0xfe)]['id']}});});})['then'](respondWithResult(_0x3a94fa,null))[_0x1a09f0(0x104)](handleError(_0x3a94fa,null));}; \ No newline at end of file diff --git a/server/api/interval/interval.model.js b/server/api/interval/interval.model.js index 8675c90..e02ea86 100644 --- a/server/api/interval/interval.model.js +++ b/server/api/interval/interval.model.js @@ -1 +1 @@ -const a368_0x104c=['./interval.attributes','tools_intervals','rewrite','exports','Interval','define'];(function(_0x147738,_0x104cea){const _0x2eadd3=function(_0x451352){while(--_0x451352){_0x147738['push'](_0x147738['shift']());}};_0x2eadd3(++_0x104cea);}(a368_0x104c,0x12e));const a368_0x2ead=function(_0x147738,_0x104cea){_0x147738=_0x147738-0x0;let _0x2eadd3=a368_0x104c[_0x147738];return _0x2eadd3;};const _0x1ae196=a368_0x2ead;'use strict';const attributes=require(_0x1ae196('0x4')),extensions=require('../../components/extensions/rewrite');module[_0x1ae196('0x1')]=function(_0x451352){const _0x7d5014=_0x1ae196,_0x3292f6=_0x451352[_0x7d5014('0x3')](_0x7d5014('0x2'),attributes,{'tableName':_0x7d5014('0x5'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'afterCreate':function(_0x3b44dd){const _0x2f234e=_0x7d5014;extensions[_0x2f234e('0x0')](_0x451352,_0x3b44dd);},'afterBulkCreate':function(_0x28e421){extensions['rewrite'](_0x451352,_0x28e421[0x0]);},'afterUpdate':function(_0x68c227){const _0x1afe03=_0x7d5014;extensions[_0x1afe03('0x0')](_0x451352,_0x68c227);},'afterDestroy':function(_0x326ce6){const _0x5d35a2=_0x7d5014;extensions[_0x5d35a2('0x0')](_0x451352,_0x326ce6);}}});return _0x3292f6;}; \ No newline at end of file +const a443_0x4d5e=['function','./interval.options','init','exports'];(function(_0x407c99,_0xf27603){const _0x4d5e84=function(_0x217c3f){while(--_0x217c3f){_0x407c99['push'](_0x407c99['shift']());}};_0x4d5e84(++_0xf27603);}(a443_0x4d5e,0x14f));const a443_0x217c=function(_0x407c99,_0xf27603){_0x407c99=_0x407c99-0x19d;let _0x4d5e84=a443_0x4d5e[_0x407c99];return _0x4d5e84;};const a443_0x4f55c2=a443_0x217c;'use strict';const {Model}=require('sequelize'),{attributes}=require('./interval.attributes'),{options}=require(a443_0x4f55c2(0x19f));class Interval extends Model{}function init(_0x67712a,_0x41e05e){const _0x38bd6c=a443_0x4f55c2,_0x34572a=options(_0x67712a),_0x40fecd=typeof _0x41e05e===_0x38bd6c(0x19e)?_0x41e05e(_0x34572a):_0x34572a;return Interval[_0x38bd6c(0x1a0)](attributes,_0x40fecd),Interval;}module['exports']['Interval']=Interval,module[a443_0x4f55c2(0x19d)][a443_0x4f55c2(0x1a0)]=init; \ No newline at end of file diff --git a/server/api/interval/interval.options.js b/server/api/interval/interval.options.js new file mode 100644 index 0000000..1672444 --- /dev/null +++ b/server/api/interval/interval.options.js @@ -0,0 +1 @@ +const a444_0x435b=['rewrite','../../components/extensions/rewrite','options'];(function(_0x49846a,_0x47b7cf){const _0x435b0d=function(_0x26e9e7){while(--_0x26e9e7){_0x49846a['push'](_0x49846a['shift']());}};_0x435b0d(++_0x47b7cf);}(a444_0x435b,0x15b));const a444_0x26e9=function(_0x49846a,_0x47b7cf){_0x49846a=_0x49846a-0x152;let _0x435b0d=a444_0x435b[_0x49846a];return _0x435b0d;};const a444_0x82b045=a444_0x26e9,extensions=require(a444_0x82b045(0x154));function options(_0x5e7c25){return{'sequelize':_0x5e7c25,'tableName':'tools_intervals','paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'afterCreate':function(_0x52f7cc){const _0x165cfd=a444_0x26e9;extensions[_0x165cfd(0x153)](_0x5e7c25,_0x52f7cc);},'afterBulkCreate':function(_0x31edad){extensions['rewrite'](_0x5e7c25,_0x31edad[0x0]);},'afterUpdate':function(_0x105bfc){const _0x1a2d6a=a444_0x26e9;extensions[_0x1a2d6a(0x153)](_0x5e7c25,_0x105bfc);},'afterDestroy':function(_0x355ab0){const _0x43c28b=a444_0x26e9;extensions[_0x43c28b(0x153)](_0x5e7c25,_0x355ab0);}}};}module['exports'][a444_0x82b045(0x152)]=options; \ No newline at end of file diff --git a/server/api/interval/interval.rpc.js b/server/api/interval/interval.rpc.js index 3a114db..86e559b 100644 --- a/server/api/interval/interval.rpc.js +++ b/server/api/interval/interval.rpc.js @@ -1 +1 @@ -const a369_0xd1e4=['ShowInterval','stringify','where','error','map','message','catch','lodash','findOne','rpc','then','debug','include','model','limit','Interval','attributes','raw','GetInterval','../../config/logger','options'];(function(_0x15411e,_0xd1e4e0){const _0xf73dc0=function(_0x5a1146){while(--_0x5a1146){_0x15411e['push'](_0x15411e['shift']());}};_0xf73dc0(++_0xd1e4e0);}(a369_0xd1e4,0xa7));const a369_0xf73d=function(_0x15411e,_0xd1e4e0){_0x15411e=_0x15411e-0x0;let _0xf73dc0=a369_0xd1e4[_0x15411e];return _0xf73dc0;};const _0x40c418=a369_0xf73d;'use strict';const _=require(_0x40c418('0x8')),db=require('../../mysqldb')['db'],logger=require(_0x40c418('0x14'))(_0x40c418('0xa'));exports[_0x40c418('0x13')]=function(_0x5a1146){const _0x7edbf2=this;return new Promise(function(_0x83bf33,_0x380b14){const _0x19d75f=a369_0xf73d;return db[_0x19d75f('0x10')]['findAll']({'raw':_0x5a1146[_0x19d75f('0x0')]?_0x5a1146['options'][_0x19d75f('0x12')]===undefined?!![]:![]:!![],'where':_0x5a1146['options']?_0x5a1146[_0x19d75f('0x0')][_0x19d75f('0x3')]||null:null,'attributes':_0x5a1146[_0x19d75f('0x0')]?_0x5a1146['options'][_0x19d75f('0x11')]||null:null,'limit':_0x5a1146[_0x19d75f('0x0')]?_0x5a1146[_0x19d75f('0x0')][_0x19d75f('0xf')]||null:null,'include':_0x5a1146[_0x19d75f('0x0')]?_0x5a1146['options'][_0x19d75f('0xd')]?_['map'](_0x5a1146['options'][_0x19d75f('0xd')],function(_0x6a139){const _0x3db01d=_0x19d75f;return{'model':db[_0x6a139[_0x3db01d('0xe')]],'as':_0x6a139['as'],'attributes':_0x6a139[_0x3db01d('0x11')],'include':_0x6a139['include']?_[_0x3db01d('0x5')](_0x6a139['include'],function(_0x3bf27b){const _0x5bb4f9=_0x3db01d;return{'model':db[_0x3bf27b[_0x5bb4f9('0xe')]],'as':_0x3bf27b['as'],'attributes':_0x3bf27b[_0x5bb4f9('0x11')],'include':_0x3bf27b[_0x5bb4f9('0xd')]?_[_0x5bb4f9('0x5')](_0x3bf27b['include'],function(_0x52520c){const _0x5f4ebc=_0x5bb4f9;return{'model':db[_0x52520c['model']],'as':_0x52520c['as'],'attributes':_0x52520c[_0x5f4ebc('0x11')]};}):[]};}):[]};}):[]:[]})[_0x19d75f('0xb')](function(_0x54d04a){const _0x50fcf8=_0x19d75f;logger['info'](_0x50fcf8('0x13'),_0x5a1146),logger[_0x50fcf8('0xc')]('GetInterval',_0x5a1146,JSON[_0x50fcf8('0x2')](_0x54d04a)),_0x83bf33(_0x54d04a);})[_0x19d75f('0x7')](function(_0x47669a){const _0x5d50e9=_0x19d75f;logger[_0x5d50e9('0x4')](_0x5d50e9('0x13'),_0x47669a[_0x5d50e9('0x6')],_0x5a1146),_0x380b14(_0x7edbf2[_0x5d50e9('0x4')](0x1f4,_0x47669a['message']));});});},exports[_0x40c418('0x1')]=function(_0x175ab5){const _0x3e681f=this;return new Promise(function(_0x22facf,_0x4898c7){const _0xf45f7e=a369_0xf73d;return db[_0xf45f7e('0x10')][_0xf45f7e('0x9')]({'raw':_0x175ab5['options']?_0x175ab5[_0xf45f7e('0x0')][_0xf45f7e('0x12')]===undefined?!![]:![]:!![],'where':_0x175ab5[_0xf45f7e('0x0')]?_0x175ab5[_0xf45f7e('0x0')][_0xf45f7e('0x3')]||null:null,'attributes':_0x175ab5['options']?_0x175ab5[_0xf45f7e('0x0')][_0xf45f7e('0x11')]||null:null,'include':_0x175ab5['options']?_0x175ab5[_0xf45f7e('0x0')][_0xf45f7e('0xd')]?_[_0xf45f7e('0x5')](_0x175ab5[_0xf45f7e('0x0')][_0xf45f7e('0xd')],function(_0x55a5fb){const _0x3cd6cc=_0xf45f7e;return{'model':db[_0x55a5fb[_0x3cd6cc('0xe')]],'as':_0x55a5fb['as'],'attributes':_0x55a5fb['attributes'],'include':_0x55a5fb[_0x3cd6cc('0xd')]?_[_0x3cd6cc('0x5')](_0x55a5fb[_0x3cd6cc('0xd')],function(_0x35ea40){const _0xd444f3=_0x3cd6cc;return{'model':db[_0x35ea40[_0xd444f3('0xe')]],'as':_0x35ea40['as'],'attributes':_0x35ea40[_0xd444f3('0x11')],'include':_0x35ea40[_0xd444f3('0xd')]?_[_0xd444f3('0x5')](_0x35ea40[_0xd444f3('0xd')],function(_0x324bce){const _0x8cf821=_0xd444f3;return{'model':db[_0x324bce[_0x8cf821('0xe')]],'as':_0x324bce['as'],'attributes':_0x324bce[_0x8cf821('0x11')]};}):[]};}):[]};}):[]:[]})[_0xf45f7e('0xb')](function(_0x2bd3cc){const _0x2e84b0=_0xf45f7e;logger['info'](_0x2e84b0('0x1'),_0x175ab5),logger[_0x2e84b0('0xc')](_0x2e84b0('0x1'),_0x175ab5,JSON['stringify'](_0x2bd3cc)),_0x22facf(_0x2bd3cc);})[_0xf45f7e('0x7')](function(_0x4ac262){const _0x56a46f=_0xf45f7e;logger['error'](_0x56a46f('0x1'),_0x4ac262[_0x56a46f('0x6')],_0x175ab5),_0x4898c7(_0x3e681f['error'](0x1f4,_0x4ac262['message']));});});}; \ No newline at end of file +const a445_0x2306=['info','map','findOne','message','options','catch','Interval','stringify','GetInterval','model','../../config/logger','include','where','rpc','debug','attributes','error','then','limit'];(function(_0x47da1a,_0x13df73){const _0x230679=function(_0x3b4738){while(--_0x3b4738){_0x47da1a['push'](_0x47da1a['shift']());}};_0x230679(++_0x13df73);}(a445_0x2306,0xa3));const a445_0x3b47=function(_0x47da1a,_0x13df73){_0x47da1a=_0x47da1a-0x19d;let _0x230679=a445_0x2306[_0x47da1a];return _0x230679;};const a445_0x2e358d=a445_0x3b47;'use strict';const _=require('lodash'),db=require('../../mysqldb')['db'],logger=require(a445_0x2e358d(0x1af))(a445_0x2e358d(0x19f));exports[a445_0x2e358d(0x1ad)]=function(_0x404813){const _0x1e7742=this;return new Promise(function(_0x5d3486,_0x1042b8){const _0x2717bb=a445_0x3b47;return db[_0x2717bb(0x1ab)]['findAll']({'raw':_0x404813['options']?_0x404813[_0x2717bb(0x1a9)]['raw']===undefined?!![]:![]:!![],'where':_0x404813[_0x2717bb(0x1a9)]?_0x404813['options'][_0x2717bb(0x19e)]||null:null,'attributes':_0x404813[_0x2717bb(0x1a9)]?_0x404813[_0x2717bb(0x1a9)][_0x2717bb(0x1a1)]||null:null,'limit':_0x404813[_0x2717bb(0x1a9)]?_0x404813[_0x2717bb(0x1a9)][_0x2717bb(0x1a4)]||null:null,'include':_0x404813['options']?_0x404813['options'][_0x2717bb(0x19d)]?_[_0x2717bb(0x1a6)](_0x404813[_0x2717bb(0x1a9)][_0x2717bb(0x19d)],function(_0x537163){const _0x21cbdd=_0x2717bb;return{'model':db[_0x537163[_0x21cbdd(0x1ae)]],'as':_0x537163['as'],'attributes':_0x537163[_0x21cbdd(0x1a1)],'include':_0x537163[_0x21cbdd(0x19d)]?_[_0x21cbdd(0x1a6)](_0x537163[_0x21cbdd(0x19d)],function(_0x52d5d2){const _0x27ae76=_0x21cbdd;return{'model':db[_0x52d5d2[_0x27ae76(0x1ae)]],'as':_0x52d5d2['as'],'attributes':_0x52d5d2[_0x27ae76(0x1a1)],'include':_0x52d5d2[_0x27ae76(0x19d)]?_[_0x27ae76(0x1a6)](_0x52d5d2[_0x27ae76(0x19d)],function(_0x188378){const _0x109cbb=_0x27ae76;return{'model':db[_0x188378['model']],'as':_0x188378['as'],'attributes':_0x188378[_0x109cbb(0x1a1)]};}):[]};}):[]};}):[]:[]})[_0x2717bb(0x1a3)](function(_0xdcba52){const _0x1158c0=_0x2717bb;logger['info'](_0x1158c0(0x1ad),_0x404813),logger['debug']('GetInterval',_0x404813,JSON[_0x1158c0(0x1ac)](_0xdcba52)),_0x5d3486(_0xdcba52);})[_0x2717bb(0x1aa)](function(_0x54c512){const _0x1c3f12=_0x2717bb;logger['error'](_0x1c3f12(0x1ad),_0x54c512[_0x1c3f12(0x1a8)],_0x404813),_0x1042b8(_0x1e7742[_0x1c3f12(0x1a2)](0x1f4,_0x54c512['message']));});});},exports['ShowInterval']=function(_0x5cf3e7){const _0x55d5b0=this;return new Promise(function(_0xfdcd82,_0x389467){const _0x18886d=a445_0x3b47;return db['Interval'][_0x18886d(0x1a7)]({'raw':_0x5cf3e7[_0x18886d(0x1a9)]?_0x5cf3e7['options']['raw']===undefined?!![]:![]:!![],'where':_0x5cf3e7['options']?_0x5cf3e7['options'][_0x18886d(0x19e)]||null:null,'attributes':_0x5cf3e7[_0x18886d(0x1a9)]?_0x5cf3e7['options']['attributes']||null:null,'include':_0x5cf3e7[_0x18886d(0x1a9)]?_0x5cf3e7['options'][_0x18886d(0x19d)]?_[_0x18886d(0x1a6)](_0x5cf3e7[_0x18886d(0x1a9)][_0x18886d(0x19d)],function(_0x5c7607){const _0x39bbcb=_0x18886d;return{'model':db[_0x5c7607[_0x39bbcb(0x1ae)]],'as':_0x5c7607['as'],'attributes':_0x5c7607['attributes'],'include':_0x5c7607['include']?_[_0x39bbcb(0x1a6)](_0x5c7607[_0x39bbcb(0x19d)],function(_0x2126ab){const _0x1d9163=_0x39bbcb;return{'model':db[_0x2126ab[_0x1d9163(0x1ae)]],'as':_0x2126ab['as'],'attributes':_0x2126ab[_0x1d9163(0x1a1)],'include':_0x2126ab[_0x1d9163(0x19d)]?_[_0x1d9163(0x1a6)](_0x2126ab[_0x1d9163(0x19d)],function(_0x3b2d7d){const _0x4e1909=_0x1d9163;return{'model':db[_0x3b2d7d[_0x4e1909(0x1ae)]],'as':_0x3b2d7d['as'],'attributes':_0x3b2d7d[_0x4e1909(0x1a1)]};}):[]};}):[]};}):[]:[]})['then'](function(_0xc74d9e){const _0x3e0f39=_0x18886d;logger[_0x3e0f39(0x1a5)]('ShowInterval',_0x5cf3e7),logger[_0x3e0f39(0x1a0)]('ShowInterval',_0x5cf3e7,JSON['stringify'](_0xc74d9e)),_0xfdcd82(_0xc74d9e);})[_0x18886d(0x1aa)](function(_0x15e2df){const _0x4da5a2=_0x18886d;logger['error']('ShowInterval',_0x15e2df[_0x4da5a2(0x1a8)],_0x5cf3e7),_0x389467(_0x55d5b0[_0x4da5a2(0x1a2)](0x1f4,_0x15e2df[_0x4da5a2(0x1a8)]));});});}; \ No newline at end of file diff --git a/server/api/jira/index.js b/server/api/jira/index.js index 2a75f56..e5631e9 100644 --- a/server/api/jira/index.js +++ b/server/api/jira/index.js @@ -1 +1 @@ -const a370_0xd5d0=['send','Router','./jira.controller','../../components/auth/service','exports','isAuthenticated','express'];(function(_0x57cc2b,_0xd5d031){const _0xf9ccbf=function(_0x3bce7d){while(--_0x3bce7d){_0x57cc2b['push'](_0x57cc2b['shift']());}};_0xf9ccbf(++_0xd5d031);}(a370_0xd5d0,0x1f4));const a370_0xf9cc=function(_0x57cc2b,_0xd5d031){_0x57cc2b=_0x57cc2b-0x0;let _0xf9ccbf=a370_0xd5d0[_0x57cc2b];return _0xf9ccbf;};const _0x22138c=a370_0xf9cc;'use strict';const express=require(_0x22138c('0x3')),router=express[_0x22138c('0x5')](),auth=require(_0x22138c('0x0')),controller=require(_0x22138c('0x6'));router['post']('/',auth[_0x22138c('0x2')](),controller[_0x22138c('0x4')]),module[_0x22138c('0x1')]=router; \ No newline at end of file +const a446_0x14e8=['../../components/auth/service','express','post','./jira.controller'];(function(_0x3926e5,_0x177463){const _0x14e8e5=function(_0x42feeb){while(--_0x42feeb){_0x3926e5['push'](_0x3926e5['shift']());}};_0x14e8e5(++_0x177463);}(a446_0x14e8,0x93));const a446_0x42fe=function(_0x3926e5,_0x177463){_0x3926e5=_0x3926e5-0x182;let _0x14e8e5=a446_0x14e8[_0x3926e5];return _0x14e8e5;};const a446_0x33e3bc=a446_0x42fe;'use strict';const express=require(a446_0x33e3bc(0x184)),router=express['Router'](),auth=require(a446_0x33e3bc(0x183)),controller=require(a446_0x33e3bc(0x182));router[a446_0x33e3bc(0x185)]('/',auth['isAuthenticated'](),controller['send']),module['exports']=router; \ No newline at end of file diff --git a/server/api/jira/jira.controller.js b/server/api/jira/jira.controller.js index 5b5b4a6..3473ec4 100644 --- a/server/api/jira/jira.controller.js +++ b/server/api/jira/jira.controller.js @@ -1 +1 @@ -const a371_0x1d9a=['customfield_11502','POST','send','socket','reason','Error\x20during\x20license\x20request.\x20Please\x20contact\x20our\x20license\x20team\x20at\x20license@xcally.com\x20with\x20your\x20request','write','from','email','body','json','name','Bug','remoteAddress','oldToken','customfield_11501','description','statusCode','newToken','api.jira','request','data','stringify','openIssue','connection','parse','end','MOTGUI','\x20from\x20','track.xcallymotion.com','summary','customfield_11500','fields','setEncoding','status','toString','customfield_10102','x-forwarded-for'];(function(_0x5ab53f,_0x1d9afc){const _0x3aed67=function(_0x1b7f83){while(--_0x1b7f83){_0x5ab53f['push'](_0x5ab53f['shift']());}};_0x3aed67(++_0x1d9afc);}(a371_0x1d9a,0x182));const a371_0x3aed=function(_0x5ab53f,_0x1d9afc){_0x5ab53f=_0x5ab53f-0x0;let _0x3aed67=a371_0x1d9a[_0x5ab53f];return _0x3aed67;};const _0x50a3ce=a371_0x3aed;'use strict';const https=require('https'),USERNAME='support',PASSWORD='3eAmWpBVP0';function openIssue(_0x1b7f83,_0x337ed8){const _0x70111b=a371_0x3aed,_0x21b3fa={'fields':{'project':{'key':_0x1b7f83['key']||_0x70111b('0x15')},'summary':(_0x1b7f83[_0x70111b('0x18')]||'Report')+_0x70111b('0x16')+_0x1b7f83['ip'],'description':_0x1b7f83[_0x70111b('0xa')]||JSON['stringify'](_0x1b7f83),'issuetype':{'name':_0x1b7f83['issuetype']||_0x70111b('0x6')}}};_0x21b3fa['fields'][_0x70111b('0x19')]=_0x1b7f83[_0x70111b('0x2')],_0x21b3fa[_0x70111b('0x1a')][_0x70111b('0x9')]=_0x1b7f83[_0x70111b('0x8')],_0x21b3fa['fields'][_0x70111b('0x20')]=_0x1b7f83[_0x70111b('0xc')],_0x21b3fa[_0x70111b('0x1a')]['customfield_11503']=_0x1b7f83[_0x70111b('0x5')],_0x21b3fa[_0x70111b('0x1a')]['customfield_11504']=_0x1b7f83[_0x70111b('0x24')],_0x21b3fa['fields'][_0x70111b('0x1e')]=_0x1b7f83['ip'];const _0x1a9d69={'host':_0x70111b('0x17'),'port':0x1bb,'path':'/rest/api/2/issue','method':_0x70111b('0x21'),'timeout':0x4e20,'headers':{'Content-Type':'application/json','Authorization':'Basic\x20'+Buffer[_0x70111b('0x1')](USERNAME+':'+PASSWORD)[_0x70111b('0x1d')]('base64')}},_0x1d602a=JSON[_0x70111b('0x10')](_0x21b3fa),_0x151fab=https[_0x70111b('0xe')](_0x1a9d69,function(_0x18cea6){const _0x14ea6a=_0x70111b;_0x18cea6[_0x14ea6a('0x1b')]('utf8');let _0x23b48d='';_0x18cea6['on'](_0x14ea6a('0xf'),function(_0x27b22f){_0x23b48d+=_0x27b22f;}),_0x18cea6['on'](_0x14ea6a('0x14'),function(){const _0x59a578=_0x14ea6a;if(_0x337ed8)return _0x337ed8[_0x59a578('0x1c')](_0x18cea6[_0x59a578('0xb')])[_0x59a578('0x4')](JSON[_0x59a578('0x13')](_0x23b48d));});});_0x151fab['on']('error',function(){const _0x3c3f1f=_0x70111b;if(_0x337ed8)return _0x337ed8[_0x3c3f1f('0x1c')](0x1f4)[_0x3c3f1f('0x4')]({'errors':[{'message':_0x3c3f1f('0x25'),'type':_0x3c3f1f('0xd')}]});}),_0x151fab[_0x70111b('0x0')](_0x1d602a),_0x151fab[_0x70111b('0x14')]();}exports[_0x50a3ce('0x11')]=openIssue,exports[_0x50a3ce('0x22')]=function(_0x229bb9,_0x53a3eb){const _0x234c93=_0x50a3ce;return _0x229bb9[_0x234c93('0x3')]['ip']=_0x229bb9['headers'][_0x234c93('0x1f')]||_0x229bb9[_0x234c93('0x12')][_0x234c93('0x7')]||_0x229bb9[_0x234c93('0x23')][_0x234c93('0x7')]||_0x229bb9[_0x234c93('0x12')][_0x234c93('0x23')][_0x234c93('0x7')],openIssue(_0x229bb9[_0x234c93('0x3')],_0x53a3eb);}; \ No newline at end of file +const a447_0x2d3e=['setEncoding','name','socket','customfield_10102','fields','/rest/api/2/issue','end','email','parse','customfield_11503','stringify','json','Error\x20during\x20license\x20request.\x20Please\x20contact\x20our\x20license\x20team\x20at\x20license@xcally.com\x20with\x20your\x20request','body','base64','POST','error','openIssue','send','MOTGUI','x-forwarded-for','customfield_11501','newToken','api.jira','\x20from\x20','status','description','key','Bug','issuetype','3eAmWpBVP0','connection','track.xcallymotion.com','remoteAddress','oldToken','from','application/json','toString','utf8'];(function(_0x4d398c,_0x4e70e3){const _0x2d3ee8=function(_0x432064){while(--_0x432064){_0x4d398c['push'](_0x4d398c['shift']());}};_0x2d3ee8(++_0x4e70e3);}(a447_0x2d3e,0x10d));const a447_0x4320=function(_0x4d398c,_0x4e70e3){_0x4d398c=_0x4d398c-0x109;let _0x2d3ee8=a447_0x2d3e[_0x4d398c];return _0x2d3ee8;};const a447_0x2f5626=a447_0x4320;'use strict';const https=require('https'),USERNAME='support',PASSWORD=a447_0x2f5626(0x12b);function openIssue(_0x541069,_0x447aef){const _0x26d2c5=a447_0x2f5626,_0x16fb35={'fields':{'project':{'key':_0x541069[_0x26d2c5(0x128)]||_0x26d2c5(0x120)},'summary':(_0x541069['summary']||'Report')+_0x26d2c5(0x125)+_0x541069['ip'],'description':_0x541069[_0x26d2c5(0x127)]||JSON[_0x26d2c5(0x117)](_0x541069),'issuetype':{'name':_0x541069[_0x26d2c5(0x12a)]||_0x26d2c5(0x129)}}};_0x16fb35[_0x26d2c5(0x111)]['customfield_11500']=_0x541069[_0x26d2c5(0x114)],_0x16fb35[_0x26d2c5(0x111)][_0x26d2c5(0x122)]=_0x541069[_0x26d2c5(0x12f)],_0x16fb35[_0x26d2c5(0x111)]['customfield_11502']=_0x541069[_0x26d2c5(0x123)],_0x16fb35[_0x26d2c5(0x111)][_0x26d2c5(0x116)]=_0x541069[_0x26d2c5(0x10e)],_0x16fb35[_0x26d2c5(0x111)]['customfield_11504']=_0x541069['reason'],_0x16fb35['fields'][_0x26d2c5(0x110)]=_0x541069['ip'];const _0x4f5eed={'host':_0x26d2c5(0x12d),'port':0x1bb,'path':_0x26d2c5(0x112),'method':_0x26d2c5(0x11c),'timeout':0x4e20,'headers':{'Content-Type':_0x26d2c5(0x10a),'Authorization':'Basic\x20'+Buffer[_0x26d2c5(0x109)](USERNAME+':'+PASSWORD)[_0x26d2c5(0x10b)](_0x26d2c5(0x11b))}},_0x22c52f=JSON[_0x26d2c5(0x117)](_0x16fb35),_0x1f5eef=https['request'](_0x4f5eed,function(_0x3a8868){const _0x8dd1d1=_0x26d2c5;_0x3a8868[_0x8dd1d1(0x10d)](_0x8dd1d1(0x10c));let _0x46765b='';_0x3a8868['on']('data',function(_0x4285c4){_0x46765b+=_0x4285c4;}),_0x3a8868['on'](_0x8dd1d1(0x113),function(){const _0x3dd6ed=_0x8dd1d1;if(_0x447aef)return _0x447aef[_0x3dd6ed(0x126)](_0x3a8868['statusCode'])[_0x3dd6ed(0x118)](JSON[_0x3dd6ed(0x115)](_0x46765b));});});_0x1f5eef['on'](_0x26d2c5(0x11d),function(){const _0x5a1757=_0x26d2c5;if(_0x447aef)return _0x447aef[_0x5a1757(0x126)](0x1f4)[_0x5a1757(0x118)]({'errors':[{'message':_0x5a1757(0x119),'type':_0x5a1757(0x124)}]});}),_0x1f5eef['write'](_0x22c52f),_0x1f5eef[_0x26d2c5(0x113)]();}exports[a447_0x2f5626(0x11e)]=openIssue,exports[a447_0x2f5626(0x11f)]=function(_0x22068b,_0x3d4d57){const _0x47c768=a447_0x2f5626;return _0x22068b[_0x47c768(0x11a)]['ip']=_0x22068b['headers'][_0x47c768(0x121)]||_0x22068b[_0x47c768(0x12c)][_0x47c768(0x12e)]||_0x22068b['socket'][_0x47c768(0x12e)]||_0x22068b[_0x47c768(0x12c)][_0x47c768(0x10f)][_0x47c768(0x12e)],openIssue(_0x22068b[_0x47c768(0x11a)],_0x3d4d57);}; \ No newline at end of file diff --git a/server/api/jscriptyAnswerReport/index.js b/server/api/jscriptyAnswerReport/index.js index f3c42de..10215be 100644 --- a/server/api/jscriptyAnswerReport/index.js +++ b/server/api/jscriptyAnswerReport/index.js @@ -1 +1 @@ -const a372_0xf332=['exports','express','./jscriptyAnswerReport.controller','/:id','delete','Router','isAuthenticated','create','show','destroy','get'];(function(_0x29a4cf,_0xf3327f){const _0x15cd9f=function(_0x459a42){while(--_0x459a42){_0x29a4cf['push'](_0x29a4cf['shift']());}};_0x15cd9f(++_0xf3327f);}(a372_0xf332,0xe1));const a372_0x15cd=function(_0x29a4cf,_0xf3327f){_0x29a4cf=_0x29a4cf-0x0;let _0x15cd9f=a372_0xf332[_0x29a4cf];return _0x15cd9f;};const _0x47ddc7=a372_0x15cd;'use strict';const express=require(_0x47ddc7('0x7')),router=express[_0x47ddc7('0x0')](),auth=require('../../components/auth/service'),controller=require(_0x47ddc7('0x8'));router[_0x47ddc7('0x5')]('/',auth[_0x47ddc7('0x1')](),controller['index']),router['get']('/describe',auth['isAuthenticated'](),controller['describe']),router[_0x47ddc7('0x5')](_0x47ddc7('0x9'),auth['isAuthenticated'](),controller[_0x47ddc7('0x3')]),router['post']('/',auth[_0x47ddc7('0x1')](),controller[_0x47ddc7('0x2')]),router['put'](_0x47ddc7('0x9'),auth[_0x47ddc7('0x1')](),controller['update']),router[_0x47ddc7('0xa')](_0x47ddc7('0x9'),auth[_0x47ddc7('0x1')](),controller[_0x47ddc7('0x4')]),module[_0x47ddc7('0x6')]=router; \ No newline at end of file +const a448_0x19ec=['create','show','Router','get','post','../../components/auth/service','put','index','./jscriptyAnswerReport.controller','destroy','update','delete','express','/:id','isAuthenticated'];(function(_0x250105,_0x208c1e){const _0x19ecb2=function(_0x4823a6){while(--_0x4823a6){_0x250105['push'](_0x250105['shift']());}};_0x19ecb2(++_0x208c1e);}(a448_0x19ec,0x1d6));const a448_0x4823=function(_0x250105,_0x208c1e){_0x250105=_0x250105-0x11b;let _0x19ecb2=a448_0x19ec[_0x250105];return _0x19ecb2;};const a448_0x3b7c9c=a448_0x4823;'use strict';const express=require(a448_0x3b7c9c(0x122)),router=express[a448_0x3b7c9c(0x127)](),auth=require(a448_0x3b7c9c(0x11b)),controller=require(a448_0x3b7c9c(0x11e));router[a448_0x3b7c9c(0x128)]('/',auth[a448_0x3b7c9c(0x124)](),controller[a448_0x3b7c9c(0x11d)]),router['get']('/describe',auth[a448_0x3b7c9c(0x124)](),controller['describe']),router['get'](a448_0x3b7c9c(0x123),auth[a448_0x3b7c9c(0x124)](),controller[a448_0x3b7c9c(0x126)]),router[a448_0x3b7c9c(0x129)]('/',auth[a448_0x3b7c9c(0x124)](),controller[a448_0x3b7c9c(0x125)]),router[a448_0x3b7c9c(0x11c)](a448_0x3b7c9c(0x123),auth[a448_0x3b7c9c(0x124)](),controller[a448_0x3b7c9c(0x120)]),router[a448_0x3b7c9c(0x121)](a448_0x3b7c9c(0x123),auth[a448_0x3b7c9c(0x124)](),controller[a448_0x3b7c9c(0x11f)]),module['exports']=router; \ No newline at end of file diff --git a/server/api/jscriptyAnswerReport/jscriptyAnswerReport.attributes.js b/server/api/jscriptyAnswerReport/jscriptyAnswerReport.attributes.js index 2c94f80..68b1320 100644 --- a/server/api/jscriptyAnswerReport/jscriptyAnswerReport.attributes.js +++ b/server/api/jscriptyAnswerReport/jscriptyAnswerReport.attributes.js @@ -1 +1 @@ -const a373_0x10fb=['STRING','exports','long','TEXT'];(function(_0xa8655a,_0x10fb48){const _0x5cd3ab=function(_0x5b08e5){while(--_0x5b08e5){_0xa8655a['push'](_0xa8655a['shift']());}};_0x5cd3ab(++_0x10fb48);}(a373_0x10fb,0x97));const a373_0x5cd3=function(_0xa8655a,_0x10fb48){_0xa8655a=_0xa8655a-0x0;let _0x5cd3ab=a373_0x10fb[_0xa8655a];return _0x5cd3ab;};const _0x4f959e=a373_0x5cd3;'use strict';const Sequelize=require('sequelize');module[_0x4f959e('0x2')]={'question':{'type':Sequelize['STRING']},'answer':{'type':Sequelize[_0x4f959e('0x0')](_0x4f959e('0x3'))},'membername':{'type':Sequelize[_0x4f959e('0x1')]},'projectname':{'type':Sequelize[_0x4f959e('0x1')]},'queue':{'type':Sequelize[_0x4f959e('0x1')]},'uniqueid':{'type':Sequelize[_0x4f959e('0x1')]},'calleridname':{'type':Sequelize[_0x4f959e('0x1')]},'calleridnum':{'type':Sequelize[_0x4f959e('0x1')]},'questionId':{'type':Sequelize[_0x4f959e('0x1')]}}; \ No newline at end of file +const a449_0x1b39=['attributes','long','STRING','sequelize','TEXT'];(function(_0x114b2e,_0x4bc8a8){const _0x1b399c=function(_0x1daf33){while(--_0x1daf33){_0x114b2e['push'](_0x114b2e['shift']());}};_0x1b399c(++_0x4bc8a8);}(a449_0x1b39,0x170));const a449_0x1daf=function(_0x114b2e,_0x4bc8a8){_0x114b2e=_0x114b2e-0x106;let _0x1b399c=a449_0x1b39[_0x114b2e];return _0x1b399c;};const a449_0x2b60f4=a449_0x1daf;'use strict';const {DataTypes}=require(a449_0x2b60f4(0x106)),attributes={'question':{'type':DataTypes[a449_0x2b60f4(0x10a)]},'answer':{'type':DataTypes[a449_0x2b60f4(0x107)]({'length':a449_0x2b60f4(0x109)})},'membername':{'type':DataTypes[a449_0x2b60f4(0x10a)]},'projectname':{'type':DataTypes[a449_0x2b60f4(0x10a)]},'queue':{'type':DataTypes[a449_0x2b60f4(0x10a)]},'uniqueid':{'type':DataTypes['STRING']},'calleridname':{'type':DataTypes['STRING']},'calleridnum':{'type':DataTypes[a449_0x2b60f4(0x10a)]},'questionId':{'type':DataTypes[a449_0x2b60f4(0x10a)]}};module['exports'][a449_0x2b60f4(0x108)]=attributes; \ No newline at end of file diff --git a/server/api/jscriptyAnswerReport/jscriptyAnswerReport.controller.js b/server/api/jscriptyAnswerReport/jscriptyAnswerReport.controller.js index 6dd1705..ffe0e92 100644 --- a/server/api/jscriptyAnswerReport/jscriptyAnswerReport.controller.js +++ b/server/api/jscriptyAnswerReport/jscriptyAnswerReport.controller.js @@ -1 +1 @@ -const a374_0x1a0e=['body','keys','sendStatus','count','send','status','show','JscriptyAnswerReport','stack','rawAttributes','attributes','lodash','json','length','name','findAll','intersection','index','api','then','filters','limit','VIRTUAL','query','set','catch','include','Content-Range','where','fields','fieldName','options','type','includeAll','order','pick','like','destroy','update','filter','undefined','offset','../../mysqldb','../../components/parsers/qs','model','params','describe','merge','sequelize','../../config/logger','nolimit','map','findOne'];(function(_0x266848,_0x1a0e21){const _0x505583=function(_0x3835e6){while(--_0x3835e6){_0x266848['push'](_0x266848['shift']());}};_0x505583(++_0x1a0e21);}(a374_0x1a0e,0x11d));const a374_0x5055=function(_0x266848,_0x1a0e21){_0x266848=_0x266848-0x0;let _0x505583=a374_0x1a0e[_0x266848];return _0x505583;};const _0x5d1424=a374_0x5055;'use strict';const _=require(_0x5d1424('0x2c')),qs=require(_0x5d1424('0x17')),logger=require(_0x5d1424('0x1d'))(_0x5d1424('0x33')),db=require(_0x5d1424('0x16'))['db'],{Op}=require(_0x5d1424('0x1c'));function respondWithResult(_0x3835e6,_0x497386){return _0x497386=_0x497386||0xc8,function(_0x94687d){const _0x25f10c=a374_0x5055;if(_0x94687d)return _0x3835e6['status'](_0x497386)[_0x25f10c('0x2d')](_0x94687d);};}function respondWithFilteredResult(_0x41e762,_0x32b0a8){return function(_0xd54d53){const _0x5089e4=a374_0x5055;if(_0xd54d53){const _0x39a055=_0xd54d53['count'],_0x144d64=_0x32b0a8['offset'];let _0x3786cd=_0x32b0a8[_0x5089e4('0x15')]+_0x32b0a8['limit'],_0x59cd0e;return _0x3786cd>=_0x39a055?(_0x3786cd=_0x39a055,_0x59cd0e=0xc8):_0x59cd0e=0xce,_0x41e762['status'](_0x59cd0e),_0x41e762[_0x5089e4('0x4')](_0x5089e4('0x7'),_0x144d64+'-'+_0x3786cd+'/'+_0x39a055)['json'](_0xd54d53);}return null;};}function saveUpdates(_0xee84df){return function(_0x2b3766){const _0x46c295=a374_0x5055;if(_0x2b3766)return _0x2b3766[_0x46c295('0x12')](_0xee84df)[_0x46c295('0x34')](function(_0x267b0d){return _0x267b0d;});return null;};}function removeEntity(_0x67d0e3){return function(_0x4bd88a){const _0x498404=a374_0x5055;if(_0x4bd88a)return _0x4bd88a['destroy']()[_0x498404('0x34')](function(){_0x67d0e3['status'](0xcc)['end']();});};}function handleEntityNotFound(_0x121810){return function(_0x49d7dd){const _0x269b5d=a374_0x5055;return!_0x49d7dd&&_0x121810[_0x269b5d('0x23')](0x194),_0x49d7dd;};}function handleError(_0x79f581,_0x12bf96){return _0x12bf96=_0x12bf96||0x1f4,function(_0x1104cb){const _0x1412ad=a374_0x5055;logger['error'](_0x1104cb[_0x1412ad('0x29')]),_0x1104cb[_0x1412ad('0x2f')]&&delete _0x1104cb['name'],_0x79f581[_0x1412ad('0x26')](_0x12bf96)[_0x1412ad('0x25')](_0x1104cb);};}exports[_0x5d1424('0x32')]=function(_0x4f0e32,_0x17da29){const _0x10a6bc=_0x5d1424;let _0x2592c5={};const _0x2315ef={},_0x1ac540={'count':0x0,'rows':[]},_0x4a782c=_[_0x10a6bc('0x1f')](db[_0x10a6bc('0x28')][_0x10a6bc('0x2a')],function(_0x580f4e){const _0x2ad844=_0x10a6bc;return{'name':_0x580f4e[_0x2ad844('0xa')],'type':_0x580f4e[_0x2ad844('0xc')]['key']};});_0x2315ef[_0x10a6bc('0x18')]=_[_0x10a6bc('0x1f')](_0x4a782c,_0x10a6bc('0x2f')),_0x2315ef[_0x10a6bc('0x3')]=_['keys'](_0x4f0e32['query']),_0x2315ef[_0x10a6bc('0x0')]=_[_0x10a6bc('0x31')](_0x2315ef[_0x10a6bc('0x18')],_0x2315ef[_0x10a6bc('0x3')]),_0x2592c5['attributes']=_[_0x10a6bc('0x31')](_0x2315ef[_0x10a6bc('0x18')],qs[_0x10a6bc('0x9')](_0x4f0e32[_0x10a6bc('0x3')][_0x10a6bc('0x9')])),_0x2592c5[_0x10a6bc('0x2b')]=_0x2592c5[_0x10a6bc('0x2b')]['length']?_0x2592c5['attributes']:_0x2315ef['model'];typeof _0x4f0e32[_0x10a6bc('0x3')][_0x10a6bc('0x1e')]===_0x10a6bc('0x14')&&(_0x2592c5['limit']=qs['limit'](_0x4f0e32[_0x10a6bc('0x3')][_0x10a6bc('0x1')]),_0x2592c5[_0x10a6bc('0x15')]=qs[_0x10a6bc('0x15')](_0x4f0e32[_0x10a6bc('0x3')]['offset']));_0x2592c5[_0x10a6bc('0xe')]=qs['sort'](_0x4f0e32[_0x10a6bc('0x3')]['sort']),_0x2592c5[_0x10a6bc('0x8')]=qs[_0x10a6bc('0x0')](_[_0x10a6bc('0xf')](_0x4f0e32[_0x10a6bc('0x3')],_0x2315ef[_0x10a6bc('0x0')]),_0x4a782c);_0x4f0e32[_0x10a6bc('0x3')][_0x10a6bc('0x13')]&&(_0x2592c5['where']=_['merge'](_0x2592c5[_0x10a6bc('0x8')],{[Op['or']]:_['map'](_0x4a782c,function(_0x1c95a9){const _0x512725=_0x10a6bc;if(_0x1c95a9[_0x512725('0xc')]!==_0x512725('0x2')){const _0x46b39e={};return _0x46b39e[_0x1c95a9[_0x512725('0x2f')]]={[Op[_0x512725('0x10')]]:'%'+_0x4f0e32['query'][_0x512725('0x13')]+'%'},_0x46b39e;}})}));_0x2592c5=_[_0x10a6bc('0x1b')]({},_0x2592c5,_0x4f0e32[_0x10a6bc('0xb')]);const _0x2789c7={'where':_0x2592c5[_0x10a6bc('0x8')]};return db[_0x10a6bc('0x28')][_0x10a6bc('0x24')](_0x2789c7)[_0x10a6bc('0x34')](function(_0x77ee09){const _0x34720d=_0x10a6bc;return _0x1ac540[_0x34720d('0x24')]=_0x77ee09,_0x4f0e32[_0x34720d('0x3')][_0x34720d('0xd')]&&(_0x2592c5[_0x34720d('0x6')]=[{'all':!![]}]),db[_0x34720d('0x28')][_0x34720d('0x30')](_0x2592c5);})[_0x10a6bc('0x34')](function(_0x1fe027){return _0x1ac540['rows']=_0x1fe027,_0x1ac540;})[_0x10a6bc('0x34')](respondWithFilteredResult(_0x17da29,_0x2592c5))['catch'](handleError(_0x17da29,null));},exports[_0x5d1424('0x27')]=function(_0x1358dc,_0x472d1d){const _0x8e6b78=_0x5d1424;let _0x1945ad={'raw':!![],'where':{'id':_0x1358dc['params']['id']}};const _0x6b27ba={};return _0x6b27ba[_0x8e6b78('0x18')]=_[_0x8e6b78('0x22')](db[_0x8e6b78('0x28')][_0x8e6b78('0x2a')]),_0x6b27ba[_0x8e6b78('0x3')]=_[_0x8e6b78('0x22')](_0x1358dc[_0x8e6b78('0x3')]),_0x6b27ba[_0x8e6b78('0x0')]=_['intersection'](_0x6b27ba[_0x8e6b78('0x18')],_0x6b27ba['query']),_0x1945ad[_0x8e6b78('0x2b')]=_[_0x8e6b78('0x31')](_0x6b27ba[_0x8e6b78('0x18')],qs['fields'](_0x1358dc[_0x8e6b78('0x3')]['fields'])),_0x1945ad[_0x8e6b78('0x2b')]=_0x1945ad['attributes'][_0x8e6b78('0x2e')]?_0x1945ad[_0x8e6b78('0x2b')]:_0x6b27ba[_0x8e6b78('0x18')],_0x1358dc['query'][_0x8e6b78('0xd')]&&(_0x1945ad[_0x8e6b78('0x6')]=[{'all':!![]}]),_0x1945ad=_[_0x8e6b78('0x1b')]({},_0x1945ad,_0x1358dc[_0x8e6b78('0xb')]),db[_0x8e6b78('0x28')][_0x8e6b78('0x20')](_0x1945ad)[_0x8e6b78('0x34')](handleEntityNotFound(_0x472d1d,null))['then'](respondWithResult(_0x472d1d,null))['catch'](handleError(_0x472d1d,null));},exports['create']=function(_0x4dd37a,_0x523323){const _0x9699be=_0x5d1424;return db['JscriptyAnswerReport']['create'](_0x4dd37a['body'],{})[_0x9699be('0x34')](respondWithResult(_0x523323,0xc9))[_0x9699be('0x5')](handleError(_0x523323,null));},exports[_0x5d1424('0x12')]=function(_0x312648,_0x16b06d){const _0x3c50f7=_0x5d1424;return _0x312648[_0x3c50f7('0x21')]['id']&&delete _0x312648[_0x3c50f7('0x21')]['id'],db[_0x3c50f7('0x28')][_0x3c50f7('0x20')]({'where':{'id':_0x312648[_0x3c50f7('0x19')]['id']}})[_0x3c50f7('0x34')](handleEntityNotFound(_0x16b06d,null))['then'](saveUpdates(_0x312648[_0x3c50f7('0x21')],null))[_0x3c50f7('0x34')](respondWithResult(_0x16b06d,null))[_0x3c50f7('0x5')](handleError(_0x16b06d,null));},exports[_0x5d1424('0x11')]=function(_0xb344d5,_0x35f024){const _0x18c36d=_0x5d1424;return db[_0x18c36d('0x28')][_0x18c36d('0x20')]({'where':{'id':_0xb344d5['params']['id']}})['then'](handleEntityNotFound(_0x35f024,null))[_0x18c36d('0x34')](removeEntity(_0x35f024,null))['catch'](handleError(_0x35f024,null));},exports[_0x5d1424('0x1a')]=function(_0x8e1238,_0x4c37a8){const _0x5c1073=_0x5d1424;return db[_0x5c1073('0x28')][_0x5c1073('0x1a')]()[_0x5c1073('0x34')](respondWithResult(_0x4c37a8,null))[_0x5c1073('0x5')](handleError(_0x4c37a8,null));}; \ No newline at end of file +const a450_0x2e01=['options','merge','error','params','stack','map','create','fields','keys','lodash','catch','includeAll','limit','sendStatus','count','status','rows','offset','findAll','../../mysqldb','destroy','length','update','json','then','sequelize','filter','Content-Range','end','where','../../config/logger','body','attributes','nolimit','rawAttributes','order','like','name','intersection','pick','undefined','include','api','JscriptyAnswerReport','model','send','filters','query','findOne','sort','index'];(function(_0x58358,_0x58b965){const _0x2e01fa=function(_0x401557){while(--_0x401557){_0x58358['push'](_0x58358['shift']());}};_0x2e01fa(++_0x58b965);}(a450_0x2e01,0x18c));const a450_0x4015=function(_0x58358,_0x58b965){_0x58358=_0x58358-0xa7;let _0x2e01fa=a450_0x2e01[_0x58358];return _0x2e01fa;};const a450_0x40a790=a450_0x4015;'use strict';const _=require(a450_0x40a790(0xbc)),qs=require('../../components/parsers/qs'),logger=require(a450_0x40a790(0xd1))(a450_0x40a790(0xaa)),{db}=require(a450_0x40a790(0xc6)),{Op}=require(a450_0x40a790(0xcc));function respondWithResult(_0x321926,_0x752ad0){return _0x752ad0=_0x752ad0||0xc8,function(_0x28dd2d){const _0x46dfd4=a450_0x4015;if(_0x28dd2d)return _0x321926[_0x46dfd4(0xc2)](_0x752ad0)[_0x46dfd4(0xca)](_0x28dd2d);};}function respondWithFilteredResult(_0x385885,_0x1714b7){return function(_0x1a27b2){const _0x3170a0=a450_0x4015;if(_0x1a27b2){const _0x3c2726=_0x1a27b2[_0x3170a0(0xc1)],_0x4d785a=_0x1714b7[_0x3170a0(0xc4)];let _0x5ad9de=_0x1714b7[_0x3170a0(0xc4)]+_0x1714b7[_0x3170a0(0xbf)],_0x1a0703;return _0x5ad9de>=_0x3c2726?(_0x5ad9de=_0x3c2726,_0x1a0703=0xc8):_0x1a0703=0xce,_0x385885[_0x3170a0(0xc2)](_0x1a0703),_0x385885['set'](_0x3170a0(0xce),_0x4d785a+'-'+_0x5ad9de+'/'+_0x3c2726)[_0x3170a0(0xca)](_0x1a27b2);}return null;};}function saveUpdates(_0xfdbc56){return function(_0x80a6ac){const _0x8302c7=a450_0x4015;if(_0x80a6ac)return _0x80a6ac[_0x8302c7(0xc9)](_0xfdbc56)[_0x8302c7(0xcb)](function(_0x2700a0){return _0x2700a0;});return null;};}function removeEntity(_0x257449){return function(_0x5f151b){const _0x4bf719=a450_0x4015;if(_0x5f151b)return _0x5f151b['destroy']()[_0x4bf719(0xcb)](function(){const _0x157ef6=_0x4bf719;_0x257449[_0x157ef6(0xc2)](0xcc)[_0x157ef6(0xcf)]();});};}function handleEntityNotFound(_0x25fe3c){return function(_0x31f18b){const _0x1be9c6=a450_0x4015;return!_0x31f18b&&_0x25fe3c[_0x1be9c6(0xc0)](0x194),_0x31f18b;};}function handleError(_0x2d2be,_0x53c07c){return _0x53c07c=_0x53c07c||0x1f4,function(_0x433d3){const _0x155889=a450_0x4015;logger[_0x155889(0xb5)](_0x433d3[_0x155889(0xb7)]),_0x433d3[_0x155889(0xd8)]&&delete _0x433d3[_0x155889(0xd8)],_0x2d2be[_0x155889(0xc2)](_0x53c07c)[_0x155889(0xad)](_0x433d3);};}exports[a450_0x40a790(0xb2)]=function(_0x4713fc,_0x4d2e4f){const _0x1c5585=a450_0x40a790;let _0x22e3f1={};const _0x128e7={},_0x20bf26={'count':0x0,'rows':[]},_0x41135e=_[_0x1c5585(0xb8)](db[_0x1c5585(0xab)]['rawAttributes'],function(_0x31de47){return{'name':_0x31de47['fieldName'],'type':_0x31de47['type']['key']};});_0x128e7[_0x1c5585(0xac)]=_[_0x1c5585(0xb8)](_0x41135e,'name'),_0x128e7[_0x1c5585(0xaf)]=_[_0x1c5585(0xbb)](_0x4713fc[_0x1c5585(0xaf)]),_0x128e7[_0x1c5585(0xae)]=_['intersection'](_0x128e7[_0x1c5585(0xac)],_0x128e7[_0x1c5585(0xaf)]),_0x22e3f1['attributes']=_[_0x1c5585(0xd9)](_0x128e7['model'],qs[_0x1c5585(0xba)](_0x4713fc[_0x1c5585(0xaf)][_0x1c5585(0xba)])),_0x22e3f1[_0x1c5585(0xd3)]=_0x22e3f1['attributes'][_0x1c5585(0xc8)]?_0x22e3f1['attributes']:_0x128e7['model'];typeof _0x4713fc[_0x1c5585(0xaf)][_0x1c5585(0xd4)]===_0x1c5585(0xa8)&&(_0x22e3f1[_0x1c5585(0xbf)]=qs['limit'](_0x4713fc[_0x1c5585(0xaf)][_0x1c5585(0xbf)]),_0x22e3f1[_0x1c5585(0xc4)]=qs[_0x1c5585(0xc4)](_0x4713fc[_0x1c5585(0xaf)]['offset']));_0x22e3f1[_0x1c5585(0xd6)]=qs[_0x1c5585(0xb1)](_0x4713fc[_0x1c5585(0xaf)]['sort']),_0x22e3f1[_0x1c5585(0xd0)]=qs[_0x1c5585(0xae)](_[_0x1c5585(0xa7)](_0x4713fc[_0x1c5585(0xaf)],_0x128e7['filters']),_0x41135e);_0x4713fc[_0x1c5585(0xaf)]['filter']&&(_0x22e3f1[_0x1c5585(0xd0)]=_[_0x1c5585(0xb4)](_0x22e3f1['where'],{[Op['or']]:_[_0x1c5585(0xb8)](_0x41135e,function(_0x1ff9b9){const _0x2c52a1=_0x1c5585;if(_0x1ff9b9['type']!=='VIRTUAL'){const _0x3d09db={};return _0x3d09db[_0x1ff9b9[_0x2c52a1(0xd8)]]={[Op[_0x2c52a1(0xd7)]]:'%'+_0x4713fc[_0x2c52a1(0xaf)][_0x2c52a1(0xcd)]+'%'},_0x3d09db;}})}));_0x22e3f1=_[_0x1c5585(0xb4)]({},_0x22e3f1,_0x4713fc[_0x1c5585(0xb3)]);const _0x9fcede={'where':_0x22e3f1[_0x1c5585(0xd0)]};return db['JscriptyAnswerReport'][_0x1c5585(0xc1)](_0x9fcede)[_0x1c5585(0xcb)](function(_0x3368ee){const _0x2f16c1=_0x1c5585;return _0x20bf26['count']=_0x3368ee,_0x4713fc[_0x2f16c1(0xaf)][_0x2f16c1(0xbe)]&&(_0x22e3f1[_0x2f16c1(0xa9)]=[{'all':!![]}]),db['JscriptyAnswerReport'][_0x2f16c1(0xc5)](_0x22e3f1);})['then'](function(_0x46b961){const _0x24d302=_0x1c5585;return _0x20bf26[_0x24d302(0xc3)]=_0x46b961,_0x20bf26;})['then'](respondWithFilteredResult(_0x4d2e4f,_0x22e3f1))[_0x1c5585(0xbd)](handleError(_0x4d2e4f,null));},exports['show']=function(_0x537fbb,_0x5a4227){const _0x144aa3=a450_0x40a790;let _0x26e576={'raw':!![],'where':{'id':_0x537fbb[_0x144aa3(0xb6)]['id']}};const _0x2f902c={};return _0x2f902c[_0x144aa3(0xac)]=_[_0x144aa3(0xbb)](db['JscriptyAnswerReport'][_0x144aa3(0xd5)]),_0x2f902c[_0x144aa3(0xaf)]=_[_0x144aa3(0xbb)](_0x537fbb[_0x144aa3(0xaf)]),_0x2f902c['filters']=_['intersection'](_0x2f902c['model'],_0x2f902c[_0x144aa3(0xaf)]),_0x26e576['attributes']=_[_0x144aa3(0xd9)](_0x2f902c[_0x144aa3(0xac)],qs[_0x144aa3(0xba)](_0x537fbb[_0x144aa3(0xaf)][_0x144aa3(0xba)])),_0x26e576[_0x144aa3(0xd3)]=_0x26e576['attributes']['length']?_0x26e576['attributes']:_0x2f902c[_0x144aa3(0xac)],_0x537fbb['query']['includeAll']&&(_0x26e576[_0x144aa3(0xa9)]=[{'all':!![]}]),_0x26e576=_['merge']({},_0x26e576,_0x537fbb[_0x144aa3(0xb3)]),db[_0x144aa3(0xab)][_0x144aa3(0xb0)](_0x26e576)[_0x144aa3(0xcb)](handleEntityNotFound(_0x5a4227,null))[_0x144aa3(0xcb)](respondWithResult(_0x5a4227,null))['catch'](handleError(_0x5a4227,null));},exports[a450_0x40a790(0xb9)]=function(_0x65e5bb,_0x3cbea3){const _0xedf1b1=a450_0x40a790;return db[_0xedf1b1(0xab)][_0xedf1b1(0xb9)](_0x65e5bb[_0xedf1b1(0xd2)],{})[_0xedf1b1(0xcb)](respondWithResult(_0x3cbea3,0xc9))[_0xedf1b1(0xbd)](handleError(_0x3cbea3,null));},exports[a450_0x40a790(0xc9)]=function(_0x41d9a2,_0xdfe3ca){const _0x2c9dc9=a450_0x40a790;return _0x41d9a2['body']['id']&&delete _0x41d9a2[_0x2c9dc9(0xd2)]['id'],db[_0x2c9dc9(0xab)][_0x2c9dc9(0xb0)]({'where':{'id':_0x41d9a2[_0x2c9dc9(0xb6)]['id']}})['then'](handleEntityNotFound(_0xdfe3ca,null))[_0x2c9dc9(0xcb)](saveUpdates(_0x41d9a2[_0x2c9dc9(0xd2)],null))['then'](respondWithResult(_0xdfe3ca,null))[_0x2c9dc9(0xbd)](handleError(_0xdfe3ca,null));},exports[a450_0x40a790(0xc7)]=function(_0x385bb4,_0x1050da){const _0x28f674=a450_0x40a790;return db[_0x28f674(0xab)]['findOne']({'where':{'id':_0x385bb4['params']['id']}})[_0x28f674(0xcb)](handleEntityNotFound(_0x1050da,null))['then'](removeEntity(_0x1050da,null))['catch'](handleError(_0x1050da,null));},exports['describe']=function(_0x5cd600,_0x291a58){const _0x18970e=a450_0x40a790;return db[_0x18970e(0xab)]['describe']()['then'](respondWithResult(_0x291a58,null))[_0x18970e(0xbd)](handleError(_0x291a58,null));}; \ No newline at end of file diff --git a/server/api/jscriptyAnswerReport/jscriptyAnswerReport.model.js b/server/api/jscriptyAnswerReport/jscriptyAnswerReport.model.js index fcfe1b6..e30608d 100644 --- a/server/api/jscriptyAnswerReport/jscriptyAnswerReport.model.js +++ b/server/api/jscriptyAnswerReport/jscriptyAnswerReport.model.js @@ -1 +1 @@ -const a375_0x55e0=['JscriptyAnswerReport','define','exports'];(function(_0x428cc2,_0x55e0b7){const _0x5c60d2=function(_0x2a225e){while(--_0x2a225e){_0x428cc2['push'](_0x428cc2['shift']());}};_0x5c60d2(++_0x55e0b7);}(a375_0x55e0,0x143));const a375_0x5c60=function(_0x428cc2,_0x55e0b7){_0x428cc2=_0x428cc2-0x0;let _0x5c60d2=a375_0x55e0[_0x428cc2];return _0x5c60d2;};const _0x28c734=a375_0x5c60;'use strict';const attributes=require('./jscriptyAnswerReport.attributes');module[_0x28c734('0x0')]=function(_0x2a225e){const _0x28f046=_0x28c734,_0x592eda=_0x2a225e[_0x28f046('0x2')](_0x28f046('0x1'),attributes,{'tableName':'report_jscripty_answers','paranoid':![],'indexes':[],'timestamps':!![]});return _0x592eda;}; \ No newline at end of file +const a451_0x34eb=['function','./jscriptyAnswerReport.options','init','sequelize','exports'];(function(_0x4580bb,_0x313990){const _0x34ebaa=function(_0x38530a){while(--_0x38530a){_0x4580bb['push'](_0x4580bb['shift']());}};_0x34ebaa(++_0x313990);}(a451_0x34eb,0x8a));const a451_0x3853=function(_0x4580bb,_0x313990){_0x4580bb=_0x4580bb-0x184;let _0x34ebaa=a451_0x34eb[_0x4580bb];return _0x34ebaa;};const a451_0x1b2e8a=a451_0x3853;'use strict';const {Model}=require(a451_0x1b2e8a(0x184)),{attributes}=require('./jscriptyAnswerReport.attributes'),{options}=require(a451_0x1b2e8a(0x187));class JscriptyAnswerReport extends Model{}function init(_0x1ec81c,_0x1486d0){const _0x4155fd=a451_0x1b2e8a,_0xbef349=options(_0x1ec81c),_0x46f5c6=typeof _0x1486d0===_0x4155fd(0x186)?_0x1486d0(_0xbef349):_0xbef349;return JscriptyAnswerReport['init'](attributes,_0x46f5c6),JscriptyAnswerReport;}module[a451_0x1b2e8a(0x185)]['JscriptyAnswerReport']=JscriptyAnswerReport,module[a451_0x1b2e8a(0x185)][a451_0x1b2e8a(0x188)]=init; \ No newline at end of file diff --git a/server/api/jscriptyAnswerReport/jscriptyAnswerReport.options.js b/server/api/jscriptyAnswerReport/jscriptyAnswerReport.options.js new file mode 100644 index 0000000..8603203 --- /dev/null +++ b/server/api/jscriptyAnswerReport/jscriptyAnswerReport.options.js @@ -0,0 +1 @@ +var a452_0x321f=['exports','report_jscripty_answers'];(function(_0x5ebf3f,_0x470b15){var _0x321ff2=function(_0xc0075c){while(--_0xc0075c){_0x5ebf3f['push'](_0x5ebf3f['shift']());}};_0x321ff2(++_0x470b15);}(a452_0x321f,0x181));var a452_0xc007=function(_0x5ebf3f,_0x470b15){_0x5ebf3f=_0x5ebf3f-0x136;var _0x321ff2=a452_0x321f[_0x5ebf3f];return _0x321ff2;};var a452_0x35d1f7=a452_0xc007;function options(_0x214150){var _0x3394e1=a452_0xc007;return{'sequelize':_0x214150,'tableName':_0x3394e1(0x136),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a452_0x35d1f7(0x137)]['options']=options; \ No newline at end of file diff --git a/server/api/jscriptyProject/index.js b/server/api/jscriptyProject/index.js index fcea0e0..a764bc7 100644 --- a/server/api/jscriptyProject/index.js +++ b/server/api/jscriptyProject/index.js @@ -1 +1 @@ -const a376_0x442f=['getSummary','/:id/summary','exports','./jscriptyProject.controller','isAuthenticated','post','../../components/auth/service','/:id','30s','delete','update','create','Router','getAnswers','connect-timeout','/:id/clone','get','clone','show','/:id/sessions'];(function(_0x52cca5,_0x442ff7){const _0x3ec036=function(_0xbe9366){while(--_0xbe9366){_0x52cca5['push'](_0x52cca5['shift']());}};_0x3ec036(++_0x442ff7);}(a376_0x442f,0x14a));const a376_0x3ec0=function(_0x52cca5,_0x442ff7){_0x52cca5=_0x52cca5-0x0;let _0x3ec036=a376_0x442f[_0x52cca5];return _0x3ec036;};const _0x19e7a0=a376_0x3ec0;'use strict';const timeout=require(_0x19e7a0('0x4')),express=require('express'),router=express[_0x19e7a0('0x2')](),auth=require(_0x19e7a0('0x10')),controller=require(_0x19e7a0('0xd'));router[_0x19e7a0('0x6')]('/',auth['isAuthenticated'](),controller['index']),router[_0x19e7a0('0x6')](_0x19e7a0('0x11'),auth[_0x19e7a0('0xe')](),controller[_0x19e7a0('0x8')]),router[_0x19e7a0('0x6')](_0x19e7a0('0x9'),auth[_0x19e7a0('0xe')](),controller['getSessions']),router[_0x19e7a0('0x6')]('/:id/answers',auth[_0x19e7a0('0xe')](),controller[_0x19e7a0('0x3')]),router['get'](_0x19e7a0('0xb'),auth[_0x19e7a0('0xe')](),timeout(_0x19e7a0('0x12')),controller[_0x19e7a0('0xa')]),router[_0x19e7a0('0xf')]('/',auth['isAuthenticated'](),controller[_0x19e7a0('0x1')]),router[_0x19e7a0('0xf')](_0x19e7a0('0x5'),auth[_0x19e7a0('0xe')](),controller[_0x19e7a0('0x7')]),router['put'](_0x19e7a0('0x11'),auth[_0x19e7a0('0xe')](),controller[_0x19e7a0('0x0')]),router[_0x19e7a0('0x13')](_0x19e7a0('0x11'),auth['isAuthenticated'](),controller['destroy']),module[_0x19e7a0('0xc')]=router; \ No newline at end of file +const a453_0x121b=['update','../../components/auth/service','/:id/clone','/:id','getSessions','exports','connect-timeout','put','getSummary','create','30s','./jscriptyProject.controller','index','/:id/answers','delete','isAuthenticated','express','get','show','post','Router'];(function(_0x585395,_0x37c57e){const _0x121be7=function(_0x1ae175){while(--_0x1ae175){_0x585395['push'](_0x585395['shift']());}};_0x121be7(++_0x37c57e);}(a453_0x121b,0x1c3));const a453_0x1ae1=function(_0x585395,_0x37c57e){_0x585395=_0x585395-0x17a;let _0x121be7=a453_0x121b[_0x585395];return _0x121be7;};const a453_0x585ad2=a453_0x1ae1;'use strict';const timeout=require(a453_0x585ad2(0x18b)),express=require(a453_0x585ad2(0x180)),router=express[a453_0x585ad2(0x184)](),auth=require(a453_0x585ad2(0x186)),controller=require(a453_0x585ad2(0x17b));router[a453_0x585ad2(0x181)]('/',auth[a453_0x585ad2(0x17f)](),controller[a453_0x585ad2(0x17c)]),router[a453_0x585ad2(0x181)](a453_0x585ad2(0x188),auth['isAuthenticated'](),controller[a453_0x585ad2(0x182)]),router[a453_0x585ad2(0x181)]('/:id/sessions',auth[a453_0x585ad2(0x17f)](),controller[a453_0x585ad2(0x189)]),router['get'](a453_0x585ad2(0x17d),auth[a453_0x585ad2(0x17f)](),controller['getAnswers']),router[a453_0x585ad2(0x181)]('/:id/summary',auth[a453_0x585ad2(0x17f)](),timeout(a453_0x585ad2(0x17a)),controller[a453_0x585ad2(0x18d)]),router[a453_0x585ad2(0x183)]('/',auth['isAuthenticated'](),controller[a453_0x585ad2(0x18e)]),router[a453_0x585ad2(0x183)](a453_0x585ad2(0x187),auth[a453_0x585ad2(0x17f)](),controller['clone']),router[a453_0x585ad2(0x18c)]('/:id',auth[a453_0x585ad2(0x17f)](),controller[a453_0x585ad2(0x185)]),router[a453_0x585ad2(0x17e)](a453_0x585ad2(0x188),auth[a453_0x585ad2(0x17f)](),controller['destroy']),module[a453_0x585ad2(0x18a)]=router; \ No newline at end of file diff --git a/server/api/jscriptyProject/jscriptyProject.attributes.js b/server/api/jscriptyProject/jscriptyProject.attributes.js index 0ef4eeb..d01d68b 100644 --- a/server/api/jscriptyProject/jscriptyProject.attributes.js +++ b/server/api/jscriptyProject/jscriptyProject.attributes.js @@ -1 +1 @@ -const a377_0x2c02=['STRING','util','isObjectLike','{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}','name','formData','getDataValue','BOOLEAN','setDataValue','long','description','lodash','exports'];(function(_0xc72992,_0x2c02fe){const _0x590ad9=function(_0x4436d9){while(--_0x4436d9){_0xc72992['push'](_0xc72992['shift']());}};_0x590ad9(++_0x2c02fe);}(a377_0x2c02,0xd6));const a377_0x590a=function(_0xc72992,_0x2c02fe){_0xc72992=_0xc72992-0x0;let _0x590ad9=a377_0x2c02[_0xc72992];return _0x590ad9;};const _0x1bfe35=a377_0x590a;'use strict';const Sequelize=require('sequelize'),_=require(_0x1bfe35('0x5')),util=require(_0x1bfe35('0x8'));module[_0x1bfe35('0x6')]={'name':{'type':Sequelize['STRING'],'unique':_0x1bfe35('0xb')},'description':{'type':Sequelize[_0x1bfe35('0x7')]},'formData':{'type':Sequelize['TEXT'](_0x1bfe35('0x3')),'set':function(_0x4436d9){const _0x165d32=_0x1bfe35;if(_[_0x165d32('0x9')](_0x4436d9))this['setDataValue'](_0x165d32('0xc'),JSON['stringify'](_0x4436d9));else _['isString'](_0x4436d9)?this['setDataValue'](_0x165d32('0xc'),_0x4436d9):this[_0x165d32('0x2')](_0x165d32('0xc'),util['format'](_0x165d32('0xa'),this[_0x165d32('0x0')](_0x165d32('0xb'))||'',this[_0x165d32('0x0')](_0x165d32('0x4'))||''));}},'enableUncompleteSave':{'type':Sequelize[_0x1bfe35('0x1')],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':Sequelize['BOOLEAN'],'defaultValue':![]}}; \ No newline at end of file +const a454_0x15ad=['isString','getDataValue','setDataValue','{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}','BOOLEAN','stringify','description','lodash','name','sequelize','long','formData','util','format','isObjectLike','attributes','STRING','TEXT'];(function(_0x338ad9,_0x10c10d){const _0x15add2=function(_0x54e6c6){while(--_0x54e6c6){_0x338ad9['push'](_0x338ad9['shift']());}};_0x15add2(++_0x10c10d);}(a454_0x15ad,0x12c));const a454_0x54e6=function(_0x338ad9,_0x10c10d){_0x338ad9=_0x338ad9-0x19f;let _0x15add2=a454_0x15ad[_0x338ad9];return _0x15add2;};const a454_0x5357f6=a454_0x54e6;'use strict';const {DataTypes}=require(a454_0x5357f6(0x1ae)),_=require(a454_0x5357f6(0x1ac)),util=require(a454_0x5357f6(0x19f)),attributes={'name':{'type':DataTypes[a454_0x5357f6(0x1a3)],'unique':'name'},'description':{'type':DataTypes[a454_0x5357f6(0x1a3)]},'formData':{'type':DataTypes[a454_0x5357f6(0x1a4)]({'length':a454_0x5357f6(0x1af)}),'set':function(_0x14b571){const _0xd64d00=a454_0x5357f6;if(_[_0xd64d00(0x1a1)](_0x14b571))this[_0xd64d00(0x1a7)](_0xd64d00(0x1b0),JSON[_0xd64d00(0x1aa)](_0x14b571));else _[_0xd64d00(0x1a5)](_0x14b571)?this[_0xd64d00(0x1a7)](_0xd64d00(0x1b0),_0x14b571):this[_0xd64d00(0x1a7)](_0xd64d00(0x1b0),util[_0xd64d00(0x1a0)](_0xd64d00(0x1a8),this[_0xd64d00(0x1a6)](_0xd64d00(0x1ad))||'',this[_0xd64d00(0x1a6)](_0xd64d00(0x1ab))||''));}},'enableUncompleteSave':{'type':DataTypes[a454_0x5357f6(0x1a9)],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':DataTypes['BOOLEAN'],'defaultValue':![]}};module['exports'][a454_0x5357f6(0x1a2)]=attributes; \ No newline at end of file diff --git a/server/api/jscriptyProject/jscriptyProject.controller.js b/server/api/jscriptyProject/jscriptyProject.controller.js index 7bdf113..527090e 100644 --- a/server/api/jscriptyProject/jscriptyProject.controller.js +++ b/server/api/jscriptyProject/jscriptyProject.controller.js @@ -1 +1 @@ -const a378_0x130e=['keys','end','toString','where','apply','user','to-csv','isEmpty','limit','../../components/parsers/qs','JscriptyAnswerReport','-createdAt','indexOf','format','index','stack','model','now','json','VIRTUAL','length','findAll','pick','moment','destroy','show','rawAttributes','writeFileSync','params','includeAll','autoAssociation','filter','fromCharCode','then','order','createdAt','../../config/logger','parse','getSessions','starttime','role','like','download','create','attachment;\x20filename=','/tmp/Jscripty_Project_%d_Summary_%s.csv','omit','setHeader','update','catch','../../mysqldb','merge','clone','map','get','ProjectId','questionId','getSummary','getAnswers','sendStatus','undefined','UserProfileResource','rows','Projects','query','error','nolimit','util','text/csv','offset','Content-disposition','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','intersection','findOne','status','Unable\x20to\x20retrieve\x20the\x20current\x20user','startTime','include','sequelize','count','body','number','YYYY-MM-DD\x20HH:mm:ss','type','updatedAt','key','filters','options','SessionId','replace','question','name','attributes','lodash','JscriptySessionReport','Content-type','set','sort','JscriptyProject','api','fields','UserProfileSection'];(function(_0x23f2f1,_0x130e95){const _0x32f22b=function(_0x55338c){while(--_0x55338c){_0x23f2f1['push'](_0x23f2f1['shift']());}};_0x32f22b(++_0x130e95);}(a378_0x130e,0x16a));const a378_0x32f2=function(_0x23f2f1,_0x130e95){_0x23f2f1=_0x23f2f1-0x0;let _0x32f22b=a378_0x130e[_0x23f2f1];return _0x32f22b;};const _0x33739a=a378_0x32f2;'use strict';const moment=require(_0x33739a('0x45')),util=require(_0x33739a('0xb')),fs=require('fs'),_=require(_0x33739a('0x25')),toCsv=require(_0x33739a('0x34')),qs=require(_0x33739a('0x37')),logger=require(_0x33739a('0x52'))(_0x33739a('0x2b')),db=require(_0x33739a('0x60'))['db'],{Op}=require(_0x33739a('0x16'));function respondWithResult(_0x55338c,_0x2e8270){return _0x2e8270=_0x2e8270||0xc8,function(_0x18e2c2){const _0x2c16b7=a378_0x32f2;if(_0x18e2c2)return _0x55338c[_0x2c16b7('0x12')](_0x2e8270)['json'](_0x18e2c2);};}function respondWithFilteredResult(_0x289ae4,_0x5f5fed){return function(_0x459ff9){const _0x53427d=a378_0x32f2;if(_0x459ff9){const _0xbfbaa=_0x459ff9[_0x53427d('0x17')],_0x1dd725=_0x5f5fed['offset'];let _0x44b6fe=_0x5f5fed[_0x53427d('0xd')]+_0x5f5fed[_0x53427d('0x36')],_0x596ca4;return _0x44b6fe>=_0xbfbaa?(_0x44b6fe=_0xbfbaa,_0x596ca4=0xc8):_0x596ca4=0xce,_0x289ae4[_0x53427d('0x12')](_0x596ca4),_0x289ae4[_0x53427d('0x28')]('Content-Range',_0x1dd725+'-'+_0x44b6fe+'/'+_0xbfbaa)[_0x53427d('0x40')](_0x459ff9);}return null;};}function saveUpdates(_0x46788d){return function(_0x4fc2e9){const _0x1784d1=a378_0x32f2;if(_0x4fc2e9)return _0x4fc2e9['update'](_0x46788d)[_0x1784d1('0x4f')](function(_0x36338b){return _0x36338b;});return null;};}function removeEntity(_0x3d14a2){return function(_0x8a9e8b){const _0x540720=a378_0x32f2;if(_0x8a9e8b)return _0x8a9e8b['destroy']()[_0x540720('0x4f')](function(){const _0x187b32=_0x540720,_0xd5e1b5=_0x8a9e8b[_0x187b32('0x64')]({'plain':!![]}),_0x5960ce=_0x187b32('0x7');return db[_0x187b32('0x5')][_0x187b32('0x46')]({'where':{'type':_0x5960ce,'resourceId':_0xd5e1b5['id']}})['then'](function(){return _0x8a9e8b;});})['then'](function(){const _0x9669a9=_0x540720;_0x3d14a2[_0x9669a9('0x12')](0xcc)[_0x9669a9('0x2f')]();});};}function handleEntityNotFound(_0x5d05df){return function(_0x221355){const _0x4fa6e0=a378_0x32f2;return!_0x221355&&_0x5d05df[_0x4fa6e0('0x3')](0x194),_0x221355;};}function handleError(_0x12fbbb,_0x43eef2){return _0x43eef2=_0x43eef2||0x1f4,function(_0x2d4d2a){const _0x529192=a378_0x32f2;logger[_0x529192('0x9')](_0x2d4d2a[_0x529192('0x3d')]),_0x2d4d2a['name']&&delete _0x2d4d2a[_0x529192('0x23')],_0x12fbbb['status'](_0x43eef2)['send'](_0x2d4d2a);};}exports[_0x33739a('0x3c')]=function(_0x36e018,_0x1e10be){const _0x45767c=_0x33739a;let _0x1d709b={};const _0x5db1aa={},_0x43a6fa={'count':0x0,'rows':[]},_0x1d2c1b=_[_0x45767c('0x63')](db[_0x45767c('0x2a')][_0x45767c('0x48')],function(_0x563a82){const _0x2533d0=_0x45767c;return{'name':_0x563a82['fieldName'],'type':_0x563a82[_0x2533d0('0x1b')][_0x2533d0('0x1d')]};});_0x5db1aa[_0x45767c('0x3e')]=_[_0x45767c('0x63')](_0x1d2c1b,'name'),_0x5db1aa[_0x45767c('0x8')]=_[_0x45767c('0x2e')](_0x36e018[_0x45767c('0x8')]),_0x5db1aa[_0x45767c('0x1e')]=_[_0x45767c('0x10')](_0x5db1aa['model'],_0x5db1aa[_0x45767c('0x8')]),_0x1d709b[_0x45767c('0x24')]=_[_0x45767c('0x10')](_0x5db1aa[_0x45767c('0x3e')],qs['fields'](_0x36e018[_0x45767c('0x8')][_0x45767c('0x2c')])),_0x1d709b[_0x45767c('0x24')]=_0x1d709b[_0x45767c('0x24')][_0x45767c('0x42')]?_0x1d709b['attributes']:_0x5db1aa[_0x45767c('0x3e')];typeof _0x36e018[_0x45767c('0x8')]['nolimit']==='undefined'&&(_0x1d709b[_0x45767c('0x36')]=qs[_0x45767c('0x36')](_0x36e018[_0x45767c('0x8')][_0x45767c('0x36')]),_0x1d709b[_0x45767c('0xd')]=qs[_0x45767c('0xd')](_0x36e018[_0x45767c('0x8')][_0x45767c('0xd')]));_0x1d709b[_0x45767c('0x50')]=qs[_0x45767c('0x29')](_0x36e018[_0x45767c('0x8')]['sort']),_0x1d709b[_0x45767c('0x31')]=qs[_0x45767c('0x1e')](_['pick'](_0x36e018[_0x45767c('0x8')],_0x5db1aa['filters']),_0x1d2c1b);_0x36e018[_0x45767c('0x8')][_0x45767c('0x4d')]&&(_0x1d709b[_0x45767c('0x31')]=_[_0x45767c('0x61')](_0x1d709b[_0x45767c('0x31')],{[Op['or']]:_[_0x45767c('0x63')](_0x1d2c1b,function(_0x49b145){const _0x2ae666=_0x45767c;if(_0x49b145[_0x2ae666('0x1b')]!==_0x2ae666('0x41')){const _0x3b7e1b={};return _0x3b7e1b[_0x49b145[_0x2ae666('0x23')]]={[Op['like']]:'%'+_0x36e018[_0x2ae666('0x8')][_0x2ae666('0x4d')]+'%'},_0x3b7e1b;}})}));_0x1d709b=_[_0x45767c('0x61')]({},_0x1d709b,_0x36e018['options']);const _0x43f543={'where':_0x1d709b[_0x45767c('0x31')]};return db[_0x45767c('0x2a')][_0x45767c('0x17')](_0x43f543)[_0x45767c('0x4f')](function(_0x1c8846){const _0x5ae7db=_0x45767c;return _0x43a6fa[_0x5ae7db('0x17')]=_0x1c8846,_0x36e018[_0x5ae7db('0x8')][_0x5ae7db('0x4b')]&&(_0x1d709b['include']=[{'all':!![]}]),db['JscriptyProject'][_0x5ae7db('0x43')](_0x1d709b);})[_0x45767c('0x4f')](function(_0x10d2dc){const _0x235afe=_0x45767c;return _0x43a6fa[_0x235afe('0x6')]=_0x10d2dc,_0x43a6fa;})['then'](respondWithFilteredResult(_0x1e10be,_0x1d709b))['catch'](handleError(_0x1e10be,null));},exports[_0x33739a('0x47')]=function(_0xd42580,_0x5a8720){const _0x26e2f5=_0x33739a;let _0x181e9e={'raw':![],'where':{'id':_0xd42580['params']['id']}};const _0x5b2b54={};return _0x5b2b54[_0x26e2f5('0x3e')]=_[_0x26e2f5('0x2e')](db[_0x26e2f5('0x2a')]['rawAttributes']),_0x5b2b54[_0x26e2f5('0x8')]=_['keys'](_0xd42580['query']),_0x5b2b54[_0x26e2f5('0x1e')]=_[_0x26e2f5('0x10')](_0x5b2b54[_0x26e2f5('0x3e')],_0x5b2b54['query']),_0x181e9e[_0x26e2f5('0x24')]=_[_0x26e2f5('0x10')](_0x5b2b54[_0x26e2f5('0x3e')],qs[_0x26e2f5('0x2c')](_0xd42580[_0x26e2f5('0x8')]['fields'])),_0x181e9e['attributes']=_0x181e9e[_0x26e2f5('0x24')][_0x26e2f5('0x42')]?_0x181e9e[_0x26e2f5('0x24')]:_0x5b2b54[_0x26e2f5('0x3e')],_0xd42580[_0x26e2f5('0x8')][_0x26e2f5('0x4b')]&&(_0x181e9e[_0x26e2f5('0x15')]=[{'all':!![]}]),_0x181e9e=_['merge']({},_0x181e9e,_0xd42580[_0x26e2f5('0x1f')]),db[_0x26e2f5('0x2a')][_0x26e2f5('0x11')](_0x181e9e)['then'](handleEntityNotFound(_0x5a8720,null))[_0x26e2f5('0x4f')](respondWithResult(_0x5a8720,null))[_0x26e2f5('0x5f')](handleError(_0x5a8720,null));},exports[_0x33739a('0x59')]=function(_0x442982,_0x4a9b3b){const _0x496aad=_0x33739a;return db[_0x496aad('0x2a')][_0x496aad('0x59')](_0x442982[_0x496aad('0x18')],{})[_0x496aad('0x4f')](function(_0xdafb18){const _0x1f9a68=_0x496aad,_0x274d21=_0x442982['user']['get']({'plain':!![]});if(!_0x274d21)throw new Error(_0x1f9a68('0x13'));if(_0x274d21[_0x1f9a68('0x56')]===_0x1f9a68('0x33')){const _0x35afe9=_0xdafb18[_0x1f9a68('0x64')]({'plain':!![]}),_0x1b5077=_0x1f9a68('0x7');return db[_0x1f9a68('0x2d')][_0x1f9a68('0x11')]({'where':{'name':_0x1b5077,'userProfileId':_0x274d21['userProfileId']},'raw':!![]})[_0x1f9a68('0x4f')](function(_0x3c62cf){const _0x3195b4=_0x1f9a68;return _0x3c62cf&&_0x3c62cf[_0x3195b4('0x4c')]===0x0?db[_0x3195b4('0x5')][_0x3195b4('0x59')]({'name':_0x35afe9[_0x3195b4('0x23')],'resourceId':_0x35afe9['id'],'type':_0x3c62cf['name'],'sectionId':_0x3c62cf['id']},{})[_0x3195b4('0x4f')](function(){return _0xdafb18;}):_0xdafb18;})[_0x1f9a68('0x5f')](function(_0x44eac3){const _0x2545c6=_0x1f9a68;logger[_0x2545c6('0x9')](_0x2545c6('0xf'),_0x44eac3);throw _0x44eac3;});}return _0xdafb18;})[_0x496aad('0x4f')](respondWithResult(_0x4a9b3b,0xc9))[_0x496aad('0x5f')](handleError(_0x4a9b3b,null));},exports[_0x33739a('0x62')]=function(_0x169227,_0x1b4512){const _0xc86aa=_0x33739a;let _0x3476ef={'where':{'id':_0x169227[_0xc86aa('0x4a')]['id']}};const _0x5839b9={};return _0x5839b9[_0xc86aa('0x3e')]=_[_0xc86aa('0x2e')](db[_0xc86aa('0x2a')][_0xc86aa('0x48')]),_0x3476ef[_0xc86aa('0x24')]=_[_0xc86aa('0x10')](_0x5839b9['model'],qs['fields'](_0x169227[_0xc86aa('0x8')][_0xc86aa('0x2c')])),_0x3476ef['attributes']=_0x3476ef[_0xc86aa('0x24')][_0xc86aa('0x42')]?_0x3476ef[_0xc86aa('0x24')]:_0x5839b9[_0xc86aa('0x3e')],_0x169227['query']['includeAll']&&(_0x3476ef[_0xc86aa('0x15')]=[{'all':!![]}]),_0x3476ef=_[_0xc86aa('0x61')]({},_0x3476ef,_0x169227[_0xc86aa('0x1f')]),db[_0xc86aa('0x2a')][_0xc86aa('0x11')](_0x3476ef)['then'](handleEntityNotFound(_0x1b4512,null))['then'](function(_0x546d5d){const _0x1b800f=_0xc86aa;if(_0x546d5d){let _0xd44a9f=_0x546d5d['get']({'plain':!![]});return _0xd44a9f=qs[_0x1b800f('0x5c')](_0xd44a9f,['id',_0x1b800f('0x51'),_0x1b800f('0x1c')]),_0x169227[_0x1b800f('0x18')]=_['omit'](_0x169227[_0x1b800f('0x18')],['id','createdAt','updatedAt']),db[_0x1b800f('0x2a')][_0x1b800f('0x59')](_[_0x1b800f('0x61')](_0xd44a9f,_0x169227[_0x1b800f('0x18')]),{'include':_0x169227['query'][_0x1b800f('0x4b')]?[{'all':!![]}]:undefined})[_0x1b800f('0x4f')](function(_0x5716c0){const _0x4310e9=_0x1b800f,_0x586a94=_0x169227[_0x4310e9('0x33')][_0x4310e9('0x64')]({'plain':!![]});if(!_0x586a94)throw new Error(_0x4310e9('0x13'));if(_0x586a94['role']===_0x4310e9('0x33')){const _0xa6ce8d=_0x5716c0['get']({'plain':!![]}),_0x7d44de='Projects';return db[_0x4310e9('0x2d')][_0x4310e9('0x11')]({'where':{'name':_0x7d44de,'userProfileId':_0x586a94['userProfileId']},'raw':!![]})[_0x4310e9('0x4f')](function(_0x15f01c){const _0x3adc7a=_0x4310e9;return _0x15f01c&&_0x15f01c[_0x3adc7a('0x4c')]===0x0?db['UserProfileResource']['create']({'name':_0xa6ce8d[_0x3adc7a('0x23')],'resourceId':_0xa6ce8d['id'],'type':_0x15f01c[_0x3adc7a('0x23')],'sectionId':_0x15f01c['id']},{})[_0x3adc7a('0x4f')](function(){return _0x5716c0;}):_0x5716c0;})[_0x4310e9('0x5f')](function(_0x4e2738){const _0x227226=_0x4310e9;logger[_0x227226('0x9')]('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0x4e2738);throw _0x4e2738;});}return _0x5716c0;});}})['then'](respondWithResult(_0x1b4512,0xc9))['catch'](handleError(_0x1b4512,null));},exports[_0x33739a('0x5e')]=function(_0x2acf02,_0x4708c0){const _0x3cde1f=_0x33739a;return _0x2acf02[_0x3cde1f('0x18')]['id']&&delete _0x2acf02[_0x3cde1f('0x18')]['id'],db[_0x3cde1f('0x2a')][_0x3cde1f('0x11')]({'where':{'id':_0x2acf02[_0x3cde1f('0x4a')]['id']}})[_0x3cde1f('0x4f')](handleEntityNotFound(_0x4708c0,null))['then'](saveUpdates(_0x2acf02[_0x3cde1f('0x18')],null))[_0x3cde1f('0x4f')](respondWithResult(_0x4708c0,null))[_0x3cde1f('0x5f')](handleError(_0x4708c0,null));},exports[_0x33739a('0x46')]=function(_0x15d1db,_0x4b71b9){const _0x46a8f7=_0x33739a;return db[_0x46a8f7('0x2a')][_0x46a8f7('0x11')]({'where':{'id':_0x15d1db[_0x46a8f7('0x4a')]['id']}})[_0x46a8f7('0x4f')](handleEntityNotFound(_0x4b71b9,null))[_0x46a8f7('0x4f')](removeEntity(_0x4b71b9,null))[_0x46a8f7('0x5f')](handleError(_0x4b71b9,null));},exports[_0x33739a('0x54')]=function(_0x2e4c14,_0x407c0d){const _0x4ab7e2=_0x33739a;let _0x2bf611={'raw':!![],'where':{}};const _0x5697f3={},_0x4b7b66={'count':0x0,'rows':[]};return db[_0x4ab7e2('0x2a')][_0x4ab7e2('0x11')]({'where':{'id':_0x2e4c14['params']['id']}})['then'](handleEntityNotFound(_0x407c0d,null))['then'](function(_0x91b7f6){const _0x5ea6dd=_0x4ab7e2;if(_0x91b7f6)return _0x5697f3[_0x5ea6dd('0x3e')]=_[_0x5ea6dd('0x2e')](db[_0x5ea6dd('0x26')]['rawAttributes']),_0x5697f3[_0x5ea6dd('0x8')]=_[_0x5ea6dd('0x2e')](_0x2e4c14[_0x5ea6dd('0x8')]),_0x5697f3[_0x5ea6dd('0x1e')]=_[_0x5ea6dd('0x10')](_0x5697f3[_0x5ea6dd('0x3e')],_0x5697f3[_0x5ea6dd('0x8')]),_0x2bf611[_0x5ea6dd('0x24')]=_[_0x5ea6dd('0x10')](_0x5697f3[_0x5ea6dd('0x3e')],qs[_0x5ea6dd('0x2c')](_0x2e4c14[_0x5ea6dd('0x8')][_0x5ea6dd('0x2c')])),_0x2bf611[_0x5ea6dd('0x24')]=_0x2bf611[_0x5ea6dd('0x24')]['length']?_0x2bf611[_0x5ea6dd('0x24')]:_0x5697f3['model'],typeof _0x2e4c14[_0x5ea6dd('0x8')][_0x5ea6dd('0xa')]===_0x5ea6dd('0x4')&&(_0x2bf611['limit']=qs['limit'](_0x2e4c14[_0x5ea6dd('0x8')]['limit']),_0x2bf611[_0x5ea6dd('0xd')]=qs['offset'](_0x2e4c14['query'][_0x5ea6dd('0xd')])),_0x2bf611[_0x5ea6dd('0x50')]=qs[_0x5ea6dd('0x29')](_0x2e4c14[_0x5ea6dd('0x8')][_0x5ea6dd('0x29')]),_0x2bf611[_0x5ea6dd('0x31')]=qs[_0x5ea6dd('0x1e')](_[_0x5ea6dd('0x44')](_0x2e4c14[_0x5ea6dd('0x8')],_0x5697f3[_0x5ea6dd('0x1e')])),_0x2bf611[_0x5ea6dd('0x31')]['ProjectId']=_0x91b7f6['id'],_0x2e4c14['query'][_0x5ea6dd('0x4d')]&&(_0x2bf611[_0x5ea6dd('0x31')]=_[_0x5ea6dd('0x61')](_0x2bf611[_0x5ea6dd('0x31')],{[Op['or']]:_[_0x5ea6dd('0x63')](_0x2bf611[_0x5ea6dd('0x24')],function(_0x5b4486){const _0x3ec21a=_0x5ea6dd,_0x141ad2={};return _0x141ad2[_0x5b4486]={[Op[_0x3ec21a('0x57')]]:'%'+_0x2e4c14[_0x3ec21a('0x8')]['filter']+'%'},_0x141ad2;})})),_0x2bf611=_[_0x5ea6dd('0x61')]({},_0x2bf611,_0x2e4c14[_0x5ea6dd('0x1f')]),db[_0x5ea6dd('0x26')]['count']({'where':_0x2bf611[_0x5ea6dd('0x31')]})[_0x5ea6dd('0x4f')](function(_0x262268){const _0x24a277=_0x5ea6dd;return _0x4b7b66[_0x24a277('0x17')]=_0x262268,_0x2e4c14[_0x24a277('0x8')][_0x24a277('0x4b')]&&(_0x2bf611[_0x24a277('0x15')]=[{'all':!![]}]),db['JscriptySessionReport'][_0x24a277('0x43')](_0x2bf611);})['then'](function(_0x2b10ba){const _0x37a0fa=_0x5ea6dd;return _0x4b7b66[_0x37a0fa('0x6')]=_0x2b10ba,_0x4b7b66;});})[_0x4ab7e2('0x4f')](respondWithFilteredResult(_0x407c0d,_0x2bf611))[_0x4ab7e2('0x5f')](handleError(_0x407c0d,null));},exports[_0x33739a('0x2')]=function(_0x150f41,_0xf53ce7){const _0xc2588e=_0x33739a;let _0x44fa05={'raw':!![],'where':{}};const _0x10ef1e={},_0x2cb258={'count':0x0,'rows':[]};return db[_0xc2588e('0x2a')]['findOne']({'where':{'id':_0x150f41['params']['id']}})[_0xc2588e('0x4f')](handleEntityNotFound(_0xf53ce7,null))[_0xc2588e('0x4f')](function(_0x38f335){const _0x16eb96=_0xc2588e;if(_0x38f335)return _0x10ef1e[_0x16eb96('0x3e')]=_[_0x16eb96('0x2e')](db[_0x16eb96('0x38')][_0x16eb96('0x48')]),_0x10ef1e[_0x16eb96('0x8')]=_[_0x16eb96('0x2e')](_0x150f41[_0x16eb96('0x8')]),_0x10ef1e[_0x16eb96('0x1e')]=_[_0x16eb96('0x10')](_0x10ef1e['model'],_0x10ef1e[_0x16eb96('0x8')]),_0x44fa05['attributes']=_[_0x16eb96('0x10')](_0x10ef1e[_0x16eb96('0x3e')],qs[_0x16eb96('0x2c')](_0x150f41[_0x16eb96('0x8')][_0x16eb96('0x2c')])),_0x44fa05[_0x16eb96('0x24')]=_0x44fa05['attributes'][_0x16eb96('0x42')]?_0x44fa05['attributes']:_0x10ef1e['model'],typeof _0x150f41[_0x16eb96('0x8')][_0x16eb96('0xa')]===_0x16eb96('0x4')&&(_0x44fa05['limit']=qs['limit'](_0x150f41[_0x16eb96('0x8')][_0x16eb96('0x36')]),_0x44fa05['offset']=qs[_0x16eb96('0xd')](_0x150f41['query']['offset'])),_0x44fa05['order']=qs[_0x16eb96('0x29')](_0x150f41[_0x16eb96('0x8')][_0x16eb96('0x29')]),_0x44fa05[_0x16eb96('0x31')]=qs['filters'](_[_0x16eb96('0x44')](_0x150f41['query'],_0x10ef1e[_0x16eb96('0x1e')])),_0x44fa05[_0x16eb96('0x31')][_0x16eb96('0x65')]=_0x38f335['id'],_0x150f41[_0x16eb96('0x8')][_0x16eb96('0x4d')]&&(_0x44fa05[_0x16eb96('0x31')]=_['merge'](_0x44fa05[_0x16eb96('0x31')],{[Op['or']]:_[_0x16eb96('0x63')](_0x44fa05[_0x16eb96('0x24')],function(_0x156dbe){const _0x30eb9a=_0x16eb96,_0x203858={};return _0x203858[_0x156dbe]={[Op[_0x30eb9a('0x57')]]:'%'+_0x150f41[_0x30eb9a('0x8')][_0x30eb9a('0x4d')]+'%'},_0x203858;})})),_0x44fa05=_['merge']({},_0x44fa05,_0x150f41[_0x16eb96('0x1f')]),db[_0x16eb96('0x38')]['count']({'where':_0x44fa05['where']})[_0x16eb96('0x4f')](function(_0xf447ac){const _0x59550e=_0x16eb96;return _0x2cb258['count']=_0xf447ac,_0x150f41['query'][_0x59550e('0x4b')]&&(_0x44fa05[_0x59550e('0x15')]=[{'all':!![]}]),db[_0x59550e('0x38')][_0x59550e('0x43')](_0x44fa05);})[_0x16eb96('0x4f')](function(_0x5d3c83){const _0x22530c=_0x16eb96;return _0x2cb258[_0x22530c('0x6')]=_0x5d3c83,_0x2cb258;});})[_0xc2588e('0x4f')](respondWithFilteredResult(_0xf53ce7,_0x44fa05))['catch'](handleError(_0xf53ce7,null));};function char(_0x19aa49){const _0x46c3ad=_0x33739a;return _0x46c3ad('0x19')===typeof _0x19aa49?String[_0x46c3ad('0x4e')][_0x46c3ad('0x32')](null,arguments):_0x19aa49;}function needsEncapsulation(_0x50399c){const _0x2f8eea=_0x33739a;return!!_0x50399c&&(_0x50399c['toString']()[_0x2f8eea('0x3a')](char(0xd))>=0x0||_0x50399c[_0x2f8eea('0x30')]()[_0x2f8eea('0x3a')](char(0xa))>=0x0||_0x50399c[_0x2f8eea('0x30')]()['indexOf'](char(0x2c))>=0x0||_0x50399c[_0x2f8eea('0x30')]()[_0x2f8eea('0x3a')](char(0x22))>=0x0);}function encapsulate(_0x4b29c1){const _0x256c2f=_0x33739a,_0x58fa5d=char(0x22),_0x53910e='\x5c'+char(0x22),_0xca78b1=_0x4b29c1['toString']()[_0x256c2f('0x21')](new RegExp(_0x58fa5d,'g'),_0x53910e);return _0x58fa5d+_0xca78b1+_0x58fa5d;}exports[_0x33739a('0x1')]=function(_0x2af265,_0x311ce4){const _0x299da2=_0x33739a;let _0x31d90d,_0x19ced7;const _0x4194a9={'where':{'ProjectId':_0x2af265[_0x299da2('0x4a')]['id']}};return _0x2af265[_0x299da2('0x8')][_0x299da2('0x14')]&&(_0x4194a9[_0x299da2('0x31')][_0x299da2('0x55')]=JSON[_0x299da2('0x53')](_0x2af265['query']['startTime'])),db['JscriptySessionReport'][_0x299da2('0x43')](_0x4194a9)[_0x299da2('0x4f')](handleEntityNotFound(_0x311ce4,null))['then'](function(_0x47ec65){const _0x389b89=_0x299da2;if(_0x47ec65)return _0x31d90d=_0x47ec65,db['JscriptyQuestionReport'][_0x389b89('0x43')]({'where':{'SessionId':{[Op['in']]:_[_0x389b89('0x63')](_0x31d90d,'id')},'ProjectId':_0x2af265[_0x389b89('0x4a')]['id']},'order':_0x389b89('0x39')});})[_0x299da2('0x4f')](handleEntityNotFound(_0x311ce4,null))[_0x299da2('0x4f')](function(_0x46c044){const _0x39ad25=_0x299da2;if(_0x46c044){_0x19ced7=_0x46c044;const _0x3fadb0={};for(let _0x1fde0e=0x0,_0x5147f0=_0x19ced7[_0x39ad25('0x42')];_0x1fde0e<_0x5147f0;_0x1fde0e++){typeof _0x3fadb0[_0x19ced7[_0x1fde0e]['questionId']]==='undefined'&&(_0x3fadb0[_0x19ced7[_0x1fde0e][_0x39ad25('0x0')]]=needsEncapsulation(_0x19ced7[_0x1fde0e][_0x39ad25('0x22')])?encapsulate(_0x19ced7[_0x1fde0e][_0x39ad25('0x22')]):_0x19ced7[_0x1fde0e][_0x39ad25('0x22')]);}const _0x3949c8=[];let _0x285b2c={};for(let _0x1f5665=0x0,_0x468905=_0x31d90d[_0x39ad25('0x42')];_0x1f5665<_0x468905;_0x1f5665++){_0x285b2c={'ProjectId':_0x2af265[_0x39ad25('0x4a')]['id'],'SessionId':_0x31d90d[_0x1f5665]['id'],'StartTime':moment(_0x31d90d[_0x1f5665][_0x39ad25('0x55')])[_0x39ad25('0x3b')](_0x39ad25('0x1a'))};for(let _0x5c0963=0x0,_0x36b043=_0x19ced7['length'];_0x5c0963<_0x36b043;_0x5c0963++){_0x19ced7[_0x5c0963][_0x39ad25('0x20')]===_0x31d90d[_0x1f5665]['id']&&typeof _0x3fadb0[_0x19ced7[_0x5c0963][_0x39ad25('0x0')]]!=='undefined'&&(_0x285b2c[_0x3fadb0[_0x19ced7[_0x5c0963][_0x39ad25('0x0')]]]=_0x19ced7[_0x5c0963]['answer']);}for(const _0x16620f in _0x3fadb0){typeof _0x285b2c[_0x3fadb0[_0x16620f]]===_0x39ad25('0x4')&&(_0x285b2c[_0x3fadb0[_0x16620f]]=null);}_0x3949c8['push'](_0x285b2c);}return _0x3949c8;}})[_0x299da2('0x4f')](function(_0x13f4bf){const _0x296c20=_0x299da2;if(!_[_0x296c20('0x35')](_0x13f4bf)){const _0x4d74b6=toCsv(_0x13f4bf),_0xd38ff2=Date[_0x296c20('0x3f')]();return fs[_0x296c20('0x49')](util[_0x296c20('0x3b')](_0x296c20('0x5b'),_0x2af265[_0x296c20('0x4a')]['id'],_0xd38ff2),_0x4d74b6),_0x311ce4['setHeader'](_0x296c20('0xe'),_0x296c20('0x5a')+util[_0x296c20('0x3b')]('Jscripty_Project_%d_Summary_%s.csv',_0x2af265[_0x296c20('0x4a')]['id'],_0xd38ff2)),_0x311ce4[_0x296c20('0x5d')](_0x296c20('0x27'),_0x296c20('0xc')),_0x311ce4[_0x296c20('0x58')](util[_0x296c20('0x3b')](_0x296c20('0x5b'),_0x2af265[_0x296c20('0x4a')]['id'],_0xd38ff2));}else return _0x311ce4[_0x296c20('0x3')](0xcc);})[_0x299da2('0x5f')](handleError(_0x311ce4,null));}; \ No newline at end of file +const a455_0x54e8=['rows','../../mysqldb','offset','intersection','Content-Range','autoAssociation','toString','count','limit','include','setHeader','JscriptyAnswerReport','show','indexOf','merge','update','filters','catch','model','YYYY-MM-DD\x20HH:mm:ss','isEmpty','type','role','keys','VIRTUAL','findOne','where','replace','format','parse','error','nolimit','create','map','writeFileSync','undefined','UserProfileResource','util','pick','like','fieldName','getAnswers','fields','push','userProfileId','createdAt','send','stack','starttime','filter','sort','findAll','JscriptyProject','includeAll','download','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','params','attachment;\x20filename=','../../components/parsers/qs','questionId','user','Content-type','updatedAt','sequelize','set','to-csv','key','status','number','attributes','Unable\x20to\x20retrieve\x20the\x20current\x20user','name','get','length','query','body','then','lodash','UserProfileSection','destroy','options','answer','/tmp/Jscripty_Project_%d_Summary_%s.csv','sendStatus','order','json','getSessions','Projects','Content-disposition','ProjectId','JscriptySessionReport','index','startTime','rawAttributes','text/csv'];(function(_0x438477,_0x15ffac){const _0x54e8c7=function(_0x318daf){while(--_0x318daf){_0x438477['push'](_0x438477['shift']());}};_0x54e8c7(++_0x15ffac);}(a455_0x54e8,0x1b0));const a455_0x318d=function(_0x438477,_0x15ffac){_0x438477=_0x438477-0x88;let _0x54e8c7=a455_0x54e8[_0x438477];return _0x54e8c7;};const a455_0x58c43f=a455_0x318d;'use strict';const moment=require('moment'),util=require(a455_0x58c43f(0xd8)),fs=require('fs'),_=require(a455_0x58c43f(0xa1)),toCsv=require(a455_0x58c43f(0x95)),qs=require(a455_0x58c43f(0x8e)),logger=require('../../config/logger')('api'),{db}=require(a455_0x58c43f(0xb4)),{Op}=require(a455_0x58c43f(0x93));function respondWithResult(_0x52b813,_0x30dc97){return _0x30dc97=_0x30dc97||0xc8,function(_0xa04eda){const _0x1fff90=a455_0x318d;if(_0xa04eda)return _0x52b813[_0x1fff90(0x97)](_0x30dc97)[_0x1fff90(0xa9)](_0xa04eda);};}function respondWithFilteredResult(_0x3d7cbe,_0x43ca62){return function(_0x4d9e0f){const _0x49788c=a455_0x318d;if(_0x4d9e0f){const _0x5e260b=_0x4d9e0f['count'],_0x1822bc=_0x43ca62[_0x49788c(0xb5)];let _0x348cf7=_0x43ca62[_0x49788c(0xb5)]+_0x43ca62['limit'],_0x1695f9;return _0x348cf7>=_0x5e260b?(_0x348cf7=_0x5e260b,_0x1695f9=0xc8):_0x1695f9=0xce,_0x3d7cbe[_0x49788c(0x97)](_0x1695f9),_0x3d7cbe[_0x49788c(0x94)](_0x49788c(0xb7),_0x1822bc+'-'+_0x348cf7+'/'+_0x5e260b)[_0x49788c(0xa9)](_0x4d9e0f);}return null;};}function saveUpdates(_0x35dd6c){return function(_0x2fd7a2){const _0x19d866=a455_0x318d;if(_0x2fd7a2)return _0x2fd7a2[_0x19d866(0xc2)](_0x35dd6c)[_0x19d866(0xa0)](function(_0x4e4e7c){return _0x4e4e7c;});return null;};}function removeEntity(_0x474735){return function(_0xfb0955){const _0x41a6f9=a455_0x318d;if(_0xfb0955)return _0xfb0955[_0x41a6f9(0xa3)]()[_0x41a6f9(0xa0)](function(){const _0x56e011=_0x41a6f9,_0x49f211=_0xfb0955[_0x56e011(0x9c)]({'plain':!![]}),_0x36527b=_0x56e011(0xab);return db[_0x56e011(0xd7)][_0x56e011(0xa3)]({'where':{'type':_0x36527b,'resourceId':_0x49f211['id']}})[_0x56e011(0xa0)](function(){return _0xfb0955;});})[_0x41a6f9(0xa0)](function(){const _0x466242=_0x41a6f9;_0x474735[_0x466242(0x97)](0xcc)['end']();});};}function handleEntityNotFound(_0x233c18){return function(_0x55e9a5){const _0x22131d=a455_0x318d;return!_0x55e9a5&&_0x233c18[_0x22131d(0xa7)](0x194),_0x55e9a5;};}function handleError(_0xf7d7,_0x14949c){return _0x14949c=_0x14949c||0x1f4,function(_0x978f57){const _0x2d360f=a455_0x318d;logger[_0x2d360f(0xd1)](_0x978f57[_0x2d360f(0xe2)]),_0x978f57['name']&&delete _0x978f57[_0x2d360f(0x9b)],_0xf7d7[_0x2d360f(0x97)](_0x14949c)[_0x2d360f(0xe1)](_0x978f57);};}exports[a455_0x58c43f(0xaf)]=function(_0x31dfdf,_0x648baf){const _0x5cb7fb=a455_0x58c43f;let _0x219236={};const _0x31d4b4={},_0x1f2ea7={'count':0x0,'rows':[]},_0x1c6b5f=_[_0x5cb7fb(0xd4)](db['JscriptyProject'][_0x5cb7fb(0xb1)],function(_0x4718f6){const _0x321e39=_0x5cb7fb;return{'name':_0x4718f6[_0x321e39(0xdb)],'type':_0x4718f6[_0x321e39(0xc8)][_0x321e39(0x96)]};});_0x31d4b4['model']=_[_0x5cb7fb(0xd4)](_0x1c6b5f,'name'),_0x31d4b4[_0x5cb7fb(0x9e)]=_[_0x5cb7fb(0xca)](_0x31dfdf[_0x5cb7fb(0x9e)]),_0x31d4b4['filters']=_[_0x5cb7fb(0xb6)](_0x31d4b4[_0x5cb7fb(0xc5)],_0x31d4b4[_0x5cb7fb(0x9e)]),_0x219236[_0x5cb7fb(0x99)]=_[_0x5cb7fb(0xb6)](_0x31d4b4[_0x5cb7fb(0xc5)],qs['fields'](_0x31dfdf[_0x5cb7fb(0x9e)][_0x5cb7fb(0xdd)])),_0x219236[_0x5cb7fb(0x99)]=_0x219236[_0x5cb7fb(0x99)][_0x5cb7fb(0x9d)]?_0x219236['attributes']:_0x31d4b4['model'];typeof _0x31dfdf['query']['nolimit']===_0x5cb7fb(0xd6)&&(_0x219236[_0x5cb7fb(0xbb)]=qs['limit'](_0x31dfdf['query']['limit']),_0x219236[_0x5cb7fb(0xb5)]=qs[_0x5cb7fb(0xb5)](_0x31dfdf['query'][_0x5cb7fb(0xb5)]));_0x219236['order']=qs[_0x5cb7fb(0xe5)](_0x31dfdf[_0x5cb7fb(0x9e)][_0x5cb7fb(0xe5)]),_0x219236[_0x5cb7fb(0xcd)]=qs[_0x5cb7fb(0xc3)](_[_0x5cb7fb(0xd9)](_0x31dfdf[_0x5cb7fb(0x9e)],_0x31d4b4[_0x5cb7fb(0xc3)]),_0x1c6b5f);_0x31dfdf['query'][_0x5cb7fb(0xe4)]&&(_0x219236['where']=_[_0x5cb7fb(0xc1)](_0x219236[_0x5cb7fb(0xcd)],{[Op['or']]:_[_0x5cb7fb(0xd4)](_0x1c6b5f,function(_0x44f64d){const _0xe187ee=_0x5cb7fb;if(_0x44f64d['type']!==_0xe187ee(0xcb)){const _0x5967c4={};return _0x5967c4[_0x44f64d[_0xe187ee(0x9b)]]={[Op[_0xe187ee(0xda)]]:'%'+_0x31dfdf[_0xe187ee(0x9e)][_0xe187ee(0xe4)]+'%'},_0x5967c4;}})}));_0x219236=_[_0x5cb7fb(0xc1)]({},_0x219236,_0x31dfdf[_0x5cb7fb(0xa4)]);const _0x452e99={'where':_0x219236[_0x5cb7fb(0xcd)]};return db[_0x5cb7fb(0x88)][_0x5cb7fb(0xba)](_0x452e99)[_0x5cb7fb(0xa0)](function(_0x2d7f43){const _0x4f098d=_0x5cb7fb;return _0x1f2ea7[_0x4f098d(0xba)]=_0x2d7f43,_0x31dfdf['query'][_0x4f098d(0x89)]&&(_0x219236[_0x4f098d(0xbc)]=[{'all':!![]}]),db[_0x4f098d(0x88)][_0x4f098d(0xe6)](_0x219236);})['then'](function(_0x11eb6c){const _0x16903f=_0x5cb7fb;return _0x1f2ea7[_0x16903f(0xb3)]=_0x11eb6c,_0x1f2ea7;})[_0x5cb7fb(0xa0)](respondWithFilteredResult(_0x648baf,_0x219236))[_0x5cb7fb(0xc4)](handleError(_0x648baf,null));},exports[a455_0x58c43f(0xbf)]=function(_0x341b05,_0x740429){const _0x4db3c4=a455_0x58c43f;let _0x301575={'raw':![],'where':{'id':_0x341b05[_0x4db3c4(0x8c)]['id']}};const _0x21cc8={};return _0x21cc8[_0x4db3c4(0xc5)]=_[_0x4db3c4(0xca)](db[_0x4db3c4(0x88)]['rawAttributes']),_0x21cc8[_0x4db3c4(0x9e)]=_[_0x4db3c4(0xca)](_0x341b05['query']),_0x21cc8[_0x4db3c4(0xc3)]=_['intersection'](_0x21cc8[_0x4db3c4(0xc5)],_0x21cc8['query']),_0x301575[_0x4db3c4(0x99)]=_[_0x4db3c4(0xb6)](_0x21cc8[_0x4db3c4(0xc5)],qs[_0x4db3c4(0xdd)](_0x341b05['query'][_0x4db3c4(0xdd)])),_0x301575[_0x4db3c4(0x99)]=_0x301575['attributes'][_0x4db3c4(0x9d)]?_0x301575[_0x4db3c4(0x99)]:_0x21cc8['model'],_0x341b05[_0x4db3c4(0x9e)][_0x4db3c4(0x89)]&&(_0x301575[_0x4db3c4(0xbc)]=[{'all':!![]}]),_0x301575=_['merge']({},_0x301575,_0x341b05[_0x4db3c4(0xa4)]),db[_0x4db3c4(0x88)][_0x4db3c4(0xcc)](_0x301575)[_0x4db3c4(0xa0)](handleEntityNotFound(_0x740429,null))['then'](respondWithResult(_0x740429,null))['catch'](handleError(_0x740429,null));},exports[a455_0x58c43f(0xd3)]=function(_0x28da67,_0x4f25a6){const _0x547490=a455_0x58c43f;return db[_0x547490(0x88)][_0x547490(0xd3)](_0x28da67[_0x547490(0x9f)],{})['then'](function(_0x5bc924){const _0x2675e1=_0x547490,_0x1bd26e=_0x28da67[_0x2675e1(0x90)][_0x2675e1(0x9c)]({'plain':!![]});if(!_0x1bd26e)throw new Error(_0x2675e1(0x9a));if(_0x1bd26e['role']===_0x2675e1(0x90)){const _0x41740e=_0x5bc924[_0x2675e1(0x9c)]({'plain':!![]}),_0x298dfa=_0x2675e1(0xab);return db['UserProfileSection'][_0x2675e1(0xcc)]({'where':{'name':_0x298dfa,'userProfileId':_0x1bd26e[_0x2675e1(0xdf)]},'raw':!![]})['then'](function(_0x383e9b){const _0xf1aeb=_0x2675e1;return _0x383e9b&&_0x383e9b[_0xf1aeb(0xb8)]===0x0?db[_0xf1aeb(0xd7)][_0xf1aeb(0xd3)]({'name':_0x41740e['name'],'resourceId':_0x41740e['id'],'type':_0x383e9b['name'],'sectionId':_0x383e9b['id']},{})[_0xf1aeb(0xa0)](function(){return _0x5bc924;}):_0x5bc924;})[_0x2675e1(0xc4)](function(_0x4ba056){const _0x3b5020=_0x2675e1;logger[_0x3b5020(0xd1)](_0x3b5020(0x8b),_0x4ba056);throw _0x4ba056;});}return _0x5bc924;})[_0x547490(0xa0)](respondWithResult(_0x4f25a6,0xc9))[_0x547490(0xc4)](handleError(_0x4f25a6,null));},exports['clone']=function(_0x340648,_0x1020f5){const _0x5149f6=a455_0x58c43f;let _0x357b83={'where':{'id':_0x340648['params']['id']}};const _0x1b8f84={};return _0x1b8f84[_0x5149f6(0xc5)]=_[_0x5149f6(0xca)](db['JscriptyProject']['rawAttributes']),_0x357b83[_0x5149f6(0x99)]=_[_0x5149f6(0xb6)](_0x1b8f84[_0x5149f6(0xc5)],qs[_0x5149f6(0xdd)](_0x340648[_0x5149f6(0x9e)][_0x5149f6(0xdd)])),_0x357b83[_0x5149f6(0x99)]=_0x357b83[_0x5149f6(0x99)]['length']?_0x357b83[_0x5149f6(0x99)]:_0x1b8f84[_0x5149f6(0xc5)],_0x340648[_0x5149f6(0x9e)][_0x5149f6(0x89)]&&(_0x357b83[_0x5149f6(0xbc)]=[{'all':!![]}]),_0x357b83=_[_0x5149f6(0xc1)]({},_0x357b83,_0x340648[_0x5149f6(0xa4)]),db[_0x5149f6(0x88)]['findOne'](_0x357b83)[_0x5149f6(0xa0)](handleEntityNotFound(_0x1020f5,null))['then'](function(_0x454626){const _0x173149=_0x5149f6;if(_0x454626){let _0x4b4660=_0x454626[_0x173149(0x9c)]({'plain':!![]});return _0x4b4660=qs['omit'](_0x4b4660,['id',_0x173149(0xe0),_0x173149(0x92)]),_0x340648[_0x173149(0x9f)]=_['omit'](_0x340648[_0x173149(0x9f)],['id',_0x173149(0xe0),_0x173149(0x92)]),db['JscriptyProject'][_0x173149(0xd3)](_[_0x173149(0xc1)](_0x4b4660,_0x340648[_0x173149(0x9f)]),{'include':_0x340648['query'][_0x173149(0x89)]?[{'all':!![]}]:undefined})[_0x173149(0xa0)](function(_0x3fe3c4){const _0x5ddf30=_0x173149,_0xd7f31c=_0x340648[_0x5ddf30(0x90)]['get']({'plain':!![]});if(!_0xd7f31c)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0xd7f31c[_0x5ddf30(0xc9)]===_0x5ddf30(0x90)){const _0x335358=_0x3fe3c4[_0x5ddf30(0x9c)]({'plain':!![]}),_0x263efe='Projects';return db[_0x5ddf30(0xa2)][_0x5ddf30(0xcc)]({'where':{'name':_0x263efe,'userProfileId':_0xd7f31c[_0x5ddf30(0xdf)]},'raw':!![]})[_0x5ddf30(0xa0)](function(_0x1e71b5){const _0x5d090b=_0x5ddf30;return _0x1e71b5&&_0x1e71b5[_0x5d090b(0xb8)]===0x0?db[_0x5d090b(0xd7)][_0x5d090b(0xd3)]({'name':_0x335358[_0x5d090b(0x9b)],'resourceId':_0x335358['id'],'type':_0x1e71b5[_0x5d090b(0x9b)],'sectionId':_0x1e71b5['id']},{})[_0x5d090b(0xa0)](function(){return _0x3fe3c4;}):_0x3fe3c4;})[_0x5ddf30(0xc4)](function(_0x541f7b){const _0x2537ab=_0x5ddf30;logger['error'](_0x2537ab(0x8b),_0x541f7b);throw _0x541f7b;});}return _0x3fe3c4;});}})[_0x5149f6(0xa0)](respondWithResult(_0x1020f5,0xc9))[_0x5149f6(0xc4)](handleError(_0x1020f5,null));},exports[a455_0x58c43f(0xc2)]=function(_0x37b964,_0x25ba66){const _0x4d4140=a455_0x58c43f;return _0x37b964[_0x4d4140(0x9f)]['id']&&delete _0x37b964[_0x4d4140(0x9f)]['id'],db[_0x4d4140(0x88)][_0x4d4140(0xcc)]({'where':{'id':_0x37b964[_0x4d4140(0x8c)]['id']}})[_0x4d4140(0xa0)](handleEntityNotFound(_0x25ba66,null))[_0x4d4140(0xa0)](saveUpdates(_0x37b964[_0x4d4140(0x9f)],null))[_0x4d4140(0xa0)](respondWithResult(_0x25ba66,null))['catch'](handleError(_0x25ba66,null));},exports[a455_0x58c43f(0xa3)]=function(_0x2c3d36,_0x4f1dd0){const _0x428341=a455_0x58c43f;return db[_0x428341(0x88)]['findOne']({'where':{'id':_0x2c3d36['params']['id']}})[_0x428341(0xa0)](handleEntityNotFound(_0x4f1dd0,null))[_0x428341(0xa0)](removeEntity(_0x4f1dd0,null))[_0x428341(0xc4)](handleError(_0x4f1dd0,null));},exports[a455_0x58c43f(0xaa)]=function(_0x3781bc,_0x318453){const _0x5876f7=a455_0x58c43f;let _0x226fd3={'raw':!![],'where':{}};const _0x51bd78={},_0x515bf8={'count':0x0,'rows':[]};return db[_0x5876f7(0x88)][_0x5876f7(0xcc)]({'where':{'id':_0x3781bc[_0x5876f7(0x8c)]['id']}})[_0x5876f7(0xa0)](handleEntityNotFound(_0x318453,null))[_0x5876f7(0xa0)](function(_0x3c93f5){const _0x5234fe=_0x5876f7;if(_0x3c93f5)return _0x51bd78['model']=_[_0x5234fe(0xca)](db['JscriptySessionReport'][_0x5234fe(0xb1)]),_0x51bd78['query']=_[_0x5234fe(0xca)](_0x3781bc[_0x5234fe(0x9e)]),_0x51bd78[_0x5234fe(0xc3)]=_[_0x5234fe(0xb6)](_0x51bd78[_0x5234fe(0xc5)],_0x51bd78[_0x5234fe(0x9e)]),_0x226fd3['attributes']=_['intersection'](_0x51bd78[_0x5234fe(0xc5)],qs[_0x5234fe(0xdd)](_0x3781bc[_0x5234fe(0x9e)][_0x5234fe(0xdd)])),_0x226fd3[_0x5234fe(0x99)]=_0x226fd3[_0x5234fe(0x99)][_0x5234fe(0x9d)]?_0x226fd3['attributes']:_0x51bd78[_0x5234fe(0xc5)],typeof _0x3781bc['query']['nolimit']==='undefined'&&(_0x226fd3[_0x5234fe(0xbb)]=qs[_0x5234fe(0xbb)](_0x3781bc[_0x5234fe(0x9e)]['limit']),_0x226fd3[_0x5234fe(0xb5)]=qs['offset'](_0x3781bc[_0x5234fe(0x9e)][_0x5234fe(0xb5)])),_0x226fd3['order']=qs[_0x5234fe(0xe5)](_0x3781bc[_0x5234fe(0x9e)][_0x5234fe(0xe5)]),_0x226fd3[_0x5234fe(0xcd)]=qs[_0x5234fe(0xc3)](_[_0x5234fe(0xd9)](_0x3781bc[_0x5234fe(0x9e)],_0x51bd78[_0x5234fe(0xc3)])),_0x226fd3['where'][_0x5234fe(0xad)]=_0x3c93f5['id'],_0x3781bc[_0x5234fe(0x9e)][_0x5234fe(0xe4)]&&(_0x226fd3[_0x5234fe(0xcd)]=_['merge'](_0x226fd3[_0x5234fe(0xcd)],{[Op['or']]:_[_0x5234fe(0xd4)](_0x226fd3[_0x5234fe(0x99)],function(_0x2b82e0){const _0x1a0f94=_0x5234fe,_0x57e856={};return _0x57e856[_0x2b82e0]={[Op[_0x1a0f94(0xda)]]:'%'+_0x3781bc[_0x1a0f94(0x9e)][_0x1a0f94(0xe4)]+'%'},_0x57e856;})})),_0x226fd3=_[_0x5234fe(0xc1)]({},_0x226fd3,_0x3781bc[_0x5234fe(0xa4)]),db[_0x5234fe(0xae)][_0x5234fe(0xba)]({'where':_0x226fd3[_0x5234fe(0xcd)]})[_0x5234fe(0xa0)](function(_0x22e428){const _0x5f296d=_0x5234fe;return _0x515bf8['count']=_0x22e428,_0x3781bc['query']['includeAll']&&(_0x226fd3['include']=[{'all':!![]}]),db[_0x5f296d(0xae)][_0x5f296d(0xe6)](_0x226fd3);})[_0x5234fe(0xa0)](function(_0x33798d){const _0x1f88da=_0x5234fe;return _0x515bf8[_0x1f88da(0xb3)]=_0x33798d,_0x515bf8;});})['then'](respondWithFilteredResult(_0x318453,_0x226fd3))['catch'](handleError(_0x318453,null));},exports[a455_0x58c43f(0xdc)]=function(_0x431fd,_0xcc356f){const _0x64592f=a455_0x58c43f;let _0x4c2e01={'raw':!![],'where':{}};const _0xce1233={},_0x4f5ff7={'count':0x0,'rows':[]};return db[_0x64592f(0x88)][_0x64592f(0xcc)]({'where':{'id':_0x431fd[_0x64592f(0x8c)]['id']}})[_0x64592f(0xa0)](handleEntityNotFound(_0xcc356f,null))[_0x64592f(0xa0)](function(_0x5384e4){const _0x244957=_0x64592f;if(_0x5384e4)return _0xce1233['model']=_[_0x244957(0xca)](db[_0x244957(0xbe)]['rawAttributes']),_0xce1233[_0x244957(0x9e)]=_[_0x244957(0xca)](_0x431fd[_0x244957(0x9e)]),_0xce1233[_0x244957(0xc3)]=_[_0x244957(0xb6)](_0xce1233[_0x244957(0xc5)],_0xce1233[_0x244957(0x9e)]),_0x4c2e01[_0x244957(0x99)]=_[_0x244957(0xb6)](_0xce1233['model'],qs[_0x244957(0xdd)](_0x431fd[_0x244957(0x9e)][_0x244957(0xdd)])),_0x4c2e01['attributes']=_0x4c2e01[_0x244957(0x99)][_0x244957(0x9d)]?_0x4c2e01[_0x244957(0x99)]:_0xce1233[_0x244957(0xc5)],typeof _0x431fd['query'][_0x244957(0xd2)]===_0x244957(0xd6)&&(_0x4c2e01[_0x244957(0xbb)]=qs[_0x244957(0xbb)](_0x431fd['query'][_0x244957(0xbb)]),_0x4c2e01[_0x244957(0xb5)]=qs['offset'](_0x431fd['query'][_0x244957(0xb5)])),_0x4c2e01[_0x244957(0xa8)]=qs['sort'](_0x431fd[_0x244957(0x9e)][_0x244957(0xe5)]),_0x4c2e01[_0x244957(0xcd)]=qs[_0x244957(0xc3)](_[_0x244957(0xd9)](_0x431fd['query'],_0xce1233[_0x244957(0xc3)])),_0x4c2e01[_0x244957(0xcd)]['ProjectId']=_0x5384e4['id'],_0x431fd[_0x244957(0x9e)][_0x244957(0xe4)]&&(_0x4c2e01[_0x244957(0xcd)]=_['merge'](_0x4c2e01['where'],{[Op['or']]:_[_0x244957(0xd4)](_0x4c2e01[_0x244957(0x99)],function(_0x3554e8){const _0x5b24e4=_0x244957,_0x2d20a2={};return _0x2d20a2[_0x3554e8]={[Op[_0x5b24e4(0xda)]]:'%'+_0x431fd[_0x5b24e4(0x9e)][_0x5b24e4(0xe4)]+'%'},_0x2d20a2;})})),_0x4c2e01=_[_0x244957(0xc1)]({},_0x4c2e01,_0x431fd[_0x244957(0xa4)]),db['JscriptyAnswerReport'][_0x244957(0xba)]({'where':_0x4c2e01[_0x244957(0xcd)]})[_0x244957(0xa0)](function(_0x546d71){const _0xf93bac=_0x244957;return _0x4f5ff7[_0xf93bac(0xba)]=_0x546d71,_0x431fd[_0xf93bac(0x9e)][_0xf93bac(0x89)]&&(_0x4c2e01['include']=[{'all':!![]}]),db['JscriptyAnswerReport'][_0xf93bac(0xe6)](_0x4c2e01);})['then'](function(_0x502a96){const _0xea339=_0x244957;return _0x4f5ff7[_0xea339(0xb3)]=_0x502a96,_0x4f5ff7;});})['then'](respondWithFilteredResult(_0xcc356f,_0x4c2e01))['catch'](handleError(_0xcc356f,null));};function char(_0x10f426){const _0x4eaf1e=a455_0x58c43f;return _0x4eaf1e(0x98)===typeof _0x10f426?String['fromCharCode']['apply'](null,arguments):_0x10f426;}function needsEncapsulation(_0x1aa9cd){const _0xb9e1ac=a455_0x58c43f;return!!_0x1aa9cd&&(_0x1aa9cd[_0xb9e1ac(0xb9)]()[_0xb9e1ac(0xc0)](char(0xd))>=0x0||_0x1aa9cd[_0xb9e1ac(0xb9)]()[_0xb9e1ac(0xc0)](char(0xa))>=0x0||_0x1aa9cd[_0xb9e1ac(0xb9)]()[_0xb9e1ac(0xc0)](char(0x2c))>=0x0||_0x1aa9cd[_0xb9e1ac(0xb9)]()[_0xb9e1ac(0xc0)](char(0x22))>=0x0);}function encapsulate(_0x5e70d8){const _0xb4b818=a455_0x58c43f,_0x420977=char(0x22),_0x45c96e='\x5c'+char(0x22),_0x152d5b=_0x5e70d8[_0xb4b818(0xb9)]()[_0xb4b818(0xce)](new RegExp(_0x420977,'g'),_0x45c96e);return _0x420977+_0x152d5b+_0x420977;}exports['getSummary']=function(_0x17ccdc,_0x447ecf){const _0x124199=a455_0x58c43f;let _0x34ea29,_0x52b317;const _0xb1ab67={'where':{'ProjectId':_0x17ccdc[_0x124199(0x8c)]['id']}};return _0x17ccdc['query'][_0x124199(0xb0)]&&(_0xb1ab67[_0x124199(0xcd)][_0x124199(0xe3)]=JSON[_0x124199(0xd0)](_0x17ccdc[_0x124199(0x9e)][_0x124199(0xb0)])),db['JscriptySessionReport'][_0x124199(0xe6)](_0xb1ab67)[_0x124199(0xa0)](handleEntityNotFound(_0x447ecf,null))['then'](function(_0x1123ef){if(_0x1123ef)return _0x34ea29=_0x1123ef,db['JscriptyQuestionReport']['findAll']({'where':{'SessionId':{[Op['in']]:_['map'](_0x34ea29,'id')},'ProjectId':_0x17ccdc['params']['id']},'order':'-createdAt'});})['then'](handleEntityNotFound(_0x447ecf,null))['then'](function(_0x5e4fde){const _0x49eef4=_0x124199;if(_0x5e4fde){_0x52b317=_0x5e4fde;const _0xf4cc20={};for(let _0x5953ae=0x0,_0x5bb220=_0x52b317[_0x49eef4(0x9d)];_0x5953ae<_0x5bb220;_0x5953ae++){typeof _0xf4cc20[_0x52b317[_0x5953ae][_0x49eef4(0x8f)]]===_0x49eef4(0xd6)&&(_0xf4cc20[_0x52b317[_0x5953ae]['questionId']]=needsEncapsulation(_0x52b317[_0x5953ae]['question'])?encapsulate(_0x52b317[_0x5953ae]['question']):_0x52b317[_0x5953ae]['question']);}const _0x15b6ba=[];let _0x4a2076={};for(let _0x344884=0x0,_0x3642cc=_0x34ea29[_0x49eef4(0x9d)];_0x344884<_0x3642cc;_0x344884++){_0x4a2076={'ProjectId':_0x17ccdc[_0x49eef4(0x8c)]['id'],'SessionId':_0x34ea29[_0x344884]['id'],'StartTime':moment(_0x34ea29[_0x344884]['starttime'])['format'](_0x49eef4(0xc6))};for(let _0x3be979=0x0,_0x34d5df=_0x52b317[_0x49eef4(0x9d)];_0x3be979<_0x34d5df;_0x3be979++){_0x52b317[_0x3be979]['SessionId']===_0x34ea29[_0x344884]['id']&&typeof _0xf4cc20[_0x52b317[_0x3be979]['questionId']]!=='undefined'&&(_0x4a2076[_0xf4cc20[_0x52b317[_0x3be979]['questionId']]]=_0x52b317[_0x3be979][_0x49eef4(0xa5)]);}for(const _0x355501 in _0xf4cc20){typeof _0x4a2076[_0xf4cc20[_0x355501]]===_0x49eef4(0xd6)&&(_0x4a2076[_0xf4cc20[_0x355501]]=null);}_0x15b6ba[_0x49eef4(0xde)](_0x4a2076);}return _0x15b6ba;}})[_0x124199(0xa0)](function(_0x12ed7d){const _0x747ee5=_0x124199;if(!_[_0x747ee5(0xc7)](_0x12ed7d)){const _0x5c7ef1=toCsv(_0x12ed7d),_0x348fac=Date['now']();return fs[_0x747ee5(0xd5)](util['format']('/tmp/Jscripty_Project_%d_Summary_%s.csv',_0x17ccdc[_0x747ee5(0x8c)]['id'],_0x348fac),_0x5c7ef1),_0x447ecf[_0x747ee5(0xbd)](_0x747ee5(0xac),_0x747ee5(0x8d)+util[_0x747ee5(0xcf)]('Jscripty_Project_%d_Summary_%s.csv',_0x17ccdc['params']['id'],_0x348fac)),_0x447ecf[_0x747ee5(0xbd)](_0x747ee5(0x91),_0x747ee5(0xb2)),_0x447ecf[_0x747ee5(0x8a)](util[_0x747ee5(0xcf)](_0x747ee5(0xa6),_0x17ccdc['params']['id'],_0x348fac));}else return _0x447ecf['sendStatus'](0xcc);})[_0x124199(0xc4)](handleError(_0x447ecf,null));}; \ No newline at end of file diff --git a/server/api/jscriptyProject/jscriptyProject.model.js b/server/api/jscriptyProject/jscriptyProject.model.js index e3e8dd7..a4a51f7 100644 --- a/server/api/jscriptyProject/jscriptyProject.model.js +++ b/server/api/jscriptyProject/jscriptyProject.model.js @@ -1 +1 @@ -const a379_0x5aa8=['exports','jscripty_projects','JscriptyProject','define','./jscriptyProject.attributes'];(function(_0x4a2e17,_0x5aa815){const _0x13ff7a=function(_0x32b380){while(--_0x32b380){_0x4a2e17['push'](_0x4a2e17['shift']());}};_0x13ff7a(++_0x5aa815);}(a379_0x5aa8,0xed));const a379_0x13ff=function(_0x4a2e17,_0x5aa815){_0x4a2e17=_0x4a2e17-0x0;let _0x13ff7a=a379_0x5aa8[_0x4a2e17];return _0x13ff7a;};const _0x1e6f29=a379_0x13ff;'use strict';const attributes=require(_0x1e6f29('0x2'));module[_0x1e6f29('0x3')]=function(_0x32b380){const _0x309361=_0x1e6f29,_0x479200=_0x32b380[_0x309361('0x1')](_0x309361('0x0'),attributes,{'tableName':_0x309361('0x4'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x479200;}; \ No newline at end of file +const a456_0x58af=['./jscriptyProject.options','init','exports','./jscriptyProject.attributes'];(function(_0x50d61c,_0x41e11b){const _0x58af2d=function(_0xb97b3d){while(--_0xb97b3d){_0x50d61c['push'](_0x50d61c['shift']());}};_0x58af2d(++_0x41e11b);}(a456_0x58af,0x168));const a456_0xb97b=function(_0x50d61c,_0x41e11b){_0x50d61c=_0x50d61c-0x151;let _0x58af2d=a456_0x58af[_0x50d61c];return _0x58af2d;};const a456_0x2b2da3=a456_0xb97b;'use strict';const {Model}=require('sequelize'),{attributes}=require(a456_0x2b2da3(0x154)),{options}=require(a456_0x2b2da3(0x151));class JscriptyProject extends Model{}function init(_0x5e851c,_0x4fab89){const _0x363374=options(_0x5e851c),_0x5ea9d5=typeof _0x4fab89==='function'?_0x4fab89(_0x363374):_0x363374;return JscriptyProject['init'](attributes,_0x5ea9d5),JscriptyProject;}module[a456_0x2b2da3(0x153)]['JscriptyProject']=JscriptyProject,module[a456_0x2b2da3(0x153)][a456_0x2b2da3(0x152)]=init; \ No newline at end of file diff --git a/server/api/jscriptyProject/jscriptyProject.options.js b/server/api/jscriptyProject/jscriptyProject.options.js new file mode 100644 index 0000000..557a234 --- /dev/null +++ b/server/api/jscriptyProject/jscriptyProject.options.js @@ -0,0 +1 @@ +var a457_0x5f17=['jscripty_projects','options','exports'];(function(_0x1baad9,_0x37f0e6){var _0x5f1752=function(_0x13b918){while(--_0x13b918){_0x1baad9['push'](_0x1baad9['shift']());}};_0x5f1752(++_0x37f0e6);}(a457_0x5f17,0x8d));var a457_0x13b9=function(_0x1baad9,_0x37f0e6){_0x1baad9=_0x1baad9-0x1ed;var _0x5f1752=a457_0x5f17[_0x1baad9];return _0x5f1752;};var a457_0x4f8aad=a457_0x13b9;function options(_0x3af88f){var _0x1496dc=a457_0x13b9;return{'sequelize':_0x3af88f,'tableName':_0x1496dc(0x1ed),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a457_0x4f8aad(0x1ef)][a457_0x4f8aad(0x1ee)]=options; \ No newline at end of file diff --git a/server/api/jscriptyQuestionReport/index.js b/server/api/jscriptyQuestionReport/index.js index 4158f61..bdf1bb4 100644 --- a/server/api/jscriptyQuestionReport/index.js +++ b/server/api/jscriptyQuestionReport/index.js @@ -1 +1 @@ -const a380_0x2f55=['destroy','index','delete','create','Router','get','update','exports','show','/describe','./jscriptyQuestionReport.controller','post','/:id','describe','isAuthenticated'];(function(_0x77a038,_0x2f55df){const _0x1f5645=function(_0x48caf1){while(--_0x48caf1){_0x77a038['push'](_0x77a038['shift']());}};_0x1f5645(++_0x2f55df);}(a380_0x2f55,0x8f));const a380_0x1f56=function(_0x77a038,_0x2f55df){_0x77a038=_0x77a038-0x0;let _0x1f5645=a380_0x2f55[_0x77a038];return _0x1f5645;};const _0x4ed9a9=a380_0x1f56;'use strict';const express=require('express'),router=express[_0x4ed9a9('0xb')](),auth=require('../../components/auth/service'),controller=require(_0x4ed9a9('0x2'));router[_0x4ed9a9('0xc')]('/',auth['isAuthenticated'](),controller[_0x4ed9a9('0x8')]),router[_0x4ed9a9('0xc')](_0x4ed9a9('0x1'),auth[_0x4ed9a9('0x6')](),controller[_0x4ed9a9('0x5')]),router[_0x4ed9a9('0xc')](_0x4ed9a9('0x4'),auth['isAuthenticated'](),controller[_0x4ed9a9('0x0')]),router[_0x4ed9a9('0x3')]('/',auth[_0x4ed9a9('0x6')](),controller[_0x4ed9a9('0xa')]),router['put'](_0x4ed9a9('0x4'),auth[_0x4ed9a9('0x6')](),controller[_0x4ed9a9('0xd')]),router[_0x4ed9a9('0x9')](_0x4ed9a9('0x4'),auth[_0x4ed9a9('0x6')](),controller[_0x4ed9a9('0x7')]),module[_0x4ed9a9('0xe')]=router; \ No newline at end of file +const a458_0x3e57=['../../components/auth/service','describe','/describe','index','update','express','/:id','destroy','put','show','delete','exports','post','create','./jscriptyQuestionReport.controller','get','isAuthenticated'];(function(_0x495c4a,_0xfeed1d){const _0x3e57a0=function(_0x3cb6ee){while(--_0x3cb6ee){_0x495c4a['push'](_0x495c4a['shift']());}};_0x3e57a0(++_0xfeed1d);}(a458_0x3e57,0x75));const a458_0x3cb6=function(_0x495c4a,_0xfeed1d){_0x495c4a=_0x495c4a-0x1b2;let _0x3e57a0=a458_0x3e57[_0x495c4a];return _0x3e57a0;};const a458_0x4f055d=a458_0x3cb6;'use strict';const express=require(a458_0x4f055d(0x1b9)),router=express['Router'](),auth=require(a458_0x4f055d(0x1b4)),controller=require(a458_0x4f055d(0x1c2));router['get']('/',auth[a458_0x4f055d(0x1b3)](),controller[a458_0x4f055d(0x1b7)]),router[a458_0x4f055d(0x1b2)](a458_0x4f055d(0x1b6),auth['isAuthenticated'](),controller[a458_0x4f055d(0x1b5)]),router[a458_0x4f055d(0x1b2)](a458_0x4f055d(0x1ba),auth[a458_0x4f055d(0x1b3)](),controller[a458_0x4f055d(0x1bd)]),router[a458_0x4f055d(0x1c0)]('/',auth[a458_0x4f055d(0x1b3)](),controller[a458_0x4f055d(0x1c1)]),router[a458_0x4f055d(0x1bc)](a458_0x4f055d(0x1ba),auth[a458_0x4f055d(0x1b3)](),controller[a458_0x4f055d(0x1b8)]),router[a458_0x4f055d(0x1be)](a458_0x4f055d(0x1ba),auth['isAuthenticated'](),controller[a458_0x4f055d(0x1bb)]),module[a458_0x4f055d(0x1bf)]=router; \ No newline at end of file diff --git a/server/api/jscriptyQuestionReport/jscriptyQuestionReport.attributes.js b/server/api/jscriptyQuestionReport/jscriptyQuestionReport.attributes.js index 5f15deb..cfc8ee1 100644 --- a/server/api/jscriptyQuestionReport/jscriptyQuestionReport.attributes.js +++ b/server/api/jscriptyQuestionReport/jscriptyQuestionReport.attributes.js @@ -1 +1 @@ -const a381_0x4ff3=['STRING','sequelize'];(function(_0x441414,_0x4ff396){const _0x1c3016=function(_0x280159){while(--_0x280159){_0x441414['push'](_0x441414['shift']());}};_0x1c3016(++_0x4ff396);}(a381_0x4ff3,0x169));const a381_0x1c30=function(_0x441414,_0x4ff396){_0x441414=_0x441414-0x0;let _0x1c3016=a381_0x4ff3[_0x441414];return _0x1c3016;};const _0x2e507e=a381_0x1c30;'use strict';const Sequelize=require(_0x2e507e('0x0'));module['exports']={'question':{'type':Sequelize['STRING']},'answer':{'type':Sequelize['TEXT']('long')},'membername':{'type':Sequelize['STRING']},'projectname':{'type':Sequelize[_0x2e507e('0x1')]},'queue':{'type':Sequelize[_0x2e507e('0x1')]},'uniqueid':{'type':Sequelize[_0x2e507e('0x1')]},'calleridname':{'type':Sequelize[_0x2e507e('0x1')]},'calleridnum':{'type':Sequelize[_0x2e507e('0x1')]},'questionId':{'type':Sequelize[_0x2e507e('0x1')]}}; \ No newline at end of file +const a459_0x437d=['TEXT','STRING','exports','sequelize'];(function(_0x2499e6,_0xc9f175){const _0x437d28=function(_0x4c73cc){while(--_0x4c73cc){_0x2499e6['push'](_0x2499e6['shift']());}};_0x437d28(++_0xc9f175);}(a459_0x437d,0x165));const a459_0x4c73=function(_0x2499e6,_0xc9f175){_0x2499e6=_0x2499e6-0x13e;let _0x437d28=a459_0x437d[_0x2499e6];return _0x437d28;};const a459_0x1ba374=a459_0x4c73;'use strict';const {DataTypes}=require(a459_0x1ba374(0x140)),attributes={'question':{'type':DataTypes[a459_0x1ba374(0x13e)]},'answer':{'type':DataTypes[a459_0x1ba374(0x141)]({'length':'long'})},'membername':{'type':DataTypes[a459_0x1ba374(0x13e)]},'projectname':{'type':DataTypes[a459_0x1ba374(0x13e)]},'queue':{'type':DataTypes[a459_0x1ba374(0x13e)]},'uniqueid':{'type':DataTypes[a459_0x1ba374(0x13e)]},'calleridname':{'type':DataTypes['STRING']},'calleridnum':{'type':DataTypes[a459_0x1ba374(0x13e)]},'questionId':{'type':DataTypes['STRING']}};module[a459_0x1ba374(0x13f)]['attributes']=attributes; \ No newline at end of file diff --git a/server/api/jscriptyQuestionReport/jscriptyQuestionReport.controller.js b/server/api/jscriptyQuestionReport/jscriptyQuestionReport.controller.js index 0ba729c..fe23e62 100644 --- a/server/api/jscriptyQuestionReport/jscriptyQuestionReport.controller.js +++ b/server/api/jscriptyQuestionReport/jscriptyQuestionReport.controller.js @@ -1 +1 @@ -const a382_0x5a55=['../../config/logger','rawAttributes','query','send','lodash','where','includeAll','name','sort','findOne','sequelize','nolimit','update','VIRTUAL','Content-Range','create','attributes','options','destroy','params','filters','json','undefined','model','map','JscriptyQuestionReport','intersection','offset','count','pick','fields','then','filter','merge','body','status','index','stack','show','length','rows','findAll','describe','api','set','catch','keys','limit','like','../../mysqldb'];(function(_0x2ec205,_0x5a5573){const _0x4cf67d=function(_0xae9b68){while(--_0xae9b68){_0x2ec205['push'](_0x2ec205['shift']());}};_0x4cf67d(++_0x5a5573);}(a382_0x5a55,0x94));const a382_0x4cf6=function(_0x2ec205,_0x5a5573){_0x2ec205=_0x2ec205-0x0;let _0x4cf67d=a382_0x5a55[_0x2ec205];return _0x4cf67d;};const _0x52a9ca=a382_0x4cf6;'use strict';const _=require(_0x52a9ca('0x6')),qs=require('../../components/parsers/qs'),logger=require(_0x52a9ca('0x2'))(_0x52a9ca('0x2d')),db=require(_0x52a9ca('0x1'))['db'],{Op}=require(_0x52a9ca('0xc'));function respondWithResult(_0xae9b68,_0x143f44){return _0x143f44=_0x143f44||0xc8,function(_0x5dcec2){const _0x28715f=a382_0x4cf6;if(_0x5dcec2)return _0xae9b68[_0x28715f('0x25')](_0x143f44)[_0x28715f('0x17')](_0x5dcec2);};}function respondWithFilteredResult(_0x9649ec,_0x4a6db7){return function(_0x2d798b){const _0x4edfc2=a382_0x4cf6;if(_0x2d798b){const _0x56d0bf=_0x2d798b[_0x4edfc2('0x1e')],_0x3e125a=_0x4a6db7[_0x4edfc2('0x1d')];let _0x575bd6=_0x4a6db7[_0x4edfc2('0x1d')]+_0x4a6db7[_0x4edfc2('0x31')],_0x45290e;return _0x575bd6>=_0x56d0bf?(_0x575bd6=_0x56d0bf,_0x45290e=0xc8):_0x45290e=0xce,_0x9649ec[_0x4edfc2('0x25')](_0x45290e),_0x9649ec[_0x4edfc2('0x2e')](_0x4edfc2('0x10'),_0x3e125a+'-'+_0x575bd6+'/'+_0x56d0bf)[_0x4edfc2('0x17')](_0x2d798b);}return null;};}function saveUpdates(_0x185a47){return function(_0x41d775){const _0xc1baf7=a382_0x4cf6;if(_0x41d775)return _0x41d775[_0xc1baf7('0xe')](_0x185a47)['then'](function(_0x530de1){return _0x530de1;});return null;};}function removeEntity(_0x412662){return function(_0x3ab0a7){const _0x370930=a382_0x4cf6;if(_0x3ab0a7)return _0x3ab0a7[_0x370930('0x14')]()[_0x370930('0x21')](function(){const _0x128d11=_0x370930;_0x412662[_0x128d11('0x25')](0xcc)['end']();});};}function handleEntityNotFound(_0x279d23){return function(_0x285979){return!_0x285979&&_0x279d23['sendStatus'](0x194),_0x285979;};}function handleError(_0x2155ee,_0x3afa43){return _0x3afa43=_0x3afa43||0x1f4,function(_0x208202){const _0x5abde7=a382_0x4cf6;logger['error'](_0x208202[_0x5abde7('0x27')]),_0x208202['name']&&delete _0x208202[_0x5abde7('0x9')],_0x2155ee[_0x5abde7('0x25')](_0x3afa43)[_0x5abde7('0x5')](_0x208202);};}exports[_0x52a9ca('0x26')]=function(_0x396733,_0x12f53f){const _0x2d04db=_0x52a9ca;let _0x30fef8={};const _0x449928={},_0x31e27f={'count':0x0,'rows':[]},_0x228425=_['map'](db[_0x2d04db('0x1b')][_0x2d04db('0x3')],function(_0x2f2a62){return{'name':_0x2f2a62['fieldName'],'type':_0x2f2a62['type']['key']};});_0x449928[_0x2d04db('0x19')]=_[_0x2d04db('0x1a')](_0x228425,_0x2d04db('0x9')),_0x449928[_0x2d04db('0x4')]=_[_0x2d04db('0x30')](_0x396733[_0x2d04db('0x4')]),_0x449928[_0x2d04db('0x16')]=_[_0x2d04db('0x1c')](_0x449928[_0x2d04db('0x19')],_0x449928['query']),_0x30fef8[_0x2d04db('0x12')]=_[_0x2d04db('0x1c')](_0x449928[_0x2d04db('0x19')],qs['fields'](_0x396733['query'][_0x2d04db('0x20')])),_0x30fef8[_0x2d04db('0x12')]=_0x30fef8[_0x2d04db('0x12')]['length']?_0x30fef8[_0x2d04db('0x12')]:_0x449928[_0x2d04db('0x19')];typeof _0x396733[_0x2d04db('0x4')][_0x2d04db('0xd')]===_0x2d04db('0x18')&&(_0x30fef8[_0x2d04db('0x31')]=qs[_0x2d04db('0x31')](_0x396733[_0x2d04db('0x4')][_0x2d04db('0x31')]),_0x30fef8[_0x2d04db('0x1d')]=qs[_0x2d04db('0x1d')](_0x396733[_0x2d04db('0x4')][_0x2d04db('0x1d')]));_0x30fef8['order']=qs[_0x2d04db('0xa')](_0x396733[_0x2d04db('0x4')][_0x2d04db('0xa')]),_0x30fef8[_0x2d04db('0x7')]=qs[_0x2d04db('0x16')](_[_0x2d04db('0x1f')](_0x396733['query'],_0x449928[_0x2d04db('0x16')]),_0x228425);_0x396733[_0x2d04db('0x4')][_0x2d04db('0x22')]&&(_0x30fef8[_0x2d04db('0x7')]=_[_0x2d04db('0x23')](_0x30fef8[_0x2d04db('0x7')],{[Op['or']]:_[_0x2d04db('0x1a')](_0x228425,function(_0x3b5057){const _0x4f2d8f=_0x2d04db;if(_0x3b5057['type']!==_0x4f2d8f('0xf')){const _0x5b7cf4={};return _0x5b7cf4[_0x3b5057['name']]={[Op[_0x4f2d8f('0x0')]]:'%'+_0x396733['query'][_0x4f2d8f('0x22')]+'%'},_0x5b7cf4;}})}));_0x30fef8=_[_0x2d04db('0x23')]({},_0x30fef8,_0x396733['options']);const _0x3e851e={'where':_0x30fef8['where']};return db[_0x2d04db('0x1b')][_0x2d04db('0x1e')](_0x3e851e)[_0x2d04db('0x21')](function(_0x51ce4e){const _0x325daa=_0x2d04db;return _0x31e27f[_0x325daa('0x1e')]=_0x51ce4e,_0x396733['query'][_0x325daa('0x8')]&&(_0x30fef8['include']=[{'all':!![]}]),db[_0x325daa('0x1b')][_0x325daa('0x2b')](_0x30fef8);})[_0x2d04db('0x21')](function(_0x1b2bab){const _0x413912=_0x2d04db;return _0x31e27f[_0x413912('0x2a')]=_0x1b2bab,_0x31e27f;})['then'](respondWithFilteredResult(_0x12f53f,_0x30fef8))[_0x2d04db('0x2f')](handleError(_0x12f53f,null));},exports[_0x52a9ca('0x28')]=function(_0x37d2ff,_0x396894){const _0x5daaba=_0x52a9ca;let _0x19da78={'raw':!![],'where':{'id':_0x37d2ff['params']['id']}};const _0x58cea5={};return _0x58cea5[_0x5daaba('0x19')]=_['keys'](db[_0x5daaba('0x1b')][_0x5daaba('0x3')]),_0x58cea5[_0x5daaba('0x4')]=_[_0x5daaba('0x30')](_0x37d2ff[_0x5daaba('0x4')]),_0x58cea5[_0x5daaba('0x16')]=_['intersection'](_0x58cea5[_0x5daaba('0x19')],_0x58cea5['query']),_0x19da78[_0x5daaba('0x12')]=_[_0x5daaba('0x1c')](_0x58cea5[_0x5daaba('0x19')],qs[_0x5daaba('0x20')](_0x37d2ff[_0x5daaba('0x4')][_0x5daaba('0x20')])),_0x19da78[_0x5daaba('0x12')]=_0x19da78['attributes'][_0x5daaba('0x29')]?_0x19da78['attributes']:_0x58cea5[_0x5daaba('0x19')],_0x37d2ff[_0x5daaba('0x4')]['includeAll']&&(_0x19da78['include']=[{'all':!![]}]),_0x19da78=_[_0x5daaba('0x23')]({},_0x19da78,_0x37d2ff[_0x5daaba('0x13')]),db[_0x5daaba('0x1b')][_0x5daaba('0xb')](_0x19da78)[_0x5daaba('0x21')](handleEntityNotFound(_0x396894,null))[_0x5daaba('0x21')](respondWithResult(_0x396894,null))[_0x5daaba('0x2f')](handleError(_0x396894,null));},exports['create']=function(_0x481eb6,_0xb396b7){const _0x597eb2=_0x52a9ca;return db['JscriptyQuestionReport'][_0x597eb2('0x11')](_0x481eb6[_0x597eb2('0x24')],{})[_0x597eb2('0x21')](respondWithResult(_0xb396b7,0xc9))[_0x597eb2('0x2f')](handleError(_0xb396b7,null));},exports[_0x52a9ca('0xe')]=function(_0x2655da,_0x26760b){const _0x1690cc=_0x52a9ca;return _0x2655da[_0x1690cc('0x24')]['id']&&delete _0x2655da[_0x1690cc('0x24')]['id'],db[_0x1690cc('0x1b')][_0x1690cc('0xb')]({'where':{'id':_0x2655da[_0x1690cc('0x15')]['id']}})[_0x1690cc('0x21')](handleEntityNotFound(_0x26760b,null))[_0x1690cc('0x21')](saveUpdates(_0x2655da[_0x1690cc('0x24')],null))[_0x1690cc('0x21')](respondWithResult(_0x26760b,null))[_0x1690cc('0x2f')](handleError(_0x26760b,null));},exports[_0x52a9ca('0x14')]=function(_0x4408cd,_0x1cf4ae){const _0x469041=_0x52a9ca;return db[_0x469041('0x1b')][_0x469041('0xb')]({'where':{'id':_0x4408cd[_0x469041('0x15')]['id']}})[_0x469041('0x21')](handleEntityNotFound(_0x1cf4ae,null))['then'](removeEntity(_0x1cf4ae,null))[_0x469041('0x2f')](handleError(_0x1cf4ae,null));},exports[_0x52a9ca('0x2c')]=function(_0x3f2d7d,_0x34e57f){const _0x43157f=_0x52a9ca;return db[_0x43157f('0x1b')][_0x43157f('0x2c')]()[_0x43157f('0x21')](respondWithResult(_0x34e57f,null))[_0x43157f('0x2f')](handleError(_0x34e57f,null));}; \ No newline at end of file +const a460_0x2ebc=['stack','rows','filters','where','sort','describe','api','sequelize','keys','fieldName','status','nolimit','show','error','offset','name','map','query','length','include','count','update','filter','options','merge','like','rawAttributes','fields','catch','create','then','undefined','json','findOne','type','model','key','lodash','JscriptyQuestionReport','body','attributes','intersection','set','sendStatus','params','includeAll','destroy','index','../../components/parsers/qs','pick','order','Content-Range','limit'];(function(_0x2df9b2,_0x140876){const _0x2ebcc9=function(_0x180376){while(--_0x180376){_0x2df9b2['push'](_0x2df9b2['shift']());}};_0x2ebcc9(++_0x140876);}(a460_0x2ebc,0x1e2));const a460_0x1803=function(_0x2df9b2,_0x140876){_0x2df9b2=_0x2df9b2-0x1ec;let _0x2ebcc9=a460_0x2ebc[_0x2df9b2];return _0x2ebcc9;};const a460_0x1b38fb=a460_0x1803;'use strict';const _=require(a460_0x1b38fb(0x20c)),qs=require(a460_0x1b38fb(0x217)),logger=require('../../config/logger')(a460_0x1b38fb(0x1ed)),{db}=require('../../mysqldb'),{Op}=require(a460_0x1b38fb(0x1ee));function respondWithResult(_0x120afc,_0x68ee64){return _0x68ee64=_0x68ee64||0xc8,function(_0x4b8b2a){const _0x9a6b51=a460_0x1803;if(_0x4b8b2a)return _0x120afc[_0x9a6b51(0x1f1)](_0x68ee64)[_0x9a6b51(0x207)](_0x4b8b2a);};}function respondWithFilteredResult(_0x3f3d19,_0x472498){return function(_0x419cb3){const _0x270a45=a460_0x1803;if(_0x419cb3){const _0x3954c0=_0x419cb3[_0x270a45(0x1fb)],_0x311908=_0x472498[_0x270a45(0x1f5)];let _0x476f07=_0x472498[_0x270a45(0x1f5)]+_0x472498[_0x270a45(0x21b)],_0x25b08f;return _0x476f07>=_0x3954c0?(_0x476f07=_0x3954c0,_0x25b08f=0xc8):_0x25b08f=0xce,_0x3f3d19['status'](_0x25b08f),_0x3f3d19[_0x270a45(0x211)](_0x270a45(0x21a),_0x311908+'-'+_0x476f07+'/'+_0x3954c0)[_0x270a45(0x207)](_0x419cb3);}return null;};}function saveUpdates(_0x4ea749){return function(_0x392ed3){const _0x16fcd6=a460_0x1803;if(_0x392ed3)return _0x392ed3['update'](_0x4ea749)[_0x16fcd6(0x205)](function(_0x364a2c){return _0x364a2c;});return null;};}function removeEntity(_0x3d572c){return function(_0x259d10){const _0x32c2a9=a460_0x1803;if(_0x259d10)return _0x259d10[_0x32c2a9(0x215)]()[_0x32c2a9(0x205)](function(){const _0x1e1dc8=_0x32c2a9;_0x3d572c[_0x1e1dc8(0x1f1)](0xcc)['end']();});};}function handleEntityNotFound(_0x117391){return function(_0x32a8ef){const _0x4f9d25=a460_0x1803;return!_0x32a8ef&&_0x117391[_0x4f9d25(0x212)](0x194),_0x32a8ef;};}function handleError(_0x444d38,_0x4df661){return _0x4df661=_0x4df661||0x1f4,function(_0xeae01a){const _0x3a7163=a460_0x1803;logger[_0x3a7163(0x1f4)](_0xeae01a[_0x3a7163(0x21c)]),_0xeae01a['name']&&delete _0xeae01a[_0x3a7163(0x1f6)],_0x444d38[_0x3a7163(0x1f1)](_0x4df661)['send'](_0xeae01a);};}exports[a460_0x1b38fb(0x216)]=function(_0x1d057a,_0x1360ff){const _0x56956a=a460_0x1b38fb;let _0x256dab={};const _0x3fa216={},_0x4da21b={'count':0x0,'rows':[]},_0x5b442b=_[_0x56956a(0x1f7)](db[_0x56956a(0x20d)][_0x56956a(0x201)],function(_0x51d34a){const _0x478b1f=_0x56956a;return{'name':_0x51d34a[_0x478b1f(0x1f0)],'type':_0x51d34a[_0x478b1f(0x209)][_0x478b1f(0x20b)]};});_0x3fa216[_0x56956a(0x20a)]=_['map'](_0x5b442b,_0x56956a(0x1f6)),_0x3fa216[_0x56956a(0x1f8)]=_[_0x56956a(0x1ef)](_0x1d057a[_0x56956a(0x1f8)]),_0x3fa216[_0x56956a(0x21e)]=_[_0x56956a(0x210)](_0x3fa216[_0x56956a(0x20a)],_0x3fa216[_0x56956a(0x1f8)]),_0x256dab[_0x56956a(0x20f)]=_['intersection'](_0x3fa216[_0x56956a(0x20a)],qs[_0x56956a(0x202)](_0x1d057a[_0x56956a(0x1f8)][_0x56956a(0x202)])),_0x256dab[_0x56956a(0x20f)]=_0x256dab[_0x56956a(0x20f)]['length']?_0x256dab[_0x56956a(0x20f)]:_0x3fa216[_0x56956a(0x20a)];typeof _0x1d057a[_0x56956a(0x1f8)][_0x56956a(0x1f2)]===_0x56956a(0x206)&&(_0x256dab['limit']=qs['limit'](_0x1d057a[_0x56956a(0x1f8)][_0x56956a(0x21b)]),_0x256dab[_0x56956a(0x1f5)]=qs[_0x56956a(0x1f5)](_0x1d057a['query'][_0x56956a(0x1f5)]));_0x256dab[_0x56956a(0x219)]=qs['sort'](_0x1d057a['query'][_0x56956a(0x220)]),_0x256dab[_0x56956a(0x21f)]=qs['filters'](_[_0x56956a(0x218)](_0x1d057a[_0x56956a(0x1f8)],_0x3fa216['filters']),_0x5b442b);_0x1d057a['query'][_0x56956a(0x1fd)]&&(_0x256dab[_0x56956a(0x21f)]=_['merge'](_0x256dab[_0x56956a(0x21f)],{[Op['or']]:_['map'](_0x5b442b,function(_0x58ee95){const _0x245088=_0x56956a;if(_0x58ee95['type']!=='VIRTUAL'){const _0x5baaef={};return _0x5baaef[_0x58ee95[_0x245088(0x1f6)]]={[Op[_0x245088(0x200)]]:'%'+_0x1d057a['query'][_0x245088(0x1fd)]+'%'},_0x5baaef;}})}));_0x256dab=_[_0x56956a(0x1ff)]({},_0x256dab,_0x1d057a['options']);const _0x398579={'where':_0x256dab['where']};return db[_0x56956a(0x20d)][_0x56956a(0x1fb)](_0x398579)[_0x56956a(0x205)](function(_0x2bb96a){const _0x5d2731=_0x56956a;return _0x4da21b[_0x5d2731(0x1fb)]=_0x2bb96a,_0x1d057a[_0x5d2731(0x1f8)][_0x5d2731(0x214)]&&(_0x256dab[_0x5d2731(0x1fa)]=[{'all':!![]}]),db[_0x5d2731(0x20d)]['findAll'](_0x256dab);})[_0x56956a(0x205)](function(_0x4f57ba){const _0x3ef8bf=_0x56956a;return _0x4da21b[_0x3ef8bf(0x21d)]=_0x4f57ba,_0x4da21b;})[_0x56956a(0x205)](respondWithFilteredResult(_0x1360ff,_0x256dab))[_0x56956a(0x203)](handleError(_0x1360ff,null));},exports[a460_0x1b38fb(0x1f3)]=function(_0x393b1f,_0x18c12e){const _0x315daf=a460_0x1b38fb;let _0x509a19={'raw':!![],'where':{'id':_0x393b1f[_0x315daf(0x213)]['id']}};const _0x5931b9={};return _0x5931b9['model']=_[_0x315daf(0x1ef)](db[_0x315daf(0x20d)][_0x315daf(0x201)]),_0x5931b9['query']=_[_0x315daf(0x1ef)](_0x393b1f[_0x315daf(0x1f8)]),_0x5931b9[_0x315daf(0x21e)]=_[_0x315daf(0x210)](_0x5931b9['model'],_0x5931b9[_0x315daf(0x1f8)]),_0x509a19[_0x315daf(0x20f)]=_[_0x315daf(0x210)](_0x5931b9[_0x315daf(0x20a)],qs[_0x315daf(0x202)](_0x393b1f[_0x315daf(0x1f8)][_0x315daf(0x202)])),_0x509a19[_0x315daf(0x20f)]=_0x509a19[_0x315daf(0x20f)][_0x315daf(0x1f9)]?_0x509a19[_0x315daf(0x20f)]:_0x5931b9['model'],_0x393b1f[_0x315daf(0x1f8)][_0x315daf(0x214)]&&(_0x509a19[_0x315daf(0x1fa)]=[{'all':!![]}]),_0x509a19=_[_0x315daf(0x1ff)]({},_0x509a19,_0x393b1f[_0x315daf(0x1fe)]),db[_0x315daf(0x20d)][_0x315daf(0x208)](_0x509a19)[_0x315daf(0x205)](handleEntityNotFound(_0x18c12e,null))['then'](respondWithResult(_0x18c12e,null))[_0x315daf(0x203)](handleError(_0x18c12e,null));},exports['create']=function(_0x2f3480,_0x314a3e){const _0x4b620b=a460_0x1b38fb;return db[_0x4b620b(0x20d)][_0x4b620b(0x204)](_0x2f3480[_0x4b620b(0x20e)],{})[_0x4b620b(0x205)](respondWithResult(_0x314a3e,0xc9))[_0x4b620b(0x203)](handleError(_0x314a3e,null));},exports[a460_0x1b38fb(0x1fc)]=function(_0xbf815e,_0x29b355){const _0x597d0a=a460_0x1b38fb;return _0xbf815e['body']['id']&&delete _0xbf815e[_0x597d0a(0x20e)]['id'],db['JscriptyQuestionReport'][_0x597d0a(0x208)]({'where':{'id':_0xbf815e[_0x597d0a(0x213)]['id']}})[_0x597d0a(0x205)](handleEntityNotFound(_0x29b355,null))[_0x597d0a(0x205)](saveUpdates(_0xbf815e[_0x597d0a(0x20e)],null))[_0x597d0a(0x205)](respondWithResult(_0x29b355,null))['catch'](handleError(_0x29b355,null));},exports['destroy']=function(_0x57413c,_0x5a5a14){const _0x520ae8=a460_0x1b38fb;return db['JscriptyQuestionReport'][_0x520ae8(0x208)]({'where':{'id':_0x57413c['params']['id']}})[_0x520ae8(0x205)](handleEntityNotFound(_0x5a5a14,null))[_0x520ae8(0x205)](removeEntity(_0x5a5a14,null))[_0x520ae8(0x203)](handleError(_0x5a5a14,null));},exports[a460_0x1b38fb(0x1ec)]=function(_0x17c12a,_0x53eef1){const _0x3205b4=a460_0x1b38fb;return db[_0x3205b4(0x20d)][_0x3205b4(0x1ec)]()['then'](respondWithResult(_0x53eef1,null))['catch'](handleError(_0x53eef1,null));}; \ No newline at end of file diff --git a/server/api/jscriptyQuestionReport/jscriptyQuestionReport.model.js b/server/api/jscriptyQuestionReport/jscriptyQuestionReport.model.js index 755ca03..92accf5 100644 --- a/server/api/jscriptyQuestionReport/jscriptyQuestionReport.model.js +++ b/server/api/jscriptyQuestionReport/jscriptyQuestionReport.model.js @@ -1 +1 @@ -const a383_0x4138=['exports','define'];(function(_0x471168,_0x413868){const _0x8f9f74=function(_0x563baa){while(--_0x563baa){_0x471168['push'](_0x471168['shift']());}};_0x8f9f74(++_0x413868);}(a383_0x4138,0xed));const a383_0x8f9f=function(_0x471168,_0x413868){_0x471168=_0x471168-0x0;let _0x8f9f74=a383_0x4138[_0x471168];return _0x8f9f74;};const _0x15c882=a383_0x8f9f;'use strict';const attributes=require('./jscriptyQuestionReport.attributes');module[_0x15c882('0x1')]=function(_0x563baa){const _0x1640d8=_0x15c882,_0x347832=_0x563baa[_0x1640d8('0x0')]('JscriptyQuestionReport',attributes,{'tableName':'report_jscripty_questions','paranoid':![],'indexes':[],'timestamps':!![]});return _0x347832;}; \ No newline at end of file +const a461_0x3203=['init','./jscriptyQuestionReport.options','JscriptyQuestionReport'];(function(_0x4aa305,_0x10ddca){const _0x3203c1=function(_0x420b63){while(--_0x420b63){_0x4aa305['push'](_0x4aa305['shift']());}};_0x3203c1(++_0x10ddca);}(a461_0x3203,0x155));const a461_0x420b=function(_0x4aa305,_0x10ddca){_0x4aa305=_0x4aa305-0x195;let _0x3203c1=a461_0x3203[_0x4aa305];return _0x3203c1;};const a461_0x3472e2=a461_0x420b;'use strict';const {Model}=require('sequelize'),{attributes}=require('./jscriptyQuestionReport.attributes'),{options}=require(a461_0x3472e2(0x197));class JscriptyQuestionReport extends Model{}function init(_0x3a0bdd,_0x39a684){const _0x470334=a461_0x3472e2,_0x10dd75=options(_0x3a0bdd),_0x585ffc=typeof _0x39a684==='function'?_0x39a684(_0x10dd75):_0x10dd75;return JscriptyQuestionReport[_0x470334(0x196)](attributes,_0x585ffc),JscriptyQuestionReport;}module['exports'][a461_0x3472e2(0x195)]=JscriptyQuestionReport,module['exports'][a461_0x3472e2(0x196)]=init; \ No newline at end of file diff --git a/server/api/jscriptyQuestionReport/jscriptyQuestionReport.options.js b/server/api/jscriptyQuestionReport/jscriptyQuestionReport.options.js new file mode 100644 index 0000000..d2d3f44 --- /dev/null +++ b/server/api/jscriptyQuestionReport/jscriptyQuestionReport.options.js @@ -0,0 +1 @@ +var a462_0x11d6=['exports','options'];(function(_0x4837ac,_0x50de0f){var _0x11d66b=function(_0xfa668a){while(--_0xfa668a){_0x4837ac['push'](_0x4837ac['shift']());}};_0x11d66b(++_0x50de0f);}(a462_0x11d6,0x1ec));var a462_0xfa66=function(_0x4837ac,_0x50de0f){_0x4837ac=_0x4837ac-0x182;var _0x11d66b=a462_0x11d6[_0x4837ac];return _0x11d66b;};var a462_0x165a30=a462_0xfa66;function options(_0x468fee){return{'sequelize':_0x468fee,'tableName':'report_jscripty_questions','paranoid':![],'indexes':[],'timestamps':!![]};}module[a462_0x165a30(0x182)][a462_0x165a30(0x183)]=options; \ No newline at end of file diff --git a/server/api/jscriptySessionReport/index.js b/server/api/jscriptySessionReport/index.js index ef9ba76..03c3f77 100644 --- a/server/api/jscriptySessionReport/index.js +++ b/server/api/jscriptySessionReport/index.js @@ -1 +1 @@ -const a384_0x1d84=['update','getQuestions','express','post','get','Router','put','/:id/questions','isAuthenticated','index','./jscriptySessionReport.controller','exports','/:id','delete','describe','/describe','destroy','show','../../components/auth/service'];(function(_0x3d771b,_0x1d8414){const _0xbf6f4a=function(_0x42ae0b){while(--_0x42ae0b){_0x3d771b['push'](_0x3d771b['shift']());}};_0xbf6f4a(++_0x1d8414);}(a384_0x1d84,0xd2));const a384_0xbf6f=function(_0x3d771b,_0x1d8414){_0x3d771b=_0x3d771b-0x0;let _0xbf6f4a=a384_0x1d84[_0x3d771b];return _0xbf6f4a;};const _0x14c0af=a384_0xbf6f;'use strict';const express=require(_0x14c0af('0x1')),router=express[_0x14c0af('0x4')](),auth=require(_0x14c0af('0x11')),controller=require(_0x14c0af('0x9'));router[_0x14c0af('0x3')]('/',auth[_0x14c0af('0x7')](),controller[_0x14c0af('0x8')]),router['get'](_0x14c0af('0xe'),auth[_0x14c0af('0x7')](),controller[_0x14c0af('0xd')]),router[_0x14c0af('0x3')](_0x14c0af('0xb'),auth[_0x14c0af('0x7')](),controller[_0x14c0af('0x10')]),router[_0x14c0af('0x3')](_0x14c0af('0x6'),auth[_0x14c0af('0x7')](),controller[_0x14c0af('0x0')]),router[_0x14c0af('0x2')]('/',auth[_0x14c0af('0x7')](),controller['create']),router[_0x14c0af('0x5')](_0x14c0af('0xb'),auth[_0x14c0af('0x7')](),controller[_0x14c0af('0x12')]),router[_0x14c0af('0xc')](_0x14c0af('0xb'),auth[_0x14c0af('0x7')](),controller[_0x14c0af('0xf')]),module[_0x14c0af('0xa')]=router; \ No newline at end of file +const a463_0x2e28=['index','express','delete','./jscriptySessionReport.controller','destroy','getQuestions','/describe','update','show','describe','isAuthenticated','Router','get','/:id/questions','/:id','post'];(function(_0x1689aa,_0x49d254){const _0x2e28e0=function(_0x49a68b){while(--_0x49a68b){_0x1689aa['push'](_0x1689aa['shift']());}};_0x2e28e0(++_0x49d254);}(a463_0x2e28,0x6b));const a463_0x49a6=function(_0x1689aa,_0x49d254){_0x1689aa=_0x1689aa-0x113;let _0x2e28e0=a463_0x2e28[_0x1689aa];return _0x2e28e0;};const a463_0x5c8299=a463_0x49a6;'use strict';const express=require(a463_0x5c8299(0x119)),router=express[a463_0x5c8299(0x113)](),auth=require('../../components/auth/service'),controller=require(a463_0x5c8299(0x11b));router[a463_0x5c8299(0x114)]('/',auth['isAuthenticated'](),controller[a463_0x5c8299(0x118)]),router['get'](a463_0x5c8299(0x11e),auth[a463_0x5c8299(0x122)](),controller[a463_0x5c8299(0x121)]),router[a463_0x5c8299(0x114)](a463_0x5c8299(0x116),auth['isAuthenticated'](),controller[a463_0x5c8299(0x120)]),router['get'](a463_0x5c8299(0x115),auth[a463_0x5c8299(0x122)](),controller[a463_0x5c8299(0x11d)]),router[a463_0x5c8299(0x117)]('/',auth['isAuthenticated'](),controller['create']),router['put'](a463_0x5c8299(0x116),auth[a463_0x5c8299(0x122)](),controller[a463_0x5c8299(0x11f)]),router[a463_0x5c8299(0x11a)]('/:id',auth[a463_0x5c8299(0x122)](),controller[a463_0x5c8299(0x11c)]),module['exports']=router; \ No newline at end of file diff --git a/server/api/jscriptySessionReport/jscriptySessionReport.attributes.js b/server/api/jscriptySessionReport/jscriptySessionReport.attributes.js index e605dc4..bf1fcee 100644 --- a/server/api/jscriptySessionReport/jscriptySessionReport.attributes.js +++ b/server/api/jscriptySessionReport/jscriptySessionReport.attributes.js @@ -1 +1 @@ -const a385_0x3410=['endtime','BOOLEAN','STRING','format','moment','DATE','setDataValue'];(function(_0x176a11,_0x341018){const _0x1624ce=function(_0x5d4240){while(--_0x5d4240){_0x176a11['push'](_0x176a11['shift']());}};_0x1624ce(++_0x341018);}(a385_0x3410,0x1d1));const a385_0x1624=function(_0x176a11,_0x341018){_0x176a11=_0x176a11-0x0;let _0x1624ce=a385_0x3410[_0x176a11];return _0x1624ce;};const _0x1b421e=a385_0x1624;'use strict';const moment=require(_0x1b421e('0x1')),Sequelize=require('sequelize');module['exports']={'starttime':{'type':Sequelize[_0x1b421e('0x2')],'set':function(_0x5d4240){const _0x373b91=_0x1b421e;this[_0x373b91('0x3')]('starttime',_0x5d4240),this[_0x373b91('0x3')](_0x373b91('0x4'),moment()[_0x373b91('0x0')]('YYYY-MM-DD\x20HH:mm:ss'));}},'endtime':{'type':Sequelize[_0x1b421e('0x2')]},'membername':{'type':Sequelize[_0x1b421e('0x6')]},'projectname':{'type':Sequelize[_0x1b421e('0x6')]},'queue':{'type':Sequelize['STRING']},'uniqueid':{'type':Sequelize[_0x1b421e('0x6')]},'calleridname':{'type':Sequelize['STRING']},'calleridnum':{'type':Sequelize[_0x1b421e('0x6')]},'completed':{'type':Sequelize[_0x1b421e('0x5')],'defaultValue':![]}}; \ No newline at end of file +const a464_0x97ba=['STRING','endtime','DATE','exports','setDataValue','starttime','attributes','BOOLEAN','format','moment'];(function(_0x3cc39d,_0x5a752a){const _0x97ba86=function(_0x445fb4){while(--_0x445fb4){_0x3cc39d['push'](_0x3cc39d['shift']());}};_0x97ba86(++_0x5a752a);}(a464_0x97ba,0x83));const a464_0x445f=function(_0x3cc39d,_0x5a752a){_0x3cc39d=_0x3cc39d-0x108;let _0x97ba86=a464_0x97ba[_0x3cc39d];return _0x97ba86;};const a464_0x1c4944=a464_0x445f;'use strict';const moment=require(a464_0x1c4944(0x110)),{DataTypes}=require('sequelize'),attributes={'starttime':{'type':DataTypes['DATE'],'set':function(_0x590adb){const _0x27147c=a464_0x1c4944;this[_0x27147c(0x10b)](_0x27147c(0x10c),_0x590adb),this[_0x27147c(0x10b)](_0x27147c(0x108),moment()[_0x27147c(0x10f)]('YYYY-MM-DD\x20HH:mm:ss'));}},'endtime':{'type':DataTypes[a464_0x1c4944(0x109)]},'membername':{'type':DataTypes[a464_0x1c4944(0x111)]},'projectname':{'type':DataTypes[a464_0x1c4944(0x111)]},'queue':{'type':DataTypes[a464_0x1c4944(0x111)]},'uniqueid':{'type':DataTypes[a464_0x1c4944(0x111)]},'calleridname':{'type':DataTypes[a464_0x1c4944(0x111)]},'calleridnum':{'type':DataTypes[a464_0x1c4944(0x111)]},'completed':{'type':DataTypes[a464_0x1c4944(0x10e)],'defaultValue':![]}};module[a464_0x1c4944(0x10a)][a464_0x1c4944(0x10d)]=attributes; \ No newline at end of file diff --git a/server/api/jscriptySessionReport/jscriptySessionReport.controller.js b/server/api/jscriptySessionReport/jscriptySessionReport.controller.js index 359a39d..a9f8d50 100644 --- a/server/api/jscriptySessionReport/jscriptySessionReport.controller.js +++ b/server/api/jscriptySessionReport/jscriptySessionReport.controller.js @@ -1 +1 @@ -const a386_0x30b0=['rows','name','status','options','order','pick','update','sequelize','params','JscriptyQuestionReport','../../config/logger','body','destroy','describe','show','model','findAll','sort','filter','keys','sendStatus','intersection','VIRTUAL','set','where','type','findOne','../../mysqldb','error','fields','length','offset','merge','then','map','nolimit','api','rawAttributes','includeAll','key','json','../../components/parsers/qs','JscriptySessionReport','catch','query','filters','lodash','getQuestions','attributes','like','limit','create','count','send','stack','undefined','include','SessionId'];(function(_0x417ada,_0x30b05b){const _0x49057a=function(_0x59efb7){while(--_0x59efb7){_0x417ada['push'](_0x417ada['shift']());}};_0x49057a(++_0x30b05b);}(a386_0x30b0,0xc7));const a386_0x4905=function(_0x417ada,_0x30b05b){_0x417ada=_0x417ada-0x0;let _0x49057a=a386_0x30b0[_0x417ada];return _0x49057a;};const _0x4d2929=a386_0x4905;'use strict';const _=require(_0x4d2929('0x15')),qs=require(_0x4d2929('0x10')),logger=require(_0x4d2929('0x2b'))(_0x4d2929('0xb')),db=require(_0x4d2929('0x2'))['db'],{Op}=require(_0x4d2929('0x28'));function respondWithResult(_0x59efb7,_0xeae53d){return _0xeae53d=_0xeae53d||0xc8,function(_0x57e36d){const _0x2bf61e=a386_0x4905;if(_0x57e36d)return _0x59efb7[_0x2bf61e('0x23')](_0xeae53d)[_0x2bf61e('0xf')](_0x57e36d);};}function respondWithFilteredResult(_0x4c9c3a,_0xc1af80){return function(_0x46097c){const _0x8c2a82=a386_0x4905;if(_0x46097c){const _0x3cbe1c=_0x46097c['count'],_0x1dbb3c=_0xc1af80['offset'];let _0xc6620b=_0xc1af80[_0x8c2a82('0x6')]+_0xc1af80[_0x8c2a82('0x19')],_0x186cce;return _0xc6620b>=_0x3cbe1c?(_0xc6620b=_0x3cbe1c,_0x186cce=0xc8):_0x186cce=0xce,_0x4c9c3a[_0x8c2a82('0x23')](_0x186cce),_0x4c9c3a[_0x8c2a82('0x38')]('Content-Range',_0x1dbb3c+'-'+_0xc6620b+'/'+_0x3cbe1c)[_0x8c2a82('0xf')](_0x46097c);}return null;};}function saveUpdates(_0x28807c){return function(_0x2c7e3d){const _0x4c198b=a386_0x4905;if(_0x2c7e3d)return _0x2c7e3d[_0x4c198b('0x27')](_0x28807c)[_0x4c198b('0x8')](function(_0x23c6c6){return _0x23c6c6;});return null;};}function removeEntity(_0x9cf4a0){return function(_0x3f5a70){const _0x5b2dd4=a386_0x4905;if(_0x3f5a70)return _0x3f5a70[_0x5b2dd4('0x2d')]()['then'](function(){const _0x50bf52=_0x5b2dd4;_0x9cf4a0[_0x50bf52('0x23')](0xcc)['end']();});};}function handleEntityNotFound(_0x141c24){return function(_0x27f0b0){const _0x1658a3=a386_0x4905;return!_0x27f0b0&&_0x141c24[_0x1658a3('0x35')](0x194),_0x27f0b0;};}function handleError(_0x53810d,_0x186832){return _0x186832=_0x186832||0x1f4,function(_0x5d206f){const _0x5a9a9f=a386_0x4905;logger[_0x5a9a9f('0x3')](_0x5d206f[_0x5a9a9f('0x1d')]),_0x5d206f[_0x5a9a9f('0x22')]&&delete _0x5d206f[_0x5a9a9f('0x22')],_0x53810d[_0x5a9a9f('0x23')](_0x186832)[_0x5a9a9f('0x1c')](_0x5d206f);};}exports['index']=function(_0x493d59,_0x3ff814){const _0x39a15a=_0x4d2929;let _0x46bab9={};const _0x53f404={},_0x25166f={'count':0x0,'rows':[]},_0x5ab4e8=_['map'](db[_0x39a15a('0x11')][_0x39a15a('0xc')],function(_0x1aa86b){const _0x15036e=_0x39a15a;return{'name':_0x1aa86b['fieldName'],'type':_0x1aa86b[_0x15036e('0x0')][_0x15036e('0xe')]};});_0x53f404[_0x39a15a('0x30')]=_[_0x39a15a('0x9')](_0x5ab4e8,'name'),_0x53f404[_0x39a15a('0x13')]=_[_0x39a15a('0x34')](_0x493d59[_0x39a15a('0x13')]),_0x53f404[_0x39a15a('0x14')]=_[_0x39a15a('0x36')](_0x53f404['model'],_0x53f404['query']),_0x46bab9[_0x39a15a('0x17')]=_[_0x39a15a('0x36')](_0x53f404[_0x39a15a('0x30')],qs[_0x39a15a('0x4')](_0x493d59['query'][_0x39a15a('0x4')])),_0x46bab9[_0x39a15a('0x17')]=_0x46bab9[_0x39a15a('0x17')][_0x39a15a('0x5')]?_0x46bab9['attributes']:_0x53f404[_0x39a15a('0x30')];typeof _0x493d59[_0x39a15a('0x13')][_0x39a15a('0xa')]===_0x39a15a('0x1e')&&(_0x46bab9[_0x39a15a('0x19')]=qs[_0x39a15a('0x19')](_0x493d59[_0x39a15a('0x13')][_0x39a15a('0x19')]),_0x46bab9[_0x39a15a('0x6')]=qs['offset'](_0x493d59['query'][_0x39a15a('0x6')]));_0x46bab9[_0x39a15a('0x25')]=qs['sort'](_0x493d59[_0x39a15a('0x13')][_0x39a15a('0x32')]),_0x46bab9[_0x39a15a('0x39')]=qs[_0x39a15a('0x14')](_[_0x39a15a('0x26')](_0x493d59[_0x39a15a('0x13')],_0x53f404[_0x39a15a('0x14')]),_0x5ab4e8);_0x493d59['query'][_0x39a15a('0x33')]&&(_0x46bab9[_0x39a15a('0x39')]=_['merge'](_0x46bab9[_0x39a15a('0x39')],{[Op['or']]:_[_0x39a15a('0x9')](_0x5ab4e8,function(_0xd72a1c){const _0x5290ea=_0x39a15a;if(_0xd72a1c[_0x5290ea('0x0')]!==_0x5290ea('0x37')){const _0xee17a8={};return _0xee17a8[_0xd72a1c['name']]={[Op[_0x5290ea('0x18')]]:'%'+_0x493d59[_0x5290ea('0x13')][_0x5290ea('0x33')]+'%'},_0xee17a8;}})}));_0x46bab9=_[_0x39a15a('0x7')]({},_0x46bab9,_0x493d59[_0x39a15a('0x24')]);const _0x3a213c={'where':_0x46bab9['where']};return db['JscriptySessionReport'][_0x39a15a('0x1b')](_0x3a213c)['then'](function(_0x3872cd){const _0xbc38f9=_0x39a15a;return _0x25166f[_0xbc38f9('0x1b')]=_0x3872cd,_0x493d59[_0xbc38f9('0x13')]['includeAll']&&(_0x46bab9[_0xbc38f9('0x1f')]=[{'all':!![]}]),db[_0xbc38f9('0x11')][_0xbc38f9('0x31')](_0x46bab9);})['then'](function(_0x4516ff){const _0x3e03ee=_0x39a15a;return _0x25166f[_0x3e03ee('0x21')]=_0x4516ff,_0x25166f;})['then'](respondWithFilteredResult(_0x3ff814,_0x46bab9))[_0x39a15a('0x12')](handleError(_0x3ff814,null));},exports[_0x4d2929('0x2f')]=function(_0x331cda,_0x4b0b53){const _0xc65722=_0x4d2929;let _0x33d6c5={'raw':!![],'where':{'id':_0x331cda[_0xc65722('0x29')]['id']}};const _0x22e131={};return _0x22e131['model']=_[_0xc65722('0x34')](db[_0xc65722('0x11')][_0xc65722('0xc')]),_0x22e131[_0xc65722('0x13')]=_[_0xc65722('0x34')](_0x331cda[_0xc65722('0x13')]),_0x22e131[_0xc65722('0x14')]=_[_0xc65722('0x36')](_0x22e131[_0xc65722('0x30')],_0x22e131['query']),_0x33d6c5[_0xc65722('0x17')]=_[_0xc65722('0x36')](_0x22e131[_0xc65722('0x30')],qs[_0xc65722('0x4')](_0x331cda[_0xc65722('0x13')]['fields'])),_0x33d6c5[_0xc65722('0x17')]=_0x33d6c5[_0xc65722('0x17')][_0xc65722('0x5')]?_0x33d6c5[_0xc65722('0x17')]:_0x22e131[_0xc65722('0x30')],_0x331cda['query']['includeAll']&&(_0x33d6c5[_0xc65722('0x1f')]=[{'all':!![]}]),_0x33d6c5=_[_0xc65722('0x7')]({},_0x33d6c5,_0x331cda[_0xc65722('0x24')]),db[_0xc65722('0x11')][_0xc65722('0x1')](_0x33d6c5)['then'](handleEntityNotFound(_0x4b0b53,null))[_0xc65722('0x8')](respondWithResult(_0x4b0b53,null))[_0xc65722('0x12')](handleError(_0x4b0b53,null));},exports[_0x4d2929('0x1a')]=function(_0x3ce9a1,_0xd22792){const _0x29097a=_0x4d2929;return db['JscriptySessionReport'][_0x29097a('0x1a')](_0x3ce9a1[_0x29097a('0x2c')],{})['then'](respondWithResult(_0xd22792,0xc9))['catch'](handleError(_0xd22792,null));},exports[_0x4d2929('0x27')]=function(_0x516407,_0x14e0b0){const _0x3d0846=_0x4d2929;return _0x516407['body']['id']&&delete _0x516407[_0x3d0846('0x2c')]['id'],db[_0x3d0846('0x11')][_0x3d0846('0x1')]({'where':{'id':_0x516407[_0x3d0846('0x29')]['id']}})[_0x3d0846('0x8')](handleEntityNotFound(_0x14e0b0,null))[_0x3d0846('0x8')](saveUpdates(_0x516407['body'],null))['then'](respondWithResult(_0x14e0b0,null))[_0x3d0846('0x12')](handleError(_0x14e0b0,null));},exports[_0x4d2929('0x2d')]=function(_0x596cba,_0x320eac){const _0xedf956=_0x4d2929;return db[_0xedf956('0x11')][_0xedf956('0x1')]({'where':{'id':_0x596cba[_0xedf956('0x29')]['id']}})[_0xedf956('0x8')](handleEntityNotFound(_0x320eac,null))[_0xedf956('0x8')](removeEntity(_0x320eac,null))['catch'](handleError(_0x320eac,null));},exports['describe']=function(_0x2a6787,_0x13136a){const _0x2be233=_0x4d2929;return db['JscriptySessionReport'][_0x2be233('0x2e')]()[_0x2be233('0x8')](respondWithResult(_0x13136a,null))[_0x2be233('0x12')](handleError(_0x13136a,null));},exports[_0x4d2929('0x16')]=function(_0x47bede,_0x20c3f6){const _0x346a2f=_0x4d2929;let _0x20b2fc={'raw':!![],'where':{}};const _0x3e660e={},_0x3e5c98={'count':0x0,'rows':[]};return db[_0x346a2f('0x11')]['findOne']({'where':{'id':_0x47bede['params']['id']}})[_0x346a2f('0x8')](handleEntityNotFound(_0x20c3f6,null))['then'](function(_0x4a43eb){const _0x56ac55=_0x346a2f;if(_0x4a43eb)return _0x3e660e['model']=_['keys'](db[_0x56ac55('0x2a')][_0x56ac55('0xc')]),_0x3e660e[_0x56ac55('0x13')]=_[_0x56ac55('0x34')](_0x47bede[_0x56ac55('0x13')]),_0x3e660e[_0x56ac55('0x14')]=_[_0x56ac55('0x36')](_0x3e660e[_0x56ac55('0x30')],_0x3e660e[_0x56ac55('0x13')]),_0x20b2fc[_0x56ac55('0x17')]=_[_0x56ac55('0x36')](_0x3e660e[_0x56ac55('0x30')],qs[_0x56ac55('0x4')](_0x47bede['query'][_0x56ac55('0x4')])),_0x20b2fc['attributes']=_0x20b2fc['attributes']['length']?_0x20b2fc['attributes']:_0x3e660e[_0x56ac55('0x30')],typeof _0x47bede[_0x56ac55('0x13')][_0x56ac55('0xa')]===_0x56ac55('0x1e')&&(_0x20b2fc[_0x56ac55('0x19')]=qs[_0x56ac55('0x19')](_0x47bede[_0x56ac55('0x13')][_0x56ac55('0x19')]),_0x20b2fc[_0x56ac55('0x6')]=qs[_0x56ac55('0x6')](_0x47bede['query']['offset'])),_0x20b2fc[_0x56ac55('0x25')]=qs['sort'](_0x47bede[_0x56ac55('0x13')][_0x56ac55('0x32')]),_0x20b2fc['where']=qs[_0x56ac55('0x14')](_[_0x56ac55('0x26')](_0x47bede[_0x56ac55('0x13')],_0x3e660e[_0x56ac55('0x14')])),_0x20b2fc[_0x56ac55('0x39')][_0x56ac55('0x20')]=_0x4a43eb['id'],_0x47bede[_0x56ac55('0x13')][_0x56ac55('0x33')]&&(_0x20b2fc[_0x56ac55('0x39')]=_[_0x56ac55('0x7')](_0x20b2fc[_0x56ac55('0x39')],{[Op['or']]:_[_0x56ac55('0x9')](_0x20b2fc[_0x56ac55('0x17')],function(_0x4e45f6){const _0x321efa=_0x56ac55,_0x48ce51={};return _0x48ce51[_0x4e45f6]={[Op[_0x321efa('0x18')]]:'%'+_0x47bede[_0x321efa('0x13')]['filter']+'%'},_0x48ce51;})})),_0x20b2fc=_[_0x56ac55('0x7')]({},_0x20b2fc,_0x47bede['options']),db[_0x56ac55('0x2a')][_0x56ac55('0x1b')]({'where':_0x20b2fc[_0x56ac55('0x39')]})['then'](function(_0x41af93){const _0x3ead05=_0x56ac55;return _0x3e5c98[_0x3ead05('0x1b')]=_0x41af93,_0x47bede[_0x3ead05('0x13')][_0x3ead05('0xd')]&&(_0x20b2fc['include']=[{'all':!![]}]),db[_0x3ead05('0x2a')][_0x3ead05('0x31')](_0x20b2fc);})[_0x56ac55('0x8')](function(_0x15f37e){return _0x3e5c98['rows']=_0x15f37e,_0x3e5c98;});})['then'](respondWithFilteredResult(_0x20c3f6,_0x20b2fc))[_0x346a2f('0x12')](handleError(_0x20c3f6,null));}; \ No newline at end of file +const a465_0x289b=['offset','filters','JscriptyQuestionReport','options','index','create','model','where','pick','length','status','end','like','describe','nolimit','update','key','merge','VIRTUAL','limit','order','include','fields','json','JscriptySessionReport','intersection','catch','send','destroy','../../config/logger','stack','query','rawAttributes','sendStatus','api','SessionId','map','set','undefined','name','fieldName','filter','findOne','rows','params','type','then','findAll','show','sort','body','attributes','keys','includeAll','lodash','Content-Range','sequelize','count','../../mysqldb'];(function(_0x301872,_0x3d1253){const _0x289bc8=function(_0x39900a){while(--_0x39900a){_0x301872['push'](_0x301872['shift']());}};_0x289bc8(++_0x3d1253);}(a465_0x289b,0x1b1));const a465_0x3990=function(_0x301872,_0x3d1253){_0x301872=_0x301872-0x70;let _0x289bc8=a465_0x289b[_0x301872];return _0x289bc8;};const a465_0x5806ad=a465_0x3990;'use strict';const _=require(a465_0x5806ad(0x92)),qs=require('../../components/parsers/qs'),logger=require(a465_0x5806ad(0x79))(a465_0x5806ad(0x7e)),{db}=require(a465_0x5806ad(0x96)),{Op}=require(a465_0x5806ad(0x94));function respondWithResult(_0x33609a,_0x2ed6fb){return _0x2ed6fb=_0x2ed6fb||0xc8,function(_0x4a85bc){const _0x505fe6=a465_0x3990;if(_0x4a85bc)return _0x33609a['status'](_0x2ed6fb)[_0x505fe6(0x73)](_0x4a85bc);};}function respondWithFilteredResult(_0x1fcf80,_0x6b1f5a){return function(_0x27e2da){const _0x364715=a465_0x3990;if(_0x27e2da){const _0x1b0f9c=_0x27e2da['count'],_0x174316=_0x6b1f5a[_0x364715(0x97)];let _0x393055=_0x6b1f5a[_0x364715(0x97)]+_0x6b1f5a[_0x364715(0xaa)],_0x51ec9a;return _0x393055>=_0x1b0f9c?(_0x393055=_0x1b0f9c,_0x51ec9a=0xc8):_0x51ec9a=0xce,_0x1fcf80['status'](_0x51ec9a),_0x1fcf80[_0x364715(0x81)](_0x364715(0x93),_0x174316+'-'+_0x393055+'/'+_0x1b0f9c)[_0x364715(0x73)](_0x27e2da);}return null;};}function saveUpdates(_0x234693){return function(_0xbc2416){const _0x3acc57=a465_0x3990;if(_0xbc2416)return _0xbc2416[_0x3acc57(0xa6)](_0x234693)[_0x3acc57(0x8a)](function(_0x415767){return _0x415767;});return null;};}function removeEntity(_0xc8e0ae){return function(_0x150774){const _0x3bfb78=a465_0x3990;if(_0x150774)return _0x150774[_0x3bfb78(0x78)]()[_0x3bfb78(0x8a)](function(){const _0x136ee4=_0x3bfb78;_0xc8e0ae[_0x136ee4(0xa1)](0xcc)[_0x136ee4(0xa2)]();});};}function handleEntityNotFound(_0x38a7b4){return function(_0x14e6b4){const _0x5059e0=a465_0x3990;return!_0x14e6b4&&_0x38a7b4[_0x5059e0(0x7d)](0x194),_0x14e6b4;};}function handleError(_0xa8e3a6,_0xc13e3d){return _0xc13e3d=_0xc13e3d||0x1f4,function(_0x5017f4){const _0x4183d2=a465_0x3990;logger['error'](_0x5017f4[_0x4183d2(0x7a)]),_0x5017f4['name']&&delete _0x5017f4[_0x4183d2(0x83)],_0xa8e3a6[_0x4183d2(0xa1)](_0xc13e3d)[_0x4183d2(0x77)](_0x5017f4);};}exports[a465_0x5806ad(0x9b)]=function(_0xb97561,_0x5d66b9){const _0x1ed21c=a465_0x5806ad;let _0x42f255={};const _0xae1e2e={},_0x5b2ba1={'count':0x0,'rows':[]},_0x23ebd2=_[_0x1ed21c(0x80)](db[_0x1ed21c(0x74)][_0x1ed21c(0x7c)],function(_0x5f1323){const _0x3e29ef=_0x1ed21c;return{'name':_0x5f1323[_0x3e29ef(0x84)],'type':_0x5f1323['type'][_0x3e29ef(0xa7)]};});_0xae1e2e['model']=_[_0x1ed21c(0x80)](_0x23ebd2,_0x1ed21c(0x83)),_0xae1e2e[_0x1ed21c(0x7b)]=_[_0x1ed21c(0x90)](_0xb97561[_0x1ed21c(0x7b)]),_0xae1e2e[_0x1ed21c(0x98)]=_[_0x1ed21c(0x75)](_0xae1e2e[_0x1ed21c(0x9d)],_0xae1e2e['query']),_0x42f255[_0x1ed21c(0x8f)]=_['intersection'](_0xae1e2e[_0x1ed21c(0x9d)],qs[_0x1ed21c(0x72)](_0xb97561[_0x1ed21c(0x7b)][_0x1ed21c(0x72)])),_0x42f255[_0x1ed21c(0x8f)]=_0x42f255['attributes']['length']?_0x42f255[_0x1ed21c(0x8f)]:_0xae1e2e[_0x1ed21c(0x9d)];typeof _0xb97561[_0x1ed21c(0x7b)][_0x1ed21c(0xa5)]===_0x1ed21c(0x82)&&(_0x42f255['limit']=qs['limit'](_0xb97561[_0x1ed21c(0x7b)][_0x1ed21c(0xaa)]),_0x42f255[_0x1ed21c(0x97)]=qs['offset'](_0xb97561[_0x1ed21c(0x7b)][_0x1ed21c(0x97)]));_0x42f255[_0x1ed21c(0x70)]=qs[_0x1ed21c(0x8d)](_0xb97561[_0x1ed21c(0x7b)]['sort']),_0x42f255[_0x1ed21c(0x9e)]=qs[_0x1ed21c(0x98)](_[_0x1ed21c(0x9f)](_0xb97561[_0x1ed21c(0x7b)],_0xae1e2e['filters']),_0x23ebd2);_0xb97561[_0x1ed21c(0x7b)]['filter']&&(_0x42f255[_0x1ed21c(0x9e)]=_[_0x1ed21c(0xa8)](_0x42f255['where'],{[Op['or']]:_[_0x1ed21c(0x80)](_0x23ebd2,function(_0x3eb3c6){const _0xa503ea=_0x1ed21c;if(_0x3eb3c6[_0xa503ea(0x89)]!==_0xa503ea(0xa9)){const _0x5a5155={};return _0x5a5155[_0x3eb3c6[_0xa503ea(0x83)]]={[Op['like']]:'%'+_0xb97561[_0xa503ea(0x7b)][_0xa503ea(0x85)]+'%'},_0x5a5155;}})}));_0x42f255=_[_0x1ed21c(0xa8)]({},_0x42f255,_0xb97561[_0x1ed21c(0x9a)]);const _0x91cbfa={'where':_0x42f255['where']};return db[_0x1ed21c(0x74)]['count'](_0x91cbfa)[_0x1ed21c(0x8a)](function(_0x4d3b89){const _0x55d74a=_0x1ed21c;return _0x5b2ba1['count']=_0x4d3b89,_0xb97561['query'][_0x55d74a(0x91)]&&(_0x42f255['include']=[{'all':!![]}]),db[_0x55d74a(0x74)][_0x55d74a(0x8b)](_0x42f255);})[_0x1ed21c(0x8a)](function(_0xc77516){const _0x3a3c94=_0x1ed21c;return _0x5b2ba1[_0x3a3c94(0x87)]=_0xc77516,_0x5b2ba1;})[_0x1ed21c(0x8a)](respondWithFilteredResult(_0x5d66b9,_0x42f255))[_0x1ed21c(0x76)](handleError(_0x5d66b9,null));},exports[a465_0x5806ad(0x8c)]=function(_0x480775,_0x4b0e4d){const _0x46840b=a465_0x5806ad;let _0x3e67a9={'raw':!![],'where':{'id':_0x480775[_0x46840b(0x88)]['id']}};const _0x225adb={};return _0x225adb[_0x46840b(0x9d)]=_[_0x46840b(0x90)](db['JscriptySessionReport'][_0x46840b(0x7c)]),_0x225adb['query']=_[_0x46840b(0x90)](_0x480775['query']),_0x225adb[_0x46840b(0x98)]=_['intersection'](_0x225adb[_0x46840b(0x9d)],_0x225adb[_0x46840b(0x7b)]),_0x3e67a9['attributes']=_['intersection'](_0x225adb[_0x46840b(0x9d)],qs[_0x46840b(0x72)](_0x480775['query'][_0x46840b(0x72)])),_0x3e67a9['attributes']=_0x3e67a9[_0x46840b(0x8f)][_0x46840b(0xa0)]?_0x3e67a9[_0x46840b(0x8f)]:_0x225adb[_0x46840b(0x9d)],_0x480775['query'][_0x46840b(0x91)]&&(_0x3e67a9[_0x46840b(0x71)]=[{'all':!![]}]),_0x3e67a9=_[_0x46840b(0xa8)]({},_0x3e67a9,_0x480775['options']),db['JscriptySessionReport'][_0x46840b(0x86)](_0x3e67a9)[_0x46840b(0x8a)](handleEntityNotFound(_0x4b0e4d,null))['then'](respondWithResult(_0x4b0e4d,null))[_0x46840b(0x76)](handleError(_0x4b0e4d,null));},exports[a465_0x5806ad(0x9c)]=function(_0x4da04c,_0x36c0be){const _0x42612d=a465_0x5806ad;return db[_0x42612d(0x74)][_0x42612d(0x9c)](_0x4da04c[_0x42612d(0x8e)],{})['then'](respondWithResult(_0x36c0be,0xc9))[_0x42612d(0x76)](handleError(_0x36c0be,null));},exports[a465_0x5806ad(0xa6)]=function(_0x20f7d5,_0x8bcbe2){const _0x44ef6b=a465_0x5806ad;return _0x20f7d5[_0x44ef6b(0x8e)]['id']&&delete _0x20f7d5[_0x44ef6b(0x8e)]['id'],db[_0x44ef6b(0x74)][_0x44ef6b(0x86)]({'where':{'id':_0x20f7d5[_0x44ef6b(0x88)]['id']}})[_0x44ef6b(0x8a)](handleEntityNotFound(_0x8bcbe2,null))[_0x44ef6b(0x8a)](saveUpdates(_0x20f7d5['body'],null))['then'](respondWithResult(_0x8bcbe2,null))[_0x44ef6b(0x76)](handleError(_0x8bcbe2,null));},exports[a465_0x5806ad(0x78)]=function(_0x5dbdea,_0x338b39){const _0x1b5de7=a465_0x5806ad;return db[_0x1b5de7(0x74)][_0x1b5de7(0x86)]({'where':{'id':_0x5dbdea[_0x1b5de7(0x88)]['id']}})['then'](handleEntityNotFound(_0x338b39,null))[_0x1b5de7(0x8a)](removeEntity(_0x338b39,null))[_0x1b5de7(0x76)](handleError(_0x338b39,null));},exports[a465_0x5806ad(0xa4)]=function(_0x1749c1,_0x52159b){const _0xf20f93=a465_0x5806ad;return db[_0xf20f93(0x74)]['describe']()[_0xf20f93(0x8a)](respondWithResult(_0x52159b,null))['catch'](handleError(_0x52159b,null));},exports['getQuestions']=function(_0x1de10a,_0x56ef7a){const _0x8a9d8e=a465_0x5806ad;let _0xe35f24={'raw':!![],'where':{}};const _0x1458cb={},_0x530859={'count':0x0,'rows':[]};return db['JscriptySessionReport'][_0x8a9d8e(0x86)]({'where':{'id':_0x1de10a[_0x8a9d8e(0x88)]['id']}})[_0x8a9d8e(0x8a)](handleEntityNotFound(_0x56ef7a,null))[_0x8a9d8e(0x8a)](function(_0x84f86c){const _0x2e3f74=_0x8a9d8e;if(_0x84f86c)return _0x1458cb[_0x2e3f74(0x9d)]=_[_0x2e3f74(0x90)](db[_0x2e3f74(0x99)]['rawAttributes']),_0x1458cb[_0x2e3f74(0x7b)]=_['keys'](_0x1de10a[_0x2e3f74(0x7b)]),_0x1458cb[_0x2e3f74(0x98)]=_[_0x2e3f74(0x75)](_0x1458cb[_0x2e3f74(0x9d)],_0x1458cb[_0x2e3f74(0x7b)]),_0xe35f24[_0x2e3f74(0x8f)]=_['intersection'](_0x1458cb[_0x2e3f74(0x9d)],qs[_0x2e3f74(0x72)](_0x1de10a['query'][_0x2e3f74(0x72)])),_0xe35f24[_0x2e3f74(0x8f)]=_0xe35f24[_0x2e3f74(0x8f)][_0x2e3f74(0xa0)]?_0xe35f24[_0x2e3f74(0x8f)]:_0x1458cb['model'],typeof _0x1de10a[_0x2e3f74(0x7b)][_0x2e3f74(0xa5)]===_0x2e3f74(0x82)&&(_0xe35f24[_0x2e3f74(0xaa)]=qs[_0x2e3f74(0xaa)](_0x1de10a[_0x2e3f74(0x7b)][_0x2e3f74(0xaa)]),_0xe35f24['offset']=qs['offset'](_0x1de10a['query'][_0x2e3f74(0x97)])),_0xe35f24['order']=qs[_0x2e3f74(0x8d)](_0x1de10a[_0x2e3f74(0x7b)]['sort']),_0xe35f24['where']=qs[_0x2e3f74(0x98)](_[_0x2e3f74(0x9f)](_0x1de10a[_0x2e3f74(0x7b)],_0x1458cb[_0x2e3f74(0x98)])),_0xe35f24[_0x2e3f74(0x9e)][_0x2e3f74(0x7f)]=_0x84f86c['id'],_0x1de10a['query'][_0x2e3f74(0x85)]&&(_0xe35f24[_0x2e3f74(0x9e)]=_[_0x2e3f74(0xa8)](_0xe35f24[_0x2e3f74(0x9e)],{[Op['or']]:_[_0x2e3f74(0x80)](_0xe35f24['attributes'],function(_0x4541bb){const _0x149a71=_0x2e3f74,_0x5dc2e7={};return _0x5dc2e7[_0x4541bb]={[Op[_0x149a71(0xa3)]]:'%'+_0x1de10a[_0x149a71(0x7b)][_0x149a71(0x85)]+'%'},_0x5dc2e7;})})),_0xe35f24=_[_0x2e3f74(0xa8)]({},_0xe35f24,_0x1de10a['options']),db[_0x2e3f74(0x99)][_0x2e3f74(0x95)]({'where':_0xe35f24[_0x2e3f74(0x9e)]})[_0x2e3f74(0x8a)](function(_0x4848c1){const _0x537b99=_0x2e3f74;return _0x530859[_0x537b99(0x95)]=_0x4848c1,_0x1de10a['query'][_0x537b99(0x91)]&&(_0xe35f24[_0x537b99(0x71)]=[{'all':!![]}]),db[_0x537b99(0x99)][_0x537b99(0x8b)](_0xe35f24);})[_0x2e3f74(0x8a)](function(_0x3578d8){const _0x3e15f5=_0x2e3f74;return _0x530859[_0x3e15f5(0x87)]=_0x3578d8,_0x530859;});})[_0x8a9d8e(0x8a)](respondWithFilteredResult(_0x56ef7a,_0xe35f24))[_0x8a9d8e(0x76)](handleError(_0x56ef7a,null));}; \ No newline at end of file diff --git a/server/api/jscriptySessionReport/jscriptySessionReport.model.js b/server/api/jscriptySessionReport/jscriptySessionReport.model.js index c1e7b93..e381126 100644 --- a/server/api/jscriptySessionReport/jscriptySessionReport.model.js +++ b/server/api/jscriptySessionReport/jscriptySessionReport.model.js @@ -1 +1 @@ -const a387_0x148e=['JscriptySessionReport','define','./jscriptySessionReport.attributes'];(function(_0x331c93,_0x148ebe){const _0x2f0940=function(_0x4ef376){while(--_0x4ef376){_0x331c93['push'](_0x331c93['shift']());}};_0x2f0940(++_0x148ebe);}(a387_0x148e,0x116));const a387_0x2f09=function(_0x331c93,_0x148ebe){_0x331c93=_0x331c93-0x0;let _0x2f0940=a387_0x148e[_0x331c93];return _0x2f0940;};const _0x3728e0=a387_0x2f09;'use strict';const attributes=require(_0x3728e0('0x0'));module['exports']=function(_0x4ef376){const _0x5600a6=_0x3728e0,_0x48651e=_0x4ef376[_0x5600a6('0x2')](_0x5600a6('0x1'),attributes,{'tableName':'report_jscripty_sessions','paranoid':![],'indexes':[],'timestamps':!![]});return _0x48651e;}; \ No newline at end of file +const a466_0x40b4=['sequelize','./jscriptySessionReport.options','function','exports','init','JscriptySessionReport','./jscriptySessionReport.attributes'];(function(_0x4e10ba,_0x92ac1c){const _0x40b482=function(_0x3624c7){while(--_0x3624c7){_0x4e10ba['push'](_0x4e10ba['shift']());}};_0x40b482(++_0x92ac1c);}(a466_0x40b4,0x14b));const a466_0x3624=function(_0x4e10ba,_0x92ac1c){_0x4e10ba=_0x4e10ba-0x6b;let _0x40b482=a466_0x40b4[_0x4e10ba];return _0x40b482;};const a466_0xcf95a5=a466_0x3624;'use strict';const {Model}=require(a466_0xcf95a5(0x70)),{attributes}=require(a466_0xcf95a5(0x6f)),{options}=require(a466_0xcf95a5(0x71));class JscriptySessionReport extends Model{}function init(_0x1af2fa,_0x483e22){const _0xf3c38f=a466_0xcf95a5,_0x164c38=options(_0x1af2fa),_0x47c1f3=typeof _0x483e22===_0xf3c38f(0x6b)?_0x483e22(_0x164c38):_0x164c38;return JscriptySessionReport[_0xf3c38f(0x6d)](attributes,_0x47c1f3),JscriptySessionReport;}module[a466_0xcf95a5(0x6c)][a466_0xcf95a5(0x6e)]=JscriptySessionReport,module[a466_0xcf95a5(0x6c)][a466_0xcf95a5(0x6d)]=init; \ No newline at end of file diff --git a/server/api/jscriptySessionReport/jscriptySessionReport.options.js b/server/api/jscriptySessionReport/jscriptySessionReport.options.js new file mode 100644 index 0000000..0e4248c --- /dev/null +++ b/server/api/jscriptySessionReport/jscriptySessionReport.options.js @@ -0,0 +1 @@ +var a467_0x39f9=['exports'];(function(_0x3abc39,_0x182137){var _0x39f987=function(_0x341372){while(--_0x341372){_0x3abc39['push'](_0x3abc39['shift']());}};_0x39f987(++_0x182137);}(a467_0x39f9,0x1c7));var a467_0x3413=function(_0x3abc39,_0x182137){_0x3abc39=_0x3abc39-0x133;var _0x39f987=a467_0x39f9[_0x3abc39];return _0x39f987;};var a467_0x17827f=a467_0x3413;function options(_0xefdf0b){return{'sequelize':_0xefdf0b,'tableName':'report_jscripty_sessions','paranoid':![],'indexes':[],'timestamps':!![]};}module[a467_0x17827f(0x133)]['options']=options; \ No newline at end of file diff --git a/server/api/license/index.js b/server/api/license/index.js index 733ba95..b89de9f 100644 --- a/server/api/license/index.js +++ b/server/api/license/index.js @@ -1 +1 @@ -const a388_0x111f=['exports','/:id','get','./license.controller','isAuthenticated','update','Router','put','express'];(function(_0x54d0a8,_0x111f7b){const _0x3c5993=function(_0x20eef0){while(--_0x20eef0){_0x54d0a8['push'](_0x54d0a8['shift']());}};_0x3c5993(++_0x111f7b);}(a388_0x111f,0x139));const a388_0x3c59=function(_0x54d0a8,_0x111f7b){_0x54d0a8=_0x54d0a8-0x0;let _0x3c5993=a388_0x111f[_0x54d0a8];return _0x3c5993;};const _0x3737e0=a388_0x3c59;'use strict';const express=require(_0x3737e0('0x1')),router=express[_0x3737e0('0x8')](),auth=require('../../components/auth/service'),controller=require(_0x3737e0('0x5'));router[_0x3737e0('0x4')]('/',controller['index']),router[_0x3737e0('0x0')](_0x3737e0('0x3'),auth[_0x3737e0('0x6')](),controller[_0x3737e0('0x7')]),module[_0x3737e0('0x2')]=router; \ No newline at end of file +const a468_0x5dd1=['../../components/auth/service','get','Router','isAuthenticated','index','exports','update','./license.controller','express','/:id'];(function(_0xff03b2,_0x18c13d){const _0x5dd119=function(_0x58bd91){while(--_0x58bd91){_0xff03b2['push'](_0xff03b2['shift']());}};_0x5dd119(++_0x18c13d);}(a468_0x5dd1,0xc9));const a468_0x58bd=function(_0xff03b2,_0x18c13d){_0xff03b2=_0xff03b2-0xa0;let _0x5dd119=a468_0x5dd1[_0xff03b2];return _0x5dd119;};const a468_0x201f70=a468_0x58bd;'use strict';const express=require(a468_0x201f70(0xa7)),router=express[a468_0x201f70(0xa1)](),auth=require(a468_0x201f70(0xa9)),controller=require(a468_0x201f70(0xa6));router[a468_0x201f70(0xa0)]('/',controller[a468_0x201f70(0xa3)]),router['put'](a468_0x201f70(0xa8),auth[a468_0x201f70(0xa2)](),controller[a468_0x201f70(0xa5)]),module[a468_0x201f70(0xa4)]=router; \ No newline at end of file diff --git a/server/api/license/license.attributes.js b/server/api/license/license.attributes.js index 7ca93ac..982853e 100644 --- a/server/api/license/license.attributes.js +++ b/server/api/license/license.attributes.js @@ -1 +1 @@ -const a389_0x2282=['exports','STRING','INTEGER'];(function(_0x5a23ad,_0x2282a9){const _0x31f541=function(_0x480e05){while(--_0x480e05){_0x5a23ad['push'](_0x5a23ad['shift']());}};_0x31f541(++_0x2282a9);}(a389_0x2282,0x109));const a389_0x31f5=function(_0x5a23ad,_0x2282a9){_0x5a23ad=_0x5a23ad-0x0;let _0x31f541=a389_0x2282[_0x5a23ad];return _0x31f541;};const _0x2eec65=a389_0x31f5;'use strict';const Sequelize=require('sequelize');module[_0x2eec65('0x2')]={'license':{'type':Sequelize['TEXT']},'data1':{'type':Sequelize[_0x2eec65('0x0')]},'data2':{'type':Sequelize[_0x2eec65('0x0')]},'chatLicenseExceeded':{'type':Sequelize[_0x2eec65('0x1')],'defaultValue':0x0}}; \ No newline at end of file +const a469_0x1a48=['attributes','sequelize','STRING','TEXT'];(function(_0x43fe01,_0x4299c3){const _0x1a48ee=function(_0x2ed10f){while(--_0x2ed10f){_0x43fe01['push'](_0x43fe01['shift']());}};_0x1a48ee(++_0x4299c3);}(a469_0x1a48,0x135));const a469_0x2ed1=function(_0x43fe01,_0x4299c3){_0x43fe01=_0x43fe01-0x106;let _0x1a48ee=a469_0x1a48[_0x43fe01];return _0x1a48ee;};const a469_0x5783d3=a469_0x2ed1;'use strict';const {DataTypes}=require(a469_0x5783d3(0x106)),attributes={'license':{'type':DataTypes[a469_0x5783d3(0x108)]},'data1':{'type':DataTypes[a469_0x5783d3(0x107)]},'data2':{'type':DataTypes[a469_0x5783d3(0x107)]},'chatLicenseExceeded':{'type':DataTypes['INTEGER'],'defaultValue':0x0}};module['exports'][a469_0x5783d3(0x109)]=attributes; \ No newline at end of file diff --git a/server/api/license/license.controller.js b/server/api/license/license.controller.js index cc20f47..e567c6a 100644 --- a/server/api/license/license.controller.js +++ b/server/api/license/license.controller.js @@ -1 +1 @@ -const a390_0x4dfe=['sendStatus','options','key','api','json','../../mysqldb','keys','../../config/logger','index','catch','length','then','License','status','get','fields','update','name','error','params','checkLicense','getLicense','stack','intersection','send','model','../../components/parsers/qs','lodash','query','attributes','body'];(function(_0x5ab457,_0x4dfe0e){const _0x35c794=function(_0x16bda4){while(--_0x16bda4){_0x5ab457['push'](_0x5ab457['shift']());}};_0x35c794(++_0x4dfe0e);}(a390_0x4dfe,0xd7));const a390_0x35c7=function(_0x5ab457,_0x4dfe0e){_0x5ab457=_0x5ab457-0x0;let _0x35c794=a390_0x4dfe[_0x5ab457];return _0x35c794;};const _0x74e975=a390_0x35c7;'use strict';const _=require(_0x74e975('0x1d')),qs=require(_0x74e975('0x1c')),logger=require(_0x74e975('0x9'))(_0x74e975('0x5')),db=require(_0x74e975('0x7'))['db'];function respondWithResult(_0x16bda4,_0x41524f){return _0x41524f=_0x41524f||0xc8,function(_0xe8df45){const _0x1e0b60=a390_0x35c7;if(_0xe8df45)return _0x16bda4[_0x1e0b60('0xf')](_0x41524f)[_0x1e0b60('0x6')](_0xe8df45);};}function saveUpdates(_0x365155){return function(_0x2c1b3a){const _0xec90bc=a390_0x35c7;if(_0x2c1b3a)return _0x2c1b3a[_0xec90bc('0x12')](_0x365155)[_0xec90bc('0xd')](function(_0x4378d7){return _0x4378d7;});return null;};}function handleEntityNotFound(_0x59f688){return function(_0x3c26b9){const _0x22d7dc=a390_0x35c7;return!_0x3c26b9&&_0x59f688[_0x22d7dc('0x2')](0x194),_0x3c26b9;};}function handleError(_0x2e8a16,_0x1476c0){return _0x1476c0=_0x1476c0||0x1f4,function(_0x497fe5){const _0x545063=a390_0x35c7;logger[_0x545063('0x14')](_0x497fe5[_0x545063('0x18')]),_0x497fe5[_0x545063('0x13')]&&delete _0x497fe5[_0x545063('0x13')],_0x2e8a16['status'](_0x1476c0)[_0x545063('0x1a')](_0x497fe5);};}const utilLicense=require('../../config/license/util');exports[_0x74e975('0xa')]=function(_0x5b853f,_0x230a26){const _0x238688=_0x74e975;let _0x5330de={'raw':!![],'where':{'id':0x1}};const _0x404d51={};return _0x404d51[_0x238688('0x1b')]=_[_0x238688('0x8')](db[_0x238688('0xe')]['rawAttributes']),_0x404d51[_0x238688('0x1e')]=_[_0x238688('0x8')](_0x5b853f[_0x238688('0x1e')]),_0x404d51['filters']=_[_0x238688('0x19')](_0x404d51[_0x238688('0x1b')],_0x404d51[_0x238688('0x1e')]),_0x5330de[_0x238688('0x0')]=_[_0x238688('0x19')](_0x404d51['model'],qs[_0x238688('0x11')](_0x5b853f['query'][_0x238688('0x11')])),_0x5330de[_0x238688('0x0')]=_0x5330de[_0x238688('0x0')][_0x238688('0xc')]?_0x5330de[_0x238688('0x0')]:_0x404d51[_0x238688('0x1b')],_0x5330de=_['merge']({},_0x5330de,_0x5b853f[_0x238688('0x3')]),utilLicense[_0x238688('0x17')](_0x5330de)[_0x238688('0xd')](respondWithResult(_0x230a26,null))[_0x238688('0xb')](handleError(_0x230a26,null));},exports['update']=function(_0x3a2de2,_0x35f8fe){const _0x45b08a=_0x74e975;return _0x3a2de2[_0x45b08a('0x1')]['id']&&delete _0x3a2de2[_0x45b08a('0x1')]['id'],db['License']['findOne']({'where':{'id':_0x3a2de2[_0x45b08a('0x15')]['id']}})['then'](handleEntityNotFound(_0x35f8fe,null))['then'](function(_0x4d625c){const _0x10e3f4=_0x45b08a,_0x42e0b1=_0x4d625c[_0x10e3f4('0x10')]({'plain':!![]});return utilLicense[_0x10e3f4('0x16')](_0x42e0b1,_0x3a2de2[_0x10e3f4('0x1')][_0x10e3f4('0x4')]);})[_0x45b08a('0xd')](function(_0x5a7ded){const _0x10d5c6=_0x45b08a;if(!_0x5a7ded['demo'])return saveUpdates(_0x3a2de2[_0x10d5c6('0x1')],null);return _0x5a7ded;})[_0x45b08a('0xd')](respondWithResult(_0x35f8fe,null))['catch'](handleError(_0x35f8fe,null));}; \ No newline at end of file +const a470_0x1c04=['error','../../config/logger','getLicense','name','query','filters','demo','../../mysqldb','License','intersection','options','catch','stack','params','status','fields','then','rawAttributes','findOne','keys','lodash','api','body','../../components/parsers/qs','index','model','update','key','attributes','../../config/license/util','send'];(function(_0x445d03,_0x3e9caf){const _0x1c04fc=function(_0x1271d0){while(--_0x1271d0){_0x445d03['push'](_0x445d03['shift']());}};_0x1c04fc(++_0x3e9caf);}(a470_0x1c04,0x156));const a470_0x1271=function(_0x445d03,_0x3e9caf){_0x445d03=_0x445d03-0x65;let _0x1c04fc=a470_0x1c04[_0x445d03];return _0x1c04fc;};const a470_0x1e6592=a470_0x1271;'use strict';const _=require(a470_0x1e6592(0x78)),qs=require(a470_0x1e6592(0x7b)),logger=require(a470_0x1e6592(0x65))(a470_0x1e6592(0x79)),{db}=require(a470_0x1e6592(0x6b));function respondWithResult(_0x2df8f7,_0x2bc554){return _0x2bc554=_0x2bc554||0xc8,function(_0x2569d3){const _0x348deb=a470_0x1271;if(_0x2569d3)return _0x2df8f7[_0x348deb(0x72)](_0x2bc554)['json'](_0x2569d3);};}function saveUpdates(_0x280c5f){return function(_0x210c74){const _0x311921=a470_0x1271;if(_0x210c74)return _0x210c74[_0x311921(0x7e)](_0x280c5f)['then'](function(_0x485040){return _0x485040;});return null;};}function handleEntityNotFound(_0x3b1af8){return function(_0x46810a){return!_0x46810a&&_0x3b1af8['sendStatus'](0x194),_0x46810a;};}function handleError(_0x155ad8,_0x2c7f4e){return _0x2c7f4e=_0x2c7f4e||0x1f4,function(_0xe2b0fe){const _0x58050e=a470_0x1271;logger[_0x58050e(0x83)](_0xe2b0fe[_0x58050e(0x70)]),_0xe2b0fe[_0x58050e(0x67)]&&delete _0xe2b0fe['name'],_0x155ad8[_0x58050e(0x72)](_0x2c7f4e)[_0x58050e(0x82)](_0xe2b0fe);};}const utilLicense=require(a470_0x1e6592(0x81));exports[a470_0x1e6592(0x7c)]=function(_0x378197,_0x1becd5){const _0x33818f=a470_0x1e6592;let _0x404721={'raw':!![],'where':{'id':0x1}};const _0x479c2d={};return _0x479c2d['model']=_[_0x33818f(0x77)](db[_0x33818f(0x6c)][_0x33818f(0x75)]),_0x479c2d[_0x33818f(0x68)]=_[_0x33818f(0x77)](_0x378197['query']),_0x479c2d[_0x33818f(0x69)]=_[_0x33818f(0x6d)](_0x479c2d[_0x33818f(0x7d)],_0x479c2d[_0x33818f(0x68)]),_0x404721[_0x33818f(0x80)]=_[_0x33818f(0x6d)](_0x479c2d[_0x33818f(0x7d)],qs[_0x33818f(0x73)](_0x378197[_0x33818f(0x68)][_0x33818f(0x73)])),_0x404721[_0x33818f(0x80)]=_0x404721[_0x33818f(0x80)]['length']?_0x404721[_0x33818f(0x80)]:_0x479c2d['model'],_0x404721=_['merge']({},_0x404721,_0x378197[_0x33818f(0x6e)]),utilLicense[_0x33818f(0x66)](_0x404721)['then'](respondWithResult(_0x1becd5,null))[_0x33818f(0x6f)](handleError(_0x1becd5,null));},exports[a470_0x1e6592(0x7e)]=function(_0x5136e8,_0x7577e){const _0x1c9d6b=a470_0x1e6592;return _0x5136e8[_0x1c9d6b(0x7a)]['id']&&delete _0x5136e8[_0x1c9d6b(0x7a)]['id'],db[_0x1c9d6b(0x6c)][_0x1c9d6b(0x76)]({'where':{'id':_0x5136e8[_0x1c9d6b(0x71)]['id']}})[_0x1c9d6b(0x74)](handleEntityNotFound(_0x7577e,null))[_0x1c9d6b(0x74)](function(_0x2195d2){const _0xe125c5=_0x1c9d6b,_0x4e145f=_0x2195d2['get']({'plain':!![]});return utilLicense['checkLicense'](_0x4e145f,_0x5136e8[_0xe125c5(0x7a)][_0xe125c5(0x7f)]);})[_0x1c9d6b(0x74)](function(_0x477185){const _0x41b3c2=_0x1c9d6b;if(!_0x477185[_0x41b3c2(0x6a)])return saveUpdates(_0x5136e8['body'],null);return _0x477185;})[_0x1c9d6b(0x74)](respondWithResult(_0x7577e,null))[_0x1c9d6b(0x6f)](handleError(_0x7577e,null));}; \ No newline at end of file diff --git a/server/api/license/license.model.js b/server/api/license/license.model.js index 1e075b0..7fc2c70 100644 --- a/server/api/license/license.model.js +++ b/server/api/license/license.model.js @@ -1 +1 @@ -const a391_0x3a29=['exports','define','License','license'];(function(_0x49cd50,_0x3a297d){const _0x181c19=function(_0x3d1b33){while(--_0x3d1b33){_0x49cd50['push'](_0x49cd50['shift']());}};_0x181c19(++_0x3a297d);}(a391_0x3a29,0x105));const a391_0x181c=function(_0x49cd50,_0x3a297d){_0x49cd50=_0x49cd50-0x0;let _0x181c19=a391_0x3a29[_0x49cd50];return _0x181c19;};const _0x593c41=a391_0x181c;'use strict';const attributes=require('./license.attributes');module[_0x593c41('0x3')]=function(_0x3d1b33){const _0x2b240e=_0x593c41,_0x2d1855=_0x3d1b33[_0x2b240e('0x0')](_0x2b240e('0x1'),attributes,{'tableName':_0x2b240e('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x2d1855;}; \ No newline at end of file +const a471_0x307b=['./license.options','License','function','./license.attributes','init','exports','sequelize'];(function(_0x5f2d3b,_0x1eb8aa){const _0x307bf9=function(_0x5174f3){while(--_0x5174f3){_0x5f2d3b['push'](_0x5f2d3b['shift']());}};_0x307bf9(++_0x1eb8aa);}(a471_0x307b,0x113));const a471_0x5174=function(_0x5f2d3b,_0x1eb8aa){_0x5f2d3b=_0x5f2d3b-0x77;let _0x307bf9=a471_0x307b[_0x5f2d3b];return _0x307bf9;};const a471_0x5f0bc1=a471_0x5174;'use strict';const {Model}=require(a471_0x5f0bc1(0x7b)),{attributes}=require(a471_0x5f0bc1(0x78)),{options}=require(a471_0x5f0bc1(0x7c));class License extends Model{}function init(_0x9ccd7d,_0x3db273){const _0x5c5bc0=a471_0x5f0bc1,_0x3b5943=options(_0x9ccd7d),_0x3ebeea=typeof _0x3db273===_0x5c5bc0(0x77)?_0x3db273(_0x3b5943):_0x3b5943;return License[_0x5c5bc0(0x79)](attributes,_0x3ebeea),License;}module[a471_0x5f0bc1(0x7a)][a471_0x5f0bc1(0x7d)]=License,module[a471_0x5f0bc1(0x7a)][a471_0x5f0bc1(0x79)]=init; \ No newline at end of file diff --git a/server/api/license/license.options.js b/server/api/license/license.options.js new file mode 100644 index 0000000..7421c48 --- /dev/null +++ b/server/api/license/license.options.js @@ -0,0 +1 @@ +var a472_0x420e=['exports','options'];(function(_0x349073,_0x375dec){var _0x420ea4=function(_0x40fb28){while(--_0x40fb28){_0x349073['push'](_0x349073['shift']());}};_0x420ea4(++_0x375dec);}(a472_0x420e,0xaf));var a472_0x40fb=function(_0x349073,_0x375dec){_0x349073=_0x349073-0x19c;var _0x420ea4=a472_0x420e[_0x349073];return _0x420ea4;};var a472_0x157bce=a472_0x40fb;function options(_0x1c8289){return{'sequelize':_0x1c8289,'tableName':'license','paranoid':![],'indexes':[],'timestamps':!![]};}module[a472_0x157bce(0x19d)][a472_0x157bce(0x19c)]=options; \ No newline at end of file diff --git a/server/api/mailAccount/index.js b/server/api/mailAccount/index.js index 30c5603..2a22938 100644 --- a/server/api/mailAccount/index.js +++ b/server/api/mailAccount/index.js @@ -1 +1 @@ -const a392_0x2da3=['/:id/messages','exports','/:id/interactions','/:id/dispositions','addAnswer','/:id/users','/:id/send','removeAnswers','send','/:id','create','removeDispositions','delete','removeAgents','getInteractions','/describe','/:id/verify','/:id/out_servers','getMessages','getImap','/:id/in_servers','express','addDisposition','getApplications','show','/:id/canned_answers','isAuthenticated','addAgents','getAgents','getDispositions','get','update','index','addImap','post','destroy','/:id/applications','../../components/auth/service','addInteraction','addApplications'];(function(_0xd8cc49,_0x2da326){const _0x4d180a=function(_0x2d9d7c){while(--_0x2d9d7c){_0xd8cc49['push'](_0xd8cc49['shift']());}};_0x4d180a(++_0x2da326);}(a392_0x2da3,0x99));const a392_0x4d18=function(_0xd8cc49,_0x2da326){_0xd8cc49=_0xd8cc49-0x0;let _0x4d180a=a392_0x2da3[_0xd8cc49];return _0x4d180a;};const _0x1e11eb=a392_0x4d18;'use strict';const express=require(_0x1e11eb('0x1c')),router=express['Router'](),auth=require(_0x1e11eb('0x4')),controller=require('./mailAccount.controller');router['get']('/',auth[_0x1e11eb('0x21')](),controller[_0x1e11eb('0x27')]),router['get'](_0x1e11eb('0x16'),auth[_0x1e11eb('0x21')](),controller['describe']),router[_0x1e11eb('0x25')]('/:id',auth[_0x1e11eb('0x21')](),controller[_0x1e11eb('0x1f')]),router['get'](_0x1e11eb('0xa'),auth[_0x1e11eb('0x21')](),controller[_0x1e11eb('0x24')]),router[_0x1e11eb('0x25')]('/:id/canned_answers',auth['isAuthenticated'](),controller['getAnswers']),router[_0x1e11eb('0x25')]('/:id/in_servers',auth['isAuthenticated'](),controller[_0x1e11eb('0x1a')]),router[_0x1e11eb('0x25')](_0x1e11eb('0x18'),auth[_0x1e11eb('0x21')](),controller['getSmtp']),router[_0x1e11eb('0x25')]('/:id/interactions',auth['isAuthenticated'](),controller[_0x1e11eb('0x15')]),router[_0x1e11eb('0x25')](_0x1e11eb('0x3'),auth[_0x1e11eb('0x21')](),controller[_0x1e11eb('0x1e')]),router[_0x1e11eb('0x25')](_0x1e11eb('0x7'),auth[_0x1e11eb('0x21')](),controller[_0x1e11eb('0x19')]),router[_0x1e11eb('0x25')](_0x1e11eb('0x17'),auth[_0x1e11eb('0x21')](),controller['verifySmtp']),router[_0x1e11eb('0x25')](_0x1e11eb('0xc'),auth[_0x1e11eb('0x21')](),controller[_0x1e11eb('0x23')]),router[_0x1e11eb('0x1')](_0x1e11eb('0xa'),auth['isAuthenticated'](),controller[_0x1e11eb('0x1d')]),router[_0x1e11eb('0x1')](_0x1e11eb('0x20'),auth['isAuthenticated'](),controller[_0x1e11eb('0xb')]),router[_0x1e11eb('0x1')]('/',auth[_0x1e11eb('0x21')](),controller[_0x1e11eb('0x11')]),router[_0x1e11eb('0x1')](_0x1e11eb('0x1b'),auth[_0x1e11eb('0x21')](),controller[_0x1e11eb('0x0')]),router['post'](_0x1e11eb('0x18'),auth[_0x1e11eb('0x21')](),controller['addSmtp']),router[_0x1e11eb('0x1')](_0x1e11eb('0x9'),auth[_0x1e11eb('0x21')](),controller[_0x1e11eb('0x5')]),router[_0x1e11eb('0x1')]('/:id/applications',auth['isAuthenticated'](),controller[_0x1e11eb('0x6')]),router[_0x1e11eb('0x1')](_0x1e11eb('0xd'),auth[_0x1e11eb('0x21')](),controller[_0x1e11eb('0xf')]),router[_0x1e11eb('0x1')]('/:id/users',auth[_0x1e11eb('0x21')](),controller[_0x1e11eb('0x22')]),router['put'](_0x1e11eb('0x10'),auth[_0x1e11eb('0x21')](),controller[_0x1e11eb('0x26')]),router[_0x1e11eb('0x13')]('/:id/dispositions',auth['isAuthenticated'](),controller[_0x1e11eb('0x12')]),router[_0x1e11eb('0x13')](_0x1e11eb('0x20'),auth[_0x1e11eb('0x21')](),controller[_0x1e11eb('0xe')]),router[_0x1e11eb('0x13')]('/:id/in_servers',auth[_0x1e11eb('0x21')](),controller['removeImap']),router[_0x1e11eb('0x13')](_0x1e11eb('0x18'),auth['isAuthenticated'](),controller['removeSmtp']),router[_0x1e11eb('0x13')](_0x1e11eb('0x10'),auth[_0x1e11eb('0x21')](),controller[_0x1e11eb('0x2')]),router[_0x1e11eb('0x13')](_0x1e11eb('0xc'),auth['isAuthenticated'](),controller[_0x1e11eb('0x14')]),module[_0x1e11eb('0x8')]=router; \ No newline at end of file +const a473_0xfdc0=['/:id/in_servers','/:id','getAnswers','removeImap','addApplications','addInteraction','send','addAnswer','get','/:id/send','describe','/:id/messages','getApplications','addImap','update','addDisposition','/:id/interactions','express','show','removeSmtp','index','/:id/applications','/:id/users','addSmtp','/:id/canned_answers','post','put','/:id/out_servers','create','getAgents','./mailAccount.controller','getImap','removeAgents','verifySmtp','getSmtp','isAuthenticated','destroy','/:id/dispositions','removeDispositions','delete'];(function(_0x4491ab,_0x263115){const _0xfdc0f6=function(_0x988d83){while(--_0x988d83){_0x4491ab['push'](_0x4491ab['shift']());}};_0xfdc0f6(++_0x263115);}(a473_0xfdc0,0x1aa));const a473_0x988d=function(_0x4491ab,_0x263115){_0x4491ab=_0x4491ab-0x118;let _0xfdc0f6=a473_0xfdc0[_0x4491ab];return _0xfdc0f6;};const a473_0x4a1860=a473_0x988d;'use strict';const express=require(a473_0x4a1860(0x137)),router=express['Router'](),auth=require('../../components/auth/service'),controller=require(a473_0x4a1860(0x11c));router[a473_0x4a1860(0x12e)]('/',auth[a473_0x4a1860(0x121)](),controller[a473_0x4a1860(0x13a)]),router['get']('/describe',auth[a473_0x4a1860(0x121)](),controller[a473_0x4a1860(0x130)]),router[a473_0x4a1860(0x12e)]('/:id',auth[a473_0x4a1860(0x121)](),controller[a473_0x4a1860(0x138)]),router[a473_0x4a1860(0x12e)](a473_0x4a1860(0x123),auth['isAuthenticated'](),controller['getDispositions']),router[a473_0x4a1860(0x12e)](a473_0x4a1860(0x13e),auth[a473_0x4a1860(0x121)](),controller[a473_0x4a1860(0x128)]),router[a473_0x4a1860(0x12e)](a473_0x4a1860(0x126),auth[a473_0x4a1860(0x121)](),controller[a473_0x4a1860(0x11d)]),router['get']('/:id/out_servers',auth['isAuthenticated'](),controller[a473_0x4a1860(0x120)]),router[a473_0x4a1860(0x12e)]('/:id/interactions',auth[a473_0x4a1860(0x121)](),controller['getInteractions']),router[a473_0x4a1860(0x12e)](a473_0x4a1860(0x13b),auth[a473_0x4a1860(0x121)](),controller[a473_0x4a1860(0x132)]),router[a473_0x4a1860(0x12e)](a473_0x4a1860(0x131),auth['isAuthenticated'](),controller['getMessages']),router[a473_0x4a1860(0x12e)]('/:id/verify',auth['isAuthenticated'](),controller[a473_0x4a1860(0x11f)]),router[a473_0x4a1860(0x12e)](a473_0x4a1860(0x13c),auth[a473_0x4a1860(0x121)](),controller[a473_0x4a1860(0x11b)]),router['post'](a473_0x4a1860(0x123),auth[a473_0x4a1860(0x121)](),controller[a473_0x4a1860(0x135)]),router[a473_0x4a1860(0x13f)](a473_0x4a1860(0x13e),auth['isAuthenticated'](),controller[a473_0x4a1860(0x12d)]),router['post']('/',auth[a473_0x4a1860(0x121)](),controller[a473_0x4a1860(0x11a)]),router['post'](a473_0x4a1860(0x126),auth[a473_0x4a1860(0x121)](),controller[a473_0x4a1860(0x133)]),router[a473_0x4a1860(0x13f)](a473_0x4a1860(0x119),auth[a473_0x4a1860(0x121)](),controller[a473_0x4a1860(0x13d)]),router[a473_0x4a1860(0x13f)](a473_0x4a1860(0x136),auth[a473_0x4a1860(0x121)](),controller[a473_0x4a1860(0x12b)]),router[a473_0x4a1860(0x13f)](a473_0x4a1860(0x13b),auth[a473_0x4a1860(0x121)](),controller[a473_0x4a1860(0x12a)]),router[a473_0x4a1860(0x13f)](a473_0x4a1860(0x12f),auth[a473_0x4a1860(0x121)](),controller[a473_0x4a1860(0x12c)]),router['post']('/:id/users',auth[a473_0x4a1860(0x121)](),controller['addAgents']),router[a473_0x4a1860(0x118)](a473_0x4a1860(0x127),auth[a473_0x4a1860(0x121)](),controller[a473_0x4a1860(0x134)]),router['delete'](a473_0x4a1860(0x123),auth['isAuthenticated'](),controller[a473_0x4a1860(0x124)]),router[a473_0x4a1860(0x125)]('/:id/canned_answers',auth['isAuthenticated'](),controller['removeAnswers']),router[a473_0x4a1860(0x125)](a473_0x4a1860(0x126),auth['isAuthenticated'](),controller[a473_0x4a1860(0x129)]),router[a473_0x4a1860(0x125)](a473_0x4a1860(0x119),auth[a473_0x4a1860(0x121)](),controller[a473_0x4a1860(0x139)]),router[a473_0x4a1860(0x125)](a473_0x4a1860(0x127),auth[a473_0x4a1860(0x121)](),controller[a473_0x4a1860(0x122)]),router[a473_0x4a1860(0x125)](a473_0x4a1860(0x13c),auth[a473_0x4a1860(0x121)](),controller[a473_0x4a1860(0x11e)]),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 5fbd869..8b9a258 100644 --- a/server/api/mailAccount/mailAccount.attributes.js +++ b/server/api/mailAccount/mailAccount.attributes.js @@ -1 +1 @@ -const a393_0x4119=['Arial,Helvetica,sans-serif','Account:\x20{{account.name}}
    {{#queue}}Queue:\x20{{queue.name}}
    {{/queue}}From\x20:\x20{{from}}
    Subject\x20:\x20{{message.subject}}','TEXT','UNSIGNED','sequelize','STRING','setDataValue','Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled','BOOLEAN','mandatoryDisposition','mandatoryDispositionPauseId','INTEGER'];(function(_0x3ba221,_0x4119ea){const _0x1d3038=function(_0x1ad7e6){while(--_0x1ad7e6){_0x3ba221['push'](_0x3ba221['shift']());}};_0x1d3038(++_0x4119ea);}(a393_0x4119,0x1eb));const a393_0x1d30=function(_0x3ba221,_0x4119ea){_0x3ba221=_0x3ba221-0x0;let _0x1d3038=a393_0x4119[_0x3ba221];return _0x1d3038;};const _0x2cdf0c=a393_0x1d30;'use strict';const Sequelize=require(_0x2cdf0c('0x5'));module['exports']={'description':{'type':Sequelize[_0x2cdf0c('0x6')]},'name':{'type':Sequelize[_0x2cdf0c('0x6')],'allowNull':![]},'service':{'type':Sequelize[_0x2cdf0c('0x9')],'defaultValue':![]},'email':{'type':Sequelize[_0x2cdf0c('0x6')],'validate':{'isEmail':!![]}},'active':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'key':{'type':Sequelize[_0x2cdf0c('0x6')],'allowNull':![]},'template':{'type':Sequelize['TEXT']},'markAsUnread':{'type':Sequelize[_0x2cdf0c('0x9')],'defaultValue':![]},'fontFamily':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':_0x2cdf0c('0x1')},'fontSize':{'type':Sequelize[_0x2cdf0c('0x0')](0x2)[_0x2cdf0c('0x4')],'defaultValue':0xd,'validate':{'min':0x8,'max':0x48}},'notificationTemplate':{'type':Sequelize[_0x2cdf0c('0x3')],'defaultValue':function(){const _0x1f90d4=_0x2cdf0c;return _0x1f90d4('0x2');}},'notificationSound':{'type':Sequelize[_0x2cdf0c('0x9')],'defaultValue':!![]},'notificationShake':{'type':Sequelize[_0x2cdf0c('0x9')],'defaultValue':![]},'waitForTheAssignedAgent':{'type':Sequelize[_0x2cdf0c('0x0')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'queueTransfer':{'type':Sequelize[_0x2cdf0c('0x9')],'defaultValue':![]},'queueTransferTimeout':{'type':Sequelize[_0x2cdf0c('0x0')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':Sequelize[_0x2cdf0c('0x9')],'defaultValue':![]},'agentTransferTimeout':{'type':Sequelize[_0x2cdf0c('0x0')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'mandatoryDispositionPauseId':{'type':Sequelize[_0x2cdf0c('0x0')],'allowNull':!![],'defaultValue':null,'comment':_0x2cdf0c('0x8')},'mandatoryDisposition':{'type':Sequelize[_0x2cdf0c('0x9')],'defaultValue':![],'comment':'Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','set':function(_0x1ad7e6){const _0x35ff54=_0x2cdf0c;if(!_0x1ad7e6)this['setDataValue'](_0x35ff54('0xb'),null);this[_0x35ff54('0x7')](_0x35ff54('0xa'),_0x1ad7e6);}}}; \ No newline at end of file +const a474_0x5db4=['UNSIGNED','INTEGER','mandatoryDispositionPauseId','BOOLEAN','sequelize','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}}','attributes','setDataValue','STRING','Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue'];(function(_0x5d371c,_0x4ffb2e){const _0x5db433=function(_0x16fd7a){while(--_0x16fd7a){_0x5d371c['push'](_0x5d371c['shift']());}};_0x5db433(++_0x4ffb2e);}(a474_0x5db4,0x1ac));const a474_0x16fd=function(_0x5d371c,_0x4ffb2e){_0x5d371c=_0x5d371c-0x195;let _0x5db433=a474_0x5db4[_0x5d371c];return _0x5db433;};const a474_0x3ecf1c=a474_0x16fd;'use strict';const {DataTypes}=require(a474_0x3ecf1c(0x19a)),attributes={'description':{'type':DataTypes['STRING']},'name':{'type':DataTypes[a474_0x3ecf1c(0x19f)],'allowNull':![]},'service':{'type':DataTypes[a474_0x3ecf1c(0x199)],'defaultValue':![]},'email':{'type':DataTypes[a474_0x3ecf1c(0x19f)],'validate':{'isEmail':!![]}},'active':{'type':DataTypes[a474_0x3ecf1c(0x199)],'defaultValue':!![]},'key':{'type':DataTypes[a474_0x3ecf1c(0x19f)],'allowNull':![]},'template':{'type':DataTypes['TEXT']},'markAsUnread':{'type':DataTypes[a474_0x3ecf1c(0x199)],'defaultValue':![]},'fontFamily':{'type':DataTypes[a474_0x3ecf1c(0x19f)],'allowNull':![],'defaultValue':'Arial,Helvetica,sans-serif'},'fontSize':{'type':DataTypes[a474_0x3ecf1c(0x197)]({'length':0x2})[a474_0x3ecf1c(0x196)],'defaultValue':0xd,'validate':{'min':0x8,'max':0x48}},'notificationTemplate':{'type':DataTypes['TEXT'],'defaultValue':function(){const _0xedfaa=a474_0x3ecf1c;return _0xedfaa(0x19c);}},'notificationSound':{'type':DataTypes['BOOLEAN'],'defaultValue':!![]},'notificationShake':{'type':DataTypes[a474_0x3ecf1c(0x199)],'defaultValue':![]},'waitForTheAssignedAgent':{'type':DataTypes[a474_0x3ecf1c(0x197)],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'queueTransfer':{'type':DataTypes[a474_0x3ecf1c(0x199)],'defaultValue':![]},'queueTransferTimeout':{'type':DataTypes[a474_0x3ecf1c(0x197)],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':DataTypes[a474_0x3ecf1c(0x199)],'defaultValue':![]},'agentTransferTimeout':{'type':DataTypes[a474_0x3ecf1c(0x197)],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'mandatoryDispositionPauseId':{'type':DataTypes['INTEGER'],'allowNull':!![],'defaultValue':null,'comment':a474_0x3ecf1c(0x19b)},'mandatoryDisposition':{'type':DataTypes['BOOLEAN'],'defaultValue':![],'comment':a474_0x3ecf1c(0x195),'set':function(_0x493b41){const _0x306520=a474_0x3ecf1c;if(!_0x493b41)this[_0x306520(0x19e)](_0x306520(0x198),null);this['setDataValue']('mandatoryDisposition',_0x493b41);}}};module['exports'][a474_0x3ecf1c(0x19d)]=attributes; \ No newline at end of file diff --git a/server/api/mailAccount/mailAccount.controller.js b/server/api/mailAccount/mailAccount.controller.js index a7ad0ce..3861f2f 100644 --- a/server/api/mailAccount/mailAccount.controller.js +++ b/server/api/mailAccount/mailAccount.controller.js @@ -1 +1 @@ -const a394_0x38fb=['jayson/promise','getAgents','addImap','$gte','gte','send','YYYY-MM-DD\x20HH:mm:ss','include','You\x20can\x27t\x20remove\x20the\x20mail\x20service\x20account','DESC','get','includeAll','Smtp','rawAttributes','email','Contacts','moment','index','model','messageId','defaults','User','userMailAccount:remove','addAgents','../../mysqldb','VerifySmtp','status','split','request\x20sent','params','describe','Pause','undefined','%s\x20<%s>','query','priority','map','length','../../config/logger','client','filters','name','removeImap','MailServerIn','MailAccount','bulkCreate','from','MailServerOut','error','addApplications','stack','autoAssociation','destroy','key','catch','Interaction','Tags','cservice','auth','host','result','attachments','then','set','options','service','../../config/environment','getMessages','port','addSmtp','CmList','info','attributes','userMailAccount:save','getImap','MailAccounts','limit','root','sequelize','message','ids','ListId','order','password','fields','verifySmtp','updatedAt','cpassword','Unable\x20to\x20retrieve\x20the\x20current\x20user','update','findOne','cuser','addInteraction','isNil','omit','mandatoryDispositionPause','addDisposition','type','pass','MailApplication','fieldName','show','debug','authentication','nolimit','sort','tag','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','server/files/attachments','code','intersection','color','merge','end','keys','MailInteraction','user','removeAgents','MailAccountId','addAnswer','count','Content-Range','sendStatus','isArray','getSmtp','create','like','removeAnswers','getApplications','format','offset','List','List\x20not\x20found','where','path','getAnswers','MailAccount,\x20%s,\x20%s','getDispositions','Imap','rows','MailMessage','pick','active','CmContact','UserProfileSection','userProfileId','CannedAnswer','out','join','../../components/parsers/qs','body','register','emit','filter','Disposition','UserProfileResource','Messages','SendMail','fullname','findAll','role','secure'];(function(_0x1ed21e,_0x38fbf0){const _0x1bd52f=function(_0x3d69a1){while(--_0x3d69a1){_0x1ed21e['push'](_0x1ed21e['shift']());}};_0x1bd52f(++_0x38fbf0);}(a394_0x38fb,0xd0));const a394_0x1bd5=function(_0x1ed21e,_0x38fbf0){_0x1ed21e=_0x1ed21e-0x0;let _0x1bd52f=a394_0x38fb[_0x1ed21e];return _0x1bd52f;};const _0x1c896d=a394_0x1bd5;'use strict';const moment=require(_0x1c896d('0x84')),util=require('util'),path=require(_0x1c896d('0x58')),_=require('lodash'),{getSocket}=require('../../rediscache'),socket=getSocket(),qs=require(_0x1c896d('0x67')),logger=require(_0x1c896d('0x9a'))('api'),config=require(_0x1c896d('0x14')),db=require(_0x1c896d('0x8c'))['db'],{Op,ValidationError}=require(_0x1c896d('0x20'));require('./mailAccount.socket')[_0x1c896d('0x69')](socket);const jayson=require(_0x1c896d('0x74')),client=jayson[_0x1c896d('0x9b')]['http']({'port':0x232b});function respondWithRpcPromise(_0x3d69a1,_0x4eab91,_0x2f0705,_0x37ab99){return new Promise(function(_0x1c9c78,_0x1cefba){const _0x1c2372=a394_0x1bd5,_0x1f1710=_0x37ab99||client;return _0x1f1710['request'](_0x3d69a1,_0x2f0705)[_0x1c2372('0x10')](function(_0x346123){const _0x2d42b9=_0x1c2372;logger[_0x2d42b9('0x19')](_0x2d42b9('0x5a'),_0x4eab91,_0x2d42b9('0x90')),logger[_0x2d42b9('0x38')]('MailAccount,\x20%s,\x20%s,\x20%s',_0x4eab91,_0x2d42b9('0x90'),JSON['stringify'](_0x346123));if(_0x346123['error']){if(_0x346123[_0x2d42b9('0x2')][_0x2d42b9('0x3f')]===0x1f4)return logger[_0x2d42b9('0x2')](_0x2d42b9('0x5a'),_0x4eab91,_0x346123[_0x2d42b9('0x2')][_0x2d42b9('0x21')]),_0x1cefba(_0x346123[_0x2d42b9('0x2')][_0x2d42b9('0x21')]);return logger[_0x2d42b9('0x2')](_0x2d42b9('0x5a'),_0x4eab91,_0x346123['error'][_0x2d42b9('0x21')]),_0x1c9c78(_0x346123[_0x2d42b9('0x2')][_0x2d42b9('0x21')]);}else logger[_0x2d42b9('0x19')](_0x2d42b9('0x5a'),_0x4eab91,_0x2d42b9('0x90')),_0x1c9c78(_0x346123[_0x2d42b9('0xe')]['message']);})[_0x1c2372('0x8')](function(_0x25b3b5){const _0x191bbd=_0x1c2372;logger[_0x191bbd('0x2')](_0x191bbd('0x5a'),_0x4eab91,_0x25b3b5),_0x1cefba(_0x25b3b5);});});}function respondWithStatusCode(_0x57a017,_0x15e21d){return _0x15e21d=_0x15e21d||0xcc,function(_0x2e7207){const _0x599efc=a394_0x1bd5;if(_0x2e7207)return _0x57a017[_0x599efc('0x4c')](_0x15e21d);return _0x57a017[_0x599efc('0x8e')](_0x15e21d)[_0x599efc('0x43')]();};}function respondWithResult(_0x436c78,_0x1d50c0){return _0x1d50c0=_0x1d50c0||0xc8,function(_0x3b9751){const _0xa6ec6b=a394_0x1bd5;if(_0x3b9751)return _0x436c78[_0xa6ec6b('0x8e')](_0x1d50c0)['json'](_0x3b9751);};}function respondWithFilteredResult(_0x31a71f,_0x867290){return function(_0x589892){const _0x52c040=a394_0x1bd5;if(_0x589892){const _0x136389=_0x589892[_0x52c040('0x4a')],_0x5cd766=_0x867290[_0x52c040('0x54')];let _0x4937dc=_0x867290[_0x52c040('0x54')]+_0x867290[_0x52c040('0x1e')],_0x1072a4;return _0x4937dc>=_0x136389?(_0x4937dc=_0x136389,_0x1072a4=0xc8):_0x1072a4=0xce,_0x31a71f[_0x52c040('0x8e')](_0x1072a4),_0x31a71f[_0x52c040('0x11')](_0x52c040('0x4b'),_0x5cd766+'-'+_0x4937dc+'/'+_0x136389)['json'](_0x589892);}return null;};}function saveUpdates(_0xf90f8d){return function(_0x195519){const _0x4dfdab=a394_0x1bd5;if(_0x195519)return _0x195519[_0x4dfdab('0x2b')](_0xf90f8d)[_0x4dfdab('0x10')](function(_0x39c5e5){return _0x39c5e5;});return null;};}function removeEntity(_0x13b898){return function(_0x583b4f){const _0x5a61f4=a394_0x1bd5;if(_0x583b4f)return _0x583b4f[_0x5a61f4('0x6')]()[_0x5a61f4('0x10')](function(){const _0x526f13=_0x5a61f4,_0x4873fb=_0x583b4f[_0x526f13('0x7e')]({'plain':!![]}),_0x143583=_0x526f13('0x1d');return db[_0x526f13('0x6d')][_0x526f13('0x6')]({'where':{'type':_0x143583,'resourceId':_0x4873fb['id']}})[_0x526f13('0x10')](function(){return _0x583b4f;});})[_0x5a61f4('0x10')](function(){const _0x4f2290=_0x5a61f4;_0x13b898['status'](0xcc)[_0x4f2290('0x43')]();});};}function handleEntityNotFound(_0x2b8b14){return function(_0x563733){const _0x58a3d7=a394_0x1bd5;return!_0x563733&&_0x2b8b14[_0x58a3d7('0x4c')](0x194),_0x563733;};}function handleError(_0x132b9b,_0x41fd8a){return _0x41fd8a=_0x41fd8a||0x1f4,function(_0x3cd170){const _0x3229a9=a394_0x1bd5;logger['error'](_0x3cd170[_0x3229a9('0x4')]),_0x3cd170[_0x3229a9('0x9d')]&&delete _0x3cd170['name'],_0x132b9b[_0x3229a9('0x8e')](_0x41fd8a)[_0x3229a9('0x79')](_0x3cd170);};}exports[_0x1c896d('0x85')]=function(_0x653ebd,_0x3c2075){const _0x346762=_0x1c896d;let _0x2c72e8={'include':[{'model':db[_0x346762('0x9f')],'as':_0x346762('0x5c')},{'model':db[_0x346762('0x1')],'as':'Smtp'},{'model':db[_0x346762('0x93')],'as':_0x346762('0x31')}]};const _0x14d268={},_0x44c1a3={'count':0x0,'rows':[]},_0x55bdce=_[_0x346762('0x98')](db['MailAccount']['rawAttributes'],function(_0x5bf544){const _0x37f120=_0x346762;return{'name':_0x5bf544[_0x37f120('0x36')],'type':_0x5bf544[_0x37f120('0x33')][_0x37f120('0x7')]};});_0x14d268['model']=_[_0x346762('0x98')](_0x55bdce,'name'),_0x14d268[_0x346762('0x96')]=_['keys'](_0x653ebd[_0x346762('0x96')]),_0x14d268[_0x346762('0x9c')]=_[_0x346762('0x40')](_0x14d268[_0x346762('0x86')],_0x14d268[_0x346762('0x96')]),_0x2c72e8[_0x346762('0x1a')]=_[_0x346762('0x40')](_0x14d268[_0x346762('0x86')],qs[_0x346762('0x26')](_0x653ebd['query'][_0x346762('0x26')])),_0x2c72e8['attributes']=_0x2c72e8['attributes'][_0x346762('0x99')]?_0x2c72e8[_0x346762('0x1a')]:_0x14d268[_0x346762('0x86')];typeof _0x653ebd[_0x346762('0x96')][_0x346762('0x3a')]==='undefined'&&(_0x2c72e8[_0x346762('0x1e')]=qs[_0x346762('0x1e')](_0x653ebd['query']['limit']),_0x2c72e8[_0x346762('0x54')]=qs[_0x346762('0x54')](_0x653ebd[_0x346762('0x96')]['offset']));_0x2c72e8['order']=qs['sort'](_0x653ebd[_0x346762('0x96')]['sort']),_0x2c72e8[_0x346762('0x57')]=qs['filters'](_[_0x346762('0x5f')](_0x653ebd[_0x346762('0x96')],_0x14d268[_0x346762('0x9c')]),_0x55bdce);_0x653ebd[_0x346762('0x96')][_0x346762('0x6b')]&&(_0x2c72e8['where']=_[_0x346762('0x42')](_0x2c72e8[_0x346762('0x57')],{[Op['or']]:_[_0x346762('0x98')](_0x55bdce,function(_0x7d9544){const _0x2a196f=_0x346762;if(_0x7d9544['type']!=='VIRTUAL'){const _0x16e008={};return _0x16e008[_0x7d9544[_0x2a196f('0x9d')]]={[Op[_0x2a196f('0x50')]]:'%'+_0x653ebd[_0x2a196f('0x96')][_0x2a196f('0x6b')]+'%'},_0x16e008;}})}));_0x2c72e8=_['merge']({},_0x2c72e8,_0x653ebd[_0x346762('0x12')]);const _0x1c7a5c={'where':_0x2c72e8[_0x346762('0x57')]};return db[_0x346762('0xa0')]['count'](_0x1c7a5c)[_0x346762('0x10')](function(_0x27e1ee){const _0x19c874=_0x346762;return _0x44c1a3['count']=_0x27e1ee,_0x653ebd[_0x19c874('0x96')][_0x19c874('0x7f')]&&(_0x2c72e8[_0x19c874('0x7b')]=[{'all':!![]}]),db['MailAccount'][_0x19c874('0x71')](_0x2c72e8);})[_0x346762('0x10')](function(_0x4fa918){const _0x13ca96=_0x346762;return _0x44c1a3[_0x13ca96('0x5d')]=_0x4fa918,_0x44c1a3;})[_0x346762('0x10')](respondWithFilteredResult(_0x3c2075,_0x2c72e8))['catch'](handleError(_0x3c2075,null));},exports[_0x1c896d('0x37')]=function(_0x4b9e09,_0x2167d8){const _0x124cd2=_0x1c896d;let _0x510fd0={'raw':![],'where':{'id':_0x4b9e09['params']['id']},'include':[{'model':db[_0x124cd2('0x9f')],'as':_0x124cd2('0x5c')},{'model':db[_0x124cd2('0x1')],'as':'Smtp'},{'model':db[_0x124cd2('0x93')],'as':_0x124cd2('0x31')}]};const _0x239220={};return _0x239220[_0x124cd2('0x86')]=_[_0x124cd2('0x44')](db[_0x124cd2('0xa0')][_0x124cd2('0x81')]),_0x239220[_0x124cd2('0x96')]=_[_0x124cd2('0x44')](_0x4b9e09['query']),_0x239220[_0x124cd2('0x9c')]=_[_0x124cd2('0x40')](_0x239220[_0x124cd2('0x86')],_0x239220[_0x124cd2('0x96')]),_0x510fd0['attributes']=_[_0x124cd2('0x40')](_0x239220[_0x124cd2('0x86')],qs[_0x124cd2('0x26')](_0x4b9e09[_0x124cd2('0x96')][_0x124cd2('0x26')])),_0x510fd0[_0x124cd2('0x1a')]=_0x510fd0[_0x124cd2('0x1a')][_0x124cd2('0x99')]?_0x510fd0[_0x124cd2('0x1a')]:_0x239220[_0x124cd2('0x86')],_0x4b9e09['query'][_0x124cd2('0x7f')]&&(_0x510fd0['include']=[{'all':!![]}]),_0x510fd0=_[_0x124cd2('0x42')]({},_0x510fd0,_0x4b9e09[_0x124cd2('0x12')]),db[_0x124cd2('0xa0')][_0x124cd2('0x2c')](_0x510fd0)[_0x124cd2('0x10')](handleEntityNotFound(_0x2167d8,null))[_0x124cd2('0x10')](respondWithResult(_0x2167d8,null))[_0x124cd2('0x8')](handleError(_0x2167d8,null));},exports['update']=function(_0x16e1cf,_0x2789a8){const _0x2e8e27=_0x1c896d;return _0x16e1cf[_0x2e8e27('0x68')]['id']&&delete _0x16e1cf[_0x2e8e27('0x68')]['id'],db[_0x2e8e27('0xa0')][_0x2e8e27('0x2c')]({'where':{'id':_0x16e1cf[_0x2e8e27('0x91')]['id']},'include':[{'model':db[_0x2e8e27('0x9f')],'as':_0x2e8e27('0x5c')},{'model':db[_0x2e8e27('0x1')],'as':_0x2e8e27('0x80')},{'model':db[_0x2e8e27('0x93')],'as':_0x2e8e27('0x31')}]})['then'](handleEntityNotFound(_0x2789a8,null))['then'](saveUpdates(_0x16e1cf[_0x2e8e27('0x68')],null))[_0x2e8e27('0x10')](function(_0x5ee7fb){const _0x3ff9c4=_0x2e8e27;if(_0x5ee7fb&&_0x16e1cf['body'][_0x3ff9c4('0x5c')])return db[_0x3ff9c4('0x9f')]['update'](_0x16e1cf['body'][_0x3ff9c4('0x5c')],{'where':{'MailAccountId':_0x5ee7fb['id']}})['then'](function(){return _0x5ee7fb;});return _0x5ee7fb;})[_0x2e8e27('0x10')](function(_0x2fd98d){const _0x14021f=_0x2e8e27;if(_0x2fd98d&&_0x16e1cf['body'][_0x14021f('0x80')])return db[_0x14021f('0x1')]['update'](_0x16e1cf[_0x14021f('0x68')]['Smtp'],{'where':{'MailAccountId':_0x2fd98d['id']}})[_0x14021f('0x10')](function(){return _0x2fd98d;});return _0x2fd98d;})[_0x2e8e27('0x10')](respondWithResult(_0x2789a8,null))['catch'](handleError(_0x2789a8,null));},exports[_0x1c896d('0x92')]=function(_0x30c4ee,_0x2e2529){const _0x2146be=_0x1c896d;return db[_0x2146be('0xa0')][_0x2146be('0x92')]()[_0x2146be('0x10')](respondWithResult(_0x2e2529,null))[_0x2146be('0x8')](handleError(_0x2e2529,null));},exports[_0x1c896d('0x32')]=function(_0x4e69b9,_0x49e5ab){const _0x5115c3=_0x1c896d;return _0x4e69b9[_0x5115c3('0x68')]['id']&&delete _0x4e69b9[_0x5115c3('0x68')]['id'],db[_0x5115c3('0xa0')]['findOne']({'where':{'id':_0x4e69b9[_0x5115c3('0x91')]['id']}})['then'](handleEntityNotFound(_0x49e5ab,null))[_0x5115c3('0x10')](function(_0xf76523){const _0x23b778=_0x5115c3;if(_0xf76523)return _0x4e69b9[_0x23b778('0x68')][_0x23b778('0x48')]=_0xf76523['id'],db['Disposition'][_0x23b778('0x4f')](_0x4e69b9[_0x23b778('0x68')]);})['then'](respondWithResult(_0x49e5ab,null))[_0x5115c3('0x8')](handleError(_0x49e5ab,null));},exports[_0x1c896d('0x5b')]=function(_0x553ca6,_0x26c553){const _0x5f0c1b=_0x1c896d;let _0x5c7db5={'raw':![],'where':{}};const _0x477a97={},_0x2ead52={'count':0x0,'rows':[]};return db[_0x5f0c1b('0xa0')][_0x5f0c1b('0x2c')]({'where':{'id':_0x553ca6[_0x5f0c1b('0x91')]['id']}})[_0x5f0c1b('0x10')](handleEntityNotFound(_0x26c553,null))['then'](function(_0xf13144){const _0x25b8fa=_0x5f0c1b;if(_0xf13144)return _0x477a97[_0x25b8fa('0x86')]=_['keys'](db[_0x25b8fa('0x6c')][_0x25b8fa('0x81')]),_0x477a97[_0x25b8fa('0x96')]=_[_0x25b8fa('0x44')](_0x553ca6['query']),_0x477a97[_0x25b8fa('0x9c')]=_[_0x25b8fa('0x40')](_0x477a97[_0x25b8fa('0x86')],_0x477a97[_0x25b8fa('0x96')]),_0x5c7db5['attributes']=_[_0x25b8fa('0x40')](_0x477a97['model'],qs[_0x25b8fa('0x26')](_0x553ca6[_0x25b8fa('0x96')][_0x25b8fa('0x26')])),_0x5c7db5[_0x25b8fa('0x1a')]=_0x5c7db5['attributes'][_0x25b8fa('0x99')]?_0x5c7db5['attributes']:_0x477a97[_0x25b8fa('0x86')],typeof _0x553ca6[_0x25b8fa('0x96')][_0x25b8fa('0x3a')]===_0x25b8fa('0x94')&&(_0x5c7db5[_0x25b8fa('0x1e')]=qs[_0x25b8fa('0x1e')](_0x553ca6['query'][_0x25b8fa('0x1e')]),_0x5c7db5[_0x25b8fa('0x54')]=qs['offset'](_0x553ca6['query'][_0x25b8fa('0x54')])),_0x5c7db5[_0x25b8fa('0x24')]=qs[_0x25b8fa('0x3b')](_0x553ca6['query'][_0x25b8fa('0x3b')]),_0x5c7db5[_0x25b8fa('0x57')]=qs[_0x25b8fa('0x9c')](_[_0x25b8fa('0x5f')](_0x553ca6['query'],_0x477a97[_0x25b8fa('0x9c')])),_0x5c7db5[_0x25b8fa('0x57')]['MailAccountId']=_0xf13144['id'],_0x553ca6[_0x25b8fa('0x96')][_0x25b8fa('0x6b')]&&(_0x5c7db5[_0x25b8fa('0x57')]=_[_0x25b8fa('0x42')](_0x5c7db5[_0x25b8fa('0x57')],{[Op['or']]:_[_0x25b8fa('0x98')](_0x5c7db5[_0x25b8fa('0x1a')],function(_0x376672){const _0x514326=_0x25b8fa,_0x6ea611={};return _0x6ea611[_0x376672]={[Op[_0x514326('0x50')]]:'%'+_0x553ca6[_0x514326('0x96')][_0x514326('0x6b')]+'%'},_0x6ea611;})})),_0x5c7db5=_['merge']({},_0x5c7db5,_0x553ca6['options']),db['Disposition'][_0x25b8fa('0x4a')]({'where':_0x5c7db5[_0x25b8fa('0x57')]})['then'](function(_0x220d87){const _0x4dbe6b=_0x25b8fa;return _0x2ead52[_0x4dbe6b('0x4a')]=_0x220d87,_0x553ca6[_0x4dbe6b('0x96')][_0x4dbe6b('0x7f')]&&(_0x5c7db5['include']=[{'all':!![]}]),db[_0x4dbe6b('0x6c')][_0x4dbe6b('0x71')](_0x5c7db5);})[_0x25b8fa('0x10')](function(_0x4a4512){return _0x2ead52['rows']=_0x4a4512,_0x2ead52;});})[_0x5f0c1b('0x10')](respondWithFilteredResult(_0x26c553,_0x5c7db5))[_0x5f0c1b('0x8')](handleError(_0x26c553,null));},exports['removeDispositions']=function(_0x4c0af1,_0xefd647){const _0x371ec6=_0x1c896d;return db[_0x371ec6('0xa0')][_0x371ec6('0x2c')]({'where':{'id':_0x4c0af1[_0x371ec6('0x91')]['id']}})[_0x371ec6('0x10')](handleEntityNotFound(_0xefd647,null))[_0x371ec6('0x10')](function(_0x1e1da8){if(_0x1e1da8)return _0x1e1da8['removeDispositions'](_0x4c0af1['query']['ids']);})[_0x371ec6('0x10')](respondWithStatusCode(_0xefd647,null))[_0x371ec6('0x8')](handleError(_0xefd647,null));},exports[_0x1c896d('0x49')]=function(_0x126d89,_0x2c1495){const _0xe45646=_0x1c896d;return _0x126d89['body']['id']&&delete _0x126d89[_0xe45646('0x68')]['id'],db['MailAccount'][_0xe45646('0x2c')]({'where':{'id':_0x126d89[_0xe45646('0x91')]['id']}})[_0xe45646('0x10')](handleEntityNotFound(_0x2c1495,null))[_0xe45646('0x10')](function(_0x2a8889){const _0x1fa495=_0xe45646;if(_0x2a8889)return _0x126d89[_0x1fa495('0x68')][_0x1fa495('0x48')]=_0x2a8889['id'],db[_0x1fa495('0x64')]['create'](_0x126d89[_0x1fa495('0x68')]);})[_0xe45646('0x10')](respondWithResult(_0x2c1495,null))['catch'](handleError(_0x2c1495,null));},exports[_0x1c896d('0x59')]=function(_0x1b4166,_0x3789af){const _0x450140=_0x1c896d;let _0x5585fc={'raw':![],'where':{}};const _0x3bb018={},_0x4c68fa={'count':0x0,'rows':[]};return db[_0x450140('0xa0')]['findOne']({'where':{'id':_0x1b4166[_0x450140('0x91')]['id']}})[_0x450140('0x10')](handleEntityNotFound(_0x3789af,null))[_0x450140('0x10')](function(_0x1ccc78){const _0x567ca1=_0x450140;if(_0x1ccc78)return _0x3bb018[_0x567ca1('0x86')]=_[_0x567ca1('0x44')](db['CannedAnswer'][_0x567ca1('0x81')]),_0x3bb018[_0x567ca1('0x96')]=_[_0x567ca1('0x44')](_0x1b4166[_0x567ca1('0x96')]),_0x3bb018[_0x567ca1('0x9c')]=_['intersection'](_0x3bb018['model'],_0x3bb018[_0x567ca1('0x96')]),_0x5585fc[_0x567ca1('0x1a')]=_[_0x567ca1('0x40')](_0x3bb018[_0x567ca1('0x86')],qs[_0x567ca1('0x26')](_0x1b4166[_0x567ca1('0x96')]['fields'])),_0x5585fc[_0x567ca1('0x1a')]=_0x5585fc[_0x567ca1('0x1a')]['length']?_0x5585fc[_0x567ca1('0x1a')]:_0x3bb018[_0x567ca1('0x86')],typeof _0x1b4166[_0x567ca1('0x96')][_0x567ca1('0x3a')]===_0x567ca1('0x94')&&(_0x5585fc[_0x567ca1('0x1e')]=qs[_0x567ca1('0x1e')](_0x1b4166['query'][_0x567ca1('0x1e')]),_0x5585fc[_0x567ca1('0x54')]=qs[_0x567ca1('0x54')](_0x1b4166[_0x567ca1('0x96')]['offset'])),_0x5585fc[_0x567ca1('0x24')]=qs[_0x567ca1('0x3b')](_0x1b4166[_0x567ca1('0x96')][_0x567ca1('0x3b')]),_0x5585fc[_0x567ca1('0x57')]=qs[_0x567ca1('0x9c')](_[_0x567ca1('0x5f')](_0x1b4166[_0x567ca1('0x96')],_0x3bb018[_0x567ca1('0x9c')])),_0x5585fc[_0x567ca1('0x57')][_0x567ca1('0x48')]=_0x1ccc78['id'],_0x1b4166[_0x567ca1('0x96')][_0x567ca1('0x6b')]&&(_0x5585fc[_0x567ca1('0x57')]=_[_0x567ca1('0x42')](_0x5585fc['where'],{[Op['or']]:_['map'](_0x5585fc[_0x567ca1('0x1a')],function(_0x21dc42){const _0x2f0ef3=_0x567ca1,_0xe22ae4={};return _0xe22ae4[_0x21dc42]={[Op[_0x2f0ef3('0x50')]]:'%'+_0x1b4166[_0x2f0ef3('0x96')][_0x2f0ef3('0x6b')]+'%'},_0xe22ae4;})})),_0x5585fc=_[_0x567ca1('0x42')]({},_0x5585fc,_0x1b4166[_0x567ca1('0x12')]),db['CannedAnswer']['count']({'where':_0x5585fc[_0x567ca1('0x57')]})[_0x567ca1('0x10')](function(_0x2d8368){const _0x4ef66=_0x567ca1;return _0x4c68fa[_0x4ef66('0x4a')]=_0x2d8368,_0x1b4166[_0x4ef66('0x96')][_0x4ef66('0x7f')]&&(_0x5585fc['include']=[{'all':!![]}]),db[_0x4ef66('0x64')][_0x4ef66('0x71')](_0x5585fc);})[_0x567ca1('0x10')](function(_0x31ccd9){return _0x4c68fa['rows']=_0x31ccd9,_0x4c68fa;});})[_0x450140('0x10')](respondWithFilteredResult(_0x3789af,_0x5585fc))['catch'](handleError(_0x3789af,null));},exports[_0x1c896d('0x51')]=function(_0x1c4b1a,_0x3e25a2){const _0x206d41=_0x1c896d;return db['MailAccount'][_0x206d41('0x2c')]({'where':{'id':_0x1c4b1a['params']['id']}})['then'](handleEntityNotFound(_0x3e25a2,null))[_0x206d41('0x10')](function(_0x2d8253){const _0xa434b4=_0x206d41;if(_0x2d8253)return _0x2d8253['removeAnswers'](_0x1c4b1a[_0xa434b4('0x96')][_0xa434b4('0x22')]);})[_0x206d41('0x10')](respondWithStatusCode(_0x3e25a2,null))['catch'](handleError(_0x3e25a2,null));},exports[_0x1c896d('0x4f')]=function(_0x260c34,_0x23cd87){const _0x2d9e27=_0x1c896d,_0x105560={'name':_0x260c34[_0x2d9e27('0x68')][_0x2d9e27('0x9d')],'key':_0x260c34[_0x2d9e27('0x68')][_0x2d9e27('0x7')],'email':_0x260c34['body'][_0x2d9e27('0x82')],'ListId':_0x260c34[_0x2d9e27('0x68')][_0x2d9e27('0x23')],'active':!_[_0x2d9e27('0x2f')](_0x260c34[_0x2d9e27('0x68')][_0x2d9e27('0x60')])?_0x260c34[_0x2d9e27('0x68')][_0x2d9e27('0x60')]:!![],'description':_0x260c34[_0x2d9e27('0x68')]['description']||null,'Imap':{},'Smtp':{}};return _[_0x2d9e27('0x2f')](_0x260c34['body']['cservice'])?(_0x260c34['body']['cauthentication']?(_0x105560['Imap'][_0x2d9e27('0x46')]=_0x260c34[_0x2d9e27('0x68')][_0x2d9e27('0x2d')],_0x105560[_0x2d9e27('0x80')][_0x2d9e27('0x46')]=_0x260c34['body']['cuser'],_0x105560[_0x2d9e27('0x5c')]['password']=_0x260c34[_0x2d9e27('0x68')][_0x2d9e27('0x29')],_0x105560[_0x2d9e27('0x80')]['pass']=_0x260c34[_0x2d9e27('0x68')]['cpassword']):(_0x105560[_0x2d9e27('0x5c')]['authentication']=![],_0x105560[_0x2d9e27('0x80')][_0x2d9e27('0x39')]=![]),_0x105560[_0x2d9e27('0x5c')][_0x2d9e27('0xd')]=_0x260c34[_0x2d9e27('0x68')][_0x2d9e27('0x5c')][_0x2d9e27('0xd')],_0x105560[_0x2d9e27('0x5c')][_0x2d9e27('0x16')]=_0x260c34[_0x2d9e27('0x68')][_0x2d9e27('0x5c')][_0x2d9e27('0x16')],_0x105560[_0x2d9e27('0x80')][_0x2d9e27('0xd')]=_0x260c34[_0x2d9e27('0x68')][_0x2d9e27('0x80')][_0x2d9e27('0xd')],_0x105560[_0x2d9e27('0x80')][_0x2d9e27('0x16')]=_0x260c34[_0x2d9e27('0x68')][_0x2d9e27('0x80')][_0x2d9e27('0x16')]):(_0x105560[_0x2d9e27('0x5c')][_0x2d9e27('0x13')]=_0x260c34['body'][_0x2d9e27('0xb')],_0x105560[_0x2d9e27('0x80')]['service']=_0x260c34['body'][_0x2d9e27('0xb')],_0x105560[_0x2d9e27('0x5c')][_0x2d9e27('0x46')]=_0x260c34[_0x2d9e27('0x68')][_0x2d9e27('0x2d')],_0x105560[_0x2d9e27('0x80')]['user']=_0x260c34[_0x2d9e27('0x68')][_0x2d9e27('0x2d')],_0x105560[_0x2d9e27('0x5c')][_0x2d9e27('0x25')]=_0x260c34['body']['cpassword'],_0x105560[_0x2d9e27('0x80')][_0x2d9e27('0x34')]=_0x260c34['body']['cpassword']),db['MailAccount'][_0x2d9e27('0x4f')](_0x105560,{'include':[{'model':db[_0x2d9e27('0x1')],'as':_0x2d9e27('0x80')},{'model':db[_0x2d9e27('0x9f')],'as':_0x2d9e27('0x5c')}]})['then'](function(_0x2006b5){const _0x47a4d0=_0x2d9e27,_0x3ba01d=_0x260c34[_0x47a4d0('0x46')][_0x47a4d0('0x7e')]({'plain':!![]});if(!_0x3ba01d)throw new Error(_0x47a4d0('0x2a'));if(_0x3ba01d[_0x47a4d0('0x72')]==='user'){const _0x219a28=_0x2006b5[_0x47a4d0('0x7e')]({'plain':!![]});return db[_0x47a4d0('0x62')][_0x47a4d0('0x2c')]({'where':{'name':_0x47a4d0('0x1d'),'userProfileId':_0x3ba01d[_0x47a4d0('0x63')]},'raw':!![]})['then'](function(_0x5e6d38){const _0x5cb7ca=_0x47a4d0;return _0x5e6d38&&_0x5e6d38[_0x5cb7ca('0x5')]===0x0?db[_0x5cb7ca('0x6d')][_0x5cb7ca('0x4f')]({'name':_0x219a28[_0x5cb7ca('0x9d')],'resourceId':_0x219a28['id'],'type':_0x5e6d38[_0x5cb7ca('0x9d')],'sectionId':_0x5e6d38['id']},{})[_0x5cb7ca('0x10')](function(){return _0x2006b5;}):_0x2006b5;})['catch'](function(_0x173be9){const _0x729b9f=_0x47a4d0;logger[_0x729b9f('0x2')](_0x729b9f('0x3d'),_0x173be9);throw _0x173be9;});}return _0x2006b5;})[_0x2d9e27('0x10')](respondWithResult(_0x23cd87,0xc9))[_0x2d9e27('0x8')](handleError(_0x23cd87,null));},exports[_0x1c896d('0x1c')]=function(_0x4904f8,_0x21e9d1){const _0x23bc07=_0x1c896d;return db['MailAccount']['findOne']({'where':{'id':_0x4904f8['params']['id']}})[_0x23bc07('0x10')](handleEntityNotFound(_0x21e9d1,null))['then'](function(_0x416c56){const _0x67c9fb=_0x23bc07;if(_0x416c56)return _0x416c56[_0x67c9fb('0x1c')]();return null;})['then'](respondWithResult(_0x21e9d1,null))['catch'](handleError(_0x21e9d1,null));},exports[_0x1c896d('0x76')]=function(_0x1aae17,_0x347ca9){const _0x5255df=_0x1c896d;return _0x1aae17['body']['id']&&delete _0x1aae17['body']['id'],db[_0x5255df('0xa0')][_0x5255df('0x2c')]({'where':{'id':_0x1aae17['params']['id']}})['then'](handleEntityNotFound(_0x347ca9,null))[_0x5255df('0x10')](function(_0xe74b50){const _0x3b8159=_0x5255df;if(_0xe74b50)return _0x1aae17[_0x3b8159('0x68')]['MailAccountId']=_0xe74b50['id'],db[_0x3b8159('0x9f')][_0x3b8159('0x4f')](_0x1aae17[_0x3b8159('0x68')]);})['then'](respondWithResult(_0x347ca9,null))[_0x5255df('0x8')](handleError(_0x347ca9,null));},exports[_0x1c896d('0x9e')]=function(_0x5331e0,_0x3f5beb){const _0xc1f750=_0x1c896d;return db[_0xc1f750('0xa0')][_0xc1f750('0x2c')]({'where':{'id':_0x5331e0[_0xc1f750('0x91')]['id']}})[_0xc1f750('0x10')](handleEntityNotFound(_0x3f5beb,null))['then'](function(_0x139f54){if(_0x139f54)return _0x139f54['setImap'](null);return null;})[_0xc1f750('0x10')](respondWithStatusCode(_0x3f5beb,null))[_0xc1f750('0x8')](handleError(_0x3f5beb,null));},exports[_0x1c896d('0x4e')]=function(_0xf4bd8d,_0x518d08){const _0x5aaf8e=_0x1c896d;return db[_0x5aaf8e('0xa0')][_0x5aaf8e('0x2c')]({'where':{'id':_0xf4bd8d[_0x5aaf8e('0x91')]['id']}})['then'](handleEntityNotFound(_0x518d08,null))[_0x5aaf8e('0x10')](function(_0x25e34c){const _0x7d90e9=_0x5aaf8e;if(_0x25e34c)return _0x25e34c[_0x7d90e9('0x4e')]();return null;})[_0x5aaf8e('0x10')](respondWithResult(_0x518d08,null))['catch'](handleError(_0x518d08,null));},exports[_0x1c896d('0x17')]=function(_0x2de830,_0x112057){const _0xc07d71=_0x1c896d;return _0x2de830[_0xc07d71('0x68')]['id']&&delete _0x2de830['body']['id'],db[_0xc07d71('0xa0')][_0xc07d71('0x2c')]({'where':{'id':_0x2de830[_0xc07d71('0x91')]['id']}})['then'](handleEntityNotFound(_0x112057,null))[_0xc07d71('0x10')](function(_0x45d05f){const _0x45d3e8=_0xc07d71;if(_0x45d05f)return _0x2de830['body']['MailAccountId']=_0x45d05f['id'],db[_0x45d3e8('0x1')][_0x45d3e8('0x4f')](_0x2de830['body']);})[_0xc07d71('0x10')](respondWithResult(_0x112057,null))[_0xc07d71('0x8')](handleError(_0x112057,null));},exports['removeSmtp']=function(_0x8596bc,_0xb7d66f){const _0x296499=_0x1c896d;return db[_0x296499('0xa0')][_0x296499('0x2c')]({'where':{'id':_0x8596bc[_0x296499('0x91')]['id']}})[_0x296499('0x10')](handleEntityNotFound(_0xb7d66f,null))[_0x296499('0x10')](function(_0x3b2cd1){if(_0x3b2cd1)return _0x3b2cd1['setSmtp'](null);return null;})[_0x296499('0x10')](respondWithStatusCode(_0xb7d66f,null))[_0x296499('0x8')](handleError(_0xb7d66f,null));},exports[_0x1c896d('0x2e')]=function(_0x5498fb,_0x50e022){const _0x331d61=_0x1c896d;return db[_0x331d61('0x45')]['findOne']({'where':{'id':_0x5498fb[_0x331d61('0x91')]['id']}})[_0x331d61('0x10')](function(_0x5e75c7){const _0x2114f0=_0x331d61;if(_0x5e75c7)return _0x5e75c7[_0x2114f0('0x2e')](_0x5498fb['body'][_0x2114f0('0x22')],{'through':_[_0x2114f0('0x30')](_0x5498fb[_0x2114f0('0x68')],[_0x2114f0('0x22'),'id'])});})['then'](respondWithResult(_0x50e022,null))[_0x331d61('0x8')](handleError(_0x50e022,null));},exports['getInteractions']=function(_0x571b66,_0x13b971){const _0xb1c16e=_0x1c896d;let _0x429192={'raw':![],'where':{}};const _0x4be28a={},_0x370d7b={'count':0x0,'rows':[]};return db['MailAccount']['findOne']({'where':{'id':_0x571b66[_0xb1c16e('0x91')]['id']}})[_0xb1c16e('0x10')](handleEntityNotFound(_0x13b971,null))['then'](function(_0x597ef7){const _0x2572b9=_0xb1c16e;if(_0x597ef7)return _0x4be28a[_0x2572b9('0x86')]=_[_0x2572b9('0x44')](db[_0x2572b9('0x45')]['rawAttributes']),_0x4be28a[_0x2572b9('0x96')]=_[_0x2572b9('0x44')](_0x571b66[_0x2572b9('0x96')]),_0x4be28a[_0x2572b9('0x9c')]=_[_0x2572b9('0x40')](_0x4be28a[_0x2572b9('0x86')],_0x4be28a[_0x2572b9('0x96')]),_0x429192[_0x2572b9('0x1a')]=_[_0x2572b9('0x40')](_0x4be28a['model'],qs[_0x2572b9('0x26')](_0x571b66[_0x2572b9('0x96')][_0x2572b9('0x26')])),_0x429192[_0x2572b9('0x1a')]=_0x429192['attributes'][_0x2572b9('0x99')]?_0x429192[_0x2572b9('0x1a')]:_0x4be28a[_0x2572b9('0x86')],typeof _0x571b66[_0x2572b9('0x96')][_0x2572b9('0x3a')]===_0x2572b9('0x94')&&(_0x429192[_0x2572b9('0x1e')]=qs[_0x2572b9('0x1e')](_0x571b66[_0x2572b9('0x96')]['limit']),_0x429192[_0x2572b9('0x54')]=qs['offset'](_0x571b66[_0x2572b9('0x96')][_0x2572b9('0x54')])),_0x429192[_0x2572b9('0x24')]=qs['sort'](_0x571b66['query'][_0x2572b9('0x3b')]),_0x429192[_0x2572b9('0x57')]=qs[_0x2572b9('0x9c')](_[_0x2572b9('0x5f')](_0x571b66['query'],_0x4be28a[_0x2572b9('0x9c')])),_0x429192[_0x2572b9('0x57')][_0x2572b9('0x48')]=_0x597ef7['id'],_0x571b66[_0x2572b9('0x96')][_0x2572b9('0x6b')]&&(_0x429192['where']=_['merge'](_0x429192[_0x2572b9('0x57')],{[Op['or']]:_[_0x2572b9('0x98')](_0x429192[_0x2572b9('0x1a')],function(_0x2cdda2){const _0x594081=_0x2572b9,_0x206c73={};return _0x206c73[_0x2cdda2]={[Op[_0x594081('0x50')]]:'%'+_0x571b66[_0x594081('0x96')][_0x594081('0x6b')]+'%'},_0x206c73;})})),_0x429192=_[_0x2572b9('0x42')]({},_0x429192,_0x571b66[_0x2572b9('0x12')]),db['MailInteraction'][_0x2572b9('0x4a')]({'where':_0x429192['where']})['then'](function(_0x21ac99){const _0x27c99c=_0x2572b9;return _0x370d7b[_0x27c99c('0x4a')]=_0x21ac99,_0x571b66[_0x27c99c('0x96')][_0x27c99c('0x7f')]&&(_0x429192['include']=[{'model':db['CmContact'],'as':'Contact','required':![]},{'model':db[_0x27c99c('0x89')],'as':'Owner','attributes':[_0x27c99c('0x9d'),_0x27c99c('0x70'),'internal'],'required':![]},{'model':db['Tag'],'as':_0x27c99c('0xa'),'attributes':['id',_0x27c99c('0x9d'),_0x27c99c('0x41')],'where':_0x571b66[_0x27c99c('0x96')]['tag']?{'id':_0x571b66[_0x27c99c('0x96')][_0x27c99c('0x3c')]}:undefined,'required':_0x571b66[_0x27c99c('0x96')][_0x27c99c('0x3c')]?!![]:![]}]),db[_0x27c99c('0x45')][_0x27c99c('0x71')](_0x429192);})[_0x2572b9('0x10')](function(_0x210d6a){const _0x55247=_0x2572b9;return _0x370d7b[_0x55247('0x5d')]=_0x210d6a,_0x370d7b;});})[_0xb1c16e('0x10')](respondWithFilteredResult(_0x13b971,_0x429192))[_0xb1c16e('0x8')](handleError(_0x13b971,null));},exports[_0x1c896d('0x3')]=function(_0x416207,_0x4675a7){const _0x5a057d=_0x1c896d;return db[_0x5a057d('0xa0')][_0x5a057d('0x2c')]({'where':{'id':_0x416207['params']['id']}})[_0x5a057d('0x10')](handleEntityNotFound(_0x4675a7,null))[_0x5a057d('0x10')](function(_0x5cf09b){const _0x2df45b=_0x5a057d;if(_0x5cf09b)return db[_0x2df45b('0x20')]['transaction'](function(_0x10f2f1){const _0x48364d=_0x2df45b;return db[_0x48364d('0x35')]['destroy']({'where':{'MailAccountId':_0x416207[_0x48364d('0x91')]['id']},'transaction':_0x10f2f1})['then'](function(){const _0x5c1d12=_0x48364d,_0x48c85f=_['map'](_0x416207[_0x5c1d12('0x68')],function(_0x495397){const _0x58e803=_0x5c1d12;return _0x495397[_0x58e803('0x48')]=_0x416207['params']['id'],_0x495397;});return db[_0x5c1d12('0x35')][_0x5c1d12('0xa1')](_0x48c85f,{'transaction':_0x10f2f1});});})[_0x2df45b('0x10')](function(){const _0x5331fa=_0x2df45b;return db['MailApplication']['findAndCountAll']({'where':{'MailAccountId':_0x416207[_0x5331fa('0x91')]['id']},'order':_0x5331fa('0x97')});});})[_0x5a057d('0x10')](respondWithResult(_0x4675a7,null))[_0x5a057d('0x8')](handleError(_0x4675a7,null));},exports[_0x1c896d('0x52')]=function(_0x366210,_0x5326c3){const _0x1de92a=_0x1c896d;let _0x54fb11={};const _0x5151dd={};let _0x228cd2,_0x586b69;return db['MailAccount']['findOne']({'where':{'id':_0x366210[_0x1de92a('0x91')]['id']}})[_0x1de92a('0x10')](handleEntityNotFound(_0x5326c3,null))[_0x1de92a('0x10')](function(_0x2df2e8){const _0xa9d514=_0x1de92a;if(_0x2df2e8)return _0x228cd2=_0x2df2e8,_0x5151dd[_0xa9d514('0x86')]=_['keys'](db[_0xa9d514('0x35')]['rawAttributes']),_0x5151dd[_0xa9d514('0x96')]=_[_0xa9d514('0x44')](_0x366210[_0xa9d514('0x96')]),_0x5151dd[_0xa9d514('0x9c')]=_[_0xa9d514('0x40')](_0x5151dd[_0xa9d514('0x86')],_0x5151dd[_0xa9d514('0x96')]),_0x54fb11['attributes']=_['intersection'](_0x5151dd[_0xa9d514('0x86')],qs[_0xa9d514('0x26')](_0x366210['query'][_0xa9d514('0x26')])),_0x54fb11[_0xa9d514('0x1a')]=_0x54fb11[_0xa9d514('0x1a')]['length']?_0x54fb11['attributes']:_0x5151dd[_0xa9d514('0x86')],_0x54fb11[_0xa9d514('0x24')]=qs[_0xa9d514('0x3b')](_0x366210[_0xa9d514('0x96')][_0xa9d514('0x3b')]),_0x54fb11['where']=qs['filters'](_[_0xa9d514('0x5f')](_0x366210[_0xa9d514('0x96')],_0x5151dd[_0xa9d514('0x9c')])),_0x366210[_0xa9d514('0x96')][_0xa9d514('0x6b')]&&(_0x54fb11[_0xa9d514('0x57')]=_[_0xa9d514('0x42')](_0x54fb11[_0xa9d514('0x57')],{[Op['or']]:_['map'](_0x54fb11[_0xa9d514('0x1a')],function(_0x3efd95){const _0x305ae1=_0xa9d514,_0xe5fc4={};return _0xe5fc4[_0x3efd95]={[Op[_0x305ae1('0x50')]]:'%'+_0x366210['query']['filter']+'%'},_0xe5fc4;})})),_0x54fb11=_[_0xa9d514('0x42')]({},_0x54fb11,_0x366210[_0xa9d514('0x12')]),_0x228cd2[_0xa9d514('0x52')](_0x54fb11);})[_0x1de92a('0x10')](function(_0x532f8f){const _0x465f87=_0x1de92a;if(_0x532f8f)return _0x586b69=_0x532f8f[_0x465f87('0x99')],typeof _0x366210[_0x465f87('0x96')]['nolimit']===_0x465f87('0x94')&&(_0x54fb11[_0x465f87('0x1e')]=qs[_0x465f87('0x1e')](_0x366210[_0x465f87('0x96')]['limit']),_0x54fb11[_0x465f87('0x54')]=qs['offset'](_0x366210[_0x465f87('0x96')]['offset'])),_0x228cd2['getApplications'](_0x54fb11);})['then'](function(_0x152fa9){if(_0x152fa9)return _0x152fa9?{'count':_0x586b69,'rows':_0x152fa9}:null;})['then'](respondWithResult(_0x5326c3,null))[_0x1de92a('0x8')](handleError(_0x5326c3,null));},exports[_0x1c896d('0x15')]=function(_0x1741b6,_0x3b0295){const _0x403fb0=_0x1c896d;let _0x3d4507={'raw':!![],'where':{}};const _0x41810d={},_0x20de48={'count':0x0,'rows':[]};return db[_0x403fb0('0xa0')][_0x403fb0('0x2c')]({'where':{'id':_0x1741b6['params']['id']}})[_0x403fb0('0x10')](handleEntityNotFound(_0x3b0295,null))[_0x403fb0('0x10')](function(_0x450fde){const _0x4493a0=_0x403fb0;if(_0x450fde){_0x41810d[_0x4493a0('0x86')]=_['keys'](db['MailMessage'][_0x4493a0('0x81')]),_0x41810d[_0x4493a0('0x96')]=_[_0x4493a0('0x44')](_0x1741b6[_0x4493a0('0x96')]),_0x41810d[_0x4493a0('0x9c')]=_[_0x4493a0('0x40')](_0x41810d[_0x4493a0('0x86')],_0x41810d[_0x4493a0('0x96')]),_0x3d4507[_0x4493a0('0x1a')]=_['intersection'](_0x41810d[_0x4493a0('0x86')],qs[_0x4493a0('0x26')](_0x1741b6[_0x4493a0('0x96')][_0x4493a0('0x26')])),_0x3d4507[_0x4493a0('0x1a')]=_0x3d4507[_0x4493a0('0x1a')][_0x4493a0('0x99')]?_0x3d4507[_0x4493a0('0x1a')]:_0x41810d[_0x4493a0('0x86')];typeof _0x1741b6['query'][_0x4493a0('0x3a')]===_0x4493a0('0x94')&&(_0x3d4507['limit']=qs[_0x4493a0('0x1e')](_0x1741b6['query']['limit']),_0x3d4507[_0x4493a0('0x54')]=qs[_0x4493a0('0x54')](_0x1741b6[_0x4493a0('0x96')]['offset']));_0x3d4507[_0x4493a0('0x24')]=qs[_0x4493a0('0x3b')](_0x1741b6[_0x4493a0('0x96')][_0x4493a0('0x3b')]),_0x3d4507['where']=qs[_0x4493a0('0x9c')](_['pick'](_0x1741b6['query'],_0x41810d['filters'])),_0x3d4507[_0x4493a0('0x57')][_0x4493a0('0x48')]=_0x450fde['id'];_0x1741b6['query']['filter']&&(_0x3d4507[_0x4493a0('0x57')]=_[_0x4493a0('0x42')](_0x3d4507[_0x4493a0('0x57')],{[Op['or']]:_[_0x4493a0('0x98')](_0x3d4507[_0x4493a0('0x1a')],function(_0x10f454){const _0x29575b=_0x4493a0,_0x335a6c={};return _0x335a6c[_0x10f454]={[Op[_0x29575b('0x50')]]:'%'+_0x1741b6['query'][_0x29575b('0x6b')]+'%'},_0x335a6c;})}));if(_0x1741b6['query'][_0x4493a0('0x77')]){const _0x7dccbd=_0x1741b6[_0x4493a0('0x96')][_0x4493a0('0x77')][_0x4493a0('0x8f')](','),_0x2cbb16={};_0x2cbb16[_0x7dccbd[0x0]]={[Op[_0x4493a0('0x78')]]:moment(_0x7dccbd[0x1])['format'](_0x4493a0('0x7a'))},_0x3d4507[_0x4493a0('0x57')]=_[_0x4493a0('0x42')](_0x3d4507[_0x4493a0('0x57')],_0x2cbb16);}return _0x3d4507=_[_0x4493a0('0x42')]({},_0x3d4507,_0x1741b6[_0x4493a0('0x12')]),db[_0x4493a0('0x5e')][_0x4493a0('0x4a')]({'where':_0x3d4507[_0x4493a0('0x57')]})['then'](function(_0x2d9be8){const _0x203407=_0x4493a0;return _0x20de48['count']=_0x2d9be8,_0x1741b6[_0x203407('0x96')][_0x203407('0x7f')]&&(_0x3d4507[_0x203407('0x7b')]=[{'all':!![]}]),db[_0x203407('0x5e')][_0x203407('0x71')](_0x3d4507);})['then'](function(_0x3a21f7){return _0x20de48['rows']=_0x3a21f7,_0x20de48;});}})[_0x403fb0('0x10')](respondWithFilteredResult(_0x3b0295,_0x3d4507))[_0x403fb0('0x8')](handleError(_0x3b0295,null));},exports[_0x1c896d('0x79')]=function(_0x10a8f8,_0x39d935){const _0x12c0c9=_0x1c896d;let _0x4b88d4,_0x10d8ef={},_0x4fa8f0;return _0x10a8f8['body']['to']&&(_0x4fa8f0=_0x10a8f8[_0x12c0c9('0x68')]['to'][_0x12c0c9('0x8f')](',')[0x0]),db[_0x12c0c9('0xa0')]['findOne']({'where':{'id':_0x10a8f8['params']['id']},'include':[{'model':db[_0x12c0c9('0x18')],'as':_0x12c0c9('0x55'),'include':[{'model':db['CmContact'],'as':_0x12c0c9('0x83'),'where':{'email':_0x4fa8f0},'limit':0x1,'order':[[_0x12c0c9('0x28'),_0x12c0c9('0x7d')]]}]},{'model':db[_0x12c0c9('0x1')],'as':_0x12c0c9('0x80'),'raw':!![]}]})[_0x12c0c9('0x10')](handleEntityNotFound(_0x39d935,null))['then'](function(_0x148c92){const _0x26ab51=_0x12c0c9;if(_0x148c92){_0x4b88d4=_0x148c92;if(_0x148c92['Smtp']){_[_0x26ab51('0x2f')](_0x10a8f8['body'][_0x26ab51('0x0')])&&(_0x10a8f8[_0x26ab51('0x68')]['from']=util[_0x26ab51('0x53')](_0x26ab51('0x95'),_0x148c92[_0x26ab51('0x9d')],_0x148c92[_0x26ab51('0x82')]||_0x148c92[_0x26ab51('0x80')][_0x26ab51('0x46')]));if(_0x10a8f8[_0x26ab51('0x68')][_0x26ab51('0xf')]&&_0x10a8f8['body'][_0x26ab51('0xf')][_0x26ab51('0x99')])for(let _0x52de96=0x0;_0x52de96<_0x10a8f8[_0x26ab51('0x68')]['attachments'][_0x26ab51('0x99')];_0x52de96+=0x1){_0x10a8f8['body']['attachments'][_0x52de96]={'filename':_0x10a8f8[_0x26ab51('0x68')][_0x26ab51('0xf')][_0x52de96][_0x26ab51('0x9d')],'path':path[_0x26ab51('0x66')](config[_0x26ab51('0x1f')],_0x26ab51('0x3e'),_0x10a8f8[_0x26ab51('0x68')][_0x26ab51('0xf')][_0x52de96]['basename'])};}const _0x1b5dda={'tls':{'rejectUnauthorized':![]}};return _[_0x26ab51('0x2f')](_0x148c92[_0x26ab51('0x80')][_0x26ab51('0x13')])?(_0x148c92['Smtp'][_0x26ab51('0x39')]&&(_0x1b5dda['auth']={'user':_0x148c92['Smtp']['user'],'pass':_0x148c92[_0x26ab51('0x80')]['pass']}),_0x1b5dda[_0x26ab51('0xd')]=_0x148c92['Smtp'][_0x26ab51('0xd')],_0x1b5dda[_0x26ab51('0x16')]=_0x148c92[_0x26ab51('0x80')][_0x26ab51('0x16')],_0x1b5dda[_0x26ab51('0x73')]=_0x148c92[_0x26ab51('0x80')][_0x26ab51('0x73')]):(_0x1b5dda[_0x26ab51('0x13')]=_0x148c92[_0x26ab51('0x80')][_0x26ab51('0x13')],_0x1b5dda[_0x26ab51('0xc')]={'user':_0x148c92[_0x26ab51('0x80')][_0x26ab51('0x46')],'pass':_0x148c92[_0x26ab51('0x80')]['pass']}),respondWithRpcPromise(_0x26ab51('0x6f'),'sendMail',{'account':_0x1b5dda,'message':_0x10a8f8[_0x26ab51('0x68')]});}else throw new Error(_0x26ab51('0x56'));}})[_0x12c0c9('0x10')](function(_0x274a72){const _0x34478a=_0x12c0c9;if(_0x274a72){_0x10d8ef=_0x274a72;if(_0x4b88d4[_0x34478a('0x55')])return _0x4b88d4[_0x34478a('0x55')]['Contacts'][_0x34478a('0x99')]?_0x4b88d4[_0x34478a('0x55')][_0x34478a('0x83')][0x0]:db[_0x34478a('0x61')][_0x34478a('0x4f')](_[_0x34478a('0x88')](_0x10a8f8[_0x34478a('0x68')],{'firstName':_0x10a8f8[_0x34478a('0x68')]['to'],'email':_0x10a8f8[_0x34478a('0x68')]['to'],'phone':_0x10a8f8[_0x34478a('0x68')]['to'],'ListId':_0x4b88d4['ListId']}));else throw new Error(_0x34478a('0x56'));}})[_0x12c0c9('0x10')](function(_0x3dd1cc){const _0x54f6b5=_0x12c0c9;if(_0x3dd1cc){let _0x50d31f={'UserId':_0x10a8f8[_0x54f6b5('0x46')]['id'],'ContactId':_0x3dd1cc['id'],'MailAccountId':_0x4b88d4['id'],'inReplyTo':_0x10d8ef[_0x54f6b5('0x87')],'to':_0x10a8f8['body'][_0x54f6b5('0x0')],'cc':_0x10a8f8[_0x54f6b5('0x68')]['cc'],'subject':_0x10a8f8['body']['subject'],'attach':_0x10a8f8[_0x54f6b5('0x68')]['attach'],'firstMsgDirection':_0x54f6b5('0x65'),'lastMsgAt':moment()[_0x54f6b5('0x53')](_0x54f6b5('0x7a')),'lastMsgDirection':_0x54f6b5('0x65'),'lastMsgBody':_0x10a8f8[_0x54f6b5('0x68')][_0x54f6b5('0x68')],'Messages':[_[_0x54f6b5('0x42')](_0x10a8f8[_0x54f6b5('0x68')],{'messageId':_0x10d8ef[_0x54f6b5('0x87')],'sentAt':moment()[_0x54f6b5('0x53')]('YYYY-MM-DD\x20HH:mm:ss'),'read':!![],'MailAccountId':_0x4b88d4['id'],'UserId':_0x10a8f8[_0x54f6b5('0x46')]['id'],'ContactId':_0x3dd1cc['id']})]};return _0x10a8f8[_0x54f6b5('0x68')][_0x54f6b5('0x9')]&&(_0x50d31f=_['merge'](_0x50d31f,_0x10a8f8[_0x54f6b5('0x68')][_0x54f6b5('0x9')])),db['MailInteraction'][_0x54f6b5('0x4f')](_0x50d31f,{'include':[{'model':db['MailMessage'],'as':_0x54f6b5('0x6e')}]});}})[_0x12c0c9('0x10')](respondWithResult(_0x39d935,null))[_0x12c0c9('0x8')](handleError(_0x39d935,null));},exports[_0x1c896d('0x27')]=function(_0x28ffcf,_0x4160f2){const _0x5e3913=_0x1c896d;return db['MailAccount'][_0x5e3913('0x2c')]({'where':{'id':_0x28ffcf[_0x5e3913('0x91')]['id']},'include':[{'model':db[_0x5e3913('0x1')],'as':_0x5e3913('0x80'),'raw':!![]}]})[_0x5e3913('0x10')](handleEntityNotFound(_0x4160f2,null))[_0x5e3913('0x10')](function(_0x4cd11e){const _0x3d683d=_0x5e3913;if(_0x4cd11e&&_0x4cd11e[_0x3d683d('0x80')]){const _0xb6761f={'id':_0x4cd11e['id'],'tls':{'rejectUnauthorized':![]}};return _0x4cd11e[_0x3d683d('0x80')][_0x3d683d('0x13')]?_0xb6761f[_0x3d683d('0x13')]=_0x4cd11e[_0x3d683d('0x80')][_0x3d683d('0x13')]:(_0xb6761f['host']=_0x4cd11e['Smtp'][_0x3d683d('0xd')],_0xb6761f['port']=_0x4cd11e[_0x3d683d('0x80')][_0x3d683d('0x16')],_0xb6761f[_0x3d683d('0x73')]=_0x4cd11e['Smtp'][_0x3d683d('0x73')]),_0x4cd11e[_0x3d683d('0x80')][_0x3d683d('0x39')]&&(_0xb6761f[_0x3d683d('0xc')]={'user':_0x4cd11e[_0x3d683d('0x80')]['user'],'pass':_0x4cd11e[_0x3d683d('0x80')][_0x3d683d('0x34')]}),respondWithRpcPromise(_0x3d683d('0x8d'),_0x3d683d('0x27'),{'account':_0xb6761f});}})['then'](respondWithResult(_0x4160f2,null))[_0x5e3913('0x8')](handleError(_0x4160f2,null));},exports[_0x1c896d('0x6')]=function(_0x37a2eb,_0x4aedca){const _0x3bbc2b=_0x1c896d;return db['MailAccount'][_0x3bbc2b('0x2c')]({'where':{'id':_0x37a2eb[_0x3bbc2b('0x91')]['id']}})['then'](handleEntityNotFound(_0x4aedca,null))[_0x3bbc2b('0x10')](function(_0x34cd16){const _0x181f32=_0x3bbc2b;if(_0x34cd16&&_0x34cd16[_0x181f32('0x13')])throw new ValidationError(_0x181f32('0x7c'));return _0x34cd16;})[_0x3bbc2b('0x10')](removeEntity(_0x4aedca,null))[_0x3bbc2b('0x8')](handleError(_0x4aedca,null));},exports[_0x1c896d('0x8b')]=function(_0x2afdde,_0x16b316){const _0x261acc=_0x1c896d;return db[_0x261acc('0xa0')][_0x261acc('0x2c')]({'where':{'id':_0x2afdde[_0x261acc('0x91')]['id']}})[_0x261acc('0x10')](function(_0x524d43){const _0x1ad16e=_0x261acc;if(_0x524d43)return _0x524d43[_0x1ad16e('0x8b')](_0x2afdde[_0x1ad16e('0x68')]['ids'],{'through':_[_0x1ad16e('0x30')](_0x2afdde[_0x1ad16e('0x68')],[_0x1ad16e('0x22'),'id'])})['then'](function(_0x1a3d64){const _0x254981=_0x1ad16e;for(let _0x5d297c=0x0;_0x5d297c<_0x2afdde[_0x254981('0x68')][_0x254981('0x22')][_0x254981('0x99')];_0x5d297c+=0x1){socket[_0x254981('0x6a')](_0x254981('0x1b'),{'UserId':_0x2afdde['body'][_0x254981('0x22')][_0x5d297c],'MailAccountId':_0x2afdde[_0x254981('0x91')]['id']});}return _0x1a3d64;});})['then'](respondWithResult(_0x16b316,null))['catch'](handleError(_0x16b316,null));},exports[_0x1c896d('0x47')]=function(_0x3f716d,_0x99f7d8){const _0x4b779a=_0x1c896d;return db[_0x4b779a('0xa0')]['findOne']({'where':{'id':_0x3f716d[_0x4b779a('0x91')]['id']}})[_0x4b779a('0x10')](handleEntityNotFound(_0x99f7d8,null))[_0x4b779a('0x10')](function(_0x2498b1){const _0x471a3e=_0x4b779a;if(_0x2498b1)return _0x2498b1[_0x471a3e('0x47')](_0x3f716d[_0x471a3e('0x96')]['ids'])['then'](function(){const _0x267e53=_0x471a3e;if(_[_0x267e53('0x4d')](_0x3f716d[_0x267e53('0x96')]['ids']))for(let _0x59f307=0x0;_0x59f307<_0x3f716d[_0x267e53('0x96')][_0x267e53('0x22')][_0x267e53('0x99')];_0x59f307+=0x1){socket['emit']('userMailAccount:remove',{'UserId':Number(_0x3f716d[_0x267e53('0x96')][_0x267e53('0x22')][_0x59f307]),'MailAccountId':Number(_0x3f716d[_0x267e53('0x91')]['id'])});}else socket[_0x267e53('0x6a')](_0x267e53('0x8a'),{'UserId':Number(_0x3f716d[_0x267e53('0x96')]['ids']),'MailAccountId':Number(_0x3f716d[_0x267e53('0x91')]['id'])});});})[_0x4b779a('0x10')](respondWithStatusCode(_0x99f7d8,null))[_0x4b779a('0x8')](handleError(_0x99f7d8,null));},exports[_0x1c896d('0x75')]=function(_0x21f0f3,_0x28e57f){const _0x23d8c3=_0x1c896d;let _0x5e8ea0={};const _0x5d14fb={};let _0x1aa073,_0x287116;return db[_0x23d8c3('0xa0')][_0x23d8c3('0x2c')]({'where':{'id':_0x21f0f3[_0x23d8c3('0x91')]['id']}})[_0x23d8c3('0x10')](handleEntityNotFound(_0x28e57f,null))[_0x23d8c3('0x10')](function(_0x257192){const _0x142908=_0x23d8c3;if(_0x257192)return _0x1aa073=_0x257192,_0x5d14fb['model']=_[_0x142908('0x44')](db['User']['rawAttributes']),_0x5d14fb[_0x142908('0x96')]=_['keys'](_0x21f0f3[_0x142908('0x96')]),_0x5d14fb[_0x142908('0x9c')]=_['intersection'](_0x5d14fb['model'],_0x5d14fb['query']),_0x5e8ea0[_0x142908('0x1a')]=_[_0x142908('0x40')](_0x5d14fb[_0x142908('0x86')],qs[_0x142908('0x26')](_0x21f0f3[_0x142908('0x96')][_0x142908('0x26')])),_0x5e8ea0['attributes']=_0x5e8ea0[_0x142908('0x1a')][_0x142908('0x99')]?_0x5e8ea0[_0x142908('0x1a')]:_0x5d14fb[_0x142908('0x86')],_0x5e8ea0[_0x142908('0x24')]=qs[_0x142908('0x3b')](_0x21f0f3[_0x142908('0x96')]['sort']),_0x5e8ea0['where']=qs['filters'](_[_0x142908('0x5f')](_0x21f0f3[_0x142908('0x96')],_0x5d14fb[_0x142908('0x9c')])),_0x21f0f3['query'][_0x142908('0x6b')]&&(_0x5e8ea0[_0x142908('0x57')]=_[_0x142908('0x42')](_0x5e8ea0[_0x142908('0x57')],{[Op['or']]:_['map'](_0x5e8ea0['attributes'],function(_0x5977e6){const _0x4172a4=_0x142908,_0x1a005c={};return _0x1a005c[_0x5977e6]={[Op[_0x4172a4('0x50')]]:'%'+_0x21f0f3[_0x4172a4('0x96')][_0x4172a4('0x6b')]+'%'},_0x1a005c;})})),_0x5e8ea0=_[_0x142908('0x42')]({},_0x5e8ea0,_0x21f0f3[_0x142908('0x12')]),_0x1aa073['getAgents'](_0x5e8ea0);})[_0x23d8c3('0x10')](function(_0x43b216){const _0x2ef171=_0x23d8c3;if(_0x43b216)return _0x287116=_0x43b216[_0x2ef171('0x99')],typeof _0x21f0f3[_0x2ef171('0x96')][_0x2ef171('0x3a')]===_0x2ef171('0x94')&&(_0x5e8ea0[_0x2ef171('0x1e')]=qs[_0x2ef171('0x1e')](_0x21f0f3['query']['limit']),_0x5e8ea0[_0x2ef171('0x54')]=qs[_0x2ef171('0x54')](_0x21f0f3[_0x2ef171('0x96')][_0x2ef171('0x54')])),_0x1aa073['getAgents'](_0x5e8ea0);})[_0x23d8c3('0x10')](function(_0x58d081){if(_0x58d081)return _0x58d081?{'count':_0x287116,'rows':_0x58d081}:null;})['then'](respondWithResult(_0x28e57f,null))[_0x23d8c3('0x8')](handleError(_0x28e57f,null));}; \ No newline at end of file +const a475_0x505a=['get','auth','pass','json','attach','description','email','then','from','cauthentication','role','port','Tag','%s\x20<%s>','authentication','messageId','$gte','attachments','subject','Contact','addAgents','sort','removeSmtp','basename','isArray','params','options','autoAssociation','fields','secure','../../components/parsers/qs','findOne','userMailAccount:save','List','send','MailAccount,\x20%s,\x20%s,\x20%s','sendMail','ids','emit','addSmtp','internal','DESC','UserProfileSection','destroy','MailServerIn','intersection','priority','./mailAccount.socket','Tags','like','getSmtp','service','Content-Range','out','nolimit','describe','color','addAnswer','request\x20sent','query','removeAgents','defaults','../../mysqldb','../../config/environment','MailInteraction','undefined','bulkCreate','Unable\x20to\x20retrieve\x20the\x20current\x20user','MailApplication','index','Pause','CmList','YYYY-MM-DD\x20HH:mm:ss','keys','type','status','catch','attributes','body','addInteraction','message','debug','MailServerOut','cuser','user','format','findAndCountAll','ListId','limit','count','addApplications','Imap','filters','CmContact','getApplications','update','getAgents','VIRTUAL','userProfileId','Disposition','code','filter','removeDispositions','fieldName','addImap','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','omit','CannedAnswer','name','MailAccount','includeAll','../../config/logger','split','error','userMailAccount:remove','UserProfileResource','verifySmtp','length','server/files/attachments','active','MailMessage','List\x20not\x20found','rows','offset','map','MailAccounts','sequelize','User','Smtp','end','order','getMessages','sendStatus','Owner','rawAttributes','where','util','merge','tag','http','show','key','include','MailAccount,\x20%s,\x20%s','getImap','transaction','You\x20can\x27t\x20remove\x20the\x20mail\x20service\x20account','mandatoryDispositionPause','password','MailAccountId','create','cservice','model','isNil','findAll','pick','Interaction','stack','host','removeAnswers','root','result','getDispositions','cpassword','join','set','SendMail'];(function(_0x9b7fa4,_0x24b6ad){const _0x505a4d=function(_0x5157fd){while(--_0x5157fd){_0x9b7fa4['push'](_0x9b7fa4['shift']());}};_0x505a4d(++_0x24b6ad);}(a475_0x505a,0xec));const a475_0x5157=function(_0x9b7fa4,_0x24b6ad){_0x9b7fa4=_0x9b7fa4-0x11b;let _0x505a4d=a475_0x505a[_0x9b7fa4];return _0x505a4d;};const a475_0x215e50=a475_0x5157;'use strict';const moment=require('moment'),util=require(a475_0x215e50(0x15e)),path=require('path'),_=require('lodash'),{getSocket}=require('../../rediscache'),socket=getSocket(),qs=require(a475_0x215e50(0x19b)),logger=require(a475_0x215e50(0x145))('api'),config=require(a475_0x215e50(0x1bc)),{db}=require(a475_0x215e50(0x1bb)),{Op,ValidationError}=require(a475_0x215e50(0x154));require(a475_0x215e50(0x1ac))['register'](socket);const jayson=require('jayson/promise'),client=jayson['client'][a475_0x215e50(0x161)]({'port':0x232b});function respondWithRpcPromise(_0x4dd27b,_0x4497ed,_0x2f1815,_0x24d448){return new Promise(function(_0x5b5ec3,_0x29af40){const _0x173804=a475_0x5157,_0x2b4a56=_0x24d448||client;return _0x2b4a56['request'](_0x4dd27b,_0x2f1815)[_0x173804(0x184)](function(_0x2b0e03){const _0x176c58=_0x173804;logger['info']('MailAccount,\x20%s,\x20%s',_0x4497ed,_0x176c58(0x1b7)),logger[_0x176c58(0x127)](_0x176c58(0x1a0),_0x4497ed,'request\x20sent',JSON['stringify'](_0x2b0e03));if(_0x2b0e03['error']){if(_0x2b0e03[_0x176c58(0x147)][_0x176c58(0x13a)]===0x1f4)return logger[_0x176c58(0x147)](_0x176c58(0x165),_0x4497ed,_0x2b0e03['error'][_0x176c58(0x126)]),_0x29af40(_0x2b0e03[_0x176c58(0x147)]['message']);return logger['error']('MailAccount,\x20%s,\x20%s',_0x4497ed,_0x2b0e03['error'][_0x176c58(0x126)]),_0x5b5ec3(_0x2b0e03[_0x176c58(0x147)][_0x176c58(0x126)]);}else logger['info']('MailAccount,\x20%s,\x20%s',_0x4497ed,_0x176c58(0x1b7)),_0x5b5ec3(_0x2b0e03[_0x176c58(0x177)][_0x176c58(0x126)]);})['catch'](function(_0x1a5b62){const _0x59cf9c=_0x173804;logger[_0x59cf9c(0x147)](_0x59cf9c(0x165),_0x4497ed,_0x1a5b62),_0x29af40(_0x1a5b62);});});}function respondWithStatusCode(_0x31ac72,_0x287c3c){return _0x287c3c=_0x287c3c||0xcc,function(_0x426509){const _0x3930b0=a475_0x5157;if(_0x426509)return _0x31ac72['sendStatus'](_0x287c3c);return _0x31ac72[_0x3930b0(0x121)](_0x287c3c)['end']();};}function respondWithResult(_0x58f8d7,_0x20b052){return _0x20b052=_0x20b052||0xc8,function(_0xd155e4){const _0x3de209=a475_0x5157;if(_0xd155e4)return _0x58f8d7[_0x3de209(0x121)](_0x20b052)[_0x3de209(0x180)](_0xd155e4);};}function respondWithFilteredResult(_0x2da430,_0x594a71){return function(_0x5d6a93){const _0xe0d68=a475_0x5157;if(_0x5d6a93){const _0x614c89=_0x5d6a93[_0xe0d68(0x12f)],_0x40c039=_0x594a71[_0xe0d68(0x151)];let _0x13aed1=_0x594a71['offset']+_0x594a71[_0xe0d68(0x12e)],_0x264e3f;return _0x13aed1>=_0x614c89?(_0x13aed1=_0x614c89,_0x264e3f=0xc8):_0x264e3f=0xce,_0x2da430[_0xe0d68(0x121)](_0x264e3f),_0x2da430[_0xe0d68(0x17b)](_0xe0d68(0x1b1),_0x40c039+'-'+_0x13aed1+'/'+_0x614c89)[_0xe0d68(0x180)](_0x5d6a93);}return null;};}function saveUpdates(_0x33375c){return function(_0x27d38a){const _0x314887=a475_0x5157;if(_0x27d38a)return _0x27d38a[_0x314887(0x135)](_0x33375c)['then'](function(_0x22ffbe){return _0x22ffbe;});return null;};}function removeEntity(_0x2a7b05){return function(_0x4b832c){const _0x2620b6=a475_0x5157;if(_0x4b832c)return _0x4b832c[_0x2620b6(0x1a8)]()[_0x2620b6(0x184)](function(){const _0x26fd1d=_0x2620b6,_0x258104=_0x4b832c[_0x26fd1d(0x17d)]({'plain':!![]}),_0x141642='MailAccounts';return db[_0x26fd1d(0x149)]['destroy']({'where':{'type':_0x141642,'resourceId':_0x258104['id']}})[_0x26fd1d(0x184)](function(){return _0x4b832c;});})['then'](function(){const _0x3ef4d6=_0x2620b6;_0x2a7b05[_0x3ef4d6(0x121)](0xcc)[_0x3ef4d6(0x157)]();});};}function handleEntityNotFound(_0x3693b5){return function(_0x15dab1){const _0x3791f6=a475_0x5157;return!_0x15dab1&&_0x3693b5[_0x3791f6(0x15a)](0x194),_0x15dab1;};}function handleError(_0x4778bd,_0x132764){return _0x132764=_0x132764||0x1f4,function(_0x45d5d9){const _0x4fd343=a475_0x5157;logger[_0x4fd343(0x147)](_0x45d5d9[_0x4fd343(0x173)]),_0x45d5d9[_0x4fd343(0x142)]&&delete _0x45d5d9[_0x4fd343(0x142)],_0x4778bd[_0x4fd343(0x121)](_0x132764)[_0x4fd343(0x19f)](_0x45d5d9);};}exports[a475_0x215e50(0x11b)]=function(_0x463cc9,_0x22fcf4){const _0xee0845=a475_0x215e50;let _0x1c13d7={'include':[{'model':db[_0xee0845(0x1a9)],'as':_0xee0845(0x131)},{'model':db[_0xee0845(0x128)],'as':_0xee0845(0x156)},{'model':db[_0xee0845(0x11c)],'as':'mandatoryDispositionPause'}]};const _0x19254f={},_0x125d63={'count':0x0,'rows':[]},_0x45b8ad=_[_0xee0845(0x152)](db[_0xee0845(0x143)][_0xee0845(0x15c)],function(_0x4630b9){const _0x537db3=_0xee0845;return{'name':_0x4630b9[_0x537db3(0x13d)],'type':_0x4630b9['type'][_0x537db3(0x163)]};});_0x19254f[_0xee0845(0x16e)]=_['map'](_0x45b8ad,_0xee0845(0x142)),_0x19254f['query']=_['keys'](_0x463cc9[_0xee0845(0x1b8)]),_0x19254f[_0xee0845(0x132)]=_[_0xee0845(0x1aa)](_0x19254f['model'],_0x19254f['query']),_0x1c13d7[_0xee0845(0x123)]=_['intersection'](_0x19254f[_0xee0845(0x16e)],qs[_0xee0845(0x199)](_0x463cc9[_0xee0845(0x1b8)][_0xee0845(0x199)])),_0x1c13d7[_0xee0845(0x123)]=_0x1c13d7[_0xee0845(0x123)][_0xee0845(0x14b)]?_0x1c13d7['attributes']:_0x19254f[_0xee0845(0x16e)];typeof _0x463cc9[_0xee0845(0x1b8)][_0xee0845(0x1b3)]===_0xee0845(0x1be)&&(_0x1c13d7[_0xee0845(0x12e)]=qs['limit'](_0x463cc9[_0xee0845(0x1b8)][_0xee0845(0x12e)]),_0x1c13d7['offset']=qs[_0xee0845(0x151)](_0x463cc9['query'][_0xee0845(0x151)]));_0x1c13d7[_0xee0845(0x158)]=qs['sort'](_0x463cc9['query'][_0xee0845(0x192)]),_0x1c13d7[_0xee0845(0x15d)]=qs[_0xee0845(0x132)](_[_0xee0845(0x171)](_0x463cc9[_0xee0845(0x1b8)],_0x19254f['filters']),_0x45b8ad);_0x463cc9[_0xee0845(0x1b8)][_0xee0845(0x13b)]&&(_0x1c13d7[_0xee0845(0x15d)]=_[_0xee0845(0x15f)](_0x1c13d7[_0xee0845(0x15d)],{[Op['or']]:_['map'](_0x45b8ad,function(_0x1df49e){const _0x54ff7b=_0xee0845;if(_0x1df49e[_0x54ff7b(0x120)]!==_0x54ff7b(0x137)){const _0x23bd47={};return _0x23bd47[_0x1df49e['name']]={[Op['like']]:'%'+_0x463cc9[_0x54ff7b(0x1b8)][_0x54ff7b(0x13b)]+'%'},_0x23bd47;}})}));_0x1c13d7=_[_0xee0845(0x15f)]({},_0x1c13d7,_0x463cc9['options']);const _0x5d2cd8={'where':_0x1c13d7['where']};return db[_0xee0845(0x143)][_0xee0845(0x12f)](_0x5d2cd8)['then'](function(_0x537a02){const _0x403bff=_0xee0845;return _0x125d63[_0x403bff(0x12f)]=_0x537a02,_0x463cc9['query']['includeAll']&&(_0x1c13d7[_0x403bff(0x164)]=[{'all':!![]}]),db['MailAccount'][_0x403bff(0x170)](_0x1c13d7);})[_0xee0845(0x184)](function(_0x240795){const _0x5e91b9=_0xee0845;return _0x125d63[_0x5e91b9(0x150)]=_0x240795,_0x125d63;})[_0xee0845(0x184)](respondWithFilteredResult(_0x22fcf4,_0x1c13d7))['catch'](handleError(_0x22fcf4,null));},exports[a475_0x215e50(0x162)]=function(_0x34c401,_0x2da739){const _0x45c287=a475_0x215e50;let _0x27b0fe={'raw':![],'where':{'id':_0x34c401[_0x45c287(0x196)]['id']},'include':[{'model':db[_0x45c287(0x1a9)],'as':_0x45c287(0x131)},{'model':db[_0x45c287(0x128)],'as':_0x45c287(0x156)},{'model':db[_0x45c287(0x11c)],'as':_0x45c287(0x169)}]};const _0x560e6e={};return _0x560e6e[_0x45c287(0x16e)]=_['keys'](db['MailAccount'][_0x45c287(0x15c)]),_0x560e6e[_0x45c287(0x1b8)]=_['keys'](_0x34c401[_0x45c287(0x1b8)]),_0x560e6e[_0x45c287(0x132)]=_[_0x45c287(0x1aa)](_0x560e6e['model'],_0x560e6e[_0x45c287(0x1b8)]),_0x27b0fe['attributes']=_[_0x45c287(0x1aa)](_0x560e6e[_0x45c287(0x16e)],qs[_0x45c287(0x199)](_0x34c401[_0x45c287(0x1b8)][_0x45c287(0x199)])),_0x27b0fe[_0x45c287(0x123)]=_0x27b0fe[_0x45c287(0x123)][_0x45c287(0x14b)]?_0x27b0fe['attributes']:_0x560e6e[_0x45c287(0x16e)],_0x34c401[_0x45c287(0x1b8)][_0x45c287(0x144)]&&(_0x27b0fe['include']=[{'all':!![]}]),_0x27b0fe=_[_0x45c287(0x15f)]({},_0x27b0fe,_0x34c401[_0x45c287(0x197)]),db[_0x45c287(0x143)][_0x45c287(0x19c)](_0x27b0fe)[_0x45c287(0x184)](handleEntityNotFound(_0x2da739,null))['then'](respondWithResult(_0x2da739,null))['catch'](handleError(_0x2da739,null));},exports['update']=function(_0x492a53,_0x15a3a7){const _0x17bb32=a475_0x215e50;return _0x492a53[_0x17bb32(0x124)]['id']&&delete _0x492a53[_0x17bb32(0x124)]['id'],db['MailAccount'][_0x17bb32(0x19c)]({'where':{'id':_0x492a53[_0x17bb32(0x196)]['id']},'include':[{'model':db[_0x17bb32(0x1a9)],'as':_0x17bb32(0x131)},{'model':db[_0x17bb32(0x128)],'as':'Smtp'},{'model':db[_0x17bb32(0x11c)],'as':'mandatoryDispositionPause'}]})[_0x17bb32(0x184)](handleEntityNotFound(_0x15a3a7,null))[_0x17bb32(0x184)](saveUpdates(_0x492a53[_0x17bb32(0x124)],null))[_0x17bb32(0x184)](function(_0x20a7b1){const _0x5a9fb9=_0x17bb32;if(_0x20a7b1&&_0x492a53['body'][_0x5a9fb9(0x131)])return db['MailServerIn'][_0x5a9fb9(0x135)](_0x492a53[_0x5a9fb9(0x124)][_0x5a9fb9(0x131)],{'where':{'MailAccountId':_0x20a7b1['id']}})[_0x5a9fb9(0x184)](function(){return _0x20a7b1;});return _0x20a7b1;})[_0x17bb32(0x184)](function(_0x44a7e0){const _0x3bd83c=_0x17bb32;if(_0x44a7e0&&_0x492a53['body']['Smtp'])return db[_0x3bd83c(0x128)][_0x3bd83c(0x135)](_0x492a53['body'][_0x3bd83c(0x156)],{'where':{'MailAccountId':_0x44a7e0['id']}})['then'](function(){return _0x44a7e0;});return _0x44a7e0;})[_0x17bb32(0x184)](respondWithResult(_0x15a3a7,null))[_0x17bb32(0x122)](handleError(_0x15a3a7,null));},exports[a475_0x215e50(0x1b4)]=function(_0x370018,_0x19ef86){const _0x2d6090=a475_0x215e50;return db[_0x2d6090(0x143)][_0x2d6090(0x1b4)]()[_0x2d6090(0x184)](respondWithResult(_0x19ef86,null))[_0x2d6090(0x122)](handleError(_0x19ef86,null));},exports['addDisposition']=function(_0x4416d1,_0x4db13a){const _0x1db800=a475_0x215e50;return _0x4416d1[_0x1db800(0x124)]['id']&&delete _0x4416d1[_0x1db800(0x124)]['id'],db[_0x1db800(0x143)][_0x1db800(0x19c)]({'where':{'id':_0x4416d1[_0x1db800(0x196)]['id']}})['then'](handleEntityNotFound(_0x4db13a,null))['then'](function(_0x1f92e7){const _0x1fc6d5=_0x1db800;if(_0x1f92e7)return _0x4416d1[_0x1fc6d5(0x124)][_0x1fc6d5(0x16b)]=_0x1f92e7['id'],db[_0x1fc6d5(0x139)][_0x1fc6d5(0x16c)](_0x4416d1[_0x1fc6d5(0x124)]);})[_0x1db800(0x184)](respondWithResult(_0x4db13a,null))['catch'](handleError(_0x4db13a,null));},exports[a475_0x215e50(0x178)]=function(_0x4cabe9,_0xe5a937){const _0x438cf1=a475_0x215e50;let _0x3ffd82={'raw':![],'where':{}};const _0x1ae9f6={},_0x16db07={'count':0x0,'rows':[]};return db['MailAccount']['findOne']({'where':{'id':_0x4cabe9[_0x438cf1(0x196)]['id']}})[_0x438cf1(0x184)](handleEntityNotFound(_0xe5a937,null))[_0x438cf1(0x184)](function(_0x26f5e3){const _0xd5711c=_0x438cf1;if(_0x26f5e3)return _0x1ae9f6[_0xd5711c(0x16e)]=_[_0xd5711c(0x11f)](db[_0xd5711c(0x139)]['rawAttributes']),_0x1ae9f6[_0xd5711c(0x1b8)]=_[_0xd5711c(0x11f)](_0x4cabe9['query']),_0x1ae9f6[_0xd5711c(0x132)]=_[_0xd5711c(0x1aa)](_0x1ae9f6['model'],_0x1ae9f6[_0xd5711c(0x1b8)]),_0x3ffd82['attributes']=_[_0xd5711c(0x1aa)](_0x1ae9f6[_0xd5711c(0x16e)],qs[_0xd5711c(0x199)](_0x4cabe9['query'][_0xd5711c(0x199)])),_0x3ffd82[_0xd5711c(0x123)]=_0x3ffd82[_0xd5711c(0x123)][_0xd5711c(0x14b)]?_0x3ffd82[_0xd5711c(0x123)]:_0x1ae9f6[_0xd5711c(0x16e)],typeof _0x4cabe9[_0xd5711c(0x1b8)]['nolimit']==='undefined'&&(_0x3ffd82[_0xd5711c(0x12e)]=qs[_0xd5711c(0x12e)](_0x4cabe9['query'][_0xd5711c(0x12e)]),_0x3ffd82['offset']=qs[_0xd5711c(0x151)](_0x4cabe9[_0xd5711c(0x1b8)][_0xd5711c(0x151)])),_0x3ffd82[_0xd5711c(0x158)]=qs['sort'](_0x4cabe9[_0xd5711c(0x1b8)]['sort']),_0x3ffd82[_0xd5711c(0x15d)]=qs[_0xd5711c(0x132)](_[_0xd5711c(0x171)](_0x4cabe9[_0xd5711c(0x1b8)],_0x1ae9f6[_0xd5711c(0x132)])),_0x3ffd82[_0xd5711c(0x15d)][_0xd5711c(0x16b)]=_0x26f5e3['id'],_0x4cabe9[_0xd5711c(0x1b8)][_0xd5711c(0x13b)]&&(_0x3ffd82[_0xd5711c(0x15d)]=_[_0xd5711c(0x15f)](_0x3ffd82[_0xd5711c(0x15d)],{[Op['or']]:_[_0xd5711c(0x152)](_0x3ffd82[_0xd5711c(0x123)],function(_0x3842cd){const _0x43dc4e=_0xd5711c,_0x9972c0={};return _0x9972c0[_0x3842cd]={[Op[_0x43dc4e(0x1ae)]]:'%'+_0x4cabe9[_0x43dc4e(0x1b8)][_0x43dc4e(0x13b)]+'%'},_0x9972c0;})})),_0x3ffd82=_[_0xd5711c(0x15f)]({},_0x3ffd82,_0x4cabe9[_0xd5711c(0x197)]),db[_0xd5711c(0x139)][_0xd5711c(0x12f)]({'where':_0x3ffd82[_0xd5711c(0x15d)]})[_0xd5711c(0x184)](function(_0x4a3817){const _0x11e2b7=_0xd5711c;return _0x16db07[_0x11e2b7(0x12f)]=_0x4a3817,_0x4cabe9['query']['includeAll']&&(_0x3ffd82['include']=[{'all':!![]}]),db[_0x11e2b7(0x139)]['findAll'](_0x3ffd82);})['then'](function(_0x42414f){return _0x16db07['rows']=_0x42414f,_0x16db07;});})[_0x438cf1(0x184)](respondWithFilteredResult(_0xe5a937,_0x3ffd82))[_0x438cf1(0x122)](handleError(_0xe5a937,null));},exports[a475_0x215e50(0x13c)]=function(_0x34ec97,_0x345762){const _0x99a30b=a475_0x215e50;return db[_0x99a30b(0x143)]['findOne']({'where':{'id':_0x34ec97[_0x99a30b(0x196)]['id']}})['then'](handleEntityNotFound(_0x345762,null))[_0x99a30b(0x184)](function(_0x53cf57){const _0x7b2cc0=_0x99a30b;if(_0x53cf57)return _0x53cf57[_0x7b2cc0(0x13c)](_0x34ec97[_0x7b2cc0(0x1b8)][_0x7b2cc0(0x1a2)]);})[_0x99a30b(0x184)](respondWithStatusCode(_0x345762,null))['catch'](handleError(_0x345762,null));},exports[a475_0x215e50(0x1b6)]=function(_0x4b710f,_0x5a63a7){const _0x5353ce=a475_0x215e50;return _0x4b710f['body']['id']&&delete _0x4b710f[_0x5353ce(0x124)]['id'],db[_0x5353ce(0x143)][_0x5353ce(0x19c)]({'where':{'id':_0x4b710f['params']['id']}})['then'](handleEntityNotFound(_0x5a63a7,null))['then'](function(_0x2b1b56){const _0x16479a=_0x5353ce;if(_0x2b1b56)return _0x4b710f[_0x16479a(0x124)][_0x16479a(0x16b)]=_0x2b1b56['id'],db[_0x16479a(0x141)][_0x16479a(0x16c)](_0x4b710f[_0x16479a(0x124)]);})[_0x5353ce(0x184)](respondWithResult(_0x5a63a7,null))[_0x5353ce(0x122)](handleError(_0x5a63a7,null));},exports['getAnswers']=function(_0x52c17b,_0x4c0868){const _0x1fec7a=a475_0x215e50;let _0x25ef3f={'raw':![],'where':{}};const _0xa47185={},_0x308149={'count':0x0,'rows':[]};return db['MailAccount'][_0x1fec7a(0x19c)]({'where':{'id':_0x52c17b[_0x1fec7a(0x196)]['id']}})[_0x1fec7a(0x184)](handleEntityNotFound(_0x4c0868,null))[_0x1fec7a(0x184)](function(_0x289a87){const _0xfd951=_0x1fec7a;if(_0x289a87)return _0xa47185[_0xfd951(0x16e)]=_[_0xfd951(0x11f)](db[_0xfd951(0x141)][_0xfd951(0x15c)]),_0xa47185['query']=_[_0xfd951(0x11f)](_0x52c17b[_0xfd951(0x1b8)]),_0xa47185[_0xfd951(0x132)]=_[_0xfd951(0x1aa)](_0xa47185[_0xfd951(0x16e)],_0xa47185[_0xfd951(0x1b8)]),_0x25ef3f['attributes']=_[_0xfd951(0x1aa)](_0xa47185[_0xfd951(0x16e)],qs['fields'](_0x52c17b[_0xfd951(0x1b8)][_0xfd951(0x199)])),_0x25ef3f[_0xfd951(0x123)]=_0x25ef3f[_0xfd951(0x123)]['length']?_0x25ef3f[_0xfd951(0x123)]:_0xa47185['model'],typeof _0x52c17b[_0xfd951(0x1b8)][_0xfd951(0x1b3)]===_0xfd951(0x1be)&&(_0x25ef3f[_0xfd951(0x12e)]=qs[_0xfd951(0x12e)](_0x52c17b[_0xfd951(0x1b8)][_0xfd951(0x12e)]),_0x25ef3f[_0xfd951(0x151)]=qs['offset'](_0x52c17b['query']['offset'])),_0x25ef3f[_0xfd951(0x158)]=qs[_0xfd951(0x192)](_0x52c17b['query'][_0xfd951(0x192)]),_0x25ef3f[_0xfd951(0x15d)]=qs[_0xfd951(0x132)](_[_0xfd951(0x171)](_0x52c17b[_0xfd951(0x1b8)],_0xa47185['filters'])),_0x25ef3f[_0xfd951(0x15d)][_0xfd951(0x16b)]=_0x289a87['id'],_0x52c17b['query']['filter']&&(_0x25ef3f[_0xfd951(0x15d)]=_[_0xfd951(0x15f)](_0x25ef3f[_0xfd951(0x15d)],{[Op['or']]:_[_0xfd951(0x152)](_0x25ef3f[_0xfd951(0x123)],function(_0x2b0500){const _0x594e86=_0xfd951,_0x1cc476={};return _0x1cc476[_0x2b0500]={[Op[_0x594e86(0x1ae)]]:'%'+_0x52c17b[_0x594e86(0x1b8)]['filter']+'%'},_0x1cc476;})})),_0x25ef3f=_[_0xfd951(0x15f)]({},_0x25ef3f,_0x52c17b['options']),db[_0xfd951(0x141)][_0xfd951(0x12f)]({'where':_0x25ef3f[_0xfd951(0x15d)]})[_0xfd951(0x184)](function(_0x383177){const _0x22c1cf=_0xfd951;return _0x308149['count']=_0x383177,_0x52c17b[_0x22c1cf(0x1b8)][_0x22c1cf(0x144)]&&(_0x25ef3f[_0x22c1cf(0x164)]=[{'all':!![]}]),db[_0x22c1cf(0x141)][_0x22c1cf(0x170)](_0x25ef3f);})[_0xfd951(0x184)](function(_0x463690){const _0x52a598=_0xfd951;return _0x308149[_0x52a598(0x150)]=_0x463690,_0x308149;});})[_0x1fec7a(0x184)](respondWithFilteredResult(_0x4c0868,_0x25ef3f))[_0x1fec7a(0x122)](handleError(_0x4c0868,null));},exports[a475_0x215e50(0x175)]=function(_0x55772b,_0x279a55){const _0x20dbfc=a475_0x215e50;return db['MailAccount'][_0x20dbfc(0x19c)]({'where':{'id':_0x55772b['params']['id']}})[_0x20dbfc(0x184)](handleEntityNotFound(_0x279a55,null))[_0x20dbfc(0x184)](function(_0x3d3814){const _0x5190c5=_0x20dbfc;if(_0x3d3814)return _0x3d3814[_0x5190c5(0x175)](_0x55772b[_0x5190c5(0x1b8)][_0x5190c5(0x1a2)]);})['then'](respondWithStatusCode(_0x279a55,null))['catch'](handleError(_0x279a55,null));},exports[a475_0x215e50(0x16c)]=function(_0x4ee56b,_0x2da932){const _0x4944f5=a475_0x215e50,_0x349fb8={'name':_0x4ee56b[_0x4944f5(0x124)][_0x4944f5(0x142)],'key':_0x4ee56b[_0x4944f5(0x124)][_0x4944f5(0x163)],'email':_0x4ee56b[_0x4944f5(0x124)][_0x4944f5(0x183)],'ListId':_0x4ee56b[_0x4944f5(0x124)][_0x4944f5(0x12d)],'active':!_[_0x4944f5(0x16f)](_0x4ee56b[_0x4944f5(0x124)][_0x4944f5(0x14d)])?_0x4ee56b[_0x4944f5(0x124)]['active']:!![],'description':_0x4ee56b[_0x4944f5(0x124)][_0x4944f5(0x182)]||null,'Imap':{},'Smtp':{}};return _[_0x4944f5(0x16f)](_0x4ee56b['body'][_0x4944f5(0x16d)])?(_0x4ee56b[_0x4944f5(0x124)][_0x4944f5(0x186)]?(_0x349fb8[_0x4944f5(0x131)][_0x4944f5(0x12a)]=_0x4ee56b[_0x4944f5(0x124)][_0x4944f5(0x129)],_0x349fb8['Smtp'][_0x4944f5(0x12a)]=_0x4ee56b[_0x4944f5(0x124)]['cuser'],_0x349fb8[_0x4944f5(0x131)][_0x4944f5(0x16a)]=_0x4ee56b[_0x4944f5(0x124)][_0x4944f5(0x179)],_0x349fb8[_0x4944f5(0x156)][_0x4944f5(0x17f)]=_0x4ee56b[_0x4944f5(0x124)]['cpassword']):(_0x349fb8[_0x4944f5(0x131)]['authentication']=![],_0x349fb8[_0x4944f5(0x156)][_0x4944f5(0x18b)]=![]),_0x349fb8['Imap'][_0x4944f5(0x174)]=_0x4ee56b[_0x4944f5(0x124)][_0x4944f5(0x131)][_0x4944f5(0x174)],_0x349fb8[_0x4944f5(0x131)][_0x4944f5(0x188)]=_0x4ee56b['body'][_0x4944f5(0x131)][_0x4944f5(0x188)],_0x349fb8[_0x4944f5(0x156)][_0x4944f5(0x174)]=_0x4ee56b[_0x4944f5(0x124)][_0x4944f5(0x156)][_0x4944f5(0x174)],_0x349fb8['Smtp'][_0x4944f5(0x188)]=_0x4ee56b[_0x4944f5(0x124)][_0x4944f5(0x156)][_0x4944f5(0x188)]):(_0x349fb8[_0x4944f5(0x131)][_0x4944f5(0x1b0)]=_0x4ee56b[_0x4944f5(0x124)][_0x4944f5(0x16d)],_0x349fb8[_0x4944f5(0x156)][_0x4944f5(0x1b0)]=_0x4ee56b[_0x4944f5(0x124)]['cservice'],_0x349fb8['Imap'][_0x4944f5(0x12a)]=_0x4ee56b['body'][_0x4944f5(0x129)],_0x349fb8[_0x4944f5(0x156)][_0x4944f5(0x12a)]=_0x4ee56b['body']['cuser'],_0x349fb8[_0x4944f5(0x131)][_0x4944f5(0x16a)]=_0x4ee56b[_0x4944f5(0x124)][_0x4944f5(0x179)],_0x349fb8['Smtp']['pass']=_0x4ee56b[_0x4944f5(0x124)][_0x4944f5(0x179)]),db[_0x4944f5(0x143)][_0x4944f5(0x16c)](_0x349fb8,{'include':[{'model':db['MailServerOut'],'as':_0x4944f5(0x156)},{'model':db[_0x4944f5(0x1a9)],'as':_0x4944f5(0x131)}]})[_0x4944f5(0x184)](function(_0x4533b7){const _0x532178=_0x4944f5,_0x263dac=_0x4ee56b[_0x532178(0x12a)][_0x532178(0x17d)]({'plain':!![]});if(!_0x263dac)throw new Error(_0x532178(0x1c0));if(_0x263dac[_0x532178(0x187)]===_0x532178(0x12a)){const _0x39fdae=_0x4533b7[_0x532178(0x17d)]({'plain':!![]});return db[_0x532178(0x1a7)][_0x532178(0x19c)]({'where':{'name':_0x532178(0x153),'userProfileId':_0x263dac[_0x532178(0x138)]},'raw':!![]})[_0x532178(0x184)](function(_0x469d52){const _0x375f00=_0x532178;return _0x469d52&&_0x469d52[_0x375f00(0x198)]===0x0?db[_0x375f00(0x149)][_0x375f00(0x16c)]({'name':_0x39fdae[_0x375f00(0x142)],'resourceId':_0x39fdae['id'],'type':_0x469d52[_0x375f00(0x142)],'sectionId':_0x469d52['id']},{})[_0x375f00(0x184)](function(){return _0x4533b7;}):_0x4533b7;})[_0x532178(0x122)](function(_0x2a8788){const _0x43257f=_0x532178;logger[_0x43257f(0x147)](_0x43257f(0x13f),_0x2a8788);throw _0x2a8788;});}return _0x4533b7;})['then'](respondWithResult(_0x2da932,0xc9))[_0x4944f5(0x122)](handleError(_0x2da932,null));},exports[a475_0x215e50(0x166)]=function(_0x10955c,_0x38e990){const _0x1a594f=a475_0x215e50;return db[_0x1a594f(0x143)]['findOne']({'where':{'id':_0x10955c['params']['id']}})[_0x1a594f(0x184)](handleEntityNotFound(_0x38e990,null))['then'](function(_0x50575b){const _0x34ef14=_0x1a594f;if(_0x50575b)return _0x50575b[_0x34ef14(0x166)]();return null;})[_0x1a594f(0x184)](respondWithResult(_0x38e990,null))[_0x1a594f(0x122)](handleError(_0x38e990,null));},exports[a475_0x215e50(0x13e)]=function(_0x4f2cb4,_0x419062){const _0x56514e=a475_0x215e50;return _0x4f2cb4['body']['id']&&delete _0x4f2cb4[_0x56514e(0x124)]['id'],db[_0x56514e(0x143)]['findOne']({'where':{'id':_0x4f2cb4[_0x56514e(0x196)]['id']}})['then'](handleEntityNotFound(_0x419062,null))[_0x56514e(0x184)](function(_0x1d2448){const _0x4895b1=_0x56514e;if(_0x1d2448)return _0x4f2cb4['body'][_0x4895b1(0x16b)]=_0x1d2448['id'],db[_0x4895b1(0x1a9)][_0x4895b1(0x16c)](_0x4f2cb4['body']);})[_0x56514e(0x184)](respondWithResult(_0x419062,null))[_0x56514e(0x122)](handleError(_0x419062,null));},exports['removeImap']=function(_0x5320b4,_0x36ca2d){const _0x55484b=a475_0x215e50;return db[_0x55484b(0x143)][_0x55484b(0x19c)]({'where':{'id':_0x5320b4[_0x55484b(0x196)]['id']}})[_0x55484b(0x184)](handleEntityNotFound(_0x36ca2d,null))['then'](function(_0xdd1fe5){if(_0xdd1fe5)return _0xdd1fe5['setImap'](null);return null;})[_0x55484b(0x184)](respondWithStatusCode(_0x36ca2d,null))['catch'](handleError(_0x36ca2d,null));},exports[a475_0x215e50(0x1af)]=function(_0x2de65c,_0x5a01c2){const _0x56fbce=a475_0x215e50;return db[_0x56fbce(0x143)]['findOne']({'where':{'id':_0x2de65c[_0x56fbce(0x196)]['id']}})[_0x56fbce(0x184)](handleEntityNotFound(_0x5a01c2,null))['then'](function(_0x222e89){if(_0x222e89)return _0x222e89['getSmtp']();return null;})[_0x56fbce(0x184)](respondWithResult(_0x5a01c2,null))[_0x56fbce(0x122)](handleError(_0x5a01c2,null));},exports[a475_0x215e50(0x1a4)]=function(_0x14890b,_0xd6f2c8){const _0x423550=a475_0x215e50;return _0x14890b[_0x423550(0x124)]['id']&&delete _0x14890b[_0x423550(0x124)]['id'],db[_0x423550(0x143)][_0x423550(0x19c)]({'where':{'id':_0x14890b['params']['id']}})['then'](handleEntityNotFound(_0xd6f2c8,null))['then'](function(_0x2287aa){const _0x22ff71=_0x423550;if(_0x2287aa)return _0x14890b[_0x22ff71(0x124)][_0x22ff71(0x16b)]=_0x2287aa['id'],db['MailServerOut'][_0x22ff71(0x16c)](_0x14890b[_0x22ff71(0x124)]);})[_0x423550(0x184)](respondWithResult(_0xd6f2c8,null))[_0x423550(0x122)](handleError(_0xd6f2c8,null));},exports[a475_0x215e50(0x193)]=function(_0x5b1dd2,_0x399f13){const _0x506b3d=a475_0x215e50;return db['MailAccount']['findOne']({'where':{'id':_0x5b1dd2[_0x506b3d(0x196)]['id']}})[_0x506b3d(0x184)](handleEntityNotFound(_0x399f13,null))[_0x506b3d(0x184)](function(_0x112e90){if(_0x112e90)return _0x112e90['setSmtp'](null);return null;})[_0x506b3d(0x184)](respondWithStatusCode(_0x399f13,null))[_0x506b3d(0x122)](handleError(_0x399f13,null));},exports[a475_0x215e50(0x125)]=function(_0x4aa274,_0x5965c0){const _0x235186=a475_0x215e50;return db[_0x235186(0x1bd)][_0x235186(0x19c)]({'where':{'id':_0x4aa274[_0x235186(0x196)]['id']}})['then'](function(_0x1ed680){const _0x4d53d3=_0x235186;if(_0x1ed680)return _0x1ed680[_0x4d53d3(0x125)](_0x4aa274[_0x4d53d3(0x124)][_0x4d53d3(0x1a2)],{'through':_[_0x4d53d3(0x140)](_0x4aa274[_0x4d53d3(0x124)],[_0x4d53d3(0x1a2),'id'])});})[_0x235186(0x184)](respondWithResult(_0x5965c0,null))[_0x235186(0x122)](handleError(_0x5965c0,null));},exports['getInteractions']=function(_0x1b7fa4,_0x34db11){const _0x3aa03d=a475_0x215e50;let _0x1bb211={'raw':![],'where':{}};const _0x3ba32c={},_0x483f76={'count':0x0,'rows':[]};return db['MailAccount'][_0x3aa03d(0x19c)]({'where':{'id':_0x1b7fa4[_0x3aa03d(0x196)]['id']}})[_0x3aa03d(0x184)](handleEntityNotFound(_0x34db11,null))[_0x3aa03d(0x184)](function(_0x535b18){const _0x4fbfba=_0x3aa03d;if(_0x535b18)return _0x3ba32c[_0x4fbfba(0x16e)]=_['keys'](db[_0x4fbfba(0x1bd)][_0x4fbfba(0x15c)]),_0x3ba32c['query']=_[_0x4fbfba(0x11f)](_0x1b7fa4[_0x4fbfba(0x1b8)]),_0x3ba32c['filters']=_[_0x4fbfba(0x1aa)](_0x3ba32c[_0x4fbfba(0x16e)],_0x3ba32c[_0x4fbfba(0x1b8)]),_0x1bb211[_0x4fbfba(0x123)]=_[_0x4fbfba(0x1aa)](_0x3ba32c['model'],qs[_0x4fbfba(0x199)](_0x1b7fa4[_0x4fbfba(0x1b8)]['fields'])),_0x1bb211[_0x4fbfba(0x123)]=_0x1bb211['attributes'][_0x4fbfba(0x14b)]?_0x1bb211['attributes']:_0x3ba32c[_0x4fbfba(0x16e)],typeof _0x1b7fa4['query'][_0x4fbfba(0x1b3)]==='undefined'&&(_0x1bb211['limit']=qs[_0x4fbfba(0x12e)](_0x1b7fa4[_0x4fbfba(0x1b8)]['limit']),_0x1bb211[_0x4fbfba(0x151)]=qs[_0x4fbfba(0x151)](_0x1b7fa4[_0x4fbfba(0x1b8)][_0x4fbfba(0x151)])),_0x1bb211['order']=qs['sort'](_0x1b7fa4['query'][_0x4fbfba(0x192)]),_0x1bb211['where']=qs['filters'](_[_0x4fbfba(0x171)](_0x1b7fa4[_0x4fbfba(0x1b8)],_0x3ba32c[_0x4fbfba(0x132)])),_0x1bb211['where'][_0x4fbfba(0x16b)]=_0x535b18['id'],_0x1b7fa4[_0x4fbfba(0x1b8)][_0x4fbfba(0x13b)]&&(_0x1bb211[_0x4fbfba(0x15d)]=_[_0x4fbfba(0x15f)](_0x1bb211['where'],{[Op['or']]:_[_0x4fbfba(0x152)](_0x1bb211[_0x4fbfba(0x123)],function(_0x2a06a9){const _0x32de2a=_0x4fbfba,_0x669bfd={};return _0x669bfd[_0x2a06a9]={[Op[_0x32de2a(0x1ae)]]:'%'+_0x1b7fa4[_0x32de2a(0x1b8)][_0x32de2a(0x13b)]+'%'},_0x669bfd;})})),_0x1bb211=_[_0x4fbfba(0x15f)]({},_0x1bb211,_0x1b7fa4[_0x4fbfba(0x197)]),db['MailInteraction'][_0x4fbfba(0x12f)]({'where':_0x1bb211[_0x4fbfba(0x15d)]})[_0x4fbfba(0x184)](function(_0x52d62e){const _0x134d08=_0x4fbfba;return _0x483f76[_0x134d08(0x12f)]=_0x52d62e,_0x1b7fa4['query'][_0x134d08(0x144)]&&(_0x1bb211[_0x134d08(0x164)]=[{'model':db['CmContact'],'as':_0x134d08(0x190),'required':![]},{'model':db[_0x134d08(0x155)],'as':_0x134d08(0x15b),'attributes':['name','fullname',_0x134d08(0x1a5)],'required':![]},{'model':db[_0x134d08(0x189)],'as':_0x134d08(0x1ad),'attributes':['id',_0x134d08(0x142),_0x134d08(0x1b5)],'where':_0x1b7fa4[_0x134d08(0x1b8)][_0x134d08(0x160)]?{'id':_0x1b7fa4[_0x134d08(0x1b8)]['tag']}:undefined,'required':_0x1b7fa4[_0x134d08(0x1b8)]['tag']?!![]:![]}]),db[_0x134d08(0x1bd)][_0x134d08(0x170)](_0x1bb211);})[_0x4fbfba(0x184)](function(_0x16f56b){const _0x26071d=_0x4fbfba;return _0x483f76[_0x26071d(0x150)]=_0x16f56b,_0x483f76;});})[_0x3aa03d(0x184)](respondWithFilteredResult(_0x34db11,_0x1bb211))[_0x3aa03d(0x122)](handleError(_0x34db11,null));},exports[a475_0x215e50(0x130)]=function(_0x2f740c,_0x51d1c5){const _0x213b4d=a475_0x215e50;return db[_0x213b4d(0x143)][_0x213b4d(0x19c)]({'where':{'id':_0x2f740c[_0x213b4d(0x196)]['id']}})[_0x213b4d(0x184)](handleEntityNotFound(_0x51d1c5,null))[_0x213b4d(0x184)](function(_0x6d7f0){const _0x376b98=_0x213b4d;if(_0x6d7f0)return db['sequelize'][_0x376b98(0x167)](function(_0x2c0e2b){const _0x38559f=_0x376b98;return db['MailApplication'][_0x38559f(0x1a8)]({'where':{'MailAccountId':_0x2f740c[_0x38559f(0x196)]['id']},'transaction':_0x2c0e2b})[_0x38559f(0x184)](function(){const _0x444086=_0x38559f,_0x1ca617=_['map'](_0x2f740c[_0x444086(0x124)],function(_0x8c9c5c){const _0x1d81ed=_0x444086;return _0x8c9c5c[_0x1d81ed(0x16b)]=_0x2f740c[_0x1d81ed(0x196)]['id'],_0x8c9c5c;});return db[_0x444086(0x1c1)][_0x444086(0x1bf)](_0x1ca617,{'transaction':_0x2c0e2b});});})[_0x376b98(0x184)](function(){const _0x10d262=_0x376b98;return db[_0x10d262(0x1c1)][_0x10d262(0x12c)]({'where':{'MailAccountId':_0x2f740c[_0x10d262(0x196)]['id']},'order':_0x10d262(0x1ab)});});})[_0x213b4d(0x184)](respondWithResult(_0x51d1c5,null))[_0x213b4d(0x122)](handleError(_0x51d1c5,null));},exports[a475_0x215e50(0x134)]=function(_0x1e3576,_0x38226d){const _0x14fe5a=a475_0x215e50;let _0x4f054f={};const _0xa89e1={};let _0x1e6445,_0x52918b;return db[_0x14fe5a(0x143)][_0x14fe5a(0x19c)]({'where':{'id':_0x1e3576[_0x14fe5a(0x196)]['id']}})[_0x14fe5a(0x184)](handleEntityNotFound(_0x38226d,null))['then'](function(_0x5e9858){const _0x5d4489=_0x14fe5a;if(_0x5e9858)return _0x1e6445=_0x5e9858,_0xa89e1[_0x5d4489(0x16e)]=_['keys'](db[_0x5d4489(0x1c1)]['rawAttributes']),_0xa89e1[_0x5d4489(0x1b8)]=_[_0x5d4489(0x11f)](_0x1e3576[_0x5d4489(0x1b8)]),_0xa89e1[_0x5d4489(0x132)]=_['intersection'](_0xa89e1[_0x5d4489(0x16e)],_0xa89e1[_0x5d4489(0x1b8)]),_0x4f054f[_0x5d4489(0x123)]=_[_0x5d4489(0x1aa)](_0xa89e1[_0x5d4489(0x16e)],qs[_0x5d4489(0x199)](_0x1e3576[_0x5d4489(0x1b8)][_0x5d4489(0x199)])),_0x4f054f[_0x5d4489(0x123)]=_0x4f054f[_0x5d4489(0x123)][_0x5d4489(0x14b)]?_0x4f054f[_0x5d4489(0x123)]:_0xa89e1[_0x5d4489(0x16e)],_0x4f054f[_0x5d4489(0x158)]=qs[_0x5d4489(0x192)](_0x1e3576[_0x5d4489(0x1b8)]['sort']),_0x4f054f[_0x5d4489(0x15d)]=qs[_0x5d4489(0x132)](_[_0x5d4489(0x171)](_0x1e3576['query'],_0xa89e1[_0x5d4489(0x132)])),_0x1e3576[_0x5d4489(0x1b8)][_0x5d4489(0x13b)]&&(_0x4f054f[_0x5d4489(0x15d)]=_[_0x5d4489(0x15f)](_0x4f054f[_0x5d4489(0x15d)],{[Op['or']]:_[_0x5d4489(0x152)](_0x4f054f[_0x5d4489(0x123)],function(_0x50aef9){const _0x1ad7d8=_0x5d4489,_0x1c1043={};return _0x1c1043[_0x50aef9]={[Op[_0x1ad7d8(0x1ae)]]:'%'+_0x1e3576[_0x1ad7d8(0x1b8)][_0x1ad7d8(0x13b)]+'%'},_0x1c1043;})})),_0x4f054f=_['merge']({},_0x4f054f,_0x1e3576[_0x5d4489(0x197)]),_0x1e6445['getApplications'](_0x4f054f);})[_0x14fe5a(0x184)](function(_0x32ab4e){const _0x47a594=_0x14fe5a;if(_0x32ab4e)return _0x52918b=_0x32ab4e[_0x47a594(0x14b)],typeof _0x1e3576[_0x47a594(0x1b8)]['nolimit']==='undefined'&&(_0x4f054f[_0x47a594(0x12e)]=qs[_0x47a594(0x12e)](_0x1e3576[_0x47a594(0x1b8)]['limit']),_0x4f054f[_0x47a594(0x151)]=qs['offset'](_0x1e3576['query']['offset'])),_0x1e6445[_0x47a594(0x134)](_0x4f054f);})[_0x14fe5a(0x184)](function(_0x404780){if(_0x404780)return _0x404780?{'count':_0x52918b,'rows':_0x404780}:null;})[_0x14fe5a(0x184)](respondWithResult(_0x38226d,null))['catch'](handleError(_0x38226d,null));},exports[a475_0x215e50(0x159)]=function(_0x3f94db,_0x47fe61){const _0x8e7650=a475_0x215e50;let _0x307af5={'raw':!![],'where':{}};const _0x35b4a9={},_0x57fa76={'count':0x0,'rows':[]};return db[_0x8e7650(0x143)][_0x8e7650(0x19c)]({'where':{'id':_0x3f94db[_0x8e7650(0x196)]['id']}})[_0x8e7650(0x184)](handleEntityNotFound(_0x47fe61,null))[_0x8e7650(0x184)](function(_0x202e3c){const _0x567afe=_0x8e7650;if(_0x202e3c){_0x35b4a9['model']=_[_0x567afe(0x11f)](db[_0x567afe(0x14e)][_0x567afe(0x15c)]),_0x35b4a9[_0x567afe(0x1b8)]=_[_0x567afe(0x11f)](_0x3f94db['query']),_0x35b4a9[_0x567afe(0x132)]=_[_0x567afe(0x1aa)](_0x35b4a9[_0x567afe(0x16e)],_0x35b4a9[_0x567afe(0x1b8)]),_0x307af5[_0x567afe(0x123)]=_['intersection'](_0x35b4a9[_0x567afe(0x16e)],qs[_0x567afe(0x199)](_0x3f94db[_0x567afe(0x1b8)][_0x567afe(0x199)])),_0x307af5[_0x567afe(0x123)]=_0x307af5['attributes'][_0x567afe(0x14b)]?_0x307af5[_0x567afe(0x123)]:_0x35b4a9[_0x567afe(0x16e)];typeof _0x3f94db[_0x567afe(0x1b8)][_0x567afe(0x1b3)]===_0x567afe(0x1be)&&(_0x307af5['limit']=qs[_0x567afe(0x12e)](_0x3f94db['query'][_0x567afe(0x12e)]),_0x307af5[_0x567afe(0x151)]=qs[_0x567afe(0x151)](_0x3f94db[_0x567afe(0x1b8)][_0x567afe(0x151)]));_0x307af5['order']=qs[_0x567afe(0x192)](_0x3f94db['query'][_0x567afe(0x192)]),_0x307af5[_0x567afe(0x15d)]=qs['filters'](_[_0x567afe(0x171)](_0x3f94db[_0x567afe(0x1b8)],_0x35b4a9[_0x567afe(0x132)])),_0x307af5[_0x567afe(0x15d)]['MailAccountId']=_0x202e3c['id'];_0x3f94db[_0x567afe(0x1b8)]['filter']&&(_0x307af5[_0x567afe(0x15d)]=_['merge'](_0x307af5[_0x567afe(0x15d)],{[Op['or']]:_['map'](_0x307af5[_0x567afe(0x123)],function(_0x36d6e7){const _0x4bf648=_0x567afe,_0x3b5f1a={};return _0x3b5f1a[_0x36d6e7]={[Op['like']]:'%'+_0x3f94db[_0x4bf648(0x1b8)][_0x4bf648(0x13b)]+'%'},_0x3b5f1a;})}));if(_0x3f94db[_0x567afe(0x1b8)]['$gte']){const _0x5d70b0=_0x3f94db[_0x567afe(0x1b8)][_0x567afe(0x18d)]['split'](','),_0x3f99a7={};_0x3f99a7[_0x5d70b0[0x0]]={[Op['gte']]:moment(_0x5d70b0[0x1])['format'](_0x567afe(0x11e))},_0x307af5[_0x567afe(0x15d)]=_[_0x567afe(0x15f)](_0x307af5[_0x567afe(0x15d)],_0x3f99a7);}return _0x307af5=_[_0x567afe(0x15f)]({},_0x307af5,_0x3f94db['options']),db[_0x567afe(0x14e)][_0x567afe(0x12f)]({'where':_0x307af5['where']})['then'](function(_0x52d1cb){const _0x2ac9af=_0x567afe;return _0x57fa76[_0x2ac9af(0x12f)]=_0x52d1cb,_0x3f94db[_0x2ac9af(0x1b8)][_0x2ac9af(0x144)]&&(_0x307af5['include']=[{'all':!![]}]),db[_0x2ac9af(0x14e)]['findAll'](_0x307af5);})[_0x567afe(0x184)](function(_0xe72ef2){return _0x57fa76['rows']=_0xe72ef2,_0x57fa76;});}})[_0x8e7650(0x184)](respondWithFilteredResult(_0x47fe61,_0x307af5))[_0x8e7650(0x122)](handleError(_0x47fe61,null));},exports['send']=function(_0x28a633,_0x51f79f){const _0x2fcd02=a475_0x215e50;let _0x51bb95,_0x2a76a2={},_0x4873cf;return _0x28a633['body']['to']&&(_0x4873cf=_0x28a633['body']['to'][_0x2fcd02(0x146)](',')[0x0]),db[_0x2fcd02(0x143)]['findOne']({'where':{'id':_0x28a633[_0x2fcd02(0x196)]['id']},'include':[{'model':db[_0x2fcd02(0x11d)],'as':'List','include':[{'model':db[_0x2fcd02(0x133)],'as':'Contacts','where':{'email':_0x4873cf},'limit':0x1,'order':[['updatedAt',_0x2fcd02(0x1a6)]]}]},{'model':db[_0x2fcd02(0x128)],'as':_0x2fcd02(0x156),'raw':!![]}]})['then'](handleEntityNotFound(_0x51f79f,null))['then'](function(_0x5935c0){const _0x356a9e=_0x2fcd02;if(_0x5935c0){_0x51bb95=_0x5935c0;if(_0x5935c0['Smtp']){_[_0x356a9e(0x16f)](_0x28a633[_0x356a9e(0x124)][_0x356a9e(0x185)])&&(_0x28a633['body'][_0x356a9e(0x185)]=util['format'](_0x356a9e(0x18a),_0x5935c0[_0x356a9e(0x142)],_0x5935c0[_0x356a9e(0x183)]||_0x5935c0[_0x356a9e(0x156)][_0x356a9e(0x12a)]));if(_0x28a633[_0x356a9e(0x124)][_0x356a9e(0x18e)]&&_0x28a633[_0x356a9e(0x124)][_0x356a9e(0x18e)][_0x356a9e(0x14b)])for(let _0x1003f7=0x0;_0x1003f7<_0x28a633['body'][_0x356a9e(0x18e)][_0x356a9e(0x14b)];_0x1003f7+=0x1){_0x28a633[_0x356a9e(0x124)][_0x356a9e(0x18e)][_0x1003f7]={'filename':_0x28a633[_0x356a9e(0x124)][_0x356a9e(0x18e)][_0x1003f7][_0x356a9e(0x142)],'path':path[_0x356a9e(0x17a)](config[_0x356a9e(0x176)],_0x356a9e(0x14c),_0x28a633[_0x356a9e(0x124)][_0x356a9e(0x18e)][_0x1003f7][_0x356a9e(0x194)])};}const _0x34c748={'tls':{'rejectUnauthorized':![]}};return _[_0x356a9e(0x16f)](_0x5935c0[_0x356a9e(0x156)][_0x356a9e(0x1b0)])?(_0x5935c0[_0x356a9e(0x156)][_0x356a9e(0x18b)]&&(_0x34c748[_0x356a9e(0x17e)]={'user':_0x5935c0[_0x356a9e(0x156)][_0x356a9e(0x12a)],'pass':_0x5935c0[_0x356a9e(0x156)][_0x356a9e(0x17f)]}),_0x34c748[_0x356a9e(0x174)]=_0x5935c0[_0x356a9e(0x156)][_0x356a9e(0x174)],_0x34c748[_0x356a9e(0x188)]=_0x5935c0[_0x356a9e(0x156)]['port'],_0x34c748[_0x356a9e(0x19a)]=_0x5935c0[_0x356a9e(0x156)][_0x356a9e(0x19a)]):(_0x34c748['service']=_0x5935c0['Smtp']['service'],_0x34c748[_0x356a9e(0x17e)]={'user':_0x5935c0[_0x356a9e(0x156)][_0x356a9e(0x12a)],'pass':_0x5935c0[_0x356a9e(0x156)][_0x356a9e(0x17f)]}),respondWithRpcPromise(_0x356a9e(0x17c),_0x356a9e(0x1a1),{'account':_0x34c748,'message':_0x28a633['body']});}else throw new Error(_0x356a9e(0x14f));}})['then'](function(_0x479ad1){const _0x47080c=_0x2fcd02;if(_0x479ad1){_0x2a76a2=_0x479ad1;if(_0x51bb95[_0x47080c(0x19e)])return _0x51bb95[_0x47080c(0x19e)]['Contacts'][_0x47080c(0x14b)]?_0x51bb95['List']['Contacts'][0x0]:db[_0x47080c(0x133)][_0x47080c(0x16c)](_[_0x47080c(0x1ba)](_0x28a633[_0x47080c(0x124)],{'firstName':_0x28a633[_0x47080c(0x124)]['to'],'email':_0x28a633[_0x47080c(0x124)]['to'],'phone':_0x28a633['body']['to'],'ListId':_0x51bb95['ListId']}));else throw new Error('List\x20not\x20found');}})[_0x2fcd02(0x184)](function(_0x39967a){const _0x54845c=_0x2fcd02;if(_0x39967a){let _0x4060d5={'UserId':_0x28a633[_0x54845c(0x12a)]['id'],'ContactId':_0x39967a['id'],'MailAccountId':_0x51bb95['id'],'inReplyTo':_0x2a76a2[_0x54845c(0x18c)],'to':_0x28a633[_0x54845c(0x124)]['from'],'cc':_0x28a633[_0x54845c(0x124)]['cc'],'subject':_0x28a633['body'][_0x54845c(0x18f)],'attach':_0x28a633[_0x54845c(0x124)][_0x54845c(0x181)],'firstMsgDirection':_0x54845c(0x1b2),'lastMsgAt':moment()[_0x54845c(0x12b)](_0x54845c(0x11e)),'lastMsgDirection':'out','lastMsgBody':_0x28a633[_0x54845c(0x124)][_0x54845c(0x124)],'Messages':[_[_0x54845c(0x15f)](_0x28a633['body'],{'messageId':_0x2a76a2[_0x54845c(0x18c)],'sentAt':moment()[_0x54845c(0x12b)](_0x54845c(0x11e)),'read':!![],'MailAccountId':_0x51bb95['id'],'UserId':_0x28a633[_0x54845c(0x12a)]['id'],'ContactId':_0x39967a['id']})]};return _0x28a633[_0x54845c(0x124)][_0x54845c(0x172)]&&(_0x4060d5=_['merge'](_0x4060d5,_0x28a633[_0x54845c(0x124)]['Interaction'])),db[_0x54845c(0x1bd)][_0x54845c(0x16c)](_0x4060d5,{'include':[{'model':db[_0x54845c(0x14e)],'as':'Messages'}]});}})['then'](respondWithResult(_0x51f79f,null))[_0x2fcd02(0x122)](handleError(_0x51f79f,null));},exports[a475_0x215e50(0x14a)]=function(_0x543c62,_0x429d02){const _0x188f15=a475_0x215e50;return db['MailAccount'][_0x188f15(0x19c)]({'where':{'id':_0x543c62[_0x188f15(0x196)]['id']},'include':[{'model':db[_0x188f15(0x128)],'as':_0x188f15(0x156),'raw':!![]}]})[_0x188f15(0x184)](handleEntityNotFound(_0x429d02,null))[_0x188f15(0x184)](function(_0x40522f){const _0x2adbe9=_0x188f15;if(_0x40522f&&_0x40522f[_0x2adbe9(0x156)]){const _0x21f123={'id':_0x40522f['id'],'tls':{'rejectUnauthorized':![]}};return _0x40522f[_0x2adbe9(0x156)][_0x2adbe9(0x1b0)]?_0x21f123[_0x2adbe9(0x1b0)]=_0x40522f[_0x2adbe9(0x156)][_0x2adbe9(0x1b0)]:(_0x21f123['host']=_0x40522f['Smtp'][_0x2adbe9(0x174)],_0x21f123['port']=_0x40522f[_0x2adbe9(0x156)]['port'],_0x21f123['secure']=_0x40522f['Smtp'][_0x2adbe9(0x19a)]),_0x40522f[_0x2adbe9(0x156)][_0x2adbe9(0x18b)]&&(_0x21f123[_0x2adbe9(0x17e)]={'user':_0x40522f[_0x2adbe9(0x156)][_0x2adbe9(0x12a)],'pass':_0x40522f['Smtp'][_0x2adbe9(0x17f)]}),respondWithRpcPromise('VerifySmtp','verifySmtp',{'account':_0x21f123});}})[_0x188f15(0x184)](respondWithResult(_0x429d02,null))[_0x188f15(0x122)](handleError(_0x429d02,null));},exports['destroy']=function(_0x5bd804,_0x1340ec){const _0x10d2c7=a475_0x215e50;return db['MailAccount'][_0x10d2c7(0x19c)]({'where':{'id':_0x5bd804['params']['id']}})['then'](handleEntityNotFound(_0x1340ec,null))[_0x10d2c7(0x184)](function(_0x281c1b){const _0x21cd48=_0x10d2c7;if(_0x281c1b&&_0x281c1b[_0x21cd48(0x1b0)])throw new ValidationError(_0x21cd48(0x168));return _0x281c1b;})['then'](removeEntity(_0x1340ec,null))[_0x10d2c7(0x122)](handleError(_0x1340ec,null));},exports['addAgents']=function(_0xa9cbd5,_0x4ade12){const _0x1bae2e=a475_0x215e50;return db['MailAccount'][_0x1bae2e(0x19c)]({'where':{'id':_0xa9cbd5[_0x1bae2e(0x196)]['id']}})[_0x1bae2e(0x184)](function(_0x33eaf0){const _0x5e311f=_0x1bae2e;if(_0x33eaf0)return _0x33eaf0[_0x5e311f(0x191)](_0xa9cbd5[_0x5e311f(0x124)]['ids'],{'through':_[_0x5e311f(0x140)](_0xa9cbd5['body'],[_0x5e311f(0x1a2),'id'])})[_0x5e311f(0x184)](function(_0x2675ed){const _0x4fb734=_0x5e311f;for(let _0x2088c8=0x0;_0x2088c8<_0xa9cbd5['body'][_0x4fb734(0x1a2)]['length'];_0x2088c8+=0x1){socket[_0x4fb734(0x1a3)](_0x4fb734(0x19d),{'UserId':_0xa9cbd5[_0x4fb734(0x124)][_0x4fb734(0x1a2)][_0x2088c8],'MailAccountId':_0xa9cbd5[_0x4fb734(0x196)]['id']});}return _0x2675ed;});})[_0x1bae2e(0x184)](respondWithResult(_0x4ade12,null))[_0x1bae2e(0x122)](handleError(_0x4ade12,null));},exports['removeAgents']=function(_0x1f22b7,_0x28e397){const _0x5729b2=a475_0x215e50;return db[_0x5729b2(0x143)]['findOne']({'where':{'id':_0x1f22b7[_0x5729b2(0x196)]['id']}})[_0x5729b2(0x184)](handleEntityNotFound(_0x28e397,null))['then'](function(_0x575469){const _0x1f4172=_0x5729b2;if(_0x575469)return _0x575469[_0x1f4172(0x1b9)](_0x1f22b7[_0x1f4172(0x1b8)]['ids'])[_0x1f4172(0x184)](function(){const _0x21e0fd=_0x1f4172;if(_[_0x21e0fd(0x195)](_0x1f22b7[_0x21e0fd(0x1b8)][_0x21e0fd(0x1a2)]))for(let _0x28ce71=0x0;_0x28ce71<_0x1f22b7[_0x21e0fd(0x1b8)][_0x21e0fd(0x1a2)][_0x21e0fd(0x14b)];_0x28ce71+=0x1){socket[_0x21e0fd(0x1a3)](_0x21e0fd(0x148),{'UserId':Number(_0x1f22b7['query'][_0x21e0fd(0x1a2)][_0x28ce71]),'MailAccountId':Number(_0x1f22b7[_0x21e0fd(0x196)]['id'])});}else socket[_0x21e0fd(0x1a3)]('userMailAccount:remove',{'UserId':Number(_0x1f22b7[_0x21e0fd(0x1b8)][_0x21e0fd(0x1a2)]),'MailAccountId':Number(_0x1f22b7['params']['id'])});});})[_0x5729b2(0x184)](respondWithStatusCode(_0x28e397,null))[_0x5729b2(0x122)](handleError(_0x28e397,null));},exports[a475_0x215e50(0x136)]=function(_0x2a0c47,_0x22d2a5){const _0x4794f0=a475_0x215e50;let _0xdfd298={};const _0x47789a={};let _0x1051a9,_0x3810e8;return db[_0x4794f0(0x143)][_0x4794f0(0x19c)]({'where':{'id':_0x2a0c47[_0x4794f0(0x196)]['id']}})['then'](handleEntityNotFound(_0x22d2a5,null))[_0x4794f0(0x184)](function(_0x1562ca){const _0x285a2d=_0x4794f0;if(_0x1562ca)return _0x1051a9=_0x1562ca,_0x47789a['model']=_[_0x285a2d(0x11f)](db['User']['rawAttributes']),_0x47789a[_0x285a2d(0x1b8)]=_[_0x285a2d(0x11f)](_0x2a0c47[_0x285a2d(0x1b8)]),_0x47789a[_0x285a2d(0x132)]=_['intersection'](_0x47789a[_0x285a2d(0x16e)],_0x47789a[_0x285a2d(0x1b8)]),_0xdfd298[_0x285a2d(0x123)]=_[_0x285a2d(0x1aa)](_0x47789a[_0x285a2d(0x16e)],qs[_0x285a2d(0x199)](_0x2a0c47[_0x285a2d(0x1b8)][_0x285a2d(0x199)])),_0xdfd298['attributes']=_0xdfd298[_0x285a2d(0x123)][_0x285a2d(0x14b)]?_0xdfd298[_0x285a2d(0x123)]:_0x47789a[_0x285a2d(0x16e)],_0xdfd298[_0x285a2d(0x158)]=qs[_0x285a2d(0x192)](_0x2a0c47[_0x285a2d(0x1b8)][_0x285a2d(0x192)]),_0xdfd298[_0x285a2d(0x15d)]=qs[_0x285a2d(0x132)](_[_0x285a2d(0x171)](_0x2a0c47[_0x285a2d(0x1b8)],_0x47789a['filters'])),_0x2a0c47[_0x285a2d(0x1b8)][_0x285a2d(0x13b)]&&(_0xdfd298[_0x285a2d(0x15d)]=_[_0x285a2d(0x15f)](_0xdfd298[_0x285a2d(0x15d)],{[Op['or']]:_[_0x285a2d(0x152)](_0xdfd298[_0x285a2d(0x123)],function(_0x23615f){const _0x5b9988=_0x285a2d,_0x2dbd5c={};return _0x2dbd5c[_0x23615f]={[Op['like']]:'%'+_0x2a0c47[_0x5b9988(0x1b8)]['filter']+'%'},_0x2dbd5c;})})),_0xdfd298=_[_0x285a2d(0x15f)]({},_0xdfd298,_0x2a0c47['options']),_0x1051a9[_0x285a2d(0x136)](_0xdfd298);})['then'](function(_0x3e638e){const _0x228be8=_0x4794f0;if(_0x3e638e)return _0x3810e8=_0x3e638e[_0x228be8(0x14b)],typeof _0x2a0c47[_0x228be8(0x1b8)][_0x228be8(0x1b3)]===_0x228be8(0x1be)&&(_0xdfd298[_0x228be8(0x12e)]=qs[_0x228be8(0x12e)](_0x2a0c47[_0x228be8(0x1b8)]['limit']),_0xdfd298[_0x228be8(0x151)]=qs[_0x228be8(0x151)](_0x2a0c47['query'][_0x228be8(0x151)])),_0x1051a9['getAgents'](_0xdfd298);})[_0x4794f0(0x184)](function(_0x383ffd){if(_0x383ffd)return _0x383ffd?{'count':_0x3810e8,'rows':_0x383ffd}:null;})[_0x4794f0(0x184)](respondWithResult(_0x22d2a5,null))['catch'](handleError(_0x22d2a5,null));}; \ No newline at end of file diff --git a/server/api/mailAccount/mailAccount.events.js b/server/api/mailAccount/mailAccount.events.js index 0d2967b..230d8b4 100644 --- a/server/api/mailAccount/mailAccount.events.js +++ b/server/api/mailAccount/mailAccount.events.js @@ -1 +1 @@ -const a395_0x115e=['../../mysqldb','remove','exports','update','MailAccount','emit','events'];(function(_0xff9dd6,_0x115e6e){const _0x2b6a2a=function(_0x1e4699){while(--_0x1e4699){_0xff9dd6['push'](_0xff9dd6['shift']());}};_0x2b6a2a(++_0x115e6e);}(a395_0x115e,0x1c0));const a395_0x2b6a=function(_0xff9dd6,_0x115e6e){_0xff9dd6=_0xff9dd6-0x0;let _0x2b6a2a=a395_0x115e[_0xff9dd6];return _0x2b6a2a;};const _0x33335b=a395_0x2b6a;'use strict';const EventEmitter=require(_0x33335b('0x6')),MailAccount=require(_0x33335b('0x0'))['db'][_0x33335b('0x4')],MailAccountEvents=new EventEmitter();MailAccountEvents['setMaxListeners'](0x0);const events={'afterCreate':'save','afterUpdate':_0x33335b('0x3'),'afterDestroy':_0x33335b('0x1')};function emitEvent(_0x1e4699){return function(_0x3a4883){const _0x29c7dd=a395_0x2b6a;MailAccountEvents[_0x29c7dd('0x5')](_0x1e4699+':'+_0x3a4883['id'],_0x3a4883),MailAccountEvents[_0x29c7dd('0x5')](_0x1e4699,_0x3a4883);};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];MailAccount['addHook'](e,emitEvent(event));}}module[_0x33335b('0x2')]=MailAccountEvents; \ No newline at end of file +const a476_0x5e23=['exports','addHook','setMaxListeners','../../mysqldb','remove','events','save'];(function(_0xbec48e,_0x16a04a){const _0x5e2323=function(_0xa1c14){while(--_0xa1c14){_0xbec48e['push'](_0xbec48e['shift']());}};_0x5e2323(++_0x16a04a);}(a476_0x5e23,0xdc));const a476_0xa1c1=function(_0xbec48e,_0x16a04a){_0xbec48e=_0xbec48e-0xac;let _0x5e2323=a476_0x5e23[_0xbec48e];return _0x5e2323;};const a476_0x4d65e9=a476_0xa1c1;'use strict';const EventEmitter=require(a476_0x4d65e9(0xae)),MailAccount=require(a476_0x4d65e9(0xac))['db']['MailAccount'],MailAccountEvents=new EventEmitter();MailAccountEvents[a476_0x4d65e9(0xb2)](0x0);const events={'afterCreate':a476_0x4d65e9(0xaf),'afterUpdate':'update','afterDestroy':a476_0x4d65e9(0xad)};function emitEvent(_0x4fd0a9){return function(_0x529654){MailAccountEvents['emit'](_0x4fd0a9+':'+_0x529654['id'],_0x529654),MailAccountEvents['emit'](_0x4fd0a9,_0x529654);};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];MailAccount[a476_0x4d65e9(0xb1)](e,emitEvent(event));}}module[a476_0x4d65e9(0xb0)]=MailAccountEvents; \ No newline at end of file diff --git a/server/api/mailAccount/mailAccount.model.js b/server/api/mailAccount/mailAccount.model.js index b13b004..29a7941 100644 --- a/server/api/mailAccount/mailAccount.model.js +++ b/server/api/mailAccount/mailAccount.model.js @@ -1 +1 @@ -const a396_0x3308=['exports','./mailAccount.attributes','mail_accounts','MailAccount'];(function(_0xb1157f,_0x330848){const _0x3c626e=function(_0x5c1e3b){while(--_0x5c1e3b){_0xb1157f['push'](_0xb1157f['shift']());}};_0x3c626e(++_0x330848);}(a396_0x3308,0xe1));const a396_0x3c62=function(_0xb1157f,_0x330848){_0xb1157f=_0xb1157f-0x0;let _0x3c626e=a396_0x3308[_0xb1157f];return _0x3c626e;};const _0x2ff3b2=a396_0x3c62;'use strict';const attributes=require(_0x2ff3b2('0x0'));module[_0x2ff3b2('0x3')]=function(_0x5c1e3b){const _0x4d7150=_0x2ff3b2,_0x286f61=_0x5c1e3b['define'](_0x4d7150('0x2'),attributes,{'tableName':_0x4d7150('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x286f61;}; \ No newline at end of file +const a477_0x2d93=['./mailAccount.options','MailAccount','sequelize','function','init','exports','./mailAccount.attributes'];(function(_0xb7146e,_0x2a3b80){const _0x2d93a5=function(_0x50e62f){while(--_0x50e62f){_0xb7146e['push'](_0xb7146e['shift']());}};_0x2d93a5(++_0x2a3b80);}(a477_0x2d93,0x80));const a477_0x50e6=function(_0xb7146e,_0x2a3b80){_0xb7146e=_0xb7146e-0xa7;let _0x2d93a5=a477_0x2d93[_0xb7146e];return _0x2d93a5;};const a477_0x2d1368=a477_0x50e6;'use strict';const {Model}=require(a477_0x2d1368(0xa7)),{attributes}=require(a477_0x2d1368(0xab)),{options}=require(a477_0x2d1368(0xac));class MailAccount extends Model{}function init(_0x466e3f,_0x269371){const _0x1e08df=a477_0x2d1368,_0x2e79ef=options(_0x466e3f),_0xd8d698=typeof _0x269371===_0x1e08df(0xa8)?_0x269371(_0x2e79ef):_0x2e79ef;return MailAccount['init'](attributes,_0xd8d698),MailAccount;}module[a477_0x2d1368(0xaa)][a477_0x2d1368(0xad)]=MailAccount,module['exports'][a477_0x2d1368(0xa9)]=init; \ No newline at end of file diff --git a/server/api/mailAccount/mailAccount.options.js b/server/api/mailAccount/mailAccount.options.js new file mode 100644 index 0000000..dfd6706 --- /dev/null +++ b/server/api/mailAccount/mailAccount.options.js @@ -0,0 +1 @@ +var a478_0x79dd=['mail_accounts'];(function(_0x3db668,_0x292b97){var _0x79dd13=function(_0x21cfbf){while(--_0x21cfbf){_0x3db668['push'](_0x3db668['shift']());}};_0x79dd13(++_0x292b97);}(a478_0x79dd,0xa7));var a478_0x21cf=function(_0x3db668,_0x292b97){_0x3db668=_0x3db668-0x115;var _0x79dd13=a478_0x79dd[_0x3db668];return _0x79dd13;};function options(_0x54a7b1){var _0x2e0649=a478_0x21cf;return{'sequelize':_0x54a7b1,'tableName':_0x2e0649(0x115),'paranoid':![],'indexes':[],'timestamps':!![]};}module['exports']['options']=options; \ No newline at end of file diff --git a/server/api/mailAccount/mailAccount.rpc.js b/server/api/mailAccount/mailAccount.rpc.js index 771f876..659e193 100644 --- a/server/api/mailAccount/mailAccount.rpc.js +++ b/server/api/mailAccount/mailAccount.rpc.js @@ -1 +1 @@ -const a397_0x1b5b=['info','rpc','create','catch','where','List','priority','MailMessage','model','MailAccount','mail','Messages','mapKey','debug','defaults','findAll','*,*,*,*','stringify','Applications','Start','options','keys','../../rediscache','moment','CmList','../../mysqldb','findOne','asc','contact','startRouting','messageId','attachments','originTo','error','Smtp','result','mapKey\x20is\x20mandatory,\x20please\x20use\x20one\x20of\x20these:\x20','waitForTheAssignedAgent','rawAttributes','push','MailAccount,\x20%s,\x20%s,\x20%s','request','mapKey\x20invalid,\x20please\x20use\x20one\x20of\x20these:\x20','createdAt','YYYY-MM-DD\x20HH:mm:ss','request\x20sent','randomstring','MailInteraction','UserId','map','NotifyMailAccount','register','http','originCc','List\x20not\x20found','DESC','get','raw','Contact\x20not\x20found','../../config/logger','format','interaction','name','attributes','client','include','autoclose','GetMailAccount','Attachment','subject','applications','User','isNil','message','inReplyTo','account','MailAccount,\x20%s,\x20%s','update','body\x20is\x20mandatory\x20and\x20not\x20empty','./mailAccount.socket','lodash','Contacts','jayson/promise','CompanyId','difference','agent','then','ListId','from','attach','updatedAt','ShowMailAccount','unshift','length','bcc','CmContact','body','includes','from\x20is\x20mandatory'];(function(_0xe63c87,_0x1b5bc5){const _0x10ec2f=function(_0x35124b){while(--_0x35124b){_0xe63c87['push'](_0xe63c87['shift']());}};_0x10ec2f(++_0x1b5bc5);}(a397_0x1b5b,0x1dc));const a397_0x10ec=function(_0xe63c87,_0x1b5bc5){_0xe63c87=_0xe63c87-0x0;let _0x10ec2f=a397_0x1b5b[_0xe63c87];return _0x10ec2f;};const _0x80d591=a397_0x10ec;'use strict';const _=require(_0x80d591('0x0')),db=require(_0x80d591('0x2c'))['db'],logger=require(_0x80d591('0x4e'))(_0x80d591('0x14')),{getSocket}=require(_0x80d591('0x29')),socket=getSocket(),rs=require(_0x80d591('0x41')),moment=require(_0x80d591('0x2a')),jayson=require(_0x80d591('0x2')),client=jayson[_0x80d591('0x53')][_0x80d591('0x47')]({'port':0x232c});require(_0x80d591('0x62'))[_0x80d591('0x46')](socket);function respondWithRpcPromise(_0x35124b,_0x1fef51,_0x162134){return new Promise(function(_0x275238,_0x2bfdfc){const _0x4d8b19=a397_0x10ec;return client[_0x4d8b19('0x3c')](_0x35124b,_0x162134)[_0x4d8b19('0x6')](function(_0x1c7885){const _0x290628=_0x4d8b19;logger[_0x290628('0x13')](_0x290628('0x5f'),_0x1fef51,'request\x20sent'),logger[_0x290628('0x20')](_0x290628('0x3b'),_0x1fef51,_0x290628('0x40'),JSON['stringify'](_0x1c7885));if(_0x1c7885[_0x290628('0x34')]){if(_0x1c7885['error']['code']===0x1f4)return logger[_0x290628('0x34')](_0x290628('0x5f'),_0x1fef51,_0x1c7885[_0x290628('0x34')][_0x290628('0x5c')]),_0x2bfdfc(_0x1c7885['error'][_0x290628('0x5c')]);return logger['error'](_0x290628('0x5f'),_0x1fef51,_0x1c7885['error'][_0x290628('0x5c')]),_0x275238(_0x1c7885[_0x290628('0x34')]['message']);}else logger[_0x290628('0x13')](_0x290628('0x5f'),_0x1fef51,_0x290628('0x40')),_0x275238(_0x1c7885[_0x290628('0x36')][_0x290628('0x5c')]);})[_0x4d8b19('0x16')](function(_0x1fbff4){const _0x535831=_0x4d8b19;logger[_0x535831('0x34')]('MailAccount,\x20%s,\x20%s',_0x1fef51,_0x1fbff4),_0x2bfdfc(_0x1fbff4);});});}exports[_0x80d591('0x56')]=function(_0x5bca81){const _0x513472=this;return new Promise(function(_0x17b64f,_0x3d6116){const _0x5872fd=a397_0x10ec;return db['MailAccount'][_0x5872fd('0x22')]({'raw':_0x5bca81['options']?_0x5bca81['options'][_0x5872fd('0x4c')]===undefined?!![]:![]:!![],'where':_0x5bca81[_0x5872fd('0x27')]?_0x5bca81[_0x5872fd('0x27')][_0x5872fd('0x17')]||null:null,'attributes':_0x5bca81[_0x5872fd('0x27')]?_0x5bca81[_0x5872fd('0x27')][_0x5872fd('0x52')]||null:null,'limit':_0x5bca81[_0x5872fd('0x27')]?_0x5bca81[_0x5872fd('0x27')]['limit']||null:null,'include':_0x5bca81[_0x5872fd('0x27')]?_0x5bca81['options']['include']?_['map'](_0x5bca81[_0x5872fd('0x27')][_0x5872fd('0x54')],function(_0x52afac){const _0x3ac588=_0x5872fd;return{'model':db[_0x52afac[_0x3ac588('0x1b')]],'as':_0x52afac['as'],'attributes':_0x52afac[_0x3ac588('0x52')],'include':_0x52afac[_0x3ac588('0x54')]?_[_0x3ac588('0x44')](_0x52afac[_0x3ac588('0x54')],function(_0x5643d6){const _0x28bb1e=_0x3ac588;return{'model':db[_0x5643d6[_0x28bb1e('0x1b')]],'as':_0x5643d6['as'],'attributes':_0x5643d6['attributes'],'include':_0x5643d6[_0x28bb1e('0x54')]?_[_0x28bb1e('0x44')](_0x5643d6[_0x28bb1e('0x54')],function(_0x29ba8d){const _0xce81e7=_0x28bb1e;return{'model':db[_0x29ba8d[_0xce81e7('0x1b')]],'as':_0x29ba8d['as'],'attributes':_0x29ba8d['attributes']};}):[]};}):[]};}):[]:[]})['then'](function(_0x5bde2b){const _0x226fac=_0x5872fd;logger['info'](_0x226fac('0x56'),_0x5bca81),logger[_0x226fac('0x20')]('GetMailAccount',_0x5bca81,JSON[_0x226fac('0x24')](_0x5bde2b)),_0x17b64f(_0x5bde2b);})[_0x5872fd('0x16')](function(_0x36c6c8){const _0x554de5=_0x5872fd;logger[_0x554de5('0x34')](_0x554de5('0x56'),_0x36c6c8[_0x554de5('0x5c')],_0x5bca81),_0x3d6116(_0x513472[_0x554de5('0x34')](0x1f4,_0x36c6c8[_0x554de5('0x5c')]));});});},exports[_0x80d591('0xb')]=function(_0x5bf02b){const _0x45972b=this;return new Promise(function(_0x338081,_0x59ad87){const _0x577de1=a397_0x10ec;return db[_0x577de1('0x1c')][_0x577de1('0x2d')]({'raw':_0x5bf02b['options']?_0x5bf02b[_0x577de1('0x27')]['raw']===undefined?!![]:![]:!![],'where':_0x5bf02b[_0x577de1('0x27')]?_0x5bf02b['options']['where']||null:null,'attributes':_0x5bf02b['options']?_0x5bf02b[_0x577de1('0x27')]['attributes']||null:null,'include':_0x5bf02b['options']?_0x5bf02b['options'][_0x577de1('0x54')]?_[_0x577de1('0x44')](_0x5bf02b[_0x577de1('0x27')]['include'],function(_0x424fb6){const _0x3f8664=_0x577de1;return{'model':db[_0x424fb6['model']],'as':_0x424fb6['as'],'attributes':_0x424fb6[_0x3f8664('0x52')],'include':_0x424fb6[_0x3f8664('0x54')]?_[_0x3f8664('0x44')](_0x424fb6[_0x3f8664('0x54')],function(_0x4d4b88){const _0x5c8f04=_0x3f8664;return{'model':db[_0x4d4b88[_0x5c8f04('0x1b')]],'as':_0x4d4b88['as'],'attributes':_0x4d4b88[_0x5c8f04('0x52')],'include':_0x4d4b88['include']?_[_0x5c8f04('0x44')](_0x4d4b88[_0x5c8f04('0x54')],function(_0x529b5c){const _0x245af8=_0x5c8f04;return{'model':db[_0x529b5c[_0x245af8('0x1b')]],'as':_0x529b5c['as'],'attributes':_0x529b5c[_0x245af8('0x52')]};}):[]};}):[]};}):[]:[]})[_0x577de1('0x6')](function(_0x3fb7fa){const _0x24de22=_0x577de1;logger[_0x24de22('0x13')]('ShowMailAccount',_0x5bf02b),logger[_0x24de22('0x20')](_0x24de22('0xb'),_0x5bf02b,JSON[_0x24de22('0x24')](_0x3fb7fa)),_0x338081(_0x3fb7fa);})['catch'](function(_0x58daae){const _0x2ce561=_0x577de1;logger[_0x2ce561('0x34')](_0x2ce561('0xb'),_0x58daae[_0x2ce561('0x5c')],_0x5bf02b),_0x59ad87(_0x45972b[_0x2ce561('0x34')](0x1f4,_0x58daae[_0x2ce561('0x5c')]));});});},exports[_0x80d591('0x45')]=function(_0xf667e7){const _0x1685bc=this;return new Promise(function(_0x299226,_0x4a33cd){const _0x4efae6=a397_0x10ec,_0x47b7e2={'body':_0xf667e7[_0x4efae6('0x10')],'channel':_0x4efae6('0x1d')},_0x86d46=_[_0x4efae6('0x4')](_[_0x4efae6('0x28')](db['CmContact'][_0x4efae6('0x39')]),[_0x4efae6('0x3e'),'updatedAt',_0x4efae6('0x3'),_0x4efae6('0x7')]);let _0x68cffb=![];_0xf667e7[_0x4efae6('0x10')]['id']&&delete _0xf667e7[_0x4efae6('0x10')]['id'];if(_[_0x4efae6('0x5b')](_0xf667e7[_0x4efae6('0x10')][_0x4efae6('0x8')]))return _0x4a33cd(_0x1685bc[_0x4efae6('0x34')](0x1f4,_0x4efae6('0x12')));if(_[_0x4efae6('0x5b')](_0xf667e7[_0x4efae6('0x10')][_0x4efae6('0x10')])||_0xf667e7['body'][_0x4efae6('0x10')]==='')return _0x4a33cd(_0x1685bc[_0x4efae6('0x34')](0x1f4,_0x4efae6('0x61')));if(_[_0x4efae6('0x5b')](_0xf667e7[_0x4efae6('0x10')]['mapKey']))return _0x4a33cd(_0x1685bc[_0x4efae6('0x34')](0x1f4,_0x4efae6('0x37')+_0x86d46));if(!_[_0x4efae6('0x11')](_0x86d46,_0xf667e7[_0x4efae6('0x10')][_0x4efae6('0x1f')]))return _0x4a33cd(_0x1685bc[_0x4efae6('0x34')](0x1f4,_0x4efae6('0x3d')+_0x86d46));const _0x242506={};return _0x242506[_0xf667e7['body'][_0x4efae6('0x1f')]]=_0xf667e7[_0x4efae6('0x10')][_0x4efae6('0x8')],db[_0x4efae6('0x1c')]['findOne']({'where':{'id':_0xf667e7['account']['id']},'include':[{'model':db[_0x4efae6('0x2b')],'as':_0x4efae6('0x18'),'include':[{'model':db[_0x4efae6('0xf')],'as':'Contacts','where':_0x242506,'limit':0x1,'order':[[_0x4efae6('0xa'),_0x4efae6('0x4a')]]}]},{'model':db['MailApplication'],'as':_0x4efae6('0x25')},{'model':db['MailServerOut'],'as':_0x4efae6('0x35')}]})[_0x4efae6('0x6')](function(_0x208dfa){const _0x2fab52=_0x4efae6;if(_0x208dfa&&_0x208dfa[_0x2fab52('0x18')]){const _0x327fa7=_0x208dfa[_0x2fab52('0x4b')]({'plain':!![]});_0x47b7e2[_0x2fab52('0x5e')]=_['omit'](_0x327fa7,[_0x2fab52('0x25'),_0x2fab52('0x18')]),_0x47b7e2['applications']=_0x327fa7['Applications'],_0x47b7e2['list']=_0x327fa7[_0x2fab52('0x18')],_0x47b7e2[_0x2fab52('0x59')]=_['orderBy'](_0x47b7e2['applications'],[_0x2fab52('0x19')],[_0x2fab52('0x2e')]);_0x47b7e2[_0x2fab52('0x5e')]&&_0x47b7e2[_0x2fab52('0x5e')]['autoclose']&&_0x47b7e2[_0x2fab52('0x59')][_0x2fab52('0x3a')]({'id':0x0,'priority':_0x47b7e2['applications'][_0x2fab52('0xd')]+0x1,'app':'close','appdata':_0x2fab52('0x55'),'interval':_0x2fab52('0x23')});_0x47b7e2[_0x2fab52('0x5e')][_0x2fab52('0x25')]&&delete _0x47b7e2[_0x2fab52('0x5e')]['Applications'];_0x47b7e2[_0x2fab52('0x5e')][_0x2fab52('0x18')]&&delete _0x47b7e2['account']['List'];if(_0x327fa7[_0x2fab52('0x18')]['Contacts'][_0x2fab52('0xd')])return _0x327fa7[_0x2fab52('0x18')][_0x2fab52('0x1')][0x0];const _0x54b7ff=_[_0x2fab52('0x21')](_0xf667e7[_0x2fab52('0x10')],{'firstName':_0xf667e7[_0x2fab52('0x10')]['from'],'ListId':_0x327fa7[_0x2fab52('0x7')]});return _0x54b7ff[_0xf667e7['body'][_0x2fab52('0x1f')]]=_0xf667e7[_0x2fab52('0x10')][_0x2fab52('0x8')],db[_0x2fab52('0xf')][_0x2fab52('0x15')](_0x54b7ff);}else throw new Error(_0x2fab52('0x49'));})[_0x4efae6('0x6')](function(_0x358781){const _0x4ab791=_0x4efae6;_0x47b7e2['contact']=_0x358781;if(_0x358781){!_0xf667e7['body'][_0x4ab791('0x5c')][_0x4ab791('0x31')]&&(_0xf667e7[_0x4ab791('0x10')]['message'][_0x4ab791('0x31')]=rs['generate']()+'\x20'+_0xf667e7[_0x4ab791('0x10')][_0x4ab791('0x5c')]['from']);const _0x2beb5d={'ContactId':_0x358781['id'],'MailAccountId':_0xf667e7[_0x4ab791('0x5e')]['id'],'inReplyTo':_0xf667e7[_0x4ab791('0x10')][_0x4ab791('0x5c')]['messageId'],'to':_0xf667e7[_0x4ab791('0x10')][_0x4ab791('0x5c')][_0x4ab791('0x8')],'cc':_0xf667e7[_0x4ab791('0x10')][_0x4ab791('0x5c')]['cc'],'subject':_0xf667e7[_0x4ab791('0x10')][_0x4ab791('0x5c')][_0x4ab791('0x58')],'attach':_0xf667e7[_0x4ab791('0x10')][_0x4ab791('0x5c')][_0x4ab791('0x9')],'lastMsgAt':moment()[_0x4ab791('0x4f')](_0x4ab791('0x3f')),'lastMsgDirection':'in','lastMsgBody':_0xf667e7[_0x4ab791('0x10')][_0x4ab791('0x10')]};return db['MailInteraction']['findOne']({'where':{'closed':![],'MailAccountId':_0xf667e7[_0x4ab791('0x5e')]['id']},'include':[{'model':db[_0x4ab791('0x1a')],'as':_0x4ab791('0x1e'),'attributes':[_0x4ab791('0x31')],'where':{'messageId':_0xf667e7['body']['message'][_0x4ab791('0x5d')]}}]})[_0x4ab791('0x6')](function(_0x4f92ee){const _0x7d5215=_0x4ab791;if(_0x4f92ee)return[_0x4f92ee,![]];return db[_0x7d5215('0x42')]['create'](_0x2beb5d)[_0x7d5215('0x6')](function(_0x50ad60){return[_0x50ad60,!![]];});});}else throw new Error(_0x4ab791('0x4d'));})[_0x4efae6('0x6')](function([_0x2d2049,_0x5ac34f]){const _0x4e735f=_0x4efae6;if(_0x2d2049)return _0x68cffb=_0x5ac34f,!_0x5ac34f?_0x2d2049[_0x4e735f('0x60')]({'inReplyTo':_0xf667e7[_0x4e735f('0x10')][_0x4e735f('0x5c')]['messageId'],'to':_0xf667e7[_0x4e735f('0x10')]['message']['from'],'cc':_0xf667e7[_0x4e735f('0x10')]['message']['cc'],'subject':_0xf667e7['body']['message'][_0x4e735f('0x58')],'attach':_0x2d2049[_0x4e735f('0x9')]?_0x2d2049[_0x4e735f('0x9')]:_0xf667e7[_0x4e735f('0x10')][_0x4e735f('0x5c')][_0x4e735f('0x9')],'substatus':null,'substatusAt':moment()[_0x4e735f('0x4f')](_0x4e735f('0x3f')),'lastMsgAt':moment()[_0x4e735f('0x4f')]('YYYY-MM-DD\x20HH:mm:ss'),'lastMsgDirection':'in','lastMsgBody':_0xf667e7[_0x4e735f('0x10')][_0x4e735f('0x10')]}):_0x2d2049;})[_0x4efae6('0x6')](function(_0x371d17){const _0x37bece=_0x4efae6;return _0x47b7e2['interaction']=_0x371d17[_0x37bece('0x4b')]({'plain':!![]}),_0x47b7e2[_0x37bece('0x50')]['created']=_0x68cffb,db[_0x37bece('0x1a')]['create']({'body':_0xf667e7[_0x37bece('0x10')]['body'],'MailAccountId':_0xf667e7['account']['id'],'MailInteractionId':_0x371d17['id'],'direction':'in','ContactId':_0x47b7e2[_0x37bece('0x2f')]['id'],'messageId':_0xf667e7[_0x37bece('0x10')][_0x37bece('0x5c')][_0x37bece('0x31')],'from':_0xf667e7[_0x37bece('0x10')]['message'][_0x37bece('0x8')],'to':_0xf667e7[_0x37bece('0x10')][_0x37bece('0x5c')]['to'],'cc':_0xf667e7[_0x37bece('0x10')][_0x37bece('0x5c')]['cc'],'subject':_0xf667e7[_0x37bece('0x10')]['message'][_0x37bece('0x58')],'attach':_0xf667e7[_0x37bece('0x10')][_0x37bece('0x5c')][_0x37bece('0x9')],'Attachments':_0xf667e7[_0x37bece('0x10')][_0x37bece('0x5c')][_0x37bece('0x32')],'originTo':_0xf667e7[_0x37bece('0x10')]['message'][_0x37bece('0x33')],'originCc':_0xf667e7[_0x37bece('0x10')][_0x37bece('0x5c')][_0x37bece('0x48')],'bcc':_0xf667e7[_0x37bece('0x10')]['message'][_0x37bece('0xe')]},{'include':[{'model':db[_0x37bece('0x57')],'as':'Attachments'}]});})['then'](function(_0x59890b){const _0x4bda87=_0x4efae6;_0x47b7e2['message']=_0x59890b;if(_0x47b7e2[_0x4bda87('0x50')]['UserId'])return db[_0x4bda87('0x5a')][_0x4bda87('0x2d')]({'attributes':['id',_0x4bda87('0x51')],'where':{'id':_0x47b7e2[_0x4bda87('0x50')][_0x4bda87('0x43')]}})['then'](function(_0x2dc37d){const _0xe91533=_0x4bda87;return _0x2dc37d&&_0x47b7e2[_0xe91533('0x59')][_0xe91533('0xc')]({'id':0x0,'priority':0x0,'app':_0xe91533('0x5'),'appdata':_0x2dc37d[_0xe91533('0x51')]+','+(_0x47b7e2[_0xe91533('0x5e')][_0xe91533('0x38')]||0xa),'interval':_0xe91533('0x23')}),respondWithRpcPromise(_0xe91533('0x26'),_0xe91533('0x30'),_0x47b7e2);});return respondWithRpcPromise(_0x4bda87('0x26'),_0x4bda87('0x30'),_0x47b7e2);})['then'](function(_0x501722){_0x299226(_0x501722);})[_0x4efae6('0x16')](function(_0x25e4fc){const _0x37ce84=_0x4efae6;_0x4a33cd(_0x1685bc[_0x37ce84('0x34')](0x1f4,_0x25e4fc[_0x37ce84('0x5c')]));});});}; \ No newline at end of file +const a479_0x5adf=['rpc','Messages','attach','agent','code','*,*,*,*','interaction','mail','MailAccount','MailApplication','model','Contacts','UserId','keys','DESC','findAll','MailAccount,\x20%s,\x20%s','attachments','startRouting','MailMessage','../../config/logger','close','omit','Attachment','catch','GetMailAccount','Contact\x20not\x20found','orderBy','MailAccount,\x20%s,\x20%s,\x20%s','originTo','MailInteraction','created','info','ListId','options','YYYY-MM-DD\x20HH:mm:ss','findOne','where','includes','waitForTheAssignedAgent','include','./mailAccount.socket','register','NotifyMailAccount','subject','priority','CmList','updatedAt','result','autoclose','account','get','Applications','then','messageId','length','CompanyId','body','request\x20sent','List\x20not\x20found','map','message','Smtp','attributes','mapKey\x20is\x20mandatory,\x20please\x20use\x20one\x20of\x20these:\x20','client','isNil','limit','Start','contact','originCc','rawAttributes','push','User','raw','from','mapKey\x20invalid,\x20please\x20use\x20one\x20of\x20these:\x20','Attachments','../../rediscache','http','stringify','name','jayson/promise','randomstring','asc','difference','ShowMailAccount','CmContact','List','create','error','../../mysqldb','from\x20is\x20mandatory','applications','format','list','generate','mapKey','bcc'];(function(_0x36ce74,_0x134545){const _0x5adf95=function(_0x5260ba){while(--_0x5260ba){_0x36ce74['push'](_0x36ce74['shift']());}};_0x5adf95(++_0x134545);}(a479_0x5adf,0x17c));const a479_0x5260=function(_0x36ce74,_0x134545){_0x36ce74=_0x36ce74-0x92;let _0x5adf95=a479_0x5adf[_0x36ce74];return _0x5adf95;};const a479_0x28f242=a479_0x5260;'use strict';const _=require('lodash'),db=require(a479_0x28f242(0x9a))['db'],logger=require(a479_0x28f242(0xb6))(a479_0x28f242(0xa2)),{getSocket}=require(a479_0x28f242(0xf0)),socket=getSocket(),rs=require(a479_0x28f242(0x92)),moment=require('moment'),jayson=require(a479_0x28f242(0xf4)),client=jayson[a479_0x28f242(0xe3)][a479_0x28f242(0xf1)]({'port':0x232c});require(a479_0x28f242(0xcb))[a479_0x28f242(0xcc)](socket);function respondWithRpcPromise(_0x50e895,_0x2a919c,_0x4fe7f2){return new Promise(function(_0x3f6024,_0x42b2ed){return client['request'](_0x50e895,_0x4fe7f2)['then'](function(_0x907aa7){const _0x56d8f7=a479_0x5260;logger[_0x56d8f7(0xc2)]('MailAccount,\x20%s,\x20%s',_0x2a919c,_0x56d8f7(0xdc)),logger['debug'](_0x56d8f7(0xbe),_0x2a919c,_0x56d8f7(0xdc),JSON['stringify'](_0x907aa7));if(_0x907aa7[_0x56d8f7(0x99)]){if(_0x907aa7[_0x56d8f7(0x99)][_0x56d8f7(0xa6)]===0x1f4)return logger[_0x56d8f7(0x99)](_0x56d8f7(0xb2),_0x2a919c,_0x907aa7[_0x56d8f7(0x99)][_0x56d8f7(0xdf)]),_0x42b2ed(_0x907aa7[_0x56d8f7(0x99)][_0x56d8f7(0xdf)]);return logger['error'](_0x56d8f7(0xb2),_0x2a919c,_0x907aa7[_0x56d8f7(0x99)][_0x56d8f7(0xdf)]),_0x3f6024(_0x907aa7[_0x56d8f7(0x99)]['message']);}else logger[_0x56d8f7(0xc2)](_0x56d8f7(0xb2),_0x2a919c,'request\x20sent'),_0x3f6024(_0x907aa7[_0x56d8f7(0xd2)][_0x56d8f7(0xdf)]);})['catch'](function(_0x4b2e61){const _0x2e0799=a479_0x5260;logger[_0x2e0799(0x99)](_0x2e0799(0xb2),_0x2a919c,_0x4b2e61),_0x42b2ed(_0x4b2e61);});});}exports['GetMailAccount']=function(_0x4e0ddb){const _0x1847de=this;return new Promise(function(_0x2c68fc,_0x173817){const _0x11aa54=a479_0x5260;return db['MailAccount'][_0x11aa54(0xb1)]({'raw':_0x4e0ddb['options']?_0x4e0ddb[_0x11aa54(0xc4)][_0x11aa54(0xec)]===undefined?!![]:![]:!![],'where':_0x4e0ddb[_0x11aa54(0xc4)]?_0x4e0ddb[_0x11aa54(0xc4)][_0x11aa54(0xc7)]||null:null,'attributes':_0x4e0ddb[_0x11aa54(0xc4)]?_0x4e0ddb['options']['attributes']||null:null,'limit':_0x4e0ddb[_0x11aa54(0xc4)]?_0x4e0ddb[_0x11aa54(0xc4)][_0x11aa54(0xe5)]||null:null,'include':_0x4e0ddb['options']?_0x4e0ddb[_0x11aa54(0xc4)][_0x11aa54(0xca)]?_[_0x11aa54(0xde)](_0x4e0ddb[_0x11aa54(0xc4)][_0x11aa54(0xca)],function(_0x5ae2d7){const _0x1c5a7b=_0x11aa54;return{'model':db[_0x5ae2d7[_0x1c5a7b(0xac)]],'as':_0x5ae2d7['as'],'attributes':_0x5ae2d7[_0x1c5a7b(0xe1)],'include':_0x5ae2d7[_0x1c5a7b(0xca)]?_[_0x1c5a7b(0xde)](_0x5ae2d7[_0x1c5a7b(0xca)],function(_0x422216){const _0x565910=_0x1c5a7b;return{'model':db[_0x422216['model']],'as':_0x422216['as'],'attributes':_0x422216[_0x565910(0xe1)],'include':_0x422216[_0x565910(0xca)]?_[_0x565910(0xde)](_0x422216['include'],function(_0xad7130){const _0x2072cf=_0x565910;return{'model':db[_0xad7130[_0x2072cf(0xac)]],'as':_0xad7130['as'],'attributes':_0xad7130['attributes']};}):[]};}):[]};}):[]:[]})[_0x11aa54(0xd7)](function(_0x4a01d1){const _0x3fe85d=_0x11aa54;logger['info']('GetMailAccount',_0x4e0ddb),logger['debug'](_0x3fe85d(0xbb),_0x4e0ddb,JSON['stringify'](_0x4a01d1)),_0x2c68fc(_0x4a01d1);})[_0x11aa54(0xba)](function(_0x5f2ca5){const _0x11e02e=_0x11aa54;logger['error'](_0x11e02e(0xbb),_0x5f2ca5[_0x11e02e(0xdf)],_0x4e0ddb),_0x173817(_0x1847de[_0x11e02e(0x99)](0x1f4,_0x5f2ca5[_0x11e02e(0xdf)]));});});},exports[a479_0x28f242(0x95)]=function(_0x141780){const _0x373b6c=this;return new Promise(function(_0x1542ed,_0x157cfe){const _0x1dc1ed=a479_0x5260;return db[_0x1dc1ed(0xaa)][_0x1dc1ed(0xc6)]({'raw':_0x141780['options']?_0x141780[_0x1dc1ed(0xc4)][_0x1dc1ed(0xec)]===undefined?!![]:![]:!![],'where':_0x141780[_0x1dc1ed(0xc4)]?_0x141780['options'][_0x1dc1ed(0xc7)]||null:null,'attributes':_0x141780[_0x1dc1ed(0xc4)]?_0x141780['options']['attributes']||null:null,'include':_0x141780[_0x1dc1ed(0xc4)]?_0x141780[_0x1dc1ed(0xc4)][_0x1dc1ed(0xca)]?_[_0x1dc1ed(0xde)](_0x141780['options']['include'],function(_0x20ce94){const _0x5734ad=_0x1dc1ed;return{'model':db[_0x20ce94[_0x5734ad(0xac)]],'as':_0x20ce94['as'],'attributes':_0x20ce94[_0x5734ad(0xe1)],'include':_0x20ce94[_0x5734ad(0xca)]?_[_0x5734ad(0xde)](_0x20ce94[_0x5734ad(0xca)],function(_0x302763){const _0x57ee80=_0x5734ad;return{'model':db[_0x302763[_0x57ee80(0xac)]],'as':_0x302763['as'],'attributes':_0x302763[_0x57ee80(0xe1)],'include':_0x302763[_0x57ee80(0xca)]?_[_0x57ee80(0xde)](_0x302763[_0x57ee80(0xca)],function(_0x3663eb){const _0x2a567f=_0x57ee80;return{'model':db[_0x3663eb[_0x2a567f(0xac)]],'as':_0x3663eb['as'],'attributes':_0x3663eb['attributes']};}):[]};}):[]};}):[]:[]})[_0x1dc1ed(0xd7)](function(_0x146ba7){const _0xdbcea9=_0x1dc1ed;logger[_0xdbcea9(0xc2)]('ShowMailAccount',_0x141780),logger['debug'](_0xdbcea9(0x95),_0x141780,JSON[_0xdbcea9(0xf2)](_0x146ba7)),_0x1542ed(_0x146ba7);})['catch'](function(_0x377f24){const _0x32b44f=_0x1dc1ed;logger[_0x32b44f(0x99)](_0x32b44f(0x95),_0x377f24['message'],_0x141780),_0x157cfe(_0x373b6c[_0x32b44f(0x99)](0x1f4,_0x377f24[_0x32b44f(0xdf)]));});});},exports[a479_0x28f242(0xcd)]=function(_0x178e0e){const _0x26a004=this;return new Promise(function(_0x1aa9df,_0x1b3de7){const _0xd61772=a479_0x5260,_0x50b600={'body':_0x178e0e[_0xd61772(0xdb)],'channel':_0xd61772(0xa9)},_0x5660df=_[_0xd61772(0x94)](_[_0xd61772(0xaf)](db['CmContact'][_0xd61772(0xe9)]),['createdAt','updatedAt',_0xd61772(0xda),'ListId']);let _0x544168=![];_0x178e0e[_0xd61772(0xdb)]['id']&&delete _0x178e0e[_0xd61772(0xdb)]['id'];if(_['isNil'](_0x178e0e['body'][_0xd61772(0xed)]))return _0x1b3de7(_0x26a004['error'](0x1f4,_0xd61772(0x9b)));if(_['isNil'](_0x178e0e[_0xd61772(0xdb)]['body'])||_0x178e0e[_0xd61772(0xdb)]['body']==='')return _0x1b3de7(_0x26a004[_0xd61772(0x99)](0x1f4,'body\x20is\x20mandatory\x20and\x20not\x20empty'));if(_[_0xd61772(0xe4)](_0x178e0e[_0xd61772(0xdb)][_0xd61772(0xa0)]))return _0x1b3de7(_0x26a004[_0xd61772(0x99)](0x1f4,_0xd61772(0xe2)+_0x5660df));if(!_[_0xd61772(0xc8)](_0x5660df,_0x178e0e[_0xd61772(0xdb)][_0xd61772(0xa0)]))return _0x1b3de7(_0x26a004['error'](0x1f4,_0xd61772(0xee)+_0x5660df));const _0x17ab61={};return _0x17ab61[_0x178e0e[_0xd61772(0xdb)][_0xd61772(0xa0)]]=_0x178e0e[_0xd61772(0xdb)][_0xd61772(0xed)],db['MailAccount'][_0xd61772(0xc6)]({'where':{'id':_0x178e0e[_0xd61772(0xd4)]['id']},'include':[{'model':db[_0xd61772(0xd0)],'as':_0xd61772(0x97),'include':[{'model':db[_0xd61772(0x96)],'as':_0xd61772(0xad),'where':_0x17ab61,'limit':0x1,'order':[[_0xd61772(0xd1),_0xd61772(0xb0)]]}]},{'model':db[_0xd61772(0xab)],'as':'Applications'},{'model':db['MailServerOut'],'as':_0xd61772(0xe0)}]})[_0xd61772(0xd7)](function(_0x30c642){const _0x2b5f56=_0xd61772;if(_0x30c642&&_0x30c642[_0x2b5f56(0x97)]){const _0x3ef70f=_0x30c642[_0x2b5f56(0xd5)]({'plain':!![]});_0x50b600[_0x2b5f56(0xd4)]=_[_0x2b5f56(0xb8)](_0x3ef70f,[_0x2b5f56(0xd6),'List']),_0x50b600['applications']=_0x3ef70f[_0x2b5f56(0xd6)],_0x50b600[_0x2b5f56(0x9e)]=_0x3ef70f['List'],_0x50b600['applications']=_[_0x2b5f56(0xbd)](_0x50b600[_0x2b5f56(0x9c)],[_0x2b5f56(0xcf)],[_0x2b5f56(0x93)]);_0x50b600[_0x2b5f56(0xd4)]&&_0x50b600[_0x2b5f56(0xd4)]['autoclose']&&_0x50b600['applications'][_0x2b5f56(0xea)]({'id':0x0,'priority':_0x50b600[_0x2b5f56(0x9c)][_0x2b5f56(0xd9)]+0x1,'app':_0x2b5f56(0xb7),'appdata':_0x2b5f56(0xd3),'interval':'*,*,*,*'});_0x50b600[_0x2b5f56(0xd4)][_0x2b5f56(0xd6)]&&delete _0x50b600[_0x2b5f56(0xd4)][_0x2b5f56(0xd6)];_0x50b600['account'][_0x2b5f56(0x97)]&&delete _0x50b600[_0x2b5f56(0xd4)]['List'];if(_0x3ef70f[_0x2b5f56(0x97)][_0x2b5f56(0xad)][_0x2b5f56(0xd9)])return _0x3ef70f[_0x2b5f56(0x97)]['Contacts'][0x0];const _0x189809=_['defaults'](_0x178e0e[_0x2b5f56(0xdb)],{'firstName':_0x178e0e[_0x2b5f56(0xdb)]['from'],'ListId':_0x3ef70f[_0x2b5f56(0xc3)]});return _0x189809[_0x178e0e[_0x2b5f56(0xdb)][_0x2b5f56(0xa0)]]=_0x178e0e[_0x2b5f56(0xdb)][_0x2b5f56(0xed)],db[_0x2b5f56(0x96)][_0x2b5f56(0x98)](_0x189809);}else throw new Error(_0x2b5f56(0xdd));})['then'](function(_0xa760e4){const _0xa754c0=_0xd61772;_0x50b600[_0xa754c0(0xe7)]=_0xa760e4;if(_0xa760e4){!_0x178e0e[_0xa754c0(0xdb)]['message'][_0xa754c0(0xd8)]&&(_0x178e0e[_0xa754c0(0xdb)][_0xa754c0(0xdf)][_0xa754c0(0xd8)]=rs[_0xa754c0(0x9f)]()+'\x20'+_0x178e0e[_0xa754c0(0xdb)][_0xa754c0(0xdf)][_0xa754c0(0xed)]);const _0x6b69fe={'ContactId':_0xa760e4['id'],'MailAccountId':_0x178e0e['account']['id'],'inReplyTo':_0x178e0e['body'][_0xa754c0(0xdf)]['messageId'],'to':_0x178e0e[_0xa754c0(0xdb)][_0xa754c0(0xdf)]['from'],'cc':_0x178e0e[_0xa754c0(0xdb)][_0xa754c0(0xdf)]['cc'],'subject':_0x178e0e[_0xa754c0(0xdb)][_0xa754c0(0xdf)]['subject'],'attach':_0x178e0e['body'][_0xa754c0(0xdf)][_0xa754c0(0xa4)],'lastMsgAt':moment()[_0xa754c0(0x9d)](_0xa754c0(0xc5)),'lastMsgDirection':'in','lastMsgBody':_0x178e0e[_0xa754c0(0xdb)][_0xa754c0(0xdb)]};return db[_0xa754c0(0xc0)][_0xa754c0(0xc6)]({'where':{'closed':![],'MailAccountId':_0x178e0e['account']['id']},'include':[{'model':db[_0xa754c0(0xb5)],'as':_0xa754c0(0xa3),'attributes':[_0xa754c0(0xd8)],'where':{'messageId':_0x178e0e['body'][_0xa754c0(0xdf)]['inReplyTo']}}]})[_0xa754c0(0xd7)](function(_0x40e539){const _0x4f6da6=_0xa754c0;if(_0x40e539)return[_0x40e539,![]];return db['MailInteraction'][_0x4f6da6(0x98)](_0x6b69fe)[_0x4f6da6(0xd7)](function(_0x3e5928){return[_0x3e5928,!![]];});});}else throw new Error(_0xa754c0(0xbc));})[_0xd61772(0xd7)](function([_0x576ef8,_0x312865]){const _0x4b437f=_0xd61772;if(_0x576ef8)return _0x544168=_0x312865,!_0x312865?_0x576ef8['update']({'inReplyTo':_0x178e0e[_0x4b437f(0xdb)][_0x4b437f(0xdf)][_0x4b437f(0xd8)],'to':_0x178e0e[_0x4b437f(0xdb)][_0x4b437f(0xdf)][_0x4b437f(0xed)],'cc':_0x178e0e[_0x4b437f(0xdb)][_0x4b437f(0xdf)]['cc'],'subject':_0x178e0e[_0x4b437f(0xdb)][_0x4b437f(0xdf)]['subject'],'attach':_0x576ef8[_0x4b437f(0xa4)]?_0x576ef8[_0x4b437f(0xa4)]:_0x178e0e[_0x4b437f(0xdb)][_0x4b437f(0xdf)][_0x4b437f(0xa4)],'substatus':null,'substatusAt':moment()['format']('YYYY-MM-DD\x20HH:mm:ss'),'lastMsgAt':moment()[_0x4b437f(0x9d)](_0x4b437f(0xc5)),'lastMsgDirection':'in','lastMsgBody':_0x178e0e[_0x4b437f(0xdb)][_0x4b437f(0xdb)]}):_0x576ef8;})['then'](function(_0x4d4df7){const _0x39d1df=_0xd61772;return _0x50b600[_0x39d1df(0xa8)]=_0x4d4df7[_0x39d1df(0xd5)]({'plain':!![]}),_0x50b600['interaction'][_0x39d1df(0xc1)]=_0x544168,db[_0x39d1df(0xb5)]['create']({'body':_0x178e0e['body']['body'],'MailAccountId':_0x178e0e['account']['id'],'MailInteractionId':_0x4d4df7['id'],'direction':'in','ContactId':_0x50b600['contact']['id'],'messageId':_0x178e0e[_0x39d1df(0xdb)][_0x39d1df(0xdf)][_0x39d1df(0xd8)],'from':_0x178e0e[_0x39d1df(0xdb)][_0x39d1df(0xdf)]['from'],'to':_0x178e0e['body']['message']['to'],'cc':_0x178e0e[_0x39d1df(0xdb)]['message']['cc'],'subject':_0x178e0e['body'][_0x39d1df(0xdf)][_0x39d1df(0xce)],'attach':_0x178e0e[_0x39d1df(0xdb)]['message'][_0x39d1df(0xa4)],'Attachments':_0x178e0e['body'][_0x39d1df(0xdf)][_0x39d1df(0xb3)],'originTo':_0x178e0e[_0x39d1df(0xdb)]['message'][_0x39d1df(0xbf)],'originCc':_0x178e0e['body'][_0x39d1df(0xdf)][_0x39d1df(0xe8)],'bcc':_0x178e0e[_0x39d1df(0xdb)]['message'][_0x39d1df(0xa1)]},{'include':[{'model':db[_0x39d1df(0xb9)],'as':_0x39d1df(0xef)}]});})[_0xd61772(0xd7)](function(_0x2dae74){const _0x102eb4=_0xd61772;_0x50b600[_0x102eb4(0xdf)]=_0x2dae74;if(_0x50b600[_0x102eb4(0xa8)][_0x102eb4(0xae)])return db[_0x102eb4(0xeb)]['findOne']({'attributes':['id',_0x102eb4(0xf3)],'where':{'id':_0x50b600[_0x102eb4(0xa8)][_0x102eb4(0xae)]}})[_0x102eb4(0xd7)](function(_0x7e43f8){const _0xe5f438=_0x102eb4;return _0x7e43f8&&_0x50b600['applications']['unshift']({'id':0x0,'priority':0x0,'app':_0xe5f438(0xa5),'appdata':_0x7e43f8['name']+','+(_0x50b600[_0xe5f438(0xd4)][_0xe5f438(0xc9)]||0xa),'interval':_0xe5f438(0xa7)}),respondWithRpcPromise(_0xe5f438(0xe6),_0xe5f438(0xb4),_0x50b600);});return respondWithRpcPromise(_0x102eb4(0xe6),_0x102eb4(0xb4),_0x50b600);})[_0xd61772(0xd7)](function(_0x58a79e){_0x1aa9df(_0x58a79e);})['catch'](function(_0x3c05a1){const _0x1b7966=_0xd61772;_0x1b3de7(_0x26a004[_0x1b7966(0x99)](0x1f4,_0x3c05a1[_0x1b7966(0xdf)]));});});}; \ No newline at end of file diff --git a/server/api/mailAccount/mailAccount.socket.js b/server/api/mailAccount/mailAccount.socket.js index 7e4a9fb..c81be57 100644 --- a/server/api/mailAccount/mailAccount.socket.js +++ b/server/api/mailAccount/mailAccount.socket.js @@ -1 +1 @@ -const a398_0x9dcd=['emit','./mailAccount.events','length','save','update','mailAccount:','register'];(function(_0x3953f1,_0x9dcd51){const _0xe12ab5=function(_0xfe8521){while(--_0xfe8521){_0x3953f1['push'](_0x3953f1['shift']());}};_0xe12ab5(++_0x9dcd51);}(a398_0x9dcd,0x139));const a398_0xe12a=function(_0x3953f1,_0x9dcd51){_0x3953f1=_0x3953f1-0x0;let _0xe12ab5=a398_0x9dcd[_0x3953f1];return _0xe12ab5;};const _0x15963e=a398_0xe12a;'use strict';const MailAccountEvents=require(_0x15963e('0x3')),events=[_0x15963e('0x5'),'remove',_0x15963e('0x6')];function createListener(_0xfe8521,_0x1ec4dd){return function(_0x1810e7){const _0x4f7192=a398_0xe12a;_0x1ec4dd[_0x4f7192('0x2')](_0xfe8521,_0x1810e7);};}exports[_0x15963e('0x1')]=function(_0x4c129c){const _0x5a3f35=_0x15963e;for(let _0x3f67aa=0x0,_0x1d62b6=events[_0x5a3f35('0x4')];_0x3f67aa<_0x1d62b6;_0x3f67aa++){const _0x3ad173=events[_0x3f67aa],_0x4a7b22=createListener(_0x5a3f35('0x0')+_0x3ad173,_0x4c129c);MailAccountEvents['on'](_0x3ad173,_0x4a7b22);}}; \ No newline at end of file +const a480_0xb8b8=['emit','./mailAccount.events','remove','length','mailAccount:','update','save','register'];(function(_0x5634d3,_0x3c1fcd){const _0xb8b8b4=function(_0x156dd9){while(--_0x156dd9){_0x5634d3['push'](_0x5634d3['shift']());}};_0xb8b8b4(++_0x3c1fcd);}(a480_0xb8b8,0xca));const a480_0x156d=function(_0x5634d3,_0x3c1fcd){_0x5634d3=_0x5634d3-0x18e;let _0xb8b8b4=a480_0xb8b8[_0x5634d3];return _0xb8b8b4;};const a480_0x445be5=a480_0x156d;'use strict';const MailAccountEvents=require(a480_0x445be5(0x195)),events=[a480_0x445be5(0x192),a480_0x445be5(0x18e),a480_0x445be5(0x191)];function createListener(_0x148ed9,_0x408b5e){return function(_0x3b9b4c){const _0x557c7a=a480_0x156d;_0x408b5e[_0x557c7a(0x194)](_0x148ed9,_0x3b9b4c);};}exports[a480_0x445be5(0x193)]=function(_0x5f54e8){const _0x446d07=a480_0x445be5;for(let _0x2db5dd=0x0,_0x3b19f7=events[_0x446d07(0x18f)];_0x2db5dd<_0x3b19f7;_0x2db5dd++){const _0x4d6c23=events[_0x2db5dd],_0x5d8010=createListener(_0x446d07(0x190)+_0x4d6c23,_0x5f54e8);MailAccountEvents['on'](_0x4d6c23,_0x5d8010);}}; \ No newline at end of file diff --git a/server/api/mailApplication/index.js b/server/api/mailApplication/index.js index 4639938..c6688c1 100644 --- a/server/api/mailApplication/index.js +++ b/server/api/mailApplication/index.js @@ -1 +1 @@ -const a399_0x2a65=['./mailApplication.controller','delete','show','/:id','isAuthenticated','exports','Router','put','update','express','destroy'];(function(_0x270102,_0x2a6514){const _0x17c012=function(_0x258b31){while(--_0x258b31){_0x270102['push'](_0x270102['shift']());}};_0x17c012(++_0x2a6514);}(a399_0x2a65,0x18d));const a399_0x17c0=function(_0x270102,_0x2a6514){_0x270102=_0x270102-0x0;let _0x17c012=a399_0x2a65[_0x270102];return _0x17c012;};const _0x4a7cc9=a399_0x17c0;'use strict';const express=require(_0x4a7cc9('0x8')),router=express[_0x4a7cc9('0x5')](),auth=require('../../components/auth/service'),controller=require(_0x4a7cc9('0xa'));router['get'](_0x4a7cc9('0x2'),auth[_0x4a7cc9('0x3')](),controller[_0x4a7cc9('0x1')]),router[_0x4a7cc9('0x6')]('/:id',auth[_0x4a7cc9('0x3')](),controller[_0x4a7cc9('0x7')]),router[_0x4a7cc9('0x0')](_0x4a7cc9('0x2'),auth['isAuthenticated'](),controller[_0x4a7cc9('0x9')]),module[_0x4a7cc9('0x4')]=router; \ No newline at end of file +const a481_0x80a7=['exports','update','destroy','../../components/auth/service','delete','/:id','isAuthenticated'];(function(_0x18a315,_0x35a346){const _0x80a70e=function(_0x2097c4){while(--_0x2097c4){_0x18a315['push'](_0x18a315['shift']());}};_0x80a70e(++_0x35a346);}(a481_0x80a7,0x97));const a481_0x2097=function(_0x18a315,_0x35a346){_0x18a315=_0x18a315-0x128;let _0x80a70e=a481_0x80a7[_0x18a315];return _0x80a70e;};const a481_0x373b22=a481_0x2097;'use strict';const express=require('express'),router=express['Router'](),auth=require(a481_0x373b22(0x12e)),controller=require('./mailApplication.controller');router['get'](a481_0x373b22(0x129),auth[a481_0x373b22(0x12a)](),controller['show']),router['put'](a481_0x373b22(0x129),auth['isAuthenticated'](),controller[a481_0x373b22(0x12c)]),router[a481_0x373b22(0x128)]('/:id',auth[a481_0x373b22(0x12a)](),controller[a481_0x373b22(0x12d)]),module[a481_0x373b22(0x12b)]=router; \ No newline at end of file diff --git a/server/api/mailApplication/mailApplication.attributes.js b/server/api/mailApplication/mailApplication.attributes.js index 5012e2a..2bbe52f 100644 --- a/server/api/mailApplication/mailApplication.attributes.js +++ b/server/api/mailApplication/mailApplication.attributes.js @@ -1 +1 @@ -const a400_0x5809=['TEXT','sequelize','exports','STRING','INTEGER'];(function(_0x3cab9a,_0x580989){const _0x19262e=function(_0x3ef601){while(--_0x3ef601){_0x3cab9a['push'](_0x3cab9a['shift']());}};_0x19262e(++_0x580989);}(a400_0x5809,0x1c2));const a400_0x1926=function(_0x3cab9a,_0x580989){_0x3cab9a=_0x3cab9a-0x0;let _0x19262e=a400_0x5809[_0x3cab9a];return _0x19262e;};const _0x5e2cb6=a400_0x1926;'use strict';const Sequelize=require(_0x5e2cb6('0x1'));module[_0x5e2cb6('0x2')]={'priority':{'type':Sequelize[_0x5e2cb6('0x4')],'allowNull':![]},'app':{'type':Sequelize[_0x5e2cb6('0x3')],'allowNull':![],'defaultValue':'noop'},'appdata':{'type':Sequelize[_0x5e2cb6('0x0')]()},'description':{'type':Sequelize['STRING']},'interval':{'type':Sequelize[_0x5e2cb6('0x3')],'defaultValue':'*,*,*,*'}}; \ No newline at end of file +const a482_0x5cef=['STRING','noop','*,*,*,*','exports','sequelize'];(function(_0x73f8b2,_0x17b73f){const _0x5cef58=function(_0x3867ed){while(--_0x3867ed){_0x73f8b2['push'](_0x73f8b2['shift']());}};_0x5cef58(++_0x17b73f);}(a482_0x5cef,0x1f3));const a482_0x3867=function(_0x73f8b2,_0x17b73f){_0x73f8b2=_0x73f8b2-0x137;let _0x5cef58=a482_0x5cef[_0x73f8b2];return _0x5cef58;};const a482_0x5c9e43=a482_0x3867;'use strict';const {DataTypes}=require(a482_0x5c9e43(0x137)),attributes={'priority':{'type':DataTypes['INTEGER'],'allowNull':![]},'app':{'type':DataTypes[a482_0x5c9e43(0x138)],'allowNull':![],'defaultValue':a482_0x5c9e43(0x139)},'appdata':{'type':DataTypes['TEXT']()},'description':{'type':DataTypes['STRING']},'interval':{'type':DataTypes[a482_0x5c9e43(0x138)],'defaultValue':a482_0x5c9e43(0x13a)}};module[a482_0x5c9e43(0x13b)]['attributes']=attributes; \ No newline at end of file diff --git a/server/api/mailApplication/mailApplication.controller.js b/server/api/mailApplication/mailApplication.controller.js index 8578a35..f66f809 100644 --- a/server/api/mailApplication/mailApplication.controller.js +++ b/server/api/mailApplication/mailApplication.controller.js @@ -1 +1 @@ -const a401_0x1c57=['api','error','includeAll','merge','model','body','status','destroy','fields','lodash','query','stack','end','length','then','params','findOne','attributes','name','keys','update','intersection','catch','../../config/logger','options','../../components/parsers/qs','MailApplication','include'];(function(_0x49a78c,_0x1c57bb){const _0x26f77e=function(_0x50cd21){while(--_0x50cd21){_0x49a78c['push'](_0x49a78c['shift']());}};_0x26f77e(++_0x1c57bb);}(a401_0x1c57,0x14a));const a401_0x26f7=function(_0x49a78c,_0x1c57bb){_0x49a78c=_0x49a78c-0x0;let _0x26f77e=a401_0x1c57[_0x49a78c];return _0x26f77e;};const _0x2a6c8a=a401_0x26f7;'use strict';const _=require(_0x2a6c8a('0xf')),qs=require(_0x2a6c8a('0x3')),logger=require(_0x2a6c8a('0x1'))(_0x2a6c8a('0x6')),db=require('../../mysqldb')['db'];function respondWithResult(_0x50cd21,_0xa6d83b){return _0xa6d83b=_0xa6d83b||0xc8,function(_0xff7d25){if(_0xff7d25)return _0x50cd21['status'](_0xa6d83b)['json'](_0xff7d25);};}function saveUpdates(_0x8893b2){return function(_0x3badca){const _0x3f38c4=a401_0x26f7;if(_0x3badca)return _0x3badca['update'](_0x8893b2)[_0x3f38c4('0x14')](function(_0x21eabd){return _0x21eabd;});return null;};}function removeEntity(_0x499877){return function(_0xd070a2){const _0xc4ca0f=a401_0x26f7;if(_0xd070a2)return _0xd070a2[_0xc4ca0f('0xd')]()[_0xc4ca0f('0x14')](function(){const _0x48c079=_0xc4ca0f;_0x499877['status'](0xcc)[_0x48c079('0x12')]();});};}function handleEntityNotFound(_0x2b0123){return function(_0x2384da){return!_0x2384da&&_0x2b0123['sendStatus'](0x194),_0x2384da;};}function handleError(_0x468afa,_0x4d39e2){return _0x4d39e2=_0x4d39e2||0x1f4,function(_0x5401bf){const _0x371bb1=a401_0x26f7;logger[_0x371bb1('0x7')](_0x5401bf[_0x371bb1('0x11')]),_0x5401bf[_0x371bb1('0x18')]&&delete _0x5401bf[_0x371bb1('0x18')],_0x468afa[_0x371bb1('0xc')](_0x4d39e2)['send'](_0x5401bf);};}exports['show']=function(_0x2e73f9,_0x2e8805){const _0x1939ed=_0x2a6c8a;let _0x2b6c64={'raw':!![],'where':{'id':_0x2e73f9['params']['id']}};const _0x41dc3f={};return _0x41dc3f['model']=_[_0x1939ed('0x19')](db[_0x1939ed('0x4')]['rawAttributes']),_0x41dc3f[_0x1939ed('0x10')]=_[_0x1939ed('0x19')](_0x2e73f9['query']),_0x41dc3f['filters']=_['intersection'](_0x41dc3f[_0x1939ed('0xa')],_0x41dc3f[_0x1939ed('0x10')]),_0x2b6c64[_0x1939ed('0x17')]=_[_0x1939ed('0x1b')](_0x41dc3f[_0x1939ed('0xa')],qs[_0x1939ed('0xe')](_0x2e73f9[_0x1939ed('0x10')][_0x1939ed('0xe')])),_0x2b6c64[_0x1939ed('0x17')]=_0x2b6c64[_0x1939ed('0x17')][_0x1939ed('0x13')]?_0x2b6c64[_0x1939ed('0x17')]:_0x41dc3f[_0x1939ed('0xa')],_0x2e73f9[_0x1939ed('0x10')][_0x1939ed('0x8')]&&(_0x2b6c64[_0x1939ed('0x5')]=[{'all':!![]}]),_0x2b6c64=_[_0x1939ed('0x9')]({},_0x2b6c64,_0x2e73f9[_0x1939ed('0x2')]),db[_0x1939ed('0x4')][_0x1939ed('0x16')](_0x2b6c64)[_0x1939ed('0x14')](handleEntityNotFound(_0x2e8805,null))['then'](respondWithResult(_0x2e8805,null))['catch'](handleError(_0x2e8805,null));},exports[_0x2a6c8a('0x1a')]=function(_0x3de17b,_0x249ac2){const _0x13a383=_0x2a6c8a;return _0x3de17b[_0x13a383('0xb')]['id']&&delete _0x3de17b[_0x13a383('0xb')]['id'],db['MailApplication'][_0x13a383('0x16')]({'where':{'id':_0x3de17b[_0x13a383('0x15')]['id']}})['then'](handleEntityNotFound(_0x249ac2,null))['then'](saveUpdates(_0x3de17b[_0x13a383('0xb')],null))['then'](respondWithResult(_0x249ac2,null))[_0x13a383('0x0')](handleError(_0x249ac2,null));},exports[_0x2a6c8a('0xd')]=function(_0x12da94,_0x11d511){const _0x1cb4eb=_0x2a6c8a;return db[_0x1cb4eb('0x4')][_0x1cb4eb('0x16')]({'where':{'id':_0x12da94[_0x1cb4eb('0x15')]['id']}})['then'](handleEntityNotFound(_0x11d511,null))[_0x1cb4eb('0x14')](removeEntity(_0x11d511,null))[_0x1cb4eb('0x0')](handleError(_0x11d511,null));}; \ No newline at end of file +const a483_0x4e99=['end','status','merge','length','name','../../components/parsers/qs','send','../../config/logger','filters','options','model','json','attributes','show','fields','query','body','api','update','then','intersection','lodash','params','sendStatus','catch','MailApplication','include','findOne','../../mysqldb','error','keys','destroy'];(function(_0x4f6114,_0x4c7e32){const _0x4e99f0=function(_0x499695){while(--_0x499695){_0x4f6114['push'](_0x4f6114['shift']());}};_0x4e99f0(++_0x4c7e32);}(a483_0x4e99,0xbd));const a483_0x4996=function(_0x4f6114,_0x4c7e32){_0x4f6114=_0x4f6114-0xcb;let _0x4e99f0=a483_0x4e99[_0x4f6114];return _0x4e99f0;};const a483_0x42c08f=a483_0x4996;'use strict';const _=require(a483_0x42c08f(0xe3)),qs=require(a483_0x42c08f(0xd3)),logger=require(a483_0x42c08f(0xd5))(a483_0x42c08f(0xdf)),{db}=require(a483_0x42c08f(0xea));function respondWithResult(_0xeb9d33,_0x2b049d){return _0x2b049d=_0x2b049d||0xc8,function(_0x56df70){const _0x3d95a5=a483_0x4996;if(_0x56df70)return _0xeb9d33[_0x3d95a5(0xcf)](_0x2b049d)[_0x3d95a5(0xd9)](_0x56df70);};}function saveUpdates(_0x147ce2){return function(_0x234a4a){const _0x3e24d5=a483_0x4996;if(_0x234a4a)return _0x234a4a[_0x3e24d5(0xe0)](_0x147ce2)['then'](function(_0x232969){return _0x232969;});return null;};}function removeEntity(_0x345284){return function(_0x1f03dc){const _0x548292=a483_0x4996;if(_0x1f03dc)return _0x1f03dc[_0x548292(0xcd)]()[_0x548292(0xe1)](function(){const _0x465413=_0x548292;_0x345284[_0x465413(0xcf)](0xcc)[_0x465413(0xce)]();});};}function handleEntityNotFound(_0x53ae0a){return function(_0x300f44){const _0x3f370c=a483_0x4996;return!_0x300f44&&_0x53ae0a[_0x3f370c(0xe5)](0x194),_0x300f44;};}function handleError(_0x3e0abe,_0x48bf42){return _0x48bf42=_0x48bf42||0x1f4,function(_0x445dc2){const _0x29f160=a483_0x4996;logger[_0x29f160(0xcb)](_0x445dc2['stack']),_0x445dc2[_0x29f160(0xd2)]&&delete _0x445dc2[_0x29f160(0xd2)],_0x3e0abe[_0x29f160(0xcf)](_0x48bf42)[_0x29f160(0xd4)](_0x445dc2);};}exports[a483_0x42c08f(0xdb)]=function(_0x4ad6d3,_0x238db3){const _0x10603e=a483_0x42c08f;let _0x3df182={'raw':!![],'where':{'id':_0x4ad6d3['params']['id']}};const _0x4caeab={};return _0x4caeab['model']=_['keys'](db[_0x10603e(0xe7)]['rawAttributes']),_0x4caeab[_0x10603e(0xdd)]=_[_0x10603e(0xcc)](_0x4ad6d3[_0x10603e(0xdd)]),_0x4caeab[_0x10603e(0xd6)]=_[_0x10603e(0xe2)](_0x4caeab[_0x10603e(0xd8)],_0x4caeab[_0x10603e(0xdd)]),_0x3df182['attributes']=_[_0x10603e(0xe2)](_0x4caeab[_0x10603e(0xd8)],qs[_0x10603e(0xdc)](_0x4ad6d3['query'][_0x10603e(0xdc)])),_0x3df182[_0x10603e(0xda)]=_0x3df182[_0x10603e(0xda)][_0x10603e(0xd1)]?_0x3df182[_0x10603e(0xda)]:_0x4caeab[_0x10603e(0xd8)],_0x4ad6d3[_0x10603e(0xdd)]['includeAll']&&(_0x3df182[_0x10603e(0xe8)]=[{'all':!![]}]),_0x3df182=_[_0x10603e(0xd0)]({},_0x3df182,_0x4ad6d3[_0x10603e(0xd7)]),db[_0x10603e(0xe7)]['findOne'](_0x3df182)[_0x10603e(0xe1)](handleEntityNotFound(_0x238db3,null))[_0x10603e(0xe1)](respondWithResult(_0x238db3,null))[_0x10603e(0xe6)](handleError(_0x238db3,null));},exports[a483_0x42c08f(0xe0)]=function(_0x49fb3b,_0x36c879){const _0x3dd245=a483_0x42c08f;return _0x49fb3b[_0x3dd245(0xde)]['id']&&delete _0x49fb3b[_0x3dd245(0xde)]['id'],db[_0x3dd245(0xe7)][_0x3dd245(0xe9)]({'where':{'id':_0x49fb3b[_0x3dd245(0xe4)]['id']}})[_0x3dd245(0xe1)](handleEntityNotFound(_0x36c879,null))[_0x3dd245(0xe1)](saveUpdates(_0x49fb3b[_0x3dd245(0xde)],null))[_0x3dd245(0xe1)](respondWithResult(_0x36c879,null))[_0x3dd245(0xe6)](handleError(_0x36c879,null));},exports[a483_0x42c08f(0xcd)]=function(_0x5ec802,_0x29da9b){const _0xfbbd37=a483_0x42c08f;return db[_0xfbbd37(0xe7)][_0xfbbd37(0xe9)]({'where':{'id':_0x5ec802[_0xfbbd37(0xe4)]['id']}})[_0xfbbd37(0xe1)](handleEntityNotFound(_0x29da9b,null))['then'](removeEntity(_0x29da9b,null))['catch'](handleError(_0x29da9b,null));}; \ No newline at end of file diff --git a/server/api/mailApplication/mailApplication.model.js b/server/api/mailApplication/mailApplication.model.js index 708de6e..cbcac4e 100644 --- a/server/api/mailApplication/mailApplication.model.js +++ b/server/api/mailApplication/mailApplication.model.js @@ -1 +1 @@ -const a402_0x1e96=['exports','mail_applications','MailApplication','define','utf8mb4','utf8mb4_unicode_ci','./mailApplication.attributes'];(function(_0x6b0021,_0x1e96c3){const _0x1e3133=function(_0x144519){while(--_0x144519){_0x6b0021['push'](_0x6b0021['shift']());}};_0x1e3133(++_0x1e96c3);}(a402_0x1e96,0x1c4));const a402_0x1e31=function(_0x6b0021,_0x1e96c3){_0x6b0021=_0x6b0021-0x0;let _0x1e3133=a402_0x1e96[_0x6b0021];return _0x1e3133;};const _0x39f5a1=a402_0x1e31;'use strict';const attributes=require(_0x39f5a1('0x2'));module[_0x39f5a1('0x3')]=function(_0x144519){const _0x1a4c85=_0x39f5a1,_0x381544=_0x144519[_0x1a4c85('0x6')](_0x1a4c85('0x5'),attributes,{'tableName':_0x1a4c85('0x4'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x1a4c85('0x0'),'collate':_0x1a4c85('0x1')});return _0x381544;}; \ No newline at end of file +const a484_0x3aa8=['exports','./mailApplication.options','MailApplication','init'];(function(_0x16a99d,_0x5c3b92){const _0x3aa832=function(_0x261b25){while(--_0x261b25){_0x16a99d['push'](_0x16a99d['shift']());}};_0x3aa832(++_0x5c3b92);}(a484_0x3aa8,0x103));const a484_0x261b=function(_0x16a99d,_0x5c3b92){_0x16a99d=_0x16a99d-0xd6;let _0x3aa832=a484_0x3aa8[_0x16a99d];return _0x3aa832;};const a484_0x1fb739=a484_0x261b;'use strict';const {Model}=require('sequelize'),{attributes}=require('./mailApplication.attributes'),{options}=require(a484_0x1fb739(0xd8));class MailApplication extends Model{}function init(_0x3c3f4b,_0x3477a4){const _0x52b3f2=a484_0x1fb739,_0x3c9897=options(_0x3c3f4b),_0x510e8f=typeof _0x3477a4==='function'?_0x3477a4(_0x3c9897):_0x3c9897;return MailApplication[_0x52b3f2(0xd6)](attributes,_0x510e8f),MailApplication;}module[a484_0x1fb739(0xd7)][a484_0x1fb739(0xd9)]=MailApplication,module['exports'][a484_0x1fb739(0xd6)]=init; \ No newline at end of file diff --git a/server/api/mailApplication/mailApplication.options.js b/server/api/mailApplication/mailApplication.options.js new file mode 100644 index 0000000..0fb53fc --- /dev/null +++ b/server/api/mailApplication/mailApplication.options.js @@ -0,0 +1 @@ +var a485_0x5621=['utf8mb4_unicode_ci','exports','mail_applications','options'];(function(_0x5a2b06,_0xdf1625){var _0x562160=function(_0x29a41e){while(--_0x29a41e){_0x5a2b06['push'](_0x5a2b06['shift']());}};_0x562160(++_0xdf1625);}(a485_0x5621,0x19c));var a485_0x29a4=function(_0x5a2b06,_0xdf1625){_0x5a2b06=_0x5a2b06-0x1c2;var _0x562160=a485_0x5621[_0x5a2b06];return _0x562160;};var a485_0x1d23d0=a485_0x29a4;function options(_0x18628b){var _0x3c65e6=a485_0x29a4;return{'sequelize':_0x18628b,'tableName':_0x3c65e6(0x1c4),'paranoid':![],'indexes':[],'timestamps':!![],'charset':'utf8mb4','collate':_0x3c65e6(0x1c2)};}module[a485_0x1d23d0(0x1c3)][a485_0x1d23d0(0x1c5)]=options; \ No newline at end of file diff --git a/server/api/mailApplication/mailApplication.rpc.js b/server/api/mailApplication/mailApplication.rpc.js index 495de80..5549bb4 100644 --- a/server/api/mailApplication/mailApplication.rpc.js +++ b/server/api/mailApplication/mailApplication.rpc.js @@ -1 +1 @@ -const a403_0xa360=['rpc','debug','MailApplication','then','catch','raw','update','where','info','message','options','attributes','UpdateMailApplication','../../config/logger','../../mysqldb'];(function(_0x2d8255,_0xa3600d){const _0x551d76=function(_0x5ecab0){while(--_0x5ecab0){_0x2d8255['push'](_0x2d8255['shift']());}};_0x551d76(++_0xa3600d);}(a403_0xa360,0x7e));const a403_0x551d=function(_0x2d8255,_0xa3600d){_0x2d8255=_0x2d8255-0x0;let _0x551d76=a403_0xa360[_0x2d8255];return _0x551d76;};const _0x274ad2=a403_0x551d;'use strict';const db=require(_0x274ad2('0x8'))['db'],logger=require(_0x274ad2('0x7'))(_0x274ad2('0x9'));exports[_0x274ad2('0x6')]=function(_0x5ecab0){const _0x1af7b1=this;return new Promise(function(_0x4eb5dd,_0xa87821){const _0x1f109b=a403_0x551d;return db[_0x1f109b('0xb')][_0x1f109b('0x0')](_0x5ecab0['body'],{'raw':_0x5ecab0[_0x1f109b('0x4')]?_0x5ecab0[_0x1f109b('0x4')][_0x1f109b('0xe')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x5ecab0[_0x1f109b('0x4')]?_0x5ecab0[_0x1f109b('0x4')][_0x1f109b('0x1')]||null:null,'attributes':_0x5ecab0[_0x1f109b('0x4')]?_0x5ecab0[_0x1f109b('0x4')][_0x1f109b('0x5')]||null:null,'limit':_0x5ecab0[_0x1f109b('0x4')]?_0x5ecab0[_0x1f109b('0x4')]['limit']||null:null})[_0x1f109b('0xc')](function(_0x111a4c){const _0x1b822d=_0x1f109b;logger[_0x1b822d('0x2')](_0x1b822d('0x6'),_0x5ecab0),logger[_0x1b822d('0xa')]('UpdateMailApplication',_0x5ecab0,JSON['stringify'](_0x111a4c)),_0x4eb5dd(_0x111a4c);})[_0x1f109b('0xd')](function(_0x381574){const _0x42a300=_0x1f109b;logger['error'](_0x42a300('0x6'),_0x381574[_0x42a300('0x3')],_0x5ecab0),_0xa87821(_0x1af7b1['error'](0x1f4,_0x381574['message']));});});}; \ No newline at end of file +const a486_0x392a=['catch','options','error','../../mysqldb','attributes','body','rpc','stringify','message','then','raw','MailApplication','debug','UpdateMailApplication','update','limit'];(function(_0x2a17ee,_0x40972b){const _0x392aaf=function(_0x350bc9){while(--_0x350bc9){_0x2a17ee['push'](_0x2a17ee['shift']());}};_0x392aaf(++_0x40972b);}(a486_0x392a,0x1a7));const a486_0x350b=function(_0x2a17ee,_0x40972b){_0x2a17ee=_0x2a17ee-0x157;let _0x392aaf=a486_0x392a[_0x2a17ee];return _0x392aaf;};const a486_0x2b2f82=a486_0x350b;'use strict';const db=require(a486_0x2b2f82(0x163))['db'],logger=require('../../config/logger')(a486_0x2b2f82(0x166));exports[a486_0x2b2f82(0x15d)]=function(_0x542524){const _0x3fa197=this;return new Promise(function(_0x29b6ac,_0x447688){const _0xfc0d7c=a486_0x350b;return db[_0xfc0d7c(0x15b)][_0xfc0d7c(0x15e)](_0x542524[_0xfc0d7c(0x165)],{'raw':_0x542524['options']?_0x542524[_0xfc0d7c(0x161)][_0xfc0d7c(0x15a)]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x542524[_0xfc0d7c(0x161)]?_0x542524[_0xfc0d7c(0x161)]['where']||null:null,'attributes':_0x542524['options']?_0x542524[_0xfc0d7c(0x161)][_0xfc0d7c(0x164)]||null:null,'limit':_0x542524[_0xfc0d7c(0x161)]?_0x542524['options'][_0xfc0d7c(0x15f)]||null:null})[_0xfc0d7c(0x159)](function(_0x57e9da){const _0x5bd87e=_0xfc0d7c;logger['info'](_0x5bd87e(0x15d),_0x542524),logger[_0x5bd87e(0x15c)](_0x5bd87e(0x15d),_0x542524,JSON[_0x5bd87e(0x157)](_0x57e9da)),_0x29b6ac(_0x57e9da);})[_0xfc0d7c(0x160)](function(_0x120dee){const _0x5c34b1=_0xfc0d7c;logger[_0x5c34b1(0x162)](_0x5c34b1(0x15d),_0x120dee[_0x5c34b1(0x158)],_0x542524),_0x447688(_0x3fa197['error'](0x1f4,_0x120dee[_0x5c34b1(0x158)]));});});}; \ No newline at end of file diff --git a/server/api/mailInteraction/index.js b/server/api/mailInteraction/index.js index 8c6e634..b4e4e87 100644 --- a/server/api/mailInteraction/index.js +++ b/server/api/mailInteraction/index.js @@ -1 +1 @@ -const a404_0x34f2=['get','/:id','mailinteraction:update','tracked','/describe','put','mailinteraction:addtags','addTags','getMessages','express','../../components/interaction/service','addMessage','/:id/messages','exports','/:id/download','download','/:id/tags','create','post','destroy','delete','isAuthenticated','update','show','describe','mail'];(function(_0x25786d,_0x34f273){const _0x477f50=function(_0x1e8140){while(--_0x1e8140){_0x25786d['push'](_0x25786d['shift']());}};_0x477f50(++_0x34f273);}(a404_0x34f2,0x1be));const a404_0x477f=function(_0x25786d,_0x34f273){_0x25786d=_0x25786d-0x0;let _0x477f50=a404_0x34f2[_0x25786d];return _0x477f50;};const _0x404ee6=a404_0x477f;'use strict';const express=require(_0x404ee6('0x5')),router=express['Router'](),auth=require('../../components/auth/service'),interaction=require(_0x404ee6('0x6')),controller=require('./mailInteraction.controller');router[_0x404ee6('0x16')]('/',auth[_0x404ee6('0x11')](),controller['index']),router[_0x404ee6('0x16')](_0x404ee6('0x0'),auth[_0x404ee6('0x11')](),controller[_0x404ee6('0x14')]),router[_0x404ee6('0x16')](_0x404ee6('0x17'),auth[_0x404ee6('0x11')](),controller[_0x404ee6('0x13')]),router[_0x404ee6('0x16')](_0x404ee6('0x8'),auth[_0x404ee6('0x11')](),controller[_0x404ee6('0x4')]),router[_0x404ee6('0x16')](_0x404ee6('0xa'),auth[_0x404ee6('0x11')](),controller[_0x404ee6('0xb')]),router[_0x404ee6('0xe')]('/',auth[_0x404ee6('0x11')](),controller[_0x404ee6('0xd')]),router[_0x404ee6('0xe')](_0x404ee6('0x8'),auth[_0x404ee6('0x11')](),controller[_0x404ee6('0x7')]),router[_0x404ee6('0xe')](_0x404ee6('0xc'),auth[_0x404ee6('0x11')](),interaction[_0x404ee6('0x19')](_0x404ee6('0x15'),_0x404ee6('0x2')),controller[_0x404ee6('0x3')]),router[_0x404ee6('0x1')]('/:id',auth['isAuthenticated'](),interaction['tracked'](_0x404ee6('0x15'),_0x404ee6('0x18')),controller[_0x404ee6('0x12')]),router[_0x404ee6('0x10')](_0x404ee6('0x17'),auth[_0x404ee6('0x11')](),interaction[_0x404ee6('0x19')](_0x404ee6('0x15'),'mailinteraction:destroy'),controller[_0x404ee6('0xf')]),router['delete'](_0x404ee6('0xc'),auth[_0x404ee6('0x11')](),controller['removeTags']),module[_0x404ee6('0x9')]=router; \ No newline at end of file +const a487_0x448a=['delete','../../components/interaction/service','isAuthenticated','post','exports','put','mail','/:id/tags','express','removeTags','describe','get','getMessages','/:id/messages','index','tracked','/:id','update','./mailInteraction.controller','/:id/download','/describe'];(function(_0x4c266e,_0x323e8b){const _0x448a08=function(_0x4a884c){while(--_0x4a884c){_0x4c266e['push'](_0x4c266e['shift']());}};_0x448a08(++_0x323e8b);}(a487_0x448a,0xd2));const a487_0x4a88=function(_0x4c266e,_0x323e8b){_0x4c266e=_0x4c266e-0x13b;let _0x448a08=a487_0x448a[_0x4c266e];return _0x448a08;};const a487_0x3b33dc=a487_0x4a88;'use strict';const express=require(a487_0x3b33dc(0x143)),router=express['Router'](),auth=require('../../components/auth/service'),interaction=require(a487_0x3b33dc(0x13c)),controller=require(a487_0x3b33dc(0x14d));router[a487_0x3b33dc(0x146)]('/',auth[a487_0x3b33dc(0x13d)](),controller[a487_0x3b33dc(0x149)]),router[a487_0x3b33dc(0x146)](a487_0x3b33dc(0x14f),auth['isAuthenticated'](),controller[a487_0x3b33dc(0x145)]),router[a487_0x3b33dc(0x146)](a487_0x3b33dc(0x14b),auth[a487_0x3b33dc(0x13d)](),controller['show']),router['get'](a487_0x3b33dc(0x148),auth[a487_0x3b33dc(0x13d)](),controller[a487_0x3b33dc(0x147)]),router[a487_0x3b33dc(0x146)](a487_0x3b33dc(0x14e),auth[a487_0x3b33dc(0x13d)](),controller['download']),router[a487_0x3b33dc(0x13e)]('/',auth[a487_0x3b33dc(0x13d)](),controller['create']),router['post'](a487_0x3b33dc(0x148),auth[a487_0x3b33dc(0x13d)](),controller['addMessage']),router[a487_0x3b33dc(0x13e)](a487_0x3b33dc(0x142),auth['isAuthenticated'](),interaction[a487_0x3b33dc(0x14a)](a487_0x3b33dc(0x141),'mailinteraction:addtags'),controller['addTags']),router[a487_0x3b33dc(0x140)](a487_0x3b33dc(0x14b),auth[a487_0x3b33dc(0x13d)](),interaction[a487_0x3b33dc(0x14a)]('mail','mailinteraction:update'),controller[a487_0x3b33dc(0x14c)]),router[a487_0x3b33dc(0x13b)](a487_0x3b33dc(0x14b),auth['isAuthenticated'](),interaction[a487_0x3b33dc(0x14a)]('mail','mailinteraction:destroy'),controller['destroy']),router[a487_0x3b33dc(0x13b)](a487_0x3b33dc(0x142),auth[a487_0x3b33dc(0x13d)](),controller[a487_0x3b33dc(0x144)]),module[a487_0x3b33dc(0x13f)]=router; \ No newline at end of file diff --git a/server/api/mailInteraction/mailInteraction.attributes.js b/server/api/mailInteraction/mailInteraction.attributes.js index c1bd6c5..41b38a9 100644 --- a/server/api/mailInteraction/mailInteraction.attributes.js +++ b/server/api/mailInteraction/mailInteraction.attributes.js @@ -1 +1 @@ -const a405_0x3f20=['TEXT','long','STRING','DATE','BOOLEAN','ENUM','exports','out'];(function(_0x3cb0ea,_0x3f2070){const _0x2ce37e=function(_0x5491ad){while(--_0x5491ad){_0x3cb0ea['push'](_0x3cb0ea['shift']());}};_0x2ce37e(++_0x3f2070);}(a405_0x3f20,0xe8));const a405_0x2ce3=function(_0x3cb0ea,_0x3f2070){_0x3cb0ea=_0x3cb0ea-0x0;let _0x2ce37e=a405_0x3f20[_0x3cb0ea];return _0x2ce37e;};const _0x235d5a=a405_0x2ce3;'use strict';const Sequelize=require('sequelize');module[_0x235d5a('0x6')]={'closed':{'type':Sequelize[_0x235d5a('0x4')],'defaultValue':![]},'closedAt':{'type':Sequelize['DATE']},'disposition':{'type':Sequelize[_0x235d5a('0x2')]},'secondDisposition':{'type':Sequelize['STRING']},'thirdDisposition':{'type':Sequelize['STRING']},'note':{'type':Sequelize[_0x235d5a('0x2')]},'inReplyTo':{'type':Sequelize[_0x235d5a('0x2')](0x1fe)},'to':{'type':Sequelize[_0x235d5a('0x2')]},'cc':{'type':Sequelize[_0x235d5a('0x0')](_0x235d5a('0x1'))},'subject':{'type':Sequelize[_0x235d5a('0x0')]()},'attach':{'type':Sequelize[_0x235d5a('0x4')],'defaultValue':![]},'read1stAt':{'type':Sequelize[_0x235d5a('0x3')]},'substatus':{'type':Sequelize['STRING'](0x3c)},'substatusAt':{'type':Sequelize[_0x235d5a('0x3')]},'firstMsgDirection':{'type':Sequelize[_0x235d5a('0x5')]('in',_0x235d5a('0x7')),'defaultValue':'in','allowNull':![]},'lastMsgAt':{'type':Sequelize[_0x235d5a('0x3')]},'lastMsgDirection':{'type':Sequelize['ENUM']('in',_0x235d5a('0x7')),'defaultValue':'in','allowNull':![]},'lastMsgBody':{'type':Sequelize[_0x235d5a('0x0')](_0x235d5a('0x1'))},'lastMsgText':{'type':Sequelize[_0x235d5a('0x0')]('long')}}; \ No newline at end of file +const a488_0x588d=['out','STRING','sequelize','long','attributes','BOOLEAN','DATE','ENUM','TEXT'];(function(_0x65a252,_0x46d15e){const _0x588d26=function(_0x33c40f){while(--_0x33c40f){_0x65a252['push'](_0x65a252['shift']());}};_0x588d26(++_0x46d15e);}(a488_0x588d,0xef));const a488_0x33c4=function(_0x65a252,_0x46d15e){_0x65a252=_0x65a252-0xf1;let _0x588d26=a488_0x588d[_0x65a252];return _0x588d26;};const a488_0x1f4932=a488_0x33c4;'use strict';const {DataTypes}=require(a488_0x1f4932(0xf7)),attributes={'closed':{'type':DataTypes[a488_0x1f4932(0xf1)],'defaultValue':![]},'closedAt':{'type':DataTypes['DATE']},'disposition':{'type':DataTypes[a488_0x1f4932(0xf6)]},'secondDisposition':{'type':DataTypes['STRING']},'thirdDisposition':{'type':DataTypes['STRING']},'note':{'type':DataTypes[a488_0x1f4932(0xf6)]},'inReplyTo':{'type':DataTypes[a488_0x1f4932(0xf6)](0x1fe)},'to':{'type':DataTypes[a488_0x1f4932(0xf6)]},'cc':{'type':DataTypes['TEXT']({'length':a488_0x1f4932(0xf8)})},'subject':{'type':DataTypes[a488_0x1f4932(0xf4)]()},'attach':{'type':DataTypes[a488_0x1f4932(0xf1)],'defaultValue':![]},'read1stAt':{'type':DataTypes['DATE']},'substatus':{'type':DataTypes[a488_0x1f4932(0xf6)](0x3c)},'substatusAt':{'type':DataTypes[a488_0x1f4932(0xf2)]},'firstMsgDirection':{'type':DataTypes['ENUM']('in','out'),'defaultValue':'in','allowNull':![]},'lastMsgAt':{'type':DataTypes[a488_0x1f4932(0xf2)]},'lastMsgDirection':{'type':DataTypes[a488_0x1f4932(0xf3)]('in',a488_0x1f4932(0xf5)),'defaultValue':'in','allowNull':![]},'lastMsgBody':{'type':DataTypes[a488_0x1f4932(0xf4)]({'length':'long'})},'lastMsgText':{'type':DataTypes[a488_0x1f4932(0xf4)]({'length':a488_0x1f4932(0xf8)})}};module['exports'][a488_0x1f4932(0xf9)]=attributes; \ No newline at end of file diff --git a/server/api/mailInteraction/mailInteraction.controller.js b/server/api/mailInteraction/mailInteraction.controller.js index 65f54ac..83db54a 100644 --- a/server/api/mailInteraction/mailInteraction.controller.js +++ b/server/api/mailInteraction/mailInteraction.controller.js @@ -1 +1 @@ -const a406_0x8eaf=['users','MATCH\x20(me.plainBody,\x20me.subject)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','c.phone','describe','Owner.internal','model','i.id','user_has_mail_interactions','getMessages','c.email','pick','buildExpression','search','filter','isEmpty','ContactId','cm_contacts','api','destroy','bcc','parse','User','status','journey','join','i.createdAt','err','MailAccountId','Account.mandatoryDisposition','c.lastName','json','MailInteraction','UserId','Contact.phone','operator','mail_messages','Users','moment','where','i.closed','clone','getFullTextValue','i.UserId','unlinkSync','../../mysqldb','from','update','./mailInteraction.socket','Tag','sequelize','c.email\x20LIKE\x20?','conditions','GROUP_CONCAT(DISTINCT\x20t.id)','order','i.to','sendStatus','me.MailInteractionId\x20=\x20i.id','field','removeTags','a.id\x20=\x20i.MailAccountId','addMessage','download','mail_accounts','read','catch','tmp','user','toString','get','lastMsgText','end','null','tools_tags','tag','Sequelize','left_join','find','../../rediscache','YYYY-MM-DD\x20HH:mm:ss','c.id\x20=\x20i.ContactId\x20AND\x20c.deletedAt\x20IS\x20NULL','createdAt','addTags','create','fieldName','query','start','Messages','compact','push','i.MailAccountId','Content-Range','nolimit','concat','Account.key','resolve','findOne','i.updatedAt','util','zip-dir','key','MailMessage','like','$gte','html-to-text','eml-format','i.attach','TagIds','i.disposition','includeAll','$substring','isArray','count','i.createdAt\x20BETWEEN\x20?\x20AND\x20?','o.internal','set','replace','fields','o.fullname','body','name','isEmail','../../config/logger','value','Attachments','mail_interactions','keys','u.fullname','\x20=\x20?','it.MailInteractionId\x20=\x20i.id','mailInteractionTags:save','split','options','select','sort','Contact.fax','SUM(me.read\x20=\x200\x20AND\x20me.direction\x20=\x20\x27in\x27)','merge','type','build','$lte','i.MailAccountId\x20IN\x20?','params','omit','u.id','i.MailAccountId\x20IS\x20NULL','Bcc','squel','\x20IS\x20NULL','Setting','rimraf','existsSync','transcript-%d-%s.zip','then','MATCH\x20(i.to,\x20i.subject)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','enableEmailPreview','length','MATCH\x20(c.firstName,\x20c.lastName,\x20c.phone,\x20c.mobile,\x20c.fax,\x20c.email)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','MailInteractionId','Contact','rawAttributes','Owner.fullname','undefined','i.id\x20LIKE\x20?','mkdirSync','include','Contact.firstName','root','Tags','sqlOperator','register','filters','Attachment','text','groupBy','unreadMessages','forEach','getMailAccounts','show','i.lastMsgDirection','having','i.closedAt','some','i.MailAccountId\x20IS\x20NOT\x20NULL','i.ContactId','expr','server','headers','`\x20=\x200','limit','findAll','color','lastMsgBody','intersection','offset','attributes','../../components/parsers/advancedSearch','writeFileSync','map','`\x20>\x200','ids','c.fax','all','format','attachments','plainBody','group','unix','mail_interaction_has_tags','path','files'];(function(_0xa1a5d5,_0x8eaf37){const _0x36084f=function(_0x3edc4c){while(--_0x3edc4c){_0xa1a5d5['push'](_0xa1a5d5['shift']());}};_0x36084f(++_0x8eaf37);}(a406_0x8eaf,0x1ce));const a406_0x3608=function(_0xa1a5d5,_0x8eaf37){_0xa1a5d5=_0xa1a5d5-0x0;let _0x36084f=a406_0x8eaf[_0xa1a5d5];return _0x36084f;};const _0x3b78fa=a406_0x3608;'use strict';const emlformat=require(_0x3b78fa('0x3e')),rimraf=require(_0x3b78fa('0x6b')),zipdir=require(_0x3b78fa('0x38')),moment=require(_0x3b78fa('0xcd')),util=require(_0x3b78fa('0x37')),path=require(_0x3b78fa('0xa6')),fs=require('fs'),_=require('lodash'),squel=require(_0x3b78fa('0x68')),{htmlToText}=require(_0x3b78fa('0x3d')),{getSocket}=require(_0x3b78fa('0x23')),socket=getSocket(),qs=require('../../components/parsers/qs'),as=require(_0x3b78fa('0x99')),logger=require(_0x3b78fa('0x4f'))(_0x3b78fa('0xb9')),config=require('../../config/environment'),db=require(_0x3b78fa('0x2'))['db'],{Op}=require('sequelize');require(_0x3b78fa('0x5'))[_0x3b78fa('0x7f')](socket);function respondWithStatusCode(_0x3edc4c,_0x3b84a6){return _0x3b84a6=_0x3b84a6||0xcc,function(_0x25aef4){const _0xc80f6c=a406_0x3608;if(_0x25aef4)return _0x3edc4c[_0xc80f6c('0xd')](_0x3b84a6);return _0x3edc4c[_0xc80f6c('0xbe')](_0x3b84a6)[_0xc80f6c('0x1c')]();};}function respondWithResult(_0x3f0c56,_0x584adb){return _0x584adb=_0x584adb||0xc8,function(_0x101f85){const _0x2fcd02=a406_0x3608;if(_0x101f85)return _0x3f0c56['status'](_0x584adb)[_0x2fcd02('0xc6')](_0x101f85);};}function respondWithFilteredResult(_0x465616,_0x5ae91d){return function(_0x355bab){const _0x120df2=a406_0x3608;if(_0x355bab){const _0x413f29=_0x355bab[_0x120df2('0x45')],_0x339b10=_0x5ae91d[_0x120df2('0x97')];let _0x390625=_0x5ae91d[_0x120df2('0x97')]+_0x5ae91d[_0x120df2('0x92')],_0x3c3379;return _0x390625>=_0x413f29?(_0x390625=_0x413f29,_0x3c3379=0xc8):_0x3c3379=0xce,_0x465616[_0x120df2('0xbe')](_0x3c3379),_0x465616[_0x120df2('0x48')](_0x120df2('0x30'),_0x339b10+'-'+_0x390625+'/'+_0x413f29)[_0x120df2('0xc6')](_0x355bab);}return null;};}function saveUpdates(_0x7d2a98){return function(_0x2cd384){const _0x32b1ff=a406_0x3608;if(_0x2cd384)return _0x2cd384[_0x32b1ff('0x4')](_0x7d2a98)[_0x32b1ff('0x6e')](function(_0x4443e7){return _0x4443e7;});return null;};}function removeEntity(_0x58b32f){return function(_0x59d1cf){const _0xb0a65c=a406_0x3608;if(_0x59d1cf)return _0x59d1cf[_0xb0a65c('0xba')]()['then'](function(){const _0x15b3a3=_0xb0a65c;_0x58b32f['status'](0xcc)[_0x15b3a3('0x1c')]();});};}function handleEntityNotFound(_0x1b031b){return function(_0x48c267){const _0x2215f1=a406_0x3608;return!_0x48c267&&_0x1b031b[_0x2215f1('0xd')](0x194),_0x48c267;};}function handleError(_0x1dde7d,_0x17e7b1){return _0x17e7b1=_0x17e7b1||0x1f4,function(_0x4198d8){const _0x3e762f=a406_0x3608;logger['error'](_0x4198d8['stack']),_0x4198d8['name']&&delete _0x4198d8[_0x3e762f('0x4d')],_0x1dde7d[_0x3e762f('0xbe')](_0x17e7b1)['send'](_0x4198d8);};}function getInteractionUsers(_0x370856,_0x35a6ec){return new Promise(function(_0x503ff8,_0x5ed087){const _0x52a44b=a406_0x3608;try{_0x35a6ec[_0x370856['id']]&&(_0x370856[_0x52a44b('0xcc')]=_['map'](_0x35a6ec[_0x370856['id']],function(_0x5ef693){return{'id':_0x5ef693['id'],'fullname':_0x5ef693['fullname']};}));}catch(_0x2b667b){_0x5ed087(_0x2b667b);}_0x503ff8(_0x370856);});}function getInteractionTags(_0x45c372,_0xe6e360){return new Promise(function(_0x266932,_0x38dc03){const _0x1c7eee=a406_0x3608;try{_0x45c372[_0x1c7eee('0x40')]&&(_0x45c372[_0x1c7eee('0x7d')]=[],_0x45c372[_0x1c7eee('0x40')][_0x1c7eee('0x58')](',')[_0x1c7eee('0x85')](function(_0x205782){const _0x2dff4a=_0x1c7eee;_0x45c372[_0x2dff4a('0x7d')][_0x2dff4a('0x2e')](_0xe6e360[_0x205782]);})),delete _0x45c372[_0x1c7eee('0x40')];}catch(_0x554c10){_0x38dc03(_0x554c10);}_0x266932(_0x45c372);});}function getLastMessageText(_0x5223a4){return new Promise(function(_0x293719,_0x475b30){const _0x49db2e=a406_0x3608;return db['MailInteraction'][_0x49db2e('0x35')]({'where':{'id':_0x5223a4['id']},'attributes':['lastMsgBody',_0x49db2e('0x1b')],'raw':!![]})['then'](function(_0xb99251){const _0x117767=_0x49db2e;!_0xb99251[_0x117767('0x1b')]?_0x5223a4[_0x117767('0x1b')]=_['trimStart'](htmlToText(_0xb99251[_0x117767('0x95')],{'preserveNewlines':!![],'singleNewLineParagraphs':!![],'uppercaseHeadings':![],'noLinkBrackets':!![],'ignoreImage':!![]})):_0x5223a4[_0x117767('0x1b')]=_0xb99251[_0x117767('0x1b')],_0x293719(_0x5223a4);})['catch'](function(_0x409b61){_0x475b30(_0x409b61);});});}function updateMailInteraction(_0x3e5d64,_0x4d152b,_0x42a17e,_0x141e9e){return new Promise(function(_0x5d1a47,_0x4d9b5e){const _0x281e97=a406_0x3608;return getInteractionUsers(_0x3e5d64,_0x42a17e)[_0x281e97('0x6e')](function(_0x24575e){return getInteractionTags(_0x24575e,_0x4d152b);})[_0x281e97('0x6e')](function(_0x5e5ba6){_0x141e9e?_0x5d1a47(getLastMessageText(_0x5e5ba6)):_0x5d1a47(_0x5e5ba6);})['catch'](function(_0xcdd99){_0x4d9b5e(_0xcdd99);});});}exports['index']=function(_0x319338,_0x233e19){const _0x498ff6=_0x3b78fa,_0x5cda8e={},_0x1e9158={},_0x6b1e72={'count':0x0,'rows':[]},_0x344c41=_['map'](db[_0x498ff6('0xc7')][_0x498ff6('0x75')],function(_0x54a5df){const _0x5630a7=_0x498ff6;return{'name':_0x54a5df[_0x5630a7('0x29')],'type':_0x54a5df[_0x5630a7('0x5f')][_0x5630a7('0x39')]};});_0x1e9158[_0x498ff6('0xad')]=_['map'](_0x344c41,_0x498ff6('0x4d')),_0x1e9158[_0x498ff6('0x2a')]=_[_0x498ff6('0x53')](_0x319338[_0x498ff6('0x2a')]),_0x1e9158['filters']=_['intersection'](_0x1e9158['model'],_0x1e9158[_0x498ff6('0x2a')]),_0x5cda8e[_0x498ff6('0x98')]=_[_0x498ff6('0x96')](_0x1e9158[_0x498ff6('0xad')],qs[_0x498ff6('0x4a')](_0x319338['query']['fields'])),_0x5cda8e[_0x498ff6('0x98')]=_0x5cda8e['attributes']['length']?_0x5cda8e[_0x498ff6('0x98')]:_0x1e9158[_0x498ff6('0xad')];typeof _0x319338[_0x498ff6('0x2a')][_0x498ff6('0x31')]===_0x498ff6('0x77')&&(_0x5cda8e[_0x498ff6('0x92')]=qs[_0x498ff6('0x92')](_0x319338[_0x498ff6('0x2a')]['limit']),_0x5cda8e[_0x498ff6('0x97')]=qs['offset'](_0x319338['query'][_0x498ff6('0x97')]));_0x5cda8e[_0x498ff6('0xb')]=qs[_0x498ff6('0x5b')](_0x319338[_0x498ff6('0x2a')][_0x498ff6('0x5b')]),_0x5cda8e[_0x498ff6('0xce')]=qs[_0x498ff6('0x80')](_[_0x498ff6('0xb2')](_0x319338['query'],_0x1e9158[_0x498ff6('0x80')]),_0x344c41);let _0x4a05ac=[];const _0x10c05e=squel[_0x498ff6('0x5a')]()[_0x498ff6('0xf')]('id')[_0x498ff6('0xf')](_0x498ff6('0x4d'))[_0x498ff6('0xf')](_0x498ff6('0x94'))[_0x498ff6('0x3')](_0x498ff6('0x1e')),_0x26160b=squel['select']()['field'](_0x498ff6('0x65'))[_0x498ff6('0xf')](_0x498ff6('0x54'))[_0x498ff6('0xf')]('ui.MailInteractionId')[_0x498ff6('0x3')](_0x498ff6('0xaf'),'ui')[_0x498ff6('0x21')]('users','u','u.id\x20=\x20ui.UserId'),_0x40aff9=squel[_0x498ff6('0x5a')]()[_0x498ff6('0x3')](_0x498ff6('0x52'),'i')[_0x498ff6('0x21')](_0x498ff6('0xb8'),'c',_0x498ff6('0x25'))['left_join'](_0x498ff6('0xa8'),'o','o.id\x20=\x20i.UserId')['left_join'](_0x498ff6('0x14'),'a',_0x498ff6('0x11'))['left_join'](_0x498ff6('0xcb'),'me',_0x498ff6('0xe'))['left_join'](_0x498ff6('0xa5'),'it',_0x498ff6('0x56'))[_0x498ff6('0x21')]('tools_tags','t','t.id\x20=\x20it.TagId'),_0x1f0218=squel[_0x498ff6('0x8e')]();let _0x26c090=[];const _0x3f4f07=squel[_0x498ff6('0x8e')]();let _0x2f0305;if(_0x319338['query'][_0x498ff6('0xb4')]){_0x2f0305=as['parseSearch'](_0x319338[_0x498ff6('0x2a')][_0x498ff6('0xb4')]);const _0x3c9ef4=_0x2f0305[_0x498ff6('0x7e')];for(let _0x5c472a=0x0;_0x5c472a<_0x2f0305[_0x498ff6('0x9')][_0x498ff6('0x71')];_0x5c472a++){const _0x369e7e=_0x2f0305['conditions'][_0x5c472a],_0x23d850='i';let _0x3e0636,_0x1b4908=_[_0x498ff6('0x22')](_0x344c41,[_0x498ff6('0x4d'),_0x369e7e['field']]);if(!_0x1b4908)switch(_0x369e7e[_0x498ff6('0xf')]){case'unreadMessages':_0x369e7e['value']==0x1?_0x40aff9[_0x498ff6('0x89')]('`'+_0x369e7e[_0x498ff6('0xf')]+_0x498ff6('0x91')):_0x40aff9[_0x498ff6('0x89')]('`'+_0x369e7e['field']+_0x498ff6('0x9c'));break;case _0x498ff6('0x74'):if(_0x369e7e[_0x498ff6('0xca')]===_0x498ff6('0x43')){if(_0x369e7e[_0x498ff6('0x50')][_0x498ff6('0x58')]('\x20')[_0x498ff6('0x71')]>0x1)_0x1f0218[_0x3c9ef4](_0x498ff6('0x72'),qs[_0x498ff6('0xd1')](_0x369e7e[_0x498ff6('0x50')]),null);else{const _0x521a95='%'+_0x369e7e[_0x498ff6('0x50')]+'%';_0x1f0218[_0x3c9ef4]('c.firstName\x20LIKE\x20?\x20OR\x20c.lastName\x20LIKE\x20?\x20OR\x20c.email\x20LIKE\x20?',_0x521a95,_0x521a95,_0x521a95);}}else _0x1b4908=_['find'](_0x344c41,[_0x498ff6('0x4d'),_0x498ff6('0xb7')]),_0x369e7e[_0x498ff6('0xf')]='ContactId',_0x3e0636=as[_0x498ff6('0xb3')](_0x23d850,_0x1b4908['type'],_0x369e7e),_0x1f0218[_0x3c9ef4](_0x3e0636[_0x498ff6('0x82')],_0x3e0636['value']['start'],_0x3e0636[_0x498ff6('0x50')][_0x498ff6('0x1c')]);break;case _0x498ff6('0x6'):{const _0x35ce6c=_0x369e7e['value'][_0x498ff6('0x58')](',')['map'](function(_0x323ab8){return Number(_0x323ab8);});_0x35ce6c[_0x498ff6('0x85')](function(_0x4889c6){_0x3f4f07['or']('CONCAT(\x27,\x27,\x20`TagIds`,\x20\x27,\x27)\x20LIKE\x20?','%,'+_0x4889c6+',%');}),_0x26c090=_['union'](_0x26c090,_0x35ce6c);}break;case _0x498ff6('0xbd'):_0x369e7e[_0x498ff6('0xca')]===_0x498ff6('0x43')?_0x1f0218[_0x3c9ef4]('CONCAT_WS(\x27\x20\x27,\x20o.name,\x20o.fullname)\x20LIKE\x20?','%'+_0x369e7e[_0x498ff6('0x50')]+'%',null):(_0x1b4908=_[_0x498ff6('0x22')](_0x344c41,[_0x498ff6('0x4d'),_0x498ff6('0xc8')]),_0x369e7e[_0x498ff6('0xf')]='UserId',_0x3e0636=as['buildExpression'](_0x23d850,_0x1b4908[_0x498ff6('0x5f')],_0x369e7e),_0x1f0218[_0x3c9ef4](_0x3e0636[_0x498ff6('0x82')],_0x3e0636[_0x498ff6('0x50')][_0x498ff6('0x2b')],_0x3e0636[_0x498ff6('0x50')][_0x498ff6('0x1c')]));break;case _0x498ff6('0xa2'):_0x3e0636=as['buildExpression']('me',null,_0x369e7e),_0x1f0218[_0x3c9ef4](_0x3e0636['text'],_0x3e0636['value'][_0x498ff6('0x2b')],_0x3e0636['value'][_0x498ff6('0x1c')]);break;}else _0x3e0636=as[_0x498ff6('0xb3')](_0x23d850,_0x1b4908[_0x498ff6('0x5f')],_0x369e7e),_0x1f0218[_0x3c9ef4](_0x3e0636[_0x498ff6('0x82')],_0x3e0636[_0x498ff6('0x50')][_0x498ff6('0x2b')],_0x3e0636[_0x498ff6('0x50')]['end']);}}else{const _0x3bbca0=_(_0x319338[_0x498ff6('0x2a')])['keys']()['map'](function(_0x3a3ac1){const _0x34ee4d=_0x498ff6;return _[_0x34ee4d('0x8b')](_0x344c41,[_0x34ee4d('0x4d'),_0x3a3ac1])?_0x3a3ac1:undefined;})[_0x498ff6('0x2d')]()[_0x498ff6('0x50')]();!_[_0x498ff6('0xb6')](_0x3bbca0)&&_0x3bbca0[_0x498ff6('0x85')](function(_0x425f3d){const _0x3de5e1=_0x498ff6;if(_0x425f3d==='MailAccountId')_0x40aff9['where'](_0x3de5e1('0x62'),[][_0x3de5e1('0x32')](_0x319338['query'][_0x425f3d]));else{if(_0x425f3d===_0x3de5e1('0x26')){const _0xae1710=JSON[_0x3de5e1('0xbc')](_0x319338[_0x3de5e1('0x2a')][_0x425f3d])['$gte'],_0x5c425b=JSON[_0x3de5e1('0xbc')](_0x319338[_0x3de5e1('0x2a')][_0x425f3d])[_0x3de5e1('0x61')];_0x40aff9['where'](_0x3de5e1('0x46'),_0xae1710,_0x5c425b);}else _0x319338[_0x3de5e1('0x2a')][_0x425f3d]===_0x3de5e1('0x1d')?_0x40aff9[_0x3de5e1('0xce')]('i.'+_0x425f3d+_0x3de5e1('0x69')):_0x40aff9[_0x3de5e1('0xce')]('i.'+_0x425f3d+_0x3de5e1('0x55'),_0x319338['query'][_0x425f3d]);}});_0x319338[_0x498ff6('0x2a')]['read']&&(_0x319338[_0x498ff6('0x2a')][_0x498ff6('0x15')]==0x1?_0x40aff9['having']('`unreadMessages`\x20=\x200'):_0x40aff9[_0x498ff6('0x89')]('`unreadMessages`\x20>\x200'));_0x319338[_0x498ff6('0x2a')][_0x498ff6('0x1f')]&&(_0x26c090=_[_0x498ff6('0x44')](_0x319338[_0x498ff6('0x2a')]['tag'])?_0x319338[_0x498ff6('0x2a')]['tag']:new Array(_0x319338[_0x498ff6('0x2a')][_0x498ff6('0x1f')]),_0x26c090[_0x498ff6('0x85')](function(_0x480383){_0x3f4f07['or']('CONCAT(\x27,\x27,\x20`TagIds`,\x20\x27,\x27)\x20LIKE\x20?','%,'+_0x480383+',%');}));if(_0x319338[_0x498ff6('0x2a')][_0x498ff6('0xb5')]){const _0x1771a8=_0x319338['query'][_0x498ff6('0xb5')][_0x498ff6('0x49')]('\x5c','\x5c\x5c')[_0x498ff6('0x49')](/'/g,'\x27\x27');if(qs['isNumeric'](_0x1771a8))_0x1f0218['or'](_0x498ff6('0x78'),_0x1771a8+'%');else qs[_0x498ff6('0x4e')](_0x1771a8)?_0x1f0218['or'](_0x498ff6('0x8'),_0x1771a8+'%'):_0x1f0218['or'](_0x498ff6('0x6f'),qs['getFullTextValue'](_0x1771a8))['or'](_0x498ff6('0xa9'),qs['getFullTextValue'](_0x1771a8));}}_0x40aff9[_0x498ff6('0xce')](_0x1f0218),_0x40aff9[_0x498ff6('0xa3')]('i.id');let _0x36a213={'type':db[_0x498ff6('0x20')]['QueryTypes']['SELECT'],'raw':!![]};const _0x1aebc3=_0x40aff9[_0x498ff6('0xd0')]();_0x1aebc3[_0x498ff6('0xf')](_0x498ff6('0xae')),_0x1aebc3['field']('SUM(me.read\x20=\x200\x20AND\x20me.direction\x20=\x20\x27in\x27)',_0x498ff6('0x84')),_0x5cda8e['order']&&_0x5cda8e[_0x498ff6('0xb')][_0x498ff6('0x85')](function(_0x5f4951){const _0x4d4658=_0x498ff6;_0x40aff9[_0x4d4658('0xb')]('i.'+_0x5f4951[0x0],_0x5f4951[0x1]==='DESC'?![]:!![]);}),!_[_0x498ff6('0xb6')](_0x26c090)&&(_0x40aff9[_0x498ff6('0x89')](_0x3f4f07),_0x1aebc3[_0x498ff6('0xce')]('t.id\x20IN\x20?',_0x26c090)),Promise[_0x498ff6('0x34')]()[_0x498ff6('0x6e')](function(){const _0x35888c=_0x498ff6;if(!_0x2f0305){if(_0x319338[_0x35888c('0x2a')][_0x35888c('0xc3')]||_0x319338[_0x35888c('0x2a')][_0x35888c('0xbf')])return;_0x1aebc3['where']('i.MailAccountId\x20IS\x20NOT\x20NULL'),_0x40aff9[_0x35888c('0xce')](_0x35888c('0x8c'));return;}return _0x319338[_0x35888c('0x18')][_0x35888c('0x86')]({'attributes':['id'],'raw':!![]})[_0x35888c('0x6e')](function(_0x33fbf3){const _0x398f41=_0x35888c;_[_0x398f41('0xb6')](_0x33fbf3)?(_0x1aebc3[_0x398f41('0xce')]('i.MailAccountId\x20IS\x20NULL'),_0x40aff9[_0x398f41('0xce')](_0x398f41('0x66'))):(_0x1aebc3[_0x398f41('0xce')](_0x398f41('0x62'),_['map'](_0x33fbf3,'id')),_0x40aff9['where'](_0x398f41('0x62'),_['map'](_0x33fbf3,'id')));});})[_0x498ff6('0x6e')](function(){const _0x24d6d7=_0x498ff6;db[_0x24d6d7('0x7')][_0x24d6d7('0x2a')](_0x1aebc3['toString'](),_0x36a213)[_0x24d6d7('0x6e')](function(_0x5062cd){const _0x1a4921=_0x24d6d7;_0x6b1e72[_0x1a4921('0x45')]=_0x5062cd[_0x1a4921('0x71')];if(_0x6b1e72['count']===0x0)return[];return db[_0x1a4921('0x7')]['query'](_0x10c05e[_0x1a4921('0x19')](),_0x36a213)[_0x1a4921('0x6e')](function(_0x5aa567){const _0x51f16f=_0x1a4921;_0x4a05ac=_['keyBy'](_0x5aa567,'id'),_0x36a213=_['merge'](_0x36a213,{'model':db[_0x51f16f('0xc7')],'mapToModel':!![],'raw':!![],'nest':!![]});_0x319338['query'][_0x51f16f('0x4a')]?_0x5cda8e[_0x51f16f('0x98')][_0x51f16f('0x85')](function(_0xd59db7){const _0x243a4e=_0x51f16f;_0x40aff9[_0x243a4e('0xf')]('i.'+_0xd59db7);}):(_0x40aff9[_0x51f16f('0xf')](_0x51f16f('0x5d'),_0x51f16f('0x84')),_0x40aff9[_0x51f16f('0xf')]('a.key',_0x51f16f('0x33')),_0x40aff9[_0x51f16f('0xf')]('a.mandatoryDisposition',_0x51f16f('0xc4')),_0x40aff9['field'](_0x51f16f('0xae')),_0x40aff9[_0x51f16f('0xf')](_0x51f16f('0xc1')),_0x40aff9['field'](_0x51f16f('0x36')),_0x40aff9[_0x51f16f('0xf')](_0x51f16f('0xcf')),_0x40aff9['field'](_0x51f16f('0x8a')),_0x40aff9[_0x51f16f('0xf')](_0x51f16f('0x3f')),_0x40aff9[_0x51f16f('0xf')]('i.lastMsgAt'),_0x40aff9[_0x51f16f('0xf')](_0x51f16f('0x88')),_0x40aff9[_0x51f16f('0xf')]('i.subject'),_0x40aff9[_0x51f16f('0xf')](_0x51f16f('0x41')),_0x40aff9['field']('i.secondDisposition'),_0x40aff9[_0x51f16f('0xf')]('i.thirdDisposition'),_0x40aff9[_0x51f16f('0xf')]('i.substatus'),_0x40aff9[_0x51f16f('0xf')](_0x51f16f('0xc')),_0x40aff9[_0x51f16f('0xf')](_0x51f16f('0x8d')),_0x40aff9[_0x51f16f('0xf')](_0x51f16f('0x2f')),_0x40aff9[_0x51f16f('0xf')](_0x51f16f('0x0')),_0x40aff9['field']('c.firstName',_0x51f16f('0x7b')),_0x40aff9[_0x51f16f('0xf')](_0x51f16f('0xc5'),'Contact.lastName'),_0x40aff9['field'](_0x51f16f('0xb1'),'Contact.email'),_0x40aff9[_0x51f16f('0xf')](_0x51f16f('0xaa'),_0x51f16f('0xc9')),_0x40aff9[_0x51f16f('0xf')]('c.mobile','Contact.mobile'),_0x40aff9[_0x51f16f('0xf')](_0x51f16f('0x9e'),_0x51f16f('0x5c')),_0x40aff9[_0x51f16f('0xf')](_0x51f16f('0x4b'),_0x51f16f('0x76')),_0x40aff9['field'](_0x51f16f('0x47'),_0x51f16f('0xac')),_0x40aff9['field'](_0x51f16f('0xa'),_0x51f16f('0x40')));if(_0x5cda8e[_0x51f16f('0x92')])_0x40aff9[_0x51f16f('0x92')](_0x5cda8e[_0x51f16f('0x92')]);if(_0x5cda8e[_0x51f16f('0x97')])_0x40aff9[_0x51f16f('0x97')](_0x5cda8e[_0x51f16f('0x97')]);return db['sequelize'][_0x51f16f('0x2a')](_0x40aff9[_0x51f16f('0x19')](),_0x36a213);})['then'](function(_0x41776f){const _0x1aedaa=_0x1a4921;return _0x26160b['where']('ui.MailInteractionId\x20IN\x20?',_[_0x1aedaa('0x9b')](_0x41776f,'id')),db[_0x1aedaa('0x7')]['query'](_0x26160b[_0x1aedaa('0x19')](),_0x36a213)[_0x1aedaa('0x6e')](function(_0x34852c){const _0x40b3a2=_0x1aedaa,_0x325670=_[_0x40b3a2('0x83')](_0x34852c,_0x40b3a2('0x73')),_0x1691f0=[];return db[_0x40b3a2('0x6a')][_0x40b3a2('0x35')]({'attributes':[_0x40b3a2('0x70')],'raw':!![]})['then'](function(_0x5a7bba){const _0x55d82f=_0x40b3a2,_0x53da6b=_0x5a7bba[_0x55d82f('0x70')];return _0x41776f[_0x55d82f('0x85')](function(_0x524928){const _0x13c2b2=_0x55d82f;_0x1691f0[_0x13c2b2('0x2e')](updateMailInteraction(_0x524928,_0x4a05ac,_0x325670,_0x53da6b));}),Promise[_0x55d82f('0x9f')](_0x1691f0);});});});})[_0x24d6d7('0x6e')](function(_0x17ca96){return _0x6b1e72['rows']=_0x17ca96,_0x6b1e72;})[_0x24d6d7('0x6e')](respondWithFilteredResult(_0x233e19,_0x5cda8e));})[_0x498ff6('0x16')](handleError(_0x233e19,null));},exports[_0x3b78fa('0x87')]=function(_0x34f7a1,_0x4a5121){const _0x154398=_0x3b78fa;let _0x837e55={'raw':![],'where':{'id':_0x34f7a1[_0x154398('0x63')]['id']}};const _0x4764f5={};return _0x4764f5[_0x154398('0xad')]=_[_0x154398('0x53')](db[_0x154398('0xc7')][_0x154398('0x75')]),_0x4764f5[_0x154398('0x2a')]=_['keys'](_0x34f7a1[_0x154398('0x2a')]),_0x4764f5[_0x154398('0x80')]=_['intersection'](_0x4764f5[_0x154398('0xad')],_0x4764f5[_0x154398('0x2a')]),_0x837e55[_0x154398('0x98')]=_[_0x154398('0x96')](_0x4764f5[_0x154398('0xad')],qs[_0x154398('0x4a')](_0x34f7a1[_0x154398('0x2a')][_0x154398('0x4a')])),_0x837e55[_0x154398('0x98')]=_0x837e55['attributes'][_0x154398('0x71')]?_0x837e55['attributes']:_0x4764f5[_0x154398('0xad')],_0x34f7a1[_0x154398('0x2a')][_0x154398('0x42')]&&(_0x837e55['include']=[{'all':!![]}]),_0x837e55=_[_0x154398('0x5e')]({},_0x837e55,_0x34f7a1[_0x154398('0x59')]),db[_0x154398('0xc7')][_0x154398('0x35')](_0x837e55)[_0x154398('0x6e')](handleEntityNotFound(_0x4a5121,null))['then'](respondWithResult(_0x4a5121,null))['catch'](handleError(_0x4a5121,null));},exports[_0x3b78fa('0x28')]=function(_0x4e33c4,_0x75cbb5){const _0x383a57=_0x3b78fa;return db['MailInteraction'][_0x383a57('0x28')](_0x4e33c4[_0x383a57('0x4c')],{})['then'](respondWithResult(_0x75cbb5,0xc9))['catch'](handleError(_0x75cbb5,null));},exports[_0x3b78fa('0x4')]=function(_0x216880,_0x557b38){const _0x89e5cc=_0x3b78fa;return _0x216880[_0x89e5cc('0x4c')]['id']&&delete _0x216880[_0x89e5cc('0x4c')]['id'],db[_0x89e5cc('0xc7')][_0x89e5cc('0x35')]({'where':{'id':_0x216880[_0x89e5cc('0x63')]['id']}})['then'](handleEntityNotFound(_0x557b38,null))[_0x89e5cc('0x6e')](saveUpdates(_0x216880[_0x89e5cc('0x4c')],null))[_0x89e5cc('0x6e')](respondWithResult(_0x557b38,null))['catch'](handleError(_0x557b38,null));},exports['destroy']=function(_0x2433b4,_0x5ae95c){const _0x205f49=_0x3b78fa;return db[_0x205f49('0xc7')]['findOne']({'where':{'id':_0x2433b4[_0x205f49('0x63')]['id']}})[_0x205f49('0x6e')](handleEntityNotFound(_0x5ae95c,null))[_0x205f49('0x6e')](removeEntity(_0x5ae95c,null))[_0x205f49('0x16')](handleError(_0x5ae95c,null));},exports[_0x3b78fa('0xab')]=function(_0x1a06af,_0x1326b6){const _0x1689ed=_0x3b78fa;return db[_0x1689ed('0xc7')]['describe']()[_0x1689ed('0x6e')](respondWithResult(_0x1326b6,null))['catch'](handleError(_0x1326b6,null));},exports[_0x3b78fa('0x12')]=function(_0x521591,_0x574808){const _0x390322=_0x3b78fa;return db[_0x390322('0x3a')][_0x390322('0x35')]({'where':{'id':_0x521591[_0x390322('0x63')]['id']}})[_0x390322('0x6e')](function(_0x2d022b){const _0x2490b0=_0x390322;if(_0x2d022b)return _0x2d022b['addMessage'](_0x521591['body'][_0x2490b0('0x9d')],{'through':_[_0x2490b0('0x64')](_0x521591[_0x2490b0('0x4c')],['ids','id'])});})['then'](respondWithResult(_0x574808,null))[_0x390322('0x16')](handleError(_0x574808,null));},exports[_0x3b78fa('0xb0')]=function(_0x3afed1,_0x5008df){const _0x1e024b=_0x3b78fa;let _0x4f605a={'raw':![],'where':{}};const _0x258841={},_0x57fc0c={'count':0x0,'rows':[]};return db[_0x1e024b('0xc7')][_0x1e024b('0x35')]({'where':{'id':_0x3afed1['params']['id']}})[_0x1e024b('0x6e')](handleEntityNotFound(_0x5008df,null))[_0x1e024b('0x6e')](function(_0x395fda){const _0x4dd2e9=_0x1e024b;if(_0x395fda){_0x258841[_0x4dd2e9('0xad')]=_[_0x4dd2e9('0x53')](db[_0x4dd2e9('0x3a')][_0x4dd2e9('0x75')]),_0x258841[_0x4dd2e9('0x2a')]=_[_0x4dd2e9('0x53')](_0x3afed1[_0x4dd2e9('0x2a')]),_0x258841[_0x4dd2e9('0x80')]=_[_0x4dd2e9('0x96')](_0x258841[_0x4dd2e9('0xad')],_0x258841[_0x4dd2e9('0x2a')]),_0x4f605a[_0x4dd2e9('0x98')]=_['intersection'](_0x258841[_0x4dd2e9('0xad')],qs[_0x4dd2e9('0x4a')](_0x3afed1[_0x4dd2e9('0x2a')]['fields'])),_0x4f605a['attributes']=_0x4f605a['attributes']['length']?_0x4f605a['attributes']:_0x258841['model'];typeof _0x3afed1[_0x4dd2e9('0x2a')][_0x4dd2e9('0x31')]==='undefined'&&(_0x4f605a['limit']=qs[_0x4dd2e9('0x92')](_0x3afed1[_0x4dd2e9('0x2a')][_0x4dd2e9('0x92')]),_0x4f605a['offset']=qs[_0x4dd2e9('0x97')](_0x3afed1[_0x4dd2e9('0x2a')][_0x4dd2e9('0x97')]));_0x4f605a['order']=qs['sort'](_0x3afed1[_0x4dd2e9('0x2a')][_0x4dd2e9('0x5b')]),_0x4f605a[_0x4dd2e9('0xce')]=qs[_0x4dd2e9('0x80')](_[_0x4dd2e9('0xb2')](_0x3afed1[_0x4dd2e9('0x2a')],_0x258841['filters'])),_0x4f605a[_0x4dd2e9('0xce')][_0x4dd2e9('0x73')]=_0x395fda['id'];_0x3afed1[_0x4dd2e9('0x2a')]['filter']&&(_0x4f605a[_0x4dd2e9('0xce')]=_[_0x4dd2e9('0x5e')](_0x4f605a[_0x4dd2e9('0xce')],{[Op['or']]:_[_0x4dd2e9('0x9b')](_0x4f605a['attributes'],function(_0x36cca5){const _0x496f4c=_0x4dd2e9,_0x536036={};return _0x536036[_0x36cca5]={[Op[_0x496f4c('0x3b')]]:'%'+_0x3afed1['query']['filter']+'%'},_0x536036;})}));if(_0x3afed1['query'][_0x4dd2e9('0x3c')]){const _0x5eacdc=_0x3afed1[_0x4dd2e9('0x2a')][_0x4dd2e9('0x3c')][_0x4dd2e9('0x58')](','),_0xcd662f={};_0xcd662f[_0x5eacdc[0x0]]={[Op['gte']]:moment(_0x5eacdc[0x1])[_0x4dd2e9('0xa0')](_0x4dd2e9('0x24'))},_0x4f605a['where']=_[_0x4dd2e9('0x5e')](_0x4f605a[_0x4dd2e9('0xce')],_0xcd662f);}return _0x4f605a=_['merge']({},_0x4f605a,_0x3afed1[_0x4dd2e9('0x59')]),db[_0x4dd2e9('0x3a')][_0x4dd2e9('0x45')]({'where':_0x4f605a[_0x4dd2e9('0xce')]})[_0x4dd2e9('0x6e')](function(_0x5cf3ea){const _0x207a2a=_0x4dd2e9;return _0x57fc0c[_0x207a2a('0x45')]=_0x5cf3ea,_0x3afed1['query']['includeAll']&&(_0x4f605a[_0x207a2a('0x7a')]=[{'all':!![]}]),db['MailMessage'][_0x207a2a('0x93')](_0x4f605a);})[_0x4dd2e9('0x6e')](function(_0x2aa68c){return _0x57fc0c['rows']=_0x2aa68c,_0x57fc0c;});}})[_0x1e024b('0x6e')](respondWithFilteredResult(_0x5008df,_0x4f605a))[_0x1e024b('0x16')](handleError(_0x5008df,null));},exports[_0x3b78fa('0x27')]=function(_0x590fca,_0x2eaa1c){const _0x5d93b4=_0x3b78fa;return db[_0x5d93b4('0xc7')][_0x5d93b4('0x35')]({'where':{'id':_0x590fca[_0x5d93b4('0x63')]['id']}})[_0x5d93b4('0x6e')](function(_0x1d4e46){const _0x58c0d6=_0x5d93b4;if(_0x1d4e46)return _0x1d4e46['setTags'](_0x590fca[_0x58c0d6('0x4c')]['ids'],{'through':_[_0x58c0d6('0x64')](_0x590fca[_0x58c0d6('0x4c')],['ids','id'])})['then'](function(){const _0x5ef816=_0x58c0d6;return db[_0x5ef816('0x6')]['findAll']({'attributes':['id',_0x5ef816('0x4d'),_0x5ef816('0x94')],'where':{'id':_0x590fca['body']['ids']}});})[_0x58c0d6('0x6e')](function(_0x28fbca){const _0xb031c8=_0x58c0d6;return socket['emit'](_0xb031c8('0x57'),{'id':Number(_0x590fca[_0xb031c8('0x63')]['id']),'tags':_0x28fbca||[]}),{'id':Number(_0x590fca[_0xb031c8('0x63')]['id']),'tags':_0x28fbca||[]};});})['then'](respondWithResult(_0x2eaa1c,null))[_0x5d93b4('0x16')](handleError(_0x2eaa1c,null));},exports[_0x3b78fa('0x10')]=function(_0x237ed6,_0x4595cb){const _0x11d9e6=_0x3b78fa;return db['MailInteraction'][_0x11d9e6('0x35')]({'where':{'id':_0x237ed6['params']['id']}})[_0x11d9e6('0x6e')](handleEntityNotFound(_0x4595cb,null))[_0x11d9e6('0x6e')](function(_0x2bdd99){const _0x306252=_0x11d9e6;if(_0x2bdd99)return _0x2bdd99[_0x306252('0x10')](_0x237ed6[_0x306252('0x2a')][_0x306252('0x9d')]);})['then'](respondWithStatusCode(_0x4595cb,null))[_0x11d9e6('0x16')](handleError(_0x4595cb,null));},exports[_0x3b78fa('0x13')]=function(_0x5546f2,_0x5c64ee){const _0x1f3e06=_0x3b78fa,_0x293f4d=moment()[_0x1f3e06('0xa4')]()['toString'](),_0x114040=path[_0x1f3e06('0xc0')](config[_0x1f3e06('0x7c')],_0x1f3e06('0xa7'),_0x1f3e06('0x17')),_0x58908c=path[_0x1f3e06('0xc0')](config[_0x1f3e06('0x7c')],_0x1f3e06('0x8f'),_0x1f3e06('0xa7'),_0x1f3e06('0xa1')),_0x2b1390=path[_0x1f3e06('0xc0')](_0x114040,_0x293f4d),_0x452308=util['format'](_0x1f3e06('0x6d'),_0x5546f2[_0x1f3e06('0x63')]['id'],_0x293f4d),_0x11ca11=path[_0x1f3e06('0xc0')](_0x114040,_0x452308),_0x3f8b33=[];_0x5546f2['query'][_0x1f3e06('0xa1')]&&_0x3f8b33[_0x1f3e06('0x2e')]({'model':db[_0x1f3e06('0x81')],'as':_0x1f3e06('0x51'),'raw':!![]});const _0x311d32=[{'model':db[_0x1f3e06('0x3a')],'as':_0x1f3e06('0x2c'),'attributes':['id',_0x1f3e06('0x4c'),_0x1f3e06('0x3'),'to','cc',_0x1f3e06('0xbb'),'subject',_0x1f3e06('0x26')],'where':{'secret':![]},'order':qs['sort']('id'),'include':_0x3f8b33}];return db[_0x1f3e06('0xc7')][_0x1f3e06('0x35')]({'where':{'id':_0x5546f2[_0x1f3e06('0x63')]['id']},'include':_0x311d32})[_0x1f3e06('0x6e')](handleEntityNotFound(_0x5c64ee,null))[_0x1f3e06('0x6e')](function(_0x37a144){const _0x45b137=_0x1f3e06;if(_0x37a144&&_0x37a144[_0x45b137('0x2c')]){const _0x448edb=_0x37a144[_0x45b137('0x1a')]({'plain':!![]});return fs[_0x45b137('0x79')](_0x2b1390),Promise['all'](_0x448edb[_0x45b137('0x2c')][_0x45b137('0x9b')]((_0x176c9d,_0x108598)=>{const _0x14f1d3=_0x45b137,_0x589e4f={'from':_0x176c9d[_0x14f1d3('0x3')],'to':_0x176c9d['to'],'subject':_0x176c9d['subject'],'html':_0x176c9d[_0x14f1d3('0x4c')],'headers':{'Date':moment(_0x176c9d[_0x14f1d3('0x26')])[_0x14f1d3('0xa0')]('ddd,\x20DD\x20MMM\x20YYYY\x20HH:mm:ss\x20ZZ')},'attachments':[]};return _0x176c9d['cc']&&(_0x589e4f[_0x14f1d3('0x90')]['Cc']=_0x176c9d['cc']),_0x176c9d[_0x14f1d3('0xbb')]&&(_0x589e4f[_0x14f1d3('0x90')][_0x14f1d3('0x67')]=_0x176c9d[_0x14f1d3('0xbb')]),new Promise(function(_0x39bf8c,_0x18f800){const _0x305936=_0x14f1d3;if(_0x176c9d[_0x305936('0x51')])for(let _0x504b84=0x0;_0x504b84<_0x176c9d['Attachments'][_0x305936('0x71')];_0x504b84++){const _0x47b1d7=_0x176c9d['Attachments'][_0x504b84],_0x3990e7=path[_0x305936('0xc0')](_0x58908c,_0x47b1d7['basename']);fs[_0x305936('0x6c')](_0x3990e7)&&_0x589e4f[_0x305936('0xa1')]['push']({'name':_0x47b1d7[_0x305936('0x4d')],'contentType':_0x47b1d7['type'],'data':fs['readFileSync'](_0x3990e7)});}emlformat[_0x305936('0x60')](_0x589e4f,function(_0x580f04,_0x359964){const _0x49aefa=_0x305936;if(_0x580f04)return _0x18f800(_0x580f04);return fs[_0x49aefa('0x9a')](path[_0x49aefa('0xc0')](_0x2b1390,util[_0x49aefa('0xa0')]('message%d.eml',_0x108598)),_0x359964),_0x39bf8c(_0x359964);});});})[_0x45b137('0x6e')](function(){const _0x416ed4=_0x45b137;return new Promise(function(_0x559451,_0x273c04){zipdir(_0x2b1390,{'saveTo':_0x11ca11},function(_0x566c1f,_0x301d35){if(_0x566c1f)return _0x273c04(_0x566c1f);return _0x559451(_0x301d35);});})[_0x416ed4('0x6e')](function(){return new Promise(function(_0x5a4e2f,_0x28a9a4){rimraf(_0x2b1390,function(_0x4eb8c2){if(_0x4eb8c2)_0x28a9a4(_0x4eb8c2);return _0x5a4e2f();});});})['then'](function(){const _0x406fdb=_0x416ed4;return _0x5c64ee[_0x406fdb('0x13')](_0x11ca11,_0x452308,function(_0x4a4420){const _0x6dbe17=_0x406fdb;_0x4a4420?console['log'](_0x6dbe17('0xc2'),_0x4a4420):fs[_0x6dbe17('0x1')](_0x11ca11);});});}));}else return _0x5c64ee[_0x45b137('0xd')](0xc8);})[_0x1f3e06('0x16')](handleError(_0x5c64ee,null));}; \ No newline at end of file +const a489_0x15d9=['i.disposition','mail_accounts','catch','length','emit','SELECT','download','headers','show','util','i.secondDisposition','YYYY-MM-DD\x20HH:mm:ss','operator','it.MailInteractionId\x20=\x20i.id','eml-format','pick','filter','DESC','c.firstName','sqlOperator','SUM(me.read\x20=\x200\x20AND\x20me.direction\x20=\x20\x27in\x27)','count','Users','expr','get','join','attributes','c.firstName\x20LIKE\x20?\x20OR\x20c.lastName\x20LIKE\x20?\x20OR\x20c.email\x20LIKE\x20?','groupBy','i.lastMsgDirection','parse','o.fullname','start','server','forEach','`\x20=\x200','u.id','../../components/parsers/advancedSearch','concat','limit','tag','like','set','getFullTextValue','format','MATCH\x20(me.plainBody,\x20me.subject)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','i.MailAccountId\x20IN\x20?','c.mobile','i.createdAt','text','options','lastMsgBody','mailInteractionTags:save','select','i.to','toString','addTags','ui.MailInteractionId','find','squel','key','params','files','model','a.mandatoryDisposition','resolve','me.MailInteractionId\x20=\x20i.id','`unreadMessages`\x20=\x200','having','i.ContactId','zip-dir','Tag','fieldName','u.id\x20=\x20ui.UserId','Contact.lastName','a.key','writeFileSync','i.MailAccountId','i.substatus','sendStatus','sequelize','\x20IS\x20NULL','path','register','html-to-text','json','i.MailAccountId\x20IS\x20NOT\x20NULL','user','../../config/environment','i.createdAt\x20BETWEEN\x20?\x20AND\x20?','left_join','mkdirSync','i.id','removeTags','Contact.email','MATCH\x20(c.firstName,\x20c.lastName,\x20c.phone,\x20c.mobile,\x20c.fax,\x20c.email)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','include','trimStart','order','o.id\x20=\x20i.UserId','describe','push','MailMessage','unreadMessages','user_has_mail_interactions','i.attach','../../components/parsers/qs','i.MailAccountId\x20IS\x20NULL','Messages','CONCAT(\x27,\x27,\x20`TagIds`,\x20\x27,\x27)\x20LIKE\x20?','Tags','transcript-%d-%s.zip','destroy','Attachment','body','isArray','User','where','unix','journey','mail_interactions','index','TagIds','update','i.subject','MailAccountId','cm_contacts','stack','unlinkSync','i.lastMsgAt','lastMsgText','users','all','c.phone','query','plainBody','value','$substring','attachments','$gte','err','Contact.fax','../../rediscache','UserId','merge','ids','from','includeAll','sort','basename','nolimit','addMessage','ui.MailInteractionId\x20IN\x20?','i.updatedAt','Owner.fullname','status','message%d.eml','isEmpty','offset','t.id\x20IN\x20?','search','rawAttributes','../../config/logger','Contact.mobile','rimraf','type','GROUP_CONCAT(DISTINCT\x20t.id)','union','keys','split','replace','c.fax','error','root','../../mysqldb','i.closedAt','buildExpression','MATCH\x20(i.to,\x20i.subject)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','end','Contact','./mailInteraction.socket','rows','subject','tmp','field','moment','then','getMessages','c.lastName','Contact.phone','existsSync','MailInteraction','findOne','createdAt','api','ContactId','enableEmailPreview','fields','i.id\x20LIKE\x20?','filters','conditions','isEmail','mail_interaction_has_tags','fullname','readFileSync','name','create','some','read','null','map','intersection','Attachments','MailInteractionId','findAll','bcc'];(function(_0x267992,_0x79a1e3){const _0x15d9d1=function(_0x2686ce){while(--_0x2686ce){_0x267992['push'](_0x267992['shift']());}};_0x15d9d1(++_0x79a1e3);}(a489_0x15d9,0x17b));const a489_0x2686=function(_0x267992,_0x79a1e3){_0x267992=_0x267992-0xfb;let _0x15d9d1=a489_0x15d9[_0x267992];return _0x15d9d1;};const a489_0x3f7ce3=a489_0x2686;'use strict';const emlformat=require(a489_0x3f7ce3(0x13e)),rimraf=require(a489_0x3f7ce3(0xfc)),zipdir=require(a489_0x3f7ce3(0x176)),moment=require(a489_0x3f7ce3(0x111)),util=require(a489_0x3f7ce3(0x139)),path=require(a489_0x3f7ce3(0x182)),fs=require('fs'),_=require('lodash'),squel=require(a489_0x3f7ce3(0x16b)),{htmlToText}=require(a489_0x3f7ce3(0x184)),{getSocket}=require(a489_0x3f7ce3(0x1be)),socket=getSocket(),qs=require(a489_0x3f7ce3(0x19a)),as=require(a489_0x3f7ce3(0x155)),logger=require(a489_0x3f7ce3(0x1d2))(a489_0x3f7ce3(0x11a)),config=require(a489_0x3f7ce3(0x188)),{db}=require(a489_0x3f7ce3(0x106)),{Op,QueryTypes}=require(a489_0x3f7ce3(0x180));require(a489_0x3f7ce3(0x10c))[a489_0x3f7ce3(0x183)](socket);function respondWithStatusCode(_0x59c945,_0x4f85c3){return _0x4f85c3=_0x4f85c3||0xcc,function(_0x34d0ad){const _0x39d25f=a489_0x2686;if(_0x34d0ad)return _0x59c945[_0x39d25f(0x17f)](_0x4f85c3);return _0x59c945[_0x39d25f(0x1cb)](_0x4f85c3)[_0x39d25f(0x10a)]();};}function respondWithResult(_0x3b21e6,_0x187182){return _0x187182=_0x187182||0xc8,function(_0x1eef09){const _0x514de0=a489_0x2686;if(_0x1eef09)return _0x3b21e6[_0x514de0(0x1cb)](_0x187182)[_0x514de0(0x185)](_0x1eef09);};}function respondWithFilteredResult(_0xa2b328,_0xdb5239){return function(_0xb1935){const _0x353074=a489_0x2686;if(_0xb1935){const _0x4e6ca0=_0xb1935[_0x353074(0x145)],_0x327d83=_0xdb5239[_0x353074(0x1ce)];let _0x4f7532=_0xdb5239[_0x353074(0x1ce)]+_0xdb5239[_0x353074(0x157)],_0x4f75c3;return _0x4f7532>=_0x4e6ca0?(_0x4f7532=_0x4e6ca0,_0x4f75c3=0xc8):_0x4f75c3=0xce,_0xa2b328[_0x353074(0x1cb)](_0x4f75c3),_0xa2b328[_0x353074(0x15a)]('Content-Range',_0x327d83+'-'+_0x4f7532+'/'+_0x4e6ca0)[_0x353074(0x185)](_0xb1935);}return null;};}function saveUpdates(_0x295ca9){return function(_0x3d2cfd){const _0x1b1b55=a489_0x2686;if(_0x3d2cfd)return _0x3d2cfd[_0x1b1b55(0x1ab)](_0x295ca9)[_0x1b1b55(0x112)](function(_0x3b0b12){return _0x3b0b12;});return null;};}function removeEntity(_0x14f75a){return function(_0x38fe43){const _0x3926c9=a489_0x2686;if(_0x38fe43)return _0x38fe43[_0x3926c9(0x1a0)]()[_0x3926c9(0x112)](function(){const _0x3d2432=_0x3926c9;_0x14f75a[_0x3d2432(0x1cb)](0xcc)[_0x3d2432(0x10a)]();});};}function handleEntityNotFound(_0x407535){return function(_0x198ba9){const _0x30879c=a489_0x2686;return!_0x198ba9&&_0x407535[_0x30879c(0x17f)](0x194),_0x198ba9;};}function handleError(_0x58c36d,_0x438a2c){return _0x438a2c=_0x438a2c||0x1f4,function(_0x55ad0c){const _0xb3f1f7=a489_0x2686;logger[_0xb3f1f7(0x104)](_0x55ad0c[_0xb3f1f7(0x1af)]),_0x55ad0c[_0xb3f1f7(0x125)]&&delete _0x55ad0c['name'],_0x58c36d[_0xb3f1f7(0x1cb)](_0x438a2c)['send'](_0x55ad0c);};}function getInteractionUsers(_0x195040,_0x118345){return new Promise(function(_0x19e14e,_0x44cd66){const _0x35a4f6=a489_0x2686;try{_0x118345[_0x195040['id']]&&(_0x195040[_0x35a4f6(0x146)]=_[_0x35a4f6(0x12a)](_0x118345[_0x195040['id']],function(_0x242e86){const _0x15f103=_0x35a4f6;return{'id':_0x242e86['id'],'fullname':_0x242e86[_0x15f103(0x123)]};}));}catch(_0x1d5627){_0x44cd66(_0x1d5627);}_0x19e14e(_0x195040);});}function getInteractionTags(_0x3a1611,_0x521a30){return new Promise(function(_0x13ac32,_0xabe2b5){const _0x28ea23=a489_0x2686;try{_0x3a1611['TagIds']&&(_0x3a1611[_0x28ea23(0x19e)]=[],_0x3a1611[_0x28ea23(0x1aa)][_0x28ea23(0x101)](',')['forEach'](function(_0x3f0d1a){const _0x52c64a=_0x28ea23;_0x3a1611[_0x52c64a(0x19e)]['push'](_0x521a30[_0x3f0d1a]);})),delete _0x3a1611[_0x28ea23(0x1aa)];}catch(_0x1b7acf){_0xabe2b5(_0x1b7acf);}_0x13ac32(_0x3a1611);});}function getLastMessageText(_0x2880c5){return new Promise(function(_0x2c3e08,_0x3b683a){const _0x1181c3=a489_0x2686;return db[_0x1181c3(0x117)][_0x1181c3(0x118)]({'where':{'id':_0x2880c5['id']},'attributes':[_0x1181c3(0x163),_0x1181c3(0x1b2)],'raw':!![]})[_0x1181c3(0x112)](function(_0xf68365){const _0x70d105=_0x1181c3;!_0xf68365[_0x70d105(0x1b2)]?_0x2880c5[_0x70d105(0x1b2)]=_[_0x70d105(0x191)](htmlToText(_0xf68365[_0x70d105(0x163)],{'preserveNewlines':!![],'singleNewLineParagraphs':!![],'uppercaseHeadings':![],'noLinkBrackets':!![],'ignoreImage':!![]})):_0x2880c5['lastMsgText']=_0xf68365['lastMsgText'],_0x2c3e08(_0x2880c5);})['catch'](function(_0x4d758c){_0x3b683a(_0x4d758c);});});}function updateMailInteraction(_0x12d27e,_0x32862d,_0x173c37,_0x452215){return new Promise(function(_0x2ada23,_0x29402d){const _0x33cc58=a489_0x2686;return getInteractionUsers(_0x12d27e,_0x173c37)['then'](function(_0x4205eb){return getInteractionTags(_0x4205eb,_0x32862d);})[_0x33cc58(0x112)](function(_0x1b2422){_0x452215?_0x2ada23(getLastMessageText(_0x1b2422)):_0x2ada23(_0x1b2422);})[_0x33cc58(0x132)](function(_0x4d30d4){_0x29402d(_0x4d30d4);});});}exports[a489_0x3f7ce3(0x1a9)]=function(_0x3b3f59,_0x15e608){const _0x2cb856=a489_0x3f7ce3,_0x549b0a={},_0xa75def={},_0x3e8879={'count':0x0,'rows':[]},_0x16cf97=_[_0x2cb856(0x12a)](db[_0x2cb856(0x117)][_0x2cb856(0x1d1)],function(_0x2cec71){const _0x44c5b3=_0x2cb856;return{'name':_0x2cec71[_0x44c5b3(0x178)],'type':_0x2cec71['type'][_0x44c5b3(0x16c)]};});_0xa75def[_0x2cb856(0x16f)]=_['map'](_0x16cf97,_0x2cb856(0x125)),_0xa75def[_0x2cb856(0x1b6)]=_['keys'](_0x3b3f59['query']),_0xa75def['filters']=_[_0x2cb856(0x12b)](_0xa75def[_0x2cb856(0x16f)],_0xa75def[_0x2cb856(0x1b6)]),_0x549b0a['attributes']=_[_0x2cb856(0x12b)](_0xa75def[_0x2cb856(0x16f)],qs[_0x2cb856(0x11d)](_0x3b3f59[_0x2cb856(0x1b6)]['fields'])),_0x549b0a[_0x2cb856(0x14a)]=_0x549b0a['attributes'][_0x2cb856(0x133)]?_0x549b0a[_0x2cb856(0x14a)]:_0xa75def[_0x2cb856(0x16f)];typeof _0x3b3f59[_0x2cb856(0x1b6)][_0x2cb856(0x1c6)]==='undefined'&&(_0x549b0a['limit']=qs[_0x2cb856(0x157)](_0x3b3f59[_0x2cb856(0x1b6)]['limit']),_0x549b0a['offset']=qs['offset'](_0x3b3f59[_0x2cb856(0x1b6)][_0x2cb856(0x1ce)]));_0x549b0a[_0x2cb856(0x192)]=qs[_0x2cb856(0x1c4)](_0x3b3f59[_0x2cb856(0x1b6)][_0x2cb856(0x1c4)]),_0x549b0a[_0x2cb856(0x1a5)]=qs['filters'](_[_0x2cb856(0x13f)](_0x3b3f59['query'],_0xa75def[_0x2cb856(0x11f)]),_0x16cf97);let _0xa2c1d9=[];const _0x2a6bc8=squel[_0x2cb856(0x165)]()['field']('id')['field']('name')[_0x2cb856(0x110)]('color')[_0x2cb856(0x1c2)]('tools_tags'),_0x26a95d=squel['select']()[_0x2cb856(0x110)](_0x2cb856(0x154))[_0x2cb856(0x110)]('u.fullname')[_0x2cb856(0x110)](_0x2cb856(0x169))[_0x2cb856(0x1c2)](_0x2cb856(0x198),'ui')[_0x2cb856(0x18a)](_0x2cb856(0x1b3),'u',_0x2cb856(0x179)),_0xb44c3f=squel['select']()[_0x2cb856(0x1c2)](_0x2cb856(0x1a8),'i')[_0x2cb856(0x18a)](_0x2cb856(0x1ae),'c','c.id\x20=\x20i.ContactId\x20AND\x20c.deletedAt\x20IS\x20NULL')[_0x2cb856(0x18a)](_0x2cb856(0x1b3),'o',_0x2cb856(0x193))['left_join'](_0x2cb856(0x131),'a','a.id\x20=\x20i.MailAccountId')['left_join']('mail_messages','me',_0x2cb856(0x172))[_0x2cb856(0x18a)](_0x2cb856(0x122),'it',_0x2cb856(0x13d))[_0x2cb856(0x18a)]('tools_tags','t','t.id\x20=\x20it.TagId'),_0x15a832=squel[_0x2cb856(0x147)]();let _0xed1cff=[];const _0xf43d9e=squel[_0x2cb856(0x147)]();let _0x32bbfc;if(_0x3b3f59[_0x2cb856(0x1b6)][_0x2cb856(0x1d0)]){_0x32bbfc=as['parseSearch'](_0x3b3f59['query'][_0x2cb856(0x1d0)]);const _0x245fa6=_0x32bbfc[_0x2cb856(0x143)];for(let _0x529b60=0x0;_0x529b60<_0x32bbfc[_0x2cb856(0x120)][_0x2cb856(0x133)];_0x529b60++){const _0x1e3378=_0x32bbfc[_0x2cb856(0x120)][_0x529b60],_0xac4392='i';let _0x75367c,_0x5aea1f=_[_0x2cb856(0x16a)](_0x16cf97,[_0x2cb856(0x125),_0x1e3378[_0x2cb856(0x110)]]);if(!_0x5aea1f)switch(_0x1e3378['field']){case _0x2cb856(0x197):_0x1e3378[_0x2cb856(0x1b8)]==0x1?_0xb44c3f['having']('`'+_0x1e3378[_0x2cb856(0x110)]+_0x2cb856(0x153)):_0xb44c3f['having']('`'+_0x1e3378[_0x2cb856(0x110)]+'`\x20>\x200');break;case _0x2cb856(0x10b):if(_0x1e3378[_0x2cb856(0x13c)]===_0x2cb856(0x1b9)){if(_0x1e3378[_0x2cb856(0x1b8)]['split']('\x20')['length']>0x1)_0x15a832[_0x245fa6](_0x2cb856(0x18f),qs[_0x2cb856(0x15b)](_0x1e3378[_0x2cb856(0x1b8)]),null);else{const _0x40b1dc='%'+_0x1e3378['value']+'%';_0x15a832[_0x245fa6](_0x2cb856(0x14b),_0x40b1dc,_0x40b1dc,_0x40b1dc);}}else _0x5aea1f=_[_0x2cb856(0x16a)](_0x16cf97,[_0x2cb856(0x125),_0x2cb856(0x11b)]),_0x1e3378[_0x2cb856(0x110)]=_0x2cb856(0x11b),_0x75367c=as['buildExpression'](_0xac4392,_0x5aea1f[_0x2cb856(0xfd)],_0x1e3378),_0x15a832[_0x245fa6](_0x75367c[_0x2cb856(0x161)],_0x75367c[_0x2cb856(0x1b8)][_0x2cb856(0x150)],_0x75367c[_0x2cb856(0x1b8)][_0x2cb856(0x10a)]);break;case _0x2cb856(0x177):{const _0x1c16c1=_0x1e3378[_0x2cb856(0x1b8)][_0x2cb856(0x101)](',')[_0x2cb856(0x12a)](function(_0x569a63){return Number(_0x569a63);});_0x1c16c1[_0x2cb856(0x152)](function(_0x2570b8){_0xf43d9e['or']('CONCAT(\x27,\x27,\x20`TagIds`,\x20\x27,\x27)\x20LIKE\x20?','%,'+_0x2570b8+',%');}),_0xed1cff=_[_0x2cb856(0xff)](_0xed1cff,_0x1c16c1);}break;case _0x2cb856(0x1a4):_0x1e3378['operator']===_0x2cb856(0x1b9)?_0x15a832[_0x245fa6]('CONCAT_WS(\x27\x20\x27,\x20o.name,\x20o.fullname)\x20LIKE\x20?','%'+_0x1e3378[_0x2cb856(0x1b8)]+'%',null):(_0x5aea1f=_[_0x2cb856(0x16a)](_0x16cf97,[_0x2cb856(0x125),_0x2cb856(0x1bf)]),_0x1e3378['field']=_0x2cb856(0x1bf),_0x75367c=as[_0x2cb856(0x108)](_0xac4392,_0x5aea1f[_0x2cb856(0xfd)],_0x1e3378),_0x15a832[_0x245fa6](_0x75367c[_0x2cb856(0x161)],_0x75367c[_0x2cb856(0x1b8)][_0x2cb856(0x150)],_0x75367c[_0x2cb856(0x1b8)][_0x2cb856(0x10a)]));break;case _0x2cb856(0x1b7):_0x75367c=as['buildExpression']('me',null,_0x1e3378),_0x15a832[_0x245fa6](_0x75367c['text'],_0x75367c[_0x2cb856(0x1b8)][_0x2cb856(0x150)],_0x75367c[_0x2cb856(0x1b8)][_0x2cb856(0x10a)]);break;}else _0x75367c=as['buildExpression'](_0xac4392,_0x5aea1f['type'],_0x1e3378),_0x15a832[_0x245fa6](_0x75367c[_0x2cb856(0x161)],_0x75367c[_0x2cb856(0x1b8)][_0x2cb856(0x150)],_0x75367c[_0x2cb856(0x1b8)]['end']);}}else{const _0x4aafc9=_(_0x3b3f59[_0x2cb856(0x1b6)])[_0x2cb856(0x100)]()[_0x2cb856(0x12a)](function(_0x4730e2){const _0x258fa3=_0x2cb856;return _[_0x258fa3(0x127)](_0x16cf97,['name',_0x4730e2])?_0x4730e2:undefined;})['compact']()[_0x2cb856(0x1b8)]();!_[_0x2cb856(0x1cd)](_0x4aafc9)&&_0x4aafc9[_0x2cb856(0x152)](function(_0x55dc10){const _0x41c6ca=_0x2cb856;if(_0x55dc10===_0x41c6ca(0x1ad))_0xb44c3f[_0x41c6ca(0x1a5)](_0x41c6ca(0x15e),[][_0x41c6ca(0x156)](_0x3b3f59[_0x41c6ca(0x1b6)][_0x55dc10]));else{if(_0x55dc10===_0x41c6ca(0x119)){const _0x5eb26b=JSON[_0x41c6ca(0x14e)](_0x3b3f59['query'][_0x55dc10])[_0x41c6ca(0x1bb)],_0x2d7be2=JSON['parse'](_0x3b3f59[_0x41c6ca(0x1b6)][_0x55dc10])['$lte'];_0xb44c3f[_0x41c6ca(0x1a5)](_0x41c6ca(0x189),_0x5eb26b,_0x2d7be2);}else _0x3b3f59[_0x41c6ca(0x1b6)][_0x55dc10]===_0x41c6ca(0x129)?_0xb44c3f['where']('i.'+_0x55dc10+_0x41c6ca(0x181)):_0xb44c3f['where']('i.'+_0x55dc10+'\x20=\x20?',_0x3b3f59[_0x41c6ca(0x1b6)][_0x55dc10]);}});_0x3b3f59['query']['read']&&(_0x3b3f59[_0x2cb856(0x1b6)][_0x2cb856(0x128)]==0x1?_0xb44c3f[_0x2cb856(0x174)](_0x2cb856(0x173)):_0xb44c3f[_0x2cb856(0x174)]('`unreadMessages`\x20>\x200'));_0x3b3f59[_0x2cb856(0x1b6)]['tag']&&(_0xed1cff=_[_0x2cb856(0x1a3)](_0x3b3f59[_0x2cb856(0x1b6)][_0x2cb856(0x158)])?_0x3b3f59[_0x2cb856(0x1b6)]['tag']:new Array(_0x3b3f59[_0x2cb856(0x1b6)][_0x2cb856(0x158)]),_0xed1cff[_0x2cb856(0x152)](function(_0x2d0a28){const _0x15484a=_0x2cb856;_0xf43d9e['or'](_0x15484a(0x19d),'%,'+_0x2d0a28+',%');}));if(_0x3b3f59[_0x2cb856(0x1b6)]['filter']){const _0x945a38=_0x3b3f59[_0x2cb856(0x1b6)][_0x2cb856(0x140)][_0x2cb856(0x102)]('\x5c','\x5c\x5c')[_0x2cb856(0x102)](/'/g,'\x27\x27');if(qs['isNumeric'](_0x945a38))_0x15a832['or'](_0x2cb856(0x11e),_0x945a38+'%');else qs[_0x2cb856(0x121)](_0x945a38)?_0x15a832['or']('c.email\x20LIKE\x20?',_0x945a38+'%'):_0x15a832['or'](_0x2cb856(0x109),qs['getFullTextValue'](_0x945a38))['or'](_0x2cb856(0x15d),qs[_0x2cb856(0x15b)](_0x945a38));}}_0xb44c3f[_0x2cb856(0x1a5)](_0x15a832),_0xb44c3f['group'](_0x2cb856(0x18c));let _0x5bdb6f={'type':QueryTypes[_0x2cb856(0x135)],'raw':!![]};const _0x476317=_0xb44c3f['clone']();_0x476317['field'](_0x2cb856(0x18c)),_0x476317[_0x2cb856(0x110)](_0x2cb856(0x144),_0x2cb856(0x197)),_0x549b0a[_0x2cb856(0x192)]&&_0x549b0a['order'][_0x2cb856(0x152)](function(_0x18f29c){const _0x4df1f9=_0x2cb856;_0xb44c3f['order']('i.'+_0x18f29c[0x0],_0x18f29c[0x1]===_0x4df1f9(0x141)?![]:!![]);}),!_[_0x2cb856(0x1cd)](_0xed1cff)&&(_0xb44c3f[_0x2cb856(0x174)](_0xf43d9e),_0x476317['where'](_0x2cb856(0x1cf),_0xed1cff)),Promise[_0x2cb856(0x171)]()[_0x2cb856(0x112)](function(){const _0x2eb075=_0x2cb856;if(!_0x32bbfc){if(_0x3b3f59[_0x2eb075(0x1b6)][_0x2eb075(0x1ad)]||_0x3b3f59[_0x2eb075(0x1b6)][_0x2eb075(0x1a7)])return;_0x476317[_0x2eb075(0x1a5)](_0x2eb075(0x186)),_0xb44c3f['where'](_0x2eb075(0x186));return;}return _0x3b3f59[_0x2eb075(0x187)]['getMailAccounts']({'attributes':['id'],'raw':!![]})['then'](function(_0x683f85){const _0x44af7d=_0x2eb075;_[_0x44af7d(0x1cd)](_0x683f85)?(_0x476317[_0x44af7d(0x1a5)]('i.MailAccountId\x20IS\x20NULL'),_0xb44c3f[_0x44af7d(0x1a5)](_0x44af7d(0x19b))):(_0x476317[_0x44af7d(0x1a5)]('i.MailAccountId\x20IN\x20?',_['map'](_0x683f85,'id')),_0xb44c3f[_0x44af7d(0x1a5)](_0x44af7d(0x15e),_[_0x44af7d(0x12a)](_0x683f85,'id')));});})[_0x2cb856(0x112)](function(){const _0x2f8db9=_0x2cb856;db[_0x2f8db9(0x180)]['query'](_0x476317[_0x2f8db9(0x167)](),_0x5bdb6f)[_0x2f8db9(0x112)](function(_0x19cdcf){const _0x524a20=_0x2f8db9;_0x3e8879[_0x524a20(0x145)]=_0x19cdcf[_0x524a20(0x133)];if(_0x3e8879['count']===0x0)return[];return db['sequelize'][_0x524a20(0x1b6)](_0x2a6bc8[_0x524a20(0x167)](),_0x5bdb6f)[_0x524a20(0x112)](function(_0x52094b){const _0x531049=_0x524a20;_0xa2c1d9=_['keyBy'](_0x52094b,'id'),_0x5bdb6f=_[_0x531049(0x1c0)](_0x5bdb6f,{'model':db[_0x531049(0x117)],'mapToModel':!![],'raw':!![],'nest':!![]});_0x3b3f59[_0x531049(0x1b6)][_0x531049(0x11d)]?_0x549b0a[_0x531049(0x14a)][_0x531049(0x152)](function(_0x3ccd80){_0xb44c3f['field']('i.'+_0x3ccd80);}):(_0xb44c3f['field']('SUM(me.read\x20=\x200\x20AND\x20me.direction\x20=\x20\x27in\x27)','unreadMessages'),_0xb44c3f[_0x531049(0x110)](_0x531049(0x17b),'Account.key'),_0xb44c3f[_0x531049(0x110)](_0x531049(0x170),'Account.mandatoryDisposition'),_0xb44c3f['field'](_0x531049(0x18c)),_0xb44c3f['field'](_0x531049(0x160)),_0xb44c3f[_0x531049(0x110)](_0x531049(0x1c9)),_0xb44c3f['field']('i.closed'),_0xb44c3f['field'](_0x531049(0x107)),_0xb44c3f[_0x531049(0x110)](_0x531049(0x199)),_0xb44c3f[_0x531049(0x110)](_0x531049(0x1b1)),_0xb44c3f[_0x531049(0x110)](_0x531049(0x14d)),_0xb44c3f[_0x531049(0x110)](_0x531049(0x1ac)),_0xb44c3f['field'](_0x531049(0x130)),_0xb44c3f[_0x531049(0x110)](_0x531049(0x13a)),_0xb44c3f[_0x531049(0x110)]('i.thirdDisposition'),_0xb44c3f[_0x531049(0x110)](_0x531049(0x17e)),_0xb44c3f[_0x531049(0x110)](_0x531049(0x166)),_0xb44c3f[_0x531049(0x110)](_0x531049(0x175)),_0xb44c3f[_0x531049(0x110)](_0x531049(0x17d)),_0xb44c3f['field']('i.UserId'),_0xb44c3f['field'](_0x531049(0x142),'Contact.firstName'),_0xb44c3f['field'](_0x531049(0x114),_0x531049(0x17a)),_0xb44c3f['field']('c.email',_0x531049(0x18e)),_0xb44c3f['field'](_0x531049(0x1b5),_0x531049(0x115)),_0xb44c3f['field'](_0x531049(0x15f),_0x531049(0xfb)),_0xb44c3f[_0x531049(0x110)](_0x531049(0x103),_0x531049(0x1bd)),_0xb44c3f[_0x531049(0x110)](_0x531049(0x14f),_0x531049(0x1ca)),_0xb44c3f[_0x531049(0x110)]('o.internal','Owner.internal'),_0xb44c3f[_0x531049(0x110)](_0x531049(0xfe),'TagIds'));if(_0x549b0a['limit'])_0xb44c3f[_0x531049(0x157)](_0x549b0a[_0x531049(0x157)]);if(_0x549b0a[_0x531049(0x1ce)])_0xb44c3f[_0x531049(0x1ce)](_0x549b0a['offset']);return db[_0x531049(0x180)]['query'](_0xb44c3f['toString'](),_0x5bdb6f);})[_0x524a20(0x112)](function(_0x5122bc){const _0x3f2ffb=_0x524a20;return _0x26a95d['where'](_0x3f2ffb(0x1c8),_['map'](_0x5122bc,'id')),db[_0x3f2ffb(0x180)][_0x3f2ffb(0x1b6)](_0x26a95d[_0x3f2ffb(0x167)](),_0x5bdb6f)[_0x3f2ffb(0x112)](function(_0x710235){const _0x1d868b=_0x3f2ffb,_0x142a03=_[_0x1d868b(0x14c)](_0x710235,'MailInteractionId'),_0x3b245f=[];return db['Setting'][_0x1d868b(0x118)]({'attributes':['enableEmailPreview'],'raw':!![]})[_0x1d868b(0x112)](function(_0x1bc811){const _0x5b05d9=_0x1d868b,_0x31a26f=_0x1bc811[_0x5b05d9(0x11c)];return _0x5122bc[_0x5b05d9(0x152)](function(_0x506d4d){const _0x3ab4b9=_0x5b05d9;_0x3b245f[_0x3ab4b9(0x195)](updateMailInteraction(_0x506d4d,_0xa2c1d9,_0x142a03,_0x31a26f));}),Promise['all'](_0x3b245f);});});});})[_0x2f8db9(0x112)](function(_0x3fbc44){const _0x2ab66f=_0x2f8db9;return _0x3e8879[_0x2ab66f(0x10d)]=_0x3fbc44,_0x3e8879;})[_0x2f8db9(0x112)](respondWithFilteredResult(_0x15e608,_0x549b0a));})[_0x2cb856(0x132)](handleError(_0x15e608,null));},exports[a489_0x3f7ce3(0x138)]=function(_0xc64c69,_0x592f9d){const _0x5ad0f3=a489_0x3f7ce3;let _0x3f48f2={'raw':![],'where':{'id':_0xc64c69[_0x5ad0f3(0x16d)]['id']}};const _0x41e415={};return _0x41e415[_0x5ad0f3(0x16f)]=_['keys'](db[_0x5ad0f3(0x117)]['rawAttributes']),_0x41e415['query']=_[_0x5ad0f3(0x100)](_0xc64c69['query']),_0x41e415['filters']=_[_0x5ad0f3(0x12b)](_0x41e415[_0x5ad0f3(0x16f)],_0x41e415[_0x5ad0f3(0x1b6)]),_0x3f48f2['attributes']=_[_0x5ad0f3(0x12b)](_0x41e415['model'],qs['fields'](_0xc64c69[_0x5ad0f3(0x1b6)]['fields'])),_0x3f48f2[_0x5ad0f3(0x14a)]=_0x3f48f2['attributes'][_0x5ad0f3(0x133)]?_0x3f48f2[_0x5ad0f3(0x14a)]:_0x41e415[_0x5ad0f3(0x16f)],_0xc64c69['query'][_0x5ad0f3(0x1c3)]&&(_0x3f48f2['include']=[{'all':!![]}]),_0x3f48f2=_['merge']({},_0x3f48f2,_0xc64c69['options']),db['MailInteraction']['findOne'](_0x3f48f2)['then'](handleEntityNotFound(_0x592f9d,null))['then'](respondWithResult(_0x592f9d,null))[_0x5ad0f3(0x132)](handleError(_0x592f9d,null));},exports['create']=function(_0x10b15a,_0x4878ff){const _0x584133=a489_0x3f7ce3;return db['MailInteraction'][_0x584133(0x126)](_0x10b15a[_0x584133(0x1a2)],{})[_0x584133(0x112)](respondWithResult(_0x4878ff,0xc9))[_0x584133(0x132)](handleError(_0x4878ff,null));},exports[a489_0x3f7ce3(0x1ab)]=function(_0x27bffb,_0x314647){const _0x495224=a489_0x3f7ce3;return _0x27bffb[_0x495224(0x1a2)]['id']&&delete _0x27bffb[_0x495224(0x1a2)]['id'],db[_0x495224(0x117)][_0x495224(0x118)]({'where':{'id':_0x27bffb[_0x495224(0x16d)]['id']}})[_0x495224(0x112)](handleEntityNotFound(_0x314647,null))[_0x495224(0x112)](saveUpdates(_0x27bffb[_0x495224(0x1a2)],null))[_0x495224(0x112)](respondWithResult(_0x314647,null))['catch'](handleError(_0x314647,null));},exports['destroy']=function(_0x51adbc,_0x5d6b1a){const _0x3fa90b=a489_0x3f7ce3;return db[_0x3fa90b(0x117)][_0x3fa90b(0x118)]({'where':{'id':_0x51adbc['params']['id']}})[_0x3fa90b(0x112)](handleEntityNotFound(_0x5d6b1a,null))[_0x3fa90b(0x112)](removeEntity(_0x5d6b1a,null))[_0x3fa90b(0x132)](handleError(_0x5d6b1a,null));},exports[a489_0x3f7ce3(0x194)]=function(_0x39a2a5,_0x3f9c2f){const _0x20c170=a489_0x3f7ce3;return db[_0x20c170(0x117)]['describe']()[_0x20c170(0x112)](respondWithResult(_0x3f9c2f,null))[_0x20c170(0x132)](handleError(_0x3f9c2f,null));},exports[a489_0x3f7ce3(0x1c7)]=function(_0x1a03cc,_0xb53905){const _0x172e3a=a489_0x3f7ce3;return db[_0x172e3a(0x196)]['findOne']({'where':{'id':_0x1a03cc['params']['id']}})['then'](function(_0x5e6e87){const _0x1afdb4=_0x172e3a;if(_0x5e6e87)return _0x5e6e87['addMessage'](_0x1a03cc[_0x1afdb4(0x1a2)][_0x1afdb4(0x1c1)],{'through':_['omit'](_0x1a03cc[_0x1afdb4(0x1a2)],[_0x1afdb4(0x1c1),'id'])});})[_0x172e3a(0x112)](respondWithResult(_0xb53905,null))['catch'](handleError(_0xb53905,null));},exports[a489_0x3f7ce3(0x113)]=function(_0x5aae79,_0x167f30){const _0x3b9773=a489_0x3f7ce3;let _0x336732={'raw':![],'where':{}};const _0x5b98f8={},_0x5eaa3c={'count':0x0,'rows':[]};return db[_0x3b9773(0x117)]['findOne']({'where':{'id':_0x5aae79['params']['id']}})[_0x3b9773(0x112)](handleEntityNotFound(_0x167f30,null))[_0x3b9773(0x112)](function(_0x2b3e9f){const _0x229c34=_0x3b9773;if(_0x2b3e9f){_0x5b98f8['model']=_[_0x229c34(0x100)](db[_0x229c34(0x196)][_0x229c34(0x1d1)]),_0x5b98f8['query']=_['keys'](_0x5aae79['query']),_0x5b98f8['filters']=_['intersection'](_0x5b98f8[_0x229c34(0x16f)],_0x5b98f8[_0x229c34(0x1b6)]),_0x336732[_0x229c34(0x14a)]=_[_0x229c34(0x12b)](_0x5b98f8[_0x229c34(0x16f)],qs[_0x229c34(0x11d)](_0x5aae79[_0x229c34(0x1b6)][_0x229c34(0x11d)])),_0x336732[_0x229c34(0x14a)]=_0x336732['attributes'][_0x229c34(0x133)]?_0x336732['attributes']:_0x5b98f8[_0x229c34(0x16f)];typeof _0x5aae79['query']['nolimit']==='undefined'&&(_0x336732[_0x229c34(0x157)]=qs[_0x229c34(0x157)](_0x5aae79[_0x229c34(0x1b6)][_0x229c34(0x157)]),_0x336732['offset']=qs['offset'](_0x5aae79[_0x229c34(0x1b6)][_0x229c34(0x1ce)]));_0x336732['order']=qs['sort'](_0x5aae79[_0x229c34(0x1b6)][_0x229c34(0x1c4)]),_0x336732[_0x229c34(0x1a5)]=qs[_0x229c34(0x11f)](_[_0x229c34(0x13f)](_0x5aae79[_0x229c34(0x1b6)],_0x5b98f8[_0x229c34(0x11f)])),_0x336732[_0x229c34(0x1a5)][_0x229c34(0x12d)]=_0x2b3e9f['id'];_0x5aae79[_0x229c34(0x1b6)][_0x229c34(0x140)]&&(_0x336732['where']=_[_0x229c34(0x1c0)](_0x336732['where'],{[Op['or']]:_[_0x229c34(0x12a)](_0x336732[_0x229c34(0x14a)],function(_0xb871af){const _0x828cbd=_0x229c34,_0x33acf9={};return _0x33acf9[_0xb871af]={[Op[_0x828cbd(0x159)]]:'%'+_0x5aae79[_0x828cbd(0x1b6)]['filter']+'%'},_0x33acf9;})}));if(_0x5aae79[_0x229c34(0x1b6)][_0x229c34(0x1bb)]){const _0x5805a7=_0x5aae79['query'][_0x229c34(0x1bb)]['split'](','),_0x62fe21={};_0x62fe21[_0x5805a7[0x0]]={[Op['gte']]:moment(_0x5805a7[0x1])[_0x229c34(0x15c)](_0x229c34(0x13b))},_0x336732['where']=_['merge'](_0x336732[_0x229c34(0x1a5)],_0x62fe21);}return _0x336732=_[_0x229c34(0x1c0)]({},_0x336732,_0x5aae79[_0x229c34(0x162)]),db[_0x229c34(0x196)][_0x229c34(0x145)]({'where':_0x336732[_0x229c34(0x1a5)]})['then'](function(_0x55a5f5){const _0x176398=_0x229c34;return _0x5eaa3c[_0x176398(0x145)]=_0x55a5f5,_0x5aae79[_0x176398(0x1b6)][_0x176398(0x1c3)]&&(_0x336732[_0x176398(0x190)]=[{'all':!![]}]),db[_0x176398(0x196)][_0x176398(0x12e)](_0x336732);})['then'](function(_0x2324bf){const _0x57bb88=_0x229c34;return _0x5eaa3c[_0x57bb88(0x10d)]=_0x2324bf,_0x5eaa3c;});}})['then'](respondWithFilteredResult(_0x167f30,_0x336732))[_0x3b9773(0x132)](handleError(_0x167f30,null));},exports[a489_0x3f7ce3(0x168)]=function(_0x579296,_0x517ea2){const _0x156cf9=a489_0x3f7ce3;return db[_0x156cf9(0x117)][_0x156cf9(0x118)]({'where':{'id':_0x579296['params']['id']}})[_0x156cf9(0x112)](function(_0x3580de){const _0x50988d=_0x156cf9;if(_0x3580de)return _0x3580de['setTags'](_0x579296[_0x50988d(0x1a2)]['ids'],{'through':_['omit'](_0x579296['body'],[_0x50988d(0x1c1),'id'])})['then'](function(){const _0xe2e90a=_0x50988d;return db[_0xe2e90a(0x177)][_0xe2e90a(0x12e)]({'attributes':['id',_0xe2e90a(0x125),'color'],'where':{'id':_0x579296[_0xe2e90a(0x1a2)]['ids']}});})['then'](function(_0x3bfdb8){const _0x3035e2=_0x50988d;return socket[_0x3035e2(0x134)](_0x3035e2(0x164),{'id':Number(_0x579296[_0x3035e2(0x16d)]['id']),'tags':_0x3bfdb8||[]}),{'id':Number(_0x579296['params']['id']),'tags':_0x3bfdb8||[]};});})[_0x156cf9(0x112)](respondWithResult(_0x517ea2,null))[_0x156cf9(0x132)](handleError(_0x517ea2,null));},exports[a489_0x3f7ce3(0x18d)]=function(_0x4f33d6,_0x4bf6d3){const _0x4d70ea=a489_0x3f7ce3;return db[_0x4d70ea(0x117)]['findOne']({'where':{'id':_0x4f33d6[_0x4d70ea(0x16d)]['id']}})[_0x4d70ea(0x112)](handleEntityNotFound(_0x4bf6d3,null))[_0x4d70ea(0x112)](function(_0x375dad){const _0x255b4b=_0x4d70ea;if(_0x375dad)return _0x375dad[_0x255b4b(0x18d)](_0x4f33d6[_0x255b4b(0x1b6)][_0x255b4b(0x1c1)]);})[_0x4d70ea(0x112)](respondWithStatusCode(_0x4bf6d3,null))[_0x4d70ea(0x132)](handleError(_0x4bf6d3,null));},exports[a489_0x3f7ce3(0x136)]=function(_0x6f2656,_0x42b21a){const _0x21ed65=a489_0x3f7ce3,_0x1ea096=moment()[_0x21ed65(0x1a6)]()[_0x21ed65(0x167)](),_0x2956e0=path[_0x21ed65(0x149)](config[_0x21ed65(0x105)],'files',_0x21ed65(0x10f)),_0x29b0ee=path[_0x21ed65(0x149)](config[_0x21ed65(0x105)],_0x21ed65(0x151),_0x21ed65(0x16e),_0x21ed65(0x1ba)),_0x1d4117=path[_0x21ed65(0x149)](_0x2956e0,_0x1ea096),_0x1b09a5=util[_0x21ed65(0x15c)](_0x21ed65(0x19f),_0x6f2656['params']['id'],_0x1ea096),_0x5c3a06=path['join'](_0x2956e0,_0x1b09a5),_0x4590e8=[];_0x6f2656['query'][_0x21ed65(0x1ba)]&&_0x4590e8[_0x21ed65(0x195)]({'model':db[_0x21ed65(0x1a1)],'as':_0x21ed65(0x12c),'raw':!![]});const _0x502db3=[{'model':db[_0x21ed65(0x196)],'as':_0x21ed65(0x19c),'attributes':['id',_0x21ed65(0x1a2),_0x21ed65(0x1c2),'to','cc',_0x21ed65(0x12f),_0x21ed65(0x10e),_0x21ed65(0x119)],'where':{'secret':![]},'order':qs['sort']('id'),'include':_0x4590e8}];return db['MailInteraction'][_0x21ed65(0x118)]({'where':{'id':_0x6f2656[_0x21ed65(0x16d)]['id']},'include':_0x502db3})[_0x21ed65(0x112)](handleEntityNotFound(_0x42b21a,null))['then'](function(_0x3993ce){const _0x2805c6=_0x21ed65;if(_0x3993ce&&_0x3993ce[_0x2805c6(0x19c)]){const _0x37fc28=_0x3993ce[_0x2805c6(0x148)]({'plain':!![]});return fs[_0x2805c6(0x18b)](_0x1d4117),Promise[_0x2805c6(0x1b4)](_0x37fc28[_0x2805c6(0x19c)][_0x2805c6(0x12a)]((_0x57e87b,_0x3a8f51)=>{const _0x48181f=_0x2805c6,_0x25b3c0={'from':_0x57e87b[_0x48181f(0x1c2)],'to':_0x57e87b['to'],'subject':_0x57e87b[_0x48181f(0x10e)],'html':_0x57e87b[_0x48181f(0x1a2)],'headers':{'Date':moment(_0x57e87b[_0x48181f(0x119)])['format']('ddd,\x20DD\x20MMM\x20YYYY\x20HH:mm:ss\x20ZZ')},'attachments':[]};return _0x57e87b['cc']&&(_0x25b3c0[_0x48181f(0x137)]['Cc']=_0x57e87b['cc']),_0x57e87b[_0x48181f(0x12f)]&&(_0x25b3c0[_0x48181f(0x137)]['Bcc']=_0x57e87b['bcc']),new Promise(function(_0x5ea20d,_0xfdd371){const _0x62bcb=_0x48181f;if(_0x57e87b[_0x62bcb(0x12c)])for(let _0x9507b0=0x0;_0x9507b0<_0x57e87b[_0x62bcb(0x12c)][_0x62bcb(0x133)];_0x9507b0++){const _0x1ae198=_0x57e87b[_0x62bcb(0x12c)][_0x9507b0],_0x23bd16=path[_0x62bcb(0x149)](_0x29b0ee,_0x1ae198[_0x62bcb(0x1c5)]);fs[_0x62bcb(0x116)](_0x23bd16)&&_0x25b3c0[_0x62bcb(0x1ba)]['push']({'name':_0x1ae198['name'],'contentType':_0x1ae198[_0x62bcb(0xfd)],'data':fs[_0x62bcb(0x124)](_0x23bd16)});}emlformat['build'](_0x25b3c0,function(_0x213680,_0x6b8a00){const _0x1d7636=_0x62bcb;if(_0x213680)return _0xfdd371(_0x213680);return fs[_0x1d7636(0x17c)](path[_0x1d7636(0x149)](_0x1d4117,util['format'](_0x1d7636(0x1cc),_0x3a8f51)),_0x6b8a00),_0x5ea20d(_0x6b8a00);});});})[_0x2805c6(0x112)](function(){const _0x3b8753=_0x2805c6;return new Promise(function(_0x7885e5,_0x51c239){zipdir(_0x1d4117,{'saveTo':_0x5c3a06},function(_0x2fb2b4,_0xa7eccb){if(_0x2fb2b4)return _0x51c239(_0x2fb2b4);return _0x7885e5(_0xa7eccb);});})[_0x3b8753(0x112)](function(){return new Promise(function(_0x2a528f,_0x6f8827){rimraf(_0x1d4117,function(_0x3d7834){if(_0x3d7834)_0x6f8827(_0x3d7834);return _0x2a528f();});});})[_0x3b8753(0x112)](function(){const _0x3eab06=_0x3b8753;return _0x42b21a[_0x3eab06(0x136)](_0x5c3a06,_0x1b09a5,function(_0x5a2eea){const _0x3b2a1e=_0x3eab06;_0x5a2eea?console['log'](_0x3b2a1e(0x1bc),_0x5a2eea):fs[_0x3b2a1e(0x1b0)](_0x5c3a06);});});}));}else return _0x42b21a[_0x2805c6(0x17f)](0xc8);})['catch'](handleError(_0x42b21a,null));}; \ No newline at end of file diff --git a/server/api/mailInteraction/mailInteraction.events.js b/server/api/mailInteraction/mailInteraction.events.js index e478a57..5cb631e 100644 --- a/server/api/mailInteraction/mailInteraction.events.js +++ b/server/api/mailInteraction/mailInteraction.events.js @@ -1 +1 @@ -const a407_0x86dc=['length','findAll','remove','Users','../../mysqldb','update','addHook','emit','events','MailInteraction','setMaxListeners','setDataValue','unreadMessages','exports','then','map','catch'];(function(_0x3288f5,_0x86dc5f){const _0x54fba5=function(_0x6773a6){while(--_0x6773a6){_0x3288f5['push'](_0x3288f5['shift']());}};_0x54fba5(++_0x86dc5f);}(a407_0x86dc,0x146));const a407_0x54fb=function(_0x3288f5,_0x86dc5f){_0x3288f5=_0x3288f5-0x0;let _0x54fba5=a407_0x86dc[_0x3288f5];return _0x54fba5;};const _0x479992=a407_0x54fb;'use strict';const EventEmitter=require(_0x479992('0x5')),MailInteraction=require(_0x479992('0x1'))['db'][_0x479992('0x6')],MailMessage=require('../../mysqldb')['db']['MailMessage'],MailInteractionEvents=new EventEmitter();MailInteractionEvents[_0x479992('0x7')](0x0);const events={'afterCreate':'save','afterUpdate':_0x479992('0x2'),'afterDestroy':_0x479992('0x10')};function emitEvent(_0x6773a6){return function(_0x4cae2e){const _0xf59132=a407_0x54fb;_0x4cae2e['getUsers']({'attributes':['id'],'raw':!![]})[_0xf59132('0xb')](function(_0x501f64){const _0xd0f338=_0xf59132;return _0x4cae2e[_0xd0f338('0x8')](_0xd0f338('0x0'),_0x501f64[_0xd0f338('0xc')](function(_0x1a4d92){return{'id':_0x1a4d92['id']};})),MailMessage[_0xd0f338('0xf')]({'where':{'MailInteractionId':_0x4cae2e['id'],'direction':'in','read':![]},'raw':!![]});})[_0xf59132('0xb')](function(_0x59b809){const _0x4b6bb3=_0xf59132;_0x4cae2e['setDataValue'](_0x4b6bb3('0x9'),_0x59b809[_0x4b6bb3('0xe')]),MailInteractionEvents[_0x4b6bb3('0x4')](_0x6773a6+':'+_0x4cae2e['id'],_0x4cae2e),MailInteractionEvents['emit'](_0x6773a6,_0x4cae2e);})[_0xf59132('0xd')](()=>{});};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];MailInteraction[_0x479992('0x3')](e,emitEvent(event));}}module[_0x479992('0xa')]=MailInteractionEvents; \ No newline at end of file +const a490_0x6f82=['map','getUsers','MailMessage','exports','setMaxListeners','undefined','setDataValue','MailInteraction','events','emit','unreadMessages','addHook','save','findAll','../../mysqldb','remove','length','then'];(function(_0x154d48,_0x353df8){const _0x6f82fc=function(_0x5bc75d){while(--_0x5bc75d){_0x154d48['push'](_0x154d48['shift']());}};_0x6f82fc(++_0x353df8);}(a490_0x6f82,0x120));const a490_0x5bc7=function(_0x154d48,_0x353df8){_0x154d48=_0x154d48-0x8e;let _0x6f82fc=a490_0x6f82[_0x154d48];return _0x6f82fc;};const a490_0x59f242=a490_0x5bc7;'use strict';const EventEmitter=require(a490_0x59f242(0x96)),MailInteraction=require(a490_0x59f242(0x9c))['db'][a490_0x59f242(0x95)],MailMessage=require(a490_0x59f242(0x9c))['db'][a490_0x59f242(0x90)],MailInteractionEvents=new EventEmitter();MailInteractionEvents[a490_0x59f242(0x92)](0x0);const events={'afterCreate':a490_0x59f242(0x9a),'afterUpdate':'update','afterDestroy':a490_0x59f242(0x9d)};function emitEvent(_0x13dfdc){return function(_0x3236d2){const _0x15b4a5=a490_0x5bc7;_0x3236d2[_0x15b4a5(0x8f)]({'attributes':['id'],'raw':!![]})[_0x15b4a5(0x9f)](function(_0x300843){const _0x1f8467=_0x15b4a5;return _0x3236d2[_0x1f8467(0x94)]('Users',_0x300843[_0x1f8467(0x8e)](function(_0x492991){return{'id':_0x492991['id']};})),MailMessage[_0x1f8467(0x9b)]({'where':{'MailInteractionId':_0x3236d2['id'],'direction':'in','read':![]},'raw':!![]});})['then'](function(_0x3b03d3){const _0x32b943=_0x15b4a5;_0x3236d2[_0x32b943(0x94)](_0x32b943(0x98),_0x3b03d3[_0x32b943(0x9e)]),MailInteractionEvents[_0x32b943(0x97)](_0x13dfdc+':'+_0x3236d2['id'],_0x3236d2),MailInteractionEvents['emit'](_0x13dfdc,_0x3236d2);})['catch'](()=>{});};}for(const e in events){if(typeof events[e]!==a490_0x59f242(0x93)){const event=events[e];MailInteraction[a490_0x59f242(0x99)](e,emitEvent(event));}}module[a490_0x59f242(0x91)]=MailInteractionEvents; \ No newline at end of file diff --git a/server/api/mailInteraction/mailInteraction.model.js b/server/api/mailInteraction/mailInteraction.model.js index 4b053e3..235bfc2 100644 --- a/server/api/mailInteraction/mailInteraction.model.js +++ b/server/api/mailInteraction/mailInteraction.model.js @@ -1 +1 @@ -const a408_0x142a=['FULLTEXT','subject','exports','substatusAt','changed','utf8mb4_unicode_ci','YYYY-MM-DD\x20HH:mm:ss','moment','format','closed','MailMessage','define','mail_interactions','catch','get','fti_mail_interactions','closedAt','utf8mb4','models','substatus'];(function(_0x169aed,_0x142ab8){const _0x308361=function(_0x5b2bb2){while(--_0x5b2bb2){_0x169aed['push'](_0x169aed['shift']());}};_0x308361(++_0x142ab8);}(a408_0x142a,0x12e));const a408_0x3083=function(_0x169aed,_0x142ab8){_0x169aed=_0x169aed-0x0;let _0x308361=a408_0x142a[_0x169aed];return _0x308361;};const _0x45f63c=a408_0x3083;'use strict';const moment=require(_0x45f63c('0x5')),attributes=require('./mailInteraction.attributes');module[_0x45f63c('0x0')]=function(_0x5b2bb2){const _0x1c30d8=_0x45f63c,_0x575aa4=_0x5b2bb2[_0x1c30d8('0x10')],_0x48e44e=_0x5b2bb2[_0x1c30d8('0x9')]('MailInteraction',attributes,{'tableName':_0x1c30d8('0xa'),'paranoid':![],'indexes':[{'name':_0x1c30d8('0xd'),'fields':[_0x1c30d8('0x13'),'to'],'type':_0x1c30d8('0x12')}],'timestamps':!![],'hooks':{'beforeCreate':function(_0x3ff5f4){const _0x2ae402=_0x1c30d8;_0x3ff5f4[_0x2ae402('0x11')]&&(_0x3ff5f4['substatusAt']=moment()[_0x2ae402('0x6')](_0x2ae402('0x4'))),_0x3ff5f4[_0x2ae402('0x7')]&&(_0x3ff5f4[_0x2ae402('0xe')]=moment()[_0x2ae402('0x6')](_0x2ae402('0x4')));},'beforeUpdate':function(_0x4f2c75){const _0x49bded=_0x1c30d8;_0x4f2c75[_0x49bded('0x2')]('substatus')&&(_0x4f2c75[_0x49bded('0x1')]=_0x4f2c75[_0x49bded('0x11')]?moment()[_0x49bded('0x6')](_0x49bded('0x4')):null),_0x4f2c75[_0x49bded('0x2')](_0x49bded('0x7'))&&(_0x4f2c75['closedAt']=moment()[_0x49bded('0x6')](_0x49bded('0x4')),_0x4f2c75['substatus']=null,_0x4f2c75[_0x49bded('0x1')]=null);},'afterUpdate':function(_0x5f3f9d){const _0x1a8cb6=_0x1c30d8,_0x5b1925=_0x5f3f9d[_0x1a8cb6('0xc')]({'plain':!![]});if(_0x5b1925[_0x1a8cb6('0x7')])return _0x575aa4[_0x1a8cb6('0x8')]['update']({'read':!![]},{'where':{'MailInteractionId':_0x5b1925['id']}})[_0x1a8cb6('0xb')](function(_0x4b737d){return _0x4b737d;});}},'charset':_0x1c30d8('0xf'),'collate':_0x1c30d8('0x3')});return _0x48e44e;}; \ No newline at end of file +const a491_0x5320=['function','init','sequelize','exports','./mailInteraction.attributes','./mailInteraction.options'];(function(_0x2cd928,_0x537e5f){const _0x53203f=function(_0x4ea2e5){while(--_0x4ea2e5){_0x2cd928['push'](_0x2cd928['shift']());}};_0x53203f(++_0x537e5f);}(a491_0x5320,0xbb));const a491_0x4ea2=function(_0x2cd928,_0x537e5f){_0x2cd928=_0x2cd928-0x1d5;let _0x53203f=a491_0x5320[_0x2cd928];return _0x53203f;};const a491_0x322b77=a491_0x4ea2;'use strict';const {Model}=require(a491_0x322b77(0x1d6)),{attributes}=require(a491_0x322b77(0x1d8)),{options}=require(a491_0x322b77(0x1d9));class MailInteraction extends Model{}function init(_0x156b65,_0x2799df){const _0x17493b=a491_0x322b77,_0x108f24=options(_0x156b65),_0x17fabe=typeof _0x2799df===_0x17493b(0x1da)?_0x2799df(_0x108f24):_0x108f24;return MailInteraction[_0x17493b(0x1d5)](attributes,_0x17fabe),MailInteraction;}module[a491_0x322b77(0x1d7)]['MailInteraction']=MailInteraction,module[a491_0x322b77(0x1d7)][a491_0x322b77(0x1d5)]=init; \ No newline at end of file diff --git a/server/api/mailInteraction/mailInteraction.options.js b/server/api/mailInteraction/mailInteraction.options.js new file mode 100644 index 0000000..de344d0 --- /dev/null +++ b/server/api/mailInteraction/mailInteraction.options.js @@ -0,0 +1 @@ +const a492_0x474c=['closed','substatusAt','format','subject','mail_interactions','FULLTEXT','exports','utf8mb4','update','get','changed','closedAt','substatus','YYYY-MM-DD\x20HH:mm:ss'];(function(_0x496cb6,_0x2efcaf){const _0x474c13=function(_0x124cab){while(--_0x124cab){_0x496cb6['push'](_0x496cb6['shift']());}};_0x474c13(++_0x2efcaf);}(a492_0x474c,0x1ad));const a492_0x124c=function(_0x496cb6,_0x2efcaf){_0x496cb6=_0x496cb6-0x107;let _0x474c13=a492_0x474c[_0x496cb6];return _0x474c13;};const a492_0x53ca52=a492_0x124c,moment=require('moment');function options(_0x504f94){const _0x296697=a492_0x124c;return{'sequelize':_0x504f94,'tableName':_0x296697(0x110),'paranoid':![],'indexes':[{'name':'fti_mail_interactions','fields':[_0x296697(0x10f),'to'],'type':_0x296697(0x111)}],'timestamps':!![],'hooks':{'beforeCreate':function(_0x3509f9){const _0x348c4a=_0x296697;_0x3509f9['substatus']&&(_0x3509f9['substatusAt']=moment()[_0x348c4a(0x10e)]('YYYY-MM-DD\x20HH:mm:ss')),_0x3509f9[_0x348c4a(0x10c)]&&(_0x3509f9['closedAt']=moment()[_0x348c4a(0x10e)]('YYYY-MM-DD\x20HH:mm:ss'));},'beforeUpdate':function(_0x4f3346){const _0xc83639=_0x296697;_0x4f3346['changed'](_0xc83639(0x10a))&&(_0x4f3346[_0xc83639(0x10d)]=_0x4f3346['substatus']?moment()['format'](_0xc83639(0x10b)):null),_0x4f3346[_0xc83639(0x108)](_0xc83639(0x10c))&&(_0x4f3346[_0xc83639(0x109)]=moment()[_0xc83639(0x10e)](_0xc83639(0x10b)),_0x4f3346[_0xc83639(0x10a)]=null,_0x4f3346['substatusAt']=null);},'afterUpdate':function(_0x2219ea){const _0xd1cd4b=_0x296697,_0x1cd9c3=_0x504f94['models'],_0xe99c1c=_0x2219ea[_0xd1cd4b(0x107)]({'plain':!![]});if(_0xe99c1c[_0xd1cd4b(0x10c)])return _0x1cd9c3['MailMessage'][_0xd1cd4b(0x114)]({'read':!![]},{'where':{'MailInteractionId':_0xe99c1c['id']}});}},'charset':_0x296697(0x113),'collate':'utf8mb4_unicode_ci'};}module[a492_0x53ca52(0x112)]['options']=options; \ No newline at end of file diff --git a/server/api/mailInteraction/mailInteraction.rpc.js b/server/api/mailInteraction/mailInteraction.rpc.js index 00ee0bd..3ce360c 100644 --- a/server/api/mailInteraction/mailInteraction.rpc.js +++ b/server/api/mailInteraction/mailInteraction.rpc.js @@ -1 +1 @@ -const a409_0x44fb=['update','message','catch','../../config/logger','where','register','limit','UpdateMailInteraction','error','rpc','then','stringify','ids','addTags','../../mysqldb','omit','./mailInteraction.socket','info','options','AddTagsToMailInteraction','raw','attributes','debug'];(function(_0x24987f,_0x44fb3b){const _0x547e9f=function(_0x4e7919){while(--_0x4e7919){_0x24987f['push'](_0x24987f['shift']());}};_0x547e9f(++_0x44fb3b);}(a409_0x44fb,0x65));const a409_0x547e=function(_0x24987f,_0x44fb3b){_0x24987f=_0x24987f-0x0;let _0x547e9f=a409_0x44fb[_0x24987f];return _0x547e9f;};const _0x8c5054=a409_0x547e;'use strict';const _=require('lodash'),db=require(_0x8c5054('0x5'))['db'],logger=require(_0x8c5054('0x11'))(_0x8c5054('0x0')),{getSocket}=require('../../rediscache'),socket=getSocket();require(_0x8c5054('0x7'))[_0x8c5054('0x13')](socket),exports[_0x8c5054('0x15')]=function(_0x4e7919){const _0x18e918=this;return new Promise(function(_0x3d46ee,_0x39f59f){const _0x441805=a409_0x547e;return db['MailInteraction'][_0x441805('0xe')](_0x4e7919['body'],{'raw':_0x4e7919[_0x441805('0x9')]?_0x4e7919[_0x441805('0x9')][_0x441805('0xb')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x4e7919[_0x441805('0x9')]?_0x4e7919['options'][_0x441805('0x12')]||null:null,'attributes':_0x4e7919[_0x441805('0x9')]?_0x4e7919[_0x441805('0x9')][_0x441805('0xc')]||null:null,'limit':_0x4e7919[_0x441805('0x9')]?_0x4e7919['options'][_0x441805('0x14')]||null:null})[_0x441805('0x1')](function(_0x5a392d){const _0x546226=_0x441805;logger[_0x546226('0x8')]('UpdateMailInteraction',_0x4e7919),logger['debug']('UpdateMailInteraction',_0x4e7919,JSON[_0x546226('0x2')](_0x5a392d)),_0x3d46ee(_0x5a392d);})['catch'](function(_0x6280da){const _0x3bccb0=_0x441805;logger[_0x3bccb0('0x16')](_0x3bccb0('0x15'),_0x6280da[_0x3bccb0('0xf')],_0x4e7919),_0x39f59f(_0x18e918[_0x3bccb0('0x16')](0x1f4,_0x6280da['message']));});});},exports[_0x8c5054('0xa')]=function(_0x17035d){const _0x1c031b=this;return new Promise(function(_0x174e81,_0x4c425a){const _0x485c5e=a409_0x547e;return db['MailInteraction']['findOne']({'where':_0x17035d[_0x485c5e('0x9')]?_0x17035d[_0x485c5e('0x9')]['where']||null:null})[_0x485c5e('0x1')](function(_0x50650c){const _0x113f32=_0x485c5e;if(_0x50650c)return _0x50650c[_0x113f32('0x4')](_0x17035d['body'][_0x113f32('0x3')],{'through':_[_0x113f32('0x6')](_0x17035d['body'],['ids','id'])});})[_0x485c5e('0x1')](function([_0x42f7e4]){const _0x3031f5=_0x485c5e;logger['info']('AddTags',_0x17035d),logger[_0x3031f5('0xd')]('AddTags',_0x17035d,JSON['stringify'](_0x42f7e4)),_0x174e81(_0x42f7e4);})[_0x485c5e('0x10')](function(_0x353107){const _0x1928e8=_0x485c5e;logger[_0x1928e8('0x16')]('AddTags',_0x353107['message'],_0x17035d),_0x4c425a(_0x1c031b[_0x1928e8('0x16')](0x1f4,_0x353107[_0x1928e8('0xf')]));});});}; \ No newline at end of file +const a493_0x21a2=['then','stringify','rpc','MailInteraction','AddTags','catch','findOne','UpdateMailInteraction','limit','register','attributes','raw','options','debug','../../config/logger','omit','ids','../../mysqldb','message','addTags','error','body'];(function(_0x375d0d,_0x57d30f){const _0x21a22c=function(_0x239525){while(--_0x239525){_0x375d0d['push'](_0x375d0d['shift']());}};_0x21a22c(++_0x57d30f);}(a493_0x21a2,0x15f));const a493_0x2395=function(_0x375d0d,_0x57d30f){_0x375d0d=_0x375d0d-0xf2;let _0x21a22c=a493_0x21a2[_0x375d0d];return _0x21a22c;};const a493_0x4911ae=a493_0x2395;'use strict';const _=require('lodash'),db=require(a493_0x4911ae(0x104))['db'],logger=require(a493_0x4911ae(0x101))(a493_0x4911ae(0xf5)),{getSocket}=require('../../rediscache'),socket=getSocket();require('./mailInteraction.socket')[a493_0x4911ae(0xfc)](socket),exports['UpdateMailInteraction']=function(_0x51cabb){const _0x21e1ce=this;return new Promise(function(_0x1d4d96,_0x4f2c87){const _0x1120e8=a493_0x2395;return db[_0x1120e8(0xf6)]['update'](_0x51cabb[_0x1120e8(0xf2)],{'raw':_0x51cabb[_0x1120e8(0xff)]?_0x51cabb[_0x1120e8(0xff)][_0x1120e8(0xfe)]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x51cabb['options']?_0x51cabb[_0x1120e8(0xff)]['where']||null:null,'attributes':_0x51cabb[_0x1120e8(0xff)]?_0x51cabb[_0x1120e8(0xff)][_0x1120e8(0xfd)]||null:null,'limit':_0x51cabb['options']?_0x51cabb['options'][_0x1120e8(0xfb)]||null:null})['then'](function(_0x189575){const _0x410a3a=_0x1120e8;logger['info'](_0x410a3a(0xfa),_0x51cabb),logger[_0x410a3a(0x100)](_0x410a3a(0xfa),_0x51cabb,JSON[_0x410a3a(0xf4)](_0x189575)),_0x1d4d96(_0x189575);})[_0x1120e8(0xf8)](function(_0x4e7abb){const _0x310c4c=_0x1120e8;logger[_0x310c4c(0x107)](_0x310c4c(0xfa),_0x4e7abb['message'],_0x51cabb),_0x4f2c87(_0x21e1ce['error'](0x1f4,_0x4e7abb[_0x310c4c(0x105)]));});});},exports['AddTagsToMailInteraction']=function(_0xd96195){const _0x28d0ad=this;return new Promise(function(_0x505c2e,_0x48bc77){const _0x3bb25e=a493_0x2395;return db[_0x3bb25e(0xf6)][_0x3bb25e(0xf9)]({'where':_0xd96195['options']?_0xd96195[_0x3bb25e(0xff)]['where']||null:null})['then'](function(_0x40b1db){const _0x934058=_0x3bb25e;if(_0x40b1db)return _0x40b1db[_0x934058(0x106)](_0xd96195[_0x934058(0xf2)][_0x934058(0x103)],{'through':_[_0x934058(0x102)](_0xd96195['body'],[_0x934058(0x103),'id'])});})[_0x3bb25e(0xf3)](function([_0x38fdca]){const _0x5d4440=_0x3bb25e;logger['info'](_0x5d4440(0xf7),_0xd96195),logger['debug']('AddTags',_0xd96195,JSON[_0x5d4440(0xf4)](_0x38fdca)),_0x505c2e(_0x38fdca);})['catch'](function(_0x11da62){const _0x1c321a=_0x3bb25e;logger[_0x1c321a(0x107)]('AddTags',_0x11da62[_0x1c321a(0x105)],_0xd96195),_0x48bc77(_0x28d0ad[_0x1c321a(0x107)](0x1f4,_0x11da62[_0x1c321a(0x105)]));});});}; \ No newline at end of file diff --git a/server/api/mailInteraction/mailInteraction.socket.js b/server/api/mailInteraction/mailInteraction.socket.js index b67e5fd..1cfb337 100644 --- a/server/api/mailInteraction/mailInteraction.socket.js +++ b/server/api/mailInteraction/mailInteraction.socket.js @@ -1 +1 @@ -const a410_0x14a4=['length','emit','./mailInteraction.events','remove','register','save'];(function(_0x1e7ee1,_0x14a4cc){const _0x1ad3fd=function(_0x17a957){while(--_0x17a957){_0x1e7ee1['push'](_0x1e7ee1['shift']());}};_0x1ad3fd(++_0x14a4cc);}(a410_0x14a4,0x71));const a410_0x1ad3=function(_0x1e7ee1,_0x14a4cc){_0x1e7ee1=_0x1e7ee1-0x0;let _0x1ad3fd=a410_0x14a4[_0x1e7ee1];return _0x1ad3fd;};const _0x528569=a410_0x1ad3;'use strict';const MailInteractionEvents=require(_0x528569('0x3')),events=[_0x528569('0x0'),_0x528569('0x4'),'update'];function createListener(_0x17a957,_0x1aabb7){return function(_0x54f0cf){const _0x3d3a62=a410_0x1ad3;_0x1aabb7[_0x3d3a62('0x2')](_0x17a957,_0x54f0cf);};}exports[_0x528569('0x5')]=function(_0x332ba5){const _0x404b4b=_0x528569;for(let _0xb34734=0x0,_0x714ab3=events[_0x404b4b('0x1')];_0xb34734<_0x714ab3;_0xb34734++){const _0x2d8f31=events[_0xb34734],_0x33e2bb=createListener('mailInteraction:'+_0x2d8f31,_0x332ba5);MailInteractionEvents['on'](_0x2d8f31,_0x33e2bb);}}; \ No newline at end of file +const a494_0x3c46=['remove','mailInteraction:','length','emit','register','update'];(function(_0x2e226c,_0x5da6aa){const _0x3c468f=function(_0x58646d){while(--_0x58646d){_0x2e226c['push'](_0x2e226c['shift']());}};_0x3c468f(++_0x5da6aa);}(a494_0x3c46,0x1c6));const a494_0x5864=function(_0x2e226c,_0x5da6aa){_0x2e226c=_0x2e226c-0x9c;let _0x3c468f=a494_0x3c46[_0x2e226c];return _0x3c468f;};const a494_0x7911e1=a494_0x5864;'use strict';const MailInteractionEvents=require('./mailInteraction.events'),events=['save',a494_0x7911e1(0x9e),a494_0x7911e1(0x9d)];function createListener(_0x470ba3,_0x452769){return function(_0x2bcbdb){const _0x3554f8=a494_0x5864;_0x452769[_0x3554f8(0xa1)](_0x470ba3,_0x2bcbdb);};}exports[a494_0x7911e1(0x9c)]=function(_0x2b3839){const _0x5ad1c6=a494_0x7911e1;for(let _0x4adc85=0x0,_0x57d74e=events[_0x5ad1c6(0xa0)];_0x4adc85<_0x57d74e;_0x4adc85++){const _0x5b2192=events[_0x4adc85],_0x891808=createListener(_0x5ad1c6(0x9f)+_0x5b2192,_0x2b3839);MailInteractionEvents['on'](_0x5b2192,_0x891808);}}; \ No newline at end of file diff --git a/server/api/mailMessage/index.js b/server/api/mailMessage/index.js index 05fd857..ba07c5f 100644 --- a/server/api/mailMessage/index.js +++ b/server/api/mailMessage/index.js @@ -1 +1 @@ -const a411_0x202c=['../../components/interaction/service','put','isAuthenticated','index','/:id/download','destroy','post','/:id/accept','exports','accept','delete','/describe','create','download','/:id','./mailMessage.controller','/:id/reject','express','get','mailmessage:create','update'];(function(_0x237dd3,_0x202cc8){const _0x41b637=function(_0x2e4428){while(--_0x2e4428){_0x237dd3['push'](_0x237dd3['shift']());}};_0x41b637(++_0x202cc8);}(a411_0x202c,0xfb));const a411_0x41b6=function(_0x237dd3,_0x202cc8){_0x237dd3=_0x237dd3-0x0;let _0x41b637=a411_0x202c[_0x237dd3];return _0x41b637;};const _0x333093=a411_0x41b6;'use strict';const express=require(_0x333093('0x12')),router=express['Router'](),auth=require('../../components/auth/service'),interaction=require(_0x333093('0x1')),controller=require(_0x333093('0x10'));router['get']('/',auth['isAuthenticated'](),controller[_0x333093('0x4')]),router[_0x333093('0x13')](_0x333093('0xc'),auth['isAuthenticated'](),controller['describe']),router[_0x333093('0x13')]('/:id',auth[_0x333093('0x3')](),controller['show']),router['get'](_0x333093('0x5'),auth[_0x333093('0x3')](),controller[_0x333093('0xe')]),router[_0x333093('0x7')]('/',auth[_0x333093('0x3')](),interaction['tracked']('mail',_0x333093('0x14')),controller[_0x333093('0xd')]),router[_0x333093('0x2')](_0x333093('0xf'),auth[_0x333093('0x3')](),controller[_0x333093('0x0')]),router[_0x333093('0x2')](_0x333093('0x8'),auth[_0x333093('0x3')](),controller[_0x333093('0xa')]),router['put'](_0x333093('0x11'),auth[_0x333093('0x3')](),controller['reject']),router[_0x333093('0xb')](_0x333093('0xf'),auth[_0x333093('0x3')](),controller[_0x333093('0x6')]),module[_0x333093('0x9')]=router; \ No newline at end of file +const a495_0x14a5=['exports','isAuthenticated','create','put','/describe','download','update','mail','get','/:id','express','mailmessage:create','/:id/download','./mailMessage.controller','accept','Router','delete','tracked','describe','reject','destroy','index','show','../../components/interaction/service'];(function(_0xe63fec,_0x429861){const _0x14a573=function(_0x4b2b4b){while(--_0x4b2b4b){_0xe63fec['push'](_0xe63fec['shift']());}};_0x14a573(++_0x429861);}(a495_0x14a5,0x9b));const a495_0x4b2b=function(_0xe63fec,_0x429861){_0xe63fec=_0xe63fec-0xda;let _0x14a573=a495_0x14a5[_0xe63fec];return _0x14a573;};const a495_0x3fa0f0=a495_0x4b2b;'use strict';const express=require(a495_0x3fa0f0(0xf1)),router=express[a495_0x3fa0f0(0xde)](),auth=require('../../components/auth/service'),interaction=require(a495_0x3fa0f0(0xe6)),controller=require(a495_0x3fa0f0(0xdc));router[a495_0x3fa0f0(0xef)]('/',auth[a495_0x3fa0f0(0xe8)](),controller[a495_0x3fa0f0(0xe4)]),router[a495_0x3fa0f0(0xef)](a495_0x3fa0f0(0xeb),auth[a495_0x3fa0f0(0xe8)](),controller[a495_0x3fa0f0(0xe1)]),router[a495_0x3fa0f0(0xef)](a495_0x3fa0f0(0xf0),auth[a495_0x3fa0f0(0xe8)](),controller[a495_0x3fa0f0(0xe5)]),router[a495_0x3fa0f0(0xef)](a495_0x3fa0f0(0xdb),auth[a495_0x3fa0f0(0xe8)](),controller[a495_0x3fa0f0(0xec)]),router['post']('/',auth[a495_0x3fa0f0(0xe8)](),interaction[a495_0x3fa0f0(0xe0)](a495_0x3fa0f0(0xee),a495_0x3fa0f0(0xda)),controller[a495_0x3fa0f0(0xe9)]),router[a495_0x3fa0f0(0xea)](a495_0x3fa0f0(0xf0),auth[a495_0x3fa0f0(0xe8)](),controller[a495_0x3fa0f0(0xed)]),router[a495_0x3fa0f0(0xea)]('/:id/accept',auth[a495_0x3fa0f0(0xe8)](),controller[a495_0x3fa0f0(0xdd)]),router[a495_0x3fa0f0(0xea)]('/:id/reject',auth[a495_0x3fa0f0(0xe8)](),controller[a495_0x3fa0f0(0xe2)]),router[a495_0x3fa0f0(0xdf)](a495_0x3fa0f0(0xf0),auth[a495_0x3fa0f0(0xe8)](),controller[a495_0x3fa0f0(0xe3)]),module[a495_0x3fa0f0(0xe7)]=router; \ No newline at end of file diff --git a/server/api/mailMessage/mailMessage.attributes.js b/server/api/mailMessage/mailMessage.attributes.js index fc5d3d4..73c7699 100644 --- a/server/api/mailMessage/mailMessage.attributes.js +++ b/server/api/mailMessage/mailMessage.attributes.js @@ -1 +1 @@ -const a412_0x1584=['DATE','STRING','exports','out','medium','long','ENUM','BOOLEAN','TEXT'];(function(_0x1a3855,_0x158417){const _0x286c98=function(_0x4ea43a){while(--_0x4ea43a){_0x1a3855['push'](_0x1a3855['shift']());}};_0x286c98(++_0x158417);}(a412_0x1584,0x6e));const a412_0x286c=function(_0x1a3855,_0x158417){_0x1a3855=_0x1a3855-0x0;let _0x286c98=a412_0x1584[_0x1a3855];return _0x286c98;};const _0x517d61=a412_0x286c;'use strict';const Sequelize=require('sequelize');module[_0x517d61('0x0')]={'body':{'type':Sequelize['TEXT'](_0x517d61('0x3')),'allowNull':![]},'plainBody':{'type':Sequelize[_0x517d61('0x6')](_0x517d61('0x2'))},'read':{'type':Sequelize[_0x517d61('0x5')],'defaultValue':![]},'direction':{'type':Sequelize[_0x517d61('0x4')]('in',_0x517d61('0x1')),'defaultValue':_0x517d61('0x1'),'allowNull':![]},'messageId':{'type':Sequelize[_0x517d61('0x8')](0x1fe)},'from':{'type':Sequelize[_0x517d61('0x8')]},'to':{'type':Sequelize[_0x517d61('0x6')](_0x517d61('0x3'))},'cc':{'type':Sequelize[_0x517d61('0x6')](_0x517d61('0x3'))},'bcc':{'type':Sequelize['TEXT'](_0x517d61('0x3'))},'subject':{'type':Sequelize[_0x517d61('0x6')]},'sentAt':{'type':Sequelize[_0x517d61('0x7')]},'attach':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'secret':{'type':Sequelize[_0x517d61('0x5')],'defaultValue':![]},'readAt':{'type':Sequelize[_0x517d61('0x7')]},'originTo':{'type':Sequelize[_0x517d61('0x6')](_0x517d61('0x3'))},'originCc':{'type':Sequelize[_0x517d61('0x6')]('long')}}; \ No newline at end of file +const a496_0x3e7a=['TEXT','long','ENUM','exports','sequelize','INTEGER','DATE','BOOLEAN','attributes','medium','out','STRING'];(function(_0x2235d5,_0x10505c){const _0x3e7a0e=function(_0x3d9351){while(--_0x3d9351){_0x2235d5['push'](_0x2235d5['shift']());}};_0x3e7a0e(++_0x10505c);}(a496_0x3e7a,0xee));const a496_0x3d93=function(_0x2235d5,_0x10505c){_0x2235d5=_0x2235d5-0x175;let _0x3e7a0e=a496_0x3e7a[_0x2235d5];return _0x3e7a0e;};const a496_0x3356fb=a496_0x3d93;'use strict';const {DataTypes}=require(a496_0x3356fb(0x17b)),attributes={'body':{'type':DataTypes[a496_0x3356fb(0x177)]({'length':a496_0x3356fb(0x178)}),'allowNull':![]},'plainBody':{'type':DataTypes[a496_0x3356fb(0x177)]({'length':a496_0x3356fb(0x180)})},'read':{'type':DataTypes[a496_0x3356fb(0x17e)],'defaultValue':![]},'direction':{'type':DataTypes[a496_0x3356fb(0x179)]('in','out'),'defaultValue':a496_0x3356fb(0x175),'allowNull':![]},'messageId':{'type':DataTypes[a496_0x3356fb(0x176)](0x1fe)},'from':{'type':DataTypes[a496_0x3356fb(0x176)]},'to':{'type':DataTypes[a496_0x3356fb(0x177)]({'length':a496_0x3356fb(0x178)})},'cc':{'type':DataTypes['TEXT']({'length':a496_0x3356fb(0x178)})},'bcc':{'type':DataTypes[a496_0x3356fb(0x177)]({'length':'long'})},'subject':{'type':DataTypes[a496_0x3356fb(0x177)]},'sentAt':{'type':DataTypes[a496_0x3356fb(0x17d)]},'attach':{'type':DataTypes[a496_0x3356fb(0x17c)],'defaultValue':0x0},'secret':{'type':DataTypes[a496_0x3356fb(0x17e)],'defaultValue':![]},'readAt':{'type':DataTypes[a496_0x3356fb(0x17d)]},'originTo':{'type':DataTypes[a496_0x3356fb(0x177)]({'length':a496_0x3356fb(0x178)})},'originCc':{'type':DataTypes[a496_0x3356fb(0x177)]({'length':'long'})}};module[a496_0x3356fb(0x17a)][a496_0x3356fb(0x17f)]=attributes; \ No newline at end of file diff --git a/server/api/mailMessage/mailMessage.controller.js b/server/api/mailMessage/mailMessage.controller.js index 682af7d..66c0b45 100644 --- a/server/api/mailMessage/mailMessage.controller.js +++ b/server/api/mailMessage/mailMessage.controller.js @@ -1 +1 @@ -const a413_0x4ff4=['set','sendMail','undefined','MailMessage','MailInteractionId','channel','secure','rejectMessage','MailServerOut','type','accept','fieldName','List\x20not\x20found','subject','agent','send','headers','read1stAt','util','authentication','secret','name','debug','existsSync','createdAt','../../config/environment','from','count','ListId','format','List','readAt','server','fields','EventManager','RejectMessage','auth','path','info','isNil','filters','Smtp','bcc','show','result','code','attributes','params','unlinkSync','sequelize','stringify','server/files/attachments','acceptmessage','host','merge','moment','key','push','http','error','client','pass','CmContact','catch','like','message','reject','end','updatedAt','log','sendStatus','writeFileSync','model','err','get','offset','rows','message-%s.eml','findAll','UserId','attachments','options','toString','CmList','../../mysqldb','SIP/%s','nolimit','intersection','Contacts','includeAll','sort','service','ddd,\x20DD\x20MMM\x20YYYY\x20HH:mm:ss\x20ZZ','findOne','split','describe','length','tmp','MailMessage,\x20%s,\x20%s','read','status','request\x20sent','port','DESC','Contact','null','root','map','files','unix','query','rawAttributes','MailMessage,\x20%s,\x20%s,\x20%s','interaction','register','eml-format','create','Attachments','event','mail-interactions','update','stack','rejectmessage','[MAILMESSAGE:ACCEPT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s','defaults','where','json','limit','interface','body','destroy','user','join','order','YYYY-MM-DD\x20HH:mm:ss','pick','include','role','then','basename','../../config/logger','keys','MailAccount','mail','../../rediscache','../../components/parsers/qs'];(function(_0x26d0df,_0x4ff481){const _0x1e2bf1=function(_0x1c53d5){while(--_0x1c53d5){_0x26d0df['push'](_0x26d0df['shift']());}};_0x1e2bf1(++_0x4ff481);}(a413_0x4ff4,0x1e3));const a413_0x1e2b=function(_0x26d0df,_0x4ff481){_0x26d0df=_0x26d0df-0x0;let _0x1e2bf1=a413_0x4ff4[_0x26d0df];return _0x1e2bf1;};const _0x9a0eef=a413_0x1e2b;'use strict';const emlformat=require(_0x9a0eef('0x46')),moment=require(_0x9a0eef('0xa')),util=require(_0x9a0eef('0x77')),path=require(_0x9a0eef('0x8a')),fs=require('fs'),_=require('lodash'),{getSocket}=require(_0x9a0eef('0x63')),socket=getSocket(),qs=require(_0x9a0eef('0x64')),logger=require(_0x9a0eef('0x5f'))('api'),config=require(_0x9a0eef('0x7e')),interaction_log=require(_0x9a0eef('0x5f'))(_0x9a0eef('0x4a')),db=require(_0x9a0eef('0x27'))['db'],{Op}=require(_0x9a0eef('0x4'));require('./mailMessage.socket')[_0x9a0eef('0x45')](socket);const jayson=require('jayson/promise'),client=jayson['client'][_0x9a0eef('0xd')]({'port':0x232c}),client9003=jayson[_0x9a0eef('0xf')]['http']({'port':0x232b}),client9002=jayson[_0x9a0eef('0xf')][_0x9a0eef('0xd')]({'port':0x232a});function respondWithRpcPromise(_0x1c53d5,_0x43c98e,_0x43c181,_0x3872aa){return new Promise(function(_0x5bc42e,_0x2f3de3){const _0x4292c7=a413_0x1e2b,_0x51e802=_0x3872aa||client;return _0x51e802['request'](_0x1c53d5,_0x43c181)[_0x4292c7('0x5d')](function(_0xbc81e7){const _0x3d8a09=_0x4292c7;logger[_0x3d8a09('0x8b')](_0x3d8a09('0x35'),_0x43c98e,_0x3d8a09('0x38')),logger[_0x3d8a09('0x7b')](_0x3d8a09('0x43'),_0x43c98e,_0x3d8a09('0x38'),JSON[_0x3d8a09('0x5')](_0xbc81e7));if(_0xbc81e7[_0x3d8a09('0xe')]){if(_0xbc81e7['error'][_0x3d8a09('0x0')]===0x1f4)return logger[_0x3d8a09('0xe')](_0x3d8a09('0x35'),_0x43c98e,_0xbc81e7[_0x3d8a09('0xe')][_0x3d8a09('0x14')]),_0x2f3de3(_0xbc81e7[_0x3d8a09('0xe')][_0x3d8a09('0x14')]);return logger['error'](_0x3d8a09('0x35'),_0x43c98e,_0xbc81e7['error']['message']),_0x5bc42e(_0xbc81e7[_0x3d8a09('0xe')][_0x3d8a09('0x14')]);}else logger[_0x3d8a09('0x8b')]('MailMessage,\x20%s,\x20%s',_0x43c98e,'request\x20sent'),_0x5bc42e(_0xbc81e7[_0x3d8a09('0x91')]['message']);})['catch'](function(_0x21f884){const _0x18b4bf=_0x4292c7;logger[_0x18b4bf('0xe')](_0x18b4bf('0x35'),_0x43c98e,_0x21f884),_0x2f3de3(_0x21f884);});});}function respondWithResult(_0x56a218,_0x178a0a){return _0x178a0a=_0x178a0a||0xc8,function(_0x344a41){const _0x4c1305=a413_0x1e2b;if(_0x344a41)return _0x56a218[_0x4c1305('0x37')](_0x178a0a)[_0x4c1305('0x51')](_0x344a41);};}function respondWithFilteredResult(_0x51c290,_0x5be1fb){return function(_0x37e1b4){const _0x1cbcd7=a413_0x1e2b;if(_0x37e1b4){const _0x4e1817=_0x37e1b4['count'],_0x447607=_0x5be1fb[_0x1cbcd7('0x1e')];let _0x5370fc=_0x5be1fb[_0x1cbcd7('0x1e')]+_0x5be1fb[_0x1cbcd7('0x52')],_0x47d1bf;return _0x5370fc>=_0x4e1817?(_0x5370fc=_0x4e1817,_0x47d1bf=0xc8):_0x47d1bf=0xce,_0x51c290[_0x1cbcd7('0x37')](_0x47d1bf),_0x51c290[_0x1cbcd7('0x65')]('Content-Range',_0x447607+'-'+_0x5370fc+'/'+_0x4e1817)[_0x1cbcd7('0x51')](_0x37e1b4);}return null;};}function saveUpdates(_0x838752){return function(_0xa15f2e){const _0x270119=a413_0x1e2b;if(_0xa15f2e)return _0xa15f2e['update'](_0x838752)[_0x270119('0x5d')](function(_0x17d354){return _0x17d354;});return null;};}function removeEntity(_0x492668){return function(_0x41c2cb){const _0x382807=a413_0x1e2b;if(_0x41c2cb)return _0x41c2cb[_0x382807('0x55')]()[_0x382807('0x5d')](function(){const _0x4c3415=_0x382807;_0x492668[_0x4c3415('0x37')](0xcc)[_0x4c3415('0x16')]();});};}function handleEntityNotFound(_0x134332){return function(_0x396527){const _0x3ea2f6=a413_0x1e2b;return!_0x396527&&_0x134332[_0x3ea2f6('0x19')](0x194),_0x396527;};}function handleError(_0x28605f,_0xa9238d){return _0xa9238d=_0xa9238d||0x1f4,function(_0xc9282){const _0x42b618=a413_0x1e2b;logger[_0x42b618('0xe')](_0xc9282[_0x42b618('0x4c')]),_0xc9282['name']&&delete _0xc9282[_0x42b618('0x7a')],_0x28605f[_0x42b618('0x37')](_0xa9238d)[_0x42b618('0x74')](_0xc9282);};}exports['index']=function(_0x3e149f,_0x4453ac){const _0x360353=_0x9a0eef;let _0x5a5e69={};const _0x184e2b={},_0x5fd46c={'count':0x0,'rows':[]},_0x4f86cf=_[_0x360353('0x3e')](db[_0x360353('0x68')][_0x360353('0x42')],function(_0x79f7bb){const _0x35d5f1=_0x360353;return{'name':_0x79f7bb[_0x35d5f1('0x70')],'type':_0x79f7bb['type'][_0x35d5f1('0xb')]};});_0x184e2b[_0x360353('0x1b')]=_[_0x360353('0x3e')](_0x4f86cf,_0x360353('0x7a')),_0x184e2b[_0x360353('0x41')]=_['keys'](_0x3e149f[_0x360353('0x41')]),_0x184e2b[_0x360353('0x8d')]=_[_0x360353('0x2a')](_0x184e2b['model'],_0x184e2b[_0x360353('0x41')]),_0x5a5e69['attributes']=_[_0x360353('0x2a')](_0x184e2b[_0x360353('0x1b')],qs['fields'](_0x3e149f[_0x360353('0x41')][_0x360353('0x86')])),_0x5a5e69['attributes']=_0x5a5e69['attributes'][_0x360353('0x33')]?_0x5a5e69['attributes']:_0x184e2b['model'];typeof _0x3e149f[_0x360353('0x41')][_0x360353('0x29')]===_0x360353('0x67')&&(_0x5a5e69[_0x360353('0x52')]=qs[_0x360353('0x52')](_0x3e149f['query'][_0x360353('0x52')]),_0x5a5e69[_0x360353('0x1e')]=qs[_0x360353('0x1e')](_0x3e149f[_0x360353('0x41')]['offset']));_0x5a5e69[_0x360353('0x58')]=qs[_0x360353('0x2d')](_0x3e149f[_0x360353('0x41')][_0x360353('0x2d')]),_0x5a5e69[_0x360353('0x50')]=qs['filters'](_[_0x360353('0x5a')](_0x3e149f[_0x360353('0x41')],_0x184e2b[_0x360353('0x8d')]),_0x4f86cf);_0x3e149f[_0x360353('0x41')]['filter']&&(_0x5a5e69[_0x360353('0x50')]=_[_0x360353('0x9')](_0x5a5e69[_0x360353('0x50')],{[Op['or']]:_[_0x360353('0x3e')](_0x4f86cf,function(_0x224851){const _0x2cd85f=_0x360353;if(_0x224851[_0x2cd85f('0x6e')]!=='VIRTUAL'){const _0x11bedf={};return _0x11bedf[_0x224851['name']]={[Op[_0x2cd85f('0x13')]]:'%'+_0x3e149f[_0x2cd85f('0x41')]['filter']+'%'},_0x11bedf;}})}));_0x5a5e69=_['merge']({},_0x5a5e69,_0x3e149f[_0x360353('0x24')]);const _0x282358={'where':_0x5a5e69['where']};return db[_0x360353('0x68')][_0x360353('0x80')](_0x282358)[_0x360353('0x5d')](function(_0x5c47ee){const _0x47b514=_0x360353;return _0x5fd46c[_0x47b514('0x80')]=_0x5c47ee,_0x3e149f[_0x47b514('0x41')][_0x47b514('0x2c')]&&(_0x5a5e69['include']=[{'all':!![]}]),db[_0x47b514('0x68')][_0x47b514('0x21')](_0x5a5e69);})[_0x360353('0x5d')](function(_0x1373c8){const _0x2088d4=_0x360353;return _0x5fd46c[_0x2088d4('0x1f')]=_0x1373c8,_0x5fd46c;})[_0x360353('0x5d')](respondWithFilteredResult(_0x4453ac,_0x5a5e69))[_0x360353('0x12')](handleError(_0x4453ac,null));},exports[_0x9a0eef('0x90')]=function(_0x3df7aa,_0x243939){const _0x3f2879=_0x9a0eef;let _0x15dc66={'raw':!![],'where':{'id':_0x3df7aa[_0x3f2879('0x2')]['id']}};const _0x267295={};return _0x267295[_0x3f2879('0x1b')]=_[_0x3f2879('0x60')](db[_0x3f2879('0x68')][_0x3f2879('0x42')]),_0x267295[_0x3f2879('0x41')]=_['keys'](_0x3df7aa[_0x3f2879('0x41')]),_0x267295[_0x3f2879('0x8d')]=_[_0x3f2879('0x2a')](_0x267295['model'],_0x267295[_0x3f2879('0x41')]),_0x15dc66[_0x3f2879('0x1')]=_[_0x3f2879('0x2a')](_0x267295['model'],qs[_0x3f2879('0x86')](_0x3df7aa[_0x3f2879('0x41')][_0x3f2879('0x86')])),_0x15dc66['attributes']=_0x15dc66[_0x3f2879('0x1')][_0x3f2879('0x33')]?_0x15dc66[_0x3f2879('0x1')]:_0x267295[_0x3f2879('0x1b')],_0x3df7aa[_0x3f2879('0x41')][_0x3f2879('0x2c')]&&(_0x15dc66[_0x3f2879('0x5b')]=[{'all':!![]}]),_0x15dc66=_[_0x3f2879('0x9')]({},_0x15dc66,_0x3df7aa[_0x3f2879('0x24')]),db[_0x3f2879('0x68')][_0x3f2879('0x30')](_0x15dc66)[_0x3f2879('0x5d')](handleEntityNotFound(_0x243939,null))[_0x3f2879('0x5d')](respondWithResult(_0x243939,null))[_0x3f2879('0x12')](handleError(_0x243939,null));},exports[_0x9a0eef('0x4b')]=function(_0x4b8f04,_0x344637){const _0x45e522=_0x9a0eef;return _0x4b8f04[_0x45e522('0x54')]['id']&&delete _0x4b8f04[_0x45e522('0x54')]['id'],db[_0x45e522('0x68')][_0x45e522('0x30')]({'where':{'id':_0x4b8f04[_0x45e522('0x2')]['id']}})['then'](handleEntityNotFound(_0x344637,null))[_0x45e522('0x5d')](saveUpdates(_0x4b8f04['body'],null))[_0x45e522('0x5d')](respondWithResult(_0x344637,null))['catch'](handleError(_0x344637,null));},exports['destroy']=function(_0xd6d408,_0x69273a){const _0x1ce1bc=_0x9a0eef;return db[_0x1ce1bc('0x68')][_0x1ce1bc('0x30')]({'where':{'id':_0xd6d408[_0x1ce1bc('0x2')]['id']}})[_0x1ce1bc('0x5d')](handleEntityNotFound(_0x69273a,null))[_0x1ce1bc('0x5d')](removeEntity(_0x69273a,null))[_0x1ce1bc('0x12')](handleError(_0x69273a,null));},exports[_0x9a0eef('0x32')]=function(_0x1a6dc9,_0x4ff483){const _0x4c7365=_0x9a0eef;return db['MailMessage'][_0x4c7365('0x32')]()[_0x4c7365('0x5d')](respondWithResult(_0x4ff483,null))[_0x4c7365('0x12')](handleError(_0x4ff483,null));},exports[_0x9a0eef('0x47')]=function(_0x358a64,_0x17ca5e){const _0x439dec=_0x9a0eef;return db[_0x439dec('0x68')][_0x439dec('0x47')](_0x358a64[_0x439dec('0x54')])['then'](function(_0x2bb3f9){const _0x12a11e=_0x439dec;if(_0x2bb3f9){if(_0x2bb3f9['direction']==='out'&&!_0x2bb3f9[_0x12a11e('0x79')]){let _0x1d7bc8,_0x53974d,_0x26f277;return _0x358a64[_0x12a11e('0x54')]['to']&&(_0x53974d=_0x358a64[_0x12a11e('0x54')]['to'][_0x12a11e('0x31')](',')[0x0]),db[_0x12a11e('0x61')]['findOne']({'where':{'id':_0x2bb3f9['MailAccountId']},'include':[{'model':db[_0x12a11e('0x26')],'as':'List','include':[{'model':db[_0x12a11e('0x11')],'as':_0x12a11e('0x2b'),'where':{'email':_0x53974d},'limit':0x1,'order':[[_0x12a11e('0x17'),_0x12a11e('0x3a')]]}]},{'model':db[_0x12a11e('0x6d')],'as':'Smtp','raw':!![]}]})[_0x12a11e('0x5d')](function(_0x422215){const _0x4e3f60=_0x12a11e;_0x1d7bc8=_0x422215;if(_0x1d7bc8&&_0x1d7bc8[_0x4e3f60('0x8e')]){const _0x2fe950={'tls':{'rejectUnauthorized':![]}};_[_0x4e3f60('0x8c')](_0x1d7bc8[_0x4e3f60('0x8e')][_0x4e3f60('0x2e')])?(_0x2fe950[_0x4e3f60('0x8')]=_0x1d7bc8[_0x4e3f60('0x8e')]['host'],_0x2fe950[_0x4e3f60('0x39')]=_0x1d7bc8[_0x4e3f60('0x8e')][_0x4e3f60('0x39')],_0x2fe950[_0x4e3f60('0x6b')]=_0x1d7bc8[_0x4e3f60('0x8e')][_0x4e3f60('0x6b')],_0x1d7bc8[_0x4e3f60('0x8e')][_0x4e3f60('0x78')]&&(_0x2fe950[_0x4e3f60('0x89')]={'user':_0x1d7bc8[_0x4e3f60('0x8e')]['user'],'pass':_0x1d7bc8[_0x4e3f60('0x8e')]['pass']})):(_0x2fe950['service']=_0x1d7bc8[_0x4e3f60('0x8e')][_0x4e3f60('0x2e')],_0x2fe950[_0x4e3f60('0x89')]={'user':_0x1d7bc8[_0x4e3f60('0x8e')][_0x4e3f60('0x56')],'pass':_0x1d7bc8[_0x4e3f60('0x8e')][_0x4e3f60('0x10')]},_0x2fe950[_0x4e3f60('0x6b')]=_0x1d7bc8[_0x4e3f60('0x8e')][_0x4e3f60('0x6b')]);if(_0x358a64[_0x4e3f60('0x54')][_0x4e3f60('0x23')]&&_0x358a64[_0x4e3f60('0x54')][_0x4e3f60('0x23')][_0x4e3f60('0x33')])for(let _0x4ce661=0x0;_0x4ce661<_0x358a64[_0x4e3f60('0x54')][_0x4e3f60('0x23')][_0x4e3f60('0x33')];_0x4ce661+=0x1){_0x358a64[_0x4e3f60('0x54')][_0x4e3f60('0x23')][_0x4ce661]={'filename':_0x358a64[_0x4e3f60('0x54')][_0x4e3f60('0x23')][_0x4ce661][_0x4e3f60('0x7a')],'path':path[_0x4e3f60('0x57')](config[_0x4e3f60('0x3d')],_0x4e3f60('0x6'),_0x358a64[_0x4e3f60('0x54')][_0x4e3f60('0x23')][_0x4ce661][_0x4e3f60('0x5e')])};}_0x26f277={'account':_0x2fe950,'message':_0x358a64[_0x4e3f60('0x54')]};return;}})[_0x12a11e('0x5d')](function(){const _0x35a658=_0x12a11e;if(_0x1d7bc8[_0x35a658('0x83')])return _0x1d7bc8[_0x35a658('0x83')][_0x35a658('0x2b')][_0x35a658('0x33')]?_0x1d7bc8[_0x35a658('0x83')][_0x35a658('0x2b')][0x0]:db[_0x35a658('0x11')]['create'](_[_0x35a658('0x4f')](_0x358a64[_0x35a658('0x54')],{'firstName':_0x358a64[_0x35a658('0x54')]['to'],'email':_0x358a64[_0x35a658('0x54')]['to'],'phone':_0x358a64[_0x35a658('0x54')]['to'],'ListId':_0x1d7bc8[_0x35a658('0x81')]}));else throw new Error(_0x35a658('0x71'));})[_0x12a11e('0x5d')](function(){const _0x261a86=_0x12a11e;if(_0x26f277)return respondWithRpcPromise('SendMail',_0x261a86('0x66'),_0x26f277,client9003)[_0x261a86('0x5d')](function(_0x595f39){const _0x1a8a21=_0x261a86;return _0x2bb3f9[_0x1a8a21('0x4b')]({'read':!![],'messageId':_0x595f39['messageId'],'sentAt':moment()[_0x1a8a21('0x82')]('YYYY-MM-DD\x20HH:mm:ss')});})[_0x261a86('0x12')](function(_0x3837d5){const _0xd0847b=_0x261a86;return logger[_0xd0847b('0xe')]('%s',JSON[_0xd0847b('0x5')](_0x3837d5)),_0x2bb3f9;});return _0x2bb3f9;});}return _0x2bb3f9;}})[_0x439dec('0x5d')](respondWithResult(_0x17ca5e,0xc9))[_0x439dec('0x12')](handleError(_0x17ca5e,null));},exports[_0x9a0eef('0x6f')]=function(_0x381fb2,_0xbeece4){const _0xd7f98c=_0x9a0eef,_0x433809={'channel':'mail'};return _0x381fb2[_0xd7f98c('0x54')]['id']&&delete _0x381fb2[_0xd7f98c('0x54')]['id'],_0x381fb2['body'][_0xd7f98c('0x36')]=!![],_0x381fb2['body'][_0xd7f98c('0x84')]=moment()['format'](_0xd7f98c('0x59')),_0x381fb2['body'][_0xd7f98c('0x22')]=_0x381fb2['body'][_0xd7f98c('0x22')]||_0x381fb2['user']['id'],db[_0xd7f98c('0x68')]['findOne']({'where':{'id':_0x381fb2[_0xd7f98c('0x2')]['id'],'UserId':null},'include':[{'model':db[_0xd7f98c('0x11')],'as':_0xd7f98c('0x3b')}]})['then'](handleEntityNotFound(_0xbeece4,null))[_0xd7f98c('0x5d')](saveUpdates(_0x381fb2['body'],null))[_0xd7f98c('0x5d')](function(_0x221848){const _0x1b472f=_0xd7f98c;if(_0x221848)return _0x433809[_0x1b472f('0x14')]=_0x221848[_0x1b472f('0x1d')]({'plain':!![]}),db['MailInteraction']['findOne']({'where':{'id':_0x221848['MailInteractionId']}});return null;})[_0xd7f98c('0x5d')](handleEntityNotFound(_0xbeece4,null))[_0xd7f98c('0x5d')](function(_0x41aa08){const _0xe9c5ca=_0xd7f98c;if(_0x41aa08)return _0x41aa08['update']({'UserId':_0x381fb2[_0xe9c5ca('0x54')][_0xe9c5ca('0x22')],'read1stAt':_[_0xe9c5ca('0x8c')](_0x41aa08[_0xe9c5ca('0x76')])?moment()[_0xe9c5ca('0x82')](_0xe9c5ca('0x59')):undefined});return null;})['then'](function(_0x28d9be){const _0xf4149=_0xd7f98c;if(_0x28d9be)return _0x433809[_0xf4149('0x44')]=_0x28d9be[_0xf4149('0x1d')]({'plain':!![]}),interaction_log[_0xf4149('0x8b')](_0xf4149('0x4e'),_0x381fb2[_0xf4149('0x56')]['id'],_0x381fb2[_0xf4149('0x56')][_0xf4149('0x7a')],_0x381fb2[_0xf4149('0x56')]['role'],_0x433809[_0xf4149('0x44')]['id'],_0x381fb2[_0xf4149('0x54')]?JSON[_0xf4149('0x5')](_0x381fb2['body']):'null'),respondWithRpcPromise('AcceptMessage','acceptMessage',_0x433809);return null;})[_0xd7f98c('0x5d')](function(_0x1f5d4d){const _0x1edd57=_0xd7f98c;if(_0x1f5d4d){if(_0x381fb2[_0x1edd57('0x54')]['manual'])return _0x433809['message'][_0x1edd57('0x53')]=util[_0x1edd57('0x82')]('SIP/%s',_0x381fb2[_0x1edd57('0x56')]['name']),_0x433809[_0x1edd57('0x14')][_0x1edd57('0x6a')]=_0x433809['channel'],_0x433809[_0x1edd57('0x14')][_0x1edd57('0x49')]=_0x1edd57('0x6f'),respondWithRpcPromise(_0x1edd57('0x87'),_0x1edd57('0x87'),{'event':_0x1edd57('0x7'),'message':_0x433809['message']},client9002)[_0x1edd57('0x5d')](function(){return _0x433809;});return _0x433809;}return null;})[_0xd7f98c('0x5d')](respondWithResult(_0xbeece4,null))['catch'](handleError(_0xbeece4,null));},exports[_0x9a0eef('0x15')]=function(_0x2a086a,_0x40f72d){const _0x243045=_0x9a0eef,_0x2794e9={'agent':{},'channel':_0x243045('0x62')};return _0x2a086a[_0x243045('0x54')]['id']&&delete _0x2a086a[_0x243045('0x54')]['id'],_0x2a086a['body'][_0x243045('0x22')]=_0x2a086a[_0x243045('0x54')][_0x243045('0x22')]||_0x2a086a[_0x243045('0x56')]['id'],_0x2794e9[_0x243045('0x73')]['id']=_0x2a086a[_0x243045('0x54')][_0x243045('0x22')],db[_0x243045('0x68')][_0x243045('0x30')]({'where':{'id':_0x2a086a[_0x243045('0x2')]['id'],'UserId':null}})['then'](handleEntityNotFound(_0x40f72d,null))[_0x243045('0x5d')](function(_0x457872){const _0x8b307=_0x243045;if(_0x457872)return _0x2794e9[_0x8b307('0x14')]=_0x457872[_0x8b307('0x1d')]({'plain':!![]}),db['MailInteraction']['findOne']({'where':{'id':_0x457872[_0x8b307('0x69')]}});return null;})['then'](handleEntityNotFound(_0x40f72d,null))[_0x243045('0x5d')](function(_0x3bac58){const _0x543acb=_0x243045;if(_0x3bac58)return _0x2794e9[_0x543acb('0x44')]=_0x3bac58['get']({'plain':!![]}),interaction_log['info']('[MAILMESSAGE:REJECT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s',_0x2a086a['user']['id'],_0x2a086a['user']['name'],_0x2a086a['user'][_0x543acb('0x5c')],_0x2794e9[_0x543acb('0x44')]['id'],_0x2a086a[_0x543acb('0x54')]?JSON['stringify'](_0x2a086a[_0x543acb('0x54')]):_0x543acb('0x3c')),respondWithRpcPromise(_0x543acb('0x88'),_0x543acb('0x6c'),_0x2794e9);return null;})[_0x243045('0x5d')](function(_0xe2d0ee){const _0x50036a=_0x243045;if(_0xe2d0ee)return _0xe2d0ee[_0x50036a('0x14')][_0x50036a('0x53')]=util[_0x50036a('0x82')](_0x50036a('0x28'),_0x2a086a[_0x50036a('0x56')][_0x50036a('0x7a')]),_0xe2d0ee[_0x50036a('0x14')][_0x50036a('0x6a')]=_0x2794e9[_0x50036a('0x6a')],_0xe2d0ee[_0x50036a('0x14')][_0x50036a('0x49')]=_0x50036a('0x15'),respondWithRpcPromise('EventManager',_0x50036a('0x87'),{'event':_0x50036a('0x4d'),'message':_0xe2d0ee[_0x50036a('0x14')]},client9002),_0x2794e9;return null;})[_0x243045('0x5d')](respondWithResult(_0x40f72d,null))[_0x243045('0x12')](handleError(_0x40f72d,null));},exports['download']=function(_0x26f643,_0x40ea71){const _0x1b30b6=_0x9a0eef,_0x359222=moment()[_0x1b30b6('0x40')]()[_0x1b30b6('0x25')](),_0x648865=path[_0x1b30b6('0x57')](config[_0x1b30b6('0x3d')],_0x1b30b6('0x3f'),_0x1b30b6('0x34')),_0x55b58b=path[_0x1b30b6('0x57')](config[_0x1b30b6('0x3d')],_0x1b30b6('0x85'),_0x1b30b6('0x3f'),'attachments'),_0x1d36fe=util[_0x1b30b6('0x82')](_0x1b30b6('0x20'),_0x359222);return db[_0x1b30b6('0x68')][_0x1b30b6('0x30')]({'where':{'id':_0x26f643[_0x1b30b6('0x2')]['id']},'attributes':['id',_0x1b30b6('0x54'),_0x1b30b6('0x7f'),'to','cc',_0x1b30b6('0x8f'),_0x1b30b6('0x72'),_0x1b30b6('0x7d')],'include':_0x26f643[_0x1b30b6('0x41')]['attachments']?[{'model':db['Attachment'],'as':'Attachments'}]:undefined})[_0x1b30b6('0x5d')](handleEntityNotFound(_0x40ea71,null))[_0x1b30b6('0x5d')](function(_0x40d528){const _0x52cd38=_0x1b30b6;if(_0x40d528){const _0x22fc8c=_0x40d528,_0x106fab={'from':_0x22fc8c[_0x52cd38('0x7f')],'to':_0x22fc8c['to'],'subject':_0x22fc8c['subject'],'html':_0x22fc8c[_0x52cd38('0x54')],'headers':{'Date':moment(_0x22fc8c[_0x52cd38('0x7d')])[_0x52cd38('0x82')](_0x52cd38('0x2f'))},'attachments':[]};return _0x40d528['cc']&&(_0x106fab[_0x52cd38('0x75')]['Cc']=_0x40d528['cc']),_0x40d528[_0x52cd38('0x8f')]&&(_0x106fab[_0x52cd38('0x75')]['Bcc']=_0x40d528['bcc']),new Promise(function(_0x115d00,_0x2c7caf){const _0x2dafae=_0x52cd38;if(_0x40d528[_0x2dafae('0x48')])for(let _0x4b43c2=0x0;_0x4b43c2<_0x40d528[_0x2dafae('0x48')][_0x2dafae('0x33')];_0x4b43c2++){const _0x11d2dc=_0x40d528[_0x2dafae('0x48')][_0x4b43c2],_0x3dd58b=path[_0x2dafae('0x57')](_0x55b58b,_0x11d2dc[_0x2dafae('0x5e')]);fs[_0x2dafae('0x7c')](_0x3dd58b)&&_0x106fab[_0x2dafae('0x23')][_0x2dafae('0xc')]({'name':_0x11d2dc[_0x2dafae('0x7a')],'contentType':_0x11d2dc[_0x2dafae('0x6e')],'data':fs['readFileSync'](_0x3dd58b)});}emlformat['build'](_0x106fab,function(_0x358959,_0x5b1cb4){const _0x32f211=_0x2dafae;if(_0x358959)return _0x2c7caf(_0x358959);return fs[_0x32f211('0x1a')](path['join'](_0x648865,_0x1d36fe),_0x5b1cb4),_0x115d00(_0x5b1cb4);});});}})[_0x1b30b6('0x5d')](function(_0x5b0683){const _0x5c1244=_0x1b30b6;if(_0x5b0683)return _0x40ea71['download'](path[_0x5c1244('0x57')](_0x648865,_0x1d36fe),_0x1d36fe,function(_0x1fa802){const _0x2c669c=_0x5c1244;_0x1fa802?console[_0x2c669c('0x18')](_0x2c669c('0x1c'),_0x1fa802):fs[_0x2c669c('0x3')](path[_0x2c669c('0x57')](_0x648865,_0x1d36fe));});})[_0x1b30b6('0x12')](handleError(_0x40ea71,null));}; \ No newline at end of file +const a497_0x4411=['client','interface','pass','jayson/promise','from','direction','rows','include','MailAccount','secret','intersection','createdAt','tmp','SIP/%s','lodash','DESC','List','Attachments','../../config/logger','filters','UserId','manual','event','MailServerOut','bcc','rejectMessage','EventManager','defaults','then','authentication','update','../../mysqldb','attributes','Contact','writeFileSync','message-%s.eml','describe','MailInteraction','map','port','basename','readFileSync','YYYY-MM-DD\x20HH:mm:ss','unlinkSync','query','index','status','attachments','CmContact','result','acceptMessage','order','fieldName','channel','split','accept','filter','null','download','options','stringify','secure','findAll','files','name','util','key','join','json','updatedAt','catch','push','end','fields','MailMessage','api','../../rediscache','[MAILMESSAGE:REJECT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s','server','body','Contacts','auth','count','MailInteractionId','rejectmessage','request\x20sent','service','params','model','info','ddd,\x20DD\x20MMM\x20YYYY\x20HH:mm:ss\x20ZZ','sendMail','headers','sort','format','rawAttributes','Smtp','error','user','nolimit','agent','reject','out','role','Bcc','../../config/environment','http','show','interaction','code','message','List\x20not\x20found','get','build','set','destroy','subject','toString','create','MailMessage,\x20%s,\x20%s,\x20%s','limit','merge','length','mail','MailMessage,\x20%s,\x20%s','where','Content-Range','../../components/parsers/qs','read','request','eml-format','debug','type','CmList','RejectMessage','includeAll','like','findOne','unix','read1stAt','keys','host','offset','Attachment','isNil'];(function(_0x1c1245,_0x38d84c){const _0x4411ba=function(_0x57f67d){while(--_0x57f67d){_0x1c1245['push'](_0x1c1245['shift']());}};_0x4411ba(++_0x38d84c);}(a497_0x4411,0x1a0));const a497_0x57f6=function(_0x1c1245,_0x38d84c){_0x1c1245=_0x1c1245-0x1d1;let _0x4411ba=a497_0x4411[_0x1c1245];return _0x4411ba;};const a497_0x2e5a53=a497_0x57f6;'use strict';const emlformat=require(a497_0x2e5a53(0x1d5)),moment=require('moment'),util=require(a497_0x2e5a53(0x225)),path=require('path'),fs=require('fs'),_=require(a497_0x2e5a53(0x1f2)),{getSocket}=require(a497_0x2e5a53(0x230)),socket=getSocket(),qs=require(a497_0x2e5a53(0x1d2)),logger=require('../../config/logger')(a497_0x2e5a53(0x22f)),config=require(a497_0x2e5a53(0x24d)),interaction_log=require(a497_0x2e5a53(0x1f6))('mail-interactions'),{db}=require(a497_0x2e5a53(0x203)),{Op}=require('sequelize');require('./mailMessage.socket')['register'](socket);const jayson=require(a497_0x2e5a53(0x1e7)),client=jayson['client'][a497_0x2e5a53(0x24e)]({'port':0x232c}),client9003=jayson[a497_0x2e5a53(0x1e4)][a497_0x2e5a53(0x24e)]({'port':0x232b}),client9002=jayson[a497_0x2e5a53(0x1e4)][a497_0x2e5a53(0x24e)]({'port':0x232a});function respondWithRpcPromise(_0x578a5c,_0x23e278,_0x349d1c,_0x39b278){return new Promise(function(_0x397e89,_0x1e6042){const _0x1eb1e6=a497_0x57f6,_0x3017ae=_0x39b278||client;return _0x3017ae[_0x1eb1e6(0x1d4)](_0x578a5c,_0x349d1c)[_0x1eb1e6(0x200)](function(_0x550e6b){const _0x140516=_0x1eb1e6;logger[_0x140516(0x23d)](_0x140516(0x260),_0x23e278,_0x140516(0x239)),logger[_0x140516(0x1d6)](_0x140516(0x25b),_0x23e278,_0x140516(0x239),JSON[_0x140516(0x220)](_0x550e6b));if(_0x550e6b[_0x140516(0x245)]){if(_0x550e6b[_0x140516(0x245)][_0x140516(0x251)]===0x1f4)return logger[_0x140516(0x245)](_0x140516(0x260),_0x23e278,_0x550e6b[_0x140516(0x245)][_0x140516(0x252)]),_0x1e6042(_0x550e6b[_0x140516(0x245)][_0x140516(0x252)]);return logger['error'](_0x140516(0x260),_0x23e278,_0x550e6b[_0x140516(0x245)][_0x140516(0x252)]),_0x397e89(_0x550e6b['error'][_0x140516(0x252)]);}else logger[_0x140516(0x23d)](_0x140516(0x260),_0x23e278,_0x140516(0x239)),_0x397e89(_0x550e6b[_0x140516(0x215)][_0x140516(0x252)]);})[_0x1eb1e6(0x22a)](function(_0x41f6a4){const _0x18e433=_0x1eb1e6;logger['error'](_0x18e433(0x260),_0x23e278,_0x41f6a4),_0x1e6042(_0x41f6a4);});});}function respondWithResult(_0x584bbb,_0x143b56){return _0x143b56=_0x143b56||0xc8,function(_0x21f325){const _0x5bb157=a497_0x57f6;if(_0x21f325)return _0x584bbb['status'](_0x143b56)[_0x5bb157(0x228)](_0x21f325);};}function respondWithFilteredResult(_0x4c8ac7,_0x4fd361){return function(_0x45cdfa){const _0x31d6a9=a497_0x57f6;if(_0x45cdfa){const _0x2be687=_0x45cdfa['count'],_0x3f365f=_0x4fd361[_0x31d6a9(0x1e1)];let _0x1fb84b=_0x4fd361['offset']+_0x4fd361['limit'],_0x24c8fc;return _0x1fb84b>=_0x2be687?(_0x1fb84b=_0x2be687,_0x24c8fc=0xc8):_0x24c8fc=0xce,_0x4c8ac7[_0x31d6a9(0x212)](_0x24c8fc),_0x4c8ac7[_0x31d6a9(0x256)](_0x31d6a9(0x1d1),_0x3f365f+'-'+_0x1fb84b+'/'+_0x2be687)[_0x31d6a9(0x228)](_0x45cdfa);}return null;};}function saveUpdates(_0x189a5e){return function(_0x1bff79){const _0x10606f=a497_0x57f6;if(_0x1bff79)return _0x1bff79['update'](_0x189a5e)[_0x10606f(0x200)](function(_0x528d8e){return _0x528d8e;});return null;};}function removeEntity(_0x1274c2){return function(_0x3dd8ea){const _0xb24fe6=a497_0x57f6;if(_0x3dd8ea)return _0x3dd8ea[_0xb24fe6(0x257)]()[_0xb24fe6(0x200)](function(){const _0x33a0d7=_0xb24fe6;_0x1274c2[_0x33a0d7(0x212)](0xcc)[_0x33a0d7(0x22c)]();});};}function handleEntityNotFound(_0x204059){return function(_0x54b965){return!_0x54b965&&_0x204059['sendStatus'](0x194),_0x54b965;};}function handleError(_0x386f58,_0x5710da){return _0x5710da=_0x5710da||0x1f4,function(_0x5a04eb){const _0x338202=a497_0x57f6;logger[_0x338202(0x245)](_0x5a04eb['stack']),_0x5a04eb[_0x338202(0x224)]&&delete _0x5a04eb['name'],_0x386f58[_0x338202(0x212)](_0x5710da)['send'](_0x5a04eb);};}exports[a497_0x2e5a53(0x211)]=function(_0xf6100a,_0x3add72){const _0x4cb0ee=a497_0x2e5a53;let _0x268c40={};const _0x4535e1={},_0x292815={'count':0x0,'rows':[]},_0x3274fd=_[_0x4cb0ee(0x20a)](db[_0x4cb0ee(0x22e)][_0x4cb0ee(0x243)],function(_0x50886d){const _0x5ce68b=_0x4cb0ee;return{'name':_0x50886d[_0x5ce68b(0x218)],'type':_0x50886d[_0x5ce68b(0x1d7)][_0x5ce68b(0x226)]};});_0x4535e1[_0x4cb0ee(0x23c)]=_['map'](_0x3274fd,_0x4cb0ee(0x224)),_0x4535e1[_0x4cb0ee(0x210)]=_[_0x4cb0ee(0x1df)](_0xf6100a[_0x4cb0ee(0x210)]),_0x4535e1['filters']=_[_0x4cb0ee(0x1ee)](_0x4535e1[_0x4cb0ee(0x23c)],_0x4535e1[_0x4cb0ee(0x210)]),_0x268c40[_0x4cb0ee(0x204)]=_['intersection'](_0x4535e1[_0x4cb0ee(0x23c)],qs[_0x4cb0ee(0x22d)](_0xf6100a[_0x4cb0ee(0x210)][_0x4cb0ee(0x22d)])),_0x268c40[_0x4cb0ee(0x204)]=_0x268c40[_0x4cb0ee(0x204)][_0x4cb0ee(0x25e)]?_0x268c40[_0x4cb0ee(0x204)]:_0x4535e1[_0x4cb0ee(0x23c)];typeof _0xf6100a['query'][_0x4cb0ee(0x247)]==='undefined'&&(_0x268c40[_0x4cb0ee(0x25c)]=qs[_0x4cb0ee(0x25c)](_0xf6100a[_0x4cb0ee(0x210)]['limit']),_0x268c40[_0x4cb0ee(0x1e1)]=qs[_0x4cb0ee(0x1e1)](_0xf6100a[_0x4cb0ee(0x210)][_0x4cb0ee(0x1e1)]));_0x268c40[_0x4cb0ee(0x217)]=qs[_0x4cb0ee(0x241)](_0xf6100a[_0x4cb0ee(0x210)][_0x4cb0ee(0x241)]),_0x268c40[_0x4cb0ee(0x261)]=qs['filters'](_['pick'](_0xf6100a['query'],_0x4535e1['filters']),_0x3274fd);_0xf6100a[_0x4cb0ee(0x210)][_0x4cb0ee(0x21c)]&&(_0x268c40[_0x4cb0ee(0x261)]=_['merge'](_0x268c40['where'],{[Op['or']]:_[_0x4cb0ee(0x20a)](_0x3274fd,function(_0xc7010b){const _0x813598=_0x4cb0ee;if(_0xc7010b[_0x813598(0x1d7)]!=='VIRTUAL'){const _0x5115a9={};return _0x5115a9[_0xc7010b[_0x813598(0x224)]]={[Op[_0x813598(0x1db)]]:'%'+_0xf6100a[_0x813598(0x210)]['filter']+'%'},_0x5115a9;}})}));_0x268c40=_[_0x4cb0ee(0x25d)]({},_0x268c40,_0xf6100a[_0x4cb0ee(0x21f)]);const _0x1b9de0={'where':_0x268c40[_0x4cb0ee(0x261)]};return db[_0x4cb0ee(0x22e)][_0x4cb0ee(0x236)](_0x1b9de0)[_0x4cb0ee(0x200)](function(_0x3d6ee7){const _0x33a565=_0x4cb0ee;return _0x292815[_0x33a565(0x236)]=_0x3d6ee7,_0xf6100a[_0x33a565(0x210)][_0x33a565(0x1da)]&&(_0x268c40[_0x33a565(0x1eb)]=[{'all':!![]}]),db[_0x33a565(0x22e)][_0x33a565(0x222)](_0x268c40);})[_0x4cb0ee(0x200)](function(_0x3af50e){const _0x1804c9=_0x4cb0ee;return _0x292815[_0x1804c9(0x1ea)]=_0x3af50e,_0x292815;})[_0x4cb0ee(0x200)](respondWithFilteredResult(_0x3add72,_0x268c40))[_0x4cb0ee(0x22a)](handleError(_0x3add72,null));},exports[a497_0x2e5a53(0x24f)]=function(_0x415ae1,_0x841441){const _0x14d4c=a497_0x2e5a53;let _0x12734b={'raw':!![],'where':{'id':_0x415ae1[_0x14d4c(0x23b)]['id']}};const _0x1218de={};return _0x1218de[_0x14d4c(0x23c)]=_[_0x14d4c(0x1df)](db[_0x14d4c(0x22e)]['rawAttributes']),_0x1218de['query']=_[_0x14d4c(0x1df)](_0x415ae1[_0x14d4c(0x210)]),_0x1218de[_0x14d4c(0x1f7)]=_[_0x14d4c(0x1ee)](_0x1218de[_0x14d4c(0x23c)],_0x1218de[_0x14d4c(0x210)]),_0x12734b[_0x14d4c(0x204)]=_[_0x14d4c(0x1ee)](_0x1218de['model'],qs[_0x14d4c(0x22d)](_0x415ae1[_0x14d4c(0x210)]['fields'])),_0x12734b[_0x14d4c(0x204)]=_0x12734b[_0x14d4c(0x204)][_0x14d4c(0x25e)]?_0x12734b[_0x14d4c(0x204)]:_0x1218de['model'],_0x415ae1[_0x14d4c(0x210)]['includeAll']&&(_0x12734b[_0x14d4c(0x1eb)]=[{'all':!![]}]),_0x12734b=_[_0x14d4c(0x25d)]({},_0x12734b,_0x415ae1[_0x14d4c(0x21f)]),db[_0x14d4c(0x22e)][_0x14d4c(0x1dc)](_0x12734b)[_0x14d4c(0x200)](handleEntityNotFound(_0x841441,null))['then'](respondWithResult(_0x841441,null))[_0x14d4c(0x22a)](handleError(_0x841441,null));},exports[a497_0x2e5a53(0x202)]=function(_0x499348,_0x4eaa9a){const _0x40ed53=a497_0x2e5a53;return _0x499348['body']['id']&&delete _0x499348[_0x40ed53(0x233)]['id'],db[_0x40ed53(0x22e)][_0x40ed53(0x1dc)]({'where':{'id':_0x499348['params']['id']}})[_0x40ed53(0x200)](handleEntityNotFound(_0x4eaa9a,null))[_0x40ed53(0x200)](saveUpdates(_0x499348[_0x40ed53(0x233)],null))[_0x40ed53(0x200)](respondWithResult(_0x4eaa9a,null))['catch'](handleError(_0x4eaa9a,null));},exports[a497_0x2e5a53(0x257)]=function(_0x1c688a,_0x418115){const _0x4d249f=a497_0x2e5a53;return db[_0x4d249f(0x22e)][_0x4d249f(0x1dc)]({'where':{'id':_0x1c688a['params']['id']}})[_0x4d249f(0x200)](handleEntityNotFound(_0x418115,null))[_0x4d249f(0x200)](removeEntity(_0x418115,null))[_0x4d249f(0x22a)](handleError(_0x418115,null));},exports[a497_0x2e5a53(0x208)]=function(_0x494e5a,_0x194b35){const _0x3d6d63=a497_0x2e5a53;return db[_0x3d6d63(0x22e)][_0x3d6d63(0x208)]()[_0x3d6d63(0x200)](respondWithResult(_0x194b35,null))[_0x3d6d63(0x22a)](handleError(_0x194b35,null));},exports[a497_0x2e5a53(0x25a)]=function(_0x534cdd,_0x3413c5){const _0x458772=a497_0x2e5a53;return db[_0x458772(0x22e)]['create'](_0x534cdd[_0x458772(0x233)])[_0x458772(0x200)](function(_0x25cbab){const _0x383f79=_0x458772;if(_0x25cbab){if(_0x25cbab[_0x383f79(0x1e9)]===_0x383f79(0x24a)&&!_0x25cbab[_0x383f79(0x1ed)]){let _0x41b0c3,_0x353a41,_0x258709;return _0x534cdd[_0x383f79(0x233)]['to']&&(_0x353a41=_0x534cdd[_0x383f79(0x233)]['to'][_0x383f79(0x21a)](',')[0x0]),db[_0x383f79(0x1ec)]['findOne']({'where':{'id':_0x25cbab['MailAccountId']},'include':[{'model':db[_0x383f79(0x1d8)],'as':_0x383f79(0x1f4),'include':[{'model':db[_0x383f79(0x214)],'as':'Contacts','where':{'email':_0x353a41},'limit':0x1,'order':[[_0x383f79(0x229),_0x383f79(0x1f3)]]}]},{'model':db[_0x383f79(0x1fb)],'as':'Smtp','raw':!![]}]})[_0x383f79(0x200)](function(_0x588f0c){const _0x3a8dcb=_0x383f79;_0x41b0c3=_0x588f0c;if(_0x41b0c3&&_0x41b0c3[_0x3a8dcb(0x244)]){const _0x21f432={'tls':{'rejectUnauthorized':![]}};_[_0x3a8dcb(0x1e3)](_0x41b0c3[_0x3a8dcb(0x244)][_0x3a8dcb(0x23a)])?(_0x21f432[_0x3a8dcb(0x1e0)]=_0x41b0c3['Smtp'][_0x3a8dcb(0x1e0)],_0x21f432[_0x3a8dcb(0x20b)]=_0x41b0c3['Smtp'][_0x3a8dcb(0x20b)],_0x21f432[_0x3a8dcb(0x221)]=_0x41b0c3[_0x3a8dcb(0x244)][_0x3a8dcb(0x221)],_0x41b0c3[_0x3a8dcb(0x244)][_0x3a8dcb(0x201)]&&(_0x21f432['auth']={'user':_0x41b0c3[_0x3a8dcb(0x244)][_0x3a8dcb(0x246)],'pass':_0x41b0c3[_0x3a8dcb(0x244)][_0x3a8dcb(0x1e6)]})):(_0x21f432[_0x3a8dcb(0x23a)]=_0x41b0c3[_0x3a8dcb(0x244)][_0x3a8dcb(0x23a)],_0x21f432[_0x3a8dcb(0x235)]={'user':_0x41b0c3[_0x3a8dcb(0x244)][_0x3a8dcb(0x246)],'pass':_0x41b0c3[_0x3a8dcb(0x244)][_0x3a8dcb(0x1e6)]},_0x21f432[_0x3a8dcb(0x221)]=_0x41b0c3[_0x3a8dcb(0x244)][_0x3a8dcb(0x221)]);if(_0x534cdd[_0x3a8dcb(0x233)][_0x3a8dcb(0x213)]&&_0x534cdd[_0x3a8dcb(0x233)]['attachments'][_0x3a8dcb(0x25e)])for(let _0x5f35e8=0x0;_0x5f35e8<_0x534cdd[_0x3a8dcb(0x233)][_0x3a8dcb(0x213)]['length'];_0x5f35e8+=0x1){_0x534cdd[_0x3a8dcb(0x233)][_0x3a8dcb(0x213)][_0x5f35e8]={'filename':_0x534cdd[_0x3a8dcb(0x233)]['attachments'][_0x5f35e8][_0x3a8dcb(0x224)],'path':path[_0x3a8dcb(0x227)](config['root'],'server/files/attachments',_0x534cdd[_0x3a8dcb(0x233)][_0x3a8dcb(0x213)][_0x5f35e8][_0x3a8dcb(0x20c)])};}_0x258709={'account':_0x21f432,'message':_0x534cdd[_0x3a8dcb(0x233)]};return;}})[_0x383f79(0x200)](function(){const _0x35c7aa=_0x383f79;if(_0x41b0c3[_0x35c7aa(0x1f4)])return _0x41b0c3['List'][_0x35c7aa(0x234)][_0x35c7aa(0x25e)]?_0x41b0c3[_0x35c7aa(0x1f4)][_0x35c7aa(0x234)][0x0]:db[_0x35c7aa(0x214)][_0x35c7aa(0x25a)](_[_0x35c7aa(0x1ff)](_0x534cdd[_0x35c7aa(0x233)],{'firstName':_0x534cdd[_0x35c7aa(0x233)]['to'],'email':_0x534cdd[_0x35c7aa(0x233)]['to'],'phone':_0x534cdd['body']['to'],'ListId':_0x41b0c3['ListId']}));else throw new Error(_0x35c7aa(0x253));})['then'](function(){const _0x240a27=_0x383f79;if(_0x258709)return respondWithRpcPromise('SendMail',_0x240a27(0x23f),_0x258709,client9003)[_0x240a27(0x200)](function(_0x1b600e){const _0x266a8a=_0x240a27;return _0x25cbab[_0x266a8a(0x202)]({'read':!![],'messageId':_0x1b600e['messageId'],'sentAt':moment()['format'](_0x266a8a(0x20e))});})[_0x240a27(0x22a)](function(_0x5e250e){const _0x3fd5b1=_0x240a27;return logger[_0x3fd5b1(0x245)]('%s',JSON[_0x3fd5b1(0x220)](_0x5e250e)),_0x25cbab;});return _0x25cbab;});}return _0x25cbab;}})[_0x458772(0x200)](respondWithResult(_0x3413c5,0xc9))[_0x458772(0x22a)](handleError(_0x3413c5,null));},exports[a497_0x2e5a53(0x21b)]=function(_0x5c833e,_0x53cf52){const _0x19e547=a497_0x2e5a53,_0x4b30ae={'channel':_0x19e547(0x25f)};return _0x5c833e[_0x19e547(0x233)]['id']&&delete _0x5c833e['body']['id'],_0x5c833e[_0x19e547(0x233)][_0x19e547(0x1d3)]=!![],_0x5c833e[_0x19e547(0x233)]['readAt']=moment()['format'](_0x19e547(0x20e)),_0x5c833e[_0x19e547(0x233)][_0x19e547(0x1f8)]=_0x5c833e[_0x19e547(0x233)][_0x19e547(0x1f8)]||_0x5c833e[_0x19e547(0x246)]['id'],db[_0x19e547(0x22e)][_0x19e547(0x1dc)]({'where':{'id':_0x5c833e[_0x19e547(0x23b)]['id'],'UserId':null},'include':[{'model':db[_0x19e547(0x214)],'as':_0x19e547(0x205)}]})[_0x19e547(0x200)](handleEntityNotFound(_0x53cf52,null))['then'](saveUpdates(_0x5c833e[_0x19e547(0x233)],null))['then'](function(_0x1a808b){const _0x360024=_0x19e547;if(_0x1a808b)return _0x4b30ae[_0x360024(0x252)]=_0x1a808b['get']({'plain':!![]}),db[_0x360024(0x209)][_0x360024(0x1dc)]({'where':{'id':_0x1a808b[_0x360024(0x237)]}});return null;})[_0x19e547(0x200)](handleEntityNotFound(_0x53cf52,null))[_0x19e547(0x200)](function(_0x590e0e){const _0x6589ae=_0x19e547;if(_0x590e0e)return _0x590e0e['update']({'UserId':_0x5c833e[_0x6589ae(0x233)][_0x6589ae(0x1f8)],'read1stAt':_['isNil'](_0x590e0e[_0x6589ae(0x1de)])?moment()[_0x6589ae(0x242)]('YYYY-MM-DD\x20HH:mm:ss'):undefined});return null;})[_0x19e547(0x200)](function(_0x1ce028){const _0x52bc52=_0x19e547;if(_0x1ce028)return _0x4b30ae['interaction']=_0x1ce028[_0x52bc52(0x254)]({'plain':!![]}),interaction_log[_0x52bc52(0x23d)]('[MAILMESSAGE:ACCEPT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s',_0x5c833e['user']['id'],_0x5c833e[_0x52bc52(0x246)][_0x52bc52(0x224)],_0x5c833e[_0x52bc52(0x246)][_0x52bc52(0x24b)],_0x4b30ae[_0x52bc52(0x250)]['id'],_0x5c833e[_0x52bc52(0x233)]?JSON[_0x52bc52(0x220)](_0x5c833e[_0x52bc52(0x233)]):_0x52bc52(0x21d)),respondWithRpcPromise('AcceptMessage',_0x52bc52(0x216),_0x4b30ae);return null;})[_0x19e547(0x200)](function(_0x4fffbd){const _0x103a08=_0x19e547;if(_0x4fffbd){if(_0x5c833e['body'][_0x103a08(0x1f9)])return _0x4b30ae[_0x103a08(0x252)][_0x103a08(0x1e5)]=util[_0x103a08(0x242)](_0x103a08(0x1f1),_0x5c833e['user']['name']),_0x4b30ae[_0x103a08(0x252)][_0x103a08(0x219)]=_0x4b30ae['channel'],_0x4b30ae[_0x103a08(0x252)][_0x103a08(0x1fa)]=_0x103a08(0x21b),respondWithRpcPromise(_0x103a08(0x1fe),_0x103a08(0x1fe),{'event':'acceptmessage','message':_0x4b30ae['message']},client9002)[_0x103a08(0x200)](function(){return _0x4b30ae;});return _0x4b30ae;}return null;})[_0x19e547(0x200)](respondWithResult(_0x53cf52,null))[_0x19e547(0x22a)](handleError(_0x53cf52,null));},exports[a497_0x2e5a53(0x249)]=function(_0x189c08,_0x21c4ff){const _0x302b9d=a497_0x2e5a53,_0x2564a0={'agent':{},'channel':_0x302b9d(0x25f)};return _0x189c08[_0x302b9d(0x233)]['id']&&delete _0x189c08[_0x302b9d(0x233)]['id'],_0x189c08[_0x302b9d(0x233)][_0x302b9d(0x1f8)]=_0x189c08[_0x302b9d(0x233)]['UserId']||_0x189c08[_0x302b9d(0x246)]['id'],_0x2564a0[_0x302b9d(0x248)]['id']=_0x189c08[_0x302b9d(0x233)][_0x302b9d(0x1f8)],db[_0x302b9d(0x22e)][_0x302b9d(0x1dc)]({'where':{'id':_0x189c08['params']['id'],'UserId':null}})[_0x302b9d(0x200)](handleEntityNotFound(_0x21c4ff,null))[_0x302b9d(0x200)](function(_0x4d5489){const _0xba2d80=_0x302b9d;if(_0x4d5489)return _0x2564a0['message']=_0x4d5489[_0xba2d80(0x254)]({'plain':!![]}),db[_0xba2d80(0x209)]['findOne']({'where':{'id':_0x4d5489['MailInteractionId']}});return null;})[_0x302b9d(0x200)](handleEntityNotFound(_0x21c4ff,null))[_0x302b9d(0x200)](function(_0x15a7f5){const _0x22ad6d=_0x302b9d;if(_0x15a7f5)return _0x2564a0[_0x22ad6d(0x250)]=_0x15a7f5[_0x22ad6d(0x254)]({'plain':!![]}),interaction_log[_0x22ad6d(0x23d)](_0x22ad6d(0x231),_0x189c08[_0x22ad6d(0x246)]['id'],_0x189c08[_0x22ad6d(0x246)]['name'],_0x189c08[_0x22ad6d(0x246)][_0x22ad6d(0x24b)],_0x2564a0[_0x22ad6d(0x250)]['id'],_0x189c08[_0x22ad6d(0x233)]?JSON['stringify'](_0x189c08['body']):_0x22ad6d(0x21d)),respondWithRpcPromise(_0x22ad6d(0x1d9),_0x22ad6d(0x1fd),_0x2564a0);return null;})[_0x302b9d(0x200)](function(_0x47d9af){const _0x1e4a78=_0x302b9d;if(_0x47d9af)return _0x47d9af[_0x1e4a78(0x252)]['interface']=util[_0x1e4a78(0x242)](_0x1e4a78(0x1f1),_0x189c08[_0x1e4a78(0x246)]['name']),_0x47d9af['message']['channel']=_0x2564a0['channel'],_0x47d9af[_0x1e4a78(0x252)][_0x1e4a78(0x1fa)]=_0x1e4a78(0x249),respondWithRpcPromise('EventManager','EventManager',{'event':_0x1e4a78(0x238),'message':_0x47d9af['message']},client9002),_0x2564a0;return null;})[_0x302b9d(0x200)](respondWithResult(_0x21c4ff,null))[_0x302b9d(0x22a)](handleError(_0x21c4ff,null));},exports[a497_0x2e5a53(0x21e)]=function(_0x2ad60c,_0x3dbceb){const _0x2770fe=a497_0x2e5a53,_0x108ce0=moment()[_0x2770fe(0x1dd)]()[_0x2770fe(0x259)](),_0x38d252=path[_0x2770fe(0x227)](config['root'],_0x2770fe(0x223),_0x2770fe(0x1f0)),_0x7a01e1=path[_0x2770fe(0x227)](config['root'],_0x2770fe(0x232),_0x2770fe(0x223),_0x2770fe(0x213)),_0xf74a65=util[_0x2770fe(0x242)](_0x2770fe(0x207),_0x108ce0);return db[_0x2770fe(0x22e)][_0x2770fe(0x1dc)]({'where':{'id':_0x2ad60c[_0x2770fe(0x23b)]['id']},'attributes':['id',_0x2770fe(0x233),_0x2770fe(0x1e8),'to','cc',_0x2770fe(0x1fc),_0x2770fe(0x258),'createdAt'],'include':_0x2ad60c[_0x2770fe(0x210)][_0x2770fe(0x213)]?[{'model':db[_0x2770fe(0x1e2)],'as':_0x2770fe(0x1f5)}]:undefined})[_0x2770fe(0x200)](handleEntityNotFound(_0x3dbceb,null))[_0x2770fe(0x200)](function(_0x1daf93){const _0x3e1149=_0x2770fe;if(_0x1daf93){const _0x494339=_0x1daf93,_0x27b036={'from':_0x494339['from'],'to':_0x494339['to'],'subject':_0x494339['subject'],'html':_0x494339[_0x3e1149(0x233)],'headers':{'Date':moment(_0x494339[_0x3e1149(0x1ef)])[_0x3e1149(0x242)](_0x3e1149(0x23e))},'attachments':[]};return _0x1daf93['cc']&&(_0x27b036[_0x3e1149(0x240)]['Cc']=_0x1daf93['cc']),_0x1daf93[_0x3e1149(0x1fc)]&&(_0x27b036[_0x3e1149(0x240)][_0x3e1149(0x24c)]=_0x1daf93[_0x3e1149(0x1fc)]),new Promise(function(_0x3e6616,_0x5555b7){const _0x1070e8=_0x3e1149;if(_0x1daf93['Attachments'])for(let _0x2e8d82=0x0;_0x2e8d82<_0x1daf93[_0x1070e8(0x1f5)][_0x1070e8(0x25e)];_0x2e8d82++){const _0x1764db=_0x1daf93['Attachments'][_0x2e8d82],_0x3e9e6c=path['join'](_0x7a01e1,_0x1764db['basename']);fs['existsSync'](_0x3e9e6c)&&_0x27b036['attachments'][_0x1070e8(0x22b)]({'name':_0x1764db['name'],'contentType':_0x1764db[_0x1070e8(0x1d7)],'data':fs[_0x1070e8(0x20d)](_0x3e9e6c)});}emlformat[_0x1070e8(0x255)](_0x27b036,function(_0x2be25d,_0x7b6da7){const _0x216bd1=_0x1070e8;if(_0x2be25d)return _0x5555b7(_0x2be25d);return fs[_0x216bd1(0x206)](path['join'](_0x38d252,_0xf74a65),_0x7b6da7),_0x3e6616(_0x7b6da7);});});}})[_0x2770fe(0x200)](function(_0x2621a2){const _0x3f079e=_0x2770fe;if(_0x2621a2)return _0x3dbceb[_0x3f079e(0x21e)](path[_0x3f079e(0x227)](_0x38d252,_0xf74a65),_0xf74a65,function(_0x38c7d7){const _0x26375e=_0x3f079e;_0x38c7d7?console['log']('err',_0x38c7d7):fs[_0x26375e(0x20f)](path['join'](_0x38d252,_0xf74a65));});})['catch'](handleError(_0x3dbceb,null));}; \ No newline at end of file diff --git a/server/api/mailMessage/mailMessage.events.js b/server/api/mailMessage/mailMessage.events.js index ecdecf5..4e8d127 100644 --- a/server/api/mailMessage/mailMessage.events.js +++ b/server/api/mailMessage/mailMessage.events.js @@ -1 +1 @@ -const a414_0xa7f1=['emit','save','addHook','remove','../../mysqldb','update','events'];(function(_0x3e2c37,_0xa7f179){const _0x3f3ce5=function(_0x4ba73d){while(--_0x4ba73d){_0x3e2c37['push'](_0x3e2c37['shift']());}};_0x3f3ce5(++_0xa7f179);}(a414_0xa7f1,0xa8));const a414_0x3f3c=function(_0x3e2c37,_0xa7f179){_0x3e2c37=_0x3e2c37-0x0;let _0x3f3ce5=a414_0xa7f1[_0x3e2c37];return _0x3f3ce5;};const _0x9ce9b8=a414_0x3f3c;'use strict';const EventEmitter=require(_0x9ce9b8('0x6')),MailMessage=require(_0x9ce9b8('0x4'))['db']['MailMessage'],MailMessageEvents=new EventEmitter();MailMessageEvents['setMaxListeners'](0x0);const events={'afterCreate':_0x9ce9b8('0x1'),'afterUpdate':_0x9ce9b8('0x5'),'afterDestroy':_0x9ce9b8('0x3')};function emitEvent(_0x4ba73d){return function(_0x2bfa91){const _0x1f4fca=a414_0x3f3c;MailMessageEvents[_0x1f4fca('0x0')](_0x4ba73d+':'+_0x2bfa91['id'],_0x2bfa91),MailMessageEvents[_0x1f4fca('0x0')](_0x4ba73d,_0x2bfa91);};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];MailMessage[_0x9ce9b8('0x2')](e,emitEvent(event));}}module['exports']=MailMessageEvents; \ No newline at end of file +const a498_0x1d3e=['addHook','undefined','emit','../../mysqldb','save','remove','exports','update','MailMessage'];(function(_0x451283,_0x648d65){const _0x1d3e06=function(_0x226947){while(--_0x226947){_0x451283['push'](_0x451283['shift']());}};_0x1d3e06(++_0x648d65);}(a498_0x1d3e,0x18b));const a498_0x2269=function(_0x451283,_0x648d65){_0x451283=_0x451283-0x10c;let _0x1d3e06=a498_0x1d3e[_0x451283];return _0x1d3e06;};const a498_0x2cc3d6=a498_0x2269;'use strict';const EventEmitter=require('events'),MailMessage=require(a498_0x2cc3d6(0x110))['db'][a498_0x2cc3d6(0x10c)],MailMessageEvents=new EventEmitter();MailMessageEvents['setMaxListeners'](0x0);const events={'afterCreate':a498_0x2cc3d6(0x111),'afterUpdate':a498_0x2cc3d6(0x114),'afterDestroy':a498_0x2cc3d6(0x112)};function emitEvent(_0x526eb4){return function(_0x1de534){const _0x5d0c13=a498_0x2269;MailMessageEvents[_0x5d0c13(0x10f)](_0x526eb4+':'+_0x1de534['id'],_0x1de534),MailMessageEvents[_0x5d0c13(0x10f)](_0x526eb4,_0x1de534);};}for(const e in events){if(typeof events[e]!==a498_0x2cc3d6(0x10e)){const event=events[e];MailMessage[a498_0x2cc3d6(0x10d)](e,emitEvent(event));}}module[a498_0x2cc3d6(0x113)]=MailMessageEvents; \ No newline at end of file diff --git a/server/api/mailMessage/mailMessage.model.js b/server/api/mailMessage/mailMessage.model.js index 91bd7be..094ed45 100644 --- a/server/api/mailMessage/mailMessage.model.js +++ b/server/api/mailMessage/mailMessage.model.js @@ -1 +1 @@ -const a415_0x1429=['./mailMessage.attributes','mail_messages','out','define','secret','messageId','catch','direction','toLowerCase','models','lodash','utf8mb4_unicode_ci','isNil','then','html-to-text','error','update','get','plainBody','UserId','fti_mail_messages','subject','body','createdAt','MailMessage','exports'];(function(_0x5ff2bc,_0x1429ae){const _0x179afe=function(_0x2b5d50){while(--_0x2b5d50){_0x5ff2bc['push'](_0x5ff2bc['shift']());}};_0x179afe(++_0x1429ae);}(a415_0x1429,0x1bc));const a415_0x179a=function(_0x5ff2bc,_0x1429ae){_0x5ff2bc=_0x5ff2bc-0x0;let _0x179afe=a415_0x1429[_0x5ff2bc];return _0x179afe;};const _0x124ebc=a415_0x179a;'use strict';const _=require(_0x124ebc('0x8')),{htmlToText}=require(_0x124ebc('0xc')),attributes=require(_0x124ebc('0x18'));module[_0x124ebc('0x17')]=function(_0x2b5d50){const _0x30fbdc=_0x124ebc,_0x3f5b66=_0x2b5d50[_0x30fbdc('0x7')],_0x1c8877=_0x2b5d50[_0x30fbdc('0x1')](_0x30fbdc('0x16'),attributes,{'tableName':_0x30fbdc('0x19'),'paranoid':![],'indexes':[{'name':'messageId','fields':[_0x30fbdc('0x3')]},{'name':_0x30fbdc('0x12'),'fields':['plainBody',_0x30fbdc('0x13')],'type':'FULLTEXT'}],'timestamps':!![],'hooks':{'beforeCreate':function(_0x4b269e){const _0x1d384d=_0x30fbdc;_0x4b269e[_0x1d384d('0x14')]&&(_0x4b269e[_0x1d384d('0x10')]=htmlToText(_0x4b269e[_0x1d384d('0x14')],{'preserveNewlines':!![],'singleNewLineParagraphs':!![],'uppercaseHeadings':![],'noLinkBrackets':!![],'ignoreImage':!![]}));},'afterCreate':function(_0x5820ed){const _0x162c7d=_0x30fbdc,_0x2651a9=_0x5820ed[_0x162c7d('0xf')]({'plain':!![]});(_0x2651a9['direction']['toLowerCase']()==='in'||_0x2651a9['direction'][_0x162c7d('0x6')]()===_0x162c7d('0x0')&&!_0x2651a9[_0x162c7d('0x2')]&&!_[_0x162c7d('0xa')](_0x2651a9[_0x162c7d('0x11')]))&&_0x3f5b66['MailInteraction']['findOne']({'where':{'id':_0x2651a9['MailInteractionId']}})[_0x162c7d('0xb')](function(_0x475f8e){const _0x35fe0e=_0x162c7d;_0x475f8e&&_0x475f8e[_0x35fe0e('0xe')]({'lastMsgAt':_0x2651a9[_0x35fe0e('0x15')],'lastMsgDirection':_0x2651a9[_0x35fe0e('0x5')][_0x35fe0e('0x6')](),'lastMsgBody':_0x2651a9[_0x35fe0e('0x14')]});})[_0x162c7d('0x4')](function(_0x26aeb9){const _0x210199=_0x162c7d;console[_0x210199('0xd')](_0x26aeb9);});}},'charset':'utf8mb4','collate':_0x30fbdc('0x9')});return _0x1c8877;}; \ No newline at end of file +const a499_0x19e3=['MailMessage','function','exports','sequelize','./mailMessage.attributes','init'];(function(_0x24d60d,_0x26047b){const _0x19e30d=function(_0x1f914c){while(--_0x1f914c){_0x24d60d['push'](_0x24d60d['shift']());}};_0x19e30d(++_0x26047b);}(a499_0x19e3,0x142));const a499_0x1f91=function(_0x24d60d,_0x26047b){_0x24d60d=_0x24d60d-0x10e;let _0x19e30d=a499_0x19e3[_0x24d60d];return _0x19e30d;};const a499_0x1f5760=a499_0x1f91;'use strict';const {Model}=require(a499_0x1f5760(0x113)),{attributes}=require(a499_0x1f5760(0x10e)),{options}=require('./mailMessage.options');class MailMessage extends Model{}function init(_0x1de7e5,_0xbee5be){const _0x115deb=a499_0x1f5760,_0x3309b3=options(_0x1de7e5),_0x14c394=typeof _0xbee5be===_0x115deb(0x111)?_0xbee5be(_0x3309b3):_0x3309b3;return MailMessage[_0x115deb(0x10f)](attributes,_0x14c394),MailMessage;}module[a499_0x1f5760(0x112)][a499_0x1f5760(0x110)]=MailMessage,module[a499_0x1f5760(0x112)]['init']=init; \ No newline at end of file diff --git a/server/api/mailMessage/mailMessage.options.js b/server/api/mailMessage/mailMessage.options.js new file mode 100644 index 0000000..69b2ab8 --- /dev/null +++ b/server/api/mailMessage/mailMessage.options.js @@ -0,0 +1 @@ +const a500_0x51d9=['fromString','utf8mb4_unicode_ci','models','createdAt','isNil','findOne','secret','messageId','then','catch','body','html-to-text','direction','toLowerCase','options','exports','lodash','update','UserId','get','MailInteraction','FULLTEXT','mail_messages','error','fti_mail_messages','MailInteractionId'];(function(_0x5eb0e3,_0x535fd3){const _0x51d931=function(_0x168c74){while(--_0x168c74){_0x5eb0e3['push'](_0x5eb0e3['shift']());}};_0x51d931(++_0x535fd3);}(a500_0x51d9,0xfd));const a500_0x168c=function(_0x5eb0e3,_0x535fd3){_0x5eb0e3=_0x5eb0e3-0xf5;let _0x51d931=a500_0x51d9[_0x5eb0e3];return _0x51d931;};const a500_0x5c592f=a500_0x168c,_=require(a500_0x5c592f(0x10c)),{htmlToText}=require(a500_0x5c592f(0x107));function options(_0x46879d){const _0x181f1f=a500_0x5c592f;return{'sequelize':_0x46879d,'tableName':_0x181f1f(0xf8),'paranoid':![],'indexes':[{'name':_0x181f1f(0x103),'fields':[_0x181f1f(0x103)]},{'name':_0x181f1f(0xfa),'fields':['plainBody','subject'],'type':_0x181f1f(0xf7)}],'timestamps':!![],'hooks':{'beforeCreate':function(_0x1e597a){const _0x3c3739=_0x181f1f;_0x1e597a[_0x3c3739(0x106)]&&(_0x1e597a['plainBody']=htmlToText[_0x3c3739(0xfc)](_0x1e597a[_0x3c3739(0x106)],{'preserveNewlines':!![],'singleNewLineParagraphs':!![],'uppercaseHeadings':![],'noLinkBrackets':!![],'ignoreImage':!![]}));},'afterCreate':function(_0x3f3c7b){const _0x20451d=_0x181f1f,_0xcb4363=_0x46879d[_0x20451d(0xfe)],_0x437089=_0x3f3c7b[_0x20451d(0xf5)]({'plain':!![]});(_0x437089[_0x20451d(0x108)][_0x20451d(0x109)]()==='in'||_0x437089['direction']['toLowerCase']()==='out'&&!_0x437089[_0x20451d(0x102)]&&!_[_0x20451d(0x100)](_0x437089[_0x20451d(0x10e)]))&&_0xcb4363[_0x20451d(0xf6)][_0x20451d(0x101)]({'where':{'id':_0x437089[_0x20451d(0xfb)]}})[_0x20451d(0x104)](function(_0x470931){const _0x26ac40=_0x20451d;_0x470931&&_0x470931[_0x26ac40(0x10d)]({'lastMsgAt':_0x437089[_0x26ac40(0xff)],'lastMsgDirection':_0x437089[_0x26ac40(0x108)][_0x26ac40(0x109)](),'lastMsgBody':_0x437089[_0x26ac40(0x106)]});})[_0x20451d(0x105)](function(_0x2d90b1){const _0x48377e=_0x20451d;console[_0x48377e(0xf9)](_0x2d90b1);});}},'charset':'utf8mb4','collate':_0x181f1f(0xfd)};}module[a500_0x5c592f(0x10b)][a500_0x5c592f(0x10a)]=options; \ No newline at end of file diff --git a/server/api/mailMessage/mailMessage.rpc.js b/server/api/mailMessage/mailMessage.rpc.js index 2b1498e..e4ed619 100644 --- a/server/api/mailMessage/mailMessage.rpc.js +++ b/server/api/mailMessage/mailMessage.rpc.js @@ -1 +1 @@ -const a416_0xa0d6=['../../mysqldb','./mailMessage.socket','CreateMailMessage','raw','create','info','stringify','register','error','options','message','then','body','MailMessage'];(function(_0x216dfb,_0xa0d664){const _0x55fdad=function(_0x37538c){while(--_0x37538c){_0x216dfb['push'](_0x216dfb['shift']());}};_0x55fdad(++_0xa0d664);}(a416_0xa0d6,0x7a));const a416_0x55fd=function(_0x216dfb,_0xa0d664){_0x216dfb=_0x216dfb-0x0;let _0x55fdad=a416_0xa0d6[_0x216dfb];return _0x55fdad;};const _0x4515e3=a416_0x55fd;'use strict';const db=require(_0x4515e3('0x4'))['db'],logger=require('../../config/logger')('rpc'),{getSocket}=require('../../rediscache'),socket=getSocket();require(_0x4515e3('0x5'))[_0x4515e3('0xb')](socket),exports['CreateMailMessage']=function(_0x37538c){const _0x125f31=this;return new Promise(function(_0x214a87,_0x545841){const _0x223ef2=a416_0x55fd;return db[_0x223ef2('0x3')][_0x223ef2('0x8')](_0x37538c[_0x223ef2('0x2')],{'raw':_0x37538c[_0x223ef2('0xd')]?_0x37538c[_0x223ef2('0xd')][_0x223ef2('0x7')]===undefined?!![]:![]:!![]})[_0x223ef2('0x1')](function(_0x23049d){const _0x38dfa6=_0x223ef2;logger[_0x38dfa6('0x9')]('CreateMailMessage',_0x37538c),logger['debug']('CreateMailMessage',_0x37538c,JSON[_0x38dfa6('0xa')](_0x23049d)),_0x214a87(_0x23049d);})['catch'](function(_0x4ad735){const _0x156f5d=_0x223ef2;logger['error'](_0x156f5d('0x6'),_0x4ad735[_0x156f5d('0x0')],_0x37538c),_0x545841(_0x125f31[_0x156f5d('0xc')](0x1f4,_0x4ad735['message']));});});}; \ No newline at end of file +const a501_0x3835=['MailMessage','rpc','error','stringify','debug','../../mysqldb','../../rediscache','./mailMessage.socket','create','../../config/logger','catch','register','then','message','raw','info','CreateMailMessage','options'];(function(_0x3e4e93,_0x4d4727){const _0x383538=function(_0x8c0a84){while(--_0x8c0a84){_0x3e4e93['push'](_0x3e4e93['shift']());}};_0x383538(++_0x4d4727);}(a501_0x3835,0x80));const a501_0x8c0a=function(_0x3e4e93,_0x4d4727){_0x3e4e93=_0x3e4e93-0xc9;let _0x383538=a501_0x3835[_0x3e4e93];return _0x383538;};const a501_0x1d6928=a501_0x8c0a;'use strict';const db=require(a501_0x1d6928(0xcc))['db'],logger=require(a501_0x1d6928(0xd0))(a501_0x1d6928(0xda)),{getSocket}=require(a501_0x1d6928(0xcd)),socket=getSocket();require(a501_0x1d6928(0xce))[a501_0x1d6928(0xd2)](socket),exports[a501_0x1d6928(0xd7)]=function(_0x2b951f){const _0x228c38=this;return new Promise(function(_0x2b0fcd,_0x24d4c2){const _0x4c515c=a501_0x8c0a;return db[_0x4c515c(0xd9)][_0x4c515c(0xcf)](_0x2b951f['body'],{'raw':_0x2b951f[_0x4c515c(0xd8)]?_0x2b951f[_0x4c515c(0xd8)][_0x4c515c(0xd5)]===undefined?!![]:![]:!![]})[_0x4c515c(0xd3)](function(_0x25187b){const _0x3c4d4d=_0x4c515c;logger[_0x3c4d4d(0xd6)](_0x3c4d4d(0xd7),_0x2b951f),logger[_0x3c4d4d(0xcb)]('CreateMailMessage',_0x2b951f,JSON[_0x3c4d4d(0xca)](_0x25187b)),_0x2b0fcd(_0x25187b);})[_0x4c515c(0xd1)](function(_0x5073f8){const _0x1162fa=_0x4c515c;logger[_0x1162fa(0xc9)](_0x1162fa(0xd7),_0x5073f8[_0x1162fa(0xd4)],_0x2b951f),_0x24d4c2(_0x228c38['error'](0x1f4,_0x5073f8[_0x1162fa(0xd4)]));});});}; \ No newline at end of file diff --git a/server/api/mailMessage/mailMessage.socket.js b/server/api/mailMessage/mailMessage.socket.js index b83524b..05e5f79 100644 --- a/server/api/mailMessage/mailMessage.socket.js +++ b/server/api/mailMessage/mailMessage.socket.js @@ -1 +1 @@ -const a417_0x159e=['length','save','./mailMessage.events','remove','mailMessage:','emit'];(function(_0x10508b,_0x159e65){const _0xdc7b=function(_0xf7204c){while(--_0xf7204c){_0x10508b['push'](_0x10508b['shift']());}};_0xdc7b(++_0x159e65);}(a417_0x159e,0x6b));const a417_0xdc7b=function(_0x10508b,_0x159e65){_0x10508b=_0x10508b-0x0;let _0xdc7b=a417_0x159e[_0x10508b];return _0xdc7b;};const _0x4e527=a417_0xdc7b;'use strict';const MailMessageEvents=require(_0x4e527('0x3')),events=[_0x4e527('0x2'),_0x4e527('0x4'),'update'];function createListener(_0xf7204c,_0x3aa6c7){return function(_0x3ddc21){const _0x4ac42a=a417_0xdc7b;_0x3aa6c7[_0x4ac42a('0x0')](_0xf7204c,_0x3ddc21);};}exports['register']=function(_0x3ffd17){const _0x5e901a=_0x4e527;for(let _0x1b16b1=0x0,_0x4acbc9=events[_0x5e901a('0x1')];_0x1b16b1<_0x4acbc9;_0x1b16b1++){const _0x2717b8=events[_0x1b16b1],_0x194d1e=createListener(_0x5e901a('0x5')+_0x2717b8,_0x3ffd17);MailMessageEvents['on'](_0x2717b8,_0x194d1e);}}; \ No newline at end of file +const a502_0x1601=['remove','length','update','./mailMessage.events','mailMessage:','save'];(function(_0x393fbe,_0x4efbd4){const _0x1601cf=function(_0x50e507){while(--_0x50e507){_0x393fbe['push'](_0x393fbe['shift']());}};_0x1601cf(++_0x4efbd4);}(a502_0x1601,0x110));const a502_0x50e5=function(_0x393fbe,_0x4efbd4){_0x393fbe=_0x393fbe-0xda;let _0x1601cf=a502_0x1601[_0x393fbe];return _0x1601cf;};const a502_0x13d10a=a502_0x50e5;'use strict';const MailMessageEvents=require(a502_0x13d10a(0xdb)),events=[a502_0x13d10a(0xdd),a502_0x13d10a(0xde),a502_0x13d10a(0xda)];function createListener(_0x28262f,_0x28fe48){return function(_0x1e8f90){_0x28fe48['emit'](_0x28262f,_0x1e8f90);};}exports['register']=function(_0xdb6c5c){const _0x2a03f3=a502_0x13d10a;for(let _0x6e6dd7=0x0,_0x462e97=events[_0x2a03f3(0xdf)];_0x6e6dd7<_0x462e97;_0x6e6dd7++){const _0x46ad57=events[_0x6e6dd7],_0x3d1f11=createListener(_0x2a03f3(0xdc)+_0x46ad57,_0xdb6c5c);MailMessageEvents['on'](_0x46ad57,_0x3d1f11);}}; \ No newline at end of file diff --git a/server/api/mailQueue/index.js b/server/api/mailQueue/index.js index e22534d..9c6d883 100644 --- a/server/api/mailQueue/index.js +++ b/server/api/mailQueue/index.js @@ -1 +1 @@ -const a418_0x5dd4=['put','exports','/:id','describe','isAuthenticated','show','getTeams','delete','post','get','/:id/teams','/:id/users','../../components/auth/service','Router','getAgents','create','getMembers','destroy','./mailQueue.controller','index','/:id/members','addAgents','addTeams','update'];(function(_0x2b70dd,_0x5dd4c5){const _0x41cdcb=function(_0x496557){while(--_0x496557){_0x2b70dd['push'](_0x2b70dd['shift']());}};_0x41cdcb(++_0x5dd4c5);}(a418_0x5dd4,0x1d9));const a418_0x41cd=function(_0x2b70dd,_0x5dd4c5){_0x2b70dd=_0x2b70dd-0x0;let _0x41cdcb=a418_0x5dd4[_0x2b70dd];return _0x41cdcb;};const _0x36c202=a418_0x41cd;'use strict';const express=require('express'),router=express[_0x36c202('0x14')](),auth=require(_0x36c202('0x13')),controller=require(_0x36c202('0x1'));router[_0x36c202('0x10')]('/',auth[_0x36c202('0xb')](),controller[_0x36c202('0x2')]),router[_0x36c202('0x10')]('/describe',auth[_0x36c202('0xb')](),controller[_0x36c202('0xa')]),router[_0x36c202('0x10')](_0x36c202('0x9'),auth[_0x36c202('0xb')](),controller[_0x36c202('0xc')]),router['get'](_0x36c202('0x3'),auth[_0x36c202('0xb')](),controller[_0x36c202('0x17')]),router['get'](_0x36c202('0x11'),auth[_0x36c202('0xb')](),controller[_0x36c202('0xd')]),router[_0x36c202('0x10')](_0x36c202('0x12'),auth['isAuthenticated'](),controller[_0x36c202('0x15')]),router[_0x36c202('0xf')]('/',auth[_0x36c202('0xb')](),controller[_0x36c202('0x16')]),router[_0x36c202('0xf')]('/:id/teams',auth[_0x36c202('0xb')](),controller[_0x36c202('0x5')]),router['post'](_0x36c202('0x12'),auth[_0x36c202('0xb')](),controller[_0x36c202('0x4')]),router[_0x36c202('0x7')](_0x36c202('0x9'),auth[_0x36c202('0xb')](),controller[_0x36c202('0x6')]),router[_0x36c202('0xe')](_0x36c202('0x9'),auth[_0x36c202('0xb')](),controller[_0x36c202('0x0')]),router[_0x36c202('0xe')]('/:id/teams',auth[_0x36c202('0xb')](),controller['removeTeams']),router['delete'](_0x36c202('0x12'),auth[_0x36c202('0xb')](),controller['removeAgents']),module[_0x36c202('0x8')]=router; \ No newline at end of file +const a503_0x2802=['addAgents','post','destroy','delete','put','removeTeams','create','getAgents','/:id','describe','/describe','/:id/teams','get','../../components/auth/service','removeAgents','addTeams','/:id/users','update','index','getTeams','exports','isAuthenticated','express','getMembers'];(function(_0x16ed73,_0x35710c){const _0x2802ad=function(_0x18fb26){while(--_0x18fb26){_0x16ed73['push'](_0x16ed73['shift']());}};_0x2802ad(++_0x35710c);}(a503_0x2802,0x13c));const a503_0x18fb=function(_0x16ed73,_0x35710c){_0x16ed73=_0x16ed73-0x1b8;let _0x2802ad=a503_0x2802[_0x16ed73];return _0x2802ad;};const a503_0x4e9eb7=a503_0x18fb;'use strict';const express=require(a503_0x4e9eb7(0x1ca)),router=express['Router'](),auth=require(a503_0x4e9eb7(0x1c1)),controller=require('./mailQueue.controller');router[a503_0x4e9eb7(0x1c0)]('/',auth[a503_0x4e9eb7(0x1c9)](),controller[a503_0x4e9eb7(0x1c6)]),router[a503_0x4e9eb7(0x1c0)](a503_0x4e9eb7(0x1be),auth[a503_0x4e9eb7(0x1c9)](),controller[a503_0x4e9eb7(0x1bd)]),router[a503_0x4e9eb7(0x1c0)](a503_0x4e9eb7(0x1bc),auth[a503_0x4e9eb7(0x1c9)](),controller['show']),router[a503_0x4e9eb7(0x1c0)]('/:id/members',auth[a503_0x4e9eb7(0x1c9)](),controller[a503_0x4e9eb7(0x1cb)]),router[a503_0x4e9eb7(0x1c0)](a503_0x4e9eb7(0x1bf),auth[a503_0x4e9eb7(0x1c9)](),controller[a503_0x4e9eb7(0x1c7)]),router['get'](a503_0x4e9eb7(0x1c4),auth[a503_0x4e9eb7(0x1c9)](),controller[a503_0x4e9eb7(0x1bb)]),router['post']('/',auth['isAuthenticated'](),controller[a503_0x4e9eb7(0x1ba)]),router[a503_0x4e9eb7(0x1cd)]('/:id/teams',auth[a503_0x4e9eb7(0x1c9)](),controller[a503_0x4e9eb7(0x1c3)]),router[a503_0x4e9eb7(0x1cd)](a503_0x4e9eb7(0x1c4),auth['isAuthenticated'](),controller[a503_0x4e9eb7(0x1cc)]),router[a503_0x4e9eb7(0x1b8)]('/:id',auth[a503_0x4e9eb7(0x1c9)](),controller[a503_0x4e9eb7(0x1c5)]),router[a503_0x4e9eb7(0x1cf)](a503_0x4e9eb7(0x1bc),auth[a503_0x4e9eb7(0x1c9)](),controller[a503_0x4e9eb7(0x1ce)]),router['delete']('/:id/teams',auth['isAuthenticated'](),controller[a503_0x4e9eb7(0x1b9)]),router[a503_0x4e9eb7(0x1cf)](a503_0x4e9eb7(0x1c4),auth['isAuthenticated'](),controller[a503_0x4e9eb7(0x1c2)]),module[a503_0x4e9eb7(0x1c8)]=router; \ No newline at end of file diff --git a/server/api/mailQueue/mailQueue.attributes.js b/server/api/mailQueue/mailQueue.attributes.js index 5a2ce0a..20c5cc7 100644 --- a/server/api/mailQueue/mailQueue.attributes.js +++ b/server/api/mailQueue/mailQueue.attributes.js @@ -1 +1 @@ -const a419_0x9ac5=['roundrobin','exports','INTEGER','rrmemory','beepall','STRING','ENUM','sequelize','name'];(function(_0x76929b,_0x9ac507){const _0x202e12=function(_0x284246){while(--_0x284246){_0x76929b['push'](_0x76929b['shift']());}};_0x202e12(++_0x9ac507);}(a419_0x9ac5,0x8d));const a419_0x202e=function(_0x76929b,_0x9ac507){_0x76929b=_0x76929b-0x0;let _0x202e12=a419_0x9ac5[_0x76929b];return _0x202e12;};const _0x5dff84=a419_0x202e;'use strict';const Sequelize=require(_0x5dff84('0x1'));module[_0x5dff84('0x4')]={'name':{'type':Sequelize[_0x5dff84('0x8')],'unique':_0x5dff84('0x2'),'validate':{'notEmpty':!![],'is':/^[A-Za-z0-9._]+$/i}},'description':{'type':Sequelize[_0x5dff84('0x8')]},'timeout':{'type':Sequelize[_0x5dff84('0x5')],'validate':{'min':0x1,'max':0x20c49b}},'strategy':{'type':Sequelize[_0x5dff84('0x0')](_0x5dff84('0x6'),_0x5dff84('0x7'),_0x5dff84('0x3'))}}; \ No newline at end of file +const a504_0x26e9=['beepall','STRING','name','exports','INTEGER','attributes','roundrobin'];(function(_0x4b6d4d,_0x5ddcd1){const _0x26e92e=function(_0x59fb79){while(--_0x59fb79){_0x4b6d4d['push'](_0x4b6d4d['shift']());}};_0x26e92e(++_0x5ddcd1);}(a504_0x26e9,0xa0));const a504_0x59fb=function(_0x4b6d4d,_0x5ddcd1){_0x4b6d4d=_0x4b6d4d-0x166;let _0x26e92e=a504_0x26e9[_0x4b6d4d];return _0x26e92e;};const a504_0x4bfa5e=a504_0x59fb;'use strict';const {DataTypes}=require('sequelize'),attributes={'name':{'type':DataTypes[a504_0x4bfa5e(0x168)],'unique':a504_0x4bfa5e(0x169),'validate':{'notEmpty':!![],'is':/^[A-Za-z0-9._]+$/i}},'description':{'type':DataTypes[a504_0x4bfa5e(0x168)]},'timeout':{'type':DataTypes[a504_0x4bfa5e(0x16b)],'validate':{'min':0x1,'max':0x20c49b}},'strategy':{'type':DataTypes['ENUM']('rrmemory',a504_0x4bfa5e(0x167),a504_0x4bfa5e(0x166))}};module[a504_0x4bfa5e(0x16a)][a504_0x4bfa5e(0x16c)]=attributes; \ No newline at end of file diff --git a/server/api/mailQueue/mailQueue.controller.js b/server/api/mailQueue/mailQueue.controller.js index d8f4970..e740265 100644 --- a/server/api/mailQueue/mailQueue.controller.js +++ b/server/api/mailQueue/mailQueue.controller.js @@ -1 +1 @@ -const a420_0x104e=['updatedAt','name','UserProfileSection','../../config/logger','filter','query','select','userProfileId','json','where','create','role','sort','error','MailQueue','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','userMailQueue:remove','MailQueueId','catch','Agents','../../rediscache','then','include','UserProfileResource','online','MailQueues','order','findAndCountAll','Team','params','rawAttributes','VIRTUAL','addTeams','omit','merge','compact','sendStatus','from','update','filters','removeTeams','attributes','transaction','UserId','options','like','fields','forEach','send','findAll','TeamId','destroy','map','nolimit','count','keys','all','getAgents','emit','User','userMailQueue:save','UserMailQueue','value','intersection','describe','autoAssociation','ut.UserId\x20=\x20?','includes','util','length','model','getMembers','index','ut.TeamId\x20=\x20tq.TeamId','join','set','addAgents','type','includeAll','mailPause','findOrCreate','flatMap','user','key','status','removeAgents','limit','isEmpty','SIP','voicePause','body','sequelize','isArray','createdAt','register','offset','get','pick','team_has_mail_queues','show','SELECT','tq.TeamId','findOne','end','lodash','Unable\x20to\x20retrieve\x20the\x20current\x20user','undefined','../../mysqldb','fieldName','ids','field','MailQueueId\x20=\x20?'];(function(_0x484217,_0x104e65){const _0x18b227=function(_0x50388b){while(--_0x50388b){_0x484217['push'](_0x484217['shift']());}};_0x18b227(++_0x104e65);}(a420_0x104e,0x194));const a420_0x18b2=function(_0x484217,_0x104e65){_0x484217=_0x484217-0x0;let _0x18b227=a420_0x104e[_0x484217];return _0x18b227;};const _0x426e7c=a420_0x18b2;'use strict';const util=require(_0x426e7c('0x0')),_=require(_0x426e7c('0x24')),squel=require('squel'),qs=require('../../components/parsers/qs'),logger=require(_0x426e7c('0x2f'))('api'),{getSocket}=require(_0x426e7c('0x40')),socket=getSocket(),db=require(_0x426e7c('0x27'))['db'],{Op,QueryTypes}=require(_0x426e7c('0x17'));require('./mailQueue.socket')[_0x426e7c('0x1a')](socket);function respondWithStatusCode(_0x50388b,_0x4fe540){return _0x4fe540=_0x4fe540||0xcc,function(_0x1b7f42){const _0x197e81=a420_0x18b2;if(_0x1b7f42)return _0x50388b[_0x197e81('0x50')](_0x4fe540);return _0x50388b['status'](_0x4fe540)[_0x197e81('0x23')]();};}function respondWithResult(_0x1dd6e7,_0x418d9e){return _0x418d9e=_0x418d9e||0xc8,function(_0xf4f24f){const _0x3feb09=a420_0x18b2;if(_0xf4f24f)return _0x1dd6e7['status'](_0x418d9e)[_0x3feb09('0x34')](_0xf4f24f);};}function respondWithFilteredResult(_0xda55d8,_0x5df41e){return function(_0x4d90fd){const _0x350c8c=a420_0x18b2;if(_0x4d90fd){const _0x1b9871=_0x4d90fd['count'],_0x4976ed=_0x5df41e[_0x350c8c('0x1b')];let _0x5e805b=_0x5df41e[_0x350c8c('0x1b')]+_0x5df41e[_0x350c8c('0x12')],_0x4a8a62;return _0x5e805b>=_0x1b9871?(_0x5e805b=_0x1b9871,_0x4a8a62=0xc8):_0x4a8a62=0xce,_0xda55d8[_0x350c8c('0x10')](_0x4a8a62),_0xda55d8[_0x350c8c('0x7')]('Content-Range',_0x4976ed+'-'+_0x5e805b+'/'+_0x1b9871)[_0x350c8c('0x34')](_0x4d90fd);}return null;};}function saveUpdates(_0x3fb454){return function(_0x3189bd){if(_0x3189bd)return _0x3189bd['update'](_0x3fb454)['then'](function(_0x1b6b75){return _0x1b6b75;});return null;};}function removeEntity(_0x33a6c6){return function(_0x58727f){const _0x285a3c=a420_0x18b2;if(_0x58727f)return _0x58727f['destroy']()[_0x285a3c('0x41')](function(){const _0x549358=_0x285a3c,_0x2aa670=_0x58727f['get']({'plain':!![]}),_0x499146='MailQueues';return db[_0x549358('0x43')][_0x549358('0x5f')]({'where':{'type':_0x499146,'resourceId':_0x2aa670['id']}})[_0x549358('0x41')](function(){return _0x58727f;});})[_0x285a3c('0x41')](function(){_0x33a6c6['status'](0xcc)['end']();});};}function handleEntityNotFound(_0x7e0c2e){return function(_0x557304){return!_0x557304&&_0x7e0c2e['sendStatus'](0x194),_0x557304;};}function handleError(_0x8a31cb,_0x526115){return _0x526115=_0x526115||0x1f4,function(_0x2455b9){const _0x2451c4=a420_0x18b2;logger[_0x2451c4('0x39')](_0x2455b9['stack']),_0x2455b9[_0x2451c4('0x2d')]&&delete _0x2455b9[_0x2451c4('0x2d')],_0x8a31cb[_0x2451c4('0x10')](_0x526115)[_0x2451c4('0x5c')](_0x2455b9);};}exports[_0x426e7c('0x4')]=function(_0x1ab0a4,_0x325b1e){const _0x166997=_0x426e7c;let _0xc3be08={};const _0x3f8bb8={},_0x23e3b3={'count':0x0,'rows':[]},_0x2e60e2=_[_0x166997('0x60')](db[_0x166997('0x3a')]['rawAttributes'],function(_0xfa5ba4){const _0x5357d5=_0x166997;return{'name':_0xfa5ba4[_0x5357d5('0x28')],'type':_0xfa5ba4[_0x5357d5('0x9')][_0x5357d5('0xf')]};});_0x3f8bb8[_0x166997('0x2')]=_['map'](_0x2e60e2,'name'),_0x3f8bb8['query']=_[_0x166997('0x63')](_0x1ab0a4[_0x166997('0x31')]),_0x3f8bb8[_0x166997('0x53')]=_['intersection'](_0x3f8bb8[_0x166997('0x2')],_0x3f8bb8['query']),_0xc3be08[_0x166997('0x55')]=_['intersection'](_0x3f8bb8['model'],qs[_0x166997('0x5a')](_0x1ab0a4[_0x166997('0x31')]['fields'])),_0xc3be08[_0x166997('0x55')]=_0xc3be08['attributes'][_0x166997('0x1')]?_0xc3be08[_0x166997('0x55')]:_0x3f8bb8[_0x166997('0x2')];typeof _0x1ab0a4[_0x166997('0x31')][_0x166997('0x61')]===_0x166997('0x26')&&(_0xc3be08[_0x166997('0x12')]=qs[_0x166997('0x12')](_0x1ab0a4[_0x166997('0x31')][_0x166997('0x12')]),_0xc3be08[_0x166997('0x1b')]=qs[_0x166997('0x1b')](_0x1ab0a4[_0x166997('0x31')][_0x166997('0x1b')]));_0xc3be08[_0x166997('0x46')]=qs[_0x166997('0x38')](_0x1ab0a4[_0x166997('0x31')][_0x166997('0x38')]),_0xc3be08[_0x166997('0x35')]=qs['filters'](_[_0x166997('0x1d')](_0x1ab0a4[_0x166997('0x31')],_0x3f8bb8[_0x166997('0x53')]),_0x2e60e2);_0x1ab0a4[_0x166997('0x31')][_0x166997('0x30')]&&(_0xc3be08[_0x166997('0x35')]=_['merge'](_0xc3be08[_0x166997('0x35')],{[Op['or']]:_['map'](_0x2e60e2,function(_0x49dbef){const _0x55e61c=_0x166997;if(_0x49dbef['type']!==_0x55e61c('0x4b')){const _0x3f4c18={};return _0x3f4c18[_0x49dbef['name']]={[Op[_0x55e61c('0x59')]]:'%'+_0x1ab0a4[_0x55e61c('0x31')][_0x55e61c('0x30')]+'%'},_0x3f4c18;}})}));_0xc3be08=_[_0x166997('0x4e')]({},_0xc3be08,_0x1ab0a4[_0x166997('0x58')]);const _0x1bea9f={'where':_0xc3be08['where']};return db['MailQueue'][_0x166997('0x62')](_0x1bea9f)[_0x166997('0x41')](function(_0x2f299a){const _0x57989a=_0x166997;return _0x23e3b3['count']=_0x2f299a,_0x1ab0a4['query']['includeAll']&&(_0xc3be08['include']=[{'all':!![]}]),db['MailQueue'][_0x57989a('0x5d')](_0xc3be08);})[_0x166997('0x41')](function(_0x5afadf){return _0x23e3b3['rows']=_0x5afadf,_0x23e3b3;})[_0x166997('0x41')](respondWithFilteredResult(_0x325b1e,_0xc3be08))[_0x166997('0x3e')](handleError(_0x325b1e,null));},exports[_0x426e7c('0x1f')]=function(_0x427e8f,_0x1a7df1){const _0x45f6fc=_0x426e7c;let _0x3a0514={'raw':!![],'where':{'id':_0x427e8f['params']['id']}};const _0x1390a0={};return _0x1390a0['model']=_[_0x45f6fc('0x63')](db['MailQueue']['rawAttributes']),_0x1390a0['query']=_[_0x45f6fc('0x63')](_0x427e8f['query']),_0x1390a0[_0x45f6fc('0x53')]=_[_0x45f6fc('0x6b')](_0x1390a0[_0x45f6fc('0x2')],_0x1390a0[_0x45f6fc('0x31')]),_0x3a0514[_0x45f6fc('0x55')]=_[_0x45f6fc('0x6b')](_0x1390a0[_0x45f6fc('0x2')],qs[_0x45f6fc('0x5a')](_0x427e8f[_0x45f6fc('0x31')]['fields'])),_0x3a0514[_0x45f6fc('0x55')]=_0x3a0514[_0x45f6fc('0x55')][_0x45f6fc('0x1')]?_0x3a0514['attributes']:_0x1390a0[_0x45f6fc('0x2')],_0x427e8f[_0x45f6fc('0x31')][_0x45f6fc('0xa')]&&(_0x3a0514[_0x45f6fc('0x42')]=[{'all':!![]}]),_0x3a0514=_[_0x45f6fc('0x4e')]({},_0x3a0514,_0x427e8f[_0x45f6fc('0x58')]),db[_0x45f6fc('0x3a')][_0x45f6fc('0x22')](_0x3a0514)[_0x45f6fc('0x41')](handleEntityNotFound(_0x1a7df1,null))[_0x45f6fc('0x41')](respondWithResult(_0x1a7df1,null))[_0x45f6fc('0x3e')](handleError(_0x1a7df1,null));},exports[_0x426e7c('0x36')]=function(_0x14f0e3,_0x172b87){const _0x8e04ca=_0x426e7c;return db['MailQueue'][_0x8e04ca('0x36')](_0x14f0e3['body'],{})['then'](function(_0x4b2b26){const _0x4dd4f6=_0x8e04ca,_0xc567d9=_0x14f0e3[_0x4dd4f6('0xe')]['get']({'plain':!![]});if(!_0xc567d9)throw new Error(_0x4dd4f6('0x25'));if(_0xc567d9[_0x4dd4f6('0x37')]===_0x4dd4f6('0xe')){const _0x48321d=_0x4b2b26[_0x4dd4f6('0x1c')]({'plain':!![]}),_0x1acbfd=_0x4dd4f6('0x45');return db[_0x4dd4f6('0x2e')]['findOne']({'where':{'name':_0x1acbfd,'userProfileId':_0xc567d9[_0x4dd4f6('0x33')]},'raw':!![]})['then'](function(_0xbddea5){const _0x4376bd=_0x4dd4f6;return _0xbddea5&&_0xbddea5[_0x4376bd('0x6d')]===0x0?db[_0x4376bd('0x43')]['create']({'name':_0x48321d[_0x4376bd('0x2d')],'resourceId':_0x48321d['id'],'type':_0xbddea5[_0x4376bd('0x2d')],'sectionId':_0xbddea5['id']},{})[_0x4376bd('0x41')](function(){return _0x4b2b26;}):_0x4b2b26;})[_0x4dd4f6('0x3e')](function(_0x36760e){const _0x593a98=_0x4dd4f6;logger[_0x593a98('0x39')](_0x593a98('0x3b'),_0x36760e);throw _0x36760e;});}return _0x4b2b26;})[_0x8e04ca('0x41')](respondWithResult(_0x172b87,0xc9))['catch'](handleError(_0x172b87,null));},exports[_0x426e7c('0x52')]=function(_0x5c8353,_0x1c7f3e){const _0x460554=_0x426e7c;return _0x5c8353['body']['id']&&delete _0x5c8353[_0x460554('0x16')]['id'],db[_0x460554('0x3a')]['findOne']({'where':{'id':_0x5c8353['params']['id']}})[_0x460554('0x41')](handleEntityNotFound(_0x1c7f3e,null))[_0x460554('0x41')](saveUpdates(_0x5c8353['body'],null))[_0x460554('0x41')](respondWithResult(_0x1c7f3e,null))[_0x460554('0x3e')](handleError(_0x1c7f3e,null));},exports[_0x426e7c('0x5f')]=function(_0x1e141e,_0x260d3f){const _0x1aa911=_0x426e7c;return db['MailQueue'][_0x1aa911('0x22')]({'where':{'id':_0x1e141e[_0x1aa911('0x49')]['id']}})['then'](handleEntityNotFound(_0x260d3f,null))[_0x1aa911('0x41')](removeEntity(_0x260d3f,null))['catch'](handleError(_0x260d3f,null));},exports[_0x426e7c('0x6c')]=function(_0x28341a,_0xef152a){const _0x5b5a0a=_0x426e7c;return db[_0x5b5a0a('0x3a')][_0x5b5a0a('0x6c')]()[_0x5b5a0a('0x41')](respondWithResult(_0xef152a,null))[_0x5b5a0a('0x3e')](handleError(_0xef152a,null));},exports[_0x426e7c('0x3')]=function(_0x31c629,_0x29c028){const _0x507810=_0x426e7c;let _0x1a81dd={'raw':!![],'where':{}};const _0x4b5df5={};let _0x40021c;return db[_0x507810('0x3a')][_0x507810('0x22')]({'where':{'id':_0x31c629['params']['id']}})[_0x507810('0x41')](handleEntityNotFound(_0x29c028,null))[_0x507810('0x41')](function(_0x3605d7){const _0x40ee32=_0x507810;if(_0x3605d7)return _0x40021c=_0x3605d7[_0x40ee32('0x1c')]({'plain':!![]}),_0x4b5df5[_0x40ee32('0x2')]=_[_0x40ee32('0x63')](db[_0x40ee32('0x69')][_0x40ee32('0x4a')]),_0x4b5df5[_0x40ee32('0x31')]=_['keys'](_0x31c629[_0x40ee32('0x31')]),_0x4b5df5[_0x40ee32('0x53')]=_[_0x40ee32('0x6b')](_0x4b5df5[_0x40ee32('0x2')],_0x4b5df5[_0x40ee32('0x31')]),_0x1a81dd[_0x40ee32('0x55')]=_['intersection'](_0x4b5df5[_0x40ee32('0x2')],qs[_0x40ee32('0x5a')](_0x31c629[_0x40ee32('0x31')][_0x40ee32('0x5a')])),_0x1a81dd[_0x40ee32('0x55')]=_0x1a81dd[_0x40ee32('0x55')][_0x40ee32('0x1')]?_0x1a81dd[_0x40ee32('0x55')]:_0x4b5df5[_0x40ee32('0x2')],typeof _0x31c629['query']['nolimit']===_0x40ee32('0x26')&&(_0x1a81dd[_0x40ee32('0x12')]=qs[_0x40ee32('0x12')](_0x31c629[_0x40ee32('0x31')][_0x40ee32('0x12')]),_0x1a81dd['offset']=qs[_0x40ee32('0x1b')](_0x31c629[_0x40ee32('0x31')]['offset'])),_0x1a81dd[_0x40ee32('0x46')]=qs[_0x40ee32('0x38')](_0x31c629[_0x40ee32('0x31')][_0x40ee32('0x38')]),_0x1a81dd['where']=qs['filters'](_[_0x40ee32('0x1d')](_0x31c629[_0x40ee32('0x31')],_0x4b5df5['filters'])),_0x1a81dd[_0x40ee32('0x35')][_0x40ee32('0x3d')]=_0x3605d7['id'],_0x31c629[_0x40ee32('0x31')]['filter']&&(_0x1a81dd['where']=_[_0x40ee32('0x4e')](_0x1a81dd[_0x40ee32('0x35')],{[Op['or']]:_[_0x40ee32('0x60')](_0x1a81dd[_0x40ee32('0x55')],function(_0x1594be){const _0x5b54ae=_0x40ee32,_0x169bb8={};return _0x169bb8[_0x1594be]={[Op[_0x5b54ae('0x59')]]:'%'+_0x31c629[_0x5b54ae('0x31')][_0x5b54ae('0x30')]+'%'},_0x169bb8;})})),_0x1a81dd=_[_0x40ee32('0x4e')]({},_0x1a81dd,_0x31c629['options']),db['UserMailQueue']['findAll'](_0x1a81dd);})[_0x507810('0x41')](function(_0x401ee3){const _0x5bfd80=_0x507810;if(_0x401ee3)return db['User'][_0x5bfd80('0x47')]({'where':{'id':_[_0x5bfd80('0x60')](_0x401ee3,_0x5bfd80('0x57')),'role':'agent'},'attributes':['id','name',_0x5bfd80('0xb'),_0x5bfd80('0x2c'),'createdAt']});})[_0x507810('0x41')](function(_0x2de974){const _0x5319d1=_0x507810;return _0x2de974?{'count':_0x2de974[_0x5319d1('0x62')],'rows':_[_0x5319d1('0x60')](_0x2de974['rows'],function(_0xdf08c3){const _0x189826=_0x5319d1;return{'membername':_0xdf08c3[_0x189826('0x2d')],'UserId':_0xdf08c3['id'],'queue_name':_0x40021c['name'],'MailQueueId':_0x40021c['id'],'interface':util['format']('%s/%s',_0x189826('0x14'),_0xdf08c3[_0x189826('0x2d')]),'penalty':0x0,'paused':_0xdf08c3[_0x189826('0xb')],'createdAt':_0xdf08c3[_0x189826('0x19')],'updatedAt':_0xdf08c3[_0x189826('0x2c')]};})}:{'count':0x0,'rows':[]};})[_0x507810('0x41')](respondWithFilteredResult(_0x29c028,_0x1a81dd))['catch'](handleError(_0x29c028,null));},exports['getTeams']=function(_0x569d89,_0x3c7487){const _0x21ffc1=_0x426e7c;let _0x111cc7={};const _0x23fad1={};let _0x85196a,_0x543944;return db[_0x21ffc1('0x3a')][_0x21ffc1('0x22')]({'where':{'id':_0x569d89[_0x21ffc1('0x49')]['id']}})[_0x21ffc1('0x41')](handleEntityNotFound(_0x3c7487,null))[_0x21ffc1('0x41')](function(_0x43a1b9){const _0x2559eb=_0x21ffc1;if(_0x43a1b9)return _0x85196a=_0x43a1b9,_0x23fad1[_0x2559eb('0x2')]=_['keys'](db[_0x2559eb('0x48')][_0x2559eb('0x4a')]),_0x23fad1['query']=_[_0x2559eb('0x63')](_0x569d89[_0x2559eb('0x31')]),_0x23fad1[_0x2559eb('0x53')]=_[_0x2559eb('0x6b')](_0x23fad1[_0x2559eb('0x2')],_0x23fad1[_0x2559eb('0x31')]),_0x111cc7['attributes']=_[_0x2559eb('0x6b')](_0x23fad1[_0x2559eb('0x2')],qs[_0x2559eb('0x5a')](_0x569d89[_0x2559eb('0x31')][_0x2559eb('0x5a')])),_0x111cc7[_0x2559eb('0x55')]=_0x111cc7['attributes'][_0x2559eb('0x1')]?_0x111cc7[_0x2559eb('0x55')]:_0x23fad1[_0x2559eb('0x2')],_0x111cc7[_0x2559eb('0x46')]=qs[_0x2559eb('0x38')](_0x569d89['query'][_0x2559eb('0x38')]),_0x111cc7[_0x2559eb('0x35')]=qs['filters'](_[_0x2559eb('0x1d')](_0x569d89['query'],_0x23fad1[_0x2559eb('0x53')])),_0x569d89[_0x2559eb('0x31')][_0x2559eb('0x30')]&&(_0x111cc7[_0x2559eb('0x35')]=_[_0x2559eb('0x4e')](_0x111cc7[_0x2559eb('0x35')],{[Op['or']]:_[_0x2559eb('0x60')](_0x111cc7[_0x2559eb('0x55')],function(_0x1ccfac){const _0x1419e9=_0x2559eb,_0x322e86={};return _0x322e86[_0x1ccfac]={[Op['like']]:'%'+_0x569d89[_0x1419e9('0x31')]['filter']+'%'},_0x322e86;})})),_0x111cc7=_[_0x2559eb('0x4e')]({},_0x111cc7,_0x569d89['options']),_0x85196a['getTeams'](_0x111cc7);})['then'](function(_0x44ea46){const _0x4acd03=_0x21ffc1;if(_0x44ea46)return _0x543944=_0x44ea46[_0x4acd03('0x1')],typeof _0x569d89[_0x4acd03('0x31')][_0x4acd03('0x61')]==='undefined'&&(_0x111cc7[_0x4acd03('0x12')]=qs[_0x4acd03('0x12')](_0x569d89[_0x4acd03('0x31')][_0x4acd03('0x12')]),_0x111cc7[_0x4acd03('0x1b')]=qs[_0x4acd03('0x1b')](_0x569d89[_0x4acd03('0x31')][_0x4acd03('0x1b')])),_0x85196a['getTeams'](_0x111cc7);})[_0x21ffc1('0x41')](function(_0x48b22e){if(_0x48b22e)return _0x48b22e?{'count':_0x543944,'rows':_0x48b22e}:null;})['then'](respondWithResult(_0x3c7487,null))['catch'](handleError(_0x3c7487,null));},exports[_0x426e7c('0x4c')]=function(_0x1d7078,_0x101475){const _0x5d9cbb=_0x426e7c,_0x1f2797=_0x1d7078[_0x5d9cbb('0x16')][_0x5d9cbb('0x29')];return db[_0x5d9cbb('0x48')]['findAll']({'where':{'id':_0x1f2797},'attributes':['id'],'include':[{'model':db['User'],'as':'Agents','attributes':['id','name',_0x5d9cbb('0x44'),_0x5d9cbb('0x15'),'interface'],'raw':!![]}]})[_0x5d9cbb('0x41')](function(_0x585a37){const _0x20d9c7=_0x5d9cbb;if(_0x585a37){const _0x5c066e=_[_0x20d9c7('0xd')](_0x585a37,function(_0x2d4921){const _0x3890a7=_0x20d9c7,_0x170c3f=_0x2d4921[_0x3890a7('0x1c')]({'plain':!![]});return _0x170c3f[_0x3890a7('0x3f')];});return db['MailQueue'][_0x20d9c7('0x22')]({'where':{'id':_0x1d7078[_0x20d9c7('0x49')]['id']}})[_0x20d9c7('0x41')](function(_0x15b15a){const _0x259b9d=_0x20d9c7;return db[_0x259b9d('0x17')][_0x259b9d('0x56')](function(_0x4f1f49){const _0x581c4a=_0x259b9d;return _0x15b15a[_0x581c4a('0x4c')](_0x1f2797,{'transaction':_0x4f1f49})['then'](function(){const _0x429d05=_0x581c4a;return Promise[_0x429d05('0x64')](_0x5c066e[_0x429d05('0x60')](_0x54e220=>{const _0x2d9ff3=_0x429d05;return db[_0x2d9ff3('0x69')][_0x2d9ff3('0xc')]({'where':{'UserId':_0x54e220['id'],'MailQueueId':_0x1d7078['params']['id']},'transaction':_0x4f1f49});}));})[_0x581c4a('0x41')](function(){const _0x34c215=_0x581c4a;_0x5c066e[_0x34c215('0x5b')](function(_0xf28023){const _0x423f86=_0x34c215;socket['emit'](_0x423f86('0x68'),{'UserId':_0xf28023['id'],'MailQueueId':_0x15b15a['id']});});});});});}})['then'](respondWithStatusCode(_0x101475,null))[_0x5d9cbb('0x3e')](handleError(_0x101475,null));},exports[_0x426e7c('0x54')]=function(_0x49a232,_0x3b0fa5){const _0x4d6f28=_0x426e7c;return db[_0x4d6f28('0x48')][_0x4d6f28('0x5d')]({'where':{'id':_0x49a232[_0x4d6f28('0x31')][_0x4d6f28('0x29')]},'attributes':['id'],'include':[{'model':db['User'],'as':_0x4d6f28('0x3f'),'attributes':['id'],'raw':!![]}]})[_0x4d6f28('0x41')](handleEntityNotFound(_0x3b0fa5,null))[_0x4d6f28('0x41')](function(_0x481835){const _0x122c61=_0x4d6f28,_0x4ddda3=_[_0x122c61('0x60')](_0x481835,'id');let _0x525f06=[];const _0xd3c190=[],_0x247ef8=squel[_0x122c61('0x32')]();_0x247ef8[_0x122c61('0x2a')](_0x122c61('0x21'))[_0x122c61('0x51')](_0x122c61('0x1e'),'tq')[_0x122c61('0x6')]('user_has_teams','ut',_0x122c61('0x5'))[_0x122c61('0x35')](_0x122c61('0x2b'),_0x49a232[_0x122c61('0x49')]['id']);for(let _0x2b942b=0x0;_0x2b942b<_0x481835[_0x122c61('0x1')];_0x2b942b+=0x1){const _0x5acb7b=_0x481835[_0x2b942b];for(let _0x4c03bf=0x0;_0x4c03bf<_0x5acb7b[_0x122c61('0x3f')][_0x122c61('0x1')];_0x4c03bf+=0x1){const _0x11d1c2=_0x5acb7b['Agents'][_0x4c03bf],_0x402e79=_0x247ef8['clone']();_0x402e79[_0x122c61('0x35')](_0x122c61('0x6e'),_0x11d1c2['id']),_0xd3c190['push'](db[_0x122c61('0x17')]['query'](_0x402e79['toString'](),{'type':QueryTypes[_0x122c61('0x20')]})[_0x122c61('0x41')](function(_0xd12904){const _0x4b4656=_0x122c61;if(_0xd12904[_0x4b4656('0x1')]===0x1)return _0x11d1c2['id'];else{const _0x40c135=_['every'](_['map'](_0xd12904,_0x4b4656('0x5e')),function(_0x197172){const _0x5b5324=_0x4b4656;return _[_0x5b5324('0x6f')](_0x4ddda3,_0x197172);});if(_0x40c135)return _0x11d1c2['id'];}}));}}return Promise[_0x122c61('0x64')](_0xd3c190)[_0x122c61('0x41')](function(_0x2ea70a){const _0x341ae5=_0x122c61;return _0x525f06=_(_0x525f06)['union'](_0x2ea70a)[_0x341ae5('0x4f')]()[_0x341ae5('0x6a')](),db[_0x341ae5('0x3a')]['findOne']({'where':{'id':_0x49a232[_0x341ae5('0x49')]['id']}})[_0x341ae5('0x41')](function(_0x51de6b){const _0x2c17c9=_0x341ae5;return db['sequelize'][_0x2c17c9('0x56')](function(_0x82b08e){const _0x20de3f=_0x2c17c9;return _0x51de6b[_0x20de3f('0x54')](_0x49a232['query'][_0x20de3f('0x29')],{'transaction':_0x82b08e})[_0x20de3f('0x41')](function(){const _0x2d7454=_0x20de3f;if(!_[_0x2d7454('0x13')](_0x525f06))return _0x51de6b[_0x2d7454('0x11')](_0x525f06,{'transaction':_0x82b08e});})[_0x20de3f('0x41')](function(){_0x525f06['forEach'](function(_0x471fef){const _0x219855=a420_0x18b2;socket[_0x219855('0x66')]('userMailQueue:remove',{'UserId':_0x471fef,'MailQueueId':_0x51de6b['id']});});});});});});})[_0x4d6f28('0x41')](respondWithStatusCode(_0x3b0fa5,null))[_0x4d6f28('0x3e')](handleError(_0x3b0fa5,null));},exports[_0x426e7c('0x8')]=function(_0x8d3db0,_0x20f3f4){const _0x38ada4=_0x426e7c;return db['MailQueue'][_0x38ada4('0x22')]({'where':{'id':_0x8d3db0[_0x38ada4('0x49')]['id']}})[_0x38ada4('0x41')](function(_0x2da044){const _0x44d193=_0x38ada4;if(_0x2da044)return _0x2da044[_0x44d193('0x8')](_0x8d3db0[_0x44d193('0x16')][_0x44d193('0x29')],{'through':_[_0x44d193('0x4d')](_0x8d3db0[_0x44d193('0x16')],[_0x44d193('0x29'),'id'])})[_0x44d193('0x41')](function(_0x32718e){const _0x29469f=_0x44d193;for(let _0x215289=0x0;_0x215289<_0x8d3db0['body']['ids']['length'];_0x215289+=0x1){socket[_0x29469f('0x66')](_0x29469f('0x68'),{'UserId':_0x8d3db0[_0x29469f('0x16')]['ids'][_0x215289],'MailQueueId':_0x8d3db0[_0x29469f('0x49')]['id']});}return _0x32718e;});})[_0x38ada4('0x41')](respondWithResult(_0x20f3f4,null))[_0x38ada4('0x3e')](handleError(_0x20f3f4,null));},exports[_0x426e7c('0x11')]=function(_0x24657c,_0x544ff9){const _0xb5038e=_0x426e7c;return db[_0xb5038e('0x3a')]['findOne']({'where':{'id':_0x24657c['params']['id']}})[_0xb5038e('0x41')](handleEntityNotFound(_0x544ff9,null))['then'](function(_0x44b8a3){const _0x16bc4f=_0xb5038e;if(_0x44b8a3)return _0x44b8a3['removeAgents'](_0x24657c[_0x16bc4f('0x31')][_0x16bc4f('0x29')])[_0x16bc4f('0x41')](function(){const _0x293cba=_0x16bc4f;if(_[_0x293cba('0x18')](_0x24657c[_0x293cba('0x31')]['ids']))for(let _0x3c4d53=0x0;_0x3c4d53<_0x24657c[_0x293cba('0x31')]['ids'][_0x293cba('0x1')];_0x3c4d53+=0x1){socket[_0x293cba('0x66')]('userMailQueue:remove',{'UserId':Number(_0x24657c[_0x293cba('0x31')]['ids'][_0x3c4d53]),'MailQueueId':Number(_0x24657c[_0x293cba('0x49')]['id'])});}else socket[_0x293cba('0x66')](_0x293cba('0x3c'),{'UserId':Number(_0x24657c[_0x293cba('0x31')][_0x293cba('0x29')]),'MailQueueId':Number(_0x24657c['params']['id'])});});})[_0xb5038e('0x41')](respondWithStatusCode(_0x544ff9,null))[_0xb5038e('0x3e')](handleError(_0x544ff9,null));},exports[_0x426e7c('0x65')]=function(_0x297237,_0x506fed){const _0x5b3020=_0x426e7c;let _0xd7023d={};const _0x3bb09c={};let _0x5a9f57,_0x4fa5eb;return db[_0x5b3020('0x3a')][_0x5b3020('0x22')]({'where':{'id':_0x297237[_0x5b3020('0x49')]['id']}})[_0x5b3020('0x41')](handleEntityNotFound(_0x506fed,null))[_0x5b3020('0x41')](function(_0x30e6b9){const _0x35abb9=_0x5b3020;if(_0x30e6b9)return _0x5a9f57=_0x30e6b9,_0x3bb09c[_0x35abb9('0x2')]=_[_0x35abb9('0x63')](db[_0x35abb9('0x67')][_0x35abb9('0x4a')]),_0x3bb09c['query']=_[_0x35abb9('0x63')](_0x297237[_0x35abb9('0x31')]),_0x3bb09c[_0x35abb9('0x53')]=_[_0x35abb9('0x6b')](_0x3bb09c[_0x35abb9('0x2')],_0x3bb09c[_0x35abb9('0x31')]),_0xd7023d[_0x35abb9('0x55')]=_[_0x35abb9('0x6b')](_0x3bb09c[_0x35abb9('0x2')],qs[_0x35abb9('0x5a')](_0x297237[_0x35abb9('0x31')][_0x35abb9('0x5a')])),_0xd7023d[_0x35abb9('0x55')]=_0xd7023d[_0x35abb9('0x55')]['length']?_0xd7023d[_0x35abb9('0x55')]:_0x3bb09c['model'],_0xd7023d[_0x35abb9('0x46')]=qs['sort'](_0x297237[_0x35abb9('0x31')]['sort']),_0xd7023d['where']=qs[_0x35abb9('0x53')](_[_0x35abb9('0x1d')](_0x297237[_0x35abb9('0x31')],_0x3bb09c[_0x35abb9('0x53')])),_0x297237[_0x35abb9('0x31')][_0x35abb9('0x30')]&&(_0xd7023d[_0x35abb9('0x35')]=_[_0x35abb9('0x4e')](_0xd7023d[_0x35abb9('0x35')],{[Op['or']]:_[_0x35abb9('0x60')](_0xd7023d[_0x35abb9('0x55')],function(_0x1a9bf0){const _0x4812e9=_0x35abb9,_0x349631={};return _0x349631[_0x1a9bf0]={[Op['like']]:'%'+_0x297237[_0x4812e9('0x31')][_0x4812e9('0x30')]+'%'},_0x349631;})})),_0xd7023d=_[_0x35abb9('0x4e')]({},_0xd7023d,_0x297237[_0x35abb9('0x58')]),_0x5a9f57[_0x35abb9('0x65')](_0xd7023d);})[_0x5b3020('0x41')](function(_0x5cdff2){const _0x1f3446=_0x5b3020;if(_0x5cdff2)return _0x4fa5eb=_0x5cdff2[_0x1f3446('0x1')],typeof _0x297237[_0x1f3446('0x31')][_0x1f3446('0x61')]===_0x1f3446('0x26')&&(_0xd7023d[_0x1f3446('0x12')]=qs[_0x1f3446('0x12')](_0x297237['query']['limit']),_0xd7023d['offset']=qs[_0x1f3446('0x1b')](_0x297237[_0x1f3446('0x31')]['offset'])),_0x5a9f57[_0x1f3446('0x65')](_0xd7023d);})[_0x5b3020('0x41')](function(_0xadd7f0){if(_0xadd7f0)return _0xadd7f0?{'count':_0x4fa5eb,'rows':_0xadd7f0}:null;})[_0x5b3020('0x41')](respondWithResult(_0x506fed,null))[_0x5b3020('0x3e')](handleError(_0x506fed,null));}; \ No newline at end of file +const a505_0x4eef=['query','intersection','get','Agents','MailQueueId','offset','sendStatus','addAgents','value','attributes','count','format','squel','removeAgents','destroy','ut.UserId\x20=\x20?','keys','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','key','forEach','mailPause','clone','findAndCountAll','MailQueueId\x20=\x20?','join','ids','findOrCreate','toString','MailQueues','show','every','merge','sort','Content-Range','pick','json','order','ut.TeamId\x20=\x20tq.TeamId','describe','MailQueue','from','compact','user_has_teams','update','index','options','includeAll','../../components/parsers/qs','agent','set','where','../../mysqldb','status','filter','role','../../config/logger','removeTeams','createdAt','User','fields','rows','getMembers','./mailQueue.socket','VIRTUAL','emit','SIP','nolimit','getTeams','transaction','include','body','autoAssociation','fieldName','findAll','end','sequelize','TeamId','UserMailQueue','all','length','select','api','isArray','like','online','findOne','addTeams','catch','map','omit','params','userMailQueue:remove','union','rawAttributes','error','getAgents','updatedAt','Team','voicePause','filters','model','type','limit','undefined','lodash','UserProfileResource','then','create','name','register','util','isEmpty','stack'];(function(_0x2f1c94,_0x2457dc){const _0x4eef30=function(_0x3e9d66){while(--_0x3e9d66){_0x2f1c94['push'](_0x2f1c94['shift']());}};_0x4eef30(++_0x2457dc);}(a505_0x4eef,0x154));const a505_0x3e9d=function(_0x2f1c94,_0x2457dc){_0x2f1c94=_0x2f1c94-0x1e6;let _0x4eef30=a505_0x4eef[_0x2f1c94];return _0x4eef30;};const a505_0x4c7904=a505_0x3e9d;'use strict';const util=require(a505_0x4c7904(0x253)),_=require(a505_0x4c7904(0x24d)),squel=require(a505_0x4c7904(0x1f1)),qs=require(a505_0x4c7904(0x214)),logger=require(a505_0x4c7904(0x21c))(a505_0x4c7904(0x236)),{getSocket}=require('../../rediscache'),socket=getSocket(),{db}=require(a505_0x4c7904(0x218)),{Op,QueryTypes}=require(a505_0x4c7904(0x230));require(a505_0x4c7904(0x223))[a505_0x4c7904(0x252)](socket);function respondWithStatusCode(_0xe2692a,_0x2352d1){return _0x2352d1=_0x2352d1||0xcc,function(_0x55f00b){const _0x58c819=a505_0x3e9d;if(_0x55f00b)return _0xe2692a[_0x58c819(0x1eb)](_0x2352d1);return _0xe2692a[_0x58c819(0x219)](_0x2352d1)[_0x58c819(0x22f)]();};}function respondWithResult(_0x297936,_0x1d9809){return _0x1d9809=_0x1d9809||0xc8,function(_0x227899){const _0x5e9fd3=a505_0x3e9d;if(_0x227899)return _0x297936[_0x5e9fd3(0x219)](_0x1d9809)[_0x5e9fd3(0x208)](_0x227899);};}function respondWithFilteredResult(_0x57b19e,_0x290af2){return function(_0x27008c){const _0x2ef3fd=a505_0x3e9d;if(_0x27008c){const _0x5b3e9d=_0x27008c[_0x2ef3fd(0x1ef)],_0x4fd38a=_0x290af2[_0x2ef3fd(0x1ea)];let _0x1c8acb=_0x290af2[_0x2ef3fd(0x1ea)]+_0x290af2[_0x2ef3fd(0x24b)],_0x5411ea;return _0x1c8acb>=_0x5b3e9d?(_0x1c8acb=_0x5b3e9d,_0x5411ea=0xc8):_0x5411ea=0xce,_0x57b19e[_0x2ef3fd(0x219)](_0x5411ea),_0x57b19e[_0x2ef3fd(0x216)](_0x2ef3fd(0x206),_0x4fd38a+'-'+_0x1c8acb+'/'+_0x5b3e9d)['json'](_0x27008c);}return null;};}function saveUpdates(_0x17b4a6){return function(_0x538d6e){const _0x18511e=a505_0x3e9d;if(_0x538d6e)return _0x538d6e[_0x18511e(0x210)](_0x17b4a6)[_0x18511e(0x24f)](function(_0x5ab0a7){return _0x5ab0a7;});return null;};}function removeEntity(_0x55c756){return function(_0x4d187c){const _0x2c5f6b=a505_0x3e9d;if(_0x4d187c)return _0x4d187c['destroy']()[_0x2c5f6b(0x24f)](function(){const _0x4269b0=_0x2c5f6b,_0x517b8b=_0x4d187c[_0x4269b0(0x1e7)]({'plain':!![]}),_0x4b8d54=_0x4269b0(0x201);return db[_0x4269b0(0x24e)]['destroy']({'where':{'type':_0x4b8d54,'resourceId':_0x517b8b['id']}})['then'](function(){return _0x4d187c;});})[_0x2c5f6b(0x24f)](function(){const _0x5084bb=_0x2c5f6b;_0x55c756[_0x5084bb(0x219)](0xcc)[_0x5084bb(0x22f)]();});};}function handleEntityNotFound(_0x56401c){return function(_0x435d32){const _0x1623a3=a505_0x3e9d;return!_0x435d32&&_0x56401c[_0x1623a3(0x1eb)](0x194),_0x435d32;};}function handleError(_0x283250,_0x458f47){return _0x458f47=_0x458f47||0x1f4,function(_0x4084a0){const _0x43cd4d=a505_0x3e9d;logger['error'](_0x4084a0[_0x43cd4d(0x255)]),_0x4084a0[_0x43cd4d(0x251)]&&delete _0x4084a0[_0x43cd4d(0x251)],_0x283250[_0x43cd4d(0x219)](_0x458f47)['send'](_0x4084a0);};}exports[a505_0x4c7904(0x211)]=function(_0x5c6d78,_0x127fc1){const _0x2a8483=a505_0x4c7904;let _0xeacf4a={};const _0x1ce5ad={},_0x4d9e2f={'count':0x0,'rows':[]},_0x2337cb=_[_0x2a8483(0x23d)](db[_0x2a8483(0x20c)][_0x2a8483(0x242)],function(_0x25bf0e){const _0x2ca7b0=_0x2a8483;return{'name':_0x25bf0e[_0x2ca7b0(0x22d)],'type':_0x25bf0e['type'][_0x2ca7b0(0x1f7)]};});_0x1ce5ad['model']=_[_0x2a8483(0x23d)](_0x2337cb,_0x2a8483(0x251)),_0x1ce5ad['query']=_[_0x2a8483(0x1f5)](_0x5c6d78[_0x2a8483(0x256)]),_0x1ce5ad[_0x2a8483(0x248)]=_[_0x2a8483(0x1e6)](_0x1ce5ad[_0x2a8483(0x249)],_0x1ce5ad[_0x2a8483(0x256)]),_0xeacf4a[_0x2a8483(0x1ee)]=_[_0x2a8483(0x1e6)](_0x1ce5ad[_0x2a8483(0x249)],qs[_0x2a8483(0x220)](_0x5c6d78[_0x2a8483(0x256)][_0x2a8483(0x220)])),_0xeacf4a[_0x2a8483(0x1ee)]=_0xeacf4a['attributes'][_0x2a8483(0x234)]?_0xeacf4a['attributes']:_0x1ce5ad['model'];typeof _0x5c6d78[_0x2a8483(0x256)][_0x2a8483(0x227)]===_0x2a8483(0x24c)&&(_0xeacf4a['limit']=qs[_0x2a8483(0x24b)](_0x5c6d78[_0x2a8483(0x256)]['limit']),_0xeacf4a['offset']=qs[_0x2a8483(0x1ea)](_0x5c6d78[_0x2a8483(0x256)]['offset']));_0xeacf4a[_0x2a8483(0x209)]=qs[_0x2a8483(0x205)](_0x5c6d78[_0x2a8483(0x256)][_0x2a8483(0x205)]),_0xeacf4a['where']=qs[_0x2a8483(0x248)](_[_0x2a8483(0x207)](_0x5c6d78[_0x2a8483(0x256)],_0x1ce5ad['filters']),_0x2337cb);_0x5c6d78['query'][_0x2a8483(0x21a)]&&(_0xeacf4a['where']=_[_0x2a8483(0x204)](_0xeacf4a[_0x2a8483(0x217)],{[Op['or']]:_[_0x2a8483(0x23d)](_0x2337cb,function(_0x212abb){const _0x3c5941=_0x2a8483;if(_0x212abb[_0x3c5941(0x24a)]!==_0x3c5941(0x224)){const _0x81b9a6={};return _0x81b9a6[_0x212abb[_0x3c5941(0x251)]]={[Op[_0x3c5941(0x238)]]:'%'+_0x5c6d78[_0x3c5941(0x256)]['filter']+'%'},_0x81b9a6;}})}));_0xeacf4a=_[_0x2a8483(0x204)]({},_0xeacf4a,_0x5c6d78['options']);const _0x82b762={'where':_0xeacf4a['where']};return db[_0x2a8483(0x20c)]['count'](_0x82b762)['then'](function(_0x4092d1){const _0x4c7f76=_0x2a8483;return _0x4d9e2f[_0x4c7f76(0x1ef)]=_0x4092d1,_0x5c6d78['query'][_0x4c7f76(0x213)]&&(_0xeacf4a[_0x4c7f76(0x22a)]=[{'all':!![]}]),db[_0x4c7f76(0x20c)][_0x4c7f76(0x22e)](_0xeacf4a);})['then'](function(_0x4a9848){return _0x4d9e2f['rows']=_0x4a9848,_0x4d9e2f;})[_0x2a8483(0x24f)](respondWithFilteredResult(_0x127fc1,_0xeacf4a))[_0x2a8483(0x23c)](handleError(_0x127fc1,null));},exports[a505_0x4c7904(0x202)]=function(_0x362af5,_0x59751d){const _0x46ada7=a505_0x4c7904;let _0x1e30d7={'raw':!![],'where':{'id':_0x362af5[_0x46ada7(0x23f)]['id']}};const _0x13136b={};return _0x13136b[_0x46ada7(0x249)]=_['keys'](db['MailQueue'][_0x46ada7(0x242)]),_0x13136b[_0x46ada7(0x256)]=_['keys'](_0x362af5[_0x46ada7(0x256)]),_0x13136b[_0x46ada7(0x248)]=_[_0x46ada7(0x1e6)](_0x13136b[_0x46ada7(0x249)],_0x13136b[_0x46ada7(0x256)]),_0x1e30d7['attributes']=_[_0x46ada7(0x1e6)](_0x13136b[_0x46ada7(0x249)],qs[_0x46ada7(0x220)](_0x362af5[_0x46ada7(0x256)][_0x46ada7(0x220)])),_0x1e30d7[_0x46ada7(0x1ee)]=_0x1e30d7[_0x46ada7(0x1ee)][_0x46ada7(0x234)]?_0x1e30d7[_0x46ada7(0x1ee)]:_0x13136b[_0x46ada7(0x249)],_0x362af5['query']['includeAll']&&(_0x1e30d7[_0x46ada7(0x22a)]=[{'all':!![]}]),_0x1e30d7=_[_0x46ada7(0x204)]({},_0x1e30d7,_0x362af5[_0x46ada7(0x212)]),db[_0x46ada7(0x20c)][_0x46ada7(0x23a)](_0x1e30d7)[_0x46ada7(0x24f)](handleEntityNotFound(_0x59751d,null))[_0x46ada7(0x24f)](respondWithResult(_0x59751d,null))[_0x46ada7(0x23c)](handleError(_0x59751d,null));},exports[a505_0x4c7904(0x250)]=function(_0x3b81a9,_0x1abb19){const _0x4f077c=a505_0x4c7904;return db[_0x4f077c(0x20c)]['create'](_0x3b81a9[_0x4f077c(0x22b)],{})[_0x4f077c(0x24f)](function(_0x35cdb9){const _0x479448=_0x4f077c,_0x3aae7e=_0x3b81a9['user'][_0x479448(0x1e7)]({'plain':!![]});if(!_0x3aae7e)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x3aae7e[_0x479448(0x21b)]==='user'){const _0x401f17=_0x35cdb9[_0x479448(0x1e7)]({'plain':!![]}),_0x3a173a=_0x479448(0x201);return db['UserProfileSection']['findOne']({'where':{'name':_0x3a173a,'userProfileId':_0x3aae7e['userProfileId']},'raw':!![]})['then'](function(_0x571fb5){const _0x5d7ffe=_0x479448;return _0x571fb5&&_0x571fb5[_0x5d7ffe(0x22c)]===0x0?db[_0x5d7ffe(0x24e)][_0x5d7ffe(0x250)]({'name':_0x401f17['name'],'resourceId':_0x401f17['id'],'type':_0x571fb5['name'],'sectionId':_0x571fb5['id']},{})[_0x5d7ffe(0x24f)](function(){return _0x35cdb9;}):_0x35cdb9;})['catch'](function(_0x520519){const _0x380dac=_0x479448;logger[_0x380dac(0x243)](_0x380dac(0x1f6),_0x520519);throw _0x520519;});}return _0x35cdb9;})[_0x4f077c(0x24f)](respondWithResult(_0x1abb19,0xc9))[_0x4f077c(0x23c)](handleError(_0x1abb19,null));},exports['update']=function(_0x3fc9f1,_0x1165fd){const _0x51c4b9=a505_0x4c7904;return _0x3fc9f1[_0x51c4b9(0x22b)]['id']&&delete _0x3fc9f1[_0x51c4b9(0x22b)]['id'],db['MailQueue'][_0x51c4b9(0x23a)]({'where':{'id':_0x3fc9f1[_0x51c4b9(0x23f)]['id']}})[_0x51c4b9(0x24f)](handleEntityNotFound(_0x1165fd,null))[_0x51c4b9(0x24f)](saveUpdates(_0x3fc9f1[_0x51c4b9(0x22b)],null))[_0x51c4b9(0x24f)](respondWithResult(_0x1165fd,null))[_0x51c4b9(0x23c)](handleError(_0x1165fd,null));},exports[a505_0x4c7904(0x1f3)]=function(_0x524bd5,_0x15016c){const _0x3c4b55=a505_0x4c7904;return db[_0x3c4b55(0x20c)][_0x3c4b55(0x23a)]({'where':{'id':_0x524bd5['params']['id']}})[_0x3c4b55(0x24f)](handleEntityNotFound(_0x15016c,null))['then'](removeEntity(_0x15016c,null))[_0x3c4b55(0x23c)](handleError(_0x15016c,null));},exports[a505_0x4c7904(0x20b)]=function(_0x199a86,_0x183026){const _0x56e762=a505_0x4c7904;return db['MailQueue'][_0x56e762(0x20b)]()[_0x56e762(0x24f)](respondWithResult(_0x183026,null))['catch'](handleError(_0x183026,null));},exports[a505_0x4c7904(0x222)]=function(_0x2e7630,_0x240d4e){const _0x19ee59=a505_0x4c7904;let _0x570158={'raw':!![],'where':{}};const _0x30293c={};let _0x209d0b;return db[_0x19ee59(0x20c)][_0x19ee59(0x23a)]({'where':{'id':_0x2e7630[_0x19ee59(0x23f)]['id']}})[_0x19ee59(0x24f)](handleEntityNotFound(_0x240d4e,null))['then'](function(_0x297c37){const _0x150b10=_0x19ee59;if(_0x297c37)return _0x209d0b=_0x297c37[_0x150b10(0x1e7)]({'plain':!![]}),_0x30293c[_0x150b10(0x249)]=_[_0x150b10(0x1f5)](db[_0x150b10(0x232)]['rawAttributes']),_0x30293c[_0x150b10(0x256)]=_[_0x150b10(0x1f5)](_0x2e7630['query']),_0x30293c['filters']=_[_0x150b10(0x1e6)](_0x30293c[_0x150b10(0x249)],_0x30293c[_0x150b10(0x256)]),_0x570158[_0x150b10(0x1ee)]=_['intersection'](_0x30293c[_0x150b10(0x249)],qs[_0x150b10(0x220)](_0x2e7630[_0x150b10(0x256)][_0x150b10(0x220)])),_0x570158[_0x150b10(0x1ee)]=_0x570158[_0x150b10(0x1ee)][_0x150b10(0x234)]?_0x570158[_0x150b10(0x1ee)]:_0x30293c[_0x150b10(0x249)],typeof _0x2e7630['query']['nolimit']===_0x150b10(0x24c)&&(_0x570158[_0x150b10(0x24b)]=qs[_0x150b10(0x24b)](_0x2e7630[_0x150b10(0x256)][_0x150b10(0x24b)]),_0x570158[_0x150b10(0x1ea)]=qs[_0x150b10(0x1ea)](_0x2e7630[_0x150b10(0x256)][_0x150b10(0x1ea)])),_0x570158[_0x150b10(0x209)]=qs[_0x150b10(0x205)](_0x2e7630[_0x150b10(0x256)][_0x150b10(0x205)]),_0x570158[_0x150b10(0x217)]=qs[_0x150b10(0x248)](_[_0x150b10(0x207)](_0x2e7630[_0x150b10(0x256)],_0x30293c[_0x150b10(0x248)])),_0x570158[_0x150b10(0x217)][_0x150b10(0x1e9)]=_0x297c37['id'],_0x2e7630[_0x150b10(0x256)]['filter']&&(_0x570158[_0x150b10(0x217)]=_['merge'](_0x570158['where'],{[Op['or']]:_['map'](_0x570158[_0x150b10(0x1ee)],function(_0x5eb686){const _0x470ae5=_0x150b10,_0x3380b2={};return _0x3380b2[_0x5eb686]={[Op['like']]:'%'+_0x2e7630[_0x470ae5(0x256)][_0x470ae5(0x21a)]+'%'},_0x3380b2;})})),_0x570158=_[_0x150b10(0x204)]({},_0x570158,_0x2e7630[_0x150b10(0x212)]),db[_0x150b10(0x232)][_0x150b10(0x22e)](_0x570158);})[_0x19ee59(0x24f)](function(_0x1cc7b7){const _0x215e7a=_0x19ee59;if(_0x1cc7b7)return db[_0x215e7a(0x21f)][_0x215e7a(0x1fb)]({'where':{'id':_[_0x215e7a(0x23d)](_0x1cc7b7,'UserId'),'role':_0x215e7a(0x215)},'attributes':['id',_0x215e7a(0x251),_0x215e7a(0x1f9),'updatedAt',_0x215e7a(0x21e)]});})[_0x19ee59(0x24f)](function(_0x4e7451){const _0x4e7fa2=_0x19ee59;return _0x4e7451?{'count':_0x4e7451[_0x4e7fa2(0x1ef)],'rows':_[_0x4e7fa2(0x23d)](_0x4e7451[_0x4e7fa2(0x221)],function(_0x18b290){const _0x11b28b=_0x4e7fa2;return{'membername':_0x18b290[_0x11b28b(0x251)],'UserId':_0x18b290['id'],'queue_name':_0x209d0b[_0x11b28b(0x251)],'MailQueueId':_0x209d0b['id'],'interface':util[_0x11b28b(0x1f0)]('%s/%s',_0x11b28b(0x226),_0x18b290[_0x11b28b(0x251)]),'penalty':0x0,'paused':_0x18b290[_0x11b28b(0x1f9)],'createdAt':_0x18b290[_0x11b28b(0x21e)],'updatedAt':_0x18b290[_0x11b28b(0x245)]};})}:{'count':0x0,'rows':[]};})[_0x19ee59(0x24f)](respondWithFilteredResult(_0x240d4e,_0x570158))[_0x19ee59(0x23c)](handleError(_0x240d4e,null));},exports[a505_0x4c7904(0x228)]=function(_0x3e81dd,_0xbd5d0){const _0x9e0c37=a505_0x4c7904;let _0x51b3bc={};const _0x4db4c2={};let _0x153d3e,_0x48aa22;return db[_0x9e0c37(0x20c)][_0x9e0c37(0x23a)]({'where':{'id':_0x3e81dd[_0x9e0c37(0x23f)]['id']}})[_0x9e0c37(0x24f)](handleEntityNotFound(_0xbd5d0,null))['then'](function(_0x141242){const _0x597d5e=_0x9e0c37;if(_0x141242)return _0x153d3e=_0x141242,_0x4db4c2['model']=_[_0x597d5e(0x1f5)](db[_0x597d5e(0x246)]['rawAttributes']),_0x4db4c2[_0x597d5e(0x256)]=_[_0x597d5e(0x1f5)](_0x3e81dd[_0x597d5e(0x256)]),_0x4db4c2['filters']=_[_0x597d5e(0x1e6)](_0x4db4c2['model'],_0x4db4c2[_0x597d5e(0x256)]),_0x51b3bc[_0x597d5e(0x1ee)]=_[_0x597d5e(0x1e6)](_0x4db4c2[_0x597d5e(0x249)],qs['fields'](_0x3e81dd[_0x597d5e(0x256)][_0x597d5e(0x220)])),_0x51b3bc['attributes']=_0x51b3bc[_0x597d5e(0x1ee)][_0x597d5e(0x234)]?_0x51b3bc['attributes']:_0x4db4c2['model'],_0x51b3bc[_0x597d5e(0x209)]=qs[_0x597d5e(0x205)](_0x3e81dd[_0x597d5e(0x256)][_0x597d5e(0x205)]),_0x51b3bc[_0x597d5e(0x217)]=qs[_0x597d5e(0x248)](_[_0x597d5e(0x207)](_0x3e81dd[_0x597d5e(0x256)],_0x4db4c2[_0x597d5e(0x248)])),_0x3e81dd['query'][_0x597d5e(0x21a)]&&(_0x51b3bc[_0x597d5e(0x217)]=_[_0x597d5e(0x204)](_0x51b3bc[_0x597d5e(0x217)],{[Op['or']]:_[_0x597d5e(0x23d)](_0x51b3bc['attributes'],function(_0x1deca0){const _0x21974d=_0x597d5e,_0x177f93={};return _0x177f93[_0x1deca0]={[Op[_0x21974d(0x238)]]:'%'+_0x3e81dd[_0x21974d(0x256)][_0x21974d(0x21a)]+'%'},_0x177f93;})})),_0x51b3bc=_[_0x597d5e(0x204)]({},_0x51b3bc,_0x3e81dd[_0x597d5e(0x212)]),_0x153d3e[_0x597d5e(0x228)](_0x51b3bc);})[_0x9e0c37(0x24f)](function(_0x263c91){const _0x175f75=_0x9e0c37;if(_0x263c91)return _0x48aa22=_0x263c91['length'],typeof _0x3e81dd[_0x175f75(0x256)][_0x175f75(0x227)]===_0x175f75(0x24c)&&(_0x51b3bc['limit']=qs[_0x175f75(0x24b)](_0x3e81dd['query']['limit']),_0x51b3bc['offset']=qs[_0x175f75(0x1ea)](_0x3e81dd['query']['offset'])),_0x153d3e['getTeams'](_0x51b3bc);})[_0x9e0c37(0x24f)](function(_0x2e6c97){if(_0x2e6c97)return _0x2e6c97?{'count':_0x48aa22,'rows':_0x2e6c97}:null;})[_0x9e0c37(0x24f)](respondWithResult(_0xbd5d0,null))[_0x9e0c37(0x23c)](handleError(_0xbd5d0,null));},exports['addTeams']=function(_0x2aec27,_0x4ee046){const _0x3fd68b=a505_0x4c7904,_0x5578bb=_0x2aec27[_0x3fd68b(0x22b)][_0x3fd68b(0x1fe)];return db[_0x3fd68b(0x246)]['findAll']({'where':{'id':_0x5578bb},'attributes':['id'],'include':[{'model':db['User'],'as':_0x3fd68b(0x1e8),'attributes':['id','name',_0x3fd68b(0x239),_0x3fd68b(0x247),'interface'],'raw':!![]}]})[_0x3fd68b(0x24f)](function(_0x433f60){const _0xeede7d=_0x3fd68b;if(_0x433f60){const _0x19feca=_['flatMap'](_0x433f60,function(_0x373553){const _0x46a247=a505_0x3e9d,_0x269e53=_0x373553[_0x46a247(0x1e7)]({'plain':!![]});return _0x269e53[_0x46a247(0x1e8)];});return db[_0xeede7d(0x20c)]['findOne']({'where':{'id':_0x2aec27[_0xeede7d(0x23f)]['id']}})[_0xeede7d(0x24f)](function(_0xfacc74){const _0x1d8570=_0xeede7d;return db[_0x1d8570(0x230)]['transaction'](function(_0x5cfc5b){const _0x5eb4ba=_0x1d8570;return _0xfacc74[_0x5eb4ba(0x23b)](_0x5578bb,{'transaction':_0x5cfc5b})['then'](function(){const _0x916d7=_0x5eb4ba;return Promise[_0x916d7(0x233)](_0x19feca[_0x916d7(0x23d)](_0x1c3323=>{const _0x489966=_0x916d7;return db[_0x489966(0x232)][_0x489966(0x1ff)]({'where':{'UserId':_0x1c3323['id'],'MailQueueId':_0x2aec27[_0x489966(0x23f)]['id']},'transaction':_0x5cfc5b});}));})[_0x5eb4ba(0x24f)](function(){_0x19feca['forEach'](function(_0x300316){socket['emit']('userMailQueue:save',{'UserId':_0x300316['id'],'MailQueueId':_0xfacc74['id']});});});});});}})[_0x3fd68b(0x24f)](respondWithStatusCode(_0x4ee046,null))[_0x3fd68b(0x23c)](handleError(_0x4ee046,null));},exports[a505_0x4c7904(0x21d)]=function(_0x4c6b85,_0xadfe8e){const _0x275c49=a505_0x4c7904;return db[_0x275c49(0x246)][_0x275c49(0x22e)]({'where':{'id':_0x4c6b85['query'][_0x275c49(0x1fe)]},'attributes':['id'],'include':[{'model':db[_0x275c49(0x21f)],'as':_0x275c49(0x1e8),'attributes':['id'],'raw':!![]}]})[_0x275c49(0x24f)](handleEntityNotFound(_0xadfe8e,null))[_0x275c49(0x24f)](function(_0x5024dd){const _0x465bb5=_0x275c49,_0x4681b7=_[_0x465bb5(0x23d)](_0x5024dd,'id');let _0x37e5b3=[];const _0x5d683a=[],_0x152965=squel[_0x465bb5(0x235)]();_0x152965['field']('tq.TeamId')[_0x465bb5(0x20d)]('team_has_mail_queues','tq')[_0x465bb5(0x1fd)](_0x465bb5(0x20f),'ut',_0x465bb5(0x20a))[_0x465bb5(0x217)](_0x465bb5(0x1fc),_0x4c6b85[_0x465bb5(0x23f)]['id']);for(let _0x25d16d=0x0;_0x25d16d<_0x5024dd[_0x465bb5(0x234)];_0x25d16d+=0x1){const _0x1fd27c=_0x5024dd[_0x25d16d];for(let _0x403a61=0x0;_0x403a61<_0x1fd27c[_0x465bb5(0x1e8)][_0x465bb5(0x234)];_0x403a61+=0x1){const _0xc386c8=_0x1fd27c[_0x465bb5(0x1e8)][_0x403a61],_0x4fc5d9=_0x152965[_0x465bb5(0x1fa)]();_0x4fc5d9[_0x465bb5(0x217)](_0x465bb5(0x1f4),_0xc386c8['id']),_0x5d683a['push'](db[_0x465bb5(0x230)][_0x465bb5(0x256)](_0x4fc5d9[_0x465bb5(0x200)](),{'type':QueryTypes['SELECT']})[_0x465bb5(0x24f)](function(_0x1bc254){const _0x200f1c=_0x465bb5;if(_0x1bc254[_0x200f1c(0x234)]===0x1)return _0xc386c8['id'];else{const _0x280526=_[_0x200f1c(0x203)](_[_0x200f1c(0x23d)](_0x1bc254,_0x200f1c(0x231)),function(_0x3a7e91){return _['includes'](_0x4681b7,_0x3a7e91);});if(_0x280526)return _0xc386c8['id'];}}));}}return Promise['all'](_0x5d683a)[_0x465bb5(0x24f)](function(_0x463a35){const _0x493a07=_0x465bb5;return _0x37e5b3=_(_0x37e5b3)[_0x493a07(0x241)](_0x463a35)[_0x493a07(0x20e)]()[_0x493a07(0x1ed)](),db[_0x493a07(0x20c)]['findOne']({'where':{'id':_0x4c6b85[_0x493a07(0x23f)]['id']}})['then'](function(_0x5f3862){const _0x4e5056=_0x493a07;return db[_0x4e5056(0x230)][_0x4e5056(0x229)](function(_0x11ccda){const _0x30279b=_0x4e5056;return _0x5f3862[_0x30279b(0x21d)](_0x4c6b85[_0x30279b(0x256)]['ids'],{'transaction':_0x11ccda})['then'](function(){const _0x15f238=_0x30279b;if(!_[_0x15f238(0x254)](_0x37e5b3))return _0x5f3862[_0x15f238(0x1f2)](_0x37e5b3,{'transaction':_0x11ccda});})[_0x30279b(0x24f)](function(){const _0x25b7b6=_0x30279b;_0x37e5b3[_0x25b7b6(0x1f8)](function(_0x61fde6){const _0x5d198f=_0x25b7b6;socket[_0x5d198f(0x225)](_0x5d198f(0x240),{'UserId':_0x61fde6,'MailQueueId':_0x5f3862['id']});});});});});});})[_0x275c49(0x24f)](respondWithStatusCode(_0xadfe8e,null))[_0x275c49(0x23c)](handleError(_0xadfe8e,null));},exports[a505_0x4c7904(0x1ec)]=function(_0x19db20,_0x4ba8c5){const _0x553452=a505_0x4c7904;return db['MailQueue']['findOne']({'where':{'id':_0x19db20['params']['id']}})[_0x553452(0x24f)](function(_0x34ca7d){const _0x9b41d9=_0x553452;if(_0x34ca7d)return _0x34ca7d[_0x9b41d9(0x1ec)](_0x19db20[_0x9b41d9(0x22b)][_0x9b41d9(0x1fe)],{'through':_[_0x9b41d9(0x23e)](_0x19db20[_0x9b41d9(0x22b)],['ids','id'])})['then'](function(_0xd296dd){const _0x28689b=_0x9b41d9;for(let _0x563a1d=0x0;_0x563a1d<_0x19db20[_0x28689b(0x22b)][_0x28689b(0x1fe)][_0x28689b(0x234)];_0x563a1d+=0x1){socket[_0x28689b(0x225)]('userMailQueue:save',{'UserId':_0x19db20['body']['ids'][_0x563a1d],'MailQueueId':_0x19db20['params']['id']});}return _0xd296dd;});})[_0x553452(0x24f)](respondWithResult(_0x4ba8c5,null))['catch'](handleError(_0x4ba8c5,null));},exports['removeAgents']=function(_0x57f0f4,_0x3f9553){const _0x3e92a1=a505_0x4c7904;return db['MailQueue'][_0x3e92a1(0x23a)]({'where':{'id':_0x57f0f4['params']['id']}})[_0x3e92a1(0x24f)](handleEntityNotFound(_0x3f9553,null))[_0x3e92a1(0x24f)](function(_0x3c7a47){const _0x198d70=_0x3e92a1;if(_0x3c7a47)return _0x3c7a47[_0x198d70(0x1f2)](_0x57f0f4['query'][_0x198d70(0x1fe)])[_0x198d70(0x24f)](function(){const _0x31f333=_0x198d70;if(_[_0x31f333(0x237)](_0x57f0f4[_0x31f333(0x256)][_0x31f333(0x1fe)]))for(let _0x3b2a06=0x0;_0x3b2a06<_0x57f0f4[_0x31f333(0x256)][_0x31f333(0x1fe)][_0x31f333(0x234)];_0x3b2a06+=0x1){socket[_0x31f333(0x225)](_0x31f333(0x240),{'UserId':Number(_0x57f0f4['query'][_0x31f333(0x1fe)][_0x3b2a06]),'MailQueueId':Number(_0x57f0f4[_0x31f333(0x23f)]['id'])});}else socket[_0x31f333(0x225)](_0x31f333(0x240),{'UserId':Number(_0x57f0f4[_0x31f333(0x256)][_0x31f333(0x1fe)]),'MailQueueId':Number(_0x57f0f4[_0x31f333(0x23f)]['id'])});});})[_0x3e92a1(0x24f)](respondWithStatusCode(_0x3f9553,null))[_0x3e92a1(0x23c)](handleError(_0x3f9553,null));},exports[a505_0x4c7904(0x244)]=function(_0x41a9df,_0x1e3626){const _0x21684a=a505_0x4c7904;let _0x3ca3ad={};const _0x14be41={};let _0x3469c8,_0x3e6d50;return db[_0x21684a(0x20c)][_0x21684a(0x23a)]({'where':{'id':_0x41a9df[_0x21684a(0x23f)]['id']}})[_0x21684a(0x24f)](handleEntityNotFound(_0x1e3626,null))[_0x21684a(0x24f)](function(_0x301e97){const _0x446b48=_0x21684a;if(_0x301e97)return _0x3469c8=_0x301e97,_0x14be41[_0x446b48(0x249)]=_[_0x446b48(0x1f5)](db[_0x446b48(0x21f)][_0x446b48(0x242)]),_0x14be41[_0x446b48(0x256)]=_['keys'](_0x41a9df[_0x446b48(0x256)]),_0x14be41[_0x446b48(0x248)]=_[_0x446b48(0x1e6)](_0x14be41[_0x446b48(0x249)],_0x14be41[_0x446b48(0x256)]),_0x3ca3ad['attributes']=_['intersection'](_0x14be41[_0x446b48(0x249)],qs[_0x446b48(0x220)](_0x41a9df[_0x446b48(0x256)]['fields'])),_0x3ca3ad[_0x446b48(0x1ee)]=_0x3ca3ad[_0x446b48(0x1ee)][_0x446b48(0x234)]?_0x3ca3ad[_0x446b48(0x1ee)]:_0x14be41[_0x446b48(0x249)],_0x3ca3ad[_0x446b48(0x209)]=qs[_0x446b48(0x205)](_0x41a9df[_0x446b48(0x256)][_0x446b48(0x205)]),_0x3ca3ad[_0x446b48(0x217)]=qs[_0x446b48(0x248)](_[_0x446b48(0x207)](_0x41a9df[_0x446b48(0x256)],_0x14be41[_0x446b48(0x248)])),_0x41a9df[_0x446b48(0x256)][_0x446b48(0x21a)]&&(_0x3ca3ad[_0x446b48(0x217)]=_[_0x446b48(0x204)](_0x3ca3ad['where'],{[Op['or']]:_[_0x446b48(0x23d)](_0x3ca3ad[_0x446b48(0x1ee)],function(_0x199112){const _0x1fb358=_0x446b48,_0x468215={};return _0x468215[_0x199112]={[Op[_0x1fb358(0x238)]]:'%'+_0x41a9df[_0x1fb358(0x256)][_0x1fb358(0x21a)]+'%'},_0x468215;})})),_0x3ca3ad=_[_0x446b48(0x204)]({},_0x3ca3ad,_0x41a9df[_0x446b48(0x212)]),_0x3469c8['getAgents'](_0x3ca3ad);})[_0x21684a(0x24f)](function(_0x323eae){const _0x106ba0=_0x21684a;if(_0x323eae)return _0x3e6d50=_0x323eae[_0x106ba0(0x234)],typeof _0x41a9df[_0x106ba0(0x256)][_0x106ba0(0x227)]==='undefined'&&(_0x3ca3ad['limit']=qs[_0x106ba0(0x24b)](_0x41a9df['query'][_0x106ba0(0x24b)]),_0x3ca3ad[_0x106ba0(0x1ea)]=qs[_0x106ba0(0x1ea)](_0x41a9df[_0x106ba0(0x256)]['offset'])),_0x3469c8['getAgents'](_0x3ca3ad);})[_0x21684a(0x24f)](function(_0x5172c5){if(_0x5172c5)return _0x5172c5?{'count':_0x3e6d50,'rows':_0x5172c5}:null;})['then'](respondWithResult(_0x1e3626,null))[_0x21684a(0x23c)](handleError(_0x1e3626,null));}; \ No newline at end of file diff --git a/server/api/mailQueue/mailQueue.events.js b/server/api/mailQueue/mailQueue.events.js index fc7c7a2..7d13c51 100644 --- a/server/api/mailQueue/mailQueue.events.js +++ b/server/api/mailQueue/mailQueue.events.js @@ -1 +1 @@ -const a421_0x5e1e=['../../mysqldb','save','emit','update','remove','setMaxListeners','events','addHook'];(function(_0x2f6f99,_0x5e1ecf){const _0x844e06=function(_0x514382){while(--_0x514382){_0x2f6f99['push'](_0x2f6f99['shift']());}};_0x844e06(++_0x5e1ecf);}(a421_0x5e1e,0x1cc));const a421_0x844e=function(_0x2f6f99,_0x5e1ecf){_0x2f6f99=_0x2f6f99-0x0;let _0x844e06=a421_0x5e1e[_0x2f6f99];return _0x844e06;};const _0x16118f=a421_0x844e;'use strict';const EventEmitter=require(_0x16118f('0x2')),MailQueue=require(_0x16118f('0x4'))['db']['MailQueue'],MailQueueEvents=new EventEmitter();MailQueueEvents[_0x16118f('0x1')](0x0);const events={'afterCreate':_0x16118f('0x5'),'afterUpdate':_0x16118f('0x7'),'afterDestroy':_0x16118f('0x0')};function emitEvent(_0x514382){return function(_0x3fe771){const _0x376657=a421_0x844e;MailQueueEvents[_0x376657('0x6')](_0x514382+':'+_0x3fe771['id'],_0x3fe771),MailQueueEvents[_0x376657('0x6')](_0x514382,_0x3fe771);};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];MailQueue[_0x16118f('0x3')](e,emitEvent(event));}}module['exports']=MailQueueEvents; \ No newline at end of file +const a506_0x5f1a=['setMaxListeners','emit','MailQueue','addHook','undefined','remove','save','update','../../mysqldb','events'];(function(_0x5ade90,_0x36236c){const _0x5f1a99=function(_0x4ea287){while(--_0x4ea287){_0x5ade90['push'](_0x5ade90['shift']());}};_0x5f1a99(++_0x36236c);}(a506_0x5f1a,0xa6));const a506_0x4ea2=function(_0x5ade90,_0x36236c){_0x5ade90=_0x5ade90-0x158;let _0x5f1a99=a506_0x5f1a[_0x5ade90];return _0x5f1a99;};const a506_0x1d95ad=a506_0x4ea2;'use strict';const EventEmitter=require(a506_0x1d95ad(0x15b)),MailQueue=require(a506_0x1d95ad(0x15a))['db'][a506_0x1d95ad(0x15e)],MailQueueEvents=new EventEmitter();MailQueueEvents[a506_0x1d95ad(0x15c)](0x0);const events={'afterCreate':a506_0x1d95ad(0x158),'afterUpdate':a506_0x1d95ad(0x159),'afterDestroy':a506_0x1d95ad(0x161)};function emitEvent(_0x56f8b5){return function(_0x596854){const _0xae07a7=a506_0x4ea2;MailQueueEvents[_0xae07a7(0x15d)](_0x56f8b5+':'+_0x596854['id'],_0x596854),MailQueueEvents[_0xae07a7(0x15d)](_0x56f8b5,_0x596854);};}for(const e in events){if(typeof events[e]!==a506_0x1d95ad(0x160)){const event=events[e];MailQueue[a506_0x1d95ad(0x15f)](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 8ebdf27..ef05ac0 100644 --- a/server/api/mailQueue/mailQueue.model.js +++ b/server/api/mailQueue/mailQueue.model.js @@ -1 +1 @@ -const a422_0x517f=['exports','./mailQueue.attributes','mail_queues'];(function(_0x43f87f,_0x517f3c){const _0x15cc40=function(_0x29d4bb){while(--_0x29d4bb){_0x43f87f['push'](_0x43f87f['shift']());}};_0x15cc40(++_0x517f3c);}(a422_0x517f,0x114));const a422_0x15cc=function(_0x43f87f,_0x517f3c){_0x43f87f=_0x43f87f-0x0;let _0x15cc40=a422_0x517f[_0x43f87f];return _0x15cc40;};const _0x36c6f2=a422_0x15cc;'use strict';const attributes=require(_0x36c6f2('0x1'));module[_0x36c6f2('0x0')]=function(_0x29d4bb){const _0x3bd1dd=_0x36c6f2,_0x26d5a3=_0x29d4bb['define']('MailQueue',attributes,{'tableName':_0x3bd1dd('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x26d5a3;}; \ No newline at end of file +const a507_0x563b=['MailQueue','./mailQueue.options','function','./mailQueue.attributes','sequelize'];(function(_0x3e7aed,_0x49768c){const _0x563b88=function(_0x3e0d1f){while(--_0x3e0d1f){_0x3e7aed['push'](_0x3e7aed['shift']());}};_0x563b88(++_0x49768c);}(a507_0x563b,0x111));const a507_0x3e0d=function(_0x3e7aed,_0x49768c){_0x3e7aed=_0x3e7aed-0xab;let _0x563b88=a507_0x563b[_0x3e7aed];return _0x563b88;};const a507_0x4b5ace=a507_0x3e0d;'use strict';const {Model}=require(a507_0x4b5ace(0xac)),{attributes}=require(a507_0x4b5ace(0xab)),{options}=require(a507_0x4b5ace(0xae));class MailQueue extends Model{}function init(_0x2cd7aa,_0x38aede){const _0x4a536b=a507_0x4b5ace,_0x313036=options(_0x2cd7aa),_0x3ad47e=typeof _0x38aede===_0x4a536b(0xaf)?_0x38aede(_0x313036):_0x313036;return MailQueue['init'](attributes,_0x3ad47e),MailQueue;}module['exports'][a507_0x4b5ace(0xad)]=MailQueue,module['exports']['init']=init; \ No newline at end of file diff --git a/server/api/mailQueue/mailQueue.options.js b/server/api/mailQueue/mailQueue.options.js new file mode 100644 index 0000000..4fa85f5 --- /dev/null +++ b/server/api/mailQueue/mailQueue.options.js @@ -0,0 +1 @@ +var a508_0x5e33=['options','exports'];(function(_0x5d003f,_0x35766e){var _0x5e3307=function(_0x37583e){while(--_0x37583e){_0x5d003f['push'](_0x5d003f['shift']());}};_0x5e3307(++_0x35766e);}(a508_0x5e33,0x81));var a508_0x3758=function(_0x5d003f,_0x35766e){_0x5d003f=_0x5d003f-0x1dc;var _0x5e3307=a508_0x5e33[_0x5d003f];return _0x5e3307;};var a508_0x25c56b=a508_0x3758;function options(_0x20cc1a){return{'sequelize':_0x20cc1a,'tableName':'mail_queues','paranoid':![],'indexes':[],'timestamps':!![]};}module[a508_0x25c56b(0x1dc)][a508_0x25c56b(0x1dd)]=options; \ No newline at end of file diff --git a/server/api/mailQueue/mailQueue.rpc.js b/server/api/mailQueue/mailQueue.rpc.js index 1726e31..9d18a15 100644 --- a/server/api/mailQueue/mailQueue.rpc.js +++ b/server/api/mailQueue/mailQueue.rpc.js @@ -1 +1 @@ -const a423_0x2540=['rpc','model','where','register','MailQueue','debug','../../rediscache','stringify','options','raw','include','findAll','findOne','lodash','GetMailQueue','ShowMailQueue','attributes','then','info','error','./mailQueue.socket','map','message'];(function(_0x4bbe7a,_0x25402e){const _0x569f3e=function(_0x4c0d82){while(--_0x4c0d82){_0x4bbe7a['push'](_0x4bbe7a['shift']());}};_0x569f3e(++_0x25402e);}(a423_0x2540,0x19b));const a423_0x569f=function(_0x4bbe7a,_0x25402e){_0x4bbe7a=_0x4bbe7a-0x0;let _0x569f3e=a423_0x2540[_0x4bbe7a];return _0x569f3e;};const _0x2306b6=a423_0x569f;'use strict';const _=require(_0x2306b6('0x10')),db=require('../../mysqldb')['db'],logger=require('../../config/logger')(_0x2306b6('0x3')),{getSocket}=require(_0x2306b6('0x9')),socket=getSocket();require(_0x2306b6('0x0'))[_0x2306b6('0x6')](socket),exports['GetMailQueue']=function(_0x4c0d82){const _0x169812=this;return new Promise(function(_0x3859e6,_0x50317){const _0x3546bd=a423_0x569f;return db['MailQueue'][_0x3546bd('0xe')]({'raw':_0x4c0d82[_0x3546bd('0xb')]?_0x4c0d82['options'][_0x3546bd('0xc')]===undefined?!![]:![]:!![],'where':_0x4c0d82[_0x3546bd('0xb')]?_0x4c0d82['options'][_0x3546bd('0x5')]||null:null,'attributes':_0x4c0d82[_0x3546bd('0xb')]?_0x4c0d82[_0x3546bd('0xb')][_0x3546bd('0x13')]||null:null,'limit':_0x4c0d82[_0x3546bd('0xb')]?_0x4c0d82[_0x3546bd('0xb')]['limit']||null:null,'include':_0x4c0d82[_0x3546bd('0xb')]?_0x4c0d82[_0x3546bd('0xb')][_0x3546bd('0xd')]?_[_0x3546bd('0x1')](_0x4c0d82[_0x3546bd('0xb')][_0x3546bd('0xd')],function(_0x17223d){const _0x1e80f7=_0x3546bd;return{'model':db[_0x17223d['model']],'as':_0x17223d['as'],'attributes':_0x17223d['attributes'],'include':_0x17223d['include']?_[_0x1e80f7('0x1')](_0x17223d[_0x1e80f7('0xd')],function(_0x230d1a){const _0x474b26=_0x1e80f7;return{'model':db[_0x230d1a['model']],'as':_0x230d1a['as'],'attributes':_0x230d1a['attributes'],'include':_0x230d1a[_0x474b26('0xd')]?_[_0x474b26('0x1')](_0x230d1a[_0x474b26('0xd')],function(_0x129b81){const _0x323fa4=_0x474b26;return{'model':db[_0x129b81[_0x323fa4('0x4')]],'as':_0x129b81['as'],'attributes':_0x129b81[_0x323fa4('0x13')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x4c116a){const _0x32fca3=_0x3546bd;logger['info']('GetMailQueue',_0x4c0d82),logger[_0x32fca3('0x8')](_0x32fca3('0x11'),_0x4c0d82,JSON[_0x32fca3('0xa')](_0x4c116a)),_0x3859e6(_0x4c116a);})['catch'](function(_0x58a951){const _0x125777=_0x3546bd;logger['error'](_0x125777('0x11'),_0x58a951['message'],_0x4c0d82),_0x50317(_0x169812[_0x125777('0x16')](0x1f4,_0x58a951[_0x125777('0x2')]));});});},exports['ShowMailQueue']=function(_0x4bd917){const _0xe6a473=this;return new Promise(function(_0x560b69,_0x10e7bc){const _0x30a919=a423_0x569f;return db[_0x30a919('0x7')][_0x30a919('0xf')]({'raw':_0x4bd917[_0x30a919('0xb')]?_0x4bd917[_0x30a919('0xb')]['raw']===undefined?!![]:![]:!![],'where':_0x4bd917[_0x30a919('0xb')]?_0x4bd917[_0x30a919('0xb')][_0x30a919('0x5')]||null:null,'attributes':_0x4bd917[_0x30a919('0xb')]?_0x4bd917[_0x30a919('0xb')]['attributes']||null:null,'include':_0x4bd917[_0x30a919('0xb')]?_0x4bd917[_0x30a919('0xb')][_0x30a919('0xd')]?_['map'](_0x4bd917['options'][_0x30a919('0xd')],function(_0x3ee890){const _0x42bf30=_0x30a919;return{'model':db[_0x3ee890[_0x42bf30('0x4')]],'as':_0x3ee890['as'],'attributes':_0x3ee890[_0x42bf30('0x13')],'include':_0x3ee890[_0x42bf30('0xd')]?_[_0x42bf30('0x1')](_0x3ee890[_0x42bf30('0xd')],function(_0x342211){const _0x50ebf0=_0x42bf30;return{'model':db[_0x342211[_0x50ebf0('0x4')]],'as':_0x342211['as'],'attributes':_0x342211['attributes'],'include':_0x342211[_0x50ebf0('0xd')]?_[_0x50ebf0('0x1')](_0x342211[_0x50ebf0('0xd')],function(_0x44da01){const _0x1cd13d=_0x50ebf0;return{'model':db[_0x44da01['model']],'as':_0x44da01['as'],'attributes':_0x44da01[_0x1cd13d('0x13')]};}):[]};}):[]};}):[]:[]})[_0x30a919('0x14')](function(_0x102e55){const _0x116ad1=_0x30a919;logger[_0x116ad1('0x15')]('ShowMailQueue',_0x4bd917),logger[_0x116ad1('0x8')](_0x116ad1('0x12'),_0x4bd917,JSON['stringify'](_0x102e55)),_0x560b69(_0x102e55);})['catch'](function(_0x2114d7){const _0x2af30b=_0x30a919;logger[_0x2af30b('0x16')]('ShowMailQueue',_0x2114d7[_0x2af30b('0x2')],_0x4bd917),_0x10e7bc(_0xe6a473['error'](0x1f4,_0x2114d7[_0x2af30b('0x2')]));});});}; \ No newline at end of file +const a509_0x31dd=['MailQueue','message','attributes','debug','raw','../../config/logger','map','GetMailQueue','./mailQueue.socket','then','findOne','include','../../mysqldb','ShowMailQueue','catch','rpc','stringify','lodash','error','info','model','options','../../rediscache'];(function(_0x1792ef,_0x41f436){const _0x31dd12=function(_0x4da6cb){while(--_0x4da6cb){_0x1792ef['push'](_0x1792ef['shift']());}};_0x31dd12(++_0x41f436);}(a509_0x31dd,0x1be));const a509_0x4da6=function(_0x1792ef,_0x41f436){_0x1792ef=_0x1792ef-0xbf;let _0x31dd12=a509_0x31dd[_0x1792ef];return _0x31dd12;};const a509_0x23b862=a509_0x4da6;'use strict';const _=require(a509_0x23b862(0xc7)),db=require(a509_0x23b862(0xc2))['db'],logger=require(a509_0x23b862(0xd2))(a509_0x23b862(0xc5)),{getSocket}=require(a509_0x23b862(0xcc)),socket=getSocket();require(a509_0x23b862(0xd5))['register'](socket),exports[a509_0x23b862(0xd4)]=function(_0x4598a0){const _0x2efa1e=this;return new Promise(function(_0x20dff8,_0x14aaa2){const _0x347a1d=a509_0x4da6;return db[_0x347a1d(0xcd)]['findAll']({'raw':_0x4598a0['options']?_0x4598a0[_0x347a1d(0xcb)][_0x347a1d(0xd1)]===undefined?!![]:![]:!![],'where':_0x4598a0[_0x347a1d(0xcb)]?_0x4598a0[_0x347a1d(0xcb)]['where']||null:null,'attributes':_0x4598a0[_0x347a1d(0xcb)]?_0x4598a0[_0x347a1d(0xcb)][_0x347a1d(0xcf)]||null:null,'limit':_0x4598a0[_0x347a1d(0xcb)]?_0x4598a0[_0x347a1d(0xcb)]['limit']||null:null,'include':_0x4598a0[_0x347a1d(0xcb)]?_0x4598a0[_0x347a1d(0xcb)][_0x347a1d(0xc1)]?_[_0x347a1d(0xd3)](_0x4598a0['options'][_0x347a1d(0xc1)],function(_0xb3158c){const _0x2fb3ba=_0x347a1d;return{'model':db[_0xb3158c[_0x2fb3ba(0xca)]],'as':_0xb3158c['as'],'attributes':_0xb3158c['attributes'],'include':_0xb3158c[_0x2fb3ba(0xc1)]?_[_0x2fb3ba(0xd3)](_0xb3158c[_0x2fb3ba(0xc1)],function(_0x16d874){const _0xdeedd8=_0x2fb3ba;return{'model':db[_0x16d874[_0xdeedd8(0xca)]],'as':_0x16d874['as'],'attributes':_0x16d874[_0xdeedd8(0xcf)],'include':_0x16d874[_0xdeedd8(0xc1)]?_[_0xdeedd8(0xd3)](_0x16d874[_0xdeedd8(0xc1)],function(_0x228b5e){const _0xff432a=_0xdeedd8;return{'model':db[_0x228b5e[_0xff432a(0xca)]],'as':_0x228b5e['as'],'attributes':_0x228b5e['attributes']};}):[]};}):[]};}):[]:[]})[_0x347a1d(0xbf)](function(_0x2b6fba){const _0x4bb680=_0x347a1d;logger[_0x4bb680(0xc9)](_0x4bb680(0xd4),_0x4598a0),logger[_0x4bb680(0xd0)](_0x4bb680(0xd4),_0x4598a0,JSON[_0x4bb680(0xc6)](_0x2b6fba)),_0x20dff8(_0x2b6fba);})[_0x347a1d(0xc4)](function(_0x57f7c6){const _0x48c23c=_0x347a1d;logger[_0x48c23c(0xc8)](_0x48c23c(0xd4),_0x57f7c6[_0x48c23c(0xce)],_0x4598a0),_0x14aaa2(_0x2efa1e[_0x48c23c(0xc8)](0x1f4,_0x57f7c6[_0x48c23c(0xce)]));});});},exports[a509_0x23b862(0xc3)]=function(_0x316469){const _0x374af8=this;return new Promise(function(_0x45af40,_0x595af2){const _0x3ae8eb=a509_0x4da6;return db[_0x3ae8eb(0xcd)][_0x3ae8eb(0xc0)]({'raw':_0x316469[_0x3ae8eb(0xcb)]?_0x316469['options'][_0x3ae8eb(0xd1)]===undefined?!![]:![]:!![],'where':_0x316469[_0x3ae8eb(0xcb)]?_0x316469['options']['where']||null:null,'attributes':_0x316469[_0x3ae8eb(0xcb)]?_0x316469[_0x3ae8eb(0xcb)][_0x3ae8eb(0xcf)]||null:null,'include':_0x316469[_0x3ae8eb(0xcb)]?_0x316469[_0x3ae8eb(0xcb)][_0x3ae8eb(0xc1)]?_[_0x3ae8eb(0xd3)](_0x316469[_0x3ae8eb(0xcb)]['include'],function(_0x1ff800){const _0x40317b=_0x3ae8eb;return{'model':db[_0x1ff800[_0x40317b(0xca)]],'as':_0x1ff800['as'],'attributes':_0x1ff800[_0x40317b(0xcf)],'include':_0x1ff800[_0x40317b(0xc1)]?_[_0x40317b(0xd3)](_0x1ff800['include'],function(_0x49f218){const _0x31386a=_0x40317b;return{'model':db[_0x49f218['model']],'as':_0x49f218['as'],'attributes':_0x49f218[_0x31386a(0xcf)],'include':_0x49f218['include']?_[_0x31386a(0xd3)](_0x49f218['include'],function(_0x8e2519){const _0x27276f=_0x31386a;return{'model':db[_0x8e2519['model']],'as':_0x8e2519['as'],'attributes':_0x8e2519[_0x27276f(0xcf)]};}):[]};}):[]};}):[]:[]})[_0x3ae8eb(0xbf)](function(_0x5e5f5e){const _0x7ad2bb=_0x3ae8eb;logger['info'](_0x7ad2bb(0xc3),_0x316469),logger['debug']('ShowMailQueue',_0x316469,JSON[_0x7ad2bb(0xc6)](_0x5e5f5e)),_0x45af40(_0x5e5f5e);})[_0x3ae8eb(0xc4)](function(_0x4966a7){const _0x331b34=_0x3ae8eb;logger['error'](_0x331b34(0xc3),_0x4966a7[_0x331b34(0xce)],_0x316469),_0x595af2(_0x374af8[_0x331b34(0xc8)](0x1f4,_0x4966a7['message']));});});}; \ No newline at end of file diff --git a/server/api/mailQueue/mailQueue.socket.js b/server/api/mailQueue/mailQueue.socket.js index 98504f3..4376dec 100644 --- a/server/api/mailQueue/mailQueue.socket.js +++ b/server/api/mailQueue/mailQueue.socket.js @@ -1 +1 @@ -const a424_0x201d=['length','mailQueue:','./mailQueue.events','register','remove'];(function(_0x9879dc,_0x201d0d){const _0x4b7d7a=function(_0xf1e1b5){while(--_0xf1e1b5){_0x9879dc['push'](_0x9879dc['shift']());}};_0x4b7d7a(++_0x201d0d);}(a424_0x201d,0xe9));const a424_0x4b7d=function(_0x9879dc,_0x201d0d){_0x9879dc=_0x9879dc-0x0;let _0x4b7d7a=a424_0x201d[_0x9879dc];return _0x4b7d7a;};const _0x446588=a424_0x4b7d;'use strict';const MailQueueEvents=require(_0x446588('0x4')),events=['save',_0x446588('0x1'),'update'];function createListener(_0xf1e1b5,_0x53fba7){return function(_0x619b05){_0x53fba7['emit'](_0xf1e1b5,_0x619b05);};}exports[_0x446588('0x0')]=function(_0x390040){const _0x596031=_0x446588;for(let _0x13a59f=0x0,_0x1e9e3b=events[_0x596031('0x2')];_0x13a59f<_0x1e9e3b;_0x13a59f++){const _0xf3baef=events[_0x13a59f],_0x149814=createListener(_0x596031('0x3')+_0xf3baef,_0x390040);MailQueueEvents['on'](_0xf3baef,_0x149814);}}; \ No newline at end of file +const a510_0x2c02=['save','emit','update','./mailQueue.events','register','mailQueue:'];(function(_0x56bfb8,_0x241328){const _0x2c02ff=function(_0x3c0e58){while(--_0x3c0e58){_0x56bfb8['push'](_0x56bfb8['shift']());}};_0x2c02ff(++_0x241328);}(a510_0x2c02,0xe1));const a510_0x3c0e=function(_0x56bfb8,_0x241328){_0x56bfb8=_0x56bfb8-0x90;let _0x2c02ff=a510_0x2c02[_0x56bfb8];return _0x2c02ff;};const a510_0x6f7105=a510_0x3c0e;'use strict';const MailQueueEvents=require(a510_0x6f7105(0x90)),events=[a510_0x6f7105(0x93),'remove',a510_0x6f7105(0x95)];function createListener(_0x42bfa0,_0x5a532e){return function(_0x46a4fe){const _0x5f4bc6=a510_0x3c0e;_0x5a532e[_0x5f4bc6(0x94)](_0x42bfa0,_0x46a4fe);};}exports[a510_0x6f7105(0x91)]=function(_0x3d82c9){const _0xdb3993=a510_0x6f7105;for(let _0x13e385=0x0,_0x1b03da=events['length'];_0x13e385<_0x1b03da;_0x13e385++){const _0x38d17d=events[_0x13e385],_0x3f39ed=createListener(_0xdb3993(0x92)+_0x38d17d,_0x3d82c9);MailQueueEvents['on'](_0x38d17d,_0x3f39ed);}}; \ No newline at end of file diff --git a/server/api/mailQueueReport/index.js b/server/api/mailQueueReport/index.js index 814853c..3450f65 100644 --- a/server/api/mailQueueReport/index.js +++ b/server/api/mailQueueReport/index.js @@ -1 +1 @@ -const a425_0x5ad1=['index','../../components/auth/service','post','exports','update','describe','create','delete','express','./mailQueueReport.controller','show','/describe','get','Router','put','isAuthenticated','/:id'];(function(_0x24e1b4,_0x5ad15f){const _0x1d4c09=function(_0x47550f){while(--_0x47550f){_0x24e1b4['push'](_0x24e1b4['shift']());}};_0x1d4c09(++_0x5ad15f);}(a425_0x5ad1,0x1ba));const a425_0x1d4c=function(_0x24e1b4,_0x5ad15f){_0x24e1b4=_0x24e1b4-0x0;let _0x1d4c09=a425_0x5ad1[_0x24e1b4];return _0x1d4c09;};const _0x3641b8=a425_0x1d4c;'use strict';const express=require(_0x3641b8('0x8')),router=express[_0x3641b8('0xd')](),auth=require(_0x3641b8('0x1')),controller=require(_0x3641b8('0x9'));router[_0x3641b8('0xc')]('/',auth['isAuthenticated'](),controller[_0x3641b8('0x0')]),router[_0x3641b8('0xc')](_0x3641b8('0xb'),auth[_0x3641b8('0xf')](),controller[_0x3641b8('0x5')]),router[_0x3641b8('0xc')]('/:id',auth[_0x3641b8('0xf')](),controller[_0x3641b8('0xa')]),router[_0x3641b8('0x2')]('/',auth['isAuthenticated'](),controller[_0x3641b8('0x6')]),router[_0x3641b8('0xe')]('/:id',auth['isAuthenticated'](),controller[_0x3641b8('0x4')]),router[_0x3641b8('0x7')](_0x3641b8('0x10'),auth[_0x3641b8('0xf')](),controller['destroy']),module[_0x3641b8('0x3')]=router; \ No newline at end of file +const a511_0x30db=['get','express','isAuthenticated','Router','show','post','create','index','delete','/describe','/:id','destroy','describe','update'];(function(_0x314ae7,_0x3742c0){const _0x30db1e=function(_0x5429d4){while(--_0x5429d4){_0x314ae7['push'](_0x314ae7['shift']());}};_0x30db1e(++_0x3742c0);}(a511_0x30db,0x198));const a511_0x5429=function(_0x314ae7,_0x3742c0){_0x314ae7=_0x314ae7-0x111;let _0x30db1e=a511_0x30db[_0x314ae7];return _0x30db1e;};const a511_0x4f5889=a511_0x5429;'use strict';const express=require(a511_0x4f5889(0x11e)),router=express[a511_0x4f5889(0x112)](),auth=require('../../components/auth/service'),controller=require('./mailQueueReport.controller');router[a511_0x4f5889(0x11d)]('/',auth[a511_0x4f5889(0x111)](),controller[a511_0x4f5889(0x116)]),router[a511_0x4f5889(0x11d)](a511_0x4f5889(0x118),auth[a511_0x4f5889(0x111)](),controller[a511_0x4f5889(0x11b)]),router[a511_0x4f5889(0x11d)]('/:id',auth[a511_0x4f5889(0x111)](),controller[a511_0x4f5889(0x113)]),router[a511_0x4f5889(0x114)]('/',auth[a511_0x4f5889(0x111)](),controller[a511_0x4f5889(0x115)]),router['put'](a511_0x4f5889(0x119),auth[a511_0x4f5889(0x111)](),controller[a511_0x4f5889(0x11c)]),router[a511_0x4f5889(0x117)]('/:id',auth['isAuthenticated'](),controller[a511_0x4f5889(0x11a)]),module['exports']=router; \ No newline at end of file diff --git a/server/api/mailQueueReport/mailQueueReport.attributes.js b/server/api/mailQueueReport/mailQueueReport.attributes.js index 9bf59d5..a90518c 100644 --- a/server/api/mailQueueReport/mailQueueReport.attributes.js +++ b/server/api/mailQueueReport/mailQueueReport.attributes.js @@ -1 +1 @@ -const a426_0x5cbe=['DATE','STRING'];(function(_0x164985,_0x5cbe42){const _0x4207cf=function(_0x568b0f){while(--_0x568b0f){_0x164985['push'](_0x164985['shift']());}};_0x4207cf(++_0x5cbe42);}(a426_0x5cbe,0x12e));const a426_0x4207=function(_0x164985,_0x5cbe42){_0x164985=_0x164985-0x0;let _0x4207cf=a426_0x5cbe[_0x164985];return _0x4207cf;};const _0x46d5aa=a426_0x4207;'use strict';const Sequelize=require('sequelize');module['exports']={'uniqueid':{'type':Sequelize['STRING'],'allowNull':![]},'from':{'type':Sequelize[_0x46d5aa('0x1')]},'joinAt':{'type':Sequelize['DATE']},'leaveAt':{'type':Sequelize[_0x46d5aa('0x0')]},'acceptAt':{'type':Sequelize[_0x46d5aa('0x0')]},'exitAt':{'type':Sequelize['DATE']},'reason':{'type':Sequelize['STRING']}}; \ No newline at end of file +const a512_0x3377=['sequelize','STRING','DATE','exports'];(function(_0x3f75de,_0x24a882){const _0x3377ab=function(_0x10136f){while(--_0x10136f){_0x3f75de['push'](_0x3f75de['shift']());}};_0x3377ab(++_0x24a882);}(a512_0x3377,0x8d));const a512_0x1013=function(_0x3f75de,_0x24a882){_0x3f75de=_0x3f75de-0x1d8;let _0x3377ab=a512_0x3377[_0x3f75de];return _0x3377ab;};const a512_0x40d1b4=a512_0x1013;'use strict';const {DataTypes}=require(a512_0x40d1b4(0x1db)),attributes={'uniqueid':{'type':DataTypes[a512_0x40d1b4(0x1d8)],'allowNull':![]},'from':{'type':DataTypes[a512_0x40d1b4(0x1d8)]},'joinAt':{'type':DataTypes[a512_0x40d1b4(0x1d9)]},'leaveAt':{'type':DataTypes[a512_0x40d1b4(0x1d9)]},'acceptAt':{'type':DataTypes[a512_0x40d1b4(0x1d9)]},'exitAt':{'type':DataTypes[a512_0x40d1b4(0x1d9)]},'reason':{'type':DataTypes[a512_0x40d1b4(0x1d8)]}};module[a512_0x40d1b4(0x1da)]['attributes']=attributes; \ No newline at end of file diff --git a/server/api/mailQueueReport/mailQueueReport.controller.js b/server/api/mailQueueReport/mailQueueReport.controller.js index f86193f..02084c4 100644 --- a/server/api/mailQueueReport/mailQueueReport.controller.js +++ b/server/api/mailQueueReport/mailQueueReport.controller.js @@ -1 +1 @@ -const a427_0x1316=['catch','destroy','then','options','error','like','send','include','name','offset','length','findAll','json','undefined','api','order','map','where','pick','fieldName','body','limit','../../components/parsers/qs','type','create','keys','key','query','Content-Range','intersection','describe','sort','includeAll','MailQueueReport','merge','filters','index','end','stack','update','sendStatus','nolimit','findOne','status','params','attributes','count','filter','fields','model','show'];(function(_0x3ab9ea,_0x1316ca){const _0x4d145d=function(_0xf72859){while(--_0xf72859){_0x3ab9ea['push'](_0x3ab9ea['shift']());}};_0x4d145d(++_0x1316ca);}(a427_0x1316,0xd5));const a427_0x4d14=function(_0x3ab9ea,_0x1316ca){_0x3ab9ea=_0x3ab9ea-0x0;let _0x4d145d=a427_0x1316[_0x3ab9ea];return _0x4d145d;};const _0x473ae4=a427_0x4d14;'use strict';const _=require('lodash'),qs=require(_0x473ae4('0xd')),logger=require('../../config/logger')(_0x473ae4('0x5')),db=require('../../mysqldb')['db'],{Op}=require('sequelize');function respondWithResult(_0xf72859,_0x18f989){return _0x18f989=_0x18f989||0xc8,function(_0x3ddbbe){const _0x35415f=a427_0x4d14;if(_0x3ddbbe)return _0xf72859[_0x35415f('0x22')](_0x18f989)['json'](_0x3ddbbe);};}function respondWithFilteredResult(_0x1ff98c,_0x4a004c){return function(_0x61387c){const _0x2a9c1e=a427_0x4d14;if(_0x61387c){const _0x321dd5=_0x61387c[_0x2a9c1e('0x25')],_0x607aa6=_0x4a004c[_0x2a9c1e('0x0')];let _0x35a1ae=_0x4a004c[_0x2a9c1e('0x0')]+_0x4a004c['limit'],_0x1800e4;return _0x35a1ae>=_0x321dd5?(_0x35a1ae=_0x321dd5,_0x1800e4=0xc8):_0x1800e4=0xce,_0x1ff98c[_0x2a9c1e('0x22')](_0x1800e4),_0x1ff98c['set'](_0x2a9c1e('0x13'),_0x607aa6+'-'+_0x35a1ae+'/'+_0x321dd5)[_0x2a9c1e('0x3')](_0x61387c);}return null;};}function saveUpdates(_0xd2f197){return function(_0x5c5504){const _0x4bb31b=a427_0x4d14;if(_0x5c5504)return _0x5c5504[_0x4bb31b('0x1e')](_0xd2f197)[_0x4bb31b('0x2c')](function(_0x55fc62){return _0x55fc62;});return null;};}function removeEntity(_0x2a54d5){return function(_0xfbb7e5){const _0x25a889=a427_0x4d14;if(_0xfbb7e5)return _0xfbb7e5[_0x25a889('0x2b')]()[_0x25a889('0x2c')](function(){const _0x10440d=_0x25a889;_0x2a54d5[_0x10440d('0x22')](0xcc)[_0x10440d('0x1c')]();});};}function handleEntityNotFound(_0x35674d){return function(_0x3652de){const _0x4e0575=a427_0x4d14;return!_0x3652de&&_0x35674d[_0x4e0575('0x1f')](0x194),_0x3652de;};}function handleError(_0x1498a9,_0x314076){return _0x314076=_0x314076||0x1f4,function(_0x383a07){const _0x1d047c=a427_0x4d14;logger[_0x1d047c('0x2e')](_0x383a07[_0x1d047c('0x1d')]),_0x383a07['name']&&delete _0x383a07[_0x1d047c('0x32')],_0x1498a9[_0x1d047c('0x22')](_0x314076)[_0x1d047c('0x30')](_0x383a07);};}exports[_0x473ae4('0x1b')]=function(_0x696cd6,_0x49333c){const _0xfd13e=_0x473ae4;let _0x1b5e47={};const _0x575836={},_0x527837={'count':0x0,'rows':[]},_0x41fb24=_[_0xfd13e('0x7')](db[_0xfd13e('0x18')]['rawAttributes'],function(_0xd83f6f){const _0x31252c=_0xfd13e;return{'name':_0xd83f6f[_0x31252c('0xa')],'type':_0xd83f6f['type'][_0x31252c('0x11')]};});_0x575836['model']=_[_0xfd13e('0x7')](_0x41fb24,_0xfd13e('0x32')),_0x575836[_0xfd13e('0x12')]=_[_0xfd13e('0x10')](_0x696cd6[_0xfd13e('0x12')]),_0x575836[_0xfd13e('0x1a')]=_[_0xfd13e('0x14')](_0x575836['model'],_0x575836['query']),_0x1b5e47[_0xfd13e('0x24')]=_[_0xfd13e('0x14')](_0x575836[_0xfd13e('0x28')],qs[_0xfd13e('0x27')](_0x696cd6[_0xfd13e('0x12')][_0xfd13e('0x27')])),_0x1b5e47[_0xfd13e('0x24')]=_0x1b5e47['attributes'][_0xfd13e('0x1')]?_0x1b5e47[_0xfd13e('0x24')]:_0x575836['model'];typeof _0x696cd6[_0xfd13e('0x12')][_0xfd13e('0x20')]===_0xfd13e('0x4')&&(_0x1b5e47[_0xfd13e('0xc')]=qs[_0xfd13e('0xc')](_0x696cd6['query'][_0xfd13e('0xc')]),_0x1b5e47[_0xfd13e('0x0')]=qs['offset'](_0x696cd6['query'][_0xfd13e('0x0')]));_0x1b5e47[_0xfd13e('0x6')]=qs['sort'](_0x696cd6[_0xfd13e('0x12')][_0xfd13e('0x16')]),_0x1b5e47['where']=qs['filters'](_[_0xfd13e('0x9')](_0x696cd6[_0xfd13e('0x12')],_0x575836['filters']),_0x41fb24);_0x696cd6['query'][_0xfd13e('0x26')]&&(_0x1b5e47[_0xfd13e('0x8')]=_[_0xfd13e('0x19')](_0x1b5e47[_0xfd13e('0x8')],{[Op['or']]:_[_0xfd13e('0x7')](_0x41fb24,function(_0x56c39b){const _0x182027=_0xfd13e;if(_0x56c39b[_0x182027('0xe')]!=='VIRTUAL'){const _0x5a0dbf={};return _0x5a0dbf[_0x56c39b[_0x182027('0x32')]]={[Op[_0x182027('0x2f')]]:'%'+_0x696cd6[_0x182027('0x12')][_0x182027('0x26')]+'%'},_0x5a0dbf;}})}));_0x1b5e47=_[_0xfd13e('0x19')]({},_0x1b5e47,_0x696cd6['options']);const _0x1cb639={'where':_0x1b5e47['where']};return db[_0xfd13e('0x18')][_0xfd13e('0x25')](_0x1cb639)[_0xfd13e('0x2c')](function(_0x7de498){const _0x11cce5=_0xfd13e;return _0x527837[_0x11cce5('0x25')]=_0x7de498,_0x696cd6['query'][_0x11cce5('0x17')]&&(_0x1b5e47['include']=[{'all':!![]}]),db[_0x11cce5('0x18')][_0x11cce5('0x2')](_0x1b5e47);})[_0xfd13e('0x2c')](function(_0x7782d2){return _0x527837['rows']=_0x7782d2,_0x527837;})[_0xfd13e('0x2c')](respondWithFilteredResult(_0x49333c,_0x1b5e47))[_0xfd13e('0x2a')](handleError(_0x49333c,null));},exports[_0x473ae4('0x29')]=function(_0x363e83,_0x25cd92){const _0x2e4c1a=_0x473ae4;let _0x28e7d7={'raw':!![],'where':{'id':_0x363e83[_0x2e4c1a('0x23')]['id']}};const _0x320616={};return _0x320616[_0x2e4c1a('0x28')]=_[_0x2e4c1a('0x10')](db[_0x2e4c1a('0x18')]['rawAttributes']),_0x320616[_0x2e4c1a('0x12')]=_[_0x2e4c1a('0x10')](_0x363e83['query']),_0x320616[_0x2e4c1a('0x1a')]=_['intersection'](_0x320616[_0x2e4c1a('0x28')],_0x320616[_0x2e4c1a('0x12')]),_0x28e7d7['attributes']=_[_0x2e4c1a('0x14')](_0x320616[_0x2e4c1a('0x28')],qs['fields'](_0x363e83[_0x2e4c1a('0x12')][_0x2e4c1a('0x27')])),_0x28e7d7['attributes']=_0x28e7d7[_0x2e4c1a('0x24')]['length']?_0x28e7d7[_0x2e4c1a('0x24')]:_0x320616['model'],_0x363e83['query'][_0x2e4c1a('0x17')]&&(_0x28e7d7[_0x2e4c1a('0x31')]=[{'all':!![]}]),_0x28e7d7=_[_0x2e4c1a('0x19')]({},_0x28e7d7,_0x363e83[_0x2e4c1a('0x2d')]),db[_0x2e4c1a('0x18')][_0x2e4c1a('0x21')](_0x28e7d7)[_0x2e4c1a('0x2c')](handleEntityNotFound(_0x25cd92,null))[_0x2e4c1a('0x2c')](respondWithResult(_0x25cd92,null))[_0x2e4c1a('0x2a')](handleError(_0x25cd92,null));},exports[_0x473ae4('0xf')]=function(_0x267502,_0x27b14d){const _0x107586=_0x473ae4;return db[_0x107586('0x18')][_0x107586('0xf')](_0x267502[_0x107586('0xb')],{})[_0x107586('0x2c')](respondWithResult(_0x27b14d,0xc9))[_0x107586('0x2a')](handleError(_0x27b14d,null));},exports[_0x473ae4('0x1e')]=function(_0x1b0b48,_0x4a7540){const _0x250e94=_0x473ae4;return _0x1b0b48[_0x250e94('0xb')]['id']&&delete _0x1b0b48[_0x250e94('0xb')]['id'],db[_0x250e94('0x18')][_0x250e94('0x21')]({'where':{'id':_0x1b0b48[_0x250e94('0x23')]['id']}})[_0x250e94('0x2c')](handleEntityNotFound(_0x4a7540,null))[_0x250e94('0x2c')](saveUpdates(_0x1b0b48[_0x250e94('0xb')],null))['then'](respondWithResult(_0x4a7540,null))[_0x250e94('0x2a')](handleError(_0x4a7540,null));},exports[_0x473ae4('0x2b')]=function(_0x2bdd50,_0x5e4b6b){const _0x13122a=_0x473ae4;return db[_0x13122a('0x18')][_0x13122a('0x21')]({'where':{'id':_0x2bdd50[_0x13122a('0x23')]['id']}})[_0x13122a('0x2c')](handleEntityNotFound(_0x5e4b6b,null))[_0x13122a('0x2c')](removeEntity(_0x5e4b6b,null))[_0x13122a('0x2a')](handleError(_0x5e4b6b,null));},exports[_0x473ae4('0x15')]=function(_0x2ef31f,_0x37647c){const _0x32ff15=_0x473ae4;return db[_0x32ff15('0x18')][_0x32ff15('0x15')]()['then'](respondWithResult(_0x37647c,null))[_0x32ff15('0x2a')](handleError(_0x37647c,null));}; \ No newline at end of file +const a513_0x53aa=['json','status','order','describe','send','includeAll','../../mysqldb','api','type','filter','show','body','nolimit','findAll','include','query','lodash','keys','../../config/logger','intersection','attributes','offset','Content-Range','fields','merge','options','filters','length','params','rawAttributes','error','where','name','create','stack','pick','end','MailQueueReport','limit','findOne','model','undefined','then','sort','map','../../components/parsers/qs','VIRTUAL','catch'];(function(_0x251d78,_0x2d16da){const _0x53aa3e=function(_0x2b41e1){while(--_0x2b41e1){_0x251d78['push'](_0x251d78['shift']());}};_0x53aa3e(++_0x2d16da);}(a513_0x53aa,0x109));const a513_0x2b41=function(_0x251d78,_0x2d16da){_0x251d78=_0x251d78-0x186;let _0x53aa3e=a513_0x53aa[_0x251d78];return _0x53aa3e;};const a513_0x30323e=a513_0x2b41;'use strict';const _=require(a513_0x30323e(0x1ad)),qs=require(a513_0x30323e(0x19a)),logger=require(a513_0x30323e(0x1af))(a513_0x30323e(0x1a4)),{db}=require(a513_0x30323e(0x1a3)),{Op}=require('sequelize');function respondWithResult(_0x1960ce,_0x2206d0){return _0x2206d0=_0x2206d0||0xc8,function(_0x211fb8){const _0x49e718=a513_0x2b41;if(_0x211fb8)return _0x1960ce['status'](_0x2206d0)[_0x49e718(0x19d)](_0x211fb8);};}function respondWithFilteredResult(_0x3882d7,_0x273989){return function(_0x3e8bf6){const _0x384f5a=a513_0x2b41;if(_0x3e8bf6){const _0x26554d=_0x3e8bf6['count'],_0x3b448c=_0x273989[_0x384f5a(0x1b2)];let _0x5783da=_0x273989[_0x384f5a(0x1b2)]+_0x273989[_0x384f5a(0x193)],_0x108414;return _0x5783da>=_0x26554d?(_0x5783da=_0x26554d,_0x108414=0xc8):_0x108414=0xce,_0x3882d7[_0x384f5a(0x19e)](_0x108414),_0x3882d7['set'](_0x384f5a(0x1b3),_0x3b448c+'-'+_0x5783da+'/'+_0x26554d)['json'](_0x3e8bf6);}return null;};}function saveUpdates(_0x5bcf46){return function(_0x45c45f){const _0x3a3a85=a513_0x2b41;if(_0x45c45f)return _0x45c45f['update'](_0x5bcf46)[_0x3a3a85(0x197)](function(_0x357732){return _0x357732;});return null;};}function removeEntity(_0x31555c){return function(_0x5af0e9){const _0x441b46=a513_0x2b41;if(_0x5af0e9)return _0x5af0e9['destroy']()[_0x441b46(0x197)](function(){const _0x4c8691=_0x441b46;_0x31555c['status'](0xcc)[_0x4c8691(0x191)]();});};}function handleEntityNotFound(_0x3c1311){return function(_0x2e8916){return!_0x2e8916&&_0x3c1311['sendStatus'](0x194),_0x2e8916;};}function handleError(_0x47af80,_0x3cdf61){return _0x3cdf61=_0x3cdf61||0x1f4,function(_0x155aa8){const _0x368cbb=a513_0x2b41;logger[_0x368cbb(0x18b)](_0x155aa8[_0x368cbb(0x18f)]),_0x155aa8['name']&&delete _0x155aa8[_0x368cbb(0x18d)],_0x47af80[_0x368cbb(0x19e)](_0x3cdf61)[_0x368cbb(0x1a1)](_0x155aa8);};}exports['index']=function(_0x2c0903,_0x239986){const _0x1bf3ad=a513_0x30323e;let _0x4ef184={};const _0x350b7a={},_0x1ecead={'count':0x0,'rows':[]},_0x1c627=_[_0x1bf3ad(0x199)](db['MailQueueReport']['rawAttributes'],function(_0x3185a4){const _0x35a395=_0x1bf3ad;return{'name':_0x3185a4['fieldName'],'type':_0x3185a4[_0x35a395(0x1a5)]['key']};});_0x350b7a[_0x1bf3ad(0x195)]=_[_0x1bf3ad(0x199)](_0x1c627,_0x1bf3ad(0x18d)),_0x350b7a['query']=_[_0x1bf3ad(0x1ae)](_0x2c0903[_0x1bf3ad(0x1ac)]),_0x350b7a[_0x1bf3ad(0x187)]=_[_0x1bf3ad(0x1b0)](_0x350b7a[_0x1bf3ad(0x195)],_0x350b7a[_0x1bf3ad(0x1ac)]),_0x4ef184[_0x1bf3ad(0x1b1)]=_[_0x1bf3ad(0x1b0)](_0x350b7a[_0x1bf3ad(0x195)],qs[_0x1bf3ad(0x1b4)](_0x2c0903[_0x1bf3ad(0x1ac)][_0x1bf3ad(0x1b4)])),_0x4ef184['attributes']=_0x4ef184[_0x1bf3ad(0x1b1)][_0x1bf3ad(0x188)]?_0x4ef184['attributes']:_0x350b7a[_0x1bf3ad(0x195)];typeof _0x2c0903[_0x1bf3ad(0x1ac)][_0x1bf3ad(0x1a9)]===_0x1bf3ad(0x196)&&(_0x4ef184[_0x1bf3ad(0x193)]=qs[_0x1bf3ad(0x193)](_0x2c0903[_0x1bf3ad(0x1ac)][_0x1bf3ad(0x193)]),_0x4ef184[_0x1bf3ad(0x1b2)]=qs[_0x1bf3ad(0x1b2)](_0x2c0903[_0x1bf3ad(0x1ac)][_0x1bf3ad(0x1b2)]));_0x4ef184[_0x1bf3ad(0x19f)]=qs['sort'](_0x2c0903['query'][_0x1bf3ad(0x198)]),_0x4ef184['where']=qs[_0x1bf3ad(0x187)](_[_0x1bf3ad(0x190)](_0x2c0903[_0x1bf3ad(0x1ac)],_0x350b7a[_0x1bf3ad(0x187)]),_0x1c627);_0x2c0903[_0x1bf3ad(0x1ac)][_0x1bf3ad(0x1a6)]&&(_0x4ef184[_0x1bf3ad(0x18c)]=_[_0x1bf3ad(0x1b5)](_0x4ef184[_0x1bf3ad(0x18c)],{[Op['or']]:_[_0x1bf3ad(0x199)](_0x1c627,function(_0x174202){const _0x3ec163=_0x1bf3ad;if(_0x174202[_0x3ec163(0x1a5)]!==_0x3ec163(0x19b)){const _0x3b8d95={};return _0x3b8d95[_0x174202[_0x3ec163(0x18d)]]={[Op['like']]:'%'+_0x2c0903[_0x3ec163(0x1ac)][_0x3ec163(0x1a6)]+'%'},_0x3b8d95;}})}));_0x4ef184=_[_0x1bf3ad(0x1b5)]({},_0x4ef184,_0x2c0903[_0x1bf3ad(0x186)]);const _0x4f8b39={'where':_0x4ef184[_0x1bf3ad(0x18c)]};return db[_0x1bf3ad(0x192)]['count'](_0x4f8b39)[_0x1bf3ad(0x197)](function(_0x3c5e51){const _0x314be1=_0x1bf3ad;return _0x1ecead['count']=_0x3c5e51,_0x2c0903['query'][_0x314be1(0x1a2)]&&(_0x4ef184[_0x314be1(0x1ab)]=[{'all':!![]}]),db[_0x314be1(0x192)][_0x314be1(0x1aa)](_0x4ef184);})[_0x1bf3ad(0x197)](function(_0x44b55c){return _0x1ecead['rows']=_0x44b55c,_0x1ecead;})['then'](respondWithFilteredResult(_0x239986,_0x4ef184))['catch'](handleError(_0x239986,null));},exports[a513_0x30323e(0x1a7)]=function(_0x26d27f,_0x4cf660){const _0x592acd=a513_0x30323e;let _0x510440={'raw':!![],'where':{'id':_0x26d27f[_0x592acd(0x189)]['id']}};const _0x126a72={};return _0x126a72['model']=_['keys'](db[_0x592acd(0x192)][_0x592acd(0x18a)]),_0x126a72[_0x592acd(0x1ac)]=_[_0x592acd(0x1ae)](_0x26d27f[_0x592acd(0x1ac)]),_0x126a72[_0x592acd(0x187)]=_[_0x592acd(0x1b0)](_0x126a72[_0x592acd(0x195)],_0x126a72[_0x592acd(0x1ac)]),_0x510440[_0x592acd(0x1b1)]=_['intersection'](_0x126a72[_0x592acd(0x195)],qs[_0x592acd(0x1b4)](_0x26d27f['query'][_0x592acd(0x1b4)])),_0x510440[_0x592acd(0x1b1)]=_0x510440[_0x592acd(0x1b1)][_0x592acd(0x188)]?_0x510440[_0x592acd(0x1b1)]:_0x126a72[_0x592acd(0x195)],_0x26d27f[_0x592acd(0x1ac)][_0x592acd(0x1a2)]&&(_0x510440[_0x592acd(0x1ab)]=[{'all':!![]}]),_0x510440=_[_0x592acd(0x1b5)]({},_0x510440,_0x26d27f[_0x592acd(0x186)]),db[_0x592acd(0x192)][_0x592acd(0x194)](_0x510440)[_0x592acd(0x197)](handleEntityNotFound(_0x4cf660,null))[_0x592acd(0x197)](respondWithResult(_0x4cf660,null))[_0x592acd(0x19c)](handleError(_0x4cf660,null));},exports[a513_0x30323e(0x18e)]=function(_0x3a9a60,_0x4f51bd){const _0x51eedd=a513_0x30323e;return db[_0x51eedd(0x192)]['create'](_0x3a9a60[_0x51eedd(0x1a8)],{})[_0x51eedd(0x197)](respondWithResult(_0x4f51bd,0xc9))[_0x51eedd(0x19c)](handleError(_0x4f51bd,null));},exports['update']=function(_0x1e8c3f,_0x1d4950){const _0xb6298f=a513_0x30323e;return _0x1e8c3f[_0xb6298f(0x1a8)]['id']&&delete _0x1e8c3f[_0xb6298f(0x1a8)]['id'],db[_0xb6298f(0x192)]['findOne']({'where':{'id':_0x1e8c3f[_0xb6298f(0x189)]['id']}})[_0xb6298f(0x197)](handleEntityNotFound(_0x1d4950,null))['then'](saveUpdates(_0x1e8c3f[_0xb6298f(0x1a8)],null))[_0xb6298f(0x197)](respondWithResult(_0x1d4950,null))[_0xb6298f(0x19c)](handleError(_0x1d4950,null));},exports['destroy']=function(_0x459272,_0x33575a){const _0xc6ba78=a513_0x30323e;return db[_0xc6ba78(0x192)][_0xc6ba78(0x194)]({'where':{'id':_0x459272[_0xc6ba78(0x189)]['id']}})['then'](handleEntityNotFound(_0x33575a,null))[_0xc6ba78(0x197)](removeEntity(_0x33575a,null))['catch'](handleError(_0x33575a,null));},exports[a513_0x30323e(0x1a0)]=function(_0xe0cc69,_0x38bab4){const _0x53c0c7=a513_0x30323e;return db[_0x53c0c7(0x192)][_0x53c0c7(0x1a0)]()[_0x53c0c7(0x197)](respondWithResult(_0x38bab4,null))['catch'](handleError(_0x38bab4,null));}; \ No newline at end of file diff --git a/server/api/mailQueueReport/mailQueueReport.model.js b/server/api/mailQueueReport/mailQueueReport.model.js index dc86711..0b36528 100644 --- a/server/api/mailQueueReport/mailQueueReport.model.js +++ b/server/api/mailQueueReport/mailQueueReport.model.js @@ -1 +1 @@ -const a428_0x2b0c=['report_mail_queue','define','./mailQueueReport.attributes','uniqueid','MailQueueReport'];(function(_0x3910ab,_0x2b0c92){const _0x24b083=function(_0x38472d){while(--_0x38472d){_0x3910ab['push'](_0x3910ab['shift']());}};_0x24b083(++_0x2b0c92);}(a428_0x2b0c,0x191));const a428_0x24b0=function(_0x3910ab,_0x2b0c92){_0x3910ab=_0x3910ab-0x0;let _0x24b083=a428_0x2b0c[_0x3910ab];return _0x24b083;};const _0x118d1a=a428_0x24b0;'use strict';const attributes=require(_0x118d1a('0x1'));module['exports']=function(_0x38472d){const _0x19e02e=_0x118d1a,_0xb4dcbb=_0x38472d[_0x19e02e('0x0')](_0x19e02e('0x3'),attributes,{'tableName':_0x19e02e('0x4'),'paranoid':![],'indexes':[{'name':_0x19e02e('0x2'),'fields':[_0x19e02e('0x2')]}],'timestamps':!![]});return _0xb4dcbb;}; \ No newline at end of file +const a514_0x4164=['init','function','sequelize','./mailQueueReport.options'];(function(_0x33ee5e,_0x23bb78){const _0x416451=function(_0x409850){while(--_0x409850){_0x33ee5e['push'](_0x33ee5e['shift']());}};_0x416451(++_0x23bb78);}(a514_0x4164,0xcd));const a514_0x4098=function(_0x33ee5e,_0x23bb78){_0x33ee5e=_0x33ee5e-0x151;let _0x416451=a514_0x4164[_0x33ee5e];return _0x416451;};const a514_0x387c22=a514_0x4098;'use strict';const {Model}=require(a514_0x387c22(0x152)),{attributes}=require('./mailQueueReport.attributes'),{options}=require(a514_0x387c22(0x153));class MailQueueReport extends Model{}function init(_0x11e0d7,_0x4ff1af){const _0x2b1a05=a514_0x387c22,_0x5c6043=options(_0x11e0d7),_0x5865ed=typeof _0x4ff1af===_0x2b1a05(0x151)?_0x4ff1af(_0x5c6043):_0x5c6043;return MailQueueReport[_0x2b1a05(0x154)](attributes,_0x5865ed),MailQueueReport;}module['exports']['MailQueueReport']=MailQueueReport,module['exports'][a514_0x387c22(0x154)]=init; \ No newline at end of file diff --git a/server/api/mailQueueReport/mailQueueReport.options.js b/server/api/mailQueueReport/mailQueueReport.options.js new file mode 100644 index 0000000..379673d --- /dev/null +++ b/server/api/mailQueueReport/mailQueueReport.options.js @@ -0,0 +1 @@ +var a515_0x472e=['exports','uniqueid','options'];(function(_0x188922,_0x5808d4){var _0x472ec1=function(_0x3d8016){while(--_0x3d8016){_0x188922['push'](_0x188922['shift']());}};_0x472ec1(++_0x5808d4);}(a515_0x472e,0x1e2));var a515_0x3d80=function(_0x188922,_0x5808d4){_0x188922=_0x188922-0xea;var _0x472ec1=a515_0x472e[_0x188922];return _0x472ec1;};var a515_0x2dec81=a515_0x3d80;function options(_0x1c712d){var _0x1cb9e4=a515_0x3d80;return{'sequelize':_0x1c712d,'tableName':'report_mail_queue','paranoid':![],'indexes':[{'name':_0x1cb9e4(0xec),'fields':[_0x1cb9e4(0xec)]}],'timestamps':!![]};}module[a515_0x2dec81(0xeb)][a515_0x2dec81(0xea)]=options; \ No newline at end of file diff --git a/server/api/mailQueueReport/mailQueueReport.rpc.js b/server/api/mailQueueReport/mailQueueReport.rpc.js index 48f1003..7ab7111 100644 --- a/server/api/mailQueueReport/mailQueueReport.rpc.js +++ b/server/api/mailQueueReport/mailQueueReport.rpc.js @@ -1 +1 @@ -const a429_0x17bf=['catch','info','create','body','UpdateMailQueueReport','error','limit','MailQueueReport','CreateMailQueueReport','stringify','message','where','then','attributes','raw','rpc','options','../../mysqldb','debug'];(function(_0x2d8fb9,_0x17bff4){const _0xea1c05=function(_0x1cd6f2){while(--_0x1cd6f2){_0x2d8fb9['push'](_0x2d8fb9['shift']());}};_0xea1c05(++_0x17bff4);}(a429_0x17bf,0x96));const a429_0xea1c=function(_0x2d8fb9,_0x17bff4){_0x2d8fb9=_0x2d8fb9-0x0;let _0xea1c05=a429_0x17bf[_0x2d8fb9];return _0xea1c05;};const _0x24441b=a429_0xea1c;'use strict';const db=require(_0x24441b('0x0'))['db'],logger=require('../../config/logger')(_0x24441b('0x11'));exports['CreateMailQueueReport']=function(_0x1cd6f2){const _0xdd84da=this;return new Promise(function(_0x284bb9,_0x2f13f5){const _0x1139fe=a429_0xea1c;return db['MailQueueReport'][_0x1139fe('0x4')](_0x1cd6f2[_0x1139fe('0x5')],{'raw':_0x1cd6f2[_0x1139fe('0x12')]?_0x1cd6f2[_0x1139fe('0x12')][_0x1139fe('0x10')]===undefined?!![]:![]:!![]})[_0x1139fe('0xe')](function(_0x4c87c3){const _0x10d44e=_0x1139fe;logger[_0x10d44e('0x3')](_0x10d44e('0xa'),_0x1cd6f2),logger[_0x10d44e('0x1')]('CreateMailQueueReport',_0x1cd6f2,JSON[_0x10d44e('0xb')](_0x4c87c3)),_0x284bb9(_0x4c87c3);})['catch'](function(_0x5eece3){const _0x2c7145=_0x1139fe;logger['error']('CreateMailQueueReport',_0x5eece3[_0x2c7145('0xc')],_0x1cd6f2),_0x2f13f5(_0xdd84da['error'](0x1f4,_0x5eece3['message']));});});},exports['UpdateMailQueueReport']=function(_0x64981a){const _0x54713e=this;return new Promise(function(_0x41df76,_0x20fd75){const _0x97bf54=a429_0xea1c;return db[_0x97bf54('0x9')]['update'](_0x64981a['body'],{'raw':_0x64981a[_0x97bf54('0x12')]?_0x64981a[_0x97bf54('0x12')][_0x97bf54('0x10')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x64981a[_0x97bf54('0x12')]?_0x64981a['options'][_0x97bf54('0xd')]||null:null,'attributes':_0x64981a[_0x97bf54('0x12')]?_0x64981a[_0x97bf54('0x12')][_0x97bf54('0xf')]||null:null,'limit':_0x64981a['options']?_0x64981a[_0x97bf54('0x12')][_0x97bf54('0x8')]||null:null})[_0x97bf54('0xe')](function(_0x57812d){const _0x4cba67=_0x97bf54;logger[_0x4cba67('0x3')](_0x4cba67('0x6'),_0x64981a),logger[_0x4cba67('0x1')](_0x4cba67('0x6'),_0x64981a,JSON['stringify'](_0x57812d)),_0x41df76(_0x57812d);})[_0x97bf54('0x2')](function(_0x282875){const _0x414003=_0x97bf54;logger[_0x414003('0x7')](_0x414003('0x6'),_0x282875['message'],_0x64981a),_0x20fd75(_0x54713e[_0x414003('0x7')](0x1f4,_0x282875[_0x414003('0xc')]));});});}; \ No newline at end of file +const a516_0x14c4=['../../mysqldb','error','MailQueueReport','info','message','body','CreateMailQueueReport','stringify','create','update','debug','catch','attributes','options','UpdateMailQueueReport','raw','limit'];(function(_0xe7f2e6,_0xd78b6d){const _0x14c49b=function(_0x1ade32){while(--_0x1ade32){_0xe7f2e6['push'](_0xe7f2e6['shift']());}};_0x14c49b(++_0xd78b6d);}(a516_0x14c4,0x107));const a516_0x1ade=function(_0xe7f2e6,_0xd78b6d){_0xe7f2e6=_0xe7f2e6-0x1b8;let _0x14c49b=a516_0x14c4[_0xe7f2e6];return _0x14c49b;};const a516_0x5b1905=a516_0x1ade;'use strict';const db=require(a516_0x5b1905(0x1c1))['db'],logger=require('../../config/logger')('rpc');exports[a516_0x5b1905(0x1c7)]=function(_0x3f9e79){const _0x4c1108=this;return new Promise(function(_0x105779,_0x3472e4){const _0x49c857=a516_0x1ade;return db[_0x49c857(0x1c3)][_0x49c857(0x1b8)](_0x3f9e79[_0x49c857(0x1c6)],{'raw':_0x3f9e79[_0x49c857(0x1bd)]?_0x3f9e79[_0x49c857(0x1bd)]['raw']===undefined?!![]:![]:!![]})['then'](function(_0x399354){const _0x44f5f3=_0x49c857;logger[_0x44f5f3(0x1c4)](_0x44f5f3(0x1c7),_0x3f9e79),logger['debug'](_0x44f5f3(0x1c7),_0x3f9e79,JSON[_0x44f5f3(0x1c8)](_0x399354)),_0x105779(_0x399354);})[_0x49c857(0x1bb)](function(_0xc28a78){const _0x21f392=_0x49c857;logger['error'](_0x21f392(0x1c7),_0xc28a78[_0x21f392(0x1c5)],_0x3f9e79),_0x3472e4(_0x4c1108[_0x21f392(0x1c2)](0x1f4,_0xc28a78[_0x21f392(0x1c5)]));});});},exports['UpdateMailQueueReport']=function(_0x814610){const _0x1d63cf=this;return new Promise(function(_0x53c6a6,_0x4cbbdf){const _0x130ae8=a516_0x1ade;return db[_0x130ae8(0x1c3)][_0x130ae8(0x1b9)](_0x814610[_0x130ae8(0x1c6)],{'raw':_0x814610[_0x130ae8(0x1bd)]?_0x814610[_0x130ae8(0x1bd)][_0x130ae8(0x1bf)]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x814610[_0x130ae8(0x1bd)]?_0x814610['options']['where']||null:null,'attributes':_0x814610[_0x130ae8(0x1bd)]?_0x814610[_0x130ae8(0x1bd)][_0x130ae8(0x1bc)]||null:null,'limit':_0x814610[_0x130ae8(0x1bd)]?_0x814610[_0x130ae8(0x1bd)][_0x130ae8(0x1c0)]||null:null})['then'](function(_0x18e694){const _0x5e4513=_0x130ae8;logger['info'](_0x5e4513(0x1be),_0x814610),logger[_0x5e4513(0x1ba)](_0x5e4513(0x1be),_0x814610,JSON[_0x5e4513(0x1c8)](_0x18e694)),_0x53c6a6(_0x18e694);})[_0x130ae8(0x1bb)](function(_0x20ffd2){const _0x297b0d=_0x130ae8;logger['error']('UpdateMailQueueReport',_0x20ffd2['message'],_0x814610),_0x4cbbdf(_0x1d63cf[_0x297b0d(0x1c2)](0x1f4,_0x20ffd2[_0x297b0d(0x1c5)]));});});}; \ No newline at end of file diff --git a/server/api/mailServerIn/index.js b/server/api/mailServerIn/index.js index bc178bb..f0ab5dc 100644 --- a/server/api/mailServerIn/index.js +++ b/server/api/mailServerIn/index.js @@ -1 +1 @@ -const a430_0x2c98=['Router','exports','express'];(function(_0x1fdae8,_0x2c988e){const _0x4edade=function(_0x1b4142){while(--_0x1b4142){_0x1fdae8['push'](_0x1fdae8['shift']());}};_0x4edade(++_0x2c988e);}(a430_0x2c98,0x89));const a430_0x4eda=function(_0x1fdae8,_0x2c988e){_0x1fdae8=_0x1fdae8-0x0;let _0x4edade=a430_0x2c98[_0x1fdae8];return _0x4edade;};const _0x253448=a430_0x4eda;'use strict';const express=require(_0x253448('0x0')),router=express[_0x253448('0x1')]();module[_0x253448('0x2')]=router; \ No newline at end of file +const a517_0xd305=['Router','express'];(function(_0x41a7e2,_0xc0ed65){const _0xd3058=function(_0x455226){while(--_0x455226){_0x41a7e2['push'](_0x41a7e2['shift']());}};_0xd3058(++_0xc0ed65);}(a517_0xd305,0x152));const a517_0x4552=function(_0x41a7e2,_0xc0ed65){_0x41a7e2=_0x41a7e2-0xb4;let _0xd3058=a517_0xd305[_0x41a7e2];return _0xd3058;};const a517_0x1870c2=a517_0x4552;'use strict';const express=require(a517_0x1870c2(0xb5)),router=express[a517_0x1870c2(0xb4)]();module['exports']=router; \ No newline at end of file diff --git a/server/api/mailServerIn/mailServerIn.attributes.js b/server/api/mailServerIn/mailServerIn.attributes.js index 6385fd3..c0870a6 100644 --- a/server/api/mailServerIn/mailServerIn.attributes.js +++ b/server/api/mailServerIn/mailServerIn.attributes.js @@ -1 +1 @@ -const a431_0x4337=['exports','INTEGER','username','STRING','BOOLEAN'];(function(_0x1153c6,_0x4337ed){const _0x31bbcc=function(_0x554a8d){while(--_0x554a8d){_0x1153c6['push'](_0x1153c6['shift']());}};_0x31bbcc(++_0x4337ed);}(a431_0x4337,0x108));const a431_0x31bb=function(_0x1153c6,_0x4337ed){_0x1153c6=_0x1153c6-0x0;let _0x31bbcc=a431_0x4337[_0x1153c6];return _0x31bbcc;};const _0x383c38=a431_0x31bb;'use strict';const Sequelize=require('sequelize');module[_0x383c38('0x1')]={'description':{'type':Sequelize[_0x383c38('0x4')]},'host':{'type':Sequelize[_0x383c38('0x4')]},'authentication':{'type':Sequelize[_0x383c38('0x0')],'defaultValue':!![]},'user':{'type':Sequelize[_0x383c38('0x4')],'unique':_0x383c38('0x3')},'password':{'type':Sequelize[_0x383c38('0x4')]},'port':{'type':Sequelize[_0x383c38('0x2')]},'tls':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'mailbox':{'type':Sequelize[_0x383c38('0x4')],'defaultValue':'INBOX'},'connTimeout':{'type':Sequelize[_0x383c38('0x2')],'defaultValue':0xa},'authTimeout':{'type':Sequelize[_0x383c38('0x2')],'defaultValue':0x5},'service':{'type':Sequelize[_0x383c38('0x4')]}}; \ No newline at end of file +const a518_0x3a50=['attributes','STRING','exports','sequelize','BOOLEAN','username','INTEGER'];(function(_0x559534,_0x4b93b3){const _0x3a5085=function(_0x2b1c74){while(--_0x2b1c74){_0x559534['push'](_0x559534['shift']());}};_0x3a5085(++_0x4b93b3);}(a518_0x3a50,0x117));const a518_0x2b1c=function(_0x559534,_0x4b93b3){_0x559534=_0x559534-0x132;let _0x3a5085=a518_0x3a50[_0x559534];return _0x3a5085;};const a518_0x368b83=a518_0x2b1c;'use strict';const {DataTypes}=require(a518_0x368b83(0x136)),attributes={'description':{'type':DataTypes['STRING']},'host':{'type':DataTypes[a518_0x368b83(0x134)]},'authentication':{'type':DataTypes[a518_0x368b83(0x137)],'defaultValue':!![]},'user':{'type':DataTypes[a518_0x368b83(0x134)],'unique':a518_0x368b83(0x138)},'password':{'type':DataTypes[a518_0x368b83(0x134)]},'port':{'type':DataTypes['INTEGER']},'tls':{'type':DataTypes[a518_0x368b83(0x137)],'defaultValue':!![]},'mailbox':{'type':DataTypes[a518_0x368b83(0x134)],'defaultValue':'INBOX'},'connTimeout':{'type':DataTypes[a518_0x368b83(0x132)],'defaultValue':0xa},'authTimeout':{'type':DataTypes[a518_0x368b83(0x132)],'defaultValue':0x5},'service':{'type':DataTypes[a518_0x368b83(0x134)]}};module[a518_0x368b83(0x135)][a518_0x368b83(0x133)]=attributes; \ No newline at end of file diff --git a/server/api/mailServerIn/mailServerIn.model.js b/server/api/mailServerIn/mailServerIn.model.js index fef6208..926023a 100644 --- a/server/api/mailServerIn/mailServerIn.model.js +++ b/server/api/mailServerIn/mailServerIn.model.js @@ -1 +1 @@ -const a432_0x2383=['exports','define','./mailServerIn.attributes','MailServerIn','mail_servers_in'];(function(_0x57b7d3,_0x238315){const _0x53fb3c=function(_0x12c8d9){while(--_0x12c8d9){_0x57b7d3['push'](_0x57b7d3['shift']());}};_0x53fb3c(++_0x238315);}(a432_0x2383,0x169));const a432_0x53fb=function(_0x57b7d3,_0x238315){_0x57b7d3=_0x57b7d3-0x0;let _0x53fb3c=a432_0x2383[_0x57b7d3];return _0x53fb3c;};const _0x251be3=a432_0x53fb;'use strict';const attributes=require(_0x251be3('0x1'));module[_0x251be3('0x4')]=function(_0x12c8d9){const _0x54e8f1=_0x251be3,_0x36f85a=_0x12c8d9[_0x54e8f1('0x0')](_0x54e8f1('0x2'),attributes,{'tableName':_0x54e8f1('0x3'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x36f85a;}; \ No newline at end of file +const a519_0x5361=['./mailServerIn.attributes','exports','./mailServerIn.options','init','sequelize','MailServerIn'];(function(_0x340083,_0x5a11fa){const _0x5361cf=function(_0x253aa9){while(--_0x253aa9){_0x340083['push'](_0x340083['shift']());}};_0x5361cf(++_0x5a11fa);}(a519_0x5361,0x68));const a519_0x253a=function(_0x340083,_0x5a11fa){_0x340083=_0x340083-0xa2;let _0x5361cf=a519_0x5361[_0x340083];return _0x5361cf;};const a519_0x285b56=a519_0x253a;'use strict';const {Model}=require(a519_0x285b56(0xa4)),{attributes}=require(a519_0x285b56(0xa6)),{options}=require(a519_0x285b56(0xa2));class MailServerIn extends Model{}function init(_0x1810d6,_0x31a580){const _0x446645=options(_0x1810d6),_0xe935df=typeof _0x31a580==='function'?_0x31a580(_0x446645):_0x446645;return MailServerIn['init'](attributes,_0xe935df),MailServerIn;}module[a519_0x285b56(0xa7)][a519_0x285b56(0xa5)]=MailServerIn,module[a519_0x285b56(0xa7)][a519_0x285b56(0xa3)]=init; \ No newline at end of file diff --git a/server/api/mailServerIn/mailServerIn.options.js b/server/api/mailServerIn/mailServerIn.options.js new file mode 100644 index 0000000..946ad83 --- /dev/null +++ b/server/api/mailServerIn/mailServerIn.options.js @@ -0,0 +1 @@ +var a520_0x5eed=['mail_servers_in','exports'];(function(_0x4409d0,_0x3680da){var _0x5eed8d=function(_0x3ba894){while(--_0x3ba894){_0x4409d0['push'](_0x4409d0['shift']());}};_0x5eed8d(++_0x3680da);}(a520_0x5eed,0x191));var a520_0x3ba8=function(_0x4409d0,_0x3680da){_0x4409d0=_0x4409d0-0xe3;var _0x5eed8d=a520_0x5eed[_0x4409d0];return _0x5eed8d;};var a520_0x5ce955=a520_0x3ba8;function options(_0x279d37){var _0x5cda14=a520_0x3ba8;return{'sequelize':_0x279d37,'tableName':_0x5cda14(0xe4),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a520_0x5ce955(0xe3)]['options']=options; \ No newline at end of file diff --git a/server/api/mailServerIn/mailServerIn.rpc.js b/server/api/mailServerIn/mailServerIn.rpc.js index e22efb3..73080be 100644 --- a/server/api/mailServerIn/mailServerIn.rpc.js +++ b/server/api/mailServerIn/mailServerIn.rpc.js @@ -1 +1 @@ -const a433_0x2d12=['GetMailServerIn','debug','info','include','map','error','raw','rpc','attributes','MailServerIn','catch','findAll','stringify','where','../../config/logger','options','limit','lodash','model'];(function(_0x2fd05d,_0x2d12b0){const _0x5f0bf3=function(_0x3a282d){while(--_0x3a282d){_0x2fd05d['push'](_0x2fd05d['shift']());}};_0x5f0bf3(++_0x2d12b0);}(a433_0x2d12,0x130));const a433_0x5f0b=function(_0x2fd05d,_0x2d12b0){_0x2fd05d=_0x2fd05d-0x0;let _0x5f0bf3=a433_0x2d12[_0x2fd05d];return _0x5f0bf3;};const _0x49a131=a433_0x5f0b;'use strict';const _=require(_0x49a131('0x11')),db=require('../../mysqldb')['db'],logger=require(_0x49a131('0xe'))(_0x49a131('0x7'));exports[_0x49a131('0x0')]=function(_0x3a282d){const _0x437fdb=this;return new Promise(function(_0x47d6cb,_0x5b5dd4){const _0x365e66=a433_0x5f0b;return db[_0x365e66('0x9')][_0x365e66('0xb')]({'raw':_0x3a282d[_0x365e66('0xf')]?_0x3a282d[_0x365e66('0xf')][_0x365e66('0x6')]===undefined?!![]:![]:!![],'where':_0x3a282d[_0x365e66('0xf')]?_0x3a282d[_0x365e66('0xf')][_0x365e66('0xd')]||null:null,'attributes':_0x3a282d['options']?_0x3a282d['options'][_0x365e66('0x8')]||null:null,'limit':_0x3a282d[_0x365e66('0xf')]?_0x3a282d[_0x365e66('0xf')][_0x365e66('0x10')]||null:null,'include':_0x3a282d['options']?_0x3a282d['options'][_0x365e66('0x3')]?_['map'](_0x3a282d['options'][_0x365e66('0x3')],function(_0x2efcb3){const _0x17265b=_0x365e66;return{'model':db[_0x2efcb3['model']],'as':_0x2efcb3['as'],'attributes':_0x2efcb3['attributes'],'include':_0x2efcb3[_0x17265b('0x3')]?_[_0x17265b('0x4')](_0x2efcb3['include'],function(_0xe0f78f){const _0x1f10e1=_0x17265b;return{'model':db[_0xe0f78f[_0x1f10e1('0x12')]],'as':_0xe0f78f['as'],'attributes':_0xe0f78f[_0x1f10e1('0x8')],'include':_0xe0f78f[_0x1f10e1('0x3')]?_['map'](_0xe0f78f[_0x1f10e1('0x3')],function(_0x5be622){const _0x50fafd=_0x1f10e1;return{'model':db[_0x5be622['model']],'as':_0x5be622['as'],'attributes':_0x5be622[_0x50fafd('0x8')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x3e970f){const _0x562a8d=_0x365e66;logger[_0x562a8d('0x2')](_0x562a8d('0x0'),_0x3a282d),logger[_0x562a8d('0x1')](_0x562a8d('0x0'),_0x3a282d,JSON[_0x562a8d('0xc')](_0x3e970f)),_0x47d6cb(_0x3e970f);})[_0x365e66('0xa')](function(_0x3510c2){const _0x3ea719=_0x365e66;logger[_0x3ea719('0x5')](_0x3ea719('0x0'),_0x3510c2['message'],_0x3a282d),_0x5b5dd4(_0x437fdb['error'](0x1f4,_0x3510c2['message']));});});}; \ No newline at end of file +const a521_0x561d=['include','stringify','where','attributes','error','lodash','options','../../mysqldb','model','debug','MailServerIn','catch','findAll','message','../../config/logger','GetMailServerIn','map'];(function(_0x4e478d,_0x377b46){const _0x561d14=function(_0x1c6969){while(--_0x1c6969){_0x4e478d['push'](_0x4e478d['shift']());}};_0x561d14(++_0x377b46);}(a521_0x561d,0x1c4));const a521_0x1c69=function(_0x4e478d,_0x377b46){_0x4e478d=_0x4e478d-0x181;let _0x561d14=a521_0x561d[_0x4e478d];return _0x561d14;};const a521_0x306d4b=a521_0x1c69;'use strict';const _=require(a521_0x306d4b(0x18d)),db=require(a521_0x306d4b(0x18f))['db'],logger=require(a521_0x306d4b(0x185))('rpc');exports[a521_0x306d4b(0x186)]=function(_0x12f447){const _0x2b1eb4=this;return new Promise(function(_0x3bd0b2,_0x5d2c42){const _0x34ab1a=a521_0x1c69;return db[_0x34ab1a(0x181)][_0x34ab1a(0x183)]({'raw':_0x12f447['options']?_0x12f447['options']['raw']===undefined?!![]:![]:!![],'where':_0x12f447[_0x34ab1a(0x18e)]?_0x12f447['options'][_0x34ab1a(0x18a)]||null:null,'attributes':_0x12f447[_0x34ab1a(0x18e)]?_0x12f447[_0x34ab1a(0x18e)][_0x34ab1a(0x18b)]||null:null,'limit':_0x12f447[_0x34ab1a(0x18e)]?_0x12f447['options']['limit']||null:null,'include':_0x12f447['options']?_0x12f447[_0x34ab1a(0x18e)]['include']?_[_0x34ab1a(0x187)](_0x12f447[_0x34ab1a(0x18e)]['include'],function(_0x2a91f1){const _0x28ef4b=_0x34ab1a;return{'model':db[_0x2a91f1[_0x28ef4b(0x190)]],'as':_0x2a91f1['as'],'attributes':_0x2a91f1[_0x28ef4b(0x18b)],'include':_0x2a91f1[_0x28ef4b(0x188)]?_[_0x28ef4b(0x187)](_0x2a91f1[_0x28ef4b(0x188)],function(_0x1b36ea){const _0x43dd85=_0x28ef4b;return{'model':db[_0x1b36ea[_0x43dd85(0x190)]],'as':_0x1b36ea['as'],'attributes':_0x1b36ea[_0x43dd85(0x18b)],'include':_0x1b36ea['include']?_[_0x43dd85(0x187)](_0x1b36ea[_0x43dd85(0x188)],function(_0x58f1a4){const _0x35ccc0=_0x43dd85;return{'model':db[_0x58f1a4[_0x35ccc0(0x190)]],'as':_0x58f1a4['as'],'attributes':_0x58f1a4[_0x35ccc0(0x18b)]};}):[]};}):[]};}):[]:[]})['then'](function(_0xc52f6e){const _0x270447=_0x34ab1a;logger['info']('GetMailServerIn',_0x12f447),logger[_0x270447(0x191)]('GetMailServerIn',_0x12f447,JSON[_0x270447(0x189)](_0xc52f6e)),_0x3bd0b2(_0xc52f6e);})[_0x34ab1a(0x182)](function(_0x14f10e){const _0x4a3e11=_0x34ab1a;logger[_0x4a3e11(0x18c)](_0x4a3e11(0x186),_0x14f10e[_0x4a3e11(0x184)],_0x12f447),_0x5d2c42(_0x2b1eb4[_0x4a3e11(0x18c)](0x1f4,_0x14f10e[_0x4a3e11(0x184)]));});});}; \ No newline at end of file diff --git a/server/api/mailServerOut/index.js b/server/api/mailServerOut/index.js index 7de366b..13c4e60 100644 --- a/server/api/mailServerOut/index.js +++ b/server/api/mailServerOut/index.js @@ -1 +1 @@ -const a434_0x5a19=['post','show','isAuthenticated','put','delete','destroy','exports','express','get','/:id','create','update','../../components/auth/service','Router'];(function(_0x15e664,_0x5a19eb){const _0x3d9525=function(_0x3c9537){while(--_0x3c9537){_0x15e664['push'](_0x15e664['shift']());}};_0x3d9525(++_0x5a19eb);}(a434_0x5a19,0x19f));const a434_0x3d95=function(_0x15e664,_0x5a19eb){_0x15e664=_0x15e664-0x0;let _0x3d9525=a434_0x5a19[_0x15e664];return _0x3d9525;};const _0x37f073=a434_0x3d95;'use strict';const express=require(_0x37f073('0xc')),router=express[_0x37f073('0x4')](),auth=require(_0x37f073('0x3')),controller=require('./mailServerOut.controller');router['get']('/',auth[_0x37f073('0x7')](),controller['index']),router[_0x37f073('0xd')](_0x37f073('0x0'),auth[_0x37f073('0x7')](),controller[_0x37f073('0x6')]),router[_0x37f073('0x5')]('/',auth[_0x37f073('0x7')](),controller[_0x37f073('0x1')]),router[_0x37f073('0x8')](_0x37f073('0x0'),auth[_0x37f073('0x7')](),controller[_0x37f073('0x2')]),router[_0x37f073('0x9')](_0x37f073('0x0'),auth[_0x37f073('0x7')](),controller[_0x37f073('0xa')]),module[_0x37f073('0xb')]=router; \ No newline at end of file +const a522_0x467e=['create','../../components/auth/service','destroy','show','/:id','exports','put','isAuthenticated','index','./mailServerOut.controller','express','post','get'];(function(_0x21309,_0x4e9c4f){const _0x467e57=function(_0xa2c86a){while(--_0xa2c86a){_0x21309['push'](_0x21309['shift']());}};_0x467e57(++_0x4e9c4f);}(a522_0x467e,0x179));const a522_0xa2c8=function(_0x21309,_0x4e9c4f){_0x21309=_0x21309-0x1ea;let _0x467e57=a522_0x467e[_0x21309];return _0x467e57;};const a522_0x33f0e9=a522_0xa2c8;'use strict';const express=require(a522_0x33f0e9(0x1f4)),router=express['Router'](),auth=require(a522_0x33f0e9(0x1eb)),controller=require(a522_0x33f0e9(0x1f3));router[a522_0x33f0e9(0x1f6)]('/',auth[a522_0x33f0e9(0x1f1)](),controller[a522_0x33f0e9(0x1f2)]),router[a522_0x33f0e9(0x1f6)](a522_0x33f0e9(0x1ee),auth['isAuthenticated'](),controller[a522_0x33f0e9(0x1ed)]),router[a522_0x33f0e9(0x1f5)]('/',auth[a522_0x33f0e9(0x1f1)](),controller[a522_0x33f0e9(0x1ea)]),router[a522_0x33f0e9(0x1f0)](a522_0x33f0e9(0x1ee),auth[a522_0x33f0e9(0x1f1)](),controller['update']),router['delete'](a522_0x33f0e9(0x1ee),auth['isAuthenticated'](),controller[a522_0x33f0e9(0x1ec)]),module[a522_0x33f0e9(0x1ef)]=router; \ No newline at end of file diff --git a/server/api/mailServerOut/mailServerOut.attributes.js b/server/api/mailServerOut/mailServerOut.attributes.js index aad5417..39845c6 100644 --- a/server/api/mailServerOut/mailServerOut.attributes.js +++ b/server/api/mailServerOut/mailServerOut.attributes.js @@ -1 +1 @@ -const a435_0x15ab=['INTEGER','STRING','BOOLEAN'];(function(_0x53fa36,_0x15ab56){const _0x198cd7=function(_0x4fdfdc){while(--_0x4fdfdc){_0x53fa36['push'](_0x53fa36['shift']());}};_0x198cd7(++_0x15ab56);}(a435_0x15ab,0x158));const a435_0x198c=function(_0x53fa36,_0x15ab56){_0x53fa36=_0x53fa36-0x0;let _0x198cd7=a435_0x15ab[_0x53fa36];return _0x198cd7;};const _0x12f5c6=a435_0x198c;'use strict';const Sequelize=require('sequelize');module['exports']={'description':{'type':Sequelize[_0x12f5c6('0x2')]},'host':{'type':Sequelize[_0x12f5c6('0x2')]},'user':{'type':Sequelize[_0x12f5c6('0x2')]},'pass':{'type':Sequelize['STRING']},'port':{'type':Sequelize[_0x12f5c6('0x1')]},'secure':{'type':Sequelize[_0x12f5c6('0x0')],'defaultValue':![]},'service':{'type':Sequelize['STRING']},'authentication':{'type':Sequelize[_0x12f5c6('0x0')],'defaultValue':!![]}}; \ No newline at end of file +const a523_0x3788=['STRING','INTEGER','exports','attributes','BOOLEAN'];(function(_0x57e4b1,_0x31c253){const _0x378848=function(_0x3a2fda){while(--_0x3a2fda){_0x57e4b1['push'](_0x57e4b1['shift']());}};_0x378848(++_0x31c253);}(a523_0x3788,0xf0));const a523_0x3a2f=function(_0x57e4b1,_0x31c253){_0x57e4b1=_0x57e4b1-0x67;let _0x378848=a523_0x3788[_0x57e4b1];return _0x378848;};const a523_0x460a81=a523_0x3a2f;'use strict';const {DataTypes}=require('sequelize'),attributes={'description':{'type':DataTypes[a523_0x460a81(0x67)]},'host':{'type':DataTypes['STRING']},'user':{'type':DataTypes[a523_0x460a81(0x67)]},'pass':{'type':DataTypes[a523_0x460a81(0x67)]},'port':{'type':DataTypes[a523_0x460a81(0x68)]},'secure':{'type':DataTypes[a523_0x460a81(0x6b)],'defaultValue':![]},'service':{'type':DataTypes[a523_0x460a81(0x67)]},'authentication':{'type':DataTypes[a523_0x460a81(0x6b)],'defaultValue':!![]}};module[a523_0x460a81(0x69)][a523_0x460a81(0x6a)]=attributes; \ No newline at end of file diff --git a/server/api/mailServerOut/mailServerOut.controller.js b/server/api/mailServerOut/mailServerOut.controller.js index 2ad0f37..bf1b17a 100644 --- a/server/api/mailServerOut/mailServerOut.controller.js +++ b/server/api/mailServerOut/mailServerOut.controller.js @@ -1 +1 @@ -const a436_0x4778=['api','body','options','send','pick','sort','end','show','MailServerOut','filters','json','rawAttributes','../../components/parsers/qs','length','fields','intersection','attributes','offset','rows','VIRTUAL','../../config/logger','catch','Content-Range','order','index','map','key','update','model','merge','fieldName','keys','limit','query','then','status','sendStatus','undefined','error','findAll','params','count','type','nolimit','like','destroy','sequelize'];(function(_0x261170,_0x4778e5){const _0x53728f=function(_0x10051f){while(--_0x10051f){_0x261170['push'](_0x261170['shift']());}};_0x53728f(++_0x4778e5);}(a436_0x4778,0x1ad));const a436_0x5372=function(_0x261170,_0x4778e5){_0x261170=_0x261170-0x0;let _0x53728f=a436_0x4778[_0x261170];return _0x53728f;};const _0x1bd8c9=a436_0x5372;'use strict';const _=require('lodash'),qs=require(_0x1bd8c9('0x6')),logger=require(_0x1bd8c9('0xe'))(_0x1bd8c9('0x29')),db=require('../../mysqldb')['db'],{Op}=require(_0x1bd8c9('0x28'));function respondWithResult(_0x10051f,_0x20e5d5){return _0x20e5d5=_0x20e5d5||0xc8,function(_0x41952b){if(_0x41952b)return _0x10051f['status'](_0x20e5d5)['json'](_0x41952b);};}function respondWithFilteredResult(_0x4b6944,_0x323b35){return function(_0x32f185){const _0x539e62=a436_0x5372;if(_0x32f185){const _0x2489c2=_0x32f185['count'],_0x33bb77=_0x323b35['offset'];let _0x320abe=_0x323b35['offset']+_0x323b35[_0x539e62('0x1a')],_0x4a32e9;return _0x320abe>=_0x2489c2?(_0x320abe=_0x2489c2,_0x4a32e9=0xc8):_0x4a32e9=0xce,_0x4b6944['status'](_0x4a32e9),_0x4b6944['set'](_0x539e62('0x10'),_0x33bb77+'-'+_0x320abe+'/'+_0x2489c2)[_0x539e62('0x4')](_0x32f185);}return null;};}function saveUpdates(_0x4620d2){return function(_0x9dc6b){const _0x176b86=a436_0x5372;if(_0x9dc6b)return _0x9dc6b[_0x176b86('0x15')](_0x4620d2)[_0x176b86('0x1c')](function(_0x1dcefb){return _0x1dcefb;});return null;};}function removeEntity(_0x34b6de){return function(_0x17ec99){const _0x404b3b=a436_0x5372;if(_0x17ec99)return _0x17ec99[_0x404b3b('0x27')]()[_0x404b3b('0x1c')](function(){const _0x56b444=_0x404b3b;_0x34b6de[_0x56b444('0x1d')](0xcc)[_0x56b444('0x0')]();});};}function handleEntityNotFound(_0x1b1ade){return function(_0x2ace0d){const _0x1d424b=a436_0x5372;return!_0x2ace0d&&_0x1b1ade[_0x1d424b('0x1e')](0x194),_0x2ace0d;};}function handleError(_0x1d37d9,_0x5eff8f){return _0x5eff8f=_0x5eff8f||0x1f4,function(_0x57dbc9){const _0x59b7b9=a436_0x5372;logger[_0x59b7b9('0x20')](_0x57dbc9['stack']),_0x57dbc9['name']&&delete _0x57dbc9['name'],_0x1d37d9[_0x59b7b9('0x1d')](_0x5eff8f)[_0x59b7b9('0x2c')](_0x57dbc9);};}exports[_0x1bd8c9('0x12')]=function(_0x212bc8,_0x10ee39){const _0x26a77b=_0x1bd8c9;let _0x5bb0a1={};const _0x48046b={},_0x3e83bd={'count':0x0,'rows':[]},_0x230be4=_[_0x26a77b('0x13')](db['MailServerOut'][_0x26a77b('0x5')],function(_0x3f9eba){const _0x308c42=_0x26a77b;return{'name':_0x3f9eba[_0x308c42('0x18')],'type':_0x3f9eba[_0x308c42('0x24')][_0x308c42('0x14')]};});_0x48046b['model']=_['map'](_0x230be4,'name'),_0x48046b['query']=_[_0x26a77b('0x19')](_0x212bc8[_0x26a77b('0x1b')]),_0x48046b[_0x26a77b('0x3')]=_[_0x26a77b('0x9')](_0x48046b[_0x26a77b('0x16')],_0x48046b[_0x26a77b('0x1b')]),_0x5bb0a1[_0x26a77b('0xa')]=_['intersection'](_0x48046b[_0x26a77b('0x16')],qs[_0x26a77b('0x8')](_0x212bc8[_0x26a77b('0x1b')][_0x26a77b('0x8')])),_0x5bb0a1['attributes']=_0x5bb0a1[_0x26a77b('0xa')]['length']?_0x5bb0a1[_0x26a77b('0xa')]:_0x48046b[_0x26a77b('0x16')];typeof _0x212bc8[_0x26a77b('0x1b')][_0x26a77b('0x25')]===_0x26a77b('0x1f')&&(_0x5bb0a1[_0x26a77b('0x1a')]=qs[_0x26a77b('0x1a')](_0x212bc8[_0x26a77b('0x1b')][_0x26a77b('0x1a')]),_0x5bb0a1[_0x26a77b('0xb')]=qs[_0x26a77b('0xb')](_0x212bc8[_0x26a77b('0x1b')]['offset']));_0x5bb0a1[_0x26a77b('0x11')]=qs[_0x26a77b('0x2e')](_0x212bc8[_0x26a77b('0x1b')][_0x26a77b('0x2e')]),_0x5bb0a1['where']=qs[_0x26a77b('0x3')](_[_0x26a77b('0x2d')](_0x212bc8['query'],_0x48046b[_0x26a77b('0x3')]),_0x230be4);_0x212bc8[_0x26a77b('0x1b')]['filter']&&(_0x5bb0a1['where']=_[_0x26a77b('0x17')](_0x5bb0a1['where'],{[Op['or']]:_[_0x26a77b('0x13')](_0x230be4,function(_0x1651ad){const _0x17a7e5=_0x26a77b;if(_0x1651ad[_0x17a7e5('0x24')]!==_0x17a7e5('0xd')){const _0x2ec8f8={};return _0x2ec8f8[_0x1651ad['name']]={[Op[_0x17a7e5('0x26')]]:'%'+_0x212bc8[_0x17a7e5('0x1b')]['filter']+'%'},_0x2ec8f8;}})}));_0x5bb0a1=_[_0x26a77b('0x17')]({},_0x5bb0a1,_0x212bc8[_0x26a77b('0x2b')]);const _0x44a67f={'where':_0x5bb0a1['where']};return db['MailServerOut'][_0x26a77b('0x23')](_0x44a67f)[_0x26a77b('0x1c')](function(_0x569212){const _0x2f0e10=_0x26a77b;return _0x3e83bd[_0x2f0e10('0x23')]=_0x569212,_0x212bc8[_0x2f0e10('0x1b')]['includeAll']&&(_0x5bb0a1['include']=[{'all':!![]}]),db['MailServerOut'][_0x2f0e10('0x21')](_0x5bb0a1);})[_0x26a77b('0x1c')](function(_0x5ec002){const _0xab83c9=_0x26a77b;return _0x3e83bd[_0xab83c9('0xc')]=_0x5ec002,_0x3e83bd;})[_0x26a77b('0x1c')](respondWithFilteredResult(_0x10ee39,_0x5bb0a1))['catch'](handleError(_0x10ee39,null));},exports[_0x1bd8c9('0x1')]=function(_0x3a1f5e,_0x47f652){const _0x13d43c=_0x1bd8c9;let _0x4f55fb={'raw':!![],'where':{'id':_0x3a1f5e['params']['id']}};const _0x3069e3={};return _0x3069e3[_0x13d43c('0x16')]=_[_0x13d43c('0x19')](db['MailServerOut'][_0x13d43c('0x5')]),_0x3069e3[_0x13d43c('0x1b')]=_[_0x13d43c('0x19')](_0x3a1f5e[_0x13d43c('0x1b')]),_0x3069e3[_0x13d43c('0x3')]=_['intersection'](_0x3069e3[_0x13d43c('0x16')],_0x3069e3['query']),_0x4f55fb[_0x13d43c('0xa')]=_[_0x13d43c('0x9')](_0x3069e3['model'],qs[_0x13d43c('0x8')](_0x3a1f5e['query'][_0x13d43c('0x8')])),_0x4f55fb['attributes']=_0x4f55fb['attributes'][_0x13d43c('0x7')]?_0x4f55fb['attributes']:_0x3069e3[_0x13d43c('0x16')],_0x3a1f5e[_0x13d43c('0x1b')]['includeAll']&&(_0x4f55fb['include']=[{'all':!![]}]),_0x4f55fb=_['merge']({},_0x4f55fb,_0x3a1f5e[_0x13d43c('0x2b')]),db[_0x13d43c('0x2')]['findOne'](_0x4f55fb)[_0x13d43c('0x1c')](handleEntityNotFound(_0x47f652,null))[_0x13d43c('0x1c')](respondWithResult(_0x47f652,null))[_0x13d43c('0xf')](handleError(_0x47f652,null));},exports['create']=function(_0x249448,_0x32a419){const _0x2cdfdc=_0x1bd8c9;return db[_0x2cdfdc('0x2')]['create'](_0x249448[_0x2cdfdc('0x2a')],{})[_0x2cdfdc('0x1c')](respondWithResult(_0x32a419,0xc9))[_0x2cdfdc('0xf')](handleError(_0x32a419,null));},exports[_0x1bd8c9('0x15')]=function(_0x36ab00,_0x5364a8){const _0xca4639=_0x1bd8c9;return _0x36ab00[_0xca4639('0x2a')]['id']&&delete _0x36ab00['body']['id'],db[_0xca4639('0x2')]['findOne']({'where':{'id':_0x36ab00[_0xca4639('0x22')]['id']}})[_0xca4639('0x1c')](handleEntityNotFound(_0x5364a8,null))['then'](saveUpdates(_0x36ab00[_0xca4639('0x2a')],null))[_0xca4639('0x1c')](respondWithResult(_0x5364a8,null))[_0xca4639('0xf')](handleError(_0x5364a8,null));},exports['destroy']=function(_0x15419e,_0x5a4ed9){const _0x3e1ca8=_0x1bd8c9;return db[_0x3e1ca8('0x2')]['findOne']({'where':{'id':_0x15419e[_0x3e1ca8('0x22')]['id']}})['then'](handleEntityNotFound(_0x5a4ed9,null))[_0x3e1ca8('0x1c')](removeEntity(_0x5a4ed9,null))[_0x3e1ca8('0xf')](handleError(_0x5a4ed9,null));}; \ No newline at end of file +const a524_0x148e=['undefined','name','sequelize','nolimit','update','filter','VIRTUAL','params','map','destroy','json','lodash','key','fieldName','body','length','model','findOne','../../mysqldb','then','type','intersection','sort','end','offset','attributes','status','where','set','findAll','../../config/logger','rows','includeAll','options','stack','count','MailServerOut','query','create','catch','merge','order','send','include','show','keys','limit','fields','Content-Range','filters'];(function(_0x315a3e,_0x48e409){const _0x148e02=function(_0xbad276){while(--_0xbad276){_0x315a3e['push'](_0x315a3e['shift']());}};_0x148e02(++_0x48e409);}(a524_0x148e,0x110));const a524_0xbad2=function(_0x315a3e,_0x48e409){_0x315a3e=_0x315a3e-0x18c;let _0x148e02=a524_0x148e[_0x315a3e];return _0x148e02;};const a524_0x502f51=a524_0xbad2;'use strict';const _=require(a524_0x502f51(0x1b3)),qs=require('../../components/parsers/qs'),logger=require(a524_0x502f51(0x194))('api'),{db}=require(a524_0x502f51(0x1ba)),{Op}=require(a524_0x502f51(0x1aa));function respondWithResult(_0x3ba193,_0x4867ce){return _0x4867ce=_0x4867ce||0xc8,function(_0x31e3b8){const _0x2e28ec=a524_0xbad2;if(_0x31e3b8)return _0x3ba193[_0x2e28ec(0x190)](_0x4867ce)[_0x2e28ec(0x1b2)](_0x31e3b8);};}function respondWithFilteredResult(_0x1e19bc,_0x492e1e){return function(_0x17adc1){const _0x5029b0=a524_0xbad2;if(_0x17adc1){const _0xed53df=_0x17adc1[_0x5029b0(0x199)],_0x62cd5c=_0x492e1e[_0x5029b0(0x18e)];let _0x162ab2=_0x492e1e[_0x5029b0(0x18e)]+_0x492e1e[_0x5029b0(0x1a4)],_0x4a4f53;return _0x162ab2>=_0xed53df?(_0x162ab2=_0xed53df,_0x4a4f53=0xc8):_0x4a4f53=0xce,_0x1e19bc[_0x5029b0(0x190)](_0x4a4f53),_0x1e19bc[_0x5029b0(0x192)](_0x5029b0(0x1a6),_0x62cd5c+'-'+_0x162ab2+'/'+_0xed53df)[_0x5029b0(0x1b2)](_0x17adc1);}return null;};}function saveUpdates(_0x2ce20e){return function(_0x33c144){const _0x280eb7=a524_0xbad2;if(_0x33c144)return _0x33c144[_0x280eb7(0x1ac)](_0x2ce20e)[_0x280eb7(0x1bb)](function(_0x2460fe){return _0x2460fe;});return null;};}function removeEntity(_0x165c74){return function(_0x4b02a0){const _0x44bbfd=a524_0xbad2;if(_0x4b02a0)return _0x4b02a0['destroy']()[_0x44bbfd(0x1bb)](function(){const _0x3c3361=_0x44bbfd;_0x165c74[_0x3c3361(0x190)](0xcc)[_0x3c3361(0x18d)]();});};}function handleEntityNotFound(_0x57e7ef){return function(_0x5d408d){return!_0x5d408d&&_0x57e7ef['sendStatus'](0x194),_0x5d408d;};}function handleError(_0x588033,_0x5e68f){return _0x5e68f=_0x5e68f||0x1f4,function(_0x3e1198){const _0x2cc913=a524_0xbad2;logger['error'](_0x3e1198[_0x2cc913(0x198)]),_0x3e1198[_0x2cc913(0x1a9)]&&delete _0x3e1198['name'],_0x588033[_0x2cc913(0x190)](_0x5e68f)[_0x2cc913(0x1a0)](_0x3e1198);};}exports['index']=function(_0x58026e,_0x28a447){const _0x4f4b4d=a524_0x502f51;let _0x1ddc52={};const _0x45f45a={},_0x3ea0d5={'count':0x0,'rows':[]},_0x2524d7=_[_0x4f4b4d(0x1b0)](db[_0x4f4b4d(0x19a)]['rawAttributes'],function(_0x2e17cd){const _0x22e601=_0x4f4b4d;return{'name':_0x2e17cd[_0x22e601(0x1b5)],'type':_0x2e17cd[_0x22e601(0x1bc)][_0x22e601(0x1b4)]};});_0x45f45a[_0x4f4b4d(0x1b8)]=_[_0x4f4b4d(0x1b0)](_0x2524d7,_0x4f4b4d(0x1a9)),_0x45f45a[_0x4f4b4d(0x19b)]=_[_0x4f4b4d(0x1a3)](_0x58026e[_0x4f4b4d(0x19b)]),_0x45f45a[_0x4f4b4d(0x1a7)]=_[_0x4f4b4d(0x1bd)](_0x45f45a['model'],_0x45f45a['query']),_0x1ddc52[_0x4f4b4d(0x18f)]=_[_0x4f4b4d(0x1bd)](_0x45f45a[_0x4f4b4d(0x1b8)],qs[_0x4f4b4d(0x1a5)](_0x58026e['query'][_0x4f4b4d(0x1a5)])),_0x1ddc52['attributes']=_0x1ddc52[_0x4f4b4d(0x18f)][_0x4f4b4d(0x1b7)]?_0x1ddc52[_0x4f4b4d(0x18f)]:_0x45f45a[_0x4f4b4d(0x1b8)];typeof _0x58026e[_0x4f4b4d(0x19b)][_0x4f4b4d(0x1ab)]===_0x4f4b4d(0x1a8)&&(_0x1ddc52['limit']=qs[_0x4f4b4d(0x1a4)](_0x58026e[_0x4f4b4d(0x19b)][_0x4f4b4d(0x1a4)]),_0x1ddc52[_0x4f4b4d(0x18e)]=qs[_0x4f4b4d(0x18e)](_0x58026e[_0x4f4b4d(0x19b)][_0x4f4b4d(0x18e)]));_0x1ddc52[_0x4f4b4d(0x19f)]=qs[_0x4f4b4d(0x18c)](_0x58026e[_0x4f4b4d(0x19b)]['sort']),_0x1ddc52[_0x4f4b4d(0x191)]=qs[_0x4f4b4d(0x1a7)](_['pick'](_0x58026e[_0x4f4b4d(0x19b)],_0x45f45a[_0x4f4b4d(0x1a7)]),_0x2524d7);_0x58026e[_0x4f4b4d(0x19b)][_0x4f4b4d(0x1ad)]&&(_0x1ddc52[_0x4f4b4d(0x191)]=_[_0x4f4b4d(0x19e)](_0x1ddc52['where'],{[Op['or']]:_[_0x4f4b4d(0x1b0)](_0x2524d7,function(_0x9ca506){const _0x5946db=_0x4f4b4d;if(_0x9ca506[_0x5946db(0x1bc)]!==_0x5946db(0x1ae)){const _0x50b0f5={};return _0x50b0f5[_0x9ca506[_0x5946db(0x1a9)]]={[Op['like']]:'%'+_0x58026e[_0x5946db(0x19b)][_0x5946db(0x1ad)]+'%'},_0x50b0f5;}})}));_0x1ddc52=_[_0x4f4b4d(0x19e)]({},_0x1ddc52,_0x58026e[_0x4f4b4d(0x197)]);const _0x3a2a70={'where':_0x1ddc52[_0x4f4b4d(0x191)]};return db[_0x4f4b4d(0x19a)]['count'](_0x3a2a70)[_0x4f4b4d(0x1bb)](function(_0x5a518d){const _0x5e1a34=_0x4f4b4d;return _0x3ea0d5[_0x5e1a34(0x199)]=_0x5a518d,_0x58026e['query'][_0x5e1a34(0x196)]&&(_0x1ddc52[_0x5e1a34(0x1a1)]=[{'all':!![]}]),db[_0x5e1a34(0x19a)][_0x5e1a34(0x193)](_0x1ddc52);})[_0x4f4b4d(0x1bb)](function(_0xab3f38){const _0x156626=_0x4f4b4d;return _0x3ea0d5[_0x156626(0x195)]=_0xab3f38,_0x3ea0d5;})[_0x4f4b4d(0x1bb)](respondWithFilteredResult(_0x28a447,_0x1ddc52))[_0x4f4b4d(0x19d)](handleError(_0x28a447,null));},exports[a524_0x502f51(0x1a2)]=function(_0x240279,_0x3d3f7c){const _0x13d05f=a524_0x502f51;let _0x207f74={'raw':!![],'where':{'id':_0x240279[_0x13d05f(0x1af)]['id']}};const _0x2b76ec={};return _0x2b76ec['model']=_[_0x13d05f(0x1a3)](db['MailServerOut']['rawAttributes']),_0x2b76ec['query']=_[_0x13d05f(0x1a3)](_0x240279[_0x13d05f(0x19b)]),_0x2b76ec['filters']=_[_0x13d05f(0x1bd)](_0x2b76ec[_0x13d05f(0x1b8)],_0x2b76ec[_0x13d05f(0x19b)]),_0x207f74['attributes']=_[_0x13d05f(0x1bd)](_0x2b76ec[_0x13d05f(0x1b8)],qs[_0x13d05f(0x1a5)](_0x240279[_0x13d05f(0x19b)][_0x13d05f(0x1a5)])),_0x207f74[_0x13d05f(0x18f)]=_0x207f74[_0x13d05f(0x18f)][_0x13d05f(0x1b7)]?_0x207f74[_0x13d05f(0x18f)]:_0x2b76ec['model'],_0x240279[_0x13d05f(0x19b)][_0x13d05f(0x196)]&&(_0x207f74['include']=[{'all':!![]}]),_0x207f74=_[_0x13d05f(0x19e)]({},_0x207f74,_0x240279[_0x13d05f(0x197)]),db[_0x13d05f(0x19a)][_0x13d05f(0x1b9)](_0x207f74)[_0x13d05f(0x1bb)](handleEntityNotFound(_0x3d3f7c,null))[_0x13d05f(0x1bb)](respondWithResult(_0x3d3f7c,null))[_0x13d05f(0x19d)](handleError(_0x3d3f7c,null));},exports[a524_0x502f51(0x19c)]=function(_0x233504,_0xc004a9){const _0x7b7f9b=a524_0x502f51;return db[_0x7b7f9b(0x19a)]['create'](_0x233504['body'],{})['then'](respondWithResult(_0xc004a9,0xc9))[_0x7b7f9b(0x19d)](handleError(_0xc004a9,null));},exports['update']=function(_0x3e6894,_0x23f43b){const _0x140ca2=a524_0x502f51;return _0x3e6894[_0x140ca2(0x1b6)]['id']&&delete _0x3e6894['body']['id'],db[_0x140ca2(0x19a)]['findOne']({'where':{'id':_0x3e6894[_0x140ca2(0x1af)]['id']}})[_0x140ca2(0x1bb)](handleEntityNotFound(_0x23f43b,null))[_0x140ca2(0x1bb)](saveUpdates(_0x3e6894[_0x140ca2(0x1b6)],null))[_0x140ca2(0x1bb)](respondWithResult(_0x23f43b,null))[_0x140ca2(0x19d)](handleError(_0x23f43b,null));},exports[a524_0x502f51(0x1b1)]=function(_0x536959,_0xc0ec99){const _0x3faab9=a524_0x502f51;return db[_0x3faab9(0x19a)]['findOne']({'where':{'id':_0x536959['params']['id']}})[_0x3faab9(0x1bb)](handleEntityNotFound(_0xc0ec99,null))[_0x3faab9(0x1bb)](removeEntity(_0xc0ec99,null))[_0x3faab9(0x19d)](handleError(_0xc0ec99,null));}; \ No newline at end of file diff --git a/server/api/mailServerOut/mailServerOut.model.js b/server/api/mailServerOut/mailServerOut.model.js index 5b191f9..3eb12ef 100644 --- a/server/api/mailServerOut/mailServerOut.model.js +++ b/server/api/mailServerOut/mailServerOut.model.js @@ -1 +1 @@ -const a437_0x4ba0=['./mailServerOut.attributes','exports','MailServerOut','mail_servers_out'];(function(_0x5b19d0,_0x4ba0f2){const _0xb1ee86=function(_0x4d9869){while(--_0x4d9869){_0x5b19d0['push'](_0x5b19d0['shift']());}};_0xb1ee86(++_0x4ba0f2);}(a437_0x4ba0,0x100));const a437_0xb1ee=function(_0x5b19d0,_0x4ba0f2){_0x5b19d0=_0x5b19d0-0x0;let _0xb1ee86=a437_0x4ba0[_0x5b19d0];return _0xb1ee86;};const _0x1ec73d=a437_0xb1ee;'use strict';const attributes=require(_0x1ec73d('0x0'));module[_0x1ec73d('0x1')]=function(_0x4d9869){const _0x44a824=_0x1ec73d,_0x436f0b=_0x4d9869['define'](_0x44a824('0x2'),attributes,{'tableName':_0x44a824('0x3'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x436f0b;}; \ No newline at end of file +const a525_0x16c8=['exports','./mailServerOut.options','MailServerOut','init','./mailServerOut.attributes','sequelize'];(function(_0x153155,_0x50390e){const _0x16c8ad=function(_0x438703){while(--_0x438703){_0x153155['push'](_0x153155['shift']());}};_0x16c8ad(++_0x50390e);}(a525_0x16c8,0x96));const a525_0x4387=function(_0x153155,_0x50390e){_0x153155=_0x153155-0x18f;let _0x16c8ad=a525_0x16c8[_0x153155];return _0x16c8ad;};const a525_0x4bc0ec=a525_0x4387;'use strict';const {Model}=require(a525_0x4bc0ec(0x194)),{attributes}=require(a525_0x4bc0ec(0x193)),{options}=require(a525_0x4bc0ec(0x190));class MailServerOut extends Model{}function init(_0x4fc308,_0x47ee04){const _0x3d5e18=a525_0x4bc0ec,_0x1eb0f2=options(_0x4fc308),_0x4d804e=typeof _0x47ee04==='function'?_0x47ee04(_0x1eb0f2):_0x1eb0f2;return MailServerOut[_0x3d5e18(0x192)](attributes,_0x4d804e),MailServerOut;}module['exports'][a525_0x4bc0ec(0x191)]=MailServerOut,module[a525_0x4bc0ec(0x18f)][a525_0x4bc0ec(0x192)]=init; \ No newline at end of file diff --git a/server/api/mailServerOut/mailServerOut.options.js b/server/api/mailServerOut/mailServerOut.options.js new file mode 100644 index 0000000..15a0f90 --- /dev/null +++ b/server/api/mailServerOut/mailServerOut.options.js @@ -0,0 +1 @@ +var a526_0x1135=['options','mail_servers_out'];(function(_0x521b3f,_0x36a525){var _0x1135c3=function(_0x3c256a){while(--_0x3c256a){_0x521b3f['push'](_0x521b3f['shift']());}};_0x1135c3(++_0x36a525);}(a526_0x1135,0xf6));var a526_0x3c25=function(_0x521b3f,_0x36a525){_0x521b3f=_0x521b3f-0x15a;var _0x1135c3=a526_0x1135[_0x521b3f];return _0x1135c3;};var a526_0x1900de=a526_0x3c25;function options(_0xe36f10){var _0x134ec5=a526_0x3c25;return{'sequelize':_0xe36f10,'tableName':_0x134ec5(0x15b),'paranoid':![],'indexes':[],'timestamps':!![]};}module['exports'][a526_0x1900de(0x15a)]=options; \ No newline at end of file diff --git a/server/api/mailSubstatus/index.js b/server/api/mailSubstatus/index.js index 98178e1..e7f3c08 100644 --- a/server/api/mailSubstatus/index.js +++ b/server/api/mailSubstatus/index.js @@ -1 +1 @@ -const a438_0x3854=['isAuthenticated','update','describe','./mailSubstatus.controller','show','get','put','delete','Router','destroy','/describe','create','/:id'];(function(_0x2d13d9,_0x38549f){const _0x434f8c=function(_0x58ea6a){while(--_0x58ea6a){_0x2d13d9['push'](_0x2d13d9['shift']());}};_0x434f8c(++_0x38549f);}(a438_0x3854,0x1f3));const a438_0x434f=function(_0x2d13d9,_0x38549f){_0x2d13d9=_0x2d13d9-0x0;let _0x434f8c=a438_0x3854[_0x2d13d9];return _0x434f8c;};const _0x1e4b2e=a438_0x434f;'use strict';const express=require('express'),router=express[_0x1e4b2e('0x3')](),auth=require('../../components/auth/service'),controller=require(_0x1e4b2e('0xb'));router[_0x1e4b2e('0x0')]('/',auth[_0x1e4b2e('0x8')](),controller['index']),router[_0x1e4b2e('0x0')](_0x1e4b2e('0x5'),auth[_0x1e4b2e('0x8')](),controller[_0x1e4b2e('0xa')]),router['get'](_0x1e4b2e('0x7'),auth[_0x1e4b2e('0x8')](),controller[_0x1e4b2e('0xc')]),router['post']('/',auth[_0x1e4b2e('0x8')](),controller[_0x1e4b2e('0x6')]),router[_0x1e4b2e('0x1')]('/:id',auth[_0x1e4b2e('0x8')](),controller[_0x1e4b2e('0x9')]),router[_0x1e4b2e('0x2')](_0x1e4b2e('0x7'),auth['isAuthenticated'](),controller[_0x1e4b2e('0x4')]),module['exports']=router; \ No newline at end of file +const a527_0x1a7a=['index','delete','/:id','update','isAuthenticated','show','create','get','describe','./mailSubstatus.controller','put','destroy','exports'];(function(_0x5e0607,_0x1859b1){const _0x1a7a1e=function(_0x5e5727){while(--_0x5e5727){_0x5e0607['push'](_0x5e0607['shift']());}};_0x1a7a1e(++_0x1859b1);}(a527_0x1a7a,0x187));const a527_0x5e57=function(_0x5e0607,_0x1859b1){_0x5e0607=_0x5e0607-0x1a8;let _0x1a7a1e=a527_0x1a7a[_0x5e0607];return _0x1a7a1e;};const a527_0x22daa3=a527_0x5e57;'use strict';const express=require('express'),router=express['Router'](),auth=require('../../components/auth/service'),controller=require(a527_0x22daa3(0x1b0));router[a527_0x22daa3(0x1ae)]('/',auth[a527_0x22daa3(0x1ab)](),controller[a527_0x22daa3(0x1b4)]),router[a527_0x22daa3(0x1ae)]('/describe',auth[a527_0x22daa3(0x1ab)](),controller[a527_0x22daa3(0x1af)]),router[a527_0x22daa3(0x1ae)]('/:id',auth['isAuthenticated'](),controller[a527_0x22daa3(0x1ac)]),router['post']('/',auth[a527_0x22daa3(0x1ab)](),controller[a527_0x22daa3(0x1ad)]),router[a527_0x22daa3(0x1b1)](a527_0x22daa3(0x1a9),auth[a527_0x22daa3(0x1ab)](),controller[a527_0x22daa3(0x1aa)]),router[a527_0x22daa3(0x1a8)](a527_0x22daa3(0x1a9),auth[a527_0x22daa3(0x1ab)](),controller[a527_0x22daa3(0x1b2)]),module[a527_0x22daa3(0x1b3)]=router; \ No newline at end of file diff --git a/server/api/mailSubstatus/mailSubstatus.attributes.js b/server/api/mailSubstatus/mailSubstatus.attributes.js index 4a78d38..78cdde3 100644 --- a/server/api/mailSubstatus/mailSubstatus.attributes.js +++ b/server/api/mailSubstatus/mailSubstatus.attributes.js @@ -1 +1 @@ -const a439_0x4dd2=['sequelize','exports','STRING','name'];(function(_0x4f56b2,_0x4dd2f6){const _0x14450c=function(_0x106407){while(--_0x106407){_0x4f56b2['push'](_0x4f56b2['shift']());}};_0x14450c(++_0x4dd2f6);}(a439_0x4dd2,0xb2));const a439_0x1445=function(_0x4f56b2,_0x4dd2f6){_0x4f56b2=_0x4f56b2-0x0;let _0x14450c=a439_0x4dd2[_0x4f56b2];return _0x14450c;};const _0x45e02b=a439_0x1445;'use strict';const Sequelize=require(_0x45e02b('0x2'));module[_0x45e02b('0x3')]={'name':{'type':Sequelize[_0x45e02b('0x0')],'unique':_0x45e02b('0x1'),'allowNull':![],'validate':{'notEmpty':!![]}},'description':{'type':Sequelize[_0x45e02b('0x0')]}}; \ No newline at end of file +const a528_0x341c=['STRING','attributes','sequelize','name'];(function(_0x33451d,_0x4230d7){const _0x341cf7=function(_0x5924fb){while(--_0x5924fb){_0x33451d['push'](_0x33451d['shift']());}};_0x341cf7(++_0x4230d7);}(a528_0x341c,0x138));const a528_0x5924=function(_0x33451d,_0x4230d7){_0x33451d=_0x33451d-0x71;let _0x341cf7=a528_0x341c[_0x33451d];return _0x341cf7;};const a528_0x4d34d3=a528_0x5924;'use strict';const {DataTypes}=require(a528_0x4d34d3(0x73)),attributes={'name':{'type':DataTypes[a528_0x4d34d3(0x71)],'unique':a528_0x4d34d3(0x74),'allowNull':![],'validate':{'notEmpty':!![]}},'description':{'type':DataTypes[a528_0x4d34d3(0x71)]}};module['exports'][a528_0x4d34d3(0x72)]=attributes; \ No newline at end of file diff --git a/server/api/mailSubstatus/mailSubstatus.controller.js b/server/api/mailSubstatus/mailSubstatus.controller.js index c2002e2..0a82575 100644 --- a/server/api/mailSubstatus/mailSubstatus.controller.js +++ b/server/api/mailSubstatus/mailSubstatus.controller.js @@ -1 +1 @@ -const a440_0x528c=['order','Content-Range','where','body','params','fields','json','sort','findOne','rows','offset','count','intersection','stack','show','limit','MailSubstatus','attributes','length','end','fieldName','options','set','nolimit','model','../../mysqldb','like','then','undefined','update','catch','VIRTUAL','merge','create','describe','keys','includeAll','filters','query','send','type','include','index','name','rawAttributes','destroy','../../config/logger','status','pick','findAll','filter','map'];(function(_0x188612,_0x528c04){const _0x1ab1b5=function(_0x8a3ff4){while(--_0x8a3ff4){_0x188612['push'](_0x188612['shift']());}};_0x1ab1b5(++_0x528c04);}(a440_0x528c,0x1b7));const a440_0x1ab1=function(_0x188612,_0x528c04){_0x188612=_0x188612-0x0;let _0x1ab1b5=a440_0x528c[_0x188612];return _0x1ab1b5;};const _0x3c7db2=a440_0x1ab1;'use strict';const _=require('lodash'),qs=require('../../components/parsers/qs'),logger=require(_0x3c7db2('0x17'))('api'),db=require(_0x3c7db2('0x2'))['db'],{Op}=require('sequelize');function respondWithResult(_0x8a3ff4,_0x15dff6){return _0x15dff6=_0x15dff6||0xc8,function(_0x87192c){const _0x18d2bd=a440_0x1ab1;if(_0x87192c)return _0x8a3ff4['status'](_0x15dff6)[_0x18d2bd('0x23')](_0x87192c);};}function respondWithFilteredResult(_0x1d104e,_0x29b1c3){return function(_0x3ad2d0){const _0x1ddf4e=a440_0x1ab1;if(_0x3ad2d0){const _0x2decc6=_0x3ad2d0[_0x1ddf4e('0x28')],_0x487d85=_0x29b1c3[_0x1ddf4e('0x27')];let _0x1672ce=_0x29b1c3[_0x1ddf4e('0x27')]+_0x29b1c3[_0x1ddf4e('0x2c')],_0x1aa76b;return _0x1672ce>=_0x2decc6?(_0x1672ce=_0x2decc6,_0x1aa76b=0xc8):_0x1aa76b=0xce,_0x1d104e['status'](_0x1aa76b),_0x1d104e[_0x1ddf4e('0x33')](_0x1ddf4e('0x1e'),_0x487d85+'-'+_0x1672ce+'/'+_0x2decc6)['json'](_0x3ad2d0);}return null;};}function saveUpdates(_0xff3cf7){return function(_0x1e260d){const _0x467527=a440_0x1ab1;if(_0x1e260d)return _0x1e260d[_0x467527('0x6')](_0xff3cf7)[_0x467527('0x4')](function(_0x4854fd){return _0x4854fd;});return null;};}function removeEntity(_0x57ddf6){return function(_0x326d29){const _0x11f130=a440_0x1ab1;if(_0x326d29)return _0x326d29[_0x11f130('0x16')]()[_0x11f130('0x4')](function(){const _0x22b7ff=_0x11f130;_0x57ddf6[_0x22b7ff('0x18')](0xcc)[_0x22b7ff('0x30')]();});};}function handleEntityNotFound(_0x1d831d){return function(_0x2e65a0){return!_0x2e65a0&&_0x1d831d['sendStatus'](0x194),_0x2e65a0;};}function handleError(_0x5d315e,_0x541243){return _0x541243=_0x541243||0x1f4,function(_0x1642a7){const _0x4722f1=a440_0x1ab1;logger['error'](_0x1642a7[_0x4722f1('0x2a')]),_0x1642a7[_0x4722f1('0x14')]&&delete _0x1642a7[_0x4722f1('0x14')],_0x5d315e[_0x4722f1('0x18')](_0x541243)[_0x4722f1('0x10')](_0x1642a7);};}exports[_0x3c7db2('0x13')]=function(_0x3e45a6,_0x464120){const _0x1b415f=_0x3c7db2;let _0x18b731={};const _0x1253e4={},_0x29543d={'count':0x0,'rows':[]},_0x18d24f=_['map'](db[_0x1b415f('0x2d')][_0x1b415f('0x15')],function(_0x5bd3c3){const _0xbdda69=_0x1b415f;return{'name':_0x5bd3c3[_0xbdda69('0x31')],'type':_0x5bd3c3[_0xbdda69('0x11')]['key']};});_0x1253e4['model']=_[_0x1b415f('0x1c')](_0x18d24f,'name'),_0x1253e4[_0x1b415f('0xf')]=_['keys'](_0x3e45a6[_0x1b415f('0xf')]),_0x1253e4[_0x1b415f('0xe')]=_['intersection'](_0x1253e4[_0x1b415f('0x1')],_0x1253e4[_0x1b415f('0xf')]),_0x18b731[_0x1b415f('0x2e')]=_['intersection'](_0x1253e4[_0x1b415f('0x1')],qs[_0x1b415f('0x22')](_0x3e45a6['query'][_0x1b415f('0x22')])),_0x18b731[_0x1b415f('0x2e')]=_0x18b731[_0x1b415f('0x2e')]['length']?_0x18b731['attributes']:_0x1253e4[_0x1b415f('0x1')];typeof _0x3e45a6['query'][_0x1b415f('0x0')]===_0x1b415f('0x5')&&(_0x18b731[_0x1b415f('0x2c')]=qs[_0x1b415f('0x2c')](_0x3e45a6[_0x1b415f('0xf')]['limit']),_0x18b731[_0x1b415f('0x27')]=qs['offset'](_0x3e45a6[_0x1b415f('0xf')][_0x1b415f('0x27')]));_0x18b731[_0x1b415f('0x1d')]=qs[_0x1b415f('0x24')](_0x3e45a6['query'][_0x1b415f('0x24')]),_0x18b731[_0x1b415f('0x1f')]=qs[_0x1b415f('0xe')](_[_0x1b415f('0x19')](_0x3e45a6[_0x1b415f('0xf')],_0x1253e4[_0x1b415f('0xe')]),_0x18d24f);_0x3e45a6[_0x1b415f('0xf')][_0x1b415f('0x1b')]&&(_0x18b731[_0x1b415f('0x1f')]=_[_0x1b415f('0x9')](_0x18b731['where'],{[Op['or']]:_['map'](_0x18d24f,function(_0x1792b6){const _0x4609d7=_0x1b415f;if(_0x1792b6['type']!==_0x4609d7('0x8')){const _0x14b488={};return _0x14b488[_0x1792b6[_0x4609d7('0x14')]]={[Op[_0x4609d7('0x3')]]:'%'+_0x3e45a6[_0x4609d7('0xf')][_0x4609d7('0x1b')]+'%'},_0x14b488;}})}));_0x18b731=_[_0x1b415f('0x9')]({},_0x18b731,_0x3e45a6[_0x1b415f('0x32')]);const _0xb4dd87={'where':_0x18b731[_0x1b415f('0x1f')]};return db['MailSubstatus'][_0x1b415f('0x28')](_0xb4dd87)[_0x1b415f('0x4')](function(_0x264416){const _0x40bef4=_0x1b415f;return _0x29543d[_0x40bef4('0x28')]=_0x264416,_0x3e45a6['query']['includeAll']&&(_0x18b731[_0x40bef4('0x12')]=[{'all':!![]}]),db[_0x40bef4('0x2d')][_0x40bef4('0x1a')](_0x18b731);})[_0x1b415f('0x4')](function(_0x58969c){const _0x2c522b=_0x1b415f;return _0x29543d[_0x2c522b('0x26')]=_0x58969c,_0x29543d;})[_0x1b415f('0x4')](respondWithFilteredResult(_0x464120,_0x18b731))['catch'](handleError(_0x464120,null));},exports[_0x3c7db2('0x2b')]=function(_0x45fef6,_0x11a5d5){const _0x4899fb=_0x3c7db2;let _0x4647a5={'raw':!![],'where':{'id':_0x45fef6[_0x4899fb('0x21')]['id']}};const _0x422bcf={};return _0x422bcf[_0x4899fb('0x1')]=_[_0x4899fb('0xc')](db['MailSubstatus'][_0x4899fb('0x15')]),_0x422bcf[_0x4899fb('0xf')]=_[_0x4899fb('0xc')](_0x45fef6[_0x4899fb('0xf')]),_0x422bcf[_0x4899fb('0xe')]=_['intersection'](_0x422bcf['model'],_0x422bcf['query']),_0x4647a5[_0x4899fb('0x2e')]=_[_0x4899fb('0x29')](_0x422bcf[_0x4899fb('0x1')],qs[_0x4899fb('0x22')](_0x45fef6[_0x4899fb('0xf')][_0x4899fb('0x22')])),_0x4647a5[_0x4899fb('0x2e')]=_0x4647a5[_0x4899fb('0x2e')][_0x4899fb('0x2f')]?_0x4647a5['attributes']:_0x422bcf['model'],_0x45fef6[_0x4899fb('0xf')][_0x4899fb('0xd')]&&(_0x4647a5[_0x4899fb('0x12')]=[{'all':!![]}]),_0x4647a5=_[_0x4899fb('0x9')]({},_0x4647a5,_0x45fef6[_0x4899fb('0x32')]),db[_0x4899fb('0x2d')][_0x4899fb('0x25')](_0x4647a5)['then'](handleEntityNotFound(_0x11a5d5,null))['then'](respondWithResult(_0x11a5d5,null))[_0x4899fb('0x7')](handleError(_0x11a5d5,null));},exports[_0x3c7db2('0xa')]=function(_0x3bfe9e,_0x252d22){const _0x547c4c=_0x3c7db2;return db[_0x547c4c('0x2d')][_0x547c4c('0xa')](_0x3bfe9e[_0x547c4c('0x20')],{})['then'](respondWithResult(_0x252d22,0xc9))[_0x547c4c('0x7')](handleError(_0x252d22,null));},exports[_0x3c7db2('0x6')]=function(_0x19490d,_0xcd401c){const _0x3cb85b=_0x3c7db2;return _0x19490d[_0x3cb85b('0x20')]['id']&&delete _0x19490d[_0x3cb85b('0x20')]['id'],db[_0x3cb85b('0x2d')][_0x3cb85b('0x25')]({'where':{'id':_0x19490d[_0x3cb85b('0x21')]['id']}})['then'](handleEntityNotFound(_0xcd401c,null))[_0x3cb85b('0x4')](saveUpdates(_0x19490d[_0x3cb85b('0x20')],null))[_0x3cb85b('0x4')](respondWithResult(_0xcd401c,null))['catch'](handleError(_0xcd401c,null));},exports[_0x3c7db2('0x16')]=function(_0x265a17,_0x49f475){const _0x435837=_0x3c7db2;return db[_0x435837('0x2d')][_0x435837('0x25')]({'where':{'id':_0x265a17[_0x435837('0x21')]['id']}})[_0x435837('0x4')](handleEntityNotFound(_0x49f475,null))[_0x435837('0x4')](removeEntity(_0x49f475,null))['catch'](handleError(_0x49f475,null));},exports[_0x3c7db2('0xb')]=function(_0x3e7e59,_0x118caa){const _0x2be49a=_0x3c7db2;return db[_0x2be49a('0x2d')]['describe']()[_0x2be49a('0x4')](respondWithResult(_0x118caa,null))[_0x2be49a('0x7')](handleError(_0x118caa,null));}; \ No newline at end of file +const a529_0x1888=['show','findOne','params','includeAll','stack','order','rawAttributes','fieldName','attributes','query','body','filters','intersection','create','merge','where','end','type','send','like','findAll','nolimit','update','../../mysqldb','offset','../../components/parsers/qs','model','json','key','sort','pick','api','index','destroy','then','sequelize','map','catch','include','count','describe','Content-Range','keys','status','length','undefined','set','lodash','MailSubstatus','name','filter','options','fields','limit'];(function(_0x2aada2,_0x5c429b){const _0x18889a=function(_0x24bca2){while(--_0x24bca2){_0x2aada2['push'](_0x2aada2['shift']());}};_0x18889a(++_0x5c429b);}(a529_0x1888,0x126));const a529_0x24bc=function(_0x2aada2,_0x5c429b){_0x2aada2=_0x2aada2-0x12f;let _0x18889a=a529_0x1888[_0x2aada2];return _0x18889a;};const a529_0x19007f=a529_0x24bc;'use strict';const _=require(a529_0x19007f(0x146)),qs=require(a529_0x19007f(0x130)),logger=require('../../config/logger')(a529_0x19007f(0x136)),{db}=require(a529_0x19007f(0x164)),{Op}=require(a529_0x19007f(0x13a));function respondWithResult(_0x46b3bc,_0xaa2afa){return _0xaa2afa=_0xaa2afa||0xc8,function(_0x33df39){const _0x257deb=a529_0x24bc;if(_0x33df39)return _0x46b3bc['status'](_0xaa2afa)[_0x257deb(0x132)](_0x33df39);};}function respondWithFilteredResult(_0x18eca3,_0x325930){return function(_0x4de65b){const _0x317f46=a529_0x24bc;if(_0x4de65b){const _0x333f1f=_0x4de65b['count'],_0x22a0a5=_0x325930[_0x317f46(0x12f)];let _0x1ff7a4=_0x325930['offset']+_0x325930['limit'],_0x1e6377;return _0x1ff7a4>=_0x333f1f?(_0x1ff7a4=_0x333f1f,_0x1e6377=0xc8):_0x1e6377=0xce,_0x18eca3[_0x317f46(0x142)](_0x1e6377),_0x18eca3[_0x317f46(0x145)](_0x317f46(0x140),_0x22a0a5+'-'+_0x1ff7a4+'/'+_0x333f1f)[_0x317f46(0x132)](_0x4de65b);}return null;};}function saveUpdates(_0xe755e8){return function(_0x584b14){const _0x454f65=a529_0x24bc;if(_0x584b14)return _0x584b14[_0x454f65(0x163)](_0xe755e8)['then'](function(_0x4e81d0){return _0x4e81d0;});return null;};}function removeEntity(_0x1d49ed){return function(_0xf68331){const _0x26612a=a529_0x24bc;if(_0xf68331)return _0xf68331['destroy']()[_0x26612a(0x139)](function(){const _0x223eb6=_0x26612a;_0x1d49ed[_0x223eb6(0x142)](0xcc)[_0x223eb6(0x15d)]();});};}function handleEntityNotFound(_0x182ca5){return function(_0x5de1e0){return!_0x5de1e0&&_0x182ca5['sendStatus'](0x194),_0x5de1e0;};}function handleError(_0x1f2eb2,_0x3fb702){return _0x3fb702=_0x3fb702||0x1f4,function(_0xb500c3){const _0x575cd2=a529_0x24bc;logger['error'](_0xb500c3[_0x575cd2(0x151)]),_0xb500c3['name']&&delete _0xb500c3[_0x575cd2(0x148)],_0x1f2eb2[_0x575cd2(0x142)](_0x3fb702)[_0x575cd2(0x15f)](_0xb500c3);};}exports[a529_0x19007f(0x137)]=function(_0x259a3d,_0x18ee3d){const _0x3c218a=a529_0x19007f;let _0x2b2b95={};const _0x192b28={},_0x59901c={'count':0x0,'rows':[]},_0x419640=_[_0x3c218a(0x13b)](db[_0x3c218a(0x147)][_0x3c218a(0x153)],function(_0x2de082){const _0x43c2f1=_0x3c218a;return{'name':_0x2de082[_0x43c2f1(0x154)],'type':_0x2de082[_0x43c2f1(0x15e)][_0x43c2f1(0x133)]};});_0x192b28[_0x3c218a(0x131)]=_[_0x3c218a(0x13b)](_0x419640,'name'),_0x192b28[_0x3c218a(0x156)]=_['keys'](_0x259a3d[_0x3c218a(0x156)]),_0x192b28['filters']=_[_0x3c218a(0x159)](_0x192b28['model'],_0x192b28[_0x3c218a(0x156)]),_0x2b2b95[_0x3c218a(0x155)]=_[_0x3c218a(0x159)](_0x192b28[_0x3c218a(0x131)],qs[_0x3c218a(0x14b)](_0x259a3d[_0x3c218a(0x156)][_0x3c218a(0x14b)])),_0x2b2b95[_0x3c218a(0x155)]=_0x2b2b95[_0x3c218a(0x155)][_0x3c218a(0x143)]?_0x2b2b95[_0x3c218a(0x155)]:_0x192b28[_0x3c218a(0x131)];typeof _0x259a3d[_0x3c218a(0x156)][_0x3c218a(0x162)]===_0x3c218a(0x144)&&(_0x2b2b95[_0x3c218a(0x14c)]=qs[_0x3c218a(0x14c)](_0x259a3d[_0x3c218a(0x156)][_0x3c218a(0x14c)]),_0x2b2b95['offset']=qs['offset'](_0x259a3d['query'][_0x3c218a(0x12f)]));_0x2b2b95[_0x3c218a(0x152)]=qs[_0x3c218a(0x134)](_0x259a3d[_0x3c218a(0x156)]['sort']),_0x2b2b95['where']=qs['filters'](_[_0x3c218a(0x135)](_0x259a3d['query'],_0x192b28[_0x3c218a(0x158)]),_0x419640);_0x259a3d[_0x3c218a(0x156)][_0x3c218a(0x149)]&&(_0x2b2b95[_0x3c218a(0x15c)]=_[_0x3c218a(0x15b)](_0x2b2b95[_0x3c218a(0x15c)],{[Op['or']]:_[_0x3c218a(0x13b)](_0x419640,function(_0x1ef88a){const _0x1cdb9e=_0x3c218a;if(_0x1ef88a[_0x1cdb9e(0x15e)]!=='VIRTUAL'){const _0xe3c1b8={};return _0xe3c1b8[_0x1ef88a[_0x1cdb9e(0x148)]]={[Op[_0x1cdb9e(0x160)]]:'%'+_0x259a3d[_0x1cdb9e(0x156)][_0x1cdb9e(0x149)]+'%'},_0xe3c1b8;}})}));_0x2b2b95=_['merge']({},_0x2b2b95,_0x259a3d['options']);const _0x3a3777={'where':_0x2b2b95['where']};return db[_0x3c218a(0x147)][_0x3c218a(0x13e)](_0x3a3777)['then'](function(_0x37410a){const _0x31cce0=_0x3c218a;return _0x59901c['count']=_0x37410a,_0x259a3d[_0x31cce0(0x156)][_0x31cce0(0x150)]&&(_0x2b2b95[_0x31cce0(0x13d)]=[{'all':!![]}]),db[_0x31cce0(0x147)][_0x31cce0(0x161)](_0x2b2b95);})[_0x3c218a(0x139)](function(_0x5f5d5d){return _0x59901c['rows']=_0x5f5d5d,_0x59901c;})[_0x3c218a(0x139)](respondWithFilteredResult(_0x18ee3d,_0x2b2b95))[_0x3c218a(0x13c)](handleError(_0x18ee3d,null));},exports[a529_0x19007f(0x14d)]=function(_0x32283d,_0x6effe2){const _0x4c200b=a529_0x19007f;let _0x28580e={'raw':!![],'where':{'id':_0x32283d[_0x4c200b(0x14f)]['id']}};const _0x14002b={};return _0x14002b[_0x4c200b(0x131)]=_[_0x4c200b(0x141)](db['MailSubstatus'][_0x4c200b(0x153)]),_0x14002b[_0x4c200b(0x156)]=_[_0x4c200b(0x141)](_0x32283d['query']),_0x14002b[_0x4c200b(0x158)]=_[_0x4c200b(0x159)](_0x14002b[_0x4c200b(0x131)],_0x14002b[_0x4c200b(0x156)]),_0x28580e[_0x4c200b(0x155)]=_[_0x4c200b(0x159)](_0x14002b['model'],qs[_0x4c200b(0x14b)](_0x32283d[_0x4c200b(0x156)]['fields'])),_0x28580e[_0x4c200b(0x155)]=_0x28580e[_0x4c200b(0x155)][_0x4c200b(0x143)]?_0x28580e[_0x4c200b(0x155)]:_0x14002b[_0x4c200b(0x131)],_0x32283d[_0x4c200b(0x156)][_0x4c200b(0x150)]&&(_0x28580e[_0x4c200b(0x13d)]=[{'all':!![]}]),_0x28580e=_[_0x4c200b(0x15b)]({},_0x28580e,_0x32283d[_0x4c200b(0x14a)]),db[_0x4c200b(0x147)]['findOne'](_0x28580e)['then'](handleEntityNotFound(_0x6effe2,null))[_0x4c200b(0x139)](respondWithResult(_0x6effe2,null))['catch'](handleError(_0x6effe2,null));},exports[a529_0x19007f(0x15a)]=function(_0x516fe4,_0x4b5e7a){const _0x1005cf=a529_0x19007f;return db[_0x1005cf(0x147)][_0x1005cf(0x15a)](_0x516fe4[_0x1005cf(0x157)],{})[_0x1005cf(0x139)](respondWithResult(_0x4b5e7a,0xc9))['catch'](handleError(_0x4b5e7a,null));},exports[a529_0x19007f(0x163)]=function(_0x31b858,_0x41c8ea){const _0x361180=a529_0x19007f;return _0x31b858[_0x361180(0x157)]['id']&&delete _0x31b858['body']['id'],db[_0x361180(0x147)]['findOne']({'where':{'id':_0x31b858[_0x361180(0x14f)]['id']}})[_0x361180(0x139)](handleEntityNotFound(_0x41c8ea,null))['then'](saveUpdates(_0x31b858[_0x361180(0x157)],null))[_0x361180(0x139)](respondWithResult(_0x41c8ea,null))[_0x361180(0x13c)](handleError(_0x41c8ea,null));},exports[a529_0x19007f(0x138)]=function(_0xc5021c,_0x5e9da1){const _0x446327=a529_0x19007f;return db[_0x446327(0x147)][_0x446327(0x14e)]({'where':{'id':_0xc5021c[_0x446327(0x14f)]['id']}})[_0x446327(0x139)](handleEntityNotFound(_0x5e9da1,null))[_0x446327(0x139)](removeEntity(_0x5e9da1,null))[_0x446327(0x13c)](handleError(_0x5e9da1,null));},exports[a529_0x19007f(0x13f)]=function(_0x4c54e0,_0x5352bd){const _0x189fc1=a529_0x19007f;return db[_0x189fc1(0x147)][_0x189fc1(0x13f)]()[_0x189fc1(0x139)](respondWithResult(_0x5352bd,null))[_0x189fc1(0x13c)](handleError(_0x5352bd,null));}; \ No newline at end of file diff --git a/server/api/mailSubstatus/mailSubstatus.model.js b/server/api/mailSubstatus/mailSubstatus.model.js index 16f6e28..88b84b6 100644 --- a/server/api/mailSubstatus/mailSubstatus.model.js +++ b/server/api/mailSubstatus/mailSubstatus.model.js @@ -1 +1 @@ -const a441_0x1628=['exports','define','./mailSubstatus.attributes'];(function(_0x57d638,_0x162859){const _0x1677c2=function(_0x58a36b){while(--_0x58a36b){_0x57d638['push'](_0x57d638['shift']());}};_0x1677c2(++_0x162859);}(a441_0x1628,0x164));const a441_0x1677=function(_0x57d638,_0x162859){_0x57d638=_0x57d638-0x0;let _0x1677c2=a441_0x1628[_0x57d638];return _0x1677c2;};const _0x1f32f6=a441_0x1677;'use strict';const attributes=require(_0x1f32f6('0x0'));module[_0x1f32f6('0x1')]=function(_0x58a36b){const _0x1d649d=_0x1f32f6,_0x4c9246=_0x58a36b[_0x1d649d('0x2')]('MailSubstatus',attributes,{'tableName':'mail_substatuses','paranoid':![],'indexes':[],'timestamps':!![]});return _0x4c9246;}; \ No newline at end of file +const a530_0x211c=['MailSubstatus','exports','function','./mailSubstatus.attributes','init'];(function(_0x138384,_0x3738dc){const _0x211c7b=function(_0x3269db){while(--_0x3269db){_0x138384['push'](_0x138384['shift']());}};_0x211c7b(++_0x3738dc);}(a530_0x211c,0x7c));const a530_0x3269=function(_0x138384,_0x3738dc){_0x138384=_0x138384-0x1e0;let _0x211c7b=a530_0x211c[_0x138384];return _0x211c7b;};const a530_0x225fc0=a530_0x3269;'use strict';const {Model}=require('sequelize'),{attributes}=require(a530_0x225fc0(0x1e4)),{options}=require('./mailSubstatus.options');class MailSubstatus extends Model{}function init(_0x1f8b17,_0x345276){const _0x2289d7=a530_0x225fc0,_0x512340=options(_0x1f8b17),_0xcdedef=typeof _0x345276===_0x2289d7(0x1e3)?_0x345276(_0x512340):_0x512340;return MailSubstatus[_0x2289d7(0x1e0)](attributes,_0xcdedef),MailSubstatus;}module[a530_0x225fc0(0x1e2)][a530_0x225fc0(0x1e1)]=MailSubstatus,module['exports'][a530_0x225fc0(0x1e0)]=init; \ No newline at end of file diff --git a/server/api/mailSubstatus/mailSubstatus.options.js b/server/api/mailSubstatus/mailSubstatus.options.js new file mode 100644 index 0000000..f7f1dfd --- /dev/null +++ b/server/api/mailSubstatus/mailSubstatus.options.js @@ -0,0 +1 @@ +var a531_0x204e=['options','mail_substatuses'];(function(_0x2e809d,_0x13b558){var _0x204ed9=function(_0x18f88c){while(--_0x18f88c){_0x2e809d['push'](_0x2e809d['shift']());}};_0x204ed9(++_0x13b558);}(a531_0x204e,0x101));var a531_0x18f8=function(_0x2e809d,_0x13b558){_0x2e809d=_0x2e809d-0x127;var _0x204ed9=a531_0x204e[_0x2e809d];return _0x204ed9;};var a531_0x536143=a531_0x18f8;function options(_0x2aec7f){var _0x2eb420=a531_0x18f8;return{'sequelize':_0x2aec7f,'tableName':_0x2eb420(0x127),'paranoid':![],'indexes':[],'timestamps':!![]};}module['exports'][a531_0x536143(0x128)]=options; \ No newline at end of file diff --git a/server/api/mailTransferReport/index.js b/server/api/mailTransferReport/index.js index aaa84a4..87591b2 100644 --- a/server/api/mailTransferReport/index.js +++ b/server/api/mailTransferReport/index.js @@ -1 +1 @@ -const a442_0x1e61=['isAuthenticated','update','get','delete','post','Router','/:id','put','destroy','./mailTransferReport.controller','show'];(function(_0x5a7fd8,_0x1e61a9){const _0x36a79b=function(_0x50b649){while(--_0x50b649){_0x5a7fd8['push'](_0x5a7fd8['shift']());}};_0x36a79b(++_0x1e61a9);}(a442_0x1e61,0x7c));const a442_0x36a7=function(_0x5a7fd8,_0x1e61a9){_0x5a7fd8=_0x5a7fd8-0x0;let _0x36a79b=a442_0x1e61[_0x5a7fd8];return _0x36a79b;};const _0x258415=a442_0x36a7;'use strict';const express=require('express'),router=express[_0x258415('0x2')](),auth=require('../../components/auth/service'),controller=require(_0x258415('0x6'));router[_0x258415('0xa')]('/',auth['isAuthenticated'](),controller['index']),router[_0x258415('0xa')]('/describe',auth[_0x258415('0x8')](),controller['describe']),router[_0x258415('0xa')]('/:id',auth[_0x258415('0x8')](),controller[_0x258415('0x7')]),router[_0x258415('0x1')]('/',auth[_0x258415('0x8')](),controller['create']),router[_0x258415('0x4')](_0x258415('0x3'),auth[_0x258415('0x8')](),controller[_0x258415('0x9')]),router[_0x258415('0x0')](_0x258415('0x3'),auth['isAuthenticated'](),controller[_0x258415('0x5')]),module['exports']=router; \ No newline at end of file +const a532_0x2b4f=['Router','put','delete','index','/:id','get','/describe','destroy','describe','exports','express','./mailTransferReport.controller','post','create','isAuthenticated'];(function(_0x27c7fb,_0x5f456d){const _0x2b4f04=function(_0x2fab28){while(--_0x2fab28){_0x27c7fb['push'](_0x27c7fb['shift']());}};_0x2b4f04(++_0x5f456d);}(a532_0x2b4f,0x16d));const a532_0x2fab=function(_0x27c7fb,_0x5f456d){_0x27c7fb=_0x27c7fb-0xb6;let _0x2b4f04=a532_0x2b4f[_0x27c7fb];return _0x2b4f04;};const a532_0xd42f1b=a532_0x2fab;'use strict';const express=require(a532_0xd42f1b(0xbb)),router=express[a532_0xd42f1b(0xc0)](),auth=require('../../components/auth/service'),controller=require(a532_0xd42f1b(0xbc));router['get']('/',auth['isAuthenticated'](),controller[a532_0xd42f1b(0xc3)]),router['get'](a532_0xd42f1b(0xb7),auth[a532_0xd42f1b(0xbf)](),controller[a532_0xd42f1b(0xb9)]),router[a532_0xd42f1b(0xb6)](a532_0xd42f1b(0xc4),auth[a532_0xd42f1b(0xbf)](),controller['show']),router[a532_0xd42f1b(0xbd)]('/',auth['isAuthenticated'](),controller[a532_0xd42f1b(0xbe)]),router[a532_0xd42f1b(0xc1)](a532_0xd42f1b(0xc4),auth[a532_0xd42f1b(0xbf)](),controller['update']),router[a532_0xd42f1b(0xc2)](a532_0xd42f1b(0xc4),auth[a532_0xd42f1b(0xbf)](),controller[a532_0xd42f1b(0xb8)]),module[a532_0xd42f1b(0xba)]=router; \ No newline at end of file diff --git a/server/api/mailTransferReport/mailTransferReport.attributes.js b/server/api/mailTransferReport/mailTransferReport.attributes.js index 62532d3..74f6cfb 100644 --- a/server/api/mailTransferReport/mailTransferReport.attributes.js +++ b/server/api/mailTransferReport/mailTransferReport.attributes.js @@ -1 +1 @@ -const a443_0x20fa=['agent','ENUM','queue','STRING','exports'];(function(_0x3f0fe8,_0x20fa86){const _0x2d7f0d=function(_0x4d140d){while(--_0x4d140d){_0x3f0fe8['push'](_0x3f0fe8['shift']());}};_0x2d7f0d(++_0x20fa86);}(a443_0x20fa,0x1dd));const a443_0x2d7f=function(_0x3f0fe8,_0x20fa86){_0x3f0fe8=_0x3f0fe8-0x0;let _0x2d7f0d=a443_0x20fa[_0x3f0fe8];return _0x2d7f0d;};const _0x4314d1=a443_0x2d7f;'use strict';const Sequelize=require('sequelize');module[_0x4314d1('0x2')]={'uniqueid':{'type':Sequelize[_0x4314d1('0x1')],'allowNull':![]},'type':{'type':Sequelize[_0x4314d1('0x4')]('account',_0x4314d1('0x3'),'queue'),'allowNull':![],'defaultValue':_0x4314d1('0x0')},'transferredAt':{'type':Sequelize['DATE'],'allowNull':![],'defaultValue':Sequelize['NOW']}}; \ No newline at end of file +const a533_0x25bf=['account','queue','attributes','sequelize','STRING','DATE','ENUM','agent'];(function(_0x63505d,_0x1c784e){const _0x25bf56=function(_0x40a1a1){while(--_0x40a1a1){_0x63505d['push'](_0x63505d['shift']());}};_0x25bf56(++_0x1c784e);}(a533_0x25bf,0x181));const a533_0x40a1=function(_0x63505d,_0x1c784e){_0x63505d=_0x63505d-0x18d;let _0x25bf56=a533_0x25bf[_0x63505d];return _0x25bf56;};const a533_0x20fc80=a533_0x40a1;'use strict';const {DataTypes}=require(a533_0x20fc80(0x18f)),attributes={'uniqueid':{'type':DataTypes[a533_0x20fc80(0x190)],'allowNull':![]},'type':{'type':DataTypes[a533_0x20fc80(0x192)](a533_0x20fc80(0x194),a533_0x20fc80(0x193),a533_0x20fc80(0x18d)),'allowNull':![],'defaultValue':a533_0x20fc80(0x18d)},'transferredAt':{'type':DataTypes[a533_0x20fc80(0x191)],'allowNull':![],'defaultValue':DataTypes['NOW']}};module['exports'][a533_0x20fc80(0x18e)]=attributes; \ No newline at end of file diff --git a/server/api/mailTransferReport/mailTransferReport.controller.js b/server/api/mailTransferReport/mailTransferReport.controller.js index 004d21c..dbec6ef 100644 --- a/server/api/mailTransferReport/mailTransferReport.controller.js +++ b/server/api/mailTransferReport/mailTransferReport.controller.js @@ -1 +1 @@ -const a444_0x1c16=['fields','sequelize','status','end','catch','options','limit','findOne','set','filter','like','error','../../components/parsers/qs','then','sendStatus','rawAttributes','describe','include','offset','params','update','Content-Range','filters','length','map','body','api','order','findAll','index','model','MailTransferReport','where','query','type','stack','intersection','attributes','count','merge','key','VIRTUAL','../../mysqldb','show','nolimit','create','keys','fieldName','destroy','includeAll','json','../../config/logger','name'];(function(_0x1bbadf,_0x1c1627){const _0x5cfdc0=function(_0x1c31f5){while(--_0x1c31f5){_0x1bbadf['push'](_0x1bbadf['shift']());}};_0x5cfdc0(++_0x1c1627);}(a444_0x1c16,0x74));const a444_0x5cfd=function(_0x1bbadf,_0x1c1627){_0x1bbadf=_0x1bbadf-0x0;let _0x5cfdc0=a444_0x1c16[_0x1bbadf];return _0x5cfdc0;};const _0x1fbe58=a444_0x5cfd;'use strict';const _=require('lodash'),qs=require(_0x1fbe58('0x2')),logger=require(_0x1fbe58('0x29'))(_0x1fbe58('0x10')),db=require(_0x1fbe58('0x20'))['db'],{Op}=require(_0x1fbe58('0x2c'));function respondWithResult(_0x1c31f5,_0x5c9237){return _0x5c9237=_0x5c9237||0xc8,function(_0x3ca20d){const _0x2e9a84=a444_0x5cfd;if(_0x3ca20d)return _0x1c31f5['status'](_0x5c9237)[_0x2e9a84('0x28')](_0x3ca20d);};}function respondWithFilteredResult(_0x32e848,_0x54c753){return function(_0x4dd086){const _0x1033b6=a444_0x5cfd;if(_0x4dd086){const _0x48f8dc=_0x4dd086[_0x1033b6('0x1c')],_0x30fd99=_0x54c753[_0x1033b6('0x8')];let _0x120bd9=_0x54c753[_0x1033b6('0x8')]+_0x54c753[_0x1033b6('0x31')],_0x5f0a34;return _0x120bd9>=_0x48f8dc?(_0x120bd9=_0x48f8dc,_0x5f0a34=0xc8):_0x5f0a34=0xce,_0x32e848[_0x1033b6('0x2d')](_0x5f0a34),_0x32e848[_0x1033b6('0x33')](_0x1033b6('0xb'),_0x30fd99+'-'+_0x120bd9+'/'+_0x48f8dc)[_0x1033b6('0x28')](_0x4dd086);}return null;};}function saveUpdates(_0x3109f0){return function(_0x137b53){const _0x378a02=a444_0x5cfd;if(_0x137b53)return _0x137b53['update'](_0x3109f0)[_0x378a02('0x3')](function(_0x347b3d){return _0x347b3d;});return null;};}function removeEntity(_0x1e31ca){return function(_0x4f9d50){const _0x448208=a444_0x5cfd;if(_0x4f9d50)return _0x4f9d50[_0x448208('0x26')]()['then'](function(){const _0x25699a=_0x448208;_0x1e31ca[_0x25699a('0x2d')](0xcc)[_0x25699a('0x2e')]();});};}function handleEntityNotFound(_0x721e2a){return function(_0xa1aae2){const _0x275241=a444_0x5cfd;return!_0xa1aae2&&_0x721e2a[_0x275241('0x4')](0x194),_0xa1aae2;};}function handleError(_0x3a754c,_0x9d4b8){return _0x9d4b8=_0x9d4b8||0x1f4,function(_0x4e8f3d){const _0x45566c=a444_0x5cfd;logger[_0x45566c('0x1')](_0x4e8f3d[_0x45566c('0x19')]),_0x4e8f3d[_0x45566c('0x2a')]&&delete _0x4e8f3d['name'],_0x3a754c[_0x45566c('0x2d')](_0x9d4b8)['send'](_0x4e8f3d);};}exports[_0x1fbe58('0x13')]=function(_0x343c87,_0x4f7154){const _0x354dd6=_0x1fbe58;let _0x4067de={};const _0x28c4e8={},_0x11bd75={'count':0x0,'rows':[]},_0x527e52=_['map'](db[_0x354dd6('0x15')][_0x354dd6('0x5')],function(_0x142621){const _0x4558c1=_0x354dd6;return{'name':_0x142621[_0x4558c1('0x25')],'type':_0x142621['type'][_0x4558c1('0x1e')]};});_0x28c4e8[_0x354dd6('0x14')]=_[_0x354dd6('0xe')](_0x527e52,_0x354dd6('0x2a')),_0x28c4e8[_0x354dd6('0x17')]=_[_0x354dd6('0x24')](_0x343c87['query']),_0x28c4e8['filters']=_[_0x354dd6('0x1a')](_0x28c4e8['model'],_0x28c4e8[_0x354dd6('0x17')]),_0x4067de[_0x354dd6('0x1b')]=_[_0x354dd6('0x1a')](_0x28c4e8['model'],qs[_0x354dd6('0x2b')](_0x343c87['query'][_0x354dd6('0x2b')])),_0x4067de[_0x354dd6('0x1b')]=_0x4067de['attributes'][_0x354dd6('0xd')]?_0x4067de[_0x354dd6('0x1b')]:_0x28c4e8[_0x354dd6('0x14')];typeof _0x343c87[_0x354dd6('0x17')][_0x354dd6('0x22')]==='undefined'&&(_0x4067de['limit']=qs['limit'](_0x343c87[_0x354dd6('0x17')][_0x354dd6('0x31')]),_0x4067de[_0x354dd6('0x8')]=qs['offset'](_0x343c87[_0x354dd6('0x17')]['offset']));_0x4067de[_0x354dd6('0x11')]=qs['sort'](_0x343c87[_0x354dd6('0x17')]['sort']),_0x4067de['where']=qs['filters'](_['pick'](_0x343c87['query'],_0x28c4e8[_0x354dd6('0xc')]),_0x527e52);_0x343c87[_0x354dd6('0x17')][_0x354dd6('0x34')]&&(_0x4067de[_0x354dd6('0x16')]=_['merge'](_0x4067de['where'],{[Op['or']]:_[_0x354dd6('0xe')](_0x527e52,function(_0x2440f5){const _0x22b513=_0x354dd6;if(_0x2440f5[_0x22b513('0x18')]!==_0x22b513('0x1f')){const _0x17b265={};return _0x17b265[_0x2440f5[_0x22b513('0x2a')]]={[Op[_0x22b513('0x0')]]:'%'+_0x343c87[_0x22b513('0x17')][_0x22b513('0x34')]+'%'},_0x17b265;}})}));_0x4067de=_['merge']({},_0x4067de,_0x343c87[_0x354dd6('0x30')]);const _0x534d05={'where':_0x4067de[_0x354dd6('0x16')]};return db[_0x354dd6('0x15')][_0x354dd6('0x1c')](_0x534d05)['then'](function(_0x2ebcf0){const _0x5eeb2a=_0x354dd6;return _0x11bd75[_0x5eeb2a('0x1c')]=_0x2ebcf0,_0x343c87[_0x5eeb2a('0x17')]['includeAll']&&(_0x4067de[_0x5eeb2a('0x7')]=[{'all':!![]}]),db[_0x5eeb2a('0x15')][_0x5eeb2a('0x12')](_0x4067de);})['then'](function(_0x54bbb2){return _0x11bd75['rows']=_0x54bbb2,_0x11bd75;})[_0x354dd6('0x3')](respondWithFilteredResult(_0x4f7154,_0x4067de))[_0x354dd6('0x2f')](handleError(_0x4f7154,null));},exports[_0x1fbe58('0x21')]=function(_0x416db3,_0x51df3d){const _0x385a71=_0x1fbe58;let _0x24a6df={'raw':!![],'where':{'id':_0x416db3['params']['id']}};const _0xb50525={};return _0xb50525['model']=_[_0x385a71('0x24')](db[_0x385a71('0x15')][_0x385a71('0x5')]),_0xb50525[_0x385a71('0x17')]=_['keys'](_0x416db3[_0x385a71('0x17')]),_0xb50525['filters']=_['intersection'](_0xb50525[_0x385a71('0x14')],_0xb50525[_0x385a71('0x17')]),_0x24a6df[_0x385a71('0x1b')]=_['intersection'](_0xb50525[_0x385a71('0x14')],qs['fields'](_0x416db3[_0x385a71('0x17')][_0x385a71('0x2b')])),_0x24a6df[_0x385a71('0x1b')]=_0x24a6df[_0x385a71('0x1b')]['length']?_0x24a6df[_0x385a71('0x1b')]:_0xb50525[_0x385a71('0x14')],_0x416db3[_0x385a71('0x17')][_0x385a71('0x27')]&&(_0x24a6df['include']=[{'all':!![]}]),_0x24a6df=_[_0x385a71('0x1d')]({},_0x24a6df,_0x416db3[_0x385a71('0x30')]),db['MailTransferReport'][_0x385a71('0x32')](_0x24a6df)[_0x385a71('0x3')](handleEntityNotFound(_0x51df3d,null))[_0x385a71('0x3')](respondWithResult(_0x51df3d,null))[_0x385a71('0x2f')](handleError(_0x51df3d,null));},exports[_0x1fbe58('0x23')]=function(_0x403c1e,_0x147981){const _0x1e074a=_0x1fbe58;return db[_0x1e074a('0x15')][_0x1e074a('0x23')](_0x403c1e[_0x1e074a('0xf')],{})[_0x1e074a('0x3')](respondWithResult(_0x147981,0xc9))['catch'](handleError(_0x147981,null));},exports[_0x1fbe58('0xa')]=function(_0x306458,_0x2f5471){const _0x4dd9b=_0x1fbe58;return _0x306458['body']['id']&&delete _0x306458[_0x4dd9b('0xf')]['id'],db[_0x4dd9b('0x15')][_0x4dd9b('0x32')]({'where':{'id':_0x306458[_0x4dd9b('0x9')]['id']}})[_0x4dd9b('0x3')](handleEntityNotFound(_0x2f5471,null))[_0x4dd9b('0x3')](saveUpdates(_0x306458['body'],null))[_0x4dd9b('0x3')](respondWithResult(_0x2f5471,null))['catch'](handleError(_0x2f5471,null));},exports[_0x1fbe58('0x26')]=function(_0x28a4fd,_0x5c32d1){const _0x4dff48=_0x1fbe58;return db['MailTransferReport'][_0x4dff48('0x32')]({'where':{'id':_0x28a4fd['params']['id']}})[_0x4dff48('0x3')](handleEntityNotFound(_0x5c32d1,null))[_0x4dff48('0x3')](removeEntity(_0x5c32d1,null))[_0x4dff48('0x2f')](handleError(_0x5c32d1,null));},exports[_0x1fbe58('0x6')]=function(_0x10523c,_0x5c41d9){const _0x54edfa=_0x1fbe58;return db[_0x54edfa('0x15')][_0x54edfa('0x6')]()[_0x54edfa('0x3')](respondWithResult(_0x5c41d9,null))[_0x54edfa('0x2f')](handleError(_0x5c41d9,null));}; \ No newline at end of file +const a534_0x2227=['findOne','body','destroy','limit','filters','api','type','fields','nolimit','merge','findAll','update','intersection','query','pick','catch','attributes','then','options','error','undefined','rawAttributes','include','count','status','describe','json','../../config/logger','includeAll','create','key','offset','order','send','params','name','lodash','stack','MailTransferReport','VIRTUAL','Content-Range','map','filter','sort','fieldName','keys','sendStatus','sequelize','model','set','where'];(function(_0x380751,_0x4f9591){const _0x22271d=function(_0x465db9){while(--_0x465db9){_0x380751['push'](_0x380751['shift']());}};_0x22271d(++_0x4f9591);}(a534_0x2227,0x152));const a534_0x465d=function(_0x380751,_0x4f9591){_0x380751=_0x380751-0xb0;let _0x22271d=a534_0x2227[_0x380751];return _0x22271d;};const a534_0x560916=a534_0x465d;'use strict';const _=require(a534_0x560916(0xb4)),qs=require('../../components/parsers/qs'),logger=require(a534_0x560916(0xde))(a534_0x560916(0xc8)),{db}=require('../../mysqldb'),{Op}=require(a534_0x560916(0xbf));function respondWithResult(_0x188ea4,_0x12e631){return _0x12e631=_0x12e631||0xc8,function(_0x4c6512){const _0x31a6f8=a534_0x465d;if(_0x4c6512)return _0x188ea4['status'](_0x12e631)[_0x31a6f8(0xdd)](_0x4c6512);};}function respondWithFilteredResult(_0x166602,_0x2f0bb4){return function(_0x97d12b){const _0x425c81=a534_0x465d;if(_0x97d12b){const _0x331419=_0x97d12b['count'],_0x4e8dcd=_0x2f0bb4[_0x425c81(0xe2)];let _0xaafa4a=_0x2f0bb4[_0x425c81(0xe2)]+_0x2f0bb4[_0x425c81(0xc6)],_0x3bd819;return _0xaafa4a>=_0x331419?(_0xaafa4a=_0x331419,_0x3bd819=0xc8):_0x3bd819=0xce,_0x166602[_0x425c81(0xdb)](_0x3bd819),_0x166602[_0x425c81(0xc1)](_0x425c81(0xb8),_0x4e8dcd+'-'+_0xaafa4a+'/'+_0x331419)[_0x425c81(0xdd)](_0x97d12b);}return null;};}function saveUpdates(_0x5a3fa4){return function(_0x4155f7){const _0x215485=a534_0x465d;if(_0x4155f7)return _0x4155f7['update'](_0x5a3fa4)[_0x215485(0xd4)](function(_0x31747a){return _0x31747a;});return null;};}function removeEntity(_0xaa9fd7){return function(_0x4070e9){const _0x3742fb=a534_0x465d;if(_0x4070e9)return _0x4070e9[_0x3742fb(0xc5)]()[_0x3742fb(0xd4)](function(){const _0x1ffabb=_0x3742fb;_0xaa9fd7[_0x1ffabb(0xdb)](0xcc)['end']();});};}function handleEntityNotFound(_0x52415c){return function(_0x2bb801){const _0x4f3379=a534_0x465d;return!_0x2bb801&&_0x52415c[_0x4f3379(0xbe)](0x194),_0x2bb801;};}function handleError(_0x2e7307,_0x40bbcb){return _0x40bbcb=_0x40bbcb||0x1f4,function(_0x24abc7){const _0x51b960=a534_0x465d;logger[_0x51b960(0xd6)](_0x24abc7[_0x51b960(0xb5)]),_0x24abc7[_0x51b960(0xb3)]&&delete _0x24abc7[_0x51b960(0xb3)],_0x2e7307[_0x51b960(0xdb)](_0x40bbcb)[_0x51b960(0xb1)](_0x24abc7);};}exports['index']=function(_0x599689,_0x54a9ff){const _0x574168=a534_0x560916;let _0x2eab47={};const _0x3f387a={},_0x43cb7e={'count':0x0,'rows':[]},_0xa83136=_[_0x574168(0xb9)](db[_0x574168(0xb6)][_0x574168(0xd8)],function(_0x5d1458){const _0x59d77f=_0x574168;return{'name':_0x5d1458[_0x59d77f(0xbc)],'type':_0x5d1458['type'][_0x59d77f(0xe1)]};});_0x3f387a[_0x574168(0xc0)]=_[_0x574168(0xb9)](_0xa83136,_0x574168(0xb3)),_0x3f387a[_0x574168(0xd0)]=_[_0x574168(0xbd)](_0x599689[_0x574168(0xd0)]),_0x3f387a[_0x574168(0xc7)]=_[_0x574168(0xcf)](_0x3f387a[_0x574168(0xc0)],_0x3f387a['query']),_0x2eab47['attributes']=_[_0x574168(0xcf)](_0x3f387a['model'],qs['fields'](_0x599689[_0x574168(0xd0)][_0x574168(0xca)])),_0x2eab47[_0x574168(0xd3)]=_0x2eab47[_0x574168(0xd3)]['length']?_0x2eab47[_0x574168(0xd3)]:_0x3f387a[_0x574168(0xc0)];typeof _0x599689[_0x574168(0xd0)][_0x574168(0xcb)]===_0x574168(0xd7)&&(_0x2eab47[_0x574168(0xc6)]=qs[_0x574168(0xc6)](_0x599689[_0x574168(0xd0)]['limit']),_0x2eab47[_0x574168(0xe2)]=qs['offset'](_0x599689[_0x574168(0xd0)][_0x574168(0xe2)]));_0x2eab47[_0x574168(0xb0)]=qs[_0x574168(0xbb)](_0x599689[_0x574168(0xd0)]['sort']),_0x2eab47[_0x574168(0xc2)]=qs['filters'](_[_0x574168(0xd1)](_0x599689[_0x574168(0xd0)],_0x3f387a[_0x574168(0xc7)]),_0xa83136);_0x599689['query'][_0x574168(0xba)]&&(_0x2eab47[_0x574168(0xc2)]=_[_0x574168(0xcc)](_0x2eab47[_0x574168(0xc2)],{[Op['or']]:_[_0x574168(0xb9)](_0xa83136,function(_0x3977c1){const _0x206598=_0x574168;if(_0x3977c1[_0x206598(0xc9)]!==_0x206598(0xb7)){const _0x4c320d={};return _0x4c320d[_0x3977c1[_0x206598(0xb3)]]={[Op['like']]:'%'+_0x599689['query'][_0x206598(0xba)]+'%'},_0x4c320d;}})}));_0x2eab47=_[_0x574168(0xcc)]({},_0x2eab47,_0x599689['options']);const _0x183a22={'where':_0x2eab47[_0x574168(0xc2)]};return db['MailTransferReport'][_0x574168(0xda)](_0x183a22)[_0x574168(0xd4)](function(_0x5a0979){const _0x4c57a8=_0x574168;return _0x43cb7e[_0x4c57a8(0xda)]=_0x5a0979,_0x599689[_0x4c57a8(0xd0)][_0x4c57a8(0xdf)]&&(_0x2eab47['include']=[{'all':!![]}]),db['MailTransferReport'][_0x4c57a8(0xcd)](_0x2eab47);})[_0x574168(0xd4)](function(_0x472abc){return _0x43cb7e['rows']=_0x472abc,_0x43cb7e;})[_0x574168(0xd4)](respondWithFilteredResult(_0x54a9ff,_0x2eab47))[_0x574168(0xd2)](handleError(_0x54a9ff,null));},exports['show']=function(_0x5b5f4e,_0x44a694){const _0x2991ff=a534_0x560916;let _0x20f44e={'raw':!![],'where':{'id':_0x5b5f4e[_0x2991ff(0xb2)]['id']}};const _0x32fcbe={};return _0x32fcbe[_0x2991ff(0xc0)]=_[_0x2991ff(0xbd)](db[_0x2991ff(0xb6)][_0x2991ff(0xd8)]),_0x32fcbe['query']=_[_0x2991ff(0xbd)](_0x5b5f4e[_0x2991ff(0xd0)]),_0x32fcbe[_0x2991ff(0xc7)]=_[_0x2991ff(0xcf)](_0x32fcbe['model'],_0x32fcbe[_0x2991ff(0xd0)]),_0x20f44e[_0x2991ff(0xd3)]=_[_0x2991ff(0xcf)](_0x32fcbe[_0x2991ff(0xc0)],qs[_0x2991ff(0xca)](_0x5b5f4e[_0x2991ff(0xd0)][_0x2991ff(0xca)])),_0x20f44e[_0x2991ff(0xd3)]=_0x20f44e[_0x2991ff(0xd3)]['length']?_0x20f44e[_0x2991ff(0xd3)]:_0x32fcbe['model'],_0x5b5f4e[_0x2991ff(0xd0)][_0x2991ff(0xdf)]&&(_0x20f44e[_0x2991ff(0xd9)]=[{'all':!![]}]),_0x20f44e=_[_0x2991ff(0xcc)]({},_0x20f44e,_0x5b5f4e[_0x2991ff(0xd5)]),db['MailTransferReport']['findOne'](_0x20f44e)[_0x2991ff(0xd4)](handleEntityNotFound(_0x44a694,null))['then'](respondWithResult(_0x44a694,null))[_0x2991ff(0xd2)](handleError(_0x44a694,null));},exports[a534_0x560916(0xe0)]=function(_0x132ac2,_0x4680d4){const _0x5be658=a534_0x560916;return db['MailTransferReport'][_0x5be658(0xe0)](_0x132ac2['body'],{})['then'](respondWithResult(_0x4680d4,0xc9))[_0x5be658(0xd2)](handleError(_0x4680d4,null));},exports[a534_0x560916(0xce)]=function(_0x249072,_0x59184a){const _0x556f0b=a534_0x560916;return _0x249072[_0x556f0b(0xc4)]['id']&&delete _0x249072[_0x556f0b(0xc4)]['id'],db[_0x556f0b(0xb6)][_0x556f0b(0xc3)]({'where':{'id':_0x249072[_0x556f0b(0xb2)]['id']}})[_0x556f0b(0xd4)](handleEntityNotFound(_0x59184a,null))['then'](saveUpdates(_0x249072[_0x556f0b(0xc4)],null))[_0x556f0b(0xd4)](respondWithResult(_0x59184a,null))['catch'](handleError(_0x59184a,null));},exports[a534_0x560916(0xc5)]=function(_0x1034b4,_0x138734){const _0x9d2c84=a534_0x560916;return db[_0x9d2c84(0xb6)][_0x9d2c84(0xc3)]({'where':{'id':_0x1034b4[_0x9d2c84(0xb2)]['id']}})[_0x9d2c84(0xd4)](handleEntityNotFound(_0x138734,null))[_0x9d2c84(0xd4)](removeEntity(_0x138734,null))[_0x9d2c84(0xd2)](handleError(_0x138734,null));},exports[a534_0x560916(0xdc)]=function(_0x178267,_0x189f35){const _0x1dea89=a534_0x560916;return db[_0x1dea89(0xb6)][_0x1dea89(0xdc)]()[_0x1dea89(0xd4)](respondWithResult(_0x189f35,null))[_0x1dea89(0xd2)](handleError(_0x189f35,null));}; \ No newline at end of file diff --git a/server/api/mailTransferReport/mailTransferReport.model.js b/server/api/mailTransferReport/mailTransferReport.model.js index 73c6d24..1fc313a 100644 --- a/server/api/mailTransferReport/mailTransferReport.model.js +++ b/server/api/mailTransferReport/mailTransferReport.model.js @@ -1 +1 @@ -const a445_0x38be=['MailTransferReport','uniqueid','define','exports','./mailTransferReport.attributes'];(function(_0x85261,_0x38bea1){const _0x5e7753=function(_0x4d8876){while(--_0x4d8876){_0x85261['push'](_0x85261['shift']());}};_0x5e7753(++_0x38bea1);}(a445_0x38be,0x8c));const a445_0x5e77=function(_0x85261,_0x38bea1){_0x85261=_0x85261-0x0;let _0x5e7753=a445_0x38be[_0x85261];return _0x5e7753;};const _0x4674ca=a445_0x5e77;'use strict';const attributes=require(_0x4674ca('0x4'));module[_0x4674ca('0x3')]=function(_0x4d8876){const _0x3ad471=_0x4674ca,_0x2f56ec=_0x4d8876[_0x3ad471('0x2')](_0x3ad471('0x0'),attributes,{'tableName':'report_mail_transfer','paranoid':![],'indexes':[{'name':_0x3ad471('0x1'),'fields':[_0x3ad471('0x1')]}],'timestamps':!![]});return _0x2f56ec;}; \ No newline at end of file +const a535_0xb523=['./mailTransferReport.attributes','exports','init','function'];(function(_0x314c2e,_0x393860){const _0xb5235f=function(_0xa0e3e5){while(--_0xa0e3e5){_0x314c2e['push'](_0x314c2e['shift']());}};_0xb5235f(++_0x393860);}(a535_0xb523,0x7d));const a535_0xa0e3=function(_0x314c2e,_0x393860){_0x314c2e=_0x314c2e-0x125;let _0xb5235f=a535_0xb523[_0x314c2e];return _0xb5235f;};const a535_0x2038cd=a535_0xa0e3;'use strict';const {Model}=require('sequelize'),{attributes}=require(a535_0x2038cd(0x128)),{options}=require('./mailTransferReport.options');class MailTransferReport extends Model{}function init(_0xea3cdf,_0x5c6e72){const _0x34c7aa=a535_0x2038cd,_0x389506=options(_0xea3cdf),_0x2484c6=typeof _0x5c6e72===_0x34c7aa(0x127)?_0x5c6e72(_0x389506):_0x389506;return MailTransferReport[_0x34c7aa(0x126)](attributes,_0x2484c6),MailTransferReport;}module[a535_0x2038cd(0x125)]['MailTransferReport']=MailTransferReport,module['exports']['init']=init; \ No newline at end of file diff --git a/server/api/mailTransferReport/mailTransferReport.options.js b/server/api/mailTransferReport/mailTransferReport.options.js new file mode 100644 index 0000000..9e01b07 --- /dev/null +++ b/server/api/mailTransferReport/mailTransferReport.options.js @@ -0,0 +1 @@ +var a536_0x5039=['options','exports','uniqueid','report_mail_transfer'];(function(_0x5b8a24,_0x17fed8){var _0x5039b5=function(_0x3f8ffd){while(--_0x3f8ffd){_0x5b8a24['push'](_0x5b8a24['shift']());}};_0x5039b5(++_0x17fed8);}(a536_0x5039,0x10d));var a536_0x3f8f=function(_0x5b8a24,_0x17fed8){_0x5b8a24=_0x5b8a24-0x14d;var _0x5039b5=a536_0x5039[_0x5b8a24];return _0x5039b5;};var a536_0x46fe61=a536_0x3f8f;function options(_0x1fbd42){var _0x43c3bb=a536_0x3f8f;return{'sequelize':_0x1fbd42,'tableName':_0x43c3bb(0x14f),'paranoid':![],'indexes':[{'name':_0x43c3bb(0x14e),'fields':[_0x43c3bb(0x14e)]}],'timestamps':!![]};}module[a536_0x46fe61(0x14d)][a536_0x46fe61(0x150)]=options; \ No newline at end of file diff --git a/server/api/memberReport/index.js b/server/api/memberReport/index.js index 2fd56e8..4974c32 100644 --- a/server/api/memberReport/index.js +++ b/server/api/memberReport/index.js @@ -1 +1 @@ -const a446_0x6269=['./memberReport.controller','../../components/auth/service','put','Router','index','/:id','create','get','update','describe','/describe','post','exports','isAuthenticated'];(function(_0x3dd968,_0x626971){const _0x8bbf9d=function(_0x5a93bd){while(--_0x5a93bd){_0x3dd968['push'](_0x3dd968['shift']());}};_0x8bbf9d(++_0x626971);}(a446_0x6269,0xef));const a446_0x8bbf=function(_0x3dd968,_0x626971){_0x3dd968=_0x3dd968-0x0;let _0x8bbf9d=a446_0x6269[_0x3dd968];return _0x8bbf9d;};const _0x203303=a446_0x8bbf;'use strict';const express=require('express'),router=express[_0x203303('0x2')](),auth=require(_0x203303('0x0')),controller=require(_0x203303('0xd'));router[_0x203303('0x6')]('/',auth[_0x203303('0xc')](),controller[_0x203303('0x3')]),router[_0x203303('0x6')](_0x203303('0x9'),auth[_0x203303('0xc')](),controller[_0x203303('0x8')]),router['get'](_0x203303('0x4'),auth[_0x203303('0xc')](),controller['show']),router[_0x203303('0xa')]('/',auth['isAuthenticated'](),controller[_0x203303('0x5')]),router[_0x203303('0x1')](_0x203303('0x4'),auth[_0x203303('0xc')](),controller[_0x203303('0x7')]),router['delete'](_0x203303('0x4'),auth[_0x203303('0xc')](),controller['destroy']),module[_0x203303('0xb')]=router; \ No newline at end of file +const a537_0x10cf=['Router','update','./memberReport.controller','index','show','get','destroy','/:id','isAuthenticated','../../components/auth/service','describe','post'];(function(_0x2cad54,_0x2dd1f2){const _0x10cfd8=function(_0x5404f8){while(--_0x5404f8){_0x2cad54['push'](_0x2cad54['shift']());}};_0x10cfd8(++_0x2dd1f2);}(a537_0x10cf,0x130));const a537_0x5404=function(_0x2cad54,_0x2dd1f2){_0x2cad54=_0x2cad54-0x16c;let _0x10cfd8=a537_0x10cf[_0x2cad54];return _0x10cfd8;};const a537_0x16e2c6=a537_0x5404;'use strict';const express=require('express'),router=express[a537_0x16e2c6(0x174)](),auth=require(a537_0x16e2c6(0x171)),controller=require(a537_0x16e2c6(0x176));router['get']('/',auth[a537_0x16e2c6(0x170)](),controller[a537_0x16e2c6(0x177)]),router[a537_0x16e2c6(0x16d)]('/describe',auth['isAuthenticated'](),controller[a537_0x16e2c6(0x172)]),router['get'](a537_0x16e2c6(0x16f),auth[a537_0x16e2c6(0x170)](),controller[a537_0x16e2c6(0x16c)]),router[a537_0x16e2c6(0x173)]('/',auth[a537_0x16e2c6(0x170)](),controller['create']),router['put'](a537_0x16e2c6(0x16f),auth[a537_0x16e2c6(0x170)](),controller[a537_0x16e2c6(0x175)]),router['delete'](a537_0x16e2c6(0x16f),auth[a537_0x16e2c6(0x170)](),controller[a537_0x16e2c6(0x16e)]),module['exports']=router; \ No newline at end of file diff --git a/server/api/memberReport/memberReport.attributes.js b/server/api/memberReport/memberReport.attributes.js index 7e8b69e..e25166c 100644 --- a/server/api/memberReport/memberReport.attributes.js +++ b/server/api/memberReport/memberReport.attributes.js @@ -1 +1 @@ -const a447_0x3b02=['talk:[inbound,\x20outbound],\x20pause:[reason]','sequelize','STRING','setDataValue','enterAt','LOGIN,\x20PAUSE,\x20TALKING','INTEGER','exitAt','talk:[dial\x20string]','DEFAULT\x20PAUSE','talk:[queue]','getDataValue','seconds','moment','DATE','talk:[start]'];(function(_0x2a8f99,_0x3b028c){const _0x3155e4=function(_0x3c83c3){while(--_0x3c83c3){_0x2a8f99['push'](_0x2a8f99['shift']());}};_0x3155e4(++_0x3b028c);}(a447_0x3b02,0x191));const a447_0x3155=function(_0x2a8f99,_0x3b028c){_0x2a8f99=_0x2a8f99-0x0;let _0x3155e4=a447_0x3b02[_0x2a8f99];return _0x3155e4;};const _0x23a171=a447_0x3155;'use strict';const Sequelize=require(_0x23a171('0x0')),moment=require(_0x23a171('0xc'));module['exports']={'channel':{'type':Sequelize[_0x23a171('0x1')]},'membername':{'type':Sequelize[_0x23a171('0x1')]},'interface':{'type':Sequelize[_0x23a171('0x1')]},'type':{'type':Sequelize[_0x23a171('0x1')],'defaultValue':_0x23a171('0x8'),'comment':_0x23a171('0x4')},'duration':{'type':Sequelize[_0x23a171('0x5')]},'enterAt':{'type':Sequelize[_0x23a171('0xd')]},'exitAt':{'type':Sequelize['DATE'],'set':function(_0x3c83c3){const _0x879366=_0x23a171,_0x31e317=moment(_0x3c83c3),_0x113fb5=moment(this[_0x879366('0xa')](_0x879366('0x3'))),_0x3fb2cb=_0x31e317['diff'](_0x113fb5,_0x879366('0xb'));this['setDataValue'](_0x879366('0x6'),_0x3c83c3),this[_0x879366('0x2')]('duration',_0x3fb2cb||null);}},'data1':{'type':Sequelize[_0x23a171('0x1')],'comment':_0x23a171('0xf')},'data2':{'type':Sequelize[_0x23a171('0x1')],'comment':_0x23a171('0xe')},'data3':{'type':Sequelize[_0x23a171('0x1')],'comment':'talk:[destination]'},'data4':{'type':Sequelize['STRING'],'comment':_0x23a171('0x7')},'data5':{'type':Sequelize[_0x23a171('0x1')],'comment':_0x23a171('0x9')},'role':{'type':Sequelize['STRING']},'internal':{'type':Sequelize['INTEGER']},'uniqueid':{'type':Sequelize[_0x23a171('0x1')]}}; \ No newline at end of file +const a538_0x56ae=['STRING','attributes','talk:[inbound,\x20outbound],\x20pause:[reason]','exitAt','duration','INTEGER','DATE','DEFAULT\x20PAUSE','talk:[start]','talk:[queue]','setDataValue','enterAt','exports','getDataValue','talk:[dial\x20string]'];(function(_0x13f4f7,_0x192714){const _0x56aeba=function(_0x1625b5){while(--_0x1625b5){_0x13f4f7['push'](_0x13f4f7['shift']());}};_0x56aeba(++_0x192714);}(a538_0x56ae,0x16c));const a538_0x1625=function(_0x13f4f7,_0x192714){_0x13f4f7=_0x13f4f7-0xfd;let _0x56aeba=a538_0x56ae[_0x13f4f7];return _0x56aeba;};const a538_0x4df41b=a538_0x1625;'use strict';const {DataTypes}=require('sequelize'),moment=require('moment'),attributes={'channel':{'type':DataTypes[a538_0x4df41b(0x108)]},'membername':{'type':DataTypes[a538_0x4df41b(0x108)]},'interface':{'type':DataTypes[a538_0x4df41b(0x108)]},'type':{'type':DataTypes[a538_0x4df41b(0x108)],'defaultValue':a538_0x4df41b(0x100),'comment':'LOGIN,\x20PAUSE,\x20TALKING'},'duration':{'type':DataTypes[a538_0x4df41b(0xfe)]},'enterAt':{'type':DataTypes[a538_0x4df41b(0xff)]},'exitAt':{'type':DataTypes[a538_0x4df41b(0xff)],'set':function(_0x163c6b){const _0x151829=a538_0x4df41b,_0x350e94=moment(_0x163c6b),_0x3e8569=moment(this[_0x151829(0x106)](_0x151829(0x104))),_0x4d3026=_0x350e94['diff'](_0x3e8569,'seconds');this[_0x151829(0x103)](_0x151829(0x10b),_0x163c6b),this[_0x151829(0x103)](_0x151829(0xfd),_0x4d3026||null);}},'data1':{'type':DataTypes['STRING'],'comment':a538_0x4df41b(0x10a)},'data2':{'type':DataTypes[a538_0x4df41b(0x108)],'comment':a538_0x4df41b(0x101)},'data3':{'type':DataTypes[a538_0x4df41b(0x108)],'comment':'talk:[destination]'},'data4':{'type':DataTypes['STRING'],'comment':a538_0x4df41b(0x107)},'data5':{'type':DataTypes['STRING'],'comment':a538_0x4df41b(0x102)},'role':{'type':DataTypes[a538_0x4df41b(0x108)]},'internal':{'type':DataTypes['INTEGER']},'uniqueid':{'type':DataTypes[a538_0x4df41b(0x108)]}};module[a538_0x4df41b(0x105)][a538_0x4df41b(0x109)]=attributes; \ No newline at end of file diff --git a/server/api/memberReport/memberReport.controller.js b/server/api/memberReport/memberReport.controller.js index 009b63b..8aec1d3 100644 --- a/server/api/memberReport/memberReport.controller.js +++ b/server/api/memberReport/memberReport.controller.js @@ -1 +1 @@ -const a448_0x4bb6=['../../mysqldb','send','VIRTUAL','intersection','filters','sendStatus','../../components/parsers/qs','keys','../../config/logger','then','length','include','findAll','status','includeAll','sort','where','api','rows','attributes','create','describe','pick','Content-Range','filter','merge','key','nolimit','model','name','findOne','catch','lodash','error','json','type','query','body','fields','options','MemberReport','map','sequelize','order','show','offset','limit','params','stack','set','undefined','count','update'];(function(_0x2c4f99,_0x4bb662){const _0x569aee=function(_0x1ecf18){while(--_0x1ecf18){_0x2c4f99['push'](_0x2c4f99['shift']());}};_0x569aee(++_0x4bb662);}(a448_0x4bb6,0xb8));const a448_0x569a=function(_0x2c4f99,_0x4bb662){_0x2c4f99=_0x2c4f99-0x0;let _0x569aee=a448_0x4bb6[_0x2c4f99];return _0x569aee;};const _0x4cab65=a448_0x569a;'use strict';const _=require(_0x4cab65('0x7')),qs=require(_0x4cab65('0x22')),logger=require(_0x4cab65('0x24'))(_0x4cab65('0x2d')),db=require(_0x4cab65('0x1c'))['db'],{Op}=require(_0x4cab65('0x11'));function respondWithResult(_0x1ecf18,_0x308a43){return _0x308a43=_0x308a43||0xc8,function(_0x4e6d28){const _0x5b5772=a448_0x569a;if(_0x4e6d28)return _0x1ecf18[_0x5b5772('0x29')](_0x308a43)[_0x5b5772('0x9')](_0x4e6d28);};}function respondWithFilteredResult(_0x10b088,_0x41d60e){return function(_0x24a385){const _0x6eb7d=a448_0x569a;if(_0x24a385){const _0xab3748=_0x24a385[_0x6eb7d('0x1a')],_0x5b8ab2=_0x41d60e['offset'];let _0x4fe642=_0x41d60e[_0x6eb7d('0x14')]+_0x41d60e[_0x6eb7d('0x15')],_0x2475a4;return _0x4fe642>=_0xab3748?(_0x4fe642=_0xab3748,_0x2475a4=0xc8):_0x2475a4=0xce,_0x10b088[_0x6eb7d('0x29')](_0x2475a4),_0x10b088[_0x6eb7d('0x18')](_0x6eb7d('0x33'),_0x5b8ab2+'-'+_0x4fe642+'/'+_0xab3748)[_0x6eb7d('0x9')](_0x24a385);}return null;};}function saveUpdates(_0x75e07d){return function(_0x47aae7){const _0x58c89f=a448_0x569a;if(_0x47aae7)return _0x47aae7['update'](_0x75e07d)[_0x58c89f('0x25')](function(_0x453021){return _0x453021;});return null;};}function removeEntity(_0x240e4e){return function(_0x21369f){if(_0x21369f)return _0x21369f['destroy']()['then'](function(){_0x240e4e['status'](0xcc)['end']();});};}function handleEntityNotFound(_0x300ed6){return function(_0x2990b0){const _0x4d695d=a448_0x569a;return!_0x2990b0&&_0x300ed6[_0x4d695d('0x21')](0x194),_0x2990b0;};}function handleError(_0x1131c6,_0x1782e9){return _0x1782e9=_0x1782e9||0x1f4,function(_0x12289f){const _0x34cc1d=a448_0x569a;logger[_0x34cc1d('0x8')](_0x12289f[_0x34cc1d('0x17')]),_0x12289f[_0x34cc1d('0x4')]&&delete _0x12289f['name'],_0x1131c6[_0x34cc1d('0x29')](_0x1782e9)[_0x34cc1d('0x1d')](_0x12289f);};}exports['index']=function(_0x5695e9,_0x485c59){const _0x3f081a=_0x4cab65;let _0x2eeecf={};const _0x1261cf={},_0x8fa58b={'count':0x0,'rows':[]},_0x1985f6=_[_0x3f081a('0x10')](db['MemberReport']['rawAttributes'],function(_0x3293e8){const _0x7222e8=_0x3f081a;return{'name':_0x3293e8['fieldName'],'type':_0x3293e8[_0x7222e8('0xa')][_0x7222e8('0x1')]};});_0x1261cf[_0x3f081a('0x3')]=_[_0x3f081a('0x10')](_0x1985f6,_0x3f081a('0x4')),_0x1261cf[_0x3f081a('0xb')]=_[_0x3f081a('0x23')](_0x5695e9['query']),_0x1261cf[_0x3f081a('0x20')]=_[_0x3f081a('0x1f')](_0x1261cf[_0x3f081a('0x3')],_0x1261cf['query']),_0x2eeecf['attributes']=_[_0x3f081a('0x1f')](_0x1261cf[_0x3f081a('0x3')],qs[_0x3f081a('0xd')](_0x5695e9[_0x3f081a('0xb')][_0x3f081a('0xd')])),_0x2eeecf[_0x3f081a('0x2f')]=_0x2eeecf[_0x3f081a('0x2f')][_0x3f081a('0x26')]?_0x2eeecf[_0x3f081a('0x2f')]:_0x1261cf[_0x3f081a('0x3')];typeof _0x5695e9[_0x3f081a('0xb')][_0x3f081a('0x2')]===_0x3f081a('0x19')&&(_0x2eeecf[_0x3f081a('0x15')]=qs[_0x3f081a('0x15')](_0x5695e9[_0x3f081a('0xb')]['limit']),_0x2eeecf[_0x3f081a('0x14')]=qs['offset'](_0x5695e9[_0x3f081a('0xb')][_0x3f081a('0x14')]));_0x2eeecf[_0x3f081a('0x12')]=qs[_0x3f081a('0x2b')](_0x5695e9[_0x3f081a('0xb')]['sort']),_0x2eeecf[_0x3f081a('0x2c')]=qs[_0x3f081a('0x20')](_[_0x3f081a('0x32')](_0x5695e9['query'],_0x1261cf['filters']),_0x1985f6);_0x5695e9[_0x3f081a('0xb')][_0x3f081a('0x34')]&&(_0x2eeecf[_0x3f081a('0x2c')]=_[_0x3f081a('0x0')](_0x2eeecf['where'],{[Op['or']]:_[_0x3f081a('0x10')](_0x1985f6,function(_0x34dc37){const _0x29a13e=_0x3f081a;if(_0x34dc37[_0x29a13e('0xa')]!==_0x29a13e('0x1e')){const _0x57c3a5={};return _0x57c3a5[_0x34dc37[_0x29a13e('0x4')]]={[Op['like']]:'%'+_0x5695e9[_0x29a13e('0xb')][_0x29a13e('0x34')]+'%'},_0x57c3a5;}})}));_0x2eeecf=_[_0x3f081a('0x0')]({},_0x2eeecf,_0x5695e9[_0x3f081a('0xe')]);const _0x4d9f98={'where':_0x2eeecf[_0x3f081a('0x2c')]};return db['MemberReport'][_0x3f081a('0x1a')](_0x4d9f98)['then'](function(_0x3785c7){const _0x47a7a8=_0x3f081a;return _0x8fa58b[_0x47a7a8('0x1a')]=_0x3785c7,_0x5695e9['query'][_0x47a7a8('0x2a')]&&(_0x2eeecf[_0x47a7a8('0x27')]=[{'all':!![]}]),db[_0x47a7a8('0xf')][_0x47a7a8('0x28')](_0x2eeecf);})[_0x3f081a('0x25')](function(_0x552881){const _0x622718=_0x3f081a;return _0x8fa58b[_0x622718('0x2e')]=_0x552881,_0x8fa58b;})[_0x3f081a('0x25')](respondWithFilteredResult(_0x485c59,_0x2eeecf))['catch'](handleError(_0x485c59,null));},exports[_0x4cab65('0x13')]=function(_0x327c2d,_0x1766c6){const _0x145f5c=_0x4cab65;let _0x4326a5={'raw':!![],'where':{'id':_0x327c2d[_0x145f5c('0x16')]['id']}};const _0x30fbf6={};return _0x30fbf6[_0x145f5c('0x3')]=_[_0x145f5c('0x23')](db[_0x145f5c('0xf')]['rawAttributes']),_0x30fbf6[_0x145f5c('0xb')]=_[_0x145f5c('0x23')](_0x327c2d['query']),_0x30fbf6[_0x145f5c('0x20')]=_[_0x145f5c('0x1f')](_0x30fbf6['model'],_0x30fbf6[_0x145f5c('0xb')]),_0x4326a5[_0x145f5c('0x2f')]=_[_0x145f5c('0x1f')](_0x30fbf6[_0x145f5c('0x3')],qs[_0x145f5c('0xd')](_0x327c2d[_0x145f5c('0xb')][_0x145f5c('0xd')])),_0x4326a5['attributes']=_0x4326a5['attributes']['length']?_0x4326a5[_0x145f5c('0x2f')]:_0x30fbf6['model'],_0x327c2d[_0x145f5c('0xb')]['includeAll']&&(_0x4326a5[_0x145f5c('0x27')]=[{'all':!![]}]),_0x4326a5=_[_0x145f5c('0x0')]({},_0x4326a5,_0x327c2d[_0x145f5c('0xe')]),db[_0x145f5c('0xf')][_0x145f5c('0x5')](_0x4326a5)[_0x145f5c('0x25')](handleEntityNotFound(_0x1766c6,null))['then'](respondWithResult(_0x1766c6,null))[_0x145f5c('0x6')](handleError(_0x1766c6,null));},exports[_0x4cab65('0x30')]=function(_0xd9b55d,_0x467308){const _0x338995=_0x4cab65;return db[_0x338995('0xf')][_0x338995('0x30')](_0xd9b55d[_0x338995('0xc')],{})[_0x338995('0x25')](respondWithResult(_0x467308,0xc9))['catch'](handleError(_0x467308,null));},exports[_0x4cab65('0x1b')]=function(_0x286ff9,_0x37d3b){const _0x1f3f97=_0x4cab65;return _0x286ff9['body']['id']&&delete _0x286ff9[_0x1f3f97('0xc')]['id'],db['MemberReport'][_0x1f3f97('0x5')]({'where':{'id':_0x286ff9[_0x1f3f97('0x16')]['id']}})[_0x1f3f97('0x25')](handleEntityNotFound(_0x37d3b,null))[_0x1f3f97('0x25')](saveUpdates(_0x286ff9[_0x1f3f97('0xc')],null))[_0x1f3f97('0x25')](respondWithResult(_0x37d3b,null))['catch'](handleError(_0x37d3b,null));},exports['destroy']=function(_0x51a1d1,_0x36d18a){const _0x584b77=_0x4cab65;return db['MemberReport'][_0x584b77('0x5')]({'where':{'id':_0x51a1d1[_0x584b77('0x16')]['id']}})['then'](handleEntityNotFound(_0x36d18a,null))[_0x584b77('0x25')](removeEntity(_0x36d18a,null))['catch'](handleError(_0x36d18a,null));},exports[_0x4cab65('0x31')]=function(_0x4f3106,_0x2ae476){const _0x211bcf=_0x4cab65;return db[_0x211bcf('0xf')][_0x211bcf('0x31')]()[_0x211bcf('0x25')](respondWithResult(_0x2ae476,null))['catch'](handleError(_0x2ae476,null));}; \ No newline at end of file +const a539_0x5485=['like','offset','../../mysqldb','set','order','../../components/parsers/qs','../../config/logger','findOne','params','map','error','api','show','filters','model','options','type','sendStatus','undefined','filter','keys','limit','sequelize','nolimit','name','include','merge','index','fields','where','rows','pick','then','attributes','status','length','MemberReport','findAll','body','destroy','Content-Range','catch','json','intersection','includeAll','update','count','query','create','describe'];(function(_0x182348,_0x206edf){const _0x548540=function(_0x49f393){while(--_0x49f393){_0x182348['push'](_0x182348['shift']());}};_0x548540(++_0x206edf);}(a539_0x5485,0xa0));const a539_0x49f3=function(_0x182348,_0x206edf){_0x182348=_0x182348-0x163;let _0x548540=a539_0x5485[_0x182348];return _0x548540;};const a539_0x8b318=a539_0x49f3;'use strict';const _=require('lodash'),qs=require(a539_0x8b318(0x190)),logger=require(a539_0x8b318(0x191))(a539_0x8b318(0x164)),{db}=require(a539_0x8b318(0x18d)),{Op}=require(a539_0x8b318(0x16f));function respondWithResult(_0x3db35a,_0x3d518a){return _0x3d518a=_0x3d518a||0xc8,function(_0x4eb9b4){const _0x1c5a33=a539_0x49f3;if(_0x4eb9b4)return _0x3db35a[_0x1c5a33(0x17b)](_0x3d518a)[_0x1c5a33(0x183)](_0x4eb9b4);};}function respondWithFilteredResult(_0x23e8a7,_0x47de41){return function(_0x47818d){const _0xc6b6a=a539_0x49f3;if(_0x47818d){const _0x405889=_0x47818d[_0xc6b6a(0x187)],_0x36fbcd=_0x47de41[_0xc6b6a(0x18c)];let _0x3c24ea=_0x47de41['offset']+_0x47de41[_0xc6b6a(0x16e)],_0x6506a3;return _0x3c24ea>=_0x405889?(_0x3c24ea=_0x405889,_0x6506a3=0xc8):_0x6506a3=0xce,_0x23e8a7[_0xc6b6a(0x17b)](_0x6506a3),_0x23e8a7[_0xc6b6a(0x18e)](_0xc6b6a(0x181),_0x36fbcd+'-'+_0x3c24ea+'/'+_0x405889)[_0xc6b6a(0x183)](_0x47818d);}return null;};}function saveUpdates(_0x51e0ec){return function(_0x1453a6){const _0x18db3f=a539_0x49f3;if(_0x1453a6)return _0x1453a6[_0x18db3f(0x186)](_0x51e0ec)[_0x18db3f(0x179)](function(_0x40ee04){return _0x40ee04;});return null;};}function removeEntity(_0x3f70b8){return function(_0x74972){const _0xc56f93=a539_0x49f3;if(_0x74972)return _0x74972[_0xc56f93(0x180)]()[_0xc56f93(0x179)](function(){const _0x42f9e6=_0xc56f93;_0x3f70b8[_0x42f9e6(0x17b)](0xcc)['end']();});};}function handleEntityNotFound(_0x13b208){return function(_0x1721f2){const _0xb5c434=a539_0x49f3;return!_0x1721f2&&_0x13b208[_0xb5c434(0x16a)](0x194),_0x1721f2;};}function handleError(_0x51254f,_0xc09e9b){return _0xc09e9b=_0xc09e9b||0x1f4,function(_0x49cd89){const _0x26e9e0=a539_0x49f3;logger[_0x26e9e0(0x163)](_0x49cd89['stack']),_0x49cd89['name']&&delete _0x49cd89[_0x26e9e0(0x171)],_0x51254f['status'](_0xc09e9b)['send'](_0x49cd89);};}exports[a539_0x8b318(0x174)]=function(_0x6f6024,_0x4a2b16){const _0x441c6b=a539_0x8b318;let _0x28906d={};const _0x1f90e0={},_0x28c971={'count':0x0,'rows':[]},_0x39f945=_['map'](db[_0x441c6b(0x17d)]['rawAttributes'],function(_0x328fd4){const _0x59c391=_0x441c6b;return{'name':_0x328fd4['fieldName'],'type':_0x328fd4[_0x59c391(0x169)]['key']};});_0x1f90e0['model']=_[_0x441c6b(0x194)](_0x39f945,_0x441c6b(0x171)),_0x1f90e0[_0x441c6b(0x188)]=_[_0x441c6b(0x16d)](_0x6f6024[_0x441c6b(0x188)]),_0x1f90e0['filters']=_[_0x441c6b(0x184)](_0x1f90e0[_0x441c6b(0x167)],_0x1f90e0['query']),_0x28906d['attributes']=_[_0x441c6b(0x184)](_0x1f90e0[_0x441c6b(0x167)],qs[_0x441c6b(0x175)](_0x6f6024['query'][_0x441c6b(0x175)])),_0x28906d[_0x441c6b(0x17a)]=_0x28906d['attributes'][_0x441c6b(0x17c)]?_0x28906d[_0x441c6b(0x17a)]:_0x1f90e0[_0x441c6b(0x167)];typeof _0x6f6024['query'][_0x441c6b(0x170)]===_0x441c6b(0x16b)&&(_0x28906d['limit']=qs['limit'](_0x6f6024[_0x441c6b(0x188)][_0x441c6b(0x16e)]),_0x28906d[_0x441c6b(0x18c)]=qs['offset'](_0x6f6024['query']['offset']));_0x28906d[_0x441c6b(0x18f)]=qs['sort'](_0x6f6024[_0x441c6b(0x188)]['sort']),_0x28906d[_0x441c6b(0x176)]=qs[_0x441c6b(0x166)](_[_0x441c6b(0x178)](_0x6f6024[_0x441c6b(0x188)],_0x1f90e0[_0x441c6b(0x166)]),_0x39f945);_0x6f6024['query'][_0x441c6b(0x16c)]&&(_0x28906d[_0x441c6b(0x176)]=_[_0x441c6b(0x173)](_0x28906d[_0x441c6b(0x176)],{[Op['or']]:_[_0x441c6b(0x194)](_0x39f945,function(_0x36b198){const _0x5202eb=_0x441c6b;if(_0x36b198[_0x5202eb(0x169)]!=='VIRTUAL'){const _0x2544ed={};return _0x2544ed[_0x36b198[_0x5202eb(0x171)]]={[Op[_0x5202eb(0x18b)]]:'%'+_0x6f6024[_0x5202eb(0x188)][_0x5202eb(0x16c)]+'%'},_0x2544ed;}})}));_0x28906d=_[_0x441c6b(0x173)]({},_0x28906d,_0x6f6024[_0x441c6b(0x168)]);const _0x5bc5a7={'where':_0x28906d[_0x441c6b(0x176)]};return db[_0x441c6b(0x17d)]['count'](_0x5bc5a7)[_0x441c6b(0x179)](function(_0x55e4db){const _0x3a1f5c=_0x441c6b;return _0x28c971['count']=_0x55e4db,_0x6f6024['query'][_0x3a1f5c(0x185)]&&(_0x28906d['include']=[{'all':!![]}]),db[_0x3a1f5c(0x17d)][_0x3a1f5c(0x17e)](_0x28906d);})[_0x441c6b(0x179)](function(_0x2fcd28){const _0xf0dd02=_0x441c6b;return _0x28c971[_0xf0dd02(0x177)]=_0x2fcd28,_0x28c971;})['then'](respondWithFilteredResult(_0x4a2b16,_0x28906d))['catch'](handleError(_0x4a2b16,null));},exports[a539_0x8b318(0x165)]=function(_0x2ccc63,_0x500b43){const _0x46ba15=a539_0x8b318;let _0x13e5f2={'raw':!![],'where':{'id':_0x2ccc63[_0x46ba15(0x193)]['id']}};const _0x545e1d={};return _0x545e1d['model']=_[_0x46ba15(0x16d)](db['MemberReport']['rawAttributes']),_0x545e1d[_0x46ba15(0x188)]=_['keys'](_0x2ccc63[_0x46ba15(0x188)]),_0x545e1d['filters']=_[_0x46ba15(0x184)](_0x545e1d['model'],_0x545e1d['query']),_0x13e5f2[_0x46ba15(0x17a)]=_[_0x46ba15(0x184)](_0x545e1d[_0x46ba15(0x167)],qs[_0x46ba15(0x175)](_0x2ccc63[_0x46ba15(0x188)]['fields'])),_0x13e5f2[_0x46ba15(0x17a)]=_0x13e5f2[_0x46ba15(0x17a)][_0x46ba15(0x17c)]?_0x13e5f2['attributes']:_0x545e1d[_0x46ba15(0x167)],_0x2ccc63['query'][_0x46ba15(0x185)]&&(_0x13e5f2[_0x46ba15(0x172)]=[{'all':!![]}]),_0x13e5f2=_[_0x46ba15(0x173)]({},_0x13e5f2,_0x2ccc63[_0x46ba15(0x168)]),db['MemberReport'][_0x46ba15(0x192)](_0x13e5f2)['then'](handleEntityNotFound(_0x500b43,null))['then'](respondWithResult(_0x500b43,null))[_0x46ba15(0x182)](handleError(_0x500b43,null));},exports['create']=function(_0x1385fa,_0x4097ed){const _0x49993e=a539_0x8b318;return db[_0x49993e(0x17d)][_0x49993e(0x189)](_0x1385fa[_0x49993e(0x17f)],{})[_0x49993e(0x179)](respondWithResult(_0x4097ed,0xc9))['catch'](handleError(_0x4097ed,null));},exports[a539_0x8b318(0x186)]=function(_0x3319ee,_0x5904d5){const _0x544616=a539_0x8b318;return _0x3319ee[_0x544616(0x17f)]['id']&&delete _0x3319ee[_0x544616(0x17f)]['id'],db[_0x544616(0x17d)][_0x544616(0x192)]({'where':{'id':_0x3319ee[_0x544616(0x193)]['id']}})[_0x544616(0x179)](handleEntityNotFound(_0x5904d5,null))[_0x544616(0x179)](saveUpdates(_0x3319ee['body'],null))[_0x544616(0x179)](respondWithResult(_0x5904d5,null))[_0x544616(0x182)](handleError(_0x5904d5,null));},exports[a539_0x8b318(0x180)]=function(_0x62c65f,_0x200982){const _0x57c9c4=a539_0x8b318;return db[_0x57c9c4(0x17d)][_0x57c9c4(0x192)]({'where':{'id':_0x62c65f[_0x57c9c4(0x193)]['id']}})[_0x57c9c4(0x179)](handleEntityNotFound(_0x200982,null))[_0x57c9c4(0x179)](removeEntity(_0x200982,null))['catch'](handleError(_0x200982,null));},exports[a539_0x8b318(0x18a)]=function(_0x4985ab,_0x3cfbe7){const _0x104482=a539_0x8b318;return db['MemberReport'][_0x104482(0x18a)]()[_0x104482(0x179)](respondWithResult(_0x3cfbe7,null))[_0x104482(0x182)](handleError(_0x3cfbe7,null));}; \ No newline at end of file diff --git a/server/api/memberReport/memberReport.model.js b/server/api/memberReport/memberReport.model.js index 2674bef..2d9ddb0 100644 --- a/server/api/memberReport/memberReport.model.js +++ b/server/api/memberReport/memberReport.model.js @@ -1 +1 @@ -const a449_0x257a=['report_member','MemberReport','membername_interface','membername','exports','interface','define','./memberReport.attributes'];(function(_0x1322a1,_0x257abf){const _0x2c2745=function(_0x41c5e0){while(--_0x41c5e0){_0x1322a1['push'](_0x1322a1['shift']());}};_0x2c2745(++_0x257abf);}(a449_0x257a,0x1d0));const a449_0x2c27=function(_0x1322a1,_0x257abf){_0x1322a1=_0x1322a1-0x0;let _0x2c2745=a449_0x257a[_0x1322a1];return _0x2c2745;};const _0x3d317a=a449_0x2c27;'use strict';const attributes=require(_0x3d317a('0x7'));module[_0x3d317a('0x4')]=function(_0x41c5e0){const _0x109dc8=_0x3d317a,_0x2cc649=_0x41c5e0[_0x109dc8('0x6')](_0x109dc8('0x1'),attributes,{'tableName':_0x109dc8('0x0'),'paranoid':![],'indexes':[{'name':_0x109dc8('0x2'),'fields':[_0x109dc8('0x3'),_0x109dc8('0x5')]}],'timestamps':!![]});return _0x2cc649;}; \ No newline at end of file +const a540_0x3e3e=['sequelize','function','MemberReport','init','./memberReport.options','./memberReport.attributes','exports'];(function(_0x27a996,_0x22d94b){const _0x3e3e52=function(_0x2fa3d7){while(--_0x2fa3d7){_0x27a996['push'](_0x27a996['shift']());}};_0x3e3e52(++_0x22d94b);}(a540_0x3e3e,0x127));const a540_0x2fa3=function(_0x27a996,_0x22d94b){_0x27a996=_0x27a996-0x1d0;let _0x3e3e52=a540_0x3e3e[_0x27a996];return _0x3e3e52;};const a540_0x49b184=a540_0x2fa3;'use strict';const {Model}=require(a540_0x49b184(0x1d6)),{attributes}=require(a540_0x49b184(0x1d4)),{options}=require(a540_0x49b184(0x1d3));class MemberReport extends Model{}function init(_0xa157cb,_0x4169e7){const _0x972f9f=a540_0x49b184,_0x5a9af8=options(_0xa157cb),_0x25d2c4=typeof _0x4169e7===_0x972f9f(0x1d0)?_0x4169e7(_0x5a9af8):_0x5a9af8;return MemberReport['init'](attributes,_0x25d2c4),MemberReport;}module[a540_0x49b184(0x1d5)][a540_0x49b184(0x1d1)]=MemberReport,module[a540_0x49b184(0x1d5)][a540_0x49b184(0x1d2)]=init; \ No newline at end of file diff --git a/server/api/memberReport/memberReport.options.js b/server/api/memberReport/memberReport.options.js new file mode 100644 index 0000000..2e5c972 --- /dev/null +++ b/server/api/memberReport/memberReport.options.js @@ -0,0 +1 @@ +var a541_0x4a04=['exports','options','membername_interface','interface','report_member'];(function(_0x24707c,_0x197890){var _0x4a04be=function(_0x3e11c6){while(--_0x3e11c6){_0x24707c['push'](_0x24707c['shift']());}};_0x4a04be(++_0x197890);}(a541_0x4a04,0x147));var a541_0x3e11=function(_0x24707c,_0x197890){_0x24707c=_0x24707c-0x129;var _0x4a04be=a541_0x4a04[_0x24707c];return _0x4a04be;};var a541_0x5b09b8=a541_0x3e11;function options(_0x2ca075){var _0xbc010f=a541_0x3e11;return{'sequelize':_0x2ca075,'tableName':_0xbc010f(0x12b),'paranoid':![],'indexes':[{'name':_0xbc010f(0x129),'fields':['membername',_0xbc010f(0x12a)]}],'timestamps':!![]};}module[a541_0x5b09b8(0x12c)][a541_0x5b09b8(0x12d)]=options; \ No newline at end of file diff --git a/server/api/memberReport/memberReport.rpc.js b/server/api/memberReport/memberReport.rpc.js index 87f0c65..aa535ca 100644 --- a/server/api/memberReport/memberReport.rpc.js +++ b/server/api/memberReport/memberReport.rpc.js @@ -1 +1 @@ -const a450_0x2f2d=['GetMemberReport','model','include','error','raw','limit','map','debug','stringify','attributes','update','UpdateMemberReport','options','then','message','body','CreateMemberReport','rpc','lodash','MemberReport','../../mysqldb','findAll','where','catch'];(function(_0x3e446e,_0x2f2dba){const _0x270a95=function(_0x40f6a3){while(--_0x40f6a3){_0x3e446e['push'](_0x3e446e['shift']());}};_0x270a95(++_0x2f2dba);}(a450_0x2f2d,0x83));const a450_0x270a=function(_0x3e446e,_0x2f2dba){_0x3e446e=_0x3e446e-0x0;let _0x270a95=a450_0x2f2d[_0x3e446e];return _0x270a95;};const _0x261d8e=a450_0x270a;'use strict';const _=require(_0x261d8e('0x7')),db=require(_0x261d8e('0x9'))['db'],logger=require('../../config/logger')(_0x261d8e('0x6'));exports[_0x261d8e('0xd')]=function(_0x40f6a3){const _0x21495d=this;return new Promise(function(_0x36642d,_0x1e1d5f){const _0x13730f=a450_0x270a;return db[_0x13730f('0x8')][_0x13730f('0xa')]({'raw':_0x40f6a3[_0x13730f('0x1')]?_0x40f6a3['options'][_0x13730f('0x11')]===undefined?!![]:![]:!![],'where':_0x40f6a3[_0x13730f('0x1')]?_0x40f6a3['options'][_0x13730f('0xb')]||null:null,'attributes':_0x40f6a3[_0x13730f('0x1')]?_0x40f6a3[_0x13730f('0x1')][_0x13730f('0x16')]||null:null,'limit':_0x40f6a3[_0x13730f('0x1')]?_0x40f6a3['options'][_0x13730f('0x12')]||null:null,'include':_0x40f6a3['options']?_0x40f6a3[_0x13730f('0x1')][_0x13730f('0xf')]?_[_0x13730f('0x13')](_0x40f6a3[_0x13730f('0x1')]['include'],function(_0x216a44){const _0x426540=_0x13730f;return{'model':db[_0x216a44[_0x426540('0xe')]],'as':_0x216a44['as'],'attributes':_0x216a44[_0x426540('0x16')],'include':_0x216a44[_0x426540('0xf')]?_[_0x426540('0x13')](_0x216a44['include'],function(_0x1f7e9b){const _0x308d2f=_0x426540;return{'model':db[_0x1f7e9b[_0x308d2f('0xe')]],'as':_0x1f7e9b['as'],'attributes':_0x1f7e9b[_0x308d2f('0x16')],'include':_0x1f7e9b['include']?_['map'](_0x1f7e9b['include'],function(_0x5f3266){const _0x14f737=_0x308d2f;return{'model':db[_0x5f3266[_0x14f737('0xe')]],'as':_0x5f3266['as'],'attributes':_0x5f3266[_0x14f737('0x16')]};}):[]};}):[]};}):[]:[]})[_0x13730f('0x2')](function(_0x3ea264){const _0x5614ba=_0x13730f;logger['info'](_0x5614ba('0xd'),_0x40f6a3),logger[_0x5614ba('0x14')](_0x5614ba('0xd'),_0x40f6a3,JSON['stringify'](_0x3ea264)),_0x36642d(_0x3ea264);})[_0x13730f('0xc')](function(_0x52f442){const _0x530b67=_0x13730f;logger[_0x530b67('0x10')]('GetMemberReport',_0x52f442[_0x530b67('0x3')],_0x40f6a3),_0x1e1d5f(_0x21495d['error'](0x1f4,_0x52f442[_0x530b67('0x3')]));});});},exports[_0x261d8e('0x5')]=function(_0x506a41){const _0x4bc086=this;return new Promise(function(_0x2ffc25,_0x37dced){const _0x554bce=a450_0x270a;return db[_0x554bce('0x8')]['create'](_0x506a41['body'],{'raw':_0x506a41[_0x554bce('0x1')]?_0x506a41[_0x554bce('0x1')][_0x554bce('0x11')]===undefined?!![]:![]:!![]})['then'](function(_0x25afa0){const _0x1f7fc5=_0x554bce;logger['info'](_0x1f7fc5('0x5'),_0x506a41),logger[_0x1f7fc5('0x14')]('CreateMemberReport',_0x506a41,JSON[_0x1f7fc5('0x15')](_0x25afa0)),_0x2ffc25(_0x25afa0);})[_0x554bce('0xc')](function(_0x2b9d46){const _0x1e5b52=_0x554bce;logger[_0x1e5b52('0x10')]('CreateMemberReport',_0x2b9d46[_0x1e5b52('0x3')],_0x506a41),_0x37dced(_0x4bc086[_0x1e5b52('0x10')](0x1f4,_0x2b9d46['message']));});});},exports['UpdateMemberReport']=function(_0x3f5400){const _0x55041d=this;return new Promise(function(_0x3e2625,_0x2013da){const _0x165dfb=a450_0x270a;return db[_0x165dfb('0x8')][_0x165dfb('0x17')](_0x3f5400[_0x165dfb('0x4')],{'raw':_0x3f5400[_0x165dfb('0x1')]?_0x3f5400['options'][_0x165dfb('0x11')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x3f5400[_0x165dfb('0x1')]?_0x3f5400[_0x165dfb('0x1')][_0x165dfb('0xb')]||null:null,'attributes':_0x3f5400[_0x165dfb('0x1')]?_0x3f5400[_0x165dfb('0x1')]['attributes']||null:null,'limit':_0x3f5400[_0x165dfb('0x1')]?_0x3f5400[_0x165dfb('0x1')][_0x165dfb('0x12')]||null:null})[_0x165dfb('0x2')](function(_0x5b8f21){const _0x239425=_0x165dfb;logger['info'](_0x239425('0x0'),_0x3f5400),logger[_0x239425('0x14')](_0x239425('0x0'),_0x3f5400,JSON[_0x239425('0x15')](_0x5b8f21)),_0x3e2625(_0x5b8f21);})['catch'](function(_0x1983d4){const _0x5c49c9=_0x165dfb;logger[_0x5c49c9('0x10')](_0x5c49c9('0x0'),_0x1983d4[_0x5c49c9('0x3')],_0x3f5400),_0x2013da(_0x55041d[_0x5c49c9('0x10')](0x1f4,_0x1983d4[_0x5c49c9('0x3')]));});});}; \ No newline at end of file +const a542_0x32a5=['debug','then','rpc','map','raw','lodash','create','include','attributes','error','../../config/logger','MemberReport','CreateMemberReport','GetMemberReport','message','stringify','model','catch','body','UpdateMemberReport','info','../../mysqldb','options'];(function(_0x2f29c5,_0x10e4d5){const _0x32a5fb=function(_0x52d62a){while(--_0x52d62a){_0x2f29c5['push'](_0x2f29c5['shift']());}};_0x32a5fb(++_0x10e4d5);}(a542_0x32a5,0xc6));const a542_0x52d6=function(_0x2f29c5,_0x10e4d5){_0x2f29c5=_0x2f29c5-0x9f;let _0x32a5fb=a542_0x32a5[_0x2f29c5];return _0x32a5fb;};const a542_0x354afe=a542_0x52d6;'use strict';const _=require(a542_0x354afe(0xad)),db=require(a542_0x354afe(0xa6))['db'],logger=require(a542_0x354afe(0xb2))(a542_0x354afe(0xaa));exports['GetMemberReport']=function(_0x243b19){const _0x3903f1=this;return new Promise(function(_0x16f75d,_0x4e64a7){const _0x5ad3e2=a542_0x52d6;return db[_0x5ad3e2(0xb3)]['findAll']({'raw':_0x243b19[_0x5ad3e2(0xa7)]?_0x243b19[_0x5ad3e2(0xa7)]['raw']===undefined?!![]:![]:!![],'where':_0x243b19[_0x5ad3e2(0xa7)]?_0x243b19[_0x5ad3e2(0xa7)]['where']||null:null,'attributes':_0x243b19[_0x5ad3e2(0xa7)]?_0x243b19[_0x5ad3e2(0xa7)][_0x5ad3e2(0xb0)]||null:null,'limit':_0x243b19['options']?_0x243b19[_0x5ad3e2(0xa7)]['limit']||null:null,'include':_0x243b19['options']?_0x243b19[_0x5ad3e2(0xa7)][_0x5ad3e2(0xaf)]?_[_0x5ad3e2(0xab)](_0x243b19[_0x5ad3e2(0xa7)]['include'],function(_0x20882a){const _0x2cb2c0=_0x5ad3e2;return{'model':db[_0x20882a[_0x2cb2c0(0xa1)]],'as':_0x20882a['as'],'attributes':_0x20882a['attributes'],'include':_0x20882a[_0x2cb2c0(0xaf)]?_[_0x2cb2c0(0xab)](_0x20882a[_0x2cb2c0(0xaf)],function(_0x54687e){const _0x2244ca=_0x2cb2c0;return{'model':db[_0x54687e[_0x2244ca(0xa1)]],'as':_0x54687e['as'],'attributes':_0x54687e[_0x2244ca(0xb0)],'include':_0x54687e[_0x2244ca(0xaf)]?_['map'](_0x54687e[_0x2244ca(0xaf)],function(_0x26fba9){const _0x321863=_0x2244ca;return{'model':db[_0x26fba9[_0x321863(0xa1)]],'as':_0x26fba9['as'],'attributes':_0x26fba9['attributes']};}):[]};}):[]};}):[]:[]})[_0x5ad3e2(0xa9)](function(_0x3fcf42){const _0x16b0ae=_0x5ad3e2;logger[_0x16b0ae(0xa5)](_0x16b0ae(0xb5),_0x243b19),logger['debug'](_0x16b0ae(0xb5),_0x243b19,JSON[_0x16b0ae(0xa0)](_0x3fcf42)),_0x16f75d(_0x3fcf42);})[_0x5ad3e2(0xa2)](function(_0x3c3023){const _0x49a9ea=_0x5ad3e2;logger['error'](_0x49a9ea(0xb5),_0x3c3023[_0x49a9ea(0x9f)],_0x243b19),_0x4e64a7(_0x3903f1[_0x49a9ea(0xb1)](0x1f4,_0x3c3023[_0x49a9ea(0x9f)]));});});},exports['CreateMemberReport']=function(_0x4356be){const _0x52343a=this;return new Promise(function(_0x44c802,_0x186777){const _0x3ea457=a542_0x52d6;return db[_0x3ea457(0xb3)][_0x3ea457(0xae)](_0x4356be[_0x3ea457(0xa3)],{'raw':_0x4356be[_0x3ea457(0xa7)]?_0x4356be[_0x3ea457(0xa7)][_0x3ea457(0xac)]===undefined?!![]:![]:!![]})[_0x3ea457(0xa9)](function(_0x277c87){const _0x52bb65=_0x3ea457;logger['info'](_0x52bb65(0xb4),_0x4356be),logger[_0x52bb65(0xa8)](_0x52bb65(0xb4),_0x4356be,JSON[_0x52bb65(0xa0)](_0x277c87)),_0x44c802(_0x277c87);})['catch'](function(_0x3c7949){const _0x59e5cc=_0x3ea457;logger[_0x59e5cc(0xb1)]('CreateMemberReport',_0x3c7949['message'],_0x4356be),_0x186777(_0x52343a[_0x59e5cc(0xb1)](0x1f4,_0x3c7949[_0x59e5cc(0x9f)]));});});},exports[a542_0x354afe(0xa4)]=function(_0x2fcfa1){const _0x1ee9eb=this;return new Promise(function(_0x105d7d,_0x12cb1f){const _0x3594b8=a542_0x52d6;return db[_0x3594b8(0xb3)]['update'](_0x2fcfa1[_0x3594b8(0xa3)],{'raw':_0x2fcfa1['options']?_0x2fcfa1['options'][_0x3594b8(0xac)]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x2fcfa1[_0x3594b8(0xa7)]?_0x2fcfa1[_0x3594b8(0xa7)]['where']||null:null,'attributes':_0x2fcfa1[_0x3594b8(0xa7)]?_0x2fcfa1[_0x3594b8(0xa7)][_0x3594b8(0xb0)]||null:null,'limit':_0x2fcfa1['options']?_0x2fcfa1[_0x3594b8(0xa7)]['limit']||null:null})[_0x3594b8(0xa9)](function(_0x24b49e){const _0x32e766=_0x3594b8;logger[_0x32e766(0xa5)](_0x32e766(0xa4),_0x2fcfa1),logger[_0x32e766(0xa8)](_0x32e766(0xa4),_0x2fcfa1,JSON[_0x32e766(0xa0)](_0x24b49e)),_0x105d7d(_0x24b49e);})[_0x3594b8(0xa2)](function(_0x4f7b4f){const _0x10b4d8=_0x3594b8;logger[_0x10b4d8(0xb1)](_0x10b4d8(0xa4),_0x4f7b4f['message'],_0x2fcfa1),_0x12cb1f(_0x1ee9eb[_0x10b4d8(0xb1)](0x1f4,_0x4f7b4f['message']));});});}; \ No newline at end of file diff --git a/server/api/migration/index.js b/server/api/migration/index.js index ceb6213..ba7be38 100644 --- a/server/api/migration/index.js +++ b/server/api/migration/index.js @@ -1 +1 @@ -const a451_0x49db=['./migration.controller','exports','Router'];(function(_0x4ebc09,_0x49db11){const _0x6a5f6a=function(_0x57c556){while(--_0x57c556){_0x4ebc09['push'](_0x4ebc09['shift']());}};_0x6a5f6a(++_0x49db11);}(a451_0x49db,0xd5));const a451_0x6a5f=function(_0x4ebc09,_0x49db11){_0x4ebc09=_0x4ebc09-0x0;let _0x6a5f6a=a451_0x49db[_0x4ebc09];return _0x6a5f6a;};const _0x3fb49c=a451_0x6a5f;'use strict';const express=require('express'),router=express[_0x3fb49c('0x2')](),controller=require(_0x3fb49c('0x0'));router['get']('/',controller['index']),module[_0x3fb49c('0x1')]=router; \ No newline at end of file +const a543_0x5dc3=['index','get','exports'];(function(_0x4734ca,_0x8beab3){const _0x5dc3be=function(_0x4d12f7){while(--_0x4d12f7){_0x4734ca['push'](_0x4734ca['shift']());}};_0x5dc3be(++_0x8beab3);}(a543_0x5dc3,0xc5));const a543_0x4d12=function(_0x4734ca,_0x8beab3){_0x4734ca=_0x4734ca-0xe5;let _0x5dc3be=a543_0x5dc3[_0x4734ca];return _0x5dc3be;};const a543_0x4c40b0=a543_0x4d12;'use strict';const express=require('express'),router=express['Router'](),controller=require('./migration.controller');router[a543_0x4c40b0(0xe7)]('/',controller[a543_0x4c40b0(0xe6)]),module[a543_0x4c40b0(0xe5)]=router; \ No newline at end of file diff --git a/server/api/migration/migration.attributes.js b/server/api/migration/migration.attributes.js index 3c5eeb8..6ee6eef 100644 --- a/server/api/migration/migration.attributes.js +++ b/server/api/migration/migration.attributes.js @@ -1 +1 @@ -const a452_0x3688=['sequelize','version','exports'];(function(_0x36eef3,_0x36888f){const _0x4f7ced=function(_0x18be62){while(--_0x18be62){_0x36eef3['push'](_0x36eef3['shift']());}};_0x4f7ced(++_0x36888f);}(a452_0x3688,0x1e1));const a452_0x4f7c=function(_0x36eef3,_0x36888f){_0x36eef3=_0x36eef3-0x0;let _0x4f7ced=a452_0x3688[_0x36eef3];return _0x4f7ced;};const _0x3315b6=a452_0x4f7c;'use strict';const Sequelize=require(_0x3315b6('0x2'));module[_0x3315b6('0x1')]={'version':{'type':Sequelize['STRING'],'unique':_0x3315b6('0x0')}}; \ No newline at end of file +const a544_0x59ad=['exports','sequelize','attributes','STRING'];(function(_0x250d3a,_0x31f642){const _0x59ad4f=function(_0xa315cf){while(--_0xa315cf){_0x250d3a['push'](_0x250d3a['shift']());}};_0x59ad4f(++_0x31f642);}(a544_0x59ad,0xaf));const a544_0xa315=function(_0x250d3a,_0x31f642){_0x250d3a=_0x250d3a-0x8c;let _0x59ad4f=a544_0x59ad[_0x250d3a];return _0x59ad4f;};const a544_0x51bebb=a544_0xa315;'use strict';const {DataTypes}=require(a544_0x51bebb(0x8e)),attributes={'version':{'type':DataTypes[a544_0x51bebb(0x8c)],'unique':'version'}};module[a544_0x51bebb(0x8d)][a544_0x51bebb(0x8f)]=attributes; \ No newline at end of file diff --git a/server/api/migration/migration.controller.js b/server/api/migration/migration.controller.js index 2b14ca0..8afee0c 100644 --- a/server/api/migration/migration.controller.js +++ b/server/api/migration/migration.controller.js @@ -1 +1 @@ -const a453_0x2c91=['limit','then','status','Migration','options','query','map','findAll','order','Content-Range','intersection','fieldName','merge','offset','VIRTUAL','api','name','../../config/logger','count','where','type','stack','pick','send','rows','catch','model','filter','sequelize','error','key','keys','include','set','fields','like','length','../../mysqldb','json','lodash','attributes','sort','rawAttributes','nolimit','undefined','filters'];(function(_0x3069c5,_0x2c91ac){const _0x5e08f3=function(_0x329966){while(--_0x329966){_0x3069c5['push'](_0x3069c5['shift']());}};_0x5e08f3(++_0x2c91ac);}(a453_0x2c91,0xc6));const a453_0x5e08=function(_0x3069c5,_0x2c91ac){_0x3069c5=_0x3069c5-0x0;let _0x5e08f3=a453_0x2c91[_0x3069c5];return _0x5e08f3;};const _0x5ae559=a453_0x5e08;'use strict';const _=require(_0x5ae559('0x19')),qs=require('../../components/parsers/qs'),logger=require(_0x5ae559('0x3'))(_0x5ae559('0x1')),db=require(_0x5ae559('0x17'))['db'],{Op}=require(_0x5ae559('0xe'));function respondWithFilteredResult(_0x329966,_0x233137){return function(_0x506513){const _0x108432=a453_0x5e08;if(_0x506513){const _0x96bfe6=_0x506513['count'],_0xab585a=_0x233137[_0x108432('0x2d')];let _0x1c6091=_0x233137[_0x108432('0x2d')]+_0x233137[_0x108432('0x20')],_0x553e92;return _0x1c6091>=_0x96bfe6?(_0x1c6091=_0x96bfe6,_0x553e92=0xc8):_0x553e92=0xce,_0x329966[_0x108432('0x22')](_0x553e92),_0x329966[_0x108432('0x13')](_0x108432('0x29'),_0xab585a+'-'+_0x1c6091+'/'+_0x96bfe6)[_0x108432('0x18')](_0x506513);}return null;};}function handleError(_0x22ea70,_0x667013){return _0x667013=_0x667013||0x1f4,function(_0x474984){const _0x4f4a54=a453_0x5e08;logger[_0x4f4a54('0xf')](_0x474984[_0x4f4a54('0x7')]),_0x474984[_0x4f4a54('0x2')]&&delete _0x474984[_0x4f4a54('0x2')],_0x22ea70[_0x4f4a54('0x22')](_0x667013)[_0x4f4a54('0x9')](_0x474984);};}exports['index']=function(_0xb4242c,_0x509325){const _0x58ab97=_0x5ae559;let _0x2ccae8={};const _0x385255={},_0x256e61={'count':0x0,'rows':[]},_0x1f7345=_[_0x58ab97('0x26')](db[_0x58ab97('0x23')][_0x58ab97('0x1c')],function(_0x31c71f){const _0x381d58=_0x58ab97;return{'name':_0x31c71f[_0x381d58('0x2b')],'type':_0x31c71f['type'][_0x381d58('0x10')]};});_0x385255[_0x58ab97('0xc')]=_[_0x58ab97('0x26')](_0x1f7345,'name'),_0x385255[_0x58ab97('0x25')]=_[_0x58ab97('0x11')](_0xb4242c['query']),_0x385255[_0x58ab97('0x1f')]=_[_0x58ab97('0x2a')](_0x385255[_0x58ab97('0xc')],_0x385255[_0x58ab97('0x25')]),_0x2ccae8[_0x58ab97('0x1a')]=_[_0x58ab97('0x2a')](_0x385255[_0x58ab97('0xc')],qs[_0x58ab97('0x14')](_0xb4242c['query']['fields'])),_0x2ccae8['attributes']=_0x2ccae8[_0x58ab97('0x1a')][_0x58ab97('0x16')]?_0x2ccae8[_0x58ab97('0x1a')]:_0x385255['model'];typeof _0xb4242c[_0x58ab97('0x25')][_0x58ab97('0x1d')]===_0x58ab97('0x1e')&&(_0x2ccae8['limit']=qs[_0x58ab97('0x20')](_0xb4242c['query'][_0x58ab97('0x20')]),_0x2ccae8[_0x58ab97('0x2d')]=qs[_0x58ab97('0x2d')](_0xb4242c[_0x58ab97('0x25')][_0x58ab97('0x2d')]));_0x2ccae8[_0x58ab97('0x28')]=qs[_0x58ab97('0x1b')](_0xb4242c[_0x58ab97('0x25')][_0x58ab97('0x1b')]),_0x2ccae8[_0x58ab97('0x5')]=qs[_0x58ab97('0x1f')](_[_0x58ab97('0x8')](_0xb4242c['query'],_0x385255['filters']),_0x1f7345);_0xb4242c[_0x58ab97('0x25')]['filter']&&(_0x2ccae8[_0x58ab97('0x5')]=_[_0x58ab97('0x2c')](_0x2ccae8[_0x58ab97('0x5')],{[Op['or']]:_[_0x58ab97('0x26')](_0x1f7345,function(_0x53e1d2){const _0x3dcd9f=_0x58ab97;if(_0x53e1d2[_0x3dcd9f('0x6')]!==_0x3dcd9f('0x0')){const _0x3a0b7a={};return _0x3a0b7a[_0x53e1d2[_0x3dcd9f('0x2')]]={[Op[_0x3dcd9f('0x15')]]:'%'+_0xb4242c['query'][_0x3dcd9f('0xd')]+'%'},_0x3a0b7a;}})}));_0x2ccae8=_[_0x58ab97('0x2c')]({},_0x2ccae8,_0xb4242c[_0x58ab97('0x24')]);const _0x32d495={'where':_0x2ccae8['where']};return db[_0x58ab97('0x23')][_0x58ab97('0x4')](_0x32d495)[_0x58ab97('0x21')](function(_0x47ae51){const _0x34d79b=_0x58ab97;return _0x256e61[_0x34d79b('0x4')]=_0x47ae51,_0xb4242c[_0x34d79b('0x25')]['includeAll']&&(_0x2ccae8[_0x34d79b('0x12')]=[{'all':!![]}]),db[_0x34d79b('0x23')][_0x34d79b('0x27')](_0x2ccae8);})[_0x58ab97('0x21')](function(_0x1b15ae){const _0x28b128=_0x58ab97;return _0x256e61[_0x28b128('0xa')]=_0x1b15ae,_0x256e61;})[_0x58ab97('0x21')](respondWithFilteredResult(_0x509325,_0x2ccae8))[_0x58ab97('0xb')](handleError(_0x509325,null));}; \ No newline at end of file +const a545_0x4b7f=['status','rows','map','pick','name','catch','Migration','attributes','merge','intersection','set','../../config/logger','undefined','limit','count','sequelize','sort','where','nolimit','like','../../mysqldb','then','rawAttributes','includeAll','api','query','findAll','key','length','stack','error','filters','keys','type','filter','offset','model','include'];(function(_0x12a058,_0x1f813c){const _0x4b7f38=function(_0xc7beed){while(--_0xc7beed){_0x12a058['push'](_0x12a058['shift']());}};_0x4b7f38(++_0x1f813c);}(a545_0x4b7f,0x85));const a545_0xc7be=function(_0x12a058,_0x1f813c){_0x12a058=_0x12a058-0x81;let _0x4b7f38=a545_0x4b7f[_0x12a058];return _0x4b7f38;};const a545_0x38817d=a545_0xc7be;'use strict';const _=require('lodash'),qs=require('../../components/parsers/qs'),logger=require(a545_0x38817d(0x9f))(a545_0x38817d(0x86)),{db}=require(a545_0x38817d(0x82)),{Op}=require(a545_0x38817d(0xa3));function respondWithFilteredResult(_0x4d830f,_0x3e32fa){return function(_0x222d2f){const _0x365ead=a545_0xc7be;if(_0x222d2f){const _0x7af25c=_0x222d2f[_0x365ead(0xa2)],_0x124628=_0x3e32fa[_0x365ead(0x91)];let _0x150f15=_0x3e32fa[_0x365ead(0x91)]+_0x3e32fa[_0x365ead(0xa1)],_0xc495b4;return _0x150f15>=_0x7af25c?(_0x150f15=_0x7af25c,_0xc495b4=0xc8):_0xc495b4=0xce,_0x4d830f[_0x365ead(0x94)](_0xc495b4),_0x4d830f[_0x365ead(0x9e)]('Content-Range',_0x124628+'-'+_0x150f15+'/'+_0x7af25c)['json'](_0x222d2f);}return null;};}function handleError(_0x2787a0,_0x351299){return _0x351299=_0x351299||0x1f4,function(_0x2131ab){const _0x3b35bd=a545_0xc7be;logger[_0x3b35bd(0x8c)](_0x2131ab[_0x3b35bd(0x8b)]),_0x2131ab[_0x3b35bd(0x98)]&&delete _0x2131ab[_0x3b35bd(0x98)],_0x2787a0['status'](_0x351299)['send'](_0x2131ab);};}exports['index']=function(_0x46b510,_0x141e16){const _0x414838=a545_0x38817d;let _0xaa5ed3={};const _0x304545={},_0x579524={'count':0x0,'rows':[]},_0x1827ad=_[_0x414838(0x96)](db[_0x414838(0x9a)][_0x414838(0x84)],function(_0x18921b){const _0x5c8ec7=_0x414838;return{'name':_0x18921b['fieldName'],'type':_0x18921b[_0x5c8ec7(0x8f)][_0x5c8ec7(0x89)]};});_0x304545[_0x414838(0x92)]=_[_0x414838(0x96)](_0x1827ad,_0x414838(0x98)),_0x304545[_0x414838(0x87)]=_[_0x414838(0x8e)](_0x46b510[_0x414838(0x87)]),_0x304545['filters']=_[_0x414838(0x9d)](_0x304545[_0x414838(0x92)],_0x304545[_0x414838(0x87)]),_0xaa5ed3[_0x414838(0x9b)]=_[_0x414838(0x9d)](_0x304545[_0x414838(0x92)],qs['fields'](_0x46b510[_0x414838(0x87)]['fields'])),_0xaa5ed3[_0x414838(0x9b)]=_0xaa5ed3['attributes'][_0x414838(0x8a)]?_0xaa5ed3['attributes']:_0x304545[_0x414838(0x92)];typeof _0x46b510[_0x414838(0x87)][_0x414838(0xa6)]===_0x414838(0xa0)&&(_0xaa5ed3[_0x414838(0xa1)]=qs['limit'](_0x46b510[_0x414838(0x87)][_0x414838(0xa1)]),_0xaa5ed3['offset']=qs[_0x414838(0x91)](_0x46b510[_0x414838(0x87)][_0x414838(0x91)]));_0xaa5ed3['order']=qs['sort'](_0x46b510['query'][_0x414838(0xa4)]),_0xaa5ed3[_0x414838(0xa5)]=qs[_0x414838(0x8d)](_[_0x414838(0x97)](_0x46b510['query'],_0x304545['filters']),_0x1827ad);_0x46b510['query'][_0x414838(0x90)]&&(_0xaa5ed3[_0x414838(0xa5)]=_[_0x414838(0x9c)](_0xaa5ed3[_0x414838(0xa5)],{[Op['or']]:_[_0x414838(0x96)](_0x1827ad,function(_0x44218e){const _0x1c86cd=_0x414838;if(_0x44218e[_0x1c86cd(0x8f)]!=='VIRTUAL'){const _0x2ce461={};return _0x2ce461[_0x44218e[_0x1c86cd(0x98)]]={[Op[_0x1c86cd(0x81)]]:'%'+_0x46b510[_0x1c86cd(0x87)][_0x1c86cd(0x90)]+'%'},_0x2ce461;}})}));_0xaa5ed3=_[_0x414838(0x9c)]({},_0xaa5ed3,_0x46b510['options']);const _0x189c4f={'where':_0xaa5ed3['where']};return db['Migration'][_0x414838(0xa2)](_0x189c4f)[_0x414838(0x83)](function(_0xe769c8){const _0x173de2=_0x414838;return _0x579524[_0x173de2(0xa2)]=_0xe769c8,_0x46b510['query'][_0x173de2(0x85)]&&(_0xaa5ed3[_0x173de2(0x93)]=[{'all':!![]}]),db[_0x173de2(0x9a)][_0x173de2(0x88)](_0xaa5ed3);})[_0x414838(0x83)](function(_0x2cf271){const _0x159036=_0x414838;return _0x579524[_0x159036(0x95)]=_0x2cf271,_0x579524;})[_0x414838(0x83)](respondWithFilteredResult(_0x141e16,_0xaa5ed3))[_0x414838(0x99)](handleError(_0x141e16,null));}; \ No newline at end of file diff --git a/server/api/migration/migration.model.js b/server/api/migration/migration.model.js index 28461a5..29e8634 100644 --- a/server/api/migration/migration.model.js +++ b/server/api/migration/migration.model.js @@ -1 +1 @@ -const a454_0x1d24=['define','Migration','migrations','./migration.attributes','exports'];(function(_0x2a13c4,_0x1d2435){const _0x379d22=function(_0x57c8da){while(--_0x57c8da){_0x2a13c4['push'](_0x2a13c4['shift']());}};_0x379d22(++_0x1d2435);}(a454_0x1d24,0x69));const a454_0x379d=function(_0x2a13c4,_0x1d2435){_0x2a13c4=_0x2a13c4-0x0;let _0x379d22=a454_0x1d24[_0x2a13c4];return _0x379d22;};const _0x18c728=a454_0x379d;'use strict';const attributes=require(_0x18c728('0x3'));module[_0x18c728('0x4')]=function(_0x57c8da){const _0x2ed107=_0x18c728,_0x6ad8f7=_0x57c8da[_0x2ed107('0x0')](_0x2ed107('0x1'),attributes,{'tableName':_0x2ed107('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x6ad8f7;}; \ No newline at end of file +const a546_0x266a=['exports','./migration.options','function','init','Migration','./migration.attributes','sequelize'];(function(_0xd970f1,_0x37eaa2){const _0x266a7b=function(_0x111db7){while(--_0x111db7){_0xd970f1['push'](_0xd970f1['shift']());}};_0x266a7b(++_0x37eaa2);}(a546_0x266a,0xcb));const a546_0x111d=function(_0xd970f1,_0x37eaa2){_0xd970f1=_0xd970f1-0x108;let _0x266a7b=a546_0x266a[_0xd970f1];return _0x266a7b;};const a546_0x23f056=a546_0x111d;'use strict';const {Model}=require(a546_0x23f056(0x10e)),{attributes}=require(a546_0x23f056(0x10d)),{options}=require(a546_0x23f056(0x109));class Migration extends Model{}function init(_0x5d84f6,_0x360b3c){const _0x4b8fa0=a546_0x23f056,_0x16260e=options(_0x5d84f6),_0x5c6276=typeof _0x360b3c===_0x4b8fa0(0x10a)?_0x360b3c(_0x16260e):_0x16260e;return Migration['init'](attributes,_0x5c6276),Migration;}module[a546_0x23f056(0x108)][a546_0x23f056(0x10c)]=Migration,module[a546_0x23f056(0x108)][a546_0x23f056(0x10b)]=init; \ No newline at end of file diff --git a/server/api/migration/migration.options.js b/server/api/migration/migration.options.js new file mode 100644 index 0000000..76b1191 --- /dev/null +++ b/server/api/migration/migration.options.js @@ -0,0 +1 @@ +var a547_0x3f85=['migrations','options','exports'];(function(_0x51dbbf,_0x2d6be5){var _0x3f85b5=function(_0x5031d8){while(--_0x5031d8){_0x51dbbf['push'](_0x51dbbf['shift']());}};_0x3f85b5(++_0x2d6be5);}(a547_0x3f85,0xd8));var a547_0x5031=function(_0x51dbbf,_0x2d6be5){_0x51dbbf=_0x51dbbf-0x110;var _0x3f85b5=a547_0x3f85[_0x51dbbf];return _0x3f85b5;};var a547_0x1c26a7=a547_0x5031;function options(_0x4b8bb1){var _0x4f282a=a547_0x5031;return{'sequelize':_0x4b8bb1,'tableName':_0x4f282a(0x110),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a547_0x1c26a7(0x112)][a547_0x1c26a7(0x111)]=options; \ No newline at end of file diff --git a/server/api/network/index.js b/server/api/network/index.js index dd356a8..3841c1b 100644 --- a/server/api/network/index.js +++ b/server/api/network/index.js @@ -1 +1 @@ -const a455_0x2690=['Router','put','../../components/auth/service','create','post','isAuthenticated','get','delete','exports','index','destroy','/:id'];(function(_0x4bbdd1,_0x26902a){const _0x3b3a9f=function(_0x4ff2eb){while(--_0x4ff2eb){_0x4bbdd1['push'](_0x4bbdd1['shift']());}};_0x3b3a9f(++_0x26902a);}(a455_0x2690,0x96));const a455_0x3b3a=function(_0x4bbdd1,_0x26902a){_0x4bbdd1=_0x4bbdd1-0x0;let _0x3b3a9f=a455_0x2690[_0x4bbdd1];return _0x3b3a9f;};const _0x3aced5=a455_0x3b3a;'use strict';const express=require('express'),router=express[_0x3aced5('0x6')](),auth=require(_0x3aced5('0x8')),controller=require('./network.controller');router[_0x3aced5('0x0')]('/',auth[_0x3aced5('0xb')](),controller[_0x3aced5('0x3')]),router[_0x3aced5('0x0')]('/:id',auth['isAuthenticated'](),controller['show']),router[_0x3aced5('0xa')]('/',auth[_0x3aced5('0xb')](),controller[_0x3aced5('0x9')]),router[_0x3aced5('0x7')](_0x3aced5('0x5'),auth[_0x3aced5('0xb')](),controller['update']),router[_0x3aced5('0x1')](_0x3aced5('0x5'),auth[_0x3aced5('0xb')](),controller[_0x3aced5('0x4')]),module[_0x3aced5('0x2')]=router; \ No newline at end of file +const a548_0x2eaf=['destroy','update','put','../../components/auth/service','./network.controller','isAuthenticated','express','get','/:id','post','index','Router'];(function(_0x105790,_0x33be5a){const _0x2eaff7=function(_0x5baf6f){while(--_0x5baf6f){_0x105790['push'](_0x105790['shift']());}};_0x2eaff7(++_0x33be5a);}(a548_0x2eaf,0x1aa));const a548_0x5baf=function(_0x105790,_0x33be5a){_0x105790=_0x105790-0x1df;let _0x2eaff7=a548_0x2eaf[_0x105790];return _0x2eaff7;};const a548_0x223a0b=a548_0x5baf;'use strict';const express=require(a548_0x223a0b(0x1df)),router=express[a548_0x223a0b(0x1e4)](),auth=require(a548_0x223a0b(0x1e8)),controller=require(a548_0x223a0b(0x1e9));router[a548_0x223a0b(0x1e0)]('/',auth[a548_0x223a0b(0x1ea)](),controller[a548_0x223a0b(0x1e3)]),router['get']('/:id',auth['isAuthenticated'](),controller['show']),router[a548_0x223a0b(0x1e2)]('/',auth[a548_0x223a0b(0x1ea)](),controller['create']),router[a548_0x223a0b(0x1e7)](a548_0x223a0b(0x1e1),auth[a548_0x223a0b(0x1ea)](),controller[a548_0x223a0b(0x1e6)]),router['delete']('/:id',auth['isAuthenticated'](),controller[a548_0x223a0b(0x1e5)]),module['exports']=router; \ No newline at end of file diff --git a/server/api/network/network.attributes.js b/server/api/network/network.attributes.js index 7c3b65a..4946b53 100644 --- a/server/api/network/network.attributes.js +++ b/server/api/network/network.attributes.js @@ -1 +1 @@ -const a456_0x130c=['exports','externip','STRING','stun','localnet','ENUM','sequelize','turn'];(function(_0x25993e,_0x130cfb){const _0x572943=function(_0x3b78df){while(--_0x3b78df){_0x25993e['push'](_0x25993e['shift']());}};_0x572943(++_0x130cfb);}(a456_0x130c,0x163));const a456_0x5729=function(_0x25993e,_0x130cfb){_0x25993e=_0x25993e-0x0;let _0x572943=a456_0x130c[_0x25993e];return _0x572943;};const _0x555881=a456_0x5729;'use strict';const Sequelize=require(_0x555881('0x3'));module[_0x555881('0x5')]={'type':{'type':Sequelize[_0x555881('0x2')](_0x555881('0x1'),_0x555881('0x6'),_0x555881('0x0'),_0x555881('0x4'))},'value':{'type':Sequelize[_0x555881('0x7')]},'username':{'type':Sequelize[_0x555881('0x7')]},'password':{'type':Sequelize[_0x555881('0x7')]}}; \ No newline at end of file +const a549_0x2d4a=['turn','attributes','externip','STRING','stun','exports','localnet'];(function(_0x471041,_0x279dd4){const _0x2d4aa5=function(_0x15c6f5){while(--_0x15c6f5){_0x471041['push'](_0x471041['shift']());}};_0x2d4aa5(++_0x279dd4);}(a549_0x2d4a,0x154));const a549_0x15c6=function(_0x471041,_0x279dd4){_0x471041=_0x471041-0x182;let _0x2d4aa5=a549_0x2d4a[_0x471041];return _0x2d4aa5;};const a549_0x1a8aee=a549_0x15c6;'use strict';const {DataTypes}=require('sequelize'),attributes={'type':{'type':DataTypes['ENUM'](a549_0x1a8aee(0x184),a549_0x1a8aee(0x187),a549_0x1a8aee(0x182),a549_0x1a8aee(0x185))},'value':{'type':DataTypes[a549_0x1a8aee(0x188)]},'username':{'type':DataTypes[a549_0x1a8aee(0x188)]},'password':{'type':DataTypes[a549_0x1a8aee(0x188)]}};module[a549_0x1a8aee(0x183)][a549_0x1a8aee(0x186)]=attributes; \ No newline at end of file diff --git a/server/api/network/network.controller.js b/server/api/network/network.controller.js index c351fd9..cc31bd1 100644 --- a/server/api/network/network.controller.js +++ b/server/api/network/network.controller.js @@ -1 +1 @@ -const a457_0x9040=['rawAttributes','limit','../../config/logger','name','result','fields','json','api','where','transaction','Reload','create','nolimit','/etc/asterisk/sip_xcally_%s.conf','filters','destroy','include','jayson/promise','request\x20sent','server/files/templates/turn_multiple.ejs','show','findAll','intersection','client','STUN','model','root','rows','merge','server/files/templates/stun_multiple.ejs','filter','query','update','../../components/parsers/qs','res_stun_monitor.so','type','offset','files/templates/network.ejs','attributes','writeFileSync','../../mysqldb','files/templates/turn_multiple.ejs','sort','findOne','body','message','count','like','Network,\x20%s,\x20%s,\x20%s','end','pick','util','map','/etc/asterisk/turn_xcally.conf','sequelize','includeAll','http','error','toLowerCase','index','keys','chan_sip.so','sendStatus','length','Network,\x20%s,\x20%s','format','code','../../config/environment','params','/etc/asterisk/stun_xcally.conf','ejs','toUpperCase','join','stack','utf8','render','undefined','Network','TURN','send','readFileSync','status','catch','then','lodash'];(function(_0x454302,_0x9040bc){const _0x3ca146=function(_0x11d155){while(--_0x11d155){_0x454302['push'](_0x454302['shift']());}};_0x3ca146(++_0x9040bc);}(a457_0x9040,0x1a5));const a457_0x3ca1=function(_0x454302,_0x9040bc){_0x454302=_0x454302-0x0;let _0x3ca146=a457_0x9040[_0x454302];return _0x3ca146;};const _0xc6fb18=a457_0x3ca1;'use strict';const util=require(_0xc6fb18('0x37')),path=require('path'),ejs=require(_0xc6fb18('0x4a')),fs=require('fs'),_=require(_0xc6fb18('0x3')),qs=require(_0xc6fb18('0x25')),logger=require(_0xc6fb18('0x6'))(_0xc6fb18('0xb')),config=require(_0xc6fb18('0x47')),db=require(_0xc6fb18('0x2c'))['db'],{Op}=require(_0xc6fb18('0x3a')),jayson=require(_0xc6fb18('0x15')),client=jayson[_0xc6fb18('0x1b')][_0xc6fb18('0x3c')]({'port':0x232a});function respondWithRpcPromise(_0x11d155,_0x2a31aa,_0x4fc807,_0x441ede){return new Promise(function(_0x261c58,_0x5e89d4){const _0x1d512c=a457_0x3ca1,_0x53eedb=_0x441ede||client;return _0x53eedb['request'](_0x11d155,_0x4fc807)[_0x1d512c('0x2')](function(_0x3d3a3b){const _0x13a1a4=_0x1d512c;logger['info'](_0x13a1a4('0x44'),_0x2a31aa,_0x13a1a4('0x16')),logger['debug'](_0x13a1a4('0x34'),_0x2a31aa,_0x13a1a4('0x16'),JSON['stringify'](_0x3d3a3b));if(_0x3d3a3b[_0x13a1a4('0x3d')]){if(_0x3d3a3b[_0x13a1a4('0x3d')][_0x13a1a4('0x46')]===0x1f4)return logger[_0x13a1a4('0x3d')](_0x13a1a4('0x44'),_0x2a31aa,_0x3d3a3b[_0x13a1a4('0x3d')]['message']),_0x5e89d4(_0x3d3a3b[_0x13a1a4('0x3d')][_0x13a1a4('0x31')]);return logger['error']('Network,\x20%s,\x20%s',_0x2a31aa,_0x3d3a3b[_0x13a1a4('0x3d')][_0x13a1a4('0x31')]),_0x261c58(_0x3d3a3b[_0x13a1a4('0x3d')][_0x13a1a4('0x31')]);}else logger['info'](_0x13a1a4('0x44'),_0x2a31aa,'request\x20sent'),_0x261c58(_0x3d3a3b[_0x13a1a4('0x8')]['message']);})['catch'](function(_0x608f6b){const _0x2dba7d=_0x1d512c;logger['error'](_0x2dba7d('0x44'),_0x2a31aa,_0x608f6b),_0x5e89d4(_0x608f6b);});});}function respondWithResult(_0x5871df,_0x180060){return _0x180060=_0x180060||0xc8,function(_0x1a7ebd){const _0x2c0d56=a457_0x3ca1;if(_0x1a7ebd)return _0x5871df[_0x2c0d56('0x0')](_0x180060)['json'](_0x1a7ebd);};}function respondWithFilteredResult(_0x501055,_0x5b9888){return function(_0x259035){const _0xe139d1=a457_0x3ca1;if(_0x259035){const _0x3c98c5=_0x259035['count'],_0x506153=_0x5b9888['offset'];let _0x2107b8=_0x5b9888['offset']+_0x5b9888['limit'],_0x504ebe;return _0x2107b8>=_0x3c98c5?(_0x2107b8=_0x3c98c5,_0x504ebe=0xc8):_0x504ebe=0xce,_0x501055[_0xe139d1('0x0')](_0x504ebe),_0x501055['set']('Content-Range',_0x506153+'-'+_0x2107b8+'/'+_0x3c98c5)[_0xe139d1('0xa')](_0x259035);}return null;};}function saveUpdates(_0x5863dd){return function(_0x29f102){const _0x30305c=a457_0x3ca1;if(_0x29f102)return _0x29f102['update'](_0x5863dd)[_0x30305c('0x2')](function(_0x1ed751){return _0x1ed751;});return null;};}function removeEntity(_0x56be0e){return function(_0x93e814){const _0x5c0aa5=a457_0x3ca1;if(_0x93e814)return _0x93e814[_0x5c0aa5('0x13')]()[_0x5c0aa5('0x2')](function(){const _0x50688e=_0x5c0aa5;_0x56be0e['status'](0xcc)[_0x50688e('0x35')]();});};}function handleEntityNotFound(_0x39b347){return function(_0x45fead){const _0x3298fa=a457_0x3ca1;return!_0x45fead&&_0x39b347[_0x3298fa('0x42')](0x194),_0x45fead;};}function handleError(_0xa32caf,_0x4445b5){return _0x4445b5=_0x4445b5||0x1f4,function(_0x15fc99){const _0x1e21d4=a457_0x3ca1;logger[_0x1e21d4('0x3d')](_0x15fc99[_0x1e21d4('0x4d')]),_0x15fc99['name']&&delete _0x15fc99['name'],_0xa32caf[_0x1e21d4('0x0')](_0x4445b5)[_0x1e21d4('0x53')](_0x15fc99);};}exports[_0xc6fb18('0x3f')]=function(_0x2beab9,_0x4b6791){const _0x16fd61=_0xc6fb18;let _0x3ba7ca={};const _0x3e437a={},_0x1d1db2={'count':0x0,'rows':[]},_0x37046d=_[_0x16fd61('0x38')](db['Network'][_0x16fd61('0x4')],function(_0x2922f1){return{'name':_0x2922f1['fieldName'],'type':_0x2922f1['type']['key']};});_0x3e437a['model']=_[_0x16fd61('0x38')](_0x37046d,_0x16fd61('0x7')),_0x3e437a[_0x16fd61('0x23')]=_['keys'](_0x2beab9[_0x16fd61('0x23')]),_0x3e437a[_0x16fd61('0x12')]=_[_0x16fd61('0x1a')](_0x3e437a['model'],_0x3e437a[_0x16fd61('0x23')]),_0x3ba7ca['attributes']=_[_0x16fd61('0x1a')](_0x3e437a['model'],qs[_0x16fd61('0x9')](_0x2beab9[_0x16fd61('0x23')][_0x16fd61('0x9')])),_0x3ba7ca[_0x16fd61('0x2a')]=_0x3ba7ca[_0x16fd61('0x2a')][_0x16fd61('0x43')]?_0x3ba7ca[_0x16fd61('0x2a')]:_0x3e437a[_0x16fd61('0x1d')];typeof _0x2beab9[_0x16fd61('0x23')][_0x16fd61('0x10')]===_0x16fd61('0x50')&&(_0x3ba7ca[_0x16fd61('0x5')]=qs[_0x16fd61('0x5')](_0x2beab9[_0x16fd61('0x23')][_0x16fd61('0x5')]),_0x3ba7ca['offset']=qs['offset'](_0x2beab9[_0x16fd61('0x23')][_0x16fd61('0x28')]));_0x3ba7ca['order']=qs[_0x16fd61('0x2e')](_0x2beab9[_0x16fd61('0x23')][_0x16fd61('0x2e')]),_0x3ba7ca[_0x16fd61('0xc')]=qs[_0x16fd61('0x12')](_[_0x16fd61('0x36')](_0x2beab9[_0x16fd61('0x23')],_0x3e437a['filters']),_0x37046d);_0x2beab9[_0x16fd61('0x23')]['filter']&&(_0x3ba7ca[_0x16fd61('0xc')]=_[_0x16fd61('0x20')](_0x3ba7ca[_0x16fd61('0xc')],{[Op['or']]:_[_0x16fd61('0x38')](_0x37046d,function(_0x16a93f){const _0x332b4a=_0x16fd61;if(_0x16a93f[_0x332b4a('0x27')]!=='VIRTUAL'){const _0x1cace2={};return _0x1cace2[_0x16a93f['name']]={[Op[_0x332b4a('0x33')]]:'%'+_0x2beab9[_0x332b4a('0x23')][_0x332b4a('0x22')]+'%'},_0x1cace2;}})}));_0x3ba7ca=_['merge']({},_0x3ba7ca,_0x2beab9['options']);const _0x4bdbc9={'where':_0x3ba7ca[_0x16fd61('0xc')]};return db[_0x16fd61('0x51')][_0x16fd61('0x32')](_0x4bdbc9)[_0x16fd61('0x2')](function(_0x3b1cdb){const _0x1b8a95=_0x16fd61;return _0x1d1db2[_0x1b8a95('0x32')]=_0x3b1cdb,_0x2beab9[_0x1b8a95('0x23')][_0x1b8a95('0x3b')]&&(_0x3ba7ca['include']=[{'all':!![]}]),db[_0x1b8a95('0x51')][_0x1b8a95('0x19')](_0x3ba7ca);})[_0x16fd61('0x2')](function(_0x2f3d1c){const _0x18d65b=_0x16fd61;return _0x1d1db2[_0x18d65b('0x1f')]=_0x2f3d1c,_0x1d1db2;})[_0x16fd61('0x2')](respondWithFilteredResult(_0x4b6791,_0x3ba7ca))[_0x16fd61('0x1')](handleError(_0x4b6791,null));},exports[_0xc6fb18('0x18')]=function(_0x381b55,_0x2d959c){const _0x21e544=_0xc6fb18;let _0x534b69={'raw':!![],'where':{'id':_0x381b55[_0x21e544('0x48')]['id']}};const _0x2056a5={};return _0x2056a5[_0x21e544('0x1d')]=_[_0x21e544('0x40')](db[_0x21e544('0x51')][_0x21e544('0x4')]),_0x2056a5['query']=_[_0x21e544('0x40')](_0x381b55['query']),_0x2056a5[_0x21e544('0x12')]=_['intersection'](_0x2056a5[_0x21e544('0x1d')],_0x2056a5[_0x21e544('0x23')]),_0x534b69['attributes']=_[_0x21e544('0x1a')](_0x2056a5[_0x21e544('0x1d')],qs[_0x21e544('0x9')](_0x381b55[_0x21e544('0x23')]['fields'])),_0x534b69[_0x21e544('0x2a')]=_0x534b69['attributes'][_0x21e544('0x43')]?_0x534b69['attributes']:_0x2056a5[_0x21e544('0x1d')],_0x381b55[_0x21e544('0x23')][_0x21e544('0x3b')]&&(_0x534b69[_0x21e544('0x14')]=[{'all':!![]}]),_0x534b69=_[_0x21e544('0x20')]({},_0x534b69,_0x381b55['options']),db[_0x21e544('0x51')][_0x21e544('0x2f')](_0x534b69)['then'](handleEntityNotFound(_0x2d959c,null))['then'](respondWithResult(_0x2d959c,null))[_0x21e544('0x1')](handleError(_0x2d959c,null));},exports[_0xc6fb18('0xf')]=function(_0x1b4eb6,_0xba5c38){const _0x5caa61=_0xc6fb18;let _0x5f25b6;return db[_0x5caa61('0x3a')]['transaction'](function(){const _0x426895=_0x5caa61;return db[_0x426895('0x51')]['create'](_0x1b4eb6[_0x426895('0x30')],{'raw':!![]})[_0x426895('0x2')](function(_0x40f212){const _0x32e07b=_0x426895;return _0x5f25b6=_0x40f212,db[_0x32e07b('0x51')][_0x32e07b('0x19')]({'where':{'type':_0x1b4eb6[_0x32e07b('0x30')][_0x32e07b('0x27')]},'raw':!![]});})[_0x426895('0x2')](function(_0x17d283){const _0x21c846=_0x426895;if(_0x5f25b6[_0x21c846('0x27')]['toUpperCase']()==_0x21c846('0x1c')){const _0x1d5ff7=fs['readFileSync'](path[_0x21c846('0x4c')](config[_0x21c846('0x1e')],_0x21c846('0x21')),'utf8'),_0x13880c=ejs[_0x21c846('0x4f')](_0x1d5ff7,{'networks':_0x17d283||[]});return fs[_0x21c846('0x2b')](_0x21c846('0x49'),_0x13880c),respondWithRpcPromise(_0x21c846('0xe'),_0x21c846('0xf'),{'module':_0x21c846('0x26')});}else{if(_0x5f25b6[_0x21c846('0x27')][_0x21c846('0x4b')]()==_0x21c846('0x52')){const _0x5a7496=fs[_0x21c846('0x54')](path[_0x21c846('0x4c')](config[_0x21c846('0x1e')],'server/files/templates/turn_multiple.ejs'),_0x21c846('0x4e')),_0x4a76e5=ejs[_0x21c846('0x4f')](_0x5a7496,{'networks':_0x17d283||[]});return fs[_0x21c846('0x2b')](_0x21c846('0x39'),_0x4a76e5),respondWithRpcPromise(_0x21c846('0xe'),_0x21c846('0xf'),{'module':_0x21c846('0x26')});}else{const _0x23cf37=fs['readFileSync'](path[_0x21c846('0x4c')](config[_0x21c846('0x1e')],_0x21c846('0x29')),'utf8'),_0x369dbb=ejs[_0x21c846('0x4f')](_0x23cf37,{'networks':_0x17d283||[]});return fs[_0x21c846('0x2b')](util[_0x21c846('0x45')](_0x21c846('0x11'),_0x1b4eb6[_0x21c846('0x30')][_0x21c846('0x27')][_0x21c846('0x3e')]()),_0x369dbb),respondWithRpcPromise(_0x21c846('0xe'),'create',{'module':_0x21c846('0x41')});}}})[_0x426895('0x2')](function(){return _0x5f25b6;});})[_0x5caa61('0x2')](respondWithResult(_0xba5c38,0xc9))[_0x5caa61('0x1')](handleError(_0xba5c38,null));},exports[_0xc6fb18('0x24')]=function(_0x2df74b,_0x47733a){const _0x5dad88=_0xc6fb18;let _0x3405af;return db[_0x5dad88('0x3a')][_0x5dad88('0xd')](function(){const _0x1346ab=_0x5dad88;return db['Network'][_0x1346ab('0x2f')]({'where':{'id':_0x2df74b[_0x1346ab('0x48')]['id']}})['then'](handleEntityNotFound(_0x47733a,null))[_0x1346ab('0x2')](saveUpdates(_0x2df74b[_0x1346ab('0x30')],null))[_0x1346ab('0x2')](function(_0x540348){const _0x36c77f=_0x1346ab;if(_0x540348)return _0x3405af=_0x540348,db[_0x36c77f('0x51')]['findAll']({'where':{'type':_0x3405af[_0x36c77f('0x27')]},'raw':!![]});return null;})[_0x1346ab('0x2')](function(_0x46416a){const _0x310c4c=_0x1346ab;if(_0x3405af['type'][_0x310c4c('0x4b')]()=='STUN'){const _0x1270f1=fs[_0x310c4c('0x54')](path[_0x310c4c('0x4c')](config[_0x310c4c('0x1e')],_0x310c4c('0x21')),_0x310c4c('0x4e')),_0x333278=ejs[_0x310c4c('0x4f')](_0x1270f1,{'networks':_0x46416a||[]});return fs[_0x310c4c('0x2b')]('/etc/asterisk/stun_xcally.conf',_0x333278),respondWithRpcPromise('Reload',_0x310c4c('0x24'),{'module':'res_stun_monitor.so'});}else{if(_0x3405af['type'][_0x310c4c('0x4b')]()=='TURN'){const _0xcb5024=fs[_0x310c4c('0x54')](path[_0x310c4c('0x4c')](config[_0x310c4c('0x1e')],_0x310c4c('0x17')),_0x310c4c('0x4e')),_0x1a66c7=ejs['render'](_0xcb5024,{'networks':_0x46416a||[]});return fs[_0x310c4c('0x2b')](_0x310c4c('0x39'),_0x1a66c7),respondWithRpcPromise(_0x310c4c('0xe'),_0x310c4c('0x24'),{'module':_0x310c4c('0x26')});}else{const _0x4ed66e=fs[_0x310c4c('0x54')](path['join'](config['root'],_0x310c4c('0x29')),_0x310c4c('0x4e')),_0x49cb2f=ejs[_0x310c4c('0x4f')](_0x4ed66e,{'networks':_0x46416a||[]});return fs['writeFileSync'](util['format'](_0x310c4c('0x11'),_0x2df74b[_0x310c4c('0x30')][_0x310c4c('0x27')][_0x310c4c('0x3e')]()),_0x49cb2f),respondWithRpcPromise('Reload',_0x310c4c('0x24'),{'module':_0x310c4c('0x41')});}}})['then'](function(_0x17354f){if(_0x17354f)return _0x3405af;return null;});})[_0x5dad88('0x2')](respondWithResult(_0x47733a,null))[_0x5dad88('0x1')](handleError(_0x47733a,null));},exports[_0xc6fb18('0x13')]=function(_0x237756,_0x47c1cc){const _0x73cc65=_0xc6fb18;let _0x1b9158;return db[_0x73cc65('0x51')][_0x73cc65('0x2f')]({'where':{'id':_0x237756[_0x73cc65('0x48')]['id']}})[_0x73cc65('0x2')](function(_0x15a182){return _0x1b9158=_0x15a182,_0x15a182;})['then'](handleEntityNotFound(_0x47c1cc,null))[_0x73cc65('0x2')](removeEntity(_0x47c1cc,null))[_0x73cc65('0x2')](function(){const _0x3c8fa2=_0x73cc65;if(_0x1b9158)return db[_0x3c8fa2('0x51')]['findAll']({'where':{'type':_0x1b9158[_0x3c8fa2('0x27')]},'raw':!![]});})[_0x73cc65('0x2')](function(_0x48c761){const _0x1f33a1=_0x73cc65;if(_0x1b9158['type'][_0x1f33a1('0x4b')]()==_0x1f33a1('0x1c')){const _0x243a43=fs[_0x1f33a1('0x54')](path[_0x1f33a1('0x4c')](config[_0x1f33a1('0x1e')],'files/templates/stun_multiple.ejs'),_0x1f33a1('0x4e')),_0x322ade=ejs[_0x1f33a1('0x4f')](_0x243a43,{'networks':_0x48c761||[]});return fs['writeFileSync'](_0x1f33a1('0x49'),_0x322ade),respondWithRpcPromise(_0x1f33a1('0xe'),_0x1f33a1('0x13'),{'module':_0x1f33a1('0x26')});}else{if(_0x1b9158[_0x1f33a1('0x27')]['toUpperCase']()==_0x1f33a1('0x52')){const _0x50dbcb=fs[_0x1f33a1('0x54')](path[_0x1f33a1('0x4c')](config[_0x1f33a1('0x1e')],_0x1f33a1('0x2d')),_0x1f33a1('0x4e')),_0x223487=ejs[_0x1f33a1('0x4f')](_0x50dbcb,{'networks':_0x48c761||[]});return fs[_0x1f33a1('0x2b')](_0x1f33a1('0x39'),_0x223487),respondWithRpcPromise(_0x1f33a1('0xe'),_0x1f33a1('0x13'),{'module':_0x1f33a1('0x26')});}else{const _0x24218b=fs[_0x1f33a1('0x54')](path[_0x1f33a1('0x4c')](config[_0x1f33a1('0x1e')],'files/templates/network.ejs'),'utf8'),_0xd7311a=ejs[_0x1f33a1('0x4f')](_0x24218b,{'networks':_0x48c761||[]});return fs[_0x1f33a1('0x2b')](util['format'](_0x1f33a1('0x11'),_0x237756[_0x1f33a1('0x30')][_0x1f33a1('0x27')]['toLowerCase']()),_0xd7311a),respondWithRpcPromise(_0x1f33a1('0xe'),_0x1f33a1('0x13'),{'module':'chan_sip.so'});}}})[_0x73cc65('0x1')](handleError(_0x47c1cc,null));}; \ No newline at end of file +const a550_0x2737=['index','create','length','message','includeAll','files/templates/turn_multiple.ejs','error','like','sequelize','Content-Range','utf8','then','attributes','destroy','query','res_stun_monitor.so','request','chan_sip.so','path','../../mysqldb','Reload','VIRTUAL','join','jayson/promise','update','json','end','order','keys','map','include','pick','../../config/logger','count','/etc/asterisk/sip_xcally_%s.conf','transaction','client','type','name','toUpperCase','root','catch','send','filters','body','merge','nolimit','writeFileSync','STUN','files/templates/network.ejs','files/templates/stun_multiple.ejs','rows','ejs','api','result','sort','stringify','intersection','params','/etc/asterisk/turn_xcally.conf','set','lodash','server/files/templates/stun_multiple.ejs','status','filter','fields','offset','key','render','findOne','Network,\x20%s,\x20%s','toLowerCase','where','Network','findAll','readFileSync','undefined','TURN','stack','show','options','model','Network,\x20%s,\x20%s,\x20%s','format','request\x20sent','limit'];(function(_0x3718b0,_0x1c3bba){const _0x2737a5=function(_0xe520a2){while(--_0xe520a2){_0x3718b0['push'](_0x3718b0['shift']());}};_0x2737a5(++_0x1c3bba);}(a550_0x2737,0x190));const a550_0xe520=function(_0x3718b0,_0x1c3bba){_0x3718b0=_0x3718b0-0x137;let _0x2737a5=a550_0x2737[_0x3718b0];return _0x2737a5;};const a550_0x473a28=a550_0xe520;'use strict';const util=require('util'),path=require(a550_0x473a28(0x167)),ejs=require(a550_0x473a28(0x189)),fs=require('fs'),_=require(a550_0x473a28(0x13c)),qs=require('../../components/parsers/qs'),logger=require(a550_0x473a28(0x175))(a550_0x473a28(0x18a)),config=require('../../config/environment'),{db}=require(a550_0x473a28(0x168)),{Op}=require('sequelize'),jayson=require(a550_0x473a28(0x16c)),client=jayson[a550_0x473a28(0x179)]['http']({'port':0x232a});function respondWithRpcPromise(_0x41208c,_0x5596c3,_0x23f24f,_0x3324b7){return new Promise(function(_0xa879a2,_0x1219fa){const _0x3c7900=a550_0xe520,_0x4142f1=_0x3324b7||client;return _0x4142f1[_0x3c7900(0x165)](_0x41208c,_0x23f24f)[_0x3c7900(0x160)](function(_0x55dc92){const _0x2b8de4=_0x3c7900;logger['info'](_0x2b8de4(0x145),_0x5596c3,_0x2b8de4(0x153)),logger['debug'](_0x2b8de4(0x151),_0x5596c3,_0x2b8de4(0x153),JSON[_0x2b8de4(0x137)](_0x55dc92));if(_0x55dc92[_0x2b8de4(0x15b)]){if(_0x55dc92[_0x2b8de4(0x15b)]['code']===0x1f4)return logger[_0x2b8de4(0x15b)](_0x2b8de4(0x145),_0x5596c3,_0x55dc92[_0x2b8de4(0x15b)][_0x2b8de4(0x158)]),_0x1219fa(_0x55dc92[_0x2b8de4(0x15b)][_0x2b8de4(0x158)]);return logger[_0x2b8de4(0x15b)](_0x2b8de4(0x145),_0x5596c3,_0x55dc92[_0x2b8de4(0x15b)][_0x2b8de4(0x158)]),_0xa879a2(_0x55dc92[_0x2b8de4(0x15b)][_0x2b8de4(0x158)]);}else logger['info']('Network,\x20%s,\x20%s',_0x5596c3,_0x2b8de4(0x153)),_0xa879a2(_0x55dc92[_0x2b8de4(0x18b)][_0x2b8de4(0x158)]);})[_0x3c7900(0x17e)](function(_0x2b596b){const _0x13d5f0=_0x3c7900;logger[_0x13d5f0(0x15b)](_0x13d5f0(0x145),_0x5596c3,_0x2b596b),_0x1219fa(_0x2b596b);});});}function respondWithResult(_0x141979,_0x336477){return _0x336477=_0x336477||0xc8,function(_0x3b571e){const _0x1705fe=a550_0xe520;if(_0x3b571e)return _0x141979[_0x1705fe(0x13e)](_0x336477)[_0x1705fe(0x16e)](_0x3b571e);};}function respondWithFilteredResult(_0xac8d09,_0x4d2153){return function(_0x214e36){const _0x25260a=a550_0xe520;if(_0x214e36){const _0x324e56=_0x214e36['count'],_0x128d9e=_0x4d2153['offset'];let _0x116f80=_0x4d2153[_0x25260a(0x141)]+_0x4d2153[_0x25260a(0x154)],_0x269413;return _0x116f80>=_0x324e56?(_0x116f80=_0x324e56,_0x269413=0xc8):_0x269413=0xce,_0xac8d09['status'](_0x269413),_0xac8d09[_0x25260a(0x13b)](_0x25260a(0x15e),_0x128d9e+'-'+_0x116f80+'/'+_0x324e56)['json'](_0x214e36);}return null;};}function saveUpdates(_0x4a3cb6){return function(_0x4a519b){const _0x2b5c3a=a550_0xe520;if(_0x4a519b)return _0x4a519b['update'](_0x4a3cb6)[_0x2b5c3a(0x160)](function(_0x16155a){return _0x16155a;});return null;};}function removeEntity(_0x30093f){return function(_0xd9819f){const _0x31131a=a550_0xe520;if(_0xd9819f)return _0xd9819f['destroy']()[_0x31131a(0x160)](function(){const _0x2900ee=_0x31131a;_0x30093f[_0x2900ee(0x13e)](0xcc)[_0x2900ee(0x16f)]();});};}function handleEntityNotFound(_0x4cf9e7){return function(_0x19cd02){return!_0x19cd02&&_0x4cf9e7['sendStatus'](0x194),_0x19cd02;};}function handleError(_0x3fb0f7,_0x299a2b){return _0x299a2b=_0x299a2b||0x1f4,function(_0x3e89ab){const _0x23bf74=a550_0xe520;logger[_0x23bf74(0x15b)](_0x3e89ab[_0x23bf74(0x14d)]),_0x3e89ab[_0x23bf74(0x17b)]&&delete _0x3e89ab[_0x23bf74(0x17b)],_0x3fb0f7[_0x23bf74(0x13e)](_0x299a2b)[_0x23bf74(0x17f)](_0x3e89ab);};}exports[a550_0x473a28(0x155)]=function(_0x2e9481,_0x460609){const _0x25228d=a550_0x473a28;let _0x37a302={};const _0x45ad7f={},_0x172a58={'count':0x0,'rows':[]},_0x4259c8=_[_0x25228d(0x172)](db[_0x25228d(0x148)]['rawAttributes'],function(_0x1249c0){const _0x565a87=_0x25228d;return{'name':_0x1249c0['fieldName'],'type':_0x1249c0[_0x565a87(0x17a)][_0x565a87(0x142)]};});_0x45ad7f['model']=_[_0x25228d(0x172)](_0x4259c8,'name'),_0x45ad7f[_0x25228d(0x163)]=_[_0x25228d(0x171)](_0x2e9481['query']),_0x45ad7f[_0x25228d(0x180)]=_['intersection'](_0x45ad7f[_0x25228d(0x150)],_0x45ad7f[_0x25228d(0x163)]),_0x37a302[_0x25228d(0x161)]=_[_0x25228d(0x138)](_0x45ad7f[_0x25228d(0x150)],qs[_0x25228d(0x140)](_0x2e9481[_0x25228d(0x163)]['fields'])),_0x37a302['attributes']=_0x37a302[_0x25228d(0x161)][_0x25228d(0x157)]?_0x37a302[_0x25228d(0x161)]:_0x45ad7f[_0x25228d(0x150)];typeof _0x2e9481[_0x25228d(0x163)][_0x25228d(0x183)]===_0x25228d(0x14b)&&(_0x37a302[_0x25228d(0x154)]=qs[_0x25228d(0x154)](_0x2e9481['query'][_0x25228d(0x154)]),_0x37a302[_0x25228d(0x141)]=qs[_0x25228d(0x141)](_0x2e9481[_0x25228d(0x163)][_0x25228d(0x141)]));_0x37a302[_0x25228d(0x170)]=qs[_0x25228d(0x18c)](_0x2e9481[_0x25228d(0x163)][_0x25228d(0x18c)]),_0x37a302[_0x25228d(0x147)]=qs[_0x25228d(0x180)](_[_0x25228d(0x174)](_0x2e9481[_0x25228d(0x163)],_0x45ad7f['filters']),_0x4259c8);_0x2e9481[_0x25228d(0x163)][_0x25228d(0x13f)]&&(_0x37a302[_0x25228d(0x147)]=_['merge'](_0x37a302[_0x25228d(0x147)],{[Op['or']]:_[_0x25228d(0x172)](_0x4259c8,function(_0x14257e){const _0x4250ff=_0x25228d;if(_0x14257e[_0x4250ff(0x17a)]!==_0x4250ff(0x16a)){const _0x570a37={};return _0x570a37[_0x14257e[_0x4250ff(0x17b)]]={[Op[_0x4250ff(0x15c)]]:'%'+_0x2e9481[_0x4250ff(0x163)][_0x4250ff(0x13f)]+'%'},_0x570a37;}})}));_0x37a302=_[_0x25228d(0x182)]({},_0x37a302,_0x2e9481['options']);const _0x154dca={'where':_0x37a302[_0x25228d(0x147)]};return db[_0x25228d(0x148)][_0x25228d(0x176)](_0x154dca)['then'](function(_0x4ef213){const _0x43294a=_0x25228d;return _0x172a58[_0x43294a(0x176)]=_0x4ef213,_0x2e9481[_0x43294a(0x163)][_0x43294a(0x159)]&&(_0x37a302[_0x43294a(0x173)]=[{'all':!![]}]),db['Network'][_0x43294a(0x149)](_0x37a302);})[_0x25228d(0x160)](function(_0x265883){const _0x74ec6f=_0x25228d;return _0x172a58[_0x74ec6f(0x188)]=_0x265883,_0x172a58;})['then'](respondWithFilteredResult(_0x460609,_0x37a302))[_0x25228d(0x17e)](handleError(_0x460609,null));},exports[a550_0x473a28(0x14e)]=function(_0x2b9423,_0x20561c){const _0x18bafa=a550_0x473a28;let _0x1f0178={'raw':!![],'where':{'id':_0x2b9423['params']['id']}};const _0x3370d3={};return _0x3370d3['model']=_['keys'](db[_0x18bafa(0x148)]['rawAttributes']),_0x3370d3['query']=_[_0x18bafa(0x171)](_0x2b9423[_0x18bafa(0x163)]),_0x3370d3[_0x18bafa(0x180)]=_[_0x18bafa(0x138)](_0x3370d3[_0x18bafa(0x150)],_0x3370d3['query']),_0x1f0178[_0x18bafa(0x161)]=_[_0x18bafa(0x138)](_0x3370d3['model'],qs[_0x18bafa(0x140)](_0x2b9423['query'][_0x18bafa(0x140)])),_0x1f0178[_0x18bafa(0x161)]=_0x1f0178[_0x18bafa(0x161)]['length']?_0x1f0178[_0x18bafa(0x161)]:_0x3370d3[_0x18bafa(0x150)],_0x2b9423[_0x18bafa(0x163)][_0x18bafa(0x159)]&&(_0x1f0178[_0x18bafa(0x173)]=[{'all':!![]}]),_0x1f0178=_[_0x18bafa(0x182)]({},_0x1f0178,_0x2b9423[_0x18bafa(0x14f)]),db[_0x18bafa(0x148)][_0x18bafa(0x144)](_0x1f0178)[_0x18bafa(0x160)](handleEntityNotFound(_0x20561c,null))[_0x18bafa(0x160)](respondWithResult(_0x20561c,null))[_0x18bafa(0x17e)](handleError(_0x20561c,null));},exports[a550_0x473a28(0x156)]=function(_0xe71103,_0x6d4aa5){const _0x1090c6=a550_0x473a28;let _0x4aba57;return db['sequelize'][_0x1090c6(0x178)](function(){const _0x328d70=_0x1090c6;return db['Network'][_0x328d70(0x156)](_0xe71103['body'],{'raw':!![]})[_0x328d70(0x160)](function(_0x324990){const _0x2dc39d=_0x328d70;return _0x4aba57=_0x324990,db[_0x2dc39d(0x148)][_0x2dc39d(0x149)]({'where':{'type':_0xe71103[_0x2dc39d(0x181)]['type']},'raw':!![]});})[_0x328d70(0x160)](function(_0x2c2f06){const _0x364de9=_0x328d70;if(_0x4aba57['type'][_0x364de9(0x17c)]()==_0x364de9(0x185)){const _0x589123=fs[_0x364de9(0x14a)](path[_0x364de9(0x16b)](config[_0x364de9(0x17d)],_0x364de9(0x13d)),_0x364de9(0x15f)),_0xb49454=ejs[_0x364de9(0x143)](_0x589123,{'networks':_0x2c2f06||[]});return fs[_0x364de9(0x184)]('/etc/asterisk/stun_xcally.conf',_0xb49454),respondWithRpcPromise(_0x364de9(0x169),_0x364de9(0x156),{'module':_0x364de9(0x164)});}else{if(_0x4aba57[_0x364de9(0x17a)]['toUpperCase']()==_0x364de9(0x14c)){const _0xbc45ff=fs['readFileSync'](path[_0x364de9(0x16b)](config[_0x364de9(0x17d)],'server/files/templates/turn_multiple.ejs'),_0x364de9(0x15f)),_0x2bf100=ejs[_0x364de9(0x143)](_0xbc45ff,{'networks':_0x2c2f06||[]});return fs[_0x364de9(0x184)]('/etc/asterisk/turn_xcally.conf',_0x2bf100),respondWithRpcPromise('Reload',_0x364de9(0x156),{'module':_0x364de9(0x164)});}else{const _0x3302c8=fs['readFileSync'](path['join'](config[_0x364de9(0x17d)],_0x364de9(0x186)),_0x364de9(0x15f)),_0x5759bb=ejs[_0x364de9(0x143)](_0x3302c8,{'networks':_0x2c2f06||[]});return fs[_0x364de9(0x184)](util['format'](_0x364de9(0x177),_0xe71103[_0x364de9(0x181)][_0x364de9(0x17a)][_0x364de9(0x146)]()),_0x5759bb),respondWithRpcPromise(_0x364de9(0x169),_0x364de9(0x156),{'module':_0x364de9(0x166)});}}})[_0x328d70(0x160)](function(){return _0x4aba57;});})[_0x1090c6(0x160)](respondWithResult(_0x6d4aa5,0xc9))['catch'](handleError(_0x6d4aa5,null));},exports[a550_0x473a28(0x16d)]=function(_0x45dd8d,_0x11efaf){const _0x3a637b=a550_0x473a28;let _0xec47f0;return db[_0x3a637b(0x15d)][_0x3a637b(0x178)](function(){const _0x87f86d=_0x3a637b;return db['Network'][_0x87f86d(0x144)]({'where':{'id':_0x45dd8d[_0x87f86d(0x139)]['id']}})[_0x87f86d(0x160)](handleEntityNotFound(_0x11efaf,null))[_0x87f86d(0x160)](saveUpdates(_0x45dd8d['body'],null))[_0x87f86d(0x160)](function(_0x1e4cf9){const _0x5e981a=_0x87f86d;if(_0x1e4cf9)return _0xec47f0=_0x1e4cf9,db['Network'][_0x5e981a(0x149)]({'where':{'type':_0xec47f0[_0x5e981a(0x17a)]},'raw':!![]});return null;})[_0x87f86d(0x160)](function(_0x360eeb){const _0x366a0f=_0x87f86d;if(_0xec47f0[_0x366a0f(0x17a)]['toUpperCase']()==_0x366a0f(0x185)){const _0x27f20c=fs[_0x366a0f(0x14a)](path['join'](config[_0x366a0f(0x17d)],'server/files/templates/stun_multiple.ejs'),_0x366a0f(0x15f)),_0x23ef13=ejs['render'](_0x27f20c,{'networks':_0x360eeb||[]});return fs['writeFileSync']('/etc/asterisk/stun_xcally.conf',_0x23ef13),respondWithRpcPromise(_0x366a0f(0x169),'update',{'module':_0x366a0f(0x164)});}else{if(_0xec47f0[_0x366a0f(0x17a)]['toUpperCase']()=='TURN'){const _0x1baea1=fs[_0x366a0f(0x14a)](path[_0x366a0f(0x16b)](config['root'],'server/files/templates/turn_multiple.ejs'),_0x366a0f(0x15f)),_0x51ebdb=ejs[_0x366a0f(0x143)](_0x1baea1,{'networks':_0x360eeb||[]});return fs[_0x366a0f(0x184)](_0x366a0f(0x13a),_0x51ebdb),respondWithRpcPromise('Reload','update',{'module':_0x366a0f(0x164)});}else{const _0x471a6d=fs['readFileSync'](path[_0x366a0f(0x16b)](config[_0x366a0f(0x17d)],_0x366a0f(0x186)),_0x366a0f(0x15f)),_0x250ac9=ejs[_0x366a0f(0x143)](_0x471a6d,{'networks':_0x360eeb||[]});return fs[_0x366a0f(0x184)](util[_0x366a0f(0x152)](_0x366a0f(0x177),_0x45dd8d[_0x366a0f(0x181)][_0x366a0f(0x17a)][_0x366a0f(0x146)]()),_0x250ac9),respondWithRpcPromise(_0x366a0f(0x169),_0x366a0f(0x16d),{'module':_0x366a0f(0x166)});}}})[_0x87f86d(0x160)](function(_0x403cdb){if(_0x403cdb)return _0xec47f0;return null;});})[_0x3a637b(0x160)](respondWithResult(_0x11efaf,null))[_0x3a637b(0x17e)](handleError(_0x11efaf,null));},exports[a550_0x473a28(0x162)]=function(_0x29e411,_0x5ba9d9){const _0x11c5c3=a550_0x473a28;let _0x37ed2c;return db[_0x11c5c3(0x148)]['findOne']({'where':{'id':_0x29e411['params']['id']}})[_0x11c5c3(0x160)](function(_0x64da5a){return _0x37ed2c=_0x64da5a,_0x64da5a;})[_0x11c5c3(0x160)](handleEntityNotFound(_0x5ba9d9,null))[_0x11c5c3(0x160)](removeEntity(_0x5ba9d9,null))[_0x11c5c3(0x160)](function(){const _0x53a7f2=_0x11c5c3;if(_0x37ed2c)return db[_0x53a7f2(0x148)]['findAll']({'where':{'type':_0x37ed2c[_0x53a7f2(0x17a)]},'raw':!![]});})[_0x11c5c3(0x160)](function(_0x2afc01){const _0x3520b7=_0x11c5c3;if(_0x37ed2c[_0x3520b7(0x17a)][_0x3520b7(0x17c)]()==_0x3520b7(0x185)){const _0x5d8be0=fs[_0x3520b7(0x14a)](path[_0x3520b7(0x16b)](config[_0x3520b7(0x17d)],_0x3520b7(0x187)),_0x3520b7(0x15f)),_0x556365=ejs[_0x3520b7(0x143)](_0x5d8be0,{'networks':_0x2afc01||[]});return fs['writeFileSync']('/etc/asterisk/stun_xcally.conf',_0x556365),respondWithRpcPromise(_0x3520b7(0x169),_0x3520b7(0x162),{'module':_0x3520b7(0x164)});}else{if(_0x37ed2c['type'][_0x3520b7(0x17c)]()==_0x3520b7(0x14c)){const _0x1c55d8=fs[_0x3520b7(0x14a)](path[_0x3520b7(0x16b)](config['root'],_0x3520b7(0x15a)),'utf8'),_0x2eeac5=ejs[_0x3520b7(0x143)](_0x1c55d8,{'networks':_0x2afc01||[]});return fs[_0x3520b7(0x184)](_0x3520b7(0x13a),_0x2eeac5),respondWithRpcPromise(_0x3520b7(0x169),_0x3520b7(0x162),{'module':_0x3520b7(0x164)});}else{const _0x55de07=fs['readFileSync'](path[_0x3520b7(0x16b)](config['root'],_0x3520b7(0x186)),_0x3520b7(0x15f)),_0x3ffafc=ejs[_0x3520b7(0x143)](_0x55de07,{'networks':_0x2afc01||[]});return fs['writeFileSync'](util[_0x3520b7(0x152)](_0x3520b7(0x177),_0x29e411[_0x3520b7(0x181)][_0x3520b7(0x17a)][_0x3520b7(0x146)]()),_0x3ffafc),respondWithRpcPromise(_0x3520b7(0x169),_0x3520b7(0x162),{'module':_0x3520b7(0x166)});}}})['catch'](handleError(_0x5ba9d9,null));}; \ No newline at end of file diff --git a/server/api/network/network.model.js b/server/api/network/network.model.js index 4ce1ac2..a6a06dc 100644 --- a/server/api/network/network.model.js +++ b/server/api/network/network.model.js @@ -1 +1 @@ -const a458_0x27bc=['Network','network','exports','define'];(function(_0x5cb768,_0x27bc61){const _0x5d0850=function(_0x56ce09){while(--_0x56ce09){_0x5cb768['push'](_0x5cb768['shift']());}};_0x5d0850(++_0x27bc61);}(a458_0x27bc,0x1d9));const a458_0x5d08=function(_0x5cb768,_0x27bc61){_0x5cb768=_0x5cb768-0x0;let _0x5d0850=a458_0x27bc[_0x5cb768];return _0x5d0850;};const _0x40a247=a458_0x5d08;'use strict';const attributes=require('./network.attributes');module[_0x40a247('0x1')]=function(_0x56ce09){const _0x1eb19b=_0x40a247,_0x5c4370=_0x56ce09[_0x1eb19b('0x2')](_0x1eb19b('0x3'),attributes,{'tableName':_0x1eb19b('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x5c4370;}; \ No newline at end of file +const a551_0x4a66=['init','function','./network.attributes','./network.options','Network','exports'];(function(_0x48674d,_0x5ad6d2){const _0x4a662e=function(_0x394e01){while(--_0x394e01){_0x48674d['push'](_0x48674d['shift']());}};_0x4a662e(++_0x5ad6d2);}(a551_0x4a66,0x6b));const a551_0x394e=function(_0x48674d,_0x5ad6d2){_0x48674d=_0x48674d-0x1e0;let _0x4a662e=a551_0x4a66[_0x48674d];return _0x4a662e;};const a551_0x2b79aa=a551_0x394e;'use strict';const {Model}=require('sequelize'),{attributes}=require(a551_0x2b79aa(0x1e3)),{options}=require(a551_0x2b79aa(0x1e4));class Network extends Model{}function init(_0x1a0ed8,_0x1dac99){const _0x4c80d6=a551_0x2b79aa,_0x2a2b8d=options(_0x1a0ed8),_0x31de7e=typeof _0x1dac99===_0x4c80d6(0x1e2)?_0x1dac99(_0x2a2b8d):_0x2a2b8d;return Network[_0x4c80d6(0x1e1)](attributes,_0x31de7e),Network;}module[a551_0x2b79aa(0x1e0)][a551_0x2b79aa(0x1e5)]=Network,module[a551_0x2b79aa(0x1e0)][a551_0x2b79aa(0x1e1)]=init; \ No newline at end of file diff --git a/server/api/network/network.options.js b/server/api/network/network.options.js new file mode 100644 index 0000000..9c12b76 --- /dev/null +++ b/server/api/network/network.options.js @@ -0,0 +1 @@ +var a552_0x480a=['exports','options'];(function(_0x202782,_0x482d7e){var _0x480ae9=function(_0x25d9cb){while(--_0x25d9cb){_0x202782['push'](_0x202782['shift']());}};_0x480ae9(++_0x482d7e);}(a552_0x480a,0x112));var a552_0x25d9=function(_0x202782,_0x482d7e){_0x202782=_0x202782-0xc0;var _0x480ae9=a552_0x480a[_0x202782];return _0x480ae9;};var a552_0xb44eda=a552_0x25d9;function options(_0x3f94ac){return{'sequelize':_0x3f94ac,'tableName':'network','paranoid':![],'indexes':[],'timestamps':!![]};}module[a552_0xb44eda(0xc0)][a552_0xb44eda(0xc1)]=options; \ No newline at end of file diff --git a/server/api/notification/index.js b/server/api/notification/index.js index 3732522..d16bad7 100644 --- a/server/api/notification/index.js +++ b/server/api/notification/index.js @@ -1 +1 @@ -const a459_0x1fe0=['sendNotification','express','exports','./notification.controller','Router','../../components/auth/service'];(function(_0x3b936b,_0x1fe0a0){const _0x2fcdcf=function(_0x433ee4){while(--_0x433ee4){_0x3b936b['push'](_0x3b936b['shift']());}};_0x2fcdcf(++_0x1fe0a0);}(a459_0x1fe0,0x93));const a459_0x2fcd=function(_0x3b936b,_0x1fe0a0){_0x3b936b=_0x3b936b-0x0;let _0x2fcdcf=a459_0x1fe0[_0x3b936b];return _0x2fcdcf;};const _0x93e0c9=a459_0x2fcd;'use strict';const express=require(_0x93e0c9('0x4')),router=express[_0x93e0c9('0x1')](),auth=require(_0x93e0c9('0x2')),controller=require(_0x93e0c9('0x0'));router['post']('/',auth['isAuthenticated'](),controller[_0x93e0c9('0x3')]),module[_0x93e0c9('0x5')]=router; \ No newline at end of file +const a553_0x35e9=['../../components/auth/service','isAuthenticated','./notification.controller','exports'];(function(_0x52af33,_0x33c42a){const _0x35e96b=function(_0x4f7ee8){while(--_0x4f7ee8){_0x52af33['push'](_0x52af33['shift']());}};_0x35e96b(++_0x33c42a);}(a553_0x35e9,0x187));const a553_0x4f7e=function(_0x52af33,_0x33c42a){_0x52af33=_0x52af33-0xdd;let _0x35e96b=a553_0x35e9[_0x52af33];return _0x35e96b;};const a553_0x3c80c0=a553_0x4f7e;'use strict';const express=require('express'),router=express['Router'](),auth=require(a553_0x3c80c0(0xde)),controller=require(a553_0x3c80c0(0xe0));router['post']('/',auth[a553_0x3c80c0(0xdf)](),controller['sendNotification']),module[a553_0x3c80c0(0xdd)]=router; \ No newline at end of file diff --git a/server/api/notification/notification.attributes.js b/server/api/notification/notification.attributes.js index 30b3bbd..f391b7f 100644 --- a/server/api/notification/notification.attributes.js +++ b/server/api/notification/notification.attributes.js @@ -1 +1 @@ -const a460_0x2100=['exports','TEXT','sequelize','STRING'];(function(_0x1e61b2,_0x2100aa){const _0x270fec=function(_0x2678b9){while(--_0x2678b9){_0x1e61b2['push'](_0x1e61b2['shift']());}};_0x270fec(++_0x2100aa);}(a460_0x2100,0x92));const a460_0x270f=function(_0x1e61b2,_0x2100aa){_0x1e61b2=_0x1e61b2-0x0;let _0x270fec=a460_0x2100[_0x1e61b2];return _0x270fec;};const _0x2dce8e=a460_0x270f;'use strict';const Sequelize=require(_0x2dce8e('0x0'));module[_0x2dce8e('0x2')]={'body':{'type':Sequelize[_0x2dce8e('0x3')]},'senderName':{'type':Sequelize[_0x2dce8e('0x1')]},'recipientsId':{'type':Sequelize['TEXT']},'recipientsDescription':{'type':Sequelize[_0x2dce8e('0x1')]},'beep':{'type':Sequelize['BOOLEAN']}}; \ No newline at end of file +const a554_0x1558=['attributes','exports','STRING','BOOLEAN','TEXT'];(function(_0x33ea3d,_0x4abf47){const _0x1558c0=function(_0x26b80e){while(--_0x26b80e){_0x33ea3d['push'](_0x33ea3d['shift']());}};_0x1558c0(++_0x4abf47);}(a554_0x1558,0xae));const a554_0x26b8=function(_0x33ea3d,_0x4abf47){_0x33ea3d=_0x33ea3d-0x9f;let _0x1558c0=a554_0x1558[_0x33ea3d];return _0x1558c0;};const a554_0x2c8d20=a554_0x26b8;'use strict';const {DataTypes}=require('sequelize'),attributes={'body':{'type':DataTypes[a554_0x2c8d20(0x9f)]},'senderName':{'type':DataTypes['STRING']},'recipientsId':{'type':DataTypes[a554_0x2c8d20(0x9f)]},'recipientsDescription':{'type':DataTypes[a554_0x2c8d20(0xa2)]},'beep':{'type':DataTypes[a554_0x2c8d20(0xa3)]}};module[a554_0x2c8d20(0xa1)][a554_0x2c8d20(0xa0)]=attributes; \ No newline at end of file diff --git a/server/api/notification/notification.controller.js b/server/api/notification/notification.controller.js index 9d1422d..acca12e 100644 --- a/server/api/notification/notification.controller.js +++ b/server/api/notification/notification.controller.js @@ -1 +1 @@ -const a461_0x9a48=['fullname','undefined','mailqueue','sequelize','TemplateId','error','status','smsqueue','findOne','recipientsId','body','replace','Invalid\x20model\x20in\x20\x27recipients\x27\x20object','recipientsDescription','stack','map','includes','Notification','./notification.socket','Invalid\x20\x27TemplateId\x27\x20parameter','Template','user','Must\x20specify\x20at\x20least\x20one\x20argument\x20for\x20\x27text\x27\x20or\x20\x27TemplateId\x27','User','some','getAgents','openchannelqueue','voicequeue','text','lodash','Missing\x20\x27view\x27\x20parameter','ids','SenderId','recipient','render','push','team','json','flatten','senderName','startCase','view','chatqueue','join','../../rediscache','then','../../config/logger','name','Missing\x20\x27recipients\x27\x20parameter','model','Invalid\x20\x27recipients\x27\x20object','api','notification:send','register','catch','queue','transaction','all','create','recipients','forEach','union','faxqueue','beep'];(function(_0x5a288f,_0x9a48cc){const _0x5c31ce=function(_0x1084c9){while(--_0x1084c9){_0x5a288f['push'](_0x5a288f['shift']());}};_0x5c31ce(++_0x9a48cc);}(a461_0x9a48,0xc2));const a461_0x5c31=function(_0x5a288f,_0x9a48cc){_0x5a288f=_0x5a288f-0x0;let _0x5c31ce=a461_0x9a48[_0x5a288f];return _0x5c31ce;};const _0x306323=a461_0x5c31;'use strict';const Mustache=require('mustache'),_=require(_0x306323('0x1b')),logger=require(_0x306323('0x2c'))(_0x306323('0x31')),{getSocket}=require(_0x306323('0x2a')),socket=getSocket(),db=require('../../mysqldb')['db'],{ValidationError}=require(_0x306323('0x1'));require(_0x306323('0x10'))[_0x306323('0x33')](socket);function respondWithResult(_0x1084c9,_0x16227e){return _0x16227e=_0x16227e||0xc8,function(_0xed2c7){const _0x33ab92=a461_0x5c31;if(_0xed2c7)return _0x1084c9[_0x33ab92('0x4')](_0x16227e)[_0x33ab92('0x23')](_0xed2c7);};}function handleError(_0x441e5c,_0x31d6c8){return _0x31d6c8=_0x31d6c8||0x1f4,function(_0x17d191){const _0x59a384=a461_0x5c31;logger[_0x59a384('0x3')](_0x17d191[_0x59a384('0xc')]),_0x17d191[_0x59a384('0x2d')]&&delete _0x17d191[_0x59a384('0x2d')],_0x441e5c[_0x59a384('0x4')](_0x31d6c8)['send'](_0x17d191);};}exports['sendNotification']=function(_0x5eb7b2,_0x53914e){const _0x231290=_0x306323;let _0x31ed6e=[];if(typeof _0x5eb7b2['body'][_0x231290('0x1a')]===_0x231290('0x3f')&&typeof _0x5eb7b2['body'][_0x231290('0x2')]===_0x231290('0x3f'))throw new ValidationError(_0x231290('0x14'));else{if(typeof _0x5eb7b2[_0x231290('0x8')][_0x231290('0x2')]!==_0x231290('0x3f')&&typeof _0x5eb7b2['body']['view']==='undefined')throw new ValidationError(_0x231290('0x1c'));if(typeof _0x5eb7b2['body'][_0x231290('0x39')]==='undefined')throw new ValidationError(_0x231290('0x2e'));else{try{_0x31ed6e=JSON['parse'](_0x5eb7b2[_0x231290('0x8')][_0x231290('0x39')]);}catch(_0x5f2d86){logger[_0x231290('0x3')](_0x5f2d86);throw new ValidationError(_0x231290('0x30'));}const _0x1b9957=[_0x231290('0x28'),_0x231290('0x3c'),_0x231290('0x0'),_0x231290('0x18'),_0x231290('0x5'),_0x231290('0x19'),'whatsappqueue',_0x231290('0x22'),_0x231290('0x13')];if(_[_0x231290('0x16')](_0x31ed6e,function(_0x3ea75e){const _0x1d6f60=_0x231290;return!_[_0x1d6f60('0xe')](_0x1b9957,_0x3ea75e['model']['toLowerCase']());}))throw new ValidationError(_0x231290('0xa'));}}const _0xd21338={};return _0xd21338['senderName']=_0x5eb7b2[_0x231290('0x8')][_0x231290('0x25')]?_0x5eb7b2[_0x231290('0x8')]['senderName']:_0x5eb7b2[_0x231290('0x13')][_0x231290('0x3e')],_0xd21338[_0x231290('0xb')]=_['isEmpty'](_0x5eb7b2[_0x231290('0x8')][_0x231290('0xb')])?null:_0x5eb7b2[_0x231290('0x8')][_0x231290('0xb')],_0xd21338[_0x231290('0x3d')]=_0x5eb7b2['body'][_0x231290('0x3d')]||![],_0xd21338[_0x231290('0x1e')]=_0x5eb7b2[_0x231290('0x13')]['id'],getContent(_0x5eb7b2['body'])[_0x231290('0x2b')](function(_0x595d17){return _0xd21338['body']=_0x595d17,getRecipients(_0x31ed6e);})[_0x231290('0x2b')](function(_0x130bc2){const _0x569088=_0x231290;return _0xd21338[_0x569088('0x7')]=_['sortBy'](_0x130bc2)[_0x569088('0x29')](','),db[_0x569088('0x1')][_0x569088('0x36')](function(_0x4bada7){const _0x276876=_0x569088;return db[_0x276876('0xf')][_0x276876('0x38')](_0xd21338,{'raw':!![],'transaction':_0x4bada7})[_0x276876('0x2b')](function(_0x33ab9a){const _0x1ec77f=_0x276876,_0x332055={'sender':_0xd21338['senderName'],'description':_0xd21338['recipientsDescription'],'content':_0xd21338['body'],'beep':_0xd21338[_0x1ec77f('0x3d')]};return _0x130bc2[_0x1ec77f('0x3a')](function(_0x5b3e98){const _0x2d3ec6=_0x1ec77f;_0x332055[_0x2d3ec6('0x1f')]=_0x5b3e98,socket['emit'](_0x2d3ec6('0x32'),_0x332055);}),_0x33ab9a;});});})[_0x231290('0x2b')](respondWithResult(_0x53914e,0xc9))['catch'](handleError(_0x53914e,null));};function getContent(_0x1805a3){return new Promise(function(_0x52904b,_0x38819f){const _0x56410c=a461_0x5c31;if(_0x1805a3[_0x56410c('0x1a')]){_0x52904b(_0x1805a3['text']);return;}return db[_0x56410c('0x12')][_0x56410c('0x6')]({'attributes':['html'],'where':{'id':_0x1805a3[_0x56410c('0x2')]},'raw':!![]})[_0x56410c('0x2b')](function(_0x1124c4){const _0x53b0b8=_0x56410c;if(!_0x1124c4)throw new ValidationError(_0x53b0b8('0x11'));const _0x453abc=Mustache[_0x53b0b8('0x20')](_0x1124c4['html'],_0x1805a3[_0x53b0b8('0x27')]);_0x52904b(_0x453abc);})['catch'](function(_0x2bbe30){_0x38819f(_0x2bbe30);});});}function getRecipients(_0x2dd494){return new Promise(function(_0x5e178a,_0x36c6c5){const _0x21ba4f=a461_0x5c31;let _0x34c9dd=[];const _0x5e111f=[];return _0x2dd494[_0x21ba4f('0x3a')](function(_0x9b5a23){const _0x404cf8=_0x21ba4f;let _0x1e5c70=_[_0x404cf8('0x26')](_0x9b5a23[_0x404cf8('0x2f')]['toLowerCase']());if(_0x1e5c70===_0x404cf8('0x15'))_0x34c9dd=_[_0x404cf8('0x3b')](_0x34c9dd,_0x9b5a23[_0x404cf8('0x1d')]);else{if(_['includes'](_0x1e5c70,_0x404cf8('0x35')))_0x1e5c70=_0x1e5c70[_0x404cf8('0x9')](_0x404cf8('0x35'),'Queue');_0x9b5a23[_0x404cf8('0x1d')][_0x404cf8('0x3a')](function(_0x56757e){const _0x28aae1=_0x404cf8;_0x5e111f[_0x28aae1('0x21')](getAgents(_0x1e5c70,_0x56757e));});}}),Promise[_0x21ba4f('0x37')](_0x5e111f)[_0x21ba4f('0x2b')](function(_0x27b010){const _0x1e6f0f=_0x21ba4f;_0x34c9dd=_[_0x1e6f0f('0x3b')](_0x34c9dd,_[_0x1e6f0f('0x24')](_0x27b010)),_0x5e178a(_0x34c9dd);})[_0x21ba4f('0x34')](function(_0x2ec994){_0x36c6c5(_0x2ec994);});});}function getAgents(_0x5312a6,_0x4c5da5){return new Promise(function(_0x57e1ee,_0x3c9501){const _0x4cb765=a461_0x5c31;return db[_0x5312a6][_0x4cb765('0x6')]({'where':{'id':_0x4c5da5}})[_0x4cb765('0x2b')](function(_0x3f9a94){const _0x103c73=_0x4cb765;return _0x3f9a94[_0x103c73('0x17')]({'attributes':['id'],'raw':!![]})[_0x103c73('0x2b')](function(_0x47b167){const _0x563a1d=_0x103c73,_0x1e7543=_[_0x563a1d('0xd')](_0x47b167,'id');_0x57e1ee(_0x1e7543);});})[_0x4cb765('0x34')](function(_0x7fb7b4){_0x3c9501(_0x7fb7b4);});});} \ No newline at end of file +const a555_0x54c6=['chatqueue','senderName','Missing\x20\x27recipients\x27\x20parameter','getAgents','voicequeue','beep','all','then','join','includes','body','TemplateId','toLowerCase','transaction','faxqueue','text','mustache','union','api','../../rediscache','undefined','view','forEach','Must\x20specify\x20at\x20least\x20one\x20argument\x20for\x20\x27text\x27\x20or\x20\x27TemplateId\x27','../../config/logger','push','some','isEmpty','queue','name','user','Invalid\x20\x27recipients\x27\x20object','model','findOne','html','catch','recipients','sequelize','replace','Missing\x20\x27view\x27\x20parameter','whatsappqueue','recipient','startCase','recipientsId','flatten','SenderId','mailqueue','recipientsDescription','Template','status','send','map','smsqueue','error','render','create','sendNotification'];(function(_0x542a4f,_0x1d468d){const _0x54c6e2=function(_0x2e6ab6){while(--_0x2e6ab6){_0x542a4f['push'](_0x542a4f['shift']());}};_0x54c6e2(++_0x1d468d);}(a555_0x54c6,0x1de));const a555_0x2e6a=function(_0x542a4f,_0x1d468d){_0x542a4f=_0x542a4f-0x89;let _0x54c6e2=a555_0x54c6[_0x542a4f];return _0x54c6e2;};const a555_0x574ff3=a555_0x2e6a;'use strict';const Mustache=require(a555_0x574ff3(0xbc)),_=require('lodash'),logger=require(a555_0x574ff3(0x8b))(a555_0x574ff3(0xbe)),{getSocket}=require(a555_0x574ff3(0xbf)),socket=getSocket(),{db}=require('../../mysqldb'),{ValidationError}=require('sequelize');require('./notification.socket')['register'](socket);function respondWithResult(_0x47c5b7,_0x37652a){return _0x37652a=_0x37652a||0xc8,function(_0x343ee8){const _0x286f8e=a555_0x2e6a;if(_0x343ee8)return _0x47c5b7[_0x286f8e(0xa4)](_0x37652a)['json'](_0x343ee8);};}function handleError(_0x5d0f60,_0x253677){return _0x253677=_0x253677||0x1f4,function(_0x3c7982){const _0x152126=a555_0x2e6a;logger[_0x152126(0xa8)](_0x3c7982['stack']),_0x3c7982[_0x152126(0x90)]&&delete _0x3c7982[_0x152126(0x90)],_0x5d0f60['status'](_0x253677)[_0x152126(0xa5)](_0x3c7982);};}exports[a555_0x574ff3(0xab)]=function(_0x3aba72,_0x1613d2){const _0x161ffa=a555_0x574ff3;let _0x20d4ed=[];if(typeof _0x3aba72[_0x161ffa(0xb6)][_0x161ffa(0xbb)]===_0x161ffa(0xc0)&&typeof _0x3aba72[_0x161ffa(0xb6)][_0x161ffa(0xb7)]===_0x161ffa(0xc0))throw new ValidationError(_0x161ffa(0x8a));else{if(typeof _0x3aba72[_0x161ffa(0xb6)]['TemplateId']!==_0x161ffa(0xc0)&&typeof _0x3aba72[_0x161ffa(0xb6)][_0x161ffa(0xc1)]===_0x161ffa(0xc0))throw new ValidationError(_0x161ffa(0x9a));if(typeof _0x3aba72['body'][_0x161ffa(0x97)]===_0x161ffa(0xc0))throw new ValidationError(_0x161ffa(0xae));else{try{_0x20d4ed=JSON['parse'](_0x3aba72[_0x161ffa(0xb6)][_0x161ffa(0x97)]);}catch(_0x4ad470){logger[_0x161ffa(0xa8)](_0x4ad470);throw new ValidationError(_0x161ffa(0x92));}const _0x453232=[_0x161ffa(0xac),_0x161ffa(0xba),_0x161ffa(0xa1),'openchannelqueue',_0x161ffa(0xa7),_0x161ffa(0xb0),_0x161ffa(0x9b),'team',_0x161ffa(0x91)];if(_[_0x161ffa(0x8d)](_0x20d4ed,function(_0x3949a4){const _0xf838e3=_0x161ffa;return!_[_0xf838e3(0xb5)](_0x453232,_0x3949a4[_0xf838e3(0x93)][_0xf838e3(0xb8)]());}))throw new ValidationError('Invalid\x20model\x20in\x20\x27recipients\x27\x20object');}}const _0x35d1a7={};return _0x35d1a7[_0x161ffa(0xad)]=_0x3aba72[_0x161ffa(0xb6)][_0x161ffa(0xad)]?_0x3aba72['body'][_0x161ffa(0xad)]:_0x3aba72[_0x161ffa(0x91)]['fullname'],_0x35d1a7[_0x161ffa(0xa2)]=_[_0x161ffa(0x8e)](_0x3aba72[_0x161ffa(0xb6)][_0x161ffa(0xa2)])?null:_0x3aba72[_0x161ffa(0xb6)][_0x161ffa(0xa2)],_0x35d1a7[_0x161ffa(0xb1)]=_0x3aba72['body'][_0x161ffa(0xb1)]||![],_0x35d1a7[_0x161ffa(0xa0)]=_0x3aba72[_0x161ffa(0x91)]['id'],getContent(_0x3aba72['body'])['then'](function(_0x2fa347){const _0x2c8d4b=_0x161ffa;return _0x35d1a7[_0x2c8d4b(0xb6)]=_0x2fa347,getRecipients(_0x20d4ed);})[_0x161ffa(0xb3)](function(_0x2ba848){const _0x20d195=_0x161ffa;return _0x35d1a7[_0x20d195(0x9e)]=_['sortBy'](_0x2ba848)[_0x20d195(0xb4)](','),db[_0x20d195(0x98)][_0x20d195(0xb9)](function(_0x44a4c1){const _0x455e0b=_0x20d195;return db['Notification'][_0x455e0b(0xaa)](_0x35d1a7,{'raw':!![],'transaction':_0x44a4c1})['then'](function(_0x1bf761){const _0x2ec2d5=_0x455e0b,_0x5e5835={'sender':_0x35d1a7[_0x2ec2d5(0xad)],'description':_0x35d1a7[_0x2ec2d5(0xa2)],'content':_0x35d1a7[_0x2ec2d5(0xb6)],'beep':_0x35d1a7[_0x2ec2d5(0xb1)]};return _0x2ba848[_0x2ec2d5(0x89)](function(_0x1eb385){const _0x469066=_0x2ec2d5;_0x5e5835[_0x469066(0x9c)]=_0x1eb385,socket['emit']('notification:send',_0x5e5835);}),_0x1bf761;});});})['then'](respondWithResult(_0x1613d2,0xc9))[_0x161ffa(0x96)](handleError(_0x1613d2,null));};function getContent(_0x4efeb1){return new Promise(function(_0x5d227e,_0x3ab44e){const _0x168fe3=a555_0x2e6a;if(_0x4efeb1[_0x168fe3(0xbb)]){_0x5d227e(_0x4efeb1[_0x168fe3(0xbb)]);return;}return db[_0x168fe3(0xa3)][_0x168fe3(0x94)]({'attributes':['html'],'where':{'id':_0x4efeb1[_0x168fe3(0xb7)]},'raw':!![]})['then'](function(_0x5c9d7c){const _0x3c60ab=_0x168fe3;if(!_0x5c9d7c)throw new ValidationError('Invalid\x20\x27TemplateId\x27\x20parameter');const _0x2e287d=Mustache[_0x3c60ab(0xa9)](_0x5c9d7c[_0x3c60ab(0x95)],_0x4efeb1[_0x3c60ab(0xc1)]);_0x5d227e(_0x2e287d);})['catch'](function(_0x44b6dc){_0x3ab44e(_0x44b6dc);});});}function getRecipients(_0x2c5620){return new Promise(function(_0x1f4334,_0x2e0d30){const _0xde898a=a555_0x2e6a;let _0x4f34bf=[];const _0x5c4b09=[];return _0x2c5620[_0xde898a(0x89)](function(_0x27a8f1){const _0x560ee3=_0xde898a;let _0x555723=_[_0x560ee3(0x9d)](_0x27a8f1[_0x560ee3(0x93)]['toLowerCase']());if(_0x555723==='User')_0x4f34bf=_[_0x560ee3(0xbd)](_0x4f34bf,_0x27a8f1['ids']);else{if(_[_0x560ee3(0xb5)](_0x555723,_0x560ee3(0x8f)))_0x555723=_0x555723[_0x560ee3(0x99)](_0x560ee3(0x8f),'Queue');_0x27a8f1['ids']['forEach'](function(_0x4c1874){const _0x467981=_0x560ee3;_0x5c4b09[_0x467981(0x8c)](getAgents(_0x555723,_0x4c1874));});}}),Promise[_0xde898a(0xb2)](_0x5c4b09)['then'](function(_0x25914a){const _0x5e797e=_0xde898a;_0x4f34bf=_[_0x5e797e(0xbd)](_0x4f34bf,_[_0x5e797e(0x9f)](_0x25914a)),_0x1f4334(_0x4f34bf);})['catch'](function(_0x1b592c){_0x2e0d30(_0x1b592c);});});}function getAgents(_0x24528d,_0x129ffc){return new Promise(function(_0x58264d,_0x270afa){const _0x514e19=a555_0x2e6a;return db[_0x24528d][_0x514e19(0x94)]({'where':{'id':_0x129ffc}})[_0x514e19(0xb3)](function(_0x38a62e){const _0x2381f1=_0x514e19;return _0x38a62e[_0x2381f1(0xaf)]({'attributes':['id'],'raw':!![]})[_0x2381f1(0xb3)](function(_0x205dd5){const _0x335cc2=_0x2381f1,_0x219afb=_[_0x335cc2(0xa6)](_0x205dd5,'id');_0x58264d(_0x219afb);});})['catch'](function(_0x110187){_0x270afa(_0x110187);});});} \ No newline at end of file diff --git a/server/api/notification/notification.events.js b/server/api/notification/notification.events.js index 690c099..9fb71bf 100644 --- a/server/api/notification/notification.events.js +++ b/server/api/notification/notification.events.js @@ -1 +1 @@ -const a462_0x5c45=['emit','undefined','update','setMaxListeners','addHook','events','exports','Notification'];(function(_0x284079,_0x5c45f8){const _0x2edb63=function(_0x1392a9){while(--_0x1392a9){_0x284079['push'](_0x284079['shift']());}};_0x2edb63(++_0x5c45f8);}(a462_0x5c45,0x114));const a462_0x2edb=function(_0x284079,_0x5c45f8){_0x284079=_0x284079-0x0;let _0x2edb63=a462_0x5c45[_0x284079];return _0x2edb63;};const _0x4b84df=a462_0x2edb;'use strict';const EventEmitter=require(_0x4b84df('0x1')),Notification=require('../../mysqldb')['db'][_0x4b84df('0x3')],NotificationEvents=new EventEmitter();NotificationEvents[_0x4b84df('0x7')](0x0);const events={'afterCreate':'save','afterUpdate':_0x4b84df('0x6'),'afterDestroy':'remove'};function emitEvent(_0x1392a9){return function(_0x4cb89f){const _0x57d267=a462_0x2edb;NotificationEvents[_0x57d267('0x4')](_0x1392a9+':'+_0x4cb89f['id'],_0x4cb89f),NotificationEvents[_0x57d267('0x4')](_0x1392a9,_0x4cb89f);};}for(const e in events){if(typeof events[e]!==_0x4b84df('0x5')){const event=events[e];Notification[_0x4b84df('0x0')](e,emitEvent(event));}}module[_0x4b84df('0x2')]=NotificationEvents; \ No newline at end of file +const a556_0x6f2e=['../../mysqldb','events','save','emit','update','addHook','exports'];(function(_0x2ff323,_0x3cec18){const _0x6f2ea8=function(_0x122d99){while(--_0x122d99){_0x2ff323['push'](_0x2ff323['shift']());}};_0x6f2ea8(++_0x3cec18);}(a556_0x6f2e,0x147));const a556_0x122d=function(_0x2ff323,_0x3cec18){_0x2ff323=_0x2ff323-0x193;let _0x6f2ea8=a556_0x6f2e[_0x2ff323];return _0x6f2ea8;};const a556_0xe33acb=a556_0x122d;'use strict';const EventEmitter=require(a556_0xe33acb(0x196)),Notification=require(a556_0xe33acb(0x195))['db']['Notification'],NotificationEvents=new EventEmitter();NotificationEvents['setMaxListeners'](0x0);const events={'afterCreate':a556_0xe33acb(0x197),'afterUpdate':a556_0xe33acb(0x199),'afterDestroy':'remove'};function emitEvent(_0x485ecf){return function(_0x3d211b){const _0x5f17f7=a556_0x122d;NotificationEvents[_0x5f17f7(0x198)](_0x485ecf+':'+_0x3d211b['id'],_0x3d211b),NotificationEvents['emit'](_0x485ecf,_0x3d211b);};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];Notification[a556_0xe33acb(0x193)](e,emitEvent(event));}}module[a556_0xe33acb(0x194)]=NotificationEvents; \ No newline at end of file diff --git a/server/api/notification/notification.model.js b/server/api/notification/notification.model.js index d7e5fe0..5d075da 100644 --- a/server/api/notification/notification.model.js +++ b/server/api/notification/notification.model.js @@ -1 +1 @@ -const a463_0x26d1=['define','exports','utf8mb4','Notification','utf8mb4_unicode_ci'];(function(_0x2ff41f,_0x26d1bd){const _0x33173c=function(_0x3d959b){while(--_0x3d959b){_0x2ff41f['push'](_0x2ff41f['shift']());}};_0x33173c(++_0x26d1bd);}(a463_0x26d1,0x1a4));const a463_0x3317=function(_0x2ff41f,_0x26d1bd){_0x2ff41f=_0x2ff41f-0x0;let _0x33173c=a463_0x26d1[_0x2ff41f];return _0x33173c;};const _0x177e79=a463_0x3317;'use strict';const attributes=require('./notification.attributes');module[_0x177e79('0x1')]=function(_0x3d959b){const _0x31836e=_0x177e79,_0x5b600e=_0x3d959b[_0x31836e('0x0')](_0x31836e('0x3'),attributes,{'tableName':'notifications','paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x31836e('0x2'),'collate':_0x31836e('0x4')});return _0x5b600e;}; \ No newline at end of file +const a557_0x274d=['init','./notification.attributes','./notification.options','sequelize','Notification','exports'];(function(_0x16a5a5,_0x26a3ee){const _0x274d71=function(_0x1909d7){while(--_0x1909d7){_0x16a5a5['push'](_0x16a5a5['shift']());}};_0x274d71(++_0x26a3ee);}(a557_0x274d,0x1d3));const a557_0x1909=function(_0x16a5a5,_0x26a3ee){_0x16a5a5=_0x16a5a5-0x7a;let _0x274d71=a557_0x274d[_0x16a5a5];return _0x274d71;};const a557_0x100dde=a557_0x1909;'use strict';const {Model}=require(a557_0x100dde(0x7e)),{attributes}=require(a557_0x100dde(0x7c)),{options}=require(a557_0x100dde(0x7d));class Notification extends Model{}function init(_0x57769c,_0x28f264){const _0x1d2d22=options(_0x57769c),_0x3457e7=typeof _0x28f264==='function'?_0x28f264(_0x1d2d22):_0x1d2d22;return Notification['init'](attributes,_0x3457e7),Notification;}module[a557_0x100dde(0x7a)][a557_0x100dde(0x7f)]=Notification,module[a557_0x100dde(0x7a)][a557_0x100dde(0x7b)]=init; \ No newline at end of file diff --git a/server/api/notification/notification.options.js b/server/api/notification/notification.options.js new file mode 100644 index 0000000..48a252a --- /dev/null +++ b/server/api/notification/notification.options.js @@ -0,0 +1 @@ +var a558_0x5d8e=['utf8mb4_unicode_ci','notifications','exports'];(function(_0x4694fb,_0x87041a){var _0x5d8e9a=function(_0x1d8eaf){while(--_0x1d8eaf){_0x4694fb['push'](_0x4694fb['shift']());}};_0x5d8e9a(++_0x87041a);}(a558_0x5d8e,0xc1));var a558_0x1d8e=function(_0x4694fb,_0x87041a){_0x4694fb=_0x4694fb-0xcd;var _0x5d8e9a=a558_0x5d8e[_0x4694fb];return _0x5d8e9a;};var a558_0x48a47a=a558_0x1d8e;function options(_0x506fab){var _0x4d8969=a558_0x1d8e;return{'sequelize':_0x506fab,'tableName':_0x4d8969(0xcd),'paranoid':![],'indexes':[],'timestamps':!![],'charset':'utf8mb4','collate':_0x4d8969(0xcf)};}module[a558_0x48a47a(0xce)]['options']=options; \ No newline at end of file diff --git a/server/api/notification/notification.rpc.js b/server/api/notification/notification.rpc.js index 43c2bf5..4209ea8 100644 --- a/server/api/notification/notification.rpc.js +++ b/server/api/notification/notification.rpc.js @@ -1 +1 @@ -const a464_0x3e7a=['../../rediscache','register','./notification.socket'];(function(_0x52dd7d,_0x3e7a74){const _0x3b5f6e=function(_0x19ac64){while(--_0x19ac64){_0x52dd7d['push'](_0x52dd7d['shift']());}};_0x3b5f6e(++_0x3e7a74);}(a464_0x3e7a,0x10f));const a464_0x3b5f=function(_0x52dd7d,_0x3e7a74){_0x52dd7d=_0x52dd7d-0x0;let _0x3b5f6e=a464_0x3e7a[_0x52dd7d];return _0x3b5f6e;};const _0x170af7=a464_0x3b5f;'use strict';const {getSocket}=require(_0x170af7('0x2')),socket=getSocket();require(_0x170af7('0x1'))[_0x170af7('0x0')](socket); \ No newline at end of file +const a559_0x14ef=['register','./notification.socket'];(function(_0x42d01a,_0x251a32){const _0x14ef5d=function(_0x51fe74){while(--_0x51fe74){_0x42d01a['push'](_0x42d01a['shift']());}};_0x14ef5d(++_0x251a32);}(a559_0x14ef,0x1c6));const a559_0x51fe=function(_0x42d01a,_0x251a32){_0x42d01a=_0x42d01a-0x1a8;let _0x14ef5d=a559_0x14ef[_0x42d01a];return _0x14ef5d;};const a559_0x504317=a559_0x51fe;'use strict';const {getSocket}=require('../../rediscache'),socket=getSocket();require(a559_0x504317(0x1a9))[a559_0x504317(0x1a8)](socket); \ No newline at end of file diff --git a/server/api/notification/notification.socket.js b/server/api/notification/notification.socket.js index b9b5487..685f5db 100644 --- a/server/api/notification/notification.socket.js +++ b/server/api/notification/notification.socket.js @@ -1 +1 @@ -const a465_0x317e=['notification:','length','register','emit','remove','save','./notification.events'];(function(_0x48a01d,_0x317e8e){const _0x1c969f=function(_0x4b8933){while(--_0x4b8933){_0x48a01d['push'](_0x48a01d['shift']());}};_0x1c969f(++_0x317e8e);}(a465_0x317e,0x72));const a465_0x1c96=function(_0x48a01d,_0x317e8e){_0x48a01d=_0x48a01d-0x0;let _0x1c969f=a465_0x317e[_0x48a01d];return _0x1c969f;};const _0x4b405e=a465_0x1c96;'use strict';const NotificationEvents=require(_0x4b405e('0x4')),events=[_0x4b405e('0x3'),_0x4b405e('0x2'),'update'];function createListener(_0x4b8933,_0x46d9b1){return function(_0x1592aa){const _0x1fe739=a465_0x1c96;_0x46d9b1[_0x1fe739('0x1')](_0x4b8933,_0x1592aa);};}exports[_0x4b405e('0x0')]=function(_0x2d1047){const _0x5d6146=_0x4b405e;for(let _0x3c451=0x0,_0x9b33c2=events[_0x5d6146('0x6')];_0x3c451<_0x9b33c2;_0x3c451++){const _0x2930a2=events[_0x3c451],_0x43b1a2=createListener(_0x5d6146('0x5')+_0x2930a2,_0x2d1047);NotificationEvents['on'](_0x2930a2,_0x43b1a2);}}; \ No newline at end of file +const a560_0x3ed3=['remove','emit','save','notification:','length','update','./notification.events','register'];(function(_0x36b296,_0x3e1df0){const _0x3ed34b=function(_0x3c70d8){while(--_0x3c70d8){_0x36b296['push'](_0x36b296['shift']());}};_0x3ed34b(++_0x3e1df0);}(a560_0x3ed3,0x160));const a560_0x3c70=function(_0x36b296,_0x3e1df0){_0x36b296=_0x36b296-0x77;let _0x3ed34b=a560_0x3ed3[_0x36b296];return _0x3ed34b;};const a560_0x20557e=a560_0x3c70;'use strict';const NotificationEvents=require(a560_0x20557e(0x7d)),events=[a560_0x20557e(0x79),a560_0x20557e(0x77),a560_0x20557e(0x7c)];function createListener(_0x529b72,_0x550380){return function(_0x3daf7d){const _0x13bf4b=a560_0x3c70;_0x550380[_0x13bf4b(0x78)](_0x529b72,_0x3daf7d);};}exports[a560_0x20557e(0x7e)]=function(_0x15cebd){const _0x26ea45=a560_0x20557e;for(let _0x2b23b9=0x0,_0x51404e=events[_0x26ea45(0x7b)];_0x2b23b9<_0x51404e;_0x2b23b9++){const _0x24d177=events[_0x2b23b9],_0xaa2110=createListener(_0x26ea45(0x7a)+_0x24d177,_0x15cebd);NotificationEvents['on'](_0x24d177,_0xaa2110);}}; \ No newline at end of file diff --git a/server/api/openchannelAccount/index.js b/server/api/openchannelAccount/index.js index bef4cca..f829598 100644 --- a/server/api/openchannelAccount/index.js +++ b/server/api/openchannelAccount/index.js @@ -1 +1 @@ -const a466_0x268a=['show','/:id/users','isAuthenticated','addDisposition','getInteractions','getDispositions','put','removeAgents','exports','express','notify','describe','getAnswers','post','get','removeDispositions','removeAnswers','send','/:id','delete','/:id/send','getAgents','./openchannelAccount.controller','addApplications','Router','/:id/canned_answers','/:id/dispositions'];(function(_0x461199,_0x268ad6){const _0x7c3a97=function(_0x18870e){while(--_0x18870e){_0x461199['push'](_0x461199['shift']());}};_0x7c3a97(++_0x268ad6);}(a466_0x268a,0xd7));const a466_0x7c3a=function(_0x461199,_0x268ad6){_0x461199=_0x461199-0x0;let _0x7c3a97=a466_0x268a[_0x461199];return _0x7c3a97;};const _0xc7e925=a466_0x7c3a;'use strict';const express=require(_0xc7e925('0xa')),router=express[_0xc7e925('0x19')](),auth=require('../../components/auth/service'),controller=require(_0xc7e925('0x17'));router['get']('/',auth[_0xc7e925('0x3')](),controller['index']),router['get']('/describe',auth[_0xc7e925('0x3')](),controller[_0xc7e925('0xc')]),router['get'](_0xc7e925('0x13'),auth[_0xc7e925('0x3')](),controller[_0xc7e925('0x1')]),router[_0xc7e925('0xf')]('/:id/dispositions',auth[_0xc7e925('0x3')](),controller[_0xc7e925('0x6')]),router[_0xc7e925('0xf')](_0xc7e925('0x1a'),auth['isAuthenticated'](),controller[_0xc7e925('0xd')]),router[_0xc7e925('0xf')]('/:id/applications',auth[_0xc7e925('0x3')](),controller['getApplications']),router[_0xc7e925('0xf')]('/:id/interactions',auth[_0xc7e925('0x3')](),controller[_0xc7e925('0x5')]),router[_0xc7e925('0xf')]('/:id/users',auth[_0xc7e925('0x3')](),controller[_0xc7e925('0x16')]),router['post']('/',auth[_0xc7e925('0x3')](),controller['create']),router['post']('/:id/dispositions',auth[_0xc7e925('0x3')](),controller[_0xc7e925('0x4')]),router[_0xc7e925('0xe')]('/:id/canned_answers',auth[_0xc7e925('0x3')](),controller['addAnswer']),router['post']('/:id/notify',controller[_0xc7e925('0xb')]),router[_0xc7e925('0xe')]('/:id/applications',auth[_0xc7e925('0x3')](),controller[_0xc7e925('0x18')]),router['post'](_0xc7e925('0x2'),auth[_0xc7e925('0x3')](),controller['addAgents']),router[_0xc7e925('0xe')](_0xc7e925('0x15'),auth['isAuthenticated'](),controller[_0xc7e925('0x12')]),router[_0xc7e925('0x7')](_0xc7e925('0x13'),auth[_0xc7e925('0x3')](),controller['update']),router[_0xc7e925('0x14')]('/:id',auth[_0xc7e925('0x3')](),controller['destroy']),router[_0xc7e925('0x14')](_0xc7e925('0x0'),auth[_0xc7e925('0x3')](),controller[_0xc7e925('0x10')]),router[_0xc7e925('0x14')](_0xc7e925('0x1a'),auth[_0xc7e925('0x3')](),controller[_0xc7e925('0x11')]),router[_0xc7e925('0x14')](_0xc7e925('0x2'),auth[_0xc7e925('0x3')](),controller[_0xc7e925('0x8')]),module[_0xc7e925('0x9')]=router; \ No newline at end of file +const a561_0x121b=['getAgents','isAuthenticated','exports','removeAnswers','update','/:id/canned_answers','create','show','removeDispositions','/describe','../../components/auth/service','delete','/:id/applications','getAnswers','notify','describe','/:id/dispositions','/:id/interactions','addAnswer','post','express','/:id/send','/:id/users','Router','getApplications','put','get','/:id','removeAgents','index','getInteractions'];(function(_0x353f86,_0x4addca){const _0x121bba=function(_0x34b564){while(--_0x34b564){_0x353f86['push'](_0x353f86['shift']());}};_0x121bba(++_0x4addca);}(a561_0x121b,0x1e0));const a561_0x34b5=function(_0x353f86,_0x4addca){_0x353f86=_0x353f86-0x133;let _0x121bba=a561_0x121b[_0x353f86];return _0x121bba;};const a561_0x53946e=a561_0x34b5;'use strict';const express=require(a561_0x53946e(0x138)),router=express[a561_0x53946e(0x13b)](),auth=require(a561_0x53946e(0x14d)),controller=require('./openchannelAccount.controller');router['get']('/',auth['isAuthenticated'](),controller[a561_0x53946e(0x141)]),router['get'](a561_0x53946e(0x14c),auth[a561_0x53946e(0x144)](),controller[a561_0x53946e(0x133)]),router['get'](a561_0x53946e(0x13f),auth[a561_0x53946e(0x144)](),controller[a561_0x53946e(0x14a)]),router[a561_0x53946e(0x13e)](a561_0x53946e(0x134),auth[a561_0x53946e(0x144)](),controller['getDispositions']),router[a561_0x53946e(0x13e)](a561_0x53946e(0x148),auth[a561_0x53946e(0x144)](),controller[a561_0x53946e(0x150)]),router[a561_0x53946e(0x13e)](a561_0x53946e(0x14f),auth[a561_0x53946e(0x144)](),controller[a561_0x53946e(0x13c)]),router[a561_0x53946e(0x13e)](a561_0x53946e(0x135),auth[a561_0x53946e(0x144)](),controller[a561_0x53946e(0x142)]),router[a561_0x53946e(0x13e)](a561_0x53946e(0x13a),auth[a561_0x53946e(0x144)](),controller[a561_0x53946e(0x143)]),router[a561_0x53946e(0x137)]('/',auth[a561_0x53946e(0x144)](),controller[a561_0x53946e(0x149)]),router['post']('/:id/dispositions',auth[a561_0x53946e(0x144)](),controller['addDisposition']),router['post']('/:id/canned_answers',auth[a561_0x53946e(0x144)](),controller[a561_0x53946e(0x136)]),router[a561_0x53946e(0x137)]('/:id/notify',controller[a561_0x53946e(0x151)]),router[a561_0x53946e(0x137)](a561_0x53946e(0x14f),auth['isAuthenticated'](),controller['addApplications']),router[a561_0x53946e(0x137)]('/:id/users',auth[a561_0x53946e(0x144)](),controller['addAgents']),router[a561_0x53946e(0x137)](a561_0x53946e(0x139),auth[a561_0x53946e(0x144)](),controller['send']),router[a561_0x53946e(0x13d)](a561_0x53946e(0x13f),auth[a561_0x53946e(0x144)](),controller[a561_0x53946e(0x147)]),router[a561_0x53946e(0x14e)]('/:id',auth[a561_0x53946e(0x144)](),controller['destroy']),router[a561_0x53946e(0x14e)](a561_0x53946e(0x134),auth['isAuthenticated'](),controller[a561_0x53946e(0x14b)]),router[a561_0x53946e(0x14e)]('/:id/canned_answers',auth[a561_0x53946e(0x144)](),controller[a561_0x53946e(0x146)]),router[a561_0x53946e(0x14e)]('/:id/users',auth[a561_0x53946e(0x144)](),controller[a561_0x53946e(0x140)]),module[a561_0x53946e(0x145)]=router; \ No newline at end of file diff --git a/server/api/openchannelAccount/openchannelAccount.attributes.js b/server/api/openchannelAccount/openchannelAccount.attributes.js index 4f37914..d2b5a85 100644 --- a/server/api/openchannelAccount/openchannelAccount.attributes.js +++ b/server/api/openchannelAccount/openchannelAccount.attributes.js @@ -1 +1 @@ -const a467_0x54f5=['setDataValue','generate','Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled','INTEGER','exports','Account:\x20{{account.name}}
    {{#queue}}Queue:\x20{{queue.name}}
    {{/queue}}From\x20:\x20{{from}}','BOOLEAN','STRING','randomstring','TEXT','sequelize','Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue'];(function(_0x555440,_0x54f5ea){const _0x137072=function(_0x222df2){while(--_0x222df2){_0x555440['push'](_0x555440['shift']());}};_0x137072(++_0x54f5ea);}(a467_0x54f5,0x88));const a467_0x1370=function(_0x555440,_0x54f5ea){_0x555440=_0x555440-0x0;let _0x137072=a467_0x54f5[_0x555440];return _0x137072;};const _0x57daf6=a467_0x1370;'use strict';const Sequelize=require(_0x57daf6('0x6')),rs=require(_0x57daf6('0x4'));module[_0x57daf6('0x0')]={'name':{'type':Sequelize[_0x57daf6('0x3')],'unique':'name','allowNull':![]},'description':{'type':Sequelize['STRING']},'token':{'type':Sequelize['STRING'],'defaultValue':function(){const _0xeccc94=_0x57daf6;return rs[_0xeccc94('0x9')]();}},'replyUri':{'type':Sequelize[_0x57daf6('0x3')],'validate':{'isUrl':!![]}},'key':{'type':Sequelize['STRING'],'allowNull':![]},'notificationTemplate':{'type':Sequelize[_0x57daf6('0x5')],'defaultValue':function(){const _0x3dc4a8=_0x57daf6;return _0x3dc4a8('0x1');}},'notificationSound':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'notificationShake':{'type':Sequelize[_0x57daf6('0x2')],'defaultValue':![]},'waitForTheAssignedAgent':{'type':Sequelize[_0x57daf6('0xb')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'mapKey':{'type':Sequelize['STRING']},'queueTransfer':{'type':Sequelize[_0x57daf6('0x2')],'defaultValue':![]},'queueTransferTimeout':{'type':Sequelize[_0x57daf6('0xb')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'agentTransferTimeout':{'type':Sequelize[_0x57daf6('0xb')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'mandatoryDispositionPauseId':{'type':Sequelize[_0x57daf6('0xb')],'allowNull':!![],'defaultValue':null,'comment':_0x57daf6('0xa')},'mandatoryDisposition':{'type':Sequelize[_0x57daf6('0x2')],'defaultValue':![],'comment':_0x57daf6('0x7'),'set':function(_0x222df2){const _0x208559=_0x57daf6;if(!_0x222df2)this[_0x208559('0x8')]('mandatoryDispositionPauseId',null);this['setDataValue']('mandatoryDisposition',_0x222df2);}}}; \ No newline at end of file +const a562_0x2805=['Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','name','exports','randomstring','attributes','TEXT','generate','sequelize','BOOLEAN','STRING','INTEGER','setDataValue'];(function(_0x4d2ea9,_0x59658a){const _0x280527=function(_0x487790){while(--_0x487790){_0x4d2ea9['push'](_0x4d2ea9['shift']());}};_0x280527(++_0x59658a);}(a562_0x2805,0xd9));const a562_0x4877=function(_0x4d2ea9,_0x59658a){_0x4d2ea9=_0x4d2ea9-0x1cf;let _0x280527=a562_0x2805[_0x4d2ea9];return _0x280527;};const a562_0xf1d0d0=a562_0x4877;'use strict';const {DataTypes}=require(a562_0xf1d0d0(0x1d5)),rs=require(a562_0xf1d0d0(0x1d1)),attributes={'name':{'type':DataTypes[a562_0xf1d0d0(0x1d7)],'unique':a562_0xf1d0d0(0x1cf),'allowNull':![]},'description':{'type':DataTypes[a562_0xf1d0d0(0x1d7)]},'token':{'type':DataTypes[a562_0xf1d0d0(0x1d7)],'defaultValue':function(){const _0x5d0fd3=a562_0xf1d0d0;return rs[_0x5d0fd3(0x1d4)]();}},'replyUri':{'type':DataTypes[a562_0xf1d0d0(0x1d7)],'validate':{'isUrl':!![]}},'key':{'type':DataTypes[a562_0xf1d0d0(0x1d7)],'allowNull':![]},'notificationTemplate':{'type':DataTypes[a562_0xf1d0d0(0x1d3)],'defaultValue':function(){return'Account:\x20{{account.name}}
    {{#queue}}Queue:\x20{{queue.name}}
    {{/queue}}From\x20:\x20{{from}}';}},'notificationSound':{'type':DataTypes[a562_0xf1d0d0(0x1d6)],'defaultValue':!![]},'notificationShake':{'type':DataTypes['BOOLEAN'],'defaultValue':![]},'waitForTheAssignedAgent':{'type':DataTypes[a562_0xf1d0d0(0x1d8)],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'mapKey':{'type':DataTypes[a562_0xf1d0d0(0x1d7)]},'queueTransfer':{'type':DataTypes[a562_0xf1d0d0(0x1d6)],'defaultValue':![]},'queueTransferTimeout':{'type':DataTypes[a562_0xf1d0d0(0x1d8)],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':DataTypes[a562_0xf1d0d0(0x1d6)],'defaultValue':![]},'agentTransferTimeout':{'type':DataTypes[a562_0xf1d0d0(0x1d8)],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'mandatoryDispositionPauseId':{'type':DataTypes[a562_0xf1d0d0(0x1d8)],'allowNull':!![],'defaultValue':null,'comment':'Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled'},'mandatoryDisposition':{'type':DataTypes[a562_0xf1d0d0(0x1d6)],'defaultValue':![],'comment':a562_0xf1d0d0(0x1da),'set':function(_0x4dfff1){const _0x30b847=a562_0xf1d0d0;if(!_0x4dfff1)this[_0x30b847(0x1d9)]('mandatoryDispositionPauseId',null);this['setDataValue']('mandatoryDisposition',_0x4dfff1);}}};module[a562_0xf1d0d0(0x1d0)][a562_0xf1d0d0(0x1d2)]=attributes; \ No newline at end of file diff --git a/server/api/openchannelAccount/openchannelAccount.controller.js b/server/api/openchannelAccount/openchannelAccount.controller.js index 1354016..fbcb33f 100644 --- a/server/api/openchannelAccount/openchannelAccount.controller.js +++ b/server/api/openchannelAccount/openchannelAccount.controller.js @@ -1 +1 @@ -const a468_0xe096=['mapKey\x20is\x20mandatory,\x20please\x20use\x20one\x20of\x20these:\x20','Start','firstName','code','sequelize','Content-Range','undefined','userProfileId','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','params','client','push','UserId','request','Contacts','internal','query','error','role','json','type','message','dataValues','User','isArray','sendStatus','addAgents','rows','intersection','info','api','difference','orderBy','isNil','OpenchannelMessage','../../mysqldb','userOpenchannelAccount:remove','mapKey\x20invalid,\x20please\x20use\x20one\x20of\x20these:\x20','createdAt','ListId','Tag','addDisposition','findAndCountAll','Unable\x20to\x20retrieve\x20the\x20current\x20user','getInteractions','../../config/logger','rawAttributes','openchannel','addApplications','../../components/parsers/qs','list','status','show','key','getAgents','mandatoryDispositionPause','account','agent','AttachmentId','out','name','CompanyId','user','findAll','lastName','filter','keys','request\x20sent','defaults','CmList','model','contact','OpenchannelAccountId','unshift','OpenchannelAccount','get','attributes','length','limit','sort','removeAnswers','http','Applications','Messages','../../rediscache','waitForTheAssignedAgent','transaction','ContactId','where','CannedAnswer','Disposition','*,*,*,*','then','map','options','created','end','Pause','addAnswer','count','applications','EventManager','from','findOne','create','Tags','body','from\x20is\x20mandatory','updatedAt','stack','lodash','merge','body\x20is\x20mandatory\x20and\x20not\x20empty','offset','externalUrl','pick','describe','threadId','OpenchannelApplication','autoclose','CmContact','omit','nolimit','DESC','update','order','ids','OpenchannelAccount,\x20%s,\x20%s','mapKey','color','userOpenchannelAccount:save','like','debug','include','send','includes','getDispositions','interaction','List','emit','getApplications','removeDispositions','includeAll','./openchannelAccount.socket','OpenchannelInteraction','notify','messageId','Owner','fields','startRouting','catch','filters','UserProfileResource','destroy'];(function(_0x361f7a,_0xe096bb){const _0x460f89=function(_0x3b5c6b){while(--_0x3b5c6b){_0x361f7a['push'](_0x361f7a['shift']());}};_0x460f89(++_0xe096bb);}(a468_0xe096,0x99));const a468_0x460f=function(_0x361f7a,_0xe096bb){_0x361f7a=_0x361f7a-0x0;let _0x460f89=a468_0xe096[_0x361f7a];return _0x460f89;};const _0x25d814=a468_0x460f;'use strict';const _=require(_0x25d814('0x6f')),qs=require(_0x25d814('0x32')),logger=require(_0x25d814('0x2e'))(_0x25d814('0x1f')),{getSocket}=require(_0x25d814('0x55')),socket=getSocket(),db=require(_0x25d814('0x24'))['db'],{Op,ValidationError}=require(_0x25d814('0x5'));require(_0x25d814('0x90'))['register'](socket);const jayson=require('jayson/promise'),client=jayson[_0x25d814('0xb')][_0x25d814('0x52')]({'port':0x232c}),client9002=jayson['client'][_0x25d814('0x52')]({'port':0x232a});function respondWithRpcPromise(_0x3b5c6b,_0x41ce8d,_0x5c2ad3,_0x31d49c){return new Promise(function(_0x591934,_0xfca3aa){const _0x10100a=a468_0x460f,_0x390439=_0x31d49c||client;return _0x390439[_0x10100a('0xe')](_0x3b5c6b,_0x5c2ad3)['then'](function(_0x1f7180){const _0x27db33=_0x10100a;logger[_0x27db33('0x1e')]('OpenchannelAccount,\x20%s,\x20%s',_0x41ce8d,_0x27db33('0x44')),logger[_0x27db33('0x85')]('OpenchannelAccount,\x20%s,\x20%s,\x20%s',_0x41ce8d,_0x27db33('0x44'),JSON['stringify'](_0x1f7180));if(_0x1f7180[_0x27db33('0x12')]){if(_0x1f7180[_0x27db33('0x12')][_0x27db33('0x4')]===0x1f4)return logger['error']('OpenchannelAccount,\x20%s,\x20%s',_0x41ce8d,_0x1f7180['error'][_0x27db33('0x16')]),_0xfca3aa(_0x1f7180[_0x27db33('0x12')][_0x27db33('0x16')]);return logger[_0x27db33('0x12')](_0x27db33('0x80'),_0x41ce8d,_0x1f7180[_0x27db33('0x12')]['message']),_0x591934(_0x1f7180[_0x27db33('0x12')][_0x27db33('0x16')]);}else logger[_0x27db33('0x1e')]('OpenchannelAccount,\x20%s,\x20%s',_0x41ce8d,_0x27db33('0x44')),_0x591934(_0x1f7180['result'][_0x27db33('0x16')]);})[_0x10100a('0x97')](function(_0x36ffa9){const _0x5006bc=_0x10100a;logger[_0x5006bc('0x12')](_0x5006bc('0x80'),_0x41ce8d,_0x36ffa9),_0xfca3aa(_0x36ffa9);});});}function respondWithStatusCode(_0x1af895,_0x5ce3da){return _0x5ce3da=_0x5ce3da||0xcc,function(_0x3478b2){const _0x45ef7e=a468_0x460f;if(_0x3478b2)return _0x1af895[_0x45ef7e('0x1a')](_0x5ce3da);return _0x1af895['status'](_0x5ce3da)[_0x45ef7e('0x61')]();};}function respondWithResult(_0xc9b477,_0x5e31f0){return _0x5e31f0=_0x5e31f0||0xc8,function(_0x3ff9ba){const _0x5df40b=a468_0x460f;if(_0x3ff9ba)return _0xc9b477['status'](_0x5e31f0)[_0x5df40b('0x14')](_0x3ff9ba);};}function respondWithFilteredResult(_0x49e4b9,_0x20ec41){return function(_0x5a7a25){const _0x747345=a468_0x460f;if(_0x5a7a25){const _0xcdc504=_0x5a7a25[_0x747345('0x64')],_0x1df3c0=_0x20ec41[_0x747345('0x72')];let _0x2ecad2=_0x20ec41[_0x747345('0x72')]+_0x20ec41[_0x747345('0x4f')],_0x69df1e;return _0x2ecad2>=_0xcdc504?(_0x2ecad2=_0xcdc504,_0x69df1e=0xc8):_0x69df1e=0xce,_0x49e4b9[_0x747345('0x34')](_0x69df1e),_0x49e4b9['set'](_0x747345('0x6'),_0x1df3c0+'-'+_0x2ecad2+'/'+_0xcdc504)[_0x747345('0x14')](_0x5a7a25);}return null;};}function saveUpdates(_0x4bfc38){return function(_0x59b943){const _0x5b0b8f=a468_0x460f;if(_0x59b943)return _0x59b943[_0x5b0b8f('0x7d')](_0x4bfc38)['then'](function(_0x4411f0){return _0x4411f0;});return null;};}function removeEntity(_0x570b8d){return function(_0x25494f){const _0x5dc0f9=a468_0x460f;if(_0x25494f)return _0x25494f['destroy']()[_0x5dc0f9('0x5d')](function(){const _0x4943c4=_0x5dc0f9,_0x477fd2=_0x25494f[_0x4943c4('0x4c')]({'plain':!![]}),_0x5f3070='OpenchannelAccounts';return db[_0x4943c4('0x99')][_0x4943c4('0x0')]({'where':{'type':_0x5f3070,'resourceId':_0x477fd2['id']}})['then'](function(){return _0x25494f;});})[_0x5dc0f9('0x5d')](function(){const _0x2bd5ef=_0x5dc0f9;_0x570b8d['status'](0xcc)[_0x2bd5ef('0x61')]();});};}function handleEntityNotFound(_0x2e5d1e){return function(_0x1e674e){const _0x2c3766=a468_0x460f;return!_0x1e674e&&_0x2e5d1e[_0x2c3766('0x1a')](0x194),_0x1e674e;};}function handleError(_0x128b06,_0x14eebf){return _0x14eebf=_0x14eebf||0x1f4,function(_0x43a8ca){const _0x12177e=a468_0x460f;logger[_0x12177e('0x12')](_0x43a8ca[_0x12177e('0x6e')]),_0x43a8ca[_0x12177e('0x3d')]&&delete _0x43a8ca[_0x12177e('0x3d')],_0x128b06[_0x12177e('0x34')](_0x14eebf)['send'](_0x43a8ca);};}exports['index']=function(_0x56f1e9,_0x26f36b){const _0x3e6cc2=_0x25d814;let _0x5186f6={'include':[{'model':db[_0x3e6cc2('0x62')],'as':'mandatoryDispositionPause'}]};const _0x41b90b={},_0x293b5a={'count':0x0,'rows':[]},_0x1417d6=_[_0x3e6cc2('0x5e')](db['OpenchannelAccount']['rawAttributes'],function(_0x91f8e2){const _0x3dc218=_0x3e6cc2;return{'name':_0x91f8e2['fieldName'],'type':_0x91f8e2[_0x3dc218('0x15')][_0x3dc218('0x36')]};});_0x41b90b[_0x3e6cc2('0x47')]=_[_0x3e6cc2('0x5e')](_0x1417d6,_0x3e6cc2('0x3d')),_0x41b90b[_0x3e6cc2('0x11')]=_[_0x3e6cc2('0x43')](_0x56f1e9[_0x3e6cc2('0x11')]),_0x41b90b['filters']=_[_0x3e6cc2('0x1d')](_0x41b90b[_0x3e6cc2('0x47')],_0x41b90b['query']),_0x5186f6[_0x3e6cc2('0x4d')]=_[_0x3e6cc2('0x1d')](_0x41b90b['model'],qs[_0x3e6cc2('0x95')](_0x56f1e9[_0x3e6cc2('0x11')][_0x3e6cc2('0x95')])),_0x5186f6[_0x3e6cc2('0x4d')]=_0x5186f6[_0x3e6cc2('0x4d')][_0x3e6cc2('0x4e')]?_0x5186f6[_0x3e6cc2('0x4d')]:_0x41b90b['model'];typeof _0x56f1e9[_0x3e6cc2('0x11')][_0x3e6cc2('0x7b')]===_0x3e6cc2('0x7')&&(_0x5186f6['limit']=qs[_0x3e6cc2('0x4f')](_0x56f1e9[_0x3e6cc2('0x11')][_0x3e6cc2('0x4f')]),_0x5186f6[_0x3e6cc2('0x72')]=qs[_0x3e6cc2('0x72')](_0x56f1e9[_0x3e6cc2('0x11')][_0x3e6cc2('0x72')]));_0x5186f6[_0x3e6cc2('0x7e')]=qs[_0x3e6cc2('0x50')](_0x56f1e9['query'][_0x3e6cc2('0x50')]),_0x5186f6[_0x3e6cc2('0x59')]=qs['filters'](_['pick'](_0x56f1e9[_0x3e6cc2('0x11')],_0x41b90b[_0x3e6cc2('0x98')]),_0x1417d6);_0x56f1e9['query']['filter']&&(_0x5186f6['where']=_['merge'](_0x5186f6[_0x3e6cc2('0x59')],{[Op['or']]:_['map'](_0x1417d6,function(_0x54b058){const _0x1d810c=_0x3e6cc2;if(_0x54b058[_0x1d810c('0x15')]!=='VIRTUAL'){const _0x17e435={};return _0x17e435[_0x54b058['name']]={[Op['like']]:'%'+_0x56f1e9[_0x1d810c('0x11')][_0x1d810c('0x42')]+'%'},_0x17e435;}})}));_0x5186f6=_[_0x3e6cc2('0x70')]({},_0x5186f6,_0x56f1e9[_0x3e6cc2('0x5f')]);const _0x308da0={'where':_0x5186f6[_0x3e6cc2('0x59')]};return db[_0x3e6cc2('0x4b')]['count'](_0x308da0)[_0x3e6cc2('0x5d')](function(_0x4f93e0){const _0x3170b8=_0x3e6cc2;return _0x293b5a[_0x3170b8('0x64')]=_0x4f93e0,_0x56f1e9[_0x3170b8('0x11')][_0x3170b8('0x8f')]&&(_0x5186f6[_0x3170b8('0x86')]=[{'all':!![]}]),db[_0x3170b8('0x4b')][_0x3170b8('0x40')](_0x5186f6);})[_0x3e6cc2('0x5d')](function(_0x11533d){const _0x36d5c8=_0x3e6cc2;return _0x293b5a[_0x36d5c8('0x1c')]=_0x11533d,_0x293b5a;})[_0x3e6cc2('0x5d')](respondWithFilteredResult(_0x26f36b,_0x5186f6))[_0x3e6cc2('0x97')](handleError(_0x26f36b,null));},exports[_0x25d814('0x35')]=function(_0x107792,_0x14e995){const _0x5613cb=_0x25d814;let _0x572143={'raw':![],'where':{'id':_0x107792['params']['id']},'include':[{'model':db[_0x5613cb('0x62')],'as':'mandatoryDispositionPause'}]};const _0x5c7795={};return _0x5c7795[_0x5613cb('0x47')]=_['keys'](db[_0x5613cb('0x4b')][_0x5613cb('0x2f')]),_0x5c7795[_0x5613cb('0x11')]=_['keys'](_0x107792[_0x5613cb('0x11')]),_0x5c7795[_0x5613cb('0x98')]=_[_0x5613cb('0x1d')](_0x5c7795[_0x5613cb('0x47')],_0x5c7795[_0x5613cb('0x11')]),_0x572143['attributes']=_[_0x5613cb('0x1d')](_0x5c7795[_0x5613cb('0x47')],qs[_0x5613cb('0x95')](_0x107792[_0x5613cb('0x11')][_0x5613cb('0x95')])),_0x572143[_0x5613cb('0x4d')]=_0x572143[_0x5613cb('0x4d')]['length']?_0x572143['attributes']:_0x5c7795[_0x5613cb('0x47')],_0x107792['query'][_0x5613cb('0x8f')]&&(_0x572143[_0x5613cb('0x86')]=[{'all':!![]}]),_0x572143=_[_0x5613cb('0x70')]({},_0x572143,_0x107792[_0x5613cb('0x5f')]),db[_0x5613cb('0x4b')][_0x5613cb('0x68')](_0x572143)[_0x5613cb('0x5d')](handleEntityNotFound(_0x14e995,null))[_0x5613cb('0x5d')](respondWithResult(_0x14e995,null))[_0x5613cb('0x97')](handleError(_0x14e995,null));},exports[_0x25d814('0x69')]=function(_0x17d756,_0x24f85b){const _0x364ad8=_0x25d814;return db[_0x364ad8('0x4b')][_0x364ad8('0x69')](_0x17d756[_0x364ad8('0x6b')],{})[_0x364ad8('0x5d')](function(_0x27dcf4){const _0x20ed06=_0x364ad8,_0x3ee28c=_0x17d756[_0x20ed06('0x3f')][_0x20ed06('0x4c')]({'plain':!![]});if(!_0x3ee28c)throw new Error(_0x20ed06('0x2c'));if(_0x3ee28c[_0x20ed06('0x13')]==='user'){const _0x40a43b=_0x27dcf4[_0x20ed06('0x4c')]({'plain':!![]}),_0x1ef9f8='OpenchannelAccounts';return db['UserProfileSection']['findOne']({'where':{'name':_0x1ef9f8,'userProfileId':_0x3ee28c[_0x20ed06('0x8')]},'raw':!![]})[_0x20ed06('0x5d')](function(_0x5a78ce){const _0x59f24e=_0x20ed06;return _0x5a78ce&&_0x5a78ce['autoAssociation']===0x0?db[_0x59f24e('0x99')][_0x59f24e('0x69')]({'name':_0x40a43b['name'],'resourceId':_0x40a43b['id'],'type':_0x5a78ce[_0x59f24e('0x3d')],'sectionId':_0x5a78ce['id']},{})[_0x59f24e('0x5d')](function(){return _0x27dcf4;}):_0x27dcf4;})[_0x20ed06('0x97')](function(_0x21beed){const _0x5ef301=_0x20ed06;logger[_0x5ef301('0x12')](_0x5ef301('0x9'),_0x21beed);throw _0x21beed;});}return _0x27dcf4;})['then'](respondWithResult(_0x24f85b,0xc9))[_0x364ad8('0x97')](handleError(_0x24f85b,null));},exports[_0x25d814('0x7d')]=function(_0x334c3c,_0x1f2fd8){const _0x4b8e57=_0x25d814;return _0x334c3c[_0x4b8e57('0x6b')]['id']&&delete _0x334c3c[_0x4b8e57('0x6b')]['id'],db['OpenchannelAccount'][_0x4b8e57('0x68')]({'where':{'id':_0x334c3c['params']['id']},'include':[{'model':db[_0x4b8e57('0x62')],'as':_0x4b8e57('0x38')}]})[_0x4b8e57('0x5d')](handleEntityNotFound(_0x1f2fd8,null))[_0x4b8e57('0x5d')](saveUpdates(_0x334c3c[_0x4b8e57('0x6b')],null))[_0x4b8e57('0x5d')](respondWithResult(_0x1f2fd8,null))['catch'](handleError(_0x1f2fd8,null));},exports[_0x25d814('0x0')]=function(_0x141367,_0x5e37f2){const _0x28d6e0=_0x25d814;return db['OpenchannelAccount'][_0x28d6e0('0x68')]({'where':{'id':_0x141367[_0x28d6e0('0xa')]['id']}})['then'](handleEntityNotFound(_0x5e37f2,null))[_0x28d6e0('0x5d')](removeEntity(_0x5e37f2,null))[_0x28d6e0('0x97')](handleError(_0x5e37f2,null));},exports[_0x25d814('0x75')]=function(_0x1aed1b,_0x243ebb){const _0x1c7774=_0x25d814;return db[_0x1c7774('0x4b')][_0x1c7774('0x75')]()[_0x1c7774('0x5d')](respondWithResult(_0x243ebb,null))[_0x1c7774('0x97')](handleError(_0x243ebb,null));},exports[_0x25d814('0x2a')]=function(_0xb9c6bf,_0x16950c){const _0x312a28=_0x25d814;return _0xb9c6bf[_0x312a28('0x6b')]['id']&&delete _0xb9c6bf[_0x312a28('0x6b')]['id'],db[_0x312a28('0x4b')][_0x312a28('0x68')]({'where':{'id':_0xb9c6bf[_0x312a28('0xa')]['id']}})[_0x312a28('0x5d')](handleEntityNotFound(_0x16950c,null))[_0x312a28('0x5d')](function(_0x22f90f){const _0x23968a=_0x312a28;if(_0x22f90f)return _0xb9c6bf['body'][_0x23968a('0x49')]=_0x22f90f['id'],db[_0x23968a('0x5b')][_0x23968a('0x69')](_0xb9c6bf[_0x23968a('0x6b')]);})[_0x312a28('0x5d')](respondWithResult(_0x16950c,null))[_0x312a28('0x97')](handleError(_0x16950c,null));},exports[_0x25d814('0x89')]=function(_0x193331,_0x2f0031){const _0xd16416=_0x25d814;let _0x35f31b={'raw':![],'where':{}};const _0x60dd05={},_0x385f85={'count':0x0,'rows':[]};return db[_0xd16416('0x4b')]['findOne']({'where':{'id':_0x193331[_0xd16416('0xa')]['id']}})[_0xd16416('0x5d')](handleEntityNotFound(_0x2f0031,null))['then'](function(_0x4e0c88){const _0x49c0e8=_0xd16416;if(_0x4e0c88)return _0x60dd05[_0x49c0e8('0x47')]=_[_0x49c0e8('0x43')](db[_0x49c0e8('0x5b')]['rawAttributes']),_0x60dd05[_0x49c0e8('0x11')]=_[_0x49c0e8('0x43')](_0x193331['query']),_0x60dd05[_0x49c0e8('0x98')]=_[_0x49c0e8('0x1d')](_0x60dd05[_0x49c0e8('0x47')],_0x60dd05[_0x49c0e8('0x11')]),_0x35f31b[_0x49c0e8('0x4d')]=_[_0x49c0e8('0x1d')](_0x60dd05[_0x49c0e8('0x47')],qs[_0x49c0e8('0x95')](_0x193331[_0x49c0e8('0x11')][_0x49c0e8('0x95')])),_0x35f31b[_0x49c0e8('0x4d')]=_0x35f31b['attributes'][_0x49c0e8('0x4e')]?_0x35f31b['attributes']:_0x60dd05[_0x49c0e8('0x47')],typeof _0x193331[_0x49c0e8('0x11')][_0x49c0e8('0x7b')]==='undefined'&&(_0x35f31b[_0x49c0e8('0x4f')]=qs[_0x49c0e8('0x4f')](_0x193331[_0x49c0e8('0x11')][_0x49c0e8('0x4f')]),_0x35f31b[_0x49c0e8('0x72')]=qs[_0x49c0e8('0x72')](_0x193331['query']['offset'])),_0x35f31b[_0x49c0e8('0x7e')]=qs[_0x49c0e8('0x50')](_0x193331[_0x49c0e8('0x11')][_0x49c0e8('0x50')]),_0x35f31b[_0x49c0e8('0x59')]=qs[_0x49c0e8('0x98')](_['pick'](_0x193331[_0x49c0e8('0x11')],_0x60dd05[_0x49c0e8('0x98')])),_0x35f31b[_0x49c0e8('0x59')][_0x49c0e8('0x49')]=_0x4e0c88['id'],_0x193331['query']['filter']&&(_0x35f31b[_0x49c0e8('0x59')]=_['merge'](_0x35f31b[_0x49c0e8('0x59')],{[Op['or']]:_[_0x49c0e8('0x5e')](_0x35f31b[_0x49c0e8('0x4d')],function(_0x10be2c){const _0x1f9de0=_0x49c0e8,_0x488363={};return _0x488363[_0x10be2c]={[Op[_0x1f9de0('0x84')]]:'%'+_0x193331['query'][_0x1f9de0('0x42')]+'%'},_0x488363;})})),_0x35f31b=_[_0x49c0e8('0x70')]({},_0x35f31b,_0x193331[_0x49c0e8('0x5f')]),db[_0x49c0e8('0x5b')][_0x49c0e8('0x64')]({'where':_0x35f31b['where']})[_0x49c0e8('0x5d')](function(_0x55adee){const _0x404f36=_0x49c0e8;return _0x385f85['count']=_0x55adee,_0x193331['query'][_0x404f36('0x8f')]&&(_0x35f31b['include']=[{'all':!![]}]),db[_0x404f36('0x5b')][_0x404f36('0x40')](_0x35f31b);})[_0x49c0e8('0x5d')](function(_0x30770a){const _0x5029ae=_0x49c0e8;return _0x385f85[_0x5029ae('0x1c')]=_0x30770a,_0x385f85;});})[_0xd16416('0x5d')](respondWithFilteredResult(_0x2f0031,_0x35f31b))[_0xd16416('0x97')](handleError(_0x2f0031,null));},exports[_0x25d814('0x8e')]=function(_0x473e7c,_0xc911f2){const _0x50c986=_0x25d814;return db[_0x50c986('0x4b')][_0x50c986('0x68')]({'where':{'id':_0x473e7c[_0x50c986('0xa')]['id']}})[_0x50c986('0x5d')](handleEntityNotFound(_0xc911f2,null))[_0x50c986('0x5d')](function(_0x5a56f4){const _0x5d4508=_0x50c986;if(_0x5a56f4)return _0x5a56f4[_0x5d4508('0x8e')](_0x473e7c[_0x5d4508('0x11')][_0x5d4508('0x7f')]);})[_0x50c986('0x5d')](respondWithStatusCode(_0xc911f2,null))[_0x50c986('0x97')](handleError(_0xc911f2,null));},exports[_0x25d814('0x63')]=function(_0x231cbf,_0x37f4fc){const _0x2a1100=_0x25d814;return _0x231cbf[_0x2a1100('0x6b')]['id']&&delete _0x231cbf['body']['id'],db[_0x2a1100('0x4b')]['findOne']({'where':{'id':_0x231cbf[_0x2a1100('0xa')]['id']}})[_0x2a1100('0x5d')](handleEntityNotFound(_0x37f4fc,null))['then'](function(_0x40e235){const _0x3a2649=_0x2a1100;if(_0x40e235)return _0x231cbf['body'][_0x3a2649('0x49')]=_0x40e235['id'],db[_0x3a2649('0x5a')]['create'](_0x231cbf[_0x3a2649('0x6b')]);})[_0x2a1100('0x5d')](respondWithResult(_0x37f4fc,null))[_0x2a1100('0x97')](handleError(_0x37f4fc,null));},exports['getAnswers']=function(_0x2d4575,_0x3efff7){const _0x101f06=_0x25d814;let _0xea695f={'raw':![],'where':{}};const _0x3ebe78={},_0x5466e0={'count':0x0,'rows':[]};return db[_0x101f06('0x4b')][_0x101f06('0x68')]({'where':{'id':_0x2d4575[_0x101f06('0xa')]['id']}})['then'](handleEntityNotFound(_0x3efff7,null))[_0x101f06('0x5d')](function(_0x3e8eb6){const _0xc222eb=_0x101f06;if(_0x3e8eb6)return _0x3ebe78['model']=_['keys'](db[_0xc222eb('0x5a')][_0xc222eb('0x2f')]),_0x3ebe78['query']=_[_0xc222eb('0x43')](_0x2d4575['query']),_0x3ebe78[_0xc222eb('0x98')]=_[_0xc222eb('0x1d')](_0x3ebe78[_0xc222eb('0x47')],_0x3ebe78[_0xc222eb('0x11')]),_0xea695f[_0xc222eb('0x4d')]=_[_0xc222eb('0x1d')](_0x3ebe78['model'],qs[_0xc222eb('0x95')](_0x2d4575[_0xc222eb('0x11')][_0xc222eb('0x95')])),_0xea695f[_0xc222eb('0x4d')]=_0xea695f[_0xc222eb('0x4d')]['length']?_0xea695f['attributes']:_0x3ebe78['model'],typeof _0x2d4575[_0xc222eb('0x11')]['nolimit']===_0xc222eb('0x7')&&(_0xea695f[_0xc222eb('0x4f')]=qs['limit'](_0x2d4575[_0xc222eb('0x11')][_0xc222eb('0x4f')]),_0xea695f[_0xc222eb('0x72')]=qs[_0xc222eb('0x72')](_0x2d4575[_0xc222eb('0x11')]['offset'])),_0xea695f[_0xc222eb('0x7e')]=qs[_0xc222eb('0x50')](_0x2d4575[_0xc222eb('0x11')][_0xc222eb('0x50')]),_0xea695f[_0xc222eb('0x59')]=qs['filters'](_[_0xc222eb('0x74')](_0x2d4575[_0xc222eb('0x11')],_0x3ebe78['filters'])),_0xea695f[_0xc222eb('0x59')]['OpenchannelAccountId']=_0x3e8eb6['id'],_0x2d4575['query'][_0xc222eb('0x42')]&&(_0xea695f[_0xc222eb('0x59')]=_[_0xc222eb('0x70')](_0xea695f[_0xc222eb('0x59')],{[Op['or']]:_[_0xc222eb('0x5e')](_0xea695f[_0xc222eb('0x4d')],function(_0x241376){const _0x44c2e2=_0xc222eb,_0x171d66={};return _0x171d66[_0x241376]={[Op[_0x44c2e2('0x84')]]:'%'+_0x2d4575['query']['filter']+'%'},_0x171d66;})})),_0xea695f=_[_0xc222eb('0x70')]({},_0xea695f,_0x2d4575[_0xc222eb('0x5f')]),db[_0xc222eb('0x5a')][_0xc222eb('0x64')]({'where':_0xea695f['where']})[_0xc222eb('0x5d')](function(_0x105172){const _0x2d46f0=_0xc222eb;return _0x5466e0['count']=_0x105172,_0x2d4575[_0x2d46f0('0x11')][_0x2d46f0('0x8f')]&&(_0xea695f[_0x2d46f0('0x86')]=[{'all':!![]}]),db['CannedAnswer'][_0x2d46f0('0x40')](_0xea695f);})[_0xc222eb('0x5d')](function(_0x3d6a1e){const _0x4c751e=_0xc222eb;return _0x5466e0[_0x4c751e('0x1c')]=_0x3d6a1e,_0x5466e0;});})[_0x101f06('0x5d')](respondWithFilteredResult(_0x3efff7,_0xea695f))[_0x101f06('0x97')](handleError(_0x3efff7,null));},exports[_0x25d814('0x51')]=function(_0x3872bb,_0x880f4e){const _0xf506ef=_0x25d814;return db[_0xf506ef('0x4b')][_0xf506ef('0x68')]({'where':{'id':_0x3872bb[_0xf506ef('0xa')]['id']}})[_0xf506ef('0x5d')](handleEntityNotFound(_0x880f4e,null))[_0xf506ef('0x5d')](function(_0x4b35bd){const _0x438367=_0xf506ef;if(_0x4b35bd)return _0x4b35bd['removeAnswers'](_0x3872bb[_0x438367('0x11')][_0x438367('0x7f')]);})[_0xf506ef('0x5d')](respondWithStatusCode(_0x880f4e,null))[_0xf506ef('0x97')](handleError(_0x880f4e,null));},exports[_0x25d814('0x92')]=function(_0x377f15,_0x2f75a2){const _0x494342=_0x25d814,_0x307705={'body':_0x377f15[_0x494342('0x6b')],'channel':_0x494342('0x30')};let _0x23afd8=[],_0x4c410e=[];const _0x297e01={};let _0x33b6f3=![];return db[_0x494342('0x79')][_0x494342('0x75')]()['then'](function(_0x3a930b){const _0xafee7f=_0x494342;if(!_0x3a930b)throw new ValidationError('no\x20available\x20attributes');_0x23afd8=_['difference'](_[_0xafee7f('0x43')](_0x3a930b),[_0xafee7f('0x27'),_0xafee7f('0x6d')]),_0x4c410e=_[_0xafee7f('0x20')](_[_0xafee7f('0x43')](_0x3a930b),[_0xafee7f('0x27'),_0xafee7f('0x6d'),_0xafee7f('0x3e'),_0xafee7f('0x28')]);_0x377f15['body']['id']&&delete _0x377f15['body']['id'];if(_[_0xafee7f('0x22')](_0x377f15[_0xafee7f('0x6b')][_0xafee7f('0x67')]))throw new ValidationError(_0xafee7f('0x6c'));if(_[_0xafee7f('0x22')](_0x377f15[_0xafee7f('0x6b')]['body'])||_0x377f15[_0xafee7f('0x6b')]['body']==='')throw new ValidationError(_0xafee7f('0x71'));if(_[_0xafee7f('0x22')](_0x377f15[_0xafee7f('0x6b')][_0xafee7f('0x81')]))throw new ValidationError(_0xafee7f('0x1')+_0x4c410e);if(!_[_0xafee7f('0x88')](_0x4c410e,_0x377f15[_0xafee7f('0x6b')][_0xafee7f('0x81')]))throw new ValidationError(_0xafee7f('0x26')+_0x4c410e);_0x297e01[_0x377f15['body']['mapKey']]=_0x377f15[_0xafee7f('0x6b')][_0xafee7f('0x67')];})[_0x494342('0x5d')](function(){const _0x2d1526=_0x494342;return db[_0x2d1526('0x4b')][_0x2d1526('0x68')]({'where':{'id':_0x377f15[_0x2d1526('0xa')]['id']},'include':[{'model':db[_0x2d1526('0x46')],'as':_0x2d1526('0x8b'),'include':[{'model':db[_0x2d1526('0x79')],'as':_0x2d1526('0xf'),'where':_0x297e01,'limit':0x1,'order':[['updatedAt',_0x2d1526('0x7c')]]}]},{'model':db['OpenchannelApplication'],'as':_0x2d1526('0x53')}]});})[_0x494342('0x5d')](handleEntityNotFound(_0x2f75a2,null))[_0x494342('0x5d')](function(_0x2418bc){const _0x1fe512=_0x494342;if(_0x2418bc&&_0x2418bc[_0x1fe512('0x8b')]){_0x307705[_0x1fe512('0x39')]=_0x2418bc,_0x307705[_0x1fe512('0x65')]=_0x2418bc[_0x1fe512('0x53')],_0x307705[_0x1fe512('0x33')]=_0x2418bc[_0x1fe512('0x8b')],_0x307705[_0x1fe512('0x65')]=_[_0x1fe512('0x21')](_0x307705[_0x1fe512('0x65')],['priority'],['asc']);_0x307705[_0x1fe512('0x39')]['Applications']&&delete _0x307705[_0x1fe512('0x39')][_0x1fe512('0x53')];if(_0x307705[_0x1fe512('0x39')][_0x1fe512('0x8b')]&&_0x307705[_0x1fe512('0x39')]['List'][_0x1fe512('0xf')][_0x1fe512('0x4e')])return _0x307705[_0x1fe512('0x39')][_0x1fe512('0x8b')][_0x1fe512('0xf')][0x0];const _0x3bc0ed=_[_0x1fe512('0x45')](_0x377f15[_0x1fe512('0x6b')],{'firstName':_0x377f15[_0x1fe512('0x6b')]['from'],'ListId':_0x2418bc['ListId']});return _0x3bc0ed[_0x377f15[_0x1fe512('0x6b')][_0x1fe512('0x81')]]=_0x377f15[_0x1fe512('0x6b')][_0x1fe512('0x67')],db['CmContact'][_0x1fe512('0x69')](_0x3bc0ed,{'fields':_0x23afd8,'raw':!![]});}})['then'](handleEntityNotFound(_0x2f75a2,null))[_0x494342('0x5d')](function(_0x375918){const _0x14d2b8=_0x494342;_0x307705[_0x14d2b8('0x48')]=_0x375918;if(_0x375918){const _0x11f67b={'ContactId':_0x375918['id'],'OpenchannelAccountId':_0x377f15[_0x14d2b8('0xa')]['id'],'from':(_0x375918[_0x14d2b8('0x3')]||'')+'\x20'+(_0x375918[_0x14d2b8('0x41')]||'')},_0xe0c19f={'OpenchannelAccountId':_0x377f15[_0x14d2b8('0xa')]['id'],'closed':![]};if(_0x377f15['body'][_0x14d2b8('0x76')])return _0xe0c19f[_0x14d2b8('0x76')]=_0x377f15['body']['threadId'],db[_0x14d2b8('0x91')]['findOne']({'where':_0xe0c19f})['then'](function(_0xe5faab){const _0x2a6d9c=_0x14d2b8;if(_0xe5faab)return[_0xe5faab,![]];return _0x11f67b[_0x2a6d9c('0x76')]=_0x377f15[_0x2a6d9c('0x6b')]['threadId'],_0x11f67b[_0x2a6d9c('0x73')]=_0x377f15[_0x2a6d9c('0x6b')]['externalUrl'],db[_0x2a6d9c('0x91')][_0x2a6d9c('0x69')](_0x11f67b)[_0x2a6d9c('0x5d')](function(_0x39af60){return[_0x39af60,!![]];});});else _0xe0c19f[_0x14d2b8('0x76')]=null;return _0xe0c19f[_0x14d2b8('0x58')]=_0x375918['id'],db['OpenchannelInteraction']['findOne']({'where':_0xe0c19f})[_0x14d2b8('0x5d')](function(_0x2c9cdd){const _0x511a24=_0x14d2b8;if(_0x2c9cdd)return[_0x2c9cdd,![]];return db[_0x511a24('0x91')][_0x511a24('0x69')](_0x11f67b)[_0x511a24('0x5d')](function(_0x3838fb){return[_0x3838fb,!![]];});});}})[_0x494342('0x5d')](function([_0x181c5c,_0x3f984d]){const _0x38793c=_0x494342;if(_0x181c5c){_0x33b6f3=_0x3f984d;if(!_0x3f984d){const _0x58458f={'from':(_0x307705[_0x38793c('0x48')]['firstName']||'')+'\x20'+(_0x307705[_0x38793c('0x48')][_0x38793c('0x41')]||'')};return _0x377f15['body']['threadId']&&_0x377f15['body'][_0x38793c('0x93')]&&_0x377f15[_0x38793c('0x6b')][_0x38793c('0x76')]!=_0x377f15['body'][_0x38793c('0x93')]&&(_0x58458f['threadId']=_0x377f15[_0x38793c('0x6b')]['messageId']),_0x181c5c[_0x38793c('0x7d')](_0x58458f);}else return _0x181c5c;}})[_0x494342('0x5d')](function(_0x5ece93){const _0x56cbd0=_0x494342;return _0x307705[_0x56cbd0('0x8a')]=_0x5ece93['get']({'plain':!![]}),_0x307705[_0x56cbd0('0x8a')][_0x56cbd0('0x60')]=_0x33b6f3,_0x307705[_0x56cbd0('0x8a')]['created']&&(_0x307705['account'][_0x56cbd0('0x78')]&&_0x307705['applications'][_0x56cbd0('0xc')]({'id':0x0,'priority':_0x307705[_0x56cbd0('0x65')]['length']+0x1,'app':'close','appdata':'unmanaged','interval':_0x56cbd0('0x5c')})),db[_0x56cbd0('0x23')][_0x56cbd0('0x69')]({'body':_0x377f15[_0x56cbd0('0x6b')][_0x56cbd0('0x6b')],'OpenchannelAccountId':_0x377f15[_0x56cbd0('0xa')]['id'],'OpenchannelInteractionId':_0x5ece93['id'],'direction':'in','ContactId':_0x307705[_0x56cbd0('0x48')]['id'],'AttachmentId':_0x377f15[_0x56cbd0('0x6b')][_0x56cbd0('0x3b')]});})['then'](function(_0x468042){const _0xe73c5b=_0x494342;_0x307705[_0xe73c5b('0x16')]=_0x468042;if(_0x307705[_0xe73c5b('0x8a')][_0xe73c5b('0xd')])return db[_0xe73c5b('0x18')][_0xe73c5b('0x68')]({'attributes':['id',_0xe73c5b('0x3d')],'where':{'id':_0x307705[_0xe73c5b('0x8a')][_0xe73c5b('0xd')]}})[_0xe73c5b('0x5d')](function(_0x517937){const _0x3b6fd0=_0xe73c5b;return _0x517937&&(_0x307705[_0x3b6fd0('0x65')][_0x3b6fd0('0x4a')]({'id':0x0,'priority':0x0,'app':_0x3b6fd0('0x3a'),'appdata':_0x517937['name']+','+(_0x307705[_0x3b6fd0('0x39')][_0x3b6fd0('0x56')]||0xa),'interval':'*,*,*,*'}),_0x307705['forcedOwnership']=![]),respondWithRpcPromise(_0x3b6fd0('0x2'),_0x3b6fd0('0x96'),_0x307705);});return respondWithRpcPromise('Start',_0xe73c5b('0x96'),_0x307705);})[_0x494342('0x5d')](function(_0x217b3f){const _0x3ff94c=_0x494342;return respondWithRpcPromise(_0x3ff94c('0x66'),_0x3ff94c('0x66'),{'event':'notify','message':_0x217b3f},client9002),_0x217b3f;})[_0x494342('0x5d')](respondWithResult(_0x2f75a2,null))[_0x494342('0x97')](handleError(_0x2f75a2,null));},exports[_0x25d814('0x31')]=function(_0x5b746d,_0x417522){const _0x10c228=_0x25d814;return db[_0x10c228('0x4b')][_0x10c228('0x68')]({'where':{'id':_0x5b746d[_0x10c228('0xa')]['id']}})[_0x10c228('0x5d')](handleEntityNotFound(_0x417522,null))[_0x10c228('0x5d')](function(_0x3e2bfa){const _0x26899a=_0x10c228;if(_0x3e2bfa)return db[_0x26899a('0x5')][_0x26899a('0x57')](function(_0x14161a){const _0x552c32=_0x26899a;return db[_0x552c32('0x77')][_0x552c32('0x0')]({'where':{'OpenchannelAccountId':_0x5b746d[_0x552c32('0xa')]['id']},'transaction':_0x14161a})[_0x552c32('0x5d')](function(){const _0x1c23d0=_0x552c32,_0x20dd12=_[_0x1c23d0('0x5e')](_0x5b746d[_0x1c23d0('0x6b')],function(_0x261aa0){const _0x418beb=_0x1c23d0;return _0x261aa0[_0x418beb('0x49')]=_0x5b746d[_0x418beb('0xa')]['id'],_0x261aa0;});return db[_0x1c23d0('0x77')]['bulkCreate'](_0x20dd12,{'transaction':_0x14161a});});})['then'](function(){const _0x40807e=_0x26899a;return db['OpenchannelApplication'][_0x40807e('0x2b')]({'where':{'OpenchannelAccountId':_0x5b746d[_0x40807e('0xa')]['id']},'order':'priority'});});})['then'](respondWithResult(_0x417522,null))[_0x10c228('0x97')](handleError(_0x417522,null));},exports[_0x25d814('0x8d')]=function(_0x25ccdd,_0x3a1749){const _0x234cb6=_0x25d814;let _0x4c8a42={};const _0x4c0721={};let _0x2dd432,_0x4c08c4;return db[_0x234cb6('0x4b')][_0x234cb6('0x68')]({'where':{'id':_0x25ccdd[_0x234cb6('0xa')]['id']}})[_0x234cb6('0x5d')](handleEntityNotFound(_0x3a1749,null))[_0x234cb6('0x5d')](function(_0x4381f0){const _0x44032a=_0x234cb6;if(_0x4381f0)return _0x2dd432=_0x4381f0,_0x4c0721[_0x44032a('0x47')]=_[_0x44032a('0x43')](db[_0x44032a('0x77')][_0x44032a('0x2f')]),_0x4c0721[_0x44032a('0x11')]=_['keys'](_0x25ccdd['query']),_0x4c0721['filters']=_[_0x44032a('0x1d')](_0x4c0721[_0x44032a('0x47')],_0x4c0721[_0x44032a('0x11')]),_0x4c8a42['attributes']=_[_0x44032a('0x1d')](_0x4c0721['model'],qs[_0x44032a('0x95')](_0x25ccdd[_0x44032a('0x11')][_0x44032a('0x95')])),_0x4c8a42['attributes']=_0x4c8a42[_0x44032a('0x4d')][_0x44032a('0x4e')]?_0x4c8a42[_0x44032a('0x4d')]:_0x4c0721[_0x44032a('0x47')],_0x4c8a42[_0x44032a('0x7e')]=qs[_0x44032a('0x50')](_0x25ccdd['query'][_0x44032a('0x50')]),_0x4c8a42[_0x44032a('0x59')]=qs[_0x44032a('0x98')](_['pick'](_0x25ccdd[_0x44032a('0x11')],_0x4c0721[_0x44032a('0x98')])),_0x25ccdd['query'][_0x44032a('0x42')]&&(_0x4c8a42[_0x44032a('0x59')]=_[_0x44032a('0x70')](_0x4c8a42[_0x44032a('0x59')],{[Op['or']]:_['map'](_0x4c8a42[_0x44032a('0x4d')],function(_0x3b545d){const _0x3e2204=_0x44032a,_0x3b5dee={};return _0x3b5dee[_0x3b545d]={[Op['like']]:'%'+_0x25ccdd[_0x3e2204('0x11')][_0x3e2204('0x42')]+'%'},_0x3b5dee;})})),_0x4c8a42=_[_0x44032a('0x70')]({},_0x4c8a42,_0x25ccdd[_0x44032a('0x5f')]),_0x2dd432[_0x44032a('0x8d')](_0x4c8a42);})[_0x234cb6('0x5d')](function(_0x951f1d){const _0x14d911=_0x234cb6;if(_0x951f1d)return _0x4c08c4=_0x951f1d[_0x14d911('0x4e')],typeof _0x25ccdd[_0x14d911('0x11')][_0x14d911('0x7b')]===_0x14d911('0x7')&&(_0x4c8a42[_0x14d911('0x4f')]=qs['limit'](_0x25ccdd[_0x14d911('0x11')][_0x14d911('0x4f')]),_0x4c8a42[_0x14d911('0x72')]=qs['offset'](_0x25ccdd[_0x14d911('0x11')]['offset'])),_0x2dd432[_0x14d911('0x8d')](_0x4c8a42);})['then'](function(_0x2db8bf){if(_0x2db8bf)return _0x2db8bf?{'count':_0x4c08c4,'rows':_0x2db8bf}:null;})[_0x234cb6('0x5d')](respondWithResult(_0x3a1749,null))['catch'](handleError(_0x3a1749,null));},exports[_0x25d814('0x2d')]=function(_0x49257a,_0xd50324){const _0x1fa639=_0x25d814;let _0x21b0b0={'raw':![],'where':{}};const _0x20f292={},_0x4109b3={'count':0x0,'rows':[]};return db['OpenchannelAccount'][_0x1fa639('0x68')]({'where':{'id':_0x49257a[_0x1fa639('0xa')]['id']}})[_0x1fa639('0x5d')](handleEntityNotFound(_0xd50324,null))['then'](function(_0x2c9548){const _0x566ecf=_0x1fa639;if(_0x2c9548)return _0x20f292[_0x566ecf('0x47')]=_['keys'](db[_0x566ecf('0x91')][_0x566ecf('0x2f')]),_0x20f292['query']=_[_0x566ecf('0x43')](_0x49257a[_0x566ecf('0x11')]),_0x20f292[_0x566ecf('0x98')]=_[_0x566ecf('0x1d')](_0x20f292[_0x566ecf('0x47')],_0x20f292['query']),_0x21b0b0[_0x566ecf('0x4d')]=_['intersection'](_0x20f292[_0x566ecf('0x47')],qs['fields'](_0x49257a['query'][_0x566ecf('0x95')])),_0x21b0b0[_0x566ecf('0x4d')]=_0x21b0b0[_0x566ecf('0x4d')]['length']?_0x21b0b0[_0x566ecf('0x4d')]:_0x20f292['model'],typeof _0x49257a[_0x566ecf('0x11')]['nolimit']===_0x566ecf('0x7')&&(_0x21b0b0[_0x566ecf('0x4f')]=qs[_0x566ecf('0x4f')](_0x49257a['query'][_0x566ecf('0x4f')]),_0x21b0b0[_0x566ecf('0x72')]=qs[_0x566ecf('0x72')](_0x49257a[_0x566ecf('0x11')][_0x566ecf('0x72')])),_0x21b0b0['order']=qs[_0x566ecf('0x50')](_0x49257a[_0x566ecf('0x11')][_0x566ecf('0x50')]),_0x21b0b0[_0x566ecf('0x59')]=qs[_0x566ecf('0x98')](_[_0x566ecf('0x74')](_0x49257a['query'],_0x20f292['filters'])),_0x21b0b0[_0x566ecf('0x59')][_0x566ecf('0x49')]=_0x2c9548['id'],_0x49257a[_0x566ecf('0x11')][_0x566ecf('0x42')]&&(_0x21b0b0['where']=_['merge'](_0x21b0b0[_0x566ecf('0x59')],{[Op['or']]:_[_0x566ecf('0x5e')](_0x21b0b0[_0x566ecf('0x4d')],function(_0x5e0721){const _0x1d6edf=_0x566ecf,_0x292d0e={};return _0x292d0e[_0x5e0721]={[Op['like']]:'%'+_0x49257a[_0x1d6edf('0x11')][_0x1d6edf('0x42')]+'%'},_0x292d0e;})})),_0x21b0b0=_[_0x566ecf('0x70')]({},_0x21b0b0,_0x49257a[_0x566ecf('0x5f')]),db[_0x566ecf('0x91')]['count']({'where':_0x21b0b0[_0x566ecf('0x59')]})['then'](function(_0xad1696){const _0x49bc7b=_0x566ecf;return _0x4109b3[_0x49bc7b('0x64')]=_0xad1696,_0x49257a[_0x49bc7b('0x11')][_0x49bc7b('0x8f')]&&(_0x21b0b0[_0x49bc7b('0x86')]=[{'model':db[_0x49bc7b('0x79')],'as':'Contact','required':![]},{'model':db[_0x49bc7b('0x18')],'as':_0x49bc7b('0x94'),'attributes':[_0x49bc7b('0x3d'),'fullname',_0x49bc7b('0x10')],'required':![]},{'model':db[_0x49bc7b('0x29')],'as':_0x49bc7b('0x6a'),'attributes':['id','name',_0x49bc7b('0x82')],'where':_0x49257a[_0x49bc7b('0x11')]['tag']?{'id':_0x49257a[_0x49bc7b('0x11')]['tag']}:undefined,'required':_0x49257a['query']['tag']?!![]:![]}]),db[_0x49bc7b('0x91')]['findAll'](_0x21b0b0);})[_0x566ecf('0x5d')](function(_0x2138d5){return _0x4109b3['rows']=_0x2138d5,_0x4109b3;});})[_0x1fa639('0x5d')](respondWithFilteredResult(_0xd50324,_0x21b0b0))[_0x1fa639('0x97')](handleError(_0xd50324,null));},exports[_0x25d814('0x1b')]=function(_0x1cf6fb,_0x360d7e){const _0x5528d6=_0x25d814;return db[_0x5528d6('0x4b')][_0x5528d6('0x68')]({'where':{'id':_0x1cf6fb['params']['id']}})[_0x5528d6('0x5d')](function(_0x31928d){const _0x522773=_0x5528d6;if(_0x31928d)return _0x31928d[_0x522773('0x1b')](_0x1cf6fb[_0x522773('0x6b')]['ids'],{'through':_[_0x522773('0x7a')](_0x1cf6fb[_0x522773('0x6b')],['ids','id'])})[_0x522773('0x5d')](function(_0xf4939e){const _0x1bd3ba=_0x522773;for(let _0x5e9565=0x0;_0x5e9565<_0x1cf6fb[_0x1bd3ba('0x6b')][_0x1bd3ba('0x7f')][_0x1bd3ba('0x4e')];_0x5e9565+=0x1){socket[_0x1bd3ba('0x8c')](_0x1bd3ba('0x83'),{'UserId':_0x1cf6fb['body']['ids'][_0x5e9565],'OpenchannelAccountId':_0x1cf6fb[_0x1bd3ba('0xa')]['id']});}return _0xf4939e;});})['then'](respondWithResult(_0x360d7e,null))['catch'](handleError(_0x360d7e,null));},exports['removeAgents']=function(_0xfb39c,_0x51d4a3){const _0xda9050=_0x25d814;return db['OpenchannelAccount'][_0xda9050('0x68')]({'where':{'id':_0xfb39c[_0xda9050('0xa')]['id']}})['then'](handleEntityNotFound(_0x51d4a3,null))['then'](function(_0x2e9535){const _0x3458ad=_0xda9050;if(_0x2e9535)return _0x2e9535['removeAgents'](_0xfb39c[_0x3458ad('0x11')][_0x3458ad('0x7f')])[_0x3458ad('0x5d')](function(){const _0x244cef=_0x3458ad;if(_[_0x244cef('0x19')](_0xfb39c[_0x244cef('0x11')][_0x244cef('0x7f')]))for(let _0x110c34=0x0;_0x110c34<_0xfb39c[_0x244cef('0x11')][_0x244cef('0x7f')][_0x244cef('0x4e')];_0x110c34+=0x1){socket['emit'](_0x244cef('0x25'),{'UserId':Number(_0xfb39c[_0x244cef('0x11')][_0x244cef('0x7f')][_0x110c34]),'OpenchannelAccountId':Number(_0xfb39c[_0x244cef('0xa')]['id'])});}else socket[_0x244cef('0x8c')]('userOpenchannelAccount:remove',{'UserId':Number(_0xfb39c[_0x244cef('0x11')][_0x244cef('0x7f')]),'OpenchannelAccountId':Number(_0xfb39c[_0x244cef('0xa')]['id'])});});})[_0xda9050('0x5d')](respondWithStatusCode(_0x51d4a3,null))[_0xda9050('0x97')](handleError(_0x51d4a3,null));},exports[_0x25d814('0x37')]=function(_0x92dcd5,_0x226aef){const _0x4337eb=_0x25d814;let _0x29ed9d={};const _0x2abb85={};let _0xfd7f89,_0x482ebd;return db[_0x4337eb('0x4b')][_0x4337eb('0x68')]({'where':{'id':_0x92dcd5[_0x4337eb('0xa')]['id']}})['then'](handleEntityNotFound(_0x226aef,null))[_0x4337eb('0x5d')](function(_0x2c3139){const _0x5a9cbe=_0x4337eb;if(_0x2c3139)return _0xfd7f89=_0x2c3139,_0x2abb85[_0x5a9cbe('0x47')]=_[_0x5a9cbe('0x43')](db[_0x5a9cbe('0x18')][_0x5a9cbe('0x2f')]),_0x2abb85[_0x5a9cbe('0x11')]=_[_0x5a9cbe('0x43')](_0x92dcd5[_0x5a9cbe('0x11')]),_0x2abb85[_0x5a9cbe('0x98')]=_[_0x5a9cbe('0x1d')](_0x2abb85[_0x5a9cbe('0x47')],_0x2abb85['query']),_0x29ed9d[_0x5a9cbe('0x4d')]=_[_0x5a9cbe('0x1d')](_0x2abb85[_0x5a9cbe('0x47')],qs['fields'](_0x92dcd5['query']['fields'])),_0x29ed9d[_0x5a9cbe('0x4d')]=_0x29ed9d[_0x5a9cbe('0x4d')][_0x5a9cbe('0x4e')]?_0x29ed9d[_0x5a9cbe('0x4d')]:_0x2abb85['model'],_0x29ed9d[_0x5a9cbe('0x7e')]=qs[_0x5a9cbe('0x50')](_0x92dcd5[_0x5a9cbe('0x11')][_0x5a9cbe('0x50')]),_0x29ed9d[_0x5a9cbe('0x59')]=qs[_0x5a9cbe('0x98')](_[_0x5a9cbe('0x74')](_0x92dcd5[_0x5a9cbe('0x11')],_0x2abb85[_0x5a9cbe('0x98')])),_0x92dcd5['query'][_0x5a9cbe('0x42')]&&(_0x29ed9d[_0x5a9cbe('0x59')]=_['merge'](_0x29ed9d['where'],{[Op['or']]:_[_0x5a9cbe('0x5e')](_0x29ed9d[_0x5a9cbe('0x4d')],function(_0x14205e){const _0x3d0798=_0x5a9cbe,_0x12dec2={};return _0x12dec2[_0x14205e]={[Op[_0x3d0798('0x84')]]:'%'+_0x92dcd5[_0x3d0798('0x11')][_0x3d0798('0x42')]+'%'},_0x12dec2;})})),_0x29ed9d=_[_0x5a9cbe('0x70')]({},_0x29ed9d,_0x92dcd5[_0x5a9cbe('0x5f')]),_0xfd7f89[_0x5a9cbe('0x37')](_0x29ed9d);})[_0x4337eb('0x5d')](function(_0x521c27){const _0x193e56=_0x4337eb;if(_0x521c27)return _0x482ebd=_0x521c27[_0x193e56('0x4e')],typeof _0x92dcd5['query'][_0x193e56('0x7b')]===_0x193e56('0x7')&&(_0x29ed9d[_0x193e56('0x4f')]=qs['limit'](_0x92dcd5['query'][_0x193e56('0x4f')]),_0x29ed9d[_0x193e56('0x72')]=qs[_0x193e56('0x72')](_0x92dcd5['query']['offset'])),_0xfd7f89['getAgents'](_0x29ed9d);})[_0x4337eb('0x5d')](function(_0x52e5dc){if(_0x52e5dc)return _0x52e5dc?{'count':_0x482ebd,'rows':_0x52e5dc}:null;})[_0x4337eb('0x5d')](respondWithResult(_0x226aef,null))['catch'](handleError(_0x226aef,null));},exports[_0x25d814('0x87')]=function(_0x41d8f5,_0x1b54ea){const _0x20ba8a=_0x25d814;let _0x24eecc,_0x5b9602;if(_['isNil'](_0x41d8f5[_0x20ba8a('0x6b')][_0x20ba8a('0x6b')])||_0x41d8f5[_0x20ba8a('0x6b')][_0x20ba8a('0x6b')]==='')throw new ValidationError(_0x20ba8a('0x71'));if(_[_0x20ba8a('0x22')](_0x41d8f5[_0x20ba8a('0x6b')]['to'])){}const _0xfe8f17=_0x41d8f5[_0x20ba8a('0x6b')]['to'];return db[_0x20ba8a('0x4b')][_0x20ba8a('0x68')]({'where':{'id':_0x41d8f5['params']['id']}})['then'](handleEntityNotFound(_0x1b54ea,null))[_0x20ba8a('0x5d')](function(_0x3a1909){const _0x2d517d=_0x20ba8a;if(_0x3a1909)return db[_0x2d517d('0x4b')][_0x2d517d('0x68')]({'where':{'id':_0x3a1909['id']},'include':[{'model':db['CmList'],'as':_0x2d517d('0x8b'),'include':[{'model':db[_0x2d517d('0x79')],'as':_0x2d517d('0xf'),'where':{[_0x3a1909[_0x2d517d('0x81')]]:_0xfe8f17},'limit':0x1,'order':[[_0x2d517d('0x6d'),_0x2d517d('0x7c')]]}]}]})['then'](handleEntityNotFound(_0x1b54ea,null))['then'](function(_0x14ff47){const _0x1d4522=_0x2d517d;if(_0x14ff47&&_0x14ff47[_0x1d4522('0x8b')]){_0x24eecc=_0x14ff47[_0x1d4522('0x4c')]({'plain':!![]});if(_0x24eecc[_0x1d4522('0x8b')]&&_0x24eecc[_0x1d4522('0x8b')][_0x1d4522('0xf')][_0x1d4522('0x4e')])return _0x24eecc[_0x1d4522('0x8b')][_0x1d4522('0xf')][0x0];return db[_0x1d4522('0x79')][_0x1d4522('0x69')](_['defaults'](_0x41d8f5[_0x1d4522('0x6b')],{'firstName':_0xfe8f17,[_0x14ff47[_0x1d4522('0x81')]]:_0xfe8f17,'phone':_0xfe8f17,'ListId':_0x24eecc[_0x1d4522('0x28')]}));}})[_0x2d517d('0x5d')](handleEntityNotFound(_0x1b54ea,null))[_0x2d517d('0x5d')](function(_0x2a11d9){const _0x110ebb=_0x2d517d;if(_0x2a11d9)return _0x5b9602=_0x2a11d9,db[_0x110ebb('0x91')][_0x110ebb('0x68')]({'where':{'ContactId':_0x5b9602['id'],'closed':![],'OpenchannelAccountId':_0x24eecc['id']}})['then'](function(_0x2ace5b){const _0x38a460=_0x110ebb;if(_0x2ace5b)return[_0x2ace5b,![]];return db[_0x38a460('0x91')][_0x38a460('0x69')]({'UserId':_0x41d8f5[_0x38a460('0x3f')]['id'],'ContactId':_0x5b9602['id'],'OpenchannelAccountId':_0x24eecc['id'],'lastMsgDirection':_0x38a460('0x3c'),'Messages':[_[_0x38a460('0x70')](_0x41d8f5[_0x38a460('0x6b')],{'read':![],'body':_0x41d8f5[_0x38a460('0x6b')][_0x38a460('0x6b')],'OpenchannelAccountId':_0x24eecc['id'],'UserId':_0x41d8f5[_0x38a460('0x3f')]['id'],'ContactId':_0x5b9602['id']})]},{'include':[{'model':db[_0x38a460('0x23')],'as':_0x38a460('0x54')}]})[_0x38a460('0x5d')](function(_0x1773d8){return[_0x1773d8,!![]];});});})[_0x2d517d('0x5d')](function([_0x4368f7,_0x50eaa7]){const _0x296395=_0x2d517d;if(_0x50eaa7)return _0x4368f7;return db[_0x296395('0x23')][_0x296395('0x69')](_[_0x296395('0x70')](_0x41d8f5[_0x296395('0x6b')],{'read':![],'body':_0x41d8f5[_0x296395('0x6b')][_0x296395('0x6b')],'OpenchannelAccountId':_0x24eecc['id'],'OpenchannelInteractionId':_0x4368f7['id'],'UserId':_0x41d8f5['user']['id'],'ContactId':_0x5b9602['id']}))[_0x296395('0x5d')](function(_0xfa8f96){const _0x3da094=_0x296395;return _0x4368f7[_0x3da094('0x17')][_0x3da094('0x54')]=[],_0x4368f7[_0x3da094('0x17')][_0x3da094('0x54')][_0x3da094('0xc')](_0xfa8f96['dataValues']),_0x4368f7;});});})['then'](respondWithResult(_0x1b54ea,null))[_0x20ba8a('0x97')](handleError(_0x1b54ea,null));}; \ No newline at end of file +const a563_0x1cb8=['length','mandatoryDispositionPause','filters','CmContact','limit','mapKey','mapKey\x20is\x20mandatory,\x20please\x20use\x20one\x20of\x20these:\x20','bulkCreate','EventManager','openchannel','sort','rawAttributes','forcedOwnership','OpenchannelApplication','OpenchannelAccount','Start','AttachmentId','Content-Range','userOpenchannelAccount:save','params','from','List','account','notify','type','from\x20is\x20mandatory','intersection','include','addApplications','autoclose','startRouting','CannedAnswer','includes','like','ListId','client','isNil','./openchannelAccount.socket','error','json','getDispositions','isArray','sendStatus','push','removeAnswers','addAnswer','userProfileId','pick','createdAt','destroy','create','body\x20is\x20mandatory\x20and\x20not\x20empty','order','removeDispositions','set','color','defaults','close','out','interaction','externalUrl','tag','findOne','show','map','findAndCountAll','undefined','difference','stringify','index','fields','role','body','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','OpenchannelAccount,\x20%s,\x20%s','emit','Applications','OpenchannelMessage','status','*,*,*,*','getApplications','then','agent','getAgents','catch','name','filter','userOpenchannelAccount:remove','get','DESC','key','priority','update','query','lodash','request\x20sent','result','asc','attributes','dataValues','message','getAnswers','firstName','CmList','send','where','keys','merge','count','offset','getInteractions','nolimit','Disposition','sequelize','Messages','Contacts','OpenchannelAccountId','../../mysqldb','../../components/parsers/qs','stack','rows','ids','../../config/logger','findAll','User','end','no\x20available\x20attributes','messageId','created','OpenchannelAccounts','VIRTUAL','addAgents','lastName','contact','orderBy','autoAssociation','user','request','UserProfileResource','Pause','register','Unable\x20to\x20retrieve\x20the\x20current\x20user','addDisposition','updatedAt','UserId','api','applications','info','fieldName','removeAgents','includeAll','Tags','debug','threadId','Contact','http','describe','unmanaged','model','options','Tag','OpenchannelInteraction'];(function(_0x26ee0f,_0x522e25){const _0x1cb8c3=function(_0xdf7f91){while(--_0xdf7f91){_0x26ee0f['push'](_0x26ee0f['shift']());}};_0x1cb8c3(++_0x522e25);}(a563_0x1cb8,0x146));const a563_0xdf7f=function(_0x26ee0f,_0x522e25){_0x26ee0f=_0x26ee0f-0x1c6;let _0x1cb8c3=a563_0x1cb8[_0x26ee0f];return _0x1cb8c3;};const a563_0x318804=a563_0xdf7f;'use strict';const _=require(a563_0x318804(0x222)),qs=require(a563_0x318804(0x23a)),logger=require(a563_0x318804(0x23e))(a563_0x318804(0x255)),{getSocket}=require('../../rediscache'),socket=getSocket(),{db}=require(a563_0x318804(0x239)),{Op,ValidationError}=require(a563_0x318804(0x235));require(a563_0x318804(0x1e9))[a563_0x318804(0x250)](socket);const jayson=require('jayson/promise'),client=jayson[a563_0x318804(0x1e7)]['http']({'port':0x232c}),client9002=jayson[a563_0x318804(0x1e7)][a563_0x318804(0x25f)]({'port':0x232a});function respondWithRpcPromise(_0x29404d,_0x537e8f,_0x555778,_0x43628a){return new Promise(function(_0x1e9adf,_0x3dc332){const _0x50dcc2=a563_0xdf7f,_0x253220=_0x43628a||client;return _0x253220[_0x50dcc2(0x24d)](_0x29404d,_0x555778)[_0x50dcc2(0x215)](function(_0x3b7874){const _0x4acf42=_0x50dcc2;logger[_0x4acf42(0x257)](_0x4acf42(0x20e),_0x537e8f,_0x4acf42(0x223)),logger[_0x4acf42(0x25c)]('OpenchannelAccount,\x20%s,\x20%s,\x20%s',_0x537e8f,_0x4acf42(0x223),JSON[_0x4acf42(0x208)](_0x3b7874));if(_0x3b7874[_0x4acf42(0x1ea)]){if(_0x3b7874['error']['code']===0x1f4)return logger[_0x4acf42(0x1ea)](_0x4acf42(0x20e),_0x537e8f,_0x3b7874[_0x4acf42(0x1ea)][_0x4acf42(0x228)]),_0x3dc332(_0x3b7874['error'][_0x4acf42(0x228)]);return logger[_0x4acf42(0x1ea)]('OpenchannelAccount,\x20%s,\x20%s',_0x537e8f,_0x3b7874[_0x4acf42(0x1ea)][_0x4acf42(0x228)]),_0x1e9adf(_0x3b7874[_0x4acf42(0x1ea)][_0x4acf42(0x228)]);}else logger['info'](_0x4acf42(0x20e),_0x537e8f,'request\x20sent'),_0x1e9adf(_0x3b7874[_0x4acf42(0x224)][_0x4acf42(0x228)]);})['catch'](function(_0x5ba7ca){const _0x4e567d=_0x50dcc2;logger[_0x4e567d(0x1ea)]('OpenchannelAccount,\x20%s,\x20%s',_0x537e8f,_0x5ba7ca),_0x3dc332(_0x5ba7ca);});});}function respondWithStatusCode(_0x352569,_0x2aecba){return _0x2aecba=_0x2aecba||0xcc,function(_0x1e86ac){const _0x26baf5=a563_0xdf7f;if(_0x1e86ac)return _0x352569[_0x26baf5(0x1ee)](_0x2aecba);return _0x352569[_0x26baf5(0x212)](_0x2aecba)[_0x26baf5(0x241)]();};}function respondWithResult(_0x141716,_0x727667){return _0x727667=_0x727667||0xc8,function(_0x7767a8){const _0x28ab00=a563_0xdf7f;if(_0x7767a8)return _0x141716[_0x28ab00(0x212)](_0x727667)[_0x28ab00(0x1eb)](_0x7767a8);};}function respondWithFilteredResult(_0xf8e37a,_0x35f19a){return function(_0x43deca){const _0x5d419d=a563_0xdf7f;if(_0x43deca){const _0x1a2984=_0x43deca['count'],_0x37173b=_0x35f19a[_0x5d419d(0x231)];let _0x5d2ec7=_0x35f19a[_0x5d419d(0x231)]+_0x35f19a['limit'],_0x4f67ff;return _0x5d2ec7>=_0x1a2984?(_0x5d2ec7=_0x1a2984,_0x4f67ff=0xc8):_0x4f67ff=0xce,_0xf8e37a[_0x5d419d(0x212)](_0x4f67ff),_0xf8e37a[_0x5d419d(0x1fa)](_0x5d419d(0x1d5),_0x37173b+'-'+_0x5d2ec7+'/'+_0x1a2984)[_0x5d419d(0x1eb)](_0x43deca);}return null;};}function saveUpdates(_0xed04ba){return function(_0x5325f9){const _0xaaa6f9=a563_0xdf7f;if(_0x5325f9)return _0x5325f9['update'](_0xed04ba)[_0xaaa6f9(0x215)](function(_0x118be6){return _0x118be6;});return null;};}function removeEntity(_0x23fada){return function(_0x2bc0ed){const _0x522c83=a563_0xdf7f;if(_0x2bc0ed)return _0x2bc0ed[_0x522c83(0x1f5)]()[_0x522c83(0x215)](function(){const _0x237949=_0x522c83,_0x472660=_0x2bc0ed['get']({'plain':!![]}),_0xc92577=_0x237949(0x245);return db['UserProfileResource'][_0x237949(0x1f5)]({'where':{'type':_0xc92577,'resourceId':_0x472660['id']}})['then'](function(){return _0x2bc0ed;});})[_0x522c83(0x215)](function(){const _0x51ed18=_0x522c83;_0x23fada['status'](0xcc)[_0x51ed18(0x241)]();});};}function handleEntityNotFound(_0x391c06){return function(_0x20ec5f){const _0x32691f=a563_0xdf7f;return!_0x20ec5f&&_0x391c06[_0x32691f(0x1ee)](0x194),_0x20ec5f;};}function handleError(_0x57aeb5,_0x6abd1f){return _0x6abd1f=_0x6abd1f||0x1f4,function(_0x437803){const _0x1c7ffd=a563_0xdf7f;logger[_0x1c7ffd(0x1ea)](_0x437803[_0x1c7ffd(0x23b)]),_0x437803[_0x1c7ffd(0x219)]&&delete _0x437803[_0x1c7ffd(0x219)],_0x57aeb5['status'](_0x6abd1f)[_0x1c7ffd(0x22c)](_0x437803);};}exports[a563_0x318804(0x209)]=function(_0x29fe88,_0xc59342){const _0x235867=a563_0x318804;let _0x38b022={'include':[{'model':db[_0x235867(0x24f)],'as':_0x235867(0x267)}]};const _0x3cae8f={},_0xf7fa58={'count':0x0,'rows':[]},_0x3b0bd4=_['map'](db['OpenchannelAccount'][_0x235867(0x1cf)],function(_0x3bb14d){const _0x2771aa=_0x235867;return{'name':_0x3bb14d[_0x2771aa(0x258)],'type':_0x3bb14d[_0x2771aa(0x1dc)][_0x2771aa(0x21e)]};});_0x3cae8f['model']=_[_0x235867(0x204)](_0x3b0bd4,'name'),_0x3cae8f[_0x235867(0x221)]=_[_0x235867(0x22e)](_0x29fe88[_0x235867(0x221)]),_0x3cae8f[_0x235867(0x1c6)]=_[_0x235867(0x1de)](_0x3cae8f[_0x235867(0x262)],_0x3cae8f[_0x235867(0x221)]),_0x38b022['attributes']=_[_0x235867(0x1de)](_0x3cae8f['model'],qs[_0x235867(0x20a)](_0x29fe88[_0x235867(0x221)][_0x235867(0x20a)])),_0x38b022['attributes']=_0x38b022[_0x235867(0x226)]['length']?_0x38b022[_0x235867(0x226)]:_0x3cae8f[_0x235867(0x262)];typeof _0x29fe88[_0x235867(0x221)][_0x235867(0x233)]===_0x235867(0x206)&&(_0x38b022[_0x235867(0x1c8)]=qs[_0x235867(0x1c8)](_0x29fe88['query'][_0x235867(0x1c8)]),_0x38b022['offset']=qs['offset'](_0x29fe88['query'][_0x235867(0x231)]));_0x38b022[_0x235867(0x1f8)]=qs['sort'](_0x29fe88[_0x235867(0x221)][_0x235867(0x1ce)]),_0x38b022[_0x235867(0x22d)]=qs[_0x235867(0x1c6)](_[_0x235867(0x1f3)](_0x29fe88[_0x235867(0x221)],_0x3cae8f[_0x235867(0x1c6)]),_0x3b0bd4);_0x29fe88[_0x235867(0x221)]['filter']&&(_0x38b022[_0x235867(0x22d)]=_[_0x235867(0x22f)](_0x38b022['where'],{[Op['or']]:_[_0x235867(0x204)](_0x3b0bd4,function(_0x56d030){const _0x583ee1=_0x235867;if(_0x56d030['type']!==_0x583ee1(0x246)){const _0x185473={};return _0x185473[_0x56d030['name']]={[Op['like']]:'%'+_0x29fe88[_0x583ee1(0x221)][_0x583ee1(0x21a)]+'%'},_0x185473;}})}));_0x38b022=_[_0x235867(0x22f)]({},_0x38b022,_0x29fe88[_0x235867(0x263)]);const _0x2d822a={'where':_0x38b022[_0x235867(0x22d)]};return db[_0x235867(0x1d2)][_0x235867(0x230)](_0x2d822a)['then'](function(_0x337824){const _0x54de6e=_0x235867;return _0xf7fa58[_0x54de6e(0x230)]=_0x337824,_0x29fe88[_0x54de6e(0x221)][_0x54de6e(0x25a)]&&(_0x38b022[_0x54de6e(0x1df)]=[{'all':!![]}]),db[_0x54de6e(0x1d2)][_0x54de6e(0x23f)](_0x38b022);})[_0x235867(0x215)](function(_0x1056e1){const _0x27d77f=_0x235867;return _0xf7fa58[_0x27d77f(0x23c)]=_0x1056e1,_0xf7fa58;})[_0x235867(0x215)](respondWithFilteredResult(_0xc59342,_0x38b022))[_0x235867(0x218)](handleError(_0xc59342,null));},exports[a563_0x318804(0x203)]=function(_0x42bc90,_0x2acdb0){const _0x2ce527=a563_0x318804;let _0x5a03e3={'raw':![],'where':{'id':_0x42bc90[_0x2ce527(0x1d7)]['id']},'include':[{'model':db['Pause'],'as':_0x2ce527(0x267)}]};const _0x1c3757={};return _0x1c3757[_0x2ce527(0x262)]=_[_0x2ce527(0x22e)](db[_0x2ce527(0x1d2)][_0x2ce527(0x1cf)]),_0x1c3757[_0x2ce527(0x221)]=_[_0x2ce527(0x22e)](_0x42bc90[_0x2ce527(0x221)]),_0x1c3757[_0x2ce527(0x1c6)]=_['intersection'](_0x1c3757[_0x2ce527(0x262)],_0x1c3757[_0x2ce527(0x221)]),_0x5a03e3['attributes']=_[_0x2ce527(0x1de)](_0x1c3757[_0x2ce527(0x262)],qs[_0x2ce527(0x20a)](_0x42bc90[_0x2ce527(0x221)]['fields'])),_0x5a03e3[_0x2ce527(0x226)]=_0x5a03e3[_0x2ce527(0x226)][_0x2ce527(0x266)]?_0x5a03e3[_0x2ce527(0x226)]:_0x1c3757['model'],_0x42bc90[_0x2ce527(0x221)][_0x2ce527(0x25a)]&&(_0x5a03e3[_0x2ce527(0x1df)]=[{'all':!![]}]),_0x5a03e3=_[_0x2ce527(0x22f)]({},_0x5a03e3,_0x42bc90[_0x2ce527(0x263)]),db['OpenchannelAccount'][_0x2ce527(0x202)](_0x5a03e3)[_0x2ce527(0x215)](handleEntityNotFound(_0x2acdb0,null))[_0x2ce527(0x215)](respondWithResult(_0x2acdb0,null))[_0x2ce527(0x218)](handleError(_0x2acdb0,null));},exports[a563_0x318804(0x1f6)]=function(_0x35ad49,_0x5b38c9){const _0x57cf0f=a563_0x318804;return db['OpenchannelAccount'][_0x57cf0f(0x1f6)](_0x35ad49['body'],{})[_0x57cf0f(0x215)](function(_0x43062d){const _0x1bdeaf=_0x57cf0f,_0x12f697=_0x35ad49[_0x1bdeaf(0x24c)][_0x1bdeaf(0x21c)]({'plain':!![]});if(!_0x12f697)throw new Error(_0x1bdeaf(0x251));if(_0x12f697[_0x1bdeaf(0x20b)]===_0x1bdeaf(0x24c)){const _0x1fff35=_0x43062d[_0x1bdeaf(0x21c)]({'plain':!![]}),_0x396fa2='OpenchannelAccounts';return db['UserProfileSection'][_0x1bdeaf(0x202)]({'where':{'name':_0x396fa2,'userProfileId':_0x12f697[_0x1bdeaf(0x1f2)]},'raw':!![]})[_0x1bdeaf(0x215)](function(_0x5281df){const _0x5854c8=_0x1bdeaf;return _0x5281df&&_0x5281df[_0x5854c8(0x24b)]===0x0?db[_0x5854c8(0x24e)][_0x5854c8(0x1f6)]({'name':_0x1fff35[_0x5854c8(0x219)],'resourceId':_0x1fff35['id'],'type':_0x5281df[_0x5854c8(0x219)],'sectionId':_0x5281df['id']},{})[_0x5854c8(0x215)](function(){return _0x43062d;}):_0x43062d;})[_0x1bdeaf(0x218)](function(_0x81ec9){const _0x457415=_0x1bdeaf;logger[_0x457415(0x1ea)](_0x457415(0x20d),_0x81ec9);throw _0x81ec9;});}return _0x43062d;})[_0x57cf0f(0x215)](respondWithResult(_0x5b38c9,0xc9))[_0x57cf0f(0x218)](handleError(_0x5b38c9,null));},exports[a563_0x318804(0x220)]=function(_0x3b617d,_0x193f07){const _0x205e82=a563_0x318804;return _0x3b617d[_0x205e82(0x20c)]['id']&&delete _0x3b617d[_0x205e82(0x20c)]['id'],db[_0x205e82(0x1d2)]['findOne']({'where':{'id':_0x3b617d[_0x205e82(0x1d7)]['id']},'include':[{'model':db[_0x205e82(0x24f)],'as':'mandatoryDispositionPause'}]})[_0x205e82(0x215)](handleEntityNotFound(_0x193f07,null))[_0x205e82(0x215)](saveUpdates(_0x3b617d[_0x205e82(0x20c)],null))['then'](respondWithResult(_0x193f07,null))['catch'](handleError(_0x193f07,null));},exports[a563_0x318804(0x1f5)]=function(_0x330c84,_0x437fdc){const _0x27fd7c=a563_0x318804;return db[_0x27fd7c(0x1d2)][_0x27fd7c(0x202)]({'where':{'id':_0x330c84[_0x27fd7c(0x1d7)]['id']}})['then'](handleEntityNotFound(_0x437fdc,null))['then'](removeEntity(_0x437fdc,null))[_0x27fd7c(0x218)](handleError(_0x437fdc,null));},exports[a563_0x318804(0x260)]=function(_0x2a8a81,_0x5f2962){const _0x208acb=a563_0x318804;return db[_0x208acb(0x1d2)][_0x208acb(0x260)]()['then'](respondWithResult(_0x5f2962,null))[_0x208acb(0x218)](handleError(_0x5f2962,null));},exports[a563_0x318804(0x252)]=function(_0x5d724b,_0x2e8f97){const _0x1b5c71=a563_0x318804;return _0x5d724b[_0x1b5c71(0x20c)]['id']&&delete _0x5d724b[_0x1b5c71(0x20c)]['id'],db[_0x1b5c71(0x1d2)][_0x1b5c71(0x202)]({'where':{'id':_0x5d724b[_0x1b5c71(0x1d7)]['id']}})[_0x1b5c71(0x215)](handleEntityNotFound(_0x2e8f97,null))[_0x1b5c71(0x215)](function(_0xc56c70){const _0x1dc5d5=_0x1b5c71;if(_0xc56c70)return _0x5d724b[_0x1dc5d5(0x20c)]['OpenchannelAccountId']=_0xc56c70['id'],db[_0x1dc5d5(0x234)][_0x1dc5d5(0x1f6)](_0x5d724b[_0x1dc5d5(0x20c)]);})[_0x1b5c71(0x215)](respondWithResult(_0x2e8f97,null))[_0x1b5c71(0x218)](handleError(_0x2e8f97,null));},exports[a563_0x318804(0x1ec)]=function(_0x23dc11,_0x5a6068){const _0x54695d=a563_0x318804;let _0xa9ffcd={'raw':![],'where':{}};const _0x35b931={},_0x165d7e={'count':0x0,'rows':[]};return db['OpenchannelAccount'][_0x54695d(0x202)]({'where':{'id':_0x23dc11[_0x54695d(0x1d7)]['id']}})[_0x54695d(0x215)](handleEntityNotFound(_0x5a6068,null))[_0x54695d(0x215)](function(_0x5bdcef){const _0x3ee40e=_0x54695d;if(_0x5bdcef)return _0x35b931[_0x3ee40e(0x262)]=_['keys'](db[_0x3ee40e(0x234)]['rawAttributes']),_0x35b931[_0x3ee40e(0x221)]=_[_0x3ee40e(0x22e)](_0x23dc11[_0x3ee40e(0x221)]),_0x35b931[_0x3ee40e(0x1c6)]=_[_0x3ee40e(0x1de)](_0x35b931[_0x3ee40e(0x262)],_0x35b931['query']),_0xa9ffcd['attributes']=_[_0x3ee40e(0x1de)](_0x35b931['model'],qs[_0x3ee40e(0x20a)](_0x23dc11[_0x3ee40e(0x221)][_0x3ee40e(0x20a)])),_0xa9ffcd[_0x3ee40e(0x226)]=_0xa9ffcd[_0x3ee40e(0x226)][_0x3ee40e(0x266)]?_0xa9ffcd[_0x3ee40e(0x226)]:_0x35b931[_0x3ee40e(0x262)],typeof _0x23dc11['query']['nolimit']===_0x3ee40e(0x206)&&(_0xa9ffcd[_0x3ee40e(0x1c8)]=qs[_0x3ee40e(0x1c8)](_0x23dc11[_0x3ee40e(0x221)][_0x3ee40e(0x1c8)]),_0xa9ffcd[_0x3ee40e(0x231)]=qs[_0x3ee40e(0x231)](_0x23dc11[_0x3ee40e(0x221)][_0x3ee40e(0x231)])),_0xa9ffcd[_0x3ee40e(0x1f8)]=qs[_0x3ee40e(0x1ce)](_0x23dc11['query'][_0x3ee40e(0x1ce)]),_0xa9ffcd['where']=qs[_0x3ee40e(0x1c6)](_[_0x3ee40e(0x1f3)](_0x23dc11[_0x3ee40e(0x221)],_0x35b931[_0x3ee40e(0x1c6)])),_0xa9ffcd['where'][_0x3ee40e(0x238)]=_0x5bdcef['id'],_0x23dc11[_0x3ee40e(0x221)]['filter']&&(_0xa9ffcd[_0x3ee40e(0x22d)]=_['merge'](_0xa9ffcd[_0x3ee40e(0x22d)],{[Op['or']]:_[_0x3ee40e(0x204)](_0xa9ffcd[_0x3ee40e(0x226)],function(_0x3b9ae6){const _0x3bfcba=_0x3ee40e,_0x94f919={};return _0x94f919[_0x3b9ae6]={[Op['like']]:'%'+_0x23dc11['query'][_0x3bfcba(0x21a)]+'%'},_0x94f919;})})),_0xa9ffcd=_[_0x3ee40e(0x22f)]({},_0xa9ffcd,_0x23dc11['options']),db[_0x3ee40e(0x234)][_0x3ee40e(0x230)]({'where':_0xa9ffcd['where']})[_0x3ee40e(0x215)](function(_0x1a3d20){const _0xa5e725=_0x3ee40e;return _0x165d7e[_0xa5e725(0x230)]=_0x1a3d20,_0x23dc11['query'][_0xa5e725(0x25a)]&&(_0xa9ffcd['include']=[{'all':!![]}]),db[_0xa5e725(0x234)][_0xa5e725(0x23f)](_0xa9ffcd);})['then'](function(_0x2b177c){const _0x4762bb=_0x3ee40e;return _0x165d7e[_0x4762bb(0x23c)]=_0x2b177c,_0x165d7e;});})['then'](respondWithFilteredResult(_0x5a6068,_0xa9ffcd))[_0x54695d(0x218)](handleError(_0x5a6068,null));},exports[a563_0x318804(0x1f9)]=function(_0x161fbd,_0x8fcb12){const _0x4a27a8=a563_0x318804;return db['OpenchannelAccount'][_0x4a27a8(0x202)]({'where':{'id':_0x161fbd[_0x4a27a8(0x1d7)]['id']}})['then'](handleEntityNotFound(_0x8fcb12,null))[_0x4a27a8(0x215)](function(_0x47564e){const _0x49fa28=_0x4a27a8;if(_0x47564e)return _0x47564e[_0x49fa28(0x1f9)](_0x161fbd[_0x49fa28(0x221)][_0x49fa28(0x23d)]);})[_0x4a27a8(0x215)](respondWithStatusCode(_0x8fcb12,null))[_0x4a27a8(0x218)](handleError(_0x8fcb12,null));},exports[a563_0x318804(0x1f1)]=function(_0x2e2d1d,_0x50afb4){const _0x2587a5=a563_0x318804;return _0x2e2d1d[_0x2587a5(0x20c)]['id']&&delete _0x2e2d1d['body']['id'],db[_0x2587a5(0x1d2)][_0x2587a5(0x202)]({'where':{'id':_0x2e2d1d[_0x2587a5(0x1d7)]['id']}})[_0x2587a5(0x215)](handleEntityNotFound(_0x50afb4,null))['then'](function(_0x578093){const _0x1f84b3=_0x2587a5;if(_0x578093)return _0x2e2d1d[_0x1f84b3(0x20c)]['OpenchannelAccountId']=_0x578093['id'],db[_0x1f84b3(0x1e3)]['create'](_0x2e2d1d[_0x1f84b3(0x20c)]);})[_0x2587a5(0x215)](respondWithResult(_0x50afb4,null))[_0x2587a5(0x218)](handleError(_0x50afb4,null));},exports[a563_0x318804(0x229)]=function(_0x5e2499,_0x52a482){const _0x342d36=a563_0x318804;let _0x411a1c={'raw':![],'where':{}};const _0x4aaf20={},_0xb8e02b={'count':0x0,'rows':[]};return db['OpenchannelAccount'][_0x342d36(0x202)]({'where':{'id':_0x5e2499[_0x342d36(0x1d7)]['id']}})[_0x342d36(0x215)](handleEntityNotFound(_0x52a482,null))[_0x342d36(0x215)](function(_0x39a002){const _0x1dc7a1=_0x342d36;if(_0x39a002)return _0x4aaf20['model']=_[_0x1dc7a1(0x22e)](db[_0x1dc7a1(0x1e3)]['rawAttributes']),_0x4aaf20[_0x1dc7a1(0x221)]=_[_0x1dc7a1(0x22e)](_0x5e2499['query']),_0x4aaf20['filters']=_[_0x1dc7a1(0x1de)](_0x4aaf20['model'],_0x4aaf20[_0x1dc7a1(0x221)]),_0x411a1c[_0x1dc7a1(0x226)]=_[_0x1dc7a1(0x1de)](_0x4aaf20[_0x1dc7a1(0x262)],qs[_0x1dc7a1(0x20a)](_0x5e2499[_0x1dc7a1(0x221)]['fields'])),_0x411a1c[_0x1dc7a1(0x226)]=_0x411a1c['attributes']['length']?_0x411a1c[_0x1dc7a1(0x226)]:_0x4aaf20[_0x1dc7a1(0x262)],typeof _0x5e2499[_0x1dc7a1(0x221)][_0x1dc7a1(0x233)]===_0x1dc7a1(0x206)&&(_0x411a1c[_0x1dc7a1(0x1c8)]=qs[_0x1dc7a1(0x1c8)](_0x5e2499[_0x1dc7a1(0x221)]['limit']),_0x411a1c[_0x1dc7a1(0x231)]=qs['offset'](_0x5e2499[_0x1dc7a1(0x221)]['offset'])),_0x411a1c[_0x1dc7a1(0x1f8)]=qs['sort'](_0x5e2499[_0x1dc7a1(0x221)][_0x1dc7a1(0x1ce)]),_0x411a1c['where']=qs[_0x1dc7a1(0x1c6)](_['pick'](_0x5e2499[_0x1dc7a1(0x221)],_0x4aaf20['filters'])),_0x411a1c[_0x1dc7a1(0x22d)][_0x1dc7a1(0x238)]=_0x39a002['id'],_0x5e2499[_0x1dc7a1(0x221)][_0x1dc7a1(0x21a)]&&(_0x411a1c[_0x1dc7a1(0x22d)]=_[_0x1dc7a1(0x22f)](_0x411a1c['where'],{[Op['or']]:_[_0x1dc7a1(0x204)](_0x411a1c['attributes'],function(_0x34a3cb){const _0x3d7e2a=_0x1dc7a1,_0x11f96a={};return _0x11f96a[_0x34a3cb]={[Op[_0x3d7e2a(0x1e5)]]:'%'+_0x5e2499[_0x3d7e2a(0x221)]['filter']+'%'},_0x11f96a;})})),_0x411a1c=_[_0x1dc7a1(0x22f)]({},_0x411a1c,_0x5e2499[_0x1dc7a1(0x263)]),db[_0x1dc7a1(0x1e3)]['count']({'where':_0x411a1c[_0x1dc7a1(0x22d)]})[_0x1dc7a1(0x215)](function(_0x39e76f){const _0x263023=_0x1dc7a1;return _0xb8e02b[_0x263023(0x230)]=_0x39e76f,_0x5e2499[_0x263023(0x221)][_0x263023(0x25a)]&&(_0x411a1c[_0x263023(0x1df)]=[{'all':!![]}]),db[_0x263023(0x1e3)]['findAll'](_0x411a1c);})[_0x1dc7a1(0x215)](function(_0x25ccfd){return _0xb8e02b['rows']=_0x25ccfd,_0xb8e02b;});})['then'](respondWithFilteredResult(_0x52a482,_0x411a1c))[_0x342d36(0x218)](handleError(_0x52a482,null));},exports['removeAnswers']=function(_0x18bd5a,_0x27aae9){const _0x436c94=a563_0x318804;return db[_0x436c94(0x1d2)]['findOne']({'where':{'id':_0x18bd5a['params']['id']}})[_0x436c94(0x215)](handleEntityNotFound(_0x27aae9,null))['then'](function(_0x2a6f83){const _0x59dcb7=_0x436c94;if(_0x2a6f83)return _0x2a6f83[_0x59dcb7(0x1f0)](_0x18bd5a[_0x59dcb7(0x221)][_0x59dcb7(0x23d)]);})[_0x436c94(0x215)](respondWithStatusCode(_0x27aae9,null))[_0x436c94(0x218)](handleError(_0x27aae9,null));},exports[a563_0x318804(0x1db)]=function(_0x282f49,_0x1639c3){const _0xac4717=a563_0x318804,_0x44c88c={'body':_0x282f49[_0xac4717(0x20c)],'channel':_0xac4717(0x1cd)};let _0x492871=[],_0x23c2ca=[];const _0x36c985={};let _0x540a73=![];return db[_0xac4717(0x1c7)][_0xac4717(0x260)]()['then'](function(_0x26267e){const _0x15bd6d=_0xac4717;if(!_0x26267e)throw new ValidationError(_0x15bd6d(0x242));_0x492871=_[_0x15bd6d(0x207)](_[_0x15bd6d(0x22e)](_0x26267e),[_0x15bd6d(0x1f4),_0x15bd6d(0x253)]),_0x23c2ca=_['difference'](_[_0x15bd6d(0x22e)](_0x26267e),['createdAt','updatedAt','CompanyId',_0x15bd6d(0x1e6)]);_0x282f49[_0x15bd6d(0x20c)]['id']&&delete _0x282f49[_0x15bd6d(0x20c)]['id'];if(_[_0x15bd6d(0x1e8)](_0x282f49[_0x15bd6d(0x20c)][_0x15bd6d(0x1d8)]))throw new ValidationError(_0x15bd6d(0x1dd));if(_[_0x15bd6d(0x1e8)](_0x282f49[_0x15bd6d(0x20c)]['body'])||_0x282f49['body']['body']==='')throw new ValidationError(_0x15bd6d(0x1f7));if(_[_0x15bd6d(0x1e8)](_0x282f49[_0x15bd6d(0x20c)][_0x15bd6d(0x1c9)]))throw new ValidationError(_0x15bd6d(0x1ca)+_0x23c2ca);if(!_[_0x15bd6d(0x1e4)](_0x23c2ca,_0x282f49[_0x15bd6d(0x20c)][_0x15bd6d(0x1c9)]))throw new ValidationError('mapKey\x20invalid,\x20please\x20use\x20one\x20of\x20these:\x20'+_0x23c2ca);_0x36c985[_0x282f49[_0x15bd6d(0x20c)][_0x15bd6d(0x1c9)]]=_0x282f49[_0x15bd6d(0x20c)][_0x15bd6d(0x1d8)];})[_0xac4717(0x215)](function(){const _0x14c4ea=_0xac4717;return db['OpenchannelAccount'][_0x14c4ea(0x202)]({'where':{'id':_0x282f49[_0x14c4ea(0x1d7)]['id']},'include':[{'model':db[_0x14c4ea(0x22b)],'as':_0x14c4ea(0x1d9),'include':[{'model':db[_0x14c4ea(0x1c7)],'as':_0x14c4ea(0x237),'where':_0x36c985,'limit':0x1,'order':[['updatedAt',_0x14c4ea(0x21d)]]}]},{'model':db[_0x14c4ea(0x1d1)],'as':_0x14c4ea(0x210)}]});})[_0xac4717(0x215)](handleEntityNotFound(_0x1639c3,null))['then'](function(_0x1827b2){const _0x18ed06=_0xac4717;if(_0x1827b2&&_0x1827b2[_0x18ed06(0x1d9)]){_0x44c88c[_0x18ed06(0x1da)]=_0x1827b2,_0x44c88c['applications']=_0x1827b2[_0x18ed06(0x210)],_0x44c88c['list']=_0x1827b2['List'],_0x44c88c[_0x18ed06(0x256)]=_[_0x18ed06(0x24a)](_0x44c88c['applications'],[_0x18ed06(0x21f)],[_0x18ed06(0x225)]);_0x44c88c[_0x18ed06(0x1da)]['Applications']&&delete _0x44c88c[_0x18ed06(0x1da)][_0x18ed06(0x210)];if(_0x44c88c['account']['List']&&_0x44c88c[_0x18ed06(0x1da)][_0x18ed06(0x1d9)][_0x18ed06(0x237)][_0x18ed06(0x266)])return _0x44c88c[_0x18ed06(0x1da)][_0x18ed06(0x1d9)]['Contacts'][0x0];const _0x4ccda2=_[_0x18ed06(0x1fc)](_0x282f49['body'],{'firstName':_0x282f49['body']['from'],'ListId':_0x1827b2[_0x18ed06(0x1e6)]});return _0x4ccda2[_0x282f49[_0x18ed06(0x20c)]['mapKey']]=_0x282f49[_0x18ed06(0x20c)][_0x18ed06(0x1d8)],db[_0x18ed06(0x1c7)][_0x18ed06(0x1f6)](_0x4ccda2,{'fields':_0x492871,'raw':!![]});}})[_0xac4717(0x215)](handleEntityNotFound(_0x1639c3,null))['then'](function(_0x353b15){const _0x27ddd9=_0xac4717;_0x44c88c['contact']=_0x353b15;if(_0x353b15){const _0x199f37={'ContactId':_0x353b15['id'],'OpenchannelAccountId':_0x282f49[_0x27ddd9(0x1d7)]['id'],'from':(_0x353b15[_0x27ddd9(0x22a)]||'')+'\x20'+(_0x353b15[_0x27ddd9(0x248)]||'')},_0x1ef358={'OpenchannelAccountId':_0x282f49[_0x27ddd9(0x1d7)]['id'],'closed':![]};if(_0x282f49[_0x27ddd9(0x20c)]['threadId'])return _0x1ef358[_0x27ddd9(0x25d)]=_0x282f49[_0x27ddd9(0x20c)][_0x27ddd9(0x25d)],db['OpenchannelInteraction']['findOne']({'where':_0x1ef358})[_0x27ddd9(0x215)](function(_0x1b1ea3){const _0x2221f5=_0x27ddd9;if(_0x1b1ea3)return[_0x1b1ea3,![]];return _0x199f37['threadId']=_0x282f49[_0x2221f5(0x20c)][_0x2221f5(0x25d)],_0x199f37['externalUrl']=_0x282f49[_0x2221f5(0x20c)][_0x2221f5(0x200)],db[_0x2221f5(0x265)][_0x2221f5(0x1f6)](_0x199f37)[_0x2221f5(0x215)](function(_0x4d866e){return[_0x4d866e,!![]];});});else _0x1ef358['threadId']=null;return _0x1ef358['ContactId']=_0x353b15['id'],db['OpenchannelInteraction'][_0x27ddd9(0x202)]({'where':_0x1ef358})[_0x27ddd9(0x215)](function(_0x7eeddc){const _0x1e1b49=_0x27ddd9;if(_0x7eeddc)return[_0x7eeddc,![]];return db['OpenchannelInteraction'][_0x1e1b49(0x1f6)](_0x199f37)[_0x1e1b49(0x215)](function(_0x1ddee0){return[_0x1ddee0,!![]];});});}})[_0xac4717(0x215)](function([_0x554748,_0x55df04]){const _0x39e751=_0xac4717;if(_0x554748){_0x540a73=_0x55df04;if(!_0x55df04){const _0x52a771={'from':(_0x44c88c['contact'][_0x39e751(0x22a)]||'')+'\x20'+(_0x44c88c['contact'][_0x39e751(0x248)]||'')};return _0x282f49[_0x39e751(0x20c)][_0x39e751(0x25d)]&&_0x282f49[_0x39e751(0x20c)][_0x39e751(0x243)]&&_0x282f49['body'][_0x39e751(0x25d)]!=_0x282f49[_0x39e751(0x20c)]['messageId']&&(_0x52a771[_0x39e751(0x25d)]=_0x282f49[_0x39e751(0x20c)][_0x39e751(0x243)]),_0x554748['update'](_0x52a771);}else return _0x554748;}})['then'](function(_0x14077a){const _0x115a51=_0xac4717;return _0x44c88c['interaction']=_0x14077a[_0x115a51(0x21c)]({'plain':!![]}),_0x44c88c[_0x115a51(0x1ff)][_0x115a51(0x244)]=_0x540a73,_0x44c88c[_0x115a51(0x1ff)]['created']&&(_0x44c88c[_0x115a51(0x1da)][_0x115a51(0x1e1)]&&_0x44c88c['applications'][_0x115a51(0x1ef)]({'id':0x0,'priority':_0x44c88c[_0x115a51(0x256)][_0x115a51(0x266)]+0x1,'app':_0x115a51(0x1fd),'appdata':_0x115a51(0x261),'interval':_0x115a51(0x213)})),db[_0x115a51(0x211)]['create']({'body':_0x282f49[_0x115a51(0x20c)]['body'],'OpenchannelAccountId':_0x282f49[_0x115a51(0x1d7)]['id'],'OpenchannelInteractionId':_0x14077a['id'],'direction':'in','ContactId':_0x44c88c[_0x115a51(0x249)]['id'],'AttachmentId':_0x282f49[_0x115a51(0x20c)][_0x115a51(0x1d4)]});})[_0xac4717(0x215)](function(_0x3041f5){const _0x42de9c=_0xac4717;_0x44c88c[_0x42de9c(0x228)]=_0x3041f5;if(_0x44c88c[_0x42de9c(0x1ff)][_0x42de9c(0x254)])return db[_0x42de9c(0x240)][_0x42de9c(0x202)]({'attributes':['id','name'],'where':{'id':_0x44c88c[_0x42de9c(0x1ff)][_0x42de9c(0x254)]}})[_0x42de9c(0x215)](function(_0x485678){const _0x4edc6a=_0x42de9c;return _0x485678&&(_0x44c88c[_0x4edc6a(0x256)]['unshift']({'id':0x0,'priority':0x0,'app':_0x4edc6a(0x216),'appdata':_0x485678[_0x4edc6a(0x219)]+','+(_0x44c88c[_0x4edc6a(0x1da)]['waitForTheAssignedAgent']||0xa),'interval':_0x4edc6a(0x213)}),_0x44c88c[_0x4edc6a(0x1d0)]=![]),respondWithRpcPromise(_0x4edc6a(0x1d3),_0x4edc6a(0x1e2),_0x44c88c);});return respondWithRpcPromise(_0x42de9c(0x1d3),_0x42de9c(0x1e2),_0x44c88c);})[_0xac4717(0x215)](function(_0x54c048){const _0x35fac2=_0xac4717;return respondWithRpcPromise('EventManager',_0x35fac2(0x1cc),{'event':_0x35fac2(0x1db),'message':_0x54c048},client9002),_0x54c048;})[_0xac4717(0x215)](respondWithResult(_0x1639c3,null))[_0xac4717(0x218)](handleError(_0x1639c3,null));},exports[a563_0x318804(0x1e0)]=function(_0xa44b91,_0x501fb7){const _0x2a2844=a563_0x318804;return db[_0x2a2844(0x1d2)]['findOne']({'where':{'id':_0xa44b91[_0x2a2844(0x1d7)]['id']}})[_0x2a2844(0x215)](handleEntityNotFound(_0x501fb7,null))[_0x2a2844(0x215)](function(_0x154213){const _0x59b0d2=_0x2a2844;if(_0x154213)return db[_0x59b0d2(0x235)]['transaction'](function(_0x426f34){const _0x3e72b9=_0x59b0d2;return db[_0x3e72b9(0x1d1)]['destroy']({'where':{'OpenchannelAccountId':_0xa44b91[_0x3e72b9(0x1d7)]['id']},'transaction':_0x426f34})[_0x3e72b9(0x215)](function(){const _0x5a9241=_0x3e72b9,_0x5e213c=_[_0x5a9241(0x204)](_0xa44b91[_0x5a9241(0x20c)],function(_0x299367){const _0x5c7890=_0x5a9241;return _0x299367[_0x5c7890(0x238)]=_0xa44b91[_0x5c7890(0x1d7)]['id'],_0x299367;});return db[_0x5a9241(0x1d1)][_0x5a9241(0x1cb)](_0x5e213c,{'transaction':_0x426f34});});})[_0x59b0d2(0x215)](function(){const _0x1123ab=_0x59b0d2;return db[_0x1123ab(0x1d1)][_0x1123ab(0x205)]({'where':{'OpenchannelAccountId':_0xa44b91['params']['id']},'order':_0x1123ab(0x21f)});});})[_0x2a2844(0x215)](respondWithResult(_0x501fb7,null))[_0x2a2844(0x218)](handleError(_0x501fb7,null));},exports[a563_0x318804(0x214)]=function(_0x1474b8,_0x2c6863){const _0x2fa80a=a563_0x318804;let _0x38e09b={};const _0x17e7f5={};let _0x162acc,_0x15b158;return db[_0x2fa80a(0x1d2)][_0x2fa80a(0x202)]({'where':{'id':_0x1474b8[_0x2fa80a(0x1d7)]['id']}})['then'](handleEntityNotFound(_0x2c6863,null))[_0x2fa80a(0x215)](function(_0x2aaf17){const _0x3d6ee5=_0x2fa80a;if(_0x2aaf17)return _0x162acc=_0x2aaf17,_0x17e7f5[_0x3d6ee5(0x262)]=_[_0x3d6ee5(0x22e)](db[_0x3d6ee5(0x1d1)]['rawAttributes']),_0x17e7f5[_0x3d6ee5(0x221)]=_[_0x3d6ee5(0x22e)](_0x1474b8[_0x3d6ee5(0x221)]),_0x17e7f5[_0x3d6ee5(0x1c6)]=_[_0x3d6ee5(0x1de)](_0x17e7f5[_0x3d6ee5(0x262)],_0x17e7f5[_0x3d6ee5(0x221)]),_0x38e09b[_0x3d6ee5(0x226)]=_[_0x3d6ee5(0x1de)](_0x17e7f5[_0x3d6ee5(0x262)],qs[_0x3d6ee5(0x20a)](_0x1474b8[_0x3d6ee5(0x221)]['fields'])),_0x38e09b['attributes']=_0x38e09b[_0x3d6ee5(0x226)][_0x3d6ee5(0x266)]?_0x38e09b[_0x3d6ee5(0x226)]:_0x17e7f5[_0x3d6ee5(0x262)],_0x38e09b['order']=qs[_0x3d6ee5(0x1ce)](_0x1474b8[_0x3d6ee5(0x221)][_0x3d6ee5(0x1ce)]),_0x38e09b[_0x3d6ee5(0x22d)]=qs['filters'](_[_0x3d6ee5(0x1f3)](_0x1474b8[_0x3d6ee5(0x221)],_0x17e7f5[_0x3d6ee5(0x1c6)])),_0x1474b8[_0x3d6ee5(0x221)][_0x3d6ee5(0x21a)]&&(_0x38e09b['where']=_[_0x3d6ee5(0x22f)](_0x38e09b['where'],{[Op['or']]:_[_0x3d6ee5(0x204)](_0x38e09b[_0x3d6ee5(0x226)],function(_0xd94a49){const _0x1b2829=_0x3d6ee5,_0x49b618={};return _0x49b618[_0xd94a49]={[Op['like']]:'%'+_0x1474b8[_0x1b2829(0x221)][_0x1b2829(0x21a)]+'%'},_0x49b618;})})),_0x38e09b=_[_0x3d6ee5(0x22f)]({},_0x38e09b,_0x1474b8[_0x3d6ee5(0x263)]),_0x162acc[_0x3d6ee5(0x214)](_0x38e09b);})[_0x2fa80a(0x215)](function(_0x33c0e9){const _0x5c6f3c=_0x2fa80a;if(_0x33c0e9)return _0x15b158=_0x33c0e9[_0x5c6f3c(0x266)],typeof _0x1474b8[_0x5c6f3c(0x221)][_0x5c6f3c(0x233)]===_0x5c6f3c(0x206)&&(_0x38e09b[_0x5c6f3c(0x1c8)]=qs[_0x5c6f3c(0x1c8)](_0x1474b8[_0x5c6f3c(0x221)]['limit']),_0x38e09b[_0x5c6f3c(0x231)]=qs[_0x5c6f3c(0x231)](_0x1474b8[_0x5c6f3c(0x221)][_0x5c6f3c(0x231)])),_0x162acc[_0x5c6f3c(0x214)](_0x38e09b);})[_0x2fa80a(0x215)](function(_0x12d88b){if(_0x12d88b)return _0x12d88b?{'count':_0x15b158,'rows':_0x12d88b}:null;})['then'](respondWithResult(_0x2c6863,null))[_0x2fa80a(0x218)](handleError(_0x2c6863,null));},exports[a563_0x318804(0x232)]=function(_0x14b855,_0x2c9578){const _0x30b14e=a563_0x318804;let _0x59a442={'raw':![],'where':{}};const _0x219a1d={},_0xb3517a={'count':0x0,'rows':[]};return db[_0x30b14e(0x1d2)][_0x30b14e(0x202)]({'where':{'id':_0x14b855[_0x30b14e(0x1d7)]['id']}})[_0x30b14e(0x215)](handleEntityNotFound(_0x2c9578,null))['then'](function(_0x1c06f2){const _0x42b34c=_0x30b14e;if(_0x1c06f2)return _0x219a1d['model']=_[_0x42b34c(0x22e)](db[_0x42b34c(0x265)][_0x42b34c(0x1cf)]),_0x219a1d[_0x42b34c(0x221)]=_[_0x42b34c(0x22e)](_0x14b855[_0x42b34c(0x221)]),_0x219a1d[_0x42b34c(0x1c6)]=_[_0x42b34c(0x1de)](_0x219a1d[_0x42b34c(0x262)],_0x219a1d[_0x42b34c(0x221)]),_0x59a442['attributes']=_[_0x42b34c(0x1de)](_0x219a1d[_0x42b34c(0x262)],qs[_0x42b34c(0x20a)](_0x14b855[_0x42b34c(0x221)][_0x42b34c(0x20a)])),_0x59a442[_0x42b34c(0x226)]=_0x59a442[_0x42b34c(0x226)]['length']?_0x59a442['attributes']:_0x219a1d[_0x42b34c(0x262)],typeof _0x14b855[_0x42b34c(0x221)][_0x42b34c(0x233)]===_0x42b34c(0x206)&&(_0x59a442[_0x42b34c(0x1c8)]=qs[_0x42b34c(0x1c8)](_0x14b855[_0x42b34c(0x221)][_0x42b34c(0x1c8)]),_0x59a442[_0x42b34c(0x231)]=qs[_0x42b34c(0x231)](_0x14b855[_0x42b34c(0x221)][_0x42b34c(0x231)])),_0x59a442['order']=qs[_0x42b34c(0x1ce)](_0x14b855[_0x42b34c(0x221)]['sort']),_0x59a442[_0x42b34c(0x22d)]=qs['filters'](_[_0x42b34c(0x1f3)](_0x14b855[_0x42b34c(0x221)],_0x219a1d['filters'])),_0x59a442[_0x42b34c(0x22d)][_0x42b34c(0x238)]=_0x1c06f2['id'],_0x14b855[_0x42b34c(0x221)]['filter']&&(_0x59a442[_0x42b34c(0x22d)]=_[_0x42b34c(0x22f)](_0x59a442['where'],{[Op['or']]:_[_0x42b34c(0x204)](_0x59a442[_0x42b34c(0x226)],function(_0x5ae186){const _0x4a51f9=_0x42b34c,_0x3dd3c5={};return _0x3dd3c5[_0x5ae186]={[Op['like']]:'%'+_0x14b855[_0x4a51f9(0x221)]['filter']+'%'},_0x3dd3c5;})})),_0x59a442=_[_0x42b34c(0x22f)]({},_0x59a442,_0x14b855[_0x42b34c(0x263)]),db[_0x42b34c(0x265)][_0x42b34c(0x230)]({'where':_0x59a442['where']})[_0x42b34c(0x215)](function(_0xc9394c){const _0xcbfc82=_0x42b34c;return _0xb3517a[_0xcbfc82(0x230)]=_0xc9394c,_0x14b855[_0xcbfc82(0x221)]['includeAll']&&(_0x59a442['include']=[{'model':db[_0xcbfc82(0x1c7)],'as':_0xcbfc82(0x25e),'required':![]},{'model':db[_0xcbfc82(0x240)],'as':'Owner','attributes':[_0xcbfc82(0x219),'fullname','internal'],'required':![]},{'model':db[_0xcbfc82(0x264)],'as':_0xcbfc82(0x25b),'attributes':['id',_0xcbfc82(0x219),_0xcbfc82(0x1fb)],'where':_0x14b855[_0xcbfc82(0x221)]['tag']?{'id':_0x14b855[_0xcbfc82(0x221)]['tag']}:undefined,'required':_0x14b855['query'][_0xcbfc82(0x201)]?!![]:![]}]),db['OpenchannelInteraction']['findAll'](_0x59a442);})[_0x42b34c(0x215)](function(_0x4ae79b){return _0xb3517a['rows']=_0x4ae79b,_0xb3517a;});})['then'](respondWithFilteredResult(_0x2c9578,_0x59a442))['catch'](handleError(_0x2c9578,null));},exports['addAgents']=function(_0x353170,_0x25e2ef){const _0x31290c=a563_0x318804;return db[_0x31290c(0x1d2)][_0x31290c(0x202)]({'where':{'id':_0x353170['params']['id']}})[_0x31290c(0x215)](function(_0x3dc836){const _0x3ccc7e=_0x31290c;if(_0x3dc836)return _0x3dc836[_0x3ccc7e(0x247)](_0x353170[_0x3ccc7e(0x20c)][_0x3ccc7e(0x23d)],{'through':_['omit'](_0x353170['body'],[_0x3ccc7e(0x23d),'id'])})[_0x3ccc7e(0x215)](function(_0x1b00b9){const _0x5a267b=_0x3ccc7e;for(let _0x3ceed6=0x0;_0x3ceed6<_0x353170[_0x5a267b(0x20c)][_0x5a267b(0x23d)][_0x5a267b(0x266)];_0x3ceed6+=0x1){socket[_0x5a267b(0x20f)](_0x5a267b(0x1d6),{'UserId':_0x353170[_0x5a267b(0x20c)][_0x5a267b(0x23d)][_0x3ceed6],'OpenchannelAccountId':_0x353170[_0x5a267b(0x1d7)]['id']});}return _0x1b00b9;});})[_0x31290c(0x215)](respondWithResult(_0x25e2ef,null))[_0x31290c(0x218)](handleError(_0x25e2ef,null));},exports['removeAgents']=function(_0x42f3ac,_0x40ea75){const _0x2cdf87=a563_0x318804;return db[_0x2cdf87(0x1d2)][_0x2cdf87(0x202)]({'where':{'id':_0x42f3ac[_0x2cdf87(0x1d7)]['id']}})[_0x2cdf87(0x215)](handleEntityNotFound(_0x40ea75,null))['then'](function(_0x32d35){const _0x50be20=_0x2cdf87;if(_0x32d35)return _0x32d35[_0x50be20(0x259)](_0x42f3ac[_0x50be20(0x221)][_0x50be20(0x23d)])[_0x50be20(0x215)](function(){const _0x4ec34b=_0x50be20;if(_[_0x4ec34b(0x1ed)](_0x42f3ac[_0x4ec34b(0x221)]['ids']))for(let _0x52c97e=0x0;_0x52c97e<_0x42f3ac[_0x4ec34b(0x221)][_0x4ec34b(0x23d)][_0x4ec34b(0x266)];_0x52c97e+=0x1){socket['emit']('userOpenchannelAccount:remove',{'UserId':Number(_0x42f3ac[_0x4ec34b(0x221)][_0x4ec34b(0x23d)][_0x52c97e]),'OpenchannelAccountId':Number(_0x42f3ac['params']['id'])});}else socket[_0x4ec34b(0x20f)](_0x4ec34b(0x21b),{'UserId':Number(_0x42f3ac[_0x4ec34b(0x221)][_0x4ec34b(0x23d)]),'OpenchannelAccountId':Number(_0x42f3ac[_0x4ec34b(0x1d7)]['id'])});});})[_0x2cdf87(0x215)](respondWithStatusCode(_0x40ea75,null))[_0x2cdf87(0x218)](handleError(_0x40ea75,null));},exports['getAgents']=function(_0x2f7ea7,_0xe16841){const _0x40ac04=a563_0x318804;let _0x40fd36={};const _0x12c097={};let _0x1fdd8c,_0x214868;return db[_0x40ac04(0x1d2)][_0x40ac04(0x202)]({'where':{'id':_0x2f7ea7[_0x40ac04(0x1d7)]['id']}})[_0x40ac04(0x215)](handleEntityNotFound(_0xe16841,null))['then'](function(_0xa50eca){const _0xd90e=_0x40ac04;if(_0xa50eca)return _0x1fdd8c=_0xa50eca,_0x12c097[_0xd90e(0x262)]=_[_0xd90e(0x22e)](db['User'][_0xd90e(0x1cf)]),_0x12c097['query']=_['keys'](_0x2f7ea7[_0xd90e(0x221)]),_0x12c097['filters']=_[_0xd90e(0x1de)](_0x12c097[_0xd90e(0x262)],_0x12c097[_0xd90e(0x221)]),_0x40fd36[_0xd90e(0x226)]=_[_0xd90e(0x1de)](_0x12c097[_0xd90e(0x262)],qs[_0xd90e(0x20a)](_0x2f7ea7[_0xd90e(0x221)]['fields'])),_0x40fd36['attributes']=_0x40fd36['attributes']['length']?_0x40fd36[_0xd90e(0x226)]:_0x12c097[_0xd90e(0x262)],_0x40fd36['order']=qs[_0xd90e(0x1ce)](_0x2f7ea7[_0xd90e(0x221)][_0xd90e(0x1ce)]),_0x40fd36[_0xd90e(0x22d)]=qs[_0xd90e(0x1c6)](_[_0xd90e(0x1f3)](_0x2f7ea7[_0xd90e(0x221)],_0x12c097['filters'])),_0x2f7ea7['query']['filter']&&(_0x40fd36[_0xd90e(0x22d)]=_[_0xd90e(0x22f)](_0x40fd36[_0xd90e(0x22d)],{[Op['or']]:_[_0xd90e(0x204)](_0x40fd36['attributes'],function(_0x207f83){const _0x326e07=_0xd90e,_0x3ae797={};return _0x3ae797[_0x207f83]={[Op[_0x326e07(0x1e5)]]:'%'+_0x2f7ea7[_0x326e07(0x221)]['filter']+'%'},_0x3ae797;})})),_0x40fd36=_[_0xd90e(0x22f)]({},_0x40fd36,_0x2f7ea7[_0xd90e(0x263)]),_0x1fdd8c[_0xd90e(0x217)](_0x40fd36);})[_0x40ac04(0x215)](function(_0x3f8f6e){const _0x14928f=_0x40ac04;if(_0x3f8f6e)return _0x214868=_0x3f8f6e[_0x14928f(0x266)],typeof _0x2f7ea7[_0x14928f(0x221)][_0x14928f(0x233)]===_0x14928f(0x206)&&(_0x40fd36['limit']=qs[_0x14928f(0x1c8)](_0x2f7ea7[_0x14928f(0x221)][_0x14928f(0x1c8)]),_0x40fd36['offset']=qs[_0x14928f(0x231)](_0x2f7ea7[_0x14928f(0x221)][_0x14928f(0x231)])),_0x1fdd8c[_0x14928f(0x217)](_0x40fd36);})[_0x40ac04(0x215)](function(_0x4b855c){if(_0x4b855c)return _0x4b855c?{'count':_0x214868,'rows':_0x4b855c}:null;})['then'](respondWithResult(_0xe16841,null))[_0x40ac04(0x218)](handleError(_0xe16841,null));},exports[a563_0x318804(0x22c)]=function(_0x1f44e9,_0x3a98b3){const _0x3c3b85=a563_0x318804;let _0x2d8210,_0x3818d1;if(_[_0x3c3b85(0x1e8)](_0x1f44e9[_0x3c3b85(0x20c)]['body'])||_0x1f44e9[_0x3c3b85(0x20c)][_0x3c3b85(0x20c)]==='')throw new ValidationError(_0x3c3b85(0x1f7));if(_[_0x3c3b85(0x1e8)](_0x1f44e9[_0x3c3b85(0x20c)]['to'])){}const _0x38b110=_0x1f44e9[_0x3c3b85(0x20c)]['to'];return db[_0x3c3b85(0x1d2)]['findOne']({'where':{'id':_0x1f44e9[_0x3c3b85(0x1d7)]['id']}})[_0x3c3b85(0x215)](handleEntityNotFound(_0x3a98b3,null))[_0x3c3b85(0x215)](function(_0x2629ad){const _0x467184=_0x3c3b85;if(_0x2629ad)return db['OpenchannelAccount']['findOne']({'where':{'id':_0x2629ad['id']},'include':[{'model':db[_0x467184(0x22b)],'as':_0x467184(0x1d9),'include':[{'model':db['CmContact'],'as':'Contacts','where':{[_0x2629ad['mapKey']]:_0x38b110},'limit':0x1,'order':[['updatedAt',_0x467184(0x21d)]]}]}]})[_0x467184(0x215)](handleEntityNotFound(_0x3a98b3,null))[_0x467184(0x215)](function(_0x51b1dd){const _0x5783ec=_0x467184;if(_0x51b1dd&&_0x51b1dd[_0x5783ec(0x1d9)]){_0x2d8210=_0x51b1dd[_0x5783ec(0x21c)]({'plain':!![]});if(_0x2d8210[_0x5783ec(0x1d9)]&&_0x2d8210[_0x5783ec(0x1d9)][_0x5783ec(0x237)][_0x5783ec(0x266)])return _0x2d8210[_0x5783ec(0x1d9)][_0x5783ec(0x237)][0x0];return db['CmContact']['create'](_[_0x5783ec(0x1fc)](_0x1f44e9[_0x5783ec(0x20c)],{'firstName':_0x38b110,[_0x51b1dd['mapKey']]:_0x38b110,'phone':_0x38b110,'ListId':_0x2d8210[_0x5783ec(0x1e6)]}));}})['then'](handleEntityNotFound(_0x3a98b3,null))['then'](function(_0x4b874f){const _0x55bd02=_0x467184;if(_0x4b874f)return _0x3818d1=_0x4b874f,db[_0x55bd02(0x265)][_0x55bd02(0x202)]({'where':{'ContactId':_0x3818d1['id'],'closed':![],'OpenchannelAccountId':_0x2d8210['id']}})[_0x55bd02(0x215)](function(_0x470e80){const _0x270ee8=_0x55bd02;if(_0x470e80)return[_0x470e80,![]];return db[_0x270ee8(0x265)][_0x270ee8(0x1f6)]({'UserId':_0x1f44e9[_0x270ee8(0x24c)]['id'],'ContactId':_0x3818d1['id'],'OpenchannelAccountId':_0x2d8210['id'],'lastMsgDirection':_0x270ee8(0x1fe),'Messages':[_[_0x270ee8(0x22f)](_0x1f44e9[_0x270ee8(0x20c)],{'read':![],'body':_0x1f44e9['body']['body'],'OpenchannelAccountId':_0x2d8210['id'],'UserId':_0x1f44e9['user']['id'],'ContactId':_0x3818d1['id']})]},{'include':[{'model':db[_0x270ee8(0x211)],'as':_0x270ee8(0x236)}]})[_0x270ee8(0x215)](function(_0x8da681){return[_0x8da681,!![]];});});})['then'](function([_0x6ec9f0,_0x3ab0a4]){const _0x39437f=_0x467184;if(_0x3ab0a4)return _0x6ec9f0;return db[_0x39437f(0x211)]['create'](_[_0x39437f(0x22f)](_0x1f44e9['body'],{'read':![],'body':_0x1f44e9['body']['body'],'OpenchannelAccountId':_0x2d8210['id'],'OpenchannelInteractionId':_0x6ec9f0['id'],'UserId':_0x1f44e9[_0x39437f(0x24c)]['id'],'ContactId':_0x3818d1['id']}))[_0x39437f(0x215)](function(_0x5c4d6e){const _0x265fb2=_0x39437f;return _0x6ec9f0[_0x265fb2(0x227)]['Messages']=[],_0x6ec9f0[_0x265fb2(0x227)][_0x265fb2(0x236)][_0x265fb2(0x1ef)](_0x5c4d6e[_0x265fb2(0x227)]),_0x6ec9f0;});});})[_0x3c3b85(0x215)](respondWithResult(_0x3a98b3,null))[_0x3c3b85(0x218)](handleError(_0x3a98b3,null));}; \ No newline at end of file diff --git a/server/api/openchannelAccount/openchannelAccount.events.js b/server/api/openchannelAccount/openchannelAccount.events.js index c86944b..0218fee 100644 --- a/server/api/openchannelAccount/openchannelAccount.events.js +++ b/server/api/openchannelAccount/openchannelAccount.events.js @@ -1 +1 @@ -const a469_0xaf24=['update','emit','setMaxListeners','save','addHook','remove','undefined'];(function(_0xce0db8,_0xaf2474){const _0x5ee109=function(_0x34443b){while(--_0x34443b){_0xce0db8['push'](_0xce0db8['shift']());}};_0x5ee109(++_0xaf2474);}(a469_0xaf24,0x1d1));const a469_0x5ee1=function(_0xce0db8,_0xaf2474){_0xce0db8=_0xce0db8-0x0;let _0x5ee109=a469_0xaf24[_0xce0db8];return _0x5ee109;};const _0x4cb4c1=a469_0x5ee1;'use strict';const EventEmitter=require('events'),OpenchannelAccount=require('../../mysqldb')['db']['OpenchannelAccount'],OpenchannelAccountEvents=new EventEmitter();OpenchannelAccountEvents[_0x4cb4c1('0x6')](0x0);const events={'afterCreate':_0x4cb4c1('0x0'),'afterUpdate':_0x4cb4c1('0x4'),'afterDestroy':_0x4cb4c1('0x2')};function emitEvent(_0x34443b){return function(_0x105c97){const _0xd6f84b=a469_0x5ee1;OpenchannelAccountEvents[_0xd6f84b('0x5')](_0x34443b+':'+_0x105c97['id'],_0x105c97),OpenchannelAccountEvents['emit'](_0x34443b,_0x105c97);};}for(const e in events){if(typeof events[e]!==_0x4cb4c1('0x3')){const event=events[e];OpenchannelAccount[_0x4cb4c1('0x1')](e,emitEvent(event));}}module['exports']=OpenchannelAccountEvents; \ No newline at end of file +const a564_0x8968=['addHook','remove','undefined','save','events','update','setMaxListeners','exports','emit'];(function(_0xd0cbc3,_0x4ee817){const _0x8968e4=function(_0x26dcf9){while(--_0x26dcf9){_0xd0cbc3['push'](_0xd0cbc3['shift']());}};_0x8968e4(++_0x4ee817);}(a564_0x8968,0xa0));const a564_0x26dc=function(_0xd0cbc3,_0x4ee817){_0xd0cbc3=_0xd0cbc3-0x179;let _0x8968e4=a564_0x8968[_0xd0cbc3];return _0x8968e4;};const a564_0x415659=a564_0x26dc;'use strict';const EventEmitter=require(a564_0x415659(0x17f)),OpenchannelAccount=require('../../mysqldb')['db']['OpenchannelAccount'],OpenchannelAccountEvents=new EventEmitter();OpenchannelAccountEvents[a564_0x415659(0x181)](0x0);const events={'afterCreate':a564_0x415659(0x17e),'afterUpdate':a564_0x415659(0x180),'afterDestroy':a564_0x415659(0x17c)};function emitEvent(_0x2ddbb6){return function(_0x66ab9){const _0x2d5003=a564_0x26dc;OpenchannelAccountEvents[_0x2d5003(0x17a)](_0x2ddbb6+':'+_0x66ab9['id'],_0x66ab9),OpenchannelAccountEvents[_0x2d5003(0x17a)](_0x2ddbb6,_0x66ab9);};}for(const e in events){if(typeof events[e]!==a564_0x415659(0x17d)){const event=events[e];OpenchannelAccount[a564_0x415659(0x17b)](e,emitEvent(event));}}module[a564_0x415659(0x179)]=OpenchannelAccountEvents; \ No newline at end of file diff --git a/server/api/openchannelAccount/openchannelAccount.model.js b/server/api/openchannelAccount/openchannelAccount.model.js index a962631..c6af69d 100644 --- a/server/api/openchannelAccount/openchannelAccount.model.js +++ b/server/api/openchannelAccount/openchannelAccount.model.js @@ -1 +1 @@ -const a470_0x2d9d=['openchannel_accounts','exports','define','./openchannelAccount.attributes'];(function(_0x30b382,_0x2d9df6){const _0x27ff0b=function(_0x48cde2){while(--_0x48cde2){_0x30b382['push'](_0x30b382['shift']());}};_0x27ff0b(++_0x2d9df6);}(a470_0x2d9d,0xf6));const a470_0x27ff=function(_0x30b382,_0x2d9df6){_0x30b382=_0x30b382-0x0;let _0x27ff0b=a470_0x2d9d[_0x30b382];return _0x27ff0b;};const _0x28a1dc=a470_0x27ff;'use strict';const attributes=require(_0x28a1dc('0x1'));module[_0x28a1dc('0x3')]=function(_0x48cde2){const _0x21e527=_0x28a1dc,_0x2eaeea=_0x48cde2[_0x21e527('0x0')]('OpenchannelAccount',attributes,{'tableName':_0x21e527('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x2eaeea;}; \ No newline at end of file +const a565_0x35ec=['exports','init','OpenchannelAccount','./openchannelAccount.attributes','sequelize','./openchannelAccount.options'];(function(_0x69e9fd,_0xc665da){const _0x35ecba=function(_0x4c3a1b){while(--_0x4c3a1b){_0x69e9fd['push'](_0x69e9fd['shift']());}};_0x35ecba(++_0xc665da);}(a565_0x35ec,0xb7));const a565_0x4c3a=function(_0x69e9fd,_0xc665da){_0x69e9fd=_0x69e9fd-0x1ab;let _0x35ecba=a565_0x35ec[_0x69e9fd];return _0x35ecba;};const a565_0x250332=a565_0x4c3a;'use strict';const {Model}=require(a565_0x250332(0x1ac)),{attributes}=require(a565_0x250332(0x1ab)),{options}=require(a565_0x250332(0x1ad));class OpenchannelAccount extends Model{}function init(_0x13bc46,_0x5736a5){const _0x16a955=a565_0x250332,_0x2a109a=options(_0x13bc46),_0x1112f3=typeof _0x5736a5==='function'?_0x5736a5(_0x2a109a):_0x2a109a;return OpenchannelAccount[_0x16a955(0x1af)](attributes,_0x1112f3),OpenchannelAccount;}module['exports'][a565_0x250332(0x1b0)]=OpenchannelAccount,module[a565_0x250332(0x1ae)][a565_0x250332(0x1af)]=init; \ No newline at end of file diff --git a/server/api/openchannelAccount/openchannelAccount.options.js b/server/api/openchannelAccount/openchannelAccount.options.js new file mode 100644 index 0000000..9e1bb5a --- /dev/null +++ b/server/api/openchannelAccount/openchannelAccount.options.js @@ -0,0 +1 @@ +var a566_0x1667=['openchannel_accounts','options','exports'];(function(_0x365fe4,_0x4c1c2a){var _0x1667aa=function(_0x2a258f){while(--_0x2a258f){_0x365fe4['push'](_0x365fe4['shift']());}};_0x1667aa(++_0x4c1c2a);}(a566_0x1667,0x1b9));var a566_0x2a25=function(_0x365fe4,_0x4c1c2a){_0x365fe4=_0x365fe4-0x1a6;var _0x1667aa=a566_0x1667[_0x365fe4];return _0x1667aa;};var a566_0x320a98=a566_0x2a25;function options(_0x18df0e){var _0x22c2f8=a566_0x2a25;return{'sequelize':_0x18df0e,'tableName':_0x22c2f8(0x1a6),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a566_0x320a98(0x1a8)][a566_0x320a98(0x1a7)]=options; \ No newline at end of file diff --git a/server/api/openchannelAccount/openchannelAccount.rpc.js b/server/api/openchannelAccount/openchannelAccount.rpc.js index 2135653..c3c36e1 100644 --- a/server/api/openchannelAccount/openchannelAccount.rpc.js +++ b/server/api/openchannelAccount/openchannelAccount.rpc.js @@ -1 +1 @@ -const a471_0x3396=['register','./openchannelAccount.socket','../../rediscache'];(function(_0x515ed4,_0x33966f){const _0x1c5084=function(_0x43c3c4){while(--_0x43c3c4){_0x515ed4['push'](_0x515ed4['shift']());}};_0x1c5084(++_0x33966f);}(a471_0x3396,0x83));const a471_0x1c50=function(_0x515ed4,_0x33966f){_0x515ed4=_0x515ed4-0x0;let _0x1c5084=a471_0x3396[_0x515ed4];return _0x1c5084;};const _0x3bd082=a471_0x1c50;'use strict';const {getSocket}=require(_0x3bd082('0x0')),socket=getSocket();require(_0x3bd082('0x2'))[_0x3bd082('0x1')](socket); \ No newline at end of file +const a567_0x47d8=['../../rediscache','./openchannelAccount.socket','register'];(function(_0x2d8df0,_0x3c83c9){const _0x47d838=function(_0x47df4d){while(--_0x47df4d){_0x2d8df0['push'](_0x2d8df0['shift']());}};_0x47d838(++_0x3c83c9);}(a567_0x47d8,0xeb));const a567_0x47df=function(_0x2d8df0,_0x3c83c9){_0x2d8df0=_0x2d8df0-0x1c5;let _0x47d838=a567_0x47d8[_0x2d8df0];return _0x47d838;};const a567_0x14105c=a567_0x47df;'use strict';const {getSocket}=require(a567_0x14105c(0x1c7)),socket=getSocket();require(a567_0x14105c(0x1c5))[a567_0x14105c(0x1c6)](socket); \ No newline at end of file diff --git a/server/api/openchannelAccount/openchannelAccount.socket.js b/server/api/openchannelAccount/openchannelAccount.socket.js index 8eda404..a42b5db 100644 --- a/server/api/openchannelAccount/openchannelAccount.socket.js +++ b/server/api/openchannelAccount/openchannelAccount.socket.js @@ -1 +1 @@ -const a472_0x5612=['remove','update','openchannelAccount:','emit','register'];(function(_0x2c2e01,_0x56127b){const _0x20acd5=function(_0x280a92){while(--_0x280a92){_0x2c2e01['push'](_0x2c2e01['shift']());}};_0x20acd5(++_0x56127b);}(a472_0x5612,0x1db));const a472_0x20ac=function(_0x2c2e01,_0x56127b){_0x2c2e01=_0x2c2e01-0x0;let _0x20acd5=a472_0x5612[_0x2c2e01];return _0x20acd5;};const _0x1e36f1=a472_0x20ac;'use strict';const OpenchannelAccountEvents=require('./openchannelAccount.events'),events=['save',_0x1e36f1('0x0'),_0x1e36f1('0x1')];function createListener(_0x280a92,_0x1cb438){return function(_0x98b5b){const _0x4b2e8a=a472_0x20ac;_0x1cb438[_0x4b2e8a('0x3')](_0x280a92,_0x98b5b);};}exports[_0x1e36f1('0x4')]=function(_0x3b8030){const _0x4241dd=_0x1e36f1;for(let _0x9a413a=0x0,_0x2ffecb=events['length'];_0x9a413a<_0x2ffecb;_0x9a413a++){const _0x256d59=events[_0x9a413a],_0x17f1b0=createListener(_0x4241dd('0x2')+_0x256d59,_0x3b8030);OpenchannelAccountEvents['on'](_0x256d59,_0x17f1b0);}}; \ No newline at end of file +const a568_0x5a7f=['update','emit','./openchannelAccount.events','save','length','register'];(function(_0x437457,_0x474ac3){const _0x5a7fad=function(_0x9b0e38){while(--_0x9b0e38){_0x437457['push'](_0x437457['shift']());}};_0x5a7fad(++_0x474ac3);}(a568_0x5a7f,0x96));const a568_0x9b0e=function(_0x437457,_0x474ac3){_0x437457=_0x437457-0x127;let _0x5a7fad=a568_0x5a7f[_0x437457];return _0x5a7fad;};const a568_0x4ea06e=a568_0x9b0e;'use strict';const OpenchannelAccountEvents=require(a568_0x4ea06e(0x129)),events=[a568_0x4ea06e(0x12a),'remove',a568_0x4ea06e(0x127)];function createListener(_0x5e92b2,_0x56a7d5){return function(_0x72d0cb){const _0xbab8b1=a568_0x9b0e;_0x56a7d5[_0xbab8b1(0x128)](_0x5e92b2,_0x72d0cb);};}exports[a568_0x4ea06e(0x12c)]=function(_0xb32b53){const _0x3acfac=a568_0x4ea06e;for(let _0x4796cb=0x0,_0x4b090a=events[_0x3acfac(0x12b)];_0x4796cb<_0x4b090a;_0x4796cb++){const _0xa26f51=events[_0x4796cb],_0x285e50=createListener('openchannelAccount:'+_0xa26f51,_0xb32b53);OpenchannelAccountEvents['on'](_0xa26f51,_0x285e50);}}; \ No newline at end of file diff --git a/server/api/openchannelApplication/index.js b/server/api/openchannelApplication/index.js index e1390ac..64f8395 100644 --- a/server/api/openchannelApplication/index.js +++ b/server/api/openchannelApplication/index.js @@ -1 +1 @@ -const a473_0x3969=['isAuthenticated','destroy','get','/:id','create','exports','index','../../components/auth/service','post','./openchannelApplication.controller','Router','show','express'];(function(_0x50e2a7,_0x396978){const _0x81bd20=function(_0x37446e){while(--_0x37446e){_0x50e2a7['push'](_0x50e2a7['shift']());}};_0x81bd20(++_0x396978);}(a473_0x3969,0x85));const a473_0x81bd=function(_0x50e2a7,_0x396978){_0x50e2a7=_0x50e2a7-0x0;let _0x81bd20=a473_0x3969[_0x50e2a7];return _0x81bd20;};const _0x25de6c=a473_0x81bd;'use strict';const express=require(_0x25de6c('0x9')),router=express[_0x25de6c('0x7')](),auth=require(_0x25de6c('0x4')),controller=require(_0x25de6c('0x6'));router['get']('/',auth[_0x25de6c('0xa')](),controller[_0x25de6c('0x3')]),router[_0x25de6c('0xc')]('/:id',auth[_0x25de6c('0xa')](),controller[_0x25de6c('0x8')]),router[_0x25de6c('0x5')]('/',auth[_0x25de6c('0xa')](),controller[_0x25de6c('0x1')]),router['put'](_0x25de6c('0x0'),auth['isAuthenticated'](),controller['update']),router['delete'](_0x25de6c('0x0'),auth[_0x25de6c('0xa')](),controller[_0x25de6c('0xb')]),module[_0x25de6c('0x2')]=router; \ No newline at end of file +const a569_0x1c3a=['post','get','update','express','put','delete','destroy','index','exports','isAuthenticated','show','/:id','../../components/auth/service'];(function(_0x27032a,_0x51cdd2){const _0x1c3a71=function(_0x1ef023){while(--_0x1ef023){_0x27032a['push'](_0x27032a['shift']());}};_0x1c3a71(++_0x51cdd2);}(a569_0x1c3a,0x118));const a569_0x1ef0=function(_0x27032a,_0x51cdd2){_0x27032a=_0x27032a-0x1e4;let _0x1c3a71=a569_0x1c3a[_0x27032a];return _0x1c3a71;};const a569_0x2a9b8d=a569_0x1ef0;'use strict';const express=require(a569_0x2a9b8d(0x1ed)),router=express['Router'](),auth=require(a569_0x2a9b8d(0x1e9)),controller=require('./openchannelApplication.controller');router[a569_0x2a9b8d(0x1eb)]('/',auth[a569_0x2a9b8d(0x1e6)](),controller[a569_0x2a9b8d(0x1e4)]),router[a569_0x2a9b8d(0x1eb)](a569_0x2a9b8d(0x1e8),auth[a569_0x2a9b8d(0x1e6)](),controller[a569_0x2a9b8d(0x1e7)]),router[a569_0x2a9b8d(0x1ea)]('/',auth[a569_0x2a9b8d(0x1e6)](),controller['create']),router[a569_0x2a9b8d(0x1ee)](a569_0x2a9b8d(0x1e8),auth[a569_0x2a9b8d(0x1e6)](),controller[a569_0x2a9b8d(0x1ec)]),router[a569_0x2a9b8d(0x1ef)]('/:id',auth[a569_0x2a9b8d(0x1e6)](),controller[a569_0x2a9b8d(0x1f0)]),module[a569_0x2a9b8d(0x1e5)]=router; \ No newline at end of file diff --git a/server/api/openchannelApplication/openchannelApplication.attributes.js b/server/api/openchannelApplication/openchannelApplication.attributes.js index e18e45e..1cefda7 100644 --- a/server/api/openchannelApplication/openchannelApplication.attributes.js +++ b/server/api/openchannelApplication/openchannelApplication.attributes.js @@ -1 +1 @@ -const a474_0x4ec0=['STRING','INTEGER','sequelize','*,*,*,*','noop','exports','TEXT'];(function(_0x138583,_0x4ec0b5){const _0x42ab85=function(_0x15cbc7){while(--_0x15cbc7){_0x138583['push'](_0x138583['shift']());}};_0x42ab85(++_0x4ec0b5);}(a474_0x4ec0,0x1bc));const a474_0x42ab=function(_0x138583,_0x4ec0b5){_0x138583=_0x138583-0x0;let _0x42ab85=a474_0x4ec0[_0x138583];return _0x42ab85;};const _0x20d6ee=a474_0x42ab;'use strict';const Sequelize=require(_0x20d6ee('0x6'));module[_0x20d6ee('0x2')]={'priority':{'type':Sequelize[_0x20d6ee('0x5')],'allowNull':![]},'app':{'type':Sequelize[_0x20d6ee('0x4')],'allowNull':![],'defaultValue':_0x20d6ee('0x1')},'appdata':{'type':Sequelize[_0x20d6ee('0x3')]()},'description':{'type':Sequelize[_0x20d6ee('0x4')]},'interval':{'type':Sequelize[_0x20d6ee('0x4')],'defaultValue':_0x20d6ee('0x0')}}; \ No newline at end of file +const a570_0x272e=['TEXT','attributes','sequelize','*,*,*,*','INTEGER','STRING'];(function(_0x57273c,_0xc6abb8){const _0x272e40=function(_0x1026c0){while(--_0x1026c0){_0x57273c['push'](_0x57273c['shift']());}};_0x272e40(++_0xc6abb8);}(a570_0x272e,0x1b6));const a570_0x1026=function(_0x57273c,_0xc6abb8){_0x57273c=_0x57273c-0x160;let _0x272e40=a570_0x272e[_0x57273c];return _0x272e40;};const a570_0x2bfc33=a570_0x1026;'use strict';const {DataTypes}=require(a570_0x2bfc33(0x162)),attributes={'priority':{'type':DataTypes[a570_0x2bfc33(0x164)],'allowNull':![]},'app':{'type':DataTypes[a570_0x2bfc33(0x165)],'allowNull':![],'defaultValue':'noop'},'appdata':{'type':DataTypes[a570_0x2bfc33(0x160)]()},'description':{'type':DataTypes[a570_0x2bfc33(0x165)]},'interval':{'type':DataTypes[a570_0x2bfc33(0x165)],'defaultValue':a570_0x2bfc33(0x163)}};module['exports'][a570_0x2bfc33(0x161)]=attributes; \ No newline at end of file diff --git a/server/api/openchannelApplication/openchannelApplication.controller.js b/server/api/openchannelApplication/openchannelApplication.controller.js index ae99e62..e3337b9 100644 --- a/server/api/openchannelApplication/openchannelApplication.controller.js +++ b/server/api/openchannelApplication/openchannelApplication.controller.js @@ -1 +1 @@ -const a475_0x5da4=['stack','name','attributes','body','sequelize','../../config/logger','fieldName','map','options','findOne','findAll','keys','sendStatus','count','fields','filter','../../mysqldb','includeAll','like','json','status','index','merge','type','query','set','filters','show','send','OpenchannelApplication','then','catch','params','VIRTUAL','include','length','create','model','sort','key','pick','where','../../components/parsers/qs','update','offset','lodash','rows','nolimit','undefined','intersection','limit','rawAttributes','api'];(function(_0x558705,_0x5da454){const _0x3c2d4f=function(_0x423965){while(--_0x423965){_0x558705['push'](_0x558705['shift']());}};_0x3c2d4f(++_0x5da454);}(a475_0x5da4,0xa1));const a475_0x3c2d=function(_0x558705,_0x5da454){_0x558705=_0x558705-0x0;let _0x3c2d4f=a475_0x5da4[_0x558705];return _0x3c2d4f;};const _0x1a97a2=a475_0x3c2d;'use strict';const _=require(_0x1a97a2('0x2b')),qs=require(_0x1a97a2('0x28')),logger=require(_0x1a97a2('0x3'))(_0x1a97a2('0x32')),db=require(_0x1a97a2('0xe'))['db'],{Op}=require(_0x1a97a2('0x2'));function respondWithResult(_0x423965,_0x29a701){return _0x29a701=_0x29a701||0xc8,function(_0x5bad10){const _0x395ebf=a475_0x3c2d;if(_0x5bad10)return _0x423965[_0x395ebf('0x12')](_0x29a701)[_0x395ebf('0x11')](_0x5bad10);};}function respondWithFilteredResult(_0x890201,_0x22996e){return function(_0x488e27){const _0x108e07=a475_0x3c2d;if(_0x488e27){const _0x2e64a4=_0x488e27['count'],_0x518009=_0x22996e[_0x108e07('0x2a')];let _0xf2e295=_0x22996e[_0x108e07('0x2a')]+_0x22996e['limit'],_0xa17448;return _0xf2e295>=_0x2e64a4?(_0xf2e295=_0x2e64a4,_0xa17448=0xc8):_0xa17448=0xce,_0x890201['status'](_0xa17448),_0x890201[_0x108e07('0x17')]('Content-Range',_0x518009+'-'+_0xf2e295+'/'+_0x2e64a4)[_0x108e07('0x11')](_0x488e27);}return null;};}function saveUpdates(_0x5b7868){return function(_0xac307a){if(_0xac307a)return _0xac307a['update'](_0x5b7868)['then'](function(_0x51d654){return _0x51d654;});return null;};}function removeEntity(_0x1a5320){return function(_0x2f732d){const _0x393eb1=a475_0x3c2d;if(_0x2f732d)return _0x2f732d['destroy']()[_0x393eb1('0x1c')](function(){const _0xe404f=_0x393eb1;_0x1a5320[_0xe404f('0x12')](0xcc)['end']();});};}function handleEntityNotFound(_0x4fe599){return function(_0x28a8fe){const _0x53b5c3=a475_0x3c2d;return!_0x28a8fe&&_0x4fe599[_0x53b5c3('0xa')](0x194),_0x28a8fe;};}function handleError(_0xcd1838,_0x38248d){return _0x38248d=_0x38248d||0x1f4,function(_0x59deec){const _0x118949=a475_0x3c2d;logger['error'](_0x59deec[_0x118949('0x33')]),_0x59deec[_0x118949('0x34')]&&delete _0x59deec[_0x118949('0x34')],_0xcd1838[_0x118949('0x12')](_0x38248d)[_0x118949('0x1a')](_0x59deec);};}exports[_0x1a97a2('0x13')]=function(_0x3c7d31,_0x516e35){const _0x9d001c=_0x1a97a2;let _0x28d03a={};const _0x52f24e={},_0x5bd188={'count':0x0,'rows':[]},_0x197171=_[_0x9d001c('0x5')](db[_0x9d001c('0x1b')][_0x9d001c('0x31')],function(_0x4ea8c5){const _0x109f11=_0x9d001c;return{'name':_0x4ea8c5[_0x109f11('0x4')],'type':_0x4ea8c5[_0x109f11('0x15')][_0x109f11('0x25')]};});_0x52f24e[_0x9d001c('0x23')]=_['map'](_0x197171,_0x9d001c('0x34')),_0x52f24e[_0x9d001c('0x16')]=_[_0x9d001c('0x9')](_0x3c7d31[_0x9d001c('0x16')]),_0x52f24e[_0x9d001c('0x18')]=_['intersection'](_0x52f24e[_0x9d001c('0x23')],_0x52f24e[_0x9d001c('0x16')]),_0x28d03a[_0x9d001c('0x0')]=_[_0x9d001c('0x2f')](_0x52f24e[_0x9d001c('0x23')],qs[_0x9d001c('0xc')](_0x3c7d31['query'][_0x9d001c('0xc')])),_0x28d03a[_0x9d001c('0x0')]=_0x28d03a[_0x9d001c('0x0')]['length']?_0x28d03a[_0x9d001c('0x0')]:_0x52f24e[_0x9d001c('0x23')];typeof _0x3c7d31[_0x9d001c('0x16')][_0x9d001c('0x2d')]===_0x9d001c('0x2e')&&(_0x28d03a[_0x9d001c('0x30')]=qs['limit'](_0x3c7d31[_0x9d001c('0x16')]['limit']),_0x28d03a[_0x9d001c('0x2a')]=qs['offset'](_0x3c7d31['query'][_0x9d001c('0x2a')]));_0x28d03a['order']=qs[_0x9d001c('0x24')](_0x3c7d31[_0x9d001c('0x16')][_0x9d001c('0x24')]),_0x28d03a[_0x9d001c('0x27')]=qs[_0x9d001c('0x18')](_[_0x9d001c('0x26')](_0x3c7d31[_0x9d001c('0x16')],_0x52f24e['filters']),_0x197171);_0x3c7d31[_0x9d001c('0x16')]['filter']&&(_0x28d03a[_0x9d001c('0x27')]=_[_0x9d001c('0x14')](_0x28d03a[_0x9d001c('0x27')],{[Op['or']]:_[_0x9d001c('0x5')](_0x197171,function(_0x15e17a){const _0x8b59e1=_0x9d001c;if(_0x15e17a[_0x8b59e1('0x15')]!==_0x8b59e1('0x1f')){const _0x4ec0f0={};return _0x4ec0f0[_0x15e17a[_0x8b59e1('0x34')]]={[Op[_0x8b59e1('0x10')]]:'%'+_0x3c7d31['query'][_0x8b59e1('0xd')]+'%'},_0x4ec0f0;}})}));_0x28d03a=_[_0x9d001c('0x14')]({},_0x28d03a,_0x3c7d31['options']);const _0x5d335b={'where':_0x28d03a[_0x9d001c('0x27')]};return db[_0x9d001c('0x1b')][_0x9d001c('0xb')](_0x5d335b)[_0x9d001c('0x1c')](function(_0x229760){const _0x234d63=_0x9d001c;return _0x5bd188[_0x234d63('0xb')]=_0x229760,_0x3c7d31['query'][_0x234d63('0xf')]&&(_0x28d03a[_0x234d63('0x20')]=[{'all':!![]}]),db[_0x234d63('0x1b')][_0x234d63('0x8')](_0x28d03a);})[_0x9d001c('0x1c')](function(_0x563ed7){const _0x2953d4=_0x9d001c;return _0x5bd188[_0x2953d4('0x2c')]=_0x563ed7,_0x5bd188;})[_0x9d001c('0x1c')](respondWithFilteredResult(_0x516e35,_0x28d03a))[_0x9d001c('0x1d')](handleError(_0x516e35,null));},exports[_0x1a97a2('0x19')]=function(_0x193e12,_0x4229e5){const _0x48ce77=_0x1a97a2;let _0x97179c={'raw':!![],'where':{'id':_0x193e12[_0x48ce77('0x1e')]['id']}};const _0xb8ba92={};return _0xb8ba92[_0x48ce77('0x23')]=_[_0x48ce77('0x9')](db[_0x48ce77('0x1b')][_0x48ce77('0x31')]),_0xb8ba92[_0x48ce77('0x16')]=_[_0x48ce77('0x9')](_0x193e12['query']),_0xb8ba92[_0x48ce77('0x18')]=_[_0x48ce77('0x2f')](_0xb8ba92[_0x48ce77('0x23')],_0xb8ba92[_0x48ce77('0x16')]),_0x97179c['attributes']=_[_0x48ce77('0x2f')](_0xb8ba92[_0x48ce77('0x23')],qs[_0x48ce77('0xc')](_0x193e12[_0x48ce77('0x16')][_0x48ce77('0xc')])),_0x97179c[_0x48ce77('0x0')]=_0x97179c[_0x48ce77('0x0')][_0x48ce77('0x21')]?_0x97179c[_0x48ce77('0x0')]:_0xb8ba92[_0x48ce77('0x23')],_0x193e12[_0x48ce77('0x16')][_0x48ce77('0xf')]&&(_0x97179c[_0x48ce77('0x20')]=[{'all':!![]}]),_0x97179c=_[_0x48ce77('0x14')]({},_0x97179c,_0x193e12[_0x48ce77('0x6')]),db['OpenchannelApplication'][_0x48ce77('0x7')](_0x97179c)[_0x48ce77('0x1c')](handleEntityNotFound(_0x4229e5,null))['then'](respondWithResult(_0x4229e5,null))[_0x48ce77('0x1d')](handleError(_0x4229e5,null));},exports[_0x1a97a2('0x22')]=function(_0x1dc085,_0x43e929){const _0x8edee2=_0x1a97a2;return db['OpenchannelApplication']['create'](_0x1dc085['body'],{})[_0x8edee2('0x1c')](respondWithResult(_0x43e929,0xc9))[_0x8edee2('0x1d')](handleError(_0x43e929,null));},exports[_0x1a97a2('0x29')]=function(_0x58e9b4,_0x28ddcc){const _0x2ed4b2=_0x1a97a2;return _0x58e9b4[_0x2ed4b2('0x1')]['id']&&delete _0x58e9b4[_0x2ed4b2('0x1')]['id'],db['OpenchannelApplication'][_0x2ed4b2('0x7')]({'where':{'id':_0x58e9b4[_0x2ed4b2('0x1e')]['id']}})[_0x2ed4b2('0x1c')](handleEntityNotFound(_0x28ddcc,null))['then'](saveUpdates(_0x58e9b4[_0x2ed4b2('0x1')],null))[_0x2ed4b2('0x1c')](respondWithResult(_0x28ddcc,null))[_0x2ed4b2('0x1d')](handleError(_0x28ddcc,null));},exports['destroy']=function(_0x1a7d6b,_0x457a29){const _0x5b89b0=_0x1a97a2;return db[_0x5b89b0('0x1b')]['findOne']({'where':{'id':_0x1a7d6b[_0x5b89b0('0x1e')]['id']}})[_0x5b89b0('0x1c')](handleEntityNotFound(_0x457a29,null))[_0x5b89b0('0x1c')](removeEntity(_0x457a29,null))[_0x5b89b0('0x1d')](handleError(_0x457a29,null));}; \ No newline at end of file +const a571_0xa0b5=['query','send','options','limit','filter','intersection','create','then','name','index','params','../../mysqldb','fieldName','count','json','body','fields','length','rawAttributes','findAll','like','sendStatus','sequelize','status','update','type','set','pick','where','stack','nolimit','attributes','model','order','OpenchannelApplication','keys','VIRTUAL','show','error','includeAll','offset','include','lodash','end','catch','filters','findOne','sort','merge','map','Content-Range'];(function(_0x50d1a4,_0x4885c2){const _0xa0b550=function(_0x10cc62){while(--_0x10cc62){_0x50d1a4['push'](_0x50d1a4['shift']());}};_0xa0b550(++_0x4885c2);}(a571_0xa0b5,0x151));const a571_0x10cc=function(_0x50d1a4,_0x4885c2){_0x50d1a4=_0x50d1a4-0xb8;let _0xa0b550=a571_0xa0b5[_0x50d1a4];return _0xa0b550;};const a571_0x26602c=a571_0x10cc;'use strict';const _=require(a571_0x26602c(0xc3)),qs=require('../../components/parsers/qs'),logger=require('../../config/logger')('api'),{db}=require(a571_0x26602c(0xd7)),{Op}=require(a571_0x26602c(0xe2));function respondWithResult(_0x3fc874,_0x3503c5){return _0x3503c5=_0x3503c5||0xc8,function(_0x41c616){const _0x34be34=a571_0x10cc;if(_0x41c616)return _0x3fc874[_0x34be34(0xe3)](_0x3503c5)[_0x34be34(0xda)](_0x41c616);};}function respondWithFilteredResult(_0x44fc3a,_0x32953b){return function(_0x3fc8e){const _0x4e7812=a571_0x10cc;if(_0x3fc8e){const _0x371787=_0x3fc8e['count'],_0x45575a=_0x32953b[_0x4e7812(0xc1)];let _0xaf4580=_0x32953b['offset']+_0x32953b[_0x4e7812(0xcf)],_0xd213fe;return _0xaf4580>=_0x371787?(_0xaf4580=_0x371787,_0xd213fe=0xc8):_0xd213fe=0xce,_0x44fc3a['status'](_0xd213fe),_0x44fc3a[_0x4e7812(0xe6)](_0x4e7812(0xcb),_0x45575a+'-'+_0xaf4580+'/'+_0x371787)['json'](_0x3fc8e);}return null;};}function saveUpdates(_0x3f741c){return function(_0x29db84){const _0x41d021=a571_0x10cc;if(_0x29db84)return _0x29db84[_0x41d021(0xe4)](_0x3f741c)['then'](function(_0x48ea43){return _0x48ea43;});return null;};}function removeEntity(_0x253ce9){return function(_0x314b07){const _0x497742=a571_0x10cc;if(_0x314b07)return _0x314b07['destroy']()[_0x497742(0xd3)](function(){const _0x2482d8=_0x497742;_0x253ce9[_0x2482d8(0xe3)](0xcc)[_0x2482d8(0xc4)]();});};}function handleEntityNotFound(_0x2c36d1){return function(_0x2d3265){const _0x368f6d=a571_0x10cc;return!_0x2d3265&&_0x2c36d1[_0x368f6d(0xe1)](0x194),_0x2d3265;};}function handleError(_0x288a34,_0x1ae584){return _0x1ae584=_0x1ae584||0x1f4,function(_0x2e252b){const _0x55e70a=a571_0x10cc;logger[_0x55e70a(0xbf)](_0x2e252b[_0x55e70a(0xe9)]),_0x2e252b[_0x55e70a(0xd4)]&&delete _0x2e252b[_0x55e70a(0xd4)],_0x288a34[_0x55e70a(0xe3)](_0x1ae584)[_0x55e70a(0xcd)](_0x2e252b);};}exports[a571_0x26602c(0xd5)]=function(_0x3bfe6a,_0x23a8fe){const _0x41fe16=a571_0x26602c;let _0x52be99={};const _0x3c3c53={},_0x5b705d={'count':0x0,'rows':[]},_0x45fd6c=_['map'](db[_0x41fe16(0xbb)][_0x41fe16(0xde)],function(_0x635898){const _0x434da7=_0x41fe16;return{'name':_0x635898[_0x434da7(0xd8)],'type':_0x635898[_0x434da7(0xe5)]['key']};});_0x3c3c53['model']=_[_0x41fe16(0xca)](_0x45fd6c,_0x41fe16(0xd4)),_0x3c3c53[_0x41fe16(0xcc)]=_['keys'](_0x3bfe6a[_0x41fe16(0xcc)]),_0x3c3c53[_0x41fe16(0xc6)]=_[_0x41fe16(0xd1)](_0x3c3c53[_0x41fe16(0xb9)],_0x3c3c53[_0x41fe16(0xcc)]),_0x52be99['attributes']=_[_0x41fe16(0xd1)](_0x3c3c53[_0x41fe16(0xb9)],qs[_0x41fe16(0xdc)](_0x3bfe6a['query'][_0x41fe16(0xdc)])),_0x52be99[_0x41fe16(0xb8)]=_0x52be99['attributes']['length']?_0x52be99[_0x41fe16(0xb8)]:_0x3c3c53[_0x41fe16(0xb9)];typeof _0x3bfe6a['query'][_0x41fe16(0xea)]==='undefined'&&(_0x52be99['limit']=qs[_0x41fe16(0xcf)](_0x3bfe6a[_0x41fe16(0xcc)][_0x41fe16(0xcf)]),_0x52be99['offset']=qs['offset'](_0x3bfe6a['query'][_0x41fe16(0xc1)]));_0x52be99[_0x41fe16(0xba)]=qs[_0x41fe16(0xc8)](_0x3bfe6a[_0x41fe16(0xcc)][_0x41fe16(0xc8)]),_0x52be99[_0x41fe16(0xe8)]=qs['filters'](_[_0x41fe16(0xe7)](_0x3bfe6a[_0x41fe16(0xcc)],_0x3c3c53[_0x41fe16(0xc6)]),_0x45fd6c);_0x3bfe6a[_0x41fe16(0xcc)][_0x41fe16(0xd0)]&&(_0x52be99[_0x41fe16(0xe8)]=_[_0x41fe16(0xc9)](_0x52be99[_0x41fe16(0xe8)],{[Op['or']]:_[_0x41fe16(0xca)](_0x45fd6c,function(_0x3b7216){const _0xd948e2=_0x41fe16;if(_0x3b7216[_0xd948e2(0xe5)]!==_0xd948e2(0xbd)){const _0x51a2d0={};return _0x51a2d0[_0x3b7216['name']]={[Op[_0xd948e2(0xe0)]]:'%'+_0x3bfe6a[_0xd948e2(0xcc)][_0xd948e2(0xd0)]+'%'},_0x51a2d0;}})}));_0x52be99=_[_0x41fe16(0xc9)]({},_0x52be99,_0x3bfe6a[_0x41fe16(0xce)]);const _0xf25449={'where':_0x52be99['where']};return db[_0x41fe16(0xbb)][_0x41fe16(0xd9)](_0xf25449)['then'](function(_0x1f41c0){const _0x408948=_0x41fe16;return _0x5b705d[_0x408948(0xd9)]=_0x1f41c0,_0x3bfe6a[_0x408948(0xcc)][_0x408948(0xc0)]&&(_0x52be99[_0x408948(0xc2)]=[{'all':!![]}]),db[_0x408948(0xbb)][_0x408948(0xdf)](_0x52be99);})[_0x41fe16(0xd3)](function(_0x1b94f5){return _0x5b705d['rows']=_0x1b94f5,_0x5b705d;})['then'](respondWithFilteredResult(_0x23a8fe,_0x52be99))['catch'](handleError(_0x23a8fe,null));},exports[a571_0x26602c(0xbe)]=function(_0x17a8ff,_0xbf1c63){const _0x3f5259=a571_0x26602c;let _0x329fb4={'raw':!![],'where':{'id':_0x17a8ff[_0x3f5259(0xd6)]['id']}};const _0xd950a1={};return _0xd950a1[_0x3f5259(0xb9)]=_[_0x3f5259(0xbc)](db[_0x3f5259(0xbb)]['rawAttributes']),_0xd950a1['query']=_[_0x3f5259(0xbc)](_0x17a8ff['query']),_0xd950a1[_0x3f5259(0xc6)]=_['intersection'](_0xd950a1['model'],_0xd950a1[_0x3f5259(0xcc)]),_0x329fb4[_0x3f5259(0xb8)]=_[_0x3f5259(0xd1)](_0xd950a1[_0x3f5259(0xb9)],qs['fields'](_0x17a8ff[_0x3f5259(0xcc)][_0x3f5259(0xdc)])),_0x329fb4['attributes']=_0x329fb4[_0x3f5259(0xb8)][_0x3f5259(0xdd)]?_0x329fb4[_0x3f5259(0xb8)]:_0xd950a1[_0x3f5259(0xb9)],_0x17a8ff[_0x3f5259(0xcc)][_0x3f5259(0xc0)]&&(_0x329fb4[_0x3f5259(0xc2)]=[{'all':!![]}]),_0x329fb4=_[_0x3f5259(0xc9)]({},_0x329fb4,_0x17a8ff['options']),db[_0x3f5259(0xbb)][_0x3f5259(0xc7)](_0x329fb4)[_0x3f5259(0xd3)](handleEntityNotFound(_0xbf1c63,null))[_0x3f5259(0xd3)](respondWithResult(_0xbf1c63,null))[_0x3f5259(0xc5)](handleError(_0xbf1c63,null));},exports[a571_0x26602c(0xd2)]=function(_0x3d9e0c,_0x214b15){const _0x4e2a08=a571_0x26602c;return db[_0x4e2a08(0xbb)][_0x4e2a08(0xd2)](_0x3d9e0c[_0x4e2a08(0xdb)],{})[_0x4e2a08(0xd3)](respondWithResult(_0x214b15,0xc9))[_0x4e2a08(0xc5)](handleError(_0x214b15,null));},exports[a571_0x26602c(0xe4)]=function(_0x3e73fb,_0x344292){const _0x2dfc89=a571_0x26602c;return _0x3e73fb[_0x2dfc89(0xdb)]['id']&&delete _0x3e73fb['body']['id'],db[_0x2dfc89(0xbb)]['findOne']({'where':{'id':_0x3e73fb['params']['id']}})['then'](handleEntityNotFound(_0x344292,null))['then'](saveUpdates(_0x3e73fb[_0x2dfc89(0xdb)],null))[_0x2dfc89(0xd3)](respondWithResult(_0x344292,null))[_0x2dfc89(0xc5)](handleError(_0x344292,null));},exports['destroy']=function(_0x18bb64,_0x247ed4){const _0x314fd4=a571_0x26602c;return db['OpenchannelApplication'][_0x314fd4(0xc7)]({'where':{'id':_0x18bb64[_0x314fd4(0xd6)]['id']}})[_0x314fd4(0xd3)](handleEntityNotFound(_0x247ed4,null))[_0x314fd4(0xd3)](removeEntity(_0x247ed4,null))['catch'](handleError(_0x247ed4,null));}; \ No newline at end of file diff --git a/server/api/openchannelApplication/openchannelApplication.model.js b/server/api/openchannelApplication/openchannelApplication.model.js index 8cd1ea1..1c9dfd7 100644 --- a/server/api/openchannelApplication/openchannelApplication.model.js +++ b/server/api/openchannelApplication/openchannelApplication.model.js @@ -1 +1 @@ -const a476_0x5e8b=['./openchannelApplication.attributes','utf8mb4','utf8mb4_unicode_ci','define'];(function(_0xf4f46b,_0x5e8b73){const _0x1d7cd3=function(_0x1499ff){while(--_0x1499ff){_0xf4f46b['push'](_0xf4f46b['shift']());}};_0x1d7cd3(++_0x5e8b73);}(a476_0x5e8b,0x1ad));const a476_0x1d7c=function(_0xf4f46b,_0x5e8b73){_0xf4f46b=_0xf4f46b-0x0;let _0x1d7cd3=a476_0x5e8b[_0xf4f46b];return _0x1d7cd3;};const _0x4a0284=a476_0x1d7c;'use strict';const attributes=require(_0x4a0284('0x3'));module['exports']=function(_0x1499ff){const _0x15b758=_0x4a0284,_0x5400fb=_0x1499ff[_0x15b758('0x2')]('OpenchannelApplication',attributes,{'tableName':'openchannel_applications','paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x15b758('0x0'),'collate':_0x15b758('0x1')});return _0x5400fb;}; \ No newline at end of file +const a572_0x589c=['./openchannelApplication.attributes','init','function','exports'];(function(_0x388d2e,_0x4c5bcc){const _0x589c42=function(_0xaaeaa6){while(--_0xaaeaa6){_0x388d2e['push'](_0x388d2e['shift']());}};_0x589c42(++_0x4c5bcc);}(a572_0x589c,0x1da));const a572_0xaaea=function(_0x388d2e,_0x4c5bcc){_0x388d2e=_0x388d2e-0x1ce;let _0x589c42=a572_0x589c[_0x388d2e];return _0x589c42;};const a572_0x1fc1e0=a572_0xaaea;'use strict';const {Model}=require('sequelize'),{attributes}=require(a572_0x1fc1e0(0x1d0)),{options}=require('./openchannelApplication.options');class OpenchannelApplication extends Model{}function init(_0x56b5ba,_0x4b146f){const _0x2c0981=a572_0x1fc1e0,_0x232eb3=options(_0x56b5ba),_0x399a49=typeof _0x4b146f===_0x2c0981(0x1ce)?_0x4b146f(_0x232eb3):_0x232eb3;return OpenchannelApplication[_0x2c0981(0x1d1)](attributes,_0x399a49),OpenchannelApplication;}module[a572_0x1fc1e0(0x1cf)]['OpenchannelApplication']=OpenchannelApplication,module['exports'][a572_0x1fc1e0(0x1d1)]=init; \ No newline at end of file diff --git a/server/api/openchannelApplication/openchannelApplication.options.js b/server/api/openchannelApplication/openchannelApplication.options.js new file mode 100644 index 0000000..6ade6a6 --- /dev/null +++ b/server/api/openchannelApplication/openchannelApplication.options.js @@ -0,0 +1 @@ +var a573_0x2511=['exports','openchannel_applications','options','utf8mb4_unicode_ci'];(function(_0x5b9b27,_0x4f3e7a){var _0x251173=function(_0x18ca89){while(--_0x18ca89){_0x5b9b27['push'](_0x5b9b27['shift']());}};_0x251173(++_0x4f3e7a);}(a573_0x2511,0x14b));var a573_0x18ca=function(_0x5b9b27,_0x4f3e7a){_0x5b9b27=_0x5b9b27-0x1e9;var _0x251173=a573_0x2511[_0x5b9b27];return _0x251173;};var a573_0x336008=a573_0x18ca;function options(_0x496bc1){var _0x4a3aae=a573_0x18ca;return{'sequelize':_0x496bc1,'tableName':_0x4a3aae(0x1eb),'paranoid':![],'indexes':[],'timestamps':!![],'charset':'utf8mb4','collate':_0x4a3aae(0x1e9)};}module[a573_0x336008(0x1ea)][a573_0x336008(0x1ec)]=options; \ No newline at end of file diff --git a/server/api/openchannelApplication/openchannelApplication.rpc.js b/server/api/openchannelApplication/openchannelApplication.rpc.js index 14bb2fa..bd8633d 100644 --- a/server/api/openchannelApplication/openchannelApplication.rpc.js +++ b/server/api/openchannelApplication/openchannelApplication.rpc.js @@ -1 +1 @@ -const a477_0x1b27=['UpdateOpenchannelApplication','then','rpc','info','attributes','message','error','OpenchannelApplication','options','catch','update'];(function(_0x2d37dc,_0x1b2706){const _0x1e47ad=function(_0x10a6b1){while(--_0x10a6b1){_0x2d37dc['push'](_0x2d37dc['shift']());}};_0x1e47ad(++_0x1b2706);}(a477_0x1b27,0x1bc));const a477_0x1e47=function(_0x2d37dc,_0x1b2706){_0x2d37dc=_0x2d37dc-0x0;let _0x1e47ad=a477_0x1b27[_0x2d37dc];return _0x1e47ad;};const _0x1cc568=a477_0x1e47;'use strict';const db=require('../../mysqldb')['db'],logger=require('../../config/logger')(_0x1cc568('0x9'));exports[_0x1cc568('0x7')]=function(_0x10a6b1){const _0x5e3fa1=this;return new Promise(function(_0x117234,_0xed93e9){const _0x1def1a=a477_0x1e47;return db[_0x1def1a('0x3')][_0x1def1a('0x6')](_0x10a6b1['body'],{'raw':_0x10a6b1[_0x1def1a('0x4')]?_0x10a6b1['options']['raw']===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x10a6b1[_0x1def1a('0x4')]?_0x10a6b1[_0x1def1a('0x4')]['where']||null:null,'attributes':_0x10a6b1[_0x1def1a('0x4')]?_0x10a6b1[_0x1def1a('0x4')][_0x1def1a('0x0')]||null:null,'limit':_0x10a6b1['options']?_0x10a6b1[_0x1def1a('0x4')]['limit']||null:null})[_0x1def1a('0x8')](function(_0x14174e){const _0x2b4c55=_0x1def1a;logger[_0x2b4c55('0xa')](_0x2b4c55('0x7'),_0x10a6b1),logger['debug'](_0x2b4c55('0x7'),_0x10a6b1,JSON['stringify'](_0x14174e)),_0x117234(_0x14174e);})[_0x1def1a('0x5')](function(_0x27d44c){const _0x356771=_0x1def1a;logger[_0x356771('0x2')](_0x356771('0x7'),_0x27d44c[_0x356771('0x1')],_0x10a6b1),_0xed93e9(_0x5e3fa1[_0x356771('0x2')](0x1f4,_0x27d44c[_0x356771('0x1')]));});});}; \ No newline at end of file +const a574_0x51fb=['where','error','update','debug','attributes','info','limit','UpdateOpenchannelApplication','../../config/logger','options','then','message','../../mysqldb','catch','OpenchannelApplication'];(function(_0x494d98,_0x4e96fc){const _0x51fbe3=function(_0x5a8e55){while(--_0x5a8e55){_0x494d98['push'](_0x494d98['shift']());}};_0x51fbe3(++_0x4e96fc);}(a574_0x51fb,0x93));const a574_0x5a8e=function(_0x494d98,_0x4e96fc){_0x494d98=_0x494d98-0x1d1;let _0x51fbe3=a574_0x51fb[_0x494d98];return _0x51fbe3;};const a574_0x6f14fd=a574_0x5a8e;'use strict';const db=require(a574_0x6f14fd(0x1d1))['db'],logger=require(a574_0x6f14fd(0x1dc))('rpc');exports['UpdateOpenchannelApplication']=function(_0x542f37){const _0x38ead1=this;return new Promise(function(_0x3ce048,_0x58faa4){const _0xb89c44=a574_0x5a8e;return db[_0xb89c44(0x1d3)][_0xb89c44(0x1d6)](_0x542f37['body'],{'raw':_0x542f37[_0xb89c44(0x1dd)]?_0x542f37['options']['raw']===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x542f37['options']?_0x542f37[_0xb89c44(0x1dd)][_0xb89c44(0x1d4)]||null:null,'attributes':_0x542f37[_0xb89c44(0x1dd)]?_0x542f37['options'][_0xb89c44(0x1d8)]||null:null,'limit':_0x542f37[_0xb89c44(0x1dd)]?_0x542f37[_0xb89c44(0x1dd)][_0xb89c44(0x1da)]||null:null})[_0xb89c44(0x1de)](function(_0xd0383b){const _0x3b0458=_0xb89c44;logger[_0x3b0458(0x1d9)](_0x3b0458(0x1db),_0x542f37),logger[_0x3b0458(0x1d7)](_0x3b0458(0x1db),_0x542f37,JSON['stringify'](_0xd0383b)),_0x3ce048(_0xd0383b);})[_0xb89c44(0x1d2)](function(_0x5a6331){const _0x3a8e0c=_0xb89c44;logger[_0x3a8e0c(0x1d5)](_0x3a8e0c(0x1db),_0x5a6331['message'],_0x542f37),_0x58faa4(_0x38ead1[_0x3a8e0c(0x1d5)](0x1f4,_0x5a6331[_0x3a8e0c(0x1df)]));});});}; \ No newline at end of file diff --git a/server/api/openchannelInteraction/index.js b/server/api/openchannelInteraction/index.js index ef99f6d..56f3eb3 100644 --- a/server/api/openchannelInteraction/index.js +++ b/server/api/openchannelInteraction/index.js @@ -1 +1 @@ -const a478_0x2ca2=['exports','../../components/interaction/service','delete','/:id/messages','update','openchannelinteraction:addtags','download','../../components/auth/service','openchannel','put','isAuthenticated','show','/describe','get','describe','./openchannelInteraction.controller','openchannelinteraction:destroy','destroy','addMessage','tracked','create','addTags','post','/:id/tags','/:id','removeTags'];(function(_0x13e199,_0x2ca277){const _0x305004=function(_0x4c7dde){while(--_0x4c7dde){_0x13e199['push'](_0x13e199['shift']());}};_0x305004(++_0x2ca277);}(a478_0x2ca2,0x102));const a478_0x3050=function(_0x13e199,_0x2ca277){_0x13e199=_0x13e199-0x0;let _0x305004=a478_0x2ca2[_0x13e199];return _0x305004;};const _0x3e39c5=a478_0x3050;'use strict';const express=require('express'),router=express['Router'](),auth=require(_0x3e39c5('0x9')),interaction=require(_0x3e39c5('0x3')),controller=require(_0x3e39c5('0x11'));router['get']('/',auth[_0x3e39c5('0xc')](),controller['index']),router[_0x3e39c5('0xf')](_0x3e39c5('0xe'),auth[_0x3e39c5('0xc')](),controller[_0x3e39c5('0x10')]),router['get'](_0x3e39c5('0x0'),auth['isAuthenticated'](),controller[_0x3e39c5('0xd')]),router[_0x3e39c5('0xf')](_0x3e39c5('0x5'),auth['isAuthenticated'](),controller['getMessages']),router[_0x3e39c5('0xf')]('/:id/download',auth[_0x3e39c5('0xc')](),controller[_0x3e39c5('0x8')]),router[_0x3e39c5('0x18')]('/',auth[_0x3e39c5('0xc')](),controller[_0x3e39c5('0x16')]),router[_0x3e39c5('0x18')](_0x3e39c5('0x5'),auth[_0x3e39c5('0xc')](),controller[_0x3e39c5('0x14')]),router[_0x3e39c5('0x18')](_0x3e39c5('0x19'),auth['isAuthenticated'](),interaction[_0x3e39c5('0x15')](_0x3e39c5('0xa'),_0x3e39c5('0x7')),controller[_0x3e39c5('0x17')]),router[_0x3e39c5('0xb')]('/:id',auth[_0x3e39c5('0xc')](),interaction[_0x3e39c5('0x15')](_0x3e39c5('0xa'),'openchannelinteraction:update'),controller[_0x3e39c5('0x6')]),router[_0x3e39c5('0x4')](_0x3e39c5('0x0'),auth[_0x3e39c5('0xc')](),interaction[_0x3e39c5('0x15')](_0x3e39c5('0xa'),_0x3e39c5('0x12')),controller[_0x3e39c5('0x13')]),router[_0x3e39c5('0x4')](_0x3e39c5('0x19'),auth[_0x3e39c5('0xc')](),controller[_0x3e39c5('0x1')]),module[_0x3e39c5('0x2')]=router; \ No newline at end of file +const a575_0x3946=['download','get','openchannel','/:id/download','index','/:id','/:id/tags','put','delete','Router','./openchannelInteraction.controller','tracked','/:id/messages','addTags','post','express','isAuthenticated','removeTags','show','../../components/auth/service','getMessages','/describe','destroy','exports','addMessage'];(function(_0xa4315d,_0x58939d){const _0x39467e=function(_0x34c579){while(--_0x34c579){_0xa4315d['push'](_0xa4315d['shift']());}};_0x39467e(++_0x58939d);}(a575_0x3946,0x1c5));const a575_0x34c5=function(_0xa4315d,_0x58939d){_0xa4315d=_0xa4315d-0x1d8;let _0x39467e=a575_0x3946[_0xa4315d];return _0x39467e;};const a575_0x771064=a575_0x34c5;'use strict';const express=require(a575_0x771064(0x1e4)),router=express[a575_0x771064(0x1de)](),auth=require(a575_0x771064(0x1e8)),interaction=require('../../components/interaction/service'),controller=require(a575_0x771064(0x1df));router['get']('/',auth['isAuthenticated'](),controller[a575_0x771064(0x1d9)]),router[a575_0x771064(0x1ef)](a575_0x771064(0x1ea),auth['isAuthenticated'](),controller['describe']),router['get'](a575_0x771064(0x1da),auth['isAuthenticated'](),controller[a575_0x771064(0x1e7)]),router[a575_0x771064(0x1ef)](a575_0x771064(0x1e1),auth['isAuthenticated'](),controller[a575_0x771064(0x1e9)]),router[a575_0x771064(0x1ef)](a575_0x771064(0x1d8),auth['isAuthenticated'](),controller[a575_0x771064(0x1ee)]),router[a575_0x771064(0x1e3)]('/',auth['isAuthenticated'](),controller['create']),router[a575_0x771064(0x1e3)](a575_0x771064(0x1e1),auth[a575_0x771064(0x1e5)](),controller[a575_0x771064(0x1ed)]),router[a575_0x771064(0x1e3)](a575_0x771064(0x1db),auth[a575_0x771064(0x1e5)](),interaction[a575_0x771064(0x1e0)](a575_0x771064(0x1f0),'openchannelinteraction:addtags'),controller[a575_0x771064(0x1e2)]),router[a575_0x771064(0x1dc)](a575_0x771064(0x1da),auth[a575_0x771064(0x1e5)](),interaction['tracked']('openchannel','openchannelinteraction:update'),controller['update']),router['delete'](a575_0x771064(0x1da),auth[a575_0x771064(0x1e5)](),interaction[a575_0x771064(0x1e0)](a575_0x771064(0x1f0),'openchannelinteraction:destroy'),controller[a575_0x771064(0x1eb)]),router[a575_0x771064(0x1dd)](a575_0x771064(0x1db),auth[a575_0x771064(0x1e5)](),controller[a575_0x771064(0x1e6)]),module[a575_0x771064(0x1ec)]=router; \ No newline at end of file diff --git a/server/api/openchannelInteraction/openchannelInteraction.attributes.js b/server/api/openchannelInteraction/openchannelInteraction.attributes.js index c6b28c9..9d10d16 100644 --- a/server/api/openchannelInteraction/openchannelInteraction.attributes.js +++ b/server/api/openchannelInteraction/openchannelInteraction.attributes.js @@ -1 +1 @@ -const a479_0x1327=['STRING','ENUM','sequelize','out','exports','DATE','BOOLEAN'];(function(_0x2cf4ab,_0x13271f){const _0x4d73cf=function(_0x29b97e){while(--_0x29b97e){_0x2cf4ab['push'](_0x2cf4ab['shift']());}};_0x4d73cf(++_0x13271f);}(a479_0x1327,0x158));const a479_0x4d73=function(_0x2cf4ab,_0x13271f){_0x2cf4ab=_0x2cf4ab-0x0;let _0x4d73cf=a479_0x1327[_0x2cf4ab];return _0x4d73cf;};const _0x3c3bf5=a479_0x4d73;'use strict';const Sequelize=require(_0x3c3bf5('0x1'));module[_0x3c3bf5('0x3')]={'closed':{'type':Sequelize[_0x3c3bf5('0x5')],'defaultValue':![]},'closedAt':{'type':Sequelize[_0x3c3bf5('0x4')]},'disposition':{'type':Sequelize[_0x3c3bf5('0x6')]},'secondDisposition':{'type':Sequelize[_0x3c3bf5('0x6')]},'thirdDisposition':{'type':Sequelize['STRING']},'note':{'type':Sequelize['STRING']},'read1stAt':{'type':Sequelize['DATE']},'threadId':{'type':Sequelize[_0x3c3bf5('0x6')]},'externalUrl':{'type':Sequelize['STRING']},'lastMsgAt':{'type':Sequelize[_0x3c3bf5('0x4')]},'lastMsgDirection':{'type':Sequelize[_0x3c3bf5('0x0')]('in',_0x3c3bf5('0x2')),'defaultValue':'in','allowNull':![]},'from':{'type':Sequelize['STRING']}}; \ No newline at end of file +const a576_0x527b=['ENUM','exports','attributes','sequelize','STRING','out','DATE','BOOLEAN'];(function(_0x2867ec,_0x576dad){const _0x527b9b=function(_0xc33114){while(--_0xc33114){_0x2867ec['push'](_0x2867ec['shift']());}};_0x527b9b(++_0x576dad);}(a576_0x527b,0x68));const a576_0xc331=function(_0x2867ec,_0x576dad){_0x2867ec=_0x2867ec-0x155;let _0x527b9b=a576_0x527b[_0x2867ec];return _0x527b9b;};const a576_0x3af629=a576_0xc331;'use strict';const {DataTypes}=require(a576_0x3af629(0x158)),attributes={'closed':{'type':DataTypes[a576_0x3af629(0x15c)],'defaultValue':![]},'closedAt':{'type':DataTypes[a576_0x3af629(0x15b)]},'disposition':{'type':DataTypes[a576_0x3af629(0x159)]},'secondDisposition':{'type':DataTypes[a576_0x3af629(0x159)]},'thirdDisposition':{'type':DataTypes[a576_0x3af629(0x159)]},'note':{'type':DataTypes['STRING']},'read1stAt':{'type':DataTypes[a576_0x3af629(0x15b)]},'threadId':{'type':DataTypes[a576_0x3af629(0x159)]},'externalUrl':{'type':DataTypes['STRING']},'lastMsgAt':{'type':DataTypes[a576_0x3af629(0x15b)]},'lastMsgDirection':{'type':DataTypes[a576_0x3af629(0x155)]('in',a576_0x3af629(0x15a)),'defaultValue':'in','allowNull':![]},'from':{'type':DataTypes['STRING']}};module[a576_0x3af629(0x156)][a576_0x3af629(0x157)]=attributes; \ No newline at end of file diff --git a/server/api/openchannelInteraction/openchannelInteraction.controller.js b/server/api/openchannelInteraction/openchannelInteraction.controller.js index a1613e8..9380f6c 100644 --- a/server/api/openchannelInteraction/openchannelInteraction.controller.js +++ b/server/api/openchannelInteraction/openchannelInteraction.controller.js @@ -1 +1 @@ -const a480_0x79e3=['merge','from','transcript-%d-%s.zip','emit','start','ids','Contact','GROUP_CONCAT(DISTINCT\x20t.id)','root','QueryTypes','type','c.email','User','direction','../../rediscache','YYYY-MM-DD','Contact.lastName','findAll','MATCH\x20(c.firstName,\x20c.lastName,\x20c.phone,\x20c.mobile,\x20c.fax,\x20c.email)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','u.fullname','Openchannel','params','color','stack','`\x20=\x200','read','isNumeric','u.id\x20=\x20ui.UserId','resolve','ContactId','conditions','addMessage','views','Owner.fullname','disposition','\x20=\x20?','../../components/parsers/advancedSearch','basename','union','register','Account','.pdf','order','OpenchannelAccountId','OpenchannelAccount','toString','files','SUM(me.read\x20=\x200\x20AND\x20me.direction\x20=\x20\x27in\x27)','expr','model','c.phone','rimraf','SELECT','i.id\x20LIKE\x20?','Tag','createWriteStream','t.id\x20=\x20it.TagId','left_join','format','buildExpression','log','me.OpenchannelInteractionId\x20=\x20i.id','clone','join','threadId','a.id\x20=\x20i.OpenchannelAccountId','MATCH\x20(me.body)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','openchannel_interactions','System','TagIds','Account.key','concat','fullname','then','$gte','createdAt','lodash','user','i.OpenchannelAccountId\x20IS\x20NOT\x20NULL','OpenchannelMessage','keyBy','i.OpenchannelAccountId\x20IS\x20NULL','replace','openchannelInteractionTags:save','Private','map','status','length','filters','undefined','Contact.phone','Contact.firstName','end','Account.mandatoryDisposition','push','c.lastName','i.createdAt\x20BETWEEN\x20?\x20AND\x20?','body','cm_contacts','CONCAT_WS(\x27\x20\x27,\x20o.name,\x20o.fullname)\x20LIKE\x20?','sequelize','options','null','keys','include','create','pick','sqlOperator','having','show','firstName','journey','group','Owner','closed','Tags','attachments','getOpenchannelAccounts','DESC','offset','filter','o.internal','name','i.OpenchannelAccountId\x20IN\x20?','count','Contact.mobile','pipe','error','query','select','40px','openchannel_accounts','sendStatus','limit','forEach','UserId','a.key','parseSearch','$substring','getMessages','describe','destroy','unreadMessages','search','server','find','json','where','Contact.fax','split','gte','i.from\x20LIKE\x20?','lastName','YYYY-MM-DD\x20HH:mm:ss','sort','OpenchannelInteractionId','t.id\x20IN\x20?','30px','fields','download','isArray','o.id\x20=\x20i.UserId','o.fullname','moment','util','CmContact','rows','downloadInteraction.html','`unreadMessages`\x20=\x200','groupBy','field','ui.OpenchannelInteractionId','\x0a\x20\x20\x20\x20\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','parse','attributes','rawAttributes','nolimit','../../config/environment','isEmpty','update','secret','like','getFullTextValue','OpenchannelInteraction','../../components/parsers/qs','closedAt','removeTags','user_has_openchannel_interactions','10px','tag','text','path','api','intersection','users','`\x20>\x200','findOne','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\x0a\x20\x20\x20\x20\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','transcript-','Messages','addTags','ejs','Attachment','a.mandatoryDisposition','all','catch','value','c.firstName','some','CONCAT(\x27,\x27,\x20`TagIds`,\x20\x27,\x27)\x20LIKE\x20?','html-pdf','operator'];(function(_0x52a484,_0x79e3e7){const _0x991b41=function(_0x472edf){while(--_0x472edf){_0x52a484['push'](_0x52a484['shift']());}};_0x991b41(++_0x79e3e7);}(a480_0x79e3,0x74));const a480_0x991b=function(_0x52a484,_0x79e3e7){_0x52a484=_0x52a484-0x0;let _0x991b41=a480_0x79e3[_0x52a484];return _0x991b41;};const _0x2db336=a480_0x991b;'use strict';const pdf=require(_0x2db336('0x5f')),rimraf=require(_0x2db336('0x94')),zipdir=require('zip-dir'),moment=require(_0x2db336('0x2f')),util=require(_0x2db336('0x30')),path=require(_0x2db336('0x4b')),ejs=require(_0x2db336('0x56')),fs=require('fs'),_=require(_0x2db336('0xad')),squel=require(_0x2db336('0x51')),{getSocket}=require(_0x2db336('0x6f')),socket=getSocket(),qs=require(_0x2db336('0x44')),as=require(_0x2db336('0x85')),logger=require('../../config/logger')(_0x2db336('0x4c')),config=require(_0x2db336('0x3d')),db=require('../../mysqldb')['db'],{Op}=require(_0x2db336('0xc5'));require('./openchannelInteraction.socket')[_0x2db336('0x88')](socket);function respondWithStatusCode(_0x472edf,_0x1645a1){return _0x1645a1=_0x1645a1||0xcc,function(_0x3b1a29){const _0x3a19d7=a480_0x991b;if(_0x3b1a29)return _0x472edf[_0x3a19d7('0x10')](_0x1645a1);return _0x472edf[_0x3a19d7('0xb7')](_0x1645a1)['end']();};}function respondWithResult(_0x22ac4b,_0x40bfdc){return _0x40bfdc=_0x40bfdc||0xc8,function(_0x47ad66){if(_0x47ad66)return _0x22ac4b['status'](_0x40bfdc)['json'](_0x47ad66);};}function respondWithFilteredResult(_0x268471,_0x433b1e){return function(_0x95377e){const _0x5470fe=a480_0x991b;if(_0x95377e){const _0x4771b5=_0x95377e[_0x5470fe('0x8')],_0x3cc6e0=_0x433b1e[_0x5470fe('0x3')];let _0x1e8b21=_0x433b1e[_0x5470fe('0x3')]+_0x433b1e[_0x5470fe('0x11')],_0x32852c;return _0x1e8b21>=_0x4771b5?(_0x1e8b21=_0x4771b5,_0x32852c=0xc8):_0x32852c=0xce,_0x268471[_0x5470fe('0xb7')](_0x32852c),_0x268471['set']('Content-Range',_0x3cc6e0+'-'+_0x1e8b21+'/'+_0x4771b5)[_0x5470fe('0x1e')](_0x95377e);}return null;};}function saveUpdates(_0xd3be0e){return function(_0xedde11){const _0x10efd4=a480_0x991b;if(_0xedde11)return _0xedde11[_0x10efd4('0x3f')](_0xd3be0e)['then'](function(_0x385dfd){return _0x385dfd;});return null;};}function removeEntity(_0xe06878){return function(_0x17d193){if(_0x17d193)return _0x17d193['destroy']()['then'](function(){const _0xfee19e=a480_0x991b;_0xe06878[_0xfee19e('0xb7')](0xcc)[_0xfee19e('0xbd')]();});};}function handleEntityNotFound(_0x5f21ab){return function(_0x15a9a4){const _0xae376c=a480_0x991b;return!_0x15a9a4&&_0x5f21ab[_0xae376c('0x10')](0x194),_0x15a9a4;};}function handleError(_0x449d58,_0x3c4faf){return _0x3c4faf=_0x3c4faf||0x1f4,function(_0x65b49e){const _0x343824=a480_0x991b;logger[_0x343824('0xb')](_0x65b49e[_0x343824('0x78')]),_0x65b49e['name']&&delete _0x65b49e[_0x343824('0x6')],_0x449d58['status'](_0x3c4faf)['send'](_0x65b49e);};}function getInteractionUsers(_0x423298,_0x24f4b4){return new Promise(function(_0x58d008,_0x2c48df){try{_0x24f4b4[_0x423298['id']]&&(_0x423298['Users']=_['map'](_0x24f4b4[_0x423298['id']],function(_0x3d6db0){const _0x16e5b7=a480_0x991b;return{'id':_0x3d6db0['id'],'fullname':_0x3d6db0[_0x16e5b7('0xa9')]};}));}catch(_0x217803){_0x2c48df(_0x217803);}_0x58d008(_0x423298);});}function getInteractionTags(_0x18c422,_0x29b881){return new Promise(function(_0x37a66e,_0xb9797d){const _0x45f7d6=a480_0x991b;try{_0x18c422['TagIds']&&(_0x18c422[_0x45f7d6('0xd4')]=[],_0x18c422[_0x45f7d6('0xa6')][_0x45f7d6('0x21')](',')[_0x45f7d6('0x12')](function(_0x34c145){const _0x5eaea5=_0x45f7d6;_0x18c422[_0x5eaea5('0xd4')][_0x5eaea5('0xbf')](_0x29b881[_0x34c145]);})),delete _0x18c422[_0x45f7d6('0xa6')];}catch(_0x226180){_0xb9797d(_0x226180);}_0x37a66e(_0x18c422);});}function updateOpenchannelInteraction(_0x35a585,_0x4d58fc,_0x24a9b5){return new Promise(function(_0x9c4134,_0x1ddda4){const _0x40904b=a480_0x991b;return getInteractionUsers(_0x35a585,_0x24a9b5)[_0x40904b('0xaa')](function(_0xdf2ab8){return getInteractionTags(_0xdf2ab8,_0x4d58fc);})[_0x40904b('0xaa')](function(_0x2cfc76){_0x9c4134(_0x2cfc76);})[_0x40904b('0x5a')](function(_0x2385ab){_0x1ddda4(_0x2385ab);});});}exports['index']=function(_0x27e25f,_0x463671){const _0xd50d38=_0x2db336,_0x4b1c11={},_0xe0e65={},_0x1df3ec={'count':0x0,'rows':[]},_0x192247=_[_0xd50d38('0xb6')](db[_0xd50d38('0x43')][_0xd50d38('0x3b')],function(_0x1b636e){const _0x2b5988=_0xd50d38;return{'name':_0x1b636e['fieldName'],'type':_0x1b636e[_0x2b5988('0x6b')]['key']};});_0xe0e65[_0xd50d38('0x92')]=_['map'](_0x192247,_0xd50d38('0x6')),_0xe0e65[_0xd50d38('0xc')]=_['keys'](_0x27e25f['query']),_0xe0e65[_0xd50d38('0xb9')]=_[_0xd50d38('0x4d')](_0xe0e65[_0xd50d38('0x92')],_0xe0e65[_0xd50d38('0xc')]),_0x4b1c11[_0xd50d38('0x3a')]=_['intersection'](_0xe0e65[_0xd50d38('0x92')],qs[_0xd50d38('0x2a')](_0x27e25f['query']['fields'])),_0x4b1c11['attributes']=_0x4b1c11['attributes'][_0xd50d38('0xb8')]?_0x4b1c11[_0xd50d38('0x3a')]:_0xe0e65[_0xd50d38('0x92')];typeof _0x27e25f['query'][_0xd50d38('0x3c')]==='undefined'&&(_0x4b1c11[_0xd50d38('0x11')]=qs[_0xd50d38('0x11')](_0x27e25f['query']['limit']),_0x4b1c11[_0xd50d38('0x3')]=qs[_0xd50d38('0x3')](_0x27e25f['query'][_0xd50d38('0x3')]));_0x4b1c11[_0xd50d38('0x8b')]=qs['sort'](_0x27e25f[_0xd50d38('0xc')][_0xd50d38('0x26')]),_0x4b1c11[_0xd50d38('0x1f')]=qs['filters'](_[_0xd50d38('0xcb')](_0x27e25f[_0xd50d38('0xc')],_0xe0e65[_0xd50d38('0xb9')]),_0x192247);let _0x5b0bf8=[];const _0x1718d5=squel[_0xd50d38('0xd')]()['field']('id')[_0xd50d38('0x36')]('name')[_0xd50d38('0x36')]('color')['from']('tools_tags'),_0x30c1ef=squel[_0xd50d38('0xd')]()[_0xd50d38('0x36')]('u.id')[_0xd50d38('0x36')](_0xd50d38('0x74'))[_0xd50d38('0x36')](_0xd50d38('0x37'))[_0xd50d38('0x62')](_0xd50d38('0x47'),'ui')[_0xd50d38('0x9a')]('users','u',_0xd50d38('0x7c')),_0x5bba7b=squel[_0xd50d38('0xd')]()['from'](_0xd50d38('0xa4'),'i')[_0xd50d38('0x9a')](_0xd50d38('0xc3'),'c','c.id\x20=\x20i.ContactId\x20AND\x20c.deletedAt\x20IS\x20NULL')['left_join'](_0xd50d38('0x4e'),'o',_0xd50d38('0x2d'))[_0xd50d38('0x9a')](_0xd50d38('0xf'),'a',_0xd50d38('0xa2'))[_0xd50d38('0x9a')]('openchannel_messages','me',_0xd50d38('0x9e'))['left_join']('openchannel_interaction_has_tags','it','it.OpenchannelInteractionId\x20=\x20i.id')[_0xd50d38('0x9a')]('tools_tags','t',_0xd50d38('0x99')),_0x4030fc=squel[_0xd50d38('0x91')]();let _0x10023f=[];const _0x526446=squel['expr']();let _0x5865f4;if(_0x27e25f[_0xd50d38('0xc')][_0xd50d38('0x1b')]){_0x5865f4=as[_0xd50d38('0x15')](_0x27e25f[_0xd50d38('0xc')][_0xd50d38('0x1b')]);const _0x555fb7=_0x5865f4[_0xd50d38('0xcc')];for(let _0x4d0a28=0x0;_0x4d0a28<_0x5865f4[_0xd50d38('0x7f')][_0xd50d38('0xb8')];_0x4d0a28++){const _0x159338=_0x5865f4[_0xd50d38('0x7f')][_0x4d0a28],_0x57900d='i';let _0x19edfa,_0x28592b=_[_0xd50d38('0x1d')](_0x192247,['name',_0x159338[_0xd50d38('0x36')]]);if(!_0x28592b)switch(_0x159338['field']){case'unreadMessages':_0x159338['value']==0x1?_0x5bba7b[_0xd50d38('0xcd')]('`'+_0x159338[_0xd50d38('0x36')]+_0xd50d38('0x79')):_0x5bba7b[_0xd50d38('0xcd')]('`'+_0x159338['field']+_0xd50d38('0x4f'));break;case'Contact':if(_0x159338[_0xd50d38('0x60')]===_0xd50d38('0x16')){if(_0x159338['value']['split']('\x20')[_0xd50d38('0xb8')]>0x1)_0x4030fc[_0x555fb7](_0xd50d38('0x73'),qs['getFullTextValue'](_0x159338['value']),null);else{const _0x21b833='%'+_0x159338[_0xd50d38('0x5b')]+'%';_0x4030fc[_0x555fb7]('c.firstName\x20LIKE\x20?\x20OR\x20c.lastName\x20LIKE\x20?\x20OR\x20c.email\x20LIKE\x20?',_0x21b833,_0x21b833,_0x21b833);}}else _0x28592b=_[_0xd50d38('0x1d')](_0x192247,[_0xd50d38('0x6'),_0xd50d38('0x7e')]),_0x159338[_0xd50d38('0x36')]=_0xd50d38('0x7e'),_0x19edfa=as[_0xd50d38('0x9c')](_0x57900d,_0x28592b[_0xd50d38('0x6b')],_0x159338),_0x4030fc[_0x555fb7](_0x19edfa[_0xd50d38('0x4a')],_0x19edfa[_0xd50d38('0x5b')][_0xd50d38('0x65')],_0x19edfa[_0xd50d38('0x5b')][_0xd50d38('0xbd')]);break;case'Tag':{const _0x5caac9=_0x159338[_0xd50d38('0x5b')][_0xd50d38('0x21')](',')[_0xd50d38('0xb6')](function(_0x28ce40){return Number(_0x28ce40);});_0x5caac9[_0xd50d38('0x12')](function(_0x11271c){const _0x5ac68c=_0xd50d38;_0x526446['or'](_0x5ac68c('0x5e'),'%,'+_0x11271c+',%');}),_0x10023f=_[_0xd50d38('0x87')](_0x10023f,_0x5caac9);}break;case _0xd50d38('0x6d'):_0x159338[_0xd50d38('0x60')]===_0xd50d38('0x16')?_0x4030fc[_0x555fb7](_0xd50d38('0xc4'),'%'+_0x159338[_0xd50d38('0x5b')]+'%',null):(_0x28592b=_[_0xd50d38('0x1d')](_0x192247,[_0xd50d38('0x6'),'UserId']),_0x159338['field']=_0xd50d38('0x13'),_0x19edfa=as[_0xd50d38('0x9c')](_0x57900d,_0x28592b[_0xd50d38('0x6b')],_0x159338),_0x4030fc[_0x555fb7](_0x19edfa[_0xd50d38('0x4a')],_0x19edfa['value'][_0xd50d38('0x65')],_0x19edfa[_0xd50d38('0x5b')][_0xd50d38('0xbd')]));break;case'body':_0x19edfa=as['buildExpression']('me',null,_0x159338),_0x4030fc[_0x555fb7](_0x19edfa[_0xd50d38('0x4a')],_0x19edfa['value'][_0xd50d38('0x65')],_0x19edfa[_0xd50d38('0x5b')][_0xd50d38('0xbd')]);break;}else _0x19edfa=as['buildExpression'](_0x57900d,_0x28592b[_0xd50d38('0x6b')],_0x159338),_0x4030fc[_0x555fb7](_0x19edfa[_0xd50d38('0x4a')],_0x19edfa[_0xd50d38('0x5b')][_0xd50d38('0x65')],_0x19edfa[_0xd50d38('0x5b')][_0xd50d38('0xbd')]);}}else{const _0x5b5bc0=_(_0x27e25f['query'])[_0xd50d38('0xc8')]()['map'](function(_0x1ea075){const _0x49e53f=_0xd50d38;return _[_0x49e53f('0x5d')](_0x192247,['name',_0x1ea075])?_0x1ea075:undefined;})['compact']()['value']();!_[_0xd50d38('0x3e')](_0x5b5bc0)&&_0x5b5bc0[_0xd50d38('0x12')](function(_0x1c7a66){const _0x2cf569=_0xd50d38;if(_0x1c7a66==='OpenchannelAccountId')_0x5bba7b[_0x2cf569('0x1f')](_0x2cf569('0x7'),[][_0x2cf569('0xa8')](_0x27e25f[_0x2cf569('0xc')][_0x1c7a66]));else{if(_0x1c7a66==='createdAt'){const _0x5d514f=JSON[_0x2cf569('0x39')](_0x27e25f['query'][_0x1c7a66])[_0x2cf569('0xab')],_0x44e2fb=JSON['parse'](_0x27e25f[_0x2cf569('0xc')][_0x1c7a66])['$lte'];_0x5bba7b['where'](_0x2cf569('0xc1'),_0x5d514f,_0x44e2fb);}else _0x27e25f[_0x2cf569('0xc')][_0x1c7a66]===_0x2cf569('0xc7')?_0x5bba7b['where']('i.'+_0x1c7a66+'\x20IS\x20NULL'):_0x5bba7b[_0x2cf569('0x1f')]('i.'+_0x1c7a66+_0x2cf569('0x84'),_0x27e25f[_0x2cf569('0xc')][_0x1c7a66]);}});_0x27e25f[_0xd50d38('0xc')][_0xd50d38('0x7a')]&&(_0x27e25f[_0xd50d38('0xc')][_0xd50d38('0x7a')]==0x1?_0x5bba7b[_0xd50d38('0xcd')](_0xd50d38('0x34')):_0x5bba7b[_0xd50d38('0xcd')]('`unreadMessages`\x20>\x200'));_0x27e25f[_0xd50d38('0xc')][_0xd50d38('0x49')]&&(_0x10023f=_[_0xd50d38('0x2c')](_0x27e25f[_0xd50d38('0xc')][_0xd50d38('0x49')])?_0x27e25f[_0xd50d38('0xc')]['tag']:new Array(_0x27e25f[_0xd50d38('0xc')]['tag']),_0x10023f['forEach'](function(_0x2ae3f7){_0x526446['or']('CONCAT(\x27,\x27,\x20`TagIds`,\x20\x27,\x27)\x20LIKE\x20?','%,'+_0x2ae3f7+',%');}));if(_0x27e25f[_0xd50d38('0xc')][_0xd50d38('0x4')]){const _0x3ce394=_0x27e25f[_0xd50d38('0xc')][_0xd50d38('0x4')][_0xd50d38('0xb3')]('\x5c','\x5c\x5c')['replace'](/'/g,'\x27\x27');qs[_0xd50d38('0x7b')](_0x3ce394)?_0x4030fc['or'](_0xd50d38('0x96'),_0x3ce394+'%'):_0x4030fc['or'](_0xd50d38('0xa3'),qs[_0xd50d38('0x42')](_0x3ce394))['or'](_0xd50d38('0x23'),_0x3ce394+'%')['or']('CONCAT(c.firstName,\x20\x27\x20\x27,\x20c.lastName)\x20LIKE\x20?',_0x3ce394+'%');}}_0x5bba7b[_0xd50d38('0x1f')](_0x4030fc),_0x5bba7b[_0xd50d38('0xd1')]('i.id');let _0x2b0204={'type':db['Sequelize'][_0xd50d38('0x6a')][_0xd50d38('0x95')],'raw':!![]};const _0xa75df6=_0x5bba7b[_0xd50d38('0x9f')]();_0xa75df6[_0xd50d38('0x36')]('i.id'),_0xa75df6['field'](_0xd50d38('0x90'),_0xd50d38('0x1a')),_0x4b1c11[_0xd50d38('0x8b')]&&_0x4b1c11['order'][_0xd50d38('0x12')](function(_0x1d5fd2){const _0x3c1f7f=_0xd50d38;_0x5bba7b[_0x3c1f7f('0x8b')]('i.'+_0x1d5fd2[0x0],_0x1d5fd2[0x1]===_0x3c1f7f('0x2')?![]:!![]);}),!_['isEmpty'](_0x10023f)&&(_0x5bba7b['having'](_0x526446),_0xa75df6[_0xd50d38('0x1f')](_0xd50d38('0x28'),_0x10023f)),Promise[_0xd50d38('0x7d')]()['then'](function(){const _0x4f5690=_0xd50d38;if(!_0x5865f4){if(_0x27e25f[_0x4f5690('0xc')][_0x4f5690('0x8c')]||_0x27e25f[_0x4f5690('0xc')][_0x4f5690('0xd0')])return;_0xa75df6[_0x4f5690('0x1f')](_0x4f5690('0xaf')),_0x5bba7b[_0x4f5690('0x1f')](_0x4f5690('0xaf'));return;}return _0x27e25f[_0x4f5690('0xae')][_0x4f5690('0x1')]({'attributes':['id'],'raw':!![]})[_0x4f5690('0xaa')](function(_0x4bfbed){const _0x25511d=_0x4f5690;_[_0x25511d('0x3e')](_0x4bfbed)?(_0xa75df6[_0x25511d('0x1f')]('i.OpenchannelAccountId\x20IS\x20NULL'),_0x5bba7b['where'](_0x25511d('0xb2'))):(_0xa75df6['where'](_0x25511d('0x7'),_[_0x25511d('0xb6')](_0x4bfbed,'id')),_0x5bba7b['where'](_0x25511d('0x7'),_[_0x25511d('0xb6')](_0x4bfbed,'id')));});})[_0xd50d38('0xaa')](function(){const _0x14451b=_0xd50d38;db[_0x14451b('0xc5')][_0x14451b('0xc')](_0xa75df6[_0x14451b('0x8e')](),_0x2b0204)[_0x14451b('0xaa')](function(_0x423a3d){const _0x55e8be=_0x14451b;_0x1df3ec['count']=_0x423a3d['length'];if(_0x1df3ec[_0x55e8be('0x8')]===0x0)return[];return db[_0x55e8be('0xc5')][_0x55e8be('0xc')](_0x1718d5['toString'](),_0x2b0204)[_0x55e8be('0xaa')](function(_0x150a87){const _0x28532c=_0x55e8be;_0x5b0bf8=_[_0x28532c('0xb1')](_0x150a87,'id'),_0x2b0204=_[_0x28532c('0x61')](_0x2b0204,{'model':db[_0x28532c('0x43')],'mapToModel':!![],'raw':!![],'nest':!![]});_0x27e25f[_0x28532c('0xc')]['fields']?_0x4b1c11['attributes'][_0x28532c('0x12')](function(_0x83cb06){const _0x2de75d=_0x28532c;_0x5bba7b[_0x2de75d('0x36')]('i.'+_0x83cb06);}):(_0x5bba7b[_0x28532c('0x36')]('SUM(me.read\x20=\x200\x20AND\x20me.direction\x20=\x20\x27in\x27)',_0x28532c('0x1a')),_0x5bba7b[_0x28532c('0x36')](_0x28532c('0x14'),_0x28532c('0xa7')),_0x5bba7b[_0x28532c('0x36')](_0x28532c('0x58'),_0x28532c('0xbe')),_0x5bba7b[_0x28532c('0x36')]('i.*'),_0x5bba7b['field'](_0x28532c('0x5c'),_0x28532c('0xbc')),_0x5bba7b[_0x28532c('0x36')](_0x28532c('0xc0'),_0x28532c('0x71')),_0x5bba7b[_0x28532c('0x36')](_0x28532c('0x6c'),'Contact.email'),_0x5bba7b[_0x28532c('0x36')](_0x28532c('0x93'),_0x28532c('0xbb')),_0x5bba7b[_0x28532c('0x36')]('c.mobile',_0x28532c('0x9')),_0x5bba7b['field']('c.fax',_0x28532c('0x20')),_0x5bba7b[_0x28532c('0x36')](_0x28532c('0x2e'),_0x28532c('0x82')),_0x5bba7b[_0x28532c('0x36')](_0x28532c('0x5'),'Owner.internal'),_0x5bba7b[_0x28532c('0x36')](_0x28532c('0x68'),_0x28532c('0xa6')));if(_0x4b1c11[_0x28532c('0x11')])_0x5bba7b['limit'](_0x4b1c11[_0x28532c('0x11')]);if(_0x4b1c11[_0x28532c('0x3')])_0x5bba7b[_0x28532c('0x3')](_0x4b1c11['offset']);return db[_0x28532c('0xc5')][_0x28532c('0xc')](_0x5bba7b[_0x28532c('0x8e')](),_0x2b0204);})[_0x55e8be('0xaa')](function(_0x51839a){const _0x552986=_0x55e8be;return _0x30c1ef[_0x552986('0x1f')]('ui.OpenchannelInteractionId\x20IN\x20?',_['map'](_0x51839a,'id')),db['sequelize'][_0x552986('0xc')](_0x30c1ef[_0x552986('0x8e')](),_0x2b0204)[_0x552986('0xaa')](function(_0x3ffa27){const _0xfeca3c=_0x552986,_0x52261a=_[_0xfeca3c('0x35')](_0x3ffa27,_0xfeca3c('0x27')),_0x220d60=[];return _0x51839a[_0xfeca3c('0x12')](function(_0x2e94ce){const _0x5429de=_0xfeca3c;_0x220d60[_0x5429de('0xbf')](updateOpenchannelInteraction(_0x2e94ce,_0x5b0bf8,_0x52261a));}),Promise[_0xfeca3c('0x59')](_0x220d60);});});})[_0x14451b('0xaa')](function(_0x31e61a){const _0xc2eb41=_0x14451b;return _0x1df3ec[_0xc2eb41('0x32')]=_0x31e61a,_0x1df3ec;})[_0x14451b('0xaa')](respondWithFilteredResult(_0x463671,_0x4b1c11));})['catch'](handleError(_0x463671,null));},exports[_0x2db336('0xce')]=function(_0xe7b2b3,_0x50287a){const _0xcb76d2=_0x2db336,_0x4fd61f={};_0xe7b2b3[_0xcb76d2('0xc')][_0xcb76d2('0x6b')]&&_0xe7b2b3['query'][_0xcb76d2('0x6b')]===_0xcb76d2('0x62')?_0x4fd61f[_0xcb76d2('0x62')]=_0xe7b2b3['params']['id']:_0x4fd61f['id']=_0xe7b2b3[_0xcb76d2('0x76')]['id'];let _0x254e68={'raw':![],'where':_0x4fd61f};const _0x3b5e15={};return _0x3b5e15[_0xcb76d2('0x92')]=_[_0xcb76d2('0xc8')](db[_0xcb76d2('0x43')][_0xcb76d2('0x3b')]),_0x3b5e15[_0xcb76d2('0xc')]=_[_0xcb76d2('0xc8')](_0xe7b2b3['query']),_0x3b5e15['filters']=_[_0xcb76d2('0x4d')](_0x3b5e15[_0xcb76d2('0x92')],_0x3b5e15[_0xcb76d2('0xc')]),_0x254e68[_0xcb76d2('0x3a')]=_['intersection'](_0x3b5e15['model'],qs[_0xcb76d2('0x2a')](_0xe7b2b3['query']['fields'])),_0x254e68[_0xcb76d2('0x3a')]=_0x254e68[_0xcb76d2('0x3a')][_0xcb76d2('0xb8')]?_0x254e68['attributes']:_0x3b5e15[_0xcb76d2('0x92')],_0xe7b2b3[_0xcb76d2('0xc')]['includeAll']&&(_0x254e68[_0xcb76d2('0xc9')]=[{'all':!![]}]),_0x254e68=_['merge']({},_0x254e68,_0xe7b2b3[_0xcb76d2('0xc6')]),db[_0xcb76d2('0x43')][_0xcb76d2('0x50')](_0x254e68)[_0xcb76d2('0xaa')](handleEntityNotFound(_0x50287a,null))['then'](respondWithResult(_0x50287a,null))[_0xcb76d2('0x5a')](handleError(_0x50287a,null));},exports['create']=function(_0x5aeb88,_0x1396a4){const _0x2dd38f=_0x2db336;return db[_0x2dd38f('0x43')][_0x2dd38f('0xca')](_0x5aeb88[_0x2dd38f('0xc2')],{})[_0x2dd38f('0xaa')](respondWithResult(_0x1396a4,0xc9))[_0x2dd38f('0x5a')](handleError(_0x1396a4,null));},exports['update']=function(_0x304105,_0x16d270){const _0x133ad6=_0x2db336;return _0x304105[_0x133ad6('0xc2')]['id']&&delete _0x304105[_0x133ad6('0xc2')]['id'],db[_0x133ad6('0x43')][_0x133ad6('0x50')]({'where':{'id':_0x304105['params']['id']}})[_0x133ad6('0xaa')](handleEntityNotFound(_0x16d270,null))[_0x133ad6('0xaa')](saveUpdates(_0x304105[_0x133ad6('0xc2')],null))[_0x133ad6('0xaa')](respondWithResult(_0x16d270,null))[_0x133ad6('0x5a')](handleError(_0x16d270,null));},exports[_0x2db336('0x19')]=function(_0x31f1ec,_0x4e5b25){const _0x4ccd0a=_0x2db336;return db[_0x4ccd0a('0x43')][_0x4ccd0a('0x50')]({'where':{'id':_0x31f1ec['params']['id']}})[_0x4ccd0a('0xaa')](handleEntityNotFound(_0x4e5b25,null))[_0x4ccd0a('0xaa')](removeEntity(_0x4e5b25,null))[_0x4ccd0a('0x5a')](handleError(_0x4e5b25,null));},exports[_0x2db336('0x18')]=function(_0x34fdb5,_0x40b8de){const _0x4eb30e=_0x2db336;return db[_0x4eb30e('0x43')][_0x4eb30e('0x18')]()['then'](respondWithResult(_0x40b8de,null))[_0x4eb30e('0x5a')](handleError(_0x40b8de,null));},exports[_0x2db336('0x80')]=function(_0xa9bdd4,_0x304027){const _0x49a84e=_0x2db336;return db[_0x49a84e('0xb0')][_0x49a84e('0x50')]({'where':{'id':_0xa9bdd4[_0x49a84e('0x76')]['id']}})[_0x49a84e('0xaa')](function(_0x1006ec){const _0x1ad198=_0x49a84e;if(_0x1006ec)return _0x1006ec[_0x1ad198('0x80')](_0xa9bdd4['body']['ids'],{'through':_['omit'](_0xa9bdd4[_0x1ad198('0xc2')],[_0x1ad198('0x66'),'id'])});})[_0x49a84e('0xaa')](respondWithResult(_0x304027,null))['catch'](handleError(_0x304027,null));},exports[_0x2db336('0x17')]=function(_0x1c3795,_0x2a82f7){const _0x3b04ff=_0x2db336;let _0x14bf20={'raw':![],'where':{}};const _0x323786={},_0x368766={'count':0x0,'rows':[]};return db['OpenchannelInteraction'][_0x3b04ff('0x50')]({'where':{'id':_0x1c3795[_0x3b04ff('0x76')]['id']}})[_0x3b04ff('0xaa')](handleEntityNotFound(_0x2a82f7,null))[_0x3b04ff('0xaa')](function(_0x3086c3){const _0x34675e=_0x3b04ff;if(_0x3086c3){_0x323786[_0x34675e('0x92')]=_[_0x34675e('0xc8')](db[_0x34675e('0xb0')][_0x34675e('0x3b')]),_0x323786[_0x34675e('0xc')]=_[_0x34675e('0xc8')](_0x1c3795[_0x34675e('0xc')]),_0x323786[_0x34675e('0xb9')]=_[_0x34675e('0x4d')](_0x323786[_0x34675e('0x92')],_0x323786[_0x34675e('0xc')]),_0x14bf20['attributes']=_[_0x34675e('0x4d')](_0x323786[_0x34675e('0x92')],qs[_0x34675e('0x2a')](_0x1c3795[_0x34675e('0xc')][_0x34675e('0x2a')])),_0x14bf20[_0x34675e('0x3a')]=_0x14bf20[_0x34675e('0x3a')]['length']?_0x14bf20[_0x34675e('0x3a')]:_0x323786['model'];typeof _0x1c3795[_0x34675e('0xc')][_0x34675e('0x3c')]===_0x34675e('0xba')&&(_0x14bf20[_0x34675e('0x11')]=qs['limit'](_0x1c3795[_0x34675e('0xc')][_0x34675e('0x11')]),_0x14bf20[_0x34675e('0x3')]=qs['offset'](_0x1c3795[_0x34675e('0xc')][_0x34675e('0x3')]));_0x14bf20['order']=qs['sort'](_0x1c3795[_0x34675e('0xc')][_0x34675e('0x26')]),_0x14bf20[_0x34675e('0x1f')]=qs[_0x34675e('0xb9')](_[_0x34675e('0xcb')](_0x1c3795[_0x34675e('0xc')],_0x323786['filters'])),_0x14bf20[_0x34675e('0x1f')]['OpenchannelInteractionId']=_0x3086c3['id'];_0x1c3795[_0x34675e('0xc')]['filter']&&(_0x14bf20[_0x34675e('0x1f')]=_[_0x34675e('0x61')](_0x14bf20[_0x34675e('0x1f')],{[Op['or']]:_['map'](_0x14bf20[_0x34675e('0x3a')],function(_0x4f3010){const _0x2424a4=_0x34675e,_0x32b32c={};return _0x32b32c[_0x4f3010]={[Op[_0x2424a4('0x41')]]:'%'+_0x1c3795['query']['filter']+'%'},_0x32b32c;})}));if(_0x1c3795[_0x34675e('0xc')][_0x34675e('0xab')]){const _0x569569=_0x1c3795[_0x34675e('0xc')][_0x34675e('0xab')][_0x34675e('0x21')](','),_0x475209={};_0x475209[_0x569569[0x0]]={[Op[_0x34675e('0x22')]]:moment(_0x569569[0x1])['format']('YYYY-MM-DD\x20HH:mm:ss')},_0x14bf20['where']=_[_0x34675e('0x61')](_0x14bf20[_0x34675e('0x1f')],_0x475209);}return _0x14bf20=_[_0x34675e('0x61')]({},_0x14bf20,_0x1c3795[_0x34675e('0xc6')]),db[_0x34675e('0xb0')][_0x34675e('0x8')]({'where':_0x14bf20[_0x34675e('0x1f')]})[_0x34675e('0xaa')](function(_0x1bb275){const _0x919703=_0x34675e;return _0x368766[_0x919703('0x8')]=_0x1bb275,_0x1c3795[_0x919703('0xc')]['includeAll']&&(_0x14bf20[_0x919703('0xc9')]=[{'all':!![]}]),db[_0x919703('0xb0')][_0x919703('0x72')](_0x14bf20);})[_0x34675e('0xaa')](function(_0x22b666){const _0xe2a6b5=_0x34675e;return _0x368766[_0xe2a6b5('0x32')]=_0x22b666,_0x368766;});}})[_0x3b04ff('0xaa')](respondWithFilteredResult(_0x2a82f7,_0x14bf20))[_0x3b04ff('0x5a')](handleError(_0x2a82f7,null));},exports[_0x2db336('0x55')]=function(_0x3b14d0,_0x2a1d47){const _0x14631d=_0x2db336;return db[_0x14631d('0x43')][_0x14631d('0x50')]({'where':{'id':_0x3b14d0[_0x14631d('0x76')]['id']}})[_0x14631d('0xaa')](function(_0x3de59e){const _0x1e6469=_0x14631d;if(_0x3de59e)return _0x3de59e['setTags'](_0x3b14d0[_0x1e6469('0xc2')][_0x1e6469('0x66')],{'through':_['omit'](_0x3b14d0['body'],[_0x1e6469('0x66'),'id'])})[_0x1e6469('0xaa')](function(){const _0x525a33=_0x1e6469;return db[_0x525a33('0x97')][_0x525a33('0x72')]({'attributes':['id',_0x525a33('0x6'),_0x525a33('0x77')],'where':{'id':_0x3b14d0[_0x525a33('0xc2')]['ids']}});})[_0x1e6469('0xaa')](function(_0x48dab6){const _0x5065b3=_0x1e6469;return socket[_0x5065b3('0x64')](_0x5065b3('0xb4'),{'id':Number(_0x3b14d0[_0x5065b3('0x76')]['id']),'tags':_0x48dab6||[]}),{'id':Number(_0x3b14d0[_0x5065b3('0x76')]['id']),'tags':_0x48dab6||[]};});})[_0x14631d('0xaa')](respondWithResult(_0x2a1d47,null))[_0x14631d('0x5a')](handleError(_0x2a1d47,null));},exports[_0x2db336('0x46')]=function(_0x50e81e,_0x2e602d){const _0x262c3d=_0x2db336;return db[_0x262c3d('0x43')]['findOne']({'where':{'id':_0x50e81e[_0x262c3d('0x76')]['id']}})[_0x262c3d('0xaa')](handleEntityNotFound(_0x2e602d,null))['then'](function(_0x526178){const _0x2a6bff=_0x262c3d;if(_0x526178)return _0x526178['removeTags'](_0x50e81e['query'][_0x2a6bff('0x66')]);})[_0x262c3d('0xaa')](respondWithStatusCode(_0x2e602d,null))[_0x262c3d('0x5a')](handleError(_0x2e602d,null));},exports[_0x2db336('0x2b')]=function(_0x3edbc6,_0x485dc6){const _0x5a3dcc=_0x2db336,_0x30b65a=moment()['unix']()['toString'](),_0x4faf07=path['join'](config[_0x5a3dcc('0x69')],_0x5a3dcc('0x8f'),'tmp'),_0x112a47=path[_0x5a3dcc('0xa0')](config[_0x5a3dcc('0x69')],_0x5a3dcc('0x1c'),_0x5a3dcc('0x8f'),_0x5a3dcc('0x0')),_0xda8edc=path['join'](_0x4faf07,_0x30b65a),_0x415399=util[_0x5a3dcc('0x9b')](_0x5a3dcc('0x63'),_0x3edbc6[_0x5a3dcc('0x76')]['id'],_0x30b65a),_0x38f67e=path['join'](_0x4faf07,_0x415399),_0x39c7b8=[];_0x39c7b8['push']({'model':db[_0x5a3dcc('0x6d')],'as':_0x5a3dcc('0x6d'),'attributes':['id',_0x5a3dcc('0xa9')],'raw':!![]}),_0x39c7b8[_0x5a3dcc('0xbf')]({'model':db[_0x5a3dcc('0x31')],'as':_0x5a3dcc('0x67'),'attributes':['id',_0x5a3dcc('0xcf'),_0x5a3dcc('0x24')],'raw':!![]});_0x3edbc6['query'][_0x5a3dcc('0x0')]&&_0x39c7b8[_0x5a3dcc('0xbf')]({'model':db[_0x5a3dcc('0x57')],'as':_0x5a3dcc('0x57'),'raw':!![]});const _0x46e121=[{'model':db['OpenchannelMessage'],'as':_0x5a3dcc('0x54'),'attributes':['id','body',_0x5a3dcc('0xac'),_0x5a3dcc('0x6e'),_0x5a3dcc('0x40'),'read'],'include':_0x39c7b8}];return _0x46e121[_0x5a3dcc('0xbf')]({'model':db[_0x5a3dcc('0x8d')],'as':'Account','attributes':['id',_0x5a3dcc('0x6')]}),_0x46e121['push']({'model':db[_0x5a3dcc('0x6d')],'as':_0x5a3dcc('0xd2'),'attributes':['id','fullname']}),db['OpenchannelInteraction'][_0x5a3dcc('0x50')]({'where':{'id':_0x3edbc6['params']['id']},'include':_0x46e121})[_0x5a3dcc('0xaa')](handleEntityNotFound(_0x485dc6,null))[_0x5a3dcc('0xaa')](function(_0x542ba2){const _0x425e62=_0x5a3dcc;if(_0x542ba2){const _0x2900b2=_0x542ba2['get']({'plain':!![]});fs['mkdirSync'](_0xda8edc);const _0x568003={'format':'A4','border':_0x425e62('0x48'),'header':{'height':_0x425e62('0xe'),'contents':{'first':_0x425e62('0x38')}},'footer':{'height':_0x425e62('0x29'),'contents':{'default':util[_0x425e62('0x9b')](_0x425e62('0x52'),util[_0x425e62('0x9b')]('%s\x20#%d',_0x425e62('0x75'),_0x2900b2['id']),moment()['format'](_0x425e62('0x70'))['toString']())}}},_0x8ac143={'channel':_0x425e62('0x75'),'account':_0x2900b2[_0x425e62('0x89')][_0x425e62('0x6')],'agent':_0x2900b2[_0x425e62('0xd2')]?_0x2900b2[_0x425e62('0xd2')][_0x425e62('0xa9')]:'N.A.','createdAt':moment(_0x2900b2['createdAt'])[_0x425e62('0x9b')](_0x425e62('0x25'))[_0x425e62('0x8e')](),'closedAt':_0x2900b2[_0x425e62('0xd3')]?moment(_0x2900b2[_0x425e62('0x45')])['format'](_0x425e62('0x25'))[_0x425e62('0x8e')]():'','disposition':_0x2900b2[_0x425e62('0x83')],'visibility':_0x2900b2[_0x425e62('0xa1')]?'Public':_0x425e62('0xb5'),'messages':_(_0x2900b2[_0x425e62('0x54')])[_0x425e62('0x4')]({'secret':![]})[_0x425e62('0xb6')](function(_0x3e7a71){const _0x3a89e8=_0x425e62;if(_0x3e7a71[_0x3a89e8('0x57')]){const _0x2d96ba=path[_0x3a89e8('0xa0')](_0x112a47,_0x3e7a71[_0x3a89e8('0x57')][_0x3a89e8('0x86')]);fs['existsSync'](_0x2d96ba)&&fs['createReadStream'](_0x2d96ba)[_0x3a89e8('0xa')](fs[_0x3a89e8('0x98')](path[_0x3a89e8('0xa0')](_0xda8edc,_0x3e7a71[_0x3a89e8('0x57')][_0x3a89e8('0x86')])));}return{'date':moment(_0x3e7a71[_0x3a89e8('0xac')])['format']('YYYY-MM-DD\x20HH:mm:ss')[_0x3a89e8('0x8e')](),'sender':_0x3e7a71[_0x3a89e8('0x6e')]==='out'?_0x3e7a71['User']?_0x3e7a71[_0x3a89e8('0x6d')][_0x3a89e8('0xa9')]:_0x3a89e8('0xa5'):_0x3e7a71[_0x3a89e8('0x67')][_0x3a89e8('0xcf')]+(_0x3e7a71[_0x3a89e8('0x67')][_0x3a89e8('0x24')]?'\x20'+_0x3e7a71[_0x3a89e8('0x67')][_0x3a89e8('0x24')]:''),'body':_0x3e7a71[_0x3a89e8('0x57')]?_0x3e7a71['Attachment'][_0x3a89e8('0x86')]:_0x3e7a71[_0x3a89e8('0xc2')],'direction':_0x3e7a71[_0x3a89e8('0x6e')]==='out'?'A':'C','secret':_0x3e7a71['secret'],'read':_0x3e7a71['read'],'attachment':_0x3e7a71['Attachment']};})['value']()};return ejs['renderFile'](path['join'](config['root'],_0x425e62('0x1c'),_0x425e62('0x81'),_0x425e62('0x33')),{'interaction':_0x8ac143})[_0x425e62('0xaa')](function(_0x34ca5b){return new Promise(function(_0x47fcba,_0x348fd1){const _0x42575b=a480_0x991b;pdf[_0x42575b('0xca')](_0x34ca5b,_0x568003)['toFile'](path[_0x42575b('0xa0')](_0xda8edc,_0x42575b('0x53')+_0x2900b2['id']+'-'+_0x30b65a+_0x42575b('0x8a')),function(_0x470fa8,_0x12da90){if(_0x470fa8)return _0x348fd1(_0x470fa8);_0x47fcba(_0x12da90);});});})[_0x425e62('0xaa')](function(){const _0x1d92df=_0x425e62;return new Promise(function(_0x5828c3,_0x4dc50f){zipdir(_0xda8edc,{'saveTo':_0x38f67e},function(_0x52542d,_0x585d11){if(_0x52542d)return _0x4dc50f(_0x52542d);return _0x5828c3(_0x585d11);});})['then'](function(){return new Promise(function(_0x2742b2,_0x26cc8d){rimraf(_0xda8edc,function(_0x1c5dbc){if(_0x1c5dbc)_0x26cc8d(_0x1c5dbc);return _0x2742b2();});});})[_0x1d92df('0xaa')](function(){const _0x2816b2=_0x1d92df;return _0x485dc6[_0x2816b2('0x2b')](_0x38f67e,_0x415399,function(_0x103cf2){const _0x1227f4=_0x2816b2;_0x103cf2?console[_0x1227f4('0x9d')]('err',_0x103cf2):fs['unlinkSync'](_0x38f67e);});});});}else return _0x485dc6[_0x425e62('0x10')](0xc8);})[_0x5a3dcc('0x5a')](handleError(_0x485dc6,null));}; \ No newline at end of file +const a577_0x5035=['cm_contacts','Tag','\x0a\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','sqlOperator','me.OpenchannelInteractionId\x20=\x20i.id','basename','intersection','all','downloadInteraction.html','zip-dir','parseSearch','transcript-','Account','openchannel_interaction_has_tags','fieldName','body','disposition','sequelize','a.key','ContactId','isEmpty','OpenchannelAccount','c.mobile','Users','like','out','createReadStream','c.phone','OpenchannelInteractionId','color','describe','forEach','model','rows','\x20IS\x20NULL','i.createdAt\x20BETWEEN\x20?\x20AND\x20?','openchannel_accounts','OpenchannelAccountId','i.id\x20LIKE\x20?','secret','query','toString','c.firstName\x20LIKE\x20?\x20OR\x20c.lastName\x20LIKE\x20?\x20OR\x20c.email\x20LIKE\x20?','compact','unix','moment','tmp','union','createdAt','i.from\x20LIKE\x20?','value','c.id\x20=\x20i.ContactId\x20AND\x20c.deletedAt\x20IS\x20NULL','transcript-%d-%s.zip','rawAttributes','register','openchannelInteractionTags:save','existsSync','YYYY-MM-DD\x20HH:mm:ss','c.firstName','err','getOpenchannelAccounts','Openchannel','removeTags','$lte','get','Tags','name','createWriteStream','search','i.OpenchannelAccountId\x20IS\x20NOT\x20NULL','map','server','count','System','threadId','../../components/parsers/advancedSearch','root','Attachment','firstName','c.email','ui.OpenchannelInteractionId\x20IN\x20?','merge','\x0a\x20\x20\x20\x20\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','read','it.OpenchannelInteractionId\x20=\x20i.id','addTags','DESC','CONCAT(\x27,\x27,\x20`TagIds`,\x20\x27,\x27)\x20LIKE\x20?','Account.mandatoryDisposition','replace','format','left_join','api','o.fullname','filter','lastName','i.id','findAll','../../components/parsers/qs','show','sendStatus','having','includeAll','length','closedAt','log','$gte','Contact','addMessage','Owner.internal','then','renderFile','o.id\x20=\x20i.UserId','from','%s\x20#%d','`unreadMessages`\x20=\x200','../../config/environment','YYYY-MM-DD','end','tag','filters','pipe','Owner','views','openchannel_messages','where','status','\x20=\x20?','User','t.id\x20=\x20it.TagId','undefined','unreadMessages','expr','o.internal','ejs','some','Contact.email','getFullTextValue','u.id\x20=\x20ui.UserId','start','html-pdf','CONCAT_WS(\x27\x20\x27,\x20o.name,\x20o.fullname)\x20LIKE\x20?','findOne','CmContact','.pdf','40px','rimraf','find','TagIds','pick','field','i.OpenchannelAccountId\x20IS\x20NULL','download','set','buildExpression','OpenchannelInteraction','destroy','groupBy','emit','tools_tags','unlinkSync','params','Public','Private','create','`\x20=\x200','getMessages','u.fullname','push','user','ids','UserId','closed','parse','GROUP_CONCAT(DISTINCT\x20t.id)','$substring','conditions','users','join','type','operator','select','error','files','i.OpenchannelAccountId\x20IN\x20?','index','i.*','toFile','openchannel_interactions','MATCH\x20(me.body)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','limit','isArray','fullname','sort','offset','fields','c.lastName','clone','text','json','attributes','./openchannelInteraction.socket','ui.OpenchannelInteractionId','Contact.firstName','null','Contact.mobile','u.id','keys','SUM(me.read\x20=\x200\x20AND\x20me.direction\x20=\x20\x27in\x27)','util','direction','include','Content-Range','order','OpenchannelMessage','split','MATCH\x20(c.firstName,\x20c.lastName,\x20c.phone,\x20c.mobile,\x20c.fax,\x20c.email)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','30px','catch','key','user_has_openchannel_interactions','../../mysqldb','stack','10px','a.mandatoryDisposition'];(function(_0x31269c,_0x26025f){const _0x50356c=function(_0x110df6){while(--_0x110df6){_0x31269c['push'](_0x31269c['shift']());}};_0x50356c(++_0x26025f);}(a577_0x5035,0xae));const a577_0x110d=function(_0x31269c,_0x26025f){_0x31269c=_0x31269c-0xba;let _0x50356c=a577_0x5035[_0x31269c];return _0x50356c;};const a577_0x131bd2=a577_0x110d;'use strict';const pdf=require(a577_0x131bd2(0x179)),rimraf=require(a577_0x131bd2(0x17f)),zipdir=require(a577_0x131bd2(0xf6)),moment=require(a577_0x131bd2(0x11a)),util=require(a577_0x131bd2(0xdd)),path=require('path'),ejs=require(a577_0x131bd2(0x173)),fs=require('fs'),_=require('lodash'),squel=require('squel'),{getSocket}=require('../../rediscache'),socket=getSocket(),qs=require(a577_0x131bd2(0x14f)),as=require(a577_0x131bd2(0x138)),logger=require('../../config/logger')(a577_0x131bd2(0x149)),config=require(a577_0x131bd2(0x161)),{db}=require(a577_0x131bd2(0xe9)),{Op,QueryTypes}=require('sequelize');require(a577_0x131bd2(0xd5))[a577_0x131bd2(0x123)](socket);function respondWithStatusCode(_0xa961a8,_0x519352){return _0x519352=_0x519352||0xcc,function(_0x3377a4){const _0x2a95f4=a577_0x110d;if(_0x3377a4)return _0xa961a8[_0x2a95f4(0x151)](_0x519352);return _0xa961a8[_0x2a95f4(0x16b)](_0x519352)[_0x2a95f4(0x163)]();};}function respondWithResult(_0x358271,_0xb68df3){return _0xb68df3=_0xb68df3||0xc8,function(_0x3ae7da){const _0x1505a2=a577_0x110d;if(_0x3ae7da)return _0x358271[_0x1505a2(0x16b)](_0xb68df3)[_0x1505a2(0xd3)](_0x3ae7da);};}function respondWithFilteredResult(_0x187939,_0x34c198){return function(_0x427252){const _0x38c204=a577_0x110d;if(_0x427252){const _0x27b620=_0x427252[_0x38c204(0x135)],_0x38fa4a=_0x34c198['offset'];let _0x1e55f7=_0x34c198['offset']+_0x34c198[_0x38c204(0xca)],_0xa1d5a2;return _0x1e55f7>=_0x27b620?(_0x1e55f7=_0x27b620,_0xa1d5a2=0xc8):_0xa1d5a2=0xce,_0x187939[_0x38c204(0x16b)](_0xa1d5a2),_0x187939[_0x38c204(0x186)](_0x38c204(0xe0),_0x38fa4a+'-'+_0x1e55f7+'/'+_0x27b620)[_0x38c204(0xd3)](_0x427252);}return null;};}function saveUpdates(_0x5583b){return function(_0x2b7aea){const _0x29cf93=a577_0x110d;if(_0x2b7aea)return _0x2b7aea['update'](_0x5583b)[_0x29cf93(0x15b)](function(_0x55e777){return _0x55e777;});return null;};}function removeEntity(_0x5c05e3){return function(_0xa5a023){const _0x54cae2=a577_0x110d;if(_0xa5a023)return _0xa5a023[_0x54cae2(0x189)]()[_0x54cae2(0x15b)](function(){const _0x5da03b=_0x54cae2;_0x5c05e3[_0x5da03b(0x16b)](0xcc)[_0x5da03b(0x163)]();});};}function handleEntityNotFound(_0x1cd18c){return function(_0x3236ac){const _0x17d424=a577_0x110d;return!_0x3236ac&&_0x1cd18c[_0x17d424(0x151)](0x194),_0x3236ac;};}function handleError(_0xbee708,_0x274a19){return _0x274a19=_0x274a19||0x1f4,function(_0x5adfa0){const _0x2e8992=a577_0x110d;logger[_0x2e8992(0xc2)](_0x5adfa0[_0x2e8992(0xea)]),_0x5adfa0[_0x2e8992(0x12f)]&&delete _0x5adfa0[_0x2e8992(0x12f)],_0xbee708['status'](_0x274a19)['send'](_0x5adfa0);};}function getInteractionUsers(_0x5359a9,_0x1c2853){return new Promise(function(_0x13b03a,_0x145d88){const _0x326772=a577_0x110d;try{_0x1c2853[_0x5359a9['id']]&&(_0x5359a9[_0x326772(0x104)]=_[_0x326772(0x133)](_0x1c2853[_0x5359a9['id']],function(_0x26b6b1){const _0xace8be=_0x326772;return{'id':_0x26b6b1['id'],'fullname':_0x26b6b1[_0xace8be(0xcc)]};}));}catch(_0x2725a3){_0x145d88(_0x2725a3);}_0x13b03a(_0x5359a9);});}function getInteractionTags(_0x512125,_0x4243b0){return new Promise(function(_0x1a0b39,_0x41c2b6){const _0x1a3467=a577_0x110d;try{_0x512125['TagIds']&&(_0x512125['Tags']=[],_0x512125['TagIds'][_0x1a3467(0xe3)](',')['forEach'](function(_0x230015){const _0x22f389=_0x1a3467;_0x512125[_0x22f389(0x12e)][_0x22f389(0x195)](_0x4243b0[_0x230015]);})),delete _0x512125[_0x1a3467(0x181)];}catch(_0x3cd8a0){_0x41c2b6(_0x3cd8a0);}_0x1a0b39(_0x512125);});}function updateOpenchannelInteraction(_0x140faf,_0x61901f,_0x465f8a){return new Promise(function(_0x4de0aa,_0x323da8){const _0x14b512=a577_0x110d;return getInteractionUsers(_0x140faf,_0x465f8a)[_0x14b512(0x15b)](function(_0x3307a0){return getInteractionTags(_0x3307a0,_0x61901f);})[_0x14b512(0x15b)](function(_0x57712c){_0x4de0aa(_0x57712c);})[_0x14b512(0xe6)](function(_0xe9d36a){_0x323da8(_0xe9d36a);});});}exports[a577_0x131bd2(0xc5)]=function(_0x48e4ee,_0x182757){const _0x3f9930=a577_0x131bd2,_0x481bec={},_0x364ebc={},_0x41b591={'count':0x0,'rows':[]},_0x1acd56=_['map'](db['OpenchannelInteraction'][_0x3f9930(0x122)],function(_0x1cb58f){const _0x316fcb=_0x3f9930;return{'name':_0x1cb58f[_0x316fcb(0xfb)],'type':_0x1cb58f[_0x316fcb(0xbf)][_0x316fcb(0xe7)]};});_0x364ebc['model']=_[_0x3f9930(0x133)](_0x1acd56,'name'),_0x364ebc['query']=_['keys'](_0x48e4ee[_0x3f9930(0x115)]),_0x364ebc['filters']=_[_0x3f9930(0xf3)](_0x364ebc['model'],_0x364ebc[_0x3f9930(0x115)]),_0x481bec[_0x3f9930(0xd4)]=_[_0x3f9930(0xf3)](_0x364ebc[_0x3f9930(0x10d)],qs[_0x3f9930(0xcf)](_0x48e4ee[_0x3f9930(0x115)]['fields'])),_0x481bec[_0x3f9930(0xd4)]=_0x481bec[_0x3f9930(0xd4)][_0x3f9930(0x154)]?_0x481bec[_0x3f9930(0xd4)]:_0x364ebc[_0x3f9930(0x10d)];typeof _0x48e4ee[_0x3f9930(0x115)]['nolimit']==='undefined'&&(_0x481bec['limit']=qs['limit'](_0x48e4ee[_0x3f9930(0x115)][_0x3f9930(0xca)]),_0x481bec['offset']=qs[_0x3f9930(0xce)](_0x48e4ee[_0x3f9930(0x115)]['offset']));_0x481bec['order']=qs[_0x3f9930(0xcd)](_0x48e4ee[_0x3f9930(0x115)][_0x3f9930(0xcd)]),_0x481bec[_0x3f9930(0x16a)]=qs['filters'](_[_0x3f9930(0x182)](_0x48e4ee[_0x3f9930(0x115)],_0x364ebc[_0x3f9930(0x165)]),_0x1acd56);let _0x61ed3c=[];const _0x5b753a=squel['select']()[_0x3f9930(0x183)]('id')[_0x3f9930(0x183)](_0x3f9930(0x12f))[_0x3f9930(0x183)]('color')[_0x3f9930(0x15e)](_0x3f9930(0x18c)),_0x514b13=squel[_0x3f9930(0xc1)]()[_0x3f9930(0x183)](_0x3f9930(0xda))['field'](_0x3f9930(0x194))['field'](_0x3f9930(0xd6))['from'](_0x3f9930(0xe8),'ui')['left_join'](_0x3f9930(0xbd),'u',_0x3f9930(0x177)),_0x5e1163=squel[_0x3f9930(0xc1)]()[_0x3f9930(0x15e)](_0x3f9930(0xc8),'i')[_0x3f9930(0x148)](_0x3f9930(0xed),'c',_0x3f9930(0x120))['left_join'](_0x3f9930(0xbd),'o',_0x3f9930(0x15d))['left_join'](_0x3f9930(0x111),'a','a.id\x20=\x20i.OpenchannelAccountId')['left_join'](_0x3f9930(0x169),'me',_0x3f9930(0xf1))[_0x3f9930(0x148)](_0x3f9930(0xfa),'it',_0x3f9930(0x141))[_0x3f9930(0x148)](_0x3f9930(0x18c),'t',_0x3f9930(0x16e)),_0x35a6c3=squel[_0x3f9930(0x171)]();let _0x4d32f9=[];const _0x2df8a9=squel[_0x3f9930(0x171)]();let _0x69ad68;if(_0x48e4ee[_0x3f9930(0x115)][_0x3f9930(0x131)]){_0x69ad68=as[_0x3f9930(0xf7)](_0x48e4ee[_0x3f9930(0x115)][_0x3f9930(0x131)]);const _0x1dbcd0=_0x69ad68[_0x3f9930(0xf0)];for(let _0x49cf8a=0x0;_0x49cf8a<_0x69ad68[_0x3f9930(0xbc)][_0x3f9930(0x154)];_0x49cf8a++){const _0x24f0fb=_0x69ad68[_0x3f9930(0xbc)][_0x49cf8a],_0x337328='i';let _0x482eda,_0x58d3c3=_[_0x3f9930(0x180)](_0x1acd56,[_0x3f9930(0x12f),_0x24f0fb[_0x3f9930(0x183)]]);if(!_0x58d3c3)switch(_0x24f0fb[_0x3f9930(0x183)]){case _0x3f9930(0x170):_0x24f0fb[_0x3f9930(0x11f)]==0x1?_0x5e1163[_0x3f9930(0x152)]('`'+_0x24f0fb[_0x3f9930(0x183)]+_0x3f9930(0x192)):_0x5e1163['having']('`'+_0x24f0fb[_0x3f9930(0x183)]+'`\x20>\x200');break;case _0x3f9930(0x158):if(_0x24f0fb[_0x3f9930(0xc0)]===_0x3f9930(0xbb)){if(_0x24f0fb[_0x3f9930(0x11f)][_0x3f9930(0xe3)]('\x20')[_0x3f9930(0x154)]>0x1)_0x35a6c3[_0x1dbcd0](_0x3f9930(0xe4),qs[_0x3f9930(0x176)](_0x24f0fb[_0x3f9930(0x11f)]),null);else{const _0x34aedd='%'+_0x24f0fb[_0x3f9930(0x11f)]+'%';_0x35a6c3[_0x1dbcd0](_0x3f9930(0x117),_0x34aedd,_0x34aedd,_0x34aedd);}}else _0x58d3c3=_[_0x3f9930(0x180)](_0x1acd56,[_0x3f9930(0x12f),_0x3f9930(0x100)]),_0x24f0fb[_0x3f9930(0x183)]=_0x3f9930(0x100),_0x482eda=as[_0x3f9930(0x187)](_0x337328,_0x58d3c3['type'],_0x24f0fb),_0x35a6c3[_0x1dbcd0](_0x482eda[_0x3f9930(0xd2)],_0x482eda['value'][_0x3f9930(0x178)],_0x482eda[_0x3f9930(0x11f)][_0x3f9930(0x163)]);break;case _0x3f9930(0xee):{const _0x3ce676=_0x24f0fb['value'][_0x3f9930(0xe3)](',')['map'](function(_0x2a861c){return Number(_0x2a861c);});_0x3ce676[_0x3f9930(0x10c)](function(_0x11b5a5){const _0x26d5af=_0x3f9930;_0x2df8a9['or'](_0x26d5af(0x144),'%,'+_0x11b5a5+',%');}),_0x4d32f9=_[_0x3f9930(0x11c)](_0x4d32f9,_0x3ce676);}break;case _0x3f9930(0x16d):_0x24f0fb[_0x3f9930(0xc0)]==='$substring'?_0x35a6c3[_0x1dbcd0](_0x3f9930(0x17a),'%'+_0x24f0fb['value']+'%',null):(_0x58d3c3=_[_0x3f9930(0x180)](_0x1acd56,[_0x3f9930(0x12f),'UserId']),_0x24f0fb[_0x3f9930(0x183)]=_0x3f9930(0x198),_0x482eda=as[_0x3f9930(0x187)](_0x337328,_0x58d3c3[_0x3f9930(0xbf)],_0x24f0fb),_0x35a6c3[_0x1dbcd0](_0x482eda['text'],_0x482eda[_0x3f9930(0x11f)]['start'],_0x482eda['value']['end']));break;case _0x3f9930(0xfc):_0x482eda=as[_0x3f9930(0x187)]('me',null,_0x24f0fb),_0x35a6c3[_0x1dbcd0](_0x482eda[_0x3f9930(0xd2)],_0x482eda[_0x3f9930(0x11f)][_0x3f9930(0x178)],_0x482eda['value']['end']);break;}else _0x482eda=as['buildExpression'](_0x337328,_0x58d3c3['type'],_0x24f0fb),_0x35a6c3[_0x1dbcd0](_0x482eda[_0x3f9930(0xd2)],_0x482eda[_0x3f9930(0x11f)][_0x3f9930(0x178)],_0x482eda[_0x3f9930(0x11f)][_0x3f9930(0x163)]);}}else{const _0x312c74=_(_0x48e4ee[_0x3f9930(0x115)])['keys']()['map'](function(_0x5bd1c2){const _0x125b79=_0x3f9930;return _[_0x125b79(0x174)](_0x1acd56,['name',_0x5bd1c2])?_0x5bd1c2:undefined;})[_0x3f9930(0x118)]()[_0x3f9930(0x11f)]();!_[_0x3f9930(0x101)](_0x312c74)&&_0x312c74[_0x3f9930(0x10c)](function(_0x254a6b){const _0x4e4ac5=_0x3f9930;if(_0x254a6b===_0x4e4ac5(0x112))_0x5e1163[_0x4e4ac5(0x16a)](_0x4e4ac5(0xc4),[]['concat'](_0x48e4ee['query'][_0x254a6b]));else{if(_0x254a6b===_0x4e4ac5(0x11d)){const _0x274b68=JSON[_0x4e4ac5(0x19a)](_0x48e4ee['query'][_0x254a6b])['$gte'],_0x3f3f57=JSON[_0x4e4ac5(0x19a)](_0x48e4ee[_0x4e4ac5(0x115)][_0x254a6b])[_0x4e4ac5(0x12c)];_0x5e1163[_0x4e4ac5(0x16a)](_0x4e4ac5(0x110),_0x274b68,_0x3f3f57);}else _0x48e4ee[_0x4e4ac5(0x115)][_0x254a6b]===_0x4e4ac5(0xd8)?_0x5e1163['where']('i.'+_0x254a6b+_0x4e4ac5(0x10f)):_0x5e1163['where']('i.'+_0x254a6b+_0x4e4ac5(0x16c),_0x48e4ee[_0x4e4ac5(0x115)][_0x254a6b]);}});_0x48e4ee[_0x3f9930(0x115)][_0x3f9930(0x140)]&&(_0x48e4ee[_0x3f9930(0x115)][_0x3f9930(0x140)]==0x1?_0x5e1163[_0x3f9930(0x152)](_0x3f9930(0x160)):_0x5e1163[_0x3f9930(0x152)]('`unreadMessages`\x20>\x200'));_0x48e4ee[_0x3f9930(0x115)][_0x3f9930(0x164)]&&(_0x4d32f9=_[_0x3f9930(0xcb)](_0x48e4ee[_0x3f9930(0x115)][_0x3f9930(0x164)])?_0x48e4ee[_0x3f9930(0x115)][_0x3f9930(0x164)]:new Array(_0x48e4ee[_0x3f9930(0x115)][_0x3f9930(0x164)]),_0x4d32f9[_0x3f9930(0x10c)](function(_0x2a8566){const _0x3ee6ae=_0x3f9930;_0x2df8a9['or'](_0x3ee6ae(0x144),'%,'+_0x2a8566+',%');}));if(_0x48e4ee[_0x3f9930(0x115)]['filter']){const _0x56db41=_0x48e4ee['query'][_0x3f9930(0x14b)][_0x3f9930(0x146)]('\x5c','\x5c\x5c')[_0x3f9930(0x146)](/'/g,'\x27\x27');qs['isNumeric'](_0x56db41)?_0x35a6c3['or'](_0x3f9930(0x113),_0x56db41+'%'):_0x35a6c3['or'](_0x3f9930(0xc9),qs['getFullTextValue'](_0x56db41))['or'](_0x3f9930(0x11e),_0x56db41+'%')['or']('CONCAT(c.firstName,\x20\x27\x20\x27,\x20c.lastName)\x20LIKE\x20?',_0x56db41+'%');}}_0x5e1163[_0x3f9930(0x16a)](_0x35a6c3),_0x5e1163['group'](_0x3f9930(0x14d));let _0x55c42b={'type':QueryTypes['SELECT'],'raw':!![]};const _0xa8a415=_0x5e1163[_0x3f9930(0xd1)]();_0xa8a415[_0x3f9930(0x183)](_0x3f9930(0x14d)),_0xa8a415[_0x3f9930(0x183)]('SUM(me.read\x20=\x200\x20AND\x20me.direction\x20=\x20\x27in\x27)',_0x3f9930(0x170)),_0x481bec['order']&&_0x481bec[_0x3f9930(0xe1)]['forEach'](function(_0x53f4aa){const _0x52df34=_0x3f9930;_0x5e1163[_0x52df34(0xe1)]('i.'+_0x53f4aa[0x0],_0x53f4aa[0x1]===_0x52df34(0x143)?![]:!![]);}),!_[_0x3f9930(0x101)](_0x4d32f9)&&(_0x5e1163[_0x3f9930(0x152)](_0x2df8a9),_0xa8a415[_0x3f9930(0x16a)]('t.id\x20IN\x20?',_0x4d32f9)),Promise['resolve']()[_0x3f9930(0x15b)](function(){const _0x55dfde=_0x3f9930;if(!_0x69ad68){if(_0x48e4ee[_0x55dfde(0x115)][_0x55dfde(0x112)]||_0x48e4ee[_0x55dfde(0x115)]['journey'])return;_0xa8a415['where'](_0x55dfde(0x132)),_0x5e1163[_0x55dfde(0x16a)](_0x55dfde(0x132));return;}return _0x48e4ee[_0x55dfde(0x196)][_0x55dfde(0x129)]({'attributes':['id'],'raw':!![]})[_0x55dfde(0x15b)](function(_0x3c01c7){const _0x4a3c21=_0x55dfde;_[_0x4a3c21(0x101)](_0x3c01c7)?(_0xa8a415['where'](_0x4a3c21(0x184)),_0x5e1163[_0x4a3c21(0x16a)](_0x4a3c21(0x184))):(_0xa8a415[_0x4a3c21(0x16a)](_0x4a3c21(0xc4),_[_0x4a3c21(0x133)](_0x3c01c7,'id')),_0x5e1163[_0x4a3c21(0x16a)](_0x4a3c21(0xc4),_[_0x4a3c21(0x133)](_0x3c01c7,'id')));});})[_0x3f9930(0x15b)](function(){const _0x4b6aaf=_0x3f9930;db[_0x4b6aaf(0xfe)][_0x4b6aaf(0x115)](_0xa8a415[_0x4b6aaf(0x116)](),_0x55c42b)['then'](function(_0x2ebae5){const _0x141ed0=_0x4b6aaf;_0x41b591[_0x141ed0(0x135)]=_0x2ebae5[_0x141ed0(0x154)];if(_0x41b591['count']===0x0)return[];return db[_0x141ed0(0xfe)]['query'](_0x5b753a['toString'](),_0x55c42b)[_0x141ed0(0x15b)](function(_0x222e07){const _0x52fe2e=_0x141ed0;_0x61ed3c=_['keyBy'](_0x222e07,'id'),_0x55c42b=_[_0x52fe2e(0x13e)](_0x55c42b,{'model':db[_0x52fe2e(0x188)],'mapToModel':!![],'raw':!![],'nest':!![]});_0x48e4ee['query']['fields']?_0x481bec[_0x52fe2e(0xd4)][_0x52fe2e(0x10c)](function(_0x4c243d){const _0x1da7cc=_0x52fe2e;_0x5e1163[_0x1da7cc(0x183)]('i.'+_0x4c243d);}):(_0x5e1163[_0x52fe2e(0x183)](_0x52fe2e(0xdc),_0x52fe2e(0x170)),_0x5e1163['field'](_0x52fe2e(0xff),'Account.key'),_0x5e1163['field'](_0x52fe2e(0xec),_0x52fe2e(0x145)),_0x5e1163[_0x52fe2e(0x183)](_0x52fe2e(0xc6)),_0x5e1163[_0x52fe2e(0x183)](_0x52fe2e(0x127),_0x52fe2e(0xd7)),_0x5e1163[_0x52fe2e(0x183)](_0x52fe2e(0xd0),'Contact.lastName'),_0x5e1163[_0x52fe2e(0x183)](_0x52fe2e(0x13c),_0x52fe2e(0x175)),_0x5e1163[_0x52fe2e(0x183)](_0x52fe2e(0x108),'Contact.phone'),_0x5e1163[_0x52fe2e(0x183)](_0x52fe2e(0x103),_0x52fe2e(0xd9)),_0x5e1163[_0x52fe2e(0x183)]('c.fax','Contact.fax'),_0x5e1163[_0x52fe2e(0x183)](_0x52fe2e(0x14a),'Owner.fullname'),_0x5e1163[_0x52fe2e(0x183)](_0x52fe2e(0x172),_0x52fe2e(0x15a)),_0x5e1163[_0x52fe2e(0x183)](_0x52fe2e(0xba),'TagIds'));if(_0x481bec['limit'])_0x5e1163['limit'](_0x481bec[_0x52fe2e(0xca)]);if(_0x481bec[_0x52fe2e(0xce)])_0x5e1163[_0x52fe2e(0xce)](_0x481bec[_0x52fe2e(0xce)]);return db['sequelize']['query'](_0x5e1163['toString'](),_0x55c42b);})[_0x141ed0(0x15b)](function(_0x132f8b){const _0x20508d=_0x141ed0;return _0x514b13[_0x20508d(0x16a)](_0x20508d(0x13d),_[_0x20508d(0x133)](_0x132f8b,'id')),db[_0x20508d(0xfe)][_0x20508d(0x115)](_0x514b13['toString'](),_0x55c42b)[_0x20508d(0x15b)](function(_0x262037){const _0x1d9202=_0x20508d,_0x44bb08=_[_0x1d9202(0x18a)](_0x262037,'OpenchannelInteractionId'),_0xe2fde2=[];return _0x132f8b[_0x1d9202(0x10c)](function(_0x53cdcb){const _0x541547=_0x1d9202;_0xe2fde2[_0x541547(0x195)](updateOpenchannelInteraction(_0x53cdcb,_0x61ed3c,_0x44bb08));}),Promise[_0x1d9202(0xf4)](_0xe2fde2);});});})[_0x4b6aaf(0x15b)](function(_0xe57e4){const _0x17e1bf=_0x4b6aaf;return _0x41b591[_0x17e1bf(0x10e)]=_0xe57e4,_0x41b591;})[_0x4b6aaf(0x15b)](respondWithFilteredResult(_0x182757,_0x481bec));})[_0x3f9930(0xe6)](handleError(_0x182757,null));},exports[a577_0x131bd2(0x150)]=function(_0x5c39df,_0x2e1682){const _0x5ef871=a577_0x131bd2,_0x11b8c5={};_0x5c39df[_0x5ef871(0x115)][_0x5ef871(0xbf)]&&_0x5c39df[_0x5ef871(0x115)][_0x5ef871(0xbf)]===_0x5ef871(0x15e)?_0x11b8c5[_0x5ef871(0x15e)]=_0x5c39df['params']['id']:_0x11b8c5['id']=_0x5c39df['params']['id'];let _0x585b1c={'raw':![],'where':_0x11b8c5};const _0x394887={};return _0x394887[_0x5ef871(0x10d)]=_[_0x5ef871(0xdb)](db['OpenchannelInteraction'][_0x5ef871(0x122)]),_0x394887[_0x5ef871(0x115)]=_[_0x5ef871(0xdb)](_0x5c39df[_0x5ef871(0x115)]),_0x394887[_0x5ef871(0x165)]=_[_0x5ef871(0xf3)](_0x394887['model'],_0x394887[_0x5ef871(0x115)]),_0x585b1c[_0x5ef871(0xd4)]=_[_0x5ef871(0xf3)](_0x394887[_0x5ef871(0x10d)],qs[_0x5ef871(0xcf)](_0x5c39df['query'][_0x5ef871(0xcf)])),_0x585b1c['attributes']=_0x585b1c[_0x5ef871(0xd4)][_0x5ef871(0x154)]?_0x585b1c[_0x5ef871(0xd4)]:_0x394887['model'],_0x5c39df[_0x5ef871(0x115)][_0x5ef871(0x153)]&&(_0x585b1c[_0x5ef871(0xdf)]=[{'all':!![]}]),_0x585b1c=_[_0x5ef871(0x13e)]({},_0x585b1c,_0x5c39df['options']),db[_0x5ef871(0x188)][_0x5ef871(0x17b)](_0x585b1c)[_0x5ef871(0x15b)](handleEntityNotFound(_0x2e1682,null))['then'](respondWithResult(_0x2e1682,null))[_0x5ef871(0xe6)](handleError(_0x2e1682,null));},exports[a577_0x131bd2(0x191)]=function(_0x115959,_0x2d1139){const _0x46de43=a577_0x131bd2;return db['OpenchannelInteraction']['create'](_0x115959[_0x46de43(0xfc)],{})[_0x46de43(0x15b)](respondWithResult(_0x2d1139,0xc9))['catch'](handleError(_0x2d1139,null));},exports['update']=function(_0x552e42,_0xfbb120){const _0x26cec7=a577_0x131bd2;return _0x552e42[_0x26cec7(0xfc)]['id']&&delete _0x552e42['body']['id'],db[_0x26cec7(0x188)][_0x26cec7(0x17b)]({'where':{'id':_0x552e42['params']['id']}})[_0x26cec7(0x15b)](handleEntityNotFound(_0xfbb120,null))[_0x26cec7(0x15b)](saveUpdates(_0x552e42[_0x26cec7(0xfc)],null))[_0x26cec7(0x15b)](respondWithResult(_0xfbb120,null))['catch'](handleError(_0xfbb120,null));},exports[a577_0x131bd2(0x189)]=function(_0x1df7da,_0x39277f){const _0x5f4f03=a577_0x131bd2;return db[_0x5f4f03(0x188)]['findOne']({'where':{'id':_0x1df7da[_0x5f4f03(0x18e)]['id']}})[_0x5f4f03(0x15b)](handleEntityNotFound(_0x39277f,null))[_0x5f4f03(0x15b)](removeEntity(_0x39277f,null))['catch'](handleError(_0x39277f,null));},exports[a577_0x131bd2(0x10b)]=function(_0x3463d9,_0x3e7251){const _0x3e54f1=a577_0x131bd2;return db['OpenchannelInteraction']['describe']()[_0x3e54f1(0x15b)](respondWithResult(_0x3e7251,null))[_0x3e54f1(0xe6)](handleError(_0x3e7251,null));},exports[a577_0x131bd2(0x159)]=function(_0x280583,_0x23296b){const _0x35a3a7=a577_0x131bd2;return db[_0x35a3a7(0xe2)][_0x35a3a7(0x17b)]({'where':{'id':_0x280583[_0x35a3a7(0x18e)]['id']}})[_0x35a3a7(0x15b)](function(_0x22000e){const _0x2ce4da=_0x35a3a7;if(_0x22000e)return _0x22000e[_0x2ce4da(0x159)](_0x280583[_0x2ce4da(0xfc)][_0x2ce4da(0x197)],{'through':_['omit'](_0x280583[_0x2ce4da(0xfc)],[_0x2ce4da(0x197),'id'])});})[_0x35a3a7(0x15b)](respondWithResult(_0x23296b,null))['catch'](handleError(_0x23296b,null));},exports[a577_0x131bd2(0x193)]=function(_0x271e6a,_0x57af00){const _0x1dd3a3=a577_0x131bd2;let _0x397a94={'raw':![],'where':{}};const _0x612d08={},_0x1ef395={'count':0x0,'rows':[]};return db[_0x1dd3a3(0x188)][_0x1dd3a3(0x17b)]({'where':{'id':_0x271e6a[_0x1dd3a3(0x18e)]['id']}})[_0x1dd3a3(0x15b)](handleEntityNotFound(_0x57af00,null))[_0x1dd3a3(0x15b)](function(_0x54ca81){const _0x36a408=_0x1dd3a3;if(_0x54ca81){_0x612d08[_0x36a408(0x10d)]=_[_0x36a408(0xdb)](db[_0x36a408(0xe2)][_0x36a408(0x122)]),_0x612d08[_0x36a408(0x115)]=_[_0x36a408(0xdb)](_0x271e6a[_0x36a408(0x115)]),_0x612d08[_0x36a408(0x165)]=_['intersection'](_0x612d08[_0x36a408(0x10d)],_0x612d08['query']),_0x397a94['attributes']=_[_0x36a408(0xf3)](_0x612d08['model'],qs[_0x36a408(0xcf)](_0x271e6a[_0x36a408(0x115)][_0x36a408(0xcf)])),_0x397a94[_0x36a408(0xd4)]=_0x397a94[_0x36a408(0xd4)][_0x36a408(0x154)]?_0x397a94[_0x36a408(0xd4)]:_0x612d08[_0x36a408(0x10d)];typeof _0x271e6a['query']['nolimit']===_0x36a408(0x16f)&&(_0x397a94[_0x36a408(0xca)]=qs['limit'](_0x271e6a['query'][_0x36a408(0xca)]),_0x397a94[_0x36a408(0xce)]=qs[_0x36a408(0xce)](_0x271e6a[_0x36a408(0x115)][_0x36a408(0xce)]));_0x397a94['order']=qs[_0x36a408(0xcd)](_0x271e6a['query'][_0x36a408(0xcd)]),_0x397a94[_0x36a408(0x16a)]=qs[_0x36a408(0x165)](_[_0x36a408(0x182)](_0x271e6a[_0x36a408(0x115)],_0x612d08[_0x36a408(0x165)])),_0x397a94[_0x36a408(0x16a)][_0x36a408(0x109)]=_0x54ca81['id'];_0x271e6a[_0x36a408(0x115)][_0x36a408(0x14b)]&&(_0x397a94[_0x36a408(0x16a)]=_['merge'](_0x397a94[_0x36a408(0x16a)],{[Op['or']]:_[_0x36a408(0x133)](_0x397a94[_0x36a408(0xd4)],function(_0x14db87){const _0x5304e3=_0x36a408,_0x529091={};return _0x529091[_0x14db87]={[Op[_0x5304e3(0x105)]]:'%'+_0x271e6a[_0x5304e3(0x115)][_0x5304e3(0x14b)]+'%'},_0x529091;})}));if(_0x271e6a[_0x36a408(0x115)][_0x36a408(0x157)]){const _0x99c13c=_0x271e6a[_0x36a408(0x115)][_0x36a408(0x157)][_0x36a408(0xe3)](','),_0x30d95c={};_0x30d95c[_0x99c13c[0x0]]={[Op['gte']]:moment(_0x99c13c[0x1])[_0x36a408(0x147)]('YYYY-MM-DD\x20HH:mm:ss')},_0x397a94[_0x36a408(0x16a)]=_[_0x36a408(0x13e)](_0x397a94[_0x36a408(0x16a)],_0x30d95c);}return _0x397a94=_[_0x36a408(0x13e)]({},_0x397a94,_0x271e6a['options']),db[_0x36a408(0xe2)][_0x36a408(0x135)]({'where':_0x397a94[_0x36a408(0x16a)]})['then'](function(_0x36d29c){const _0xb869f9=_0x36a408;return _0x1ef395[_0xb869f9(0x135)]=_0x36d29c,_0x271e6a[_0xb869f9(0x115)]['includeAll']&&(_0x397a94[_0xb869f9(0xdf)]=[{'all':!![]}]),db[_0xb869f9(0xe2)][_0xb869f9(0x14e)](_0x397a94);})[_0x36a408(0x15b)](function(_0xc5ae54){const _0x35447d=_0x36a408;return _0x1ef395[_0x35447d(0x10e)]=_0xc5ae54,_0x1ef395;});}})[_0x1dd3a3(0x15b)](respondWithFilteredResult(_0x57af00,_0x397a94))[_0x1dd3a3(0xe6)](handleError(_0x57af00,null));},exports[a577_0x131bd2(0x142)]=function(_0x36b715,_0x1ebe9f){const _0x2ffcc6=a577_0x131bd2;return db[_0x2ffcc6(0x188)][_0x2ffcc6(0x17b)]({'where':{'id':_0x36b715[_0x2ffcc6(0x18e)]['id']}})['then'](function(_0x276f3a){const _0x3f102b=_0x2ffcc6;if(_0x276f3a)return _0x276f3a['setTags'](_0x36b715['body']['ids'],{'through':_['omit'](_0x36b715[_0x3f102b(0xfc)],['ids','id'])})[_0x3f102b(0x15b)](function(){const _0x25380b=_0x3f102b;return db['Tag'][_0x25380b(0x14e)]({'attributes':['id','name',_0x25380b(0x10a)],'where':{'id':_0x36b715[_0x25380b(0xfc)][_0x25380b(0x197)]}});})['then'](function(_0x45b133){const _0xca69d0=_0x3f102b;return socket[_0xca69d0(0x18b)](_0xca69d0(0x124),{'id':Number(_0x36b715['params']['id']),'tags':_0x45b133||[]}),{'id':Number(_0x36b715[_0xca69d0(0x18e)]['id']),'tags':_0x45b133||[]};});})[_0x2ffcc6(0x15b)](respondWithResult(_0x1ebe9f,null))[_0x2ffcc6(0xe6)](handleError(_0x1ebe9f,null));},exports[a577_0x131bd2(0x12b)]=function(_0x7f78d4,_0x17e1bd){const _0xe68b1d=a577_0x131bd2;return db['OpenchannelInteraction']['findOne']({'where':{'id':_0x7f78d4[_0xe68b1d(0x18e)]['id']}})[_0xe68b1d(0x15b)](handleEntityNotFound(_0x17e1bd,null))[_0xe68b1d(0x15b)](function(_0x23955a){const _0x136b2d=_0xe68b1d;if(_0x23955a)return _0x23955a[_0x136b2d(0x12b)](_0x7f78d4[_0x136b2d(0x115)][_0x136b2d(0x197)]);})[_0xe68b1d(0x15b)](respondWithStatusCode(_0x17e1bd,null))[_0xe68b1d(0xe6)](handleError(_0x17e1bd,null));},exports['download']=function(_0x8c605,_0x41e8b6){const _0x4fe0c=a577_0x131bd2,_0x54cdfe=moment()[_0x4fe0c(0x119)]()[_0x4fe0c(0x116)](),_0xc0f03f=path[_0x4fe0c(0xbe)](config[_0x4fe0c(0x139)],_0x4fe0c(0xc3),_0x4fe0c(0x11b)),_0x33c31a=path[_0x4fe0c(0xbe)](config[_0x4fe0c(0x139)],_0x4fe0c(0x134),'files','attachments'),_0x1b4204=path[_0x4fe0c(0xbe)](_0xc0f03f,_0x54cdfe),_0x5bbd26=util['format'](_0x4fe0c(0x121),_0x8c605[_0x4fe0c(0x18e)]['id'],_0x54cdfe),_0x5e563c=path[_0x4fe0c(0xbe)](_0xc0f03f,_0x5bbd26),_0x25afda=[];_0x25afda[_0x4fe0c(0x195)]({'model':db['User'],'as':_0x4fe0c(0x16d),'attributes':['id',_0x4fe0c(0xcc)],'raw':!![]}),_0x25afda[_0x4fe0c(0x195)]({'model':db[_0x4fe0c(0x17c)],'as':_0x4fe0c(0x158),'attributes':['id',_0x4fe0c(0x13b),_0x4fe0c(0x14c)],'raw':!![]});_0x8c605[_0x4fe0c(0x115)]['attachments']&&_0x25afda[_0x4fe0c(0x195)]({'model':db[_0x4fe0c(0x13a)],'as':_0x4fe0c(0x13a),'raw':!![]});const _0x33d173=[{'model':db[_0x4fe0c(0xe2)],'as':'Messages','attributes':['id','body',_0x4fe0c(0x11d),_0x4fe0c(0xde),_0x4fe0c(0x114),_0x4fe0c(0x140)],'include':_0x25afda}];return _0x33d173['push']({'model':db[_0x4fe0c(0x102)],'as':_0x4fe0c(0xf9),'attributes':['id',_0x4fe0c(0x12f)]}),_0x33d173['push']({'model':db[_0x4fe0c(0x16d)],'as':'Owner','attributes':['id',_0x4fe0c(0xcc)]}),db[_0x4fe0c(0x188)][_0x4fe0c(0x17b)]({'where':{'id':_0x8c605[_0x4fe0c(0x18e)]['id']},'include':_0x33d173})[_0x4fe0c(0x15b)](handleEntityNotFound(_0x41e8b6,null))[_0x4fe0c(0x15b)](function(_0x2c61f1){const _0x5b51a8=_0x4fe0c;if(_0x2c61f1){const _0x17d9a8=_0x2c61f1[_0x5b51a8(0x12d)]({'plain':!![]});fs['mkdirSync'](_0x1b4204);const _0x4da6dd={'format':'A4','border':_0x5b51a8(0xeb),'header':{'height':_0x5b51a8(0x17e),'contents':{'first':_0x5b51a8(0x13f)}},'footer':{'height':_0x5b51a8(0xe5),'contents':{'default':util[_0x5b51a8(0x147)](_0x5b51a8(0xef),util['format'](_0x5b51a8(0x15f),'Openchannel',_0x17d9a8['id']),moment()[_0x5b51a8(0x147)](_0x5b51a8(0x162))[_0x5b51a8(0x116)]())}}},_0x293a71={'channel':_0x5b51a8(0x12a),'account':_0x17d9a8[_0x5b51a8(0xf9)][_0x5b51a8(0x12f)],'agent':_0x17d9a8[_0x5b51a8(0x167)]?_0x17d9a8[_0x5b51a8(0x167)][_0x5b51a8(0xcc)]:'N.A.','createdAt':moment(_0x17d9a8['createdAt'])['format'](_0x5b51a8(0x126))['toString'](),'closedAt':_0x17d9a8[_0x5b51a8(0x199)]?moment(_0x17d9a8[_0x5b51a8(0x155)])[_0x5b51a8(0x147)](_0x5b51a8(0x126))[_0x5b51a8(0x116)]():'','disposition':_0x17d9a8[_0x5b51a8(0xfd)],'visibility':_0x17d9a8[_0x5b51a8(0x137)]?_0x5b51a8(0x18f):_0x5b51a8(0x190),'messages':_(_0x17d9a8['Messages'])[_0x5b51a8(0x14b)]({'secret':![]})[_0x5b51a8(0x133)](function(_0x3cf4aa){const _0x2bcb18=_0x5b51a8;if(_0x3cf4aa[_0x2bcb18(0x13a)]){const _0x2a78da=path[_0x2bcb18(0xbe)](_0x33c31a,_0x3cf4aa[_0x2bcb18(0x13a)][_0x2bcb18(0xf2)]);fs[_0x2bcb18(0x125)](_0x2a78da)&&fs[_0x2bcb18(0x107)](_0x2a78da)[_0x2bcb18(0x166)](fs[_0x2bcb18(0x130)](path['join'](_0x1b4204,_0x3cf4aa[_0x2bcb18(0x13a)][_0x2bcb18(0xf2)])));}return{'date':moment(_0x3cf4aa[_0x2bcb18(0x11d)])['format'](_0x2bcb18(0x126))[_0x2bcb18(0x116)](),'sender':_0x3cf4aa['direction']===_0x2bcb18(0x106)?_0x3cf4aa[_0x2bcb18(0x16d)]?_0x3cf4aa[_0x2bcb18(0x16d)][_0x2bcb18(0xcc)]:_0x2bcb18(0x136):_0x3cf4aa[_0x2bcb18(0x158)]['firstName']+(_0x3cf4aa['Contact']['lastName']?'\x20'+_0x3cf4aa['Contact'][_0x2bcb18(0x14c)]:''),'body':_0x3cf4aa['Attachment']?_0x3cf4aa[_0x2bcb18(0x13a)][_0x2bcb18(0xf2)]:_0x3cf4aa[_0x2bcb18(0xfc)],'direction':_0x3cf4aa[_0x2bcb18(0xde)]===_0x2bcb18(0x106)?'A':'C','secret':_0x3cf4aa[_0x2bcb18(0x114)],'read':_0x3cf4aa['read'],'attachment':_0x3cf4aa[_0x2bcb18(0x13a)]};})[_0x5b51a8(0x11f)]()};return ejs[_0x5b51a8(0x15c)](path['join'](config[_0x5b51a8(0x139)],_0x5b51a8(0x134),_0x5b51a8(0x168),_0x5b51a8(0xf5)),{'interaction':_0x293a71})[_0x5b51a8(0x15b)](function(_0x8c2be0){return new Promise(function(_0x4999e3,_0x5c1a4e){const _0x4986d0=a577_0x110d;pdf['create'](_0x8c2be0,_0x4da6dd)[_0x4986d0(0xc7)](path[_0x4986d0(0xbe)](_0x1b4204,_0x4986d0(0xf8)+_0x17d9a8['id']+'-'+_0x54cdfe+_0x4986d0(0x17d)),function(_0x4b4bbc,_0x22a481){if(_0x4b4bbc)return _0x5c1a4e(_0x4b4bbc);_0x4999e3(_0x22a481);});});})[_0x5b51a8(0x15b)](function(){const _0x498a04=_0x5b51a8;return new Promise(function(_0x1a3f4e,_0x3f4447){zipdir(_0x1b4204,{'saveTo':_0x5e563c},function(_0x4063ae,_0x2e2629){if(_0x4063ae)return _0x3f4447(_0x4063ae);return _0x1a3f4e(_0x2e2629);});})[_0x498a04(0x15b)](function(){return new Promise(function(_0x1ccb32,_0x35dbd4){rimraf(_0x1b4204,function(_0x3df373){if(_0x3df373)_0x35dbd4(_0x3df373);return _0x1ccb32();});});})[_0x498a04(0x15b)](function(){const _0x267688=_0x498a04;return _0x41e8b6[_0x267688(0x185)](_0x5e563c,_0x5bbd26,function(_0x17d75c){const _0x4db1a4=_0x267688;_0x17d75c?console[_0x4db1a4(0x156)](_0x4db1a4(0x128),_0x17d75c):fs[_0x4db1a4(0x18d)](_0x5e563c);});});});}else return _0x41e8b6[_0x5b51a8(0x151)](0xc8);})['catch'](handleError(_0x41e8b6,null));}; \ No newline at end of file diff --git a/server/api/openchannelInteraction/openchannelInteraction.events.js b/server/api/openchannelInteraction/openchannelInteraction.events.js index 2ad7b94..2a95b93 100644 --- a/server/api/openchannelInteraction/openchannelInteraction.events.js +++ b/server/api/openchannelInteraction/openchannelInteraction.events.js @@ -1 +1 @@ -const a481_0x1174=['emit','remove','Users','undefined','then','setMaxListeners','setDataValue','update','events','length','map','findAll','OpenchannelInteraction','getUsers','unreadMessages','save','../../mysqldb','catch','OpenchannelMessage'];(function(_0x57812e,_0x117456){const _0x55fd9f=function(_0x3b2eb5){while(--_0x3b2eb5){_0x57812e['push'](_0x57812e['shift']());}};_0x55fd9f(++_0x117456);}(a481_0x1174,0xf1));const a481_0x55fd=function(_0x57812e,_0x117456){_0x57812e=_0x57812e-0x0;let _0x55fd9f=a481_0x1174[_0x57812e];return _0x55fd9f;};const _0x937388=a481_0x55fd;'use strict';const EventEmitter=require(_0x937388('0xe')),OpenchannelInteraction=require('../../mysqldb')['db'][_0x937388('0x12')],OpenchannelMessage=require(_0x937388('0x3'))['db'][_0x937388('0x5')],OpenchannelInteractionEvents=new EventEmitter();OpenchannelInteractionEvents[_0x937388('0xb')](0x0);const events={'afterCreate':_0x937388('0x2'),'afterUpdate':_0x937388('0xd'),'afterDestroy':_0x937388('0x7')};function emitEvent(_0x3b2eb5){return function(_0x25c223){const _0x1fe824=a481_0x55fd;_0x25c223[_0x1fe824('0x0')]({'attributes':['id'],'raw':!![]})[_0x1fe824('0xa')](function(_0x467a5d){const _0x3cc1cc=_0x1fe824;return _0x25c223[_0x3cc1cc('0xc')](_0x3cc1cc('0x8'),_0x467a5d[_0x3cc1cc('0x10')](function(_0x213e3b){return{'id':_0x213e3b['id']};})),OpenchannelMessage[_0x3cc1cc('0x11')]({'where':{'OpenchannelInteractionId':_0x25c223['id'],'direction':'in','read':![]},'raw':!![]});})[_0x1fe824('0xa')](function(_0x103d0e){const _0x31084e=_0x1fe824;_0x25c223[_0x31084e('0xc')](_0x31084e('0x1'),_0x103d0e[_0x31084e('0xf')]),OpenchannelInteractionEvents[_0x31084e('0x6')](_0x3b2eb5+':'+_0x25c223['id'],_0x25c223),OpenchannelInteractionEvents[_0x31084e('0x6')](_0x3b2eb5,_0x25c223);})[_0x1fe824('0x4')](()=>{});};}for(const e in events){if(typeof events[e]!==_0x937388('0x9')){const event=events[e];OpenchannelInteraction['addHook'](e,emitEvent(event));}}module['exports']=OpenchannelInteractionEvents; \ No newline at end of file +const a578_0x456a=['../../mysqldb','undefined','setDataValue','remove','events','catch','findAll','unreadMessages','getUsers','OpenchannelMessage','addHook','setMaxListeners','exports','then','save','emit','Users','update','length'];(function(_0x13c9b9,_0x4cebc8){const _0x456ab8=function(_0x2ac2ed){while(--_0x2ac2ed){_0x13c9b9['push'](_0x13c9b9['shift']());}};_0x456ab8(++_0x4cebc8);}(a578_0x456a,0x1b9));const a578_0x2ac2=function(_0x13c9b9,_0x4cebc8){_0x13c9b9=_0x13c9b9-0xa1;let _0x456ab8=a578_0x456a[_0x13c9b9];return _0x456ab8;};const a578_0x54486f=a578_0x2ac2;'use strict';const EventEmitter=require(a578_0x54486f(0xa1)),OpenchannelInteraction=require('../../mysqldb')['db']['OpenchannelInteraction'],OpenchannelMessage=require(a578_0x54486f(0xb0))['db'][a578_0x54486f(0xa6)],OpenchannelInteractionEvents=new EventEmitter();OpenchannelInteractionEvents[a578_0x54486f(0xa8)](0x0);const events={'afterCreate':a578_0x54486f(0xab),'afterUpdate':a578_0x54486f(0xae),'afterDestroy':a578_0x54486f(0xb3)};function emitEvent(_0x383810){return function(_0x44ae22){const _0x5ac1a6=a578_0x2ac2;_0x44ae22[_0x5ac1a6(0xa5)]({'attributes':['id'],'raw':!![]})[_0x5ac1a6(0xaa)](function(_0x5f078b){const _0x5369c8=_0x5ac1a6;return _0x44ae22['setDataValue'](_0x5369c8(0xad),_0x5f078b['map'](function(_0x58f53e){return{'id':_0x58f53e['id']};})),OpenchannelMessage[_0x5369c8(0xa3)]({'where':{'OpenchannelInteractionId':_0x44ae22['id'],'direction':'in','read':![]},'raw':!![]});})[_0x5ac1a6(0xaa)](function(_0x5edddd){const _0x2d1212=_0x5ac1a6;_0x44ae22[_0x2d1212(0xb2)](_0x2d1212(0xa4),_0x5edddd[_0x2d1212(0xaf)]),OpenchannelInteractionEvents['emit'](_0x383810+':'+_0x44ae22['id'],_0x44ae22),OpenchannelInteractionEvents[_0x2d1212(0xac)](_0x383810,_0x44ae22);})[_0x5ac1a6(0xa2)](()=>{});};}for(const e in events){if(typeof events[e]!==a578_0x54486f(0xb1)){const event=events[e];OpenchannelInteraction[a578_0x54486f(0xa7)](e,emitEvent(event));}}module[a578_0x54486f(0xa9)]=OpenchannelInteractionEvents; \ No newline at end of file diff --git a/server/api/openchannelInteraction/openchannelInteraction.model.js b/server/api/openchannelInteraction/openchannelInteraction.model.js index 646257e..260cf3d 100644 --- a/server/api/openchannelInteraction/openchannelInteraction.model.js +++ b/server/api/openchannelInteraction/openchannelInteraction.model.js @@ -1 +1 @@ -const a482_0x473f=['OpenchannelInteraction','exports','define','openchannel_interactions','./openchannelInteraction.attributes','closed','moment','closedAt','YYYY-MM-DD\x20HH:mm:ss'];(function(_0x111546,_0x473f79){const _0x1e592e=function(_0x141c6f){while(--_0x141c6f){_0x111546['push'](_0x111546['shift']());}};_0x1e592e(++_0x473f79);}(a482_0x473f,0x7b));const a482_0x1e59=function(_0x111546,_0x473f79){_0x111546=_0x111546-0x0;let _0x1e592e=a482_0x473f[_0x111546];return _0x1e592e;};const _0x580da9=a482_0x1e59;'use strict';const moment=require(_0x580da9('0x0')),attributes=require(_0x580da9('0x7'));module[_0x580da9('0x4')]=function(_0x141c6f){const _0x44758c=_0x580da9,_0x83203a=_0x141c6f[_0x44758c('0x5')](_0x44758c('0x3'),attributes,{'tableName':_0x44758c('0x6'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x21e589){const _0x664ced=_0x44758c;_0x21e589['changed'](_0x664ced('0x8'))&&(_0x21e589[_0x664ced('0x1')]=moment()['format'](_0x664ced('0x2')));}}});return _0x83203a;}; \ No newline at end of file +const a579_0x5241=['OpenchannelInteraction','function','exports','./openchannelInteraction.options','init','sequelize'];(function(_0x770700,_0x2ecb49){const _0x524151=function(_0x2116bb){while(--_0x2116bb){_0x770700['push'](_0x770700['shift']());}};_0x524151(++_0x2ecb49);}(a579_0x5241,0x107));const a579_0x2116=function(_0x770700,_0x2ecb49){_0x770700=_0x770700-0xd1;let _0x524151=a579_0x5241[_0x770700];return _0x524151;};const a579_0x5818a1=a579_0x2116;'use strict';const {Model}=require(a579_0x5818a1(0xd1)),{attributes}=require('./openchannelInteraction.attributes'),{options}=require(a579_0x5818a1(0xd5));class OpenchannelInteraction extends Model{}function init(_0x535d87,_0x1504d2){const _0x4a854c=a579_0x5818a1,_0x4df7c6=options(_0x535d87),_0x380b36=typeof _0x1504d2===_0x4a854c(0xd3)?_0x1504d2(_0x4df7c6):_0x4df7c6;return OpenchannelInteraction[_0x4a854c(0xd6)](attributes,_0x380b36),OpenchannelInteraction;}module['exports'][a579_0x5818a1(0xd2)]=OpenchannelInteraction,module[a579_0x5818a1(0xd4)]['init']=init; \ No newline at end of file diff --git a/server/api/openchannelInteraction/openchannelInteraction.options.js b/server/api/openchannelInteraction/openchannelInteraction.options.js new file mode 100644 index 0000000..0e7ce96 --- /dev/null +++ b/server/api/openchannelInteraction/openchannelInteraction.options.js @@ -0,0 +1 @@ +const a580_0x19ae=['moment','exports','options','format','changed','openchannel_interactions','closedAt'];(function(_0x316f14,_0x14d02f){const _0x19ae16=function(_0x11cdd4){while(--_0x11cdd4){_0x316f14['push'](_0x316f14['shift']());}};_0x19ae16(++_0x14d02f);}(a580_0x19ae,0xdc));const a580_0x11cd=function(_0x316f14,_0x14d02f){_0x316f14=_0x316f14-0x1a8;let _0x19ae16=a580_0x19ae[_0x316f14];return _0x19ae16;};const a580_0x5ac3f9=a580_0x11cd,moment=require(a580_0x5ac3f9(0x1ac));function options(_0x596132){const _0x245b26=a580_0x5ac3f9;return{'sequelize':_0x596132,'tableName':_0x245b26(0x1aa),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x5975cb){const _0x47378d=_0x245b26;_0x5975cb[_0x47378d(0x1a9)]('closed')&&(_0x5975cb[_0x47378d(0x1ab)]=moment()[_0x47378d(0x1a8)]('YYYY-MM-DD\x20HH:mm:ss'));}}};}module[a580_0x5ac3f9(0x1ad)][a580_0x5ac3f9(0x1ae)]=options; \ No newline at end of file diff --git a/server/api/openchannelInteraction/openchannelInteraction.rpc.js b/server/api/openchannelInteraction/openchannelInteraction.rpc.js index 02c2059..3f86c94 100644 --- a/server/api/openchannelInteraction/openchannelInteraction.rpc.js +++ b/server/api/openchannelInteraction/openchannelInteraction.rpc.js @@ -1 +1 @@ -const a483_0xd53c=['catch','ids','debug','stringify','message','omit','error','raw','OpenchannelInteraction','info','../../mysqldb','options','body','../../config/logger','attributes','AddTagsToOpenchannelInteraction','register','UpdateOpenchannelInteraction','then','AddTags','where','update'];(function(_0x27f5f8,_0xd53cb3){const _0x5e5926=function(_0x4a9496){while(--_0x4a9496){_0x27f5f8['push'](_0x27f5f8['shift']());}};_0x5e5926(++_0xd53cb3);}(a483_0xd53c,0x165));const a483_0x5e59=function(_0x27f5f8,_0xd53cb3){_0x27f5f8=_0x27f5f8-0x0;let _0x5e5926=a483_0xd53c[_0x27f5f8];return _0x5e5926;};const _0x49dbcc=a483_0x5e59;'use strict';const _=require('lodash'),db=require(_0x49dbcc('0x5'))['db'],logger=require(_0x49dbcc('0x8'))('rpc'),{getSocket}=require('../../rediscache'),socket=getSocket();require('./openchannelInteraction.socket')[_0x49dbcc('0xb')](socket),exports[_0x49dbcc('0xc')]=function(_0x4a9496){const _0x3d4af6=this;return new Promise(function(_0x42b571,_0x24e2d4){const _0x402394=a483_0x5e59;return db[_0x402394('0x3')][_0x402394('0x10')](_0x4a9496['body'],{'raw':_0x4a9496[_0x402394('0x6')]?_0x4a9496[_0x402394('0x6')][_0x402394('0x2')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x4a9496[_0x402394('0x6')]?_0x4a9496[_0x402394('0x6')][_0x402394('0xf')]||null:null,'attributes':_0x4a9496[_0x402394('0x6')]?_0x4a9496[_0x402394('0x6')][_0x402394('0x9')]||null:null,'limit':_0x4a9496[_0x402394('0x6')]?_0x4a9496['options']['limit']||null:null})[_0x402394('0xd')](function(_0x60b686){const _0x495088=_0x402394;logger[_0x495088('0x4')](_0x495088('0xc'),_0x4a9496),logger[_0x495088('0x13')](_0x495088('0xc'),_0x4a9496,JSON[_0x495088('0x14')](_0x60b686)),_0x42b571(_0x60b686);})[_0x402394('0x11')](function(_0x59662c){const _0x45466c=_0x402394;logger[_0x45466c('0x1')](_0x45466c('0xc'),_0x59662c[_0x45466c('0x15')],_0x4a9496),_0x24e2d4(_0x3d4af6[_0x45466c('0x1')](0x1f4,_0x59662c[_0x45466c('0x15')]));});});},exports[_0x49dbcc('0xa')]=function(_0xfafd7b){const _0xcd4df0=this;return new Promise(function(_0x4bb76a,_0x3a377a){const _0x53d0c2=a483_0x5e59;return db[_0x53d0c2('0x3')]['findOne']({'where':_0xfafd7b[_0x53d0c2('0x6')]?_0xfafd7b[_0x53d0c2('0x6')][_0x53d0c2('0xf')]||null:null})[_0x53d0c2('0xd')](function(_0x1f427c){const _0x386e1d=_0x53d0c2;if(_0x1f427c)return _0x1f427c['addTags'](_0xfafd7b['body'][_0x386e1d('0x12')],{'through':_[_0x386e1d('0x0')](_0xfafd7b[_0x386e1d('0x7')],[_0x386e1d('0x12'),'id'])});})[_0x53d0c2('0xd')](function([_0x49b8ae]){const _0x4024f5=_0x53d0c2;logger[_0x4024f5('0x4')]('AddTags',_0xfafd7b),logger[_0x4024f5('0x13')](_0x4024f5('0xe'),_0xfafd7b,JSON[_0x4024f5('0x14')](_0x49b8ae)),_0x4bb76a(_0x49b8ae);})['catch'](function(_0x511925){const _0x18fcaa=_0x53d0c2;logger[_0x18fcaa('0x1')](_0x18fcaa('0xe'),_0x511925[_0x18fcaa('0x15')],_0xfafd7b),_0x3a377a(_0xcd4df0[_0x18fcaa('0x1')](0x1f4,_0x511925[_0x18fcaa('0x15')]));});});}; \ No newline at end of file +const a581_0x2002=['register','UpdateOpenchannelInteraction','message','body','where','addTags','error','../../rediscache','./openchannelInteraction.socket','limit','update','ids','then','options','AddTags','rpc','omit','../../mysqldb','catch','debug','findOne'];(function(_0x55fad2,_0x3cc88a){const _0x200218=function(_0x4c8a6a){while(--_0x4c8a6a){_0x55fad2['push'](_0x55fad2['shift']());}};_0x200218(++_0x3cc88a);}(a581_0x2002,0xa2));const a581_0x4c8a=function(_0x55fad2,_0x3cc88a){_0x55fad2=_0x55fad2-0x6c;let _0x200218=a581_0x2002[_0x55fad2];return _0x200218;};const a581_0xb0a214=a581_0x4c8a;'use strict';const _=require('lodash'),db=require(a581_0xb0a214(0x6e))['db'],logger=require('../../config/logger')(a581_0xb0a214(0x6c)),{getSocket}=require(a581_0xb0a214(0x79)),socket=getSocket();require(a581_0xb0a214(0x7a))[a581_0xb0a214(0x72)](socket),exports[a581_0xb0a214(0x73)]=function(_0x4fbf4a){const _0x1b71ab=this;return new Promise(function(_0x3ccbc3,_0x23443f){const _0xa8b19e=a581_0x4c8a;return db['OpenchannelInteraction'][_0xa8b19e(0x7c)](_0x4fbf4a[_0xa8b19e(0x75)],{'raw':_0x4fbf4a[_0xa8b19e(0x7f)]?_0x4fbf4a['options']['raw']===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x4fbf4a[_0xa8b19e(0x7f)]?_0x4fbf4a[_0xa8b19e(0x7f)][_0xa8b19e(0x76)]||null:null,'attributes':_0x4fbf4a[_0xa8b19e(0x7f)]?_0x4fbf4a[_0xa8b19e(0x7f)]['attributes']||null:null,'limit':_0x4fbf4a[_0xa8b19e(0x7f)]?_0x4fbf4a[_0xa8b19e(0x7f)][_0xa8b19e(0x7b)]||null:null})['then'](function(_0x6ab48c){const _0x255093=_0xa8b19e;logger['info']('UpdateOpenchannelInteraction',_0x4fbf4a),logger[_0x255093(0x70)]('UpdateOpenchannelInteraction',_0x4fbf4a,JSON['stringify'](_0x6ab48c)),_0x3ccbc3(_0x6ab48c);})[_0xa8b19e(0x6f)](function(_0x105da1){const _0x53e54f=_0xa8b19e;logger[_0x53e54f(0x78)]('UpdateOpenchannelInteraction',_0x105da1[_0x53e54f(0x74)],_0x4fbf4a),_0x23443f(_0x1b71ab[_0x53e54f(0x78)](0x1f4,_0x105da1['message']));});});},exports['AddTagsToOpenchannelInteraction']=function(_0x2330c2){const _0x14a5ee=this;return new Promise(function(_0x1e46c0,_0xa2e7cb){const _0x1e0f10=a581_0x4c8a;return db['OpenchannelInteraction'][_0x1e0f10(0x71)]({'where':_0x2330c2['options']?_0x2330c2[_0x1e0f10(0x7f)][_0x1e0f10(0x76)]||null:null})[_0x1e0f10(0x7e)](function(_0xfdcee6){const _0x2df58d=_0x1e0f10;if(_0xfdcee6)return _0xfdcee6[_0x2df58d(0x77)](_0x2330c2['body']['ids'],{'through':_[_0x2df58d(0x6d)](_0x2330c2['body'],[_0x2df58d(0x7d),'id'])});})[_0x1e0f10(0x7e)](function([_0x3d851e]){const _0x264350=_0x1e0f10;logger['info'](_0x264350(0x80),_0x2330c2),logger[_0x264350(0x70)]('AddTags',_0x2330c2,JSON['stringify'](_0x3d851e)),_0x1e46c0(_0x3d851e);})[_0x1e0f10(0x6f)](function(_0x1c1909){const _0x1560bc=_0x1e0f10;logger[_0x1560bc(0x78)]('AddTags',_0x1c1909[_0x1560bc(0x74)],_0x2330c2),_0xa2e7cb(_0x14a5ee[_0x1560bc(0x78)](0x1f4,_0x1c1909['message']));});});}; \ No newline at end of file diff --git a/server/api/openchannelInteraction/openchannelInteraction.socket.js b/server/api/openchannelInteraction/openchannelInteraction.socket.js index 2f3b5ba..29834f8 100644 --- a/server/api/openchannelInteraction/openchannelInteraction.socket.js +++ b/server/api/openchannelInteraction/openchannelInteraction.socket.js @@ -1 +1 @@ -const a484_0x5920=['emit','./openchannelInteraction.events','save','register','length','remove'];(function(_0x58b754,_0x5920ec){const _0x5c1bd6=function(_0x5a7e81){while(--_0x5a7e81){_0x58b754['push'](_0x58b754['shift']());}};_0x5c1bd6(++_0x5920ec);}(a484_0x5920,0xdb));const a484_0x5c1b=function(_0x58b754,_0x5920ec){_0x58b754=_0x58b754-0x0;let _0x5c1bd6=a484_0x5920[_0x58b754];return _0x5c1bd6;};const _0x27d553=a484_0x5c1b;'use strict';const OpenchannelInteractionEvents=require(_0x27d553('0x4')),events=[_0x27d553('0x5'),_0x27d553('0x2'),'update'];function createListener(_0x5a7e81,_0x2e7a44){return function(_0x37e632){const _0xae9c37=a484_0x5c1b;_0x2e7a44[_0xae9c37('0x3')](_0x5a7e81,_0x37e632);};}exports[_0x27d553('0x0')]=function(_0x3a24dc){const _0x209301=_0x27d553;for(let _0x40aaad=0x0,_0x401f80=events[_0x209301('0x1')];_0x40aaad<_0x401f80;_0x40aaad++){const _0x4ac698=events[_0x40aaad],_0xbe195d=createListener('openchannelInteraction:'+_0x4ac698,_0x3a24dc);OpenchannelInteractionEvents['on'](_0x4ac698,_0xbe195d);}}; \ No newline at end of file +const a582_0x5a53=['length','./openchannelInteraction.events','emit','register','update','save'];(function(_0x3722e4,_0x5e9ffb){const _0x5a530d=function(_0x141a99){while(--_0x141a99){_0x3722e4['push'](_0x3722e4['shift']());}};_0x5a530d(++_0x5e9ffb);}(a582_0x5a53,0x1c6));const a582_0x141a=function(_0x3722e4,_0x5e9ffb){_0x3722e4=_0x3722e4-0x193;let _0x5a530d=a582_0x5a53[_0x3722e4];return _0x5a530d;};const a582_0x5c9ae4=a582_0x141a;'use strict';const OpenchannelInteractionEvents=require(a582_0x5c9ae4(0x196)),events=[a582_0x5c9ae4(0x194),'remove',a582_0x5c9ae4(0x193)];function createListener(_0x182b30,_0x52ec09){return function(_0x2f3e66){const _0x37e3ed=a582_0x141a;_0x52ec09[_0x37e3ed(0x197)](_0x182b30,_0x2f3e66);};}exports[a582_0x5c9ae4(0x198)]=function(_0x29ea64){const _0x136902=a582_0x5c9ae4;for(let _0x432c45=0x0,_0x5e8067=events[_0x136902(0x195)];_0x432c45<_0x5e8067;_0x432c45++){const _0x5cd28b=events[_0x432c45],_0x3d5810=createListener('openchannelInteraction:'+_0x5cd28b,_0x29ea64);OpenchannelInteractionEvents['on'](_0x5cd28b,_0x3d5810);}}; \ No newline at end of file diff --git a/server/api/openchannelMessage/index.js b/server/api/openchannelMessage/index.js index 4de3eda..b175dbf 100644 --- a/server/api/openchannelMessage/index.js +++ b/server/api/openchannelMessage/index.js @@ -1 +1 @@ -const a485_0x4e45=['openchannel','/describe','./openchannelMessage.controller','/:id','isAuthenticated','tracked','describe','update','../../components/interaction/service','openchannelmessage:create','put','/:id/accept','reject','show','create','express','Router','../../components/auth/service','delete','get'];(function(_0xf9f5a9,_0x4e4508){const _0xa7cc0=function(_0x22b1f3){while(--_0x22b1f3){_0xf9f5a9['push'](_0xf9f5a9['shift']());}};_0xa7cc0(++_0x4e4508);}(a485_0x4e45,0x15f));const a485_0xa7cc=function(_0xf9f5a9,_0x4e4508){_0xf9f5a9=_0xf9f5a9-0x0;let _0xa7cc0=a485_0x4e45[_0xf9f5a9];return _0xa7cc0;};const _0x4535a1=a485_0xa7cc;'use strict';const express=require(_0x4535a1('0x4')),router=express[_0x4535a1('0x5')](),auth=require(_0x4535a1('0x6')),interaction=require(_0x4535a1('0x11')),controller=require(_0x4535a1('0xb'));router['get']('/',auth[_0x4535a1('0xd')](),controller['index']),router[_0x4535a1('0x8')](_0x4535a1('0xa'),auth[_0x4535a1('0xd')](),controller[_0x4535a1('0xf')]),router[_0x4535a1('0x8')](_0x4535a1('0xc'),auth[_0x4535a1('0xd')](),controller[_0x4535a1('0x2')]),router['post']('/',auth['isAuthenticated'](),interaction[_0x4535a1('0xe')](_0x4535a1('0x9'),_0x4535a1('0x12')),controller[_0x4535a1('0x3')]),router[_0x4535a1('0x13')](_0x4535a1('0xc'),auth['isAuthenticated'](),controller[_0x4535a1('0x10')]),router[_0x4535a1('0x13')](_0x4535a1('0x0'),auth[_0x4535a1('0xd')](),controller['accept']),router[_0x4535a1('0x13')]('/:id/reject',auth[_0x4535a1('0xd')](),controller[_0x4535a1('0x1')]),router[_0x4535a1('0x7')](_0x4535a1('0xc'),auth[_0x4535a1('0xd')](),controller['destroy']),module['exports']=router; \ No newline at end of file +const a583_0x157f=['destroy','/:id','openchannel','exports','describe','index','../../components/auth/service','isAuthenticated','create','put','tracked','get','openchannelmessage:create','./openchannelMessage.controller','/:id/reject','accept','../../components/interaction/service','/:id/accept','delete'];(function(_0x308d62,_0x34d725){const _0x157fb8=function(_0x4ebe86){while(--_0x4ebe86){_0x308d62['push'](_0x308d62['shift']());}};_0x157fb8(++_0x34d725);}(a583_0x157f,0x98));const a583_0x4ebe=function(_0x308d62,_0x34d725){_0x308d62=_0x308d62-0xa2;let _0x157fb8=a583_0x157f[_0x308d62];return _0x157fb8;};const a583_0x777b81=a583_0x4ebe;'use strict';const express=require('express'),router=express['Router'](),auth=require(a583_0x777b81(0xa8)),interaction=require(a583_0x777b81(0xb2)),controller=require(a583_0x777b81(0xaf));router['get']('/',auth['isAuthenticated'](),controller[a583_0x777b81(0xa7)]),router['get']('/describe',auth[a583_0x777b81(0xa9)](),controller[a583_0x777b81(0xa6)]),router[a583_0x777b81(0xad)](a583_0x777b81(0xa3),auth[a583_0x777b81(0xa9)](),controller['show']),router['post']('/',auth[a583_0x777b81(0xa9)](),interaction[a583_0x777b81(0xac)](a583_0x777b81(0xa4),a583_0x777b81(0xae)),controller[a583_0x777b81(0xaa)]),router[a583_0x777b81(0xab)](a583_0x777b81(0xa3),auth[a583_0x777b81(0xa9)](),controller['update']),router[a583_0x777b81(0xab)](a583_0x777b81(0xb3),auth[a583_0x777b81(0xa9)](),controller[a583_0x777b81(0xb1)]),router['put'](a583_0x777b81(0xb0),auth['isAuthenticated'](),controller['reject']),router[a583_0x777b81(0xb4)]('/:id',auth[a583_0x777b81(0xa9)](),controller[a583_0x777b81(0xa2)]),module[a583_0x777b81(0xa5)]=router; \ No newline at end of file diff --git a/server/api/openchannelMessage/openchannelMessage.attributes.js b/server/api/openchannelMessage/openchannelMessage.attributes.js index 03c735e..39ad8c3 100644 --- a/server/api/openchannelMessage/openchannelMessage.attributes.js +++ b/server/api/openchannelMessage/openchannelMessage.attributes.js @@ -1 +1 @@ -const a486_0x7d7b=['exports','DATE','BOOLEAN','STRING','out','sequelize','TEXT'];(function(_0x32c9c4,_0x7d7b10){const _0x2d0706=function(_0x2794ec){while(--_0x2794ec){_0x32c9c4['push'](_0x32c9c4['shift']());}};_0x2d0706(++_0x7d7b10);}(a486_0x7d7b,0xd7));const a486_0x2d07=function(_0x32c9c4,_0x7d7b10){_0x32c9c4=_0x32c9c4-0x0;let _0x2d0706=a486_0x7d7b[_0x32c9c4];return _0x2d0706;};const _0x23f25e=a486_0x2d07;'use strict';const Sequelize=require(_0x23f25e('0x0'));module[_0x23f25e('0x2')]={'body':{'type':Sequelize[_0x23f25e('0x1')]('medium'),'allowNull':![]},'read':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'secret':{'type':Sequelize[_0x23f25e('0x4')],'defaultValue':![]},'direction':{'type':Sequelize['ENUM']('in',_0x23f25e('0x6')),'defaultValue':_0x23f25e('0x6'),'allowNull':![]},'readAt':{'type':Sequelize[_0x23f25e('0x3')]},'providerName':{'type':Sequelize[_0x23f25e('0x5')]},'providerResponse':{'type':Sequelize[_0x23f25e('0x1')]}}; \ No newline at end of file +const a584_0x1469=['BOOLEAN','sequelize','STRING','TEXT','medium','attributes','out','ENUM'];(function(_0x3838dc,_0x48b080){const _0x146984=function(_0x23fd07){while(--_0x23fd07){_0x3838dc['push'](_0x3838dc['shift']());}};_0x146984(++_0x48b080);}(a584_0x1469,0x1ad));const a584_0x23fd=function(_0x3838dc,_0x48b080){_0x3838dc=_0x3838dc-0xd4;let _0x146984=a584_0x1469[_0x3838dc];return _0x146984;};const a584_0x5dcac7=a584_0x23fd;'use strict';const {DataTypes}=require(a584_0x5dcac7(0xd8)),attributes={'body':{'type':DataTypes['TEXT']({'length':a584_0x5dcac7(0xdb)}),'allowNull':![]},'read':{'type':DataTypes[a584_0x5dcac7(0xd7)],'defaultValue':![]},'secret':{'type':DataTypes[a584_0x5dcac7(0xd7)],'defaultValue':![]},'direction':{'type':DataTypes[a584_0x5dcac7(0xd6)]('in',a584_0x5dcac7(0xd5)),'defaultValue':a584_0x5dcac7(0xd5),'allowNull':![]},'readAt':{'type':DataTypes['DATE']},'providerName':{'type':DataTypes[a584_0x5dcac7(0xd9)]},'providerResponse':{'type':DataTypes[a584_0x5dcac7(0xda)]}};module['exports'][a584_0x5dcac7(0xd4)]=attributes; \ No newline at end of file diff --git a/server/api/openchannelMessage/openchannelMessage.controller.js b/server/api/openchannelMessage/openchannelMessage.controller.js index c446b21..7a19dfb 100644 --- a/server/api/openchannelMessage/openchannelMessage.controller.js +++ b/server/api/openchannelMessage/openchannelMessage.controller.js @@ -1 +1 @@ -const a487_0x8481=['rawAttributes','body','options','rows','limit','isNil','request','../../mysqldb','readAt','reject','read','keys','manual','CmContact','filter','model','index','agent','channel','client','name','findAll','rejectmessage','OpenchannelInteraction','./openchannelMessage.socket','interaction','jayson/promise','../../rediscache','interface','catch','merge','format','count','length','OpenchannelMessage,\x20%s,\x20%s','SIP/%s','where','code','error','json','accept','pick','includeAll','create','Contact','type','sequelize','register','YYYY-MM-DD\x20HH:mm:ss','null','offset','update','UserId','fields','acceptmessage','key','result','OpenchannelMessage','openchannel','findOne','stack','query','role','include','stringify','fieldName','api','destroy','acceptMessage','send','util','../../components/parsers/qs','rejectMessage','event','user','Content-Range','EventManager','info','get','attributes','request\x20sent','status','end','then','../../config/logger','sort','map','debug','undefined','message','params','intersection','filters'];(function(_0x3f535d,_0x8481f2){const _0x16e646=function(_0x297de6){while(--_0x297de6){_0x3f535d['push'](_0x3f535d['shift']());}};_0x16e646(++_0x8481f2);}(a487_0x8481,0x1d4));const a487_0x16e6=function(_0x3f535d,_0x8481f2){_0x3f535d=_0x3f535d-0x0;let _0x16e646=a487_0x8481[_0x3f535d];return _0x16e646;};const _0x376791=a487_0x16e6;'use strict';const moment=require('moment'),util=require(_0x376791('0x43')),_=require('lodash'),qs=require(_0x376791('0x44')),logger=require('../../config/logger')(_0x376791('0x3f')),{getSocket}=require(_0x376791('0x18')),socket=getSocket(),interaction_log=require(_0x376791('0x51'))('openchannel-interactions'),db=require(_0x376791('0x4'))['db'],{Op}=require(_0x376791('0x2b'));require(_0x376791('0x15'))[_0x376791('0x2c')](socket);const jayson=require(_0x376791('0x17')),client=jayson[_0x376791('0x10')]['http']({'port':0x232c}),client9002=jayson[_0x376791('0x10')]['http']({'port':0x232a});function respondWithRpcPromise(_0x297de6,_0x2da282,_0x1a5bfe,_0xc247a){return new Promise(function(_0x2d23ff,_0x426017){const _0x1e0ddb=a487_0x16e6,_0x580977=_0xc247a||client;return _0x580977[_0x1e0ddb('0x3')](_0x297de6,_0x1a5bfe)[_0x1e0ddb('0x50')](function(_0x5a510e){const _0x2ec058=_0x1e0ddb;logger[_0x2ec058('0x4a')]('OpenchannelMessage,\x20%s,\x20%s',_0x2da282,_0x2ec058('0x4d')),logger[_0x2ec058('0x54')]('OpenchannelMessage,\x20%s,\x20%s,\x20%s',_0x2da282,_0x2ec058('0x4d'),JSON[_0x2ec058('0x3d')](_0x5a510e));if(_0x5a510e[_0x2ec058('0x23')]){if(_0x5a510e['error'][_0x2ec058('0x22')]===0x1f4)return logger['error'](_0x2ec058('0x1f'),_0x2da282,_0x5a510e['error'][_0x2ec058('0x56')]),_0x426017(_0x5a510e[_0x2ec058('0x23')][_0x2ec058('0x56')]);return logger[_0x2ec058('0x23')](_0x2ec058('0x1f'),_0x2da282,_0x5a510e[_0x2ec058('0x23')][_0x2ec058('0x56')]),_0x2d23ff(_0x5a510e['error'][_0x2ec058('0x56')]);}else logger[_0x2ec058('0x4a')](_0x2ec058('0x1f'),_0x2da282,_0x2ec058('0x4d')),_0x2d23ff(_0x5a510e[_0x2ec058('0x35')]['message']);})['catch'](function(_0x27988b){const _0x42a441=_0x1e0ddb;logger['error'](_0x42a441('0x1f'),_0x2da282,_0x27988b),_0x426017(_0x27988b);});});}function respondWithResult(_0x3ef88f,_0x299e1a){return _0x299e1a=_0x299e1a||0xc8,function(_0x27b8ec){const _0x511ce1=a487_0x16e6;if(_0x27b8ec)return _0x3ef88f[_0x511ce1('0x4e')](_0x299e1a)[_0x511ce1('0x24')](_0x27b8ec);};}function respondWithFilteredResult(_0x3cf80e,_0x21490d){return function(_0x31e858){const _0x581f39=a487_0x16e6;if(_0x31e858){const _0x4f5d0a=_0x31e858[_0x581f39('0x1d')],_0x2ce24c=_0x21490d[_0x581f39('0x2f')];let _0x4e766c=_0x21490d[_0x581f39('0x2f')]+_0x21490d[_0x581f39('0x1')],_0x28cf11;return _0x4e766c>=_0x4f5d0a?(_0x4e766c=_0x4f5d0a,_0x28cf11=0xc8):_0x28cf11=0xce,_0x3cf80e['status'](_0x28cf11),_0x3cf80e['set'](_0x581f39('0x48'),_0x2ce24c+'-'+_0x4e766c+'/'+_0x4f5d0a)[_0x581f39('0x24')](_0x31e858);}return null;};}function saveUpdates(_0x479ae4){return function(_0x51d89e){const _0x885e9a=a487_0x16e6;if(_0x51d89e)return _0x51d89e[_0x885e9a('0x30')](_0x479ae4)[_0x885e9a('0x50')](function(_0x1ec4ff){return _0x1ec4ff;});return null;};}function removeEntity(_0x242780){return function(_0x58b73a){const _0x1d5151=a487_0x16e6;if(_0x58b73a)return _0x58b73a[_0x1d5151('0x40')]()['then'](function(){const _0x410ce5=_0x1d5151;_0x242780['status'](0xcc)[_0x410ce5('0x4f')]();});};}function handleEntityNotFound(_0x2d7753){return function(_0x13131f){return!_0x13131f&&_0x2d7753['sendStatus'](0x194),_0x13131f;};}function handleError(_0x3528e7,_0x26e1eb){return _0x26e1eb=_0x26e1eb||0x1f4,function(_0x1766cb){const _0x5b3e93=a487_0x16e6;logger[_0x5b3e93('0x23')](_0x1766cb[_0x5b3e93('0x39')]),_0x1766cb[_0x5b3e93('0x11')]&&delete _0x1766cb[_0x5b3e93('0x11')],_0x3528e7[_0x5b3e93('0x4e')](_0x26e1eb)[_0x5b3e93('0x42')](_0x1766cb);};}exports[_0x376791('0xd')]=function(_0x3ca941,_0xc5e432){const _0x92b262=_0x376791;let _0x3ef30b={};const _0x3d269b={},_0x2aaeb2={'count':0x0,'rows':[]},_0xa27464=_[_0x92b262('0x53')](db[_0x92b262('0x36')][_0x92b262('0x5a')],function(_0x1389d6){const _0x50f88e=_0x92b262;return{'name':_0x1389d6[_0x50f88e('0x3e')],'type':_0x1389d6['type'][_0x50f88e('0x34')]};});_0x3d269b[_0x92b262('0xc')]=_['map'](_0xa27464,'name'),_0x3d269b[_0x92b262('0x3a')]=_[_0x92b262('0x8')](_0x3ca941[_0x92b262('0x3a')]),_0x3d269b['filters']=_[_0x92b262('0x58')](_0x3d269b[_0x92b262('0xc')],_0x3d269b[_0x92b262('0x3a')]),_0x3ef30b[_0x92b262('0x4c')]=_[_0x92b262('0x58')](_0x3d269b[_0x92b262('0xc')],qs[_0x92b262('0x32')](_0x3ca941[_0x92b262('0x3a')][_0x92b262('0x32')])),_0x3ef30b[_0x92b262('0x4c')]=_0x3ef30b[_0x92b262('0x4c')][_0x92b262('0x1e')]?_0x3ef30b[_0x92b262('0x4c')]:_0x3d269b[_0x92b262('0xc')];typeof _0x3ca941[_0x92b262('0x3a')]['nolimit']===_0x92b262('0x55')&&(_0x3ef30b['limit']=qs['limit'](_0x3ca941['query'][_0x92b262('0x1')]),_0x3ef30b[_0x92b262('0x2f')]=qs[_0x92b262('0x2f')](_0x3ca941[_0x92b262('0x3a')]['offset']));_0x3ef30b['order']=qs[_0x92b262('0x52')](_0x3ca941[_0x92b262('0x3a')][_0x92b262('0x52')]),_0x3ef30b[_0x92b262('0x21')]=qs['filters'](_[_0x92b262('0x26')](_0x3ca941[_0x92b262('0x3a')],_0x3d269b[_0x92b262('0x59')]),_0xa27464);_0x3ca941[_0x92b262('0x3a')][_0x92b262('0xb')]&&(_0x3ef30b[_0x92b262('0x21')]=_['merge'](_0x3ef30b[_0x92b262('0x21')],{[Op['or']]:_[_0x92b262('0x53')](_0xa27464,function(_0x422c90){const _0x4e810c=_0x92b262;if(_0x422c90[_0x4e810c('0x2a')]!=='VIRTUAL'){const _0x4f3e0a={};return _0x4f3e0a[_0x422c90[_0x4e810c('0x11')]]={[Op['like']]:'%'+_0x3ca941['query']['filter']+'%'},_0x4f3e0a;}})}));_0x3ef30b=_['merge']({},_0x3ef30b,_0x3ca941[_0x92b262('0x5c')]);const _0x49975d={'where':_0x3ef30b[_0x92b262('0x21')]};return db['OpenchannelMessage'][_0x92b262('0x1d')](_0x49975d)[_0x92b262('0x50')](function(_0x52acf5){const _0x5962a1=_0x92b262;return _0x2aaeb2[_0x5962a1('0x1d')]=_0x52acf5,_0x3ca941['query'][_0x5962a1('0x27')]&&(_0x3ef30b[_0x5962a1('0x3c')]=[{'all':!![]}]),db[_0x5962a1('0x36')][_0x5962a1('0x12')](_0x3ef30b);})[_0x92b262('0x50')](function(_0x1e4f6e){const _0x475d23=_0x92b262;return _0x2aaeb2[_0x475d23('0x0')]=_0x1e4f6e,_0x2aaeb2;})['then'](respondWithFilteredResult(_0xc5e432,_0x3ef30b))[_0x92b262('0x1a')](handleError(_0xc5e432,null));},exports['show']=function(_0x239999,_0x411525){const _0x5a3405=_0x376791;let _0x6fbe0c={'raw':!![],'where':{'id':_0x239999[_0x5a3405('0x57')]['id']}};const _0x1e3572={};return _0x1e3572[_0x5a3405('0xc')]=_[_0x5a3405('0x8')](db[_0x5a3405('0x36')][_0x5a3405('0x5a')]),_0x1e3572[_0x5a3405('0x3a')]=_[_0x5a3405('0x8')](_0x239999['query']),_0x1e3572[_0x5a3405('0x59')]=_['intersection'](_0x1e3572['model'],_0x1e3572['query']),_0x6fbe0c[_0x5a3405('0x4c')]=_[_0x5a3405('0x58')](_0x1e3572[_0x5a3405('0xc')],qs['fields'](_0x239999[_0x5a3405('0x3a')][_0x5a3405('0x32')])),_0x6fbe0c[_0x5a3405('0x4c')]=_0x6fbe0c['attributes']['length']?_0x6fbe0c[_0x5a3405('0x4c')]:_0x1e3572['model'],_0x239999[_0x5a3405('0x3a')][_0x5a3405('0x27')]&&(_0x6fbe0c['include']=[{'all':!![]}]),_0x6fbe0c=_[_0x5a3405('0x1b')]({},_0x6fbe0c,_0x239999['options']),db['OpenchannelMessage'][_0x5a3405('0x38')](_0x6fbe0c)[_0x5a3405('0x50')](handleEntityNotFound(_0x411525,null))[_0x5a3405('0x50')](respondWithResult(_0x411525,null))['catch'](handleError(_0x411525,null));},exports[_0x376791('0x28')]=function(_0x2e2971,_0x59094c){const _0x4ab62a=_0x376791;return db['OpenchannelMessage'][_0x4ab62a('0x28')](_0x2e2971['body'],{})[_0x4ab62a('0x50')](respondWithResult(_0x59094c,0xc9))[_0x4ab62a('0x1a')](handleError(_0x59094c,null));},exports['update']=function(_0x1574f9,_0x103b42){const _0x5de0fd=_0x376791;return _0x1574f9[_0x5de0fd('0x5b')]['id']&&delete _0x1574f9[_0x5de0fd('0x5b')]['id'],db['OpenchannelMessage'][_0x5de0fd('0x38')]({'where':{'id':_0x1574f9[_0x5de0fd('0x57')]['id']}})[_0x5de0fd('0x50')](handleEntityNotFound(_0x103b42,null))[_0x5de0fd('0x50')](saveUpdates(_0x1574f9['body'],null))[_0x5de0fd('0x50')](respondWithResult(_0x103b42,null))[_0x5de0fd('0x1a')](handleError(_0x103b42,null));},exports[_0x376791('0x40')]=function(_0xfec061,_0x292aa2){const _0x1edc8a=_0x376791;return db[_0x1edc8a('0x36')]['findOne']({'where':{'id':_0xfec061[_0x1edc8a('0x57')]['id']}})[_0x1edc8a('0x50')](handleEntityNotFound(_0x292aa2,null))[_0x1edc8a('0x50')](removeEntity(_0x292aa2,null))['catch'](handleError(_0x292aa2,null));},exports['describe']=function(_0x1480ea,_0x5977a8){const _0x23e4b8=_0x376791;return db[_0x23e4b8('0x36')]['describe']()[_0x23e4b8('0x50')](respondWithResult(_0x5977a8,null))[_0x23e4b8('0x1a')](handleError(_0x5977a8,null));},exports[_0x376791('0x25')]=function(_0x555809,_0x56db5c){const _0x17007c=_0x376791,_0xc0002d={'channel':_0x17007c('0x37')};return _0x555809[_0x17007c('0x5b')]['id']&&delete _0x555809[_0x17007c('0x5b')]['id'],_0x555809[_0x17007c('0x5b')][_0x17007c('0x7')]=!![],_0x555809[_0x17007c('0x5b')][_0x17007c('0x5')]=moment()[_0x17007c('0x1c')](_0x17007c('0x2d')),_0x555809['body']['UserId']=_0x555809[_0x17007c('0x5b')][_0x17007c('0x31')]||_0x555809[_0x17007c('0x47')]['id'],db[_0x17007c('0x36')][_0x17007c('0x38')]({'where':{'id':_0x555809[_0x17007c('0x57')]['id'],'UserId':null},'include':[{'model':db[_0x17007c('0xa')],'as':_0x17007c('0x29')}]})[_0x17007c('0x50')](handleEntityNotFound(_0x56db5c,null))[_0x17007c('0x50')](saveUpdates(_0x555809[_0x17007c('0x5b')],null))[_0x17007c('0x50')](function(_0x2fc195){const _0x5d365a=_0x17007c;if(_0x2fc195)return _0xc0002d[_0x5d365a('0x56')]=_0x2fc195[_0x5d365a('0x4b')]({'plain':!![]}),db[_0x5d365a('0x14')][_0x5d365a('0x38')]({'where':{'id':_0x2fc195['OpenchannelInteractionId']}});return null;})[_0x17007c('0x50')](handleEntityNotFound(_0x56db5c,null))[_0x17007c('0x50')](function(_0x3609da){const _0x2616a8=_0x17007c;if(_0x3609da)return _0x3609da[_0x2616a8('0x30')]({'UserId':_0x555809[_0x2616a8('0x5b')][_0x2616a8('0x31')],'read1stAt':_[_0x2616a8('0x2')](_0x3609da['read1stAt'])?moment()[_0x2616a8('0x1c')](_0x2616a8('0x2d')):undefined});return null;})[_0x17007c('0x50')](function(_0x561782){const _0x1f2466=_0x17007c;if(_0x561782)return _0xc0002d[_0x1f2466('0x16')]=_0x561782[_0x1f2466('0x4b')]({'plain':!![]}),interaction_log[_0x1f2466('0x4a')]('[OPENCHANNELMESSAGE:ACCEPT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s',_0x555809['user']['id'],_0x555809['user'][_0x1f2466('0x11')],_0x555809['user'][_0x1f2466('0x3b')],_0xc0002d['interaction']['id'],_0x555809[_0x1f2466('0x5b')]?JSON[_0x1f2466('0x3d')](_0x555809[_0x1f2466('0x5b')]):'null'),respondWithRpcPromise('AcceptMessage',_0x1f2466('0x41'),_0xc0002d);return null;})[_0x17007c('0x50')](function(_0x582ef9){const _0x1347e7=_0x17007c;if(_0x582ef9){if(_0x555809['body'][_0x1347e7('0x9')])return _0xc0002d[_0x1347e7('0x56')][_0x1347e7('0x19')]=util['format'](_0x1347e7('0x20'),_0x555809['user'][_0x1347e7('0x11')]),_0xc0002d['message']['channel']=_0xc0002d['channel'],_0xc0002d[_0x1347e7('0x56')][_0x1347e7('0x46')]=_0x1347e7('0x25'),respondWithRpcPromise(_0x1347e7('0x49'),'EventManager',{'event':_0x1347e7('0x33'),'message':_0xc0002d['message']},client9002)[_0x1347e7('0x50')](function(){return _0xc0002d;});return _0xc0002d;}return null;})[_0x17007c('0x50')](respondWithResult(_0x56db5c,null))[_0x17007c('0x1a')](handleError(_0x56db5c,null));},exports[_0x376791('0x6')]=function(_0x10d863,_0x4b77dc){const _0x4bf856=_0x376791,_0x571bc5={'agent':{},'channel':_0x4bf856('0x37')};return _0x10d863['body']['id']&&delete _0x10d863[_0x4bf856('0x5b')]['id'],_0x10d863[_0x4bf856('0x5b')][_0x4bf856('0x31')]=_0x10d863[_0x4bf856('0x5b')]['UserId']||_0x10d863['user']['id'],_0x571bc5[_0x4bf856('0xe')]['id']=_0x10d863[_0x4bf856('0x5b')][_0x4bf856('0x31')],db[_0x4bf856('0x36')][_0x4bf856('0x38')]({'where':{'id':_0x10d863['params']['id'],'UserId':null}})[_0x4bf856('0x50')](handleEntityNotFound(_0x4b77dc,null))[_0x4bf856('0x50')](function(_0x3c9b73){const _0x342493=_0x4bf856;if(_0x3c9b73)return _0x571bc5[_0x342493('0x56')]=_0x3c9b73[_0x342493('0x4b')]({'plain':!![]}),db[_0x342493('0x14')]['findOne']({'where':{'id':_0x3c9b73['OpenchannelInteractionId']}});return null;})[_0x4bf856('0x50')](handleEntityNotFound(_0x4b77dc,null))[_0x4bf856('0x50')](function(_0x368115){const _0x6b772d=_0x4bf856;if(_0x368115)return _0x571bc5[_0x6b772d('0x16')]=_0x368115[_0x6b772d('0x4b')]({'plain':!![]}),interaction_log[_0x6b772d('0x4a')]('[OPENCHANNELMESSAGE:REJECT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s',_0x10d863[_0x6b772d('0x47')]['id'],_0x10d863[_0x6b772d('0x47')]['name'],_0x10d863[_0x6b772d('0x47')][_0x6b772d('0x3b')],_0x571bc5[_0x6b772d('0x16')]['id'],_0x10d863[_0x6b772d('0x5b')]?JSON[_0x6b772d('0x3d')](_0x10d863[_0x6b772d('0x5b')]):_0x6b772d('0x2e')),respondWithRpcPromise('RejectMessage',_0x6b772d('0x45'),_0x571bc5);return null;})[_0x4bf856('0x50')](function(_0x2ff8ce){const _0x241587=_0x4bf856;if(_0x2ff8ce)return _0x2ff8ce[_0x241587('0x56')][_0x241587('0x19')]=util[_0x241587('0x1c')](_0x241587('0x20'),_0x10d863[_0x241587('0x47')][_0x241587('0x11')]),_0x2ff8ce[_0x241587('0x56')][_0x241587('0xf')]=_0x571bc5['channel'],_0x2ff8ce[_0x241587('0x56')]['event']='reject',respondWithRpcPromise(_0x241587('0x49'),_0x241587('0x49'),{'event':_0x241587('0x13'),'message':_0x2ff8ce[_0x241587('0x56')]},client9002),_0x571bc5;return null;})[_0x4bf856('0x50')](respondWithResult(_0x4b77dc,null))[_0x4bf856('0x1a')](handleError(_0x4b77dc,null));}; \ No newline at end of file +const a585_0x4f10=['openchannel','UserId','merge','then','sort','includeAll','set','update','interface','client','YYYY-MM-DD\x20HH:mm:ss','interaction','undefined','body','destroy','OpenchannelMessage,\x20%s,\x20%s','limit','role','map','user','acceptMessage','format','where','message','fieldName','end','sequelize','rows','acceptmessage','name','filters','EventManager','params','debug','stringify','nolimit','pick','keys','query','attributes','OpenchannelInteractionId','moment','OpenchannelInteraction','accept','request\x20sent','findAll','../../rediscache','manual','OpenchannelMessage','[OPENCHANNELMESSAGE:ACCEPT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s','OpenchannelMessage,\x20%s,\x20%s,\x20%s','index','length','jayson/promise','rejectMessage','describe','Content-Range','show','error','type','stack','model','info','intersection','openchannel-interactions','status','lodash','filter','../../config/logger','CmContact','http','../../mysqldb','json','event','result','findOne','rawAttributes','request','channel','get','options','util','null','fields','[OPENCHANNELMESSAGE:REJECT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s','AcceptMessage','create','./openchannelMessage.socket','reject','api','catch','include','send','offset'];(function(_0x2d9e21,_0x2aee70){const _0x4f1068=function(_0x759021){while(--_0x759021){_0x2d9e21['push'](_0x2d9e21['shift']());}};_0x4f1068(++_0x2aee70);}(a585_0x4f10,0x133));const a585_0x7590=function(_0x2d9e21,_0x2aee70){_0x2d9e21=_0x2d9e21-0x159;let _0x4f1068=a585_0x4f10[_0x2d9e21];return _0x4f1068;};const a585_0x301fe9=a585_0x7590;'use strict';const moment=require(a585_0x301fe9(0x169)),util=require(a585_0x301fe9(0x191)),_=require(a585_0x301fe9(0x182)),qs=require('../../components/parsers/qs'),logger=require(a585_0x301fe9(0x184))(a585_0x301fe9(0x199)),{getSocket}=require(a585_0x301fe9(0x16e)),socket=getSocket(),interaction_log=require(a585_0x301fe9(0x184))(a585_0x301fe9(0x180)),{db}=require(a585_0x301fe9(0x187)),{Op}=require(a585_0x301fe9(0x15a));require(a585_0x301fe9(0x197))['register'](socket);const jayson=require(a585_0x301fe9(0x175)),client=jayson[a585_0x301fe9(0x1a7)]['http']({'port':0x232c}),client9002=jayson[a585_0x301fe9(0x1a7)][a585_0x301fe9(0x186)]({'port':0x232a});function respondWithRpcPromise(_0x1c0e3e,_0xf283bb,_0x1f1675,_0x25e98a){return new Promise(function(_0x3319e8,_0x1ed86e){const _0x15c8b9=a585_0x7590,_0xadb182=_0x25e98a||client;return _0xadb182[_0x15c8b9(0x18d)](_0x1c0e3e,_0x1f1675)['then'](function(_0x37d73e){const _0x271ed4=_0x15c8b9;logger['info'](_0x271ed4(0x1ad),_0xf283bb,_0x271ed4(0x16c)),logger[_0x271ed4(0x161)](_0x271ed4(0x172),_0xf283bb,_0x271ed4(0x16c),JSON[_0x271ed4(0x162)](_0x37d73e));if(_0x37d73e['error']){if(_0x37d73e[_0x271ed4(0x17a)]['code']===0x1f4)return logger['error'](_0x271ed4(0x1ad),_0xf283bb,_0x37d73e[_0x271ed4(0x17a)][_0x271ed4(0x1b5)]),_0x1ed86e(_0x37d73e[_0x271ed4(0x17a)][_0x271ed4(0x1b5)]);return logger[_0x271ed4(0x17a)]('OpenchannelMessage,\x20%s,\x20%s',_0xf283bb,_0x37d73e[_0x271ed4(0x17a)][_0x271ed4(0x1b5)]),_0x3319e8(_0x37d73e[_0x271ed4(0x17a)][_0x271ed4(0x1b5)]);}else logger['info'](_0x271ed4(0x1ad),_0xf283bb,_0x271ed4(0x16c)),_0x3319e8(_0x37d73e[_0x271ed4(0x18a)]['message']);})[_0x15c8b9(0x19a)](function(_0x51292e){const _0x3df1a6=_0x15c8b9;logger[_0x3df1a6(0x17a)]('OpenchannelMessage,\x20%s,\x20%s',_0xf283bb,_0x51292e),_0x1ed86e(_0x51292e);});});}function respondWithResult(_0x221f6b,_0x4dff49){return _0x4dff49=_0x4dff49||0xc8,function(_0x55f0f0){const _0xb79d76=a585_0x7590;if(_0x55f0f0)return _0x221f6b['status'](_0x4dff49)[_0xb79d76(0x188)](_0x55f0f0);};}function respondWithFilteredResult(_0x1550b3,_0x5a0ff0){return function(_0x5bbf4e){const _0x1bf58b=a585_0x7590;if(_0x5bbf4e){const _0x12cce0=_0x5bbf4e['count'],_0x18bd81=_0x5a0ff0[_0x1bf58b(0x19d)];let _0x324e98=_0x5a0ff0[_0x1bf58b(0x19d)]+_0x5a0ff0[_0x1bf58b(0x1ae)],_0x189a73;return _0x324e98>=_0x12cce0?(_0x324e98=_0x12cce0,_0x189a73=0xc8):_0x189a73=0xce,_0x1550b3['status'](_0x189a73),_0x1550b3[_0x1bf58b(0x1a4)](_0x1bf58b(0x178),_0x18bd81+'-'+_0x324e98+'/'+_0x12cce0)[_0x1bf58b(0x188)](_0x5bbf4e);}return null;};}function saveUpdates(_0x130824){return function(_0x56d8f2){const _0x1733e8=a585_0x7590;if(_0x56d8f2)return _0x56d8f2[_0x1733e8(0x1a5)](_0x130824)[_0x1733e8(0x1a1)](function(_0x297a99){return _0x297a99;});return null;};}function removeEntity(_0x46ab00){return function(_0x4678d5){const _0x1f3fc3=a585_0x7590;if(_0x4678d5)return _0x4678d5[_0x1f3fc3(0x1ac)]()[_0x1f3fc3(0x1a1)](function(){const _0x196e4f=_0x1f3fc3;_0x46ab00[_0x196e4f(0x181)](0xcc)[_0x196e4f(0x159)]();});};}function handleEntityNotFound(_0x2895a1){return function(_0x33bddd){return!_0x33bddd&&_0x2895a1['sendStatus'](0x194),_0x33bddd;};}function handleError(_0x3f292b,_0x42f5d6){return _0x42f5d6=_0x42f5d6||0x1f4,function(_0x5e62d6){const _0x3df7e7=a585_0x7590;logger[_0x3df7e7(0x17a)](_0x5e62d6[_0x3df7e7(0x17c)]),_0x5e62d6[_0x3df7e7(0x15d)]&&delete _0x5e62d6['name'],_0x3f292b['status'](_0x42f5d6)[_0x3df7e7(0x19c)](_0x5e62d6);};}exports[a585_0x301fe9(0x173)]=function(_0x1868d6,_0x5a176a){const _0x362b1e=a585_0x301fe9;let _0x3884d0={};const _0x16b27f={},_0x4ec7fa={'count':0x0,'rows':[]},_0x22158b=_[_0x362b1e(0x1b0)](db[_0x362b1e(0x170)][_0x362b1e(0x18c)],function(_0x560cd1){const _0x191c70=_0x362b1e;return{'name':_0x560cd1[_0x191c70(0x1b6)],'type':_0x560cd1[_0x191c70(0x17b)]['key']};});_0x16b27f['model']=_[_0x362b1e(0x1b0)](_0x22158b,_0x362b1e(0x15d)),_0x16b27f[_0x362b1e(0x166)]=_[_0x362b1e(0x165)](_0x1868d6[_0x362b1e(0x166)]),_0x16b27f[_0x362b1e(0x15e)]=_[_0x362b1e(0x17f)](_0x16b27f['model'],_0x16b27f[_0x362b1e(0x166)]),_0x3884d0['attributes']=_[_0x362b1e(0x17f)](_0x16b27f['model'],qs[_0x362b1e(0x193)](_0x1868d6[_0x362b1e(0x166)][_0x362b1e(0x193)])),_0x3884d0[_0x362b1e(0x167)]=_0x3884d0['attributes']['length']?_0x3884d0[_0x362b1e(0x167)]:_0x16b27f[_0x362b1e(0x17d)];typeof _0x1868d6['query'][_0x362b1e(0x163)]===_0x362b1e(0x1aa)&&(_0x3884d0[_0x362b1e(0x1ae)]=qs[_0x362b1e(0x1ae)](_0x1868d6[_0x362b1e(0x166)]['limit']),_0x3884d0[_0x362b1e(0x19d)]=qs[_0x362b1e(0x19d)](_0x1868d6[_0x362b1e(0x166)]['offset']));_0x3884d0['order']=qs[_0x362b1e(0x1a2)](_0x1868d6[_0x362b1e(0x166)][_0x362b1e(0x1a2)]),_0x3884d0['where']=qs[_0x362b1e(0x15e)](_[_0x362b1e(0x164)](_0x1868d6['query'],_0x16b27f[_0x362b1e(0x15e)]),_0x22158b);_0x1868d6['query'][_0x362b1e(0x183)]&&(_0x3884d0['where']=_['merge'](_0x3884d0[_0x362b1e(0x1b4)],{[Op['or']]:_[_0x362b1e(0x1b0)](_0x22158b,function(_0x5b2cba){const _0x55664e=_0x362b1e;if(_0x5b2cba[_0x55664e(0x17b)]!=='VIRTUAL'){const _0x13be7f={};return _0x13be7f[_0x5b2cba[_0x55664e(0x15d)]]={[Op['like']]:'%'+_0x1868d6[_0x55664e(0x166)][_0x55664e(0x183)]+'%'},_0x13be7f;}})}));_0x3884d0=_[_0x362b1e(0x1a0)]({},_0x3884d0,_0x1868d6['options']);const _0xb101b4={'where':_0x3884d0['where']};return db['OpenchannelMessage']['count'](_0xb101b4)[_0x362b1e(0x1a1)](function(_0x63405d){const _0x2ba2eb=_0x362b1e;return _0x4ec7fa['count']=_0x63405d,_0x1868d6[_0x2ba2eb(0x166)][_0x2ba2eb(0x1a3)]&&(_0x3884d0[_0x2ba2eb(0x19b)]=[{'all':!![]}]),db[_0x2ba2eb(0x170)][_0x2ba2eb(0x16d)](_0x3884d0);})[_0x362b1e(0x1a1)](function(_0x36b0df){const _0xdb3932=_0x362b1e;return _0x4ec7fa[_0xdb3932(0x15b)]=_0x36b0df,_0x4ec7fa;})[_0x362b1e(0x1a1)](respondWithFilteredResult(_0x5a176a,_0x3884d0))['catch'](handleError(_0x5a176a,null));},exports[a585_0x301fe9(0x179)]=function(_0x85b8c1,_0x348aea){const _0x588d6e=a585_0x301fe9;let _0x2ab9b5={'raw':!![],'where':{'id':_0x85b8c1[_0x588d6e(0x160)]['id']}};const _0x246f5b={};return _0x246f5b[_0x588d6e(0x17d)]=_[_0x588d6e(0x165)](db[_0x588d6e(0x170)][_0x588d6e(0x18c)]),_0x246f5b[_0x588d6e(0x166)]=_[_0x588d6e(0x165)](_0x85b8c1[_0x588d6e(0x166)]),_0x246f5b['filters']=_[_0x588d6e(0x17f)](_0x246f5b[_0x588d6e(0x17d)],_0x246f5b[_0x588d6e(0x166)]),_0x2ab9b5['attributes']=_['intersection'](_0x246f5b['model'],qs['fields'](_0x85b8c1[_0x588d6e(0x166)]['fields'])),_0x2ab9b5[_0x588d6e(0x167)]=_0x2ab9b5['attributes'][_0x588d6e(0x174)]?_0x2ab9b5[_0x588d6e(0x167)]:_0x246f5b[_0x588d6e(0x17d)],_0x85b8c1[_0x588d6e(0x166)][_0x588d6e(0x1a3)]&&(_0x2ab9b5[_0x588d6e(0x19b)]=[{'all':!![]}]),_0x2ab9b5=_[_0x588d6e(0x1a0)]({},_0x2ab9b5,_0x85b8c1[_0x588d6e(0x190)]),db['OpenchannelMessage']['findOne'](_0x2ab9b5)[_0x588d6e(0x1a1)](handleEntityNotFound(_0x348aea,null))[_0x588d6e(0x1a1)](respondWithResult(_0x348aea,null))['catch'](handleError(_0x348aea,null));},exports['create']=function(_0x5a9f2e,_0xd2d20d){const _0x15067c=a585_0x301fe9;return db[_0x15067c(0x170)][_0x15067c(0x196)](_0x5a9f2e[_0x15067c(0x1ab)],{})[_0x15067c(0x1a1)](respondWithResult(_0xd2d20d,0xc9))[_0x15067c(0x19a)](handleError(_0xd2d20d,null));},exports[a585_0x301fe9(0x1a5)]=function(_0x5d4943,_0x3a7062){const _0x699875=a585_0x301fe9;return _0x5d4943['body']['id']&&delete _0x5d4943['body']['id'],db['OpenchannelMessage'][_0x699875(0x18b)]({'where':{'id':_0x5d4943[_0x699875(0x160)]['id']}})[_0x699875(0x1a1)](handleEntityNotFound(_0x3a7062,null))[_0x699875(0x1a1)](saveUpdates(_0x5d4943['body'],null))['then'](respondWithResult(_0x3a7062,null))[_0x699875(0x19a)](handleError(_0x3a7062,null));},exports[a585_0x301fe9(0x1ac)]=function(_0x1e97ae,_0x53a5c4){const _0x3598ce=a585_0x301fe9;return db[_0x3598ce(0x170)][_0x3598ce(0x18b)]({'where':{'id':_0x1e97ae[_0x3598ce(0x160)]['id']}})['then'](handleEntityNotFound(_0x53a5c4,null))['then'](removeEntity(_0x53a5c4,null))['catch'](handleError(_0x53a5c4,null));},exports[a585_0x301fe9(0x177)]=function(_0x1f70cd,_0x46e4c6){const _0xd79a6f=a585_0x301fe9;return db['OpenchannelMessage'][_0xd79a6f(0x177)]()[_0xd79a6f(0x1a1)](respondWithResult(_0x46e4c6,null))[_0xd79a6f(0x19a)](handleError(_0x46e4c6,null));},exports[a585_0x301fe9(0x16b)]=function(_0x1bcc8e,_0x5e2616){const _0x3f1c44=a585_0x301fe9,_0x34a6b5={'channel':_0x3f1c44(0x19e)};return _0x1bcc8e[_0x3f1c44(0x1ab)]['id']&&delete _0x1bcc8e[_0x3f1c44(0x1ab)]['id'],_0x1bcc8e[_0x3f1c44(0x1ab)]['read']=!![],_0x1bcc8e[_0x3f1c44(0x1ab)]['readAt']=moment()[_0x3f1c44(0x1b3)](_0x3f1c44(0x1a8)),_0x1bcc8e['body'][_0x3f1c44(0x19f)]=_0x1bcc8e[_0x3f1c44(0x1ab)][_0x3f1c44(0x19f)]||_0x1bcc8e['user']['id'],db[_0x3f1c44(0x170)][_0x3f1c44(0x18b)]({'where':{'id':_0x1bcc8e[_0x3f1c44(0x160)]['id'],'UserId':null},'include':[{'model':db[_0x3f1c44(0x185)],'as':'Contact'}]})[_0x3f1c44(0x1a1)](handleEntityNotFound(_0x5e2616,null))[_0x3f1c44(0x1a1)](saveUpdates(_0x1bcc8e[_0x3f1c44(0x1ab)],null))['then'](function(_0x5599be){const _0x5c1de6=_0x3f1c44;if(_0x5599be)return _0x34a6b5['message']=_0x5599be['get']({'plain':!![]}),db['OpenchannelInteraction'][_0x5c1de6(0x18b)]({'where':{'id':_0x5599be[_0x5c1de6(0x168)]}});return null;})[_0x3f1c44(0x1a1)](handleEntityNotFound(_0x5e2616,null))[_0x3f1c44(0x1a1)](function(_0x5299fb){const _0x106b10=_0x3f1c44;if(_0x5299fb)return _0x5299fb[_0x106b10(0x1a5)]({'UserId':_0x1bcc8e[_0x106b10(0x1ab)][_0x106b10(0x19f)],'read1stAt':_['isNil'](_0x5299fb['read1stAt'])?moment()[_0x106b10(0x1b3)]('YYYY-MM-DD\x20HH:mm:ss'):undefined});return null;})[_0x3f1c44(0x1a1)](function(_0x2823db){const _0x45223a=_0x3f1c44;if(_0x2823db)return _0x34a6b5[_0x45223a(0x1a9)]=_0x2823db[_0x45223a(0x18f)]({'plain':!![]}),interaction_log[_0x45223a(0x17e)](_0x45223a(0x171),_0x1bcc8e[_0x45223a(0x1b1)]['id'],_0x1bcc8e[_0x45223a(0x1b1)][_0x45223a(0x15d)],_0x1bcc8e[_0x45223a(0x1b1)][_0x45223a(0x1af)],_0x34a6b5[_0x45223a(0x1a9)]['id'],_0x1bcc8e['body']?JSON[_0x45223a(0x162)](_0x1bcc8e[_0x45223a(0x1ab)]):'null'),respondWithRpcPromise(_0x45223a(0x195),_0x45223a(0x1b2),_0x34a6b5);return null;})[_0x3f1c44(0x1a1)](function(_0x4e5f2d){const _0x1121ae=_0x3f1c44;if(_0x4e5f2d){if(_0x1bcc8e['body'][_0x1121ae(0x16f)])return _0x34a6b5[_0x1121ae(0x1b5)][_0x1121ae(0x1a6)]=util[_0x1121ae(0x1b3)]('SIP/%s',_0x1bcc8e[_0x1121ae(0x1b1)][_0x1121ae(0x15d)]),_0x34a6b5[_0x1121ae(0x1b5)][_0x1121ae(0x18e)]=_0x34a6b5['channel'],_0x34a6b5['message']['event']=_0x1121ae(0x16b),respondWithRpcPromise(_0x1121ae(0x15f),_0x1121ae(0x15f),{'event':_0x1121ae(0x15c),'message':_0x34a6b5['message']},client9002)['then'](function(){return _0x34a6b5;});return _0x34a6b5;}return null;})['then'](respondWithResult(_0x5e2616,null))['catch'](handleError(_0x5e2616,null));},exports[a585_0x301fe9(0x198)]=function(_0x519bec,_0x2e2ba0){const _0x454d66=a585_0x301fe9,_0x25a369={'agent':{},'channel':_0x454d66(0x19e)};return _0x519bec['body']['id']&&delete _0x519bec[_0x454d66(0x1ab)]['id'],_0x519bec[_0x454d66(0x1ab)][_0x454d66(0x19f)]=_0x519bec[_0x454d66(0x1ab)][_0x454d66(0x19f)]||_0x519bec[_0x454d66(0x1b1)]['id'],_0x25a369['agent']['id']=_0x519bec['body'][_0x454d66(0x19f)],db[_0x454d66(0x170)]['findOne']({'where':{'id':_0x519bec['params']['id'],'UserId':null}})['then'](handleEntityNotFound(_0x2e2ba0,null))[_0x454d66(0x1a1)](function(_0x54da6a){const _0x1922eb=_0x454d66;if(_0x54da6a)return _0x25a369['message']=_0x54da6a[_0x1922eb(0x18f)]({'plain':!![]}),db[_0x1922eb(0x16a)][_0x1922eb(0x18b)]({'where':{'id':_0x54da6a[_0x1922eb(0x168)]}});return null;})[_0x454d66(0x1a1)](handleEntityNotFound(_0x2e2ba0,null))[_0x454d66(0x1a1)](function(_0x20964d){const _0x563ad7=_0x454d66;if(_0x20964d)return _0x25a369['interaction']=_0x20964d[_0x563ad7(0x18f)]({'plain':!![]}),interaction_log[_0x563ad7(0x17e)](_0x563ad7(0x194),_0x519bec[_0x563ad7(0x1b1)]['id'],_0x519bec[_0x563ad7(0x1b1)][_0x563ad7(0x15d)],_0x519bec['user'][_0x563ad7(0x1af)],_0x25a369['interaction']['id'],_0x519bec[_0x563ad7(0x1ab)]?JSON['stringify'](_0x519bec[_0x563ad7(0x1ab)]):_0x563ad7(0x192)),respondWithRpcPromise('RejectMessage',_0x563ad7(0x176),_0x25a369);return null;})[_0x454d66(0x1a1)](function(_0x40c222){const _0x2ed019=_0x454d66;if(_0x40c222)return _0x40c222[_0x2ed019(0x1b5)][_0x2ed019(0x1a6)]=util[_0x2ed019(0x1b3)]('SIP/%s',_0x519bec['user'][_0x2ed019(0x15d)]),_0x40c222[_0x2ed019(0x1b5)][_0x2ed019(0x18e)]=_0x25a369[_0x2ed019(0x18e)],_0x40c222[_0x2ed019(0x1b5)][_0x2ed019(0x189)]=_0x2ed019(0x198),respondWithRpcPromise(_0x2ed019(0x15f),'EventManager',{'event':'rejectmessage','message':_0x40c222[_0x2ed019(0x1b5)]},client9002),_0x25a369;return null;})[_0x454d66(0x1a1)](respondWithResult(_0x2e2ba0,null))[_0x454d66(0x19a)](handleError(_0x2e2ba0,null));}; \ No newline at end of file diff --git a/server/api/openchannelMessage/openchannelMessage.events.js b/server/api/openchannelMessage/openchannelMessage.events.js index bc563b1..0cf76e5 100644 --- a/server/api/openchannelMessage/openchannelMessage.events.js +++ b/server/api/openchannelMessage/openchannelMessage.events.js @@ -1 +1 @@ -const a488_0x1f64=['emit','OpenchannelMessage','remove','undefined','../../mysqldb','events','save'];(function(_0x238cf2,_0x1f64b4){const _0x18278b=function(_0x257392){while(--_0x257392){_0x238cf2['push'](_0x238cf2['shift']());}};_0x18278b(++_0x1f64b4);}(a488_0x1f64,0x1c6));const a488_0x1827=function(_0x238cf2,_0x1f64b4){_0x238cf2=_0x238cf2-0x0;let _0x18278b=a488_0x1f64[_0x238cf2];return _0x18278b;};const _0x41a36b=a488_0x1827;'use strict';const EventEmitter=require(_0x41a36b('0x6')),OpenchannelMessage=require(_0x41a36b('0x5'))['db'][_0x41a36b('0x2')],OpenchannelMessageEvents=new EventEmitter();OpenchannelMessageEvents['setMaxListeners'](0x0);const events={'afterCreate':_0x41a36b('0x0'),'afterUpdate':'update','afterDestroy':_0x41a36b('0x3')};function emitEvent(_0x257392){return function(_0x1fa5c4){const _0x27ed50=a488_0x1827;OpenchannelMessageEvents[_0x27ed50('0x1')](_0x257392+':'+_0x1fa5c4['id'],_0x1fa5c4),OpenchannelMessageEvents[_0x27ed50('0x1')](_0x257392,_0x1fa5c4);};}for(const e in events){if(typeof events[e]!==_0x41a36b('0x4')){const event=events[e];OpenchannelMessage['addHook'](e,emitEvent(event));}}module['exports']=OpenchannelMessageEvents; \ No newline at end of file +const a586_0x2327=['update','undefined','remove','addHook','emit','save','../../mysqldb','exports','events'];(function(_0x41cfca,_0x1aeaac){const _0x232734=function(_0x87415c){while(--_0x87415c){_0x41cfca['push'](_0x41cfca['shift']());}};_0x232734(++_0x1aeaac);}(a586_0x2327,0x17c));const a586_0x8741=function(_0x41cfca,_0x1aeaac){_0x41cfca=_0x41cfca-0x18a;let _0x232734=a586_0x2327[_0x41cfca];return _0x232734;};const a586_0x379487=a586_0x8741;'use strict';const EventEmitter=require(a586_0x379487(0x190)),OpenchannelMessage=require(a586_0x379487(0x18e))['db']['OpenchannelMessage'],OpenchannelMessageEvents=new EventEmitter();OpenchannelMessageEvents['setMaxListeners'](0x0);const events={'afterCreate':a586_0x379487(0x18d),'afterUpdate':a586_0x379487(0x191),'afterDestroy':a586_0x379487(0x18a)};function emitEvent(_0x3c5e91){return function(_0x496036){const _0x3d0636=a586_0x8741;OpenchannelMessageEvents[_0x3d0636(0x18c)](_0x3c5e91+':'+_0x496036['id'],_0x496036),OpenchannelMessageEvents[_0x3d0636(0x18c)](_0x3c5e91,_0x496036);};}for(const e in events){if(typeof events[e]!==a586_0x379487(0x192)){const event=events[e];OpenchannelMessage[a586_0x379487(0x18b)](e,emitEvent(event));}}module[a586_0x379487(0x18f)]=OpenchannelMessageEvents; \ No newline at end of file diff --git a/server/api/openchannelMessage/openchannelMessage.model.js b/server/api/openchannelMessage/openchannelMessage.model.js index bfd75d8..5f5dd48 100644 --- a/server/api/openchannelMessage/openchannelMessage.model.js +++ b/server/api/openchannelMessage/openchannelMessage.model.js @@ -1 +1 @@ -const a489_0x3799=['afterCreate','Interactions','secret','CmContact','exports','toLowerCase','fti_openchannel_messages','get','direction','replyUri','error','isNil','define','body','models','./openchannelMessage.attributes','createdAt','update','api','finally','inspect','OpenchannelMessage,\x20%s,\x20%s','OpenchannelInteractionId','length','then','../../config/logger','lodash','threadId','keys','findOne','Interaction','catch','GET','openchannel_messages','out','info','Contact','utf8mb4_unicode_ci','omit','format','OpenchannelMessage','utf8mb4','request-promise-native','method'];(function(_0x2c1007,_0x379994){const _0xcd0cda=function(_0xe11746){while(--_0xe11746){_0x2c1007['push'](_0x2c1007['shift']());}};_0xcd0cda(++_0x379994);}(a489_0x3799,0x72));const a489_0xcd0c=function(_0x2c1007,_0x379994){_0x2c1007=_0x2c1007-0x0;let _0xcd0cda=a489_0x3799[_0x2c1007];return _0xcd0cda;};const _0x2c4e10=a489_0xcd0c;'use strict';const _=require(_0x2c4e10('0x0')),util=require('util'),logger=require(_0x2c4e10('0x2b'))(_0x2c4e10('0x24')),rp=require(_0x2c4e10('0x10')),attributes=require(_0x2c4e10('0x21'));module[_0x2c4e10('0x16')]=function(_0xe11746){const _0x21eb76=_0x2c4e10,_0x494d06=_0xe11746[_0x21eb76('0x20')],_0x193145=_0xe11746[_0x21eb76('0x1e')](_0x21eb76('0xe'),attributes,{'tableName':_0x21eb76('0x7'),'paranoid':![],'indexes':[{'name':_0x21eb76('0x18'),'fields':[_0x21eb76('0x1f')],'type':'FULLTEXT'}],'timestamps':!![],'hooks':{'afterCreate':function(_0x137b12){const _0x546d16=_0x21eb76,_0xac4e65=_0x137b12[_0x546d16('0x19')]({'plain':!![]});(_0xac4e65[_0x546d16('0x1a')][_0x546d16('0x17')]()==='in'||_0xac4e65[_0x546d16('0x1a')][_0x546d16('0x17')]()==='out'&&!_0xac4e65[_0x546d16('0x14')]&&!_[_0x546d16('0x1d')](_0xac4e65['UserId']))&&_0x494d06['OpenchannelInteraction'][_0x546d16('0x3')]({'where':{'id':_0xac4e65[_0x546d16('0x28')]}})[_0x546d16('0x2a')](function(_0x1b0c3f){const _0x41bf84=_0x546d16;_0x1b0c3f&&_0x1b0c3f[_0x41bf84('0x23')]({'lastMsgAt':_0xac4e65[_0x41bf84('0x22')],'lastMsgDirection':_0xac4e65['direction']['toLowerCase']()});})[_0x546d16('0x5')](function(_0x5e79ab){const _0x301f72=_0x546d16;console[_0x301f72('0x1c')](_0x5e79ab);});if(_0xac4e65[_0x546d16('0x1a')]===_0x546d16('0x8')&&!_0xac4e65[_0x546d16('0x14')]){let _0x3cfdaf;_0x494d06['CmContact']['describe']()[_0x546d16('0x2a')](function(_0x2d3006){const _0x422cfb=_0x546d16;return _0x494d06['OpenchannelAccount'][_0x422cfb('0x3')]({'where':{'id':_0xac4e65['OpenchannelAccountId']},'include':[{'model':_0x494d06['OpenchannelInteraction'],'as':'Interactions','where':{'id':_0xac4e65['OpenchannelInteractionId']},'limit':0x1,'include':[{'model':_0x494d06[_0x422cfb('0x15')],'as':_0x422cfb('0xa'),'attributes':_[_0x422cfb('0x2')](_0x2d3006)}]}]});})[_0x546d16('0x2a')](function(_0x352d6b){const _0x87858c=_0x546d16;_0x3cfdaf=_0x352d6b[_0x87858c('0x19')]({'plain':!![]});if(_0x3cfdaf&&_0x3cfdaf['replyUri']){logger[_0x87858c('0x9')]('OpenchannelMessage,\x20%s,\x20%s',_0x87858c('0x12'),util[_0x87858c('0xd')]('Forwarding\x20message\x20%d\x20to\x20%s',_0xac4e65['id'],_0x3cfdaf[_0x87858c('0x1b')]));_0x3cfdaf[_0x87858c('0x13')]&&_0x3cfdaf[_0x87858c('0x13')][_0x87858c('0x29')]&&(_0xac4e65[_0x87858c('0x4')]=_[_0x87858c('0xc')](_0x3cfdaf[_0x87858c('0x13')][0x0],_0x87858c('0xa')),_0xac4e65[_0x87858c('0xa')]=_0x3cfdaf['Interactions'][0x0][_0x87858c('0xa')]);const _0x267270={'method':'POST','uri':encodeURI(_0x3cfdaf[_0x87858c('0x1b')]),'json':!![],'resolveWithFullResponse':!![]};switch(_0x267270[_0x87858c('0x11')]){case _0x87858c('0x6'):_0x267270['qs']=_0xac4e65;break;case'POST':_0x267270[_0x87858c('0x1f')]=_0xac4e65;break;}return rp(_0x267270)[_0x87858c('0x2a')](function(_0x3c56b6){const _0x24ed17=_0x87858c;logger['info'](_0x24ed17('0x27'),_0x24ed17('0x12'),util[_0x24ed17('0xd')]('Message\x20%d\x20forwarded\x20to\x20%s',_0xac4e65['id'],_0x3cfdaf['replyUri']));if(_0x3c56b6['body'][_0x24ed17('0x1')]&&_0x3c56b6['body']['threadId']!=_0xac4e65['Interaction'][_0x24ed17('0x1')])return _0x494d06['OpenchannelInteraction'][_0x24ed17('0x23')]({'threadId':_0x3c56b6[_0x24ed17('0x1f')][_0x24ed17('0x1')]},{'logging':!![],'where':{'id':_0xac4e65[_0x24ed17('0x4')]['id']}});else return;})[_0x87858c('0x2a')](function(){const _0x1091ec=_0x87858c;return _0x137b12[_0x1091ec('0x23')]({'read':!![]});})['catch'](function(_0x54c53f){const _0x185e77=_0x87858c;logger[_0x185e77('0x1c')](_0x185e77('0x27'),_0x185e77('0x12'),util[_0x185e77('0x26')](_0x54c53f,{'showHidden':![],'depth':null}));});}})[_0x546d16('0x25')](function(){return null;});}else return null;}},'charset':_0x21eb76('0xf'),'collate':_0x21eb76('0xb')});return _0x193145;}; \ No newline at end of file +const a587_0x5508=['sequelize','init','function','./openchannelMessage.options','exports','OpenchannelMessage'];(function(_0xd2a336,_0x2685f5){const _0x5508b6=function(_0x17bc6a){while(--_0x17bc6a){_0xd2a336['push'](_0xd2a336['shift']());}};_0x5508b6(++_0x2685f5);}(a587_0x5508,0xa6));const a587_0x17bc=function(_0xd2a336,_0x2685f5){_0xd2a336=_0xd2a336-0x1ca;let _0x5508b6=a587_0x5508[_0xd2a336];return _0x5508b6;};const a587_0x1dfc51=a587_0x17bc;'use strict';const {Model}=require(a587_0x1dfc51(0x1cc)),{attributes}=require('./openchannelMessage.attributes'),{options}=require(a587_0x1dfc51(0x1cf));class OpenchannelMessage extends Model{}function init(_0x372644,_0x2a3ccd){const _0x14fce8=a587_0x1dfc51,_0xbcab8a=options(_0x372644),_0x511c62=typeof _0x2a3ccd===_0x14fce8(0x1ce)?_0x2a3ccd(_0xbcab8a):_0xbcab8a;return OpenchannelMessage[_0x14fce8(0x1cd)](attributes,_0x511c62),OpenchannelMessage;}module[a587_0x1dfc51(0x1ca)][a587_0x1dfc51(0x1cb)]=OpenchannelMessage,module['exports'][a587_0x1dfc51(0x1cd)]=init; \ No newline at end of file diff --git a/server/api/openchannelMessage/openchannelMessage.options.js b/server/api/openchannelMessage/openchannelMessage.options.js new file mode 100644 index 0000000..b771226 --- /dev/null +++ b/server/api/openchannelMessage/openchannelMessage.options.js @@ -0,0 +1 @@ +const a588_0x1bd6=['UserId','OpenchannelAccountId','omit','Interactions','POST','OpenchannelMessage,\x20%s,\x20%s','util','exports','Forwarding\x20message\x20%d\x20to\x20%s','secret','../../config/logger','format','fti_openchannel_messages','info','FULLTEXT','Interaction','inspect','afterCreate','OpenchannelInteraction','describe','OpenchannelInteractionId','models','CmContact','keys','replyUri','request-promise-native','direction','error','toLowerCase','threadId','lodash','get','createdAt','length','update','catch','Message\x20%d\x20forwarded\x20to\x20%s','utf8mb4','Contact','then','method','body','out'];(function(_0x1848fa,_0x4567cf){const _0x1bd6ae=function(_0x5047a1){while(--_0x5047a1){_0x1848fa['push'](_0x1848fa['shift']());}};_0x1bd6ae(++_0x4567cf);}(a588_0x1bd6,0x12f));const a588_0x5047=function(_0x1848fa,_0x4567cf){_0x1848fa=_0x1848fa-0x1c2;let _0x1bd6ae=a588_0x1bd6[_0x1848fa];return _0x1bd6ae;};const a588_0x83075e=a588_0x5047,util=require(a588_0x83075e(0x1c6)),_=require(a588_0x83075e(0x1de)),logger=require(a588_0x83075e(0x1ca))('api'),rp=require(a588_0x83075e(0x1d9));function options(_0x1ee7a0){const _0x36a408=a588_0x83075e;return{'sequelize':_0x1ee7a0,'tableName':'openchannel_messages','paranoid':![],'indexes':[{'name':_0x36a408(0x1cc),'fields':[_0x36a408(0x1e9)],'type':_0x36a408(0x1ce)}],'timestamps':!![],'hooks':{'afterCreate':function(_0x53c1a1){const _0x24229a=_0x36a408,_0xac1b48=_0x1ee7a0[_0x24229a(0x1d5)],_0x4998b1=_0x53c1a1['get']({'plain':!![]});(_0x4998b1[_0x24229a(0x1da)][_0x24229a(0x1dc)]()==='in'||_0x4998b1[_0x24229a(0x1da)][_0x24229a(0x1dc)]()==='out'&&!_0x4998b1['secret']&&!_['isNil'](_0x4998b1[_0x24229a(0x1eb)]))&&_0xac1b48[_0x24229a(0x1d2)]['findOne']({'where':{'id':_0x4998b1[_0x24229a(0x1d4)]}})[_0x24229a(0x1e7)](function(_0x475c3c){const _0x3760ce=_0x24229a;_0x475c3c&&_0x475c3c[_0x3760ce(0x1e2)]({'lastMsgAt':_0x4998b1[_0x3760ce(0x1e0)],'lastMsgDirection':_0x4998b1[_0x3760ce(0x1da)][_0x3760ce(0x1dc)]()});})[_0x24229a(0x1e3)](function(_0x16e53e){const _0x251676=_0x24229a;console[_0x251676(0x1db)](_0x16e53e);});if(_0x4998b1[_0x24229a(0x1da)]===_0x24229a(0x1ea)&&!_0x4998b1[_0x24229a(0x1c9)]){let _0x298c0e;_0xac1b48[_0x24229a(0x1d6)][_0x24229a(0x1d3)]()['then'](function(_0x2ba9f5){const _0xaaee4b=_0x24229a;return _0xac1b48['OpenchannelAccount']['find']({'where':{'id':_0x4998b1[_0xaaee4b(0x1ec)]},'include':[{'model':_0xac1b48['OpenchannelInteraction'],'as':_0xaaee4b(0x1c3),'where':{'id':_0x4998b1[_0xaaee4b(0x1d4)]},'limit':0x1,'include':[{'model':_0xac1b48[_0xaaee4b(0x1d6)],'as':_0xaaee4b(0x1e6),'attributes':_[_0xaaee4b(0x1d7)](_0x2ba9f5)}]}]});})[_0x24229a(0x1e7)](function(_0x14316b){const _0x4b56af=_0x24229a;_0x298c0e=_0x14316b[_0x4b56af(0x1df)]({'plain':!![]});if(_0x298c0e&&_0x298c0e[_0x4b56af(0x1d8)]){logger[_0x4b56af(0x1cd)](_0x4b56af(0x1c5),_0x4b56af(0x1d1),util[_0x4b56af(0x1cb)](_0x4b56af(0x1c8),_0x4998b1['id'],_0x298c0e['replyUri']));_0x298c0e[_0x4b56af(0x1c3)]&&_0x298c0e[_0x4b56af(0x1c3)][_0x4b56af(0x1e1)]&&(_0x4998b1[_0x4b56af(0x1cf)]=_[_0x4b56af(0x1c2)](_0x298c0e[_0x4b56af(0x1c3)][0x0],_0x4b56af(0x1e6)),_0x4998b1[_0x4b56af(0x1e6)]=_0x298c0e['Interactions'][0x0][_0x4b56af(0x1e6)]);const _0x329b30={'method':_0x4b56af(0x1c4),'uri':encodeURI(_0x298c0e[_0x4b56af(0x1d8)]),'json':!![],'resolveWithFullResponse':!![]};switch(_0x329b30[_0x4b56af(0x1e8)]){case'GET':_0x329b30['qs']=_0x4998b1;break;case _0x4b56af(0x1c4):_0x329b30[_0x4b56af(0x1e9)]=_0x4998b1;break;}return rp(_0x329b30)[_0x4b56af(0x1e7)](function(_0x5f9a52){const _0x19d076=_0x4b56af;logger[_0x19d076(0x1cd)](_0x19d076(0x1c5),'afterCreate',util[_0x19d076(0x1cb)](_0x19d076(0x1e4),_0x4998b1['id'],_0x298c0e['replyUri']));if(_0x5f9a52[_0x19d076(0x1e9)][_0x19d076(0x1dd)]&&_0x5f9a52[_0x19d076(0x1e9)]['threadId']!=_0x4998b1['Interaction']['threadId'])return _0xac1b48[_0x19d076(0x1d2)][_0x19d076(0x1e2)]({'threadId':_0x5f9a52[_0x19d076(0x1e9)][_0x19d076(0x1dd)]},{'logging':!![],'where':{'id':_0x4998b1[_0x19d076(0x1cf)]['id']}});else return;})[_0x4b56af(0x1e7)](function(){return _0x53c1a1['update']({'read':!![]});})['catch'](function(_0x3d81ed){const _0x204291=_0x4b56af;logger[_0x204291(0x1db)](_0x204291(0x1c5),_0x204291(0x1d1),util[_0x204291(0x1d0)](_0x3d81ed,{'showHidden':![],'depth':null}));});}});}}},'charset':_0x36a408(0x1e5),'collate':'utf8mb4_unicode_ci'};}module[a588_0x83075e(0x1c7)]['options']=options; \ No newline at end of file diff --git a/server/api/openchannelMessage/openchannelMessage.rpc.js b/server/api/openchannelMessage/openchannelMessage.rpc.js index 2a8fe2a..c40c3da 100644 --- a/server/api/openchannelMessage/openchannelMessage.rpc.js +++ b/server/api/openchannelMessage/openchannelMessage.rpc.js @@ -1 +1 @@ -const a490_0x1145=['catch','message','info','./openchannelMessage.socket','raw','options','CreateOpenchannelMessage','create','../../config/logger','../../rediscache','../../mysqldb','OpenchannelMessage','stringify','error','body'];(function(_0x490b05,_0x114529){const _0x398e79=function(_0x26a702){while(--_0x26a702){_0x490b05['push'](_0x490b05['shift']());}};_0x398e79(++_0x114529);}(a490_0x1145,0x1a5));const a490_0x398e=function(_0x490b05,_0x114529){_0x490b05=_0x490b05-0x0;let _0x398e79=a490_0x1145[_0x490b05];return _0x398e79;};const _0x3e30fa=a490_0x398e;'use strict';const db=require(_0x3e30fa('0x9'))['db'],logger=require(_0x3e30fa('0x7'))('rpc'),{getSocket}=require(_0x3e30fa('0x8')),socket=getSocket();require(_0x3e30fa('0x2'))['register'](socket),exports[_0x3e30fa('0x5')]=function(_0x26a702){const _0x34489c=this;return new Promise(function(_0x45c729,_0x1ef984){const _0xf4f2c0=a490_0x398e;return db[_0xf4f2c0('0xa')][_0xf4f2c0('0x6')](_0x26a702[_0xf4f2c0('0xd')],{'raw':_0x26a702[_0xf4f2c0('0x4')]?_0x26a702[_0xf4f2c0('0x4')][_0xf4f2c0('0x3')]===undefined?!![]:![]:!![]})['then'](function(_0x38dd07){const _0x3532e0=_0xf4f2c0;logger[_0x3532e0('0x1')](_0x3532e0('0x5'),_0x26a702),logger['debug'](_0x3532e0('0x5'),_0x26a702,JSON[_0x3532e0('0xb')](_0x38dd07)),_0x45c729(_0x38dd07);})[_0xf4f2c0('0xe')](function(_0x3c7a15){const _0x109068=_0xf4f2c0;logger[_0x109068('0xc')]('CreateOpenchannelMessage',_0x3c7a15[_0x109068('0x0')],_0x26a702),_0x1ef984(_0x34489c[_0x109068('0xc')](0x1f4,_0x3c7a15[_0x109068('0x0')]));});});}; \ No newline at end of file +const a589_0x3b48=['raw','body','then','../../rediscache','options','../../config/logger','error','catch','message','rpc','create','stringify','./openchannelMessage.socket','CreateOpenchannelMessage','OpenchannelMessage'];(function(_0x46f551,_0x4a0bf6){const _0x3b48b9=function(_0x32c6ca){while(--_0x32c6ca){_0x46f551['push'](_0x46f551['shift']());}};_0x3b48b9(++_0x4a0bf6);}(a589_0x3b48,0x7b));const a589_0x32c6=function(_0x46f551,_0x4a0bf6){_0x46f551=_0x46f551-0x131;let _0x3b48b9=a589_0x3b48[_0x46f551];return _0x3b48b9;};const a589_0x3a36a8=a589_0x32c6;'use strict';const db=require('../../mysqldb')['db'],logger=require(a589_0x3a36a8(0x133))(a589_0x3a36a8(0x137)),{getSocket}=require(a589_0x3a36a8(0x131)),socket=getSocket();require(a589_0x3a36a8(0x13a))['register'](socket),exports[a589_0x3a36a8(0x13b)]=function(_0x3ef492){const _0x448097=this;return new Promise(function(_0x28792c,_0x5e8404){const _0x1051ab=a589_0x32c6;return db[_0x1051ab(0x13c)][_0x1051ab(0x138)](_0x3ef492[_0x1051ab(0x13e)],{'raw':_0x3ef492['options']?_0x3ef492[_0x1051ab(0x132)][_0x1051ab(0x13d)]===undefined?!![]:![]:!![]})[_0x1051ab(0x13f)](function(_0x5d8d4f){const _0x5ee1c7=_0x1051ab;logger['info'](_0x5ee1c7(0x13b),_0x3ef492),logger['debug']('CreateOpenchannelMessage',_0x3ef492,JSON[_0x5ee1c7(0x139)](_0x5d8d4f)),_0x28792c(_0x5d8d4f);})[_0x1051ab(0x135)](function(_0x878c20){const _0x39a296=_0x1051ab;logger[_0x39a296(0x134)](_0x39a296(0x13b),_0x878c20['message'],_0x3ef492),_0x5e8404(_0x448097[_0x39a296(0x134)](0x1f4,_0x878c20[_0x39a296(0x136)]));});});}; \ No newline at end of file diff --git a/server/api/openchannelMessage/openchannelMessage.socket.js b/server/api/openchannelMessage/openchannelMessage.socket.js index c39e5ea..cdf5619 100644 --- a/server/api/openchannelMessage/openchannelMessage.socket.js +++ b/server/api/openchannelMessage/openchannelMessage.socket.js @@ -1 +1 @@ -const a491_0xfd10=['register','length','save','remove','./openchannelMessage.events','emit'];(function(_0x1fe215,_0xfd10c){const _0x6f1df3=function(_0x5c0741){while(--_0x5c0741){_0x1fe215['push'](_0x1fe215['shift']());}};_0x6f1df3(++_0xfd10c);}(a491_0xfd10,0xb2));const a491_0x6f1d=function(_0x1fe215,_0xfd10c){_0x1fe215=_0x1fe215-0x0;let _0x6f1df3=a491_0xfd10[_0x1fe215];return _0x6f1df3;};const _0x127d65=a491_0x6f1d;'use strict';const OpenchannelMessageEvents=require(_0x127d65('0x0')),events=[_0x127d65('0x4'),_0x127d65('0x5'),'update'];function createListener(_0x5c0741,_0x21b208){return function(_0x3c8ed0){const _0x19a919=a491_0x6f1d;_0x21b208[_0x19a919('0x1')](_0x5c0741,_0x3c8ed0);};}exports[_0x127d65('0x2')]=function(_0x1847fd){const _0x2fe49e=_0x127d65;for(let _0x57c802=0x0,_0x46af65=events[_0x2fe49e('0x3')];_0x57c802<_0x46af65;_0x57c802++){const _0x13a9e4=events[_0x57c802],_0x3354da=createListener('openchannelMessage:'+_0x13a9e4,_0x1847fd);OpenchannelMessageEvents['on'](_0x13a9e4,_0x3354da);}}; \ No newline at end of file +const a590_0x4171=['register','update','./openchannelMessage.events','emit','openchannelMessage:'];(function(_0x5ecebb,_0x23f19e){const _0x41711c=function(_0x2204eb){while(--_0x2204eb){_0x5ecebb['push'](_0x5ecebb['shift']());}};_0x41711c(++_0x23f19e);}(a590_0x4171,0x64));const a590_0x2204=function(_0x5ecebb,_0x23f19e){_0x5ecebb=_0x5ecebb-0xe6;let _0x41711c=a590_0x4171[_0x5ecebb];return _0x41711c;};const a590_0x324362=a590_0x2204;'use strict';const OpenchannelMessageEvents=require(a590_0x324362(0xe8)),events=['save','remove',a590_0x324362(0xe7)];function createListener(_0x47c681,_0x2a333f){return function(_0x414ed9){const _0x499332=a590_0x2204;_0x2a333f[_0x499332(0xe9)](_0x47c681,_0x414ed9);};}exports[a590_0x324362(0xe6)]=function(_0x4af58a){const _0x46ae25=a590_0x324362;for(let _0x584bbd=0x0,_0x2036e3=events['length'];_0x584bbd<_0x2036e3;_0x584bbd++){const _0x39d372=events[_0x584bbd],_0x45d7e9=createListener(_0x46ae25(0xea)+_0x39d372,_0x4af58a);OpenchannelMessageEvents['on'](_0x39d372,_0x45d7e9);}}; \ No newline at end of file diff --git a/server/api/openchannelQueue/index.js b/server/api/openchannelQueue/index.js index fc0db71..8e7aaf0 100644 --- a/server/api/openchannelQueue/index.js +++ b/server/api/openchannelQueue/index.js @@ -1 +1 @@ -const a492_0x3226=['getAgents','post','addTeams','show','/:id/teams','get','describe','destroy','../../components/auth/service','isAuthenticated','create','removeTeams','delete','./openchannelQueue.controller','removeAgents','index','put','/:id/users','addAgents','express','exports','/:id/members','getMembers','/:id'];(function(_0x5dfd07,_0x3226cd){const _0x577d6b=function(_0x277a77){while(--_0x277a77){_0x5dfd07['push'](_0x5dfd07['shift']());}};_0x577d6b(++_0x3226cd);}(a492_0x3226,0x168));const a492_0x577d=function(_0x5dfd07,_0x3226cd){_0x5dfd07=_0x5dfd07-0x0;let _0x577d6b=a492_0x3226[_0x5dfd07];return _0x577d6b;};const _0x1451c2=a492_0x577d;'use strict';const express=require(_0x1451c2('0x13')),router=express['Router'](),auth=require(_0x1451c2('0x8')),controller=require(_0x1451c2('0xd'));router[_0x1451c2('0x5')]('/',auth[_0x1451c2('0x9')](),controller[_0x1451c2('0xf')]),router[_0x1451c2('0x5')]('/describe',auth[_0x1451c2('0x9')](),controller[_0x1451c2('0x6')]),router[_0x1451c2('0x5')](_0x1451c2('0x17'),auth[_0x1451c2('0x9')](),controller[_0x1451c2('0x3')]),router['get'](_0x1451c2('0x15'),auth[_0x1451c2('0x9')](),controller[_0x1451c2('0x16')]),router[_0x1451c2('0x5')](_0x1451c2('0x4'),auth[_0x1451c2('0x9')](),controller['getTeams']),router[_0x1451c2('0x5')](_0x1451c2('0x11'),auth[_0x1451c2('0x9')](),controller[_0x1451c2('0x0')]),router['post']('/',auth['isAuthenticated'](),controller[_0x1451c2('0xa')]),router[_0x1451c2('0x1')]('/:id/teams',auth['isAuthenticated'](),controller[_0x1451c2('0x2')]),router[_0x1451c2('0x1')](_0x1451c2('0x11'),auth[_0x1451c2('0x9')](),controller[_0x1451c2('0x12')]),router[_0x1451c2('0x10')](_0x1451c2('0x17'),auth[_0x1451c2('0x9')](),controller['update']),router[_0x1451c2('0xc')](_0x1451c2('0x17'),auth['isAuthenticated'](),controller[_0x1451c2('0x7')]),router[_0x1451c2('0xc')](_0x1451c2('0x4'),auth[_0x1451c2('0x9')](),controller[_0x1451c2('0xb')]),router[_0x1451c2('0xc')](_0x1451c2('0x11'),auth[_0x1451c2('0x9')](),controller[_0x1451c2('0xe')]),module[_0x1451c2('0x14')]=router; \ No newline at end of file +const a591_0x2a45=['index','get','addTeams','getMembers','addAgents','delete','./openchannelQueue.controller','create','isAuthenticated','/:id/teams','getTeams','../../components/auth/service','/describe','/:id','express','update','describe','post','/:id/users'];(function(_0x46c2b1,_0x12cd28){const _0x2a45a2=function(_0x1da353){while(--_0x1da353){_0x46c2b1['push'](_0x46c2b1['shift']());}};_0x2a45a2(++_0x12cd28);}(a591_0x2a45,0x19c));const a591_0x1da3=function(_0x46c2b1,_0x12cd28){_0x46c2b1=_0x46c2b1-0x1ce;let _0x2a45a2=a591_0x2a45[_0x46c2b1];return _0x2a45a2;};const a591_0xf7e793=a591_0x1da3;'use strict';const express=require(a591_0xf7e793(0x1cf)),router=express['Router'](),auth=require(a591_0xf7e793(0x1df)),controller=require(a591_0xf7e793(0x1da));router[a591_0xf7e793(0x1d5)]('/',auth[a591_0xf7e793(0x1dc)](),controller[a591_0xf7e793(0x1d4)]),router['get'](a591_0xf7e793(0x1e0),auth[a591_0xf7e793(0x1dc)](),controller[a591_0xf7e793(0x1d1)]),router[a591_0xf7e793(0x1d5)]('/:id',auth[a591_0xf7e793(0x1dc)](),controller['show']),router[a591_0xf7e793(0x1d5)]('/:id/members',auth[a591_0xf7e793(0x1dc)](),controller[a591_0xf7e793(0x1d7)]),router[a591_0xf7e793(0x1d5)]('/:id/teams',auth[a591_0xf7e793(0x1dc)](),controller[a591_0xf7e793(0x1de)]),router[a591_0xf7e793(0x1d5)](a591_0xf7e793(0x1d3),auth[a591_0xf7e793(0x1dc)](),controller['getAgents']),router[a591_0xf7e793(0x1d2)]('/',auth[a591_0xf7e793(0x1dc)](),controller[a591_0xf7e793(0x1db)]),router[a591_0xf7e793(0x1d2)](a591_0xf7e793(0x1dd),auth[a591_0xf7e793(0x1dc)](),controller[a591_0xf7e793(0x1d6)]),router[a591_0xf7e793(0x1d2)](a591_0xf7e793(0x1d3),auth['isAuthenticated'](),controller[a591_0xf7e793(0x1d8)]),router['put'](a591_0xf7e793(0x1ce),auth[a591_0xf7e793(0x1dc)](),controller[a591_0xf7e793(0x1d0)]),router[a591_0xf7e793(0x1d9)](a591_0xf7e793(0x1ce),auth['isAuthenticated'](),controller['destroy']),router['delete'](a591_0xf7e793(0x1dd),auth[a591_0xf7e793(0x1dc)](),controller['removeTeams']),router[a591_0xf7e793(0x1d9)](a591_0xf7e793(0x1d3),auth[a591_0xf7e793(0x1dc)](),controller['removeAgents']),module['exports']=router; \ No newline at end of file diff --git a/server/api/openchannelQueue/openchannelQueue.attributes.js b/server/api/openchannelQueue/openchannelQueue.attributes.js index 6e56db5..182987d 100644 --- a/server/api/openchannelQueue/openchannelQueue.attributes.js +++ b/server/api/openchannelQueue/openchannelQueue.attributes.js @@ -1 +1 @@ -const a493_0x2522=['name','roundrobin','sequelize','STRING','INTEGER','exports','rrmemory'];(function(_0x143566,_0x2522b7){const _0xace8c6=function(_0x413e41){while(--_0x413e41){_0x143566['push'](_0x143566['shift']());}};_0xace8c6(++_0x2522b7);}(a493_0x2522,0x8b));const a493_0xace8=function(_0x143566,_0x2522b7){_0x143566=_0x143566-0x0;let _0xace8c6=a493_0x2522[_0x143566];return _0xace8c6;};const _0x10d05c=a493_0xace8;'use strict';const Sequelize=require(_0x10d05c('0x3'));module[_0x10d05c('0x6')]={'name':{'type':Sequelize[_0x10d05c('0x4')],'unique':_0x10d05c('0x1'),'validate':{'notEmpty':!![],'is':/^[A-Za-z0-9._]+$/i}},'description':{'type':Sequelize['STRING']},'timeout':{'type':Sequelize[_0x10d05c('0x5')],'validate':{'min':0x1,'max':0x20c49b}},'strategy':{'type':Sequelize['ENUM'](_0x10d05c('0x0'),'beepall',_0x10d05c('0x2'))}}; \ No newline at end of file +const a592_0x1a7a=['attributes','STRING','name','sequelize','roundrobin','exports','INTEGER','ENUM'];(function(_0x36df17,_0x33783a){const _0x1a7aa4=function(_0x5bbb12){while(--_0x5bbb12){_0x36df17['push'](_0x36df17['shift']());}};_0x1a7aa4(++_0x33783a);}(a592_0x1a7a,0x14d));const a592_0x5bbb=function(_0x36df17,_0x33783a){_0x36df17=_0x36df17-0xb6;let _0x1a7aa4=a592_0x1a7a[_0x36df17];return _0x1a7aa4;};const a592_0x308beb=a592_0x5bbb;'use strict';const {DataTypes}=require(a592_0x308beb(0xbc)),attributes={'name':{'type':DataTypes[a592_0x308beb(0xba)],'unique':a592_0x308beb(0xbb),'validate':{'notEmpty':!![],'is':/^[A-Za-z0-9._]+$/i}},'description':{'type':DataTypes['STRING']},'timeout':{'type':DataTypes[a592_0x308beb(0xb7)],'validate':{'min':0x1,'max':0x20c49b}},'strategy':{'type':DataTypes[a592_0x308beb(0xb8)]('rrmemory','beepall',a592_0x308beb(0xbd))}};module[a592_0x308beb(0xb6)][a592_0x308beb(0xb9)]=attributes; \ No newline at end of file diff --git a/server/api/openchannelQueue/openchannelQueue.controller.js b/server/api/openchannelQueue/openchannelQueue.controller.js index 32bd633..6e4faf1 100644 --- a/server/api/openchannelQueue/openchannelQueue.controller.js +++ b/server/api/openchannelQueue/openchannelQueue.controller.js @@ -1 +1 @@ -const a494_0x51b8=['updatedAt','filters','includes','union','Agents','SELECT','body','api','../../config/logger','send','status','transaction','lodash','type','findOrCreate','OpenchannelQueueId','query','attributes','sequelize','role','rawAttributes','format','update','createdAt','emit','UserProfileSection','get','OpenchannelQueues','interface','catch','limit','rows','VIRTUAL','./openchannelQueue.socket','Unable\x20to\x20retrieve\x20the\x20current\x20user','map','getMembers','removeTeams','set','UserProfileResource','flatMap','include','index','addTeams','push','join','select','removeAgents','pick','../../components/parsers/qs','findAndCountAll','userOpenchannelQueue:save','Team','fieldName','register','order','nolimit','user_has_teams','undefined','SIP','sendStatus','util','merge','count','length','user','team_has_openchannel_queues','forEach','autoAssociation','filter','getAgents','error','create','sort','all','addAgents','tq.TeamId','describe','openchannelPause','from','UserOpenchannelQueue','fields','%s/%s','name','getTeams','OpenchannelQueueId\x20=\x20?','where','then','keys','includeAll','../../mysqldb','end','intersection','online','params','ids','value','destroy','ut.TeamId\x20=\x20tq.TeamId','isEmpty','offset','toString','findOne','findAll','like','model','userOpenchannelQueue:remove','OpenchannelQueue','options','clone','squel','User'];(function(_0x59d531,_0x51b8d3){const _0x2e71aa=function(_0x214e2c){while(--_0x214e2c){_0x59d531['push'](_0x59d531['shift']());}};_0x2e71aa(++_0x51b8d3);}(a494_0x51b8,0x1b7));const a494_0x2e71=function(_0x59d531,_0x51b8d3){_0x59d531=_0x59d531-0x0;let _0x2e71aa=a494_0x51b8[_0x59d531];return _0x2e71aa;};const _0x8207fb=a494_0x2e71;'use strict';const util=require(_0x8207fb('0x46')),_=require(_0x8207fb('0x15')),squel=require(_0x8207fb('0x7')),qs=require(_0x8207fb('0x3a')),logger=require(_0x8207fb('0x11'))(_0x8207fb('0x10')),{getSocket}=require('../../rediscache'),socket=getSocket(),db=require(_0x8207fb('0x63'))['db'],{Op,QueryTypes}=require('sequelize');require(_0x8207fb('0x2a'))[_0x8207fb('0x3f')](socket);function respondWithStatusCode(_0x214e2c,_0x4f25ce){return _0x4f25ce=_0x4f25ce||0xcc,function(_0x18c8ec){const _0x929cd=a494_0x2e71;if(_0x18c8ec)return _0x214e2c[_0x929cd('0x45')](_0x4f25ce);return _0x214e2c[_0x929cd('0x13')](_0x4f25ce)[_0x929cd('0x64')]();};}function respondWithResult(_0x56492e,_0x207e51){return _0x207e51=_0x207e51||0xc8,function(_0x302367){const _0xe23155=a494_0x2e71;if(_0x302367)return _0x56492e[_0xe23155('0x13')](_0x207e51)['json'](_0x302367);};}function respondWithFilteredResult(_0x24a2f4,_0x4cc96b){return function(_0x55340b){const _0x3a44d1=a494_0x2e71;if(_0x55340b){const _0x29c69d=_0x55340b['count'],_0x50aec4=_0x4cc96b[_0x3a44d1('0x6d')];let _0x3aa587=_0x4cc96b[_0x3a44d1('0x6d')]+_0x4cc96b[_0x3a44d1('0x27')],_0x4a7f5e;return _0x3aa587>=_0x29c69d?(_0x3aa587=_0x29c69d,_0x4a7f5e=0xc8):_0x4a7f5e=0xce,_0x24a2f4[_0x3a44d1('0x13')](_0x4a7f5e),_0x24a2f4[_0x3a44d1('0x2f')]('Content-Range',_0x50aec4+'-'+_0x3aa587+'/'+_0x29c69d)['json'](_0x55340b);}return null;};}function saveUpdates(_0x1e6bcf){return function(_0x478c63){const _0x115a9a=a494_0x2e71;if(_0x478c63)return _0x478c63[_0x115a9a('0x1f')](_0x1e6bcf)[_0x115a9a('0x60')](function(_0xb9e211){return _0xb9e211;});return null;};}function removeEntity(_0x2d4926){return function(_0x4ba86b){const _0x16b784=a494_0x2e71;if(_0x4ba86b)return _0x4ba86b[_0x16b784('0x6a')]()['then'](function(){const _0x31f560=_0x16b784,_0x2e116b=_0x4ba86b['get']({'plain':!![]}),_0x31004e=_0x31f560('0x24');return db['UserProfileResource'][_0x31f560('0x6a')]({'where':{'type':_0x31004e,'resourceId':_0x2e116b['id']}})[_0x31f560('0x60')](function(){return _0x4ba86b;});})[_0x16b784('0x60')](function(){const _0x411d4a=_0x16b784;_0x2d4926['status'](0xcc)[_0x411d4a('0x64')]();});};}function handleEntityNotFound(_0x52ef5a){return function(_0x3d285c){const _0x1e2f75=a494_0x2e71;return!_0x3d285c&&_0x52ef5a[_0x1e2f75('0x45')](0x194),_0x3d285c;};}function handleError(_0x479d90,_0x5450ec){return _0x5450ec=_0x5450ec||0x1f4,function(_0x39eb7b){const _0x45bdf5=a494_0x2e71;logger[_0x45bdf5('0x50')](_0x39eb7b['stack']),_0x39eb7b[_0x45bdf5('0x5c')]&&delete _0x39eb7b[_0x45bdf5('0x5c')],_0x479d90[_0x45bdf5('0x13')](_0x5450ec)[_0x45bdf5('0x12')](_0x39eb7b);};}exports[_0x8207fb('0x33')]=function(_0x19b5ed,_0x37476f){const _0xd78a8e=_0x8207fb;let _0x362c7a={};const _0x51c7c8={},_0x439ebb={'count':0x0,'rows':[]},_0x365951=_[_0xd78a8e('0x2c')](db['OpenchannelQueue'][_0xd78a8e('0x1d')],function(_0x3866f2){const _0x10b4ea=_0xd78a8e;return{'name':_0x3866f2[_0x10b4ea('0x3e')],'type':_0x3866f2['type']['key']};});_0x51c7c8[_0xd78a8e('0x2')]=_['map'](_0x365951,_0xd78a8e('0x5c')),_0x51c7c8['query']=_[_0xd78a8e('0x61')](_0x19b5ed[_0xd78a8e('0x19')]),_0x51c7c8[_0xd78a8e('0xa')]=_[_0xd78a8e('0x65')](_0x51c7c8[_0xd78a8e('0x2')],_0x51c7c8[_0xd78a8e('0x19')]),_0x362c7a[_0xd78a8e('0x1a')]=_[_0xd78a8e('0x65')](_0x51c7c8[_0xd78a8e('0x2')],qs[_0xd78a8e('0x5a')](_0x19b5ed[_0xd78a8e('0x19')][_0xd78a8e('0x5a')])),_0x362c7a['attributes']=_0x362c7a[_0xd78a8e('0x1a')][_0xd78a8e('0x49')]?_0x362c7a[_0xd78a8e('0x1a')]:_0x51c7c8[_0xd78a8e('0x2')];typeof _0x19b5ed[_0xd78a8e('0x19')][_0xd78a8e('0x41')]==='undefined'&&(_0x362c7a['limit']=qs[_0xd78a8e('0x27')](_0x19b5ed['query'][_0xd78a8e('0x27')]),_0x362c7a[_0xd78a8e('0x6d')]=qs[_0xd78a8e('0x6d')](_0x19b5ed['query'][_0xd78a8e('0x6d')]));_0x362c7a['order']=qs[_0xd78a8e('0x52')](_0x19b5ed['query'][_0xd78a8e('0x52')]),_0x362c7a['where']=qs[_0xd78a8e('0xa')](_['pick'](_0x19b5ed[_0xd78a8e('0x19')],_0x51c7c8[_0xd78a8e('0xa')]),_0x365951);_0x19b5ed[_0xd78a8e('0x19')][_0xd78a8e('0x4e')]&&(_0x362c7a['where']=_[_0xd78a8e('0x47')](_0x362c7a['where'],{[Op['or']]:_['map'](_0x365951,function(_0x15abee){const _0x296649=_0xd78a8e;if(_0x15abee[_0x296649('0x16')]!==_0x296649('0x29')){const _0x5ea293={};return _0x5ea293[_0x15abee[_0x296649('0x5c')]]={[Op[_0x296649('0x1')]]:'%'+_0x19b5ed[_0x296649('0x19')][_0x296649('0x4e')]+'%'},_0x5ea293;}})}));_0x362c7a=_[_0xd78a8e('0x47')]({},_0x362c7a,_0x19b5ed['options']);const _0x16cabd={'where':_0x362c7a[_0xd78a8e('0x5f')]};return db[_0xd78a8e('0x4')][_0xd78a8e('0x48')](_0x16cabd)[_0xd78a8e('0x60')](function(_0x43310d){const _0xff0773=_0xd78a8e;return _0x439ebb[_0xff0773('0x48')]=_0x43310d,_0x19b5ed[_0xff0773('0x19')][_0xff0773('0x62')]&&(_0x362c7a[_0xff0773('0x32')]=[{'all':!![]}]),db[_0xff0773('0x4')][_0xff0773('0x0')](_0x362c7a);})['then'](function(_0x40efc2){const _0x583084=_0xd78a8e;return _0x439ebb[_0x583084('0x28')]=_0x40efc2,_0x439ebb;})['then'](respondWithFilteredResult(_0x37476f,_0x362c7a))[_0xd78a8e('0x26')](handleError(_0x37476f,null));},exports['show']=function(_0x4342aa,_0xbe312d){const _0x3927e1=_0x8207fb;let _0x3baf17={'raw':!![],'where':{'id':_0x4342aa[_0x3927e1('0x67')]['id']}};const _0x1c7ada={};return _0x1c7ada[_0x3927e1('0x2')]=_[_0x3927e1('0x61')](db[_0x3927e1('0x4')][_0x3927e1('0x1d')]),_0x1c7ada[_0x3927e1('0x19')]=_[_0x3927e1('0x61')](_0x4342aa[_0x3927e1('0x19')]),_0x1c7ada[_0x3927e1('0xa')]=_[_0x3927e1('0x65')](_0x1c7ada[_0x3927e1('0x2')],_0x1c7ada['query']),_0x3baf17[_0x3927e1('0x1a')]=_['intersection'](_0x1c7ada[_0x3927e1('0x2')],qs[_0x3927e1('0x5a')](_0x4342aa[_0x3927e1('0x19')][_0x3927e1('0x5a')])),_0x3baf17[_0x3927e1('0x1a')]=_0x3baf17[_0x3927e1('0x1a')][_0x3927e1('0x49')]?_0x3baf17['attributes']:_0x1c7ada[_0x3927e1('0x2')],_0x4342aa['query'][_0x3927e1('0x62')]&&(_0x3baf17['include']=[{'all':!![]}]),_0x3baf17=_[_0x3927e1('0x47')]({},_0x3baf17,_0x4342aa[_0x3927e1('0x5')]),db[_0x3927e1('0x4')][_0x3927e1('0x6f')](_0x3baf17)['then'](handleEntityNotFound(_0xbe312d,null))['then'](respondWithResult(_0xbe312d,null))[_0x3927e1('0x26')](handleError(_0xbe312d,null));},exports['create']=function(_0x3ae89a,_0x40c56c){const _0x24cd4f=_0x8207fb;return db['OpenchannelQueue'][_0x24cd4f('0x51')](_0x3ae89a['body'],{})[_0x24cd4f('0x60')](function(_0xa03291){const _0x2d9bf2=_0x24cd4f,_0x1bcf47=_0x3ae89a[_0x2d9bf2('0x4a')]['get']({'plain':!![]});if(!_0x1bcf47)throw new Error(_0x2d9bf2('0x2b'));if(_0x1bcf47[_0x2d9bf2('0x1c')]===_0x2d9bf2('0x4a')){const _0xab6233=_0xa03291[_0x2d9bf2('0x23')]({'plain':!![]}),_0x3e3491=_0x2d9bf2('0x24');return db[_0x2d9bf2('0x22')][_0x2d9bf2('0x6f')]({'where':{'name':_0x3e3491,'userProfileId':_0x1bcf47['userProfileId']},'raw':!![]})[_0x2d9bf2('0x60')](function(_0x35a5fd){const _0x137f4e=_0x2d9bf2;return _0x35a5fd&&_0x35a5fd[_0x137f4e('0x4d')]===0x0?db[_0x137f4e('0x30')][_0x137f4e('0x51')]({'name':_0xab6233[_0x137f4e('0x5c')],'resourceId':_0xab6233['id'],'type':_0x35a5fd[_0x137f4e('0x5c')],'sectionId':_0x35a5fd['id']},{})[_0x137f4e('0x60')](function(){return _0xa03291;}):_0xa03291;})[_0x2d9bf2('0x26')](function(_0x123447){const _0x535610=_0x2d9bf2;logger[_0x535610('0x50')]('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0x123447);throw _0x123447;});}return _0xa03291;})[_0x24cd4f('0x60')](respondWithResult(_0x40c56c,0xc9))[_0x24cd4f('0x26')](handleError(_0x40c56c,null));},exports['update']=function(_0x4d9a16,_0x3c997c){const _0x1ac97f=_0x8207fb;return _0x4d9a16[_0x1ac97f('0xf')]['id']&&delete _0x4d9a16[_0x1ac97f('0xf')]['id'],db[_0x1ac97f('0x4')]['findOne']({'where':{'id':_0x4d9a16['params']['id']}})['then'](handleEntityNotFound(_0x3c997c,null))['then'](saveUpdates(_0x4d9a16[_0x1ac97f('0xf')],null))[_0x1ac97f('0x60')](respondWithResult(_0x3c997c,null))[_0x1ac97f('0x26')](handleError(_0x3c997c,null));},exports[_0x8207fb('0x6a')]=function(_0x3881ff,_0x46e7e9){const _0xd61684=_0x8207fb;return db[_0xd61684('0x4')][_0xd61684('0x6f')]({'where':{'id':_0x3881ff['params']['id']}})[_0xd61684('0x60')](handleEntityNotFound(_0x46e7e9,null))['then'](removeEntity(_0x46e7e9,null))[_0xd61684('0x26')](handleError(_0x46e7e9,null));},exports[_0x8207fb('0x56')]=function(_0x5f1721,_0xcacd69){const _0x305f9a=_0x8207fb;return db[_0x305f9a('0x4')][_0x305f9a('0x56')]()[_0x305f9a('0x60')](respondWithResult(_0xcacd69,null))[_0x305f9a('0x26')](handleError(_0xcacd69,null));},exports[_0x8207fb('0x2d')]=function(_0x19f633,_0x290633){const _0x328ef4=_0x8207fb;let _0x10cce1={'raw':!![],'where':{}};const _0x438946={};let _0x238914;return db[_0x328ef4('0x4')][_0x328ef4('0x6f')]({'where':{'id':_0x19f633['params']['id']}})[_0x328ef4('0x60')](handleEntityNotFound(_0x290633,null))['then'](function(_0x3664dc){const _0x377f46=_0x328ef4;if(_0x3664dc)return _0x238914=_0x3664dc['get']({'plain':!![]}),_0x438946['model']=_[_0x377f46('0x61')](db[_0x377f46('0x59')][_0x377f46('0x1d')]),_0x438946[_0x377f46('0x19')]=_['keys'](_0x19f633[_0x377f46('0x19')]),_0x438946[_0x377f46('0xa')]=_['intersection'](_0x438946[_0x377f46('0x2')],_0x438946['query']),_0x10cce1['attributes']=_['intersection'](_0x438946[_0x377f46('0x2')],qs[_0x377f46('0x5a')](_0x19f633[_0x377f46('0x19')]['fields'])),_0x10cce1[_0x377f46('0x1a')]=_0x10cce1[_0x377f46('0x1a')][_0x377f46('0x49')]?_0x10cce1[_0x377f46('0x1a')]:_0x438946[_0x377f46('0x2')],typeof _0x19f633[_0x377f46('0x19')]['nolimit']===_0x377f46('0x43')&&(_0x10cce1[_0x377f46('0x27')]=qs['limit'](_0x19f633[_0x377f46('0x19')]['limit']),_0x10cce1[_0x377f46('0x6d')]=qs[_0x377f46('0x6d')](_0x19f633[_0x377f46('0x19')][_0x377f46('0x6d')])),_0x10cce1[_0x377f46('0x40')]=qs[_0x377f46('0x52')](_0x19f633['query'][_0x377f46('0x52')]),_0x10cce1[_0x377f46('0x5f')]=qs['filters'](_[_0x377f46('0x39')](_0x19f633[_0x377f46('0x19')],_0x438946['filters'])),_0x10cce1['where'][_0x377f46('0x18')]=_0x3664dc['id'],_0x19f633[_0x377f46('0x19')][_0x377f46('0x4e')]&&(_0x10cce1[_0x377f46('0x5f')]=_[_0x377f46('0x47')](_0x10cce1[_0x377f46('0x5f')],{[Op['or']]:_['map'](_0x10cce1[_0x377f46('0x1a')],function(_0x129bc1){const _0x515db2=_0x377f46,_0x56945={};return _0x56945[_0x129bc1]={[Op[_0x515db2('0x1')]]:'%'+_0x19f633['query']['filter']+'%'},_0x56945;})})),_0x10cce1=_['merge']({},_0x10cce1,_0x19f633[_0x377f46('0x5')]),db[_0x377f46('0x59')][_0x377f46('0x0')](_0x10cce1);})[_0x328ef4('0x60')](function(_0x54eb85){const _0x27b556=_0x328ef4;if(_0x54eb85)return db['User'][_0x27b556('0x3b')]({'where':{'id':_[_0x27b556('0x2c')](_0x54eb85,'UserId'),'role':'agent'},'attributes':['id',_0x27b556('0x5c'),'openchannelPause',_0x27b556('0x9'),_0x27b556('0x20')]});})['then'](function(_0x4f6f4b){const _0x41189a=_0x328ef4;return _0x4f6f4b?{'count':_0x4f6f4b[_0x41189a('0x48')],'rows':_[_0x41189a('0x2c')](_0x4f6f4b[_0x41189a('0x28')],function(_0x32b89e){const _0x3770c5=_0x41189a;return{'membername':_0x32b89e['name'],'UserId':_0x32b89e['id'],'queue_name':_0x238914[_0x3770c5('0x5c')],'OpenchannelQueueId':_0x238914['id'],'interface':util[_0x3770c5('0x1e')](_0x3770c5('0x5b'),_0x3770c5('0x44'),_0x32b89e[_0x3770c5('0x5c')]),'penalty':0x0,'paused':_0x32b89e[_0x3770c5('0x57')],'createdAt':_0x32b89e[_0x3770c5('0x20')],'updatedAt':_0x32b89e[_0x3770c5('0x9')]};})}:{'count':0x0,'rows':[]};})['then'](respondWithFilteredResult(_0x290633,_0x10cce1))[_0x328ef4('0x26')](handleError(_0x290633,null));},exports[_0x8207fb('0x5d')]=function(_0x14474b,_0x47178a){const _0xd9aa=_0x8207fb;let _0x5b045f={};const _0x366bf8={};let _0x382d97,_0x4b2552;return db[_0xd9aa('0x4')][_0xd9aa('0x6f')]({'where':{'id':_0x14474b[_0xd9aa('0x67')]['id']}})[_0xd9aa('0x60')](handleEntityNotFound(_0x47178a,null))[_0xd9aa('0x60')](function(_0x628b1d){const _0xaa7cba=_0xd9aa;if(_0x628b1d)return _0x382d97=_0x628b1d,_0x366bf8[_0xaa7cba('0x2')]=_[_0xaa7cba('0x61')](db['Team']['rawAttributes']),_0x366bf8[_0xaa7cba('0x19')]=_[_0xaa7cba('0x61')](_0x14474b[_0xaa7cba('0x19')]),_0x366bf8[_0xaa7cba('0xa')]=_['intersection'](_0x366bf8['model'],_0x366bf8[_0xaa7cba('0x19')]),_0x5b045f[_0xaa7cba('0x1a')]=_[_0xaa7cba('0x65')](_0x366bf8['model'],qs['fields'](_0x14474b[_0xaa7cba('0x19')]['fields'])),_0x5b045f[_0xaa7cba('0x1a')]=_0x5b045f[_0xaa7cba('0x1a')][_0xaa7cba('0x49')]?_0x5b045f[_0xaa7cba('0x1a')]:_0x366bf8[_0xaa7cba('0x2')],_0x5b045f[_0xaa7cba('0x40')]=qs[_0xaa7cba('0x52')](_0x14474b[_0xaa7cba('0x19')]['sort']),_0x5b045f['where']=qs[_0xaa7cba('0xa')](_['pick'](_0x14474b[_0xaa7cba('0x19')],_0x366bf8[_0xaa7cba('0xa')])),_0x14474b[_0xaa7cba('0x19')][_0xaa7cba('0x4e')]&&(_0x5b045f[_0xaa7cba('0x5f')]=_[_0xaa7cba('0x47')](_0x5b045f[_0xaa7cba('0x5f')],{[Op['or']]:_['map'](_0x5b045f[_0xaa7cba('0x1a')],function(_0xeeb540){const _0x42e141=_0xaa7cba,_0x585174={};return _0x585174[_0xeeb540]={[Op[_0x42e141('0x1')]]:'%'+_0x14474b['query'][_0x42e141('0x4e')]+'%'},_0x585174;})})),_0x5b045f=_[_0xaa7cba('0x47')]({},_0x5b045f,_0x14474b['options']),_0x382d97['getTeams'](_0x5b045f);})[_0xd9aa('0x60')](function(_0x3821af){const _0x529909=_0xd9aa;if(_0x3821af)return _0x4b2552=_0x3821af[_0x529909('0x49')],typeof _0x14474b[_0x529909('0x19')][_0x529909('0x41')]===_0x529909('0x43')&&(_0x5b045f[_0x529909('0x27')]=qs[_0x529909('0x27')](_0x14474b['query'][_0x529909('0x27')]),_0x5b045f[_0x529909('0x6d')]=qs[_0x529909('0x6d')](_0x14474b[_0x529909('0x19')][_0x529909('0x6d')])),_0x382d97['getTeams'](_0x5b045f);})[_0xd9aa('0x60')](function(_0x3407db){if(_0x3407db)return _0x3407db?{'count':_0x4b2552,'rows':_0x3407db}:null;})[_0xd9aa('0x60')](respondWithResult(_0x47178a,null))[_0xd9aa('0x26')](handleError(_0x47178a,null));},exports[_0x8207fb('0x34')]=function(_0x508648,_0x45fecf){const _0x679eb6=_0x8207fb,_0x21b4f3=_0x508648[_0x679eb6('0xf')][_0x679eb6('0x68')];return db[_0x679eb6('0x3d')]['findAll']({'where':{'id':_0x21b4f3},'attributes':['id'],'include':[{'model':db['User'],'as':_0x679eb6('0xd'),'attributes':['id',_0x679eb6('0x5c'),_0x679eb6('0x66'),'voicePause',_0x679eb6('0x25')],'raw':!![]}]})[_0x679eb6('0x60')](function(_0x5f24fa){const _0x203e1d=_0x679eb6;if(_0x5f24fa){const _0x560df7=_[_0x203e1d('0x31')](_0x5f24fa,function(_0x3d4354){const _0x3fbe54=_0x203e1d,_0x181891=_0x3d4354[_0x3fbe54('0x23')]({'plain':!![]});return _0x181891['Agents'];});return db[_0x203e1d('0x4')][_0x203e1d('0x6f')]({'where':{'id':_0x508648['params']['id']}})[_0x203e1d('0x60')](function(_0x1aecf5){const _0x30e25a=_0x203e1d;return db[_0x30e25a('0x1b')][_0x30e25a('0x14')](function(_0xbc7f3a){const _0x30c559=_0x30e25a;return _0x1aecf5[_0x30c559('0x34')](_0x21b4f3,{'transaction':_0xbc7f3a})[_0x30c559('0x60')](function(){const _0x1e4298=_0x30c559;return Promise[_0x1e4298('0x53')](_0x560df7[_0x1e4298('0x2c')](_0x36705b=>{const _0x3c82c8=_0x1e4298;return db[_0x3c82c8('0x59')][_0x3c82c8('0x17')]({'where':{'UserId':_0x36705b['id'],'OpenchannelQueueId':_0x508648[_0x3c82c8('0x67')]['id']},'transaction':_0xbc7f3a});}));})[_0x30c559('0x60')](function(){const _0x51b01b=_0x30c559;_0x560df7[_0x51b01b('0x4c')](function(_0x37a1d6){const _0x10f820=_0x51b01b;socket['emit'](_0x10f820('0x3c'),{'UserId':_0x37a1d6['id'],'OpenchannelQueueId':_0x1aecf5['id']});});});});});}})['then'](respondWithStatusCode(_0x45fecf,null))[_0x679eb6('0x26')](handleError(_0x45fecf,null));},exports[_0x8207fb('0x2e')]=function(_0x4df132,_0x49b502){const _0x2e2196=_0x8207fb;return db[_0x2e2196('0x3d')][_0x2e2196('0x0')]({'where':{'id':_0x4df132[_0x2e2196('0x19')]['ids']},'attributes':['id'],'include':[{'model':db[_0x2e2196('0x8')],'as':_0x2e2196('0xd'),'attributes':['id'],'raw':!![]}]})['then'](handleEntityNotFound(_0x49b502,null))[_0x2e2196('0x60')](function(_0xc4343b){const _0x560753=_0x2e2196,_0x1b36a1=_[_0x560753('0x2c')](_0xc4343b,'id');let _0x209328=[];const _0x17f1db=[],_0x208a39=squel[_0x560753('0x37')]();_0x208a39['field'](_0x560753('0x55'))[_0x560753('0x58')](_0x560753('0x4b'),'tq')[_0x560753('0x36')](_0x560753('0x42'),'ut',_0x560753('0x6b'))['where'](_0x560753('0x5e'),_0x4df132[_0x560753('0x67')]['id']);for(let _0xc526a5=0x0;_0xc526a5<_0xc4343b[_0x560753('0x49')];_0xc526a5+=0x1){const _0xe3b269=_0xc4343b[_0xc526a5];for(let _0x2b5f32=0x0;_0x2b5f32<_0xe3b269[_0x560753('0xd')]['length'];_0x2b5f32+=0x1){const _0x12177d=_0xe3b269[_0x560753('0xd')][_0x2b5f32],_0x817b10=_0x208a39[_0x560753('0x6')]();_0x817b10[_0x560753('0x5f')]('ut.UserId\x20=\x20?',_0x12177d['id']),_0x17f1db[_0x560753('0x35')](db[_0x560753('0x1b')][_0x560753('0x19')](_0x817b10[_0x560753('0x6e')](),{'type':QueryTypes[_0x560753('0xe')]})[_0x560753('0x60')](function(_0x5d49f6){if(_0x5d49f6['length']===0x1)return _0x12177d['id'];else{const _0x1eb565=_['every'](_['map'](_0x5d49f6,'TeamId'),function(_0x49afeb){const _0x31bd89=a494_0x2e71;return _[_0x31bd89('0xb')](_0x1b36a1,_0x49afeb);});if(_0x1eb565)return _0x12177d['id'];}}));}}return Promise[_0x560753('0x53')](_0x17f1db)[_0x560753('0x60')](function(_0x34272a){const _0x4809bc=_0x560753;return _0x209328=_(_0x209328)[_0x4809bc('0xc')](_0x34272a)['compact']()[_0x4809bc('0x69')](),db[_0x4809bc('0x4')][_0x4809bc('0x6f')]({'where':{'id':_0x4df132['params']['id']}})[_0x4809bc('0x60')](function(_0x3f596d){const _0x1ddf5d=_0x4809bc;return db[_0x1ddf5d('0x1b')][_0x1ddf5d('0x14')](function(_0x3cbe28){const _0x27e837=_0x1ddf5d;return _0x3f596d['removeTeams'](_0x4df132['query'][_0x27e837('0x68')],{'transaction':_0x3cbe28})[_0x27e837('0x60')](function(){const _0x766e22=_0x27e837;if(!_[_0x766e22('0x6c')](_0x209328))return _0x3f596d[_0x766e22('0x38')](_0x209328,{'transaction':_0x3cbe28});})['then'](function(){const _0x3edd09=_0x27e837;_0x209328[_0x3edd09('0x4c')](function(_0x185e1e){const _0x45df1e=_0x3edd09;socket[_0x45df1e('0x21')](_0x45df1e('0x3'),{'UserId':_0x185e1e,'OpenchannelQueueId':_0x3f596d['id']});});});});});});})[_0x2e2196('0x60')](respondWithStatusCode(_0x49b502,null))[_0x2e2196('0x26')](handleError(_0x49b502,null));},exports['addAgents']=function(_0x5eddda,_0x46dc12){const _0x419cd8=_0x8207fb;return db[_0x419cd8('0x4')][_0x419cd8('0x6f')]({'where':{'id':_0x5eddda[_0x419cd8('0x67')]['id']}})['then'](function(_0x27b8af){const _0x2dba05=_0x419cd8;if(_0x27b8af)return _0x27b8af[_0x2dba05('0x54')](_0x5eddda[_0x2dba05('0xf')][_0x2dba05('0x68')],{'through':_['omit'](_0x5eddda[_0x2dba05('0xf')],[_0x2dba05('0x68'),'id'])})[_0x2dba05('0x60')](function(_0x13cb23){const _0x2c68d9=_0x2dba05;for(let _0x36d9d3=0x0;_0x36d9d3<_0x5eddda[_0x2c68d9('0xf')][_0x2c68d9('0x68')][_0x2c68d9('0x49')];_0x36d9d3+=0x1){socket[_0x2c68d9('0x21')](_0x2c68d9('0x3c'),{'UserId':_0x5eddda[_0x2c68d9('0xf')]['ids'][_0x36d9d3],'OpenchannelQueueId':_0x5eddda['params']['id']});}return _0x13cb23;});})[_0x419cd8('0x60')](respondWithResult(_0x46dc12,null))[_0x419cd8('0x26')](handleError(_0x46dc12,null));},exports[_0x8207fb('0x38')]=function(_0x768e2a,_0x41d08a){const _0x433a11=_0x8207fb;return db[_0x433a11('0x4')][_0x433a11('0x6f')]({'where':{'id':_0x768e2a[_0x433a11('0x67')]['id']}})['then'](handleEntityNotFound(_0x41d08a,null))[_0x433a11('0x60')](function(_0x1d8ccb){const _0x16aca8=_0x433a11;if(_0x1d8ccb)return _0x1d8ccb[_0x16aca8('0x38')](_0x768e2a[_0x16aca8('0x19')][_0x16aca8('0x68')])['then'](function(){const _0x224c17=_0x16aca8;if(_['isArray'](_0x768e2a[_0x224c17('0x19')][_0x224c17('0x68')]))for(let _0x320e87=0x0;_0x320e87<_0x768e2a[_0x224c17('0x19')][_0x224c17('0x68')][_0x224c17('0x49')];_0x320e87+=0x1){socket['emit'](_0x224c17('0x3'),{'UserId':Number(_0x768e2a[_0x224c17('0x19')]['ids'][_0x320e87]),'OpenchannelQueueId':Number(_0x768e2a[_0x224c17('0x67')]['id'])});}else socket['emit'](_0x224c17('0x3'),{'UserId':Number(_0x768e2a[_0x224c17('0x19')][_0x224c17('0x68')]),'OpenchannelQueueId':Number(_0x768e2a['params']['id'])});});})[_0x433a11('0x60')](respondWithStatusCode(_0x41d08a,null))['catch'](handleError(_0x41d08a,null));},exports['getAgents']=function(_0x4bb41c,_0x1d6a58){const _0xfb887a=_0x8207fb;let _0x14a4a5={};const _0x57d59e={};let _0x1a05e3,_0x4b5474;return db[_0xfb887a('0x4')][_0xfb887a('0x6f')]({'where':{'id':_0x4bb41c[_0xfb887a('0x67')]['id']}})[_0xfb887a('0x60')](handleEntityNotFound(_0x1d6a58,null))[_0xfb887a('0x60')](function(_0x3058b8){const _0x4b9cdd=_0xfb887a;if(_0x3058b8)return _0x1a05e3=_0x3058b8,_0x57d59e['model']=_[_0x4b9cdd('0x61')](db['User']['rawAttributes']),_0x57d59e['query']=_[_0x4b9cdd('0x61')](_0x4bb41c[_0x4b9cdd('0x19')]),_0x57d59e[_0x4b9cdd('0xa')]=_[_0x4b9cdd('0x65')](_0x57d59e[_0x4b9cdd('0x2')],_0x57d59e[_0x4b9cdd('0x19')]),_0x14a4a5[_0x4b9cdd('0x1a')]=_[_0x4b9cdd('0x65')](_0x57d59e[_0x4b9cdd('0x2')],qs['fields'](_0x4bb41c[_0x4b9cdd('0x19')]['fields'])),_0x14a4a5[_0x4b9cdd('0x1a')]=_0x14a4a5[_0x4b9cdd('0x1a')][_0x4b9cdd('0x49')]?_0x14a4a5[_0x4b9cdd('0x1a')]:_0x57d59e['model'],_0x14a4a5[_0x4b9cdd('0x40')]=qs['sort'](_0x4bb41c[_0x4b9cdd('0x19')]['sort']),_0x14a4a5['where']=qs[_0x4b9cdd('0xa')](_[_0x4b9cdd('0x39')](_0x4bb41c[_0x4b9cdd('0x19')],_0x57d59e[_0x4b9cdd('0xa')])),_0x4bb41c['query'][_0x4b9cdd('0x4e')]&&(_0x14a4a5['where']=_[_0x4b9cdd('0x47')](_0x14a4a5[_0x4b9cdd('0x5f')],{[Op['or']]:_['map'](_0x14a4a5[_0x4b9cdd('0x1a')],function(_0x4130c9){const _0x7e1636=_0x4b9cdd,_0x3bb99c={};return _0x3bb99c[_0x4130c9]={[Op[_0x7e1636('0x1')]]:'%'+_0x4bb41c[_0x7e1636('0x19')][_0x7e1636('0x4e')]+'%'},_0x3bb99c;})})),_0x14a4a5=_[_0x4b9cdd('0x47')]({},_0x14a4a5,_0x4bb41c['options']),_0x1a05e3[_0x4b9cdd('0x4f')](_0x14a4a5);})[_0xfb887a('0x60')](function(_0x5a4e1b){const _0x45f45f=_0xfb887a;if(_0x5a4e1b)return _0x4b5474=_0x5a4e1b[_0x45f45f('0x49')],typeof _0x4bb41c[_0x45f45f('0x19')][_0x45f45f('0x41')]===_0x45f45f('0x43')&&(_0x14a4a5[_0x45f45f('0x27')]=qs[_0x45f45f('0x27')](_0x4bb41c[_0x45f45f('0x19')][_0x45f45f('0x27')]),_0x14a4a5[_0x45f45f('0x6d')]=qs[_0x45f45f('0x6d')](_0x4bb41c['query']['offset'])),_0x1a05e3[_0x45f45f('0x4f')](_0x14a4a5);})[_0xfb887a('0x60')](function(_0x4db221){if(_0x4db221)return _0x4db221?{'count':_0x4b5474,'rows':_0x4db221}:null;})[_0xfb887a('0x60')](respondWithResult(_0x1d6a58,null))['catch'](handleError(_0x1d6a58,null));}; \ No newline at end of file +const a593_0x41d9=['findAll','update','catch','name','get','params','VIRTUAL','rawAttributes','nolimit','addTeams','squel','userOpenchannelQueue:remove','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','openchannelPause','getAgents','options','model','filters','filter','compact','rows','OpenchannelQueueId','role','from','fieldName','lodash','pick','format','getMembers','body','transaction','findOne','isArray','../../config/logger','removeAgents','select','push','util','length','addAgents','emit','User','json','UserId','team_has_openchannel_queues','end','keys','user','removeTeams','findOrCreate','where','updatedAt','stack','includes','error','UserProfileResource','attributes','online','Content-Range','field','show','SELECT','sort','createdAt','count','set','undefined','isEmpty','limit','forEach','toString','ids','../../components/parsers/qs','order','fields','register','status','intersection','create','agent','like','index','findAndCountAll','all','user_has_teams','../../mysqldb','OpenchannelQueue','ut.UserId\x20=\x20?','then','type','OpenchannelQueues','userOpenchannelQueue:save','sequelize','OpenchannelQueueId\x20=\x20?','getTeams','offset','map','Team','UserOpenchannelQueue','../../rediscache','sendStatus','userProfileId','destroy','Agents','merge','interface','include','join','describe','%s/%s','query','omit'];(function(_0x2ff3fe,_0x11e9a3){const _0x41d9ac=function(_0x18e1c3){while(--_0x18e1c3){_0x2ff3fe['push'](_0x2ff3fe['shift']());}};_0x41d9ac(++_0x11e9a3);}(a593_0x41d9,0x17b));const a593_0x18e1=function(_0x2ff3fe,_0x11e9a3){_0x2ff3fe=_0x2ff3fe-0x1b1;let _0x41d9ac=a593_0x41d9[_0x2ff3fe];return _0x41d9ac;};const a593_0x3c4e69=a593_0x18e1;'use strict';const util=require(a593_0x3c4e69(0x21b)),_=require(a593_0x3c4e69(0x20f)),squel=require(a593_0x3c4e69(0x200)),qs=require(a593_0x3c4e69(0x1ce)),logger=require(a593_0x3c4e69(0x217))('api'),{getSocket}=require(a593_0x3c4e69(0x1e9)),socket=getSocket(),{db}=require(a593_0x3c4e69(0x1db)),{Op,QueryTypes}=require(a593_0x3c4e69(0x1e2));require('./openchannelQueue.socket')[a593_0x3c4e69(0x1d1)](socket);function respondWithStatusCode(_0x4c4159,_0x515050){return _0x515050=_0x515050||0xcc,function(_0x36719a){const _0x330467=a593_0x18e1;if(_0x36719a)return _0x4c4159[_0x330467(0x1ea)](_0x515050);return _0x4c4159[_0x330467(0x1d2)](_0x515050)['end']();};}function respondWithResult(_0x5ca414,_0x18ee5a){return _0x18ee5a=_0x18ee5a||0xc8,function(_0x5c335b){const _0x382a5c=a593_0x18e1;if(_0x5c335b)return _0x5ca414[_0x382a5c(0x1d2)](_0x18ee5a)[_0x382a5c(0x220)](_0x5c335b);};}function respondWithFilteredResult(_0x1e1751,_0x1b7435){return function(_0x13ff8d){const _0x1d6bb1=a593_0x18e1;if(_0x13ff8d){const _0x10b4ac=_0x13ff8d['count'],_0x213318=_0x1b7435['offset'];let _0x28a668=_0x1b7435['offset']+_0x1b7435[_0x1d6bb1(0x1ca)],_0x5bc415;return _0x28a668>=_0x10b4ac?(_0x28a668=_0x10b4ac,_0x5bc415=0xc8):_0x5bc415=0xce,_0x1e1751['status'](_0x5bc415),_0x1e1751[_0x1d6bb1(0x1c7)](_0x1d6bb1(0x1c0),_0x213318+'-'+_0x28a668+'/'+_0x10b4ac)[_0x1d6bb1(0x220)](_0x13ff8d);}return null;};}function saveUpdates(_0x58e4d0){return function(_0x16ca0a){const _0x4b4a2f=a593_0x18e1;if(_0x16ca0a)return _0x16ca0a[_0x4b4a2f(0x1f7)](_0x58e4d0)[_0x4b4a2f(0x1de)](function(_0x415388){return _0x415388;});return null;};}function removeEntity(_0xa35c4e){return function(_0x3f6b22){const _0x17e405=a593_0x18e1;if(_0x3f6b22)return _0x3f6b22[_0x17e405(0x1ec)]()['then'](function(){const _0x7e5e5c=_0x17e405,_0x1925dd=_0x3f6b22[_0x7e5e5c(0x1fa)]({'plain':!![]}),_0x142e5e=_0x7e5e5c(0x1e0);return db[_0x7e5e5c(0x1bd)]['destroy']({'where':{'type':_0x142e5e,'resourceId':_0x1925dd['id']}})[_0x7e5e5c(0x1de)](function(){return _0x3f6b22;});})['then'](function(){const _0x3bba38=_0x17e405;_0xa35c4e[_0x3bba38(0x1d2)](0xcc)[_0x3bba38(0x1b3)]();});};}function handleEntityNotFound(_0x1abfef){return function(_0x5266ef){const _0x5bd350=a593_0x18e1;return!_0x5266ef&&_0x1abfef[_0x5bd350(0x1ea)](0x194),_0x5266ef;};}function handleError(_0x2c501e,_0x19a8ad){return _0x19a8ad=_0x19a8ad||0x1f4,function(_0xea58c5){const _0x115d66=a593_0x18e1;logger[_0x115d66(0x1bc)](_0xea58c5[_0x115d66(0x1ba)]),_0xea58c5[_0x115d66(0x1f9)]&&delete _0xea58c5[_0x115d66(0x1f9)],_0x2c501e[_0x115d66(0x1d2)](_0x19a8ad)['send'](_0xea58c5);};}exports[a593_0x3c4e69(0x1d7)]=function(_0x354952,_0x154ee8){const _0x4dd148=a593_0x3c4e69;let _0x507e00={};const _0x4b3e75={},_0x306dcd={'count':0x0,'rows':[]},_0x4f6d76=_['map'](db[_0x4dd148(0x1dc)][_0x4dd148(0x1fd)],function(_0x4e9650){const _0x4b57d9=_0x4dd148;return{'name':_0x4e9650[_0x4b57d9(0x20e)],'type':_0x4e9650['type']['key']};});_0x4b3e75[_0x4dd148(0x206)]=_['map'](_0x4f6d76,_0x4dd148(0x1f9)),_0x4b3e75[_0x4dd148(0x1f4)]=_[_0x4dd148(0x1b4)](_0x354952[_0x4dd148(0x1f4)]),_0x4b3e75[_0x4dd148(0x207)]=_[_0x4dd148(0x1d3)](_0x4b3e75[_0x4dd148(0x206)],_0x4b3e75[_0x4dd148(0x1f4)]),_0x507e00[_0x4dd148(0x1be)]=_['intersection'](_0x4b3e75[_0x4dd148(0x206)],qs[_0x4dd148(0x1d0)](_0x354952[_0x4dd148(0x1f4)][_0x4dd148(0x1d0)])),_0x507e00[_0x4dd148(0x1be)]=_0x507e00[_0x4dd148(0x1be)]['length']?_0x507e00[_0x4dd148(0x1be)]:_0x4b3e75[_0x4dd148(0x206)];typeof _0x354952[_0x4dd148(0x1f4)][_0x4dd148(0x1fe)]==='undefined'&&(_0x507e00[_0x4dd148(0x1ca)]=qs[_0x4dd148(0x1ca)](_0x354952[_0x4dd148(0x1f4)][_0x4dd148(0x1ca)]),_0x507e00[_0x4dd148(0x1e5)]=qs['offset'](_0x354952[_0x4dd148(0x1f4)]['offset']));_0x507e00[_0x4dd148(0x1cf)]=qs[_0x4dd148(0x1c4)](_0x354952[_0x4dd148(0x1f4)][_0x4dd148(0x1c4)]),_0x507e00[_0x4dd148(0x1b8)]=qs['filters'](_['pick'](_0x354952['query'],_0x4b3e75[_0x4dd148(0x207)]),_0x4f6d76);_0x354952['query'][_0x4dd148(0x208)]&&(_0x507e00[_0x4dd148(0x1b8)]=_[_0x4dd148(0x1ee)](_0x507e00[_0x4dd148(0x1b8)],{[Op['or']]:_[_0x4dd148(0x1e6)](_0x4f6d76,function(_0x37a25a){const _0x100940=_0x4dd148;if(_0x37a25a[_0x100940(0x1df)]!==_0x100940(0x1fc)){const _0x4b1d63={};return _0x4b1d63[_0x37a25a[_0x100940(0x1f9)]]={[Op[_0x100940(0x1d6)]]:'%'+_0x354952[_0x100940(0x1f4)][_0x100940(0x208)]+'%'},_0x4b1d63;}})}));_0x507e00=_[_0x4dd148(0x1ee)]({},_0x507e00,_0x354952[_0x4dd148(0x205)]);const _0x3f7f4c={'where':_0x507e00[_0x4dd148(0x1b8)]};return db['OpenchannelQueue'][_0x4dd148(0x1c6)](_0x3f7f4c)['then'](function(_0x59f1a0){const _0x1b3c9c=_0x4dd148;return _0x306dcd['count']=_0x59f1a0,_0x354952[_0x1b3c9c(0x1f4)]['includeAll']&&(_0x507e00[_0x1b3c9c(0x1f0)]=[{'all':!![]}]),db[_0x1b3c9c(0x1dc)][_0x1b3c9c(0x1f6)](_0x507e00);})[_0x4dd148(0x1de)](function(_0x189672){const _0x499b87=_0x4dd148;return _0x306dcd[_0x499b87(0x20a)]=_0x189672,_0x306dcd;})[_0x4dd148(0x1de)](respondWithFilteredResult(_0x154ee8,_0x507e00))[_0x4dd148(0x1f8)](handleError(_0x154ee8,null));},exports[a593_0x3c4e69(0x1c2)]=function(_0x3ddac3,_0x304d7d){const _0x4ed7f5=a593_0x3c4e69;let _0x3b6c12={'raw':!![],'where':{'id':_0x3ddac3[_0x4ed7f5(0x1fb)]['id']}};const _0x5f4e3d={};return _0x5f4e3d['model']=_[_0x4ed7f5(0x1b4)](db['OpenchannelQueue'][_0x4ed7f5(0x1fd)]),_0x5f4e3d[_0x4ed7f5(0x1f4)]=_['keys'](_0x3ddac3['query']),_0x5f4e3d[_0x4ed7f5(0x207)]=_[_0x4ed7f5(0x1d3)](_0x5f4e3d[_0x4ed7f5(0x206)],_0x5f4e3d['query']),_0x3b6c12[_0x4ed7f5(0x1be)]=_[_0x4ed7f5(0x1d3)](_0x5f4e3d[_0x4ed7f5(0x206)],qs[_0x4ed7f5(0x1d0)](_0x3ddac3[_0x4ed7f5(0x1f4)][_0x4ed7f5(0x1d0)])),_0x3b6c12[_0x4ed7f5(0x1be)]=_0x3b6c12[_0x4ed7f5(0x1be)][_0x4ed7f5(0x21c)]?_0x3b6c12[_0x4ed7f5(0x1be)]:_0x5f4e3d['model'],_0x3ddac3['query']['includeAll']&&(_0x3b6c12[_0x4ed7f5(0x1f0)]=[{'all':!![]}]),_0x3b6c12=_[_0x4ed7f5(0x1ee)]({},_0x3b6c12,_0x3ddac3[_0x4ed7f5(0x205)]),db[_0x4ed7f5(0x1dc)][_0x4ed7f5(0x215)](_0x3b6c12)[_0x4ed7f5(0x1de)](handleEntityNotFound(_0x304d7d,null))[_0x4ed7f5(0x1de)](respondWithResult(_0x304d7d,null))[_0x4ed7f5(0x1f8)](handleError(_0x304d7d,null));},exports[a593_0x3c4e69(0x1d4)]=function(_0x3fc0a0,_0x551073){const _0x42756e=a593_0x3c4e69;return db['OpenchannelQueue'][_0x42756e(0x1d4)](_0x3fc0a0[_0x42756e(0x213)],{})[_0x42756e(0x1de)](function(_0x411649){const _0x266c03=_0x42756e,_0x231e5f=_0x3fc0a0[_0x266c03(0x1b5)][_0x266c03(0x1fa)]({'plain':!![]});if(!_0x231e5f)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x231e5f[_0x266c03(0x20c)]===_0x266c03(0x1b5)){const _0x26d197=_0x411649[_0x266c03(0x1fa)]({'plain':!![]}),_0x32922c=_0x266c03(0x1e0);return db['UserProfileSection'][_0x266c03(0x215)]({'where':{'name':_0x32922c,'userProfileId':_0x231e5f[_0x266c03(0x1eb)]},'raw':!![]})[_0x266c03(0x1de)](function(_0x5a169d){const _0x42be5e=_0x266c03;return _0x5a169d&&_0x5a169d['autoAssociation']===0x0?db[_0x42be5e(0x1bd)]['create']({'name':_0x26d197[_0x42be5e(0x1f9)],'resourceId':_0x26d197['id'],'type':_0x5a169d[_0x42be5e(0x1f9)],'sectionId':_0x5a169d['id']},{})[_0x42be5e(0x1de)](function(){return _0x411649;}):_0x411649;})[_0x266c03(0x1f8)](function(_0xbc72ac){const _0x3ecd3e=_0x266c03;logger[_0x3ecd3e(0x1bc)](_0x3ecd3e(0x202),_0xbc72ac);throw _0xbc72ac;});}return _0x411649;})[_0x42756e(0x1de)](respondWithResult(_0x551073,0xc9))[_0x42756e(0x1f8)](handleError(_0x551073,null));},exports[a593_0x3c4e69(0x1f7)]=function(_0x128601,_0x5c239b){const _0x281f1e=a593_0x3c4e69;return _0x128601[_0x281f1e(0x213)]['id']&&delete _0x128601[_0x281f1e(0x213)]['id'],db[_0x281f1e(0x1dc)][_0x281f1e(0x215)]({'where':{'id':_0x128601[_0x281f1e(0x1fb)]['id']}})[_0x281f1e(0x1de)](handleEntityNotFound(_0x5c239b,null))['then'](saveUpdates(_0x128601['body'],null))['then'](respondWithResult(_0x5c239b,null))[_0x281f1e(0x1f8)](handleError(_0x5c239b,null));},exports[a593_0x3c4e69(0x1ec)]=function(_0xca2f37,_0x3f0018){const _0x4917ab=a593_0x3c4e69;return db[_0x4917ab(0x1dc)][_0x4917ab(0x215)]({'where':{'id':_0xca2f37[_0x4917ab(0x1fb)]['id']}})['then'](handleEntityNotFound(_0x3f0018,null))[_0x4917ab(0x1de)](removeEntity(_0x3f0018,null))[_0x4917ab(0x1f8)](handleError(_0x3f0018,null));},exports['describe']=function(_0x2176e0,_0x2a6dc0){const _0x3c513a=a593_0x3c4e69;return db[_0x3c513a(0x1dc)][_0x3c513a(0x1f2)]()[_0x3c513a(0x1de)](respondWithResult(_0x2a6dc0,null))[_0x3c513a(0x1f8)](handleError(_0x2a6dc0,null));},exports[a593_0x3c4e69(0x212)]=function(_0x1664be,_0x1882b9){const _0x4eab53=a593_0x3c4e69;let _0x2503d1={'raw':!![],'where':{}};const _0x578486={};let _0x5acc2b;return db[_0x4eab53(0x1dc)]['findOne']({'where':{'id':_0x1664be[_0x4eab53(0x1fb)]['id']}})[_0x4eab53(0x1de)](handleEntityNotFound(_0x1882b9,null))[_0x4eab53(0x1de)](function(_0x15bf49){const _0x49d2d5=_0x4eab53;if(_0x15bf49)return _0x5acc2b=_0x15bf49[_0x49d2d5(0x1fa)]({'plain':!![]}),_0x578486['model']=_[_0x49d2d5(0x1b4)](db[_0x49d2d5(0x1e8)]['rawAttributes']),_0x578486[_0x49d2d5(0x1f4)]=_[_0x49d2d5(0x1b4)](_0x1664be['query']),_0x578486[_0x49d2d5(0x207)]=_['intersection'](_0x578486['model'],_0x578486[_0x49d2d5(0x1f4)]),_0x2503d1[_0x49d2d5(0x1be)]=_[_0x49d2d5(0x1d3)](_0x578486['model'],qs[_0x49d2d5(0x1d0)](_0x1664be[_0x49d2d5(0x1f4)][_0x49d2d5(0x1d0)])),_0x2503d1[_0x49d2d5(0x1be)]=_0x2503d1[_0x49d2d5(0x1be)][_0x49d2d5(0x21c)]?_0x2503d1[_0x49d2d5(0x1be)]:_0x578486[_0x49d2d5(0x206)],typeof _0x1664be[_0x49d2d5(0x1f4)][_0x49d2d5(0x1fe)]===_0x49d2d5(0x1c8)&&(_0x2503d1[_0x49d2d5(0x1ca)]=qs[_0x49d2d5(0x1ca)](_0x1664be[_0x49d2d5(0x1f4)][_0x49d2d5(0x1ca)]),_0x2503d1[_0x49d2d5(0x1e5)]=qs['offset'](_0x1664be[_0x49d2d5(0x1f4)][_0x49d2d5(0x1e5)])),_0x2503d1[_0x49d2d5(0x1cf)]=qs[_0x49d2d5(0x1c4)](_0x1664be[_0x49d2d5(0x1f4)][_0x49d2d5(0x1c4)]),_0x2503d1['where']=qs[_0x49d2d5(0x207)](_[_0x49d2d5(0x210)](_0x1664be[_0x49d2d5(0x1f4)],_0x578486[_0x49d2d5(0x207)])),_0x2503d1[_0x49d2d5(0x1b8)][_0x49d2d5(0x20b)]=_0x15bf49['id'],_0x1664be[_0x49d2d5(0x1f4)]['filter']&&(_0x2503d1[_0x49d2d5(0x1b8)]=_[_0x49d2d5(0x1ee)](_0x2503d1['where'],{[Op['or']]:_[_0x49d2d5(0x1e6)](_0x2503d1['attributes'],function(_0x1899bd){const _0x178609=_0x49d2d5,_0x4f8452={};return _0x4f8452[_0x1899bd]={[Op['like']]:'%'+_0x1664be['query'][_0x178609(0x208)]+'%'},_0x4f8452;})})),_0x2503d1=_[_0x49d2d5(0x1ee)]({},_0x2503d1,_0x1664be['options']),db[_0x49d2d5(0x1e8)]['findAll'](_0x2503d1);})[_0x4eab53(0x1de)](function(_0x6f1ae3){const _0x5ade69=_0x4eab53;if(_0x6f1ae3)return db[_0x5ade69(0x21f)][_0x5ade69(0x1d8)]({'where':{'id':_['map'](_0x6f1ae3,_0x5ade69(0x1b1)),'role':_0x5ade69(0x1d5)},'attributes':['id',_0x5ade69(0x1f9),_0x5ade69(0x203),_0x5ade69(0x1b9),_0x5ade69(0x1c5)]});})[_0x4eab53(0x1de)](function(_0x337295){const _0x3eb303=_0x4eab53;return _0x337295?{'count':_0x337295[_0x3eb303(0x1c6)],'rows':_['map'](_0x337295['rows'],function(_0x40a322){const _0x2a3a87=_0x3eb303;return{'membername':_0x40a322['name'],'UserId':_0x40a322['id'],'queue_name':_0x5acc2b['name'],'OpenchannelQueueId':_0x5acc2b['id'],'interface':util[_0x2a3a87(0x211)](_0x2a3a87(0x1f3),'SIP',_0x40a322[_0x2a3a87(0x1f9)]),'penalty':0x0,'paused':_0x40a322['openchannelPause'],'createdAt':_0x40a322[_0x2a3a87(0x1c5)],'updatedAt':_0x40a322[_0x2a3a87(0x1b9)]};})}:{'count':0x0,'rows':[]};})[_0x4eab53(0x1de)](respondWithFilteredResult(_0x1882b9,_0x2503d1))[_0x4eab53(0x1f8)](handleError(_0x1882b9,null));},exports[a593_0x3c4e69(0x1e4)]=function(_0x45902f,_0x5e3fbd){const _0x5ee460=a593_0x3c4e69;let _0x303b42={};const _0x4f2d22={};let _0x3486c3,_0x1e1e28;return db['OpenchannelQueue']['findOne']({'where':{'id':_0x45902f['params']['id']}})[_0x5ee460(0x1de)](handleEntityNotFound(_0x5e3fbd,null))[_0x5ee460(0x1de)](function(_0x1408d2){const _0x499587=_0x5ee460;if(_0x1408d2)return _0x3486c3=_0x1408d2,_0x4f2d22[_0x499587(0x206)]=_[_0x499587(0x1b4)](db[_0x499587(0x1e7)][_0x499587(0x1fd)]),_0x4f2d22[_0x499587(0x1f4)]=_[_0x499587(0x1b4)](_0x45902f[_0x499587(0x1f4)]),_0x4f2d22['filters']=_[_0x499587(0x1d3)](_0x4f2d22['model'],_0x4f2d22[_0x499587(0x1f4)]),_0x303b42[_0x499587(0x1be)]=_[_0x499587(0x1d3)](_0x4f2d22['model'],qs[_0x499587(0x1d0)](_0x45902f['query'][_0x499587(0x1d0)])),_0x303b42[_0x499587(0x1be)]=_0x303b42['attributes'][_0x499587(0x21c)]?_0x303b42[_0x499587(0x1be)]:_0x4f2d22[_0x499587(0x206)],_0x303b42[_0x499587(0x1cf)]=qs[_0x499587(0x1c4)](_0x45902f[_0x499587(0x1f4)][_0x499587(0x1c4)]),_0x303b42['where']=qs['filters'](_[_0x499587(0x210)](_0x45902f[_0x499587(0x1f4)],_0x4f2d22[_0x499587(0x207)])),_0x45902f[_0x499587(0x1f4)]['filter']&&(_0x303b42[_0x499587(0x1b8)]=_['merge'](_0x303b42[_0x499587(0x1b8)],{[Op['or']]:_[_0x499587(0x1e6)](_0x303b42['attributes'],function(_0xea578a){const _0x7d331f=_0x499587,_0x423add={};return _0x423add[_0xea578a]={[Op['like']]:'%'+_0x45902f[_0x7d331f(0x1f4)][_0x7d331f(0x208)]+'%'},_0x423add;})})),_0x303b42=_[_0x499587(0x1ee)]({},_0x303b42,_0x45902f[_0x499587(0x205)]),_0x3486c3[_0x499587(0x1e4)](_0x303b42);})[_0x5ee460(0x1de)](function(_0x15bdb4){const _0x5725c1=_0x5ee460;if(_0x15bdb4)return _0x1e1e28=_0x15bdb4[_0x5725c1(0x21c)],typeof _0x45902f[_0x5725c1(0x1f4)][_0x5725c1(0x1fe)]===_0x5725c1(0x1c8)&&(_0x303b42[_0x5725c1(0x1ca)]=qs[_0x5725c1(0x1ca)](_0x45902f[_0x5725c1(0x1f4)][_0x5725c1(0x1ca)]),_0x303b42[_0x5725c1(0x1e5)]=qs[_0x5725c1(0x1e5)](_0x45902f[_0x5725c1(0x1f4)][_0x5725c1(0x1e5)])),_0x3486c3['getTeams'](_0x303b42);})['then'](function(_0x561e92){if(_0x561e92)return _0x561e92?{'count':_0x1e1e28,'rows':_0x561e92}:null;})[_0x5ee460(0x1de)](respondWithResult(_0x5e3fbd,null))[_0x5ee460(0x1f8)](handleError(_0x5e3fbd,null));},exports['addTeams']=function(_0x5c0f67,_0x4667c9){const _0x228e50=a593_0x3c4e69,_0x16cd5c=_0x5c0f67[_0x228e50(0x213)][_0x228e50(0x1cd)];return db[_0x228e50(0x1e7)][_0x228e50(0x1f6)]({'where':{'id':_0x16cd5c},'attributes':['id'],'include':[{'model':db[_0x228e50(0x21f)],'as':_0x228e50(0x1ed),'attributes':['id',_0x228e50(0x1f9),_0x228e50(0x1bf),'voicePause',_0x228e50(0x1ef)],'raw':!![]}]})[_0x228e50(0x1de)](function(_0x1704d0){const _0x4fc9b3=_0x228e50;if(_0x1704d0){const _0x291a79=_['flatMap'](_0x1704d0,function(_0x38cfc){const _0x531f73=a593_0x18e1,_0xa9a02d=_0x38cfc[_0x531f73(0x1fa)]({'plain':!![]});return _0xa9a02d['Agents'];});return db[_0x4fc9b3(0x1dc)][_0x4fc9b3(0x215)]({'where':{'id':_0x5c0f67['params']['id']}})[_0x4fc9b3(0x1de)](function(_0x1c6785){const _0x376b70=_0x4fc9b3;return db[_0x376b70(0x1e2)][_0x376b70(0x214)](function(_0x552f03){const _0x5a48d1=_0x376b70;return _0x1c6785[_0x5a48d1(0x1ff)](_0x16cd5c,{'transaction':_0x552f03})['then'](function(){const _0xc4979b=_0x5a48d1;return Promise['all'](_0x291a79[_0xc4979b(0x1e6)](_0x3ce501=>{const _0x202b65=_0xc4979b;return db[_0x202b65(0x1e8)][_0x202b65(0x1b7)]({'where':{'UserId':_0x3ce501['id'],'OpenchannelQueueId':_0x5c0f67[_0x202b65(0x1fb)]['id']},'transaction':_0x552f03});}));})['then'](function(){_0x291a79['forEach'](function(_0x2cb50f){const _0x3c8d17=a593_0x18e1;socket['emit'](_0x3c8d17(0x1e1),{'UserId':_0x2cb50f['id'],'OpenchannelQueueId':_0x1c6785['id']});});});});});}})[_0x228e50(0x1de)](respondWithStatusCode(_0x4667c9,null))[_0x228e50(0x1f8)](handleError(_0x4667c9,null));},exports[a593_0x3c4e69(0x1b6)]=function(_0x1b2de0,_0x14e5bd){const _0x4a9117=a593_0x3c4e69;return db[_0x4a9117(0x1e7)]['findAll']({'where':{'id':_0x1b2de0['query']['ids']},'attributes':['id'],'include':[{'model':db[_0x4a9117(0x21f)],'as':'Agents','attributes':['id'],'raw':!![]}]})[_0x4a9117(0x1de)](handleEntityNotFound(_0x14e5bd,null))[_0x4a9117(0x1de)](function(_0x427ab2){const _0x2756a6=_0x4a9117,_0x1f15be=_[_0x2756a6(0x1e6)](_0x427ab2,'id');let _0x32c46a=[];const _0x1c3f44=[],_0x5f27da=squel[_0x2756a6(0x219)]();_0x5f27da[_0x2756a6(0x1c1)]('tq.TeamId')[_0x2756a6(0x20d)](_0x2756a6(0x1b2),'tq')[_0x2756a6(0x1f1)](_0x2756a6(0x1da),'ut','ut.TeamId\x20=\x20tq.TeamId')[_0x2756a6(0x1b8)](_0x2756a6(0x1e3),_0x1b2de0['params']['id']);for(let _0xa3f416=0x0;_0xa3f416<_0x427ab2[_0x2756a6(0x21c)];_0xa3f416+=0x1){const _0xdbfb81=_0x427ab2[_0xa3f416];for(let _0xac5b94=0x0;_0xac5b94<_0xdbfb81[_0x2756a6(0x1ed)]['length'];_0xac5b94+=0x1){const _0x428863=_0xdbfb81[_0x2756a6(0x1ed)][_0xac5b94],_0x422127=_0x5f27da['clone']();_0x422127[_0x2756a6(0x1b8)](_0x2756a6(0x1dd),_0x428863['id']),_0x1c3f44[_0x2756a6(0x21a)](db[_0x2756a6(0x1e2)][_0x2756a6(0x1f4)](_0x422127[_0x2756a6(0x1cc)](),{'type':QueryTypes[_0x2756a6(0x1c3)]})['then'](function(_0x4dbd2a){const _0x341cb7=_0x2756a6;if(_0x4dbd2a[_0x341cb7(0x21c)]===0x1)return _0x428863['id'];else{const _0x17bb4f=_['every'](_[_0x341cb7(0x1e6)](_0x4dbd2a,'TeamId'),function(_0xa95fa2){const _0x4dd4c4=_0x341cb7;return _[_0x4dd4c4(0x1bb)](_0x1f15be,_0xa95fa2);});if(_0x17bb4f)return _0x428863['id'];}}));}}return Promise[_0x2756a6(0x1d9)](_0x1c3f44)['then'](function(_0x339ede){const _0x5e6852=_0x2756a6;return _0x32c46a=_(_0x32c46a)['union'](_0x339ede)[_0x5e6852(0x209)]()['value'](),db[_0x5e6852(0x1dc)][_0x5e6852(0x215)]({'where':{'id':_0x1b2de0[_0x5e6852(0x1fb)]['id']}})['then'](function(_0x4aab6a){const _0x3aacaf=_0x5e6852;return db[_0x3aacaf(0x1e2)][_0x3aacaf(0x214)](function(_0x4b10f0){const _0x14993e=_0x3aacaf;return _0x4aab6a[_0x14993e(0x1b6)](_0x1b2de0[_0x14993e(0x1f4)][_0x14993e(0x1cd)],{'transaction':_0x4b10f0})['then'](function(){const _0x734778=_0x14993e;if(!_[_0x734778(0x1c9)](_0x32c46a))return _0x4aab6a['removeAgents'](_0x32c46a,{'transaction':_0x4b10f0});})[_0x14993e(0x1de)](function(){const _0x5e22ba=_0x14993e;_0x32c46a[_0x5e22ba(0x1cb)](function(_0x47a613){const _0x515136=_0x5e22ba;socket[_0x515136(0x21e)](_0x515136(0x201),{'UserId':_0x47a613,'OpenchannelQueueId':_0x4aab6a['id']});});});});});});})['then'](respondWithStatusCode(_0x14e5bd,null))['catch'](handleError(_0x14e5bd,null));},exports[a593_0x3c4e69(0x21d)]=function(_0x72c258,_0x153ad1){const _0x40265d=a593_0x3c4e69;return db[_0x40265d(0x1dc)][_0x40265d(0x215)]({'where':{'id':_0x72c258['params']['id']}})['then'](function(_0x2ad290){const _0x228fe6=_0x40265d;if(_0x2ad290)return _0x2ad290[_0x228fe6(0x21d)](_0x72c258[_0x228fe6(0x213)][_0x228fe6(0x1cd)],{'through':_[_0x228fe6(0x1f5)](_0x72c258[_0x228fe6(0x213)],[_0x228fe6(0x1cd),'id'])})[_0x228fe6(0x1de)](function(_0x4d8ea9){const _0x35c4fb=_0x228fe6;for(let _0x6484ef=0x0;_0x6484ef<_0x72c258[_0x35c4fb(0x213)][_0x35c4fb(0x1cd)][_0x35c4fb(0x21c)];_0x6484ef+=0x1){socket['emit'](_0x35c4fb(0x1e1),{'UserId':_0x72c258['body']['ids'][_0x6484ef],'OpenchannelQueueId':_0x72c258[_0x35c4fb(0x1fb)]['id']});}return _0x4d8ea9;});})[_0x40265d(0x1de)](respondWithResult(_0x153ad1,null))[_0x40265d(0x1f8)](handleError(_0x153ad1,null));},exports[a593_0x3c4e69(0x218)]=function(_0x1b41a8,_0x1e6181){const _0x361cbf=a593_0x3c4e69;return db[_0x361cbf(0x1dc)][_0x361cbf(0x215)]({'where':{'id':_0x1b41a8[_0x361cbf(0x1fb)]['id']}})['then'](handleEntityNotFound(_0x1e6181,null))[_0x361cbf(0x1de)](function(_0x3ebc09){const _0x5cd43=_0x361cbf;if(_0x3ebc09)return _0x3ebc09[_0x5cd43(0x218)](_0x1b41a8[_0x5cd43(0x1f4)][_0x5cd43(0x1cd)])[_0x5cd43(0x1de)](function(){const _0x12e457=_0x5cd43;if(_[_0x12e457(0x216)](_0x1b41a8[_0x12e457(0x1f4)][_0x12e457(0x1cd)]))for(let _0x184ff4=0x0;_0x184ff4<_0x1b41a8[_0x12e457(0x1f4)][_0x12e457(0x1cd)][_0x12e457(0x21c)];_0x184ff4+=0x1){socket[_0x12e457(0x21e)](_0x12e457(0x201),{'UserId':Number(_0x1b41a8[_0x12e457(0x1f4)][_0x12e457(0x1cd)][_0x184ff4]),'OpenchannelQueueId':Number(_0x1b41a8['params']['id'])});}else socket[_0x12e457(0x21e)]('userOpenchannelQueue:remove',{'UserId':Number(_0x1b41a8[_0x12e457(0x1f4)][_0x12e457(0x1cd)]),'OpenchannelQueueId':Number(_0x1b41a8[_0x12e457(0x1fb)]['id'])});});})[_0x361cbf(0x1de)](respondWithStatusCode(_0x1e6181,null))[_0x361cbf(0x1f8)](handleError(_0x1e6181,null));},exports[a593_0x3c4e69(0x204)]=function(_0x14de2f,_0xb8838){const _0x54e343=a593_0x3c4e69;let _0x5bde82={};const _0x417e4e={};let _0x2a3e25,_0x22d493;return db[_0x54e343(0x1dc)]['findOne']({'where':{'id':_0x14de2f['params']['id']}})['then'](handleEntityNotFound(_0xb8838,null))[_0x54e343(0x1de)](function(_0x2501d7){const _0x10308f=_0x54e343;if(_0x2501d7)return _0x2a3e25=_0x2501d7,_0x417e4e[_0x10308f(0x206)]=_['keys'](db[_0x10308f(0x21f)][_0x10308f(0x1fd)]),_0x417e4e['query']=_[_0x10308f(0x1b4)](_0x14de2f[_0x10308f(0x1f4)]),_0x417e4e[_0x10308f(0x207)]=_[_0x10308f(0x1d3)](_0x417e4e[_0x10308f(0x206)],_0x417e4e[_0x10308f(0x1f4)]),_0x5bde82[_0x10308f(0x1be)]=_[_0x10308f(0x1d3)](_0x417e4e[_0x10308f(0x206)],qs[_0x10308f(0x1d0)](_0x14de2f[_0x10308f(0x1f4)][_0x10308f(0x1d0)])),_0x5bde82[_0x10308f(0x1be)]=_0x5bde82[_0x10308f(0x1be)]['length']?_0x5bde82['attributes']:_0x417e4e[_0x10308f(0x206)],_0x5bde82[_0x10308f(0x1cf)]=qs['sort'](_0x14de2f['query'][_0x10308f(0x1c4)]),_0x5bde82[_0x10308f(0x1b8)]=qs[_0x10308f(0x207)](_['pick'](_0x14de2f[_0x10308f(0x1f4)],_0x417e4e[_0x10308f(0x207)])),_0x14de2f[_0x10308f(0x1f4)][_0x10308f(0x208)]&&(_0x5bde82['where']=_[_0x10308f(0x1ee)](_0x5bde82[_0x10308f(0x1b8)],{[Op['or']]:_[_0x10308f(0x1e6)](_0x5bde82[_0x10308f(0x1be)],function(_0x43f388){const _0x50d6ec=_0x10308f,_0x50d1b3={};return _0x50d1b3[_0x43f388]={[Op[_0x50d6ec(0x1d6)]]:'%'+_0x14de2f[_0x50d6ec(0x1f4)][_0x50d6ec(0x208)]+'%'},_0x50d1b3;})})),_0x5bde82=_[_0x10308f(0x1ee)]({},_0x5bde82,_0x14de2f[_0x10308f(0x205)]),_0x2a3e25[_0x10308f(0x204)](_0x5bde82);})[_0x54e343(0x1de)](function(_0x189813){const _0x1c8307=_0x54e343;if(_0x189813)return _0x22d493=_0x189813[_0x1c8307(0x21c)],typeof _0x14de2f['query'][_0x1c8307(0x1fe)]==='undefined'&&(_0x5bde82['limit']=qs[_0x1c8307(0x1ca)](_0x14de2f[_0x1c8307(0x1f4)][_0x1c8307(0x1ca)]),_0x5bde82[_0x1c8307(0x1e5)]=qs[_0x1c8307(0x1e5)](_0x14de2f[_0x1c8307(0x1f4)]['offset'])),_0x2a3e25['getAgents'](_0x5bde82);})[_0x54e343(0x1de)](function(_0x267e4f){if(_0x267e4f)return _0x267e4f?{'count':_0x22d493,'rows':_0x267e4f}:null;})['then'](respondWithResult(_0xb8838,null))[_0x54e343(0x1f8)](handleError(_0xb8838,null));}; \ No newline at end of file diff --git a/server/api/openchannelQueue/openchannelQueue.events.js b/server/api/openchannelQueue/openchannelQueue.events.js index e89d9b8..65db9d8 100644 --- a/server/api/openchannelQueue/openchannelQueue.events.js +++ b/server/api/openchannelQueue/openchannelQueue.events.js @@ -1 +1 @@ -const a495_0x1ce1=['../../mysqldb','events','save','emit','update','undefined','addHook','exports','setMaxListeners'];(function(_0x2177eb,_0x1ce1fc){const _0x3080e8=function(_0x5195d2){while(--_0x5195d2){_0x2177eb['push'](_0x2177eb['shift']());}};_0x3080e8(++_0x1ce1fc);}(a495_0x1ce1,0x1a2));const a495_0x3080=function(_0x2177eb,_0x1ce1fc){_0x2177eb=_0x2177eb-0x0;let _0x3080e8=a495_0x1ce1[_0x2177eb];return _0x3080e8;};const _0x1d1627=a495_0x3080;'use strict';const EventEmitter=require(_0x1d1627('0x6')),OpenchannelQueue=require(_0x1d1627('0x5'))['db']['OpenchannelQueue'],OpenchannelQueueEvents=new EventEmitter();OpenchannelQueueEvents[_0x1d1627('0x4')](0x0);const events={'afterCreate':_0x1d1627('0x7'),'afterUpdate':_0x1d1627('0x0'),'afterDestroy':'remove'};function emitEvent(_0x5195d2){return function(_0x31c51a){const _0x4ed33f=a495_0x3080;OpenchannelQueueEvents[_0x4ed33f('0x8')](_0x5195d2+':'+_0x31c51a['id'],_0x31c51a),OpenchannelQueueEvents[_0x4ed33f('0x8')](_0x5195d2,_0x31c51a);};}for(const e in events){if(typeof events[e]!==_0x1d1627('0x1')){const event=events[e];OpenchannelQueue[_0x1d1627('0x2')](e,emitEvent(event));}}module[_0x1d1627('0x3')]=OpenchannelQueueEvents; \ No newline at end of file +const a594_0x1bf9=['exports','addHook','remove','undefined','update','save','emit','../../mysqldb','setMaxListeners','events'];(function(_0x29eadd,_0xd9491f){const _0x1bf990=function(_0x17cfc3){while(--_0x17cfc3){_0x29eadd['push'](_0x29eadd['shift']());}};_0x1bf990(++_0xd9491f);}(a594_0x1bf9,0x172));const a594_0x17cf=function(_0x29eadd,_0xd9491f){_0x29eadd=_0x29eadd-0xe0;let _0x1bf990=a594_0x1bf9[_0x29eadd];return _0x1bf990;};const a594_0x5447b6=a594_0x17cf;'use strict';const EventEmitter=require(a594_0x5447b6(0xe9)),OpenchannelQueue=require(a594_0x5447b6(0xe7))['db']['OpenchannelQueue'],OpenchannelQueueEvents=new EventEmitter();OpenchannelQueueEvents[a594_0x5447b6(0xe8)](0x0);const events={'afterCreate':a594_0x5447b6(0xe5),'afterUpdate':a594_0x5447b6(0xe4),'afterDestroy':a594_0x5447b6(0xe2)};function emitEvent(_0x39d0ba){return function(_0x256455){const _0x508daa=a594_0x17cf;OpenchannelQueueEvents[_0x508daa(0xe6)](_0x39d0ba+':'+_0x256455['id'],_0x256455),OpenchannelQueueEvents[_0x508daa(0xe6)](_0x39d0ba,_0x256455);};}for(const e in events){if(typeof events[e]!==a594_0x5447b6(0xe3)){const event=events[e];OpenchannelQueue[a594_0x5447b6(0xe1)](e,emitEvent(event));}}module[a594_0x5447b6(0xe0)]=OpenchannelQueueEvents; \ No newline at end of file diff --git a/server/api/openchannelQueue/openchannelQueue.model.js b/server/api/openchannelQueue/openchannelQueue.model.js index a13b1d2..5cafa5d 100644 --- a/server/api/openchannelQueue/openchannelQueue.model.js +++ b/server/api/openchannelQueue/openchannelQueue.model.js @@ -1 +1 @@ -const a496_0x55cb=['exports','./openchannelQueue.attributes','define'];(function(_0x19187f,_0x55cbcf){const _0x2a7c28=function(_0x52a323){while(--_0x52a323){_0x19187f['push'](_0x19187f['shift']());}};_0x2a7c28(++_0x55cbcf);}(a496_0x55cb,0x17f));const a496_0x2a7c=function(_0x19187f,_0x55cbcf){_0x19187f=_0x19187f-0x0;let _0x2a7c28=a496_0x55cb[_0x19187f];return _0x2a7c28;};const _0x364931=a496_0x2a7c;'use strict';const attributes=require(_0x364931('0x2'));module[_0x364931('0x1')]=function(_0x52a323){const _0x4f7b51=_0x364931,_0x205e38=_0x52a323[_0x4f7b51('0x0')]('OpenchannelQueue',attributes,{'tableName':'openchannel_queues','paranoid':![],'indexes':[],'timestamps':!![]});return _0x205e38;}; \ No newline at end of file +const a595_0x42b6=['OpenchannelQueue','function','init','./openchannelQueue.attributes'];(function(_0x17ac19,_0x3d3d67){const _0x42b6a0=function(_0x1131ef){while(--_0x1131ef){_0x17ac19['push'](_0x17ac19['shift']());}};_0x42b6a0(++_0x3d3d67);}(a595_0x42b6,0x187));const a595_0x1131=function(_0x17ac19,_0x3d3d67){_0x17ac19=_0x17ac19-0xbb;let _0x42b6a0=a595_0x42b6[_0x17ac19];return _0x42b6a0;};const a595_0x24753f=a595_0x1131;'use strict';const {Model}=require('sequelize'),{attributes}=require(a595_0x24753f(0xbb)),{options}=require('./openchannelQueue.options');class OpenchannelQueue extends Model{}function init(_0xb60a68,_0x54c5d4){const _0x513719=a595_0x24753f,_0x446b91=options(_0xb60a68),_0x1f421c=typeof _0x54c5d4===_0x513719(0xbd)?_0x54c5d4(_0x446b91):_0x446b91;return OpenchannelQueue[_0x513719(0xbe)](attributes,_0x1f421c),OpenchannelQueue;}module['exports'][a595_0x24753f(0xbc)]=OpenchannelQueue,module['exports'][a595_0x24753f(0xbe)]=init; \ No newline at end of file diff --git a/server/api/openchannelQueue/openchannelQueue.options.js b/server/api/openchannelQueue/openchannelQueue.options.js new file mode 100644 index 0000000..6db9b64 --- /dev/null +++ b/server/api/openchannelQueue/openchannelQueue.options.js @@ -0,0 +1 @@ +var a596_0x1260=['openchannel_queues','options','exports'];(function(_0x27d1c2,_0x316b3f){var _0x1260f4=function(_0x513c62){while(--_0x513c62){_0x27d1c2['push'](_0x27d1c2['shift']());}};_0x1260f4(++_0x316b3f);}(a596_0x1260,0x120));var a596_0x513c=function(_0x27d1c2,_0x316b3f){_0x27d1c2=_0x27d1c2-0x13b;var _0x1260f4=a596_0x1260[_0x27d1c2];return _0x1260f4;};var a596_0x42a74f=a596_0x513c;function options(_0x1df6f9){var _0x310208=a596_0x513c;return{'sequelize':_0x1df6f9,'tableName':_0x310208(0x13b),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a596_0x42a74f(0x13d)][a596_0x42a74f(0x13c)]=options; \ No newline at end of file diff --git a/server/api/openchannelQueue/openchannelQueue.rpc.js b/server/api/openchannelQueue/openchannelQueue.rpc.js index c28d571..45116ff 100644 --- a/server/api/openchannelQueue/openchannelQueue.rpc.js +++ b/server/api/openchannelQueue/openchannelQueue.rpc.js @@ -1 +1 @@ -const a497_0x2518=['findOne','error','GetOpenchannelQueue','message','findAll','options','lodash','model','where','ShowOpenchannelQueue','../../config/logger','../../mysqldb','then','include','./openchannelQueue.socket','attributes','map','../../rediscache','OpenchannelQueue','limit','info','stringify','debug','register','raw'];(function(_0x22a921,_0x25186f){const _0x23cac5=function(_0x9123c3){while(--_0x9123c3){_0x22a921['push'](_0x22a921['shift']());}};_0x23cac5(++_0x25186f);}(a497_0x2518,0x16b));const a497_0x23ca=function(_0x22a921,_0x25186f){_0x22a921=_0x22a921-0x0;let _0x23cac5=a497_0x2518[_0x22a921];return _0x23cac5;};const _0x2d22aa=a497_0x23ca;'use strict';const _=require(_0x2d22aa('0x12')),db=require(_0x2d22aa('0x17'))['db'],logger=require(_0x2d22aa('0x16'))('rpc'),{getSocket}=require(_0x2d22aa('0x4')),socket=getSocket();require(_0x2d22aa('0x1'))[_0x2d22aa('0xa')](socket),exports[_0x2d22aa('0xe')]=function(_0x9123c3){const _0x5a589e=this;return new Promise(function(_0x42f019,_0x3e3db8){const _0x15e5da=a497_0x23ca;return db[_0x15e5da('0x5')][_0x15e5da('0x10')]({'raw':_0x9123c3['options']?_0x9123c3[_0x15e5da('0x11')][_0x15e5da('0xb')]===undefined?!![]:![]:!![],'where':_0x9123c3[_0x15e5da('0x11')]?_0x9123c3['options'][_0x15e5da('0x14')]||null:null,'attributes':_0x9123c3['options']?_0x9123c3[_0x15e5da('0x11')][_0x15e5da('0x2')]||null:null,'limit':_0x9123c3['options']?_0x9123c3[_0x15e5da('0x11')][_0x15e5da('0x6')]||null:null,'include':_0x9123c3['options']?_0x9123c3['options']['include']?_[_0x15e5da('0x3')](_0x9123c3['options'][_0x15e5da('0x0')],function(_0x5395ce){const _0x5cd35d=_0x15e5da;return{'model':db[_0x5395ce[_0x5cd35d('0x13')]],'as':_0x5395ce['as'],'attributes':_0x5395ce[_0x5cd35d('0x2')],'include':_0x5395ce[_0x5cd35d('0x0')]?_[_0x5cd35d('0x3')](_0x5395ce[_0x5cd35d('0x0')],function(_0x3358a9){const _0xb51819=_0x5cd35d;return{'model':db[_0x3358a9['model']],'as':_0x3358a9['as'],'attributes':_0x3358a9[_0xb51819('0x2')],'include':_0x3358a9[_0xb51819('0x0')]?_[_0xb51819('0x3')](_0x3358a9[_0xb51819('0x0')],function(_0x59bb1a){const _0x41fece=_0xb51819;return{'model':db[_0x59bb1a[_0x41fece('0x13')]],'as':_0x59bb1a['as'],'attributes':_0x59bb1a[_0x41fece('0x2')]};}):[]};}):[]};}):[]:[]})[_0x15e5da('0x18')](function(_0x3d3f89){const _0x4458b7=_0x15e5da;logger['info'](_0x4458b7('0xe'),_0x9123c3),logger[_0x4458b7('0x9')](_0x4458b7('0xe'),_0x9123c3,JSON[_0x4458b7('0x8')](_0x3d3f89)),_0x42f019(_0x3d3f89);})['catch'](function(_0x21d186){const _0x5900ce=_0x15e5da;logger[_0x5900ce('0xd')]('GetOpenchannelQueue',_0x21d186[_0x5900ce('0xf')],_0x9123c3),_0x3e3db8(_0x5a589e['error'](0x1f4,_0x21d186['message']));});});},exports[_0x2d22aa('0x15')]=function(_0x432d8b){const _0x1e18ef=this;return new Promise(function(_0x262967,_0x3d381a){const _0x1a6f8c=a497_0x23ca;return db[_0x1a6f8c('0x5')][_0x1a6f8c('0xc')]({'raw':_0x432d8b['options']?_0x432d8b[_0x1a6f8c('0x11')]['raw']===undefined?!![]:![]:!![],'where':_0x432d8b['options']?_0x432d8b[_0x1a6f8c('0x11')][_0x1a6f8c('0x14')]||null:null,'attributes':_0x432d8b[_0x1a6f8c('0x11')]?_0x432d8b['options'][_0x1a6f8c('0x2')]||null:null,'include':_0x432d8b[_0x1a6f8c('0x11')]?_0x432d8b[_0x1a6f8c('0x11')][_0x1a6f8c('0x0')]?_[_0x1a6f8c('0x3')](_0x432d8b[_0x1a6f8c('0x11')]['include'],function(_0x3f9bfb){const _0xb7d44=_0x1a6f8c;return{'model':db[_0x3f9bfb[_0xb7d44('0x13')]],'as':_0x3f9bfb['as'],'attributes':_0x3f9bfb[_0xb7d44('0x2')],'include':_0x3f9bfb['include']?_[_0xb7d44('0x3')](_0x3f9bfb['include'],function(_0x1b8d9e){const _0x63402c=_0xb7d44;return{'model':db[_0x1b8d9e[_0x63402c('0x13')]],'as':_0x1b8d9e['as'],'attributes':_0x1b8d9e[_0x63402c('0x2')],'include':_0x1b8d9e[_0x63402c('0x0')]?_[_0x63402c('0x3')](_0x1b8d9e[_0x63402c('0x0')],function(_0x37092c){return{'model':db[_0x37092c['model']],'as':_0x37092c['as'],'attributes':_0x37092c['attributes']};}):[]};}):[]};}):[]:[]})[_0x1a6f8c('0x18')](function(_0x46563b){const _0x23856d=_0x1a6f8c;logger[_0x23856d('0x7')](_0x23856d('0x15'),_0x432d8b),logger['debug'](_0x23856d('0x15'),_0x432d8b,JSON[_0x23856d('0x8')](_0x46563b)),_0x262967(_0x46563b);})['catch'](function(_0x271895){const _0x4568cb=_0x1a6f8c;logger[_0x4568cb('0xd')](_0x4568cb('0x15'),_0x271895['message'],_0x432d8b),_0x3d381a(_0x1e18ef[_0x4568cb('0xd')](0x1f4,_0x271895[_0x4568cb('0xf')]));});});}; \ No newline at end of file +const a597_0x5c12=['debug','catch','limit','../../config/logger','error','map','raw','../../mysqldb','stringify','model','message','where','include','rpc','OpenchannelQueue','attributes','options','ShowOpenchannelQueue','GetOpenchannelQueue','info','then','../../rediscache','lodash','findOne'];(function(_0x5870b9,_0x56c2f4){const _0x5c1288=function(_0x25a310){while(--_0x25a310){_0x5870b9['push'](_0x5870b9['shift']());}};_0x5c1288(++_0x56c2f4);}(a597_0x5c12,0x7f));const a597_0x25a3=function(_0x5870b9,_0x56c2f4){_0x5870b9=_0x5870b9-0x71;let _0x5c1288=a597_0x5c12[_0x5870b9];return _0x5c1288;};const a597_0x8347d=a597_0x25a3;'use strict';const _=require(a597_0x8347d(0x80)),db=require(a597_0x8347d(0x71))['db'],logger=require(a597_0x8347d(0x85))(a597_0x8347d(0x77)),{getSocket}=require(a597_0x8347d(0x7f)),socket=getSocket();require('./openchannelQueue.socket')['register'](socket),exports[a597_0x8347d(0x7c)]=function(_0x373f95){const _0x1cbdee=this;return new Promise(function(_0x398985,_0x3f96e1){const _0x3d2cf6=a597_0x25a3;return db[_0x3d2cf6(0x78)]['findAll']({'raw':_0x373f95[_0x3d2cf6(0x7a)]?_0x373f95[_0x3d2cf6(0x7a)][_0x3d2cf6(0x88)]===undefined?!![]:![]:!![],'where':_0x373f95['options']?_0x373f95[_0x3d2cf6(0x7a)]['where']||null:null,'attributes':_0x373f95[_0x3d2cf6(0x7a)]?_0x373f95[_0x3d2cf6(0x7a)][_0x3d2cf6(0x79)]||null:null,'limit':_0x373f95[_0x3d2cf6(0x7a)]?_0x373f95[_0x3d2cf6(0x7a)][_0x3d2cf6(0x84)]||null:null,'include':_0x373f95['options']?_0x373f95[_0x3d2cf6(0x7a)]['include']?_[_0x3d2cf6(0x87)](_0x373f95[_0x3d2cf6(0x7a)][_0x3d2cf6(0x76)],function(_0x4d2c26){const _0x32b9d8=_0x3d2cf6;return{'model':db[_0x4d2c26[_0x32b9d8(0x73)]],'as':_0x4d2c26['as'],'attributes':_0x4d2c26['attributes'],'include':_0x4d2c26[_0x32b9d8(0x76)]?_[_0x32b9d8(0x87)](_0x4d2c26[_0x32b9d8(0x76)],function(_0x1d0a9b){const _0x358d4f=_0x32b9d8;return{'model':db[_0x1d0a9b[_0x358d4f(0x73)]],'as':_0x1d0a9b['as'],'attributes':_0x1d0a9b[_0x358d4f(0x79)],'include':_0x1d0a9b[_0x358d4f(0x76)]?_[_0x358d4f(0x87)](_0x1d0a9b[_0x358d4f(0x76)],function(_0x26f8a7){const _0x47d9af=_0x358d4f;return{'model':db[_0x26f8a7[_0x47d9af(0x73)]],'as':_0x26f8a7['as'],'attributes':_0x26f8a7[_0x47d9af(0x79)]};}):[]};}):[]};}):[]:[]})[_0x3d2cf6(0x7e)](function(_0x55c6a0){const _0x28c8cf=_0x3d2cf6;logger[_0x28c8cf(0x7d)](_0x28c8cf(0x7c),_0x373f95),logger['debug']('GetOpenchannelQueue',_0x373f95,JSON[_0x28c8cf(0x72)](_0x55c6a0)),_0x398985(_0x55c6a0);})[_0x3d2cf6(0x83)](function(_0x3e4a2e){const _0xd3b529=_0x3d2cf6;logger[_0xd3b529(0x86)](_0xd3b529(0x7c),_0x3e4a2e[_0xd3b529(0x74)],_0x373f95),_0x3f96e1(_0x1cbdee[_0xd3b529(0x86)](0x1f4,_0x3e4a2e[_0xd3b529(0x74)]));});});},exports[a597_0x8347d(0x7b)]=function(_0x322657){const _0x21496f=this;return new Promise(function(_0x2c65d9,_0x40ace4){const _0xa42ec0=a597_0x25a3;return db[_0xa42ec0(0x78)][_0xa42ec0(0x81)]({'raw':_0x322657[_0xa42ec0(0x7a)]?_0x322657[_0xa42ec0(0x7a)][_0xa42ec0(0x88)]===undefined?!![]:![]:!![],'where':_0x322657['options']?_0x322657[_0xa42ec0(0x7a)][_0xa42ec0(0x75)]||null:null,'attributes':_0x322657['options']?_0x322657[_0xa42ec0(0x7a)][_0xa42ec0(0x79)]||null:null,'include':_0x322657[_0xa42ec0(0x7a)]?_0x322657[_0xa42ec0(0x7a)]['include']?_[_0xa42ec0(0x87)](_0x322657[_0xa42ec0(0x7a)][_0xa42ec0(0x76)],function(_0x1336a6){const _0x4ff72e=_0xa42ec0;return{'model':db[_0x1336a6[_0x4ff72e(0x73)]],'as':_0x1336a6['as'],'attributes':_0x1336a6[_0x4ff72e(0x79)],'include':_0x1336a6[_0x4ff72e(0x76)]?_[_0x4ff72e(0x87)](_0x1336a6[_0x4ff72e(0x76)],function(_0xc75cee){const _0x255336=_0x4ff72e;return{'model':db[_0xc75cee['model']],'as':_0xc75cee['as'],'attributes':_0xc75cee[_0x255336(0x79)],'include':_0xc75cee[_0x255336(0x76)]?_[_0x255336(0x87)](_0xc75cee[_0x255336(0x76)],function(_0x5ac9bd){const _0x3d5909=_0x255336;return{'model':db[_0x5ac9bd[_0x3d5909(0x73)]],'as':_0x5ac9bd['as'],'attributes':_0x5ac9bd[_0x3d5909(0x79)]};}):[]};}):[]};}):[]:[]})['then'](function(_0x18ed7c){const _0x2d139c=_0xa42ec0;logger[_0x2d139c(0x7d)](_0x2d139c(0x7b),_0x322657),logger[_0x2d139c(0x82)](_0x2d139c(0x7b),_0x322657,JSON['stringify'](_0x18ed7c)),_0x2c65d9(_0x18ed7c);})[_0xa42ec0(0x83)](function(_0x41603e){const _0x1f3056=_0xa42ec0;logger[_0x1f3056(0x86)](_0x1f3056(0x7b),_0x41603e[_0x1f3056(0x74)],_0x322657),_0x40ace4(_0x21496f[_0x1f3056(0x86)](0x1f4,_0x41603e[_0x1f3056(0x74)]));});});}; \ No newline at end of file diff --git a/server/api/openchannelQueue/openchannelQueue.socket.js b/server/api/openchannelQueue/openchannelQueue.socket.js index a252db5..9a319b4 100644 --- a/server/api/openchannelQueue/openchannelQueue.socket.js +++ b/server/api/openchannelQueue/openchannelQueue.socket.js @@ -1 +1 @@ -const a498_0x2a7e=['length','remove','update','register','./openchannelQueue.events','emit','openchannelQueue:'];(function(_0x1a6cfa,_0x2a7ef6){const _0x4ec51e=function(_0x8b3ef){while(--_0x8b3ef){_0x1a6cfa['push'](_0x1a6cfa['shift']());}};_0x4ec51e(++_0x2a7ef6);}(a498_0x2a7e,0x1af));const a498_0x4ec5=function(_0x1a6cfa,_0x2a7ef6){_0x1a6cfa=_0x1a6cfa-0x0;let _0x4ec51e=a498_0x2a7e[_0x1a6cfa];return _0x4ec51e;};const _0x494b56=a498_0x4ec5;'use strict';const OpenchannelQueueEvents=require(_0x494b56('0x0')),events=['save',_0x494b56('0x4'),_0x494b56('0x5')];function createListener(_0x8b3ef,_0x3c7ad1){return function(_0x444d7a){const _0x5588d8=a498_0x4ec5;_0x3c7ad1[_0x5588d8('0x1')](_0x8b3ef,_0x444d7a);};}exports[_0x494b56('0x6')]=function(_0x3c865d){const _0x44f57d=_0x494b56;for(let _0x20cfeb=0x0,_0x3ffc8c=events[_0x44f57d('0x3')];_0x20cfeb<_0x3ffc8c;_0x20cfeb++){const _0x55d1bd=events[_0x20cfeb],_0x2cfb92=createListener(_0x44f57d('0x2')+_0x55d1bd,_0x3c865d);OpenchannelQueueEvents['on'](_0x55d1bd,_0x2cfb92);}}; \ No newline at end of file +const a598_0x6f73=['register','length','update','openchannelQueue:','remove'];(function(_0x2b3c69,_0x71fbba){const _0x6f734c=function(_0x34eb42){while(--_0x34eb42){_0x2b3c69['push'](_0x2b3c69['shift']());}};_0x6f734c(++_0x71fbba);}(a598_0x6f73,0xf5));const a598_0x34eb=function(_0x2b3c69,_0x71fbba){_0x2b3c69=_0x2b3c69-0x9a;let _0x6f734c=a598_0x6f73[_0x2b3c69];return _0x6f734c;};const a598_0x2a9e93=a598_0x34eb;'use strict';const OpenchannelQueueEvents=require('./openchannelQueue.events'),events=['save',a598_0x2a9e93(0x9e),a598_0x2a9e93(0x9c)];function createListener(_0x1eeba7,_0x57cf85){return function(_0x2b389d){_0x57cf85['emit'](_0x1eeba7,_0x2b389d);};}exports[a598_0x2a9e93(0x9a)]=function(_0x1ff306){const _0x1e2f14=a598_0x2a9e93;for(let _0x37e85b=0x0,_0x3df7bb=events[_0x1e2f14(0x9b)];_0x37e85b<_0x3df7bb;_0x37e85b++){const _0x1352ef=events[_0x37e85b],_0x47e648=createListener(_0x1e2f14(0x9d)+_0x1352ef,_0x1ff306);OpenchannelQueueEvents['on'](_0x1352ef,_0x47e648);}}; \ No newline at end of file diff --git a/server/api/openchannelQueueReport/index.js b/server/api/openchannelQueueReport/index.js index b2a4768..8e2456d 100644 --- a/server/api/openchannelQueueReport/index.js +++ b/server/api/openchannelQueueReport/index.js @@ -1 +1 @@ -const a499_0x12f2=['./openchannelQueueReport.controller','/describe','get','../../components/auth/service','index','Router','update','/:id','isAuthenticated','delete','create','post','express','destroy','exports'];(function(_0x5a1cf6,_0x12f29a){const _0x4bf656=function(_0x26d135){while(--_0x26d135){_0x5a1cf6['push'](_0x5a1cf6['shift']());}};_0x4bf656(++_0x12f29a);}(a499_0x12f2,0x178));const a499_0x4bf6=function(_0x5a1cf6,_0x12f29a){_0x5a1cf6=_0x5a1cf6-0x0;let _0x4bf656=a499_0x12f2[_0x5a1cf6];return _0x4bf656;};const _0x1eb4a5=a499_0x4bf6;'use strict';const express=require(_0x1eb4a5('0xb')),router=express[_0x1eb4a5('0x4')](),auth=require(_0x1eb4a5('0x2')),controller=require(_0x1eb4a5('0xe'));router['get']('/',auth[_0x1eb4a5('0x7')](),controller[_0x1eb4a5('0x3')]),router[_0x1eb4a5('0x1')](_0x1eb4a5('0x0'),auth[_0x1eb4a5('0x7')](),controller['describe']),router[_0x1eb4a5('0x1')](_0x1eb4a5('0x6'),auth[_0x1eb4a5('0x7')](),controller['show']),router[_0x1eb4a5('0xa')]('/',auth[_0x1eb4a5('0x7')](),controller[_0x1eb4a5('0x9')]),router['put'](_0x1eb4a5('0x6'),auth['isAuthenticated'](),controller[_0x1eb4a5('0x5')]),router[_0x1eb4a5('0x8')](_0x1eb4a5('0x6'),auth['isAuthenticated'](),controller[_0x1eb4a5('0xc')]),module[_0x1eb4a5('0xd')]=router; \ No newline at end of file +const a599_0x1e78=['/describe','exports','describe','get','/:id','./openchannelQueueReport.controller','isAuthenticated','put','show','post','update','Router','index','create'];(function(_0x1c0d42,_0x515af3){const _0x1e781f=function(_0x4d8a8d){while(--_0x4d8a8d){_0x1c0d42['push'](_0x1c0d42['shift']());}};_0x1e781f(++_0x515af3);}(a599_0x1e78,0x1c8));const a599_0x4d8a=function(_0x1c0d42,_0x515af3){_0x1c0d42=_0x1c0d42-0x102;let _0x1e781f=a599_0x1e78[_0x1c0d42];return _0x1e781f;};const a599_0x56d69a=a599_0x4d8a;'use strict';const express=require('express'),router=express[a599_0x56d69a(0x105)](),auth=require('../../components/auth/service'),controller=require(a599_0x56d69a(0x10d));router[a599_0x56d69a(0x10b)]('/',auth['isAuthenticated'](),controller[a599_0x56d69a(0x106)]),router['get'](a599_0x56d69a(0x108),auth[a599_0x56d69a(0x10e)](),controller[a599_0x56d69a(0x10a)]),router[a599_0x56d69a(0x10b)](a599_0x56d69a(0x10c),auth[a599_0x56d69a(0x10e)](),controller[a599_0x56d69a(0x102)]),router[a599_0x56d69a(0x103)]('/',auth[a599_0x56d69a(0x10e)](),controller[a599_0x56d69a(0x107)]),router[a599_0x56d69a(0x10f)](a599_0x56d69a(0x10c),auth[a599_0x56d69a(0x10e)](),controller[a599_0x56d69a(0x104)]),router['delete'](a599_0x56d69a(0x10c),auth[a599_0x56d69a(0x10e)](),controller['destroy']),module[a599_0x56d69a(0x109)]=router; \ No newline at end of file diff --git a/server/api/openchannelQueueReport/openchannelQueueReport.attributes.js b/server/api/openchannelQueueReport/openchannelQueueReport.attributes.js index 304db51..b85c6f7 100644 --- a/server/api/openchannelQueueReport/openchannelQueueReport.attributes.js +++ b/server/api/openchannelQueueReport/openchannelQueueReport.attributes.js @@ -1 +1 @@ -const a500_0x55a4=['sequelize','exports','STRING','DATE'];(function(_0x445ccb,_0x55a4c1){const _0x6a9349=function(_0x37a3f0){while(--_0x37a3f0){_0x445ccb['push'](_0x445ccb['shift']());}};_0x6a9349(++_0x55a4c1);}(a500_0x55a4,0x11b));const a500_0x6a93=function(_0x445ccb,_0x55a4c1){_0x445ccb=_0x445ccb-0x0;let _0x6a9349=a500_0x55a4[_0x445ccb];return _0x6a9349;};const _0x2f4b92=a500_0x6a93;'use strict';const Sequelize=require(_0x2f4b92('0x1'));module[_0x2f4b92('0x2')]={'uniqueid':{'type':Sequelize['STRING'],'allowNull':![]},'from':{'type':Sequelize[_0x2f4b92('0x3')]},'joinAt':{'type':Sequelize[_0x2f4b92('0x0')]},'leaveAt':{'type':Sequelize['DATE']},'acceptAt':{'type':Sequelize['DATE']},'exitAt':{'type':Sequelize[_0x2f4b92('0x0')]},'reason':{'type':Sequelize['STRING']}}; \ No newline at end of file +const a600_0x2cae=['exports','DATE','sequelize','STRING'];(function(_0xcd8a8,_0x8114d0){const _0x2cae5f=function(_0x3c40f8){while(--_0x3c40f8){_0xcd8a8['push'](_0xcd8a8['shift']());}};_0x2cae5f(++_0x8114d0);}(a600_0x2cae,0x10a));const a600_0x3c40=function(_0xcd8a8,_0x8114d0){_0xcd8a8=_0xcd8a8-0x135;let _0x2cae5f=a600_0x2cae[_0xcd8a8];return _0x2cae5f;};const a600_0x171b2f=a600_0x3c40;'use strict';const {DataTypes}=require(a600_0x171b2f(0x135)),attributes={'uniqueid':{'type':DataTypes[a600_0x171b2f(0x136)],'allowNull':![]},'from':{'type':DataTypes[a600_0x171b2f(0x136)]},'joinAt':{'type':DataTypes[a600_0x171b2f(0x138)]},'leaveAt':{'type':DataTypes[a600_0x171b2f(0x138)]},'acceptAt':{'type':DataTypes[a600_0x171b2f(0x138)]},'exitAt':{'type':DataTypes[a600_0x171b2f(0x138)]},'reason':{'type':DataTypes['STRING']}};module[a600_0x171b2f(0x137)]['attributes']=attributes; \ No newline at end of file diff --git a/server/api/openchannelQueueReport/openchannelQueueReport.controller.js b/server/api/openchannelQueueReport/openchannelQueueReport.controller.js index 96d09b3..fabacbf 100644 --- a/server/api/openchannelQueueReport/openchannelQueueReport.controller.js +++ b/server/api/openchannelQueueReport/openchannelQueueReport.controller.js @@ -1 +1 @@ -const a501_0x4ed5=['api','../../mysqldb','map','name','includeAll','undefined','show','offset','lodash','count','update','pick','end','include','../../config/logger','params','attributes','then','order','VIRTUAL','limit','nolimit','where','key','json','filters','sequelize','keys','type','rows','status','findOne','catch','sendStatus','fields','rawAttributes','fieldName','model','intersection','options','destroy','create','Content-Range','query','merge','length','findAll','error','describe','filter','OpenchannelQueueReport','like','body','sort','set','index'];(function(_0x54b53b,_0x4ed5aa){const _0x2bb97b=function(_0x47b514){while(--_0x47b514){_0x54b53b['push'](_0x54b53b['shift']());}};_0x2bb97b(++_0x4ed5aa);}(a501_0x4ed5,0x102));const a501_0x2bb9=function(_0x54b53b,_0x4ed5aa){_0x54b53b=_0x54b53b-0x0;let _0x2bb97b=a501_0x4ed5[_0x54b53b];return _0x2bb97b;};const _0x3f6c9a=a501_0x2bb9;'use strict';const _=require(_0x3f6c9a('0x1e')),qs=require('../../components/parsers/qs'),logger=require(_0x3f6c9a('0x24'))(_0x3f6c9a('0x16')),db=require(_0x3f6c9a('0x17'))['db'],{Op}=require(_0x3f6c9a('0x30'));function respondWithResult(_0x47b514,_0x2962e3){return _0x2962e3=_0x2962e3||0xc8,function(_0x135f52){const _0x24e965=a501_0x2bb9;if(_0x135f52)return _0x47b514[_0x24e965('0x34')](_0x2962e3)[_0x24e965('0x2e')](_0x135f52);};}function respondWithFilteredResult(_0x517f9e,_0x3e3d9f){return function(_0x363516){const _0x28ab34=a501_0x2bb9;if(_0x363516){const _0x458d09=_0x363516[_0x28ab34('0x1f')],_0x19b1dc=_0x3e3d9f['offset'];let _0x2bb17c=_0x3e3d9f['offset']+_0x3e3d9f['limit'],_0x2a4636;return _0x2bb17c>=_0x458d09?(_0x2bb17c=_0x458d09,_0x2a4636=0xc8):_0x2a4636=0xce,_0x517f9e['status'](_0x2a4636),_0x517f9e[_0x28ab34('0x14')](_0x28ab34('0x8'),_0x19b1dc+'-'+_0x2bb17c+'/'+_0x458d09)['json'](_0x363516);}return null;};}function saveUpdates(_0x341c32){return function(_0xd4ef08){const _0x6137ac=a501_0x2bb9;if(_0xd4ef08)return _0xd4ef08[_0x6137ac('0x20')](_0x341c32)['then'](function(_0x1d2e5c){return _0x1d2e5c;});return null;};}function removeEntity(_0x7eb41b){return function(_0x42d469){if(_0x42d469)return _0x42d469['destroy']()['then'](function(){const _0x1ddfd9=a501_0x2bb9;_0x7eb41b['status'](0xcc)[_0x1ddfd9('0x22')]();});};}function handleEntityNotFound(_0x4fe027){return function(_0x1ca2c1){const _0x185837=a501_0x2bb9;return!_0x1ca2c1&&_0x4fe027[_0x185837('0x37')](0x194),_0x1ca2c1;};}function handleError(_0x4893e0,_0x45e1a0){return _0x45e1a0=_0x45e1a0||0x1f4,function(_0xca7aba){const _0x5e56ce=a501_0x2bb9;logger[_0x5e56ce('0xd')](_0xca7aba['stack']),_0xca7aba[_0x5e56ce('0x19')]&&delete _0xca7aba[_0x5e56ce('0x19')],_0x4893e0[_0x5e56ce('0x34')](_0x45e1a0)['send'](_0xca7aba);};}exports[_0x3f6c9a('0x15')]=function(_0x6c10b6,_0x46753c){const _0x38034a=_0x3f6c9a;let _0x3b2735={};const _0x45aa22={},_0x3db9a6={'count':0x0,'rows':[]},_0x284fde=_[_0x38034a('0x18')](db['OpenchannelQueueReport'][_0x38034a('0x1')],function(_0x4a0600){const _0x86d4b3=_0x38034a;return{'name':_0x4a0600[_0x86d4b3('0x2')],'type':_0x4a0600[_0x86d4b3('0x32')][_0x86d4b3('0x2d')]};});_0x45aa22[_0x38034a('0x3')]=_['map'](_0x284fde,_0x38034a('0x19')),_0x45aa22[_0x38034a('0x9')]=_[_0x38034a('0x31')](_0x6c10b6[_0x38034a('0x9')]),_0x45aa22[_0x38034a('0x2f')]=_[_0x38034a('0x4')](_0x45aa22[_0x38034a('0x3')],_0x45aa22['query']),_0x3b2735[_0x38034a('0x26')]=_['intersection'](_0x45aa22[_0x38034a('0x3')],qs['fields'](_0x6c10b6[_0x38034a('0x9')][_0x38034a('0x0')])),_0x3b2735[_0x38034a('0x26')]=_0x3b2735['attributes'][_0x38034a('0xb')]?_0x3b2735[_0x38034a('0x26')]:_0x45aa22['model'];typeof _0x6c10b6[_0x38034a('0x9')][_0x38034a('0x2b')]===_0x38034a('0x1b')&&(_0x3b2735[_0x38034a('0x2a')]=qs[_0x38034a('0x2a')](_0x6c10b6[_0x38034a('0x9')][_0x38034a('0x2a')]),_0x3b2735[_0x38034a('0x1d')]=qs['offset'](_0x6c10b6[_0x38034a('0x9')][_0x38034a('0x1d')]));_0x3b2735[_0x38034a('0x28')]=qs['sort'](_0x6c10b6[_0x38034a('0x9')][_0x38034a('0x13')]),_0x3b2735['where']=qs[_0x38034a('0x2f')](_[_0x38034a('0x21')](_0x6c10b6[_0x38034a('0x9')],_0x45aa22[_0x38034a('0x2f')]),_0x284fde);_0x6c10b6[_0x38034a('0x9')][_0x38034a('0xf')]&&(_0x3b2735[_0x38034a('0x2c')]=_[_0x38034a('0xa')](_0x3b2735[_0x38034a('0x2c')],{[Op['or']]:_['map'](_0x284fde,function(_0xad2cbc){const _0x255a00=_0x38034a;if(_0xad2cbc[_0x255a00('0x32')]!==_0x255a00('0x29')){const _0x2511dc={};return _0x2511dc[_0xad2cbc[_0x255a00('0x19')]]={[Op[_0x255a00('0x11')]]:'%'+_0x6c10b6[_0x255a00('0x9')][_0x255a00('0xf')]+'%'},_0x2511dc;}})}));_0x3b2735=_[_0x38034a('0xa')]({},_0x3b2735,_0x6c10b6[_0x38034a('0x5')]);const _0x3538a9={'where':_0x3b2735[_0x38034a('0x2c')]};return db[_0x38034a('0x10')]['count'](_0x3538a9)['then'](function(_0x4b81d1){const _0x245109=_0x38034a;return _0x3db9a6['count']=_0x4b81d1,_0x6c10b6[_0x245109('0x9')][_0x245109('0x1a')]&&(_0x3b2735[_0x245109('0x23')]=[{'all':!![]}]),db[_0x245109('0x10')][_0x245109('0xc')](_0x3b2735);})[_0x38034a('0x27')](function(_0x430799){const _0x5211b1=_0x38034a;return _0x3db9a6[_0x5211b1('0x33')]=_0x430799,_0x3db9a6;})[_0x38034a('0x27')](respondWithFilteredResult(_0x46753c,_0x3b2735))[_0x38034a('0x36')](handleError(_0x46753c,null));},exports[_0x3f6c9a('0x1c')]=function(_0x2046de,_0x2e05a5){const _0x29da3c=_0x3f6c9a;let _0x5d7c3d={'raw':!![],'where':{'id':_0x2046de[_0x29da3c('0x25')]['id']}};const _0x2486d7={};return _0x2486d7['model']=_[_0x29da3c('0x31')](db['OpenchannelQueueReport'][_0x29da3c('0x1')]),_0x2486d7['query']=_['keys'](_0x2046de[_0x29da3c('0x9')]),_0x2486d7[_0x29da3c('0x2f')]=_[_0x29da3c('0x4')](_0x2486d7[_0x29da3c('0x3')],_0x2486d7[_0x29da3c('0x9')]),_0x5d7c3d[_0x29da3c('0x26')]=_['intersection'](_0x2486d7[_0x29da3c('0x3')],qs[_0x29da3c('0x0')](_0x2046de['query']['fields'])),_0x5d7c3d['attributes']=_0x5d7c3d[_0x29da3c('0x26')][_0x29da3c('0xb')]?_0x5d7c3d['attributes']:_0x2486d7[_0x29da3c('0x3')],_0x2046de[_0x29da3c('0x9')]['includeAll']&&(_0x5d7c3d[_0x29da3c('0x23')]=[{'all':!![]}]),_0x5d7c3d=_[_0x29da3c('0xa')]({},_0x5d7c3d,_0x2046de[_0x29da3c('0x5')]),db['OpenchannelQueueReport'][_0x29da3c('0x35')](_0x5d7c3d)['then'](handleEntityNotFound(_0x2e05a5,null))[_0x29da3c('0x27')](respondWithResult(_0x2e05a5,null))[_0x29da3c('0x36')](handleError(_0x2e05a5,null));},exports[_0x3f6c9a('0x7')]=function(_0x30d834,_0x6505fa){const _0x955f78=_0x3f6c9a;return db[_0x955f78('0x10')][_0x955f78('0x7')](_0x30d834[_0x955f78('0x12')],{})[_0x955f78('0x27')](respondWithResult(_0x6505fa,0xc9))[_0x955f78('0x36')](handleError(_0x6505fa,null));},exports['update']=function(_0x18e3ec,_0x5cee32){const _0x1ea7db=_0x3f6c9a;return _0x18e3ec[_0x1ea7db('0x12')]['id']&&delete _0x18e3ec[_0x1ea7db('0x12')]['id'],db[_0x1ea7db('0x10')]['findOne']({'where':{'id':_0x18e3ec['params']['id']}})[_0x1ea7db('0x27')](handleEntityNotFound(_0x5cee32,null))[_0x1ea7db('0x27')](saveUpdates(_0x18e3ec[_0x1ea7db('0x12')],null))[_0x1ea7db('0x27')](respondWithResult(_0x5cee32,null))[_0x1ea7db('0x36')](handleError(_0x5cee32,null));},exports[_0x3f6c9a('0x6')]=function(_0x4a807c,_0x3decb8){const _0x18403a=_0x3f6c9a;return db[_0x18403a('0x10')][_0x18403a('0x35')]({'where':{'id':_0x4a807c[_0x18403a('0x25')]['id']}})['then'](handleEntityNotFound(_0x3decb8,null))[_0x18403a('0x27')](removeEntity(_0x3decb8,null))[_0x18403a('0x36')](handleError(_0x3decb8,null));},exports[_0x3f6c9a('0xe')]=function(_0x2633cf,_0x4ea896){const _0x36981d=_0x3f6c9a;return db[_0x36981d('0x10')][_0x36981d('0xe')]()[_0x36981d('0x27')](respondWithResult(_0x4ea896,null))[_0x36981d('0x36')](handleError(_0x4ea896,null));}; \ No newline at end of file +const a601_0x2e7d=['where','api','catch','attributes','send','includeAll','../../components/parsers/qs','describe','sendStatus','../../config/logger','destroy','fieldName','filters','order','name','pick','length','rows','filter','body','nolimit','options','OpenchannelQueueReport','../../mysqldb','create','findOne','count','key','then','index','include','query','map','fields','lodash','json','type','model','VIRTUAL','params','rawAttributes','error','findAll','stack','sequelize','offset','limit','like','show','sort','update','intersection','set','undefined','merge','keys','status'];(function(_0x2ae748,_0x2bcc53){const _0x2e7d69=function(_0x308cb0){while(--_0x308cb0){_0x2ae748['push'](_0x2ae748['shift']());}};_0x2e7d69(++_0x2bcc53);}(a601_0x2e7d,0x9f));const a601_0x308c=function(_0x2ae748,_0x2bcc53){_0x2ae748=_0x2ae748-0x191;let _0x2e7d69=a601_0x2e7d[_0x2ae748];return _0x2e7d69;};const a601_0x547b67=a601_0x308c;'use strict';const _=require(a601_0x547b67(0x1bf)),qs=require(a601_0x547b67(0x1a3)),logger=require(a601_0x547b67(0x1a6))(a601_0x547b67(0x19e)),{db}=require(a601_0x547b67(0x1b4)),{Op}=require(a601_0x547b67(0x1c9));function respondWithResult(_0x2f28f8,_0x260817){return _0x260817=_0x260817||0xc8,function(_0x5b26f4){const _0x41885b=a601_0x308c;if(_0x5b26f4)return _0x2f28f8[_0x41885b(0x19c)](_0x260817)['json'](_0x5b26f4);};}function respondWithFilteredResult(_0x598add,_0x9b18ba){return function(_0x514e27){const _0x4418d4=a601_0x308c;if(_0x514e27){const _0x507a44=_0x514e27['count'],_0x3e3894=_0x9b18ba['offset'];let _0x584b54=_0x9b18ba[_0x4418d4(0x191)]+_0x9b18ba[_0x4418d4(0x192)],_0x55079f;return _0x584b54>=_0x507a44?(_0x584b54=_0x507a44,_0x55079f=0xc8):_0x55079f=0xce,_0x598add[_0x4418d4(0x19c)](_0x55079f),_0x598add[_0x4418d4(0x198)]('Content-Range',_0x3e3894+'-'+_0x584b54+'/'+_0x507a44)[_0x4418d4(0x1c0)](_0x514e27);}return null;};}function saveUpdates(_0x16675c){return function(_0x53a7eb){const _0x321b33=a601_0x308c;if(_0x53a7eb)return _0x53a7eb[_0x321b33(0x196)](_0x16675c)[_0x321b33(0x1b9)](function(_0x529fa0){return _0x529fa0;});return null;};}function removeEntity(_0x447578){return function(_0x24add6){const _0x1684a1=a601_0x308c;if(_0x24add6)return _0x24add6[_0x1684a1(0x1a7)]()[_0x1684a1(0x1b9)](function(){const _0x4cbe44=_0x1684a1;_0x447578[_0x4cbe44(0x19c)](0xcc)['end']();});};}function handleEntityNotFound(_0xde7de3){return function(_0x2422ee){const _0x2223fb=a601_0x308c;return!_0x2422ee&&_0xde7de3[_0x2223fb(0x1a5)](0x194),_0x2422ee;};}function handleError(_0x538186,_0x57b43f){return _0x57b43f=_0x57b43f||0x1f4,function(_0x5ccd75){const _0x24a7ba=a601_0x308c;logger[_0x24a7ba(0x1c6)](_0x5ccd75[_0x24a7ba(0x1c8)]),_0x5ccd75['name']&&delete _0x5ccd75[_0x24a7ba(0x1ab)],_0x538186[_0x24a7ba(0x19c)](_0x57b43f)[_0x24a7ba(0x1a1)](_0x5ccd75);};}exports[a601_0x547b67(0x1ba)]=function(_0x1820b3,_0x286cc2){const _0x37955e=a601_0x547b67;let _0x46b438={};const _0x215539={},_0x190d7d={'count':0x0,'rows':[]},_0x3654bf=_['map'](db['OpenchannelQueueReport'][_0x37955e(0x1c5)],function(_0x40a932){const _0x34d2a0=_0x37955e;return{'name':_0x40a932[_0x34d2a0(0x1a8)],'type':_0x40a932['type'][_0x34d2a0(0x1b8)]};});_0x215539[_0x37955e(0x1c2)]=_[_0x37955e(0x1bd)](_0x3654bf,_0x37955e(0x1ab)),_0x215539['query']=_[_0x37955e(0x19b)](_0x1820b3['query']),_0x215539[_0x37955e(0x1a9)]=_[_0x37955e(0x197)](_0x215539[_0x37955e(0x1c2)],_0x215539[_0x37955e(0x1bc)]),_0x46b438[_0x37955e(0x1a0)]=_[_0x37955e(0x197)](_0x215539[_0x37955e(0x1c2)],qs[_0x37955e(0x1be)](_0x1820b3[_0x37955e(0x1bc)][_0x37955e(0x1be)])),_0x46b438[_0x37955e(0x1a0)]=_0x46b438['attributes']['length']?_0x46b438['attributes']:_0x215539[_0x37955e(0x1c2)];typeof _0x1820b3['query'][_0x37955e(0x1b1)]===_0x37955e(0x199)&&(_0x46b438['limit']=qs['limit'](_0x1820b3['query'][_0x37955e(0x192)]),_0x46b438[_0x37955e(0x191)]=qs[_0x37955e(0x191)](_0x1820b3['query'][_0x37955e(0x191)]));_0x46b438[_0x37955e(0x1aa)]=qs[_0x37955e(0x195)](_0x1820b3[_0x37955e(0x1bc)][_0x37955e(0x195)]),_0x46b438[_0x37955e(0x19d)]=qs[_0x37955e(0x1a9)](_[_0x37955e(0x1ac)](_0x1820b3[_0x37955e(0x1bc)],_0x215539[_0x37955e(0x1a9)]),_0x3654bf);_0x1820b3[_0x37955e(0x1bc)][_0x37955e(0x1af)]&&(_0x46b438[_0x37955e(0x19d)]=_[_0x37955e(0x19a)](_0x46b438[_0x37955e(0x19d)],{[Op['or']]:_[_0x37955e(0x1bd)](_0x3654bf,function(_0x5af3d5){const _0xb337df=_0x37955e;if(_0x5af3d5[_0xb337df(0x1c1)]!==_0xb337df(0x1c3)){const _0x651483={};return _0x651483[_0x5af3d5[_0xb337df(0x1ab)]]={[Op[_0xb337df(0x193)]]:'%'+_0x1820b3[_0xb337df(0x1bc)][_0xb337df(0x1af)]+'%'},_0x651483;}})}));_0x46b438=_['merge']({},_0x46b438,_0x1820b3[_0x37955e(0x1b2)]);const _0x2e9ccd={'where':_0x46b438[_0x37955e(0x19d)]};return db[_0x37955e(0x1b3)][_0x37955e(0x1b7)](_0x2e9ccd)[_0x37955e(0x1b9)](function(_0x3f0a30){const _0x2cce48=_0x37955e;return _0x190d7d[_0x2cce48(0x1b7)]=_0x3f0a30,_0x1820b3['query'][_0x2cce48(0x1a2)]&&(_0x46b438[_0x2cce48(0x1bb)]=[{'all':!![]}]),db[_0x2cce48(0x1b3)][_0x2cce48(0x1c7)](_0x46b438);})['then'](function(_0x438d6f){const _0x33e3e8=_0x37955e;return _0x190d7d[_0x33e3e8(0x1ae)]=_0x438d6f,_0x190d7d;})[_0x37955e(0x1b9)](respondWithFilteredResult(_0x286cc2,_0x46b438))[_0x37955e(0x19f)](handleError(_0x286cc2,null));},exports[a601_0x547b67(0x194)]=function(_0x1c66de,_0x3172bf){const _0x847fbb=a601_0x547b67;let _0x1f8371={'raw':!![],'where':{'id':_0x1c66de[_0x847fbb(0x1c4)]['id']}};const _0x4f2a5f={};return _0x4f2a5f[_0x847fbb(0x1c2)]=_[_0x847fbb(0x19b)](db[_0x847fbb(0x1b3)]['rawAttributes']),_0x4f2a5f[_0x847fbb(0x1bc)]=_['keys'](_0x1c66de[_0x847fbb(0x1bc)]),_0x4f2a5f[_0x847fbb(0x1a9)]=_[_0x847fbb(0x197)](_0x4f2a5f[_0x847fbb(0x1c2)],_0x4f2a5f[_0x847fbb(0x1bc)]),_0x1f8371[_0x847fbb(0x1a0)]=_[_0x847fbb(0x197)](_0x4f2a5f[_0x847fbb(0x1c2)],qs[_0x847fbb(0x1be)](_0x1c66de[_0x847fbb(0x1bc)]['fields'])),_0x1f8371['attributes']=_0x1f8371[_0x847fbb(0x1a0)][_0x847fbb(0x1ad)]?_0x1f8371[_0x847fbb(0x1a0)]:_0x4f2a5f[_0x847fbb(0x1c2)],_0x1c66de['query'][_0x847fbb(0x1a2)]&&(_0x1f8371[_0x847fbb(0x1bb)]=[{'all':!![]}]),_0x1f8371=_['merge']({},_0x1f8371,_0x1c66de[_0x847fbb(0x1b2)]),db['OpenchannelQueueReport'][_0x847fbb(0x1b6)](_0x1f8371)[_0x847fbb(0x1b9)](handleEntityNotFound(_0x3172bf,null))[_0x847fbb(0x1b9)](respondWithResult(_0x3172bf,null))['catch'](handleError(_0x3172bf,null));},exports[a601_0x547b67(0x1b5)]=function(_0x38dcbc,_0x379da4){const _0x279206=a601_0x547b67;return db['OpenchannelQueueReport']['create'](_0x38dcbc['body'],{})[_0x279206(0x1b9)](respondWithResult(_0x379da4,0xc9))[_0x279206(0x19f)](handleError(_0x379da4,null));},exports[a601_0x547b67(0x196)]=function(_0x4a7ac5,_0x322d71){const _0xa63b8f=a601_0x547b67;return _0x4a7ac5[_0xa63b8f(0x1b0)]['id']&&delete _0x4a7ac5['body']['id'],db[_0xa63b8f(0x1b3)][_0xa63b8f(0x1b6)]({'where':{'id':_0x4a7ac5[_0xa63b8f(0x1c4)]['id']}})['then'](handleEntityNotFound(_0x322d71,null))['then'](saveUpdates(_0x4a7ac5[_0xa63b8f(0x1b0)],null))[_0xa63b8f(0x1b9)](respondWithResult(_0x322d71,null))[_0xa63b8f(0x19f)](handleError(_0x322d71,null));},exports['destroy']=function(_0x522e62,_0x244682){const _0x1de57d=a601_0x547b67;return db[_0x1de57d(0x1b3)][_0x1de57d(0x1b6)]({'where':{'id':_0x522e62[_0x1de57d(0x1c4)]['id']}})[_0x1de57d(0x1b9)](handleEntityNotFound(_0x244682,null))[_0x1de57d(0x1b9)](removeEntity(_0x244682,null))[_0x1de57d(0x19f)](handleError(_0x244682,null));},exports[a601_0x547b67(0x1a4)]=function(_0x1da116,_0x5738f4){const _0x34fd08=a601_0x547b67;return db[_0x34fd08(0x1b3)]['describe']()['then'](respondWithResult(_0x5738f4,null))[_0x34fd08(0x19f)](handleError(_0x5738f4,null));}; \ No newline at end of file diff --git a/server/api/openchannelQueueReport/openchannelQueueReport.model.js b/server/api/openchannelQueueReport/openchannelQueueReport.model.js index aa0a8b8..fedb0c5 100644 --- a/server/api/openchannelQueueReport/openchannelQueueReport.model.js +++ b/server/api/openchannelQueueReport/openchannelQueueReport.model.js @@ -1 +1 @@ -const a502_0x29ed=['uniqueid','report_openchannel_queue','define','exports'];(function(_0x3cfc64,_0x29ed57){const _0x5895bd=function(_0xfd4a72){while(--_0xfd4a72){_0x3cfc64['push'](_0x3cfc64['shift']());}};_0x5895bd(++_0x29ed57);}(a502_0x29ed,0x113));const a502_0x5895=function(_0x3cfc64,_0x29ed57){_0x3cfc64=_0x3cfc64-0x0;let _0x5895bd=a502_0x29ed[_0x3cfc64];return _0x5895bd;};const _0x28e1ef=a502_0x5895;'use strict';const attributes=require('./openchannelQueueReport.attributes');module[_0x28e1ef('0x0')]=function(_0xfd4a72){const _0x59f7c1=_0x28e1ef,_0x2005f3=_0xfd4a72[_0x59f7c1('0x3')]('OpenchannelQueueReport',attributes,{'tableName':_0x59f7c1('0x2'),'paranoid':![],'indexes':[{'name':'uniqueid','fields':[_0x59f7c1('0x1')]}],'timestamps':!![]});return _0x2005f3;}; \ No newline at end of file +const a602_0x2876=['function','./openchannelQueueReport.options','sequelize','exports','init'];(function(_0x5d1dcf,_0x5e8afe){const _0x2876ce=function(_0x33c64c){while(--_0x33c64c){_0x5d1dcf['push'](_0x5d1dcf['shift']());}};_0x2876ce(++_0x5e8afe);}(a602_0x2876,0xd7));const a602_0x33c6=function(_0x5d1dcf,_0x5e8afe){_0x5d1dcf=_0x5d1dcf-0x12e;let _0x2876ce=a602_0x2876[_0x5d1dcf];return _0x2876ce;};const a602_0x351670=a602_0x33c6;'use strict';const {Model}=require(a602_0x351670(0x130)),{attributes}=require('./openchannelQueueReport.attributes'),{options}=require(a602_0x351670(0x12f));class OpenchannelQueueReport extends Model{}function init(_0x19c255,_0x353836){const _0xf03f9a=a602_0x351670,_0x3f659a=options(_0x19c255),_0x4b3b6e=typeof _0x353836===_0xf03f9a(0x12e)?_0x353836(_0x3f659a):_0x3f659a;return OpenchannelQueueReport[_0xf03f9a(0x132)](attributes,_0x4b3b6e),OpenchannelQueueReport;}module[a602_0x351670(0x131)]['OpenchannelQueueReport']=OpenchannelQueueReport,module[a602_0x351670(0x131)][a602_0x351670(0x132)]=init; \ No newline at end of file diff --git a/server/api/openchannelQueueReport/openchannelQueueReport.options.js b/server/api/openchannelQueueReport/openchannelQueueReport.options.js new file mode 100644 index 0000000..e1a017c --- /dev/null +++ b/server/api/openchannelQueueReport/openchannelQueueReport.options.js @@ -0,0 +1 @@ +var a603_0x19e9=['exports','report_openchannel_queue','options','uniqueid'];(function(_0x286eab,_0x3a6c04){var _0x19e9c6=function(_0x579e54){while(--_0x579e54){_0x286eab['push'](_0x286eab['shift']());}};_0x19e9c6(++_0x3a6c04);}(a603_0x19e9,0x1dd));var a603_0x579e=function(_0x286eab,_0x3a6c04){_0x286eab=_0x286eab-0x19a;var _0x19e9c6=a603_0x19e9[_0x286eab];return _0x19e9c6;};var a603_0x357dec=a603_0x579e;function options(_0x293c97){var _0x1edb56=a603_0x579e;return{'sequelize':_0x293c97,'tableName':_0x1edb56(0x19a),'paranoid':![],'indexes':[{'name':_0x1edb56(0x19c),'fields':['uniqueid']}],'timestamps':!![]};}module[a603_0x357dec(0x19d)][a603_0x357dec(0x19b)]=options; \ No newline at end of file diff --git a/server/api/openchannelQueueReport/openchannelQueueReport.rpc.js b/server/api/openchannelQueueReport/openchannelQueueReport.rpc.js index faa96c6..53a40b1 100644 --- a/server/api/openchannelQueueReport/openchannelQueueReport.rpc.js +++ b/server/api/openchannelQueueReport/openchannelQueueReport.rpc.js @@ -1 +1 @@ -const a503_0x5b2b=['where','../../config/logger','limit','then','body','rpc','catch','stringify','message','info','OpenchannelQueueReport','attributes','CreateOpenchannelQueueReport','UpdateOpenchannelQueueReport','error','../../mysqldb','options','create'];(function(_0x5608c5,_0x5b2b79){const _0x56c34a=function(_0x44659a){while(--_0x44659a){_0x5608c5['push'](_0x5608c5['shift']());}};_0x56c34a(++_0x5b2b79);}(a503_0x5b2b,0xe7));const a503_0x56c3=function(_0x5608c5,_0x5b2b79){_0x5608c5=_0x5608c5-0x0;let _0x56c34a=a503_0x5b2b[_0x5608c5];return _0x56c34a;};const _0x566c00=a503_0x56c3;'use strict';const db=require(_0x566c00('0x0'))['db'],logger=require(_0x566c00('0x4'))(_0x566c00('0x8'));exports[_0x566c00('0xf')]=function(_0x44659a){const _0x2922a8=this;return new Promise(function(_0x12cedc,_0x3d9e57){const _0x25b19e=a503_0x56c3;return db[_0x25b19e('0xd')][_0x25b19e('0x2')](_0x44659a[_0x25b19e('0x7')],{'raw':_0x44659a['options']?_0x44659a[_0x25b19e('0x1')]['raw']===undefined?!![]:![]:!![]})[_0x25b19e('0x6')](function(_0x290053){const _0x3e8dd3=_0x25b19e;logger[_0x3e8dd3('0xc')](_0x3e8dd3('0xf'),_0x44659a),logger['debug'](_0x3e8dd3('0xf'),_0x44659a,JSON['stringify'](_0x290053)),_0x12cedc(_0x290053);})[_0x25b19e('0x9')](function(_0x324084){const _0x528963=_0x25b19e;logger[_0x528963('0x11')](_0x528963('0xf'),_0x324084['message'],_0x44659a),_0x3d9e57(_0x2922a8[_0x528963('0x11')](0x1f4,_0x324084[_0x528963('0xb')]));});});},exports['UpdateOpenchannelQueueReport']=function(_0x21f371){const _0x152de3=this;return new Promise(function(_0x18159d,_0x3848cc){const _0x3a4df3=a503_0x56c3;return db[_0x3a4df3('0xd')]['update'](_0x21f371['body'],{'raw':_0x21f371[_0x3a4df3('0x1')]?_0x21f371[_0x3a4df3('0x1')]['raw']===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x21f371[_0x3a4df3('0x1')]?_0x21f371[_0x3a4df3('0x1')][_0x3a4df3('0x3')]||null:null,'attributes':_0x21f371['options']?_0x21f371[_0x3a4df3('0x1')][_0x3a4df3('0xe')]||null:null,'limit':_0x21f371[_0x3a4df3('0x1')]?_0x21f371[_0x3a4df3('0x1')][_0x3a4df3('0x5')]||null:null})['then'](function(_0x19512d){const _0x1de13e=_0x3a4df3;logger[_0x1de13e('0xc')]('UpdateOpenchannelQueueReport',_0x21f371),logger['debug'](_0x1de13e('0x10'),_0x21f371,JSON[_0x1de13e('0xa')](_0x19512d)),_0x18159d(_0x19512d);})[_0x3a4df3('0x9')](function(_0x543da4){const _0x15bd50=_0x3a4df3;logger[_0x15bd50('0x11')](_0x15bd50('0x10'),_0x543da4[_0x15bd50('0xb')],_0x21f371),_0x3848cc(_0x152de3[_0x15bd50('0x11')](0x1f4,_0x543da4[_0x15bd50('0xb')]));});});}; \ No newline at end of file +const a604_0x33da=['UpdateOpenchannelQueueReport','options','create','attributes','limit','error','debug','where','catch','OpenchannelQueueReport','../../mysqldb','info','update','CreateOpenchannelQueueReport','then','stringify','../../config/logger','raw','body','message'];(function(_0x3a6a63,_0xcdbc27){const _0x33da37=function(_0x23debf){while(--_0x23debf){_0x3a6a63['push'](_0x3a6a63['shift']());}};_0x33da37(++_0xcdbc27);}(a604_0x33da,0x176));const a604_0x23de=function(_0x3a6a63,_0xcdbc27){_0x3a6a63=_0x3a6a63-0x70;let _0x33da37=a604_0x33da[_0x3a6a63];return _0x33da37;};const a604_0x358ceb=a604_0x23de;'use strict';const db=require(a604_0x358ceb(0x80))['db'],logger=require(a604_0x358ceb(0x72))('rpc');exports['CreateOpenchannelQueueReport']=function(_0x680dcf){const _0x175884=this;return new Promise(function(_0x2de903,_0x35ad74){const _0x112730=a604_0x23de;return db[_0x112730(0x7f)][_0x112730(0x78)](_0x680dcf[_0x112730(0x74)],{'raw':_0x680dcf[_0x112730(0x77)]?_0x680dcf[_0x112730(0x77)][_0x112730(0x73)]===undefined?!![]:![]:!![]})[_0x112730(0x70)](function(_0x2e9dcd){const _0x41dac7=_0x112730;logger['info']('CreateOpenchannelQueueReport',_0x680dcf),logger[_0x41dac7(0x7c)](_0x41dac7(0x83),_0x680dcf,JSON[_0x41dac7(0x71)](_0x2e9dcd)),_0x2de903(_0x2e9dcd);})[_0x112730(0x7e)](function(_0x2d8d8c){const _0x5d9c61=_0x112730;logger[_0x5d9c61(0x7b)](_0x5d9c61(0x83),_0x2d8d8c[_0x5d9c61(0x75)],_0x680dcf),_0x35ad74(_0x175884[_0x5d9c61(0x7b)](0x1f4,_0x2d8d8c['message']));});});},exports[a604_0x358ceb(0x76)]=function(_0x4a14bc){const _0x43c804=this;return new Promise(function(_0x554780,_0xf8d19b){const _0x19d10f=a604_0x23de;return db[_0x19d10f(0x7f)][_0x19d10f(0x82)](_0x4a14bc[_0x19d10f(0x74)],{'raw':_0x4a14bc['options']?_0x4a14bc['options']['raw']===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x4a14bc[_0x19d10f(0x77)]?_0x4a14bc[_0x19d10f(0x77)][_0x19d10f(0x7d)]||null:null,'attributes':_0x4a14bc[_0x19d10f(0x77)]?_0x4a14bc['options'][_0x19d10f(0x79)]||null:null,'limit':_0x4a14bc[_0x19d10f(0x77)]?_0x4a14bc[_0x19d10f(0x77)][_0x19d10f(0x7a)]||null:null})['then'](function(_0x278213){const _0x7e2ddb=_0x19d10f;logger[_0x7e2ddb(0x81)](_0x7e2ddb(0x76),_0x4a14bc),logger[_0x7e2ddb(0x7c)](_0x7e2ddb(0x76),_0x4a14bc,JSON[_0x7e2ddb(0x71)](_0x278213)),_0x554780(_0x278213);})[_0x19d10f(0x7e)](function(_0x34d1ec){const _0x1211ff=_0x19d10f;logger['error'](_0x1211ff(0x76),_0x34d1ec['message'],_0x4a14bc),_0xf8d19b(_0x43c804[_0x1211ff(0x7b)](0x1f4,_0x34d1ec[_0x1211ff(0x75)]));});});}; \ No newline at end of file diff --git a/server/api/openchannelTransferReport/index.js b/server/api/openchannelTransferReport/index.js index 5a7c39a..f8cb116 100644 --- a/server/api/openchannelTransferReport/index.js +++ b/server/api/openchannelTransferReport/index.js @@ -1 +1 @@ -const a504_0x5c3d=['isAuthenticated','destroy','delete','post','/:id','show','put','exports','./openchannelTransferReport.controller','get','Router','create','express','update'];(function(_0x1505d6,_0x5c3d5e){const _0xee8fb7=function(_0xa7bbfa){while(--_0xa7bbfa){_0x1505d6['push'](_0x1505d6['shift']());}};_0xee8fb7(++_0x5c3d5e);}(a504_0x5c3d,0xe3));const a504_0xee8f=function(_0x1505d6,_0x5c3d5e){_0x1505d6=_0x1505d6-0x0;let _0xee8fb7=a504_0x5c3d[_0x1505d6];return _0xee8fb7;};const _0x1847f1=a504_0xee8f;'use strict';const express=require(_0x1847f1('0x9')),router=express[_0x1847f1('0x7')](),auth=require('../../components/auth/service'),controller=require(_0x1847f1('0x5'));router[_0x1847f1('0x6')]('/',auth[_0x1847f1('0xb')](),controller['index']),router['get']('/describe',auth[_0x1847f1('0xb')](),controller['describe']),router[_0x1847f1('0x6')](_0x1847f1('0x1'),auth[_0x1847f1('0xb')](),controller[_0x1847f1('0x2')]),router[_0x1847f1('0x0')]('/',auth[_0x1847f1('0xb')](),controller[_0x1847f1('0x8')]),router[_0x1847f1('0x3')]('/:id',auth[_0x1847f1('0xb')](),controller[_0x1847f1('0xa')]),router[_0x1847f1('0xd')](_0x1847f1('0x1'),auth[_0x1847f1('0xb')](),controller[_0x1847f1('0xc')]),module[_0x1847f1('0x4')]=router; \ No newline at end of file +const a605_0x2e13=['isAuthenticated','index','destroy','get','/describe','put','Router','describe','delete','update','create','./openchannelTransferReport.controller','show','/:id','express'];(function(_0x1227c8,_0x16c637){const _0x2e1337=function(_0x3aecca){while(--_0x3aecca){_0x1227c8['push'](_0x1227c8['shift']());}};_0x2e1337(++_0x16c637);}(a605_0x2e13,0x190));const a605_0x3aec=function(_0x1227c8,_0x16c637){_0x1227c8=_0x1227c8-0xfe;let _0x2e1337=a605_0x2e13[_0x1227c8];return _0x2e1337;};const a605_0x441dcc=a605_0x3aec;'use strict';const express=require(a605_0x441dcc(0x102)),router=express[a605_0x441dcc(0x109)](),auth=require('../../components/auth/service'),controller=require(a605_0x441dcc(0xff));router[a605_0x441dcc(0x106)]('/',auth[a605_0x441dcc(0x103)](),controller[a605_0x441dcc(0x104)]),router[a605_0x441dcc(0x106)](a605_0x441dcc(0x107),auth['isAuthenticated'](),controller[a605_0x441dcc(0x10a)]),router[a605_0x441dcc(0x106)](a605_0x441dcc(0x101),auth[a605_0x441dcc(0x103)](),controller[a605_0x441dcc(0x100)]),router['post']('/',auth[a605_0x441dcc(0x103)](),controller[a605_0x441dcc(0xfe)]),router[a605_0x441dcc(0x108)](a605_0x441dcc(0x101),auth['isAuthenticated'](),controller[a605_0x441dcc(0x10c)]),router[a605_0x441dcc(0x10b)]('/:id',auth[a605_0x441dcc(0x103)](),controller[a605_0x441dcc(0x105)]),module['exports']=router; \ No newline at end of file diff --git a/server/api/openchannelTransferReport/openchannelTransferReport.attributes.js b/server/api/openchannelTransferReport/openchannelTransferReport.attributes.js index 1f9cc07..325b9ae 100644 --- a/server/api/openchannelTransferReport/openchannelTransferReport.attributes.js +++ b/server/api/openchannelTransferReport/openchannelTransferReport.attributes.js @@ -1 +1 @@ -const a505_0x1b52=['STRING','queue','DATE','NOW','agent','account'];(function(_0x3b3252,_0x1b52a4){const _0x2030ec=function(_0x47c665){while(--_0x47c665){_0x3b3252['push'](_0x3b3252['shift']());}};_0x2030ec(++_0x1b52a4);}(a505_0x1b52,0x1a2));const a505_0x2030=function(_0x3b3252,_0x1b52a4){_0x3b3252=_0x3b3252-0x0;let _0x2030ec=a505_0x1b52[_0x3b3252];return _0x2030ec;};const _0x3b3626=a505_0x2030;'use strict';const Sequelize=require('sequelize');module['exports']={'uniqueid':{'type':Sequelize[_0x3b3626('0x2')],'allowNull':![]},'type':{'type':Sequelize['ENUM'](_0x3b3626('0x1'),_0x3b3626('0x0'),'queue'),'allowNull':![],'defaultValue':_0x3b3626('0x3')},'transferredAt':{'type':Sequelize[_0x3b3626('0x4')],'allowNull':![],'defaultValue':Sequelize[_0x3b3626('0x5')]}}; \ No newline at end of file +const a606_0xa073=['exports','NOW','ENUM','agent','account','attributes','queue','STRING','sequelize'];(function(_0x5621dd,_0x3fe355){const _0xa073be=function(_0x2301b8){while(--_0x2301b8){_0x5621dd['push'](_0x5621dd['shift']());}};_0xa073be(++_0x3fe355);}(a606_0xa073,0xa2));const a606_0x2301=function(_0x5621dd,_0x3fe355){_0x5621dd=_0x5621dd-0x129;let _0xa073be=a606_0xa073[_0x5621dd];return _0xa073be;};const a606_0x28bdb9=a606_0x2301;'use strict';const {DataTypes}=require(a606_0x28bdb9(0x131)),attributes={'uniqueid':{'type':DataTypes[a606_0x28bdb9(0x130)],'allowNull':![]},'type':{'type':DataTypes[a606_0x28bdb9(0x12b)](a606_0x28bdb9(0x12d),a606_0x28bdb9(0x12c),'queue'),'allowNull':![],'defaultValue':a606_0x28bdb9(0x12f)},'transferredAt':{'type':DataTypes['DATE'],'allowNull':![],'defaultValue':DataTypes[a606_0x28bdb9(0x12a)]}};module[a606_0x28bdb9(0x129)][a606_0x28bdb9(0x12e)]=attributes; \ No newline at end of file diff --git a/server/api/openchannelTransferReport/openchannelTransferReport.controller.js b/server/api/openchannelTransferReport/openchannelTransferReport.controller.js index af46f16..249ebe0 100644 --- a/server/api/openchannelTransferReport/openchannelTransferReport.controller.js +++ b/server/api/openchannelTransferReport/openchannelTransferReport.controller.js @@ -1 +1 @@ -const a506_0x3b8c=['count','OpenchannelTransferReport','map','show','findOne','name','create','params','rawAttributes','merge','attributes','VIRTUAL','undefined','include','limit','sort','sequelize','destroy','type','pick','order','lodash','catch','describe','where','offset','query','keys','includeAll','filters','intersection','options','body','then','fields','like','rows','model','stack','status','../../mysqldb','json','filter','../../config/logger','end','../../components/parsers/qs','send','update','index','key','length','fieldName'];(function(_0x2097f2,_0x3b8c76){const _0x40b00f=function(_0xe8cd6c){while(--_0xe8cd6c){_0x2097f2['push'](_0x2097f2['shift']());}};_0x40b00f(++_0x3b8c76);}(a506_0x3b8c,0x133));const a506_0x40b0=function(_0x2097f2,_0x3b8c76){_0x2097f2=_0x2097f2-0x0;let _0x40b00f=a506_0x3b8c[_0x2097f2];return _0x40b00f;};const _0x5c0199=a506_0x40b0;'use strict';const _=require(_0x5c0199('0x1a')),qs=require(_0x5c0199('0x32')),logger=require(_0x5c0199('0x30'))('api'),db=require(_0x5c0199('0x2d'))['db'],{Op}=require(_0x5c0199('0x15'));function respondWithResult(_0xe8cd6c,_0x481ee6){return _0x481ee6=_0x481ee6||0xc8,function(_0x4051b8){const _0x1fa257=a506_0x40b0;if(_0x4051b8)return _0xe8cd6c[_0x1fa257('0x2c')](_0x481ee6)['json'](_0x4051b8);};}function respondWithFilteredResult(_0x2f23fb,_0x4ffb42){return function(_0x43966e){const _0x25f796=a506_0x40b0;if(_0x43966e){const _0xa67287=_0x43966e[_0x25f796('0x5')],_0x327a02=_0x4ffb42[_0x25f796('0x1e')];let _0xd8edfe=_0x4ffb42[_0x25f796('0x1e')]+_0x4ffb42['limit'],_0x3d89bb;return _0xd8edfe>=_0xa67287?(_0xd8edfe=_0xa67287,_0x3d89bb=0xc8):_0x3d89bb=0xce,_0x2f23fb[_0x25f796('0x2c')](_0x3d89bb),_0x2f23fb['set']('Content-Range',_0x327a02+'-'+_0xd8edfe+'/'+_0xa67287)[_0x25f796('0x2e')](_0x43966e);}return null;};}function saveUpdates(_0x563f7f){return function(_0x2c625c){const _0x4d9eed=a506_0x40b0;if(_0x2c625c)return _0x2c625c[_0x4d9eed('0x0')](_0x563f7f)[_0x4d9eed('0x26')](function(_0x37cc58){return _0x37cc58;});return null;};}function removeEntity(_0xa5756b){return function(_0x244aee){const _0x18a3fb=a506_0x40b0;if(_0x244aee)return _0x244aee['destroy']()[_0x18a3fb('0x26')](function(){const _0x3888fd=_0x18a3fb;_0xa5756b[_0x3888fd('0x2c')](0xcc)[_0x3888fd('0x31')]();});};}function handleEntityNotFound(_0x2cf030){return function(_0x2ffa30){return!_0x2ffa30&&_0x2cf030['sendStatus'](0x194),_0x2ffa30;};}function handleError(_0x3f69cb,_0x506551){return _0x506551=_0x506551||0x1f4,function(_0x150fe5){const _0x4dbb1a=a506_0x40b0;logger['error'](_0x150fe5[_0x4dbb1a('0x2b')]),_0x150fe5[_0x4dbb1a('0xa')]&&delete _0x150fe5['name'],_0x3f69cb[_0x4dbb1a('0x2c')](_0x506551)[_0x4dbb1a('0x33')](_0x150fe5);};}exports[_0x5c0199('0x1')]=function(_0x4de736,_0x9b5e64){const _0x311e9b=_0x5c0199;let _0x24eb07={};const _0x4c69dc={},_0x1b86c7={'count':0x0,'rows':[]},_0x2f98bb=_[_0x311e9b('0x7')](db[_0x311e9b('0x6')][_0x311e9b('0xd')],function(_0xabc993){const _0x341d9b=_0x311e9b;return{'name':_0xabc993[_0x341d9b('0x4')],'type':_0xabc993[_0x341d9b('0x17')][_0x341d9b('0x2')]};});_0x4c69dc[_0x311e9b('0x2a')]=_[_0x311e9b('0x7')](_0x2f98bb,_0x311e9b('0xa')),_0x4c69dc[_0x311e9b('0x1f')]=_[_0x311e9b('0x20')](_0x4de736[_0x311e9b('0x1f')]),_0x4c69dc[_0x311e9b('0x22')]=_[_0x311e9b('0x23')](_0x4c69dc[_0x311e9b('0x2a')],_0x4c69dc[_0x311e9b('0x1f')]),_0x24eb07[_0x311e9b('0xf')]=_[_0x311e9b('0x23')](_0x4c69dc['model'],qs['fields'](_0x4de736['query'][_0x311e9b('0x27')])),_0x24eb07['attributes']=_0x24eb07[_0x311e9b('0xf')][_0x311e9b('0x3')]?_0x24eb07[_0x311e9b('0xf')]:_0x4c69dc[_0x311e9b('0x2a')];typeof _0x4de736['query']['nolimit']===_0x311e9b('0x11')&&(_0x24eb07[_0x311e9b('0x13')]=qs[_0x311e9b('0x13')](_0x4de736[_0x311e9b('0x1f')][_0x311e9b('0x13')]),_0x24eb07['offset']=qs[_0x311e9b('0x1e')](_0x4de736[_0x311e9b('0x1f')][_0x311e9b('0x1e')]));_0x24eb07[_0x311e9b('0x19')]=qs[_0x311e9b('0x14')](_0x4de736[_0x311e9b('0x1f')][_0x311e9b('0x14')]),_0x24eb07['where']=qs['filters'](_[_0x311e9b('0x18')](_0x4de736[_0x311e9b('0x1f')],_0x4c69dc[_0x311e9b('0x22')]),_0x2f98bb);_0x4de736[_0x311e9b('0x1f')][_0x311e9b('0x2f')]&&(_0x24eb07[_0x311e9b('0x1d')]=_[_0x311e9b('0xe')](_0x24eb07[_0x311e9b('0x1d')],{[Op['or']]:_[_0x311e9b('0x7')](_0x2f98bb,function(_0x288fe8){const _0x174724=_0x311e9b;if(_0x288fe8[_0x174724('0x17')]!==_0x174724('0x10')){const _0x395349={};return _0x395349[_0x288fe8[_0x174724('0xa')]]={[Op[_0x174724('0x28')]]:'%'+_0x4de736[_0x174724('0x1f')][_0x174724('0x2f')]+'%'},_0x395349;}})}));_0x24eb07=_[_0x311e9b('0xe')]({},_0x24eb07,_0x4de736['options']);const _0xee63b5={'where':_0x24eb07[_0x311e9b('0x1d')]};return db[_0x311e9b('0x6')][_0x311e9b('0x5')](_0xee63b5)[_0x311e9b('0x26')](function(_0x3fe3ff){const _0x4a13c7=_0x311e9b;return _0x1b86c7[_0x4a13c7('0x5')]=_0x3fe3ff,_0x4de736[_0x4a13c7('0x1f')][_0x4a13c7('0x21')]&&(_0x24eb07['include']=[{'all':!![]}]),db[_0x4a13c7('0x6')]['findAll'](_0x24eb07);})[_0x311e9b('0x26')](function(_0x5dcd0d){const _0x34ee38=_0x311e9b;return _0x1b86c7[_0x34ee38('0x29')]=_0x5dcd0d,_0x1b86c7;})[_0x311e9b('0x26')](respondWithFilteredResult(_0x9b5e64,_0x24eb07))['catch'](handleError(_0x9b5e64,null));},exports[_0x5c0199('0x8')]=function(_0xb545c0,_0xc633d2){const _0x5f3d8a=_0x5c0199;let _0x5d6a68={'raw':!![],'where':{'id':_0xb545c0[_0x5f3d8a('0xc')]['id']}};const _0x30b249={};return _0x30b249[_0x5f3d8a('0x2a')]=_[_0x5f3d8a('0x20')](db[_0x5f3d8a('0x6')]['rawAttributes']),_0x30b249[_0x5f3d8a('0x1f')]=_['keys'](_0xb545c0[_0x5f3d8a('0x1f')]),_0x30b249[_0x5f3d8a('0x22')]=_['intersection'](_0x30b249['model'],_0x30b249[_0x5f3d8a('0x1f')]),_0x5d6a68['attributes']=_[_0x5f3d8a('0x23')](_0x30b249[_0x5f3d8a('0x2a')],qs[_0x5f3d8a('0x27')](_0xb545c0[_0x5f3d8a('0x1f')][_0x5f3d8a('0x27')])),_0x5d6a68[_0x5f3d8a('0xf')]=_0x5d6a68[_0x5f3d8a('0xf')][_0x5f3d8a('0x3')]?_0x5d6a68[_0x5f3d8a('0xf')]:_0x30b249['model'],_0xb545c0[_0x5f3d8a('0x1f')][_0x5f3d8a('0x21')]&&(_0x5d6a68[_0x5f3d8a('0x12')]=[{'all':!![]}]),_0x5d6a68=_[_0x5f3d8a('0xe')]({},_0x5d6a68,_0xb545c0[_0x5f3d8a('0x24')]),db['OpenchannelTransferReport'][_0x5f3d8a('0x9')](_0x5d6a68)['then'](handleEntityNotFound(_0xc633d2,null))[_0x5f3d8a('0x26')](respondWithResult(_0xc633d2,null))[_0x5f3d8a('0x1b')](handleError(_0xc633d2,null));},exports['create']=function(_0x39cd2d,_0x4c6e30){const _0x1b3f76=_0x5c0199;return db['OpenchannelTransferReport'][_0x1b3f76('0xb')](_0x39cd2d[_0x1b3f76('0x25')],{})['then'](respondWithResult(_0x4c6e30,0xc9))[_0x1b3f76('0x1b')](handleError(_0x4c6e30,null));},exports[_0x5c0199('0x0')]=function(_0x2c3a9e,_0x430f4e){const _0x5bf9dc=_0x5c0199;return _0x2c3a9e[_0x5bf9dc('0x25')]['id']&&delete _0x2c3a9e['body']['id'],db[_0x5bf9dc('0x6')][_0x5bf9dc('0x9')]({'where':{'id':_0x2c3a9e[_0x5bf9dc('0xc')]['id']}})[_0x5bf9dc('0x26')](handleEntityNotFound(_0x430f4e,null))[_0x5bf9dc('0x26')](saveUpdates(_0x2c3a9e['body'],null))[_0x5bf9dc('0x26')](respondWithResult(_0x430f4e,null))[_0x5bf9dc('0x1b')](handleError(_0x430f4e,null));},exports[_0x5c0199('0x16')]=function(_0xe71a04,_0x15bcd3){const _0x103331=_0x5c0199;return db['OpenchannelTransferReport'][_0x103331('0x9')]({'where':{'id':_0xe71a04['params']['id']}})[_0x103331('0x26')](handleEntityNotFound(_0x15bcd3,null))[_0x103331('0x26')](removeEntity(_0x15bcd3,null))[_0x103331('0x1b')](handleError(_0x15bcd3,null));},exports['describe']=function(_0x3f0c40,_0x2297e1){const _0xc7e01e=_0x5c0199;return db[_0xc7e01e('0x6')][_0xc7e01e('0x1c')]()[_0xc7e01e('0x26')](respondWithResult(_0x2297e1,null))[_0xc7e01e('0x1b')](handleError(_0x2297e1,null));}; \ No newline at end of file +const a607_0x501c=['VIRTUAL','set','query','name','order','OpenchannelTransferReport','../../mysqldb','then','catch','body','destroy','fields','type','sort','create','count','merge','filters','index','limit','sendStatus','rows','end','like','update','offset','include','findAll','status','map','options','where','describe','Content-Range','filter','sequelize','fieldName','model','length','findOne','attributes','includeAll','nolimit','intersection','keys','json','send','error','../../components/parsers/qs','pick','key','show','params'];(function(_0x525745,_0x1f737e){const _0x501c41=function(_0x7ac5e5){while(--_0x7ac5e5){_0x525745['push'](_0x525745['shift']());}};_0x501c41(++_0x1f737e);}(a607_0x501c,0x104));const a607_0x7ac5=function(_0x525745,_0x1f737e){_0x525745=_0x525745-0x13c;let _0x501c41=a607_0x501c[_0x525745];return _0x501c41;};const a607_0x3c20f2=a607_0x7ac5;'use strict';const _=require('lodash'),qs=require(a607_0x3c20f2(0x13c)),logger=require('../../config/logger')('api'),{db}=require(a607_0x3c20f2(0x147)),{Op}=require(a607_0x3c20f2(0x164));function respondWithResult(_0xd81191,_0x53186c){return _0x53186c=_0x53186c||0xc8,function(_0x14fb90){const _0xeb0a91=a607_0x7ac5;if(_0x14fb90)return _0xd81191['status'](_0x53186c)[_0xeb0a91(0x16e)](_0x14fb90);};}function respondWithFilteredResult(_0x1e5b01,_0x4723c0){return function(_0xf9392){const _0x27bf16=a607_0x7ac5;if(_0xf9392){const _0x1d9b71=_0xf9392[_0x27bf16(0x150)],_0x303e4c=_0x4723c0[_0x27bf16(0x15a)];let _0x1fd14d=_0x4723c0[_0x27bf16(0x15a)]+_0x4723c0[_0x27bf16(0x154)],_0x32a0c6;return _0x1fd14d>=_0x1d9b71?(_0x1fd14d=_0x1d9b71,_0x32a0c6=0xc8):_0x32a0c6=0xce,_0x1e5b01[_0x27bf16(0x15d)](_0x32a0c6),_0x1e5b01[_0x27bf16(0x142)](_0x27bf16(0x162),_0x303e4c+'-'+_0x1fd14d+'/'+_0x1d9b71)['json'](_0xf9392);}return null;};}function saveUpdates(_0x19276f){return function(_0x293f83){const _0x440f58=a607_0x7ac5;if(_0x293f83)return _0x293f83[_0x440f58(0x159)](_0x19276f)['then'](function(_0x51b67b){return _0x51b67b;});return null;};}function removeEntity(_0x493b48){return function(_0x38e2ac){if(_0x38e2ac)return _0x38e2ac['destroy']()['then'](function(){const _0x3c5165=a607_0x7ac5;_0x493b48[_0x3c5165(0x15d)](0xcc)[_0x3c5165(0x157)]();});};}function handleEntityNotFound(_0x1c48d1){return function(_0x536ae2){const _0x27f060=a607_0x7ac5;return!_0x536ae2&&_0x1c48d1[_0x27f060(0x155)](0x194),_0x536ae2;};}function handleError(_0x1084c0,_0xf37292){return _0xf37292=_0xf37292||0x1f4,function(_0x4f3c5f){const _0x6ad50=a607_0x7ac5;logger[_0x6ad50(0x170)](_0x4f3c5f['stack']),_0x4f3c5f[_0x6ad50(0x144)]&&delete _0x4f3c5f[_0x6ad50(0x144)],_0x1084c0['status'](_0xf37292)[_0x6ad50(0x16f)](_0x4f3c5f);};}exports[a607_0x3c20f2(0x153)]=function(_0x275123,_0x39a553){const _0x4ed0a2=a607_0x3c20f2;let _0x15bbad={};const _0x4098d7={},_0x43a796={'count':0x0,'rows':[]},_0x276be3=_[_0x4ed0a2(0x15e)](db[_0x4ed0a2(0x146)]['rawAttributes'],function(_0xa34a2a){const _0x55818d=_0x4ed0a2;return{'name':_0xa34a2a[_0x55818d(0x165)],'type':_0xa34a2a[_0x55818d(0x14d)][_0x55818d(0x13e)]};});_0x4098d7[_0x4ed0a2(0x166)]=_['map'](_0x276be3,'name'),_0x4098d7[_0x4ed0a2(0x143)]=_[_0x4ed0a2(0x16d)](_0x275123[_0x4ed0a2(0x143)]),_0x4098d7[_0x4ed0a2(0x152)]=_[_0x4ed0a2(0x16c)](_0x4098d7[_0x4ed0a2(0x166)],_0x4098d7[_0x4ed0a2(0x143)]),_0x15bbad[_0x4ed0a2(0x169)]=_[_0x4ed0a2(0x16c)](_0x4098d7[_0x4ed0a2(0x166)],qs[_0x4ed0a2(0x14c)](_0x275123[_0x4ed0a2(0x143)]['fields'])),_0x15bbad[_0x4ed0a2(0x169)]=_0x15bbad[_0x4ed0a2(0x169)][_0x4ed0a2(0x167)]?_0x15bbad[_0x4ed0a2(0x169)]:_0x4098d7[_0x4ed0a2(0x166)];typeof _0x275123[_0x4ed0a2(0x143)][_0x4ed0a2(0x16b)]==='undefined'&&(_0x15bbad[_0x4ed0a2(0x154)]=qs[_0x4ed0a2(0x154)](_0x275123[_0x4ed0a2(0x143)][_0x4ed0a2(0x154)]),_0x15bbad[_0x4ed0a2(0x15a)]=qs['offset'](_0x275123[_0x4ed0a2(0x143)]['offset']));_0x15bbad[_0x4ed0a2(0x145)]=qs[_0x4ed0a2(0x14e)](_0x275123[_0x4ed0a2(0x143)]['sort']),_0x15bbad[_0x4ed0a2(0x160)]=qs[_0x4ed0a2(0x152)](_[_0x4ed0a2(0x13d)](_0x275123['query'],_0x4098d7[_0x4ed0a2(0x152)]),_0x276be3);_0x275123[_0x4ed0a2(0x143)][_0x4ed0a2(0x163)]&&(_0x15bbad[_0x4ed0a2(0x160)]=_[_0x4ed0a2(0x151)](_0x15bbad[_0x4ed0a2(0x160)],{[Op['or']]:_['map'](_0x276be3,function(_0x3e97ba){const _0x1a7368=_0x4ed0a2;if(_0x3e97ba[_0x1a7368(0x14d)]!==_0x1a7368(0x141)){const _0x220881={};return _0x220881[_0x3e97ba['name']]={[Op[_0x1a7368(0x158)]]:'%'+_0x275123['query'][_0x1a7368(0x163)]+'%'},_0x220881;}})}));_0x15bbad=_[_0x4ed0a2(0x151)]({},_0x15bbad,_0x275123[_0x4ed0a2(0x15f)]);const _0xffa53f={'where':_0x15bbad[_0x4ed0a2(0x160)]};return db[_0x4ed0a2(0x146)][_0x4ed0a2(0x150)](_0xffa53f)[_0x4ed0a2(0x148)](function(_0x433f79){const _0x5adc53=_0x4ed0a2;return _0x43a796[_0x5adc53(0x150)]=_0x433f79,_0x275123['query'][_0x5adc53(0x16a)]&&(_0x15bbad[_0x5adc53(0x15b)]=[{'all':!![]}]),db[_0x5adc53(0x146)][_0x5adc53(0x15c)](_0x15bbad);})[_0x4ed0a2(0x148)](function(_0x5a6705){const _0x1a4ad3=_0x4ed0a2;return _0x43a796[_0x1a4ad3(0x156)]=_0x5a6705,_0x43a796;})[_0x4ed0a2(0x148)](respondWithFilteredResult(_0x39a553,_0x15bbad))[_0x4ed0a2(0x149)](handleError(_0x39a553,null));},exports[a607_0x3c20f2(0x13f)]=function(_0x67f679,_0x2dc6ca){const _0x20fbac=a607_0x3c20f2;let _0x573f9d={'raw':!![],'where':{'id':_0x67f679[_0x20fbac(0x140)]['id']}};const _0x2c0008={};return _0x2c0008[_0x20fbac(0x166)]=_[_0x20fbac(0x16d)](db[_0x20fbac(0x146)]['rawAttributes']),_0x2c0008[_0x20fbac(0x143)]=_[_0x20fbac(0x16d)](_0x67f679[_0x20fbac(0x143)]),_0x2c0008[_0x20fbac(0x152)]=_[_0x20fbac(0x16c)](_0x2c0008['model'],_0x2c0008[_0x20fbac(0x143)]),_0x573f9d[_0x20fbac(0x169)]=_[_0x20fbac(0x16c)](_0x2c0008[_0x20fbac(0x166)],qs[_0x20fbac(0x14c)](_0x67f679['query'][_0x20fbac(0x14c)])),_0x573f9d[_0x20fbac(0x169)]=_0x573f9d[_0x20fbac(0x169)][_0x20fbac(0x167)]?_0x573f9d[_0x20fbac(0x169)]:_0x2c0008['model'],_0x67f679[_0x20fbac(0x143)][_0x20fbac(0x16a)]&&(_0x573f9d['include']=[{'all':!![]}]),_0x573f9d=_['merge']({},_0x573f9d,_0x67f679[_0x20fbac(0x15f)]),db[_0x20fbac(0x146)][_0x20fbac(0x168)](_0x573f9d)['then'](handleEntityNotFound(_0x2dc6ca,null))[_0x20fbac(0x148)](respondWithResult(_0x2dc6ca,null))['catch'](handleError(_0x2dc6ca,null));},exports['create']=function(_0x316b6a,_0x2780c5){const _0x74f081=a607_0x3c20f2;return db[_0x74f081(0x146)][_0x74f081(0x14f)](_0x316b6a[_0x74f081(0x14a)],{})[_0x74f081(0x148)](respondWithResult(_0x2780c5,0xc9))['catch'](handleError(_0x2780c5,null));},exports[a607_0x3c20f2(0x159)]=function(_0x4311c6,_0xdd03a7){const _0x19ab7b=a607_0x3c20f2;return _0x4311c6[_0x19ab7b(0x14a)]['id']&&delete _0x4311c6[_0x19ab7b(0x14a)]['id'],db[_0x19ab7b(0x146)][_0x19ab7b(0x168)]({'where':{'id':_0x4311c6[_0x19ab7b(0x140)]['id']}})[_0x19ab7b(0x148)](handleEntityNotFound(_0xdd03a7,null))['then'](saveUpdates(_0x4311c6[_0x19ab7b(0x14a)],null))[_0x19ab7b(0x148)](respondWithResult(_0xdd03a7,null))[_0x19ab7b(0x149)](handleError(_0xdd03a7,null));},exports[a607_0x3c20f2(0x14b)]=function(_0x22717a,_0x258dda){const _0x16ac98=a607_0x3c20f2;return db['OpenchannelTransferReport'][_0x16ac98(0x168)]({'where':{'id':_0x22717a['params']['id']}})[_0x16ac98(0x148)](handleEntityNotFound(_0x258dda,null))[_0x16ac98(0x148)](removeEntity(_0x258dda,null))[_0x16ac98(0x149)](handleError(_0x258dda,null));},exports[a607_0x3c20f2(0x161)]=function(_0x4af65d,_0x3dd622){const _0x351e48=a607_0x3c20f2;return db[_0x351e48(0x146)][_0x351e48(0x161)]()[_0x351e48(0x148)](respondWithResult(_0x3dd622,null))[_0x351e48(0x149)](handleError(_0x3dd622,null));}; \ No newline at end of file diff --git a/server/api/openchannelTransferReport/openchannelTransferReport.model.js b/server/api/openchannelTransferReport/openchannelTransferReport.model.js index c6fbd1c..59127aa 100644 --- a/server/api/openchannelTransferReport/openchannelTransferReport.model.js +++ b/server/api/openchannelTransferReport/openchannelTransferReport.model.js @@ -1 +1 @@ -const a507_0x2282=['./openchannelTransferReport.attributes','uniqueid','define'];(function(_0x553add,_0x228220){const _0x430dfe=function(_0x24a5b8){while(--_0x24a5b8){_0x553add['push'](_0x553add['shift']());}};_0x430dfe(++_0x228220);}(a507_0x2282,0x1b7));const a507_0x430d=function(_0x553add,_0x228220){_0x553add=_0x553add-0x0;let _0x430dfe=a507_0x2282[_0x553add];return _0x430dfe;};const _0x1f1c4a=a507_0x430d;'use strict';const attributes=require(_0x1f1c4a('0x2'));module['exports']=function(_0x24a5b8){const _0x38a8bd=_0x1f1c4a,_0x5c5b82=_0x24a5b8[_0x38a8bd('0x1')]('OpenchannelTransferReport',attributes,{'tableName':'report_openchannel_transfer','paranoid':![],'indexes':[{'name':'uniqueid','fields':[_0x38a8bd('0x0')]}],'timestamps':!![]});return _0x5c5b82;}; \ No newline at end of file +const a608_0x21bb=['function','sequelize','init','exports','./openchannelTransferReport.options','./openchannelTransferReport.attributes'];(function(_0x40332f,_0x25f96d){const _0x21bb6d=function(_0x3d2427){while(--_0x3d2427){_0x40332f['push'](_0x40332f['shift']());}};_0x21bb6d(++_0x25f96d);}(a608_0x21bb,0x176));const a608_0x3d24=function(_0x40332f,_0x25f96d){_0x40332f=_0x40332f-0xdb;let _0x21bb6d=a608_0x21bb[_0x40332f];return _0x21bb6d;};const a608_0x524cb9=a608_0x3d24;'use strict';const {Model}=require(a608_0x524cb9(0xe0)),{attributes}=require(a608_0x524cb9(0xde)),{options}=require(a608_0x524cb9(0xdd));class OpenchannelTransferReport extends Model{}function init(_0x52aacf,_0x2d4e3a){const _0x3f8118=a608_0x524cb9,_0x50745c=options(_0x52aacf),_0x1ba517=typeof _0x2d4e3a===_0x3f8118(0xdf)?_0x2d4e3a(_0x50745c):_0x50745c;return OpenchannelTransferReport[_0x3f8118(0xdb)](attributes,_0x1ba517),OpenchannelTransferReport;}module[a608_0x524cb9(0xdc)]['OpenchannelTransferReport']=OpenchannelTransferReport,module[a608_0x524cb9(0xdc)][a608_0x524cb9(0xdb)]=init; \ No newline at end of file diff --git a/server/api/openchannelTransferReport/openchannelTransferReport.options.js b/server/api/openchannelTransferReport/openchannelTransferReport.options.js new file mode 100644 index 0000000..bcce0ec --- /dev/null +++ b/server/api/openchannelTransferReport/openchannelTransferReport.options.js @@ -0,0 +1 @@ +var a609_0x398f=['options','uniqueid','report_openchannel_transfer'];(function(_0x4f67d9,_0x2077bd){var _0x398f78=function(_0x7aaf30){while(--_0x7aaf30){_0x4f67d9['push'](_0x4f67d9['shift']());}};_0x398f78(++_0x2077bd);}(a609_0x398f,0x143));var a609_0x7aaf=function(_0x4f67d9,_0x2077bd){_0x4f67d9=_0x4f67d9-0x101;var _0x398f78=a609_0x398f[_0x4f67d9];return _0x398f78;};var a609_0x5d2e71=a609_0x7aaf;function options(_0x4613eb){var _0xd44401=a609_0x7aaf;return{'sequelize':_0x4613eb,'tableName':_0xd44401(0x101),'paranoid':![],'indexes':[{'name':_0xd44401(0x103),'fields':['uniqueid']}],'timestamps':!![]};}module['exports'][a609_0x5d2e71(0x102)]=options; \ No newline at end of file diff --git a/server/api/pause/index.js b/server/api/pause/index.js index 1cdcf7d..d44f6e2 100644 --- a/server/api/pause/index.js +++ b/server/api/pause/index.js @@ -1 +1 @@ -const a508_0x4463=['./pause.controller','../../components/auth/service','get','exports','create','express','update','delete','/:id','destroy','isAuthenticated','put','show'];(function(_0x5734e5,_0x4463c4){const _0x1b1a34=function(_0x17e329){while(--_0x17e329){_0x5734e5['push'](_0x5734e5['shift']());}};_0x1b1a34(++_0x4463c4);}(a508_0x4463,0x94));const a508_0x1b1a=function(_0x5734e5,_0x4463c4){_0x5734e5=_0x5734e5-0x0;let _0x1b1a34=a508_0x4463[_0x5734e5];return _0x1b1a34;};const _0x465bc4=a508_0x1b1a;'use strict';const express=require(_0x465bc4('0x0')),router=express['Router'](),auth=require(_0x465bc4('0x9')),controller=require(_0x465bc4('0x8'));router[_0x465bc4('0xa')]('/',auth[_0x465bc4('0x5')](),controller['index']),router['get'](_0x465bc4('0x3'),auth['isAuthenticated'](),controller[_0x465bc4('0x7')]),router['post']('/',auth['isAuthenticated'](),controller[_0x465bc4('0xc')]),router[_0x465bc4('0x6')](_0x465bc4('0x3'),auth[_0x465bc4('0x5')](),controller[_0x465bc4('0x1')]),router[_0x465bc4('0x2')](_0x465bc4('0x3'),auth[_0x465bc4('0x5')](),controller[_0x465bc4('0x4')]),module[_0x465bc4('0xb')]=router; \ No newline at end of file +const a610_0x252a=['index','Router','../../components/auth/service','get','./pause.controller','delete','create','put','post','isAuthenticated','destroy','/:id','express','exports','update'];(function(_0x5e626b,_0x15c1f9){const _0x252a4d=function(_0x4624c9){while(--_0x4624c9){_0x5e626b['push'](_0x5e626b['shift']());}};_0x252a4d(++_0x15c1f9);}(a610_0x252a,0x1d7));const a610_0x4624=function(_0x5e626b,_0x15c1f9){_0x5e626b=_0x5e626b-0x1ba;let _0x252a4d=a610_0x252a[_0x5e626b];return _0x252a4d;};const a610_0x3e6e40=a610_0x4624;'use strict';const express=require(a610_0x3e6e40(0x1c0)),router=express[a610_0x3e6e40(0x1c4)](),auth=require(a610_0x3e6e40(0x1c5)),controller=require(a610_0x3e6e40(0x1c7));router[a610_0x3e6e40(0x1c6)]('/',auth[a610_0x3e6e40(0x1bd)](),controller[a610_0x3e6e40(0x1c3)]),router['get'](a610_0x3e6e40(0x1bf),auth[a610_0x3e6e40(0x1bd)](),controller['show']),router[a610_0x3e6e40(0x1bc)]('/',auth[a610_0x3e6e40(0x1bd)](),controller[a610_0x3e6e40(0x1ba)]),router[a610_0x3e6e40(0x1bb)](a610_0x3e6e40(0x1bf),auth[a610_0x3e6e40(0x1bd)](),controller[a610_0x3e6e40(0x1c2)]),router[a610_0x3e6e40(0x1c8)](a610_0x3e6e40(0x1bf),auth[a610_0x3e6e40(0x1bd)](),controller[a610_0x3e6e40(0x1be)]),module[a610_0x3e6e40(0x1c1)]=router; \ No newline at end of file diff --git a/server/api/pause/pause.attributes.js b/server/api/pause/pause.attributes.js index 819effb..3b3b40d 100644 --- a/server/api/pause/pause.attributes.js +++ b/server/api/pause/pause.attributes.js @@ -1 +1 @@ -const a509_0x4a88=['sequelize','STRING','name'];(function(_0x55dd40,_0x4a8854){const _0x334318=function(_0x3a46cc){while(--_0x3a46cc){_0x55dd40['push'](_0x55dd40['shift']());}};_0x334318(++_0x4a8854);}(a509_0x4a88,0x19e));const a509_0x3343=function(_0x55dd40,_0x4a8854){_0x55dd40=_0x55dd40-0x0;let _0x334318=a509_0x4a88[_0x55dd40];return _0x334318;};const _0x5ad63a=a509_0x3343;'use strict';const Sequelize=require(_0x5ad63a('0x0'));module['exports']={'name':{'type':Sequelize[_0x5ad63a('0x1')],'unique':_0x5ad63a('0x2'),'allowNull':![]},'description':{'type':Sequelize[_0x5ad63a('0x1')]}}; \ No newline at end of file +const a611_0x1bb5=['exports','attributes','STRING','sequelize'];(function(_0x5cb688,_0x16595d){const _0x1bb5ee=function(_0x44d257){while(--_0x44d257){_0x5cb688['push'](_0x5cb688['shift']());}};_0x1bb5ee(++_0x16595d);}(a611_0x1bb5,0x16d));const a611_0x44d2=function(_0x5cb688,_0x16595d){_0x5cb688=_0x5cb688-0xd7;let _0x1bb5ee=a611_0x1bb5[_0x5cb688];return _0x1bb5ee;};const a611_0x4a4281=a611_0x44d2;'use strict';const {DataTypes}=require(a611_0x4a4281(0xd9)),attributes={'name':{'type':DataTypes[a611_0x4a4281(0xd8)],'unique':'name','allowNull':![]},'description':{'type':DataTypes[a611_0x4a4281(0xd8)]}};module[a611_0x4a4281(0xda)][a611_0x4a4281(0xd7)]=attributes; \ No newline at end of file diff --git a/server/api/pause/pause.controller.js b/server/api/pause/pause.controller.js index 7af04f3..c155628 100644 --- a/server/api/pause/pause.controller.js +++ b/server/api/pause/pause.controller.js @@ -1 +1 @@ -const a510_0x19bf=['nolimit','like','VIRTUAL','../../mysqldb','error','count','model','destroy','then','query','include','attributes','name','body','api','keys','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','Unable\x20to\x20retrieve\x20the\x20current\x20user','update','status','catch','send','stack','../../components/parsers/qs','end','offset','index','merge','params','options','Pauses','get','Content-Range','sequelize','sort','filters','findAll','filter','includeAll','where','UserProfileResource','order','UserProfileSection','type','fields','pick','Pause','key','limit','rows','intersection','userProfileId','create','map','sendStatus','findOne','autoAssociation','undefined'];(function(_0x1eaa44,_0x19bf55){const _0x2fcb24=function(_0x586dcf){while(--_0x586dcf){_0x1eaa44['push'](_0x1eaa44['shift']());}};_0x2fcb24(++_0x19bf55);}(a510_0x19bf,0xb5));const a510_0x2fcb=function(_0x1eaa44,_0x19bf55){_0x1eaa44=_0x1eaa44-0x0;let _0x2fcb24=a510_0x19bf[_0x1eaa44];return _0x2fcb24;};const _0xacf71b=a510_0x2fcb;'use strict';const _=require('lodash'),qs=require(_0xacf71b('0x10')),logger=require('../../config/logger')(_0xacf71b('0x7')),db=require(_0xacf71b('0x36'))['db'],{Op}=require(_0xacf71b('0x1a'));function respondWithResult(_0x586dcf,_0x2f14ac){return _0x2f14ac=_0x2f14ac||0xc8,function(_0x26e390){if(_0x26e390)return _0x586dcf['status'](_0x2f14ac)['json'](_0x26e390);};}function respondWithFilteredResult(_0x31e612,_0xac402){return function(_0x2d71aa){const _0x3adbd6=a510_0x2fcb;if(_0x2d71aa){const _0x45d2cc=_0x2d71aa[_0x3adbd6('0x38')],_0x646531=_0xac402[_0x3adbd6('0x12')];let _0x7d331d=_0xac402['offset']+_0xac402['limit'],_0x410f83;return _0x7d331d>=_0x45d2cc?(_0x7d331d=_0x45d2cc,_0x410f83=0xc8):_0x410f83=0xce,_0x31e612['status'](_0x410f83),_0x31e612['set'](_0x3adbd6('0x19'),_0x646531+'-'+_0x7d331d+'/'+_0x45d2cc)['json'](_0x2d71aa);}return null;};}function saveUpdates(_0x5a1dee){return function(_0x2d955f){const _0x3abaa8=a510_0x2fcb;if(_0x2d955f)return _0x2d955f[_0x3abaa8('0xb')](_0x5a1dee)[_0x3abaa8('0x1')](function(_0x257436){return _0x257436;});return null;};}function removeEntity(_0x18b9a7){return function(_0x26df38){if(_0x26df38)return _0x26df38['destroy']()['then'](function(){const _0x19afb9=a510_0x2fcb,_0x3b40c3=_0x26df38[_0x19afb9('0x18')]({'plain':!![]}),_0xb714c0='Pauses';return db[_0x19afb9('0x21')][_0x19afb9('0x0')]({'where':{'type':_0xb714c0,'resourceId':_0x3b40c3['id']}})[_0x19afb9('0x1')](function(){return _0x26df38;});})['then'](function(){const _0x352ce8=a510_0x2fcb;_0x18b9a7[_0x352ce8('0xc')](0xcc)[_0x352ce8('0x11')]();});};}function handleEntityNotFound(_0x2fd20f){return function(_0x489b10){const _0x5759bf=a510_0x2fcb;return!_0x489b10&&_0x2fd20f[_0x5759bf('0x2f')](0x194),_0x489b10;};}function handleError(_0x51bfbb,_0x2aa1f8){return _0x2aa1f8=_0x2aa1f8||0x1f4,function(_0x21781e){const _0x28b85a=a510_0x2fcb;logger[_0x28b85a('0x37')](_0x21781e[_0x28b85a('0xf')]),_0x21781e[_0x28b85a('0x5')]&&delete _0x21781e[_0x28b85a('0x5')],_0x51bfbb['status'](_0x2aa1f8)[_0x28b85a('0xe')](_0x21781e);};}exports[_0xacf71b('0x13')]=function(_0x1f3cab,_0x5e2b99){const _0x485d1b=_0xacf71b;let _0x1bb523={};const _0x2e76fd={},_0x54494c={'count':0x0,'rows':[]},_0x553a39=_[_0x485d1b('0x2e')](db[_0x485d1b('0x27')]['rawAttributes'],function(_0x59b75e){const _0x415920=_0x485d1b;return{'name':_0x59b75e['fieldName'],'type':_0x59b75e[_0x415920('0x24')][_0x415920('0x28')]};});_0x2e76fd['model']=_[_0x485d1b('0x2e')](_0x553a39,_0x485d1b('0x5')),_0x2e76fd[_0x485d1b('0x2')]=_[_0x485d1b('0x8')](_0x1f3cab['query']),_0x2e76fd[_0x485d1b('0x1c')]=_[_0x485d1b('0x2b')](_0x2e76fd[_0x485d1b('0x39')],_0x2e76fd[_0x485d1b('0x2')]),_0x1bb523[_0x485d1b('0x4')]=_[_0x485d1b('0x2b')](_0x2e76fd[_0x485d1b('0x39')],qs[_0x485d1b('0x25')](_0x1f3cab[_0x485d1b('0x2')][_0x485d1b('0x25')])),_0x1bb523[_0x485d1b('0x4')]=_0x1bb523[_0x485d1b('0x4')]['length']?_0x1bb523['attributes']:_0x2e76fd['model'];typeof _0x1f3cab['query'][_0x485d1b('0x33')]===_0x485d1b('0x32')&&(_0x1bb523['limit']=qs[_0x485d1b('0x29')](_0x1f3cab[_0x485d1b('0x2')][_0x485d1b('0x29')]),_0x1bb523[_0x485d1b('0x12')]=qs[_0x485d1b('0x12')](_0x1f3cab[_0x485d1b('0x2')][_0x485d1b('0x12')]));_0x1bb523[_0x485d1b('0x22')]=qs[_0x485d1b('0x1b')](_0x1f3cab[_0x485d1b('0x2')][_0x485d1b('0x1b')]),_0x1bb523['where']=qs[_0x485d1b('0x1c')](_[_0x485d1b('0x26')](_0x1f3cab[_0x485d1b('0x2')],_0x2e76fd['filters']),_0x553a39);_0x1f3cab[_0x485d1b('0x2')][_0x485d1b('0x1e')]&&(_0x1bb523[_0x485d1b('0x20')]=_['merge'](_0x1bb523['where'],{[Op['or']]:_['map'](_0x553a39,function(_0x1ee1e8){const _0x26cc3f=_0x485d1b;if(_0x1ee1e8[_0x26cc3f('0x24')]!==_0x26cc3f('0x35')){const _0xb3861f={};return _0xb3861f[_0x1ee1e8[_0x26cc3f('0x5')]]={[Op[_0x26cc3f('0x34')]]:'%'+_0x1f3cab[_0x26cc3f('0x2')][_0x26cc3f('0x1e')]+'%'},_0xb3861f;}})}));_0x1bb523=_[_0x485d1b('0x14')]({},_0x1bb523,_0x1f3cab[_0x485d1b('0x16')]);const _0xc73072={'where':_0x1bb523[_0x485d1b('0x20')]};return db[_0x485d1b('0x27')][_0x485d1b('0x38')](_0xc73072)[_0x485d1b('0x1')](function(_0x3dc363){const _0x1e5a84=_0x485d1b;return _0x54494c[_0x1e5a84('0x38')]=_0x3dc363,_0x1f3cab['query'][_0x1e5a84('0x1f')]&&(_0x1bb523[_0x1e5a84('0x3')]=[{'all':!![]}]),db['Pause'][_0x1e5a84('0x1d')](_0x1bb523);})[_0x485d1b('0x1')](function(_0x58cfed){const _0x8907ff=_0x485d1b;return _0x54494c[_0x8907ff('0x2a')]=_0x58cfed,_0x54494c;})[_0x485d1b('0x1')](respondWithFilteredResult(_0x5e2b99,_0x1bb523))['catch'](handleError(_0x5e2b99,null));},exports['show']=function(_0x5a0f40,_0xd778a3){const _0x1c169b=_0xacf71b;let _0x11ae5d={'raw':!![],'where':{'id':_0x5a0f40[_0x1c169b('0x15')]['id']}};const _0x2aee81={};return _0x2aee81[_0x1c169b('0x39')]=_[_0x1c169b('0x8')](db[_0x1c169b('0x27')]['rawAttributes']),_0x2aee81['query']=_[_0x1c169b('0x8')](_0x5a0f40[_0x1c169b('0x2')]),_0x2aee81[_0x1c169b('0x1c')]=_['intersection'](_0x2aee81['model'],_0x2aee81[_0x1c169b('0x2')]),_0x11ae5d['attributes']=_[_0x1c169b('0x2b')](_0x2aee81['model'],qs['fields'](_0x5a0f40['query'][_0x1c169b('0x25')])),_0x11ae5d[_0x1c169b('0x4')]=_0x11ae5d[_0x1c169b('0x4')]['length']?_0x11ae5d[_0x1c169b('0x4')]:_0x2aee81[_0x1c169b('0x39')],_0x5a0f40[_0x1c169b('0x2')][_0x1c169b('0x1f')]&&(_0x11ae5d[_0x1c169b('0x3')]=[{'all':!![]}]),_0x11ae5d=_[_0x1c169b('0x14')]({},_0x11ae5d,_0x5a0f40[_0x1c169b('0x16')]),db[_0x1c169b('0x27')]['findOne'](_0x11ae5d)[_0x1c169b('0x1')](handleEntityNotFound(_0xd778a3,null))[_0x1c169b('0x1')](respondWithResult(_0xd778a3,null))[_0x1c169b('0xd')](handleError(_0xd778a3,null));},exports[_0xacf71b('0x2d')]=function(_0x8fed82,_0x46678f){const _0x4a6969=_0xacf71b;return db[_0x4a6969('0x27')][_0x4a6969('0x2d')](_0x8fed82[_0x4a6969('0x6')],{})[_0x4a6969('0x1')](function(_0x2a6898){const _0x468333=_0x4a6969,_0x3a378a=_0x8fed82['user']['get']({'plain':!![]});if(!_0x3a378a)throw new Error(_0x468333('0xa'));if(_0x3a378a['role']==='user'){const _0x198b76=_0x2a6898[_0x468333('0x18')]({'plain':!![]}),_0x6b7527=_0x468333('0x17');return db[_0x468333('0x23')]['findOne']({'where':{'name':_0x6b7527,'userProfileId':_0x3a378a[_0x468333('0x2c')]},'raw':!![]})['then'](function(_0x4de0d4){const _0xed8638=_0x468333;return _0x4de0d4&&_0x4de0d4[_0xed8638('0x31')]===0x0?db[_0xed8638('0x21')][_0xed8638('0x2d')]({'name':_0x198b76['name'],'resourceId':_0x198b76['id'],'type':_0x4de0d4[_0xed8638('0x5')],'sectionId':_0x4de0d4['id']},{})[_0xed8638('0x1')](function(){return _0x2a6898;}):_0x2a6898;})[_0x468333('0xd')](function(_0x4384bc){const _0x31c1f2=_0x468333;logger[_0x31c1f2('0x37')](_0x31c1f2('0x9'),_0x4384bc);throw _0x4384bc;});}return _0x2a6898;})['then'](respondWithResult(_0x46678f,0xc9))[_0x4a6969('0xd')](handleError(_0x46678f,null));},exports['update']=function(_0x517236,_0x31b14e){const _0x3582a4=_0xacf71b;return _0x517236[_0x3582a4('0x6')]['id']&&delete _0x517236[_0x3582a4('0x6')]['id'],db[_0x3582a4('0x27')][_0x3582a4('0x30')]({'where':{'id':_0x517236['params']['id']}})[_0x3582a4('0x1')](handleEntityNotFound(_0x31b14e,null))[_0x3582a4('0x1')](saveUpdates(_0x517236[_0x3582a4('0x6')],null))['then'](respondWithResult(_0x31b14e,null))[_0x3582a4('0xd')](handleError(_0x31b14e,null));},exports[_0xacf71b('0x0')]=function(_0x51734e,_0x21e5ce){const _0x2b6ec6=_0xacf71b;return db[_0x2b6ec6('0x27')][_0x2b6ec6('0x30')]({'where':{'id':_0x51734e['params']['id']}})[_0x2b6ec6('0x1')](handleEntityNotFound(_0x21e5ce,null))[_0x2b6ec6('0x1')](removeEntity(_0x21e5ce,null))['catch'](handleError(_0x21e5ce,null));}; \ No newline at end of file +const a612_0x206b=['sort','rawAttributes','key','update','includeAll','api','filters','include','findOne','../../config/logger','map','filter','Pauses','index','json','UserProfileSection','length','limit','offset','undefined','VIRTUAL','merge','end','fieldName','intersection','rows','status','body','type','show','get','UserProfileResource','lodash','name','then','options','Unable\x20to\x20retrieve\x20the\x20current\x20user','where','error','Content-Range','user','query','create','attributes','findAll','stack','model','keys','like','catch','Pause','nolimit','../../components/parsers/qs','count','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','send','sequelize','fields','set','params','sendStatus','pick','order','role'];(function(_0x1969a1,_0x10f0eb){const _0x206b84=function(_0x349f31){while(--_0x349f31){_0x1969a1['push'](_0x1969a1['shift']());}};_0x206b84(++_0x10f0eb);}(a612_0x206b,0x138));const a612_0x349f=function(_0x1969a1,_0x10f0eb){_0x1969a1=_0x1969a1-0xf1;let _0x206b84=a612_0x206b[_0x1969a1];return _0x206b84;};const a612_0x53cd9f=a612_0x349f;'use strict';const _=require(a612_0x53cd9f(0x119)),qs=require(a612_0x53cd9f(0x12d)),logger=require(a612_0x53cd9f(0x102))(a612_0x53cd9f(0xfe)),{db}=require('../../mysqldb'),{Op}=require(a612_0x53cd9f(0xf1));function respondWithResult(_0x528d63,_0x5aa66b){return _0x5aa66b=_0x5aa66b||0xc8,function(_0x6758b5){const _0x505abe=a612_0x349f;if(_0x6758b5)return _0x528d63[_0x505abe(0x113)](_0x5aa66b)[_0x505abe(0x107)](_0x6758b5);};}function respondWithFilteredResult(_0x4cda04,_0x1f89c3){return function(_0x27021a){const _0x58ca99=a612_0x349f;if(_0x27021a){const _0x253d69=_0x27021a['count'],_0x334119=_0x1f89c3['offset'];let _0x513a10=_0x1f89c3[_0x58ca99(0x10b)]+_0x1f89c3[_0x58ca99(0x10a)],_0x1a92e0;return _0x513a10>=_0x253d69?(_0x513a10=_0x253d69,_0x1a92e0=0xc8):_0x1a92e0=0xce,_0x4cda04[_0x58ca99(0x113)](_0x1a92e0),_0x4cda04[_0x58ca99(0xf3)](_0x58ca99(0x120),_0x334119+'-'+_0x513a10+'/'+_0x253d69)[_0x58ca99(0x107)](_0x27021a);}return null;};}function saveUpdates(_0x231e38){return function(_0x5b67b2){const _0x5c5d9f=a612_0x349f;if(_0x5b67b2)return _0x5b67b2[_0x5c5d9f(0xfc)](_0x231e38)[_0x5c5d9f(0x11b)](function(_0x12ad0b){return _0x12ad0b;});return null;};}function removeEntity(_0x24fbef){return function(_0x1f8966){const _0x74a319=a612_0x349f;if(_0x1f8966)return _0x1f8966['destroy']()[_0x74a319(0x11b)](function(){const _0x405293=_0x74a319,_0x62dc74=_0x1f8966[_0x405293(0x117)]({'plain':!![]}),_0x1f4709='Pauses';return db[_0x405293(0x118)]['destroy']({'where':{'type':_0x1f4709,'resourceId':_0x62dc74['id']}})[_0x405293(0x11b)](function(){return _0x1f8966;});})[_0x74a319(0x11b)](function(){const _0x406710=_0x74a319;_0x24fbef[_0x406710(0x113)](0xcc)[_0x406710(0x10f)]();});};}function handleEntityNotFound(_0x241100){return function(_0x28f653){const _0x408ba6=a612_0x349f;return!_0x28f653&&_0x241100[_0x408ba6(0xf5)](0x194),_0x28f653;};}function handleError(_0x6188d9,_0x4e2198){return _0x4e2198=_0x4e2198||0x1f4,function(_0x358f07){const _0x3e0fee=a612_0x349f;logger[_0x3e0fee(0x11f)](_0x358f07[_0x3e0fee(0x126)]),_0x358f07[_0x3e0fee(0x11a)]&&delete _0x358f07[_0x3e0fee(0x11a)],_0x6188d9[_0x3e0fee(0x113)](_0x4e2198)[_0x3e0fee(0x130)](_0x358f07);};}exports[a612_0x53cd9f(0x106)]=function(_0x37cc59,_0x35592e){const _0x41fba8=a612_0x53cd9f;let _0x1ba992={};const _0x5153e1={},_0x7fd17d={'count':0x0,'rows':[]},_0x50772c=_[_0x41fba8(0x103)](db[_0x41fba8(0x12b)][_0x41fba8(0xfa)],function(_0x44302f){const _0x34c0bc=_0x41fba8;return{'name':_0x44302f[_0x34c0bc(0x110)],'type':_0x44302f[_0x34c0bc(0x115)][_0x34c0bc(0xfb)]};});_0x5153e1['model']=_[_0x41fba8(0x103)](_0x50772c,_0x41fba8(0x11a)),_0x5153e1[_0x41fba8(0x122)]=_[_0x41fba8(0x128)](_0x37cc59['query']),_0x5153e1[_0x41fba8(0xff)]=_[_0x41fba8(0x111)](_0x5153e1[_0x41fba8(0x127)],_0x5153e1['query']),_0x1ba992[_0x41fba8(0x124)]=_[_0x41fba8(0x111)](_0x5153e1[_0x41fba8(0x127)],qs['fields'](_0x37cc59[_0x41fba8(0x122)][_0x41fba8(0xf2)])),_0x1ba992[_0x41fba8(0x124)]=_0x1ba992[_0x41fba8(0x124)][_0x41fba8(0x109)]?_0x1ba992['attributes']:_0x5153e1[_0x41fba8(0x127)];typeof _0x37cc59[_0x41fba8(0x122)][_0x41fba8(0x12c)]===_0x41fba8(0x10c)&&(_0x1ba992[_0x41fba8(0x10a)]=qs[_0x41fba8(0x10a)](_0x37cc59[_0x41fba8(0x122)][_0x41fba8(0x10a)]),_0x1ba992['offset']=qs[_0x41fba8(0x10b)](_0x37cc59[_0x41fba8(0x122)][_0x41fba8(0x10b)]));_0x1ba992[_0x41fba8(0xf7)]=qs['sort'](_0x37cc59[_0x41fba8(0x122)][_0x41fba8(0xf9)]),_0x1ba992[_0x41fba8(0x11e)]=qs[_0x41fba8(0xff)](_[_0x41fba8(0xf6)](_0x37cc59[_0x41fba8(0x122)],_0x5153e1[_0x41fba8(0xff)]),_0x50772c);_0x37cc59[_0x41fba8(0x122)][_0x41fba8(0x104)]&&(_0x1ba992['where']=_[_0x41fba8(0x10e)](_0x1ba992['where'],{[Op['or']]:_[_0x41fba8(0x103)](_0x50772c,function(_0x1b093a){const _0x24a35c=_0x41fba8;if(_0x1b093a[_0x24a35c(0x115)]!==_0x24a35c(0x10d)){const _0x9258e9={};return _0x9258e9[_0x1b093a[_0x24a35c(0x11a)]]={[Op[_0x24a35c(0x129)]]:'%'+_0x37cc59['query'][_0x24a35c(0x104)]+'%'},_0x9258e9;}})}));_0x1ba992=_[_0x41fba8(0x10e)]({},_0x1ba992,_0x37cc59[_0x41fba8(0x11c)]);const _0x559ee9={'where':_0x1ba992[_0x41fba8(0x11e)]};return db[_0x41fba8(0x12b)][_0x41fba8(0x12e)](_0x559ee9)['then'](function(_0x3bb59f){const _0x380951=_0x41fba8;return _0x7fd17d[_0x380951(0x12e)]=_0x3bb59f,_0x37cc59[_0x380951(0x122)]['includeAll']&&(_0x1ba992[_0x380951(0x100)]=[{'all':!![]}]),db[_0x380951(0x12b)][_0x380951(0x125)](_0x1ba992);})['then'](function(_0x177bf4){const _0x58055c=_0x41fba8;return _0x7fd17d[_0x58055c(0x112)]=_0x177bf4,_0x7fd17d;})['then'](respondWithFilteredResult(_0x35592e,_0x1ba992))['catch'](handleError(_0x35592e,null));},exports[a612_0x53cd9f(0x116)]=function(_0x3c2903,_0x2967a6){const _0x4f6488=a612_0x53cd9f;let _0x44fe7e={'raw':!![],'where':{'id':_0x3c2903[_0x4f6488(0xf4)]['id']}};const _0xd881d7={};return _0xd881d7[_0x4f6488(0x127)]=_[_0x4f6488(0x128)](db[_0x4f6488(0x12b)][_0x4f6488(0xfa)]),_0xd881d7[_0x4f6488(0x122)]=_[_0x4f6488(0x128)](_0x3c2903[_0x4f6488(0x122)]),_0xd881d7[_0x4f6488(0xff)]=_[_0x4f6488(0x111)](_0xd881d7[_0x4f6488(0x127)],_0xd881d7[_0x4f6488(0x122)]),_0x44fe7e[_0x4f6488(0x124)]=_[_0x4f6488(0x111)](_0xd881d7[_0x4f6488(0x127)],qs['fields'](_0x3c2903[_0x4f6488(0x122)][_0x4f6488(0xf2)])),_0x44fe7e[_0x4f6488(0x124)]=_0x44fe7e[_0x4f6488(0x124)]['length']?_0x44fe7e['attributes']:_0xd881d7[_0x4f6488(0x127)],_0x3c2903[_0x4f6488(0x122)][_0x4f6488(0xfd)]&&(_0x44fe7e[_0x4f6488(0x100)]=[{'all':!![]}]),_0x44fe7e=_[_0x4f6488(0x10e)]({},_0x44fe7e,_0x3c2903['options']),db[_0x4f6488(0x12b)][_0x4f6488(0x101)](_0x44fe7e)[_0x4f6488(0x11b)](handleEntityNotFound(_0x2967a6,null))[_0x4f6488(0x11b)](respondWithResult(_0x2967a6,null))[_0x4f6488(0x12a)](handleError(_0x2967a6,null));},exports[a612_0x53cd9f(0x123)]=function(_0x5e640e,_0x516208){const _0x474aea=a612_0x53cd9f;return db[_0x474aea(0x12b)][_0x474aea(0x123)](_0x5e640e[_0x474aea(0x114)],{})[_0x474aea(0x11b)](function(_0x2cd6af){const _0x50ffbb=_0x474aea,_0x18bb34=_0x5e640e[_0x50ffbb(0x121)][_0x50ffbb(0x117)]({'plain':!![]});if(!_0x18bb34)throw new Error(_0x50ffbb(0x11d));if(_0x18bb34[_0x50ffbb(0xf8)]==='user'){const _0x4d39af=_0x2cd6af[_0x50ffbb(0x117)]({'plain':!![]}),_0x32ef0c=_0x50ffbb(0x105);return db[_0x50ffbb(0x108)]['findOne']({'where':{'name':_0x32ef0c,'userProfileId':_0x18bb34['userProfileId']},'raw':!![]})[_0x50ffbb(0x11b)](function(_0x519ccd){const _0x2e32f4=_0x50ffbb;return _0x519ccd&&_0x519ccd['autoAssociation']===0x0?db[_0x2e32f4(0x118)][_0x2e32f4(0x123)]({'name':_0x4d39af[_0x2e32f4(0x11a)],'resourceId':_0x4d39af['id'],'type':_0x519ccd[_0x2e32f4(0x11a)],'sectionId':_0x519ccd['id']},{})['then'](function(){return _0x2cd6af;}):_0x2cd6af;})[_0x50ffbb(0x12a)](function(_0x46b5b3){const _0x5a06ea=_0x50ffbb;logger[_0x5a06ea(0x11f)](_0x5a06ea(0x12f),_0x46b5b3);throw _0x46b5b3;});}return _0x2cd6af;})[_0x474aea(0x11b)](respondWithResult(_0x516208,0xc9))[_0x474aea(0x12a)](handleError(_0x516208,null));},exports[a612_0x53cd9f(0xfc)]=function(_0x2d6aef,_0x442375){const _0x4bb0f7=a612_0x53cd9f;return _0x2d6aef[_0x4bb0f7(0x114)]['id']&&delete _0x2d6aef['body']['id'],db[_0x4bb0f7(0x12b)][_0x4bb0f7(0x101)]({'where':{'id':_0x2d6aef['params']['id']}})[_0x4bb0f7(0x11b)](handleEntityNotFound(_0x442375,null))['then'](saveUpdates(_0x2d6aef['body'],null))[_0x4bb0f7(0x11b)](respondWithResult(_0x442375,null))[_0x4bb0f7(0x12a)](handleError(_0x442375,null));},exports['destroy']=function(_0x253fa8,_0x59a111){const _0x3040d1=a612_0x53cd9f;return db['Pause'][_0x3040d1(0x101)]({'where':{'id':_0x253fa8[_0x3040d1(0xf4)]['id']}})[_0x3040d1(0x11b)](handleEntityNotFound(_0x59a111,null))[_0x3040d1(0x11b)](removeEntity(_0x59a111,null))[_0x3040d1(0x12a)](handleError(_0x59a111,null));}; \ No newline at end of file diff --git a/server/api/pause/pause.model.js b/server/api/pause/pause.model.js index 4b15f83..98297b6 100644 --- a/server/api/pause/pause.model.js +++ b/server/api/pause/pause.model.js @@ -1 +1 @@ -const a511_0x5190=['./pause.attributes','tools_pauses','Pause'];(function(_0x19abf8,_0x519077){const _0x1f78fd=function(_0x1511b8){while(--_0x1511b8){_0x19abf8['push'](_0x19abf8['shift']());}};_0x1f78fd(++_0x519077);}(a511_0x5190,0x154));const a511_0x1f78=function(_0x19abf8,_0x519077){_0x19abf8=_0x19abf8-0x0;let _0x1f78fd=a511_0x5190[_0x19abf8];return _0x1f78fd;};const _0x2f20a2=a511_0x1f78;'use strict';const attributes=require(_0x2f20a2('0x2'));module['exports']=function(_0x1511b8){const _0x2fbd0f=_0x2f20a2,_0x447a5a=_0x1511b8['define'](_0x2fbd0f('0x1'),attributes,{'tableName':_0x2fbd0f('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x447a5a;}; \ No newline at end of file +const a613_0x3610=['function','sequelize','./pause.options','init','./pause.attributes'];(function(_0x34ecbf,_0x6a36c4){const _0x3610e0=function(_0x13c8eb){while(--_0x13c8eb){_0x34ecbf['push'](_0x34ecbf['shift']());}};_0x3610e0(++_0x6a36c4);}(a613_0x3610,0x8e));const a613_0x13c8=function(_0x34ecbf,_0x6a36c4){_0x34ecbf=_0x34ecbf-0x126;let _0x3610e0=a613_0x3610[_0x34ecbf];return _0x3610e0;};const a613_0x40fd6c=a613_0x13c8;'use strict';const {Model}=require(a613_0x40fd6c(0x12a)),{attributes}=require(a613_0x40fd6c(0x128)),{options}=require(a613_0x40fd6c(0x126));class Pause extends Model{}function init(_0x3ac3fb,_0x2ae3db){const _0x19dbd2=a613_0x40fd6c,_0x25bb1d=options(_0x3ac3fb),_0x4ed210=typeof _0x2ae3db===_0x19dbd2(0x129)?_0x2ae3db(_0x25bb1d):_0x25bb1d;return Pause[_0x19dbd2(0x127)](attributes,_0x4ed210),Pause;}module['exports']['Pause']=Pause,module['exports']['init']=init; \ No newline at end of file diff --git a/server/api/pause/pause.options.js b/server/api/pause/pause.options.js new file mode 100644 index 0000000..21bc42e --- /dev/null +++ b/server/api/pause/pause.options.js @@ -0,0 +1 @@ +var a614_0x3300=['exports','options'];(function(_0x35da57,_0x3a4a51){var _0x3300db=function(_0xdcc68c){while(--_0xdcc68c){_0x35da57['push'](_0x35da57['shift']());}};_0x3300db(++_0x3a4a51);}(a614_0x3300,0x1d1));var a614_0xdcc6=function(_0x35da57,_0x3a4a51){_0x35da57=_0x35da57-0x17b;var _0x3300db=a614_0x3300[_0x35da57];return _0x3300db;};var a614_0x58312a=a614_0xdcc6;function options(_0x4f1e0a){return{'sequelize':_0x4f1e0a,'tableName':'tools_pauses','paranoid':![],'indexes':[],'timestamps':!![]};}module[a614_0x58312a(0x17c)][a614_0x58312a(0x17b)]=options; \ No newline at end of file diff --git a/server/api/pause/pause.rpc.js b/server/api/pause/pause.rpc.js index cc008e3..791b4f3 100644 --- a/server/api/pause/pause.rpc.js +++ b/server/api/pause/pause.rpc.js @@ -1 +1 @@ -const a512_0x3315=['message','error','findOne','lodash','options','include','stringify','ShowPause','debug','../../config/logger','attributes','rpc','then','model','info','Pause','where'];(function(_0x137ee8,_0x331574){const _0x3b9f0a=function(_0x3eebe3){while(--_0x3eebe3){_0x137ee8['push'](_0x137ee8['shift']());}};_0x3b9f0a(++_0x331574);}(a512_0x3315,0xc8));const a512_0x3b9f=function(_0x137ee8,_0x331574){_0x137ee8=_0x137ee8-0x0;let _0x3b9f0a=a512_0x3315[_0x137ee8];return _0x3b9f0a;};const _0x236d70=a512_0x3b9f;'use strict';const db=require('../../mysqldb')['db'],logger=require(_0x236d70('0xd'))(_0x236d70('0xf')),_=require(_0x236d70('0x7'));exports[_0x236d70('0xb')]=function(_0x3eebe3){const _0x15236e=this;return new Promise(function(_0x445612,_0x1f4a68){const _0x490325=a512_0x3b9f;return db[_0x490325('0x2')][_0x490325('0x6')]({'raw':_0x3eebe3[_0x490325('0x8')]?_0x3eebe3['options']['raw']===undefined?!![]:![]:!![],'where':_0x3eebe3[_0x490325('0x8')]?_0x3eebe3[_0x490325('0x8')][_0x490325('0x3')]||null:null,'attributes':_0x3eebe3[_0x490325('0x8')]?_0x3eebe3[_0x490325('0x8')][_0x490325('0xe')]||null:null,'include':_0x3eebe3['options']?_0x3eebe3[_0x490325('0x8')]['include']?_['map'](_0x3eebe3['options'][_0x490325('0x9')],function(_0x438ab5){const _0x1365f1=_0x490325;return{'model':db[_0x438ab5[_0x1365f1('0x0')]],'as':_0x438ab5['as'],'attributes':_0x438ab5[_0x1365f1('0xe')],'include':_0x438ab5[_0x1365f1('0x9')]?_['map'](_0x438ab5[_0x1365f1('0x9')],function(_0x38d9b1){const _0x44d757=_0x1365f1;return{'model':db[_0x38d9b1['model']],'as':_0x38d9b1['as'],'attributes':_0x38d9b1['attributes'],'include':_0x38d9b1[_0x44d757('0x9')]?_['map'](_0x38d9b1[_0x44d757('0x9')],function(_0x39235b){const _0x345009=_0x44d757;return{'model':db[_0x39235b[_0x345009('0x0')]],'as':_0x39235b['as'],'attributes':_0x39235b[_0x345009('0xe')]};}):[]};}):[]};}):[]:[]})[_0x490325('0x10')](function(_0xd55ac4){const _0x13aa83=_0x490325;logger[_0x13aa83('0x1')]('ShowPause',_0x3eebe3),logger[_0x13aa83('0xc')](_0x13aa83('0xb'),_0x3eebe3,JSON[_0x13aa83('0xa')](_0xd55ac4)),_0x445612(_0xd55ac4);})['catch'](function(_0x4f1736){const _0x14238d=_0x490325;logger[_0x14238d('0x5')](_0x14238d('0xb'),_0x4f1736['message'],_0x3eebe3),_0x1f4a68(_0x15236e[_0x14238d('0x5')](0x1f4,_0x4f1736[_0x14238d('0x4')]));});});}; \ No newline at end of file +const a615_0xe088=['findOne','then','ShowPause','where','model','map','debug','Pause','rpc','catch','include','attributes','error','lodash','options','stringify','message','info'];(function(_0x587aaf,_0x11a2a1){const _0xe08810=function(_0xeff4fe){while(--_0xeff4fe){_0x587aaf['push'](_0x587aaf['shift']());}};_0xe08810(++_0x11a2a1);}(a615_0xe088,0xb8));const a615_0xeff4=function(_0x587aaf,_0x11a2a1){_0x587aaf=_0x587aaf-0x107;let _0xe08810=a615_0xe088[_0x587aaf];return _0xe08810;};const a615_0x18fb38=a615_0xeff4;'use strict';const db=require('../../mysqldb')['db'],logger=require('../../config/logger')(a615_0x18fb38(0x10b)),_=require(a615_0x18fb38(0x110));exports[a615_0x18fb38(0x117)]=function(_0x483549){const _0x33c09a=this;return new Promise(function(_0x3c29bb,_0x311737){const _0x81be6c=a615_0xeff4;return db[_0x81be6c(0x10a)][_0x81be6c(0x115)]({'raw':_0x483549['options']?_0x483549[_0x81be6c(0x111)]['raw']===undefined?!![]:![]:!![],'where':_0x483549[_0x81be6c(0x111)]?_0x483549['options'][_0x81be6c(0x118)]||null:null,'attributes':_0x483549['options']?_0x483549[_0x81be6c(0x111)][_0x81be6c(0x10e)]||null:null,'include':_0x483549['options']?_0x483549[_0x81be6c(0x111)][_0x81be6c(0x10d)]?_[_0x81be6c(0x108)](_0x483549[_0x81be6c(0x111)][_0x81be6c(0x10d)],function(_0x5f240a){const _0x165b66=_0x81be6c;return{'model':db[_0x5f240a[_0x165b66(0x107)]],'as':_0x5f240a['as'],'attributes':_0x5f240a[_0x165b66(0x10e)],'include':_0x5f240a[_0x165b66(0x10d)]?_[_0x165b66(0x108)](_0x5f240a['include'],function(_0x3124ba){const _0x1e8ad9=_0x165b66;return{'model':db[_0x3124ba[_0x1e8ad9(0x107)]],'as':_0x3124ba['as'],'attributes':_0x3124ba[_0x1e8ad9(0x10e)],'include':_0x3124ba[_0x1e8ad9(0x10d)]?_[_0x1e8ad9(0x108)](_0x3124ba[_0x1e8ad9(0x10d)],function(_0x2fcac3){const _0xa19dfc=_0x1e8ad9;return{'model':db[_0x2fcac3[_0xa19dfc(0x107)]],'as':_0x2fcac3['as'],'attributes':_0x2fcac3['attributes']};}):[]};}):[]};}):[]:[]})[_0x81be6c(0x116)](function(_0x6829a5){const _0x4ee2c6=_0x81be6c;logger[_0x4ee2c6(0x114)]('ShowPause',_0x483549),logger[_0x4ee2c6(0x109)](_0x4ee2c6(0x117),_0x483549,JSON[_0x4ee2c6(0x112)](_0x6829a5)),_0x3c29bb(_0x6829a5);})[_0x81be6c(0x10c)](function(_0x45bdf1){const _0x2ed348=_0x81be6c;logger[_0x2ed348(0x10f)](_0x2ed348(0x117),_0x45bdf1[_0x2ed348(0x113)],_0x483549),_0x311737(_0x33c09a[_0x2ed348(0x10f)](0x1f4,_0x45bdf1['message']));});});}; \ No newline at end of file diff --git a/server/api/plugin/index.js b/server/api/plugin/index.js index 04e2f4c..2644809 100644 --- a/server/api/plugin/index.js +++ b/server/api/plugin/index.js @@ -1 +1 @@ -const a513_0x21fc=['delete','originalname','express','replace','isAuthenticated','files/plugins','../../components/auth/service','diskStorage','put','file','basename','%s-%s%s','join','index','exports','./plugin.controller','post','../../config/environment','get','root','show','path','upload','now','download','/webhook','/:id','format','webhookPost','multer','extname'];(function(_0x345063,_0x21fccc){const _0x5d5f36=function(_0x5e7f1a){while(--_0x5e7f1a){_0x345063['push'](_0x345063['shift']());}};_0x5d5f36(++_0x21fccc);}(a513_0x21fc,0x1c7));const a513_0x5d5f=function(_0x345063,_0x21fccc){_0x345063=_0x345063-0x0;let _0x5d5f36=a513_0x21fc[_0x345063];return _0x5d5f36;};const _0x3ca864=a513_0x5d5f;'use strict';const multer=require(_0x3ca864('0x8')),util=require('util'),path=require(_0x3ca864('0x0')),express=require(_0x3ca864('0xc')),router=express['Router'](),auth=require(_0x3ca864('0x10')),config=require(_0x3ca864('0x1b')),controller=require(_0x3ca864('0x19'));router['get']('/',auth[_0x3ca864('0xe')](),controller[_0x3ca864('0x17')]),router['get'](_0x3ca864('0x4'),controller['webhookGet']),router[_0x3ca864('0x1c')](_0x3ca864('0x5'),auth[_0x3ca864('0xe')](),controller[_0x3ca864('0x1e')]),router[_0x3ca864('0x1c')]('/:id/download',auth[_0x3ca864('0xe')](),controller[_0x3ca864('0x3')]);const upload=multer({'storage':multer[_0x3ca864('0x11')]({'destination':function(_0x5e7f1a,_0x5ade60,_0x40bcbb){const _0x2d8e07=_0x3ca864;_0x40bcbb(null,path[_0x2d8e07('0x16')](config[_0x2d8e07('0x1d')],_0x2d8e07('0xf')));},'filename':function(_0x57ea98,_0x5e6980,_0x4aa659){const _0x397b8e=_0x3ca864;_0x5e6980[_0x397b8e('0xb')]=_0x5e6980[_0x397b8e('0xb')][_0x397b8e('0xd')](/[+@&/\\#,+()$~%'":*?<>{}\s\\|]/g,'-'),_0x4aa659(null,util[_0x397b8e('0x6')](_0x397b8e('0x15'),path[_0x397b8e('0x14')](_0x5e6980[_0x397b8e('0xb')],path[_0x397b8e('0x9')](_0x5e6980[_0x397b8e('0xb')])),Date[_0x397b8e('0x2')](),path['extname'](_0x5e6980[_0x397b8e('0xb')])));}})});router['post']('/',upload['single'](_0x3ca864('0x13')),controller[_0x3ca864('0x1')]),router[_0x3ca864('0x1a')](_0x3ca864('0x4'),controller[_0x3ca864('0x7')]),router[_0x3ca864('0x12')](_0x3ca864('0x5'),auth['isAuthenticated'](),controller['update']),router[_0x3ca864('0xa')]('/:id',auth[_0x3ca864('0xe')](),controller[_0x3ca864('0xa')]),module[_0x3ca864('0x18')]=router; \ No newline at end of file +const a616_0x5e18=['isAuthenticated','show','diskStorage','now','get','../../components/auth/service','/webhook','files/plugins','update','./plugin.controller','originalname','post','multer','download','root','join','extname','%s-%s%s','format','file','single','/:id','path','../../config/environment','delete','basename','put','util','index'];(function(_0x5e3d42,_0x5f55a7){const _0x5e18b2=function(_0xdd5394){while(--_0xdd5394){_0x5e3d42['push'](_0x5e3d42['shift']());}};_0x5e18b2(++_0x5f55a7);}(a616_0x5e18,0x152));const a616_0xdd53=function(_0x5e3d42,_0x5f55a7){_0x5e3d42=_0x5e3d42-0x1ab;let _0x5e18b2=a616_0x5e18[_0x5e3d42];return _0x5e18b2;};const a616_0x473fd5=a616_0xdd53;'use strict';const multer=require(a616_0x473fd5(0x1c1)),util=require(a616_0x473fd5(0x1b3)),path=require(a616_0x473fd5(0x1ae)),express=require('express'),router=express['Router'](),auth=require(a616_0x473fd5(0x1ba)),config=require(a616_0x473fd5(0x1af)),controller=require(a616_0x473fd5(0x1be));router[a616_0x473fd5(0x1b9)]('/',auth[a616_0x473fd5(0x1b5)](),controller[a616_0x473fd5(0x1b4)]),router['get'](a616_0x473fd5(0x1bb),controller['webhookGet']),router[a616_0x473fd5(0x1b9)](a616_0x473fd5(0x1ad),auth['isAuthenticated'](),controller[a616_0x473fd5(0x1b6)]),router['get']('/:id/download',auth[a616_0x473fd5(0x1b5)](),controller[a616_0x473fd5(0x1c2)]);const upload=multer({'storage':multer[a616_0x473fd5(0x1b7)]({'destination':function(_0x1e6fa2,_0x2c3d18,_0x48ece4){const _0x11fdde=a616_0x473fd5;_0x48ece4(null,path[_0x11fdde(0x1c4)](config[_0x11fdde(0x1c3)],_0x11fdde(0x1bc)));},'filename':function(_0x345b83,_0x9c9400,_0x35cee5){const _0x8e34da=a616_0x473fd5;_0x9c9400['originalname']=_0x9c9400[_0x8e34da(0x1bf)]['replace'](/[+@&/\\#,+()$~%'":*?<>{}\s\\|]/g,'-'),_0x35cee5(null,util[_0x8e34da(0x1c7)](_0x8e34da(0x1c6),path[_0x8e34da(0x1b1)](_0x9c9400[_0x8e34da(0x1bf)],path[_0x8e34da(0x1c5)](_0x9c9400['originalname'])),Date[_0x8e34da(0x1b8)](),path['extname'](_0x9c9400[_0x8e34da(0x1bf)])));}})});router[a616_0x473fd5(0x1c0)]('/',upload[a616_0x473fd5(0x1ac)](a616_0x473fd5(0x1ab)),controller['upload']),router[a616_0x473fd5(0x1c0)]('/webhook',controller['webhookPost']),router[a616_0x473fd5(0x1b2)]('/:id',auth[a616_0x473fd5(0x1b5)](),controller[a616_0x473fd5(0x1bd)]),router[a616_0x473fd5(0x1b0)](a616_0x473fd5(0x1ad),auth[a616_0x473fd5(0x1b5)](),controller[a616_0x473fd5(0x1b0)]),module['exports']=router; \ No newline at end of file diff --git a/server/api/plugin/plugin.attributes.js b/server/api/plugin/plugin.attributes.js index df3b7d9..267a37c 100644 --- a/server/api/plugin/plugin.attributes.js +++ b/server/api/plugin/plugin.attributes.js @@ -1 +1 @@ -const a514_0x3364=['adminOnly','ENUM','agentOnly','BOOLEAN','TEXT','STRING','Indicates\x20whether\x20the\x20plugin\x20is\x20installed.\x20Updated\x20when\x20the\x20plugin\x20is\x20installed/uninstalled.','always','sequelize','never','The\x20physical\x20path\x20where\x20the\x20plugin\x20is\x20stored.'];(function(_0x3158f7,_0x336474){const _0x1ef813=function(_0x200d10){while(--_0x200d10){_0x3158f7['push'](_0x3158f7['shift']());}};_0x1ef813(++_0x336474);}(a514_0x3364,0x8f));const a514_0x1ef8=function(_0x3158f7,_0x336474){_0x3158f7=_0x3158f7-0x0;let _0x1ef813=a514_0x3364[_0x3158f7];return _0x1ef813;};const _0x49f07d=a514_0x1ef8;'use strict';const Sequelize=require(_0x49f07d('0x8'));module['exports']={'name':{'type':Sequelize[_0x49f07d('0x5')]},'type':{'type':Sequelize[_0x49f07d('0x1')]('html','script')},'description':{'type':Sequelize['TEXT']},'version':{'type':Sequelize[_0x49f07d('0x4')]},'path':{'type':Sequelize['STRING'],'comment':_0x49f07d('0xa')},'active':{'type':Sequelize[_0x49f07d('0x3')],'defaultValue':0x0,'comment':_0x49f07d('0x6')},'sidebar':{'type':Sequelize[_0x49f07d('0x1')](_0x49f07d('0x0'),_0x49f07d('0x2'),'always',_0x49f07d('0x9')),'defaultValue':_0x49f07d('0x7'),'comment':'Indicates\x20whether\x20to\x20display\x20the\x20plugin\x20in\x20the\x20sidebar.'},'icon':{'type':Sequelize['STRING']},'adminUrl':{'type':Sequelize['STRING']},'agentUrl':{'type':Sequelize['STRING']},'scriptName':{'type':Sequelize[_0x49f07d('0x5')]},'scriptPath':{'type':Sequelize[_0x49f07d('0x5')]}}; \ No newline at end of file +const a617_0x1988=['html','never','attributes','BOOLEAN','always','STRING','ENUM','sequelize','TEXT','Indicates\x20whether\x20the\x20plugin\x20is\x20installed.\x20Updated\x20when\x20the\x20plugin\x20is\x20installed/uninstalled.','The\x20physical\x20path\x20where\x20the\x20plugin\x20is\x20stored.','adminOnly'];(function(_0x1fda2e,_0x2547fe){const _0x1988e0=function(_0x2f21f5){while(--_0x2f21f5){_0x1fda2e['push'](_0x1fda2e['shift']());}};_0x1988e0(++_0x2547fe);}(a617_0x1988,0xc9));const a617_0x2f21=function(_0x1fda2e,_0x2547fe){_0x1fda2e=_0x1fda2e-0xc2;let _0x1988e0=a617_0x1988[_0x1fda2e];return _0x1988e0;};const a617_0x29a9c0=a617_0x2f21;'use strict';const {DataTypes}=require(a617_0x29a9c0(0xcc)),attributes={'name':{'type':DataTypes[a617_0x29a9c0(0xca)]},'type':{'type':DataTypes[a617_0x29a9c0(0xcb)](a617_0x29a9c0(0xc5),'script')},'description':{'type':DataTypes[a617_0x29a9c0(0xcd)]},'version':{'type':DataTypes[a617_0x29a9c0(0xcd)]},'path':{'type':DataTypes[a617_0x29a9c0(0xca)],'comment':a617_0x29a9c0(0xc3)},'active':{'type':DataTypes[a617_0x29a9c0(0xc8)],'defaultValue':0x0,'comment':a617_0x29a9c0(0xc2)},'sidebar':{'type':DataTypes[a617_0x29a9c0(0xcb)](a617_0x29a9c0(0xc4),'agentOnly',a617_0x29a9c0(0xc9),a617_0x29a9c0(0xc6)),'defaultValue':a617_0x29a9c0(0xc9),'comment':'Indicates\x20whether\x20to\x20display\x20the\x20plugin\x20in\x20the\x20sidebar.'},'icon':{'type':DataTypes[a617_0x29a9c0(0xca)]},'adminUrl':{'type':DataTypes[a617_0x29a9c0(0xca)]},'agentUrl':{'type':DataTypes[a617_0x29a9c0(0xca)]},'scriptName':{'type':DataTypes[a617_0x29a9c0(0xca)]},'scriptPath':{'type':DataTypes[a617_0x29a9c0(0xca)]}};module['exports'][a617_0x29a9c0(0xc7)]=attributes; \ No newline at end of file diff --git a/server/api/plugin/plugin.controller.js b/server/api/plugin/plugin.controller.js index 48f77e7..3d671e9 100644 --- a/server/api/plugin/plugin.controller.js +++ b/server/api/plugin/plugin.controller.js @@ -1 +1 @@ -const a515_0x57d0=['Invalid\x20manifest:\x20script\x20path\x20missing','Sequelize','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','../../mysqldb','hostname','\x27PATH\x27\x20parameter\x20not\x20specified','%s%s','headers','catch','UserProfileSection','length','get','rimraf','statusCode','parameters','like','0777','sequelize','create','admin','chmodSync','role','test','sendStatus','json','./plugin.socket','rawAttributes','Plugins','status','format','body','script','Error\x20while\x20generating\x20the\x20zip\x20archive','filename','findOne','count','../../config/logger','agent','user','basename','sidebar','end','version','type','filters','files/plugins','endsWith','query','Invalid\x20manifest:\x20invalid\x20type','Invalid\x20plugin\x20structure','fieldName','readdirSync','sort','views','extname','register','options','info','then','join','some','content-length','Invalid\x20manifest:\x20parameters\x20missing','Zip\x20archive\x20removed','download','http://localhost:','fields','attributes','path','code','root','autoAssociation','request-promise-native','plugins','always','update','Plugin','Invalid\x20manifest:\x20views\x20missing','html','api','resolve','file','glob','content-type','order','Warning:\x20admin\x20view\x20not\x20specified','pipe','UserProfileResource','icon-apps','../../config/environment','node_modules/**/*','error','key','send','filter','map','lstatSync','undefined','server/files/plugins','finalize','stack','rows','where','Plugin\x20not\x20found','model','VIRTUAL','keys','manifest.json','includeAll','readFileSync','util','close','scriptPath','icon','Plugin\x20upload\x20destination:\x20%s','isDirectory','destroy','Invalid\x20manifest:\x20no\x20view\x20specified','Extracted\x20folder\x20removed','scriptName','merge','webhookGet','offset','description','pick','ENOENT','Plugin\x20upload\x20filepath:\x20%s','attachments/**/*','name','upload','intersection','params','method','port','Error\x20while\x20downloading\x20the\x20plugin','encoding','Error','../../rediscache','Invalid\x20manifest:\x20type\x20missing','limit','\x27PORT\x27\x20parameter\x20not\x20specified'];(function(_0x2315df,_0x57d026){const _0x5b0031=function(_0x2beec4){while(--_0x2beec4){_0x2315df['push'](_0x2315df['shift']());}};_0x5b0031(++_0x57d026);}(a515_0x57d0,0x1db));const a515_0x5b00=function(_0x2315df,_0x57d026){_0x2315df=_0x2315df-0x0;let _0x5b0031=a515_0x57d0[_0x2315df];return _0x5b0031;};const _0x1e7157=a515_0x5b00;'use strict';const rp=require(_0x1e7157('0x14')),util=require(_0x1e7157('0x3a')),path=require(_0x1e7157('0x10')),fs=require('fs'),_=require('lodash'),extract=require('extract-zip'),rimraf=require(_0x1e7157('0x65')),archiver=require('archiver'),{getSocket}=require(_0x1e7157('0x55')),socket=getSocket(),qs=require('../../components/parsers/qs'),logger=require(_0x1e7157('0x7d'))(_0x1e7157('0x1b')),config=require(_0x1e7157('0x25')),db=require(_0x1e7157('0x5c'))['db'],{Op}=require(_0x1e7157('0x6a'));require(_0x1e7157('0x72'))[_0x1e7157('0x3')](socket);function respondWithStatusCode(_0x2beec4,_0x1f55b9){return _0x1f55b9=_0x1f55b9||0xcc,function(_0xa47ecb){const _0x2c5892=a515_0x5b00;if(_0xa47ecb)return _0x2beec4[_0x2c5892('0x70')](_0x1f55b9);return _0x2beec4[_0x2c5892('0x75')](_0x1f55b9)[_0x2c5892('0x82')]();};}function respondWithResult(_0x54f37d,_0x3114f5){return _0x3114f5=_0x3114f5||0xc8,function(_0x7d578a){const _0x1cb5ac=a515_0x5b00;if(_0x7d578a)return _0x54f37d[_0x1cb5ac('0x75')](_0x3114f5)[_0x1cb5ac('0x71')](_0x7d578a);};}function respondWithFilteredResult(_0x397fe4,_0x57e53f){return function(_0x19c85f){const _0x5ef02a=a515_0x5b00;if(_0x19c85f){const _0x374fb9=_0x19c85f[_0x5ef02a('0x7c')],_0x24138e=_0x57e53f['offset'];let _0x36eef4=_0x57e53f[_0x5ef02a('0x46')]+_0x57e53f[_0x5ef02a('0x57')],_0x1fe447;return _0x36eef4>=_0x374fb9?(_0x36eef4=_0x374fb9,_0x1fe447=0xc8):_0x1fe447=0xce,_0x397fe4[_0x5ef02a('0x75')](_0x1fe447),_0x397fe4['set']('Content-Range',_0x24138e+'-'+_0x36eef4+'/'+_0x374fb9)[_0x5ef02a('0x71')](_0x19c85f);}return null;};}function saveUpdates(_0x221840){return function(_0xcb1863){const _0x3a1bbf=a515_0x5b00;if(_0xcb1863)return _0xcb1863[_0x3a1bbf('0x17')](_0x221840)[_0x3a1bbf('0x6')](function(_0x93664b){return _0x93664b;});return null;};}function handleEntityNotFound(_0x5cc80b){return function(_0x18f39b){const _0x4a3c42=a515_0x5b00;return!_0x18f39b&&_0x5cc80b[_0x4a3c42('0x70')](0x194),_0x18f39b;};}function handleError(_0xc0c50e,_0x44b0bc){return _0x44b0bc=_0x44b0bc||0x1f4,function(_0x2bef9a){const _0x41aee2=a515_0x5b00;logger[_0x41aee2('0x27')](_0x2bef9a[_0x41aee2('0x30')]),_0x2bef9a[_0x41aee2('0x4c')]&&delete _0x2bef9a['name'],_0xc0c50e[_0x41aee2('0x75')](_0x44b0bc)[_0x41aee2('0x29')](_0x2bef9a);};}exports['index']=function(_0x3dd756,_0x4e896a){const _0xe794bd=_0x1e7157;let _0x39a39b={};const _0x3a9276={},_0xb4d59b={'count':0x0,'rows':[]},_0x1d89d1=_['map'](db['Plugin'][_0xe794bd('0x73')],function(_0x1c7972){const _0x292de6=_0xe794bd;return{'name':_0x1c7972[_0x292de6('0x8b')],'type':_0x1c7972[_0x292de6('0x84')][_0x292de6('0x28')]};});_0x3a9276[_0xe794bd('0x34')]=_[_0xe794bd('0x2b')](_0x1d89d1,_0xe794bd('0x4c')),_0x3a9276[_0xe794bd('0x88')]=_[_0xe794bd('0x36')](_0x3dd756[_0xe794bd('0x88')]),_0x3a9276[_0xe794bd('0x85')]=_[_0xe794bd('0x4e')](_0x3a9276[_0xe794bd('0x34')],_0x3a9276[_0xe794bd('0x88')]),_0x39a39b['attributes']=_['intersection'](_0x3a9276['model'],qs[_0xe794bd('0xe')](_0x3dd756[_0xe794bd('0x88')][_0xe794bd('0xe')])),_0x39a39b['attributes']=_0x39a39b[_0xe794bd('0xf')][_0xe794bd('0x63')]?_0x39a39b[_0xe794bd('0xf')]:_0x3a9276[_0xe794bd('0x34')];typeof _0x3dd756[_0xe794bd('0x88')]['nolimit']==='undefined'&&(_0x39a39b['limit']=qs['limit'](_0x3dd756[_0xe794bd('0x88')][_0xe794bd('0x57')]),_0x39a39b[_0xe794bd('0x46')]=qs[_0xe794bd('0x46')](_0x3dd756[_0xe794bd('0x88')][_0xe794bd('0x46')]));_0x39a39b[_0xe794bd('0x20')]=qs['sort'](_0x3dd756[_0xe794bd('0x88')][_0xe794bd('0x0')]),_0x39a39b[_0xe794bd('0x32')]=qs['filters'](_[_0xe794bd('0x48')](_0x3dd756[_0xe794bd('0x88')],_0x3a9276[_0xe794bd('0x85')]),_0x1d89d1);_0x3dd756['query'][_0xe794bd('0x2a')]&&(_0x39a39b[_0xe794bd('0x32')]=_['merge'](_0x39a39b[_0xe794bd('0x32')],{[Op['or']]:_[_0xe794bd('0x2b')](_0x1d89d1,function(_0x218f7f){const _0x3791c7=_0xe794bd;if(_0x218f7f['type']!==_0x3791c7('0x35')){const _0x3030bb={};return _0x3030bb[_0x218f7f[_0x3791c7('0x4c')]]={[Op[_0x3791c7('0x68')]]:'%'+_0x3dd756[_0x3791c7('0x88')][_0x3791c7('0x2a')]+'%'},_0x3030bb;}})}));_0x39a39b=_[_0xe794bd('0x44')]({},_0x39a39b,_0x3dd756[_0xe794bd('0x4')]);const _0x2fa3c7={'where':_0x39a39b[_0xe794bd('0x32')]};return db['Plugin'][_0xe794bd('0x7c')](_0x2fa3c7)['then'](function(_0x421e30){const _0x213767=_0xe794bd;return _0xb4d59b['count']=_0x421e30,_0x3dd756[_0x213767('0x88')][_0x213767('0x38')]&&(_0x39a39b['include']=[{'all':!![]}]),db[_0x213767('0x18')]['findAll'](_0x39a39b);})[_0xe794bd('0x6')](function(_0x47230c){const _0x3d8a30=_0xe794bd;return _0xb4d59b[_0x3d8a30('0x31')]=_0x47230c,_0xb4d59b;})[_0xe794bd('0x6')](respondWithFilteredResult(_0x4e896a,_0x39a39b))[_0xe794bd('0x61')](handleError(_0x4e896a,null));},exports['show']=function(_0x1330b2,_0x318171){const _0x356322=_0x1e7157;let _0xef1b8a={'raw':!![],'where':{'id':_0x1330b2['params']['id']}};const _0x186701={};return _0x186701[_0x356322('0x34')]=_[_0x356322('0x36')](db[_0x356322('0x18')][_0x356322('0x73')]),_0x186701[_0x356322('0x88')]=_[_0x356322('0x36')](_0x1330b2[_0x356322('0x88')]),_0x186701['filters']=_['intersection'](_0x186701[_0x356322('0x34')],_0x186701[_0x356322('0x88')]),_0xef1b8a[_0x356322('0xf')]=_[_0x356322('0x4e')](_0x186701[_0x356322('0x34')],qs['fields'](_0x1330b2[_0x356322('0x88')][_0x356322('0xe')])),_0xef1b8a['attributes']=_0xef1b8a[_0x356322('0xf')][_0x356322('0x63')]?_0xef1b8a['attributes']:_0x186701['model'],_0x1330b2[_0x356322('0x88')][_0x356322('0x38')]&&(_0xef1b8a['include']=[{'all':!![]}]),_0xef1b8a=_['merge']({},_0xef1b8a,_0x1330b2[_0x356322('0x4')]),db[_0x356322('0x18')][_0x356322('0x7b')](_0xef1b8a)[_0x356322('0x6')](handleEntityNotFound(_0x318171))['then'](respondWithResult(_0x318171,null))[_0x356322('0x61')](handleError(_0x318171,null));},exports[_0x1e7157('0xc')]=function(_0x38441e,_0x22fb7d){const _0x511d00=_0x1e7157;return db[_0x511d00('0x18')][_0x511d00('0x7b')]({'where':{'id':_0x38441e[_0x511d00('0x4f')]['id']},'attributes':['name',_0x511d00('0x10')],'raw':!![]})[_0x511d00('0x6')](handleEntityNotFound(_0x22fb7d))[_0x511d00('0x6')](function(_0x3b1f67){const _0xa64083=_0x511d00;if(_0x3b1f67){const _0x33f26c=path[_0xa64083('0x7')](config['root'],_0xa64083('0x2e'),util['format']('%s.zip',path['basename'](_0x3b1f67['path']))),_0x44466f=fs['createWriteStream'](_0x33f26c),_0x1b2562=archiver('zip',{'zlib':{'level':0x9}});_0x1b2562['on']('warning',function(_0x26a01a){const _0x44101b=_0xa64083;if(_0x26a01a[_0x44101b('0x11')]===_0x44101b('0x49'))logger['error'](_0x26a01a);else throw new db[(_0x44101b('0x5a'))][(_0x44101b('0x54'))](_0x44101b('0x79'));}),_0x1b2562['on'](_0xa64083('0x27'),function(){const _0x24afd2=_0xa64083;throw new db[(_0x24afd2('0x5a'))][(_0x24afd2('0x54'))](_0x24afd2('0x79'));}),_0x1b2562[_0xa64083('0x22')](_0x44466f),_0x1b2562[_0xa64083('0x1e')]('**/*',{'cwd':path['join'](config['root'],_0xa64083('0x2e'),path['dirname'](_0x3b1f67[_0xa64083('0x10')])),'ignore':[path['join'](path['basename'](_0x3b1f67[_0xa64083('0x10')]),_0xa64083('0x26')),path[_0xa64083('0x7')](path[_0xa64083('0x80')](_0x3b1f67[_0xa64083('0x10')]),_0xa64083('0x4b'))],'nodir':!![]})[_0xa64083('0x2f')](),_0x44466f['on'](_0xa64083('0x3b'),function(){const _0x1b077a=_0xa64083;if(!fs['existsSync'](_0x33f26c))throw new db[(_0x1b077a('0x5a'))][(_0x1b077a('0x54'))](_0x1b077a('0x33'));return _0x22fb7d['download'](_0x33f26c,util[_0x1b077a('0x76')]('%s.zip',path['basename'](_0x3b1f67[_0x1b077a('0x10')])),function(_0x72f9f7){const _0xf52890=_0x1b077a;if(_0x72f9f7)throw new db[(_0xf52890('0x5a'))][(_0xf52890('0x54'))](_0xf52890('0x52'));fs['unlinkSync'](_0x33f26c),logger['info']('Download\x20completed'),logger['info']('Temporary\x20file\x20removed');});});}return null;})[_0x511d00('0x61')](handleError(_0x22fb7d,null));},exports[_0x1e7157('0x4d')]=function(_0x47e798,_0x216dfb,_0x20ce0f){const _0x40bf3e=_0x1e7157,_0x296480=path['basename'](_0x47e798[_0x40bf3e('0x1d')][_0x40bf3e('0x7a')],path[_0x40bf3e('0x2')](_0x47e798[_0x40bf3e('0x1d')][_0x40bf3e('0x7a')])),_0x3f8544=path[_0x40bf3e('0x7')](config[_0x40bf3e('0x12')],_0x40bf3e('0x2e'),_0x47e798['file']['filename']),_0x6c514f=path[_0x40bf3e('0x7')](config['root'],_0x40bf3e('0x86'),_0x296480);logger[_0x40bf3e('0x5')](_0x40bf3e('0x4a'),_0x3f8544),logger['info'](_0x40bf3e('0x3e'),_0x6c514f);try{fs[_0x40bf3e('0x6d')](_0x3f8544,parseInt(_0x40bf3e('0x69'),0x8)),extract(_0x3f8544,{'dir':_0x6c514f},function(_0x5686ae){const _0x230ca4=_0x40bf3e;_0x5686ae&&(logger['error'](_0x5686ae),handleError(_0x5686ae,!![]));const _0x4fe4d6=fs[_0x230ca4('0x8c')](_0x6c514f);if(_0x4fe4d6[_0x230ca4('0x63')]>0x1)return removeReferences(_0x3f8544,_0x6c514f),logger[_0x230ca4('0x27')](_0x230ca4('0x8a')),_0x20ce0f(new Error(_0x230ca4('0x8a')));const _0x50a377=fs[_0x230ca4('0x2c')](path[_0x230ca4('0x7')](_0x6c514f,_0x4fe4d6[0x0]));if(_0x50a377['isFile']())return removeReferences(_0x3f8544,_0x6c514f),logger[_0x230ca4('0x27')](_0x230ca4('0x8a')),_0x20ce0f(new Error('Invalid\x20plugin\x20structure'));if(_0x50a377[_0x230ca4('0x3f')]()){const _0xace455=fs[_0x230ca4('0x8c')](path['join'](_0x6c514f,_0x4fe4d6[0x0]));if(_0xace455[_0x230ca4('0x63')]===0x0)return removeReferences(_0x3f8544,_0x6c514f),logger[_0x230ca4('0x27')](_0x230ca4('0x8a')),_0x20ce0f(new Error(_0x230ca4('0x8a')));const _0x3a5752=_0xace455[_0x230ca4('0x8')](function(_0x2ac9aa){const _0xcd2493=_0x230ca4;return _0x2ac9aa===_0xcd2493('0x37');});if(!_0x3a5752)return _0x20ce0f(new Error('Plugin\x20manifest\x20missing'));const _0x5b28c0=fs[_0x230ca4('0x39')](path[_0x230ca4('0x7')](_0x6c514f,_0x4fe4d6[0x0],_0x230ca4('0x37'))),_0x17bb47=JSON['parse'](_0x5b28c0);if('undefined'==typeof _0x17bb47[_0x230ca4('0x4c')])return _0x20ce0f(new Error('Invalid\x20manifest:\x20name\x20missing'));if(_0x230ca4('0x2d')==typeof _0x17bb47[_0x230ca4('0x84')])return _0x20ce0f(new Error(_0x230ca4('0x56')));if(_0x230ca4('0x2d')==typeof _0x17bb47['version'])return _0x20ce0f(new Error('Invalid\x20manifest:\x20version\x20not\x20specified'));if(_0x230ca4('0x2d')==typeof _0x17bb47[_0x230ca4('0x67')])return _0x20ce0f(new Error(_0x230ca4('0xa')));if(_0x17bb47['type']===_0x230ca4('0x1a')){if('undefined'==typeof _0x17bb47[_0x230ca4('0x67')][_0x230ca4('0x1')])return _0x20ce0f(new Error(_0x230ca4('0x19')));if(_0x230ca4('0x2d')==typeof _0x17bb47[_0x230ca4('0x67')][_0x230ca4('0x1')]['admin']&&_0x230ca4('0x2d')==typeof _0x17bb47['parameters'][_0x230ca4('0x1')][_0x230ca4('0x7e')])return _0x20ce0f(new Error(_0x230ca4('0x41')));}else{if(_0x17bb47[_0x230ca4('0x84')]==='script'){if(_0x230ca4('0x2d')==typeof _0x17bb47['parameters'][_0x230ca4('0x43')])return _0x20ce0f(new Error('Invalid\x20manifest:\x20script\x20name\x20missing'));if(_0x230ca4('0x2d')==typeof _0x17bb47[_0x230ca4('0x67')]['scriptPath'])return _0x20ce0f(new Error(_0x230ca4('0x59')));}else return _0x20ce0f(new Error(_0x230ca4('0x89')));}const _0x1f93a0=_0x17bb47['name'],_0x354500=_0x17bb47[_0x230ca4('0x47')],_0x51d621=_0x17bb47['type'],_0xc6a711=_0x17bb47[_0x230ca4('0x81')]?_0x17bb47[_0x230ca4('0x81')]:_0x230ca4('0x16'),_0x1a8564=_0x17bb47[_0x230ca4('0x3d')]?_0x17bb47['icon']:_0x230ca4('0x24');let _0x25edb8='',_0x2321b6='',_0xdaa66='',_0x48c9ef='';const _0xcb165c=_0x17bb47[_0x230ca4('0x83')];if(_0x51d621===_0x230ca4('0x1a')){if(_0x230ca4('0x2d')!=typeof _0x17bb47[_0x230ca4('0x67')][_0x230ca4('0x1')][_0x230ca4('0x6c')]){const _0x4f1466=_0x17bb47['parameters']['views']['admin'];!/^(f|ht)tps?:\/\//i[_0x230ca4('0x6f')](_0x4f1466)?_0x25edb8=path[_0x230ca4('0x7')]('plugins',_0x296480,_0x4fe4d6[0x0],_0x4f1466):_0x25edb8=_0x4f1466;}else logger[_0x230ca4('0x5')](_0x230ca4('0x21'));if(_0x230ca4('0x2d')!=typeof _0x17bb47[_0x230ca4('0x67')]['views'][_0x230ca4('0x7e')]){const _0x174fe3=_0x17bb47['parameters'][_0x230ca4('0x1')]['agent'];!/^(f|ht)tps?:\/\//i[_0x230ca4('0x6f')](_0x174fe3)?_0x2321b6=path[_0x230ca4('0x7')](_0x230ca4('0x15'),_0x296480,_0x4fe4d6[0x0],_0x174fe3):_0x2321b6=_0x174fe3;}else logger['info']('Warning:\x20agent\x20view\x20not\x20specified');}else{if(_0x51d621===_0x230ca4('0x78')){_0xdaa66=_0x17bb47[_0x230ca4('0x67')][_0x230ca4('0x43')],_0x48c9ef=_0x17bb47[_0x230ca4('0x67')][_0x230ca4('0x3c')];if(_0x230ca4('0x2d')!=typeof _0x17bb47[_0x230ca4('0x67')][_0x230ca4('0x1')]){if('undefined'!=typeof _0x17bb47[_0x230ca4('0x67')][_0x230ca4('0x1')][_0x230ca4('0x6c')]){const _0x13f5fd=_0x17bb47[_0x230ca4('0x67')]['views'][_0x230ca4('0x6c')];!/^(f|ht)tps?:\/\//i[_0x230ca4('0x6f')](_0x13f5fd)?_0x25edb8=path[_0x230ca4('0x7')](_0x230ca4('0x15'),_0x296480,_0x4fe4d6[0x0],_0x13f5fd):_0x25edb8=_0x13f5fd;}if(_0x230ca4('0x2d')!=typeof _0x17bb47[_0x230ca4('0x67')][_0x230ca4('0x1')][_0x230ca4('0x7e')]){const _0x41834e=_0x17bb47['parameters'][_0x230ca4('0x1')]['agent'];!/^(f|ht)tps?:\/\//i[_0x230ca4('0x6f')](_0x41834e)?_0x2321b6=path[_0x230ca4('0x7')](_0x230ca4('0x15'),_0x296480,_0x4fe4d6[0x0],_0x41834e):_0x2321b6=_0x41834e;}}}}const _0x330980={'name':_0x1f93a0,'description':_0x354500,'path':path[_0x230ca4('0x7')](_0x296480,_0x4fe4d6[0x0]),'type':_0x51d621,'sidebar':_0xc6a711,'icon':_0x1a8564,'adminUrl':_0x25edb8,'agentUrl':_0x2321b6,'scriptName':_0xdaa66,'scriptPath':_0x48c9ef,'version':_0xcb165c};return removeReferences(_0x3f8544,null),db[_0x230ca4('0x18')][_0x230ca4('0x6b')](_0x330980)['then'](function(_0x211664){const _0x1ada7e=_0x230ca4,_0x3e831b={'role':_0x47e798[_0x1ada7e('0x77')][_0x1ada7e('0x6e')],'userProfileId':_0x47e798[_0x1ada7e('0x77')]['userProfileId']};if(!_0x3e831b)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x3e831b[_0x1ada7e('0x6e')]===_0x1ada7e('0x7f')){const _0x324ce3=_0x211664[_0x1ada7e('0x64')]({'plain':!![]});return db[_0x1ada7e('0x62')][_0x1ada7e('0x7b')]({'where':{'name':_0x1ada7e('0x74'),'userProfileId':_0x3e831b['userProfileId']},'raw':!![]})[_0x1ada7e('0x6')](function(_0x2a64ad){const _0x4a00a6=_0x1ada7e;return _0x2a64ad&&_0x2a64ad[_0x4a00a6('0x13')]===0x0?db[_0x4a00a6('0x23')][_0x4a00a6('0x6b')]({'name':_0x324ce3[_0x4a00a6('0x4c')],'resourceId':_0x324ce3['id'],'type':_0x2a64ad[_0x4a00a6('0x4c')],'sectionId':_0x2a64ad['id']},{})[_0x4a00a6('0x6')](function(){return _0x211664;}):_0x211664;})[_0x1ada7e('0x61')](function(_0x408a56){const _0x1655e1=_0x1ada7e;logger[_0x1655e1('0x27')](_0x1655e1('0x5b'),_0x408a56);throw _0x408a56;});}return _0x211664;})['then'](respondWithResult(_0x216dfb,null))[_0x230ca4('0x61')](handleError(_0x216dfb,null));}});}catch(_0x3fbe9d){_0x216dfb[_0x40bf3e('0x75')](0x1f4)[_0x40bf3e('0x29')](_0x3fbe9d);}};function removeReferences(_0x1501da,_0x3445ce){const _0x891893=_0x1e7157;try{_0x1501da&&(fs['unlinkSync'](_0x1501da),logger[_0x891893('0x5')](_0x891893('0xb'))),_0x3445ce&&(rimraf(_0x3445ce,function(){}),logger[_0x891893('0x5')](_0x891893('0x42')));}catch(_0x3cd93c){logger['error'](_0x3cd93c);}}exports[_0x1e7157('0x17')]=function(_0x27e0b0,_0x2c4c18){const _0x561c92=_0x1e7157;return db[_0x561c92('0x18')][_0x561c92('0x7b')]({'where':{'id':_0x27e0b0[_0x561c92('0x4f')]['id']}})[_0x561c92('0x6')](handleEntityNotFound(_0x2c4c18))[_0x561c92('0x6')](saveUpdates(_0x27e0b0[_0x561c92('0x77')]))['then'](respondWithResult(_0x2c4c18,null))[_0x561c92('0x61')](handleError(_0x2c4c18,null));},exports['delete']=function(_0x470a13,_0x134a36){const _0x3c87c3=_0x1e7157;return db['Plugin']['findOne']({'where':{'id':_0x470a13[_0x3c87c3('0x4f')]['id']}})[_0x3c87c3('0x6')](function(_0x412996){const _0x4dca67=_0x3c87c3;if(_0x412996)return _0x412996[_0x4dca67('0x40')]();})[_0x3c87c3('0x6')](function(_0x1fba2d){const _0x2529b2=_0x3c87c3;return rimraf(path['join'](config[_0x2529b2('0x12')],_0x2529b2('0x2e'),path['dirname'](_0x1fba2d[_0x2529b2('0x10')])),function(){}),_0x1fba2d;})[_0x3c87c3('0x6')](handleEntityNotFound(_0x134a36))[_0x3c87c3('0x6')](respondWithStatusCode(_0x134a36,null))[_0x3c87c3('0x61')](handleError(_0x134a36,null));},exports[_0x1e7157('0x45')]=function(_0x1db8d4,_0x3765a3){const _0xcdf3db=_0x1e7157;return Promise[_0xcdf3db('0x1c')]()[_0xcdf3db('0x6')](function(){const _0xef78fb=_0xcdf3db;if(!_0x1db8d4[_0xef78fb('0x88')][_0xef78fb('0x10')])throw new Error('\x27PATH\x27\x20parameter\x20not\x20specified');if(!_0x1db8d4[_0xef78fb('0x88')][_0xef78fb('0x51')])throw new Error('\x27PORT\x27\x20parameter\x20not\x20specified');const _0x3df916=_0x1db8d4['query'][_0xef78fb('0x5d')]?_0x1db8d4[_0xef78fb('0x88')][_0xef78fb('0x5d')]+':'+_0x1db8d4[_0xef78fb('0x88')][_0xef78fb('0x51')]:_0xef78fb('0xd')+_0x1db8d4[_0xef78fb('0x88')][_0xef78fb('0x51')],_0x20d239=_0x1db8d4['query']['json']?_0x1db8d4['query'][_0xef78fb('0x71')]:!![],_0x539a13=_0x1db8d4[_0xef78fb('0x88')][_0xef78fb('0x53')]?_0x1db8d4[_0xef78fb('0x88')][_0xef78fb('0x53')]:null,_0xc3baa7={'method':_0x1db8d4[_0xef78fb('0x50')],'uri':util['format'](_0xef78fb('0x5f'),_0x3df916,_0x1db8d4[_0xef78fb('0x88')][_0xef78fb('0x10')]),'json':_0x20d239,'resolveWithFullResponse':!![],'encoding':_0x539a13,'qs':_0x1db8d4[_0xef78fb('0x88')]};return _0x1db8d4['headers']&&(_0xc3baa7[_0xef78fb('0x60')]=_0x1db8d4[_0xef78fb('0x60')],_0xc3baa7['headers'][_0xef78fb('0x9')]&&delete _0xc3baa7[_0xef78fb('0x60')]['content-length']),_0xc3baa7[_0xef78fb('0x60')]['content-type']&&delete _0xc3baa7[_0xef78fb('0x60')][_0xef78fb('0x1f')],rp(_0xc3baa7);})[_0xcdf3db('0x6')](function(_0x520460){const _0x5ca397=_0xcdf3db;return _0x520460?(_0x3765a3['set'](_0x520460[_0x5ca397('0x60')]),logger[_0x5ca397('0x5')](_0x520460['body']),_[_0x5ca397('0x87')](_0x1db8d4['query'][_0x5ca397('0x10')],_0x5ca397('0xc'))&&_0x520460[_0x5ca397('0x66')]==0x1f4?_0x3765a3[_0x5ca397('0x70')](_0x520460[_0x5ca397('0x66')]):_0x3765a3[_0x5ca397('0x75')](_0x520460['statusCode'])['send'](_0x520460[_0x5ca397('0x77')])):_0x3765a3[_0x5ca397('0x70')](0xc8);})[_0xcdf3db('0x61')](handleError(_0x3765a3,null));},exports['webhookPost']=function(_0x195f51,_0x176a8f){const _0x318fa3=_0x1e7157;return Promise[_0x318fa3('0x1c')]()[_0x318fa3('0x6')](function(){const _0x5d8480=_0x318fa3;if(!_0x195f51[_0x5d8480('0x88')]['path'])throw new Error(_0x5d8480('0x5e'));if(!_0x195f51[_0x5d8480('0x88')][_0x5d8480('0x51')])throw new Error(_0x5d8480('0x58'));const _0x395b1=_0x195f51[_0x5d8480('0x88')]['hostname']?_0x195f51[_0x5d8480('0x88')][_0x5d8480('0x5d')]+':'+_0x195f51[_0x5d8480('0x88')][_0x5d8480('0x51')]:_0x5d8480('0xd')+_0x195f51[_0x5d8480('0x88')][_0x5d8480('0x51')],_0x91c6b8=_0x195f51[_0x5d8480('0x88')]['json']?_0x195f51[_0x5d8480('0x88')][_0x5d8480('0x71')]:!![],_0x45a41f=_0x195f51[_0x5d8480('0x88')][_0x5d8480('0x53')]?_0x195f51[_0x5d8480('0x88')][_0x5d8480('0x53')]:null,_0x50de38={'method':_0x195f51['method'],'uri':util[_0x5d8480('0x76')](_0x5d8480('0x5f'),_0x395b1,_0x195f51[_0x5d8480('0x88')][_0x5d8480('0x10')]),'json':_0x91c6b8,'resolveWithFullResponse':!![],'encoding':_0x45a41f,'body':_0x195f51[_0x5d8480('0x77')]};return _0x195f51[_0x5d8480('0x60')]&&(_0x50de38[_0x5d8480('0x60')]=_0x195f51['headers'],_0x50de38[_0x5d8480('0x60')][_0x5d8480('0x9')]&&delete _0x50de38[_0x5d8480('0x60')]['content-length']),_0x50de38[_0x5d8480('0x60')][_0x5d8480('0x1f')]&&delete _0x50de38[_0x5d8480('0x60')][_0x5d8480('0x1f')],rp(_0x50de38);})[_0x318fa3('0x6')](function(_0x4225e7){const _0x856f0a=_0x318fa3;return _0x4225e7?(_0x176a8f['set'](_0x4225e7[_0x856f0a('0x60')]),logger[_0x856f0a('0x5')](_0x4225e7[_0x856f0a('0x77')]),_0x176a8f[_0x856f0a('0x75')](_0x4225e7[_0x856f0a('0x66')])[_0x856f0a('0x29')](_0x4225e7[_0x856f0a('0x77')])):_0x176a8f['sendStatus'](0xc8);})[_0x318fa3('0x61')](handleError(_0x176a8f,null));}; \ No newline at end of file +const a618_0x12b4=['delete','readdirSync','filter','options','always','like','includeAll','path','views','encoding','catch','Zip\x20archive\x20removed','stack','body','icon','port','format','sequelize','limit','resolve','undefined','ENOENT','findOne','end','fieldName','autoAssociation','../../config/logger','lstatSync','../../rediscache','count','existsSync','set','headers','**/*','code','send','attributes','filters','%s%s','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','Download\x20completed','include','where','plugins','model','Invalid\x20manifest:\x20script\x20name\x20missing','icon-apps','endsWith','type','createWriteStream','Error\x20while\x20downloading\x20the\x20plugin','keys','rimraf','Temporary\x20file\x20removed','\x27PATH\x27\x20parameter\x20not\x20specified','lodash','server/files/plugins','../../config/environment','attachments/**/*','join','get','Plugin\x20upload\x20filepath:\x20%s','%s.zip','../../components/parsers/qs','html','rows','Unable\x20to\x20retrieve\x20the\x20current\x20user','key','root','parameters','filename','then','test','params','dirname','offset','show','util','readFileSync','\x27PORT\x27\x20parameter\x20not\x20specified','sendStatus','content-length','sidebar','version','pick','zip','scriptPath','basename','userProfileId','isDirectory','index','statusCode','agent','name','close','status','length','destroy','download','Plugin','pipe','intersection','0777','VIRTUAL','./plugin.socket','UserProfileSection','create','glob','admin','method','Error\x20while\x20generating\x20the\x20zip\x20archive','json','request-promise-native','manifest.json','Invalid\x20manifest:\x20type\x20missing','Invalid\x20manifest:\x20no\x20view\x20specified','extract-zip','hostname','Invalid\x20manifest:\x20invalid\x20type','findAll','update','node_modules/**/*','role','Invalid\x20plugin\x20structure','fields','isFile','content-type','Plugin\x20upload\x20destination:\x20%s','query','webhookPost','nolimit','Invalid\x20manifest:\x20parameters\x20missing','UserProfileResource','rawAttributes','extname','info','map','error','some','file','Content-Range','script','merge','register','unlinkSync','Plugins'];(function(_0x6ebbfc,_0xc1a65b){const _0x12b487=function(_0x23e143){while(--_0x23e143){_0x6ebbfc['push'](_0x6ebbfc['shift']());}};_0x12b487(++_0xc1a65b);}(a618_0x12b4,0x145));const a618_0x23e1=function(_0x6ebbfc,_0xc1a65b){_0x6ebbfc=_0x6ebbfc-0x132;let _0x12b487=a618_0x12b4[_0x6ebbfc];return _0x12b487;};const a618_0x20f153=a618_0x23e1;'use strict';const rp=require(a618_0x20f153(0x181)),util=require(a618_0x20f153(0x15e)),path=require(a618_0x20f153(0x1aa)),fs=require('fs'),_=require(a618_0x20f153(0x148)),extract=require(a618_0x20f153(0x185)),rimraf=require(a618_0x20f153(0x145)),archiver=require('archiver'),{getSocket}=require(a618_0x20f153(0x1bf)),socket=getSocket(),qs=require(a618_0x20f153(0x150)),logger=require(a618_0x20f153(0x1bd))('api'),config=require(a618_0x20f153(0x14a)),{db}=require('../../mysqldb'),{Op,Error:SequelizeError}=require(a618_0x20f153(0x1b4));require(a618_0x20f153(0x179))[a618_0x20f153(0x1a0)](socket);function respondWithStatusCode(_0x2197a7,_0x13af71){return _0x13af71=_0x13af71||0xcc,function(_0x52c500){const _0x3d8f51=a618_0x23e1;if(_0x52c500)return _0x2197a7[_0x3d8f51(0x161)](_0x13af71);return _0x2197a7[_0x3d8f51(0x170)](_0x13af71)[_0x3d8f51(0x1ba)]();};}function respondWithResult(_0x4ff29c,_0x297f6c){return _0x297f6c=_0x297f6c||0xc8,function(_0x18d428){const _0x1dbaed=a618_0x23e1;if(_0x18d428)return _0x4ff29c['status'](_0x297f6c)[_0x1dbaed(0x180)](_0x18d428);};}function respondWithFilteredResult(_0x48bd25,_0x3b367e){return function(_0x5ce59d){const _0x16923d=a618_0x23e1;if(_0x5ce59d){const _0x3674b4=_0x5ce59d[_0x16923d(0x1c0)],_0x212774=_0x3b367e[_0x16923d(0x15c)];let _0x59ff6a=_0x3b367e[_0x16923d(0x15c)]+_0x3b367e[_0x16923d(0x1b5)],_0x159e0e;return _0x59ff6a>=_0x3674b4?(_0x59ff6a=_0x3674b4,_0x159e0e=0xc8):_0x159e0e=0xce,_0x48bd25['status'](_0x159e0e),_0x48bd25[_0x16923d(0x1c2)](_0x16923d(0x19d),_0x212774+'-'+_0x59ff6a+'/'+_0x3674b4)[_0x16923d(0x180)](_0x5ce59d);}return null;};}function saveUpdates(_0x2e20f8){return function(_0x1cb6e8){const _0x24dd25=a618_0x23e1;if(_0x1cb6e8)return _0x1cb6e8[_0x24dd25(0x189)](_0x2e20f8)[_0x24dd25(0x158)](function(_0x30cab4){return _0x30cab4;});return null;};}function handleEntityNotFound(_0x391827){return function(_0x396165){const _0x44e9be=a618_0x23e1;return!_0x396165&&_0x391827[_0x44e9be(0x161)](0x194),_0x396165;};}function handleError(_0x3345fd,_0x493307){return _0x493307=_0x493307||0x1f4,function(_0x1ff7f1){const _0x1ab6c7=a618_0x23e1;logger['error'](_0x1ff7f1[_0x1ab6c7(0x1af)]),_0x1ff7f1['name']&&delete _0x1ff7f1[_0x1ab6c7(0x16e)],_0x3345fd['status'](_0x493307)[_0x1ab6c7(0x134)](_0x1ff7f1);};}exports[a618_0x20f153(0x16b)]=function(_0x11dcd4,_0x189b0c){const _0x34b6fb=a618_0x20f153;let _0x5e8780={};const _0x195848={},_0x317129={'count':0x0,'rows':[]},_0x25f99f=_[_0x34b6fb(0x199)](db[_0x34b6fb(0x174)][_0x34b6fb(0x196)],function(_0x2dfa60){const _0x49a471=_0x34b6fb;return{'name':_0x2dfa60[_0x49a471(0x1bb)],'type':_0x2dfa60[_0x49a471(0x141)][_0x49a471(0x154)]};});_0x195848['model']=_[_0x34b6fb(0x199)](_0x25f99f,_0x34b6fb(0x16e)),_0x195848[_0x34b6fb(0x191)]=_[_0x34b6fb(0x144)](_0x11dcd4[_0x34b6fb(0x191)]),_0x195848['filters']=_[_0x34b6fb(0x176)](_0x195848[_0x34b6fb(0x13d)],_0x195848['query']),_0x5e8780['attributes']=_['intersection'](_0x195848[_0x34b6fb(0x13d)],qs[_0x34b6fb(0x18d)](_0x11dcd4[_0x34b6fb(0x191)][_0x34b6fb(0x18d)])),_0x5e8780[_0x34b6fb(0x135)]=_0x5e8780[_0x34b6fb(0x135)][_0x34b6fb(0x171)]?_0x5e8780[_0x34b6fb(0x135)]:_0x195848[_0x34b6fb(0x13d)];typeof _0x11dcd4[_0x34b6fb(0x191)][_0x34b6fb(0x193)]===_0x34b6fb(0x1b7)&&(_0x5e8780[_0x34b6fb(0x1b5)]=qs[_0x34b6fb(0x1b5)](_0x11dcd4[_0x34b6fb(0x191)][_0x34b6fb(0x1b5)]),_0x5e8780[_0x34b6fb(0x15c)]=qs[_0x34b6fb(0x15c)](_0x11dcd4[_0x34b6fb(0x191)][_0x34b6fb(0x15c)]));_0x5e8780['order']=qs['sort'](_0x11dcd4[_0x34b6fb(0x191)]['sort']),_0x5e8780[_0x34b6fb(0x13b)]=qs[_0x34b6fb(0x136)](_[_0x34b6fb(0x165)](_0x11dcd4[_0x34b6fb(0x191)],_0x195848[_0x34b6fb(0x136)]),_0x25f99f);_0x11dcd4['query'][_0x34b6fb(0x1a5)]&&(_0x5e8780['where']=_[_0x34b6fb(0x19f)](_0x5e8780[_0x34b6fb(0x13b)],{[Op['or']]:_[_0x34b6fb(0x199)](_0x25f99f,function(_0x35bfc6){const _0x30043e=_0x34b6fb;if(_0x35bfc6[_0x30043e(0x141)]!==_0x30043e(0x178)){const _0x4dc15c={};return _0x4dc15c[_0x35bfc6['name']]={[Op[_0x30043e(0x1a8)]]:'%'+_0x11dcd4[_0x30043e(0x191)][_0x30043e(0x1a5)]+'%'},_0x4dc15c;}})}));_0x5e8780=_[_0x34b6fb(0x19f)]({},_0x5e8780,_0x11dcd4[_0x34b6fb(0x1a6)]);const _0x4d50e3={'where':_0x5e8780[_0x34b6fb(0x13b)]};return db[_0x34b6fb(0x174)][_0x34b6fb(0x1c0)](_0x4d50e3)['then'](function(_0x3f1bc1){const _0x41e834=_0x34b6fb;return _0x317129[_0x41e834(0x1c0)]=_0x3f1bc1,_0x11dcd4[_0x41e834(0x191)]['includeAll']&&(_0x5e8780[_0x41e834(0x13a)]=[{'all':!![]}]),db['Plugin'][_0x41e834(0x188)](_0x5e8780);})['then'](function(_0x41ee47){const _0x1bbd1e=_0x34b6fb;return _0x317129[_0x1bbd1e(0x152)]=_0x41ee47,_0x317129;})[_0x34b6fb(0x158)](respondWithFilteredResult(_0x189b0c,_0x5e8780))['catch'](handleError(_0x189b0c,null));},exports[a618_0x20f153(0x15d)]=function(_0x42e4c4,_0x455982){const _0x1520a0=a618_0x20f153;let _0x278e98={'raw':!![],'where':{'id':_0x42e4c4[_0x1520a0(0x15a)]['id']}};const _0x2e6a0a={};return _0x2e6a0a[_0x1520a0(0x13d)]=_[_0x1520a0(0x144)](db[_0x1520a0(0x174)]['rawAttributes']),_0x2e6a0a[_0x1520a0(0x191)]=_[_0x1520a0(0x144)](_0x42e4c4[_0x1520a0(0x191)]),_0x2e6a0a[_0x1520a0(0x136)]=_[_0x1520a0(0x176)](_0x2e6a0a['model'],_0x2e6a0a[_0x1520a0(0x191)]),_0x278e98[_0x1520a0(0x135)]=_['intersection'](_0x2e6a0a['model'],qs[_0x1520a0(0x18d)](_0x42e4c4['query']['fields'])),_0x278e98[_0x1520a0(0x135)]=_0x278e98[_0x1520a0(0x135)]['length']?_0x278e98['attributes']:_0x2e6a0a[_0x1520a0(0x13d)],_0x42e4c4[_0x1520a0(0x191)][_0x1520a0(0x1a9)]&&(_0x278e98[_0x1520a0(0x13a)]=[{'all':!![]}]),_0x278e98=_['merge']({},_0x278e98,_0x42e4c4['options']),db['Plugin'][_0x1520a0(0x1b9)](_0x278e98)['then'](handleEntityNotFound(_0x455982))['then'](respondWithResult(_0x455982,null))[_0x1520a0(0x1ad)](handleError(_0x455982,null));},exports[a618_0x20f153(0x173)]=function(_0x3729bf,_0x1d66dc){const _0x254c35=a618_0x20f153;return db[_0x254c35(0x174)][_0x254c35(0x1b9)]({'where':{'id':_0x3729bf['params']['id']},'attributes':[_0x254c35(0x16e),_0x254c35(0x1aa)],'raw':!![]})[_0x254c35(0x158)](handleEntityNotFound(_0x1d66dc))[_0x254c35(0x158)](function(_0x77412f){const _0x85ee3a=_0x254c35;if(_0x77412f){const _0x4fba8b=path[_0x85ee3a(0x14c)](config[_0x85ee3a(0x155)],'server/files/plugins',util[_0x85ee3a(0x1b3)]('%s.zip',path[_0x85ee3a(0x168)](_0x77412f[_0x85ee3a(0x1aa)]))),_0x1dce18=fs[_0x85ee3a(0x142)](_0x4fba8b),_0x40c752=archiver(_0x85ee3a(0x166),{'zlib':{'level':0x9}});_0x40c752['on']('warning',function(_0x17e6a4){const _0x417a26=_0x85ee3a;if(_0x17e6a4[_0x417a26(0x133)]===_0x417a26(0x1b8))logger[_0x417a26(0x19a)](_0x17e6a4);else throw new SequelizeError(_0x417a26(0x17f));}),_0x40c752['on'](_0x85ee3a(0x19a),function(){const _0xc698c5=_0x85ee3a;throw new SequelizeError(_0xc698c5(0x17f));}),_0x40c752[_0x85ee3a(0x175)](_0x1dce18),_0x40c752[_0x85ee3a(0x17c)](_0x85ee3a(0x132),{'cwd':path[_0x85ee3a(0x14c)](config[_0x85ee3a(0x155)],_0x85ee3a(0x149),path[_0x85ee3a(0x15b)](_0x77412f['path'])),'ignore':[path[_0x85ee3a(0x14c)](path[_0x85ee3a(0x168)](_0x77412f[_0x85ee3a(0x1aa)]),_0x85ee3a(0x18a)),path[_0x85ee3a(0x14c)](path['basename'](_0x77412f[_0x85ee3a(0x1aa)]),_0x85ee3a(0x14b))],'nodir':!![]})['finalize'](),_0x1dce18['on'](_0x85ee3a(0x16f),function(){const _0x128727=_0x85ee3a;if(!fs[_0x128727(0x1c1)](_0x4fba8b))throw new SequelizeError('Plugin\x20not\x20found');return _0x1d66dc['download'](_0x4fba8b,util['format'](_0x128727(0x14f),path[_0x128727(0x168)](_0x77412f['path'])),function(_0x394e7c){const _0xf743c9=_0x128727;if(_0x394e7c)throw new SequelizeError(_0xf743c9(0x143));fs[_0xf743c9(0x1a1)](_0x4fba8b),logger[_0xf743c9(0x198)](_0xf743c9(0x139)),logger[_0xf743c9(0x198)](_0xf743c9(0x146));});});}return null;})[_0x254c35(0x1ad)](handleError(_0x1d66dc,null));},exports['upload']=function(_0x32bc7d,_0x4d6ac0,_0x56d0b9){const _0x3b30fe=a618_0x20f153,_0x3fc78d=path[_0x3b30fe(0x168)](_0x32bc7d['file'][_0x3b30fe(0x157)],path[_0x3b30fe(0x197)](_0x32bc7d[_0x3b30fe(0x19c)][_0x3b30fe(0x157)])),_0x3befa3=path['join'](config[_0x3b30fe(0x155)],_0x3b30fe(0x149),_0x32bc7d[_0x3b30fe(0x19c)][_0x3b30fe(0x157)]),_0x2ae8c7=path[_0x3b30fe(0x14c)](config[_0x3b30fe(0x155)],'files/plugins',_0x3fc78d);logger['info'](_0x3b30fe(0x14e),_0x3befa3),logger['info'](_0x3b30fe(0x190),_0x2ae8c7);try{fs['chmodSync'](_0x3befa3,parseInt(_0x3b30fe(0x177),0x8)),extract(_0x3befa3,{'dir':_0x2ae8c7},function(_0x2b7cb5){const _0x26756c=_0x3b30fe;_0x2b7cb5&&(logger[_0x26756c(0x19a)](_0x2b7cb5),handleError(_0x2b7cb5,!![]));const _0x4aa29a=fs['readdirSync'](_0x2ae8c7);if(_0x4aa29a[_0x26756c(0x171)]>0x1)return removeReferences(_0x3befa3,_0x2ae8c7),logger[_0x26756c(0x19a)](_0x26756c(0x18c)),_0x56d0b9(new Error(_0x26756c(0x18c)));const _0x3e9d53=fs[_0x26756c(0x1be)](path[_0x26756c(0x14c)](_0x2ae8c7,_0x4aa29a[0x0]));if(_0x3e9d53[_0x26756c(0x18e)]())return removeReferences(_0x3befa3,_0x2ae8c7),logger['error'](_0x26756c(0x18c)),_0x56d0b9(new Error('Invalid\x20plugin\x20structure'));if(_0x3e9d53[_0x26756c(0x16a)]()){const _0x3ee2c8=fs[_0x26756c(0x1a4)](path[_0x26756c(0x14c)](_0x2ae8c7,_0x4aa29a[0x0]));if(_0x3ee2c8[_0x26756c(0x171)]===0x0)return removeReferences(_0x3befa3,_0x2ae8c7),logger['error'](_0x26756c(0x18c)),_0x56d0b9(new Error(_0x26756c(0x18c)));const _0x3e562e=_0x3ee2c8[_0x26756c(0x19b)](function(_0x1d9da2){const _0x4e27f6=_0x26756c;return _0x1d9da2===_0x4e27f6(0x182);});if(!_0x3e562e)return _0x56d0b9(new Error('Plugin\x20manifest\x20missing'));const _0x27a564=fs[_0x26756c(0x15f)](path[_0x26756c(0x14c)](_0x2ae8c7,_0x4aa29a[0x0],'manifest.json')),_0x1f6e88=JSON['parse'](_0x27a564);if(_0x26756c(0x1b7)==typeof _0x1f6e88['name'])return _0x56d0b9(new Error('Invalid\x20manifest:\x20name\x20missing'));if(_0x26756c(0x1b7)==typeof _0x1f6e88['type'])return _0x56d0b9(new Error(_0x26756c(0x183)));if('undefined'==typeof _0x1f6e88[_0x26756c(0x164)])return _0x56d0b9(new Error('Invalid\x20manifest:\x20version\x20not\x20specified'));if(_0x26756c(0x1b7)==typeof _0x1f6e88['parameters'])return _0x56d0b9(new Error(_0x26756c(0x194)));if(_0x1f6e88[_0x26756c(0x141)]===_0x26756c(0x151)){if(_0x26756c(0x1b7)==typeof _0x1f6e88[_0x26756c(0x156)]['views'])return _0x56d0b9(new Error('Invalid\x20manifest:\x20views\x20missing'));if(_0x26756c(0x1b7)==typeof _0x1f6e88['parameters']['views'][_0x26756c(0x17d)]&&_0x26756c(0x1b7)==typeof _0x1f6e88[_0x26756c(0x156)][_0x26756c(0x1ab)][_0x26756c(0x16d)])return _0x56d0b9(new Error(_0x26756c(0x184)));}else{if(_0x1f6e88['type']==='script'){if(_0x26756c(0x1b7)==typeof _0x1f6e88['parameters']['scriptName'])return _0x56d0b9(new Error(_0x26756c(0x13e)));if(_0x26756c(0x1b7)==typeof _0x1f6e88[_0x26756c(0x156)][_0x26756c(0x167)])return _0x56d0b9(new Error('Invalid\x20manifest:\x20script\x20path\x20missing'));}else return _0x56d0b9(new Error(_0x26756c(0x187)));}const _0x17c4e5=_0x1f6e88[_0x26756c(0x16e)],_0x3328d5=_0x1f6e88['description'],_0x1d9794=_0x1f6e88['type'],_0x8f19ec=_0x1f6e88['sidebar']?_0x1f6e88[_0x26756c(0x163)]:_0x26756c(0x1a7),_0x34c737=_0x1f6e88['icon']?_0x1f6e88[_0x26756c(0x1b1)]:_0x26756c(0x13f);let _0x27d8ea='',_0x407e12='',_0x5cab85='',_0x5e1300='';const _0x5f0130=_0x1f6e88[_0x26756c(0x164)];if(_0x1d9794===_0x26756c(0x151)){if(_0x26756c(0x1b7)!=typeof _0x1f6e88[_0x26756c(0x156)][_0x26756c(0x1ab)][_0x26756c(0x17d)]){const _0x260cb8=_0x1f6e88[_0x26756c(0x156)][_0x26756c(0x1ab)]['admin'];!/^(f|ht)tps?:\/\//i[_0x26756c(0x159)](_0x260cb8)?_0x27d8ea=path[_0x26756c(0x14c)](_0x26756c(0x13c),_0x3fc78d,_0x4aa29a[0x0],_0x260cb8):_0x27d8ea=_0x260cb8;}else logger[_0x26756c(0x198)]('Warning:\x20admin\x20view\x20not\x20specified');if(_0x26756c(0x1b7)!=typeof _0x1f6e88[_0x26756c(0x156)][_0x26756c(0x1ab)][_0x26756c(0x16d)]){const _0x3b3eb2=_0x1f6e88[_0x26756c(0x156)][_0x26756c(0x1ab)][_0x26756c(0x16d)];!/^(f|ht)tps?:\/\//i[_0x26756c(0x159)](_0x3b3eb2)?_0x407e12=path[_0x26756c(0x14c)](_0x26756c(0x13c),_0x3fc78d,_0x4aa29a[0x0],_0x3b3eb2):_0x407e12=_0x3b3eb2;}else logger[_0x26756c(0x198)]('Warning:\x20agent\x20view\x20not\x20specified');}else{if(_0x1d9794===_0x26756c(0x19e)){_0x5cab85=_0x1f6e88['parameters']['scriptName'],_0x5e1300=_0x1f6e88[_0x26756c(0x156)]['scriptPath'];if(_0x26756c(0x1b7)!=typeof _0x1f6e88[_0x26756c(0x156)][_0x26756c(0x1ab)]){if(_0x26756c(0x1b7)!=typeof _0x1f6e88[_0x26756c(0x156)][_0x26756c(0x1ab)]['admin']){const _0x26ceb5=_0x1f6e88[_0x26756c(0x156)]['views'][_0x26756c(0x17d)];!/^(f|ht)tps?:\/\//i['test'](_0x26ceb5)?_0x27d8ea=path[_0x26756c(0x14c)](_0x26756c(0x13c),_0x3fc78d,_0x4aa29a[0x0],_0x26ceb5):_0x27d8ea=_0x26ceb5;}if(_0x26756c(0x1b7)!=typeof _0x1f6e88[_0x26756c(0x156)][_0x26756c(0x1ab)][_0x26756c(0x16d)]){const _0x15262c=_0x1f6e88['parameters'][_0x26756c(0x1ab)][_0x26756c(0x16d)];!/^(f|ht)tps?:\/\//i['test'](_0x15262c)?_0x407e12=path[_0x26756c(0x14c)](_0x26756c(0x13c),_0x3fc78d,_0x4aa29a[0x0],_0x15262c):_0x407e12=_0x15262c;}}}}const _0x29d091={'name':_0x17c4e5,'description':_0x3328d5,'path':path[_0x26756c(0x14c)](_0x3fc78d,_0x4aa29a[0x0]),'type':_0x1d9794,'sidebar':_0x8f19ec,'icon':_0x34c737,'adminUrl':_0x27d8ea,'agentUrl':_0x407e12,'scriptName':_0x5cab85,'scriptPath':_0x5e1300,'version':_0x5f0130};return removeReferences(_0x3befa3,null),db[_0x26756c(0x174)][_0x26756c(0x17b)](_0x29d091)[_0x26756c(0x158)](function(_0x4efd1f){const _0x39832d=_0x26756c,_0x3de64b={'role':_0x32bc7d['body'][_0x39832d(0x18b)],'userProfileId':_0x32bc7d['body'][_0x39832d(0x169)]};if(!_0x3de64b)throw new Error(_0x39832d(0x153));if(_0x3de64b['role']==='user'){const _0x2e845f=_0x4efd1f[_0x39832d(0x14d)]({'plain':!![]});return db[_0x39832d(0x17a)][_0x39832d(0x1b9)]({'where':{'name':_0x39832d(0x1a2),'userProfileId':_0x3de64b[_0x39832d(0x169)]},'raw':!![]})[_0x39832d(0x158)](function(_0x4da1be){const _0x15507e=_0x39832d;return _0x4da1be&&_0x4da1be[_0x15507e(0x1bc)]===0x0?db[_0x15507e(0x195)]['create']({'name':_0x2e845f['name'],'resourceId':_0x2e845f['id'],'type':_0x4da1be[_0x15507e(0x16e)],'sectionId':_0x4da1be['id']},{})['then'](function(){return _0x4efd1f;}):_0x4efd1f;})[_0x39832d(0x1ad)](function(_0x4f1fa0){const _0x2986f8=_0x39832d;logger[_0x2986f8(0x19a)](_0x2986f8(0x138),_0x4f1fa0);throw _0x4f1fa0;});}return _0x4efd1f;})[_0x26756c(0x158)](respondWithResult(_0x4d6ac0,null))[_0x26756c(0x1ad)](handleError(_0x4d6ac0,null));}});}catch(_0x18092a){_0x4d6ac0[_0x3b30fe(0x170)](0x1f4)[_0x3b30fe(0x134)](_0x18092a);}};function removeReferences(_0x179a36,_0x46ba41){const _0x372590=a618_0x20f153;try{_0x179a36&&(fs[_0x372590(0x1a1)](_0x179a36),logger[_0x372590(0x198)](_0x372590(0x1ae))),_0x46ba41&&(rimraf(_0x46ba41,function(){}),logger[_0x372590(0x198)]('Extracted\x20folder\x20removed'));}catch(_0x55da2e){logger[_0x372590(0x19a)](_0x55da2e);}}exports[a618_0x20f153(0x189)]=function(_0xa2cae9,_0x596f7d){const _0x105b83=a618_0x20f153;return db[_0x105b83(0x174)][_0x105b83(0x1b9)]({'where':{'id':_0xa2cae9['params']['id']}})[_0x105b83(0x158)](handleEntityNotFound(_0x596f7d))[_0x105b83(0x158)](saveUpdates(_0xa2cae9['body']))[_0x105b83(0x158)](respondWithResult(_0x596f7d,null))['catch'](handleError(_0x596f7d,null));},exports[a618_0x20f153(0x1a3)]=function(_0x21b81f,_0x3067c8){const _0x258e98=a618_0x20f153;return db[_0x258e98(0x174)]['findOne']({'where':{'id':_0x21b81f[_0x258e98(0x15a)]['id']}})[_0x258e98(0x158)](function(_0x371485){const _0x1d3dd6=_0x258e98;if(_0x371485)return _0x371485[_0x1d3dd6(0x172)]();})[_0x258e98(0x158)](function(_0x57296d){const _0x2098bb=_0x258e98;return rimraf(path[_0x2098bb(0x14c)](config[_0x2098bb(0x155)],_0x2098bb(0x149),path[_0x2098bb(0x15b)](_0x57296d[_0x2098bb(0x1aa)])),function(){}),_0x57296d;})['then'](handleEntityNotFound(_0x3067c8))[_0x258e98(0x158)](respondWithStatusCode(_0x3067c8,null))[_0x258e98(0x1ad)](handleError(_0x3067c8,null));},exports['webhookGet']=function(_0x172791,_0x44e35d){const _0x333f68=a618_0x20f153;return Promise['resolve']()[_0x333f68(0x158)](function(){const _0x3f1214=_0x333f68;if(!_0x172791['query']['path'])throw new Error(_0x3f1214(0x147));if(!_0x172791['query'][_0x3f1214(0x1b2)])throw new Error(_0x3f1214(0x160));const _0x56e43a=_0x172791[_0x3f1214(0x191)][_0x3f1214(0x186)]?_0x172791['query']['hostname']+':'+_0x172791[_0x3f1214(0x191)][_0x3f1214(0x1b2)]:'http://localhost:'+_0x172791[_0x3f1214(0x191)][_0x3f1214(0x1b2)],_0x1bfa42=_0x172791[_0x3f1214(0x191)][_0x3f1214(0x180)]?_0x172791[_0x3f1214(0x191)][_0x3f1214(0x180)]:!![],_0x2c9591=_0x172791[_0x3f1214(0x191)]['encoding']?_0x172791['query']['encoding']:null,_0x4a820a={'method':_0x172791[_0x3f1214(0x17e)],'uri':util[_0x3f1214(0x1b3)](_0x3f1214(0x137),_0x56e43a,_0x172791[_0x3f1214(0x191)][_0x3f1214(0x1aa)]),'json':_0x1bfa42,'resolveWithFullResponse':!![],'encoding':_0x2c9591,'qs':_0x172791[_0x3f1214(0x191)]};return _0x172791[_0x3f1214(0x1c3)]&&(_0x4a820a['headers']=_0x172791[_0x3f1214(0x1c3)],_0x4a820a['headers']['content-length']&&delete _0x4a820a[_0x3f1214(0x1c3)]['content-length']),_0x4a820a['headers']['content-type']&&delete _0x4a820a[_0x3f1214(0x1c3)][_0x3f1214(0x18f)],rp(_0x4a820a);})['then'](function(_0x5a1324){const _0x4c799d=_0x333f68;return _0x5a1324?(_0x44e35d[_0x4c799d(0x1c2)](_0x5a1324['headers']),logger[_0x4c799d(0x198)](_0x5a1324['body']),_[_0x4c799d(0x140)](_0x172791[_0x4c799d(0x191)][_0x4c799d(0x1aa)],_0x4c799d(0x173))&&_0x5a1324[_0x4c799d(0x16c)]==0x1f4?_0x44e35d[_0x4c799d(0x161)](_0x5a1324[_0x4c799d(0x16c)]):_0x44e35d[_0x4c799d(0x170)](_0x5a1324[_0x4c799d(0x16c)])[_0x4c799d(0x134)](_0x5a1324[_0x4c799d(0x1b0)])):_0x44e35d[_0x4c799d(0x161)](0xc8);})[_0x333f68(0x1ad)](handleError(_0x44e35d,null));},exports[a618_0x20f153(0x192)]=function(_0x6b53f4,_0x4addf2){const _0x3df5e5=a618_0x20f153;return Promise[_0x3df5e5(0x1b6)]()[_0x3df5e5(0x158)](function(){const _0x336a39=_0x3df5e5;if(!_0x6b53f4[_0x336a39(0x191)][_0x336a39(0x1aa)])throw new Error(_0x336a39(0x147));if(!_0x6b53f4[_0x336a39(0x191)][_0x336a39(0x1b2)])throw new Error(_0x336a39(0x160));const _0x88db76=_0x6b53f4['query'][_0x336a39(0x186)]?_0x6b53f4[_0x336a39(0x191)][_0x336a39(0x186)]+':'+_0x6b53f4[_0x336a39(0x191)]['port']:'http://localhost:'+_0x6b53f4[_0x336a39(0x191)]['port'],_0x11adb3=_0x6b53f4[_0x336a39(0x191)]['json']?_0x6b53f4['query'][_0x336a39(0x180)]:!![],_0x5f19b0=_0x6b53f4[_0x336a39(0x191)]['encoding']?_0x6b53f4['query'][_0x336a39(0x1ac)]:null,_0x3872f5={'method':_0x6b53f4[_0x336a39(0x17e)],'uri':util[_0x336a39(0x1b3)](_0x336a39(0x137),_0x88db76,_0x6b53f4['query']['path']),'json':_0x11adb3,'resolveWithFullResponse':!![],'encoding':_0x5f19b0,'body':_0x6b53f4[_0x336a39(0x1b0)]};return _0x6b53f4[_0x336a39(0x1c3)]&&(_0x3872f5[_0x336a39(0x1c3)]=_0x6b53f4[_0x336a39(0x1c3)],_0x3872f5['headers'][_0x336a39(0x162)]&&delete _0x3872f5['headers']['content-length']),_0x3872f5[_0x336a39(0x1c3)][_0x336a39(0x18f)]&&delete _0x3872f5[_0x336a39(0x1c3)][_0x336a39(0x18f)],rp(_0x3872f5);})[_0x3df5e5(0x158)](function(_0x26dd15){const _0x232a04=_0x3df5e5;return _0x26dd15?(_0x4addf2[_0x232a04(0x1c2)](_0x26dd15[_0x232a04(0x1c3)]),logger['info'](_0x26dd15['body']),_0x4addf2[_0x232a04(0x170)](_0x26dd15[_0x232a04(0x16c)])[_0x232a04(0x134)](_0x26dd15[_0x232a04(0x1b0)])):_0x4addf2[_0x232a04(0x161)](0xc8);})[_0x3df5e5(0x1ad)](handleError(_0x4addf2,null));}; \ No newline at end of file diff --git a/server/api/plugin/plugin.events.js b/server/api/plugin/plugin.events.js index 19e306e..7fd24e9 100644 --- a/server/api/plugin/plugin.events.js +++ b/server/api/plugin/plugin.events.js @@ -1 +1 @@ -const a516_0x1f8c=['undefined','../../mysqldb','setMaxListeners','events','emit','exports'];(function(_0x18c8b5,_0x1f8c1e){const _0x23e036=function(_0x433a7a){while(--_0x433a7a){_0x18c8b5['push'](_0x18c8b5['shift']());}};_0x23e036(++_0x1f8c1e);}(a516_0x1f8c,0xe9));const a516_0x23e0=function(_0x18c8b5,_0x1f8c1e){_0x18c8b5=_0x18c8b5-0x0;let _0x23e036=a516_0x1f8c[_0x18c8b5];return _0x23e036;};const _0x39ff7e=a516_0x23e0;'use strict';const EventEmitter=require(_0x39ff7e('0x4')),Plugin=require(_0x39ff7e('0x2'))['db']['Plugin'],PluginEvents=new EventEmitter();PluginEvents[_0x39ff7e('0x3')](0x0);const events={'afterCreate':'save','afterUpdate':'update','afterDestroy':'remove'};function emitEvent(_0x433a7a){return function(_0x26d33f){const _0x53636d=a516_0x23e0;PluginEvents[_0x53636d('0x5')](_0x433a7a+':'+_0x26d33f['id'],_0x26d33f),PluginEvents[_0x53636d('0x5')](_0x433a7a,_0x26d33f);};}for(const e in events){if(typeof events[e]!==_0x39ff7e('0x1')){const event=events[e];Plugin['addHook'](e,emitEvent(event));}}module[_0x39ff7e('0x0')]=PluginEvents; \ No newline at end of file +const a619_0x22aa=['emit','events','undefined','remove','exports','setMaxListeners','Plugin','save'];(function(_0xf21bb1,_0x92e4d0){const _0x22aa96=function(_0x475be1){while(--_0x475be1){_0xf21bb1['push'](_0xf21bb1['shift']());}};_0x22aa96(++_0x92e4d0);}(a619_0x22aa,0x73));const a619_0x475b=function(_0xf21bb1,_0x92e4d0){_0xf21bb1=_0xf21bb1-0x65;let _0x22aa96=a619_0x22aa[_0xf21bb1];return _0x22aa96;};const a619_0x5134d2=a619_0x475b;'use strict';const EventEmitter=require(a619_0x5134d2(0x6b)),Plugin=require('../../mysqldb')['db'][a619_0x5134d2(0x68)],PluginEvents=new EventEmitter();PluginEvents[a619_0x5134d2(0x67)](0x0);const events={'afterCreate':a619_0x5134d2(0x69),'afterUpdate':'update','afterDestroy':a619_0x5134d2(0x65)};function emitEvent(_0x1389bc){return function(_0x15c15a){const _0x4ca9cd=a619_0x475b;PluginEvents[_0x4ca9cd(0x6a)](_0x1389bc+':'+_0x15c15a['id'],_0x15c15a),PluginEvents['emit'](_0x1389bc,_0x15c15a);};}for(const e in events){if(typeof events[e]!==a619_0x5134d2(0x6c)){const event=events[e];Plugin['addHook'](e,emitEvent(event));}}module[a619_0x5134d2(0x66)]=PluginEvents; \ No newline at end of file diff --git a/server/api/plugin/plugin.model.js b/server/api/plugin/plugin.model.js index 101daf6..9933416 100644 --- a/server/api/plugin/plugin.model.js +++ b/server/api/plugin/plugin.model.js @@ -1 +1 @@ -const a517_0x325d=['./plugin.attributes','exports','define'];(function(_0x21c12c,_0x325d96){const _0xde597e=function(_0x355d22){while(--_0x355d22){_0x21c12c['push'](_0x21c12c['shift']());}};_0xde597e(++_0x325d96);}(a517_0x325d,0x169));const a517_0xde59=function(_0x21c12c,_0x325d96){_0x21c12c=_0x21c12c-0x0;let _0xde597e=a517_0x325d[_0x21c12c];return _0xde597e;};const _0x3148a3=a517_0xde59;'use strict';const attributes=require(_0x3148a3('0x2'));module[_0x3148a3('0x0')]=function(_0x355d22){const _0x898c28=_0x3148a3,_0x43aed8=_0x355d22[_0x898c28('0x1')]('Plugin',attributes,{'tableName':'plugins','paranoid':![],'indexes':[],'timestamps':!![]});return _0x43aed8;}; \ No newline at end of file +const a620_0x5902=['sequelize','exports','function','./plugin.options','init'];(function(_0x313278,_0x5ce3a2){const _0x59025b=function(_0x4ccad9){while(--_0x4ccad9){_0x313278['push'](_0x313278['shift']());}};_0x59025b(++_0x5ce3a2);}(a620_0x5902,0xb0));const a620_0x4cca=function(_0x313278,_0x5ce3a2){_0x313278=_0x313278-0x1a5;let _0x59025b=a620_0x5902[_0x313278];return _0x59025b;};const a620_0x46315b=a620_0x4cca;'use strict';const {Model}=require(a620_0x46315b(0x1a9)),{attributes}=require('./plugin.attributes'),{options}=require(a620_0x46315b(0x1a7));class Plugin extends Model{}function init(_0x39562c,_0x32ea51){const _0x4beec4=a620_0x46315b,_0x3c3f47=options(_0x39562c),_0x98b08f=typeof _0x32ea51===_0x4beec4(0x1a6)?_0x32ea51(_0x3c3f47):_0x3c3f47;return Plugin[_0x4beec4(0x1a8)](attributes,_0x98b08f),Plugin;}module['exports']['Plugin']=Plugin,module[a620_0x46315b(0x1a5)][a620_0x46315b(0x1a8)]=init; \ No newline at end of file diff --git a/server/api/plugin/plugin.options.js b/server/api/plugin/plugin.options.js new file mode 100644 index 0000000..7415ad7 --- /dev/null +++ b/server/api/plugin/plugin.options.js @@ -0,0 +1 @@ +var a621_0x2801=['exports','plugins','options'];(function(_0x1c1602,_0x7a39b4){var _0x2801dc=function(_0x4f5e41){while(--_0x4f5e41){_0x1c1602['push'](_0x1c1602['shift']());}};_0x2801dc(++_0x7a39b4);}(a621_0x2801,0x191));var a621_0x4f5e=function(_0x1c1602,_0x7a39b4){_0x1c1602=_0x1c1602-0x16d;var _0x2801dc=a621_0x2801[_0x1c1602];return _0x2801dc;};var a621_0x18d453=a621_0x4f5e;function options(_0x373aa1){var _0xe9722=a621_0x4f5e;return{'sequelize':_0x373aa1,'tableName':_0xe9722(0x16f),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a621_0x18d453(0x16e)][a621_0x18d453(0x16d)]=options; \ No newline at end of file diff --git a/server/api/plugin/plugin.rpc.js b/server/api/plugin/plugin.rpc.js index e2c5aa4..390c45d 100644 --- a/server/api/plugin/plugin.rpc.js +++ b/server/api/plugin/plugin.rpc.js @@ -1 +1 @@ -const a518_0x10cf=['./plugin.socket','CreatePlugin','options','../../config/logger','register','debug','stringify','error','create','catch','raw','message','Plugin','body','../../rediscache','info'];(function(_0x206b63,_0x10cf9a){const _0x15f552=function(_0x128b09){while(--_0x128b09){_0x206b63['push'](_0x206b63['shift']());}};_0x15f552(++_0x10cf9a);}(a518_0x10cf,0x12c));const a518_0x15f5=function(_0x206b63,_0x10cf9a){_0x206b63=_0x206b63-0x0;let _0x15f552=a518_0x10cf[_0x206b63];return _0x15f552;};const _0x2f3105=a518_0x15f5;'use strict';const db=require('../../mysqldb')['db'],logger=require(_0x2f3105('0x7'))('rpc'),{getSocket}=require(_0x2f3105('0x2')),socket=getSocket();require(_0x2f3105('0x4'))[_0x2f3105('0x8')](socket),exports[_0x2f3105('0x5')]=function(_0x128b09){const _0x1a149b=this;return new Promise(function(_0x5c8549,_0x421ba3){const _0x464f01=a518_0x15f5;return db[_0x464f01('0x0')][_0x464f01('0xc')](_0x128b09[_0x464f01('0x1')],{'raw':_0x128b09['options']?_0x128b09[_0x464f01('0x6')][_0x464f01('0xe')]===undefined?!![]:![]:!![]})['then'](function(_0x5da65a){const _0x5529c0=_0x464f01;logger[_0x5529c0('0x3')]('CreatePlugin',_0x128b09),logger[_0x5529c0('0x9')]('CreatePlugin',_0x128b09,JSON[_0x5529c0('0xa')](_0x5da65a)),_0x5c8549(_0x5da65a);})[_0x464f01('0xd')](function(_0x1dc527){const _0x3daa61=_0x464f01;logger[_0x3daa61('0xb')](_0x3daa61('0x5'),_0x1dc527['message'],_0x128b09),_0x421ba3(_0x1a149b['error'](0x1f4,_0x1dc527[_0x3daa61('0xf')]));});});}; \ No newline at end of file +const a622_0x8aa9=['error','stringify','body','options','rpc','../../config/logger','./plugin.socket','CreatePlugin','message','info','catch','../../rediscache','Plugin','create','register'];(function(_0x21930b,_0x4807b6){const _0x8aa982=function(_0x4f674c){while(--_0x4f674c){_0x21930b['push'](_0x21930b['shift']());}};_0x8aa982(++_0x4807b6);}(a622_0x8aa9,0x14d));const a622_0x4f67=function(_0x21930b,_0x4807b6){_0x21930b=_0x21930b-0x143;let _0x8aa982=a622_0x8aa9[_0x21930b];return _0x8aa982;};const a622_0x40e1e5=a622_0x4f67;'use strict';const db=require('../../mysqldb')['db'],logger=require(a622_0x40e1e5(0x145))(a622_0x40e1e5(0x144)),{getSocket}=require(a622_0x40e1e5(0x14b)),socket=getSocket();require(a622_0x40e1e5(0x146))[a622_0x40e1e5(0x14e)](socket),exports[a622_0x40e1e5(0x147)]=function(_0xa8f53d){const _0x3979c5=this;return new Promise(function(_0x29d852,_0x488485){const _0x156a9b=a622_0x4f67;return db[_0x156a9b(0x14c)][_0x156a9b(0x14d)](_0xa8f53d[_0x156a9b(0x151)],{'raw':_0xa8f53d[_0x156a9b(0x143)]?_0xa8f53d[_0x156a9b(0x143)]['raw']===undefined?!![]:![]:!![]})['then'](function(_0x407c06){const _0x4012ab=_0x156a9b;logger[_0x4012ab(0x149)](_0x4012ab(0x147),_0xa8f53d),logger['debug'](_0x4012ab(0x147),_0xa8f53d,JSON[_0x4012ab(0x150)](_0x407c06)),_0x29d852(_0x407c06);})[_0x156a9b(0x14a)](function(_0x12cd5a){const _0x1aba4b=_0x156a9b;logger[_0x1aba4b(0x14f)](_0x1aba4b(0x147),_0x12cd5a[_0x1aba4b(0x148)],_0xa8f53d),_0x488485(_0x3979c5['error'](0x1f4,_0x12cd5a[_0x1aba4b(0x148)]));});});}; \ No newline at end of file diff --git a/server/api/plugin/plugin.socket.js b/server/api/plugin/plugin.socket.js index 04f44c5..0c86177 100644 --- a/server/api/plugin/plugin.socket.js +++ b/server/api/plugin/plugin.socket.js @@ -1 +1 @@ -const a519_0xb882=['register','save','update','./plugin.events','emit','length','plugin:','remove'];(function(_0x4e3e3e,_0xb88281){const _0xb06b33=function(_0x52a56d){while(--_0x52a56d){_0x4e3e3e['push'](_0x4e3e3e['shift']());}};_0xb06b33(++_0xb88281);}(a519_0xb882,0x1a9));const a519_0xb06b=function(_0x4e3e3e,_0xb88281){_0x4e3e3e=_0x4e3e3e-0x0;let _0xb06b33=a519_0xb882[_0x4e3e3e];return _0xb06b33;};const _0x3213cd=a519_0xb06b;'use strict';const PluginEvents=require(_0x3213cd('0x2')),events=[_0x3213cd('0x0'),_0x3213cd('0x6'),_0x3213cd('0x1')];function createListener(_0x52a56d,_0x642fc5){return function(_0x3b028b){const _0x3cc802=a519_0xb06b;_0x642fc5[_0x3cc802('0x3')](_0x52a56d,_0x3b028b);};}exports[_0x3213cd('0x7')]=function(_0x8ef4f2){const _0x1e7cad=_0x3213cd;for(let _0x4eebef=0x0,_0x379c15=events[_0x1e7cad('0x4')];_0x4eebef<_0x379c15;_0x4eebef++){const _0x139487=events[_0x4eebef],_0x1b0d05=createListener(_0x1e7cad('0x5')+_0x139487,_0x8ef4f2);PluginEvents['on'](_0x139487,_0x1b0d05);}}; \ No newline at end of file +const a623_0x4110=['emit','save','register','length','remove'];(function(_0x56139e,_0x345184){const _0x4110ff=function(_0xb0f83){while(--_0xb0f83){_0x56139e['push'](_0x56139e['shift']());}};_0x4110ff(++_0x345184);}(a623_0x4110,0x112));const a623_0xb0f8=function(_0x56139e,_0x345184){_0x56139e=_0x56139e-0x9e;let _0x4110ff=a623_0x4110[_0x56139e];return _0x4110ff;};const a623_0x36a777=a623_0xb0f8;'use strict';const PluginEvents=require('./plugin.events'),events=[a623_0x36a777(0xa0),a623_0x36a777(0x9e),'update'];function createListener(_0x56db41,_0x481d6a){return function(_0x4e7b9a){const _0x4c8f98=a623_0xb0f8;_0x481d6a[_0x4c8f98(0x9f)](_0x56db41,_0x4e7b9a);};}exports[a623_0x36a777(0xa1)]=function(_0x32aaf2){const _0x9c296d=a623_0x36a777;for(let _0x59a46d=0x0,_0x5062c3=events[_0x9c296d(0xa2)];_0x59a46d<_0x5062c3;_0x59a46d++){const _0x59a521=events[_0x59a46d],_0x5167c3=createListener('plugin:'+_0x59a521,_0x32aaf2);PluginEvents['on'](_0x59a521,_0x5167c3);}}; \ No newline at end of file diff --git a/server/api/pm2/index.js b/server/api/pm2/index.js index 15e8c89..46752e9 100644 --- a/server/api/pm2/index.js +++ b/server/api/pm2/index.js @@ -1 +1 @@ -const a520_0x88e2=['get','Router','destroy','isAuthenticated','/:id','../../components/auth/service','delete'];(function(_0x5d3647,_0x88e2b1){const _0x557e5d=function(_0x565e11){while(--_0x565e11){_0x5d3647['push'](_0x5d3647['shift']());}};_0x557e5d(++_0x88e2b1);}(a520_0x88e2,0xdd));const a520_0x557e=function(_0x5d3647,_0x88e2b1){_0x5d3647=_0x5d3647-0x0;let _0x557e5d=a520_0x88e2[_0x5d3647];return _0x557e5d;};const _0x552819=a520_0x557e;'use strict';const express=require('express'),router=express[_0x552819('0x4')](),auth=require(_0x552819('0x1')),controller=require('./pm2.controller');router['get']('/',auth['isAuthenticated'](),controller['index']),router[_0x552819('0x3')](_0x552819('0x0'),auth[_0x552819('0x6')](),controller['show']),router['post']('/',auth[_0x552819('0x6')](),controller['create']),router['put'](_0x552819('0x0'),auth[_0x552819('0x6')](),controller['update']),router[_0x552819('0x2')](_0x552819('0x0'),auth[_0x552819('0x6')](),controller[_0x552819('0x5')]),module['exports']=router; \ No newline at end of file +const a624_0x5769=['destroy','/:id','update','show','post','get','create','express','delete','exports','../../components/auth/service','isAuthenticated'];(function(_0x2eed59,_0xe56266){const _0x576904=function(_0x421458){while(--_0x421458){_0x2eed59['push'](_0x2eed59['shift']());}};_0x576904(++_0xe56266);}(a624_0x5769,0xd2));const a624_0x4214=function(_0x2eed59,_0xe56266){_0x2eed59=_0x2eed59-0x18c;let _0x576904=a624_0x5769[_0x2eed59];return _0x576904;};const a624_0x46db70=a624_0x4214;'use strict';const express=require(a624_0x46db70(0x18d)),router=express['Router'](),auth=require(a624_0x46db70(0x190)),controller=require('./pm2.controller');router[a624_0x46db70(0x197)]('/',auth[a624_0x46db70(0x191)](),controller['index']),router['get'](a624_0x46db70(0x193),auth['isAuthenticated'](),controller[a624_0x46db70(0x195)]),router[a624_0x46db70(0x196)]('/',auth['isAuthenticated'](),controller[a624_0x46db70(0x18c)]),router['put'](a624_0x46db70(0x193),auth['isAuthenticated'](),controller[a624_0x46db70(0x194)]),router[a624_0x46db70(0x18e)](a624_0x46db70(0x193),auth['isAuthenticated'](),controller[a624_0x46db70(0x192)]),module[a624_0x46db70(0x18f)]=router; \ No newline at end of file diff --git a/server/api/pm2/pm2.controller.js b/server/api/pm2/pm2.controller.js index b5339a0..db0c376 100644 --- a/server/api/pm2/pm2.controller.js +++ b/server/api/pm2/pm2.controller.js @@ -1 +1 @@ -const a521_0x1ed0=['status','../../config/pm2','show','join','name','body','then','undefined','dirname','../../files/plugins','script','exec','info','path','Unknown\x20status','Unknown\x20id','delete','length','update','list','restart','motion2','error','send','sendStatus','npm\x20install','child_process','stack','params','destroy','catch','describe','cwd','json','api','express','chdir','stop'];(function(_0x17037d,_0x1ed088){const _0x5573c1=function(_0x2718c2){while(--_0x2718c2){_0x17037d['push'](_0x17037d['shift']());}};_0x5573c1(++_0x1ed088);}(a521_0x1ed0,0x1cb));const a521_0x5573=function(_0x17037d,_0x1ed088){_0x17037d=_0x17037d-0x0;let _0x5573c1=a521_0x1ed0[_0x17037d];return _0x5573c1;};const _0x5d907d=a521_0x5573;'use strict';const _=require('lodash'),pm2=require(_0x5d907d('0x24')),logger=require('../../config/logger')(_0x5d907d('0x1f')),path=require(_0x5d907d('0xa')),exec=require(_0x5d907d('0x17'))[_0x5d907d('0x8')];function handleEntityNotFound(_0x2718c2){return function(_0x45cf50){const _0x53746c=a521_0x5573;return!_0x45cf50&&_0x2718c2[_0x53746c('0x15')](0x194),_0x45cf50;};}function respondWithResult(_0x5897d9,_0x507bb8){return _0x507bb8=_0x507bb8||0xc8,function(_0x10c7b9){const _0x4e858b=a521_0x5573;if(_0x10c7b9)return _0x5897d9[_0x4e858b('0x23')](_0x507bb8)[_0x4e858b('0x1e')](_0x10c7b9);return null;};}function handleError(_0x100d7e,_0x4d9670){return _0x4d9670=_0x4d9670||0x1f4,function(_0x178213){const _0x4e2536=a521_0x5573;logger[_0x4e2536('0x13')](_0x178213[_0x4e2536('0x18')]),_0x178213['name']&&delete _0x178213[_0x4e2536('0x1')],_0x100d7e[_0x4e2536('0x23')](_0x4d9670)['send'](_0x178213);};}function execChildProcess(){return new Promise(function(_0x51b3c9,_0x4e026e){const _0x571404=a521_0x5573;exec(_0x571404('0x16'),function(_0x227804,_0xdb4d47,_0x15cbed){const _0x2ad22f=_0x571404;logger['info'](_0xdb4d47),logger[_0x2ad22f('0x9')](_0x15cbed);if(_0x227804)return logger['error'](_0x227804),_0x4e026e(_0x227804);return _0x51b3c9(_0xdb4d47);});});}exports['index']=function(_0x56cf5b,_0x19bb29){const _0x4ffa76=_0x5d907d;return pm2[_0x4ffa76('0x10')]()[_0x4ffa76('0x3')](function(_0x3da93e){const _0x48e401=_0x4ffa76;if(_0x3da93e){const _0x4f0adc=_['reject'](_0x3da93e,function(_0xf6cb64){const _0x3d2f94=a521_0x5573;return _0xf6cb64[_0x3d2f94('0x1')]===_0x3d2f94('0x20')||_0xf6cb64[_0x3d2f94('0x1')]===_0x3d2f94('0x12');});return{'rows':_0x4f0adc,'count':_0x4f0adc[_0x48e401('0xe')]};}return null;})[_0x4ffa76('0x3')](respondWithResult(_0x19bb29,null))['catch'](handleError(_0x19bb29,null));},exports[_0x5d907d('0x25')]=function(_0x28af7b,_0x1ec0b3){const _0xeabde=_0x5d907d;return pm2[_0xeabde('0x1c')](_0x28af7b[_0xeabde('0x19')]['id'])[_0xeabde('0x3')](respondWithResult(_0x1ec0b3,null))[_0xeabde('0x3')](handleEntityNotFound(_0x1ec0b3,null))[_0xeabde('0x1b')](handleError(_0x1ec0b3,null));},exports['create']=function(_0x1706de,_0x3f66db){const _0x13c0a=_0x5d907d;if(_0x1706de['body'][_0x13c0a('0x1')]&&_0x1706de['body'][_0x13c0a('0x7')]){const _0x58bbc3=path[_0x13c0a('0x0')](__dirname,_0x13c0a('0x6'),_0x1706de[_0x13c0a('0x2')]['script']),_0x405fcb=process[_0x13c0a('0x1d')]();return process[_0x13c0a('0x21')](path[_0x13c0a('0x5')](_0x58bbc3)),execChildProcess()[_0x13c0a('0x3')](function(){const _0x7d38ec=_0x13c0a;return process[_0x7d38ec('0x21')](_0x405fcb),pm2['start']({'name':_0x1706de[_0x7d38ec('0x2')][_0x7d38ec('0x1')],'script':_0x58bbc3});})[_0x13c0a('0x3')](function(_0x3f1199){return pm2['dump'](),_0x3f1199[0x0];})[_0x13c0a('0x3')](respondWithResult(_0x3f66db,0xc9))[_0x13c0a('0x1b')](handleError(_0x3f66db,null));}else return _0x3f66db[_0x13c0a('0x23')](0x1f4)['send']({'message':'Missing\x20name\x20and/or\x20path'});},exports[_0x5d907d('0xf')]=function(_0x109b70,_0xa251d2){const _0x376cb0=_0x5d907d;_0x109b70[_0x376cb0('0x2')]['id']&&delete _0x109b70[_0x376cb0('0x2')]['id'];const _0x498a59={'online':_0x376cb0('0x11'),'stopped':_0x376cb0('0x22')};return typeof _0x498a59[_0x109b70[_0x376cb0('0x2')]['status']]!==_0x376cb0('0x4')?pm2[_0x498a59[_0x109b70['body'][_0x376cb0('0x23')]]](_0x109b70[_0x376cb0('0x19')]['id'])[_0x376cb0('0x3')](respondWithResult(_0xa251d2,0xc8))[_0x376cb0('0x1b')](handleError(_0xa251d2,null)):_0xa251d2[_0x376cb0('0x23')](0x1f4)[_0x376cb0('0x14')]({'message':_0x376cb0('0xb')});},exports[_0x5d907d('0x1a')]=function(_0x636f8f,_0x5d0fc2){const _0xe69b11=_0x5d907d;return _0x636f8f[_0xe69b11('0x2')]['id']&&delete _0x636f8f[_0xe69b11('0x2')]['id'],_0x636f8f['params']['id']?pm2[_0xe69b11('0xd')](_0x636f8f[_0xe69b11('0x19')]['id'])['then'](function(_0x389546){return pm2['dump'](),_0x389546[0x0];})[_0xe69b11('0x3')](respondWithResult(_0x5d0fc2,null))[_0xe69b11('0x1b')](handleError(_0x5d0fc2,null)):_0x5d0fc2[_0xe69b11('0x23')](0x1f4)[_0xe69b11('0x14')]({'message':_0xe69b11('0xc')});}; \ No newline at end of file +const a625_0x4d9c=['sendStatus','params','join','path','then','exec','show','undefined','script','list','stack','send','Unknown\x20id','cwd','stop','express','info','reject','catch','motion2','child_process','../../config/pm2','../../files/plugins','body','destroy','start','npm\x20install','dump','name','chdir','Missing\x20name\x20and/or\x20path','error','json','lodash','index','restart','status','dirname'];(function(_0x1ce4a3,_0x16034a){const _0x4d9cc0=function(_0x1f7aac){while(--_0x1f7aac){_0x1ce4a3['push'](_0x1ce4a3['shift']());}};_0x4d9cc0(++_0x16034a);}(a625_0x4d9c,0xf7));const a625_0x1f7a=function(_0x1ce4a3,_0x16034a){_0x1ce4a3=_0x1ce4a3-0x1e2;let _0x4d9cc0=a625_0x4d9c[_0x1ce4a3];return _0x4d9cc0;};const a625_0x18e0e5=a625_0x1f7a;'use strict';const _=require(a625_0x18e0e5(0x1f0)),pm2=require(a625_0x18e0e5(0x1e4)),logger=require('../../config/logger')('api'),path=require(a625_0x18e0e5(0x1f8)),exec=require(a625_0x18e0e5(0x1e3))[a625_0x18e0e5(0x1fa)];function handleEntityNotFound(_0x540c7e){return function(_0x27f5ce){const _0x3e1236=a625_0x1f7a;return!_0x27f5ce&&_0x540c7e[_0x3e1236(0x1f5)](0x194),_0x27f5ce;};}function respondWithResult(_0x18568a,_0x1aea57){return _0x1aea57=_0x1aea57||0xc8,function(_0x5a60c6){const _0x4d8059=a625_0x1f7a;if(_0x5a60c6)return _0x18568a[_0x4d8059(0x1f3)](_0x1aea57)[_0x4d8059(0x1ef)](_0x5a60c6);return null;};}function handleError(_0xced8b,_0x1e6642){return _0x1e6642=_0x1e6642||0x1f4,function(_0x3a1245){const _0x160648=a625_0x1f7a;logger[_0x160648(0x1ee)](_0x3a1245[_0x160648(0x1ff)]),_0x3a1245[_0x160648(0x1eb)]&&delete _0x3a1245[_0x160648(0x1eb)],_0xced8b[_0x160648(0x1f3)](_0x1e6642)[_0x160648(0x200)](_0x3a1245);};}function execChildProcess(){return new Promise(function(_0x4145e5,_0x4c942a){const _0x1c3ee0=a625_0x1f7a;exec(_0x1c3ee0(0x1e9),function(_0x363006,_0x40ef3e,_0x2ce131){const _0x290f64=_0x1c3ee0;logger[_0x290f64(0x205)](_0x40ef3e),logger[_0x290f64(0x205)](_0x2ce131);if(_0x363006)return logger['error'](_0x363006),_0x4c942a(_0x363006);return _0x4145e5(_0x40ef3e);});});}exports[a625_0x18e0e5(0x1f1)]=function(_0x3495c8,_0x447c27){const _0x14dcc3=a625_0x18e0e5;return pm2[_0x14dcc3(0x1fe)]()[_0x14dcc3(0x1f9)](function(_0x3f6633){const _0x23455c=_0x14dcc3;if(_0x3f6633){const _0x3363ee=_[_0x23455c(0x206)](_0x3f6633,function(_0x14fbd4){const _0x2e038a=_0x23455c;return _0x14fbd4[_0x2e038a(0x1eb)]===_0x2e038a(0x204)||_0x14fbd4[_0x2e038a(0x1eb)]===_0x2e038a(0x1e2);});return{'rows':_0x3363ee,'count':_0x3363ee['length']};}return null;})[_0x14dcc3(0x1f9)](respondWithResult(_0x447c27,null))[_0x14dcc3(0x207)](handleError(_0x447c27,null));},exports[a625_0x18e0e5(0x1fb)]=function(_0x1d6055,_0x345ea1){const _0x785988=a625_0x18e0e5;return pm2['describe'](_0x1d6055['params']['id'])[_0x785988(0x1f9)](respondWithResult(_0x345ea1,null))[_0x785988(0x1f9)](handleEntityNotFound(_0x345ea1,null))[_0x785988(0x207)](handleError(_0x345ea1,null));},exports['create']=function(_0x139374,_0x7915c0){const _0x3838a2=a625_0x18e0e5;if(_0x139374[_0x3838a2(0x1e6)][_0x3838a2(0x1eb)]&&_0x139374['body'][_0x3838a2(0x1fd)]){const _0x2a3b84=path[_0x3838a2(0x1f7)](__dirname,_0x3838a2(0x1e5),_0x139374[_0x3838a2(0x1e6)][_0x3838a2(0x1fd)]),_0x4469d0=process[_0x3838a2(0x202)]();return process[_0x3838a2(0x1ec)](path[_0x3838a2(0x1f4)](_0x2a3b84)),execChildProcess()[_0x3838a2(0x1f9)](function(){const _0xd76d87=_0x3838a2;return process[_0xd76d87(0x1ec)](_0x4469d0),pm2[_0xd76d87(0x1e8)]({'name':_0x139374[_0xd76d87(0x1e6)]['name'],'script':_0x2a3b84});})[_0x3838a2(0x1f9)](function(_0x4b7265){const _0xb30118=_0x3838a2;return pm2[_0xb30118(0x1ea)](),_0x4b7265[0x0];})[_0x3838a2(0x1f9)](respondWithResult(_0x7915c0,0xc9))[_0x3838a2(0x207)](handleError(_0x7915c0,null));}else return _0x7915c0[_0x3838a2(0x1f3)](0x1f4)['send']({'message':_0x3838a2(0x1ed)});},exports['update']=function(_0x45843b,_0x5a9275){const _0x1d8e3b=a625_0x18e0e5;_0x45843b['body']['id']&&delete _0x45843b['body']['id'];const _0x1bda99={'online':_0x1d8e3b(0x1f2),'stopped':_0x1d8e3b(0x203)};return typeof _0x1bda99[_0x45843b[_0x1d8e3b(0x1e6)][_0x1d8e3b(0x1f3)]]!==_0x1d8e3b(0x1fc)?pm2[_0x1bda99[_0x45843b['body'][_0x1d8e3b(0x1f3)]]](_0x45843b[_0x1d8e3b(0x1f6)]['id'])[_0x1d8e3b(0x1f9)](respondWithResult(_0x5a9275,0xc8))[_0x1d8e3b(0x207)](handleError(_0x5a9275,null)):_0x5a9275['status'](0x1f4)[_0x1d8e3b(0x200)]({'message':'Unknown\x20status'});},exports[a625_0x18e0e5(0x1e7)]=function(_0x52f89b,_0x59ddf0){const _0x1ad9c2=a625_0x18e0e5;return _0x52f89b[_0x1ad9c2(0x1e6)]['id']&&delete _0x52f89b['body']['id'],_0x52f89b[_0x1ad9c2(0x1f6)]['id']?pm2['delete'](_0x52f89b[_0x1ad9c2(0x1f6)]['id'])['then'](function(_0x171263){const _0x5a02c4=_0x1ad9c2;return pm2[_0x5a02c4(0x1ea)](),_0x171263[0x0];})[_0x1ad9c2(0x1f9)](respondWithResult(_0x59ddf0,null))[_0x1ad9c2(0x207)](handleError(_0x59ddf0,null)):_0x59ddf0[_0x1ad9c2(0x1f3)](0x1f4)['send']({'message':_0x1ad9c2(0x201)});}; \ No newline at end of file diff --git a/server/api/reportAgentPreview/index.js b/server/api/reportAgentPreview/index.js index 672f996..67b829c 100644 --- a/server/api/reportAgentPreview/index.js +++ b/server/api/reportAgentPreview/index.js @@ -1 +1 @@ -const a522_0x3596=['Router','exports'];(function(_0x2db212,_0x3596df){const _0xa13d4b=function(_0x491fa8){while(--_0x491fa8){_0x2db212['push'](_0x2db212['shift']());}};_0xa13d4b(++_0x3596df);}(a522_0x3596,0xa2));const a522_0xa13d=function(_0x2db212,_0x3596df){_0x2db212=_0x2db212-0x0;let _0xa13d4b=a522_0x3596[_0x2db212];return _0xa13d4b;};const _0x44efaf=a522_0xa13d;'use strict';const express=require('express'),router=express[_0x44efaf('0x0')]();module[_0x44efaf('0x1')]=router; \ No newline at end of file +const a626_0x17df=['express','Router'];(function(_0x25f59f,_0x5a278f){const _0x17df13=function(_0x4de743){while(--_0x4de743){_0x25f59f['push'](_0x25f59f['shift']());}};_0x17df13(++_0x5a278f);}(a626_0x17df,0x1de));const a626_0x4de7=function(_0x25f59f,_0x5a278f){_0x25f59f=_0x25f59f-0xaa;let _0x17df13=a626_0x17df[_0x25f59f];return _0x17df13;};const a626_0x139fdc=a626_0x4de7;'use strict';const express=require(a626_0x139fdc(0xaa)),router=express[a626_0x139fdc(0xab)]();module['exports']=router; \ No newline at end of file diff --git a/server/api/reportAgentPreview/reportAgentPreview.attributes.js b/server/api/reportAgentPreview/reportAgentPreview.attributes.js index 22c8e39..0e8872a 100644 --- a/server/api/reportAgentPreview/reportAgentPreview.attributes.js +++ b/server/api/reportAgentPreview/reportAgentPreview.attributes.js @@ -1 +1 @@ -const a523_0x3ffb=['INTEGER','DATE','STRING'];(function(_0x4dcaa9,_0x3ffb76){const _0x4b4966=function(_0x4dd46a){while(--_0x4dd46a){_0x4dcaa9['push'](_0x4dcaa9['shift']());}};_0x4b4966(++_0x3ffb76);}(a523_0x3ffb,0x133));const a523_0x4b49=function(_0x4dcaa9,_0x3ffb76){_0x4dcaa9=_0x4dcaa9-0x0;let _0x4b4966=a523_0x3ffb[_0x4dcaa9];return _0x4b4966;};const _0x215877=a523_0x4b49;'use strict';const Sequelize=require('sequelize');module['exports']={'state':{'type':Sequelize[_0x215877('0x2')](0x2)},'statedesc':{'type':Sequelize[_0x215877('0x1')]},'scheduledat':{'type':Sequelize[_0x215877('0x0')]},'uniqueid':{'type':Sequelize['STRING']},'starttime':{'type':Sequelize['DATE']},'responsetime':{'type':Sequelize[_0x215877('0x0')]},'ringtime':{'type':Sequelize[_0x215877('0x2')],'defaultValue':0x0},'campaign':{'type':Sequelize['STRING']},'campaigntype':{'type':Sequelize['STRING']},'membername':{'type':Sequelize[_0x215877('0x1')]}}; \ No newline at end of file +const a627_0x2a1f=['INTEGER','STRING','exports','DATE','attributes'];(function(_0x3455ac,_0x584188){const _0x2a1fec=function(_0x4c6ec6){while(--_0x4c6ec6){_0x3455ac['push'](_0x3455ac['shift']());}};_0x2a1fec(++_0x584188);}(a627_0x2a1f,0x10e));const a627_0x4c6e=function(_0x3455ac,_0x584188){_0x3455ac=_0x3455ac-0x1ca;let _0x2a1fec=a627_0x2a1f[_0x3455ac];return _0x2a1fec;};const a627_0x558598=a627_0x4c6e;'use strict';const {DataTypes}=require('sequelize'),attributes={'state':{'type':DataTypes[a627_0x558598(0x1ca)]({'length':0x2})},'statedesc':{'type':DataTypes[a627_0x558598(0x1cb)]},'scheduledat':{'type':DataTypes[a627_0x558598(0x1cd)]},'uniqueid':{'type':DataTypes[a627_0x558598(0x1cb)]},'starttime':{'type':DataTypes[a627_0x558598(0x1cd)]},'responsetime':{'type':DataTypes[a627_0x558598(0x1cd)]},'ringtime':{'type':DataTypes[a627_0x558598(0x1ca)],'defaultValue':0x0},'campaign':{'type':DataTypes[a627_0x558598(0x1cb)]},'campaigntype':{'type':DataTypes[a627_0x558598(0x1cb)]},'membername':{'type':DataTypes[a627_0x558598(0x1cb)]}};module[a627_0x558598(0x1cc)][a627_0x558598(0x1ce)]=attributes; \ No newline at end of file diff --git a/server/api/reportAgentPreview/reportAgentPreview.model.js b/server/api/reportAgentPreview/reportAgentPreview.model.js index b4710e3..49971dd 100644 --- a/server/api/reportAgentPreview/reportAgentPreview.model.js +++ b/server/api/reportAgentPreview/reportAgentPreview.model.js @@ -1 +1 @@ -const a524_0x26f4=['report_agent_preview','ReportAgentPreview','exports'];(function(_0x5c9b13,_0x26f4d1){const _0x581432=function(_0x4d803f){while(--_0x4d803f){_0x5c9b13['push'](_0x5c9b13['shift']());}};_0x581432(++_0x26f4d1);}(a524_0x26f4,0xd6));const a524_0x5814=function(_0x5c9b13,_0x26f4d1){_0x5c9b13=_0x5c9b13-0x0;let _0x581432=a524_0x26f4[_0x5c9b13];return _0x581432;};const _0x94b7b9=a524_0x5814;'use strict';const attributes=require('./reportAgentPreview.attributes');module[_0x94b7b9('0x1')]=function(_0x4d803f){const _0x5399db=_0x94b7b9,_0x4dd1cc=_0x4d803f['define'](_0x5399db('0x0'),attributes,{'tableName':_0x5399db('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x4dd1cc;}; \ No newline at end of file +const a628_0x1a69=['function','sequelize','ReportAgentPreview','init','exports','./reportAgentPreview.options','./reportAgentPreview.attributes'];(function(_0x4bfc5a,_0x5ca422){const _0x1a6938=function(_0x58038d){while(--_0x58038d){_0x4bfc5a['push'](_0x4bfc5a['shift']());}};_0x1a6938(++_0x5ca422);}(a628_0x1a69,0x17a));const a628_0x5803=function(_0x4bfc5a,_0x5ca422){_0x4bfc5a=_0x4bfc5a-0x1ba;let _0x1a6938=a628_0x1a69[_0x4bfc5a];return _0x1a6938;};const a628_0x2346bd=a628_0x5803;'use strict';const {Model}=require(a628_0x2346bd(0x1bb)),{attributes}=require(a628_0x2346bd(0x1c0)),{options}=require(a628_0x2346bd(0x1bf));class ReportAgentPreview extends Model{}function init(_0x4e5361,_0x434494){const _0x4e47ac=a628_0x2346bd,_0x2f58af=options(_0x4e5361),_0x532515=typeof _0x434494===_0x4e47ac(0x1ba)?_0x434494(_0x2f58af):_0x2f58af;return ReportAgentPreview['init'](attributes,_0x532515),ReportAgentPreview;}module[a628_0x2346bd(0x1be)][a628_0x2346bd(0x1bc)]=ReportAgentPreview,module['exports'][a628_0x2346bd(0x1bd)]=init; \ No newline at end of file diff --git a/server/api/reportAgentPreview/reportAgentPreview.options.js b/server/api/reportAgentPreview/reportAgentPreview.options.js new file mode 100644 index 0000000..7483f94 --- /dev/null +++ b/server/api/reportAgentPreview/reportAgentPreview.options.js @@ -0,0 +1 @@ +var a629_0x4223=['exports','options'];(function(_0x29861c,_0xb00cc5){var _0x42236b=function(_0x574bb0){while(--_0x574bb0){_0x29861c['push'](_0x29861c['shift']());}};_0x42236b(++_0xb00cc5);}(a629_0x4223,0xee));var a629_0x574b=function(_0x29861c,_0xb00cc5){_0x29861c=_0x29861c-0x1e0;var _0x42236b=a629_0x4223[_0x29861c];return _0x42236b;};var a629_0x28e1ce=a629_0x574b;function options(_0x2b16d3){return{'sequelize':_0x2b16d3,'tableName':'report_agent_preview','paranoid':![],'indexes':[],'timestamps':!![]};}module[a629_0x28e1ce(0x1e0)][a629_0x28e1ce(0x1e1)]=options; \ No newline at end of file diff --git a/server/api/reportAgentPreview/reportAgentPreview.rpc.js b/server/api/reportAgentPreview/reportAgentPreview.rpc.js index 3477cba..7e2046b 100644 --- a/server/api/reportAgentPreview/reportAgentPreview.rpc.js +++ b/server/api/reportAgentPreview/reportAgentPreview.rpc.js @@ -1 +1 @@ -const a525_0x2d26=['raw','catch','rpc','CreateReportAgentPreview','options','error','message','../../mysqldb','then','stringify','body','info','create'];(function(_0x4dad0a,_0x2d261e){const _0x5a843e=function(_0x2d76ed){while(--_0x2d76ed){_0x4dad0a['push'](_0x4dad0a['shift']());}};_0x5a843e(++_0x2d261e);}(a525_0x2d26,0x10b));const a525_0x5a84=function(_0x4dad0a,_0x2d261e){_0x4dad0a=_0x4dad0a-0x0;let _0x5a843e=a525_0x2d26[_0x4dad0a];return _0x5a843e;};const _0x24743b=a525_0x5a84;'use strict';const db=require(_0x24743b('0x0'))['db'],logger=require('../../config/logger')(_0x24743b('0x8'));exports[_0x24743b('0x9')]=function(_0x2d76ed){const _0x54dde6=this;return new Promise(function(_0x25b51f,_0x327947){const _0x79f1ec=a525_0x5a84;return db['ReportAgentPreview'][_0x79f1ec('0x5')](_0x2d76ed[_0x79f1ec('0x3')],{'raw':_0x2d76ed[_0x79f1ec('0xa')]?_0x2d76ed[_0x79f1ec('0xa')][_0x79f1ec('0x6')]===undefined?!![]:![]:!![]})[_0x79f1ec('0x1')](function(_0x3b83f6){const _0x576f79=_0x79f1ec;logger[_0x576f79('0x4')]('CreateReportAgentPreview',_0x2d76ed),logger['debug'](_0x576f79('0x9'),_0x2d76ed,JSON[_0x576f79('0x2')](_0x3b83f6)),_0x25b51f(_0x3b83f6);})[_0x79f1ec('0x7')](function(_0x56e7ac){const _0x2157cb=_0x79f1ec;logger[_0x2157cb('0xb')](_0x2157cb('0x9'),_0x56e7ac[_0x2157cb('0xc')],_0x2d76ed),_0x327947(_0x54dde6[_0x2157cb('0xb')](0x1f4,_0x56e7ac[_0x2157cb('0xc')]));});});}; \ No newline at end of file +const a630_0xc787=['message','../../config/logger','create','info','rpc','debug','catch','options','../../mysqldb','then','error','stringify','ReportAgentPreview','body','CreateReportAgentPreview'];(function(_0x23fc87,_0x25075b){const _0xc78750=function(_0xdd6c9b){while(--_0xdd6c9b){_0x23fc87['push'](_0x23fc87['shift']());}};_0xc78750(++_0x25075b);}(a630_0xc787,0xca));const a630_0xdd6c=function(_0x23fc87,_0x25075b){_0x23fc87=_0x23fc87-0x193;let _0xc78750=a630_0xc787[_0x23fc87];return _0xc78750;};const a630_0xfa1939=a630_0xdd6c;'use strict';const db=require(a630_0xfa1939(0x194))['db'],logger=require(a630_0xfa1939(0x19c))(a630_0xfa1939(0x19f));exports[a630_0xfa1939(0x19a)]=function(_0x2c33f7){const _0x35d9b5=this;return new Promise(function(_0x304e09,_0x3c138c){const _0x1d4ffe=a630_0xdd6c;return db[_0x1d4ffe(0x198)][_0x1d4ffe(0x19d)](_0x2c33f7[_0x1d4ffe(0x199)],{'raw':_0x2c33f7[_0x1d4ffe(0x193)]?_0x2c33f7[_0x1d4ffe(0x193)]['raw']===undefined?!![]:![]:!![]})[_0x1d4ffe(0x195)](function(_0xcee163){const _0x2e4f6b=_0x1d4ffe;logger[_0x2e4f6b(0x19e)](_0x2e4f6b(0x19a),_0x2c33f7),logger[_0x2e4f6b(0x1a0)](_0x2e4f6b(0x19a),_0x2c33f7,JSON[_0x2e4f6b(0x197)](_0xcee163)),_0x304e09(_0xcee163);})[_0x1d4ffe(0x1a1)](function(_0x11e166){const _0x36f29d=_0x1d4ffe;logger[_0x36f29d(0x196)]('CreateReportAgentPreview',_0x11e166[_0x36f29d(0x19b)],_0x2c33f7),_0x3c138c(_0x35d9b5[_0x36f29d(0x196)](0x1f4,_0x11e166[_0x36f29d(0x19b)]));});});}; \ No newline at end of file diff --git a/server/api/rpc/index.js b/server/api/rpc/index.js index bb4af67..798fd24 100644 --- a/server/api/rpc/index.js +++ b/server/api/rpc/index.js @@ -1 +1 @@ -const a526_0x2c24=['/voice/queues/channels/:uniqueid','/openchannel/queues/:id','/mail/queues/waitinginteractions','/whatsapp/queues/:id','mailQueues','voiceQueuesChannels','/chat/queues/:id','/chat/queues','/sms/queues/waitinginteractions','express','put','voiceQueuesChannelRedirect','/mail/queues','showWhatsappQueues','agents','Router','/trunks','/campaigns','/voice/queues/channels','mailQueuesWaitingInteractions','/whatsapp/queues/waitinginteractions','voiceQueues','/chat/queues/:id/notify','showMailQueues','outboundChannels','voiceQueuesChannelHangup','get','outbound','smsQueuesWaitingInteractions','/fax/queues/waitinginteractions','openchannel','agentNotify','/voice/queues','/openchannel/queues','/voice/queues/preview/:id','../../components/auth/service','/chat/queues/waitinginteractions','/sms/queues','/whatsapp/queues/:id/notify','/mail/queues/:id/notify','/outbound','fax','agentCapacity','sms','/voice/queues/:id','/voice/channels/:uniqueid/stopmixmonitor','/voice/queues/channels/:uniqueid/hangup','faxQueues','showOpenchannelQueues','faxAccounts','/fax/queues','isAuthenticated','/openchannel/queues/waitinginteractions','/agents','/mail/accounts','faxQueuesWaitingInteractions','/outbound/channels','/fax/queues/:id','post','voiceChannelStopMixMonitor','queueNotify','mailAccounts','openchannelQueuesWaitingInteractions','mail','/sms/queues/:id/notify','voiceChannels','./rpc.controller','voiceQueuesChannel','/telephones','/voice/channels','whatsappQueues','/sms/queues/:id','/openchannel/queues/:id/waitinginteractions','/agents/:id/notify','showSmsQueues','showFaxQueues','/voice/channels/:uniqueid/mixmonitor','telephones','/voice/queues/channels/:uniqueid/redirect/:exten','voiceChannelMixMonitor'];(function(_0x3d6354,_0x2c24d5){const _0x27cd95=function(_0x3d1e96){while(--_0x3d1e96){_0x3d6354['push'](_0x3d6354['shift']());}};_0x27cd95(++_0x2c24d5);}(a526_0x2c24,0xab));const a526_0x27cd=function(_0x3d6354,_0x2c24d5){_0x3d6354=_0x3d6354-0x0;let _0x27cd95=a526_0x2c24[_0x3d6354];return _0x27cd95;};const _0x3a9708=a526_0x27cd;'use strict';const express=require(_0x3a9708('0x4e')),router=express[_0x3a9708('0x4')](),auth=require(_0x3a9708('0x18')),controller=require(_0x3a9708('0x37'));router[_0x3a9708('0xf')](_0x3a9708('0x3a'),auth[_0x3a9708('0x28')](),controller[_0x3a9708('0x36')]),router[_0x3a9708('0xf')](_0x3a9708('0x41'),auth[_0x3a9708('0x28')](),controller[_0x3a9708('0x44')]),router[_0x3a9708('0xf')](_0x3a9708('0x22'),auth['isAuthenticated'](),controller[_0x3a9708('0x30')]),router[_0x3a9708('0xf')](_0x3a9708('0x15'),auth['isAuthenticated'](),controller[_0x3a9708('0xa')]),router[_0x3a9708('0xf')](_0x3a9708('0x4c'),auth['isAuthenticated'](),controller['chatQueues']),router[_0x3a9708('0xf')](_0x3a9708('0x1'),auth[_0x3a9708('0x28')](),controller[_0x3a9708('0x49')]),router['get'](_0x3a9708('0x2b'),auth['isAuthenticated'](),controller[_0x3a9708('0x32')]),router[_0x3a9708('0xf')](_0x3a9708('0x16'),auth[_0x3a9708('0x28')](),controller['openchannelQueues']),router[_0x3a9708('0xf')](_0x3a9708('0x1a'),auth['isAuthenticated'](),controller['smsQueues']),router['get']('/whatsapp/queues',auth[_0x3a9708('0x28')](),controller[_0x3a9708('0x3b')]),router[_0x3a9708('0xf')](_0x3a9708('0x27'),auth[_0x3a9708('0x28')](),controller[_0x3a9708('0x24')]),router[_0x3a9708('0xf')](_0x3a9708('0x17'),auth['isAuthenticated'](),controller['voiceQueuesPreview']),router[_0x3a9708('0xf')](_0x3a9708('0x7'),auth['isAuthenticated'](),controller[_0x3a9708('0x4a')]),router[_0x3a9708('0xf')](_0x3a9708('0x45'),auth['isAuthenticated'](),controller[_0x3a9708('0x38')]),router[_0x3a9708('0xf')](_0x3a9708('0x23'),auth[_0x3a9708('0x28')](),controller[_0x3a9708('0xe')]),router[_0x3a9708('0xf')](_0x3a9708('0x43'),auth[_0x3a9708('0x28')](),controller[_0x3a9708('0x0')]),router['get'](_0x3a9708('0x21'),auth[_0x3a9708('0x28')](),controller['showVoiceQueues']),router['get'](_0x3a9708('0x1d'),auth[_0x3a9708('0x28')](),controller[_0x3a9708('0x10')]),router[_0x3a9708('0xf')](_0x3a9708('0x2d'),auth[_0x3a9708('0x28')](),controller[_0x3a9708('0xd')]),router[_0x3a9708('0xf')](_0x3a9708('0x2a'),auth[_0x3a9708('0x28')](),controller[_0x3a9708('0x3')]),router[_0x3a9708('0x4f')]('/agents/:id/capacity',auth['isAuthenticated'](),controller[_0x3a9708('0x1f')]),router[_0x3a9708('0xf')](_0x3a9708('0x39'),auth[_0x3a9708('0x28')](),controller[_0x3a9708('0x42')]),router[_0x3a9708('0xf')](_0x3a9708('0x5'),auth[_0x3a9708('0x28')](),controller['trunks']),router[_0x3a9708('0xf')](_0x3a9708('0x6'),auth[_0x3a9708('0x28')](),controller['campaigns']),router[_0x3a9708('0xf')]('/fax/accounts',auth[_0x3a9708('0x28')](),controller[_0x3a9708('0x26')]),router[_0x3a9708('0xf')](_0x3a9708('0x19'),auth[_0x3a9708('0x28')](),controller['chatQueuesWaitingInteractions']),router[_0x3a9708('0xf')](_0x3a9708('0x47'),auth['isAuthenticated'](),controller[_0x3a9708('0x8')]),router['get'](_0x3a9708('0x29'),auth['isAuthenticated'](),controller[_0x3a9708('0x33')]),router[_0x3a9708('0xf')](_0x3a9708('0x3d'),auth['isAuthenticated'](),controller['openchannelQueuesIdWaitingInteractions']),router[_0x3a9708('0xf')](_0x3a9708('0x4d'),auth['isAuthenticated'](),controller[_0x3a9708('0x11')]),router[_0x3a9708('0xf')](_0x3a9708('0x9'),auth[_0x3a9708('0x28')](),controller['whatsappQueuesWaitingInteractions']),router[_0x3a9708('0xf')](_0x3a9708('0x12'),auth[_0x3a9708('0x28')](),controller[_0x3a9708('0x2c')]),router[_0x3a9708('0x2f')](_0x3a9708('0x1c'),auth[_0x3a9708('0x28')](),controller[_0x3a9708('0x31')](_0x3a9708('0x34'))),router[_0x3a9708('0xf')]('/mail/queues/:id',auth[_0x3a9708('0x28')](),controller[_0x3a9708('0xc')]),router[_0x3a9708('0x2f')](_0x3a9708('0xb'),auth[_0x3a9708('0x28')](),controller[_0x3a9708('0x31')]('chat')),router[_0x3a9708('0xf')](_0x3a9708('0x4b'),auth['isAuthenticated'](),controller['showChatQueues']),router[_0x3a9708('0x2f')]('/fax/queues/:id/notify',auth[_0x3a9708('0x28')](),controller['queueNotify'](_0x3a9708('0x1e'))),router['get'](_0x3a9708('0x2e'),auth[_0x3a9708('0x28')](),controller[_0x3a9708('0x40')]),router[_0x3a9708('0x2f')]('/openchannel/queues/:id/notify',auth['isAuthenticated'](),controller[_0x3a9708('0x31')](_0x3a9708('0x13'))),router['get'](_0x3a9708('0x46'),auth[_0x3a9708('0x28')](),controller[_0x3a9708('0x25')]),router[_0x3a9708('0x2f')](_0x3a9708('0x35'),auth[_0x3a9708('0x28')](),controller[_0x3a9708('0x31')](_0x3a9708('0x20'))),router[_0x3a9708('0x2f')](_0x3a9708('0x1b'),auth[_0x3a9708('0x28')](),controller[_0x3a9708('0x31')]('whatsapp')),router[_0x3a9708('0xf')](_0x3a9708('0x3c'),auth[_0x3a9708('0x28')](),controller[_0x3a9708('0x3f')]),router[_0x3a9708('0xf')](_0x3a9708('0x48'),auth[_0x3a9708('0x28')](),controller[_0x3a9708('0x2')]),router[_0x3a9708('0x2f')](_0x3a9708('0x3e'),auth[_0x3a9708('0x28')](),controller[_0x3a9708('0x14')]),module['exports']=router; \ No newline at end of file +const a631_0x6e9f=['whatsapp','/voice/queues/channels','queueNotify','mailQueuesWaitingInteractions','faxAccounts','isAuthenticated','../../components/auth/service','/fax/queues/waitinginteractions','express','voiceQueuesChannels','get','put','voiceQueuesChannelHangup','/openchannel/queues','/voice/channels','/fax/queues/:id/notify','/openchannel/queues/:id','mailQueues','showOpenchannelQueues','telephones','faxQueues','agents','/voice/queues/:id','voiceChannelStopMixMonitor','/mail/accounts','/voice/queues/channels/:uniqueid/redirect/:exten','whatsappQueuesWaitingInteractions','/chat/queues/waitinginteractions','voiceChannelMixMonitor','voiceQueuesChannelRedirect','/outbound','/voice/queues/channels/:uniqueid','/whatsapp/queues','voiceChannels','smsQueuesWaitingInteractions','/trunks','/voice/queues/channels/:uniqueid/hangup','/campaigns','chatQueuesWaitingInteractions','/openchannel/queues/:id/notify','/voice/queues/preview/:id','showMailQueues','campaigns','/telephones','chat','showWhatsappQueues','showFaxQueues','exports','outboundChannels','/voice/channels/:uniqueid/mixmonitor','voiceQueuesChannel','/voice/queues','/openchannel/queues/waitinginteractions','/mail/queues/:id/notify','fax','sms','/whatsapp/queues/:id/notify','/sms/queues','openchannelQueues','/fax/queues','/mail/queues/:id','/fax/queues/:id','/agents/:id/capacity','post','voiceQueues','/chat/queues/:id/notify','/fax/accounts','showVoiceQueues','/sms/queues/waitinginteractions','openchannelQueuesWaitingInteractions','/outbound/channels','/agents','/agents/:id/notify','/sms/queues/:id/notify','mailAccounts'];(function(_0x21f5d4,_0x7edab7){const _0x6e9f77=function(_0x480fd3){while(--_0x480fd3){_0x21f5d4['push'](_0x21f5d4['shift']());}};_0x6e9f77(++_0x7edab7);}(a631_0x6e9f,0x172));const a631_0x480f=function(_0x21f5d4,_0x7edab7){_0x21f5d4=_0x21f5d4-0x1ac;let _0x6e9f77=a631_0x6e9f[_0x21f5d4];return _0x6e9f77;};const a631_0x431758=a631_0x480f;'use strict';const express=require(a631_0x431758(0x1b9)),router=express['Router'](),auth=require(a631_0x431758(0x1b7)),controller=require('./rpc.controller');router[a631_0x431758(0x1bb)](a631_0x431758(0x1bf),auth[a631_0x431758(0x1b6)](),controller[a631_0x431758(0x1d2)]),router[a631_0x431758(0x1bb)](a631_0x431758(0x1e2),auth[a631_0x431758(0x1b6)](),controller[a631_0x431758(0x1cd)]),router[a631_0x431758(0x1bb)]('/voice/channels/:uniqueid/stopmixmonitor',auth[a631_0x431758(0x1b6)](),controller[a631_0x431758(0x1c8)]),router[a631_0x431758(0x1bb)](a631_0x431758(0x1e4),auth['isAuthenticated'](),controller[a631_0x431758(0x1f1)]),router[a631_0x431758(0x1bb)]('/chat/queues',auth[a631_0x431758(0x1b6)](),controller['chatQueues']),router[a631_0x431758(0x1bb)]('/mail/queues',auth['isAuthenticated'](),controller[a631_0x431758(0x1c2)]),router[a631_0x431758(0x1bb)](a631_0x431758(0x1c9),auth['isAuthenticated'](),controller[a631_0x431758(0x1b0)]),router[a631_0x431758(0x1bb)](a631_0x431758(0x1be),auth['isAuthenticated'](),controller[a631_0x431758(0x1eb)]),router[a631_0x431758(0x1bb)](a631_0x431758(0x1ea),auth[a631_0x431758(0x1b6)](),controller['smsQueues']),router[a631_0x431758(0x1bb)](a631_0x431758(0x1d1),auth[a631_0x431758(0x1b6)](),controller['whatsappQueues']),router[a631_0x431758(0x1bb)](a631_0x431758(0x1ec),auth[a631_0x431758(0x1b6)](),controller[a631_0x431758(0x1c5)]),router[a631_0x431758(0x1bb)](a631_0x431758(0x1d9),auth['isAuthenticated'](),controller['voiceQueuesPreview']),router[a631_0x431758(0x1bb)](a631_0x431758(0x1b2),auth['isAuthenticated'](),controller[a631_0x431758(0x1ba)]),router[a631_0x431758(0x1bb)](a631_0x431758(0x1d0),auth['isAuthenticated'](),controller[a631_0x431758(0x1e3)]),router[a631_0x431758(0x1bb)](a631_0x431758(0x1d5),auth[a631_0x431758(0x1b6)](),controller[a631_0x431758(0x1bd)]),router[a631_0x431758(0x1bb)](a631_0x431758(0x1ca),auth[a631_0x431758(0x1b6)](),controller[a631_0x431758(0x1ce)]),router[a631_0x431758(0x1bb)](a631_0x431758(0x1c7),auth['isAuthenticated'](),controller[a631_0x431758(0x1f4)]),router[a631_0x431758(0x1bb)](a631_0x431758(0x1cf),auth[a631_0x431758(0x1b6)](),controller['outbound']),router['get'](a631_0x431758(0x1ac),auth[a631_0x431758(0x1b6)](),controller[a631_0x431758(0x1e1)]),router[a631_0x431758(0x1bb)](a631_0x431758(0x1ad),auth[a631_0x431758(0x1b6)](),controller[a631_0x431758(0x1c6)]),router[a631_0x431758(0x1bc)](a631_0x431758(0x1ef),auth['isAuthenticated'](),controller['agentCapacity']),router[a631_0x431758(0x1bb)](a631_0x431758(0x1dc),auth[a631_0x431758(0x1b6)](),controller[a631_0x431758(0x1c4)]),router['get'](a631_0x431758(0x1d4),auth[a631_0x431758(0x1b6)](),controller['trunks']),router[a631_0x431758(0x1bb)](a631_0x431758(0x1d6),auth[a631_0x431758(0x1b6)](),controller[a631_0x431758(0x1db)]),router['get'](a631_0x431758(0x1f3),auth[a631_0x431758(0x1b6)](),controller[a631_0x431758(0x1b5)]),router[a631_0x431758(0x1bb)](a631_0x431758(0x1cc),auth['isAuthenticated'](),controller[a631_0x431758(0x1d7)]),router[a631_0x431758(0x1bb)]('/mail/queues/waitinginteractions',auth[a631_0x431758(0x1b6)](),controller[a631_0x431758(0x1b4)]),router[a631_0x431758(0x1bb)](a631_0x431758(0x1e5),auth[a631_0x431758(0x1b6)](),controller[a631_0x431758(0x1f6)]),router[a631_0x431758(0x1bb)]('/openchannel/queues/:id/waitinginteractions',auth['isAuthenticated'](),controller['openchannelQueuesIdWaitingInteractions']),router['get'](a631_0x431758(0x1f5),auth[a631_0x431758(0x1b6)](),controller[a631_0x431758(0x1d3)]),router[a631_0x431758(0x1bb)]('/whatsapp/queues/waitinginteractions',auth[a631_0x431758(0x1b6)](),controller[a631_0x431758(0x1cb)]),router[a631_0x431758(0x1bb)](a631_0x431758(0x1b8),auth[a631_0x431758(0x1b6)](),controller['faxQueuesWaitingInteractions']),router[a631_0x431758(0x1f0)](a631_0x431758(0x1e6),auth[a631_0x431758(0x1b6)](),controller[a631_0x431758(0x1b3)]('mail')),router['get'](a631_0x431758(0x1ed),auth[a631_0x431758(0x1b6)](),controller[a631_0x431758(0x1da)]),router[a631_0x431758(0x1f0)](a631_0x431758(0x1f2),auth[a631_0x431758(0x1b6)](),controller[a631_0x431758(0x1b3)](a631_0x431758(0x1dd))),router['get']('/chat/queues/:id',auth[a631_0x431758(0x1b6)](),controller['showChatQueues']),router[a631_0x431758(0x1f0)](a631_0x431758(0x1c0),auth['isAuthenticated'](),controller[a631_0x431758(0x1b3)](a631_0x431758(0x1e7))),router[a631_0x431758(0x1bb)](a631_0x431758(0x1ee),auth[a631_0x431758(0x1b6)](),controller[a631_0x431758(0x1df)]),router['post'](a631_0x431758(0x1d8),auth[a631_0x431758(0x1b6)](),controller[a631_0x431758(0x1b3)]('openchannel')),router[a631_0x431758(0x1bb)](a631_0x431758(0x1c1),auth[a631_0x431758(0x1b6)](),controller[a631_0x431758(0x1c3)]),router[a631_0x431758(0x1f0)](a631_0x431758(0x1af),auth[a631_0x431758(0x1b6)](),controller[a631_0x431758(0x1b3)](a631_0x431758(0x1e8))),router[a631_0x431758(0x1f0)](a631_0x431758(0x1e9),auth[a631_0x431758(0x1b6)](),controller[a631_0x431758(0x1b3)](a631_0x431758(0x1b1))),router[a631_0x431758(0x1bb)]('/sms/queues/:id',auth[a631_0x431758(0x1b6)](),controller['showSmsQueues']),router[a631_0x431758(0x1bb)]('/whatsapp/queues/:id',auth['isAuthenticated'](),controller[a631_0x431758(0x1de)]),router['post'](a631_0x431758(0x1ae),auth[a631_0x431758(0x1b6)](),controller['agentNotify']),module[a631_0x431758(0x1e0)]=router; \ No newline at end of file diff --git a/server/api/rpc/rpc.controller.js b/server/api/rpc/rpc.controller.js index 9ab2c27..3879896 100644 --- a/server/api/rpc/rpc.controller.js +++ b/server/api/rpc/rpc.controller.js @@ -1 +1 @@ -const a527_0x24cc=['Telephones','ChatQueues','Message','then','WhatsappQueues','request','agentTransferTimeout','openchannelQueuesIdWaitingInteractions','name','status','voiceQueuesChannelRedirect','OutboundChannels','whatsappQueues','notIn','telephones','INTERACTION','VoiceQueuesChannel','sendStatus','interaction','VoiceQueues','SmsQueues','channel','../../mysqldb','chatQueues','smsQueuesWaitingInteractions','client','agent','undefined','error','catch','findOrCreate','agents','Agents','params','VoiceQueuesPreview','create','indexOf','voiceChannels','User','showChatQueues','Account','user','queueTransferTimeout','rows','voiceQueues','AgentCapacity','Interaction','Trunks','MailAccounts','Start','outboundChannels','format','VoiceChannels','FaxQueuesWaitingInteractions','Queue','message','showOpenchannelQueues','update','util','Outbound','queue_id','From','OpenchannelQueuesWaitingInteractions','MessageId','whatsappQueuesWaitingInteractions','trunks','capacity','MailQueuesWaitingInteractions','uniq','SmsQueuesWaitingInteractions','http','showVoiceQueues','TransferReport','voiceQueuesChannel','showMailQueues','*,*,*,*','ChatQueuesWaitingInteractions','faxQueues','MailQueues','mailQueuesWaitingInteractions','merge','map','outbound','VoiceQueuesChannelHangup','length','openchannelQueues','isNil','agentCapacity','body','VoiceQueuesChannels','code','type','mailAccounts','FaxAccounts','query','showSmsQueues','result','\x20Queue\x20not\x20found','\x20Message\x20not\x20found','OpenchannelQueues','findOne','queue','MemberReport','jayson/promise','capitalize','smsQueues','YYYY-MM-DD\x20HH:mm:ss','SIP/%s','showWhatsappQueues','Website','voiceQueuesChannels','interface','openchannelQueuesWaitingInteractions','FaxQueues','chatQueuesWaitingInteractions','showFaxQueues','queueNotify','Agent\x20not\x20found','Channel\x20field\x20is\x20mandatory','filter','json'];(function(_0x19b8f0,_0x24cc64){const _0x440f6f=function(_0x426c91){while(--_0x426c91){_0x19b8f0['push'](_0x19b8f0['shift']());}};_0x440f6f(++_0x24cc64);}(a527_0x24cc,0x1bf));const a527_0x440f=function(_0x19b8f0,_0x24cc64){_0x19b8f0=_0x19b8f0-0x0;let _0x440f6f=a527_0x24cc[_0x19b8f0];return _0x440f6f;};const _0x4d7aac=a527_0x440f;'use strict';const moment=require('moment'),_=require('lodash'),util=require(_0x4d7aac('0x5f')),db=require(_0x4d7aac('0x3b'))['db'],{Op}=require('sequelize'),logger=require('../../config/logger')('api'),jayson=require(_0x4d7aac('0x13')),amiClient=jayson[_0x4d7aac('0x3e')][_0x4d7aac('0x6b')]({'port':0x232a}),mailClient=jayson['client'][_0x4d7aac('0x6b')]({'port':0x232b}),routingClient=jayson[_0x4d7aac('0x3e')][_0x4d7aac('0x6b')]({'port':0x232c});function respondWithRpcPromise(_0x426c91,_0x3c4d04,_0x5930c1){return new Promise(function(_0x5510d4,_0x3c6c5f){const _0x2ddfd5=a527_0x440f,_0x4021d3=_0x5930c1?_0x5930c1:amiClient;return _0x4021d3[_0x2ddfd5('0x2a')](_0x426c91,_0x3c4d04)[_0x2ddfd5('0x28')](function(_0x453aed){const _0x2626bf=_0x2ddfd5;if(_0x453aed['error']){if(_0x453aed['error'][_0x2626bf('0x6')]===0x1f4)return _0x3c6c5f(_0x453aed[_0x2626bf('0x41')][_0x2626bf('0x5c')]);return _0x5510d4(_0x453aed['error']['message']);}else _0x5510d4(_0x453aed[_0x2626bf('0xc')]);})[_0x2ddfd5('0x42')](function(_0x4f5609){_0x3c6c5f(_0x4f5609);});});}function respondWithResult(_0x6673d0,_0x5374bd){return _0x5374bd=_0x5374bd||0xc8,function(_0x4855e2){const _0x4ae398=a527_0x440f;if(_0x4855e2)return _0x6673d0[_0x4ae398('0x2e')](_0x5374bd)[_0x4ae398('0x24')](_0x4855e2);return _0x6673d0[_0x4ae398('0x36')](0x194);};}function handleError(_0x37c08f,_0x49aa8c){return _0x49aa8c=_0x49aa8c||0x1f4,function(_0x511be4){const _0x240822=a527_0x440f;logger[_0x240822('0x41')](_0x511be4['stack']),_0x511be4['name']&&delete _0x511be4[_0x240822('0x2d')],_0x37c08f['status'](_0x49aa8c)['send'](_0x511be4);};}function findById(_0x5de227){return function(_0x2e26c3){const _0x2b3a33=a527_0x440f;if(!_[_0x2b3a33('0x2')](_0x5de227)&&!_[_0x2b3a33('0x2')](_0x2e26c3)&&!_[_0x2b3a33('0x2')](_0x2e26c3[_0x2b3a33('0x50')]))return _['find'](_0x2e26c3[_0x2b3a33('0x50')],function(_0x4c58f7){return _0x4c58f7['id']==_0x5de227;});return null;};}exports[_0x4d7aac('0x4a')]=function(_0x266b48,_0x3bd328){const _0x6d0fa1=_0x4d7aac;return respondWithRpcPromise(_0x6d0fa1('0x59'),_0x266b48[_0x6d0fa1('0xa')])[_0x6d0fa1('0x28')](respondWithResult(_0x3bd328,null))[_0x6d0fa1('0x42')](handleError(_0x3bd328,null));},exports['voiceChannelMixMonitor']=function(_0x2faf41,_0x4eb530){const _0x4e2d16=_0x4d7aac;return respondWithRpcPromise('VoiceChannelMixMonitor',_[_0x4e2d16('0x75')](_0x2faf41[_0x4e2d16('0xa')],_0x2faf41['params']))['then'](respondWithResult(_0x4eb530,null))['catch'](handleError(_0x4eb530,null));},exports['voiceChannelStopMixMonitor']=function(_0x463bd1,_0x365329){const _0x26665a=_0x4d7aac;return respondWithRpcPromise('VoiceChannelStopMixMonitor',_[_0x26665a('0x75')](_0x463bd1[_0x26665a('0xa')],_0x463bd1['params']))[_0x26665a('0x28')](respondWithResult(_0x365329,null))['catch'](handleError(_0x365329,null));},exports[_0x4d7aac('0x51')]=function(_0x1a9462,_0x2c248f){const _0x21116d=_0x4d7aac;return respondWithRpcPromise(_0x21116d('0x38'),_0x1a9462[_0x21116d('0xa')])[_0x21116d('0x28')](respondWithResult(_0x2c248f,null))[_0x21116d('0x42')](handleError(_0x2c248f,null));},exports[_0x4d7aac('0x6c')]=function(_0x1b4852,_0x389eb3){const _0x9227b3=_0x4d7aac;return respondWithRpcPromise(_0x9227b3('0x38'),_0x1b4852[_0x9227b3('0xa')])[_0x9227b3('0x28')](findById(_0x1b4852[_0x9227b3('0x46')]['id']))[_0x9227b3('0x28')](respondWithResult(_0x389eb3,null))[_0x9227b3('0x42')](handleError(_0x389eb3,null));},exports['voiceQueuesPreview']=function(_0x10a5cd,_0x168771){const _0x289e24=_0x4d7aac;return respondWithRpcPromise(_0x289e24('0x47'),_[_0x289e24('0x75')](_0x10a5cd[_0x289e24('0xa')],_0x10a5cd[_0x289e24('0x46')]))['then'](respondWithResult(_0x168771,null))[_0x289e24('0x42')](handleError(_0x168771,null));},exports[_0x4d7aac('0x1a')]=function(_0x4d3bfe,_0x4e04fe){const _0x1d3706=_0x4d7aac;return respondWithRpcPromise(_0x1d3706('0x5'),_0x4d3bfe['query'])[_0x1d3706('0x28')](respondWithResult(_0x4e04fe,null))[_0x1d3706('0x42')](handleError(_0x4e04fe,null));},exports[_0x4d7aac('0x6e')]=function(_0x55cdac,_0x4638de){const _0x526354=_0x4d7aac;return respondWithRpcPromise(_0x526354('0x35'),_['merge'](_0x55cdac[_0x526354('0xa')],_0x55cdac[_0x526354('0x46')]))[_0x526354('0x28')](respondWithResult(_0x4638de,null))[_0x526354('0x42')](handleError(_0x4638de,null));},exports['voiceQueuesChannelHangup']=function(_0x1e7642,_0x4bbb15){const _0x35dee9=_0x4d7aac;return respondWithRpcPromise(_0x35dee9('0x78'),_[_0x35dee9('0x75')](_0x1e7642['query'],_0x1e7642[_0x35dee9('0x46')]))['then'](respondWithResult(_0x4bbb15,null))[_0x35dee9('0x42')](handleError(_0x4bbb15,null));},exports[_0x4d7aac('0x2f')]=function(_0x157671,_0x13af2a){const _0x439b2c=_0x4d7aac;return respondWithRpcPromise('VoiceQueuesChannelRedirect',_[_0x439b2c('0x75')](_0x157671['query'],_0x157671[_0x439b2c('0x46')]))['then'](respondWithResult(_0x13af2a,null))[_0x439b2c('0x42')](handleError(_0x13af2a,null));},exports[_0x4d7aac('0x77')]=function(_0x466e00,_0x59edf3){const _0x39704c=_0x4d7aac;return respondWithRpcPromise(_0x39704c('0x60'),_0x466e00[_0x39704c('0xa')])['then'](respondWithResult(_0x59edf3,null))[_0x39704c('0x42')](handleError(_0x59edf3,null));},exports[_0x4d7aac('0x57')]=function(_0x3366bd,_0x2ea821){const _0xeeceed=_0x4d7aac;return respondWithRpcPromise(_0xeeceed('0x30'),_0x3366bd['query'])[_0xeeceed('0x28')](respondWithResult(_0x2ea821,null))[_0xeeceed('0x42')](handleError(_0x2ea821,null));},exports[_0x4d7aac('0x44')]=function(_0x5d0efa,_0x30f3f5){const _0x2ac3a4=_0x4d7aac;let _0x3606b2;return respondWithRpcPromise(_0x2ac3a4('0x45'),_0x5d0efa['query'])[_0x2ac3a4('0x28')](function(_0x22d2e9){const _0x52ccd9=_0x2ac3a4;return _0x3606b2=_0x22d2e9,respondWithRpcPromise(_0x52ccd9('0x45'),_0x5d0efa[_0x52ccd9('0xa')],routingClient);})[_0x2ac3a4('0x28')](function(_0x4e93ef){const _0x4865a0=_0x2ac3a4;return _[_0x4865a0('0x75')]({},_0x4e93ef,_0x3606b2);})[_0x2ac3a4('0x28')](respondWithResult(_0x30f3f5,null))[_0x2ac3a4('0x42')](handleError(_0x30f3f5,null));},exports[_0x4d7aac('0x3')]=function(_0x3fb016,_0x5f0517){const _0x36ea1e=_0x4d7aac;if(_0x3fb016[_0x36ea1e('0x4')]&&_0x3fb016['body']['interaction']&&_0x3fb016['user']&&_0x3fb016[_0x36ea1e('0x4e')][_0x36ea1e('0x2d')])for(const _0x644680 in _0x3fb016[_0x36ea1e('0x4')]['interaction']){if(typeof _0x3fb016[_0x36ea1e('0x4')][_0x36ea1e('0x37')][_0x644680]!==_0x36ea1e('0x40')){db[_0x36ea1e('0x12')]['findAll']({'where':{'channel':_0x644680,'membername':_0x3fb016['user']['name'],'type':'INTERACTION','exitAt':null,'uniqueid':_0x3fb016[_0x36ea1e('0x4')][_0x36ea1e('0x37')][_0x644680]&&_0x3fb016[_0x36ea1e('0x4')][_0x36ea1e('0x37')][_0x644680]['length']?{[Op[_0x36ea1e('0x32')]]:_0x3fb016[_0x36ea1e('0x4')][_0x36ea1e('0x37')][_0x644680]}:{[Op['ne']]:null}}})[_0x36ea1e('0x28')](function(_0x1531b6){const _0x1e4a30=_0x36ea1e,_0x5aea5a=moment()[_0x1e4a30('0x58')](_0x1e4a30('0x16'));for(let _0x19f22f=0x0,_0x1b5f22=_0x1531b6['length'];_0x19f22f<_0x1b5f22;_0x19f22f+=0x1){_0x1531b6[_0x19f22f][_0x1e4a30('0x5e')]({'exitAt':_0x5aea5a});}});for(let _0x38f14d=0x0;_0x38f14d<_0x3fb016[_0x36ea1e('0x4')][_0x36ea1e('0x37')][_0x644680][_0x36ea1e('0x0')];_0x38f14d+=0x1){db[_0x36ea1e('0x12')][_0x36ea1e('0x43')]({'where':{'channel':_0x644680,'membername':_0x3fb016[_0x36ea1e('0x4e')][_0x36ea1e('0x2d')],'type':_0x36ea1e('0x34'),'uniqueid':_0x3fb016[_0x36ea1e('0x4')]['interaction'][_0x644680][_0x38f14d],'exitAt':null},'defaults':{'channel':_0x644680,'membername':_0x3fb016[_0x36ea1e('0x4e')][_0x36ea1e('0x2d')],'interface':_[_0x36ea1e('0x2')](_0x3fb016['user'][_0x36ea1e('0x1b')])?util[_0x36ea1e('0x58')](_0x36ea1e('0x17'),_0x3fb016[_0x36ea1e('0x4e')]['name']):_0x3fb016[_0x36ea1e('0x4e')][_0x36ea1e('0x1b')],'type':'INTERACTION','enterAt':moment()['format'](_0x36ea1e('0x16')),'role':'agent','internal':_0x3fb016[_0x36ea1e('0x4e')]['internal'],'uniqueid':_0x3fb016[_0x36ea1e('0x4')]['interaction'][_0x644680][_0x38f14d]}});}}}return respondWithRpcPromise(_0x36ea1e('0x52'),{'id':_0x3fb016['params']['id'],'capacity':_0x3fb016[_0x36ea1e('0x4')][_0x36ea1e('0x67')]},routingClient)[_0x36ea1e('0x28')](respondWithResult(_0x5f0517,null))[_0x36ea1e('0x42')](handleError(_0x5f0517,null));},exports[_0x4d7aac('0x33')]=function(_0x199b56,_0x33f6fd){const _0x45f6fd=_0x4d7aac;return respondWithRpcPromise(_0x45f6fd('0x25'),_0x199b56['query'])['then'](respondWithResult(_0x33f6fd,null))[_0x45f6fd('0x42')](handleError(_0x33f6fd,null));},exports[_0x4d7aac('0x66')]=function(_0x1de206,_0x3b027d){const _0x193b7c=_0x4d7aac;return respondWithRpcPromise(_0x193b7c('0x54'),_0x1de206['query'])[_0x193b7c('0x28')](respondWithResult(_0x3b027d,null))[_0x193b7c('0x42')](handleError(_0x3b027d,null));},exports['campaigns']=function(_0x33609a,_0x51c841){const _0x1c1218=_0x4d7aac;return respondWithRpcPromise('Campaigns',_0x33609a[_0x1c1218('0xa')])[_0x1c1218('0x28')](respondWithResult(_0x51c841,null))[_0x1c1218('0x42')](handleError(_0x51c841,null));},exports[_0x4d7aac('0x3c')]=function(_0x2c8759,_0x2354d7){const _0x6ca758=_0x4d7aac;return respondWithRpcPromise('ChatQueues',_0x2c8759[_0x6ca758('0xa')],routingClient)[_0x6ca758('0x28')](respondWithResult(_0x2354d7,null))[_0x6ca758('0x42')](handleError(_0x2354d7,null));},exports[_0x4d7aac('0x4c')]=function(_0x236a69,_0x5545be){const _0x2ac753=_0x4d7aac;return respondWithRpcPromise(_0x2ac753('0x26'),_0x236a69[_0x2ac753('0xa')],routingClient)['then'](findById(_0x236a69[_0x2ac753('0x46')]['id']))['then'](respondWithResult(_0x5545be,null))[_0x2ac753('0x42')](handleError(_0x5545be,null));},exports['mailQueues']=function(_0x5314a9,_0xde296e){const _0x216d55=_0x4d7aac;return respondWithRpcPromise(_0x216d55('0x73'),_0x5314a9[_0x216d55('0xa')],routingClient)[_0x216d55('0x28')](respondWithResult(_0xde296e,null))[_0x216d55('0x42')](handleError(_0xde296e,null));},exports[_0x4d7aac('0x6f')]=function(_0x549bed,_0x3b23c4){const _0x39d0bf=_0x4d7aac;return respondWithRpcPromise(_0x39d0bf('0x73'),_0x549bed[_0x39d0bf('0xa')],routingClient)[_0x39d0bf('0x28')](findById(_0x549bed[_0x39d0bf('0x46')]['id']))[_0x39d0bf('0x28')](respondWithResult(_0x3b23c4,null))[_0x39d0bf('0x42')](handleError(_0x3b23c4,null));},exports[_0x4d7aac('0x8')]=function(_0x134c21,_0x350596){const _0x43f669=_0x4d7aac;return respondWithRpcPromise(_0x43f669('0x55'),_0x134c21['query'],mailClient)[_0x43f669('0x28')](respondWithResult(_0x350596,null))[_0x43f669('0x42')](handleError(_0x350596,null));},exports[_0x4d7aac('0x1')]=function(_0x54faad,_0x2612a9){const _0x293a2d=_0x4d7aac;return respondWithRpcPromise(_0x293a2d('0xf'),_0x54faad[_0x293a2d('0xa')],routingClient)['then'](respondWithResult(_0x2612a9,null))[_0x293a2d('0x42')](handleError(_0x2612a9,null));},exports[_0x4d7aac('0x5d')]=function(_0x5cb8b0,_0x221cb0){const _0x1e4eb4=_0x4d7aac;return respondWithRpcPromise(_0x1e4eb4('0xf'),_0x5cb8b0[_0x1e4eb4('0xa')],routingClient)[_0x1e4eb4('0x28')](findById(_0x5cb8b0[_0x1e4eb4('0x46')]['id']))[_0x1e4eb4('0x28')](respondWithResult(_0x221cb0,null))[_0x1e4eb4('0x42')](handleError(_0x221cb0,null));},exports[_0x4d7aac('0x15')]=function(_0xd5e53b,_0x2224e3){const _0x39c7bc=_0x4d7aac;return respondWithRpcPromise('SmsQueues',_0xd5e53b[_0x39c7bc('0xa')],routingClient)[_0x39c7bc('0x28')](respondWithResult(_0x2224e3,null))[_0x39c7bc('0x42')](handleError(_0x2224e3,null));},exports[_0x4d7aac('0xb')]=function(_0x332b9f,_0x3860b6){const _0x55cdf0=_0x4d7aac;return respondWithRpcPromise(_0x55cdf0('0x39'),_0x332b9f[_0x55cdf0('0xa')],routingClient)[_0x55cdf0('0x28')](findById(_0x332b9f[_0x55cdf0('0x46')]['id']))[_0x55cdf0('0x28')](respondWithResult(_0x3860b6,null))[_0x55cdf0('0x42')](handleError(_0x3860b6,null));},exports[_0x4d7aac('0x31')]=function(_0x229b61,_0x4e66da){const _0x4df2b2=_0x4d7aac;return respondWithRpcPromise(_0x4df2b2('0x29'),_0x229b61[_0x4df2b2('0xa')],routingClient)[_0x4df2b2('0x28')](respondWithResult(_0x4e66da,null))[_0x4df2b2('0x42')](handleError(_0x4e66da,null));},exports[_0x4d7aac('0x18')]=function(_0x3e7376,_0x181406){const _0x42714a=_0x4d7aac;return respondWithRpcPromise('WhatsappQueues',_0x3e7376[_0x42714a('0xa')],routingClient)[_0x42714a('0x28')](findById(_0x3e7376['params']['id']))['then'](respondWithResult(_0x181406,null))[_0x42714a('0x42')](handleError(_0x181406,null));},exports[_0x4d7aac('0x72')]=function(_0x3f3c5e,_0x5b5a24){const _0xc1784e=_0x4d7aac;return respondWithRpcPromise(_0xc1784e('0x1d'),_0x3f3c5e[_0xc1784e('0xa')],routingClient)[_0xc1784e('0x28')](respondWithResult(_0x5b5a24,null))['catch'](handleError(_0x5b5a24,null));},exports[_0x4d7aac('0x1f')]=function(_0x1e4495,_0x1149d0){const _0x384053=_0x4d7aac;return respondWithRpcPromise('FaxQueues',_0x1e4495['query'],routingClient)[_0x384053('0x28')](findById(_0x1e4495['params']['id']))[_0x384053('0x28')](respondWithResult(_0x1149d0,null))[_0x384053('0x42')](handleError(_0x1149d0,null));},exports['faxAccounts']=function(_0x9f2048,_0xddb8ed){const _0xae4ada=_0x4d7aac;return respondWithRpcPromise(_0xae4ada('0x9'),_0x9f2048[_0xae4ada('0xa')])['then'](respondWithResult(_0xddb8ed,null))[_0xae4ada('0x42')](handleError(_0xddb8ed,null));},exports[_0x4d7aac('0x1e')]=function(_0x11948c,_0x57de90){const _0xb898f5=_0x4d7aac;return respondWithRpcPromise(_0xb898f5('0x71'),_0x11948c['query'],routingClient)['then'](respondWithResult(_0x57de90,null))['catch'](handleError(_0x57de90,null));},exports[_0x4d7aac('0x74')]=function(_0xb8c23a,_0x46ff92){const _0x2aac47=_0x4d7aac;return respondWithRpcPromise(_0x2aac47('0x68'),_0xb8c23a['query'],routingClient)[_0x2aac47('0x28')](respondWithResult(_0x46ff92,null))['catch'](handleError(_0x46ff92,null));},exports[_0x4d7aac('0x1c')]=function(_0x487005,_0xee7d7d){const _0x6a9b87=_0x4d7aac;return respondWithRpcPromise(_0x6a9b87('0x63'),_0x487005['query'],routingClient)[_0x6a9b87('0x28')](respondWithResult(_0xee7d7d,null))[_0x6a9b87('0x42')](handleError(_0xee7d7d,null));},exports[_0x4d7aac('0x2c')]=function(_0x50f2ea,_0x52c9c8){const _0x4889da=_0x4d7aac;return respondWithRpcPromise(_0x4889da('0x63'),_0x50f2ea[_0x4889da('0xa')],routingClient)['then'](function(_0x552af9){const _0x27f9bc=_0x4889da;if(_0x50f2ea[_0x27f9bc('0xa')][_0x27f9bc('0x7')]!==undefined){const _0x18dbed=_(_0x552af9[_0x27f9bc('0x50')])[_0x27f9bc('0x23')]([_0x50f2ea[_0x27f9bc('0xa')][_0x27f9bc('0x7')],_0x50f2ea[_0x27f9bc('0x46')]['id']])[_0x27f9bc('0x76')](_0x27f9bc('0x61'))[_0x27f9bc('0x69')]()['value']();return _0x552af9[_0x27f9bc('0x50')][_0x27f9bc('0x23')](function(_0x314ec5){const _0x1583db=_0x27f9bc;return _0x18dbed[_0x1583db('0x49')](_0x314ec5[_0x1583db('0x61')])>-0x1;});}else return _0x552af9[_0x27f9bc('0x50')][_0x27f9bc('0x23')](function(_0x4b78cc){const _0x5e996e=_0x27f9bc;return _0x4b78cc[_0x5e996e('0x61')]===parseInt(_0x50f2ea[_0x5e996e('0x46')]['id']);});})[_0x4889da('0x28')](respondWithResult(_0x52c9c8,null))[_0x4889da('0x42')](handleError(_0x52c9c8,null));},exports[_0x4d7aac('0x3d')]=function(_0x23b49b,_0x331f01){const _0x4cd0f5=_0x4d7aac;return respondWithRpcPromise(_0x4cd0f5('0x6a'),_0x23b49b[_0x4cd0f5('0xa')],routingClient)[_0x4cd0f5('0x28')](respondWithResult(_0x331f01,null))[_0x4cd0f5('0x42')](handleError(_0x331f01,null));},exports[_0x4d7aac('0x65')]=function(_0x2acabb,_0x458e6f){return respondWithRpcPromise('WhatsappQueuesWaitingInteractions',_0x2acabb['query'],routingClient)['then'](respondWithResult(_0x458e6f,null))['catch'](handleError(_0x458e6f,null));},exports['faxQueuesWaitingInteractions']=function(_0x13ccd6,_0x484f0c){const _0x43e60e=_0x4d7aac;return respondWithRpcPromise(_0x43e60e('0x5a'),_0x13ccd6[_0x43e60e('0xa')],routingClient)[_0x43e60e('0x28')](respondWithResult(_0x484f0c,null))[_0x43e60e('0x42')](handleError(_0x484f0c,null));},exports[_0x4d7aac('0x20')]=function(_0x5a4d5f){return function(_0x54f767,_0x3a6e7a){const _0x39eed8=a527_0x440f;let _0x4118af,_0x2e047c;const _0x5d56bf=_[_0x39eed8('0x14')](_0x5a4d5f),_0x519a71=_0x5a4d5f==='chat'?'Website':_0x39eed8('0x4d');return db[_0x5d56bf+_0x39eed8('0x5b')]['findOne']({'raw':!![],'where':{'id':_0x54f767['params']['id']}})[_0x39eed8('0x28')](function(_0x3aadb8){const _0x871517=_0x39eed8;if(_[_0x871517('0x2')](_0x3aadb8))throw new Error(_0x5d56bf+_0x871517('0xd'));return _0x4118af=_0x3aadb8,db[_0x5d56bf+_0x871517('0x27')]['findOne']({'where':{'id':_0x54f767[_0x871517('0x4')]['messageId']},'include':[{'model':db[_0x5d56bf+'Interaction'],'as':'Interaction'},{'model':db[_0x5d56bf+_0x519a71],'as':_0x871517('0x4d')}]});})[_0x39eed8('0x28')](function(_0x361330){const _0x20cdd1=_0x39eed8;if(_[_0x20cdd1('0x2')](_0x361330))throw new Error(_0x5d56bf+_0x20cdd1('0xe'));return _0x2e047c=_0x361330,_0x361330[_0x20cdd1('0x5e')]({'read':0x0,'readAt':null,'UserId':null});})['then'](function(){const _0x16f350=_0x39eed8,_0x46a101={'uniqueid':_0x5a4d5f+'.'+_0x2e047c['id']+'.'+_0x2e047c[_0x16f350('0x53')]['id'],'FromUserId':_0x54f767[_0x16f350('0x4e')]['id'],'type':_0x16f350('0x11')};return _0x46a101[_0x5d56bf+_0x16f350('0x64')]=_0x2e047c['id'],_0x46a101[_0x5d56bf+'InteractionId']=_0x2e047c[_0x16f350('0x53')]['id'],_0x46a101[_0x16f350('0x62')+_0x5d56bf+_0x519a71+'Id']=_0x2e047c[_0x16f350('0x4d')]['id'],_0x46a101['To'+_0x5d56bf+'QueueId']=_0x4118af['id'],db[_0x5d56bf+_0x16f350('0x6d')][_0x16f350('0x48')](_0x46a101);})[_0x39eed8('0x28')](function(){const _0x317cb5=_0x39eed8;return respondWithRpcPromise(_0x317cb5('0x56'),{'channel':_0x5a4d5f,'interaction':_0x2e047c[_0x317cb5('0x53')],'message':_0x2e047c,'account':_0x2e047c[_0x317cb5('0x4d')],'applications':[{'id':0x0,'priority':0x1,'app':'queue','appdata':_0x4118af[_0x317cb5('0x2d')]+','+(_0x2e047c[_0x317cb5('0x4d')][_0x317cb5('0x4f')]||0x12c),'interval':_0x317cb5('0x70')}]},routingClient);})[_0x39eed8('0x28')](respondWithResult(_0x3a6e7a,null))[_0x39eed8('0x42')](handleError(_0x3a6e7a,null));};},exports['agentNotify']=function(_0x2bcc82,_0x1d74d8){const _0x370267=_0x4d7aac;let _0x3efad7,_0x42afa5;if(_[_0x370267('0x2')](_0x2bcc82[_0x370267('0x4')][_0x370267('0x3a')]))throw new Error(_0x370267('0x22'));const _0x1f699d=_0x2bcc82['body'][_0x370267('0x3a')],_0x18d5de=_[_0x370267('0x14')](_0x1f699d),_0x180c95=_0x1f699d==='chat'?_0x370267('0x19'):_0x370267('0x4d');return db[_0x370267('0x4b')][_0x370267('0x10')]({'raw':!![],'where':{'id':_0x2bcc82['params']['id'],'role':_0x370267('0x3f')}})[_0x370267('0x28')](function(_0x3fba59){const _0x1feeb8=_0x370267;if(_['isNil'](_0x3fba59))throw new Error(_0x1feeb8('0x21'));return _0x3efad7=_0x3fba59,db[_0x18d5de+_0x1feeb8('0x27')][_0x1feeb8('0x10')]({'where':{'id':_0x2bcc82[_0x1feeb8('0x4')]['messageId']},'include':[{'model':db[_0x18d5de+'Interaction'],'as':'Interaction'},{'model':db[_0x18d5de+_0x180c95],'as':'Account'}]});})['then'](function(_0x1bbf8e){const _0x54b907=_0x370267;if(_[_0x54b907('0x2')](_0x1bbf8e))throw new Error(_0x18d5de+_0x54b907('0xe'));return _0x42afa5=_0x1bbf8e,_0x1bbf8e[_0x54b907('0x5e')]({'read':0x0,'readAt':null,'UserId':null});})[_0x370267('0x28')](function(){const _0x461c08=_0x370267,_0x1d4e7f={'uniqueid':_0x1f699d+'.'+_0x42afa5['id']+'.'+_0x42afa5[_0x461c08('0x53')]['id'],'FromUserId':_0x2bcc82[_0x461c08('0x4e')]['id'],'type':'queue','ToUserId':_0x3efad7['id']};return _0x1d4e7f[_0x18d5de+_0x461c08('0x64')]=_0x42afa5['id'],_0x1d4e7f[_0x18d5de+'InteractionId']=_0x42afa5[_0x461c08('0x53')]['id'],_0x1d4e7f['From'+_0x18d5de+_0x180c95+'Id']=_0x42afa5['Account']['id'],db[_0x18d5de+'TransferReport'][_0x461c08('0x48')](_0x1d4e7f);})[_0x370267('0x28')](function(){const _0x25ef8c=_0x370267;return respondWithRpcPromise('Start',{'channel':_0x1f699d,'interaction':_0x42afa5[_0x25ef8c('0x53')],'message':_0x42afa5,'account':_0x42afa5[_0x25ef8c('0x4d')],'applications':[{'id':0x0,'priority':0x1,'app':_0x25ef8c('0x3f'),'appdata':_0x3efad7[_0x25ef8c('0x2d')]+','+(_0x42afa5[_0x25ef8c('0x4d')][_0x25ef8c('0x2b')]||0x12c),'interval':_0x25ef8c('0x70')}]},routingClient);})['then'](respondWithResult(_0x1d74d8,null))['catch'](handleError(_0x1d74d8,null));}; \ No newline at end of file +const a632_0xe062=['result','\x20Message\x20not\x20found','User','name','uniq','agentTransferTimeout','rows','format','catch','*,*,*,*','WhatsappQueuesWaitingInteractions','jayson/promise','update','interface','From','showVoiceQueues','MailQueues','channel','status','\x20Queue\x20not\x20found','MailAccounts','OpenchannelQueuesWaitingInteractions','faxQueuesWaitingInteractions','findOrCreate','message','capitalize','body','agentCapacity','whatsappQueuesWaitingInteractions','showOpenchannelQueues','../../mysqldb','showSmsQueues','api','OutboundChannels','MailQueuesWaitingInteractions','params','json','../../config/logger','then','queue_id','Campaigns','agent','INTERACTION','voiceChannelStopMixMonitor','queueTransferTimeout','moment','InteractionId','telephones','YYYY-MM-DD\x20HH:mm:ss','FaxAccounts','VoiceQueues','client','VoiceQueuesPreview','isNil','voiceQueuesChannelHangup','voiceQueuesPreview','Interaction','length','internal','findOne','sequelize','VoiceChannels','Website','request','MessageId','Account','showWhatsappQueues','voiceQueues','OpenchannelQueues','create','SIP/%s','openchannelQueuesIdWaitingInteractions','merge','smsQueuesWaitingInteractions','user','messageId','showChatQueues','Agents','chat','WhatsappQueues','Agent\x20not\x20found','AgentCapacity','filter','chatQueues','Channel\x20field\x20is\x20mandatory','faxQueues','chatQueuesWaitingInteractions','VoiceQueuesChannel','http','ChatQueues','MemberReport','SmsQueues','agents','TransferReport','error','type','map','send','Queue','VoiceQueuesChannelRedirect','voiceQueuesChannels','Trunks','interaction','queue','VoiceChannelStopMixMonitor','notIn','find','query','Message','agentNotify','stack','FaxQueuesWaitingInteractions','voiceQueuesChannel','FaxQueues','voiceChannelMixMonitor','voiceChannels','value','outbound','Telephones','mailAccounts','code','smsQueues','findAll','sendStatus'];(function(_0x31a4f0,_0x35299a){const _0xe062e7=function(_0x363a06){while(--_0x363a06){_0x31a4f0['push'](_0x31a4f0['shift']());}};_0xe062e7(++_0x35299a);}(a632_0xe062,0x14b));const a632_0x363a=function(_0x31a4f0,_0x35299a){_0x31a4f0=_0x31a4f0-0x16b;let _0xe062e7=a632_0xe062[_0x31a4f0];return _0xe062e7;};const a632_0x4c8359=a632_0x363a;'use strict';const moment=require(a632_0x4c8359(0x1c1)),_=require('lodash'),util=require('util'),{db}=require(a632_0x4c8359(0x1b2)),{Op}=require(a632_0x4c8359(0x1d0)),logger=require(a632_0x4c8359(0x1b9))(a632_0x4c8359(0x1b4)),jayson=require(a632_0x4c8359(0x19f)),amiClient=jayson['client']['http']({'port':0x232a}),mailClient=jayson[a632_0x4c8359(0x1c7)]['http']({'port':0x232b}),routingClient=jayson[a632_0x4c8359(0x1c7)][a632_0x4c8359(0x170)]({'port':0x232c});function respondWithRpcPromise(_0x3871a2,_0x25b696,_0x4676d2){return new Promise(function(_0x4016cd,_0xcab9c2){const _0x45f23c=a632_0x363a,_0x47638c=_0x4676d2?_0x4676d2:amiClient;return _0x47638c[_0x45f23c(0x1d3)](_0x3871a2,_0x25b696)['then'](function(_0x4e7bc4){const _0x2f060f=_0x45f23c;if(_0x4e7bc4[_0x2f060f(0x176)]){if(_0x4e7bc4['error'][_0x2f060f(0x190)]===0x1f4)return _0xcab9c2(_0x4e7bc4[_0x2f060f(0x176)]['message']);return _0x4016cd(_0x4e7bc4[_0x2f060f(0x176)][_0x2f060f(0x1ac)]);}else _0x4016cd(_0x4e7bc4[_0x2f060f(0x194)]);})[_0x45f23c(0x19c)](function(_0x2a05db){_0xcab9c2(_0x2a05db);});});}function respondWithResult(_0x217bfb,_0x2929ef){return _0x2929ef=_0x2929ef||0xc8,function(_0x5eb2a5){const _0x48c088=a632_0x363a;if(_0x5eb2a5)return _0x217bfb[_0x48c088(0x1a6)](_0x2929ef)[_0x48c088(0x1b8)](_0x5eb2a5);return _0x217bfb[_0x48c088(0x193)](0x194);};}function handleError(_0x437929,_0x144d90){return _0x144d90=_0x144d90||0x1f4,function(_0x3d3fff){const _0x3bfaaa=a632_0x363a;logger[_0x3bfaaa(0x176)](_0x3d3fff[_0x3bfaaa(0x186)]),_0x3d3fff['name']&&delete _0x3d3fff['name'],_0x437929[_0x3bfaaa(0x1a6)](_0x144d90)[_0x3bfaaa(0x179)](_0x3d3fff);};}function findById(_0x13ff57){return function(_0x538efc){const _0x252313=a632_0x363a;if(!_[_0x252313(0x1c9)](_0x13ff57)&&!_['isNil'](_0x538efc)&&!_[_0x252313(0x1c9)](_0x538efc[_0x252313(0x19a)]))return _[_0x252313(0x182)](_0x538efc[_0x252313(0x19a)],function(_0x986268){return _0x986268['id']==_0x13ff57;});return null;};}exports[a632_0x4c8359(0x18b)]=function(_0x284993,_0x129b36){const _0x5b6f73=a632_0x4c8359;return respondWithRpcPromise(_0x5b6f73(0x1d1),_0x284993[_0x5b6f73(0x183)])[_0x5b6f73(0x1ba)](respondWithResult(_0x129b36,null))['catch'](handleError(_0x129b36,null));},exports[a632_0x4c8359(0x18a)]=function(_0x37c184,_0x14f6e8){const _0x2e029b=a632_0x4c8359;return respondWithRpcPromise('VoiceChannelMixMonitor',_[_0x2e029b(0x1dc)](_0x37c184[_0x2e029b(0x183)],_0x37c184[_0x2e029b(0x1b7)]))[_0x2e029b(0x1ba)](respondWithResult(_0x14f6e8,null))[_0x2e029b(0x19c)](handleError(_0x14f6e8,null));},exports[a632_0x4c8359(0x1bf)]=function(_0x4ce270,_0x23d9a9){const _0x57f70d=a632_0x4c8359;return respondWithRpcPromise(_0x57f70d(0x180),_[_0x57f70d(0x1dc)](_0x4ce270[_0x57f70d(0x183)],_0x4ce270[_0x57f70d(0x1b7)]))[_0x57f70d(0x1ba)](respondWithResult(_0x23d9a9,null))[_0x57f70d(0x19c)](handleError(_0x23d9a9,null));},exports[a632_0x4c8359(0x1d7)]=function(_0x48a919,_0x1459af){const _0x3bfbcf=a632_0x4c8359;return respondWithRpcPromise(_0x3bfbcf(0x1c6),_0x48a919[_0x3bfbcf(0x183)])[_0x3bfbcf(0x1ba)](respondWithResult(_0x1459af,null))['catch'](handleError(_0x1459af,null));},exports[a632_0x4c8359(0x1a3)]=function(_0x3aae88,_0x537550){const _0x411bef=a632_0x4c8359;return respondWithRpcPromise(_0x411bef(0x1c6),_0x3aae88[_0x411bef(0x183)])[_0x411bef(0x1ba)](findById(_0x3aae88[_0x411bef(0x1b7)]['id']))['then'](respondWithResult(_0x537550,null))[_0x411bef(0x19c)](handleError(_0x537550,null));},exports[a632_0x4c8359(0x1cb)]=function(_0x331df6,_0x4ef34a){const _0x3791bf=a632_0x4c8359;return respondWithRpcPromise(_0x3791bf(0x1c8),_['merge'](_0x331df6[_0x3791bf(0x183)],_0x331df6[_0x3791bf(0x1b7)]))[_0x3791bf(0x1ba)](respondWithResult(_0x4ef34a,null))['catch'](handleError(_0x4ef34a,null));},exports[a632_0x4c8359(0x17c)]=function(_0x43a75c,_0xbfb056){const _0x561614=a632_0x4c8359;return respondWithRpcPromise('VoiceQueuesChannels',_0x43a75c[_0x561614(0x183)])[_0x561614(0x1ba)](respondWithResult(_0xbfb056,null))['catch'](handleError(_0xbfb056,null));},exports[a632_0x4c8359(0x188)]=function(_0x2248aa,_0x17bcef){const _0x110869=a632_0x4c8359;return respondWithRpcPromise(_0x110869(0x16f),_[_0x110869(0x1dc)](_0x2248aa[_0x110869(0x183)],_0x2248aa[_0x110869(0x1b7)]))[_0x110869(0x1ba)](respondWithResult(_0x17bcef,null))[_0x110869(0x19c)](handleError(_0x17bcef,null));},exports[a632_0x4c8359(0x1ca)]=function(_0x477f42,_0x23b8e0){const _0x130e19=a632_0x4c8359;return respondWithRpcPromise('VoiceQueuesChannelHangup',_[_0x130e19(0x1dc)](_0x477f42[_0x130e19(0x183)],_0x477f42['params']))['then'](respondWithResult(_0x23b8e0,null))['catch'](handleError(_0x23b8e0,null));},exports['voiceQueuesChannelRedirect']=function(_0x3e5e39,_0x25ace0){const _0x4cdead=a632_0x4c8359;return respondWithRpcPromise(_0x4cdead(0x17b),_[_0x4cdead(0x1dc)](_0x3e5e39[_0x4cdead(0x183)],_0x3e5e39['params']))[_0x4cdead(0x1ba)](respondWithResult(_0x25ace0,null))[_0x4cdead(0x19c)](handleError(_0x25ace0,null));},exports[a632_0x4c8359(0x18d)]=function(_0x772af0,_0x5c6b32){const _0x29fa2c=a632_0x4c8359;return respondWithRpcPromise('Outbound',_0x772af0['query'])[_0x29fa2c(0x1ba)](respondWithResult(_0x5c6b32,null))[_0x29fa2c(0x19c)](handleError(_0x5c6b32,null));},exports['outboundChannels']=function(_0x4b7005,_0x478c68){const _0x2c54a9=a632_0x4c8359;return respondWithRpcPromise(_0x2c54a9(0x1b5),_0x4b7005['query'])[_0x2c54a9(0x1ba)](respondWithResult(_0x478c68,null))[_0x2c54a9(0x19c)](handleError(_0x478c68,null));},exports[a632_0x4c8359(0x174)]=function(_0x48b09e,_0x5d68eb){const _0x126ced=a632_0x4c8359;let _0x3dcf29;return respondWithRpcPromise(_0x126ced(0x1e1),_0x48b09e[_0x126ced(0x183)])['then'](function(_0x1faa86){const _0x444e91=_0x126ced;return _0x3dcf29=_0x1faa86,respondWithRpcPromise('Agents',_0x48b09e[_0x444e91(0x183)],routingClient);})[_0x126ced(0x1ba)](function(_0x19cf53){const _0x57c328=_0x126ced;return _[_0x57c328(0x1dc)]({},_0x19cf53,_0x3dcf29);})[_0x126ced(0x1ba)](respondWithResult(_0x5d68eb,null))[_0x126ced(0x19c)](handleError(_0x5d68eb,null));},exports[a632_0x4c8359(0x1af)]=function(_0x45ab16,_0x1e1bd2){const _0x212dfd=a632_0x4c8359;if(_0x45ab16['body']&&_0x45ab16[_0x212dfd(0x1ae)][_0x212dfd(0x17e)]&&_0x45ab16[_0x212dfd(0x1de)]&&_0x45ab16['user'][_0x212dfd(0x197)])for(const _0x4740b5 in _0x45ab16[_0x212dfd(0x1ae)][_0x212dfd(0x17e)]){if(typeof _0x45ab16[_0x212dfd(0x1ae)][_0x212dfd(0x17e)][_0x4740b5]!=='undefined'){db['MemberReport'][_0x212dfd(0x192)]({'where':{'channel':_0x4740b5,'membername':_0x45ab16['user'][_0x212dfd(0x197)],'type':_0x212dfd(0x1be),'exitAt':null,'uniqueid':_0x45ab16['body'][_0x212dfd(0x17e)][_0x4740b5]&&_0x45ab16[_0x212dfd(0x1ae)]['interaction'][_0x4740b5][_0x212dfd(0x1cd)]?{[Op[_0x212dfd(0x181)]]:_0x45ab16[_0x212dfd(0x1ae)][_0x212dfd(0x17e)][_0x4740b5]}:{[Op['ne']]:null}}})[_0x212dfd(0x1ba)](function(_0xdebd99){const _0x35b658=_0x212dfd,_0x3ae22d=moment()[_0x35b658(0x19b)](_0x35b658(0x1c4));for(let _0x3b1a03=0x0,_0x3bc91d=_0xdebd99[_0x35b658(0x1cd)];_0x3b1a03<_0x3bc91d;_0x3b1a03+=0x1){_0xdebd99[_0x3b1a03][_0x35b658(0x1a0)]({'exitAt':_0x3ae22d});}});for(let _0x4cf1d2=0x0;_0x4cf1d2<_0x45ab16['body'][_0x212dfd(0x17e)][_0x4740b5][_0x212dfd(0x1cd)];_0x4cf1d2+=0x1){db[_0x212dfd(0x172)][_0x212dfd(0x1ab)]({'where':{'channel':_0x4740b5,'membername':_0x45ab16['user']['name'],'type':_0x212dfd(0x1be),'uniqueid':_0x45ab16[_0x212dfd(0x1ae)][_0x212dfd(0x17e)][_0x4740b5][_0x4cf1d2],'exitAt':null},'defaults':{'channel':_0x4740b5,'membername':_0x45ab16[_0x212dfd(0x1de)][_0x212dfd(0x197)],'interface':_[_0x212dfd(0x1c9)](_0x45ab16[_0x212dfd(0x1de)]['interface'])?util[_0x212dfd(0x19b)](_0x212dfd(0x1da),_0x45ab16[_0x212dfd(0x1de)]['name']):_0x45ab16[_0x212dfd(0x1de)][_0x212dfd(0x1a1)],'type':_0x212dfd(0x1be),'enterAt':moment()[_0x212dfd(0x19b)](_0x212dfd(0x1c4)),'role':_0x212dfd(0x1bd),'internal':_0x45ab16['user'][_0x212dfd(0x1ce)],'uniqueid':_0x45ab16[_0x212dfd(0x1ae)][_0x212dfd(0x17e)][_0x4740b5][_0x4cf1d2]}});}}}return respondWithRpcPromise(_0x212dfd(0x1e5),{'id':_0x45ab16[_0x212dfd(0x1b7)]['id'],'capacity':_0x45ab16['body']['capacity']},routingClient)[_0x212dfd(0x1ba)](respondWithResult(_0x1e1bd2,null))[_0x212dfd(0x19c)](handleError(_0x1e1bd2,null));},exports[a632_0x4c8359(0x1c3)]=function(_0x279eaf,_0x265a84){const _0x5b293a=a632_0x4c8359;return respondWithRpcPromise(_0x5b293a(0x18e),_0x279eaf[_0x5b293a(0x183)])[_0x5b293a(0x1ba)](respondWithResult(_0x265a84,null))[_0x5b293a(0x19c)](handleError(_0x265a84,null));},exports['trunks']=function(_0x4d9ae7,_0x11a2e9){const _0x329ebe=a632_0x4c8359;return respondWithRpcPromise(_0x329ebe(0x17d),_0x4d9ae7['query'])[_0x329ebe(0x1ba)](respondWithResult(_0x11a2e9,null))[_0x329ebe(0x19c)](handleError(_0x11a2e9,null));},exports['campaigns']=function(_0x5f674f,_0x5642cb){const _0x47d74d=a632_0x4c8359;return respondWithRpcPromise(_0x47d74d(0x1bc),_0x5f674f['query'])[_0x47d74d(0x1ba)](respondWithResult(_0x5642cb,null))[_0x47d74d(0x19c)](handleError(_0x5642cb,null));},exports[a632_0x4c8359(0x16b)]=function(_0x53f0ce,_0x4fd409){const _0x11fe75=a632_0x4c8359;return respondWithRpcPromise(_0x11fe75(0x171),_0x53f0ce[_0x11fe75(0x183)],routingClient)[_0x11fe75(0x1ba)](respondWithResult(_0x4fd409,null))[_0x11fe75(0x19c)](handleError(_0x4fd409,null));},exports[a632_0x4c8359(0x1e0)]=function(_0x51db24,_0x4490ed){const _0x5af046=a632_0x4c8359;return respondWithRpcPromise(_0x5af046(0x171),_0x51db24['query'],routingClient)[_0x5af046(0x1ba)](findById(_0x51db24[_0x5af046(0x1b7)]['id']))[_0x5af046(0x1ba)](respondWithResult(_0x4490ed,null))[_0x5af046(0x19c)](handleError(_0x4490ed,null));},exports['mailQueues']=function(_0x38f03e,_0xecf364){const _0x3d19f6=a632_0x4c8359;return respondWithRpcPromise(_0x3d19f6(0x1a4),_0x38f03e[_0x3d19f6(0x183)],routingClient)[_0x3d19f6(0x1ba)](respondWithResult(_0xecf364,null))[_0x3d19f6(0x19c)](handleError(_0xecf364,null));},exports['showMailQueues']=function(_0x526dd7,_0x22c36e){const _0x898a34=a632_0x4c8359;return respondWithRpcPromise('MailQueues',_0x526dd7[_0x898a34(0x183)],routingClient)[_0x898a34(0x1ba)](findById(_0x526dd7[_0x898a34(0x1b7)]['id']))[_0x898a34(0x1ba)](respondWithResult(_0x22c36e,null))[_0x898a34(0x19c)](handleError(_0x22c36e,null));},exports[a632_0x4c8359(0x18f)]=function(_0x592840,_0x5098b2){const _0x351b0f=a632_0x4c8359;return respondWithRpcPromise(_0x351b0f(0x1a8),_0x592840[_0x351b0f(0x183)],mailClient)[_0x351b0f(0x1ba)](respondWithResult(_0x5098b2,null))[_0x351b0f(0x19c)](handleError(_0x5098b2,null));},exports['openchannelQueues']=function(_0x4b9b48,_0x385565){const _0x471889=a632_0x4c8359;return respondWithRpcPromise(_0x471889(0x1d8),_0x4b9b48[_0x471889(0x183)],routingClient)[_0x471889(0x1ba)](respondWithResult(_0x385565,null))[_0x471889(0x19c)](handleError(_0x385565,null));},exports[a632_0x4c8359(0x1b1)]=function(_0x95cec6,_0x2be0ec){const _0x4ae449=a632_0x4c8359;return respondWithRpcPromise(_0x4ae449(0x1d8),_0x95cec6[_0x4ae449(0x183)],routingClient)[_0x4ae449(0x1ba)](findById(_0x95cec6[_0x4ae449(0x1b7)]['id']))['then'](respondWithResult(_0x2be0ec,null))[_0x4ae449(0x19c)](handleError(_0x2be0ec,null));},exports[a632_0x4c8359(0x191)]=function(_0x521ea6,_0x5a81bd){const _0xcd292e=a632_0x4c8359;return respondWithRpcPromise(_0xcd292e(0x173),_0x521ea6[_0xcd292e(0x183)],routingClient)[_0xcd292e(0x1ba)](respondWithResult(_0x5a81bd,null))[_0xcd292e(0x19c)](handleError(_0x5a81bd,null));},exports[a632_0x4c8359(0x1b3)]=function(_0x45ff95,_0x3eee50){const _0x5b90f7=a632_0x4c8359;return respondWithRpcPromise('SmsQueues',_0x45ff95['query'],routingClient)[_0x5b90f7(0x1ba)](findById(_0x45ff95[_0x5b90f7(0x1b7)]['id']))[_0x5b90f7(0x1ba)](respondWithResult(_0x3eee50,null))[_0x5b90f7(0x19c)](handleError(_0x3eee50,null));},exports['whatsappQueues']=function(_0x7a138e,_0x512e1c){const _0x1793b0=a632_0x4c8359;return respondWithRpcPromise(_0x1793b0(0x1e3),_0x7a138e[_0x1793b0(0x183)],routingClient)[_0x1793b0(0x1ba)](respondWithResult(_0x512e1c,null))[_0x1793b0(0x19c)](handleError(_0x512e1c,null));},exports[a632_0x4c8359(0x1d6)]=function(_0x51ef0,_0x1f9301){const _0x40a619=a632_0x4c8359;return respondWithRpcPromise('WhatsappQueues',_0x51ef0[_0x40a619(0x183)],routingClient)['then'](findById(_0x51ef0[_0x40a619(0x1b7)]['id']))[_0x40a619(0x1ba)](respondWithResult(_0x1f9301,null))[_0x40a619(0x19c)](handleError(_0x1f9301,null));},exports[a632_0x4c8359(0x16d)]=function(_0x189d34,_0x3fd865){const _0x88c4eb=a632_0x4c8359;return respondWithRpcPromise(_0x88c4eb(0x189),_0x189d34[_0x88c4eb(0x183)],routingClient)['then'](respondWithResult(_0x3fd865,null))['catch'](handleError(_0x3fd865,null));},exports['showFaxQueues']=function(_0x5c0d3c,_0xe89834){const _0x587991=a632_0x4c8359;return respondWithRpcPromise('FaxQueues',_0x5c0d3c['query'],routingClient)['then'](findById(_0x5c0d3c[_0x587991(0x1b7)]['id']))[_0x587991(0x1ba)](respondWithResult(_0xe89834,null))[_0x587991(0x19c)](handleError(_0xe89834,null));},exports['faxAccounts']=function(_0x128f30,_0x42186f){const _0x19150a=a632_0x4c8359;return respondWithRpcPromise(_0x19150a(0x1c5),_0x128f30['query'])[_0x19150a(0x1ba)](respondWithResult(_0x42186f,null))[_0x19150a(0x19c)](handleError(_0x42186f,null));},exports[a632_0x4c8359(0x16e)]=function(_0x291246,_0x4a8ac8){const _0x1b69f7=a632_0x4c8359;return respondWithRpcPromise('ChatQueuesWaitingInteractions',_0x291246[_0x1b69f7(0x183)],routingClient)[_0x1b69f7(0x1ba)](respondWithResult(_0x4a8ac8,null))[_0x1b69f7(0x19c)](handleError(_0x4a8ac8,null));},exports['mailQueuesWaitingInteractions']=function(_0x47d0fb,_0x17a765){const _0xe465bc=a632_0x4c8359;return respondWithRpcPromise(_0xe465bc(0x1b6),_0x47d0fb[_0xe465bc(0x183)],routingClient)[_0xe465bc(0x1ba)](respondWithResult(_0x17a765,null))[_0xe465bc(0x19c)](handleError(_0x17a765,null));},exports['openchannelQueuesWaitingInteractions']=function(_0x3cf1a8,_0x33f959){const _0x211b63=a632_0x4c8359;return respondWithRpcPromise(_0x211b63(0x1a9),_0x3cf1a8[_0x211b63(0x183)],routingClient)[_0x211b63(0x1ba)](respondWithResult(_0x33f959,null))[_0x211b63(0x19c)](handleError(_0x33f959,null));},exports[a632_0x4c8359(0x1db)]=function(_0x43cae7,_0x4a4dc1){const _0x36b22d=a632_0x4c8359;return respondWithRpcPromise(_0x36b22d(0x1a9),_0x43cae7[_0x36b22d(0x183)],routingClient)[_0x36b22d(0x1ba)](function(_0x3d5ce9){const _0x4a05b8=_0x36b22d;if(_0x43cae7[_0x4a05b8(0x183)][_0x4a05b8(0x177)]!==undefined){const _0xf0a23d=_(_0x3d5ce9[_0x4a05b8(0x19a)])[_0x4a05b8(0x1e6)]([_0x43cae7['query']['type'],_0x43cae7['params']['id']])[_0x4a05b8(0x178)](_0x4a05b8(0x1bb))[_0x4a05b8(0x198)]()[_0x4a05b8(0x18c)]();return _0x3d5ce9['rows'][_0x4a05b8(0x1e6)](function(_0x2a2199){const _0x5c7151=_0x4a05b8;return _0xf0a23d['indexOf'](_0x2a2199[_0x5c7151(0x1bb)])>-0x1;});}else return _0x3d5ce9[_0x4a05b8(0x19a)][_0x4a05b8(0x1e6)](function(_0x42768a){const _0x2a132e=_0x4a05b8;return _0x42768a[_0x2a132e(0x1bb)]===parseInt(_0x43cae7[_0x2a132e(0x1b7)]['id']);});})[_0x36b22d(0x1ba)](respondWithResult(_0x4a4dc1,null))['catch'](handleError(_0x4a4dc1,null));},exports[a632_0x4c8359(0x1dd)]=function(_0x2c133a,_0x524501){const _0x4072fd=a632_0x4c8359;return respondWithRpcPromise('SmsQueuesWaitingInteractions',_0x2c133a[_0x4072fd(0x183)],routingClient)[_0x4072fd(0x1ba)](respondWithResult(_0x524501,null))[_0x4072fd(0x19c)](handleError(_0x524501,null));},exports[a632_0x4c8359(0x1b0)]=function(_0x57c1e7,_0x3af10f){const _0x523655=a632_0x4c8359;return respondWithRpcPromise(_0x523655(0x19e),_0x57c1e7[_0x523655(0x183)],routingClient)[_0x523655(0x1ba)](respondWithResult(_0x3af10f,null))['catch'](handleError(_0x3af10f,null));},exports[a632_0x4c8359(0x1aa)]=function(_0x36eb67,_0x1a712c){const _0x204472=a632_0x4c8359;return respondWithRpcPromise(_0x204472(0x187),_0x36eb67['query'],routingClient)[_0x204472(0x1ba)](respondWithResult(_0x1a712c,null))[_0x204472(0x19c)](handleError(_0x1a712c,null));},exports['queueNotify']=function(_0x757cb){return function(_0x1e0487,_0x53c77f){const _0x2e87f0=a632_0x363a;let _0x8ea543,_0x1353a0;const _0x28a1f1=_[_0x2e87f0(0x1ad)](_0x757cb),_0x8ea56d=_0x757cb===_0x2e87f0(0x1e2)?_0x2e87f0(0x1d2):_0x2e87f0(0x1d5);return db[_0x28a1f1+_0x2e87f0(0x17a)]['findOne']({'raw':!![],'where':{'id':_0x1e0487[_0x2e87f0(0x1b7)]['id']}})[_0x2e87f0(0x1ba)](function(_0x1eb106){const _0x12e6a5=_0x2e87f0;if(_[_0x12e6a5(0x1c9)](_0x1eb106))throw new Error(_0x28a1f1+_0x12e6a5(0x1a7));return _0x8ea543=_0x1eb106,db[_0x28a1f1+'Message'][_0x12e6a5(0x1cf)]({'where':{'id':_0x1e0487[_0x12e6a5(0x1ae)][_0x12e6a5(0x1df)]},'include':[{'model':db[_0x28a1f1+_0x12e6a5(0x1cc)],'as':_0x12e6a5(0x1cc)},{'model':db[_0x28a1f1+_0x8ea56d],'as':_0x12e6a5(0x1d5)}]});})[_0x2e87f0(0x1ba)](function(_0x1cbe51){const _0x3f5314=_0x2e87f0;if(_['isNil'](_0x1cbe51))throw new Error(_0x28a1f1+_0x3f5314(0x195));return _0x1353a0=_0x1cbe51,_0x1cbe51[_0x3f5314(0x1a0)]({'read':0x0,'readAt':null,'UserId':null});})[_0x2e87f0(0x1ba)](function(){const _0x1f34af=_0x2e87f0,_0x480d33={'uniqueid':_0x757cb+'.'+_0x1353a0['id']+'.'+_0x1353a0['Interaction']['id'],'FromUserId':_0x1e0487['user']['id'],'type':_0x1f34af(0x17f)};return _0x480d33[_0x28a1f1+_0x1f34af(0x1d4)]=_0x1353a0['id'],_0x480d33[_0x28a1f1+'InteractionId']=_0x1353a0[_0x1f34af(0x1cc)]['id'],_0x480d33[_0x1f34af(0x1a2)+_0x28a1f1+_0x8ea56d+'Id']=_0x1353a0[_0x1f34af(0x1d5)]['id'],_0x480d33['To'+_0x28a1f1+'QueueId']=_0x8ea543['id'],db[_0x28a1f1+_0x1f34af(0x175)][_0x1f34af(0x1d9)](_0x480d33);})[_0x2e87f0(0x1ba)](function(){const _0x1dd12b=_0x2e87f0;return respondWithRpcPromise('Start',{'channel':_0x757cb,'interaction':_0x1353a0[_0x1dd12b(0x1cc)],'message':_0x1353a0,'account':_0x1353a0[_0x1dd12b(0x1d5)],'applications':[{'id':0x0,'priority':0x1,'app':_0x1dd12b(0x17f),'appdata':_0x8ea543[_0x1dd12b(0x197)]+','+(_0x1353a0[_0x1dd12b(0x1d5)][_0x1dd12b(0x1c0)]||0x12c),'interval':_0x1dd12b(0x19d)}]},routingClient);})['then'](respondWithResult(_0x53c77f,null))[_0x2e87f0(0x19c)](handleError(_0x53c77f,null));};},exports[a632_0x4c8359(0x185)]=function(_0x2a0d63,_0x18f046){const _0x183d6a=a632_0x4c8359;let _0x130b4c,_0x40532f;if(_['isNil'](_0x2a0d63[_0x183d6a(0x1ae)]['channel']))throw new Error(_0x183d6a(0x16c));const _0x3afb2e=_0x2a0d63[_0x183d6a(0x1ae)][_0x183d6a(0x1a5)],_0x14307f=_[_0x183d6a(0x1ad)](_0x3afb2e),_0x21e87f=_0x3afb2e==='chat'?_0x183d6a(0x1d2):_0x183d6a(0x1d5);return db[_0x183d6a(0x196)]['findOne']({'raw':!![],'where':{'id':_0x2a0d63[_0x183d6a(0x1b7)]['id'],'role':_0x183d6a(0x1bd)}})[_0x183d6a(0x1ba)](function(_0x546a52){const _0x41542f=_0x183d6a;if(_[_0x41542f(0x1c9)](_0x546a52))throw new Error(_0x41542f(0x1e4));return _0x130b4c=_0x546a52,db[_0x14307f+_0x41542f(0x184)][_0x41542f(0x1cf)]({'where':{'id':_0x2a0d63[_0x41542f(0x1ae)][_0x41542f(0x1df)]},'include':[{'model':db[_0x14307f+'Interaction'],'as':_0x41542f(0x1cc)},{'model':db[_0x14307f+_0x21e87f],'as':_0x41542f(0x1d5)}]});})['then'](function(_0x3775a4){const _0xb22812=_0x183d6a;if(_[_0xb22812(0x1c9)](_0x3775a4))throw new Error(_0x14307f+_0xb22812(0x195));return _0x40532f=_0x3775a4,_0x3775a4[_0xb22812(0x1a0)]({'read':0x0,'readAt':null,'UserId':null});})[_0x183d6a(0x1ba)](function(){const _0x33b928=_0x183d6a,_0x5b238f={'uniqueid':_0x3afb2e+'.'+_0x40532f['id']+'.'+_0x40532f[_0x33b928(0x1cc)]['id'],'FromUserId':_0x2a0d63['user']['id'],'type':_0x33b928(0x17f),'ToUserId':_0x130b4c['id']};return _0x5b238f[_0x14307f+_0x33b928(0x1d4)]=_0x40532f['id'],_0x5b238f[_0x14307f+_0x33b928(0x1c2)]=_0x40532f[_0x33b928(0x1cc)]['id'],_0x5b238f[_0x33b928(0x1a2)+_0x14307f+_0x21e87f+'Id']=_0x40532f['Account']['id'],db[_0x14307f+_0x33b928(0x175)][_0x33b928(0x1d9)](_0x5b238f);})[_0x183d6a(0x1ba)](function(){const _0x45494f=_0x183d6a;return respondWithRpcPromise('Start',{'channel':_0x3afb2e,'interaction':_0x40532f[_0x45494f(0x1cc)],'message':_0x40532f,'account':_0x40532f[_0x45494f(0x1d5)],'applications':[{'id':0x0,'priority':0x1,'app':'agent','appdata':_0x130b4c[_0x45494f(0x197)]+','+(_0x40532f[_0x45494f(0x1d5)][_0x45494f(0x199)]||0x12c),'interval':'*,*,*,*'}]},routingClient);})[_0x183d6a(0x1ba)](respondWithResult(_0x18f046,null))['catch'](handleError(_0x18f046,null));}; \ No newline at end of file diff --git a/server/api/schedule/index.js b/server/api/schedule/index.js index d47159b..6b8f623 100644 --- a/server/api/schedule/index.js +++ b/server/api/schedule/index.js @@ -1 +1 @@ -const a528_0x3f29=['express','delete','update','../../components/auth/service','index','run','get','/:id','/:id/run','put','Router','./schedule.controller','isAuthenticated','create','destroy','post','show'];(function(_0x15a07b,_0x3f29ab){const _0xe6ece=function(_0x9ab12){while(--_0x9ab12){_0x15a07b['push'](_0x15a07b['shift']());}};_0xe6ece(++_0x3f29ab);}(a528_0x3f29,0x1e7));const a528_0xe6ec=function(_0x15a07b,_0x3f29ab){_0x15a07b=_0x15a07b-0x0;let _0xe6ece=a528_0x3f29[_0x15a07b];return _0xe6ece;};const _0x568fee=a528_0xe6ec;'use strict';const express=require(_0x568fee('0x6')),router=express[_0x568fee('0x10')](),auth=require(_0x568fee('0x9')),controller=require(_0x568fee('0x0'));router[_0x568fee('0xc')]('/',auth[_0x568fee('0x1')](),controller[_0x568fee('0xa')]),router[_0x568fee('0xc')](_0x568fee('0xd'),auth[_0x568fee('0x1')](),controller[_0x568fee('0x5')]),router['get'](_0x568fee('0xe'),auth[_0x568fee('0x1')](),controller[_0x568fee('0xb')]),router[_0x568fee('0x4')]('/',auth['isAuthenticated'](),controller[_0x568fee('0x2')]),router[_0x568fee('0xf')](_0x568fee('0xd'),auth[_0x568fee('0x1')](),controller[_0x568fee('0x8')]),router[_0x568fee('0x7')]('/:id',auth[_0x568fee('0x1')](),controller[_0x568fee('0x3')]),module['exports']=router; \ No newline at end of file +const a633_0x3f8d=['./schedule.controller','/:id','update','isAuthenticated','exports','destroy','Router','put','show','get','create','index'];(function(_0x1d017e,_0x1bd065){const _0x3f8d2c=function(_0x91e9ba){while(--_0x91e9ba){_0x1d017e['push'](_0x1d017e['shift']());}};_0x3f8d2c(++_0x1bd065);}(a633_0x3f8d,0x1ce));const a633_0x91e9=function(_0x1d017e,_0x1bd065){_0x1d017e=_0x1d017e-0xb8;let _0x3f8d2c=a633_0x3f8d[_0x1d017e];return _0x3f8d2c;};const a633_0x2301a4=a633_0x91e9;'use strict';const express=require('express'),router=express[a633_0x2301a4(0xb8)](),auth=require('../../components/auth/service'),controller=require(a633_0x2301a4(0xbe));router[a633_0x2301a4(0xbb)]('/',auth[a633_0x2301a4(0xc1)](),controller[a633_0x2301a4(0xbd)]),router[a633_0x2301a4(0xbb)](a633_0x2301a4(0xbf),auth[a633_0x2301a4(0xc1)](),controller[a633_0x2301a4(0xba)]),router[a633_0x2301a4(0xbb)]('/:id/run',auth['isAuthenticated'](),controller['run']),router['post']('/',auth[a633_0x2301a4(0xc1)](),controller[a633_0x2301a4(0xbc)]),router[a633_0x2301a4(0xb9)](a633_0x2301a4(0xbf),auth[a633_0x2301a4(0xc1)](),controller[a633_0x2301a4(0xc0)]),router['delete'](a633_0x2301a4(0xbf),auth[a633_0x2301a4(0xc1)](),controller[a633_0x2301a4(0xc3)]),module[a633_0x2301a4(0xc2)]=router; \ No newline at end of file diff --git a/server/api/schedule/schedule.attributes.js b/server/api/schedule/schedule.attributes.js index f488556..91cb077 100644 --- a/server/api/schedule/schedule.attributes.js +++ b/server/api/schedule/schedule.attributes.js @@ -1 +1 @@ -const a529_0x98c9=['xlsx','TEXT','BOOLEAN','sequelize','0\x200\x20*\x20*\x20*','INTEGER','DATE','exports','years','csv','STRING','days','custom','months','quarters','pdf','minutes','ENUM','hours','weeks'];(function(_0x2f3b75,_0x98c998){const _0xfaef17=function(_0x197d0b){while(--_0x197d0b){_0x2f3b75['push'](_0x2f3b75['shift']());}};_0xfaef17(++_0x98c998);}(a529_0x98c9,0x129));const a529_0xfaef=function(_0x2f3b75,_0x98c998){_0x2f3b75=_0x2f3b75-0x0;let _0xfaef17=a529_0x98c9[_0x2f3b75];return _0xfaef17;};const _0xedc2ea=a529_0xfaef;'use strict';const Sequelize=require(_0xedc2ea('0x6'));module[_0xedc2ea('0xa')]={'name':{'type':Sequelize[_0xedc2ea('0xd')],'allowNull':![]},'description':{'type':Sequelize[_0xedc2ea('0xd')]},'active':{'type':Sequelize['BOOLEAN'],'allowNull':![],'defaultValue':![]},'cron':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':_0xedc2ea('0x7')},'startAt':{'type':Sequelize[_0xedc2ea('0x9')],'allowNull':![]},'endAt':{'type':Sequelize['DATE'],'allowNull':![]},'subtractNumber':{'type':Sequelize[_0xedc2ea('0x8')],'allowNull':![],'defaultValue':0x1,'validate':{'min':0x1}},'subtractUnit':{'type':Sequelize['ENUM'](_0xedc2ea('0xb'),_0xedc2ea('0x11'),_0xedc2ea('0x10'),_0xedc2ea('0x2'),_0xedc2ea('0xe'),_0xedc2ea('0x1'),_0xedc2ea('0x13')),'allowNull':![],'defaultValue':_0xedc2ea('0xe')},'output':{'type':Sequelize['ENUM'](_0xedc2ea('0xc'),_0xedc2ea('0x12'),_0xedc2ea('0x3')),'allowNull':![],'defaultValue':_0xedc2ea('0xc')},'type':{'type':Sequelize[_0xedc2ea('0x0')](_0xedc2ea('0xf'),'default'),'allowNull':![],'defaultValue':'custom'},'sendMail':{'type':Sequelize[_0xedc2ea('0x5')],'defaultValue':![]},'email':{'type':Sequelize[_0xedc2ea('0xd')]},'cc':{'type':Sequelize['TEXT']},'bcc':{'type':Sequelize[_0xedc2ea('0x4')]},'sendIfEmpty':{'type':Sequelize[_0xedc2ea('0x5')],'defaultValue':!![]}}; \ No newline at end of file +const a634_0xe62c=['months','INTEGER','quarters','STRING','TEXT','DATE','xlsx','ENUM','custom','0\x200\x20*\x20*\x20*','BOOLEAN','days','exports','pdf','hours','minutes'];(function(_0xd05d4e,_0x4dbb86){const _0xe62c05=function(_0x41d78b){while(--_0x41d78b){_0xd05d4e['push'](_0xd05d4e['shift']());}};_0xe62c05(++_0x4dbb86);}(a634_0xe62c,0xff));const a634_0x41d7=function(_0xd05d4e,_0x4dbb86){_0xd05d4e=_0xd05d4e-0x1dc;let _0xe62c05=a634_0xe62c[_0xd05d4e];return _0xe62c05;};const a634_0x1b4b84=a634_0x41d7;'use strict';const {DataTypes}=require('sequelize'),attributes={'name':{'type':DataTypes[a634_0x1b4b84(0x1e0)],'allowNull':![]},'description':{'type':DataTypes[a634_0x1b4b84(0x1e0)]},'active':{'type':DataTypes[a634_0x1b4b84(0x1e7)],'allowNull':![],'defaultValue':![]},'cron':{'type':DataTypes[a634_0x1b4b84(0x1e0)],'allowNull':![],'defaultValue':a634_0x1b4b84(0x1e6)},'startAt':{'type':DataTypes[a634_0x1b4b84(0x1e2)],'allowNull':![]},'endAt':{'type':DataTypes[a634_0x1b4b84(0x1e2)],'allowNull':![]},'subtractNumber':{'type':DataTypes[a634_0x1b4b84(0x1de)],'allowNull':![],'defaultValue':0x1,'validate':{'min':0x1}},'subtractUnit':{'type':DataTypes[a634_0x1b4b84(0x1e4)]('years',a634_0x1b4b84(0x1df),a634_0x1b4b84(0x1dd),'weeks',a634_0x1b4b84(0x1e8),a634_0x1b4b84(0x1eb),a634_0x1b4b84(0x1dc)),'allowNull':![],'defaultValue':'days'},'output':{'type':DataTypes[a634_0x1b4b84(0x1e4)]('csv',a634_0x1b4b84(0x1ea),a634_0x1b4b84(0x1e3)),'allowNull':![],'defaultValue':'csv'},'type':{'type':DataTypes['ENUM'](a634_0x1b4b84(0x1e5),'default'),'allowNull':![],'defaultValue':a634_0x1b4b84(0x1e5)},'sendMail':{'type':DataTypes[a634_0x1b4b84(0x1e7)],'defaultValue':![]},'email':{'type':DataTypes[a634_0x1b4b84(0x1e0)]},'cc':{'type':DataTypes['TEXT']},'bcc':{'type':DataTypes[a634_0x1b4b84(0x1e1)]},'sendIfEmpty':{'type':DataTypes[a634_0x1b4b84(0x1e7)],'defaultValue':!![]}};module[a634_0x1b4b84(0x1e9)]['attributes']=attributes; \ No newline at end of file diff --git a/server/api/schedule/schedule.controller.js b/server/api/schedule/schedule.controller.js index 577f848..4d7efe8 100644 --- a/server/api/schedule/schedule.controller.js +++ b/server/api/schedule/schedule.controller.js @@ -1 +1 @@ -const a530_0x5e35=['../../config/logger','Content-Range','where','error','length','run','query','sendStatus','intersection','Scheduler','show','includeAll','findOne','../../mysqldb','update','fieldName','catch','then','offset','status','rawAttributes','lodash','end','Schedule','findAll','count','../../components/parsers/qs','userProfileId','get','rows','model','json','set','user','body','type','options','merge','pick','keys','api','include','map','send','sequelize','index','limit','create','role','UserProfileResource','fields','../../config/schedule','attributes','order','key','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','destroy','filters','filter','nolimit','sort','params','name','Unable\x20to\x20retrieve\x20the\x20current\x20user'];(function(_0x266fa5,_0x5e3532){const _0x15331f=function(_0x1143ea){while(--_0x1143ea){_0x266fa5['push'](_0x266fa5['shift']());}};_0x15331f(++_0x5e3532);}(a530_0x5e35,0x1f3));const a530_0x1533=function(_0x266fa5,_0x5e3532){_0x266fa5=_0x266fa5-0x0;let _0x15331f=a530_0x5e35[_0x266fa5];return _0x15331f;};const _0x3d5594=a530_0x1533;'use strict';const _=require(_0x3d5594('0x22')),qs=require(_0x3d5594('0x27')),logger=require(_0x3d5594('0xd'))(_0x3d5594('0x35')),db=require(_0x3d5594('0x1a'))['db'],{Op}=require(_0x3d5594('0x39'));function respondWithStatusCode(_0x1143ea,_0xe9ceb8){return _0xe9ceb8=_0xe9ceb8||0xcc,function(_0x16f811){const _0x5b346a=a530_0x1533;if(_0x16f811)return _0x1143ea[_0x5b346a('0x14')](_0xe9ceb8);return _0x1143ea[_0x5b346a('0x20')](_0xe9ceb8)['end']();};}function respondWithResult(_0x7c2298,_0x1bb57a){return _0x1bb57a=_0x1bb57a||0xc8,function(_0x5e3952){const _0x111a73=a530_0x1533;if(_0x5e3952)return _0x7c2298[_0x111a73('0x20')](_0x1bb57a)[_0x111a73('0x2c')](_0x5e3952);};}function respondWithFilteredResult(_0x5a8b49,_0xaa9b73){return function(_0x448538){const _0x2d4e26=a530_0x1533;if(_0x448538){const _0x196a6d=_0x448538[_0x2d4e26('0x26')],_0x311249=_0xaa9b73[_0x2d4e26('0x1f')];let _0x2f166e=_0xaa9b73['offset']+_0xaa9b73['limit'],_0x329294;return _0x2f166e>=_0x196a6d?(_0x2f166e=_0x196a6d,_0x329294=0xc8):_0x329294=0xce,_0x5a8b49[_0x2d4e26('0x20')](_0x329294),_0x5a8b49[_0x2d4e26('0x2d')](_0x2d4e26('0xe'),_0x311249+'-'+_0x2f166e+'/'+_0x196a6d)[_0x2d4e26('0x2c')](_0x448538);}return null;};}function saveUpdates(_0x38dadd){return function(_0x396505){const _0x3cca84=a530_0x1533;if(_0x396505)return _0x396505[_0x3cca84('0x1b')](_0x38dadd)[_0x3cca84('0x1e')](function(_0x3ee2f7){return _0x3ee2f7;});return null;};}function removeEntity(_0x1a4aef){return function(_0x18142f){const _0x12e5fa=a530_0x1533;if(_0x18142f)return _0x18142f[_0x12e5fa('0x5')]()[_0x12e5fa('0x1e')](function(){const _0x21dfb1=_0x12e5fa,_0x3ca1c7=_0x18142f['get']({'plain':!![]}),_0x485dbd=_0x21dfb1('0x16');return db['UserProfileResource'][_0x21dfb1('0x5')]({'where':{'type':_0x485dbd,'resourceId':_0x3ca1c7['id']}})[_0x21dfb1('0x1e')](function(){return _0x18142f;});})[_0x12e5fa('0x1e')](function(){const _0xba1f74=_0x12e5fa;_0x1a4aef[_0xba1f74('0x20')](0xcc)[_0xba1f74('0x23')]();});};}function handleEntityNotFound(_0x48a7e5){return function(_0x57fb3b){const _0x4f27f4=a530_0x1533;return!_0x57fb3b&&_0x48a7e5[_0x4f27f4('0x14')](0x194),_0x57fb3b;};}function handleError(_0x501d15,_0x1183f){return _0x1183f=_0x1183f||0x1f4,function(_0x1f293f){const _0x535821=a530_0x1533;logger[_0x535821('0x10')](_0x1f293f['stack']),_0x1f293f[_0x535821('0xb')]&&delete _0x1f293f[_0x535821('0xb')],_0x501d15['status'](_0x1183f)[_0x535821('0x38')](_0x1f293f);};}exports[_0x3d5594('0x3a')]=function(_0xa5f51d,_0x4bd844){const _0x46225a=_0x3d5594;let _0x261749={};const _0x3531a0={},_0x25639a={'count':0x0,'rows':[]},_0x26511c=_[_0x46225a('0x37')](db[_0x46225a('0x24')][_0x46225a('0x21')],function(_0x2d5378){const _0x1c4bf1=_0x46225a;return{'name':_0x2d5378[_0x1c4bf1('0x1c')],'type':_0x2d5378[_0x1c4bf1('0x30')][_0x1c4bf1('0x3')]};});_0x3531a0[_0x46225a('0x2b')]=_[_0x46225a('0x37')](_0x26511c,_0x46225a('0xb')),_0x3531a0[_0x46225a('0x13')]=_[_0x46225a('0x34')](_0xa5f51d['query']),_0x3531a0[_0x46225a('0x6')]=_[_0x46225a('0x15')](_0x3531a0['model'],_0x3531a0[_0x46225a('0x13')]),_0x261749[_0x46225a('0x1')]=_[_0x46225a('0x15')](_0x3531a0['model'],qs[_0x46225a('0x3f')](_0xa5f51d[_0x46225a('0x13')]['fields'])),_0x261749[_0x46225a('0x1')]=_0x261749['attributes'][_0x46225a('0x11')]?_0x261749[_0x46225a('0x1')]:_0x3531a0[_0x46225a('0x2b')];typeof _0xa5f51d[_0x46225a('0x13')][_0x46225a('0x8')]==='undefined'&&(_0x261749[_0x46225a('0x3b')]=qs[_0x46225a('0x3b')](_0xa5f51d[_0x46225a('0x13')][_0x46225a('0x3b')]),_0x261749[_0x46225a('0x1f')]=qs['offset'](_0xa5f51d[_0x46225a('0x13')][_0x46225a('0x1f')]));_0x261749[_0x46225a('0x2')]=qs['sort'](_0xa5f51d[_0x46225a('0x13')][_0x46225a('0x9')]),_0x261749[_0x46225a('0xf')]=qs[_0x46225a('0x6')](_[_0x46225a('0x33')](_0xa5f51d['query'],_0x3531a0[_0x46225a('0x6')]),_0x26511c);_0xa5f51d[_0x46225a('0x13')][_0x46225a('0x7')]&&(_0x261749['where']=_[_0x46225a('0x32')](_0x261749[_0x46225a('0xf')],{[Op['or']]:_['map'](_0x26511c,function(_0x305acb){const _0x32f4af=_0x46225a;if(_0x305acb[_0x32f4af('0x30')]!=='VIRTUAL'){const _0x45db12={};return _0x45db12[_0x305acb[_0x32f4af('0xb')]]={[Op['like']]:'%'+_0xa5f51d['query'][_0x32f4af('0x7')]+'%'},_0x45db12;}})}));_0x261749=_[_0x46225a('0x32')]({},_0x261749,_0xa5f51d[_0x46225a('0x31')]);const _0x2499f0={'where':_0x261749['where']};return db[_0x46225a('0x24')][_0x46225a('0x26')](_0x2499f0)[_0x46225a('0x1e')](function(_0x3842f1){const _0x2c64d4=_0x46225a;return _0x25639a[_0x2c64d4('0x26')]=_0x3842f1,_0xa5f51d[_0x2c64d4('0x13')]['includeAll']&&(_0x261749[_0x2c64d4('0x36')]=[{'all':!![]}]),db['Schedule'][_0x2c64d4('0x25')](_0x261749);})[_0x46225a('0x1e')](function(_0x598122){const _0x30d09c=_0x46225a;return _0x25639a[_0x30d09c('0x2a')]=_0x598122,_0x25639a;})[_0x46225a('0x1e')](respondWithFilteredResult(_0x4bd844,_0x261749))[_0x46225a('0x1d')](handleError(_0x4bd844,null));},exports[_0x3d5594('0x17')]=function(_0x280425,_0x56e9c0){const _0x34bf30=_0x3d5594;let _0x1ff82c={'raw':![],'where':{'id':_0x280425[_0x34bf30('0xa')]['id']}};const _0x457bb3={};return _0x457bb3['model']=_['keys'](db['Schedule']['rawAttributes']),_0x457bb3[_0x34bf30('0x13')]=_[_0x34bf30('0x34')](_0x280425[_0x34bf30('0x13')]),_0x457bb3[_0x34bf30('0x6')]=_[_0x34bf30('0x15')](_0x457bb3['model'],_0x457bb3['query']),_0x1ff82c['attributes']=_['intersection'](_0x457bb3[_0x34bf30('0x2b')],qs[_0x34bf30('0x3f')](_0x280425[_0x34bf30('0x13')][_0x34bf30('0x3f')])),_0x1ff82c['attributes']=_0x1ff82c[_0x34bf30('0x1')][_0x34bf30('0x11')]?_0x1ff82c[_0x34bf30('0x1')]:_0x457bb3[_0x34bf30('0x2b')],_0x280425['query'][_0x34bf30('0x18')]&&(_0x1ff82c[_0x34bf30('0x36')]=[{'all':!![]}]),_0x1ff82c=_[_0x34bf30('0x32')]({},_0x1ff82c,_0x280425[_0x34bf30('0x31')]),db[_0x34bf30('0x24')]['findOne'](_0x1ff82c)[_0x34bf30('0x1e')](handleEntityNotFound(_0x56e9c0,null))[_0x34bf30('0x1e')](respondWithResult(_0x56e9c0,null))[_0x34bf30('0x1d')](handleError(_0x56e9c0,null));},exports['create']=function(_0x467c1c,_0x30be88){const _0xef88f9=_0x3d5594;return db[_0xef88f9('0x24')][_0xef88f9('0x3c')](_0x467c1c[_0xef88f9('0x2f')],{})['then'](function(_0x33e8e0){const _0x5539cf=_0xef88f9,_0x3984a4=_0x467c1c['user'][_0x5539cf('0x29')]({'plain':!![]});if(!_0x3984a4)throw new Error(_0x5539cf('0xc'));if(_0x3984a4[_0x5539cf('0x3d')]===_0x5539cf('0x2e')){const _0x40659f=_0x33e8e0[_0x5539cf('0x29')]({'plain':!![]}),_0x3dd2a5='Scheduler';return db['UserProfileSection']['findOne']({'where':{'name':_0x3dd2a5,'userProfileId':_0x3984a4[_0x5539cf('0x28')]},'raw':!![]})['then'](function(_0x2b42e8){const _0x5abaad=_0x5539cf;return _0x2b42e8&&_0x2b42e8['autoAssociation']===0x0?db[_0x5abaad('0x3e')]['create']({'name':_0x40659f[_0x5abaad('0xb')],'resourceId':_0x40659f['id'],'type':_0x2b42e8[_0x5abaad('0xb')],'sectionId':_0x2b42e8['id']},{})[_0x5abaad('0x1e')](function(){return _0x33e8e0;}):_0x33e8e0;})['catch'](function(_0xb37c88){const _0x909643=_0x5539cf;logger['error'](_0x909643('0x4'),_0xb37c88);throw _0xb37c88;});}return _0x33e8e0;})['then'](respondWithResult(_0x30be88,0xc9))[_0xef88f9('0x1d')](handleError(_0x30be88,null));},exports[_0x3d5594('0x1b')]=function(_0x42d8c9,_0x27691f){const _0x43ef7b=_0x3d5594;return _0x42d8c9[_0x43ef7b('0x2f')]['id']&&delete _0x42d8c9[_0x43ef7b('0x2f')]['id'],db['Schedule']['findOne']({'where':{'id':_0x42d8c9['params']['id']}})[_0x43ef7b('0x1e')](handleEntityNotFound(_0x27691f,null))[_0x43ef7b('0x1e')](saveUpdates(_0x42d8c9['body'],null))[_0x43ef7b('0x1e')](respondWithResult(_0x27691f,null))[_0x43ef7b('0x1d')](handleError(_0x27691f,null));},exports[_0x3d5594('0x5')]=function(_0x3b5b36,_0x3aeb43){const _0x38472d=_0x3d5594;return db['Schedule'][_0x38472d('0x19')]({'where':{'id':_0x3b5b36[_0x38472d('0xa')]['id']}})[_0x38472d('0x1e')](handleEntityNotFound(_0x3aeb43,null))[_0x38472d('0x1e')](removeEntity(_0x3aeb43,null))[_0x38472d('0x1d')](handleError(_0x3aeb43,null));},exports[_0x3d5594('0x12')]=function(_0x192cd6,_0x13183e){const _0x4ad39a=_0x3d5594,_0x220f0d=require(_0x4ad39a('0x0'));return db[_0x4ad39a('0x24')][_0x4ad39a('0x19')]({'where':{'id':_0x192cd6[_0x4ad39a('0xa')]['id']},'raw':!![]})['then'](handleEntityNotFound(_0x13183e,null))[_0x4ad39a('0x1e')](function(){const _0xedfa7f=_0x4ad39a;_0x220f0d[_0xedfa7f('0x12')](_0x192cd6[_0xedfa7f('0xa')]['id']);})[_0x4ad39a('0x1e')](respondWithStatusCode(_0x13183e,null))[_0x4ad39a('0x1d')](handleError(_0x13183e,null));}; \ No newline at end of file +const a635_0x155f=['../../config/logger','json','filters','Schedule','index','findOne','catch','keys','findAll','error','filter','merge','model','limit','../../mysqldb','end','show','autoAssociation','create','Content-Range','Scheduler','order','rawAttributes','UserProfileSection','like','sort','map','rows','get','where','send','UserProfileResource','include','intersection','VIRTUAL','key','status','../../config/schedule','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','offset','body','then','fields','nolimit','update','destroy','name','attributes','../../components/parsers/qs','run','query','stack','sendStatus','length','userProfileId','api','type','options','includeAll','params','user','count'];(function(_0x2fec03,_0x286398){const _0x155f66=function(_0x462dbf){while(--_0x462dbf){_0x2fec03['push'](_0x2fec03['shift']());}};_0x155f66(++_0x286398);}(a635_0x155f,0x193));const a635_0x462d=function(_0x2fec03,_0x286398){_0x2fec03=_0x2fec03-0x189;let _0x155f66=a635_0x155f[_0x2fec03];return _0x155f66;};const a635_0x213d52=a635_0x462d;'use strict';const _=require('lodash'),qs=require(a635_0x213d52(0x19a)),logger=require(a635_0x213d52(0x1a8))(a635_0x213d52(0x1a1)),{db}=require(a635_0x213d52(0x1b6)),{Op}=require('sequelize');function respondWithStatusCode(_0x44f694,_0x2ea0db){return _0x2ea0db=_0x2ea0db||0xcc,function(_0x28913c){const _0x20ad1e=a635_0x462d;if(_0x28913c)return _0x44f694[_0x20ad1e(0x19e)](_0x2ea0db);return _0x44f694[_0x20ad1e(0x18e)](_0x2ea0db)[_0x20ad1e(0x1b7)]();};}function respondWithResult(_0x4c56a5,_0x1ed2fa){return _0x1ed2fa=_0x1ed2fa||0xc8,function(_0x446d71){const _0x4f2dd0=a635_0x462d;if(_0x446d71)return _0x4c56a5[_0x4f2dd0(0x18e)](_0x1ed2fa)[_0x4f2dd0(0x1a9)](_0x446d71);};}function respondWithFilteredResult(_0xfbf8bf,_0x150362){return function(_0x20b0bb){const _0x32a804=a635_0x462d;if(_0x20b0bb){const _0x1947c2=_0x20b0bb[_0x32a804(0x1a7)],_0x1133a2=_0x150362['offset'];let _0x4f6c4c=_0x150362[_0x32a804(0x191)]+_0x150362[_0x32a804(0x1b5)],_0x1e1bd6;return _0x4f6c4c>=_0x1947c2?(_0x4f6c4c=_0x1947c2,_0x1e1bd6=0xc8):_0x1e1bd6=0xce,_0xfbf8bf['status'](_0x1e1bd6),_0xfbf8bf['set'](_0x32a804(0x1bb),_0x1133a2+'-'+_0x4f6c4c+'/'+_0x1947c2)[_0x32a804(0x1a9)](_0x20b0bb);}return null;};}function saveUpdates(_0x5cca6f){return function(_0xed838b){const _0x4d6883=a635_0x462d;if(_0xed838b)return _0xed838b[_0x4d6883(0x196)](_0x5cca6f)['then'](function(_0x44caf2){return _0x44caf2;});return null;};}function removeEntity(_0x3ee012){return function(_0x130603){const _0x2901a0=a635_0x462d;if(_0x130603)return _0x130603['destroy']()['then'](function(){const _0x50ab4b=a635_0x462d,_0x7dafcc=_0x130603['get']({'plain':!![]}),_0x4e7f42=_0x50ab4b(0x1bc);return db[_0x50ab4b(0x189)][_0x50ab4b(0x197)]({'where':{'type':_0x4e7f42,'resourceId':_0x7dafcc['id']}})['then'](function(){return _0x130603;});})[_0x2901a0(0x193)](function(){const _0x51b375=_0x2901a0;_0x3ee012[_0x51b375(0x18e)](0xcc)[_0x51b375(0x1b7)]();});};}function handleEntityNotFound(_0x470efb){return function(_0x2213ea){const _0x4b73c6=a635_0x462d;return!_0x2213ea&&_0x470efb[_0x4b73c6(0x19e)](0x194),_0x2213ea;};}function handleError(_0x430f1c,_0x5a87a5){return _0x5a87a5=_0x5a87a5||0x1f4,function(_0x1e4db0){const _0x4249e9=a635_0x462d;logger[_0x4249e9(0x1b1)](_0x1e4db0[_0x4249e9(0x19d)]),_0x1e4db0[_0x4249e9(0x198)]&&delete _0x1e4db0['name'],_0x430f1c[_0x4249e9(0x18e)](_0x5a87a5)[_0x4249e9(0x1c6)](_0x1e4db0);};}exports[a635_0x213d52(0x1ac)]=function(_0xf9b6bb,_0x1d2c1c){const _0x15dae4=a635_0x213d52;let _0x47db8f={};const _0x198e76={},_0x67f599={'count':0x0,'rows':[]},_0x29cd68=_['map'](db[_0x15dae4(0x1ab)][_0x15dae4(0x1be)],function(_0x41debb){const _0x108ba3=_0x15dae4;return{'name':_0x41debb['fieldName'],'type':_0x41debb[_0x108ba3(0x1a2)][_0x108ba3(0x18d)]};});_0x198e76[_0x15dae4(0x1b4)]=_[_0x15dae4(0x1c2)](_0x29cd68,'name'),_0x198e76['query']=_['keys'](_0xf9b6bb['query']),_0x198e76['filters']=_['intersection'](_0x198e76[_0x15dae4(0x1b4)],_0x198e76[_0x15dae4(0x19c)]),_0x47db8f[_0x15dae4(0x199)]=_[_0x15dae4(0x18b)](_0x198e76['model'],qs['fields'](_0xf9b6bb[_0x15dae4(0x19c)][_0x15dae4(0x194)])),_0x47db8f[_0x15dae4(0x199)]=_0x47db8f['attributes'][_0x15dae4(0x19f)]?_0x47db8f[_0x15dae4(0x199)]:_0x198e76[_0x15dae4(0x1b4)];typeof _0xf9b6bb[_0x15dae4(0x19c)][_0x15dae4(0x195)]==='undefined'&&(_0x47db8f[_0x15dae4(0x1b5)]=qs[_0x15dae4(0x1b5)](_0xf9b6bb[_0x15dae4(0x19c)]['limit']),_0x47db8f[_0x15dae4(0x191)]=qs[_0x15dae4(0x191)](_0xf9b6bb[_0x15dae4(0x19c)]['offset']));_0x47db8f[_0x15dae4(0x1bd)]=qs[_0x15dae4(0x1c1)](_0xf9b6bb['query'][_0x15dae4(0x1c1)]),_0x47db8f['where']=qs[_0x15dae4(0x1aa)](_['pick'](_0xf9b6bb[_0x15dae4(0x19c)],_0x198e76[_0x15dae4(0x1aa)]),_0x29cd68);_0xf9b6bb[_0x15dae4(0x19c)][_0x15dae4(0x1b2)]&&(_0x47db8f[_0x15dae4(0x1c5)]=_[_0x15dae4(0x1b3)](_0x47db8f[_0x15dae4(0x1c5)],{[Op['or']]:_[_0x15dae4(0x1c2)](_0x29cd68,function(_0x2f6f85){const _0x52f42e=_0x15dae4;if(_0x2f6f85[_0x52f42e(0x1a2)]!==_0x52f42e(0x18c)){const _0x4dc9d4={};return _0x4dc9d4[_0x2f6f85[_0x52f42e(0x198)]]={[Op[_0x52f42e(0x1c0)]]:'%'+_0xf9b6bb[_0x52f42e(0x19c)]['filter']+'%'},_0x4dc9d4;}})}));_0x47db8f=_[_0x15dae4(0x1b3)]({},_0x47db8f,_0xf9b6bb['options']);const _0x26f986={'where':_0x47db8f['where']};return db[_0x15dae4(0x1ab)]['count'](_0x26f986)[_0x15dae4(0x193)](function(_0x1a7e6e){const _0x31781f=_0x15dae4;return _0x67f599[_0x31781f(0x1a7)]=_0x1a7e6e,_0xf9b6bb[_0x31781f(0x19c)]['includeAll']&&(_0x47db8f[_0x31781f(0x18a)]=[{'all':!![]}]),db[_0x31781f(0x1ab)][_0x31781f(0x1b0)](_0x47db8f);})['then'](function(_0x67389){const _0x382ef1=_0x15dae4;return _0x67f599[_0x382ef1(0x1c3)]=_0x67389,_0x67f599;})[_0x15dae4(0x193)](respondWithFilteredResult(_0x1d2c1c,_0x47db8f))[_0x15dae4(0x1ae)](handleError(_0x1d2c1c,null));},exports[a635_0x213d52(0x1b8)]=function(_0x516692,_0x34fb8d){const _0x4a1937=a635_0x213d52;let _0x188de9={'raw':![],'where':{'id':_0x516692[_0x4a1937(0x1a5)]['id']}};const _0x24bc66={};return _0x24bc66[_0x4a1937(0x1b4)]=_[_0x4a1937(0x1af)](db[_0x4a1937(0x1ab)][_0x4a1937(0x1be)]),_0x24bc66[_0x4a1937(0x19c)]=_['keys'](_0x516692[_0x4a1937(0x19c)]),_0x24bc66[_0x4a1937(0x1aa)]=_[_0x4a1937(0x18b)](_0x24bc66['model'],_0x24bc66[_0x4a1937(0x19c)]),_0x188de9[_0x4a1937(0x199)]=_[_0x4a1937(0x18b)](_0x24bc66[_0x4a1937(0x1b4)],qs[_0x4a1937(0x194)](_0x516692[_0x4a1937(0x19c)][_0x4a1937(0x194)])),_0x188de9[_0x4a1937(0x199)]=_0x188de9['attributes'][_0x4a1937(0x19f)]?_0x188de9[_0x4a1937(0x199)]:_0x24bc66['model'],_0x516692[_0x4a1937(0x19c)][_0x4a1937(0x1a4)]&&(_0x188de9[_0x4a1937(0x18a)]=[{'all':!![]}]),_0x188de9=_[_0x4a1937(0x1b3)]({},_0x188de9,_0x516692[_0x4a1937(0x1a3)]),db[_0x4a1937(0x1ab)][_0x4a1937(0x1ad)](_0x188de9)[_0x4a1937(0x193)](handleEntityNotFound(_0x34fb8d,null))['then'](respondWithResult(_0x34fb8d,null))['catch'](handleError(_0x34fb8d,null));},exports[a635_0x213d52(0x1ba)]=function(_0x26dea5,_0x4b8e5d){const _0x33518a=a635_0x213d52;return db['Schedule'][_0x33518a(0x1ba)](_0x26dea5[_0x33518a(0x192)],{})[_0x33518a(0x193)](function(_0x55925d){const _0x55853d=_0x33518a,_0x38e1a0=_0x26dea5[_0x55853d(0x1a6)][_0x55853d(0x1c4)]({'plain':!![]});if(!_0x38e1a0)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x38e1a0['role']==='user'){const _0x47448b=_0x55925d[_0x55853d(0x1c4)]({'plain':!![]}),_0xd39a73=_0x55853d(0x1bc);return db[_0x55853d(0x1bf)][_0x55853d(0x1ad)]({'where':{'name':_0xd39a73,'userProfileId':_0x38e1a0[_0x55853d(0x1a0)]},'raw':!![]})['then'](function(_0x2c46f2){const _0x20c355=_0x55853d;return _0x2c46f2&&_0x2c46f2[_0x20c355(0x1b9)]===0x0?db[_0x20c355(0x189)][_0x20c355(0x1ba)]({'name':_0x47448b[_0x20c355(0x198)],'resourceId':_0x47448b['id'],'type':_0x2c46f2[_0x20c355(0x198)],'sectionId':_0x2c46f2['id']},{})[_0x20c355(0x193)](function(){return _0x55925d;}):_0x55925d;})['catch'](function(_0x27db80){const _0x2d8442=_0x55853d;logger[_0x2d8442(0x1b1)](_0x2d8442(0x190),_0x27db80);throw _0x27db80;});}return _0x55925d;})['then'](respondWithResult(_0x4b8e5d,0xc9))[_0x33518a(0x1ae)](handleError(_0x4b8e5d,null));},exports[a635_0x213d52(0x196)]=function(_0x24ac15,_0x1a76f0){const _0x17ba28=a635_0x213d52;return _0x24ac15[_0x17ba28(0x192)]['id']&&delete _0x24ac15[_0x17ba28(0x192)]['id'],db['Schedule'][_0x17ba28(0x1ad)]({'where':{'id':_0x24ac15[_0x17ba28(0x1a5)]['id']}})[_0x17ba28(0x193)](handleEntityNotFound(_0x1a76f0,null))['then'](saveUpdates(_0x24ac15[_0x17ba28(0x192)],null))['then'](respondWithResult(_0x1a76f0,null))[_0x17ba28(0x1ae)](handleError(_0x1a76f0,null));},exports[a635_0x213d52(0x197)]=function(_0x5b63e1,_0x5d8d49){const _0x34d147=a635_0x213d52;return db[_0x34d147(0x1ab)]['findOne']({'where':{'id':_0x5b63e1[_0x34d147(0x1a5)]['id']}})[_0x34d147(0x193)](handleEntityNotFound(_0x5d8d49,null))[_0x34d147(0x193)](removeEntity(_0x5d8d49,null))[_0x34d147(0x1ae)](handleError(_0x5d8d49,null));},exports[a635_0x213d52(0x19b)]=function(_0x116541,_0x3bb397){const _0x174b0a=a635_0x213d52,_0x26d0e8=require(_0x174b0a(0x18f));return db[_0x174b0a(0x1ab)][_0x174b0a(0x1ad)]({'where':{'id':_0x116541[_0x174b0a(0x1a5)]['id']},'raw':!![]})['then'](handleEntityNotFound(_0x3bb397,null))[_0x174b0a(0x193)](function(){const _0x950e8c=_0x174b0a;_0x26d0e8[_0x950e8c(0x19b)](_0x116541['params']['id']);})[_0x174b0a(0x193)](respondWithStatusCode(_0x3bb397,null))['catch'](handleError(_0x3bb397,null));}; \ No newline at end of file diff --git a/server/api/schedule/schedule.model.js b/server/api/schedule/schedule.model.js index 7c39534..52a0f87 100644 --- a/server/api/schedule/schedule.model.js +++ b/server/api/schedule/schedule.model.js @@ -1 +1 @@ -const a531_0x8f65=['exports','./schedule.attributes','define'];(function(_0x39f469,_0x8f658f){const _0x11f8cd=function(_0x51d991){while(--_0x51d991){_0x39f469['push'](_0x39f469['shift']());}};_0x11f8cd(++_0x8f658f);}(a531_0x8f65,0x1b8));const a531_0x11f8=function(_0x39f469,_0x8f658f){_0x39f469=_0x39f469-0x0;let _0x11f8cd=a531_0x8f65[_0x39f469];return _0x11f8cd;};const _0x56aa3c=a531_0x11f8;'use strict';const attributes=require(_0x56aa3c('0x2'));module[_0x56aa3c('0x1')]=function(_0x51d991){const _0x181dae=_0x56aa3c,_0x54df45=_0x51d991[_0x181dae('0x0')]('Schedule',attributes,{'tableName':'tools_schedules','paranoid':![],'indexes':[],'timestamps':!![]});return _0x54df45;}; \ No newline at end of file +const a636_0x4cd4=['init','Schedule','./schedule.options','sequelize','exports'];(function(_0x5ba26c,_0x20afdf){const _0x4cd493=function(_0x9c8fe1){while(--_0x9c8fe1){_0x5ba26c['push'](_0x5ba26c['shift']());}};_0x4cd493(++_0x20afdf);}(a636_0x4cd4,0x102));const a636_0x9c8f=function(_0x5ba26c,_0x20afdf){_0x5ba26c=_0x5ba26c-0x163;let _0x4cd493=a636_0x4cd4[_0x5ba26c];return _0x4cd493;};const a636_0x2f91bb=a636_0x9c8f;'use strict';const {Model}=require(a636_0x2f91bb(0x163)),{attributes}=require('./schedule.attributes'),{options}=require(a636_0x2f91bb(0x167));class Schedule extends Model{}function init(_0x5688f8,_0x44d073){const _0x195fb5=a636_0x2f91bb,_0x549f13=options(_0x5688f8),_0x198799=typeof _0x44d073==='function'?_0x44d073(_0x549f13):_0x549f13;return Schedule[_0x195fb5(0x165)](attributes,_0x198799),Schedule;}module[a636_0x2f91bb(0x164)][a636_0x2f91bb(0x166)]=Schedule,module[a636_0x2f91bb(0x164)][a636_0x2f91bb(0x165)]=init; \ No newline at end of file diff --git a/server/api/schedule/schedule.options.js b/server/api/schedule/schedule.options.js new file mode 100644 index 0000000..5045843 --- /dev/null +++ b/server/api/schedule/schedule.options.js @@ -0,0 +1 @@ +var a637_0x38c2=['tools_schedules','options','exports'];(function(_0x31d6a9,_0x3feb10){var _0x38c29b=function(_0x32693d){while(--_0x32693d){_0x31d6a9['push'](_0x31d6a9['shift']());}};_0x38c29b(++_0x3feb10);}(a637_0x38c2,0x159));var a637_0x3269=function(_0x31d6a9,_0x3feb10){_0x31d6a9=_0x31d6a9-0xad;var _0x38c29b=a637_0x38c2[_0x31d6a9];return _0x38c29b;};var a637_0x2d767c=a637_0x3269;function options(_0x41f031){var _0x19c0bd=a637_0x3269;return{'sequelize':_0x41f031,'tableName':_0x19c0bd(0xad),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a637_0x2d767c(0xaf)][a637_0x2d767c(0xae)]=options; \ No newline at end of file diff --git a/server/api/screenRecording/index.js b/server/api/screenRecording/index.js index 1efb471..e6e3d85 100644 --- a/server/api/screenRecording/index.js +++ b/server/api/screenRecording/index.js @@ -1 +1 @@ -const a532_0x35f2=['/:id/download','/describe','destroy','post','show','/:id','./screenRecording.controller','isAuthenticated','download','get','index','create','express','../../components/auth/service','delete','update','put','exports'];(function(_0x5ac84f,_0x35f243){const _0x13d8ea=function(_0x17059d){while(--_0x17059d){_0x5ac84f['push'](_0x5ac84f['shift']());}};_0x13d8ea(++_0x35f243);}(a532_0x35f2,0x7e));const a532_0x13d8=function(_0x5ac84f,_0x35f243){_0x5ac84f=_0x5ac84f-0x0;let _0x13d8ea=a532_0x35f2[_0x5ac84f];return _0x13d8ea;};const _0x5f418b=a532_0x13d8;'use strict';const express=require(_0x5f418b('0xc')),router=express['Router'](),auth=require(_0x5f418b('0xd')),controller=require(_0x5f418b('0x6'));router['get']('/',auth[_0x5f418b('0x7')](),controller[_0x5f418b('0xa')]),router[_0x5f418b('0x9')](_0x5f418b('0x1'),auth[_0x5f418b('0x7')](),controller['describe']),router[_0x5f418b('0x9')]('/:id',auth[_0x5f418b('0x7')](),controller[_0x5f418b('0x4')]),router[_0x5f418b('0x9')](_0x5f418b('0x0'),auth[_0x5f418b('0x7')](),controller[_0x5f418b('0x8')]),router[_0x5f418b('0x3')]('/',auth[_0x5f418b('0x7')](),controller[_0x5f418b('0xb')]),router[_0x5f418b('0x10')](_0x5f418b('0x5'),auth[_0x5f418b('0x7')](),controller[_0x5f418b('0xf')]),router[_0x5f418b('0xe')](_0x5f418b('0x5'),auth[_0x5f418b('0x7')](),controller[_0x5f418b('0x2')]),module[_0x5f418b('0x11')]=router; \ No newline at end of file +const a638_0x1fad=['put','/:id/download','delete','get','exports','isAuthenticated','Router','post','./screenRecording.controller','describe','show','/describe','/:id','download','destroy','index'];(function(_0x121202,_0x3771a7){const _0x1fad47=function(_0x2ba3cf){while(--_0x2ba3cf){_0x121202['push'](_0x121202['shift']());}};_0x1fad47(++_0x3771a7);}(a638_0x1fad,0x9e));const a638_0x2ba3=function(_0x121202,_0x3771a7){_0x121202=_0x121202-0x156;let _0x1fad47=a638_0x1fad[_0x121202];return _0x1fad47;};const a638_0x2feb90=a638_0x2ba3;'use strict';const express=require('express'),router=express[a638_0x2feb90(0x15e)](),auth=require('../../components/auth/service'),controller=require(a638_0x2feb90(0x160));router[a638_0x2feb90(0x15b)]('/',auth[a638_0x2feb90(0x15d)](),controller[a638_0x2feb90(0x157)]),router[a638_0x2feb90(0x15b)](a638_0x2feb90(0x163),auth[a638_0x2feb90(0x15d)](),controller[a638_0x2feb90(0x161)]),router[a638_0x2feb90(0x15b)](a638_0x2feb90(0x164),auth[a638_0x2feb90(0x15d)](),controller[a638_0x2feb90(0x162)]),router[a638_0x2feb90(0x15b)](a638_0x2feb90(0x159),auth[a638_0x2feb90(0x15d)](),controller[a638_0x2feb90(0x165)]),router[a638_0x2feb90(0x15f)]('/',auth[a638_0x2feb90(0x15d)](),controller['create']),router[a638_0x2feb90(0x158)](a638_0x2feb90(0x164),auth[a638_0x2feb90(0x15d)](),controller['update']),router[a638_0x2feb90(0x15a)](a638_0x2feb90(0x164),auth[a638_0x2feb90(0x15d)](),controller[a638_0x2feb90(0x156)]),module[a638_0x2feb90(0x15c)]=router; \ No newline at end of file diff --git a/server/api/screenRecording/screenRecording.attributes.js b/server/api/screenRecording/screenRecording.attributes.js index 5b1ded6..78b1812 100644 --- a/server/api/screenRecording/screenRecording.attributes.js +++ b/server/api/screenRecording/screenRecording.attributes.js @@ -1 +1 @@ -const a533_0x1bff=['path','STRING','replace','sequelize','VIRTUAL','setDataValue','subtract','extname','startedAt','exports','value','DATE','getDataValue','toString','moment','MM-DD-YYYY\x20HH:mm','updatedAt','closedAt','format','INTEGER'];(function(_0x23e2a2,_0x1bff79){const _0x509e81=function(_0x4d836b){while(--_0x4d836b){_0x23e2a2['push'](_0x23e2a2['shift']());}};_0x509e81(++_0x1bff79);}(a533_0x1bff,0x1e4));const a533_0x509e=function(_0x23e2a2,_0x1bff79){_0x23e2a2=_0x23e2a2-0x0;let _0x509e81=a533_0x1bff[_0x23e2a2];return _0x509e81;};const _0x4bf045=a533_0x509e;'use strict';const Sequelize=require(_0x4bf045('0x13')),moment=require(_0x4bf045('0xa')),path=require(_0x4bf045('0x10'));module[_0x4bf045('0x5')]={'format':{'type':Sequelize[_0x4bf045('0x0')],'get':function(){const _0x1e7fd=_0x4bf045;return this[_0x1e7fd('0x8')](_0x1e7fd('0x6'))?path[_0x1e7fd('0x3')](this['getDataValue'](_0x1e7fd('0x6'))):undefined;}},'interactionid':{'type':Sequelize[_0x4bf045('0x11')]},'channel':{'type':Sequelize[_0x4bf045('0x11')]},'value':{'type':Sequelize[_0x4bf045('0x11')],'set':function(_0x4d836b){const _0xc63fa4=_0x4bf045,_0x5babba=_0x4d836b[_0xc63fa4('0x12')](/\\/g,'/');this[_0xc63fa4('0x1')](_0xc63fa4('0x6'),_0x5babba);}},'rating':{'type':Sequelize[_0x4bf045('0xf')],'validate':{'max':0x5,'min':0x0}},'duration':{'type':Sequelize[_0x4bf045('0xf')],'set':function(_0x2742cd){const _0x36a32a=_0x4bf045;this[_0x36a32a('0x1')](_0x36a32a('0x4'),moment()[_0x36a32a('0x2')](_0x2742cd,'ms')),this[_0x36a32a('0x1')](_0x36a32a('0xd'),moment()),this[_0x36a32a('0x1')]('duration',_0x2742cd);}},'startedAt':{'type':Sequelize[_0x4bf045('0x7')],'get':function(){const _0x1b3239=_0x4bf045;return moment(this[_0x1b3239('0x8')](_0x1b3239('0x4')))[_0x1b3239('0xe')](_0x1b3239('0xb'))[_0x1b3239('0x9')]();}},'closedAt':{'type':Sequelize[_0x4bf045('0x7')],'get':function(){const _0x3d6635=_0x4bf045;return moment(this[_0x3d6635('0x8')]('closedAt'))[_0x3d6635('0xe')](_0x3d6635('0xb'))[_0x3d6635('0x9')]();}},'createdAt':{'type':Sequelize['DATE'],'get':function(){const _0x5a9ffa=_0x4bf045;return moment(this[_0x5a9ffa('0x8')]('createdAt'))[_0x5a9ffa('0xe')](_0x5a9ffa('0xb'))[_0x5a9ffa('0x9')]();}},'updatedAt':{'type':Sequelize['DATE'],'get':function(){const _0x431e5c=_0x4bf045;return moment(this[_0x431e5c('0x8')](_0x431e5c('0xc')))['format'](_0x431e5c('0xb'))[_0x431e5c('0x9')]();}}}; \ No newline at end of file +const a639_0x2e45=['getDataValue','format','startedAt','INTEGER','value','VIRTUAL','DATE','subtract','toString','setDataValue','attributes','closedAt','moment','extname','path','MM-DD-YYYY\x20HH:mm'];(function(_0x210240,_0x15a34e){const _0x2e4502=function(_0x38647a){while(--_0x38647a){_0x210240['push'](_0x210240['shift']());}};_0x2e4502(++_0x15a34e);}(a639_0x2e45,0x121));const a639_0x3864=function(_0x210240,_0x15a34e){_0x210240=_0x210240-0x172;let _0x2e4502=a639_0x2e45[_0x210240];return _0x2e4502;};const a639_0x1aa62b=a639_0x3864;'use strict';const {DataTypes}=require('sequelize'),moment=require(a639_0x1aa62b(0x17d)),path=require(a639_0x1aa62b(0x17f)),attributes={'format':{'type':DataTypes[a639_0x1aa62b(0x176)],'get':function(){const _0x4dc313=a639_0x1aa62b;return this[_0x4dc313(0x181)](_0x4dc313(0x175))?path[_0x4dc313(0x17e)](this['getDataValue'](_0x4dc313(0x175))):undefined;}},'interactionid':{'type':DataTypes['STRING']},'channel':{'type':DataTypes['STRING']},'value':{'type':DataTypes['STRING'],'set':function(_0x151ac9){const _0x4728f0=a639_0x1aa62b,_0x5ace8f=_0x151ac9['replace'](/\\/g,'/');this['setDataValue'](_0x4728f0(0x175),_0x5ace8f);}},'rating':{'type':DataTypes['INTEGER'],'validate':{'max':0x5,'min':0x0}},'duration':{'type':DataTypes[a639_0x1aa62b(0x174)],'set':function(_0x34d7cf){const _0x188047=a639_0x1aa62b;this[_0x188047(0x17a)](_0x188047(0x173),moment()[_0x188047(0x178)](_0x34d7cf,'ms')),this[_0x188047(0x17a)](_0x188047(0x17c),moment()),this[_0x188047(0x17a)]('duration',_0x34d7cf);}},'startedAt':{'type':DataTypes[a639_0x1aa62b(0x177)],'get':function(){const _0x5c2d51=a639_0x1aa62b;return moment(this[_0x5c2d51(0x181)](_0x5c2d51(0x173)))[_0x5c2d51(0x172)](_0x5c2d51(0x180))['toString']();}},'closedAt':{'type':DataTypes['DATE'],'get':function(){const _0x3c906d=a639_0x1aa62b;return moment(this[_0x3c906d(0x181)](_0x3c906d(0x17c)))[_0x3c906d(0x172)](_0x3c906d(0x180))['toString']();}},'createdAt':{'type':DataTypes[a639_0x1aa62b(0x177)],'get':function(){const _0x43890d=a639_0x1aa62b;return moment(this[_0x43890d(0x181)]('createdAt'))[_0x43890d(0x172)](_0x43890d(0x180))[_0x43890d(0x179)]();}},'updatedAt':{'type':DataTypes[a639_0x1aa62b(0x177)],'get':function(){const _0x241e3e=a639_0x1aa62b;return moment(this['getDataValue']('updatedAt'))[_0x241e3e(0x172)](_0x241e3e(0x180))[_0x241e3e(0x179)]();}}};module['exports'][a639_0x1aa62b(0x17b)]=attributes; \ No newline at end of file diff --git a/server/api/screenRecording/screenRecording.controller.js b/server/api/screenRecording/screenRecording.controller.js index 7570bf8..d18197b 100644 --- a/server/api/screenRecording/screenRecording.controller.js +++ b/server/api/screenRecording/screenRecording.controller.js @@ -1 +1 @@ -const a534_0x3976=['../../mysqldb','nolimit','api','status','createdAt','cancellazione\x20fisica\x20documento\x20%s','query','path','show','type','error','existsSync','catch','sequelize','name','info','model','sort','closedAt','order','describe','findOne','include','duration','unlink','end','join','includeAll','send','%s.cypher','File:\x20\x22','set','util','.cypher','Not\x20found','count','merge','create','key','VIRTUAL','decryptFile','ScreenRecording','findAll','differenceBy','ScreenRecording\x20not\x20found','options','filters','map','length','Entity\x20not\x20found','filter','value','params','secrets','root','update','rawAttributes','fieldName','keys','unlinkSync','server/files/screen_recordings','uniqueid','message','isNil','../../config/logger','json','../../config/environment','\x22\x20trovato\x20eseguo\x20la\x20cancellazione','filename','intersection','offset','limit','destroy','download','undefined','fields','where','then','lodash','../../components/encryptor','index','like','attributes','body'];(function(_0x49c6ae,_0x397660){const _0x1203ba=function(_0x1ee3d0){while(--_0x1ee3d0){_0x49c6ae['push'](_0x49c6ae['shift']());}};_0x1203ba(++_0x397660);}(a534_0x3976,0x114));const a534_0x1203=function(_0x49c6ae,_0x397660){_0x49c6ae=_0x49c6ae-0x0;let _0x1203ba=a534_0x3976[_0x49c6ae];return _0x1203ba;};const _0x4bb34f=a534_0x1203;'use strict';const util=require(_0x4bb34f('0x8')),path=require(_0x4bb34f('0x43')),fs=require('fs'),_=require(_0x4bb34f('0x36')),qs=require('../../components/parsers/qs'),logger=require(_0x4bb34f('0x28'))(_0x4bb34f('0x3e')),config=require(_0x4bb34f('0x2a')),db=require(_0x4bb34f('0x3c'))['db'],{Op,ValidationError}=require(_0x4bb34f('0x49')),{InternalError}=require('error-middleware/errors');function respondWithResult(_0x1ee3d0,_0x547e60){return _0x547e60=_0x547e60||0xc8,function(_0x554442){const _0x54cdcb=a534_0x1203;if(_0x554442)return _0x1ee3d0[_0x54cdcb('0x3f')](_0x547e60)[_0x54cdcb('0x29')](_0x554442);};}function respondWithFilteredResult(_0x3df05f,_0x277969){return function(_0x222c23){const _0x984ae9=a534_0x1203;if(_0x222c23){const _0x1e52cf=_0x222c23[_0x984ae9('0xb')],_0x5d179b=_0x277969['offset'];let _0x237393=_0x277969[_0x984ae9('0x2e')]+_0x277969[_0x984ae9('0x2f')],_0x50b74d;return _0x237393>=_0x1e52cf?(_0x237393=_0x1e52cf,_0x50b74d=0xc8):_0x50b74d=0xce,_0x3df05f[_0x984ae9('0x3f')](_0x50b74d),_0x3df05f[_0x984ae9('0x7')]('Content-Range',_0x5d179b+'-'+_0x237393+'/'+_0x1e52cf)[_0x984ae9('0x29')](_0x222c23);}return null;};}function saveUpdates(_0x3ce16b){return function(_0x11db1a){const _0x145e69=a534_0x1203;if(_0x11db1a)return _0x11db1a[_0x145e69('0x1f')](_0x3ce16b)[_0x145e69('0x35')](function(_0x18142f){return _0x18142f;});return null;};}function handleEntityNotFound(_0x4ec2ad){return function(_0x4d3843){return!_0x4d3843&&_0x4ec2ad['sendStatus'](0x194),_0x4d3843;};}function handleError(_0x1790ce,_0x498941){return _0x498941=_0x498941||0x1f4,function(_0x3c0572){const _0x407e56=a534_0x1203;logger[_0x407e56('0x46')](_0x3c0572['stack']),_0x3c0572[_0x407e56('0x4a')]&&delete _0x3c0572[_0x407e56('0x4a')],_0x1790ce[_0x407e56('0x3f')](_0x498941)[_0x407e56('0x4')](_0x3c0572);};}exports[_0x4bb34f('0x38')]=function(_0x282017,_0x22e833){const _0x21acfc=_0x4bb34f;let _0x593a91={};const _0x153ef6={},_0x46e609={'count':0x0,'rows':[]},_0x4c4644=_['map'](db[_0x21acfc('0x11')]['rawAttributes'],function(_0x51d156){const _0x1916db=_0x21acfc;return{'name':_0x51d156[_0x1916db('0x21')],'type':_0x51d156[_0x1916db('0x45')][_0x1916db('0xe')]};});_0x153ef6[_0x21acfc('0x4c')]=_[_0x21acfc('0x13')](_[_0x21acfc('0x17')](_0x4c4644,'name'),['format']),_0x153ef6[_0x21acfc('0x42')]=_[_0x21acfc('0x22')](_0x282017['query']),_0x153ef6['filters']=_[_0x21acfc('0x2d')](_0x153ef6[_0x21acfc('0x4c')],_0x153ef6[_0x21acfc('0x42')]),_0x593a91[_0x21acfc('0x3a')]=_['intersection'](_0x153ef6[_0x21acfc('0x4c')],qs[_0x21acfc('0x33')](_0x282017[_0x21acfc('0x42')][_0x21acfc('0x33')])),_0x593a91[_0x21acfc('0x3a')]=_0x593a91[_0x21acfc('0x3a')][_0x21acfc('0x18')]?_0x593a91[_0x21acfc('0x3a')]:_0x153ef6['model'];typeof _0x282017[_0x21acfc('0x42')][_0x21acfc('0x3d')]===_0x21acfc('0x32')&&(_0x593a91[_0x21acfc('0x2f')]=qs[_0x21acfc('0x2f')](_0x282017[_0x21acfc('0x42')][_0x21acfc('0x2f')]),_0x593a91['offset']=qs[_0x21acfc('0x2e')](_0x282017['query'][_0x21acfc('0x2e')]));_0x593a91[_0x21acfc('0x4f')]=qs[_0x21acfc('0x4d')](_0x282017[_0x21acfc('0x42')][_0x21acfc('0x4d')]),_0x593a91['where']=qs['filters'](_['pick'](_0x282017['query'],_0x153ef6[_0x21acfc('0x16')]),_0x4c4644);_0x282017[_0x21acfc('0x42')][_0x21acfc('0x1a')]&&(_0x593a91[_0x21acfc('0x34')]=_[_0x21acfc('0xc')](_0x593a91[_0x21acfc('0x34')],{[Op['or']]:_[_0x21acfc('0x17')](_0x4c4644,function(_0x2df9da){const _0x45a556=_0x21acfc;if(_0x2df9da['type']!==_0x45a556('0xf')){const _0x3edec3={};return _0x3edec3[_0x2df9da[_0x45a556('0x4a')]]={[Op[_0x45a556('0x39')]]:'%'+_0x282017[_0x45a556('0x42')][_0x45a556('0x1a')]+'%'},_0x3edec3;}})}));_0x593a91=_[_0x21acfc('0xc')]({},_0x593a91,_0x282017[_0x21acfc('0x15')]);const _0x426e26={'where':_0x593a91[_0x21acfc('0x34')]};return db['ScreenRecording'][_0x21acfc('0xb')](_0x426e26)[_0x21acfc('0x35')](function(_0x3fbba8){const _0xa09583=_0x21acfc;return _0x46e609['count']=_0x3fbba8,_0x282017['query'][_0xa09583('0x3')]&&(_0x593a91[_0xa09583('0x52')]=[{'all':!![]}]),db[_0xa09583('0x11')][_0xa09583('0x12')](_0x593a91);})[_0x21acfc('0x35')](function(_0x275474){return _0x46e609['rows']=_0x275474,_0x46e609;})['then'](respondWithFilteredResult(_0x22e833,_0x593a91))[_0x21acfc('0x48')](handleError(_0x22e833,null));},exports[_0x4bb34f('0x44')]=function(_0x4b2bd4,_0x42ac82){const _0x57918a=_0x4bb34f;let _0x576d78={'raw':![],'where':{'id':_0x4b2bd4[_0x57918a('0x1c')]['id']}};const _0x5908bd={};return _0x5908bd[_0x57918a('0x4c')]=_[_0x57918a('0x22')](db['ScreenRecording'][_0x57918a('0x20')]),_0x5908bd['query']=_[_0x57918a('0x22')](_0x4b2bd4[_0x57918a('0x42')]),_0x5908bd[_0x57918a('0x16')]=_[_0x57918a('0x2d')](_0x5908bd[_0x57918a('0x4c')],_0x5908bd[_0x57918a('0x42')]),_0x576d78[_0x57918a('0x3a')]=_['intersection'](_0x5908bd[_0x57918a('0x4c')],qs[_0x57918a('0x33')](_0x4b2bd4['query']['fields'])),_0x576d78['attributes']=_0x576d78['attributes'][_0x57918a('0x18')]?_0x576d78['attributes']:_0x5908bd['model'],_0x4b2bd4['query'][_0x57918a('0x3')]&&(_0x576d78[_0x57918a('0x52')]=[{'all':!![]}]),_0x576d78=_['merge']({},_0x576d78,_0x4b2bd4['options']),db[_0x57918a('0x11')]['findOne'](_0x576d78)[_0x57918a('0x35')](handleEntityNotFound(_0x42ac82,null))[_0x57918a('0x35')](respondWithResult(_0x42ac82,null))[_0x57918a('0x48')](handleError(_0x42ac82,null));},exports[_0x4bb34f('0xd')]=function(_0x1cc670,_0x68b06a){const _0x571b23=_0x4bb34f;return db[_0x571b23('0x11')][_0x571b23('0xd')](_0x1cc670[_0x571b23('0x3b')],{})[_0x571b23('0x35')](respondWithResult(_0x68b06a,0xc9))['catch'](handleError(_0x68b06a,null));},exports['update']=function(_0x4b84c2,_0x4fc704){const _0x2eb3dd=_0x4bb34f;return _0x4b84c2[_0x2eb3dd('0x3b')]['id']&&delete _0x4b84c2[_0x2eb3dd('0x3b')]['id'],delete _0x4b84c2[_0x2eb3dd('0x3b')][_0x2eb3dd('0x53')],delete _0x4b84c2[_0x2eb3dd('0x3b')][_0x2eb3dd('0x40')],delete _0x4b84c2[_0x2eb3dd('0x3b')][_0x2eb3dd('0x4e')],delete _0x4b84c2[_0x2eb3dd('0x3b')]['value'],db[_0x2eb3dd('0x11')]['findOne']({'where':{'id':_0x4b84c2[_0x2eb3dd('0x1c')]['id']}})['then'](handleEntityNotFound(_0x4fc704,null))['then'](saveUpdates(_0x4b84c2['body'],null))[_0x2eb3dd('0x35')](respondWithResult(_0x4fc704,null))[_0x2eb3dd('0x48')](handleError(_0x4fc704,null));},exports[_0x4bb34f('0x50')]=function(_0x13f630,_0x2bc1f0){const _0x53df21=_0x4bb34f;return db[_0x53df21('0x11')][_0x53df21('0x50')]()[_0x53df21('0x35')](respondWithResult(_0x2bc1f0,null))[_0x53df21('0x48')](handleError(_0x2bc1f0,null));},exports[_0x4bb34f('0x31')]=function(_0x374e86,_0x358524){const _0x1fadac=_0x4bb34f,_0x43cb06=require(_0x1fadac('0x37'));let _0x2df0b1=![];const _0x77467a={};return _0x374e86[_0x1fadac('0x42')][_0x1fadac('0x45')]&&_0x374e86['query'][_0x1fadac('0x45')]===_0x1fadac('0x25')?_0x77467a[_0x1fadac('0x25')]=_0x374e86[_0x1fadac('0x1c')]['id']:_0x77467a['id']=_0x374e86['params']['id'],db[_0x1fadac('0x11')][_0x1fadac('0x51')]({'where':_0x77467a,'attributes':['id',_0x1fadac('0x1b')],'raw':!![]})[_0x1fadac('0x35')](handleEntityNotFound(_0x358524,null))['then'](function(_0xef6ea6){const _0x453851=_0x1fadac;if(_0xef6ea6){const _0x152d0b=path[_0x453851('0x2')](config['root'],_0x453851('0x24'),_0xef6ea6[_0x453851('0x1b')]),_0x426df2=util['format'](_0x453851('0x5'),_0x152d0b);if(fs[_0x453851('0x47')](_0x426df2))return _0x2df0b1=!![],_0x43cb06[_0x453851('0x10')](_0x426df2,_0x152d0b,config[_0x453851('0x1d')]['recording'])[_0x453851('0x35')](function(){return _0xef6ea6;});return _0xef6ea6;}})[_0x1fadac('0x35')](function(_0xbcb401){const _0x1d7509=_0x1fadac;if(_0xbcb401){const _0x2cfb40=path[_0x1d7509('0x2')](config[_0x1d7509('0x1e')],'server/files/screen_recordings',_0xbcb401[_0x1d7509('0x1b')]);if(!fs[_0x1d7509('0x47')](_0x2cfb40))throw new ValidationError('ScreenRecording\x20not\x20found');return _0xbcb401[_0x1d7509('0x2c')]?_0x358524[_0x1d7509('0x31')](_0x2cfb40,_0xbcb401[_0x1d7509('0x2c')]+path['extname'](_0x2cfb40),function(){const _0x4e52cb=_0x1d7509;_0x2df0b1&&fs[_0x4e52cb('0x0')](_0x2cfb40);}):_0x358524[_0x1d7509('0x31')](_0x2cfb40,function(){const _0x1b1230=_0x1d7509;_0x2df0b1&&fs[_0x1b1230('0x0')](_0x2cfb40);});}})[_0x1fadac('0x48')](function(_0x1e972e){const _0x90302f=_0x1fadac;if(_0x1e972e[_0x90302f('0x26')]===_0x90302f('0x14'))_0x358524[_0x90302f('0x3f')](0x194)[_0x90302f('0x4')](_0x90302f('0xa'));else return handleError(_0x358524,null);});},exports[_0x4bb34f('0x30')]=function(_0x5ed8bd,_0x2cea90){const _0x2bbaec=_0x4bb34f;return db[_0x2bbaec('0x11')][_0x2bbaec('0x51')]({'where':{'id':_0x5ed8bd[_0x2bbaec('0x1c')]['id']}})[_0x2bbaec('0x35')](function(_0x5c4398){const _0x2dc8fb=_0x2bbaec;if(!_0x5c4398)throw new ReferenceError(_0x2dc8fb('0x19'));return _0x5c4398;})[_0x2bbaec('0x35')](function(_0x2a44b9){const _0x18eb69=_0x2bbaec;let _0x2bdaf1=path[_0x18eb69('0x2')](config[_0x18eb69('0x1e')],'server/files/screen_recordings',_0x2a44b9[_0x18eb69('0x1b')]);return logger[_0x18eb69('0x4b')](_0x18eb69('0x41'),_0x2bdaf1),!_[_0x18eb69('0x27')](_0x2a44b9[_0x18eb69('0x1b')])&&fs[_0x18eb69('0x47')](_0x2bdaf1)&&(logger[_0x18eb69('0x4b')](_0x18eb69('0x6')+_0x2bdaf1+_0x18eb69('0x2b')),fs[_0x18eb69('0x23')](_0x2bdaf1)),_0x2bdaf1=_0x2bdaf1+_0x18eb69('0x9'),!_[_0x18eb69('0x27')](_0x2a44b9[_0x18eb69('0x1b')])&&fs['existsSync'](_0x2bdaf1)&&(logger[_0x18eb69('0x4b')]('File:\x20\x22'+_0x2bdaf1+_0x18eb69('0x2b')),fs['unlinkSync'](_0x2bdaf1)),_0x2a44b9;})[_0x2bbaec('0x35')](function(_0x56a7ac){const _0x578171=_0x2bbaec;if(!_0x56a7ac)throw new InternalError();return _0x56a7ac[_0x578171('0x30')]();})[_0x2bbaec('0x35')](function(){const _0x5b488d=_0x2bbaec;_0x2cea90[_0x5b488d('0x3f')](0xcc)[_0x5b488d('0x1')]();})[_0x2bbaec('0x48')](handleError(_0x2cea90,null));}; \ No newline at end of file +const a640_0x3b7a=['fields','server/files/screen_recordings','sendStatus','destroy','unlink','catch','findAll','filters','util','attributes','create','type','existsSync','.cypher','uniqueid','error','then','duration','../../components/parsers/qs','stack','../../mysqldb','../../config/environment','cancellazione\x20fisica\x20documento\x20%s','download','intersection','update','where','describe','end','api','VIRTUAL','merge','isNil','query','filter','differenceBy','format','error-middleware/errors','unlinkSync','message','closedAt','count','createdAt','info','send','includeAll','recording','keys','findOne','Entity\x20not\x20found','join','rows','fieldName','ScreenRecording','rawAttributes','json','../../config/logger','like','params','File:\x20\x22','pick','limit','length','decryptFile','status','options','name','model','map','value','nolimit','sort','\x22\x20trovato\x20eseguo\x20la\x20cancellazione','filename','offset','key','body','index','ScreenRecording\x20not\x20found','include','order','set','secrets','path','root'];(function(_0x6d3067,_0x5bba73){const _0x3b7a59=function(_0x1e4f0e){while(--_0x1e4f0e){_0x6d3067['push'](_0x6d3067['shift']());}};_0x3b7a59(++_0x5bba73);}(a640_0x3b7a,0x162));const a640_0x1e4f=function(_0x6d3067,_0x5bba73){_0x6d3067=_0x6d3067-0x177;let _0x3b7a59=a640_0x3b7a[_0x6d3067];return _0x3b7a59;};const a640_0x2f65aa=a640_0x1e4f;'use strict';const util=require(a640_0x2f65aa(0x1c6)),path=require(a640_0x2f65aa(0x1bc)),fs=require('fs'),_=require('lodash'),qs=require(a640_0x2f65aa(0x17b)),logger=require(a640_0x2f65aa(0x1a1))(a640_0x2f65aa(0x186)),config=require(a640_0x2f65aa(0x17e)),{db}=require(a640_0x2f65aa(0x17d)),{Op,ValidationError}=require('sequelize'),{InternalError}=require(a640_0x2f65aa(0x18e));function respondWithResult(_0x375c65,_0x2a5ab2){return _0x2a5ab2=_0x2a5ab2||0xc8,function(_0x4c1447){const _0x3db565=a640_0x1e4f;if(_0x4c1447)return _0x375c65[_0x3db565(0x1a9)](_0x2a5ab2)[_0x3db565(0x1a0)](_0x4c1447);};}function respondWithFilteredResult(_0x171a2d,_0x584b2a){return function(_0x25ea10){const _0x16f629=a640_0x1e4f;if(_0x25ea10){const _0x325ba4=_0x25ea10['count'],_0x4cced5=_0x584b2a[_0x16f629(0x1b3)];let _0x263d92=_0x584b2a[_0x16f629(0x1b3)]+_0x584b2a['limit'],_0x52b0b0;return _0x263d92>=_0x325ba4?(_0x263d92=_0x325ba4,_0x52b0b0=0xc8):_0x52b0b0=0xce,_0x171a2d['status'](_0x52b0b0),_0x171a2d[_0x16f629(0x1ba)]('Content-Range',_0x4cced5+'-'+_0x263d92+'/'+_0x325ba4)[_0x16f629(0x1a0)](_0x25ea10);}return null;};}function saveUpdates(_0x1c807c){return function(_0x3fa0c5){const _0x37624b=a640_0x1e4f;if(_0x3fa0c5)return _0x3fa0c5['update'](_0x1c807c)[_0x37624b(0x179)](function(_0x391529){return _0x391529;});return null;};}function handleEntityNotFound(_0x322785){return function(_0x7c62c3){const _0x78ec4a=a640_0x1e4f;return!_0x7c62c3&&_0x322785[_0x78ec4a(0x1c0)](0x194),_0x7c62c3;};}function handleError(_0x908732,_0x5b0b02){return _0x5b0b02=_0x5b0b02||0x1f4,function(_0x4225d4){const _0x3ca89c=a640_0x1e4f;logger[_0x3ca89c(0x178)](_0x4225d4[_0x3ca89c(0x17c)]),_0x4225d4[_0x3ca89c(0x1ab)]&&delete _0x4225d4['name'],_0x908732[_0x3ca89c(0x1a9)](_0x5b0b02)[_0x3ca89c(0x195)](_0x4225d4);};}exports[a640_0x2f65aa(0x1b6)]=function(_0x2c3174,_0x165e3f){const _0x451c05=a640_0x2f65aa;let _0x312866={};const _0x443ddc={},_0xf929ad={'count':0x0,'rows':[]},_0x4eb658=_[_0x451c05(0x1ad)](db[_0x451c05(0x19e)][_0x451c05(0x19f)],function(_0x4ef015){const _0x4a7a2b=_0x451c05;return{'name':_0x4ef015[_0x4a7a2b(0x19d)],'type':_0x4ef015[_0x4a7a2b(0x1c9)][_0x4a7a2b(0x1b4)]};});_0x443ddc[_0x451c05(0x1ac)]=_[_0x451c05(0x18c)](_[_0x451c05(0x1ad)](_0x4eb658,_0x451c05(0x1ab)),['format']),_0x443ddc['query']=_[_0x451c05(0x198)](_0x2c3174[_0x451c05(0x18a)]),_0x443ddc['filters']=_['intersection'](_0x443ddc[_0x451c05(0x1ac)],_0x443ddc[_0x451c05(0x18a)]),_0x312866['attributes']=_['intersection'](_0x443ddc['model'],qs['fields'](_0x2c3174[_0x451c05(0x18a)][_0x451c05(0x1be)])),_0x312866[_0x451c05(0x1c7)]=_0x312866[_0x451c05(0x1c7)][_0x451c05(0x1a7)]?_0x312866[_0x451c05(0x1c7)]:_0x443ddc['model'];typeof _0x2c3174[_0x451c05(0x18a)][_0x451c05(0x1af)]==='undefined'&&(_0x312866['limit']=qs[_0x451c05(0x1a6)](_0x2c3174['query'][_0x451c05(0x1a6)]),_0x312866[_0x451c05(0x1b3)]=qs['offset'](_0x2c3174['query'][_0x451c05(0x1b3)]));_0x312866[_0x451c05(0x1b9)]=qs[_0x451c05(0x1b0)](_0x2c3174['query'][_0x451c05(0x1b0)]),_0x312866[_0x451c05(0x183)]=qs[_0x451c05(0x1c5)](_[_0x451c05(0x1a5)](_0x2c3174[_0x451c05(0x18a)],_0x443ddc[_0x451c05(0x1c5)]),_0x4eb658);_0x2c3174['query'][_0x451c05(0x18b)]&&(_0x312866[_0x451c05(0x183)]=_[_0x451c05(0x188)](_0x312866[_0x451c05(0x183)],{[Op['or']]:_['map'](_0x4eb658,function(_0x59c8e5){const _0x165ffe=_0x451c05;if(_0x59c8e5['type']!==_0x165ffe(0x187)){const _0x27603e={};return _0x27603e[_0x59c8e5[_0x165ffe(0x1ab)]]={[Op[_0x165ffe(0x1a2)]]:'%'+_0x2c3174[_0x165ffe(0x18a)][_0x165ffe(0x18b)]+'%'},_0x27603e;}})}));_0x312866=_['merge']({},_0x312866,_0x2c3174[_0x451c05(0x1aa)]);const _0x158eb8={'where':_0x312866[_0x451c05(0x183)]};return db[_0x451c05(0x19e)][_0x451c05(0x192)](_0x158eb8)[_0x451c05(0x179)](function(_0x4a54c9){const _0x4a0cac=_0x451c05;return _0xf929ad[_0x4a0cac(0x192)]=_0x4a54c9,_0x2c3174['query'][_0x4a0cac(0x196)]&&(_0x312866[_0x4a0cac(0x1b8)]=[{'all':!![]}]),db[_0x4a0cac(0x19e)][_0x4a0cac(0x1c4)](_0x312866);})[_0x451c05(0x179)](function(_0x131d5b){const _0x14b2e9=_0x451c05;return _0xf929ad[_0x14b2e9(0x19c)]=_0x131d5b,_0xf929ad;})[_0x451c05(0x179)](respondWithFilteredResult(_0x165e3f,_0x312866))[_0x451c05(0x1c3)](handleError(_0x165e3f,null));},exports['show']=function(_0x260d2e,_0x39c71a){const _0x247687=a640_0x2f65aa;let _0xcc8200={'raw':![],'where':{'id':_0x260d2e['params']['id']}};const _0xe9695c={};return _0xe9695c['model']=_[_0x247687(0x198)](db['ScreenRecording']['rawAttributes']),_0xe9695c[_0x247687(0x18a)]=_[_0x247687(0x198)](_0x260d2e[_0x247687(0x18a)]),_0xe9695c[_0x247687(0x1c5)]=_[_0x247687(0x181)](_0xe9695c[_0x247687(0x1ac)],_0xe9695c[_0x247687(0x18a)]),_0xcc8200[_0x247687(0x1c7)]=_[_0x247687(0x181)](_0xe9695c[_0x247687(0x1ac)],qs[_0x247687(0x1be)](_0x260d2e[_0x247687(0x18a)][_0x247687(0x1be)])),_0xcc8200[_0x247687(0x1c7)]=_0xcc8200['attributes'][_0x247687(0x1a7)]?_0xcc8200[_0x247687(0x1c7)]:_0xe9695c['model'],_0x260d2e[_0x247687(0x18a)]['includeAll']&&(_0xcc8200['include']=[{'all':!![]}]),_0xcc8200=_[_0x247687(0x188)]({},_0xcc8200,_0x260d2e[_0x247687(0x1aa)]),db[_0x247687(0x19e)][_0x247687(0x199)](_0xcc8200)[_0x247687(0x179)](handleEntityNotFound(_0x39c71a,null))[_0x247687(0x179)](respondWithResult(_0x39c71a,null))['catch'](handleError(_0x39c71a,null));},exports[a640_0x2f65aa(0x1c8)]=function(_0xc86e1f,_0x3405f8){const _0x413e6f=a640_0x2f65aa;return db[_0x413e6f(0x19e)][_0x413e6f(0x1c8)](_0xc86e1f['body'],{})['then'](respondWithResult(_0x3405f8,0xc9))[_0x413e6f(0x1c3)](handleError(_0x3405f8,null));},exports[a640_0x2f65aa(0x182)]=function(_0x7aeba7,_0x12ad04){const _0xebe346=a640_0x2f65aa;return _0x7aeba7['body']['id']&&delete _0x7aeba7[_0xebe346(0x1b5)]['id'],delete _0x7aeba7[_0xebe346(0x1b5)][_0xebe346(0x17a)],delete _0x7aeba7[_0xebe346(0x1b5)][_0xebe346(0x193)],delete _0x7aeba7[_0xebe346(0x1b5)][_0xebe346(0x191)],delete _0x7aeba7[_0xebe346(0x1b5)]['value'],db['ScreenRecording'][_0xebe346(0x199)]({'where':{'id':_0x7aeba7['params']['id']}})['then'](handleEntityNotFound(_0x12ad04,null))['then'](saveUpdates(_0x7aeba7['body'],null))[_0xebe346(0x179)](respondWithResult(_0x12ad04,null))[_0xebe346(0x1c3)](handleError(_0x12ad04,null));},exports[a640_0x2f65aa(0x184)]=function(_0x30f76d,_0x49a90a){const _0x18d439=a640_0x2f65aa;return db[_0x18d439(0x19e)][_0x18d439(0x184)]()[_0x18d439(0x179)](respondWithResult(_0x49a90a,null))[_0x18d439(0x1c3)](handleError(_0x49a90a,null));},exports[a640_0x2f65aa(0x180)]=function(_0x2ca302,_0x26bc9d){const _0x6e20d7=a640_0x2f65aa,_0x34936a=require('../../components/encryptor');let _0x55394a=![];const _0x45ab19={};return _0x2ca302[_0x6e20d7(0x18a)][_0x6e20d7(0x1c9)]&&_0x2ca302['query'][_0x6e20d7(0x1c9)]===_0x6e20d7(0x177)?_0x45ab19['uniqueid']=_0x2ca302[_0x6e20d7(0x1a3)]['id']:_0x45ab19['id']=_0x2ca302[_0x6e20d7(0x1a3)]['id'],db[_0x6e20d7(0x19e)][_0x6e20d7(0x199)]({'where':_0x45ab19,'attributes':['id',_0x6e20d7(0x1ae)],'raw':!![]})[_0x6e20d7(0x179)](handleEntityNotFound(_0x26bc9d,null))[_0x6e20d7(0x179)](function(_0xd03f85){const _0x16b534=_0x6e20d7;if(_0xd03f85){const _0xe4b8df=path[_0x16b534(0x19b)](config[_0x16b534(0x1bd)],_0x16b534(0x1bf),_0xd03f85[_0x16b534(0x1ae)]),_0x1289e8=util[_0x16b534(0x18d)]('%s.cypher',_0xe4b8df);if(fs['existsSync'](_0x1289e8))return _0x55394a=!![],_0x34936a[_0x16b534(0x1a8)](_0x1289e8,_0xe4b8df,config[_0x16b534(0x1bb)][_0x16b534(0x197)])['then'](function(){return _0xd03f85;});return _0xd03f85;}})[_0x6e20d7(0x179)](function(_0xd2f8fd){const _0x224e79=_0x6e20d7;if(_0xd2f8fd){const _0x5c385d=path['join'](config[_0x224e79(0x1bd)],_0x224e79(0x1bf),_0xd2f8fd[_0x224e79(0x1ae)]);if(!fs['existsSync'](_0x5c385d))throw new ValidationError('ScreenRecording\x20not\x20found');return _0xd2f8fd[_0x224e79(0x1b2)]?_0x26bc9d['download'](_0x5c385d,_0xd2f8fd['filename']+path['extname'](_0x5c385d),function(){const _0x1fe744=_0x224e79;_0x55394a&&fs[_0x1fe744(0x1c2)](_0x5c385d);}):_0x26bc9d[_0x224e79(0x180)](_0x5c385d,function(){_0x55394a&&fs['unlink'](_0x5c385d);});}})['catch'](function(_0x16846d){const _0x52e56c=_0x6e20d7;if(_0x16846d[_0x52e56c(0x190)]===_0x52e56c(0x1b7))_0x26bc9d['status'](0x194)[_0x52e56c(0x195)]('Not\x20found');else return handleError(_0x26bc9d,null);});},exports['destroy']=function(_0x6e4d18,_0x597f0d){const _0x4d111c=a640_0x2f65aa;return db[_0x4d111c(0x19e)][_0x4d111c(0x199)]({'where':{'id':_0x6e4d18['params']['id']}})[_0x4d111c(0x179)](function(_0x4f7f67){const _0x114311=_0x4d111c;if(!_0x4f7f67)throw new ReferenceError(_0x114311(0x19a));return _0x4f7f67;})[_0x4d111c(0x179)](function(_0x2a026e){const _0x359d63=_0x4d111c;let _0x28cce9=path['join'](config['root'],_0x359d63(0x1bf),_0x2a026e[_0x359d63(0x1ae)]);return logger[_0x359d63(0x194)](_0x359d63(0x17f),_0x28cce9),!_[_0x359d63(0x189)](_0x2a026e[_0x359d63(0x1ae)])&&fs[_0x359d63(0x1ca)](_0x28cce9)&&(logger['info'](_0x359d63(0x1a4)+_0x28cce9+_0x359d63(0x1b1)),fs[_0x359d63(0x18f)](_0x28cce9)),_0x28cce9=_0x28cce9+_0x359d63(0x1cb),!_[_0x359d63(0x189)](_0x2a026e['value'])&&fs['existsSync'](_0x28cce9)&&(logger[_0x359d63(0x194)](_0x359d63(0x1a4)+_0x28cce9+_0x359d63(0x1b1)),fs[_0x359d63(0x18f)](_0x28cce9)),_0x2a026e;})['then'](function(_0x3b3425){const _0x52d4e6=_0x4d111c;if(!_0x3b3425)throw new InternalError();return _0x3b3425[_0x52d4e6(0x1c1)]();})[_0x4d111c(0x179)](function(){const _0x486d90=_0x4d111c;_0x597f0d[_0x486d90(0x1a9)](0xcc)[_0x486d90(0x185)]();})[_0x4d111c(0x1c3)](handleError(_0x597f0d,null));}; \ No newline at end of file diff --git a/server/api/screenRecording/screenRecording.model.js b/server/api/screenRecording/screenRecording.model.js index 988e4e3..82573dd 100644 --- a/server/api/screenRecording/screenRecording.model.js +++ b/server/api/screenRecording/screenRecording.model.js @@ -1 +1 @@ -const a535_0x4a78=['screen_recordings','./screenRecording.attributes','exports','ScreenRecording','interactionid'];(function(_0x5d037f,_0x4a784c){const _0x1b3a1e=function(_0x5b60fd){while(--_0x5b60fd){_0x5d037f['push'](_0x5d037f['shift']());}};_0x1b3a1e(++_0x4a784c);}(a535_0x4a78,0x8c));const a535_0x1b3a=function(_0x5d037f,_0x4a784c){_0x5d037f=_0x5d037f-0x0;let _0x1b3a1e=a535_0x4a78[_0x5d037f];return _0x1b3a1e;};const _0x28b98d=a535_0x1b3a;'use strict';const attributes=require(_0x28b98d('0x1'));module[_0x28b98d('0x2')]=function(_0x5b60fd){const _0x52d921=_0x28b98d,_0xb9eb95=_0x5b60fd['define'](_0x52d921('0x3'),attributes,{'tableName':_0x52d921('0x0'),'paranoid':![],'indexes':[{'name':_0x52d921('0x4'),'fields':[_0x52d921('0x4')]}],'timestamps':!![]});return _0xb9eb95;}; \ No newline at end of file +const a641_0x236d=['sequelize','exports','./screenRecording.attributes','./screenRecording.options','init'];(function(_0x1572cf,_0x5db4d9){const _0x236de1=function(_0x517123){while(--_0x517123){_0x1572cf['push'](_0x1572cf['shift']());}};_0x236de1(++_0x5db4d9);}(a641_0x236d,0xbc));const a641_0x5171=function(_0x1572cf,_0x5db4d9){_0x1572cf=_0x1572cf-0x81;let _0x236de1=a641_0x236d[_0x1572cf];return _0x236de1;};const a641_0x18ac14=a641_0x5171;'use strict';const {Model}=require(a641_0x18ac14(0x83)),{attributes}=require(a641_0x18ac14(0x85)),{options}=require(a641_0x18ac14(0x81));class ScreenRecording extends Model{}function init(_0x2869ab,_0x307873){const _0x6b3f76=a641_0x18ac14,_0x1864f2=options(_0x2869ab),_0x5b775f=typeof _0x307873==='function'?_0x307873(_0x1864f2):_0x1864f2;return ScreenRecording[_0x6b3f76(0x82)](attributes,_0x5b775f),ScreenRecording;}module[a641_0x18ac14(0x84)]['ScreenRecording']=ScreenRecording,module[a641_0x18ac14(0x84)][a641_0x18ac14(0x82)]=init; \ No newline at end of file diff --git a/server/api/screenRecording/screenRecording.options.js b/server/api/screenRecording/screenRecording.options.js new file mode 100644 index 0000000..49294f1 --- /dev/null +++ b/server/api/screenRecording/screenRecording.options.js @@ -0,0 +1 @@ +var a642_0x38f1=['options','exports','interactionid'];(function(_0x4b01a8,_0x3f5df9){var _0x38f1f6=function(_0xd0698d){while(--_0xd0698d){_0x4b01a8['push'](_0x4b01a8['shift']());}};_0x38f1f6(++_0x3f5df9);}(a642_0x38f1,0x1b2));var a642_0xd069=function(_0x4b01a8,_0x3f5df9){_0x4b01a8=_0x4b01a8-0x99;var _0x38f1f6=a642_0x38f1[_0x4b01a8];return _0x38f1f6;};var a642_0x3d2119=a642_0xd069;function options(_0x5ec8fe){var _0x138628=a642_0xd069;return{'sequelize':_0x5ec8fe,'tableName':'screen_recordings','paranoid':![],'indexes':[{'name':_0x138628(0x99),'fields':[_0x138628(0x99)]}],'timestamps':!![]};}module[a642_0x3d2119(0x9b)][a642_0x3d2119(0x9a)]=options; \ No newline at end of file diff --git a/server/api/setting/index.js b/server/api/setting/index.js index a85b4eb..fa43994 100644 --- a/server/api/setting/index.js +++ b/server/api/setting/index.js @@ -1 +1 @@ -const a536_0x437a=['addLogo','/:id/preferred','/:id/logo','extname','single','./setting.controller','show','/now','/:id/favicon','/:id/gdpr','../../components/auth/service','isAuthenticated','exports','update','logo','post','gdpr','originalname','express','diskStorage','getFavicon','%s%s','/:id','multer','addFavicon','getDate','getPreferred','file','get','util','format','addPreferred','getLogo','/:id/logo_login','files/images/logos/','Router','join'];(function(_0x1eee4e,_0x437abd){const _0x22947a=function(_0x53deff){while(--_0x53deff){_0x1eee4e['push'](_0x1eee4e['shift']());}};_0x22947a(++_0x437abd);}(a536_0x437a,0x172));const a536_0x2294=function(_0x1eee4e,_0x437abd){_0x1eee4e=_0x1eee4e-0x0;let _0x22947a=a536_0x437a[_0x1eee4e];return _0x22947a;};const _0x5ef8c6=a536_0x2294;'use strict';const multer=require(_0x5ef8c6('0x17')),util=require(_0x5ef8c6('0x1d')),path=require('path'),express=require(_0x5ef8c6('0x12')),router=express[_0x5ef8c6('0x23')](),auth=require(_0x5ef8c6('0xa')),config=require('../../config/environment'),controller=require(_0x5ef8c6('0x5')),upload=_0x53deff=>multer({'storage':multer[_0x5ef8c6('0x13')]({'destination':function(_0x52ad7d,_0x37f66f,_0x4e95e9){const _0x596171=_0x5ef8c6;_0x4e95e9(null,path[_0x596171('0x24')](config['root'],_0x596171('0x22')));},'filename':function(_0x5ebea9,_0x3c8266,_0x5845c7){const _0x2f3407=_0x5ef8c6;_0x5845c7(null,util[_0x2f3407('0x1e')](_0x2f3407('0x15'),_0x53deff,path[_0x2f3407('0x3')](_0x3c8266[_0x2f3407('0x11')])));}})});router[_0x5ef8c6('0x1c')]('/',auth[_0x5ef8c6('0xb')](),controller['index']),router[_0x5ef8c6('0x1c')](_0x5ef8c6('0x7'),controller[_0x5ef8c6('0x19')]),router['get'](_0x5ef8c6('0x16'),controller[_0x5ef8c6('0x6')]),router[_0x5ef8c6('0x1c')]('/:id/logo',controller[_0x5ef8c6('0x20')]),router[_0x5ef8c6('0x1c')](_0x5ef8c6('0x21'),controller['getLogoLogin']),router[_0x5ef8c6('0x1c')](_0x5ef8c6('0x9'),controller[_0x5ef8c6('0x10')]),router[_0x5ef8c6('0x1c')]('/:id/preferred',controller[_0x5ef8c6('0x1a')]),router[_0x5ef8c6('0x1c')]('/:id/favicon',controller[_0x5ef8c6('0x14')]),router[_0x5ef8c6('0xf')](_0x5ef8c6('0x2'),upload(_0x5ef8c6('0xe'))[_0x5ef8c6('0x4')](_0x5ef8c6('0x1b')),controller[_0x5ef8c6('0x0')]),router[_0x5ef8c6('0xf')](_0x5ef8c6('0x21'),upload('logologin')[_0x5ef8c6('0x4')](_0x5ef8c6('0x1b')),controller['addLogoLogin']),router['post'](_0x5ef8c6('0x1'),upload('preferred')[_0x5ef8c6('0x4')](_0x5ef8c6('0x1b')),controller[_0x5ef8c6('0x1f')]),router[_0x5ef8c6('0xf')](_0x5ef8c6('0x8'),upload('favicon')['single'](_0x5ef8c6('0x1b')),controller[_0x5ef8c6('0x18')]),router['put'](_0x5ef8c6('0x16'),auth[_0x5ef8c6('0xb')](),controller[_0x5ef8c6('0xd')]),module[_0x5ef8c6('0xc')]=router; \ No newline at end of file +const a643_0x28bd=['logo','join','/:id/preferred','../../config/environment','preferred','getFavicon','diskStorage','format','/now','/:id/favicon','exports','%s%s','/:id/gdpr','addLogo','logologin','getLogoLogin','show','single','/:id','file','multer','express','./setting.controller','update','path','root','isAuthenticated','Router','addLogoLogin','/:id/logo','post','/:id/logo_login','put','originalname','../../components/auth/service','getPreferred','util','extname','favicon','get'];(function(_0x1aa1af,_0x174470){const _0x28bd43=function(_0x48b04c){while(--_0x48b04c){_0x1aa1af['push'](_0x1aa1af['shift']());}};_0x28bd43(++_0x174470);}(a643_0x28bd,0x148));const a643_0x48b0=function(_0x1aa1af,_0x174470){_0x1aa1af=_0x1aa1af-0x186;let _0x28bd43=a643_0x28bd[_0x1aa1af];return _0x28bd43;};const a643_0x392439=a643_0x48b0;'use strict';const multer=require(a643_0x392439(0x192)),util=require(a643_0x392439(0x1a2)),path=require(a643_0x392439(0x196)),express=require(a643_0x392439(0x193)),router=express[a643_0x392439(0x199)](),auth=require(a643_0x392439(0x1a0)),config=require(a643_0x392439(0x1a9)),controller=require(a643_0x392439(0x194)),upload=_0xa8133e=>multer({'storage':multer[a643_0x392439(0x1ac)]({'destination':function(_0x30c00a,_0x460796,_0x3c7648){const _0x50ae2d=a643_0x392439;_0x3c7648(null,path[_0x50ae2d(0x1a7)](config[_0x50ae2d(0x197)],'files/images/logos/'));},'filename':function(_0xe661e9,_0x173ba1,_0x2d86ac){const _0x5dea96=a643_0x392439;_0x2d86ac(null,util[_0x5dea96(0x1ad)](_0x5dea96(0x189),_0xa8133e,path[_0x5dea96(0x1a3)](_0x173ba1[_0x5dea96(0x19f)])));}})});router['get']('/',auth[a643_0x392439(0x198)](),controller['index']),router[a643_0x392439(0x1a5)](a643_0x392439(0x186),controller['getDate']),router[a643_0x392439(0x1a5)](a643_0x392439(0x190),controller[a643_0x392439(0x18e)]),router[a643_0x392439(0x1a5)](a643_0x392439(0x19b),controller['getLogo']),router['get'](a643_0x392439(0x19d),controller[a643_0x392439(0x18d)]),router[a643_0x392439(0x1a5)](a643_0x392439(0x18a),controller['gdpr']),router[a643_0x392439(0x1a5)](a643_0x392439(0x1a8),controller[a643_0x392439(0x1a1)]),router[a643_0x392439(0x1a5)](a643_0x392439(0x187),controller[a643_0x392439(0x1ab)]),router[a643_0x392439(0x19c)](a643_0x392439(0x19b),upload(a643_0x392439(0x1a6))[a643_0x392439(0x18f)]('file'),controller[a643_0x392439(0x18b)]),router[a643_0x392439(0x19c)](a643_0x392439(0x19d),upload(a643_0x392439(0x18c))['single'](a643_0x392439(0x191)),controller[a643_0x392439(0x19a)]),router[a643_0x392439(0x19c)]('/:id/preferred',upload(a643_0x392439(0x1aa))['single']('file'),controller['addPreferred']),router[a643_0x392439(0x19c)](a643_0x392439(0x187),upload(a643_0x392439(0x1a4))[a643_0x392439(0x18f)](a643_0x392439(0x191)),controller['addFavicon']),router[a643_0x392439(0x19e)](a643_0x392439(0x190),auth[a643_0x392439(0x198)](),controller[a643_0x392439(0x195)]),module[a643_0x392439(0x188)]=router; \ No newline at end of file diff --git a/server/api/setting/setting.attributes.js b/server/api/setting/setting.attributes.js index e9e348b..47c52f4 100644 --- a/server/api/setting/setting.attributes.js +++ b/server/api/setting/setting.attributes.js @@ -1 +1 @@ -const a537_0x12bf=['min_mailbox','alternate','UNSIGNED','BOOLEAN','min_internal','sequelize','exports','https://www.xcally.com/bar/phonebar/autoupdater.xml','/var/opt/motion2/server/files/sounds/converted','STRING','INTEGER'];(function(_0x2faf38,_0x12bf2a){const _0x4ff8d4=function(_0x4686ca){while(--_0x4686ca){_0x2faf38['push'](_0x2faf38['shift']());}};_0x4ff8d4(++_0x12bf2a);}(a537_0x12bf,0x16e));const a537_0x4ff8=function(_0x2faf38,_0x12bf2a){_0x2faf38=_0x2faf38-0x0;let _0x4ff8d4=a537_0x12bf[_0x2faf38];return _0x4ff8d4;};const _0x2db5cd=a537_0x4ff8;'use strict';const Sequelize=require(_0x2db5cd('0x2'));module[_0x2db5cd('0x3')]={'min_internal':{'type':Sequelize['INTEGER'](0xb),'unique':_0x2db5cd('0x1'),'defaultValue':0x3e8},'min_mailbox':{'type':Sequelize['INTEGER'](0xb),'unique':_0x2db5cd('0x8'),'defaultValue':0x3e8},'agi_port':{'type':Sequelize[_0x2db5cd('0x7')](0xb),'defaultValue':0x11dd},'soundPath':{'type':Sequelize[_0x2db5cd('0x6')],'defaultValue':_0x2db5cd('0x5')},'logo':{'type':Sequelize[_0x2db5cd('0x6')]},'defaultLogo':{'type':Sequelize[_0x2db5cd('0x0')],'defaultValue':!![]},'loginLogo':{'type':Sequelize[_0x2db5cd('0x6')]},'defaultLoginLogo':{'type':Sequelize[_0x2db5cd('0x0')],'defaultValue':!![]},'headerWhiteLabel':{'type':Sequelize[_0x2db5cd('0x6')]},'defaultHeaderWhiteLabel':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'securePassword':{'type':Sequelize[_0x2db5cd('0x0')],'defaultValue':!![]},'firstSetup':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'stunaddr':{'type':Sequelize[_0x2db5cd('0x6')]},'turnaddr':{'type':Sequelize[_0x2db5cd('0x6')]},'turnusername':{'type':Sequelize[_0x2db5cd('0x6')]},'turnpassword':{'type':Sequelize['STRING']},'pageTitle':{'type':Sequelize[_0x2db5cd('0x6')]},'defaultPageTitle':{'type':Sequelize[_0x2db5cd('0x0')],'defaultValue':!![]},'callRecordingEncryption':{'type':Sequelize[_0x2db5cd('0x0')],'defaultValue':![]},'passwordExpiresDays':{'type':Sequelize['INTEGER'](0xb),'defaultValue':0x5a},'phoneBarAutoUpdater':{'type':Sequelize[_0x2db5cd('0x0')],'defaultValue':!![]},'phoneBarAutoUpdaterUrl':{'type':Sequelize[_0x2db5cd('0x6')],'defaultValue':_0x2db5cd('0x4')},'enableEmailPreview':{'type':Sequelize[_0x2db5cd('0x0')],'defaultValue':![]},'split':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'splitSizeCsv':{'type':Sequelize[_0x2db5cd('0x7')],'defaultValue':0x1388},'splitSizePdf':{'type':Sequelize[_0x2db5cd('0x7')],'defaultValue':0x1388},'splitSizeXlsx':{'type':Sequelize[_0x2db5cd('0x7')],'defaultValue':0x1388},'messagesAlignment':{'type':Sequelize[_0x2db5cd('0x6')],'defaultValue':_0x2db5cd('0x9')},'chatTimeout':{'type':Sequelize[_0x2db5cd('0x7')],'defaultValue':0x1e},'phoneBarRememberMeEnabled':{'type':Sequelize[_0x2db5cd('0x0')],'defaultValue':!![]},'preferred':{'type':Sequelize[_0x2db5cd('0x6')]},'defaultPreferred':{'type':Sequelize[_0x2db5cd('0x0')],'defaultValue':!![]},'rtlSupport':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'defaultScreenRecordingPath':{'type':Sequelize[_0x2db5cd('0x6')]},'allowedLoginAttempts':{'type':Sequelize[_0x2db5cd('0x7')],'defaultValue':0x5},'blockDuration':{'type':Sequelize[_0x2db5cd('0x7')],'defaultValue':0xa},'favicon':{'type':Sequelize[_0x2db5cd('0x6')]},'defaultFavicon':{'type':Sequelize[_0x2db5cd('0x0')],'defaultValue':!![]},'loginMailFrequency':{'type':Sequelize['INTEGER'],'defaultValue':0xa,'validate':{'min':0xa}},'transcribe':{'type':Sequelize[_0x2db5cd('0x0')],'defaultValue':![]},'automaticTranscribe':{'type':Sequelize[_0x2db5cd('0x0')],'defaultValue':![]},'transcribeAccountId':{'type':Sequelize[_0x2db5cd('0x7')]},'transcribeRegion':{'type':Sequelize[_0x2db5cd('0x6')]},'sentiment':{'type':Sequelize[_0x2db5cd('0x0')],'defaultValue':![]},'automaticSentiment':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'sentimentAccountId':{'type':Sequelize[_0x2db5cd('0x7')]},'sentimentRegion':{'type':Sequelize[_0x2db5cd('0x6')]},'language':{'type':Sequelize[_0x2db5cd('0x6')]},'bucket':{'type':Sequelize[_0x2db5cd('0x6')]},'googleSsoEnabled':{'type':Sequelize[_0x2db5cd('0x0')],'defaultValue':![]},'enforcePasswordHistory':{'type':Sequelize[_0x2db5cd('0x0')],'defaultValue':!![]},'passwordHistoryLimit':{'type':Sequelize[_0x2db5cd('0x7')](0x2)[_0x2db5cd('0xa')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x5}}}; \ No newline at end of file +const a644_0x2115=['INTEGER','alternate','BOOLEAN','/var/opt/motion2/server/files/sounds/converted','STRING','min_internal','exports','attributes','min_mailbox','UNSIGNED'];(function(_0x534527,_0x2c972f){const _0x2115de=function(_0x3b85ec){while(--_0x3b85ec){_0x534527['push'](_0x534527['shift']());}};_0x2115de(++_0x2c972f);}(a644_0x2115,0x117));const a644_0x3b85=function(_0x534527,_0x2c972f){_0x534527=_0x534527-0x173;let _0x2115de=a644_0x2115[_0x534527];return _0x2115de;};const a644_0x303d72=a644_0x3b85;'use strict';const {DataTypes}=require('sequelize'),attributes={'min_internal':{'type':DataTypes[a644_0x303d72(0x174)]({'length':0xb}),'unique':a644_0x303d72(0x179),'defaultValue':0x3e8},'min_mailbox':{'type':DataTypes[a644_0x303d72(0x174)]({'length':0xb}),'unique':a644_0x303d72(0x17c),'defaultValue':0x3e8},'agi_port':{'type':DataTypes[a644_0x303d72(0x174)]({'length':0xb}),'defaultValue':0x11dd},'soundPath':{'type':DataTypes[a644_0x303d72(0x178)],'defaultValue':a644_0x303d72(0x177)},'logo':{'type':DataTypes['STRING']},'defaultLogo':{'type':DataTypes[a644_0x303d72(0x176)],'defaultValue':!![]},'loginLogo':{'type':DataTypes[a644_0x303d72(0x178)]},'defaultLoginLogo':{'type':DataTypes[a644_0x303d72(0x176)],'defaultValue':!![]},'headerWhiteLabel':{'type':DataTypes[a644_0x303d72(0x178)]},'defaultHeaderWhiteLabel':{'type':DataTypes[a644_0x303d72(0x176)],'defaultValue':!![]},'securePassword':{'type':DataTypes[a644_0x303d72(0x176)],'defaultValue':!![]},'firstSetup':{'type':DataTypes[a644_0x303d72(0x176)],'defaultValue':!![]},'stunaddr':{'type':DataTypes[a644_0x303d72(0x178)]},'turnaddr':{'type':DataTypes[a644_0x303d72(0x178)]},'turnusername':{'type':DataTypes[a644_0x303d72(0x178)]},'turnpassword':{'type':DataTypes[a644_0x303d72(0x178)]},'pageTitle':{'type':DataTypes[a644_0x303d72(0x178)]},'defaultPageTitle':{'type':DataTypes[a644_0x303d72(0x176)],'defaultValue':!![]},'callRecordingEncryption':{'type':DataTypes[a644_0x303d72(0x176)],'defaultValue':![]},'passwordExpiresDays':{'type':DataTypes[a644_0x303d72(0x174)]({'length':0xb}),'defaultValue':0x5a},'phoneBarAutoUpdater':{'type':DataTypes[a644_0x303d72(0x176)],'defaultValue':!![]},'phoneBarAutoUpdaterUrl':{'type':DataTypes[a644_0x303d72(0x178)],'defaultValue':'https://www.xcally.com/bar/phonebar/autoupdater.xml'},'enableEmailPreview':{'type':DataTypes[a644_0x303d72(0x176)],'defaultValue':![]},'split':{'type':DataTypes[a644_0x303d72(0x176)],'defaultValue':!![]},'splitSizeCsv':{'type':DataTypes['INTEGER'],'defaultValue':0x1388},'splitSizePdf':{'type':DataTypes[a644_0x303d72(0x174)],'defaultValue':0x1388},'splitSizeXlsx':{'type':DataTypes['INTEGER'],'defaultValue':0x1388},'messagesAlignment':{'type':DataTypes['STRING'],'defaultValue':a644_0x303d72(0x175)},'chatTimeout':{'type':DataTypes[a644_0x303d72(0x174)],'defaultValue':0x1e},'phoneBarRememberMeEnabled':{'type':DataTypes[a644_0x303d72(0x176)],'defaultValue':!![]},'preferred':{'type':DataTypes[a644_0x303d72(0x178)]},'defaultPreferred':{'type':DataTypes[a644_0x303d72(0x176)],'defaultValue':!![]},'rtlSupport':{'type':DataTypes[a644_0x303d72(0x176)],'defaultValue':![]},'defaultScreenRecordingPath':{'type':DataTypes[a644_0x303d72(0x178)]},'allowedLoginAttempts':{'type':DataTypes[a644_0x303d72(0x174)],'defaultValue':0x5},'blockDuration':{'type':DataTypes[a644_0x303d72(0x174)],'defaultValue':0xa},'favicon':{'type':DataTypes[a644_0x303d72(0x178)]},'defaultFavicon':{'type':DataTypes[a644_0x303d72(0x176)],'defaultValue':!![]},'loginMailFrequency':{'type':DataTypes[a644_0x303d72(0x174)],'defaultValue':0xa,'validate':{'min':0xa}},'transcribe':{'type':DataTypes[a644_0x303d72(0x176)],'defaultValue':![]},'automaticTranscribe':{'type':DataTypes[a644_0x303d72(0x176)],'defaultValue':![]},'transcribeAccountId':{'type':DataTypes[a644_0x303d72(0x174)]},'transcribeRegion':{'type':DataTypes['STRING']},'sentiment':{'type':DataTypes[a644_0x303d72(0x176)],'defaultValue':![]},'automaticSentiment':{'type':DataTypes[a644_0x303d72(0x176)],'defaultValue':![]},'sentimentAccountId':{'type':DataTypes[a644_0x303d72(0x174)]},'sentimentRegion':{'type':DataTypes[a644_0x303d72(0x178)]},'language':{'type':DataTypes[a644_0x303d72(0x178)]},'bucket':{'type':DataTypes[a644_0x303d72(0x178)]},'googleSsoEnabled':{'type':DataTypes[a644_0x303d72(0x176)],'defaultValue':![]},'enforcePasswordHistory':{'type':DataTypes[a644_0x303d72(0x176)],'defaultValue':!![]},'passwordHistoryLimit':{'type':DataTypes[a644_0x303d72(0x174)]({'length':0x2})[a644_0x303d72(0x173)],'defaultValue':0x3,'validate':{'min':0x1,'max':0x5}}};module[a644_0x303d72(0x17a)][a644_0x303d72(0x17b)]=attributes; \ No newline at end of file diff --git a/server/api/setting/setting.controller.js b/server/api/setting/setting.controller.js index 7458333..26a6e66 100644 --- a/server/api/setting/setting.controller.js +++ b/server/api/setting/setting.controller.js @@ -1 +1 @@ -const a538_0x2989=['loginLogo','index','filter','fieldName','gdpr','default','default_preferred.png','status','favicon','name','toLower','moment','addPreferred','json','include','count','\x20not\x20found','nolimit','path','download','preferred','getPreferred','logo','model','key','default_logo.svg','body','defaultLoginLogo','../../components/parsers/qs','files/images/logos','undefined','catch','keys','Setting','upperFirst','where','options','root','lodash','default_favicon.ico','../../config/environment','rawAttributes','getLicense','getLogo','sort','utcOffset','intersection','defaultFavicon','sendStatus','order','fields','offset','join','file','like','update','error','addFavicon','map','then','params','pick','getDate','api','filters','defaultPreferred','merge','../../config/logger','findOne','default_loginLogo.svg','attributes','Content-Range','filename','VIRTUAL','send','custom','addLogoLogin','includeAll','defaultLogo','limit','existsSync','query','type'];(function(_0x1d1d12,_0x29899d){const _0x485a4c=function(_0xf37589){while(--_0xf37589){_0x1d1d12['push'](_0x1d1d12['shift']());}};_0x485a4c(++_0x29899d);}(a538_0x2989,0x17c));const a538_0x485a=function(_0x1d1d12,_0x29899d){_0x1d1d12=_0x1d1d12-0x0;let _0x485a4c=a538_0x2989[_0x1d1d12];return _0x485a4c;};const _0x16dde0=a538_0x485a;'use strict';const path=require(_0x16dde0('0x35')),fs=require('fs'),_=require(_0x16dde0('0x49')),qs=require(_0x16dde0('0x3f')),logger=require(_0x16dde0('0x13'))(_0x16dde0('0xf')),config=require(_0x16dde0('0x4b')),db=require('../../mysqldb')['db'],{Op,ValidationError}=require('sequelize'),utilLicense=require('../../config/license/util'),moment=require(_0x16dde0('0x2e'));function respondWithResult(_0xf37589,_0x4c6841){return _0x4c6841=_0x4c6841||0xc8,function(_0x53a5e8){const _0x44950e=a538_0x485a;if(_0x53a5e8)return _0xf37589[_0x44950e('0x2a')](_0x4c6841)[_0x44950e('0x30')](_0x53a5e8);};}function respondWithFilteredResult(_0x2a47b2,_0x3b4ff4){return function(_0x554b3c){const _0x3d7e0c=a538_0x485a;if(_0x554b3c){const _0x32ab92=_0x554b3c[_0x3d7e0c('0x32')],_0x1fe758=_0x3b4ff4[_0x3d7e0c('0x3')];let _0x3b1295=_0x3b4ff4[_0x3d7e0c('0x3')]+_0x3b4ff4[_0x3d7e0c('0x1f')],_0x30f399;return _0x3b1295>=_0x32ab92?(_0x3b1295=_0x32ab92,_0x30f399=0xc8):_0x30f399=0xce,_0x2a47b2['status'](_0x30f399),_0x2a47b2['set'](_0x3d7e0c('0x17'),_0x1fe758+'-'+_0x3b1295+'/'+_0x32ab92)[_0x3d7e0c('0x30')](_0x554b3c);}return null;};}function saveUpdates(_0x125882){return function(_0x193a8f){const _0x54043d=a538_0x485a;if(_0x193a8f)return _0x193a8f[_0x54043d('0x7')](_0x125882)['then'](function(_0x373b33){return _0x373b33;});return null;};}function handleEntityNotFound(_0x1e6ca1){return function(_0x26e21e){const _0x4080e4=a538_0x485a;return!_0x26e21e&&_0x1e6ca1[_0x4080e4('0x0')](0x194),_0x26e21e;};}function handleError(_0x5a2637,_0x15b413){return _0x15b413=_0x15b413||0x1f4,function(_0x298a64){const _0x40af4b=a538_0x485a;logger[_0x40af4b('0x8')](_0x298a64['stack']),_0x298a64[_0x40af4b('0x2c')]&&delete _0x298a64[_0x40af4b('0x2c')],_0x5a2637[_0x40af4b('0x2a')](_0x15b413)[_0x40af4b('0x1a')](_0x298a64);};}exports[_0x16dde0('0x24')]=function(_0x2ccb14,_0x1d4248){const _0x2f1c54=_0x16dde0;let _0x578d4e={};const _0x430016={},_0x30f923={'count':0x0,'rows':[]},_0x532a2e=_[_0x2f1c54('0xa')](db[_0x2f1c54('0x44')][_0x2f1c54('0x4c')],function(_0x549e5f){const _0x52595f=_0x2f1c54;return{'name':_0x549e5f[_0x52595f('0x26')],'type':_0x549e5f[_0x52595f('0x22')][_0x52595f('0x3b')]};});_0x430016[_0x2f1c54('0x3a')]=_['map'](_0x532a2e,'name'),_0x430016[_0x2f1c54('0x21')]=_[_0x2f1c54('0x43')](_0x2ccb14['query']),_0x430016['filters']=_[_0x2f1c54('0x51')](_0x430016[_0x2f1c54('0x3a')],_0x430016[_0x2f1c54('0x21')]),_0x578d4e['attributes']=_[_0x2f1c54('0x51')](_0x430016['model'],qs[_0x2f1c54('0x2')](_0x2ccb14[_0x2f1c54('0x21')][_0x2f1c54('0x2')])),_0x578d4e[_0x2f1c54('0x16')]=_0x578d4e[_0x2f1c54('0x16')]['length']?_0x578d4e[_0x2f1c54('0x16')]:_0x430016[_0x2f1c54('0x3a')];typeof _0x2ccb14['query'][_0x2f1c54('0x34')]===_0x2f1c54('0x41')&&(_0x578d4e[_0x2f1c54('0x1f')]=qs[_0x2f1c54('0x1f')](_0x2ccb14['query']['limit']),_0x578d4e['offset']=qs[_0x2f1c54('0x3')](_0x2ccb14['query'][_0x2f1c54('0x3')]));_0x578d4e[_0x2f1c54('0x1')]=qs[_0x2f1c54('0x4f')](_0x2ccb14['query']['sort']),_0x578d4e[_0x2f1c54('0x46')]=qs[_0x2f1c54('0x10')](_[_0x2f1c54('0xd')](_0x2ccb14['query'],_0x430016[_0x2f1c54('0x10')]),_0x532a2e);_0x2ccb14[_0x2f1c54('0x21')]['filter']&&(_0x578d4e[_0x2f1c54('0x46')]=_['merge'](_0x578d4e[_0x2f1c54('0x46')],{[Op['or']]:_[_0x2f1c54('0xa')](_0x532a2e,function(_0x3792e1){const _0x1984df=_0x2f1c54;if(_0x3792e1['type']!==_0x1984df('0x19')){const _0x3d6fed={};return _0x3d6fed[_0x3792e1[_0x1984df('0x2c')]]={[Op[_0x1984df('0x6')]]:'%'+_0x2ccb14[_0x1984df('0x21')][_0x1984df('0x25')]+'%'},_0x3d6fed;}})}));_0x578d4e=_[_0x2f1c54('0x12')]({},_0x578d4e,_0x2ccb14[_0x2f1c54('0x47')]);const _0xf3f4c2={'where':_0x578d4e[_0x2f1c54('0x46')]};return db[_0x2f1c54('0x44')][_0x2f1c54('0x32')](_0xf3f4c2)['then'](function(_0x5179e3){const _0x22a13f=_0x2f1c54;return _0x30f923[_0x22a13f('0x32')]=_0x5179e3,_0x2ccb14['query'][_0x22a13f('0x1d')]&&(_0x578d4e[_0x22a13f('0x31')]=[{'all':!![]}]),db['Setting']['findAll'](_0x578d4e);})['then'](function(_0x4ed160){return _0x30f923['rows']=_0x4ed160,_0x30f923;})[_0x2f1c54('0xb')](respondWithFilteredResult(_0x1d4248,_0x578d4e))[_0x2f1c54('0x42')](handleError(_0x1d4248,null));},exports['show']=function(_0x36ce3d,_0x1e91de){const _0x1aa55e=_0x16dde0;let _0x414963={'raw':![],'where':{'id':_0x36ce3d[_0x1aa55e('0xc')]['id']}};const _0x1fd630={};return _0x1fd630[_0x1aa55e('0x3a')]=_[_0x1aa55e('0x43')](db['Setting']['rawAttributes']),_0x1fd630['query']=_[_0x1aa55e('0x43')](_0x36ce3d[_0x1aa55e('0x21')]),_0x1fd630[_0x1aa55e('0x10')]=_[_0x1aa55e('0x51')](_0x1fd630[_0x1aa55e('0x3a')],_0x1fd630['query']),_0x414963[_0x1aa55e('0x16')]=_[_0x1aa55e('0x51')](_0x1fd630[_0x1aa55e('0x3a')],qs[_0x1aa55e('0x2')](_0x36ce3d[_0x1aa55e('0x21')][_0x1aa55e('0x2')])),_0x414963[_0x1aa55e('0x16')]=_0x414963[_0x1aa55e('0x16')]['length']?_0x414963[_0x1aa55e('0x16')]:_0x1fd630[_0x1aa55e('0x3a')],_0x36ce3d['query'][_0x1aa55e('0x1d')]&&(_0x414963[_0x1aa55e('0x31')]=[{'all':!![]}]),_0x414963=_['merge']({},_0x414963,_0x36ce3d['options']),db['Setting']['findOne'](_0x414963)[_0x1aa55e('0xb')](handleEntityNotFound(_0x1e91de,null))['then'](respondWithResult(_0x1e91de,null))[_0x1aa55e('0x42')](handleError(_0x1e91de,null));},exports['update']=function(_0x2b0077,_0x467319){const _0x22f7b3=_0x16dde0;return _0x2b0077[_0x22f7b3('0x3d')]['id']&&delete _0x2b0077[_0x22f7b3('0x3d')]['id'],db[_0x22f7b3('0x44')][_0x22f7b3('0x14')]({'where':{'id':_0x2b0077[_0x22f7b3('0xc')]['id']}})[_0x22f7b3('0xb')](handleEntityNotFound(_0x467319,null))[_0x22f7b3('0xb')](saveUpdates(_0x2b0077[_0x22f7b3('0x3d')],null))[_0x22f7b3('0xb')](respondWithResult(_0x467319,null))[_0x22f7b3('0x42')](handleError(_0x467319,null));},exports['addLogo']=function(_0x1d10a9,_0xcb0782){const _0x5c5098=_0x16dde0;return _0x1d10a9[_0x5c5098('0x5')]&&_0x1d10a9[_0x5c5098('0x5')][_0x5c5098('0x18')]&&(_0x1d10a9['body'][_0x5c5098('0x39')]=_0x1d10a9['file'][_0x5c5098('0x18')]),db[_0x5c5098('0x44')][_0x5c5098('0x14')]({'where':{'id':_0x1d10a9[_0x5c5098('0xc')]['id']}})[_0x5c5098('0xb')](handleEntityNotFound(_0xcb0782,null))[_0x5c5098('0xb')](saveUpdates(_0x1d10a9[_0x5c5098('0x3d')],null))['then'](respondWithResult(_0xcb0782,null))[_0x5c5098('0x42')](handleError(_0xcb0782,null));},exports[_0x16dde0('0x1c')]=function(_0x2610fe,_0x508d30){const _0x307112=_0x16dde0;return _0x2610fe[_0x307112('0x5')]&&_0x2610fe[_0x307112('0x5')][_0x307112('0x18')]&&(_0x2610fe[_0x307112('0x3d')][_0x307112('0x23')]=_0x2610fe[_0x307112('0x5')]['filename']),db[_0x307112('0x44')][_0x307112('0x14')]({'where':{'id':_0x2610fe['params']['id']}})['then'](handleEntityNotFound(_0x508d30,null))['then'](saveUpdates(_0x2610fe[_0x307112('0x3d')],null))[_0x307112('0xb')](respondWithResult(_0x508d30,null))[_0x307112('0x42')](handleError(_0x508d30,null));},exports[_0x16dde0('0x4e')]=function(_0x1b8aac,_0xd86798){const _0x492005=_0x16dde0,_0x3414fc=path['join'](config[_0x492005('0x48')],_0x492005('0x40'));let _0x3c638a={'custom':![]};return utilLicense[_0x492005('0x4d')]()[_0x492005('0xb')](function(_0x256825){const _0x52e789=_0x492005;return _0x256825&&(_0x3c638a=_0x256825),db[_0x52e789('0x44')][_0x52e789('0x14')]({'where':{'id':_0x1b8aac[_0x52e789('0xc')]['id']},'attributes':['logo','loginLogo',_0x52e789('0x37'),'favicon',_0x52e789('0x1e'),'defaultLoginLogo',_0x52e789('0x11'),_0x52e789('0x52')],'raw':!![]});})[_0x492005('0xb')](handleEntityNotFound(_0xd86798,null))[_0x492005('0xb')](function(_0x30f6ad){const _0x4da97d=_0x492005;if(_0x30f6ad){let _0x415c52=_0x30f6ad[_0x4da97d('0x39')]&&fs[_0x4da97d('0x20')](path[_0x4da97d('0x4')](_0x3414fc,_[_0x4da97d('0x2d')](_0x30f6ad[_0x4da97d('0x39')])))?path[_0x4da97d('0x4')](_0x3414fc,_[_0x4da97d('0x2d')](_0x30f6ad['logo'])):path[_0x4da97d('0x4')](_0x3414fc,_[_0x4da97d('0x2d')](_0x4da97d('0x3c')));const _0x4c6e99=_0x4da97d('0x28')+_[_0x4da97d('0x45')]('logo');(_0x30f6ad[_0x4c6e99]||!_0x3c638a[_0x4da97d('0x1b')])&&(_0x415c52=path[_0x4da97d('0x4')](_0x3414fc,_[_0x4da97d('0x2d')](_0x4da97d('0x3c'))));if(!fs[_0x4da97d('0x20')](_0x415c52))throw new ValidationError(_[_0x4da97d('0x45')]('logo')+_0x4da97d('0x33'));return _0xd86798[_0x4da97d('0x36')](_0x415c52);}})[_0x492005('0x42')](handleError(_0xd86798,null));},exports['getLogoLogin']=function(_0x4b8127,_0x1adcee){const _0x2bf980=_0x16dde0,_0x433846=path['join'](config[_0x2bf980('0x48')],_0x2bf980('0x40'));let _0x1001fc={'custom':![]};return utilLicense[_0x2bf980('0x4d')]()[_0x2bf980('0xb')](function(_0x576081){const _0x48eb58=_0x2bf980;return _0x576081&&(_0x1001fc=_0x576081),db[_0x48eb58('0x44')][_0x48eb58('0x14')]({'where':{'id':_0x4b8127['params']['id']},'attributes':[_0x48eb58('0x39'),_0x48eb58('0x23'),'preferred','favicon',_0x48eb58('0x1e'),_0x48eb58('0x3e'),_0x48eb58('0x11'),'defaultFavicon'],'raw':!![]});})[_0x2bf980('0xb')](handleEntityNotFound(_0x1adcee,null))['then'](function(_0xddcfe){const _0x1db9e3=_0x2bf980;if(_0xddcfe){let _0x3d7266=_0xddcfe[_0x1db9e3('0x23')]&&fs[_0x1db9e3('0x20')](path[_0x1db9e3('0x4')](_0x433846,_[_0x1db9e3('0x2d')](_0xddcfe['loginLogo'])))?path['join'](_0x433846,_[_0x1db9e3('0x2d')](_0xddcfe['loginLogo'])):path['join'](_0x433846,_['toLower'](_0x1db9e3('0x15')));const _0x302c89=_0x1db9e3('0x28')+_[_0x1db9e3('0x45')](_0x1db9e3('0x23'));(_0xddcfe[_0x302c89]||!_0x1001fc[_0x1db9e3('0x1b')])&&(_0x3d7266=path[_0x1db9e3('0x4')](_0x433846,_[_0x1db9e3('0x2d')](_0x1db9e3('0x15'))));if(!fs[_0x1db9e3('0x20')](_0x3d7266))throw new ValidationError(_['upperFirst'](_0x1db9e3('0x23'))+'\x20not\x20found');return _0x1adcee[_0x1db9e3('0x36')](_0x3d7266);}})[_0x2bf980('0x42')](handleError(_0x1adcee,null));},exports[_0x16dde0('0x27')]=function(_0xd87d01,_0x1428c1){const _0x36f375=_0x16dde0;return db[_0x36f375('0x44')][_0x36f375('0x14')]({'where':{'id':_0xd87d01[_0x36f375('0xc')]['id']},'attributes':['securePassword']})[_0x36f375('0xb')](respondWithResult(_0x1428c1,null))['catch'](handleError(_0x1428c1,null));},exports[_0x16dde0('0x2f')]=function(_0x4492be,_0x44fb5d){const _0x146a2c=_0x16dde0;return _0x4492be[_0x146a2c('0x5')]&&_0x4492be[_0x146a2c('0x5')][_0x146a2c('0x18')]&&(_0x4492be[_0x146a2c('0x3d')][_0x146a2c('0x37')]=_0x4492be['file'][_0x146a2c('0x18')]),db[_0x146a2c('0x44')]['findOne']({'where':{'id':_0x4492be['params']['id']}})[_0x146a2c('0xb')](handleEntityNotFound(_0x44fb5d,null))['then'](saveUpdates(_0x4492be['body'],null))[_0x146a2c('0xb')](respondWithResult(_0x44fb5d,null))[_0x146a2c('0x42')](handleError(_0x44fb5d,null));},exports[_0x16dde0('0x38')]=function(_0xd0c454,_0x3f5f7a){const _0x893c5f=_0x16dde0,_0x37ef8d=path[_0x893c5f('0x4')](config['root'],_0x893c5f('0x40'));let _0x55b43a={'custom':![]};return utilLicense[_0x893c5f('0x4d')]()['then'](function(_0x5d3849){const _0x45443e=_0x893c5f;return _0x5d3849&&(_0x55b43a=_0x5d3849),db[_0x45443e('0x44')]['findOne']({'where':{'id':_0xd0c454[_0x45443e('0xc')]['id']},'attributes':[_0x45443e('0x39'),_0x45443e('0x23'),_0x45443e('0x37'),_0x45443e('0x2b'),_0x45443e('0x1e'),_0x45443e('0x3e'),_0x45443e('0x11'),_0x45443e('0x52')],'raw':!![]});})[_0x893c5f('0xb')](handleEntityNotFound(_0x3f5f7a,null))[_0x893c5f('0xb')](function(_0x3c389b){const _0x22639d=_0x893c5f;if(_0x3c389b){let _0x26bcdf=_0x3c389b[_0x22639d('0x37')]&&fs[_0x22639d('0x20')](path[_0x22639d('0x4')](_0x37ef8d,_[_0x22639d('0x2d')](_0x3c389b[_0x22639d('0x37')])))?path[_0x22639d('0x4')](_0x37ef8d,_[_0x22639d('0x2d')](_0x3c389b[_0x22639d('0x37')])):path['join'](_0x37ef8d,_[_0x22639d('0x2d')](_0x22639d('0x29')));const _0x40dcea='default'+_['upperFirst'](_0x22639d('0x37'));(_0x3c389b[_0x40dcea]||!_0x55b43a[_0x22639d('0x1b')]||!_0x55b43a[_0x22639d('0x37')])&&(_0x26bcdf=path[_0x22639d('0x4')](_0x37ef8d,_[_0x22639d('0x2d')]('default_preferred.png')));if(!fs[_0x22639d('0x20')](_0x26bcdf))throw new ValidationError(_[_0x22639d('0x45')](_0x22639d('0x37'))+'\x20not\x20found');return _0x3f5f7a[_0x22639d('0x36')](_0x26bcdf);}})[_0x893c5f('0x42')](handleError(_0x3f5f7a,null));},exports[_0x16dde0('0x9')]=function(_0x55d8ac,_0x474783){const _0x13ed71=_0x16dde0;return _0x55d8ac[_0x13ed71('0x5')]&&_0x55d8ac['file'][_0x13ed71('0x18')]&&(_0x55d8ac[_0x13ed71('0x3d')][_0x13ed71('0x2b')]=_0x55d8ac['file'][_0x13ed71('0x18')]),db[_0x13ed71('0x44')][_0x13ed71('0x14')]({'where':{'id':_0x55d8ac[_0x13ed71('0xc')]['id']}})['then'](handleEntityNotFound(_0x474783,null))['then'](saveUpdates(_0x55d8ac['body'],null))[_0x13ed71('0xb')](respondWithResult(_0x474783,null))['catch'](handleError(_0x474783,null));},exports['getFavicon']=function(_0x171eaa,_0x51abb8){const _0x5be66c=_0x16dde0,_0x195843=path[_0x5be66c('0x4')](config[_0x5be66c('0x48')],_0x5be66c('0x40'));let _0x2c4816={'custom':![]};return utilLicense[_0x5be66c('0x4d')]()['then'](function(_0x31aa74){const _0x7029e6=_0x5be66c;return _0x31aa74&&(_0x2c4816=_0x31aa74),db[_0x7029e6('0x44')][_0x7029e6('0x14')]({'where':{'id':_0x171eaa[_0x7029e6('0xc')]['id']},'attributes':['logo',_0x7029e6('0x23'),'preferred',_0x7029e6('0x2b'),_0x7029e6('0x1e'),_0x7029e6('0x3e'),'defaultPreferred','defaultFavicon'],'raw':!![]});})['then'](handleEntityNotFound(_0x51abb8,null))[_0x5be66c('0xb')](function(_0xc933a6){const _0x171823=_0x5be66c;if(_0xc933a6){let _0x36e13d=_0xc933a6[_0x171823('0x2b')]&&fs['existsSync'](path['join'](_0x195843,_['toLower'](_0xc933a6[_0x171823('0x2b')])))?path[_0x171823('0x4')](_0x195843,_[_0x171823('0x2d')](_0xc933a6[_0x171823('0x2b')])):path[_0x171823('0x4')](_0x195843,_[_0x171823('0x2d')](_0x171823('0x4a')));const _0x4af206=_0x171823('0x28')+_['upperFirst']('favicon');(_0xc933a6[_0x4af206]||!_0x2c4816[_0x171823('0x1b')])&&(_0x36e13d=path[_0x171823('0x4')](_0x195843,_[_0x171823('0x2d')](_0x171823('0x4a'))));if(!fs[_0x171823('0x20')](_0x36e13d))throw new ValidationError(_[_0x171823('0x45')]('favicon')+_0x171823('0x33'));return _0x51abb8[_0x171823('0x36')](_0x36e13d);}})[_0x5be66c('0x42')](handleError(_0x51abb8,null));},exports[_0x16dde0('0xe')]=function getDate(_0x159a61,_0x3747d3){const _0x383de7=_0x16dde0,_0x428988={'now':moment(),'offset':moment()[_0x383de7('0x50')]()};return _0x3747d3['status'](0xc8)['send'](_0x428988);}; \ No newline at end of file +const a645_0x304b=['VIRTUAL','attributes','favicon','like','sendStatus','params','where','join','defaultLoginLogo','loginLogo','rawAttributes','addFavicon','set','sequelize','map','status','findOne','../../config/logger','filename','limit','pick','default_preferred.png','root','existsSync','getFavicon','count','default_favicon.ico','addPreferred','then','getLicense','addLogo','json','getLogoLogin','update','default_loginLogo.svg','show','file','catch','stack','gdpr','name','defaultFavicon','files/images/logos','getPreferred','sort','api','utcOffset','preferred','length','fieldName','filter','include','offset','intersection','model','keys','body','../../mysqldb','getLogo','Content-Range','../../config/environment','type','../../components/parsers/qs','download','index','toLower','default','includeAll','fields','logo','default_logo.svg','custom','order','getDate','query','send','nolimit','lodash','filters','defaultPreferred','\x20not\x20found','merge','error','Setting','upperFirst','path','defaultLogo'];(function(_0x4c68e2,_0x762f8b){const _0x304bef=function(_0x59d095){while(--_0x59d095){_0x4c68e2['push'](_0x4c68e2['shift']());}};_0x304bef(++_0x762f8b);}(a645_0x304b,0x1b9));const a645_0x59d0=function(_0x4c68e2,_0x762f8b){_0x4c68e2=_0x4c68e2-0x73;let _0x304bef=a645_0x304b[_0x4c68e2];return _0x304bef;};const a645_0x5754b5=a645_0x59d0;'use strict';const path=require(a645_0x5754b5(0xc2)),fs=require('fs'),_=require(a645_0x5754b5(0xba)),qs=require(a645_0x5754b5(0xab)),logger=require(a645_0x5754b5(0x7e))(a645_0x5754b5(0x9a)),config=require(a645_0x5754b5(0xa9)),{db}=require(a645_0x5754b5(0xa6)),{Op,ValidationError}=require(a645_0x5754b5(0x7a)),utilLicense=require('../../config/license/util'),moment=require('moment');function respondWithResult(_0x1c64a5,_0x52f469){return _0x52f469=_0x52f469||0xc8,function(_0x508272){const _0x10094f=a645_0x59d0;if(_0x508272)return _0x1c64a5[_0x10094f(0x7c)](_0x52f469)[_0x10094f(0x8c)](_0x508272);};}function respondWithFilteredResult(_0x475c76,_0x4d8bd5){return function(_0x1a01b2){const _0x49e129=a645_0x59d0;if(_0x1a01b2){const _0x22432c=_0x1a01b2['count'],_0x56610a=_0x4d8bd5['offset'];let _0x3cd0cf=_0x4d8bd5[_0x49e129(0xa1)]+_0x4d8bd5[_0x49e129(0x80)],_0x4d825d;return _0x3cd0cf>=_0x22432c?(_0x3cd0cf=_0x22432c,_0x4d825d=0xc8):_0x4d825d=0xce,_0x475c76['status'](_0x4d825d),_0x475c76[_0x49e129(0x79)](_0x49e129(0xa8),_0x56610a+'-'+_0x3cd0cf+'/'+_0x22432c)[_0x49e129(0x8c)](_0x1a01b2);}return null;};}function saveUpdates(_0x175d35){return function(_0xd4581){const _0x8c5fe9=a645_0x59d0;if(_0xd4581)return _0xd4581[_0x8c5fe9(0x8e)](_0x175d35)['then'](function(_0x15a1a7){return _0x15a1a7;});return null;};}function handleEntityNotFound(_0xfc685){return function(_0x42f2c7){const _0x41e1ee=a645_0x59d0;return!_0x42f2c7&&_0xfc685[_0x41e1ee(0xc8)](0x194),_0x42f2c7;};}function handleError(_0x14370c,_0x1870cc){return _0x1870cc=_0x1870cc||0x1f4,function(_0x551bfb){const _0x45f89f=a645_0x59d0;logger[_0x45f89f(0xbf)](_0x551bfb[_0x45f89f(0x93)]),_0x551bfb[_0x45f89f(0x95)]&&delete _0x551bfb[_0x45f89f(0x95)],_0x14370c[_0x45f89f(0x7c)](_0x1870cc)[_0x45f89f(0xb8)](_0x551bfb);};}exports[a645_0x5754b5(0xad)]=function(_0x5112ce,_0x17544f){const _0x552653=a645_0x5754b5;let _0x20e5da={};const _0x115cee={},_0x22c527={'count':0x0,'rows':[]},_0x2f6811=_['map'](db[_0x552653(0xc0)][_0x552653(0x77)],function(_0x2268d2){const _0x43b39b=_0x552653;return{'name':_0x2268d2[_0x43b39b(0x9e)],'type':_0x2268d2[_0x43b39b(0xaa)]['key']};});_0x115cee[_0x552653(0xa3)]=_[_0x552653(0x7b)](_0x2f6811,'name'),_0x115cee['query']=_[_0x552653(0xa4)](_0x5112ce[_0x552653(0xb7)]),_0x115cee[_0x552653(0xbb)]=_[_0x552653(0xa2)](_0x115cee['model'],_0x115cee[_0x552653(0xb7)]),_0x20e5da['attributes']=_[_0x552653(0xa2)](_0x115cee[_0x552653(0xa3)],qs[_0x552653(0xb1)](_0x5112ce['query']['fields'])),_0x20e5da[_0x552653(0xc5)]=_0x20e5da[_0x552653(0xc5)]['length']?_0x20e5da[_0x552653(0xc5)]:_0x115cee[_0x552653(0xa3)];typeof _0x5112ce[_0x552653(0xb7)][_0x552653(0xb9)]==='undefined'&&(_0x20e5da[_0x552653(0x80)]=qs[_0x552653(0x80)](_0x5112ce[_0x552653(0xb7)][_0x552653(0x80)]),_0x20e5da[_0x552653(0xa1)]=qs['offset'](_0x5112ce[_0x552653(0xb7)]['offset']));_0x20e5da[_0x552653(0xb5)]=qs[_0x552653(0x99)](_0x5112ce['query'][_0x552653(0x99)]),_0x20e5da['where']=qs[_0x552653(0xbb)](_[_0x552653(0x81)](_0x5112ce[_0x552653(0xb7)],_0x115cee[_0x552653(0xbb)]),_0x2f6811);_0x5112ce[_0x552653(0xb7)][_0x552653(0x9f)]&&(_0x20e5da[_0x552653(0x73)]=_[_0x552653(0xbe)](_0x20e5da[_0x552653(0x73)],{[Op['or']]:_[_0x552653(0x7b)](_0x2f6811,function(_0x263720){const _0xd276a1=_0x552653;if(_0x263720['type']!==_0xd276a1(0xc4)){const _0x1c38a1={};return _0x1c38a1[_0x263720[_0xd276a1(0x95)]]={[Op[_0xd276a1(0xc7)]]:'%'+_0x5112ce['query'][_0xd276a1(0x9f)]+'%'},_0x1c38a1;}})}));_0x20e5da=_['merge']({},_0x20e5da,_0x5112ce['options']);const _0x5e6c72={'where':_0x20e5da[_0x552653(0x73)]};return db[_0x552653(0xc0)]['count'](_0x5e6c72)[_0x552653(0x89)](function(_0x38d88c){const _0x10d8a8=_0x552653;return _0x22c527[_0x10d8a8(0x86)]=_0x38d88c,_0x5112ce['query'][_0x10d8a8(0xb0)]&&(_0x20e5da[_0x10d8a8(0xa0)]=[{'all':!![]}]),db[_0x10d8a8(0xc0)]['findAll'](_0x20e5da);})[_0x552653(0x89)](function(_0x3a1609){return _0x22c527['rows']=_0x3a1609,_0x22c527;})[_0x552653(0x89)](respondWithFilteredResult(_0x17544f,_0x20e5da))[_0x552653(0x92)](handleError(_0x17544f,null));},exports[a645_0x5754b5(0x90)]=function(_0x58597c,_0x6cad32){const _0x3ebd67=a645_0x5754b5;let _0xfab2c0={'raw':![],'where':{'id':_0x58597c['params']['id']}};const _0x10f70f={};return _0x10f70f[_0x3ebd67(0xa3)]=_[_0x3ebd67(0xa4)](db[_0x3ebd67(0xc0)]['rawAttributes']),_0x10f70f[_0x3ebd67(0xb7)]=_[_0x3ebd67(0xa4)](_0x58597c['query']),_0x10f70f[_0x3ebd67(0xbb)]=_[_0x3ebd67(0xa2)](_0x10f70f[_0x3ebd67(0xa3)],_0x10f70f[_0x3ebd67(0xb7)]),_0xfab2c0['attributes']=_[_0x3ebd67(0xa2)](_0x10f70f[_0x3ebd67(0xa3)],qs['fields'](_0x58597c[_0x3ebd67(0xb7)][_0x3ebd67(0xb1)])),_0xfab2c0[_0x3ebd67(0xc5)]=_0xfab2c0[_0x3ebd67(0xc5)][_0x3ebd67(0x9d)]?_0xfab2c0[_0x3ebd67(0xc5)]:_0x10f70f[_0x3ebd67(0xa3)],_0x58597c['query']['includeAll']&&(_0xfab2c0['include']=[{'all':!![]}]),_0xfab2c0=_['merge']({},_0xfab2c0,_0x58597c['options']),db['Setting'][_0x3ebd67(0x7d)](_0xfab2c0)[_0x3ebd67(0x89)](handleEntityNotFound(_0x6cad32,null))[_0x3ebd67(0x89)](respondWithResult(_0x6cad32,null))['catch'](handleError(_0x6cad32,null));},exports[a645_0x5754b5(0x8e)]=function(_0x2969db,_0x6fd1d0){const _0x47c742=a645_0x5754b5;return _0x2969db[_0x47c742(0xa5)]['id']&&delete _0x2969db[_0x47c742(0xa5)]['id'],db[_0x47c742(0xc0)][_0x47c742(0x7d)]({'where':{'id':_0x2969db[_0x47c742(0xc9)]['id']}})[_0x47c742(0x89)](handleEntityNotFound(_0x6fd1d0,null))[_0x47c742(0x89)](saveUpdates(_0x2969db[_0x47c742(0xa5)],null))[_0x47c742(0x89)](respondWithResult(_0x6fd1d0,null))[_0x47c742(0x92)](handleError(_0x6fd1d0,null));},exports[a645_0x5754b5(0x8b)]=function(_0x52aeab,_0x1b9fdd){const _0x476338=a645_0x5754b5;return _0x52aeab['file']&&_0x52aeab[_0x476338(0x91)]['filename']&&(_0x52aeab[_0x476338(0xa5)][_0x476338(0xb2)]=_0x52aeab[_0x476338(0x91)][_0x476338(0x7f)]),db[_0x476338(0xc0)]['findOne']({'where':{'id':_0x52aeab[_0x476338(0xc9)]['id']}})['then'](handleEntityNotFound(_0x1b9fdd,null))[_0x476338(0x89)](saveUpdates(_0x52aeab[_0x476338(0xa5)],null))['then'](respondWithResult(_0x1b9fdd,null))[_0x476338(0x92)](handleError(_0x1b9fdd,null));},exports['addLogoLogin']=function(_0x21e11d,_0x2fea49){const _0x552011=a645_0x5754b5;return _0x21e11d[_0x552011(0x91)]&&_0x21e11d[_0x552011(0x91)][_0x552011(0x7f)]&&(_0x21e11d[_0x552011(0xa5)][_0x552011(0x76)]=_0x21e11d['file'][_0x552011(0x7f)]),db[_0x552011(0xc0)][_0x552011(0x7d)]({'where':{'id':_0x21e11d[_0x552011(0xc9)]['id']}})['then'](handleEntityNotFound(_0x2fea49,null))[_0x552011(0x89)](saveUpdates(_0x21e11d[_0x552011(0xa5)],null))[_0x552011(0x89)](respondWithResult(_0x2fea49,null))[_0x552011(0x92)](handleError(_0x2fea49,null));},exports[a645_0x5754b5(0xa7)]=function(_0x50d61e,_0x50b55b){const _0x3c1d59=a645_0x5754b5,_0x345633=path['join'](config[_0x3c1d59(0x83)],'files/images/logos');let _0x4bf25d={'custom':![]};return utilLicense['getLicense']()['then'](function(_0x586eca){const _0x4c5ffc=_0x3c1d59;return _0x586eca&&(_0x4bf25d=_0x586eca),db['Setting'][_0x4c5ffc(0x7d)]({'where':{'id':_0x50d61e['params']['id']},'attributes':['logo','loginLogo',_0x4c5ffc(0x9c),_0x4c5ffc(0xc6),_0x4c5ffc(0xc3),_0x4c5ffc(0x75),'defaultPreferred',_0x4c5ffc(0x96)],'raw':!![]});})[_0x3c1d59(0x89)](handleEntityNotFound(_0x50b55b,null))[_0x3c1d59(0x89)](function(_0x2f02d8){const _0x2b4623=_0x3c1d59;if(_0x2f02d8){let _0xdf54b1=_0x2f02d8[_0x2b4623(0xb2)]&&fs[_0x2b4623(0x84)](path[_0x2b4623(0x74)](_0x345633,_['toLower'](_0x2f02d8[_0x2b4623(0xb2)])))?path[_0x2b4623(0x74)](_0x345633,_['toLower'](_0x2f02d8['logo'])):path[_0x2b4623(0x74)](_0x345633,_[_0x2b4623(0xae)](_0x2b4623(0xb3)));const _0x432fa8='default'+_[_0x2b4623(0xc1)](_0x2b4623(0xb2));(_0x2f02d8[_0x432fa8]||!_0x4bf25d[_0x2b4623(0xb4)])&&(_0xdf54b1=path[_0x2b4623(0x74)](_0x345633,_[_0x2b4623(0xae)](_0x2b4623(0xb3))));if(!fs[_0x2b4623(0x84)](_0xdf54b1))throw new ValidationError(_['upperFirst']('logo')+'\x20not\x20found');return _0x50b55b[_0x2b4623(0xac)](_0xdf54b1);}})[_0x3c1d59(0x92)](handleError(_0x50b55b,null));},exports[a645_0x5754b5(0x8d)]=function(_0x2694ca,_0x2c9d46){const _0xcd2cee=a645_0x5754b5,_0x5a3e65=path[_0xcd2cee(0x74)](config[_0xcd2cee(0x83)],_0xcd2cee(0x97));let _0x16392f={'custom':![]};return utilLicense[_0xcd2cee(0x8a)]()['then'](function(_0x57f2cd){const _0x5ce3dc=_0xcd2cee;return _0x57f2cd&&(_0x16392f=_0x57f2cd),db['Setting'][_0x5ce3dc(0x7d)]({'where':{'id':_0x2694ca[_0x5ce3dc(0xc9)]['id']},'attributes':[_0x5ce3dc(0xb2),_0x5ce3dc(0x76),_0x5ce3dc(0x9c),_0x5ce3dc(0xc6),_0x5ce3dc(0xc3),_0x5ce3dc(0x75),'defaultPreferred',_0x5ce3dc(0x96)],'raw':!![]});})[_0xcd2cee(0x89)](handleEntityNotFound(_0x2c9d46,null))[_0xcd2cee(0x89)](function(_0x477505){const _0x5b6e29=_0xcd2cee;if(_0x477505){let _0x1548d1=_0x477505[_0x5b6e29(0x76)]&&fs[_0x5b6e29(0x84)](path[_0x5b6e29(0x74)](_0x5a3e65,_[_0x5b6e29(0xae)](_0x477505[_0x5b6e29(0x76)])))?path[_0x5b6e29(0x74)](_0x5a3e65,_['toLower'](_0x477505[_0x5b6e29(0x76)])):path[_0x5b6e29(0x74)](_0x5a3e65,_[_0x5b6e29(0xae)](_0x5b6e29(0x8f)));const _0x4330bb=_0x5b6e29(0xaf)+_[_0x5b6e29(0xc1)](_0x5b6e29(0x76));(_0x477505[_0x4330bb]||!_0x16392f[_0x5b6e29(0xb4)])&&(_0x1548d1=path[_0x5b6e29(0x74)](_0x5a3e65,_[_0x5b6e29(0xae)](_0x5b6e29(0x8f))));if(!fs[_0x5b6e29(0x84)](_0x1548d1))throw new ValidationError(_['upperFirst'](_0x5b6e29(0x76))+_0x5b6e29(0xbd));return _0x2c9d46[_0x5b6e29(0xac)](_0x1548d1);}})[_0xcd2cee(0x92)](handleError(_0x2c9d46,null));},exports[a645_0x5754b5(0x94)]=function(_0xc70ce1,_0x12e61c){const _0x4ab4f3=a645_0x5754b5;return db[_0x4ab4f3(0xc0)][_0x4ab4f3(0x7d)]({'where':{'id':_0xc70ce1[_0x4ab4f3(0xc9)]['id']},'attributes':['securePassword']})[_0x4ab4f3(0x89)](respondWithResult(_0x12e61c,null))['catch'](handleError(_0x12e61c,null));},exports[a645_0x5754b5(0x88)]=function(_0x2ee1dc,_0x1ac504){const _0x35356c=a645_0x5754b5;return _0x2ee1dc[_0x35356c(0x91)]&&_0x2ee1dc[_0x35356c(0x91)][_0x35356c(0x7f)]&&(_0x2ee1dc[_0x35356c(0xa5)][_0x35356c(0x9c)]=_0x2ee1dc[_0x35356c(0x91)]['filename']),db['Setting']['findOne']({'where':{'id':_0x2ee1dc[_0x35356c(0xc9)]['id']}})[_0x35356c(0x89)](handleEntityNotFound(_0x1ac504,null))['then'](saveUpdates(_0x2ee1dc[_0x35356c(0xa5)],null))['then'](respondWithResult(_0x1ac504,null))[_0x35356c(0x92)](handleError(_0x1ac504,null));},exports[a645_0x5754b5(0x98)]=function(_0x340710,_0x378944){const _0x2bac47=a645_0x5754b5,_0x2afcbd=path[_0x2bac47(0x74)](config[_0x2bac47(0x83)],_0x2bac47(0x97));let _0x4b8f41={'custom':![]};return utilLicense[_0x2bac47(0x8a)]()[_0x2bac47(0x89)](function(_0x1835a9){const _0x521b98=_0x2bac47;return _0x1835a9&&(_0x4b8f41=_0x1835a9),db[_0x521b98(0xc0)][_0x521b98(0x7d)]({'where':{'id':_0x340710[_0x521b98(0xc9)]['id']},'attributes':[_0x521b98(0xb2),_0x521b98(0x76),_0x521b98(0x9c),_0x521b98(0xc6),_0x521b98(0xc3),_0x521b98(0x75),'defaultPreferred',_0x521b98(0x96)],'raw':!![]});})[_0x2bac47(0x89)](handleEntityNotFound(_0x378944,null))[_0x2bac47(0x89)](function(_0x5e33f3){const _0x8dcffa=_0x2bac47;if(_0x5e33f3){let _0x581e1b=_0x5e33f3[_0x8dcffa(0x9c)]&&fs[_0x8dcffa(0x84)](path[_0x8dcffa(0x74)](_0x2afcbd,_[_0x8dcffa(0xae)](_0x5e33f3[_0x8dcffa(0x9c)])))?path[_0x8dcffa(0x74)](_0x2afcbd,_[_0x8dcffa(0xae)](_0x5e33f3[_0x8dcffa(0x9c)])):path['join'](_0x2afcbd,_[_0x8dcffa(0xae)](_0x8dcffa(0x82)));const _0x4096a4=_0x8dcffa(0xaf)+_[_0x8dcffa(0xc1)](_0x8dcffa(0x9c));(_0x5e33f3[_0x4096a4]||!_0x4b8f41['custom']||!_0x4b8f41['preferred'])&&(_0x581e1b=path['join'](_0x2afcbd,_[_0x8dcffa(0xae)](_0x8dcffa(0x82))));if(!fs[_0x8dcffa(0x84)](_0x581e1b))throw new ValidationError(_[_0x8dcffa(0xc1)](_0x8dcffa(0x9c))+_0x8dcffa(0xbd));return _0x378944['download'](_0x581e1b);}})[_0x2bac47(0x92)](handleError(_0x378944,null));},exports[a645_0x5754b5(0x78)]=function(_0x52348c,_0x47792b){const _0x4a6442=a645_0x5754b5;return _0x52348c[_0x4a6442(0x91)]&&_0x52348c[_0x4a6442(0x91)][_0x4a6442(0x7f)]&&(_0x52348c[_0x4a6442(0xa5)][_0x4a6442(0xc6)]=_0x52348c['file']['filename']),db['Setting'][_0x4a6442(0x7d)]({'where':{'id':_0x52348c['params']['id']}})[_0x4a6442(0x89)](handleEntityNotFound(_0x47792b,null))[_0x4a6442(0x89)](saveUpdates(_0x52348c[_0x4a6442(0xa5)],null))['then'](respondWithResult(_0x47792b,null))[_0x4a6442(0x92)](handleError(_0x47792b,null));},exports[a645_0x5754b5(0x85)]=function(_0x5c0dd0,_0x219e4c){const _0x3c8476=a645_0x5754b5,_0x32da4b=path[_0x3c8476(0x74)](config[_0x3c8476(0x83)],_0x3c8476(0x97));let _0x2d0d6c={'custom':![]};return utilLicense[_0x3c8476(0x8a)]()[_0x3c8476(0x89)](function(_0x2c1e11){const _0x5c838b=_0x3c8476;return _0x2c1e11&&(_0x2d0d6c=_0x2c1e11),db[_0x5c838b(0xc0)]['findOne']({'where':{'id':_0x5c0dd0['params']['id']},'attributes':[_0x5c838b(0xb2),_0x5c838b(0x76),'preferred','favicon',_0x5c838b(0xc3),_0x5c838b(0x75),_0x5c838b(0xbc),'defaultFavicon'],'raw':!![]});})[_0x3c8476(0x89)](handleEntityNotFound(_0x219e4c,null))[_0x3c8476(0x89)](function(_0x201506){const _0x8cad35=_0x3c8476;if(_0x201506){let _0x5170ad=_0x201506[_0x8cad35(0xc6)]&&fs[_0x8cad35(0x84)](path['join'](_0x32da4b,_['toLower'](_0x201506[_0x8cad35(0xc6)])))?path[_0x8cad35(0x74)](_0x32da4b,_[_0x8cad35(0xae)](_0x201506['favicon'])):path['join'](_0x32da4b,_[_0x8cad35(0xae)]('default_favicon.ico'));const _0x45ea11=_0x8cad35(0xaf)+_[_0x8cad35(0xc1)](_0x8cad35(0xc6));(_0x201506[_0x45ea11]||!_0x2d0d6c['custom'])&&(_0x5170ad=path[_0x8cad35(0x74)](_0x32da4b,_[_0x8cad35(0xae)](_0x8cad35(0x87))));if(!fs[_0x8cad35(0x84)](_0x5170ad))throw new ValidationError(_['upperFirst'](_0x8cad35(0xc6))+_0x8cad35(0xbd));return _0x219e4c[_0x8cad35(0xac)](_0x5170ad);}})[_0x3c8476(0x92)](handleError(_0x219e4c,null));},exports[a645_0x5754b5(0xb6)]=function getDate(_0x192519,_0x210d7c){const _0x28a748=a645_0x5754b5,_0x4ede3e={'now':moment(),'offset':moment()[_0x28a748(0x9b)]()};return _0x210d7c[_0x28a748(0x7c)](0xc8)[_0x28a748(0xb8)](_0x4ede3e);}; \ No newline at end of file diff --git a/server/api/setting/setting.model.js b/server/api/setting/setting.model.js index 5cba3ed..9aae2ea 100644 --- a/server/api/setting/setting.model.js +++ b/server/api/setting/setting.model.js @@ -1 +1 @@ -const a539_0x1b3b=['define','./setting.attributes','Setting','settings'];(function(_0x335780,_0x1b3b15){const _0x5d35ee=function(_0x147ae4){while(--_0x147ae4){_0x335780['push'](_0x335780['shift']());}};_0x5d35ee(++_0x1b3b15);}(a539_0x1b3b,0x17c));const a539_0x5d35=function(_0x335780,_0x1b3b15){_0x335780=_0x335780-0x0;let _0x5d35ee=a539_0x1b3b[_0x335780];return _0x5d35ee;};const _0x5adc2a=a539_0x5d35;'use strict';const attributes=require(_0x5adc2a('0x1'));module['exports']=function(_0x147ae4){const _0x4f0f3e=_0x5adc2a,_0x509002=_0x147ae4[_0x4f0f3e('0x0')](_0x4f0f3e('0x2'),attributes,{'tableName':_0x4f0f3e('0x3'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x509002;}; \ No newline at end of file +const a646_0x153a=['./setting.options','sequelize','function','./setting.attributes','exports','Setting','init'];(function(_0x296412,_0x20664d){const _0x153a5d=function(_0x5d4567){while(--_0x5d4567){_0x296412['push'](_0x296412['shift']());}};_0x153a5d(++_0x20664d);}(a646_0x153a,0x72));const a646_0x5d45=function(_0x296412,_0x20664d){_0x296412=_0x296412-0xaa;let _0x153a5d=a646_0x153a[_0x296412];return _0x153a5d;};const a646_0x139e55=a646_0x5d45;'use strict';const {Model}=require(a646_0x139e55(0xb0)),{attributes}=require(a646_0x139e55(0xab)),{options}=require(a646_0x139e55(0xaf));class Setting extends Model{}function init(_0x2c9791,_0x302d5f){const _0x2912ee=a646_0x139e55,_0x1840ed=options(_0x2c9791),_0x2c20ae=typeof _0x302d5f===_0x2912ee(0xaa)?_0x302d5f(_0x1840ed):_0x1840ed;return Setting[_0x2912ee(0xae)](attributes,_0x2c20ae),Setting;}module[a646_0x139e55(0xac)][a646_0x139e55(0xad)]=Setting,module[a646_0x139e55(0xac)]['init']=init; \ No newline at end of file diff --git a/server/api/setting/setting.options.js b/server/api/setting/setting.options.js new file mode 100644 index 0000000..7a03a3e --- /dev/null +++ b/server/api/setting/setting.options.js @@ -0,0 +1 @@ +var a647_0x5566=['options'];(function(_0x538d5d,_0x4d86e4){var _0x5566b5=function(_0x10c2b1){while(--_0x10c2b1){_0x538d5d['push'](_0x538d5d['shift']());}};_0x5566b5(++_0x4d86e4);}(a647_0x5566,0xba));var a647_0x10c2=function(_0x538d5d,_0x4d86e4){_0x538d5d=_0x538d5d-0x9e;var _0x5566b5=a647_0x5566[_0x538d5d];return _0x5566b5;};var a647_0x4aed3f=a647_0x10c2;function options(_0x26e898){return{'sequelize':_0x26e898,'tableName':'settings','paranoid':![],'indexes':[],'timestamps':!![]};}module['exports'][a647_0x4aed3f(0x9e)]=options; \ No newline at end of file diff --git a/server/api/smsAccount/index.js b/server/api/smsAccount/index.js index f209dc6..ca9fceb 100644 --- a/server/api/smsAccount/index.js +++ b/server/api/smsAccount/index.js @@ -1 +1 @@ -const a540_0x501d=['/:id/canned_answers','update','status','get','addDisposition','create','/describe','getAgents','express','send','removeAgents','removeDispositions','delete','getInteractions','/:id/applications','/:id/send','destroy','./smsAccount.controller','/:id','index','addApplications','/:id/users','notify','/:id/interactions','getApplications','post','/:id/status','isAuthenticated','Router','/:id/dispositions','addAnswer','put','show','describe','getDispositions'];(function(_0x338c7a,_0x501d44){const _0xeee9bb=function(_0x3ed2dc){while(--_0x3ed2dc){_0x338c7a['push'](_0x338c7a['shift']());}};_0xeee9bb(++_0x501d44);}(a540_0x501d,0x1d9));const a540_0xeee9=function(_0x338c7a,_0x501d44){_0x338c7a=_0x338c7a-0x0;let _0xeee9bb=a540_0x501d[_0x338c7a];return _0xeee9bb;};const _0x432e1b=a540_0xeee9;'use strict';const express=require(_0x432e1b('0x19')),router=express[_0x432e1b('0xa')](),auth=require('../../components/auth/service'),controller=require(_0x432e1b('0x22'));router[_0x432e1b('0x14')]('/',auth[_0x432e1b('0x9')](),controller[_0x432e1b('0x1')]),router[_0x432e1b('0x14')](_0x432e1b('0x17'),auth['isAuthenticated'](),controller[_0x432e1b('0xf')]),router[_0x432e1b('0x14')](_0x432e1b('0x0'),auth[_0x432e1b('0x9')](),controller[_0x432e1b('0xe')]),router[_0x432e1b('0x14')](_0x432e1b('0xb'),auth[_0x432e1b('0x9')](),controller[_0x432e1b('0x10')]),router[_0x432e1b('0x14')]('/:id/canned_answers',auth['isAuthenticated'](),controller['getAnswers']),router['get'](_0x432e1b('0x1f'),auth[_0x432e1b('0x9')](),controller[_0x432e1b('0x6')]),router['get'](_0x432e1b('0x5'),auth[_0x432e1b('0x9')](),controller[_0x432e1b('0x1e')]),router[_0x432e1b('0x14')]('/:id/status',controller['statusGet']),router['get'](_0x432e1b('0x3'),auth[_0x432e1b('0x9')](),controller[_0x432e1b('0x18')]),router[_0x432e1b('0x7')]('/',auth[_0x432e1b('0x9')](),controller[_0x432e1b('0x16')]),router[_0x432e1b('0x7')](_0x432e1b('0xb'),auth[_0x432e1b('0x9')](),controller[_0x432e1b('0x15')]),router[_0x432e1b('0x7')](_0x432e1b('0x11'),auth['isAuthenticated'](),controller[_0x432e1b('0xc')]),router['post']('/:id/notify',controller[_0x432e1b('0x4')]),router[_0x432e1b('0x7')](_0x432e1b('0x1f'),auth[_0x432e1b('0x9')](),controller[_0x432e1b('0x2')]),router[_0x432e1b('0x7')](_0x432e1b('0x20'),auth[_0x432e1b('0x9')](),controller[_0x432e1b('0x1a')]),router[_0x432e1b('0x7')](_0x432e1b('0x8'),controller[_0x432e1b('0x13')]),router[_0x432e1b('0x7')](_0x432e1b('0x3'),auth['isAuthenticated'](),controller['addAgents']),router[_0x432e1b('0xd')]('/:id',auth[_0x432e1b('0x9')](),controller[_0x432e1b('0x12')]),router[_0x432e1b('0x1d')](_0x432e1b('0x0'),auth[_0x432e1b('0x9')](),controller[_0x432e1b('0x21')]),router[_0x432e1b('0x1d')](_0x432e1b('0xb'),auth[_0x432e1b('0x9')](),controller[_0x432e1b('0x1c')]),router[_0x432e1b('0x1d')](_0x432e1b('0x11'),auth[_0x432e1b('0x9')](),controller['removeAnswers']),router[_0x432e1b('0x1d')](_0x432e1b('0x3'),auth[_0x432e1b('0x9')](),controller[_0x432e1b('0x1b')]),module['exports']=router; \ No newline at end of file +const a648_0xe1a4=['getAnswers','getDispositions','./smsAccount.controller','getAgents','addAnswer','delete','/:id','/:id/applications','/:id/notify','addApplications','get','/describe','put','express','status','isAuthenticated','show','/:id/dispositions','addAgents','Router','create','/:id/canned_answers','getInteractions','notify','../../components/auth/service','/:id/status','/:id/send','index','/:id/users','exports','describe','post','removeDispositions','send'];(function(_0x3049da,_0x19b7c2){const _0xe1a44c=function(_0x5b19e5){while(--_0x5b19e5){_0x3049da['push'](_0x3049da['shift']());}};_0xe1a44c(++_0x19b7c2);}(a648_0xe1a4,0x19d));const a648_0x5b19=function(_0x3049da,_0x19b7c2){_0x3049da=_0x3049da-0xc4;let _0xe1a44c=a648_0xe1a4[_0x3049da];return _0xe1a44c;};const a648_0x479ba0=a648_0x5b19;'use strict';const express=require(a648_0x479ba0(0xcc)),router=express[a648_0x479ba0(0xd2)](),auth=require(a648_0x479ba0(0xd7)),controller=require(a648_0x479ba0(0xe3));router[a648_0x479ba0(0xc9)]('/',auth[a648_0x479ba0(0xce)](),controller[a648_0x479ba0(0xda)]),router[a648_0x479ba0(0xc9)](a648_0x479ba0(0xca),auth[a648_0x479ba0(0xce)](),controller[a648_0x479ba0(0xdd)]),router[a648_0x479ba0(0xc9)]('/:id',auth['isAuthenticated'](),controller[a648_0x479ba0(0xcf)]),router[a648_0x479ba0(0xc9)](a648_0x479ba0(0xd0),auth['isAuthenticated'](),controller[a648_0x479ba0(0xe2)]),router[a648_0x479ba0(0xc9)](a648_0x479ba0(0xd4),auth['isAuthenticated'](),controller[a648_0x479ba0(0xe1)]),router[a648_0x479ba0(0xc9)](a648_0x479ba0(0xc6),auth[a648_0x479ba0(0xce)](),controller['getApplications']),router['get']('/:id/interactions',auth[a648_0x479ba0(0xce)](),controller[a648_0x479ba0(0xd5)]),router[a648_0x479ba0(0xc9)](a648_0x479ba0(0xd8),controller['statusGet']),router[a648_0x479ba0(0xc9)]('/:id/users',auth[a648_0x479ba0(0xce)](),controller[a648_0x479ba0(0xe4)]),router['post']('/',auth[a648_0x479ba0(0xce)](),controller[a648_0x479ba0(0xd3)]),router[a648_0x479ba0(0xde)](a648_0x479ba0(0xd0),auth[a648_0x479ba0(0xce)](),controller['addDisposition']),router[a648_0x479ba0(0xde)](a648_0x479ba0(0xd4),auth[a648_0x479ba0(0xce)](),controller[a648_0x479ba0(0xe5)]),router[a648_0x479ba0(0xde)](a648_0x479ba0(0xc7),controller[a648_0x479ba0(0xd6)]),router['post']('/:id/applications',auth[a648_0x479ba0(0xce)](),controller[a648_0x479ba0(0xc8)]),router[a648_0x479ba0(0xde)](a648_0x479ba0(0xd9),auth[a648_0x479ba0(0xce)](),controller[a648_0x479ba0(0xe0)]),router[a648_0x479ba0(0xde)](a648_0x479ba0(0xd8),controller[a648_0x479ba0(0xcd)]),router[a648_0x479ba0(0xde)](a648_0x479ba0(0xdb),auth[a648_0x479ba0(0xce)](),controller[a648_0x479ba0(0xd1)]),router[a648_0x479ba0(0xcb)](a648_0x479ba0(0xc5),auth['isAuthenticated'](),controller['update']),router[a648_0x479ba0(0xc4)](a648_0x479ba0(0xc5),auth[a648_0x479ba0(0xce)](),controller['destroy']),router[a648_0x479ba0(0xc4)](a648_0x479ba0(0xd0),auth['isAuthenticated'](),controller[a648_0x479ba0(0xdf)]),router[a648_0x479ba0(0xc4)](a648_0x479ba0(0xd4),auth[a648_0x479ba0(0xce)](),controller['removeAnswers']),router[a648_0x479ba0(0xc4)](a648_0x479ba0(0xdb),auth[a648_0x479ba0(0xce)](),controller['removeAgents']),module[a648_0x479ba0(0xdc)]=router; \ No newline at end of file diff --git a/server/api/smsAccount/smsAccount.attributes.js b/server/api/smsAccount/smsAccount.attributes.js index 0689b4b..aa0990c 100644 --- a/server/api/smsAccount/smsAccount.attributes.js +++ b/server/api/smsAccount/smsAccount.attributes.js @@ -1 +1 @@ -const a541_0x52b3=['clicksend','exports','ENUM','setDataValue','BOOLEAN','INTEGER','generate','infobip','randomstring','mandatoryDisposition','plivo','twilio','TEXT','STRING','Account:\x20{{account.name}}
    {{#queue}}Queue:\x20{{queue.name}}
    {{/queue}}From\x20:\x20{{from}}','Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled','Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','intelepeer','skebby','mandatoryDispositionPauseId'];(function(_0x2c5b5f,_0x52b380){const _0xcf0f43=function(_0xe027b0){while(--_0xe027b0){_0x2c5b5f['push'](_0x2c5b5f['shift']());}};_0xcf0f43(++_0x52b380);}(a541_0x52b3,0xf5));const a541_0xcf0f=function(_0x2c5b5f,_0x52b380){_0x2c5b5f=_0x2c5b5f-0x0;let _0xcf0f43=a541_0x52b3[_0x2c5b5f];return _0xcf0f43;};const _0x3cede3=a541_0xcf0f;'use strict';const Sequelize=require('sequelize'),rs=require(_0x3cede3('0x3'));module[_0x3cede3('0x10')]={'name':{'type':Sequelize['STRING'],'unique':'name','allowNull':![]},'key':{'type':Sequelize[_0x3cede3('0x8')],'allowNull':![]},'remote':{'type':Sequelize[_0x3cede3('0x8')],'allowNull':![]},'token':{'type':Sequelize[_0x3cede3('0x8')],'defaultValue':function(){const _0x33b4e8=_0x3cede3;return rs[_0x33b4e8('0x1')]();}},'phone':{'type':Sequelize[_0x3cede3('0x8')]},'type':{'type':Sequelize[_0x3cede3('0x11')](_0x3cede3('0x6'),_0x3cede3('0xd'),'connectel',_0x3cede3('0xf'),_0x3cede3('0x5'),'clickatell','csc',_0x3cede3('0x2'),_0x3cede3('0xc'))},'accountSid':{'type':Sequelize[_0x3cede3('0x8')]},'authId':{'type':Sequelize[_0x3cede3('0x8')]},'authToken':{'type':Sequelize[_0x3cede3('0x8')]},'smsMethod':{'type':Sequelize[_0x3cede3('0x11')]('SI','TI','GP')},'username':{'type':Sequelize['STRING']},'password':{'type':Sequelize[_0x3cede3('0x8')]},'apiKey':{'type':Sequelize[_0x3cede3('0x8')]},'senderString':{'type':Sequelize[_0x3cede3('0x8')]},'deliveryReport':{'type':Sequelize[_0x3cede3('0x13')],'defaultValue':![]},'description':{'type':Sequelize['STRING']},'notificationTemplate':{'type':Sequelize[_0x3cede3('0x7')],'defaultValue':function(){const _0x273ebf=_0x3cede3;return _0x273ebf('0x9');}},'notificationSound':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'notificationShake':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'waitForTheAssignedAgent':{'type':Sequelize[_0x3cede3('0x0')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'queueTransfer':{'type':Sequelize[_0x3cede3('0x13')],'defaultValue':![]},'queueTransferTimeout':{'type':Sequelize[_0x3cede3('0x0')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':Sequelize[_0x3cede3('0x13')],'defaultValue':![]},'agentTransferTimeout':{'type':Sequelize['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'baseUrl':{'type':Sequelize[_0x3cede3('0x8')]},'mandatoryDispositionPauseId':{'type':Sequelize[_0x3cede3('0x0')],'comment':_0x3cede3('0xa')},'mandatoryDisposition':{'type':Sequelize[_0x3cede3('0x13')],'defaultValue':![],'comment':_0x3cede3('0xb'),'set':function(_0xe027b0){const _0x197fc0=_0x3cede3;if(!_0xe027b0)this[_0x197fc0('0x12')](_0x197fc0('0xe'),null);this[_0x197fc0('0x12')](_0x197fc0('0x4'),_0xe027b0);}}}; \ No newline at end of file +const a649_0x33ed=['Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','clickatell','ENUM','twilio','csc','Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled','generate','connectel','attributes','Account:\x20{{account.name}}
    {{#queue}}Queue:\x20{{queue.name}}
    {{/queue}}From\x20:\x20{{from}}','INTEGER','STRING','plivo','intelepeer','setDataValue','skebby','name','randomstring','exports','infobip','BOOLEAN'];(function(_0x40fabe,_0x1cbe90){const _0x33ed70=function(_0x59a7e3){while(--_0x59a7e3){_0x40fabe['push'](_0x40fabe['shift']());}};_0x33ed70(++_0x1cbe90);}(a649_0x33ed,0x95));const a649_0x59a7=function(_0x40fabe,_0x1cbe90){_0x40fabe=_0x40fabe-0x1e1;let _0x33ed70=a649_0x33ed[_0x40fabe];return _0x33ed70;};const a649_0x4df7d4=a649_0x59a7;'use strict';const {DataTypes}=require('sequelize'),rs=require(a649_0x4df7d4(0x1f0)),attributes={'name':{'type':DataTypes[a649_0x4df7d4(0x1ea)],'unique':a649_0x4df7d4(0x1ef),'allowNull':![]},'key':{'type':DataTypes[a649_0x4df7d4(0x1ea)],'allowNull':![]},'remote':{'type':DataTypes[a649_0x4df7d4(0x1ea)],'allowNull':![]},'token':{'type':DataTypes[a649_0x4df7d4(0x1ea)],'defaultValue':function(){const _0x2cc584=a649_0x4df7d4;return rs[_0x2cc584(0x1e5)]();}},'phone':{'type':DataTypes[a649_0x4df7d4(0x1ea)]},'type':{'type':DataTypes[a649_0x4df7d4(0x1e1)](a649_0x4df7d4(0x1e2),a649_0x4df7d4(0x1ee),a649_0x4df7d4(0x1e6),'clicksend',a649_0x4df7d4(0x1eb),a649_0x4df7d4(0x1f5),a649_0x4df7d4(0x1e3),a649_0x4df7d4(0x1f2),a649_0x4df7d4(0x1ec))},'accountSid':{'type':DataTypes['STRING']},'authId':{'type':DataTypes[a649_0x4df7d4(0x1ea)]},'authToken':{'type':DataTypes['STRING']},'smsMethod':{'type':DataTypes[a649_0x4df7d4(0x1e1)]('SI','TI','GP')},'username':{'type':DataTypes[a649_0x4df7d4(0x1ea)]},'password':{'type':DataTypes['STRING']},'apiKey':{'type':DataTypes[a649_0x4df7d4(0x1ea)]},'senderString':{'type':DataTypes[a649_0x4df7d4(0x1ea)]},'deliveryReport':{'type':DataTypes[a649_0x4df7d4(0x1f3)],'defaultValue':![]},'description':{'type':DataTypes['STRING']},'notificationTemplate':{'type':DataTypes['TEXT'],'defaultValue':function(){const _0x3eb7a3=a649_0x4df7d4;return _0x3eb7a3(0x1e8);}},'notificationSound':{'type':DataTypes[a649_0x4df7d4(0x1f3)],'defaultValue':!![]},'notificationShake':{'type':DataTypes[a649_0x4df7d4(0x1f3)],'defaultValue':![]},'waitForTheAssignedAgent':{'type':DataTypes[a649_0x4df7d4(0x1e9)],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'queueTransfer':{'type':DataTypes['BOOLEAN'],'defaultValue':![]},'queueTransferTimeout':{'type':DataTypes[a649_0x4df7d4(0x1e9)],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':DataTypes[a649_0x4df7d4(0x1f3)],'defaultValue':![]},'agentTransferTimeout':{'type':DataTypes[a649_0x4df7d4(0x1e9)],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'baseUrl':{'type':DataTypes[a649_0x4df7d4(0x1ea)]},'mandatoryDispositionPauseId':{'type':DataTypes[a649_0x4df7d4(0x1e9)],'comment':a649_0x4df7d4(0x1e4)},'mandatoryDisposition':{'type':DataTypes[a649_0x4df7d4(0x1f3)],'defaultValue':![],'comment':a649_0x4df7d4(0x1f4),'set':function(_0xa7d6e7){const _0x60f2a3=a649_0x4df7d4;if(!_0xa7d6e7)this[_0x60f2a3(0x1ed)]('mandatoryDispositionPauseId',null);this[_0x60f2a3(0x1ed)]('mandatoryDisposition',_0xa7d6e7);}}};module[a649_0x4df7d4(0x1f1)][a649_0x4df7d4(0x1e7)]=attributes; \ No newline at end of file diff --git a/server/api/smsAccount/smsAccount.controller.js b/server/api/smsAccount/smsAccount.controller.js index 55cf38e..e2365c2 100644 --- a/server/api/smsAccount/smsAccount.controller.js +++ b/server/api/smsAccount/smsAccount.controller.js @@ -1 +1 @@ -const a542_0x4df9=['results','DELIVERED_TO_GATEWAY','applications','SmsApplication','isNil','bulkCreate','Owner','clicksend','tag','orderBy','error','attributes','plivo','fields','pick','sender','type','removeAgents','omit','from','getApplications','addAnswer','map','received\x20delivery\x20report\x20from','clickatell','MessageUUID','get','length','List','fullname','emit','waitForTheAssignedAgent','mandatoryDispositionPause','inspect','isArray','limit','createdAt','rawAttributes','include','difference','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','segmentedMessage','getAgents','ACCEPTD','CompanyId','push','userSmsAccount:save','sequelize','rows','undefined','send','status','order','skebby','originatingAddress','SmsAccountId','describe','like','index','where','notify','SmsAccount,\x20%s,\x20%s,\x20%s,\x20%s','ListId','text/xml','keys','body\x20is\x20mandatory\x20and\x20not\x20empty','connectel','options','messageId','Text','addApplications','json','stringify','asc','AttachmentId','no\x20available\x20attributes','../../rediscache','UserProfileSection','Start','lodash','\x0a','interaction','show','skebby_dispatch_id','SmsAccount,\x20%s,\x20%s','dataValues','endpoint\x20/status\x20POST\x20/','model','Messages','query','includeAll','Body','debug','then','getAnswers','twilio','removeAnswers','CmContact','create','Content-Range','filter','findAll','mapKey','Disposition','SmsMessage','body','offset','stack','merge','unshift','MessageSid','list','DELIVERED','UserId','end','SmsAccounts','SmsAccount','sms','redif','user','../../mysqldb','color','count','intersection','message-id','VIRTUAL','csc','startRouting','CannedAnswer','entity\x20found','api','infobip','account','contact','message','SmsAccount,\x20%s,\x20%s,\x20%s','Content-Type','*,*,*,*','request','params','From','name','User','log','info','addAgents','Contact','UserProfileResource','includes','sendStatus','requestid','statusInt','CmList','unmanaged','replyMessageId','close','created','userProfileId','findOne','message_id','./smsAccount.socket','updatedAt','findAndCountAll','destroy','sort','Contacts','out','request\x20sent','catch','filters','update','set','text','mapKey\x20is\x20mandatory,\x20please\x20use\x20one\x20of\x20these:\x20','../../components/parsers/qs','result','to\x20is\x20mandatory','Tags','jayson/promise','client','defaults','userSmsAccount:remove','getDispositions','Pause','Applications','DESC','ids','mapKey\x20invalid,\x20please\x20use\x20one\x20of\x20these:\x20','nolimit','status_code','intelepeer','SmsInteraction','role','mobile','groupName','removeDispositions'];(function(_0x5983ff,_0x4df9e7){const _0x183b79=function(_0x31bf6e){while(--_0x31bf6e){_0x5983ff['push'](_0x5983ff['shift']());}};_0x183b79(++_0x4df9e7);}(a542_0x4df9,0x16d));const a542_0x183b=function(_0x5983ff,_0x4df9e7){_0x5983ff=_0x5983ff-0x0;let _0x183b79=a542_0x4df9[_0x5983ff];return _0x183b79;};const _0x114e24=a542_0x183b;'use strict';const util=require('util'),_=require(_0x114e24('0x6a')),qs=require(_0x114e24('0x5')),logger=require('../../config/logger')(_0x114e24('0x9d')),{getSocket}=require(_0x114e24('0x67')),socket=getSocket(),db=require(_0x114e24('0x93'))['db'],{Op,ValidationError}=require(_0x114e24('0x4a'));require(_0x114e24('0xbb'))['register'](socket);const jayson=require(_0x114e24('0x9')),client=jayson[_0x114e24('0xa')]['http']({'port':0x232c});function respondWithRpcPromise(_0x31bf6e,_0x459ca0,_0x2dc09b,_0x5ca109){return new Promise(function(_0xaf6b6d,_0x4425f3){const _0x1a7788=a542_0x183b,_0x5422be=_0x5ca109||client;return _0x5422be[_0x1a7788('0xa5')](_0x31bf6e,_0x2dc09b)[_0x1a7788('0x78')](function(_0x114257){const _0x580e1f=_0x1a7788;logger[_0x580e1f('0xab')]('SmsAccount,\x20%s,\x20%s',_0x459ca0,_0x580e1f('0xc2')),logger[_0x580e1f('0x77')]('SmsAccount,\x20%s,\x20%s,\x20%s',_0x459ca0,_0x580e1f('0xc2'),JSON[_0x580e1f('0x63')](_0x114257));if(_0x114257[_0x580e1f('0x25')]){if(_0x114257['error']['code']===0x1f4)return logger[_0x580e1f('0x25')](_0x580e1f('0x6f'),_0x459ca0,_0x114257[_0x580e1f('0x25')][_0x580e1f('0xa1')]),_0x4425f3(_0x114257[_0x580e1f('0x25')][_0x580e1f('0xa1')]);return logger['error']('SmsAccount,\x20%s,\x20%s',_0x459ca0,_0x114257[_0x580e1f('0x25')][_0x580e1f('0xa1')]),_0xaf6b6d(_0x114257[_0x580e1f('0x25')][_0x580e1f('0xa1')]);}else logger[_0x580e1f('0xab')](_0x580e1f('0x6f'),_0x459ca0,_0x580e1f('0xc2')),_0xaf6b6d(_0x114257[_0x580e1f('0x6')][_0x580e1f('0xa1')]);})[_0x1a7788('0xc3')](function(_0x442b7e){const _0x248a52=_0x1a7788;logger[_0x248a52('0x25')](_0x248a52('0x6f'),_0x459ca0,_0x442b7e),_0x4425f3(_0x442b7e);});});}function respondWithStatusCode(_0x26c0ae,_0x1e1f41){return _0x1e1f41=_0x1e1f41||0xcc,function(_0x553aee){const _0x6c4ca=a542_0x183b;if(_0x553aee)return _0x26c0ae[_0x6c4ca('0xb0')](_0x1e1f41);return _0x26c0ae['status'](_0x1e1f41)['end']();};}function respondWithResult(_0x5b8680,_0x4b2246){return _0x4b2246=_0x4b2246||0xc8,function(_0x3553b6){const _0x3fe890=a542_0x183b;if(_0x3553b6)return _0x5b8680[_0x3fe890('0x4e')](_0x4b2246)[_0x3fe890('0x62')](_0x3553b6);};}function respondWithFilteredResult(_0x18c3b4,_0x5d5731){return function(_0x5c3ccb){const _0x2e8cce=a542_0x183b;if(_0x5c3ccb){const _0x18a2c9=_0x5c3ccb[_0x2e8cce('0x95')],_0x2fd491=_0x5d5731[_0x2e8cce('0x85')];let _0x5d180e=_0x5d5731[_0x2e8cce('0x85')]+_0x5d5731[_0x2e8cce('0x3e')],_0x596aba;return _0x5d180e>=_0x18a2c9?(_0x5d180e=_0x18a2c9,_0x596aba=0xc8):_0x596aba=0xce,_0x18c3b4[_0x2e8cce('0x4e')](_0x596aba),_0x18c3b4[_0x2e8cce('0x2')](_0x2e8cce('0x7e'),_0x2fd491+'-'+_0x5d180e+'/'+_0x18a2c9)[_0x2e8cce('0x62')](_0x5c3ccb);}return null;};}function saveUpdates(_0x28eab7){return function(_0x2a61f7){const _0x388ab4=a542_0x183b;if(_0x2a61f7)return _0x2a61f7[_0x388ab4('0x1')](_0x28eab7)[_0x388ab4('0x78')](function(_0x41e0de){return _0x41e0de;});return null;};}function removeEntity(_0x3caaed){return function(_0x271ebf){const _0x457d7d=a542_0x183b;if(_0x271ebf)return _0x271ebf[_0x457d7d('0xbe')]()[_0x457d7d('0x78')](function(){const _0x42c8d4=_0x457d7d,_0x20b9fb=_0x271ebf[_0x42c8d4('0x35')]({'plain':!![]}),_0x1f512e=_0x42c8d4('0x8e');return db[_0x42c8d4('0xae')][_0x42c8d4('0xbe')]({'where':{'type':_0x1f512e,'resourceId':_0x20b9fb['id']}})[_0x42c8d4('0x78')](function(){return _0x271ebf;});})[_0x457d7d('0x78')](function(){const _0x14ad61=_0x457d7d;_0x3caaed[_0x14ad61('0x4e')](0xcc)[_0x14ad61('0x8d')]();});};}function handleEntityNotFound(_0x3a0b61){return function(_0x35040d){const _0x3a5ba5=a542_0x183b;return!_0x35040d&&_0x3a0b61[_0x3a5ba5('0xb0')](0x194),_0x35040d;};}function handleError(_0x5ba04f,_0x241058){return _0x241058=_0x241058||0x1f4,function(_0x53dc9a){const _0x44bcb2=a542_0x183b;logger[_0x44bcb2('0x25')](_0x53dc9a[_0x44bcb2('0x86')]),_0x53dc9a[_0x44bcb2('0xa8')]&&delete _0x53dc9a['name'],_0x5ba04f['status'](_0x241058)[_0x44bcb2('0x4d')](_0x53dc9a);};}exports[_0x114e24('0x55')]=function(_0x14bf63,_0x38549c){const _0x1f2bfd=_0x114e24;let _0x24a2f8={'include':[{'model':db['Pause'],'as':_0x1f2bfd('0x3b')}]};const _0x43b073={},_0x12d5c3={'count':0x0,'rows':[]},_0x17da51=_[_0x1f2bfd('0x31')](db[_0x1f2bfd('0x8f')]['rawAttributes'],function(_0xccaeb9){const _0x5b0902=_0x1f2bfd;return{'name':_0xccaeb9['fieldName'],'type':_0xccaeb9[_0x5b0902('0x2b')]['key']};});_0x43b073[_0x1f2bfd('0x72')]=_[_0x1f2bfd('0x31')](_0x17da51,_0x1f2bfd('0xa8')),_0x43b073[_0x1f2bfd('0x74')]=_[_0x1f2bfd('0x5b')](_0x14bf63['query']),_0x43b073[_0x1f2bfd('0x0')]=_[_0x1f2bfd('0x96')](_0x43b073[_0x1f2bfd('0x72')],_0x43b073[_0x1f2bfd('0x74')]),_0x24a2f8[_0x1f2bfd('0x26')]=_[_0x1f2bfd('0x96')](_0x43b073['model'],qs['fields'](_0x14bf63[_0x1f2bfd('0x74')][_0x1f2bfd('0x28')])),_0x24a2f8[_0x1f2bfd('0x26')]=_0x24a2f8[_0x1f2bfd('0x26')][_0x1f2bfd('0x36')]?_0x24a2f8[_0x1f2bfd('0x26')]:_0x43b073[_0x1f2bfd('0x72')];typeof _0x14bf63[_0x1f2bfd('0x74')][_0x1f2bfd('0x13')]===_0x1f2bfd('0x4c')&&(_0x24a2f8[_0x1f2bfd('0x3e')]=qs[_0x1f2bfd('0x3e')](_0x14bf63[_0x1f2bfd('0x74')][_0x1f2bfd('0x3e')]),_0x24a2f8[_0x1f2bfd('0x85')]=qs[_0x1f2bfd('0x85')](_0x14bf63[_0x1f2bfd('0x74')][_0x1f2bfd('0x85')]));_0x24a2f8[_0x1f2bfd('0x4f')]=qs[_0x1f2bfd('0xbf')](_0x14bf63['query']['sort']),_0x24a2f8[_0x1f2bfd('0x56')]=qs[_0x1f2bfd('0x0')](_[_0x1f2bfd('0x29')](_0x14bf63[_0x1f2bfd('0x74')],_0x43b073[_0x1f2bfd('0x0')]),_0x17da51);_0x14bf63[_0x1f2bfd('0x74')][_0x1f2bfd('0x7f')]&&(_0x24a2f8['where']=_['merge'](_0x24a2f8['where'],{[Op['or']]:_[_0x1f2bfd('0x31')](_0x17da51,function(_0x360fd4){const _0x4910c0=_0x1f2bfd;if(_0x360fd4[_0x4910c0('0x2b')]!==_0x4910c0('0x98')){const _0x9976ab={};return _0x9976ab[_0x360fd4[_0x4910c0('0xa8')]]={[Op[_0x4910c0('0x54')]]:'%'+_0x14bf63['query']['filter']+'%'},_0x9976ab;}})}));_0x24a2f8=_[_0x1f2bfd('0x87')]({},_0x24a2f8,_0x14bf63['options']);const _0x5314e3={'where':_0x24a2f8[_0x1f2bfd('0x56')]};return db[_0x1f2bfd('0x8f')][_0x1f2bfd('0x95')](_0x5314e3)[_0x1f2bfd('0x78')](function(_0x25c4d9){const _0x59e8fa=_0x1f2bfd;return _0x12d5c3[_0x59e8fa('0x95')]=_0x25c4d9,_0x14bf63[_0x59e8fa('0x74')]['includeAll']&&(_0x24a2f8['include']=[{'all':!![]}]),db[_0x59e8fa('0x8f')][_0x59e8fa('0x80')](_0x24a2f8);})[_0x1f2bfd('0x78')](function(_0x153c75){const _0x327832=_0x1f2bfd;return _0x12d5c3[_0x327832('0x4b')]=_0x153c75,_0x12d5c3;})[_0x1f2bfd('0x78')](respondWithFilteredResult(_0x38549c,_0x24a2f8))[_0x1f2bfd('0xc3')](handleError(_0x38549c,null));},exports[_0x114e24('0x6d')]=function(_0x180f8e,_0x578078){const _0x10df76=_0x114e24;let _0x3e4d8c={'raw':![],'where':{'id':_0x180f8e[_0x10df76('0xa6')]['id']},'include':[{'model':db[_0x10df76('0xe')],'as':_0x10df76('0x3b')}]};const _0x3e1f73={};return _0x3e1f73[_0x10df76('0x72')]=_['keys'](db[_0x10df76('0x8f')][_0x10df76('0x40')]),_0x3e1f73[_0x10df76('0x74')]=_[_0x10df76('0x5b')](_0x180f8e[_0x10df76('0x74')]),_0x3e1f73[_0x10df76('0x0')]=_[_0x10df76('0x96')](_0x3e1f73[_0x10df76('0x72')],_0x3e1f73[_0x10df76('0x74')]),_0x3e4d8c[_0x10df76('0x26')]=_[_0x10df76('0x96')](_0x3e1f73[_0x10df76('0x72')],qs['fields'](_0x180f8e[_0x10df76('0x74')][_0x10df76('0x28')])),_0x3e4d8c[_0x10df76('0x26')]=_0x3e4d8c['attributes'][_0x10df76('0x36')]?_0x3e4d8c[_0x10df76('0x26')]:_0x3e1f73[_0x10df76('0x72')],_0x180f8e[_0x10df76('0x74')][_0x10df76('0x75')]&&(_0x3e4d8c['include']=[{'all':!![]}]),_0x3e4d8c=_['merge']({},_0x3e4d8c,_0x180f8e[_0x10df76('0x5e')]),db[_0x10df76('0x8f')][_0x10df76('0xb9')](_0x3e4d8c)['then'](handleEntityNotFound(_0x578078,null))['then'](respondWithResult(_0x578078,null))['catch'](handleError(_0x578078,null));},exports[_0x114e24('0x7d')]=function(_0x5654eb,_0x761249){const _0x438a29=_0x114e24;return db[_0x438a29('0x8f')][_0x438a29('0x7d')](_0x5654eb['body'],{})[_0x438a29('0x78')](function(_0x3c1119){const _0x233808=_0x438a29,_0x39b138=_0x5654eb[_0x233808('0x92')]['get']({'plain':!![]});if(!_0x39b138)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x39b138[_0x233808('0x17')]===_0x233808('0x92')){const _0x21e1c8=_0x3c1119['get']({'plain':!![]}),_0x4de11e=_0x233808('0x8e');return db[_0x233808('0x68')][_0x233808('0xb9')]({'where':{'name':_0x4de11e,'userProfileId':_0x39b138[_0x233808('0xb8')]},'raw':!![]})['then'](function(_0x99b471){const _0x5b547c=_0x233808;return _0x99b471&&_0x99b471['autoAssociation']===0x0?db[_0x5b547c('0xae')]['create']({'name':_0x21e1c8[_0x5b547c('0xa8')],'resourceId':_0x21e1c8['id'],'type':_0x99b471[_0x5b547c('0xa8')],'sectionId':_0x99b471['id']},{})[_0x5b547c('0x78')](function(){return _0x3c1119;}):_0x3c1119;})[_0x233808('0xc3')](function(_0x3037dd){const _0x3981e4=_0x233808;logger[_0x3981e4('0x25')](_0x3981e4('0x43'),_0x3037dd);throw _0x3037dd;});}return _0x3c1119;})['then'](respondWithResult(_0x761249,0xc9))[_0x438a29('0xc3')](handleError(_0x761249,null));},exports['update']=function(_0x911eb4,_0x521468){const _0x5cc5f8=_0x114e24;return _0x911eb4[_0x5cc5f8('0x84')]['id']&&delete _0x911eb4['body']['id'],db[_0x5cc5f8('0x8f')][_0x5cc5f8('0xb9')]({'where':{'id':_0x911eb4['params']['id']},'include':[{'model':db['Pause'],'as':_0x5cc5f8('0x3b')}]})[_0x5cc5f8('0x78')](handleEntityNotFound(_0x521468,null))[_0x5cc5f8('0x78')](saveUpdates(_0x911eb4['body'],null))[_0x5cc5f8('0x78')](respondWithResult(_0x521468,null))[_0x5cc5f8('0xc3')](handleError(_0x521468,null));},exports[_0x114e24('0xbe')]=function(_0xe46aa5,_0x83d13){const _0x121cf6=_0x114e24;return db[_0x121cf6('0x8f')][_0x121cf6('0xb9')]({'where':{'id':_0xe46aa5[_0x121cf6('0xa6')]['id']}})[_0x121cf6('0x78')](handleEntityNotFound(_0x83d13,null))['then'](removeEntity(_0x83d13,null))[_0x121cf6('0xc3')](handleError(_0x83d13,null));},exports[_0x114e24('0x53')]=function(_0x65e9f2,_0x38ea78){const _0x4cd472=_0x114e24;return db[_0x4cd472('0x8f')][_0x4cd472('0x53')]()[_0x4cd472('0x78')](respondWithResult(_0x38ea78,null))[_0x4cd472('0xc3')](handleError(_0x38ea78,null));},exports['addDisposition']=function(_0x448ae7,_0x24ed8a){const _0x588fa3=_0x114e24;return _0x448ae7[_0x588fa3('0x84')]['id']&&delete _0x448ae7[_0x588fa3('0x84')]['id'],db[_0x588fa3('0x8f')][_0x588fa3('0xb9')]({'where':{'id':_0x448ae7[_0x588fa3('0xa6')]['id']}})['then'](handleEntityNotFound(_0x24ed8a,null))[_0x588fa3('0x78')](function(_0x2aa382){const _0x4b76f5=_0x588fa3;if(_0x2aa382)return _0x448ae7[_0x4b76f5('0x84')]['SmsAccountId']=_0x2aa382['id'],db['Disposition'][_0x4b76f5('0x7d')](_0x448ae7[_0x4b76f5('0x84')]);})['then'](respondWithResult(_0x24ed8a,null))[_0x588fa3('0xc3')](handleError(_0x24ed8a,null));},exports[_0x114e24('0xd')]=function(_0x1e63fd,_0x483cf3){const _0xf3f5f1=_0x114e24;let _0x2e1161={'raw':![],'where':{}};const _0x4cde47={},_0x5b9015={'count':0x0,'rows':[]};return db[_0xf3f5f1('0x8f')]['findOne']({'where':{'id':_0x1e63fd[_0xf3f5f1('0xa6')]['id']}})['then'](handleEntityNotFound(_0x483cf3,null))[_0xf3f5f1('0x78')](function(_0x378490){const _0x2bf2d4=_0xf3f5f1;if(_0x378490)return _0x4cde47[_0x2bf2d4('0x72')]=_['keys'](db[_0x2bf2d4('0x82')][_0x2bf2d4('0x40')]),_0x4cde47[_0x2bf2d4('0x74')]=_[_0x2bf2d4('0x5b')](_0x1e63fd[_0x2bf2d4('0x74')]),_0x4cde47['filters']=_[_0x2bf2d4('0x96')](_0x4cde47[_0x2bf2d4('0x72')],_0x4cde47[_0x2bf2d4('0x74')]),_0x2e1161[_0x2bf2d4('0x26')]=_['intersection'](_0x4cde47['model'],qs[_0x2bf2d4('0x28')](_0x1e63fd[_0x2bf2d4('0x74')]['fields'])),_0x2e1161[_0x2bf2d4('0x26')]=_0x2e1161['attributes'][_0x2bf2d4('0x36')]?_0x2e1161['attributes']:_0x4cde47[_0x2bf2d4('0x72')],typeof _0x1e63fd[_0x2bf2d4('0x74')][_0x2bf2d4('0x13')]==='undefined'&&(_0x2e1161[_0x2bf2d4('0x3e')]=qs[_0x2bf2d4('0x3e')](_0x1e63fd[_0x2bf2d4('0x74')][_0x2bf2d4('0x3e')]),_0x2e1161[_0x2bf2d4('0x85')]=qs[_0x2bf2d4('0x85')](_0x1e63fd[_0x2bf2d4('0x74')][_0x2bf2d4('0x85')])),_0x2e1161[_0x2bf2d4('0x4f')]=qs[_0x2bf2d4('0xbf')](_0x1e63fd[_0x2bf2d4('0x74')][_0x2bf2d4('0xbf')]),_0x2e1161[_0x2bf2d4('0x56')]=qs[_0x2bf2d4('0x0')](_['pick'](_0x1e63fd[_0x2bf2d4('0x74')],_0x4cde47[_0x2bf2d4('0x0')])),_0x2e1161[_0x2bf2d4('0x56')][_0x2bf2d4('0x52')]=_0x378490['id'],_0x1e63fd['query']['filter']&&(_0x2e1161[_0x2bf2d4('0x56')]=_[_0x2bf2d4('0x87')](_0x2e1161[_0x2bf2d4('0x56')],{[Op['or']]:_[_0x2bf2d4('0x31')](_0x2e1161[_0x2bf2d4('0x26')],function(_0x3dbbfb){const _0x519b89=_0x2bf2d4,_0x7e056d={};return _0x7e056d[_0x3dbbfb]={[Op['like']]:'%'+_0x1e63fd[_0x519b89('0x74')]['filter']+'%'},_0x7e056d;})})),_0x2e1161=_['merge']({},_0x2e1161,_0x1e63fd[_0x2bf2d4('0x5e')]),db[_0x2bf2d4('0x82')][_0x2bf2d4('0x95')]({'where':_0x2e1161[_0x2bf2d4('0x56')]})[_0x2bf2d4('0x78')](function(_0x36169a){const _0x203b8c=_0x2bf2d4;return _0x5b9015[_0x203b8c('0x95')]=_0x36169a,_0x1e63fd['query'][_0x203b8c('0x75')]&&(_0x2e1161['include']=[{'all':!![]}]),db[_0x203b8c('0x82')]['findAll'](_0x2e1161);})[_0x2bf2d4('0x78')](function(_0x271574){const _0x5485fd=_0x2bf2d4;return _0x5b9015[_0x5485fd('0x4b')]=_0x271574,_0x5b9015;});})['then'](respondWithFilteredResult(_0x483cf3,_0x2e1161))[_0xf3f5f1('0xc3')](handleError(_0x483cf3,null));},exports[_0x114e24('0x1a')]=function(_0x169f02,_0x4f12e9){const _0x41578a=_0x114e24;return db[_0x41578a('0x8f')][_0x41578a('0xb9')]({'where':{'id':_0x169f02[_0x41578a('0xa6')]['id']}})[_0x41578a('0x78')](handleEntityNotFound(_0x4f12e9,null))[_0x41578a('0x78')](function(_0x4c9580){const _0xdcdfbd=_0x41578a;if(_0x4c9580)return _0x4c9580[_0xdcdfbd('0x1a')](_0x169f02[_0xdcdfbd('0x74')][_0xdcdfbd('0x11')]);})['then'](respondWithStatusCode(_0x4f12e9,null))[_0x41578a('0xc3')](handleError(_0x4f12e9,null));},exports[_0x114e24('0x30')]=function(_0x46d382,_0x19f98d){const _0xdf11ad=_0x114e24;return _0x46d382[_0xdf11ad('0x84')]['id']&&delete _0x46d382['body']['id'],db[_0xdf11ad('0x8f')]['findOne']({'where':{'id':_0x46d382[_0xdf11ad('0xa6')]['id']}})[_0xdf11ad('0x78')](handleEntityNotFound(_0x19f98d,null))['then'](function(_0x4fce2e){const _0xfb4c9f=_0xdf11ad;if(_0x4fce2e)return _0x46d382['body'][_0xfb4c9f('0x52')]=_0x4fce2e['id'],db[_0xfb4c9f('0x9b')][_0xfb4c9f('0x7d')](_0x46d382[_0xfb4c9f('0x84')]);})['then'](respondWithResult(_0x19f98d,null))['catch'](handleError(_0x19f98d,null));},exports[_0x114e24('0x79')]=function(_0x152756,_0x1da781){const _0xfe71ba=_0x114e24;let _0x538298={'raw':![],'where':{}};const _0x2ba4f2={},_0x2e7b56={'count':0x0,'rows':[]};return db[_0xfe71ba('0x8f')][_0xfe71ba('0xb9')]({'where':{'id':_0x152756[_0xfe71ba('0xa6')]['id']}})[_0xfe71ba('0x78')](handleEntityNotFound(_0x1da781,null))[_0xfe71ba('0x78')](function(_0x37423e){const _0x3dda4c=_0xfe71ba;if(_0x37423e)return _0x2ba4f2[_0x3dda4c('0x72')]=_[_0x3dda4c('0x5b')](db[_0x3dda4c('0x9b')][_0x3dda4c('0x40')]),_0x2ba4f2[_0x3dda4c('0x74')]=_[_0x3dda4c('0x5b')](_0x152756['query']),_0x2ba4f2['filters']=_[_0x3dda4c('0x96')](_0x2ba4f2['model'],_0x2ba4f2[_0x3dda4c('0x74')]),_0x538298[_0x3dda4c('0x26')]=_['intersection'](_0x2ba4f2[_0x3dda4c('0x72')],qs['fields'](_0x152756[_0x3dda4c('0x74')][_0x3dda4c('0x28')])),_0x538298['attributes']=_0x538298['attributes'][_0x3dda4c('0x36')]?_0x538298[_0x3dda4c('0x26')]:_0x2ba4f2[_0x3dda4c('0x72')],typeof _0x152756['query'][_0x3dda4c('0x13')]===_0x3dda4c('0x4c')&&(_0x538298['limit']=qs[_0x3dda4c('0x3e')](_0x152756[_0x3dda4c('0x74')][_0x3dda4c('0x3e')]),_0x538298[_0x3dda4c('0x85')]=qs[_0x3dda4c('0x85')](_0x152756['query'][_0x3dda4c('0x85')])),_0x538298[_0x3dda4c('0x4f')]=qs[_0x3dda4c('0xbf')](_0x152756[_0x3dda4c('0x74')][_0x3dda4c('0xbf')]),_0x538298[_0x3dda4c('0x56')]=qs[_0x3dda4c('0x0')](_['pick'](_0x152756[_0x3dda4c('0x74')],_0x2ba4f2[_0x3dda4c('0x0')])),_0x538298[_0x3dda4c('0x56')][_0x3dda4c('0x52')]=_0x37423e['id'],_0x152756['query']['filter']&&(_0x538298[_0x3dda4c('0x56')]=_['merge'](_0x538298[_0x3dda4c('0x56')],{[Op['or']]:_['map'](_0x538298['attributes'],function(_0x2acc95){const _0xea7958=_0x3dda4c,_0x30453e={};return _0x30453e[_0x2acc95]={[Op[_0xea7958('0x54')]]:'%'+_0x152756[_0xea7958('0x74')][_0xea7958('0x7f')]+'%'},_0x30453e;})})),_0x538298=_[_0x3dda4c('0x87')]({},_0x538298,_0x152756[_0x3dda4c('0x5e')]),db[_0x3dda4c('0x9b')][_0x3dda4c('0x95')]({'where':_0x538298[_0x3dda4c('0x56')]})[_0x3dda4c('0x78')](function(_0x100012){const _0x44ba5d=_0x3dda4c;return _0x2e7b56[_0x44ba5d('0x95')]=_0x100012,_0x152756[_0x44ba5d('0x74')][_0x44ba5d('0x75')]&&(_0x538298[_0x44ba5d('0x41')]=[{'all':!![]}]),db[_0x44ba5d('0x9b')][_0x44ba5d('0x80')](_0x538298);})['then'](function(_0x4160ec){const _0x40059c=_0x3dda4c;return _0x2e7b56[_0x40059c('0x4b')]=_0x4160ec,_0x2e7b56;});})[_0xfe71ba('0x78')](respondWithFilteredResult(_0x1da781,_0x538298))['catch'](handleError(_0x1da781,null));},exports[_0x114e24('0x7b')]=function(_0x2aca35,_0x409ad6){const _0x12cd06=_0x114e24;return db[_0x12cd06('0x8f')][_0x12cd06('0xb9')]({'where':{'id':_0x2aca35[_0x12cd06('0xa6')]['id']}})[_0x12cd06('0x78')](handleEntityNotFound(_0x409ad6,null))[_0x12cd06('0x78')](function(_0x15089f){const _0x56300f=_0x12cd06;if(_0x15089f)return _0x15089f[_0x56300f('0x7b')](_0x2aca35[_0x56300f('0x74')][_0x56300f('0x11')]);})[_0x12cd06('0x78')](respondWithStatusCode(_0x409ad6,null))[_0x12cd06('0xc3')](handleError(_0x409ad6,null));},exports[_0x114e24('0x57')]=function(_0x162477,_0x5d444a){const _0x2ee67a=_0x114e24,_0x4c3e8d={'channel':_0x2ee67a('0x90')};let _0x44f53b=[],_0x3e8ec2=[];const _0x1bb13f={};return db[_0x2ee67a('0x8f')][_0x2ee67a('0xb9')]({'where':{'id':_0x162477[_0x2ee67a('0xa6')]['id']},'include':[{'model':db[_0x2ee67a('0x1e')],'as':_0x2ee67a('0xf')}]})[_0x2ee67a('0x78')](handleEntityNotFound(_0x5d444a,null))['then'](function(_0x18697e){const _0xa8d5f7=_0x2ee67a;return _0x4c3e8d[_0xa8d5f7('0x9f')]=_0x18697e,_0x4c3e8d[_0xa8d5f7('0x1d')]=_[_0xa8d5f7('0x24')](_0x18697e[_0xa8d5f7('0xf')],['priority'],[_0xa8d5f7('0x64')]),_0x4c3e8d['account'][_0xa8d5f7('0xf')]&&delete _0x4c3e8d[_0xa8d5f7('0x9f')][_0xa8d5f7('0xf')],db['CmContact']['describe']();})[_0x2ee67a('0x78')](function(_0x55b240){const _0x569921=_0x2ee67a;if(!_0x55b240)throw new ValidationError(_0x569921('0x66'));_0x44f53b=_[_0x569921('0x42')](_[_0x569921('0x5b')](_0x55b240),[_0x569921('0x3f'),'updatedAt']),_0x3e8ec2=_['difference'](_['keys'](_0x55b240),[_0x569921('0x3f'),_0x569921('0xbc'),_0x569921('0x47'),'ListId']),_0x4c3e8d[_0x569921('0x84')]={'mapKey':_0x569921('0x18')};if(_0x4c3e8d[_0x569921('0x9f')][_0x569921('0x2b')])switch(_0x4c3e8d[_0x569921('0x9f')][_0x569921('0x2b')]){case _0x569921('0x7a'):_0x4c3e8d['body']['from']=_0x162477['body'][_0x569921('0xa7')],_0x4c3e8d[_0x569921('0x84')][_0x569921('0x84')]=_0x162477[_0x569921('0x84')][_0x569921('0x76')],_0x4c3e8d[_0x569921('0x84')][_0x569921('0x5f')]=_0x162477[_0x569921('0x84')][_0x569921('0x89')];break;case _0x569921('0x50'):_0x4c3e8d[_0x569921('0x84')]['from']='+'+_0x162477[_0x569921('0x84')][_0x569921('0x2a')],_0x4c3e8d['body']['body']=_0x162477[_0x569921('0x84')][_0x569921('0x3')];break;case _0x569921('0x5d'):_0x4c3e8d['body'][_0x569921('0x2e')]=_0x162477[_0x569921('0x84')][_0x569921('0x2e')],_0x4c3e8d['body'][_0x569921('0x84')]=_0x162477[_0x569921('0x84')][_0x569921('0xa1')];break;case _0x569921('0x22'):_0x4c3e8d[_0x569921('0x84')][_0x569921('0x2e')]=_0x162477[_0x569921('0x84')][_0x569921('0x2e')],_0x4c3e8d[_0x569921('0x84')][_0x569921('0x84')]=_0x162477[_0x569921('0x84')]['body'],_0x4c3e8d[_0x569921('0x84')][_0x569921('0x5f')]=_0x162477[_0x569921('0x84')][_0x569921('0xba')];break;case _0x569921('0x27'):_0x4c3e8d['body'][_0x569921('0x2e')]=_0x162477[_0x569921('0x84')]['From'],_0x4c3e8d[_0x569921('0x84')][_0x569921('0x84')]=_0x162477[_0x569921('0x84')][_0x569921('0x60')],_0x4c3e8d[_0x569921('0x84')][_0x569921('0x5f')]=_0x162477[_0x569921('0x84')][_0x569921('0x34')];break;case _0x569921('0x9e'):_0x4c3e8d[_0x569921('0x84')][_0x569921('0x2e')]='+'+_0x162477[_0x569921('0x84')][_0x569921('0x1b')][0x0][_0x569921('0x2e')],_0x4c3e8d[_0x569921('0x84')][_0x569921('0x84')]=_0x162477[_0x569921('0x84')]['results'][0x0][_0x569921('0x3')],_0x4c3e8d[_0x569921('0x84')][_0x569921('0x5f')]=_0x162477[_0x569921('0x84')][_0x569921('0x1b')][0x0][_0x569921('0x5f')];break;case _0x569921('0x99'):_0x4c3e8d['body'][_0x569921('0x2e')]=_0x162477['body'][_0x569921('0x51')],_0x4c3e8d[_0x569921('0x84')][_0x569921('0x84')]=_0x162477[_0x569921('0x84')][_0x569921('0x44')][_0x569921('0xa1')];break;case _0x569921('0x33'):_0x4c3e8d['body'][_0x569921('0x2e')]=_0x162477[_0x569921('0x84')]['fromNumber'],_0x4c3e8d[_0x569921('0x84')][_0x569921('0x84')]=_0x162477['body']['text'],_0x4c3e8d[_0x569921('0x84')][_0x569921('0x5f')]=_0x162477[_0x569921('0x84')][_0x569921('0xb5')];break;case _0x569921('0x15'):_0x4c3e8d[_0x569921('0x84')][_0x569921('0x2e')]=_0x162477['body']['from'],_0x4c3e8d[_0x569921('0x84')][_0x569921('0x84')]=_0x162477[_0x569921('0x84')][_0x569921('0xa1')],_0x4c3e8d[_0x569921('0x84')][_0x569921('0x5f')]=_0x162477[_0x569921('0x84')]['refid'];break;}_0x4c3e8d[_0x569921('0x84')]['id']&&delete _0x4c3e8d['body']['id'];if(_[_0x569921('0x1f')](_0x4c3e8d[_0x569921('0x84')]['from']))throw new ValidationError('from\x20is\x20mandatory');if(_[_0x569921('0x1f')](_0x4c3e8d[_0x569921('0x84')][_0x569921('0x84')])||_0x4c3e8d[_0x569921('0x84')][_0x569921('0x84')]==='')throw new ValidationError(_0x569921('0x5c'));if(_[_0x569921('0x1f')](_0x4c3e8d['body']['mapKey']))throw new ValidationError(_0x569921('0x4')+_0x3e8ec2);if(!_[_0x569921('0xaf')](_0x3e8ec2,_0x4c3e8d[_0x569921('0x84')][_0x569921('0x81')]))throw new ValidationError(_0x569921('0x12')+_0x3e8ec2);return _0x1bb13f[_0x4c3e8d[_0x569921('0x84')][_0x569921('0x81')]]=_0x4c3e8d[_0x569921('0x84')][_0x569921('0x2e')],db[_0x569921('0xb3')][_0x569921('0xb9')]({'where':{'id':_0x4c3e8d[_0x569921('0x9f')][_0x569921('0x59')]},'include':[{'model':db[_0x569921('0x7c')],'as':_0x569921('0xc0'),'where':_0x1bb13f,'limit':0x1,'order':[['updatedAt',_0x569921('0x10')]]}]});})[_0x2ee67a('0x78')](handleEntityNotFound(_0x5d444a,null))[_0x2ee67a('0x78')](function(_0x440665){const _0x3bbf4a=_0x2ee67a;if(_0x440665){_0x4c3e8d[_0x3bbf4a('0x8a')]=_[_0x3bbf4a('0x2d')](_0x440665,[_0x3bbf4a('0xc0')]);if(_0x440665['Contacts']['length'])return _0x440665[_0x3bbf4a('0xc0')][0x0];const _0x1d98a5=_[_0x3bbf4a('0xb')](_0x4c3e8d[_0x3bbf4a('0x84')],{'firstName':_0x4c3e8d[_0x3bbf4a('0x84')]['from'],'ListId':_0x440665['id']});return _0x1d98a5[_0x4c3e8d[_0x3bbf4a('0x84')][_0x3bbf4a('0x81')]]=_0x4c3e8d['body'][_0x3bbf4a('0x2e')],db[_0x3bbf4a('0x7c')][_0x3bbf4a('0x7d')](_0x1d98a5,{'fields':_0x44f53b,'raw':!![]});}})[_0x2ee67a('0x78')](handleEntityNotFound(_0x5d444a,null))[_0x2ee67a('0x78')](function(_0x4c65ac){const _0x37adaf=_0x2ee67a;if(_0x4c65ac){_0x4c3e8d[_0x37adaf('0xa0')]=_0x4c65ac;const _0x25d333={'ContactId':_0x4c65ac['id'],'phone':_0x4c3e8d['body'][_0x37adaf('0x2e')],'SmsAccountId':_0x162477[_0x37adaf('0xa6')]['id']},_0x38b789={'ContactId':_0x4c65ac['id'],'SmsAccountId':_0x162477[_0x37adaf('0xa6')]['id'],'closed':![]};return db[_0x37adaf('0x16')][_0x37adaf('0xb9')]({'where':_0x38b789})[_0x37adaf('0x78')](function(_0x3dd338){const _0x2f259c=_0x37adaf;if(_0x3dd338)return[_0x3dd338,![]];return db['SmsInteraction'][_0x2f259c('0x7d')](_0x25d333)[_0x2f259c('0x78')](function(_0x1a0bb9){return[_0x1a0bb9,!![]];});});}})[_0x2ee67a('0x78')](function([_0x5b1b8a,_0x968bb2]){const _0x42ab13=_0x2ee67a;return _0x4c3e8d['interaction']=_0x5b1b8a[_0x42ab13('0x35')]({'plain':!![]}),_0x4c3e8d[_0x42ab13('0x6c')][_0x42ab13('0xb7')]=![],_0x968bb2&&(_0x4c3e8d['account']['autoclose']&&_0x4c3e8d[_0x42ab13('0x1d')][_0x42ab13('0x48')]({'id':0x0,'priority':_0x4c3e8d['applications']['length']+0x1,'app':_0x42ab13('0xb6'),'appdata':_0x42ab13('0xb4'),'interval':_0x42ab13('0xa4')}),_0x4c3e8d[_0x42ab13('0x6c')][_0x42ab13('0xb7')]=!![]),db[_0x42ab13('0x83')]['create']({'phone':_0x4c3e8d[_0x42ab13('0x84')]['from'],'messageId':_0x4c3e8d['body'][_0x42ab13('0x5f')],'body':_0x4c3e8d['body'][_0x42ab13('0x84')],'SmsAccountId':_0x162477[_0x42ab13('0xa6')]['id'],'SmsInteractionId':_0x5b1b8a['id'],'direction':'in','ContactId':_0x5b1b8a['ContactId'],'AttachmentId':_0x4c3e8d[_0x42ab13('0x84')][_0x42ab13('0x65')]});})[_0x2ee67a('0x78')](function(_0x574fc6){const _0x2cf6c5=_0x2ee67a;_0x4c3e8d[_0x2cf6c5('0xa1')]=_0x574fc6;if(_0x4c3e8d['interaction']['UserId'])return db[_0x2cf6c5('0xa9')][_0x2cf6c5('0xb9')]({'attributes':['id',_0x2cf6c5('0xa8')],'where':{'id':_0x4c3e8d[_0x2cf6c5('0x6c')][_0x2cf6c5('0x8c')]}})[_0x2cf6c5('0x78')](function(_0x4f528e){const _0xff33ba=_0x2cf6c5;return _0x4f528e&&_0x4c3e8d[_0xff33ba('0x1d')][_0xff33ba('0x88')]({'id':0x0,'priority':0x0,'app':'agent','appdata':_0x4f528e[_0xff33ba('0xa8')]+','+(_0x4c3e8d[_0xff33ba('0x9f')][_0xff33ba('0x3a')]||0xa),'interval':_0xff33ba('0xa4')}),respondWithRpcPromise(_0xff33ba('0x69'),_0xff33ba('0x9a'),_0x4c3e8d);});return respondWithRpcPromise(_0x2cf6c5('0x69'),_0x2cf6c5('0x9a'),_0x4c3e8d);})['then'](function(_0x241d08){const _0x242d88=_0x2ee67a;if(_0x241d08){const _0x50d2df=0xc8,_0x508769='receiveMessage';return logger[_0x242d88('0xab')]('SmsAccount,\x20%s,\x20%s,\x20%s',_0x508769,_0x50d2df,_0x242d88('0x9c')),logger[_0x242d88('0x77')](_0x242d88('0x58'),_0x508769,_0x50d2df,'entity\x20found',JSON['stringify'](_0x241d08)),_0x4c3e8d[_0x242d88('0x9f')][_0x242d88('0x2b')]==='twilio'?_0x5d444a[_0x242d88('0x4e')](_0x50d2df)[_0x242d88('0x2')](_0x242d88('0xa3'),_0x242d88('0x5a'))[_0x242d88('0x4d')](_0x242d88('0x6b')):_0x5d444a[_0x242d88('0x4e')](_0x50d2df)[_0x242d88('0x62')](_0x241d08);}})[_0x2ee67a('0xc3')](handleError(_0x5d444a,null));},exports[_0x114e24('0x61')]=function(_0x44ea6f,_0x583be7){const _0x245cf4=_0x114e24;return db['SmsAccount']['findOne']({'where':{'id':_0x44ea6f[_0x245cf4('0xa6')]['id']}})[_0x245cf4('0x78')](handleEntityNotFound(_0x583be7,null))[_0x245cf4('0x78')](function(_0x46bf0e){const _0x358596=_0x245cf4;if(_0x46bf0e)return db[_0x358596('0x4a')]['transaction'](function(_0x3fb760){const _0x37df5f=_0x358596;return db['SmsApplication'][_0x37df5f('0xbe')]({'where':{'SmsAccountId':_0x44ea6f[_0x37df5f('0xa6')]['id']},'transaction':_0x3fb760})[_0x37df5f('0x78')](function(){const _0x60db87=_0x37df5f,_0x433d75=_[_0x60db87('0x31')](_0x44ea6f['body'],function(_0x119710){const _0x3b39d6=_0x60db87;return _0x119710[_0x3b39d6('0x52')]=_0x44ea6f['params']['id'],_0x119710;});return db[_0x60db87('0x1e')][_0x60db87('0x20')](_0x433d75,{'transaction':_0x3fb760});});})[_0x358596('0x78')](function(){const _0x8ef0a3=_0x358596;return db[_0x8ef0a3('0x1e')][_0x8ef0a3('0xbd')]({'where':{'SmsAccountId':_0x44ea6f[_0x8ef0a3('0xa6')]['id']},'order':'priority'});});})[_0x245cf4('0x78')](respondWithResult(_0x583be7,null))['catch'](handleError(_0x583be7,null));},exports[_0x114e24('0x2f')]=function(_0x1ffac0,_0x45ce96){const _0x3109f9=_0x114e24;let _0x572954={};const _0x46848d={};let _0x2a5d26,_0x48a1f6;return db['SmsAccount'][_0x3109f9('0xb9')]({'where':{'id':_0x1ffac0[_0x3109f9('0xa6')]['id']}})[_0x3109f9('0x78')](handleEntityNotFound(_0x45ce96,null))[_0x3109f9('0x78')](function(_0x51b328){const _0x495803=_0x3109f9;if(_0x51b328)return _0x2a5d26=_0x51b328,_0x46848d['model']=_[_0x495803('0x5b')](db['SmsApplication']['rawAttributes']),_0x46848d[_0x495803('0x74')]=_[_0x495803('0x5b')](_0x1ffac0[_0x495803('0x74')]),_0x46848d[_0x495803('0x0')]=_['intersection'](_0x46848d['model'],_0x46848d[_0x495803('0x74')]),_0x572954['attributes']=_['intersection'](_0x46848d[_0x495803('0x72')],qs[_0x495803('0x28')](_0x1ffac0[_0x495803('0x74')]['fields'])),_0x572954[_0x495803('0x26')]=_0x572954[_0x495803('0x26')][_0x495803('0x36')]?_0x572954[_0x495803('0x26')]:_0x46848d[_0x495803('0x72')],_0x572954[_0x495803('0x4f')]=qs['sort'](_0x1ffac0[_0x495803('0x74')][_0x495803('0xbf')]),_0x572954['where']=qs[_0x495803('0x0')](_[_0x495803('0x29')](_0x1ffac0[_0x495803('0x74')],_0x46848d[_0x495803('0x0')])),_0x1ffac0['query']['filter']&&(_0x572954[_0x495803('0x56')]=_[_0x495803('0x87')](_0x572954[_0x495803('0x56')],{[Op['or']]:_[_0x495803('0x31')](_0x572954[_0x495803('0x26')],function(_0x435b7d){const _0x494c24=_0x495803,_0x81cdb4={};return _0x81cdb4[_0x435b7d]={[Op['like']]:'%'+_0x1ffac0[_0x494c24('0x74')][_0x494c24('0x7f')]+'%'},_0x81cdb4;})})),_0x572954=_[_0x495803('0x87')]({},_0x572954,_0x1ffac0[_0x495803('0x5e')]),_0x2a5d26['getApplications'](_0x572954);})[_0x3109f9('0x78')](function(_0x87423e){const _0xd2049=_0x3109f9;if(_0x87423e)return _0x48a1f6=_0x87423e[_0xd2049('0x36')],typeof _0x1ffac0[_0xd2049('0x74')][_0xd2049('0x13')]===_0xd2049('0x4c')&&(_0x572954['limit']=qs[_0xd2049('0x3e')](_0x1ffac0[_0xd2049('0x74')][_0xd2049('0x3e')]),_0x572954[_0xd2049('0x85')]=qs[_0xd2049('0x85')](_0x1ffac0[_0xd2049('0x74')][_0xd2049('0x85')])),_0x2a5d26[_0xd2049('0x2f')](_0x572954);})[_0x3109f9('0x78')](function(_0x3e742a){if(_0x3e742a)return _0x3e742a?{'count':_0x48a1f6,'rows':_0x3e742a}:null;})[_0x3109f9('0x78')](respondWithResult(_0x45ce96,null))[_0x3109f9('0xc3')](handleError(_0x45ce96,null));},exports['getInteractions']=function(_0x36b939,_0x105a9c){const _0x39388c=_0x114e24;let _0x468545={'raw':![],'where':{}};const _0x3431a1={},_0x3bdb9a={'count':0x0,'rows':[]};return db['SmsAccount']['findOne']({'where':{'id':_0x36b939[_0x39388c('0xa6')]['id']}})['then'](handleEntityNotFound(_0x105a9c,null))[_0x39388c('0x78')](function(_0x2221cf){const _0x2bd0c4=_0x39388c;if(_0x2221cf)return _0x3431a1['model']=_['keys'](db[_0x2bd0c4('0x16')][_0x2bd0c4('0x40')]),_0x3431a1[_0x2bd0c4('0x74')]=_[_0x2bd0c4('0x5b')](_0x36b939['query']),_0x3431a1[_0x2bd0c4('0x0')]=_[_0x2bd0c4('0x96')](_0x3431a1[_0x2bd0c4('0x72')],_0x3431a1[_0x2bd0c4('0x74')]),_0x468545['attributes']=_[_0x2bd0c4('0x96')](_0x3431a1[_0x2bd0c4('0x72')],qs[_0x2bd0c4('0x28')](_0x36b939[_0x2bd0c4('0x74')][_0x2bd0c4('0x28')])),_0x468545[_0x2bd0c4('0x26')]=_0x468545[_0x2bd0c4('0x26')]['length']?_0x468545[_0x2bd0c4('0x26')]:_0x3431a1[_0x2bd0c4('0x72')],typeof _0x36b939[_0x2bd0c4('0x74')][_0x2bd0c4('0x13')]==='undefined'&&(_0x468545[_0x2bd0c4('0x3e')]=qs[_0x2bd0c4('0x3e')](_0x36b939[_0x2bd0c4('0x74')][_0x2bd0c4('0x3e')]),_0x468545['offset']=qs['offset'](_0x36b939[_0x2bd0c4('0x74')][_0x2bd0c4('0x85')])),_0x468545[_0x2bd0c4('0x4f')]=qs['sort'](_0x36b939['query'][_0x2bd0c4('0xbf')]),_0x468545[_0x2bd0c4('0x56')]=qs[_0x2bd0c4('0x0')](_[_0x2bd0c4('0x29')](_0x36b939['query'],_0x3431a1[_0x2bd0c4('0x0')])),_0x468545[_0x2bd0c4('0x56')][_0x2bd0c4('0x52')]=_0x2221cf['id'],_0x36b939[_0x2bd0c4('0x74')]['filter']&&(_0x468545[_0x2bd0c4('0x56')]=_[_0x2bd0c4('0x87')](_0x468545[_0x2bd0c4('0x56')],{[Op['or']]:_['map'](_0x468545[_0x2bd0c4('0x26')],function(_0xbd7ac7){const _0x170c95=_0x2bd0c4,_0x3aeb1d={};return _0x3aeb1d[_0xbd7ac7]={[Op[_0x170c95('0x54')]]:'%'+_0x36b939[_0x170c95('0x74')][_0x170c95('0x7f')]+'%'},_0x3aeb1d;})})),_0x468545=_[_0x2bd0c4('0x87')]({},_0x468545,_0x36b939[_0x2bd0c4('0x5e')]),db['SmsInteraction'][_0x2bd0c4('0x95')]({'where':_0x468545[_0x2bd0c4('0x56')]})[_0x2bd0c4('0x78')](function(_0x562e7b){const _0x1a734a=_0x2bd0c4;return _0x3bdb9a[_0x1a734a('0x95')]=_0x562e7b,_0x36b939[_0x1a734a('0x74')][_0x1a734a('0x75')]&&(_0x468545[_0x1a734a('0x41')]=[{'model':db[_0x1a734a('0x7c')],'as':_0x1a734a('0xad'),'required':![]},{'model':db[_0x1a734a('0xa9')],'as':_0x1a734a('0x21'),'attributes':[_0x1a734a('0xa8'),_0x1a734a('0x38'),'internal'],'required':![]},{'model':db['Tag'],'as':_0x1a734a('0x8'),'attributes':['id',_0x1a734a('0xa8'),_0x1a734a('0x94')],'where':_0x36b939[_0x1a734a('0x74')][_0x1a734a('0x23')]?{'id':_0x36b939['query'][_0x1a734a('0x23')]}:undefined,'required':_0x36b939[_0x1a734a('0x74')]['tag']?!![]:![]}]),db[_0x1a734a('0x16')][_0x1a734a('0x80')](_0x468545);})[_0x2bd0c4('0x78')](function(_0x542fcd){const _0x1687e4=_0x2bd0c4;return _0x3bdb9a[_0x1687e4('0x4b')]=_0x542fcd,_0x3bdb9a;});})[_0x39388c('0x78')](respondWithFilteredResult(_0x105a9c,_0x468545))[_0x39388c('0xc3')](handleError(_0x105a9c,null));},exports['send']=function(_0x2352a7,_0x2833e4){const _0xdcce77=_0x114e24;let _0x18b97c,_0x198659;if(_['isNil'](_0x2352a7[_0xdcce77('0x84')][_0xdcce77('0x84')])||_0x2352a7[_0xdcce77('0x84')][_0xdcce77('0x84')]==='')throw new ValidationError('body\x20is\x20mandatory\x20and\x20not\x20empty');if(_[_0xdcce77('0x1f')](_0x2352a7[_0xdcce77('0x84')]['to']))throw new ValidationError(_0xdcce77('0x7'));const _0xc9b6df=_0x2352a7[_0xdcce77('0x84')]['to'];return db[_0xdcce77('0x8f')]['findOne']({'where':{'id':_0x2352a7[_0xdcce77('0xa6')]['id']},'include':[{'model':db[_0xdcce77('0xb3')],'as':'List','include':[{'model':db['CmContact'],'as':_0xdcce77('0xc0'),'where':{'mobile':_0xc9b6df},'limit':0x1,'order':[[_0xdcce77('0xbc'),_0xdcce77('0x10')]]}]}]})[_0xdcce77('0x78')](handleEntityNotFound(_0x2833e4,null))['then'](function(_0x2773dd){const _0x1c19d4=_0xdcce77;if(_0x2773dd&&_0x2773dd[_0x1c19d4('0x37')]){_0x18b97c=_0x2773dd[_0x1c19d4('0x35')]({'plain':!![]});if(_0x18b97c[_0x1c19d4('0x37')]&&_0x18b97c[_0x1c19d4('0x37')][_0x1c19d4('0xc0')][_0x1c19d4('0x36')])return _0x18b97c[_0x1c19d4('0x37')][_0x1c19d4('0xc0')][0x0];return db[_0x1c19d4('0x7c')][_0x1c19d4('0x7d')](_['defaults'](_0x2352a7[_0x1c19d4('0x84')],{'firstName':_0xc9b6df,'mobile':_0xc9b6df,'phone':_0xc9b6df,'ListId':_0x18b97c[_0x1c19d4('0x59')]}));}})['then'](handleEntityNotFound(_0x2833e4,null))['then'](function(_0x5306a8){const _0x4620e7=_0xdcce77;if(_0x5306a8)return _0x198659=_0x5306a8,db[_0x4620e7('0x16')][_0x4620e7('0xb9')]({'where':{'ContactId':_0x198659['id'],'closed':![],'SmsAccountId':_0x18b97c['id']}})[_0x4620e7('0x78')](function(_0x4f58c3){const _0x4dd89e=_0x4620e7;if(_0x4f58c3)return[_0x4f58c3,![]];return db[_0x4dd89e('0x16')]['create']({'UserId':_0x2352a7[_0x4dd89e('0x92')]['id'],'ContactId':_0x198659['id'],'SmsAccountId':_0x18b97c['id'],'phone':_0xc9b6df,'firstMsgDirection':_0x4dd89e('0xc1'),'Messages':[_[_0x4dd89e('0x87')](_0x2352a7['body'],{'read':![],'body':_0x2352a7[_0x4dd89e('0x84')][_0x4dd89e('0x84')],'phone':_0xc9b6df,'SmsAccountId':_0x18b97c['id'],'UserId':_0x2352a7[_0x4dd89e('0x92')]['id'],'ContactId':_0x198659['id']})]},{'include':[{'model':db['SmsMessage'],'as':_0x4dd89e('0x73')}]})[_0x4dd89e('0x78')](function(_0x5bd0dc){return[_0x5bd0dc,!![]];});});})['then'](function([_0x21cdca,_0x10306b]){const _0x54d8ff=_0xdcce77;if(_0x10306b)return _0x21cdca;return db[_0x54d8ff('0x83')]['create'](_[_0x54d8ff('0x87')](_0x2352a7[_0x54d8ff('0x84')],{'read':![],'body':_0x2352a7[_0x54d8ff('0x84')][_0x54d8ff('0x84')],'phone':_0xc9b6df,'SmsAccountId':_0x18b97c['id'],'SmsInteractionId':_0x21cdca['id'],'UserId':_0x2352a7[_0x54d8ff('0x92')]['id'],'ContactId':_0x198659['id']}))[_0x54d8ff('0x78')](function(_0x14de43){const _0x544588=_0x54d8ff;return _0x21cdca[_0x544588('0x70')]['Messages']=[],_0x21cdca[_0x544588('0x70')][_0x544588('0x73')][_0x544588('0x48')](_0x14de43[_0x544588('0x70')]),_0x21cdca;});})[_0xdcce77('0x78')](respondWithResult(_0x2833e4,null))[_0xdcce77('0xc3')](handleError(_0x2833e4,null));},exports['status']=function(_0x4f4a57,_0x15cd13){const _0x36c749=_0x114e24;_0x4f4a57[_0x36c749('0x84')]['id']&&delete _0x4f4a57[_0x36c749('0x84')]['id'];console[_0x36c749('0xaa')](_0x36c749('0x71'),_0x4f4a57[_0x36c749('0x84')]);let _0x201b9f,_0x5c57f1,_0x12f51f;return db[_0x36c749('0x8f')]['findOne']({'where':{'id':_0x4f4a57[_0x36c749('0xa6')]['id']}})[_0x36c749('0x78')](handleEntityNotFound(_0x15cd13,null))['then'](function(_0x15ccef){const _0x27807f=_0x36c749;if(_0x15ccef){_0x12f51f=_0x15ccef,logger[_0x27807f('0x77')]('SmsAccount,\x20%s,\x20%s,\x20%s',_0x27807f('0x4e'),_0x27807f('0x32'),_0x15ccef[_0x27807f('0x2b')],util['inspect'](_0x4f4a57['body'],{'showHidden':![],'depth':null}));switch(_0x15ccef[_0x27807f('0x2b')]){case _0x27807f('0x50'):if(_0x4f4a57[_0x27807f('0x84')][_0x27807f('0x6e')]&&_0x4f4a57[_0x27807f('0x84')][_0x27807f('0x4e')])return _0x5c57f1=_0x4f4a57[_0x27807f('0x84')][_0x27807f('0x4e')],db[_0x27807f('0x83')][_0x27807f('0xb9')]({'where':{'messageId':_0x4f4a57[_0x27807f('0x84')]['skebby_dispatch_id']}});break;case'connectel':if(_0x4f4a57[_0x27807f('0x84')][_0x27807f('0xb1')]&&_0x4f4a57['body'][_0x27807f('0xb2')])return _0x5c57f1=_0x4f4a57[_0x27807f('0x84')][_0x27807f('0xb2')],db[_0x27807f('0x83')][_0x27807f('0xb9')]({'where':{'messageId':_0x4f4a57[_0x27807f('0x84')][_0x27807f('0xb1')]}});break;case _0x27807f('0x22'):if(_0x4f4a57[_0x27807f('0x84')]['message_id']&&_0x4f4a57['body'][_0x27807f('0x14')])return _0x5c57f1=_0x4f4a57[_0x27807f('0x84')][_0x27807f('0x14')],db[_0x27807f('0x83')][_0x27807f('0xb9')]({'where':{'messageId':_0x4f4a57['body'][_0x27807f('0xba')]}});break;case _0x27807f('0x9e'):{const _0x58c560=_0x4f4a57[_0x27807f('0x84')][_0x27807f('0x1b')][0x0];if(_0x58c560[_0x27807f('0x5f')]&&_0x58c560[_0x27807f('0x4e')][_0x27807f('0x19')]===_0x27807f('0x8b'))return _0x5c57f1=_0x58c560['status'][_0x27807f('0x19')],db[_0x27807f('0x83')][_0x27807f('0xb9')]({'where':{'messageId':_0x58c560['messageId']}});}break;case'clickatell':if(_0x4f4a57['body'][_0x27807f('0x5f')]&&_0x4f4a57[_0x27807f('0x84')][_0x27807f('0x4e')])return _0x5c57f1=_0x4f4a57[_0x27807f('0x84')][_0x27807f('0x4e')],db[_0x27807f('0x83')]['findOne']({'where':{'messageId':_0x4f4a57[_0x27807f('0x84')][_0x27807f('0x5f')]}});break;case'intelepeer':if(_0x4f4a57[_0x27807f('0x84')]['redif']&&_0x4f4a57[_0x27807f('0x84')]['status'])return _0x5c57f1=_0x4f4a57[_0x27807f('0x84')][_0x27807f('0x4e')],db[_0x27807f('0x83')][_0x27807f('0xb9')]({'where':{'messageId':_0x4f4a57[_0x27807f('0x84')][_0x27807f('0x91')]}});break;}}})[_0x36c749('0x78')](handleEntityNotFound(_0x15cd13,null))[_0x36c749('0x78')](function(_0x3c7fd2){const _0x389261=_0x36c749;if(_0x3c7fd2){_0x201b9f=_0x3c7fd2;switch(_0x12f51f['type']){case _0x389261('0x50'):if(_0x5c57f1===_0x389261('0x8b'))return _0x201b9f['update']({'read':!![]});else logger[_0x389261('0x25')](_0x389261('0xa2'),_0x389261('0x4e'),_0x389261('0x50'),util[_0x389261('0x3c')](_0x4f4a57[_0x389261('0x84')],{'showHidden':![],'depth':null}));break;case _0x389261('0x5d'):if(_0x5c57f1==='1')return _0x201b9f[_0x389261('0x1')]({'read':!![]});else logger[_0x389261('0x25')](_0x389261('0xa2'),_0x389261('0x4e'),'skebby',util[_0x389261('0x3c')](_0x4f4a57[_0x389261('0x84')],{'showHidden':![],'depth':null}));break;case'clicksend':if(!_0x4f4a57[_0x389261('0x84')]['error_code']&&_0x5c57f1>=0xc8&&_0x5c57f1<=0xce)return _0x201b9f[_0x389261('0x1')]({'read':!![]});else logger[_0x389261('0x25')]('SmsAccount,\x20%s,\x20%s,\x20%s',_0x389261('0x4e'),_0x389261('0x22'),util[_0x389261('0x3c')](_0x4f4a57[_0x389261('0x84')],{'showHidden':![],'depth':null}));break;case'infobip':{const _0x5ac32a=_0x4f4a57[_0x389261('0x84')][_0x389261('0x1b')][0x0];if(_0x5ac32a[_0x389261('0x4e')][_0x389261('0x19')]==='DELIVERED')return _0x201b9f[_0x389261('0x1')]({'read':!![]});else logger[_0x389261('0x25')](_0x389261('0xa2'),'status','infobip',util[_0x389261('0x3c')](_0x4f4a57[_0x389261('0x84')],{'showHidden':![],'depth':null}));}break;case'clickatell':if(_0x5c57f1==_0x389261('0x1c')||_0x5c57f1=='RECEIVED_BY_RECIPIENT')return _0x201b9f[_0x389261('0x1')]({'read':!![]});else logger['error'](_0x389261('0xa2'),_0x389261('0x4e'),_0x389261('0x33'),util['inspect'](_0x4f4a57[_0x389261('0x84')],{'showHidden':![],'depth':null}));break;case'intelepeer':if(_0x5c57f1==='DELIVRD'||_0x5c57f1===_0x389261('0x46'))return _0x201b9f['update']({'read':!![]});else logger[_0x389261('0x25')](_0x389261('0xa2'),_0x389261('0x4e'),_0x389261('0x15'),util[_0x389261('0x3c')](_0x4f4a57[_0x389261('0x84')],{'showHidden':![],'depth':null}));break;}return _0x201b9f;}})[_0x36c749('0x78')](respondWithResult(_0x15cd13,null))[_0x36c749('0xc3')](handleError(_0x15cd13,null));},exports['statusGet']=function(_0x5a77ac,_0x1d2850){const _0xaf41ee=_0x114e24;let _0x167966,_0x129056,_0x3dd90b;return db[_0xaf41ee('0x8f')][_0xaf41ee('0xb9')]({'where':{'id':_0x5a77ac[_0xaf41ee('0xa6')]['id']}})['then'](handleEntityNotFound(_0x1d2850,null))[_0xaf41ee('0x78')](function(_0x4991a3){const _0x3e65e4=_0xaf41ee;if(_0x4991a3){_0x3dd90b=_0x4991a3,logger[_0x3e65e4('0x77')](_0x3e65e4('0xa2'),_0x3e65e4('0x4e'),_0x3e65e4('0x32'),_0x4991a3[_0x3e65e4('0x2b')],util['inspect'](_0x5a77ac[_0x3e65e4('0x74')],{'showHidden':![],'depth':null}));switch(_0x4991a3[_0x3e65e4('0x2b')]){case _0x3e65e4('0x99'):if(_0x5a77ac[_0x3e65e4('0x74')][_0x3e65e4('0x97')]&&_0x5a77ac[_0x3e65e4('0x74')]['state'])return _0x129056=_0x5a77ac['query']['state'],db[_0x3e65e4('0x83')]['findOne']({'where':{'messageId':_0x5a77ac[_0x3e65e4('0x74')]['message-id']}});break;}}})[_0xaf41ee('0x78')](handleEntityNotFound(_0x1d2850,null))[_0xaf41ee('0x78')](function(_0x13a272){const _0x267405=_0xaf41ee;if(_0x13a272){_0x167966=_0x13a272;switch(_0x3dd90b['type']){case _0x267405('0x99'):if(_0x129056==='2'||_0x129056==='6')return _0x167966[_0x267405('0x1')]({'read':!![]});else logger[_0x267405('0x25')]('SmsAccount,\x20%s,\x20%s,\x20%s',_0x267405('0x4e'),_0x267405('0x99'),util['inspect'](_0x5a77ac[_0x267405('0x74')],{'showHidden':![],'depth':null}));break;}return _0x167966;}})['then'](respondWithResult(_0x1d2850,null))[_0xaf41ee('0xc3')](handleError(_0x1d2850,null));},exports[_0x114e24('0xac')]=function(_0x1a984b,_0x1a3de2){const _0x38559b=_0x114e24;return db['SmsAccount'][_0x38559b('0xb9')]({'where':{'id':_0x1a984b[_0x38559b('0xa6')]['id']}})[_0x38559b('0x78')](function(_0x32e4bc){const _0xca290=_0x38559b;if(_0x32e4bc)return _0x32e4bc[_0xca290('0xac')](_0x1a984b[_0xca290('0x84')][_0xca290('0x11')],{'through':_[_0xca290('0x2d')](_0x1a984b['body'],[_0xca290('0x11'),'id'])})['then'](function(_0x47eb50){const _0x434e37=_0xca290;for(let _0x4b842d=0x0;_0x4b842d<_0x1a984b[_0x434e37('0x84')]['ids']['length'];_0x4b842d+=0x1){socket[_0x434e37('0x39')](_0x434e37('0x49'),{'UserId':_0x1a984b[_0x434e37('0x84')]['ids'][_0x4b842d],'SmsAccountId':_0x1a984b[_0x434e37('0xa6')]['id']});}return _0x47eb50;});})['then'](respondWithResult(_0x1a3de2,null))[_0x38559b('0xc3')](handleError(_0x1a3de2,null));},exports[_0x114e24('0x2c')]=function(_0x5a1acc,_0x2e4f98){const _0x11efee=_0x114e24;return db[_0x11efee('0x8f')][_0x11efee('0xb9')]({'where':{'id':_0x5a1acc[_0x11efee('0xa6')]['id']}})[_0x11efee('0x78')](handleEntityNotFound(_0x2e4f98,null))[_0x11efee('0x78')](function(_0x3c0186){const _0x147542=_0x11efee;if(_0x3c0186)return _0x3c0186['removeAgents'](_0x5a1acc[_0x147542('0x74')]['ids'])['then'](function(){const _0x1a6232=_0x147542;if(_[_0x1a6232('0x3d')](_0x5a1acc[_0x1a6232('0x74')][_0x1a6232('0x11')]))for(let _0x540db4=0x0;_0x540db4<_0x5a1acc[_0x1a6232('0x74')][_0x1a6232('0x11')][_0x1a6232('0x36')];_0x540db4+=0x1){socket['emit'](_0x1a6232('0xc'),{'UserId':Number(_0x5a1acc[_0x1a6232('0x74')][_0x1a6232('0x11')][_0x540db4]),'SmsAccountId':Number(_0x5a1acc[_0x1a6232('0xa6')]['id'])});}else socket['emit'](_0x1a6232('0xc'),{'UserId':Number(_0x5a1acc[_0x1a6232('0x74')][_0x1a6232('0x11')]),'SmsAccountId':Number(_0x5a1acc['params']['id'])});});})[_0x11efee('0x78')](respondWithStatusCode(_0x2e4f98,null))[_0x11efee('0xc3')](handleError(_0x2e4f98,null));},exports[_0x114e24('0x45')]=function(_0x2d431e,_0x1eccee){const _0x3dffa0=_0x114e24;let _0x89575b={};const _0x309ab2={};let _0x4a65c2,_0x19e99;return db[_0x3dffa0('0x8f')][_0x3dffa0('0xb9')]({'where':{'id':_0x2d431e[_0x3dffa0('0xa6')]['id']}})[_0x3dffa0('0x78')](handleEntityNotFound(_0x1eccee,null))[_0x3dffa0('0x78')](function(_0x198e1b){const _0x52aa73=_0x3dffa0;if(_0x198e1b)return _0x4a65c2=_0x198e1b,_0x309ab2[_0x52aa73('0x72')]=_[_0x52aa73('0x5b')](db['User'][_0x52aa73('0x40')]),_0x309ab2['query']=_[_0x52aa73('0x5b')](_0x2d431e[_0x52aa73('0x74')]),_0x309ab2[_0x52aa73('0x0')]=_[_0x52aa73('0x96')](_0x309ab2['model'],_0x309ab2[_0x52aa73('0x74')]),_0x89575b[_0x52aa73('0x26')]=_[_0x52aa73('0x96')](_0x309ab2[_0x52aa73('0x72')],qs[_0x52aa73('0x28')](_0x2d431e[_0x52aa73('0x74')]['fields'])),_0x89575b[_0x52aa73('0x26')]=_0x89575b[_0x52aa73('0x26')]['length']?_0x89575b[_0x52aa73('0x26')]:_0x309ab2[_0x52aa73('0x72')],_0x89575b['order']=qs[_0x52aa73('0xbf')](_0x2d431e[_0x52aa73('0x74')][_0x52aa73('0xbf')]),_0x89575b[_0x52aa73('0x56')]=qs['filters'](_['pick'](_0x2d431e[_0x52aa73('0x74')],_0x309ab2['filters'])),_0x2d431e[_0x52aa73('0x74')]['filter']&&(_0x89575b[_0x52aa73('0x56')]=_['merge'](_0x89575b[_0x52aa73('0x56')],{[Op['or']]:_[_0x52aa73('0x31')](_0x89575b[_0x52aa73('0x26')],function(_0x1e9b73){const _0x49bdfa=_0x52aa73,_0x5e7ec9={};return _0x5e7ec9[_0x1e9b73]={[Op[_0x49bdfa('0x54')]]:'%'+_0x2d431e[_0x49bdfa('0x74')][_0x49bdfa('0x7f')]+'%'},_0x5e7ec9;})})),_0x89575b=_[_0x52aa73('0x87')]({},_0x89575b,_0x2d431e[_0x52aa73('0x5e')]),_0x4a65c2['getAgents'](_0x89575b);})['then'](function(_0x59acac){const _0x192f9d=_0x3dffa0;if(_0x59acac)return _0x19e99=_0x59acac[_0x192f9d('0x36')],typeof _0x2d431e[_0x192f9d('0x74')][_0x192f9d('0x13')]===_0x192f9d('0x4c')&&(_0x89575b['limit']=qs[_0x192f9d('0x3e')](_0x2d431e[_0x192f9d('0x74')]['limit']),_0x89575b['offset']=qs[_0x192f9d('0x85')](_0x2d431e[_0x192f9d('0x74')][_0x192f9d('0x85')])),_0x4a65c2[_0x192f9d('0x45')](_0x89575b);})[_0x3dffa0('0x78')](function(_0x5d4bbb){if(_0x5d4bbb)return _0x5d4bbb?{'count':_0x19e99,'rows':_0x5d4bbb}:null;})[_0x3dffa0('0x78')](respondWithResult(_0x1eccee,null))[_0x3dffa0('0xc3')](handleError(_0x1eccee,null));}; \ No newline at end of file +const a650_0x340f=['Disposition','color','Content-Range','SmsMessage','addAgents','body','Applications','CmList','attributes','userSmsAccount:remove','body\x20is\x20mandatory\x20and\x20not\x20empty','asc','CompanyId','receiveMessage','agent','pick','describe','results','isArray','getAnswers','tag','replyMessageId','params','waitForTheAssignedAgent','removeDispositions','end','filters','SmsAccount,\x20%s,\x20%s,\x20%s','sms','status','then','length','where','Messages','segmentedMessage','getInteractions','json','Start','SmsAccountId','Pause','omit','ListId','map','update','statusGet','List','index','create','createdAt','status_code','message_id','groupName','mandatoryDispositionPause','undefined','updatedAt','includes','defaults','state','close','sort','UserProfileResource','request\x20sent','SmsAccounts','role','ContactId','findAll','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','../../components/parsers/qs','RECEIVED_BY_RECIPIENT','Content-Type','no\x20available\x20attributes','notify','DELIVRD','Contacts','refid','log','query','statusInt','like','Tags','transaction','catch','includeAll','clicksend','messageId','sendStatus','to\x20is\x20mandatory','merge','intelepeer','getApplications','inspect','infobip','MessageUUID','lodash','dataValues','originatingAddress','mapKey','text','SmsAccount','Contact','debug','stack','client','From','getDispositions','../../rediscache','AttachmentId','mobile','skebby_dispatch_id','fromNumber','Owner','redif','User','push','destroy','orderBy','contact','SmsApplication','sequelize','include','util','created','register','set','get','api','connectel','DELIVERED','plivo','MessageSid','error','removeAnswers','DELIVERED_TO_GATEWAY','*,*,*,*','findAndCountAll','unmanaged','offset','limit','startRouting','type','keys','send','userProfileId','result','isNil','nolimit','SmsInteraction','order','VIRTUAL','Tag','filter','info','addDisposition','clickatell','message','entity\x20found','priority','name','getAgents','ACCEPTD','./smsAccount.socket','rawAttributes','ids','received\x20delivery\x20report\x20from','http','csc','stringify','message-id','DESC','request','userSmsAccount:save','applications','CmContact','CannedAnswer','options','internal','UserId','model','key','user','account','findOne','skebby','twilio','SmsAccount,\x20%s,\x20%s','\x0a','mapKey\x20is\x20mandatory,\x20please\x20use\x20one\x20of\x20these:\x20','rows','emit','fields','intersection','requestid','interaction','autoAssociation','text/xml','from','endpoint\x20/status\x20POST\x20/','sender','removeAgents','count'];(function(_0x3cf69e,_0xa339df){const _0x340fa5=function(_0x36ddc1){while(--_0x36ddc1){_0x3cf69e['push'](_0x3cf69e['shift']());}};_0x340fa5(++_0xa339df);}(a650_0x340f,0xe4));const a650_0x36dd=function(_0x3cf69e,_0xa339df){_0x3cf69e=_0x3cf69e-0x142;let _0x340fa5=a650_0x340f[_0x3cf69e];return _0x340fa5;};const a650_0x3dc5ca=a650_0x36dd;'use strict';const util=require(a650_0x3dc5ca(0x19e)),_=require(a650_0x3dc5ca(0x183)),qs=require(a650_0x3dc5ca(0x169)),logger=require('../../config/logger')(a650_0x3dc5ca(0x1a3)),{getSocket}=require(a650_0x3dc5ca(0x18f)),socket=getSocket(),{db}=require('../../mysqldb'),{Op,ValidationError}=require(a650_0x3dc5ca(0x19c));require(a650_0x3dc5ca(0x1c6))[a650_0x3dc5ca(0x1a0)](socket);const jayson=require('jayson/promise'),client=jayson[a650_0x3dc5ca(0x18c)][a650_0x3dc5ca(0x1ca)]({'port':0x232c});function respondWithRpcPromise(_0x260c68,_0x4e6b3d,_0x4b4573,_0x3b2d0b){return new Promise(function(_0x288cf0,_0x589962){const _0x131216=a650_0x36dd,_0x4ed15d=_0x3b2d0b||client;return _0x4ed15d[_0x131216(0x1cf)](_0x260c68,_0x4b4573)[_0x131216(0x144)](function(_0x3af448){const _0x2aa08c=_0x131216;logger[_0x2aa08c(0x1bd)](_0x2aa08c(0x1de),_0x4e6b3d,_0x2aa08c(0x163)),logger[_0x2aa08c(0x18a)](_0x2aa08c(0x209),_0x4e6b3d,_0x2aa08c(0x163),JSON[_0x2aa08c(0x1cc)](_0x3af448));if(_0x3af448[_0x2aa08c(0x1a8)]){if(_0x3af448[_0x2aa08c(0x1a8)]['code']===0x1f4)return logger[_0x2aa08c(0x1a8)](_0x2aa08c(0x1de),_0x4e6b3d,_0x3af448[_0x2aa08c(0x1a8)][_0x2aa08c(0x1c0)]),_0x589962(_0x3af448[_0x2aa08c(0x1a8)]['message']);return logger['error'](_0x2aa08c(0x1de),_0x4e6b3d,_0x3af448['error'][_0x2aa08c(0x1c0)]),_0x288cf0(_0x3af448['error'][_0x2aa08c(0x1c0)]);}else logger[_0x2aa08c(0x1bd)](_0x2aa08c(0x1de),_0x4e6b3d,'request\x20sent'),_0x288cf0(_0x3af448[_0x2aa08c(0x1b5)][_0x2aa08c(0x1c0)]);})[_0x131216(0x177)](function(_0x579cfb){const _0x31e87b=_0x131216;logger[_0x31e87b(0x1a8)]('SmsAccount,\x20%s,\x20%s',_0x4e6b3d,_0x579cfb),_0x589962(_0x579cfb);});});}function respondWithStatusCode(_0x567e7e,_0x393d0c){return _0x393d0c=_0x393d0c||0xcc,function(_0x2ff83c){const _0x5beee6=a650_0x36dd;if(_0x2ff83c)return _0x567e7e['sendStatus'](_0x393d0c);return _0x567e7e['status'](_0x393d0c)[_0x5beee6(0x207)]();};}function respondWithResult(_0x5d94b2,_0x32f033){return _0x32f033=_0x32f033||0xc8,function(_0xd368e9){if(_0xd368e9)return _0x5d94b2['status'](_0x32f033)['json'](_0xd368e9);};}function respondWithFilteredResult(_0x280289,_0x20ce11){return function(_0x334ec9){const _0x3ba3c5=a650_0x36dd;if(_0x334ec9){const _0x3b83b2=_0x334ec9[_0x3ba3c5(0x1ed)],_0xdbd7e=_0x20ce11[_0x3ba3c5(0x1ae)];let _0x3d9675=_0x20ce11['offset']+_0x20ce11['limit'],_0x11eb7e;return _0x3d9675>=_0x3b83b2?(_0x3d9675=_0x3b83b2,_0x11eb7e=0xc8):_0x11eb7e=0xce,_0x280289[_0x3ba3c5(0x143)](_0x11eb7e),_0x280289['set'](_0x3ba3c5(0x1f0),_0xdbd7e+'-'+_0x3d9675+'/'+_0x3b83b2)[_0x3ba3c5(0x14a)](_0x334ec9);}return null;};}function saveUpdates(_0x49eb4e){return function(_0x3c4ab8){const _0x34642a=a650_0x36dd;if(_0x3c4ab8)return _0x3c4ab8[_0x34642a(0x151)](_0x49eb4e)[_0x34642a(0x144)](function(_0xc2b932){return _0xc2b932;});return null;};}function removeEntity(_0x2756ed){return function(_0xbc2f4b){const _0x2833e3=a650_0x36dd;if(_0xbc2f4b)return _0xbc2f4b[_0x2833e3(0x198)]()[_0x2833e3(0x144)](function(){const _0xb398cd=_0x2833e3,_0x1791e3=_0xbc2f4b[_0xb398cd(0x1a2)]({'plain':!![]}),_0x1efd16=_0xb398cd(0x164);return db['UserProfileResource']['destroy']({'where':{'type':_0x1efd16,'resourceId':_0x1791e3['id']}})[_0xb398cd(0x144)](function(){return _0xbc2f4b;});})['then'](function(){const _0x24b9e3=_0x2833e3;_0x2756ed[_0x24b9e3(0x143)](0xcc)[_0x24b9e3(0x207)]();});};}function handleEntityNotFound(_0x1d7169){return function(_0x51a2f0){const _0x482b2f=a650_0x36dd;return!_0x51a2f0&&_0x1d7169[_0x482b2f(0x17b)](0x194),_0x51a2f0;};}function handleError(_0x1bf1d1,_0x3f2d9d){return _0x3f2d9d=_0x3f2d9d||0x1f4,function(_0x5090ae){const _0x2e16ba=a650_0x36dd;logger[_0x2e16ba(0x1a8)](_0x5090ae[_0x2e16ba(0x18b)]),_0x5090ae['name']&&delete _0x5090ae['name'],_0x1bf1d1[_0x2e16ba(0x143)](_0x3f2d9d)[_0x2e16ba(0x1b3)](_0x5090ae);};}exports[a650_0x3dc5ca(0x154)]=function(_0x5a9c44,_0x28fb00){const _0x16b4a5=a650_0x3dc5ca;let _0x11b732={'include':[{'model':db[_0x16b4a5(0x14d)],'as':_0x16b4a5(0x15a)}]};const _0x4f2666={},_0x2cfb80={'count':0x0,'rows':[]},_0x50082a=_[_0x16b4a5(0x150)](db['SmsAccount'][_0x16b4a5(0x1c7)],function(_0x2ecb3b){const _0xa2291d=_0x16b4a5;return{'name':_0x2ecb3b['fieldName'],'type':_0x2ecb3b['type'][_0xa2291d(0x1d8)]};});_0x4f2666['model']=_[_0x16b4a5(0x150)](_0x50082a,_0x16b4a5(0x1c3)),_0x4f2666[_0x16b4a5(0x172)]=_['keys'](_0x5a9c44[_0x16b4a5(0x172)]),_0x4f2666[_0x16b4a5(0x208)]=_[_0x16b4a5(0x1e4)](_0x4f2666[_0x16b4a5(0x1d7)],_0x4f2666[_0x16b4a5(0x172)]),_0x11b732['attributes']=_[_0x16b4a5(0x1e4)](_0x4f2666['model'],qs[_0x16b4a5(0x1e3)](_0x5a9c44[_0x16b4a5(0x172)][_0x16b4a5(0x1e3)])),_0x11b732[_0x16b4a5(0x1f6)]=_0x11b732[_0x16b4a5(0x1f6)][_0x16b4a5(0x145)]?_0x11b732[_0x16b4a5(0x1f6)]:_0x4f2666[_0x16b4a5(0x1d7)];typeof _0x5a9c44['query'][_0x16b4a5(0x1b7)]==='undefined'&&(_0x11b732[_0x16b4a5(0x1af)]=qs[_0x16b4a5(0x1af)](_0x5a9c44[_0x16b4a5(0x172)][_0x16b4a5(0x1af)]),_0x11b732[_0x16b4a5(0x1ae)]=qs[_0x16b4a5(0x1ae)](_0x5a9c44[_0x16b4a5(0x172)]['offset']));_0x11b732[_0x16b4a5(0x1b9)]=qs[_0x16b4a5(0x161)](_0x5a9c44[_0x16b4a5(0x172)][_0x16b4a5(0x161)]),_0x11b732['where']=qs[_0x16b4a5(0x208)](_['pick'](_0x5a9c44[_0x16b4a5(0x172)],_0x4f2666[_0x16b4a5(0x208)]),_0x50082a);_0x5a9c44[_0x16b4a5(0x172)]['filter']&&(_0x11b732[_0x16b4a5(0x146)]=_['merge'](_0x11b732[_0x16b4a5(0x146)],{[Op['or']]:_['map'](_0x50082a,function(_0x4e30aa){const _0x159ab6=_0x16b4a5;if(_0x4e30aa['type']!==_0x159ab6(0x1ba)){const _0x4bbbae={};return _0x4bbbae[_0x4e30aa[_0x159ab6(0x1c3)]]={[Op[_0x159ab6(0x174)]]:'%'+_0x5a9c44[_0x159ab6(0x172)][_0x159ab6(0x1bc)]+'%'},_0x4bbbae;}})}));_0x11b732=_[_0x16b4a5(0x17d)]({},_0x11b732,_0x5a9c44[_0x16b4a5(0x1d4)]);const _0x384cd4={'where':_0x11b732['where']};return db[_0x16b4a5(0x188)][_0x16b4a5(0x1ed)](_0x384cd4)['then'](function(_0x352fb7){const _0x461f86=_0x16b4a5;return _0x2cfb80[_0x461f86(0x1ed)]=_0x352fb7,_0x5a9c44[_0x461f86(0x172)][_0x461f86(0x178)]&&(_0x11b732['include']=[{'all':!![]}]),db[_0x461f86(0x188)][_0x461f86(0x167)](_0x11b732);})['then'](function(_0x23f430){const _0x183feb=_0x16b4a5;return _0x2cfb80[_0x183feb(0x1e1)]=_0x23f430,_0x2cfb80;})['then'](respondWithFilteredResult(_0x28fb00,_0x11b732))[_0x16b4a5(0x177)](handleError(_0x28fb00,null));},exports['show']=function(_0x2995cf,_0x1310c0){const _0x9519e6=a650_0x3dc5ca;let _0x1ad85b={'raw':![],'where':{'id':_0x2995cf[_0x9519e6(0x204)]['id']},'include':[{'model':db[_0x9519e6(0x14d)],'as':_0x9519e6(0x15a)}]};const _0x4a1fbe={};return _0x4a1fbe[_0x9519e6(0x1d7)]=_[_0x9519e6(0x1b2)](db[_0x9519e6(0x188)][_0x9519e6(0x1c7)]),_0x4a1fbe[_0x9519e6(0x172)]=_['keys'](_0x2995cf[_0x9519e6(0x172)]),_0x4a1fbe['filters']=_[_0x9519e6(0x1e4)](_0x4a1fbe[_0x9519e6(0x1d7)],_0x4a1fbe[_0x9519e6(0x172)]),_0x1ad85b[_0x9519e6(0x1f6)]=_[_0x9519e6(0x1e4)](_0x4a1fbe[_0x9519e6(0x1d7)],qs['fields'](_0x2995cf['query'][_0x9519e6(0x1e3)])),_0x1ad85b['attributes']=_0x1ad85b[_0x9519e6(0x1f6)][_0x9519e6(0x145)]?_0x1ad85b[_0x9519e6(0x1f6)]:_0x4a1fbe[_0x9519e6(0x1d7)],_0x2995cf['query']['includeAll']&&(_0x1ad85b[_0x9519e6(0x19d)]=[{'all':!![]}]),_0x1ad85b=_[_0x9519e6(0x17d)]({},_0x1ad85b,_0x2995cf['options']),db[_0x9519e6(0x188)][_0x9519e6(0x1db)](_0x1ad85b)[_0x9519e6(0x144)](handleEntityNotFound(_0x1310c0,null))[_0x9519e6(0x144)](respondWithResult(_0x1310c0,null))[_0x9519e6(0x177)](handleError(_0x1310c0,null));},exports[a650_0x3dc5ca(0x155)]=function(_0x3cf441,_0x3d6f83){const _0x5ac54b=a650_0x3dc5ca;return db[_0x5ac54b(0x188)][_0x5ac54b(0x155)](_0x3cf441[_0x5ac54b(0x1f3)],{})[_0x5ac54b(0x144)](function(_0x343896){const _0x168302=_0x5ac54b,_0x43a124=_0x3cf441[_0x168302(0x1d9)][_0x168302(0x1a2)]({'plain':!![]});if(!_0x43a124)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x43a124[_0x168302(0x165)]===_0x168302(0x1d9)){const _0x2bc903=_0x343896['get']({'plain':!![]}),_0x57429b=_0x168302(0x164);return db['UserProfileSection']['findOne']({'where':{'name':_0x57429b,'userProfileId':_0x43a124[_0x168302(0x1b4)]},'raw':!![]})[_0x168302(0x144)](function(_0x5d7393){const _0x410cfa=_0x168302;return _0x5d7393&&_0x5d7393[_0x410cfa(0x1e7)]===0x0?db[_0x410cfa(0x162)]['create']({'name':_0x2bc903[_0x410cfa(0x1c3)],'resourceId':_0x2bc903['id'],'type':_0x5d7393[_0x410cfa(0x1c3)],'sectionId':_0x5d7393['id']},{})[_0x410cfa(0x144)](function(){return _0x343896;}):_0x343896;})[_0x168302(0x177)](function(_0xc90173){const _0x4e7d92=_0x168302;logger[_0x4e7d92(0x1a8)](_0x4e7d92(0x168),_0xc90173);throw _0xc90173;});}return _0x343896;})[_0x5ac54b(0x144)](respondWithResult(_0x3d6f83,0xc9))['catch'](handleError(_0x3d6f83,null));},exports[a650_0x3dc5ca(0x151)]=function(_0x3a5fef,_0x5b5cb2){const _0x1021ec=a650_0x3dc5ca;return _0x3a5fef[_0x1021ec(0x1f3)]['id']&&delete _0x3a5fef[_0x1021ec(0x1f3)]['id'],db['SmsAccount'][_0x1021ec(0x1db)]({'where':{'id':_0x3a5fef[_0x1021ec(0x204)]['id']},'include':[{'model':db[_0x1021ec(0x14d)],'as':_0x1021ec(0x15a)}]})['then'](handleEntityNotFound(_0x5b5cb2,null))['then'](saveUpdates(_0x3a5fef[_0x1021ec(0x1f3)],null))[_0x1021ec(0x144)](respondWithResult(_0x5b5cb2,null))['catch'](handleError(_0x5b5cb2,null));},exports['destroy']=function(_0x34ef91,_0x5e38c8){const _0x26a7de=a650_0x3dc5ca;return db['SmsAccount'][_0x26a7de(0x1db)]({'where':{'id':_0x34ef91[_0x26a7de(0x204)]['id']}})[_0x26a7de(0x144)](handleEntityNotFound(_0x5e38c8,null))[_0x26a7de(0x144)](removeEntity(_0x5e38c8,null))[_0x26a7de(0x177)](handleError(_0x5e38c8,null));},exports['describe']=function(_0x246328,_0x5be6e1){const _0x311a26=a650_0x3dc5ca;return db[_0x311a26(0x188)][_0x311a26(0x1fe)]()[_0x311a26(0x144)](respondWithResult(_0x5be6e1,null))['catch'](handleError(_0x5be6e1,null));},exports[a650_0x3dc5ca(0x1be)]=function(_0x58e78b,_0x23c075){const _0x2a4907=a650_0x3dc5ca;return _0x58e78b[_0x2a4907(0x1f3)]['id']&&delete _0x58e78b[_0x2a4907(0x1f3)]['id'],db[_0x2a4907(0x188)]['findOne']({'where':{'id':_0x58e78b['params']['id']}})[_0x2a4907(0x144)](handleEntityNotFound(_0x23c075,null))['then'](function(_0x317f07){const _0x5d0fb6=_0x2a4907;if(_0x317f07)return _0x58e78b[_0x5d0fb6(0x1f3)]['SmsAccountId']=_0x317f07['id'],db['Disposition'][_0x5d0fb6(0x155)](_0x58e78b['body']);})[_0x2a4907(0x144)](respondWithResult(_0x23c075,null))[_0x2a4907(0x177)](handleError(_0x23c075,null));},exports[a650_0x3dc5ca(0x18e)]=function(_0x33f891,_0x2ad011){const _0x1d9782=a650_0x3dc5ca;let _0x4a43c0={'raw':![],'where':{}};const _0x293dd8={},_0x127b8b={'count':0x0,'rows':[]};return db[_0x1d9782(0x188)][_0x1d9782(0x1db)]({'where':{'id':_0x33f891['params']['id']}})['then'](handleEntityNotFound(_0x2ad011,null))[_0x1d9782(0x144)](function(_0x480c85){const _0x430850=_0x1d9782;if(_0x480c85)return _0x293dd8[_0x430850(0x1d7)]=_[_0x430850(0x1b2)](db['Disposition']['rawAttributes']),_0x293dd8['query']=_[_0x430850(0x1b2)](_0x33f891[_0x430850(0x172)]),_0x293dd8[_0x430850(0x208)]=_['intersection'](_0x293dd8[_0x430850(0x1d7)],_0x293dd8['query']),_0x4a43c0['attributes']=_[_0x430850(0x1e4)](_0x293dd8[_0x430850(0x1d7)],qs[_0x430850(0x1e3)](_0x33f891[_0x430850(0x172)][_0x430850(0x1e3)])),_0x4a43c0['attributes']=_0x4a43c0[_0x430850(0x1f6)][_0x430850(0x145)]?_0x4a43c0[_0x430850(0x1f6)]:_0x293dd8[_0x430850(0x1d7)],typeof _0x33f891['query']['nolimit']==='undefined'&&(_0x4a43c0[_0x430850(0x1af)]=qs['limit'](_0x33f891[_0x430850(0x172)][_0x430850(0x1af)]),_0x4a43c0['offset']=qs[_0x430850(0x1ae)](_0x33f891[_0x430850(0x172)][_0x430850(0x1ae)])),_0x4a43c0[_0x430850(0x1b9)]=qs[_0x430850(0x161)](_0x33f891[_0x430850(0x172)][_0x430850(0x161)]),_0x4a43c0[_0x430850(0x146)]=qs[_0x430850(0x208)](_['pick'](_0x33f891[_0x430850(0x172)],_0x293dd8[_0x430850(0x208)])),_0x4a43c0[_0x430850(0x146)]['SmsAccountId']=_0x480c85['id'],_0x33f891[_0x430850(0x172)]['filter']&&(_0x4a43c0['where']=_[_0x430850(0x17d)](_0x4a43c0[_0x430850(0x146)],{[Op['or']]:_[_0x430850(0x150)](_0x4a43c0[_0x430850(0x1f6)],function(_0x3d8314){const _0x275518=_0x430850,_0x519d73={};return _0x519d73[_0x3d8314]={[Op['like']]:'%'+_0x33f891[_0x275518(0x172)][_0x275518(0x1bc)]+'%'},_0x519d73;})})),_0x4a43c0=_[_0x430850(0x17d)]({},_0x4a43c0,_0x33f891[_0x430850(0x1d4)]),db[_0x430850(0x1ee)][_0x430850(0x1ed)]({'where':_0x4a43c0[_0x430850(0x146)]})['then'](function(_0x325c25){const _0x33941c=_0x430850;return _0x127b8b[_0x33941c(0x1ed)]=_0x325c25,_0x33f891['query'][_0x33941c(0x178)]&&(_0x4a43c0[_0x33941c(0x19d)]=[{'all':!![]}]),db[_0x33941c(0x1ee)][_0x33941c(0x167)](_0x4a43c0);})[_0x430850(0x144)](function(_0x230963){const _0x45891f=_0x430850;return _0x127b8b[_0x45891f(0x1e1)]=_0x230963,_0x127b8b;});})['then'](respondWithFilteredResult(_0x2ad011,_0x4a43c0))[_0x1d9782(0x177)](handleError(_0x2ad011,null));},exports[a650_0x3dc5ca(0x206)]=function(_0x4403f7,_0x53141d){const _0xaac31d=a650_0x3dc5ca;return db[_0xaac31d(0x188)][_0xaac31d(0x1db)]({'where':{'id':_0x4403f7['params']['id']}})[_0xaac31d(0x144)](handleEntityNotFound(_0x53141d,null))[_0xaac31d(0x144)](function(_0x23c7e7){const _0x480614=_0xaac31d;if(_0x23c7e7)return _0x23c7e7[_0x480614(0x206)](_0x4403f7['query']['ids']);})[_0xaac31d(0x144)](respondWithStatusCode(_0x53141d,null))['catch'](handleError(_0x53141d,null));},exports['addAnswer']=function(_0x54a842,_0x3aed89){const _0x5c3d00=a650_0x3dc5ca;return _0x54a842[_0x5c3d00(0x1f3)]['id']&&delete _0x54a842[_0x5c3d00(0x1f3)]['id'],db[_0x5c3d00(0x188)][_0x5c3d00(0x1db)]({'where':{'id':_0x54a842[_0x5c3d00(0x204)]['id']}})[_0x5c3d00(0x144)](handleEntityNotFound(_0x3aed89,null))[_0x5c3d00(0x144)](function(_0x125c75){const _0x22e862=_0x5c3d00;if(_0x125c75)return _0x54a842['body'][_0x22e862(0x14c)]=_0x125c75['id'],db['CannedAnswer']['create'](_0x54a842['body']);})[_0x5c3d00(0x144)](respondWithResult(_0x3aed89,null))[_0x5c3d00(0x177)](handleError(_0x3aed89,null));},exports[a650_0x3dc5ca(0x201)]=function(_0xdbb6cd,_0x13c5a4){const _0x4b5b03=a650_0x3dc5ca;let _0x5dff5e={'raw':![],'where':{}};const _0x4a05b3={},_0x59a6b2={'count':0x0,'rows':[]};return db[_0x4b5b03(0x188)]['findOne']({'where':{'id':_0xdbb6cd[_0x4b5b03(0x204)]['id']}})[_0x4b5b03(0x144)](handleEntityNotFound(_0x13c5a4,null))[_0x4b5b03(0x144)](function(_0x4e9697){const _0x30939b=_0x4b5b03;if(_0x4e9697)return _0x4a05b3[_0x30939b(0x1d7)]=_[_0x30939b(0x1b2)](db[_0x30939b(0x1d3)][_0x30939b(0x1c7)]),_0x4a05b3['query']=_[_0x30939b(0x1b2)](_0xdbb6cd[_0x30939b(0x172)]),_0x4a05b3[_0x30939b(0x208)]=_['intersection'](_0x4a05b3[_0x30939b(0x1d7)],_0x4a05b3[_0x30939b(0x172)]),_0x5dff5e[_0x30939b(0x1f6)]=_[_0x30939b(0x1e4)](_0x4a05b3[_0x30939b(0x1d7)],qs[_0x30939b(0x1e3)](_0xdbb6cd['query'][_0x30939b(0x1e3)])),_0x5dff5e[_0x30939b(0x1f6)]=_0x5dff5e['attributes'][_0x30939b(0x145)]?_0x5dff5e[_0x30939b(0x1f6)]:_0x4a05b3[_0x30939b(0x1d7)],typeof _0xdbb6cd[_0x30939b(0x172)][_0x30939b(0x1b7)]===_0x30939b(0x15b)&&(_0x5dff5e[_0x30939b(0x1af)]=qs['limit'](_0xdbb6cd[_0x30939b(0x172)][_0x30939b(0x1af)]),_0x5dff5e[_0x30939b(0x1ae)]=qs[_0x30939b(0x1ae)](_0xdbb6cd[_0x30939b(0x172)][_0x30939b(0x1ae)])),_0x5dff5e[_0x30939b(0x1b9)]=qs[_0x30939b(0x161)](_0xdbb6cd[_0x30939b(0x172)][_0x30939b(0x161)]),_0x5dff5e[_0x30939b(0x146)]=qs[_0x30939b(0x208)](_['pick'](_0xdbb6cd[_0x30939b(0x172)],_0x4a05b3['filters'])),_0x5dff5e['where'][_0x30939b(0x14c)]=_0x4e9697['id'],_0xdbb6cd[_0x30939b(0x172)][_0x30939b(0x1bc)]&&(_0x5dff5e[_0x30939b(0x146)]=_[_0x30939b(0x17d)](_0x5dff5e[_0x30939b(0x146)],{[Op['or']]:_[_0x30939b(0x150)](_0x5dff5e[_0x30939b(0x1f6)],function(_0x9e2746){const _0x58b9cd=_0x30939b,_0x3cc9e3={};return _0x3cc9e3[_0x9e2746]={[Op[_0x58b9cd(0x174)]]:'%'+_0xdbb6cd['query'][_0x58b9cd(0x1bc)]+'%'},_0x3cc9e3;})})),_0x5dff5e=_['merge']({},_0x5dff5e,_0xdbb6cd['options']),db[_0x30939b(0x1d3)][_0x30939b(0x1ed)]({'where':_0x5dff5e[_0x30939b(0x146)]})['then'](function(_0x1aa5a1){const _0x1173f8=_0x30939b;return _0x59a6b2['count']=_0x1aa5a1,_0xdbb6cd[_0x1173f8(0x172)]['includeAll']&&(_0x5dff5e[_0x1173f8(0x19d)]=[{'all':!![]}]),db[_0x1173f8(0x1d3)][_0x1173f8(0x167)](_0x5dff5e);})['then'](function(_0xfc5cc2){const _0x15f9af=_0x30939b;return _0x59a6b2[_0x15f9af(0x1e1)]=_0xfc5cc2,_0x59a6b2;});})[_0x4b5b03(0x144)](respondWithFilteredResult(_0x13c5a4,_0x5dff5e))[_0x4b5b03(0x177)](handleError(_0x13c5a4,null));},exports[a650_0x3dc5ca(0x1a9)]=function(_0x1381f7,_0x3b8b8a){const _0x315999=a650_0x3dc5ca;return db[_0x315999(0x188)][_0x315999(0x1db)]({'where':{'id':_0x1381f7[_0x315999(0x204)]['id']}})['then'](handleEntityNotFound(_0x3b8b8a,null))['then'](function(_0x17401e){const _0x3b68fa=_0x315999;if(_0x17401e)return _0x17401e[_0x3b68fa(0x1a9)](_0x1381f7[_0x3b68fa(0x172)]['ids']);})[_0x315999(0x144)](respondWithStatusCode(_0x3b8b8a,null))[_0x315999(0x177)](handleError(_0x3b8b8a,null));},exports[a650_0x3dc5ca(0x16d)]=function(_0x122103,_0x41fded){const _0x52709e=a650_0x3dc5ca,_0xf633af={'channel':_0x52709e(0x142)};let _0x24a190=[],_0x4f0a33=[];const _0x36cae5={};return db[_0x52709e(0x188)]['findOne']({'where':{'id':_0x122103[_0x52709e(0x204)]['id']},'include':[{'model':db[_0x52709e(0x19b)],'as':_0x52709e(0x1f4)}]})[_0x52709e(0x144)](handleEntityNotFound(_0x41fded,null))[_0x52709e(0x144)](function(_0x7c519a){const _0x3378ad=_0x52709e;return _0xf633af['account']=_0x7c519a,_0xf633af[_0x3378ad(0x1d1)]=_[_0x3378ad(0x199)](_0x7c519a['Applications'],[_0x3378ad(0x1c2)],[_0x3378ad(0x1f9)]),_0xf633af[_0x3378ad(0x1da)]['Applications']&&delete _0xf633af['account'][_0x3378ad(0x1f4)],db[_0x3378ad(0x1d2)][_0x3378ad(0x1fe)]();})[_0x52709e(0x144)](function(_0x63516a){const _0x2520b3=_0x52709e;if(!_0x63516a)throw new ValidationError(_0x2520b3(0x16c));_0x24a190=_['difference'](_[_0x2520b3(0x1b2)](_0x63516a),[_0x2520b3(0x156),_0x2520b3(0x15c)]),_0x4f0a33=_['difference'](_['keys'](_0x63516a),['createdAt',_0x2520b3(0x15c),_0x2520b3(0x1fa),_0x2520b3(0x14f)]),_0xf633af[_0x2520b3(0x1f3)]={'mapKey':_0x2520b3(0x191)};if(_0xf633af[_0x2520b3(0x1da)]['type'])switch(_0xf633af[_0x2520b3(0x1da)]['type']){case _0x2520b3(0x1dd):_0xf633af[_0x2520b3(0x1f3)][_0x2520b3(0x1e9)]=_0x122103[_0x2520b3(0x1f3)][_0x2520b3(0x18d)],_0xf633af['body'][_0x2520b3(0x1f3)]=_0x122103[_0x2520b3(0x1f3)]['Body'],_0xf633af[_0x2520b3(0x1f3)][_0x2520b3(0x17a)]=_0x122103[_0x2520b3(0x1f3)][_0x2520b3(0x1a7)];break;case _0x2520b3(0x1dc):_0xf633af[_0x2520b3(0x1f3)][_0x2520b3(0x1e9)]='+'+_0x122103['body'][_0x2520b3(0x1eb)],_0xf633af[_0x2520b3(0x1f3)][_0x2520b3(0x1f3)]=_0x122103['body']['text'];break;case'connectel':_0xf633af['body'][_0x2520b3(0x1e9)]=_0x122103[_0x2520b3(0x1f3)][_0x2520b3(0x1e9)],_0xf633af[_0x2520b3(0x1f3)]['body']=_0x122103[_0x2520b3(0x1f3)][_0x2520b3(0x1c0)];break;case'clicksend':_0xf633af['body'][_0x2520b3(0x1e9)]=_0x122103['body'][_0x2520b3(0x1e9)],_0xf633af['body'][_0x2520b3(0x1f3)]=_0x122103[_0x2520b3(0x1f3)][_0x2520b3(0x1f3)],_0xf633af[_0x2520b3(0x1f3)][_0x2520b3(0x17a)]=_0x122103['body'][_0x2520b3(0x158)];break;case _0x2520b3(0x1a6):_0xf633af['body']['from']=_0x122103[_0x2520b3(0x1f3)][_0x2520b3(0x18d)],_0xf633af[_0x2520b3(0x1f3)][_0x2520b3(0x1f3)]=_0x122103[_0x2520b3(0x1f3)]['Text'],_0xf633af[_0x2520b3(0x1f3)]['messageId']=_0x122103[_0x2520b3(0x1f3)][_0x2520b3(0x182)];break;case _0x2520b3(0x181):_0xf633af[_0x2520b3(0x1f3)][_0x2520b3(0x1e9)]='+'+_0x122103[_0x2520b3(0x1f3)][_0x2520b3(0x1ff)][0x0][_0x2520b3(0x1e9)],_0xf633af['body'][_0x2520b3(0x1f3)]=_0x122103[_0x2520b3(0x1f3)][_0x2520b3(0x1ff)][0x0][_0x2520b3(0x187)],_0xf633af[_0x2520b3(0x1f3)][_0x2520b3(0x17a)]=_0x122103[_0x2520b3(0x1f3)][_0x2520b3(0x1ff)][0x0][_0x2520b3(0x17a)];break;case _0x2520b3(0x1cb):_0xf633af[_0x2520b3(0x1f3)][_0x2520b3(0x1e9)]=_0x122103[_0x2520b3(0x1f3)][_0x2520b3(0x185)],_0xf633af[_0x2520b3(0x1f3)][_0x2520b3(0x1f3)]=_0x122103[_0x2520b3(0x1f3)][_0x2520b3(0x148)][_0x2520b3(0x1c0)];break;case _0x2520b3(0x1bf):_0xf633af[_0x2520b3(0x1f3)][_0x2520b3(0x1e9)]=_0x122103[_0x2520b3(0x1f3)][_0x2520b3(0x193)],_0xf633af[_0x2520b3(0x1f3)]['body']=_0x122103[_0x2520b3(0x1f3)]['text'],_0xf633af['body'][_0x2520b3(0x17a)]=_0x122103[_0x2520b3(0x1f3)][_0x2520b3(0x203)];break;case'intelepeer':_0xf633af['body']['from']=_0x122103[_0x2520b3(0x1f3)][_0x2520b3(0x1e9)],_0xf633af[_0x2520b3(0x1f3)][_0x2520b3(0x1f3)]=_0x122103[_0x2520b3(0x1f3)]['message'],_0xf633af[_0x2520b3(0x1f3)]['messageId']=_0x122103[_0x2520b3(0x1f3)][_0x2520b3(0x170)];break;}_0xf633af[_0x2520b3(0x1f3)]['id']&&delete _0xf633af['body']['id'];if(_[_0x2520b3(0x1b6)](_0xf633af[_0x2520b3(0x1f3)][_0x2520b3(0x1e9)]))throw new ValidationError('from\x20is\x20mandatory');if(_[_0x2520b3(0x1b6)](_0xf633af[_0x2520b3(0x1f3)][_0x2520b3(0x1f3)])||_0xf633af[_0x2520b3(0x1f3)][_0x2520b3(0x1f3)]==='')throw new ValidationError(_0x2520b3(0x1f8));if(_['isNil'](_0xf633af[_0x2520b3(0x1f3)][_0x2520b3(0x186)]))throw new ValidationError(_0x2520b3(0x1e0)+_0x4f0a33);if(!_[_0x2520b3(0x15d)](_0x4f0a33,_0xf633af[_0x2520b3(0x1f3)][_0x2520b3(0x186)]))throw new ValidationError('mapKey\x20invalid,\x20please\x20use\x20one\x20of\x20these:\x20'+_0x4f0a33);return _0x36cae5[_0xf633af['body'][_0x2520b3(0x186)]]=_0xf633af['body'][_0x2520b3(0x1e9)],db['CmList'][_0x2520b3(0x1db)]({'where':{'id':_0xf633af[_0x2520b3(0x1da)][_0x2520b3(0x14f)]},'include':[{'model':db[_0x2520b3(0x1d2)],'as':_0x2520b3(0x16f),'where':_0x36cae5,'limit':0x1,'order':[[_0x2520b3(0x15c),_0x2520b3(0x1ce)]]}]});})['then'](handleEntityNotFound(_0x41fded,null))[_0x52709e(0x144)](function(_0x2f3969){const _0xa2322=_0x52709e;if(_0x2f3969){_0xf633af['list']=_[_0xa2322(0x14e)](_0x2f3969,[_0xa2322(0x16f)]);if(_0x2f3969['Contacts']['length'])return _0x2f3969[_0xa2322(0x16f)][0x0];const _0x4d9996=_[_0xa2322(0x15e)](_0xf633af[_0xa2322(0x1f3)],{'firstName':_0xf633af['body'][_0xa2322(0x1e9)],'ListId':_0x2f3969['id']});return _0x4d9996[_0xf633af[_0xa2322(0x1f3)]['mapKey']]=_0xf633af[_0xa2322(0x1f3)][_0xa2322(0x1e9)],db[_0xa2322(0x1d2)][_0xa2322(0x155)](_0x4d9996,{'fields':_0x24a190,'raw':!![]});}})[_0x52709e(0x144)](handleEntityNotFound(_0x41fded,null))[_0x52709e(0x144)](function(_0x2c7b77){const _0x19c200=_0x52709e;if(_0x2c7b77){_0xf633af[_0x19c200(0x19a)]=_0x2c7b77;const _0x3fdc5c={'ContactId':_0x2c7b77['id'],'phone':_0xf633af[_0x19c200(0x1f3)][_0x19c200(0x1e9)],'SmsAccountId':_0x122103[_0x19c200(0x204)]['id']},_0x3745c3={'ContactId':_0x2c7b77['id'],'SmsAccountId':_0x122103[_0x19c200(0x204)]['id'],'closed':![]};return db[_0x19c200(0x1b8)][_0x19c200(0x1db)]({'where':_0x3745c3})[_0x19c200(0x144)](function(_0x108753){const _0x273e96=_0x19c200;if(_0x108753)return[_0x108753,![]];return db[_0x273e96(0x1b8)][_0x273e96(0x155)](_0x3fdc5c)[_0x273e96(0x144)](function(_0x24ad93){return[_0x24ad93,!![]];});});}})[_0x52709e(0x144)](function([_0xada857,_0x11a9f1]){const _0x759bc8=_0x52709e;return _0xf633af[_0x759bc8(0x1e6)]=_0xada857[_0x759bc8(0x1a2)]({'plain':!![]}),_0xf633af[_0x759bc8(0x1e6)][_0x759bc8(0x19f)]=![],_0x11a9f1&&(_0xf633af[_0x759bc8(0x1da)]['autoclose']&&_0xf633af[_0x759bc8(0x1d1)][_0x759bc8(0x197)]({'id':0x0,'priority':_0xf633af[_0x759bc8(0x1d1)][_0x759bc8(0x145)]+0x1,'app':_0x759bc8(0x160),'appdata':_0x759bc8(0x1ad),'interval':_0x759bc8(0x1ab)}),_0xf633af[_0x759bc8(0x1e6)][_0x759bc8(0x19f)]=!![]),db[_0x759bc8(0x1f1)]['create']({'phone':_0xf633af['body']['from'],'messageId':_0xf633af['body'][_0x759bc8(0x17a)],'body':_0xf633af[_0x759bc8(0x1f3)][_0x759bc8(0x1f3)],'SmsAccountId':_0x122103[_0x759bc8(0x204)]['id'],'SmsInteractionId':_0xada857['id'],'direction':'in','ContactId':_0xada857[_0x759bc8(0x166)],'AttachmentId':_0xf633af[_0x759bc8(0x1f3)][_0x759bc8(0x190)]});})[_0x52709e(0x144)](function(_0x2aea20){const _0x5302e4=_0x52709e;_0xf633af[_0x5302e4(0x1c0)]=_0x2aea20;if(_0xf633af['interaction'][_0x5302e4(0x1d6)])return db[_0x5302e4(0x196)]['findOne']({'attributes':['id',_0x5302e4(0x1c3)],'where':{'id':_0xf633af[_0x5302e4(0x1e6)][_0x5302e4(0x1d6)]}})['then'](function(_0x2a60d5){const _0x4addfa=_0x5302e4;return _0x2a60d5&&_0xf633af[_0x4addfa(0x1d1)]['unshift']({'id':0x0,'priority':0x0,'app':_0x4addfa(0x1fc),'appdata':_0x2a60d5[_0x4addfa(0x1c3)]+','+(_0xf633af[_0x4addfa(0x1da)][_0x4addfa(0x205)]||0xa),'interval':_0x4addfa(0x1ab)}),respondWithRpcPromise(_0x4addfa(0x14b),_0x4addfa(0x1b0),_0xf633af);});return respondWithRpcPromise(_0x5302e4(0x14b),_0x5302e4(0x1b0),_0xf633af);})[_0x52709e(0x144)](function(_0x54f9eb){const _0x11456c=_0x52709e;if(_0x54f9eb){const _0x4b5b76=0xc8,_0xcd7e11=_0x11456c(0x1fb);return logger['info'](_0x11456c(0x209),_0xcd7e11,_0x4b5b76,_0x11456c(0x1c1)),logger[_0x11456c(0x18a)]('SmsAccount,\x20%s,\x20%s,\x20%s,\x20%s',_0xcd7e11,_0x4b5b76,_0x11456c(0x1c1),JSON[_0x11456c(0x1cc)](_0x54f9eb)),_0xf633af[_0x11456c(0x1da)]['type']===_0x11456c(0x1dd)?_0x41fded[_0x11456c(0x143)](_0x4b5b76)[_0x11456c(0x1a1)](_0x11456c(0x16b),_0x11456c(0x1e8))['send'](_0x11456c(0x1df)):_0x41fded[_0x11456c(0x143)](_0x4b5b76)[_0x11456c(0x14a)](_0x54f9eb);}})[_0x52709e(0x177)](handleError(_0x41fded,null));},exports['addApplications']=function(_0x5664bc,_0x15cddd){const _0x5631b3=a650_0x3dc5ca;return db[_0x5631b3(0x188)]['findOne']({'where':{'id':_0x5664bc[_0x5631b3(0x204)]['id']}})['then'](handleEntityNotFound(_0x15cddd,null))[_0x5631b3(0x144)](function(_0x29d597){const _0x6d53fd=_0x5631b3;if(_0x29d597)return db[_0x6d53fd(0x19c)][_0x6d53fd(0x176)](function(_0x3074b8){const _0x5d0cdd=_0x6d53fd;return db[_0x5d0cdd(0x19b)]['destroy']({'where':{'SmsAccountId':_0x5664bc[_0x5d0cdd(0x204)]['id']},'transaction':_0x3074b8})[_0x5d0cdd(0x144)](function(){const _0x3f2a69=_0x5d0cdd,_0x20a43a=_['map'](_0x5664bc[_0x3f2a69(0x1f3)],function(_0x1ef6e5){const _0x34a569=_0x3f2a69;return _0x1ef6e5[_0x34a569(0x14c)]=_0x5664bc[_0x34a569(0x204)]['id'],_0x1ef6e5;});return db[_0x3f2a69(0x19b)]['bulkCreate'](_0x20a43a,{'transaction':_0x3074b8});});})[_0x6d53fd(0x144)](function(){const _0x24395a=_0x6d53fd;return db['SmsApplication'][_0x24395a(0x1ac)]({'where':{'SmsAccountId':_0x5664bc[_0x24395a(0x204)]['id']},'order':_0x24395a(0x1c2)});});})[_0x5631b3(0x144)](respondWithResult(_0x15cddd,null))[_0x5631b3(0x177)](handleError(_0x15cddd,null));},exports[a650_0x3dc5ca(0x17f)]=function(_0x52153e,_0x1dd154){const _0x537239=a650_0x3dc5ca;let _0x3912e4={};const _0x4cde21={};let _0x50314f,_0x27e043;return db[_0x537239(0x188)]['findOne']({'where':{'id':_0x52153e[_0x537239(0x204)]['id']}})[_0x537239(0x144)](handleEntityNotFound(_0x1dd154,null))[_0x537239(0x144)](function(_0x17d60b){const _0x221d46=_0x537239;if(_0x17d60b)return _0x50314f=_0x17d60b,_0x4cde21['model']=_[_0x221d46(0x1b2)](db['SmsApplication']['rawAttributes']),_0x4cde21[_0x221d46(0x172)]=_['keys'](_0x52153e['query']),_0x4cde21[_0x221d46(0x208)]=_[_0x221d46(0x1e4)](_0x4cde21[_0x221d46(0x1d7)],_0x4cde21[_0x221d46(0x172)]),_0x3912e4[_0x221d46(0x1f6)]=_[_0x221d46(0x1e4)](_0x4cde21[_0x221d46(0x1d7)],qs[_0x221d46(0x1e3)](_0x52153e[_0x221d46(0x172)][_0x221d46(0x1e3)])),_0x3912e4[_0x221d46(0x1f6)]=_0x3912e4[_0x221d46(0x1f6)][_0x221d46(0x145)]?_0x3912e4[_0x221d46(0x1f6)]:_0x4cde21['model'],_0x3912e4[_0x221d46(0x1b9)]=qs[_0x221d46(0x161)](_0x52153e[_0x221d46(0x172)][_0x221d46(0x161)]),_0x3912e4[_0x221d46(0x146)]=qs[_0x221d46(0x208)](_[_0x221d46(0x1fd)](_0x52153e[_0x221d46(0x172)],_0x4cde21['filters'])),_0x52153e[_0x221d46(0x172)][_0x221d46(0x1bc)]&&(_0x3912e4[_0x221d46(0x146)]=_[_0x221d46(0x17d)](_0x3912e4[_0x221d46(0x146)],{[Op['or']]:_[_0x221d46(0x150)](_0x3912e4[_0x221d46(0x1f6)],function(_0xb6b37b){const _0x2ff3d7=_0x221d46,_0x226590={};return _0x226590[_0xb6b37b]={[Op[_0x2ff3d7(0x174)]]:'%'+_0x52153e['query'][_0x2ff3d7(0x1bc)]+'%'},_0x226590;})})),_0x3912e4=_[_0x221d46(0x17d)]({},_0x3912e4,_0x52153e['options']),_0x50314f[_0x221d46(0x17f)](_0x3912e4);})['then'](function(_0x5f1d5b){const _0x3d89bb=_0x537239;if(_0x5f1d5b)return _0x27e043=_0x5f1d5b['length'],typeof _0x52153e['query'][_0x3d89bb(0x1b7)]===_0x3d89bb(0x15b)&&(_0x3912e4[_0x3d89bb(0x1af)]=qs[_0x3d89bb(0x1af)](_0x52153e[_0x3d89bb(0x172)][_0x3d89bb(0x1af)]),_0x3912e4[_0x3d89bb(0x1ae)]=qs[_0x3d89bb(0x1ae)](_0x52153e[_0x3d89bb(0x172)][_0x3d89bb(0x1ae)])),_0x50314f[_0x3d89bb(0x17f)](_0x3912e4);})[_0x537239(0x144)](function(_0x55ec9b){if(_0x55ec9b)return _0x55ec9b?{'count':_0x27e043,'rows':_0x55ec9b}:null;})[_0x537239(0x144)](respondWithResult(_0x1dd154,null))['catch'](handleError(_0x1dd154,null));},exports[a650_0x3dc5ca(0x149)]=function(_0x16b31b,_0x5e282b){const _0x38d7a8=a650_0x3dc5ca;let _0x17d8a5={'raw':![],'where':{}};const _0x4fb817={},_0x2a3b14={'count':0x0,'rows':[]};return db[_0x38d7a8(0x188)]['findOne']({'where':{'id':_0x16b31b[_0x38d7a8(0x204)]['id']}})[_0x38d7a8(0x144)](handleEntityNotFound(_0x5e282b,null))[_0x38d7a8(0x144)](function(_0x3150f){const _0x584cff=_0x38d7a8;if(_0x3150f)return _0x4fb817[_0x584cff(0x1d7)]=_['keys'](db['SmsInteraction'][_0x584cff(0x1c7)]),_0x4fb817[_0x584cff(0x172)]=_[_0x584cff(0x1b2)](_0x16b31b[_0x584cff(0x172)]),_0x4fb817[_0x584cff(0x208)]=_[_0x584cff(0x1e4)](_0x4fb817['model'],_0x4fb817[_0x584cff(0x172)]),_0x17d8a5[_0x584cff(0x1f6)]=_[_0x584cff(0x1e4)](_0x4fb817[_0x584cff(0x1d7)],qs[_0x584cff(0x1e3)](_0x16b31b[_0x584cff(0x172)][_0x584cff(0x1e3)])),_0x17d8a5['attributes']=_0x17d8a5[_0x584cff(0x1f6)][_0x584cff(0x145)]?_0x17d8a5[_0x584cff(0x1f6)]:_0x4fb817[_0x584cff(0x1d7)],typeof _0x16b31b[_0x584cff(0x172)][_0x584cff(0x1b7)]===_0x584cff(0x15b)&&(_0x17d8a5[_0x584cff(0x1af)]=qs[_0x584cff(0x1af)](_0x16b31b[_0x584cff(0x172)][_0x584cff(0x1af)]),_0x17d8a5[_0x584cff(0x1ae)]=qs[_0x584cff(0x1ae)](_0x16b31b['query'][_0x584cff(0x1ae)])),_0x17d8a5['order']=qs['sort'](_0x16b31b[_0x584cff(0x172)][_0x584cff(0x161)]),_0x17d8a5[_0x584cff(0x146)]=qs[_0x584cff(0x208)](_['pick'](_0x16b31b[_0x584cff(0x172)],_0x4fb817[_0x584cff(0x208)])),_0x17d8a5['where'][_0x584cff(0x14c)]=_0x3150f['id'],_0x16b31b[_0x584cff(0x172)][_0x584cff(0x1bc)]&&(_0x17d8a5[_0x584cff(0x146)]=_[_0x584cff(0x17d)](_0x17d8a5[_0x584cff(0x146)],{[Op['or']]:_[_0x584cff(0x150)](_0x17d8a5['attributes'],function(_0x520648){const _0x99ef43=_0x584cff,_0x4e28d4={};return _0x4e28d4[_0x520648]={[Op[_0x99ef43(0x174)]]:'%'+_0x16b31b[_0x99ef43(0x172)][_0x99ef43(0x1bc)]+'%'},_0x4e28d4;})})),_0x17d8a5=_[_0x584cff(0x17d)]({},_0x17d8a5,_0x16b31b[_0x584cff(0x1d4)]),db['SmsInteraction'][_0x584cff(0x1ed)]({'where':_0x17d8a5[_0x584cff(0x146)]})[_0x584cff(0x144)](function(_0x45fe53){const _0x725b4a=_0x584cff;return _0x2a3b14[_0x725b4a(0x1ed)]=_0x45fe53,_0x16b31b[_0x725b4a(0x172)][_0x725b4a(0x178)]&&(_0x17d8a5[_0x725b4a(0x19d)]=[{'model':db['CmContact'],'as':_0x725b4a(0x189),'required':![]},{'model':db[_0x725b4a(0x196)],'as':_0x725b4a(0x194),'attributes':[_0x725b4a(0x1c3),'fullname',_0x725b4a(0x1d5)],'required':![]},{'model':db[_0x725b4a(0x1bb)],'as':_0x725b4a(0x175),'attributes':['id',_0x725b4a(0x1c3),_0x725b4a(0x1ef)],'where':_0x16b31b[_0x725b4a(0x172)][_0x725b4a(0x202)]?{'id':_0x16b31b[_0x725b4a(0x172)][_0x725b4a(0x202)]}:undefined,'required':_0x16b31b[_0x725b4a(0x172)][_0x725b4a(0x202)]?!![]:![]}]),db[_0x725b4a(0x1b8)][_0x725b4a(0x167)](_0x17d8a5);})[_0x584cff(0x144)](function(_0x2a1dae){const _0xdb760e=_0x584cff;return _0x2a3b14[_0xdb760e(0x1e1)]=_0x2a1dae,_0x2a3b14;});})[_0x38d7a8(0x144)](respondWithFilteredResult(_0x5e282b,_0x17d8a5))[_0x38d7a8(0x177)](handleError(_0x5e282b,null));},exports['send']=function(_0x40ec85,_0x19846e){const _0xdb598e=a650_0x3dc5ca;let _0x506cb9,_0x2850ee;if(_[_0xdb598e(0x1b6)](_0x40ec85[_0xdb598e(0x1f3)][_0xdb598e(0x1f3)])||_0x40ec85[_0xdb598e(0x1f3)][_0xdb598e(0x1f3)]==='')throw new ValidationError(_0xdb598e(0x1f8));if(_['isNil'](_0x40ec85[_0xdb598e(0x1f3)]['to']))throw new ValidationError(_0xdb598e(0x17c));const _0x55487b=_0x40ec85[_0xdb598e(0x1f3)]['to'];return db[_0xdb598e(0x188)][_0xdb598e(0x1db)]({'where':{'id':_0x40ec85['params']['id']},'include':[{'model':db[_0xdb598e(0x1f5)],'as':'List','include':[{'model':db['CmContact'],'as':_0xdb598e(0x16f),'where':{'mobile':_0x55487b},'limit':0x1,'order':[[_0xdb598e(0x15c),_0xdb598e(0x1ce)]]}]}]})[_0xdb598e(0x144)](handleEntityNotFound(_0x19846e,null))[_0xdb598e(0x144)](function(_0x1d8aaf){const _0x3219b1=_0xdb598e;if(_0x1d8aaf&&_0x1d8aaf['List']){_0x506cb9=_0x1d8aaf[_0x3219b1(0x1a2)]({'plain':!![]});if(_0x506cb9[_0x3219b1(0x153)]&&_0x506cb9[_0x3219b1(0x153)]['Contacts']['length'])return _0x506cb9[_0x3219b1(0x153)][_0x3219b1(0x16f)][0x0];return db[_0x3219b1(0x1d2)][_0x3219b1(0x155)](_['defaults'](_0x40ec85[_0x3219b1(0x1f3)],{'firstName':_0x55487b,'mobile':_0x55487b,'phone':_0x55487b,'ListId':_0x506cb9[_0x3219b1(0x14f)]}));}})['then'](handleEntityNotFound(_0x19846e,null))[_0xdb598e(0x144)](function(_0xcff9ff){if(_0xcff9ff)return _0x2850ee=_0xcff9ff,db['SmsInteraction']['findOne']({'where':{'ContactId':_0x2850ee['id'],'closed':![],'SmsAccountId':_0x506cb9['id']}})['then'](function(_0x5df962){const _0x45877c=a650_0x36dd;if(_0x5df962)return[_0x5df962,![]];return db['SmsInteraction'][_0x45877c(0x155)]({'UserId':_0x40ec85['user']['id'],'ContactId':_0x2850ee['id'],'SmsAccountId':_0x506cb9['id'],'phone':_0x55487b,'firstMsgDirection':'out','Messages':[_['merge'](_0x40ec85[_0x45877c(0x1f3)],{'read':![],'body':_0x40ec85[_0x45877c(0x1f3)][_0x45877c(0x1f3)],'phone':_0x55487b,'SmsAccountId':_0x506cb9['id'],'UserId':_0x40ec85[_0x45877c(0x1d9)]['id'],'ContactId':_0x2850ee['id']})]},{'include':[{'model':db['SmsMessage'],'as':_0x45877c(0x147)}]})[_0x45877c(0x144)](function(_0x2d9ec6){return[_0x2d9ec6,!![]];});});})[_0xdb598e(0x144)](function([_0x26e55b,_0x53a867]){const _0x3b110b=_0xdb598e;if(_0x53a867)return _0x26e55b;return db[_0x3b110b(0x1f1)][_0x3b110b(0x155)](_[_0x3b110b(0x17d)](_0x40ec85['body'],{'read':![],'body':_0x40ec85[_0x3b110b(0x1f3)][_0x3b110b(0x1f3)],'phone':_0x55487b,'SmsAccountId':_0x506cb9['id'],'SmsInteractionId':_0x26e55b['id'],'UserId':_0x40ec85['user']['id'],'ContactId':_0x2850ee['id']}))[_0x3b110b(0x144)](function(_0x1a8bd3){const _0x292507=_0x3b110b;return _0x26e55b[_0x292507(0x184)][_0x292507(0x147)]=[],_0x26e55b[_0x292507(0x184)]['Messages']['push'](_0x1a8bd3[_0x292507(0x184)]),_0x26e55b;});})[_0xdb598e(0x144)](respondWithResult(_0x19846e,null))[_0xdb598e(0x177)](handleError(_0x19846e,null));},exports['status']=function(_0x24c062,_0x18d382){const _0x274706=a650_0x3dc5ca;_0x24c062[_0x274706(0x1f3)]['id']&&delete _0x24c062[_0x274706(0x1f3)]['id'];console[_0x274706(0x171)](_0x274706(0x1ea),_0x24c062[_0x274706(0x1f3)]);let _0x2d15cc,_0xbfc84b,_0x50ca01;return db[_0x274706(0x188)][_0x274706(0x1db)]({'where':{'id':_0x24c062[_0x274706(0x204)]['id']}})[_0x274706(0x144)](handleEntityNotFound(_0x18d382,null))['then'](function(_0x4f1a0d){const _0x1f99b8=_0x274706;if(_0x4f1a0d){_0x50ca01=_0x4f1a0d,logger[_0x1f99b8(0x18a)]('SmsAccount,\x20%s,\x20%s,\x20%s',_0x1f99b8(0x143),_0x1f99b8(0x1c9),_0x4f1a0d['type'],util['inspect'](_0x24c062[_0x1f99b8(0x1f3)],{'showHidden':![],'depth':null}));switch(_0x4f1a0d['type']){case _0x1f99b8(0x1dc):if(_0x24c062[_0x1f99b8(0x1f3)][_0x1f99b8(0x192)]&&_0x24c062[_0x1f99b8(0x1f3)]['status'])return _0xbfc84b=_0x24c062['body']['status'],db['SmsMessage'][_0x1f99b8(0x1db)]({'where':{'messageId':_0x24c062[_0x1f99b8(0x1f3)][_0x1f99b8(0x192)]}});break;case _0x1f99b8(0x1a4):if(_0x24c062[_0x1f99b8(0x1f3)][_0x1f99b8(0x1e5)]&&_0x24c062[_0x1f99b8(0x1f3)][_0x1f99b8(0x173)])return _0xbfc84b=_0x24c062[_0x1f99b8(0x1f3)][_0x1f99b8(0x173)],db[_0x1f99b8(0x1f1)][_0x1f99b8(0x1db)]({'where':{'messageId':_0x24c062[_0x1f99b8(0x1f3)][_0x1f99b8(0x1e5)]}});break;case'clicksend':if(_0x24c062[_0x1f99b8(0x1f3)][_0x1f99b8(0x158)]&&_0x24c062[_0x1f99b8(0x1f3)][_0x1f99b8(0x157)])return _0xbfc84b=_0x24c062[_0x1f99b8(0x1f3)][_0x1f99b8(0x157)],db[_0x1f99b8(0x1f1)][_0x1f99b8(0x1db)]({'where':{'messageId':_0x24c062[_0x1f99b8(0x1f3)]['message_id']}});break;case _0x1f99b8(0x181):{const _0x56a30e=_0x24c062['body'][_0x1f99b8(0x1ff)][0x0];if(_0x56a30e['messageId']&&_0x56a30e['status'][_0x1f99b8(0x159)]===_0x1f99b8(0x1a5))return _0xbfc84b=_0x56a30e['status']['groupName'],db[_0x1f99b8(0x1f1)]['findOne']({'where':{'messageId':_0x56a30e['messageId']}});}break;case'clickatell':if(_0x24c062[_0x1f99b8(0x1f3)][_0x1f99b8(0x17a)]&&_0x24c062['body'][_0x1f99b8(0x143)])return _0xbfc84b=_0x24c062[_0x1f99b8(0x1f3)]['status'],db[_0x1f99b8(0x1f1)]['findOne']({'where':{'messageId':_0x24c062[_0x1f99b8(0x1f3)]['messageId']}});break;case'intelepeer':if(_0x24c062[_0x1f99b8(0x1f3)][_0x1f99b8(0x195)]&&_0x24c062[_0x1f99b8(0x1f3)][_0x1f99b8(0x143)])return _0xbfc84b=_0x24c062[_0x1f99b8(0x1f3)][_0x1f99b8(0x143)],db[_0x1f99b8(0x1f1)][_0x1f99b8(0x1db)]({'where':{'messageId':_0x24c062[_0x1f99b8(0x1f3)][_0x1f99b8(0x195)]}});break;}}})[_0x274706(0x144)](handleEntityNotFound(_0x18d382,null))[_0x274706(0x144)](function(_0x525a99){const _0x105a2e=_0x274706;if(_0x525a99){_0x2d15cc=_0x525a99;switch(_0x50ca01['type']){case _0x105a2e(0x1dc):if(_0xbfc84b===_0x105a2e(0x1a5))return _0x2d15cc[_0x105a2e(0x151)]({'read':!![]});else logger[_0x105a2e(0x1a8)](_0x105a2e(0x209),_0x105a2e(0x143),_0x105a2e(0x1dc),util[_0x105a2e(0x180)](_0x24c062['body'],{'showHidden':![],'depth':null}));break;case'connectel':if(_0xbfc84b==='1')return _0x2d15cc[_0x105a2e(0x151)]({'read':!![]});else logger[_0x105a2e(0x1a8)](_0x105a2e(0x209),'status','skebby',util[_0x105a2e(0x180)](_0x24c062[_0x105a2e(0x1f3)],{'showHidden':![],'depth':null}));break;case _0x105a2e(0x179):if(!_0x24c062[_0x105a2e(0x1f3)]['error_code']&&_0xbfc84b>=0xc8&&_0xbfc84b<=0xce)return _0x2d15cc['update']({'read':!![]});else logger[_0x105a2e(0x1a8)]('SmsAccount,\x20%s,\x20%s,\x20%s','status',_0x105a2e(0x179),util['inspect'](_0x24c062[_0x105a2e(0x1f3)],{'showHidden':![],'depth':null}));break;case'infobip':{const _0x4b942f=_0x24c062[_0x105a2e(0x1f3)][_0x105a2e(0x1ff)][0x0];if(_0x4b942f['status']['groupName']===_0x105a2e(0x1a5))return _0x2d15cc['update']({'read':!![]});else logger[_0x105a2e(0x1a8)](_0x105a2e(0x209),_0x105a2e(0x143),_0x105a2e(0x181),util['inspect'](_0x24c062[_0x105a2e(0x1f3)],{'showHidden':![],'depth':null}));}break;case'clickatell':if(_0xbfc84b==_0x105a2e(0x1aa)||_0xbfc84b==_0x105a2e(0x16a))return _0x2d15cc[_0x105a2e(0x151)]({'read':!![]});else logger['error'](_0x105a2e(0x209),_0x105a2e(0x143),_0x105a2e(0x1bf),util[_0x105a2e(0x180)](_0x24c062[_0x105a2e(0x1f3)],{'showHidden':![],'depth':null}));break;case _0x105a2e(0x17e):if(_0xbfc84b===_0x105a2e(0x16e)||_0xbfc84b===_0x105a2e(0x1c5))return _0x2d15cc[_0x105a2e(0x151)]({'read':!![]});else logger[_0x105a2e(0x1a8)](_0x105a2e(0x209),_0x105a2e(0x143),_0x105a2e(0x17e),util[_0x105a2e(0x180)](_0x24c062[_0x105a2e(0x1f3)],{'showHidden':![],'depth':null}));break;}return _0x2d15cc;}})[_0x274706(0x144)](respondWithResult(_0x18d382,null))['catch'](handleError(_0x18d382,null));},exports[a650_0x3dc5ca(0x152)]=function(_0x37b7ce,_0x30b336){const _0x4af5b4=a650_0x3dc5ca;let _0x5b5844,_0x4a5499,_0x15ec53;return db[_0x4af5b4(0x188)]['findOne']({'where':{'id':_0x37b7ce[_0x4af5b4(0x204)]['id']}})['then'](handleEntityNotFound(_0x30b336,null))[_0x4af5b4(0x144)](function(_0x3ae587){const _0x3eb53b=_0x4af5b4;if(_0x3ae587){_0x15ec53=_0x3ae587,logger[_0x3eb53b(0x18a)](_0x3eb53b(0x209),_0x3eb53b(0x143),_0x3eb53b(0x1c9),_0x3ae587[_0x3eb53b(0x1b1)],util[_0x3eb53b(0x180)](_0x37b7ce[_0x3eb53b(0x172)],{'showHidden':![],'depth':null}));switch(_0x3ae587['type']){case _0x3eb53b(0x1cb):if(_0x37b7ce[_0x3eb53b(0x172)][_0x3eb53b(0x1cd)]&&_0x37b7ce[_0x3eb53b(0x172)]['state'])return _0x4a5499=_0x37b7ce[_0x3eb53b(0x172)][_0x3eb53b(0x15f)],db['SmsMessage'][_0x3eb53b(0x1db)]({'where':{'messageId':_0x37b7ce[_0x3eb53b(0x172)][_0x3eb53b(0x1cd)]}});break;}}})['then'](handleEntityNotFound(_0x30b336,null))[_0x4af5b4(0x144)](function(_0x2009ee){const _0x37eacd=_0x4af5b4;if(_0x2009ee){_0x5b5844=_0x2009ee;switch(_0x15ec53[_0x37eacd(0x1b1)]){case _0x37eacd(0x1cb):if(_0x4a5499==='2'||_0x4a5499==='6')return _0x5b5844[_0x37eacd(0x151)]({'read':!![]});else logger['error']('SmsAccount,\x20%s,\x20%s,\x20%s',_0x37eacd(0x143),_0x37eacd(0x1cb),util[_0x37eacd(0x180)](_0x37b7ce[_0x37eacd(0x172)],{'showHidden':![],'depth':null}));break;}return _0x5b5844;}})[_0x4af5b4(0x144)](respondWithResult(_0x30b336,null))[_0x4af5b4(0x177)](handleError(_0x30b336,null));},exports[a650_0x3dc5ca(0x1f2)]=function(_0x59d011,_0x267cf4){const _0x2b71c9=a650_0x3dc5ca;return db['SmsAccount']['findOne']({'where':{'id':_0x59d011[_0x2b71c9(0x204)]['id']}})[_0x2b71c9(0x144)](function(_0x5a3b8a){const _0x247082=_0x2b71c9;if(_0x5a3b8a)return _0x5a3b8a[_0x247082(0x1f2)](_0x59d011[_0x247082(0x1f3)][_0x247082(0x1c8)],{'through':_['omit'](_0x59d011['body'],['ids','id'])})['then'](function(_0xcf3316){const _0x997c81=_0x247082;for(let _0x51b723=0x0;_0x51b723<_0x59d011[_0x997c81(0x1f3)][_0x997c81(0x1c8)][_0x997c81(0x145)];_0x51b723+=0x1){socket['emit'](_0x997c81(0x1d0),{'UserId':_0x59d011[_0x997c81(0x1f3)][_0x997c81(0x1c8)][_0x51b723],'SmsAccountId':_0x59d011[_0x997c81(0x204)]['id']});}return _0xcf3316;});})['then'](respondWithResult(_0x267cf4,null))['catch'](handleError(_0x267cf4,null));},exports['removeAgents']=function(_0x484ce7,_0x36cf09){const _0x23a5ab=a650_0x3dc5ca;return db[_0x23a5ab(0x188)][_0x23a5ab(0x1db)]({'where':{'id':_0x484ce7[_0x23a5ab(0x204)]['id']}})[_0x23a5ab(0x144)](handleEntityNotFound(_0x36cf09,null))[_0x23a5ab(0x144)](function(_0x57e3aa){const _0x213f86=_0x23a5ab;if(_0x57e3aa)return _0x57e3aa[_0x213f86(0x1ec)](_0x484ce7[_0x213f86(0x172)][_0x213f86(0x1c8)])[_0x213f86(0x144)](function(){const _0x123a48=_0x213f86;if(_[_0x123a48(0x200)](_0x484ce7[_0x123a48(0x172)][_0x123a48(0x1c8)]))for(let _0x55b529=0x0;_0x55b529<_0x484ce7['query']['ids'][_0x123a48(0x145)];_0x55b529+=0x1){socket[_0x123a48(0x1e2)](_0x123a48(0x1f7),{'UserId':Number(_0x484ce7[_0x123a48(0x172)][_0x123a48(0x1c8)][_0x55b529]),'SmsAccountId':Number(_0x484ce7['params']['id'])});}else socket['emit'](_0x123a48(0x1f7),{'UserId':Number(_0x484ce7[_0x123a48(0x172)][_0x123a48(0x1c8)]),'SmsAccountId':Number(_0x484ce7[_0x123a48(0x204)]['id'])});});})[_0x23a5ab(0x144)](respondWithStatusCode(_0x36cf09,null))[_0x23a5ab(0x177)](handleError(_0x36cf09,null));},exports[a650_0x3dc5ca(0x1c4)]=function(_0x455820,_0x10847f){const _0x4a3f11=a650_0x3dc5ca;let _0x5d991f={};const _0x777226={};let _0xa256fd,_0x41bcba;return db['SmsAccount'][_0x4a3f11(0x1db)]({'where':{'id':_0x455820[_0x4a3f11(0x204)]['id']}})[_0x4a3f11(0x144)](handleEntityNotFound(_0x10847f,null))[_0x4a3f11(0x144)](function(_0x4a8443){const _0x3f7a6e=_0x4a3f11;if(_0x4a8443)return _0xa256fd=_0x4a8443,_0x777226[_0x3f7a6e(0x1d7)]=_[_0x3f7a6e(0x1b2)](db[_0x3f7a6e(0x196)]['rawAttributes']),_0x777226['query']=_[_0x3f7a6e(0x1b2)](_0x455820['query']),_0x777226[_0x3f7a6e(0x208)]=_['intersection'](_0x777226['model'],_0x777226[_0x3f7a6e(0x172)]),_0x5d991f[_0x3f7a6e(0x1f6)]=_[_0x3f7a6e(0x1e4)](_0x777226[_0x3f7a6e(0x1d7)],qs[_0x3f7a6e(0x1e3)](_0x455820[_0x3f7a6e(0x172)][_0x3f7a6e(0x1e3)])),_0x5d991f[_0x3f7a6e(0x1f6)]=_0x5d991f[_0x3f7a6e(0x1f6)][_0x3f7a6e(0x145)]?_0x5d991f['attributes']:_0x777226['model'],_0x5d991f[_0x3f7a6e(0x1b9)]=qs['sort'](_0x455820['query'][_0x3f7a6e(0x161)]),_0x5d991f[_0x3f7a6e(0x146)]=qs['filters'](_['pick'](_0x455820[_0x3f7a6e(0x172)],_0x777226[_0x3f7a6e(0x208)])),_0x455820[_0x3f7a6e(0x172)][_0x3f7a6e(0x1bc)]&&(_0x5d991f[_0x3f7a6e(0x146)]=_[_0x3f7a6e(0x17d)](_0x5d991f['where'],{[Op['or']]:_[_0x3f7a6e(0x150)](_0x5d991f['attributes'],function(_0x4ad2a8){const _0x2fdd65=_0x3f7a6e,_0x47b24a={};return _0x47b24a[_0x4ad2a8]={[Op[_0x2fdd65(0x174)]]:'%'+_0x455820[_0x2fdd65(0x172)][_0x2fdd65(0x1bc)]+'%'},_0x47b24a;})})),_0x5d991f=_['merge']({},_0x5d991f,_0x455820['options']),_0xa256fd[_0x3f7a6e(0x1c4)](_0x5d991f);})[_0x4a3f11(0x144)](function(_0x47bfc7){const _0x1297af=_0x4a3f11;if(_0x47bfc7)return _0x41bcba=_0x47bfc7[_0x1297af(0x145)],typeof _0x455820[_0x1297af(0x172)][_0x1297af(0x1b7)]===_0x1297af(0x15b)&&(_0x5d991f['limit']=qs[_0x1297af(0x1af)](_0x455820[_0x1297af(0x172)]['limit']),_0x5d991f['offset']=qs[_0x1297af(0x1ae)](_0x455820[_0x1297af(0x172)][_0x1297af(0x1ae)])),_0xa256fd[_0x1297af(0x1c4)](_0x5d991f);})[_0x4a3f11(0x144)](function(_0x19cee9){if(_0x19cee9)return _0x19cee9?{'count':_0x41bcba,'rows':_0x19cee9}:null;})[_0x4a3f11(0x144)](respondWithResult(_0x10847f,null))[_0x4a3f11(0x177)](handleError(_0x10847f,null));}; \ No newline at end of file diff --git a/server/api/smsAccount/smsAccount.events.js b/server/api/smsAccount/smsAccount.events.js index 204231f..6a4e8c8 100644 --- a/server/api/smsAccount/smsAccount.events.js +++ b/server/api/smsAccount/smsAccount.events.js @@ -1 +1 @@ -const a543_0x3288=['remove','addHook','save','emit','events','../../mysqldb','undefined','SmsAccount','setMaxListeners'];(function(_0x412063,_0x328883){const _0x4e5086=function(_0x2fdc18){while(--_0x2fdc18){_0x412063['push'](_0x412063['shift']());}};_0x4e5086(++_0x328883);}(a543_0x3288,0x8b));const a543_0x4e50=function(_0x412063,_0x328883){_0x412063=_0x412063-0x0;let _0x4e5086=a543_0x3288[_0x412063];return _0x4e5086;};const _0x2cbf16=a543_0x4e50;'use strict';const EventEmitter=require(_0x2cbf16('0x0')),SmsAccount=require(_0x2cbf16('0x1'))['db'][_0x2cbf16('0x3')],SmsAccountEvents=new EventEmitter();SmsAccountEvents[_0x2cbf16('0x4')](0x0);const events={'afterCreate':_0x2cbf16('0x7'),'afterUpdate':'update','afterDestroy':_0x2cbf16('0x5')};function emitEvent(_0x2fdc18){return function(_0x448894){const _0x1e1894=a543_0x4e50;SmsAccountEvents[_0x1e1894('0x8')](_0x2fdc18+':'+_0x448894['id'],_0x448894),SmsAccountEvents[_0x1e1894('0x8')](_0x2fdc18,_0x448894);};}for(const e in events){if(typeof events[e]!==_0x2cbf16('0x2')){const event=events[e];SmsAccount[_0x2cbf16('0x6')](e,emitEvent(event));}}module['exports']=SmsAccountEvents; \ No newline at end of file +const a651_0x48d5=['update','SmsAccount','../../mysqldb','undefined','remove','events','exports','save'];(function(_0x5bd3b6,_0xb0a928){const _0x48d5e2=function(_0x1a5743){while(--_0x1a5743){_0x5bd3b6['push'](_0x5bd3b6['shift']());}};_0x48d5e2(++_0xb0a928);}(a651_0x48d5,0x9f));const a651_0x1a57=function(_0x5bd3b6,_0xb0a928){_0x5bd3b6=_0x5bd3b6-0x152;let _0x48d5e2=a651_0x48d5[_0x5bd3b6];return _0x48d5e2;};const a651_0x5e2142=a651_0x1a57;'use strict';const EventEmitter=require(a651_0x5e2142(0x158)),SmsAccount=require(a651_0x5e2142(0x155))['db'][a651_0x5e2142(0x154)],SmsAccountEvents=new EventEmitter();SmsAccountEvents['setMaxListeners'](0x0);const events={'afterCreate':a651_0x5e2142(0x152),'afterUpdate':a651_0x5e2142(0x153),'afterDestroy':a651_0x5e2142(0x157)};function emitEvent(_0x411e68){return function(_0x46a34e){SmsAccountEvents['emit'](_0x411e68+':'+_0x46a34e['id'],_0x46a34e),SmsAccountEvents['emit'](_0x411e68,_0x46a34e);};}for(const e in events){if(typeof events[e]!==a651_0x5e2142(0x156)){const event=events[e];SmsAccount['addHook'](e,emitEvent(event));}}module[a651_0x5e2142(0x159)]=SmsAccountEvents; \ No newline at end of file diff --git a/server/api/smsAccount/smsAccount.model.js b/server/api/smsAccount/smsAccount.model.js index 5d1b9c2..5cc4dba 100644 --- a/server/api/smsAccount/smsAccount.model.js +++ b/server/api/smsAccount/smsAccount.model.js @@ -1 +1 @@ -const a544_0x2e2a=['define','SmsAccount','exports'];(function(_0x56a1ac,_0x2e2a6f){const _0x1f8e08=function(_0x584dea){while(--_0x584dea){_0x56a1ac['push'](_0x56a1ac['shift']());}};_0x1f8e08(++_0x2e2a6f);}(a544_0x2e2a,0x116));const a544_0x1f8e=function(_0x56a1ac,_0x2e2a6f){_0x56a1ac=_0x56a1ac-0x0;let _0x1f8e08=a544_0x2e2a[_0x56a1ac];return _0x1f8e08;};const _0x1882db=a544_0x1f8e;'use strict';const attributes=require('./smsAccount.attributes');module[_0x1882db('0x0')]=function(_0x584dea){const _0xfedd6=_0x1882db,_0x41631f=_0x584dea[_0xfedd6('0x1')](_0xfedd6('0x2'),attributes,{'tableName':'sms_accounts','paranoid':![],'indexes':[],'timestamps':!![]});return _0x41631f;}; \ No newline at end of file +const a652_0x42a2=['./smsAccount.options','exports','sequelize','./smsAccount.attributes','SmsAccount','function','init'];(function(_0x1fec67,_0x105f2d){const _0x42a257=function(_0x27dda4){while(--_0x27dda4){_0x1fec67['push'](_0x1fec67['shift']());}};_0x42a257(++_0x105f2d);}(a652_0x42a2,0x11e));const a652_0x27dd=function(_0x1fec67,_0x105f2d){_0x1fec67=_0x1fec67-0x8f;let _0x42a257=a652_0x42a2[_0x1fec67];return _0x42a257;};const a652_0x30931e=a652_0x27dd;'use strict';const {Model}=require(a652_0x30931e(0x92)),{attributes}=require(a652_0x30931e(0x93)),{options}=require(a652_0x30931e(0x90));class SmsAccount extends Model{}function init(_0x2eb0f8,_0x105242){const _0x47f8be=a652_0x30931e,_0x3a5fc6=options(_0x2eb0f8),_0x472979=typeof _0x105242===_0x47f8be(0x95)?_0x105242(_0x3a5fc6):_0x3a5fc6;return SmsAccount[_0x47f8be(0x8f)](attributes,_0x472979),SmsAccount;}module[a652_0x30931e(0x91)][a652_0x30931e(0x94)]=SmsAccount,module[a652_0x30931e(0x91)][a652_0x30931e(0x8f)]=init; \ No newline at end of file diff --git a/server/api/smsAccount/smsAccount.options.js b/server/api/smsAccount/smsAccount.options.js new file mode 100644 index 0000000..4aceabc --- /dev/null +++ b/server/api/smsAccount/smsAccount.options.js @@ -0,0 +1 @@ +var a653_0x4faa=['exports','sms_accounts'];(function(_0x2cfacc,_0x5aa5c8){var _0x4faa6f=function(_0x1f55cf){while(--_0x1f55cf){_0x2cfacc['push'](_0x2cfacc['shift']());}};_0x4faa6f(++_0x5aa5c8);}(a653_0x4faa,0x129));var a653_0x1f55=function(_0x2cfacc,_0x5aa5c8){_0x2cfacc=_0x2cfacc-0x15a;var _0x4faa6f=a653_0x4faa[_0x2cfacc];return _0x4faa6f;};var a653_0x46b1ad=a653_0x1f55;function options(_0x48a00a){var _0x1edecb=a653_0x1f55;return{'sequelize':_0x48a00a,'tableName':_0x1edecb(0x15a),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a653_0x46b1ad(0x15b)]['options']=options; \ No newline at end of file diff --git a/server/api/smsAccount/smsAccount.rpc.js b/server/api/smsAccount/smsAccount.rpc.js index e42c7c2..23bab0e 100644 --- a/server/api/smsAccount/smsAccount.rpc.js +++ b/server/api/smsAccount/smsAccount.rpc.js @@ -1 +1 @@ -const a545_0xd785=['attributes','../../mysqldb','raw','where','options','catch','stringify','include','debug','register','model','then','error','../../rediscache','findOne','info','message','SmsAccount','ShowSmsAccount','map'];(function(_0x41db32,_0xd78556){const _0x1767f8=function(_0x1b0fcc){while(--_0x1b0fcc){_0x41db32['push'](_0x41db32['shift']());}};_0x1767f8(++_0xd78556);}(a545_0xd785,0x170));const a545_0x1767=function(_0x41db32,_0xd78556){_0x41db32=_0x41db32-0x0;let _0x1767f8=a545_0xd785[_0x41db32];return _0x1767f8;};const _0x552462=a545_0x1767;'use strict';const db=require(_0x552462('0xd'))['db'],logger=require('../../config/logger')('rpc'),_=require('lodash'),{getSocket}=require(_0x552462('0x5')),socket=getSocket();require('./smsAccount.socket')[_0x552462('0x1')](socket),exports[_0x552462('0xa')]=function(_0x1b0fcc){const _0xaaa9c8=this;return new Promise(function(_0x3592cb,_0x48416f){const _0x541b31=a545_0x1767;return db[_0x541b31('0x9')][_0x541b31('0x6')]({'raw':_0x1b0fcc[_0x541b31('0x10')]?_0x1b0fcc[_0x541b31('0x10')][_0x541b31('0xe')]===undefined?!![]:![]:!![],'where':_0x1b0fcc[_0x541b31('0x10')]?_0x1b0fcc[_0x541b31('0x10')][_0x541b31('0xf')]||null:null,'attributes':_0x1b0fcc['options']?_0x1b0fcc[_0x541b31('0x10')]['attributes']||null:null,'include':_0x1b0fcc[_0x541b31('0x10')]?_0x1b0fcc[_0x541b31('0x10')][_0x541b31('0x13')]?_[_0x541b31('0xb')](_0x1b0fcc[_0x541b31('0x10')][_0x541b31('0x13')],function(_0x114e39){const _0x1cf7a3=_0x541b31;return{'model':db[_0x114e39[_0x1cf7a3('0x2')]],'as':_0x114e39['as'],'attributes':_0x114e39[_0x1cf7a3('0xc')],'include':_0x114e39['include']?_[_0x1cf7a3('0xb')](_0x114e39[_0x1cf7a3('0x13')],function(_0x48897a){const _0x5ded7d=_0x1cf7a3;return{'model':db[_0x48897a[_0x5ded7d('0x2')]],'as':_0x48897a['as'],'attributes':_0x48897a[_0x5ded7d('0xc')],'include':_0x48897a[_0x5ded7d('0x13')]?_['map'](_0x48897a[_0x5ded7d('0x13')],function(_0x124e88){const _0x2498a2=_0x5ded7d;return{'model':db[_0x124e88[_0x2498a2('0x2')]],'as':_0x124e88['as'],'attributes':_0x124e88[_0x2498a2('0xc')]};}):[]};}):[]};}):[]:[]})[_0x541b31('0x3')](function(_0x1889ed){const _0x51d383=_0x541b31;logger[_0x51d383('0x7')](_0x51d383('0xa'),_0x1b0fcc),logger[_0x51d383('0x0')](_0x51d383('0xa'),_0x1b0fcc,JSON[_0x51d383('0x12')](_0x1889ed)),_0x3592cb(_0x1889ed);})[_0x541b31('0x11')](function(_0x43d007){const _0x45a428=_0x541b31;logger[_0x45a428('0x4')](_0x45a428('0xa'),_0x43d007['message'],_0x1b0fcc),_0x48416f(_0xaaa9c8[_0x45a428('0x4')](0x1f4,_0x43d007[_0x45a428('0x8')]));});});}; \ No newline at end of file +const a654_0x513a=['info','lodash','message','options','findOne','../../config/logger','include','attributes','register','then','raw','ShowSmsAccount','../../mysqldb','rpc','./smsAccount.socket','map','where','catch','model','debug','../../rediscache'];(function(_0x530c5a,_0x4d1dbe){const _0x513ae0=function(_0x48eda1){while(--_0x48eda1){_0x530c5a['push'](_0x530c5a['shift']());}};_0x513ae0(++_0x4d1dbe);}(a654_0x513a,0xa6));const a654_0x48ed=function(_0x530c5a,_0x4d1dbe){_0x530c5a=_0x530c5a-0x105;let _0x513ae0=a654_0x513a[_0x530c5a];return _0x513ae0;};const a654_0x5f1bd0=a654_0x48ed;'use strict';const db=require(a654_0x5f1bd0(0x113))['db'],logger=require(a654_0x5f1bd0(0x10c))(a654_0x5f1bd0(0x114)),_=require(a654_0x5f1bd0(0x108)),{getSocket}=require(a654_0x5f1bd0(0x106)),socket=getSocket();require(a654_0x5f1bd0(0x115))[a654_0x5f1bd0(0x10f)](socket),exports[a654_0x5f1bd0(0x112)]=function(_0x557275){const _0x3059c8=this;return new Promise(function(_0x564f4e,_0x322d75){const _0x5b36f0=a654_0x48ed;return db['SmsAccount'][_0x5b36f0(0x10b)]({'raw':_0x557275[_0x5b36f0(0x10a)]?_0x557275[_0x5b36f0(0x10a)][_0x5b36f0(0x111)]===undefined?!![]:![]:!![],'where':_0x557275[_0x5b36f0(0x10a)]?_0x557275['options'][_0x5b36f0(0x117)]||null:null,'attributes':_0x557275[_0x5b36f0(0x10a)]?_0x557275['options'][_0x5b36f0(0x10e)]||null:null,'include':_0x557275[_0x5b36f0(0x10a)]?_0x557275[_0x5b36f0(0x10a)][_0x5b36f0(0x10d)]?_['map'](_0x557275[_0x5b36f0(0x10a)][_0x5b36f0(0x10d)],function(_0x2f7d5f){const _0x5622e4=_0x5b36f0;return{'model':db[_0x2f7d5f[_0x5622e4(0x119)]],'as':_0x2f7d5f['as'],'attributes':_0x2f7d5f['attributes'],'include':_0x2f7d5f[_0x5622e4(0x10d)]?_[_0x5622e4(0x116)](_0x2f7d5f[_0x5622e4(0x10d)],function(_0x20306d){const _0x536082=_0x5622e4;return{'model':db[_0x20306d['model']],'as':_0x20306d['as'],'attributes':_0x20306d['attributes'],'include':_0x20306d[_0x536082(0x10d)]?_[_0x536082(0x116)](_0x20306d[_0x536082(0x10d)],function(_0x547481){const _0x1cfc15=_0x536082;return{'model':db[_0x547481[_0x1cfc15(0x119)]],'as':_0x547481['as'],'attributes':_0x547481[_0x1cfc15(0x10e)]};}):[]};}):[]};}):[]:[]})[_0x5b36f0(0x110)](function(_0x429fa8){const _0x6a30ad=_0x5b36f0;logger[_0x6a30ad(0x107)](_0x6a30ad(0x112),_0x557275),logger[_0x6a30ad(0x105)](_0x6a30ad(0x112),_0x557275,JSON['stringify'](_0x429fa8)),_0x564f4e(_0x429fa8);})[_0x5b36f0(0x118)](function(_0x4eb435){const _0x2ab483=_0x5b36f0;logger['error'](_0x2ab483(0x112),_0x4eb435[_0x2ab483(0x109)],_0x557275),_0x322d75(_0x3059c8['error'](0x1f4,_0x4eb435[_0x2ab483(0x109)]));});});}; \ No newline at end of file diff --git a/server/api/smsAccount/smsAccount.socket.js b/server/api/smsAccount/smsAccount.socket.js index af78c7a..326ff80 100644 --- a/server/api/smsAccount/smsAccount.socket.js +++ b/server/api/smsAccount/smsAccount.socket.js @@ -1 +1 @@ -const a546_0x3e90=['save','length','smsAccount:','update','remove','emit','register'];(function(_0x2857da,_0x3e9052){const _0x485550=function(_0x5a82ce){while(--_0x5a82ce){_0x2857da['push'](_0x2857da['shift']());}};_0x485550(++_0x3e9052);}(a546_0x3e90,0x68));const a546_0x4855=function(_0x2857da,_0x3e9052){_0x2857da=_0x2857da-0x0;let _0x485550=a546_0x3e90[_0x2857da];return _0x485550;};const _0x2eaea1=a546_0x4855;'use strict';const SmsAccountEvents=require('./smsAccount.events'),events=[_0x2eaea1('0x1'),_0x2eaea1('0x5'),_0x2eaea1('0x4')];function createListener(_0x5a82ce,_0x59d594){return function(_0x1fba14){const _0x3df277=a546_0x4855;_0x59d594[_0x3df277('0x6')](_0x5a82ce,_0x1fba14);};}exports[_0x2eaea1('0x0')]=function(_0x59e300){const _0x1186a5=_0x2eaea1;for(let _0x16b84a=0x0,_0xcd7745=events[_0x1186a5('0x2')];_0x16b84a<_0xcd7745;_0x16b84a++){const _0x2fc7ae=events[_0x16b84a],_0x8c5d57=createListener(_0x1186a5('0x3')+_0x2fc7ae,_0x59e300);SmsAccountEvents['on'](_0x2fc7ae,_0x8c5d57);}}; \ No newline at end of file +const a655_0x5c19=['smsAccount:','update','./smsAccount.events','save','length','register','remove'];(function(_0x4d0e1a,_0x2958ab){const _0x5c1902=function(_0x1775dc){while(--_0x1775dc){_0x4d0e1a['push'](_0x4d0e1a['shift']());}};_0x5c1902(++_0x2958ab);}(a655_0x5c19,0xe3));const a655_0x1775=function(_0x4d0e1a,_0x2958ab){_0x4d0e1a=_0x4d0e1a-0xf2;let _0x5c1902=a655_0x5c19[_0x4d0e1a];return _0x5c1902;};const a655_0x2762fb=a655_0x1775;'use strict';const SmsAccountEvents=require(a655_0x2762fb(0xf8)),events=[a655_0x2762fb(0xf2),a655_0x2762fb(0xf5),a655_0x2762fb(0xf7)];function createListener(_0x5cf2e1,_0x3cb963){return function(_0x4ab07e){_0x3cb963['emit'](_0x5cf2e1,_0x4ab07e);};}exports[a655_0x2762fb(0xf4)]=function(_0x133d03){const _0x154d1f=a655_0x2762fb;for(let _0x3c515c=0x0,_0x28c634=events[_0x154d1f(0xf3)];_0x3c515c<_0x28c634;_0x3c515c++){const _0x500ccd=events[_0x3c515c],_0x4faf90=createListener(_0x154d1f(0xf6)+_0x500ccd,_0x133d03);SmsAccountEvents['on'](_0x500ccd,_0x4faf90);}}; \ No newline at end of file diff --git a/server/api/smsApplication/index.js b/server/api/smsApplication/index.js index 0251d59..45bc671 100644 --- a/server/api/smsApplication/index.js +++ b/server/api/smsApplication/index.js @@ -1 +1 @@ -const a547_0x2215=['show','exports','delete','isAuthenticated','./smsApplication.controller','Router','/:id','create','index','../../components/auth/service','update','destroy','express','get'];(function(_0x5c76a5,_0x221559){const _0x3148c9=function(_0x1efa75){while(--_0x1efa75){_0x5c76a5['push'](_0x5c76a5['shift']());}};_0x3148c9(++_0x221559);}(a547_0x2215,0x19a));const a547_0x3148=function(_0x5c76a5,_0x221559){_0x5c76a5=_0x5c76a5-0x0;let _0x3148c9=a547_0x2215[_0x5c76a5];return _0x3148c9;};const _0x273758=a547_0x3148;'use strict';const express=require(_0x273758('0x8')),router=express[_0x273758('0x1')](),auth=require(_0x273758('0x5')),controller=require(_0x273758('0x0'));router[_0x273758('0x9')]('/',auth[_0x273758('0xd')](),controller[_0x273758('0x4')]),router['get']('/:id',auth[_0x273758('0xd')](),controller[_0x273758('0xa')]),router['post']('/',auth[_0x273758('0xd')](),controller[_0x273758('0x3')]),router['put'](_0x273758('0x2'),auth['isAuthenticated'](),controller[_0x273758('0x6')]),router[_0x273758('0xc')]('/:id',auth[_0x273758('0xd')](),controller[_0x273758('0x7')]),module[_0x273758('0xb')]=router; \ No newline at end of file +const a656_0x12c4=['delete','exports','./smsApplication.controller','update','show','express','/:id','isAuthenticated','post','destroy','get','put'];(function(_0x33fa74,_0x231f4a){const _0x12c497=function(_0x2f85eb){while(--_0x2f85eb){_0x33fa74['push'](_0x33fa74['shift']());}};_0x12c497(++_0x231f4a);}(a656_0x12c4,0x67));const a656_0x2f85=function(_0x33fa74,_0x231f4a){_0x33fa74=_0x33fa74-0x70;let _0x12c497=a656_0x12c4[_0x33fa74];return _0x12c497;};const a656_0x3ad9a2=a656_0x2f85;'use strict';const express=require(a656_0x3ad9a2(0x7a)),router=express['Router'](),auth=require('../../components/auth/service'),controller=require(a656_0x3ad9a2(0x77));router['get']('/',auth[a656_0x3ad9a2(0x70)](),controller['index']),router[a656_0x3ad9a2(0x73)](a656_0x3ad9a2(0x7b),auth[a656_0x3ad9a2(0x70)](),controller[a656_0x3ad9a2(0x79)]),router[a656_0x3ad9a2(0x71)]('/',auth[a656_0x3ad9a2(0x70)](),controller['create']),router[a656_0x3ad9a2(0x74)](a656_0x3ad9a2(0x7b),auth['isAuthenticated'](),controller[a656_0x3ad9a2(0x78)]),router[a656_0x3ad9a2(0x75)](a656_0x3ad9a2(0x7b),auth[a656_0x3ad9a2(0x70)](),controller[a656_0x3ad9a2(0x72)]),module[a656_0x3ad9a2(0x76)]=router; \ No newline at end of file diff --git a/server/api/smsApplication/smsApplication.attributes.js b/server/api/smsApplication/smsApplication.attributes.js index 891ae5b..38577ea 100644 --- a/server/api/smsApplication/smsApplication.attributes.js +++ b/server/api/smsApplication/smsApplication.attributes.js @@ -1 +1 @@ -const a548_0x52c9=['sequelize','*,*,*,*','INTEGER','TEXT','STRING'];(function(_0x51de90,_0x52c94a){const _0x5d6e00=function(_0x2d5984){while(--_0x2d5984){_0x51de90['push'](_0x51de90['shift']());}};_0x5d6e00(++_0x52c94a);}(a548_0x52c9,0xb3));const a548_0x5d6e=function(_0x51de90,_0x52c94a){_0x51de90=_0x51de90-0x0;let _0x5d6e00=a548_0x52c9[_0x51de90];return _0x5d6e00;};const _0x3b7dae=a548_0x5d6e;'use strict';const Sequelize=require(_0x3b7dae('0x1'));module['exports']={'priority':{'type':Sequelize[_0x3b7dae('0x3')],'allowNull':![]},'app':{'type':Sequelize[_0x3b7dae('0x0')],'allowNull':![],'defaultValue':'noop'},'appdata':{'type':Sequelize[_0x3b7dae('0x4')]()},'description':{'type':Sequelize[_0x3b7dae('0x0')]},'interval':{'type':Sequelize[_0x3b7dae('0x0')],'defaultValue':_0x3b7dae('0x2')}}; \ No newline at end of file +const a657_0xe5f0=['TEXT','exports','noop','*,*,*,*','STRING'];(function(_0x407d44,_0x5aa469){const _0xe5f067=function(_0x3a8d72){while(--_0x3a8d72){_0x407d44['push'](_0x407d44['shift']());}};_0xe5f067(++_0x5aa469);}(a657_0xe5f0,0x139));const a657_0x3a8d=function(_0x407d44,_0x5aa469){_0x407d44=_0x407d44-0xab;let _0xe5f067=a657_0xe5f0[_0x407d44];return _0xe5f067;};const a657_0x63cd0=a657_0x3a8d;'use strict';const {DataTypes}=require('sequelize'),attributes={'priority':{'type':DataTypes['INTEGER'],'allowNull':![]},'app':{'type':DataTypes['STRING'],'allowNull':![],'defaultValue':a657_0x63cd0(0xaf)},'appdata':{'type':DataTypes[a657_0x63cd0(0xad)]()},'description':{'type':DataTypes['STRING']},'interval':{'type':DataTypes[a657_0x63cd0(0xac)],'defaultValue':a657_0x63cd0(0xab)}};module[a657_0x63cd0(0xae)]['attributes']=attributes; \ No newline at end of file diff --git a/server/api/smsApplication/smsApplication.controller.js b/server/api/smsApplication/smsApplication.controller.js index a2fa9a4..b25beb0 100644 --- a/server/api/smsApplication/smsApplication.controller.js +++ b/server/api/smsApplication/smsApplication.controller.js @@ -1 +1 @@ -const a549_0x5e55=['sort','sequelize','keys','body','where','catch','params','lodash','offset','merge','rawAttributes','options','stack','findOne','count','send','like','limit','filters','error','nolimit','update','status','set','sendStatus','attributes','type','json','fieldName','end','show','query','length','filter','pick','includeAll','map','then','create','model','include','../../config/logger','rows','api','name','undefined','fields','destroy','key','SmsApplication','Content-Range','../../components/parsers/qs','intersection'];(function(_0x406302,_0x5e559c){const _0x4c5835=function(_0x382e97){while(--_0x382e97){_0x406302['push'](_0x406302['shift']());}};_0x4c5835(++_0x5e559c);}(a549_0x5e55,0x110));const a549_0x4c58=function(_0x406302,_0x5e559c){_0x406302=_0x406302-0x0;let _0x4c5835=a549_0x5e55[_0x406302];return _0x4c5835;};const _0x52aaad=a549_0x4c58;'use strict';const _=require(_0x52aaad('0x0')),qs=require(_0x52aaad('0x2c')),logger=require(_0x52aaad('0x22'))(_0x52aaad('0x24')),db=require('../../mysqldb')['db'],{Op}=require(_0x52aaad('0x2f'));function respondWithResult(_0x382e97,_0x8c6365){return _0x8c6365=_0x8c6365||0xc8,function(_0x2b656b){const _0x200d95=a549_0x4c58;if(_0x2b656b)return _0x382e97[_0x200d95('0xf')](_0x8c6365)[_0x200d95('0x14')](_0x2b656b);};}function respondWithFilteredResult(_0x4c9901,_0x28a82f){return function(_0x45516d){const _0x4305b2=a549_0x4c58;if(_0x45516d){const _0xa29dee=_0x45516d['count'],_0x1deed1=_0x28a82f[_0x4305b2('0x1')];let _0x29e33b=_0x28a82f['offset']+_0x28a82f[_0x4305b2('0xa')],_0x860b03;return _0x29e33b>=_0xa29dee?(_0x29e33b=_0xa29dee,_0x860b03=0xc8):_0x860b03=0xce,_0x4c9901[_0x4305b2('0xf')](_0x860b03),_0x4c9901[_0x4305b2('0x10')](_0x4305b2('0x2b'),_0x1deed1+'-'+_0x29e33b+'/'+_0xa29dee)[_0x4305b2('0x14')](_0x45516d);}return null;};}function saveUpdates(_0x1bbe35){return function(_0x51b360){const _0x35cde0=a549_0x4c58;if(_0x51b360)return _0x51b360['update'](_0x1bbe35)[_0x35cde0('0x1e')](function(_0x59664c){return _0x59664c;});return null;};}function removeEntity(_0x3ea2be){return function(_0x4030a1){const _0x2b9f5f=a549_0x4c58;if(_0x4030a1)return _0x4030a1[_0x2b9f5f('0x28')]()['then'](function(){const _0xba26ca=_0x2b9f5f;_0x3ea2be[_0xba26ca('0xf')](0xcc)[_0xba26ca('0x16')]();});};}function handleEntityNotFound(_0x23647f){return function(_0x386bdf){const _0x4e6045=a549_0x4c58;return!_0x386bdf&&_0x23647f[_0x4e6045('0x11')](0x194),_0x386bdf;};}function handleError(_0x155290,_0x3a3fc3){return _0x3a3fc3=_0x3a3fc3||0x1f4,function(_0x387186){const _0xa0cd20=a549_0x4c58;logger[_0xa0cd20('0xc')](_0x387186[_0xa0cd20('0x5')]),_0x387186[_0xa0cd20('0x25')]&&delete _0x387186['name'],_0x155290[_0xa0cd20('0xf')](_0x3a3fc3)[_0xa0cd20('0x8')](_0x387186);};}exports['index']=function(_0x33e705,_0x122ade){const _0x41a208=_0x52aaad;let _0x4d7ffa={};const _0x28e606={},_0x54ce08={'count':0x0,'rows':[]},_0x272b86=_['map'](db[_0x41a208('0x2a')]['rawAttributes'],function(_0x2d8a6f){const _0x409055=_0x41a208;return{'name':_0x2d8a6f[_0x409055('0x15')],'type':_0x2d8a6f[_0x409055('0x13')][_0x409055('0x29')]};});_0x28e606[_0x41a208('0x20')]=_[_0x41a208('0x1d')](_0x272b86,_0x41a208('0x25')),_0x28e606[_0x41a208('0x18')]=_[_0x41a208('0x30')](_0x33e705['query']),_0x28e606[_0x41a208('0xb')]=_[_0x41a208('0x2d')](_0x28e606[_0x41a208('0x20')],_0x28e606[_0x41a208('0x18')]),_0x4d7ffa['attributes']=_[_0x41a208('0x2d')](_0x28e606[_0x41a208('0x20')],qs[_0x41a208('0x27')](_0x33e705[_0x41a208('0x18')][_0x41a208('0x27')])),_0x4d7ffa[_0x41a208('0x12')]=_0x4d7ffa[_0x41a208('0x12')][_0x41a208('0x19')]?_0x4d7ffa[_0x41a208('0x12')]:_0x28e606[_0x41a208('0x20')];typeof _0x33e705[_0x41a208('0x18')][_0x41a208('0xd')]===_0x41a208('0x26')&&(_0x4d7ffa[_0x41a208('0xa')]=qs[_0x41a208('0xa')](_0x33e705['query'][_0x41a208('0xa')]),_0x4d7ffa[_0x41a208('0x1')]=qs[_0x41a208('0x1')](_0x33e705[_0x41a208('0x18')][_0x41a208('0x1')]));_0x4d7ffa['order']=qs[_0x41a208('0x2e')](_0x33e705[_0x41a208('0x18')][_0x41a208('0x2e')]),_0x4d7ffa[_0x41a208('0x32')]=qs[_0x41a208('0xb')](_[_0x41a208('0x1b')](_0x33e705['query'],_0x28e606['filters']),_0x272b86);_0x33e705[_0x41a208('0x18')]['filter']&&(_0x4d7ffa[_0x41a208('0x32')]=_[_0x41a208('0x2')](_0x4d7ffa['where'],{[Op['or']]:_[_0x41a208('0x1d')](_0x272b86,function(_0x5d413e){const _0x3fc1b5=_0x41a208;if(_0x5d413e[_0x3fc1b5('0x13')]!=='VIRTUAL'){const _0x343f15={};return _0x343f15[_0x5d413e['name']]={[Op[_0x3fc1b5('0x9')]]:'%'+_0x33e705['query'][_0x3fc1b5('0x1a')]+'%'},_0x343f15;}})}));_0x4d7ffa=_[_0x41a208('0x2')]({},_0x4d7ffa,_0x33e705[_0x41a208('0x4')]);const _0x79f887={'where':_0x4d7ffa[_0x41a208('0x32')]};return db['SmsApplication'][_0x41a208('0x7')](_0x79f887)[_0x41a208('0x1e')](function(_0x4b083f){const _0x2e8b7c=_0x41a208;return _0x54ce08[_0x2e8b7c('0x7')]=_0x4b083f,_0x33e705[_0x2e8b7c('0x18')]['includeAll']&&(_0x4d7ffa[_0x2e8b7c('0x21')]=[{'all':!![]}]),db[_0x2e8b7c('0x2a')]['findAll'](_0x4d7ffa);})['then'](function(_0x34cab8){const _0x59a390=_0x41a208;return _0x54ce08[_0x59a390('0x23')]=_0x34cab8,_0x54ce08;})['then'](respondWithFilteredResult(_0x122ade,_0x4d7ffa))[_0x41a208('0x33')](handleError(_0x122ade,null));},exports[_0x52aaad('0x17')]=function(_0x4ff5a8,_0x1f90f8){const _0x15839e=_0x52aaad;let _0x2a559d={'raw':!![],'where':{'id':_0x4ff5a8['params']['id']}};const _0x35a82c={};return _0x35a82c[_0x15839e('0x20')]=_[_0x15839e('0x30')](db[_0x15839e('0x2a')][_0x15839e('0x3')]),_0x35a82c[_0x15839e('0x18')]=_[_0x15839e('0x30')](_0x4ff5a8[_0x15839e('0x18')]),_0x35a82c['filters']=_[_0x15839e('0x2d')](_0x35a82c[_0x15839e('0x20')],_0x35a82c[_0x15839e('0x18')]),_0x2a559d[_0x15839e('0x12')]=_['intersection'](_0x35a82c['model'],qs[_0x15839e('0x27')](_0x4ff5a8[_0x15839e('0x18')]['fields'])),_0x2a559d['attributes']=_0x2a559d[_0x15839e('0x12')][_0x15839e('0x19')]?_0x2a559d[_0x15839e('0x12')]:_0x35a82c[_0x15839e('0x20')],_0x4ff5a8['query'][_0x15839e('0x1c')]&&(_0x2a559d['include']=[{'all':!![]}]),_0x2a559d=_[_0x15839e('0x2')]({},_0x2a559d,_0x4ff5a8[_0x15839e('0x4')]),db['SmsApplication'][_0x15839e('0x6')](_0x2a559d)[_0x15839e('0x1e')](handleEntityNotFound(_0x1f90f8,null))[_0x15839e('0x1e')](respondWithResult(_0x1f90f8,null))['catch'](handleError(_0x1f90f8,null));},exports['create']=function(_0x1dc904,_0x7e86c3){const _0x4f6315=_0x52aaad;return db['SmsApplication'][_0x4f6315('0x1f')](_0x1dc904[_0x4f6315('0x31')],{})[_0x4f6315('0x1e')](respondWithResult(_0x7e86c3,0xc9))[_0x4f6315('0x33')](handleError(_0x7e86c3,null));},exports[_0x52aaad('0xe')]=function(_0x3ab6b7,_0x33a12a){const _0x342e41=_0x52aaad;return _0x3ab6b7[_0x342e41('0x31')]['id']&&delete _0x3ab6b7[_0x342e41('0x31')]['id'],db['SmsApplication']['findOne']({'where':{'id':_0x3ab6b7[_0x342e41('0x34')]['id']}})[_0x342e41('0x1e')](handleEntityNotFound(_0x33a12a,null))[_0x342e41('0x1e')](saveUpdates(_0x3ab6b7[_0x342e41('0x31')],null))[_0x342e41('0x1e')](respondWithResult(_0x33a12a,null))[_0x342e41('0x33')](handleError(_0x33a12a,null));},exports['destroy']=function(_0x5e65b7,_0x561188){const _0x37373b=_0x52aaad;return db[_0x37373b('0x2a')][_0x37373b('0x6')]({'where':{'id':_0x5e65b7[_0x37373b('0x34')]['id']}})['then'](handleEntityNotFound(_0x561188,null))[_0x37373b('0x1e')](removeEntity(_0x561188,null))[_0x37373b('0x33')](handleError(_0x561188,null));}; \ No newline at end of file +const a658_0x20e6=['VIRTUAL','name','attributes','merge','api','body','../../components/parsers/qs','filter','include','offset','fields','where','Content-Range','pick','options','error','params','then','type','end','model','map','create','send','sort','query','status','intersection','catch','stack','like','length','findOne','update','fieldName','count','keys','key','rows','filters','destroy','includeAll','../../config/logger','SmsApplication','nolimit','rawAttributes','sendStatus','show','order','json','limit','lodash'];(function(_0x46514d,_0x2c9aa1){const _0x20e656=function(_0x86bb8e){while(--_0x86bb8e){_0x46514d['push'](_0x46514d['shift']());}};_0x20e656(++_0x2c9aa1);}(a658_0x20e6,0x196));const a658_0x86bb=function(_0x46514d,_0x2c9aa1){_0x46514d=_0x46514d-0xcf;let _0x20e656=a658_0x20e6[_0x46514d];return _0x20e656;};const a658_0x965cf6=a658_0x86bb;'use strict';const _=require(a658_0x965cf6(0xd8)),qs=require(a658_0x965cf6(0xdf)),logger=require(a658_0x965cf6(0xcf))(a658_0x965cf6(0xdd)),{db}=require('../../mysqldb'),{Op}=require('sequelize');function respondWithResult(_0x19e506,_0x227918){return _0x227918=_0x227918||0xc8,function(_0x1ab323){const _0x38d4f0=a658_0x86bb;if(_0x1ab323)return _0x19e506[_0x38d4f0(0xf3)](_0x227918)[_0x38d4f0(0xd6)](_0x1ab323);};}function respondWithFilteredResult(_0x4436d2,_0x2811a2){return function(_0x8bfd43){const _0x32cff0=a658_0x86bb;if(_0x8bfd43){const _0x4338f3=_0x8bfd43[_0x32cff0(0xfc)],_0x1adbc8=_0x2811a2[_0x32cff0(0xe2)];let _0x5e2980=_0x2811a2['offset']+_0x2811a2[_0x32cff0(0xd7)],_0x564a7d;return _0x5e2980>=_0x4338f3?(_0x5e2980=_0x4338f3,_0x564a7d=0xc8):_0x564a7d=0xce,_0x4436d2[_0x32cff0(0xf3)](_0x564a7d),_0x4436d2['set'](_0x32cff0(0xe5),_0x1adbc8+'-'+_0x5e2980+'/'+_0x4338f3)[_0x32cff0(0xd6)](_0x8bfd43);}return null;};}function saveUpdates(_0x408ccb){return function(_0x3bfe63){const _0x2937db=a658_0x86bb;if(_0x3bfe63)return _0x3bfe63[_0x2937db(0xfa)](_0x408ccb)['then'](function(_0x166d9f){return _0x166d9f;});return null;};}function removeEntity(_0x27ab58){return function(_0x168a4b){const _0x4768f7=a658_0x86bb;if(_0x168a4b)return _0x168a4b['destroy']()[_0x4768f7(0xea)](function(){const _0x2f625c=_0x4768f7;_0x27ab58[_0x2f625c(0xf3)](0xcc)[_0x2f625c(0xec)]();});};}function handleEntityNotFound(_0x3654ca){return function(_0x5b8348){const _0x4cec97=a658_0x86bb;return!_0x5b8348&&_0x3654ca[_0x4cec97(0xd3)](0x194),_0x5b8348;};}function handleError(_0x2692df,_0x4c6133){return _0x4c6133=_0x4c6133||0x1f4,function(_0x271aa3){const _0x1ae80c=a658_0x86bb;logger[_0x1ae80c(0xe8)](_0x271aa3[_0x1ae80c(0xf6)]),_0x271aa3[_0x1ae80c(0xda)]&&delete _0x271aa3[_0x1ae80c(0xda)],_0x2692df['status'](_0x4c6133)[_0x1ae80c(0xf0)](_0x271aa3);};}exports['index']=function(_0x28454d,_0x5638f7){const _0x539693=a658_0x965cf6;let _0x1853e7={};const _0x11d44f={},_0xcdd43f={'count':0x0,'rows':[]},_0xd01cb1=_['map'](db['SmsApplication'][_0x539693(0xd2)],function(_0x4a4b16){const _0x332915=_0x539693;return{'name':_0x4a4b16[_0x332915(0xfb)],'type':_0x4a4b16[_0x332915(0xeb)][_0x332915(0xfe)]};});_0x11d44f[_0x539693(0xed)]=_[_0x539693(0xee)](_0xd01cb1,_0x539693(0xda)),_0x11d44f[_0x539693(0xf2)]=_[_0x539693(0xfd)](_0x28454d[_0x539693(0xf2)]),_0x11d44f[_0x539693(0x100)]=_[_0x539693(0xf4)](_0x11d44f[_0x539693(0xed)],_0x11d44f['query']),_0x1853e7[_0x539693(0xdb)]=_['intersection'](_0x11d44f[_0x539693(0xed)],qs[_0x539693(0xe3)](_0x28454d[_0x539693(0xf2)]['fields'])),_0x1853e7[_0x539693(0xdb)]=_0x1853e7['attributes']['length']?_0x1853e7['attributes']:_0x11d44f[_0x539693(0xed)];typeof _0x28454d[_0x539693(0xf2)][_0x539693(0xd1)]==='undefined'&&(_0x1853e7[_0x539693(0xd7)]=qs[_0x539693(0xd7)](_0x28454d[_0x539693(0xf2)][_0x539693(0xd7)]),_0x1853e7[_0x539693(0xe2)]=qs[_0x539693(0xe2)](_0x28454d[_0x539693(0xf2)]['offset']));_0x1853e7[_0x539693(0xd5)]=qs[_0x539693(0xf1)](_0x28454d[_0x539693(0xf2)][_0x539693(0xf1)]),_0x1853e7[_0x539693(0xe4)]=qs[_0x539693(0x100)](_[_0x539693(0xe6)](_0x28454d['query'],_0x11d44f[_0x539693(0x100)]),_0xd01cb1);_0x28454d['query'][_0x539693(0xe0)]&&(_0x1853e7[_0x539693(0xe4)]=_[_0x539693(0xdc)](_0x1853e7['where'],{[Op['or']]:_[_0x539693(0xee)](_0xd01cb1,function(_0x40974d){const _0x5be2e6=_0x539693;if(_0x40974d[_0x5be2e6(0xeb)]!==_0x5be2e6(0xd9)){const _0x461686={};return _0x461686[_0x40974d[_0x5be2e6(0xda)]]={[Op[_0x5be2e6(0xf7)]]:'%'+_0x28454d['query'][_0x5be2e6(0xe0)]+'%'},_0x461686;}})}));_0x1853e7=_[_0x539693(0xdc)]({},_0x1853e7,_0x28454d[_0x539693(0xe7)]);const _0x5ef3de={'where':_0x1853e7['where']};return db[_0x539693(0xd0)][_0x539693(0xfc)](_0x5ef3de)['then'](function(_0x26862c){const _0x5bf2bc=_0x539693;return _0xcdd43f[_0x5bf2bc(0xfc)]=_0x26862c,_0x28454d[_0x5bf2bc(0xf2)][_0x5bf2bc(0x102)]&&(_0x1853e7[_0x5bf2bc(0xe1)]=[{'all':!![]}]),db[_0x5bf2bc(0xd0)]['findAll'](_0x1853e7);})[_0x539693(0xea)](function(_0x1956ee){const _0x38a69f=_0x539693;return _0xcdd43f[_0x38a69f(0xff)]=_0x1956ee,_0xcdd43f;})['then'](respondWithFilteredResult(_0x5638f7,_0x1853e7))[_0x539693(0xf5)](handleError(_0x5638f7,null));},exports[a658_0x965cf6(0xd4)]=function(_0x487e27,_0x39a0a7){const _0x35d797=a658_0x965cf6;let _0x3d3654={'raw':!![],'where':{'id':_0x487e27['params']['id']}};const _0x58fc36={};return _0x58fc36[_0x35d797(0xed)]=_[_0x35d797(0xfd)](db['SmsApplication'][_0x35d797(0xd2)]),_0x58fc36[_0x35d797(0xf2)]=_[_0x35d797(0xfd)](_0x487e27[_0x35d797(0xf2)]),_0x58fc36[_0x35d797(0x100)]=_['intersection'](_0x58fc36[_0x35d797(0xed)],_0x58fc36[_0x35d797(0xf2)]),_0x3d3654['attributes']=_['intersection'](_0x58fc36[_0x35d797(0xed)],qs['fields'](_0x487e27[_0x35d797(0xf2)][_0x35d797(0xe3)])),_0x3d3654[_0x35d797(0xdb)]=_0x3d3654[_0x35d797(0xdb)][_0x35d797(0xf8)]?_0x3d3654['attributes']:_0x58fc36[_0x35d797(0xed)],_0x487e27['query']['includeAll']&&(_0x3d3654[_0x35d797(0xe1)]=[{'all':!![]}]),_0x3d3654=_['merge']({},_0x3d3654,_0x487e27[_0x35d797(0xe7)]),db[_0x35d797(0xd0)]['findOne'](_0x3d3654)['then'](handleEntityNotFound(_0x39a0a7,null))['then'](respondWithResult(_0x39a0a7,null))['catch'](handleError(_0x39a0a7,null));},exports[a658_0x965cf6(0xef)]=function(_0x15fe98,_0x24dd16){const _0xf6ca32=a658_0x965cf6;return db[_0xf6ca32(0xd0)]['create'](_0x15fe98[_0xf6ca32(0xde)],{})[_0xf6ca32(0xea)](respondWithResult(_0x24dd16,0xc9))[_0xf6ca32(0xf5)](handleError(_0x24dd16,null));},exports[a658_0x965cf6(0xfa)]=function(_0x3534c1,_0x4dae19){const _0x3d7504=a658_0x965cf6;return _0x3534c1[_0x3d7504(0xde)]['id']&&delete _0x3534c1[_0x3d7504(0xde)]['id'],db[_0x3d7504(0xd0)][_0x3d7504(0xf9)]({'where':{'id':_0x3534c1[_0x3d7504(0xe9)]['id']}})[_0x3d7504(0xea)](handleEntityNotFound(_0x4dae19,null))[_0x3d7504(0xea)](saveUpdates(_0x3534c1[_0x3d7504(0xde)],null))[_0x3d7504(0xea)](respondWithResult(_0x4dae19,null))[_0x3d7504(0xf5)](handleError(_0x4dae19,null));},exports[a658_0x965cf6(0x101)]=function(_0x253f57,_0xf194a3){const _0x31d95d=a658_0x965cf6;return db[_0x31d95d(0xd0)][_0x31d95d(0xf9)]({'where':{'id':_0x253f57[_0x31d95d(0xe9)]['id']}})[_0x31d95d(0xea)](handleEntityNotFound(_0xf194a3,null))[_0x31d95d(0xea)](removeEntity(_0xf194a3,null))[_0x31d95d(0xf5)](handleError(_0xf194a3,null));}; \ No newline at end of file diff --git a/server/api/smsApplication/smsApplication.model.js b/server/api/smsApplication/smsApplication.model.js index 3bc7779..95eaac3 100644 --- a/server/api/smsApplication/smsApplication.model.js +++ b/server/api/smsApplication/smsApplication.model.js @@ -1 +1 @@ -const a550_0x5751=['sms_applications','./smsApplication.attributes','utf8mb4_unicode_ci','define','utf8mb4','SmsApplication'];(function(_0x300307,_0x57519c){const _0x3516ee=function(_0x39302e){while(--_0x39302e){_0x300307['push'](_0x300307['shift']());}};_0x3516ee(++_0x57519c);}(a550_0x5751,0x9b));const a550_0x3516=function(_0x300307,_0x57519c){_0x300307=_0x300307-0x0;let _0x3516ee=a550_0x5751[_0x300307];return _0x3516ee;};const _0x2f7bf7=a550_0x3516;'use strict';const attributes=require(_0x2f7bf7('0x2'));module['exports']=function(_0x39302e){const _0x38961d=_0x2f7bf7,_0x11873c=_0x39302e[_0x38961d('0x4')](_0x38961d('0x0'),attributes,{'tableName':_0x38961d('0x1'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x38961d('0x5'),'collate':_0x38961d('0x3')});return _0x11873c;}; \ No newline at end of file +const a659_0x18e6=['SmsApplication','init','./smsApplication.attributes'];(function(_0x4739ea,_0x58e5e9){const _0x18e6a1=function(_0x3841a4){while(--_0x3841a4){_0x4739ea['push'](_0x4739ea['shift']());}};_0x18e6a1(++_0x58e5e9);}(a659_0x18e6,0x10e));const a659_0x3841=function(_0x4739ea,_0x58e5e9){_0x4739ea=_0x4739ea-0xb1;let _0x18e6a1=a659_0x18e6[_0x4739ea];return _0x18e6a1;};const a659_0x31a302=a659_0x3841;'use strict';const {Model}=require('sequelize'),{attributes}=require(a659_0x31a302(0xb3)),{options}=require('./smsApplication.options');class SmsApplication extends Model{}function init(_0x1a32cf,_0x2fc2ad){const _0x26cd34=a659_0x31a302,_0x5212bb=options(_0x1a32cf),_0x3ff1c4=typeof _0x2fc2ad==='function'?_0x2fc2ad(_0x5212bb):_0x5212bb;return SmsApplication[_0x26cd34(0xb2)](attributes,_0x3ff1c4),SmsApplication;}module['exports'][a659_0x31a302(0xb1)]=SmsApplication,module['exports']['init']=init; \ No newline at end of file diff --git a/server/api/smsApplication/smsApplication.options.js b/server/api/smsApplication/smsApplication.options.js new file mode 100644 index 0000000..e631985 --- /dev/null +++ b/server/api/smsApplication/smsApplication.options.js @@ -0,0 +1 @@ +var a660_0x56f9=['utf8mb4_unicode_ci','utf8mb4','exports','sms_applications'];(function(_0x39c5fa,_0x47b7ad){var _0x56f9a6=function(_0x1311fa){while(--_0x1311fa){_0x39c5fa['push'](_0x39c5fa['shift']());}};_0x56f9a6(++_0x47b7ad);}(a660_0x56f9,0xb7));var a660_0x1311=function(_0x39c5fa,_0x47b7ad){_0x39c5fa=_0x39c5fa-0x64;var _0x56f9a6=a660_0x56f9[_0x39c5fa];return _0x56f9a6;};var a660_0x3ae4cf=a660_0x1311;function options(_0x3e0ba7){var _0x3043c1=a660_0x1311;return{'sequelize':_0x3e0ba7,'tableName':_0x3043c1(0x64),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x3043c1(0x66),'collate':_0x3043c1(0x65)};}module[a660_0x3ae4cf(0x67)]['options']=options; \ No newline at end of file diff --git a/server/api/smsInteraction/index.js b/server/api/smsInteraction/index.js index 4cad702..3ac605e 100644 --- a/server/api/smsInteraction/index.js +++ b/server/api/smsInteraction/index.js @@ -1 +1 @@ -const a551_0x989f=['index','smsinteraction:destroy','addTags','sms','/:id/tags','tracked','/:id/messages','getMessages','/describe','removeTags','express','/:id','get','addMessage','describe','post','../../components/auth/service','download','isAuthenticated','put','destroy','create','update','./smsInteraction.controller','/:id/download'];(function(_0x12619e,_0x989fe2){const _0x1155e2=function(_0x41590d){while(--_0x41590d){_0x12619e['push'](_0x12619e['shift']());}};_0x1155e2(++_0x989fe2);}(a551_0x989f,0x18b));const a551_0x1155=function(_0x12619e,_0x989fe2){_0x12619e=_0x12619e-0x0;let _0x1155e2=a551_0x989f[_0x12619e];return _0x1155e2;};const _0x5f390c=a551_0x1155;'use strict';const express=require(_0x5f390c('0xf')),router=express['Router'](),auth=require(_0x5f390c('0x15')),interaction=require('../../components/interaction/service'),controller=require(_0x5f390c('0x3'));router[_0x5f390c('0x11')]('/',auth['isAuthenticated'](),controller[_0x5f390c('0x5')]),router[_0x5f390c('0x11')](_0x5f390c('0xd'),auth[_0x5f390c('0x17')](),controller[_0x5f390c('0x13')]),router[_0x5f390c('0x11')]('/:id',auth[_0x5f390c('0x17')](),controller['show']),router[_0x5f390c('0x11')](_0x5f390c('0xb'),auth[_0x5f390c('0x17')](),controller[_0x5f390c('0xc')]),router[_0x5f390c('0x11')](_0x5f390c('0x4'),auth[_0x5f390c('0x17')](),controller[_0x5f390c('0x16')]),router['post']('/',auth[_0x5f390c('0x17')](),controller[_0x5f390c('0x1')]),router[_0x5f390c('0x14')](_0x5f390c('0xb'),auth[_0x5f390c('0x17')](),controller[_0x5f390c('0x12')]),router[_0x5f390c('0x14')](_0x5f390c('0x9'),auth[_0x5f390c('0x17')](),interaction[_0x5f390c('0xa')](_0x5f390c('0x8'),'smsinteraction:addtags'),controller[_0x5f390c('0x7')]),router[_0x5f390c('0x18')](_0x5f390c('0x10'),auth[_0x5f390c('0x17')](),interaction[_0x5f390c('0xa')](_0x5f390c('0x8'),'smsinteraction:update'),controller[_0x5f390c('0x2')]),router['delete'](_0x5f390c('0x10'),auth[_0x5f390c('0x17')](),interaction[_0x5f390c('0xa')](_0x5f390c('0x8'),_0x5f390c('0x6')),controller[_0x5f390c('0x0')]),router['delete']('/:id/tags',auth['isAuthenticated'](),controller[_0x5f390c('0xe')]),module['exports']=router; \ No newline at end of file +const a661_0x57ee=['update','show','download','./smsInteraction.controller','index','../../components/interaction/service','addMessage','/describe','destroy','isAuthenticated','post','exports','../../components/auth/service','get','smsinteraction:addtags','/:id/tags','/:id','describe','sms','/:id/messages','tracked','smsinteraction:destroy','addTags','getMessages','/:id/download','removeTags','delete'];(function(_0x2f9f9e,_0xb2e5d1){const _0x57ee8c=function(_0x1943cf){while(--_0x1943cf){_0x2f9f9e['push'](_0x2f9f9e['shift']());}};_0x57ee8c(++_0xb2e5d1);}(a661_0x57ee,0x7a));const a661_0x1943=function(_0x2f9f9e,_0xb2e5d1){_0x2f9f9e=_0x2f9f9e-0x66;let _0x57ee8c=a661_0x57ee[_0x2f9f9e];return _0x57ee8c;};const a661_0x168d38=a661_0x1943;'use strict';const express=require('express'),router=express['Router'](),auth=require(a661_0x168d38(0x7f)),interaction=require(a661_0x168d38(0x78)),controller=require(a661_0x168d38(0x76));router[a661_0x168d38(0x80)]('/',auth[a661_0x168d38(0x7c)](),controller[a661_0x168d38(0x77)]),router[a661_0x168d38(0x80)](a661_0x168d38(0x7a),auth[a661_0x168d38(0x7c)](),controller[a661_0x168d38(0x69)]),router['get'](a661_0x168d38(0x68),auth[a661_0x168d38(0x7c)](),controller[a661_0x168d38(0x74)]),router[a661_0x168d38(0x80)](a661_0x168d38(0x6b),auth['isAuthenticated'](),controller[a661_0x168d38(0x6f)]),router['get'](a661_0x168d38(0x70),auth[a661_0x168d38(0x7c)](),controller[a661_0x168d38(0x75)]),router[a661_0x168d38(0x7d)]('/',auth[a661_0x168d38(0x7c)](),controller['create']),router[a661_0x168d38(0x7d)](a661_0x168d38(0x6b),auth[a661_0x168d38(0x7c)](),controller[a661_0x168d38(0x79)]),router[a661_0x168d38(0x7d)](a661_0x168d38(0x67),auth[a661_0x168d38(0x7c)](),interaction[a661_0x168d38(0x6c)](a661_0x168d38(0x6a),a661_0x168d38(0x66)),controller[a661_0x168d38(0x6e)]),router['put'](a661_0x168d38(0x68),auth[a661_0x168d38(0x7c)](),interaction[a661_0x168d38(0x6c)](a661_0x168d38(0x6a),'smsinteraction:update'),controller[a661_0x168d38(0x73)]),router[a661_0x168d38(0x72)](a661_0x168d38(0x68),auth[a661_0x168d38(0x7c)](),interaction[a661_0x168d38(0x6c)]('sms',a661_0x168d38(0x6d)),controller[a661_0x168d38(0x7b)]),router[a661_0x168d38(0x72)](a661_0x168d38(0x67),auth[a661_0x168d38(0x7c)](),controller[a661_0x168d38(0x71)]),module[a661_0x168d38(0x7e)]=router; \ No newline at end of file diff --git a/server/api/smsInteraction/smsInteraction.attributes.js b/server/api/smsInteraction/smsInteraction.attributes.js index 43e12be..1fdda2a 100644 --- a/server/api/smsInteraction/smsInteraction.attributes.js +++ b/server/api/smsInteraction/smsInteraction.attributes.js @@ -1 +1 @@ -const a552_0x4ef8=['sequelize','STRING','DATE','ENUM','exports'];(function(_0x248f6a,_0x4ef8e8){const _0x34ef22=function(_0x30ace4){while(--_0x30ace4){_0x248f6a['push'](_0x248f6a['shift']());}};_0x34ef22(++_0x4ef8e8);}(a552_0x4ef8,0x1f1));const a552_0x34ef=function(_0x248f6a,_0x4ef8e8){_0x248f6a=_0x248f6a-0x0;let _0x34ef22=a552_0x4ef8[_0x248f6a];return _0x34ef22;};const _0x2ed79d=a552_0x34ef;'use strict';const Sequelize=require(_0x2ed79d('0x3'));module[_0x2ed79d('0x2')]={'closed':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'closedAt':{'type':Sequelize[_0x2ed79d('0x0')]},'disposition':{'type':Sequelize[_0x2ed79d('0x4')]},'secondDisposition':{'type':Sequelize[_0x2ed79d('0x4')]},'thirdDisposition':{'type':Sequelize[_0x2ed79d('0x4')]},'note':{'type':Sequelize[_0x2ed79d('0x4')]},'phone':{'type':Sequelize['STRING']},'read1stAt':{'type':Sequelize[_0x2ed79d('0x0')]},'firstMsgDirection':{'type':Sequelize[_0x2ed79d('0x1')]('in','out'),'defaultValue':'in','allowNull':![]},'lastMsgAt':{'type':Sequelize[_0x2ed79d('0x0')]},'lastMsgDirection':{'type':Sequelize[_0x2ed79d('0x1')]('in','out'),'defaultValue':'in','allowNull':![]}}; \ No newline at end of file +const a662_0x17b8=['out','DATE','BOOLEAN','exports','STRING','ENUM'];(function(_0xbd591f,_0x1c17c4){const _0x17b851=function(_0x210bd9){while(--_0x210bd9){_0xbd591f['push'](_0xbd591f['shift']());}};_0x17b851(++_0x1c17c4);}(a662_0x17b8,0x1b8));const a662_0x210b=function(_0xbd591f,_0x1c17c4){_0xbd591f=_0xbd591f-0x139;let _0x17b851=a662_0x17b8[_0xbd591f];return _0x17b851;};const a662_0xe04f9e=a662_0x210b;'use strict';const {DataTypes}=require('sequelize'),attributes={'closed':{'type':DataTypes[a662_0xe04f9e(0x139)],'defaultValue':![]},'closedAt':{'type':DataTypes[a662_0xe04f9e(0x13e)]},'disposition':{'type':DataTypes[a662_0xe04f9e(0x13b)]},'secondDisposition':{'type':DataTypes[a662_0xe04f9e(0x13b)]},'thirdDisposition':{'type':DataTypes[a662_0xe04f9e(0x13b)]},'note':{'type':DataTypes[a662_0xe04f9e(0x13b)]},'phone':{'type':DataTypes[a662_0xe04f9e(0x13b)]},'read1stAt':{'type':DataTypes['DATE']},'firstMsgDirection':{'type':DataTypes['ENUM']('in',a662_0xe04f9e(0x13d)),'defaultValue':'in','allowNull':![]},'lastMsgAt':{'type':DataTypes[a662_0xe04f9e(0x13e)]},'lastMsgDirection':{'type':DataTypes[a662_0xe04f9e(0x13c)]('in',a662_0xe04f9e(0x13d)),'defaultValue':'in','allowNull':![]}};module[a662_0xe04f9e(0x13a)]['attributes']=attributes; \ No newline at end of file diff --git a/server/api/smsInteraction/smsInteraction.controller.js b/server/api/smsInteraction/smsInteraction.controller.js index 590f567..e4035d7 100644 --- a/server/api/smsInteraction/smsInteraction.controller.js +++ b/server/api/smsInteraction/smsInteraction.controller.js @@ -1 +1 @@ -const a553_0x58ef=['tools_tags','TagIds','color','QueryTypes','group','path','firstName','query','sort','toFile','sendStatus','i.*','fieldName','YYYY-MM-DD','includeAll','`unreadMessages`\x20>\x200','o.fullname','CONCAT(c.firstName,\x20\x27\x20\x27,\x20c.lastName)\x20LIKE\x20?','addTags','root','DESC','`\x20=\x200','u.id','key','user_has_sms_interactions','find','%s\x20#%d','undefined','conditions','direction','destroy','SmsAccountId','stack','from','SUM(me.read\x20=\x200\x20AND\x20me.direction\x20=\x20\x27in\x27)','.pdf','tag','CONCAT(\x27,\x27,\x20`TagIds`,\x20\x27,\x27)\x20LIKE\x20?','rawAttributes','User','Owner.internal','./smsInteraction.socket','o.internal','describe','\x0a\x20\x20\x20\x20\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','o.id\x20=\x20i.UserId','SmsMessage','isArray','c.mobile','parse','rows','join','Messages','`unreadMessages`\x20=\x200','isEmpty','left_join','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20%s\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{{page}}/{{pages}}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20%s\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','u.fullname','40px','offset','length','sms_interaction_has_tags','forEach','having','err','sms_messages','squel','rimraf','params','some','ContactId','c.firstName','SmsAccount','c.fax','send','sms_accounts','i.SmsAccountId\x20IN\x20?','set','ui.SmsInteractionId','Contact.lastName','update','toString','Contact.fax','concat','a.key','Sms','split','type','getMessages','user','../../mysqldb','sequelize','search','t.id\x20=\x20it.TagId','Contact.mobile','expr','unreadMessages','files','Contact.phone','start','name','i.id\x20LIKE\x20?','Tag','push','then','zip-dir','json','Owner','filters','SmsInteractionId','30px','download','\x20IS\x20NULL','moment','attributes','value','null','sqlOperator','buildExpression','GROUP_CONCAT(DISTINCT\x20t.id)','a.id\x20=\x20i.SmsAccountId','out','union','Contact','limit','MATCH\x20(c.firstName,\x20c.lastName,\x20c.phone,\x20c.mobile,\x20c.fax,\x20c.email)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','index','CmContact','clone','text','read','fields','SELECT','merge','pick','removeTags','model','closed','Account.key','closedAt','filter','journey','`\x20>\x200','UserId','i.SmsAccountId\x20IS\x20NULL','omit','all','mkdirSync','YYYY-MM-DD\x20HH:mm:ss','ui.SmsInteractionId\x20IN\x20?','map','c.id\x20=\x20i.ContactId\x20AND\x20c.deletedAt\x20IS\x20NULL','Account.mandatoryDisposition','catch','createdAt','addMessage','operator','api','getFullTextValue','replace','where','a.mandatoryDisposition','Account','body','status','lastName','transcript-%d-%s.zip','keys','intersection','error','i.id','it.SmsInteractionId\x20=\x20i.id','unlinkSync','me.SmsInteractionId\x20=\x20i.id','../../config/environment','count','like','users','$substring','transcript-','compact','select','Tags','secret','Owner.fullname','CONCAT_WS(\x27\x20\x27,\x20o.name,\x20o.fullname)\x20LIKE\x20?','Contact.email','resolve','\x20=\x20?','format','lodash','../../components/parsers/qs','i.phone\x20LIKE\x20?','SmsInteraction','u.id\x20=\x20ui.UserId','tmp','10px','end','MATCH\x20(me.body)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','findOne','include','Contact.firstName','System','smsInteractionTags:save','field','unix','nolimit','$lte','views','setTags','fullname','$gte','../../config/logger','create','isNumeric','order'];(function(_0x14e66c,_0x58ef35){const _0x378643=function(_0x24fe05){while(--_0x24fe05){_0x14e66c['push'](_0x14e66c['shift']());}};_0x378643(++_0x58ef35);}(a553_0x58ef,0x1b0));const a553_0x3786=function(_0x14e66c,_0x58ef35){_0x14e66c=_0x14e66c-0x0;let _0x378643=a553_0x58ef[_0x14e66c];return _0x378643;};const _0xb01a=a553_0x3786;'use strict';const pdf=require('html-pdf'),rimraf=require(_0xb01a('0x46')),zipdir=require(_0xb01a('0x6c')),moment=require(_0xb01a('0x74')),util=require('util'),path=require(_0xb01a('0x7')),ejs=require('ejs'),fs=require('fs'),_=require(_0xb01a('0xc1')),squel=require(_0xb01a('0x45')),{getSocket}=require('../../rediscache'),socket=getSocket(),qs=require(_0xb01a('0xc2')),as=require('../../components/parsers/advancedSearch'),logger=require(_0xb01a('0xd7'))(_0xb01a('0xa0')),config=require(_0xb01a('0xb1')),db=require(_0xb01a('0x5d'))['db'],{Op}=require(_0xb01a('0x5e'));require(_0xb01a('0x2b'))['register'](socket);function respondWithStatusCode(_0x24fe05,_0x4443c2){return _0x4443c2=_0x4443c2||0xcc,function(_0x101ca0){const _0x30d717=a553_0x3786;if(_0x101ca0)return _0x24fe05[_0x30d717('0xc')](_0x4443c2);return _0x24fe05[_0x30d717('0xa7')](_0x4443c2)[_0x30d717('0xc8')]();};}function respondWithResult(_0x329e08,_0x2d7fca){return _0x2d7fca=_0x2d7fca||0xc8,function(_0x1adff5){const _0xae0f00=a553_0x3786;if(_0x1adff5)return _0x329e08['status'](_0x2d7fca)[_0xae0f00('0x6d')](_0x1adff5);};}function respondWithFilteredResult(_0x1db51f,_0x2e0f24){return function(_0x2062d4){const _0xde90d=a553_0x3786;if(_0x2062d4){const _0x393d48=_0x2062d4[_0xde90d('0xb2')],_0x351fb2=_0x2e0f24[_0xde90d('0x3e')];let _0x3efbee=_0x2e0f24[_0xde90d('0x3e')]+_0x2e0f24[_0xde90d('0x7f')],_0x49796f;return _0x3efbee>=_0x393d48?(_0x3efbee=_0x393d48,_0x49796f=0xc8):_0x49796f=0xce,_0x1db51f[_0xde90d('0xa7')](_0x49796f),_0x1db51f[_0xde90d('0x50')]('Content-Range',_0x351fb2+'-'+_0x3efbee+'/'+_0x393d48)['json'](_0x2062d4);}return null;};}function saveUpdates(_0x12d83b){return function(_0x276ade){if(_0x276ade)return _0x276ade['update'](_0x12d83b)['then'](function(_0x4acf3e){return _0x4acf3e;});return null;};}function removeEntity(_0x5d6fed){return function(_0x30231b){const _0x2a1e65=a553_0x3786;if(_0x30231b)return _0x30231b[_0x2a1e65('0x20')]()[_0x2a1e65('0x6b')](function(){_0x5d6fed['status'](0xcc)['end']();});};}function handleEntityNotFound(_0x5de4d0){return function(_0x1023b9){return!_0x1023b9&&_0x5de4d0['sendStatus'](0x194),_0x1023b9;};}function handleError(_0x454410,_0x3d6fe3){return _0x3d6fe3=_0x3d6fe3||0x1f4,function(_0x5c2ec5){const _0x249206=a553_0x3786;logger[_0x249206('0xac')](_0x5c2ec5[_0x249206('0x22')]),_0x5c2ec5[_0x249206('0x67')]&&delete _0x5c2ec5[_0x249206('0x67')],_0x454410[_0x249206('0xa7')](_0x3d6fe3)[_0x249206('0x4d')](_0x5c2ec5);};}function getInteractionUsers(_0x5c1628,_0x24d87a){return new Promise(function(_0x1b444e,_0x178826){try{_0x24d87a[_0x5c1628['id']]&&(_0x5c1628['Users']=_['map'](_0x24d87a[_0x5c1628['id']],function(_0xdf68b5){return{'id':_0xdf68b5['id'],'fullname':_0xdf68b5['fullname']};}));}catch(_0x3a614d){_0x178826(_0x3a614d);}_0x1b444e(_0x5c1628);});}function getInteractionTags(_0x11ecf0,_0x11c8c7){return new Promise(function(_0x517b0b,_0x1dd6a9){const _0x4e8989=a553_0x3786;try{_0x11ecf0['TagIds']&&(_0x11ecf0[_0x4e8989('0xb9')]=[],_0x11ecf0[_0x4e8989('0x3')][_0x4e8989('0x59')](',')[_0x4e8989('0x41')](function(_0x27ee99){const _0x10d7b2=_0x4e8989;_0x11ecf0[_0x10d7b2('0xb9')]['push'](_0x11c8c7[_0x27ee99]);})),delete _0x11ecf0[_0x4e8989('0x3')];}catch(_0x3273c1){_0x1dd6a9(_0x3273c1);}_0x517b0b(_0x11ecf0);});}function updateSmsInteraction(_0x61b3fd,_0xcfbed0,_0x3534e4){return new Promise(function(_0xca5c76,_0x550f5a){const _0x2a7277=a553_0x3786;return getInteractionUsers(_0x61b3fd,_0x3534e4)[_0x2a7277('0x6b')](function(_0x217750){return getInteractionTags(_0x217750,_0xcfbed0);})['then'](function(_0x141367){_0xca5c76(_0x141367);})[_0x2a7277('0x9c')](function(_0x464a9f){_0x550f5a(_0x464a9f);});});}exports[_0xb01a('0x81')]=function(_0x3a1f17,_0x28b958){const _0x4970e3=_0xb01a,_0x588e9f={},_0x47b795={},_0x1a44c9={'count':0x0,'rows':[]},_0x577e4b=_[_0x4970e3('0x99')](db[_0x4970e3('0xc4')][_0x4970e3('0x28')],function(_0x247a91){const _0xa1dbb8=_0x4970e3;return{'name':_0x247a91[_0xa1dbb8('0xe')],'type':_0x247a91[_0xa1dbb8('0x5a')][_0xa1dbb8('0x19')]};});_0x47b795[_0x4970e3('0x8b')]=_[_0x4970e3('0x99')](_0x577e4b,_0x4970e3('0x67')),_0x47b795[_0x4970e3('0x9')]=_[_0x4970e3('0xaa')](_0x3a1f17['query']),_0x47b795[_0x4970e3('0x6f')]=_[_0x4970e3('0xab')](_0x47b795[_0x4970e3('0x8b')],_0x47b795[_0x4970e3('0x9')]),_0x588e9f[_0x4970e3('0x75')]=_[_0x4970e3('0xab')](_0x47b795[_0x4970e3('0x8b')],qs[_0x4970e3('0x86')](_0x3a1f17[_0x4970e3('0x9')]['fields'])),_0x588e9f[_0x4970e3('0x75')]=_0x588e9f[_0x4970e3('0x75')][_0x4970e3('0x3f')]?_0x588e9f['attributes']:_0x47b795[_0x4970e3('0x8b')];typeof _0x3a1f17[_0x4970e3('0x9')][_0x4970e3('0xd1')]===_0x4970e3('0x1d')&&(_0x588e9f[_0x4970e3('0x7f')]=qs[_0x4970e3('0x7f')](_0x3a1f17[_0x4970e3('0x9')]['limit']),_0x588e9f[_0x4970e3('0x3e')]=qs[_0x4970e3('0x3e')](_0x3a1f17[_0x4970e3('0x9')][_0x4970e3('0x3e')]));_0x588e9f['order']=qs[_0x4970e3('0xa')](_0x3a1f17[_0x4970e3('0x9')][_0x4970e3('0xa')]),_0x588e9f['where']=qs['filters'](_[_0x4970e3('0x89')](_0x3a1f17[_0x4970e3('0x9')],_0x47b795[_0x4970e3('0x6f')]),_0x577e4b);let _0x27356e=[];const _0x2506c8=squel[_0x4970e3('0xb8')]()[_0x4970e3('0xcf')]('id')[_0x4970e3('0xcf')](_0x4970e3('0x67'))[_0x4970e3('0xcf')](_0x4970e3('0x4'))[_0x4970e3('0x23')](_0x4970e3('0x2')),_0x3bf4de=squel['select']()['field'](_0x4970e3('0x18'))['field'](_0x4970e3('0x3c'))[_0x4970e3('0xcf')](_0x4970e3('0x51'))[_0x4970e3('0x23')](_0x4970e3('0x1a'),'ui')['left_join'](_0x4970e3('0xb4'),'u',_0x4970e3('0xc5')),_0x107c4e=squel[_0x4970e3('0xb8')]()[_0x4970e3('0x23')]('sms_interactions','i')['left_join']('cm_contacts','c',_0x4970e3('0x9a'))['left_join'](_0x4970e3('0xb4'),'o',_0x4970e3('0x30'))[_0x4970e3('0x3a')](_0x4970e3('0x4e'),'a',_0x4970e3('0x7b'))['left_join'](_0x4970e3('0x44'),'me',_0x4970e3('0xb0'))[_0x4970e3('0x3a')](_0x4970e3('0x40'),'it',_0x4970e3('0xae'))[_0x4970e3('0x3a')](_0x4970e3('0x2'),'t',_0x4970e3('0x60')),_0x4c0644=squel[_0x4970e3('0x62')]();let _0x57082e=[];const _0x5e22cf=squel[_0x4970e3('0x62')]();let _0x322254;if(_0x3a1f17[_0x4970e3('0x9')][_0x4970e3('0x5f')]){_0x322254=as['parseSearch'](_0x3a1f17['query'][_0x4970e3('0x5f')]);const _0x4a09d3=_0x322254[_0x4970e3('0x78')];for(let _0x59ad19=0x0;_0x59ad19<_0x322254[_0x4970e3('0x1e')][_0x4970e3('0x3f')];_0x59ad19++){const _0x13df36=_0x322254[_0x4970e3('0x1e')][_0x59ad19],_0x1f12f5='i';let _0x2786c1,_0xe6d567=_[_0x4970e3('0x1b')](_0x577e4b,[_0x4970e3('0x67'),_0x13df36[_0x4970e3('0xcf')]]);if(!_0xe6d567)switch(_0x13df36[_0x4970e3('0xcf')]){case'unreadMessages':_0x13df36[_0x4970e3('0x76')]==0x1?_0x107c4e[_0x4970e3('0x42')]('`'+_0x13df36[_0x4970e3('0xcf')]+_0x4970e3('0x17')):_0x107c4e[_0x4970e3('0x42')]('`'+_0x13df36['field']+_0x4970e3('0x91'));break;case _0x4970e3('0x7e'):if(_0x13df36[_0x4970e3('0x9f')]===_0x4970e3('0xb5')){if(_0x13df36['value'][_0x4970e3('0x59')]('\x20')[_0x4970e3('0x3f')]>0x1)_0x4c0644[_0x4a09d3](_0x4970e3('0x80'),qs[_0x4970e3('0xa1')](_0x13df36[_0x4970e3('0x76')]),null);else{const _0x201d6b='%'+_0x13df36[_0x4970e3('0x76')]+'%';_0x4c0644[_0x4a09d3]('c.firstName\x20LIKE\x20?\x20OR\x20c.lastName\x20LIKE\x20?\x20OR\x20c.email\x20LIKE\x20?',_0x201d6b,_0x201d6b,_0x201d6b);}}else _0xe6d567=_['find'](_0x577e4b,['name',_0x4970e3('0x49')]),_0x13df36[_0x4970e3('0xcf')]=_0x4970e3('0x49'),_0x2786c1=as[_0x4970e3('0x79')](_0x1f12f5,_0xe6d567[_0x4970e3('0x5a')],_0x13df36),_0x4c0644[_0x4a09d3](_0x2786c1[_0x4970e3('0x84')],_0x2786c1[_0x4970e3('0x76')]['start'],_0x2786c1[_0x4970e3('0x76')][_0x4970e3('0xc8')]);break;case _0x4970e3('0x69'):{const _0x2bb9df=_0x13df36[_0x4970e3('0x76')][_0x4970e3('0x59')](',')[_0x4970e3('0x99')](function(_0x2e6872){return Number(_0x2e6872);});_0x2bb9df[_0x4970e3('0x41')](function(_0x21a37d){_0x5e22cf['or']('CONCAT(\x27,\x27,\x20`TagIds`,\x20\x27,\x27)\x20LIKE\x20?','%,'+_0x21a37d+',%');}),_0x57082e=_[_0x4970e3('0x7d')](_0x57082e,_0x2bb9df);}break;case'User':_0x13df36[_0x4970e3('0x9f')]===_0x4970e3('0xb5')?_0x4c0644[_0x4a09d3](_0x4970e3('0xbc'),'%'+_0x13df36[_0x4970e3('0x76')]+'%',null):(_0xe6d567=_[_0x4970e3('0x1b')](_0x577e4b,[_0x4970e3('0x67'),_0x4970e3('0x92')]),_0x13df36[_0x4970e3('0xcf')]=_0x4970e3('0x92'),_0x2786c1=as[_0x4970e3('0x79')](_0x1f12f5,_0xe6d567[_0x4970e3('0x5a')],_0x13df36),_0x4c0644[_0x4a09d3](_0x2786c1[_0x4970e3('0x84')],_0x2786c1[_0x4970e3('0x76')][_0x4970e3('0x66')],_0x2786c1[_0x4970e3('0x76')]['end']));break;case _0x4970e3('0xa6'):_0x2786c1=as[_0x4970e3('0x79')]('me',null,_0x13df36),_0x4c0644[_0x4a09d3](_0x2786c1['text'],_0x2786c1[_0x4970e3('0x76')]['start'],_0x2786c1['value'][_0x4970e3('0xc8')]);break;}else _0x2786c1=as[_0x4970e3('0x79')](_0x1f12f5,_0xe6d567[_0x4970e3('0x5a')],_0x13df36),_0x4c0644[_0x4a09d3](_0x2786c1[_0x4970e3('0x84')],_0x2786c1['value'][_0x4970e3('0x66')],_0x2786c1[_0x4970e3('0x76')][_0x4970e3('0xc8')]);}}else{const _0x37fb41=_(_0x3a1f17[_0x4970e3('0x9')])['keys']()['map'](function(_0x23633a){const _0xe5007f=_0x4970e3;return _[_0xe5007f('0x48')](_0x577e4b,[_0xe5007f('0x67'),_0x23633a])?_0x23633a:undefined;})[_0x4970e3('0xb7')]()[_0x4970e3('0x76')]();!_[_0x4970e3('0x39')](_0x37fb41)&&_0x37fb41['forEach'](function(_0x3d9c64){const _0x1f1acd=_0x4970e3;if(_0x3d9c64===_0x1f1acd('0x21'))_0x107c4e[_0x1f1acd('0xa3')](_0x1f1acd('0x4f'),[][_0x1f1acd('0x56')](_0x3a1f17[_0x1f1acd('0x9')][_0x3d9c64]));else{if(_0x3d9c64===_0x1f1acd('0x9d')){const _0x107052=JSON[_0x1f1acd('0x34')](_0x3a1f17[_0x1f1acd('0x9')][_0x3d9c64])['$gte'],_0x1ae9f8=JSON[_0x1f1acd('0x34')](_0x3a1f17[_0x1f1acd('0x9')][_0x3d9c64])[_0x1f1acd('0xd2')];_0x107c4e[_0x1f1acd('0xa3')]('i.createdAt\x20BETWEEN\x20?\x20AND\x20?',_0x107052,_0x1ae9f8);}else _0x3a1f17[_0x1f1acd('0x9')][_0x3d9c64]===_0x1f1acd('0x77')?_0x107c4e[_0x1f1acd('0xa3')]('i.'+_0x3d9c64+_0x1f1acd('0x73')):_0x107c4e[_0x1f1acd('0xa3')]('i.'+_0x3d9c64+_0x1f1acd('0xbf'),_0x3a1f17[_0x1f1acd('0x9')][_0x3d9c64]);}});_0x3a1f17[_0x4970e3('0x9')][_0x4970e3('0x85')]&&(_0x3a1f17[_0x4970e3('0x9')][_0x4970e3('0x85')]==0x1?_0x107c4e[_0x4970e3('0x42')](_0x4970e3('0x38')):_0x107c4e[_0x4970e3('0x42')](_0x4970e3('0x11')));_0x3a1f17[_0x4970e3('0x9')][_0x4970e3('0x26')]&&(_0x57082e=_[_0x4970e3('0x32')](_0x3a1f17[_0x4970e3('0x9')][_0x4970e3('0x26')])?_0x3a1f17[_0x4970e3('0x9')][_0x4970e3('0x26')]:new Array(_0x3a1f17[_0x4970e3('0x9')][_0x4970e3('0x26')]),_0x57082e[_0x4970e3('0x41')](function(_0x42a313){const _0x533a7c=_0x4970e3;_0x5e22cf['or'](_0x533a7c('0x27'),'%,'+_0x42a313+',%');}));if(_0x3a1f17[_0x4970e3('0x9')][_0x4970e3('0x8f')]){const _0x53e1c2=_0x3a1f17[_0x4970e3('0x9')][_0x4970e3('0x8f')]['replace']('\x5c','\x5c\x5c')[_0x4970e3('0xa2')](/'/g,'\x27\x27');qs[_0x4970e3('0x0')](_0x53e1c2)?_0x4c0644['or'](_0x4970e3('0x68'),_0x53e1c2+'%')['or'](_0x4970e3('0xc3'),_0x53e1c2+'%'):_0x4c0644['or'](_0x4970e3('0xc9'),qs[_0x4970e3('0xa1')](_0x53e1c2))['or'](_0x4970e3('0x13'),_0x53e1c2+'%');}}_0x107c4e[_0x4970e3('0xa3')](_0x4c0644),_0x107c4e[_0x4970e3('0x6')](_0x4970e3('0xad'));let _0x12d59b={'type':db['Sequelize'][_0x4970e3('0x5')][_0x4970e3('0x87')],'raw':!![]};const _0x5f336e=_0x107c4e[_0x4970e3('0x83')]();_0x5f336e['field']('i.id'),_0x5f336e[_0x4970e3('0xcf')](_0x4970e3('0x24'),'unreadMessages'),_0x588e9f[_0x4970e3('0x1')]&&_0x588e9f[_0x4970e3('0x1')][_0x4970e3('0x41')](function(_0x1eaf58){const _0x559c68=_0x4970e3;_0x107c4e[_0x559c68('0x1')]('i.'+_0x1eaf58[0x0],_0x1eaf58[0x1]===_0x559c68('0x16')?![]:!![]);}),!_[_0x4970e3('0x39')](_0x57082e)&&(_0x107c4e[_0x4970e3('0x42')](_0x5e22cf),_0x5f336e[_0x4970e3('0xa3')]('t.id\x20IN\x20?',_0x57082e)),Promise[_0x4970e3('0xbe')]()['then'](function(){const _0x3d5b65=_0x4970e3;if(!_0x322254){if(_0x3a1f17[_0x3d5b65('0x9')][_0x3d5b65('0x21')]||_0x3a1f17[_0x3d5b65('0x9')][_0x3d5b65('0x90')])return;_0x5f336e[_0x3d5b65('0xa3')]('i.SmsAccountId\x20IS\x20NOT\x20NULL'),_0x107c4e[_0x3d5b65('0xa3')]('i.SmsAccountId\x20IS\x20NOT\x20NULL');return;}return _0x3a1f17[_0x3d5b65('0x5c')]['getSmsAccounts']({'attributes':['id'],'raw':!![]})['then'](function(_0x5732b2){const _0x2dae32=_0x3d5b65;_[_0x2dae32('0x39')](_0x5732b2)?(_0x5f336e[_0x2dae32('0xa3')](_0x2dae32('0x93')),_0x107c4e[_0x2dae32('0xa3')](_0x2dae32('0x93'))):(_0x5f336e['where']('i.SmsAccountId\x20IN\x20?',_[_0x2dae32('0x99')](_0x5732b2,'id')),_0x107c4e[_0x2dae32('0xa3')](_0x2dae32('0x4f'),_[_0x2dae32('0x99')](_0x5732b2,'id')));});})[_0x4970e3('0x6b')](function(){const _0x31a4c3=_0x4970e3;db['sequelize']['query'](_0x5f336e[_0x31a4c3('0x54')](),_0x12d59b)[_0x31a4c3('0x6b')](function(_0x2a878a){const _0x1cd18b=_0x31a4c3;_0x1a44c9['count']=_0x2a878a[_0x1cd18b('0x3f')];if(_0x1a44c9[_0x1cd18b('0xb2')]===0x0)return[];return db[_0x1cd18b('0x5e')]['query'](_0x2506c8[_0x1cd18b('0x54')](),_0x12d59b)[_0x1cd18b('0x6b')](function(_0x153b5f){const _0x5ba04d=_0x1cd18b;_0x27356e=_['keyBy'](_0x153b5f,'id'),_0x12d59b=_[_0x5ba04d('0x88')](_0x12d59b,{'model':db[_0x5ba04d('0xc4')],'mapToModel':!![],'raw':!![],'nest':!![]});_0x3a1f17[_0x5ba04d('0x9')][_0x5ba04d('0x86')]?_0x588e9f[_0x5ba04d('0x75')][_0x5ba04d('0x41')](function(_0x55e3be){const _0x4356e8=_0x5ba04d;_0x107c4e[_0x4356e8('0xcf')]('i.'+_0x55e3be);}):(_0x107c4e[_0x5ba04d('0xcf')](_0x5ba04d('0x24'),_0x5ba04d('0x63')),_0x107c4e[_0x5ba04d('0xcf')](_0x5ba04d('0x57'),_0x5ba04d('0x8d')),_0x107c4e[_0x5ba04d('0xcf')](_0x5ba04d('0xa4'),_0x5ba04d('0x9b')),_0x107c4e[_0x5ba04d('0xcf')](_0x5ba04d('0xd')),_0x107c4e[_0x5ba04d('0xcf')](_0x5ba04d('0x4a'),_0x5ba04d('0xcc')),_0x107c4e[_0x5ba04d('0xcf')]('c.lastName',_0x5ba04d('0x52')),_0x107c4e['field']('c.email',_0x5ba04d('0xbd')),_0x107c4e[_0x5ba04d('0xcf')]('c.phone',_0x5ba04d('0x65')),_0x107c4e[_0x5ba04d('0xcf')](_0x5ba04d('0x33'),_0x5ba04d('0x61')),_0x107c4e[_0x5ba04d('0xcf')](_0x5ba04d('0x4c'),_0x5ba04d('0x55')),_0x107c4e[_0x5ba04d('0xcf')](_0x5ba04d('0x12'),_0x5ba04d('0xbb')),_0x107c4e[_0x5ba04d('0xcf')](_0x5ba04d('0x2c'),_0x5ba04d('0x2a')),_0x107c4e[_0x5ba04d('0xcf')](_0x5ba04d('0x7a'),_0x5ba04d('0x3')));if(_0x588e9f[_0x5ba04d('0x7f')])_0x107c4e[_0x5ba04d('0x7f')](_0x588e9f[_0x5ba04d('0x7f')]);if(_0x588e9f[_0x5ba04d('0x3e')])_0x107c4e[_0x5ba04d('0x3e')](_0x588e9f[_0x5ba04d('0x3e')]);return db[_0x5ba04d('0x5e')][_0x5ba04d('0x9')](_0x107c4e['toString'](),_0x12d59b);})[_0x1cd18b('0x6b')](function(_0x323c72){const _0x458561=_0x1cd18b;return _0x3bf4de[_0x458561('0xa3')](_0x458561('0x98'),_[_0x458561('0x99')](_0x323c72,'id')),db[_0x458561('0x5e')][_0x458561('0x9')](_0x3bf4de[_0x458561('0x54')](),_0x12d59b)[_0x458561('0x6b')](function(_0x1ebafb){const _0x596793=_0x458561,_0x227b60=_['groupBy'](_0x1ebafb,'SmsInteractionId'),_0x2262ad=[];return _0x323c72[_0x596793('0x41')](function(_0x855fce){_0x2262ad['push'](updateSmsInteraction(_0x855fce,_0x27356e,_0x227b60));}),Promise[_0x596793('0x95')](_0x2262ad);});});})[_0x31a4c3('0x6b')](function(_0x179cde){return _0x1a44c9['rows']=_0x179cde,_0x1a44c9;})[_0x31a4c3('0x6b')](respondWithFilteredResult(_0x28b958,_0x588e9f));})[_0x4970e3('0x9c')](handleError(_0x28b958,null));},exports['show']=function(_0x25e6ae,_0x51fb73){const _0x468308=_0xb01a;let _0x402389={'raw':![],'where':{'id':_0x25e6ae[_0x468308('0x47')]['id']}};const _0x4acbd8={};return _0x4acbd8['model']=_[_0x468308('0xaa')](db[_0x468308('0xc4')][_0x468308('0x28')]),_0x4acbd8[_0x468308('0x9')]=_[_0x468308('0xaa')](_0x25e6ae[_0x468308('0x9')]),_0x4acbd8['filters']=_[_0x468308('0xab')](_0x4acbd8[_0x468308('0x8b')],_0x4acbd8[_0x468308('0x9')]),_0x402389[_0x468308('0x75')]=_['intersection'](_0x4acbd8['model'],qs[_0x468308('0x86')](_0x25e6ae[_0x468308('0x9')][_0x468308('0x86')])),_0x402389[_0x468308('0x75')]=_0x402389[_0x468308('0x75')][_0x468308('0x3f')]?_0x402389[_0x468308('0x75')]:_0x4acbd8[_0x468308('0x8b')],_0x25e6ae['query'][_0x468308('0x10')]&&(_0x402389[_0x468308('0xcb')]=[{'all':!![]}]),_0x402389=_[_0x468308('0x88')]({},_0x402389,_0x25e6ae['options']),db['SmsInteraction'][_0x468308('0xca')](_0x402389)['then'](handleEntityNotFound(_0x51fb73,null))[_0x468308('0x6b')](respondWithResult(_0x51fb73,null))[_0x468308('0x9c')](handleError(_0x51fb73,null));},exports[_0xb01a('0xd8')]=function(_0x4d6c7d,_0x28a469){const _0x1aa5cb=_0xb01a;return db[_0x1aa5cb('0xc4')][_0x1aa5cb('0xd8')](_0x4d6c7d[_0x1aa5cb('0xa6')],{})['then'](respondWithResult(_0x28a469,0xc9))[_0x1aa5cb('0x9c')](handleError(_0x28a469,null));},exports[_0xb01a('0x53')]=function(_0x35148b,_0x19da62){const _0x5cf89b=_0xb01a;return _0x35148b[_0x5cf89b('0xa6')]['id']&&delete _0x35148b[_0x5cf89b('0xa6')]['id'],db[_0x5cf89b('0xc4')]['findOne']({'where':{'id':_0x35148b['params']['id']}})['then'](handleEntityNotFound(_0x19da62,null))[_0x5cf89b('0x6b')](saveUpdates(_0x35148b[_0x5cf89b('0xa6')],null))['then'](respondWithResult(_0x19da62,null))[_0x5cf89b('0x9c')](handleError(_0x19da62,null));},exports[_0xb01a('0x20')]=function(_0x283a42,_0x358e79){const _0x2bd80d=_0xb01a;return db[_0x2bd80d('0xc4')][_0x2bd80d('0xca')]({'where':{'id':_0x283a42[_0x2bd80d('0x47')]['id']}})[_0x2bd80d('0x6b')](handleEntityNotFound(_0x358e79,null))[_0x2bd80d('0x6b')](removeEntity(_0x358e79,null))['catch'](handleError(_0x358e79,null));},exports[_0xb01a('0x2d')]=function(_0x259f3f,_0x18120a){const _0x450bc6=_0xb01a;return db[_0x450bc6('0xc4')]['describe']()['then'](respondWithResult(_0x18120a,null))[_0x450bc6('0x9c')](handleError(_0x18120a,null));},exports[_0xb01a('0x9e')]=function(_0x4fc8a8,_0x420c5e){const _0x11df05=_0xb01a;return db[_0x11df05('0x31')][_0x11df05('0xca')]({'where':{'id':_0x4fc8a8['params']['id']}})[_0x11df05('0x6b')](function(_0x1602eb){const _0x15bdbf=_0x11df05;if(_0x1602eb)return _0x1602eb['addMessage'](_0x4fc8a8[_0x15bdbf('0xa6')]['ids'],{'through':_[_0x15bdbf('0x94')](_0x4fc8a8[_0x15bdbf('0xa6')],[_0x15bdbf('0x2f'),'id'])});})['then'](respondWithResult(_0x420c5e,null))[_0x11df05('0x9c')](handleError(_0x420c5e,null));},exports[_0xb01a('0x5b')]=function(_0x2f30d5,_0x5c410d){const _0x3cf9b3=_0xb01a;let _0x1c8065={'raw':![],'where':{}};const _0x34c557={},_0x105a6d={'count':0x0,'rows':[]};return db['SmsInteraction'][_0x3cf9b3('0xca')]({'where':{'id':_0x2f30d5[_0x3cf9b3('0x47')]['id']}})[_0x3cf9b3('0x6b')](handleEntityNotFound(_0x5c410d,null))[_0x3cf9b3('0x6b')](function(_0x457af0){const _0x5408d0=_0x3cf9b3;if(_0x457af0){_0x34c557['model']=_[_0x5408d0('0xaa')](db[_0x5408d0('0x31')][_0x5408d0('0x28')]),_0x34c557[_0x5408d0('0x9')]=_[_0x5408d0('0xaa')](_0x2f30d5[_0x5408d0('0x9')]),_0x34c557[_0x5408d0('0x6f')]=_['intersection'](_0x34c557[_0x5408d0('0x8b')],_0x34c557[_0x5408d0('0x9')]),_0x1c8065[_0x5408d0('0x75')]=_['intersection'](_0x34c557[_0x5408d0('0x8b')],qs[_0x5408d0('0x86')](_0x2f30d5[_0x5408d0('0x9')][_0x5408d0('0x86')])),_0x1c8065[_0x5408d0('0x75')]=_0x1c8065[_0x5408d0('0x75')]['length']?_0x1c8065[_0x5408d0('0x75')]:_0x34c557[_0x5408d0('0x8b')];typeof _0x2f30d5[_0x5408d0('0x9')][_0x5408d0('0xd1')]==='undefined'&&(_0x1c8065[_0x5408d0('0x7f')]=qs[_0x5408d0('0x7f')](_0x2f30d5[_0x5408d0('0x9')]['limit']),_0x1c8065['offset']=qs[_0x5408d0('0x3e')](_0x2f30d5['query'][_0x5408d0('0x3e')]));_0x1c8065[_0x5408d0('0x1')]=qs['sort'](_0x2f30d5[_0x5408d0('0x9')]['sort']),_0x1c8065[_0x5408d0('0xa3')]=qs[_0x5408d0('0x6f')](_['pick'](_0x2f30d5[_0x5408d0('0x9')],_0x34c557['filters'])),_0x1c8065[_0x5408d0('0xa3')][_0x5408d0('0x70')]=_0x457af0['id'];_0x2f30d5[_0x5408d0('0x9')]['filter']&&(_0x1c8065['where']=_[_0x5408d0('0x88')](_0x1c8065[_0x5408d0('0xa3')],{[Op['or']]:_[_0x5408d0('0x99')](_0x1c8065['attributes'],function(_0x25c429){const _0x330d1f=_0x5408d0,_0x351b9f={};return _0x351b9f[_0x25c429]={[Op[_0x330d1f('0xb3')]]:'%'+_0x2f30d5['query'][_0x330d1f('0x8f')]+'%'},_0x351b9f;})}));if(_0x2f30d5['query'][_0x5408d0('0xd6')]){const _0x3647fa=_0x2f30d5['query'][_0x5408d0('0xd6')][_0x5408d0('0x59')](','),_0x43a7f9={};_0x43a7f9[_0x3647fa[0x0]]={[Op['gte']]:moment(_0x3647fa[0x1])[_0x5408d0('0xc0')]('YYYY-MM-DD\x20HH:mm:ss')},_0x1c8065[_0x5408d0('0xa3')]=_['merge'](_0x1c8065[_0x5408d0('0xa3')],_0x43a7f9);}return _0x1c8065=_[_0x5408d0('0x88')]({},_0x1c8065,_0x2f30d5['options']),db[_0x5408d0('0x31')][_0x5408d0('0xb2')]({'where':_0x1c8065[_0x5408d0('0xa3')]})[_0x5408d0('0x6b')](function(_0x1640b5){const _0x5b328e=_0x5408d0;return _0x105a6d['count']=_0x1640b5,_0x2f30d5[_0x5b328e('0x9')][_0x5b328e('0x10')]&&(_0x1c8065[_0x5b328e('0xcb')]=[{'all':!![]}]),db[_0x5b328e('0x31')]['findAll'](_0x1c8065);})[_0x5408d0('0x6b')](function(_0x3c8702){const _0x44d0e4=_0x5408d0;return _0x105a6d[_0x44d0e4('0x35')]=_0x3c8702,_0x105a6d;});}})[_0x3cf9b3('0x6b')](respondWithFilteredResult(_0x5c410d,_0x1c8065))[_0x3cf9b3('0x9c')](handleError(_0x5c410d,null));},exports[_0xb01a('0x14')]=function(_0x597338,_0x26e10b){const _0xbf62ad=_0xb01a;return db[_0xbf62ad('0xc4')][_0xbf62ad('0xca')]({'where':{'id':_0x597338['params']['id']}})[_0xbf62ad('0x6b')](function(_0x387fb9){const _0x29ef66=_0xbf62ad;if(_0x387fb9)return _0x387fb9[_0x29ef66('0xd4')](_0x597338[_0x29ef66('0xa6')][_0x29ef66('0x2f')],{'through':_[_0x29ef66('0x94')](_0x597338[_0x29ef66('0xa6')],['ids','id'])})['then'](function(){const _0x545c00=_0x29ef66;return db[_0x545c00('0x69')]['findAll']({'attributes':['id',_0x545c00('0x67'),_0x545c00('0x4')],'where':{'id':_0x597338[_0x545c00('0xa6')][_0x545c00('0x2f')]}});})[_0x29ef66('0x6b')](function(_0x5a6915){const _0x1e153f=_0x29ef66;return socket['emit'](_0x1e153f('0xce'),{'id':Number(_0x597338['params']['id']),'tags':_0x5a6915||[]}),{'id':Number(_0x597338[_0x1e153f('0x47')]['id']),'tags':_0x5a6915||[]};});})[_0xbf62ad('0x6b')](respondWithResult(_0x26e10b,null))[_0xbf62ad('0x9c')](handleError(_0x26e10b,null));},exports[_0xb01a('0x8a')]=function(_0x29bad3,_0x167bb4){const _0x15a44d=_0xb01a;return db['SmsInteraction'][_0x15a44d('0xca')]({'where':{'id':_0x29bad3['params']['id']}})[_0x15a44d('0x6b')](handleEntityNotFound(_0x167bb4,null))['then'](function(_0x47cc0f){if(_0x47cc0f)return _0x47cc0f['removeTags'](_0x29bad3['query']['ids']);})[_0x15a44d('0x6b')](respondWithStatusCode(_0x167bb4,null))[_0x15a44d('0x9c')](handleError(_0x167bb4,null));},exports['download']=function(_0x497a8e,_0x11a2d9){const _0x30ec30=_0xb01a,_0x411d6c=moment()[_0x30ec30('0xd0')]()[_0x30ec30('0x54')](),_0x475f2e=path[_0x30ec30('0x36')](config[_0x30ec30('0x15')],_0x30ec30('0x64'),_0x30ec30('0xc6')),_0x4e3a4d=path[_0x30ec30('0x36')](_0x475f2e,_0x411d6c),_0x4d7f17=util['format'](_0x30ec30('0xa9'),_0x497a8e['params']['id'],_0x411d6c),_0xabc744=path[_0x30ec30('0x36')](_0x475f2e,_0x4d7f17),_0x4b1888=[];_0x4b1888['push']({'model':db['User'],'as':_0x30ec30('0x29'),'attributes':['id',_0x30ec30('0xd5')],'raw':!![]}),_0x4b1888[_0x30ec30('0x6a')]({'model':db[_0x30ec30('0x82')],'as':_0x30ec30('0x7e'),'attributes':['id',_0x30ec30('0x8'),_0x30ec30('0xa8')],'raw':!![]});const _0x2fbced=[{'model':db['SmsMessage'],'as':'Messages','attributes':['id',_0x30ec30('0xa6'),_0x30ec30('0x9d'),_0x30ec30('0x1f'),_0x30ec30('0xba'),_0x30ec30('0x85')],'include':_0x4b1888}];return _0x2fbced[_0x30ec30('0x6a')]({'model':db[_0x30ec30('0x4b')],'as':_0x30ec30('0xa5'),'attributes':['id',_0x30ec30('0x67')]}),_0x2fbced[_0x30ec30('0x6a')]({'model':db['User'],'as':_0x30ec30('0x6e'),'attributes':['id',_0x30ec30('0xd5')]}),db['SmsInteraction']['findOne']({'where':{'id':_0x497a8e['params']['id']},'include':_0x2fbced})[_0x30ec30('0x6b')](handleEntityNotFound(_0x11a2d9,null))[_0x30ec30('0x6b')](function(_0x47e0fa){const _0x2a6105=_0x30ec30;if(_0x47e0fa){const _0x51ab82=_0x47e0fa['get']({'plain':!![]});fs[_0x2a6105('0x96')](_0x4e3a4d);const _0x1202d3={'format':'A4','border':_0x2a6105('0xc7'),'header':{'height':_0x2a6105('0x3d'),'contents':{'first':_0x2a6105('0x2e')}},'footer':{'height':_0x2a6105('0x71'),'contents':{'default':util[_0x2a6105('0xc0')](_0x2a6105('0x3b'),util[_0x2a6105('0xc0')](_0x2a6105('0x1c'),_0x2a6105('0x58'),_0x51ab82['id']),moment()['format'](_0x2a6105('0xf'))['toString']())}}},_0x4d5cc1={'channel':_0x2a6105('0x58'),'account':_0x51ab82[_0x2a6105('0xa5')][_0x2a6105('0x67')],'agent':_0x51ab82[_0x2a6105('0x6e')]?_0x51ab82[_0x2a6105('0x6e')][_0x2a6105('0xd5')]:'N.A.','createdAt':moment(_0x51ab82['createdAt'])[_0x2a6105('0xc0')](_0x2a6105('0x97'))[_0x2a6105('0x54')](),'closedAt':_0x51ab82[_0x2a6105('0x8c')]?moment(_0x51ab82[_0x2a6105('0x8e')])[_0x2a6105('0xc0')](_0x2a6105('0x97'))['toString']():'','disposition':_0x51ab82['disposition'],'messages':_(_0x51ab82[_0x2a6105('0x37')])['filter']({'secret':![]})[_0x2a6105('0x99')](function(_0x1407e5){const _0x282e37=_0x2a6105;return{'date':moment(_0x1407e5[_0x282e37('0x9d')])[_0x282e37('0xc0')](_0x282e37('0x97'))['toString'](),'sender':_0x1407e5[_0x282e37('0x1f')]===_0x282e37('0x7c')?_0x1407e5[_0x282e37('0x29')]?_0x1407e5[_0x282e37('0x29')][_0x282e37('0xd5')]:_0x282e37('0xcd'):_0x1407e5['Contact']['firstName']+(_0x1407e5['Contact'][_0x282e37('0xa8')]?'\x20'+_0x1407e5[_0x282e37('0x7e')][_0x282e37('0xa8')]:''),'body':_0x1407e5[_0x282e37('0xa6')],'direction':_0x1407e5[_0x282e37('0x1f')]===_0x282e37('0x7c')?'A':'C','secret':_0x1407e5[_0x282e37('0xba')],'read':_0x1407e5[_0x282e37('0x85')]};})[_0x2a6105('0x76')]()};return ejs['renderFile'](path['join'](config[_0x2a6105('0x15')],'server',_0x2a6105('0xd3'),'downloadInteraction.html'),{'interaction':_0x4d5cc1})[_0x2a6105('0x6b')](function(_0x2df57f){return new Promise(function(_0x7beffb,_0x1904ee){const _0x509904=a553_0x3786;pdf[_0x509904('0xd8')](_0x2df57f,_0x1202d3)[_0x509904('0xb')](path[_0x509904('0x36')](_0x4e3a4d,_0x509904('0xb6')+_0x51ab82['id']+'-'+_0x411d6c+_0x509904('0x25')),function(_0x1aa47b,_0x24b05c){if(_0x1aa47b)return _0x1904ee(_0x1aa47b);_0x7beffb(_0x24b05c);});});})[_0x2a6105('0x6b')](function(){const _0x15fc92=_0x2a6105;return new Promise(function(_0x53a89c,_0x5440f8){zipdir(_0x4e3a4d,{'saveTo':_0xabc744},function(_0x4667a6,_0x52db3e){if(_0x4667a6)return _0x5440f8(_0x4667a6);return _0x53a89c(_0x52db3e);});})[_0x15fc92('0x6b')](function(){return new Promise(function(_0x5cd48d,_0x73bac){rimraf(_0x4e3a4d,function(_0x539eec){if(_0x539eec)_0x73bac(_0x539eec);return _0x5cd48d();});});})[_0x15fc92('0x6b')](function(){const _0x34c613=_0x15fc92;return _0x11a2d9[_0x34c613('0x72')](_0xabc744,_0x4d7f17,function(_0x5e13bd){const _0x70b557=_0x34c613;_0x5e13bd?console['log'](_0x70b557('0x43'),_0x5e13bd):fs[_0x70b557('0xaf')](_0xabc744);});});});}else return _0x11a2d9['sendStatus'](0xc8);})[_0x30ec30('0x9c')](handleError(_0x11a2d9,null));}; \ No newline at end of file +const a663_0x437b=['ui.SmsInteractionId\x20IN\x20?','includeAll','operator','err','pick','register','search','include','YYYY-MM-DD\x20HH:mm:ss','union','then','users','Contact.email','ejs','CONCAT_WS(\x27\x20\x27,\x20o.name,\x20o.fullname)\x20LIKE\x20?','start','System','Tag','select','attributes','secret','SmsAccount','CONCAT(\x27,\x27,\x20`TagIds`,\x20\x27,\x27)\x20LIKE\x20?','files','firstName','undefined','squel','key','Account','zip-dir','Contact.lastName','Account.key','rows','\x0a\x20\x20\x20\x20\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','isNumeric','SmsInteractionId','renderFile','all','a.id\x20=\x20i.SmsAccountId','cm_contacts','api','from','disposition','filter','clone','rimraf','index','i.*','i.SmsAccountId\x20IN\x20?','root','group','error','where','$gte','show','closed','toString','color','sms_interaction_has_tags','SmsInteraction','status','o.id\x20=\x20i.UserId','Messages','removeTags','groupBy','Contact.firstName','Contact','push','Users','replace','GROUP_CONCAT(DISTINCT\x20t.id)','$substring','UserId','c.email','unlinkSync','name','resolve','keyBy','`\x20>\x200','SmsMessage','direction','destroy','SELECT','u.id\x20=\x20ui.UserId','server','Owner.internal','tools_tags','join','\x20IS\x20NULL','i.SmsAccountId\x20IS\x20NOT\x20NULL','download','Contact.fax','Owner','SUM(me.read\x20=\x200\x20AND\x20me.direction\x20=\x20\x27in\x27)','i.id','emit','sort','find','mkdirSync','params','options','filters','./smsInteraction.socket','omit','10px','ui.SmsInteractionId','body','having','%s\x20#%d','`\x20=\x200','../../config/logger','40px','parse','N.A.','stack','buildExpression','.pdf','addMessage','it.SmsInteractionId\x20=\x20i.id','merge','findAll','`unreadMessages`\x20=\x200','rawAttributes','t.id\x20=\x20it.TagId','isArray','i.SmsAccountId\x20IS\x20NULL','\x20=\x20?','forEach','intersection','end','createdAt','c.id\x20=\x20i.ContactId\x20AND\x20c.deletedAt\x20IS\x20NULL','create','set','ContactId','Account.mandatoryDisposition','Content-Range','getMessages','SmsAccountId','u.fullname','sms_messages','i.id\x20LIKE\x20?','text','catch','fullname','Tags','some','out','c.firstName','getFullTextValue','TagIds','downloadInteraction.html','setTags','path','o.internal','field','keys','util','expr','count','log','update','offset','YYYY-MM-DD','isEmpty','MATCH\x20(me.body)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','conditions','i.createdAt\x20BETWEEN\x20?\x20AND\x20?','../../components/parsers/advancedSearch','like','../../config/environment','Sms','nolimit','map','query','left_join','split','c.fax','Owner.fullname','format','value','moment','c.lastName','i.phone\x20LIKE\x20?','findOne','length','transcript-%d-%s.zip','json','limit','sendStatus','model','c.phone','lastName','sms_interactions','getSmsAccounts','order','Contact.mobile','addTags','30px','transcript-','`unreadMessages`\x20>\x200','describe','o.fullname','type','compact','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20%s\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{{page}}/{{pages}}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20%s\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','unreadMessages','read','null','User','sequelize','c.mobile','lodash','DESC','../../components/parsers/qs','tag','fields'];(function(_0x13995c,_0x36d805){const _0x437bc3=function(_0x3a05de){while(--_0x3a05de){_0x13995c['push'](_0x13995c['shift']());}};_0x437bc3(++_0x36d805);}(a663_0x437b,0x1da));const a663_0x3a05=function(_0x13995c,_0x36d805){_0x13995c=_0x13995c-0x1c2;let _0x437bc3=a663_0x437b[_0x13995c];return _0x437bc3;};const a663_0x139a6b=a663_0x3a05;'use strict';const pdf=require('html-pdf'),rimraf=require(a663_0x139a6b(0x1ca)),zipdir=require(a663_0x139a6b(0x293)),moment=require(a663_0x139a6b(0x252)),util=require(a663_0x139a6b(0x23a)),path=require(a663_0x139a6b(0x236)),ejs=require(a663_0x139a6b(0x283)),fs=require('fs'),_=require(a663_0x139a6b(0x271)),squel=require(a663_0x139a6b(0x290)),{getSocket}=require('../../rediscache'),socket=getSocket(),qs=require(a663_0x139a6b(0x273)),as=require(a663_0x139a6b(0x245)),logger=require(a663_0x139a6b(0x20b))(a663_0x139a6b(0x1c5)),config=require(a663_0x139a6b(0x247)),{db}=require('../../mysqldb'),{Op,QueryTypes}=require('sequelize');require(a663_0x139a6b(0x203))[a663_0x139a6b(0x27b)](socket);function respondWithStatusCode(_0x4e8f3e,_0x10e905){return _0x10e905=_0x10e905||0xcc,function(_0x4e5ff0){const _0x187b70=a663_0x3a05;if(_0x4e5ff0)return _0x4e8f3e[_0x187b70(0x25a)](_0x10e905);return _0x4e8f3e['status'](_0x10e905)[_0x187b70(0x21e)]();};}function respondWithResult(_0x79584c,_0x2d1b4b){return _0x2d1b4b=_0x2d1b4b||0xc8,function(_0x5de43f){const _0x1ef729=a663_0x3a05;if(_0x5de43f)return _0x79584c[_0x1ef729(0x1d9)](_0x2d1b4b)[_0x1ef729(0x258)](_0x5de43f);};}function respondWithFilteredResult(_0x2daf68,_0xe5d224){return function(_0x12a618){const _0x455f0a=a663_0x3a05;if(_0x12a618){const _0x4117b4=_0x12a618['count'],_0x22d9ca=_0xe5d224[_0x455f0a(0x23f)];let _0x10bb7b=_0xe5d224[_0x455f0a(0x23f)]+_0xe5d224[_0x455f0a(0x259)],_0x5bb0b2;return _0x10bb7b>=_0x4117b4?(_0x10bb7b=_0x4117b4,_0x5bb0b2=0xc8):_0x5bb0b2=0xce,_0x2daf68[_0x455f0a(0x1d9)](_0x5bb0b2),_0x2daf68[_0x455f0a(0x222)](_0x455f0a(0x225),_0x22d9ca+'-'+_0x10bb7b+'/'+_0x4117b4)[_0x455f0a(0x258)](_0x12a618);}return null;};}function saveUpdates(_0x58cdb3){return function(_0x3734ac){const _0x2c7974=a663_0x3a05;if(_0x3734ac)return _0x3734ac[_0x2c7974(0x23e)](_0x58cdb3)[_0x2c7974(0x280)](function(_0x3c66d3){return _0x3c66d3;});return null;};}function removeEntity(_0x1e5930){return function(_0x3555eb){const _0x314703=a663_0x3a05;if(_0x3555eb)return _0x3555eb[_0x314703(0x1ee)]()['then'](function(){_0x1e5930['status'](0xcc)['end']();});};}function handleEntityNotFound(_0x4df808){return function(_0x559f85){const _0x371ed5=a663_0x3a05;return!_0x559f85&&_0x4df808[_0x371ed5(0x25a)](0x194),_0x559f85;};}function handleError(_0x43b34c,_0x583b92){return _0x583b92=_0x583b92||0x1f4,function(_0x4db71e){const _0x14e58c=a663_0x3a05;logger[_0x14e58c(0x1d0)](_0x4db71e[_0x14e58c(0x20f)]),_0x4db71e[_0x14e58c(0x1e8)]&&delete _0x4db71e[_0x14e58c(0x1e8)],_0x43b34c[_0x14e58c(0x1d9)](_0x583b92)['send'](_0x4db71e);};}function getInteractionUsers(_0x5cb2e4,_0x4d2cee){return new Promise(function(_0x1b5f88,_0x157812){const _0x3a9975=a663_0x3a05;try{_0x4d2cee[_0x5cb2e4['id']]&&(_0x5cb2e4[_0x3a9975(0x1e1)]=_[_0x3a9975(0x24a)](_0x4d2cee[_0x5cb2e4['id']],function(_0x1983c6){const _0x1b2a33=_0x3a9975;return{'id':_0x1983c6['id'],'fullname':_0x1983c6[_0x1b2a33(0x22d)]};}));}catch(_0x4e4fd1){_0x157812(_0x4e4fd1);}_0x1b5f88(_0x5cb2e4);});}function getInteractionTags(_0x38d7e9,_0x308c13){return new Promise(function(_0x45e66b,_0x1809cd){const _0x5b12af=a663_0x3a05;try{_0x38d7e9[_0x5b12af(0x233)]&&(_0x38d7e9[_0x5b12af(0x22e)]=[],_0x38d7e9['TagIds'][_0x5b12af(0x24d)](',')[_0x5b12af(0x21c)](function(_0x154ac4){const _0x2d05ab=_0x5b12af;_0x38d7e9[_0x2d05ab(0x22e)][_0x2d05ab(0x1e0)](_0x308c13[_0x154ac4]);})),delete _0x38d7e9[_0x5b12af(0x233)];}catch(_0x1e08b6){_0x1809cd(_0x1e08b6);}_0x45e66b(_0x38d7e9);});}function updateSmsInteraction(_0x27a37f,_0x161c91,_0x115459){return new Promise(function(_0x4d3260,_0x1766b6){const _0x40b677=a663_0x3a05;return getInteractionUsers(_0x27a37f,_0x115459)[_0x40b677(0x280)](function(_0x3d887e){return getInteractionTags(_0x3d887e,_0x161c91);})['then'](function(_0x3171a9){_0x4d3260(_0x3171a9);})[_0x40b677(0x22c)](function(_0x510a47){_0x1766b6(_0x510a47);});});}exports[a663_0x139a6b(0x1cb)]=function(_0x5b6926,_0x28949d){const _0x14bd10=a663_0x139a6b,_0x49d74e={},_0x4cc3c9={},_0x51951c={'count':0x0,'rows':[]},_0x5bb552=_[_0x14bd10(0x24a)](db[_0x14bd10(0x1d8)][_0x14bd10(0x217)],function(_0x4bfe15){const _0x2d8b1b=_0x14bd10;return{'name':_0x4bfe15['fieldName'],'type':_0x4bfe15[_0x2d8b1b(0x268)][_0x2d8b1b(0x291)]};});_0x4cc3c9['model']=_[_0x14bd10(0x24a)](_0x5bb552,_0x14bd10(0x1e8)),_0x4cc3c9[_0x14bd10(0x24b)]=_[_0x14bd10(0x239)](_0x5b6926['query']),_0x4cc3c9[_0x14bd10(0x202)]=_[_0x14bd10(0x21d)](_0x4cc3c9[_0x14bd10(0x25b)],_0x4cc3c9[_0x14bd10(0x24b)]),_0x49d74e['attributes']=_[_0x14bd10(0x21d)](_0x4cc3c9[_0x14bd10(0x25b)],qs[_0x14bd10(0x275)](_0x5b6926['query'][_0x14bd10(0x275)])),_0x49d74e[_0x14bd10(0x289)]=_0x49d74e[_0x14bd10(0x289)][_0x14bd10(0x256)]?_0x49d74e[_0x14bd10(0x289)]:_0x4cc3c9[_0x14bd10(0x25b)];typeof _0x5b6926[_0x14bd10(0x24b)][_0x14bd10(0x249)]===_0x14bd10(0x28f)&&(_0x49d74e['limit']=qs[_0x14bd10(0x259)](_0x5b6926[_0x14bd10(0x24b)][_0x14bd10(0x259)]),_0x49d74e[_0x14bd10(0x23f)]=qs['offset'](_0x5b6926[_0x14bd10(0x24b)][_0x14bd10(0x23f)]));_0x49d74e[_0x14bd10(0x260)]=qs['sort'](_0x5b6926[_0x14bd10(0x24b)][_0x14bd10(0x1fd)]),_0x49d74e[_0x14bd10(0x1d1)]=qs[_0x14bd10(0x202)](_[_0x14bd10(0x27a)](_0x5b6926['query'],_0x4cc3c9[_0x14bd10(0x202)]),_0x5bb552);let _0x14acaa=[];const _0x5ce31d=squel[_0x14bd10(0x288)]()['field']('id')[_0x14bd10(0x238)](_0x14bd10(0x1e8))['field'](_0x14bd10(0x1d6))[_0x14bd10(0x1c6)](_0x14bd10(0x1f3)),_0x4787c2=squel[_0x14bd10(0x288)]()[_0x14bd10(0x238)]('u.id')[_0x14bd10(0x238)](_0x14bd10(0x228))[_0x14bd10(0x238)](_0x14bd10(0x206))[_0x14bd10(0x1c6)]('user_has_sms_interactions','ui')[_0x14bd10(0x24c)](_0x14bd10(0x281),'u',_0x14bd10(0x1f0)),_0x1ade7a=squel[_0x14bd10(0x288)]()[_0x14bd10(0x1c6)](_0x14bd10(0x25e),'i')[_0x14bd10(0x24c)](_0x14bd10(0x1c4),'c',_0x14bd10(0x220))[_0x14bd10(0x24c)](_0x14bd10(0x281),'o',_0x14bd10(0x1da))[_0x14bd10(0x24c)]('sms_accounts','a',_0x14bd10(0x1c3))[_0x14bd10(0x24c)](_0x14bd10(0x229),'me','me.SmsInteractionId\x20=\x20i.id')['left_join'](_0x14bd10(0x1d7),'it',_0x14bd10(0x213))['left_join'](_0x14bd10(0x1f3),'t',_0x14bd10(0x218)),_0x43a729=squel[_0x14bd10(0x23b)]();let _0x140660=[];const _0x4d8f3f=squel[_0x14bd10(0x23b)]();let _0x3da570;if(_0x5b6926[_0x14bd10(0x24b)][_0x14bd10(0x27c)]){_0x3da570=as['parseSearch'](_0x5b6926[_0x14bd10(0x24b)][_0x14bd10(0x27c)]);const _0x48936f=_0x3da570['sqlOperator'];for(let _0x26d61f=0x0;_0x26d61f<_0x3da570['conditions'][_0x14bd10(0x256)];_0x26d61f++){const _0x582eeb=_0x3da570[_0x14bd10(0x243)][_0x26d61f],_0x5dc501='i';let _0x42c06e,_0x582c27=_['find'](_0x5bb552,[_0x14bd10(0x1e8),_0x582eeb[_0x14bd10(0x238)]]);if(!_0x582c27)switch(_0x582eeb[_0x14bd10(0x238)]){case _0x14bd10(0x26b):_0x582eeb['value']==0x1?_0x1ade7a[_0x14bd10(0x208)]('`'+_0x582eeb[_0x14bd10(0x238)]+_0x14bd10(0x20a)):_0x1ade7a[_0x14bd10(0x208)]('`'+_0x582eeb[_0x14bd10(0x238)]+_0x14bd10(0x1eb));break;case _0x14bd10(0x1df):if(_0x582eeb[_0x14bd10(0x278)]===_0x14bd10(0x1e4)){if(_0x582eeb[_0x14bd10(0x251)][_0x14bd10(0x24d)]('\x20')['length']>0x1)_0x43a729[_0x48936f]('MATCH\x20(c.firstName,\x20c.lastName,\x20c.phone,\x20c.mobile,\x20c.fax,\x20c.email)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)',qs[_0x14bd10(0x232)](_0x582eeb[_0x14bd10(0x251)]),null);else{const _0x550a9b='%'+_0x582eeb[_0x14bd10(0x251)]+'%';_0x43a729[_0x48936f]('c.firstName\x20LIKE\x20?\x20OR\x20c.lastName\x20LIKE\x20?\x20OR\x20c.email\x20LIKE\x20?',_0x550a9b,_0x550a9b,_0x550a9b);}}else _0x582c27=_['find'](_0x5bb552,['name','ContactId']),_0x582eeb['field']=_0x14bd10(0x223),_0x42c06e=as['buildExpression'](_0x5dc501,_0x582c27[_0x14bd10(0x268)],_0x582eeb),_0x43a729[_0x48936f](_0x42c06e[_0x14bd10(0x22b)],_0x42c06e[_0x14bd10(0x251)][_0x14bd10(0x285)],_0x42c06e[_0x14bd10(0x251)][_0x14bd10(0x21e)]);break;case _0x14bd10(0x287):{const _0x2648f0=_0x582eeb[_0x14bd10(0x251)][_0x14bd10(0x24d)](',')[_0x14bd10(0x24a)](function(_0x453527){return Number(_0x453527);});_0x2648f0['forEach'](function(_0x52a959){_0x4d8f3f['or']('CONCAT(\x27,\x27,\x20`TagIds`,\x20\x27,\x27)\x20LIKE\x20?','%,'+_0x52a959+',%');}),_0x140660=_[_0x14bd10(0x27f)](_0x140660,_0x2648f0);}break;case _0x14bd10(0x26e):_0x582eeb[_0x14bd10(0x278)]===_0x14bd10(0x1e4)?_0x43a729[_0x48936f](_0x14bd10(0x284),'%'+_0x582eeb[_0x14bd10(0x251)]+'%',null):(_0x582c27=_[_0x14bd10(0x1fe)](_0x5bb552,[_0x14bd10(0x1e8),_0x14bd10(0x1e5)]),_0x582eeb[_0x14bd10(0x238)]=_0x14bd10(0x1e5),_0x42c06e=as[_0x14bd10(0x210)](_0x5dc501,_0x582c27[_0x14bd10(0x268)],_0x582eeb),_0x43a729[_0x48936f](_0x42c06e[_0x14bd10(0x22b)],_0x42c06e[_0x14bd10(0x251)]['start'],_0x42c06e[_0x14bd10(0x251)][_0x14bd10(0x21e)]));break;case _0x14bd10(0x207):_0x42c06e=as[_0x14bd10(0x210)]('me',null,_0x582eeb),_0x43a729[_0x48936f](_0x42c06e['text'],_0x42c06e[_0x14bd10(0x251)]['start'],_0x42c06e[_0x14bd10(0x251)][_0x14bd10(0x21e)]);break;}else _0x42c06e=as[_0x14bd10(0x210)](_0x5dc501,_0x582c27[_0x14bd10(0x268)],_0x582eeb),_0x43a729[_0x48936f](_0x42c06e[_0x14bd10(0x22b)],_0x42c06e[_0x14bd10(0x251)][_0x14bd10(0x285)],_0x42c06e[_0x14bd10(0x251)]['end']);}}else{const _0x4a4c42=_(_0x5b6926[_0x14bd10(0x24b)])['keys']()[_0x14bd10(0x24a)](function(_0xb79e5d){const _0x16e1dc=_0x14bd10;return _[_0x16e1dc(0x22f)](_0x5bb552,[_0x16e1dc(0x1e8),_0xb79e5d])?_0xb79e5d:undefined;})[_0x14bd10(0x269)]()[_0x14bd10(0x251)]();!_[_0x14bd10(0x241)](_0x4a4c42)&&_0x4a4c42[_0x14bd10(0x21c)](function(_0x367a46){const _0x46af68=_0x14bd10;if(_0x367a46==='SmsAccountId')_0x1ade7a['where']('i.SmsAccountId\x20IN\x20?',[]['concat'](_0x5b6926[_0x46af68(0x24b)][_0x367a46]));else{if(_0x367a46===_0x46af68(0x21f)){const _0x4e20a4=JSON[_0x46af68(0x20d)](_0x5b6926['query'][_0x367a46])[_0x46af68(0x1d2)],_0x22a9c0=JSON[_0x46af68(0x20d)](_0x5b6926[_0x46af68(0x24b)][_0x367a46])['$lte'];_0x1ade7a['where'](_0x46af68(0x244),_0x4e20a4,_0x22a9c0);}else _0x5b6926['query'][_0x367a46]===_0x46af68(0x26d)?_0x1ade7a[_0x46af68(0x1d1)]('i.'+_0x367a46+_0x46af68(0x1f5)):_0x1ade7a['where']('i.'+_0x367a46+_0x46af68(0x21b),_0x5b6926['query'][_0x367a46]);}});_0x5b6926[_0x14bd10(0x24b)][_0x14bd10(0x26c)]&&(_0x5b6926[_0x14bd10(0x24b)][_0x14bd10(0x26c)]==0x1?_0x1ade7a[_0x14bd10(0x208)](_0x14bd10(0x216)):_0x1ade7a[_0x14bd10(0x208)](_0x14bd10(0x265)));_0x5b6926[_0x14bd10(0x24b)][_0x14bd10(0x274)]&&(_0x140660=_[_0x14bd10(0x219)](_0x5b6926[_0x14bd10(0x24b)][_0x14bd10(0x274)])?_0x5b6926[_0x14bd10(0x24b)][_0x14bd10(0x274)]:new Array(_0x5b6926[_0x14bd10(0x24b)]['tag']),_0x140660[_0x14bd10(0x21c)](function(_0xdb8332){const _0xf22a65=_0x14bd10;_0x4d8f3f['or'](_0xf22a65(0x28c),'%,'+_0xdb8332+',%');}));if(_0x5b6926[_0x14bd10(0x24b)][_0x14bd10(0x1c8)]){const _0x2c2b7d=_0x5b6926[_0x14bd10(0x24b)][_0x14bd10(0x1c8)][_0x14bd10(0x1e2)]('\x5c','\x5c\x5c')[_0x14bd10(0x1e2)](/'/g,'\x27\x27');qs[_0x14bd10(0x299)](_0x2c2b7d)?_0x43a729['or'](_0x14bd10(0x22a),_0x2c2b7d+'%')['or'](_0x14bd10(0x254),_0x2c2b7d+'%'):_0x43a729['or'](_0x14bd10(0x242),qs[_0x14bd10(0x232)](_0x2c2b7d))['or']('CONCAT(c.firstName,\x20\x27\x20\x27,\x20c.lastName)\x20LIKE\x20?',_0x2c2b7d+'%');}}_0x1ade7a[_0x14bd10(0x1d1)](_0x43a729),_0x1ade7a[_0x14bd10(0x1cf)](_0x14bd10(0x1fb));let _0x4f3198={'type':QueryTypes[_0x14bd10(0x1ef)],'raw':!![]};const _0x7102c4=_0x1ade7a[_0x14bd10(0x1c9)]();_0x7102c4['field']('i.id'),_0x7102c4['field'](_0x14bd10(0x1fa),'unreadMessages'),_0x49d74e['order']&&_0x49d74e['order'][_0x14bd10(0x21c)](function(_0x3893c6){const _0x2ff2b6=_0x14bd10;_0x1ade7a[_0x2ff2b6(0x260)]('i.'+_0x3893c6[0x0],_0x3893c6[0x1]===_0x2ff2b6(0x272)?![]:!![]);}),!_[_0x14bd10(0x241)](_0x140660)&&(_0x1ade7a[_0x14bd10(0x208)](_0x4d8f3f),_0x7102c4[_0x14bd10(0x1d1)]('t.id\x20IN\x20?',_0x140660)),Promise[_0x14bd10(0x1e9)]()[_0x14bd10(0x280)](function(){const _0x10b2b7=_0x14bd10;if(!_0x3da570){if(_0x5b6926[_0x10b2b7(0x24b)][_0x10b2b7(0x227)]||_0x5b6926[_0x10b2b7(0x24b)]['journey'])return;_0x7102c4[_0x10b2b7(0x1d1)](_0x10b2b7(0x1f6)),_0x1ade7a['where'](_0x10b2b7(0x1f6));return;}return _0x5b6926['user'][_0x10b2b7(0x25f)]({'attributes':['id'],'raw':!![]})[_0x10b2b7(0x280)](function(_0x336c4e){const _0x5eb1f9=_0x10b2b7;_[_0x5eb1f9(0x241)](_0x336c4e)?(_0x7102c4[_0x5eb1f9(0x1d1)]('i.SmsAccountId\x20IS\x20NULL'),_0x1ade7a['where'](_0x5eb1f9(0x21a))):(_0x7102c4[_0x5eb1f9(0x1d1)](_0x5eb1f9(0x1cd),_['map'](_0x336c4e,'id')),_0x1ade7a['where'](_0x5eb1f9(0x1cd),_[_0x5eb1f9(0x24a)](_0x336c4e,'id')));});})[_0x14bd10(0x280)](function(){const _0x289d3d=_0x14bd10;db[_0x289d3d(0x26f)][_0x289d3d(0x24b)](_0x7102c4['toString'](),_0x4f3198)[_0x289d3d(0x280)](function(_0x3f81af){const _0x16ebf9=_0x289d3d;_0x51951c[_0x16ebf9(0x23c)]=_0x3f81af[_0x16ebf9(0x256)];if(_0x51951c[_0x16ebf9(0x23c)]===0x0)return[];return db['sequelize'][_0x16ebf9(0x24b)](_0x5ce31d[_0x16ebf9(0x1d5)](),_0x4f3198)[_0x16ebf9(0x280)](function(_0x45b762){const _0x582cb2=_0x16ebf9;_0x14acaa=_[_0x582cb2(0x1ea)](_0x45b762,'id'),_0x4f3198=_['merge'](_0x4f3198,{'model':db[_0x582cb2(0x1d8)],'mapToModel':!![],'raw':!![],'nest':!![]});_0x5b6926[_0x582cb2(0x24b)][_0x582cb2(0x275)]?_0x49d74e[_0x582cb2(0x289)]['forEach'](function(_0x3cca5a){const _0x4fea5b=_0x582cb2;_0x1ade7a[_0x4fea5b(0x238)]('i.'+_0x3cca5a);}):(_0x1ade7a[_0x582cb2(0x238)](_0x582cb2(0x1fa),_0x582cb2(0x26b)),_0x1ade7a[_0x582cb2(0x238)]('a.key',_0x582cb2(0x295)),_0x1ade7a[_0x582cb2(0x238)]('a.mandatoryDisposition',_0x582cb2(0x224)),_0x1ade7a[_0x582cb2(0x238)](_0x582cb2(0x1cc)),_0x1ade7a['field'](_0x582cb2(0x231),_0x582cb2(0x1de)),_0x1ade7a[_0x582cb2(0x238)](_0x582cb2(0x253),_0x582cb2(0x294)),_0x1ade7a[_0x582cb2(0x238)](_0x582cb2(0x1e6),_0x582cb2(0x282)),_0x1ade7a[_0x582cb2(0x238)](_0x582cb2(0x25c),'Contact.phone'),_0x1ade7a[_0x582cb2(0x238)](_0x582cb2(0x270),_0x582cb2(0x261)),_0x1ade7a[_0x582cb2(0x238)](_0x582cb2(0x24e),_0x582cb2(0x1f8)),_0x1ade7a['field'](_0x582cb2(0x267),_0x582cb2(0x24f)),_0x1ade7a[_0x582cb2(0x238)](_0x582cb2(0x237),_0x582cb2(0x1f2)),_0x1ade7a[_0x582cb2(0x238)](_0x582cb2(0x1e3),_0x582cb2(0x233)));if(_0x49d74e[_0x582cb2(0x259)])_0x1ade7a[_0x582cb2(0x259)](_0x49d74e[_0x582cb2(0x259)]);if(_0x49d74e[_0x582cb2(0x23f)])_0x1ade7a['offset'](_0x49d74e['offset']);return db[_0x582cb2(0x26f)][_0x582cb2(0x24b)](_0x1ade7a[_0x582cb2(0x1d5)](),_0x4f3198);})[_0x16ebf9(0x280)](function(_0x4ca890){const _0x5709a8=_0x16ebf9;return _0x4787c2[_0x5709a8(0x1d1)](_0x5709a8(0x276),_[_0x5709a8(0x24a)](_0x4ca890,'id')),db['sequelize'][_0x5709a8(0x24b)](_0x4787c2[_0x5709a8(0x1d5)](),_0x4f3198)[_0x5709a8(0x280)](function(_0x2b625d){const _0x5885fd=_0x5709a8,_0x400af4=_[_0x5885fd(0x1dd)](_0x2b625d,_0x5885fd(0x29a)),_0x228f4d=[];return _0x4ca890[_0x5885fd(0x21c)](function(_0x9bb3ba){const _0xca2614=_0x5885fd;_0x228f4d[_0xca2614(0x1e0)](updateSmsInteraction(_0x9bb3ba,_0x14acaa,_0x400af4));}),Promise[_0x5885fd(0x1c2)](_0x228f4d);});});})['then'](function(_0x586a85){const _0x2191b2=_0x289d3d;return _0x51951c[_0x2191b2(0x296)]=_0x586a85,_0x51951c;})[_0x289d3d(0x280)](respondWithFilteredResult(_0x28949d,_0x49d74e));})[_0x14bd10(0x22c)](handleError(_0x28949d,null));},exports[a663_0x139a6b(0x1d3)]=function(_0x38ae18,_0x3aec93){const _0x484218=a663_0x139a6b;let _0x2a572b={'raw':![],'where':{'id':_0x38ae18['params']['id']}};const _0x57940b={};return _0x57940b[_0x484218(0x25b)]=_['keys'](db[_0x484218(0x1d8)]['rawAttributes']),_0x57940b[_0x484218(0x24b)]=_[_0x484218(0x239)](_0x38ae18[_0x484218(0x24b)]),_0x57940b[_0x484218(0x202)]=_[_0x484218(0x21d)](_0x57940b[_0x484218(0x25b)],_0x57940b[_0x484218(0x24b)]),_0x2a572b[_0x484218(0x289)]=_[_0x484218(0x21d)](_0x57940b[_0x484218(0x25b)],qs[_0x484218(0x275)](_0x38ae18[_0x484218(0x24b)][_0x484218(0x275)])),_0x2a572b[_0x484218(0x289)]=_0x2a572b['attributes'][_0x484218(0x256)]?_0x2a572b[_0x484218(0x289)]:_0x57940b[_0x484218(0x25b)],_0x38ae18[_0x484218(0x24b)][_0x484218(0x277)]&&(_0x2a572b[_0x484218(0x27d)]=[{'all':!![]}]),_0x2a572b=_[_0x484218(0x214)]({},_0x2a572b,_0x38ae18[_0x484218(0x201)]),db[_0x484218(0x1d8)]['findOne'](_0x2a572b)[_0x484218(0x280)](handleEntityNotFound(_0x3aec93,null))[_0x484218(0x280)](respondWithResult(_0x3aec93,null))[_0x484218(0x22c)](handleError(_0x3aec93,null));},exports[a663_0x139a6b(0x221)]=function(_0x1edf08,_0x301794){const _0xc6f71=a663_0x139a6b;return db[_0xc6f71(0x1d8)][_0xc6f71(0x221)](_0x1edf08['body'],{})[_0xc6f71(0x280)](respondWithResult(_0x301794,0xc9))['catch'](handleError(_0x301794,null));},exports[a663_0x139a6b(0x23e)]=function(_0x268ad3,_0x56a6a8){const _0x37172f=a663_0x139a6b;return _0x268ad3[_0x37172f(0x207)]['id']&&delete _0x268ad3[_0x37172f(0x207)]['id'],db['SmsInteraction'][_0x37172f(0x255)]({'where':{'id':_0x268ad3[_0x37172f(0x200)]['id']}})['then'](handleEntityNotFound(_0x56a6a8,null))[_0x37172f(0x280)](saveUpdates(_0x268ad3[_0x37172f(0x207)],null))[_0x37172f(0x280)](respondWithResult(_0x56a6a8,null))[_0x37172f(0x22c)](handleError(_0x56a6a8,null));},exports[a663_0x139a6b(0x1ee)]=function(_0x495e9b,_0x50c3b5){const _0x37ab1a=a663_0x139a6b;return db[_0x37ab1a(0x1d8)]['findOne']({'where':{'id':_0x495e9b['params']['id']}})['then'](handleEntityNotFound(_0x50c3b5,null))[_0x37ab1a(0x280)](removeEntity(_0x50c3b5,null))[_0x37ab1a(0x22c)](handleError(_0x50c3b5,null));},exports[a663_0x139a6b(0x266)]=function(_0x1b4803,_0x52d203){const _0x393527=a663_0x139a6b;return db['SmsInteraction']['describe']()[_0x393527(0x280)](respondWithResult(_0x52d203,null))[_0x393527(0x22c)](handleError(_0x52d203,null));},exports[a663_0x139a6b(0x212)]=function(_0xdd9453,_0x15fff7){const _0x2b05f7=a663_0x139a6b;return db['SmsMessage'][_0x2b05f7(0x255)]({'where':{'id':_0xdd9453[_0x2b05f7(0x200)]['id']}})['then'](function(_0x4bee31){const _0x27d018=_0x2b05f7;if(_0x4bee31)return _0x4bee31[_0x27d018(0x212)](_0xdd9453[_0x27d018(0x207)][_0x27d018(0x298)],{'through':_[_0x27d018(0x204)](_0xdd9453[_0x27d018(0x207)],[_0x27d018(0x298),'id'])});})[_0x2b05f7(0x280)](respondWithResult(_0x15fff7,null))[_0x2b05f7(0x22c)](handleError(_0x15fff7,null));},exports[a663_0x139a6b(0x226)]=function(_0x4f04e4,_0x4f3768){const _0x552b33=a663_0x139a6b;let _0x3b4491={'raw':![],'where':{}};const _0x5f1852={},_0x3e000f={'count':0x0,'rows':[]};return db[_0x552b33(0x1d8)][_0x552b33(0x255)]({'where':{'id':_0x4f04e4['params']['id']}})[_0x552b33(0x280)](handleEntityNotFound(_0x4f3768,null))['then'](function(_0xa9bd7){const _0x403ae5=_0x552b33;if(_0xa9bd7){_0x5f1852['model']=_[_0x403ae5(0x239)](db['SmsMessage']['rawAttributes']),_0x5f1852['query']=_['keys'](_0x4f04e4[_0x403ae5(0x24b)]),_0x5f1852[_0x403ae5(0x202)]=_['intersection'](_0x5f1852[_0x403ae5(0x25b)],_0x5f1852[_0x403ae5(0x24b)]),_0x3b4491[_0x403ae5(0x289)]=_[_0x403ae5(0x21d)](_0x5f1852[_0x403ae5(0x25b)],qs[_0x403ae5(0x275)](_0x4f04e4['query'][_0x403ae5(0x275)])),_0x3b4491[_0x403ae5(0x289)]=_0x3b4491[_0x403ae5(0x289)][_0x403ae5(0x256)]?_0x3b4491[_0x403ae5(0x289)]:_0x5f1852[_0x403ae5(0x25b)];typeof _0x4f04e4['query']['nolimit']===_0x403ae5(0x28f)&&(_0x3b4491[_0x403ae5(0x259)]=qs[_0x403ae5(0x259)](_0x4f04e4[_0x403ae5(0x24b)][_0x403ae5(0x259)]),_0x3b4491[_0x403ae5(0x23f)]=qs[_0x403ae5(0x23f)](_0x4f04e4[_0x403ae5(0x24b)][_0x403ae5(0x23f)]));_0x3b4491[_0x403ae5(0x260)]=qs['sort'](_0x4f04e4[_0x403ae5(0x24b)][_0x403ae5(0x1fd)]),_0x3b4491[_0x403ae5(0x1d1)]=qs[_0x403ae5(0x202)](_[_0x403ae5(0x27a)](_0x4f04e4['query'],_0x5f1852[_0x403ae5(0x202)])),_0x3b4491[_0x403ae5(0x1d1)][_0x403ae5(0x29a)]=_0xa9bd7['id'];_0x4f04e4[_0x403ae5(0x24b)][_0x403ae5(0x1c8)]&&(_0x3b4491[_0x403ae5(0x1d1)]=_[_0x403ae5(0x214)](_0x3b4491[_0x403ae5(0x1d1)],{[Op['or']]:_[_0x403ae5(0x24a)](_0x3b4491[_0x403ae5(0x289)],function(_0xa2c7ab){const _0xb151af=_0x403ae5,_0x3d751b={};return _0x3d751b[_0xa2c7ab]={[Op[_0xb151af(0x246)]]:'%'+_0x4f04e4[_0xb151af(0x24b)][_0xb151af(0x1c8)]+'%'},_0x3d751b;})}));if(_0x4f04e4[_0x403ae5(0x24b)][_0x403ae5(0x1d2)]){const _0x3f77e2=_0x4f04e4[_0x403ae5(0x24b)][_0x403ae5(0x1d2)][_0x403ae5(0x24d)](','),_0x183902={};_0x183902[_0x3f77e2[0x0]]={[Op['gte']]:moment(_0x3f77e2[0x1])[_0x403ae5(0x250)](_0x403ae5(0x27e))},_0x3b4491[_0x403ae5(0x1d1)]=_[_0x403ae5(0x214)](_0x3b4491[_0x403ae5(0x1d1)],_0x183902);}return _0x3b4491=_[_0x403ae5(0x214)]({},_0x3b4491,_0x4f04e4['options']),db['SmsMessage'][_0x403ae5(0x23c)]({'where':_0x3b4491[_0x403ae5(0x1d1)]})[_0x403ae5(0x280)](function(_0x2cf055){const _0x33674e=_0x403ae5;return _0x3e000f[_0x33674e(0x23c)]=_0x2cf055,_0x4f04e4[_0x33674e(0x24b)]['includeAll']&&(_0x3b4491[_0x33674e(0x27d)]=[{'all':!![]}]),db[_0x33674e(0x1ec)][_0x33674e(0x215)](_0x3b4491);})['then'](function(_0x59b09a){const _0x2706c2=_0x403ae5;return _0x3e000f[_0x2706c2(0x296)]=_0x59b09a,_0x3e000f;});}})[_0x552b33(0x280)](respondWithFilteredResult(_0x4f3768,_0x3b4491))[_0x552b33(0x22c)](handleError(_0x4f3768,null));},exports[a663_0x139a6b(0x262)]=function(_0x263995,_0x4f6b67){const _0x33885f=a663_0x139a6b;return db[_0x33885f(0x1d8)]['findOne']({'where':{'id':_0x263995['params']['id']}})['then'](function(_0x3ad64b){const _0x2c8587=_0x33885f;if(_0x3ad64b)return _0x3ad64b[_0x2c8587(0x235)](_0x263995[_0x2c8587(0x207)]['ids'],{'through':_[_0x2c8587(0x204)](_0x263995[_0x2c8587(0x207)],[_0x2c8587(0x298),'id'])})[_0x2c8587(0x280)](function(){const _0x23572d=_0x2c8587;return db[_0x23572d(0x287)][_0x23572d(0x215)]({'attributes':['id',_0x23572d(0x1e8),_0x23572d(0x1d6)],'where':{'id':_0x263995[_0x23572d(0x207)]['ids']}});})[_0x2c8587(0x280)](function(_0x4919dc){const _0x473234=_0x2c8587;return socket[_0x473234(0x1fc)]('smsInteractionTags:save',{'id':Number(_0x263995[_0x473234(0x200)]['id']),'tags':_0x4919dc||[]}),{'id':Number(_0x263995[_0x473234(0x200)]['id']),'tags':_0x4919dc||[]};});})[_0x33885f(0x280)](respondWithResult(_0x4f6b67,null))['catch'](handleError(_0x4f6b67,null));},exports[a663_0x139a6b(0x1dc)]=function(_0x1bab7d,_0x496885){const _0x4972b3=a663_0x139a6b;return db[_0x4972b3(0x1d8)]['findOne']({'where':{'id':_0x1bab7d[_0x4972b3(0x200)]['id']}})[_0x4972b3(0x280)](handleEntityNotFound(_0x496885,null))[_0x4972b3(0x280)](function(_0x22039d){const _0x3675a5=_0x4972b3;if(_0x22039d)return _0x22039d['removeTags'](_0x1bab7d[_0x3675a5(0x24b)][_0x3675a5(0x298)]);})[_0x4972b3(0x280)](respondWithStatusCode(_0x496885,null))[_0x4972b3(0x22c)](handleError(_0x496885,null));},exports['download']=function(_0x37891b,_0x2c9e9b){const _0x107e8=a663_0x139a6b,_0x459407=moment()['unix']()[_0x107e8(0x1d5)](),_0x374339=path[_0x107e8(0x1f4)](config[_0x107e8(0x1ce)],_0x107e8(0x28d),'tmp'),_0x49bd07=path['join'](_0x374339,_0x459407),_0x2c0279=util['format'](_0x107e8(0x257),_0x37891b[_0x107e8(0x200)]['id'],_0x459407),_0x9e5460=path['join'](_0x374339,_0x2c0279),_0x914df4=[];_0x914df4[_0x107e8(0x1e0)]({'model':db[_0x107e8(0x26e)],'as':_0x107e8(0x26e),'attributes':['id',_0x107e8(0x22d)],'raw':!![]}),_0x914df4[_0x107e8(0x1e0)]({'model':db['CmContact'],'as':'Contact','attributes':['id',_0x107e8(0x28e),_0x107e8(0x25d)],'raw':!![]});const _0x3e47f9=[{'model':db[_0x107e8(0x1ec)],'as':_0x107e8(0x1db),'attributes':['id',_0x107e8(0x207),'createdAt','direction','secret',_0x107e8(0x26c)],'include':_0x914df4}];return _0x3e47f9[_0x107e8(0x1e0)]({'model':db[_0x107e8(0x28b)],'as':_0x107e8(0x292),'attributes':['id','name']}),_0x3e47f9['push']({'model':db[_0x107e8(0x26e)],'as':_0x107e8(0x1f9),'attributes':['id',_0x107e8(0x22d)]}),db[_0x107e8(0x1d8)][_0x107e8(0x255)]({'where':{'id':_0x37891b[_0x107e8(0x200)]['id']},'include':_0x3e47f9})['then'](handleEntityNotFound(_0x2c9e9b,null))[_0x107e8(0x280)](function(_0x536e71){const _0x2b4dde=_0x107e8;if(_0x536e71){const _0x212e27=_0x536e71['get']({'plain':!![]});fs[_0x2b4dde(0x1ff)](_0x49bd07);const _0x186f10={'format':'A4','border':_0x2b4dde(0x205),'header':{'height':_0x2b4dde(0x20c),'contents':{'first':_0x2b4dde(0x297)}},'footer':{'height':_0x2b4dde(0x263),'contents':{'default':util['format'](_0x2b4dde(0x26a),util['format'](_0x2b4dde(0x209),'Sms',_0x212e27['id']),moment()[_0x2b4dde(0x250)](_0x2b4dde(0x240))['toString']())}}},_0x155de5={'channel':_0x2b4dde(0x248),'account':_0x212e27[_0x2b4dde(0x292)]['name'],'agent':_0x212e27[_0x2b4dde(0x1f9)]?_0x212e27['Owner'][_0x2b4dde(0x22d)]:_0x2b4dde(0x20e),'createdAt':moment(_0x212e27[_0x2b4dde(0x21f)])[_0x2b4dde(0x250)](_0x2b4dde(0x27e))[_0x2b4dde(0x1d5)](),'closedAt':_0x212e27[_0x2b4dde(0x1d4)]?moment(_0x212e27['closedAt'])[_0x2b4dde(0x250)]('YYYY-MM-DD\x20HH:mm:ss')['toString']():'','disposition':_0x212e27[_0x2b4dde(0x1c7)],'messages':_(_0x212e27[_0x2b4dde(0x1db)])[_0x2b4dde(0x1c8)]({'secret':![]})[_0x2b4dde(0x24a)](function(_0x5bc240){const _0x139abb=_0x2b4dde;return{'date':moment(_0x5bc240[_0x139abb(0x21f)])[_0x139abb(0x250)](_0x139abb(0x27e))[_0x139abb(0x1d5)](),'sender':_0x5bc240[_0x139abb(0x1ed)]===_0x139abb(0x230)?_0x5bc240[_0x139abb(0x26e)]?_0x5bc240[_0x139abb(0x26e)][_0x139abb(0x22d)]:_0x139abb(0x286):_0x5bc240[_0x139abb(0x1df)][_0x139abb(0x28e)]+(_0x5bc240[_0x139abb(0x1df)]['lastName']?'\x20'+_0x5bc240[_0x139abb(0x1df)][_0x139abb(0x25d)]:''),'body':_0x5bc240['body'],'direction':_0x5bc240[_0x139abb(0x1ed)]===_0x139abb(0x230)?'A':'C','secret':_0x5bc240[_0x139abb(0x28a)],'read':_0x5bc240['read']};})[_0x2b4dde(0x251)]()};return ejs[_0x2b4dde(0x29b)](path['join'](config[_0x2b4dde(0x1ce)],_0x2b4dde(0x1f1),'views',_0x2b4dde(0x234)),{'interaction':_0x155de5})[_0x2b4dde(0x280)](function(_0x30368b){return new Promise(function(_0x27b6bf,_0x31c1d6){const _0x38b2d0=a663_0x3a05;pdf[_0x38b2d0(0x221)](_0x30368b,_0x186f10)['toFile'](path[_0x38b2d0(0x1f4)](_0x49bd07,_0x38b2d0(0x264)+_0x212e27['id']+'-'+_0x459407+_0x38b2d0(0x211)),function(_0x25b210,_0x4d24e8){if(_0x25b210)return _0x31c1d6(_0x25b210);_0x27b6bf(_0x4d24e8);});});})[_0x2b4dde(0x280)](function(){const _0x1ffbfe=_0x2b4dde;return new Promise(function(_0x35fc1e,_0xf259db){zipdir(_0x49bd07,{'saveTo':_0x9e5460},function(_0x26e474,_0x236c65){if(_0x26e474)return _0xf259db(_0x26e474);return _0x35fc1e(_0x236c65);});})[_0x1ffbfe(0x280)](function(){return new Promise(function(_0x2b83f6,_0x1d9fab){rimraf(_0x49bd07,function(_0x1902dc){if(_0x1902dc)_0x1d9fab(_0x1902dc);return _0x2b83f6();});});})[_0x1ffbfe(0x280)](function(){const _0x1f4781=_0x1ffbfe;return _0x2c9e9b[_0x1f4781(0x1f7)](_0x9e5460,_0x2c0279,function(_0x3a7e01){const _0x581bde=_0x1f4781;_0x3a7e01?console[_0x581bde(0x23d)](_0x581bde(0x279),_0x3a7e01):fs[_0x581bde(0x1e7)](_0x9e5460);});});});}else return _0x2c9e9b[_0x2b4dde(0x25a)](0xc8);})[_0x107e8(0x22c)](handleError(_0x2c9e9b,null));}; \ No newline at end of file diff --git a/server/api/smsInteraction/smsInteraction.events.js b/server/api/smsInteraction/smsInteraction.events.js index 1031381..84c7b5d 100644 --- a/server/api/smsInteraction/smsInteraction.events.js +++ b/server/api/smsInteraction/smsInteraction.events.js @@ -1 +1 @@ -const a554_0xc3d7=['setMaxListeners','../../mysqldb','then','exports','update','unreadMessages','remove','findAll','getUsers','setDataValue','emit','undefined','catch','length','SmsInteraction','SmsMessage'];(function(_0xfe3f2c,_0xc3d771){const _0x499bac=function(_0x4a9817){while(--_0x4a9817){_0xfe3f2c['push'](_0xfe3f2c['shift']());}};_0x499bac(++_0xc3d771);}(a554_0xc3d7,0x12f));const a554_0x499b=function(_0xfe3f2c,_0xc3d771){_0xfe3f2c=_0xfe3f2c-0x0;let _0x499bac=a554_0xc3d7[_0xfe3f2c];return _0x499bac;};const _0x3263d0=a554_0x499b;'use strict';const EventEmitter=require('events'),SmsInteraction=require(_0x3263d0('0x2'))['db'][_0x3263d0('0xf')],SmsMessage=require('../../mysqldb')['db'][_0x3263d0('0x0')],SmsInteractionEvents=new EventEmitter();SmsInteractionEvents[_0x3263d0('0x1')](0x0);const events={'afterCreate':'save','afterUpdate':_0x3263d0('0x5'),'afterDestroy':_0x3263d0('0x7')};function emitEvent(_0x4a9817){return function(_0x33fb7f){const _0x1e67ab=a554_0x499b;_0x33fb7f[_0x1e67ab('0x9')]({'attributes':['id'],'raw':!![]})[_0x1e67ab('0x3')](function(_0x15ca4f){const _0xe63cef=_0x1e67ab;return _0x33fb7f[_0xe63cef('0xa')]('Users',_0x15ca4f['map'](function(_0x3b7f9d){return{'id':_0x3b7f9d['id']};})),SmsMessage[_0xe63cef('0x8')]({'where':{'SmsInteractionId':_0x33fb7f['id'],'direction':'in','read':![]},'raw':!![]});})[_0x1e67ab('0x3')](function(_0x12f913){const _0x15e647=_0x1e67ab;_0x33fb7f[_0x15e647('0xa')](_0x15e647('0x6'),_0x12f913[_0x15e647('0xe')]),SmsInteractionEvents[_0x15e647('0xb')](_0x4a9817+':'+_0x33fb7f['id'],_0x33fb7f),SmsInteractionEvents[_0x15e647('0xb')](_0x4a9817,_0x33fb7f);})[_0x1e67ab('0xd')](()=>{});};}for(const e in events){if(typeof events[e]!==_0x3263d0('0xc')){const event=events[e];SmsInteraction['addHook'](e,emitEvent(event));}}module[_0x3263d0('0x4')]=SmsInteractionEvents; \ No newline at end of file +const a664_0x44cb=['setMaxListeners','Users','../../mysqldb','SmsMessage','findAll','getUsers','setDataValue','unreadMessages','catch','length','undefined','update','remove','map','events','exports','SmsInteraction','emit','save'];(function(_0x9a720b,_0x341279){const _0x44cbdc=function(_0x326444){while(--_0x326444){_0x9a720b['push'](_0x9a720b['shift']());}};_0x44cbdc(++_0x341279);}(a664_0x44cb,0x85));const a664_0x3264=function(_0x9a720b,_0x341279){_0x9a720b=_0x9a720b-0x86;let _0x44cbdc=a664_0x44cb[_0x9a720b];return _0x44cbdc;};const a664_0x253939=a664_0x3264;'use strict';const EventEmitter=require(a664_0x253939(0x94)),SmsInteraction=require(a664_0x253939(0x88))['db'][a664_0x253939(0x96)],SmsMessage=require(a664_0x253939(0x88))['db'][a664_0x253939(0x89)],SmsInteractionEvents=new EventEmitter();SmsInteractionEvents[a664_0x253939(0x86)](0x0);const events={'afterCreate':a664_0x253939(0x98),'afterUpdate':a664_0x253939(0x91),'afterDestroy':a664_0x253939(0x92)};function emitEvent(_0x555aec){return function(_0x576e67){const _0x3911a4=a664_0x3264;_0x576e67[_0x3911a4(0x8b)]({'attributes':['id'],'raw':!![]})['then'](function(_0x5a1b58){const _0x49b90b=_0x3911a4;return _0x576e67[_0x49b90b(0x8c)](_0x49b90b(0x87),_0x5a1b58[_0x49b90b(0x93)](function(_0x37a081){return{'id':_0x37a081['id']};})),SmsMessage[_0x49b90b(0x8a)]({'where':{'SmsInteractionId':_0x576e67['id'],'direction':'in','read':![]},'raw':!![]});})['then'](function(_0x49f2be){const _0x3aa5f1=_0x3911a4;_0x576e67[_0x3aa5f1(0x8c)](_0x3aa5f1(0x8d),_0x49f2be[_0x3aa5f1(0x8f)]),SmsInteractionEvents[_0x3aa5f1(0x97)](_0x555aec+':'+_0x576e67['id'],_0x576e67),SmsInteractionEvents[_0x3aa5f1(0x97)](_0x555aec,_0x576e67);})[_0x3911a4(0x8e)](()=>{});};}for(const e in events){if(typeof events[e]!==a664_0x253939(0x90)){const event=events[e];SmsInteraction['addHook'](e,emitEvent(event));}}module[a664_0x253939(0x95)]=SmsInteractionEvents; \ No newline at end of file diff --git a/server/api/smsInteraction/smsInteraction.model.js b/server/api/smsInteraction/smsInteraction.model.js index 5b10b60..d4d3bba 100644 --- a/server/api/smsInteraction/smsInteraction.model.js +++ b/server/api/smsInteraction/smsInteraction.model.js @@ -1 +1 @@ -const a555_0x2d13=['exports','format','define','SmsInteraction','sms_interactions','closed','./smsInteraction.attributes','closedAt'];(function(_0x5c8628,_0x2d13f1){const _0x226ac7=function(_0x14327e){while(--_0x14327e){_0x5c8628['push'](_0x5c8628['shift']());}};_0x226ac7(++_0x2d13f1);}(a555_0x2d13,0x66));const a555_0x226a=function(_0x5c8628,_0x2d13f1){_0x5c8628=_0x5c8628-0x0;let _0x226ac7=a555_0x2d13[_0x5c8628];return _0x226ac7;};const _0x17f959=a555_0x226a;'use strict';const moment=require('moment'),attributes=require(_0x17f959('0x0'));module[_0x17f959('0x2')]=function(_0x14327e){const _0x56b284=_0x17f959,_0x549edf=_0x14327e[_0x56b284('0x4')](_0x56b284('0x5'),attributes,{'tableName':_0x56b284('0x6'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x469cef){const _0x42658b=_0x56b284;_0x469cef['changed'](_0x42658b('0x7'))&&(_0x469cef[_0x42658b('0x1')]=moment()[_0x42658b('0x3')]('YYYY-MM-DD\x20HH:mm:ss'));}}});return _0x549edf;}; \ No newline at end of file +const a665_0x1f38=['SmsInteraction','function','./smsInteraction.options','init','exports','./smsInteraction.attributes','sequelize'];(function(_0x55a8b5,_0x12862a){const _0x1f38cd=function(_0x3e3e29){while(--_0x3e3e29){_0x55a8b5['push'](_0x55a8b5['shift']());}};_0x1f38cd(++_0x12862a);}(a665_0x1f38,0x1f1));const a665_0x3e3e=function(_0x55a8b5,_0x12862a){_0x55a8b5=_0x55a8b5-0x1f3;let _0x1f38cd=a665_0x1f38[_0x55a8b5];return _0x1f38cd;};const a665_0x5077b1=a665_0x3e3e;'use strict';const {Model}=require(a665_0x5077b1(0x1f9)),{attributes}=require(a665_0x5077b1(0x1f8)),{options}=require(a665_0x5077b1(0x1f5));class SmsInteraction extends Model{}function init(_0x381526,_0x4095d8){const _0x136842=a665_0x5077b1,_0x522e16=options(_0x381526),_0x414aae=typeof _0x4095d8===_0x136842(0x1f4)?_0x4095d8(_0x522e16):_0x522e16;return SmsInteraction[_0x136842(0x1f6)](attributes,_0x414aae),SmsInteraction;}module[a665_0x5077b1(0x1f7)][a665_0x5077b1(0x1f3)]=SmsInteraction,module[a665_0x5077b1(0x1f7)][a665_0x5077b1(0x1f6)]=init; \ No newline at end of file diff --git a/server/api/smsInteraction/smsInteraction.options.js b/server/api/smsInteraction/smsInteraction.options.js new file mode 100644 index 0000000..70f2c64 --- /dev/null +++ b/server/api/smsInteraction/smsInteraction.options.js @@ -0,0 +1 @@ +const a666_0x51e0=['sms_interactions','YYYY-MM-DD\x20HH:mm:ss','format','closed','changed','options','closedAt','exports'];(function(_0x189c30,_0x46175f){const _0x51e0ef=function(_0x240496){while(--_0x240496){_0x189c30['push'](_0x189c30['shift']());}};_0x51e0ef(++_0x46175f);}(a666_0x51e0,0x1f3));const a666_0x2404=function(_0x189c30,_0x46175f){_0x189c30=_0x189c30-0x6d;let _0x51e0ef=a666_0x51e0[_0x189c30];return _0x51e0ef;};const a666_0x34039e=a666_0x2404,moment=require('moment');function options(_0x1a93ef){const _0x4d3bc5=a666_0x2404;return{'sequelize':_0x1a93ef,'tableName':_0x4d3bc5(0x72),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0xae8532){const _0x134ded=_0x4d3bc5;_0xae8532[_0x134ded(0x6e)](_0x134ded(0x6d))&&(_0xae8532[_0x134ded(0x70)]=moment()[_0x134ded(0x74)](_0x134ded(0x73)));}}};}module[a666_0x34039e(0x71)][a666_0x34039e(0x6f)]=options; \ No newline at end of file diff --git a/server/api/smsInteraction/smsInteraction.rpc.js b/server/api/smsInteraction/smsInteraction.rpc.js index 59134c8..9fbb9e5 100644 --- a/server/api/smsInteraction/smsInteraction.rpc.js +++ b/server/api/smsInteraction/smsInteraction.rpc.js @@ -1 +1 @@ -const a556_0x1283=['./smsInteraction.socket','AddTagsToSmsInteraction','options','UpdateSmsInteraction','register','info','message','../../config/logger','error','attributes','then','findOne','debug','../../mysqldb','catch','AddTags','stringify','../../rediscache','SmsInteraction','lodash','where','rpc','raw','body','ids','omit'];(function(_0x1a34a6,_0x12831d){const _0x571c92=function(_0x408d46){while(--_0x408d46){_0x1a34a6['push'](_0x1a34a6['shift']());}};_0x571c92(++_0x12831d);}(a556_0x1283,0x140));const a556_0x571c=function(_0x1a34a6,_0x12831d){_0x1a34a6=_0x1a34a6-0x0;let _0x571c92=a556_0x1283[_0x1a34a6];return _0x571c92;};const _0x5d8e1c=a556_0x571c;'use strict';const _=require(_0x5d8e1c('0xb')),db=require(_0x5d8e1c('0x5'))['db'],logger=require(_0x5d8e1c('0x19'))(_0x5d8e1c('0xd')),{getSocket}=require(_0x5d8e1c('0x9')),socket=getSocket();require(_0x5d8e1c('0x12'))[_0x5d8e1c('0x16')](socket),exports[_0x5d8e1c('0x15')]=function(_0x408d46){const _0x4238c9=this;return new Promise(function(_0x164f82,_0x44e54a){const _0x226f4b=a556_0x571c;return db[_0x226f4b('0xa')]['update'](_0x408d46['body'],{'raw':_0x408d46['options']?_0x408d46[_0x226f4b('0x14')][_0x226f4b('0xe')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x408d46[_0x226f4b('0x14')]?_0x408d46[_0x226f4b('0x14')][_0x226f4b('0xc')]||null:null,'attributes':_0x408d46[_0x226f4b('0x14')]?_0x408d46[_0x226f4b('0x14')][_0x226f4b('0x1')]||null:null,'limit':_0x408d46[_0x226f4b('0x14')]?_0x408d46[_0x226f4b('0x14')]['limit']||null:null})[_0x226f4b('0x2')](function(_0x3c47d4){const _0x1b1aa9=_0x226f4b;logger[_0x1b1aa9('0x17')](_0x1b1aa9('0x15'),_0x408d46),logger[_0x1b1aa9('0x4')](_0x1b1aa9('0x15'),_0x408d46,JSON['stringify'](_0x3c47d4)),_0x164f82(_0x3c47d4);})[_0x226f4b('0x6')](function(_0x41ef96){const _0x25759d=_0x226f4b;logger[_0x25759d('0x0')](_0x25759d('0x15'),_0x41ef96[_0x25759d('0x18')],_0x408d46),_0x44e54a(_0x4238c9['error'](0x1f4,_0x41ef96[_0x25759d('0x18')]));});});},exports[_0x5d8e1c('0x13')]=function(_0xc713df){const _0x5884c3=this;return new Promise(function(_0x30e185,_0x1ddc40){const _0x5707e2=a556_0x571c;return db[_0x5707e2('0xa')][_0x5707e2('0x3')]({'where':_0xc713df[_0x5707e2('0x14')]?_0xc713df[_0x5707e2('0x14')][_0x5707e2('0xc')]||null:null})['then'](function(_0x38cd9d){const _0x146293=_0x5707e2;if(_0x38cd9d)return _0x38cd9d['addTags'](_0xc713df[_0x146293('0xf')]['ids'],{'through':_[_0x146293('0x11')](_0xc713df[_0x146293('0xf')],[_0x146293('0x10'),'id'])});})[_0x5707e2('0x2')](function([_0x491d0d]){const _0x4c94c0=_0x5707e2;logger[_0x4c94c0('0x17')](_0x4c94c0('0x7'),_0xc713df),logger[_0x4c94c0('0x4')]('AddTags',_0xc713df,JSON[_0x4c94c0('0x8')](_0x491d0d)),_0x30e185(_0x491d0d);})['catch'](function(_0x1fcc3c){const _0x4bc04b=_0x5707e2;logger['error'](_0x4bc04b('0x7'),_0x1fcc3c[_0x4bc04b('0x18')],_0xc713df),_0x1ddc40(_0x5884c3[_0x4bc04b('0x0')](0x1f4,_0x1fcc3c[_0x4bc04b('0x18')]));});});}; \ No newline at end of file +const a667_0x5e81=['error','AddTagsToSmsInteraction','body','catch','message','findOne','raw','limit','ids','stringify','where','AddTags','info','UpdateSmsInteraction','addTags','SmsInteraction','then','omit','debug','attributes','register','rpc','../../config/logger','lodash','options'];(function(_0x210750,_0x28eda8){const _0x5e81ee=function(_0x35b95d){while(--_0x35b95d){_0x210750['push'](_0x210750['shift']());}};_0x5e81ee(++_0x28eda8);}(a667_0x5e81,0x126));const a667_0x35b9=function(_0x210750,_0x28eda8){_0x210750=_0x210750-0x6c;let _0x5e81ee=a667_0x5e81[_0x210750];return _0x5e81ee;};const a667_0xa644ca=a667_0x35b9;'use strict';const _=require(a667_0xa644ca(0x70)),db=require('../../mysqldb')['db'],logger=require(a667_0xa644ca(0x6f))(a667_0xa644ca(0x6e)),{getSocket}=require('../../rediscache'),socket=getSocket();require('./smsInteraction.socket')[a667_0xa644ca(0x6d)](socket),exports[a667_0xa644ca(0x7f)]=function(_0xa166ed){const _0x317f66=this;return new Promise(function(_0x1bee00,_0x171651){const _0x1af5a2=a667_0x35b9;return db[_0x1af5a2(0x81)]['update'](_0xa166ed[_0x1af5a2(0x74)],{'raw':_0xa166ed['options']?_0xa166ed[_0x1af5a2(0x71)][_0x1af5a2(0x78)]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0xa166ed[_0x1af5a2(0x71)]?_0xa166ed['options'][_0x1af5a2(0x7c)]||null:null,'attributes':_0xa166ed[_0x1af5a2(0x71)]?_0xa166ed[_0x1af5a2(0x71)][_0x1af5a2(0x6c)]||null:null,'limit':_0xa166ed[_0x1af5a2(0x71)]?_0xa166ed['options'][_0x1af5a2(0x79)]||null:null})[_0x1af5a2(0x82)](function(_0x3ef032){const _0x52b15e=_0x1af5a2;logger[_0x52b15e(0x7e)](_0x52b15e(0x7f),_0xa166ed),logger[_0x52b15e(0x84)]('UpdateSmsInteraction',_0xa166ed,JSON['stringify'](_0x3ef032)),_0x1bee00(_0x3ef032);})[_0x1af5a2(0x75)](function(_0xad4dd1){const _0x4505a2=_0x1af5a2;logger[_0x4505a2(0x72)]('UpdateSmsInteraction',_0xad4dd1[_0x4505a2(0x76)],_0xa166ed),_0x171651(_0x317f66[_0x4505a2(0x72)](0x1f4,_0xad4dd1['message']));});});},exports[a667_0xa644ca(0x73)]=function(_0x450cbd){const _0x3f662b=this;return new Promise(function(_0x2d6913,_0x3d2e32){const _0x5f2b99=a667_0x35b9;return db[_0x5f2b99(0x81)][_0x5f2b99(0x77)]({'where':_0x450cbd['options']?_0x450cbd[_0x5f2b99(0x71)][_0x5f2b99(0x7c)]||null:null})['then'](function(_0x530dcf){const _0x5d9110=_0x5f2b99;if(_0x530dcf)return _0x530dcf[_0x5d9110(0x80)](_0x450cbd[_0x5d9110(0x74)][_0x5d9110(0x7a)],{'through':_[_0x5d9110(0x83)](_0x450cbd[_0x5d9110(0x74)],[_0x5d9110(0x7a),'id'])});})[_0x5f2b99(0x82)](function([_0x4a1f56]){const _0x4d999a=_0x5f2b99;logger['info'](_0x4d999a(0x7d),_0x450cbd),logger[_0x4d999a(0x84)](_0x4d999a(0x7d),_0x450cbd,JSON[_0x4d999a(0x7b)](_0x4a1f56)),_0x2d6913(_0x4a1f56);})[_0x5f2b99(0x75)](function(_0x44bd6e){const _0x203d76=_0x5f2b99;logger['error'](_0x203d76(0x7d),_0x44bd6e[_0x203d76(0x76)],_0x450cbd),_0x3d2e32(_0x3f662b['error'](0x1f4,_0x44bd6e[_0x203d76(0x76)]));});});}; \ No newline at end of file diff --git a/server/api/smsInteraction/smsInteraction.socket.js b/server/api/smsInteraction/smsInteraction.socket.js index 68dcf8a..51a18dc 100644 --- a/server/api/smsInteraction/smsInteraction.socket.js +++ b/server/api/smsInteraction/smsInteraction.socket.js @@ -1 +1 @@ -const a557_0x5e73=['./smsInteraction.events','remove','update','emit','smsInteraction:','register','save'];(function(_0x5c382c,_0x5e73f3){const _0x581c01=function(_0x52e03f){while(--_0x52e03f){_0x5c382c['push'](_0x5c382c['shift']());}};_0x581c01(++_0x5e73f3);}(a557_0x5e73,0x1b6));const a557_0x581c=function(_0x5c382c,_0x5e73f3){_0x5c382c=_0x5c382c-0x0;let _0x581c01=a557_0x5e73[_0x5c382c];return _0x581c01;};const _0x1619d6=a557_0x581c;'use strict';const SmsInteractionEvents=require(_0x1619d6('0x3')),events=[_0x1619d6('0x2'),_0x1619d6('0x4'),_0x1619d6('0x5')];function createListener(_0x52e03f,_0x10752b){return function(_0x4f6045){const _0x12bb0a=a557_0x581c;_0x10752b[_0x12bb0a('0x6')](_0x52e03f,_0x4f6045);};}exports[_0x1619d6('0x1')]=function(_0x3e59c9){const _0x5c9cc3=_0x1619d6;for(let _0x51495d=0x0,_0x1a221e=events['length'];_0x51495d<_0x1a221e;_0x51495d++){const _0x383fe0=events[_0x51495d],_0xda6a09=createListener(_0x5c9cc3('0x0')+_0x383fe0,_0x3e59c9);SmsInteractionEvents['on'](_0x383fe0,_0xda6a09);}}; \ No newline at end of file +const a668_0x23e2=['remove','length','update','emit','smsInteraction:','register','save'];(function(_0x51acf0,_0x2c0c18){const _0x23e2ef=function(_0x1c5946){while(--_0x1c5946){_0x51acf0['push'](_0x51acf0['shift']());}};_0x23e2ef(++_0x2c0c18);}(a668_0x23e2,0x97));const a668_0x1c59=function(_0x51acf0,_0x2c0c18){_0x51acf0=_0x51acf0-0x1b6;let _0x23e2ef=a668_0x23e2[_0x51acf0];return _0x23e2ef;};const a668_0x485bb7=a668_0x1c59;'use strict';const SmsInteractionEvents=require('./smsInteraction.events'),events=[a668_0x485bb7(0x1b8),a668_0x485bb7(0x1b9),a668_0x485bb7(0x1bb)];function createListener(_0xec75f7,_0x546c4b){return function(_0x1d656d){const _0x5baa1b=a668_0x1c59;_0x546c4b[_0x5baa1b(0x1bc)](_0xec75f7,_0x1d656d);};}exports[a668_0x485bb7(0x1b7)]=function(_0x3d6f52){const _0x3ca76b=a668_0x485bb7;for(let _0xb0b590=0x0,_0x32baa2=events[_0x3ca76b(0x1ba)];_0xb0b590<_0x32baa2;_0xb0b590++){const _0x504ae0=events[_0xb0b590],_0x410f5b=createListener(_0x3ca76b(0x1b6)+_0x504ae0,_0x3d6f52);SmsInteractionEvents['on'](_0x504ae0,_0x410f5b);}}; \ No newline at end of file diff --git a/server/api/smsMessage/index.js b/server/api/smsMessage/index.js index c2c5aef..ff13517 100644 --- a/server/api/smsMessage/index.js +++ b/server/api/smsMessage/index.js @@ -1 +1 @@ -const a558_0x4727=['put','exports','../../components/interaction/service','show','express','update','index','get','tracked','post','reject','status','/:id','./smsMessage.controller','sms','delete','destroy','smsmessage:create','/:id/reject','/:id/status','/:id/accept','create','Router','isAuthenticated'];(function(_0x3b6df7,_0x47279f){const _0x4cf08d=function(_0x11227c){while(--_0x11227c){_0x3b6df7['push'](_0x3b6df7['shift']());}};_0x4cf08d(++_0x47279f);}(a558_0x4727,0x1c0));const a558_0x4cf0=function(_0x3b6df7,_0x47279f){_0x3b6df7=_0x3b6df7-0x0;let _0x4cf08d=a558_0x4727[_0x3b6df7];return _0x4cf08d;};const _0x38fd6f=a558_0x4cf0;'use strict';const express=require(_0x38fd6f('0xc')),router=express[_0x38fd6f('0x6')](),auth=require('../../components/auth/service'),interaction=require(_0x38fd6f('0xa')),controller=require(_0x38fd6f('0x15'));router[_0x38fd6f('0xf')]('/',auth[_0x38fd6f('0x7')](),controller[_0x38fd6f('0xe')]),router[_0x38fd6f('0xf')]('/describe',auth[_0x38fd6f('0x7')](),controller['describe']),router[_0x38fd6f('0xf')]('/:id',auth['isAuthenticated'](),controller[_0x38fd6f('0xb')]),router[_0x38fd6f('0x11')]('/',auth[_0x38fd6f('0x7')](),interaction[_0x38fd6f('0x10')](_0x38fd6f('0x16'),_0x38fd6f('0x1')),controller[_0x38fd6f('0x5')]),router[_0x38fd6f('0x11')](_0x38fd6f('0x3'),controller[_0x38fd6f('0x13')]),router[_0x38fd6f('0x8')](_0x38fd6f('0x14'),auth['isAuthenticated'](),controller[_0x38fd6f('0xd')]),router['put'](_0x38fd6f('0x4'),auth['isAuthenticated'](),controller['accept']),router[_0x38fd6f('0x8')](_0x38fd6f('0x2'),auth[_0x38fd6f('0x7')](),controller[_0x38fd6f('0x12')]),router[_0x38fd6f('0x17')](_0x38fd6f('0x14'),auth[_0x38fd6f('0x7')](),controller[_0x38fd6f('0x0')]),module[_0x38fd6f('0x9')]=router; \ No newline at end of file +const a669_0x20bb=['describe','get','destroy','/:id','smsmessage:create','put','/describe','./smsMessage.controller','accept','exports','sms','show','isAuthenticated','delete','/:id/accept','express','/:id/status','../../components/interaction/service','status','/:id/reject','create','index'];(function(_0x5b01a2,_0x132077){const _0x20bb3d=function(_0x344050){while(--_0x344050){_0x5b01a2['push'](_0x5b01a2['shift']());}};_0x20bb3d(++_0x132077);}(a669_0x20bb,0x153));const a669_0x3440=function(_0x5b01a2,_0x132077){_0x5b01a2=_0x5b01a2-0x136;let _0x20bb3d=a669_0x20bb[_0x5b01a2];return _0x20bb3d;};const a669_0x169131=a669_0x3440;'use strict';const express=require(a669_0x169131(0x13c)),router=express['Router'](),auth=require('../../components/auth/service'),interaction=require(a669_0x169131(0x13e)),controller=require(a669_0x169131(0x14a));router[a669_0x169131(0x144)]('/',auth[a669_0x169131(0x139)](),controller[a669_0x169131(0x142)]),router[a669_0x169131(0x144)](a669_0x169131(0x149),auth[a669_0x169131(0x139)](),controller[a669_0x169131(0x143)]),router[a669_0x169131(0x144)](a669_0x169131(0x146),auth['isAuthenticated'](),controller[a669_0x169131(0x138)]),router['post']('/',auth[a669_0x169131(0x139)](),interaction['tracked'](a669_0x169131(0x137),a669_0x169131(0x147)),controller[a669_0x169131(0x141)]),router['post'](a669_0x169131(0x13d),controller[a669_0x169131(0x13f)]),router[a669_0x169131(0x148)](a669_0x169131(0x146),auth[a669_0x169131(0x139)](),controller['update']),router[a669_0x169131(0x148)](a669_0x169131(0x13b),auth[a669_0x169131(0x139)](),controller[a669_0x169131(0x14b)]),router[a669_0x169131(0x148)](a669_0x169131(0x140),auth[a669_0x169131(0x139)](),controller['reject']),router[a669_0x169131(0x13a)](a669_0x169131(0x146),auth[a669_0x169131(0x139)](),controller[a669_0x169131(0x145)]),module[a669_0x169131(0x136)]=router; \ No newline at end of file diff --git a/server/api/smsMessage/smsMessage.attributes.js b/server/api/smsMessage/smsMessage.attributes.js index 9aafd75..305fb92 100644 --- a/server/api/smsMessage/smsMessage.attributes.js +++ b/server/api/smsMessage/smsMessage.attributes.js @@ -1 +1 @@ -const a559_0x8940=['BOOLEAN','DATE','sequelize','medium','STRING','ENUM','TEXT','out'];(function(_0x29caa4,_0x8940dd){const _0x4b5936=function(_0x3f3aba){while(--_0x3f3aba){_0x29caa4['push'](_0x29caa4['shift']());}};_0x4b5936(++_0x8940dd);}(a559_0x8940,0x6b));const a559_0x4b59=function(_0x29caa4,_0x8940dd){_0x29caa4=_0x29caa4-0x0;let _0x4b5936=a559_0x8940[_0x29caa4];return _0x4b5936;};const _0x5c1a93=a559_0x4b59;'use strict';const Sequelize=require(_0x5c1a93('0x7'));module['exports']={'body':{'type':Sequelize['TEXT'](_0x5c1a93('0x0')),'allowNull':![]},'read':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'direction':{'type':Sequelize[_0x5c1a93('0x2')]('in','out'),'defaultValue':_0x5c1a93('0x4'),'allowNull':![]},'messageId':{'type':Sequelize[_0x5c1a93('0x1')](0xbe)},'phone':{'type':Sequelize['STRING']},'readAt':{'type':Sequelize[_0x5c1a93('0x6')]},'secret':{'type':Sequelize[_0x5c1a93('0x5')],'defaultValue':![]},'providerName':{'type':Sequelize[_0x5c1a93('0x1')]},'providerResponse':{'type':Sequelize[_0x5c1a93('0x3')]}}; \ No newline at end of file +const a670_0x1e96=['BOOLEAN','STRING','medium','sequelize','out','attributes','exports','TEXT'];(function(_0x8ddc88,_0x5f1dac){const _0x1e9603=function(_0x5b3d37){while(--_0x5b3d37){_0x8ddc88['push'](_0x8ddc88['shift']());}};_0x1e9603(++_0x5f1dac);}(a670_0x1e96,0x1c9));const a670_0x5b3d=function(_0x8ddc88,_0x5f1dac){_0x8ddc88=_0x8ddc88-0x110;let _0x1e9603=a670_0x1e96[_0x8ddc88];return _0x1e9603;};const a670_0x32f399=a670_0x5b3d;'use strict';const {DataTypes}=require(a670_0x32f399(0x112)),attributes={'body':{'type':DataTypes[a670_0x32f399(0x116)]({'length':a670_0x32f399(0x111)}),'allowNull':![]},'read':{'type':DataTypes[a670_0x32f399(0x117)],'defaultValue':![]},'direction':{'type':DataTypes['ENUM']('in',a670_0x32f399(0x113)),'defaultValue':a670_0x32f399(0x113),'allowNull':![]},'messageId':{'type':DataTypes['STRING'](0xbe)},'phone':{'type':DataTypes[a670_0x32f399(0x110)]},'readAt':{'type':DataTypes['DATE']},'secret':{'type':DataTypes['BOOLEAN'],'defaultValue':![]},'providerName':{'type':DataTypes[a670_0x32f399(0x110)]},'providerResponse':{'type':DataTypes['TEXT']}};module[a670_0x32f399(0x115)][a670_0x32f399(0x114)]=attributes; \ No newline at end of file diff --git a/server/api/smsMessage/smsMessage.controller.js b/server/api/smsMessage/smsMessage.controller.js index 8996cf1..ad5625f 100644 --- a/server/api/smsMessage/smsMessage.controller.js +++ b/server/api/smsMessage/smsMessage.controller.js @@ -1 +1 @@ -const a560_0x4048=['util','agent','fieldName','SmsInteraction','accept','json','update','include','lodash','null','readAt','order','Status','plivio','channel','read','message','../../config/logger','DELIVERED','jayson/promise','UserId','plivo','interface','type','EventManager','messageId','rejectMessage','limit','request','sort','findAll','intersection','received\x20delivery\x20report\x20from','SmsMessage','./smsMessage.socket','sms-interactions','filter','nolimit','AcceptMessage','result','offset','filters','[SMSMESSAGE:REJECT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s','error','rows','read1stAt','keys','VIRTUAL','key','MessageSid','debug','get','../../mysqldb','client','name','show','describe','like','inspect','options','model','Contact','infobip','index','rawAttributes','format','query','stack','SmsMessage,\x20%s,\x20%s','count','attributes','SmsAccountId','sendStatus','send','SmsAccount,\x20%s,\x20%s,\x20%s','interaction','SmsMessage,\x20%s,\x20%s,\x20%s','manual','merge','info','findOne','MessageUUID','reject','length','where','moment','destroy','indexOf','then','pick','Content-Range','map','end','user','status','SmsInteractionId','role','YYYY-MM-DD\x20HH:mm:ss','http','isNil','includeAll','event','sent','params','fields','twilio','stringify','SIP/%s','catch','request\x20sent','body','create'];(function(_0x266ced,_0x4048b5){const _0x27186d=function(_0x2fd099){while(--_0x2fd099){_0x266ced['push'](_0x266ced['shift']());}};_0x27186d(++_0x4048b5);}(a560_0x4048,0xc5));const a560_0x2718=function(_0x266ced,_0x4048b5){_0x266ced=_0x266ced-0x0;let _0x27186d=a560_0x4048[_0x266ced];return _0x27186d;};const _0x1894ef=a560_0x2718;'use strict';const moment=require(_0x1894ef('0x0')),util=require(_0x1894ef('0x1b')),_=require(_0x1894ef('0x23')),qs=require('../../components/parsers/qs'),logger=require(_0x1894ef('0x2c'))('api'),{getSocket}=require('../../rediscache'),socket=getSocket(),db=require(_0x1894ef('0x4f'))['db'],{Op}=require('sequelize'),interaction_log=require(_0x1894ef('0x2c'))(_0x1894ef('0x3e'));require(_0x1894ef('0x3d'))['register'](socket);const jayson=require(_0x1894ef('0x2e')),client=jayson[_0x1894ef('0x50')][_0x1894ef('0xd')]({'port':0x232c}),client9002=jayson[_0x1894ef('0x50')]['http']({'port':0x232a});function respondWithRpcPromise(_0x2fd099,_0xeee3f5,_0x350ac8,_0x14788f){return new Promise(function(_0x44ff35,_0x24f7b7){const _0x1eba1f=a560_0x2718,_0x4ee561=_0x14788f||client;return _0x4ee561[_0x1eba1f('0x37')](_0x2fd099,_0x350ac8)['then'](function(_0x4c369d){const _0xacba99=_0x1eba1f;logger[_0xacba99('0x6a')](_0xacba99('0x5f'),_0xeee3f5,_0xacba99('0x18')),logger[_0xacba99('0x4d')](_0xacba99('0x67'),_0xeee3f5,'request\x20sent',JSON[_0xacba99('0x15')](_0x4c369d));if(_0x4c369d[_0xacba99('0x46')]){if(_0x4c369d[_0xacba99('0x46')]['code']===0x1f4)return logger['error'](_0xacba99('0x5f'),_0xeee3f5,_0x4c369d['error']['message']),_0x24f7b7(_0x4c369d[_0xacba99('0x46')][_0xacba99('0x2b')]);return logger['error'](_0xacba99('0x5f'),_0xeee3f5,_0x4c369d[_0xacba99('0x46')][_0xacba99('0x2b')]),_0x44ff35(_0x4c369d[_0xacba99('0x46')][_0xacba99('0x2b')]);}else logger[_0xacba99('0x6a')](_0xacba99('0x5f'),_0xeee3f5,_0xacba99('0x18')),_0x44ff35(_0x4c369d[_0xacba99('0x42')][_0xacba99('0x2b')]);})['catch'](function(_0xcb684c){const _0x241cb5=_0x1eba1f;logger['error'](_0x241cb5('0x5f'),_0xeee3f5,_0xcb684c),_0x24f7b7(_0xcb684c);});});}function respondWithResult(_0xd27dad,_0x29d0b3){return _0x29d0b3=_0x29d0b3||0xc8,function(_0x60ec0d){const _0x7328d1=a560_0x2718;if(_0x60ec0d)return _0xd27dad[_0x7328d1('0x9')](_0x29d0b3)[_0x7328d1('0x20')](_0x60ec0d);};}function respondWithFilteredResult(_0x238045,_0x1b1aa0){return function(_0x586745){const _0xfc440=a560_0x2718;if(_0x586745){const _0x226ad2=_0x586745[_0xfc440('0x60')],_0x3222b1=_0x1b1aa0[_0xfc440('0x43')];let _0x124dab=_0x1b1aa0[_0xfc440('0x43')]+_0x1b1aa0[_0xfc440('0x36')],_0x188029;return _0x124dab>=_0x226ad2?(_0x124dab=_0x226ad2,_0x188029=0xc8):_0x188029=0xce,_0x238045['status'](_0x188029),_0x238045['set'](_0xfc440('0x5'),_0x3222b1+'-'+_0x124dab+'/'+_0x226ad2)[_0xfc440('0x20')](_0x586745);}return null;};}function saveUpdates(_0x282387){return function(_0x53dc62){const _0x2fb527=a560_0x2718;if(_0x53dc62)return _0x53dc62[_0x2fb527('0x21')](_0x282387)[_0x2fb527('0x3')](function(_0x796e0d){return _0x796e0d;});return null;};}function removeEntity(_0x46b42f){return function(_0x1b58a4){const _0x5c7eca=a560_0x2718;if(_0x1b58a4)return _0x1b58a4[_0x5c7eca('0x1')]()['then'](function(){const _0xa42f46=_0x5c7eca;_0x46b42f[_0xa42f46('0x9')](0xcc)[_0xa42f46('0x7')]();});};}function handleEntityNotFound(_0x1b2d79){return function(_0x52ead6){const _0x4d32d4=a560_0x2718;return!_0x52ead6&&_0x1b2d79[_0x4d32d4('0x63')](0x194),_0x52ead6;};}function handleError(_0x544865,_0x3ab0be){return _0x3ab0be=_0x3ab0be||0x1f4,function(_0x147af6){const _0x3dfe32=a560_0x2718;logger[_0x3dfe32('0x46')](_0x147af6[_0x3dfe32('0x5e')]),_0x147af6[_0x3dfe32('0x51')]&&delete _0x147af6[_0x3dfe32('0x51')],_0x544865[_0x3dfe32('0x9')](_0x3ab0be)[_0x3dfe32('0x64')](_0x147af6);};}exports[_0x1894ef('0x5a')]=function(_0x2177fc,_0x4ef3f5){const _0x5bfdce=_0x1894ef;let _0x413ebe={};const _0x4162d5={},_0x5b72ab={'count':0x0,'rows':[]},_0x43e2d3=_['map'](db[_0x5bfdce('0x3c')][_0x5bfdce('0x5b')],function(_0x4b68cd){const _0x5d88c0=_0x5bfdce;return{'name':_0x4b68cd[_0x5d88c0('0x1d')],'type':_0x4b68cd[_0x5d88c0('0x32')][_0x5d88c0('0x4b')]};});_0x4162d5[_0x5bfdce('0x57')]=_[_0x5bfdce('0x6')](_0x43e2d3,_0x5bfdce('0x51')),_0x4162d5[_0x5bfdce('0x5d')]=_[_0x5bfdce('0x49')](_0x2177fc[_0x5bfdce('0x5d')]),_0x4162d5[_0x5bfdce('0x44')]=_[_0x5bfdce('0x3a')](_0x4162d5[_0x5bfdce('0x57')],_0x4162d5[_0x5bfdce('0x5d')]),_0x413ebe[_0x5bfdce('0x61')]=_['intersection'](_0x4162d5[_0x5bfdce('0x57')],qs[_0x5bfdce('0x13')](_0x2177fc[_0x5bfdce('0x5d')][_0x5bfdce('0x13')])),_0x413ebe[_0x5bfdce('0x61')]=_0x413ebe[_0x5bfdce('0x61')][_0x5bfdce('0x6e')]?_0x413ebe[_0x5bfdce('0x61')]:_0x4162d5['model'];typeof _0x2177fc[_0x5bfdce('0x5d')][_0x5bfdce('0x40')]==='undefined'&&(_0x413ebe[_0x5bfdce('0x36')]=qs[_0x5bfdce('0x36')](_0x2177fc[_0x5bfdce('0x5d')]['limit']),_0x413ebe[_0x5bfdce('0x43')]=qs[_0x5bfdce('0x43')](_0x2177fc[_0x5bfdce('0x5d')][_0x5bfdce('0x43')]));_0x413ebe[_0x5bfdce('0x26')]=qs[_0x5bfdce('0x38')](_0x2177fc[_0x5bfdce('0x5d')]['sort']),_0x413ebe[_0x5bfdce('0x6f')]=qs[_0x5bfdce('0x44')](_[_0x5bfdce('0x4')](_0x2177fc['query'],_0x4162d5['filters']),_0x43e2d3);_0x2177fc[_0x5bfdce('0x5d')]['filter']&&(_0x413ebe[_0x5bfdce('0x6f')]=_[_0x5bfdce('0x69')](_0x413ebe[_0x5bfdce('0x6f')],{[Op['or']]:_[_0x5bfdce('0x6')](_0x43e2d3,function(_0x14f4a7){const _0x3508ff=_0x5bfdce;if(_0x14f4a7[_0x3508ff('0x32')]!==_0x3508ff('0x4a')){const _0x2e70fd={};return _0x2e70fd[_0x14f4a7[_0x3508ff('0x51')]]={[Op[_0x3508ff('0x54')]]:'%'+_0x2177fc[_0x3508ff('0x5d')][_0x3508ff('0x3f')]+'%'},_0x2e70fd;}})}));_0x413ebe=_[_0x5bfdce('0x69')]({},_0x413ebe,_0x2177fc[_0x5bfdce('0x56')]);const _0x388d3c={'where':_0x413ebe[_0x5bfdce('0x6f')]};return db[_0x5bfdce('0x3c')][_0x5bfdce('0x60')](_0x388d3c)[_0x5bfdce('0x3')](function(_0x14b552){const _0x4dfc3d=_0x5bfdce;return _0x5b72ab[_0x4dfc3d('0x60')]=_0x14b552,_0x2177fc[_0x4dfc3d('0x5d')][_0x4dfc3d('0xf')]&&(_0x413ebe[_0x4dfc3d('0x22')]=[{'all':!![]}]),db[_0x4dfc3d('0x3c')][_0x4dfc3d('0x39')](_0x413ebe);})[_0x5bfdce('0x3')](function(_0x47dcb6){const _0x1feef4=_0x5bfdce;return _0x5b72ab[_0x1feef4('0x47')]=_0x47dcb6,_0x5b72ab;})[_0x5bfdce('0x3')](respondWithFilteredResult(_0x4ef3f5,_0x413ebe))[_0x5bfdce('0x17')](handleError(_0x4ef3f5,null));},exports[_0x1894ef('0x52')]=function(_0x1bd7a4,_0x351e22){const _0x11badf=_0x1894ef;let _0x4eb014={'raw':!![],'where':{'id':_0x1bd7a4[_0x11badf('0x12')]['id']}};const _0x1eedd1={};return _0x1eedd1[_0x11badf('0x57')]=_[_0x11badf('0x49')](db[_0x11badf('0x3c')][_0x11badf('0x5b')]),_0x1eedd1[_0x11badf('0x5d')]=_['keys'](_0x1bd7a4[_0x11badf('0x5d')]),_0x1eedd1[_0x11badf('0x44')]=_['intersection'](_0x1eedd1['model'],_0x1eedd1[_0x11badf('0x5d')]),_0x4eb014['attributes']=_[_0x11badf('0x3a')](_0x1eedd1[_0x11badf('0x57')],qs[_0x11badf('0x13')](_0x1bd7a4[_0x11badf('0x5d')][_0x11badf('0x13')])),_0x4eb014['attributes']=_0x4eb014[_0x11badf('0x61')][_0x11badf('0x6e')]?_0x4eb014[_0x11badf('0x61')]:_0x1eedd1[_0x11badf('0x57')],_0x1bd7a4[_0x11badf('0x5d')][_0x11badf('0xf')]&&(_0x4eb014['include']=[{'all':!![]}]),_0x4eb014=_['merge']({},_0x4eb014,_0x1bd7a4[_0x11badf('0x56')]),db['SmsMessage'][_0x11badf('0x6b')](_0x4eb014)[_0x11badf('0x3')](handleEntityNotFound(_0x351e22,null))[_0x11badf('0x3')](respondWithResult(_0x351e22,null))[_0x11badf('0x17')](handleError(_0x351e22,null));},exports[_0x1894ef('0x1a')]=function(_0x231743,_0x1879a7){const _0x37a673=_0x1894ef;return db['SmsMessage'][_0x37a673('0x1a')](_0x231743['body'],{})[_0x37a673('0x3')](respondWithResult(_0x1879a7,0xc9))[_0x37a673('0x17')](handleError(_0x1879a7,null));},exports[_0x1894ef('0x21')]=function(_0x11d33e,_0x532992){const _0xeaef9c=_0x1894ef;return _0x11d33e[_0xeaef9c('0x19')]['id']&&delete _0x11d33e[_0xeaef9c('0x19')]['id'],db['SmsMessage']['findOne']({'where':{'id':_0x11d33e[_0xeaef9c('0x12')]['id']}})['then'](handleEntityNotFound(_0x532992,null))[_0xeaef9c('0x3')](saveUpdates(_0x11d33e[_0xeaef9c('0x19')],null))[_0xeaef9c('0x3')](respondWithResult(_0x532992,null))[_0xeaef9c('0x17')](handleError(_0x532992,null));},exports['destroy']=function(_0x22717b,_0x27ddda){const _0x32bce5=_0x1894ef;return db[_0x32bce5('0x3c')][_0x32bce5('0x6b')]({'where':{'id':_0x22717b[_0x32bce5('0x12')]['id']}})[_0x32bce5('0x3')](handleEntityNotFound(_0x27ddda,null))[_0x32bce5('0x3')](removeEntity(_0x27ddda,null))[_0x32bce5('0x17')](handleError(_0x27ddda,null));},exports['describe']=function(_0x2d3a4a,_0xf9740f){const _0x130d2b=_0x1894ef;return db[_0x130d2b('0x3c')][_0x130d2b('0x53')]()[_0x130d2b('0x3')](respondWithResult(_0xf9740f,null))[_0x130d2b('0x17')](handleError(_0xf9740f,null));},exports[_0x1894ef('0x1f')]=function(_0x1367ea,_0x192fc2){const _0x5a6e1d=_0x1894ef,_0x26a07f={'channel':'sms'};return _0x1367ea['body']['id']&&delete _0x1367ea['body']['id'],_0x1367ea[_0x5a6e1d('0x19')][_0x5a6e1d('0x2a')]=!![],_0x1367ea['body'][_0x5a6e1d('0x25')]=moment()[_0x5a6e1d('0x5c')](_0x5a6e1d('0xc')),_0x1367ea['body'][_0x5a6e1d('0x2f')]=_0x1367ea[_0x5a6e1d('0x19')][_0x5a6e1d('0x2f')]||_0x1367ea[_0x5a6e1d('0x8')]['id'],db[_0x5a6e1d('0x3c')][_0x5a6e1d('0x6b')]({'where':{'id':_0x1367ea[_0x5a6e1d('0x12')]['id'],'UserId':null},'include':[{'model':db['CmContact'],'as':_0x5a6e1d('0x58')}]})[_0x5a6e1d('0x3')](handleEntityNotFound(_0x192fc2,null))[_0x5a6e1d('0x3')](saveUpdates(_0x1367ea[_0x5a6e1d('0x19')],null))[_0x5a6e1d('0x3')](function(_0x11c700){const _0x4a8e27=_0x5a6e1d;if(_0x11c700)return _0x26a07f[_0x4a8e27('0x2b')]=_0x11c700['get']({'plain':!![]}),db[_0x4a8e27('0x1e')]['findOne']({'where':{'id':_0x11c700[_0x4a8e27('0xa')]}});return null;})['then'](handleEntityNotFound(_0x192fc2,null))[_0x5a6e1d('0x3')](function(_0x1e644c){const _0x38e175=_0x5a6e1d;if(_0x1e644c)return _0x1e644c[_0x38e175('0x21')]({'UserId':_0x1367ea[_0x38e175('0x19')]['UserId'],'read1stAt':_[_0x38e175('0xe')](_0x1e644c[_0x38e175('0x48')])?moment()[_0x38e175('0x5c')](_0x38e175('0xc')):undefined});return null;})['then'](function(_0x2cc187){const _0x1883b=_0x5a6e1d;if(_0x2cc187)return _0x26a07f[_0x1883b('0x66')]=_0x2cc187['get']({'plain':!![]}),interaction_log[_0x1883b('0x6a')]('[SMSMESSAGE:ACCEPT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s',_0x1367ea['user']['id'],_0x1367ea[_0x1883b('0x8')][_0x1883b('0x51')],_0x1367ea[_0x1883b('0x8')][_0x1883b('0xb')],_0x26a07f[_0x1883b('0x66')]['id'],_0x1367ea[_0x1883b('0x19')]?JSON[_0x1883b('0x15')](_0x1367ea[_0x1883b('0x19')]):_0x1883b('0x24')),respondWithRpcPromise(_0x1883b('0x41'),'acceptMessage',_0x26a07f);return null;})[_0x5a6e1d('0x3')](function(_0x3b79d1){const _0x1a2914=_0x5a6e1d;if(_0x3b79d1){if(_0x1367ea[_0x1a2914('0x19')][_0x1a2914('0x68')])return _0x26a07f[_0x1a2914('0x2b')][_0x1a2914('0x31')]=util[_0x1a2914('0x5c')](_0x1a2914('0x16'),_0x1367ea[_0x1a2914('0x8')]['name']),_0x26a07f[_0x1a2914('0x2b')][_0x1a2914('0x29')]=_0x26a07f[_0x1a2914('0x29')],_0x26a07f['message'][_0x1a2914('0x10')]=_0x1a2914('0x1f'),respondWithRpcPromise(_0x1a2914('0x33'),_0x1a2914('0x33'),{'event':'acceptmessage','message':_0x26a07f[_0x1a2914('0x2b')]},client9002)[_0x1a2914('0x3')](function(){return _0x26a07f;});return _0x26a07f;}return null;})[_0x5a6e1d('0x3')](respondWithResult(_0x192fc2,null))[_0x5a6e1d('0x17')](handleError(_0x192fc2,null));},exports[_0x1894ef('0x6d')]=function(_0x4e03fc,_0x1640f4){const _0x56268a=_0x1894ef,_0x4bb1f6={'agent':{},'channel':'sms'};return _0x4e03fc[_0x56268a('0x19')]['id']&&delete _0x4e03fc['body']['id'],_0x4e03fc[_0x56268a('0x19')][_0x56268a('0x2f')]=_0x4e03fc['body'][_0x56268a('0x2f')]||_0x4e03fc[_0x56268a('0x8')]['id'],_0x4bb1f6[_0x56268a('0x1c')]['id']=_0x4e03fc[_0x56268a('0x19')][_0x56268a('0x2f')],db[_0x56268a('0x3c')][_0x56268a('0x6b')]({'where':{'id':_0x4e03fc[_0x56268a('0x12')]['id'],'UserId':null}})[_0x56268a('0x3')](handleEntityNotFound(_0x1640f4,null))[_0x56268a('0x3')](function(_0x19b4d7){const _0x2ea9d9=_0x56268a;if(_0x19b4d7)return _0x4bb1f6['message']=_0x19b4d7[_0x2ea9d9('0x4e')]({'plain':!![]}),db[_0x2ea9d9('0x1e')][_0x2ea9d9('0x6b')]({'where':{'id':_0x19b4d7[_0x2ea9d9('0xa')]}});return null;})[_0x56268a('0x3')](handleEntityNotFound(_0x1640f4,null))['then'](function(_0x492a6a){const _0x2e2b74=_0x56268a;if(_0x492a6a)return _0x4bb1f6[_0x2e2b74('0x66')]=_0x492a6a[_0x2e2b74('0x4e')]({'plain':!![]}),interaction_log['info'](_0x2e2b74('0x45'),_0x4e03fc[_0x2e2b74('0x8')]['id'],_0x4e03fc[_0x2e2b74('0x8')][_0x2e2b74('0x51')],_0x4e03fc[_0x2e2b74('0x8')][_0x2e2b74('0xb')],_0x4bb1f6[_0x2e2b74('0x66')]['id'],_0x4e03fc[_0x2e2b74('0x19')]?JSON[_0x2e2b74('0x15')](_0x4e03fc[_0x2e2b74('0x19')]):_0x2e2b74('0x24')),respondWithRpcPromise('RejectMessage',_0x2e2b74('0x35'),_0x4bb1f6);return null;})['then'](function(_0x5480d4){const _0x27f991=_0x56268a;if(_0x5480d4)return _0x5480d4[_0x27f991('0x2b')][_0x27f991('0x31')]=util[_0x27f991('0x5c')]('SIP/%s',_0x4e03fc[_0x27f991('0x8')][_0x27f991('0x51')]),_0x5480d4[_0x27f991('0x2b')][_0x27f991('0x29')]=_0x4bb1f6[_0x27f991('0x29')],_0x5480d4[_0x27f991('0x2b')][_0x27f991('0x10')]='reject',respondWithRpcPromise(_0x27f991('0x33'),_0x27f991('0x33'),{'event':'rejectmessage','message':_0x5480d4[_0x27f991('0x2b')]},client9002),_0x4bb1f6;return null;})[_0x56268a('0x3')](respondWithResult(_0x1640f4,null))['catch'](handleError(_0x1640f4,null));},exports[_0x1894ef('0x9')]=function(_0x3de997,_0x3687f7){const _0x2b4255=_0x1894ef;_0x3de997['body']['id']&&delete _0x3de997['body']['id'];let _0x39cd0b;return db[_0x2b4255('0x3c')][_0x2b4255('0x6b')]({'where':{'id':_0x3de997[_0x2b4255('0x12')]['id']}})[_0x2b4255('0x3')](handleEntityNotFound(_0x3687f7,null))[_0x2b4255('0x3')](function(_0x66d780){const _0x5378ff=_0x2b4255;if(_0x66d780)return _0x39cd0b=_0x66d780,db['SmsAccount'][_0x5378ff('0x6b')]({'where':{'id':_0x66d780[_0x5378ff('0x62')]}});})[_0x2b4255('0x3')](handleEntityNotFound(_0x3687f7,null))['then'](function(_0xd4bb3f){const _0x1366f7=_0x2b4255;if(_0xd4bb3f){logger[_0x1366f7('0x4d')](_0x1366f7('0x67'),_0x1366f7('0x9'),_0x1366f7('0x3b'),_0xd4bb3f[_0x1366f7('0x32')],util[_0x1366f7('0x55')](_0x3de997[_0x1366f7('0x19')],{'showHidden':![],'depth':null}));switch(_0xd4bb3f[_0x1366f7('0x32')]){case'twilio':if(_0x3de997['body']['MessageSid']&&_0x3de997['body'][_0x1366f7('0x4c')]===_0x39cd0b[_0x1366f7('0x34')])return _0x39cd0b[_0x1366f7('0x21')]({'read':!![]});else logger[_0x1366f7('0x46')](_0x1366f7('0x65'),'status',_0x1366f7('0x14'),util[_0x1366f7('0x55')](_0x3de997['body'],{'showHidden':![],'depth':null}));break;case _0x1366f7('0x30'):if(_0x3de997[_0x1366f7('0x19')][_0x1366f7('0x6c')]&&_0x3de997[_0x1366f7('0x19')][_0x1366f7('0x6c')]===_0x39cd0b[_0x1366f7('0x34')]&&_[_0x1366f7('0x2')]([_0x1366f7('0x11'),'delivered'],_0x3de997[_0x1366f7('0x19')][_0x1366f7('0x27')])>=0x0)return _0x39cd0b[_0x1366f7('0x21')]({'read':!![]});else logger[_0x1366f7('0x46')]('SmsAccount,\x20%s,\x20%s,\x20%s',_0x1366f7('0x9'),_0x1366f7('0x28'),util[_0x1366f7('0x55')](_0x3de997[_0x1366f7('0x19')],{'showHidden':![],'depth':null}));break;case _0x1366f7('0x59'):{const _0x296efb=_0x3de997[_0x1366f7('0x19')]['results'][0x0];if(_0x296efb[_0x1366f7('0x9')]['groupName']===_0x1366f7('0x2d'))return _0x39cd0b['update']({'read':!![]});else logger[_0x1366f7('0x46')]('SmsAccount,\x20%s,\x20%s,\x20%s',_0x1366f7('0x9'),'infobip',util[_0x1366f7('0x55')](_0x3de997[_0x1366f7('0x19')],{'showHidden':![],'depth':null}));}break;}return _0x39cd0b;}})[_0x2b4255('0x3')](respondWithResult(_0x3687f7,null))[_0x2b4255('0x17')](handleError(_0x3687f7,null));}; \ No newline at end of file +const a671_0x2d17=['name','RejectMessage','EventManager','infobip','send','debug','channel','Status','request','merge','update','SmsMessage,\x20%s,\x20%s,\x20%s','query','plivo','model','map','pick','sendStatus','DELIVERED','received\x20delivery\x20report\x20from','describe','where','get','SmsMessage','filters','../../rediscache','delivered','options','null','[SMSMESSAGE:REJECT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s','../../config/logger','role','messageId','type','acceptmessage','accept','read','sms','interaction','include','SmsAccount,\x20%s,\x20%s,\x20%s','destroy','twilio','../../components/parsers/qs','catch','keys','reject','rejectmessage','interface','groupName','length','fields','results','create','MessageSid','then','readAt','stringify','SmsAccount','acceptMessage','info','end','findOne','SmsMessage,\x20%s,\x20%s','sent','sequelize','request\x20sent','[SMSMESSAGE:ACCEPT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s','intersection','inspect','error','SmsInteraction','Content-Range','api','util','manual','user','includeAll','body','Contact','SmsInteractionId','undefined','code','event','findAll','rejectMessage','filter','limit','moment','YYYY-MM-DD\x20HH:mm:ss','format','AcceptMessage','sort','offset','SIP/%s','isNil','MessageUUID','key','UserId','rawAttributes','attributes','status','jayson/promise','lodash','indexOf','like','message','../../mysqldb','count','client','params','http'];(function(_0x597b45,_0xf1f2f3){const _0x2d1792=function(_0x4ae894){while(--_0x4ae894){_0x597b45['push'](_0x597b45['shift']());}};_0x2d1792(++_0xf1f2f3);}(a671_0x2d17,0x162));const a671_0x4ae8=function(_0x597b45,_0xf1f2f3){_0x597b45=_0x597b45-0x19e;let _0x2d1792=a671_0x2d17[_0x597b45];return _0x2d1792;};const a671_0x297867=a671_0x4ae8;'use strict';const moment=require(a671_0x297867(0x1e4)),util=require(a671_0x297867(0x1d6)),_=require(a671_0x297867(0x1f3)),qs=require(a671_0x297867(0x1b7)),logger=require(a671_0x297867(0x1aa))(a671_0x297867(0x1d5)),{getSocket}=require(a671_0x297867(0x1a5)),socket=getSocket(),{db}=require(a671_0x297867(0x1f7)),{Op}=require(a671_0x297867(0x1cd)),interaction_log=require(a671_0x297867(0x1aa))('sms-interactions');require('./smsMessage.socket')['register'](socket);const jayson=require(a671_0x297867(0x1f2)),client=jayson[a671_0x297867(0x1f9)]['http']({'port':0x232c}),client9002=jayson[a671_0x297867(0x1f9)][a671_0x297867(0x1fb)]({'port':0x232a});function respondWithRpcPromise(_0x167338,_0x2ddb98,_0x3a992e,_0x33a95f){return new Promise(function(_0x31aa08,_0x5d2382){const _0x27e622=a671_0x4ae8,_0x11daed=_0x33a95f||client;return _0x11daed[_0x27e622(0x204)](_0x167338,_0x3a992e)[_0x27e622(0x1c3)](function(_0x28733a){const _0x2ff0ac=_0x27e622;logger[_0x2ff0ac(0x1c8)](_0x2ff0ac(0x1cb),_0x2ddb98,'request\x20sent'),logger[_0x2ff0ac(0x201)](_0x2ff0ac(0x207),_0x2ddb98,'request\x20sent',JSON[_0x2ff0ac(0x1c5)](_0x28733a));if(_0x28733a[_0x2ff0ac(0x1d2)]){if(_0x28733a[_0x2ff0ac(0x1d2)][_0x2ff0ac(0x1de)]===0x1f4)return logger[_0x2ff0ac(0x1d2)](_0x2ff0ac(0x1cb),_0x2ddb98,_0x28733a['error'][_0x2ff0ac(0x1f6)]),_0x5d2382(_0x28733a[_0x2ff0ac(0x1d2)][_0x2ff0ac(0x1f6)]);return logger[_0x2ff0ac(0x1d2)](_0x2ff0ac(0x1cb),_0x2ddb98,_0x28733a[_0x2ff0ac(0x1d2)][_0x2ff0ac(0x1f6)]),_0x31aa08(_0x28733a['error'][_0x2ff0ac(0x1f6)]);}else logger[_0x2ff0ac(0x1c8)](_0x2ff0ac(0x1cb),_0x2ddb98,_0x2ff0ac(0x1ce)),_0x31aa08(_0x28733a['result'][_0x2ff0ac(0x1f6)]);})[_0x27e622(0x1b8)](function(_0x110ab8){const _0x4e4b3a=_0x27e622;logger[_0x4e4b3a(0x1d2)](_0x4e4b3a(0x1cb),_0x2ddb98,_0x110ab8),_0x5d2382(_0x110ab8);});});}function respondWithResult(_0x558eb1,_0x14ceb3){return _0x14ceb3=_0x14ceb3||0xc8,function(_0x2d03b1){if(_0x2d03b1)return _0x558eb1['status'](_0x14ceb3)['json'](_0x2d03b1);};}function respondWithFilteredResult(_0x2e2dfc,_0x40c6e4){return function(_0x12f94e){const _0x199f88=a671_0x4ae8;if(_0x12f94e){const _0x1c72e4=_0x12f94e[_0x199f88(0x1f8)],_0x2f1e79=_0x40c6e4[_0x199f88(0x1e9)];let _0x46394a=_0x40c6e4[_0x199f88(0x1e9)]+_0x40c6e4[_0x199f88(0x1e3)],_0x33e7ac;return _0x46394a>=_0x1c72e4?(_0x46394a=_0x1c72e4,_0x33e7ac=0xc8):_0x33e7ac=0xce,_0x2e2dfc['status'](_0x33e7ac),_0x2e2dfc['set'](_0x199f88(0x1d4),_0x2f1e79+'-'+_0x46394a+'/'+_0x1c72e4)['json'](_0x12f94e);}return null;};}function saveUpdates(_0x2675db){return function(_0x3bfa58){const _0x3ae555=a671_0x4ae8;if(_0x3bfa58)return _0x3bfa58[_0x3ae555(0x206)](_0x2675db)['then'](function(_0x381135){return _0x381135;});return null;};}function removeEntity(_0x31c20c){return function(_0x4f4243){const _0x28edbe=a671_0x4ae8;if(_0x4f4243)return _0x4f4243[_0x28edbe(0x1b5)]()[_0x28edbe(0x1c3)](function(){const _0x3e4d98=_0x28edbe;_0x31c20c[_0x3e4d98(0x1f1)](0xcc)[_0x3e4d98(0x1c9)]();});};}function handleEntityNotFound(_0x204e8c){return function(_0x335b09){const _0x5042ef=a671_0x4ae8;return!_0x335b09&&_0x204e8c[_0x5042ef(0x20d)](0x194),_0x335b09;};}function handleError(_0x4dbf2e,_0x43a2a3){return _0x43a2a3=_0x43a2a3||0x1f4,function(_0x166078){const _0xfc67b9=a671_0x4ae8;logger['error'](_0x166078['stack']),_0x166078[_0xfc67b9(0x1fc)]&&delete _0x166078[_0xfc67b9(0x1fc)],_0x4dbf2e[_0xfc67b9(0x1f1)](_0x43a2a3)[_0xfc67b9(0x200)](_0x166078);};}exports['index']=function(_0x5349d6,_0x51c383){const _0x5e4e32=a671_0x297867;let _0x234224={};const _0x3ceb52={},_0x58afbb={'count':0x0,'rows':[]},_0xbb5ac=_['map'](db[_0x5e4e32(0x1a3)][_0x5e4e32(0x1ef)],function(_0x37a85d){const _0x2e54c7=_0x5e4e32;return{'name':_0x37a85d['fieldName'],'type':_0x37a85d['type'][_0x2e54c7(0x1ed)]};});_0x3ceb52[_0x5e4e32(0x20a)]=_[_0x5e4e32(0x20b)](_0xbb5ac,_0x5e4e32(0x1fc)),_0x3ceb52[_0x5e4e32(0x208)]=_[_0x5e4e32(0x1b9)](_0x5349d6['query']),_0x3ceb52[_0x5e4e32(0x1a4)]=_[_0x5e4e32(0x1d0)](_0x3ceb52[_0x5e4e32(0x20a)],_0x3ceb52[_0x5e4e32(0x208)]),_0x234224[_0x5e4e32(0x1f0)]=_[_0x5e4e32(0x1d0)](_0x3ceb52[_0x5e4e32(0x20a)],qs['fields'](_0x5349d6[_0x5e4e32(0x208)][_0x5e4e32(0x1bf)])),_0x234224[_0x5e4e32(0x1f0)]=_0x234224[_0x5e4e32(0x1f0)]['length']?_0x234224['attributes']:_0x3ceb52[_0x5e4e32(0x20a)];typeof _0x5349d6[_0x5e4e32(0x208)]['nolimit']===_0x5e4e32(0x1dd)&&(_0x234224['limit']=qs[_0x5e4e32(0x1e3)](_0x5349d6['query'][_0x5e4e32(0x1e3)]),_0x234224[_0x5e4e32(0x1e9)]=qs[_0x5e4e32(0x1e9)](_0x5349d6['query']['offset']));_0x234224['order']=qs[_0x5e4e32(0x1e8)](_0x5349d6['query'][_0x5e4e32(0x1e8)]),_0x234224[_0x5e4e32(0x1a1)]=qs[_0x5e4e32(0x1a4)](_[_0x5e4e32(0x20c)](_0x5349d6[_0x5e4e32(0x208)],_0x3ceb52[_0x5e4e32(0x1a4)]),_0xbb5ac);_0x5349d6['query'][_0x5e4e32(0x1e2)]&&(_0x234224[_0x5e4e32(0x1a1)]=_[_0x5e4e32(0x205)](_0x234224[_0x5e4e32(0x1a1)],{[Op['or']]:_[_0x5e4e32(0x20b)](_0xbb5ac,function(_0x5b4f4c){const _0x6fd1f7=_0x5e4e32;if(_0x5b4f4c[_0x6fd1f7(0x1ad)]!=='VIRTUAL'){const _0x1f35b8={};return _0x1f35b8[_0x5b4f4c['name']]={[Op[_0x6fd1f7(0x1f5)]]:'%'+_0x5349d6['query'][_0x6fd1f7(0x1e2)]+'%'},_0x1f35b8;}})}));_0x234224=_['merge']({},_0x234224,_0x5349d6[_0x5e4e32(0x1a7)]);const _0x5ca3e9={'where':_0x234224[_0x5e4e32(0x1a1)]};return db[_0x5e4e32(0x1a3)][_0x5e4e32(0x1f8)](_0x5ca3e9)[_0x5e4e32(0x1c3)](function(_0x28c93a){const _0x4ce395=_0x5e4e32;return _0x58afbb[_0x4ce395(0x1f8)]=_0x28c93a,_0x5349d6['query']['includeAll']&&(_0x234224[_0x4ce395(0x1b3)]=[{'all':!![]}]),db[_0x4ce395(0x1a3)][_0x4ce395(0x1e0)](_0x234224);})['then'](function(_0xad5a36){return _0x58afbb['rows']=_0xad5a36,_0x58afbb;})[_0x5e4e32(0x1c3)](respondWithFilteredResult(_0x51c383,_0x234224))[_0x5e4e32(0x1b8)](handleError(_0x51c383,null));},exports['show']=function(_0x442758,_0x124639){const _0x2d7fba=a671_0x297867;let _0x4434f5={'raw':!![],'where':{'id':_0x442758[_0x2d7fba(0x1fa)]['id']}};const _0x244714={};return _0x244714[_0x2d7fba(0x20a)]=_[_0x2d7fba(0x1b9)](db[_0x2d7fba(0x1a3)][_0x2d7fba(0x1ef)]),_0x244714[_0x2d7fba(0x208)]=_[_0x2d7fba(0x1b9)](_0x442758[_0x2d7fba(0x208)]),_0x244714[_0x2d7fba(0x1a4)]=_[_0x2d7fba(0x1d0)](_0x244714['model'],_0x244714['query']),_0x4434f5['attributes']=_['intersection'](_0x244714['model'],qs[_0x2d7fba(0x1bf)](_0x442758[_0x2d7fba(0x208)][_0x2d7fba(0x1bf)])),_0x4434f5[_0x2d7fba(0x1f0)]=_0x4434f5[_0x2d7fba(0x1f0)][_0x2d7fba(0x1be)]?_0x4434f5[_0x2d7fba(0x1f0)]:_0x244714[_0x2d7fba(0x20a)],_0x442758['query'][_0x2d7fba(0x1d9)]&&(_0x4434f5[_0x2d7fba(0x1b3)]=[{'all':!![]}]),_0x4434f5=_[_0x2d7fba(0x205)]({},_0x4434f5,_0x442758[_0x2d7fba(0x1a7)]),db['SmsMessage'][_0x2d7fba(0x1ca)](_0x4434f5)['then'](handleEntityNotFound(_0x124639,null))['then'](respondWithResult(_0x124639,null))[_0x2d7fba(0x1b8)](handleError(_0x124639,null));},exports[a671_0x297867(0x1c1)]=function(_0x44caad,_0x3f9561){const _0xd04574=a671_0x297867;return db[_0xd04574(0x1a3)]['create'](_0x44caad[_0xd04574(0x1da)],{})[_0xd04574(0x1c3)](respondWithResult(_0x3f9561,0xc9))[_0xd04574(0x1b8)](handleError(_0x3f9561,null));},exports['update']=function(_0x5aac64,_0xd34f9e){const _0x38fdc1=a671_0x297867;return _0x5aac64['body']['id']&&delete _0x5aac64['body']['id'],db[_0x38fdc1(0x1a3)][_0x38fdc1(0x1ca)]({'where':{'id':_0x5aac64['params']['id']}})[_0x38fdc1(0x1c3)](handleEntityNotFound(_0xd34f9e,null))['then'](saveUpdates(_0x5aac64['body'],null))['then'](respondWithResult(_0xd34f9e,null))[_0x38fdc1(0x1b8)](handleError(_0xd34f9e,null));},exports[a671_0x297867(0x1b5)]=function(_0x27d7ba,_0x5cde62){const _0x2c8abf=a671_0x297867;return db[_0x2c8abf(0x1a3)][_0x2c8abf(0x1ca)]({'where':{'id':_0x27d7ba['params']['id']}})['then'](handleEntityNotFound(_0x5cde62,null))[_0x2c8abf(0x1c3)](removeEntity(_0x5cde62,null))['catch'](handleError(_0x5cde62,null));},exports[a671_0x297867(0x1a0)]=function(_0x3b07d1,_0x59f96f){const _0x3ecd4b=a671_0x297867;return db[_0x3ecd4b(0x1a3)][_0x3ecd4b(0x1a0)]()['then'](respondWithResult(_0x59f96f,null))[_0x3ecd4b(0x1b8)](handleError(_0x59f96f,null));},exports[a671_0x297867(0x1af)]=function(_0x4973c5,_0x4381f2){const _0x57f99d=a671_0x297867,_0x130cd5={'channel':_0x57f99d(0x1b1)};return _0x4973c5['body']['id']&&delete _0x4973c5[_0x57f99d(0x1da)]['id'],_0x4973c5['body'][_0x57f99d(0x1b0)]=!![],_0x4973c5[_0x57f99d(0x1da)][_0x57f99d(0x1c4)]=moment()[_0x57f99d(0x1e6)]('YYYY-MM-DD\x20HH:mm:ss'),_0x4973c5['body'][_0x57f99d(0x1ee)]=_0x4973c5[_0x57f99d(0x1da)][_0x57f99d(0x1ee)]||_0x4973c5[_0x57f99d(0x1d8)]['id'],db[_0x57f99d(0x1a3)]['findOne']({'where':{'id':_0x4973c5[_0x57f99d(0x1fa)]['id'],'UserId':null},'include':[{'model':db['CmContact'],'as':_0x57f99d(0x1db)}]})[_0x57f99d(0x1c3)](handleEntityNotFound(_0x4381f2,null))['then'](saveUpdates(_0x4973c5[_0x57f99d(0x1da)],null))['then'](function(_0x17a2dc){const _0xed30e3=_0x57f99d;if(_0x17a2dc)return _0x130cd5[_0xed30e3(0x1f6)]=_0x17a2dc[_0xed30e3(0x1a2)]({'plain':!![]}),db[_0xed30e3(0x1d3)][_0xed30e3(0x1ca)]({'where':{'id':_0x17a2dc[_0xed30e3(0x1dc)]}});return null;})[_0x57f99d(0x1c3)](handleEntityNotFound(_0x4381f2,null))['then'](function(_0x47b868){const _0x44afab=_0x57f99d;if(_0x47b868)return _0x47b868['update']({'UserId':_0x4973c5[_0x44afab(0x1da)][_0x44afab(0x1ee)],'read1stAt':_[_0x44afab(0x1eb)](_0x47b868['read1stAt'])?moment()[_0x44afab(0x1e6)](_0x44afab(0x1e5)):undefined});return null;})[_0x57f99d(0x1c3)](function(_0x16a445){const _0x167382=_0x57f99d;if(_0x16a445)return _0x130cd5[_0x167382(0x1b2)]=_0x16a445['get']({'plain':!![]}),interaction_log[_0x167382(0x1c8)](_0x167382(0x1cf),_0x4973c5[_0x167382(0x1d8)]['id'],_0x4973c5[_0x167382(0x1d8)][_0x167382(0x1fc)],_0x4973c5['user']['role'],_0x130cd5[_0x167382(0x1b2)]['id'],_0x4973c5['body']?JSON[_0x167382(0x1c5)](_0x4973c5[_0x167382(0x1da)]):_0x167382(0x1a8)),respondWithRpcPromise(_0x167382(0x1e7),_0x167382(0x1c7),_0x130cd5);return null;})[_0x57f99d(0x1c3)](function(_0x216be5){const _0x2b20cf=_0x57f99d;if(_0x216be5){if(_0x4973c5[_0x2b20cf(0x1da)][_0x2b20cf(0x1d7)])return _0x130cd5[_0x2b20cf(0x1f6)]['interface']=util['format'](_0x2b20cf(0x1ea),_0x4973c5[_0x2b20cf(0x1d8)][_0x2b20cf(0x1fc)]),_0x130cd5[_0x2b20cf(0x1f6)][_0x2b20cf(0x202)]=_0x130cd5['channel'],_0x130cd5[_0x2b20cf(0x1f6)][_0x2b20cf(0x1df)]='accept',respondWithRpcPromise(_0x2b20cf(0x1fe),_0x2b20cf(0x1fe),{'event':_0x2b20cf(0x1ae),'message':_0x130cd5['message']},client9002)[_0x2b20cf(0x1c3)](function(){return _0x130cd5;});return _0x130cd5;}return null;})[_0x57f99d(0x1c3)](respondWithResult(_0x4381f2,null))[_0x57f99d(0x1b8)](handleError(_0x4381f2,null));},exports[a671_0x297867(0x1ba)]=function(_0x678245,_0x427c4a){const _0x33b136=a671_0x297867,_0x3a171e={'agent':{},'channel':_0x33b136(0x1b1)};return _0x678245[_0x33b136(0x1da)]['id']&&delete _0x678245[_0x33b136(0x1da)]['id'],_0x678245[_0x33b136(0x1da)][_0x33b136(0x1ee)]=_0x678245[_0x33b136(0x1da)][_0x33b136(0x1ee)]||_0x678245[_0x33b136(0x1d8)]['id'],_0x3a171e['agent']['id']=_0x678245[_0x33b136(0x1da)][_0x33b136(0x1ee)],db[_0x33b136(0x1a3)][_0x33b136(0x1ca)]({'where':{'id':_0x678245['params']['id'],'UserId':null}})['then'](handleEntityNotFound(_0x427c4a,null))['then'](function(_0x3205d9){const _0x4d05eb=_0x33b136;if(_0x3205d9)return _0x3a171e[_0x4d05eb(0x1f6)]=_0x3205d9[_0x4d05eb(0x1a2)]({'plain':!![]}),db['SmsInteraction'][_0x4d05eb(0x1ca)]({'where':{'id':_0x3205d9[_0x4d05eb(0x1dc)]}});return null;})[_0x33b136(0x1c3)](handleEntityNotFound(_0x427c4a,null))['then'](function(_0x1f5f59){const _0x143265=_0x33b136;if(_0x1f5f59)return _0x3a171e[_0x143265(0x1b2)]=_0x1f5f59[_0x143265(0x1a2)]({'plain':!![]}),interaction_log[_0x143265(0x1c8)](_0x143265(0x1a9),_0x678245[_0x143265(0x1d8)]['id'],_0x678245[_0x143265(0x1d8)][_0x143265(0x1fc)],_0x678245[_0x143265(0x1d8)][_0x143265(0x1ab)],_0x3a171e[_0x143265(0x1b2)]['id'],_0x678245[_0x143265(0x1da)]?JSON[_0x143265(0x1c5)](_0x678245[_0x143265(0x1da)]):_0x143265(0x1a8)),respondWithRpcPromise(_0x143265(0x1fd),_0x143265(0x1e1),_0x3a171e);return null;})[_0x33b136(0x1c3)](function(_0x48c4a0){const _0x396858=_0x33b136;if(_0x48c4a0)return _0x48c4a0['message'][_0x396858(0x1bc)]=util['format']('SIP/%s',_0x678245[_0x396858(0x1d8)][_0x396858(0x1fc)]),_0x48c4a0[_0x396858(0x1f6)]['channel']=_0x3a171e[_0x396858(0x202)],_0x48c4a0['message'][_0x396858(0x1df)]=_0x396858(0x1ba),respondWithRpcPromise(_0x396858(0x1fe),_0x396858(0x1fe),{'event':_0x396858(0x1bb),'message':_0x48c4a0[_0x396858(0x1f6)]},client9002),_0x3a171e;return null;})['then'](respondWithResult(_0x427c4a,null))[_0x33b136(0x1b8)](handleError(_0x427c4a,null));},exports[a671_0x297867(0x1f1)]=function(_0x124806,_0x9b303b){const _0x370b91=a671_0x297867;_0x124806[_0x370b91(0x1da)]['id']&&delete _0x124806['body']['id'];let _0x1e8ece;return db[_0x370b91(0x1a3)][_0x370b91(0x1ca)]({'where':{'id':_0x124806['params']['id']}})['then'](handleEntityNotFound(_0x9b303b,null))[_0x370b91(0x1c3)](function(_0xcdce4b){const _0x535958=_0x370b91;if(_0xcdce4b)return _0x1e8ece=_0xcdce4b,db[_0x535958(0x1c6)][_0x535958(0x1ca)]({'where':{'id':_0xcdce4b['SmsAccountId']}});})['then'](handleEntityNotFound(_0x9b303b,null))['then'](function(_0x4c9e42){const _0x567231=_0x370b91;if(_0x4c9e42){logger['debug'](_0x567231(0x207),_0x567231(0x1f1),_0x567231(0x19f),_0x4c9e42[_0x567231(0x1ad)],util[_0x567231(0x1d1)](_0x124806['body'],{'showHidden':![],'depth':null}));switch(_0x4c9e42['type']){case'twilio':if(_0x124806['body'][_0x567231(0x1c2)]&&_0x124806[_0x567231(0x1da)][_0x567231(0x1c2)]===_0x1e8ece[_0x567231(0x1ac)])return _0x1e8ece['update']({'read':!![]});else logger['error'](_0x567231(0x1b4),_0x567231(0x1f1),_0x567231(0x1b6),util['inspect'](_0x124806[_0x567231(0x1da)],{'showHidden':![],'depth':null}));break;case _0x567231(0x209):if(_0x124806[_0x567231(0x1da)][_0x567231(0x1ec)]&&_0x124806['body'][_0x567231(0x1ec)]===_0x1e8ece[_0x567231(0x1ac)]&&_[_0x567231(0x1f4)]([_0x567231(0x1cc),_0x567231(0x1a6)],_0x124806[_0x567231(0x1da)][_0x567231(0x203)])>=0x0)return _0x1e8ece[_0x567231(0x206)]({'read':!![]});else logger[_0x567231(0x1d2)](_0x567231(0x1b4),'status','plivio',util[_0x567231(0x1d1)](_0x124806[_0x567231(0x1da)],{'showHidden':![],'depth':null}));break;case _0x567231(0x1ff):{const _0x579cae=_0x124806[_0x567231(0x1da)][_0x567231(0x1c0)][0x0];if(_0x579cae[_0x567231(0x1f1)][_0x567231(0x1bd)]===_0x567231(0x19e))return _0x1e8ece[_0x567231(0x206)]({'read':!![]});else logger[_0x567231(0x1d2)](_0x567231(0x1b4),_0x567231(0x1f1),_0x567231(0x1ff),util['inspect'](_0x124806['body'],{'showHidden':![],'depth':null}));}break;}return _0x1e8ece;}})['then'](respondWithResult(_0x9b303b,null))['catch'](handleError(_0x9b303b,null));}; \ No newline at end of file diff --git a/server/api/smsMessage/smsMessage.events.js b/server/api/smsMessage/smsMessage.events.js index a1cf93c..af50d04 100644 --- a/server/api/smsMessage/smsMessage.events.js +++ b/server/api/smsMessage/smsMessage.events.js @@ -1 +1 @@ -const a561_0x4a4f=['update','emit','addHook','events','save','SmsMessage','remove','undefined','exports','../../mysqldb'];(function(_0x5ed152,_0x4a4f5d){const _0x1aa6d1=function(_0x3b542c){while(--_0x3b542c){_0x5ed152['push'](_0x5ed152['shift']());}};_0x1aa6d1(++_0x4a4f5d);}(a561_0x4a4f,0x1a7));const a561_0x1aa6=function(_0x5ed152,_0x4a4f5d){_0x5ed152=_0x5ed152-0x0;let _0x1aa6d1=a561_0x4a4f[_0x5ed152];return _0x1aa6d1;};const _0x5429ed=a561_0x1aa6;'use strict';const EventEmitter=require(_0x5429ed('0x0')),SmsMessage=require(_0x5429ed('0x6'))['db'][_0x5429ed('0x2')],SmsMessageEvents=new EventEmitter();SmsMessageEvents['setMaxListeners'](0x0);const events={'afterCreate':_0x5429ed('0x1'),'afterUpdate':_0x5429ed('0x7'),'afterDestroy':_0x5429ed('0x3')};function emitEvent(_0x3b542c){return function(_0x2e3428){const _0xb4f858=a561_0x1aa6;SmsMessageEvents[_0xb4f858('0x8')](_0x3b542c+':'+_0x2e3428['id'],_0x2e3428),SmsMessageEvents[_0xb4f858('0x8')](_0x3b542c,_0x2e3428);};}for(const e in events){if(typeof events[e]!==_0x5429ed('0x4')){const event=events[e];SmsMessage[_0x5429ed('0x9')](e,emitEvent(event));}}module[_0x5429ed('0x5')]=SmsMessageEvents; \ No newline at end of file +const a672_0x44ff=['events','emit','remove','exports','undefined','addHook','update','SmsMessage','setMaxListeners'];(function(_0x32f0dd,_0xe97f75){const _0x44ff99=function(_0x3b20cf){while(--_0x3b20cf){_0x32f0dd['push'](_0x32f0dd['shift']());}};_0x44ff99(++_0xe97f75);}(a672_0x44ff,0x18c));const a672_0x3b20=function(_0x32f0dd,_0xe97f75){_0x32f0dd=_0x32f0dd-0x1dc;let _0x44ff99=a672_0x44ff[_0x32f0dd];return _0x44ff99;};const a672_0x5a2c63=a672_0x3b20;'use strict';const EventEmitter=require(a672_0x5a2c63(0x1dc)),SmsMessage=require('../../mysqldb')['db'][a672_0x5a2c63(0x1e3)],SmsMessageEvents=new EventEmitter();SmsMessageEvents[a672_0x5a2c63(0x1e4)](0x0);const events={'afterCreate':'save','afterUpdate':a672_0x5a2c63(0x1e2),'afterDestroy':a672_0x5a2c63(0x1de)};function emitEvent(_0x229384){return function(_0x564895){const _0x4feabc=a672_0x3b20;SmsMessageEvents[_0x4feabc(0x1dd)](_0x229384+':'+_0x564895['id'],_0x564895),SmsMessageEvents[_0x4feabc(0x1dd)](_0x229384,_0x564895);};}for(const e in events){if(typeof events[e]!==a672_0x5a2c63(0x1e0)){const event=events[e];SmsMessage[a672_0x5a2c63(0x1e1)](e,emitEvent(event));}}module[a672_0x5a2c63(0x1df)]=SmsMessageEvents; \ No newline at end of file diff --git a/server/api/smsMessage/smsMessage.model.js b/server/api/smsMessage/smsMessage.model.js index bac94ec..04f7cd1 100644 --- a/server/api/smsMessage/smsMessage.model.js +++ b/server/api/smsMessage/smsMessage.model.js @@ -1 +1 @@ -const a562_0x20b9=['digest','clicksend','UserId','phone','xCALLY\x20Motion','status','message','create','message_id','inspect','Token\x20not\x20received','https://smsapi.connectel.se/api/v2/send/','SmsAccountId','https://api.skebby.it/API/v1.0/REST/','apiKey','createHash','application/json','messageId','catch','senderString','/sms/2/text/advanced','direction','username','queued_count','fti_sms_messages','smsMethod','finally','toString','Bearer\x20','https://rest.clicksend.com/v3/sms/send','sort','UTF-8','remote','body','https://platform.clickatell.com/messages','SmsMessage,\x20%s,\x20%s,\x20%s','from','IBSSO\x20','sid','authId','api','data','%s:%s','token','error','format','intelepeer','text','clickSend','refid','findOne','plivo','password','connectel','https://api.plivo.com/v1/Account/%s/Message/','read','request-promise-native','clickatell','baseUrl','SmsInteractionId','exports','authToken','SmsAccount','messages','secret','toLowerCase','FULLTEXT','afterCreate','Missing\x20parameters:\x20username,\x20password','twilio','id_sms','sms','deliveryReport','SmsMessage','GET','Missing\x20parameters:\x20base_url','keys','/api/sms/messages/','accountSid','uuid','out','session_key','skebby','/status?token=','update','login','SmsInteraction','utf8mb4_unicode_ci','then','infobip','csc','&password=','createdAt','requestid','length','http_code','POST','./smsMessage.attributes','timestamp','base64','/external/get/send.php?','get','Basic\x20%s','head','signature=','sender','user_key','type'];(function(_0x11d550,_0x20b91a){const _0x50498d=function(_0x1252c7){while(--_0x1252c7){_0x11d550['push'](_0x11d550['shift']());}};_0x50498d(++_0x20b91a);}(a562_0x20b9,0xd6));const a562_0x5049=function(_0x11d550,_0x20b91a){_0x11d550=_0x11d550-0x0;let _0x50498d=a562_0x20b9[_0x11d550];return _0x50498d;};const _0x272af7=a562_0x5049;'use strict';const _=require('lodash'),util=require('util'),logger=require('../../config/logger')(_0x272af7('0x2a')),rp=require(_0x272af7('0x3a')),attributes=require(_0x272af7('0x63'));module[_0x272af7('0x3e')]=function(_0x1252c7){const _0x513559=_0x272af7,_0x40eab9=_0x1252c7['models'],_0x32ca15=_0x1252c7['define'](_0x513559('0x4b'),attributes,{'tableName':'sms_messages','paranoid':![],'indexes':[{'name':_0x513559('0x13'),'fields':[_0x513559('0x13')]},{'name':_0x513559('0x1a'),'fields':['body'],'type':_0x513559('0x44')}],'timestamps':!![],'hooks':{'afterCreate':function(_0x11619e){const _0x1bb589=_0x513559,_0x2335f8=_0x11619e[_0x1bb589('0x67')]({'plain':!![]});(_0x2335f8['direction'][_0x1bb589('0x43')]()==='in'||_0x2335f8[_0x1bb589('0x17')][_0x1bb589('0x43')]()===_0x1bb589('0x52')&&!_0x2335f8[_0x1bb589('0x42')]&&!_['isNil'](_0x2335f8[_0x1bb589('0x4')]))&&_0x40eab9[_0x1bb589('0x58')][_0x1bb589('0x34')]({'where':{'id':_0x2335f8[_0x1bb589('0x3d')]}})[_0x1bb589('0x5a')](function(_0x1828a9){const _0x5741a1=_0x1bb589;_0x1828a9&&_0x1828a9[_0x5741a1('0x56')]({'lastMsgAt':_0x2335f8[_0x5741a1('0x5e')],'lastMsgDirection':_0x2335f8[_0x5741a1('0x17')][_0x5741a1('0x43')]()});})[_0x1bb589('0x14')](function(_0x5b88ea){console['error'](_0x5b88ea);});if(_0x2335f8[_0x1bb589('0x17')]===_0x1bb589('0x52')&&!_0x2335f8[_0x1bb589('0x42')]){let _0x3092a5;_0x40eab9[_0x1bb589('0x40')]['findOne']({'where':{'id':_0x2335f8[_0x1bb589('0xe')]},'raw':!![]})[_0x1bb589('0x5a')](function(_0x1e817c){const _0x5a80dc=_0x1bb589;_0x3092a5=_0x1e817c;if(_0x3092a5&&_0x3092a5['type'])switch(_0x3092a5[_0x5a80dc('0x1')]){case _0x5a80dc('0x47'):{const _0x2f4a77=require(_0x5a80dc('0x47'));if(_0x3092a5['accountSid']&&_0x3092a5[_0x5a80dc('0x3f')]&&_0x3092a5[_0x5a80dc('0x5')]){const _0x3abfb8=new _0x2f4a77(_0x3092a5[_0x5a80dc('0x50')],_0x3092a5['authToken']);_0x3abfb8[_0x5a80dc('0x41')][_0x5a80dc('0x9')]({'body':_0x2335f8[_0x5a80dc('0x23')],'to':_0x2335f8[_0x5a80dc('0x5')],'from':_0x3092a5[_0x5a80dc('0x5')],'statusCallback':_0x3092a5['remote']+_0x5a80dc('0x4f')+_0x2335f8['id']+_0x5a80dc('0x55')+_0x3092a5[_0x5a80dc('0x2d')]})[_0x5a80dc('0x5a')](function(_0x5b6a98){const _0x5579d6=_0x5a80dc;if(_0x5b6a98['sid'])return _0x11619e['update']({'messageId':_0x5b6a98[_0x5579d6('0x28')]});})[_0x5a80dc('0x14')](function(_0xbcfd5d){const _0x322bd9=_0x5a80dc;logger[_0x322bd9('0x2e')](_0x322bd9('0x25'),'afterCreate',_0x322bd9('0x47'),util[_0x322bd9('0xb')](_0xbcfd5d,{'showHidden':![],'depth':null}));});}else logger[_0x5a80dc('0x2e')](_0x5a80dc('0x25'),_0x5a80dc('0x45'),'twilio','Missing\x20parameters:\x20phone,\x20accountSid\x20or\x20authToken');break;}case _0x5a80dc('0x54'):{const _0x386511=_0x5a80dc('0xf');if(_0x3092a5[_0x5a80dc('0x18')]&&_0x3092a5['password']){const _0x38bc0f={'recipient':[_0x2335f8[_0x5a80dc('0x5')]],'message':_0x2335f8[_0x5a80dc('0x23')],'message_type':_0x3092a5[_0x5a80dc('0x1b')]};_0x3092a5[_0x5a80dc('0x1b')]&&_0x3092a5[_0x5a80dc('0x1b')]!=='SI'&&(_0x38bc0f['sender']=_0x3092a5[_0x5a80dc('0x5')]);let _0x1ca339={'url':_0x386511+'login?username='+_0x3092a5['username']+_0x5a80dc('0x5d')+_0x3092a5[_0x5a80dc('0x36')],'method':_0x5a80dc('0x4c')};rp(_0x1ca339)['then'](function(_0x2dd5a3){const _0x1adf7e=_0x5a80dc,_0xfa9781=_0x2dd5a3['split'](';'),_0x3983d9={'user_key':_0xfa9781[0x0],'session_key':_0xfa9781[0x1]};return _0x1ca339={'url':_0x386511+_0x1adf7e('0x49'),'method':_0x1adf7e('0x62'),'headers':{'user_key':_0x3983d9[_0x1adf7e('0x0')],'Session_key':_0x3983d9[_0x1adf7e('0x53')]},'json':!![],'body':_0x38bc0f},rp(_0x1ca339);})[_0x5a80dc('0x5a')](function(_0x588162){const _0x9a72e8=_0x5a80dc;if(_0x588162['total_sent']>=0x1){const _0x47aeb7={'messageId':_0x588162['internal_order_id']};return(_0x3092a5[_0x9a72e8('0x1b')]!=='GP'||!_0x3092a5[_0x9a72e8('0x4a')])&&(_0x47aeb7[_0x9a72e8('0x39')]=!![]),_0x11619e['update'](_0x47aeb7);}else return logger[_0x9a72e8('0x2e')](_0x9a72e8('0x25'),_0x9a72e8('0x45'),'skebby',util[_0x9a72e8('0xb')](_0x588162,{'showHidden':![],'depth':null}));})['catch'](function(_0x1bb810){const _0x284dc3=_0x5a80dc;return logger[_0x284dc3('0x2e')](_0x284dc3('0x25'),'afterCreate',_0x284dc3('0x54'),util[_0x284dc3('0xb')](_0x1bb810,{'showHidden':![],'depth':null}));});}else logger['error'](_0x5a80dc('0x25'),_0x5a80dc('0x45'),_0x5a80dc('0x54'),_0x5a80dc('0x46'));break;}case _0x5a80dc('0x37'):{if(_0x3092a5[_0x5a80dc('0x3f')]){const _0x4503b5={'recipient':_0x2335f8[_0x5a80dc('0x5')],'message':_0x2335f8['body'],'sender':_0x3092a5[_0x5a80dc('0x15')]||_0x3092a5[_0x5a80dc('0x5')],'authorization':_0x3092a5['authToken']},_0x4a2daa={'method':'POST','uri':_0x5a80dc('0xd'),'body':_0x4503b5,'json':!![]};rp(_0x4a2daa)['then'](function(_0x3499df){const _0x3cdf2f=_0x5a80dc,_0x5d45f5={'messageId':_0x3499df[_0x3cdf2f('0x5f')]};return!_0x3092a5[_0x3cdf2f('0x4a')]&&(_0x5d45f5[_0x3cdf2f('0x39')]=!![]),_0x11619e[_0x3cdf2f('0x56')](_0x5d45f5);})[_0x5a80dc('0x14')](function(_0x23b6ab){const _0x197a36=_0x5a80dc;logger['error'](_0x197a36('0x25'),_0x197a36('0x45'),_0x197a36('0x37'),util['inspect'](_0x23b6ab,{'showHidden':![],'depth':null}));});}else logger[_0x5a80dc('0x2e')](_0x5a80dc('0x25'),_0x5a80dc('0x45'),_0x5a80dc('0x37'),'Missing\x20parameters:\x20authToken');break;}case _0x5a80dc('0x3'):{if(_0x3092a5[_0x5a80dc('0x18')]&&_0x3092a5[_0x5a80dc('0x36')]){const _0x3062da={'messages':[{'source':_0x5a80dc('0x6'),'to':_0x2335f8[_0x5a80dc('0x5')],'body':_0x2335f8[_0x5a80dc('0x23')],'from':_0x3092a5['senderString']||_0x3092a5['phone']}]},_0x36e716=util[_0x5a80dc('0x2f')](_0x5a80dc('0x2c'),_0x3092a5[_0x5a80dc('0x18')],_0x3092a5[_0x5a80dc('0x36')]),_0x2da114={'method':'POST','uri':_0x5a80dc('0x1f'),'body':_0x3062da,'headers':{'Authorization':util[_0x5a80dc('0x2f')](_0x5a80dc('0x68'),Buffer[_0x5a80dc('0x26')](_0x36e716)[_0x5a80dc('0x1d')](_0x5a80dc('0x65')))},'json':!![]};rp(_0x2da114)['then'](function(_0x1683f0){const _0x4efc5e=_0x5a80dc;if(_0x1683f0['http_code']>=0xc8&&_0x1683f0[_0x4efc5e('0x61')]<=0xce){if(_0x1683f0[_0x4efc5e('0x2b')]&&_0x1683f0[_0x4efc5e('0x2b')][_0x4efc5e('0x19')]>0x0){const _0x5adb5a=_[_0x4efc5e('0x69')](_0x1683f0[_0x4efc5e('0x2b')][_0x4efc5e('0x41')]),_0x2c2f13={'messageId':_0x5adb5a[_0x4efc5e('0xa')]};return!_0x3092a5[_0x4efc5e('0x4a')]&&(_0x2c2f13[_0x4efc5e('0x39')]=!![]),_0x11619e['update'](_0x2c2f13);}else logger['error'](_0x4efc5e('0x25'),_0x4efc5e('0x45'),_0x4efc5e('0x32'),util[_0x4efc5e('0xb')](_0x1683f0,{'showHidden':![],'depth':null}));}else logger[_0x4efc5e('0x2e')](_0x4efc5e('0x25'),_0x4efc5e('0x45'),_0x4efc5e('0x32'),util['inspect'](_0x1683f0,{'showHidden':![],'depth':null}));})[_0x5a80dc('0x14')](function(_0x1de372){const _0x5075fd=_0x5a80dc;logger['error'](_0x5075fd('0x25'),'afterCreate',_0x5075fd('0x32'),util[_0x5075fd('0xb')](_0x1de372,{'showHidden':![],'depth':null}));});}else logger['error'](_0x5a80dc('0x25'),_0x5a80dc('0x45'),_0x5a80dc('0x32'),_0x5a80dc('0x46'));break;}case'plivo':{if(_0x3092a5[_0x5a80dc('0x29')]&&_0x3092a5[_0x5a80dc('0x3f')]){const _0x3228c3={'dst':_0x2335f8[_0x5a80dc('0x5')],'text':_0x2335f8['body'],'src':_0x3092a5[_0x5a80dc('0x15')]||_0x3092a5['phone'],'url':_0x3092a5['remote']+_0x5a80dc('0x4f')+_0x2335f8['id']+_0x5a80dc('0x55')+_0x3092a5['token']},_0x913a08=util[_0x5a80dc('0x2f')](_0x5a80dc('0x2c'),_0x3092a5[_0x5a80dc('0x29')],_0x3092a5[_0x5a80dc('0x3f')]),_0x374411={'method':_0x5a80dc('0x62'),'uri':util[_0x5a80dc('0x2f')](_0x5a80dc('0x38'),_0x3092a5[_0x5a80dc('0x29')]),'body':_0x3228c3,'headers':{'Authorization':util[_0x5a80dc('0x2f')](_0x5a80dc('0x68'),Buffer[_0x5a80dc('0x26')](_0x913a08)[_0x5a80dc('0x1d')](_0x5a80dc('0x65')))},'json':!![]};rp(_0x374411)[_0x5a80dc('0x5a')](function(_0x27e351){const _0x13c2ec=_0x5a80dc,_0x3e6884={'messageId':_0x27e351['message_uuid'][0x0]};return _0x11619e[_0x13c2ec('0x56')](_0x3e6884);})[_0x5a80dc('0x14')](function(_0x31505f){const _0xa8662=_0x5a80dc;logger['error'](_0xa8662('0x25'),_0xa8662('0x45'),_0xa8662('0x35'),util[_0xa8662('0xb')](_0x31505f,{'showHidden':![],'depth':null}));});}else logger[_0x5a80dc('0x2e')]('SmsMessage,\x20%s,\x20%s,\x20%s',_0x5a80dc('0x45'),_0x5a80dc('0x35'),'Missing\x20parameters:\x20authId,\x20authToken');break;}case _0x5a80dc('0x5b'):{if(_0x3092a5[_0x5a80dc('0x18')]&&_0x3092a5[_0x5a80dc('0x36')]){if(_0x3092a5[_0x5a80dc('0x3c')]){const _0x17dbf3={'method':_0x5a80dc('0x62'),'uri':_0x3092a5[_0x5a80dc('0x3c')]+'/auth/1/session','body':{'username':_0x3092a5['username'],'password':_0x3092a5['password']},'json':!![]};return rp(_0x17dbf3)[_0x5a80dc('0x5a')](function(_0x4521d1){const _0x188ec3=_0x5a80dc,_0x25ad54={'method':'POST','uri':_0x3092a5[_0x188ec3('0x3c')]+_0x188ec3('0x16'),'body':{'messages':[{'from':_0x3092a5[_0x188ec3('0x5')],'destinations':[{'to':_0x2335f8[_0x188ec3('0x5')]}],'text':_0x2335f8[_0x188ec3('0x23')],'notifyUrl':_0x3092a5[_0x188ec3('0x22')]+_0x188ec3('0x4f')+_0x2335f8['id']+_0x188ec3('0x55')+_0x3092a5['token'],'notifyContentType':_0x188ec3('0x12'),'callbackData':_0x3092a5['phone']+';'+_0x2335f8[_0x188ec3('0x23')]}]},'headers':{'Authorization':_0x188ec3('0x27')+_0x4521d1[_0x188ec3('0x2d')]},'json':!![]};return rp(_0x25ad54)[_0x188ec3('0x5a')](function(_0x5dc64b){const _0x167485=_0x188ec3;if(_0x5dc64b[_0x167485('0x41')]){const _0x30fd4a={'messageId':_0x5dc64b[_0x167485('0x41')][0x0][_0x167485('0x13')]};return!_0x3092a5[_0x167485('0x4a')]&&(_0x30fd4a['read']=!![]),_0x11619e[_0x167485('0x56')](_0x30fd4a);}else return logger[_0x167485('0x2e')](_0x167485('0x25'),'afterCreate',_0x167485('0x5b'),util[_0x167485('0xb')](_0x5dc64b,{'showHidden':![],'depth':null}));});})['catch'](function(_0xb95308){const _0x2cad47=_0x5a80dc;return logger[_0x2cad47('0x2e')]('SmsMessage,\x20%s,\x20%s,\x20%s',_0x2cad47('0x45'),_0x2cad47('0x5b'),util[_0x2cad47('0xb')](_0xb95308,{'showHidden':![],'depth':null}));});}else logger[_0x5a80dc('0x2e')](_0x5a80dc('0x25'),_0x5a80dc('0x45'),_0x5a80dc('0x5b'),_0x5a80dc('0x4d'));}else logger[_0x5a80dc('0x2e')](_0x5a80dc('0x25'),_0x5a80dc('0x45'),_0x5a80dc('0x5b'),_0x5a80dc('0x46'));break;}case _0x5a80dc('0x5c'):{const _0x4f9f21=require('crypto');if(_0x3092a5[_0x5a80dc('0x10')]){const _0x4b4c4b={};_0x4b4c4b[_0x5a80dc('0x57')]=_0x3092a5[_0x5a80dc('0x18')],_0x4b4c4b[_0x5a80dc('0x5')]=_0x2335f8['phone'],_0x4b4c4b[_0x5a80dc('0x6b')]=_0x3092a5['phone'],_0x4b4c4b[_0x5a80dc('0x31')]=_0x2335f8['body'],_0x4b4c4b[_0x5a80dc('0x64')]=+new Date();let _0x1f235f='',_0x16fd98='';const _0x2933b0=Object[_0x5a80dc('0x4e')](_0x4b4c4b);_0x2933b0[_0x5a80dc('0x20')]();for(let _0x7fb3ea=0x0;_0x7fb3ea<_0x2933b0[_0x5a80dc('0x60')];_0x7fb3ea++){_0x1f235f!=''&&(_0x1f235f+='&'),_0x1f235f+=_0x2933b0[_0x7fb3ea]+'='+encodeURIComponent(_0x4b4c4b[_0x2933b0[_0x7fb3ea]]),_0x16fd98+=_0x4b4c4b[_0x2933b0[_0x7fb3ea]];}_0x16fd98+=_0x3092a5['apiKey'],_0x16fd98=_0x4f9f21[_0x5a80dc('0x11')]('md5')[_0x5a80dc('0x56')](_0x16fd98)[_0x5a80dc('0x2')]('hex');_0x1f235f!==''&&(_0x1f235f+='&');_0x1f235f+=_0x5a80dc('0x6a')+_0x16fd98;const _0x37ecb5={'method':'GET','uri':_0x3092a5[_0x5a80dc('0x3c')]+_0x5a80dc('0x66')+_0x1f235f,'json':!![]};return rp(_0x37ecb5)[_0x5a80dc('0x5a')](function(_0xfefb4d){const _0x38d8e3=_0x5a80dc,_0x250393=Object[_0x38d8e3('0x4e')](_0xfefb4d);if(_0xfefb4d[_0x250393[0x0]][_0x38d8e3('0x2e')]&&parseInt(_0xfefb4d[_0x250393[0x0]][_0x38d8e3('0x2e')])===0x0){const _0x1df428={'messageId':_0xfefb4d[_0x250393[0x0]][_0x38d8e3('0x48')]};return!_0x3092a5['deliveryReport']&&(_0x1df428[_0x38d8e3('0x39')]=!![]),_0x11619e[_0x38d8e3('0x56')](_0x1df428);}else return logger[_0x38d8e3('0x2e')](_0x38d8e3('0x25'),'afterCreate',_0x38d8e3('0x5c'),util['inspect'](_0xfefb4d[_0x38d8e3('0x2e')],{'showHidden':![],'depth':null}));})[_0x5a80dc('0x14')](function(_0x2ca114){const _0x14fbb0=_0x5a80dc;return logger[_0x14fbb0('0x2e')](_0x14fbb0('0x25'),_0x14fbb0('0x45'),_0x14fbb0('0x5c'),util[_0x14fbb0('0xb')](_0x2ca114,{'showHidden':![],'depth':null}));});}else logger[_0x5a80dc('0x2e')](_0x5a80dc('0x25'),_0x5a80dc('0x45'),_0x5a80dc('0x5c'),'Missing\x20parameters:\x20apiKey');break;}case _0x5a80dc('0x3b'):{if(_0x3092a5['apiKey']){const _0x4001ce={'method':_0x5a80dc('0x62'),'uri':_0x5a80dc('0x24'),'headers':{'Authorization':_0x3092a5['apiKey']},'body':{'content':_0x2335f8[_0x5a80dc('0x23')],'to':[_0x2335f8[_0x5a80dc('0x5')]],'from':_0x3092a5[_0x5a80dc('0x5')],'binary':![],'clientMessageId':_0x5a80dc('0x51'),'charset':_0x5a80dc('0x21')},'json':!![]};rp(_0x4001ce)[_0x5a80dc('0x5a')](function(_0x250e14){const _0x58f6ad=_0x5a80dc;if(!_0x250e14[_0x58f6ad('0x2e')]){const _0x36af14={'messageId':_0x250e14[_0x58f6ad('0x41')][0x0]['apiMessageId']};return!_0x3092a5['deliveryReport']&&(_0x36af14[_0x58f6ad('0x39')]=!![]),_0x11619e[_0x58f6ad('0x56')](_0x36af14);}else return logger['error'](_0x58f6ad('0x25'),_0x58f6ad('0x45'),_0x58f6ad('0x3b'),util[_0x58f6ad('0xb')](_0x250e14[_0x58f6ad('0x2e')],{'showHidden':![],'depth':null}));})['catch'](function(_0x9a829){const _0x32292e=_0x5a80dc;return logger[_0x32292e('0x2e')]('SmsMessage,\x20%s,\x20%s,\x20%s','afterCreate',_0x32292e('0x3b'),util[_0x32292e('0xb')](_0x9a829,{'showHidden':![],'depth':null}));});}else logger[_0x5a80dc('0x2e')](_0x5a80dc('0x25'),_0x5a80dc('0x45'),'clickatell','Missing\x20parameters:\x20apiKey');break;}case _0x5a80dc('0x30'):if(_0x3092a5[_0x5a80dc('0x10')]){const _0x5e2f68={},_0x1883eb={'method':_0x5a80dc('0x62'),'uri':'https://api.intelepeer.com/_rest/v4/app/sms/send','headers':{'Authorization':'Bearer\x20'+_0x3092a5[_0x5a80dc('0x10')],'Content-Type':_0x5a80dc('0x12')},'body':{'from':_0x3092a5['phone'],'to':_0x2335f8['phone'],'text':_0x2335f8[_0x5a80dc('0x23')]},'json':!![]};return rp(_0x1883eb)['then'](function(_0x481814){const _0x12b734=_0x5a80dc;if(_0x481814['code']==0xca){_0x5e2f68[_0x12b734('0x8')]=_0x481814;const _0x28749b={'method':_0x12b734('0x62'),'uri':'https://api.intelepeer.com/_rest/v4/app/sms/mdr','headers':{'Authorization':_0x12b734('0x1e')+_0x3092a5[_0x12b734('0x10')],'Content-Type':'application/json'},'body':{'refid':_0x5e2f68[_0x12b734('0x8')][_0x12b734('0x33')]},'json':!![]};return rp(_0x28749b)[_0x12b734('0x5a')](function(_0x493146){const _0x3793bb=_0x12b734;_0x5e2f68[_0x3793bb('0x7')]=_0x493146;const _0x565a65={'messageId':_0x5e2f68[_0x3793bb('0x8')][_0x3793bb('0x33')],'read':!![]};return _0x11619e[_0x3793bb('0x56')](_0x565a65);});}else return logger[_0x12b734('0x2e')]('SmsMessage,\x20%s,\x20%s,\x20%s',_0x12b734('0x45'),_0x12b734('0x30'),util[_0x12b734('0xb')](_0x481814,{'showHidden':![],'depth':null}));})['catch'](function(_0x4076e8){const _0x2322c1=_0x5a80dc;return logger[_0x2322c1('0x2e')](_0x2322c1('0x25'),_0x2322c1('0x45'),'intelepeer',util[_0x2322c1('0xb')](_0x4076e8,{'showHidden':![],'depth':null}));});}else return logger[_0x5a80dc('0x2e')](_0x5a80dc('0x25'),_0x5a80dc('0x45'),_0x5a80dc('0x30'),_0x5a80dc('0xc'));}})[_0x1bb589('0x1c')](function(){return null;});}else return null;}},'charset':'utf8mb4','collate':_0x513559('0x59')});return _0x32ca15;}; \ No newline at end of file +const a673_0x2432=['init','exports','./smsMessage.options','sequelize','./smsMessage.attributes'];(function(_0x2fa9fa,_0x26e321){const _0x243299=function(_0x1d2525){while(--_0x1d2525){_0x2fa9fa['push'](_0x2fa9fa['shift']());}};_0x243299(++_0x26e321);}(a673_0x2432,0x132));const a673_0x1d25=function(_0x2fa9fa,_0x26e321){_0x2fa9fa=_0x2fa9fa-0x19f;let _0x243299=a673_0x2432[_0x2fa9fa];return _0x243299;};const a673_0x1f6c66=a673_0x1d25;'use strict';const {Model}=require(a673_0x1f6c66(0x1a1)),{attributes}=require(a673_0x1f6c66(0x1a2)),{options}=require(a673_0x1f6c66(0x1a0));class SmsMessage extends Model{}function init(_0x14dc27,_0x2ee3e0){const _0x284798=a673_0x1f6c66,_0x27d43d=options(_0x14dc27),_0x5dce1a=typeof _0x2ee3e0==='function'?_0x2ee3e0(_0x27d43d):_0x27d43d;return SmsMessage[_0x284798(0x1a3)](attributes,_0x5dce1a),SmsMessage;}module[a673_0x1f6c66(0x19f)]['SmsMessage']=SmsMessage,module[a673_0x1f6c66(0x19f)][a673_0x1f6c66(0x1a3)]=init; \ No newline at end of file diff --git a/server/api/smsMessage/smsMessage.options.js b/server/api/smsMessage/smsMessage.options.js new file mode 100644 index 0000000..4b871a2 --- /dev/null +++ b/server/api/smsMessage/smsMessage.options.js @@ -0,0 +1 @@ +const a674_0x12c2=['authToken','message_uuid','refid','messageId','read','request-promise-native','queued_count','http_code','toString','text','create','https://platform.clickatell.com/messages','update','skebby','smsMethod','authId','Bearer\x20','uuid','login','findOne','createdAt','clicksend','inspect','catch','length','clickatell','deliveryReport','intelepeer','infobip','xCALLY\x20Motion','Missing\x20parameters:\x20authId,\x20authToken','password','hex','direction','md5','&password=','%s:%s','message','SmsAccountId','connectel','apiKey','secret','phone','Token\x20not\x20received','accountSid','models','../../config/logger','sms','/api/sms/messages/','data','from','Missing\x20parameters:\x20phone,\x20accountSid\x20or\x20authToken','sms_messages','sid','application/json','apiMessageId','utf8mb4','status','GET','baseUrl','/status?token=','out','https://api.skebby.it/API/v1.0/REST/','keys','csc','sort','crypto','user_key','requestid','FULLTEXT','remote','toLowerCase','senderString','token','utf8mb4_unicode_ci','util','format','get','then','clickSend','https://api.plivo.com/v1/Account/%s/Message/','afterCreate','Missing\x20parameters:\x20username,\x20password','SmsInteractionId','split','find','/auth/1/session','SmsMessage,\x20%s,\x20%s,\x20%s','SmsAccount','twilio','type','internal_order_id','digest','https://rest.clicksend.com/v3/sms/send','sender','session_key','plivo','messages','POST','id_sms','username','Missing\x20parameters:\x20authToken','SmsInteraction','body','api','message_id','https://smsapi.connectel.se/api/v2/send/','error','isNil','/external/get/send.php?','total_sent'];(function(_0x4b5685,_0x1fdecf){const _0x12c299=function(_0x5669ad){while(--_0x5669ad){_0x4b5685['push'](_0x4b5685['shift']());}};_0x12c299(++_0x1fdecf);}(a674_0x12c2,0x1ec));const a674_0x5669=function(_0x4b5685,_0x1fdecf){_0x4b5685=_0x4b5685-0x13c;let _0x12c299=a674_0x12c2[_0x4b5685];return _0x12c299;};const a674_0x14f87b=a674_0x5669,_=require('lodash'),twilio=require(a674_0x14f87b(0x165)),util=require(a674_0x14f87b(0x157)),crypto=require(a674_0x14f87b(0x14e)),logger=require(a674_0x14f87b(0x1a9))(a674_0x14f87b(0x174)),rp=require(a674_0x14f87b(0x180));function options(_0x3f21f0){const _0x51c2d4=a674_0x14f87b;return{'sequelize':_0x3f21f0,'tableName':_0x51c2d4(0x140),'paranoid':![],'indexes':[{'name':_0x51c2d4(0x17e),'fields':['messageId']},{'name':'fti_sms_messages','fields':['body'],'type':_0x51c2d4(0x151)}],'timestamps':!![],'hooks':{'afterCreate':function(_0x38c91f){const _0x427455=_0x51c2d4,_0x59abf7=_0x3f21f0[_0x427455(0x1a8)],_0x470720=_0x38c91f[_0x427455(0x159)]({'plain':!![]});(_0x470720[_0x427455(0x19c)][_0x427455(0x153)]()==='in'||_0x470720['direction'][_0x427455(0x153)]()==='out'&&!_0x470720[_0x427455(0x1a4)]&&!_[_0x427455(0x178)](_0x470720['UserId']))&&_0x59abf7[_0x427455(0x172)][_0x427455(0x18e)]({'where':{'id':_0x470720[_0x427455(0x15f)]}})[_0x427455(0x15a)](function(_0x2e176d){const _0x175f14=_0x427455;_0x2e176d&&_0x2e176d[_0x175f14(0x187)]({'lastMsgAt':_0x470720[_0x175f14(0x18f)],'lastMsgDirection':_0x470720[_0x175f14(0x19c)][_0x175f14(0x153)]()});})[_0x427455(0x192)](function(_0x5b6573){const _0x16471f=_0x427455;console[_0x16471f(0x177)](_0x5b6573);});if(_0x470720[_0x427455(0x19c)]===_0x427455(0x149)&&!_0x470720[_0x427455(0x1a4)]){let _0x4ad772;_0x59abf7[_0x427455(0x164)][_0x427455(0x161)]({'where':{'id':_0x470720[_0x427455(0x1a1)]},'raw':!![]})[_0x427455(0x15a)](function(_0x2d95d7){const _0x3a83e8=_0x427455;_0x4ad772=_0x2d95d7;if(_0x4ad772&&_0x4ad772['type'])switch(_0x4ad772[_0x3a83e8(0x166)]){case'twilio':if(_0x4ad772['accountSid']&&_0x4ad772[_0x3a83e8(0x17b)]&&_0x4ad772[_0x3a83e8(0x1a5)]){const _0x3dd87e=new twilio(_0x4ad772[_0x3a83e8(0x1a7)],_0x4ad772[_0x3a83e8(0x17b)]);_0x3dd87e['messages'][_0x3a83e8(0x185)]({'body':_0x470720['body'],'to':_0x470720[_0x3a83e8(0x1a5)],'from':_0x4ad772[_0x3a83e8(0x1a5)],'statusCallback':_0x4ad772[_0x3a83e8(0x152)]+_0x3a83e8(0x13c)+_0x470720['id']+'/status?token='+_0x4ad772[_0x3a83e8(0x155)]})[_0x3a83e8(0x15a)](function(_0x32050e){const _0x474a54=_0x3a83e8;if(_0x32050e[_0x474a54(0x141)])return _0x38c91f['update']({'messageId':_0x32050e[_0x474a54(0x141)]});})[_0x3a83e8(0x192)](function(_0x59df0d){const _0x8ec79=_0x3a83e8;logger[_0x8ec79(0x177)](_0x8ec79(0x163),_0x8ec79(0x15d),_0x8ec79(0x165),util[_0x8ec79(0x191)](_0x59df0d,{'showHidden':![],'depth':null}));});}else logger['error'](_0x3a83e8(0x163),_0x3a83e8(0x15d),_0x3a83e8(0x165),_0x3a83e8(0x13f));break;case _0x3a83e8(0x188):{const _0x53eaf7=_0x3a83e8(0x14a);if(_0x4ad772[_0x3a83e8(0x170)]&&_0x4ad772[_0x3a83e8(0x19a)]){const _0x415066={'recipient':[_0x470720[_0x3a83e8(0x1a5)]],'message':_0x470720['body'],'message_type':_0x4ad772[_0x3a83e8(0x189)]};_0x4ad772['smsMethod']&&_0x4ad772[_0x3a83e8(0x189)]!=='SI'&&(_0x415066[_0x3a83e8(0x16a)]=_0x4ad772['phone']);let _0x54282f={'url':_0x53eaf7+'login?username='+_0x4ad772[_0x3a83e8(0x170)]+_0x3a83e8(0x19e)+_0x4ad772[_0x3a83e8(0x19a)],'method':_0x3a83e8(0x146)};rp(_0x54282f)[_0x3a83e8(0x15a)](function(_0x183b26){const _0x340a85=_0x3a83e8,_0x1fdde6=_0x183b26[_0x340a85(0x160)](';'),_0xe25fa4={'user_key':_0x1fdde6[0x0],'session_key':_0x1fdde6[0x1]};return _0x54282f={'url':_0x53eaf7+_0x340a85(0x1aa),'method':_0x340a85(0x16e),'headers':{'user_key':_0xe25fa4[_0x340a85(0x14f)],'Session_key':_0xe25fa4[_0x340a85(0x16b)]},'json':!![],'body':_0x415066},rp(_0x54282f);})[_0x3a83e8(0x15a)](function(_0x4cf455){const _0x455fba=_0x3a83e8;if(_0x4cf455[_0x455fba(0x17a)]>=0x1){const _0x2cd7c5={'messageId':_0x4cf455[_0x455fba(0x167)]};return(_0x4ad772[_0x455fba(0x189)]!=='GP'||!_0x4ad772[_0x455fba(0x195)])&&(_0x2cd7c5[_0x455fba(0x17f)]=!![]),_0x38c91f[_0x455fba(0x187)](_0x2cd7c5);}else return logger[_0x455fba(0x177)](_0x455fba(0x163),_0x455fba(0x15d),_0x455fba(0x188),util[_0x455fba(0x191)](_0x4cf455,{'showHidden':![],'depth':null}));})['catch'](function(_0x365e4d){const _0x5ab674=_0x3a83e8;return logger[_0x5ab674(0x177)](_0x5ab674(0x163),'afterCreate',_0x5ab674(0x188),util['inspect'](_0x365e4d,{'showHidden':![],'depth':null}));});}else logger[_0x3a83e8(0x177)](_0x3a83e8(0x163),_0x3a83e8(0x15d),'skebby',_0x3a83e8(0x15e));}break;case _0x3a83e8(0x1a2):if(_0x4ad772[_0x3a83e8(0x17b)]){const _0x16ba04={'recipient':_0x470720[_0x3a83e8(0x1a5)],'message':_0x470720['body'],'sender':_0x4ad772['senderString']||_0x4ad772['phone'],'authorization':_0x4ad772[_0x3a83e8(0x17b)]},_0x4f2027={'method':_0x3a83e8(0x16e),'uri':_0x3a83e8(0x176),'body':_0x16ba04,'json':!![]};rp(_0x4f2027)[_0x3a83e8(0x15a)](function(_0x53bd94){const _0x2c1f79=_0x3a83e8,_0x5a08d4={'messageId':_0x53bd94[_0x2c1f79(0x150)]};return!_0x4ad772[_0x2c1f79(0x195)]&&(_0x5a08d4[_0x2c1f79(0x17f)]=!![]),_0x38c91f['update'](_0x5a08d4);})[_0x3a83e8(0x192)](function(_0x215cc2){const _0x524b28=_0x3a83e8;logger['error'](_0x524b28(0x163),_0x524b28(0x15d),_0x524b28(0x1a2),util['inspect'](_0x215cc2,{'showHidden':![],'depth':null}));});}else logger['error']('SmsMessage,\x20%s,\x20%s,\x20%s',_0x3a83e8(0x15d),_0x3a83e8(0x1a2),_0x3a83e8(0x171));break;case _0x3a83e8(0x190):if(_0x4ad772[_0x3a83e8(0x170)]&&_0x4ad772[_0x3a83e8(0x19a)]){const _0x1b8f7c={'messages':[{'source':_0x3a83e8(0x198),'to':_0x470720[_0x3a83e8(0x1a5)],'body':_0x470720[_0x3a83e8(0x173)],'from':_0x4ad772[_0x3a83e8(0x154)]||_0x4ad772[_0x3a83e8(0x1a5)]}]},_0x3c5df3=util['format'](_0x3a83e8(0x19f),_0x4ad772['username'],_0x4ad772[_0x3a83e8(0x19a)]),_0x5e2f20={'method':_0x3a83e8(0x16e),'uri':_0x3a83e8(0x169),'body':_0x1b8f7c,'headers':{'Authorization':util[_0x3a83e8(0x158)]('Basic\x20%s',Buffer[_0x3a83e8(0x13e)](_0x3c5df3)[_0x3a83e8(0x183)]('base64'))},'json':!![]};rp(_0x5e2f20)[_0x3a83e8(0x15a)](function(_0x2df762){const _0x6b735=_0x3a83e8;if(_0x2df762[_0x6b735(0x182)]>=0xc8&&_0x2df762[_0x6b735(0x182)]<=0xce){if(_0x2df762[_0x6b735(0x13d)]&&_0x2df762['data'][_0x6b735(0x181)]>0x0){const _0x53f93a=_['head'](_0x2df762[_0x6b735(0x13d)][_0x6b735(0x16d)]),_0x2d27c2={'messageId':_0x53f93a[_0x6b735(0x175)]};return!_0x4ad772[_0x6b735(0x195)]&&(_0x2d27c2[_0x6b735(0x17f)]=!![]),_0x38c91f[_0x6b735(0x187)](_0x2d27c2);}else logger['error'](_0x6b735(0x163),_0x6b735(0x15d),'clickSend',util[_0x6b735(0x191)](_0x2df762,{'showHidden':![],'depth':null}));}else logger[_0x6b735(0x177)](_0x6b735(0x163),'afterCreate',_0x6b735(0x15b),util[_0x6b735(0x191)](_0x2df762,{'showHidden':![],'depth':null}));})[_0x3a83e8(0x192)](function(_0x1f69d1){const _0x2c37cb=_0x3a83e8;logger[_0x2c37cb(0x177)](_0x2c37cb(0x163),_0x2c37cb(0x15d),_0x2c37cb(0x15b),util[_0x2c37cb(0x191)](_0x1f69d1,{'showHidden':![],'depth':null}));});}else logger[_0x3a83e8(0x177)]('SmsMessage,\x20%s,\x20%s,\x20%s',_0x3a83e8(0x15d),'clickSend',_0x3a83e8(0x15e));break;case _0x3a83e8(0x16c):if(_0x4ad772[_0x3a83e8(0x18a)]&&_0x4ad772[_0x3a83e8(0x17b)]){const _0x4c04f3={'dst':_0x470720[_0x3a83e8(0x1a5)],'text':_0x470720[_0x3a83e8(0x173)],'src':_0x4ad772[_0x3a83e8(0x154)]||_0x4ad772[_0x3a83e8(0x1a5)],'url':_0x4ad772[_0x3a83e8(0x152)]+_0x3a83e8(0x13c)+_0x470720['id']+_0x3a83e8(0x148)+_0x4ad772[_0x3a83e8(0x155)]},_0x29a936=util[_0x3a83e8(0x158)](_0x3a83e8(0x19f),_0x4ad772['authId'],_0x4ad772[_0x3a83e8(0x17b)]),_0x4c80b7={'method':_0x3a83e8(0x16e),'uri':util['format'](_0x3a83e8(0x15c),_0x4ad772[_0x3a83e8(0x18a)]),'body':_0x4c04f3,'headers':{'Authorization':util[_0x3a83e8(0x158)]('Basic\x20%s',Buffer[_0x3a83e8(0x13e)](_0x29a936)[_0x3a83e8(0x183)]('base64'))},'json':!![]};rp(_0x4c80b7)[_0x3a83e8(0x15a)](function(_0x1f2934){const _0x24296a=_0x3a83e8,_0x364d1f={'messageId':_0x1f2934[_0x24296a(0x17c)][0x0]};return _0x38c91f[_0x24296a(0x187)](_0x364d1f);})[_0x3a83e8(0x192)](function(_0x5ca892){const _0x5be763=_0x3a83e8;logger[_0x5be763(0x177)](_0x5be763(0x163),'afterCreate','plivo',util['inspect'](_0x5ca892,{'showHidden':![],'depth':null}));});}else logger[_0x3a83e8(0x177)]('SmsMessage,\x20%s,\x20%s,\x20%s','afterCreate',_0x3a83e8(0x16c),_0x3a83e8(0x199));break;case _0x3a83e8(0x197):if(_0x4ad772[_0x3a83e8(0x170)]&&_0x4ad772['password']){if(_0x4ad772[_0x3a83e8(0x147)]){const _0x1bcca6={'method':_0x3a83e8(0x16e),'uri':_0x4ad772[_0x3a83e8(0x147)]+_0x3a83e8(0x162),'body':{'username':_0x4ad772[_0x3a83e8(0x170)],'password':_0x4ad772[_0x3a83e8(0x19a)]},'json':!![]};return rp(_0x1bcca6)['then'](function(_0x56063c){const _0x4be1f1=_0x3a83e8,_0xe7c463={'method':_0x4be1f1(0x16e),'uri':_0x4ad772[_0x4be1f1(0x147)]+'/sms/2/text/advanced','body':{'messages':[{'from':_0x4ad772[_0x4be1f1(0x1a5)],'destinations':[{'to':_0x470720[_0x4be1f1(0x1a5)]}],'text':_0x470720[_0x4be1f1(0x173)],'notifyUrl':_0x4ad772[_0x4be1f1(0x152)]+_0x4be1f1(0x13c)+_0x470720['id']+_0x4be1f1(0x148)+_0x4ad772[_0x4be1f1(0x155)],'notifyContentType':_0x4be1f1(0x142),'callbackData':_0x4ad772[_0x4be1f1(0x1a5)]+';'+_0x470720['body']}]},'headers':{'Authorization':'IBSSO\x20'+_0x56063c[_0x4be1f1(0x155)]},'json':!![]};return rp(_0xe7c463)[_0x4be1f1(0x15a)](function(_0x43af5c){const _0x102163=_0x4be1f1;if(_0x43af5c[_0x102163(0x16d)]){const _0x1431df={'messageId':_0x43af5c['messages'][0x0]['messageId']};return!_0x4ad772['deliveryReport']&&(_0x1431df['read']=!![]),_0x38c91f[_0x102163(0x187)](_0x1431df);}else return logger['error'](_0x102163(0x163),'afterCreate',_0x102163(0x197),util[_0x102163(0x191)](_0x43af5c,{'showHidden':![],'depth':null}));});})['catch'](function(_0x25a44d){const _0x3263bc=_0x3a83e8;return logger[_0x3263bc(0x177)](_0x3263bc(0x163),'afterCreate','infobip',util[_0x3263bc(0x191)](_0x25a44d,{'showHidden':![],'depth':null}));});}else logger[_0x3a83e8(0x177)]('SmsMessage,\x20%s,\x20%s,\x20%s','afterCreate',_0x3a83e8(0x197),'Missing\x20parameters:\x20base_url');}else logger[_0x3a83e8(0x177)](_0x3a83e8(0x163),_0x3a83e8(0x15d),_0x3a83e8(0x197),_0x3a83e8(0x15e));break;case _0x3a83e8(0x14c):if(_0x4ad772[_0x3a83e8(0x1a3)]){const _0x2b810d={};_0x2b810d[_0x3a83e8(0x18d)]=_0x4ad772['username'],_0x2b810d[_0x3a83e8(0x1a5)]=_0x470720[_0x3a83e8(0x1a5)],_0x2b810d[_0x3a83e8(0x16a)]=_0x4ad772[_0x3a83e8(0x1a5)],_0x2b810d[_0x3a83e8(0x184)]=_0x470720[_0x3a83e8(0x173)],_0x2b810d['timestamp']=+new Date();let _0xdf6783='',_0x4ba369='';const _0xeba391=Object[_0x3a83e8(0x14b)](_0x2b810d);_0xeba391[_0x3a83e8(0x14d)]();for(let _0xb5c634=0x0;_0xb5c634<_0xeba391[_0x3a83e8(0x193)];_0xb5c634++){_0xdf6783!=''&&(_0xdf6783+='&'),_0xdf6783+=_0xeba391[_0xb5c634]+'='+encodeURIComponent(_0x2b810d[_0xeba391[_0xb5c634]]),_0x4ba369+=_0x2b810d[_0xeba391[_0xb5c634]];}_0x4ba369+=_0x4ad772[_0x3a83e8(0x1a3)],_0x4ba369=crypto['createHash'](_0x3a83e8(0x19d))['update'](_0x4ba369)[_0x3a83e8(0x168)](_0x3a83e8(0x19b));_0xdf6783!==''&&(_0xdf6783+='&');_0xdf6783+='signature='+_0x4ba369;const _0xf99332={'method':_0x3a83e8(0x146),'uri':_0x4ad772[_0x3a83e8(0x147)]+_0x3a83e8(0x179)+_0xdf6783,'json':!![]};return rp(_0xf99332)[_0x3a83e8(0x15a)](function(_0x5ce7aa){const _0x5c8bdc=_0x3a83e8,_0x114e9e=Object[_0x5c8bdc(0x14b)](_0x5ce7aa);if(_0x5ce7aa[_0x114e9e[0x0]][_0x5c8bdc(0x177)]&&parseInt(_0x5ce7aa[_0x114e9e[0x0]]['error'])===0x0){const _0x314bf4={'messageId':_0x5ce7aa[_0x114e9e[0x0]][_0x5c8bdc(0x16f)]};return!_0x4ad772[_0x5c8bdc(0x195)]&&(_0x314bf4[_0x5c8bdc(0x17f)]=!![]),_0x38c91f[_0x5c8bdc(0x187)](_0x314bf4);}else return logger[_0x5c8bdc(0x177)]('SmsMessage,\x20%s,\x20%s,\x20%s',_0x5c8bdc(0x15d),_0x5c8bdc(0x14c),util[_0x5c8bdc(0x191)](_0x5ce7aa[_0x5c8bdc(0x177)],{'showHidden':![],'depth':null}));})['catch'](function(_0x59703e){const _0x1495c2=_0x3a83e8;return logger[_0x1495c2(0x177)](_0x1495c2(0x163),_0x1495c2(0x15d),_0x1495c2(0x14c),util[_0x1495c2(0x191)](_0x59703e,{'showHidden':![],'depth':null}));});}else logger['error'](_0x3a83e8(0x163),_0x3a83e8(0x15d),'csc','Missing\x20parameters:\x20apiKey');break;case'clickatell':if(_0x4ad772[_0x3a83e8(0x1a3)]){const _0x4bb1db={'method':_0x3a83e8(0x16e),'uri':_0x3a83e8(0x186),'headers':{'Authorization':_0x4ad772[_0x3a83e8(0x1a3)]},'body':{'content':_0x470720[_0x3a83e8(0x173)],'to':[_0x470720[_0x3a83e8(0x1a5)]],'from':_0x4ad772[_0x3a83e8(0x1a5)],'binary':![],'clientMessageId':_0x3a83e8(0x18c),'charset':'UTF-8'},'json':!![]};rp(_0x4bb1db)['then'](function(_0x49a84e){const _0xf1a4ee=_0x3a83e8;if(!_0x49a84e['error']){const _0x53ebb9={'messageId':_0x49a84e[_0xf1a4ee(0x16d)][0x0][_0xf1a4ee(0x143)]};return!_0x4ad772['deliveryReport']&&(_0x53ebb9['read']=!![]),_0x38c91f['update'](_0x53ebb9);}else return logger['error']('SmsMessage,\x20%s,\x20%s,\x20%s',_0xf1a4ee(0x15d),'clickatell',util['inspect'](_0x49a84e[_0xf1a4ee(0x177)],{'showHidden':![],'depth':null}));})[_0x3a83e8(0x192)](function(_0x4e7e61){const _0xc2b4b2=_0x3a83e8;return logger[_0xc2b4b2(0x177)](_0xc2b4b2(0x163),'afterCreate','clickatell',util[_0xc2b4b2(0x191)](_0x4e7e61,{'showHidden':![],'depth':null}));});}else logger[_0x3a83e8(0x177)](_0x3a83e8(0x163),_0x3a83e8(0x15d),_0x3a83e8(0x194),'Missing\x20parameters:\x20apiKey');break;case _0x3a83e8(0x196):{if(_0x4ad772['apiKey']){const _0x417193={},_0x91fd4c={'method':_0x3a83e8(0x16e),'uri':'https://api.intelepeer.com/_rest/v4/app/sms/send','headers':{'Authorization':_0x3a83e8(0x18b)+_0x4ad772['apiKey'],'Content-Type':'application/json'},'body':{'from':_0x4ad772[_0x3a83e8(0x1a5)],'to':_0x470720[_0x3a83e8(0x1a5)],'text':_0x470720[_0x3a83e8(0x173)]},'json':!![]};return rp(_0x91fd4c)[_0x3a83e8(0x15a)](function(_0x22a043){const _0x3c1851=_0x3a83e8;if(_0x22a043['code']==0xca){_0x417193[_0x3c1851(0x1a0)]=_0x22a043;const _0x391619={'method':_0x3c1851(0x16e),'uri':'https://api.intelepeer.com/_rest/v4/app/sms/mdr','headers':{'Authorization':_0x3c1851(0x18b)+_0x4ad772['apiKey'],'Content-Type':_0x3c1851(0x142)},'body':{'refid':_0x417193[_0x3c1851(0x1a0)][_0x3c1851(0x17d)]},'json':!![]};return rp(_0x391619)[_0x3c1851(0x15a)](function(_0x2a32b0){const _0x5b13ba=_0x3c1851;_0x417193[_0x5b13ba(0x145)]=_0x2a32b0;const _0x2f9ff7={'messageId':_0x417193[_0x5b13ba(0x1a0)][_0x5b13ba(0x17d)],'read':!![]};_0x38c91f[_0x5b13ba(0x187)](_0x2f9ff7);});}else logger['error'](_0x3c1851(0x163),'afterCreate','intelepeer',util[_0x3c1851(0x191)](_0x22a043,{'showHidden':![],'depth':null}));})[_0x3a83e8(0x192)](function(_0x2a83c){const _0x347e34=_0x3a83e8;logger[_0x347e34(0x177)](_0x347e34(0x163),_0x347e34(0x15d),'intelepeer',util[_0x347e34(0x191)](_0x2a83c,{'showHidden':![],'depth':null}));});}else logger['error']('SmsMessage,\x20%s,\x20%s,\x20%s','afterCreate',_0x3a83e8(0x196),_0x3a83e8(0x1a6));}break;}});}}},'charset':_0x51c2d4(0x144),'collate':_0x51c2d4(0x156)};}module['exports']['options']=options; \ No newline at end of file diff --git a/server/api/smsMessage/smsMessage.rpc.js b/server/api/smsMessage/smsMessage.rpc.js index 37c9544..fee7da4 100644 --- a/server/api/smsMessage/smsMessage.rpc.js +++ b/server/api/smsMessage/smsMessage.rpc.js @@ -1 +1 @@ -const a563_0x4190=['raw','then','rpc','../../mysqldb','catch','error','debug','message','info','../../config/logger','./smsMessage.socket','register','CreateSmsMessage','body','create','../../rediscache','options'];(function(_0x492370,_0x419060){const _0x17ab66=function(_0x48aa6c){while(--_0x48aa6c){_0x492370['push'](_0x492370['shift']());}};_0x17ab66(++_0x419060);}(a563_0x4190,0x116));const a563_0x17ab=function(_0x492370,_0x419060){_0x492370=_0x492370-0x0;let _0x17ab66=a563_0x4190[_0x492370];return _0x17ab66;};const _0x256274=a563_0x17ab;'use strict';const db=require(_0x256274('0xe'))['db'],logger=require(_0x256274('0x3'))(_0x256274('0xd')),{getSocket}=require(_0x256274('0x9')),socket=getSocket();require(_0x256274('0x4'))[_0x256274('0x5')](socket),exports['CreateSmsMessage']=function(_0x48aa6c){const _0xb377d2=this;return new Promise(function(_0x3cd0a8,_0x4248cf){const _0x5ba680=a563_0x17ab;return db['SmsMessage'][_0x5ba680('0x8')](_0x48aa6c[_0x5ba680('0x7')],{'raw':_0x48aa6c[_0x5ba680('0xa')]?_0x48aa6c['options'][_0x5ba680('0xb')]===undefined?!![]:![]:!![]})[_0x5ba680('0xc')](function(_0x4d2c2d){const _0x4ba04e=_0x5ba680;logger[_0x4ba04e('0x2')](_0x4ba04e('0x6'),_0x48aa6c),logger[_0x4ba04e('0x0')](_0x4ba04e('0x6'),_0x48aa6c,JSON['stringify'](_0x4d2c2d)),_0x3cd0a8(_0x4d2c2d);})[_0x5ba680('0xf')](function(_0x108e87){const _0x5ed286=_0x5ba680;logger[_0x5ed286('0x10')]('CreateSmsMessage',_0x108e87[_0x5ed286('0x1')],_0x48aa6c),_0x4248cf(_0xb377d2[_0x5ed286('0x10')](0x1f4,_0x108e87[_0x5ed286('0x1')]));});});}; \ No newline at end of file +const a675_0x4414=['../../rediscache','catch','body','rpc','register','../../config/logger','raw','message','error','CreateSmsMessage','options','info','SmsMessage'];(function(_0x52c35f,_0xb845a6){const _0x441473=function(_0x36e859){while(--_0x36e859){_0x52c35f['push'](_0x52c35f['shift']());}};_0x441473(++_0xb845a6);}(a675_0x4414,0x186));const a675_0x36e8=function(_0x52c35f,_0xb845a6){_0x52c35f=_0x52c35f-0xf1;let _0x441473=a675_0x4414[_0x52c35f];return _0x441473;};const a675_0x1c7374=a675_0x36e8;'use strict';const db=require('../../mysqldb')['db'],logger=require(a675_0x1c7374(0xf6))(a675_0x1c7374(0xf4)),{getSocket}=require(a675_0x1c7374(0xf1)),socket=getSocket();require('./smsMessage.socket')[a675_0x1c7374(0xf5)](socket),exports['CreateSmsMessage']=function(_0x4e1d14){const _0x1991c6=this;return new Promise(function(_0xce7570,_0x54305f){const _0x203aae=a675_0x36e8;return db[_0x203aae(0xfd)]['create'](_0x4e1d14[_0x203aae(0xf3)],{'raw':_0x4e1d14[_0x203aae(0xfb)]?_0x4e1d14[_0x203aae(0xfb)][_0x203aae(0xf7)]===undefined?!![]:![]:!![]})['then'](function(_0x33b289){const _0xcfe6b8=_0x203aae;logger[_0xcfe6b8(0xfc)]('CreateSmsMessage',_0x4e1d14),logger['debug'](_0xcfe6b8(0xfa),_0x4e1d14,JSON['stringify'](_0x33b289)),_0xce7570(_0x33b289);})[_0x203aae(0xf2)](function(_0x5bb484){const _0x2dea79=_0x203aae;logger[_0x2dea79(0xf9)](_0x2dea79(0xfa),_0x5bb484[_0x2dea79(0xf8)],_0x4e1d14),_0x54305f(_0x1991c6['error'](0x1f4,_0x5bb484[_0x2dea79(0xf8)]));});});}; \ No newline at end of file diff --git a/server/api/smsMessage/smsMessage.socket.js b/server/api/smsMessage/smsMessage.socket.js index f216149..b0898a3 100644 --- a/server/api/smsMessage/smsMessage.socket.js +++ b/server/api/smsMessage/smsMessage.socket.js @@ -1 +1 @@ -const a564_0x51d5=['remove','./smsMessage.events','update','length','emit','register'];(function(_0x3fe8c6,_0x51d590){const _0x14ff22=function(_0x29437e){while(--_0x29437e){_0x3fe8c6['push'](_0x3fe8c6['shift']());}};_0x14ff22(++_0x51d590);}(a564_0x51d5,0x7a));const a564_0x14ff=function(_0x3fe8c6,_0x51d590){_0x3fe8c6=_0x3fe8c6-0x0;let _0x14ff22=a564_0x51d5[_0x3fe8c6];return _0x14ff22;};const _0x173609=a564_0x14ff;'use strict';const SmsMessageEvents=require(_0x173609('0x5')),events=['save',_0x173609('0x4'),_0x173609('0x0')];function createListener(_0x29437e,_0x274f3b){return function(_0x5d454a){const _0x44e58c=a564_0x14ff;_0x274f3b[_0x44e58c('0x2')](_0x29437e,_0x5d454a);};}exports[_0x173609('0x3')]=function(_0x51196e){const _0x3d3db5=_0x173609;for(let _0x26d7e5=0x0,_0x541358=events[_0x3d3db5('0x1')];_0x26d7e5<_0x541358;_0x26d7e5++){const _0x159822=events[_0x26d7e5],_0x2995c5=createListener('smsMessage:'+_0x159822,_0x51196e);SmsMessageEvents['on'](_0x159822,_0x2995c5);}}; \ No newline at end of file +const a676_0x3756=['update','save','smsMessage:','remove','emit','length','./smsMessage.events','register'];(function(_0x3bce61,_0x28dfe3){const _0x37564f=function(_0x147ab1){while(--_0x147ab1){_0x3bce61['push'](_0x3bce61['shift']());}};_0x37564f(++_0x28dfe3);}(a676_0x3756,0x83));const a676_0x147a=function(_0x3bce61,_0x28dfe3){_0x3bce61=_0x3bce61-0x17d;let _0x37564f=a676_0x3756[_0x3bce61];return _0x37564f;};const a676_0x588c07=a676_0x147a;'use strict';const SmsMessageEvents=require(a676_0x588c07(0x180)),events=[a676_0x588c07(0x183),a676_0x588c07(0x17d),a676_0x588c07(0x182)];function createListener(_0x101aee,_0x4690f1){return function(_0x6c578b){const _0x1aacfd=a676_0x147a;_0x4690f1[_0x1aacfd(0x17e)](_0x101aee,_0x6c578b);};}exports[a676_0x588c07(0x181)]=function(_0x16208b){const _0x3a263d=a676_0x588c07;for(let _0x13409d=0x0,_0xd1e38a=events[_0x3a263d(0x17f)];_0x13409d<_0xd1e38a;_0x13409d++){const _0x9bbbce=events[_0x13409d],_0x5a3fc7=createListener(_0x3a263d(0x184)+_0x9bbbce,_0x16208b);SmsMessageEvents['on'](_0x9bbbce,_0x5a3fc7);}}; \ No newline at end of file diff --git a/server/api/smsQueue/index.js b/server/api/smsQueue/index.js index 4d5f22a..c59945c 100644 --- a/server/api/smsQueue/index.js +++ b/server/api/smsQueue/index.js @@ -1 +1 @@ -const a565_0x47ed=['./smsQueue.controller','post','show','getAgents','/:id/teams','create','get','exports','/:id/users','/:id','describe','destroy','getTeams','index','../../components/auth/service','getMembers','delete','/describe','update','isAuthenticated','express','put','Router','removeTeams'];(function(_0xca12eb,_0x47ed22){const _0x5ebc48=function(_0x40f695){while(--_0x40f695){_0xca12eb['push'](_0xca12eb['shift']());}};_0x5ebc48(++_0x47ed22);}(a565_0x47ed,0x1a8));const a565_0x5ebc=function(_0xca12eb,_0x47ed22){_0xca12eb=_0xca12eb-0x0;let _0x5ebc48=a565_0x47ed[_0xca12eb];return _0x5ebc48;};const _0x149803=a565_0x5ebc;'use strict';const express=require(_0x149803('0x4')),router=express[_0x149803('0x6')](),auth=require(_0x149803('0x16')),controller=require(_0x149803('0x8'));router['get']('/',auth['isAuthenticated'](),controller[_0x149803('0x15')]),router['get'](_0x149803('0x1'),auth['isAuthenticated'](),controller[_0x149803('0x12')]),router[_0x149803('0xe')](_0x149803('0x11'),auth[_0x149803('0x3')](),controller[_0x149803('0xa')]),router['get']('/:id/members',auth[_0x149803('0x3')](),controller[_0x149803('0x17')]),router[_0x149803('0xe')](_0x149803('0xc'),auth[_0x149803('0x3')](),controller[_0x149803('0x14')]),router[_0x149803('0xe')](_0x149803('0x10'),auth[_0x149803('0x3')](),controller[_0x149803('0xb')]),router[_0x149803('0x9')]('/',auth[_0x149803('0x3')](),controller[_0x149803('0xd')]),router[_0x149803('0x9')](_0x149803('0xc'),auth[_0x149803('0x3')](),controller['addTeams']),router[_0x149803('0x9')](_0x149803('0x10'),auth[_0x149803('0x3')](),controller['addAgents']),router[_0x149803('0x5')](_0x149803('0x11'),auth['isAuthenticated'](),controller[_0x149803('0x2')]),router[_0x149803('0x0')](_0x149803('0x11'),auth[_0x149803('0x3')](),controller[_0x149803('0x13')]),router[_0x149803('0x0')]('/:id/teams',auth[_0x149803('0x3')](),controller[_0x149803('0x7')]),router['delete'](_0x149803('0x10'),auth[_0x149803('0x3')](),controller['removeAgents']),module[_0x149803('0xf')]=router; \ No newline at end of file +const a677_0x47ad=['isAuthenticated','/:id/users','exports','update','../../components/auth/service','removeTeams','express','addTeams','delete','/:id','/describe','get','/:id/teams','destroy','put','create','getMembers','getAgents','post','addAgents','getTeams'];(function(_0x4878c0,_0x2bb087){const _0x47ad13=function(_0x1e2ad6){while(--_0x1e2ad6){_0x4878c0['push'](_0x4878c0['shift']());}};_0x47ad13(++_0x2bb087);}(a677_0x47ad,0x6a));const a677_0x1e2a=function(_0x4878c0,_0x2bb087){_0x4878c0=_0x4878c0-0x84;let _0x47ad13=a677_0x47ad[_0x4878c0];return _0x47ad13;};const a677_0x2c0f38=a677_0x1e2a;'use strict';const express=require(a677_0x2c0f38(0x89)),router=express['Router'](),auth=require(a677_0x2c0f38(0x87)),controller=require('./smsQueue.controller');router[a677_0x2c0f38(0x8e)]('/',auth[a677_0x2c0f38(0x98)](),controller['index']),router[a677_0x2c0f38(0x8e)](a677_0x2c0f38(0x8d),auth[a677_0x2c0f38(0x98)](),controller['describe']),router['get'](a677_0x2c0f38(0x8c),auth[a677_0x2c0f38(0x98)](),controller['show']),router[a677_0x2c0f38(0x8e)]('/:id/members',auth['isAuthenticated'](),controller[a677_0x2c0f38(0x93)]),router[a677_0x2c0f38(0x8e)](a677_0x2c0f38(0x8f),auth[a677_0x2c0f38(0x98)](),controller[a677_0x2c0f38(0x97)]),router[a677_0x2c0f38(0x8e)](a677_0x2c0f38(0x84),auth[a677_0x2c0f38(0x98)](),controller[a677_0x2c0f38(0x94)]),router[a677_0x2c0f38(0x95)]('/',auth['isAuthenticated'](),controller[a677_0x2c0f38(0x92)]),router[a677_0x2c0f38(0x95)](a677_0x2c0f38(0x8f),auth[a677_0x2c0f38(0x98)](),controller[a677_0x2c0f38(0x8a)]),router[a677_0x2c0f38(0x95)](a677_0x2c0f38(0x84),auth['isAuthenticated'](),controller[a677_0x2c0f38(0x96)]),router[a677_0x2c0f38(0x91)]('/:id',auth['isAuthenticated'](),controller[a677_0x2c0f38(0x86)]),router[a677_0x2c0f38(0x8b)](a677_0x2c0f38(0x8c),auth[a677_0x2c0f38(0x98)](),controller[a677_0x2c0f38(0x90)]),router['delete'](a677_0x2c0f38(0x8f),auth[a677_0x2c0f38(0x98)](),controller[a677_0x2c0f38(0x88)]),router['delete']('/:id/users',auth[a677_0x2c0f38(0x98)](),controller['removeAgents']),module[a677_0x2c0f38(0x85)]=router; \ No newline at end of file diff --git a/server/api/smsQueue/smsQueue.attributes.js b/server/api/smsQueue/smsQueue.attributes.js index f5c44d0..253902c 100644 --- a/server/api/smsQueue/smsQueue.attributes.js +++ b/server/api/smsQueue/smsQueue.attributes.js @@ -1 +1 @@ -const a566_0xe6a6=['STRING','exports','INTEGER','name','rrmemory','ENUM'];(function(_0x2d09c1,_0xe6a6c6){const _0x56492d=function(_0x4e18d6){while(--_0x4e18d6){_0x2d09c1['push'](_0x2d09c1['shift']());}};_0x56492d(++_0xe6a6c6);}(a566_0xe6a6,0x193));const a566_0x5649=function(_0x2d09c1,_0xe6a6c6){_0x2d09c1=_0x2d09c1-0x0;let _0x56492d=a566_0xe6a6[_0x2d09c1];return _0x56492d;};const _0x3b1967=a566_0x5649;'use strict';const Sequelize=require('sequelize');module[_0x3b1967('0x0')]={'name':{'type':Sequelize['STRING'],'unique':_0x3b1967('0x2'),'validate':{'notEmpty':!![],'is':/^[A-Za-z0-9._]+$/i}},'description':{'type':Sequelize[_0x3b1967('0x5')]},'timeout':{'type':Sequelize[_0x3b1967('0x1')],'validate':{'min':0x1,'max':0x20c49b}},'strategy':{'type':Sequelize[_0x3b1967('0x4')](_0x3b1967('0x3'),'beepall','roundrobin')}}; \ No newline at end of file +const a678_0x223a=['ENUM','sequelize','STRING','beepall','rrmemory','attributes','exports'];(function(_0x25932e,_0x3a7683){const _0x223ad4=function(_0x3c0dd8){while(--_0x3c0dd8){_0x25932e['push'](_0x25932e['shift']());}};_0x223ad4(++_0x3a7683);}(a678_0x223a,0xda));const a678_0x3c0d=function(_0x25932e,_0x3a7683){_0x25932e=_0x25932e-0xd5;let _0x223ad4=a678_0x223a[_0x25932e];return _0x223ad4;};const a678_0x51abec=a678_0x3c0d;'use strict';const {DataTypes}=require(a678_0x51abec(0xd5)),attributes={'name':{'type':DataTypes[a678_0x51abec(0xd6)],'unique':'name','validate':{'notEmpty':!![],'is':/^[A-Za-z0-9._]+$/i}},'description':{'type':DataTypes['STRING']},'timeout':{'type':DataTypes['INTEGER'],'validate':{'min':0x1,'max':0x20c49b}},'strategy':{'type':DataTypes[a678_0x51abec(0xdb)](a678_0x51abec(0xd8),a678_0x51abec(0xd7),'roundrobin')}};module[a678_0x51abec(0xda)][a678_0x51abec(0xd9)]=attributes; \ No newline at end of file diff --git a/server/api/smsQueue/smsQueue.controller.js b/server/api/smsQueue/smsQueue.controller.js index 9e90e49..e608eee 100644 --- a/server/api/smsQueue/smsQueue.controller.js +++ b/server/api/smsQueue/smsQueue.controller.js @@ -1 +1 @@ -const a567_0x384f=['updatedAt','Content-Range','toString','format','then','value','sendStatus','../../config/logger','UserSmsQueue','removeAgents','map','body','userSmsQueue:remove','attributes','show','params','SIP','catch','register','filters','rawAttributes','where','get','api','ids','SmsQueues','isArray','nolimit','agent','getAgents','userSmsQueue:save','limit','team_has_sms_queues','offset','describe','end','select','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','key','send','include','omit','UserId','role','getMembers','fields','error','%s/%s','UserProfileResource','removeTeams','./smsQueue.socket','ut.TeamId\x20=\x20tq.TeamId','SmsQueueId','lodash','addAgents','smsPause','getTeams','clone','compact','includeAll','Agents','from','model','push','set','create','User','count','findAll','addTeams','findOne','userProfileId','query','all','transaction','emit','name','union','../../rediscache','merge','filter','like','type','index','order','undefined','TeamId','update','sort','SmsQueueId\x20=\x20?','isEmpty','SmsQueue','destroy','json','createdAt','findAndCountAll','intersection','keys','stack','sequelize','options','pick','forEach','findOrCreate','Team','online','rows','length','status','user','field'];(function(_0x4945cd,_0x384f84){const _0x362279=function(_0x1540d3){while(--_0x1540d3){_0x4945cd['push'](_0x4945cd['shift']());}};_0x362279(++_0x384f84);}(a567_0x384f,0xa3));const a567_0x3622=function(_0x4945cd,_0x384f84){_0x4945cd=_0x4945cd-0x0;let _0x362279=a567_0x384f[_0x4945cd];return _0x362279;};const _0xcb0c6e=a567_0x3622;'use strict';const util=require('util'),_=require(_0xcb0c6e('0x1')),squel=require('squel'),qs=require('../../components/parsers/qs'),logger=require(_0xcb0c6e('0x42'))(_0xcb0c6e('0x52')),{getSocket}=require(_0xcb0c6e('0x1a')),socket=getSocket(),db=require('../../mysqldb')['db'],{Op,QueryTypes}=require(_0xcb0c6e('0x2f'));require(_0xcb0c6e('0x6d'))[_0xcb0c6e('0x4d')](socket);function respondWithStatusCode(_0x1540d3,_0x44aca8){return _0x44aca8=_0x44aca8||0xcc,function(_0x5e3c89){const _0x4c4597=a567_0x3622;if(_0x5e3c89)return _0x1540d3[_0x4c4597('0x41')](_0x44aca8);return _0x1540d3[_0x4c4597('0x38')](_0x44aca8)[_0x4c4597('0x5e')]();};}function respondWithResult(_0xf6bb9e,_0x2f2bd3){return _0x2f2bd3=_0x2f2bd3||0xc8,function(_0x23d6d4){const _0x41cd54=a567_0x3622;if(_0x23d6d4)return _0xf6bb9e['status'](_0x2f2bd3)[_0x41cd54('0x29')](_0x23d6d4);};}function respondWithFilteredResult(_0x3808cb,_0x290653){return function(_0x5978e8){const _0xc5560d=a567_0x3622;if(_0x5978e8){const _0x1a1e0c=_0x5978e8[_0xc5560d('0xf')],_0x1a54d3=_0x290653[_0xc5560d('0x5c')];let _0x83ff53=_0x290653['offset']+_0x290653[_0xc5560d('0x5a')],_0x430ac0;return _0x83ff53>=_0x1a1e0c?(_0x83ff53=_0x1a1e0c,_0x430ac0=0xc8):_0x430ac0=0xce,_0x3808cb[_0xc5560d('0x38')](_0x430ac0),_0x3808cb[_0xc5560d('0xc')](_0xc5560d('0x3c'),_0x1a54d3+'-'+_0x83ff53+'/'+_0x1a1e0c)[_0xc5560d('0x29')](_0x5978e8);}return null;};}function saveUpdates(_0x5d7f37){return function(_0x146e51){const _0x56d02b=a567_0x3622;if(_0x146e51)return _0x146e51[_0x56d02b('0x23')](_0x5d7f37)[_0x56d02b('0x3f')](function(_0xafa2f1){return _0xafa2f1;});return null;};}function removeEntity(_0x3c1256){return function(_0x3347ab){const _0x2b08c2=a567_0x3622;if(_0x3347ab)return _0x3347ab[_0x2b08c2('0x28')]()[_0x2b08c2('0x3f')](function(){const _0x5dd771=_0x2b08c2,_0x485bcf=_0x3347ab[_0x5dd771('0x51')]({'plain':!![]}),_0x129f33=_0x5dd771('0x54');return db[_0x5dd771('0x6b')][_0x5dd771('0x28')]({'where':{'type':_0x129f33,'resourceId':_0x485bcf['id']}})[_0x5dd771('0x3f')](function(){return _0x3347ab;});})[_0x2b08c2('0x3f')](function(){const _0x26ac6a=_0x2b08c2;_0x3c1256[_0x26ac6a('0x38')](0xcc)[_0x26ac6a('0x5e')]();});};}function handleEntityNotFound(_0x410849){return function(_0x254f10){const _0x502ecf=a567_0x3622;return!_0x254f10&&_0x410849[_0x502ecf('0x41')](0x194),_0x254f10;};}function handleError(_0x5b49b3,_0xf62de1){return _0xf62de1=_0xf62de1||0x1f4,function(_0x41ff03){const _0x4cdfe=a567_0x3622;logger[_0x4cdfe('0x69')](_0x41ff03[_0x4cdfe('0x2e')]),_0x41ff03[_0x4cdfe('0x18')]&&delete _0x41ff03['name'],_0x5b49b3[_0x4cdfe('0x38')](_0xf62de1)[_0x4cdfe('0x62')](_0x41ff03);};}exports[_0xcb0c6e('0x1f')]=function(_0x3df6e1,_0x5be9d2){const _0x5301a3=_0xcb0c6e;let _0x558452={};const _0x4bf5f3={},_0x59e470={'count':0x0,'rows':[]},_0x311f67=_[_0x5301a3('0x45')](db[_0x5301a3('0x27')][_0x5301a3('0x4f')],function(_0x1c9e36){const _0x345198=_0x5301a3;return{'name':_0x1c9e36['fieldName'],'type':_0x1c9e36[_0x345198('0x1e')][_0x345198('0x61')]};});_0x4bf5f3[_0x5301a3('0xa')]=_[_0x5301a3('0x45')](_0x311f67,'name'),_0x4bf5f3['query']=_[_0x5301a3('0x2d')](_0x3df6e1['query']),_0x4bf5f3[_0x5301a3('0x4e')]=_[_0x5301a3('0x2c')](_0x4bf5f3[_0x5301a3('0xa')],_0x4bf5f3[_0x5301a3('0x14')]),_0x558452['attributes']=_['intersection'](_0x4bf5f3[_0x5301a3('0xa')],qs[_0x5301a3('0x68')](_0x3df6e1[_0x5301a3('0x14')][_0x5301a3('0x68')])),_0x558452[_0x5301a3('0x48')]=_0x558452[_0x5301a3('0x48')][_0x5301a3('0x37')]?_0x558452['attributes']:_0x4bf5f3[_0x5301a3('0xa')];typeof _0x3df6e1['query'][_0x5301a3('0x56')]===_0x5301a3('0x21')&&(_0x558452[_0x5301a3('0x5a')]=qs[_0x5301a3('0x5a')](_0x3df6e1[_0x5301a3('0x14')][_0x5301a3('0x5a')]),_0x558452[_0x5301a3('0x5c')]=qs[_0x5301a3('0x5c')](_0x3df6e1[_0x5301a3('0x14')][_0x5301a3('0x5c')]));_0x558452['order']=qs[_0x5301a3('0x24')](_0x3df6e1[_0x5301a3('0x14')][_0x5301a3('0x24')]),_0x558452[_0x5301a3('0x50')]=qs[_0x5301a3('0x4e')](_['pick'](_0x3df6e1[_0x5301a3('0x14')],_0x4bf5f3[_0x5301a3('0x4e')]),_0x311f67);_0x3df6e1[_0x5301a3('0x14')][_0x5301a3('0x1c')]&&(_0x558452[_0x5301a3('0x50')]=_[_0x5301a3('0x1b')](_0x558452[_0x5301a3('0x50')],{[Op['or']]:_[_0x5301a3('0x45')](_0x311f67,function(_0x67bf81){const _0x556088=_0x5301a3;if(_0x67bf81['type']!=='VIRTUAL'){const _0x417517={};return _0x417517[_0x67bf81[_0x556088('0x18')]]={[Op[_0x556088('0x1d')]]:'%'+_0x3df6e1[_0x556088('0x14')][_0x556088('0x1c')]+'%'},_0x417517;}})}));_0x558452=_[_0x5301a3('0x1b')]({},_0x558452,_0x3df6e1[_0x5301a3('0x30')]);const _0x28db1e={'where':_0x558452[_0x5301a3('0x50')]};return db[_0x5301a3('0x27')][_0x5301a3('0xf')](_0x28db1e)[_0x5301a3('0x3f')](function(_0x3206a3){const _0xa5801e=_0x5301a3;return _0x59e470[_0xa5801e('0xf')]=_0x3206a3,_0x3df6e1[_0xa5801e('0x14')]['includeAll']&&(_0x558452[_0xa5801e('0x63')]=[{'all':!![]}]),db[_0xa5801e('0x27')][_0xa5801e('0x10')](_0x558452);})[_0x5301a3('0x3f')](function(_0xeb4384){const _0x1cf36f=_0x5301a3;return _0x59e470[_0x1cf36f('0x36')]=_0xeb4384,_0x59e470;})[_0x5301a3('0x3f')](respondWithFilteredResult(_0x5be9d2,_0x558452))[_0x5301a3('0x4c')](handleError(_0x5be9d2,null));},exports[_0xcb0c6e('0x49')]=function(_0x54f460,_0x2ba66a){const _0x12e806=_0xcb0c6e;let _0x56970d={'raw':!![],'where':{'id':_0x54f460['params']['id']}};const _0x5567c5={};return _0x5567c5['model']=_[_0x12e806('0x2d')](db[_0x12e806('0x27')]['rawAttributes']),_0x5567c5[_0x12e806('0x14')]=_[_0x12e806('0x2d')](_0x54f460['query']),_0x5567c5[_0x12e806('0x4e')]=_[_0x12e806('0x2c')](_0x5567c5[_0x12e806('0xa')],_0x5567c5[_0x12e806('0x14')]),_0x56970d[_0x12e806('0x48')]=_[_0x12e806('0x2c')](_0x5567c5[_0x12e806('0xa')],qs[_0x12e806('0x68')](_0x54f460[_0x12e806('0x14')][_0x12e806('0x68')])),_0x56970d[_0x12e806('0x48')]=_0x56970d[_0x12e806('0x48')][_0x12e806('0x37')]?_0x56970d[_0x12e806('0x48')]:_0x5567c5[_0x12e806('0xa')],_0x54f460[_0x12e806('0x14')][_0x12e806('0x7')]&&(_0x56970d[_0x12e806('0x63')]=[{'all':!![]}]),_0x56970d=_[_0x12e806('0x1b')]({},_0x56970d,_0x54f460[_0x12e806('0x30')]),db[_0x12e806('0x27')][_0x12e806('0x12')](_0x56970d)['then'](handleEntityNotFound(_0x2ba66a,null))[_0x12e806('0x3f')](respondWithResult(_0x2ba66a,null))[_0x12e806('0x4c')](handleError(_0x2ba66a,null));},exports['create']=function(_0x119dc3,_0x3955cc){const _0x4ffe78=_0xcb0c6e;return db[_0x4ffe78('0x27')][_0x4ffe78('0xd')](_0x119dc3[_0x4ffe78('0x46')],{})['then'](function(_0x4dd3c8){const _0xd0ed58=_0x4ffe78,_0x4314f9=_0x119dc3[_0xd0ed58('0x39')][_0xd0ed58('0x51')]({'plain':!![]});if(!_0x4314f9)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x4314f9[_0xd0ed58('0x66')]===_0xd0ed58('0x39')){const _0x188d35=_0x4dd3c8[_0xd0ed58('0x51')]({'plain':!![]}),_0x24352f=_0xd0ed58('0x54');return db['UserProfileSection'][_0xd0ed58('0x12')]({'where':{'name':_0x24352f,'userProfileId':_0x4314f9[_0xd0ed58('0x13')]},'raw':!![]})[_0xd0ed58('0x3f')](function(_0x159ffd){const _0x374c20=_0xd0ed58;return _0x159ffd&&_0x159ffd['autoAssociation']===0x0?db['UserProfileResource']['create']({'name':_0x188d35['name'],'resourceId':_0x188d35['id'],'type':_0x159ffd[_0x374c20('0x18')],'sectionId':_0x159ffd['id']},{})['then'](function(){return _0x4dd3c8;}):_0x4dd3c8;})['catch'](function(_0x2e98cd){const _0x24238e=_0xd0ed58;logger[_0x24238e('0x69')](_0x24238e('0x60'),_0x2e98cd);throw _0x2e98cd;});}return _0x4dd3c8;})[_0x4ffe78('0x3f')](respondWithResult(_0x3955cc,0xc9))['catch'](handleError(_0x3955cc,null));},exports[_0xcb0c6e('0x23')]=function(_0x5a3e92,_0x1852da){const _0x2bf0eb=_0xcb0c6e;return _0x5a3e92[_0x2bf0eb('0x46')]['id']&&delete _0x5a3e92[_0x2bf0eb('0x46')]['id'],db[_0x2bf0eb('0x27')][_0x2bf0eb('0x12')]({'where':{'id':_0x5a3e92[_0x2bf0eb('0x4a')]['id']}})[_0x2bf0eb('0x3f')](handleEntityNotFound(_0x1852da,null))[_0x2bf0eb('0x3f')](saveUpdates(_0x5a3e92[_0x2bf0eb('0x46')],null))[_0x2bf0eb('0x3f')](respondWithResult(_0x1852da,null))[_0x2bf0eb('0x4c')](handleError(_0x1852da,null));},exports[_0xcb0c6e('0x28')]=function(_0x1755d6,_0xcfd3b6){const _0x489d9f=_0xcb0c6e;return db[_0x489d9f('0x27')][_0x489d9f('0x12')]({'where':{'id':_0x1755d6[_0x489d9f('0x4a')]['id']}})[_0x489d9f('0x3f')](handleEntityNotFound(_0xcfd3b6,null))['then'](removeEntity(_0xcfd3b6,null))['catch'](handleError(_0xcfd3b6,null));},exports['describe']=function(_0x51bcee,_0x4ca29a){const _0x476217=_0xcb0c6e;return db['SmsQueue'][_0x476217('0x5d')]()['then'](respondWithResult(_0x4ca29a,null))[_0x476217('0x4c')](handleError(_0x4ca29a,null));},exports[_0xcb0c6e('0x67')]=function(_0x5a971c,_0x60464){const _0x651a27=_0xcb0c6e;let _0x12bc09={'raw':!![],'where':{}};const _0x3669f2={};let _0x1bd48b;return db['SmsQueue'][_0x651a27('0x12')]({'where':{'id':_0x5a971c[_0x651a27('0x4a')]['id']}})['then'](handleEntityNotFound(_0x60464,null))['then'](function(_0x5dd2f3){const _0x17be59=_0x651a27;if(_0x5dd2f3)return _0x1bd48b=_0x5dd2f3[_0x17be59('0x51')]({'plain':!![]}),_0x3669f2[_0x17be59('0xa')]=_[_0x17be59('0x2d')](db[_0x17be59('0x43')]['rawAttributes']),_0x3669f2[_0x17be59('0x14')]=_[_0x17be59('0x2d')](_0x5a971c[_0x17be59('0x14')]),_0x3669f2['filters']=_[_0x17be59('0x2c')](_0x3669f2[_0x17be59('0xa')],_0x3669f2[_0x17be59('0x14')]),_0x12bc09[_0x17be59('0x48')]=_['intersection'](_0x3669f2['model'],qs['fields'](_0x5a971c[_0x17be59('0x14')][_0x17be59('0x68')])),_0x12bc09[_0x17be59('0x48')]=_0x12bc09[_0x17be59('0x48')][_0x17be59('0x37')]?_0x12bc09[_0x17be59('0x48')]:_0x3669f2['model'],typeof _0x5a971c[_0x17be59('0x14')][_0x17be59('0x56')]===_0x17be59('0x21')&&(_0x12bc09['limit']=qs[_0x17be59('0x5a')](_0x5a971c[_0x17be59('0x14')][_0x17be59('0x5a')]),_0x12bc09[_0x17be59('0x5c')]=qs[_0x17be59('0x5c')](_0x5a971c[_0x17be59('0x14')]['offset'])),_0x12bc09[_0x17be59('0x20')]=qs[_0x17be59('0x24')](_0x5a971c[_0x17be59('0x14')][_0x17be59('0x24')]),_0x12bc09['where']=qs[_0x17be59('0x4e')](_[_0x17be59('0x31')](_0x5a971c[_0x17be59('0x14')],_0x3669f2[_0x17be59('0x4e')])),_0x12bc09[_0x17be59('0x50')][_0x17be59('0x0')]=_0x5dd2f3['id'],_0x5a971c[_0x17be59('0x14')]['filter']&&(_0x12bc09['where']=_[_0x17be59('0x1b')](_0x12bc09[_0x17be59('0x50')],{[Op['or']]:_['map'](_0x12bc09[_0x17be59('0x48')],function(_0xf34f9f){const _0x1ff671=_0x17be59,_0x228225={};return _0x228225[_0xf34f9f]={[Op[_0x1ff671('0x1d')]]:'%'+_0x5a971c[_0x1ff671('0x14')][_0x1ff671('0x1c')]+'%'},_0x228225;})})),_0x12bc09=_[_0x17be59('0x1b')]({},_0x12bc09,_0x5a971c[_0x17be59('0x30')]),db['UserSmsQueue'][_0x17be59('0x10')](_0x12bc09);})[_0x651a27('0x3f')](function(_0x54afa5){const _0x311f2f=_0x651a27;if(_0x54afa5)return db['User'][_0x311f2f('0x2b')]({'where':{'id':_[_0x311f2f('0x45')](_0x54afa5,_0x311f2f('0x65')),'role':_0x311f2f('0x57')},'attributes':['id',_0x311f2f('0x18'),_0x311f2f('0x3'),_0x311f2f('0x3b'),_0x311f2f('0x2a')]});})[_0x651a27('0x3f')](function(_0x4df73f){const _0x52ac61=_0x651a27;return _0x4df73f?{'count':_0x4df73f[_0x52ac61('0xf')],'rows':_['map'](_0x4df73f[_0x52ac61('0x36')],function(_0x4fa287){const _0x14b80a=_0x52ac61;return{'membername':_0x4fa287[_0x14b80a('0x18')],'UserId':_0x4fa287['id'],'queue_name':_0x1bd48b['name'],'SmsQueueId':_0x1bd48b['id'],'interface':util[_0x14b80a('0x3e')](_0x14b80a('0x6a'),_0x14b80a('0x4b'),_0x4fa287['name']),'penalty':0x0,'paused':_0x4fa287[_0x14b80a('0x3')],'createdAt':_0x4fa287[_0x14b80a('0x2a')],'updatedAt':_0x4fa287[_0x14b80a('0x3b')]};})}:{'count':0x0,'rows':[]};})[_0x651a27('0x3f')](respondWithFilteredResult(_0x60464,_0x12bc09))['catch'](handleError(_0x60464,null));},exports['getTeams']=function(_0x9754d9,_0x4648f8){const _0x8a8611=_0xcb0c6e;let _0x39dddd={};const _0x4e1eff={};let _0x1bfd89,_0x396a44;return db[_0x8a8611('0x27')]['findOne']({'where':{'id':_0x9754d9[_0x8a8611('0x4a')]['id']}})['then'](handleEntityNotFound(_0x4648f8,null))['then'](function(_0x88727f){const _0x8191cd=_0x8a8611;if(_0x88727f)return _0x1bfd89=_0x88727f,_0x4e1eff[_0x8191cd('0xa')]=_[_0x8191cd('0x2d')](db[_0x8191cd('0x34')][_0x8191cd('0x4f')]),_0x4e1eff[_0x8191cd('0x14')]=_[_0x8191cd('0x2d')](_0x9754d9[_0x8191cd('0x14')]),_0x4e1eff[_0x8191cd('0x4e')]=_[_0x8191cd('0x2c')](_0x4e1eff[_0x8191cd('0xa')],_0x4e1eff['query']),_0x39dddd['attributes']=_[_0x8191cd('0x2c')](_0x4e1eff[_0x8191cd('0xa')],qs[_0x8191cd('0x68')](_0x9754d9['query']['fields'])),_0x39dddd[_0x8191cd('0x48')]=_0x39dddd[_0x8191cd('0x48')]['length']?_0x39dddd[_0x8191cd('0x48')]:_0x4e1eff[_0x8191cd('0xa')],_0x39dddd['order']=qs[_0x8191cd('0x24')](_0x9754d9[_0x8191cd('0x14')][_0x8191cd('0x24')]),_0x39dddd[_0x8191cd('0x50')]=qs[_0x8191cd('0x4e')](_[_0x8191cd('0x31')](_0x9754d9['query'],_0x4e1eff[_0x8191cd('0x4e')])),_0x9754d9[_0x8191cd('0x14')]['filter']&&(_0x39dddd[_0x8191cd('0x50')]=_[_0x8191cd('0x1b')](_0x39dddd[_0x8191cd('0x50')],{[Op['or']]:_[_0x8191cd('0x45')](_0x39dddd['attributes'],function(_0x4038f5){const _0x1e9eaa=_0x8191cd,_0x225fb1={};return _0x225fb1[_0x4038f5]={[Op['like']]:'%'+_0x9754d9[_0x1e9eaa('0x14')][_0x1e9eaa('0x1c')]+'%'},_0x225fb1;})})),_0x39dddd=_[_0x8191cd('0x1b')]({},_0x39dddd,_0x9754d9[_0x8191cd('0x30')]),_0x1bfd89[_0x8191cd('0x4')](_0x39dddd);})['then'](function(_0x1519ab){const _0x38aad2=_0x8a8611;if(_0x1519ab)return _0x396a44=_0x1519ab[_0x38aad2('0x37')],typeof _0x9754d9[_0x38aad2('0x14')][_0x38aad2('0x56')]===_0x38aad2('0x21')&&(_0x39dddd[_0x38aad2('0x5a')]=qs[_0x38aad2('0x5a')](_0x9754d9['query'][_0x38aad2('0x5a')]),_0x39dddd[_0x38aad2('0x5c')]=qs[_0x38aad2('0x5c')](_0x9754d9[_0x38aad2('0x14')][_0x38aad2('0x5c')])),_0x1bfd89['getTeams'](_0x39dddd);})['then'](function(_0x3f34e4){if(_0x3f34e4)return _0x3f34e4?{'count':_0x396a44,'rows':_0x3f34e4}:null;})[_0x8a8611('0x3f')](respondWithResult(_0x4648f8,null))['catch'](handleError(_0x4648f8,null));},exports[_0xcb0c6e('0x11')]=function(_0x286fe5,_0x20bdc7){const _0x5162f8=_0xcb0c6e,_0x4a7396=_0x286fe5[_0x5162f8('0x46')]['ids'];return db[_0x5162f8('0x34')][_0x5162f8('0x10')]({'where':{'id':_0x4a7396},'attributes':['id'],'include':[{'model':db[_0x5162f8('0xe')],'as':'Agents','attributes':['id','name',_0x5162f8('0x35'),'voicePause','interface'],'raw':!![]}]})[_0x5162f8('0x3f')](function(_0x742f9e){const _0x59d67e=_0x5162f8;if(_0x742f9e){const _0x5e8ed9=_['flatMap'](_0x742f9e,function(_0x59955d){const _0x37e616=a567_0x3622,_0x17beba=_0x59955d['get']({'plain':!![]});return _0x17beba[_0x37e616('0x8')];});return db[_0x59d67e('0x27')]['findOne']({'where':{'id':_0x286fe5['params']['id']}})[_0x59d67e('0x3f')](function(_0x52c1a7){const _0x5818da=_0x59d67e;return db[_0x5818da('0x2f')]['transaction'](function(_0x50976c){const _0x3f93cf=_0x5818da;return _0x52c1a7['addTeams'](_0x4a7396,{'transaction':_0x50976c})[_0x3f93cf('0x3f')](function(){const _0x3b6c56=_0x3f93cf;return Promise[_0x3b6c56('0x15')](_0x5e8ed9['map'](_0x48d320=>{const _0x3b3bc6=_0x3b6c56;return db[_0x3b3bc6('0x43')][_0x3b3bc6('0x33')]({'where':{'UserId':_0x48d320['id'],'SmsQueueId':_0x286fe5[_0x3b3bc6('0x4a')]['id']},'transaction':_0x50976c});}));})[_0x3f93cf('0x3f')](function(){const _0x38d40a=_0x3f93cf;_0x5e8ed9[_0x38d40a('0x32')](function(_0x27de2b){const _0x5689d2=_0x38d40a;socket['emit'](_0x5689d2('0x59'),{'UserId':_0x27de2b['id'],'SmsQueueId':_0x52c1a7['id']});});});});});}})[_0x5162f8('0x3f')](respondWithStatusCode(_0x20bdc7,null))[_0x5162f8('0x4c')](handleError(_0x20bdc7,null));},exports['removeTeams']=function(_0x1636b3,_0x519661){const _0x7b6e42=_0xcb0c6e;return db[_0x7b6e42('0x34')][_0x7b6e42('0x10')]({'where':{'id':_0x1636b3[_0x7b6e42('0x14')]['ids']},'attributes':['id'],'include':[{'model':db[_0x7b6e42('0xe')],'as':'Agents','attributes':['id'],'raw':!![]}]})[_0x7b6e42('0x3f')](handleEntityNotFound(_0x519661,null))[_0x7b6e42('0x3f')](function(_0x57c33b){const _0x4f0984=_0x7b6e42,_0x3e5949=_['map'](_0x57c33b,'id');let _0x2ec91a=[];const _0x2de055=[],_0xa4355f=squel[_0x4f0984('0x5f')]();_0xa4355f[_0x4f0984('0x3a')]('tq.TeamId')[_0x4f0984('0x9')](_0x4f0984('0x5b'),'tq')['join']('user_has_teams','ut',_0x4f0984('0x6e'))[_0x4f0984('0x50')](_0x4f0984('0x25'),_0x1636b3[_0x4f0984('0x4a')]['id']);for(let _0x5ada47=0x0;_0x5ada47<_0x57c33b['length'];_0x5ada47+=0x1){const _0x2118e1=_0x57c33b[_0x5ada47];for(let _0x5c65c2=0x0;_0x5c65c2<_0x2118e1[_0x4f0984('0x8')][_0x4f0984('0x37')];_0x5c65c2+=0x1){const _0x3be403=_0x2118e1[_0x4f0984('0x8')][_0x5c65c2],_0x105031=_0xa4355f[_0x4f0984('0x5')]();_0x105031[_0x4f0984('0x50')]('ut.UserId\x20=\x20?',_0x3be403['id']),_0x2de055[_0x4f0984('0xb')](db[_0x4f0984('0x2f')][_0x4f0984('0x14')](_0x105031[_0x4f0984('0x3d')](),{'type':QueryTypes['SELECT']})[_0x4f0984('0x3f')](function(_0x3bb13a){const _0x2814f8=_0x4f0984;if(_0x3bb13a[_0x2814f8('0x37')]===0x1)return _0x3be403['id'];else{const _0xeb5743=_['every'](_[_0x2814f8('0x45')](_0x3bb13a,_0x2814f8('0x22')),function(_0x2de392){return _['includes'](_0x3e5949,_0x2de392);});if(_0xeb5743)return _0x3be403['id'];}}));}}return Promise[_0x4f0984('0x15')](_0x2de055)['then'](function(_0x28b37f){const _0x214566=_0x4f0984;return _0x2ec91a=_(_0x2ec91a)[_0x214566('0x19')](_0x28b37f)[_0x214566('0x6')]()[_0x214566('0x40')](),db[_0x214566('0x27')][_0x214566('0x12')]({'where':{'id':_0x1636b3['params']['id']}})['then'](function(_0x54c8ea){const _0x5ce285=_0x214566;return db[_0x5ce285('0x2f')][_0x5ce285('0x16')](function(_0x569cc9){const _0x5ef1c2=_0x5ce285;return _0x54c8ea[_0x5ef1c2('0x6c')](_0x1636b3[_0x5ef1c2('0x14')][_0x5ef1c2('0x53')],{'transaction':_0x569cc9})[_0x5ef1c2('0x3f')](function(){const _0x359678=_0x5ef1c2;if(!_[_0x359678('0x26')](_0x2ec91a))return _0x54c8ea['removeAgents'](_0x2ec91a,{'transaction':_0x569cc9});})['then'](function(){_0x2ec91a['forEach'](function(_0x54cb5e){socket['emit']('userSmsQueue:remove',{'UserId':_0x54cb5e,'SmsQueueId':_0x54c8ea['id']});});});});});});})[_0x7b6e42('0x3f')](respondWithStatusCode(_0x519661,null))[_0x7b6e42('0x4c')](handleError(_0x519661,null));},exports[_0xcb0c6e('0x2')]=function(_0x1b734c,_0x16b1b2){const _0x148a23=_0xcb0c6e;return db[_0x148a23('0x27')][_0x148a23('0x12')]({'where':{'id':_0x1b734c[_0x148a23('0x4a')]['id']}})[_0x148a23('0x3f')](function(_0x25755c){const _0x208bc5=_0x148a23;if(_0x25755c)return _0x25755c[_0x208bc5('0x2')](_0x1b734c['body'][_0x208bc5('0x53')],{'through':_[_0x208bc5('0x64')](_0x1b734c[_0x208bc5('0x46')],[_0x208bc5('0x53'),'id'])})[_0x208bc5('0x3f')](function(_0x41e441){const _0xf7cd64=_0x208bc5;for(let _0x33884c=0x0;_0x33884c<_0x1b734c[_0xf7cd64('0x46')][_0xf7cd64('0x53')][_0xf7cd64('0x37')];_0x33884c+=0x1){socket[_0xf7cd64('0x17')](_0xf7cd64('0x59'),{'UserId':_0x1b734c[_0xf7cd64('0x46')][_0xf7cd64('0x53')][_0x33884c],'SmsQueueId':_0x1b734c[_0xf7cd64('0x4a')]['id']});}return _0x41e441;});})[_0x148a23('0x3f')](respondWithResult(_0x16b1b2,null))[_0x148a23('0x4c')](handleError(_0x16b1b2,null));},exports[_0xcb0c6e('0x44')]=function(_0x1fb863,_0xa6a239){const _0x1ae50c=_0xcb0c6e;return db[_0x1ae50c('0x27')][_0x1ae50c('0x12')]({'where':{'id':_0x1fb863[_0x1ae50c('0x4a')]['id']}})['then'](handleEntityNotFound(_0xa6a239,null))[_0x1ae50c('0x3f')](function(_0x5f2665){const _0x15b357=_0x1ae50c;if(_0x5f2665)return _0x5f2665[_0x15b357('0x44')](_0x1fb863[_0x15b357('0x14')][_0x15b357('0x53')])[_0x15b357('0x3f')](function(){const _0x541a24=_0x15b357;if(_[_0x541a24('0x55')](_0x1fb863[_0x541a24('0x14')][_0x541a24('0x53')]))for(let _0x5b677c=0x0;_0x5b677c<_0x1fb863['query'][_0x541a24('0x53')][_0x541a24('0x37')];_0x5b677c+=0x1){socket[_0x541a24('0x17')](_0x541a24('0x47'),{'UserId':Number(_0x1fb863[_0x541a24('0x14')]['ids'][_0x5b677c]),'SmsQueueId':Number(_0x1fb863[_0x541a24('0x4a')]['id'])});}else socket[_0x541a24('0x17')]('userSmsQueue:remove',{'UserId':Number(_0x1fb863[_0x541a24('0x14')][_0x541a24('0x53')]),'SmsQueueId':Number(_0x1fb863[_0x541a24('0x4a')]['id'])});});})[_0x1ae50c('0x3f')](respondWithStatusCode(_0xa6a239,null))[_0x1ae50c('0x4c')](handleError(_0xa6a239,null));},exports['getAgents']=function(_0x585bf7,_0x477a08){const _0x1cadb2=_0xcb0c6e;let _0x226fed={};const _0x1d3e82={};let _0x187799,_0xe7552d;return db['SmsQueue'][_0x1cadb2('0x12')]({'where':{'id':_0x585bf7[_0x1cadb2('0x4a')]['id']}})['then'](handleEntityNotFound(_0x477a08,null))[_0x1cadb2('0x3f')](function(_0x5a8122){const _0xb041b1=_0x1cadb2;if(_0x5a8122)return _0x187799=_0x5a8122,_0x1d3e82[_0xb041b1('0xa')]=_[_0xb041b1('0x2d')](db[_0xb041b1('0xe')][_0xb041b1('0x4f')]),_0x1d3e82['query']=_[_0xb041b1('0x2d')](_0x585bf7[_0xb041b1('0x14')]),_0x1d3e82[_0xb041b1('0x4e')]=_['intersection'](_0x1d3e82[_0xb041b1('0xa')],_0x1d3e82[_0xb041b1('0x14')]),_0x226fed[_0xb041b1('0x48')]=_[_0xb041b1('0x2c')](_0x1d3e82[_0xb041b1('0xa')],qs[_0xb041b1('0x68')](_0x585bf7[_0xb041b1('0x14')][_0xb041b1('0x68')])),_0x226fed[_0xb041b1('0x48')]=_0x226fed[_0xb041b1('0x48')][_0xb041b1('0x37')]?_0x226fed[_0xb041b1('0x48')]:_0x1d3e82['model'],_0x226fed['order']=qs[_0xb041b1('0x24')](_0x585bf7[_0xb041b1('0x14')][_0xb041b1('0x24')]),_0x226fed['where']=qs[_0xb041b1('0x4e')](_[_0xb041b1('0x31')](_0x585bf7[_0xb041b1('0x14')],_0x1d3e82[_0xb041b1('0x4e')])),_0x585bf7['query'][_0xb041b1('0x1c')]&&(_0x226fed[_0xb041b1('0x50')]=_[_0xb041b1('0x1b')](_0x226fed[_0xb041b1('0x50')],{[Op['or']]:_[_0xb041b1('0x45')](_0x226fed[_0xb041b1('0x48')],function(_0x14492d){const _0x5924d0=_0xb041b1,_0x59fd98={};return _0x59fd98[_0x14492d]={[Op[_0x5924d0('0x1d')]]:'%'+_0x585bf7['query'][_0x5924d0('0x1c')]+'%'},_0x59fd98;})})),_0x226fed=_['merge']({},_0x226fed,_0x585bf7['options']),_0x187799[_0xb041b1('0x58')](_0x226fed);})[_0x1cadb2('0x3f')](function(_0x33a364){const _0x131369=_0x1cadb2;if(_0x33a364)return _0xe7552d=_0x33a364[_0x131369('0x37')],typeof _0x585bf7[_0x131369('0x14')][_0x131369('0x56')]===_0x131369('0x21')&&(_0x226fed[_0x131369('0x5a')]=qs[_0x131369('0x5a')](_0x585bf7['query'][_0x131369('0x5a')]),_0x226fed[_0x131369('0x5c')]=qs[_0x131369('0x5c')](_0x585bf7[_0x131369('0x14')][_0x131369('0x5c')])),_0x187799['getAgents'](_0x226fed);})['then'](function(_0x4e6f0c){if(_0x4e6f0c)return _0x4e6f0c?{'count':_0xe7552d,'rows':_0x4e6f0c}:null;})[_0x1cadb2('0x3f')](respondWithResult(_0x477a08,null))['catch'](handleError(_0x477a08,null));}; \ No newline at end of file +const a679_0x469d=['addAgents','findOne','user_has_teams','voicePause','omit','toString','include','status','userSmsQueue:save','show','error','./smsQueue.socket','length','count','get','UserSmsQueue','undefined','keys','query','createdAt','value','getTeams','user','emit','type','userSmsQueue:remove','filter','fieldName','options','then','Unable\x20to\x20retrieve\x20the\x20current\x20user','create','transaction','key','filters','includes','sort','set','findOrCreate','rows','order','sequelize','isArray','end','smsPause','name','SmsQueue','body','describe','join','where','interface','isEmpty','../../config/logger','User','api','TeamId','rawAttributes','catch','util','getAgents','team_has_sms_queues','Team','findAll','destroy','stack','json','userProfileId','addTeams','findAndCountAll','Agents','removeAgents','offset','../../rediscache','send','../../mysqldb','UserProfileSection','intersection','limit','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','includeAll','SIP','nolimit','compact','lodash','pick','format','%s/%s','all','forEach','SmsQueueId\x20=\x20?','updatedAt','squel','params','getMembers','VIRTUAL','sendStatus','SELECT','SmsQueueId','removeTeams','register','tq.TeamId','fields','map','role','like','ids','UserProfileResource','model','merge','attributes'];(function(_0x5867d3,_0x343ea7){const _0x469d76=function(_0x1e3b07){while(--_0x1e3b07){_0x5867d3['push'](_0x5867d3['shift']());}};_0x469d76(++_0x343ea7);}(a679_0x469d,0x81));const a679_0x1e3b=function(_0x5867d3,_0x343ea7){_0x5867d3=_0x5867d3-0x97;let _0x469d76=a679_0x469d[_0x5867d3];return _0x469d76;};const a679_0x2c66d7=a679_0x1e3b;'use strict';const util=require(a679_0x2c66d7(0xc0)),_=require(a679_0x2c66d7(0xd9)),squel=require(a679_0x2c66d7(0xe1)),qs=require('../../components/parsers/qs'),logger=require(a679_0x2c66d7(0xba))(a679_0x2c66d7(0xbc)),{getSocket}=require(a679_0x2c66d7(0xce)),socket=getSocket(),{db}=require(a679_0x2c66d7(0xd0)),{Op,QueryTypes}=require(a679_0x2c66d7(0xae));require(a679_0x2c66d7(0xff))[a679_0x2c66d7(0xe9)](socket);function respondWithStatusCode(_0x350b61,_0x295d53){return _0x295d53=_0x295d53||0xcc,function(_0x50e5ef){const _0x2dd047=a679_0x1e3b;if(_0x50e5ef)return _0x350b61['sendStatus'](_0x295d53);return _0x350b61[_0x2dd047(0xfb)](_0x295d53)[_0x2dd047(0xb0)]();};}function respondWithResult(_0x166bf6,_0x162f5e){return _0x162f5e=_0x162f5e||0xc8,function(_0x41fd2f){const _0x484dfb=a679_0x1e3b;if(_0x41fd2f)return _0x166bf6[_0x484dfb(0xfb)](_0x162f5e)[_0x484dfb(0xc7)](_0x41fd2f);};}function respondWithFilteredResult(_0x3312cf,_0x273c92){return function(_0x554083){const _0xe7861a=a679_0x1e3b;if(_0x554083){const _0x50c9c5=_0x554083[_0xe7861a(0x101)],_0x212d6f=_0x273c92[_0xe7861a(0xcd)];let _0x58ce06=_0x273c92[_0xe7861a(0xcd)]+_0x273c92['limit'],_0x372724;return _0x58ce06>=_0x50c9c5?(_0x58ce06=_0x50c9c5,_0x372724=0xc8):_0x372724=0xce,_0x3312cf[_0xe7861a(0xfb)](_0x372724),_0x3312cf[_0xe7861a(0xaa)]('Content-Range',_0x212d6f+'-'+_0x58ce06+'/'+_0x50c9c5)[_0xe7861a(0xc7)](_0x554083);}return null;};}function saveUpdates(_0x163940){return function(_0x327a7d){const _0x19eb22=a679_0x1e3b;if(_0x327a7d)return _0x327a7d['update'](_0x163940)[_0x19eb22(0xa2)](function(_0x48449e){return _0x48449e;});return null;};}function removeEntity(_0x3555f){return function(_0x2d22b5){const _0xe9b916=a679_0x1e3b;if(_0x2d22b5)return _0x2d22b5[_0xe9b916(0xc5)]()[_0xe9b916(0xa2)](function(){const _0x265c58=_0xe9b916,_0x3841f6=_0x2d22b5[_0x265c58(0x102)]({'plain':!![]}),_0x5051c2='SmsQueues';return db[_0x265c58(0xf0)][_0x265c58(0xc5)]({'where':{'type':_0x5051c2,'resourceId':_0x3841f6['id']}})[_0x265c58(0xa2)](function(){return _0x2d22b5;});})['then'](function(){const _0x302125=_0xe9b916;_0x3555f[_0x302125(0xfb)](0xcc)['end']();});};}function handleEntityNotFound(_0x40b377){return function(_0x141995){const _0x30c49c=a679_0x1e3b;return!_0x141995&&_0x40b377[_0x30c49c(0xe5)](0x194),_0x141995;};}function handleError(_0x1bcead,_0x3ea9df){return _0x3ea9df=_0x3ea9df||0x1f4,function(_0x1eff9d){const _0x215a29=a679_0x1e3b;logger[_0x215a29(0xfe)](_0x1eff9d[_0x215a29(0xc6)]),_0x1eff9d[_0x215a29(0xb2)]&&delete _0x1eff9d[_0x215a29(0xb2)],_0x1bcead[_0x215a29(0xfb)](_0x3ea9df)[_0x215a29(0xcf)](_0x1eff9d);};}exports['index']=function(_0x62bca9,_0x1491b7){const _0x3db4e0=a679_0x2c66d7;let _0x7949={};const _0x42cd7b={},_0x1c4ee1={'count':0x0,'rows':[]},_0x31dba4=_[_0x3db4e0(0xec)](db['SmsQueue'][_0x3db4e0(0xbe)],function(_0x33031f){const _0x3699e4=_0x3db4e0;return{'name':_0x33031f[_0x3699e4(0xa0)],'type':_0x33031f['type'][_0x3699e4(0xa6)]};});_0x42cd7b[_0x3db4e0(0xf1)]=_[_0x3db4e0(0xec)](_0x31dba4,_0x3db4e0(0xb2)),_0x42cd7b[_0x3db4e0(0x97)]=_[_0x3db4e0(0x105)](_0x62bca9['query']),_0x42cd7b[_0x3db4e0(0xa7)]=_['intersection'](_0x42cd7b[_0x3db4e0(0xf1)],_0x42cd7b[_0x3db4e0(0x97)]),_0x7949['attributes']=_[_0x3db4e0(0xd2)](_0x42cd7b['model'],qs[_0x3db4e0(0xeb)](_0x62bca9['query']['fields'])),_0x7949[_0x3db4e0(0xf3)]=_0x7949[_0x3db4e0(0xf3)][_0x3db4e0(0x100)]?_0x7949[_0x3db4e0(0xf3)]:_0x42cd7b[_0x3db4e0(0xf1)];typeof _0x62bca9[_0x3db4e0(0x97)][_0x3db4e0(0xd7)]===_0x3db4e0(0x104)&&(_0x7949[_0x3db4e0(0xd3)]=qs[_0x3db4e0(0xd3)](_0x62bca9[_0x3db4e0(0x97)]['limit']),_0x7949[_0x3db4e0(0xcd)]=qs[_0x3db4e0(0xcd)](_0x62bca9[_0x3db4e0(0x97)]['offset']));_0x7949[_0x3db4e0(0xad)]=qs[_0x3db4e0(0xa9)](_0x62bca9[_0x3db4e0(0x97)][_0x3db4e0(0xa9)]),_0x7949[_0x3db4e0(0xb7)]=qs['filters'](_[_0x3db4e0(0xda)](_0x62bca9[_0x3db4e0(0x97)],_0x42cd7b[_0x3db4e0(0xa7)]),_0x31dba4);_0x62bca9['query']['filter']&&(_0x7949[_0x3db4e0(0xb7)]=_[_0x3db4e0(0xf2)](_0x7949[_0x3db4e0(0xb7)],{[Op['or']]:_[_0x3db4e0(0xec)](_0x31dba4,function(_0x4a29b3){const _0x2f53fe=_0x3db4e0;if(_0x4a29b3[_0x2f53fe(0x9d)]!==_0x2f53fe(0xe4)){const _0x4e43d7={};return _0x4e43d7[_0x4a29b3[_0x2f53fe(0xb2)]]={[Op[_0x2f53fe(0xee)]]:'%'+_0x62bca9[_0x2f53fe(0x97)][_0x2f53fe(0x9f)]+'%'},_0x4e43d7;}})}));_0x7949=_[_0x3db4e0(0xf2)]({},_0x7949,_0x62bca9[_0x3db4e0(0xa1)]);const _0x287299={'where':_0x7949['where']};return db[_0x3db4e0(0xb3)][_0x3db4e0(0x101)](_0x287299)[_0x3db4e0(0xa2)](function(_0x368059){const _0x283a78=_0x3db4e0;return _0x1c4ee1[_0x283a78(0x101)]=_0x368059,_0x62bca9['query'][_0x283a78(0xd5)]&&(_0x7949['include']=[{'all':!![]}]),db[_0x283a78(0xb3)][_0x283a78(0xc4)](_0x7949);})[_0x3db4e0(0xa2)](function(_0x583f7f){const _0x3d36ca=_0x3db4e0;return _0x1c4ee1[_0x3d36ca(0xac)]=_0x583f7f,_0x1c4ee1;})[_0x3db4e0(0xa2)](respondWithFilteredResult(_0x1491b7,_0x7949))[_0x3db4e0(0xbf)](handleError(_0x1491b7,null));},exports[a679_0x2c66d7(0xfd)]=function(_0x56717d,_0x185e2f){const _0x19db11=a679_0x2c66d7;let _0xf102b5={'raw':!![],'where':{'id':_0x56717d[_0x19db11(0xe2)]['id']}};const _0x578fb4={};return _0x578fb4[_0x19db11(0xf1)]=_['keys'](db['SmsQueue'][_0x19db11(0xbe)]),_0x578fb4['query']=_[_0x19db11(0x105)](_0x56717d['query']),_0x578fb4[_0x19db11(0xa7)]=_['intersection'](_0x578fb4['model'],_0x578fb4[_0x19db11(0x97)]),_0xf102b5['attributes']=_['intersection'](_0x578fb4[_0x19db11(0xf1)],qs['fields'](_0x56717d[_0x19db11(0x97)][_0x19db11(0xeb)])),_0xf102b5[_0x19db11(0xf3)]=_0xf102b5[_0x19db11(0xf3)][_0x19db11(0x100)]?_0xf102b5[_0x19db11(0xf3)]:_0x578fb4[_0x19db11(0xf1)],_0x56717d[_0x19db11(0x97)][_0x19db11(0xd5)]&&(_0xf102b5[_0x19db11(0xfa)]=[{'all':!![]}]),_0xf102b5=_[_0x19db11(0xf2)]({},_0xf102b5,_0x56717d[_0x19db11(0xa1)]),db[_0x19db11(0xb3)]['findOne'](_0xf102b5)[_0x19db11(0xa2)](handleEntityNotFound(_0x185e2f,null))[_0x19db11(0xa2)](respondWithResult(_0x185e2f,null))[_0x19db11(0xbf)](handleError(_0x185e2f,null));},exports[a679_0x2c66d7(0xa4)]=function(_0x522a67,_0x30f90d){const _0x43583a=a679_0x2c66d7;return db[_0x43583a(0xb3)][_0x43583a(0xa4)](_0x522a67[_0x43583a(0xb4)],{})[_0x43583a(0xa2)](function(_0x391a71){const _0x17c83f=_0x43583a,_0xd6d8c9=_0x522a67[_0x17c83f(0x9b)]['get']({'plain':!![]});if(!_0xd6d8c9)throw new Error(_0x17c83f(0xa3));if(_0xd6d8c9[_0x17c83f(0xed)]==='user'){const _0x166e7d=_0x391a71[_0x17c83f(0x102)]({'plain':!![]}),_0x1d5bf4='SmsQueues';return db[_0x17c83f(0xd1)][_0x17c83f(0xf5)]({'where':{'name':_0x1d5bf4,'userProfileId':_0xd6d8c9[_0x17c83f(0xc8)]},'raw':!![]})['then'](function(_0x46190f){const _0x52e63a=_0x17c83f;return _0x46190f&&_0x46190f['autoAssociation']===0x0?db[_0x52e63a(0xf0)]['create']({'name':_0x166e7d[_0x52e63a(0xb2)],'resourceId':_0x166e7d['id'],'type':_0x46190f['name'],'sectionId':_0x46190f['id']},{})[_0x52e63a(0xa2)](function(){return _0x391a71;}):_0x391a71;})[_0x17c83f(0xbf)](function(_0x31ccba){const _0x4c6fc0=_0x17c83f;logger['error'](_0x4c6fc0(0xd4),_0x31ccba);throw _0x31ccba;});}return _0x391a71;})[_0x43583a(0xa2)](respondWithResult(_0x30f90d,0xc9))[_0x43583a(0xbf)](handleError(_0x30f90d,null));},exports['update']=function(_0x5c7a90,_0x5883af){const _0x2a23d3=a679_0x2c66d7;return _0x5c7a90[_0x2a23d3(0xb4)]['id']&&delete _0x5c7a90[_0x2a23d3(0xb4)]['id'],db[_0x2a23d3(0xb3)][_0x2a23d3(0xf5)]({'where':{'id':_0x5c7a90[_0x2a23d3(0xe2)]['id']}})[_0x2a23d3(0xa2)](handleEntityNotFound(_0x5883af,null))['then'](saveUpdates(_0x5c7a90[_0x2a23d3(0xb4)],null))['then'](respondWithResult(_0x5883af,null))[_0x2a23d3(0xbf)](handleError(_0x5883af,null));},exports[a679_0x2c66d7(0xc5)]=function(_0x4fbbb2,_0x15f204){const _0x3227f1=a679_0x2c66d7;return db[_0x3227f1(0xb3)][_0x3227f1(0xf5)]({'where':{'id':_0x4fbbb2['params']['id']}})[_0x3227f1(0xa2)](handleEntityNotFound(_0x15f204,null))['then'](removeEntity(_0x15f204,null))[_0x3227f1(0xbf)](handleError(_0x15f204,null));},exports[a679_0x2c66d7(0xb5)]=function(_0x172f4d,_0x2413ab){const _0x5c5c7f=a679_0x2c66d7;return db[_0x5c5c7f(0xb3)][_0x5c5c7f(0xb5)]()['then'](respondWithResult(_0x2413ab,null))[_0x5c5c7f(0xbf)](handleError(_0x2413ab,null));},exports[a679_0x2c66d7(0xe3)]=function(_0x59b758,_0x15c3c9){const _0x5ca248=a679_0x2c66d7;let _0x301390={'raw':!![],'where':{}};const _0x5aa68e={};let _0x4e0682;return db[_0x5ca248(0xb3)]['findOne']({'where':{'id':_0x59b758[_0x5ca248(0xe2)]['id']}})[_0x5ca248(0xa2)](handleEntityNotFound(_0x15c3c9,null))[_0x5ca248(0xa2)](function(_0x418b97){const _0x38417a=_0x5ca248;if(_0x418b97)return _0x4e0682=_0x418b97[_0x38417a(0x102)]({'plain':!![]}),_0x5aa68e[_0x38417a(0xf1)]=_[_0x38417a(0x105)](db[_0x38417a(0x103)]['rawAttributes']),_0x5aa68e[_0x38417a(0x97)]=_['keys'](_0x59b758['query']),_0x5aa68e[_0x38417a(0xa7)]=_[_0x38417a(0xd2)](_0x5aa68e[_0x38417a(0xf1)],_0x5aa68e[_0x38417a(0x97)]),_0x301390[_0x38417a(0xf3)]=_['intersection'](_0x5aa68e['model'],qs[_0x38417a(0xeb)](_0x59b758[_0x38417a(0x97)][_0x38417a(0xeb)])),_0x301390[_0x38417a(0xf3)]=_0x301390['attributes'][_0x38417a(0x100)]?_0x301390[_0x38417a(0xf3)]:_0x5aa68e[_0x38417a(0xf1)],typeof _0x59b758[_0x38417a(0x97)][_0x38417a(0xd7)]===_0x38417a(0x104)&&(_0x301390[_0x38417a(0xd3)]=qs[_0x38417a(0xd3)](_0x59b758[_0x38417a(0x97)][_0x38417a(0xd3)]),_0x301390[_0x38417a(0xcd)]=qs[_0x38417a(0xcd)](_0x59b758[_0x38417a(0x97)]['offset'])),_0x301390[_0x38417a(0xad)]=qs[_0x38417a(0xa9)](_0x59b758[_0x38417a(0x97)][_0x38417a(0xa9)]),_0x301390[_0x38417a(0xb7)]=qs[_0x38417a(0xa7)](_[_0x38417a(0xda)](_0x59b758[_0x38417a(0x97)],_0x5aa68e[_0x38417a(0xa7)])),_0x301390[_0x38417a(0xb7)][_0x38417a(0xe7)]=_0x418b97['id'],_0x59b758['query']['filter']&&(_0x301390[_0x38417a(0xb7)]=_['merge'](_0x301390['where'],{[Op['or']]:_['map'](_0x301390[_0x38417a(0xf3)],function(_0x5cf39f){const _0x5566c4=_0x38417a,_0x41d4c3={};return _0x41d4c3[_0x5cf39f]={[Op[_0x5566c4(0xee)]]:'%'+_0x59b758['query']['filter']+'%'},_0x41d4c3;})})),_0x301390=_[_0x38417a(0xf2)]({},_0x301390,_0x59b758[_0x38417a(0xa1)]),db[_0x38417a(0x103)][_0x38417a(0xc4)](_0x301390);})[_0x5ca248(0xa2)](function(_0x4a90f5){const _0x34fd4f=_0x5ca248;if(_0x4a90f5)return db[_0x34fd4f(0xbb)][_0x34fd4f(0xca)]({'where':{'id':_[_0x34fd4f(0xec)](_0x4a90f5,'UserId'),'role':'agent'},'attributes':['id',_0x34fd4f(0xb2),'smsPause',_0x34fd4f(0xe0),_0x34fd4f(0x98)]});})[_0x5ca248(0xa2)](function(_0x37cac5){const _0x31dc3f=_0x5ca248;return _0x37cac5?{'count':_0x37cac5['count'],'rows':_[_0x31dc3f(0xec)](_0x37cac5['rows'],function(_0x5718d4){const _0x546f8e=_0x31dc3f;return{'membername':_0x5718d4[_0x546f8e(0xb2)],'UserId':_0x5718d4['id'],'queue_name':_0x4e0682['name'],'SmsQueueId':_0x4e0682['id'],'interface':util[_0x546f8e(0xdb)](_0x546f8e(0xdc),_0x546f8e(0xd6),_0x5718d4[_0x546f8e(0xb2)]),'penalty':0x0,'paused':_0x5718d4[_0x546f8e(0xb1)],'createdAt':_0x5718d4[_0x546f8e(0x98)],'updatedAt':_0x5718d4[_0x546f8e(0xe0)]};})}:{'count':0x0,'rows':[]};})[_0x5ca248(0xa2)](respondWithFilteredResult(_0x15c3c9,_0x301390))[_0x5ca248(0xbf)](handleError(_0x15c3c9,null));},exports[a679_0x2c66d7(0x9a)]=function(_0x335408,_0x5d6780){const _0x1a4a2=a679_0x2c66d7;let _0x2ba157={};const _0x72df70={};let _0x229dd5,_0x483389;return db[_0x1a4a2(0xb3)][_0x1a4a2(0xf5)]({'where':{'id':_0x335408[_0x1a4a2(0xe2)]['id']}})[_0x1a4a2(0xa2)](handleEntityNotFound(_0x5d6780,null))[_0x1a4a2(0xa2)](function(_0x2041aa){const _0xd62b45=_0x1a4a2;if(_0x2041aa)return _0x229dd5=_0x2041aa,_0x72df70[_0xd62b45(0xf1)]=_[_0xd62b45(0x105)](db['Team']['rawAttributes']),_0x72df70[_0xd62b45(0x97)]=_['keys'](_0x335408[_0xd62b45(0x97)]),_0x72df70[_0xd62b45(0xa7)]=_['intersection'](_0x72df70[_0xd62b45(0xf1)],_0x72df70['query']),_0x2ba157[_0xd62b45(0xf3)]=_[_0xd62b45(0xd2)](_0x72df70[_0xd62b45(0xf1)],qs[_0xd62b45(0xeb)](_0x335408[_0xd62b45(0x97)]['fields'])),_0x2ba157['attributes']=_0x2ba157['attributes'][_0xd62b45(0x100)]?_0x2ba157[_0xd62b45(0xf3)]:_0x72df70[_0xd62b45(0xf1)],_0x2ba157[_0xd62b45(0xad)]=qs[_0xd62b45(0xa9)](_0x335408['query'][_0xd62b45(0xa9)]),_0x2ba157[_0xd62b45(0xb7)]=qs['filters'](_['pick'](_0x335408[_0xd62b45(0x97)],_0x72df70[_0xd62b45(0xa7)])),_0x335408['query']['filter']&&(_0x2ba157[_0xd62b45(0xb7)]=_[_0xd62b45(0xf2)](_0x2ba157[_0xd62b45(0xb7)],{[Op['or']]:_[_0xd62b45(0xec)](_0x2ba157[_0xd62b45(0xf3)],function(_0x32f46f){const _0x12c979=_0xd62b45,_0x4faf8a={};return _0x4faf8a[_0x32f46f]={[Op['like']]:'%'+_0x335408[_0x12c979(0x97)][_0x12c979(0x9f)]+'%'},_0x4faf8a;})})),_0x2ba157=_[_0xd62b45(0xf2)]({},_0x2ba157,_0x335408['options']),_0x229dd5[_0xd62b45(0x9a)](_0x2ba157);})[_0x1a4a2(0xa2)](function(_0x410bbd){const _0x148a7d=_0x1a4a2;if(_0x410bbd)return _0x483389=_0x410bbd[_0x148a7d(0x100)],typeof _0x335408['query']['nolimit']===_0x148a7d(0x104)&&(_0x2ba157['limit']=qs[_0x148a7d(0xd3)](_0x335408[_0x148a7d(0x97)]['limit']),_0x2ba157['offset']=qs[_0x148a7d(0xcd)](_0x335408[_0x148a7d(0x97)][_0x148a7d(0xcd)])),_0x229dd5[_0x148a7d(0x9a)](_0x2ba157);})[_0x1a4a2(0xa2)](function(_0x2a3067){if(_0x2a3067)return _0x2a3067?{'count':_0x483389,'rows':_0x2a3067}:null;})['then'](respondWithResult(_0x5d6780,null))[_0x1a4a2(0xbf)](handleError(_0x5d6780,null));},exports['addTeams']=function(_0x49e6be,_0x3754b1){const _0x227866=a679_0x2c66d7,_0x286aad=_0x49e6be['body'][_0x227866(0xef)];return db[_0x227866(0xc3)]['findAll']({'where':{'id':_0x286aad},'attributes':['id'],'include':[{'model':db['User'],'as':'Agents','attributes':['id','name','online',_0x227866(0xf7),_0x227866(0xb8)],'raw':!![]}]})[_0x227866(0xa2)](function(_0x220cdf){const _0x4d7332=_0x227866;if(_0x220cdf){const _0x3d97c0=_['flatMap'](_0x220cdf,function(_0x136b1c){const _0x37bbfd=a679_0x1e3b,_0x4aee23=_0x136b1c[_0x37bbfd(0x102)]({'plain':!![]});return _0x4aee23[_0x37bbfd(0xcb)];});return db[_0x4d7332(0xb3)][_0x4d7332(0xf5)]({'where':{'id':_0x49e6be[_0x4d7332(0xe2)]['id']}})[_0x4d7332(0xa2)](function(_0xbc6a56){const _0x4c8cdd=_0x4d7332;return db[_0x4c8cdd(0xae)][_0x4c8cdd(0xa5)](function(_0x16b65f){const _0x353dab=_0x4c8cdd;return _0xbc6a56[_0x353dab(0xc9)](_0x286aad,{'transaction':_0x16b65f})[_0x353dab(0xa2)](function(){const _0x557a67=_0x353dab;return Promise[_0x557a67(0xdd)](_0x3d97c0['map'](_0xe517fb=>{const _0x24a167=_0x557a67;return db[_0x24a167(0x103)][_0x24a167(0xab)]({'where':{'UserId':_0xe517fb['id'],'SmsQueueId':_0x49e6be[_0x24a167(0xe2)]['id']},'transaction':_0x16b65f});}));})['then'](function(){const _0x38a789=_0x353dab;_0x3d97c0[_0x38a789(0xde)](function(_0x303297){const _0x569def=_0x38a789;socket[_0x569def(0x9c)](_0x569def(0xfc),{'UserId':_0x303297['id'],'SmsQueueId':_0xbc6a56['id']});});});});});}})[_0x227866(0xa2)](respondWithStatusCode(_0x3754b1,null))[_0x227866(0xbf)](handleError(_0x3754b1,null));},exports[a679_0x2c66d7(0xe8)]=function(_0x39fae2,_0x2c8413){const _0x163ba=a679_0x2c66d7;return db[_0x163ba(0xc3)][_0x163ba(0xc4)]({'where':{'id':_0x39fae2[_0x163ba(0x97)]['ids']},'attributes':['id'],'include':[{'model':db['User'],'as':_0x163ba(0xcb),'attributes':['id'],'raw':!![]}]})[_0x163ba(0xa2)](handleEntityNotFound(_0x2c8413,null))[_0x163ba(0xa2)](function(_0x392265){const _0xbd4a3e=_0x163ba,_0x1c5911=_[_0xbd4a3e(0xec)](_0x392265,'id');let _0x4a03db=[];const _0x2ae514=[],_0x49a61e=squel['select']();_0x49a61e['field'](_0xbd4a3e(0xea))['from'](_0xbd4a3e(0xc2),'tq')[_0xbd4a3e(0xb6)](_0xbd4a3e(0xf6),'ut','ut.TeamId\x20=\x20tq.TeamId')['where'](_0xbd4a3e(0xdf),_0x39fae2['params']['id']);for(let _0x2d83c5=0x0;_0x2d83c5<_0x392265[_0xbd4a3e(0x100)];_0x2d83c5+=0x1){const _0x1969fc=_0x392265[_0x2d83c5];for(let _0x31e078=0x0;_0x31e078<_0x1969fc[_0xbd4a3e(0xcb)][_0xbd4a3e(0x100)];_0x31e078+=0x1){const _0x357132=_0x1969fc['Agents'][_0x31e078],_0x4abf2b=_0x49a61e['clone']();_0x4abf2b[_0xbd4a3e(0xb7)]('ut.UserId\x20=\x20?',_0x357132['id']),_0x2ae514['push'](db[_0xbd4a3e(0xae)][_0xbd4a3e(0x97)](_0x4abf2b[_0xbd4a3e(0xf9)](),{'type':QueryTypes[_0xbd4a3e(0xe6)]})[_0xbd4a3e(0xa2)](function(_0x3b320c){const _0x4c0184=_0xbd4a3e;if(_0x3b320c[_0x4c0184(0x100)]===0x1)return _0x357132['id'];else{const _0xf29231=_['every'](_[_0x4c0184(0xec)](_0x3b320c,_0x4c0184(0xbd)),function(_0x41a359){const _0x3f391e=_0x4c0184;return _[_0x3f391e(0xa8)](_0x1c5911,_0x41a359);});if(_0xf29231)return _0x357132['id'];}}));}}return Promise[_0xbd4a3e(0xdd)](_0x2ae514)[_0xbd4a3e(0xa2)](function(_0x30a1ff){const _0x1748da=_0xbd4a3e;return _0x4a03db=_(_0x4a03db)['union'](_0x30a1ff)[_0x1748da(0xd8)]()[_0x1748da(0x99)](),db[_0x1748da(0xb3)]['findOne']({'where':{'id':_0x39fae2[_0x1748da(0xe2)]['id']}})['then'](function(_0x363f36){const _0x25ea0d=_0x1748da;return db[_0x25ea0d(0xae)][_0x25ea0d(0xa5)](function(_0x1773d9){const _0x25743d=_0x25ea0d;return _0x363f36[_0x25743d(0xe8)](_0x39fae2[_0x25743d(0x97)][_0x25743d(0xef)],{'transaction':_0x1773d9})[_0x25743d(0xa2)](function(){const _0x27704a=_0x25743d;if(!_[_0x27704a(0xb9)](_0x4a03db))return _0x363f36[_0x27704a(0xcc)](_0x4a03db,{'transaction':_0x1773d9});})[_0x25743d(0xa2)](function(){const _0x20d7ef=_0x25743d;_0x4a03db[_0x20d7ef(0xde)](function(_0xcfa1a7){socket['emit']('userSmsQueue:remove',{'UserId':_0xcfa1a7,'SmsQueueId':_0x363f36['id']});});});});});});})[_0x163ba(0xa2)](respondWithStatusCode(_0x2c8413,null))['catch'](handleError(_0x2c8413,null));},exports[a679_0x2c66d7(0xf4)]=function(_0xd8ce34,_0x5b8f88){const _0x423ebe=a679_0x2c66d7;return db[_0x423ebe(0xb3)][_0x423ebe(0xf5)]({'where':{'id':_0xd8ce34['params']['id']}})[_0x423ebe(0xa2)](function(_0x4db664){const _0xdaa592=_0x423ebe;if(_0x4db664)return _0x4db664[_0xdaa592(0xf4)](_0xd8ce34['body'][_0xdaa592(0xef)],{'through':_[_0xdaa592(0xf8)](_0xd8ce34[_0xdaa592(0xb4)],[_0xdaa592(0xef),'id'])})[_0xdaa592(0xa2)](function(_0x204eb1){const _0xc48b20=_0xdaa592;for(let _0x4649af=0x0;_0x4649af<_0xd8ce34[_0xc48b20(0xb4)][_0xc48b20(0xef)][_0xc48b20(0x100)];_0x4649af+=0x1){socket[_0xc48b20(0x9c)](_0xc48b20(0xfc),{'UserId':_0xd8ce34[_0xc48b20(0xb4)][_0xc48b20(0xef)][_0x4649af],'SmsQueueId':_0xd8ce34[_0xc48b20(0xe2)]['id']});}return _0x204eb1;});})[_0x423ebe(0xa2)](respondWithResult(_0x5b8f88,null))[_0x423ebe(0xbf)](handleError(_0x5b8f88,null));},exports[a679_0x2c66d7(0xcc)]=function(_0x5ee6db,_0x5ee8f3){const _0x322f74=a679_0x2c66d7;return db[_0x322f74(0xb3)][_0x322f74(0xf5)]({'where':{'id':_0x5ee6db[_0x322f74(0xe2)]['id']}})['then'](handleEntityNotFound(_0x5ee8f3,null))['then'](function(_0x10381d){const _0x292105=_0x322f74;if(_0x10381d)return _0x10381d[_0x292105(0xcc)](_0x5ee6db[_0x292105(0x97)][_0x292105(0xef)])[_0x292105(0xa2)](function(){const _0x2c7c79=_0x292105;if(_[_0x2c7c79(0xaf)](_0x5ee6db[_0x2c7c79(0x97)]['ids']))for(let _0x43582f=0x0;_0x43582f<_0x5ee6db[_0x2c7c79(0x97)][_0x2c7c79(0xef)][_0x2c7c79(0x100)];_0x43582f+=0x1){socket[_0x2c7c79(0x9c)](_0x2c7c79(0x9e),{'UserId':Number(_0x5ee6db[_0x2c7c79(0x97)][_0x2c7c79(0xef)][_0x43582f]),'SmsQueueId':Number(_0x5ee6db[_0x2c7c79(0xe2)]['id'])});}else socket[_0x2c7c79(0x9c)](_0x2c7c79(0x9e),{'UserId':Number(_0x5ee6db['query'][_0x2c7c79(0xef)]),'SmsQueueId':Number(_0x5ee6db[_0x2c7c79(0xe2)]['id'])});});})[_0x322f74(0xa2)](respondWithStatusCode(_0x5ee8f3,null))[_0x322f74(0xbf)](handleError(_0x5ee8f3,null));},exports[a679_0x2c66d7(0xc1)]=function(_0x311497,_0x471b07){const _0x46a8ed=a679_0x2c66d7;let _0xd4639b={};const _0x3a58c0={};let _0x4770f5,_0x3f9106;return db['SmsQueue'][_0x46a8ed(0xf5)]({'where':{'id':_0x311497[_0x46a8ed(0xe2)]['id']}})[_0x46a8ed(0xa2)](handleEntityNotFound(_0x471b07,null))[_0x46a8ed(0xa2)](function(_0x3871f9){const _0x14060b=_0x46a8ed;if(_0x3871f9)return _0x4770f5=_0x3871f9,_0x3a58c0['model']=_[_0x14060b(0x105)](db[_0x14060b(0xbb)][_0x14060b(0xbe)]),_0x3a58c0[_0x14060b(0x97)]=_[_0x14060b(0x105)](_0x311497['query']),_0x3a58c0[_0x14060b(0xa7)]=_['intersection'](_0x3a58c0['model'],_0x3a58c0[_0x14060b(0x97)]),_0xd4639b[_0x14060b(0xf3)]=_['intersection'](_0x3a58c0[_0x14060b(0xf1)],qs[_0x14060b(0xeb)](_0x311497[_0x14060b(0x97)][_0x14060b(0xeb)])),_0xd4639b[_0x14060b(0xf3)]=_0xd4639b[_0x14060b(0xf3)][_0x14060b(0x100)]?_0xd4639b[_0x14060b(0xf3)]:_0x3a58c0['model'],_0xd4639b['order']=qs[_0x14060b(0xa9)](_0x311497[_0x14060b(0x97)]['sort']),_0xd4639b['where']=qs[_0x14060b(0xa7)](_[_0x14060b(0xda)](_0x311497[_0x14060b(0x97)],_0x3a58c0[_0x14060b(0xa7)])),_0x311497[_0x14060b(0x97)][_0x14060b(0x9f)]&&(_0xd4639b[_0x14060b(0xb7)]=_[_0x14060b(0xf2)](_0xd4639b[_0x14060b(0xb7)],{[Op['or']]:_[_0x14060b(0xec)](_0xd4639b[_0x14060b(0xf3)],function(_0x5f53c1){const _0x9e4b17=_0x14060b,_0x38eed8={};return _0x38eed8[_0x5f53c1]={[Op[_0x9e4b17(0xee)]]:'%'+_0x311497[_0x9e4b17(0x97)][_0x9e4b17(0x9f)]+'%'},_0x38eed8;})})),_0xd4639b=_[_0x14060b(0xf2)]({},_0xd4639b,_0x311497[_0x14060b(0xa1)]),_0x4770f5[_0x14060b(0xc1)](_0xd4639b);})['then'](function(_0x4d0727){const _0xa8bca7=_0x46a8ed;if(_0x4d0727)return _0x3f9106=_0x4d0727[_0xa8bca7(0x100)],typeof _0x311497[_0xa8bca7(0x97)]['nolimit']===_0xa8bca7(0x104)&&(_0xd4639b['limit']=qs[_0xa8bca7(0xd3)](_0x311497[_0xa8bca7(0x97)][_0xa8bca7(0xd3)]),_0xd4639b[_0xa8bca7(0xcd)]=qs['offset'](_0x311497['query']['offset'])),_0x4770f5['getAgents'](_0xd4639b);})[_0x46a8ed(0xa2)](function(_0x4a3dda){if(_0x4a3dda)return _0x4a3dda?{'count':_0x3f9106,'rows':_0x4a3dda}:null;})[_0x46a8ed(0xa2)](respondWithResult(_0x471b07,null))[_0x46a8ed(0xbf)](handleError(_0x471b07,null));}; \ No newline at end of file diff --git a/server/api/smsQueue/smsQueue.events.js b/server/api/smsQueue/smsQueue.events.js index 6f26f92..94df847 100644 --- a/server/api/smsQueue/smsQueue.events.js +++ b/server/api/smsQueue/smsQueue.events.js @@ -1 +1 @@ -const a568_0xa1e9=['undefined','setMaxListeners','emit','exports','../../mysqldb','save','remove','update','events','SmsQueue'];(function(_0x3cd51f,_0xa1e9a8){const _0x2cdd7b=function(_0x1aa1ee){while(--_0x1aa1ee){_0x3cd51f['push'](_0x3cd51f['shift']());}};_0x2cdd7b(++_0xa1e9a8);}(a568_0xa1e9,0x1a0));const a568_0x2cdd=function(_0x3cd51f,_0xa1e9a8){_0x3cd51f=_0x3cd51f-0x0;let _0x2cdd7b=a568_0xa1e9[_0x3cd51f];return _0x2cdd7b;};const _0x92c3f8=a568_0x2cdd;'use strict';const EventEmitter=require(_0x92c3f8('0x2')),SmsQueue=require(_0x92c3f8('0x8'))['db'][_0x92c3f8('0x3')],SmsQueueEvents=new EventEmitter();SmsQueueEvents[_0x92c3f8('0x5')](0x0);const events={'afterCreate':_0x92c3f8('0x9'),'afterUpdate':_0x92c3f8('0x1'),'afterDestroy':_0x92c3f8('0x0')};function emitEvent(_0x1aa1ee){return function(_0x3be595){const _0x38db71=a568_0x2cdd;SmsQueueEvents[_0x38db71('0x6')](_0x1aa1ee+':'+_0x3be595['id'],_0x3be595),SmsQueueEvents[_0x38db71('0x6')](_0x1aa1ee,_0x3be595);};}for(const e in events){if(typeof events[e]!==_0x92c3f8('0x4')){const event=events[e];SmsQueue['addHook'](e,emitEvent(event));}}module[_0x92c3f8('0x7')]=SmsQueueEvents; \ No newline at end of file +const a680_0x4bad=['events','update','remove','undefined','exports','emit','../../mysqldb'];(function(_0x194d12,_0x39a2c9){const _0x4badd4=function(_0x110b24){while(--_0x110b24){_0x194d12['push'](_0x194d12['shift']());}};_0x4badd4(++_0x39a2c9);}(a680_0x4bad,0xf0));const a680_0x110b=function(_0x194d12,_0x39a2c9){_0x194d12=_0x194d12-0x1af;let _0x4badd4=a680_0x4bad[_0x194d12];return _0x4badd4;};const a680_0x2940a6=a680_0x110b;'use strict';const EventEmitter=require(a680_0x2940a6(0x1b4)),SmsQueue=require(a680_0x2940a6(0x1b3))['db']['SmsQueue'],SmsQueueEvents=new EventEmitter();SmsQueueEvents['setMaxListeners'](0x0);const events={'afterCreate':'save','afterUpdate':a680_0x2940a6(0x1b5),'afterDestroy':a680_0x2940a6(0x1af)};function emitEvent(_0x3d61a5){return function(_0x7cb872){const _0xd1b7ab=a680_0x110b;SmsQueueEvents[_0xd1b7ab(0x1b2)](_0x3d61a5+':'+_0x7cb872['id'],_0x7cb872),SmsQueueEvents['emit'](_0x3d61a5,_0x7cb872);};}for(const e in events){if(typeof events[e]!==a680_0x2940a6(0x1b0)){const event=events[e];SmsQueue['addHook'](e,emitEvent(event));}}module[a680_0x2940a6(0x1b1)]=SmsQueueEvents; \ No newline at end of file diff --git a/server/api/smsQueue/smsQueue.model.js b/server/api/smsQueue/smsQueue.model.js index 0729f20..09e7123 100644 --- a/server/api/smsQueue/smsQueue.model.js +++ b/server/api/smsQueue/smsQueue.model.js @@ -1 +1 @@ -const a569_0x2483=['./smsQueue.attributes','sms_queues','define','exports'];(function(_0x2f3564,_0x2483b7){const _0x56091c=function(_0x38b3b1){while(--_0x38b3b1){_0x2f3564['push'](_0x2f3564['shift']());}};_0x56091c(++_0x2483b7);}(a569_0x2483,0xe2));const a569_0x5609=function(_0x2f3564,_0x2483b7){_0x2f3564=_0x2f3564-0x0;let _0x56091c=a569_0x2483[_0x2f3564];return _0x56091c;};const _0x40c9ad=a569_0x5609;'use strict';const attributes=require(_0x40c9ad('0x2'));module[_0x40c9ad('0x1')]=function(_0x38b3b1){const _0x227bb6=_0x40c9ad,_0x49d490=_0x38b3b1[_0x227bb6('0x0')]('SmsQueue',attributes,{'tableName':_0x227bb6('0x3'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x49d490;}; \ No newline at end of file +const a681_0x5451=['./smsQueue.options','exports','./smsQueue.attributes','init','sequelize','function'];(function(_0x50df4e,_0x54a5ec){const _0x545102=function(_0x420585){while(--_0x420585){_0x50df4e['push'](_0x50df4e['shift']());}};_0x545102(++_0x54a5ec);}(a681_0x5451,0x70));const a681_0x4205=function(_0x50df4e,_0x54a5ec){_0x50df4e=_0x50df4e-0x13b;let _0x545102=a681_0x5451[_0x50df4e];return _0x545102;};const a681_0x4cd6c2=a681_0x4205;'use strict';const {Model}=require(a681_0x4cd6c2(0x13b)),{attributes}=require(a681_0x4cd6c2(0x13f)),{options}=require(a681_0x4cd6c2(0x13d));class SmsQueue extends Model{}function init(_0x4d982d,_0x446d49){const _0x2fc94b=a681_0x4cd6c2,_0x35251c=options(_0x4d982d),_0xdd05d4=typeof _0x446d49===_0x2fc94b(0x13c)?_0x446d49(_0x35251c):_0x35251c;return SmsQueue[_0x2fc94b(0x140)](attributes,_0xdd05d4),SmsQueue;}module[a681_0x4cd6c2(0x13e)]['SmsQueue']=SmsQueue,module['exports']['init']=init; \ No newline at end of file diff --git a/server/api/smsQueue/smsQueue.options.js b/server/api/smsQueue/smsQueue.options.js new file mode 100644 index 0000000..3d696a5 --- /dev/null +++ b/server/api/smsQueue/smsQueue.options.js @@ -0,0 +1 @@ +var a682_0x202b=['sms_queues','exports'];(function(_0x186f12,_0x589337){var _0x202b11=function(_0x20529a){while(--_0x20529a){_0x186f12['push'](_0x186f12['shift']());}};_0x202b11(++_0x589337);}(a682_0x202b,0xed));var a682_0x2052=function(_0x186f12,_0x589337){_0x186f12=_0x186f12-0x1aa;var _0x202b11=a682_0x202b[_0x186f12];return _0x202b11;};var a682_0xf69a55=a682_0x2052;function options(_0x2c3a64){var _0x55e216=a682_0x2052;return{'sequelize':_0x2c3a64,'tableName':_0x55e216(0x1ab),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a682_0xf69a55(0x1aa)]['options']=options; \ No newline at end of file diff --git a/server/api/smsQueue/smsQueue.rpc.js b/server/api/smsQueue/smsQueue.rpc.js index b5f7ddf..9ce0fb4 100644 --- a/server/api/smsQueue/smsQueue.rpc.js +++ b/server/api/smsQueue/smsQueue.rpc.js @@ -1 +1 @@ -const a570_0x20c6=['stringify','GetSmsQueue','message','info','findAll','include','../../mysqldb','attributes','map','where','ShowSmsQueue','then','limit','catch','options','error','findOne','debug','SmsQueue','register','model','../../config/logger','./smsQueue.socket'];(function(_0x24338a,_0x20c636){const _0x23715f=function(_0x22f3c8){while(--_0x22f3c8){_0x24338a['push'](_0x24338a['shift']());}};_0x23715f(++_0x20c636);}(a570_0x20c6,0x137));const a570_0x2371=function(_0x24338a,_0x20c636){_0x24338a=_0x24338a-0x0;let _0x23715f=a570_0x20c6[_0x24338a];return _0x23715f;};const _0x2949bc=a570_0x2371;'use strict';const _=require('lodash'),db=require(_0x2949bc('0x11'))['db'],logger=require(_0x2949bc('0x9'))('rpc'),{getSocket}=require('../../rediscache'),socket=getSocket();require(_0x2949bc('0xa'))[_0x2949bc('0x7')](socket),exports[_0x2949bc('0xc')]=function(_0x22f3c8){const _0x4b7a13=this;return new Promise(function(_0xe4d907,_0x4b1e08){const _0x25293e=a570_0x2371;return db['SmsQueue'][_0x25293e('0xf')]({'raw':_0x22f3c8[_0x25293e('0x2')]?_0x22f3c8['options']['raw']===undefined?!![]:![]:!![],'where':_0x22f3c8[_0x25293e('0x2')]?_0x22f3c8[_0x25293e('0x2')][_0x25293e('0x14')]||null:null,'attributes':_0x22f3c8[_0x25293e('0x2')]?_0x22f3c8[_0x25293e('0x2')][_0x25293e('0x12')]||null:null,'limit':_0x22f3c8[_0x25293e('0x2')]?_0x22f3c8[_0x25293e('0x2')][_0x25293e('0x0')]||null:null,'include':_0x22f3c8[_0x25293e('0x2')]?_0x22f3c8[_0x25293e('0x2')][_0x25293e('0x10')]?_[_0x25293e('0x13')](_0x22f3c8[_0x25293e('0x2')][_0x25293e('0x10')],function(_0x2d9ed3){const _0x41ddfa=_0x25293e;return{'model':db[_0x2d9ed3['model']],'as':_0x2d9ed3['as'],'attributes':_0x2d9ed3['attributes'],'include':_0x2d9ed3[_0x41ddfa('0x10')]?_[_0x41ddfa('0x13')](_0x2d9ed3[_0x41ddfa('0x10')],function(_0x11725c){const _0x5b3fea=_0x41ddfa;return{'model':db[_0x11725c[_0x5b3fea('0x8')]],'as':_0x11725c['as'],'attributes':_0x11725c['attributes'],'include':_0x11725c[_0x5b3fea('0x10')]?_['map'](_0x11725c[_0x5b3fea('0x10')],function(_0x465a24){const _0x48d132=_0x5b3fea;return{'model':db[_0x465a24[_0x48d132('0x8')]],'as':_0x465a24['as'],'attributes':_0x465a24[_0x48d132('0x12')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x4b7205){const _0x5cbc4a=_0x25293e;logger[_0x5cbc4a('0xe')](_0x5cbc4a('0xc'),_0x22f3c8),logger[_0x5cbc4a('0x5')]('GetSmsQueue',_0x22f3c8,JSON[_0x5cbc4a('0xb')](_0x4b7205)),_0xe4d907(_0x4b7205);})[_0x25293e('0x1')](function(_0x4359fb){const _0x5aae38=_0x25293e;logger['error'](_0x5aae38('0xc'),_0x4359fb[_0x5aae38('0xd')],_0x22f3c8),_0x4b1e08(_0x4b7a13[_0x5aae38('0x3')](0x1f4,_0x4359fb[_0x5aae38('0xd')]));});});},exports[_0x2949bc('0x15')]=function(_0x41406b){const _0x324b72=this;return new Promise(function(_0x2c6cf7,_0x3c5dfc){const _0x43e57f=a570_0x2371;return db[_0x43e57f('0x6')][_0x43e57f('0x4')]({'raw':_0x41406b['options']?_0x41406b[_0x43e57f('0x2')]['raw']===undefined?!![]:![]:!![],'where':_0x41406b[_0x43e57f('0x2')]?_0x41406b[_0x43e57f('0x2')][_0x43e57f('0x14')]||null:null,'attributes':_0x41406b['options']?_0x41406b[_0x43e57f('0x2')][_0x43e57f('0x12')]||null:null,'include':_0x41406b[_0x43e57f('0x2')]?_0x41406b[_0x43e57f('0x2')]['include']?_[_0x43e57f('0x13')](_0x41406b[_0x43e57f('0x2')][_0x43e57f('0x10')],function(_0x9160eb){const _0x738d52=_0x43e57f;return{'model':db[_0x9160eb['model']],'as':_0x9160eb['as'],'attributes':_0x9160eb[_0x738d52('0x12')],'include':_0x9160eb['include']?_[_0x738d52('0x13')](_0x9160eb[_0x738d52('0x10')],function(_0x15f8f5){const _0x3d2c58=_0x738d52;return{'model':db[_0x15f8f5['model']],'as':_0x15f8f5['as'],'attributes':_0x15f8f5[_0x3d2c58('0x12')],'include':_0x15f8f5[_0x3d2c58('0x10')]?_[_0x3d2c58('0x13')](_0x15f8f5[_0x3d2c58('0x10')],function(_0x421bb0){const _0x4ae3cd=_0x3d2c58;return{'model':db[_0x421bb0['model']],'as':_0x421bb0['as'],'attributes':_0x421bb0[_0x4ae3cd('0x12')]};}):[]};}):[]};}):[]:[]})[_0x43e57f('0x16')](function(_0x10b018){const _0x73b75f=_0x43e57f;logger[_0x73b75f('0xe')](_0x73b75f('0x15'),_0x41406b),logger[_0x73b75f('0x5')](_0x73b75f('0x15'),_0x41406b,JSON[_0x73b75f('0xb')](_0x10b018)),_0x2c6cf7(_0x10b018);})[_0x43e57f('0x1')](function(_0x52f5f9){const _0x26f110=_0x43e57f;logger[_0x26f110('0x3')](_0x26f110('0x15'),_0x52f5f9[_0x26f110('0xd')],_0x41406b),_0x3c5dfc(_0x324b72[_0x26f110('0x3')](0x1f4,_0x52f5f9['message']));});});}; \ No newline at end of file +const a683_0x3d10=['options','map','debug','attributes','lodash','../../config/logger','ShowSmsQueue','raw','include','error','SmsQueue','then','register','model','info','../../rediscache','./smsQueue.socket','where','limit','stringify','findAll','message','catch','GetSmsQueue'];(function(_0x418a3a,_0x30e1c5){const _0x3d106f=function(_0x14bf51){while(--_0x14bf51){_0x418a3a['push'](_0x418a3a['shift']());}};_0x3d106f(++_0x30e1c5);}(a683_0x3d10,0x6e));const a683_0x14bf=function(_0x418a3a,_0x30e1c5){_0x418a3a=_0x418a3a-0x1a7;let _0x3d106f=a683_0x3d10[_0x418a3a];return _0x3d106f;};const a683_0x5530b0=a683_0x14bf;'use strict';const _=require(a683_0x5530b0(0x1b5)),db=require('../../mysqldb')['db'],logger=require(a683_0x5530b0(0x1b6))('rpc'),{getSocket}=require(a683_0x5530b0(0x1a8)),socket=getSocket();require(a683_0x5530b0(0x1a9))[a683_0x5530b0(0x1bd)](socket),exports[a683_0x5530b0(0x1b0)]=function(_0x36aec1){const _0x1a0c15=this;return new Promise(function(_0x145774,_0x64cb5b){const _0x21e079=a683_0x14bf;return db[_0x21e079(0x1bb)][_0x21e079(0x1ad)]({'raw':_0x36aec1[_0x21e079(0x1b1)]?_0x36aec1[_0x21e079(0x1b1)][_0x21e079(0x1b8)]===undefined?!![]:![]:!![],'where':_0x36aec1[_0x21e079(0x1b1)]?_0x36aec1[_0x21e079(0x1b1)]['where']||null:null,'attributes':_0x36aec1[_0x21e079(0x1b1)]?_0x36aec1[_0x21e079(0x1b1)][_0x21e079(0x1b4)]||null:null,'limit':_0x36aec1[_0x21e079(0x1b1)]?_0x36aec1[_0x21e079(0x1b1)][_0x21e079(0x1ab)]||null:null,'include':_0x36aec1[_0x21e079(0x1b1)]?_0x36aec1[_0x21e079(0x1b1)]['include']?_['map'](_0x36aec1[_0x21e079(0x1b1)]['include'],function(_0x403550){const _0x5542ed=_0x21e079;return{'model':db[_0x403550[_0x5542ed(0x1be)]],'as':_0x403550['as'],'attributes':_0x403550['attributes'],'include':_0x403550[_0x5542ed(0x1b9)]?_[_0x5542ed(0x1b2)](_0x403550[_0x5542ed(0x1b9)],function(_0x51bb4){const _0x2b8df5=_0x5542ed;return{'model':db[_0x51bb4[_0x2b8df5(0x1be)]],'as':_0x51bb4['as'],'attributes':_0x51bb4[_0x2b8df5(0x1b4)],'include':_0x51bb4[_0x2b8df5(0x1b9)]?_[_0x2b8df5(0x1b2)](_0x51bb4['include'],function(_0x3dc598){const _0x11b3cf=_0x2b8df5;return{'model':db[_0x3dc598['model']],'as':_0x3dc598['as'],'attributes':_0x3dc598[_0x11b3cf(0x1b4)]};}):[]};}):[]};}):[]:[]})[_0x21e079(0x1bc)](function(_0x9de7ae){const _0x2e4e41=_0x21e079;logger[_0x2e4e41(0x1a7)](_0x2e4e41(0x1b0),_0x36aec1),logger[_0x2e4e41(0x1b3)]('GetSmsQueue',_0x36aec1,JSON['stringify'](_0x9de7ae)),_0x145774(_0x9de7ae);})[_0x21e079(0x1af)](function(_0x26aae1){const _0x41ad52=_0x21e079;logger['error']('GetSmsQueue',_0x26aae1[_0x41ad52(0x1ae)],_0x36aec1),_0x64cb5b(_0x1a0c15[_0x41ad52(0x1ba)](0x1f4,_0x26aae1['message']));});});},exports[a683_0x5530b0(0x1b7)]=function(_0x403fe6){const _0x2cb7d5=this;return new Promise(function(_0x340b26,_0x50dfbe){const _0x4e5e85=a683_0x14bf;return db['SmsQueue']['findOne']({'raw':_0x403fe6[_0x4e5e85(0x1b1)]?_0x403fe6[_0x4e5e85(0x1b1)][_0x4e5e85(0x1b8)]===undefined?!![]:![]:!![],'where':_0x403fe6[_0x4e5e85(0x1b1)]?_0x403fe6[_0x4e5e85(0x1b1)][_0x4e5e85(0x1aa)]||null:null,'attributes':_0x403fe6[_0x4e5e85(0x1b1)]?_0x403fe6[_0x4e5e85(0x1b1)][_0x4e5e85(0x1b4)]||null:null,'include':_0x403fe6[_0x4e5e85(0x1b1)]?_0x403fe6[_0x4e5e85(0x1b1)][_0x4e5e85(0x1b9)]?_[_0x4e5e85(0x1b2)](_0x403fe6[_0x4e5e85(0x1b1)][_0x4e5e85(0x1b9)],function(_0x200857){const _0x5b2b80=_0x4e5e85;return{'model':db[_0x200857[_0x5b2b80(0x1be)]],'as':_0x200857['as'],'attributes':_0x200857['attributes'],'include':_0x200857['include']?_[_0x5b2b80(0x1b2)](_0x200857[_0x5b2b80(0x1b9)],function(_0x5ed117){const _0x3e2d2c=_0x5b2b80;return{'model':db[_0x5ed117[_0x3e2d2c(0x1be)]],'as':_0x5ed117['as'],'attributes':_0x5ed117['attributes'],'include':_0x5ed117[_0x3e2d2c(0x1b9)]?_[_0x3e2d2c(0x1b2)](_0x5ed117[_0x3e2d2c(0x1b9)],function(_0x47b913){const _0xec458b=_0x3e2d2c;return{'model':db[_0x47b913[_0xec458b(0x1be)]],'as':_0x47b913['as'],'attributes':_0x47b913[_0xec458b(0x1b4)]};}):[]};}):[]};}):[]:[]})[_0x4e5e85(0x1bc)](function(_0x1efcd4){const _0x5c74e5=_0x4e5e85;logger[_0x5c74e5(0x1a7)](_0x5c74e5(0x1b7),_0x403fe6),logger[_0x5c74e5(0x1b3)](_0x5c74e5(0x1b7),_0x403fe6,JSON[_0x5c74e5(0x1ac)](_0x1efcd4)),_0x340b26(_0x1efcd4);})[_0x4e5e85(0x1af)](function(_0x4c8dde){const _0x1445e1=_0x4e5e85;logger[_0x1445e1(0x1ba)](_0x1445e1(0x1b7),_0x4c8dde[_0x1445e1(0x1ae)],_0x403fe6),_0x50dfbe(_0x2cb7d5['error'](0x1f4,_0x4c8dde[_0x1445e1(0x1ae)]));});});}; \ No newline at end of file diff --git a/server/api/smsQueue/smsQueue.socket.js b/server/api/smsQueue/smsQueue.socket.js index a70160c..0ab7814 100644 --- a/server/api/smsQueue/smsQueue.socket.js +++ b/server/api/smsQueue/smsQueue.socket.js @@ -1 +1 @@ -const a571_0x1754=['remove','emit','./smsQueue.events','register'];(function(_0x49ca60,_0x1754f4){const _0x43c3cb=function(_0x4d72bf){while(--_0x4d72bf){_0x49ca60['push'](_0x49ca60['shift']());}};_0x43c3cb(++_0x1754f4);}(a571_0x1754,0x90));const a571_0x43c3=function(_0x49ca60,_0x1754f4){_0x49ca60=_0x49ca60-0x0;let _0x43c3cb=a571_0x1754[_0x49ca60];return _0x43c3cb;};const _0x506b8=a571_0x43c3;'use strict';const SmsQueueEvents=require(_0x506b8('0x2')),events=['save',_0x506b8('0x0'),'update'];function createListener(_0x4d72bf,_0x31e369){return function(_0x5d8f09){const _0x4a63e0=a571_0x43c3;_0x31e369[_0x4a63e0('0x1')](_0x4d72bf,_0x5d8f09);};}exports[_0x506b8('0x3')]=function(_0x327724){for(let _0x3ec3e9=0x0,_0x11e116=events['length'];_0x3ec3e9<_0x11e116;_0x3ec3e9++){const _0x11c927=events[_0x3ec3e9],_0x387db0=createListener('smsQueue:'+_0x11c927,_0x327724);SmsQueueEvents['on'](_0x11c927,_0x387db0);}}; \ No newline at end of file +const a684_0x1dc7=['save','remove','length','update','smsQueue:'];(function(_0x1491c6,_0x192448){const _0x1dc789=function(_0x409949){while(--_0x409949){_0x1491c6['push'](_0x1491c6['shift']());}};_0x1dc789(++_0x192448);}(a684_0x1dc7,0x69));const a684_0x4099=function(_0x1491c6,_0x192448){_0x1491c6=_0x1491c6-0xb6;let _0x1dc789=a684_0x1dc7[_0x1491c6];return _0x1dc789;};const a684_0x3f4e25=a684_0x4099;'use strict';const SmsQueueEvents=require('./smsQueue.events'),events=[a684_0x3f4e25(0xb6),a684_0x3f4e25(0xb7),a684_0x3f4e25(0xb9)];function createListener(_0xd3ee3c,_0x11e0b1){return function(_0x338e9e){_0x11e0b1['emit'](_0xd3ee3c,_0x338e9e);};}exports['register']=function(_0x2d8485){const _0x11faf7=a684_0x3f4e25;for(let _0x427c01=0x0,_0x24a634=events[_0x11faf7(0xb8)];_0x427c01<_0x24a634;_0x427c01++){const _0x104ae0=events[_0x427c01],_0xfe77ef=createListener(_0x11faf7(0xba)+_0x104ae0,_0x2d8485);SmsQueueEvents['on'](_0x104ae0,_0xfe77ef);}}; \ No newline at end of file diff --git a/server/api/smsQueueReport/index.js b/server/api/smsQueueReport/index.js index 44d02e1..b6701a0 100644 --- a/server/api/smsQueueReport/index.js +++ b/server/api/smsQueueReport/index.js @@ -1 +1 @@ -const a572_0x3996=['describe','Router','../../components/auth/service','get','/describe','/:id','post','delete','show','exports','destroy','update','put','isAuthenticated'];(function(_0x2bd353,_0x399615){const _0x482950=function(_0x57590a){while(--_0x57590a){_0x2bd353['push'](_0x2bd353['shift']());}};_0x482950(++_0x399615);}(a572_0x3996,0x177));const a572_0x4829=function(_0x2bd353,_0x399615){_0x2bd353=_0x2bd353-0x0;let _0x482950=a572_0x3996[_0x2bd353];return _0x482950;};const _0x55fe29=a572_0x4829;'use strict';const express=require('express'),router=express[_0x55fe29('0x4')](),auth=require(_0x55fe29('0x5')),controller=require('./smsQueueReport.controller');router['get']('/',auth[_0x55fe29('0x2')](),controller['index']),router['get'](_0x55fe29('0x7'),auth[_0x55fe29('0x2')](),controller[_0x55fe29('0x3')]),router[_0x55fe29('0x6')]('/:id',auth[_0x55fe29('0x2')](),controller[_0x55fe29('0xb')]),router[_0x55fe29('0x9')]('/',auth[_0x55fe29('0x2')](),controller['create']),router[_0x55fe29('0x1')](_0x55fe29('0x8'),auth['isAuthenticated'](),controller[_0x55fe29('0x0')]),router[_0x55fe29('0xa')]('/:id',auth[_0x55fe29('0x2')](),controller[_0x55fe29('0xd')]),module[_0x55fe29('0xc')]=router; \ No newline at end of file +const a685_0x1c49=['isAuthenticated','/describe','post','describe','create','./smsQueueReport.controller','get','destroy','express','exports','update','delete','/:id','index','../../components/auth/service'];(function(_0x233506,_0x60a700){const _0x1c497f=function(_0x6551cc){while(--_0x6551cc){_0x233506['push'](_0x233506['shift']());}};_0x1c497f(++_0x60a700);}(a685_0x1c49,0x14c));const a685_0x6551=function(_0x233506,_0x60a700){_0x233506=_0x233506-0x1f4;let _0x1c497f=a685_0x1c49[_0x233506];return _0x1c497f;};const a685_0x2acae3=a685_0x6551;'use strict';const express=require(a685_0x2acae3(0x1fa)),router=express['Router'](),auth=require(a685_0x2acae3(0x200)),controller=require(a685_0x2acae3(0x1f7));router[a685_0x2acae3(0x1f8)]('/',auth[a685_0x2acae3(0x201)](),controller[a685_0x2acae3(0x1ff)]),router[a685_0x2acae3(0x1f8)](a685_0x2acae3(0x202),auth['isAuthenticated'](),controller[a685_0x2acae3(0x1f5)]),router['get'](a685_0x2acae3(0x1fe),auth[a685_0x2acae3(0x201)](),controller['show']),router[a685_0x2acae3(0x1f4)]('/',auth['isAuthenticated'](),controller[a685_0x2acae3(0x1f6)]),router['put']('/:id',auth[a685_0x2acae3(0x201)](),controller[a685_0x2acae3(0x1fc)]),router[a685_0x2acae3(0x1fd)](a685_0x2acae3(0x1fe),auth[a685_0x2acae3(0x201)](),controller[a685_0x2acae3(0x1f9)]),module[a685_0x2acae3(0x1fb)]=router; \ No newline at end of file diff --git a/server/api/smsQueueReport/smsQueueReport.attributes.js b/server/api/smsQueueReport/smsQueueReport.attributes.js index 3ff72db..f808e7c 100644 --- a/server/api/smsQueueReport/smsQueueReport.attributes.js +++ b/server/api/smsQueueReport/smsQueueReport.attributes.js @@ -1 +1 @@ -const a573_0x49cd=['exports','STRING','DATE','sequelize'];(function(_0x3b0594,_0x49cd53){const _0x811ea2=function(_0x370fac){while(--_0x370fac){_0x3b0594['push'](_0x3b0594['shift']());}};_0x811ea2(++_0x49cd53);}(a573_0x49cd,0xb3));const a573_0x811e=function(_0x3b0594,_0x49cd53){_0x3b0594=_0x3b0594-0x0;let _0x811ea2=a573_0x49cd[_0x3b0594];return _0x811ea2;};const _0x767332=a573_0x811e;'use strict';const Sequelize=require(_0x767332('0x0'));module[_0x767332('0x1')]={'uniqueid':{'type':Sequelize[_0x767332('0x2')],'allowNull':![]},'from':{'type':Sequelize[_0x767332('0x2')]},'joinAt':{'type':Sequelize['DATE']},'leaveAt':{'type':Sequelize[_0x767332('0x3')]},'acceptAt':{'type':Sequelize[_0x767332('0x3')]},'exitAt':{'type':Sequelize[_0x767332('0x3')]},'reason':{'type':Sequelize['STRING']}}; \ No newline at end of file +const a686_0x1e87=['STRING','attributes','DATE','exports','sequelize'];(function(_0x312a51,_0x50d0be){const _0x1e87d6=function(_0x2af33e){while(--_0x2af33e){_0x312a51['push'](_0x312a51['shift']());}};_0x1e87d6(++_0x50d0be);}(a686_0x1e87,0xd1));const a686_0x2af3=function(_0x312a51,_0x50d0be){_0x312a51=_0x312a51-0x151;let _0x1e87d6=a686_0x1e87[_0x312a51];return _0x1e87d6;};const a686_0x1b3db0=a686_0x2af3;'use strict';const {DataTypes}=require(a686_0x1b3db0(0x151)),attributes={'uniqueid':{'type':DataTypes[a686_0x1b3db0(0x152)],'allowNull':![]},'from':{'type':DataTypes[a686_0x1b3db0(0x152)]},'joinAt':{'type':DataTypes['DATE']},'leaveAt':{'type':DataTypes[a686_0x1b3db0(0x154)]},'acceptAt':{'type':DataTypes['DATE']},'exitAt':{'type':DataTypes[a686_0x1b3db0(0x154)]},'reason':{'type':DataTypes[a686_0x1b3db0(0x152)]}};module[a686_0x1b3db0(0x155)][a686_0x1b3db0(0x153)]=attributes; \ No newline at end of file diff --git a/server/api/smsQueueReport/smsQueueReport.controller.js b/server/api/smsQueueReport/smsQueueReport.controller.js index b216232..02ceb41 100644 --- a/server/api/smsQueueReport/smsQueueReport.controller.js +++ b/server/api/smsQueueReport/smsQueueReport.controller.js @@ -1 +1 @@ -const a574_0x5952=['includeAll','Content-Range','sort','pick','destroy','type','keys','send','findOne','catch','nolimit','attributes','intersection','sendStatus','status','model','name','options','set','create','merge','map','limit','count','where','update','rawAttributes','like','then','json','filters','body','rows','../../mysqldb','fields','length','params','query','filter','SmsQueueReport','error','show','include','describe','offset'];(function(_0xb968d1,_0x595251){const _0x23ac1b=function(_0x20237){while(--_0x20237){_0xb968d1['push'](_0xb968d1['shift']());}};_0x23ac1b(++_0x595251);}(a574_0x5952,0x169));const a574_0x23ac=function(_0xb968d1,_0x595251){_0xb968d1=_0xb968d1-0x0;let _0x23ac1b=a574_0x5952[_0xb968d1];return _0x23ac1b;};const _0x4eef6f=a574_0x23ac;'use strict';const _=require('lodash'),qs=require('../../components/parsers/qs'),logger=require('../../config/logger')('api'),db=require(_0x4eef6f('0x20'))['db'],{Op}=require('sequelize');function respondWithResult(_0x20237,_0x1de618){return _0x1de618=_0x1de618||0xc8,function(_0x1f6385){const _0x4f549e=a574_0x23ac;if(_0x1f6385)return _0x20237[_0x4f549e('0xd')](_0x1de618)[_0x4f549e('0x1c')](_0x1f6385);};}function respondWithFilteredResult(_0x1acf1d,_0xbc99b2){return function(_0x2811f9){const _0x202d2c=a574_0x23ac;if(_0x2811f9){const _0x544a43=_0x2811f9[_0x202d2c('0x16')],_0x40acc2=_0xbc99b2[_0x202d2c('0x2b')];let _0x7c8447=_0xbc99b2[_0x202d2c('0x2b')]+_0xbc99b2[_0x202d2c('0x15')],_0x153f8c;return _0x7c8447>=_0x544a43?(_0x7c8447=_0x544a43,_0x153f8c=0xc8):_0x153f8c=0xce,_0x1acf1d[_0x202d2c('0xd')](_0x153f8c),_0x1acf1d[_0x202d2c('0x11')](_0x202d2c('0x0'),_0x40acc2+'-'+_0x7c8447+'/'+_0x544a43)['json'](_0x2811f9);}return null;};}function saveUpdates(_0x4c60b0){return function(_0x5810e3){const _0x31cd01=a574_0x23ac;if(_0x5810e3)return _0x5810e3[_0x31cd01('0x18')](_0x4c60b0)[_0x31cd01('0x1b')](function(_0x54ba3f){return _0x54ba3f;});return null;};}function removeEntity(_0x3f7158){return function(_0x158cd6){const _0x5ee70a=a574_0x23ac;if(_0x158cd6)return _0x158cd6[_0x5ee70a('0x3')]()[_0x5ee70a('0x1b')](function(){const _0x47e8e8=_0x5ee70a;_0x3f7158[_0x47e8e8('0xd')](0xcc)['end']();});};}function handleEntityNotFound(_0x1b2c9b){return function(_0x444a44){const _0x2329b1=a574_0x23ac;return!_0x444a44&&_0x1b2c9b[_0x2329b1('0xc')](0x194),_0x444a44;};}function handleError(_0xa99528,_0x54c169){return _0x54c169=_0x54c169||0x1f4,function(_0x1181ea){const _0x15eca5=a574_0x23ac;logger[_0x15eca5('0x27')](_0x1181ea['stack']),_0x1181ea[_0x15eca5('0xf')]&&delete _0x1181ea[_0x15eca5('0xf')],_0xa99528[_0x15eca5('0xd')](_0x54c169)[_0x15eca5('0x6')](_0x1181ea);};}exports['index']=function(_0x5a1fe0,_0x237c57){const _0x55e7b7=_0x4eef6f;let _0x582901={};const _0x22b29c={},_0x4c39cf={'count':0x0,'rows':[]},_0x437ddc=_[_0x55e7b7('0x14')](db[_0x55e7b7('0x26')]['rawAttributes'],function(_0x124fe0){return{'name':_0x124fe0['fieldName'],'type':_0x124fe0['type']['key']};});_0x22b29c[_0x55e7b7('0xe')]=_[_0x55e7b7('0x14')](_0x437ddc,_0x55e7b7('0xf')),_0x22b29c[_0x55e7b7('0x24')]=_[_0x55e7b7('0x5')](_0x5a1fe0[_0x55e7b7('0x24')]),_0x22b29c[_0x55e7b7('0x1d')]=_[_0x55e7b7('0xb')](_0x22b29c[_0x55e7b7('0xe')],_0x22b29c[_0x55e7b7('0x24')]),_0x582901[_0x55e7b7('0xa')]=_[_0x55e7b7('0xb')](_0x22b29c[_0x55e7b7('0xe')],qs['fields'](_0x5a1fe0['query']['fields'])),_0x582901[_0x55e7b7('0xa')]=_0x582901[_0x55e7b7('0xa')]['length']?_0x582901['attributes']:_0x22b29c[_0x55e7b7('0xe')];typeof _0x5a1fe0[_0x55e7b7('0x24')][_0x55e7b7('0x9')]==='undefined'&&(_0x582901['limit']=qs[_0x55e7b7('0x15')](_0x5a1fe0[_0x55e7b7('0x24')][_0x55e7b7('0x15')]),_0x582901[_0x55e7b7('0x2b')]=qs[_0x55e7b7('0x2b')](_0x5a1fe0[_0x55e7b7('0x24')]['offset']));_0x582901['order']=qs[_0x55e7b7('0x1')](_0x5a1fe0[_0x55e7b7('0x24')][_0x55e7b7('0x1')]),_0x582901[_0x55e7b7('0x17')]=qs['filters'](_[_0x55e7b7('0x2')](_0x5a1fe0['query'],_0x22b29c[_0x55e7b7('0x1d')]),_0x437ddc);_0x5a1fe0[_0x55e7b7('0x24')][_0x55e7b7('0x25')]&&(_0x582901['where']=_[_0x55e7b7('0x13')](_0x582901['where'],{[Op['or']]:_[_0x55e7b7('0x14')](_0x437ddc,function(_0x38adb9){const _0x5ed723=_0x55e7b7;if(_0x38adb9[_0x5ed723('0x4')]!=='VIRTUAL'){const _0x5cb703={};return _0x5cb703[_0x38adb9['name']]={[Op[_0x5ed723('0x1a')]]:'%'+_0x5a1fe0[_0x5ed723('0x24')][_0x5ed723('0x25')]+'%'},_0x5cb703;}})}));_0x582901=_[_0x55e7b7('0x13')]({},_0x582901,_0x5a1fe0[_0x55e7b7('0x10')]);const _0x49d1ea={'where':_0x582901[_0x55e7b7('0x17')]};return db['SmsQueueReport'][_0x55e7b7('0x16')](_0x49d1ea)[_0x55e7b7('0x1b')](function(_0x48a8e4){const _0x43d11f=_0x55e7b7;return _0x4c39cf[_0x43d11f('0x16')]=_0x48a8e4,_0x5a1fe0[_0x43d11f('0x24')][_0x43d11f('0x2c')]&&(_0x582901['include']=[{'all':!![]}]),db[_0x43d11f('0x26')]['findAll'](_0x582901);})[_0x55e7b7('0x1b')](function(_0x2c9af8){const _0x2d108a=_0x55e7b7;return _0x4c39cf[_0x2d108a('0x1f')]=_0x2c9af8,_0x4c39cf;})['then'](respondWithFilteredResult(_0x237c57,_0x582901))['catch'](handleError(_0x237c57,null));},exports[_0x4eef6f('0x28')]=function(_0x501d0d,_0x4879b9){const _0x14201d=_0x4eef6f;let _0x2c33df={'raw':!![],'where':{'id':_0x501d0d['params']['id']}};const _0x7331e8={};return _0x7331e8[_0x14201d('0xe')]=_['keys'](db['SmsQueueReport'][_0x14201d('0x19')]),_0x7331e8[_0x14201d('0x24')]=_[_0x14201d('0x5')](_0x501d0d[_0x14201d('0x24')]),_0x7331e8['filters']=_[_0x14201d('0xb')](_0x7331e8[_0x14201d('0xe')],_0x7331e8[_0x14201d('0x24')]),_0x2c33df['attributes']=_[_0x14201d('0xb')](_0x7331e8['model'],qs[_0x14201d('0x21')](_0x501d0d[_0x14201d('0x24')][_0x14201d('0x21')])),_0x2c33df[_0x14201d('0xa')]=_0x2c33df['attributes'][_0x14201d('0x22')]?_0x2c33df[_0x14201d('0xa')]:_0x7331e8['model'],_0x501d0d[_0x14201d('0x24')][_0x14201d('0x2c')]&&(_0x2c33df[_0x14201d('0x29')]=[{'all':!![]}]),_0x2c33df=_['merge']({},_0x2c33df,_0x501d0d[_0x14201d('0x10')]),db['SmsQueueReport']['findOne'](_0x2c33df)[_0x14201d('0x1b')](handleEntityNotFound(_0x4879b9,null))[_0x14201d('0x1b')](respondWithResult(_0x4879b9,null))[_0x14201d('0x8')](handleError(_0x4879b9,null));},exports[_0x4eef6f('0x12')]=function(_0x275d63,_0x17e56f){const _0x38bd14=_0x4eef6f;return db[_0x38bd14('0x26')][_0x38bd14('0x12')](_0x275d63[_0x38bd14('0x1e')],{})[_0x38bd14('0x1b')](respondWithResult(_0x17e56f,0xc9))[_0x38bd14('0x8')](handleError(_0x17e56f,null));},exports[_0x4eef6f('0x18')]=function(_0x272f75,_0x4f906f){const _0x4a04b9=_0x4eef6f;return _0x272f75[_0x4a04b9('0x1e')]['id']&&delete _0x272f75[_0x4a04b9('0x1e')]['id'],db[_0x4a04b9('0x26')][_0x4a04b9('0x7')]({'where':{'id':_0x272f75[_0x4a04b9('0x23')]['id']}})['then'](handleEntityNotFound(_0x4f906f,null))[_0x4a04b9('0x1b')](saveUpdates(_0x272f75[_0x4a04b9('0x1e')],null))[_0x4a04b9('0x1b')](respondWithResult(_0x4f906f,null))[_0x4a04b9('0x8')](handleError(_0x4f906f,null));},exports[_0x4eef6f('0x3')]=function(_0x46ab61,_0x3899ba){const _0xf320dc=_0x4eef6f;return db[_0xf320dc('0x26')][_0xf320dc('0x7')]({'where':{'id':_0x46ab61[_0xf320dc('0x23')]['id']}})[_0xf320dc('0x1b')](handleEntityNotFound(_0x3899ba,null))[_0xf320dc('0x1b')](removeEntity(_0x3899ba,null))[_0xf320dc('0x8')](handleError(_0x3899ba,null));},exports[_0x4eef6f('0x2a')]=function(_0x54adc1,_0x11e3ed){const _0xb6934d=_0x4eef6f;return db[_0xb6934d('0x26')][_0xb6934d('0x2a')]()[_0xb6934d('0x1b')](respondWithResult(_0x11e3ed,null))[_0xb6934d('0x8')](handleError(_0x11e3ed,null));}; \ No newline at end of file +const a687_0x2c68=['model','status','like','body','end','limit','undefined','sort','includeAll','rawAttributes','error','fields','options','../../mysqldb','where','name','keys','destroy','attributes','create','then','include','stack','../../components/parsers/qs','describe','intersection','type','findAll','map','fieldName','Content-Range','pick','filter','filters','key','json','params','api','sequelize','rows','SmsQueueReport','sendStatus','query','findOne','show','count','merge','length','catch','update','offset'];(function(_0x23a65a,_0x281de4){const _0x2c684f=function(_0x2eafac){while(--_0x2eafac){_0x23a65a['push'](_0x23a65a['shift']());}};_0x2c684f(++_0x281de4);}(a687_0x2c68,0x11e));const a687_0x2eaf=function(_0x23a65a,_0x281de4){_0x23a65a=_0x23a65a-0x184;let _0x2c684f=a687_0x2c68[_0x23a65a];return _0x2c684f;};const a687_0x26928b=a687_0x2eaf;'use strict';const _=require('lodash'),qs=require(a687_0x26928b(0x1af)),logger=require('../../config/logger')(a687_0x26928b(0x18a)),{db}=require(a687_0x26928b(0x1a5)),{Op}=require(a687_0x26928b(0x18b));function respondWithResult(_0x1d47bb,_0x3a0da){return _0x3a0da=_0x3a0da||0xc8,function(_0x57ef5d){const _0x375584=a687_0x2eaf;if(_0x57ef5d)return _0x1d47bb[_0x375584(0x199)](_0x3a0da)[_0x375584(0x188)](_0x57ef5d);};}function respondWithFilteredResult(_0x222e98,_0x3df825){return function(_0x5bc62c){const _0x323fc3=a687_0x2eaf;if(_0x5bc62c){const _0x21b5b5=_0x5bc62c[_0x323fc3(0x192)],_0x2e7624=_0x3df825[_0x323fc3(0x197)];let _0x235574=_0x3df825[_0x323fc3(0x197)]+_0x3df825[_0x323fc3(0x19d)],_0x2eaf40;return _0x235574>=_0x21b5b5?(_0x235574=_0x21b5b5,_0x2eaf40=0xc8):_0x2eaf40=0xce,_0x222e98['status'](_0x2eaf40),_0x222e98['set'](_0x323fc3(0x1b6),_0x2e7624+'-'+_0x235574+'/'+_0x21b5b5)[_0x323fc3(0x188)](_0x5bc62c);}return null;};}function saveUpdates(_0x53a28e){return function(_0x565f51){const _0x29bf89=a687_0x2eaf;if(_0x565f51)return _0x565f51[_0x29bf89(0x196)](_0x53a28e)[_0x29bf89(0x1ac)](function(_0x308b40){return _0x308b40;});return null;};}function removeEntity(_0x4b8d17){return function(_0x1951d8){const _0x32ee56=a687_0x2eaf;if(_0x1951d8)return _0x1951d8[_0x32ee56(0x1a9)]()['then'](function(){const _0x461793=_0x32ee56;_0x4b8d17[_0x461793(0x199)](0xcc)[_0x461793(0x19c)]();});};}function handleEntityNotFound(_0x3433ed){return function(_0x478c17){const _0x744cab=a687_0x2eaf;return!_0x478c17&&_0x3433ed[_0x744cab(0x18e)](0x194),_0x478c17;};}function handleError(_0x4fd091,_0x2bc804){return _0x2bc804=_0x2bc804||0x1f4,function(_0x21e464){const _0x161eba=a687_0x2eaf;logger[_0x161eba(0x1a2)](_0x21e464[_0x161eba(0x1ae)]),_0x21e464[_0x161eba(0x1a7)]&&delete _0x21e464[_0x161eba(0x1a7)],_0x4fd091['status'](_0x2bc804)['send'](_0x21e464);};}exports['index']=function(_0x3f00e0,_0x5ead4f){const _0x5601fe=a687_0x26928b;let _0x278679={};const _0x183840={},_0x4f4954={'count':0x0,'rows':[]},_0x48e415=_['map'](db[_0x5601fe(0x18d)]['rawAttributes'],function(_0x2705f5){const _0x16ad70=_0x5601fe;return{'name':_0x2705f5[_0x16ad70(0x1b5)],'type':_0x2705f5['type'][_0x16ad70(0x187)]};});_0x183840[_0x5601fe(0x198)]=_[_0x5601fe(0x1b4)](_0x48e415,'name'),_0x183840[_0x5601fe(0x18f)]=_['keys'](_0x3f00e0[_0x5601fe(0x18f)]),_0x183840[_0x5601fe(0x186)]=_[_0x5601fe(0x1b1)](_0x183840[_0x5601fe(0x198)],_0x183840[_0x5601fe(0x18f)]),_0x278679[_0x5601fe(0x1aa)]=_['intersection'](_0x183840[_0x5601fe(0x198)],qs[_0x5601fe(0x1a3)](_0x3f00e0['query'][_0x5601fe(0x1a3)])),_0x278679[_0x5601fe(0x1aa)]=_0x278679[_0x5601fe(0x1aa)][_0x5601fe(0x194)]?_0x278679[_0x5601fe(0x1aa)]:_0x183840[_0x5601fe(0x198)];typeof _0x3f00e0[_0x5601fe(0x18f)]['nolimit']===_0x5601fe(0x19e)&&(_0x278679[_0x5601fe(0x19d)]=qs['limit'](_0x3f00e0['query'][_0x5601fe(0x19d)]),_0x278679[_0x5601fe(0x197)]=qs['offset'](_0x3f00e0[_0x5601fe(0x18f)]['offset']));_0x278679['order']=qs[_0x5601fe(0x19f)](_0x3f00e0['query']['sort']),_0x278679['where']=qs['filters'](_[_0x5601fe(0x184)](_0x3f00e0[_0x5601fe(0x18f)],_0x183840[_0x5601fe(0x186)]),_0x48e415);_0x3f00e0[_0x5601fe(0x18f)][_0x5601fe(0x185)]&&(_0x278679[_0x5601fe(0x1a6)]=_[_0x5601fe(0x193)](_0x278679[_0x5601fe(0x1a6)],{[Op['or']]:_['map'](_0x48e415,function(_0x33fba8){const _0x32da9c=_0x5601fe;if(_0x33fba8[_0x32da9c(0x1b2)]!=='VIRTUAL'){const _0x2dcfdf={};return _0x2dcfdf[_0x33fba8['name']]={[Op[_0x32da9c(0x19a)]]:'%'+_0x3f00e0[_0x32da9c(0x18f)]['filter']+'%'},_0x2dcfdf;}})}));_0x278679=_[_0x5601fe(0x193)]({},_0x278679,_0x3f00e0[_0x5601fe(0x1a4)]);const _0x4a6ad3={'where':_0x278679[_0x5601fe(0x1a6)]};return db[_0x5601fe(0x18d)][_0x5601fe(0x192)](_0x4a6ad3)[_0x5601fe(0x1ac)](function(_0x44e8d8){const _0x4c160f=_0x5601fe;return _0x4f4954['count']=_0x44e8d8,_0x3f00e0[_0x4c160f(0x18f)][_0x4c160f(0x1a0)]&&(_0x278679[_0x4c160f(0x1ad)]=[{'all':!![]}]),db[_0x4c160f(0x18d)][_0x4c160f(0x1b3)](_0x278679);})['then'](function(_0x4fe536){const _0xf15ffa=_0x5601fe;return _0x4f4954[_0xf15ffa(0x18c)]=_0x4fe536,_0x4f4954;})['then'](respondWithFilteredResult(_0x5ead4f,_0x278679))[_0x5601fe(0x195)](handleError(_0x5ead4f,null));},exports[a687_0x26928b(0x191)]=function(_0x298adc,_0x318af2){const _0x5b8b06=a687_0x26928b;let _0xd14a47={'raw':!![],'where':{'id':_0x298adc[_0x5b8b06(0x189)]['id']}};const _0xb624d3={};return _0xb624d3[_0x5b8b06(0x198)]=_[_0x5b8b06(0x1a8)](db['SmsQueueReport'][_0x5b8b06(0x1a1)]),_0xb624d3[_0x5b8b06(0x18f)]=_[_0x5b8b06(0x1a8)](_0x298adc[_0x5b8b06(0x18f)]),_0xb624d3[_0x5b8b06(0x186)]=_['intersection'](_0xb624d3[_0x5b8b06(0x198)],_0xb624d3['query']),_0xd14a47[_0x5b8b06(0x1aa)]=_[_0x5b8b06(0x1b1)](_0xb624d3[_0x5b8b06(0x198)],qs[_0x5b8b06(0x1a3)](_0x298adc[_0x5b8b06(0x18f)]['fields'])),_0xd14a47[_0x5b8b06(0x1aa)]=_0xd14a47[_0x5b8b06(0x1aa)][_0x5b8b06(0x194)]?_0xd14a47[_0x5b8b06(0x1aa)]:_0xb624d3[_0x5b8b06(0x198)],_0x298adc['query'][_0x5b8b06(0x1a0)]&&(_0xd14a47[_0x5b8b06(0x1ad)]=[{'all':!![]}]),_0xd14a47=_['merge']({},_0xd14a47,_0x298adc['options']),db[_0x5b8b06(0x18d)][_0x5b8b06(0x190)](_0xd14a47)['then'](handleEntityNotFound(_0x318af2,null))['then'](respondWithResult(_0x318af2,null))[_0x5b8b06(0x195)](handleError(_0x318af2,null));},exports[a687_0x26928b(0x1ab)]=function(_0x2f0324,_0x97662){const _0x133027=a687_0x26928b;return db[_0x133027(0x18d)][_0x133027(0x1ab)](_0x2f0324[_0x133027(0x19b)],{})[_0x133027(0x1ac)](respondWithResult(_0x97662,0xc9))[_0x133027(0x195)](handleError(_0x97662,null));},exports[a687_0x26928b(0x196)]=function(_0x3dc9de,_0x21add9){const _0x2aad41=a687_0x26928b;return _0x3dc9de[_0x2aad41(0x19b)]['id']&&delete _0x3dc9de['body']['id'],db[_0x2aad41(0x18d)][_0x2aad41(0x190)]({'where':{'id':_0x3dc9de[_0x2aad41(0x189)]['id']}})['then'](handleEntityNotFound(_0x21add9,null))['then'](saveUpdates(_0x3dc9de['body'],null))[_0x2aad41(0x1ac)](respondWithResult(_0x21add9,null))[_0x2aad41(0x195)](handleError(_0x21add9,null));},exports[a687_0x26928b(0x1a9)]=function(_0x3a9f74,_0x31538e){const _0x411b97=a687_0x26928b;return db['SmsQueueReport'][_0x411b97(0x190)]({'where':{'id':_0x3a9f74[_0x411b97(0x189)]['id']}})['then'](handleEntityNotFound(_0x31538e,null))['then'](removeEntity(_0x31538e,null))[_0x411b97(0x195)](handleError(_0x31538e,null));},exports[a687_0x26928b(0x1b0)]=function(_0x337efb,_0x5625df){const _0x379634=a687_0x26928b;return db[_0x379634(0x18d)][_0x379634(0x1b0)]()[_0x379634(0x1ac)](respondWithResult(_0x5625df,null))[_0x379634(0x195)](handleError(_0x5625df,null));}; \ No newline at end of file diff --git a/server/api/smsQueueReport/smsQueueReport.model.js b/server/api/smsQueueReport/smsQueueReport.model.js index 05cd6dd..f74860e 100644 --- a/server/api/smsQueueReport/smsQueueReport.model.js +++ b/server/api/smsQueueReport/smsQueueReport.model.js @@ -1 +1 @@ -const a575_0x4f7f=['uniqueid','exports','SmsQueueReport','report_sms_queue'];(function(_0x63e842,_0x4f7fef){const _0x9d3e1d=function(_0x52960e){while(--_0x52960e){_0x63e842['push'](_0x63e842['shift']());}};_0x9d3e1d(++_0x4f7fef);}(a575_0x4f7f,0x15e));const a575_0x9d3e=function(_0x63e842,_0x4f7fef){_0x63e842=_0x63e842-0x0;let _0x9d3e1d=a575_0x4f7f[_0x63e842];return _0x9d3e1d;};const _0x1a07fa=a575_0x9d3e;'use strict';const attributes=require('./smsQueueReport.attributes');module[_0x1a07fa('0x3')]=function(_0x52960e){const _0x2adcde=_0x1a07fa,_0x363b55=_0x52960e['define'](_0x2adcde('0x0'),attributes,{'tableName':_0x2adcde('0x1'),'paranoid':![],'indexes':[{'name':_0x2adcde('0x2'),'fields':[_0x2adcde('0x2')]}],'timestamps':!![]});return _0x363b55;}; \ No newline at end of file +const a688_0x48d0=['init','./smsQueueReport.attributes','./smsQueueReport.options','function','exports','SmsQueueReport','sequelize'];(function(_0x1dc1e2,_0xc500a0){const _0x48d0e5=function(_0xad995c){while(--_0xad995c){_0x1dc1e2['push'](_0x1dc1e2['shift']());}};_0x48d0e5(++_0xc500a0);}(a688_0x48d0,0x1b1));const a688_0xad99=function(_0x1dc1e2,_0xc500a0){_0x1dc1e2=_0x1dc1e2-0x6b;let _0x48d0e5=a688_0x48d0[_0x1dc1e2];return _0x48d0e5;};const a688_0x1df49e=a688_0xad99;'use strict';const {Model}=require(a688_0x1df49e(0x6b)),{attributes}=require(a688_0x1df49e(0x6d)),{options}=require(a688_0x1df49e(0x6e));class SmsQueueReport extends Model{}function init(_0x3f8e00,_0x134c9f){const _0x36fd9a=a688_0x1df49e,_0x1e72ca=options(_0x3f8e00),_0x23d681=typeof _0x134c9f===_0x36fd9a(0x6f)?_0x134c9f(_0x1e72ca):_0x1e72ca;return SmsQueueReport[_0x36fd9a(0x6c)](attributes,_0x23d681),SmsQueueReport;}module['exports'][a688_0x1df49e(0x71)]=SmsQueueReport,module[a688_0x1df49e(0x70)]['init']=init; \ No newline at end of file diff --git a/server/api/smsQueueReport/smsQueueReport.options.js b/server/api/smsQueueReport/smsQueueReport.options.js new file mode 100644 index 0000000..ae9390f --- /dev/null +++ b/server/api/smsQueueReport/smsQueueReport.options.js @@ -0,0 +1 @@ +var a689_0x28da=['uniqueid','options','report_sms_queue'];(function(_0x46ed75,_0x4285b5){var _0x28da18=function(_0x2b7155){while(--_0x2b7155){_0x46ed75['push'](_0x46ed75['shift']());}};_0x28da18(++_0x4285b5);}(a689_0x28da,0x98));var a689_0x2b71=function(_0x46ed75,_0x4285b5){_0x46ed75=_0x46ed75-0x134;var _0x28da18=a689_0x28da[_0x46ed75];return _0x28da18;};var a689_0x464ae2=a689_0x2b71;function options(_0x5d99b4){var _0x43abc8=a689_0x2b71;return{'sequelize':_0x5d99b4,'tableName':_0x43abc8(0x134),'paranoid':![],'indexes':[{'name':'uniqueid','fields':[_0x43abc8(0x135)]}],'timestamps':!![]};}module['exports'][a689_0x464ae2(0x136)]=options; \ No newline at end of file diff --git a/server/api/smsQueueReport/smsQueueReport.rpc.js b/server/api/smsQueueReport/smsQueueReport.rpc.js index 0b02414..bcd2633 100644 --- a/server/api/smsQueueReport/smsQueueReport.rpc.js +++ b/server/api/smsQueueReport/smsQueueReport.rpc.js @@ -1 +1 @@ -const a576_0x9b9d=['SmsQueueReport','UpdateSmsQueueReport','info','stringify','body','../../mysqldb','catch','message','create','options','error','debug','limit','update','rpc','CreateSmsQueueReport','raw','then','../../config/logger'];(function(_0x6e95c8,_0x9b9dd6){const _0x294f83=function(_0x1ae890){while(--_0x1ae890){_0x6e95c8['push'](_0x6e95c8['shift']());}};_0x294f83(++_0x9b9dd6);}(a576_0x9b9d,0x12e));const a576_0x294f=function(_0x6e95c8,_0x9b9dd6){_0x6e95c8=_0x6e95c8-0x0;let _0x294f83=a576_0x9b9d[_0x6e95c8];return _0x294f83;};const _0x2d8627=a576_0x294f;'use strict';const db=require(_0x2d8627('0x7'))['db'],logger=require(_0x2d8627('0x1'))(_0x2d8627('0x10'));exports[_0x2d8627('0x11')]=function(_0x1ae890){const _0x4a1b0c=this;return new Promise(function(_0x506cdd,_0x2862f3){const _0x1eef88=a576_0x294f;return db[_0x1eef88('0x2')][_0x1eef88('0xa')](_0x1ae890[_0x1eef88('0x6')],{'raw':_0x1ae890[_0x1eef88('0xb')]?_0x1ae890[_0x1eef88('0xb')][_0x1eef88('0x12')]===undefined?!![]:![]:!![]})[_0x1eef88('0x0')](function(_0x131855){const _0x136347=_0x1eef88;logger[_0x136347('0x4')]('CreateSmsQueueReport',_0x1ae890),logger[_0x136347('0xd')](_0x136347('0x11'),_0x1ae890,JSON['stringify'](_0x131855)),_0x506cdd(_0x131855);})[_0x1eef88('0x8')](function(_0x39124a){const _0x34780d=_0x1eef88;logger[_0x34780d('0xc')]('CreateSmsQueueReport',_0x39124a[_0x34780d('0x9')],_0x1ae890),_0x2862f3(_0x4a1b0c['error'](0x1f4,_0x39124a[_0x34780d('0x9')]));});});},exports[_0x2d8627('0x3')]=function(_0x431516){const _0x2d3738=this;return new Promise(function(_0x52629a,_0x35203b){const _0x4e4faa=a576_0x294f;return db[_0x4e4faa('0x2')][_0x4e4faa('0xf')](_0x431516[_0x4e4faa('0x6')],{'raw':_0x431516['options']?_0x431516[_0x4e4faa('0xb')][_0x4e4faa('0x12')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x431516[_0x4e4faa('0xb')]?_0x431516[_0x4e4faa('0xb')]['where']||null:null,'attributes':_0x431516[_0x4e4faa('0xb')]?_0x431516[_0x4e4faa('0xb')]['attributes']||null:null,'limit':_0x431516[_0x4e4faa('0xb')]?_0x431516[_0x4e4faa('0xb')][_0x4e4faa('0xe')]||null:null})[_0x4e4faa('0x0')](function(_0x4f92fe){const _0x5895cb=_0x4e4faa;logger[_0x5895cb('0x4')]('UpdateSmsQueueReport',_0x431516),logger[_0x5895cb('0xd')]('UpdateSmsQueueReport',_0x431516,JSON[_0x5895cb('0x5')](_0x4f92fe)),_0x52629a(_0x4f92fe);})[_0x4e4faa('0x8')](function(_0x2842a8){const _0x371b5d=_0x4e4faa;logger[_0x371b5d('0xc')](_0x371b5d('0x3'),_0x2842a8[_0x371b5d('0x9')],_0x431516),_0x35203b(_0x2d3738[_0x371b5d('0xc')](0x1f4,_0x2842a8[_0x371b5d('0x9')]));});});}; \ No newline at end of file +const a690_0x15b1=['raw','where','CreateSmsQueueReport','body','catch','UpdateSmsQueueReport','options','rpc','message','SmsQueueReport','stringify','error','info','limit','create','../../config/logger','then','attributes'];(function(_0x4f47bd,_0x5f46d9){const _0x15b14e=function(_0x41440d){while(--_0x41440d){_0x4f47bd['push'](_0x4f47bd['shift']());}};_0x15b14e(++_0x5f46d9);}(a690_0x15b1,0x179));const a690_0x4144=function(_0x4f47bd,_0x5f46d9){_0x4f47bd=_0x4f47bd-0x19d;let _0x15b14e=a690_0x15b1[_0x4f47bd];return _0x15b14e;};const a690_0x165fea=a690_0x4144;'use strict';const db=require('../../mysqldb')['db'],logger=require(a690_0x165fea(0x1ad))(a690_0x165fea(0x1a5));exports[a690_0x165fea(0x1a0)]=function(_0x129f82){const _0x1f6782=this;return new Promise(function(_0x53aa79,_0x291dcb){const _0x26b16c=a690_0x4144;return db[_0x26b16c(0x1a7)][_0x26b16c(0x1ac)](_0x129f82[_0x26b16c(0x1a1)],{'raw':_0x129f82[_0x26b16c(0x1a4)]?_0x129f82['options'][_0x26b16c(0x19e)]===undefined?!![]:![]:!![]})[_0x26b16c(0x1ae)](function(_0x3496db){const _0x56bc72=_0x26b16c;logger[_0x56bc72(0x1aa)](_0x56bc72(0x1a0),_0x129f82),logger['debug'](_0x56bc72(0x1a0),_0x129f82,JSON[_0x56bc72(0x1a8)](_0x3496db)),_0x53aa79(_0x3496db);})[_0x26b16c(0x1a2)](function(_0x3ec557){const _0x4485f3=_0x26b16c;logger[_0x4485f3(0x1a9)]('CreateSmsQueueReport',_0x3ec557['message'],_0x129f82),_0x291dcb(_0x1f6782[_0x4485f3(0x1a9)](0x1f4,_0x3ec557['message']));});});},exports[a690_0x165fea(0x1a3)]=function(_0x35c0b8){const _0x44eb5c=this;return new Promise(function(_0x24ac94,_0x3974fd){const _0x4c1a42=a690_0x4144;return db[_0x4c1a42(0x1a7)]['update'](_0x35c0b8[_0x4c1a42(0x1a1)],{'raw':_0x35c0b8[_0x4c1a42(0x1a4)]?_0x35c0b8[_0x4c1a42(0x1a4)][_0x4c1a42(0x19e)]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x35c0b8[_0x4c1a42(0x1a4)]?_0x35c0b8[_0x4c1a42(0x1a4)][_0x4c1a42(0x19f)]||null:null,'attributes':_0x35c0b8[_0x4c1a42(0x1a4)]?_0x35c0b8[_0x4c1a42(0x1a4)][_0x4c1a42(0x19d)]||null:null,'limit':_0x35c0b8['options']?_0x35c0b8['options'][_0x4c1a42(0x1ab)]||null:null})[_0x4c1a42(0x1ae)](function(_0x10fa5a){const _0x492b26=_0x4c1a42;logger[_0x492b26(0x1aa)](_0x492b26(0x1a3),_0x35c0b8),logger['debug']('UpdateSmsQueueReport',_0x35c0b8,JSON[_0x492b26(0x1a8)](_0x10fa5a)),_0x24ac94(_0x10fa5a);})[_0x4c1a42(0x1a2)](function(_0x24bf8d){const _0x31588e=_0x4c1a42;logger[_0x31588e(0x1a9)]('UpdateSmsQueueReport',_0x24bf8d[_0x31588e(0x1a6)],_0x35c0b8),_0x3974fd(_0x44eb5c['error'](0x1f4,_0x24bf8d['message']));});});}; \ No newline at end of file diff --git a/server/api/smsTransferReport/index.js b/server/api/smsTransferReport/index.js index bdc807f..22b4f64 100644 --- a/server/api/smsTransferReport/index.js +++ b/server/api/smsTransferReport/index.js @@ -1 +1 @@ -const a577_0x434d=['delete','Router','/:id','put','get','isAuthenticated','create','express','describe','index','destroy','../../components/auth/service','/describe'];(function(_0x1fec64,_0x434dd8){const _0x4e833c=function(_0x9e9809){while(--_0x9e9809){_0x1fec64['push'](_0x1fec64['shift']());}};_0x4e833c(++_0x434dd8);}(a577_0x434d,0x9e));const a577_0x4e83=function(_0x1fec64,_0x434dd8){_0x1fec64=_0x1fec64-0x0;let _0x4e833c=a577_0x434d[_0x1fec64];return _0x4e833c;};const _0x295a21=a577_0x4e83;'use strict';const express=require(_0x295a21('0x5')),router=express[_0x295a21('0xc')](),auth=require(_0x295a21('0x9')),controller=require('./smsTransferReport.controller');router['get']('/',auth[_0x295a21('0x3')](),controller[_0x295a21('0x7')]),router[_0x295a21('0x2')](_0x295a21('0xa'),auth[_0x295a21('0x3')](),controller[_0x295a21('0x6')]),router['get']('/:id',auth[_0x295a21('0x3')](),controller['show']),router['post']('/',auth[_0x295a21('0x3')](),controller[_0x295a21('0x4')]),router[_0x295a21('0x1')](_0x295a21('0x0'),auth['isAuthenticated'](),controller['update']),router[_0x295a21('0xb')]('/:id',auth['isAuthenticated'](),controller[_0x295a21('0x8')]),module['exports']=router; \ No newline at end of file +const a691_0x211c=['post','/describe','/:id','get','create','../../components/auth/service','Router','isAuthenticated','update','describe','express','delete'];(function(_0x25a33b,_0x107baf){const _0x211c70=function(_0x2ff100){while(--_0x2ff100){_0x25a33b['push'](_0x25a33b['shift']());}};_0x211c70(++_0x107baf);}(a691_0x211c,0x90));const a691_0x2ff1=function(_0x25a33b,_0x107baf){_0x25a33b=_0x25a33b-0x1d3;let _0x211c70=a691_0x211c[_0x25a33b];return _0x211c70;};const a691_0x3a3421=a691_0x2ff1;'use strict';const express=require(a691_0x3a3421(0x1dd)),router=express[a691_0x3a3421(0x1d9)](),auth=require(a691_0x3a3421(0x1d8)),controller=require('./smsTransferReport.controller');router[a691_0x3a3421(0x1d6)]('/',auth[a691_0x3a3421(0x1da)](),controller['index']),router['get'](a691_0x3a3421(0x1d4),auth[a691_0x3a3421(0x1da)](),controller[a691_0x3a3421(0x1dc)]),router['get'](a691_0x3a3421(0x1d5),auth[a691_0x3a3421(0x1da)](),controller['show']),router[a691_0x3a3421(0x1d3)]('/',auth[a691_0x3a3421(0x1da)](),controller[a691_0x3a3421(0x1d7)]),router['put'](a691_0x3a3421(0x1d5),auth[a691_0x3a3421(0x1da)](),controller[a691_0x3a3421(0x1db)]),router[a691_0x3a3421(0x1de)](a691_0x3a3421(0x1d5),auth[a691_0x3a3421(0x1da)](),controller['destroy']),module['exports']=router; \ No newline at end of file diff --git a/server/api/smsTransferReport/smsTransferReport.attributes.js b/server/api/smsTransferReport/smsTransferReport.attributes.js index 6243561..0c3ae0a 100644 --- a/server/api/smsTransferReport/smsTransferReport.attributes.js +++ b/server/api/smsTransferReport/smsTransferReport.attributes.js @@ -1 +1 @@ -const a578_0x3009=['sequelize','agent','queue','NOW','STRING','DATE','ENUM'];(function(_0x807dc7,_0x30098a){const _0x3fb776=function(_0x33667e){while(--_0x33667e){_0x807dc7['push'](_0x807dc7['shift']());}};_0x3fb776(++_0x30098a);}(a578_0x3009,0x105));const a578_0x3fb7=function(_0x807dc7,_0x30098a){_0x807dc7=_0x807dc7-0x0;let _0x3fb776=a578_0x3009[_0x807dc7];return _0x3fb776;};const _0x55a1ae=a578_0x3fb7;'use strict';const Sequelize=require(_0x55a1ae('0x5'));module['exports']={'uniqueid':{'type':Sequelize[_0x55a1ae('0x2')],'allowNull':![]},'type':{'type':Sequelize[_0x55a1ae('0x4')]('account',_0x55a1ae('0x6'),_0x55a1ae('0x0')),'allowNull':![],'defaultValue':_0x55a1ae('0x0')},'transferredAt':{'type':Sequelize[_0x55a1ae('0x3')],'allowNull':![],'defaultValue':Sequelize[_0x55a1ae('0x1')]}}; \ No newline at end of file +const a692_0x4788=['NOW','DATE','STRING','attributes','sequelize','exports','ENUM'];(function(_0x41d855,_0xfd430e){const _0x478891=function(_0x58c2ca){while(--_0x58c2ca){_0x41d855['push'](_0x41d855['shift']());}};_0x478891(++_0xfd430e);}(a692_0x4788,0x10e));const a692_0x58c2=function(_0x41d855,_0xfd430e){_0x41d855=_0x41d855-0x18b;let _0x478891=a692_0x4788[_0x41d855];return _0x478891;};const a692_0x227279=a692_0x58c2;'use strict';const {DataTypes}=require(a692_0x227279(0x18b)),attributes={'uniqueid':{'type':DataTypes[a692_0x227279(0x190)],'allowNull':![]},'type':{'type':DataTypes[a692_0x227279(0x18d)]('account','agent','queue'),'allowNull':![],'defaultValue':'queue'},'transferredAt':{'type':DataTypes[a692_0x227279(0x18f)],'allowNull':![],'defaultValue':DataTypes[a692_0x227279(0x18e)]}};module[a692_0x227279(0x18c)][a692_0x227279(0x191)]=attributes; \ No newline at end of file diff --git a/server/api/smsTransferReport/smsTransferReport.controller.js b/server/api/smsTransferReport/smsTransferReport.controller.js index 0cf359e..8bbf228 100644 --- a/server/api/smsTransferReport/smsTransferReport.controller.js +++ b/server/api/smsTransferReport/smsTransferReport.controller.js @@ -1 +1 @@ -const a579_0x46df=['then','model','lodash','key','filters','status','destroy','VIRTUAL','keys','rawAttributes','attributes','stack','query','rows','sort','end','include','../../components/parsers/qs','SmsTransferReport','offset','create','map','json','show','nolimit','order','count','includeAll','catch','merge','describe','name','body','sequelize','fields','Content-Range','length','../../mysqldb','where','params','findOne','options','set','pick','limit','update','filter','intersection','sendStatus','index','error','type'];(function(_0x103537,_0x46df8f){const _0x6586c8=function(_0x4261c1){while(--_0x4261c1){_0x103537['push'](_0x103537['shift']());}};_0x6586c8(++_0x46df8f);}(a579_0x46df,0x1ac));const a579_0x6586=function(_0x103537,_0x46df8f){_0x103537=_0x103537-0x0;let _0x6586c8=a579_0x46df[_0x103537];return _0x6586c8;};const _0x1db81c=a579_0x6586;'use strict';const _=require(_0x1db81c('0x2a')),qs=require(_0x1db81c('0x5')),logger=require('../../config/logger')('api'),db=require(_0x1db81c('0x19'))['db'],{Op}=require(_0x1db81c('0x15'));function respondWithResult(_0x4261c1,_0x110ebd){return _0x110ebd=_0x110ebd||0xc8,function(_0x10db0c){const _0x555969=a579_0x6586;if(_0x10db0c)return _0x4261c1['status'](_0x110ebd)[_0x555969('0xa')](_0x10db0c);};}function respondWithFilteredResult(_0x26cfc3,_0x530ace){return function(_0x419812){const _0x2ed41c=a579_0x6586;if(_0x419812){const _0x2a191e=_0x419812[_0x2ed41c('0xe')],_0x53b435=_0x530ace[_0x2ed41c('0x7')];let _0x14b6d5=_0x530ace[_0x2ed41c('0x7')]+_0x530ace[_0x2ed41c('0x20')],_0xb5689d;return _0x14b6d5>=_0x2a191e?(_0x14b6d5=_0x2a191e,_0xb5689d=0xc8):_0xb5689d=0xce,_0x26cfc3['status'](_0xb5689d),_0x26cfc3[_0x2ed41c('0x1e')](_0x2ed41c('0x17'),_0x53b435+'-'+_0x14b6d5+'/'+_0x2a191e)[_0x2ed41c('0xa')](_0x419812);}return null;};}function saveUpdates(_0x2ad6fb){return function(_0x52f9da){const _0xf599a3=a579_0x6586;if(_0x52f9da)return _0x52f9da[_0xf599a3('0x21')](_0x2ad6fb)[_0xf599a3('0x28')](function(_0x539bce){return _0x539bce;});return null;};}function removeEntity(_0x40c456){return function(_0x554712){const _0x473ad7=a579_0x6586;if(_0x554712)return _0x554712[_0x473ad7('0x2e')]()[_0x473ad7('0x28')](function(){const _0x72bc15=_0x473ad7;_0x40c456['status'](0xcc)[_0x72bc15('0x3')]();});};}function handleEntityNotFound(_0x412c51){return function(_0x351398){const _0x4efab9=a579_0x6586;return!_0x351398&&_0x412c51[_0x4efab9('0x24')](0x194),_0x351398;};}function handleError(_0xa0802a,_0x4fefbc){return _0x4fefbc=_0x4fefbc||0x1f4,function(_0x44ddba){const _0x13a755=a579_0x6586;logger[_0x13a755('0x26')](_0x44ddba[_0x13a755('0x33')]),_0x44ddba[_0x13a755('0x13')]&&delete _0x44ddba[_0x13a755('0x13')],_0xa0802a[_0x13a755('0x2d')](_0x4fefbc)['send'](_0x44ddba);};}exports[_0x1db81c('0x25')]=function(_0x2a284f,_0x396508){const _0x3c0882=_0x1db81c;let _0x3d1a9c={};const _0x5a280b={},_0x3031ca={'count':0x0,'rows':[]},_0x26e1dd=_[_0x3c0882('0x9')](db[_0x3c0882('0x6')][_0x3c0882('0x31')],function(_0x4053c2){const _0x273324=_0x3c0882;return{'name':_0x4053c2['fieldName'],'type':_0x4053c2[_0x273324('0x27')][_0x273324('0x2b')]};});_0x5a280b[_0x3c0882('0x29')]=_[_0x3c0882('0x9')](_0x26e1dd,_0x3c0882('0x13')),_0x5a280b[_0x3c0882('0x0')]=_[_0x3c0882('0x30')](_0x2a284f['query']),_0x5a280b[_0x3c0882('0x2c')]=_['intersection'](_0x5a280b[_0x3c0882('0x29')],_0x5a280b['query']),_0x3d1a9c['attributes']=_[_0x3c0882('0x23')](_0x5a280b[_0x3c0882('0x29')],qs[_0x3c0882('0x16')](_0x2a284f['query'][_0x3c0882('0x16')])),_0x3d1a9c[_0x3c0882('0x32')]=_0x3d1a9c[_0x3c0882('0x32')][_0x3c0882('0x18')]?_0x3d1a9c[_0x3c0882('0x32')]:_0x5a280b[_0x3c0882('0x29')];typeof _0x2a284f['query'][_0x3c0882('0xc')]==='undefined'&&(_0x3d1a9c['limit']=qs[_0x3c0882('0x20')](_0x2a284f[_0x3c0882('0x0')]['limit']),_0x3d1a9c[_0x3c0882('0x7')]=qs[_0x3c0882('0x7')](_0x2a284f[_0x3c0882('0x0')]['offset']));_0x3d1a9c[_0x3c0882('0xd')]=qs['sort'](_0x2a284f[_0x3c0882('0x0')][_0x3c0882('0x2')]),_0x3d1a9c['where']=qs[_0x3c0882('0x2c')](_[_0x3c0882('0x1f')](_0x2a284f[_0x3c0882('0x0')],_0x5a280b[_0x3c0882('0x2c')]),_0x26e1dd);_0x2a284f[_0x3c0882('0x0')]['filter']&&(_0x3d1a9c['where']=_[_0x3c0882('0x11')](_0x3d1a9c[_0x3c0882('0x1a')],{[Op['or']]:_['map'](_0x26e1dd,function(_0x380585){const _0x22ed78=_0x3c0882;if(_0x380585[_0x22ed78('0x27')]!==_0x22ed78('0x2f')){const _0x2116ee={};return _0x2116ee[_0x380585['name']]={[Op['like']]:'%'+_0x2a284f['query'][_0x22ed78('0x22')]+'%'},_0x2116ee;}})}));_0x3d1a9c=_[_0x3c0882('0x11')]({},_0x3d1a9c,_0x2a284f[_0x3c0882('0x1d')]);const _0x26a811={'where':_0x3d1a9c['where']};return db[_0x3c0882('0x6')][_0x3c0882('0xe')](_0x26a811)[_0x3c0882('0x28')](function(_0x1a22f3){const _0x278005=_0x3c0882;return _0x3031ca[_0x278005('0xe')]=_0x1a22f3,_0x2a284f[_0x278005('0x0')][_0x278005('0xf')]&&(_0x3d1a9c[_0x278005('0x4')]=[{'all':!![]}]),db[_0x278005('0x6')]['findAll'](_0x3d1a9c);})[_0x3c0882('0x28')](function(_0x103eeb){const _0x42b200=_0x3c0882;return _0x3031ca[_0x42b200('0x1')]=_0x103eeb,_0x3031ca;})[_0x3c0882('0x28')](respondWithFilteredResult(_0x396508,_0x3d1a9c))[_0x3c0882('0x10')](handleError(_0x396508,null));},exports[_0x1db81c('0xb')]=function(_0x1dee24,_0x3eaefa){const _0x15e548=_0x1db81c;let _0x2b52f2={'raw':!![],'where':{'id':_0x1dee24['params']['id']}};const _0x3fc29a={};return _0x3fc29a[_0x15e548('0x29')]=_[_0x15e548('0x30')](db[_0x15e548('0x6')][_0x15e548('0x31')]),_0x3fc29a[_0x15e548('0x0')]=_['keys'](_0x1dee24[_0x15e548('0x0')]),_0x3fc29a[_0x15e548('0x2c')]=_[_0x15e548('0x23')](_0x3fc29a[_0x15e548('0x29')],_0x3fc29a[_0x15e548('0x0')]),_0x2b52f2[_0x15e548('0x32')]=_[_0x15e548('0x23')](_0x3fc29a[_0x15e548('0x29')],qs[_0x15e548('0x16')](_0x1dee24[_0x15e548('0x0')]['fields'])),_0x2b52f2['attributes']=_0x2b52f2[_0x15e548('0x32')][_0x15e548('0x18')]?_0x2b52f2[_0x15e548('0x32')]:_0x3fc29a['model'],_0x1dee24[_0x15e548('0x0')][_0x15e548('0xf')]&&(_0x2b52f2['include']=[{'all':!![]}]),_0x2b52f2=_['merge']({},_0x2b52f2,_0x1dee24[_0x15e548('0x1d')]),db[_0x15e548('0x6')][_0x15e548('0x1c')](_0x2b52f2)['then'](handleEntityNotFound(_0x3eaefa,null))[_0x15e548('0x28')](respondWithResult(_0x3eaefa,null))['catch'](handleError(_0x3eaefa,null));},exports[_0x1db81c('0x8')]=function(_0x12640a,_0x4e017c){const _0x420de7=_0x1db81c;return db[_0x420de7('0x6')][_0x420de7('0x8')](_0x12640a[_0x420de7('0x14')],{})[_0x420de7('0x28')](respondWithResult(_0x4e017c,0xc9))[_0x420de7('0x10')](handleError(_0x4e017c,null));},exports['update']=function(_0x259a3d,_0x164439){const _0x2634a2=_0x1db81c;return _0x259a3d['body']['id']&&delete _0x259a3d['body']['id'],db[_0x2634a2('0x6')][_0x2634a2('0x1c')]({'where':{'id':_0x259a3d['params']['id']}})[_0x2634a2('0x28')](handleEntityNotFound(_0x164439,null))[_0x2634a2('0x28')](saveUpdates(_0x259a3d[_0x2634a2('0x14')],null))[_0x2634a2('0x28')](respondWithResult(_0x164439,null))['catch'](handleError(_0x164439,null));},exports[_0x1db81c('0x2e')]=function(_0x10fe09,_0xdc8e22){const _0x2af942=_0x1db81c;return db[_0x2af942('0x6')]['findOne']({'where':{'id':_0x10fe09[_0x2af942('0x1b')]['id']}})[_0x2af942('0x28')](handleEntityNotFound(_0xdc8e22,null))[_0x2af942('0x28')](removeEntity(_0xdc8e22,null))[_0x2af942('0x10')](handleError(_0xdc8e22,null));},exports[_0x1db81c('0x12')]=function(_0x574c0b,_0x27282e){const _0x533bf4=_0x1db81c;return db[_0x533bf4('0x6')]['describe']()[_0x533bf4('0x28')](respondWithResult(_0x27282e,null))[_0x533bf4('0x10')](handleError(_0x27282e,null));}; \ No newline at end of file +const a693_0x4fe8=['rawAttributes','filter','../../config/logger','then','query','pick','set','index','includeAll','destroy','json','type','intersection','body','keys','sequelize','options','like','lodash','../../components/parsers/qs','catch','key','where','findOne','sort','filters','model','attributes','length','show','name','map','include','merge','fields','Content-Range','count','stack','limit','describe','VIRTUAL','offset','create','SmsTransferReport','status','fieldName','update','error','params','undefined','order'];(function(_0x44dd97,_0x44d62f){const _0x4fe8f5=function(_0x3fe990){while(--_0x3fe990){_0x44dd97['push'](_0x44dd97['shift']());}};_0x4fe8f5(++_0x44d62f);}(a693_0x4fe8,0x184));const a693_0x3fe9=function(_0x44dd97,_0x44d62f){_0x44dd97=_0x44dd97-0x1a3;let _0x4fe8f5=a693_0x4fe8[_0x44dd97];return _0x4fe8f5;};const a693_0xa9ecbf=a693_0x3fe9;'use strict';const _=require(a693_0xa9ecbf(0x1c9)),qs=require(a693_0xa9ecbf(0x1ca)),logger=require(a693_0xa9ecbf(0x1b9))('api'),{db}=require('../../mysqldb'),{Op}=require(a693_0xa9ecbf(0x1c6));function respondWithResult(_0x2fbe26,_0x5bf398){return _0x5bf398=_0x5bf398||0xc8,function(_0x34f35a){const _0x26e3b6=a693_0x3fe9;if(_0x34f35a)return _0x2fbe26[_0x26e3b6(0x1b0)](_0x5bf398)[_0x26e3b6(0x1c1)](_0x34f35a);};}function respondWithFilteredResult(_0x48d818,_0x473da8){return function(_0x4150a9){const _0x13c7df=a693_0x3fe9;if(_0x4150a9){const _0x392c7e=_0x4150a9[_0x13c7df(0x1a8)],_0x5a7479=_0x473da8['offset'];let _0x53cfcf=_0x473da8[_0x13c7df(0x1ad)]+_0x473da8[_0x13c7df(0x1aa)],_0xd24001;return _0x53cfcf>=_0x392c7e?(_0x53cfcf=_0x392c7e,_0xd24001=0xc8):_0xd24001=0xce,_0x48d818[_0x13c7df(0x1b0)](_0xd24001),_0x48d818[_0x13c7df(0x1bd)](_0x13c7df(0x1a7),_0x5a7479+'-'+_0x53cfcf+'/'+_0x392c7e)[_0x13c7df(0x1c1)](_0x4150a9);}return null;};}function saveUpdates(_0x76cec6){return function(_0x5dcbef){const _0x15db18=a693_0x3fe9;if(_0x5dcbef)return _0x5dcbef[_0x15db18(0x1b2)](_0x76cec6)[_0x15db18(0x1ba)](function(_0x4d19d7){return _0x4d19d7;});return null;};}function removeEntity(_0x5be479){return function(_0x3d30f4){const _0x40d456=a693_0x3fe9;if(_0x3d30f4)return _0x3d30f4[_0x40d456(0x1c0)]()['then'](function(){const _0x3c0e4a=_0x40d456;_0x5be479[_0x3c0e4a(0x1b0)](0xcc)['end']();});};}function handleEntityNotFound(_0x3fa26e){return function(_0xab234b){return!_0xab234b&&_0x3fa26e['sendStatus'](0x194),_0xab234b;};}function handleError(_0x20f592,_0x23c5a0){return _0x23c5a0=_0x23c5a0||0x1f4,function(_0x52a13d){const _0x40b6c6=a693_0x3fe9;logger[_0x40b6c6(0x1b3)](_0x52a13d[_0x40b6c6(0x1a9)]),_0x52a13d[_0x40b6c6(0x1d5)]&&delete _0x52a13d[_0x40b6c6(0x1d5)],_0x20f592[_0x40b6c6(0x1b0)](_0x23c5a0)['send'](_0x52a13d);};}exports[a693_0xa9ecbf(0x1be)]=function(_0x1df642,_0x333388){const _0x36d26e=a693_0xa9ecbf;let _0x1c3aa0={};const _0x364187={},_0x571441={'count':0x0,'rows':[]},_0x7e15c7=_[_0x36d26e(0x1a3)](db[_0x36d26e(0x1af)][_0x36d26e(0x1b7)],function(_0x1e4522){const _0x11f10b=_0x36d26e;return{'name':_0x1e4522[_0x11f10b(0x1b1)],'type':_0x1e4522[_0x11f10b(0x1c2)][_0x11f10b(0x1cc)]};});_0x364187[_0x36d26e(0x1d1)]=_[_0x36d26e(0x1a3)](_0x7e15c7,_0x36d26e(0x1d5)),_0x364187['query']=_[_0x36d26e(0x1c5)](_0x1df642[_0x36d26e(0x1bb)]),_0x364187[_0x36d26e(0x1d0)]=_[_0x36d26e(0x1c3)](_0x364187['model'],_0x364187[_0x36d26e(0x1bb)]),_0x1c3aa0['attributes']=_[_0x36d26e(0x1c3)](_0x364187[_0x36d26e(0x1d1)],qs[_0x36d26e(0x1a6)](_0x1df642[_0x36d26e(0x1bb)]['fields'])),_0x1c3aa0[_0x36d26e(0x1d2)]=_0x1c3aa0['attributes'][_0x36d26e(0x1d3)]?_0x1c3aa0[_0x36d26e(0x1d2)]:_0x364187[_0x36d26e(0x1d1)];typeof _0x1df642[_0x36d26e(0x1bb)]['nolimit']===_0x36d26e(0x1b5)&&(_0x1c3aa0[_0x36d26e(0x1aa)]=qs['limit'](_0x1df642[_0x36d26e(0x1bb)][_0x36d26e(0x1aa)]),_0x1c3aa0['offset']=qs[_0x36d26e(0x1ad)](_0x1df642[_0x36d26e(0x1bb)][_0x36d26e(0x1ad)]));_0x1c3aa0[_0x36d26e(0x1b6)]=qs[_0x36d26e(0x1cf)](_0x1df642[_0x36d26e(0x1bb)][_0x36d26e(0x1cf)]),_0x1c3aa0['where']=qs[_0x36d26e(0x1d0)](_[_0x36d26e(0x1bc)](_0x1df642[_0x36d26e(0x1bb)],_0x364187[_0x36d26e(0x1d0)]),_0x7e15c7);_0x1df642[_0x36d26e(0x1bb)]['filter']&&(_0x1c3aa0[_0x36d26e(0x1cd)]=_[_0x36d26e(0x1a5)](_0x1c3aa0['where'],{[Op['or']]:_[_0x36d26e(0x1a3)](_0x7e15c7,function(_0x2b4f17){const _0x160038=_0x36d26e;if(_0x2b4f17[_0x160038(0x1c2)]!==_0x160038(0x1ac)){const _0x543d63={};return _0x543d63[_0x2b4f17[_0x160038(0x1d5)]]={[Op[_0x160038(0x1c8)]]:'%'+_0x1df642[_0x160038(0x1bb)][_0x160038(0x1b8)]+'%'},_0x543d63;}})}));_0x1c3aa0=_[_0x36d26e(0x1a5)]({},_0x1c3aa0,_0x1df642[_0x36d26e(0x1c7)]);const _0x1bf705={'where':_0x1c3aa0['where']};return db[_0x36d26e(0x1af)][_0x36d26e(0x1a8)](_0x1bf705)[_0x36d26e(0x1ba)](function(_0x31d31f){const _0x466b16=_0x36d26e;return _0x571441[_0x466b16(0x1a8)]=_0x31d31f,_0x1df642[_0x466b16(0x1bb)][_0x466b16(0x1bf)]&&(_0x1c3aa0[_0x466b16(0x1a4)]=[{'all':!![]}]),db[_0x466b16(0x1af)]['findAll'](_0x1c3aa0);})['then'](function(_0x7bf67f){return _0x571441['rows']=_0x7bf67f,_0x571441;})[_0x36d26e(0x1ba)](respondWithFilteredResult(_0x333388,_0x1c3aa0))[_0x36d26e(0x1cb)](handleError(_0x333388,null));},exports[a693_0xa9ecbf(0x1d4)]=function(_0x1594f9,_0x2bbe27){const _0xc0c5e6=a693_0xa9ecbf;let _0x5e473d={'raw':!![],'where':{'id':_0x1594f9['params']['id']}};const _0x50523c={};return _0x50523c[_0xc0c5e6(0x1d1)]=_['keys'](db[_0xc0c5e6(0x1af)]['rawAttributes']),_0x50523c[_0xc0c5e6(0x1bb)]=_['keys'](_0x1594f9[_0xc0c5e6(0x1bb)]),_0x50523c[_0xc0c5e6(0x1d0)]=_[_0xc0c5e6(0x1c3)](_0x50523c[_0xc0c5e6(0x1d1)],_0x50523c['query']),_0x5e473d['attributes']=_[_0xc0c5e6(0x1c3)](_0x50523c['model'],qs[_0xc0c5e6(0x1a6)](_0x1594f9[_0xc0c5e6(0x1bb)][_0xc0c5e6(0x1a6)])),_0x5e473d[_0xc0c5e6(0x1d2)]=_0x5e473d[_0xc0c5e6(0x1d2)]['length']?_0x5e473d['attributes']:_0x50523c[_0xc0c5e6(0x1d1)],_0x1594f9[_0xc0c5e6(0x1bb)][_0xc0c5e6(0x1bf)]&&(_0x5e473d[_0xc0c5e6(0x1a4)]=[{'all':!![]}]),_0x5e473d=_[_0xc0c5e6(0x1a5)]({},_0x5e473d,_0x1594f9[_0xc0c5e6(0x1c7)]),db['SmsTransferReport'][_0xc0c5e6(0x1ce)](_0x5e473d)[_0xc0c5e6(0x1ba)](handleEntityNotFound(_0x2bbe27,null))[_0xc0c5e6(0x1ba)](respondWithResult(_0x2bbe27,null))[_0xc0c5e6(0x1cb)](handleError(_0x2bbe27,null));},exports[a693_0xa9ecbf(0x1ae)]=function(_0x1c7589,_0x3816ee){const _0x466d00=a693_0xa9ecbf;return db[_0x466d00(0x1af)]['create'](_0x1c7589[_0x466d00(0x1c4)],{})[_0x466d00(0x1ba)](respondWithResult(_0x3816ee,0xc9))[_0x466d00(0x1cb)](handleError(_0x3816ee,null));},exports[a693_0xa9ecbf(0x1b2)]=function(_0x245a34,_0x1db81b){const _0x5d2342=a693_0xa9ecbf;return _0x245a34[_0x5d2342(0x1c4)]['id']&&delete _0x245a34['body']['id'],db['SmsTransferReport'][_0x5d2342(0x1ce)]({'where':{'id':_0x245a34[_0x5d2342(0x1b4)]['id']}})[_0x5d2342(0x1ba)](handleEntityNotFound(_0x1db81b,null))[_0x5d2342(0x1ba)](saveUpdates(_0x245a34[_0x5d2342(0x1c4)],null))[_0x5d2342(0x1ba)](respondWithResult(_0x1db81b,null))[_0x5d2342(0x1cb)](handleError(_0x1db81b,null));},exports[a693_0xa9ecbf(0x1c0)]=function(_0x447ea2,_0x35bef9){const _0x4404ec=a693_0xa9ecbf;return db['SmsTransferReport'][_0x4404ec(0x1ce)]({'where':{'id':_0x447ea2[_0x4404ec(0x1b4)]['id']}})[_0x4404ec(0x1ba)](handleEntityNotFound(_0x35bef9,null))['then'](removeEntity(_0x35bef9,null))['catch'](handleError(_0x35bef9,null));},exports[a693_0xa9ecbf(0x1ab)]=function(_0x2fe5eb,_0x28e03d){const _0x51af98=a693_0xa9ecbf;return db[_0x51af98(0x1af)]['describe']()[_0x51af98(0x1ba)](respondWithResult(_0x28e03d,null))[_0x51af98(0x1cb)](handleError(_0x28e03d,null));}; \ No newline at end of file diff --git a/server/api/smsTransferReport/smsTransferReport.model.js b/server/api/smsTransferReport/smsTransferReport.model.js index 10ab4a3..b9476cd 100644 --- a/server/api/smsTransferReport/smsTransferReport.model.js +++ b/server/api/smsTransferReport/smsTransferReport.model.js @@ -1 +1 @@ -const a580_0x5afb=['define','uniqueid','exports','report_sms_transfer','./smsTransferReport.attributes'];(function(_0x5b1ef0,_0x5afbaf){const _0x4e5d73=function(_0x2d5ded){while(--_0x2d5ded){_0x5b1ef0['push'](_0x5b1ef0['shift']());}};_0x4e5d73(++_0x5afbaf);}(a580_0x5afb,0xcf));const a580_0x4e5d=function(_0x5b1ef0,_0x5afbaf){_0x5b1ef0=_0x5b1ef0-0x0;let _0x4e5d73=a580_0x5afb[_0x5b1ef0];return _0x4e5d73;};const _0xbc98d4=a580_0x4e5d;'use strict';const attributes=require(_0xbc98d4('0x2'));module[_0xbc98d4('0x0')]=function(_0x2d5ded){const _0x239e0f=_0xbc98d4,_0x45a5ec=_0x2d5ded[_0x239e0f('0x3')]('SmsTransferReport',attributes,{'tableName':_0x239e0f('0x1'),'paranoid':![],'indexes':[{'name':'uniqueid','fields':[_0x239e0f('0x4')]}],'timestamps':!![]});return _0x45a5ec;}; \ No newline at end of file +const a694_0x3d6c=['./smsTransferReport.attributes','init','exports','sequelize','SmsTransferReport','function'];(function(_0x1a6139,_0x48da29){const _0x3d6c91=function(_0xa2cf2d){while(--_0xa2cf2d){_0x1a6139['push'](_0x1a6139['shift']());}};_0x3d6c91(++_0x48da29);}(a694_0x3d6c,0x17b));const a694_0xa2cf=function(_0x1a6139,_0x48da29){_0x1a6139=_0x1a6139-0x12c;let _0x3d6c91=a694_0x3d6c[_0x1a6139];return _0x3d6c91;};const a694_0xd8d2b9=a694_0xa2cf;'use strict';const {Model}=require(a694_0xd8d2b9(0x12e)),{attributes}=require(a694_0xd8d2b9(0x131)),{options}=require('./smsTransferReport.options');class SmsTransferReport extends Model{}function init(_0x4f65de,_0xc8d0f2){const _0x4cf408=a694_0xd8d2b9,_0x39c6d0=options(_0x4f65de),_0x1453b8=typeof _0xc8d0f2===_0x4cf408(0x130)?_0xc8d0f2(_0x39c6d0):_0x39c6d0;return SmsTransferReport[_0x4cf408(0x12c)](attributes,_0x1453b8),SmsTransferReport;}module[a694_0xd8d2b9(0x12d)][a694_0xd8d2b9(0x12f)]=SmsTransferReport,module[a694_0xd8d2b9(0x12d)][a694_0xd8d2b9(0x12c)]=init; \ No newline at end of file diff --git a/server/api/smsTransferReport/smsTransferReport.options.js b/server/api/smsTransferReport/smsTransferReport.options.js new file mode 100644 index 0000000..b63d986 --- /dev/null +++ b/server/api/smsTransferReport/smsTransferReport.options.js @@ -0,0 +1 @@ +var a695_0x145d=['report_sms_transfer','exports','uniqueid'];(function(_0x4fe92d,_0x4d6f54){var _0x145d05=function(_0x35190f){while(--_0x35190f){_0x4fe92d['push'](_0x4fe92d['shift']());}};_0x145d05(++_0x4d6f54);}(a695_0x145d,0x113));var a695_0x3519=function(_0x4fe92d,_0x4d6f54){_0x4fe92d=_0x4fe92d-0xcb;var _0x145d05=a695_0x145d[_0x4fe92d];return _0x145d05;};var a695_0x42dbed=a695_0x3519;function options(_0x9d5a39){var _0x3a82ff=a695_0x3519;return{'sequelize':_0x9d5a39,'tableName':_0x3a82ff(0xcc),'paranoid':![],'indexes':[{'name':'uniqueid','fields':[_0x3a82ff(0xcb)]}],'timestamps':!![]};}module[a695_0x42dbed(0xcd)]['options']=options; \ No newline at end of file diff --git a/server/api/sound/index.js b/server/api/sound/index.js index 603c908..042ed05 100644 --- a/server/api/sound/index.js +++ b/server/api/sound/index.js @@ -1 +1 @@ -const a581_0x18c6=['join','./sound.controller','isAuthenticated','post','root','file','get','update','index','delete','files/sounds/original/','multer','format','../../components/auth/service','exports','basename','replace','single','originalname','diskStorage','express','extname','/:id/download','/:id','Router','download','../../config/environment','%s-%s%s','now'];(function(_0x19d360,_0x18c6cc){const _0x421cdb=function(_0x5b98b7){while(--_0x5b98b7){_0x19d360['push'](_0x19d360['shift']());}};_0x421cdb(++_0x18c6cc);}(a581_0x18c6,0x166));const a581_0x421c=function(_0x19d360,_0x18c6cc){_0x19d360=_0x19d360-0x0;let _0x421cdb=a581_0x18c6[_0x19d360];return _0x421cdb;};const _0x1c0d59=a581_0x421c;'use strict';const multer=require(_0x1c0d59('0x1')),util=require('util'),path=require('path'),express=require(_0x1c0d59('0xa')),router=express[_0x1c0d59('0xe')](),auth=require(_0x1c0d59('0x3')),config=require(_0x1c0d59('0x10')),controller=require(_0x1c0d59('0x14'));router[_0x1c0d59('0x19')]('/',auth[_0x1c0d59('0x15')](),controller[_0x1c0d59('0x1b')]),router[_0x1c0d59('0x19')](_0x1c0d59('0xd'),auth[_0x1c0d59('0x15')](),controller['show']),router[_0x1c0d59('0x19')](_0x1c0d59('0xc'),auth[_0x1c0d59('0x15')](),controller[_0x1c0d59('0xf')]);const upload=multer({'storage':multer[_0x1c0d59('0x9')]({'destination':function(_0x5b98b7,_0x413d59,_0x9b1b12){const _0x5c13eb=_0x1c0d59;_0x9b1b12(null,path[_0x5c13eb('0x13')](config[_0x5c13eb('0x17')],_0x5c13eb('0x0')));},'filename':function(_0x288641,_0x358471,_0x4f5ea6){const _0x3fc18c=_0x1c0d59;_0x358471[_0x3fc18c('0x8')]=_0x358471['originalname'][_0x3fc18c('0x6')](/[+@&/\\#,+()$~%'":*?<>{}\s\\|]/g,'-'),_0x4f5ea6(null,util[_0x3fc18c('0x2')](_0x3fc18c('0x11'),path[_0x3fc18c('0x5')](_0x358471[_0x3fc18c('0x8')],path[_0x3fc18c('0xb')](_0x358471['originalname'])),Date[_0x3fc18c('0x12')](),path[_0x3fc18c('0xb')](_0x358471['originalname'])));}})});router[_0x1c0d59('0x16')]('/',upload[_0x1c0d59('0x7')](_0x1c0d59('0x18')),controller['create']),router['put'](_0x1c0d59('0xd'),auth[_0x1c0d59('0x15')](),controller[_0x1c0d59('0x1a')]),router[_0x1c0d59('0x1c')]('/:id',auth[_0x1c0d59('0x15')](),controller['delete']),module[_0x1c0d59('0x4')]=router; \ No newline at end of file +const a696_0x5778=['now','./sound.controller','root','util','format','originalname','path','extname','diskStorage','isAuthenticated','download','basename','express','multer','get','replace','delete','/:id','create','%s-%s%s','single','files/sounds/original/','join'];(function(_0x5d2f9b,_0x1a0e39){const _0x57785d=function(_0x53cec0){while(--_0x53cec0){_0x5d2f9b['push'](_0x5d2f9b['shift']());}};_0x57785d(++_0x1a0e39);}(a696_0x5778,0x157));const a696_0x53ce=function(_0x5d2f9b,_0x1a0e39){_0x5d2f9b=_0x5d2f9b-0x8d;let _0x57785d=a696_0x5778[_0x5d2f9b];return _0x57785d;};const a696_0x4e3a6d=a696_0x53ce;'use strict';const multer=require(a696_0x4e3a6d(0x9c)),util=require(a696_0x4e3a6d(0x92)),path=require(a696_0x4e3a6d(0x95)),express=require(a696_0x4e3a6d(0x9b)),router=express['Router'](),auth=require('../../components/auth/service'),config=require('../../config/environment'),controller=require(a696_0x4e3a6d(0x90));router[a696_0x4e3a6d(0x9d)]('/',auth[a696_0x4e3a6d(0x98)](),controller['index']),router[a696_0x4e3a6d(0x9d)](a696_0x4e3a6d(0xa0),auth[a696_0x4e3a6d(0x98)](),controller['show']),router[a696_0x4e3a6d(0x9d)]('/:id/download',auth['isAuthenticated'](),controller[a696_0x4e3a6d(0x99)]);const upload=multer({'storage':multer[a696_0x4e3a6d(0x97)]({'destination':function(_0x2920f7,_0x4dc226,_0x5a777f){const _0x49a374=a696_0x4e3a6d;_0x5a777f(null,path[_0x49a374(0x8e)](config[_0x49a374(0x91)],_0x49a374(0x8d)));},'filename':function(_0x386884,_0x1cbc3b,_0x4693cc){const _0xe431eb=a696_0x4e3a6d;_0x1cbc3b[_0xe431eb(0x94)]=_0x1cbc3b[_0xe431eb(0x94)][_0xe431eb(0x9e)](/[+@&/\\#,+()$~%'":*?<>{}\s\\|]/g,'-'),_0x4693cc(null,util[_0xe431eb(0x93)](_0xe431eb(0xa2),path[_0xe431eb(0x9a)](_0x1cbc3b[_0xe431eb(0x94)],path[_0xe431eb(0x96)](_0x1cbc3b[_0xe431eb(0x94)])),Date[_0xe431eb(0x8f)](),path['extname'](_0x1cbc3b[_0xe431eb(0x94)])));}})});router['post']('/',upload[a696_0x4e3a6d(0xa3)]('file'),controller[a696_0x4e3a6d(0xa1)]),router['put']('/:id',auth['isAuthenticated'](),controller['update']),router[a696_0x4e3a6d(0x9f)](a696_0x4e3a6d(0xa0),auth['isAuthenticated'](),controller[a696_0x4e3a6d(0x9f)]),module['exports']=router; \ No newline at end of file diff --git a/server/api/sound/sound.attributes.js b/server/api/sound/sound.attributes.js index 0fd682e..da3ca6b 100644 --- a/server/api/sound/sound.attributes.js +++ b/server/api/sound/sound.attributes.js @@ -1 +1 @@ -const a582_0x5ae5=['BIGINT','sequelize','STRING','exports','FLOAT','name','INTEGER'];(function(_0x3bfa4b,_0x5ae5b3){const _0x12dee2=function(_0x46f3e0){while(--_0x46f3e0){_0x3bfa4b['push'](_0x3bfa4b['shift']());}};_0x12dee2(++_0x5ae5b3);}(a582_0x5ae5,0x129));const a582_0x12de=function(_0x3bfa4b,_0x5ae5b3){_0x3bfa4b=_0x3bfa4b-0x0;let _0x12dee2=a582_0x5ae5[_0x3bfa4b];return _0x12dee2;};const _0x48a134=a582_0x12de;'use strict';const Sequelize=require(_0x48a134('0x5'));module[_0x48a134('0x0')]={'name':{'type':Sequelize[_0x48a134('0x6')],'unique':_0x48a134('0x2'),'allowNull':![]},'save_name':{'type':Sequelize[_0x48a134('0x6')]},'display_name':{'type':Sequelize['STRING'],'defaultValue':''},'description':{'type':Sequelize['STRING']},'original_format':{'type':Sequelize[_0x48a134('0x6')]},'original_duration':{'type':Sequelize['FLOAT']},'original_sampleCount':{'type':Sequelize[_0x48a134('0x4')]},'original_channelCount':{'type':Sequelize[_0x48a134('0x3')]},'original_bitRate':{'type':Sequelize[_0x48a134('0x4')]},'original_sampleRate':{'type':Sequelize[_0x48a134('0x3')]},'converted_format':{'type':Sequelize[_0x48a134('0x6')]},'converted_duration':{'type':Sequelize[_0x48a134('0x1')]},'converted_sampleCount':{'type':Sequelize[_0x48a134('0x4')]},'converted_channelCount':{'type':Sequelize['INTEGER']},'converted_bitRate':{'type':Sequelize['BIGINT']},'converted_sampleRate':{'type':Sequelize['INTEGER']}}; \ No newline at end of file +const a697_0x2ea3=['BIGINT','sequelize','STRING','attributes','INTEGER','name','FLOAT'];(function(_0x1e8c9a,_0x18926f){const _0x2ea398=function(_0x114d06){while(--_0x114d06){_0x1e8c9a['push'](_0x1e8c9a['shift']());}};_0x2ea398(++_0x18926f);}(a697_0x2ea3,0x14f));const a697_0x114d=function(_0x1e8c9a,_0x18926f){_0x1e8c9a=_0x1e8c9a-0x143;let _0x2ea398=a697_0x2ea3[_0x1e8c9a];return _0x2ea398;};const a697_0x5326cc=a697_0x114d;'use strict';const {DataTypes}=require(a697_0x5326cc(0x145)),attributes={'name':{'type':DataTypes['STRING'],'unique':a697_0x5326cc(0x149),'allowNull':![]},'save_name':{'type':DataTypes[a697_0x5326cc(0x146)]},'display_name':{'type':DataTypes[a697_0x5326cc(0x146)],'defaultValue':''},'description':{'type':DataTypes['STRING']},'original_format':{'type':DataTypes[a697_0x5326cc(0x146)]},'original_duration':{'type':DataTypes[a697_0x5326cc(0x143)]},'original_sampleCount':{'type':DataTypes[a697_0x5326cc(0x144)]},'original_channelCount':{'type':DataTypes[a697_0x5326cc(0x148)]},'original_bitRate':{'type':DataTypes['BIGINT']},'original_sampleRate':{'type':DataTypes['INTEGER']},'converted_format':{'type':DataTypes['STRING']},'converted_duration':{'type':DataTypes['FLOAT']},'converted_sampleCount':{'type':DataTypes[a697_0x5326cc(0x144)]},'converted_channelCount':{'type':DataTypes[a697_0x5326cc(0x148)]},'converted_bitRate':{'type':DataTypes[a697_0x5326cc(0x144)]},'converted_sampleRate':{'type':DataTypes['INTEGER']}};module['exports'][a697_0x5326cc(0x147)]=attributes; \ No newline at end of file diff --git a/server/api/sound/sound.controller.js b/server/api/sound/sound.controller.js index a967fe8..18f930b 100644 --- a/server/api/sound/sound.controller.js +++ b/server/api/sound/sound.controller.js @@ -1 +1 @@ -const a583_0x457b=['then','Sound\x20not\x20found','merge','show','end','%s.%s','index','basename','original_channelCount','filters','extname','converted_format','undefined','existsSync','fields','status','limit','wav','original_sampleRate','util','duration','../../config/environment','get','type','chmodSync','pick','original_duration','download','original_format','original_sampleCount','query','bitRate','sendStatus','converted_channelCount','body','set','userProfileId','update','../../mysqldb','0777','server/files/sounds/original','role','VIRTUAL','error','server/files/sounds/converted','sampleRate','options','root','join','length','filename','where','src','Sounds','description','rows','Unable\x20to\x20retrieve\x20the\x20current\x20user','count','json','destroy','keys','Sound\x20upload\x20destination:\x20%s','nolimit','map','sox','originalname','stack','unlinkSync','file','Sound\x20upload\x20filepath:\x20%s','filter','intersection','sampleCount','UserProfileSection','../../config/logger','include','attributes','substring','converted_sampleCount','save_name','dest','findOne','Content-Range','params','key','send','format','create','includeAll','transcode','rawAttributes','order','like','name','original_bitRate','delete','UserProfileResource','offset','catch','Sound','model','lodash','channelCount','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s'];(function(_0xe74dbb,_0x457b6a){const _0x1c2e48=function(_0x4869a3){while(--_0x4869a3){_0xe74dbb['push'](_0xe74dbb['shift']());}};_0x1c2e48(++_0x457b6a);}(a583_0x457b,0xca));const a583_0x1c2e=function(_0xe74dbb,_0x457b6a){_0xe74dbb=_0xe74dbb-0x0;let _0x1c2e48=a583_0x457b[_0xe74dbb];return _0x1c2e48;};const _0x1eceac=a583_0x1c2e;'use strict';const util=require(_0x1eceac('0x19')),path=require('path'),sox=require(_0x1eceac('0x46')),fs=require('fs'),_=require(_0x1eceac('0x3')),qs=require('../../components/parsers/qs'),logger=require(_0x1eceac('0x50'))('api'),config=require(_0x1eceac('0x1b')),db=require(_0x1eceac('0x2c'))['db'],{Op,ValidationError}=require('sequelize');function respondWithResult(_0x4869a3,_0x41699a){return _0x41699a=_0x41699a||0xc8,function(_0x4d1559){const _0x20a465=a583_0x1c2e;if(_0x4d1559)return _0x4869a3[_0x20a465('0x15')](_0x41699a)['json'](_0x4d1559);};}function respondWithFilteredResult(_0x2f5b54,_0x1ebeb8){return function(_0x5e21f1){const _0x11bc9f=a583_0x1c2e;if(_0x5e21f1){const _0x3635ac=_0x5e21f1[_0x11bc9f('0x3f')],_0x33dd4a=_0x1ebeb8['offset'];let _0x397c76=_0x1ebeb8[_0x11bc9f('0x67')]+_0x1ebeb8['limit'],_0xb026b1;return _0x397c76>=_0x3635ac?(_0x397c76=_0x3635ac,_0xb026b1=0xc8):_0xb026b1=0xce,_0x2f5b54['status'](_0xb026b1),_0x2f5b54[_0x11bc9f('0x29')](_0x11bc9f('0x58'),_0x33dd4a+'-'+_0x397c76+'/'+_0x3635ac)[_0x11bc9f('0x40')](_0x5e21f1);}return null;};}function saveUpdates(_0x1cba6e){return function(_0x206f67){const _0x31102f=a583_0x1c2e;if(_0x206f67)return _0x206f67[_0x31102f('0x2b')](_0x1cba6e)[_0x31102f('0x6')](function(_0x214528){return _0x214528;});return null;};}function handleEntityNotFound(_0x3e1fc9){return function(_0x1eca8f){const _0x150a30=a583_0x1c2e;return!_0x1eca8f&&_0x3e1fc9[_0x150a30('0x26')](0x194),_0x1eca8f;};}function handleError(_0x1d93ac,_0x1be3e3){return _0x1be3e3=_0x1be3e3||0x1f4,function(_0x433822){const _0x59a01b=a583_0x1c2e;logger[_0x59a01b('0x31')](_0x433822[_0x59a01b('0x48')]),_0x433822['name']&&delete _0x433822[_0x59a01b('0x63')],_0x1d93ac[_0x59a01b('0x15')](_0x1be3e3)[_0x59a01b('0x5b')](_0x433822);};}exports[_0x1eceac('0xc')]=function(_0x3eb2e7,_0x37912d){const _0x10712e=_0x1eceac;let _0x232cd5={};const _0xa26889={},_0x19e86c={'count':0x0,'rows':[]},_0x7e100a=_['map'](db[_0x10712e('0x1')][_0x10712e('0x60')],function(_0x456539){const _0x8b72f8=_0x10712e;return{'name':_0x456539['fieldName'],'type':_0x456539[_0x8b72f8('0x1d')][_0x8b72f8('0x5a')]};});_0xa26889['model']=_[_0x10712e('0x45')](_0x7e100a,_0x10712e('0x63')),_0xa26889[_0x10712e('0x24')]=_[_0x10712e('0x42')](_0x3eb2e7[_0x10712e('0x24')]),_0xa26889[_0x10712e('0xf')]=_[_0x10712e('0x4d')](_0xa26889[_0x10712e('0x2')],_0xa26889['query']),_0x232cd5[_0x10712e('0x52')]=_['intersection'](_0xa26889[_0x10712e('0x2')],qs[_0x10712e('0x14')](_0x3eb2e7[_0x10712e('0x24')][_0x10712e('0x14')])),_0x232cd5['attributes']=_0x232cd5[_0x10712e('0x52')][_0x10712e('0x37')]?_0x232cd5[_0x10712e('0x52')]:_0xa26889['model'];typeof _0x3eb2e7['query'][_0x10712e('0x44')]===_0x10712e('0x12')&&(_0x232cd5[_0x10712e('0x16')]=qs[_0x10712e('0x16')](_0x3eb2e7[_0x10712e('0x24')]['limit']),_0x232cd5['offset']=qs[_0x10712e('0x67')](_0x3eb2e7[_0x10712e('0x24')][_0x10712e('0x67')]));_0x232cd5[_0x10712e('0x61')]=qs['sort'](_0x3eb2e7[_0x10712e('0x24')]['sort']),_0x232cd5[_0x10712e('0x39')]=qs[_0x10712e('0xf')](_[_0x10712e('0x1f')](_0x3eb2e7[_0x10712e('0x24')],_0xa26889[_0x10712e('0xf')]),_0x7e100a);_0x3eb2e7[_0x10712e('0x24')][_0x10712e('0x4c')]&&(_0x232cd5[_0x10712e('0x39')]=_['merge'](_0x232cd5[_0x10712e('0x39')],{[Op['or']]:_[_0x10712e('0x45')](_0x7e100a,function(_0x1073f1){const _0x44e03f=_0x10712e;if(_0x1073f1[_0x44e03f('0x1d')]!==_0x44e03f('0x30')){const _0x4cbe35={};return _0x4cbe35[_0x1073f1[_0x44e03f('0x63')]]={[Op[_0x44e03f('0x62')]]:'%'+_0x3eb2e7[_0x44e03f('0x24')][_0x44e03f('0x4c')]+'%'},_0x4cbe35;}})}));_0x232cd5=_[_0x10712e('0x8')]({},_0x232cd5,_0x3eb2e7[_0x10712e('0x34')]);const _0x739b3e={'where':_0x232cd5['where']};return db['Sound'][_0x10712e('0x3f')](_0x739b3e)[_0x10712e('0x6')](function(_0xd74f){const _0x33d679=_0x10712e;return _0x19e86c[_0x33d679('0x3f')]=_0xd74f,_0x3eb2e7['query'][_0x33d679('0x5e')]&&(_0x232cd5[_0x33d679('0x51')]=[{'all':!![]}]),db['Sound']['findAll'](_0x232cd5);})[_0x10712e('0x6')](function(_0x17aa02){const _0x3b55d7=_0x10712e;return _0x19e86c[_0x3b55d7('0x3d')]=_0x17aa02,_0x19e86c;})[_0x10712e('0x6')](respondWithFilteredResult(_0x37912d,_0x232cd5))[_0x10712e('0x0')](handleError(_0x37912d,null));},exports[_0x1eceac('0x9')]=function(_0x18febf,_0x148595){const _0x55b061=_0x1eceac;let _0x17cb05={'raw':!![],'where':{'id':_0x18febf[_0x55b061('0x59')]['id']}};const _0x428227={};return _0x428227[_0x55b061('0x2')]=_['keys'](db[_0x55b061('0x1')][_0x55b061('0x60')]),_0x428227[_0x55b061('0x24')]=_[_0x55b061('0x42')](_0x18febf['query']),_0x428227['filters']=_[_0x55b061('0x4d')](_0x428227[_0x55b061('0x2')],_0x428227[_0x55b061('0x24')]),_0x17cb05['attributes']=_['intersection'](_0x428227[_0x55b061('0x2')],qs[_0x55b061('0x14')](_0x18febf[_0x55b061('0x24')]['fields'])),_0x17cb05['attributes']=_0x17cb05[_0x55b061('0x52')][_0x55b061('0x37')]?_0x17cb05['attributes']:_0x428227[_0x55b061('0x2')],_0x18febf[_0x55b061('0x24')]['includeAll']&&(_0x17cb05[_0x55b061('0x51')]=[{'all':!![]}]),_0x17cb05=_[_0x55b061('0x8')]({},_0x17cb05,_0x18febf[_0x55b061('0x34')]),db[_0x55b061('0x1')][_0x55b061('0x57')](_0x17cb05)[_0x55b061('0x6')](handleEntityNotFound(_0x148595,null))['then'](respondWithResult(_0x148595,null))[_0x55b061('0x0')](handleError(_0x148595,null));},exports[_0x1eceac('0x21')]=function(_0x3f1824,_0x53e413){const _0x23030c=_0x1eceac;return db['Sound'][_0x23030c('0x57')]({'where':{'id':_0x3f1824[_0x23030c('0x59')]['id']},'attributes':['name','save_name',_0x23030c('0x11')],'raw':!![]})[_0x23030c('0x6')](handleEntityNotFound(_0x53e413,null))['then'](function(_0x4c3b07){const _0x5a5094=_0x23030c;if(_0x4c3b07){if(!fs[_0x5a5094('0x13')](path[_0x5a5094('0x36')](config[_0x5a5094('0x35')],_0x5a5094('0x32'),_0x4c3b07['save_name']+'.'+_0x4c3b07[_0x5a5094('0x11')])))throw new ValidationError(_0x5a5094('0x7'));return _0x53e413[_0x5a5094('0x21')](path[_0x5a5094('0x36')](config[_0x5a5094('0x35')],'server/files/sounds/converted',util[_0x5a5094('0x5c')](_0x5a5094('0xb'),_0x4c3b07[_0x5a5094('0x55')],_0x4c3b07[_0x5a5094('0x11')])),util[_0x5a5094('0x5c')](_0x5a5094('0xb'),_0x4c3b07[_0x5a5094('0x63')],_0x4c3b07[_0x5a5094('0x11')]));}return null;})[_0x23030c('0x0')](handleError(_0x53e413,null));},exports['create']=function(_0x16b807,_0x1c8c6f){const _0x7a6a29=_0x1eceac,_0xc252e3={'name':path[_0x7a6a29('0xd')](_0x16b807['file']['originalname'],path[_0x7a6a29('0x10')](_0x16b807[_0x7a6a29('0x4a')][_0x7a6a29('0x47')])),'save_name':path[_0x7a6a29('0xd')](_0x16b807['file'][_0x7a6a29('0x38')],path[_0x7a6a29('0x10')](_0x16b807[_0x7a6a29('0x4a')][_0x7a6a29('0x38')])),'original_format':path[_0x7a6a29('0x10')](_0x16b807[_0x7a6a29('0x4a')][_0x7a6a29('0x47')])[_0x7a6a29('0x53')](0x1),'converted_format':_0x7a6a29('0x17')},_0x18153a=path[_0x7a6a29('0x36')](config[_0x7a6a29('0x35')],_0x7a6a29('0x2e'),_0x16b807[_0x7a6a29('0x4a')][_0x7a6a29('0x38')]),_0x5e020b=path[_0x7a6a29('0x36')](config[_0x7a6a29('0x35')],_0x7a6a29('0x32'),util[_0x7a6a29('0x5c')](_0x7a6a29('0xb'),path[_0x7a6a29('0xd')](_0x16b807[_0x7a6a29('0x4a')][_0x7a6a29('0x38')],path['extname'](_0x16b807[_0x7a6a29('0x4a')][_0x7a6a29('0x38')])),_0xc252e3['converted_format']));logger['info'](_0x7a6a29('0x4b'),_0x18153a),logger['info'](_0x7a6a29('0x43'),_0x5e020b);try{fs[_0x7a6a29('0x1e')](_0x18153a,parseInt(_0x7a6a29('0x2d'),0x8));const _0x427de1=sox[_0x7a6a29('0x5f')](_0x18153a,_0x5e020b,{'sampleRate':0x1f40,'format':_0x7a6a29('0x17'),'channelCount':0x1,'bitRate':0xc0*0x400,'compressionQuality':0x5});_0x427de1['on'](_0x7a6a29('0x31'),function(_0x543ceb){const _0x2c4041=_0x7a6a29;fs[_0x2c4041('0x49')](_0x18153a),_0x1c8c6f[_0x2c4041('0x15')](0x1f4)[_0x2c4041('0x5b')](_0x543ceb);}),_0x427de1['on'](_0x7a6a29('0x3a'),function(_0x42f0f9){const _0x3d9dcd=_0x7a6a29;_0xc252e3[_0x3d9dcd('0x20')]=isNaN(_0x42f0f9['duration'])?null:_0x42f0f9['duration']*0x3e8,_0xc252e3[_0x3d9dcd('0x23')]=isNaN(_0x42f0f9[_0x3d9dcd('0x4e')])?null:_0x42f0f9['sampleCount'],_0xc252e3[_0x3d9dcd('0xe')]=isNaN(_0x42f0f9[_0x3d9dcd('0x4')])?null:_0x42f0f9[_0x3d9dcd('0x4')],_0xc252e3[_0x3d9dcd('0x64')]=isNaN(_0x42f0f9[_0x3d9dcd('0x25')])?null:_0x42f0f9[_0x3d9dcd('0x25')],_0xc252e3[_0x3d9dcd('0x18')]=isNaN(_0x42f0f9[_0x3d9dcd('0x33')])?null:_0x42f0f9[_0x3d9dcd('0x33')];}),_0x427de1['on'](_0x7a6a29('0x56'),function(_0x3fea47){const _0x2f4603=_0x7a6a29;_0xc252e3['converted_duration']=isNaN(_0x3fea47['duration'])?null:_0x3fea47[_0x2f4603('0x1a')]*0x3e8,_0xc252e3[_0x2f4603('0x54')]=isNaN(_0x3fea47[_0x2f4603('0x4e')])?null:_0x3fea47[_0x2f4603('0x4e')],_0xc252e3[_0x2f4603('0x27')]=isNaN(_0x3fea47[_0x2f4603('0x4')])?null:_0x3fea47[_0x2f4603('0x4')],_0xc252e3['converted_bitRate']=isNaN(_0x3fea47['bitRate'])?null:_0x3fea47['bitRate'],_0xc252e3['converted_sampleRate']=isNaN(_0x3fea47[_0x2f4603('0x33')])?null:_0x3fea47[_0x2f4603('0x33')];}),_0x427de1['on'](_0x7a6a29('0xa'),function(){const _0x27e48b=_0x7a6a29;return fs[_0x27e48b('0x1e')](_0x5e020b,parseInt('0777',0x8)),db['Sound'][_0x27e48b('0x5d')](_0xc252e3)[_0x27e48b('0x6')](function(_0xe391c8){const _0x3a1324=_0x27e48b,_0x5ae0c9={'role':_0x16b807[_0x3a1324('0x28')][_0x3a1324('0x2f')],'userProfileId':_0x16b807[_0x3a1324('0x28')]['userProfileId']};if(!_0x5ae0c9)throw new Error(_0x3a1324('0x3e'));if(_0x5ae0c9[_0x3a1324('0x2f')]==='user'){const _0x34f472=_0xe391c8[_0x3a1324('0x1c')]({'plain':!![]});return db[_0x3a1324('0x4f')][_0x3a1324('0x57')]({'where':{'name':_0x3a1324('0x3b'),'userProfileId':_0x5ae0c9[_0x3a1324('0x2a')]},'raw':!![]})[_0x3a1324('0x6')](function(_0xbb3dc4){const _0x9afc72=_0x3a1324;return _0xbb3dc4&&_0xbb3dc4['autoAssociation']===0x0?db[_0x9afc72('0x66')][_0x9afc72('0x5d')]({'name':_0x34f472[_0x9afc72('0x63')],'resourceId':_0x34f472['id'],'type':_0xbb3dc4['name'],'sectionId':_0xbb3dc4['id']},{})['then'](function(){return _0xe391c8;}):_0xe391c8;})[_0x3a1324('0x0')](function(_0x51a1f6){const _0x1c57f7=_0x3a1324;logger[_0x1c57f7('0x31')](_0x1c57f7('0x5'),_0x51a1f6);throw _0x51a1f6;});}return _0xe391c8;})[_0x27e48b('0x6')](respondWithResult(_0x1c8c6f,null))[_0x27e48b('0x0')](handleError(_0x1c8c6f,null));}),_0x427de1['start']();}catch(_0x1467f5){_0x1c8c6f['status'](0x1f4)[_0x7a6a29('0x5b')](_0x1467f5);}},exports['update']=function(_0x342674,_0x2a1fad){const _0x40f22f=_0x1eceac;return db[_0x40f22f('0x1')][_0x40f22f('0x57')]({'where':{'id':_0x342674['params']['id']}})['then'](handleEntityNotFound(_0x2a1fad,null))['then'](saveUpdates(_[_0x40f22f('0x1f')](_0x342674[_0x40f22f('0x28')],['name',_0x40f22f('0x3c')]),null))['then'](respondWithResult(_0x2a1fad,null))['catch'](handleError(_0x2a1fad,null));},exports[_0x1eceac('0x65')]=function(_0x16c427,_0x27d96a){const _0x36d293=_0x1eceac;return db[_0x36d293('0x1')][_0x36d293('0x57')]({'where':{'id':_0x16c427['params']['id']}})[_0x36d293('0x6')](function(_0x2ddb88){const _0x68a26b=_0x36d293;if(_0x2ddb88)return _0x2ddb88[_0x68a26b('0x41')]();})[_0x36d293('0x6')](function(_0x5e761f){const _0x314ad1=_0x36d293,_0x37a0c6=path[_0x314ad1('0x36')](config[_0x314ad1('0x35')],_0x314ad1('0x2e'),util[_0x314ad1('0x5c')]('%s.%s',_0x5e761f[_0x314ad1('0x55')],_0x5e761f[_0x314ad1('0x22')])),_0x14711b=path[_0x314ad1('0x36')](config[_0x314ad1('0x35')],_0x314ad1('0x32'),util[_0x314ad1('0x5c')](_0x314ad1('0xb'),_0x5e761f[_0x314ad1('0x55')],_0x5e761f['converted_format']));return fs['unlinkSync'](_0x37a0c6),fs[_0x314ad1('0x49')](_0x14711b),_0x5e761f;})[_0x36d293('0x6')](function(_0x11d802){const _0x5f4798=_0x36d293;if(_0x11d802)return _0x27d96a['status'](0xcc)[_0x5f4798('0xa')]();})[_0x36d293('0x6')](handleEntityNotFound(_0x27d96a,null))[_0x36d293('0x0')](handleError(_0x27d96a,null));}; \ No newline at end of file +const a698_0x246c=['root','body','Sound\x20upload\x20filepath:\x20%s','pick','create','UserProfileResource','Sounds','sort','role','Content-Range','filters','original_format','../../config/logger','info','stack','../../mysqldb','original_sampleCount','type','delete','src','model','offset','intersection','wav','sendStatus','api','sequelize','converted_sampleCount','converted_duration','send','unlinkSync','merge','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','original_channelCount','rawAttributes','sampleCount','Sound','file','start','original_duration','format','duration','fields','count','path','transcode','0777','sampleRate','../../components/parsers/qs','description','converted_sampleRate','Sound\x20not\x20found','save_name','extname','status','sox','show','converted_channelCount','like','length','key','attributes','existsSync','catch','update','filter','include','filename','then','map','chmodSync','error','converted_bitRate','originalname','converted_format','download','Unable\x20to\x20retrieve\x20the\x20current\x20user','get','options','server/files/sounds/original','basename','limit','findOne','bitRate','index','lodash','original_bitRate','findAll','where','query','original_sampleRate','params','channelCount','includeAll','UserProfileSection','json','%s.%s','order','fieldName','nolimit','undefined','keys','VIRTUAL','util','join','name','userProfileId','server/files/sounds/converted'];(function(_0x9237b8,_0x26c89d){const _0x246c9a=function(_0x10d666){while(--_0x10d666){_0x9237b8['push'](_0x9237b8['shift']());}};_0x246c9a(++_0x26c89d);}(a698_0x246c,0x144));const a698_0x10d6=function(_0x9237b8,_0x26c89d){_0x9237b8=_0x9237b8-0x152;let _0x246c9a=a698_0x246c[_0x9237b8];return _0x246c9a;};const a698_0x52d768=a698_0x10d6;'use strict';const util=require(a698_0x52d768(0x1b9)),path=require(a698_0x52d768(0x17e)),sox=require(a698_0x52d768(0x189)),fs=require('fs'),_=require(a698_0x52d768(0x1a7)),qs=require(a698_0x52d768(0x182)),logger=require(a698_0x52d768(0x15e))(a698_0x52d768(0x16b)),config=require('../../config/environment'),{db}=require(a698_0x52d768(0x161)),{Op,ValidationError}=require(a698_0x52d768(0x16c));function respondWithResult(_0x70fdb4,_0x3648f0){return _0x3648f0=_0x3648f0||0xc8,function(_0x32b702){const _0x3408de=a698_0x10d6;if(_0x32b702)return _0x70fdb4['status'](_0x3648f0)[_0x3408de(0x1b1)](_0x32b702);};}function respondWithFilteredResult(_0x40d8ad,_0x370da3){return function(_0x57b594){const _0x1ef17f=a698_0x10d6;if(_0x57b594){const _0x32afc5=_0x57b594[_0x1ef17f(0x17d)],_0x31a050=_0x370da3[_0x1ef17f(0x167)];let _0xb1973=_0x370da3[_0x1ef17f(0x167)]+_0x370da3[_0x1ef17f(0x1a3)],_0x2f9108;return _0xb1973>=_0x32afc5?(_0xb1973=_0x32afc5,_0x2f9108=0xc8):_0x2f9108=0xce,_0x40d8ad[_0x1ef17f(0x188)](_0x2f9108),_0x40d8ad['set'](_0x1ef17f(0x15b),_0x31a050+'-'+_0xb1973+'/'+_0x32afc5)[_0x1ef17f(0x1b1)](_0x57b594);}return null;};}function saveUpdates(_0x150e81){return function(_0x88ef9){const _0x182ce1=a698_0x10d6;if(_0x88ef9)return _0x88ef9[_0x182ce1(0x192)](_0x150e81)[_0x182ce1(0x196)](function(_0x1771d0){return _0x1771d0;});return null;};}function handleEntityNotFound(_0x2355bf){return function(_0xa84a60){const _0x529f28=a698_0x10d6;return!_0xa84a60&&_0x2355bf[_0x529f28(0x16a)](0x194),_0xa84a60;};}function handleError(_0x2b715b,_0x70f269){return _0x70f269=_0x70f269||0x1f4,function(_0x5109ea){const _0x453c8b=a698_0x10d6;logger[_0x453c8b(0x199)](_0x5109ea[_0x453c8b(0x160)]),_0x5109ea[_0x453c8b(0x1bb)]&&delete _0x5109ea[_0x453c8b(0x1bb)],_0x2b715b[_0x453c8b(0x188)](_0x70f269)['send'](_0x5109ea);};}exports[a698_0x52d768(0x1a6)]=function(_0x201851,_0x11a8f1){const _0x8ccf1a=a698_0x52d768;let _0x2af88d={};const _0x13baa8={},_0x5d9082={'count':0x0,'rows':[]},_0x5b844d=_['map'](db[_0x8ccf1a(0x176)]['rawAttributes'],function(_0x2c977c){const _0x34af07=_0x8ccf1a;return{'name':_0x2c977c[_0x34af07(0x1b4)],'type':_0x2c977c[_0x34af07(0x163)][_0x34af07(0x18e)]};});_0x13baa8[_0x8ccf1a(0x166)]=_[_0x8ccf1a(0x197)](_0x5b844d,'name'),_0x13baa8['query']=_[_0x8ccf1a(0x1b7)](_0x201851[_0x8ccf1a(0x1ab)]),_0x13baa8[_0x8ccf1a(0x15c)]=_['intersection'](_0x13baa8[_0x8ccf1a(0x166)],_0x13baa8[_0x8ccf1a(0x1ab)]),_0x2af88d[_0x8ccf1a(0x18f)]=_['intersection'](_0x13baa8['model'],qs[_0x8ccf1a(0x17c)](_0x201851['query'][_0x8ccf1a(0x17c)])),_0x2af88d['attributes']=_0x2af88d[_0x8ccf1a(0x18f)][_0x8ccf1a(0x18d)]?_0x2af88d[_0x8ccf1a(0x18f)]:_0x13baa8['model'];typeof _0x201851[_0x8ccf1a(0x1ab)][_0x8ccf1a(0x1b5)]===_0x8ccf1a(0x1b6)&&(_0x2af88d['limit']=qs[_0x8ccf1a(0x1a3)](_0x201851[_0x8ccf1a(0x1ab)][_0x8ccf1a(0x1a3)]),_0x2af88d[_0x8ccf1a(0x167)]=qs[_0x8ccf1a(0x167)](_0x201851[_0x8ccf1a(0x1ab)][_0x8ccf1a(0x167)]));_0x2af88d[_0x8ccf1a(0x1b3)]=qs[_0x8ccf1a(0x159)](_0x201851['query'][_0x8ccf1a(0x159)]),_0x2af88d[_0x8ccf1a(0x1aa)]=qs[_0x8ccf1a(0x15c)](_[_0x8ccf1a(0x155)](_0x201851[_0x8ccf1a(0x1ab)],_0x13baa8[_0x8ccf1a(0x15c)]),_0x5b844d);_0x201851['query']['filter']&&(_0x2af88d['where']=_[_0x8ccf1a(0x171)](_0x2af88d[_0x8ccf1a(0x1aa)],{[Op['or']]:_[_0x8ccf1a(0x197)](_0x5b844d,function(_0x4df851){const _0x2b9e31=_0x8ccf1a;if(_0x4df851[_0x2b9e31(0x163)]!==_0x2b9e31(0x1b8)){const _0x351a8d={};return _0x351a8d[_0x4df851[_0x2b9e31(0x1bb)]]={[Op[_0x2b9e31(0x18c)]]:'%'+_0x201851[_0x2b9e31(0x1ab)][_0x2b9e31(0x193)]+'%'},_0x351a8d;}})}));_0x2af88d=_['merge']({},_0x2af88d,_0x201851[_0x8ccf1a(0x1a0)]);const _0x3c1e7c={'where':_0x2af88d[_0x8ccf1a(0x1aa)]};return db[_0x8ccf1a(0x176)]['count'](_0x3c1e7c)[_0x8ccf1a(0x196)](function(_0x4acee7){const _0x2cad43=_0x8ccf1a;return _0x5d9082['count']=_0x4acee7,_0x201851['query'][_0x2cad43(0x1af)]&&(_0x2af88d[_0x2cad43(0x194)]=[{'all':!![]}]),db[_0x2cad43(0x176)][_0x2cad43(0x1a9)](_0x2af88d);})['then'](function(_0x631f64){return _0x5d9082['rows']=_0x631f64,_0x5d9082;})[_0x8ccf1a(0x196)](respondWithFilteredResult(_0x11a8f1,_0x2af88d))[_0x8ccf1a(0x191)](handleError(_0x11a8f1,null));},exports[a698_0x52d768(0x18a)]=function(_0x26bc44,_0x211194){const _0x4044d6=a698_0x52d768;let _0xa1bc28={'raw':!![],'where':{'id':_0x26bc44[_0x4044d6(0x1ad)]['id']}};const _0x17aeb3={};return _0x17aeb3[_0x4044d6(0x166)]=_[_0x4044d6(0x1b7)](db[_0x4044d6(0x176)][_0x4044d6(0x174)]),_0x17aeb3[_0x4044d6(0x1ab)]=_['keys'](_0x26bc44[_0x4044d6(0x1ab)]),_0x17aeb3[_0x4044d6(0x15c)]=_[_0x4044d6(0x168)](_0x17aeb3[_0x4044d6(0x166)],_0x17aeb3[_0x4044d6(0x1ab)]),_0xa1bc28[_0x4044d6(0x18f)]=_[_0x4044d6(0x168)](_0x17aeb3[_0x4044d6(0x166)],qs[_0x4044d6(0x17c)](_0x26bc44['query']['fields'])),_0xa1bc28[_0x4044d6(0x18f)]=_0xa1bc28[_0x4044d6(0x18f)]['length']?_0xa1bc28[_0x4044d6(0x18f)]:_0x17aeb3[_0x4044d6(0x166)],_0x26bc44[_0x4044d6(0x1ab)]['includeAll']&&(_0xa1bc28[_0x4044d6(0x194)]=[{'all':!![]}]),_0xa1bc28=_[_0x4044d6(0x171)]({},_0xa1bc28,_0x26bc44[_0x4044d6(0x1a0)]),db['Sound'][_0x4044d6(0x1a4)](_0xa1bc28)[_0x4044d6(0x196)](handleEntityNotFound(_0x211194,null))['then'](respondWithResult(_0x211194,null))[_0x4044d6(0x191)](handleError(_0x211194,null));},exports[a698_0x52d768(0x19d)]=function(_0x446d72,_0x26c307){const _0x24650c=a698_0x52d768;return db[_0x24650c(0x176)][_0x24650c(0x1a4)]({'where':{'id':_0x446d72['params']['id']},'attributes':['name','save_name','converted_format'],'raw':!![]})[_0x24650c(0x196)](handleEntityNotFound(_0x26c307,null))[_0x24650c(0x196)](function(_0x42c872){const _0x21434b=_0x24650c;if(_0x42c872){if(!fs[_0x21434b(0x190)](path['join'](config[_0x21434b(0x152)],'server/files/sounds/converted',_0x42c872[_0x21434b(0x186)]+'.'+_0x42c872[_0x21434b(0x19c)])))throw new ValidationError(_0x21434b(0x185));return _0x26c307['download'](path[_0x21434b(0x1ba)](config[_0x21434b(0x152)],_0x21434b(0x1bd),util[_0x21434b(0x17a)](_0x21434b(0x1b2),_0x42c872[_0x21434b(0x186)],_0x42c872['converted_format'])),util['format'](_0x21434b(0x1b2),_0x42c872[_0x21434b(0x1bb)],_0x42c872[_0x21434b(0x19c)]));}return null;})[_0x24650c(0x191)](handleError(_0x26c307,null));},exports[a698_0x52d768(0x156)]=function(_0x3488fc,_0x16fdad){const _0x5d50b7=a698_0x52d768,_0x33b0f9={'name':path[_0x5d50b7(0x1a2)](_0x3488fc[_0x5d50b7(0x177)][_0x5d50b7(0x19b)],path[_0x5d50b7(0x187)](_0x3488fc['file'][_0x5d50b7(0x19b)])),'save_name':path[_0x5d50b7(0x1a2)](_0x3488fc[_0x5d50b7(0x177)][_0x5d50b7(0x195)],path[_0x5d50b7(0x187)](_0x3488fc[_0x5d50b7(0x177)]['filename'])),'original_format':path['extname'](_0x3488fc[_0x5d50b7(0x177)][_0x5d50b7(0x19b)])['substring'](0x1),'converted_format':_0x5d50b7(0x169)},_0x47ff25=path['join'](config[_0x5d50b7(0x152)],_0x5d50b7(0x1a1),_0x3488fc[_0x5d50b7(0x177)][_0x5d50b7(0x195)]),_0x2eee44=path[_0x5d50b7(0x1ba)](config[_0x5d50b7(0x152)],_0x5d50b7(0x1bd),util[_0x5d50b7(0x17a)](_0x5d50b7(0x1b2),path[_0x5d50b7(0x1a2)](_0x3488fc['file']['filename'],path[_0x5d50b7(0x187)](_0x3488fc[_0x5d50b7(0x177)][_0x5d50b7(0x195)])),_0x33b0f9[_0x5d50b7(0x19c)]));logger[_0x5d50b7(0x15f)](_0x5d50b7(0x154),_0x47ff25),logger[_0x5d50b7(0x15f)]('Sound\x20upload\x20destination:\x20%s',_0x2eee44);try{fs['chmodSync'](_0x47ff25,parseInt(_0x5d50b7(0x180),0x8));const _0x2b14fb=sox[_0x5d50b7(0x17f)](_0x47ff25,_0x2eee44,{'sampleRate':0x1f40,'format':'wav','channelCount':0x1,'bitRate':0xc0*0x400,'compressionQuality':0x5});_0x2b14fb['on']('error',function(_0x357473){const _0x5bd324=_0x5d50b7;fs[_0x5bd324(0x170)](_0x47ff25),_0x16fdad[_0x5bd324(0x188)](0x1f4)[_0x5bd324(0x16f)](_0x357473);}),_0x2b14fb['on'](_0x5d50b7(0x165),function(_0x4c9587){const _0x4c4674=_0x5d50b7;_0x33b0f9[_0x4c4674(0x179)]=isNaN(_0x4c9587[_0x4c4674(0x17b)])?null:_0x4c9587[_0x4c4674(0x17b)]*0x3e8,_0x33b0f9[_0x4c4674(0x162)]=isNaN(_0x4c9587['sampleCount'])?null:_0x4c9587[_0x4c4674(0x175)],_0x33b0f9[_0x4c4674(0x173)]=isNaN(_0x4c9587['channelCount'])?null:_0x4c9587[_0x4c4674(0x1ae)],_0x33b0f9[_0x4c4674(0x1a8)]=isNaN(_0x4c9587[_0x4c4674(0x1a5)])?null:_0x4c9587[_0x4c4674(0x1a5)],_0x33b0f9[_0x4c4674(0x1ac)]=isNaN(_0x4c9587[_0x4c4674(0x181)])?null:_0x4c9587[_0x4c4674(0x181)];}),_0x2b14fb['on']('dest',function(_0x1fb848){const _0x35fb4=_0x5d50b7;_0x33b0f9[_0x35fb4(0x16e)]=isNaN(_0x1fb848[_0x35fb4(0x17b)])?null:_0x1fb848[_0x35fb4(0x17b)]*0x3e8,_0x33b0f9[_0x35fb4(0x16d)]=isNaN(_0x1fb848[_0x35fb4(0x175)])?null:_0x1fb848[_0x35fb4(0x175)],_0x33b0f9[_0x35fb4(0x18b)]=isNaN(_0x1fb848[_0x35fb4(0x1ae)])?null:_0x1fb848[_0x35fb4(0x1ae)],_0x33b0f9[_0x35fb4(0x19a)]=isNaN(_0x1fb848['bitRate'])?null:_0x1fb848['bitRate'],_0x33b0f9[_0x35fb4(0x184)]=isNaN(_0x1fb848['sampleRate'])?null:_0x1fb848['sampleRate'];}),_0x2b14fb['on']('end',function(){const _0x137b8e=_0x5d50b7;return fs[_0x137b8e(0x198)](_0x2eee44,parseInt(_0x137b8e(0x180),0x8)),db['Sound'][_0x137b8e(0x156)](_0x33b0f9)[_0x137b8e(0x196)](function(_0x83d8b3){const _0x32be3e=_0x137b8e,_0x37b68c={'role':_0x3488fc['body'][_0x32be3e(0x15a)],'userProfileId':_0x3488fc[_0x32be3e(0x153)]['userProfileId']};if(!_0x37b68c)throw new Error(_0x32be3e(0x19e));if(_0x37b68c['role']==='user'){const _0x17fbcc=_0x83d8b3[_0x32be3e(0x19f)]({'plain':!![]});return db[_0x32be3e(0x1b0)][_0x32be3e(0x1a4)]({'where':{'name':_0x32be3e(0x158),'userProfileId':_0x37b68c[_0x32be3e(0x1bc)]},'raw':!![]})[_0x32be3e(0x196)](function(_0x1955e8){const _0xd7e784=_0x32be3e;return _0x1955e8&&_0x1955e8['autoAssociation']===0x0?db[_0xd7e784(0x157)][_0xd7e784(0x156)]({'name':_0x17fbcc[_0xd7e784(0x1bb)],'resourceId':_0x17fbcc['id'],'type':_0x1955e8[_0xd7e784(0x1bb)],'sectionId':_0x1955e8['id']},{})[_0xd7e784(0x196)](function(){return _0x83d8b3;}):_0x83d8b3;})['catch'](function(_0x2c8c73){const _0x1faf40=_0x32be3e;logger[_0x1faf40(0x199)](_0x1faf40(0x172),_0x2c8c73);throw _0x2c8c73;});}return _0x83d8b3;})[_0x137b8e(0x196)](respondWithResult(_0x16fdad,null))[_0x137b8e(0x191)](handleError(_0x16fdad,null));}),_0x2b14fb[_0x5d50b7(0x178)]();}catch(_0x3cf542){_0x16fdad[_0x5d50b7(0x188)](0x1f4)['send'](_0x3cf542);}},exports[a698_0x52d768(0x192)]=function(_0xd77339,_0x52cc29){const _0x1f3cae=a698_0x52d768;return db[_0x1f3cae(0x176)][_0x1f3cae(0x1a4)]({'where':{'id':_0xd77339[_0x1f3cae(0x1ad)]['id']}})['then'](handleEntityNotFound(_0x52cc29,null))[_0x1f3cae(0x196)](saveUpdates(_[_0x1f3cae(0x155)](_0xd77339[_0x1f3cae(0x153)],[_0x1f3cae(0x1bb),_0x1f3cae(0x183)]),null))[_0x1f3cae(0x196)](respondWithResult(_0x52cc29,null))[_0x1f3cae(0x191)](handleError(_0x52cc29,null));},exports[a698_0x52d768(0x164)]=function(_0x226cd5,_0x59c7cb){const _0x3aa2d1=a698_0x52d768;return db[_0x3aa2d1(0x176)]['findOne']({'where':{'id':_0x226cd5[_0x3aa2d1(0x1ad)]['id']}})['then'](function(_0x53ade6){if(_0x53ade6)return _0x53ade6['destroy']();})[_0x3aa2d1(0x196)](function(_0x381b9e){const _0x30923f=_0x3aa2d1,_0xf12037=path[_0x30923f(0x1ba)](config[_0x30923f(0x152)],_0x30923f(0x1a1),util[_0x30923f(0x17a)](_0x30923f(0x1b2),_0x381b9e[_0x30923f(0x186)],_0x381b9e[_0x30923f(0x15d)])),_0x566339=path[_0x30923f(0x1ba)](config[_0x30923f(0x152)],'server/files/sounds/converted',util['format'](_0x30923f(0x1b2),_0x381b9e['save_name'],_0x381b9e[_0x30923f(0x19c)]));return fs[_0x30923f(0x170)](_0xf12037),fs[_0x30923f(0x170)](_0x566339),_0x381b9e;})[_0x3aa2d1(0x196)](function(_0x12f23f){const _0x191e42=_0x3aa2d1;if(_0x12f23f)return _0x59c7cb[_0x191e42(0x188)](0xcc)['end']();})['then'](handleEntityNotFound(_0x59c7cb,null))[_0x3aa2d1(0x191)](handleError(_0x59c7cb,null));}; \ No newline at end of file diff --git a/server/api/sound/sound.model.js b/server/api/sound/sound.model.js index 875ba24..dac4fca 100644 --- a/server/api/sound/sound.model.js +++ b/server/api/sound/sound.model.js @@ -1 +1 @@ -const a584_0x4659=['define','tools_sounds','./sound.attributes','exports'];(function(_0xb86e4b,_0x465962){const _0x1501e5=function(_0x1d2167){while(--_0x1d2167){_0xb86e4b['push'](_0xb86e4b['shift']());}};_0x1501e5(++_0x465962);}(a584_0x4659,0x15b));const a584_0x1501=function(_0xb86e4b,_0x465962){_0xb86e4b=_0xb86e4b-0x0;let _0x1501e5=a584_0x4659[_0xb86e4b];return _0x1501e5;};const _0x49cfab=a584_0x1501;'use strict';const attributes=require(_0x49cfab('0x3'));module[_0x49cfab('0x0')]=function(_0x1d2167){const _0x6b49fb=_0x49cfab,_0x43f0e8=_0x1d2167[_0x6b49fb('0x1')]('Sound',attributes,{'tableName':_0x6b49fb('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x43f0e8;}; \ No newline at end of file +const a699_0x3a41=['Sound','sequelize','exports','function','./sound.attributes','./sound.options'];(function(_0x485ed5,_0x1aa5ae){const _0x3a4130=function(_0x37f6bd){while(--_0x37f6bd){_0x485ed5['push'](_0x485ed5['shift']());}};_0x3a4130(++_0x1aa5ae);}(a699_0x3a41,0x1ef));const a699_0x37f6=function(_0x485ed5,_0x1aa5ae){_0x485ed5=_0x485ed5-0x148;let _0x3a4130=a699_0x3a41[_0x485ed5];return _0x3a4130;};const a699_0x4c7d34=a699_0x37f6;'use strict';const {Model}=require(a699_0x4c7d34(0x14c)),{attributes}=require(a699_0x4c7d34(0x149)),{options}=require(a699_0x4c7d34(0x14a));class Sound extends Model{}function init(_0x2c830a,_0x6bb6f4){const _0x35537e=a699_0x4c7d34,_0x1ba2dd=options(_0x2c830a),_0x36a6b4=typeof _0x6bb6f4===_0x35537e(0x148)?_0x6bb6f4(_0x1ba2dd):_0x1ba2dd;return Sound['init'](attributes,_0x36a6b4),Sound;}module['exports'][a699_0x4c7d34(0x14b)]=Sound,module[a699_0x4c7d34(0x14d)]['init']=init; \ No newline at end of file diff --git a/server/api/sound/sound.options.js b/server/api/sound/sound.options.js new file mode 100644 index 0000000..df4a85a --- /dev/null +++ b/server/api/sound/sound.options.js @@ -0,0 +1 @@ +var a700_0x18c0=['options'];(function(_0x51f08f,_0x15a143){var _0x18c064=function(_0x15235b){while(--_0x15235b){_0x51f08f['push'](_0x51f08f['shift']());}};_0x18c064(++_0x15a143);}(a700_0x18c0,0x136));var a700_0x1523=function(_0x51f08f,_0x15a143){_0x51f08f=_0x51f08f-0x1dc;var _0x18c064=a700_0x18c0[_0x51f08f];return _0x18c064;};var a700_0x15615b=a700_0x1523;function options(_0x59a3db){return{'sequelize':_0x59a3db,'tableName':'tools_sounds','paranoid':![],'indexes':[],'timestamps':!![]};}module['exports'][a700_0x15615b(0x1dc)]=options; \ No newline at end of file diff --git a/server/api/sound/sound.rpc.js b/server/api/sound/sound.rpc.js index 560cfb1..1c79ae3 100644 --- a/server/api/sound/sound.rpc.js +++ b/server/api/sound/sound.rpc.js @@ -1 +1 @@ -const a585_0x1d0e=['options','Sound','../../config/logger','error','stringify','catch','lodash','model','debug','../../mysqldb','attributes','message','ShowSound','rpc','include','info','map','where'];(function(_0x176c16,_0x1d0e11){const _0x31d993=function(_0x3b95bb){while(--_0x3b95bb){_0x176c16['push'](_0x176c16['shift']());}};_0x31d993(++_0x1d0e11);}(a585_0x1d0e,0x8b));const a585_0x31d9=function(_0x176c16,_0x1d0e11){_0x176c16=_0x176c16-0x0;let _0x31d993=a585_0x1d0e[_0x176c16];return _0x31d993;};const _0x3d0897=a585_0x31d9;'use strict';const db=require(_0x3d0897('0xe'))['db'],logger=require(_0x3d0897('0x7'))(_0x3d0897('0x0')),_=require(_0x3d0897('0xb'));exports['ShowSound']=function(_0x3b95bb){const _0x2a9003=this;return new Promise(function(_0x24be7a,_0x1fb3fb){const _0x10472f=a585_0x31d9;return db[_0x10472f('0x6')]['findOne']({'raw':_0x3b95bb[_0x10472f('0x5')]?_0x3b95bb[_0x10472f('0x5')]['raw']===undefined?!![]:![]:!![],'where':_0x3b95bb[_0x10472f('0x5')]?_0x3b95bb['options'][_0x10472f('0x4')]||null:null,'attributes':_0x3b95bb[_0x10472f('0x5')]?_0x3b95bb[_0x10472f('0x5')]['attributes']||null:null,'include':_0x3b95bb[_0x10472f('0x5')]?_0x3b95bb[_0x10472f('0x5')][_0x10472f('0x1')]?_[_0x10472f('0x3')](_0x3b95bb[_0x10472f('0x5')]['include'],function(_0x2a5141){const _0x58f285=_0x10472f;return{'model':db[_0x2a5141[_0x58f285('0xc')]],'as':_0x2a5141['as'],'attributes':_0x2a5141[_0x58f285('0xf')],'include':_0x2a5141[_0x58f285('0x1')]?_[_0x58f285('0x3')](_0x2a5141[_0x58f285('0x1')],function(_0x1d4095){const _0x5be479=_0x58f285;return{'model':db[_0x1d4095['model']],'as':_0x1d4095['as'],'attributes':_0x1d4095[_0x5be479('0xf')],'include':_0x1d4095['include']?_['map'](_0x1d4095[_0x5be479('0x1')],function(_0x719c15){const _0x21b242=_0x5be479;return{'model':db[_0x719c15[_0x21b242('0xc')]],'as':_0x719c15['as'],'attributes':_0x719c15[_0x21b242('0xf')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x2ebafe){const _0xbe391f=_0x10472f;logger[_0xbe391f('0x2')](_0xbe391f('0x11'),_0x3b95bb),logger[_0xbe391f('0xd')](_0xbe391f('0x11'),_0x3b95bb,JSON[_0xbe391f('0x9')](_0x2ebafe)),_0x24be7a(_0x2ebafe);})[_0x10472f('0xa')](function(_0x161b3a){const _0x4681fc=_0x10472f;logger[_0x4681fc('0x8')](_0x4681fc('0x11'),_0x161b3a[_0x4681fc('0x10')],_0x3b95bb),_0x1fb3fb(_0x2a9003['error'](0x1f4,_0x161b3a[_0x4681fc('0x10')]));});});}; \ No newline at end of file +const a701_0x6e98=['debug','attributes','then','error','options','../../mysqldb','map','model','rpc','catch','ShowSound','raw','stringify','info','include','where','lodash','message'];(function(_0x3956e1,_0x2c03dd){const _0x6e98e2=function(_0x3ef1cd){while(--_0x3ef1cd){_0x3956e1['push'](_0x3956e1['shift']());}};_0x6e98e2(++_0x2c03dd);}(a701_0x6e98,0x69));const a701_0x3ef1=function(_0x3956e1,_0x2c03dd){_0x3956e1=_0x3956e1-0x14a;let _0x6e98e2=a701_0x6e98[_0x3956e1];return _0x6e98e2;};const a701_0xd6b34c=a701_0x3ef1;'use strict';const db=require(a701_0xd6b34c(0x152))['db'],logger=require('../../config/logger')(a701_0xd6b34c(0x155)),_=require(a701_0xd6b34c(0x14b));exports['ShowSound']=function(_0xf92266){const _0x4039ae=this;return new Promise(function(_0x59b7a8,_0x3a58d9){const _0x3cef80=a701_0x3ef1;return db['Sound']['findOne']({'raw':_0xf92266[_0x3cef80(0x151)]?_0xf92266['options'][_0x3cef80(0x158)]===undefined?!![]:![]:!![],'where':_0xf92266[_0x3cef80(0x151)]?_0xf92266[_0x3cef80(0x151)][_0x3cef80(0x14a)]||null:null,'attributes':_0xf92266[_0x3cef80(0x151)]?_0xf92266[_0x3cef80(0x151)]['attributes']||null:null,'include':_0xf92266['options']?_0xf92266['options'][_0x3cef80(0x15b)]?_[_0x3cef80(0x153)](_0xf92266[_0x3cef80(0x151)]['include'],function(_0x475b5e){const _0x2da066=_0x3cef80;return{'model':db[_0x475b5e[_0x2da066(0x154)]],'as':_0x475b5e['as'],'attributes':_0x475b5e[_0x2da066(0x14e)],'include':_0x475b5e['include']?_[_0x2da066(0x153)](_0x475b5e[_0x2da066(0x15b)],function(_0xfd1142){const _0xa7e3ed=_0x2da066;return{'model':db[_0xfd1142['model']],'as':_0xfd1142['as'],'attributes':_0xfd1142[_0xa7e3ed(0x14e)],'include':_0xfd1142[_0xa7e3ed(0x15b)]?_[_0xa7e3ed(0x153)](_0xfd1142[_0xa7e3ed(0x15b)],function(_0x53bb2d){const _0x2ecb2b=_0xa7e3ed;return{'model':db[_0x53bb2d[_0x2ecb2b(0x154)]],'as':_0x53bb2d['as'],'attributes':_0x53bb2d[_0x2ecb2b(0x14e)]};}):[]};}):[]};}):[]:[]})[_0x3cef80(0x14f)](function(_0x152d2b){const _0x586b8e=_0x3cef80;logger[_0x586b8e(0x15a)](_0x586b8e(0x157),_0xf92266),logger[_0x586b8e(0x14d)](_0x586b8e(0x157),_0xf92266,JSON[_0x586b8e(0x159)](_0x152d2b)),_0x59b7a8(_0x152d2b);})[_0x3cef80(0x156)](function(_0x4af254){const _0x9877cc=_0x3cef80;logger[_0x9877cc(0x150)](_0x9877cc(0x157),_0x4af254['message'],_0xf92266),_0x3a58d9(_0x4039ae['error'](0x1f4,_0x4af254[_0x9877cc(0x14c)]));});});}; \ No newline at end of file diff --git a/server/api/squareMessage/index.js b/server/api/squareMessage/index.js index 53a4291..7d3acb7 100644 --- a/server/api/squareMessage/index.js +++ b/server/api/squareMessage/index.js @@ -1 +1 @@ -const a586_0x4bfd=['index','../../components/auth/service','isAuthenticated','Router','create','./squareMessage.controller','show','/:id','update','get','express','delete','exports','put'];(function(_0xf3548a,_0x4bfd00){const _0xa6a75f=function(_0x21ad0c){while(--_0x21ad0c){_0xf3548a['push'](_0xf3548a['shift']());}};_0xa6a75f(++_0x4bfd00);}(a586_0x4bfd,0x1c6));const a586_0xa6a7=function(_0xf3548a,_0x4bfd00){_0xf3548a=_0xf3548a-0x0;let _0xa6a75f=a586_0x4bfd[_0xf3548a];return _0xa6a75f;};const _0x173227=a586_0xa6a7;'use strict';const express=require(_0x173227('0x4')),router=express[_0x173227('0xb')](),auth=require(_0x173227('0x9')),controller=require(_0x173227('0xd'));router['get']('/',auth[_0x173227('0xa')](),controller[_0x173227('0x8')]),router[_0x173227('0x3')](_0x173227('0x1'),auth[_0x173227('0xa')](),controller[_0x173227('0x0')]),router['post']('/',auth['isAuthenticated'](),controller[_0x173227('0xc')]),router[_0x173227('0x7')](_0x173227('0x1'),auth[_0x173227('0xa')](),controller[_0x173227('0x2')]),router[_0x173227('0x5')](_0x173227('0x1'),auth[_0x173227('0xa')](),controller['destroy']),module[_0x173227('0x6')]=router; \ No newline at end of file +const a702_0x1265=['isAuthenticated','../../components/auth/service','Router','post','update','express','/:id','get','./squareMessage.controller','destroy','exports','show','create'];(function(_0x48326e,_0x44f282){const _0x126597=function(_0x3f7288){while(--_0x3f7288){_0x48326e['push'](_0x48326e['shift']());}};_0x126597(++_0x44f282);}(a702_0x1265,0xa6));const a702_0x3f72=function(_0x48326e,_0x44f282){_0x48326e=_0x48326e-0x1e0;let _0x126597=a702_0x1265[_0x48326e];return _0x126597;};const a702_0x4a7c82=a702_0x3f72;'use strict';const express=require(a702_0x4a7c82(0x1e8)),router=express[a702_0x4a7c82(0x1e5)](),auth=require(a702_0x4a7c82(0x1e4)),controller=require(a702_0x4a7c82(0x1eb));router[a702_0x4a7c82(0x1ea)]('/',auth[a702_0x4a7c82(0x1e3)](),controller['index']),router[a702_0x4a7c82(0x1ea)]('/:id',auth[a702_0x4a7c82(0x1e3)](),controller[a702_0x4a7c82(0x1e1)]),router[a702_0x4a7c82(0x1e6)]('/',auth['isAuthenticated'](),controller[a702_0x4a7c82(0x1e2)]),router['put'](a702_0x4a7c82(0x1e9),auth[a702_0x4a7c82(0x1e3)](),controller[a702_0x4a7c82(0x1e7)]),router['delete'](a702_0x4a7c82(0x1e9),auth[a702_0x4a7c82(0x1e3)](),controller[a702_0x4a7c82(0x1ec)]),module[a702_0x4a7c82(0x1e0)]=router; \ No newline at end of file diff --git a/server/api/squareMessage/squareMessage.attributes.js b/server/api/squareMessage/squareMessage.attributes.js index ac12d44..36245c9 100644 --- a/server/api/squareMessage/squareMessage.attributes.js +++ b/server/api/squareMessage/squareMessage.attributes.js @@ -1 +1 @@ -const a587_0x2209=['out','exports','STRING','TEXT','sequelize','medium','ENUM'];(function(_0x5100a3,_0x220913){const _0x52139b=function(_0x464f9d){while(--_0x464f9d){_0x5100a3['push'](_0x5100a3['shift']());}};_0x52139b(++_0x220913);}(a587_0x2209,0xf9));const a587_0x5213=function(_0x5100a3,_0x220913){_0x5100a3=_0x5100a3-0x0;let _0x52139b=a587_0x2209[_0x5100a3];return _0x52139b;};const _0x24c8c0=a587_0x5213;'use strict';const Sequelize=require(_0x24c8c0('0x0'));module[_0x24c8c0('0x4')]={'uniqueid':{'type':Sequelize['STRING']},'body':{'type':Sequelize['TEXT'](_0x24c8c0('0x1')),'allowNull':![]},'direction':{'type':Sequelize[_0x24c8c0('0x2')]('in',_0x24c8c0('0x3')),'defaultValue':_0x24c8c0('0x3'),'allowNull':![]},'providerName':{'type':Sequelize[_0x24c8c0('0x5')]},'providerResponse':{'type':Sequelize[_0x24c8c0('0x6')]}}; \ No newline at end of file +const a703_0x58fa=['TEXT','attributes','medium','sequelize','ENUM','out','STRING'];(function(_0x20e606,_0x1e5ab2){const _0x58fa5e=function(_0x429ac5){while(--_0x429ac5){_0x20e606['push'](_0x20e606['shift']());}};_0x58fa5e(++_0x1e5ab2);}(a703_0x58fa,0xbd));const a703_0x429a=function(_0x20e606,_0x1e5ab2){_0x20e606=_0x20e606-0x1ac;let _0x58fa5e=a703_0x58fa[_0x20e606];return _0x58fa5e;};const a703_0x380f60=a703_0x429a;'use strict';const {DataTypes}=require(a703_0x380f60(0x1af)),attributes={'uniqueid':{'type':DataTypes[a703_0x380f60(0x1b2)]},'body':{'type':DataTypes[a703_0x380f60(0x1ac)]({'length':a703_0x380f60(0x1ae)}),'allowNull':![]},'direction':{'type':DataTypes[a703_0x380f60(0x1b0)]('in',a703_0x380f60(0x1b1)),'defaultValue':'out','allowNull':![]},'providerName':{'type':DataTypes[a703_0x380f60(0x1b2)]},'providerResponse':{'type':DataTypes['TEXT']}};module['exports'][a703_0x380f60(0x1ad)]=attributes; \ No newline at end of file diff --git a/server/api/squareMessage/squareMessage.controller.js b/server/api/squareMessage/squareMessage.controller.js index b63a9ef..0b7f639 100644 --- a/server/api/squareMessage/squareMessage.controller.js +++ b/server/api/squareMessage/squareMessage.controller.js @@ -1 +1 @@ -const a588_0x562a=['options','sort','sequelize','limit','then','findAll','index','api','catch','order','fieldName','../../config/logger','attributes','filters','undefined','intersection','merge','where','includeAll','type','send','update','model','name','fields','offset','sendStatus','show','VIRTUAL','end','length','filter','SquareMessage','status','pick','findOne','include','params','body','create','Content-Range','nolimit','set','count','json','rawAttributes','keys','map','../../mysqldb','key','query'];(function(_0x106215,_0x562a4b){const _0xbab542=function(_0x48563a){while(--_0x48563a){_0x106215['push'](_0x106215['shift']());}};_0xbab542(++_0x562a4b);}(a588_0x562a,0x177));const a588_0xbab5=function(_0x106215,_0x562a4b){_0x106215=_0x106215-0x0;let _0xbab542=a588_0x562a[_0x106215];return _0xbab542;};const _0x232e9c=a588_0xbab5;'use strict';const _=require('lodash'),qs=require('../../components/parsers/qs'),logger=require(_0x232e9c('0x2c'))(_0x232e9c('0x28')),db=require(_0x232e9c('0x1e'))['db'],{Op}=require(_0x232e9c('0x23'));function respondWithResult(_0x48563a,_0x39d039){return _0x39d039=_0x39d039||0xc8,function(_0x3fc20e){const _0x5dc08b=a588_0xbab5;if(_0x3fc20e)return _0x48563a['status'](_0x39d039)[_0x5dc08b('0x1a')](_0x3fc20e);};}function respondWithFilteredResult(_0x35f5c0,_0x4eacb5){return function(_0x3f53d6){const _0x5797db=a588_0xbab5;if(_0x3f53d6){const _0x1ca891=_0x3f53d6[_0x5797db('0x19')],_0x20bb47=_0x4eacb5[_0x5797db('0x7')];let _0x26054f=_0x4eacb5['offset']+_0x4eacb5[_0x5797db('0x24')],_0x5c10b0;return _0x26054f>=_0x1ca891?(_0x26054f=_0x1ca891,_0x5c10b0=0xc8):_0x5c10b0=0xce,_0x35f5c0[_0x5797db('0xf')](_0x5c10b0),_0x35f5c0[_0x5797db('0x18')](_0x5797db('0x16'),_0x20bb47+'-'+_0x26054f+'/'+_0x1ca891)['json'](_0x3f53d6);}return null;};}function saveUpdates(_0x5b9d23){return function(_0xa9f076){const _0x725f18=a588_0xbab5;if(_0xa9f076)return _0xa9f076['update'](_0x5b9d23)[_0x725f18('0x25')](function(_0x482b66){return _0x482b66;});return null;};}function removeEntity(_0x58eb20){return function(_0x55ed62){const _0x1e4efc=a588_0xbab5;if(_0x55ed62)return _0x55ed62['destroy']()[_0x1e4efc('0x25')](function(){const _0xfabfe0=_0x1e4efc;_0x58eb20[_0xfabfe0('0xf')](0xcc)[_0xfabfe0('0xb')]();});};}function handleEntityNotFound(_0x57609d){return function(_0x1e62e4){const _0x525787=a588_0xbab5;return!_0x1e62e4&&_0x57609d[_0x525787('0x8')](0x194),_0x1e62e4;};}function handleError(_0x1bc0cf,_0x8e0f5c){return _0x8e0f5c=_0x8e0f5c||0x1f4,function(_0x1dc80e){const _0xa3bef6=a588_0xbab5;logger['error'](_0x1dc80e['stack']),_0x1dc80e['name']&&delete _0x1dc80e[_0xa3bef6('0x5')],_0x1bc0cf[_0xa3bef6('0xf')](_0x8e0f5c)[_0xa3bef6('0x2')](_0x1dc80e);};}exports[_0x232e9c('0x27')]=function(_0x1d4f37,_0xb4571e){const _0x5c4b19=_0x232e9c;let _0x4af598={};const _0x48ed23={},_0x4719bf={'count':0x0,'rows':[]},_0x526c77=_[_0x5c4b19('0x1d')](db[_0x5c4b19('0xe')][_0x5c4b19('0x1b')],function(_0xe7d94d){const _0x1e38dd=_0x5c4b19;return{'name':_0xe7d94d[_0x1e38dd('0x2b')],'type':_0xe7d94d['type'][_0x1e38dd('0x1f')]};});_0x48ed23[_0x5c4b19('0x4')]=_[_0x5c4b19('0x1d')](_0x526c77,_0x5c4b19('0x5')),_0x48ed23[_0x5c4b19('0x20')]=_[_0x5c4b19('0x1c')](_0x1d4f37[_0x5c4b19('0x20')]),_0x48ed23[_0x5c4b19('0x2e')]=_[_0x5c4b19('0x30')](_0x48ed23[_0x5c4b19('0x4')],_0x48ed23[_0x5c4b19('0x20')]),_0x4af598['attributes']=_['intersection'](_0x48ed23[_0x5c4b19('0x4')],qs[_0x5c4b19('0x6')](_0x1d4f37[_0x5c4b19('0x20')][_0x5c4b19('0x6')])),_0x4af598[_0x5c4b19('0x2d')]=_0x4af598[_0x5c4b19('0x2d')][_0x5c4b19('0xc')]?_0x4af598[_0x5c4b19('0x2d')]:_0x48ed23[_0x5c4b19('0x4')];typeof _0x1d4f37[_0x5c4b19('0x20')][_0x5c4b19('0x17')]===_0x5c4b19('0x2f')&&(_0x4af598[_0x5c4b19('0x24')]=qs['limit'](_0x1d4f37[_0x5c4b19('0x20')][_0x5c4b19('0x24')]),_0x4af598[_0x5c4b19('0x7')]=qs[_0x5c4b19('0x7')](_0x1d4f37[_0x5c4b19('0x20')][_0x5c4b19('0x7')]));_0x4af598[_0x5c4b19('0x2a')]=qs[_0x5c4b19('0x22')](_0x1d4f37[_0x5c4b19('0x20')]['sort']),_0x4af598[_0x5c4b19('0x32')]=qs[_0x5c4b19('0x2e')](_[_0x5c4b19('0x10')](_0x1d4f37[_0x5c4b19('0x20')],_0x48ed23[_0x5c4b19('0x2e')]),_0x526c77);_0x1d4f37[_0x5c4b19('0x20')]['filter']&&(_0x4af598['where']=_['merge'](_0x4af598[_0x5c4b19('0x32')],{[Op['or']]:_[_0x5c4b19('0x1d')](_0x526c77,function(_0x45363c){const _0xbb01b1=_0x5c4b19;if(_0x45363c[_0xbb01b1('0x1')]!==_0xbb01b1('0xa')){const _0xd36064={};return _0xd36064[_0x45363c[_0xbb01b1('0x5')]]={[Op['like']]:'%'+_0x1d4f37['query'][_0xbb01b1('0xd')]+'%'},_0xd36064;}})}));_0x4af598=_[_0x5c4b19('0x31')]({},_0x4af598,_0x1d4f37['options']);const _0x3d3365={'where':_0x4af598['where']};return db['SquareMessage']['count'](_0x3d3365)[_0x5c4b19('0x25')](function(_0x5e1345){const _0x15dd64=_0x5c4b19;return _0x4719bf['count']=_0x5e1345,_0x1d4f37[_0x15dd64('0x20')][_0x15dd64('0x0')]&&(_0x4af598['include']=[{'all':!![]}]),db[_0x15dd64('0xe')][_0x15dd64('0x26')](_0x4af598);})[_0x5c4b19('0x25')](function(_0x40be09){return _0x4719bf['rows']=_0x40be09,_0x4719bf;})[_0x5c4b19('0x25')](respondWithFilteredResult(_0xb4571e,_0x4af598))[_0x5c4b19('0x29')](handleError(_0xb4571e,null));},exports[_0x232e9c('0x9')]=function(_0x5180aa,_0x463826){const _0xbf05bb=_0x232e9c;let _0x24eaca={'raw':!![],'where':{'id':_0x5180aa[_0xbf05bb('0x13')]['id']}};const _0x20e79f={};return _0x20e79f[_0xbf05bb('0x4')]=_[_0xbf05bb('0x1c')](db['SquareMessage'][_0xbf05bb('0x1b')]),_0x20e79f['query']=_[_0xbf05bb('0x1c')](_0x5180aa['query']),_0x20e79f[_0xbf05bb('0x2e')]=_[_0xbf05bb('0x30')](_0x20e79f[_0xbf05bb('0x4')],_0x20e79f[_0xbf05bb('0x20')]),_0x24eaca[_0xbf05bb('0x2d')]=_['intersection'](_0x20e79f[_0xbf05bb('0x4')],qs[_0xbf05bb('0x6')](_0x5180aa['query']['fields'])),_0x24eaca[_0xbf05bb('0x2d')]=_0x24eaca[_0xbf05bb('0x2d')]['length']?_0x24eaca[_0xbf05bb('0x2d')]:_0x20e79f[_0xbf05bb('0x4')],_0x5180aa['query']['includeAll']&&(_0x24eaca[_0xbf05bb('0x12')]=[{'all':!![]}]),_0x24eaca=_[_0xbf05bb('0x31')]({},_0x24eaca,_0x5180aa[_0xbf05bb('0x21')]),db[_0xbf05bb('0xe')][_0xbf05bb('0x11')](_0x24eaca)['then'](handleEntityNotFound(_0x463826,null))[_0xbf05bb('0x25')](respondWithResult(_0x463826,null))[_0xbf05bb('0x29')](handleError(_0x463826,null));},exports[_0x232e9c('0x15')]=function(_0x4edef1,_0xa5218d){const _0x330ff8=_0x232e9c;return db[_0x330ff8('0xe')]['create'](_0x4edef1[_0x330ff8('0x14')],{})['then'](respondWithResult(_0xa5218d,0xc9))[_0x330ff8('0x29')](handleError(_0xa5218d,null));},exports[_0x232e9c('0x3')]=function(_0x48c1e9,_0x43dbb6){const _0x26fc09=_0x232e9c;return _0x48c1e9[_0x26fc09('0x14')]['id']&&delete _0x48c1e9[_0x26fc09('0x14')]['id'],db['SquareMessage'][_0x26fc09('0x11')]({'where':{'id':_0x48c1e9[_0x26fc09('0x13')]['id']}})[_0x26fc09('0x25')](handleEntityNotFound(_0x43dbb6,null))[_0x26fc09('0x25')](saveUpdates(_0x48c1e9[_0x26fc09('0x14')],null))[_0x26fc09('0x25')](respondWithResult(_0x43dbb6,null))[_0x26fc09('0x29')](handleError(_0x43dbb6,null));},exports['destroy']=function(_0x2b2eee,_0x10297e){const _0x308e58=_0x232e9c;return db['SquareMessage']['findOne']({'where':{'id':_0x2b2eee[_0x308e58('0x13')]['id']}})[_0x308e58('0x25')](handleEntityNotFound(_0x10297e,null))[_0x308e58('0x25')](removeEntity(_0x10297e,null))[_0x308e58('0x29')](handleError(_0x10297e,null));}; \ No newline at end of file +const a704_0x14ee=['name','../../mysqldb','VIRTUAL','nolimit','update','merge','catch','fields','offset','index','create','filter','include','api','json','../../components/parsers/qs','send','sort','count','SquareMessage','Content-Range','undefined','params','model','show','key','sendStatus','order','stack','../../config/logger','filters','type','intersection','query','status','options','error','where','body','like','sequelize','keys','findOne','attributes','then','pick','length','rows','map','fieldName','limit','includeAll','destroy','lodash'];(function(_0x461fcc,_0x10abe2){const _0x14ee91=function(_0x242ef1){while(--_0x242ef1){_0x461fcc['push'](_0x461fcc['shift']());}};_0x14ee91(++_0x10abe2);}(a704_0x14ee,0x160));const a704_0x242e=function(_0x461fcc,_0x10abe2){_0x461fcc=_0x461fcc-0x17a;let _0x14ee91=a704_0x14ee[_0x461fcc];return _0x14ee91;};const a704_0x2a219b=a704_0x242e;'use strict';const _=require(a704_0x2a219b(0x193)),qs=require(a704_0x2a219b(0x1a3)),logger=require(a704_0x2a219b(0x17b))(a704_0x2a219b(0x1a1)),{db}=require(a704_0x2a219b(0x195)),{Op}=require(a704_0x2a219b(0x186));function respondWithResult(_0x4d0032,_0x132017){return _0x132017=_0x132017||0xc8,function(_0x4e5d56){const _0x2a6036=a704_0x242e;if(_0x4e5d56)return _0x4d0032[_0x2a6036(0x180)](_0x132017)['json'](_0x4e5d56);};}function respondWithFilteredResult(_0x51bcca,_0x528f9a){return function(_0x1e1c88){const _0x2f3fa1=a704_0x242e;if(_0x1e1c88){const _0x4ce689=_0x1e1c88[_0x2f3fa1(0x1a6)],_0x25dd11=_0x528f9a[_0x2f3fa1(0x19c)];let _0x82926e=_0x528f9a[_0x2f3fa1(0x19c)]+_0x528f9a['limit'],_0x512c11;return _0x82926e>=_0x4ce689?(_0x82926e=_0x4ce689,_0x512c11=0xc8):_0x512c11=0xce,_0x51bcca[_0x2f3fa1(0x180)](_0x512c11),_0x51bcca['set'](_0x2f3fa1(0x1a8),_0x25dd11+'-'+_0x82926e+'/'+_0x4ce689)[_0x2f3fa1(0x1a2)](_0x1e1c88);}return null;};}function saveUpdates(_0x252a43){return function(_0x6fe2be){const _0x5edc88=a704_0x242e;if(_0x6fe2be)return _0x6fe2be[_0x5edc88(0x198)](_0x252a43)[_0x5edc88(0x18a)](function(_0x375833){return _0x375833;});return null;};}function removeEntity(_0x1708a5){return function(_0x3d10e4){const _0x1dccf7=a704_0x242e;if(_0x3d10e4)return _0x3d10e4[_0x1dccf7(0x192)]()[_0x1dccf7(0x18a)](function(){_0x1708a5['status'](0xcc)['end']();});};}function handleEntityNotFound(_0x130d45){return function(_0x40b2db){const _0x67dfff=a704_0x242e;return!_0x40b2db&&_0x130d45[_0x67dfff(0x1ae)](0x194),_0x40b2db;};}function handleError(_0x315f90,_0x317a50){return _0x317a50=_0x317a50||0x1f4,function(_0x397067){const _0x533e53=a704_0x242e;logger[_0x533e53(0x182)](_0x397067[_0x533e53(0x17a)]),_0x397067[_0x533e53(0x194)]&&delete _0x397067['name'],_0x315f90[_0x533e53(0x180)](_0x317a50)[_0x533e53(0x1a4)](_0x397067);};}exports[a704_0x2a219b(0x19d)]=function(_0x50b730,_0x32fbc2){const _0x5d94f0=a704_0x2a219b;let _0x480363={};const _0xd35a97={},_0x20ebe9={'count':0x0,'rows':[]},_0x2e6d9d=_[_0x5d94f0(0x18e)](db['SquareMessage']['rawAttributes'],function(_0x5c5402){const _0x1f4180=_0x5d94f0;return{'name':_0x5c5402[_0x1f4180(0x18f)],'type':_0x5c5402[_0x1f4180(0x17d)][_0x1f4180(0x1ad)]};});_0xd35a97[_0x5d94f0(0x1ab)]=_[_0x5d94f0(0x18e)](_0x2e6d9d,_0x5d94f0(0x194)),_0xd35a97[_0x5d94f0(0x17f)]=_[_0x5d94f0(0x187)](_0x50b730['query']),_0xd35a97[_0x5d94f0(0x17c)]=_[_0x5d94f0(0x17e)](_0xd35a97[_0x5d94f0(0x1ab)],_0xd35a97['query']),_0x480363[_0x5d94f0(0x189)]=_['intersection'](_0xd35a97[_0x5d94f0(0x1ab)],qs[_0x5d94f0(0x19b)](_0x50b730[_0x5d94f0(0x17f)][_0x5d94f0(0x19b)])),_0x480363[_0x5d94f0(0x189)]=_0x480363['attributes'][_0x5d94f0(0x18c)]?_0x480363['attributes']:_0xd35a97[_0x5d94f0(0x1ab)];typeof _0x50b730[_0x5d94f0(0x17f)][_0x5d94f0(0x197)]===_0x5d94f0(0x1a9)&&(_0x480363[_0x5d94f0(0x190)]=qs[_0x5d94f0(0x190)](_0x50b730[_0x5d94f0(0x17f)][_0x5d94f0(0x190)]),_0x480363[_0x5d94f0(0x19c)]=qs[_0x5d94f0(0x19c)](_0x50b730[_0x5d94f0(0x17f)][_0x5d94f0(0x19c)]));_0x480363[_0x5d94f0(0x1af)]=qs[_0x5d94f0(0x1a5)](_0x50b730[_0x5d94f0(0x17f)][_0x5d94f0(0x1a5)]),_0x480363[_0x5d94f0(0x183)]=qs[_0x5d94f0(0x17c)](_[_0x5d94f0(0x18b)](_0x50b730[_0x5d94f0(0x17f)],_0xd35a97['filters']),_0x2e6d9d);_0x50b730[_0x5d94f0(0x17f)][_0x5d94f0(0x19f)]&&(_0x480363[_0x5d94f0(0x183)]=_['merge'](_0x480363[_0x5d94f0(0x183)],{[Op['or']]:_[_0x5d94f0(0x18e)](_0x2e6d9d,function(_0x2a0da5){const _0x37863e=_0x5d94f0;if(_0x2a0da5[_0x37863e(0x17d)]!==_0x37863e(0x196)){const _0x89f51f={};return _0x89f51f[_0x2a0da5[_0x37863e(0x194)]]={[Op[_0x37863e(0x185)]]:'%'+_0x50b730[_0x37863e(0x17f)][_0x37863e(0x19f)]+'%'},_0x89f51f;}})}));_0x480363=_[_0x5d94f0(0x199)]({},_0x480363,_0x50b730[_0x5d94f0(0x181)]);const _0x585569={'where':_0x480363['where']};return db[_0x5d94f0(0x1a7)]['count'](_0x585569)[_0x5d94f0(0x18a)](function(_0x321066){const _0x5bd735=_0x5d94f0;return _0x20ebe9[_0x5bd735(0x1a6)]=_0x321066,_0x50b730[_0x5bd735(0x17f)][_0x5bd735(0x191)]&&(_0x480363[_0x5bd735(0x1a0)]=[{'all':!![]}]),db['SquareMessage']['findAll'](_0x480363);})[_0x5d94f0(0x18a)](function(_0x528f55){const _0x488631=_0x5d94f0;return _0x20ebe9[_0x488631(0x18d)]=_0x528f55,_0x20ebe9;})[_0x5d94f0(0x18a)](respondWithFilteredResult(_0x32fbc2,_0x480363))['catch'](handleError(_0x32fbc2,null));},exports[a704_0x2a219b(0x1ac)]=function(_0x474557,_0x2eafe6){const _0x4ed370=a704_0x2a219b;let _0x8dfda6={'raw':!![],'where':{'id':_0x474557[_0x4ed370(0x1aa)]['id']}};const _0x9b4bb7={};return _0x9b4bb7[_0x4ed370(0x1ab)]=_['keys'](db[_0x4ed370(0x1a7)]['rawAttributes']),_0x9b4bb7['query']=_[_0x4ed370(0x187)](_0x474557[_0x4ed370(0x17f)]),_0x9b4bb7['filters']=_['intersection'](_0x9b4bb7['model'],_0x9b4bb7['query']),_0x8dfda6[_0x4ed370(0x189)]=_[_0x4ed370(0x17e)](_0x9b4bb7[_0x4ed370(0x1ab)],qs[_0x4ed370(0x19b)](_0x474557[_0x4ed370(0x17f)]['fields'])),_0x8dfda6[_0x4ed370(0x189)]=_0x8dfda6[_0x4ed370(0x189)][_0x4ed370(0x18c)]?_0x8dfda6[_0x4ed370(0x189)]:_0x9b4bb7['model'],_0x474557[_0x4ed370(0x17f)][_0x4ed370(0x191)]&&(_0x8dfda6['include']=[{'all':!![]}]),_0x8dfda6=_[_0x4ed370(0x199)]({},_0x8dfda6,_0x474557[_0x4ed370(0x181)]),db[_0x4ed370(0x1a7)][_0x4ed370(0x188)](_0x8dfda6)[_0x4ed370(0x18a)](handleEntityNotFound(_0x2eafe6,null))[_0x4ed370(0x18a)](respondWithResult(_0x2eafe6,null))[_0x4ed370(0x19a)](handleError(_0x2eafe6,null));},exports[a704_0x2a219b(0x19e)]=function(_0x12a431,_0x1dfcf4){const _0x408a5f=a704_0x2a219b;return db[_0x408a5f(0x1a7)][_0x408a5f(0x19e)](_0x12a431[_0x408a5f(0x184)],{})['then'](respondWithResult(_0x1dfcf4,0xc9))['catch'](handleError(_0x1dfcf4,null));},exports[a704_0x2a219b(0x198)]=function(_0x3a83f6,_0x5628fc){const _0x885bec=a704_0x2a219b;return _0x3a83f6[_0x885bec(0x184)]['id']&&delete _0x3a83f6[_0x885bec(0x184)]['id'],db[_0x885bec(0x1a7)]['findOne']({'where':{'id':_0x3a83f6[_0x885bec(0x1aa)]['id']}})[_0x885bec(0x18a)](handleEntityNotFound(_0x5628fc,null))['then'](saveUpdates(_0x3a83f6[_0x885bec(0x184)],null))[_0x885bec(0x18a)](respondWithResult(_0x5628fc,null))['catch'](handleError(_0x5628fc,null));},exports[a704_0x2a219b(0x192)]=function(_0x2aa79d,_0x4c9aec){const _0x31911c=a704_0x2a219b;return db['SquareMessage'][_0x31911c(0x188)]({'where':{'id':_0x2aa79d[_0x31911c(0x1aa)]['id']}})[_0x31911c(0x18a)](handleEntityNotFound(_0x4c9aec,null))[_0x31911c(0x18a)](removeEntity(_0x4c9aec,null))['catch'](handleError(_0x4c9aec,null));}; \ No newline at end of file diff --git a/server/api/squareMessage/squareMessage.model.js b/server/api/squareMessage/squareMessage.model.js index 22642bd..c6bcfd3 100644 --- a/server/api/squareMessage/squareMessage.model.js +++ b/server/api/squareMessage/squareMessage.model.js @@ -1 +1 @@ -const a589_0x2806=['exports','./squareMessage.attributes','square_messages','define','SquareMessage'];(function(_0x101c10,_0x2806bc){const _0x4139bf=function(_0x28f0e7){while(--_0x28f0e7){_0x101c10['push'](_0x101c10['shift']());}};_0x4139bf(++_0x2806bc);}(a589_0x2806,0x1d2));const a589_0x4139=function(_0x101c10,_0x2806bc){_0x101c10=_0x101c10-0x0;let _0x4139bf=a589_0x2806[_0x101c10];return _0x4139bf;};const _0x40ea13=a589_0x4139;'use strict';const attributes=require(_0x40ea13('0x0'));module[_0x40ea13('0x4')]=function(_0x28f0e7){const _0x42362f=_0x40ea13,_0x1e2439=_0x28f0e7[_0x42362f('0x2')](_0x42362f('0x3'),attributes,{'tableName':_0x42362f('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x1e2439;}; \ No newline at end of file +const a705_0xaa45=['./squareMessage.attributes','./squareMessage.options','function','init','SquareMessage','sequelize','exports'];(function(_0x4eefd8,_0x45b0b1){const _0xaa4574=function(_0x13fbfd){while(--_0x13fbfd){_0x4eefd8['push'](_0x4eefd8['shift']());}};_0xaa4574(++_0x45b0b1);}(a705_0xaa45,0x1a2));const a705_0x13fb=function(_0x4eefd8,_0x45b0b1){_0x4eefd8=_0x4eefd8-0x19e;let _0xaa4574=a705_0xaa45[_0x4eefd8];return _0xaa4574;};const a705_0x2f1b8d=a705_0x13fb;'use strict';const {Model}=require(a705_0x2f1b8d(0x19e)),{attributes}=require(a705_0x2f1b8d(0x1a0)),{options}=require(a705_0x2f1b8d(0x1a1));class SquareMessage extends Model{}function init(_0xa5fc64,_0x2e3cbd){const _0x14d964=a705_0x2f1b8d,_0x3deec1=options(_0xa5fc64),_0x5171c3=typeof _0x2e3cbd===_0x14d964(0x1a2)?_0x2e3cbd(_0x3deec1):_0x3deec1;return SquareMessage[_0x14d964(0x1a3)](attributes,_0x5171c3),SquareMessage;}module['exports'][a705_0x2f1b8d(0x1a4)]=SquareMessage,module[a705_0x2f1b8d(0x19f)][a705_0x2f1b8d(0x1a3)]=init; \ No newline at end of file diff --git a/server/api/squareMessage/squareMessage.options.js b/server/api/squareMessage/squareMessage.options.js new file mode 100644 index 0000000..0852b2b --- /dev/null +++ b/server/api/squareMessage/squareMessage.options.js @@ -0,0 +1 @@ +var a706_0x4a1d=['options','exports','square_messages'];(function(_0x12819f,_0x43355f){var _0x4a1d9d=function(_0x3a1eaf){while(--_0x3a1eaf){_0x12819f['push'](_0x12819f['shift']());}};_0x4a1d9d(++_0x43355f);}(a706_0x4a1d,0x1ae));var a706_0x3a1e=function(_0x12819f,_0x43355f){_0x12819f=_0x12819f-0xc7;var _0x4a1d9d=a706_0x4a1d[_0x12819f];return _0x4a1d9d;};var a706_0x3a8734=a706_0x3a1e;function options(_0x856e4c){var _0x250391=a706_0x3a1e;return{'sequelize':_0x856e4c,'tableName':_0x250391(0xc8),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a706_0x3a8734(0xc7)][a706_0x3a8734(0xc9)]=options; \ No newline at end of file diff --git a/server/api/squareMessage/squareMessage.rpc.js b/server/api/squareMessage/squareMessage.rpc.js index 288a06f..2d122a6 100644 --- a/server/api/squareMessage/squareMessage.rpc.js +++ b/server/api/squareMessage/squareMessage.rpc.js @@ -1 +1 @@ -const a590_0x4c71=['raw','../../config/logger','rpc','catch','CreateSquareMessage','SquareMessage','message','../../mysqldb','error','body','create','then','options','stringify'];(function(_0x2754f4,_0x4c7175){const _0x3aee0c=function(_0x416eeb){while(--_0x416eeb){_0x2754f4['push'](_0x2754f4['shift']());}};_0x3aee0c(++_0x4c7175);}(a590_0x4c71,0xba));const a590_0x3aee=function(_0x2754f4,_0x4c7175){_0x2754f4=_0x2754f4-0x0;let _0x3aee0c=a590_0x4c71[_0x2754f4];return _0x3aee0c;};const _0x1a0cc4=a590_0x3aee;'use strict';const db=require(_0x1a0cc4('0x3'))['db'],logger=require(_0x1a0cc4('0xb'))(_0x1a0cc4('0xc'));exports[_0x1a0cc4('0x0')]=function(_0x416eeb){const _0x782e44=this;return new Promise(function(_0x5ab195,_0x45b7aa){const _0x4e6f32=a590_0x3aee;return db[_0x4e6f32('0x1')][_0x4e6f32('0x6')](_0x416eeb[_0x4e6f32('0x5')],{'raw':_0x416eeb[_0x4e6f32('0x8')]?_0x416eeb[_0x4e6f32('0x8')][_0x4e6f32('0xa')]===undefined?!![]:![]:!![]})[_0x4e6f32('0x7')](function(_0x57faeb){const _0x544c58=_0x4e6f32;logger['info'](_0x544c58('0x0'),_0x416eeb),logger['debug']('CreateSquareMessage',_0x416eeb,JSON[_0x544c58('0x9')](_0x57faeb)),_0x5ab195(_0x57faeb);})[_0x4e6f32('0xd')](function(_0x571e6b){const _0x26327b=_0x4e6f32;logger['error'](_0x26327b('0x0'),_0x571e6b[_0x26327b('0x2')],_0x416eeb),_0x45b7aa(_0x782e44[_0x26327b('0x4')](0x1f4,_0x571e6b['message']));});});}; \ No newline at end of file +const a707_0x4a73=['rpc','info','../../mysqldb','message','SquareMessage','create','debug','then','raw','CreateSquareMessage','options','error','catch','body'];(function(_0x21d78f,_0x3344e4){const _0x4a73c0=function(_0x552b13){while(--_0x552b13){_0x21d78f['push'](_0x21d78f['shift']());}};_0x4a73c0(++_0x3344e4);}(a707_0x4a73,0x1ba));const a707_0x552b=function(_0x21d78f,_0x3344e4){_0x21d78f=_0x21d78f-0xb6;let _0x4a73c0=a707_0x4a73[_0x21d78f];return _0x4a73c0;};const a707_0x1df6c2=a707_0x552b;'use strict';const db=require(a707_0x1df6c2(0xbe))['db'],logger=require('../../config/logger')(a707_0x1df6c2(0xbc));exports[a707_0x1df6c2(0xb7)]=function(_0x3017fb){const _0x2ed70c=this;return new Promise(function(_0x583bdf,_0xfc3db){const _0x3ce3ee=a707_0x552b;return db[_0x3ce3ee(0xc0)][_0x3ce3ee(0xc1)](_0x3017fb[_0x3ce3ee(0xbb)],{'raw':_0x3017fb[_0x3ce3ee(0xb8)]?_0x3017fb[_0x3ce3ee(0xb8)][_0x3ce3ee(0xb6)]===undefined?!![]:![]:!![]})[_0x3ce3ee(0xc3)](function(_0x48c9a8){const _0x204b39=_0x3ce3ee;logger[_0x204b39(0xbd)](_0x204b39(0xb7),_0x3017fb),logger[_0x204b39(0xc2)]('CreateSquareMessage',_0x3017fb,JSON['stringify'](_0x48c9a8)),_0x583bdf(_0x48c9a8);})[_0x3ce3ee(0xba)](function(_0x2fc05b){const _0x42e381=_0x3ce3ee;logger[_0x42e381(0xb9)](_0x42e381(0xb7),_0x2fc05b[_0x42e381(0xbf)],_0x3017fb),_0xfc3db(_0x2ed70c[_0x42e381(0xb9)](0x1f4,_0x2fc05b[_0x42e381(0xbf)]));});});}; \ No newline at end of file diff --git a/server/api/squareOdbc/index.js b/server/api/squareOdbc/index.js index bb742c3..3bf27e9 100644 --- a/server/api/squareOdbc/index.js +++ b/server/api/squareOdbc/index.js @@ -1 +1 @@ -const a591_0x277f=['/:id/test','post','show','Router','express','./squareOdbc.controller','connect-timeout','update','/:id','isAuthenticated','delete','destroy','test','get','exports','create','put','15s'];(function(_0x40bfb9,_0x277fbf){const _0x360854=function(_0x389962){while(--_0x389962){_0x40bfb9['push'](_0x40bfb9['shift']());}};_0x360854(++_0x277fbf);}(a591_0x277f,0xe1));const a591_0x3608=function(_0x40bfb9,_0x277fbf){_0x40bfb9=_0x40bfb9-0x0;let _0x360854=a591_0x277f[_0x40bfb9];return _0x360854;};const _0x37ad7d=a591_0x3608;'use strict';const timeout=require(_0x37ad7d('0xf')),express=require(_0x37ad7d('0xd')),router=express[_0x37ad7d('0xc')](),auth=require('../../components/auth/service'),controller=require(_0x37ad7d('0xe'));router[_0x37ad7d('0x4')]('/',auth['isAuthenticated'](),controller['index']),router[_0x37ad7d('0x4')](_0x37ad7d('0x11'),auth[_0x37ad7d('0x0')](),controller[_0x37ad7d('0xb')]),router[_0x37ad7d('0x4')](_0x37ad7d('0x9'),auth[_0x37ad7d('0x0')](),timeout(_0x37ad7d('0x8')),controller[_0x37ad7d('0x3')]),router[_0x37ad7d('0xa')]('/',auth[_0x37ad7d('0x0')](),controller[_0x37ad7d('0x6')]),router[_0x37ad7d('0x7')](_0x37ad7d('0x11'),auth['isAuthenticated'](),controller[_0x37ad7d('0x10')]),router[_0x37ad7d('0x1')](_0x37ad7d('0x11'),auth[_0x37ad7d('0x0')](),controller[_0x37ad7d('0x2')]),module[_0x37ad7d('0x5')]=router; \ No newline at end of file +const a708_0x18f2=['15s','express','create','show','/:id/test','put','/:id','destroy','index','isAuthenticated','get','./squareOdbc.controller','post','exports','connect-timeout','update'];(function(_0x432233,_0x588c94){const _0x18f26a=function(_0x35d40e){while(--_0x35d40e){_0x432233['push'](_0x432233['shift']());}};_0x18f26a(++_0x588c94);}(a708_0x18f2,0x1cf));const a708_0x35d4=function(_0x432233,_0x588c94){_0x432233=_0x432233-0xba;let _0x18f26a=a708_0x18f2[_0x432233];return _0x18f26a;};const a708_0x2552e4=a708_0x35d4;'use strict';const timeout=require(a708_0x2552e4(0xc9)),express=require(a708_0x2552e4(0xbc)),router=express['Router'](),auth=require('../../components/auth/service'),controller=require(a708_0x2552e4(0xc6));router[a708_0x2552e4(0xc5)]('/',auth[a708_0x2552e4(0xc4)](),controller[a708_0x2552e4(0xc3)]),router[a708_0x2552e4(0xc5)]('/:id',auth['isAuthenticated'](),controller[a708_0x2552e4(0xbe)]),router['get'](a708_0x2552e4(0xbf),auth[a708_0x2552e4(0xc4)](),timeout(a708_0x2552e4(0xbb)),controller['test']),router[a708_0x2552e4(0xc7)]('/',auth[a708_0x2552e4(0xc4)](),controller[a708_0x2552e4(0xbd)]),router[a708_0x2552e4(0xc0)](a708_0x2552e4(0xc1),auth['isAuthenticated'](),controller[a708_0x2552e4(0xba)]),router['delete'](a708_0x2552e4(0xc1),auth[a708_0x2552e4(0xc4)](),controller[a708_0x2552e4(0xc2)]),module[a708_0x2552e4(0xc8)]=router; \ No newline at end of file diff --git a/server/api/squareOdbc/squareOdbc.attributes.js b/server/api/squareOdbc/squareOdbc.attributes.js index e555f1d..5ebbebd 100644 --- a/server/api/squareOdbc/squareOdbc.attributes.js +++ b/server/api/squareOdbc/squareOdbc.attributes.js @@ -1 +1 @@ -const a592_0x5b09=['name','sequelize','STRING'];(function(_0xcda75c,_0x5b09da){const _0x330fdc=function(_0x354c51){while(--_0x354c51){_0xcda75c['push'](_0xcda75c['shift']());}};_0x330fdc(++_0x5b09da);}(a592_0x5b09,0xd9));const a592_0x330f=function(_0xcda75c,_0x5b09da){_0xcda75c=_0xcda75c-0x0;let _0x330fdc=a592_0x5b09[_0xcda75c];return _0x330fdc;};const _0x463ffc=a592_0x330f;'use strict';const Sequelize=require(_0x463ffc('0x0'));module['exports']={'name':{'type':Sequelize['STRING'],'unique':_0x463ffc('0x2'),'allowNull':![]},'dsn':{'type':Sequelize[_0x463ffc('0x1')]},'description':{'type':Sequelize['STRING']}}; \ No newline at end of file +const a709_0x1024=['exports','name','sequelize','STRING'];(function(_0x93fc28,_0x3a2b37){const _0x10247a=function(_0x285d1d){while(--_0x285d1d){_0x93fc28['push'](_0x93fc28['shift']());}};_0x10247a(++_0x3a2b37);}(a709_0x1024,0x1d1));const a709_0x285d=function(_0x93fc28,_0x3a2b37){_0x93fc28=_0x93fc28-0x7b;let _0x10247a=a709_0x1024[_0x93fc28];return _0x10247a;};const a709_0x18c945=a709_0x285d;'use strict';const {DataTypes}=require(a709_0x18c945(0x7c)),attributes={'name':{'type':DataTypes[a709_0x18c945(0x7d)],'unique':a709_0x18c945(0x7b),'allowNull':![]},'dsn':{'type':DataTypes[a709_0x18c945(0x7d)]},'description':{'type':DataTypes['STRING']}};module[a709_0x18c945(0x7e)]['attributes']=attributes; \ No newline at end of file diff --git a/server/api/squareOdbc/squareOdbc.controller.js b/server/api/squareOdbc/squareOdbc.controller.js index bf9e003..2ba9f4c 100644 --- a/server/api/squareOdbc/squareOdbc.controller.js +++ b/server/api/squareOdbc/squareOdbc.controller.js @@ -1 +1 @@ -const a593_0x20f2=['attributes','name','UserProfileResource','undefined','like','json','body','order','autoAssociation','type','error','userProfileId','pick','set','filter','VIRTUAL','then','stack','intersection','fieldName','update','Unable\x20to\x20retrieve\x20the\x20current\x20user','dsn','sequelize','query','keys','get','includeAll','odbc','sendStatus','show','index','closeSync','length','test','create','rows','../../components/parsers/qs','filters','status','count','openSync','../../mysqldb','findOne','fields','merge','UserProfileSection','lodash','role','Content-Range','sort','SquareOdbc','findAll','ODBC','destroy','offset','user','limit','nolimit','map','rawAttributes','params','key','send','where','include','model','catch','../../config/logger'];(function(_0x3cd4a9,_0x20f20f){const _0x27e19e=function(_0x326d92){while(--_0x326d92){_0x3cd4a9['push'](_0x3cd4a9['shift']());}};_0x27e19e(++_0x20f20f);}(a593_0x20f2,0x159));const a593_0x27e1=function(_0x3cd4a9,_0x20f20f){_0x3cd4a9=_0x3cd4a9-0x0;let _0x27e19e=a593_0x20f2[_0x3cd4a9];return _0x27e19e;};const _0x183b08=a593_0x27e1;'use strict';const _=require(_0x183b08('0x2f')),qs=require(_0x183b08('0x25')),logger=require(_0x183b08('0x44'))('api'),db=require(_0x183b08('0x2a'))['db'],{Op}=require(_0x183b08('0x17'));function respondWithResult(_0x326d92,_0x3b8015){return _0x3b8015=_0x3b8015||0xc8,function(_0x5c99df){const _0x275261=a593_0x27e1;if(_0x5c99df)return _0x326d92[_0x275261('0x27')](_0x3b8015)[_0x275261('0x5')](_0x5c99df);};}function respondWithFilteredResult(_0x13846c,_0x40b83f){return function(_0x1b9c37){const _0x52b7a6=a593_0x27e1;if(_0x1b9c37){const _0x43211b=_0x1b9c37[_0x52b7a6('0x28')],_0x29d2b1=_0x40b83f[_0x52b7a6('0x37')];let _0x52d62b=_0x40b83f[_0x52b7a6('0x37')]+_0x40b83f['limit'],_0x551bc7;return _0x52d62b>=_0x43211b?(_0x52d62b=_0x43211b,_0x551bc7=0xc8):_0x551bc7=0xce,_0x13846c[_0x52b7a6('0x27')](_0x551bc7),_0x13846c[_0x52b7a6('0xd')](_0x52b7a6('0x31'),_0x29d2b1+'-'+_0x52d62b+'/'+_0x43211b)[_0x52b7a6('0x5')](_0x1b9c37);}return null;};}function saveUpdates(_0x1a06b0){return function(_0x497635){const _0x5a7aed=a593_0x27e1;if(_0x497635)return _0x497635[_0x5a7aed('0x14')](_0x1a06b0)[_0x5a7aed('0x10')](function(_0x1752aa){return _0x1752aa;});return null;};}function removeEntity(_0x1e08a7){return function(_0x288d39){const _0x2e8f00=a593_0x27e1;if(_0x288d39)return _0x288d39[_0x2e8f00('0x36')]()['then'](function(){const _0x652c9f=_0x2e8f00,_0x5453e4=_0x288d39[_0x652c9f('0x1a')]({'plain':!![]}),_0x919f96=_0x652c9f('0x35');return db['UserProfileResource'][_0x652c9f('0x36')]({'where':{'type':_0x919f96,'resourceId':_0x5453e4['id']}})['then'](function(){return _0x288d39;});})[_0x2e8f00('0x10')](function(){const _0x11d39c=_0x2e8f00;_0x1e08a7[_0x11d39c('0x27')](0xcc)['end']();});};}function handleEntityNotFound(_0x36f0ad){return function(_0x3bdfaf){const _0x1e123c=a593_0x27e1;return!_0x3bdfaf&&_0x36f0ad[_0x1e123c('0x1d')](0x194),_0x3bdfaf;};}function handleError(_0x5a94b2,_0x498a1d){return _0x498a1d=_0x498a1d||0x1f4,function(_0xa027cb){const _0x563883=a593_0x27e1;logger[_0x563883('0xa')](_0xa027cb[_0x563883('0x11')]),_0xa027cb[_0x563883('0x1')]&&delete _0xa027cb[_0x563883('0x1')],_0x5a94b2[_0x563883('0x27')](_0x498a1d)[_0x563883('0x3f')](_0xa027cb);};}exports[_0x183b08('0x1f')]=function(_0x1ebd01,_0x7269b8){const _0x1dbcf9=_0x183b08;let _0x208762={};const _0x32a9ac={},_0x40b63a={'count':0x0,'rows':[]},_0x4f3656=_[_0x1dbcf9('0x3b')](db[_0x1dbcf9('0x33')][_0x1dbcf9('0x3c')],function(_0x2c6d60){const _0xfe962c=_0x1dbcf9;return{'name':_0x2c6d60[_0xfe962c('0x13')],'type':_0x2c6d60['type'][_0xfe962c('0x3e')]};});_0x32a9ac[_0x1dbcf9('0x42')]=_['map'](_0x4f3656,_0x1dbcf9('0x1')),_0x32a9ac['query']=_[_0x1dbcf9('0x19')](_0x1ebd01[_0x1dbcf9('0x18')]),_0x32a9ac[_0x1dbcf9('0x26')]=_[_0x1dbcf9('0x12')](_0x32a9ac[_0x1dbcf9('0x42')],_0x32a9ac[_0x1dbcf9('0x18')]),_0x208762[_0x1dbcf9('0x0')]=_[_0x1dbcf9('0x12')](_0x32a9ac[_0x1dbcf9('0x42')],qs[_0x1dbcf9('0x2c')](_0x1ebd01[_0x1dbcf9('0x18')][_0x1dbcf9('0x2c')])),_0x208762[_0x1dbcf9('0x0')]=_0x208762['attributes']['length']?_0x208762[_0x1dbcf9('0x0')]:_0x32a9ac['model'];typeof _0x1ebd01['query'][_0x1dbcf9('0x3a')]===_0x1dbcf9('0x3')&&(_0x208762[_0x1dbcf9('0x39')]=qs[_0x1dbcf9('0x39')](_0x1ebd01[_0x1dbcf9('0x18')][_0x1dbcf9('0x39')]),_0x208762[_0x1dbcf9('0x37')]=qs[_0x1dbcf9('0x37')](_0x1ebd01[_0x1dbcf9('0x18')][_0x1dbcf9('0x37')]));_0x208762[_0x1dbcf9('0x7')]=qs['sort'](_0x1ebd01[_0x1dbcf9('0x18')][_0x1dbcf9('0x32')]),_0x208762[_0x1dbcf9('0x40')]=qs['filters'](_[_0x1dbcf9('0xc')](_0x1ebd01[_0x1dbcf9('0x18')],_0x32a9ac[_0x1dbcf9('0x26')]),_0x4f3656);_0x1ebd01[_0x1dbcf9('0x18')]['filter']&&(_0x208762[_0x1dbcf9('0x40')]=_[_0x1dbcf9('0x2d')](_0x208762[_0x1dbcf9('0x40')],{[Op['or']]:_[_0x1dbcf9('0x3b')](_0x4f3656,function(_0x452b84){const _0x7c3d3a=_0x1dbcf9;if(_0x452b84[_0x7c3d3a('0x9')]!==_0x7c3d3a('0xf')){const _0x50c4b9={};return _0x50c4b9[_0x452b84['name']]={[Op[_0x7c3d3a('0x4')]]:'%'+_0x1ebd01[_0x7c3d3a('0x18')][_0x7c3d3a('0xe')]+'%'},_0x50c4b9;}})}));_0x208762=_['merge']({},_0x208762,_0x1ebd01['options']);const _0x5cf187={'where':_0x208762[_0x1dbcf9('0x40')]};return db['SquareOdbc']['count'](_0x5cf187)[_0x1dbcf9('0x10')](function(_0x295433){const _0x5bbfa3=_0x1dbcf9;return _0x40b63a[_0x5bbfa3('0x28')]=_0x295433,_0x1ebd01[_0x5bbfa3('0x18')][_0x5bbfa3('0x1b')]&&(_0x208762[_0x5bbfa3('0x41')]=[{'all':!![]}]),db[_0x5bbfa3('0x33')][_0x5bbfa3('0x34')](_0x208762);})[_0x1dbcf9('0x10')](function(_0x494309){const _0x484605=_0x1dbcf9;return _0x40b63a[_0x484605('0x24')]=_0x494309,_0x40b63a;})[_0x1dbcf9('0x10')](respondWithFilteredResult(_0x7269b8,_0x208762))['catch'](handleError(_0x7269b8,null));},exports[_0x183b08('0x1e')]=function(_0x237eff,_0x25bb40){const _0x599abc=_0x183b08;let _0x4795a6={'raw':!![],'where':{'id':_0x237eff['params']['id']}};const _0x4f5460={};return _0x4f5460[_0x599abc('0x42')]=_[_0x599abc('0x19')](db[_0x599abc('0x33')]['rawAttributes']),_0x4f5460[_0x599abc('0x18')]=_[_0x599abc('0x19')](_0x237eff[_0x599abc('0x18')]),_0x4f5460['filters']=_[_0x599abc('0x12')](_0x4f5460[_0x599abc('0x42')],_0x4f5460[_0x599abc('0x18')]),_0x4795a6[_0x599abc('0x0')]=_[_0x599abc('0x12')](_0x4f5460[_0x599abc('0x42')],qs['fields'](_0x237eff[_0x599abc('0x18')]['fields'])),_0x4795a6['attributes']=_0x4795a6[_0x599abc('0x0')][_0x599abc('0x21')]?_0x4795a6['attributes']:_0x4f5460[_0x599abc('0x42')],_0x237eff['query'][_0x599abc('0x1b')]&&(_0x4795a6[_0x599abc('0x41')]=[{'all':!![]}]),_0x4795a6=_[_0x599abc('0x2d')]({},_0x4795a6,_0x237eff['options']),db[_0x599abc('0x33')][_0x599abc('0x2b')](_0x4795a6)[_0x599abc('0x10')](handleEntityNotFound(_0x25bb40,null))['then'](respondWithResult(_0x25bb40,null))[_0x599abc('0x43')](handleError(_0x25bb40,null));},exports[_0x183b08('0x23')]=function(_0x4cb4c4,_0x1348fa){const _0x237dfa=_0x183b08;return db[_0x237dfa('0x33')][_0x237dfa('0x23')](_0x4cb4c4['body'],{})['then'](function(_0x10d598){const _0x10b318=_0x237dfa,_0x1c73fd=_0x4cb4c4[_0x10b318('0x38')][_0x10b318('0x1a')]({'plain':!![]});if(!_0x1c73fd)throw new Error(_0x10b318('0x15'));if(_0x1c73fd[_0x10b318('0x30')]===_0x10b318('0x38')){const _0x398c24=_0x10d598[_0x10b318('0x1a')]({'plain':!![]}),_0x50d5ae=_0x10b318('0x35');return db[_0x10b318('0x2e')][_0x10b318('0x2b')]({'where':{'name':_0x50d5ae,'userProfileId':_0x1c73fd[_0x10b318('0xb')]},'raw':!![]})['then'](function(_0x19b86a){const _0x9c578a=_0x10b318;return _0x19b86a&&_0x19b86a[_0x9c578a('0x8')]===0x0?db[_0x9c578a('0x2')]['create']({'name':_0x398c24[_0x9c578a('0x1')],'resourceId':_0x398c24['id'],'type':_0x19b86a[_0x9c578a('0x1')],'sectionId':_0x19b86a['id']},{})[_0x9c578a('0x10')](function(){return _0x10d598;}):_0x10d598;})[_0x10b318('0x43')](function(_0x5c86b6){const _0x3f777e=_0x10b318;logger[_0x3f777e('0xa')]('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0x5c86b6);throw _0x5c86b6;});}return _0x10d598;})[_0x237dfa('0x10')](respondWithResult(_0x1348fa,0xc9))[_0x237dfa('0x43')](handleError(_0x1348fa,null));},exports[_0x183b08('0x14')]=function(_0x334639,_0x9a1c66){const _0x30a097=_0x183b08;return _0x334639[_0x30a097('0x6')]['id']&&delete _0x334639['body']['id'],db['SquareOdbc']['findOne']({'where':{'id':_0x334639['params']['id']}})[_0x30a097('0x10')](handleEntityNotFound(_0x9a1c66,null))[_0x30a097('0x10')](saveUpdates(_0x334639[_0x30a097('0x6')],null))[_0x30a097('0x10')](respondWithResult(_0x9a1c66,null))[_0x30a097('0x43')](handleError(_0x9a1c66,null));},exports[_0x183b08('0x36')]=function(_0x4347bf,_0x4b33a6){const _0x51681e=_0x183b08;return db[_0x51681e('0x33')][_0x51681e('0x2b')]({'where':{'id':_0x4347bf[_0x51681e('0x3d')]['id']}})[_0x51681e('0x10')](handleEntityNotFound(_0x4b33a6,null))[_0x51681e('0x10')](removeEntity(_0x4b33a6,null))[_0x51681e('0x43')](handleError(_0x4b33a6,null));},exports[_0x183b08('0x22')]=function(_0x55ec52,_0x1d4b65){const _0x4d2d2e=_0x183b08;return db[_0x4d2d2e('0x33')][_0x4d2d2e('0x2b')]({'where':{'id':_0x55ec52[_0x4d2d2e('0x3d')]['id']},'attributes':['id','dsn']})[_0x4d2d2e('0x10')](handleEntityNotFound(_0x1d4b65,null))[_0x4d2d2e('0x10')](function(_0x52beb1){const _0x8a4908=_0x4d2d2e;if(_0x52beb1){const _0x250af7=require(_0x8a4908('0x1c'))();return _0x250af7[_0x8a4908('0x29')](_0x52beb1[_0x8a4908('0x16')]),_0x250af7[_0x8a4908('0x20')](),_0x52beb1;}})['then'](respondWithResult(_0x1d4b65,null))[_0x4d2d2e('0x43')](handleError(_0x1d4b65,null));}; \ No newline at end of file +const a710_0x19af=['rows','filters','dsn','show','fields','merge','VIRTUAL','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','sort','Unable\x20to\x20retrieve\x20the\x20current\x20user','undefined','map','UserProfileResource','nolimit','params','closeSync','count','keys','status','json','limit','stack','type','sequelize','length','set','../../mysqldb','SquareOdbc','openSync','name','where','attributes','index','includeAll','filter','end','body','offset','catch','intersection','get','user','include','send','role','key','../../config/logger','options','rawAttributes','pick','Content-Range','test','error','then','order','destroy','sendStatus','update','lodash','model','ODBC','userProfileId','query','findOne','create','odbc'];(function(_0xd1a4f4,_0x1fe25a){const _0x19af62=function(_0x1258ba){while(--_0x1258ba){_0xd1a4f4['push'](_0xd1a4f4['shift']());}};_0x19af62(++_0x1fe25a);}(a710_0x19af,0x1c3));const a710_0x1258=function(_0xd1a4f4,_0x1fe25a){_0xd1a4f4=_0xd1a4f4-0x1b4;let _0x19af62=a710_0x19af[_0xd1a4f4];return _0x19af62;};const a710_0x4fad8e=a710_0x1258;'use strict';const _=require(a710_0x4fad8e(0x1b7)),qs=require('../../components/parsers/qs'),logger=require(a710_0x4fad8e(0x1ed))('api'),{db}=require(a710_0x4fad8e(0x1d9)),{Op}=require(a710_0x4fad8e(0x1d6));function respondWithResult(_0x169001,_0x266285){return _0x266285=_0x266285||0xc8,function(_0x43efdb){const _0x2ec82f=a710_0x1258;if(_0x43efdb)return _0x169001[_0x2ec82f(0x1d1)](_0x266285)[_0x2ec82f(0x1d2)](_0x43efdb);};}function respondWithFilteredResult(_0x568d1e,_0x5395c7){return function(_0x2b2676){const _0x20c683=a710_0x1258;if(_0x2b2676){const _0x13f18f=_0x2b2676[_0x20c683(0x1cf)],_0x203e09=_0x5395c7['offset'];let _0x5dd212=_0x5395c7[_0x20c683(0x1e4)]+_0x5395c7[_0x20c683(0x1d3)],_0x5e6ff7;return _0x5dd212>=_0x13f18f?(_0x5dd212=_0x13f18f,_0x5e6ff7=0xc8):_0x5e6ff7=0xce,_0x568d1e[_0x20c683(0x1d1)](_0x5e6ff7),_0x568d1e[_0x20c683(0x1d8)](_0x20c683(0x1f1),_0x203e09+'-'+_0x5dd212+'/'+_0x13f18f)[_0x20c683(0x1d2)](_0x2b2676);}return null;};}function saveUpdates(_0x2a023b){return function(_0xa7e1ee){const _0x1a0739=a710_0x1258;if(_0xa7e1ee)return _0xa7e1ee[_0x1a0739(0x1b6)](_0x2a023b)[_0x1a0739(0x1f4)](function(_0x1907f9){return _0x1907f9;});return null;};}function removeEntity(_0xcfa42c){return function(_0x3f02ff){const _0x3159fd=a710_0x1258;if(_0x3f02ff)return _0x3f02ff[_0x3159fd(0x1b4)]()[_0x3159fd(0x1f4)](function(){const _0xa2565=_0x3159fd,_0x3b4518=_0x3f02ff[_0xa2565(0x1e7)]({'plain':!![]}),_0x4adc14=_0xa2565(0x1b9);return db['UserProfileResource'][_0xa2565(0x1b4)]({'where':{'type':_0x4adc14,'resourceId':_0x3b4518['id']}})['then'](function(){return _0x3f02ff;});})[_0x3159fd(0x1f4)](function(){const _0x4ea26a=_0x3159fd;_0xcfa42c[_0x4ea26a(0x1d1)](0xcc)[_0x4ea26a(0x1e2)]();});};}function handleEntityNotFound(_0xb0eb9f){return function(_0x2ecf5c){const _0x5333a3=a710_0x1258;return!_0x2ecf5c&&_0xb0eb9f[_0x5333a3(0x1b5)](0x194),_0x2ecf5c;};}function handleError(_0x19c18a,_0x35c432){return _0x35c432=_0x35c432||0x1f4,function(_0x3e607c){const _0x2792c2=a710_0x1258;logger[_0x2792c2(0x1f3)](_0x3e607c[_0x2792c2(0x1d4)]),_0x3e607c['name']&&delete _0x3e607c[_0x2792c2(0x1dc)],_0x19c18a[_0x2792c2(0x1d1)](_0x35c432)[_0x2792c2(0x1ea)](_0x3e607c);};}exports[a710_0x4fad8e(0x1df)]=function(_0x1e63f4,_0x1f17d6){const _0x10e88f=a710_0x4fad8e;let _0x429fd8={};const _0x144dfd={},_0x298d37={'count':0x0,'rows':[]},_0x211f51=_[_0x10e88f(0x1ca)](db[_0x10e88f(0x1da)][_0x10e88f(0x1ef)],function(_0x6a3333){const _0x4ea472=_0x10e88f;return{'name':_0x6a3333['fieldName'],'type':_0x6a3333[_0x4ea472(0x1d5)][_0x4ea472(0x1ec)]};});_0x144dfd['model']=_['map'](_0x211f51,_0x10e88f(0x1dc)),_0x144dfd[_0x10e88f(0x1bb)]=_[_0x10e88f(0x1d0)](_0x1e63f4['query']),_0x144dfd[_0x10e88f(0x1c0)]=_['intersection'](_0x144dfd['model'],_0x144dfd['query']),_0x429fd8['attributes']=_[_0x10e88f(0x1e6)](_0x144dfd[_0x10e88f(0x1b8)],qs[_0x10e88f(0x1c3)](_0x1e63f4['query']['fields'])),_0x429fd8[_0x10e88f(0x1de)]=_0x429fd8[_0x10e88f(0x1de)][_0x10e88f(0x1d7)]?_0x429fd8[_0x10e88f(0x1de)]:_0x144dfd[_0x10e88f(0x1b8)];typeof _0x1e63f4[_0x10e88f(0x1bb)][_0x10e88f(0x1cc)]===_0x10e88f(0x1c9)&&(_0x429fd8['limit']=qs[_0x10e88f(0x1d3)](_0x1e63f4['query']['limit']),_0x429fd8['offset']=qs[_0x10e88f(0x1e4)](_0x1e63f4[_0x10e88f(0x1bb)][_0x10e88f(0x1e4)]));_0x429fd8[_0x10e88f(0x1f5)]=qs[_0x10e88f(0x1c7)](_0x1e63f4['query'][_0x10e88f(0x1c7)]),_0x429fd8['where']=qs[_0x10e88f(0x1c0)](_[_0x10e88f(0x1f0)](_0x1e63f4[_0x10e88f(0x1bb)],_0x144dfd[_0x10e88f(0x1c0)]),_0x211f51);_0x1e63f4[_0x10e88f(0x1bb)][_0x10e88f(0x1e1)]&&(_0x429fd8[_0x10e88f(0x1dd)]=_[_0x10e88f(0x1c4)](_0x429fd8[_0x10e88f(0x1dd)],{[Op['or']]:_[_0x10e88f(0x1ca)](_0x211f51,function(_0x466608){const _0x279202=_0x10e88f;if(_0x466608[_0x279202(0x1d5)]!==_0x279202(0x1c5)){const _0x423922={};return _0x423922[_0x466608[_0x279202(0x1dc)]]={[Op['like']]:'%'+_0x1e63f4['query'][_0x279202(0x1e1)]+'%'},_0x423922;}})}));_0x429fd8=_[_0x10e88f(0x1c4)]({},_0x429fd8,_0x1e63f4[_0x10e88f(0x1ee)]);const _0x2c7cc1={'where':_0x429fd8[_0x10e88f(0x1dd)]};return db['SquareOdbc'][_0x10e88f(0x1cf)](_0x2c7cc1)[_0x10e88f(0x1f4)](function(_0x1beec2){const _0x1d7bf2=_0x10e88f;return _0x298d37[_0x1d7bf2(0x1cf)]=_0x1beec2,_0x1e63f4[_0x1d7bf2(0x1bb)][_0x1d7bf2(0x1e0)]&&(_0x429fd8[_0x1d7bf2(0x1e9)]=[{'all':!![]}]),db[_0x1d7bf2(0x1da)]['findAll'](_0x429fd8);})[_0x10e88f(0x1f4)](function(_0x3abafe){const _0x204c34=_0x10e88f;return _0x298d37[_0x204c34(0x1bf)]=_0x3abafe,_0x298d37;})[_0x10e88f(0x1f4)](respondWithFilteredResult(_0x1f17d6,_0x429fd8))['catch'](handleError(_0x1f17d6,null));},exports[a710_0x4fad8e(0x1c2)]=function(_0x42a5b0,_0x192a95){const _0x27afb8=a710_0x4fad8e;let _0x3a19ed={'raw':!![],'where':{'id':_0x42a5b0['params']['id']}};const _0x2074c8={};return _0x2074c8[_0x27afb8(0x1b8)]=_[_0x27afb8(0x1d0)](db[_0x27afb8(0x1da)]['rawAttributes']),_0x2074c8['query']=_[_0x27afb8(0x1d0)](_0x42a5b0[_0x27afb8(0x1bb)]),_0x2074c8['filters']=_[_0x27afb8(0x1e6)](_0x2074c8[_0x27afb8(0x1b8)],_0x2074c8['query']),_0x3a19ed[_0x27afb8(0x1de)]=_[_0x27afb8(0x1e6)](_0x2074c8[_0x27afb8(0x1b8)],qs[_0x27afb8(0x1c3)](_0x42a5b0['query']['fields'])),_0x3a19ed[_0x27afb8(0x1de)]=_0x3a19ed['attributes']['length']?_0x3a19ed['attributes']:_0x2074c8[_0x27afb8(0x1b8)],_0x42a5b0[_0x27afb8(0x1bb)][_0x27afb8(0x1e0)]&&(_0x3a19ed[_0x27afb8(0x1e9)]=[{'all':!![]}]),_0x3a19ed=_['merge']({},_0x3a19ed,_0x42a5b0[_0x27afb8(0x1ee)]),db[_0x27afb8(0x1da)][_0x27afb8(0x1bc)](_0x3a19ed)[_0x27afb8(0x1f4)](handleEntityNotFound(_0x192a95,null))[_0x27afb8(0x1f4)](respondWithResult(_0x192a95,null))['catch'](handleError(_0x192a95,null));},exports[a710_0x4fad8e(0x1bd)]=function(_0x2b5e36,_0x223162){const _0x1c90fe=a710_0x4fad8e;return db[_0x1c90fe(0x1da)][_0x1c90fe(0x1bd)](_0x2b5e36['body'],{})[_0x1c90fe(0x1f4)](function(_0xaf5d64){const _0x511128=_0x1c90fe,_0xebc9ff=_0x2b5e36[_0x511128(0x1e8)][_0x511128(0x1e7)]({'plain':!![]});if(!_0xebc9ff)throw new Error(_0x511128(0x1c8));if(_0xebc9ff[_0x511128(0x1eb)]===_0x511128(0x1e8)){const _0x1bf6de=_0xaf5d64[_0x511128(0x1e7)]({'plain':!![]}),_0x550f93=_0x511128(0x1b9);return db['UserProfileSection'][_0x511128(0x1bc)]({'where':{'name':_0x550f93,'userProfileId':_0xebc9ff[_0x511128(0x1ba)]},'raw':!![]})[_0x511128(0x1f4)](function(_0x151db6){const _0x3e9fa5=_0x511128;return _0x151db6&&_0x151db6['autoAssociation']===0x0?db[_0x3e9fa5(0x1cb)]['create']({'name':_0x1bf6de[_0x3e9fa5(0x1dc)],'resourceId':_0x1bf6de['id'],'type':_0x151db6[_0x3e9fa5(0x1dc)],'sectionId':_0x151db6['id']},{})['then'](function(){return _0xaf5d64;}):_0xaf5d64;})[_0x511128(0x1e5)](function(_0x329ce4){const _0x13f881=_0x511128;logger[_0x13f881(0x1f3)](_0x13f881(0x1c6),_0x329ce4);throw _0x329ce4;});}return _0xaf5d64;})[_0x1c90fe(0x1f4)](respondWithResult(_0x223162,0xc9))['catch'](handleError(_0x223162,null));},exports[a710_0x4fad8e(0x1b6)]=function(_0x471397,_0x343b31){const _0x2dce01=a710_0x4fad8e;return _0x471397[_0x2dce01(0x1e3)]['id']&&delete _0x471397['body']['id'],db['SquareOdbc'][_0x2dce01(0x1bc)]({'where':{'id':_0x471397['params']['id']}})[_0x2dce01(0x1f4)](handleEntityNotFound(_0x343b31,null))[_0x2dce01(0x1f4)](saveUpdates(_0x471397['body'],null))['then'](respondWithResult(_0x343b31,null))[_0x2dce01(0x1e5)](handleError(_0x343b31,null));},exports[a710_0x4fad8e(0x1b4)]=function(_0x19bbf2,_0x37cb3f){const _0x40b9d4=a710_0x4fad8e;return db[_0x40b9d4(0x1da)][_0x40b9d4(0x1bc)]({'where':{'id':_0x19bbf2[_0x40b9d4(0x1cd)]['id']}})[_0x40b9d4(0x1f4)](handleEntityNotFound(_0x37cb3f,null))['then'](removeEntity(_0x37cb3f,null))[_0x40b9d4(0x1e5)](handleError(_0x37cb3f,null));},exports[a710_0x4fad8e(0x1f2)]=function(_0x50cd2f,_0x4c2c43){const _0x1e0255=a710_0x4fad8e;return db['SquareOdbc'][_0x1e0255(0x1bc)]({'where':{'id':_0x50cd2f[_0x1e0255(0x1cd)]['id']},'attributes':['id',_0x1e0255(0x1c1)]})[_0x1e0255(0x1f4)](handleEntityNotFound(_0x4c2c43,null))[_0x1e0255(0x1f4)](function(_0xca0ede){const _0x2868e4=_0x1e0255;if(_0xca0ede){const _0x2bbb4a=require(_0x2868e4(0x1be))();return _0x2bbb4a[_0x2868e4(0x1db)](_0xca0ede['dsn']),_0x2bbb4a[_0x2868e4(0x1ce)](),_0xca0ede;}})[_0x1e0255(0x1f4)](respondWithResult(_0x4c2c43,null))[_0x1e0255(0x1e5)](handleError(_0x4c2c43,null));}; \ No newline at end of file diff --git a/server/api/squareOdbc/squareOdbc.model.js b/server/api/squareOdbc/squareOdbc.model.js index 329cfe0..f055f8a 100644 --- a/server/api/squareOdbc/squareOdbc.model.js +++ b/server/api/squareOdbc/squareOdbc.model.js @@ -1 +1 @@ -const a594_0x169d=['square_odbc','exports','SquareOdbc'];(function(_0x10ec7e,_0x169d6b){const _0x42e3a3=function(_0x4eb25a){while(--_0x4eb25a){_0x10ec7e['push'](_0x10ec7e['shift']());}};_0x42e3a3(++_0x169d6b);}(a594_0x169d,0x158));const a594_0x42e3=function(_0x10ec7e,_0x169d6b){_0x10ec7e=_0x10ec7e-0x0;let _0x42e3a3=a594_0x169d[_0x10ec7e];return _0x42e3a3;};const _0x180454=a594_0x42e3;'use strict';const attributes=require('./squareOdbc.attributes');module[_0x180454('0x2')]=function(_0x4eb25a){const _0x3134c2=_0x180454,_0x5e33eb=_0x4eb25a['define'](_0x3134c2('0x0'),attributes,{'tableName':_0x3134c2('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x5e33eb;}; \ No newline at end of file +const a711_0x4064=['init','./squareOdbc.options','sequelize','SquareOdbc'];(function(_0x328e7e,_0x39a4f8){const _0x4064c9=function(_0x9c119e){while(--_0x9c119e){_0x328e7e['push'](_0x328e7e['shift']());}};_0x4064c9(++_0x39a4f8);}(a711_0x4064,0x1ce));const a711_0x9c11=function(_0x328e7e,_0x39a4f8){_0x328e7e=_0x328e7e-0x18f;let _0x4064c9=a711_0x4064[_0x328e7e];return _0x4064c9;};const a711_0x2c1dda=a711_0x9c11;'use strict';const {Model}=require(a711_0x2c1dda(0x18f)),{attributes}=require('./squareOdbc.attributes'),{options}=require(a711_0x2c1dda(0x192));class SquareOdbc extends Model{}function init(_0x3cce5e,_0x38172d){const _0x58210e=a711_0x2c1dda,_0xb9b6e7=options(_0x3cce5e),_0x557b19=typeof _0x38172d==='function'?_0x38172d(_0xb9b6e7):_0xb9b6e7;return SquareOdbc[_0x58210e(0x191)](attributes,_0x557b19),SquareOdbc;}module['exports'][a711_0x2c1dda(0x190)]=SquareOdbc,module['exports'][a711_0x2c1dda(0x191)]=init; \ No newline at end of file diff --git a/server/api/squareOdbc/squareOdbc.options.js b/server/api/squareOdbc/squareOdbc.options.js new file mode 100644 index 0000000..bd4ef37 --- /dev/null +++ b/server/api/squareOdbc/squareOdbc.options.js @@ -0,0 +1 @@ +var a712_0x5590=['options','exports','square_odbc'];(function(_0x426da6,_0x3783b4){var _0x559059=function(_0xcf302e){while(--_0xcf302e){_0x426da6['push'](_0x426da6['shift']());}};_0x559059(++_0x3783b4);}(a712_0x5590,0x1c8));var a712_0xcf30=function(_0x426da6,_0x3783b4){_0x426da6=_0x426da6-0xab;var _0x559059=a712_0x5590[_0x426da6];return _0x559059;};var a712_0xd23444=a712_0xcf30;function options(_0x3006f7){var _0x4694c3=a712_0xcf30;return{'sequelize':_0x3006f7,'tableName':_0x4694c3(0xad),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a712_0xd23444(0xac)][a712_0xd23444(0xab)]=options; \ No newline at end of file diff --git a/server/api/squareOdbc/squareOdbc.rpc.js b/server/api/squareOdbc/squareOdbc.rpc.js index 8fda2c7..aeed152 100644 --- a/server/api/squareOdbc/squareOdbc.rpc.js +++ b/server/api/squareOdbc/squareOdbc.rpc.js @@ -1 +1 @@ -const a595_0x4d8a=['error','message','../../mysqldb','attributes','stringify','lodash','findOne','then','rpc','ShowSquareOdbc','../../config/logger','options','include','where','model','info','map','catch','debug'];(function(_0xb16ab7,_0x4d8a4d){const _0x1b7a9b=function(_0x158fd1){while(--_0x158fd1){_0xb16ab7['push'](_0xb16ab7['shift']());}};_0x1b7a9b(++_0x4d8a4d);}(a595_0x4d8a,0xb9));const a595_0x1b7a=function(_0xb16ab7,_0x4d8a4d){_0xb16ab7=_0xb16ab7-0x0;let _0x1b7a9b=a595_0x4d8a[_0xb16ab7];return _0x1b7a9b;};const _0x103dd8=a595_0x1b7a;'use strict';const db=require(_0x103dd8('0x7'))['db'],logger=require(_0x103dd8('0xf'))(_0x103dd8('0xd')),_=require(_0x103dd8('0xa'));exports[_0x103dd8('0xe')]=function(_0x158fd1){const _0x276d85=this;return new Promise(function(_0x296599,_0x453de3){const _0xf332ec=a595_0x1b7a;return db['SquareOdbc'][_0xf332ec('0xb')]({'raw':_0x158fd1[_0xf332ec('0x10')]?_0x158fd1[_0xf332ec('0x10')]['raw']===undefined?!![]:![]:!![],'where':_0x158fd1['options']?_0x158fd1[_0xf332ec('0x10')][_0xf332ec('0x12')]||null:null,'attributes':_0x158fd1[_0xf332ec('0x10')]?_0x158fd1[_0xf332ec('0x10')][_0xf332ec('0x8')]||null:null,'include':_0x158fd1[_0xf332ec('0x10')]?_0x158fd1[_0xf332ec('0x10')][_0xf332ec('0x11')]?_[_0xf332ec('0x2')](_0x158fd1[_0xf332ec('0x10')]['include'],function(_0x31b8d9){const _0x443d02=_0xf332ec;return{'model':db[_0x31b8d9[_0x443d02('0x0')]],'as':_0x31b8d9['as'],'attributes':_0x31b8d9[_0x443d02('0x8')],'include':_0x31b8d9[_0x443d02('0x11')]?_['map'](_0x31b8d9[_0x443d02('0x11')],function(_0x25e2f0){const _0x5a6bc4=_0x443d02;return{'model':db[_0x25e2f0[_0x5a6bc4('0x0')]],'as':_0x25e2f0['as'],'attributes':_0x25e2f0[_0x5a6bc4('0x8')],'include':_0x25e2f0[_0x5a6bc4('0x11')]?_[_0x5a6bc4('0x2')](_0x25e2f0['include'],function(_0x27ac83){const _0x2414c3=_0x5a6bc4;return{'model':db[_0x27ac83[_0x2414c3('0x0')]],'as':_0x27ac83['as'],'attributes':_0x27ac83[_0x2414c3('0x8')]};}):[]};}):[]};}):[]:[]})[_0xf332ec('0xc')](function(_0x49b694){const _0xd610a7=_0xf332ec;logger[_0xd610a7('0x1')]('ShowSquareOdbc',_0x158fd1),logger[_0xd610a7('0x4')](_0xd610a7('0xe'),_0x158fd1,JSON[_0xd610a7('0x9')](_0x49b694)),_0x296599(_0x49b694);})[_0xf332ec('0x3')](function(_0x42f672){const _0x52f332=_0xf332ec;logger[_0x52f332('0x5')](_0x52f332('0xe'),_0x42f672[_0x52f332('0x6')],_0x158fd1),_0x453de3(_0x276d85[_0x52f332('0x5')](0x1f4,_0x42f672['message']));});});}; \ No newline at end of file +const a713_0x5d7b=['SquareOdbc','rpc','ShowSquareOdbc','../../config/logger','include','raw','info','where','catch','model','message','options','error','attributes','map','../../mysqldb'];(function(_0x4f54f8,_0x11414e){const _0x5d7b35=function(_0x31c7d2){while(--_0x31c7d2){_0x4f54f8['push'](_0x4f54f8['shift']());}};_0x5d7b35(++_0x11414e);}(a713_0x5d7b,0x1db));const a713_0x31c7=function(_0x4f54f8,_0x11414e){_0x4f54f8=_0x4f54f8-0x13c;let _0x5d7b35=a713_0x5d7b[_0x4f54f8];return _0x5d7b35;};const a713_0x207653=a713_0x31c7;'use strict';const db=require(a713_0x207653(0x140))['db'],logger=require(a713_0x207653(0x144))(a713_0x207653(0x142)),_=require('lodash');exports[a713_0x207653(0x143)]=function(_0x130d7a){const _0x1243cb=this;return new Promise(function(_0x2dd131,_0x4804aa){const _0x4787e0=a713_0x31c7;return db[_0x4787e0(0x141)]['findOne']({'raw':_0x130d7a['options']?_0x130d7a[_0x4787e0(0x13c)][_0x4787e0(0x146)]===undefined?!![]:![]:!![],'where':_0x130d7a['options']?_0x130d7a[_0x4787e0(0x13c)][_0x4787e0(0x148)]||null:null,'attributes':_0x130d7a['options']?_0x130d7a['options'][_0x4787e0(0x13e)]||null:null,'include':_0x130d7a[_0x4787e0(0x13c)]?_0x130d7a[_0x4787e0(0x13c)]['include']?_[_0x4787e0(0x13f)](_0x130d7a[_0x4787e0(0x13c)][_0x4787e0(0x145)],function(_0x412e13){const _0x458542=_0x4787e0;return{'model':db[_0x412e13[_0x458542(0x14a)]],'as':_0x412e13['as'],'attributes':_0x412e13[_0x458542(0x13e)],'include':_0x412e13['include']?_['map'](_0x412e13['include'],function(_0x215d06){const _0x171de8=_0x458542;return{'model':db[_0x215d06[_0x171de8(0x14a)]],'as':_0x215d06['as'],'attributes':_0x215d06['attributes'],'include':_0x215d06[_0x171de8(0x145)]?_[_0x171de8(0x13f)](_0x215d06[_0x171de8(0x145)],function(_0xddf0f8){const _0x5dbe4f=_0x171de8;return{'model':db[_0xddf0f8[_0x5dbe4f(0x14a)]],'as':_0xddf0f8['as'],'attributes':_0xddf0f8[_0x5dbe4f(0x13e)]};}):[]};}):[]};}):[]:[]})['then'](function(_0x4065ef){const _0x58de8b=_0x4787e0;logger[_0x58de8b(0x147)](_0x58de8b(0x143),_0x130d7a),logger['debug']('ShowSquareOdbc',_0x130d7a,JSON['stringify'](_0x4065ef)),_0x2dd131(_0x4065ef);})[_0x4787e0(0x149)](function(_0x2817c5){const _0x13cd73=_0x4787e0;logger[_0x13cd73(0x13d)]('ShowSquareOdbc',_0x2817c5[_0x13cd73(0x14b)],_0x130d7a),_0x4804aa(_0x1243cb['error'](0x1f4,_0x2817c5[_0x13cd73(0x14b)]));});});}; \ No newline at end of file diff --git a/server/api/squareProject/index.js b/server/api/squareProject/index.js index 044c791..17aad4f 100644 --- a/server/api/squareProject/index.js +++ b/server/api/squareProject/index.js @@ -1 +1 @@ -const a596_0x8436=['post','express','update','./squareProject.controller','index','delete','isAuthenticated','Router','put','exports','/:id/users','/:id','../../components/auth/service','destroy','show','get'];(function(_0x4af170,_0x843684){const _0x5e948e=function(_0x1021be){while(--_0x1021be){_0x4af170['push'](_0x4af170['shift']());}};_0x5e948e(++_0x843684);}(a596_0x8436,0x76));const a596_0x5e94=function(_0x4af170,_0x843684){_0x4af170=_0x4af170-0x0;let _0x5e948e=a596_0x8436[_0x4af170];return _0x5e948e;};const _0x345178=a596_0x5e94;'use strict';const express=require(_0x345178('0xb')),router=express[_0x345178('0x1')](),auth=require(_0x345178('0x6')),controller=require(_0x345178('0xd'));router[_0x345178('0x9')]('/',auth[_0x345178('0x0')](),controller[_0x345178('0xe')]),router['get'](_0x345178('0x5'),auth[_0x345178('0x0')](),controller[_0x345178('0x8')]),router[_0x345178('0x9')]('/:id/users',auth['isAuthenticated'](),controller['getUsers']),router[_0x345178('0xa')]('/',auth['isAuthenticated'](),controller['create']),router['post'](_0x345178('0x4'),auth['isAuthenticated'](),controller['addUsers']),router[_0x345178('0x2')]('/:id',auth[_0x345178('0x0')](),controller[_0x345178('0xc')]),router['delete'](_0x345178('0x5'),auth[_0x345178('0x0')](),controller[_0x345178('0x7')]),router[_0x345178('0xf')](_0x345178('0x4'),auth['isAuthenticated'](),controller['removeUsers']),module[_0x345178('0x3')]=router; \ No newline at end of file +const a714_0x1508=['isAuthenticated','express','destroy','./squareProject.controller','/:id/users','exports','getUsers','show','/:id','post','Router','get','index','update','../../components/auth/service'];(function(_0x126452,_0x23dacd){const _0x150822=function(_0x470f18){while(--_0x470f18){_0x126452['push'](_0x126452['shift']());}};_0x150822(++_0x23dacd);}(a714_0x1508,0xff));const a714_0x470f=function(_0x126452,_0x23dacd){_0x126452=_0x126452-0xce;let _0x150822=a714_0x1508[_0x126452];return _0x150822;};const a714_0x4600b5=a714_0x470f;'use strict';const express=require(a714_0x4600b5(0xcf)),router=express[a714_0x4600b5(0xd8)](),auth=require(a714_0x4600b5(0xdc)),controller=require(a714_0x4600b5(0xd1));router[a714_0x4600b5(0xd9)]('/',auth[a714_0x4600b5(0xce)](),controller[a714_0x4600b5(0xda)]),router[a714_0x4600b5(0xd9)](a714_0x4600b5(0xd6),auth[a714_0x4600b5(0xce)](),controller[a714_0x4600b5(0xd5)]),router[a714_0x4600b5(0xd9)](a714_0x4600b5(0xd2),auth[a714_0x4600b5(0xce)](),controller[a714_0x4600b5(0xd4)]),router[a714_0x4600b5(0xd7)]('/',auth[a714_0x4600b5(0xce)](),controller['create']),router[a714_0x4600b5(0xd7)](a714_0x4600b5(0xd2),auth[a714_0x4600b5(0xce)](),controller['addUsers']),router['put'](a714_0x4600b5(0xd6),auth[a714_0x4600b5(0xce)](),controller[a714_0x4600b5(0xdb)]),router['delete']('/:id',auth[a714_0x4600b5(0xce)](),controller[a714_0x4600b5(0xd0)]),router['delete'](a714_0x4600b5(0xd2),auth[a714_0x4600b5(0xce)](),controller['removeUsers']),module[a714_0x4600b5(0xd3)]=router; \ No newline at end of file diff --git a/server/api/squareProject/squareProject.attributes.js b/server/api/squareProject/squareProject.attributes.js index 1f28563..bef9a05 100644 --- a/server/api/squareProject/squareProject.attributes.js +++ b/server/api/squareProject/squareProject.attributes.js @@ -1 +1 @@ -const a597_0x1422=['getDataValue','BLOB','sequelize','name','TEXT','STRING','exports','preproduction','long','toString','production','utf8'];(function(_0x22e1a6,_0x1422ff){const _0x1eb9af=function(_0x178d82){while(--_0x178d82){_0x22e1a6['push'](_0x22e1a6['shift']());}};_0x1eb9af(++_0x1422ff);}(a597_0x1422,0x108));const a597_0x1eb9=function(_0x22e1a6,_0x1422ff){_0x22e1a6=_0x22e1a6-0x0;let _0x1eb9af=a597_0x1422[_0x22e1a6];return _0x1eb9af;};const _0x3cd8a3=a597_0x1eb9;'use strict';const Sequelize=require(_0x3cd8a3('0x2'));module[_0x3cd8a3('0x6')]={'name':{'type':Sequelize[_0x3cd8a3('0x5')],'unique':_0x3cd8a3('0x3'),'allowNull':![]},'description':{'type':Sequelize[_0x3cd8a3('0x5')]},'notes':{'type':Sequelize[_0x3cd8a3('0x4')]},'preproduction':{'type':Sequelize[_0x3cd8a3('0x1')](_0x3cd8a3('0x8')),'get':function(){const _0x2b796f=_0x3cd8a3;if(this[_0x2b796f('0x0')]('preproduction'))return this[_0x2b796f('0x0')](_0x2b796f('0x7'))[_0x2b796f('0x9')](_0x2b796f('0xb'));}},'production':{'type':Sequelize[_0x3cd8a3('0x1')](_0x3cd8a3('0x8')),'get':function(){const _0x23f450=_0x3cd8a3;if(this[_0x23f450('0x0')](_0x23f450('0xa')))return this[_0x23f450('0x0')]('production')['toString'](_0x23f450('0xb'));}}}; \ No newline at end of file +const a715_0x5858=['BLOB','getDataValue','name','STRING','utf8','production','sequelize','preproduction','long','toString'];(function(_0xf57011,_0x244d9c){const _0x585824=function(_0x3b2949){while(--_0x3b2949){_0xf57011['push'](_0xf57011['shift']());}};_0x585824(++_0x244d9c);}(a715_0x5858,0xa7));const a715_0x3b29=function(_0xf57011,_0x244d9c){_0xf57011=_0xf57011-0xf0;let _0x585824=a715_0x5858[_0xf57011];return _0x585824;};const a715_0x2f2520=a715_0x3b29;'use strict';const {DataTypes}=require(a715_0x2f2520(0xf9)),attributes={'name':{'type':DataTypes[a715_0x2f2520(0xf6)],'unique':a715_0x2f2520(0xf5),'allowNull':![]},'description':{'type':DataTypes[a715_0x2f2520(0xf6)]},'notes':{'type':DataTypes['TEXT']},'preproduction':{'type':DataTypes[a715_0x2f2520(0xf3)](a715_0x2f2520(0xf1)),'get':function(){const _0x1ad9cb=a715_0x2f2520;if(this[_0x1ad9cb(0xf4)](_0x1ad9cb(0xf0)))return this[_0x1ad9cb(0xf4)](_0x1ad9cb(0xf0))['toString'](_0x1ad9cb(0xf7));}},'production':{'type':DataTypes[a715_0x2f2520(0xf3)](a715_0x2f2520(0xf1)),'get':function(){const _0x185e67=a715_0x2f2520;if(this['getDataValue'](_0x185e67(0xf8)))return this[_0x185e67(0xf4)](_0x185e67(0xf8))[_0x185e67(0xf2)]('utf8');}}};module['exports']['attributes']=attributes; \ No newline at end of file diff --git a/server/api/squareProject/squareProject.controller.js b/server/api/squareProject/squareProject.controller.js index 1a76e44..a642d27 100644 --- a/server/api/squareProject/squareProject.controller.js +++ b/server/api/squareProject/squareProject.controller.js @@ -1 +1 @@ -const a598_0x2d4f=['autoAssociation','limit','UserProfileResource','keys','filters','params','then','send','../../config/logger','intersection','userSquareProject:remove','../../rediscache','Content-Range','get','addUsers','role','userProfileId','../../components/parsers/qs','update','order','options','create','body','query','emit','sort','rawAttributes','status','api','sequelize','undefined','fieldName','removeUsers','destroy','UserProfileSection','stack','count','nolimit','where','map','getUsers','ids','User','error','model','offset','SquareProjects','json','include','name','end','type','isArray','filter','set','VIRTUAL','./squareProject.socket','length','findAll','pick','lodash','like','attributes','register','includeAll','catch','omit','sendStatus','fields','../../mysqldb','findOne','merge','SquareProject','show'];(function(_0x3df3cc,_0x2d4feb){const _0x4e56df=function(_0x64b4d6){while(--_0x64b4d6){_0x3df3cc['push'](_0x3df3cc['shift']());}};_0x4e56df(++_0x2d4feb);}(a598_0x2d4f,0x1a1));const a598_0x4e56=function(_0x3df3cc,_0x2d4feb){_0x3df3cc=_0x3df3cc-0x0;let _0x4e56df=a598_0x2d4f[_0x3df3cc];return _0x4e56df;};const _0x4abd4f=a598_0x4e56;'use strict';const _=require(_0x4abd4f('0xd')),qs=require(_0x4abd4f('0x2c')),logger=require(_0x4abd4f('0x23'))(_0x4abd4f('0x37')),{getSocket}=require(_0x4abd4f('0x26')),socket=getSocket(),db=require(_0x4abd4f('0x16'))['db'],{Op}=require(_0x4abd4f('0x38'));require(_0x4abd4f('0x9'))[_0x4abd4f('0x10')](socket);function respondWithStatusCode(_0x64b4d6,_0x19c6d3){return _0x19c6d3=_0x19c6d3||0xcc,function(_0x4e4c4d){const _0x2a73c4=a598_0x4e56;if(_0x4e4c4d)return _0x64b4d6['sendStatus'](_0x19c6d3);return _0x64b4d6[_0x2a73c4('0x36')](_0x19c6d3)[_0x2a73c4('0x3')]();};}function respondWithResult(_0x195ce2,_0x292da9){return _0x292da9=_0x292da9||0xc8,function(_0x288a8b){const _0x173251=a598_0x4e56;if(_0x288a8b)return _0x195ce2[_0x173251('0x36')](_0x292da9)[_0x173251('0x0')](_0x288a8b);};}function respondWithFilteredResult(_0x1c97a7,_0x485ff4){return function(_0x1be67e){const _0x560909=a598_0x4e56;if(_0x1be67e){const _0x20408e=_0x1be67e[_0x560909('0x3f')],_0x101177=_0x485ff4[_0x560909('0x48')];let _0x40bee8=_0x485ff4['offset']+_0x485ff4[_0x560909('0x1c')],_0x1a6d8b;return _0x40bee8>=_0x20408e?(_0x40bee8=_0x20408e,_0x1a6d8b=0xc8):_0x1a6d8b=0xce,_0x1c97a7[_0x560909('0x36')](_0x1a6d8b),_0x1c97a7[_0x560909('0x7')](_0x560909('0x27'),_0x101177+'-'+_0x40bee8+'/'+_0x20408e)['json'](_0x1be67e);}return null;};}function saveUpdates(_0x297103){return function(_0x3ec242){const _0x480eb1=a598_0x4e56;if(_0x3ec242)return _0x3ec242[_0x480eb1('0x2d')](_0x297103)[_0x480eb1('0x21')](function(_0x5dce8e){return _0x5dce8e;});return null;};}function removeEntity(_0x127fca){return function(_0x1af9e4){const _0x386ff1=a598_0x4e56;if(_0x1af9e4)return _0x1af9e4[_0x386ff1('0x3c')]()[_0x386ff1('0x21')](function(){const _0x32874a=_0x386ff1,_0x262fc2=_0x1af9e4['get']({'plain':!![]}),_0x16dd1b=_0x32874a('0x49');return db['UserProfileResource'][_0x32874a('0x3c')]({'where':{'type':_0x16dd1b,'resourceId':_0x262fc2['id']}})[_0x32874a('0x21')](function(){return _0x1af9e4;});})['then'](function(){const _0x2ca7d5=_0x386ff1;_0x127fca[_0x2ca7d5('0x36')](0xcc)[_0x2ca7d5('0x3')]();});};}function handleEntityNotFound(_0x59afca){return function(_0xcb01c8){const _0x2b1936=a598_0x4e56;return!_0xcb01c8&&_0x59afca[_0x2b1936('0x14')](0x194),_0xcb01c8;};}function handleError(_0x225a2b,_0x1eeb65){return _0x1eeb65=_0x1eeb65||0x1f4,function(_0x279784){const _0xf240f6=a598_0x4e56;logger[_0xf240f6('0x46')](_0x279784[_0xf240f6('0x3e')]),_0x279784['name']&&delete _0x279784[_0xf240f6('0x2')],_0x225a2b[_0xf240f6('0x36')](_0x1eeb65)[_0xf240f6('0x22')](_0x279784);};}exports['index']=function(_0x16c238,_0x113c9f){const _0x57d44f=_0x4abd4f;let _0x28dbd6={};const _0x2144d7={},_0xac96b={'count':0x0,'rows':[]},_0x1ad487=_[_0x57d44f('0x42')](db[_0x57d44f('0x19')][_0x57d44f('0x35')],function(_0x31a769){const _0x35d8f9=_0x57d44f;return{'name':_0x31a769[_0x35d8f9('0x3a')],'type':_0x31a769[_0x35d8f9('0x4')]['key']};});_0x2144d7[_0x57d44f('0x47')]=_[_0x57d44f('0x42')](_0x1ad487,_0x57d44f('0x2')),_0x2144d7[_0x57d44f('0x32')]=_[_0x57d44f('0x1e')](_0x16c238['query']),_0x2144d7[_0x57d44f('0x1f')]=_[_0x57d44f('0x24')](_0x2144d7[_0x57d44f('0x47')],_0x2144d7[_0x57d44f('0x32')]),_0x28dbd6[_0x57d44f('0xf')]=_[_0x57d44f('0x24')](_0x2144d7['model'],qs[_0x57d44f('0x15')](_0x16c238[_0x57d44f('0x32')][_0x57d44f('0x15')])),_0x28dbd6['attributes']=_0x28dbd6['attributes'][_0x57d44f('0xa')]?_0x28dbd6[_0x57d44f('0xf')]:_0x2144d7[_0x57d44f('0x47')];typeof _0x16c238[_0x57d44f('0x32')]['nolimit']===_0x57d44f('0x39')&&(_0x28dbd6['limit']=qs[_0x57d44f('0x1c')](_0x16c238['query'][_0x57d44f('0x1c')]),_0x28dbd6['offset']=qs[_0x57d44f('0x48')](_0x16c238[_0x57d44f('0x32')][_0x57d44f('0x48')]));_0x28dbd6[_0x57d44f('0x2e')]=qs[_0x57d44f('0x34')](_0x16c238[_0x57d44f('0x32')]['sort']),_0x28dbd6[_0x57d44f('0x41')]=qs[_0x57d44f('0x1f')](_['pick'](_0x16c238[_0x57d44f('0x32')],_0x2144d7[_0x57d44f('0x1f')]),_0x1ad487);_0x16c238[_0x57d44f('0x32')][_0x57d44f('0x6')]&&(_0x28dbd6['where']=_[_0x57d44f('0x18')](_0x28dbd6[_0x57d44f('0x41')],{[Op['or']]:_[_0x57d44f('0x42')](_0x1ad487,function(_0x33cf44){const _0x2b519e=_0x57d44f;if(_0x33cf44['type']!==_0x2b519e('0x8')){const _0x2e5f21={};return _0x2e5f21[_0x33cf44[_0x2b519e('0x2')]]={[Op[_0x2b519e('0xe')]]:'%'+_0x16c238[_0x2b519e('0x32')]['filter']+'%'},_0x2e5f21;}})}));_0x28dbd6=_[_0x57d44f('0x18')]({},_0x28dbd6,_0x16c238[_0x57d44f('0x2f')]);const _0x396a91={'where':_0x28dbd6[_0x57d44f('0x41')]};return db[_0x57d44f('0x19')][_0x57d44f('0x3f')](_0x396a91)['then'](function(_0x3932fa){const _0x2ce06b=_0x57d44f;return _0xac96b[_0x2ce06b('0x3f')]=_0x3932fa,_0x16c238[_0x2ce06b('0x32')][_0x2ce06b('0x11')]&&(_0x28dbd6[_0x2ce06b('0x1')]=[{'all':!![]}]),db[_0x2ce06b('0x19')][_0x2ce06b('0xb')](_0x28dbd6);})[_0x57d44f('0x21')](function(_0x3362a2){return _0xac96b['rows']=_0x3362a2,_0xac96b;})[_0x57d44f('0x21')](respondWithFilteredResult(_0x113c9f,_0x28dbd6))[_0x57d44f('0x12')](handleError(_0x113c9f,null));},exports[_0x4abd4f('0x1a')]=function(_0x4114e2,_0x1f2533){const _0x1c37e5=_0x4abd4f;let _0x5cf9da={'raw':![],'where':{'id':_0x4114e2[_0x1c37e5('0x20')]['id']}};const _0x1184ac={};return _0x1184ac[_0x1c37e5('0x47')]=_[_0x1c37e5('0x1e')](db[_0x1c37e5('0x19')][_0x1c37e5('0x35')]),_0x1184ac['query']=_[_0x1c37e5('0x1e')](_0x4114e2[_0x1c37e5('0x32')]),_0x1184ac[_0x1c37e5('0x1f')]=_[_0x1c37e5('0x24')](_0x1184ac[_0x1c37e5('0x47')],_0x1184ac[_0x1c37e5('0x32')]),_0x5cf9da[_0x1c37e5('0xf')]=_[_0x1c37e5('0x24')](_0x1184ac['model'],qs[_0x1c37e5('0x15')](_0x4114e2[_0x1c37e5('0x32')][_0x1c37e5('0x15')])),_0x5cf9da[_0x1c37e5('0xf')]=_0x5cf9da[_0x1c37e5('0xf')][_0x1c37e5('0xa')]?_0x5cf9da[_0x1c37e5('0xf')]:_0x1184ac[_0x1c37e5('0x47')],_0x4114e2[_0x1c37e5('0x32')][_0x1c37e5('0x11')]&&(_0x5cf9da[_0x1c37e5('0x1')]=[{'all':!![]}]),_0x5cf9da=_['merge']({},_0x5cf9da,_0x4114e2['options']),db[_0x1c37e5('0x19')][_0x1c37e5('0x17')](_0x5cf9da)[_0x1c37e5('0x21')](handleEntityNotFound(_0x1f2533,null))[_0x1c37e5('0x21')](respondWithResult(_0x1f2533,null))[_0x1c37e5('0x12')](handleError(_0x1f2533,null));},exports['create']=function(_0x2ebd17,_0x205db4){const _0x15d6d8=_0x4abd4f;return db[_0x15d6d8('0x19')][_0x15d6d8('0x30')](_0x2ebd17[_0x15d6d8('0x31')],{})[_0x15d6d8('0x21')](function(_0x2fd2e2){const _0x4bbf1b=_0x15d6d8,_0x32edab=_0x2ebd17['user'][_0x4bbf1b('0x28')]({'plain':!![]});if(!_0x32edab)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x32edab[_0x4bbf1b('0x2a')]==='user'){const _0x3fb22c=_0x2fd2e2[_0x4bbf1b('0x28')]({'plain':!![]}),_0x1472b3='SquareProjects';return db[_0x4bbf1b('0x3d')][_0x4bbf1b('0x17')]({'where':{'name':_0x1472b3,'userProfileId':_0x32edab[_0x4bbf1b('0x2b')]},'raw':!![]})[_0x4bbf1b('0x21')](function(_0x12a919){const _0x9f764b=_0x4bbf1b;return _0x12a919&&_0x12a919[_0x9f764b('0x1b')]===0x0?db[_0x9f764b('0x1d')][_0x9f764b('0x30')]({'name':_0x3fb22c[_0x9f764b('0x2')],'resourceId':_0x3fb22c['id'],'type':_0x12a919[_0x9f764b('0x2')],'sectionId':_0x12a919['id']},{})[_0x9f764b('0x21')](function(){return _0x2fd2e2;}):_0x2fd2e2;})[_0x4bbf1b('0x12')](function(_0x958055){const _0x4fb89e=_0x4bbf1b;logger[_0x4fb89e('0x46')]('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0x958055);throw _0x958055;});}return _0x2fd2e2;})[_0x15d6d8('0x21')](respondWithResult(_0x205db4,0xc9))['catch'](handleError(_0x205db4,null));},exports[_0x4abd4f('0x2d')]=function(_0x29cdbd,_0x23a433){const _0x1f2c47=_0x4abd4f;return _0x29cdbd['body']['id']&&delete _0x29cdbd[_0x1f2c47('0x31')]['id'],db[_0x1f2c47('0x19')][_0x1f2c47('0x17')]({'where':{'id':_0x29cdbd[_0x1f2c47('0x20')]['id']}})[_0x1f2c47('0x21')](handleEntityNotFound(_0x23a433,null))[_0x1f2c47('0x21')](saveUpdates(_0x29cdbd[_0x1f2c47('0x31')],null))[_0x1f2c47('0x21')](respondWithResult(_0x23a433,null))[_0x1f2c47('0x12')](handleError(_0x23a433,null));},exports[_0x4abd4f('0x3c')]=function(_0x1da72e,_0x28018e){const _0x47dca6=_0x4abd4f;return db['SquareProject'][_0x47dca6('0x17')]({'where':{'id':_0x1da72e['params']['id']}})[_0x47dca6('0x21')](handleEntityNotFound(_0x28018e,null))['then'](removeEntity(_0x28018e,null))[_0x47dca6('0x12')](handleError(_0x28018e,null));},exports[_0x4abd4f('0x29')]=function(_0x505d5c,_0x5c715e){const _0x136cd5=_0x4abd4f;return db[_0x136cd5('0x19')][_0x136cd5('0x17')]({'where':{'id':_0x505d5c[_0x136cd5('0x20')]['id']}})[_0x136cd5('0x21')](function(_0x2ed3a4){const _0x490bc4=_0x136cd5;if(_0x2ed3a4)return _0x2ed3a4[_0x490bc4('0x29')](_0x505d5c[_0x490bc4('0x31')][_0x490bc4('0x44')],{'through':_[_0x490bc4('0x13')](_0x505d5c[_0x490bc4('0x31')],[_0x490bc4('0x44'),'id'])});})[_0x136cd5('0x21')](respondWithResult(_0x5c715e,null))['catch'](handleError(_0x5c715e,null));},exports[_0x4abd4f('0x3b')]=function(_0x1c12ac,_0x27539f){const _0xd2675c=_0x4abd4f;return db[_0xd2675c('0x19')][_0xd2675c('0x17')]({'where':{'id':_0x1c12ac['params']['id']}})[_0xd2675c('0x21')](handleEntityNotFound(_0x27539f,null))[_0xd2675c('0x21')](function(_0x408c24){const _0x586912=_0xd2675c;if(_0x408c24)return _0x408c24['removeUsers'](_0x1c12ac[_0x586912('0x32')][_0x586912('0x44')])[_0x586912('0x21')](function(){const _0x1abb84=_0x586912;if(_[_0x1abb84('0x5')](_0x1c12ac[_0x1abb84('0x32')][_0x1abb84('0x44')]))for(let _0x23c827=0x0;_0x23c827<_0x1c12ac[_0x1abb84('0x32')][_0x1abb84('0x44')]['length'];_0x23c827+=0x1){socket[_0x1abb84('0x33')](_0x1abb84('0x25'),{'UserId':Number(_0x1c12ac[_0x1abb84('0x32')]['ids'][_0x23c827]),'SquareProjectId':Number(_0x1c12ac[_0x1abb84('0x20')]['id'])});}else socket[_0x1abb84('0x33')]('userSquareProject:remove',{'UserId':Number(_0x1c12ac[_0x1abb84('0x32')][_0x1abb84('0x44')]),'SquareProjectId':Number(_0x1c12ac[_0x1abb84('0x20')]['id'])});});})[_0xd2675c('0x21')](respondWithStatusCode(_0x27539f,null))[_0xd2675c('0x12')](handleError(_0x27539f,null));},exports[_0x4abd4f('0x43')]=function(_0x15084f,_0x5afa1a){const _0x307117=_0x4abd4f;let _0x495dfb={};const _0x325c32={};let _0x79e5b4,_0x3752d6;return db[_0x307117('0x19')][_0x307117('0x17')]({'where':{'id':_0x15084f[_0x307117('0x20')]['id']}})[_0x307117('0x21')](handleEntityNotFound(_0x5afa1a,null))[_0x307117('0x21')](function(_0x893f81){const _0x44e1ba=_0x307117;if(_0x893f81)return _0x79e5b4=_0x893f81,_0x325c32['model']=_['keys'](db[_0x44e1ba('0x45')][_0x44e1ba('0x35')]),_0x325c32['query']=_[_0x44e1ba('0x1e')](_0x15084f[_0x44e1ba('0x32')]),_0x325c32['filters']=_[_0x44e1ba('0x24')](_0x325c32[_0x44e1ba('0x47')],_0x325c32['query']),_0x495dfb[_0x44e1ba('0xf')]=_[_0x44e1ba('0x24')](_0x325c32[_0x44e1ba('0x47')],qs[_0x44e1ba('0x15')](_0x15084f[_0x44e1ba('0x32')][_0x44e1ba('0x15')])),_0x495dfb[_0x44e1ba('0xf')]=_0x495dfb[_0x44e1ba('0xf')]['length']?_0x495dfb[_0x44e1ba('0xf')]:_0x325c32['model'],_0x495dfb[_0x44e1ba('0x2e')]=qs[_0x44e1ba('0x34')](_0x15084f[_0x44e1ba('0x32')][_0x44e1ba('0x34')]),_0x495dfb[_0x44e1ba('0x41')]=qs[_0x44e1ba('0x1f')](_[_0x44e1ba('0xc')](_0x15084f[_0x44e1ba('0x32')],_0x325c32[_0x44e1ba('0x1f')])),_0x15084f[_0x44e1ba('0x32')][_0x44e1ba('0x6')]&&(_0x495dfb[_0x44e1ba('0x41')]=_[_0x44e1ba('0x18')](_0x495dfb[_0x44e1ba('0x41')],{[Op['or']]:_['map'](_0x495dfb[_0x44e1ba('0xf')],function(_0x49f970){const _0xc0a87e=_0x44e1ba,_0x2e7b17={};return _0x2e7b17[_0x49f970]={[Op[_0xc0a87e('0xe')]]:'%'+_0x15084f['query'][_0xc0a87e('0x6')]+'%'},_0x2e7b17;})})),_0x495dfb=_['merge']({},_0x495dfb,_0x15084f[_0x44e1ba('0x2f')]),_0x79e5b4[_0x44e1ba('0x43')](_0x495dfb);})[_0x307117('0x21')](function(_0x16a79e){const _0x1af899=_0x307117;if(_0x16a79e)return _0x3752d6=_0x16a79e['length'],typeof _0x15084f[_0x1af899('0x32')][_0x1af899('0x40')]===_0x1af899('0x39')&&(_0x495dfb['limit']=qs[_0x1af899('0x1c')](_0x15084f[_0x1af899('0x32')]['limit']),_0x495dfb[_0x1af899('0x48')]=qs[_0x1af899('0x48')](_0x15084f['query'][_0x1af899('0x48')])),_0x79e5b4[_0x1af899('0x43')](_0x495dfb);})[_0x307117('0x21')](function(_0x2c3a28){if(_0x2c3a28)return _0x2c3a28?{'count':_0x3752d6,'rows':_0x2c3a28}:null;})[_0x307117('0x21')](respondWithResult(_0x5afa1a,null))['catch'](handleError(_0x5afa1a,null));}; \ No newline at end of file +const a716_0x597f=['send','where','offset','error','Content-Range','length','status','catch','keys','fields','filters','create','stack','get','json','query','removeUsers','User','SquareProject','map','autoAssociation','sequelize','name','sendStatus','count','type','intersection','isArray','key','addUsers','set','params','options','userSquareProject:remove','nolimit','./squareProject.socket','register','rawAttributes','sort','merge','include','order','user','body','index','end','../../rediscache','model','destroy','userProfileId','VIRTUAL','../../components/parsers/qs','update','filter','lodash','UserProfileResource','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','limit','attributes','role','undefined','SquareProjects','getUsers','findOne','like','emit','ids','then','show','includeAll'];(function(_0x74644c,_0x5e5412){const _0x597f85=function(_0x3eda43){while(--_0x3eda43){_0x74644c['push'](_0x74644c['shift']());}};_0x597f85(++_0x5e5412);}(a716_0x597f,0x8d));const a716_0x3eda=function(_0x74644c,_0x5e5412){_0x74644c=_0x74644c-0x155;let _0x597f85=a716_0x597f[_0x74644c];return _0x597f85;};const a716_0x18e7ec=a716_0x3eda;'use strict';const _=require(a716_0x18e7ec(0x18a)),qs=require(a716_0x18e7ec(0x187)),logger=require('../../config/logger')('api'),{getSocket}=require(a716_0x18e7ec(0x182)),socket=getSocket(),{db}=require('../../mysqldb'),{Op}=require(a716_0x18e7ec(0x169));require(a716_0x18e7ec(0x177))[a716_0x18e7ec(0x178)](socket);function respondWithStatusCode(_0x55956c,_0x2fc954){return _0x2fc954=_0x2fc954||0xcc,function(_0x54e519){const _0x2c1cf3=a716_0x3eda;if(_0x54e519)return _0x55956c['sendStatus'](_0x2fc954);return _0x55956c[_0x2c1cf3(0x15a)](_0x2fc954)[_0x2c1cf3(0x181)]();};}function respondWithResult(_0x564808,_0x416d8f){return _0x416d8f=_0x416d8f||0xc8,function(_0x559278){const _0x7fdf84=a716_0x3eda;if(_0x559278)return _0x564808[_0x7fdf84(0x15a)](_0x416d8f)[_0x7fdf84(0x162)](_0x559278);};}function respondWithFilteredResult(_0x5c5f9f,_0x3cb69d){return function(_0x32e671){const _0xe181ae=a716_0x3eda;if(_0x32e671){const _0x3e790b=_0x32e671['count'],_0xb5455c=_0x3cb69d[_0xe181ae(0x156)];let _0x2cf688=_0x3cb69d[_0xe181ae(0x156)]+_0x3cb69d[_0xe181ae(0x18d)],_0x4fdcb5;return _0x2cf688>=_0x3e790b?(_0x2cf688=_0x3e790b,_0x4fdcb5=0xc8):_0x4fdcb5=0xce,_0x5c5f9f[_0xe181ae(0x15a)](_0x4fdcb5),_0x5c5f9f[_0xe181ae(0x172)](_0xe181ae(0x158),_0xb5455c+'-'+_0x2cf688+'/'+_0x3e790b)[_0xe181ae(0x162)](_0x32e671);}return null;};}function saveUpdates(_0x35fb00){return function(_0x341ed8){const _0x4974e6=a716_0x3eda;if(_0x341ed8)return _0x341ed8['update'](_0x35fb00)[_0x4974e6(0x197)](function(_0x1c49c1){return _0x1c49c1;});return null;};}function removeEntity(_0x5ab09a){return function(_0x18eafb){const _0x193732=a716_0x3eda;if(_0x18eafb)return _0x18eafb['destroy']()['then'](function(){const _0x292761=a716_0x3eda,_0x3e3eb3=_0x18eafb[_0x292761(0x161)]({'plain':!![]}),_0x5148a1=_0x292761(0x191);return db[_0x292761(0x18b)]['destroy']({'where':{'type':_0x5148a1,'resourceId':_0x3e3eb3['id']}})[_0x292761(0x197)](function(){return _0x18eafb;});})[_0x193732(0x197)](function(){const _0x40644a=_0x193732;_0x5ab09a[_0x40644a(0x15a)](0xcc)[_0x40644a(0x181)]();});};}function handleEntityNotFound(_0x1bfb98){return function(_0x4ee185){const _0x4d7f87=a716_0x3eda;return!_0x4ee185&&_0x1bfb98[_0x4d7f87(0x16b)](0x194),_0x4ee185;};}function handleError(_0x1d50bf,_0x42325a){return _0x42325a=_0x42325a||0x1f4,function(_0x4bd9ac){const _0x3243a0=a716_0x3eda;logger[_0x3243a0(0x157)](_0x4bd9ac[_0x3243a0(0x160)]),_0x4bd9ac[_0x3243a0(0x16a)]&&delete _0x4bd9ac[_0x3243a0(0x16a)],_0x1d50bf[_0x3243a0(0x15a)](_0x42325a)[_0x3243a0(0x19a)](_0x4bd9ac);};}exports[a716_0x18e7ec(0x180)]=function(_0x4f621a,_0x219ed5){const _0x1fac72=a716_0x18e7ec;let _0x20e82f={};const _0x259ae8={},_0x21fa4f={'count':0x0,'rows':[]},_0x3846a2=_[_0x1fac72(0x167)](db['SquareProject'][_0x1fac72(0x179)],function(_0x3b71d2){const _0x276136=_0x1fac72;return{'name':_0x3b71d2['fieldName'],'type':_0x3b71d2[_0x276136(0x16d)][_0x276136(0x170)]};});_0x259ae8[_0x1fac72(0x183)]=_['map'](_0x3846a2,'name'),_0x259ae8[_0x1fac72(0x163)]=_[_0x1fac72(0x15c)](_0x4f621a['query']),_0x259ae8['filters']=_['intersection'](_0x259ae8['model'],_0x259ae8[_0x1fac72(0x163)]),_0x20e82f[_0x1fac72(0x18e)]=_['intersection'](_0x259ae8[_0x1fac72(0x183)],qs[_0x1fac72(0x15d)](_0x4f621a[_0x1fac72(0x163)][_0x1fac72(0x15d)])),_0x20e82f[_0x1fac72(0x18e)]=_0x20e82f[_0x1fac72(0x18e)][_0x1fac72(0x159)]?_0x20e82f[_0x1fac72(0x18e)]:_0x259ae8[_0x1fac72(0x183)];typeof _0x4f621a[_0x1fac72(0x163)]['nolimit']===_0x1fac72(0x190)&&(_0x20e82f[_0x1fac72(0x18d)]=qs[_0x1fac72(0x18d)](_0x4f621a['query'][_0x1fac72(0x18d)]),_0x20e82f[_0x1fac72(0x156)]=qs[_0x1fac72(0x156)](_0x4f621a[_0x1fac72(0x163)][_0x1fac72(0x156)]));_0x20e82f[_0x1fac72(0x17d)]=qs['sort'](_0x4f621a['query'][_0x1fac72(0x17a)]),_0x20e82f[_0x1fac72(0x155)]=qs[_0x1fac72(0x15e)](_['pick'](_0x4f621a[_0x1fac72(0x163)],_0x259ae8[_0x1fac72(0x15e)]),_0x3846a2);_0x4f621a[_0x1fac72(0x163)][_0x1fac72(0x189)]&&(_0x20e82f['where']=_[_0x1fac72(0x17b)](_0x20e82f['where'],{[Op['or']]:_['map'](_0x3846a2,function(_0x245eab){const _0x3f5f17=_0x1fac72;if(_0x245eab['type']!==_0x3f5f17(0x186)){const _0x3d2e0e={};return _0x3d2e0e[_0x245eab['name']]={[Op['like']]:'%'+_0x4f621a[_0x3f5f17(0x163)][_0x3f5f17(0x189)]+'%'},_0x3d2e0e;}})}));_0x20e82f=_['merge']({},_0x20e82f,_0x4f621a['options']);const _0x7b54da={'where':_0x20e82f[_0x1fac72(0x155)]};return db[_0x1fac72(0x166)][_0x1fac72(0x16c)](_0x7b54da)[_0x1fac72(0x197)](function(_0x569ffe){const _0x45d28c=_0x1fac72;return _0x21fa4f[_0x45d28c(0x16c)]=_0x569ffe,_0x4f621a['query']['includeAll']&&(_0x20e82f[_0x45d28c(0x17c)]=[{'all':!![]}]),db[_0x45d28c(0x166)]['findAll'](_0x20e82f);})[_0x1fac72(0x197)](function(_0x1b0f40){return _0x21fa4f['rows']=_0x1b0f40,_0x21fa4f;})[_0x1fac72(0x197)](respondWithFilteredResult(_0x219ed5,_0x20e82f))[_0x1fac72(0x15b)](handleError(_0x219ed5,null));},exports[a716_0x18e7ec(0x198)]=function(_0x4fc457,_0x475792){const _0xb0655e=a716_0x18e7ec;let _0x285f10={'raw':![],'where':{'id':_0x4fc457['params']['id']}};const _0x7315c7={};return _0x7315c7[_0xb0655e(0x183)]=_['keys'](db[_0xb0655e(0x166)][_0xb0655e(0x179)]),_0x7315c7[_0xb0655e(0x163)]=_[_0xb0655e(0x15c)](_0x4fc457[_0xb0655e(0x163)]),_0x7315c7[_0xb0655e(0x15e)]=_['intersection'](_0x7315c7[_0xb0655e(0x183)],_0x7315c7[_0xb0655e(0x163)]),_0x285f10[_0xb0655e(0x18e)]=_[_0xb0655e(0x16e)](_0x7315c7[_0xb0655e(0x183)],qs[_0xb0655e(0x15d)](_0x4fc457[_0xb0655e(0x163)]['fields'])),_0x285f10['attributes']=_0x285f10[_0xb0655e(0x18e)][_0xb0655e(0x159)]?_0x285f10[_0xb0655e(0x18e)]:_0x7315c7[_0xb0655e(0x183)],_0x4fc457[_0xb0655e(0x163)][_0xb0655e(0x199)]&&(_0x285f10['include']=[{'all':!![]}]),_0x285f10=_[_0xb0655e(0x17b)]({},_0x285f10,_0x4fc457[_0xb0655e(0x174)]),db[_0xb0655e(0x166)][_0xb0655e(0x193)](_0x285f10)[_0xb0655e(0x197)](handleEntityNotFound(_0x475792,null))[_0xb0655e(0x197)](respondWithResult(_0x475792,null))[_0xb0655e(0x15b)](handleError(_0x475792,null));},exports[a716_0x18e7ec(0x15f)]=function(_0x5db4d2,_0x3fe70b){const _0x449092=a716_0x18e7ec;return db[_0x449092(0x166)][_0x449092(0x15f)](_0x5db4d2[_0x449092(0x17f)],{})[_0x449092(0x197)](function(_0x3326c0){const _0x3b797f=_0x449092,_0x2d6d5e=_0x5db4d2[_0x3b797f(0x17e)]['get']({'plain':!![]});if(!_0x2d6d5e)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x2d6d5e[_0x3b797f(0x18f)]===_0x3b797f(0x17e)){const _0xc9608d=_0x3326c0[_0x3b797f(0x161)]({'plain':!![]}),_0x35f290='SquareProjects';return db['UserProfileSection'][_0x3b797f(0x193)]({'where':{'name':_0x35f290,'userProfileId':_0x2d6d5e[_0x3b797f(0x185)]},'raw':!![]})['then'](function(_0x50244e){const _0x4079a7=_0x3b797f;return _0x50244e&&_0x50244e[_0x4079a7(0x168)]===0x0?db['UserProfileResource'][_0x4079a7(0x15f)]({'name':_0xc9608d['name'],'resourceId':_0xc9608d['id'],'type':_0x50244e[_0x4079a7(0x16a)],'sectionId':_0x50244e['id']},{})['then'](function(){return _0x3326c0;}):_0x3326c0;})[_0x3b797f(0x15b)](function(_0x507553){const _0x5efe8f=_0x3b797f;logger[_0x5efe8f(0x157)](_0x5efe8f(0x18c),_0x507553);throw _0x507553;});}return _0x3326c0;})['then'](respondWithResult(_0x3fe70b,0xc9))[_0x449092(0x15b)](handleError(_0x3fe70b,null));},exports[a716_0x18e7ec(0x188)]=function(_0x430a03,_0x5baa23){const _0xad5339=a716_0x18e7ec;return _0x430a03[_0xad5339(0x17f)]['id']&&delete _0x430a03[_0xad5339(0x17f)]['id'],db[_0xad5339(0x166)]['findOne']({'where':{'id':_0x430a03[_0xad5339(0x173)]['id']}})['then'](handleEntityNotFound(_0x5baa23,null))[_0xad5339(0x197)](saveUpdates(_0x430a03[_0xad5339(0x17f)],null))[_0xad5339(0x197)](respondWithResult(_0x5baa23,null))[_0xad5339(0x15b)](handleError(_0x5baa23,null));},exports[a716_0x18e7ec(0x184)]=function(_0x57332c,_0x21c396){const _0xba309c=a716_0x18e7ec;return db[_0xba309c(0x166)]['findOne']({'where':{'id':_0x57332c[_0xba309c(0x173)]['id']}})[_0xba309c(0x197)](handleEntityNotFound(_0x21c396,null))['then'](removeEntity(_0x21c396,null))[_0xba309c(0x15b)](handleError(_0x21c396,null));},exports[a716_0x18e7ec(0x171)]=function(_0x591fe4,_0x105afc){const _0x480282=a716_0x18e7ec;return db[_0x480282(0x166)][_0x480282(0x193)]({'where':{'id':_0x591fe4['params']['id']}})[_0x480282(0x197)](function(_0x4a56b0){const _0x449c5c=_0x480282;if(_0x4a56b0)return _0x4a56b0[_0x449c5c(0x171)](_0x591fe4[_0x449c5c(0x17f)]['ids'],{'through':_['omit'](_0x591fe4[_0x449c5c(0x17f)],[_0x449c5c(0x196),'id'])});})[_0x480282(0x197)](respondWithResult(_0x105afc,null))[_0x480282(0x15b)](handleError(_0x105afc,null));},exports['removeUsers']=function(_0x261cd4,_0x29a0fa){const _0x563098=a716_0x18e7ec;return db[_0x563098(0x166)]['findOne']({'where':{'id':_0x261cd4['params']['id']}})[_0x563098(0x197)](handleEntityNotFound(_0x29a0fa,null))[_0x563098(0x197)](function(_0x3fbbd4){const _0x2ea583=_0x563098;if(_0x3fbbd4)return _0x3fbbd4[_0x2ea583(0x164)](_0x261cd4['query'][_0x2ea583(0x196)])[_0x2ea583(0x197)](function(){const _0x4c243f=_0x2ea583;if(_[_0x4c243f(0x16f)](_0x261cd4[_0x4c243f(0x163)][_0x4c243f(0x196)]))for(let _0x441bff=0x0;_0x441bff<_0x261cd4[_0x4c243f(0x163)]['ids']['length'];_0x441bff+=0x1){socket[_0x4c243f(0x195)](_0x4c243f(0x175),{'UserId':Number(_0x261cd4['query'][_0x4c243f(0x196)][_0x441bff]),'SquareProjectId':Number(_0x261cd4[_0x4c243f(0x173)]['id'])});}else socket[_0x4c243f(0x195)]('userSquareProject:remove',{'UserId':Number(_0x261cd4[_0x4c243f(0x163)][_0x4c243f(0x196)]),'SquareProjectId':Number(_0x261cd4['params']['id'])});});})[_0x563098(0x197)](respondWithStatusCode(_0x29a0fa,null))[_0x563098(0x15b)](handleError(_0x29a0fa,null));},exports[a716_0x18e7ec(0x192)]=function(_0x3d1cd3,_0x13258f){const _0x368a5b=a716_0x18e7ec;let _0x185fc8={};const _0x9f8c6e={};let _0x275b97,_0x23563a;return db['SquareProject']['findOne']({'where':{'id':_0x3d1cd3[_0x368a5b(0x173)]['id']}})[_0x368a5b(0x197)](handleEntityNotFound(_0x13258f,null))[_0x368a5b(0x197)](function(_0x9b95cb){const _0x3a9585=_0x368a5b;if(_0x9b95cb)return _0x275b97=_0x9b95cb,_0x9f8c6e[_0x3a9585(0x183)]=_[_0x3a9585(0x15c)](db[_0x3a9585(0x165)][_0x3a9585(0x179)]),_0x9f8c6e['query']=_['keys'](_0x3d1cd3['query']),_0x9f8c6e['filters']=_[_0x3a9585(0x16e)](_0x9f8c6e['model'],_0x9f8c6e[_0x3a9585(0x163)]),_0x185fc8[_0x3a9585(0x18e)]=_[_0x3a9585(0x16e)](_0x9f8c6e[_0x3a9585(0x183)],qs[_0x3a9585(0x15d)](_0x3d1cd3[_0x3a9585(0x163)][_0x3a9585(0x15d)])),_0x185fc8[_0x3a9585(0x18e)]=_0x185fc8['attributes'][_0x3a9585(0x159)]?_0x185fc8['attributes']:_0x9f8c6e[_0x3a9585(0x183)],_0x185fc8[_0x3a9585(0x17d)]=qs[_0x3a9585(0x17a)](_0x3d1cd3['query'][_0x3a9585(0x17a)]),_0x185fc8['where']=qs['filters'](_['pick'](_0x3d1cd3[_0x3a9585(0x163)],_0x9f8c6e[_0x3a9585(0x15e)])),_0x3d1cd3[_0x3a9585(0x163)][_0x3a9585(0x189)]&&(_0x185fc8['where']=_['merge'](_0x185fc8[_0x3a9585(0x155)],{[Op['or']]:_[_0x3a9585(0x167)](_0x185fc8['attributes'],function(_0x2f141f){const _0x18c583=_0x3a9585,_0x13e4ca={};return _0x13e4ca[_0x2f141f]={[Op[_0x18c583(0x194)]]:'%'+_0x3d1cd3['query'][_0x18c583(0x189)]+'%'},_0x13e4ca;})})),_0x185fc8=_['merge']({},_0x185fc8,_0x3d1cd3[_0x3a9585(0x174)]),_0x275b97[_0x3a9585(0x192)](_0x185fc8);})[_0x368a5b(0x197)](function(_0x473edc){const _0x26d99a=_0x368a5b;if(_0x473edc)return _0x23563a=_0x473edc[_0x26d99a(0x159)],typeof _0x3d1cd3[_0x26d99a(0x163)][_0x26d99a(0x176)]===_0x26d99a(0x190)&&(_0x185fc8[_0x26d99a(0x18d)]=qs[_0x26d99a(0x18d)](_0x3d1cd3[_0x26d99a(0x163)][_0x26d99a(0x18d)]),_0x185fc8[_0x26d99a(0x156)]=qs['offset'](_0x3d1cd3[_0x26d99a(0x163)][_0x26d99a(0x156)])),_0x275b97[_0x26d99a(0x192)](_0x185fc8);})['then'](function(_0x152be4){if(_0x152be4)return _0x152be4?{'count':_0x23563a,'rows':_0x152be4}:null;})[_0x368a5b(0x197)](respondWithResult(_0x13258f,null))[_0x368a5b(0x15b)](handleError(_0x13258f,null));}; \ No newline at end of file diff --git a/server/api/squareProject/squareProject.events.js b/server/api/squareProject/squareProject.events.js index 29d6d99..39583ba 100644 --- a/server/api/squareProject/squareProject.events.js +++ b/server/api/squareProject/squareProject.events.js @@ -1 +1 @@ -const a599_0x4ace=['addHook','../../mysqldb','events','save','emit','SquareProject'];(function(_0x5cd509,_0x4acee9){const _0x26aeeb=function(_0x82ce49){while(--_0x82ce49){_0x5cd509['push'](_0x5cd509['shift']());}};_0x26aeeb(++_0x4acee9);}(a599_0x4ace,0x9a));const a599_0x26ae=function(_0x5cd509,_0x4acee9){_0x5cd509=_0x5cd509-0x0;let _0x26aeeb=a599_0x4ace[_0x5cd509];return _0x26aeeb;};const _0x5c3c26=a599_0x26ae;'use strict';const EventEmitter=require(_0x5c3c26('0x4')),SquareProject=require(_0x5c3c26('0x3'))['db'][_0x5c3c26('0x1')],SquareProjectEvents=new EventEmitter();SquareProjectEvents['setMaxListeners'](0x0);const events={'afterCreate':_0x5c3c26('0x5'),'afterUpdate':'update','afterDestroy':'remove'};function emitEvent(_0x82ce49){return function(_0x490918){const _0x59fe9a=a599_0x26ae;SquareProjectEvents['emit'](_0x82ce49+':'+_0x490918['id'],_0x490918),SquareProjectEvents[_0x59fe9a('0x0')](_0x82ce49,_0x490918);};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];SquareProject[_0x5c3c26('0x2')](e,emitEvent(event));}}module['exports']=SquareProjectEvents; \ No newline at end of file +const a717_0x4608=['emit','addHook','../../mysqldb','exports','remove','update','events'];(function(_0x275dba,_0xf88974){const _0x4608fd=function(_0x3fc74d){while(--_0x3fc74d){_0x275dba['push'](_0x275dba['shift']());}};_0x4608fd(++_0xf88974);}(a717_0x4608,0x175));const a717_0x3fc7=function(_0x275dba,_0xf88974){_0x275dba=_0x275dba-0x94;let _0x4608fd=a717_0x4608[_0x275dba];return _0x4608fd;};const a717_0x187f97=a717_0x3fc7;'use strict';const EventEmitter=require(a717_0x187f97(0x98)),SquareProject=require(a717_0x187f97(0x94))['db']['SquareProject'],SquareProjectEvents=new EventEmitter();SquareProjectEvents['setMaxListeners'](0x0);const events={'afterCreate':'save','afterUpdate':a717_0x187f97(0x97),'afterDestroy':a717_0x187f97(0x96)};function emitEvent(_0x5843a3){return function(_0x10f478){const _0x1e4d04=a717_0x3fc7;SquareProjectEvents[_0x1e4d04(0x99)](_0x5843a3+':'+_0x10f478['id'],_0x10f478),SquareProjectEvents[_0x1e4d04(0x99)](_0x5843a3,_0x10f478);};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];SquareProject[a717_0x187f97(0x9a)](e,emitEvent(event));}}module[a717_0x187f97(0x95)]=SquareProjectEvents; \ No newline at end of file diff --git a/server/api/squareProject/squareProject.model.js b/server/api/squareProject/squareProject.model.js index 9d1be4a..1635bd6 100644 --- a/server/api/squareProject/squareProject.model.js +++ b/server/api/squareProject/squareProject.model.js @@ -1 +1 @@ -const a600_0x464b=['define','./squareProject.attributes','exports','SquareProject'];(function(_0x331cbf,_0x464b01){const _0x357a6e=function(_0x5c8206){while(--_0x5c8206){_0x331cbf['push'](_0x331cbf['shift']());}};_0x357a6e(++_0x464b01);}(a600_0x464b,0xd7));const a600_0x357a=function(_0x331cbf,_0x464b01){_0x331cbf=_0x331cbf-0x0;let _0x357a6e=a600_0x464b[_0x331cbf];return _0x357a6e;};const _0x166be9=a600_0x357a;'use strict';const attributes=require(_0x166be9('0x2'));module[_0x166be9('0x3')]=function(_0x5c8206){const _0x93e79d=_0x166be9,_0x33f393=_0x5c8206[_0x93e79d('0x1')](_0x93e79d('0x0'),attributes,{'tableName':'square_projects','paranoid':![],'indexes':[],'timestamps':!![]});return _0x33f393;}; \ No newline at end of file +const a718_0x2f75=['exports','./squareProject.attributes','init','sequelize','SquareProject','./squareProject.options','function'];(function(_0x491d5d,_0x4eb4f7){const _0x2f753e=function(_0x464089){while(--_0x464089){_0x491d5d['push'](_0x491d5d['shift']());}};_0x2f753e(++_0x4eb4f7);}(a718_0x2f75,0x10b));const a718_0x4640=function(_0x491d5d,_0x4eb4f7){_0x491d5d=_0x491d5d-0x179;let _0x2f753e=a718_0x2f75[_0x491d5d];return _0x2f753e;};const a718_0x423680=a718_0x4640;'use strict';const {Model}=require(a718_0x423680(0x17b)),{attributes}=require(a718_0x423680(0x179)),{options}=require(a718_0x423680(0x17d));class SquareProject extends Model{}function init(_0x4ff834,_0x39b2b4){const _0x29e5fe=a718_0x423680,_0x54dd7f=options(_0x4ff834),_0x5d9cf7=typeof _0x39b2b4===_0x29e5fe(0x17e)?_0x39b2b4(_0x54dd7f):_0x54dd7f;return SquareProject['init'](attributes,_0x5d9cf7),SquareProject;}module[a718_0x423680(0x17f)][a718_0x423680(0x17c)]=SquareProject,module[a718_0x423680(0x17f)][a718_0x423680(0x17a)]=init; \ No newline at end of file diff --git a/server/api/squareProject/squareProject.options.js b/server/api/squareProject/squareProject.options.js new file mode 100644 index 0000000..68f940f --- /dev/null +++ b/server/api/squareProject/squareProject.options.js @@ -0,0 +1 @@ +var a719_0x25ca=['exports','square_projects'];(function(_0x1c4649,_0x492f32){var _0x25ca93=function(_0x33d137){while(--_0x33d137){_0x1c4649['push'](_0x1c4649['shift']());}};_0x25ca93(++_0x492f32);}(a719_0x25ca,0x1e4));var a719_0x33d1=function(_0x1c4649,_0x492f32){_0x1c4649=_0x1c4649-0x106;var _0x25ca93=a719_0x25ca[_0x1c4649];return _0x25ca93;};var a719_0x272bcd=a719_0x33d1;function options(_0x135f71){var _0x3b7624=a719_0x33d1;return{'sequelize':_0x135f71,'tableName':_0x3b7624(0x107),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a719_0x272bcd(0x106)]['options']=options; \ No newline at end of file diff --git a/server/api/squareProject/squareProject.rpc.js b/server/api/squareProject/squareProject.rpc.js index e3ab113..e5f1e48 100644 --- a/server/api/squareProject/squareProject.rpc.js +++ b/server/api/squareProject/squareProject.rpc.js @@ -1 +1 @@ -const a601_0x56c1=['rpc','stringify','attributes','model','include','./squareProject.socket','../../rediscache','findOne','where','../../config/logger','ShowSquareProject','raw','map','then','catch','debug','error','options','message','info','lodash'];(function(_0x554000,_0x56c146){const _0xdd5135=function(_0x486388){while(--_0x486388){_0x554000['push'](_0x554000['shift']());}};_0xdd5135(++_0x56c146);}(a601_0x56c1,0x1ae));const a601_0xdd51=function(_0x554000,_0x56c146){_0x554000=_0x554000-0x0;let _0xdd5135=a601_0x56c1[_0x554000];return _0xdd5135;};const _0x5c97f6=a601_0xdd51;'use strict';const db=require('../../mysqldb')['db'],logger=require(_0x5c97f6('0x14'))(_0x5c97f6('0xb')),_=require(_0x5c97f6('0xa')),{getSocket}=require(_0x5c97f6('0x11')),socket=getSocket();require(_0x5c97f6('0x10'))['register'](socket),exports[_0x5c97f6('0x0')]=function(_0x486388){const _0x1095b7=this;return new Promise(function(_0x51a927,_0x32a96b){const _0x22b968=a601_0xdd51;return db['SquareProject'][_0x22b968('0x12')]({'raw':_0x486388[_0x22b968('0x7')]?_0x486388[_0x22b968('0x7')][_0x22b968('0x1')]===undefined?!![]:![]:!![],'where':_0x486388[_0x22b968('0x7')]?_0x486388['options'][_0x22b968('0x13')]||null:null,'attributes':_0x486388[_0x22b968('0x7')]?_0x486388[_0x22b968('0x7')]['attributes']||null:null,'include':_0x486388[_0x22b968('0x7')]?_0x486388[_0x22b968('0x7')]['include']?_['map'](_0x486388[_0x22b968('0x7')][_0x22b968('0xf')],function(_0x5565b6){const _0x5108e4=_0x22b968;return{'model':db[_0x5565b6[_0x5108e4('0xe')]],'as':_0x5565b6['as'],'attributes':_0x5565b6[_0x5108e4('0xd')],'include':_0x5565b6[_0x5108e4('0xf')]?_[_0x5108e4('0x2')](_0x5565b6[_0x5108e4('0xf')],function(_0x22d764){const _0x43dddd=_0x5108e4;return{'model':db[_0x22d764['model']],'as':_0x22d764['as'],'attributes':_0x22d764[_0x43dddd('0xd')],'include':_0x22d764[_0x43dddd('0xf')]?_[_0x43dddd('0x2')](_0x22d764[_0x43dddd('0xf')],function(_0x5be5f5){const _0x3f7e6e=_0x43dddd;return{'model':db[_0x5be5f5[_0x3f7e6e('0xe')]],'as':_0x5be5f5['as'],'attributes':_0x5be5f5[_0x3f7e6e('0xd')]};}):[]};}):[]};}):[]:[]})[_0x22b968('0x3')](function(_0x1f94a1){const _0x505543=_0x22b968;logger[_0x505543('0x9')](_0x505543('0x0'),_0x486388),logger[_0x505543('0x5')](_0x505543('0x0'),_0x486388,JSON[_0x505543('0xc')](_0x1f94a1)),_0x51a927(_0x1f94a1);})[_0x22b968('0x4')](function(_0x24b0d3){const _0x404953=_0x22b968;logger['error'](_0x404953('0x0'),_0x24b0d3[_0x404953('0x8')],_0x486388),_0x32a96b(_0x1095b7[_0x404953('0x6')](0x1f4,_0x24b0d3[_0x404953('0x8')]));});});}; \ No newline at end of file +const a720_0xe433=['raw','catch','SquareProject','../../config/logger','map','where','findOne','model','register','options','stringify','./squareProject.socket','ShowSquareProject','error','../../rediscache','debug','rpc','message','include','lodash','attributes','then'];(function(_0x314455,_0x534938){const _0xe43380=function(_0x2f88f4){while(--_0x2f88f4){_0x314455['push'](_0x314455['shift']());}};_0xe43380(++_0x534938);}(a720_0xe433,0x185));const a720_0x2f88=function(_0x314455,_0x534938){_0x314455=_0x314455-0x7f;let _0xe43380=a720_0xe433[_0x314455];return _0xe43380;};const a720_0x5ae7e9=a720_0x2f88;'use strict';const db=require('../../mysqldb')['db'],logger=require(a720_0x5ae7e9(0x89))(a720_0x5ae7e9(0x80)),_=require(a720_0x5ae7e9(0x83)),{getSocket}=require(a720_0x5ae7e9(0x94)),socket=getSocket();require(a720_0x5ae7e9(0x91))[a720_0x5ae7e9(0x8e)](socket),exports[a720_0x5ae7e9(0x92)]=function(_0xfc4f3a){const _0x147769=this;return new Promise(function(_0x378731,_0x59d569){const _0x4027a0=a720_0x2f88;return db[_0x4027a0(0x88)][_0x4027a0(0x8c)]({'raw':_0xfc4f3a[_0x4027a0(0x8f)]?_0xfc4f3a['options'][_0x4027a0(0x86)]===undefined?!![]:![]:!![],'where':_0xfc4f3a[_0x4027a0(0x8f)]?_0xfc4f3a[_0x4027a0(0x8f)][_0x4027a0(0x8b)]||null:null,'attributes':_0xfc4f3a[_0x4027a0(0x8f)]?_0xfc4f3a['options']['attributes']||null:null,'include':_0xfc4f3a[_0x4027a0(0x8f)]?_0xfc4f3a['options'][_0x4027a0(0x82)]?_[_0x4027a0(0x8a)](_0xfc4f3a[_0x4027a0(0x8f)][_0x4027a0(0x82)],function(_0xc915bf){const _0x4d86a3=_0x4027a0;return{'model':db[_0xc915bf[_0x4d86a3(0x8d)]],'as':_0xc915bf['as'],'attributes':_0xc915bf['attributes'],'include':_0xc915bf[_0x4d86a3(0x82)]?_[_0x4d86a3(0x8a)](_0xc915bf[_0x4d86a3(0x82)],function(_0x1e1e44){const _0x250d97=_0x4d86a3;return{'model':db[_0x1e1e44[_0x250d97(0x8d)]],'as':_0x1e1e44['as'],'attributes':_0x1e1e44[_0x250d97(0x84)],'include':_0x1e1e44[_0x250d97(0x82)]?_[_0x250d97(0x8a)](_0x1e1e44[_0x250d97(0x82)],function(_0x12fe9b){const _0x445021=_0x250d97;return{'model':db[_0x12fe9b[_0x445021(0x8d)]],'as':_0x12fe9b['as'],'attributes':_0x12fe9b['attributes']};}):[]};}):[]};}):[]:[]})[_0x4027a0(0x85)](function(_0x5ef9d8){const _0x13d95c=_0x4027a0;logger['info'](_0x13d95c(0x92),_0xfc4f3a),logger[_0x13d95c(0x7f)](_0x13d95c(0x92),_0xfc4f3a,JSON[_0x13d95c(0x90)](_0x5ef9d8)),_0x378731(_0x5ef9d8);})[_0x4027a0(0x87)](function(_0x33aebb){const _0x605d50=_0x4027a0;logger['error'](_0x605d50(0x92),_0x33aebb[_0x605d50(0x81)],_0xfc4f3a),_0x59d569(_0x147769[_0x605d50(0x93)](0x1f4,_0x33aebb['message']));});});}; \ No newline at end of file diff --git a/server/api/squareProject/squareProject.socket.js b/server/api/squareProject/squareProject.socket.js index 3b55377..6871097 100644 --- a/server/api/squareProject/squareProject.socket.js +++ b/server/api/squareProject/squareProject.socket.js @@ -1 +1 @@ -const a602_0x2525=['emit','register','remove','save'];(function(_0x206aa5,_0x2525f8){const _0x52b921=function(_0x50ab3a){while(--_0x50ab3a){_0x206aa5['push'](_0x206aa5['shift']());}};_0x52b921(++_0x2525f8);}(a602_0x2525,0x16f));const a602_0x52b9=function(_0x206aa5,_0x2525f8){_0x206aa5=_0x206aa5-0x0;let _0x52b921=a602_0x2525[_0x206aa5];return _0x52b921;};const _0x51bb23=a602_0x52b9;'use strict';const SquareProjectEvents=require('./squareProject.events'),events=[_0x51bb23('0x0'),_0x51bb23('0x3'),'update'];function createListener(_0x50ab3a,_0x429827){return function(_0x578919){const _0x590f25=a602_0x52b9;_0x429827[_0x590f25('0x1')](_0x50ab3a,_0x578919);};}exports[_0x51bb23('0x2')]=function(_0x298527){for(let _0x45e8fc=0x0,_0xe63738=events['length'];_0x45e8fc<_0xe63738;_0x45e8fc++){const _0x6ea36e=events[_0x45e8fc],_0x3b7b6d=createListener('squareProject:'+_0x6ea36e,_0x298527);SquareProjectEvents['on'](_0x6ea36e,_0x3b7b6d);}}; \ No newline at end of file +const a721_0x4964=['emit','update','remove','./squareProject.events','length','save','squareProject:','register'];(function(_0x271224,_0x349671){const _0x4964db=function(_0x503e82){while(--_0x503e82){_0x271224['push'](_0x271224['shift']());}};_0x4964db(++_0x349671);}(a721_0x4964,0x6d));const a721_0x503e=function(_0x271224,_0x349671){_0x271224=_0x271224-0x179;let _0x4964db=a721_0x4964[_0x271224];return _0x4964db;};const a721_0x510ca5=a721_0x503e;'use strict';const SquareProjectEvents=require(a721_0x510ca5(0x17f)),events=[a721_0x510ca5(0x179),a721_0x510ca5(0x17e),a721_0x510ca5(0x17d)];function createListener(_0x1bc50b,_0x21fec2){return function(_0x1ee857){const _0xce3240=a721_0x503e;_0x21fec2[_0xce3240(0x17c)](_0x1bc50b,_0x1ee857);};}exports[a721_0x510ca5(0x17b)]=function(_0x28efdf){const _0x1f5f2b=a721_0x510ca5;for(let _0x9725a7=0x0,_0x4b63f9=events[_0x1f5f2b(0x180)];_0x9725a7<_0x4b63f9;_0x9725a7++){const _0x2c67a8=events[_0x9725a7],_0x5aaa01=createListener(_0x1f5f2b(0x17a)+_0x2c67a8,_0x28efdf);SquareProjectEvents['on'](_0x2c67a8,_0x5aaa01);}}; \ No newline at end of file diff --git a/server/api/squareRecording/index.js b/server/api/squareRecording/index.js index 5d2c69d..8915166 100644 --- a/server/api/squareRecording/index.js +++ b/server/api/squareRecording/index.js @@ -1 +1 @@ -const a603_0x56f3=['post','./squareRecording.controller','destroy','create','put','delete','index','../../components/auth/service','exports','get','express','show','Router','isAuthenticated','/:id'];(function(_0x28919b,_0x56f3b5){const _0x367b1a=function(_0x3c41b1){while(--_0x3c41b1){_0x28919b['push'](_0x28919b['shift']());}};_0x367b1a(++_0x56f3b5);}(a603_0x56f3,0x17c));const a603_0x367b=function(_0x28919b,_0x56f3b5){_0x28919b=_0x28919b-0x0;let _0x367b1a=a603_0x56f3[_0x28919b];return _0x367b1a;};const _0x456624=a603_0x367b;'use strict';const express=require(_0x456624('0x5')),router=express[_0x456624('0x7')](),auth=require(_0x456624('0x2')),controller=require(_0x456624('0xb'));router[_0x456624('0x4')]('/',auth[_0x456624('0x8')](),controller[_0x456624('0x1')]),router[_0x456624('0x4')]('/:id',auth[_0x456624('0x8')](),controller[_0x456624('0x6')]),router[_0x456624('0x4')]('/:id/download',auth[_0x456624('0x8')](),controller['download']),router[_0x456624('0xa')]('/',auth[_0x456624('0x8')](),controller[_0x456624('0xd')]),router[_0x456624('0xe')](_0x456624('0x9'),auth['isAuthenticated'](),controller['update']),router[_0x456624('0x0')]('/:id/delete',auth[_0x456624('0x8')](),controller[_0x456624('0xc')]),module[_0x456624('0x3')]=router; \ No newline at end of file +const a722_0x5bc7=['index','exports','get','/:id','post','show','./squareRecording.controller','isAuthenticated','update','express','create','/:id/delete','../../components/auth/service','/:id/download','delete','destroy'];(function(_0x20b711,_0x4518a1){const _0x5bc750=function(_0x117d01){while(--_0x117d01){_0x20b711['push'](_0x20b711['shift']());}};_0x5bc750(++_0x4518a1);}(a722_0x5bc7,0x12a));const a722_0x117d=function(_0x20b711,_0x4518a1){_0x20b711=_0x20b711-0x164;let _0x5bc750=a722_0x5bc7[_0x20b711];return _0x5bc750;};const a722_0x6931ee=a722_0x117d;'use strict';const express=require(a722_0x6931ee(0x173)),router=express['Router'](),auth=require(a722_0x6931ee(0x166)),controller=require(a722_0x6931ee(0x170));router[a722_0x6931ee(0x16c)]('/',auth[a722_0x6931ee(0x171)](),controller[a722_0x6931ee(0x16a)]),router['get']('/:id',auth['isAuthenticated'](),controller[a722_0x6931ee(0x16f)]),router['get'](a722_0x6931ee(0x167),auth[a722_0x6931ee(0x171)](),controller['download']),router[a722_0x6931ee(0x16e)]('/',auth[a722_0x6931ee(0x171)](),controller[a722_0x6931ee(0x164)]),router['put'](a722_0x6931ee(0x16d),auth[a722_0x6931ee(0x171)](),controller[a722_0x6931ee(0x172)]),router[a722_0x6931ee(0x168)](a722_0x6931ee(0x165),auth[a722_0x6931ee(0x171)](),controller[a722_0x6931ee(0x169)]),module[a722_0x6931ee(0x16b)]=router; \ No newline at end of file diff --git a/server/api/squareRecording/squareRecording.attributes.js b/server/api/squareRecording/squareRecording.attributes.js index 8ac9002..56f2b22 100644 --- a/server/api/squareRecording/squareRecording.attributes.js +++ b/server/api/squareRecording/squareRecording.attributes.js @@ -1 +1 @@ -const a604_0x1e1b=['sequelize','exports','savePath','getDataValue','lastIndexOf','STRING','substring','VIRTUAL'];(function(_0x123cfd,_0x1e1b17){const _0x4a808b=function(_0x2b97be){while(--_0x2b97be){_0x123cfd['push'](_0x123cfd['shift']());}};_0x4a808b(++_0x1e1b17);}(a604_0x1e1b,0x101));const a604_0x4a80=function(_0x123cfd,_0x1e1b17){_0x123cfd=_0x123cfd-0x0;let _0x4a808b=a604_0x1e1b[_0x123cfd];return _0x4a808b;};const _0x2a3224=a604_0x4a80;'use strict';const Sequelize=require(_0x2a3224('0x7'));module[_0x2a3224('0x0')]={'uniqueid':{'type':Sequelize[_0x2a3224('0x4')]},'callerid':{'type':Sequelize[_0x2a3224('0x4')]},'calleridname':{'type':Sequelize[_0x2a3224('0x4')]},'context':{'type':Sequelize[_0x2a3224('0x4')]},'extension':{'type':Sequelize[_0x2a3224('0x4')]},'priority':{'type':Sequelize[_0x2a3224('0x4')]},'accountcode':{'type':Sequelize[_0x2a3224('0x4')]},'dnid':{'type':Sequelize[_0x2a3224('0x4')]},'projectName':{'type':Sequelize[_0x2a3224('0x4')]},'saveName':{'type':Sequelize[_0x2a3224('0x4')]},'filename':{'type':Sequelize[_0x2a3224('0x4')]},'savePath':{'type':Sequelize['STRING']},'format':{'type':Sequelize[_0x2a3224('0x6')],'get':function(){const _0x159ece=_0x2a3224;let _0x2b97be='';const _0xd2e8f2=this[_0x159ece('0x2')](_0x159ece('0x1'));return _0xd2e8f2&&(_0x2b97be=_0xd2e8f2[_0x159ece('0x5')](_0xd2e8f2[_0x159ece('0x3')]('.'))),_0x2b97be;}}}; \ No newline at end of file +const a723_0x3439=['attributes','sequelize','STRING','getDataValue','substring','savePath','lastIndexOf'];(function(_0x103774,_0xfba93e){const _0x3439cc=function(_0x398984){while(--_0x398984){_0x103774['push'](_0x103774['shift']());}};_0x3439cc(++_0xfba93e);}(a723_0x3439,0x8a));const a723_0x3989=function(_0x103774,_0xfba93e){_0x103774=_0x103774-0xe6;let _0x3439cc=a723_0x3439[_0x103774];return _0x3439cc;};const a723_0x3fb9e8=a723_0x3989;'use strict';const {DataTypes}=require(a723_0x3fb9e8(0xe9)),attributes={'uniqueid':{'type':DataTypes[a723_0x3fb9e8(0xea)]},'callerid':{'type':DataTypes[a723_0x3fb9e8(0xea)]},'calleridname':{'type':DataTypes[a723_0x3fb9e8(0xea)]},'context':{'type':DataTypes[a723_0x3fb9e8(0xea)]},'extension':{'type':DataTypes[a723_0x3fb9e8(0xea)]},'priority':{'type':DataTypes[a723_0x3fb9e8(0xea)]},'accountcode':{'type':DataTypes[a723_0x3fb9e8(0xea)]},'dnid':{'type':DataTypes[a723_0x3fb9e8(0xea)]},'projectName':{'type':DataTypes['STRING']},'saveName':{'type':DataTypes['STRING']},'filename':{'type':DataTypes[a723_0x3fb9e8(0xea)]},'savePath':{'type':DataTypes[a723_0x3fb9e8(0xea)]},'format':{'type':DataTypes['VIRTUAL'],'get':function(){const _0xec6b2e=a723_0x3fb9e8;let _0x2c0767='';const _0xd49c13=this[_0xec6b2e(0xeb)](_0xec6b2e(0xe6));return _0xd49c13&&(_0x2c0767=_0xd49c13[_0xec6b2e(0xec)](_0xd49c13[_0xec6b2e(0xe7)]('.'))),_0x2c0767;}}};module['exports'][a723_0x3fb9e8(0xe8)]=attributes; \ No newline at end of file diff --git a/server/api/squareRecording/squareRecording.controller.js b/server/api/squareRecording/squareRecording.controller.js index f616d15..4b216e8 100644 --- a/server/api/squareRecording/squareRecording.controller.js +++ b/server/api/squareRecording/squareRecording.controller.js @@ -1 +1 @@ -const a605_0x50c2=['uniqueid','query','type','key','send','order','filter','offset','limit','recording','path','decryptFile','filename','Content-Range','%s.cypher','findOne','VIRTUAL','destroy','show','unlink','intersection','where','model','filters','fields','message','cancellazione\x20fisica\x20documento\x20%s','map','length','savePath','\x22\x20trovato\x20eseguo\x20la\x20cancellazione','then','keys','catch','includeAll','name','SquareRecording\x20not\x20found','../../mysqldb','sequelize','update','isNil','status','extname','unlinkSync','existsSync','index','params','Not\x20found','sort','like','../../components/parsers/qs','rawAttributes','attributes','util','../../config/environment','download','json','merge','SquareRecording','body','include','rows','count','lodash'];(function(_0x5ddb27,_0x50c2f0){const _0x443b3b=function(_0x2d84e9){while(--_0x2d84e9){_0x5ddb27['push'](_0x5ddb27['shift']());}};_0x443b3b(++_0x50c2f0);}(a605_0x50c2,0x6e));const a605_0x443b=function(_0x5ddb27,_0x50c2f0){_0x5ddb27=_0x5ddb27-0x0;let _0x443b3b=a605_0x50c2[_0x5ddb27];return _0x443b3b;};const _0x23858a=a605_0x443b;'use strict';const util=require(_0x23858a('0x7')),path=require(_0x23858a('0x1c')),fs=require('fs'),_=require(_0x23858a('0x11')),qs=require(_0x23858a('0x4')),logger=require('../../config/logger')('api'),config=require(_0x23858a('0x8')),db=require(_0x23858a('0x37'))['db'],{Op,ValidationError}=require(_0x23858a('0x38')),{InternalError}=require('error-middleware/errors');function respondWithResult(_0x2d84e9,_0x5c02fe){return _0x5c02fe=_0x5c02fe||0xc8,function(_0x3f523e){const _0x4f256a=a605_0x443b;if(_0x3f523e)return _0x2d84e9['status'](_0x5c02fe)[_0x4f256a('0xa')](_0x3f523e);};}function respondWithFilteredResult(_0x48cf65,_0x276c9a){return function(_0x5aef8b){const _0x3432a3=a605_0x443b;if(_0x5aef8b){const _0x4e7e44=_0x5aef8b[_0x3432a3('0x10')],_0x7f4e05=_0x276c9a[_0x3432a3('0x19')];let _0xd84ccf=_0x276c9a[_0x3432a3('0x19')]+_0x276c9a[_0x3432a3('0x1a')],_0x4e9c8b;return _0xd84ccf>=_0x4e7e44?(_0xd84ccf=_0x4e7e44,_0x4e9c8b=0xc8):_0x4e9c8b=0xce,_0x48cf65[_0x3432a3('0x3b')](_0x4e9c8b),_0x48cf65['set'](_0x3432a3('0x1f'),_0x7f4e05+'-'+_0xd84ccf+'/'+_0x4e7e44)[_0x3432a3('0xa')](_0x5aef8b);}return null;};}function saveUpdates(_0x774445){return function(_0x2a7b40){const _0x3741c5=a605_0x443b;if(_0x2a7b40)return _0x2a7b40[_0x3741c5('0x39')](_0x774445)[_0x3741c5('0x31')](function(_0x56da5f){return _0x56da5f;});return null;};}function handleEntityNotFound(_0x28e818){return function(_0x4b9e6a){return!_0x4b9e6a&&_0x28e818['sendStatus'](0x194),_0x4b9e6a;};}function handleError(_0x563d2f,_0x1c1655){return _0x1c1655=_0x1c1655||0x1f4,function(_0x22d86c){const _0xdaae27=a605_0x443b;logger['error'](_0x22d86c['stack']),_0x22d86c[_0xdaae27('0x35')]&&delete _0x22d86c[_0xdaae27('0x35')],_0x563d2f[_0xdaae27('0x3b')](_0x1c1655)[_0xdaae27('0x16')](_0x22d86c);};}exports[_0x23858a('0x3f')]=function(_0x1a535e,_0x1322e2){const _0x598ca1=_0x23858a;let _0x2c2218={};const _0x247013={},_0x4e7b1d={'count':0x0,'rows':[]},_0x4f98b7=_[_0x598ca1('0x2d')](db[_0x598ca1('0xc')][_0x598ca1('0x5')],function(_0x2677e7){const _0x5bfd96=_0x598ca1;return{'name':_0x2677e7['fieldName'],'type':_0x2677e7[_0x5bfd96('0x14')][_0x5bfd96('0x15')]};});_0x247013[_0x598ca1('0x28')]=_[_0x598ca1('0x2d')](_0x4f98b7,_0x598ca1('0x35')),_0x247013['query']=_[_0x598ca1('0x32')](_0x1a535e[_0x598ca1('0x13')]),_0x247013[_0x598ca1('0x29')]=_[_0x598ca1('0x26')](_0x247013[_0x598ca1('0x28')],_0x247013[_0x598ca1('0x13')]),_0x2c2218[_0x598ca1('0x6')]=_[_0x598ca1('0x26')](_0x247013['model'],qs[_0x598ca1('0x2a')](_0x1a535e[_0x598ca1('0x13')][_0x598ca1('0x2a')])),_0x2c2218['attributes']=_0x2c2218['attributes'][_0x598ca1('0x2e')]?_0x2c2218[_0x598ca1('0x6')]:_0x247013[_0x598ca1('0x28')];typeof _0x1a535e['query']['nolimit']==='undefined'&&(_0x2c2218[_0x598ca1('0x1a')]=qs[_0x598ca1('0x1a')](_0x1a535e['query']['limit']),_0x2c2218['offset']=qs['offset'](_0x1a535e[_0x598ca1('0x13')]['offset']));_0x2c2218[_0x598ca1('0x17')]=qs[_0x598ca1('0x2')](_0x1a535e[_0x598ca1('0x13')][_0x598ca1('0x2')]),_0x2c2218[_0x598ca1('0x27')]=qs[_0x598ca1('0x29')](_['pick'](_0x1a535e[_0x598ca1('0x13')],_0x247013[_0x598ca1('0x29')]),_0x4f98b7);_0x1a535e['query'][_0x598ca1('0x18')]&&(_0x2c2218['where']=_[_0x598ca1('0xb')](_0x2c2218[_0x598ca1('0x27')],{[Op['or']]:_[_0x598ca1('0x2d')](_0x4f98b7,function(_0x15bbf8){const _0x29c0c1=_0x598ca1;if(_0x15bbf8[_0x29c0c1('0x14')]!==_0x29c0c1('0x22')){const _0x476491={};return _0x476491[_0x15bbf8[_0x29c0c1('0x35')]]={[Op[_0x29c0c1('0x3')]]:'%'+_0x1a535e[_0x29c0c1('0x13')][_0x29c0c1('0x18')]+'%'},_0x476491;}})}));_0x2c2218=_['merge']({},_0x2c2218,_0x1a535e['options']);const _0x3fe9a6={'where':_0x2c2218[_0x598ca1('0x27')]};return db['SquareRecording'][_0x598ca1('0x10')](_0x3fe9a6)[_0x598ca1('0x31')](function(_0x17e5cf){const _0x2fc6b4=_0x598ca1;return _0x4e7b1d['count']=_0x17e5cf,_0x1a535e[_0x2fc6b4('0x13')][_0x2fc6b4('0x34')]&&(_0x2c2218['include']=[{'all':!![]}]),db[_0x2fc6b4('0xc')]['findAll'](_0x2c2218);})[_0x598ca1('0x31')](function(_0x58ba74){const _0x5dc215=_0x598ca1;return _0x4e7b1d[_0x5dc215('0xf')]=_0x58ba74,_0x4e7b1d;})[_0x598ca1('0x31')](respondWithFilteredResult(_0x1322e2,_0x2c2218))[_0x598ca1('0x33')](handleError(_0x1322e2,null));},exports[_0x23858a('0x24')]=function(_0x39acca,_0x1cad77){const _0x3bf73c=_0x23858a;let _0x4e5d04={'raw':!![],'where':{'id':_0x39acca[_0x3bf73c('0x0')]['id']}};const _0x163502={};return _0x163502[_0x3bf73c('0x28')]=_[_0x3bf73c('0x32')](db['SquareRecording'][_0x3bf73c('0x5')]),_0x163502['query']=_['keys'](_0x39acca[_0x3bf73c('0x13')]),_0x163502['filters']=_['intersection'](_0x163502['model'],_0x163502[_0x3bf73c('0x13')]),_0x4e5d04[_0x3bf73c('0x6')]=_[_0x3bf73c('0x26')](_0x163502[_0x3bf73c('0x28')],qs[_0x3bf73c('0x2a')](_0x39acca['query'][_0x3bf73c('0x2a')])),_0x4e5d04[_0x3bf73c('0x6')]=_0x4e5d04[_0x3bf73c('0x6')][_0x3bf73c('0x2e')]?_0x4e5d04[_0x3bf73c('0x6')]:_0x163502[_0x3bf73c('0x28')],_0x39acca['query'][_0x3bf73c('0x34')]&&(_0x4e5d04[_0x3bf73c('0xe')]=[{'all':!![]}]),_0x4e5d04=_[_0x3bf73c('0xb')]({},_0x4e5d04,_0x39acca['options']),db['SquareRecording'][_0x3bf73c('0x21')](_0x4e5d04)['then'](handleEntityNotFound(_0x1cad77,null))[_0x3bf73c('0x31')](respondWithResult(_0x1cad77,null))['catch'](handleError(_0x1cad77,null));},exports['create']=function(_0x5e3f7b,_0x26cd6a){const _0x5ef044=_0x23858a;return db[_0x5ef044('0xc')]['create'](_0x5e3f7b[_0x5ef044('0xd')],{})['then'](respondWithResult(_0x26cd6a,0xc9))[_0x5ef044('0x33')](handleError(_0x26cd6a,null));},exports[_0x23858a('0x39')]=function(_0x4213eb,_0x1ec217){const _0x559ebe=_0x23858a;return _0x4213eb['body']['id']&&delete _0x4213eb['body']['id'],db[_0x559ebe('0xc')][_0x559ebe('0x21')]({'where':{'id':_0x4213eb[_0x559ebe('0x0')]['id']}})[_0x559ebe('0x31')](handleEntityNotFound(_0x1ec217,null))[_0x559ebe('0x31')](saveUpdates(_0x4213eb[_0x559ebe('0xd')],null))['then'](respondWithResult(_0x1ec217,null))[_0x559ebe('0x33')](handleError(_0x1ec217,null));},exports['download']=function(_0x29c3a4,_0x48a5b0){const _0x5026ec=_0x23858a,_0x8e4d0f=require('../../components/encryptor');let _0x39951e=![];const _0x346ebb={};return _0x29c3a4[_0x5026ec('0x13')]['type']&&_0x29c3a4['query'][_0x5026ec('0x14')]==='uniqueid'?_0x346ebb[_0x5026ec('0x12')]=_0x29c3a4[_0x5026ec('0x0')]['id']:_0x346ebb['id']=_0x29c3a4['params']['id'],db['SquareRecording'][_0x5026ec('0x21')]({'where':_0x346ebb,'attributes':['id',_0x5026ec('0x2f'),'filename'],'raw':!![]})['then'](handleEntityNotFound(_0x48a5b0,null))['then'](function(_0x44db1a){const _0x1648e5=_0x5026ec;if(_0x44db1a){const _0x3a12e2=_0x44db1a[_0x1648e5('0x2f')],_0x7bc08e=util['format'](_0x1648e5('0x20'),_0x3a12e2);if(fs[_0x1648e5('0x3e')](_0x7bc08e))return _0x39951e=!![],_0x8e4d0f[_0x1648e5('0x1d')](_0x7bc08e,_0x3a12e2,config['secrets'][_0x1648e5('0x1b')])[_0x1648e5('0x31')](function(){return _0x44db1a;});return _0x44db1a;}})[_0x5026ec('0x31')](function(_0x5a455e){const _0x9ed62f=_0x5026ec;if(_0x5a455e){const _0x3fedef=_0x5a455e['savePath'];if(!fs[_0x9ed62f('0x3e')](_0x3fedef))throw new ValidationError(_0x9ed62f('0x36'));return _0x5a455e[_0x9ed62f('0x1e')]?_0x48a5b0[_0x9ed62f('0x9')](_0x3fedef,_0x5a455e[_0x9ed62f('0x1e')]+path[_0x9ed62f('0x3c')](_0x3fedef),function(){_0x39951e&&fs['unlink'](_0x3fedef);}):_0x48a5b0[_0x9ed62f('0x9')](_0x3fedef,function(){const _0x2a8fac=_0x9ed62f;_0x39951e&&fs[_0x2a8fac('0x25')](_0x3fedef);});}})[_0x5026ec('0x33')](function(_0x46627d){const _0x132dc8=_0x5026ec;if(_0x46627d[_0x132dc8('0x2b')]===_0x132dc8('0x36'))_0x48a5b0[_0x132dc8('0x3b')](0x194)[_0x132dc8('0x16')](_0x132dc8('0x1'));else return handleError(_0x48a5b0,null);});},exports['destroy']=function(_0x53334f,_0x2ccf94){const _0x19e297=_0x23858a;return db[_0x19e297('0xc')]['findOne']({'where':{'id':_0x53334f[_0x19e297('0x0')]['id']}})[_0x19e297('0x31')](function(_0x2475f8){if(!_0x2475f8)throw new ReferenceError('Entity\x20not\x20found');return _0x2475f8;})['then'](function(_0x5118be){const _0x4a49c9=_0x19e297;let _0x9e518=_0x5118be[_0x4a49c9('0x2f')];return logger['info'](_0x4a49c9('0x2c'),_0x9e518),!_[_0x4a49c9('0x3a')](_0x5118be['savePath'])&&fs[_0x4a49c9('0x3e')](_0x9e518)&&(logger['info']('File:\x20\x22'+_0x9e518+_0x4a49c9('0x30')),fs[_0x4a49c9('0x3d')](_0x9e518)),_0x9e518=_0x9e518+'.cypher',!_[_0x4a49c9('0x3a')](_0x5118be[_0x4a49c9('0x2f')])&&fs[_0x4a49c9('0x3e')](_0x9e518)&&(logger['info']('File:\x20\x22'+_0x9e518+_0x4a49c9('0x30')),fs['unlinkSync'](_0x9e518)),_0x5118be;})[_0x19e297('0x31')](function(_0x751afb){const _0x1974ad=_0x19e297;if(!_0x751afb)throw new InternalError();return _0x751afb[_0x1974ad('0x23')]();})['then'](function(){_0x2ccf94['status'](0xcc)['end']();})['catch'](handleError(_0x2ccf94,null));}; \ No newline at end of file +const a724_0x45f3=['destroy','keys','sendStatus','unlink','extname','map','sort','%s.cypher','include','.cypher','sequelize','findAll','stack','params','order','intersection','type','where','secrets','update','send','../../components/parsers/qs','cancellazione\x20fisica\x20documento\x20%s','filters','\x22\x20trovato\x20eseguo\x20la\x20cancellazione','options','uniqueid','savePath','VIRTUAL','format','Content-Range','nolimit','findOne','model','query','body','path','../../components/encryptor','filename','lodash','filter','existsSync','SquareRecording\x20not\x20found','fieldName','then','attributes','recording','../../config/logger','unlinkSync','count','show','isNil','merge','download','index','info','like','limit','catch','json','File:\x20\x22','error-middleware/errors','offset','SquareRecording','end','create','util','error','name','includeAll','length','pick','Entity\x20not\x20found','status','rows','key','Not\x20found','fields','rawAttributes'];(function(_0x5772a2,_0x102270){const _0x45f379=function(_0x44475a){while(--_0x44475a){_0x5772a2['push'](_0x5772a2['shift']());}};_0x45f379(++_0x102270);}(a724_0x45f3,0x156));const a724_0x4447=function(_0x5772a2,_0x102270){_0x5772a2=_0x5772a2-0xf3;let _0x45f379=a724_0x45f3[_0x5772a2];return _0x45f379;};const a724_0x6f023f=a724_0x4447;'use strict';const util=require(a724_0x6f023f(0x11b)),path=require(a724_0x6f023f(0xfd)),fs=require('fs'),_=require(a724_0x6f023f(0x100)),qs=require(a724_0x6f023f(0x13d)),logger=require(a724_0x6f023f(0x108))('api'),config=require('../../config/environment'),{db}=require('../../mysqldb'),{Op,ValidationError}=require(a724_0x6f023f(0x132)),{InternalError}=require(a724_0x6f023f(0x116));function respondWithResult(_0x1cdc28,_0x5087bb){return _0x5087bb=_0x5087bb||0xc8,function(_0x132341){const _0x4401f1=a724_0x4447;if(_0x132341)return _0x1cdc28[_0x4401f1(0x122)](_0x5087bb)[_0x4401f1(0x114)](_0x132341);};}function respondWithFilteredResult(_0x3b218e,_0x34fa39){return function(_0x346ea3){const _0x162c30=a724_0x4447;if(_0x346ea3){const _0x53631c=_0x346ea3[_0x162c30(0x10a)],_0x5dea54=_0x34fa39[_0x162c30(0x117)];let _0x369270=_0x34fa39[_0x162c30(0x117)]+_0x34fa39[_0x162c30(0x112)],_0x2ecbe9;return _0x369270>=_0x53631c?(_0x369270=_0x53631c,_0x2ecbe9=0xc8):_0x2ecbe9=0xce,_0x3b218e['status'](_0x2ecbe9),_0x3b218e['set'](_0x162c30(0xf7),_0x5dea54+'-'+_0x369270+'/'+_0x53631c)[_0x162c30(0x114)](_0x346ea3);}return null;};}function saveUpdates(_0x3582e1){return function(_0x1c2d3e){const _0x26c0c5=a724_0x4447;if(_0x1c2d3e)return _0x1c2d3e[_0x26c0c5(0x13b)](_0x3582e1)[_0x26c0c5(0x105)](function(_0xbeee10){return _0xbeee10;});return null;};}function handleEntityNotFound(_0x2c5f99){return function(_0x315187){const _0x3c863d=a724_0x4447;return!_0x315187&&_0x2c5f99[_0x3c863d(0x12a)](0x194),_0x315187;};}function handleError(_0x5c4657,_0xab0fe9){return _0xab0fe9=_0xab0fe9||0x1f4,function(_0x3bc5fb){const _0x5a619d=a724_0x4447;logger[_0x5a619d(0x11c)](_0x3bc5fb[_0x5a619d(0x134)]),_0x3bc5fb[_0x5a619d(0x11d)]&&delete _0x3bc5fb[_0x5a619d(0x11d)],_0x5c4657[_0x5a619d(0x122)](_0xab0fe9)[_0x5a619d(0x13c)](_0x3bc5fb);};}exports[a724_0x6f023f(0x10f)]=function(_0x380fde,_0x301af9){const _0x21fa48=a724_0x6f023f;let _0x519c19={};const _0x489a9d={},_0x4cea91={'count':0x0,'rows':[]},_0x10309d=_[_0x21fa48(0x12d)](db['SquareRecording'][_0x21fa48(0x127)],function(_0x39a44a){const _0x32e255=_0x21fa48;return{'name':_0x39a44a[_0x32e255(0x104)],'type':_0x39a44a['type'][_0x32e255(0x124)]};});_0x489a9d[_0x21fa48(0xfa)]=_[_0x21fa48(0x12d)](_0x10309d,_0x21fa48(0x11d)),_0x489a9d[_0x21fa48(0xfb)]=_[_0x21fa48(0x129)](_0x380fde[_0x21fa48(0xfb)]),_0x489a9d[_0x21fa48(0x13f)]=_[_0x21fa48(0x137)](_0x489a9d['model'],_0x489a9d[_0x21fa48(0xfb)]),_0x519c19['attributes']=_['intersection'](_0x489a9d[_0x21fa48(0xfa)],qs[_0x21fa48(0x126)](_0x380fde['query'][_0x21fa48(0x126)])),_0x519c19[_0x21fa48(0x106)]=_0x519c19[_0x21fa48(0x106)][_0x21fa48(0x11f)]?_0x519c19[_0x21fa48(0x106)]:_0x489a9d[_0x21fa48(0xfa)];typeof _0x380fde[_0x21fa48(0xfb)][_0x21fa48(0xf8)]==='undefined'&&(_0x519c19[_0x21fa48(0x112)]=qs[_0x21fa48(0x112)](_0x380fde[_0x21fa48(0xfb)][_0x21fa48(0x112)]),_0x519c19[_0x21fa48(0x117)]=qs['offset'](_0x380fde[_0x21fa48(0xfb)][_0x21fa48(0x117)]));_0x519c19[_0x21fa48(0x136)]=qs[_0x21fa48(0x12e)](_0x380fde['query'][_0x21fa48(0x12e)]),_0x519c19['where']=qs[_0x21fa48(0x13f)](_[_0x21fa48(0x120)](_0x380fde[_0x21fa48(0xfb)],_0x489a9d[_0x21fa48(0x13f)]),_0x10309d);_0x380fde[_0x21fa48(0xfb)][_0x21fa48(0x101)]&&(_0x519c19['where']=_[_0x21fa48(0x10d)](_0x519c19[_0x21fa48(0x139)],{[Op['or']]:_['map'](_0x10309d,function(_0x5e0d5e){const _0x1f2639=_0x21fa48;if(_0x5e0d5e[_0x1f2639(0x138)]!==_0x1f2639(0xf5)){const _0x2a799e={};return _0x2a799e[_0x5e0d5e[_0x1f2639(0x11d)]]={[Op[_0x1f2639(0x111)]]:'%'+_0x380fde[_0x1f2639(0xfb)][_0x1f2639(0x101)]+'%'},_0x2a799e;}})}));_0x519c19=_[_0x21fa48(0x10d)]({},_0x519c19,_0x380fde[_0x21fa48(0x141)]);const _0x48f557={'where':_0x519c19[_0x21fa48(0x139)]};return db[_0x21fa48(0x118)][_0x21fa48(0x10a)](_0x48f557)[_0x21fa48(0x105)](function(_0x2525ad){const _0x567eeb=_0x21fa48;return _0x4cea91[_0x567eeb(0x10a)]=_0x2525ad,_0x380fde['query'][_0x567eeb(0x11e)]&&(_0x519c19['include']=[{'all':!![]}]),db[_0x567eeb(0x118)][_0x567eeb(0x133)](_0x519c19);})['then'](function(_0x287caa){const _0xbdc91c=_0x21fa48;return _0x4cea91[_0xbdc91c(0x123)]=_0x287caa,_0x4cea91;})[_0x21fa48(0x105)](respondWithFilteredResult(_0x301af9,_0x519c19))[_0x21fa48(0x113)](handleError(_0x301af9,null));},exports[a724_0x6f023f(0x10b)]=function(_0x14952a,_0x143acb){const _0x1e76ba=a724_0x6f023f;let _0x1c0672={'raw':!![],'where':{'id':_0x14952a[_0x1e76ba(0x135)]['id']}};const _0x43e765={};return _0x43e765[_0x1e76ba(0xfa)]=_['keys'](db[_0x1e76ba(0x118)]['rawAttributes']),_0x43e765[_0x1e76ba(0xfb)]=_[_0x1e76ba(0x129)](_0x14952a[_0x1e76ba(0xfb)]),_0x43e765[_0x1e76ba(0x13f)]=_[_0x1e76ba(0x137)](_0x43e765['model'],_0x43e765['query']),_0x1c0672['attributes']=_['intersection'](_0x43e765['model'],qs[_0x1e76ba(0x126)](_0x14952a[_0x1e76ba(0xfb)][_0x1e76ba(0x126)])),_0x1c0672[_0x1e76ba(0x106)]=_0x1c0672[_0x1e76ba(0x106)][_0x1e76ba(0x11f)]?_0x1c0672[_0x1e76ba(0x106)]:_0x43e765[_0x1e76ba(0xfa)],_0x14952a['query'][_0x1e76ba(0x11e)]&&(_0x1c0672[_0x1e76ba(0x130)]=[{'all':!![]}]),_0x1c0672=_[_0x1e76ba(0x10d)]({},_0x1c0672,_0x14952a['options']),db[_0x1e76ba(0x118)]['findOne'](_0x1c0672)[_0x1e76ba(0x105)](handleEntityNotFound(_0x143acb,null))[_0x1e76ba(0x105)](respondWithResult(_0x143acb,null))[_0x1e76ba(0x113)](handleError(_0x143acb,null));},exports[a724_0x6f023f(0x11a)]=function(_0x2c1829,_0x4204e2){const _0x3abca7=a724_0x6f023f;return db[_0x3abca7(0x118)][_0x3abca7(0x11a)](_0x2c1829['body'],{})[_0x3abca7(0x105)](respondWithResult(_0x4204e2,0xc9))['catch'](handleError(_0x4204e2,null));},exports['update']=function(_0x52dd91,_0x4d500d){const _0x106c55=a724_0x6f023f;return _0x52dd91[_0x106c55(0xfc)]['id']&&delete _0x52dd91[_0x106c55(0xfc)]['id'],db[_0x106c55(0x118)][_0x106c55(0xf9)]({'where':{'id':_0x52dd91['params']['id']}})[_0x106c55(0x105)](handleEntityNotFound(_0x4d500d,null))[_0x106c55(0x105)](saveUpdates(_0x52dd91[_0x106c55(0xfc)],null))[_0x106c55(0x105)](respondWithResult(_0x4d500d,null))['catch'](handleError(_0x4d500d,null));},exports[a724_0x6f023f(0x10e)]=function(_0x2bbc03,_0x333b52){const _0x384c0e=a724_0x6f023f,_0x292678=require(_0x384c0e(0xfe));let _0x111d6f=![];const _0x456b5e={};return _0x2bbc03[_0x384c0e(0xfb)]['type']&&_0x2bbc03['query'][_0x384c0e(0x138)]==='uniqueid'?_0x456b5e[_0x384c0e(0xf3)]=_0x2bbc03[_0x384c0e(0x135)]['id']:_0x456b5e['id']=_0x2bbc03['params']['id'],db[_0x384c0e(0x118)][_0x384c0e(0xf9)]({'where':_0x456b5e,'attributes':['id',_0x384c0e(0xf4),_0x384c0e(0xff)],'raw':!![]})[_0x384c0e(0x105)](handleEntityNotFound(_0x333b52,null))['then'](function(_0x458b42){const _0x47194e=_0x384c0e;if(_0x458b42){const _0x11d7d3=_0x458b42[_0x47194e(0xf4)],_0x271a68=util[_0x47194e(0xf6)](_0x47194e(0x12f),_0x11d7d3);if(fs['existsSync'](_0x271a68))return _0x111d6f=!![],_0x292678['decryptFile'](_0x271a68,_0x11d7d3,config[_0x47194e(0x13a)][_0x47194e(0x107)])[_0x47194e(0x105)](function(){return _0x458b42;});return _0x458b42;}})[_0x384c0e(0x105)](function(_0x28b3e7){const _0x1d1596=_0x384c0e;if(_0x28b3e7){const _0x4d3931=_0x28b3e7[_0x1d1596(0xf4)];if(!fs[_0x1d1596(0x102)](_0x4d3931))throw new ValidationError(_0x1d1596(0x103));return _0x28b3e7[_0x1d1596(0xff)]?_0x333b52[_0x1d1596(0x10e)](_0x4d3931,_0x28b3e7['filename']+path[_0x1d1596(0x12c)](_0x4d3931),function(){const _0x5e4039=_0x1d1596;_0x111d6f&&fs[_0x5e4039(0x12b)](_0x4d3931);}):_0x333b52[_0x1d1596(0x10e)](_0x4d3931,function(){const _0x4f09eb=_0x1d1596;_0x111d6f&&fs[_0x4f09eb(0x12b)](_0x4d3931);});}})[_0x384c0e(0x113)](function(_0x51fc23){const _0x421c6a=_0x384c0e;if(_0x51fc23['message']===_0x421c6a(0x103))_0x333b52[_0x421c6a(0x122)](0x194)[_0x421c6a(0x13c)](_0x421c6a(0x125));else return handleError(_0x333b52,null);});},exports[a724_0x6f023f(0x128)]=function(_0x837cbd,_0x45e4b8){const _0x475828=a724_0x6f023f;return db[_0x475828(0x118)]['findOne']({'where':{'id':_0x837cbd[_0x475828(0x135)]['id']}})['then'](function(_0xa6207f){const _0x4cd578=_0x475828;if(!_0xa6207f)throw new ReferenceError(_0x4cd578(0x121));return _0xa6207f;})[_0x475828(0x105)](function(_0x15354a){const _0x2178da=_0x475828;let _0x3afa29=_0x15354a[_0x2178da(0xf4)];return logger[_0x2178da(0x110)](_0x2178da(0x13e),_0x3afa29),!_[_0x2178da(0x10c)](_0x15354a[_0x2178da(0xf4)])&&fs[_0x2178da(0x102)](_0x3afa29)&&(logger['info']('File:\x20\x22'+_0x3afa29+'\x22\x20trovato\x20eseguo\x20la\x20cancellazione'),fs[_0x2178da(0x109)](_0x3afa29)),_0x3afa29=_0x3afa29+_0x2178da(0x131),!_['isNil'](_0x15354a[_0x2178da(0xf4)])&&fs['existsSync'](_0x3afa29)&&(logger[_0x2178da(0x110)](_0x2178da(0x115)+_0x3afa29+_0x2178da(0x140)),fs[_0x2178da(0x109)](_0x3afa29)),_0x15354a;})[_0x475828(0x105)](function(_0x4ceb00){const _0x235de3=_0x475828;if(!_0x4ceb00)throw new InternalError();return _0x4ceb00[_0x235de3(0x128)]();})[_0x475828(0x105)](function(){const _0x2e7dfe=_0x475828;_0x45e4b8['status'](0xcc)[_0x2e7dfe(0x119)]();})[_0x475828(0x113)](handleError(_0x45e4b8,null));}; \ No newline at end of file diff --git a/server/api/squareRecording/squareRecording.model.js b/server/api/squareRecording/squareRecording.model.js index ce2fa8c..b81bd5d 100644 --- a/server/api/squareRecording/squareRecording.model.js +++ b/server/api/squareRecording/squareRecording.model.js @@ -1 +1 @@ -const a606_0x4e0f=['exports','./squareRecording.attributes','define','square_recordings'];(function(_0x2922bd,_0x4e0f46){const _0xa675bb=function(_0x3055f2){while(--_0x3055f2){_0x2922bd['push'](_0x2922bd['shift']());}};_0xa675bb(++_0x4e0f46);}(a606_0x4e0f,0x9f));const a606_0xa675=function(_0x2922bd,_0x4e0f46){_0x2922bd=_0x2922bd-0x0;let _0xa675bb=a606_0x4e0f[_0x2922bd];return _0xa675bb;};const _0x2fabbe=a606_0xa675;'use strict';const attributes=require(_0x2fabbe('0x2'));module[_0x2fabbe('0x1')]=function(_0x3055f2){const _0x7169fc=_0x2fabbe,_0xd71d4e=_0x3055f2[_0x7169fc('0x3')]('SquareRecording',attributes,{'tableName':_0x7169fc('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0xd71d4e;}; \ No newline at end of file +const a725_0x2652=['sequelize','init','function','SquareRecording','./squareRecording.attributes'];(function(_0x5f4515,_0x588161){const _0x265266=function(_0x453bd5){while(--_0x453bd5){_0x5f4515['push'](_0x5f4515['shift']());}};_0x265266(++_0x588161);}(a725_0x2652,0xe1));const a725_0x453b=function(_0x5f4515,_0x588161){_0x5f4515=_0x5f4515-0x1ca;let _0x265266=a725_0x2652[_0x5f4515];return _0x265266;};const a725_0x5d86a0=a725_0x453b;'use strict';const {Model}=require(a725_0x5d86a0(0x1ca)),{attributes}=require(a725_0x5d86a0(0x1ce)),{options}=require('./squareRecording.options');class SquareRecording extends Model{}function init(_0x53fb27,_0x40fa66){const _0x5f1200=a725_0x5d86a0,_0x5606e2=options(_0x53fb27),_0x714f5f=typeof _0x40fa66===_0x5f1200(0x1cc)?_0x40fa66(_0x5606e2):_0x5606e2;return SquareRecording['init'](attributes,_0x714f5f),SquareRecording;}module['exports'][a725_0x5d86a0(0x1cd)]=SquareRecording,module['exports'][a725_0x5d86a0(0x1cb)]=init; \ No newline at end of file diff --git a/server/api/squareRecording/squareRecording.options.js b/server/api/squareRecording/squareRecording.options.js new file mode 100644 index 0000000..2cbf3ee --- /dev/null +++ b/server/api/squareRecording/squareRecording.options.js @@ -0,0 +1 @@ +var a726_0x129f=['options','exports'];(function(_0x3a8689,_0x32fb5f){var _0x129fde=function(_0x42a0d1){while(--_0x42a0d1){_0x3a8689['push'](_0x3a8689['shift']());}};_0x129fde(++_0x32fb5f);}(a726_0x129f,0x70));var a726_0x42a0=function(_0x3a8689,_0x32fb5f){_0x3a8689=_0x3a8689-0x159;var _0x129fde=a726_0x129f[_0x3a8689];return _0x129fde;};var a726_0x123f15=a726_0x42a0;function options(_0x74c504){return{'sequelize':_0x74c504,'tableName':'square_recordings','paranoid':![],'indexes':[],'timestamps':!![]};}module[a726_0x123f15(0x15a)][a726_0x123f15(0x159)]=options; \ No newline at end of file diff --git a/server/api/squareRecording/squareRecording.rpc.js b/server/api/squareRecording/squareRecording.rpc.js index f4dfa5d..5d7fc89 100644 --- a/server/api/squareRecording/squareRecording.rpc.js +++ b/server/api/squareRecording/squareRecording.rpc.js @@ -1 +1 @@ -const a607_0x520a=['then','error','body','create','options','catch','raw','debug','CreateSquareRecording','message','info','../../mysqldb'];(function(_0x288f9f,_0x520aa9){const _0x5d563e=function(_0x32e3c9){while(--_0x32e3c9){_0x288f9f['push'](_0x288f9f['shift']());}};_0x5d563e(++_0x520aa9);}(a607_0x520a,0x8f));const a607_0x5d56=function(_0x288f9f,_0x520aa9){_0x288f9f=_0x288f9f-0x0;let _0x5d563e=a607_0x520a[_0x288f9f];return _0x5d563e;};const _0x5b2218=a607_0x5d56;'use strict';const db=require(_0x5b2218('0x0'))['db'],logger=require('../../config/logger')('rpc');exports[_0x5b2218('0x9')]=function(_0x32e3c9){const _0x2f1ad8=this;return new Promise(function(_0xdced5b,_0x4eb01a){const _0x1e96cb=a607_0x5d56;return db['SquareRecording'][_0x1e96cb('0x4')](_0x32e3c9[_0x1e96cb('0x3')],{'raw':_0x32e3c9['options']?_0x32e3c9[_0x1e96cb('0x5')][_0x1e96cb('0x7')]===undefined?!![]:![]:!![]})[_0x1e96cb('0x1')](function(_0x4a8fe7){const _0xb178bf=_0x1e96cb;logger[_0xb178bf('0xb')]('CreateSquareRecording',_0x32e3c9),logger[_0xb178bf('0x8')](_0xb178bf('0x9'),_0x32e3c9,JSON['stringify'](_0x4a8fe7)),_0xdced5b(_0x4a8fe7);})[_0x1e96cb('0x6')](function(_0x307a44){const _0x4aad7c=_0x1e96cb;logger[_0x4aad7c('0x2')](_0x4aad7c('0x9'),_0x307a44['message'],_0x32e3c9),_0x4eb01a(_0x2f1ad8[_0x4aad7c('0x2')](0x1f4,_0x307a44[_0x4aad7c('0xa')]));});});}; \ No newline at end of file +const a727_0x44af=['stringify','then','SquareRecording','catch','options','CreateSquareRecording','message','rpc','raw','error','create'];(function(_0x4f7f1a,_0x23caac){const _0x44af55=function(_0x15c25b){while(--_0x15c25b){_0x4f7f1a['push'](_0x4f7f1a['shift']());}};_0x44af55(++_0x23caac);}(a727_0x44af,0x162));const a727_0x15c2=function(_0x4f7f1a,_0x23caac){_0x4f7f1a=_0x4f7f1a-0x1bc;let _0x44af55=a727_0x44af[_0x4f7f1a];return _0x44af55;};const a727_0xaedef2=a727_0x15c2;'use strict';const db=require('../../mysqldb')['db'],logger=require('../../config/logger')(a727_0xaedef2(0x1c1));exports[a727_0xaedef2(0x1bf)]=function(_0x47b092){const _0x4c5e14=this;return new Promise(function(_0x30e036,_0x4da77d){const _0x2001ca=a727_0x15c2;return db[_0x2001ca(0x1bc)][_0x2001ca(0x1c4)](_0x47b092['body'],{'raw':_0x47b092[_0x2001ca(0x1be)]?_0x47b092[_0x2001ca(0x1be)][_0x2001ca(0x1c2)]===undefined?!![]:![]:!![]})[_0x2001ca(0x1c6)](function(_0xc948b2){const _0x1ea235=_0x2001ca;logger['info'](_0x1ea235(0x1bf),_0x47b092),logger['debug'](_0x1ea235(0x1bf),_0x47b092,JSON[_0x1ea235(0x1c5)](_0xc948b2)),_0x30e036(_0xc948b2);})[_0x2001ca(0x1bd)](function(_0x5a8c3a){const _0x4968b9=_0x2001ca;logger[_0x4968b9(0x1c3)](_0x4968b9(0x1bf),_0x5a8c3a[_0x4968b9(0x1c0)],_0x47b092),_0x4da77d(_0x4c5e14[_0x4968b9(0x1c3)](0x1f4,_0x5a8c3a[_0x4968b9(0x1c0)]));});});}; \ No newline at end of file diff --git a/server/api/squareReport/index.js b/server/api/squareReport/index.js index 0a03f87..d4850bb 100644 --- a/server/api/squareReport/index.js +++ b/server/api/squareReport/index.js @@ -1 +1 @@ -const a608_0x363b=['Router','describe','../../components/auth/service','show','isAuthenticated','delete','update','put','create','index','get'];(function(_0x460d37,_0x363bff){const _0x863988=function(_0x5bbec0){while(--_0x5bbec0){_0x460d37['push'](_0x460d37['shift']());}};_0x863988(++_0x363bff);}(a608_0x363b,0x8a));const a608_0x8639=function(_0x460d37,_0x363bff){_0x460d37=_0x460d37-0x0;let _0x863988=a608_0x363b[_0x460d37];return _0x863988;};const _0x9a6a1f=a608_0x8639;'use strict';const express=require('express'),router=express[_0x9a6a1f('0x5')](),auth=require(_0x9a6a1f('0x7')),controller=require('./squareReport.controller');router[_0x9a6a1f('0x4')]('/',auth[_0x9a6a1f('0x9')](),controller[_0x9a6a1f('0x3')]),router['get']('/describe',auth[_0x9a6a1f('0x9')](),controller[_0x9a6a1f('0x6')]),router[_0x9a6a1f('0x4')]('/:id',auth[_0x9a6a1f('0x9')](),controller[_0x9a6a1f('0x8')]),router['post']('/',auth['isAuthenticated'](),controller[_0x9a6a1f('0x2')]),router[_0x9a6a1f('0x1')]('/:id',auth['isAuthenticated'](),controller[_0x9a6a1f('0x0')]),router[_0x9a6a1f('0xa')]('/:id',auth[_0x9a6a1f('0x9')](),controller['destroy']),module['exports']=router; \ No newline at end of file +const a728_0x1bf2=['show','isAuthenticated','../../components/auth/service','exports','/:id','./squareReport.controller','post','index','express','destroy','create','get','Router','describe','delete','update','/describe'];(function(_0x7e773d,_0xa42d15){const _0x1bf2b4=function(_0x4387f3){while(--_0x4387f3){_0x7e773d['push'](_0x7e773d['shift']());}};_0x1bf2b4(++_0xa42d15);}(a728_0x1bf2,0xc7));const a728_0x4387=function(_0x7e773d,_0xa42d15){_0x7e773d=_0x7e773d-0x1ac;let _0x1bf2b4=a728_0x1bf2[_0x7e773d];return _0x1bf2b4;};const a728_0x1e848e=a728_0x4387;'use strict';const express=require(a728_0x1e848e(0x1b9)),router=express[a728_0x1e848e(0x1ac)](),auth=require(a728_0x1e848e(0x1b3)),controller=require(a728_0x1e848e(0x1b6));router['get']('/',auth['isAuthenticated'](),controller[a728_0x1e848e(0x1b8)]),router[a728_0x1e848e(0x1bc)](a728_0x1e848e(0x1b0),auth['isAuthenticated'](),controller[a728_0x1e848e(0x1ad)]),router[a728_0x1e848e(0x1bc)](a728_0x1e848e(0x1b5),auth[a728_0x1e848e(0x1b2)](),controller[a728_0x1e848e(0x1b1)]),router[a728_0x1e848e(0x1b7)]('/',auth['isAuthenticated'](),controller[a728_0x1e848e(0x1bb)]),router['put'](a728_0x1e848e(0x1b5),auth[a728_0x1e848e(0x1b2)](),controller[a728_0x1e848e(0x1af)]),router[a728_0x1e848e(0x1ae)](a728_0x1e848e(0x1b5),auth[a728_0x1e848e(0x1b2)](),controller[a728_0x1e848e(0x1ba)]),module[a728_0x1e848e(0x1b4)]=router; \ No newline at end of file diff --git a/server/api/squareReport/squareReport.attributes.js b/server/api/squareReport/squareReport.attributes.js index 5cfb64e..c2626a8 100644 --- a/server/api/squareReport/squareReport.attributes.js +++ b/server/api/squareReport/squareReport.attributes.js @@ -1 +1 @@ -const a609_0x53f7=['exports','STRING','BOOLEAN','DATE','sequelize'];(function(_0x56cc4f,_0x53f7aa){const _0x3b7ab4=function(_0x19f295){while(--_0x19f295){_0x56cc4f['push'](_0x56cc4f['shift']());}};_0x3b7ab4(++_0x53f7aa);}(a609_0x53f7,0x123));const a609_0x3b7a=function(_0x56cc4f,_0x53f7aa){_0x56cc4f=_0x56cc4f-0x0;let _0x3b7ab4=a609_0x53f7[_0x56cc4f];return _0x3b7ab4;};const _0x564e38=a609_0x3b7a;'use strict';const Sequelize=require(_0x564e38('0x3'));module[_0x564e38('0x4')]={'network':{'type':Sequelize[_0x564e38('0x0')]},'network_script':{'type':Sequelize['STRING']},'request':{'type':Sequelize[_0x564e38('0x0')]},'channel':{'type':Sequelize[_0x564e38('0x0')]},'language':{'type':Sequelize[_0x564e38('0x0')]},'type':{'type':Sequelize[_0x564e38('0x0')]},'uniqueid':{'type':Sequelize[_0x564e38('0x0')]},'version':{'type':Sequelize['STRING']},'callerid':{'type':Sequelize[_0x564e38('0x0')]},'calleridname':{'type':Sequelize[_0x564e38('0x0')]},'callingpres':{'type':Sequelize['STRING']},'callingani2':{'type':Sequelize[_0x564e38('0x0')]},'callington':{'type':Sequelize['STRING']},'callingtns':{'type':Sequelize[_0x564e38('0x0')]},'dnid':{'type':Sequelize[_0x564e38('0x0')]},'rdnis':{'type':Sequelize[_0x564e38('0x0')]},'context':{'type':Sequelize[_0x564e38('0x0')]},'extension':{'type':Sequelize[_0x564e38('0x0')]},'priority':{'type':Sequelize[_0x564e38('0x0')]},'enhanced':{'type':Sequelize[_0x564e38('0x0')]},'accountcode':{'type':Sequelize[_0x564e38('0x0')]},'threadid':{'type':Sequelize['STRING']},'project_name':{'type':Sequelize['STRING']},'joinAt':{'type':Sequelize[_0x564e38('0x2')]},'leaveAt':{'type':Sequelize[_0x564e38('0x2')]},'bot':{'type':Sequelize[_0x564e38('0x1')],'defaultValue':![]}}; \ No newline at end of file +const a729_0x4257=['DATE','STRING','sequelize','BOOLEAN'];(function(_0x2aff26,_0x4f1e8e){const _0x42577b=function(_0x5c9b77){while(--_0x5c9b77){_0x2aff26['push'](_0x2aff26['shift']());}};_0x42577b(++_0x4f1e8e);}(a729_0x4257,0xef));const a729_0x5c9b=function(_0x2aff26,_0x4f1e8e){_0x2aff26=_0x2aff26-0xa3;let _0x42577b=a729_0x4257[_0x2aff26];return _0x42577b;};const a729_0x1c6be9=a729_0x5c9b;'use strict';const {DataTypes}=require(a729_0x1c6be9(0xa6)),attributes={'network':{'type':DataTypes[a729_0x1c6be9(0xa5)]},'network_script':{'type':DataTypes[a729_0x1c6be9(0xa5)]},'request':{'type':DataTypes['STRING']},'channel':{'type':DataTypes[a729_0x1c6be9(0xa5)]},'language':{'type':DataTypes[a729_0x1c6be9(0xa5)]},'type':{'type':DataTypes[a729_0x1c6be9(0xa5)]},'uniqueid':{'type':DataTypes[a729_0x1c6be9(0xa5)]},'version':{'type':DataTypes['STRING']},'callerid':{'type':DataTypes[a729_0x1c6be9(0xa5)]},'calleridname':{'type':DataTypes[a729_0x1c6be9(0xa5)]},'callingpres':{'type':DataTypes[a729_0x1c6be9(0xa5)]},'callingani2':{'type':DataTypes[a729_0x1c6be9(0xa5)]},'callington':{'type':DataTypes[a729_0x1c6be9(0xa5)]},'callingtns':{'type':DataTypes[a729_0x1c6be9(0xa5)]},'dnid':{'type':DataTypes[a729_0x1c6be9(0xa5)]},'rdnis':{'type':DataTypes[a729_0x1c6be9(0xa5)]},'context':{'type':DataTypes[a729_0x1c6be9(0xa5)]},'extension':{'type':DataTypes[a729_0x1c6be9(0xa5)]},'priority':{'type':DataTypes[a729_0x1c6be9(0xa5)]},'enhanced':{'type':DataTypes[a729_0x1c6be9(0xa5)]},'accountcode':{'type':DataTypes[a729_0x1c6be9(0xa5)]},'threadid':{'type':DataTypes[a729_0x1c6be9(0xa5)]},'project_name':{'type':DataTypes[a729_0x1c6be9(0xa5)]},'joinAt':{'type':DataTypes[a729_0x1c6be9(0xa4)]},'leaveAt':{'type':DataTypes['DATE']},'bot':{'type':DataTypes[a729_0x1c6be9(0xa3)],'defaultValue':![]}};module['exports']['attributes']=attributes; \ No newline at end of file diff --git a/server/api/squareReport/squareReport.controller.js b/server/api/squareReport/squareReport.controller.js index bdb94da..a7b56ab 100644 --- a/server/api/squareReport/squareReport.controller.js +++ b/server/api/squareReport/squareReport.controller.js @@ -1 +1 @@ -const a610_0xa6f3=['send','keys','VIRTUAL','sort','include','../../mysqldb','set','nolimit','fields','undefined','type','params','filter','filters','catch','rawAttributes','includeAll','lodash','name','where','pick','offset','SquareReport','attributes','merge','count','destroy','findOne','show','limit','intersection','api','json','create','describe','query','map','index','error','rows','length','then','../../components/parsers/qs','body','model','key','status','options'];(function(_0x249f43,_0xa6f38f){const _0x380713=function(_0x2e8910){while(--_0x2e8910){_0x249f43['push'](_0x249f43['shift']());}};_0x380713(++_0xa6f38f);}(a610_0xa6f3,0xbc));const a610_0x3807=function(_0x249f43,_0xa6f38f){_0x249f43=_0x249f43-0x0;let _0x380713=a610_0xa6f3[_0x249f43];return _0x380713;};const _0x10cf0a=a610_0x3807;'use strict';const _=require(_0x10cf0a('0x15')),qs=require(_0x10cf0a('0x2e')),logger=require('../../config/logger')(_0x10cf0a('0x23')),db=require(_0x10cf0a('0x9'))['db'],{Op}=require('sequelize');function respondWithResult(_0x2e8910,_0x17bbab){return _0x17bbab=_0x17bbab||0xc8,function(_0x355178){const _0x28248f=a610_0x3807;if(_0x355178)return _0x2e8910[_0x28248f('0x2')](_0x17bbab)[_0x28248f('0x24')](_0x355178);};}function respondWithFilteredResult(_0x30a9a3,_0x13f385){return function(_0x2a8856){const _0x1df087=a610_0x3807;if(_0x2a8856){const _0x563ae4=_0x2a8856[_0x1df087('0x1d')],_0x54a487=_0x13f385[_0x1df087('0x19')];let _0x2de953=_0x13f385[_0x1df087('0x19')]+_0x13f385[_0x1df087('0x21')],_0x20ad2f;return _0x2de953>=_0x563ae4?(_0x2de953=_0x563ae4,_0x20ad2f=0xc8):_0x20ad2f=0xce,_0x30a9a3['status'](_0x20ad2f),_0x30a9a3[_0x1df087('0xa')]('Content-Range',_0x54a487+'-'+_0x2de953+'/'+_0x563ae4)['json'](_0x2a8856);}return null;};}function saveUpdates(_0x221280){return function(_0x14733d){if(_0x14733d)return _0x14733d['update'](_0x221280)['then'](function(_0x3a1ba2){return _0x3a1ba2;});return null;};}function removeEntity(_0x4f73a2){return function(_0x3c3641){const _0x537bd0=a610_0x3807;if(_0x3c3641)return _0x3c3641[_0x537bd0('0x1e')]()[_0x537bd0('0x2d')](function(){const _0xb4b155=_0x537bd0;_0x4f73a2[_0xb4b155('0x2')](0xcc)['end']();});};}function handleEntityNotFound(_0x1229f4){return function(_0x5b1882){return!_0x5b1882&&_0x1229f4['sendStatus'](0x194),_0x5b1882;};}function handleError(_0x38da0b,_0x57309a){return _0x57309a=_0x57309a||0x1f4,function(_0x3ab28e){const _0x5cf585=a610_0x3807;logger[_0x5cf585('0x2a')](_0x3ab28e['stack']),_0x3ab28e[_0x5cf585('0x16')]&&delete _0x3ab28e['name'],_0x38da0b[_0x5cf585('0x2')](_0x57309a)[_0x5cf585('0x4')](_0x3ab28e);};}exports[_0x10cf0a('0x29')]=function(_0x3052ba,_0x1427df){const _0x94aa82=_0x10cf0a;let _0x4908cc={};const _0x69687a={},_0x4bc50d={'count':0x0,'rows':[]},_0x599baa=_['map'](db[_0x94aa82('0x1a')]['rawAttributes'],function(_0x2fa01b){const _0x486a13=_0x94aa82;return{'name':_0x2fa01b['fieldName'],'type':_0x2fa01b[_0x486a13('0xe')][_0x486a13('0x1')]};});_0x69687a[_0x94aa82('0x0')]=_['map'](_0x599baa,'name'),_0x69687a[_0x94aa82('0x27')]=_['keys'](_0x3052ba['query']),_0x69687a[_0x94aa82('0x11')]=_[_0x94aa82('0x22')](_0x69687a[_0x94aa82('0x0')],_0x69687a[_0x94aa82('0x27')]),_0x4908cc[_0x94aa82('0x1b')]=_[_0x94aa82('0x22')](_0x69687a[_0x94aa82('0x0')],qs[_0x94aa82('0xc')](_0x3052ba[_0x94aa82('0x27')]['fields'])),_0x4908cc[_0x94aa82('0x1b')]=_0x4908cc[_0x94aa82('0x1b')][_0x94aa82('0x2c')]?_0x4908cc[_0x94aa82('0x1b')]:_0x69687a[_0x94aa82('0x0')];typeof _0x3052ba[_0x94aa82('0x27')][_0x94aa82('0xb')]===_0x94aa82('0xd')&&(_0x4908cc[_0x94aa82('0x21')]=qs[_0x94aa82('0x21')](_0x3052ba[_0x94aa82('0x27')][_0x94aa82('0x21')]),_0x4908cc[_0x94aa82('0x19')]=qs[_0x94aa82('0x19')](_0x3052ba[_0x94aa82('0x27')]['offset']));_0x4908cc['order']=qs[_0x94aa82('0x7')](_0x3052ba[_0x94aa82('0x27')]['sort']),_0x4908cc['where']=qs['filters'](_[_0x94aa82('0x18')](_0x3052ba[_0x94aa82('0x27')],_0x69687a[_0x94aa82('0x11')]),_0x599baa);_0x3052ba['query']['filter']&&(_0x4908cc[_0x94aa82('0x17')]=_[_0x94aa82('0x1c')](_0x4908cc[_0x94aa82('0x17')],{[Op['or']]:_[_0x94aa82('0x28')](_0x599baa,function(_0x41d546){const _0x1c9081=_0x94aa82;if(_0x41d546['type']!==_0x1c9081('0x6')){const _0x40066a={};return _0x40066a[_0x41d546[_0x1c9081('0x16')]]={[Op['like']]:'%'+_0x3052ba[_0x1c9081('0x27')][_0x1c9081('0x10')]+'%'},_0x40066a;}})}));_0x4908cc=_[_0x94aa82('0x1c')]({},_0x4908cc,_0x3052ba[_0x94aa82('0x3')]);const _0x3c9b2d={'where':_0x4908cc['where']};return db[_0x94aa82('0x1a')][_0x94aa82('0x1d')](_0x3c9b2d)['then'](function(_0x879ac7){const _0x2d84b4=_0x94aa82;return _0x4bc50d[_0x2d84b4('0x1d')]=_0x879ac7,_0x3052ba['query'][_0x2d84b4('0x14')]&&(_0x4908cc[_0x2d84b4('0x8')]=[{'all':!![]}]),db[_0x2d84b4('0x1a')]['findAll'](_0x4908cc);})[_0x94aa82('0x2d')](function(_0xacc0e4){const _0x31eb61=_0x94aa82;return _0x4bc50d[_0x31eb61('0x2b')]=_0xacc0e4,_0x4bc50d;})[_0x94aa82('0x2d')](respondWithFilteredResult(_0x1427df,_0x4908cc))['catch'](handleError(_0x1427df,null));},exports[_0x10cf0a('0x20')]=function(_0xc8d025,_0x3559fe){const _0x28cfc2=_0x10cf0a;let _0x3895de={'raw':!![],'where':{'id':_0xc8d025['params']['id']}};const _0x473492={};return _0x473492[_0x28cfc2('0x0')]=_[_0x28cfc2('0x5')](db[_0x28cfc2('0x1a')][_0x28cfc2('0x13')]),_0x473492[_0x28cfc2('0x27')]=_[_0x28cfc2('0x5')](_0xc8d025['query']),_0x473492[_0x28cfc2('0x11')]=_['intersection'](_0x473492[_0x28cfc2('0x0')],_0x473492[_0x28cfc2('0x27')]),_0x3895de[_0x28cfc2('0x1b')]=_['intersection'](_0x473492[_0x28cfc2('0x0')],qs[_0x28cfc2('0xc')](_0xc8d025['query'][_0x28cfc2('0xc')])),_0x3895de[_0x28cfc2('0x1b')]=_0x3895de[_0x28cfc2('0x1b')][_0x28cfc2('0x2c')]?_0x3895de[_0x28cfc2('0x1b')]:_0x473492[_0x28cfc2('0x0')],_0xc8d025[_0x28cfc2('0x27')][_0x28cfc2('0x14')]&&(_0x3895de[_0x28cfc2('0x8')]=[{'all':!![]}]),_0x3895de=_[_0x28cfc2('0x1c')]({},_0x3895de,_0xc8d025[_0x28cfc2('0x3')]),db[_0x28cfc2('0x1a')][_0x28cfc2('0x1f')](_0x3895de)['then'](handleEntityNotFound(_0x3559fe,null))[_0x28cfc2('0x2d')](respondWithResult(_0x3559fe,null))['catch'](handleError(_0x3559fe,null));},exports[_0x10cf0a('0x25')]=function(_0x5ea7a5,_0x13ec60){const _0xbf95c2=_0x10cf0a;return db['SquareReport'][_0xbf95c2('0x25')](_0x5ea7a5[_0xbf95c2('0x2f')],{})[_0xbf95c2('0x2d')](respondWithResult(_0x13ec60,0xc9))[_0xbf95c2('0x12')](handleError(_0x13ec60,null));},exports['update']=function(_0xcdb70a,_0x3c4545){const _0x229580=_0x10cf0a;return _0xcdb70a[_0x229580('0x2f')]['id']&&delete _0xcdb70a['body']['id'],db[_0x229580('0x1a')][_0x229580('0x1f')]({'where':{'id':_0xcdb70a['params']['id']}})[_0x229580('0x2d')](handleEntityNotFound(_0x3c4545,null))[_0x229580('0x2d')](saveUpdates(_0xcdb70a[_0x229580('0x2f')],null))[_0x229580('0x2d')](respondWithResult(_0x3c4545,null))[_0x229580('0x12')](handleError(_0x3c4545,null));},exports[_0x10cf0a('0x1e')]=function(_0x2d5a97,_0x370509){const _0x85e6f7=_0x10cf0a;return db[_0x85e6f7('0x1a')][_0x85e6f7('0x1f')]({'where':{'id':_0x2d5a97[_0x85e6f7('0xf')]['id']}})['then'](handleEntityNotFound(_0x370509,null))['then'](removeEntity(_0x370509,null))['catch'](handleError(_0x370509,null));},exports[_0x10cf0a('0x26')]=function(_0x366ec1,_0x1d85f6){const _0x354fe5=_0x10cf0a;return db[_0x354fe5('0x1a')][_0x354fe5('0x26')]()[_0x354fe5('0x2d')](respondWithResult(_0x1d85f6,null))['catch'](handleError(_0x1d85f6,null));}; \ No newline at end of file +const a730_0x2b5d=['../../components/parsers/qs','sort','rawAttributes','json','where','includeAll','sendStatus','params','../../mysqldb','include','catch','map','update','Content-Range','../../config/logger','model','type','like','create','length','merge','order','body','offset','index','fieldName','send','rows','end','set','api','intersection','error','status','filters','query','fields','pick','filter','undefined','count','describe','keys','SquareReport','options','show','name','findOne','stack','nolimit','attributes','limit','then','destroy','findAll'];(function(_0xf3ed9f,_0x300499){const _0x2b5d24=function(_0x365400){while(--_0x365400){_0xf3ed9f['push'](_0xf3ed9f['shift']());}};_0x2b5d24(++_0x300499);}(a730_0x2b5d,0x1ba));const a730_0x3654=function(_0xf3ed9f,_0x300499){_0xf3ed9f=_0xf3ed9f-0xa4;let _0x2b5d24=a730_0x2b5d[_0xf3ed9f];return _0x2b5d24;};const a730_0x20e89e=a730_0x3654;'use strict';const _=require('lodash'),qs=require(a730_0x20e89e(0xd9)),logger=require(a730_0x20e89e(0xb0))(a730_0x20e89e(0xc0)),{db}=require(a730_0x20e89e(0xaa)),{Op}=require('sequelize');function respondWithResult(_0x37a20c,_0x22aeba){return _0x22aeba=_0x22aeba||0xc8,function(_0x45551e){const _0x1dc184=a730_0x3654;if(_0x45551e)return _0x37a20c[_0x1dc184(0xc3)](_0x22aeba)['json'](_0x45551e);};}function respondWithFilteredResult(_0x1546d4,_0x39cf2d){return function(_0x5af2c9){const _0x76bb43=a730_0x3654;if(_0x5af2c9){const _0x2b451e=_0x5af2c9[_0x76bb43(0xca)],_0x4f129d=_0x39cf2d['offset'];let _0x2705be=_0x39cf2d['offset']+_0x39cf2d[_0x76bb43(0xd5)],_0x54bb04;return _0x2705be>=_0x2b451e?(_0x2705be=_0x2b451e,_0x54bb04=0xc8):_0x54bb04=0xce,_0x1546d4[_0x76bb43(0xc3)](_0x54bb04),_0x1546d4[_0x76bb43(0xbf)](_0x76bb43(0xaf),_0x4f129d+'-'+_0x2705be+'/'+_0x2b451e)[_0x76bb43(0xa5)](_0x5af2c9);}return null;};}function saveUpdates(_0x4e4c89){return function(_0x4392ce){const _0xe60547=a730_0x3654;if(_0x4392ce)return _0x4392ce[_0xe60547(0xae)](_0x4e4c89)[_0xe60547(0xd6)](function(_0x40f52e){return _0x40f52e;});return null;};}function removeEntity(_0x5b125c){return function(_0x529a91){const _0x189660=a730_0x3654;if(_0x529a91)return _0x529a91['destroy']()[_0x189660(0xd6)](function(){const _0xf4d79f=_0x189660;_0x5b125c['status'](0xcc)[_0xf4d79f(0xbe)]();});};}function handleEntityNotFound(_0xcab581){return function(_0x3f7647){const _0x2e9750=a730_0x3654;return!_0x3f7647&&_0xcab581[_0x2e9750(0xa8)](0x194),_0x3f7647;};}function handleError(_0x458cd6,_0x3b5e78){return _0x3b5e78=_0x3b5e78||0x1f4,function(_0x7f5baf){const _0x53c3a2=a730_0x3654;logger[_0x53c3a2(0xc2)](_0x7f5baf[_0x53c3a2(0xd2)]),_0x7f5baf[_0x53c3a2(0xd0)]&&delete _0x7f5baf['name'],_0x458cd6[_0x53c3a2(0xc3)](_0x3b5e78)[_0x53c3a2(0xbc)](_0x7f5baf);};}exports[a730_0x20e89e(0xba)]=function(_0x28434d,_0x1a762b){const _0x5a5caf=a730_0x20e89e;let _0x4d487a={};const _0x156913={},_0x1f9451={'count':0x0,'rows':[]},_0x51d19b=_[_0x5a5caf(0xad)](db[_0x5a5caf(0xcd)][_0x5a5caf(0xa4)],function(_0x4cb7a9){const _0x1945d3=_0x5a5caf;return{'name':_0x4cb7a9[_0x1945d3(0xbb)],'type':_0x4cb7a9['type']['key']};});_0x156913[_0x5a5caf(0xb1)]=_[_0x5a5caf(0xad)](_0x51d19b,'name'),_0x156913[_0x5a5caf(0xc5)]=_[_0x5a5caf(0xcc)](_0x28434d[_0x5a5caf(0xc5)]),_0x156913[_0x5a5caf(0xc4)]=_[_0x5a5caf(0xc1)](_0x156913[_0x5a5caf(0xb1)],_0x156913[_0x5a5caf(0xc5)]),_0x4d487a['attributes']=_[_0x5a5caf(0xc1)](_0x156913[_0x5a5caf(0xb1)],qs[_0x5a5caf(0xc6)](_0x28434d['query']['fields'])),_0x4d487a[_0x5a5caf(0xd4)]=_0x4d487a[_0x5a5caf(0xd4)][_0x5a5caf(0xb5)]?_0x4d487a['attributes']:_0x156913['model'];typeof _0x28434d['query'][_0x5a5caf(0xd3)]===_0x5a5caf(0xc9)&&(_0x4d487a[_0x5a5caf(0xd5)]=qs[_0x5a5caf(0xd5)](_0x28434d[_0x5a5caf(0xc5)][_0x5a5caf(0xd5)]),_0x4d487a['offset']=qs[_0x5a5caf(0xb9)](_0x28434d[_0x5a5caf(0xc5)]['offset']));_0x4d487a[_0x5a5caf(0xb7)]=qs[_0x5a5caf(0xda)](_0x28434d[_0x5a5caf(0xc5)]['sort']),_0x4d487a[_0x5a5caf(0xa6)]=qs[_0x5a5caf(0xc4)](_[_0x5a5caf(0xc7)](_0x28434d[_0x5a5caf(0xc5)],_0x156913[_0x5a5caf(0xc4)]),_0x51d19b);_0x28434d[_0x5a5caf(0xc5)][_0x5a5caf(0xc8)]&&(_0x4d487a[_0x5a5caf(0xa6)]=_['merge'](_0x4d487a[_0x5a5caf(0xa6)],{[Op['or']]:_['map'](_0x51d19b,function(_0x55e9c8){const _0x4909bb=_0x5a5caf;if(_0x55e9c8[_0x4909bb(0xb2)]!=='VIRTUAL'){const _0x2e319d={};return _0x2e319d[_0x55e9c8[_0x4909bb(0xd0)]]={[Op[_0x4909bb(0xb3)]]:'%'+_0x28434d[_0x4909bb(0xc5)]['filter']+'%'},_0x2e319d;}})}));_0x4d487a=_[_0x5a5caf(0xb6)]({},_0x4d487a,_0x28434d[_0x5a5caf(0xce)]);const _0x1773b5={'where':_0x4d487a['where']};return db[_0x5a5caf(0xcd)][_0x5a5caf(0xca)](_0x1773b5)['then'](function(_0x3c2743){const _0x4e7aa9=_0x5a5caf;return _0x1f9451[_0x4e7aa9(0xca)]=_0x3c2743,_0x28434d['query']['includeAll']&&(_0x4d487a[_0x4e7aa9(0xab)]=[{'all':!![]}]),db[_0x4e7aa9(0xcd)][_0x4e7aa9(0xd8)](_0x4d487a);})[_0x5a5caf(0xd6)](function(_0x570107){const _0x51c032=_0x5a5caf;return _0x1f9451[_0x51c032(0xbd)]=_0x570107,_0x1f9451;})[_0x5a5caf(0xd6)](respondWithFilteredResult(_0x1a762b,_0x4d487a))[_0x5a5caf(0xac)](handleError(_0x1a762b,null));},exports[a730_0x20e89e(0xcf)]=function(_0x5df3c1,_0x2448ca){const _0x470521=a730_0x20e89e;let _0x470fc1={'raw':!![],'where':{'id':_0x5df3c1[_0x470521(0xa9)]['id']}};const _0x35f975={};return _0x35f975[_0x470521(0xb1)]=_[_0x470521(0xcc)](db['SquareReport'][_0x470521(0xa4)]),_0x35f975[_0x470521(0xc5)]=_['keys'](_0x5df3c1[_0x470521(0xc5)]),_0x35f975[_0x470521(0xc4)]=_[_0x470521(0xc1)](_0x35f975[_0x470521(0xb1)],_0x35f975['query']),_0x470fc1['attributes']=_['intersection'](_0x35f975[_0x470521(0xb1)],qs['fields'](_0x5df3c1[_0x470521(0xc5)][_0x470521(0xc6)])),_0x470fc1['attributes']=_0x470fc1['attributes'][_0x470521(0xb5)]?_0x470fc1['attributes']:_0x35f975[_0x470521(0xb1)],_0x5df3c1[_0x470521(0xc5)][_0x470521(0xa7)]&&(_0x470fc1[_0x470521(0xab)]=[{'all':!![]}]),_0x470fc1=_['merge']({},_0x470fc1,_0x5df3c1['options']),db[_0x470521(0xcd)]['findOne'](_0x470fc1)[_0x470521(0xd6)](handleEntityNotFound(_0x2448ca,null))[_0x470521(0xd6)](respondWithResult(_0x2448ca,null))['catch'](handleError(_0x2448ca,null));},exports[a730_0x20e89e(0xb4)]=function(_0xc3f46,_0x3645a3){const _0x15b762=a730_0x20e89e;return db[_0x15b762(0xcd)][_0x15b762(0xb4)](_0xc3f46[_0x15b762(0xb8)],{})[_0x15b762(0xd6)](respondWithResult(_0x3645a3,0xc9))[_0x15b762(0xac)](handleError(_0x3645a3,null));},exports[a730_0x20e89e(0xae)]=function(_0x2d11c7,_0x109e01){const _0xe0a53e=a730_0x20e89e;return _0x2d11c7[_0xe0a53e(0xb8)]['id']&&delete _0x2d11c7[_0xe0a53e(0xb8)]['id'],db['SquareReport']['findOne']({'where':{'id':_0x2d11c7[_0xe0a53e(0xa9)]['id']}})[_0xe0a53e(0xd6)](handleEntityNotFound(_0x109e01,null))[_0xe0a53e(0xd6)](saveUpdates(_0x2d11c7['body'],null))[_0xe0a53e(0xd6)](respondWithResult(_0x109e01,null))['catch'](handleError(_0x109e01,null));},exports[a730_0x20e89e(0xd7)]=function(_0x2f4267,_0x4e8732){const _0x6b294a=a730_0x20e89e;return db[_0x6b294a(0xcd)][_0x6b294a(0xd1)]({'where':{'id':_0x2f4267['params']['id']}})[_0x6b294a(0xd6)](handleEntityNotFound(_0x4e8732,null))[_0x6b294a(0xd6)](removeEntity(_0x4e8732,null))[_0x6b294a(0xac)](handleError(_0x4e8732,null));},exports[a730_0x20e89e(0xcb)]=function(_0x38ab38,_0x2de476){const _0x5255f3=a730_0x20e89e;return db['SquareReport'][_0x5255f3(0xcb)]()['then'](respondWithResult(_0x2de476,null))[_0x5255f3(0xac)](handleError(_0x2de476,null));}; \ No newline at end of file diff --git a/server/api/squareReport/squareReport.model.js b/server/api/squareReport/squareReport.model.js index 1db04fc..b01f654 100644 --- a/server/api/squareReport/squareReport.model.js +++ b/server/api/squareReport/squareReport.model.js @@ -1 +1 @@ -const a611_0x4229=['uid_pname','report_square','leaveAt','uniqueid','./squareReport.attributes','project_name','define','SquareReport','exports'];(function(_0x4b6b58,_0x42298d){const _0x490cd8=function(_0x491065){while(--_0x491065){_0x4b6b58['push'](_0x4b6b58['shift']());}};_0x490cd8(++_0x42298d);}(a611_0x4229,0x167));const a611_0x490c=function(_0x4b6b58,_0x42298d){_0x4b6b58=_0x4b6b58-0x0;let _0x490cd8=a611_0x4229[_0x4b6b58];return _0x490cd8;};const _0x11d630=a611_0x490c;'use strict';const attributes=require(_0x11d630('0x5'));module[_0x11d630('0x0')]=function(_0x491065){const _0xf1ff5b=_0x11d630,_0x6f944e=_0x491065[_0xf1ff5b('0x7')](_0xf1ff5b('0x8'),attributes,{'tableName':_0xf1ff5b('0x2'),'paranoid':![],'indexes':[{'name':_0xf1ff5b('0x1'),'fields':[_0xf1ff5b('0x4'),_0xf1ff5b('0x6')]},{'name':_0xf1ff5b('0x3'),'fields':[_0xf1ff5b('0x3')]}],'timestamps':!![]});return _0x6f944e;}; \ No newline at end of file +const a731_0x393c=['sequelize','SquareReport','exports','./squareReport.options','init'];(function(_0x3980f1,_0x441867){const _0x393cb2=function(_0x2b9781){while(--_0x2b9781){_0x3980f1['push'](_0x3980f1['shift']());}};_0x393cb2(++_0x441867);}(a731_0x393c,0x11b));const a731_0x2b97=function(_0x3980f1,_0x441867){_0x3980f1=_0x3980f1-0x11f;let _0x393cb2=a731_0x393c[_0x3980f1];return _0x393cb2;};const a731_0x38e2af=a731_0x2b97;'use strict';const {Model}=require(a731_0x38e2af(0x121)),{attributes}=require('./squareReport.attributes'),{options}=require(a731_0x38e2af(0x11f));class SquareReport extends Model{}function init(_0x3f7e19,_0x186955){const _0x4385b2=a731_0x38e2af,_0x4fb04a=options(_0x3f7e19),_0x36d12f=typeof _0x186955==='function'?_0x186955(_0x4fb04a):_0x4fb04a;return SquareReport[_0x4385b2(0x120)](attributes,_0x36d12f),SquareReport;}module[a731_0x38e2af(0x123)][a731_0x38e2af(0x122)]=SquareReport,module[a731_0x38e2af(0x123)][a731_0x38e2af(0x120)]=init; \ No newline at end of file diff --git a/server/api/squareReport/squareReport.options.js b/server/api/squareReport/squareReport.options.js new file mode 100644 index 0000000..abdbced --- /dev/null +++ b/server/api/squareReport/squareReport.options.js @@ -0,0 +1 @@ +var a732_0x2ca2=['exports','leaveAt','project_name','options','uniqueid'];(function(_0x506ec2,_0x444dfa){var _0x2ca2f2=function(_0xc6170a){while(--_0xc6170a){_0x506ec2['push'](_0x506ec2['shift']());}};_0x2ca2f2(++_0x444dfa);}(a732_0x2ca2,0x1c0));var a732_0xc617=function(_0x506ec2,_0x444dfa){_0x506ec2=_0x506ec2-0xb6;var _0x2ca2f2=a732_0x2ca2[_0x506ec2];return _0x2ca2f2;};var a732_0xdffb94=a732_0xc617;function options(_0x5011ca){var _0x215d6c=a732_0xc617;return{'sequelize':_0x5011ca,'tableName':'report_square','paranoid':![],'indexes':[{'name':'uid_pname','fields':[_0x215d6c(0xb7),_0x215d6c(0xba)]},{'name':'leaveAt','fields':[_0x215d6c(0xb9)]}],'timestamps':!![]};}module[a732_0xdffb94(0xb8)][a732_0xdffb94(0xb6)]=options; \ No newline at end of file diff --git a/server/api/squareReport/squareReport.rpc.js b/server/api/squareReport/squareReport.rpc.js index dc7125e..ef9a4ea 100644 --- a/server/api/squareReport/squareReport.rpc.js +++ b/server/api/squareReport/squareReport.rpc.js @@ -1 +1 @@ -const a612_0x48e2=['../../config/logger','create','options','debug','catch','where','attributes','message','error','rpc','UpdateSquareReport','SquareReport','../../mysqldb','then','info','update','raw','limit','CreateSquareReport'];(function(_0x55b6dd,_0x48e276){const _0x1207c1=function(_0x25154b){while(--_0x25154b){_0x55b6dd['push'](_0x55b6dd['shift']());}};_0x1207c1(++_0x48e276);}(a612_0x48e2,0x7e));const a612_0x1207=function(_0x55b6dd,_0x48e276){_0x55b6dd=_0x55b6dd-0x0;let _0x1207c1=a612_0x48e2[_0x55b6dd];return _0x1207c1;};const _0x4749fd=a612_0x1207;'use strict';const db=require(_0x4749fd('0x0'))['db'],logger=require(_0x4749fd('0x7'))(_0x4749fd('0x10'));exports[_0x4749fd('0x6')]=function(_0x25154b){const _0x5b02d6=this;return new Promise(function(_0x5f0b62,_0x16541e){const _0x56762b=a612_0x1207;return db[_0x56762b('0x12')][_0x56762b('0x8')](_0x25154b['body'],{'raw':_0x25154b[_0x56762b('0x9')]?_0x25154b['options'][_0x56762b('0x4')]===undefined?!![]:![]:!![]})[_0x56762b('0x1')](function(_0x1e9e74){const _0x31a238=_0x56762b;logger[_0x31a238('0x2')](_0x31a238('0x6'),_0x25154b),logger[_0x31a238('0xa')](_0x31a238('0x6'),_0x25154b,JSON['stringify'](_0x1e9e74)),_0x5f0b62(_0x1e9e74);})[_0x56762b('0xb')](function(_0x44bd33){const _0x4d24a9=_0x56762b;logger[_0x4d24a9('0xf')](_0x4d24a9('0x6'),_0x44bd33[_0x4d24a9('0xe')],_0x25154b),_0x16541e(_0x5b02d6[_0x4d24a9('0xf')](0x1f4,_0x44bd33[_0x4d24a9('0xe')]));});});},exports['UpdateSquareReport']=function(_0x4edd5a){const _0x2ecf90=this;return new Promise(function(_0x4bf0b7,_0x522c62){const _0x18689d=a612_0x1207;return db[_0x18689d('0x12')][_0x18689d('0x3')](_0x4edd5a['body'],{'raw':_0x4edd5a[_0x18689d('0x9')]?_0x4edd5a[_0x18689d('0x9')][_0x18689d('0x4')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x4edd5a[_0x18689d('0x9')]?_0x4edd5a[_0x18689d('0x9')][_0x18689d('0xc')]||null:null,'attributes':_0x4edd5a[_0x18689d('0x9')]?_0x4edd5a[_0x18689d('0x9')][_0x18689d('0xd')]||null:null,'limit':_0x4edd5a[_0x18689d('0x9')]?_0x4edd5a[_0x18689d('0x9')][_0x18689d('0x5')]||null:null})[_0x18689d('0x1')](function(_0x110b18){const _0x5e8b4a=_0x18689d;logger['info'](_0x5e8b4a('0x11'),_0x4edd5a),logger[_0x5e8b4a('0xa')]('UpdateSquareReport',_0x4edd5a,JSON['stringify'](_0x110b18)),_0x4bf0b7(_0x110b18);})['catch'](function(_0x77056c){const _0x336602=_0x18689d;logger[_0x336602('0xf')](_0x336602('0x11'),_0x77056c[_0x336602('0xe')],_0x4edd5a),_0x522c62(_0x2ecf90[_0x336602('0xf')](0x1f4,_0x77056c['message']));});});}; \ No newline at end of file +const a733_0x2055=['then','SquareReport','CreateSquareReport','info','../../mysqldb','where','limit','options','raw','create','UpdateSquareReport','error','../../config/logger','debug','message','body','update','rpc','stringify'];(function(_0x583778,_0x334a64){const _0x2055ba=function(_0x9ea8c5){while(--_0x9ea8c5){_0x583778['push'](_0x583778['shift']());}};_0x2055ba(++_0x334a64);}(a733_0x2055,0x19d));const a733_0x9ea8=function(_0x583778,_0x334a64){_0x583778=_0x583778-0x16e;let _0x2055ba=a733_0x2055[_0x583778];return _0x2055ba;};const a733_0x1e6de2=a733_0x9ea8;'use strict';const db=require(a733_0x1e6de2(0x177))['db'],logger=require(a733_0x1e6de2(0x17f))(a733_0x1e6de2(0x171));exports['CreateSquareReport']=function(_0x19bda9){const _0x5097d6=this;return new Promise(function(_0x5cb2ac,_0x3ad94a){const _0x1bef1b=a733_0x9ea8;return db[_0x1bef1b(0x174)][_0x1bef1b(0x17c)](_0x19bda9[_0x1bef1b(0x16f)],{'raw':_0x19bda9[_0x1bef1b(0x17a)]?_0x19bda9[_0x1bef1b(0x17a)]['raw']===undefined?!![]:![]:!![]})[_0x1bef1b(0x173)](function(_0x44c218){const _0x194325=_0x1bef1b;logger[_0x194325(0x176)]('CreateSquareReport',_0x19bda9),logger[_0x194325(0x180)](_0x194325(0x175),_0x19bda9,JSON['stringify'](_0x44c218)),_0x5cb2ac(_0x44c218);})['catch'](function(_0x42f720){const _0x1e3c2e=_0x1bef1b;logger['error']('CreateSquareReport',_0x42f720['message'],_0x19bda9),_0x3ad94a(_0x5097d6[_0x1e3c2e(0x17e)](0x1f4,_0x42f720[_0x1e3c2e(0x16e)]));});});},exports[a733_0x1e6de2(0x17d)]=function(_0x5042c0){const _0x5cfd86=this;return new Promise(function(_0x2bcb1a,_0x982f69){const _0xe138f=a733_0x9ea8;return db[_0xe138f(0x174)][_0xe138f(0x170)](_0x5042c0[_0xe138f(0x16f)],{'raw':_0x5042c0[_0xe138f(0x17a)]?_0x5042c0['options'][_0xe138f(0x17b)]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x5042c0['options']?_0x5042c0[_0xe138f(0x17a)][_0xe138f(0x178)]||null:null,'attributes':_0x5042c0[_0xe138f(0x17a)]?_0x5042c0['options']['attributes']||null:null,'limit':_0x5042c0[_0xe138f(0x17a)]?_0x5042c0[_0xe138f(0x17a)][_0xe138f(0x179)]||null:null})[_0xe138f(0x173)](function(_0x45ddca){const _0x2657f0=_0xe138f;logger['info']('UpdateSquareReport',_0x5042c0),logger['debug']('UpdateSquareReport',_0x5042c0,JSON[_0x2657f0(0x172)](_0x45ddca)),_0x2bcb1a(_0x45ddca);})['catch'](function(_0x1b92ab){const _0x6f11bb=_0xe138f;logger[_0x6f11bb(0x17e)](_0x6f11bb(0x17d),_0x1b92ab[_0x6f11bb(0x16e)],_0x5042c0),_0x982f69(_0x5cfd86['error'](0x1f4,_0x1b92ab[_0x6f11bb(0x16e)]));});});}; \ No newline at end of file diff --git a/server/api/squareReportDetail/index.js b/server/api/squareReportDetail/index.js index 15c1a59..c15df6c 100644 --- a/server/api/squareReportDetail/index.js +++ b/server/api/squareReportDetail/index.js @@ -1 +1 @@ -const a613_0x5a80=['isAuthenticated','get','./squareReportDetail.controller','express','/:id','post','update','delete','describe','put','create','../../components/auth/service','index','destroy','/describe','exports','show'];(function(_0x296cdb,_0x5a8012){const _0x59096a=function(_0x336d37){while(--_0x336d37){_0x296cdb['push'](_0x296cdb['shift']());}};_0x59096a(++_0x5a8012);}(a613_0x5a80,0x1e5));const a613_0x5909=function(_0x296cdb,_0x5a8012){_0x296cdb=_0x296cdb-0x0;let _0x59096a=a613_0x5a80[_0x296cdb];return _0x59096a;};const _0x3ec7c0=a613_0x5909;'use strict';const express=require(_0x3ec7c0('0xb')),router=express['Router'](),auth=require(_0x3ec7c0('0x2')),controller=require(_0x3ec7c0('0xa'));router[_0x3ec7c0('0x9')]('/',auth[_0x3ec7c0('0x8')](),controller[_0x3ec7c0('0x3')]),router[_0x3ec7c0('0x9')](_0x3ec7c0('0x5'),auth['isAuthenticated'](),controller[_0x3ec7c0('0x10')]),router[_0x3ec7c0('0x9')]('/:id',auth['isAuthenticated'](),controller[_0x3ec7c0('0x7')]),router[_0x3ec7c0('0xd')]('/',auth[_0x3ec7c0('0x8')](),controller[_0x3ec7c0('0x1')]),router[_0x3ec7c0('0x0')](_0x3ec7c0('0xc'),auth[_0x3ec7c0('0x8')](),controller[_0x3ec7c0('0xe')]),router[_0x3ec7c0('0xf')](_0x3ec7c0('0xc'),auth['isAuthenticated'](),controller[_0x3ec7c0('0x4')]),module[_0x3ec7c0('0x6')]=router; \ No newline at end of file +const a734_0x2ecf=['get','put','isAuthenticated','update','/:id','post','../../components/auth/service','describe','./squareReportDetail.controller','Router','/describe','exports','index','create','delete','express'];(function(_0x2e27d3,_0x2ef37b){const _0x2ecf50=function(_0x51d819){while(--_0x51d819){_0x2e27d3['push'](_0x2e27d3['shift']());}};_0x2ecf50(++_0x2ef37b);}(a734_0x2ecf,0x103));const a734_0x51d8=function(_0x2e27d3,_0x2ef37b){_0x2e27d3=_0x2e27d3-0x1d7;let _0x2ecf50=a734_0x2ecf[_0x2e27d3];return _0x2ecf50;};const a734_0x20ada5=a734_0x51d8;'use strict';const express=require(a734_0x20ada5(0x1e3)),router=express[a734_0x20ada5(0x1dd)](),auth=require(a734_0x20ada5(0x1da)),controller=require(a734_0x20ada5(0x1dc));router['get']('/',auth[a734_0x20ada5(0x1e6)](),controller[a734_0x20ada5(0x1e0)]),router[a734_0x20ada5(0x1e4)](a734_0x20ada5(0x1de),auth['isAuthenticated'](),controller[a734_0x20ada5(0x1db)]),router[a734_0x20ada5(0x1e4)]('/:id',auth[a734_0x20ada5(0x1e6)](),controller['show']),router[a734_0x20ada5(0x1d9)]('/',auth[a734_0x20ada5(0x1e6)](),controller[a734_0x20ada5(0x1e1)]),router[a734_0x20ada5(0x1e5)](a734_0x20ada5(0x1d8),auth[a734_0x20ada5(0x1e6)](),controller[a734_0x20ada5(0x1d7)]),router[a734_0x20ada5(0x1e2)]('/:id',auth[a734_0x20ada5(0x1e6)](),controller['destroy']),module[a734_0x20ada5(0x1df)]=router; \ No newline at end of file diff --git a/server/api/squareReportDetail/squareReportDetail.attributes.js b/server/api/squareReportDetail/squareReportDetail.attributes.js index d004e10..1bf12e1 100644 --- a/server/api/squareReportDetail/squareReportDetail.attributes.js +++ b/server/api/squareReportDetail/squareReportDetail.attributes.js @@ -1 +1 @@ -const a614_0x3ec2=['exports','STRING'];(function(_0x784d61,_0x3ec252){const _0x3d174f=function(_0x49e1b4){while(--_0x49e1b4){_0x784d61['push'](_0x784d61['shift']());}};_0x3d174f(++_0x3ec252);}(a614_0x3ec2,0xad));const a614_0x3d17=function(_0x784d61,_0x3ec252){_0x784d61=_0x784d61-0x0;let _0x3d174f=a614_0x3ec2[_0x784d61];return _0x3d174f;};const _0x2c0fa1=a614_0x3d17;'use strict';const Sequelize=require('sequelize');module[_0x2c0fa1('0x1')]={'uniqueid':{'type':Sequelize['STRING']},'node':{'type':Sequelize[_0x2c0fa1('0x0')]},'application':{'type':Sequelize['STRING']},'data':{'type':Sequelize['TEXT']},'project_name':{'type':Sequelize[_0x2c0fa1('0x0')]},'callerid':{'type':Sequelize[_0x2c0fa1('0x0')]}}; \ No newline at end of file +const a735_0x5803=['STRING','TEXT','attributes','exports'];(function(_0x1367b5,_0x18e631){const _0x580326=function(_0x3f1b66){while(--_0x3f1b66){_0x1367b5['push'](_0x1367b5['shift']());}};_0x580326(++_0x18e631);}(a735_0x5803,0x10c));const a735_0x3f1b=function(_0x1367b5,_0x18e631){_0x1367b5=_0x1367b5-0x82;let _0x580326=a735_0x5803[_0x1367b5];return _0x580326;};const a735_0x65844d=a735_0x3f1b;'use strict';const {DataTypes}=require('sequelize'),attributes={'uniqueid':{'type':DataTypes[a735_0x65844d(0x82)]},'node':{'type':DataTypes[a735_0x65844d(0x82)]},'application':{'type':DataTypes[a735_0x65844d(0x82)]},'data':{'type':DataTypes[a735_0x65844d(0x83)]},'project_name':{'type':DataTypes[a735_0x65844d(0x82)]},'callerid':{'type':DataTypes[a735_0x65844d(0x82)]}};module[a735_0x65844d(0x85)][a735_0x65844d(0x84)]=attributes; \ No newline at end of file diff --git a/server/api/squareReportDetail/squareReportDetail.controller.js b/server/api/squareReportDetail/squareReportDetail.controller.js index ec9979a..f8418c8 100644 --- a/server/api/squareReportDetail/squareReportDetail.controller.js +++ b/server/api/squareReportDetail/squareReportDetail.controller.js @@ -1 +1 @@ -const a615_0x4b1d=['show','catch','include','../../components/parsers/qs','stack','intersection','destroy','name','send','index','describe','keys','status','filters','options','offset','pick','set','SquareDetailsReport','update','query','map','end','merge','sendStatus','where','type','filter','json','like','findOne','create','includeAll','params','../../config/logger','then','error','Content-Range','attributes','model','../../mysqldb','undefined','VIRTUAL','fields','findAll','sort','body','rows','limit','rawAttributes','fieldName','count'];(function(_0x1823b0,_0x4b1d5a){const _0x131a61=function(_0x3c9c4c){while(--_0x3c9c4c){_0x1823b0['push'](_0x1823b0['shift']());}};_0x131a61(++_0x4b1d5a);}(a615_0x4b1d,0x133));const a615_0x131a=function(_0x1823b0,_0x4b1d5a){_0x1823b0=_0x1823b0-0x0;let _0x131a61=a615_0x4b1d[_0x1823b0];return _0x131a61;};const _0x4a1225=a615_0x131a;'use strict';const _=require('lodash'),qs=require(_0x4a1225('0x8')),logger=require(_0x4a1225('0x27'))('api'),db=require(_0x4a1225('0x2d'))['db'],{Op}=require('sequelize');function respondWithResult(_0x3c9c4c,_0xb66ff4){return _0xb66ff4=_0xb66ff4||0xc8,function(_0x4c09c6){const _0x13d439=a615_0x131a;if(_0x4c09c6)return _0x3c9c4c[_0x13d439('0x11')](_0xb66ff4)[_0x13d439('0x21')](_0x4c09c6);};}function respondWithFilteredResult(_0xa2f5ff,_0x9562b0){return function(_0x5bf2af){const _0x28310d=a615_0x131a;if(_0x5bf2af){const _0x241453=_0x5bf2af[_0x28310d('0x4')],_0x53d674=_0x9562b0['offset'];let _0x14839e=_0x9562b0[_0x28310d('0x14')]+_0x9562b0[_0x28310d('0x1')],_0x5e0486;return _0x14839e>=_0x241453?(_0x14839e=_0x241453,_0x5e0486=0xc8):_0x5e0486=0xce,_0xa2f5ff['status'](_0x5e0486),_0xa2f5ff[_0x28310d('0x16')](_0x28310d('0x2a'),_0x53d674+'-'+_0x14839e+'/'+_0x241453)['json'](_0x5bf2af);}return null;};}function saveUpdates(_0xaca90){return function(_0x14d2c9){const _0x357943=a615_0x131a;if(_0x14d2c9)return _0x14d2c9[_0x357943('0x18')](_0xaca90)[_0x357943('0x28')](function(_0x3bd123){return _0x3bd123;});return null;};}function removeEntity(_0x40c7a3){return function(_0x2c2efa){const _0x485616=a615_0x131a;if(_0x2c2efa)return _0x2c2efa['destroy']()[_0x485616('0x28')](function(){const _0x10c305=_0x485616;_0x40c7a3['status'](0xcc)[_0x10c305('0x1b')]();});};}function handleEntityNotFound(_0x3fd314){return function(_0x5d0d7f){const _0x1bf81f=a615_0x131a;return!_0x5d0d7f&&_0x3fd314[_0x1bf81f('0x1d')](0x194),_0x5d0d7f;};}function handleError(_0x39897b,_0x2fb73f){return _0x2fb73f=_0x2fb73f||0x1f4,function(_0x250454){const _0x18d8ef=a615_0x131a;logger[_0x18d8ef('0x29')](_0x250454[_0x18d8ef('0x9')]),_0x250454[_0x18d8ef('0xc')]&&delete _0x250454[_0x18d8ef('0xc')],_0x39897b[_0x18d8ef('0x11')](_0x2fb73f)[_0x18d8ef('0xd')](_0x250454);};}exports[_0x4a1225('0xe')]=function(_0x38a8f3,_0x31d276){const _0x424ca7=_0x4a1225;let _0x28a379={};const _0x1bf614={},_0x452148={'count':0x0,'rows':[]},_0x3e34e9=_[_0x424ca7('0x1a')](db[_0x424ca7('0x17')][_0x424ca7('0x2')],function(_0x42a539){const _0x1495e7=_0x424ca7;return{'name':_0x42a539[_0x1495e7('0x3')],'type':_0x42a539[_0x1495e7('0x1f')]['key']};});_0x1bf614['model']=_['map'](_0x3e34e9,_0x424ca7('0xc')),_0x1bf614['query']=_['keys'](_0x38a8f3[_0x424ca7('0x19')]),_0x1bf614['filters']=_['intersection'](_0x1bf614[_0x424ca7('0x2c')],_0x1bf614[_0x424ca7('0x19')]),_0x28a379['attributes']=_['intersection'](_0x1bf614[_0x424ca7('0x2c')],qs[_0x424ca7('0x30')](_0x38a8f3[_0x424ca7('0x19')][_0x424ca7('0x30')])),_0x28a379['attributes']=_0x28a379[_0x424ca7('0x2b')]['length']?_0x28a379[_0x424ca7('0x2b')]:_0x1bf614[_0x424ca7('0x2c')];typeof _0x38a8f3[_0x424ca7('0x19')]['nolimit']===_0x424ca7('0x2e')&&(_0x28a379[_0x424ca7('0x1')]=qs[_0x424ca7('0x1')](_0x38a8f3[_0x424ca7('0x19')][_0x424ca7('0x1')]),_0x28a379[_0x424ca7('0x14')]=qs[_0x424ca7('0x14')](_0x38a8f3['query'][_0x424ca7('0x14')]));_0x28a379['order']=qs[_0x424ca7('0x32')](_0x38a8f3[_0x424ca7('0x19')]['sort']),_0x28a379[_0x424ca7('0x1e')]=qs[_0x424ca7('0x12')](_[_0x424ca7('0x15')](_0x38a8f3[_0x424ca7('0x19')],_0x1bf614['filters']),_0x3e34e9);_0x38a8f3[_0x424ca7('0x19')]['filter']&&(_0x28a379['where']=_['merge'](_0x28a379[_0x424ca7('0x1e')],{[Op['or']]:_['map'](_0x3e34e9,function(_0x487e69){const _0x137417=_0x424ca7;if(_0x487e69[_0x137417('0x1f')]!==_0x137417('0x2f')){const _0x5bf637={};return _0x5bf637[_0x487e69[_0x137417('0xc')]]={[Op[_0x137417('0x22')]]:'%'+_0x38a8f3['query'][_0x137417('0x20')]+'%'},_0x5bf637;}})}));_0x28a379=_[_0x424ca7('0x1c')]({},_0x28a379,_0x38a8f3[_0x424ca7('0x13')]);const _0x675022={'where':_0x28a379[_0x424ca7('0x1e')]};return db['SquareDetailsReport'][_0x424ca7('0x4')](_0x675022)[_0x424ca7('0x28')](function(_0x3bfc3c){const _0x16cef6=_0x424ca7;return _0x452148[_0x16cef6('0x4')]=_0x3bfc3c,_0x38a8f3[_0x16cef6('0x19')]['includeAll']&&(_0x28a379[_0x16cef6('0x7')]=[{'all':!![]}]),db['SquareDetailsReport'][_0x16cef6('0x31')](_0x28a379);})[_0x424ca7('0x28')](function(_0x412b0f){const _0x4d122c=_0x424ca7;return _0x452148[_0x4d122c('0x0')]=_0x412b0f,_0x452148;})[_0x424ca7('0x28')](respondWithFilteredResult(_0x31d276,_0x28a379))[_0x424ca7('0x6')](handleError(_0x31d276,null));},exports[_0x4a1225('0x5')]=function(_0xcb129e,_0x547d78){const _0x2159f2=_0x4a1225;let _0x505e55={'raw':!![],'where':{'id':_0xcb129e['params']['id']}};const _0x2d2944={};return _0x2d2944[_0x2159f2('0x2c')]=_['keys'](db[_0x2159f2('0x17')][_0x2159f2('0x2')]),_0x2d2944['query']=_[_0x2159f2('0x10')](_0xcb129e['query']),_0x2d2944[_0x2159f2('0x12')]=_[_0x2159f2('0xa')](_0x2d2944['model'],_0x2d2944[_0x2159f2('0x19')]),_0x505e55[_0x2159f2('0x2b')]=_[_0x2159f2('0xa')](_0x2d2944['model'],qs[_0x2159f2('0x30')](_0xcb129e[_0x2159f2('0x19')]['fields'])),_0x505e55['attributes']=_0x505e55[_0x2159f2('0x2b')]['length']?_0x505e55[_0x2159f2('0x2b')]:_0x2d2944['model'],_0xcb129e[_0x2159f2('0x19')][_0x2159f2('0x25')]&&(_0x505e55['include']=[{'all':!![]}]),_0x505e55=_['merge']({},_0x505e55,_0xcb129e[_0x2159f2('0x13')]),db[_0x2159f2('0x17')][_0x2159f2('0x23')](_0x505e55)[_0x2159f2('0x28')](handleEntityNotFound(_0x547d78,null))['then'](respondWithResult(_0x547d78,null))[_0x2159f2('0x6')](handleError(_0x547d78,null));},exports[_0x4a1225('0x24')]=function(_0x38dcb1,_0x4d7af0){const _0x3e3351=_0x4a1225;return db[_0x3e3351('0x17')][_0x3e3351('0x24')](_0x38dcb1[_0x3e3351('0x33')],{})[_0x3e3351('0x28')](respondWithResult(_0x4d7af0,0xc9))[_0x3e3351('0x6')](handleError(_0x4d7af0,null));},exports[_0x4a1225('0x18')]=function(_0x57eed3,_0x3fe261){const _0xc2d837=_0x4a1225;return _0x57eed3['body']['id']&&delete _0x57eed3[_0xc2d837('0x33')]['id'],db[_0xc2d837('0x17')][_0xc2d837('0x23')]({'where':{'id':_0x57eed3[_0xc2d837('0x26')]['id']}})[_0xc2d837('0x28')](handleEntityNotFound(_0x3fe261,null))['then'](saveUpdates(_0x57eed3['body'],null))[_0xc2d837('0x28')](respondWithResult(_0x3fe261,null))[_0xc2d837('0x6')](handleError(_0x3fe261,null));},exports[_0x4a1225('0xb')]=function(_0xb9df26,_0x4aef58){const _0x3953bc=_0x4a1225;return db['SquareDetailsReport'][_0x3953bc('0x23')]({'where':{'id':_0xb9df26[_0x3953bc('0x26')]['id']}})[_0x3953bc('0x28')](handleEntityNotFound(_0x4aef58,null))[_0x3953bc('0x28')](removeEntity(_0x4aef58,null))[_0x3953bc('0x6')](handleError(_0x4aef58,null));},exports[_0x4a1225('0xf')]=function(_0x25a4fa,_0xbcfd6e){const _0x108dc6=_0x4a1225;return db[_0x108dc6('0x17')][_0x108dc6('0xf')]()[_0x108dc6('0x28')](respondWithResult(_0xbcfd6e,null))[_0x108dc6('0x6')](handleError(_0xbcfd6e,null));}; \ No newline at end of file +const a736_0x4680=['intersection','send','map','pick','../../config/logger','filters','json','../../mysqldb','update','show','VIRTUAL','destroy','length','order','merge','key','describe','offset','status','includeAll','query','params','findOne','include','Content-Range','name','body','filter','undefined','stack','rows','options','keys','sort','../../components/parsers/qs','model','fields','SquareDetailsReport','catch','set','then','count','limit','where','create','index','attributes','type'];(function(_0x58b4e8,_0x4c6a65){const _0x46809f=function(_0x253308){while(--_0x253308){_0x58b4e8['push'](_0x58b4e8['shift']());}};_0x46809f(++_0x4c6a65);}(a736_0x4680,0xda));const a736_0x2533=function(_0x58b4e8,_0x4c6a65){_0x58b4e8=_0x58b4e8-0x1ac;let _0x46809f=a736_0x4680[_0x58b4e8];return _0x46809f;};const a736_0x36e3ef=a736_0x2533;'use strict';const _=require('lodash'),qs=require(a736_0x36e3ef(0x1b4)),logger=require(a736_0x36e3ef(0x1c6))('api'),{db}=require(a736_0x36e3ef(0x1c9)),{Op}=require('sequelize');function respondWithResult(_0x3ea299,_0xa28d33){return _0xa28d33=_0xa28d33||0xc8,function(_0xc79797){const _0x387fb4=a736_0x2533;if(_0xc79797)return _0x3ea299[_0x387fb4(0x1d4)](_0xa28d33)[_0x387fb4(0x1c8)](_0xc79797);};}function respondWithFilteredResult(_0x1bf7c5,_0x12d5e4){return function(_0x8932d6){const _0x131bf5=a736_0x2533;if(_0x8932d6){const _0x30ba3e=_0x8932d6['count'],_0xc2196e=_0x12d5e4[_0x131bf5(0x1d3)];let _0x264d6a=_0x12d5e4[_0x131bf5(0x1d3)]+_0x12d5e4[_0x131bf5(0x1bc)],_0x1a46f7;return _0x264d6a>=_0x30ba3e?(_0x264d6a=_0x30ba3e,_0x1a46f7=0xc8):_0x1a46f7=0xce,_0x1bf7c5['status'](_0x1a46f7),_0x1bf7c5[_0x131bf5(0x1b9)](_0x131bf5(0x1da),_0xc2196e+'-'+_0x264d6a+'/'+_0x30ba3e)[_0x131bf5(0x1c8)](_0x8932d6);}return null;};}function saveUpdates(_0xf950c3){return function(_0x3c58d6){const _0x41c69b=a736_0x2533;if(_0x3c58d6)return _0x3c58d6['update'](_0xf950c3)[_0x41c69b(0x1ba)](function(_0x48ebca){return _0x48ebca;});return null;};}function removeEntity(_0x11674e){return function(_0x2745ba){const _0x34fb60=a736_0x2533;if(_0x2745ba)return _0x2745ba[_0x34fb60(0x1cd)]()['then'](function(){_0x11674e['status'](0xcc)['end']();});};}function handleEntityNotFound(_0x42e835){return function(_0x3f0798){return!_0x3f0798&&_0x42e835['sendStatus'](0x194),_0x3f0798;};}function handleError(_0x296472,_0x5cc7bf){return _0x5cc7bf=_0x5cc7bf||0x1f4,function(_0x29869d){const _0x574576=a736_0x2533;logger['error'](_0x29869d[_0x574576(0x1af)]),_0x29869d['name']&&delete _0x29869d[_0x574576(0x1db)],_0x296472[_0x574576(0x1d4)](_0x5cc7bf)[_0x574576(0x1c3)](_0x29869d);};}exports[a736_0x36e3ef(0x1bf)]=function(_0x453d4b,_0x15b8c2){const _0x4e61d4=a736_0x36e3ef;let _0x6a3b53={};const _0x41ea0f={},_0x595009={'count':0x0,'rows':[]},_0x294df2=_['map'](db['SquareDetailsReport']['rawAttributes'],function(_0x5522bb){const _0x430c77=a736_0x2533;return{'name':_0x5522bb['fieldName'],'type':_0x5522bb[_0x430c77(0x1c1)][_0x430c77(0x1d1)]};});_0x41ea0f[_0x4e61d4(0x1b5)]=_[_0x4e61d4(0x1c4)](_0x294df2,_0x4e61d4(0x1db)),_0x41ea0f[_0x4e61d4(0x1d6)]=_['keys'](_0x453d4b[_0x4e61d4(0x1d6)]),_0x41ea0f['filters']=_[_0x4e61d4(0x1c2)](_0x41ea0f['model'],_0x41ea0f[_0x4e61d4(0x1d6)]),_0x6a3b53[_0x4e61d4(0x1c0)]=_['intersection'](_0x41ea0f[_0x4e61d4(0x1b5)],qs[_0x4e61d4(0x1b6)](_0x453d4b[_0x4e61d4(0x1d6)][_0x4e61d4(0x1b6)])),_0x6a3b53[_0x4e61d4(0x1c0)]=_0x6a3b53[_0x4e61d4(0x1c0)]['length']?_0x6a3b53['attributes']:_0x41ea0f[_0x4e61d4(0x1b5)];typeof _0x453d4b[_0x4e61d4(0x1d6)]['nolimit']===_0x4e61d4(0x1ae)&&(_0x6a3b53[_0x4e61d4(0x1bc)]=qs[_0x4e61d4(0x1bc)](_0x453d4b[_0x4e61d4(0x1d6)][_0x4e61d4(0x1bc)]),_0x6a3b53[_0x4e61d4(0x1d3)]=qs[_0x4e61d4(0x1d3)](_0x453d4b[_0x4e61d4(0x1d6)]['offset']));_0x6a3b53[_0x4e61d4(0x1cf)]=qs[_0x4e61d4(0x1b3)](_0x453d4b[_0x4e61d4(0x1d6)]['sort']),_0x6a3b53[_0x4e61d4(0x1bd)]=qs[_0x4e61d4(0x1c7)](_[_0x4e61d4(0x1c5)](_0x453d4b[_0x4e61d4(0x1d6)],_0x41ea0f[_0x4e61d4(0x1c7)]),_0x294df2);_0x453d4b['query']['filter']&&(_0x6a3b53[_0x4e61d4(0x1bd)]=_[_0x4e61d4(0x1d0)](_0x6a3b53[_0x4e61d4(0x1bd)],{[Op['or']]:_[_0x4e61d4(0x1c4)](_0x294df2,function(_0x2ba00b){const _0x2d098d=_0x4e61d4;if(_0x2ba00b[_0x2d098d(0x1c1)]!==_0x2d098d(0x1cc)){const _0x468626={};return _0x468626[_0x2ba00b[_0x2d098d(0x1db)]]={[Op['like']]:'%'+_0x453d4b['query'][_0x2d098d(0x1ad)]+'%'},_0x468626;}})}));_0x6a3b53=_[_0x4e61d4(0x1d0)]({},_0x6a3b53,_0x453d4b[_0x4e61d4(0x1b1)]);const _0x3fb19e={'where':_0x6a3b53['where']};return db[_0x4e61d4(0x1b7)][_0x4e61d4(0x1bb)](_0x3fb19e)['then'](function(_0x324b5b){const _0x195867=_0x4e61d4;return _0x595009[_0x195867(0x1bb)]=_0x324b5b,_0x453d4b[_0x195867(0x1d6)][_0x195867(0x1d5)]&&(_0x6a3b53[_0x195867(0x1d9)]=[{'all':!![]}]),db[_0x195867(0x1b7)]['findAll'](_0x6a3b53);})[_0x4e61d4(0x1ba)](function(_0x319dbe){const _0x58f849=_0x4e61d4;return _0x595009[_0x58f849(0x1b0)]=_0x319dbe,_0x595009;})[_0x4e61d4(0x1ba)](respondWithFilteredResult(_0x15b8c2,_0x6a3b53))[_0x4e61d4(0x1b8)](handleError(_0x15b8c2,null));},exports[a736_0x36e3ef(0x1cb)]=function(_0x2487d6,_0x52a532){const _0x2de2ba=a736_0x36e3ef;let _0x570c1b={'raw':!![],'where':{'id':_0x2487d6[_0x2de2ba(0x1d7)]['id']}};const _0x410c29={};return _0x410c29['model']=_[_0x2de2ba(0x1b2)](db['SquareDetailsReport']['rawAttributes']),_0x410c29[_0x2de2ba(0x1d6)]=_['keys'](_0x2487d6[_0x2de2ba(0x1d6)]),_0x410c29['filters']=_[_0x2de2ba(0x1c2)](_0x410c29['model'],_0x410c29[_0x2de2ba(0x1d6)]),_0x570c1b[_0x2de2ba(0x1c0)]=_['intersection'](_0x410c29[_0x2de2ba(0x1b5)],qs[_0x2de2ba(0x1b6)](_0x2487d6[_0x2de2ba(0x1d6)][_0x2de2ba(0x1b6)])),_0x570c1b[_0x2de2ba(0x1c0)]=_0x570c1b[_0x2de2ba(0x1c0)][_0x2de2ba(0x1ce)]?_0x570c1b['attributes']:_0x410c29[_0x2de2ba(0x1b5)],_0x2487d6[_0x2de2ba(0x1d6)]['includeAll']&&(_0x570c1b[_0x2de2ba(0x1d9)]=[{'all':!![]}]),_0x570c1b=_[_0x2de2ba(0x1d0)]({},_0x570c1b,_0x2487d6[_0x2de2ba(0x1b1)]),db['SquareDetailsReport'][_0x2de2ba(0x1d8)](_0x570c1b)[_0x2de2ba(0x1ba)](handleEntityNotFound(_0x52a532,null))[_0x2de2ba(0x1ba)](respondWithResult(_0x52a532,null))[_0x2de2ba(0x1b8)](handleError(_0x52a532,null));},exports[a736_0x36e3ef(0x1be)]=function(_0x358117,_0x45c273){const _0x2983a0=a736_0x36e3ef;return db['SquareDetailsReport'][_0x2983a0(0x1be)](_0x358117['body'],{})['then'](respondWithResult(_0x45c273,0xc9))[_0x2983a0(0x1b8)](handleError(_0x45c273,null));},exports[a736_0x36e3ef(0x1ca)]=function(_0x19abf3,_0x75d47c){const _0x169f37=a736_0x36e3ef;return _0x19abf3['body']['id']&&delete _0x19abf3[_0x169f37(0x1ac)]['id'],db['SquareDetailsReport']['findOne']({'where':{'id':_0x19abf3[_0x169f37(0x1d7)]['id']}})[_0x169f37(0x1ba)](handleEntityNotFound(_0x75d47c,null))[_0x169f37(0x1ba)](saveUpdates(_0x19abf3[_0x169f37(0x1ac)],null))[_0x169f37(0x1ba)](respondWithResult(_0x75d47c,null))['catch'](handleError(_0x75d47c,null));},exports['destroy']=function(_0xed8b85,_0x3825ea){const _0x25cf0a=a736_0x36e3ef;return db[_0x25cf0a(0x1b7)]['findOne']({'where':{'id':_0xed8b85[_0x25cf0a(0x1d7)]['id']}})[_0x25cf0a(0x1ba)](handleEntityNotFound(_0x3825ea,null))[_0x25cf0a(0x1ba)](removeEntity(_0x3825ea,null))['catch'](handleError(_0x3825ea,null));},exports[a736_0x36e3ef(0x1d2)]=function(_0x128646,_0x2a085c){const _0x550cca=a736_0x36e3ef;return db[_0x550cca(0x1b7)][_0x550cca(0x1d2)]()[_0x550cca(0x1ba)](respondWithResult(_0x2a085c,null))['catch'](handleError(_0x2a085c,null));}; \ No newline at end of file diff --git a/server/api/squareReportDetail/squareReportDetail.model.js b/server/api/squareReportDetail/squareReportDetail.model.js index 2a939ba..516f4a8 100644 --- a/server/api/squareReportDetail/squareReportDetail.model.js +++ b/server/api/squareReportDetail/squareReportDetail.model.js @@ -1 +1 @@ -const a616_0x495c=['./squareReportDetail.attributes','report_square_details','exports'];(function(_0x5de579,_0x495ccc){const _0x4d1f9c=function(_0x380f07){while(--_0x380f07){_0x5de579['push'](_0x5de579['shift']());}};_0x4d1f9c(++_0x495ccc);}(a616_0x495c,0xe5));const a616_0x4d1f=function(_0x5de579,_0x495ccc){_0x5de579=_0x5de579-0x0;let _0x4d1f9c=a616_0x495c[_0x5de579];return _0x4d1f9c;};const _0x267993=a616_0x4d1f;'use strict';const attributes=require(_0x267993('0x2'));module[_0x267993('0x1')]=function(_0x380f07){const _0x4fd018=_0x267993,_0x7f36b2=_0x380f07['define']('SquareDetailsReport',attributes,{'tableName':_0x4fd018('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x7f36b2;}; \ No newline at end of file +const a737_0x323c=['./squareReportDetail.attributes','./squareReportDetail.options','function','init','SquareDetailsReport','sequelize','exports'];(function(_0x536fee,_0xbb7647){const _0x323c3b=function(_0x120818){while(--_0x120818){_0x536fee['push'](_0x536fee['shift']());}};_0x323c3b(++_0xbb7647);}(a737_0x323c,0xcf));const a737_0x1208=function(_0x536fee,_0xbb7647){_0x536fee=_0x536fee-0x160;let _0x323c3b=a737_0x323c[_0x536fee];return _0x323c3b;};const a737_0x4b9617=a737_0x1208;'use strict';const {Model}=require(a737_0x4b9617(0x161)),{attributes}=require(a737_0x4b9617(0x163)),{options}=require(a737_0x4b9617(0x164));class SquareDetailsReport extends Model{}function init(_0x2ec5a5,_0x14a9dc){const _0x416e69=a737_0x4b9617,_0x446ee4=options(_0x2ec5a5),_0x5f9074=typeof _0x14a9dc===_0x416e69(0x165)?_0x14a9dc(_0x446ee4):_0x446ee4;return SquareDetailsReport[_0x416e69(0x166)](attributes,_0x5f9074),SquareDetailsReport;}module['exports'][a737_0x4b9617(0x160)]=SquareDetailsReport,module[a737_0x4b9617(0x162)]['init']=init; \ No newline at end of file diff --git a/server/api/squareReportDetail/squareReportDetail.options.js b/server/api/squareReportDetail/squareReportDetail.options.js new file mode 100644 index 0000000..4938fad --- /dev/null +++ b/server/api/squareReportDetail/squareReportDetail.options.js @@ -0,0 +1 @@ +var a738_0x5832=['report_square_details','options'];(function(_0xb7bcfc,_0x9ef459){var _0x58327b=function(_0x402ba5){while(--_0x402ba5){_0xb7bcfc['push'](_0xb7bcfc['shift']());}};_0x58327b(++_0x9ef459);}(a738_0x5832,0x1d5));var a738_0x402b=function(_0xb7bcfc,_0x9ef459){_0xb7bcfc=_0xb7bcfc-0xc4;var _0x58327b=a738_0x5832[_0xb7bcfc];return _0x58327b;};var a738_0x2bba7e=a738_0x402b;function options(_0x218112){var _0x46a6cb=a738_0x402b;return{'sequelize':_0x218112,'tableName':_0x46a6cb(0xc5),'paranoid':![],'indexes':[],'timestamps':!![]};}module['exports'][a738_0x2bba7e(0xc4)]=options; \ No newline at end of file diff --git a/server/api/squareReportDetail/squareReportDetail.rpc.js b/server/api/squareReportDetail/squareReportDetail.rpc.js index 23b9d6c..677216c 100644 --- a/server/api/squareReportDetail/squareReportDetail.rpc.js +++ b/server/api/squareReportDetail/squareReportDetail.rpc.js @@ -1 +1 @@ -const a617_0x4926=['message','body','../../mysqldb','SquareDetailsReport','raw','stringify','../../config/logger','rpc','create','options','info','error','catch','debug','then','CreateSquareDetailsReport'];(function(_0x1ed5b6,_0x492643){const _0x1f2f5e=function(_0x4559b3){while(--_0x4559b3){_0x1ed5b6['push'](_0x1ed5b6['shift']());}};_0x1f2f5e(++_0x492643);}(a617_0x4926,0xc1));const a617_0x1f2f=function(_0x1ed5b6,_0x492643){_0x1ed5b6=_0x1ed5b6-0x0;let _0x1f2f5e=a617_0x4926[_0x1ed5b6];return _0x1f2f5e;};const _0x1d1a73=a617_0x1f2f;'use strict';const db=require(_0x1d1a73('0x1'))['db'],logger=require(_0x1d1a73('0x5'))(_0x1d1a73('0x6'));exports['CreateSquareDetailsReport']=function(_0x4559b3){const _0x115abd=this;return new Promise(function(_0x43991f,_0x395578){const _0x3405fc=a617_0x1f2f;return db[_0x3405fc('0x2')][_0x3405fc('0x7')](_0x4559b3[_0x3405fc('0x0')],{'raw':_0x4559b3['options']?_0x4559b3[_0x3405fc('0x8')][_0x3405fc('0x3')]===undefined?!![]:![]:!![]})[_0x3405fc('0xd')](function(_0x4949da){const _0x5dadb8=_0x3405fc;logger[_0x5dadb8('0x9')]('CreateSquareDetailsReport',_0x4559b3),logger[_0x5dadb8('0xc')](_0x5dadb8('0xe'),_0x4559b3,JSON[_0x5dadb8('0x4')](_0x4949da)),_0x43991f(_0x4949da);})[_0x3405fc('0xb')](function(_0x28667a){const _0x1144c9=_0x3405fc;logger['error'](_0x1144c9('0xe'),_0x28667a[_0x1144c9('0xf')],_0x4559b3),_0x395578(_0x115abd[_0x1144c9('0xa')](0x1f4,_0x28667a[_0x1144c9('0xf')]));});});}; \ No newline at end of file +const a739_0x59ed=['debug','info','message','create','error','stringify','SquareDetailsReport','../../mysqldb','then','options','../../config/logger','CreateSquareDetailsReport'];(function(_0x52b964,_0x3ece14){const _0x59ed27=function(_0x37535a){while(--_0x37535a){_0x52b964['push'](_0x52b964['shift']());}};_0x59ed27(++_0x3ece14);}(a739_0x59ed,0x162));const a739_0x3753=function(_0x52b964,_0x3ece14){_0x52b964=_0x52b964-0x1ce;let _0x59ed27=a739_0x59ed[_0x52b964];return _0x59ed27;};const a739_0x4c585a=a739_0x3753;'use strict';const db=require(a739_0x4c585a(0x1cf))['db'],logger=require(a739_0x4c585a(0x1d2))('rpc');exports[a739_0x4c585a(0x1d3)]=function(_0x4223ed){const _0x713b8d=this;return new Promise(function(_0x17bbc5,_0x161b13){const _0x5ba827=a739_0x3753;return db[_0x5ba827(0x1ce)][_0x5ba827(0x1d7)](_0x4223ed['body'],{'raw':_0x4223ed[_0x5ba827(0x1d1)]?_0x4223ed[_0x5ba827(0x1d1)]['raw']===undefined?!![]:![]:!![]})[_0x5ba827(0x1d0)](function(_0x2c82d4){const _0x2b9236=_0x5ba827;logger[_0x2b9236(0x1d5)](_0x2b9236(0x1d3),_0x4223ed),logger[_0x2b9236(0x1d4)](_0x2b9236(0x1d3),_0x4223ed,JSON[_0x2b9236(0x1d9)](_0x2c82d4)),_0x17bbc5(_0x2c82d4);})['catch'](function(_0x1a5560){const _0x1418f9=_0x5ba827;logger[_0x1418f9(0x1d8)]('CreateSquareDetailsReport',_0x1a5560[_0x1418f9(0x1d6)],_0x4223ed),_0x161b13(_0x713b8d['error'](0x1f4,_0x1a5560[_0x1418f9(0x1d6)]));});});}; \ No newline at end of file diff --git a/server/api/system/index.js b/server/api/system/index.js index 550731f..490928d 100644 --- a/server/api/system/index.js +++ b/server/api/system/index.js @@ -1 +1 @@ -const a618_0x41d0=['Router','isAuthenticated','get','../../components/auth/service','exports','express','/process/:pid/kill'];(function(_0x168dab,_0x41d042){const _0x3ca89=function(_0x438d61){while(--_0x438d61){_0x168dab['push'](_0x168dab['shift']());}};_0x3ca89(++_0x41d042);}(a618_0x41d0,0x1d2));const a618_0x3ca8=function(_0x168dab,_0x41d042){_0x168dab=_0x168dab-0x0;let _0x3ca89=a618_0x41d0[_0x168dab];return _0x3ca89;};const _0x24cc11=a618_0x3ca8;'use strict';const express=require(_0x24cc11('0x1')),router=express[_0x24cc11('0x3')](),auth=require(_0x24cc11('0x6')),controller=require('./system.controller');router[_0x24cc11('0x5')]('/',auth['isAuthenticated'](),controller['index']),router[_0x24cc11('0x5')](_0x24cc11('0x2'),auth[_0x24cc11('0x4')](),controller['killProcess']),module[_0x24cc11('0x0')]=router; \ No newline at end of file +const a740_0xf90d=['Router','isAuthenticated','express','index','/process/:pid/kill','exports','get'];(function(_0x322558,_0x1ce108){const _0xf90d94=function(_0x31872e){while(--_0x31872e){_0x322558['push'](_0x322558['shift']());}};_0xf90d94(++_0x1ce108);}(a740_0xf90d,0x149));const a740_0x3187=function(_0x322558,_0x1ce108){_0x322558=_0x322558-0x130;let _0xf90d94=a740_0xf90d[_0x322558];return _0xf90d94;};const a740_0x6570d5=a740_0x3187;'use strict';const express=require(a740_0x6570d5(0x132)),router=express[a740_0x6570d5(0x130)](),auth=require('../../components/auth/service'),controller=require('./system.controller');router[a740_0x6570d5(0x136)]('/',auth[a740_0x6570d5(0x131)](),controller[a740_0x6570d5(0x133)]),router[a740_0x6570d5(0x136)](a740_0x6570d5(0x134),auth[a740_0x6570d5(0x131)](),controller['killProcess']),module[a740_0x6570d5(0x135)]=router; \ No newline at end of file diff --git a/server/api/system/system.controller.js b/server/api/system/system.controller.js index 5ccf660..d1040ee 100644 --- a/server/api/system/system.controller.js +++ b/server/api/system/system.controller.js @@ -1 +1 @@ -const a619_0x5837=['../../config/logger','components/import/cm','systeminformation','send','Process\x20with\x20pid\x20%s\x20killed\x20correctly','status','json','exec','<%-\x20name\x20%>,\x20%s,\x20%s,\x20%s','getAllData','catch','pid','then','name','length','indexOf','SIGINT','child_process','killProcess','params','util','api','inspect','format'];(function(_0x30432f,_0x583722){const _0xd5ca49=function(_0x1e6605){while(--_0x1e6605){_0x30432f['push'](_0x30432f['shift']());}};_0xd5ca49(++_0x583722);}(a619_0x5837,0x1de));const a619_0xd5ca=function(_0x30432f,_0x583722){_0x30432f=_0x30432f-0x0;let _0xd5ca49=a619_0x5837[_0x30432f];return _0xd5ca49;};const _0x3f05ae=a619_0xd5ca;'use strict';const info=require(_0x3f05ae('0x4')),exec=require(_0x3f05ae('0x13'))[_0x3f05ae('0x9')],logger=require(_0x3f05ae('0x2'))(_0x3f05ae('0x17')),util=require(_0x3f05ae('0x16'));function handleError(_0x1e6605,_0x3ecf19,_0x5a32b0){return _0x3ecf19=_0x3ecf19||0x1f4,function(_0xfc895){const _0x37b650=a619_0xd5ca;logger['error'](_0x37b650('0xa'),_0x5a32b0,_0x3ecf19,util[_0x37b650('0x0')](_0xfc895,{'showHidden':![],'depth':null})),delete _0xfc895[_0x37b650('0xf')],_0x1e6605[_0x37b650('0x7')](_0x3ecf19)[_0x37b650('0x5')](_0xfc895);};}exports['index']=function(_0x4a53f8,_0x1654ea){const _0x352459=_0x3f05ae;return info[_0x352459('0xb')]()[_0x352459('0xe')](function(_0x4003cc){const _0x3d6c4b=_0x352459;return _0x1654ea[_0x3d6c4b('0x7')](0xc8)[_0x3d6c4b('0x8')](_0x4003cc);})[_0x352459('0xc')](function(_0x30db16){const _0x5171bc=_0x352459;return _0x1654ea[_0x5171bc('0x7')](0x1f4)[_0x5171bc('0x8')](_0x30db16);});},exports[_0x3f05ae('0x14')]=function(_0x2f9678,_0x523aed){const _0x1dadea=_0x3f05ae,_0x4eba8b=[_0x1dadea('0x3')];return new Promise(function(_0x1ab7ab,_0x1e6ff6){const _0x1ff371=_0x1dadea;return exec(util[_0x1ff371('0x1')]('ps\x20-p\x20%s\x20-ww\x20-o\x20args',_0x2f9678['params']['pid']),function(_0x52c06b,_0x4e8976){if(_0x52c06b)return _0x1e6ff6(_0x52c06b);return _0x1ab7ab(_0x4e8976);});})[_0x1dadea('0xe')](function(_0x3ca511){const _0x50f3e0=_0x1dadea;let _0x57282b=![];for(let _0x40df73=0x0,_0x3cb1d2=_0x4eba8b[_0x50f3e0('0x10')];_0x40df73<_0x3cb1d2,_0x57282b===![];_0x40df73+=0x1){_0x3ca511[_0x50f3e0('0x11')](_0x4eba8b[_0x40df73])>=0x0&&(_0x57282b=!![]);}if(!_0x57282b)throw new Error(util['format']('Process\x20with\x20pid\x20%s\x20not\x20found!',_0x2f9678[_0x50f3e0('0x15')][_0x50f3e0('0xd')]));return process['kill'](_0x2f9678[_0x50f3e0('0x15')][_0x50f3e0('0xd')],_0x50f3e0('0x12')),_0x523aed[_0x50f3e0('0x7')](0xc8)[_0x50f3e0('0x8')]({'message':util[_0x50f3e0('0x1')](_0x50f3e0('0x6'),_0x2f9678[_0x50f3e0('0x15')][_0x50f3e0('0xd')])});})[_0x1dadea('0xc')](handleError(_0x523aed,null,_0x1dadea('0x14')));}; \ No newline at end of file +const a741_0xe2ba=['util','Process\x20with\x20pid\x20%s\x20killed\x20correctly','format','pid','components/import/cm','<%-\x20name\x20%>,\x20%s,\x20%s,\x20%s','then','index','kill','systeminformation','json','../../config/logger','child_process','status','name','params','api','killProcess','catch','send','inspect','exec'];(function(_0x2832ca,_0xc40bd3){const _0xe2ba31=function(_0x4a14c5){while(--_0x4a14c5){_0x2832ca['push'](_0x2832ca['shift']());}};_0xe2ba31(++_0xc40bd3);}(a741_0xe2ba,0x124));const a741_0x4a14=function(_0x2832ca,_0xc40bd3){_0x2832ca=_0x2832ca-0x118;let _0xe2ba31=a741_0xe2ba[_0x2832ca];return _0xe2ba31;};const a741_0x554257=a741_0x4a14;'use strict';const info=require(a741_0x554257(0x11b)),exec=require(a741_0x554257(0x11e))[a741_0x554257(0x127)],logger=require(a741_0x554257(0x11d))(a741_0x554257(0x122)),util=require(a741_0x554257(0x128));function handleError(_0x4b9b9f,_0x4254aa,_0x2c61f0){return _0x4254aa=_0x4254aa||0x1f4,function(_0x18cdd8){const _0x4189de=a741_0x4a14;logger['error'](_0x4189de(0x12d),_0x2c61f0,_0x4254aa,util[_0x4189de(0x126)](_0x18cdd8,{'showHidden':![],'depth':null})),delete _0x18cdd8[_0x4189de(0x120)],_0x4b9b9f['status'](_0x4254aa)[_0x4189de(0x125)](_0x18cdd8);};}exports[a741_0x554257(0x119)]=function(_0x54758a,_0x11f718){const _0x17c517=a741_0x554257;return info['getAllData']()[_0x17c517(0x118)](function(_0x4d59e0){const _0x187353=_0x17c517;return _0x11f718[_0x187353(0x11f)](0xc8)[_0x187353(0x11c)](_0x4d59e0);})[_0x17c517(0x124)](function(_0x113050){const _0x3d12f3=_0x17c517;return _0x11f718[_0x3d12f3(0x11f)](0x1f4)[_0x3d12f3(0x11c)](_0x113050);});},exports['killProcess']=function(_0x2e4f7f,_0x496073){const _0x56fb63=a741_0x554257,_0x486c6a=[_0x56fb63(0x12c)];return new Promise(function(_0x151c18,_0x5d0fa5){const _0x1721f8=_0x56fb63;return exec(util[_0x1721f8(0x12a)]('ps\x20-p\x20%s\x20-ww\x20-o\x20args',_0x2e4f7f[_0x1721f8(0x121)][_0x1721f8(0x12b)]),function(_0x30e4a7,_0x210aeb){if(_0x30e4a7)return _0x5d0fa5(_0x30e4a7);return _0x151c18(_0x210aeb);});})[_0x56fb63(0x118)](function(_0x5a93a2){const _0x39e0d4=_0x56fb63;let _0x12258a=![];for(let _0x57b2e2=0x0,_0x120da6=_0x486c6a['length'];_0x57b2e2<_0x120da6,_0x12258a===![];_0x57b2e2+=0x1){_0x5a93a2['indexOf'](_0x486c6a[_0x57b2e2])>=0x0&&(_0x12258a=!![]);}if(!_0x12258a)throw new Error(util[_0x39e0d4(0x12a)]('Process\x20with\x20pid\x20%s\x20not\x20found!',_0x2e4f7f[_0x39e0d4(0x121)][_0x39e0d4(0x12b)]));return process[_0x39e0d4(0x11a)](_0x2e4f7f[_0x39e0d4(0x121)][_0x39e0d4(0x12b)],'SIGINT'),_0x496073[_0x39e0d4(0x11f)](0xc8)[_0x39e0d4(0x11c)]({'message':util[_0x39e0d4(0x12a)](_0x39e0d4(0x129),_0x2e4f7f[_0x39e0d4(0x121)]['pid'])});})['catch'](handleError(_0x496073,null,_0x56fb63(0x123)));}; \ No newline at end of file diff --git a/server/api/tag/index.js b/server/api/tag/index.js index 65d461c..3eff918 100644 --- a/server/api/tag/index.js +++ b/server/api/tag/index.js @@ -1 +1 @@ -const a620_0x462c=['Router','show','./tag.controller','exports','create','post','put','index','/:id','express','get','isAuthenticated','delete'];(function(_0x15fbf3,_0x462cb6){const _0x5148cd=function(_0x45b974){while(--_0x45b974){_0x15fbf3['push'](_0x15fbf3['shift']());}};_0x5148cd(++_0x462cb6);}(a620_0x462c,0x1b6));const a620_0x5148=function(_0x15fbf3,_0x462cb6){_0x15fbf3=_0x15fbf3-0x0;let _0x5148cd=a620_0x462c[_0x15fbf3];return _0x5148cd;};const _0x2e9f7d=a620_0x5148;'use strict';const express=require(_0x2e9f7d('0x0')),router=express[_0x2e9f7d('0x4')](),auth=require('../../components/auth/service'),controller=require(_0x2e9f7d('0x6'));router[_0x2e9f7d('0x1')]('/',auth[_0x2e9f7d('0x2')](),controller[_0x2e9f7d('0xb')]),router['get'](_0x2e9f7d('0xc'),auth[_0x2e9f7d('0x2')](),controller[_0x2e9f7d('0x5')]),router[_0x2e9f7d('0x9')]('/',auth[_0x2e9f7d('0x2')](),controller[_0x2e9f7d('0x8')]),router[_0x2e9f7d('0xa')](_0x2e9f7d('0xc'),auth[_0x2e9f7d('0x2')](),controller['update']),router[_0x2e9f7d('0x3')](_0x2e9f7d('0xc'),auth['isAuthenticated'](),controller['destroy']),module[_0x2e9f7d('0x7')]=router; \ No newline at end of file +const a742_0x335d=['delete','destroy','exports','./tag.controller','../../components/auth/service','get','index','isAuthenticated','/:id','show'];(function(_0x441757,_0x55aa79){const _0x335da6=function(_0xc2c05c){while(--_0xc2c05c){_0x441757['push'](_0x441757['shift']());}};_0x335da6(++_0x55aa79);}(a742_0x335d,0xe3));const a742_0xc2c0=function(_0x441757,_0x55aa79){_0x441757=_0x441757-0xf9;let _0x335da6=a742_0x335d[_0x441757];return _0x335da6;};const a742_0x2db30e=a742_0xc2c0;'use strict';const express=require('express'),router=express['Router'](),auth=require(a742_0x2db30e(0x100)),controller=require(a742_0x2db30e(0xff));router[a742_0x2db30e(0x101)]('/',auth[a742_0x2db30e(0xf9)](),controller[a742_0x2db30e(0x102)]),router['get'](a742_0x2db30e(0xfa),auth[a742_0x2db30e(0xf9)](),controller[a742_0x2db30e(0xfb)]),router['post']('/',auth[a742_0x2db30e(0xf9)](),controller['create']),router['put']('/:id',auth[a742_0x2db30e(0xf9)](),controller['update']),router[a742_0x2db30e(0xfc)](a742_0x2db30e(0xfa),auth[a742_0x2db30e(0xf9)](),controller[a742_0x2db30e(0xfd)]),module[a742_0x2db30e(0xfe)]=router; \ No newline at end of file diff --git a/server/api/tag/tag.attributes.js b/server/api/tag/tag.attributes.js index f66aaa4..40177bb 100644 --- a/server/api/tag/tag.attributes.js +++ b/server/api/tag/tag.attributes.js @@ -1 +1 @@ -const a621_0x1981=['exports','name'];(function(_0x386cae,_0x19811f){const _0x28835f=function(_0x5994cc){while(--_0x5994cc){_0x386cae['push'](_0x386cae['shift']());}};_0x28835f(++_0x19811f);}(a621_0x1981,0x98));const a621_0x2883=function(_0x386cae,_0x19811f){_0x386cae=_0x386cae-0x0;let _0x28835f=a621_0x1981[_0x386cae];return _0x28835f;};const _0x66bf44=a621_0x2883;'use strict';const Sequelize=require('sequelize');module[_0x66bf44('0x0')]={'name':{'type':Sequelize['STRING'],'unique':_0x66bf44('0x1'),'allowNull':![],'validate':{'is':/[A-Za-z0-9._\\+*!-]+/,'notEmpty':!![]}},'color':{'type':Sequelize['STRING'],'defaultValue':'#0091EA'},'description':{'type':Sequelize['STRING']}}; \ No newline at end of file +const a743_0x2c40=['STRING','#0091EA','attributes','sequelize','exports','name'];(function(_0xfcc59b,_0x41de49){const _0x2c40d1=function(_0x5ef883){while(--_0x5ef883){_0xfcc59b['push'](_0xfcc59b['shift']());}};_0x2c40d1(++_0x41de49);}(a743_0x2c40,0x1c6));const a743_0x5ef8=function(_0xfcc59b,_0x41de49){_0xfcc59b=_0xfcc59b-0xd3;let _0x2c40d1=a743_0x2c40[_0xfcc59b];return _0x2c40d1;};const a743_0x45ac5f=a743_0x5ef8;'use strict';const {DataTypes}=require(a743_0x45ac5f(0xd8)),attributes={'name':{'type':DataTypes[a743_0x45ac5f(0xd5)],'unique':a743_0x45ac5f(0xd4),'allowNull':![],'validate':{'is':/[A-Za-z0-9._\\+*!-]+/,'notEmpty':!![]}},'color':{'type':DataTypes[a743_0x45ac5f(0xd5)],'defaultValue':a743_0x45ac5f(0xd6)},'description':{'type':DataTypes[a743_0x45ac5f(0xd5)]}};module[a743_0x45ac5f(0xd3)][a743_0x45ac5f(0xd7)]=attributes; \ No newline at end of file diff --git a/server/api/tag/tag.controller.js b/server/api/tag/tag.controller.js index c68dacf..070f3e6 100644 --- a/server/api/tag/tag.controller.js +++ b/server/api/tag/tag.controller.js @@ -1 +1 @@ -const a622_0x1ea7=['index','where','filters','name','options','sort','Tag','map','Content-Range','fields','rawAttributes','sequelize','intersection','offset','fieldName','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','nolimit','rows','destroy','includeAll','query','key','Unable\x20to\x20retrieve\x20the\x20current\x20user','../../mysqldb','length','undefined','merge','findAll','params','limit','keys','type','pick','set','model','end','catch','role','get','include','error','stack','Tags','findOne','body','json','order','status','sendStatus','then','user','show','VIRTUAL','UserProfileResource','filter','attributes','autoAssociation','lodash','count','update','../../config/logger'];(function(_0x5eac04,_0x1ea78a){const _0x482bef=function(_0x4425c4){while(--_0x4425c4){_0x5eac04['push'](_0x5eac04['shift']());}};_0x482bef(++_0x1ea78a);}(a622_0x1ea7,0xdd));const a622_0x482b=function(_0x5eac04,_0x1ea78a){_0x5eac04=_0x5eac04-0x0;let _0x482bef=a622_0x1ea7[_0x5eac04];return _0x482bef;};const _0xcd1ac5=a622_0x482b;'use strict';const _=require(_0xcd1ac5('0x13')),qs=require('../../components/parsers/qs'),logger=require(_0xcd1ac5('0x16'))('api'),db=require(_0xcd1ac5('0x2e'))['db'],{Op}=require(_0xcd1ac5('0x22'));function respondWithResult(_0x4425c4,_0x457d00){return _0x457d00=_0x457d00||0xc8,function(_0x453497){if(_0x453497)return _0x4425c4['status'](_0x457d00)['json'](_0x453497);};}function respondWithFilteredResult(_0x396a0f,_0x6eb191){return function(_0x3751f7){const _0x4e3ce1=a622_0x482b;if(_0x3751f7){const _0x1ffb2c=_0x3751f7['count'],_0x51f845=_0x6eb191[_0x4e3ce1('0x24')];let _0x266ef9=_0x6eb191[_0x4e3ce1('0x24')]+_0x6eb191[_0x4e3ce1('0x34')],_0x32ba5d;return _0x266ef9>=_0x1ffb2c?(_0x266ef9=_0x1ffb2c,_0x32ba5d=0xc8):_0x32ba5d=0xce,_0x396a0f[_0x4e3ce1('0x9')](_0x32ba5d),_0x396a0f[_0x4e3ce1('0x38')](_0x4e3ce1('0x1f'),_0x51f845+'-'+_0x266ef9+'/'+_0x1ffb2c)[_0x4e3ce1('0x7')](_0x3751f7);}return null;};}function saveUpdates(_0xd4144e){return function(_0x4c7290){const _0x9d33ef=a622_0x482b;if(_0x4c7290)return _0x4c7290[_0x9d33ef('0x15')](_0xd4144e)[_0x9d33ef('0xb')](function(_0x2efcc6){return _0x2efcc6;});return null;};}function removeEntity(_0x391172){return function(_0x517c8e){const _0x1bb266=a622_0x482b;if(_0x517c8e)return _0x517c8e[_0x1bb266('0x29')]()[_0x1bb266('0xb')](function(){const _0x2f7717=_0x1bb266,_0x2ef122=_0x517c8e[_0x2f7717('0x0')]({'plain':!![]}),_0x2cdb29='Tags';return db[_0x2f7717('0xf')][_0x2f7717('0x29')]({'where':{'type':_0x2cdb29,'resourceId':_0x2ef122['id']}})['then'](function(){return _0x517c8e;});})[_0x1bb266('0xb')](function(){const _0x5b7085=_0x1bb266;_0x391172['status'](0xcc)[_0x5b7085('0x3a')]();});};}function handleEntityNotFound(_0x549473){return function(_0x197679){const _0xa58d4f=a622_0x482b;return!_0x197679&&_0x549473[_0xa58d4f('0xa')](0x194),_0x197679;};}function handleError(_0x2a9402,_0x5412bb){return _0x5412bb=_0x5412bb||0x1f4,function(_0x3bc808){const _0x3ac0a4=a622_0x482b;logger[_0x3ac0a4('0x2')](_0x3bc808[_0x3ac0a4('0x3')]),_0x3bc808[_0x3ac0a4('0x1a')]&&delete _0x3bc808[_0x3ac0a4('0x1a')],_0x2a9402[_0x3ac0a4('0x9')](_0x5412bb)['send'](_0x3bc808);};}exports[_0xcd1ac5('0x17')]=function(_0x1d0a80,_0x541d73){const _0x20099f=_0xcd1ac5;let _0x309051={};const _0x48b25e={},_0x3eaaf8={'count':0x0,'rows':[]},_0x625fb4=_[_0x20099f('0x1e')](db['Tag'][_0x20099f('0x21')],function(_0x398180){const _0x163930=_0x20099f;return{'name':_0x398180[_0x163930('0x25')],'type':_0x398180[_0x163930('0x36')][_0x163930('0x2c')]};});_0x48b25e[_0x20099f('0x39')]=_[_0x20099f('0x1e')](_0x625fb4,'name'),_0x48b25e['query']=_[_0x20099f('0x35')](_0x1d0a80[_0x20099f('0x2b')]),_0x48b25e[_0x20099f('0x19')]=_[_0x20099f('0x23')](_0x48b25e[_0x20099f('0x39')],_0x48b25e[_0x20099f('0x2b')]),_0x309051[_0x20099f('0x11')]=_[_0x20099f('0x23')](_0x48b25e[_0x20099f('0x39')],qs[_0x20099f('0x20')](_0x1d0a80[_0x20099f('0x2b')]['fields'])),_0x309051[_0x20099f('0x11')]=_0x309051[_0x20099f('0x11')][_0x20099f('0x2f')]?_0x309051[_0x20099f('0x11')]:_0x48b25e[_0x20099f('0x39')];typeof _0x1d0a80['query'][_0x20099f('0x27')]===_0x20099f('0x30')&&(_0x309051[_0x20099f('0x34')]=qs[_0x20099f('0x34')](_0x1d0a80[_0x20099f('0x2b')][_0x20099f('0x34')]),_0x309051['offset']=qs[_0x20099f('0x24')](_0x1d0a80[_0x20099f('0x2b')][_0x20099f('0x24')]));_0x309051[_0x20099f('0x8')]=qs[_0x20099f('0x1c')](_0x1d0a80['query'][_0x20099f('0x1c')]),_0x309051[_0x20099f('0x18')]=qs[_0x20099f('0x19')](_[_0x20099f('0x37')](_0x1d0a80[_0x20099f('0x2b')],_0x48b25e['filters']),_0x625fb4);_0x1d0a80[_0x20099f('0x2b')]['filter']&&(_0x309051['where']=_['merge'](_0x309051[_0x20099f('0x18')],{[Op['or']]:_[_0x20099f('0x1e')](_0x625fb4,function(_0x32bfd0){const _0x47f2d6=_0x20099f;if(_0x32bfd0[_0x47f2d6('0x36')]!==_0x47f2d6('0xe')){const _0x50714a={};return _0x50714a[_0x32bfd0[_0x47f2d6('0x1a')]]={[Op['like']]:'%'+_0x1d0a80[_0x47f2d6('0x2b')][_0x47f2d6('0x10')]+'%'},_0x50714a;}})}));_0x309051=_['merge']({},_0x309051,_0x1d0a80[_0x20099f('0x1b')]);const _0x348c05={'where':_0x309051[_0x20099f('0x18')]};return db[_0x20099f('0x1d')][_0x20099f('0x14')](_0x348c05)['then'](function(_0x21abae){const _0x3bc79d=_0x20099f;return _0x3eaaf8[_0x3bc79d('0x14')]=_0x21abae,_0x1d0a80[_0x3bc79d('0x2b')][_0x3bc79d('0x2a')]&&(_0x309051['include']=[{'all':!![]}]),db['Tag'][_0x3bc79d('0x32')](_0x309051);})[_0x20099f('0xb')](function(_0x478319){const _0xc8d03e=_0x20099f;return _0x3eaaf8[_0xc8d03e('0x28')]=_0x478319,_0x3eaaf8;})[_0x20099f('0xb')](respondWithFilteredResult(_0x541d73,_0x309051))[_0x20099f('0x3b')](handleError(_0x541d73,null));},exports[_0xcd1ac5('0xd')]=function(_0x3bee10,_0x14a610){const _0x400b76=_0xcd1ac5;let _0x3796fb={'raw':!![],'where':{'id':_0x3bee10[_0x400b76('0x33')]['id']}};const _0x3ed639={};return _0x3ed639[_0x400b76('0x39')]=_['keys'](db[_0x400b76('0x1d')][_0x400b76('0x21')]),_0x3ed639['query']=_[_0x400b76('0x35')](_0x3bee10[_0x400b76('0x2b')]),_0x3ed639['filters']=_[_0x400b76('0x23')](_0x3ed639[_0x400b76('0x39')],_0x3ed639[_0x400b76('0x2b')]),_0x3796fb[_0x400b76('0x11')]=_[_0x400b76('0x23')](_0x3ed639[_0x400b76('0x39')],qs[_0x400b76('0x20')](_0x3bee10[_0x400b76('0x2b')][_0x400b76('0x20')])),_0x3796fb[_0x400b76('0x11')]=_0x3796fb[_0x400b76('0x11')][_0x400b76('0x2f')]?_0x3796fb[_0x400b76('0x11')]:_0x3ed639[_0x400b76('0x39')],_0x3bee10[_0x400b76('0x2b')][_0x400b76('0x2a')]&&(_0x3796fb[_0x400b76('0x1')]=[{'all':!![]}]),_0x3796fb=_[_0x400b76('0x31')]({},_0x3796fb,_0x3bee10[_0x400b76('0x1b')]),db['Tag'][_0x400b76('0x5')](_0x3796fb)[_0x400b76('0xb')](handleEntityNotFound(_0x14a610,null))[_0x400b76('0xb')](respondWithResult(_0x14a610,null))[_0x400b76('0x3b')](handleError(_0x14a610,null));},exports['create']=function(_0x57532f,_0x8b16f){const _0x1f9540=_0xcd1ac5;return db[_0x1f9540('0x1d')]['create'](_0x57532f[_0x1f9540('0x6')],{})[_0x1f9540('0xb')](function(_0x59eb9c){const _0x13377d=_0x1f9540,_0x4a3ede=_0x57532f[_0x13377d('0xc')][_0x13377d('0x0')]({'plain':!![]});if(!_0x4a3ede)throw new Error(_0x13377d('0x2d'));if(_0x4a3ede[_0x13377d('0x3c')]==='user'){const _0x34eead=_0x59eb9c[_0x13377d('0x0')]({'plain':!![]}),_0x463b56=_0x13377d('0x4');return db['UserProfileSection']['findOne']({'where':{'name':_0x463b56,'userProfileId':_0x4a3ede['userProfileId']},'raw':!![]})['then'](function(_0x2c299e){const _0x18bd02=_0x13377d;return _0x2c299e&&_0x2c299e[_0x18bd02('0x12')]===0x0?db[_0x18bd02('0xf')]['create']({'name':_0x34eead[_0x18bd02('0x1a')],'resourceId':_0x34eead['id'],'type':_0x2c299e[_0x18bd02('0x1a')],'sectionId':_0x2c299e['id']},{})[_0x18bd02('0xb')](function(){return _0x59eb9c;}):_0x59eb9c;})[_0x13377d('0x3b')](function(_0x3cf8d5){const _0xcd8631=_0x13377d;logger[_0xcd8631('0x2')](_0xcd8631('0x26'),_0x3cf8d5);throw _0x3cf8d5;});}return _0x59eb9c;})[_0x1f9540('0xb')](respondWithResult(_0x8b16f,0xc9))[_0x1f9540('0x3b')](handleError(_0x8b16f,null));},exports[_0xcd1ac5('0x15')]=function(_0x1a8c7a,_0x40364e){const _0x7692b2=_0xcd1ac5;return _0x1a8c7a['body']['id']&&delete _0x1a8c7a['body']['id'],db['Tag'][_0x7692b2('0x5')]({'where':{'id':_0x1a8c7a[_0x7692b2('0x33')]['id']}})[_0x7692b2('0xb')](handleEntityNotFound(_0x40364e,null))['then'](saveUpdates(_0x1a8c7a[_0x7692b2('0x6')],null))['then'](respondWithResult(_0x40364e,null))[_0x7692b2('0x3b')](handleError(_0x40364e,null));},exports[_0xcd1ac5('0x29')]=function(_0xc04c14,_0x5a1bfa){const _0x2dde67=_0xcd1ac5;return db['Tag']['findOne']({'where':{'id':_0xc04c14[_0x2dde67('0x33')]['id']}})[_0x2dde67('0xb')](handleEntityNotFound(_0x5a1bfa,null))['then'](removeEntity(_0x5a1bfa,null))[_0x2dde67('0x3b')](handleError(_0x5a1bfa,null));}; \ No newline at end of file +const a744_0x12b4=['../../mysqldb','sort','then','rawAttributes','findOne','end','get','filter','nolimit','status','include','json','../../config/logger','stack','where','offset','../../components/parsers/qs','length','UserProfileSection','filters','query','includeAll','sendStatus','type','error','name','order','catch','create','limit','keys','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','merge','UserProfileResource','options','autoAssociation','body','update','Tag','count','Content-Range','params','map','intersection','attributes','destroy','like','fieldName','userProfileId','sequelize','lodash','model','user'];(function(_0x20a2d0,_0x4ebd1f){const _0x12b472=function(_0x78217b){while(--_0x78217b){_0x20a2d0['push'](_0x20a2d0['shift']());}};_0x12b472(++_0x4ebd1f);}(a744_0x12b4,0xa8));const a744_0x7821=function(_0x20a2d0,_0x4ebd1f){_0x20a2d0=_0x20a2d0-0xd7;let _0x12b472=a744_0x12b4[_0x20a2d0];return _0x12b472;};const a744_0x3c9d97=a744_0x7821;'use strict';const _=require(a744_0x3c9d97(0x100)),qs=require(a744_0x3c9d97(0xde)),logger=require(a744_0x3c9d97(0xda))('api'),{db}=require(a744_0x3c9d97(0x103)),{Op}=require(a744_0x3c9d97(0xff));function respondWithResult(_0x3e74ba,_0x173408){return _0x173408=_0x173408||0xc8,function(_0x47ab8a){const _0x5028ca=a744_0x7821;if(_0x47ab8a)return _0x3e74ba[_0x5028ca(0xd7)](_0x173408)[_0x5028ca(0xd9)](_0x47ab8a);};}function respondWithFilteredResult(_0x44812a,_0x500cc8){return function(_0x3e8194){const _0x35565b=a744_0x7821;if(_0x3e8194){const _0xd5b798=_0x3e8194[_0x35565b(0xf5)],_0x4033e1=_0x500cc8[_0x35565b(0xdd)];let _0xec8c5d=_0x500cc8[_0x35565b(0xdd)]+_0x500cc8[_0x35565b(0xeb)],_0x3da9e9;return _0xec8c5d>=_0xd5b798?(_0xec8c5d=_0xd5b798,_0x3da9e9=0xc8):_0x3da9e9=0xce,_0x44812a[_0x35565b(0xd7)](_0x3da9e9),_0x44812a['set'](_0x35565b(0xf6),_0x4033e1+'-'+_0xec8c5d+'/'+_0xd5b798)['json'](_0x3e8194);}return null;};}function saveUpdates(_0x190f67){return function(_0x1eddc9){const _0x3f7edb=a744_0x7821;if(_0x1eddc9)return _0x1eddc9[_0x3f7edb(0xf3)](_0x190f67)['then'](function(_0x28cba9){return _0x28cba9;});return null;};}function removeEntity(_0x3741cd){return function(_0x255779){const _0xe2ca64=a744_0x7821;if(_0x255779)return _0x255779[_0xe2ca64(0xfb)]()[_0xe2ca64(0x105)](function(){const _0x58ce8e=_0xe2ca64,_0x4828fa=_0x255779['get']({'plain':!![]}),_0x13e3c0='Tags';return db[_0x58ce8e(0xef)][_0x58ce8e(0xfb)]({'where':{'type':_0x13e3c0,'resourceId':_0x4828fa['id']}})['then'](function(){return _0x255779;});})[_0xe2ca64(0x105)](function(){const _0xee4e8e=_0xe2ca64;_0x3741cd['status'](0xcc)[_0xee4e8e(0x108)]();});};}function handleEntityNotFound(_0x28906f){return function(_0x586eea){const _0x4c2add=a744_0x7821;return!_0x586eea&&_0x28906f[_0x4c2add(0xe4)](0x194),_0x586eea;};}function handleError(_0x301eb2,_0x480bc2){return _0x480bc2=_0x480bc2||0x1f4,function(_0x2a2242){const _0x125d6d=a744_0x7821;logger['error'](_0x2a2242[_0x125d6d(0xdb)]),_0x2a2242[_0x125d6d(0xe7)]&&delete _0x2a2242[_0x125d6d(0xe7)],_0x301eb2[_0x125d6d(0xd7)](_0x480bc2)['send'](_0x2a2242);};}exports['index']=function(_0x57ceee,_0x394836){const _0x10ba33=a744_0x3c9d97;let _0x97ec4={};const _0x1ec71c={},_0x1a07d3={'count':0x0,'rows':[]},_0x173671=_[_0x10ba33(0xf8)](db['Tag'][_0x10ba33(0x106)],function(_0xdaec6f){const _0x35494a=_0x10ba33;return{'name':_0xdaec6f[_0x35494a(0xfd)],'type':_0xdaec6f[_0x35494a(0xe5)]['key']};});_0x1ec71c[_0x10ba33(0x101)]=_[_0x10ba33(0xf8)](_0x173671,_0x10ba33(0xe7)),_0x1ec71c[_0x10ba33(0xe2)]=_['keys'](_0x57ceee[_0x10ba33(0xe2)]),_0x1ec71c[_0x10ba33(0xe1)]=_['intersection'](_0x1ec71c[_0x10ba33(0x101)],_0x1ec71c['query']),_0x97ec4[_0x10ba33(0xfa)]=_['intersection'](_0x1ec71c[_0x10ba33(0x101)],qs['fields'](_0x57ceee[_0x10ba33(0xe2)]['fields'])),_0x97ec4[_0x10ba33(0xfa)]=_0x97ec4[_0x10ba33(0xfa)][_0x10ba33(0xdf)]?_0x97ec4[_0x10ba33(0xfa)]:_0x1ec71c['model'];typeof _0x57ceee[_0x10ba33(0xe2)][_0x10ba33(0x10b)]==='undefined'&&(_0x97ec4[_0x10ba33(0xeb)]=qs[_0x10ba33(0xeb)](_0x57ceee['query'][_0x10ba33(0xeb)]),_0x97ec4[_0x10ba33(0xdd)]=qs['offset'](_0x57ceee[_0x10ba33(0xe2)][_0x10ba33(0xdd)]));_0x97ec4[_0x10ba33(0xe8)]=qs[_0x10ba33(0x104)](_0x57ceee[_0x10ba33(0xe2)]['sort']),_0x97ec4[_0x10ba33(0xdc)]=qs['filters'](_['pick'](_0x57ceee[_0x10ba33(0xe2)],_0x1ec71c[_0x10ba33(0xe1)]),_0x173671);_0x57ceee['query'][_0x10ba33(0x10a)]&&(_0x97ec4[_0x10ba33(0xdc)]=_[_0x10ba33(0xee)](_0x97ec4[_0x10ba33(0xdc)],{[Op['or']]:_[_0x10ba33(0xf8)](_0x173671,function(_0x23d8ba){const _0x4cb54f=_0x10ba33;if(_0x23d8ba[_0x4cb54f(0xe5)]!=='VIRTUAL'){const _0x420e52={};return _0x420e52[_0x23d8ba['name']]={[Op[_0x4cb54f(0xfc)]]:'%'+_0x57ceee['query'][_0x4cb54f(0x10a)]+'%'},_0x420e52;}})}));_0x97ec4=_['merge']({},_0x97ec4,_0x57ceee[_0x10ba33(0xf0)]);const _0x6f8ac3={'where':_0x97ec4[_0x10ba33(0xdc)]};return db[_0x10ba33(0xf4)][_0x10ba33(0xf5)](_0x6f8ac3)[_0x10ba33(0x105)](function(_0x178188){const _0x24bf30=_0x10ba33;return _0x1a07d3[_0x24bf30(0xf5)]=_0x178188,_0x57ceee[_0x24bf30(0xe2)][_0x24bf30(0xe3)]&&(_0x97ec4[_0x24bf30(0xd8)]=[{'all':!![]}]),db[_0x24bf30(0xf4)]['findAll'](_0x97ec4);})[_0x10ba33(0x105)](function(_0x341577){return _0x1a07d3['rows']=_0x341577,_0x1a07d3;})[_0x10ba33(0x105)](respondWithFilteredResult(_0x394836,_0x97ec4))['catch'](handleError(_0x394836,null));},exports['show']=function(_0x44ff3e,_0x374a46){const _0x382b7c=a744_0x3c9d97;let _0x482206={'raw':!![],'where':{'id':_0x44ff3e[_0x382b7c(0xf7)]['id']}};const _0x309887={};return _0x309887[_0x382b7c(0x101)]=_[_0x382b7c(0xec)](db[_0x382b7c(0xf4)][_0x382b7c(0x106)]),_0x309887['query']=_[_0x382b7c(0xec)](_0x44ff3e['query']),_0x309887[_0x382b7c(0xe1)]=_[_0x382b7c(0xf9)](_0x309887[_0x382b7c(0x101)],_0x309887[_0x382b7c(0xe2)]),_0x482206[_0x382b7c(0xfa)]=_[_0x382b7c(0xf9)](_0x309887[_0x382b7c(0x101)],qs['fields'](_0x44ff3e[_0x382b7c(0xe2)]['fields'])),_0x482206['attributes']=_0x482206[_0x382b7c(0xfa)][_0x382b7c(0xdf)]?_0x482206[_0x382b7c(0xfa)]:_0x309887[_0x382b7c(0x101)],_0x44ff3e['query']['includeAll']&&(_0x482206[_0x382b7c(0xd8)]=[{'all':!![]}]),_0x482206=_['merge']({},_0x482206,_0x44ff3e[_0x382b7c(0xf0)]),db['Tag'][_0x382b7c(0x107)](_0x482206)['then'](handleEntityNotFound(_0x374a46,null))[_0x382b7c(0x105)](respondWithResult(_0x374a46,null))[_0x382b7c(0xe9)](handleError(_0x374a46,null));},exports[a744_0x3c9d97(0xea)]=function(_0x312133,_0x1445f6){const _0x5d2185=a744_0x3c9d97;return db[_0x5d2185(0xf4)][_0x5d2185(0xea)](_0x312133['body'],{})[_0x5d2185(0x105)](function(_0x744caf){const _0x21ebac=_0x5d2185,_0x25f9a4=_0x312133[_0x21ebac(0x102)][_0x21ebac(0x109)]({'plain':!![]});if(!_0x25f9a4)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x25f9a4['role']==='user'){const _0x247c02=_0x744caf[_0x21ebac(0x109)]({'plain':!![]}),_0x939ecb='Tags';return db[_0x21ebac(0xe0)][_0x21ebac(0x107)]({'where':{'name':_0x939ecb,'userProfileId':_0x25f9a4[_0x21ebac(0xfe)]},'raw':!![]})['then'](function(_0xef3237){const _0x3f1d40=_0x21ebac;return _0xef3237&&_0xef3237[_0x3f1d40(0xf1)]===0x0?db[_0x3f1d40(0xef)][_0x3f1d40(0xea)]({'name':_0x247c02[_0x3f1d40(0xe7)],'resourceId':_0x247c02['id'],'type':_0xef3237['name'],'sectionId':_0xef3237['id']},{})['then'](function(){return _0x744caf;}):_0x744caf;})[_0x21ebac(0xe9)](function(_0x1007a4){const _0xd3e8c1=_0x21ebac;logger[_0xd3e8c1(0xe6)](_0xd3e8c1(0xed),_0x1007a4);throw _0x1007a4;});}return _0x744caf;})['then'](respondWithResult(_0x1445f6,0xc9))['catch'](handleError(_0x1445f6,null));},exports['update']=function(_0x5d76a7,_0x2728bb){const _0x1314d7=a744_0x3c9d97;return _0x5d76a7[_0x1314d7(0xf2)]['id']&&delete _0x5d76a7['body']['id'],db[_0x1314d7(0xf4)]['findOne']({'where':{'id':_0x5d76a7[_0x1314d7(0xf7)]['id']}})[_0x1314d7(0x105)](handleEntityNotFound(_0x2728bb,null))[_0x1314d7(0x105)](saveUpdates(_0x5d76a7['body'],null))[_0x1314d7(0x105)](respondWithResult(_0x2728bb,null))[_0x1314d7(0xe9)](handleError(_0x2728bb,null));},exports['destroy']=function(_0x4fc869,_0x319ca2){const _0x28b7b8=a744_0x3c9d97;return db[_0x28b7b8(0xf4)]['findOne']({'where':{'id':_0x4fc869[_0x28b7b8(0xf7)]['id']}})[_0x28b7b8(0x105)](handleEntityNotFound(_0x319ca2,null))[_0x28b7b8(0x105)](removeEntity(_0x319ca2,null))[_0x28b7b8(0xe9)](handleError(_0x319ca2,null));}; \ No newline at end of file diff --git a/server/api/tag/tag.model.js b/server/api/tag/tag.model.js index 6db855b..9e6a546 100644 --- a/server/api/tag/tag.model.js +++ b/server/api/tag/tag.model.js @@ -1 +1 @@ -const a623_0x39e7=['exports','define','./tag.attributes'];(function(_0x5141b3,_0x39e708){const _0x46db15=function(_0x3568d4){while(--_0x3568d4){_0x5141b3['push'](_0x5141b3['shift']());}};_0x46db15(++_0x39e708);}(a623_0x39e7,0x153));const a623_0x46db=function(_0x5141b3,_0x39e708){_0x5141b3=_0x5141b3-0x0;let _0x46db15=a623_0x39e7[_0x5141b3];return _0x46db15;};const _0x296a70=a623_0x46db;'use strict';const attributes=require(_0x296a70('0x2'));module[_0x296a70('0x0')]=function(_0x3568d4){const _0x3c8b56=_0x296a70,_0x361a56=_0x3568d4[_0x3c8b56('0x1')]('Tag',attributes,{'tableName':'tools_tags','paranoid':![],'indexes':[],'timestamps':!![]});return _0x361a56;}; \ No newline at end of file +const a745_0x279c=['./tag.attributes','sequelize','init','./tag.options','function','exports','Tag'];(function(_0x388803,_0xb30938){const _0x279c33=function(_0x577c40){while(--_0x577c40){_0x388803['push'](_0x388803['shift']());}};_0x279c33(++_0xb30938);}(a745_0x279c,0x7f));const a745_0x577c=function(_0x388803,_0xb30938){_0x388803=_0x388803-0xf3;let _0x279c33=a745_0x279c[_0x388803];return _0x279c33;};const a745_0x8e6430=a745_0x577c;'use strict';const {Model}=require(a745_0x8e6430(0xf3)),{attributes}=require(a745_0x8e6430(0xf9)),{options}=require(a745_0x8e6430(0xf5));class Tag extends Model{}function init(_0x4e42f3,_0x45fe55){const _0x37bce9=a745_0x8e6430,_0x15f53b=options(_0x4e42f3),_0x5530e0=typeof _0x45fe55===_0x37bce9(0xf6)?_0x45fe55(_0x15f53b):_0x15f53b;return Tag[_0x37bce9(0xf4)](attributes,_0x5530e0),Tag;}module[a745_0x8e6430(0xf7)][a745_0x8e6430(0xf8)]=Tag,module['exports'][a745_0x8e6430(0xf4)]=init; \ No newline at end of file diff --git a/server/api/tag/tag.options.js b/server/api/tag/tag.options.js new file mode 100644 index 0000000..03a0f2c --- /dev/null +++ b/server/api/tag/tag.options.js @@ -0,0 +1 @@ +var a746_0x5317=['exports','tools_tags','options'];(function(_0x5c16e1,_0x5e9b1a){var _0x531712=function(_0x322035){while(--_0x322035){_0x5c16e1['push'](_0x5c16e1['shift']());}};_0x531712(++_0x5e9b1a);}(a746_0x5317,0x121));var a746_0x3220=function(_0x5c16e1,_0x5e9b1a){_0x5c16e1=_0x5c16e1-0x19c;var _0x531712=a746_0x5317[_0x5c16e1];return _0x531712;};var a746_0x3ba5ab=a746_0x3220;function options(_0x38b298){var _0x6ffa92=a746_0x3220;return{'sequelize':_0x38b298,'tableName':_0x6ffa92(0x19c),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a746_0x3ba5ab(0x19e)][a746_0x3ba5ab(0x19d)]=options; \ No newline at end of file diff --git a/server/api/team/index.js b/server/api/team/index.js index 066e11c..fac6f5a 100644 --- a/server/api/team/index.js +++ b/server/api/team/index.js @@ -1 +1 @@ -const a624_0x220a=['../../components/auth/service','/:id/queues','getQueues','removeAgents','./team.controller','put','express','exports','update','create','show','post','/:id','isAuthenticated','/:id/users','get','Router','index','removeQueues','delete','getAgents'];(function(_0xfdfa20,_0x220a9b){const _0x51f279=function(_0x212243){while(--_0x212243){_0xfdfa20['push'](_0xfdfa20['shift']());}};_0x51f279(++_0x220a9b);}(a624_0x220a,0x71));const a624_0x51f2=function(_0xfdfa20,_0x220a9b){_0xfdfa20=_0xfdfa20-0x0;let _0x51f279=a624_0x220a[_0xfdfa20];return _0x51f279;};const _0x5b54f0=a624_0x51f2;'use strict';const express=require(_0x5b54f0('0x13')),router=express[_0x5b54f0('0x8')](),auth=require(_0x5b54f0('0xd')),controller=require(_0x5b54f0('0x11'));router[_0x5b54f0('0x7')]('/',auth[_0x5b54f0('0x5')](),controller[_0x5b54f0('0x9')]),router[_0x5b54f0('0x7')](_0x5b54f0('0x4'),auth[_0x5b54f0('0x5')](),controller[_0x5b54f0('0x2')]),router['get'](_0x5b54f0('0xe'),auth['isAuthenticated'](),controller[_0x5b54f0('0xf')]),router[_0x5b54f0('0x7')](_0x5b54f0('0x6'),auth[_0x5b54f0('0x5')](),controller[_0x5b54f0('0xc')]),router['post']('/',auth[_0x5b54f0('0x5')](),controller[_0x5b54f0('0x1')]),router[_0x5b54f0('0x3')](_0x5b54f0('0xe'),auth[_0x5b54f0('0x5')](),controller['addQueues']),router['post']('/:id/users',auth[_0x5b54f0('0x5')](),controller['addAgents']),router[_0x5b54f0('0x12')]('/:id',auth['isAuthenticated'](),controller[_0x5b54f0('0x0')]),router['delete'](_0x5b54f0('0x4'),auth[_0x5b54f0('0x5')](),controller['destroy']),router['delete']('/:id/queues',auth[_0x5b54f0('0x5')](),controller[_0x5b54f0('0xa')]),router[_0x5b54f0('0xb')]('/:id/users',auth[_0x5b54f0('0x5')](),controller[_0x5b54f0('0x10')]),module[_0x5b54f0('0x14')]=router; \ No newline at end of file +const a747_0x1da9=['getAgents','express','isAuthenticated','get','./team.controller','delete','post','Router','addQueues','../../components/auth/service','put','destroy','/:id','/:id/queues','getQueues'];(function(_0x734fc8,_0x3b5a7f){const _0x1da934=function(_0x39404f){while(--_0x39404f){_0x734fc8['push'](_0x734fc8['shift']());}};_0x1da934(++_0x3b5a7f);}(a747_0x1da9,0x133));const a747_0x3940=function(_0x734fc8,_0x3b5a7f){_0x734fc8=_0x734fc8-0x8e;let _0x1da934=a747_0x1da9[_0x734fc8];return _0x1da934;};const a747_0x20fe01=a747_0x3940;'use strict';const express=require(a747_0x20fe01(0x97)),router=express[a747_0x20fe01(0x8e)](),auth=require(a747_0x20fe01(0x90)),controller=require(a747_0x20fe01(0x9a));router[a747_0x20fe01(0x99)]('/',auth[a747_0x20fe01(0x98)](),controller['index']),router[a747_0x20fe01(0x99)](a747_0x20fe01(0x93),auth[a747_0x20fe01(0x98)](),controller['show']),router[a747_0x20fe01(0x99)](a747_0x20fe01(0x94),auth['isAuthenticated'](),controller[a747_0x20fe01(0x95)]),router['get']('/:id/users',auth[a747_0x20fe01(0x98)](),controller[a747_0x20fe01(0x96)]),router[a747_0x20fe01(0x9c)]('/',auth[a747_0x20fe01(0x98)](),controller['create']),router[a747_0x20fe01(0x9c)](a747_0x20fe01(0x94),auth[a747_0x20fe01(0x98)](),controller[a747_0x20fe01(0x8f)]),router[a747_0x20fe01(0x9c)]('/:id/users',auth['isAuthenticated'](),controller['addAgents']),router[a747_0x20fe01(0x91)]('/:id',auth[a747_0x20fe01(0x98)](),controller['update']),router[a747_0x20fe01(0x9b)]('/:id',auth[a747_0x20fe01(0x98)](),controller[a747_0x20fe01(0x92)]),router[a747_0x20fe01(0x9b)]('/:id/queues',auth[a747_0x20fe01(0x98)](),controller['removeQueues']),router[a747_0x20fe01(0x9b)]('/:id/users',auth['isAuthenticated'](),controller['removeAgents']),module['exports']=router; \ No newline at end of file diff --git a/server/api/team/team.attributes.js b/server/api/team/team.attributes.js index 20153e0..c68f3b3 100644 --- a/server/api/team/team.attributes.js +++ b/server/api/team/team.attributes.js @@ -1 +1 @@ -const a625_0x5ec1=['exports','sequelize','name','STRING'];(function(_0x47c180,_0x5ec1f8){const _0x3ba202=function(_0x15ad04){while(--_0x15ad04){_0x47c180['push'](_0x47c180['shift']());}};_0x3ba202(++_0x5ec1f8);}(a625_0x5ec1,0x1f4));const a625_0x3ba2=function(_0x47c180,_0x5ec1f8){_0x47c180=_0x47c180-0x0;let _0x3ba202=a625_0x5ec1[_0x47c180];return _0x3ba202;};const _0x479ab3=a625_0x3ba2;'use strict';const Sequelize=require(_0x479ab3('0x1'));module[_0x479ab3('0x0')]={'name':{'type':Sequelize[_0x479ab3('0x3')],'allowNull':![],'unique':_0x479ab3('0x2')},'description':{'type':Sequelize[_0x479ab3('0x3')]}}; \ No newline at end of file +const a748_0x245d=['STRING','attributes'];(function(_0x26be36,_0xdc99f2){const _0x245d4b=function(_0x199704){while(--_0x199704){_0x26be36['push'](_0x26be36['shift']());}};_0x245d4b(++_0xdc99f2);}(a748_0x245d,0x171));const a748_0x1997=function(_0x26be36,_0xdc99f2){_0x26be36=_0x26be36-0xfc;let _0x245d4b=a748_0x245d[_0x26be36];return _0x245d4b;};const a748_0xc2ae1f=a748_0x1997;'use strict';const {DataTypes}=require('sequelize'),attributes={'name':{'type':DataTypes[a748_0xc2ae1f(0xfd)],'allowNull':![],'unique':'name'},'description':{'type':DataTypes['STRING']}};module['exports'][a748_0xc2ae1f(0xfc)]=attributes; \ No newline at end of file diff --git a/server/api/team/team.controller.js b/server/api/team/team.controller.js index f872396..b09b1ad 100644 --- a/server/api/team/team.controller.js +++ b/server/api/team/team.controller.js @@ -1 +1 @@ -const a626_0x3794=['pick','../../mysqldb','userTeam:save','end','like','./team.socket','UserProfileSection','UserProfileResource','params','sendStatus','user','openchannel','User','model','all','voicePause','Teams','removeQueues','index','body','whatsapp','type','mail','send','merge','update','fieldName','addAgents','util','rows','userTeam:remove','includeAll','include','add','removeAgents','channel','filters','fields','Unable\x20to\x20retrieve\x20the\x20current\x20user','sms','show','interface','destroy','isNil','fax','query','order','options','map','json','register','findAll','lodash','get','ids','Unknown\x20channel','error','where','upsert','omit','catch','role','count','../../config/logger','chat','create','findOne','then','voice','SIP/%s','Queues','limit','name','Queue','Team','length','sequelize','nolimit','api','toLowerCase','attributes','undefined','stack','remove','emit','keys','UserVoiceQueueRt','VIRTUAL','getQueues','status','sort','filter','offset','capitalize','Content-Range','isValidChannel','getAgents','intersection','key','rawAttributes'];(function(_0xd83a12,_0x3794e5){const _0x2ba9a3=function(_0x54f608){while(--_0x54f608){_0xd83a12['push'](_0xd83a12['shift']());}};_0x2ba9a3(++_0x3794e5);}(a626_0x3794,0x159));const a626_0x2ba9=function(_0xd83a12,_0x3794e5){_0xd83a12=_0xd83a12-0x0;let _0x2ba9a3=a626_0x3794[_0xd83a12];return _0x2ba9a3;};const _0x167b31=a626_0x2ba9;'use strict';const util=require(_0x167b31('0x53')),_=require(_0x167b31('0x7')),qs=require('../../components/parsers/qs'),logger=require(_0x167b31('0x12'))(_0x167b31('0x21')),utils=require('../../config/utils'),{getSocket}=require('../../rediscache'),socket=getSocket(),db=require(_0x167b31('0x38'))['db'],{Op,ValidationError}=require(_0x167b31('0x1f'));require(_0x167b31('0x3c'))[_0x167b31('0x5')](socket);function respondWithStatusCode(_0x54f608,_0x35d790){return _0x35d790=_0x35d790||0xcc,function(_0x23b0ce){const _0x572cf2=a626_0x2ba9;if(_0x23b0ce)return _0x54f608[_0x572cf2('0x40')](_0x35d790);return _0x54f608[_0x572cf2('0x2c')](_0x35d790)[_0x572cf2('0x3a')]();};}function respondWithResult(_0x1bc2d1,_0x3ea46a){return _0x3ea46a=_0x3ea46a||0xc8,function(_0x463599){const _0x41456a=a626_0x2ba9;if(_0x463599)return _0x1bc2d1['status'](_0x3ea46a)[_0x41456a('0x4')](_0x463599);};}function respondWithFilteredResult(_0x58bd80,_0x1ca534){return function(_0x347131){const _0x51de55=a626_0x2ba9;if(_0x347131){const _0x542d9d=_0x347131[_0x51de55('0x11')],_0x26578a=_0x1ca534[_0x51de55('0x2f')];let _0x1fec8b=_0x1ca534[_0x51de55('0x2f')]+_0x1ca534[_0x51de55('0x1a')],_0x41406;return _0x1fec8b>=_0x542d9d?(_0x1fec8b=_0x542d9d,_0x41406=0xc8):_0x41406=0xce,_0x58bd80[_0x51de55('0x2c')](_0x41406),_0x58bd80['set'](_0x51de55('0x31'),_0x26578a+'-'+_0x1fec8b+'/'+_0x542d9d)[_0x51de55('0x4')](_0x347131);}return null;};}function saveUpdates(_0x49af57){return function(_0x232ea5){if(_0x232ea5)return _0x232ea5['update'](_0x49af57)['then'](function(_0x164225){return _0x164225;});return null;};}function removeEntity(_0x39d616){return function(_0x565f01){const _0x53e31b=a626_0x2ba9;if(_0x565f01)return _0x565f01['destroy']()[_0x53e31b('0x16')](function(){const _0x209615=_0x53e31b,_0xdbd457=_0x565f01[_0x209615('0x8')]({'plain':!![]}),_0x3ca415='Teams';return db[_0x209615('0x3e')][_0x209615('0x61')]({'where':{'type':_0x3ca415,'resourceId':_0xdbd457['id']}})[_0x209615('0x16')](function(){return _0x565f01;});})[_0x53e31b('0x16')](function(){const _0x345401=_0x53e31b;_0x39d616[_0x345401('0x2c')](0xcc)[_0x345401('0x3a')]();});};}function handleEntityNotFound(_0x3e0f26){return function(_0x402fbe){const _0x5a9826=a626_0x2ba9;return!_0x402fbe&&_0x3e0f26[_0x5a9826('0x40')](0x194),_0x402fbe;};}function handleError(_0x463f96,_0xb4f135){return _0xb4f135=_0xb4f135||0x1f4,function(_0x14b032){const _0x13a1e1=a626_0x2ba9;logger['error'](_0x14b032[_0x13a1e1('0x25')]),_0x14b032[_0x13a1e1('0x1b')]&&delete _0x14b032['name'],_0x463f96[_0x13a1e1('0x2c')](_0xb4f135)[_0x13a1e1('0x4e')](_0x14b032);};}exports[_0x167b31('0x49')]=function(_0x298181,_0x1f920a){const _0x24de59=_0x167b31;let _0x4c2413={};const _0x50a01b={},_0x164b21={'count':0x0,'rows':[]},_0x46a70a=_[_0x24de59('0x3')](db['Team'][_0x24de59('0x36')],function(_0x45ef06){const _0x44a555=_0x24de59;return{'name':_0x45ef06[_0x44a555('0x51')],'type':_0x45ef06[_0x44a555('0x4c')][_0x44a555('0x35')]};});_0x50a01b[_0x24de59('0x44')]=_['map'](_0x46a70a,_0x24de59('0x1b')),_0x50a01b['query']=_['keys'](_0x298181['query']),_0x50a01b[_0x24de59('0x5b')]=_[_0x24de59('0x34')](_0x50a01b[_0x24de59('0x44')],_0x50a01b[_0x24de59('0x0')]),_0x4c2413['attributes']=_['intersection'](_0x50a01b[_0x24de59('0x44')],qs[_0x24de59('0x5c')](_0x298181[_0x24de59('0x0')][_0x24de59('0x5c')])),_0x4c2413[_0x24de59('0x23')]=_0x4c2413[_0x24de59('0x23')][_0x24de59('0x1e')]?_0x4c2413[_0x24de59('0x23')]:_0x50a01b['model'];typeof _0x298181[_0x24de59('0x0')]['nolimit']===_0x24de59('0x24')&&(_0x4c2413[_0x24de59('0x1a')]=qs[_0x24de59('0x1a')](_0x298181[_0x24de59('0x0')][_0x24de59('0x1a')]),_0x4c2413[_0x24de59('0x2f')]=qs[_0x24de59('0x2f')](_0x298181[_0x24de59('0x0')][_0x24de59('0x2f')]));_0x4c2413[_0x24de59('0x1')]=qs['sort'](_0x298181[_0x24de59('0x0')][_0x24de59('0x2d')]),_0x4c2413[_0x24de59('0xc')]=qs[_0x24de59('0x5b')](_[_0x24de59('0x37')](_0x298181[_0x24de59('0x0')],_0x50a01b[_0x24de59('0x5b')]),_0x46a70a);_0x298181[_0x24de59('0x0')][_0x24de59('0x2e')]&&(_0x4c2413['where']=_['merge'](_0x4c2413[_0x24de59('0xc')],{[Op['or']]:_[_0x24de59('0x3')](_0x46a70a,function(_0x2821f5){const _0x5efeb=_0x24de59;if(_0x2821f5[_0x5efeb('0x4c')]!==_0x5efeb('0x2a')){const _0x23d852={};return _0x23d852[_0x2821f5[_0x5efeb('0x1b')]]={[Op['like']]:'%'+_0x298181['query']['filter']+'%'},_0x23d852;}})}));_0x4c2413=_[_0x24de59('0x4f')]({},_0x4c2413,_0x298181['options']);const _0x37307f={'where':_0x4c2413[_0x24de59('0xc')]};return db['Team'][_0x24de59('0x11')](_0x37307f)['then'](function(_0x25d668){const _0x4e9c44=_0x24de59;return _0x164b21[_0x4e9c44('0x11')]=_0x25d668,_0x298181[_0x4e9c44('0x0')][_0x4e9c44('0x56')]&&(_0x4c2413[_0x4e9c44('0x57')]=[{'all':!![]}]),db[_0x4e9c44('0x1d')]['findAll'](_0x4c2413);})[_0x24de59('0x16')](function(_0x3ff0f8){const _0x258b86=_0x24de59;return _0x164b21[_0x258b86('0x54')]=_0x3ff0f8,_0x164b21;})[_0x24de59('0x16')](respondWithFilteredResult(_0x1f920a,_0x4c2413))[_0x24de59('0xf')](handleError(_0x1f920a,null));},exports[_0x167b31('0x5f')]=function(_0x27a5f0,_0x3fa4e2){const _0x4ca548=_0x167b31;let _0x474256={'raw':![],'where':{'id':_0x27a5f0['params']['id']}};const _0x32ab81={};return _0x32ab81[_0x4ca548('0x44')]=_['keys'](db[_0x4ca548('0x1d')]['rawAttributes']),_0x32ab81['query']=_['keys'](_0x27a5f0['query']),_0x32ab81[_0x4ca548('0x5b')]=_[_0x4ca548('0x34')](_0x32ab81[_0x4ca548('0x44')],_0x32ab81[_0x4ca548('0x0')]),_0x474256['attributes']=_['intersection'](_0x32ab81[_0x4ca548('0x44')],qs[_0x4ca548('0x5c')](_0x27a5f0['query']['fields'])),_0x474256['attributes']=_0x474256[_0x4ca548('0x23')][_0x4ca548('0x1e')]?_0x474256['attributes']:_0x32ab81[_0x4ca548('0x44')],_0x27a5f0['query'][_0x4ca548('0x56')]&&(_0x474256['include']=[{'all':!![]}]),_0x474256=_['merge']({},_0x474256,_0x27a5f0['options']),db[_0x4ca548('0x1d')][_0x4ca548('0x15')](_0x474256)[_0x4ca548('0x16')](handleEntityNotFound(_0x3fa4e2,null))[_0x4ca548('0x16')](respondWithResult(_0x3fa4e2,null))['catch'](handleError(_0x3fa4e2,null));},exports[_0x167b31('0x14')]=function(_0xfd4193,_0x4fb64b){const _0x82bf58=_0x167b31;return db['Team'][_0x82bf58('0x14')](_0xfd4193['body'],{})[_0x82bf58('0x16')](function(_0x6da405){const _0x39ca8b=_0x82bf58,_0x209aad=_0xfd4193[_0x39ca8b('0x41')][_0x39ca8b('0x8')]({'plain':!![]});if(!_0x209aad)throw new Error(_0x39ca8b('0x5d'));if(_0x209aad[_0x39ca8b('0x10')]===_0x39ca8b('0x41')){const _0x24e5b8=_0x6da405[_0x39ca8b('0x8')]({'plain':!![]}),_0x3f738f=_0x39ca8b('0x47');return db[_0x39ca8b('0x3d')][_0x39ca8b('0x15')]({'where':{'name':_0x3f738f,'userProfileId':_0x209aad['userProfileId']},'raw':!![]})['then'](function(_0x57b087){const _0x2ddcd5=_0x39ca8b;return _0x57b087&&_0x57b087['autoAssociation']===0x0?db[_0x2ddcd5('0x3e')][_0x2ddcd5('0x14')]({'name':_0x24e5b8[_0x2ddcd5('0x1b')],'resourceId':_0x24e5b8['id'],'type':_0x57b087[_0x2ddcd5('0x1b')],'sectionId':_0x57b087['id']},{})['then'](function(){return _0x6da405;}):_0x6da405;})[_0x39ca8b('0xf')](function(_0x5b9e70){const _0x33b83f=_0x39ca8b;logger[_0x33b83f('0xb')]('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0x5b9e70);throw _0x5b9e70;});}return _0x6da405;})[_0x82bf58('0x16')](respondWithResult(_0x4fb64b,0xc9))[_0x82bf58('0xf')](handleError(_0x4fb64b,null));},exports[_0x167b31('0x50')]=function(_0x10b110,_0xa342cf){const _0xe73db3=_0x167b31;return _0x10b110[_0xe73db3('0x4a')]['id']&&delete _0x10b110['body']['id'],db[_0xe73db3('0x1d')]['findOne']({'where':{'id':_0x10b110[_0xe73db3('0x3f')]['id']}})['then'](handleEntityNotFound(_0xa342cf,null))[_0xe73db3('0x16')](saveUpdates(_0x10b110[_0xe73db3('0x4a')],null))[_0xe73db3('0x16')](respondWithResult(_0xa342cf,null))[_0xe73db3('0xf')](handleError(_0xa342cf,null));},exports[_0x167b31('0x61')]=function(_0x2ada8d,_0x43c341){const _0x9b55e3=_0x167b31;return db[_0x9b55e3('0x1d')][_0x9b55e3('0x15')]({'where':{'id':_0x2ada8d[_0x9b55e3('0x3f')]['id']}})[_0x9b55e3('0x16')](handleEntityNotFound(_0x43c341,null))[_0x9b55e3('0x16')](removeEntity(_0x43c341,null))[_0x9b55e3('0xf')](handleError(_0x43c341,null));},exports[_0x167b31('0x2b')]=function(_0x13ba06,_0x19dd20){const _0x759e46=_0x167b31;return db['Team'][_0x759e46('0x15')]({'where':{'id':_0x13ba06[_0x759e46('0x3f')]['id']}})[_0x759e46('0x16')](handleEntityNotFound(_0x19dd20,null))[_0x759e46('0x16')](function(_0x1db6fc){const _0x46d65e=_0x759e46;if(!_0x13ba06[_0x46d65e('0x0')]['channel']||!utils[_0x46d65e('0x32')](_0x13ba06['query']['channel']))throw new ValidationError(_0x46d65e('0xa'));let _0x4c2243={};const _0x311f13={};return _0x311f13[_0x46d65e('0x44')]=_[_0x46d65e('0x28')](db[_['capitalize'](_0x13ba06[_0x46d65e('0x0')][_0x46d65e('0x5a')][_0x46d65e('0x22')]())+_0x46d65e('0x1c')][_0x46d65e('0x36')]),_0x311f13[_0x46d65e('0x0')]=_[_0x46d65e('0x28')](_0x13ba06[_0x46d65e('0x0')]),_0x311f13['filters']=_[_0x46d65e('0x34')](_0x311f13[_0x46d65e('0x44')],_0x311f13[_0x46d65e('0x0')]),_0x4c2243[_0x46d65e('0x23')]=_[_0x46d65e('0x34')](_0x311f13['model'],qs['fields'](_0x13ba06[_0x46d65e('0x0')][_0x46d65e('0x5c')])),_0x4c2243[_0x46d65e('0x23')]=_0x4c2243[_0x46d65e('0x23')][_0x46d65e('0x1e')]?_0x4c2243['attributes']:_0x311f13[_0x46d65e('0x44')],_0x4c2243[_0x46d65e('0x1a')]=qs['limit'](_0x13ba06['query'][_0x46d65e('0x1a')]),_0x4c2243[_0x46d65e('0x2f')]=qs[_0x46d65e('0x2f')](_0x13ba06[_0x46d65e('0x0')][_0x46d65e('0x2f')]),_0x4c2243[_0x46d65e('0x1')]=qs[_0x46d65e('0x2d')](_0x13ba06['query'][_0x46d65e('0x2d')]),_0x4c2243[_0x46d65e('0xc')]=qs[_0x46d65e('0x5b')](_[_0x46d65e('0x37')](_0x13ba06['query'],_0x311f13[_0x46d65e('0x5b')])),_0x4c2243=_[_0x46d65e('0x4f')]({},_0x4c2243,_0x13ba06[_0x46d65e('0x2')]),_0x1db6fc[_0x46d65e('0x8')+_[_0x46d65e('0x30')](_0x13ba06[_0x46d65e('0x0')][_0x46d65e('0x5a')][_0x46d65e('0x22')]())+_0x46d65e('0x19')](_0x4c2243);})[_0x759e46('0x16')](respondWithResult(_0x19dd20,null))[_0x759e46('0xf')](handleError(_0x19dd20,null));},exports['addQueues']=function(_0x28d12b,_0x5139fd){const _0x2bbb86=_0x167b31;return db[_0x2bbb86('0x1d')][_0x2bbb86('0x15')]({'where':{'id':_0x28d12b[_0x2bbb86('0x3f')]['id']}})[_0x2bbb86('0x16')](function(_0x3d733d){const _0x55bbb2=_0x2bbb86;if(_0x3d733d){if(!_0x28d12b[_0x55bbb2('0x4a')][_0x55bbb2('0x5a')]||!utils[_0x55bbb2('0x32')](_0x28d12b[_0x55bbb2('0x4a')][_0x55bbb2('0x5a')]))throw new ValidationError(_0x55bbb2('0xa'));return _0x3d733d[_0x55bbb2('0x58')+_[_0x55bbb2('0x30')](_0x28d12b[_0x55bbb2('0x4a')][_0x55bbb2('0x5a')][_0x55bbb2('0x22')]())+_0x55bbb2('0x19')](_0x28d12b[_0x55bbb2('0x4a')][_0x55bbb2('0x9')]);}return null;})[_0x2bbb86('0x16')](handleEntityNotFound(_0x5139fd,null))[_0x2bbb86('0x16')](respondWithStatusCode(_0x5139fd,null))[_0x2bbb86('0xf')](handleError(_0x5139fd,null));},exports[_0x167b31('0x48')]=function(_0x729ca4,_0x49039c){const _0x168fd7=_0x167b31;return db[_0x168fd7('0x1d')][_0x168fd7('0x15')]({'where':{'id':_0x729ca4[_0x168fd7('0x3f')]['id']}})[_0x168fd7('0x16')](function(_0x218155){const _0x1286e5=_0x168fd7;if(_0x218155){if(!_0x729ca4[_0x1286e5('0x0')][_0x1286e5('0x5a')]||!utils['isValidChannel'](_0x729ca4[_0x1286e5('0x0')][_0x1286e5('0x5a')]))throw new ValidationError(_0x1286e5('0xa'));return _0x218155[_0x1286e5('0x26')+_[_0x1286e5('0x30')](_0x729ca4['query'][_0x1286e5('0x5a')][_0x1286e5('0x22')]())+_0x1286e5('0x19')](_0x729ca4['query']['ids']);}return null;})[_0x168fd7('0x16')](handleEntityNotFound(_0x49039c,null))[_0x168fd7('0x16')](respondWithStatusCode(_0x49039c,null))[_0x168fd7('0xf')](handleError(_0x49039c,null));},exports[_0x167b31('0x52')]=function(_0x544adf,_0x5bc171){const _0xb47643=_0x167b31;return db[_0xb47643('0x1d')][_0xb47643('0x15')]({'where':{'id':_0x544adf['params']['id']}})[_0xb47643('0x16')](function(_0x527d75){const _0x65a006=_0xb47643;if(_0x527d75){const _0x5b5552=['voice','chat',_0x65a006('0x4d'),_0x65a006('0x5e'),'fax',_0x65a006('0x42'),_0x65a006('0x4b')];return Promise[_0x65a006('0x45')](_0x5b5552[_0x65a006('0x3')](async _0x239515=>{const _0x1c6d95=_0x65a006,_0x548588=await _0x527d75['get'+_[_0x1c6d95('0x30')](_0x239515)+_0x1c6d95('0x19')]({'attributes':['id','name']});return _0x548588[_0x1c6d95('0x3')](async _0xb24b8=>{const _0x2d29cf=_0x1c6d95;await _0xb24b8[_0x2d29cf('0x52')](_0x544adf['body'][_0x2d29cf('0x9')]);if(_0x239515==='voice'){const _0x48de7e=await db['User'][_0x2d29cf('0x6')]({'where':{'id':_0x544adf[_0x2d29cf('0x4a')][_0x2d29cf('0x9')]},'attributes':['id',_0x2d29cf('0x1b'),'online',_0x2d29cf('0x46'),_0x2d29cf('0x60')],'raw':!![]}),_0x2aca8e=_[_0x2d29cf('0x2e')](_0x48de7e,{'online':0x1}),_0x19d5e7=_0x2aca8e[_0x2d29cf('0x3')](_0x5941fe=>{const _0x1ca701=_0x2d29cf;return db[_0x1ca701('0x29')][_0x1ca701('0xd')]({'membername':_0x5941fe[_0x1ca701('0x1b')],'UserId':_0x5941fe['id'],'queue_name':_0xb24b8[_0x1ca701('0x1b')],'VoiceQueueId':_0xb24b8['id'],'interface':_[_0x1ca701('0x62')](_0x5941fe[_0x1ca701('0x60')])?util['format'](_0x1ca701('0x18'),_0x5941fe[_0x1ca701('0x1b')]):_0x5941fe[_0x1ca701('0x60')],'paused':_0x5941fe[_0x1ca701('0x46')]||![],'penalty':0x0});});return Promise[_0x2d29cf('0x45')](_0x19d5e7);}}),_0x527d75;}))[_0x65a006('0x16')](function(){return _0x527d75;});}})['then'](function(_0xb121d3){const _0x1ece4d=_0xb47643;if(_0xb121d3)return _0xb121d3['addAgents'](_0x544adf[_0x1ece4d('0x4a')][_0x1ece4d('0x9')],{'through':_[_0x1ece4d('0xe')](_0x544adf[_0x1ece4d('0x4a')],['ids','id'])})['then'](function(_0x4040c4){const _0x1f404d=_0x1ece4d;for(let _0x3acaaa=0x0;_0x3acaaa<_0x544adf[_0x1f404d('0x4a')]['ids'][_0x1f404d('0x1e')];_0x3acaaa+=0x1){socket['emit'](_0x1f404d('0x39'),{'UserId':_0x544adf['body']['ids'][_0x3acaaa],'TeamId':_0x544adf[_0x1f404d('0x3f')]['id']});}return _0x4040c4;});})['then'](respondWithResult(_0x5bc171,null))['catch'](handleError(_0x5bc171,null));},exports[_0x167b31('0x59')]=function(_0x2b4cfc,_0x27b481){const _0x3a2580=_0x167b31;return db[_0x3a2580('0x1d')][_0x3a2580('0x15')]({'where':{'id':_0x2b4cfc[_0x3a2580('0x3f')]['id']}})[_0x3a2580('0x16')](handleEntityNotFound(_0x27b481,null))['then'](function(_0x2192a7){const _0xfbdfa0=_0x3a2580;if(_0x2192a7){const _0x321b95=['voice',_0xfbdfa0('0x13'),'mail','sms',_0xfbdfa0('0x63'),'openchannel',_0xfbdfa0('0x4b')];return Promise['all'](_0x321b95[_0xfbdfa0('0x3')](async _0x4ca9ce=>{const _0x29b06c=_0xfbdfa0,_0x4a3e63=await _0x2192a7[_0x29b06c('0x8')+_[_0x29b06c('0x30')](_0x4ca9ce)+_0x29b06c('0x19')]({'attributes':['id','name']});return _0x4a3e63[_0x29b06c('0x3')](async _0x11f211=>{const _0x107714=_0x29b06c;await _0x11f211[_0x107714('0x59')](_0x2b4cfc[_0x107714('0x0')][_0x107714('0x9')]),_0x4ca9ce===_0x107714('0x17')&&await db['UserVoiceQueueRt'][_0x107714('0x61')]({'where':{'VoiceQueueId':_0x11f211['id'],'UserId':_0x2b4cfc[_0x107714('0x0')]['ids']}});}),_0x2192a7;}))['then'](function(){return _0x2192a7;});}})[_0x3a2580('0x16')](function(_0x4c6eb7){const _0x40e21d=_0x3a2580;if(_0x4c6eb7)return _0x4c6eb7[_0x40e21d('0x59')](_0x2b4cfc[_0x40e21d('0x0')][_0x40e21d('0x9')])[_0x40e21d('0x16')](function(){const _0x4b286c=_0x40e21d;if(_['isArray'](_0x2b4cfc[_0x4b286c('0x0')]['ids']))for(let _0x40aa0a=0x0;_0x40aa0a<_0x2b4cfc['query'][_0x4b286c('0x9')][_0x4b286c('0x1e')];_0x40aa0a+=0x1){socket[_0x4b286c('0x27')]('userTeam:remove',{'UserId':Number(_0x2b4cfc['query']['ids'][_0x40aa0a]),'TeamId':Number(_0x2b4cfc[_0x4b286c('0x3f')]['id'])});}else socket['emit'](_0x4b286c('0x55'),{'UserId':Number(_0x2b4cfc['query'][_0x4b286c('0x9')]),'TeamId':Number(_0x2b4cfc['params']['id'])});});})[_0x3a2580('0x16')](respondWithStatusCode(_0x27b481,null))[_0x3a2580('0xf')](handleError(_0x27b481,null));},exports[_0x167b31('0x33')]=function(_0x526cbc,_0x2e9ac9){const _0x5c9a18=_0x167b31;let _0xdaa5e1={};const _0x30c07d={};let _0x23ba93,_0x42488a;return db['Team']['findOne']({'where':{'id':_0x526cbc[_0x5c9a18('0x3f')]['id']}})['then'](handleEntityNotFound(_0x2e9ac9,null))[_0x5c9a18('0x16')](function(_0x6d3c06){const _0x254337=_0x5c9a18;if(_0x6d3c06)return _0x23ba93=_0x6d3c06,_0x30c07d['model']=_['keys'](db[_0x254337('0x43')][_0x254337('0x36')]),_0x30c07d[_0x254337('0x0')]=_[_0x254337('0x28')](_0x526cbc[_0x254337('0x0')]),_0x30c07d['filters']=_[_0x254337('0x34')](_0x30c07d[_0x254337('0x44')],_0x30c07d[_0x254337('0x0')]),_0xdaa5e1[_0x254337('0x23')]=_[_0x254337('0x34')](_0x30c07d[_0x254337('0x44')],qs[_0x254337('0x5c')](_0x526cbc[_0x254337('0x0')]['fields'])),_0xdaa5e1[_0x254337('0x23')]=_0xdaa5e1[_0x254337('0x23')][_0x254337('0x1e')]?_0xdaa5e1[_0x254337('0x23')]:_0x30c07d[_0x254337('0x44')],_0xdaa5e1[_0x254337('0x1')]=qs[_0x254337('0x2d')](_0x526cbc[_0x254337('0x0')]['sort']),_0xdaa5e1['where']=qs[_0x254337('0x5b')](_[_0x254337('0x37')](_0x526cbc[_0x254337('0x0')],_0x30c07d['filters'])),_0x526cbc['query'][_0x254337('0x2e')]&&(_0xdaa5e1['where']=_['merge'](_0xdaa5e1['where'],{[Op['or']]:_['map'](_0xdaa5e1[_0x254337('0x23')],function(_0x95da98){const _0x1bb90d=_0x254337,_0xb00e00={};return _0xb00e00[_0x95da98]={[Op[_0x1bb90d('0x3b')]]:'%'+_0x526cbc[_0x1bb90d('0x0')]['filter']+'%'},_0xb00e00;})})),_0xdaa5e1=_[_0x254337('0x4f')]({},_0xdaa5e1,_0x526cbc['options']),_0x23ba93[_0x254337('0x33')](_0xdaa5e1);})['then'](function(_0x1cbe7d){const _0x17fb3b=_0x5c9a18;if(_0x1cbe7d)return _0x42488a=_0x1cbe7d['length'],typeof _0x526cbc['query'][_0x17fb3b('0x20')]===_0x17fb3b('0x24')&&(_0xdaa5e1['limit']=qs[_0x17fb3b('0x1a')](_0x526cbc['query']['limit']),_0xdaa5e1[_0x17fb3b('0x2f')]=qs[_0x17fb3b('0x2f')](_0x526cbc['query'][_0x17fb3b('0x2f')])),_0x23ba93[_0x17fb3b('0x33')](_0xdaa5e1);})['then'](function(_0x4206b2){if(_0x4206b2)return _0x4206b2?{'count':_0x42488a,'rows':_0x4206b2}:null;})[_0x5c9a18('0x16')](respondWithResult(_0x2e9ac9,null))[_0x5c9a18('0xf')](handleError(_0x2e9ac9,null));}; \ No newline at end of file +const a749_0x1dde=['isValidChannel','type','UserProfileSection','removeAgents','order','create','offset','sms','interface','userProfileId','User','autoAssociation','then','../../config/logger','fax','role','../../rediscache','mail','name','capitalize','status','Queues','Unknown\x20channel','isNil','merge','Teams','fields','fieldName','./team.socket','lodash','stack','openchannel','filter','map','end','rawAttributes','attributes','voicePause','includeAll','params','user','chat','addQueues','options','userTeam:save','toLowerCase','Unable\x20to\x20retrieve\x20the\x20current\x20user','pick','findAll','../../components/parsers/qs','set','nolimit','like','removeQueues','UserProfileResource','voice','Team','util','count','update','remove','../../mysqldb','all','online','intersection','getQueues','upsert','filters','body','undefined','sort','whatsapp','destroy','addAgents','emit','where','channel','error','include','sendStatus','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','get','keys','findOne','limit','userTeam:remove','length','model','Queue','VIRTUAL','json','api','UserVoiceQueueRt','catch','ids','getAgents','key','query'];(function(_0x4ed498,_0x2a8e34){const _0x1dded0=function(_0x3cb849){while(--_0x3cb849){_0x4ed498['push'](_0x4ed498['shift']());}};_0x1dded0(++_0x2a8e34);}(a749_0x1dde,0x18c));const a749_0x3cb8=function(_0x4ed498,_0x2a8e34){_0x4ed498=_0x4ed498-0x1df;let _0x1dded0=a749_0x1dde[_0x4ed498];return _0x1dded0;};const a749_0x5ea838=a749_0x3cb8;'use strict';const util=require(a749_0x5ea838(0x214)),_=require(a749_0x5ea838(0x1f8)),qs=require(a749_0x5ea838(0x20c)),logger=require(a749_0x5ea838(0x1e8))(a749_0x5ea838(0x236)),utils=require('../../config/utils'),{getSocket}=require(a749_0x5ea838(0x1eb)),socket=getSocket(),{db}=require(a749_0x5ea838(0x218)),{Op,ValidationError}=require('sequelize');require(a749_0x5ea838(0x1f7))['register'](socket);function respondWithStatusCode(_0x256d03,_0x1cbfec){return _0x1cbfec=_0x1cbfec||0xcc,function(_0x58b448){const _0x3ce885=a749_0x3cb8;if(_0x58b448)return _0x256d03[_0x3ce885(0x22a)](_0x1cbfec);return _0x256d03[_0x3ce885(0x1ef)](_0x1cbfec)[_0x3ce885(0x1fd)]();};}function respondWithResult(_0x3d2df3,_0x288e44){return _0x288e44=_0x288e44||0xc8,function(_0x385656){const _0xc121ef=a749_0x3cb8;if(_0x385656)return _0x3d2df3['status'](_0x288e44)[_0xc121ef(0x235)](_0x385656);};}function respondWithFilteredResult(_0x7aa287,_0xc0764b){return function(_0x1b761a){const _0x4aab4a=a749_0x3cb8;if(_0x1b761a){const _0xd4f03f=_0x1b761a['count'],_0x4f4d2f=_0xc0764b[_0x4aab4a(0x1e1)];let _0x3062da=_0xc0764b['offset']+_0xc0764b[_0x4aab4a(0x22f)],_0x28a883;return _0x3062da>=_0xd4f03f?(_0x3062da=_0xd4f03f,_0x28a883=0xc8):_0x28a883=0xce,_0x7aa287[_0x4aab4a(0x1ef)](_0x28a883),_0x7aa287[_0x4aab4a(0x20d)]('Content-Range',_0x4f4d2f+'-'+_0x3062da+'/'+_0xd4f03f)['json'](_0x1b761a);}return null;};}function saveUpdates(_0x153b0a){return function(_0x1bdfd5){const _0xc3cc7a=a749_0x3cb8;if(_0x1bdfd5)return _0x1bdfd5['update'](_0x153b0a)[_0xc3cc7a(0x1e7)](function(_0x58dd13){return _0x58dd13;});return null;};}function removeEntity(_0xec0584){return function(_0x2e078e){const _0x4d17a8=a749_0x3cb8;if(_0x2e078e)return _0x2e078e[_0x4d17a8(0x223)]()[_0x4d17a8(0x1e7)](function(){const _0x49f97f=_0x4d17a8,_0x1939db=_0x2e078e[_0x49f97f(0x22c)]({'plain':!![]}),_0x3bb024=_0x49f97f(0x1f4);return db[_0x49f97f(0x211)][_0x49f97f(0x223)]({'where':{'type':_0x3bb024,'resourceId':_0x1939db['id']}})[_0x49f97f(0x1e7)](function(){return _0x2e078e;});})['then'](function(){const _0x44011d=_0x4d17a8;_0xec0584[_0x44011d(0x1ef)](0xcc)['end']();});};}function handleEntityNotFound(_0x2b6954){return function(_0xbaacb7){const _0xa17345=a749_0x3cb8;return!_0xbaacb7&&_0x2b6954[_0xa17345(0x22a)](0x194),_0xbaacb7;};}function handleError(_0x220256,_0x1752b4){return _0x1752b4=_0x1752b4||0x1f4,function(_0xd0bf29){const _0x57aef8=a749_0x3cb8;logger['error'](_0xd0bf29[_0x57aef8(0x1f9)]),_0xd0bf29['name']&&delete _0xd0bf29['name'],_0x220256[_0x57aef8(0x1ef)](_0x1752b4)['send'](_0xd0bf29);};}exports['index']=function(_0x4fd1f6,_0x5f5d96){const _0x46ff35=a749_0x5ea838;let _0x1e2912={};const _0x5e56c0={},_0x24353a={'count':0x0,'rows':[]},_0x447efe=_[_0x46ff35(0x1fc)](db[_0x46ff35(0x213)][_0x46ff35(0x1fe)],function(_0x5ed9b6){const _0x59c8be=_0x46ff35;return{'name':_0x5ed9b6[_0x59c8be(0x1f6)],'type':_0x5ed9b6[_0x59c8be(0x23e)][_0x59c8be(0x23b)]};});_0x5e56c0[_0x46ff35(0x232)]=_['map'](_0x447efe,_0x46ff35(0x1ed)),_0x5e56c0[_0x46ff35(0x23c)]=_[_0x46ff35(0x22d)](_0x4fd1f6[_0x46ff35(0x23c)]),_0x5e56c0[_0x46ff35(0x21e)]=_[_0x46ff35(0x21b)](_0x5e56c0[_0x46ff35(0x232)],_0x5e56c0[_0x46ff35(0x23c)]),_0x1e2912[_0x46ff35(0x1ff)]=_[_0x46ff35(0x21b)](_0x5e56c0['model'],qs[_0x46ff35(0x1f5)](_0x4fd1f6[_0x46ff35(0x23c)][_0x46ff35(0x1f5)])),_0x1e2912[_0x46ff35(0x1ff)]=_0x1e2912['attributes'][_0x46ff35(0x231)]?_0x1e2912[_0x46ff35(0x1ff)]:_0x5e56c0[_0x46ff35(0x232)];typeof _0x4fd1f6[_0x46ff35(0x23c)][_0x46ff35(0x20e)]===_0x46ff35(0x220)&&(_0x1e2912[_0x46ff35(0x22f)]=qs[_0x46ff35(0x22f)](_0x4fd1f6['query'][_0x46ff35(0x22f)]),_0x1e2912['offset']=qs[_0x46ff35(0x1e1)](_0x4fd1f6[_0x46ff35(0x23c)]['offset']));_0x1e2912[_0x46ff35(0x1df)]=qs[_0x46ff35(0x221)](_0x4fd1f6[_0x46ff35(0x23c)][_0x46ff35(0x221)]),_0x1e2912[_0x46ff35(0x226)]=qs[_0x46ff35(0x21e)](_['pick'](_0x4fd1f6[_0x46ff35(0x23c)],_0x5e56c0[_0x46ff35(0x21e)]),_0x447efe);_0x4fd1f6[_0x46ff35(0x23c)]['filter']&&(_0x1e2912['where']=_[_0x46ff35(0x1f3)](_0x1e2912[_0x46ff35(0x226)],{[Op['or']]:_[_0x46ff35(0x1fc)](_0x447efe,function(_0xb5e67a){const _0x3f9ce9=_0x46ff35;if(_0xb5e67a[_0x3f9ce9(0x23e)]!==_0x3f9ce9(0x234)){const _0x4513c0={};return _0x4513c0[_0xb5e67a['name']]={[Op[_0x3f9ce9(0x20f)]]:'%'+_0x4fd1f6[_0x3f9ce9(0x23c)][_0x3f9ce9(0x1fb)]+'%'},_0x4513c0;}})}));_0x1e2912=_['merge']({},_0x1e2912,_0x4fd1f6[_0x46ff35(0x206)]);const _0x18180f={'where':_0x1e2912[_0x46ff35(0x226)]};return db[_0x46ff35(0x213)][_0x46ff35(0x215)](_0x18180f)['then'](function(_0x46b975){const _0x1abff7=_0x46ff35;return _0x24353a[_0x1abff7(0x215)]=_0x46b975,_0x4fd1f6[_0x1abff7(0x23c)][_0x1abff7(0x201)]&&(_0x1e2912['include']=[{'all':!![]}]),db['Team'][_0x1abff7(0x20b)](_0x1e2912);})[_0x46ff35(0x1e7)](function(_0x21ffce){return _0x24353a['rows']=_0x21ffce,_0x24353a;})['then'](respondWithFilteredResult(_0x5f5d96,_0x1e2912))[_0x46ff35(0x238)](handleError(_0x5f5d96,null));},exports['show']=function(_0x1d0d7c,_0x4ae4f6){const _0x5ea5fe=a749_0x5ea838;let _0x464995={'raw':![],'where':{'id':_0x1d0d7c[_0x5ea5fe(0x202)]['id']}};const _0x4350e1={};return _0x4350e1[_0x5ea5fe(0x232)]=_['keys'](db[_0x5ea5fe(0x213)][_0x5ea5fe(0x1fe)]),_0x4350e1[_0x5ea5fe(0x23c)]=_[_0x5ea5fe(0x22d)](_0x1d0d7c[_0x5ea5fe(0x23c)]),_0x4350e1[_0x5ea5fe(0x21e)]=_[_0x5ea5fe(0x21b)](_0x4350e1['model'],_0x4350e1['query']),_0x464995[_0x5ea5fe(0x1ff)]=_['intersection'](_0x4350e1[_0x5ea5fe(0x232)],qs[_0x5ea5fe(0x1f5)](_0x1d0d7c['query'][_0x5ea5fe(0x1f5)])),_0x464995[_0x5ea5fe(0x1ff)]=_0x464995['attributes'][_0x5ea5fe(0x231)]?_0x464995[_0x5ea5fe(0x1ff)]:_0x4350e1[_0x5ea5fe(0x232)],_0x1d0d7c[_0x5ea5fe(0x23c)][_0x5ea5fe(0x201)]&&(_0x464995[_0x5ea5fe(0x229)]=[{'all':!![]}]),_0x464995=_[_0x5ea5fe(0x1f3)]({},_0x464995,_0x1d0d7c[_0x5ea5fe(0x206)]),db[_0x5ea5fe(0x213)][_0x5ea5fe(0x22e)](_0x464995)[_0x5ea5fe(0x1e7)](handleEntityNotFound(_0x4ae4f6,null))['then'](respondWithResult(_0x4ae4f6,null))[_0x5ea5fe(0x238)](handleError(_0x4ae4f6,null));},exports[a749_0x5ea838(0x1e0)]=function(_0x2ad389,_0x122ada){const _0x178529=a749_0x5ea838;return db[_0x178529(0x213)]['create'](_0x2ad389['body'],{})[_0x178529(0x1e7)](function(_0x4d1492){const _0x5649aa=_0x178529,_0x2287af=_0x2ad389['user']['get']({'plain':!![]});if(!_0x2287af)throw new Error(_0x5649aa(0x209));if(_0x2287af[_0x5649aa(0x1ea)]===_0x5649aa(0x203)){const _0x33a4c4=_0x4d1492['get']({'plain':!![]}),_0x520fff=_0x5649aa(0x1f4);return db[_0x5649aa(0x23f)][_0x5649aa(0x22e)]({'where':{'name':_0x520fff,'userProfileId':_0x2287af[_0x5649aa(0x1e4)]},'raw':!![]})['then'](function(_0x3c09d4){const _0x362555=_0x5649aa;return _0x3c09d4&&_0x3c09d4[_0x362555(0x1e6)]===0x0?db[_0x362555(0x211)][_0x362555(0x1e0)]({'name':_0x33a4c4[_0x362555(0x1ed)],'resourceId':_0x33a4c4['id'],'type':_0x3c09d4['name'],'sectionId':_0x3c09d4['id']},{})['then'](function(){return _0x4d1492;}):_0x4d1492;})[_0x5649aa(0x238)](function(_0x22e082){const _0x2e6b71=_0x5649aa;logger[_0x2e6b71(0x228)](_0x2e6b71(0x22b),_0x22e082);throw _0x22e082;});}return _0x4d1492;})[_0x178529(0x1e7)](respondWithResult(_0x122ada,0xc9))['catch'](handleError(_0x122ada,null));},exports[a749_0x5ea838(0x216)]=function(_0xa163f6,_0x126e79){const _0x5207ba=a749_0x5ea838;return _0xa163f6[_0x5207ba(0x21f)]['id']&&delete _0xa163f6[_0x5207ba(0x21f)]['id'],db[_0x5207ba(0x213)]['findOne']({'where':{'id':_0xa163f6[_0x5207ba(0x202)]['id']}})[_0x5207ba(0x1e7)](handleEntityNotFound(_0x126e79,null))[_0x5207ba(0x1e7)](saveUpdates(_0xa163f6[_0x5207ba(0x21f)],null))[_0x5207ba(0x1e7)](respondWithResult(_0x126e79,null))[_0x5207ba(0x238)](handleError(_0x126e79,null));},exports[a749_0x5ea838(0x223)]=function(_0x50b648,_0x32f6d7){const _0x16ec77=a749_0x5ea838;return db[_0x16ec77(0x213)][_0x16ec77(0x22e)]({'where':{'id':_0x50b648[_0x16ec77(0x202)]['id']}})[_0x16ec77(0x1e7)](handleEntityNotFound(_0x32f6d7,null))[_0x16ec77(0x1e7)](removeEntity(_0x32f6d7,null))[_0x16ec77(0x238)](handleError(_0x32f6d7,null));},exports[a749_0x5ea838(0x21c)]=function(_0x23b1bd,_0x19930a){const _0x50a344=a749_0x5ea838;return db[_0x50a344(0x213)][_0x50a344(0x22e)]({'where':{'id':_0x23b1bd['params']['id']}})['then'](handleEntityNotFound(_0x19930a,null))[_0x50a344(0x1e7)](function(_0x938e9d){const _0x54c05c=_0x50a344;if(!_0x23b1bd[_0x54c05c(0x23c)][_0x54c05c(0x227)]||!utils[_0x54c05c(0x23d)](_0x23b1bd['query'][_0x54c05c(0x227)]))throw new ValidationError(_0x54c05c(0x1f1));let _0x11e70d={};const _0x5156a2={};return _0x5156a2[_0x54c05c(0x232)]=_[_0x54c05c(0x22d)](db[_[_0x54c05c(0x1ee)](_0x23b1bd[_0x54c05c(0x23c)][_0x54c05c(0x227)]['toLowerCase']())+_0x54c05c(0x233)]['rawAttributes']),_0x5156a2[_0x54c05c(0x23c)]=_[_0x54c05c(0x22d)](_0x23b1bd['query']),_0x5156a2[_0x54c05c(0x21e)]=_[_0x54c05c(0x21b)](_0x5156a2[_0x54c05c(0x232)],_0x5156a2[_0x54c05c(0x23c)]),_0x11e70d['attributes']=_[_0x54c05c(0x21b)](_0x5156a2[_0x54c05c(0x232)],qs[_0x54c05c(0x1f5)](_0x23b1bd['query'][_0x54c05c(0x1f5)])),_0x11e70d[_0x54c05c(0x1ff)]=_0x11e70d[_0x54c05c(0x1ff)][_0x54c05c(0x231)]?_0x11e70d['attributes']:_0x5156a2['model'],_0x11e70d[_0x54c05c(0x22f)]=qs[_0x54c05c(0x22f)](_0x23b1bd[_0x54c05c(0x23c)][_0x54c05c(0x22f)]),_0x11e70d[_0x54c05c(0x1e1)]=qs[_0x54c05c(0x1e1)](_0x23b1bd[_0x54c05c(0x23c)][_0x54c05c(0x1e1)]),_0x11e70d[_0x54c05c(0x1df)]=qs[_0x54c05c(0x221)](_0x23b1bd[_0x54c05c(0x23c)]['sort']),_0x11e70d[_0x54c05c(0x226)]=qs['filters'](_[_0x54c05c(0x20a)](_0x23b1bd[_0x54c05c(0x23c)],_0x5156a2[_0x54c05c(0x21e)])),_0x11e70d=_[_0x54c05c(0x1f3)]({},_0x11e70d,_0x23b1bd['options']),_0x938e9d[_0x54c05c(0x22c)+_['capitalize'](_0x23b1bd[_0x54c05c(0x23c)][_0x54c05c(0x227)][_0x54c05c(0x208)]())+_0x54c05c(0x1f0)](_0x11e70d);})[_0x50a344(0x1e7)](respondWithResult(_0x19930a,null))[_0x50a344(0x238)](handleError(_0x19930a,null));},exports[a749_0x5ea838(0x205)]=function(_0x3c9e53,_0x341360){const _0x1190f8=a749_0x5ea838;return db[_0x1190f8(0x213)][_0x1190f8(0x22e)]({'where':{'id':_0x3c9e53[_0x1190f8(0x202)]['id']}})[_0x1190f8(0x1e7)](function(_0x113b9d){const _0x2fa440=_0x1190f8;if(_0x113b9d){if(!_0x3c9e53[_0x2fa440(0x21f)]['channel']||!utils[_0x2fa440(0x23d)](_0x3c9e53[_0x2fa440(0x21f)][_0x2fa440(0x227)]))throw new ValidationError(_0x2fa440(0x1f1));return _0x113b9d['add'+_[_0x2fa440(0x1ee)](_0x3c9e53[_0x2fa440(0x21f)][_0x2fa440(0x227)][_0x2fa440(0x208)]())+'Queues'](_0x3c9e53[_0x2fa440(0x21f)][_0x2fa440(0x239)]);}return null;})['then'](handleEntityNotFound(_0x341360,null))[_0x1190f8(0x1e7)](respondWithStatusCode(_0x341360,null))[_0x1190f8(0x238)](handleError(_0x341360,null));},exports[a749_0x5ea838(0x210)]=function(_0x458a18,_0x1ce97b){const _0x4297ad=a749_0x5ea838;return db[_0x4297ad(0x213)][_0x4297ad(0x22e)]({'where':{'id':_0x458a18['params']['id']}})[_0x4297ad(0x1e7)](function(_0x170173){const _0x5ad462=_0x4297ad;if(_0x170173){if(!_0x458a18[_0x5ad462(0x23c)][_0x5ad462(0x227)]||!utils[_0x5ad462(0x23d)](_0x458a18[_0x5ad462(0x23c)][_0x5ad462(0x227)]))throw new ValidationError(_0x5ad462(0x1f1));return _0x170173[_0x5ad462(0x217)+_[_0x5ad462(0x1ee)](_0x458a18['query'][_0x5ad462(0x227)]['toLowerCase']())+_0x5ad462(0x1f0)](_0x458a18['query']['ids']);}return null;})[_0x4297ad(0x1e7)](handleEntityNotFound(_0x1ce97b,null))['then'](respondWithStatusCode(_0x1ce97b,null))[_0x4297ad(0x238)](handleError(_0x1ce97b,null));},exports['addAgents']=function(_0x4d6291,_0x55c7c9){const _0x560d94=a749_0x5ea838;return db[_0x560d94(0x213)][_0x560d94(0x22e)]({'where':{'id':_0x4d6291[_0x560d94(0x202)]['id']}})[_0x560d94(0x1e7)](function(_0x56749c){const _0x59d224=_0x560d94;if(_0x56749c){const _0x756c2=[_0x59d224(0x212),'chat',_0x59d224(0x1ec),_0x59d224(0x1e2),'fax',_0x59d224(0x1fa),_0x59d224(0x222)];return Promise['all'](_0x756c2[_0x59d224(0x1fc)](async _0x298b67=>{const _0x5bb8a1=_0x59d224,_0x1c50bc=await _0x56749c[_0x5bb8a1(0x22c)+_[_0x5bb8a1(0x1ee)](_0x298b67)+_0x5bb8a1(0x1f0)]({'attributes':['id',_0x5bb8a1(0x1ed)]});return _0x1c50bc[_0x5bb8a1(0x1fc)](async _0x46c564=>{const _0x1c7536=_0x5bb8a1;await _0x46c564[_0x1c7536(0x224)](_0x4d6291[_0x1c7536(0x21f)]['ids']);if(_0x298b67===_0x1c7536(0x212)){const _0x255dd2=await db[_0x1c7536(0x1e5)]['findAll']({'where':{'id':_0x4d6291[_0x1c7536(0x21f)][_0x1c7536(0x239)]},'attributes':['id','name',_0x1c7536(0x21a),'voicePause',_0x1c7536(0x1e3)],'raw':!![]}),_0xb44579=_[_0x1c7536(0x1fb)](_0x255dd2,{'online':0x1}),_0x137f9b=_0xb44579['map'](_0x46419e=>{const _0x41a173=_0x1c7536;return db[_0x41a173(0x237)][_0x41a173(0x21d)]({'membername':_0x46419e[_0x41a173(0x1ed)],'UserId':_0x46419e['id'],'queue_name':_0x46c564[_0x41a173(0x1ed)],'VoiceQueueId':_0x46c564['id'],'interface':_[_0x41a173(0x1f2)](_0x46419e[_0x41a173(0x1e3)])?util['format']('SIP/%s',_0x46419e[_0x41a173(0x1ed)]):_0x46419e[_0x41a173(0x1e3)],'paused':_0x46419e[_0x41a173(0x200)]||![],'penalty':0x0});});return Promise[_0x1c7536(0x219)](_0x137f9b);}}),_0x56749c;}))['then'](function(){return _0x56749c;});}})[_0x560d94(0x1e7)](function(_0x88f9c9){const _0xf8f8a4=_0x560d94;if(_0x88f9c9)return _0x88f9c9[_0xf8f8a4(0x224)](_0x4d6291[_0xf8f8a4(0x21f)][_0xf8f8a4(0x239)],{'through':_['omit'](_0x4d6291[_0xf8f8a4(0x21f)],['ids','id'])})['then'](function(_0x551341){const _0x100562=_0xf8f8a4;for(let _0x240fc1=0x0;_0x240fc1<_0x4d6291['body'][_0x100562(0x239)][_0x100562(0x231)];_0x240fc1+=0x1){socket[_0x100562(0x225)](_0x100562(0x207),{'UserId':_0x4d6291[_0x100562(0x21f)][_0x100562(0x239)][_0x240fc1],'TeamId':_0x4d6291['params']['id']});}return _0x551341;});})[_0x560d94(0x1e7)](respondWithResult(_0x55c7c9,null))['catch'](handleError(_0x55c7c9,null));},exports[a749_0x5ea838(0x240)]=function(_0x390aef,_0x178bbe){const _0x2f0677=a749_0x5ea838;return db['Team'][_0x2f0677(0x22e)]({'where':{'id':_0x390aef['params']['id']}})[_0x2f0677(0x1e7)](handleEntityNotFound(_0x178bbe,null))[_0x2f0677(0x1e7)](function(_0x1d227c){const _0x494dec=_0x2f0677;if(_0x1d227c){const _0x13dab2=[_0x494dec(0x212),_0x494dec(0x204),_0x494dec(0x1ec),'sms',_0x494dec(0x1e9),_0x494dec(0x1fa),_0x494dec(0x222)];return Promise['all'](_0x13dab2[_0x494dec(0x1fc)](async _0x3298d4=>{const _0x160103=_0x494dec,_0x3eb9d5=await _0x1d227c['get'+_[_0x160103(0x1ee)](_0x3298d4)+_0x160103(0x1f0)]({'attributes':['id',_0x160103(0x1ed)]});return _0x3eb9d5[_0x160103(0x1fc)](async _0x5948dd=>{const _0x5e5dd2=_0x160103;await _0x5948dd[_0x5e5dd2(0x240)](_0x390aef[_0x5e5dd2(0x23c)][_0x5e5dd2(0x239)]),_0x3298d4===_0x5e5dd2(0x212)&&await db[_0x5e5dd2(0x237)][_0x5e5dd2(0x223)]({'where':{'VoiceQueueId':_0x5948dd['id'],'UserId':_0x390aef[_0x5e5dd2(0x23c)][_0x5e5dd2(0x239)]}});}),_0x1d227c;}))['then'](function(){return _0x1d227c;});}})[_0x2f0677(0x1e7)](function(_0x213ffa){const _0x3f8ee8=_0x2f0677;if(_0x213ffa)return _0x213ffa[_0x3f8ee8(0x240)](_0x390aef[_0x3f8ee8(0x23c)]['ids'])['then'](function(){const _0x62b71=_0x3f8ee8;if(_['isArray'](_0x390aef[_0x62b71(0x23c)]['ids']))for(let _0x413eb3=0x0;_0x413eb3<_0x390aef[_0x62b71(0x23c)]['ids'][_0x62b71(0x231)];_0x413eb3+=0x1){socket[_0x62b71(0x225)](_0x62b71(0x230),{'UserId':Number(_0x390aef[_0x62b71(0x23c)][_0x62b71(0x239)][_0x413eb3]),'TeamId':Number(_0x390aef[_0x62b71(0x202)]['id'])});}else socket[_0x62b71(0x225)](_0x62b71(0x230),{'UserId':Number(_0x390aef[_0x62b71(0x23c)][_0x62b71(0x239)]),'TeamId':Number(_0x390aef[_0x62b71(0x202)]['id'])});});})[_0x2f0677(0x1e7)](respondWithStatusCode(_0x178bbe,null))['catch'](handleError(_0x178bbe,null));},exports[a749_0x5ea838(0x23a)]=function(_0x1303a5,_0x133290){const _0x58337e=a749_0x5ea838;let _0x465372={};const _0x208f0f={};let _0x34f460,_0x252458;return db['Team']['findOne']({'where':{'id':_0x1303a5[_0x58337e(0x202)]['id']}})['then'](handleEntityNotFound(_0x133290,null))['then'](function(_0x32aba4){const _0x397432=_0x58337e;if(_0x32aba4)return _0x34f460=_0x32aba4,_0x208f0f[_0x397432(0x232)]=_['keys'](db[_0x397432(0x1e5)][_0x397432(0x1fe)]),_0x208f0f[_0x397432(0x23c)]=_[_0x397432(0x22d)](_0x1303a5[_0x397432(0x23c)]),_0x208f0f[_0x397432(0x21e)]=_[_0x397432(0x21b)](_0x208f0f[_0x397432(0x232)],_0x208f0f[_0x397432(0x23c)]),_0x465372[_0x397432(0x1ff)]=_[_0x397432(0x21b)](_0x208f0f[_0x397432(0x232)],qs[_0x397432(0x1f5)](_0x1303a5[_0x397432(0x23c)][_0x397432(0x1f5)])),_0x465372[_0x397432(0x1ff)]=_0x465372[_0x397432(0x1ff)][_0x397432(0x231)]?_0x465372[_0x397432(0x1ff)]:_0x208f0f['model'],_0x465372[_0x397432(0x1df)]=qs[_0x397432(0x221)](_0x1303a5['query'][_0x397432(0x221)]),_0x465372[_0x397432(0x226)]=qs[_0x397432(0x21e)](_[_0x397432(0x20a)](_0x1303a5[_0x397432(0x23c)],_0x208f0f['filters'])),_0x1303a5[_0x397432(0x23c)][_0x397432(0x1fb)]&&(_0x465372[_0x397432(0x226)]=_[_0x397432(0x1f3)](_0x465372['where'],{[Op['or']]:_['map'](_0x465372['attributes'],function(_0x27ce93){const _0x528abf=_0x397432,_0x36681d={};return _0x36681d[_0x27ce93]={[Op[_0x528abf(0x20f)]]:'%'+_0x1303a5[_0x528abf(0x23c)][_0x528abf(0x1fb)]+'%'},_0x36681d;})})),_0x465372=_['merge']({},_0x465372,_0x1303a5[_0x397432(0x206)]),_0x34f460['getAgents'](_0x465372);})[_0x58337e(0x1e7)](function(_0x1b7af1){const _0x503924=_0x58337e;if(_0x1b7af1)return _0x252458=_0x1b7af1[_0x503924(0x231)],typeof _0x1303a5[_0x503924(0x23c)][_0x503924(0x20e)]==='undefined'&&(_0x465372[_0x503924(0x22f)]=qs[_0x503924(0x22f)](_0x1303a5[_0x503924(0x23c)][_0x503924(0x22f)]),_0x465372['offset']=qs[_0x503924(0x1e1)](_0x1303a5[_0x503924(0x23c)][_0x503924(0x1e1)])),_0x34f460['getAgents'](_0x465372);})[_0x58337e(0x1e7)](function(_0x275918){if(_0x275918)return _0x275918?{'count':_0x252458,'rows':_0x275918}:null;})[_0x58337e(0x1e7)](respondWithResult(_0x133290,null))['catch'](handleError(_0x133290,null));}; \ No newline at end of file diff --git a/server/api/team/team.events.js b/server/api/team/team.events.js index 4d2fd70..ccc68bd 100644 --- a/server/api/team/team.events.js +++ b/server/api/team/team.events.js @@ -1 +1 @@ -const a627_0x4020=['Team','update','../../mysqldb','exports','setMaxListeners','save','emit','events'];(function(_0x2c21c9,_0x40205b){const _0x23939c=function(_0x5d444b){while(--_0x5d444b){_0x2c21c9['push'](_0x2c21c9['shift']());}};_0x23939c(++_0x40205b);}(a627_0x4020,0x1b8));const a627_0x2393=function(_0x2c21c9,_0x40205b){_0x2c21c9=_0x2c21c9-0x0;let _0x23939c=a627_0x4020[_0x2c21c9];return _0x23939c;};const _0xb6246c=a627_0x2393;'use strict';const EventEmitter=require(_0xb6246c('0x7')),Team=require(_0xb6246c('0x2'))['db'][_0xb6246c('0x0')],TeamEvents=new EventEmitter();TeamEvents[_0xb6246c('0x4')](0x0);const events={'afterCreate':_0xb6246c('0x5'),'afterUpdate':_0xb6246c('0x1'),'afterDestroy':'remove'};function emitEvent(_0x5d444b){return function(_0xd3a795){const _0x5ea5a7=a627_0x2393;TeamEvents[_0x5ea5a7('0x6')](_0x5d444b+':'+_0xd3a795['id'],_0xd3a795),TeamEvents[_0x5ea5a7('0x6')](_0x5d444b,_0xd3a795);};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];Team['addHook'](e,emitEvent(event));}}module[_0xb6246c('0x3')]=TeamEvents; \ No newline at end of file +const a750_0x3989=['emit','events','addHook','save','../../mysqldb','remove','setMaxListeners','update','undefined'];(function(_0xb09679,_0x469649){const _0x398945=function(_0x2e2099){while(--_0x2e2099){_0xb09679['push'](_0xb09679['shift']());}};_0x398945(++_0x469649);}(a750_0x3989,0x175));const a750_0x2e20=function(_0xb09679,_0x469649){_0xb09679=_0xb09679-0x90;let _0x398945=a750_0x3989[_0xb09679];return _0x398945;};const a750_0x5e756f=a750_0x2e20;'use strict';const EventEmitter=require(a750_0x5e756f(0x96)),Team=require(a750_0x5e756f(0x90))['db']['Team'],TeamEvents=new EventEmitter();TeamEvents[a750_0x5e756f(0x92)](0x0);const events={'afterCreate':a750_0x5e756f(0x98),'afterUpdate':a750_0x5e756f(0x93),'afterDestroy':a750_0x5e756f(0x91)};function emitEvent(_0x3344b1){return function(_0x473d48){const _0xed3679=a750_0x2e20;TeamEvents[_0xed3679(0x95)](_0x3344b1+':'+_0x473d48['id'],_0x473d48),TeamEvents[_0xed3679(0x95)](_0x3344b1,_0x473d48);};}for(const e in events){if(typeof events[e]!==a750_0x5e756f(0x94)){const event=events[e];Team[a750_0x5e756f(0x97)](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 cb702cd..f69ee41 100644 --- a/server/api/team/team.model.js +++ b/server/api/team/team.model.js @@ -1 +1 @@ -const a628_0x5a9d=['teams','./team.attributes','Team'];(function(_0x33f504,_0x5a9dc0){const _0x23fd1c=function(_0x40d304){while(--_0x40d304){_0x33f504['push'](_0x33f504['shift']());}};_0x23fd1c(++_0x5a9dc0);}(a628_0x5a9d,0xd0));const a628_0x23fd=function(_0x33f504,_0x5a9dc0){_0x33f504=_0x33f504-0x0;let _0x23fd1c=a628_0x5a9d[_0x33f504];return _0x23fd1c;};const _0x3c7c53=a628_0x23fd;'use strict';const attributes=require(_0x3c7c53('0x0'));module['exports']=function(_0x40d304){const _0x2d9b04=_0x3c7c53,_0x525f9c=_0x40d304['define'](_0x2d9b04('0x1'),attributes,{'tableName':_0x2d9b04('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x525f9c;}; \ No newline at end of file +const a751_0x305f=['exports','./team.options','init','function','Team','./team.attributes'];(function(_0x353acf,_0x50c65c){const _0x305ff8=function(_0x27e71e){while(--_0x27e71e){_0x353acf['push'](_0x353acf['shift']());}};_0x305ff8(++_0x50c65c);}(a751_0x305f,0x1bd));const a751_0x27e7=function(_0x353acf,_0x50c65c){_0x353acf=_0x353acf-0x10e;let _0x305ff8=a751_0x305f[_0x353acf];return _0x305ff8;};const a751_0x539bdf=a751_0x27e7;'use strict';const {Model}=require('sequelize'),{attributes}=require(a751_0x539bdf(0x112)),{options}=require(a751_0x539bdf(0x10e));class Team extends Model{}function init(_0x1bad2,_0x55170e){const _0x108bff=a751_0x539bdf,_0x21f99a=options(_0x1bad2),_0x4a6d61=typeof _0x55170e===_0x108bff(0x110)?_0x55170e(_0x21f99a):_0x21f99a;return Team[_0x108bff(0x10f)](attributes,_0x4a6d61),Team;}module['exports'][a751_0x539bdf(0x111)]=Team,module[a751_0x539bdf(0x113)][a751_0x539bdf(0x10f)]=init; \ No newline at end of file diff --git a/server/api/team/team.options.js b/server/api/team/team.options.js new file mode 100644 index 0000000..c6a9e47 --- /dev/null +++ b/server/api/team/team.options.js @@ -0,0 +1 @@ +var a752_0x3fca=['options','exports','teams'];(function(_0x318177,_0x5f1623){var _0x3fca9e=function(_0x13c6e2){while(--_0x13c6e2){_0x318177['push'](_0x318177['shift']());}};_0x3fca9e(++_0x5f1623);}(a752_0x3fca,0x100));var a752_0x13c6=function(_0x318177,_0x5f1623){_0x318177=_0x318177-0xe4;var _0x3fca9e=a752_0x3fca[_0x318177];return _0x3fca9e;};var a752_0x3b00ce=a752_0x13c6;function options(_0x1ddac7){var _0x589f8c=a752_0x13c6;return{'sequelize':_0x1ddac7,'tableName':_0x589f8c(0xe5),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a752_0x3b00ce(0xe4)][a752_0x3b00ce(0xe6)]=options; \ No newline at end of file diff --git a/server/api/team/team.rpc.js b/server/api/team/team.rpc.js index 2bd5126..a71845e 100644 --- a/server/api/team/team.rpc.js +++ b/server/api/team/team.rpc.js @@ -1 +1 @@ -const a629_0x36ee=['register'];(function(_0x4482b0,_0x36ee29){const _0x385a0d=function(_0x4f87d4){while(--_0x4f87d4){_0x4482b0['push'](_0x4482b0['shift']());}};_0x385a0d(++_0x36ee29);}(a629_0x36ee,0xb0));const a629_0x385a=function(_0x4482b0,_0x36ee29){_0x4482b0=_0x4482b0-0x0;let _0x385a0d=a629_0x36ee[_0x4482b0];return _0x385a0d;};const _0x5cc349=a629_0x385a;'use strict';const {getSocket}=require('../../rediscache'),socket=getSocket();require('./team.socket')[_0x5cc349('0x0')](socket); \ No newline at end of file +const a753_0x446e=['../../rediscache','./team.socket','register'];(function(_0x27fd97,_0x25c50d){const _0x446e03=function(_0x3cb65a){while(--_0x3cb65a){_0x27fd97['push'](_0x27fd97['shift']());}};_0x446e03(++_0x25c50d);}(a753_0x446e,0x16d));const a753_0x3cb6=function(_0x27fd97,_0x25c50d){_0x27fd97=_0x27fd97-0x13a;let _0x446e03=a753_0x446e[_0x27fd97];return _0x446e03;};const a753_0x391ad5=a753_0x3cb6;'use strict';const {getSocket}=require(a753_0x391ad5(0x13b)),socket=getSocket();require(a753_0x391ad5(0x13c))[a753_0x391ad5(0x13a)](socket); \ No newline at end of file diff --git a/server/api/team/team.socket.js b/server/api/team/team.socket.js index 8c6799c..01b51a2 100644 --- a/server/api/team/team.socket.js +++ b/server/api/team/team.socket.js @@ -1 +1 @@ -const a630_0x2940=['save','update','team:','./team.events','length','register'];(function(_0x13f391,_0x29406e){const _0x1e6de7=function(_0x16f326){while(--_0x16f326){_0x13f391['push'](_0x13f391['shift']());}};_0x1e6de7(++_0x29406e);}(a630_0x2940,0x9f));const a630_0x1e6d=function(_0x13f391,_0x29406e){_0x13f391=_0x13f391-0x0;let _0x1e6de7=a630_0x2940[_0x13f391];return _0x1e6de7;};const _0x3f2392=a630_0x1e6d;'use strict';const TeamEvents=require(_0x3f2392('0x0')),events=[_0x3f2392('0x3'),'remove',_0x3f2392('0x4')];function createListener(_0x16f326,_0x20ddef){return function(_0x51cc63){_0x20ddef['emit'](_0x16f326,_0x51cc63);};}exports[_0x3f2392('0x2')]=function(_0x21e592){const _0x2275f8=_0x3f2392;for(let _0x1a5d0e=0x0,_0x554f79=events[_0x2275f8('0x1')];_0x1a5d0e<_0x554f79;_0x1a5d0e++){const _0x5758c9=events[_0x1a5d0e],_0x1c37b5=createListener(_0x2275f8('0x5')+_0x5758c9,_0x21e592);TeamEvents['on'](_0x5758c9,_0x1c37b5);}}; \ No newline at end of file +const a754_0xaaaa=['emit','length','save','register','update','team:','remove'];(function(_0x55d6fe,_0x1e51a4){const _0xaaaaa5=function(_0x3169ca){while(--_0x3169ca){_0x55d6fe['push'](_0x55d6fe['shift']());}};_0xaaaaa5(++_0x1e51a4);}(a754_0xaaaa,0x19f));const a754_0x3169=function(_0x55d6fe,_0x1e51a4){_0x55d6fe=_0x55d6fe-0x186;let _0xaaaaa5=a754_0xaaaa[_0x55d6fe];return _0xaaaaa5;};const a754_0x7596d6=a754_0x3169;'use strict';const TeamEvents=require('./team.events'),events=[a754_0x7596d6(0x186),a754_0x7596d6(0x18a),a754_0x7596d6(0x188)];function createListener(_0x417881,_0x434119){return function(_0xf3e3a7){const _0x462c4d=a754_0x3169;_0x434119[_0x462c4d(0x18b)](_0x417881,_0xf3e3a7);};}exports[a754_0x7596d6(0x187)]=function(_0xd4fff1){const _0x22f585=a754_0x7596d6;for(let _0x5e4948=0x0,_0x5d18e3=events[_0x22f585(0x18c)];_0x5e4948<_0x5d18e3;_0x5e4948++){const _0x1bacb1=events[_0x5e4948],_0x5a8049=createListener(_0x22f585(0x189)+_0x1bacb1,_0xd4fff1);TeamEvents['on'](_0x1bacb1,_0x5a8049);}}; \ No newline at end of file diff --git a/server/api/template/index.js b/server/api/template/index.js index 678abf2..4dcc02d 100644 --- a/server/api/template/index.js +++ b/server/api/template/index.js @@ -1 +1 @@ -const a631_0x4276=['post','index','update','Router','put','/:id','show','get','./template.controller','delete','isAuthenticated','create','exports','destroy'];(function(_0x3076b1,_0x42767a){const _0x17725e=function(_0x5609b6){while(--_0x5609b6){_0x3076b1['push'](_0x3076b1['shift']());}};_0x17725e(++_0x42767a);}(a631_0x4276,0xb3));const a631_0x1772=function(_0x3076b1,_0x42767a){_0x3076b1=_0x3076b1-0x0;let _0x17725e=a631_0x4276[_0x3076b1];return _0x17725e;};const _0x1a8174=a631_0x1772;'use strict';const express=require('express'),router=express[_0x1a8174('0x6')](),auth=require('../../components/auth/service'),controller=require(_0x1a8174('0xb'));router[_0x1a8174('0xa')]('/',auth[_0x1a8174('0xd')](),controller[_0x1a8174('0x4')]),router['get'](_0x1a8174('0x8'),auth[_0x1a8174('0xd')](),controller[_0x1a8174('0x9')]),router[_0x1a8174('0x3')]('/',auth['isAuthenticated'](),controller[_0x1a8174('0x0')]),router[_0x1a8174('0x7')](_0x1a8174('0x8'),auth[_0x1a8174('0xd')](),controller[_0x1a8174('0x5')]),router[_0x1a8174('0xc')](_0x1a8174('0x8'),auth['isAuthenticated'](),controller[_0x1a8174('0x2')]),module[_0x1a8174('0x1')]=router; \ No newline at end of file +const a755_0x12ce=['destroy','create','express','post','put','exports','/:id','./template.controller','index','get','../../components/auth/service','isAuthenticated'];(function(_0x13b95f,_0x475be5){const _0x12ceec=function(_0x2ea36e){while(--_0x2ea36e){_0x13b95f['push'](_0x13b95f['shift']());}};_0x12ceec(++_0x475be5);}(a755_0x12ce,0x1bf));const a755_0x2ea3=function(_0x13b95f,_0x475be5){_0x13b95f=_0x13b95f-0xcd;let _0x12ceec=a755_0x12ce[_0x13b95f];return _0x12ceec;};const a755_0x448f6d=a755_0x2ea3;'use strict';const express=require(a755_0x448f6d(0xd8)),router=express['Router'](),auth=require(a755_0x448f6d(0xd4)),controller=require(a755_0x448f6d(0xd1));router['get']('/',auth['isAuthenticated'](),controller[a755_0x448f6d(0xd2)]),router[a755_0x448f6d(0xd3)](a755_0x448f6d(0xd0),auth[a755_0x448f6d(0xd5)](),controller['show']),router[a755_0x448f6d(0xcd)]('/',auth[a755_0x448f6d(0xd5)](),controller[a755_0x448f6d(0xd7)]),router[a755_0x448f6d(0xce)](a755_0x448f6d(0xd0),auth[a755_0x448f6d(0xd5)](),controller['update']),router['delete'](a755_0x448f6d(0xd0),auth[a755_0x448f6d(0xd5)](),controller[a755_0x448f6d(0xd6)]),module[a755_0x448f6d(0xcf)]=router; \ No newline at end of file diff --git a/server/api/template/template.attributes.js b/server/api/template/template.attributes.js index e3b1ad6..e30ef4c 100644 --- a/server/api/template/template.attributes.js +++ b/server/api/template/template.attributes.js @@ -1 +1 @@ -const a632_0x3031=['exports','STRING','TEXT'];(function(_0x177a8d,_0x303126){const _0xc3779d=function(_0x4e0b55){while(--_0x4e0b55){_0x177a8d['push'](_0x177a8d['shift']());}};_0xc3779d(++_0x303126);}(a632_0x3031,0x107));const a632_0xc377=function(_0x177a8d,_0x303126){_0x177a8d=_0x177a8d-0x0;let _0xc3779d=a632_0x3031[_0x177a8d];return _0xc3779d;};const _0x5e8de4=a632_0xc377;'use strict';const Sequelize=require('sequelize');module[_0x5e8de4('0x1')]={'name':{'type':Sequelize['STRING']},'description':{'type':Sequelize[_0x5e8de4('0x2')]},'html':{'type':Sequelize[_0x5e8de4('0x0')]}}; \ No newline at end of file +const a756_0x300d=['exports','STRING','TEXT','attributes'];(function(_0x578ac6,_0x2e2250){const _0x300d31=function(_0x3dc690){while(--_0x3dc690){_0x578ac6['push'](_0x578ac6['shift']());}};_0x300d31(++_0x2e2250);}(a756_0x300d,0x177));const a756_0x3dc6=function(_0x578ac6,_0x2e2250){_0x578ac6=_0x578ac6-0x180;let _0x300d31=a756_0x300d[_0x578ac6];return _0x300d31;};const a756_0x2cb409=a756_0x3dc6;'use strict';const {DataTypes}=require('sequelize'),attributes={'name':{'type':DataTypes[a756_0x2cb409(0x182)]},'description':{'type':DataTypes[a756_0x2cb409(0x182)]},'html':{'type':DataTypes[a756_0x2cb409(0x183)]}};module[a756_0x2cb409(0x181)][a756_0x2cb409(0x180)]=attributes; \ No newline at end of file diff --git a/server/api/template/template.controller.js b/server/api/template/template.controller.js index 04c8f40..3c6bf60 100644 --- a/server/api/template/template.controller.js +++ b/server/api/template/template.controller.js @@ -1 +1 @@ -const a633_0xd692=['where','nolimit','intersection','VIRTUAL','keys','type','userProfileId','query','params','create','like','../../mysqldb','fields','rows','findOne','end','json','attributes','role','autoAssociation','catch','merge','show','../../config/logger','model','findAll','then','sequelize','stack','body','key','offset','Templates','lodash','name','status','get','api','error','includeAll','limit','index','rawAttributes','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','options','UserProfileResource','order','count','filter','Template','UserProfileSection','include','../../components/parsers/qs','Unable\x20to\x20retrieve\x20the\x20current\x20user','user','map','pick','filters','sendStatus'];(function(_0x4ec715,_0xd6928e){const _0x242d78=function(_0x44caee){while(--_0x44caee){_0x4ec715['push'](_0x4ec715['shift']());}};_0x242d78(++_0xd6928e);}(a633_0xd692,0x83));const a633_0x242d=function(_0x4ec715,_0xd6928e){_0x4ec715=_0x4ec715-0x0;let _0x242d78=a633_0xd692[_0x4ec715];return _0x242d78;};const _0x46d73a=a633_0x242d;'use strict';const _=require(_0x46d73a('0x14')),qs=require(_0x46d73a('0x27')),logger=require(_0x46d73a('0xa'))(_0x46d73a('0x18')),db=require(_0x46d73a('0x39'))['db'],{Op}=require(_0x46d73a('0xe'));function respondWithResult(_0x44caee,_0x3358b8){return _0x3358b8=_0x3358b8||0xc8,function(_0x483b04){const _0x401c93=a633_0x242d;if(_0x483b04)return _0x44caee[_0x401c93('0x16')](_0x3358b8)['json'](_0x483b04);};}function respondWithFilteredResult(_0x4ecc7a,_0x5e2b16){return function(_0x20b496){const _0x3f7c52=a633_0x242d;if(_0x20b496){const _0x42c39f=_0x20b496[_0x3f7c52('0x22')],_0x38cffe=_0x5e2b16[_0x3f7c52('0x12')];let _0x379450=_0x5e2b16[_0x3f7c52('0x12')]+_0x5e2b16[_0x3f7c52('0x1b')],_0x39d69d;return _0x379450>=_0x42c39f?(_0x379450=_0x42c39f,_0x39d69d=0xc8):_0x39d69d=0xce,_0x4ecc7a[_0x3f7c52('0x16')](_0x39d69d),_0x4ecc7a['set']('Content-Range',_0x38cffe+'-'+_0x379450+'/'+_0x42c39f)[_0x3f7c52('0x3')](_0x20b496);}return null;};}function saveUpdates(_0x36f5ee){return function(_0xdf803d){if(_0xdf803d)return _0xdf803d['update'](_0x36f5ee)['then'](function(_0x5d6e7b){return _0x5d6e7b;});return null;};}function removeEntity(_0x25aa5f){return function(_0x159c86){if(_0x159c86)return _0x159c86['destroy']()['then'](function(){const _0x588fa4=a633_0x242d,_0xcc8ea3=_0x159c86['get']({'plain':!![]}),_0x1aacd5=_0x588fa4('0x13');return db[_0x588fa4('0x20')]['destroy']({'where':{'type':_0x1aacd5,'resourceId':_0xcc8ea3['id']}})[_0x588fa4('0xd')](function(){return _0x159c86;});})['then'](function(){const _0x2df2b6=a633_0x242d;_0x25aa5f[_0x2df2b6('0x16')](0xcc)[_0x2df2b6('0x2')]();});};}function handleEntityNotFound(_0x36bf01){return function(_0xd0c5b){const _0x3cb7ef=a633_0x242d;return!_0xd0c5b&&_0x36bf01[_0x3cb7ef('0x2d')](0x194),_0xd0c5b;};}function handleError(_0x4b1cb5,_0xd01a49){return _0xd01a49=_0xd01a49||0x1f4,function(_0x4c76b1){const _0x1153ba=a633_0x242d;logger[_0x1153ba('0x19')](_0x4c76b1[_0x1153ba('0xf')]),_0x4c76b1[_0x1153ba('0x15')]&&delete _0x4c76b1[_0x1153ba('0x15')],_0x4b1cb5[_0x1153ba('0x16')](_0xd01a49)['send'](_0x4c76b1);};}exports[_0x46d73a('0x1c')]=function(_0x192430,_0x41d9a){const _0x4ad494=_0x46d73a;let _0x4ba4b4={};const _0x6dfe6a={},_0xfa7107={'count':0x0,'rows':[]},_0x42e979=_[_0x4ad494('0x2a')](db[_0x4ad494('0x24')][_0x4ad494('0x1d')],function(_0x5119a8){const _0x429458=_0x4ad494;return{'name':_0x5119a8['fieldName'],'type':_0x5119a8[_0x429458('0x33')][_0x429458('0x11')]};});_0x6dfe6a[_0x4ad494('0xb')]=_[_0x4ad494('0x2a')](_0x42e979,_0x4ad494('0x15')),_0x6dfe6a[_0x4ad494('0x35')]=_[_0x4ad494('0x32')](_0x192430[_0x4ad494('0x35')]),_0x6dfe6a[_0x4ad494('0x2c')]=_[_0x4ad494('0x30')](_0x6dfe6a['model'],_0x6dfe6a[_0x4ad494('0x35')]),_0x4ba4b4[_0x4ad494('0x4')]=_[_0x4ad494('0x30')](_0x6dfe6a[_0x4ad494('0xb')],qs[_0x4ad494('0x3a')](_0x192430[_0x4ad494('0x35')][_0x4ad494('0x3a')])),_0x4ba4b4['attributes']=_0x4ba4b4['attributes']['length']?_0x4ba4b4[_0x4ad494('0x4')]:_0x6dfe6a[_0x4ad494('0xb')];typeof _0x192430[_0x4ad494('0x35')][_0x4ad494('0x2f')]==='undefined'&&(_0x4ba4b4[_0x4ad494('0x1b')]=qs[_0x4ad494('0x1b')](_0x192430[_0x4ad494('0x35')][_0x4ad494('0x1b')]),_0x4ba4b4['offset']=qs[_0x4ad494('0x12')](_0x192430[_0x4ad494('0x35')][_0x4ad494('0x12')]));_0x4ba4b4[_0x4ad494('0x21')]=qs['sort'](_0x192430[_0x4ad494('0x35')]['sort']),_0x4ba4b4[_0x4ad494('0x2e')]=qs['filters'](_[_0x4ad494('0x2b')](_0x192430[_0x4ad494('0x35')],_0x6dfe6a['filters']),_0x42e979);_0x192430[_0x4ad494('0x35')][_0x4ad494('0x23')]&&(_0x4ba4b4[_0x4ad494('0x2e')]=_[_0x4ad494('0x8')](_0x4ba4b4['where'],{[Op['or']]:_[_0x4ad494('0x2a')](_0x42e979,function(_0x14a092){const _0x5e6d68=_0x4ad494;if(_0x14a092[_0x5e6d68('0x33')]!==_0x5e6d68('0x31')){const _0x26fa14={};return _0x26fa14[_0x14a092[_0x5e6d68('0x15')]]={[Op[_0x5e6d68('0x38')]]:'%'+_0x192430[_0x5e6d68('0x35')][_0x5e6d68('0x23')]+'%'},_0x26fa14;}})}));_0x4ba4b4=_[_0x4ad494('0x8')]({},_0x4ba4b4,_0x192430['options']);const _0x3a44b4={'where':_0x4ba4b4[_0x4ad494('0x2e')]};return db[_0x4ad494('0x24')][_0x4ad494('0x22')](_0x3a44b4)[_0x4ad494('0xd')](function(_0x49f343){const _0x94678e=_0x4ad494;return _0xfa7107[_0x94678e('0x22')]=_0x49f343,_0x192430['query']['includeAll']&&(_0x4ba4b4[_0x94678e('0x26')]=[{'all':!![]}]),db[_0x94678e('0x24')][_0x94678e('0xc')](_0x4ba4b4);})[_0x4ad494('0xd')](function(_0x52a063){const _0x3b5d22=_0x4ad494;return _0xfa7107[_0x3b5d22('0x0')]=_0x52a063,_0xfa7107;})['then'](respondWithFilteredResult(_0x41d9a,_0x4ba4b4))[_0x4ad494('0x7')](handleError(_0x41d9a,null));},exports[_0x46d73a('0x9')]=function(_0xe52a05,_0x360e9c){const _0x13d3e4=_0x46d73a;let _0x4fa000={'raw':!![],'where':{'id':_0xe52a05[_0x13d3e4('0x36')]['id']}};const _0x2bef74={};return _0x2bef74[_0x13d3e4('0xb')]=_[_0x13d3e4('0x32')](db[_0x13d3e4('0x24')]['rawAttributes']),_0x2bef74[_0x13d3e4('0x35')]=_[_0x13d3e4('0x32')](_0xe52a05['query']),_0x2bef74[_0x13d3e4('0x2c')]=_[_0x13d3e4('0x30')](_0x2bef74[_0x13d3e4('0xb')],_0x2bef74[_0x13d3e4('0x35')]),_0x4fa000[_0x13d3e4('0x4')]=_[_0x13d3e4('0x30')](_0x2bef74[_0x13d3e4('0xb')],qs['fields'](_0xe52a05[_0x13d3e4('0x35')][_0x13d3e4('0x3a')])),_0x4fa000['attributes']=_0x4fa000['attributes']['length']?_0x4fa000[_0x13d3e4('0x4')]:_0x2bef74['model'],_0xe52a05[_0x13d3e4('0x35')][_0x13d3e4('0x1a')]&&(_0x4fa000[_0x13d3e4('0x26')]=[{'all':!![]}]),_0x4fa000=_[_0x13d3e4('0x8')]({},_0x4fa000,_0xe52a05[_0x13d3e4('0x1f')]),db['Template'][_0x13d3e4('0x1')](_0x4fa000)[_0x13d3e4('0xd')](handleEntityNotFound(_0x360e9c,null))[_0x13d3e4('0xd')](respondWithResult(_0x360e9c,null))['catch'](handleError(_0x360e9c,null));},exports[_0x46d73a('0x37')]=function(_0x1dc923,_0x220d4f){const _0x1828ab=_0x46d73a;return db[_0x1828ab('0x24')]['create'](_0x1dc923[_0x1828ab('0x10')],{})[_0x1828ab('0xd')](function(_0x4ada93){const _0x32475c=_0x1828ab,_0x4caf67=_0x1dc923[_0x32475c('0x29')]['get']({'plain':!![]});if(!_0x4caf67)throw new Error(_0x32475c('0x28'));if(_0x4caf67[_0x32475c('0x5')]===_0x32475c('0x29')){const _0x28f762=_0x4ada93[_0x32475c('0x17')]({'plain':!![]}),_0x522761=_0x32475c('0x13');return db[_0x32475c('0x25')][_0x32475c('0x1')]({'where':{'name':_0x522761,'userProfileId':_0x4caf67[_0x32475c('0x34')]},'raw':!![]})[_0x32475c('0xd')](function(_0xd4dd31){const _0x23ca4a=_0x32475c;return _0xd4dd31&&_0xd4dd31[_0x23ca4a('0x6')]===0x0?db[_0x23ca4a('0x20')]['create']({'name':_0x28f762[_0x23ca4a('0x15')],'resourceId':_0x28f762['id'],'type':_0xd4dd31[_0x23ca4a('0x15')],'sectionId':_0xd4dd31['id']},{})[_0x23ca4a('0xd')](function(){return _0x4ada93;}):_0x4ada93;})[_0x32475c('0x7')](function(_0x2d795f){const _0x6a97a5=_0x32475c;logger[_0x6a97a5('0x19')](_0x6a97a5('0x1e'),_0x2d795f);throw _0x2d795f;});}return _0x4ada93;})[_0x1828ab('0xd')](respondWithResult(_0x220d4f,0xc9))[_0x1828ab('0x7')](handleError(_0x220d4f,null));},exports['update']=function(_0x40b721,_0x3e131c){const _0xb7bbd0=_0x46d73a;return _0x40b721['body']['id']&&delete _0x40b721['body']['id'],db[_0xb7bbd0('0x24')][_0xb7bbd0('0x1')]({'where':{'id':_0x40b721['params']['id']}})[_0xb7bbd0('0xd')](handleEntityNotFound(_0x3e131c,null))['then'](saveUpdates(_0x40b721[_0xb7bbd0('0x10')],null))[_0xb7bbd0('0xd')](respondWithResult(_0x3e131c,null))[_0xb7bbd0('0x7')](handleError(_0x3e131c,null));},exports['destroy']=function(_0x53ffb2,_0x26fee9){const _0xd9b1e0=_0x46d73a;return db[_0xd9b1e0('0x24')][_0xd9b1e0('0x1')]({'where':{'id':_0x53ffb2[_0xd9b1e0('0x36')]['id']}})[_0xd9b1e0('0xd')](handleEntityNotFound(_0x26fee9,null))['then'](removeEntity(_0x26fee9,null))[_0xd9b1e0('0x7')](handleError(_0x26fee9,null));}; \ No newline at end of file +const a757_0x54de=['intersection','include','sendStatus','type','sort','name','destroy','json','nolimit','index','fieldName','status','rawAttributes','UserProfileResource','attributes','fields','count','catch','undefined','show','pick','offset','Templates','filter','model','../../config/logger','query','lodash','create','../../mysqldb','get','keys','limit','options','Template','length','Unable\x20to\x20retrieve\x20the\x20current\x20user','includeAll','key','then','userProfileId','order','autoAssociation','filters','map','end','merge','params','where','like','body','../../components/parsers/qs','error','send','stack','findOne','update'];(function(_0xa02140,_0x324778){const _0x54de84=function(_0x2fabb2){while(--_0x2fabb2){_0xa02140['push'](_0xa02140['shift']());}};_0x54de84(++_0x324778);}(a757_0x54de,0x150));const a757_0x2fab=function(_0xa02140,_0x324778){_0xa02140=_0xa02140-0xc5;let _0x54de84=a757_0x54de[_0xa02140];return _0x54de84;};const a757_0x3ddb44=a757_0x2fab;'use strict';const _=require(a757_0x3ddb44(0xe6)),qs=require(a757_0x3ddb44(0xc5)),logger=require(a757_0x3ddb44(0xe4))('api'),{db}=require(a757_0x3ddb44(0xe8)),{Op}=require('sequelize');function respondWithResult(_0x382b28,_0x4d85b4){return _0x4d85b4=_0x4d85b4||0xc8,function(_0x46e576){const _0x2ec2bc=a757_0x2fab;if(_0x46e576)return _0x382b28[_0x2ec2bc(0xd6)](_0x4d85b4)[_0x2ec2bc(0xd2)](_0x46e576);};}function respondWithFilteredResult(_0x39bc11,_0x3b6dec){return function(_0x4e608e){const _0x947164=a757_0x2fab;if(_0x4e608e){const _0xae92ad=_0x4e608e['count'],_0x751fa4=_0x3b6dec[_0x947164(0xe0)];let _0x2c567b=_0x3b6dec[_0x947164(0xe0)]+_0x3b6dec['limit'],_0x211703;return _0x2c567b>=_0xae92ad?(_0x2c567b=_0xae92ad,_0x211703=0xc8):_0x211703=0xce,_0x39bc11['status'](_0x211703),_0x39bc11['set']('Content-Range',_0x751fa4+'-'+_0x2c567b+'/'+_0xae92ad)[_0x947164(0xd2)](_0x4e608e);}return null;};}function saveUpdates(_0x133861){return function(_0x2a28fd){const _0x4284df=a757_0x2fab;if(_0x2a28fd)return _0x2a28fd[_0x4284df(0xca)](_0x133861)[_0x4284df(0xf2)](function(_0x1dc37e){return _0x1dc37e;});return null;};}function removeEntity(_0x264e42){return function(_0x54aa63){const _0x4778cc=a757_0x2fab;if(_0x54aa63)return _0x54aa63['destroy']()[_0x4778cc(0xf2)](function(){const _0x46d958=_0x4778cc,_0x491dae=_0x54aa63[_0x46d958(0xe9)]({'plain':!![]}),_0x184a53='Templates';return db[_0x46d958(0xd8)][_0x46d958(0xd1)]({'where':{'type':_0x184a53,'resourceId':_0x491dae['id']}})['then'](function(){return _0x54aa63;});})[_0x4778cc(0xf2)](function(){const _0x1a5558=_0x4778cc;_0x264e42[_0x1a5558(0xd6)](0xcc)[_0x1a5558(0xf8)]();});};}function handleEntityNotFound(_0x367570){return function(_0x56a7d3){const _0x4673b5=a757_0x2fab;return!_0x56a7d3&&_0x367570[_0x4673b5(0xcd)](0x194),_0x56a7d3;};}function handleError(_0x148eb1,_0x4125e4){return _0x4125e4=_0x4125e4||0x1f4,function(_0x53a84){const _0x25cbae=a757_0x2fab;logger['error'](_0x53a84[_0x25cbae(0xc8)]),_0x53a84[_0x25cbae(0xd0)]&&delete _0x53a84[_0x25cbae(0xd0)],_0x148eb1[_0x25cbae(0xd6)](_0x4125e4)[_0x25cbae(0xc7)](_0x53a84);};}exports[a757_0x3ddb44(0xd4)]=function(_0x5ef211,_0x42463e){const _0x35cf52=a757_0x3ddb44;let _0x3cd675={};const _0x3d9d57={},_0x32f0cc={'count':0x0,'rows':[]},_0x1a30a2=_[_0x35cf52(0xf7)](db[_0x35cf52(0xed)]['rawAttributes'],function(_0x3666a2){const _0x3f67ac=_0x35cf52;return{'name':_0x3666a2[_0x3f67ac(0xd5)],'type':_0x3666a2['type'][_0x3f67ac(0xf1)]};});_0x3d9d57[_0x35cf52(0xe3)]=_['map'](_0x1a30a2,'name'),_0x3d9d57[_0x35cf52(0xe5)]=_[_0x35cf52(0xea)](_0x5ef211[_0x35cf52(0xe5)]),_0x3d9d57['filters']=_['intersection'](_0x3d9d57[_0x35cf52(0xe3)],_0x3d9d57[_0x35cf52(0xe5)]),_0x3cd675[_0x35cf52(0xd9)]=_[_0x35cf52(0xcb)](_0x3d9d57[_0x35cf52(0xe3)],qs[_0x35cf52(0xda)](_0x5ef211[_0x35cf52(0xe5)][_0x35cf52(0xda)])),_0x3cd675[_0x35cf52(0xd9)]=_0x3cd675[_0x35cf52(0xd9)]['length']?_0x3cd675[_0x35cf52(0xd9)]:_0x3d9d57[_0x35cf52(0xe3)];typeof _0x5ef211[_0x35cf52(0xe5)][_0x35cf52(0xd3)]===_0x35cf52(0xdd)&&(_0x3cd675[_0x35cf52(0xeb)]=qs[_0x35cf52(0xeb)](_0x5ef211[_0x35cf52(0xe5)][_0x35cf52(0xeb)]),_0x3cd675['offset']=qs[_0x35cf52(0xe0)](_0x5ef211['query'][_0x35cf52(0xe0)]));_0x3cd675[_0x35cf52(0xf4)]=qs['sort'](_0x5ef211[_0x35cf52(0xe5)][_0x35cf52(0xcf)]),_0x3cd675[_0x35cf52(0xfb)]=qs['filters'](_[_0x35cf52(0xdf)](_0x5ef211[_0x35cf52(0xe5)],_0x3d9d57[_0x35cf52(0xf6)]),_0x1a30a2);_0x5ef211['query'][_0x35cf52(0xe2)]&&(_0x3cd675[_0x35cf52(0xfb)]=_[_0x35cf52(0xf9)](_0x3cd675['where'],{[Op['or']]:_[_0x35cf52(0xf7)](_0x1a30a2,function(_0x39de33){const _0x5c917a=_0x35cf52;if(_0x39de33[_0x5c917a(0xce)]!=='VIRTUAL'){const _0xaa4c9a={};return _0xaa4c9a[_0x39de33[_0x5c917a(0xd0)]]={[Op[_0x5c917a(0xfc)]]:'%'+_0x5ef211[_0x5c917a(0xe5)][_0x5c917a(0xe2)]+'%'},_0xaa4c9a;}})}));_0x3cd675=_[_0x35cf52(0xf9)]({},_0x3cd675,_0x5ef211[_0x35cf52(0xec)]);const _0xb53e38={'where':_0x3cd675[_0x35cf52(0xfb)]};return db['Template'][_0x35cf52(0xdb)](_0xb53e38)[_0x35cf52(0xf2)](function(_0x5da799){const _0x64962e=_0x35cf52;return _0x32f0cc[_0x64962e(0xdb)]=_0x5da799,_0x5ef211[_0x64962e(0xe5)]['includeAll']&&(_0x3cd675[_0x64962e(0xcc)]=[{'all':!![]}]),db[_0x64962e(0xed)]['findAll'](_0x3cd675);})[_0x35cf52(0xf2)](function(_0x29ee68){return _0x32f0cc['rows']=_0x29ee68,_0x32f0cc;})[_0x35cf52(0xf2)](respondWithFilteredResult(_0x42463e,_0x3cd675))[_0x35cf52(0xdc)](handleError(_0x42463e,null));},exports[a757_0x3ddb44(0xde)]=function(_0x3aa907,_0x248419){const _0x6c00d3=a757_0x3ddb44;let _0x37fa06={'raw':!![],'where':{'id':_0x3aa907[_0x6c00d3(0xfa)]['id']}};const _0x33109d={};return _0x33109d[_0x6c00d3(0xe3)]=_[_0x6c00d3(0xea)](db[_0x6c00d3(0xed)][_0x6c00d3(0xd7)]),_0x33109d[_0x6c00d3(0xe5)]=_[_0x6c00d3(0xea)](_0x3aa907[_0x6c00d3(0xe5)]),_0x33109d['filters']=_['intersection'](_0x33109d['model'],_0x33109d[_0x6c00d3(0xe5)]),_0x37fa06[_0x6c00d3(0xd9)]=_[_0x6c00d3(0xcb)](_0x33109d[_0x6c00d3(0xe3)],qs[_0x6c00d3(0xda)](_0x3aa907[_0x6c00d3(0xe5)][_0x6c00d3(0xda)])),_0x37fa06[_0x6c00d3(0xd9)]=_0x37fa06[_0x6c00d3(0xd9)][_0x6c00d3(0xee)]?_0x37fa06[_0x6c00d3(0xd9)]:_0x33109d[_0x6c00d3(0xe3)],_0x3aa907['query'][_0x6c00d3(0xf0)]&&(_0x37fa06[_0x6c00d3(0xcc)]=[{'all':!![]}]),_0x37fa06=_[_0x6c00d3(0xf9)]({},_0x37fa06,_0x3aa907[_0x6c00d3(0xec)]),db['Template'][_0x6c00d3(0xc9)](_0x37fa06)[_0x6c00d3(0xf2)](handleEntityNotFound(_0x248419,null))['then'](respondWithResult(_0x248419,null))['catch'](handleError(_0x248419,null));},exports[a757_0x3ddb44(0xe7)]=function(_0x2ec17c,_0x234f38){const _0x2207bc=a757_0x3ddb44;return db[_0x2207bc(0xed)][_0x2207bc(0xe7)](_0x2ec17c[_0x2207bc(0xfd)],{})['then'](function(_0x790902){const _0x5078b9=_0x2207bc,_0x145e97=_0x2ec17c['user'][_0x5078b9(0xe9)]({'plain':!![]});if(!_0x145e97)throw new Error(_0x5078b9(0xef));if(_0x145e97['role']==='user'){const _0x4888c9=_0x790902['get']({'plain':!![]}),_0x37be86=_0x5078b9(0xe1);return db['UserProfileSection'][_0x5078b9(0xc9)]({'where':{'name':_0x37be86,'userProfileId':_0x145e97[_0x5078b9(0xf3)]},'raw':!![]})[_0x5078b9(0xf2)](function(_0x1a9d06){const _0x2fa743=_0x5078b9;return _0x1a9d06&&_0x1a9d06[_0x2fa743(0xf5)]===0x0?db[_0x2fa743(0xd8)][_0x2fa743(0xe7)]({'name':_0x4888c9[_0x2fa743(0xd0)],'resourceId':_0x4888c9['id'],'type':_0x1a9d06['name'],'sectionId':_0x1a9d06['id']},{})[_0x2fa743(0xf2)](function(){return _0x790902;}):_0x790902;})[_0x5078b9(0xdc)](function(_0x818355){const _0x536975=_0x5078b9;logger[_0x536975(0xc6)]('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0x818355);throw _0x818355;});}return _0x790902;})[_0x2207bc(0xf2)](respondWithResult(_0x234f38,0xc9))[_0x2207bc(0xdc)](handleError(_0x234f38,null));},exports['update']=function(_0x5b7703,_0x16c7a7){const _0x1eee90=a757_0x3ddb44;return _0x5b7703[_0x1eee90(0xfd)]['id']&&delete _0x5b7703[_0x1eee90(0xfd)]['id'],db[_0x1eee90(0xed)][_0x1eee90(0xc9)]({'where':{'id':_0x5b7703[_0x1eee90(0xfa)]['id']}})[_0x1eee90(0xf2)](handleEntityNotFound(_0x16c7a7,null))[_0x1eee90(0xf2)](saveUpdates(_0x5b7703[_0x1eee90(0xfd)],null))[_0x1eee90(0xf2)](respondWithResult(_0x16c7a7,null))['catch'](handleError(_0x16c7a7,null));},exports['destroy']=function(_0x50dbdd,_0x5c06f5){const _0x1fb527=a757_0x3ddb44;return db[_0x1fb527(0xed)][_0x1fb527(0xc9)]({'where':{'id':_0x50dbdd[_0x1fb527(0xfa)]['id']}})['then'](handleEntityNotFound(_0x5c06f5,null))[_0x1fb527(0xf2)](removeEntity(_0x5c06f5,null))[_0x1fb527(0xdc)](handleError(_0x5c06f5,null));}; \ No newline at end of file diff --git a/server/api/template/template.model.js b/server/api/template/template.model.js index 6d24d1d..42d30d0 100644 --- a/server/api/template/template.model.js +++ b/server/api/template/template.model.js @@ -1 +1 @@ -const a634_0x3254=['exports','define','Template'];(function(_0x58b540,_0x32545d){const _0x38fab0=function(_0x5f3cf0){while(--_0x5f3cf0){_0x58b540['push'](_0x58b540['shift']());}};_0x38fab0(++_0x32545d);}(a634_0x3254,0xbe));const a634_0x38fa=function(_0x58b540,_0x32545d){_0x58b540=_0x58b540-0x0;let _0x38fab0=a634_0x3254[_0x58b540];return _0x38fab0;};const _0x4c39f0=a634_0x38fa;'use strict';const attributes=require('./template.attributes');module[_0x4c39f0('0x2')]=function(_0x5f3cf0){const _0x48940a=_0x4c39f0,_0x5598a6=_0x5f3cf0[_0x48940a('0x0')](_0x48940a('0x1'),attributes,{'tableName':'tools_templates','paranoid':![],'indexes':[],'timestamps':!![]});return _0x5598a6;}; \ No newline at end of file +const a758_0x3aae=['./template.options','exports','./template.attributes','function','sequelize','init'];(function(_0x4fae2a,_0x84b674){const _0x3aaed1=function(_0x371577){while(--_0x371577){_0x4fae2a['push'](_0x4fae2a['shift']());}};_0x3aaed1(++_0x84b674);}(a758_0x3aae,0xde));const a758_0x3715=function(_0x4fae2a,_0x84b674){_0x4fae2a=_0x4fae2a-0x11c;let _0x3aaed1=a758_0x3aae[_0x4fae2a];return _0x3aaed1;};const a758_0x7afc91=a758_0x3715;'use strict';const {Model}=require(a758_0x7afc91(0x120)),{attributes}=require(a758_0x7afc91(0x11e)),{options}=require(a758_0x7afc91(0x11c));class Template extends Model{}function init(_0x16f121,_0x8e9070){const _0x126862=a758_0x7afc91,_0x4e00c8=options(_0x16f121),_0x229473=typeof _0x8e9070===_0x126862(0x11f)?_0x8e9070(_0x4e00c8):_0x4e00c8;return Template[_0x126862(0x121)](attributes,_0x229473),Template;}module[a758_0x7afc91(0x11d)]['Template']=Template,module['exports'][a758_0x7afc91(0x121)]=init; \ No newline at end of file diff --git a/server/api/template/template.options.js b/server/api/template/template.options.js new file mode 100644 index 0000000..f18f12f --- /dev/null +++ b/server/api/template/template.options.js @@ -0,0 +1 @@ +var a759_0x4620=['tools_templates','exports','options'];(function(_0x551602,_0x2a364e){var _0x4620e3=function(_0x36d5e0){while(--_0x36d5e0){_0x551602['push'](_0x551602['shift']());}};_0x4620e3(++_0x2a364e);}(a759_0x4620,0xf0));var a759_0x36d5=function(_0x551602,_0x2a364e){_0x551602=_0x551602-0x1f0;var _0x4620e3=a759_0x4620[_0x551602];return _0x4620e3;};var a759_0x45b613=a759_0x36d5;function options(_0x3c19ac){var _0x1634fe=a759_0x36d5;return{'sequelize':_0x3c19ac,'tableName':_0x1634fe(0x1f0),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a759_0x45b613(0x1f1)][a759_0x45b613(0x1f2)]=options; \ No newline at end of file diff --git a/server/api/template/template.rpc.js b/server/api/template/template.rpc.js index f10d7a9..dabe185 100644 --- a/server/api/template/template.rpc.js +++ b/server/api/template/template.rpc.js @@ -1 +1 @@ -const a635_0x4d1b=['../../mysqldb','debug','findAll','stringify','lodash','include','GetTemplate','options','Template','info','model','../../config/logger','map','error','attributes','limit','message'];(function(_0x381478,_0x4d1b81){const _0x431366=function(_0x45f9f9){while(--_0x45f9f9){_0x381478['push'](_0x381478['shift']());}};_0x431366(++_0x4d1b81);}(a635_0x4d1b,0x1b6));const a635_0x4313=function(_0x381478,_0x4d1b81){_0x381478=_0x381478-0x0;let _0x431366=a635_0x4d1b[_0x381478];return _0x431366;};const _0x121fed=a635_0x4313;'use strict';const _=require(_0x121fed('0x8')),db=require(_0x121fed('0x4'))['db'],logger=require(_0x121fed('0xf'))('rpc');exports[_0x121fed('0xa')]=function(_0x45f9f9){const _0x23346e=this;return new Promise(function(_0x16e72c,_0x20c393){const _0x4559a4=a635_0x4313;return db[_0x4559a4('0xc')][_0x4559a4('0x6')]({'raw':_0x45f9f9['options']?_0x45f9f9[_0x4559a4('0xb')]['raw']===undefined?!![]:![]:!![],'where':_0x45f9f9[_0x4559a4('0xb')]?_0x45f9f9[_0x4559a4('0xb')]['where']||null:null,'attributes':_0x45f9f9[_0x4559a4('0xb')]?_0x45f9f9['options'][_0x4559a4('0x1')]||null:null,'limit':_0x45f9f9[_0x4559a4('0xb')]?_0x45f9f9[_0x4559a4('0xb')][_0x4559a4('0x2')]||null:null,'include':_0x45f9f9[_0x4559a4('0xb')]?_0x45f9f9[_0x4559a4('0xb')][_0x4559a4('0x9')]?_[_0x4559a4('0x10')](_0x45f9f9[_0x4559a4('0xb')][_0x4559a4('0x9')],function(_0x4424dd){const _0x4983e9=_0x4559a4;return{'model':db[_0x4424dd['model']],'as':_0x4424dd['as'],'attributes':_0x4424dd[_0x4983e9('0x1')],'include':_0x4424dd['include']?_[_0x4983e9('0x10')](_0x4424dd[_0x4983e9('0x9')],function(_0x34e22c){const _0x52c105=_0x4983e9;return{'model':db[_0x34e22c[_0x52c105('0xe')]],'as':_0x34e22c['as'],'attributes':_0x34e22c[_0x52c105('0x1')],'include':_0x34e22c[_0x52c105('0x9')]?_[_0x52c105('0x10')](_0x34e22c[_0x52c105('0x9')],function(_0x4d8002){const _0x356087=_0x52c105;return{'model':db[_0x4d8002[_0x356087('0xe')]],'as':_0x4d8002['as'],'attributes':_0x4d8002[_0x356087('0x1')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x1da1f1){const _0x4da651=_0x4559a4;logger[_0x4da651('0xd')](_0x4da651('0xa'),_0x45f9f9),logger[_0x4da651('0x5')](_0x4da651('0xa'),_0x45f9f9,JSON[_0x4da651('0x7')](_0x1da1f1)),_0x16e72c(_0x1da1f1);})['catch'](function(_0x31ed4c){const _0xdf9c8f=_0x4559a4;logger[_0xdf9c8f('0x0')](_0xdf9c8f('0xa'),_0x31ed4c[_0xdf9c8f('0x3')],_0x45f9f9),_0x20c393(_0x23346e[_0xdf9c8f('0x0')](0x1f4,_0x31ed4c[_0xdf9c8f('0x3')]));});});}; \ No newline at end of file +const a760_0x586a=['error','rpc','GetTemplate','../../mysqldb','message','../../config/logger','where','model','then','options','findAll','catch','Template','attributes','map','include','stringify'];(function(_0x48137d,_0xd62f8b){const _0x586a28=function(_0x3e6e1d){while(--_0x3e6e1d){_0x48137d['push'](_0x48137d['shift']());}};_0x586a28(++_0xd62f8b);}(a760_0x586a,0x1e1));const a760_0x3e6e=function(_0x48137d,_0xd62f8b){_0x48137d=_0x48137d-0xd2;let _0x586a28=a760_0x586a[_0x48137d];return _0x586a28;};const a760_0x1106a1=a760_0x3e6e;'use strict';const _=require('lodash'),db=require(a760_0x1106a1(0xe1))['db'],logger=require(a760_0x1106a1(0xd2))(a760_0x1106a1(0xdf));exports[a760_0x1106a1(0xe0)]=function(_0x511971){const _0x4fb70e=this;return new Promise(function(_0x58e6d0,_0x5ae6e1){const _0x341e62=a760_0x3e6e;return db[_0x341e62(0xd9)][_0x341e62(0xd7)]({'raw':_0x511971['options']?_0x511971[_0x341e62(0xd6)]['raw']===undefined?!![]:![]:!![],'where':_0x511971[_0x341e62(0xd6)]?_0x511971[_0x341e62(0xd6)][_0x341e62(0xd3)]||null:null,'attributes':_0x511971['options']?_0x511971[_0x341e62(0xd6)]['attributes']||null:null,'limit':_0x511971[_0x341e62(0xd6)]?_0x511971['options']['limit']||null:null,'include':_0x511971[_0x341e62(0xd6)]?_0x511971['options'][_0x341e62(0xdc)]?_[_0x341e62(0xdb)](_0x511971['options'][_0x341e62(0xdc)],function(_0x2b1214){const _0x4e7798=_0x341e62;return{'model':db[_0x2b1214[_0x4e7798(0xd4)]],'as':_0x2b1214['as'],'attributes':_0x2b1214[_0x4e7798(0xda)],'include':_0x2b1214[_0x4e7798(0xdc)]?_[_0x4e7798(0xdb)](_0x2b1214[_0x4e7798(0xdc)],function(_0x5b77a2){const _0x3cd840=_0x4e7798;return{'model':db[_0x5b77a2[_0x3cd840(0xd4)]],'as':_0x5b77a2['as'],'attributes':_0x5b77a2[_0x3cd840(0xda)],'include':_0x5b77a2[_0x3cd840(0xdc)]?_[_0x3cd840(0xdb)](_0x5b77a2[_0x3cd840(0xdc)],function(_0x251b3b){const _0x59eff8=_0x3cd840;return{'model':db[_0x251b3b[_0x59eff8(0xd4)]],'as':_0x251b3b['as'],'attributes':_0x251b3b[_0x59eff8(0xda)]};}):[]};}):[]};}):[]:[]})[_0x341e62(0xd5)](function(_0x39a06d){const _0x476635=_0x341e62;logger['info'](_0x476635(0xe0),_0x511971),logger['debug'](_0x476635(0xe0),_0x511971,JSON[_0x476635(0xdd)](_0x39a06d)),_0x58e6d0(_0x39a06d);})[_0x341e62(0xd8)](function(_0x354a3d){const _0x2c7dc3=_0x341e62;logger[_0x2c7dc3(0xde)](_0x2c7dc3(0xe0),_0x354a3d['message'],_0x511971),_0x5ae6e1(_0x4fb70e[_0x2c7dc3(0xde)](0x1f4,_0x354a3d[_0x2c7dc3(0xe2)]));});});}; \ No newline at end of file diff --git a/server/api/trigger/index.js b/server/api/trigger/index.js index f553ed8..7f43aae 100644 --- a/server/api/trigger/index.js +++ b/server/api/trigger/index.js @@ -1 +1 @@ -const a636_0x4a40=['addAction','getAnyConditions','addAllCondition','/:id','put','isAuthenticated','post','addAnyCondition','show','/:id/all_conditions','/:id/any_conditions','destroy','getAllConditions','/:id/actions','get','getActions','Router'];(function(_0x6f91d1,_0x4a4015){const _0x5d4151=function(_0x55d938){while(--_0x55d938){_0x6f91d1['push'](_0x6f91d1['shift']());}};_0x5d4151(++_0x4a4015);}(a636_0x4a40,0x1c9));const a636_0x5d41=function(_0x6f91d1,_0x4a4015){_0x6f91d1=_0x6f91d1-0x0;let _0x5d4151=a636_0x4a40[_0x6f91d1];return _0x5d4151;};const _0x3618cf=a636_0x5d41;'use strict';const express=require('express'),router=express[_0x3618cf('0x1')](),auth=require('../../components/auth/service'),controller=require('./trigger.controller');router[_0x3618cf('0x10')]('/',auth[_0x3618cf('0x7')](),controller['index']),router[_0x3618cf('0x10')](_0x3618cf('0x5'),auth[_0x3618cf('0x7')](),controller[_0x3618cf('0xa')]),router[_0x3618cf('0x10')](_0x3618cf('0xb'),auth[_0x3618cf('0x7')](),controller[_0x3618cf('0xe')]),router[_0x3618cf('0x10')](_0x3618cf('0xc'),auth['isAuthenticated'](),controller[_0x3618cf('0x3')]),router[_0x3618cf('0x10')](_0x3618cf('0xf'),auth[_0x3618cf('0x7')](),controller[_0x3618cf('0x0')]),router[_0x3618cf('0x8')]('/',auth[_0x3618cf('0x7')](),controller['create']),router[_0x3618cf('0x8')](_0x3618cf('0xb'),auth['isAuthenticated'](),controller[_0x3618cf('0x4')]),router['post'](_0x3618cf('0xc'),auth['isAuthenticated'](),controller[_0x3618cf('0x9')]),router[_0x3618cf('0x8')]('/:id/actions',auth[_0x3618cf('0x7')](),controller[_0x3618cf('0x2')]),router[_0x3618cf('0x6')](_0x3618cf('0x5'),auth[_0x3618cf('0x7')](),controller['update']),router['delete'](_0x3618cf('0x5'),auth[_0x3618cf('0x7')](),controller[_0x3618cf('0xd')]),module['exports']=router; \ No newline at end of file +const a761_0x5d99=['/:id/all_conditions','update','../../components/auth/service','getAnyConditions','/:id','addAction','put','isAuthenticated','exports','post','/:id/actions','delete','addAllCondition','./trigger.controller','create','destroy','get'];(function(_0x1e2c32,_0x5c6b1e){const _0x5d99b1=function(_0x1a45cf){while(--_0x1a45cf){_0x1e2c32['push'](_0x1e2c32['shift']());}};_0x5d99b1(++_0x5c6b1e);}(a761_0x5d99,0xa9));const a761_0x1a45=function(_0x1e2c32,_0x5c6b1e){_0x1e2c32=_0x1e2c32-0x16b;let _0x5d99b1=a761_0x5d99[_0x1e2c32];return _0x5d99b1;};const a761_0x534c6b=a761_0x1a45;'use strict';const express=require('express'),router=express['Router'](),auth=require(a761_0x534c6b(0x16e)),controller=require(a761_0x534c6b(0x179));router[a761_0x534c6b(0x16b)]('/',auth[a761_0x534c6b(0x173)](),controller['index']),router[a761_0x534c6b(0x16b)](a761_0x534c6b(0x170),auth[a761_0x534c6b(0x173)](),controller['show']),router['get'](a761_0x534c6b(0x16c),auth[a761_0x534c6b(0x173)](),controller['getAllConditions']),router['get']('/:id/any_conditions',auth['isAuthenticated'](),controller[a761_0x534c6b(0x16f)]),router[a761_0x534c6b(0x16b)](a761_0x534c6b(0x176),auth[a761_0x534c6b(0x173)](),controller['getActions']),router[a761_0x534c6b(0x175)]('/',auth[a761_0x534c6b(0x173)](),controller[a761_0x534c6b(0x17a)]),router[a761_0x534c6b(0x175)](a761_0x534c6b(0x16c),auth['isAuthenticated'](),controller[a761_0x534c6b(0x178)]),router[a761_0x534c6b(0x175)]('/:id/any_conditions',auth[a761_0x534c6b(0x173)](),controller['addAnyCondition']),router[a761_0x534c6b(0x175)](a761_0x534c6b(0x176),auth[a761_0x534c6b(0x173)](),controller[a761_0x534c6b(0x171)]),router[a761_0x534c6b(0x172)](a761_0x534c6b(0x170),auth[a761_0x534c6b(0x173)](),controller[a761_0x534c6b(0x16d)]),router[a761_0x534c6b(0x177)]('/:id',auth[a761_0x534c6b(0x173)](),controller[a761_0x534c6b(0x17b)]),module[a761_0x534c6b(0x174)]=router; \ No newline at end of file diff --git a/server/api/trigger/trigger.attributes.js b/server/api/trigger/trigger.attributes.js index c6bb548..25fecce 100644 --- a/server/api/trigger/trigger.attributes.js +++ b/server/api/trigger/trigger.attributes.js @@ -1 +1 @@ -const a637_0x85f1=['STRING','exports','BOOLEAN','sequelize'];(function(_0x2259b4,_0x85f1d9){const _0x5cf9e6=function(_0x380104){while(--_0x380104){_0x2259b4['push'](_0x2259b4['shift']());}};_0x5cf9e6(++_0x85f1d9);}(a637_0x85f1,0xf5));const a637_0x5cf9=function(_0x2259b4,_0x85f1d9){_0x2259b4=_0x2259b4-0x0;let _0x5cf9e6=a637_0x85f1[_0x2259b4];return _0x5cf9e6;};const _0xb05f74=a637_0x5cf9;'use strict';const Sequelize=require(_0xb05f74('0x2'));module[_0xb05f74('0x0')]={'name':{'type':Sequelize[_0xb05f74('0x3')]},'channel':{'type':Sequelize[_0xb05f74('0x3')]},'description':{'type':Sequelize[_0xb05f74('0x3')]},'status':{'type':Sequelize[_0xb05f74('0x1')],'defaultValue':![]}}; \ No newline at end of file +const a762_0x2ec6=['sequelize','attributes','STRING'];(function(_0x30721,_0x20c33d){const _0x2ec657=function(_0x53f432){while(--_0x53f432){_0x30721['push'](_0x30721['shift']());}};_0x2ec657(++_0x20c33d);}(a762_0x2ec6,0x167));const a762_0x53f4=function(_0x30721,_0x20c33d){_0x30721=_0x30721-0x6f;let _0x2ec657=a762_0x2ec6[_0x30721];return _0x2ec657;};const a762_0x45252d=a762_0x53f4;'use strict';const {DataTypes}=require(a762_0x45252d(0x70)),attributes={'name':{'type':DataTypes[a762_0x45252d(0x6f)]},'channel':{'type':DataTypes[a762_0x45252d(0x6f)]},'description':{'type':DataTypes[a762_0x45252d(0x6f)]},'status':{'type':DataTypes['BOOLEAN'],'defaultValue':![]}};module['exports'][a762_0x45252d(0x71)]=attributes; \ No newline at end of file diff --git a/server/api/trigger/trigger.controller.js b/server/api/trigger/trigger.controller.js index c230897..27301ef 100644 --- a/server/api/trigger/trigger.controller.js +++ b/server/api/trigger/trigger.controller.js @@ -1 +1 @@ -const a638_0x3945=['model','undefined','type','getAnyConditions','key','filters','update','limit','where','includeAll','count','Condition','addAnyCondition','destroy','keys','then','intersection','send','Content-Range','../../components/parsers/qs','Action','name','fields','get','stack','catch','api','addAction','../../mysqldb','create','sequelize','status','fieldName','Trigger','query','nolimit','set','filter','Unable\x20to\x20retrieve\x20the\x20current\x20user','body','error','length','options','getActions','findOne','Triggers','order','offset','map','getAllConditions','UserProfileResource','VIRTUAL','like','rows','sort','../../config/logger','attributes','json','addAllCondition','merge','role','userProfileId','UserProfileSection','params','pick','index','rawAttributes','user','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','include'];(function(_0x1abca1,_0x3945cc){const _0x1ed96b=function(_0x36b823){while(--_0x36b823){_0x1abca1['push'](_0x1abca1['shift']());}};_0x1ed96b(++_0x3945cc);}(a638_0x3945,0xb2));const a638_0x1ed9=function(_0x1abca1,_0x3945cc){_0x1abca1=_0x1abca1-0x0;let _0x1ed96b=a638_0x3945[_0x1abca1];return _0x1ed96b;};const _0x3bfc4f=a638_0x1ed9;'use strict';const _=require('lodash'),qs=require(_0x3bfc4f('0x33')),logger=require(_0x3bfc4f('0x11'))(_0x3bfc4f('0x3a')),db=require(_0x3bfc4f('0x3c'))['db'],{Op}=require(_0x3bfc4f('0x3e'));function respondWithResult(_0x36b823,_0x1a89e7){return _0x1a89e7=_0x1a89e7||0xc8,function(_0x133f53){const _0x30af98=a638_0x1ed9;if(_0x133f53)return _0x36b823[_0x30af98('0x3f')](_0x1a89e7)[_0x30af98('0x13')](_0x133f53);};}function respondWithFilteredResult(_0x42fc1a,_0x317b6b){return function(_0x154d8b){const _0x5cd362=a638_0x1ed9;if(_0x154d8b){const _0x2ddcc4=_0x154d8b[_0x5cd362('0x2a')],_0x23527c=_0x317b6b[_0x5cd362('0x9')];let _0x28c6f9=_0x317b6b['offset']+_0x317b6b['limit'],_0x49d8d5;return _0x28c6f9>=_0x2ddcc4?(_0x28c6f9=_0x2ddcc4,_0x49d8d5=0xc8):_0x49d8d5=0xce,_0x42fc1a[_0x5cd362('0x3f')](_0x49d8d5),_0x42fc1a[_0x5cd362('0x44')](_0x5cd362('0x32'),_0x23527c+'-'+_0x28c6f9+'/'+_0x2ddcc4)[_0x5cd362('0x13')](_0x154d8b);}return null;};}function saveUpdates(_0xa864a8){return function(_0x2a13d3){const _0x453322=a638_0x1ed9;if(_0x2a13d3)return _0x2a13d3[_0x453322('0x26')](_0xa864a8)['then'](function(_0x2b9728){return _0x2b9728;});return null;};}function removeEntity(_0x2a4402){return function(_0x1e1b1c){const _0x5aacb2=a638_0x1ed9;if(_0x1e1b1c)return _0x1e1b1c[_0x5aacb2('0x2d')]()['then'](function(){const _0x265991=_0x5aacb2,_0x4c455d=_0x1e1b1c[_0x265991('0x37')]({'plain':!![]}),_0xb2cbf3=_0x265991('0x7');return db[_0x265991('0xc')][_0x265991('0x2d')]({'where':{'type':_0xb2cbf3,'resourceId':_0x4c455d['id']}})[_0x265991('0x2f')](function(){return _0x1e1b1c;});})[_0x5aacb2('0x2f')](function(){_0x2a4402['status'](0xcc)['end']();});};}function handleEntityNotFound(_0xedf824){return function(_0x3df3be){return!_0x3df3be&&_0xedf824['sendStatus'](0x194),_0x3df3be;};}function handleError(_0x25d980,_0x4ca1a2){return _0x4ca1a2=_0x4ca1a2||0x1f4,function(_0x4e3afe){const _0x82a603=a638_0x1ed9;logger['error'](_0x4e3afe[_0x82a603('0x38')]),_0x4e3afe[_0x82a603('0x35')]&&delete _0x4e3afe[_0x82a603('0x35')],_0x25d980[_0x82a603('0x3f')](_0x4ca1a2)[_0x82a603('0x31')](_0x4e3afe);};}exports[_0x3bfc4f('0x1b')]=function(_0xbc0460,_0x1b81fc){const _0x111fcb=_0x3bfc4f;let _0x2a1848={};const _0x54c5ba={},_0x4386ad={'count':0x0,'rows':[]},_0x5698c8=_[_0x111fcb('0xa')](db[_0x111fcb('0x41')]['rawAttributes'],function(_0x32743f){const _0x53e388=_0x111fcb;return{'name':_0x32743f[_0x53e388('0x40')],'type':_0x32743f[_0x53e388('0x22')][_0x53e388('0x24')]};});_0x54c5ba['model']=_[_0x111fcb('0xa')](_0x5698c8,_0x111fcb('0x35')),_0x54c5ba['query']=_[_0x111fcb('0x2e')](_0xbc0460['query']),_0x54c5ba[_0x111fcb('0x25')]=_[_0x111fcb('0x30')](_0x54c5ba['model'],_0x54c5ba[_0x111fcb('0x42')]),_0x2a1848[_0x111fcb('0x12')]=_[_0x111fcb('0x30')](_0x54c5ba[_0x111fcb('0x20')],qs[_0x111fcb('0x36')](_0xbc0460['query'][_0x111fcb('0x36')])),_0x2a1848['attributes']=_0x2a1848[_0x111fcb('0x12')][_0x111fcb('0x3')]?_0x2a1848[_0x111fcb('0x12')]:_0x54c5ba[_0x111fcb('0x20')];typeof _0xbc0460['query'][_0x111fcb('0x43')]===_0x111fcb('0x21')&&(_0x2a1848[_0x111fcb('0x27')]=qs['limit'](_0xbc0460[_0x111fcb('0x42')][_0x111fcb('0x27')]),_0x2a1848['offset']=qs[_0x111fcb('0x9')](_0xbc0460['query'][_0x111fcb('0x9')]));_0x2a1848[_0x111fcb('0x8')]=qs[_0x111fcb('0x10')](_0xbc0460['query'][_0x111fcb('0x10')]),_0x2a1848['where']=qs[_0x111fcb('0x25')](_[_0x111fcb('0x1a')](_0xbc0460[_0x111fcb('0x42')],_0x54c5ba[_0x111fcb('0x25')]),_0x5698c8);_0xbc0460[_0x111fcb('0x42')][_0x111fcb('0x45')]&&(_0x2a1848[_0x111fcb('0x28')]=_['merge'](_0x2a1848[_0x111fcb('0x28')],{[Op['or']]:_[_0x111fcb('0xa')](_0x5698c8,function(_0x2ed6b9){const _0x44befb=_0x111fcb;if(_0x2ed6b9[_0x44befb('0x22')]!==_0x44befb('0xd')){const _0x5497c1={};return _0x5497c1[_0x2ed6b9[_0x44befb('0x35')]]={[Op[_0x44befb('0xe')]]:'%'+_0xbc0460[_0x44befb('0x42')][_0x44befb('0x45')]+'%'},_0x5497c1;}})}));_0x2a1848=_[_0x111fcb('0x15')]({},_0x2a1848,_0xbc0460[_0x111fcb('0x4')]);const _0x4aceea={'where':_0x2a1848[_0x111fcb('0x28')]};return db[_0x111fcb('0x41')]['count'](_0x4aceea)[_0x111fcb('0x2f')](function(_0x471b21){const _0x2704aa=_0x111fcb;return _0x4386ad[_0x2704aa('0x2a')]=_0x471b21,_0xbc0460[_0x2704aa('0x42')]['includeAll']&&(_0x2a1848[_0x2704aa('0x1f')]=[{'all':!![]}]),db[_0x2704aa('0x41')]['findAll'](_0x2a1848);})[_0x111fcb('0x2f')](function(_0x3bb1d6){const _0x1fcadf=_0x111fcb;return _0x4386ad[_0x1fcadf('0xf')]=_0x3bb1d6,_0x4386ad;})[_0x111fcb('0x2f')](respondWithFilteredResult(_0x1b81fc,_0x2a1848))[_0x111fcb('0x39')](handleError(_0x1b81fc,null));},exports['show']=function(_0x2061bf,_0xf9db96){const _0x1e0e4d=_0x3bfc4f;let _0x574fa0={'raw':![],'where':{'id':_0x2061bf['params']['id']}};const _0x1f0ed2={};return _0x1f0ed2['model']=_[_0x1e0e4d('0x2e')](db[_0x1e0e4d('0x41')][_0x1e0e4d('0x1c')]),_0x1f0ed2['query']=_[_0x1e0e4d('0x2e')](_0x2061bf['query']),_0x1f0ed2[_0x1e0e4d('0x25')]=_['intersection'](_0x1f0ed2[_0x1e0e4d('0x20')],_0x1f0ed2[_0x1e0e4d('0x42')]),_0x574fa0[_0x1e0e4d('0x12')]=_[_0x1e0e4d('0x30')](_0x1f0ed2['model'],qs[_0x1e0e4d('0x36')](_0x2061bf[_0x1e0e4d('0x42')][_0x1e0e4d('0x36')])),_0x574fa0[_0x1e0e4d('0x12')]=_0x574fa0[_0x1e0e4d('0x12')][_0x1e0e4d('0x3')]?_0x574fa0[_0x1e0e4d('0x12')]:_0x1f0ed2['model'],_0x2061bf[_0x1e0e4d('0x42')][_0x1e0e4d('0x29')]&&(_0x574fa0[_0x1e0e4d('0x1f')]=[{'all':!![]}]),_0x574fa0=_['merge']({},_0x574fa0,_0x2061bf[_0x1e0e4d('0x4')]),db[_0x1e0e4d('0x41')][_0x1e0e4d('0x6')](_0x574fa0)[_0x1e0e4d('0x2f')](handleEntityNotFound(_0xf9db96,null))[_0x1e0e4d('0x2f')](respondWithResult(_0xf9db96,null))['catch'](handleError(_0xf9db96,null));},exports[_0x3bfc4f('0x3d')]=function(_0x2470e1,_0x386dde){const _0x3261f2=_0x3bfc4f;return db[_0x3261f2('0x41')][_0x3261f2('0x3d')](_0x2470e1[_0x3261f2('0x1')],{})[_0x3261f2('0x2f')](function(_0x257464){const _0x3989e0=_0x3261f2,_0x3c8f1f=_0x2470e1[_0x3989e0('0x1d')][_0x3989e0('0x37')]({'plain':!![]});if(!_0x3c8f1f)throw new Error(_0x3989e0('0x0'));if(_0x3c8f1f[_0x3989e0('0x16')]===_0x3989e0('0x1d')){const _0x47d27f=_0x257464['get']({'plain':!![]}),_0x4b3c46='Triggers';return db[_0x3989e0('0x18')][_0x3989e0('0x6')]({'where':{'name':_0x4b3c46,'userProfileId':_0x3c8f1f[_0x3989e0('0x17')]},'raw':!![]})[_0x3989e0('0x2f')](function(_0x420d83){const _0xc4a3b6=_0x3989e0;return _0x420d83&&_0x420d83['autoAssociation']===0x0?db[_0xc4a3b6('0xc')][_0xc4a3b6('0x3d')]({'name':_0x47d27f[_0xc4a3b6('0x35')],'resourceId':_0x47d27f['id'],'type':_0x420d83[_0xc4a3b6('0x35')],'sectionId':_0x420d83['id']},{})['then'](function(){return _0x257464;}):_0x257464;})['catch'](function(_0x207ecc){const _0x2a4c00=_0x3989e0;logger[_0x2a4c00('0x2')](_0x2a4c00('0x1e'),_0x207ecc);throw _0x207ecc;});}return _0x257464;})[_0x3261f2('0x2f')](respondWithResult(_0x386dde,0xc9))['catch'](handleError(_0x386dde,null));},exports[_0x3bfc4f('0x26')]=function(_0x35d817,_0xaeae99){const _0x357a42=_0x3bfc4f;return _0x35d817[_0x357a42('0x1')]['id']&&delete _0x35d817[_0x357a42('0x1')]['id'],db['Trigger'][_0x357a42('0x6')]({'where':{'id':_0x35d817['params']['id']}})[_0x357a42('0x2f')](handleEntityNotFound(_0xaeae99,null))[_0x357a42('0x2f')](saveUpdates(_0x35d817[_0x357a42('0x1')],null))[_0x357a42('0x2f')](respondWithResult(_0xaeae99,null))[_0x357a42('0x39')](handleError(_0xaeae99,null));},exports[_0x3bfc4f('0x2d')]=function(_0x26f6b4,_0x31935a){const _0xa16641=_0x3bfc4f;return db[_0xa16641('0x41')][_0xa16641('0x6')]({'where':{'id':_0x26f6b4[_0xa16641('0x19')]['id']}})[_0xa16641('0x2f')](handleEntityNotFound(_0x31935a,null))[_0xa16641('0x2f')](removeEntity(_0x31935a,null))[_0xa16641('0x39')](handleError(_0x31935a,null));},exports[_0x3bfc4f('0x14')]=function(_0x5e16a4,_0x540dd9){const _0x468343=_0x3bfc4f;return _0x5e16a4['body']['id']&&delete _0x5e16a4['body']['id'],db[_0x468343('0x41')][_0x468343('0x6')]({'where':{'id':_0x5e16a4[_0x468343('0x19')]['id']}})[_0x468343('0x2f')](handleEntityNotFound(_0x540dd9,null))[_0x468343('0x2f')](function(_0x46362d){const _0x4fe082=_0x468343;if(_0x46362d)return _0x5e16a4[_0x4fe082('0x1')]['TriggerAllId']=_0x46362d['id'],db[_0x4fe082('0x2b')][_0x4fe082('0x3d')](_0x5e16a4[_0x4fe082('0x1')]);})[_0x468343('0x2f')](respondWithResult(_0x540dd9,null))[_0x468343('0x39')](handleError(_0x540dd9,null));},exports[_0x3bfc4f('0x2c')]=function(_0x4b67bb,_0x596d5e){const _0x51fcf1=_0x3bfc4f;return _0x4b67bb['body']['id']&&delete _0x4b67bb[_0x51fcf1('0x1')]['id'],db[_0x51fcf1('0x41')][_0x51fcf1('0x6')]({'where':{'id':_0x4b67bb[_0x51fcf1('0x19')]['id']}})[_0x51fcf1('0x2f')](handleEntityNotFound(_0x596d5e,null))[_0x51fcf1('0x2f')](function(_0x15020d){const _0xd3e830=_0x51fcf1;if(_0x15020d)return _0x4b67bb[_0xd3e830('0x1')]['TriggerAnyId']=_0x15020d['id'],db['Condition'][_0xd3e830('0x3d')](_0x4b67bb[_0xd3e830('0x1')]);})[_0x51fcf1('0x2f')](respondWithResult(_0x596d5e,null))['catch'](handleError(_0x596d5e,null));},exports[_0x3bfc4f('0xb')]=function(_0x2f8653,_0xcd903d){const _0x1e6a9e=_0x3bfc4f;let _0x1df3e9={};const _0x2f620e={};let _0x417f23,_0x5684f6;return db[_0x1e6a9e('0x41')]['findOne']({'where':{'id':_0x2f8653[_0x1e6a9e('0x19')]['id']}})[_0x1e6a9e('0x2f')](handleEntityNotFound(_0xcd903d,null))['then'](function(_0x442473){const _0x34a35b=_0x1e6a9e;if(_0x442473)return _0x417f23=_0x442473,_0x2f620e['model']=_[_0x34a35b('0x2e')](db['Condition'][_0x34a35b('0x1c')]),_0x2f620e[_0x34a35b('0x42')]=_[_0x34a35b('0x2e')](_0x2f8653[_0x34a35b('0x42')]),_0x2f620e[_0x34a35b('0x25')]=_[_0x34a35b('0x30')](_0x2f620e[_0x34a35b('0x20')],_0x2f620e[_0x34a35b('0x42')]),_0x1df3e9[_0x34a35b('0x12')]=_[_0x34a35b('0x30')](_0x2f620e['model'],qs[_0x34a35b('0x36')](_0x2f8653[_0x34a35b('0x42')][_0x34a35b('0x36')])),_0x1df3e9[_0x34a35b('0x12')]=_0x1df3e9[_0x34a35b('0x12')][_0x34a35b('0x3')]?_0x1df3e9[_0x34a35b('0x12')]:_0x2f620e[_0x34a35b('0x20')],_0x1df3e9['order']=qs[_0x34a35b('0x10')](_0x2f8653[_0x34a35b('0x42')][_0x34a35b('0x10')]),_0x1df3e9[_0x34a35b('0x28')]=qs['filters'](_[_0x34a35b('0x1a')](_0x2f8653[_0x34a35b('0x42')],_0x2f620e[_0x34a35b('0x25')])),_0x2f8653['query'][_0x34a35b('0x45')]&&(_0x1df3e9[_0x34a35b('0x28')]=_['merge'](_0x1df3e9[_0x34a35b('0x28')],{[Op['or']]:_[_0x34a35b('0xa')](_0x1df3e9['attributes'],function(_0x2bee37){const _0x3f3ae3=_0x34a35b,_0x33bc3c={};return _0x33bc3c[_0x2bee37]={[Op['like']]:'%'+_0x2f8653[_0x3f3ae3('0x42')]['filter']+'%'},_0x33bc3c;})})),_0x1df3e9=_[_0x34a35b('0x15')]({},_0x1df3e9,_0x2f8653[_0x34a35b('0x4')]),_0x417f23[_0x34a35b('0xb')](_0x1df3e9);})[_0x1e6a9e('0x2f')](function(_0x2b1091){const _0x1ceb8c=_0x1e6a9e;if(_0x2b1091)return _0x5684f6=_0x2b1091['length'],typeof _0x2f8653[_0x1ceb8c('0x42')][_0x1ceb8c('0x43')]===_0x1ceb8c('0x21')&&(_0x1df3e9[_0x1ceb8c('0x27')]=qs[_0x1ceb8c('0x27')](_0x2f8653[_0x1ceb8c('0x42')][_0x1ceb8c('0x27')]),_0x1df3e9[_0x1ceb8c('0x9')]=qs[_0x1ceb8c('0x9')](_0x2f8653['query'][_0x1ceb8c('0x9')])),_0x417f23[_0x1ceb8c('0xb')](_0x1df3e9);})[_0x1e6a9e('0x2f')](function(_0x57d15d){if(_0x57d15d)return _0x57d15d?{'count':_0x5684f6,'rows':_0x57d15d}:null;})[_0x1e6a9e('0x2f')](respondWithResult(_0xcd903d,null))[_0x1e6a9e('0x39')](handleError(_0xcd903d,null));},exports[_0x3bfc4f('0x23')]=function(_0xf80769,_0x5a0c67){const _0x231214=_0x3bfc4f;let _0x28c5d0={};const _0x1d2f98={};let _0x34cfbc,_0xf34391;return db['Trigger'][_0x231214('0x6')]({'where':{'id':_0xf80769['params']['id']}})['then'](handleEntityNotFound(_0x5a0c67,null))['then'](function(_0xbb369d){const _0x2c5a25=_0x231214;if(_0xbb369d)return _0x34cfbc=_0xbb369d,_0x1d2f98[_0x2c5a25('0x20')]=_['keys'](db[_0x2c5a25('0x2b')][_0x2c5a25('0x1c')]),_0x1d2f98[_0x2c5a25('0x42')]=_[_0x2c5a25('0x2e')](_0xf80769[_0x2c5a25('0x42')]),_0x1d2f98[_0x2c5a25('0x25')]=_['intersection'](_0x1d2f98[_0x2c5a25('0x20')],_0x1d2f98[_0x2c5a25('0x42')]),_0x28c5d0['attributes']=_[_0x2c5a25('0x30')](_0x1d2f98[_0x2c5a25('0x20')],qs['fields'](_0xf80769['query'][_0x2c5a25('0x36')])),_0x28c5d0['attributes']=_0x28c5d0['attributes']['length']?_0x28c5d0[_0x2c5a25('0x12')]:_0x1d2f98[_0x2c5a25('0x20')],_0x28c5d0[_0x2c5a25('0x8')]=qs['sort'](_0xf80769[_0x2c5a25('0x42')][_0x2c5a25('0x10')]),_0x28c5d0['where']=qs[_0x2c5a25('0x25')](_[_0x2c5a25('0x1a')](_0xf80769[_0x2c5a25('0x42')],_0x1d2f98['filters'])),_0xf80769[_0x2c5a25('0x42')][_0x2c5a25('0x45')]&&(_0x28c5d0[_0x2c5a25('0x28')]=_[_0x2c5a25('0x15')](_0x28c5d0[_0x2c5a25('0x28')],{[Op['or']]:_['map'](_0x28c5d0['attributes'],function(_0x3d4f3b){const _0x53aa4f=_0x2c5a25,_0x5066d5={};return _0x5066d5[_0x3d4f3b]={[Op[_0x53aa4f('0xe')]]:'%'+_0xf80769[_0x53aa4f('0x42')][_0x53aa4f('0x45')]+'%'},_0x5066d5;})})),_0x28c5d0=_[_0x2c5a25('0x15')]({},_0x28c5d0,_0xf80769[_0x2c5a25('0x4')]),_0x34cfbc[_0x2c5a25('0x23')](_0x28c5d0);})[_0x231214('0x2f')](function(_0x87acf0){const _0x3d6a01=_0x231214;if(_0x87acf0)return _0xf34391=_0x87acf0['length'],typeof _0xf80769[_0x3d6a01('0x42')][_0x3d6a01('0x43')]===_0x3d6a01('0x21')&&(_0x28c5d0[_0x3d6a01('0x27')]=qs[_0x3d6a01('0x27')](_0xf80769[_0x3d6a01('0x42')][_0x3d6a01('0x27')]),_0x28c5d0['offset']=qs[_0x3d6a01('0x9')](_0xf80769[_0x3d6a01('0x42')][_0x3d6a01('0x9')])),_0x34cfbc['getAnyConditions'](_0x28c5d0);})['then'](function(_0x30e644){if(_0x30e644)return _0x30e644?{'count':_0xf34391,'rows':_0x30e644}:null;})['then'](respondWithResult(_0x5a0c67,null))[_0x231214('0x39')](handleError(_0x5a0c67,null));},exports[_0x3bfc4f('0x3b')]=function(_0xf71d59,_0x5b3e6e){const _0x32489b=_0x3bfc4f;return _0xf71d59[_0x32489b('0x1')]['id']&&delete _0xf71d59['body']['id'],db[_0x32489b('0x41')][_0x32489b('0x6')]({'where':{'id':_0xf71d59[_0x32489b('0x19')]['id']}})[_0x32489b('0x2f')](handleEntityNotFound(_0x5b3e6e,null))[_0x32489b('0x2f')](function(_0x4d7588){const _0x1cc73e=_0x32489b;if(_0x4d7588)return _0xf71d59['body']['TriggerId']=_0x4d7588['id'],db['Action'][_0x1cc73e('0x3d')](_0xf71d59[_0x1cc73e('0x1')]);})[_0x32489b('0x2f')](respondWithResult(_0x5b3e6e,null))[_0x32489b('0x39')](handleError(_0x5b3e6e,null));},exports[_0x3bfc4f('0x5')]=function(_0x1f221f,_0xee7b7a){const _0x2f792c=_0x3bfc4f;let _0x50ab21={};const _0x4bbe70={};let _0x518f04,_0x5bdccf;return db[_0x2f792c('0x41')][_0x2f792c('0x6')]({'where':{'id':_0x1f221f['params']['id']}})['then'](handleEntityNotFound(_0xee7b7a,null))[_0x2f792c('0x2f')](function(_0x569c25){const _0x411fa4=_0x2f792c;if(_0x569c25)return _0x518f04=_0x569c25,_0x4bbe70[_0x411fa4('0x20')]=_['keys'](db[_0x411fa4('0x34')]['rawAttributes']),_0x4bbe70[_0x411fa4('0x42')]=_[_0x411fa4('0x2e')](_0x1f221f['query']),_0x4bbe70[_0x411fa4('0x25')]=_[_0x411fa4('0x30')](_0x4bbe70[_0x411fa4('0x20')],_0x4bbe70[_0x411fa4('0x42')]),_0x50ab21['attributes']=_[_0x411fa4('0x30')](_0x4bbe70[_0x411fa4('0x20')],qs[_0x411fa4('0x36')](_0x1f221f[_0x411fa4('0x42')][_0x411fa4('0x36')])),_0x50ab21[_0x411fa4('0x12')]=_0x50ab21[_0x411fa4('0x12')][_0x411fa4('0x3')]?_0x50ab21[_0x411fa4('0x12')]:_0x4bbe70[_0x411fa4('0x20')],_0x50ab21[_0x411fa4('0x8')]=qs['sort'](_0x1f221f[_0x411fa4('0x42')]['sort']),_0x50ab21[_0x411fa4('0x28')]=qs[_0x411fa4('0x25')](_['pick'](_0x1f221f[_0x411fa4('0x42')],_0x4bbe70[_0x411fa4('0x25')])),_0x1f221f['query'][_0x411fa4('0x45')]&&(_0x50ab21[_0x411fa4('0x28')]=_[_0x411fa4('0x15')](_0x50ab21[_0x411fa4('0x28')],{[Op['or']]:_['map'](_0x50ab21[_0x411fa4('0x12')],function(_0x3ba1de){const _0x3a4706=_0x411fa4,_0x4c63dc={};return _0x4c63dc[_0x3ba1de]={[Op[_0x3a4706('0xe')]]:'%'+_0x1f221f[_0x3a4706('0x42')]['filter']+'%'},_0x4c63dc;})})),_0x50ab21=_[_0x411fa4('0x15')]({},_0x50ab21,_0x1f221f[_0x411fa4('0x4')]),_0x518f04[_0x411fa4('0x5')](_0x50ab21);})[_0x2f792c('0x2f')](function(_0x5724cd){const _0x29e51d=_0x2f792c;if(_0x5724cd)return _0x5bdccf=_0x5724cd[_0x29e51d('0x3')],typeof _0x1f221f['query']['nolimit']===_0x29e51d('0x21')&&(_0x50ab21[_0x29e51d('0x27')]=qs[_0x29e51d('0x27')](_0x1f221f['query'][_0x29e51d('0x27')]),_0x50ab21[_0x29e51d('0x9')]=qs['offset'](_0x1f221f[_0x29e51d('0x42')][_0x29e51d('0x9')])),_0x518f04[_0x29e51d('0x5')](_0x50ab21);})[_0x2f792c('0x2f')](function(_0x37288d){if(_0x37288d)return _0x37288d?{'count':_0x5bdccf,'rows':_0x37288d}:null;})['then'](respondWithResult(_0xee7b7a,null))[_0x2f792c('0x39')](handleError(_0xee7b7a,null));}; \ No newline at end of file +const a763_0x4d94=['sort','includeAll','autoAssociation','attributes','../../mysqldb','nolimit','UserProfileSection','sequelize','model','include','get','options','keys','Condition','where','destroy','Action','stack','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','Content-Range','Triggers','findAll','end','../../components/parsers/qs','api','intersection','then','UserProfileResource','merge','addAnyCondition','getActions','name','rows','json','error','set','filters','sendStatus','status','user','Unable\x20to\x20retrieve\x20the\x20current\x20user','params','getAllConditions','pick','create','findOne','count','filter','fieldName','like','Trigger','rawAttributes','fields','show','query','order','index','limit','key','undefined','TriggerAllId','length','update','userProfileId','body','../../config/logger','addAllCondition','offset','getAnyConditions','catch','map','TriggerId','VIRTUAL','role','type'];(function(_0x47ccc3,_0x3c049d){const _0x4d947e=function(_0x499664){while(--_0x499664){_0x47ccc3['push'](_0x47ccc3['shift']());}};_0x4d947e(++_0x3c049d);}(a763_0x4d94,0x9c));const a763_0x4996=function(_0x47ccc3,_0x3c049d){_0x47ccc3=_0x47ccc3-0xa9;let _0x4d947e=a763_0x4d94[_0x47ccc3];return _0x4d947e;};const a763_0x2e0f2c=a763_0x4996;'use strict';const _=require('lodash'),qs=require(a763_0x2e0f2c(0xba)),logger=require(a763_0x2e0f2c(0xe4))(a763_0x2e0f2c(0xbb)),{db}=require(a763_0x2e0f2c(0xf2)),{Op}=require(a763_0x2e0f2c(0xaa));function respondWithResult(_0x57ca4b,_0x193227){return _0x193227=_0x193227||0xc8,function(_0x131275){const _0x4fbe4f=a763_0x4996;if(_0x131275)return _0x57ca4b['status'](_0x193227)[_0x4fbe4f(0xc4)](_0x131275);};}function respondWithFilteredResult(_0x1e55fe,_0x4178f0){return function(_0x179f71){const _0x42a84e=a763_0x4996;if(_0x179f71){const _0x4b2fdf=_0x179f71['count'],_0x12d206=_0x4178f0['offset'];let _0x2ad61d=_0x4178f0[_0x42a84e(0xe6)]+_0x4178f0[_0x42a84e(0xdc)],_0x111f67;return _0x2ad61d>=_0x4b2fdf?(_0x2ad61d=_0x4b2fdf,_0x111f67=0xc8):_0x111f67=0xce,_0x1e55fe[_0x42a84e(0xc9)](_0x111f67),_0x1e55fe[_0x42a84e(0xc6)](_0x42a84e(0xb6),_0x12d206+'-'+_0x2ad61d+'/'+_0x4b2fdf)[_0x42a84e(0xc4)](_0x179f71);}return null;};}function saveUpdates(_0x2068e0){return function(_0x5e7dfd){const _0x261ad7=a763_0x4996;if(_0x5e7dfd)return _0x5e7dfd[_0x261ad7(0xe1)](_0x2068e0)[_0x261ad7(0xbd)](function(_0x41f063){return _0x41f063;});return null;};}function removeEntity(_0x849ab4){return function(_0x25855a){const _0x5a16b9=a763_0x4996;if(_0x25855a)return _0x25855a[_0x5a16b9(0xb2)]()[_0x5a16b9(0xbd)](function(){const _0x1d590a=_0x5a16b9,_0x3c1129=_0x25855a['get']({'plain':!![]}),_0x47479f=_0x1d590a(0xb7);return db['UserProfileResource'][_0x1d590a(0xb2)]({'where':{'type':_0x47479f,'resourceId':_0x3c1129['id']}})[_0x1d590a(0xbd)](function(){return _0x25855a;});})[_0x5a16b9(0xbd)](function(){const _0xf9dcd=_0x5a16b9;_0x849ab4['status'](0xcc)[_0xf9dcd(0xb9)]();});};}function handleEntityNotFound(_0x1f45ab){return function(_0x51258c){const _0x479d0a=a763_0x4996;return!_0x51258c&&_0x1f45ab[_0x479d0a(0xc8)](0x194),_0x51258c;};}function handleError(_0x5afe5b,_0x1ea1f2){return _0x1ea1f2=_0x1ea1f2||0x1f4,function(_0x1a09de){const _0x4b1048=a763_0x4996;logger[_0x4b1048(0xc5)](_0x1a09de[_0x4b1048(0xb4)]),_0x1a09de[_0x4b1048(0xc2)]&&delete _0x1a09de[_0x4b1048(0xc2)],_0x5afe5b['status'](_0x1ea1f2)['send'](_0x1a09de);};}exports[a763_0x2e0f2c(0xdb)]=function(_0x1168a7,_0x3912ab){const _0x155e64=a763_0x2e0f2c;let _0x4ae601={};const _0xb4312b={},_0x40093e={'count':0x0,'rows':[]},_0x59fadd=_['map'](db[_0x155e64(0xd5)]['rawAttributes'],function(_0x241771){const _0x12f81b=_0x155e64;return{'name':_0x241771[_0x12f81b(0xd3)],'type':_0x241771[_0x12f81b(0xed)][_0x12f81b(0xdd)]};});_0xb4312b[_0x155e64(0xab)]=_['map'](_0x59fadd,_0x155e64(0xc2)),_0xb4312b['query']=_['keys'](_0x1168a7[_0x155e64(0xd9)]),_0xb4312b[_0x155e64(0xc7)]=_[_0x155e64(0xbc)](_0xb4312b[_0x155e64(0xab)],_0xb4312b[_0x155e64(0xd9)]),_0x4ae601[_0x155e64(0xf1)]=_['intersection'](_0xb4312b[_0x155e64(0xab)],qs[_0x155e64(0xd7)](_0x1168a7[_0x155e64(0xd9)]['fields'])),_0x4ae601[_0x155e64(0xf1)]=_0x4ae601[_0x155e64(0xf1)]['length']?_0x4ae601['attributes']:_0xb4312b[_0x155e64(0xab)];typeof _0x1168a7['query']['nolimit']===_0x155e64(0xde)&&(_0x4ae601[_0x155e64(0xdc)]=qs['limit'](_0x1168a7[_0x155e64(0xd9)][_0x155e64(0xdc)]),_0x4ae601[_0x155e64(0xe6)]=qs['offset'](_0x1168a7[_0x155e64(0xd9)][_0x155e64(0xe6)]));_0x4ae601['order']=qs[_0x155e64(0xee)](_0x1168a7[_0x155e64(0xd9)]['sort']),_0x4ae601['where']=qs[_0x155e64(0xc7)](_[_0x155e64(0xce)](_0x1168a7[_0x155e64(0xd9)],_0xb4312b[_0x155e64(0xc7)]),_0x59fadd);_0x1168a7[_0x155e64(0xd9)][_0x155e64(0xd2)]&&(_0x4ae601[_0x155e64(0xb1)]=_[_0x155e64(0xbf)](_0x4ae601[_0x155e64(0xb1)],{[Op['or']]:_[_0x155e64(0xe9)](_0x59fadd,function(_0x17b2cf){const _0x2ae4ff=_0x155e64;if(_0x17b2cf[_0x2ae4ff(0xed)]!==_0x2ae4ff(0xeb)){const _0x23400f={};return _0x23400f[_0x17b2cf[_0x2ae4ff(0xc2)]]={[Op[_0x2ae4ff(0xd4)]]:'%'+_0x1168a7[_0x2ae4ff(0xd9)]['filter']+'%'},_0x23400f;}})}));_0x4ae601=_[_0x155e64(0xbf)]({},_0x4ae601,_0x1168a7[_0x155e64(0xae)]);const _0x1eecad={'where':_0x4ae601['where']};return db[_0x155e64(0xd5)][_0x155e64(0xd1)](_0x1eecad)['then'](function(_0x54704d){const _0x286be6=_0x155e64;return _0x40093e['count']=_0x54704d,_0x1168a7[_0x286be6(0xd9)][_0x286be6(0xef)]&&(_0x4ae601[_0x286be6(0xac)]=[{'all':!![]}]),db[_0x286be6(0xd5)][_0x286be6(0xb8)](_0x4ae601);})[_0x155e64(0xbd)](function(_0x323086){const _0x1b145e=_0x155e64;return _0x40093e[_0x1b145e(0xc3)]=_0x323086,_0x40093e;})[_0x155e64(0xbd)](respondWithFilteredResult(_0x3912ab,_0x4ae601))[_0x155e64(0xe8)](handleError(_0x3912ab,null));},exports[a763_0x2e0f2c(0xd8)]=function(_0x2a4654,_0x1cfa54){const _0x5e8471=a763_0x2e0f2c;let _0x13ca2e={'raw':![],'where':{'id':_0x2a4654[_0x5e8471(0xcc)]['id']}};const _0x5ae591={};return _0x5ae591['model']=_[_0x5e8471(0xaf)](db['Trigger'][_0x5e8471(0xd6)]),_0x5ae591['query']=_[_0x5e8471(0xaf)](_0x2a4654[_0x5e8471(0xd9)]),_0x5ae591[_0x5e8471(0xc7)]=_[_0x5e8471(0xbc)](_0x5ae591[_0x5e8471(0xab)],_0x5ae591[_0x5e8471(0xd9)]),_0x13ca2e[_0x5e8471(0xf1)]=_[_0x5e8471(0xbc)](_0x5ae591[_0x5e8471(0xab)],qs[_0x5e8471(0xd7)](_0x2a4654[_0x5e8471(0xd9)][_0x5e8471(0xd7)])),_0x13ca2e[_0x5e8471(0xf1)]=_0x13ca2e[_0x5e8471(0xf1)]['length']?_0x13ca2e[_0x5e8471(0xf1)]:_0x5ae591[_0x5e8471(0xab)],_0x2a4654[_0x5e8471(0xd9)][_0x5e8471(0xef)]&&(_0x13ca2e[_0x5e8471(0xac)]=[{'all':!![]}]),_0x13ca2e=_['merge']({},_0x13ca2e,_0x2a4654[_0x5e8471(0xae)]),db[_0x5e8471(0xd5)][_0x5e8471(0xd0)](_0x13ca2e)[_0x5e8471(0xbd)](handleEntityNotFound(_0x1cfa54,null))[_0x5e8471(0xbd)](respondWithResult(_0x1cfa54,null))['catch'](handleError(_0x1cfa54,null));},exports['create']=function(_0x497594,_0x2ce389){const _0x43a2e4=a763_0x2e0f2c;return db[_0x43a2e4(0xd5)][_0x43a2e4(0xcf)](_0x497594[_0x43a2e4(0xe3)],{})[_0x43a2e4(0xbd)](function(_0x48c4c2){const _0x300ca2=_0x43a2e4,_0x502112=_0x497594['user'][_0x300ca2(0xad)]({'plain':!![]});if(!_0x502112)throw new Error(_0x300ca2(0xcb));if(_0x502112[_0x300ca2(0xec)]===_0x300ca2(0xca)){const _0x499cd=_0x48c4c2[_0x300ca2(0xad)]({'plain':!![]}),_0x2b9662=_0x300ca2(0xb7);return db[_0x300ca2(0xa9)][_0x300ca2(0xd0)]({'where':{'name':_0x2b9662,'userProfileId':_0x502112[_0x300ca2(0xe2)]},'raw':!![]})['then'](function(_0x4dedb9){const _0x7949c6=_0x300ca2;return _0x4dedb9&&_0x4dedb9[_0x7949c6(0xf0)]===0x0?db[_0x7949c6(0xbe)][_0x7949c6(0xcf)]({'name':_0x499cd[_0x7949c6(0xc2)],'resourceId':_0x499cd['id'],'type':_0x4dedb9[_0x7949c6(0xc2)],'sectionId':_0x4dedb9['id']},{})['then'](function(){return _0x48c4c2;}):_0x48c4c2;})[_0x300ca2(0xe8)](function(_0x24bd7f){const _0x488cc9=_0x300ca2;logger['error'](_0x488cc9(0xb5),_0x24bd7f);throw _0x24bd7f;});}return _0x48c4c2;})[_0x43a2e4(0xbd)](respondWithResult(_0x2ce389,0xc9))['catch'](handleError(_0x2ce389,null));},exports['update']=function(_0x34ea68,_0x363a0d){const _0x2e1eaa=a763_0x2e0f2c;return _0x34ea68[_0x2e1eaa(0xe3)]['id']&&delete _0x34ea68['body']['id'],db[_0x2e1eaa(0xd5)][_0x2e1eaa(0xd0)]({'where':{'id':_0x34ea68['params']['id']}})[_0x2e1eaa(0xbd)](handleEntityNotFound(_0x363a0d,null))['then'](saveUpdates(_0x34ea68[_0x2e1eaa(0xe3)],null))[_0x2e1eaa(0xbd)](respondWithResult(_0x363a0d,null))[_0x2e1eaa(0xe8)](handleError(_0x363a0d,null));},exports['destroy']=function(_0x9e8852,_0x2c7ebf){const _0x169a6a=a763_0x2e0f2c;return db[_0x169a6a(0xd5)]['findOne']({'where':{'id':_0x9e8852[_0x169a6a(0xcc)]['id']}})[_0x169a6a(0xbd)](handleEntityNotFound(_0x2c7ebf,null))[_0x169a6a(0xbd)](removeEntity(_0x2c7ebf,null))['catch'](handleError(_0x2c7ebf,null));},exports[a763_0x2e0f2c(0xe5)]=function(_0xb67010,_0x14bd45){const _0x3876a1=a763_0x2e0f2c;return _0xb67010[_0x3876a1(0xe3)]['id']&&delete _0xb67010[_0x3876a1(0xe3)]['id'],db[_0x3876a1(0xd5)][_0x3876a1(0xd0)]({'where':{'id':_0xb67010[_0x3876a1(0xcc)]['id']}})[_0x3876a1(0xbd)](handleEntityNotFound(_0x14bd45,null))[_0x3876a1(0xbd)](function(_0xacdd7){const _0x485ca7=_0x3876a1;if(_0xacdd7)return _0xb67010[_0x485ca7(0xe3)][_0x485ca7(0xdf)]=_0xacdd7['id'],db['Condition'][_0x485ca7(0xcf)](_0xb67010[_0x485ca7(0xe3)]);})['then'](respondWithResult(_0x14bd45,null))[_0x3876a1(0xe8)](handleError(_0x14bd45,null));},exports[a763_0x2e0f2c(0xc0)]=function(_0x218dd3,_0x1642c4){const _0x2b5e39=a763_0x2e0f2c;return _0x218dd3[_0x2b5e39(0xe3)]['id']&&delete _0x218dd3[_0x2b5e39(0xe3)]['id'],db['Trigger'][_0x2b5e39(0xd0)]({'where':{'id':_0x218dd3[_0x2b5e39(0xcc)]['id']}})[_0x2b5e39(0xbd)](handleEntityNotFound(_0x1642c4,null))[_0x2b5e39(0xbd)](function(_0x50a72d){const _0x5bfd67=_0x2b5e39;if(_0x50a72d)return _0x218dd3['body']['TriggerAnyId']=_0x50a72d['id'],db[_0x5bfd67(0xb0)][_0x5bfd67(0xcf)](_0x218dd3['body']);})[_0x2b5e39(0xbd)](respondWithResult(_0x1642c4,null))[_0x2b5e39(0xe8)](handleError(_0x1642c4,null));},exports[a763_0x2e0f2c(0xcd)]=function(_0x2c9209,_0x500822){const _0x2721c6=a763_0x2e0f2c;let _0x5d7e5a={};const _0x24e0f4={};let _0x38bded,_0x4d5975;return db[_0x2721c6(0xd5)][_0x2721c6(0xd0)]({'where':{'id':_0x2c9209[_0x2721c6(0xcc)]['id']}})[_0x2721c6(0xbd)](handleEntityNotFound(_0x500822,null))[_0x2721c6(0xbd)](function(_0x5822fd){const _0x49e738=_0x2721c6;if(_0x5822fd)return _0x38bded=_0x5822fd,_0x24e0f4[_0x49e738(0xab)]=_[_0x49e738(0xaf)](db[_0x49e738(0xb0)][_0x49e738(0xd6)]),_0x24e0f4['query']=_[_0x49e738(0xaf)](_0x2c9209[_0x49e738(0xd9)]),_0x24e0f4[_0x49e738(0xc7)]=_['intersection'](_0x24e0f4['model'],_0x24e0f4['query']),_0x5d7e5a[_0x49e738(0xf1)]=_[_0x49e738(0xbc)](_0x24e0f4[_0x49e738(0xab)],qs[_0x49e738(0xd7)](_0x2c9209[_0x49e738(0xd9)][_0x49e738(0xd7)])),_0x5d7e5a[_0x49e738(0xf1)]=_0x5d7e5a[_0x49e738(0xf1)]['length']?_0x5d7e5a[_0x49e738(0xf1)]:_0x24e0f4[_0x49e738(0xab)],_0x5d7e5a[_0x49e738(0xda)]=qs[_0x49e738(0xee)](_0x2c9209[_0x49e738(0xd9)]['sort']),_0x5d7e5a[_0x49e738(0xb1)]=qs[_0x49e738(0xc7)](_[_0x49e738(0xce)](_0x2c9209[_0x49e738(0xd9)],_0x24e0f4['filters'])),_0x2c9209['query'][_0x49e738(0xd2)]&&(_0x5d7e5a['where']=_[_0x49e738(0xbf)](_0x5d7e5a[_0x49e738(0xb1)],{[Op['or']]:_[_0x49e738(0xe9)](_0x5d7e5a[_0x49e738(0xf1)],function(_0x1ec6da){const _0x46f512=_0x49e738,_0x2f04e4={};return _0x2f04e4[_0x1ec6da]={[Op[_0x46f512(0xd4)]]:'%'+_0x2c9209[_0x46f512(0xd9)][_0x46f512(0xd2)]+'%'},_0x2f04e4;})})),_0x5d7e5a=_[_0x49e738(0xbf)]({},_0x5d7e5a,_0x2c9209[_0x49e738(0xae)]),_0x38bded[_0x49e738(0xcd)](_0x5d7e5a);})[_0x2721c6(0xbd)](function(_0x3c31b0){const _0x760048=_0x2721c6;if(_0x3c31b0)return _0x4d5975=_0x3c31b0[_0x760048(0xe0)],typeof _0x2c9209[_0x760048(0xd9)][_0x760048(0xf3)]===_0x760048(0xde)&&(_0x5d7e5a[_0x760048(0xdc)]=qs[_0x760048(0xdc)](_0x2c9209[_0x760048(0xd9)]['limit']),_0x5d7e5a['offset']=qs[_0x760048(0xe6)](_0x2c9209['query'][_0x760048(0xe6)])),_0x38bded[_0x760048(0xcd)](_0x5d7e5a);})[_0x2721c6(0xbd)](function(_0x490fe3){if(_0x490fe3)return _0x490fe3?{'count':_0x4d5975,'rows':_0x490fe3}:null;})['then'](respondWithResult(_0x500822,null))['catch'](handleError(_0x500822,null));},exports[a763_0x2e0f2c(0xe7)]=function(_0x45d400,_0x30e72d){const _0x35985c=a763_0x2e0f2c;let _0x4454c3={};const _0x43bce3={};let _0x3c8799,_0x5818e5;return db[_0x35985c(0xd5)]['findOne']({'where':{'id':_0x45d400[_0x35985c(0xcc)]['id']}})[_0x35985c(0xbd)](handleEntityNotFound(_0x30e72d,null))[_0x35985c(0xbd)](function(_0x169646){const _0x46057c=_0x35985c;if(_0x169646)return _0x3c8799=_0x169646,_0x43bce3[_0x46057c(0xab)]=_[_0x46057c(0xaf)](db[_0x46057c(0xb0)][_0x46057c(0xd6)]),_0x43bce3[_0x46057c(0xd9)]=_[_0x46057c(0xaf)](_0x45d400[_0x46057c(0xd9)]),_0x43bce3[_0x46057c(0xc7)]=_[_0x46057c(0xbc)](_0x43bce3[_0x46057c(0xab)],_0x43bce3[_0x46057c(0xd9)]),_0x4454c3[_0x46057c(0xf1)]=_[_0x46057c(0xbc)](_0x43bce3[_0x46057c(0xab)],qs[_0x46057c(0xd7)](_0x45d400[_0x46057c(0xd9)][_0x46057c(0xd7)])),_0x4454c3['attributes']=_0x4454c3[_0x46057c(0xf1)][_0x46057c(0xe0)]?_0x4454c3[_0x46057c(0xf1)]:_0x43bce3['model'],_0x4454c3[_0x46057c(0xda)]=qs[_0x46057c(0xee)](_0x45d400[_0x46057c(0xd9)]['sort']),_0x4454c3[_0x46057c(0xb1)]=qs[_0x46057c(0xc7)](_[_0x46057c(0xce)](_0x45d400[_0x46057c(0xd9)],_0x43bce3['filters'])),_0x45d400['query'][_0x46057c(0xd2)]&&(_0x4454c3[_0x46057c(0xb1)]=_['merge'](_0x4454c3[_0x46057c(0xb1)],{[Op['or']]:_['map'](_0x4454c3['attributes'],function(_0x563945){const _0x584564={};return _0x584564[_0x563945]={[Op['like']]:'%'+_0x45d400['query']['filter']+'%'},_0x584564;})})),_0x4454c3=_[_0x46057c(0xbf)]({},_0x4454c3,_0x45d400[_0x46057c(0xae)]),_0x3c8799['getAnyConditions'](_0x4454c3);})[_0x35985c(0xbd)](function(_0x3c3123){const _0x1051dd=_0x35985c;if(_0x3c3123)return _0x5818e5=_0x3c3123[_0x1051dd(0xe0)],typeof _0x45d400['query'][_0x1051dd(0xf3)]===_0x1051dd(0xde)&&(_0x4454c3[_0x1051dd(0xdc)]=qs['limit'](_0x45d400[_0x1051dd(0xd9)]['limit']),_0x4454c3[_0x1051dd(0xe6)]=qs[_0x1051dd(0xe6)](_0x45d400['query']['offset'])),_0x3c8799[_0x1051dd(0xe7)](_0x4454c3);})[_0x35985c(0xbd)](function(_0x3875ad){if(_0x3875ad)return _0x3875ad?{'count':_0x5818e5,'rows':_0x3875ad}:null;})[_0x35985c(0xbd)](respondWithResult(_0x30e72d,null))[_0x35985c(0xe8)](handleError(_0x30e72d,null));},exports['addAction']=function(_0x219577,_0x1fb804){const _0x2412e3=a763_0x2e0f2c;return _0x219577[_0x2412e3(0xe3)]['id']&&delete _0x219577[_0x2412e3(0xe3)]['id'],db[_0x2412e3(0xd5)]['findOne']({'where':{'id':_0x219577[_0x2412e3(0xcc)]['id']}})[_0x2412e3(0xbd)](handleEntityNotFound(_0x1fb804,null))[_0x2412e3(0xbd)](function(_0x4781ea){const _0x907335=_0x2412e3;if(_0x4781ea)return _0x219577[_0x907335(0xe3)][_0x907335(0xea)]=_0x4781ea['id'],db[_0x907335(0xb3)]['create'](_0x219577[_0x907335(0xe3)]);})[_0x2412e3(0xbd)](respondWithResult(_0x1fb804,null))[_0x2412e3(0xe8)](handleError(_0x1fb804,null));},exports['getActions']=function(_0x349939,_0x2a625d){const _0x283fcf=a763_0x2e0f2c;let _0x1a8283={};const _0x1fe9e7={};let _0x38eb83,_0x59f0d0;return db[_0x283fcf(0xd5)][_0x283fcf(0xd0)]({'where':{'id':_0x349939[_0x283fcf(0xcc)]['id']}})[_0x283fcf(0xbd)](handleEntityNotFound(_0x2a625d,null))[_0x283fcf(0xbd)](function(_0x3e5e55){const _0xdc3eb6=_0x283fcf;if(_0x3e5e55)return _0x38eb83=_0x3e5e55,_0x1fe9e7['model']=_[_0xdc3eb6(0xaf)](db['Action'][_0xdc3eb6(0xd6)]),_0x1fe9e7[_0xdc3eb6(0xd9)]=_[_0xdc3eb6(0xaf)](_0x349939[_0xdc3eb6(0xd9)]),_0x1fe9e7['filters']=_['intersection'](_0x1fe9e7[_0xdc3eb6(0xab)],_0x1fe9e7['query']),_0x1a8283[_0xdc3eb6(0xf1)]=_[_0xdc3eb6(0xbc)](_0x1fe9e7[_0xdc3eb6(0xab)],qs['fields'](_0x349939[_0xdc3eb6(0xd9)][_0xdc3eb6(0xd7)])),_0x1a8283[_0xdc3eb6(0xf1)]=_0x1a8283[_0xdc3eb6(0xf1)][_0xdc3eb6(0xe0)]?_0x1a8283[_0xdc3eb6(0xf1)]:_0x1fe9e7[_0xdc3eb6(0xab)],_0x1a8283[_0xdc3eb6(0xda)]=qs['sort'](_0x349939[_0xdc3eb6(0xd9)][_0xdc3eb6(0xee)]),_0x1a8283['where']=qs[_0xdc3eb6(0xc7)](_[_0xdc3eb6(0xce)](_0x349939[_0xdc3eb6(0xd9)],_0x1fe9e7['filters'])),_0x349939['query'][_0xdc3eb6(0xd2)]&&(_0x1a8283[_0xdc3eb6(0xb1)]=_[_0xdc3eb6(0xbf)](_0x1a8283['where'],{[Op['or']]:_[_0xdc3eb6(0xe9)](_0x1a8283[_0xdc3eb6(0xf1)],function(_0x122c71){const _0x8909b7=_0xdc3eb6,_0x4e021c={};return _0x4e021c[_0x122c71]={[Op[_0x8909b7(0xd4)]]:'%'+_0x349939[_0x8909b7(0xd9)][_0x8909b7(0xd2)]+'%'},_0x4e021c;})})),_0x1a8283=_[_0xdc3eb6(0xbf)]({},_0x1a8283,_0x349939['options']),_0x38eb83[_0xdc3eb6(0xc1)](_0x1a8283);})[_0x283fcf(0xbd)](function(_0x40c225){const _0x10aaae=_0x283fcf;if(_0x40c225)return _0x59f0d0=_0x40c225[_0x10aaae(0xe0)],typeof _0x349939[_0x10aaae(0xd9)]['nolimit']==='undefined'&&(_0x1a8283[_0x10aaae(0xdc)]=qs[_0x10aaae(0xdc)](_0x349939[_0x10aaae(0xd9)][_0x10aaae(0xdc)]),_0x1a8283[_0x10aaae(0xe6)]=qs[_0x10aaae(0xe6)](_0x349939[_0x10aaae(0xd9)]['offset'])),_0x38eb83['getActions'](_0x1a8283);})[_0x283fcf(0xbd)](function(_0x5664b7){if(_0x5664b7)return _0x5664b7?{'count':_0x59f0d0,'rows':_0x5664b7}:null;})['then'](respondWithResult(_0x2a625d,null))['catch'](handleError(_0x2a625d,null));}; \ No newline at end of file diff --git a/server/api/trigger/trigger.model.js b/server/api/trigger/trigger.model.js index b3885ca..d72a22b 100644 --- a/server/api/trigger/trigger.model.js +++ b/server/api/trigger/trigger.model.js @@ -1 +1 @@ -const a639_0x5211=['Trigger','exports','tools_triggers'];(function(_0x12b207,_0x52113e){const _0x331875=function(_0x38fa3a){while(--_0x38fa3a){_0x12b207['push'](_0x12b207['shift']());}};_0x331875(++_0x52113e);}(a639_0x5211,0x155));const a639_0x3318=function(_0x12b207,_0x52113e){_0x12b207=_0x12b207-0x0;let _0x331875=a639_0x5211[_0x12b207];return _0x331875;};const _0x35b495=a639_0x3318;'use strict';const attributes=require('./trigger.attributes');module[_0x35b495('0x2')]=function(_0x38fa3a){const _0x3acbd7=_0x35b495,_0x2f50ed=_0x38fa3a['define'](_0x3acbd7('0x1'),attributes,{'tableName':_0x3acbd7('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x2f50ed;}; \ No newline at end of file +const a764_0x1cc5=['init','./trigger.options','exports','sequelize','function'];(function(_0x1a1ebb,_0x2ad797){const _0x1cc51c=function(_0x184a03){while(--_0x184a03){_0x1a1ebb['push'](_0x1a1ebb['shift']());}};_0x1cc51c(++_0x2ad797);}(a764_0x1cc5,0xf4));const a764_0x184a=function(_0x1a1ebb,_0x2ad797){_0x1a1ebb=_0x1a1ebb-0xe2;let _0x1cc51c=a764_0x1cc5[_0x1a1ebb];return _0x1cc51c;};const a764_0x42935d=a764_0x184a;'use strict';const {Model}=require(a764_0x42935d(0xe6)),{attributes}=require('./trigger.attributes'),{options}=require(a764_0x42935d(0xe4));class Trigger extends Model{}function init(_0x40c7f3,_0x54db65){const _0x3bfd41=a764_0x42935d,_0x5e8465=options(_0x40c7f3),_0x16ab8e=typeof _0x54db65===_0x3bfd41(0xe2)?_0x54db65(_0x5e8465):_0x5e8465;return Trigger['init'](attributes,_0x16ab8e),Trigger;}module[a764_0x42935d(0xe5)]['Trigger']=Trigger,module[a764_0x42935d(0xe5)][a764_0x42935d(0xe3)]=init; \ No newline at end of file diff --git a/server/api/trigger/trigger.options.js b/server/api/trigger/trigger.options.js new file mode 100644 index 0000000..f2f3f76 --- /dev/null +++ b/server/api/trigger/trigger.options.js @@ -0,0 +1 @@ +var a765_0x49f3=['tools_triggers','exports','options'];(function(_0x5aa3ae,_0x152d3a){var _0x49f3ca=function(_0x70f9d1){while(--_0x70f9d1){_0x5aa3ae['push'](_0x5aa3ae['shift']());}};_0x49f3ca(++_0x152d3a);}(a765_0x49f3,0x15b));var a765_0x70f9=function(_0x5aa3ae,_0x152d3a){_0x5aa3ae=_0x5aa3ae-0x115;var _0x49f3ca=a765_0x49f3[_0x5aa3ae];return _0x49f3ca;};var a765_0x49417f=a765_0x70f9;function options(_0x10c9fe){var _0x5651b6=a765_0x70f9;return{'sequelize':_0x10c9fe,'tableName':_0x5651b6(0x116),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a765_0x49417f(0x117)][a765_0x49417f(0x115)]=options; \ No newline at end of file diff --git a/server/api/trigger/trigger.rpc.js b/server/api/trigger/trigger.rpc.js index 7f38559..1d8dcbe 100644 --- a/server/api/trigger/trigger.rpc.js +++ b/server/api/trigger/trigger.rpc.js @@ -1 +1 @@ -const a640_0x2999=['Trigger','catch','map','include','raw','lodash','attributes','debug','where','findOne','limit','ShowTrigger','message','then','options','GetTrigger','info','error','model'];(function(_0x1d53f1,_0x29995b){const _0x1dbafc=function(_0x552314){while(--_0x552314){_0x1d53f1['push'](_0x1d53f1['shift']());}};_0x1dbafc(++_0x29995b);}(a640_0x2999,0xe8));const a640_0x1dba=function(_0x1d53f1,_0x29995b){_0x1d53f1=_0x1d53f1-0x0;let _0x1dbafc=a640_0x2999[_0x1d53f1];return _0x1dbafc;};const _0x581847=a640_0x1dba;'use strict';const _=require(_0x581847('0x1')),db=require('../../mysqldb')['db'],logger=require('../../config/logger')('rpc');exports['GetTrigger']=function(_0x552314){const _0x3fca23=this;return new Promise(function(_0x13d08c,_0x1ab62b){const _0x1dedec=a640_0x1dba;return db[_0x1dedec('0xf')]['findAll']({'raw':_0x552314[_0x1dedec('0xa')]?_0x552314[_0x1dedec('0xa')]['raw']===undefined?!![]:![]:!![],'where':_0x552314['options']?_0x552314[_0x1dedec('0xa')][_0x1dedec('0x4')]||null:null,'attributes':_0x552314[_0x1dedec('0xa')]?_0x552314[_0x1dedec('0xa')][_0x1dedec('0x2')]||null:null,'limit':_0x552314['options']?_0x552314[_0x1dedec('0xa')][_0x1dedec('0x6')]||null:null,'include':_0x552314['options']?_0x552314[_0x1dedec('0xa')]['include']?_['map'](_0x552314[_0x1dedec('0xa')][_0x1dedec('0x12')],function(_0x579043){const _0x4be571=_0x1dedec;return{'model':db[_0x579043['model']],'as':_0x579043['as'],'attributes':_0x579043[_0x4be571('0x2')],'include':_0x579043[_0x4be571('0x12')]?_['map'](_0x579043[_0x4be571('0x12')],function(_0x16ff28){const _0x154a05=_0x4be571;return{'model':db[_0x16ff28[_0x154a05('0xe')]],'as':_0x16ff28['as'],'attributes':_0x16ff28['attributes'],'include':_0x16ff28[_0x154a05('0x12')]?_[_0x154a05('0x11')](_0x16ff28[_0x154a05('0x12')],function(_0x4b7302){const _0x5732e1=_0x154a05;return{'model':db[_0x4b7302[_0x5732e1('0xe')]],'as':_0x4b7302['as'],'attributes':_0x4b7302[_0x5732e1('0x2')]};}):[]};}):[]};}):[]:[]})[_0x1dedec('0x9')](function(_0x5978d1){const _0x190957=_0x1dedec;logger[_0x190957('0xc')]('GetTrigger',_0x552314),logger[_0x190957('0x3')]('GetTrigger',_0x552314,JSON['stringify'](_0x5978d1)),_0x13d08c(_0x5978d1);})[_0x1dedec('0x10')](function(_0x5047d4){const _0x2c3f50=_0x1dedec;logger[_0x2c3f50('0xd')](_0x2c3f50('0xb'),_0x5047d4['message'],_0x552314),_0x1ab62b(_0x3fca23[_0x2c3f50('0xd')](0x1f4,_0x5047d4[_0x2c3f50('0x8')]));});});},exports[_0x581847('0x7')]=function(_0xa3cd32){const _0xde52c3=this;return new Promise(function(_0x49ae03,_0x2c7f2e){const _0x30260e=a640_0x1dba;return db[_0x30260e('0xf')][_0x30260e('0x5')]({'raw':_0xa3cd32['options']?_0xa3cd32[_0x30260e('0xa')][_0x30260e('0x0')]===undefined?!![]:![]:!![],'where':_0xa3cd32[_0x30260e('0xa')]?_0xa3cd32[_0x30260e('0xa')][_0x30260e('0x4')]||null:null,'attributes':_0xa3cd32[_0x30260e('0xa')]?_0xa3cd32[_0x30260e('0xa')][_0x30260e('0x2')]||null:null,'include':_0xa3cd32[_0x30260e('0xa')]?_0xa3cd32[_0x30260e('0xa')][_0x30260e('0x12')]?_[_0x30260e('0x11')](_0xa3cd32['options'][_0x30260e('0x12')],function(_0x1d5add){const _0x338fa2=_0x30260e;return{'model':db[_0x1d5add['model']],'as':_0x1d5add['as'],'attributes':_0x1d5add[_0x338fa2('0x2')],'include':_0x1d5add[_0x338fa2('0x12')]?_[_0x338fa2('0x11')](_0x1d5add[_0x338fa2('0x12')],function(_0x539705){const _0x521407=_0x338fa2;return{'model':db[_0x539705['model']],'as':_0x539705['as'],'attributes':_0x539705[_0x521407('0x2')],'include':_0x539705[_0x521407('0x12')]?_[_0x521407('0x11')](_0x539705['include'],function(_0xcf7d10){const _0x50a225=_0x521407;return{'model':db[_0xcf7d10[_0x50a225('0xe')]],'as':_0xcf7d10['as'],'attributes':_0xcf7d10[_0x50a225('0x2')]};}):[]};}):[]};}):[]:[]})[_0x30260e('0x9')](function(_0x476d90){const _0x1cea3c=_0x30260e;logger[_0x1cea3c('0xc')](_0x1cea3c('0x7'),_0xa3cd32),logger['debug'](_0x1cea3c('0x7'),_0xa3cd32,JSON['stringify'](_0x476d90)),_0x49ae03(_0x476d90);})['catch'](function(_0x1aaf71){const _0x69b19e=_0x30260e;logger[_0x69b19e('0xd')]('ShowTrigger',_0x1aaf71[_0x69b19e('0x8')],_0xa3cd32),_0x2c7f2e(_0xde52c3[_0x69b19e('0xd')](0x1f4,_0x1aaf71['message']));});});}; \ No newline at end of file +const a766_0x2b86=['raw','include','stringify','rpc','findOne','catch','ShowTrigger','../../config/logger','attributes','where','options','debug','lodash','GetTrigger','error','Trigger','findAll','then','../../mysqldb','message','map','model','info'];(function(_0x612818,_0x3e4acf){const _0x2b8639=function(_0x318d48){while(--_0x318d48){_0x612818['push'](_0x612818['shift']());}};_0x2b8639(++_0x3e4acf);}(a766_0x2b86,0x123));const a766_0x318d=function(_0x612818,_0x3e4acf){_0x612818=_0x612818-0x1bc;let _0x2b8639=a766_0x2b86[_0x612818];return _0x2b8639;};const a766_0x3a5b0d=a766_0x318d;'use strict';const _=require(a766_0x3a5b0d(0x1d0)),db=require(a766_0x3a5b0d(0x1bf))['db'],logger=require(a766_0x3a5b0d(0x1cb))(a766_0x3a5b0d(0x1c7));exports[a766_0x3a5b0d(0x1d1)]=function(_0x5f08a8){const _0x1f7155=this;return new Promise(function(_0xb1f5b8,_0x38b90e){const _0x43a4cf=a766_0x318d;return db[_0x43a4cf(0x1bc)][_0x43a4cf(0x1bd)]({'raw':_0x5f08a8['options']?_0x5f08a8[_0x43a4cf(0x1ce)][_0x43a4cf(0x1c4)]===undefined?!![]:![]:!![],'where':_0x5f08a8[_0x43a4cf(0x1ce)]?_0x5f08a8[_0x43a4cf(0x1ce)][_0x43a4cf(0x1cd)]||null:null,'attributes':_0x5f08a8[_0x43a4cf(0x1ce)]?_0x5f08a8['options'][_0x43a4cf(0x1cc)]||null:null,'limit':_0x5f08a8[_0x43a4cf(0x1ce)]?_0x5f08a8['options']['limit']||null:null,'include':_0x5f08a8['options']?_0x5f08a8[_0x43a4cf(0x1ce)]['include']?_[_0x43a4cf(0x1c1)](_0x5f08a8[_0x43a4cf(0x1ce)][_0x43a4cf(0x1c5)],function(_0x1dd424){const _0x106b02=_0x43a4cf;return{'model':db[_0x1dd424[_0x106b02(0x1c2)]],'as':_0x1dd424['as'],'attributes':_0x1dd424[_0x106b02(0x1cc)],'include':_0x1dd424[_0x106b02(0x1c5)]?_[_0x106b02(0x1c1)](_0x1dd424[_0x106b02(0x1c5)],function(_0x4f4ce7){const _0x2a39b9=_0x106b02;return{'model':db[_0x4f4ce7[_0x2a39b9(0x1c2)]],'as':_0x4f4ce7['as'],'attributes':_0x4f4ce7['attributes'],'include':_0x4f4ce7[_0x2a39b9(0x1c5)]?_[_0x2a39b9(0x1c1)](_0x4f4ce7[_0x2a39b9(0x1c5)],function(_0xece987){const _0x488938=_0x2a39b9;return{'model':db[_0xece987['model']],'as':_0xece987['as'],'attributes':_0xece987[_0x488938(0x1cc)]};}):[]};}):[]};}):[]:[]})['then'](function(_0x49e51b){const _0x14d0da=_0x43a4cf;logger['info'](_0x14d0da(0x1d1),_0x5f08a8),logger[_0x14d0da(0x1cf)](_0x14d0da(0x1d1),_0x5f08a8,JSON[_0x14d0da(0x1c6)](_0x49e51b)),_0xb1f5b8(_0x49e51b);})[_0x43a4cf(0x1c9)](function(_0x3c5846){const _0x68305b=_0x43a4cf;logger[_0x68305b(0x1d2)](_0x68305b(0x1d1),_0x3c5846[_0x68305b(0x1c0)],_0x5f08a8),_0x38b90e(_0x1f7155[_0x68305b(0x1d2)](0x1f4,_0x3c5846['message']));});});},exports[a766_0x3a5b0d(0x1ca)]=function(_0x36d9c9){const _0x1ee651=this;return new Promise(function(_0x3ef0b8,_0x278d5a){const _0xa6469d=a766_0x318d;return db[_0xa6469d(0x1bc)][_0xa6469d(0x1c8)]({'raw':_0x36d9c9['options']?_0x36d9c9['options'][_0xa6469d(0x1c4)]===undefined?!![]:![]:!![],'where':_0x36d9c9[_0xa6469d(0x1ce)]?_0x36d9c9[_0xa6469d(0x1ce)]['where']||null:null,'attributes':_0x36d9c9[_0xa6469d(0x1ce)]?_0x36d9c9['options'][_0xa6469d(0x1cc)]||null:null,'include':_0x36d9c9['options']?_0x36d9c9[_0xa6469d(0x1ce)][_0xa6469d(0x1c5)]?_[_0xa6469d(0x1c1)](_0x36d9c9['options'][_0xa6469d(0x1c5)],function(_0x8462a7){const _0x3be384=_0xa6469d;return{'model':db[_0x8462a7[_0x3be384(0x1c2)]],'as':_0x8462a7['as'],'attributes':_0x8462a7[_0x3be384(0x1cc)],'include':_0x8462a7[_0x3be384(0x1c5)]?_[_0x3be384(0x1c1)](_0x8462a7[_0x3be384(0x1c5)],function(_0x59f7ca){const _0x34d2a5=_0x3be384;return{'model':db[_0x59f7ca[_0x34d2a5(0x1c2)]],'as':_0x59f7ca['as'],'attributes':_0x59f7ca['attributes'],'include':_0x59f7ca[_0x34d2a5(0x1c5)]?_[_0x34d2a5(0x1c1)](_0x59f7ca[_0x34d2a5(0x1c5)],function(_0x17d99b){const _0x41202c=_0x34d2a5;return{'model':db[_0x17d99b[_0x41202c(0x1c2)]],'as':_0x17d99b['as'],'attributes':_0x17d99b['attributes']};}):[]};}):[]};}):[]:[]})[_0xa6469d(0x1be)](function(_0x44de77){const _0x4bc322=_0xa6469d;logger[_0x4bc322(0x1c3)](_0x4bc322(0x1ca),_0x36d9c9),logger[_0x4bc322(0x1cf)](_0x4bc322(0x1ca),_0x36d9c9,JSON[_0x4bc322(0x1c6)](_0x44de77)),_0x3ef0b8(_0x44de77);})[_0xa6469d(0x1c9)](function(_0x463487){const _0x568cf3=_0xa6469d;logger[_0x568cf3(0x1d2)](_0x568cf3(0x1ca),_0x463487[_0x568cf3(0x1c0)],_0x36d9c9),_0x278d5a(_0x1ee651[_0x568cf3(0x1d2)](0x1f4,_0x463487[_0x568cf3(0x1c0)]));});});}; \ No newline at end of file diff --git a/server/api/trunk/index.js b/server/api/trunk/index.js index c46743e..4a9c695 100644 --- a/server/api/trunk/index.js +++ b/server/api/trunk/index.js @@ -1 +1 @@ -const a641_0x255f=['exports','show','clone','update','create','../../components/auth/service','delete','post','put','/:id','isAuthenticated','express','get','/:id/clone','Router'];(function(_0x4fa374,_0x255f0d){const _0x5812c1=function(_0x380d1a){while(--_0x380d1a){_0x4fa374['push'](_0x4fa374['shift']());}};_0x5812c1(++_0x255f0d);}(a641_0x255f,0x142));const a641_0x5812=function(_0x4fa374,_0x255f0d){_0x4fa374=_0x4fa374-0x0;let _0x5812c1=a641_0x255f[_0x4fa374];return _0x5812c1;};const _0x4253e8=a641_0x5812;'use strict';const express=require(_0x4253e8('0x4')),router=express[_0x4253e8('0x7')](),auth=require(_0x4253e8('0xd')),controller=require('./trunk.controller');router[_0x4253e8('0x5')]('/',auth[_0x4253e8('0x3')](),controller['index']),router[_0x4253e8('0x5')]('/:id',auth['isAuthenticated'](),controller[_0x4253e8('0x9')]),router[_0x4253e8('0x0')](_0x4253e8('0x6'),auth['isAuthenticated'](),controller[_0x4253e8('0xa')]),router[_0x4253e8('0x0')]('/',auth['isAuthenticated'](),controller[_0x4253e8('0xc')]),router[_0x4253e8('0x1')](_0x4253e8('0x2'),auth[_0x4253e8('0x3')](),controller[_0x4253e8('0xb')]),router[_0x4253e8('0xe')](_0x4253e8('0x2'),auth[_0x4253e8('0x3')](),controller['destroy']),module[_0x4253e8('0x8')]=router; \ No newline at end of file +const a767_0x1f75=['destroy','create','/:id','Router','/:id/clone','clone','update','get','express','put','./trunk.controller','show','post','isAuthenticated','index','exports'];(function(_0x5a8bb6,_0xe2dc02){const _0x1f75d5=function(_0x2c3dd1){while(--_0x2c3dd1){_0x5a8bb6['push'](_0x5a8bb6['shift']());}};_0x1f75d5(++_0xe2dc02);}(a767_0x1f75,0x145));const a767_0x2c3d=function(_0x5a8bb6,_0xe2dc02){_0x5a8bb6=_0x5a8bb6-0x186;let _0x1f75d5=a767_0x1f75[_0x5a8bb6];return _0x1f75d5;};const a767_0x454775=a767_0x2c3d;'use strict';const express=require(a767_0x454775(0x189)),router=express[a767_0x454775(0x194)](),auth=require('../../components/auth/service'),controller=require(a767_0x454775(0x18b));router[a767_0x454775(0x188)]('/',auth[a767_0x454775(0x18e)](),controller[a767_0x454775(0x18f)]),router[a767_0x454775(0x188)](a767_0x454775(0x193),auth[a767_0x454775(0x18e)](),controller[a767_0x454775(0x18c)]),router['post'](a767_0x454775(0x195),auth['isAuthenticated'](),controller[a767_0x454775(0x186)]),router[a767_0x454775(0x18d)]('/',auth[a767_0x454775(0x18e)](),controller[a767_0x454775(0x192)]),router[a767_0x454775(0x18a)](a767_0x454775(0x193),auth[a767_0x454775(0x18e)](),controller[a767_0x454775(0x187)]),router['delete'](a767_0x454775(0x193),auth['isAuthenticated'](),controller[a767_0x454775(0x191)]),module[a767_0x454775(0x190)]=router; \ No newline at end of file diff --git a/server/api/trunk/trunk.attributes.js b/server/api/trunk/trunk.attributes.js index fe5ce4f..49166b0 100644 --- a/server/api/trunk/trunk.attributes.js +++ b/server/api/trunk/trunk.attributes.js @@ -1 +1 @@ -const a642_0x3760=['insecure','join','yes','refuse','always','info','update,nonat','allow','auto','PROHIB','dynamic','passive','INTEGER','ALLOWED_NOT_SCREENED','update','force_rport,comedia','ENUM','ALLOWED_FAILED_SCREEN','accept','transport','getDataValue','user','PROHIB_PASSED_SCREEN','ALLOWED_PASSED_SCREEN','ulaw;alaw;gsm','outgoing','from-voip-provider','active','PROHIB_FAILED_SCREEN','friend','split','all','nat','certificate','STRING','inband','String\x20is\x20deprecated.\x20Please\x20use\x20an\x20Array\x20as\x20[\x22port\x22,\x20\x22invite\x22]','nonat','name','rfc2833','exports','originate','String\x20is\x20deprecated.\x20Please\x20use\x20an\x20Array\x20as\x20[\x22udp\x22,\x20\x22tcp\x22]','uas','fingerprint','setDataValue','PROHIB_NOT_SCREENED','shortinfo','BOOLEAN'];(function(_0x3227e1,_0x376091){const _0x73aaa5=function(_0x5e2baf){while(--_0x5e2baf){_0x3227e1['push'](_0x3227e1['shift']());}};_0x73aaa5(++_0x376091);}(a642_0x3760,0x6f));const a642_0x73aa=function(_0x3227e1,_0x376091){_0x3227e1=_0x3227e1-0x0;let _0x73aaa5=a642_0x3760[_0x3227e1];return _0x73aaa5;};const _0x4c670a=a642_0x73aa;'use strict';const Sequelize=require('sequelize');module[_0x4c670a('0x1b')]={'name':{'type':Sequelize[_0x4c670a('0x15')],'allowNull':![],'unique':_0x4c670a('0x19'),'validate':{'notEmpty':!![],'is':/^[A-Za-z0-9._]+$/i}},'type':{'type':Sequelize[_0x4c670a('0x3')](_0x4c670a('0x10'),_0x4c670a('0x8'),'peer'),'allowNull':![],'defaultValue':'friend'},'context':{'type':Sequelize[_0x4c670a('0x15')],'allowNull':![],'defaultValue':_0x4c670a('0xd')},'callingpres':{'type':Sequelize['ENUM'](_0x4c670a('0x0'),_0x4c670a('0xa'),_0x4c670a('0x4'),'ALLOWED',_0x4c670a('0x21'),_0x4c670a('0x9'),_0x4c670a('0xf'),_0x4c670a('0x2d'))},'deny':{'type':Sequelize[_0x4c670a('0x15')]},'permit':{'type':Sequelize[_0x4c670a('0x15')]},'secret':{'type':Sequelize[_0x4c670a('0x15')]},'md5secret':{'type':Sequelize[_0x4c670a('0x15')]},'remotesecret':{'type':Sequelize[_0x4c670a('0x15')]},'transport':{'type':Sequelize[_0x4c670a('0x15')],'defaultValue':'udp','set':function(_0x5e2baf){const _0x49a9fc=_0x4c670a;this['setDataValue']('transport',_0x5e2baf?_0x5e2baf[_0x49a9fc('0x25')](','):null);},'get':function(){const _0x1289a4=_0x4c670a;return this[_0x1289a4('0x7')](_0x1289a4('0x6'))?this[_0x1289a4('0x7')]('transport')['split'](','):null;},'comment':_0x4c670a('0x1d')},'dtmfmode':{'type':Sequelize[_0x4c670a('0x3')](_0x4c670a('0x1a'),_0x4c670a('0x29'),_0x4c670a('0x22'),_0x4c670a('0x16'),_0x4c670a('0x2c')),'defaultValue':_0x4c670a('0x1a')},'directmedia':{'type':Sequelize[_0x4c670a('0x3')](_0x4c670a('0x26'),'no',_0x4c670a('0x18'),_0x4c670a('0x1'),_0x4c670a('0xc')),'defaultValue':'no'},'directrtpsetup':{'type':Sequelize[_0x4c670a('0x3')](_0x4c670a('0x26'),'no'),'defaultValue':'no'},'directmediapermit':{'type':Sequelize[_0x4c670a('0x15')]},'directmediadeny':{'type':Sequelize[_0x4c670a('0x15')]},'nat':{'type':Sequelize['STRING'],'defaultValue':_0x4c670a('0x2'),'set':function(_0x2e6375){const _0x32bf40=_0x4c670a;this[_0x32bf40('0x20')](_0x32bf40('0x13'),_0x2e6375?_0x2e6375[_0x32bf40('0x25')](','):null);},'get':function(){const _0x4b3e5f=_0x4c670a;return this[_0x4b3e5f('0x7')](_0x4b3e5f('0x13'))?this['getDataValue'](_0x4b3e5f('0x13'))[_0x4b3e5f('0x11')](','):null;},'comment':'String\x20is\x20deprecated.\x20Please\x20use\x20an\x20Array\x20as\x20[\x22force_rport\x22,\x20\x22comedia\x22]'},'callgroup':{'type':Sequelize[_0x4c670a('0x15')]},'namedcallgroup':{'type':Sequelize['STRING']},'pickupgroup':{'type':Sequelize[_0x4c670a('0x15')]},'namedpickupgroup':{'type':Sequelize[_0x4c670a('0x15')]},'language':{'type':Sequelize[_0x4c670a('0x15')],'defaultValue':'en'},'tonezone':{'type':Sequelize[_0x4c670a('0x15')],'allowNull':!![]},'disallow':{'type':Sequelize['STRING'],'defaultValue':_0x4c670a('0x12')},'allow':{'type':Sequelize[_0x4c670a('0x15')],'allowNull':![],'defaultValue':_0x4c670a('0xb'),'set':function(_0x5161d3){const _0x35cd2a=_0x4c670a;this[_0x35cd2a('0x20')](_0x35cd2a('0x2b'),_0x5161d3?_0x5161d3[_0x35cd2a('0x25')](';'):_0x35cd2a('0xb'));},'get':function(){const _0x2bc9ab=_0x4c670a;return this[_0x2bc9ab('0x7')](_0x2bc9ab('0x2b'))?this[_0x2bc9ab('0x7')](_0x2bc9ab('0x2b'))[_0x2bc9ab('0x11')](';'):null;},'comment':'String\x20is\x20deprecated.\x20Please\x20use\x20an\x20Array\x20as\x20[\x22ulaw\x22,\x20\x22alaw\x22,\x20\x22alaw\x22]'},'autoframing':{'type':Sequelize['ENUM'](_0x4c670a('0x26'),'no')},'insecure':{'type':Sequelize[_0x4c670a('0x15')],'defaultValue':'port,invite','set':function(_0x1866a6){const _0x4a3e50=_0x4c670a;this[_0x4a3e50('0x20')](_0x4a3e50('0x24'),_0x1866a6?_0x1866a6[_0x4a3e50('0x25')](','):null);},'get':function(){const _0x20c43d=_0x4c670a;return this[_0x20c43d('0x7')](_0x20c43d('0x24'))?this[_0x20c43d('0x7')]('insecure')[_0x20c43d('0x11')](','):null;},'comment':_0x4c670a('0x17')},'trustrpid':{'type':Sequelize[_0x4c670a('0x3')](_0x4c670a('0x26'),'no'),'defaultValue':'no'},'trust_id_outbound':{'type':Sequelize[_0x4c670a('0x3')](_0x4c670a('0x26'),'no'),'defaultValue':'no'},'progressinband':{'type':Sequelize['ENUM'](_0x4c670a('0x26'),'no','never')},'promiscredir':{'type':Sequelize['ENUM'](_0x4c670a('0x26'),'no')},'useclientcode':{'type':Sequelize[_0x4c670a('0x3')](_0x4c670a('0x26'),'no')},'accountcode':{'type':Sequelize[_0x4c670a('0x30')](0xb)},'setvar':{'type':Sequelize['STRING']},'callerid':{'type':Sequelize[_0x4c670a('0x15')],'defaultValue':'\x22\x22\x20<>'},'amaflags':{'type':Sequelize[_0x4c670a('0x15')]},'callcounter':{'type':Sequelize[_0x4c670a('0x3')](_0x4c670a('0x26'),'no'),'defaultValue':_0x4c670a('0x26')},'busylevel':{'type':Sequelize[_0x4c670a('0x30')](0xb)},'allowoverlap':{'type':Sequelize[_0x4c670a('0x3')](_0x4c670a('0x26'),'no')},'allowsubscribe':{'type':Sequelize[_0x4c670a('0x3')]('yes','no')},'allowtransfer':{'type':Sequelize[_0x4c670a('0x3')](_0x4c670a('0x26'),'no')},'ignoresdpversion':{'type':Sequelize['ENUM'](_0x4c670a('0x26'),'no')},'subscribecontext':{'type':Sequelize['STRING']},'template':{'type':Sequelize[_0x4c670a('0x15')]},'videosupport':{'type':Sequelize[_0x4c670a('0x3')](_0x4c670a('0x26'),'no',_0x4c670a('0x28')),'defaultValue':'no'},'maxcallbitrate':{'type':Sequelize[_0x4c670a('0x30')](0xb)},'rfc2833compensate':{'type':Sequelize[_0x4c670a('0x3')](_0x4c670a('0x26'),'no')},'mailbox':{'type':Sequelize[_0x4c670a('0x15')]},'session_timers':{'type':Sequelize['ENUM'](_0x4c670a('0x5'),_0x4c670a('0x27'),_0x4c670a('0x1c'))},'session_expires':{'type':Sequelize[_0x4c670a('0x30')](0xb)},'session_minse':{'type':Sequelize[_0x4c670a('0x30')](0xb)},'session_refresher':{'type':Sequelize[_0x4c670a('0x3')]('uac',_0x4c670a('0x1e')),'defaultValue':_0x4c670a('0x1e')},'t38pt_usertpsource':{'type':Sequelize[_0x4c670a('0x15')]},'regexten':{'type':Sequelize[_0x4c670a('0x15')]},'fromdomain':{'type':Sequelize['STRING']},'fromuser':{'type':Sequelize['STRING']},'port':{'type':Sequelize[_0x4c670a('0x30')](0x5)},'qualify':{'type':Sequelize[_0x4c670a('0x3')](_0x4c670a('0x26'),'no'),'defaultValue':_0x4c670a('0x26')},'keepalive':{'type':Sequelize[_0x4c670a('0x30')](0xb)},'defaultip':{'type':Sequelize[_0x4c670a('0x15')]},'defaultuser':{'type':Sequelize[_0x4c670a('0x15')]},'rtptimeout':{'type':Sequelize[_0x4c670a('0x30')](0xb)},'rtpholdtimeout':{'type':Sequelize[_0x4c670a('0x30')](0xb)},'rtpkeepalive':{'type':Sequelize[_0x4c670a('0x30')](0xb)},'sendrpid':{'type':Sequelize['ENUM'](_0x4c670a('0x26'),'no','pai'),'defaultValue':'no'},'outboundproxy':{'type':Sequelize[_0x4c670a('0x15')]},'callbackextension':{'type':Sequelize[_0x4c670a('0x15')]},'timert1':{'type':Sequelize[_0x4c670a('0x30')](0xb)},'timerb':{'type':Sequelize[_0x4c670a('0x30')](0xb)},'qualifyfreq':{'type':Sequelize[_0x4c670a('0x30')](0xb)},'contactpermit':{'type':Sequelize['STRING']},'contactdeny':{'type':Sequelize[_0x4c670a('0x15')]},'contactacl':{'type':Sequelize[_0x4c670a('0x15')]},'unsolicited_mailbox':{'type':Sequelize[_0x4c670a('0x15')]},'use_q850_reason':{'type':Sequelize['STRING']},'maxforwards':{'type':Sequelize['INTEGER'](0xb)},'encryption':{'type':Sequelize[_0x4c670a('0x3')](_0x4c670a('0x26'),'no'),'defaultValue':'no'},'avpf':{'type':Sequelize[_0x4c670a('0x3')]('yes','no')},'force_avp':{'type':Sequelize['ENUM'](_0x4c670a('0x26'),'no')},'icesupport':{'type':Sequelize['ENUM']('yes','no')},'dtlsenable':{'type':Sequelize[_0x4c670a('0x3')](_0x4c670a('0x26'),'no')},'dtlsverify':{'type':Sequelize[_0x4c670a('0x3')](_0x4c670a('0x26'),'no',_0x4c670a('0x1f'),_0x4c670a('0x14'))},'dtlsrekey':{'type':Sequelize[_0x4c670a('0x30')](0xb)},'dtlscertfile':{'type':Sequelize[_0x4c670a('0x15')]},'dtlsprivatekey':{'type':Sequelize[_0x4c670a('0x15')]},'dtlscipher':{'type':Sequelize[_0x4c670a('0x15')]},'dtlscafile':{'type':Sequelize[_0x4c670a('0x15')]},'dtlscapath':{'type':Sequelize['STRING']},'dtlssetup':{'type':Sequelize[_0x4c670a('0x3')](_0x4c670a('0xe'),_0x4c670a('0x2f'),'actpass'),'allowNull':!![]},'dtlsfingerprint':{'type':Sequelize[_0x4c670a('0x15')]},'usereqphone':{'type':Sequelize[_0x4c670a('0x3')](_0x4c670a('0x26'),'no'),'defaultValue':'no'},'recordonfeature':{'type':Sequelize['STRING']},'recordofffeature':{'type':Sequelize['STRING']},'call_limit':{'type':Sequelize['INTEGER'](0xb),'defaultValue':0x3e8},'registertrying':{'type':Sequelize[_0x4c670a('0x3')](_0x4c670a('0x26'),'no')},'subscribemwi':{'type':Sequelize[_0x4c670a('0x3')](_0x4c670a('0x26'),'no')},'vmexten':{'type':Sequelize['STRING']},'mohinterpret':{'type':Sequelize[_0x4c670a('0x15')]},'mohsuggest':{'type':Sequelize[_0x4c670a('0x15')]},'parkinglot':{'type':Sequelize[_0x4c670a('0x15')]},'description':{'type':Sequelize[_0x4c670a('0x15')]},'host':{'type':Sequelize[_0x4c670a('0x15')],'defaultValue':_0x4c670a('0x2e')},'canreinvite':{'type':Sequelize[_0x4c670a('0x3')]('yes','no','nonat',_0x4c670a('0x1'),_0x4c670a('0x2a')),'defaultValue':'no'},'registry':{'type':Sequelize[_0x4c670a('0x15')]},'otherFields':{'type':Sequelize[_0x4c670a('0x15')]},'active':{'type':Sequelize[_0x4c670a('0x23')],'allowNull':![],'defaultValue':!![]},'t38pt_udptl':{'type':Sequelize['STRING'],'defaultValue':'no'}}; \ No newline at end of file +const a768_0xb90e=['String\x20is\x20deprecated.\x20Please\x20use\x20an\x20Array\x20as\x20[\x22udp\x22,\x20\x22tcp\x22]','uac','INTEGER','uas','PROHIB','pai','ALLOWED_PASSED_SCREEN','friend','dynamic','nat','\x22\x22\x20<>','attributes','ALLOWED_FAILED_SCREEN','insecure','update,nonat','active','auto','String\x20is\x20deprecated.\x20Please\x20use\x20an\x20Array\x20as\x20[\x22force_rport\x22,\x20\x22comedia\x22]','exports','yes','STRING','originate','shortinfo','accept','allow','PROHIB_PASSED_SCREEN','port,invite','all','String\x20is\x20deprecated.\x20Please\x20use\x20an\x20Array\x20as\x20[\x22ulaw\x22,\x20\x22alaw\x22,\x20\x22alaw\x22]','user','actpass','PROHIB_FAILED_SCREEN','never','sequelize','split','transport','String\x20is\x20deprecated.\x20Please\x20use\x20an\x20Array\x20as\x20[\x22port\x22,\x20\x22invite\x22]','certificate','name','update','PROHIB_NOT_SCREENED','always','from-voip-provider','ALLOWED','join','nonat','getDataValue','ENUM','BOOLEAN','refuse','rfc2833','setDataValue'];(function(_0x4ce9d,_0x3c2837){const _0xb90ec6=function(_0xa2b972){while(--_0xa2b972){_0x4ce9d['push'](_0x4ce9d['shift']());}};_0xb90ec6(++_0x3c2837);}(a768_0xb90e,0x1e5));const a768_0xa2b9=function(_0x4ce9d,_0x3c2837){_0x4ce9d=_0x4ce9d-0x1ba;let _0xb90ec6=a768_0xb90e[_0x4ce9d];return _0xb90ec6;};const a768_0x279311=a768_0xa2b9;'use strict';const {DataTypes}=require(a768_0x279311(0x1ca)),attributes={'name':{'type':DataTypes[a768_0x279311(0x1bd)],'allowNull':![],'unique':a768_0x279311(0x1cf),'validate':{'notEmpty':!![],'is':/^[A-Za-z0-9._]+$/i}},'type':{'type':DataTypes['ENUM'](a768_0x279311(0x1e4),a768_0x279311(0x1c6),'peer'),'allowNull':![],'defaultValue':'friend'},'context':{'type':DataTypes[a768_0x279311(0x1bd)],'allowNull':![],'defaultValue':a768_0x279311(0x1d3)},'callingpres':{'type':DataTypes[a768_0x279311(0x1d8)]('ALLOWED_NOT_SCREENED',a768_0x279311(0x1e3),a768_0x279311(0x1e9),a768_0x279311(0x1d4),a768_0x279311(0x1d1),a768_0x279311(0x1c2),a768_0x279311(0x1c8),a768_0x279311(0x1e1))},'deny':{'type':DataTypes[a768_0x279311(0x1bd)]},'permit':{'type':DataTypes['STRING']},'secret':{'type':DataTypes[a768_0x279311(0x1bd)]},'md5secret':{'type':DataTypes[a768_0x279311(0x1bd)]},'remotesecret':{'type':DataTypes[a768_0x279311(0x1bd)]},'transport':{'type':DataTypes[a768_0x279311(0x1bd)],'defaultValue':'udp','set':function(_0x407d3f){this['setDataValue']('transport',_0x407d3f?_0x407d3f['join'](','):null);},'get':function(){const _0x25ad97=a768_0x279311;return this[_0x25ad97(0x1d7)](_0x25ad97(0x1cc))?this[_0x25ad97(0x1d7)](_0x25ad97(0x1cc))[_0x25ad97(0x1cb)](','):null;},'comment':a768_0x279311(0x1dd)},'dtmfmode':{'type':DataTypes[a768_0x279311(0x1d8)]('rfc2833','info',a768_0x279311(0x1bf),'inband',a768_0x279311(0x1ed)),'defaultValue':a768_0x279311(0x1db)},'directmedia':{'type':DataTypes[a768_0x279311(0x1d8)](a768_0x279311(0x1bc),'no',a768_0x279311(0x1d6),a768_0x279311(0x1d0),'outgoing'),'defaultValue':'no'},'directrtpsetup':{'type':DataTypes[a768_0x279311(0x1d8)](a768_0x279311(0x1bc),'no'),'defaultValue':'no'},'directmediapermit':{'type':DataTypes[a768_0x279311(0x1bd)]},'directmediadeny':{'type':DataTypes['STRING']},'nat':{'type':DataTypes['STRING'],'defaultValue':'force_rport,comedia','set':function(_0x501abf){const _0x1263ea=a768_0x279311;this['setDataValue'](_0x1263ea(0x1e6),_0x501abf?_0x501abf[_0x1263ea(0x1d5)](','):null);},'get':function(){const _0x1db5b6=a768_0x279311;return this[_0x1db5b6(0x1d7)](_0x1db5b6(0x1e6))?this[_0x1db5b6(0x1d7)](_0x1db5b6(0x1e6))[_0x1db5b6(0x1cb)](','):null;},'comment':a768_0x279311(0x1ba)},'callgroup':{'type':DataTypes[a768_0x279311(0x1bd)]},'namedcallgroup':{'type':DataTypes[a768_0x279311(0x1bd)]},'pickupgroup':{'type':DataTypes[a768_0x279311(0x1bd)]},'namedpickupgroup':{'type':DataTypes[a768_0x279311(0x1bd)]},'language':{'type':DataTypes['STRING'],'defaultValue':'en'},'tonezone':{'type':DataTypes['STRING'],'allowNull':!![]},'disallow':{'type':DataTypes[a768_0x279311(0x1bd)],'defaultValue':a768_0x279311(0x1c4)},'allow':{'type':DataTypes[a768_0x279311(0x1bd)],'allowNull':![],'defaultValue':'ulaw;alaw;gsm','set':function(_0x35b36f){const _0x231227=a768_0x279311;this[_0x231227(0x1dc)](_0x231227(0x1c1),_0x35b36f?_0x35b36f['join'](';'):'ulaw;alaw;gsm');},'get':function(){const _0x392242=a768_0x279311;return this[_0x392242(0x1d7)]('allow')?this[_0x392242(0x1d7)](_0x392242(0x1c1))[_0x392242(0x1cb)](';'):null;},'comment':a768_0x279311(0x1c5)},'autoframing':{'type':DataTypes[a768_0x279311(0x1d8)]('yes','no')},'insecure':{'type':DataTypes['STRING'],'defaultValue':a768_0x279311(0x1c3),'set':function(_0x1b7f97){const _0x47c7fe=a768_0x279311;this[_0x47c7fe(0x1dc)](_0x47c7fe(0x1ea),_0x1b7f97?_0x1b7f97[_0x47c7fe(0x1d5)](','):null);},'get':function(){const _0x5389c7=a768_0x279311;return this['getDataValue'](_0x5389c7(0x1ea))?this[_0x5389c7(0x1d7)](_0x5389c7(0x1ea))[_0x5389c7(0x1cb)](','):null;},'comment':a768_0x279311(0x1cd)},'trustrpid':{'type':DataTypes[a768_0x279311(0x1d8)](a768_0x279311(0x1bc),'no'),'defaultValue':'no'},'trust_id_outbound':{'type':DataTypes['ENUM'](a768_0x279311(0x1bc),'no'),'defaultValue':'no'},'progressinband':{'type':DataTypes[a768_0x279311(0x1d8)](a768_0x279311(0x1bc),'no',a768_0x279311(0x1c9))},'promiscredir':{'type':DataTypes['ENUM'](a768_0x279311(0x1bc),'no')},'useclientcode':{'type':DataTypes[a768_0x279311(0x1d8)](a768_0x279311(0x1bc),'no')},'accountcode':{'type':DataTypes[a768_0x279311(0x1df)]({'length':0xb})},'setvar':{'type':DataTypes[a768_0x279311(0x1bd)]},'callerid':{'type':DataTypes[a768_0x279311(0x1bd)],'defaultValue':a768_0x279311(0x1e7)},'amaflags':{'type':DataTypes[a768_0x279311(0x1bd)]},'callcounter':{'type':DataTypes[a768_0x279311(0x1d8)]('yes','no'),'defaultValue':'yes'},'busylevel':{'type':DataTypes['INTEGER']({'length':0xb})},'allowoverlap':{'type':DataTypes[a768_0x279311(0x1d8)](a768_0x279311(0x1bc),'no')},'allowsubscribe':{'type':DataTypes[a768_0x279311(0x1d8)]('yes','no')},'allowtransfer':{'type':DataTypes['ENUM'](a768_0x279311(0x1bc),'no')},'ignoresdpversion':{'type':DataTypes[a768_0x279311(0x1d8)](a768_0x279311(0x1bc),'no')},'subscribecontext':{'type':DataTypes[a768_0x279311(0x1bd)]},'template':{'type':DataTypes[a768_0x279311(0x1bd)]},'videosupport':{'type':DataTypes[a768_0x279311(0x1d8)](a768_0x279311(0x1bc),'no',a768_0x279311(0x1d2)),'defaultValue':'no'},'maxcallbitrate':{'type':DataTypes[a768_0x279311(0x1df)]({'length':0xb})},'rfc2833compensate':{'type':DataTypes[a768_0x279311(0x1d8)](a768_0x279311(0x1bc),'no')},'mailbox':{'type':DataTypes[a768_0x279311(0x1bd)]},'session_timers':{'type':DataTypes[a768_0x279311(0x1d8)](a768_0x279311(0x1c0),a768_0x279311(0x1da),a768_0x279311(0x1be))},'session_expires':{'type':DataTypes[a768_0x279311(0x1df)]({'length':0xb})},'session_minse':{'type':DataTypes['INTEGER']({'length':0xb})},'session_refresher':{'type':DataTypes[a768_0x279311(0x1d8)](a768_0x279311(0x1de),'uas'),'defaultValue':a768_0x279311(0x1e0)},'t38pt_usertpsource':{'type':DataTypes[a768_0x279311(0x1bd)]},'regexten':{'type':DataTypes['STRING']},'fromdomain':{'type':DataTypes[a768_0x279311(0x1bd)]},'fromuser':{'type':DataTypes[a768_0x279311(0x1bd)]},'port':{'type':DataTypes[a768_0x279311(0x1df)]({'length':0x5})},'qualify':{'type':DataTypes[a768_0x279311(0x1d8)](a768_0x279311(0x1bc),'no'),'defaultValue':'yes'},'keepalive':{'type':DataTypes['INTEGER']({'length':0xb})},'defaultip':{'type':DataTypes[a768_0x279311(0x1bd)]},'defaultuser':{'type':DataTypes[a768_0x279311(0x1bd)]},'rtptimeout':{'type':DataTypes[a768_0x279311(0x1df)]({'length':0xb})},'rtpholdtimeout':{'type':DataTypes[a768_0x279311(0x1df)]({'length':0xb})},'rtpkeepalive':{'type':DataTypes['INTEGER']({'length':0xb})},'sendrpid':{'type':DataTypes[a768_0x279311(0x1d8)](a768_0x279311(0x1bc),'no',a768_0x279311(0x1e2)),'defaultValue':'no'},'outboundproxy':{'type':DataTypes[a768_0x279311(0x1bd)]},'callbackextension':{'type':DataTypes[a768_0x279311(0x1bd)]},'timert1':{'type':DataTypes[a768_0x279311(0x1df)]({'length':0xb})},'timerb':{'type':DataTypes[a768_0x279311(0x1df)]({'length':0xb})},'qualifyfreq':{'type':DataTypes[a768_0x279311(0x1df)]({'length':0xb})},'contactpermit':{'type':DataTypes[a768_0x279311(0x1bd)]},'contactdeny':{'type':DataTypes[a768_0x279311(0x1bd)]},'contactacl':{'type':DataTypes[a768_0x279311(0x1bd)]},'unsolicited_mailbox':{'type':DataTypes[a768_0x279311(0x1bd)]},'use_q850_reason':{'type':DataTypes[a768_0x279311(0x1bd)]},'maxforwards':{'type':DataTypes[a768_0x279311(0x1df)]({'length':0xb})},'encryption':{'type':DataTypes[a768_0x279311(0x1d8)](a768_0x279311(0x1bc),'no'),'defaultValue':'no'},'avpf':{'type':DataTypes['ENUM'](a768_0x279311(0x1bc),'no')},'force_avp':{'type':DataTypes[a768_0x279311(0x1d8)]('yes','no')},'icesupport':{'type':DataTypes[a768_0x279311(0x1d8)](a768_0x279311(0x1bc),'no')},'dtlsenable':{'type':DataTypes[a768_0x279311(0x1d8)](a768_0x279311(0x1bc),'no')},'dtlsverify':{'type':DataTypes[a768_0x279311(0x1d8)](a768_0x279311(0x1bc),'no','fingerprint',a768_0x279311(0x1ce))},'dtlsrekey':{'type':DataTypes['INTEGER']({'length':0xb})},'dtlscertfile':{'type':DataTypes[a768_0x279311(0x1bd)]},'dtlsprivatekey':{'type':DataTypes['STRING']},'dtlscipher':{'type':DataTypes[a768_0x279311(0x1bd)]},'dtlscafile':{'type':DataTypes[a768_0x279311(0x1bd)]},'dtlscapath':{'type':DataTypes[a768_0x279311(0x1bd)]},'dtlssetup':{'type':DataTypes[a768_0x279311(0x1d8)](a768_0x279311(0x1ec),'passive',a768_0x279311(0x1c7)),'allowNull':!![]},'dtlsfingerprint':{'type':DataTypes[a768_0x279311(0x1bd)]},'usereqphone':{'type':DataTypes[a768_0x279311(0x1d8)](a768_0x279311(0x1bc),'no'),'defaultValue':'no'},'recordonfeature':{'type':DataTypes['STRING']},'recordofffeature':{'type':DataTypes[a768_0x279311(0x1bd)]},'call_limit':{'type':DataTypes[a768_0x279311(0x1df)]({'length':0xb}),'defaultValue':0x3e8},'registertrying':{'type':DataTypes[a768_0x279311(0x1d8)](a768_0x279311(0x1bc),'no')},'subscribemwi':{'type':DataTypes[a768_0x279311(0x1d8)](a768_0x279311(0x1bc),'no')},'vmexten':{'type':DataTypes[a768_0x279311(0x1bd)]},'mohinterpret':{'type':DataTypes[a768_0x279311(0x1bd)]},'mohsuggest':{'type':DataTypes[a768_0x279311(0x1bd)]},'parkinglot':{'type':DataTypes[a768_0x279311(0x1bd)]},'description':{'type':DataTypes['STRING']},'host':{'type':DataTypes[a768_0x279311(0x1bd)],'defaultValue':a768_0x279311(0x1e5)},'canreinvite':{'type':DataTypes[a768_0x279311(0x1d8)](a768_0x279311(0x1bc),'no',a768_0x279311(0x1d6),a768_0x279311(0x1d0),a768_0x279311(0x1eb)),'defaultValue':'no'},'registry':{'type':DataTypes[a768_0x279311(0x1bd)]},'otherFields':{'type':DataTypes[a768_0x279311(0x1bd)]},'active':{'type':DataTypes[a768_0x279311(0x1d9)],'allowNull':![],'defaultValue':!![]},'t38pt_udptl':{'type':DataTypes[a768_0x279311(0x1bd)],'defaultValue':'no'}};module[a768_0x279311(0x1bb)][a768_0x279311(0x1e8)]=attributes; \ No newline at end of file diff --git a/server/api/trunk/trunk.controller.js b/server/api/trunk/trunk.controller.js index 69559bd..df29a32 100644 --- a/server/api/trunk/trunk.controller.js +++ b/server/api/trunk/trunk.controller.js @@ -1 +1 @@ -const a643_0x4a51=['update','set','key','createdAt','lodash','VIRTUAL','order','sequelize','filter','UserProfileResource','Trunk','join','/etc/asterisk/sip_xcally_registers.conf','chan_sip.so','nolimit','destroy','merge','stack','omit','count','role','result','keys','Content-Range','render','files/templates/trunk.ejs','../../components/parsers/qs','info','request\x20sent','files/templates/registry.ejs','where','autoAssociation','length','filters','clone','json','Unable\x20to\x20retrieve\x20the\x20current\x20user','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','/etc/asterisk/sip_xcally_trunks.conf','body','rawAttributes','Trunk,\x20%s,\x20%s','http','catch','registry','pick','end','user','model','get','create','sendStatus','include','intersection','fieldName','includeAll','readFileSync','attributes','request','name','root','error','params','code','type','show','send','message','UserProfileSection','userProfileId','Trunks','sort','findOne','then','limit','index','query','api','map','updatedAt','fields','client','utf8','findAll','../../config/logger','status','options','writeFileSync','jayson/promise','offset','Reload'];(function(_0x52234e,_0x4a51e8){const _0x2b477f=function(_0x130079){while(--_0x130079){_0x52234e['push'](_0x52234e['shift']());}};_0x2b477f(++_0x4a51e8);}(a643_0x4a51,0x1e4));const a643_0x2b47=function(_0x52234e,_0x4a51e8){_0x52234e=_0x52234e-0x0;let _0x2b477f=a643_0x4a51[_0x52234e];return _0x2b477f;};const _0x5939dd=a643_0x2b47;'use strict';const path=require('path'),ejs=require('ejs'),fs=require('fs'),_=require(_0x5939dd('0x42')),qs=require(_0x5939dd('0x58')),logger=require(_0x5939dd('0x37'))(_0x5939dd('0x30')),config=require('../../config/environment'),db=require('../../mysqldb')['db'],{Op}=require(_0x5939dd('0x45')),jayson=require(_0x5939dd('0x3b')),client=jayson[_0x5939dd('0x34')][_0x5939dd('0xd')]({'port':0x232a});function respondWithRpcPromise(_0x130079,_0x570007,_0x4a4773,_0x5c08f1){return new Promise(function(_0x4ab911,_0x5094a2){const _0x4c4591=a643_0x2b47,_0x2e4081=_0x5c08f1||client;return _0x2e4081[_0x4c4591('0x1d')](_0x130079,_0x4a4773)[_0x4c4591('0x2c')](function(_0x569153){const _0x58a384=_0x4c4591;logger[_0x58a384('0x59')](_0x58a384('0xc'),_0x570007,_0x58a384('0x5a')),logger['debug']('Trunk,\x20%s,\x20%s,\x20%s',_0x570007,_0x58a384('0x5a'),JSON['stringify'](_0x569153));if(_0x569153[_0x58a384('0x20')]){if(_0x569153[_0x58a384('0x20')][_0x58a384('0x22')]===0x1f4)return logger[_0x58a384('0x20')](_0x58a384('0xc'),_0x570007,_0x569153[_0x58a384('0x20')][_0x58a384('0x26')]),_0x5094a2(_0x569153[_0x58a384('0x20')][_0x58a384('0x26')]);return logger[_0x58a384('0x20')](_0x58a384('0xc'),_0x570007,_0x569153[_0x58a384('0x20')][_0x58a384('0x26')]),_0x4ab911(_0x569153[_0x58a384('0x20')]['message']);}else logger[_0x58a384('0x59')](_0x58a384('0xc'),_0x570007,'request\x20sent'),_0x4ab911(_0x569153[_0x58a384('0x53')][_0x58a384('0x26')]);})['catch'](function(_0x1f68a9){const _0x5d6507=_0x4c4591;logger[_0x5d6507('0x20')]('Trunk,\x20%s,\x20%s',_0x570007,_0x1f68a9),_0x5094a2(_0x1f68a9);});});}function respondWithResult(_0x1d6517,_0x55062d){return _0x55062d=_0x55062d||0xc8,function(_0x268a0b){const _0x329a65=a643_0x2b47;if(_0x268a0b)return _0x1d6517[_0x329a65('0x38')](_0x55062d)['json'](_0x268a0b);};}function respondWithFilteredResult(_0x2f5283,_0x3ec915){return function(_0x1a99f9){const _0x3332a7=a643_0x2b47;if(_0x1a99f9){const _0x3fb2cb=_0x1a99f9[_0x3332a7('0x51')],_0x15b893=_0x3ec915['offset'];let _0x4f923a=_0x3ec915[_0x3332a7('0x3c')]+_0x3ec915[_0x3332a7('0x2d')],_0xe44b78;return _0x4f923a>=_0x3fb2cb?(_0x4f923a=_0x3fb2cb,_0xe44b78=0xc8):_0xe44b78=0xce,_0x2f5283[_0x3332a7('0x38')](_0xe44b78),_0x2f5283[_0x3332a7('0x3f')](_0x3332a7('0x55'),_0x15b893+'-'+_0x4f923a+'/'+_0x3fb2cb)[_0x3332a7('0x6')](_0x1a99f9);}return null;};}function saveUpdates(_0x41bd12){return function(_0x44450a){const _0x379a7e=a643_0x2b47;if(_0x44450a)return _0x44450a[_0x379a7e('0x3e')](_0x41bd12)[_0x379a7e('0x2c')](function(_0x38fc3a){return _0x38fc3a;});return null;};}function removeEntity(_0x464f49){return function(_0x50908a){const _0x344a8d=a643_0x2b47;if(_0x50908a)return _0x50908a['destroy']()[_0x344a8d('0x2c')](function(){const _0x54fff4=_0x344a8d,_0x294939=_0x50908a['get']({'plain':!![]}),_0x48953b=_0x54fff4('0x29');return db[_0x54fff4('0x47')]['destroy']({'where':{'type':_0x48953b,'resourceId':_0x294939['id']}})[_0x54fff4('0x2c')](function(){return _0x50908a;});})['then'](function(){const _0x351164=_0x344a8d;_0x464f49[_0x351164('0x38')](0xcc)[_0x351164('0x11')]();});};}function handleEntityNotFound(_0x4ca906){return function(_0xd836d3){const _0x4f9a12=a643_0x2b47;return!_0xd836d3&&_0x4ca906[_0x4f9a12('0x16')](0x194),_0xd836d3;};}function handleError(_0x585426,_0x2f42cd){return _0x2f42cd=_0x2f42cd||0x1f4,function(_0x11e453){const _0x5ef470=a643_0x2b47;logger[_0x5ef470('0x20')](_0x11e453[_0x5ef470('0x4f')]),_0x11e453['name']&&delete _0x11e453[_0x5ef470('0x1e')],_0x585426[_0x5ef470('0x38')](_0x2f42cd)[_0x5ef470('0x25')](_0x11e453);};}exports[_0x5939dd('0x2e')]=function(_0x2f6365,_0x5c5879){const _0x446529=_0x5939dd;let _0x1a5078={};const _0x46ff24={},_0x585b06={'count':0x0,'rows':[]},_0x4f8f0c=_['map'](db[_0x446529('0x48')]['rawAttributes'],function(_0x483e3){const _0x3848ba=_0x446529;return{'name':_0x483e3[_0x3848ba('0x19')],'type':_0x483e3[_0x3848ba('0x23')][_0x3848ba('0x40')]};});_0x46ff24['model']=_[_0x446529('0x31')](_0x4f8f0c,_0x446529('0x1e')),_0x46ff24['query']=_[_0x446529('0x54')](_0x2f6365[_0x446529('0x2f')]),_0x46ff24[_0x446529('0x4')]=_[_0x446529('0x18')](_0x46ff24[_0x446529('0x13')],_0x46ff24[_0x446529('0x2f')]),_0x1a5078[_0x446529('0x1c')]=_[_0x446529('0x18')](_0x46ff24[_0x446529('0x13')],qs['fields'](_0x2f6365[_0x446529('0x2f')][_0x446529('0x33')])),_0x1a5078[_0x446529('0x1c')]=_0x1a5078[_0x446529('0x1c')][_0x446529('0x3')]?_0x1a5078[_0x446529('0x1c')]:_0x46ff24[_0x446529('0x13')];typeof _0x2f6365[_0x446529('0x2f')][_0x446529('0x4c')]==='undefined'&&(_0x1a5078[_0x446529('0x2d')]=qs[_0x446529('0x2d')](_0x2f6365[_0x446529('0x2f')][_0x446529('0x2d')]),_0x1a5078[_0x446529('0x3c')]=qs[_0x446529('0x3c')](_0x2f6365[_0x446529('0x2f')][_0x446529('0x3c')]));_0x1a5078[_0x446529('0x44')]=qs[_0x446529('0x2a')](_0x2f6365[_0x446529('0x2f')][_0x446529('0x2a')]),_0x1a5078[_0x446529('0x1')]=qs[_0x446529('0x4')](_[_0x446529('0x10')](_0x2f6365[_0x446529('0x2f')],_0x46ff24[_0x446529('0x4')]),_0x4f8f0c);_0x2f6365[_0x446529('0x2f')]['filter']&&(_0x1a5078['where']=_['merge'](_0x1a5078[_0x446529('0x1')],{[Op['or']]:_[_0x446529('0x31')](_0x4f8f0c,function(_0x125d92){const _0x3ff1ae=_0x446529;if(_0x125d92[_0x3ff1ae('0x23')]!==_0x3ff1ae('0x43')){const _0x550855={};return _0x550855[_0x125d92[_0x3ff1ae('0x1e')]]={[Op['like']]:'%'+_0x2f6365['query'][_0x3ff1ae('0x46')]+'%'},_0x550855;}})}));_0x1a5078=_[_0x446529('0x4e')]({},_0x1a5078,_0x2f6365[_0x446529('0x39')]);const _0x131bc2={'where':_0x1a5078[_0x446529('0x1')]};return db['Trunk'][_0x446529('0x51')](_0x131bc2)[_0x446529('0x2c')](function(_0x29acf8){const _0x3521fe=_0x446529;return _0x585b06[_0x3521fe('0x51')]=_0x29acf8,_0x2f6365[_0x3521fe('0x2f')][_0x3521fe('0x1a')]&&(_0x1a5078[_0x3521fe('0x17')]=[{'all':!![]}]),db[_0x3521fe('0x48')][_0x3521fe('0x36')](_0x1a5078);})[_0x446529('0x2c')](function(_0x1545f3){return _0x585b06['rows']=_0x1545f3,_0x585b06;})['then'](respondWithFilteredResult(_0x5c5879,_0x1a5078))['catch'](handleError(_0x5c5879,null));},exports[_0x5939dd('0x24')]=function(_0x4a84ab,_0x47cec1){const _0x4769f6=_0x5939dd;let _0x503e83={'raw':![],'where':{'id':_0x4a84ab[_0x4769f6('0x21')]['id']}};const _0x1854fb={};return _0x1854fb[_0x4769f6('0x13')]=_[_0x4769f6('0x54')](db[_0x4769f6('0x48')][_0x4769f6('0xb')]),_0x1854fb[_0x4769f6('0x2f')]=_[_0x4769f6('0x54')](_0x4a84ab[_0x4769f6('0x2f')]),_0x1854fb[_0x4769f6('0x4')]=_[_0x4769f6('0x18')](_0x1854fb[_0x4769f6('0x13')],_0x1854fb[_0x4769f6('0x2f')]),_0x503e83['attributes']=_[_0x4769f6('0x18')](_0x1854fb['model'],qs[_0x4769f6('0x33')](_0x4a84ab[_0x4769f6('0x2f')]['fields'])),_0x503e83[_0x4769f6('0x1c')]=_0x503e83['attributes'][_0x4769f6('0x3')]?_0x503e83['attributes']:_0x1854fb[_0x4769f6('0x13')],_0x4a84ab[_0x4769f6('0x2f')][_0x4769f6('0x1a')]&&(_0x503e83[_0x4769f6('0x17')]=[{'all':!![]}]),_0x503e83=_[_0x4769f6('0x4e')]({},_0x503e83,_0x4a84ab['options']),db['Trunk'][_0x4769f6('0x2b')](_0x503e83)[_0x4769f6('0x2c')](handleEntityNotFound(_0x47cec1,null))[_0x4769f6('0x2c')](respondWithResult(_0x47cec1,null))[_0x4769f6('0xe')](handleError(_0x47cec1,null));},exports[_0x5939dd('0x5')]=function(_0x284b37,_0x1a5930){const _0x4dea30=_0x5939dd;let _0x4e9c30={'where':{'id':_0x284b37[_0x4dea30('0x21')]['id']}};const _0x2565ab={};return _0x2565ab[_0x4dea30('0x13')]=_[_0x4dea30('0x54')](db[_0x4dea30('0x48')][_0x4dea30('0xb')]),_0x4e9c30['attributes']=_[_0x4dea30('0x18')](_0x2565ab[_0x4dea30('0x13')],qs[_0x4dea30('0x33')](_0x284b37[_0x4dea30('0x2f')][_0x4dea30('0x33')])),_0x4e9c30[_0x4dea30('0x1c')]=_0x4e9c30[_0x4dea30('0x1c')][_0x4dea30('0x3')]?_0x4e9c30['attributes']:_0x2565ab[_0x4dea30('0x13')],_0x284b37[_0x4dea30('0x2f')]['includeAll']&&(_0x4e9c30[_0x4dea30('0x17')]=[{'all':!![]}]),_0x4e9c30=_[_0x4dea30('0x4e')]({},_0x4e9c30,_0x284b37[_0x4dea30('0x39')]),db['Trunk'][_0x4dea30('0x2b')](_0x4e9c30)['then'](handleEntityNotFound(_0x1a5930,null))[_0x4dea30('0x2c')](function(_0xb70b5c){const _0x224224=_0x4dea30;if(_0xb70b5c){let _0x44c6c8=_0xb70b5c['get']({'plain':!![]});return _0x44c6c8=qs['omit'](_0x44c6c8,['id','createdAt',_0x224224('0x32')]),_0x284b37[_0x224224('0xa')]=_[_0x224224('0x50')](_0x284b37[_0x224224('0xa')],['id',_0x224224('0x41'),'updatedAt']),db[_0x224224('0x48')][_0x224224('0x15')](_['merge'](_0x44c6c8,_0x284b37[_0x224224('0xa')]),{'include':_0x284b37['query'][_0x224224('0x1a')]?[{'all':!![]}]:undefined})[_0x224224('0x2c')](function(_0x3857fc){const _0x2b389e=_0x224224,_0x4a0685=_0x284b37[_0x2b389e('0x12')]['get']({'plain':!![]});if(!_0x4a0685)throw new Error(_0x2b389e('0x7'));if(_0x4a0685[_0x2b389e('0x52')]===_0x2b389e('0x12')){const _0x382c01=_0x3857fc[_0x2b389e('0x14')]({'plain':!![]}),_0x1a31d0=_0x2b389e('0x29');return db[_0x2b389e('0x27')][_0x2b389e('0x2b')]({'where':{'name':_0x1a31d0,'userProfileId':_0x4a0685[_0x2b389e('0x28')]},'raw':!![]})[_0x2b389e('0x2c')](function(_0x87a436){const _0x2dfd2e=_0x2b389e;return _0x87a436&&_0x87a436[_0x2dfd2e('0x2')]===0x0?db['UserProfileResource'][_0x2dfd2e('0x15')]({'name':_0x382c01[_0x2dfd2e('0x1e')],'resourceId':_0x382c01['id'],'type':_0x87a436['name'],'sectionId':_0x87a436['id']},{})['then'](function(){return _0x3857fc;}):_0x3857fc;})[_0x2b389e('0xe')](function(_0x2b46ee){const _0x3a50de=_0x2b389e;logger[_0x3a50de('0x20')](_0x3a50de('0x8'),_0x2b46ee);throw _0x2b46ee;});}return _0x3857fc;});}})[_0x4dea30('0x2c')](respondWithResult(_0x1a5930,0xc9))[_0x4dea30('0xe')](handleError(_0x1a5930,null));},exports[_0x5939dd('0x15')]=function(_0x2385bb,_0x38fb2f){const _0x326bb9=_0x5939dd;let _0x3eb722;return db[_0x326bb9('0x48')][_0x326bb9('0x15')](_0x2385bb[_0x326bb9('0xa')],{'raw':!![]})[_0x326bb9('0x2c')](function(_0x2211f7){const _0x33ed22=_0x326bb9;return _0x3eb722=_0x2211f7,db[_0x33ed22('0x48')][_0x33ed22('0x36')]({'raw':!![]});})['then'](function(_0x4bd1c0){const _0x4a5a5c=_0x326bb9,_0xba81cb=fs[_0x4a5a5c('0x1b')](path[_0x4a5a5c('0x49')](config[_0x4a5a5c('0x1f')],_0x4a5a5c('0x57')),_0x4a5a5c('0x35')),_0x5c103a=fs[_0x4a5a5c('0x1b')](path[_0x4a5a5c('0x49')](config[_0x4a5a5c('0x1f')],_0x4a5a5c('0x0')),'utf8'),_0x35561a=ejs[_0x4a5a5c('0x56')](_0xba81cb,{'trunks':_0x4bd1c0||[]});fs[_0x4a5a5c('0x3a')]('/etc/asterisk/sip_xcally_trunks.conf',_0x35561a);if(_0x3eb722[_0x4a5a5c('0xf')]){const _0x2a6372=ejs[_0x4a5a5c('0x56')](_0x5c103a,{'trunks':_0x4bd1c0||[]});fs[_0x4a5a5c('0x3a')]('/etc/asterisk/sip_xcally_registers.conf',_0x2a6372);}})['then'](function(){const _0x14a2e4=_0x326bb9;return respondWithRpcPromise(_0x14a2e4('0x3d'),_0x14a2e4('0x15'),{'module':_0x14a2e4('0x4b')});})[_0x326bb9('0x2c')](function(){const _0x1d0c5f=_0x326bb9,_0x2acb39=_0x2385bb[_0x1d0c5f('0x12')][_0x1d0c5f('0x14')]({'plain':!![]});if(!_0x2acb39)throw new Error(_0x1d0c5f('0x7'));if(_0x2acb39[_0x1d0c5f('0x52')]===_0x1d0c5f('0x12')){const _0x1742f7=_0x3eb722[_0x1d0c5f('0x14')]({'plain':!![]});return db[_0x1d0c5f('0x27')]['findOne']({'where':{'name':_0x1d0c5f('0x29'),'userProfileId':_0x2acb39[_0x1d0c5f('0x28')]},'raw':!![]})['then'](function(_0xb26141){const _0x12baf2=_0x1d0c5f;return _0xb26141&&_0xb26141['autoAssociation']===0x0?db[_0x12baf2('0x47')]['create']({'name':_0x1742f7[_0x12baf2('0x1e')],'resourceId':_0x1742f7['id'],'type':_0xb26141[_0x12baf2('0x1e')],'sectionId':_0xb26141['id']},{})[_0x12baf2('0x2c')](function(){return _0x3eb722;}):_0x3eb722;})[_0x1d0c5f('0xe')](function(_0x28d5cb){const _0x690d52=_0x1d0c5f;logger['error'](_0x690d52('0x8'),_0x28d5cb);throw _0x28d5cb;});}return _0x3eb722;})[_0x326bb9('0x2c')](respondWithResult(_0x38fb2f,0xc9))['catch'](handleError(_0x38fb2f,null));},exports[_0x5939dd('0x3e')]=function(_0x16bc93,_0x44ab67){const _0x2996a6=_0x5939dd;let _0x160f03;return db[_0x2996a6('0x48')][_0x2996a6('0x2b')]({'where':{'id':_0x16bc93['params']['id']}})[_0x2996a6('0x2c')](handleEntityNotFound(_0x44ab67,null))[_0x2996a6('0x2c')](saveUpdates(_0x16bc93[_0x2996a6('0xa')],null))[_0x2996a6('0x2c')](function(_0x5b0791){const _0x209d62=_0x2996a6;if(_0x5b0791)return _0x160f03=_0x5b0791,db[_0x209d62('0x48')][_0x209d62('0x36')]({'raw':!![]});})[_0x2996a6('0x2c')](function(_0x16f32a){const _0x2cf252=_0x2996a6;if(_0x16f32a){const _0x2e5e2d=fs['readFileSync'](path[_0x2cf252('0x49')](config[_0x2cf252('0x1f')],_0x2cf252('0x57')),_0x2cf252('0x35')),_0x8bd666=fs[_0x2cf252('0x1b')](path[_0x2cf252('0x49')](config['root'],'files/templates/registry.ejs'),_0x2cf252('0x35')),_0x2dd57c=ejs[_0x2cf252('0x56')](_0x2e5e2d,{'trunks':_0x16f32a||[]});fs['writeFileSync'](_0x2cf252('0x9'),_0x2dd57c);const _0x5da0d9=ejs['render'](_0x8bd666,{'trunks':_0x16f32a||[]});return fs[_0x2cf252('0x3a')](_0x2cf252('0x4a'),_0x5da0d9),respondWithRpcPromise(_0x2cf252('0x3d'),_0x2cf252('0x3e'),{'module':_0x2cf252('0x4b')});}return null;})[_0x2996a6('0x2c')](function(_0x36fa7e){if(_0x36fa7e)return _0x160f03;})[_0x2996a6('0x2c')](respondWithResult(_0x44ab67,null))[_0x2996a6('0xe')](handleError(_0x44ab67,null));},exports['destroy']=function(_0x2cfd8c,_0x5f391e){const _0x517f49=_0x5939dd;return db[_0x517f49('0x48')][_0x517f49('0x2b')]({'where':{'id':_0x2cfd8c['params']['id']}})[_0x517f49('0x2c')](handleEntityNotFound(_0x5f391e,null))[_0x517f49('0x2c')](removeEntity(_0x5f391e,null))[_0x517f49('0x2c')](function(){const _0x544590=_0x517f49;return db[_0x544590('0x48')][_0x544590('0x36')]({'raw':!![]});})['then'](function(_0x1f7faa){const _0x47da96=_0x517f49,_0x3f9257=fs[_0x47da96('0x1b')](path[_0x47da96('0x49')](config['root'],_0x47da96('0x57')),_0x47da96('0x35')),_0x1d7161=fs[_0x47da96('0x1b')](path['join'](config[_0x47da96('0x1f')],'files/templates/registry.ejs'),'utf8'),_0x530c52=ejs['render'](_0x3f9257,{'trunks':_0x1f7faa}),_0x53cde7=ejs[_0x47da96('0x56')](_0x1d7161,{'trunks':_0x1f7faa});return fs[_0x47da96('0x3a')](_0x47da96('0x9'),_0x530c52),fs[_0x47da96('0x3a')](_0x47da96('0x4a'),_0x53cde7),respondWithRpcPromise('Reload',_0x47da96('0x4d'),{'module':'chan_sip.so'});})[_0x517f49('0xe')](handleError(_0x5f391e,null));}; \ No newline at end of file +const a769_0x29c6=['sendStatus','set','join','render','userProfileId','stringify','filter','destroy','UserProfileResource','registry','then','request','order','../../components/parsers/qs','include','intersection','Trunk,\x20%s,\x20%s,\x20%s','Content-Range','body','fields','UserProfileSection','type','../../config/logger','update','/etc/asterisk/sip_xcally_registers.conf','count','files/templates/trunk.ejs','end','findAll','code','role','filters','map','options','status','offset','message','length','autoAssociation','findOne','readFileSync','model','catch','jayson/promise','sort','clone','chan_sip.so','Reload','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','files/templates/registry.ejs','utf8','request\x20sent','stack','info','../../mysqldb','limit','Unable\x20to\x20retrieve\x20the\x20current\x20user','rawAttributes','fieldName','keys','Trunks','ejs','attributes','createdAt','show','VIRTUAL','user','updatedAt','Trunk','writeFileSync','includeAll','rows','get','create','send','name','../../config/environment','error','like','merge','nolimit','/etc/asterisk/sip_xcally_trunks.conf','query','params','sequelize','undefined','json','pick','root','omit','where','Trunk,\x20%s,\x20%s'];(function(_0x35a9b2,_0x239325){const _0x29c6f8=function(_0x2f4c4c){while(--_0x2f4c4c){_0x35a9b2['push'](_0x35a9b2['shift']());}};_0x29c6f8(++_0x239325);}(a769_0x29c6,0x13b));const a769_0x2f4c=function(_0x35a9b2,_0x239325){_0x35a9b2=_0x35a9b2-0x1b7;let _0x29c6f8=a769_0x29c6[_0x35a9b2];return _0x29c6f8;};const a769_0x5b804b=a769_0x2f4c;'use strict';const path=require('path'),ejs=require(a769_0x5b804b(0x1cd)),fs=require('fs'),_=require('lodash'),qs=require(a769_0x5b804b(0x1f9)),logger=require(a769_0x5b804b(0x202))('api'),config=require(a769_0x5b804b(0x1dc)),{db}=require(a769_0x5b804b(0x1c6)),{Op}=require(a769_0x5b804b(0x1e4)),jayson=require(a769_0x5b804b(0x1bb)),client=jayson['client']['http']({'port':0x232a});function respondWithRpcPromise(_0x1341cd,_0x4e2434,_0x1cf9a1,_0x551f23){return new Promise(function(_0x4ebb31,_0x50d497){const _0x5c0644=a769_0x2f4c,_0x363db5=_0x551f23||client;return _0x363db5[_0x5c0644(0x1f7)](_0x1341cd,_0x1cf9a1)['then'](function(_0x29847c){const _0x5bf097=_0x5c0644;logger[_0x5bf097(0x1c5)]('Trunk,\x20%s,\x20%s',_0x4e2434,_0x5bf097(0x1c3)),logger['debug'](_0x5bf097(0x1fc),_0x4e2434,_0x5bf097(0x1c3),JSON[_0x5bf097(0x1f1)](_0x29847c));if(_0x29847c['error']){if(_0x29847c[_0x5bf097(0x1dd)][_0x5bf097(0x209)]===0x1f4)return logger[_0x5bf097(0x1dd)](_0x5bf097(0x1eb),_0x4e2434,_0x29847c['error'][_0x5bf097(0x210)]),_0x50d497(_0x29847c[_0x5bf097(0x1dd)][_0x5bf097(0x210)]);return logger[_0x5bf097(0x1dd)](_0x5bf097(0x1eb),_0x4e2434,_0x29847c[_0x5bf097(0x1dd)][_0x5bf097(0x210)]),_0x4ebb31(_0x29847c[_0x5bf097(0x1dd)]['message']);}else logger[_0x5bf097(0x1c5)]('Trunk,\x20%s,\x20%s',_0x4e2434,_0x5bf097(0x1c3)),_0x4ebb31(_0x29847c['result'][_0x5bf097(0x210)]);})[_0x5c0644(0x1ba)](function(_0x22779c){const _0x1cd051=_0x5c0644;logger[_0x1cd051(0x1dd)](_0x1cd051(0x1eb),_0x4e2434,_0x22779c),_0x50d497(_0x22779c);});});}function respondWithResult(_0x3ea357,_0x55e3ae){return _0x55e3ae=_0x55e3ae||0xc8,function(_0x16a384){const _0x2157a3=a769_0x2f4c;if(_0x16a384)return _0x3ea357[_0x2157a3(0x20e)](_0x55e3ae)['json'](_0x16a384);};}function respondWithFilteredResult(_0x4aa8b7,_0x5712e8){return function(_0x31a84a){const _0x3d2b70=a769_0x2f4c;if(_0x31a84a){const _0x3d198a=_0x31a84a[_0x3d2b70(0x205)],_0x46e438=_0x5712e8['offset'];let _0x23e6ab=_0x5712e8[_0x3d2b70(0x20f)]+_0x5712e8[_0x3d2b70(0x1c7)],_0x4e22e7;return _0x23e6ab>=_0x3d198a?(_0x23e6ab=_0x3d198a,_0x4e22e7=0xc8):_0x4e22e7=0xce,_0x4aa8b7[_0x3d2b70(0x20e)](_0x4e22e7),_0x4aa8b7[_0x3d2b70(0x1ed)](_0x3d2b70(0x1fd),_0x46e438+'-'+_0x23e6ab+'/'+_0x3d198a)[_0x3d2b70(0x1e6)](_0x31a84a);}return null;};}function saveUpdates(_0x50df3b){return function(_0x126a40){const _0x26cbb2=a769_0x2f4c;if(_0x126a40)return _0x126a40[_0x26cbb2(0x203)](_0x50df3b)[_0x26cbb2(0x1f6)](function(_0x42c315){return _0x42c315;});return null;};}function removeEntity(_0x105965){return function(_0x213411){const _0x4273bd=a769_0x2f4c;if(_0x213411)return _0x213411[_0x4273bd(0x1f3)]()[_0x4273bd(0x1f6)](function(){const _0x1a2aaa=_0x4273bd,_0x1d903a=_0x213411[_0x1a2aaa(0x1d8)]({'plain':!![]}),_0x13a33e=_0x1a2aaa(0x1cc);return db[_0x1a2aaa(0x1f4)][_0x1a2aaa(0x1f3)]({'where':{'type':_0x13a33e,'resourceId':_0x1d903a['id']}})[_0x1a2aaa(0x1f6)](function(){return _0x213411;});})[_0x4273bd(0x1f6)](function(){const _0x55d6e7=_0x4273bd;_0x105965[_0x55d6e7(0x20e)](0xcc)[_0x55d6e7(0x207)]();});};}function handleEntityNotFound(_0xb85abe){return function(_0x48d4ae){const _0x3a31c7=a769_0x2f4c;return!_0x48d4ae&&_0xb85abe[_0x3a31c7(0x1ec)](0x194),_0x48d4ae;};}function handleError(_0x558a70,_0x5ebb4e){return _0x5ebb4e=_0x5ebb4e||0x1f4,function(_0x52fd3f){const _0x56464f=a769_0x2f4c;logger['error'](_0x52fd3f[_0x56464f(0x1c4)]),_0x52fd3f[_0x56464f(0x1db)]&&delete _0x52fd3f[_0x56464f(0x1db)],_0x558a70[_0x56464f(0x20e)](_0x5ebb4e)[_0x56464f(0x1da)](_0x52fd3f);};}exports['index']=function(_0x5c8d14,_0x4a5f4b){const _0x6080e=a769_0x5b804b;let _0x57c0fe={};const _0x5df355={},_0x1913f7={'count':0x0,'rows':[]},_0x503c17=_[_0x6080e(0x20c)](db['Trunk'][_0x6080e(0x1c9)],function(_0x1d15a1){const _0x408e2a=_0x6080e;return{'name':_0x1d15a1[_0x408e2a(0x1ca)],'type':_0x1d15a1[_0x408e2a(0x201)]['key']};});_0x5df355[_0x6080e(0x1b9)]=_[_0x6080e(0x20c)](_0x503c17,_0x6080e(0x1db)),_0x5df355[_0x6080e(0x1e2)]=_[_0x6080e(0x1cb)](_0x5c8d14['query']),_0x5df355[_0x6080e(0x20b)]=_[_0x6080e(0x1fb)](_0x5df355[_0x6080e(0x1b9)],_0x5df355['query']),_0x57c0fe[_0x6080e(0x1ce)]=_[_0x6080e(0x1fb)](_0x5df355[_0x6080e(0x1b9)],qs['fields'](_0x5c8d14[_0x6080e(0x1e2)][_0x6080e(0x1ff)])),_0x57c0fe[_0x6080e(0x1ce)]=_0x57c0fe[_0x6080e(0x1ce)]['length']?_0x57c0fe[_0x6080e(0x1ce)]:_0x5df355['model'];typeof _0x5c8d14[_0x6080e(0x1e2)][_0x6080e(0x1e0)]===_0x6080e(0x1e5)&&(_0x57c0fe['limit']=qs['limit'](_0x5c8d14['query'][_0x6080e(0x1c7)]),_0x57c0fe[_0x6080e(0x20f)]=qs[_0x6080e(0x20f)](_0x5c8d14[_0x6080e(0x1e2)][_0x6080e(0x20f)]));_0x57c0fe[_0x6080e(0x1f8)]=qs[_0x6080e(0x1bc)](_0x5c8d14[_0x6080e(0x1e2)]['sort']),_0x57c0fe['where']=qs[_0x6080e(0x20b)](_[_0x6080e(0x1e7)](_0x5c8d14[_0x6080e(0x1e2)],_0x5df355[_0x6080e(0x20b)]),_0x503c17);_0x5c8d14[_0x6080e(0x1e2)][_0x6080e(0x1f2)]&&(_0x57c0fe[_0x6080e(0x1ea)]=_[_0x6080e(0x1df)](_0x57c0fe[_0x6080e(0x1ea)],{[Op['or']]:_[_0x6080e(0x20c)](_0x503c17,function(_0x209974){const _0x9e471d=_0x6080e;if(_0x209974[_0x9e471d(0x201)]!==_0x9e471d(0x1d1)){const _0x194f0c={};return _0x194f0c[_0x209974[_0x9e471d(0x1db)]]={[Op[_0x9e471d(0x1de)]]:'%'+_0x5c8d14[_0x9e471d(0x1e2)][_0x9e471d(0x1f2)]+'%'},_0x194f0c;}})}));_0x57c0fe=_['merge']({},_0x57c0fe,_0x5c8d14['options']);const _0x20d966={'where':_0x57c0fe[_0x6080e(0x1ea)]};return db['Trunk'][_0x6080e(0x205)](_0x20d966)[_0x6080e(0x1f6)](function(_0x460fe5){const _0x40e443=_0x6080e;return _0x1913f7[_0x40e443(0x205)]=_0x460fe5,_0x5c8d14[_0x40e443(0x1e2)]['includeAll']&&(_0x57c0fe[_0x40e443(0x1fa)]=[{'all':!![]}]),db['Trunk'][_0x40e443(0x208)](_0x57c0fe);})[_0x6080e(0x1f6)](function(_0x46df94){const _0x7ce4b6=_0x6080e;return _0x1913f7[_0x7ce4b6(0x1d7)]=_0x46df94,_0x1913f7;})[_0x6080e(0x1f6)](respondWithFilteredResult(_0x4a5f4b,_0x57c0fe))[_0x6080e(0x1ba)](handleError(_0x4a5f4b,null));},exports[a769_0x5b804b(0x1d0)]=function(_0x5e5997,_0xb5c740){const _0x3ae169=a769_0x5b804b;let _0x43321d={'raw':![],'where':{'id':_0x5e5997[_0x3ae169(0x1e3)]['id']}};const _0x298d16={};return _0x298d16[_0x3ae169(0x1b9)]=_[_0x3ae169(0x1cb)](db[_0x3ae169(0x1d4)]['rawAttributes']),_0x298d16[_0x3ae169(0x1e2)]=_[_0x3ae169(0x1cb)](_0x5e5997[_0x3ae169(0x1e2)]),_0x298d16[_0x3ae169(0x20b)]=_[_0x3ae169(0x1fb)](_0x298d16['model'],_0x298d16['query']),_0x43321d['attributes']=_[_0x3ae169(0x1fb)](_0x298d16[_0x3ae169(0x1b9)],qs[_0x3ae169(0x1ff)](_0x5e5997[_0x3ae169(0x1e2)]['fields'])),_0x43321d['attributes']=_0x43321d[_0x3ae169(0x1ce)][_0x3ae169(0x211)]?_0x43321d['attributes']:_0x298d16['model'],_0x5e5997['query'][_0x3ae169(0x1d6)]&&(_0x43321d[_0x3ae169(0x1fa)]=[{'all':!![]}]),_0x43321d=_[_0x3ae169(0x1df)]({},_0x43321d,_0x5e5997[_0x3ae169(0x20d)]),db[_0x3ae169(0x1d4)]['findOne'](_0x43321d)[_0x3ae169(0x1f6)](handleEntityNotFound(_0xb5c740,null))[_0x3ae169(0x1f6)](respondWithResult(_0xb5c740,null))['catch'](handleError(_0xb5c740,null));},exports[a769_0x5b804b(0x1bd)]=function(_0x217c3d,_0x5dd742){const _0xbe6980=a769_0x5b804b;let _0x16a255={'where':{'id':_0x217c3d[_0xbe6980(0x1e3)]['id']}};const _0xef57c={};return _0xef57c[_0xbe6980(0x1b9)]=_[_0xbe6980(0x1cb)](db[_0xbe6980(0x1d4)][_0xbe6980(0x1c9)]),_0x16a255[_0xbe6980(0x1ce)]=_['intersection'](_0xef57c[_0xbe6980(0x1b9)],qs[_0xbe6980(0x1ff)](_0x217c3d[_0xbe6980(0x1e2)]['fields'])),_0x16a255['attributes']=_0x16a255[_0xbe6980(0x1ce)][_0xbe6980(0x211)]?_0x16a255[_0xbe6980(0x1ce)]:_0xef57c[_0xbe6980(0x1b9)],_0x217c3d['query'][_0xbe6980(0x1d6)]&&(_0x16a255[_0xbe6980(0x1fa)]=[{'all':!![]}]),_0x16a255=_['merge']({},_0x16a255,_0x217c3d[_0xbe6980(0x20d)]),db[_0xbe6980(0x1d4)]['findOne'](_0x16a255)[_0xbe6980(0x1f6)](handleEntityNotFound(_0x5dd742,null))['then'](function(_0x16fdc4){const _0x5c999d=_0xbe6980;if(_0x16fdc4){let _0x40a4ee=_0x16fdc4[_0x5c999d(0x1d8)]({'plain':!![]});return _0x40a4ee=qs[_0x5c999d(0x1e9)](_0x40a4ee,['id','createdAt',_0x5c999d(0x1d3)]),_0x217c3d[_0x5c999d(0x1fe)]=_[_0x5c999d(0x1e9)](_0x217c3d[_0x5c999d(0x1fe)],['id',_0x5c999d(0x1cf),'updatedAt']),db[_0x5c999d(0x1d4)][_0x5c999d(0x1d9)](_[_0x5c999d(0x1df)](_0x40a4ee,_0x217c3d[_0x5c999d(0x1fe)]),{'include':_0x217c3d[_0x5c999d(0x1e2)][_0x5c999d(0x1d6)]?[{'all':!![]}]:undefined})[_0x5c999d(0x1f6)](function(_0x53d73f){const _0x4060f3=_0x5c999d,_0x10f43b=_0x217c3d[_0x4060f3(0x1d2)]['get']({'plain':!![]});if(!_0x10f43b)throw new Error(_0x4060f3(0x1c8));if(_0x10f43b[_0x4060f3(0x20a)]===_0x4060f3(0x1d2)){const _0x15a961=_0x53d73f[_0x4060f3(0x1d8)]({'plain':!![]}),_0x5883ae=_0x4060f3(0x1cc);return db[_0x4060f3(0x200)][_0x4060f3(0x1b7)]({'where':{'name':_0x5883ae,'userProfileId':_0x10f43b[_0x4060f3(0x1f0)]},'raw':!![]})[_0x4060f3(0x1f6)](function(_0xd242b5){const _0x5b9e23=_0x4060f3;return _0xd242b5&&_0xd242b5[_0x5b9e23(0x212)]===0x0?db[_0x5b9e23(0x1f4)][_0x5b9e23(0x1d9)]({'name':_0x15a961[_0x5b9e23(0x1db)],'resourceId':_0x15a961['id'],'type':_0xd242b5['name'],'sectionId':_0xd242b5['id']},{})['then'](function(){return _0x53d73f;}):_0x53d73f;})[_0x4060f3(0x1ba)](function(_0x11cd84){const _0x21b0ee=_0x4060f3;logger[_0x21b0ee(0x1dd)](_0x21b0ee(0x1c0),_0x11cd84);throw _0x11cd84;});}return _0x53d73f;});}})[_0xbe6980(0x1f6)](respondWithResult(_0x5dd742,0xc9))[_0xbe6980(0x1ba)](handleError(_0x5dd742,null));},exports[a769_0x5b804b(0x1d9)]=function(_0x1b4a35,_0x427026){const _0x11abd3=a769_0x5b804b;let _0x15b41a;return db[_0x11abd3(0x1d4)][_0x11abd3(0x1d9)](_0x1b4a35[_0x11abd3(0x1fe)],{'raw':!![]})[_0x11abd3(0x1f6)](function(_0x823ab7){const _0x212350=_0x11abd3;return _0x15b41a=_0x823ab7,db[_0x212350(0x1d4)]['findAll']({'raw':!![]});})['then'](function(_0x213ebb){const _0x4febf9=_0x11abd3,_0x4b2835=fs[_0x4febf9(0x1b8)](path[_0x4febf9(0x1ee)](config[_0x4febf9(0x1e8)],'files/templates/trunk.ejs'),'utf8'),_0x408a49=fs[_0x4febf9(0x1b8)](path[_0x4febf9(0x1ee)](config[_0x4febf9(0x1e8)],_0x4febf9(0x1c1)),'utf8'),_0x5c2f48=ejs[_0x4febf9(0x1ef)](_0x4b2835,{'trunks':_0x213ebb||[]});fs[_0x4febf9(0x1d5)](_0x4febf9(0x1e1),_0x5c2f48);if(_0x15b41a[_0x4febf9(0x1f5)]){const _0xb2fe3c=ejs[_0x4febf9(0x1ef)](_0x408a49,{'trunks':_0x213ebb||[]});fs[_0x4febf9(0x1d5)](_0x4febf9(0x204),_0xb2fe3c);}})[_0x11abd3(0x1f6)](function(){const _0xc2718a=_0x11abd3;return respondWithRpcPromise(_0xc2718a(0x1bf),_0xc2718a(0x1d9),{'module':'chan_sip.so'});})[_0x11abd3(0x1f6)](function(){const _0x432ece=_0x11abd3,_0x5433fc=_0x1b4a35[_0x432ece(0x1d2)][_0x432ece(0x1d8)]({'plain':!![]});if(!_0x5433fc)throw new Error(_0x432ece(0x1c8));if(_0x5433fc['role']==='user'){const _0x32465c=_0x15b41a[_0x432ece(0x1d8)]({'plain':!![]});return db[_0x432ece(0x200)]['findOne']({'where':{'name':_0x432ece(0x1cc),'userProfileId':_0x5433fc[_0x432ece(0x1f0)]},'raw':!![]})['then'](function(_0x583780){const _0x4cb3ec=_0x432ece;return _0x583780&&_0x583780[_0x4cb3ec(0x212)]===0x0?db[_0x4cb3ec(0x1f4)]['create']({'name':_0x32465c[_0x4cb3ec(0x1db)],'resourceId':_0x32465c['id'],'type':_0x583780['name'],'sectionId':_0x583780['id']},{})['then'](function(){return _0x15b41a;}):_0x15b41a;})['catch'](function(_0x223dbd){const _0x46433e=_0x432ece;logger[_0x46433e(0x1dd)](_0x46433e(0x1c0),_0x223dbd);throw _0x223dbd;});}return _0x15b41a;})['then'](respondWithResult(_0x427026,0xc9))[_0x11abd3(0x1ba)](handleError(_0x427026,null));},exports[a769_0x5b804b(0x203)]=function(_0x27c638,_0x2e3b44){const _0x32a757=a769_0x5b804b;let _0x187a6f;return db[_0x32a757(0x1d4)][_0x32a757(0x1b7)]({'where':{'id':_0x27c638[_0x32a757(0x1e3)]['id']}})[_0x32a757(0x1f6)](handleEntityNotFound(_0x2e3b44,null))['then'](saveUpdates(_0x27c638[_0x32a757(0x1fe)],null))[_0x32a757(0x1f6)](function(_0x2009fc){if(_0x2009fc)return _0x187a6f=_0x2009fc,db['Trunk']['findAll']({'raw':!![]});})[_0x32a757(0x1f6)](function(_0x40ff83){const _0x94b9b2=_0x32a757;if(_0x40ff83){const _0x2e929b=fs[_0x94b9b2(0x1b8)](path[_0x94b9b2(0x1ee)](config[_0x94b9b2(0x1e8)],'files/templates/trunk.ejs'),_0x94b9b2(0x1c2)),_0x5c19af=fs[_0x94b9b2(0x1b8)](path[_0x94b9b2(0x1ee)](config['root'],'files/templates/registry.ejs'),'utf8'),_0x4ba687=ejs[_0x94b9b2(0x1ef)](_0x2e929b,{'trunks':_0x40ff83||[]});fs[_0x94b9b2(0x1d5)]('/etc/asterisk/sip_xcally_trunks.conf',_0x4ba687);const _0x51feb8=ejs['render'](_0x5c19af,{'trunks':_0x40ff83||[]});return fs[_0x94b9b2(0x1d5)](_0x94b9b2(0x204),_0x51feb8),respondWithRpcPromise(_0x94b9b2(0x1bf),_0x94b9b2(0x203),{'module':_0x94b9b2(0x1be)});}return null;})[_0x32a757(0x1f6)](function(_0x5e4c36){if(_0x5e4c36)return _0x187a6f;})[_0x32a757(0x1f6)](respondWithResult(_0x2e3b44,null))[_0x32a757(0x1ba)](handleError(_0x2e3b44,null));},exports[a769_0x5b804b(0x1f3)]=function(_0x37cc37,_0x2aa630){const _0x56d1f2=a769_0x5b804b;return db[_0x56d1f2(0x1d4)][_0x56d1f2(0x1b7)]({'where':{'id':_0x37cc37[_0x56d1f2(0x1e3)]['id']}})[_0x56d1f2(0x1f6)](handleEntityNotFound(_0x2aa630,null))[_0x56d1f2(0x1f6)](removeEntity(_0x2aa630,null))[_0x56d1f2(0x1f6)](function(){const _0x5ccdfe=_0x56d1f2;return db['Trunk'][_0x5ccdfe(0x208)]({'raw':!![]});})[_0x56d1f2(0x1f6)](function(_0x22517b){const _0xe8dc78=_0x56d1f2,_0x3be8f9=fs[_0xe8dc78(0x1b8)](path[_0xe8dc78(0x1ee)](config['root'],_0xe8dc78(0x206)),_0xe8dc78(0x1c2)),_0x5d5384=fs[_0xe8dc78(0x1b8)](path[_0xe8dc78(0x1ee)](config[_0xe8dc78(0x1e8)],_0xe8dc78(0x1c1)),_0xe8dc78(0x1c2)),_0xb7553c=ejs[_0xe8dc78(0x1ef)](_0x3be8f9,{'trunks':_0x22517b}),_0x4a93f9=ejs['render'](_0x5d5384,{'trunks':_0x22517b});return fs[_0xe8dc78(0x1d5)](_0xe8dc78(0x1e1),_0xb7553c),fs['writeFileSync']('/etc/asterisk/sip_xcally_registers.conf',_0x4a93f9),respondWithRpcPromise(_0xe8dc78(0x1bf),_0xe8dc78(0x1f3),{'module':_0xe8dc78(0x1be)});})[_0x56d1f2(0x1ba)](handleError(_0x2aa630,null));}; \ No newline at end of file diff --git a/server/api/trunk/trunk.model.js b/server/api/trunk/trunk.model.js index 3a4e22f..987819c 100644 --- a/server/api/trunk/trunk.model.js +++ b/server/api/trunk/trunk.model.js @@ -1 +1 @@ -const a644_0xa561=['./trunk.attributes','exports','Trunk','define'];(function(_0x3846a5,_0xa56113){const _0x5f57f5=function(_0x38911e){while(--_0x38911e){_0x3846a5['push'](_0x3846a5['shift']());}};_0x5f57f5(++_0xa56113);}(a644_0xa561,0x6b));const a644_0x5f57=function(_0x3846a5,_0xa56113){_0x3846a5=_0x3846a5-0x0;let _0x5f57f5=a644_0xa561[_0x3846a5];return _0x5f57f5;};const _0x5afbb3=a644_0x5f57;'use strict';const attributes=require(_0x5afbb3('0x1'));module[_0x5afbb3('0x2')]=function(_0x38911e){const _0x927d1e=_0x5afbb3,_0x285bf9=_0x38911e[_0x927d1e('0x0')](_0x927d1e('0x3'),attributes,{'tableName':'tools_trunks','paranoid':![],'indexes':[],'timestamps':!![]});return _0x285bf9;}; \ No newline at end of file +const a770_0x2c3d=['sequelize','function','exports','Trunk','./trunk.options','./trunk.attributes'];(function(_0x360a98,_0x5f3180){const _0x2c3db6=function(_0x4b49bd){while(--_0x4b49bd){_0x360a98['push'](_0x360a98['shift']());}};_0x2c3db6(++_0x5f3180);}(a770_0x2c3d,0xa2));const a770_0x4b49=function(_0x360a98,_0x5f3180){_0x360a98=_0x360a98-0xb9;let _0x2c3db6=a770_0x2c3d[_0x360a98];return _0x2c3db6;};const a770_0x46a2a8=a770_0x4b49;'use strict';const {Model}=require(a770_0x46a2a8(0xb9)),{attributes}=require(a770_0x46a2a8(0xbe)),{options}=require(a770_0x46a2a8(0xbd));class Trunk extends Model{}function init(_0x271929,_0x3fa42a){const _0x32d845=a770_0x46a2a8,_0x1ce4e9=options(_0x271929),_0x8a8ea3=typeof _0x3fa42a===_0x32d845(0xba)?_0x3fa42a(_0x1ce4e9):_0x1ce4e9;return Trunk['init'](attributes,_0x8a8ea3),Trunk;}module[a770_0x46a2a8(0xbb)][a770_0x46a2a8(0xbc)]=Trunk,module[a770_0x46a2a8(0xbb)]['init']=init; \ No newline at end of file diff --git a/server/api/trunk/trunk.options.js b/server/api/trunk/trunk.options.js new file mode 100644 index 0000000..19a4de3 --- /dev/null +++ b/server/api/trunk/trunk.options.js @@ -0,0 +1 @@ +var a771_0x202d=['tools_trunks','exports'];(function(_0x238c03,_0x329862){var _0x202d35=function(_0x727dfe){while(--_0x727dfe){_0x238c03['push'](_0x238c03['shift']());}};_0x202d35(++_0x329862);}(a771_0x202d,0x187));var a771_0x727d=function(_0x238c03,_0x329862){_0x238c03=_0x238c03-0xb8;var _0x202d35=a771_0x202d[_0x238c03];return _0x202d35;};var a771_0x1aec16=a771_0x727d;function options(_0x1be67f){var _0x1427e6=a771_0x727d;return{'sequelize':_0x1be67f,'tableName':_0x1427e6(0xb9),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a771_0x1aec16(0xb8)]['options']=options; \ No newline at end of file diff --git a/server/api/trunk/trunk.rpc.js b/server/api/trunk/trunk.rpc.js index 55c152a..2bf01d6 100644 --- a/server/api/trunk/trunk.rpc.js +++ b/server/api/trunk/trunk.rpc.js @@ -1 +1 @@ -const a645_0x100d=['../../config/logger','where','findOne','options','message','Trunk','ShowTrunk','stringify','model','then','info','raw','rpc','error','include','lodash','GetTrunk','attributes','limit','../../mysqldb','catch','map','debug'];(function(_0xf48364,_0x100d12){const _0x521303=function(_0x37c8c2){while(--_0x37c8c2){_0xf48364['push'](_0xf48364['shift']());}};_0x521303(++_0x100d12);}(a645_0x100d,0x11a));const a645_0x5213=function(_0xf48364,_0x100d12){_0xf48364=_0xf48364-0x0;let _0x521303=a645_0x100d[_0xf48364];return _0x521303;};const _0x60d8cf=a645_0x5213;'use strict';const _=require(_0x60d8cf('0x9')),db=require(_0x60d8cf('0xd'))['db'],logger=require(_0x60d8cf('0x11'))(_0x60d8cf('0x6'));exports[_0x60d8cf('0xa')]=function(_0x37c8c2){const _0xcf664=this;return new Promise(function(_0x38066a,_0xf45484){const _0x83072b=a645_0x5213;return db['Trunk']['findAll']({'raw':_0x37c8c2['options']?_0x37c8c2[_0x83072b('0x14')][_0x83072b('0x5')]===undefined?!![]:![]:!![],'where':_0x37c8c2[_0x83072b('0x14')]?_0x37c8c2[_0x83072b('0x14')][_0x83072b('0x12')]||null:null,'attributes':_0x37c8c2[_0x83072b('0x14')]?_0x37c8c2['options'][_0x83072b('0xb')]||null:null,'limit':_0x37c8c2[_0x83072b('0x14')]?_0x37c8c2['options'][_0x83072b('0xc')]||null:null,'include':_0x37c8c2[_0x83072b('0x14')]?_0x37c8c2[_0x83072b('0x14')]['include']?_[_0x83072b('0xf')](_0x37c8c2['options'][_0x83072b('0x8')],function(_0x640450){const _0x2321e9=_0x83072b;return{'model':db[_0x640450[_0x2321e9('0x2')]],'as':_0x640450['as'],'attributes':_0x640450[_0x2321e9('0xb')],'include':_0x640450[_0x2321e9('0x8')]?_[_0x2321e9('0xf')](_0x640450[_0x2321e9('0x8')],function(_0x24ced3){const _0x327411=_0x2321e9;return{'model':db[_0x24ced3[_0x327411('0x2')]],'as':_0x24ced3['as'],'attributes':_0x24ced3[_0x327411('0xb')],'include':_0x24ced3['include']?_[_0x327411('0xf')](_0x24ced3[_0x327411('0x8')],function(_0x2ed8f1){const _0x307c23=_0x327411;return{'model':db[_0x2ed8f1[_0x307c23('0x2')]],'as':_0x2ed8f1['as'],'attributes':_0x2ed8f1[_0x307c23('0xb')]};}):[]};}):[]};}):[]:[]})[_0x83072b('0x3')](function(_0x4b42b5){const _0x27d664=_0x83072b;logger[_0x27d664('0x4')](_0x27d664('0xa'),_0x37c8c2),logger[_0x27d664('0x10')]('GetTrunk',_0x37c8c2,JSON[_0x27d664('0x1')](_0x4b42b5)),_0x38066a(_0x4b42b5);})[_0x83072b('0xe')](function(_0x220d36){const _0x57cac3=_0x83072b;logger[_0x57cac3('0x7')]('GetTrunk',_0x220d36[_0x57cac3('0x15')],_0x37c8c2),_0xf45484(_0xcf664['error'](0x1f4,_0x220d36['message']));});});},exports[_0x60d8cf('0x0')]=function(_0x1a5d49){const _0x4d3900=this;return new Promise(function(_0x5cb6a1,_0x18bcaa){const _0x3213e9=a645_0x5213;return db[_0x3213e9('0x16')][_0x3213e9('0x13')]({'raw':_0x1a5d49[_0x3213e9('0x14')]?_0x1a5d49[_0x3213e9('0x14')][_0x3213e9('0x5')]===undefined?!![]:![]:!![],'where':_0x1a5d49['options']?_0x1a5d49[_0x3213e9('0x14')][_0x3213e9('0x12')]||null:null,'attributes':_0x1a5d49['options']?_0x1a5d49[_0x3213e9('0x14')]['attributes']||null:null,'include':_0x1a5d49[_0x3213e9('0x14')]?_0x1a5d49[_0x3213e9('0x14')][_0x3213e9('0x8')]?_[_0x3213e9('0xf')](_0x1a5d49[_0x3213e9('0x14')][_0x3213e9('0x8')],function(_0x2e1091){const _0x7dacee=_0x3213e9;return{'model':db[_0x2e1091[_0x7dacee('0x2')]],'as':_0x2e1091['as'],'attributes':_0x2e1091['attributes'],'include':_0x2e1091['include']?_[_0x7dacee('0xf')](_0x2e1091[_0x7dacee('0x8')],function(_0x171f96){const _0x331a9e=_0x7dacee;return{'model':db[_0x171f96[_0x331a9e('0x2')]],'as':_0x171f96['as'],'attributes':_0x171f96[_0x331a9e('0xb')],'include':_0x171f96[_0x331a9e('0x8')]?_[_0x331a9e('0xf')](_0x171f96['include'],function(_0x1adaf0){const _0x5dfc9e=_0x331a9e;return{'model':db[_0x1adaf0[_0x5dfc9e('0x2')]],'as':_0x1adaf0['as'],'attributes':_0x1adaf0['attributes']};}):[]};}):[]};}):[]:[]})[_0x3213e9('0x3')](function(_0x5b2d8e){const _0x4744b5=_0x3213e9;logger[_0x4744b5('0x4')]('ShowTrunk',_0x1a5d49),logger[_0x4744b5('0x10')](_0x4744b5('0x0'),_0x1a5d49,JSON[_0x4744b5('0x1')](_0x5b2d8e)),_0x5cb6a1(_0x5b2d8e);})[_0x3213e9('0xe')](function(_0x36a3e0){const _0x3e4405=_0x3213e9;logger[_0x3e4405('0x7')](_0x3e4405('0x0'),_0x36a3e0[_0x3e4405('0x15')],_0x1a5d49),_0x18bcaa(_0x4d3900[_0x3e4405('0x7')](0x1f4,_0x36a3e0[_0x3e4405('0x15')]));});});}; \ No newline at end of file +const a772_0x43e1=['info','GetTrunk','debug','map','catch','options','Trunk','message','findOne','../../config/logger','ShowTrunk','include','error','where','model','attributes','limit','stringify','raw','then','rpc','lodash','findAll'];(function(_0x3b34fd,_0x532548){const _0x43e12a=function(_0x1d4a99){while(--_0x1d4a99){_0x3b34fd['push'](_0x3b34fd['shift']());}};_0x43e12a(++_0x532548);}(a772_0x43e1,0x118));const a772_0x1d4a=function(_0x3b34fd,_0x532548){_0x3b34fd=_0x3b34fd-0x1a4;let _0x43e12a=a772_0x43e1[_0x3b34fd];return _0x43e12a;};const a772_0x4e8a96=a772_0x1d4a;'use strict';const _=require(a772_0x4e8a96(0x1b5)),db=require('../../mysqldb')['db'],logger=require(a772_0x4e8a96(0x1a9))(a772_0x4e8a96(0x1b4));exports['GetTrunk']=function(_0x12edfb){const _0x47a210=this;return new Promise(function(_0x491511,_0x2ac98d){const _0x2e7c25=a772_0x1d4a;return db[_0x2e7c25(0x1a6)][_0x2e7c25(0x1b6)]({'raw':_0x12edfb[_0x2e7c25(0x1a5)]?_0x12edfb['options'][_0x2e7c25(0x1b2)]===undefined?!![]:![]:!![],'where':_0x12edfb[_0x2e7c25(0x1a5)]?_0x12edfb[_0x2e7c25(0x1a5)][_0x2e7c25(0x1ad)]||null:null,'attributes':_0x12edfb[_0x2e7c25(0x1a5)]?_0x12edfb[_0x2e7c25(0x1a5)]['attributes']||null:null,'limit':_0x12edfb[_0x2e7c25(0x1a5)]?_0x12edfb[_0x2e7c25(0x1a5)][_0x2e7c25(0x1b0)]||null:null,'include':_0x12edfb['options']?_0x12edfb['options']['include']?_[_0x2e7c25(0x1ba)](_0x12edfb[_0x2e7c25(0x1a5)]['include'],function(_0x4f9efd){const _0x3a397b=_0x2e7c25;return{'model':db[_0x4f9efd[_0x3a397b(0x1ae)]],'as':_0x4f9efd['as'],'attributes':_0x4f9efd[_0x3a397b(0x1af)],'include':_0x4f9efd[_0x3a397b(0x1ab)]?_[_0x3a397b(0x1ba)](_0x4f9efd[_0x3a397b(0x1ab)],function(_0x99c904){const _0x319551=_0x3a397b;return{'model':db[_0x99c904[_0x319551(0x1ae)]],'as':_0x99c904['as'],'attributes':_0x99c904[_0x319551(0x1af)],'include':_0x99c904['include']?_[_0x319551(0x1ba)](_0x99c904[_0x319551(0x1ab)],function(_0x3d1965){const _0x49159e=_0x319551;return{'model':db[_0x3d1965[_0x49159e(0x1ae)]],'as':_0x3d1965['as'],'attributes':_0x3d1965[_0x49159e(0x1af)]};}):[]};}):[]};}):[]:[]})[_0x2e7c25(0x1b3)](function(_0x2a9a3c){const _0x5931c5=_0x2e7c25;logger[_0x5931c5(0x1b7)](_0x5931c5(0x1b8),_0x12edfb),logger[_0x5931c5(0x1b9)]('GetTrunk',_0x12edfb,JSON[_0x5931c5(0x1b1)](_0x2a9a3c)),_0x491511(_0x2a9a3c);})[_0x2e7c25(0x1a4)](function(_0x3e7ed6){const _0x16ca1e=_0x2e7c25;logger[_0x16ca1e(0x1ac)](_0x16ca1e(0x1b8),_0x3e7ed6[_0x16ca1e(0x1a7)],_0x12edfb),_0x2ac98d(_0x47a210['error'](0x1f4,_0x3e7ed6['message']));});});},exports['ShowTrunk']=function(_0x22a6ab){const _0x511b21=this;return new Promise(function(_0x4d7dd2,_0x2afa28){const _0x48414c=a772_0x1d4a;return db[_0x48414c(0x1a6)][_0x48414c(0x1a8)]({'raw':_0x22a6ab['options']?_0x22a6ab[_0x48414c(0x1a5)][_0x48414c(0x1b2)]===undefined?!![]:![]:!![],'where':_0x22a6ab[_0x48414c(0x1a5)]?_0x22a6ab['options'][_0x48414c(0x1ad)]||null:null,'attributes':_0x22a6ab[_0x48414c(0x1a5)]?_0x22a6ab[_0x48414c(0x1a5)]['attributes']||null:null,'include':_0x22a6ab[_0x48414c(0x1a5)]?_0x22a6ab['options'][_0x48414c(0x1ab)]?_[_0x48414c(0x1ba)](_0x22a6ab[_0x48414c(0x1a5)][_0x48414c(0x1ab)],function(_0x30b6aa){const _0x12370a=_0x48414c;return{'model':db[_0x30b6aa['model']],'as':_0x30b6aa['as'],'attributes':_0x30b6aa[_0x12370a(0x1af)],'include':_0x30b6aa['include']?_['map'](_0x30b6aa['include'],function(_0x29fb44){const _0xb28587=_0x12370a;return{'model':db[_0x29fb44[_0xb28587(0x1ae)]],'as':_0x29fb44['as'],'attributes':_0x29fb44[_0xb28587(0x1af)],'include':_0x29fb44['include']?_['map'](_0x29fb44['include'],function(_0x59a66f){const _0x58cb65=_0xb28587;return{'model':db[_0x59a66f['model']],'as':_0x59a66f['as'],'attributes':_0x59a66f[_0x58cb65(0x1af)]};}):[]};}):[]};}):[]:[]})[_0x48414c(0x1b3)](function(_0x47d0d3){const _0x1228f3=_0x48414c;logger[_0x1228f3(0x1b7)](_0x1228f3(0x1aa),_0x22a6ab),logger['debug'](_0x1228f3(0x1aa),_0x22a6ab,JSON[_0x1228f3(0x1b1)](_0x47d0d3)),_0x4d7dd2(_0x47d0d3);})[_0x48414c(0x1a4)](function(_0x3eec98){const _0x712cd4=_0x48414c;logger[_0x712cd4(0x1ac)](_0x712cd4(0x1aa),_0x3eec98[_0x712cd4(0x1a7)],_0x22a6ab),_0x2afa28(_0x511b21[_0x712cd4(0x1ac)](0x1f4,_0x3eec98[_0x712cd4(0x1a7)]));});});}; \ No newline at end of file diff --git a/server/api/user/index.js b/server/api/user/index.js index 92fbed4..fc622d1 100644 --- a/server/api/user/index.js +++ b/server/api/user/index.js @@ -1 +1 @@ -const a646_0x4bd6=['removeChatInteractions','/:id/queues_rt','addMailInteractions','/:id/sms_accounts','/:id/whatsapp_interactions','pause','getFaxAccounts','getFaxInteractions','/:id/api_key','getApiKey','/:id/scheduled_calls','isAuthenticated','removeFaxInteractions','root','addWhatsappInteractions','getContacts','/:id/logout','removeMailInteractions','removeTeams','join','getWhatsappAccounts','addOpenchannelAccounts','/:id/queues','getMailInteractions','unpause','/:id/openchannel_accounts','getLists','index','addAvatar','/:id/whatsapp/interactions','get','/:id/mail_interactions','/create_many','getOpenchannelAccounts','originalname','/:id/unpause','now','show','addFaxAccounts','put','/whoami','create','removeMailAccounts','delete','removeOpenchannelAccounts','getSquareProjects','removeSmsAccounts','destroy','../../config/environment','post','/:id/sms/interactions','removeQueues','/:id/openchannel_interactions','path','removeOpenchannelInteractions','Router','exports','getSmsInteractions','/:id/chat_interactions','whoami','/:id/fax_accounts','single','addMailAccounts','%s-%s','removeSquareProjects','/:id/prefixes','express','/:id/groups','removeWhatsappAccounts','files/images/','/:id/contacts','diskStorage','getSmsAccounts','util','addOpenchannelInteractions','addSmsInteractions','./user.controller','removeApiKey','/:id/screen_recordings','/:id/teams','getVoicePrefixes','/:id/sms_interactions','/:id/fax_interactions','/:id','getOpenchannelInteractions','/:id/password','removeSmsInteractions','/:id/agents','/:id/mail/interactions','/:id/openchannel/interactions','getMailAccounts','removeChatWebsites','getAgents','getWhatsappInteractions','/:id/whatsapp_accounts','removeWhatsappInteractions','format','/:id/mail_accounts','getScreenRecordings','multer','/:id/fax/interactions','login','getVoiceQueuesRt','/:id/square_projects','addContacts','createApiKey'];(function(_0x3bd912,_0x4bd61a){const _0x1729de=function(_0x28b431){while(--_0x28b431){_0x3bd912['push'](_0x3bd912['shift']());}};_0x1729de(++_0x4bd61a);}(a646_0x4bd6,0xef));const a646_0x1729=function(_0x3bd912,_0x4bd61a){_0x3bd912=_0x3bd912-0x0;let _0x1729de=a646_0x4bd6[_0x3bd912];return _0x1729de;};const _0x55d2bf=a646_0x1729;'use strict';const multer=require(_0x55d2bf('0x48')),util=require(_0x55d2bf('0x2e')),path=require(_0x55d2bf('0x1a')),express=require(_0x55d2bf('0x27')),router=express[_0x55d2bf('0x1c')](),auth=require('../../components/auth/service'),config=require(_0x55d2bf('0x15')),controller=require(_0x55d2bf('0x31'));router['get']('/',auth[_0x55d2bf('0x5a')](),controller[_0x55d2bf('0x0')]),router[_0x55d2bf('0x3')]('/describe',auth[_0x55d2bf('0x5a')](),controller['describe']),router[_0x55d2bf('0x3')](_0x55d2bf('0xd'),auth[_0x55d2bf('0x5a')](),controller[_0x55d2bf('0x20')]),router[_0x55d2bf('0x3')](_0x55d2bf('0x38'),auth[_0x55d2bf('0x5a')](),controller[_0x55d2bf('0xa')]),router[_0x55d2bf('0x3')]('/:id/avatar',controller['getAvatar']),router[_0x55d2bf('0x3')](_0x55d2bf('0x2b'),auth[_0x55d2bf('0x5a')](),controller[_0x55d2bf('0x5e')]),router['get'](_0x55d2bf('0x65'),auth[_0x55d2bf('0x5a')](),controller['getQueues']),router['get'](_0x55d2bf('0x50'),auth['isAuthenticated'](),controller[_0x55d2bf('0x4b')]),router[_0x55d2bf('0x3')](_0x55d2bf('0x28'),auth[_0x55d2bf('0x5a')](),controller['getGroups']),router[_0x55d2bf('0x3')]('/:id/recordings',auth[_0x55d2bf('0x5a')](),controller['getRecordings']),router[_0x55d2bf('0x3')](_0x55d2bf('0x33'),auth[_0x55d2bf('0x5a')](),controller[_0x55d2bf('0x47')]),router[_0x55d2bf('0x3')]('/:id/chat/interactions',auth['isAuthenticated'](),controller['getChatInteractions']),router[_0x55d2bf('0x3')](_0x55d2bf('0x3e'),auth[_0x55d2bf('0x5a')](),controller[_0x55d2bf('0x39')]),router[_0x55d2bf('0x3')](_0x55d2bf('0x3d'),auth[_0x55d2bf('0x5a')](),controller[_0x55d2bf('0x66')]),router[_0x55d2bf('0x3')](_0x55d2bf('0x17'),auth['isAuthenticated'](),controller[_0x55d2bf('0x1e')]),router[_0x55d2bf('0x3')](_0x55d2bf('0x49'),auth[_0x55d2bf('0x5a')](),controller[_0x55d2bf('0x56')]),router['get'](_0x55d2bf('0x2'),auth['isAuthenticated'](),controller[_0x55d2bf('0x42')]),router[_0x55d2bf('0x3')](_0x55d2bf('0x34'),auth[_0x55d2bf('0x5a')](),controller['getTeams']),router[_0x55d2bf('0x3')]('/:id/lists',auth[_0x55d2bf('0x5a')](),controller[_0x55d2bf('0x69')]),router[_0x55d2bf('0x3')](_0x55d2bf('0x3c'),auth['isAuthenticated'](),controller[_0x55d2bf('0x41')]),router['get'](_0x55d2bf('0x26'),auth['isAuthenticated'](),controller[_0x55d2bf('0x35')]),router['get'](_0x55d2bf('0x21'),auth['isAuthenticated'](),controller[_0x55d2bf('0x55')]),router[_0x55d2bf('0x3')](_0x55d2bf('0x46'),auth[_0x55d2bf('0x5a')](),controller[_0x55d2bf('0x3f')]),router[_0x55d2bf('0x3')]('/:id/openchannel_accounts',auth[_0x55d2bf('0x5a')](),controller[_0x55d2bf('0x6')]),router[_0x55d2bf('0x3')](_0x55d2bf('0x52'),auth[_0x55d2bf('0x5a')](),controller[_0x55d2bf('0x2d')]),router[_0x55d2bf('0x3')]('/:id/chat_websites',auth[_0x55d2bf('0x5a')](),controller['getChatWebsites']),router[_0x55d2bf('0x3')]('/:id/whatsapp_accounts',auth[_0x55d2bf('0x5a')](),controller[_0x55d2bf('0x63')]),router[_0x55d2bf('0x3')](_0x55d2bf('0x4c'),auth[_0x55d2bf('0x5a')](),controller[_0x55d2bf('0x12')]),router[_0x55d2bf('0x3')](_0x55d2bf('0x59'),auth[_0x55d2bf('0x5a')](),controller['getScheduledCalls']),router['get'](_0x55d2bf('0x57'),auth[_0x55d2bf('0x5a')](),controller[_0x55d2bf('0x58')]),router['post']('/:id/contacts',auth[_0x55d2bf('0x5a')](),controller[_0x55d2bf('0x4d')]),router['post']('/',auth['isAuthenticated'](),controller[_0x55d2bf('0xe')]),router[_0x55d2bf('0x16')](_0x55d2bf('0x5'),auth[_0x55d2bf('0x5a')](),controller['bulkCreate']),router[_0x55d2bf('0x16')]('/:id/queues',auth[_0x55d2bf('0x5a')](),controller['addQueues']);const upload=multer({'storage':multer[_0x55d2bf('0x2c')]({'destination':function(_0x28b431,_0x4a793c,_0x543c02){const _0x2f14e7=_0x55d2bf;_0x543c02(null,path[_0x2f14e7('0x62')](config[_0x2f14e7('0x5c')],_0x2f14e7('0x2a')));},'filename':function(_0x5b115b,_0x52d111,_0x24b548){const _0x3975ce=_0x55d2bf;_0x24b548(null,util[_0x3975ce('0x45')](_0x3975ce('0x24'),Date[_0x3975ce('0x9')](),_0x52d111[_0x3975ce('0x7')]));}})});router[_0x55d2bf('0x16')]('/:id/avatar',upload[_0x55d2bf('0x22')]('file'),controller[_0x55d2bf('0x1')]),router['post']('/:id/login',auth[_0x55d2bf('0x5a')](),controller[_0x55d2bf('0x4a')]),router['post'](_0x55d2bf('0x5f'),auth[_0x55d2bf('0x5a')](),controller['logout']),router[_0x55d2bf('0x16')]('/:id/pause',auth['isAuthenticated'](),controller[_0x55d2bf('0x54')]),router[_0x55d2bf('0x16')](_0x55d2bf('0x8'),auth['isAuthenticated'](),controller[_0x55d2bf('0x67')]),router[_0x55d2bf('0x16')](_0x55d2bf('0x34'),auth[_0x55d2bf('0x5a')](),controller['addTeams']),router[_0x55d2bf('0x16')]('/:id/chat_interactions',auth[_0x55d2bf('0x5a')](),controller['addChatInteractions']),router[_0x55d2bf('0x16')](_0x55d2bf('0x4'),auth[_0x55d2bf('0x5a')](),controller[_0x55d2bf('0x51')]),router['post'](_0x55d2bf('0x37'),auth['isAuthenticated'](),controller['addFaxInteractions']),router[_0x55d2bf('0x16')]('/:id/sms_interactions',auth['isAuthenticated'](),controller[_0x55d2bf('0x30')]),router[_0x55d2bf('0x16')](_0x55d2bf('0x19'),auth[_0x55d2bf('0x5a')](),controller[_0x55d2bf('0x2f')]),router[_0x55d2bf('0x16')](_0x55d2bf('0x53'),auth['isAuthenticated'](),controller[_0x55d2bf('0x5d')]),router['post'](_0x55d2bf('0x21'),auth[_0x55d2bf('0x5a')](),controller[_0x55d2bf('0xb')]),router[_0x55d2bf('0x16')](_0x55d2bf('0x46'),auth[_0x55d2bf('0x5a')](),controller[_0x55d2bf('0x23')]),router[_0x55d2bf('0x16')](_0x55d2bf('0x68'),auth[_0x55d2bf('0x5a')](),controller[_0x55d2bf('0x64')]),router[_0x55d2bf('0x16')](_0x55d2bf('0x52'),auth[_0x55d2bf('0x5a')](),controller['addSmsAccounts']),router['post']('/:id/chat_websites',auth['isAuthenticated'](),controller['addChatWebsites']),router[_0x55d2bf('0x16')]('/:id/whatsapp_accounts',auth[_0x55d2bf('0x5a')](),controller['addWhatsappAccounts']),router[_0x55d2bf('0x16')](_0x55d2bf('0x4c'),auth[_0x55d2bf('0x5a')](),controller['addSquareProjects']),router[_0x55d2bf('0x16')](_0x55d2bf('0x57'),auth[_0x55d2bf('0x5a')](),controller[_0x55d2bf('0x4e')]),router[_0x55d2bf('0xc')](_0x55d2bf('0x38'),auth['isAuthenticated'](),controller['update']),router['put'](_0x55d2bf('0x3a'),auth[_0x55d2bf('0x5a')](),controller['changePassword']),router['delete'](_0x55d2bf('0x65'),auth[_0x55d2bf('0x5a')](),controller[_0x55d2bf('0x18')]),router[_0x55d2bf('0x10')](_0x55d2bf('0x34'),auth[_0x55d2bf('0x5a')](),controller[_0x55d2bf('0x61')]),router[_0x55d2bf('0x10')](_0x55d2bf('0x38'),auth[_0x55d2bf('0x5a')](),controller[_0x55d2bf('0x14')]),router[_0x55d2bf('0x10')](_0x55d2bf('0x1f'),auth[_0x55d2bf('0x5a')](),controller[_0x55d2bf('0x4f')]),router['delete'](_0x55d2bf('0x4'),auth[_0x55d2bf('0x5a')](),controller[_0x55d2bf('0x60')]),router['delete'](_0x55d2bf('0x37'),auth[_0x55d2bf('0x5a')](),controller[_0x55d2bf('0x5b')]),router[_0x55d2bf('0x10')](_0x55d2bf('0x36'),auth[_0x55d2bf('0x5a')](),controller[_0x55d2bf('0x3b')]),router[_0x55d2bf('0x10')](_0x55d2bf('0x19'),auth[_0x55d2bf('0x5a')](),controller[_0x55d2bf('0x1b')]),router['delete']('/:id/whatsapp_interactions',auth[_0x55d2bf('0x5a')](),controller[_0x55d2bf('0x44')]),router[_0x55d2bf('0x10')](_0x55d2bf('0x21'),auth['isAuthenticated'](),controller['removeFaxAccounts']),router[_0x55d2bf('0x10')](_0x55d2bf('0x46'),auth[_0x55d2bf('0x5a')](),controller[_0x55d2bf('0xf')]),router[_0x55d2bf('0x10')](_0x55d2bf('0x68'),auth['isAuthenticated'](),controller[_0x55d2bf('0x11')]),router['delete'](_0x55d2bf('0x52'),auth['isAuthenticated'](),controller[_0x55d2bf('0x13')]),router[_0x55d2bf('0x10')]('/:id/chat_websites',auth[_0x55d2bf('0x5a')](),controller[_0x55d2bf('0x40')]),router[_0x55d2bf('0x10')](_0x55d2bf('0x43'),auth[_0x55d2bf('0x5a')](),controller[_0x55d2bf('0x29')]),router[_0x55d2bf('0x10')](_0x55d2bf('0x4c'),auth[_0x55d2bf('0x5a')](),controller[_0x55d2bf('0x25')]),router[_0x55d2bf('0x10')](_0x55d2bf('0x57'),auth[_0x55d2bf('0x5a')](),controller[_0x55d2bf('0x32')]),module[_0x55d2bf('0x1d')]=router; \ No newline at end of file +const a773_0x2671=['create','removeFaxAccounts','getTeams','removeSmsInteractions','/:id/chat_websites','getAvatar','getLists','getScreenRecordings','/:id/sms/interactions','path','getQueues','show','index','getOpenchannelInteractions','/:id/contacts','/:id/recordings','getMailInteractions','/:id/teams','express','removeApiKey','get','login','/:id/mail_interactions','addMailInteractions','now','update','getChatInteractions','addTeams','/:id/password','/:id/fax/interactions','getOpenchannelAccounts','addFaxAccounts','addChatWebsites','/:id/scheduled_calls','addSquareProjects','/:id/pause','/:id/logout','/:id/unpause','getChatWebsites','Router','/:id/queues_rt','/:id/api_key','getMailAccounts','/:id/agents','/:id/mail_accounts','removeWhatsappInteractions','/:id/openchannel/interactions','addQueues','removeMailAccounts','originalname','getFaxInteractions','removeChatWebsites','/:id/openchannel_accounts','/:id/sms_accounts','/:id/screen_recordings','/whoami','/:id/chat/interactions','/:id/whatsapp_accounts','removeMailInteractions','put','/:id/sms_interactions','isAuthenticated','/create_many','join','../../components/auth/service','createApiKey','pause','addContacts','addAvatar','describe','addMailAccounts','/:id/queues','/:id/openchannel_interactions','../../config/environment','/:id','diskStorage','/:id/prefixes','/:id/lists','removeSquareProjects','getFaxAccounts','changePassword','/:id/avatar','post','root','multer','addSmsAccounts','addWhatsappAccounts','delete','getVoicePrefixes','removeChatInteractions','getAgents','whoami','./user.controller','getGroups','/:id/square_projects','getSmsInteractions','util','addFaxInteractions','getWhatsappAccounts','destroy','/:id/fax_accounts','/:id/whatsapp_interactions'];(function(_0x2057a5,_0x11bb15){const _0x2671f6=function(_0x497cfd){while(--_0x497cfd){_0x2057a5['push'](_0x2057a5['shift']());}};_0x2671f6(++_0x11bb15);}(a773_0x2671,0x1ca));const a773_0x497c=function(_0x2057a5,_0x11bb15){_0x2057a5=_0x2057a5-0x1e9;let _0x2671f6=a773_0x2671[_0x2057a5];return _0x2671f6;};const a773_0x3f2cce=a773_0x497c;'use strict';const multer=require(a773_0x3f2cce(0x20b)),util=require(a773_0x3f2cce(0x217)),path=require(a773_0x3f2cce(0x226)),express=require(a773_0x3f2cce(0x22f)),router=express[a773_0x3f2cce(0x244)](),auth=require(a773_0x3f2cce(0x1f7)),config=require(a773_0x3f2cce(0x200)),controller=require(a773_0x3f2cce(0x213)),upload=multer({'storage':multer[a773_0x3f2cce(0x202)]({'destination':function(_0x326efd,_0x1bb353,_0x185638){const _0x2ce4e7=a773_0x3f2cce;_0x185638(null,path[_0x2ce4e7(0x1f6)](config[_0x2ce4e7(0x20a)],'files/images/'));},'filename':function(_0x55712a,_0x1be7d0,_0x3cbabe){const _0x50cea0=a773_0x3f2cce;_0x3cbabe(null,util['format']('%s-%s',Date[_0x50cea0(0x235)](),_0x1be7d0[_0x50cea0(0x24e)]));}})});router[a773_0x3f2cce(0x231)]('/',auth['isAuthenticated'](),controller[a773_0x3f2cce(0x229)]),router[a773_0x3f2cce(0x231)]('/describe',auth[a773_0x3f2cce(0x1f4)](),controller[a773_0x3f2cce(0x1fc)]),router[a773_0x3f2cce(0x231)](a773_0x3f2cce(0x1ee),auth[a773_0x3f2cce(0x1f4)](),controller[a773_0x3f2cce(0x212)]),router[a773_0x3f2cce(0x231)](a773_0x3f2cce(0x201),auth[a773_0x3f2cce(0x1f4)](),controller[a773_0x3f2cce(0x228)]),router[a773_0x3f2cce(0x231)](a773_0x3f2cce(0x208),controller[a773_0x3f2cce(0x222)]),router[a773_0x3f2cce(0x231)](a773_0x3f2cce(0x22b),auth[a773_0x3f2cce(0x1f4)](),controller['getContacts']),router[a773_0x3f2cce(0x231)](a773_0x3f2cce(0x1fe),auth[a773_0x3f2cce(0x1f4)](),controller[a773_0x3f2cce(0x227)]),router[a773_0x3f2cce(0x231)](a773_0x3f2cce(0x245),auth[a773_0x3f2cce(0x1f4)](),controller['getVoiceQueuesRt']),router[a773_0x3f2cce(0x231)]('/:id/groups',auth[a773_0x3f2cce(0x1f4)](),controller[a773_0x3f2cce(0x214)]),router[a773_0x3f2cce(0x231)](a773_0x3f2cce(0x22c),auth[a773_0x3f2cce(0x1f4)](),controller['getRecordings']),router['get'](a773_0x3f2cce(0x1ed),auth['isAuthenticated'](),controller[a773_0x3f2cce(0x224)]),router[a773_0x3f2cce(0x231)](a773_0x3f2cce(0x1ef),auth[a773_0x3f2cce(0x1f4)](),controller[a773_0x3f2cce(0x237)]),router[a773_0x3f2cce(0x231)](a773_0x3f2cce(0x24b),auth['isAuthenticated'](),controller[a773_0x3f2cce(0x22a)]),router['get']('/:id/mail/interactions',auth[a773_0x3f2cce(0x1f4)](),controller[a773_0x3f2cce(0x22d)]),router[a773_0x3f2cce(0x231)](a773_0x3f2cce(0x225),auth[a773_0x3f2cce(0x1f4)](),controller[a773_0x3f2cce(0x216)]),router[a773_0x3f2cce(0x231)](a773_0x3f2cce(0x23a),auth[a773_0x3f2cce(0x1f4)](),controller[a773_0x3f2cce(0x1e9)]),router[a773_0x3f2cce(0x231)]('/:id/whatsapp/interactions',auth['isAuthenticated'](),controller['getWhatsappInteractions']),router[a773_0x3f2cce(0x231)](a773_0x3f2cce(0x22e),auth[a773_0x3f2cce(0x1f4)](),controller[a773_0x3f2cce(0x21f)]),router['get'](a773_0x3f2cce(0x204),auth[a773_0x3f2cce(0x1f4)](),controller[a773_0x3f2cce(0x223)]),router[a773_0x3f2cce(0x231)](a773_0x3f2cce(0x248),auth[a773_0x3f2cce(0x1f4)](),controller[a773_0x3f2cce(0x211)]),router[a773_0x3f2cce(0x231)](a773_0x3f2cce(0x203),auth[a773_0x3f2cce(0x1f4)](),controller[a773_0x3f2cce(0x20f)]),router[a773_0x3f2cce(0x231)]('/:id/fax_accounts',auth['isAuthenticated'](),controller[a773_0x3f2cce(0x206)]),router[a773_0x3f2cce(0x231)](a773_0x3f2cce(0x249),auth[a773_0x3f2cce(0x1f4)](),controller[a773_0x3f2cce(0x247)]),router['get']('/:id/openchannel_accounts',auth[a773_0x3f2cce(0x1f4)](),controller[a773_0x3f2cce(0x23b)]),router[a773_0x3f2cce(0x231)](a773_0x3f2cce(0x1ec),auth[a773_0x3f2cce(0x1f4)](),controller['getSmsAccounts']),router[a773_0x3f2cce(0x231)]('/:id/chat_websites',auth[a773_0x3f2cce(0x1f4)](),controller[a773_0x3f2cce(0x243)]),router[a773_0x3f2cce(0x231)](a773_0x3f2cce(0x1f0),auth['isAuthenticated'](),controller[a773_0x3f2cce(0x219)]),router['get'](a773_0x3f2cce(0x215),auth['isAuthenticated'](),controller['getSquareProjects']),router['get'](a773_0x3f2cce(0x23e),auth[a773_0x3f2cce(0x1f4)](),controller['getScheduledCalls']),router['get'](a773_0x3f2cce(0x246),auth['isAuthenticated'](),controller['getApiKey']),router['post'](a773_0x3f2cce(0x22b),auth[a773_0x3f2cce(0x1f4)](),controller[a773_0x3f2cce(0x1fa)]),router['post']('/',auth[a773_0x3f2cce(0x1f4)](),controller[a773_0x3f2cce(0x21d)]),router[a773_0x3f2cce(0x209)](a773_0x3f2cce(0x1f5),auth['isAuthenticated'](),controller['bulkCreate']),router['post'](a773_0x3f2cce(0x1fe),auth[a773_0x3f2cce(0x1f4)](),controller[a773_0x3f2cce(0x24c)]),router[a773_0x3f2cce(0x209)](a773_0x3f2cce(0x208),upload['single']('file'),controller[a773_0x3f2cce(0x1fb)]),router['post']('/:id/login',auth[a773_0x3f2cce(0x1f4)](),controller[a773_0x3f2cce(0x232)]),router['post'](a773_0x3f2cce(0x241),auth[a773_0x3f2cce(0x1f4)](),controller['logout']),router[a773_0x3f2cce(0x209)](a773_0x3f2cce(0x240),auth[a773_0x3f2cce(0x1f4)](),controller[a773_0x3f2cce(0x1f9)]),router['post'](a773_0x3f2cce(0x242),auth[a773_0x3f2cce(0x1f4)](),controller['unpause']),router[a773_0x3f2cce(0x209)](a773_0x3f2cce(0x22e),auth[a773_0x3f2cce(0x1f4)](),controller[a773_0x3f2cce(0x238)]),router[a773_0x3f2cce(0x209)]('/:id/chat_interactions',auth[a773_0x3f2cce(0x1f4)](),controller['addChatInteractions']),router[a773_0x3f2cce(0x209)](a773_0x3f2cce(0x233),auth[a773_0x3f2cce(0x1f4)](),controller[a773_0x3f2cce(0x234)]),router[a773_0x3f2cce(0x209)]('/:id/fax_interactions',auth[a773_0x3f2cce(0x1f4)](),controller[a773_0x3f2cce(0x218)]),router['post'](a773_0x3f2cce(0x1f3),auth[a773_0x3f2cce(0x1f4)](),controller['addSmsInteractions']),router['post'](a773_0x3f2cce(0x1ff),auth[a773_0x3f2cce(0x1f4)](),controller['addOpenchannelInteractions']),router[a773_0x3f2cce(0x209)]('/:id/whatsapp_interactions',auth[a773_0x3f2cce(0x1f4)](),controller['addWhatsappInteractions']),router[a773_0x3f2cce(0x209)](a773_0x3f2cce(0x21b),auth[a773_0x3f2cce(0x1f4)](),controller[a773_0x3f2cce(0x23c)]),router['post']('/:id/mail_accounts',auth[a773_0x3f2cce(0x1f4)](),controller[a773_0x3f2cce(0x1fd)]),router[a773_0x3f2cce(0x209)](a773_0x3f2cce(0x1eb),auth[a773_0x3f2cce(0x1f4)](),controller['addOpenchannelAccounts']),router[a773_0x3f2cce(0x209)](a773_0x3f2cce(0x1ec),auth[a773_0x3f2cce(0x1f4)](),controller[a773_0x3f2cce(0x20c)]),router['post'](a773_0x3f2cce(0x221),auth[a773_0x3f2cce(0x1f4)](),controller[a773_0x3f2cce(0x23d)]),router[a773_0x3f2cce(0x209)](a773_0x3f2cce(0x1f0),auth['isAuthenticated'](),controller[a773_0x3f2cce(0x20d)]),router[a773_0x3f2cce(0x209)](a773_0x3f2cce(0x215),auth[a773_0x3f2cce(0x1f4)](),controller[a773_0x3f2cce(0x23f)]),router['post']('/:id/api_key',auth[a773_0x3f2cce(0x1f4)](),controller[a773_0x3f2cce(0x1f8)]),router[a773_0x3f2cce(0x1f2)](a773_0x3f2cce(0x201),auth[a773_0x3f2cce(0x1f4)](),controller[a773_0x3f2cce(0x236)]),router[a773_0x3f2cce(0x1f2)](a773_0x3f2cce(0x239),auth[a773_0x3f2cce(0x1f4)](),controller[a773_0x3f2cce(0x207)]),router[a773_0x3f2cce(0x20e)](a773_0x3f2cce(0x1fe),auth[a773_0x3f2cce(0x1f4)](),controller['removeQueues']),router['delete']('/:id/teams',auth['isAuthenticated'](),controller['removeTeams']),router[a773_0x3f2cce(0x20e)](a773_0x3f2cce(0x201),auth['isAuthenticated'](),controller[a773_0x3f2cce(0x21a)]),router[a773_0x3f2cce(0x20e)]('/:id/chat_interactions',auth[a773_0x3f2cce(0x1f4)](),controller[a773_0x3f2cce(0x210)]),router['delete']('/:id/mail_interactions',auth['isAuthenticated'](),controller[a773_0x3f2cce(0x1f1)]),router[a773_0x3f2cce(0x20e)]('/:id/fax_interactions',auth[a773_0x3f2cce(0x1f4)](),controller['removeFaxInteractions']),router[a773_0x3f2cce(0x20e)](a773_0x3f2cce(0x1f3),auth[a773_0x3f2cce(0x1f4)](),controller[a773_0x3f2cce(0x220)]),router[a773_0x3f2cce(0x20e)](a773_0x3f2cce(0x1ff),auth[a773_0x3f2cce(0x1f4)](),controller['removeOpenchannelInteractions']),router['delete'](a773_0x3f2cce(0x21c),auth['isAuthenticated'](),controller[a773_0x3f2cce(0x24a)]),router[a773_0x3f2cce(0x20e)](a773_0x3f2cce(0x21b),auth[a773_0x3f2cce(0x1f4)](),controller[a773_0x3f2cce(0x21e)]),router['delete'](a773_0x3f2cce(0x249),auth[a773_0x3f2cce(0x1f4)](),controller[a773_0x3f2cce(0x24d)]),router[a773_0x3f2cce(0x20e)](a773_0x3f2cce(0x1eb),auth['isAuthenticated'](),controller['removeOpenchannelAccounts']),router[a773_0x3f2cce(0x20e)](a773_0x3f2cce(0x1ec),auth[a773_0x3f2cce(0x1f4)](),controller['removeSmsAccounts']),router[a773_0x3f2cce(0x20e)](a773_0x3f2cce(0x221),auth['isAuthenticated'](),controller[a773_0x3f2cce(0x1ea)]),router[a773_0x3f2cce(0x20e)]('/:id/whatsapp_accounts',auth[a773_0x3f2cce(0x1f4)](),controller['removeWhatsappAccounts']),router[a773_0x3f2cce(0x20e)](a773_0x3f2cce(0x215),auth[a773_0x3f2cce(0x1f4)](),controller[a773_0x3f2cce(0x205)]),router[a773_0x3f2cce(0x20e)](a773_0x3f2cce(0x246),auth['isAuthenticated'](),controller[a773_0x3f2cce(0x230)]),module['exports']=router; \ No newline at end of file diff --git a/server/api/user/user.attributes.js b/server/api/user/user.attributes.js index f117e40..9ad9fe8 100644 --- a/server/api/user/user.attributes.js +++ b/server/api/user/user.attributes.js @@ -1 +1 @@ -const a647_0x583c=['lodash','originate','uas','user','dtlssetup','refuse','transport','nonat','BOOLEAN','PROHIB','inband','allow','email','friend','ALLOWED_NOT_SCREENED','DEFAULT\x20PAUSE','insecure','split','String\x20is\x20deprecated.\x20Please\x20use\x20an\x20Array\x20as\x20[\x22force_rport\x22,\x20\x22comedia\x22]','PROHIB_FAILED_SCREEN','PROHIB_NOT_SCREENED','icesupport','loginAttempts','DATE','TEXT','The\x20name\x20of\x20the\x20user','/etc/pki/tls/certs/motion.crt','join','telephone','uac','ALLOWED','dtlscertfile','always','screenrecording','get','\x22%s\x22\x20<%s>','ENUM','update,nonat','avpf','showWebBar','fullname','agent','from-sip','update','moment','isArray','yes','true','callerid','auto','udp','encryption','force_rport,comedia','blockedAt','sequelize','setDataValue','exports','string','local','getDataValue','ALLOWED_PASSED_SCREEN','dtlsprivatekey','dtlsenable','accountcode','passive','rtcp_mux','STRING','wss','name','format','false','\x22\x22\x20<>','info','never','active','accept','toLowerCase','rfc2833','fingerprint','internal','blocked','dynamic','nat','shortinfo','permissions','dtlsverify','/etc/pki/tls/private/motion.key','String\x20is\x20deprecated.\x20Please\x20use\x20an\x20Array\x20as\x20[\x22ulaw\x22,\x20\x22alaw\x22,\x20\x22gsm\x22]','peer','INTEGER','defaultuser'];(function(_0x369286,_0x583c5c){const _0x1bc84b=function(_0x4f4377){while(--_0x4f4377){_0x369286['push'](_0x369286['shift']());}};_0x1bc84b(++_0x583c5c);}(a647_0x583c,0x165));const a647_0x1bc8=function(_0x369286,_0x583c5c){_0x369286=_0x369286-0x0;let _0x1bc84b=a647_0x583c[_0x369286];return _0x1bc84b;};const _0x40225a=a647_0x1bc8;'use strict';const Sequelize=require(_0x40225a('0x3d')),moment=require(_0x40225a('0x33')),util=require('util'),_=require(_0x40225a('0x7'));module[_0x40225a('0x3f')]={'name':{'type':Sequelize['STRING'],'allowNull':![],'unique':'name','validate':{'notEmpty':!![],'is':/^[A-Za-z0-9._]+$/i},'set':function(_0x4f4377){const _0x41db28=_0x40225a;this[_0x41db28('0x3e')](_0x41db28('0x4b'),_0x4f4377),this[_0x41db28('0x3e')](_0x41db28('0x6'),_0x4f4377);},'comment':_0x40225a('0x20')},'fullname':{'type':Sequelize[_0x40225a('0x49')],'allowNull':![],'set':function(_0x492a2c){const _0x19f32b=_0x40225a;this[_0x19f32b('0x3e')](_0x19f32b('0x2f'),_0x492a2c),this[_0x19f32b('0x3e')](_0x19f32b('0x37'),util[_0x19f32b('0x4c')]('\x22%s\x22\x20<%s>',_0x492a2c,this['getDataValue']('internal')));}},'alias':{'type':Sequelize[_0x40225a('0x49')]},'email':{'type':Sequelize[_0x40225a('0x49')],'allowNull':![],'unique':_0x40225a('0x13'),'validate':{'isEmail':!![]},'set':function(_0x40bec9){const _0x29b677=_0x40225a;_0x40bec9&&this['setDataValue']('email',_0x40bec9[_0x29b677('0x53')]());}},'role':{'type':Sequelize[_0x40225a('0x2b')]('admin',_0x40225a('0xa'),_0x40225a('0x30'),_0x40225a('0x23')),'allowNull':![]},'password':{'type':Sequelize[_0x40225a('0x49')],'allowNull':![],'validate':{'notEmpty':!![]}},'provider':{'type':Sequelize[_0x40225a('0x49')],'defaultValue':_0x40225a('0x41')},'internal':{'type':Sequelize['INTEGER'](0xb),'allowNull':![],'unique':_0x40225a('0x56'),'set':function(_0x27f8fb){const _0x5abe40=_0x40225a;this[_0x5abe40('0x3e')](_0x5abe40('0x56'),_0x27f8fb),this[_0x5abe40('0x3e')](_0x5abe40('0x46'),_0x27f8fb),this[_0x5abe40('0x3e')](_0x5abe40('0x37'),util[_0x5abe40('0x4c')](_0x5abe40('0x2a'),this['getDataValue'](_0x5abe40('0x2f')),_0x27f8fb));}},'salt':{'type':Sequelize[_0x40225a('0x49')]},'phone':{'type':Sequelize[_0x40225a('0x49')]},'mobile':{'type':Sequelize[_0x40225a('0x49')]},'address':{'type':Sequelize[_0x40225a('0x49')]},'zipcode':{'type':Sequelize[_0x40225a('0x49')]},'userpic':{'type':Sequelize[_0x40225a('0x49')]},'city':{'type':Sequelize[_0x40225a('0x49')]},'country':{'type':Sequelize[_0x40225a('0x49')]},'online':{'type':Sequelize[_0x40225a('0xf')],'defaultValue':![]},'lastLoginAt':{'type':Sequelize['DATE']},'voicePause':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'chatPause':{'type':Sequelize[_0x40225a('0xf')],'defaultValue':![]},'mailPause':{'type':Sequelize[_0x40225a('0xf')],'defaultValue':![]},'faxPause':{'type':Sequelize[_0x40225a('0xf')],'defaultValue':![]},'smsPause':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'whatsappPause':{'type':Sequelize[_0x40225a('0xf')],'defaultValue':![]},'openchannelPause':{'type':Sequelize[_0x40225a('0xf')],'defaultValue':![]},'pauseType':{'type':Sequelize[_0x40225a('0x49')],'defaultValue':_0x40225a('0x16')},'lastPauseAt':{'type':Sequelize[_0x40225a('0x1e')]},'chatCapacity':{'type':Sequelize[_0x40225a('0x5')],'defaultValue':0x0},'mailCapacity':{'type':Sequelize[_0x40225a('0x5')],'defaultValue':0x0},'faxCapacity':{'type':Sequelize[_0x40225a('0x5')],'defaultValue':0x0},'smsCapacity':{'type':Sequelize[_0x40225a('0x5')],'defaultValue':0x0},'whatsappCapacity':{'type':Sequelize[_0x40225a('0x5')],'defaultValue':0x0},'openchannelCapacity':{'type':Sequelize[_0x40225a('0x5')],'defaultValue':0x0},'phoneBarAutoAnswer':{'type':Sequelize[_0x40225a('0xf')],'defaultValue':![]},'phoneBarEnableSettings':{'type':Sequelize[_0x40225a('0xf')],'defaultValue':!![]},'phoneBarListenPort':{'type':Sequelize[_0x40225a('0x5')](0x5),'defaultValue':0x1428},'phoneBarExpires':{'type':Sequelize[_0x40225a('0x5')](0x5),'defaultValue':0x78},'phoneBarRemoteControl':{'type':Sequelize[_0x40225a('0xf')],'defaultValue':![]},'phoneBarRemoteControlPort':{'type':Sequelize[_0x40225a('0x5')],'defaultValue':0x26a0},'phoneBarEnableRecording':{'type':Sequelize[_0x40225a('0xf')],'defaultValue':![]},'phoneBarRingInUse':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'chanspy':{'type':Sequelize[_0x40225a('0xf')],'defaultValue':![]},'description':{'type':Sequelize[_0x40225a('0x49')],'allowNull':!![]},'host':{'type':Sequelize['STRING'],'allowNull':!![],'defaultValue':_0x40225a('0x58')},'ipaddr':{'type':Sequelize[_0x40225a('0x49')],'allowNull':!![]},'port':{'type':Sequelize[_0x40225a('0x5')](0x5),'allowNull':!![]},'regseconds':{'type':Sequelize[_0x40225a('0x5')](0xb),'allowNull':!![]},'fullcontact':{'type':Sequelize[_0x40225a('0x49')],'allowNull':!![]},'regserver':{'type':Sequelize['STRING'],'allowNull':!![]},'useragent':{'type':Sequelize['STRING'],'allowNull':!![]},'lastms':{'type':Sequelize[_0x40225a('0x5')](0xb),'allowNull':!![]},'type':{'type':Sequelize[_0x40225a('0x2b')](_0x40225a('0x14'),_0x40225a('0xa'),_0x40225a('0x4')),'allowNull':!![],'defaultValue':_0x40225a('0x14')},'context':{'type':Sequelize[_0x40225a('0x49')],'allowNull':!![],'defaultValue':_0x40225a('0x31')},'callingpres':{'type':Sequelize[_0x40225a('0x2b')](_0x40225a('0x15'),_0x40225a('0x43'),'ALLOWED_FAILED_SCREEN',_0x40225a('0x25'),_0x40225a('0x1b'),'PROHIB_PASSED_SCREEN',_0x40225a('0x1a'),_0x40225a('0x10')),'allowNull':!![]},'deny':{'type':Sequelize['STRING'],'allowNull':!![]},'permit':{'type':Sequelize[_0x40225a('0x49')],'allowNull':!![]},'secret':{'type':Sequelize['STRING'],'allowNull':!![]},'md5secret':{'type':Sequelize[_0x40225a('0x49')],'allowNull':!![]},'remotesecret':{'type':Sequelize[_0x40225a('0x49')],'allowNull':!![]},'transport':{'type':Sequelize[_0x40225a('0x49')],'allowNull':!![],'defaultValue':_0x40225a('0x39'),'set':function(_0x3735d4){const _0x115b0f=_0x40225a;this['setDataValue']('transport',_0x3735d4?_0x3735d4[_0x115b0f('0x22')](','):null);},'get':function(){const _0x5e153d=_0x40225a;return this[_0x5e153d('0x42')](_0x5e153d('0xd'))?this[_0x5e153d('0x42')]('transport')[_0x5e153d('0x18')](','):null;},'comment':'String\x20is\x20deprecated.\x20Please\x20use\x20an\x20Array\x20as\x20[\x22udp\x22,\x20\x22tcp\x22]'},'dtmfmode':{'type':Sequelize[_0x40225a('0x2b')](_0x40225a('0x54'),_0x40225a('0x4f'),_0x40225a('0x5a'),_0x40225a('0x11'),_0x40225a('0x38')),'allowNull':!![],'defaultValue':_0x40225a('0x54')},'directmedia':{'type':Sequelize[_0x40225a('0x2b')]('yes','no',_0x40225a('0xe'),'update','outgoing'),'allowNull':!![],'defaultValue':'no'},'directrtpsetup':{'type':Sequelize['ENUM'](_0x40225a('0x35'),'no'),'allowNull':!![],'defaultValue':'no'},'directmediapermit':{'type':Sequelize[_0x40225a('0x49')],'allowNull':!![]},'directmediadeny':{'type':Sequelize['STRING'],'allowNull':!![]},'nat':{'type':Sequelize[_0x40225a('0x49')],'allowNull':!![],'defaultValue':_0x40225a('0x3b'),'set':function(_0x113242){const _0xde34ef=_0x40225a;this['setDataValue'](_0xde34ef('0x59'),_0x113242?_0x113242['join'](','):null);},'get':function(){const _0x33f6e7=_0x40225a;return this[_0x33f6e7('0x42')](_0x33f6e7('0x59'))?this[_0x33f6e7('0x42')](_0x33f6e7('0x59'))['split'](','):null;},'comment':_0x40225a('0x19')},'callgroup':{'type':Sequelize[_0x40225a('0x49')]},'namedcallgroup':{'type':Sequelize[_0x40225a('0x49')]},'pickupgroup':{'type':Sequelize[_0x40225a('0x49')]},'namedpickupgroup':{'type':Sequelize[_0x40225a('0x49')]},'language':{'type':Sequelize['STRING'],'defaultValue':'en'},'tonezone':{'type':Sequelize[_0x40225a('0x49')]},'disallow':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':'all'},'allow':{'type':Sequelize[_0x40225a('0x49')],'allowNull':![],'defaultValue':'ulaw;alaw;gsm','set':function(_0x5c5c1d){const _0x1af3f0=_0x40225a;this[_0x1af3f0('0x3e')]('allow',_0x5c5c1d?_0x5c5c1d[_0x1af3f0('0x22')](';'):'ulaw;alaw;gsm');},'get':function(){const _0x30280d=_0x40225a;return this[_0x30280d('0x42')]('allow')?this[_0x30280d('0x42')](_0x30280d('0x12'))['split'](';'):null;},'comment':_0x40225a('0x3')},'autoframing':{'type':Sequelize[_0x40225a('0x2b')](_0x40225a('0x35'),'no'),'allowNull':!![]},'insecure':{'type':Sequelize[_0x40225a('0x49')],'allowNull':!![],'set':function(_0x1778e1){const _0x529b9d=_0x40225a;this['setDataValue'](_0x529b9d('0x17'),_0x1778e1?_0x1778e1[_0x529b9d('0x22')](','):null);},'get':function(){const _0x4ca088=_0x40225a;return this[_0x4ca088('0x42')](_0x4ca088('0x17'))?this['getDataValue'](_0x4ca088('0x17'))['split'](','):null;},'comment':'String\x20is\x20deprecated.\x20Please\x20use\x20an\x20Array\x20as\x20[\x22port\x22,\x20\x22invite\x22]'},'trustrpid':{'type':Sequelize[_0x40225a('0x2b')](_0x40225a('0x35'),'no'),'allowNull':!![],'defaultValue':'no'},'trust_id_outbound':{'type':Sequelize[_0x40225a('0x2b')]('yes','no'),'allowNull':!![],'defaultValue':'no'},'progressinband':{'type':Sequelize[_0x40225a('0x2b')]('yes','no',_0x40225a('0x50')),'allowNull':!![]},'promiscredir':{'type':Sequelize['ENUM'](_0x40225a('0x35'),'no'),'allowNull':!![]},'useclientcode':{'type':Sequelize[_0x40225a('0x2b')]('yes','no'),'allowNull':!![]},'accountcode':{'type':Sequelize['INTEGER'](0xb),'allowNull':!![]},'setvar':{'type':Sequelize[_0x40225a('0x49')],'allowNull':!![]},'callerid':{'type':Sequelize[_0x40225a('0x49')],'allowNull':!![],'defaultValue':_0x40225a('0x4e')},'amaflags':{'type':Sequelize[_0x40225a('0x49')],'allowNull':!![]},'callcounter':{'type':Sequelize[_0x40225a('0x2b')](_0x40225a('0x35'),'no'),'allowNull':!![],'defaultValue':_0x40225a('0x35')},'busylevel':{'type':Sequelize[_0x40225a('0x5')](0xb),'allowNull':!![]},'allowoverlap':{'type':Sequelize['ENUM'](_0x40225a('0x35'),'no'),'allowNull':!![]},'allowsubscribe':{'type':Sequelize['ENUM'](_0x40225a('0x35'),'no'),'allowNull':!![]},'allowtransfer':{'type':Sequelize[_0x40225a('0x2b')]('yes','no'),'allowNull':!![]},'ignoresdpversion':{'type':Sequelize[_0x40225a('0x2b')](_0x40225a('0x35'),'no'),'allowNull':!![]},'subscribecontext':{'type':Sequelize[_0x40225a('0x49')],'allowNull':!![]},'template':{'type':Sequelize['STRING'],'allowNull':!![]},'videosupport':{'type':Sequelize['ENUM'](_0x40225a('0x35'),'no',_0x40225a('0x27')),'allowNull':!![],'defaultValue':'no'},'maxcallbitrate':{'type':Sequelize[_0x40225a('0x5')](0xb),'allowNull':!![]},'rfc2833compensate':{'type':Sequelize[_0x40225a('0x2b')](_0x40225a('0x35'),'no'),'allowNull':!![]},'mailbox':{'type':Sequelize[_0x40225a('0x49')],'allowNull':!![]},'session_timers':{'type':Sequelize[_0x40225a('0x2b')](_0x40225a('0x52'),_0x40225a('0xc'),_0x40225a('0x8')),'allowNull':!![]},'session_expires':{'type':Sequelize['INTEGER'](0xb),'allowNull':!![]},'session_minse':{'type':Sequelize[_0x40225a('0x5')](0xb),'allowNull':!![]},'session_refresher':{'type':Sequelize[_0x40225a('0x2b')](_0x40225a('0x24'),_0x40225a('0x9')),'allowNull':!![],'defaultValue':_0x40225a('0x9')},'t38pt_usertpsource':{'type':Sequelize['STRING'],'allowNull':!![]},'regexten':{'type':Sequelize['STRING'],'allowNull':!![]},'fromdomain':{'type':Sequelize[_0x40225a('0x49')],'allowNull':!![]},'fromuser':{'type':Sequelize[_0x40225a('0x49')],'allowNull':!![]},'qualify':{'type':Sequelize[_0x40225a('0x2b')](_0x40225a('0x35'),'no'),'allowNull':!![],'defaultValue':_0x40225a('0x35')},'keepalive':{'type':Sequelize[_0x40225a('0x5')](0xb),'allowNull':!![]},'defaultip':{'type':Sequelize[_0x40225a('0x49')],'allowNull':!![]},'defaultuser':{'type':Sequelize[_0x40225a('0x49')],'allowNull':!![]},'rtptimeout':{'type':Sequelize[_0x40225a('0x5')](0xb),'allowNull':!![]},'rtpholdtimeout':{'type':Sequelize[_0x40225a('0x5')](0xb),'allowNull':!![]},'rtpkeepalive':{'type':Sequelize['INTEGER'](0xb),'allowNull':!![]},'sendrpid':{'type':Sequelize[_0x40225a('0x2b')](_0x40225a('0x35'),'no'),'allowNull':!![],'defaultValue':'no'},'outboundproxy':{'type':Sequelize[_0x40225a('0x49')],'allowNull':!![]},'callbackextension':{'type':Sequelize[_0x40225a('0x49')],'allowNull':!![]},'timert1':{'type':Sequelize[_0x40225a('0x5')](0xb),'allowNull':!![]},'timerb':{'type':Sequelize[_0x40225a('0x5')](0xb),'allowNull':!![]},'qualifyfreq':{'type':Sequelize['INTEGER'](0xb),'allowNull':!![]},'contactpermit':{'type':Sequelize[_0x40225a('0x49')],'allowNull':!![]},'contactdeny':{'type':Sequelize[_0x40225a('0x49')],'allowNull':!![]},'contactacl':{'type':Sequelize[_0x40225a('0x49')],'allowNull':!![]},'unsolicited_mailbox':{'type':Sequelize[_0x40225a('0x49')],'allowNull':!![]},'use_q850_reason':{'type':Sequelize['STRING'],'allowNull':!![]},'maxforwards':{'type':Sequelize[_0x40225a('0x5')](0xb),'allowNull':!![]},'encryption':{'type':Sequelize[_0x40225a('0x2b')](_0x40225a('0x35'),'no'),'allowNull':!![],'defaultValue':'no'},'avpf':{'type':Sequelize[_0x40225a('0x2b')](_0x40225a('0x35'),'no'),'allowNull':!![]},'force_avp':{'type':Sequelize['ENUM']('yes','no'),'allowNull':!![]},'icesupport':{'type':Sequelize['ENUM'](_0x40225a('0x35'),'no'),'allowNull':!![]},'dtlsenable':{'type':Sequelize[_0x40225a('0x2b')](_0x40225a('0x35'),'no'),'allowNull':!![]},'dtlsverify':{'type':Sequelize['ENUM']('yes','no',_0x40225a('0x55'),'certificate'),'allowNull':!![]},'dtlsrekey':{'type':Sequelize['INTEGER'](0xb),'allowNull':!![]},'dtlscertfile':{'type':Sequelize[_0x40225a('0x49')],'allowNull':!![]},'dtlsprivatekey':{'type':Sequelize['STRING'],'allowNull':!![]},'dtlscipher':{'type':Sequelize[_0x40225a('0x49')],'allowNull':!![]},'dtlscafile':{'type':Sequelize[_0x40225a('0x49')],'allowNull':!![]},'dtlscapath':{'type':Sequelize[_0x40225a('0x49')],'allowNull':!![]},'dtlssetup':{'type':Sequelize[_0x40225a('0x2b')](_0x40225a('0x51'),_0x40225a('0x47'),'actpass'),'allowNull':!![]},'dtlsfingerprint':{'type':Sequelize[_0x40225a('0x49')],'allowNull':!![]},'usereqphone':{'type':Sequelize[_0x40225a('0x2b')](_0x40225a('0x35'),'no'),'allowNull':!![],'defaultValue':'no'},'recordonfeature':{'type':Sequelize['STRING'],'allowNull':!![]},'recordofffeature':{'type':Sequelize[_0x40225a('0x49')],'allowNull':!![]},'call_limit':{'type':Sequelize[_0x40225a('0x5')](0xb),'allowNull':!![],'defaultValue':0xa},'registertrying':{'type':Sequelize[_0x40225a('0x2b')]('yes','no'),'allowNull':!![]},'subscribemwi':{'type':Sequelize['ENUM'](_0x40225a('0x35'),'no'),'allowNull':!![]},'vmexten':{'type':Sequelize[_0x40225a('0x49')],'allowNull':!![]},'mohinterpret':{'type':Sequelize[_0x40225a('0x49')],'allowNull':!![]},'mohsuggest':{'type':Sequelize[_0x40225a('0x49')],'allowNull':!![]},'parkinglot':{'type':Sequelize[_0x40225a('0x49')],'allowNull':!![]},'canreinvite':{'type':Sequelize[_0x40225a('0x2b')](_0x40225a('0x35'),'no','nonat',_0x40225a('0x32'),_0x40225a('0x2c')),'allowNull':!![],'defaultValue':'no'},'loginInPause':{'type':Sequelize[_0x40225a('0xf')],'defaultValue':![]},'resetPasswordToken':{'type':Sequelize[_0x40225a('0x49')]},'resetPasswordExpires':{'type':Sequelize['DATE']},'passwordResetAt':{'type':Sequelize[_0x40225a('0x1e')],'defaultValue':null},'previousPasswords':{'type':Sequelize['STRING']},'showWebBar':{'type':Sequelize['INTEGER'],'defaultValue':0x0,'set':function(_0x4d01b5){const _0xc3cd8b=_0x40225a;this['setDataValue'](_0xc3cd8b('0x2e'),_0x4d01b5);const _0x34f8ae=this[_0xc3cd8b('0x29')]({'plain':!![]});switch(_0x4d01b5){case 0x0:case 0x1:{let _0x2aadf9=_0x34f8ae[_0xc3cd8b('0xd')]?_[_0xc3cd8b('0x34')](_0x34f8ae[_0xc3cd8b('0xd')])?_0x34f8ae[_0xc3cd8b('0xd')][_0xc3cd8b('0x22')]():_0x34f8ae[_0xc3cd8b('0xd')]:'udp';_0x2aadf9==='wss'&&(_0x2aadf9=_0xc3cd8b('0x39')),this[_0xc3cd8b('0x3e')](_0xc3cd8b('0xd'),_0x2aadf9),this[_0xc3cd8b('0x3e')]('encryption','no'),this[_0xc3cd8b('0x3e')](_0xc3cd8b('0x2d'),null),this['setDataValue']('force_avp',null),this['setDataValue']('icesupport',null),this[_0xc3cd8b('0x3e')](_0xc3cd8b('0x45'),null),this[_0xc3cd8b('0x3e')](_0xc3cd8b('0x1'),null),this[_0xc3cd8b('0x3e')](_0xc3cd8b('0xb'),null),this[_0xc3cd8b('0x3e')](_0xc3cd8b('0x26'),null),this[_0xc3cd8b('0x3e')](_0xc3cd8b('0x44'),null),this[_0xc3cd8b('0x3e')](_0xc3cd8b('0x48'),'no');}break;case 0x2:this[_0xc3cd8b('0x3e')](_0xc3cd8b('0xd'),_0xc3cd8b('0x4a')),this[_0xc3cd8b('0x3e')](_0xc3cd8b('0x3a'),'yes'),this['setDataValue'](_0xc3cd8b('0x2d'),_0xc3cd8b('0x35')),this[_0xc3cd8b('0x3e')]('force_avp',_0xc3cd8b('0x35')),this[_0xc3cd8b('0x3e')](_0xc3cd8b('0x1c'),_0xc3cd8b('0x35')),this[_0xc3cd8b('0x3e')]('dtlsenable',_0xc3cd8b('0x35')),this[_0xc3cd8b('0x3e')](_0xc3cd8b('0x1'),'no'),this['setDataValue'](_0xc3cd8b('0xb'),'actpass'),this[_0xc3cd8b('0x3e')]('dtlscertfile',_0x34f8ae['dtlscertfile']||_0xc3cd8b('0x21')),this['setDataValue']('dtlsprivatekey',_0x34f8ae[_0xc3cd8b('0x44')]||_0xc3cd8b('0x2')),this['setDataValue'](_0xc3cd8b('0x48'),'yes');break;default:}}},'permissions':{'type':Sequelize[_0x40225a('0x1f')],'set':function(_0x427c6a){const _0x5c3741=_0x40225a;this['setDataValue'](_0x5c3741('0x0'),_0x427c6a?_0x427c6a[_0x5c3741('0x22')](','):[]);},'get':function(){const _0x50b714=_0x40225a;return this[_0x50b714('0x42')](_0x50b714('0x0'))?_['map'](this[_0x50b714('0x42')](_0x50b714('0x0'))[_0x50b714('0x18')](','),function(_0x5efc2d){return parseInt(_0x5efc2d,0xa);}):[];}},'phoneBarUnconditionalNumber':{'type':Sequelize['STRING']},'phoneBarNoReplyNumber':{'type':Sequelize['STRING']},'phoneBarBusyNumber':{'type':Sequelize[_0x40225a('0x49')]},'phoneBarUnconditional':{'type':Sequelize[_0x40225a('0xf')],'defaultValue':![]},'phoneBarNoReply':{'type':Sequelize[_0x40225a('0xf')],'defaultValue':![]},'phoneBarBusy':{'type':Sequelize[_0x40225a('0xf')],'defaultValue':![]},'phoneBarDnd':{'type':Sequelize[_0x40225a('0xf')],'defaultValue':!![]},'phoneBarUnansweredCallBadge':{'type':Sequelize[_0x40225a('0xf')],'defaultValue':!![]},'phoneBarEnableDtmfTone':{'type':Sequelize[_0x40225a('0xf')],'defaultValue':![]},'phoneBarAutoAnswerDelay':{'type':Sequelize[_0x40225a('0x5')],'defaultValue':0x0},'extensionMonitor':{'type':Sequelize[_0x40225a('0x49')],'defaultValue':''},'crudPermissions':{'type':Sequelize[_0x40225a('0x5')],'defaultValue':0x0},'rtcp_mux':{'type':Sequelize[_0x40225a('0x2b')](_0x40225a('0x35'),'no'),'defaultValue':'no'},'allowmessenger':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'phoneBarOutboundProxy':{'type':Sequelize[_0x40225a('0x49')]},'phoneBarEnableJaws':{'type':Sequelize[_0x40225a('0xf')],'defaultValue':![]},'phoneBarEnableScreenRecordingByAgent':{'type':Sequelize[_0x40225a('0xf')],'defaultValue':![]},'phoneBarEnableVideoRecording':{'type':Sequelize['VIRTUAL'],'get':function(){const _0x1c66f3=_0x40225a;return this[_0x1c66f3('0x42')]('phoneBarEnableScreenRecordingByAgent')?this[_0x1c66f3('0x42')]('phoneBarEnableScreenRecordingByAgent'):![];}},'phoneBarEnableAutomaticScreenRecording':{'type':Sequelize[_0x40225a('0xf')],'defaultValue':![]},'phoneBarPrefixRequired':{'type':Sequelize[_0x40225a('0xf')],'defaultValue':![]},'hotdesk':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'interface':{'type':Sequelize['STRING'],'defaultValue':null},'privacyEnabled':{'type':Sequelize[_0x40225a('0xf')],'defaultValue':![]},'apiKeyNonce':{'type':Sequelize[_0x40225a('0x49')],'allowNull':!![]},'apiKeyIat':{'type':Sequelize[_0x40225a('0x49')],'allowNull':!![]},'screenrecording':{'type':Sequelize['BOOLEAN'],'defaultValue':![],'set':function(_0x20e611){const _0x7559bc=_0x40225a;if(typeof _0x20e611===_0x7559bc('0x40')){const _0x31e310=_0x20e611==='1'?!![]:_0x20e611==='0'?![]:_0x20e611===_0x7559bc('0x36')?!![]:_0x20e611===_0x7559bc('0x4d')?![]:![];this[_0x7559bc('0x3e')](_0x7559bc('0x28'),_0x31e310);}else this['setDataValue']('screenrecording',_0x20e611);}},'blocked':{'type':Sequelize['BOOLEAN'],'defaultValue':![],'set':function(_0x17d312){const _0x1b4372=_0x40225a;this['setDataValue'](_0x1b4372('0x57'),_0x17d312),_0x17d312===!![]?(this[_0x1b4372('0x3e')]('blockedAt',moment()),this[_0x1b4372('0x3e')](_0x1b4372('0x1d'),0x0)):this[_0x1b4372('0x3e')](_0x1b4372('0x3c'),null);}},'blockedAt':{'type':Sequelize[_0x40225a('0x1e')],'defaultValue':null},'loginAttempts':{'type':Sequelize[_0x40225a('0x5')],'defaultValue':0x0},'disabled':{'type':Sequelize[_0x40225a('0xf')],'defaultValue':![]},'settingsEnabled':{'type':Sequelize[_0x40225a('0xf')],'defaultValue':!![]}}; \ No newline at end of file +const a774_0x560f=['isArray','true','friend','getDataValue','blocked','DATE','callerid','PROHIB_NOT_SCREENED','insecure','/etc/pki/tls/private/motion.key','ALLOWED_FAILED_SCREEN','uas','originate','auto','email','map','active','dtlsprivatekey','setDataValue','rtcp_mux','dtlssetup','dynamic','string','local','avpf','/etc/pki/tls/certs/motion.crt','format','internal','screenrecording','STRING','ALLOWED_PASSED_SCREEN','\x22%s\x22\x20<%s>','info','wss','never','transport','util','outgoing','PROHIB','allow','phoneBarEnableScreenRecordingByAgent','admin','ENUM','toLowerCase','INTEGER','moment','DEFAULT\x20PAUSE','ALLOWED_NOT_SCREENED','false','icesupport','ulaw;alaw;gsm','permissions','accept','String\x20is\x20deprecated.\x20Please\x20use\x20an\x20Array\x20as\x20[\x22port\x22,\x20\x22invite\x22]','udp','shortinfo','blockedAt','VIRTUAL','force_avp','lodash','actpass','all','attributes','nonat','PROHIB_FAILED_SCREEN','encryption','update','dtlsverify','inband','dtlsenable','split','join','user','certificate','sequelize','refuse','fingerprint','fullname','telephone','passive','BOOLEAN','String\x20is\x20deprecated.\x20Please\x20use\x20an\x20Array\x20as\x20[\x22udp\x22,\x20\x22tcp\x22]','name','exports','agent','\x22\x22\x20<>','accountcode','nat','String\x20is\x20deprecated.\x20Please\x20use\x20an\x20Array\x20as\x20[\x22ulaw\x22,\x20\x22alaw\x22,\x20\x22gsm\x22]','always','dtlscertfile','yes','uac'];(function(_0x29297e,_0x4f60be){const _0x560ff9=function(_0x27cd48){while(--_0x27cd48){_0x29297e['push'](_0x29297e['shift']());}};_0x560ff9(++_0x4f60be);}(a774_0x560f,0x1b6));const a774_0x27cd=function(_0x29297e,_0x4f60be){_0x29297e=_0x29297e-0x14d;let _0x560ff9=a774_0x560f[_0x29297e];return _0x560ff9;};const a774_0x6f122f=a774_0x27cd;'use strict';const {DataTypes}=require(a774_0x6f122f(0x155)),moment=require(a774_0x6f122f(0x195)),util=require(a774_0x6f122f(0x18c)),_=require(a774_0x6f122f(0x1a3)),attributes={'name':{'type':DataTypes['STRING'],'allowNull':![],'unique':a774_0x6f122f(0x15d),'validate':{'notEmpty':!![],'is':/^[A-Za-z0-9._]+$/i},'set':function(_0x5a8261){const _0x444fef=a774_0x6f122f;this[_0x444fef(0x17a)](_0x444fef(0x15d),_0x5a8261),this[_0x444fef(0x17a)]('defaultuser',_0x5a8261);},'comment':'The\x20name\x20of\x20the\x20user'},'fullname':{'type':DataTypes[a774_0x6f122f(0x185)],'allowNull':![],'set':function(_0x46c4e0){const _0xcf415b=a774_0x6f122f;this['setDataValue'](_0xcf415b(0x158),_0x46c4e0),this['setDataValue'](_0xcf415b(0x16e),util[_0xcf415b(0x182)](_0xcf415b(0x187),_0x46c4e0,this[_0xcf415b(0x16b)]('internal')));}},'alias':{'type':DataTypes[a774_0x6f122f(0x185)]},'email':{'type':DataTypes['STRING'],'allowNull':![],'unique':a774_0x6f122f(0x176),'validate':{'isEmail':!![]},'set':function(_0x181bac){const _0x549134=a774_0x6f122f;_0x181bac&&this[_0x549134(0x17a)](_0x549134(0x176),_0x181bac[_0x549134(0x193)]());}},'role':{'type':DataTypes['ENUM'](a774_0x6f122f(0x191),a774_0x6f122f(0x153),a774_0x6f122f(0x15f),a774_0x6f122f(0x159)),'allowNull':![]},'password':{'type':DataTypes[a774_0x6f122f(0x185)],'allowNull':![],'validate':{'notEmpty':!![]}},'provider':{'type':DataTypes[a774_0x6f122f(0x185)],'defaultValue':a774_0x6f122f(0x17f)},'internal':{'type':DataTypes['INTEGER']({'length':0xb}),'allowNull':![],'unique':a774_0x6f122f(0x183),'set':function(_0x389e9e){const _0xceabce=a774_0x6f122f;this['setDataValue']('internal',_0x389e9e),this[_0xceabce(0x17a)](_0xceabce(0x161),_0x389e9e),this[_0xceabce(0x17a)](_0xceabce(0x16e),util['format'](_0xceabce(0x187),this[_0xceabce(0x16b)](_0xceabce(0x158)),_0x389e9e));}},'salt':{'type':DataTypes[a774_0x6f122f(0x185)]},'phone':{'type':DataTypes[a774_0x6f122f(0x185)]},'mobile':{'type':DataTypes['STRING']},'address':{'type':DataTypes[a774_0x6f122f(0x185)]},'zipcode':{'type':DataTypes[a774_0x6f122f(0x185)]},'userpic':{'type':DataTypes['STRING']},'city':{'type':DataTypes[a774_0x6f122f(0x185)]},'country':{'type':DataTypes['STRING']},'online':{'type':DataTypes[a774_0x6f122f(0x15b)],'defaultValue':![]},'lastLoginAt':{'type':DataTypes[a774_0x6f122f(0x16d)]},'voicePause':{'type':DataTypes[a774_0x6f122f(0x15b)],'defaultValue':![]},'chatPause':{'type':DataTypes[a774_0x6f122f(0x15b)],'defaultValue':![]},'mailPause':{'type':DataTypes[a774_0x6f122f(0x15b)],'defaultValue':![]},'faxPause':{'type':DataTypes[a774_0x6f122f(0x15b)],'defaultValue':![]},'smsPause':{'type':DataTypes[a774_0x6f122f(0x15b)],'defaultValue':![]},'whatsappPause':{'type':DataTypes[a774_0x6f122f(0x15b)],'defaultValue':![]},'openchannelPause':{'type':DataTypes['BOOLEAN'],'defaultValue':![]},'pauseType':{'type':DataTypes[a774_0x6f122f(0x185)],'defaultValue':a774_0x6f122f(0x196)},'lastPauseAt':{'type':DataTypes[a774_0x6f122f(0x16d)]},'chatCapacity':{'type':DataTypes['INTEGER'],'defaultValue':0x0},'mailCapacity':{'type':DataTypes[a774_0x6f122f(0x194)],'defaultValue':0x0},'faxCapacity':{'type':DataTypes[a774_0x6f122f(0x194)],'defaultValue':0x0},'smsCapacity':{'type':DataTypes['INTEGER'],'defaultValue':0x0},'whatsappCapacity':{'type':DataTypes['INTEGER'],'defaultValue':0x0},'openchannelCapacity':{'type':DataTypes[a774_0x6f122f(0x194)],'defaultValue':0x0},'phoneBarAutoAnswer':{'type':DataTypes[a774_0x6f122f(0x15b)],'defaultValue':![]},'phoneBarEnableSettings':{'type':DataTypes[a774_0x6f122f(0x15b)],'defaultValue':!![]},'phoneBarListenPort':{'type':DataTypes[a774_0x6f122f(0x194)]({'length':0x5}),'defaultValue':0x1428},'phoneBarExpires':{'type':DataTypes[a774_0x6f122f(0x194)]({'length':0x5}),'defaultValue':0x78},'phoneBarRemoteControl':{'type':DataTypes[a774_0x6f122f(0x15b)],'defaultValue':![]},'phoneBarRemoteControlPort':{'type':DataTypes[a774_0x6f122f(0x194)],'defaultValue':0x26a0},'phoneBarEnableRecording':{'type':DataTypes[a774_0x6f122f(0x15b)],'defaultValue':![]},'phoneBarRingInUse':{'type':DataTypes['BOOLEAN'],'defaultValue':![]},'chanspy':{'type':DataTypes[a774_0x6f122f(0x15b)],'defaultValue':![]},'description':{'type':DataTypes[a774_0x6f122f(0x185)],'allowNull':!![]},'host':{'type':DataTypes[a774_0x6f122f(0x185)],'allowNull':!![],'defaultValue':a774_0x6f122f(0x17d)},'ipaddr':{'type':DataTypes[a774_0x6f122f(0x185)],'allowNull':!![]},'port':{'type':DataTypes[a774_0x6f122f(0x194)]({'length':0x5}),'allowNull':!![]},'regseconds':{'type':DataTypes[a774_0x6f122f(0x194)]({'length':0xb}),'allowNull':!![]},'fullcontact':{'type':DataTypes[a774_0x6f122f(0x185)],'allowNull':!![]},'regserver':{'type':DataTypes[a774_0x6f122f(0x185)],'allowNull':!![]},'useragent':{'type':DataTypes[a774_0x6f122f(0x185)],'allowNull':!![]},'lastms':{'type':DataTypes[a774_0x6f122f(0x194)]({'length':0xb}),'allowNull':!![]},'type':{'type':DataTypes[a774_0x6f122f(0x192)](a774_0x6f122f(0x16a),a774_0x6f122f(0x153),'peer'),'allowNull':!![],'defaultValue':a774_0x6f122f(0x16a)},'context':{'type':DataTypes['STRING'],'allowNull':!![],'defaultValue':'from-sip'},'callingpres':{'type':DataTypes[a774_0x6f122f(0x192)](a774_0x6f122f(0x197),a774_0x6f122f(0x186),a774_0x6f122f(0x172),'ALLOWED',a774_0x6f122f(0x16f),'PROHIB_PASSED_SCREEN',a774_0x6f122f(0x1a8),a774_0x6f122f(0x18e)),'allowNull':!![]},'deny':{'type':DataTypes['STRING'],'allowNull':!![]},'permit':{'type':DataTypes[a774_0x6f122f(0x185)],'allowNull':!![]},'secret':{'type':DataTypes['STRING'],'allowNull':!![]},'md5secret':{'type':DataTypes[a774_0x6f122f(0x185)],'allowNull':!![]},'remotesecret':{'type':DataTypes[a774_0x6f122f(0x185)],'allowNull':!![]},'transport':{'type':DataTypes['STRING'],'allowNull':!![],'defaultValue':a774_0x6f122f(0x19e),'set':function(_0x45c15e){const _0x1dbaf3=a774_0x6f122f;this[_0x1dbaf3(0x17a)](_0x1dbaf3(0x18b),typeof _0x45c15e===_0x1dbaf3(0x17e)?_0x45c15e:Array[_0x1dbaf3(0x168)](_0x45c15e)?_0x45c15e[_0x1dbaf3(0x152)](','):null);},'get':function(){const _0x2dcbb9=a774_0x6f122f;return this['getDataValue'](_0x2dcbb9(0x18b))?this[_0x2dcbb9(0x16b)](_0x2dcbb9(0x18b))[_0x2dcbb9(0x151)](','):null;},'comment':a774_0x6f122f(0x15c)},'dtmfmode':{'type':DataTypes[a774_0x6f122f(0x192)]('rfc2833',a774_0x6f122f(0x188),a774_0x6f122f(0x19f),a774_0x6f122f(0x14f),a774_0x6f122f(0x175)),'allowNull':!![],'defaultValue':'rfc2833'},'directmedia':{'type':DataTypes[a774_0x6f122f(0x192)](a774_0x6f122f(0x166),'no',a774_0x6f122f(0x1a7),'update',a774_0x6f122f(0x18d)),'allowNull':!![],'defaultValue':'no'},'directrtpsetup':{'type':DataTypes[a774_0x6f122f(0x192)](a774_0x6f122f(0x166),'no'),'allowNull':!![],'defaultValue':'no'},'directmediapermit':{'type':DataTypes[a774_0x6f122f(0x185)],'allowNull':!![]},'directmediadeny':{'type':DataTypes[a774_0x6f122f(0x185)],'allowNull':!![]},'nat':{'type':DataTypes[a774_0x6f122f(0x185)],'allowNull':!![],'defaultValue':'force_rport,comedia','set':function(_0x5318f2){const _0x30784b=a774_0x6f122f;this['setDataValue'](_0x30784b(0x162),typeof _0x5318f2===_0x30784b(0x17e)?_0x5318f2:Array[_0x30784b(0x168)](_0x5318f2)?_0x5318f2[_0x30784b(0x152)](','):null);},'get':function(){const _0x1fd40d=a774_0x6f122f;return this[_0x1fd40d(0x16b)](_0x1fd40d(0x162))?this[_0x1fd40d(0x16b)]('nat')['split'](','):null;},'comment':'String\x20is\x20deprecated.\x20Please\x20use\x20an\x20Array\x20as\x20[\x22force_rport\x22,\x20\x22comedia\x22]'},'callgroup':{'type':DataTypes[a774_0x6f122f(0x185)]},'namedcallgroup':{'type':DataTypes[a774_0x6f122f(0x185)]},'pickupgroup':{'type':DataTypes['STRING']},'namedpickupgroup':{'type':DataTypes['STRING']},'language':{'type':DataTypes['STRING'],'defaultValue':'en'},'tonezone':{'type':DataTypes[a774_0x6f122f(0x185)]},'disallow':{'type':DataTypes['STRING'],'allowNull':![],'defaultValue':a774_0x6f122f(0x1a5)},'allow':{'type':DataTypes[a774_0x6f122f(0x185)],'allowNull':![],'defaultValue':a774_0x6f122f(0x19a),'set':function(_0x38d408){const _0x4f64b8=a774_0x6f122f;this[_0x4f64b8(0x17a)](_0x4f64b8(0x18f),typeof _0x38d408===_0x4f64b8(0x17e)?_0x38d408:Array[_0x4f64b8(0x168)](_0x38d408)?_0x38d408[_0x4f64b8(0x152)](';'):_0x4f64b8(0x19a));},'get':function(){const _0xcdd22b=a774_0x6f122f;return this[_0xcdd22b(0x16b)](_0xcdd22b(0x18f))?this[_0xcdd22b(0x16b)](_0xcdd22b(0x18f))[_0xcdd22b(0x151)](';'):null;},'comment':a774_0x6f122f(0x163)},'autoframing':{'type':DataTypes[a774_0x6f122f(0x192)]('yes','no'),'allowNull':!![]},'insecure':{'type':DataTypes[a774_0x6f122f(0x185)],'allowNull':!![],'set':function(_0x5135b7){const _0x20955c=a774_0x6f122f;this['setDataValue'](_0x20955c(0x170),typeof _0x5135b7===_0x20955c(0x17e)?_0x5135b7:Array[_0x20955c(0x168)](_0x5135b7)?_0x5135b7[_0x20955c(0x152)](','):null);},'get':function(){const _0x3bbd05=a774_0x6f122f;return this[_0x3bbd05(0x16b)](_0x3bbd05(0x170))?this['getDataValue'](_0x3bbd05(0x170))[_0x3bbd05(0x151)](','):null;},'comment':a774_0x6f122f(0x19d)},'trustrpid':{'type':DataTypes[a774_0x6f122f(0x192)](a774_0x6f122f(0x166),'no'),'allowNull':!![],'defaultValue':'no'},'trust_id_outbound':{'type':DataTypes[a774_0x6f122f(0x192)](a774_0x6f122f(0x166),'no'),'allowNull':!![],'defaultValue':'no'},'progressinband':{'type':DataTypes[a774_0x6f122f(0x192)](a774_0x6f122f(0x166),'no',a774_0x6f122f(0x18a)),'allowNull':!![]},'promiscredir':{'type':DataTypes[a774_0x6f122f(0x192)]('yes','no'),'allowNull':!![]},'useclientcode':{'type':DataTypes[a774_0x6f122f(0x192)](a774_0x6f122f(0x166),'no'),'allowNull':!![]},'accountcode':{'type':DataTypes['INTEGER']({'length':0xb}),'allowNull':!![]},'setvar':{'type':DataTypes[a774_0x6f122f(0x185)],'allowNull':!![]},'callerid':{'type':DataTypes[a774_0x6f122f(0x185)],'allowNull':!![],'defaultValue':a774_0x6f122f(0x160)},'amaflags':{'type':DataTypes[a774_0x6f122f(0x185)],'allowNull':!![]},'callcounter':{'type':DataTypes[a774_0x6f122f(0x192)](a774_0x6f122f(0x166),'no'),'allowNull':!![],'defaultValue':a774_0x6f122f(0x166)},'busylevel':{'type':DataTypes[a774_0x6f122f(0x194)]({'length':0xb}),'allowNull':!![]},'allowoverlap':{'type':DataTypes[a774_0x6f122f(0x192)]('yes','no'),'allowNull':!![]},'allowsubscribe':{'type':DataTypes[a774_0x6f122f(0x192)](a774_0x6f122f(0x166),'no'),'allowNull':!![]},'allowtransfer':{'type':DataTypes[a774_0x6f122f(0x192)](a774_0x6f122f(0x166),'no'),'allowNull':!![]},'ignoresdpversion':{'type':DataTypes['ENUM'](a774_0x6f122f(0x166),'no'),'allowNull':!![]},'subscribecontext':{'type':DataTypes[a774_0x6f122f(0x185)],'allowNull':!![]},'template':{'type':DataTypes[a774_0x6f122f(0x185)],'allowNull':!![]},'videosupport':{'type':DataTypes[a774_0x6f122f(0x192)](a774_0x6f122f(0x166),'no',a774_0x6f122f(0x164)),'allowNull':!![],'defaultValue':'no'},'maxcallbitrate':{'type':DataTypes['INTEGER']({'length':0xb}),'allowNull':!![]},'rfc2833compensate':{'type':DataTypes['ENUM'](a774_0x6f122f(0x166),'no'),'allowNull':!![]},'mailbox':{'type':DataTypes[a774_0x6f122f(0x185)],'allowNull':!![]},'session_timers':{'type':DataTypes[a774_0x6f122f(0x192)](a774_0x6f122f(0x19c),a774_0x6f122f(0x156),a774_0x6f122f(0x174)),'allowNull':!![]},'session_expires':{'type':DataTypes[a774_0x6f122f(0x194)]({'length':0xb}),'allowNull':!![]},'session_minse':{'type':DataTypes[a774_0x6f122f(0x194)]({'length':0xb}),'allowNull':!![]},'session_refresher':{'type':DataTypes[a774_0x6f122f(0x192)](a774_0x6f122f(0x167),'uas'),'allowNull':!![],'defaultValue':a774_0x6f122f(0x173)},'t38pt_usertpsource':{'type':DataTypes[a774_0x6f122f(0x185)],'allowNull':!![]},'regexten':{'type':DataTypes[a774_0x6f122f(0x185)],'allowNull':!![]},'fromdomain':{'type':DataTypes[a774_0x6f122f(0x185)],'allowNull':!![]},'fromuser':{'type':DataTypes[a774_0x6f122f(0x185)],'allowNull':!![]},'qualify':{'type':DataTypes[a774_0x6f122f(0x192)](a774_0x6f122f(0x166),'no'),'allowNull':!![],'defaultValue':a774_0x6f122f(0x166)},'keepalive':{'type':DataTypes[a774_0x6f122f(0x194)]({'length':0xb}),'allowNull':!![]},'defaultip':{'type':DataTypes[a774_0x6f122f(0x185)],'allowNull':!![]},'defaultuser':{'type':DataTypes[a774_0x6f122f(0x185)],'allowNull':!![]},'rtptimeout':{'type':DataTypes['INTEGER']({'length':0xb}),'allowNull':!![]},'rtpholdtimeout':{'type':DataTypes[a774_0x6f122f(0x194)]({'length':0xb}),'allowNull':!![]},'rtpkeepalive':{'type':DataTypes[a774_0x6f122f(0x194)]({'length':0xb}),'allowNull':!![]},'sendrpid':{'type':DataTypes[a774_0x6f122f(0x192)](a774_0x6f122f(0x166),'no'),'allowNull':!![],'defaultValue':'no'},'outboundproxy':{'type':DataTypes['STRING'],'allowNull':!![]},'callbackextension':{'type':DataTypes[a774_0x6f122f(0x185)],'allowNull':!![]},'timert1':{'type':DataTypes[a774_0x6f122f(0x194)]({'length':0xb}),'allowNull':!![]},'timerb':{'type':DataTypes['INTEGER']({'length':0xb}),'allowNull':!![]},'qualifyfreq':{'type':DataTypes[a774_0x6f122f(0x194)]({'length':0xb}),'allowNull':!![]},'contactpermit':{'type':DataTypes['STRING'],'allowNull':!![]},'contactdeny':{'type':DataTypes['STRING'],'allowNull':!![]},'contactacl':{'type':DataTypes['STRING'],'allowNull':!![]},'unsolicited_mailbox':{'type':DataTypes[a774_0x6f122f(0x185)],'allowNull':!![]},'use_q850_reason':{'type':DataTypes['STRING'],'allowNull':!![]},'maxforwards':{'type':DataTypes[a774_0x6f122f(0x194)]({'length':0xb}),'allowNull':!![]},'encryption':{'type':DataTypes[a774_0x6f122f(0x192)](a774_0x6f122f(0x166),'no'),'allowNull':!![],'defaultValue':'no'},'avpf':{'type':DataTypes['ENUM']('yes','no'),'allowNull':!![]},'force_avp':{'type':DataTypes[a774_0x6f122f(0x192)](a774_0x6f122f(0x166),'no'),'allowNull':!![]},'icesupport':{'type':DataTypes[a774_0x6f122f(0x192)](a774_0x6f122f(0x166),'no'),'allowNull':!![]},'dtlsenable':{'type':DataTypes[a774_0x6f122f(0x192)](a774_0x6f122f(0x166),'no'),'allowNull':!![]},'dtlsverify':{'type':DataTypes['ENUM'](a774_0x6f122f(0x166),'no',a774_0x6f122f(0x157),a774_0x6f122f(0x154)),'allowNull':!![]},'dtlsrekey':{'type':DataTypes['INTEGER']({'length':0xb}),'allowNull':!![]},'dtlscertfile':{'type':DataTypes[a774_0x6f122f(0x185)],'allowNull':!![]},'dtlsprivatekey':{'type':DataTypes[a774_0x6f122f(0x185)],'allowNull':!![]},'dtlscipher':{'type':DataTypes[a774_0x6f122f(0x185)],'allowNull':!![]},'dtlscafile':{'type':DataTypes['STRING'],'allowNull':!![]},'dtlscapath':{'type':DataTypes[a774_0x6f122f(0x185)],'allowNull':!![]},'dtlssetup':{'type':DataTypes[a774_0x6f122f(0x192)](a774_0x6f122f(0x178),a774_0x6f122f(0x15a),a774_0x6f122f(0x1a4)),'allowNull':!![]},'dtlsfingerprint':{'type':DataTypes[a774_0x6f122f(0x185)],'allowNull':!![]},'usereqphone':{'type':DataTypes['ENUM'](a774_0x6f122f(0x166),'no'),'allowNull':!![],'defaultValue':'no'},'recordonfeature':{'type':DataTypes[a774_0x6f122f(0x185)],'allowNull':!![]},'recordofffeature':{'type':DataTypes[a774_0x6f122f(0x185)],'allowNull':!![]},'call_limit':{'type':DataTypes[a774_0x6f122f(0x194)]({'length':0xb}),'allowNull':!![],'defaultValue':0xa},'registertrying':{'type':DataTypes[a774_0x6f122f(0x192)](a774_0x6f122f(0x166),'no'),'allowNull':!![]},'subscribemwi':{'type':DataTypes['ENUM']('yes','no'),'allowNull':!![]},'vmexten':{'type':DataTypes[a774_0x6f122f(0x185)],'allowNull':!![]},'mohinterpret':{'type':DataTypes[a774_0x6f122f(0x185)],'allowNull':!![]},'mohsuggest':{'type':DataTypes[a774_0x6f122f(0x185)],'allowNull':!![]},'parkinglot':{'type':DataTypes[a774_0x6f122f(0x185)],'allowNull':!![]},'canreinvite':{'type':DataTypes[a774_0x6f122f(0x192)](a774_0x6f122f(0x166),'no',a774_0x6f122f(0x1a7),a774_0x6f122f(0x14d),'update,nonat'),'allowNull':!![],'defaultValue':'no'},'loginInPause':{'type':DataTypes[a774_0x6f122f(0x15b)],'defaultValue':![]},'resetPasswordToken':{'type':DataTypes[a774_0x6f122f(0x185)]},'resetPasswordExpires':{'type':DataTypes[a774_0x6f122f(0x16d)]},'passwordResetAt':{'type':DataTypes['DATE'],'defaultValue':null},'previousPasswords':{'type':DataTypes[a774_0x6f122f(0x185)]},'showWebBar':{'type':DataTypes[a774_0x6f122f(0x194)],'defaultValue':0x0,'set':function(_0x5a63fc){const _0x256ffd=a774_0x6f122f;this[_0x256ffd(0x17a)]('showWebBar',_0x5a63fc);const _0x34be0c=this['get']({'plain':!![]});switch(_0x5a63fc){case 0x0:case 0x1:{let _0x56821f=_0x34be0c[_0x256ffd(0x18b)]?_['isArray'](_0x34be0c[_0x256ffd(0x18b)])?_0x34be0c['transport'][_0x256ffd(0x152)]():_0x34be0c['transport']:_0x256ffd(0x19e);_0x56821f===_0x256ffd(0x189)&&(_0x56821f=_0x256ffd(0x19e)),this[_0x256ffd(0x17a)]('transport',_0x56821f),this[_0x256ffd(0x17a)](_0x256ffd(0x1a9),'no'),this[_0x256ffd(0x17a)](_0x256ffd(0x180),null),this['setDataValue']('force_avp',null),this['setDataValue']('icesupport',null),this[_0x256ffd(0x17a)](_0x256ffd(0x150),null),this[_0x256ffd(0x17a)](_0x256ffd(0x14e),null),this[_0x256ffd(0x17a)](_0x256ffd(0x17c),null),this[_0x256ffd(0x17a)](_0x256ffd(0x165),null),this[_0x256ffd(0x17a)](_0x256ffd(0x179),null),this[_0x256ffd(0x17a)](_0x256ffd(0x17b),'no');}break;case 0x2:this[_0x256ffd(0x17a)](_0x256ffd(0x18b),'wss'),this[_0x256ffd(0x17a)](_0x256ffd(0x1a9),'yes'),this[_0x256ffd(0x17a)](_0x256ffd(0x180),_0x256ffd(0x166)),this[_0x256ffd(0x17a)](_0x256ffd(0x1a2),'yes'),this[_0x256ffd(0x17a)](_0x256ffd(0x199),_0x256ffd(0x166)),this['setDataValue'](_0x256ffd(0x150),_0x256ffd(0x166)),this[_0x256ffd(0x17a)](_0x256ffd(0x14e),'no'),this[_0x256ffd(0x17a)]('dtlssetup',_0x256ffd(0x1a4)),this['setDataValue'](_0x256ffd(0x165),_0x34be0c['dtlscertfile']||_0x256ffd(0x181)),this[_0x256ffd(0x17a)](_0x256ffd(0x179),_0x34be0c[_0x256ffd(0x179)]||_0x256ffd(0x171)),this[_0x256ffd(0x17a)](_0x256ffd(0x17b),_0x256ffd(0x166));break;default:}}},'permissions':{'type':DataTypes['TEXT'],'set':function(_0x5af0da){const _0x1b3ed4=a774_0x6f122f;this[_0x1b3ed4(0x17a)](_0x1b3ed4(0x19b),typeof _0x5af0da===_0x1b3ed4(0x17e)?_0x5af0da:Array[_0x1b3ed4(0x168)](_0x5af0da)?_0x5af0da[_0x1b3ed4(0x152)](','):[]);},'get':function(){const _0x46fbf3=a774_0x6f122f;return this[_0x46fbf3(0x16b)](_0x46fbf3(0x19b))?_[_0x46fbf3(0x177)](this['getDataValue'](_0x46fbf3(0x19b))['split'](','),function(_0x30778c){return parseInt(_0x30778c,0xa);}):[];}},'phoneBarUnconditionalNumber':{'type':DataTypes[a774_0x6f122f(0x185)]},'phoneBarNoReplyNumber':{'type':DataTypes[a774_0x6f122f(0x185)]},'phoneBarBusyNumber':{'type':DataTypes[a774_0x6f122f(0x185)]},'phoneBarUnconditional':{'type':DataTypes[a774_0x6f122f(0x15b)],'defaultValue':![]},'phoneBarNoReply':{'type':DataTypes[a774_0x6f122f(0x15b)],'defaultValue':![]},'phoneBarBusy':{'type':DataTypes[a774_0x6f122f(0x15b)],'defaultValue':![]},'phoneBarDnd':{'type':DataTypes[a774_0x6f122f(0x15b)],'defaultValue':!![]},'phoneBarUnansweredCallBadge':{'type':DataTypes['BOOLEAN'],'defaultValue':!![]},'phoneBarEnableDtmfTone':{'type':DataTypes['BOOLEAN'],'defaultValue':![]},'phoneBarAutoAnswerDelay':{'type':DataTypes[a774_0x6f122f(0x194)],'defaultValue':0x0},'extensionMonitor':{'type':DataTypes[a774_0x6f122f(0x185)],'defaultValue':''},'crudPermissions':{'type':DataTypes[a774_0x6f122f(0x194)],'defaultValue':0x0},'rtcp_mux':{'type':DataTypes[a774_0x6f122f(0x192)](a774_0x6f122f(0x166),'no'),'defaultValue':'no'},'allowmessenger':{'type':DataTypes[a774_0x6f122f(0x15b)],'defaultValue':!![]},'phoneBarOutboundProxy':{'type':DataTypes[a774_0x6f122f(0x185)]},'phoneBarEnableJaws':{'type':DataTypes[a774_0x6f122f(0x15b)],'defaultValue':![]},'phoneBarEnableScreenRecordingByAgent':{'type':DataTypes[a774_0x6f122f(0x15b)],'defaultValue':![]},'phoneBarEnableVideoRecording':{'type':DataTypes[a774_0x6f122f(0x1a1)],'get':function(){const _0x4c1fbb=a774_0x6f122f;return this[_0x4c1fbb(0x16b)]('phoneBarEnableScreenRecordingByAgent')?this['getDataValue'](_0x4c1fbb(0x190)):![];}},'phoneBarEnableAutomaticScreenRecording':{'type':DataTypes[a774_0x6f122f(0x15b)],'defaultValue':![]},'phoneBarPrefixRequired':{'type':DataTypes[a774_0x6f122f(0x15b)],'defaultValue':![]},'hotdesk':{'type':DataTypes['BOOLEAN'],'defaultValue':![]},'interface':{'type':DataTypes[a774_0x6f122f(0x185)],'defaultValue':null},'privacyEnabled':{'type':DataTypes[a774_0x6f122f(0x15b)],'defaultValue':![]},'apiKeyNonce':{'type':DataTypes['STRING'],'allowNull':!![]},'apiKeyIat':{'type':DataTypes[a774_0x6f122f(0x185)],'allowNull':!![]},'screenrecording':{'type':DataTypes[a774_0x6f122f(0x15b)],'defaultValue':![],'set':function(_0x5482ec){const _0x2e8d7b=a774_0x6f122f;if(typeof _0x5482ec===_0x2e8d7b(0x17e)){const _0x46cdf1=_0x5482ec==='1'?!![]:_0x5482ec==='0'?![]:_0x5482ec===_0x2e8d7b(0x169)?!![]:_0x5482ec===_0x2e8d7b(0x198)?![]:![];this[_0x2e8d7b(0x17a)](_0x2e8d7b(0x184),_0x46cdf1);}else this[_0x2e8d7b(0x17a)](_0x2e8d7b(0x184),_0x5482ec);}},'blocked':{'type':DataTypes['BOOLEAN'],'defaultValue':![],'set':function(_0x42fb0e){const _0x2a54bc=a774_0x6f122f;this[_0x2a54bc(0x17a)](_0x2a54bc(0x16c),_0x42fb0e),_0x42fb0e===!![]?(this[_0x2a54bc(0x17a)](_0x2a54bc(0x1a0),moment()),this[_0x2a54bc(0x17a)]('loginAttempts',0x0)):this[_0x2a54bc(0x17a)](_0x2a54bc(0x1a0),null);}},'blockedAt':{'type':DataTypes[a774_0x6f122f(0x16d)],'defaultValue':null},'loginAttempts':{'type':DataTypes[a774_0x6f122f(0x194)],'defaultValue':0x0},'disabled':{'type':DataTypes['BOOLEAN'],'defaultValue':![]},'settingsEnabled':{'type':DataTypes[a774_0x6f122f(0x15b)],'defaultValue':!![]}};module[a774_0x6f122f(0x15e)][a774_0x6f122f(0x1a6)]=attributes; \ No newline at end of file diff --git a/server/api/user/user.controller.js b/server/api/user/user.controller.js index a6f3eb1..4112eec 100644 --- a/server/api/user/user.controller.js +++ b/server/api/user/user.controller.js @@ -1 +1 @@ -const a648_0x5109=['user_has_sms_interactions:save','token','max','findByPk','keys','pick','removeMailAccounts','include','result','updatePasswordsHistory','getChatInteractions','getChatWebsites','interface','UserVoiceQueue.penalty','Pause','retrieveApiKey','$any','../../config/logger','MailInteraction','getOpenchannelQueues','$lt','chatPause','pause','getFaxInteractions','model','User','MailAccount','removeSmsAccounts','smsPause','$notBetween','Unauthorized','addQueues','download','intrf','openchannel','getSmsAccounts','min_internal','addSmsInteractions','type','all','where','getMailInteractions','passwordHistoryLimit','SmsAccount','addChatWebsites','New\x20password\x20must\x20be\x20different\x20from\x20old\x20password','getOpenchannelInteractions','You\x20can\x27t\x20delete\x20yourself','api','addMailAccounts','online','request\x20sent','rows','omit','../../components/parsers/qs','penalty','unpause','resolve','100','permissions','$not','UserProfileResource','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','Telephones','validatePasswordPattern','transaction','YYYY-MM-DD\x20HH:mm:ss','rawAttributes','generateApiKey','removeAgent','moment','sort','map','removeTeams','mail','getApiKey','addFaxAccounts','MemberReport','admin','removeSquareProjects','$between','createApiKey','sequelize','login','add','differenceBy','changePassword','firstName','Fax','getChatQueues','user_has_whatsapp_interactions:save','isEmpty','params','getLists','Queues','user_has_fax_interactions:save','from','VoiceQueue','role','concat','push','Setting','apiKeyNonce','$like','SquareProject','offset','getSmsInteractions','get','../../components/auth/service','108','isValidChannel','send','../../config/environment','lastPauseAt','remoteAddress','set','user_has_sms_interactions:remove','isMiddleware','CmList','../../mysqldb','../../rediscache','VoicePrefix','util','nolimit','getAvatar','API\x20key\x20not\x20available','isArray','intersection','$notLike','findOne','getDataValue','Invalid\x20body\x20format.\x20Use\x20newPassword','value','removeSmsInteractions','emit','user_has_openchannel_interactions:remove','Use','removeOpenchannelInteractions','securePassword','$overlap','x-forwarded-for','getVoiceQueues','WhatsappAccount','message','getRecordings','setDataValue','format','Unauthorized.\x20You\x20must\x20be\x20an\x20administrator\x20in\x20order\x20to\x20create\x20an\x20user','fullname','update','mailPause','getFaxAccounts','path','phone','like','destroy','$in','bulkCreate','102','ChatInteraction','count','getGroups','lower','length','ignore','attributes','Mail','create','userpic','106','stringify','CmContact','Chat','describe','chat','Contact','catch','merge','addSquareProjects','fieldName','removeWhatsappAccounts','SmsInteraction','getQueues','Tag','getScheduledCalls','user','$gte','undefined','removeFaxInteractions','addContacts','Openchannel','getMailAccounts','WhatsappInteraction','isNil','getWhatsappQueues','and','device','Content-Range','info','options','filter','getVoiceQueuesRt','getWhatsappAccounts','ScreenRecording','faxPause','Unauthorized.\x20You\x20must\x20be\x20an\x20administrator\x20in\x20order\x20to\x20create\x20another\x20administrator','SELECT','internal','removeChatInteractions','settingsEnabled','query','pauseType','LOGIN','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)','addSmsAccounts','Invalid\x20body\x20format.\x20Use\x20oldPassword\x20and\x20newPassword','whoami','Voice','getSmsQueues','manual','removeOpenchannelAccounts','compact','upsert','UserId','addChatInteractions','$ne','removeWhatsappInteractions','key','User,\x20%s,\x20%s,\x20%s','loginInPause','dialActive','UserVoiceQueueRt','user_has_fax_interactions:remove','includeAll','lodash','Whatsapp','findAll','voicemail','ChatWebsite','User,\x20%s,\x20%s','FaxAccount','No\x20API\x20access\x20key\x20found!','addAgent','flatten','Queue:save','getScreenRecordings','QueuePause','PAUSE','limit','Queue:remove','113','111','addWhatsappAccounts','end','getMailQueues','addFaxInteractions','$notILike','telephone','LOGININPAUSE','114','openchannelPause','user_has_chat_interactions:remove','You\x20don\x27t\x20have\x20sufficient\x20privileges\x20to\x20access\x20this\x20resource.','autoAssociation','VoiceMail','validatePasswordHistory','filename','show','%s%s','User\x20not\x20found\x20or\x20not\x20allowed\x20to\x20perform\x20login\x20method','lastName','includes','Team','getContacts','existsSync','userProfileId','tag','filters','removeChatWebsites','addOpenchannelAccounts','getFaxQueues','$or','user_has_openchannel_interactions:save','DEFAULT\x20PAUSE','mobile','addOpenchannelInteractions','oldPassword','channel','connection','forEach','previousPasswords','then','List','newPassword','Sms','file','removeApiKey','socket','name','$iLike','Unknown\x20channel','109','capitalize','removeQueues','fields','getSquareProjects','voicePause','password','voice','Unable\x20to\x20retrieve\x20the\x20current\x20user','getTeams','files/images/','VoiceRecording','status','join','user:forcelogout','salt','order','./user.socket','SIP/%s','Wrong\x20credentials','Tags','json','ids','LOCAL/%s@from-sip/n','getOpenchannelAccounts','sms','index','getWhatsappInteractions','error','Unauthorized.\x20You\x20must\x20be\x20an\x20administrator\x20in\x20order\x20to\x20create\x20an\x20administrator','agent','$lte','addAvatar','$contains','user_has_mail_interactions:remove','body','ChatGroup','logout','remove','Queue','toLowerCase','QueueId','Agents','root','getVoicePrefixes','color','$gt','sendStatus','110','removeMailInteractions','some','addTeams','getChannels','UserProfileSection','CmHopper','enforcePasswordHistory','addWhatsappInteractions'];(function(_0x2f9e85,_0x51097d){const _0x1eea71=function(_0x1f538f){while(--_0x1f538f){_0x2f9e85['push'](_0x2f9e85['shift']());}};_0x1eea71(++_0x51097d);}(a648_0x5109,0xac));const a648_0x1eea=function(_0x2f9e85,_0x51097d){_0x2f9e85=_0x2f9e85-0x0;let _0x1eea71=a648_0x5109[_0x2f9e85];return _0x1eea71;};const _0x39246c=a648_0x1eea;'use strict';const moment=require(_0x39246c('0x100')),util=require(_0x39246c('0x134')),path=require(_0x39246c('0x152')),fs=require('fs'),_=require(_0x39246c('0x3e')),{getSocket}=require(_0x39246c('0x132')),socket=getSocket(),authService=require(_0x39246c('0x126')),qs=require(_0x39246c('0xf0')),logger=require(_0x39246c('0xcb'))(_0x39246c('0xea')),utils=require('../../config/utils'),config=require(_0x39246c('0x12a')),db=require(_0x39246c('0x131'))['db'],{Op,QueryTypes,fn,col,where,ValidationError}=require(_0x39246c('0x10c')),licenseUtil=require('../../config/license/util');require(_0x39246c('0x92'))['register'](socket);const jayson=require('jayson/promise'),client=jayson['client']['http']({'port':0x232a});function respondWithRpcPromise(_0x1f538f,_0x447508,_0x3ee6bb,_0x27d89d){return new Promise(function(_0x469f61,_0x4dbb7b){const _0x444f46=a648_0x1eea,_0x29ed5a=_0x27d89d||client;return _0x29ed5a['request'](_0x1f538f,_0x3ee6bb)[_0x444f46('0x77')](function(_0x21c964){const _0x86e5f7=_0x444f46;logger[_0x86e5f7('0x1a')](_0x86e5f7('0x43'),_0x447508,_0x86e5f7('0xed')),logger['debug'](_0x86e5f7('0x38'),_0x447508,_0x86e5f7('0xed'),JSON[_0x86e5f7('0x164')](_0x21c964));if(_0x21c964[_0x86e5f7('0x9d')]){if(_0x21c964[_0x86e5f7('0x9d')]['code']===0x1f4)return logger['error'](_0x86e5f7('0x43'),_0x447508,_0x21c964[_0x86e5f7('0x9d')][_0x86e5f7('0x149')]),_0x4dbb7b(_0x21c964['error'][_0x86e5f7('0x149')]);return logger[_0x86e5f7('0x9d')]('User,\x20%s,\x20%s',_0x447508,_0x21c964[_0x86e5f7('0x9d')]['message']),_0x469f61(_0x21c964[_0x86e5f7('0x9d')][_0x86e5f7('0x149')]);}else logger['info']('User,\x20%s,\x20%s',_0x447508,_0x86e5f7('0xed')),_0x469f61(_0x21c964[_0x86e5f7('0xc2')][_0x86e5f7('0x149')]);})[_0x444f46('0x4')](function(_0x5053c2){const _0x25533e=_0x444f46;logger[_0x25533e('0x9d')]('User,\x20%s,\x20%s',_0x447508,_0x5053c2),_0x4dbb7b(_0x5053c2);});});}function respondWithStatusCode(_0x2f7b45,_0x41cc1d){return _0x41cc1d=_0x41cc1d||0xcc,function(_0x26b3c6){const _0x453505=a648_0x1eea;if(_0x26b3c6)return _0x2f7b45[_0x453505('0xb0')](_0x41cc1d);return _0x2f7b45[_0x453505('0x8d')](_0x41cc1d)['end']();};}function respondWithResult(_0x7c2791,_0x14e447){return _0x14e447=_0x14e447||0xc8,function(_0x749946){const _0x3ba040=a648_0x1eea;if(_0x749946)return _0x7c2791[_0x3ba040('0x8d')](_0x14e447)[_0x3ba040('0x96')](_0x749946);};}function respondWithFilteredResult(_0x45599b,_0x153d7f){return function(_0x2e35db){const _0x302683=a648_0x1eea;if(_0x2e35db){const _0x122d2c=_0x2e35db[_0x302683('0x15a')],_0x1d1259=_0x153d7f[_0x302683('0x123')];let _0x13f81e=_0x153d7f['offset']+_0x153d7f[_0x302683('0x4c')],_0x34e8a0;return _0x13f81e>=_0x122d2c?(_0x13f81e=_0x122d2c,_0x34e8a0=0xc8):_0x34e8a0=0xce,_0x45599b[_0x302683('0x8d')](_0x34e8a0),_0x45599b['set'](_0x302683('0x19'),_0x1d1259+'-'+_0x13f81e+'/'+_0x122d2c)['json'](_0x2e35db);}return null;};}function saveUpdates(_0x2a8367){return function(_0x32ac7a){const _0x50f3b3=a648_0x1eea;if(_0x32ac7a)return _0x32ac7a[_0x50f3b3('0x14f')](_0x2a8367)[_0x50f3b3('0x77')](function(_0x4026ca){return _0x4026ca;});return null;};}function removeEntity(_0x9c0c75){return function(_0x51caa0){const _0x527944=a648_0x1eea;if(_0x51caa0)return _0x51caa0[_0x527944('0x155')]()[_0x527944('0x77')](function(){const _0x13b3a1=_0x527944,_0x130e4e=_0x51caa0['get']({'plain':!![]});if(_0x130e4e[_0x13b3a1('0x11c')]==='admin')return;const _0x38897b=[{'name':'Users','value':_0x13b3a1('0xd'),'ignore':!![]},{'name':_0x13b3a1('0xab'),'value':_0x13b3a1('0x9f'),'ignore':![]},{'name':_0x13b3a1('0xf9'),'value':_0x13b3a1('0x55'),'ignore':![]}],_0x4b1a47=_(_0x38897b)['filter'](_0x13b3a1('0x15e'))['map'](_0x13b3a1('0x13e'))[_0x13b3a1('0x13e')]();if(_[_0x13b3a1('0x63')](_0x4b1a47,_0x130e4e[_0x13b3a1('0x11c')]))return;const _0xd1f12f=_['find'](_0x38897b,[_0x13b3a1('0x13e'),_0x130e4e[_0x13b3a1('0x11c')]])[_0x13b3a1('0x7e')];return db['UserProfileResource'][_0x13b3a1('0x155')]({'where':{'type':_0xd1f12f,'resourceId':_0x130e4e['id']}})['then'](function(){return _0x51caa0;});})[_0x527944('0x77')](function(){const _0x55b150=_0x527944;_0x9c0c75[_0x55b150('0x8d')](0xcc)[_0x55b150('0x51')]();});};}function handleEntityNotFound(_0x448fba){return function(_0x2c9dd4){return!_0x2c9dd4&&_0x448fba['sendStatus'](0x194),_0x2c9dd4;};}function handleError(_0x43e7a5,_0x114dec){return _0x114dec=_0x114dec||0x1f4,function(_0x4c3dcc){const _0x9b7376=a648_0x1eea;logger[_0x9b7376('0x9d')](_0x4c3dcc['stack']),_0x4c3dcc[_0x9b7376('0x7e')]&&delete _0x4c3dcc['name'],_0x43e7a5['status'](_0x114dec)['send'](_0x4c3dcc);};}function validateUser(_0x49a627){return new Promise(function(_0x51ce04,_0x4dd908){const _0x483199=a648_0x1eea;if(_0x49a627[_0x483199('0x23')])return _0x51ce04(_0x49a627);return db[_0x483199('0x11f')][_0x483199('0xbd')](0x1)['then'](function(_0x99b914){const _0x19dadc=_0x483199;if(_0x99b914[_0x19dadc('0x144')])authService[_0x19dadc('0xfa')](_0x49a627[_0x19dadc('0x87')]);db[_0x19dadc('0xd3')][_0x19dadc('0xbc')](_0x19dadc('0x23'))[_0x19dadc('0x77')](function(_0x485f64){const _0x3aec89=_0x19dadc;if(_[_0x3aec89('0x15')](_0x485f64)){_0x49a627['internal']=_0x99b914[_0x3aec89('0xde')]||0x1;return;}if(_[_0x3aec89('0x15')](_0x99b914['min_internal'])||_0x99b914[_0x3aec89('0xde')]===_0x485f64){_0x49a627[_0x3aec89('0x23')]=_0x485f64+0x1;return;}if(_0x99b914[_0x3aec89('0xde')]>_0x485f64){_0x49a627[_0x3aec89('0x23')]=_0x99b914[_0x3aec89('0xde')];return;}return db['sequelize'][_0x3aec89('0x26')](_0x3aec89('0x29'),{'type':QueryTypes[_0x3aec89('0x22')]})[_0x3aec89('0x77')](function(_0x4d4c0e){const _0x59a969=_0x3aec89;if(_0x4d4c0e&&_0x4d4c0e[_0x59a969('0x15d')])for(let _0x53b652=0x0,_0x85ee9f=_0x4d4c0e[_0x59a969('0x15d')];_0x53b652<_0x85ee9f&&_[_0x59a969('0x15')](_0x49a627[_0x59a969('0x23')]);_0x53b652++){if(_0x99b914[_0x59a969('0xde')]<=_0x4d4c0e[_0x53b652][_0x59a969('0x11a')])_0x49a627[_0x59a969('0x23')]=_0x4d4c0e[_0x53b652][_0x59a969('0x11a')];else _0x99b914[_0x59a969('0xde')]>_0x4d4c0e[_0x53b652][_0x59a969('0x11a')]&&_0x99b914[_0x59a969('0xde')]<=_0x4d4c0e[_0x53b652]['to']&&(_0x49a627[_0x59a969('0x23')]=_0x99b914[_0x59a969('0xde')]);}return _[_0x59a969('0x15')](_0x49a627[_0x59a969('0x23')])&&(_0x49a627[_0x59a969('0x23')]=_0x485f64+0x1),_0x51ce04(_0x49a627);});});})[_0x483199('0x4')](function(_0x55b238){_0x4dd908(_0x55b238);});});}function updateUser(_0x134e2c){return new Promise(function(_0x59401e,_0x3a90e9){const _0x3a7f5e=a648_0x1eea;try{_0x134e2c[_0x3a7f5e('0x41')]&&(_0x134e2c['mailbox']=_0x134e2c[_0x3a7f5e('0x23')],_0x134e2c[_0x3a7f5e('0x5c')]={'mailbox':_0x134e2c['internal'],'password':_0x134e2c[_0x3a7f5e('0x87')],'fullname':_0x134e2c[_0x3a7f5e('0x14e')],'email':_0x134e2c['email']});if(_0x134e2c[_0x3a7f5e('0x11c')]===_0x3a7f5e('0x9f')){if(!_0x134e2c[_0x3a7f5e('0xf5')])_0x134e2c[_0x3a7f5e('0xf5')]=['101',_0x3a7f5e('0x158'),'103',_0x3a7f5e('0x4e'),_0x3a7f5e('0xb1'),'104','105',_0x3a7f5e('0x163'),'107',_0x3a7f5e('0x127'),_0x3a7f5e('0x81'),_0x3a7f5e('0xf4'),_0x3a7f5e('0x4f'),_0x3a7f5e('0x57')];}_0x59401e(_0x134e2c);}catch(_0x3a8675){_0x3a90e9(_0x3a8675);}});}exports[_0x39246c('0x9b')]=function(_0x1c5960,_0xa4f8c7){const _0x4d2f8f=_0x39246c;let _0x49f172={};const _0x279365={},_0x21dd29={'count':0x0,'rows':[]},_0x24b67d=_[_0x4d2f8f('0x102')](db['User'][_0x4d2f8f('0xfd')],function(_0x25dfe2){const _0x5076c8=_0x4d2f8f;return{'name':_0x25dfe2[_0x5076c8('0x7')],'type':_0x25dfe2[_0x5076c8('0xe0')][_0x5076c8('0x37')]};});_0x279365[_0x4d2f8f('0xd2')]=_['differenceBy'](_[_0x4d2f8f('0x102')](_0x24b67d,_0x4d2f8f('0x7e')),[_0x4d2f8f('0x87'),_0x4d2f8f('0x90')]),_0x279365[_0x4d2f8f('0x26')]=_[_0x4d2f8f('0xbe')](_0x1c5960[_0x4d2f8f('0x26')]),_0x279365[_0x4d2f8f('0x69')]=_[_0x4d2f8f('0x139')](_0x279365['model'],_0x279365[_0x4d2f8f('0x26')]),_0x49f172[_0x4d2f8f('0x15f')]=_[_0x4d2f8f('0x139')](_0x279365['model'],qs[_0x4d2f8f('0x84')](_0x1c5960[_0x4d2f8f('0x26')][_0x4d2f8f('0x84')])),_0x49f172['attributes']=_0x49f172[_0x4d2f8f('0x15f')][_0x4d2f8f('0x15d')]?_0x49f172[_0x4d2f8f('0x15f')]:_0x279365[_0x4d2f8f('0xd2')];typeof _0x1c5960[_0x4d2f8f('0x26')]['nolimit']==='undefined'&&(_0x49f172[_0x4d2f8f('0x4c')]=qs[_0x4d2f8f('0x4c')](_0x1c5960[_0x4d2f8f('0x26')][_0x4d2f8f('0x4c')]),_0x49f172[_0x4d2f8f('0x123')]=qs[_0x4d2f8f('0x123')](_0x1c5960[_0x4d2f8f('0x26')][_0x4d2f8f('0x123')]));_0x49f172[_0x4d2f8f('0x91')]=qs[_0x4d2f8f('0x101')](_0x1c5960[_0x4d2f8f('0x26')][_0x4d2f8f('0x101')]),_0x49f172[_0x4d2f8f('0xe2')]=qs[_0x4d2f8f('0x69')](_[_0x4d2f8f('0xbf')](_0x1c5960['query'],_0x279365[_0x4d2f8f('0x69')]),_0x24b67d);_0x1c5960[_0x4d2f8f('0x26')][_0x4d2f8f('0x1c')]&&(_0x49f172[_0x4d2f8f('0xe2')]=_[_0x4d2f8f('0x5')](_0x49f172[_0x4d2f8f('0xe2')],{[Op['or']]:_[_0x4d2f8f('0x102')](_0x24b67d,function(_0x4abc3e){const _0x2317d6=_0x4d2f8f;if(_0x4abc3e[_0x2317d6('0xe0')]!=='VIRTUAL')return where(fn(_0x2317d6('0x15c'),col(_0x4abc3e[_0x2317d6('0x7e')])),{'$like':fn(_0x2317d6('0x15c'),'%'+_0x1c5960['query'][_0x2317d6('0x1c')]+'%')});})}));_0x49f172=_[_0x4d2f8f('0x5')]({},_0x49f172,_0x1c5960[_0x4d2f8f('0x1b')]);const _0x17b47d={'where':_0x49f172[_0x4d2f8f('0xe2')]};return db['User'][_0x4d2f8f('0x15a')](_0x17b47d)['then'](function(_0x42f65e){const _0x3b39d8=_0x4d2f8f;return _0x21dd29[_0x3b39d8('0x15a')]=_0x42f65e,typeof _0x1c5960[_0x3b39d8('0x26')]['includeAll']!=='undefined'&&(_0x49f172[_0x3b39d8('0xc1')]=[{'all':!![]}]),db[_0x3b39d8('0xd3')][_0x3b39d8('0x40')](_0x49f172);})[_0x4d2f8f('0x77')](function(_0x1e3038){return _0x21dd29['rows']=_0x1e3038,_0x21dd29;})[_0x4d2f8f('0x77')](respondWithFilteredResult(_0xa4f8c7,_0x49f172))['catch'](handleError(_0xa4f8c7,null));},exports[_0x39246c('0x5f')]=function(_0x1c6f70,_0x5544c1){const _0x4e928a=_0x39246c;let _0x17ee89={'raw':![],'where':{'id':_0x1c6f70[_0x4e928a('0x116')]['id']}};const _0x5a9269={};return _0x5a9269['model']=_[_0x4e928a('0x10f')](_['keys'](db[_0x4e928a('0xd3')]['rawAttributes']),[_0x4e928a('0x87'),_0x4e928a('0x90')]),_0x5a9269[_0x4e928a('0x26')]=_[_0x4e928a('0xbe')](_0x1c6f70[_0x4e928a('0x26')]),_0x5a9269[_0x4e928a('0x69')]=_[_0x4e928a('0x139')](_0x5a9269[_0x4e928a('0xd2')],_0x5a9269[_0x4e928a('0x26')]),_0x17ee89[_0x4e928a('0x15f')]=_['intersection'](_0x5a9269['model'],qs[_0x4e928a('0x84')](_0x1c6f70[_0x4e928a('0x26')][_0x4e928a('0x84')])),_0x17ee89[_0x4e928a('0x15f')]=_0x17ee89['attributes'][_0x4e928a('0x15d')]?_0x17ee89[_0x4e928a('0x15f')]:_0x5a9269['model'],_0x1c6f70[_0x4e928a('0x26')][_0x4e928a('0x3d')]&&(_0x17ee89[_0x4e928a('0xc1')]=[{'all':!![]}]),_0x17ee89=_[_0x4e928a('0x5')]({},_0x17ee89,_0x1c6f70[_0x4e928a('0x1b')]),db[_0x4e928a('0xd3')][_0x4e928a('0x13b')](_0x17ee89)[_0x4e928a('0x77')](handleEntityNotFound(_0x5544c1,null))[_0x4e928a('0x77')](respondWithResult(_0x5544c1,null))[_0x4e928a('0x4')](handleError(_0x5544c1,null));},exports['bulkCreate']=function(_0x5d2475,_0x2d2d95){const _0xa79a4f=_0x39246c,_0xaf35ba=_0x5d2475['body'];let _0x55fc3e=[];if(_0x5d2475['user']['role']===_0xa79a4f('0x9f'))throw new Error(_0xa79a4f('0xd8'));if(_['some'](_0xaf35ba,[_0xa79a4f('0x11c'),_0xa79a4f('0xd')])&&_0x5d2475[_0xa79a4f('0xd')][_0xa79a4f('0x11c')]!=='admin')throw new Error(_0xa79a4f('0x14d'));if(_[_0xa79a4f('0xb3')](_0xaf35ba,[_0xa79a4f('0x11c'),'admin'])&&_0x5d2475['user'][_0xa79a4f('0x11c')]!=='admin')throw new Error(_0xa79a4f('0x9e'));return licenseUtil['checkUserLimits'](_0xaf35ba)[_0xa79a4f('0x77')](function(){return validateUser(_0xaf35ba[0x0]);})[_0xa79a4f('0x77')](function(){const _0x47c716=_0xa79a4f;for(let _0x118e0c=0x1;_0x118e0c<_0xaf35ba['length'];_0x118e0c++){const _0x4d9de8=_0xaf35ba[_0x118e0c-0x1][_0x47c716('0x23')];if(!_0xaf35ba[_0x118e0c]['internal'])_0xaf35ba[_0x118e0c][_0x47c716('0x23')]=_0x4d9de8+0x1;_0x55fc3e['push'](validateUser(_0xaf35ba[_0x118e0c]));}return Promise[_0x47c716('0xe1')](_0x55fc3e);})[_0xa79a4f('0x77')](function(){const _0x2bd591=_0xa79a4f;_0x55fc3e=[];for(let _0x51934d=0x0;_0x51934d<_0xaf35ba[_0x2bd591('0x15d')];_0x51934d++){_0x55fc3e[_0x2bd591('0x11e')](updateUser(_0xaf35ba[_0x51934d]));}return Promise[_0x2bd591('0xe1')](_0x55fc3e);})[_0xa79a4f('0x77')](function(){const _0x145fa2=_0xa79a4f;return _0x55fc3e=_0xaf35ba[_0x145fa2('0x102')](_0x7fdcac=>{const _0x7a8225=_0x145fa2;return db['User'][_0x7a8225('0x161')](_0x7fdcac,{'include':[{'model':db[_0x7a8225('0x5c')],'as':_0x7a8225('0x5c')}]})[_0x7a8225('0x77')](function(_0x4cc3b1){return _0x7fdcac['id']=_0x4cc3b1['id'],_0x7fdcac;});}),Promise[_0x145fa2('0xe1')](_0x55fc3e);})[_0xa79a4f('0x77')](function(_0x3119c7){const _0x49becc=_0xa79a4f;if(_0x5d2475[_0x49becc('0xa4')][_0x49becc('0x11c')]===_0x49becc('0xd'))return _0x3119c7;if(_0x5d2475['user']['role']!==_0x49becc('0xd'))return _0x3119c7;const _0x76731c=_[_0x49becc('0xb3')](_0x3119c7,function(_0x8573fa){const _0x2db2c0=_0x49becc;return _0x8573fa[_0x2db2c0('0x11c')]===_0x2db2c0('0x9f')||_0x8573fa[_0x2db2c0('0x11c')]==='telephone';});if(!_0x76731c)return _0x3119c7;return db[_0x49becc('0xb6')]['findAll']({'where':{'name':{[Op['or']]:[_0x49becc('0xab'),'Telephones']},'userProfileId':_0x5d2475['user'][_0x49becc('0x67')]},'raw':!![]})[_0x49becc('0x77')](function(_0x178a06){const _0x1a0b94=_0x49becc;if(_[_0x1a0b94('0x115')](_0x178a06)||!_['some'](_0x178a06,[_0x1a0b94('0x5b'),0x0]))return _0x3119c7;_0x55fc3e=[];const _0x4cb97d=_(_0x178a06)[_0x1a0b94('0x102')](function(_0x646372){const _0x3ff0e7=_0x1a0b94;if(_0x646372['autoAssociation']===0x1)return;return _0x646372[_0x3ff0e7('0x7e')]===_0x3ff0e7('0xab')?_0x3ff0e7('0x9f'):_0x3ff0e7('0x55');})[_0x1a0b94('0x31')]()[_0x1a0b94('0x13e')]();for(let _0x39e3ab=0x0;_0x39e3ab<_0x3119c7[_0x1a0b94('0x15d')];_0x39e3ab++){if(!_[_0x1a0b94('0x63')](_0x4cb97d,_0x3119c7[_0x39e3ab][_0x1a0b94('0x11c')]))return;const _0x6b0b39=_0x3119c7[_0x39e3ab][_0x1a0b94('0x11c')]===_0x1a0b94('0x9f')?_0x1a0b94('0xab'):_0x1a0b94('0xf9');_0x55fc3e[_0x1a0b94('0x11e')](db[_0x1a0b94('0xf7')][_0x1a0b94('0x161')]({'name':_0x3119c7[_0x39e3ab]['name'],'resourceId':_0x3119c7[_0x39e3ab]['id'],'type':_0x6b0b39,'sectionId':_['find'](_0x178a06,[_0x1a0b94('0x7e'),_0x6b0b39])['id']},{}));}return Promise['all'](_0x55fc3e);});})[_0xa79a4f('0x77')](respondWithResult(_0x2d2d95,0xc9))['catch'](handleError(_0x2d2d95,null));},exports[_0x39246c('0x14f')]=function(_0x4b1bae,_0x328ec2){const _0x199f3d=_0x39246c;return _0x4b1bae[_0x199f3d('0xa4')]['id']&&delete _0x4b1bae[_0x199f3d('0xa4')]['id'],delete _0x4b1bae[_0x199f3d('0xa4')][_0x199f3d('0x11c')],db[_0x199f3d('0xd3')][_0x199f3d('0x13b')]({'where':{'id':_0x4b1bae[_0x199f3d('0x116')]['id']}})['then'](handleEntityNotFound(_0x328ec2,null))['then'](saveUpdates(_0x4b1bae['body'],null))[_0x199f3d('0x77')](respondWithResult(_0x328ec2,null))[_0x199f3d('0x4')](handleError(_0x328ec2,null));},exports[_0x39246c('0x1')]=function(_0x472649,_0x1fa81e){const _0x33af7d=_0x39246c;return db[_0x33af7d('0xd3')][_0x33af7d('0x1')]()[_0x33af7d('0x77')](respondWithResult(_0x1fa81e,null))[_0x33af7d('0x4')](handleError(_0x1fa81e,null));},exports['addContacts']=function(_0x3e7f92,_0xbafdca){const _0x494ad8=_0x39246c;return db[_0x494ad8('0xd3')][_0x494ad8('0x13b')]({'where':{'id':_0x3e7f92[_0x494ad8('0x116')]['id']}})[_0x494ad8('0x77')](handleEntityNotFound(_0xbafdca,null))[_0x494ad8('0x77')](function(_0x51938d){const _0x330fb3=_0x494ad8;if(_0x51938d)return _0x51938d[_0x330fb3('0x11')](_0x3e7f92[_0x330fb3('0xa4')]['ids'],{'through':_[_0x330fb3('0xef')](_0x3e7f92[_0x330fb3('0xa4')],[_0x330fb3('0x97'),'id'])});})['then'](respondWithResult(_0xbafdca,null))[_0x494ad8('0x4')](handleError(_0xbafdca,null));},exports[_0x39246c('0x161')]=function(_0xf2bcd5,_0x290f1d){const _0x56ff0f=_0x39246c;if(_0xf2bcd5[_0x56ff0f('0xd')][_0x56ff0f('0x11c')]==='agent')throw new Error(_0x56ff0f('0xd8'));if(_0xf2bcd5[_0x56ff0f('0xa4')][_0x56ff0f('0x11c')]===_0x56ff0f('0xd')&&_0xf2bcd5[_0x56ff0f('0xd')][_0x56ff0f('0x11c')]!==_0x56ff0f('0x108'))throw new Error(_0x56ff0f('0x14d'));if(_0xf2bcd5[_0x56ff0f('0xa4')][_0x56ff0f('0x11c')]===_0x56ff0f('0x108')&&_0xf2bcd5[_0x56ff0f('0xd')][_0x56ff0f('0x11c')]!==_0x56ff0f('0x108'))throw new Error(_0x56ff0f('0x21'));return licenseUtil['checkUserLimits']([_0xf2bcd5[_0x56ff0f('0xa4')]])[_0x56ff0f('0x77')](function(){const _0x1693ea=_0x56ff0f;return validateUser(_0xf2bcd5[_0x1693ea('0xa4')]);})['then'](function(_0x33d6c4){const _0x3e7989=_0x56ff0f;return updateUser(_0x33d6c4)[_0x3e7989('0x77')](function(_0x54a1a6){const _0x3493d8=_0x3e7989;return _0x54a1a6[_0x3493d8('0x11c')]===_0x3493d8('0x108')&&(_0x54a1a6[_0x3493d8('0x25')]=_0xf2bcd5[_0x3493d8('0xd')]['settingsEnabled'],delete _0x54a1a6['userProfileId']),_0x54a1a6;});})[_0x56ff0f('0x77')](function(_0x463df1){const _0x15746a=_0x56ff0f;return db[_0x15746a('0xd3')][_0x15746a('0x161')](_0x463df1,{'include':[{'model':db[_0x15746a('0x5c')],'as':_0x15746a('0x5c')}]});})[_0x56ff0f('0x77')](function(_0x3b2af0){const _0x5ae7aa=_0x56ff0f;if(_0xf2bcd5['body'][_0x5ae7aa('0x11c')]===_0x5ae7aa('0xd'))return _0x3b2af0;if(_0xf2bcd5[_0x5ae7aa('0xd')]['role']!==_0x5ae7aa('0xd'))return _0x3b2af0;return db[_0x5ae7aa('0xb6')]['findOne']({'where':{'name':_0x3b2af0['role']===_0x5ae7aa('0x9f')?'Agents':'Telephones','userProfileId':_0xf2bcd5[_0x5ae7aa('0xd')][_0x5ae7aa('0x67')]},'raw':!![]})['then'](function(_0xed5365){const _0x584ff6=_0x5ae7aa;if(!_0xed5365||_0xed5365['autoAssociation']!=0x0)return _0x3b2af0;return db[_0x584ff6('0xf7')][_0x584ff6('0x161')]({'name':_0x3b2af0['name'],'resourceId':_0x3b2af0['id'],'type':_0xed5365['name'],'sectionId':_0xed5365['id']},{})['then'](function(){return _0x3b2af0;});})[_0x5ae7aa('0x4')](function(_0x2c4fcb){const _0x451af5=_0x5ae7aa;logger[_0x451af5('0x9d')](_0x451af5('0xf8'),_0x2c4fcb);throw _0x2c4fcb;});})['then'](respondWithResult(_0x290f1d,0xc9))[_0x56ff0f('0x4')](handleError(_0x290f1d,null));},exports[_0x39246c('0x110')]=function(_0x4b8f73,_0x417b0f){const _0x966f53=_0x39246c;if(_0x4b8f73[_0x966f53('0xa4')]['id'])delete _0x4b8f73[_0x966f53('0xa4')]['id'];return db[_0x966f53('0xd3')][_0x966f53('0x13b')]({'where':{'id':_0x4b8f73[_0x966f53('0x116')]['id']}})['then'](function(_0x305b78){const _0x53c51=_0x966f53;if(!_0x305b78)return null;if(_0x305b78['id']===_0x4b8f73[_0x53c51('0xd')]['id']){if(!_0x4b8f73[_0x53c51('0xa4')]['oldPassword']||!_0x4b8f73[_0x53c51('0xa4')]['newPassword'])throw new ValidationError(_0x53c51('0x2b'));if(!_0x305b78['authenticate'](_0x4b8f73[_0x53c51('0xa4')][_0x53c51('0x72')]))throw new ValidationError(_0x53c51('0x94'));if(_0x4b8f73[_0x53c51('0xa4')][_0x53c51('0x72')]===_0x4b8f73['body'][_0x53c51('0x79')])throw new ValidationError(_0x53c51('0xe7'));}else{if(_0x4b8f73[_0x53c51('0xd')][_0x53c51('0x11c')]===_0x53c51('0x108')){if(!_0x4b8f73[_0x53c51('0xa4')][_0x53c51('0x79')])throw new ValidationError(_0x53c51('0x13d'));}else{if(_0x4b8f73[_0x53c51('0xd')]['role']==='user'){if(!_0x4b8f73[_0x53c51('0xa4')][_0x53c51('0x79')])throw new ValidationError(_0x53c51('0x13d'));if(_0x305b78['role']!==_0x53c51('0x9f'))throw new ValidationError('Unauthorized');}else throw new ValidationError(_0x53c51('0xd8'));}}return _0x305b78;})[_0x966f53('0x77')](handleEntityNotFound(_0x417b0f,null))[_0x966f53('0x77')](function(_0x351f7b){const _0x9fa3f4=_0x966f53;return db['Setting'][_0x9fa3f4('0x13b')]({'attributes':['id',_0x9fa3f4('0x144'),_0x9fa3f4('0xb8'),'passwordHistoryLimit']})[_0x9fa3f4('0x77')](function(_0x204f56){const _0x6657ec=_0x9fa3f4;if(_0x204f56['securePassword'])authService[_0x6657ec('0xfa')](_0x4b8f73['body']['newPassword']);if(!_0x204f56[_0x6657ec('0xb8')]||!_0x351f7b[_0x6657ec('0x76')])return _0x351f7b;return authService[_0x6657ec('0x5d')](_0x4b8f73[_0x6657ec('0xa4')][_0x6657ec('0x79')],_0x351f7b[_0x6657ec('0x76')],_0x204f56[_0x6657ec('0xe4')]),_0x351f7b;})['then'](saveUpdates({'password':_0x4b8f73[_0x9fa3f4('0xa4')]['newPassword'],'passwordResetAt':_0x4b8f73[_0x9fa3f4('0xd')]['id']==_0x4b8f73['params']['id']?moment():null,'previousPasswords':authService[_0x9fa3f4('0xc3')](_0x4b8f73[_0x9fa3f4('0xa4')][_0x9fa3f4('0x79')],_0x351f7b[_0x9fa3f4('0x76')])},null));})[_0x966f53('0x77')](respondWithResult(_0x417b0f,null))[_0x966f53('0x4')](handleError(_0x417b0f,null));},exports[_0x39246c('0xd9')]=function(_0x4a1ace,_0x57c895){const _0x4eefd6=_0x39246c,_0x292bb7=_0x4a1ace[_0x4eefd6('0xa4')]['channel'];return db[_0x4eefd6('0xd3')]['findOne']({'where':{'id':_0x4a1ace['params']['id']},'attributes':['id',_0x4eefd6('0x7e'),'role',_0x4eefd6('0xec'),'loginInPause',_0x4eefd6('0x86'),'interface']})[_0x4eefd6('0x77')](handleEntityNotFound(_0x57c895,null))[_0x4eefd6('0x77')](function(_0x5cb9f4){const _0x5de373=_0x4eefd6;if(_0x5cb9f4){if(!utils[_0x5de373('0x128')](_0x292bb7))throw new ValidationError(_0x5de373('0x80'));return _0x5cb9f4[_0x5de373('0x10e')+_[_0x5de373('0x82')](_0x292bb7['toLowerCase']())+'Queues'](_0x4a1ace[_0x5de373('0xa4')][_0x5de373('0x97')],{'through':{'penalty':_0x4a1ace[_0x5de373('0xa4')][_0x5de373('0xf1')]||0x0}})[_0x5de373('0x77')](function(_0x3adc6e){const _0x1338f2=_0x5de373;for(let _0x4a513c=0x0;_0x4a513c<_0x4a1ace[_0x1338f2('0xa4')][_0x1338f2('0x97')]['length'];_0x4a513c+=0x1){const _0x2121cc={'UserId':_0x4a1ace[_0x1338f2('0x116')]['id']};_0x2121cc[_[_0x1338f2('0x82')](_0x292bb7[_0x1338f2('0xa9')]())+_0x1338f2('0xaa')]=_0x4a1ace[_0x1338f2('0xa4')]['ids'][_0x4a513c],socket['emit'](_0x1338f2('0xd')+_['capitalize'](_0x292bb7[_0x1338f2('0xa9')]())+_0x1338f2('0x48'),_0x2121cc);}return _0x3adc6e;})[_0x5de373('0x77')](function(){const _0x4df9fb=_0x5de373;if(_0x292bb7===_0x4df9fb('0x88'))return db['VoiceQueue'][_0x4df9fb('0x40')]({'where':{'id':_0x4a1ace[_0x4df9fb('0xa4')][_0x4df9fb('0x97')]||[]},'raw':!![],'attributes':['id',_0x4df9fb('0x7e')]});})[_0x5de373('0x77')](function(_0x53e57a){const _0x1b7e73=_0x5de373,_0x49ae3e=_0x5cb9f4[_0x1b7e73('0x125')]({'plain':!![]}),_0x50612e=[];if(_0x292bb7==='voice'&&_0x49ae3e[_0x1b7e73('0x11c')]===_0x1b7e73('0x9f')&&_0x49ae3e[_0x1b7e73('0xec')]){for(let _0x3aef33=0x0;_0x3aef33<_0x53e57a[_0x1b7e73('0x15d')];_0x3aef33+=0x1){_0x50612e['push']({'membername':_0x49ae3e[_0x1b7e73('0x7e')],'UserId':_0x49ae3e['id'],'queue_name':_0x53e57a[_0x3aef33]['name'],'VoiceQueueId':_0x53e57a[_0x3aef33]['id'],'interface':_[_0x1b7e73('0x15')](_0x49ae3e[_0x1b7e73('0xc6')])?util['format'](_0x1b7e73('0x93'),_0x49ae3e[_0x1b7e73('0x7e')]):_0x49ae3e[_0x1b7e73('0xc6')],'paused':_0x49ae3e[_0x1b7e73('0x86')]||![],'penalty':_0x4a1ace['body'][_0x1b7e73('0xf1')]||0x0});}return Promise[_0x1b7e73('0xe1')](_0x50612e['map'](_0x483d7a=>{const _0x5631e0=_0x1b7e73;return db[_0x5631e0('0x3b')][_0x5631e0('0x32')](_0x483d7a);}));}return _0x5cb9f4;});}})[_0x4eefd6('0x77')](respondWithStatusCode(_0x57c895,null))['catch'](handleError(_0x57c895,null));},exports[_0x39246c('0x83')]=function(_0xf66ad8,_0x35ceae){const _0x2df29b=_0x39246c;let _0x3f3f32;return db[_0x2df29b('0xd3')][_0x2df29b('0x13b')]({'where':{'id':_0xf66ad8[_0x2df29b('0x116')]['id']},'attributes':['id','name','role']})[_0x2df29b('0x77')](handleEntityNotFound(_0x35ceae,null))['then'](function(_0x2c3884){const _0x3c0b78=_0x2df29b;if(_0x2c3884){_0x3f3f32=_0x2c3884;if(!_0xf66ad8['query']['channel']||!utils['isValidChannel'](_0xf66ad8[_0x3c0b78('0x26')][_0x3c0b78('0x73')]))throw new ValidationError('Unknown\x20channel');return _0x2c3884[_0x3c0b78('0xa7')+_['capitalize'](_0xf66ad8[_0x3c0b78('0x26')][_0x3c0b78('0x73')][_0x3c0b78('0xa9')]())+_0x3c0b78('0x118')](_0xf66ad8['query'][_0x3c0b78('0x97')]);}})[_0x2df29b('0x77')](function(_0x254d01){const _0x4c4677=_0x2df29b;for(let _0x33f8c7=0x0;_0x33f8c7<_0xf66ad8['query'][_0x4c4677('0x97')][_0x4c4677('0x15d')];_0x33f8c7+=0x1){const _0xd79625={'UserId':_0xf66ad8[_0x4c4677('0x116')]['id']};_0xd79625[_[_0x4c4677('0x82')](_0xf66ad8[_0x4c4677('0x26')][_0x4c4677('0x73')]['toLowerCase']())+_0x4c4677('0xaa')]=_0xf66ad8[_0x4c4677('0x26')][_0x4c4677('0x97')][_0x33f8c7],socket[_0x4c4677('0x140')]('user'+_[_0x4c4677('0x82')](_0xf66ad8['query']['channel'][_0x4c4677('0xa9')]())+_0x4c4677('0x4d'),_0xd79625);}return _0x254d01;})[_0x2df29b('0x77')](function(){const _0x52f435=_0x2df29b;if(_0xf66ad8['query'][_0x52f435('0x73')]===_0x52f435('0x88'))return db[_0x52f435('0x3b')][_0x52f435('0x155')]({'where':{'UserId':_0xf66ad8[_0x52f435('0x116')]['id'],'VoiceQueueId':_0xf66ad8[_0x52f435('0x26')][_0x52f435('0x97')]},'individualHooks':!![]})[_0x52f435('0x77')](function(){return _0x3f3f32;});return _0x3f3f32;})['then'](respondWithStatusCode(_0x35ceae,null))['catch'](handleError(_0x35ceae,null));},exports[_0x39246c('0xa1')]=function(_0x348531,_0x440c60){const _0xbdcda=_0x39246c;return _0x348531[_0xbdcda('0xa4')]['userpic']=_0x348531[_0xbdcda('0x7b')][_0xbdcda('0x5e')],db['User']['findOne']({'where':{'id':_0x348531[_0xbdcda('0x116')]['id']}})[_0xbdcda('0x77')](handleEntityNotFound(_0x440c60,null))[_0xbdcda('0x77')](saveUpdates(_0x348531[_0xbdcda('0xa4')],null))[_0xbdcda('0x77')](respondWithResult(_0x440c60,null))[_0xbdcda('0x4')](handleError(_0x440c60,null));},exports[_0x39246c('0x136')]=function(_0x290d6a,_0x59b62d){const _0x456719=_0x39246c,_0x5605d2=path[_0x456719('0x8e')](config[_0x456719('0xac')],'server/files/images/logos/default_profile.png');return db[_0x456719('0xd3')]['findOne']({'where':{'id':_0x290d6a[_0x456719('0x116')]['id']},'attributes':['id',_0x456719('0x162')],'raw':!![]})[_0x456719('0x77')](handleEntityNotFound(_0x59b62d,null))['then'](function(_0x146d33){const _0x47101e=_0x456719;if(_0x146d33){if(_[_0x47101e('0x15')](_0x146d33[_0x47101e('0x162')]))return _0x59b62d[_0x47101e('0xda')](_0x5605d2);else{if(!fs[_0x47101e('0x66')](path['join'](config[_0x47101e('0xac')],_0x47101e('0x8b'),_0x146d33['userpic'])))return _0x59b62d[_0x47101e('0xda')](_0x5605d2);return _0x59b62d['download'](path[_0x47101e('0x8e')](config['root'],_0x47101e('0x8b'),_0x146d33[_0x47101e('0x162')]));}}})[_0x456719('0x4')](handleError(_0x59b62d,null));},exports['getContacts']=function(_0x257528,_0x174f51){const _0x24e27a=_0x39246c;let _0x24acb3={};const _0xa3bed5={};let _0x4b3d56,_0x2428ed;return db[_0x24e27a('0xd3')]['findOne']({'where':{'id':_0x257528[_0x24e27a('0x116')]['id']}})[_0x24e27a('0x77')](handleEntityNotFound(_0x174f51,null))[_0x24e27a('0x77')](function(_0x1e1b70){const _0x3699b6=_0x24e27a;if(_0x1e1b70)return _0x4b3d56=_0x1e1b70,_0xa3bed5['model']=_['keys'](db[_0x3699b6('0x165')][_0x3699b6('0xfd')]),_0xa3bed5[_0x3699b6('0x26')]=_['keys'](_0x257528['query']),_0xa3bed5[_0x3699b6('0x69')]=_[_0x3699b6('0x139')](_0xa3bed5[_0x3699b6('0xd2')],_0xa3bed5['query']),_0x24acb3[_0x3699b6('0x15f')]=_[_0x3699b6('0x139')](_0xa3bed5['model'],qs[_0x3699b6('0x84')](_0x257528[_0x3699b6('0x26')][_0x3699b6('0x84')])),_0x24acb3[_0x3699b6('0x15f')]=_0x24acb3[_0x3699b6('0x15f')][_0x3699b6('0x15d')]?_0x24acb3[_0x3699b6('0x15f')]:_0xa3bed5[_0x3699b6('0xd2')],_0x24acb3[_0x3699b6('0x91')]=qs[_0x3699b6('0x101')](_0x257528[_0x3699b6('0x26')][_0x3699b6('0x101')]),_0x24acb3[_0x3699b6('0xe2')]=qs[_0x3699b6('0x69')](_[_0x3699b6('0xbf')](_0x257528[_0x3699b6('0x26')],_0xa3bed5[_0x3699b6('0x69')])),_0x257528[_0x3699b6('0x26')]['filter']&&(_0x24acb3['where']=_[_0x3699b6('0x5')](_0x24acb3[_0x3699b6('0xe2')],{[Op['or']]:_['map'](_0x24acb3[_0x3699b6('0x15f')],function(_0x374b48){const _0x411488=_0x3699b6,_0x570e55={};return _0x570e55[_0x374b48]={[Op[_0x411488('0x154')]]:'%'+_0x257528[_0x411488('0x26')][_0x411488('0x1c')]+'%'},_0x570e55;})})),_0x24acb3=_[_0x3699b6('0x5')]({},_0x24acb3,_0x257528[_0x3699b6('0x1b')]),_0x4b3d56['getContacts'](_0x24acb3);})[_0x24e27a('0x77')](function(_0xec40b5){const _0x1e59d1=_0x24e27a;if(_0xec40b5)return _0x2428ed=_0xec40b5['length'],typeof _0x257528[_0x1e59d1('0x26')][_0x1e59d1('0x3d')]!==_0x1e59d1('0xf')&&(_0x24acb3[_0x1e59d1('0xc1')]=[{'model':db[_0x1e59d1('0x130')],'as':_0x1e59d1('0x78'),'required':![]},{'model':db[_0x1e59d1('0xb')],'as':_0x1e59d1('0x95'),'attributes':['id',_0x1e59d1('0x7e'),_0x1e59d1('0xae')],'where':_0x257528[_0x1e59d1('0x26')]['tag']?{'id':_0x257528[_0x1e59d1('0x26')]['tag']}:undefined,'required':_0x257528[_0x1e59d1('0x26')][_0x1e59d1('0x68')]?!![]:![]}]),typeof _0x257528['query'][_0x1e59d1('0x135')]===_0x1e59d1('0xf')&&(_0x24acb3[_0x1e59d1('0x4c')]=qs[_0x1e59d1('0x4c')](_0x257528[_0x1e59d1('0x26')][_0x1e59d1('0x4c')]),_0x24acb3[_0x1e59d1('0x123')]=qs[_0x1e59d1('0x123')](_0x257528['query'][_0x1e59d1('0x123')])),_0x4b3d56[_0x1e59d1('0x65')](_0x24acb3);})['then'](function(_0x4897e){if(_0x4897e)return _0x4897e?{'count':_0x2428ed,'rows':_0x4897e}:null;})[_0x24e27a('0x77')](respondWithResult(_0x174f51,null))[_0x24e27a('0x4')](handleError(_0x174f51,null));},exports[_0x39246c('0xa')]=function(_0x2d6b49,_0x5ba31f){const _0x16ff06=_0x39246c;let _0x41ea88,_0x1c530b={},_0x3d5f54;return db[_0x16ff06('0xd3')]['findOne']({'where':{'id':_0x2d6b49[_0x16ff06('0x116')]['id']},'attributes':['id','name',_0x16ff06('0x11c')]})[_0x16ff06('0x77')](handleEntityNotFound(_0x5ba31f,null))['then'](function(_0x105d50){const _0x1c177b=_0x16ff06;if(!utils['isValidChannel'](_0x2d6b49['query'][_0x1c177b('0x73')]))throw new ValidationError(_0x1c177b('0x80'));_0x41ea88=_0x105d50;const _0x162a02={};_0x162a02['model']=_[_0x1c177b('0xbe')](db[_[_0x1c177b('0x82')](_0x2d6b49[_0x1c177b('0x26')][_0x1c177b('0x73')])+_0x1c177b('0xa8')][_0x1c177b('0xfd')]),_0x162a02['query']=_[_0x1c177b('0xbe')](_0x2d6b49[_0x1c177b('0x26')]),_0x162a02[_0x1c177b('0x69')]=_['intersection'](_0x162a02['model'],_0x162a02[_0x1c177b('0x26')]),_0x1c530b[_0x1c177b('0x15f')]=_[_0x1c177b('0x139')](_0x162a02[_0x1c177b('0xd2')],qs['fields'](_0x2d6b49['query'][_0x1c177b('0x84')])),_0x1c530b['attributes']=_0x1c530b[_0x1c177b('0x15f')][_0x1c177b('0x15d')]?_0x1c530b['attributes']:_0x162a02['model'],_0x1c530b[_0x1c177b('0x91')]=qs[_0x1c177b('0x101')](_0x2d6b49[_0x1c177b('0x26')][_0x1c177b('0x101')]),_0x1c530b[_0x1c177b('0xe2')]=qs['filters'](_[_0x1c177b('0xbf')](_0x2d6b49[_0x1c177b('0x26')],_0x162a02[_0x1c177b('0x69')]));_0x2d6b49[_0x1c177b('0x26')][_0x1c177b('0x1c')]&&(_0x1c530b[_0x1c177b('0xe2')]=_['merge'](_0x1c530b[_0x1c177b('0xe2')],{[Op['or']]:_['map'](_0x1c530b[_0x1c177b('0x15f')],function(_0x5d79f0){const _0x1d8d30=_0x1c177b,_0x3f3c55={};return _0x3f3c55[_0x5d79f0]={[Op['like']]:'%'+_0x2d6b49['query'][_0x1d8d30('0x1c')]+'%'},_0x3f3c55;})}));_0x1c530b=_[_0x1c177b('0x5')]({},_0x1c530b,_0x2d6b49['options']);switch(_0x41ea88[_0x1c177b('0x11c')]){case _0x1c177b('0x108'):return db[_['capitalize'](_0x2d6b49[_0x1c177b('0x26')]['channel'])+'Queue'][_0x1c177b('0x40')](_0x1c530b);case _0x1c177b('0xd'):case'agent':return _0x41ea88['get'+_[_0x1c177b('0x82')](_0x2d6b49[_0x1c177b('0x26')]['channel'])+_0x1c177b('0x118')](_0x1c530b);default:throw new ValidationError('Unknown\x20role');}})[_0x16ff06('0x77')](function(_0x41f57a){const _0x12bbcb=_0x16ff06;_0x3d5f54=_0x41f57a['length'];typeof _0x2d6b49[_0x12bbcb('0x26')]['nolimit']==='undefined'&&(_0x1c530b[_0x12bbcb('0x4c')]=qs['limit'](_0x2d6b49[_0x12bbcb('0x26')]['limit']),_0x1c530b[_0x12bbcb('0x123')]=qs[_0x12bbcb('0x123')](_0x2d6b49[_0x12bbcb('0x26')][_0x12bbcb('0x123')]));switch(_0x41ea88[_0x12bbcb('0x11c')]){case _0x12bbcb('0x108'):return db[_['capitalize'](_0x2d6b49['query'][_0x12bbcb('0x73')])+_0x12bbcb('0xa8')][_0x12bbcb('0x40')](_0x1c530b);case'user':case _0x12bbcb('0x9f'):return _0x41ea88[_0x12bbcb('0x125')+_['capitalize'](_0x2d6b49[_0x12bbcb('0x26')]['channel'])+'Queues'](_0x1c530b);}})[_0x16ff06('0x77')](function(_0x293ff4){return{'count':_0x3d5f54,'rows':_0x293ff4};})['then'](respondWithResult(_0x5ba31f,null))[_0x16ff06('0x4')](handleError(_0x5ba31f,null));},exports['getVoiceQueuesRt']=function(_0xa3eb52,_0x7163cc){const _0x1ec5fc=_0x39246c;let _0x2daf96={};const _0x3bda44={};let _0x1c77aa,_0x9e44fa;return db['User'][_0x1ec5fc('0x13b')]({'where':{'id':_0xa3eb52[_0x1ec5fc('0x116')]['id']}})[_0x1ec5fc('0x77')](handleEntityNotFound(_0x7163cc,null))[_0x1ec5fc('0x77')](function(_0x3d5787){const _0x51d149=_0x1ec5fc;if(_0x3d5787)return _0x1c77aa=_0x3d5787,_0x3bda44[_0x51d149('0xd2')]=_[_0x51d149('0xbe')](db[_0x51d149('0x3b')][_0x51d149('0xfd')]),_0x3bda44[_0x51d149('0x26')]=_['keys'](_0xa3eb52['query']),_0x3bda44[_0x51d149('0x69')]=_['intersection'](_0x3bda44[_0x51d149('0xd2')],_0x3bda44[_0x51d149('0x26')]),_0x2daf96['attributes']=_['intersection'](_0x3bda44['model'],qs[_0x51d149('0x84')](_0xa3eb52['query'][_0x51d149('0x84')])),_0x2daf96[_0x51d149('0x15f')]=_0x2daf96[_0x51d149('0x15f')][_0x51d149('0x15d')]?_0x2daf96[_0x51d149('0x15f')]:_0x3bda44[_0x51d149('0xd2')],_0x2daf96[_0x51d149('0x91')]=qs[_0x51d149('0x101')](_0xa3eb52['query']['sort']),_0x2daf96[_0x51d149('0xe2')]=qs[_0x51d149('0x69')](_[_0x51d149('0xbf')](_0xa3eb52[_0x51d149('0x26')],_0x3bda44['filters'])),_0xa3eb52[_0x51d149('0x26')][_0x51d149('0x1c')]&&(_0x2daf96['where']=_[_0x51d149('0x5')](_0x2daf96[_0x51d149('0xe2')],{[Op['or']]:_[_0x51d149('0x102')](_0x2daf96['attributes'],function(_0x1cfb54){const _0x140163=_0x51d149,_0x37a3ec={};return _0x37a3ec[_0x1cfb54]={[Op[_0x140163('0x154')]]:'%'+_0xa3eb52[_0x140163('0x26')][_0x140163('0x1c')]+'%'},_0x37a3ec;})})),_0x2daf96=_[_0x51d149('0x5')]({},_0x2daf96,_0xa3eb52[_0x51d149('0x1b')]),_0x1c77aa[_0x51d149('0x1d')](_0x2daf96);})['then'](function(_0x5cd002){const _0x1e2e4b=_0x1ec5fc;if(_0x5cd002)return _0x9e44fa=_0x5cd002['length'],typeof _0xa3eb52[_0x1e2e4b('0x26')]['nolimit']===_0x1e2e4b('0xf')&&(_0x2daf96[_0x1e2e4b('0x4c')]=qs['limit'](_0xa3eb52[_0x1e2e4b('0x26')][_0x1e2e4b('0x4c')]),_0x2daf96['offset']=qs[_0x1e2e4b('0x123')](_0xa3eb52[_0x1e2e4b('0x26')]['offset'])),_0x1c77aa[_0x1e2e4b('0x1d')](_0x2daf96);})[_0x1ec5fc('0x77')](function(_0x5295bf){if(_0x5295bf)return _0x5295bf?{'count':_0x9e44fa,'rows':_0x5295bf}:null;})[_0x1ec5fc('0x77')](respondWithResult(_0x7163cc,null))['catch'](handleError(_0x7163cc,null));},exports['getGroups']=function(_0x650ae7,_0xea1d2a){const _0x4475f2=_0x39246c;let _0x222a85={};const _0x5d0bd6={};let _0x26190c,_0x151edc;return db[_0x4475f2('0xd3')][_0x4475f2('0x13b')]({'where':{'id':_0x650ae7['params']['id']}})[_0x4475f2('0x77')](handleEntityNotFound(_0xea1d2a,null))[_0x4475f2('0x77')](function(_0x25a625){const _0x2a8d9f=_0x4475f2;if(_0x25a625)return _0x26190c=_0x25a625,_0x5d0bd6[_0x2a8d9f('0xd2')]=_[_0x2a8d9f('0xbe')](db[_0x2a8d9f('0xa5')][_0x2a8d9f('0xfd')]),_0x5d0bd6[_0x2a8d9f('0x26')]=_[_0x2a8d9f('0xbe')](_0x650ae7['query']),_0x5d0bd6[_0x2a8d9f('0x69')]=_[_0x2a8d9f('0x139')](_0x5d0bd6[_0x2a8d9f('0xd2')],_0x5d0bd6[_0x2a8d9f('0x26')]),_0x222a85['attributes']=_[_0x2a8d9f('0x139')](_0x5d0bd6[_0x2a8d9f('0xd2')],qs[_0x2a8d9f('0x84')](_0x650ae7[_0x2a8d9f('0x26')][_0x2a8d9f('0x84')])),_0x222a85['attributes']=_0x222a85['attributes'][_0x2a8d9f('0x15d')]?_0x222a85[_0x2a8d9f('0x15f')]:_0x5d0bd6[_0x2a8d9f('0xd2')],_0x222a85[_0x2a8d9f('0x91')]=qs[_0x2a8d9f('0x101')](_0x650ae7[_0x2a8d9f('0x26')][_0x2a8d9f('0x101')]),_0x222a85[_0x2a8d9f('0xe2')]=qs[_0x2a8d9f('0x69')](_[_0x2a8d9f('0xbf')](_0x650ae7[_0x2a8d9f('0x26')],_0x5d0bd6[_0x2a8d9f('0x69')])),_0x650ae7[_0x2a8d9f('0x26')][_0x2a8d9f('0x1c')]&&(_0x222a85[_0x2a8d9f('0xe2')]=_[_0x2a8d9f('0x5')](_0x222a85[_0x2a8d9f('0xe2')],{[Op['or']]:_[_0x2a8d9f('0x102')](_0x222a85[_0x2a8d9f('0x15f')],function(_0x32fa05){const _0x18ff56=_0x2a8d9f,_0x4ece8b={};return _0x4ece8b[_0x32fa05]={[Op['like']]:'%'+_0x650ae7[_0x18ff56('0x26')][_0x18ff56('0x1c')]+'%'},_0x4ece8b;})})),_0x222a85=_[_0x2a8d9f('0x5')]({},_0x222a85,_0x650ae7[_0x2a8d9f('0x1b')]),_0x26190c[_0x2a8d9f('0x15b')](_0x222a85);})[_0x4475f2('0x77')](function(_0x5f0ad3){const _0x2edaaa=_0x4475f2;if(_0x5f0ad3)return _0x151edc=_0x5f0ad3['length'],typeof _0x650ae7[_0x2edaaa('0x26')][_0x2edaaa('0x135')]===_0x2edaaa('0xf')&&(_0x222a85[_0x2edaaa('0x4c')]=qs[_0x2edaaa('0x4c')](_0x650ae7[_0x2edaaa('0x26')][_0x2edaaa('0x4c')]),_0x222a85[_0x2edaaa('0x123')]=qs[_0x2edaaa('0x123')](_0x650ae7[_0x2edaaa('0x26')][_0x2edaaa('0x123')])),_0x26190c[_0x2edaaa('0x15b')](_0x222a85);})[_0x4475f2('0x77')](function(_0x3d3882){if(_0x3d3882)return _0x3d3882?{'count':_0x151edc,'rows':_0x3d3882}:null;})[_0x4475f2('0x77')](respondWithResult(_0xea1d2a,null))['catch'](handleError(_0xea1d2a,null));},exports[_0x39246c('0x14a')]=function(_0x4a9b2d,_0x3cce11){const _0x2a32d0=_0x39246c;let _0x3aa20b={'raw':!![],'where':{}};const _0x459998={},_0x1574b6={'count':0x0,'rows':[]};return db[_0x2a32d0('0xd3')][_0x2a32d0('0x13b')]({'where':{'id':_0x4a9b2d['params']['id']}})[_0x2a32d0('0x77')](handleEntityNotFound(_0x3cce11,null))[_0x2a32d0('0x77')](function(_0x17b5a5){const _0x15d1f2=_0x2a32d0;if(_0x17b5a5)return _0x459998['model']=_[_0x15d1f2('0xbe')](db[_0x15d1f2('0x8c')][_0x15d1f2('0xfd')]),_0x459998[_0x15d1f2('0x26')]=_[_0x15d1f2('0xbe')](_0x4a9b2d[_0x15d1f2('0x26')]),_0x459998[_0x15d1f2('0x69')]=_[_0x15d1f2('0x139')](_0x459998[_0x15d1f2('0xd2')],_0x459998[_0x15d1f2('0x26')]),_0x3aa20b['attributes']=_[_0x15d1f2('0x139')](_0x459998['model'],qs[_0x15d1f2('0x84')](_0x4a9b2d[_0x15d1f2('0x26')][_0x15d1f2('0x84')])),_0x3aa20b[_0x15d1f2('0x15f')]=_0x3aa20b[_0x15d1f2('0x15f')]['length']?_0x3aa20b[_0x15d1f2('0x15f')]:_0x459998[_0x15d1f2('0xd2')],typeof _0x4a9b2d[_0x15d1f2('0x26')][_0x15d1f2('0x135')]===_0x15d1f2('0xf')&&(_0x3aa20b[_0x15d1f2('0x4c')]=qs[_0x15d1f2('0x4c')](_0x4a9b2d[_0x15d1f2('0x26')][_0x15d1f2('0x4c')]),_0x3aa20b[_0x15d1f2('0x123')]=qs[_0x15d1f2('0x123')](_0x4a9b2d[_0x15d1f2('0x26')][_0x15d1f2('0x123')])),_0x3aa20b[_0x15d1f2('0x91')]=qs[_0x15d1f2('0x101')](_0x4a9b2d['query'][_0x15d1f2('0x101')]),_0x3aa20b['where']=qs['filters'](_[_0x15d1f2('0xbf')](_0x4a9b2d[_0x15d1f2('0x26')],_0x459998[_0x15d1f2('0x69')])),_0x3aa20b[_0x15d1f2('0xe2')][_0x15d1f2('0x33')]=_0x17b5a5['id'],_0x4a9b2d['query'][_0x15d1f2('0x1c')]&&(_0x3aa20b['where']=_[_0x15d1f2('0x5')](_0x3aa20b['where'],{[Op['or']]:_[_0x15d1f2('0x102')](_0x3aa20b[_0x15d1f2('0x15f')],function(_0x5430c3){const _0x2b7ad3=_0x15d1f2,_0x5b71ae={};return _0x5b71ae[_0x5430c3]={[Op[_0x2b7ad3('0x154')]]:'%'+_0x4a9b2d[_0x2b7ad3('0x26')]['filter']+'%'},_0x5b71ae;})})),_0x3aa20b=_['merge']({},_0x3aa20b,_0x4a9b2d[_0x15d1f2('0x1b')]),db['VoiceRecording'][_0x15d1f2('0x15a')]({'where':_0x3aa20b[_0x15d1f2('0xe2')]})[_0x15d1f2('0x77')](function(_0x199f1f){const _0x4cf30f=_0x15d1f2;return _0x1574b6[_0x4cf30f('0x15a')]=_0x199f1f,_0x4a9b2d[_0x4cf30f('0x26')][_0x4cf30f('0x3d')]&&(_0x3aa20b[_0x4cf30f('0xc1')]=[{'all':!![]}]),db['VoiceRecording'][_0x4cf30f('0x40')](_0x3aa20b);})['then'](function(_0x51eb10){const _0x3daf39=_0x15d1f2;return _0x1574b6[_0x3daf39('0xee')]=_0x51eb10,_0x1574b6;});})[_0x2a32d0('0x77')](respondWithFilteredResult(_0x3cce11,_0x3aa20b))[_0x2a32d0('0x4')](handleError(_0x3cce11,null));},exports[_0x39246c('0x49')]=function(_0x23da6d,_0x4aa376){const _0x574b19=_0x39246c;let _0x4b8b77={'raw':!![],'where':{}};const _0xa967ba={},_0x2b8b6a={'count':0x0,'rows':[]};return db['User']['findOne']({'where':{'id':_0x23da6d[_0x574b19('0x116')]['id']}})['then'](handleEntityNotFound(_0x4aa376,null))[_0x574b19('0x77')](function(_0xabd67){const _0x55e694=_0x574b19;if(_0xabd67)return _0xa967ba[_0x55e694('0xd2')]=_[_0x55e694('0xbe')](db['ScreenRecording'][_0x55e694('0xfd')]),_0xa967ba[_0x55e694('0x26')]=_[_0x55e694('0xbe')](_0x23da6d['query']),_0xa967ba[_0x55e694('0x69')]=_[_0x55e694('0x139')](_0xa967ba['model'],_0xa967ba['query']),_0x4b8b77[_0x55e694('0x15f')]=_[_0x55e694('0x139')](_0xa967ba[_0x55e694('0xd2')],qs[_0x55e694('0x84')](_0x23da6d[_0x55e694('0x26')][_0x55e694('0x84')])),_0x4b8b77[_0x55e694('0x15f')]=_0x4b8b77[_0x55e694('0x15f')][_0x55e694('0x15d')]?_0x4b8b77[_0x55e694('0x15f')]:_0xa967ba[_0x55e694('0xd2')],typeof _0x23da6d[_0x55e694('0x26')][_0x55e694('0x135')]===_0x55e694('0xf')&&(_0x4b8b77['limit']=qs[_0x55e694('0x4c')](_0x23da6d['query'][_0x55e694('0x4c')]),_0x4b8b77['offset']=qs[_0x55e694('0x123')](_0x23da6d[_0x55e694('0x26')]['offset'])),_0x4b8b77[_0x55e694('0x91')]=qs['sort'](_0x23da6d[_0x55e694('0x26')][_0x55e694('0x101')]),_0x4b8b77[_0x55e694('0xe2')]=qs[_0x55e694('0x69')](_[_0x55e694('0xbf')](_0x23da6d['query'],_0xa967ba['filters'])),_0x4b8b77[_0x55e694('0xe2')]['UserId']=_0xabd67['id'],_0x23da6d['query'][_0x55e694('0x1c')]&&(_0x4b8b77['where']=_['merge'](_0x4b8b77[_0x55e694('0xe2')],{[Op['or']]:_[_0x55e694('0x102')](_0x4b8b77[_0x55e694('0x15f')],function(_0x1ed958){const _0x22c919=_0x55e694,_0x4c48d9={};return _0x4c48d9[_0x1ed958]={[Op[_0x22c919('0x154')]]:'%'+_0x23da6d['query'][_0x22c919('0x1c')]+'%'},_0x4c48d9;})})),_0x4b8b77=_['merge']({},_0x4b8b77,_0x23da6d[_0x55e694('0x1b')]),db[_0x55e694('0x1f')][_0x55e694('0x15a')]({'where':_0x4b8b77[_0x55e694('0xe2')]})[_0x55e694('0x77')](function(_0x462d96){const _0x36a7a1=_0x55e694;return _0x2b8b6a['count']=_0x462d96,_0x23da6d[_0x36a7a1('0x26')][_0x36a7a1('0x3d')]&&(_0x4b8b77[_0x36a7a1('0xc1')]=[{'all':!![]}]),db[_0x36a7a1('0x1f')][_0x36a7a1('0x40')](_0x4b8b77);})[_0x55e694('0x77')](function(_0x41dc7d){return _0x2b8b6a['rows']=_0x41dc7d,_0x2b8b6a;});})['then'](respondWithFilteredResult(_0x4aa376,_0x4b8b77))[_0x574b19('0x4')](handleError(_0x4aa376,null));},exports[_0x39246c('0xc4')]=function(_0x58109d,_0x225c79){const _0xf311ca=_0x39246c;let _0x50cf0a={};const _0x1de729={};let _0x1d572a,_0x954c37;return db['User']['findOne']({'where':{'id':_0x58109d[_0xf311ca('0x116')]['id']}})['then'](handleEntityNotFound(_0x225c79,null))[_0xf311ca('0x77')](function(_0x679984){const _0x1e1419=_0xf311ca;if(_0x679984)return _0x1d572a=_0x679984,_0x1de729[_0x1e1419('0xd2')]=_['keys'](db[_0x1e1419('0x159')]['rawAttributes']),_0x1de729['query']=_[_0x1e1419('0xbe')](_0x58109d[_0x1e1419('0x26')]),_0x1de729[_0x1e1419('0x69')]=_[_0x1e1419('0x139')](_0x1de729[_0x1e1419('0xd2')],_0x1de729['query']),_0x50cf0a[_0x1e1419('0x15f')]=_['intersection'](_0x1de729['model'],qs[_0x1e1419('0x84')](_0x58109d[_0x1e1419('0x26')]['fields'])),_0x50cf0a[_0x1e1419('0x15f')]=_0x50cf0a['attributes'][_0x1e1419('0x15d')]?_0x50cf0a[_0x1e1419('0x15f')]:_0x1de729[_0x1e1419('0xd2')],_0x50cf0a[_0x1e1419('0x91')]=qs[_0x1e1419('0x101')](_0x58109d[_0x1e1419('0x26')][_0x1e1419('0x101')]),_0x50cf0a[_0x1e1419('0xe2')]=qs[_0x1e1419('0x69')](_[_0x1e1419('0xbf')](_0x58109d['query'],_0x1de729[_0x1e1419('0x69')])),_0x58109d[_0x1e1419('0x26')][_0x1e1419('0x1c')]&&(_0x50cf0a[_0x1e1419('0xe2')]=_[_0x1e1419('0x5')](_0x50cf0a[_0x1e1419('0xe2')],{[Op['or']]:_[_0x1e1419('0x102')](_0x50cf0a[_0x1e1419('0x15f')],function(_0x55cc03){const _0x5adecd=_0x1e1419,_0x1b3170={};return _0x1b3170[_0x55cc03]={[Op['like']]:'%'+_0x58109d[_0x5adecd('0x26')][_0x5adecd('0x1c')]+'%'},_0x1b3170;})})),_0x50cf0a=_[_0x1e1419('0x5')]({},_0x50cf0a,_0x58109d[_0x1e1419('0x1b')]),_0x1d572a['getChatInteractions'](_0x50cf0a);})[_0xf311ca('0x77')](function(_0x4959d3){const _0xb7ab49=_0xf311ca;if(_0x4959d3)return _0x954c37=_0x4959d3['length'],typeof _0x58109d['query'][_0xb7ab49('0x135')]===_0xb7ab49('0xf')&&(_0x50cf0a['limit']=qs[_0xb7ab49('0x4c')](_0x58109d['query'][_0xb7ab49('0x4c')]),_0x50cf0a[_0xb7ab49('0x123')]=qs[_0xb7ab49('0x123')](_0x58109d[_0xb7ab49('0x26')]['offset'])),_0x1d572a[_0xb7ab49('0xc4')](_0x50cf0a);})['then'](function(_0x204c36){if(_0x204c36)return _0x204c36?{'count':_0x954c37,'rows':_0x204c36}:null;})[_0xf311ca('0x77')](respondWithResult(_0x225c79,null))['catch'](handleError(_0x225c79,null));},exports[_0x39246c('0xe8')]=function(_0x48ae8e,_0x88b101){const _0x2d2b6d=_0x39246c;let _0x49cd69={};const _0xfddcec={};let _0x2a97a8,_0x1d5436;return db['User'][_0x2d2b6d('0x13b')]({'where':{'id':_0x48ae8e[_0x2d2b6d('0x116')]['id']}})[_0x2d2b6d('0x77')](handleEntityNotFound(_0x88b101,null))[_0x2d2b6d('0x77')](function(_0x11eb20){const _0x499713=_0x2d2b6d;if(_0x11eb20)return _0x2a97a8=_0x11eb20,_0xfddcec[_0x499713('0xd2')]=_[_0x499713('0xbe')](db['OpenchannelInteraction'][_0x499713('0xfd')]),_0xfddcec['query']=_[_0x499713('0xbe')](_0x48ae8e[_0x499713('0x26')]),_0xfddcec['filters']=_[_0x499713('0x139')](_0xfddcec[_0x499713('0xd2')],_0xfddcec['query']),_0x49cd69[_0x499713('0x15f')]=_[_0x499713('0x139')](_0xfddcec['model'],qs[_0x499713('0x84')](_0x48ae8e[_0x499713('0x26')][_0x499713('0x84')])),_0x49cd69[_0x499713('0x15f')]=_0x49cd69[_0x499713('0x15f')]['length']?_0x49cd69['attributes']:_0xfddcec[_0x499713('0xd2')],_0x49cd69[_0x499713('0x91')]=qs[_0x499713('0x101')](_0x48ae8e['query'][_0x499713('0x101')]),_0x49cd69[_0x499713('0xe2')]=qs[_0x499713('0x69')](_['pick'](_0x48ae8e[_0x499713('0x26')],_0xfddcec[_0x499713('0x69')])),_0x48ae8e[_0x499713('0x26')]['filter']&&(_0x49cd69[_0x499713('0xe2')]=_[_0x499713('0x5')](_0x49cd69['where'],{[Op['or']]:_[_0x499713('0x102')](_0x49cd69[_0x499713('0x15f')],function(_0x28c8bb){const _0x5ca24e=_0x499713,_0x4d489c={};return _0x4d489c[_0x28c8bb]={[Op[_0x5ca24e('0x154')]]:'%'+_0x48ae8e[_0x5ca24e('0x26')][_0x5ca24e('0x1c')]+'%'},_0x4d489c;})})),_0x49cd69=_[_0x499713('0x5')]({},_0x49cd69,_0x48ae8e['options']),_0x2a97a8[_0x499713('0xe8')](_0x49cd69);})[_0x2d2b6d('0x77')](function(_0x5e5333){const _0x8ab621=_0x2d2b6d;if(_0x5e5333)return _0x1d5436=_0x5e5333[_0x8ab621('0x15d')],typeof _0x48ae8e[_0x8ab621('0x26')][_0x8ab621('0x135')]===_0x8ab621('0xf')&&(_0x49cd69[_0x8ab621('0x4c')]=qs[_0x8ab621('0x4c')](_0x48ae8e[_0x8ab621('0x26')][_0x8ab621('0x4c')]),_0x49cd69[_0x8ab621('0x123')]=qs[_0x8ab621('0x123')](_0x48ae8e[_0x8ab621('0x26')][_0x8ab621('0x123')])),_0x2a97a8['getOpenchannelInteractions'](_0x49cd69);})[_0x2d2b6d('0x77')](function(_0x38b567){if(_0x38b567)return _0x38b567?{'count':_0x1d5436,'rows':_0x38b567}:null;})['then'](respondWithResult(_0x88b101,null))[_0x2d2b6d('0x4')](handleError(_0x88b101,null));},exports[_0x39246c('0xe3')]=function(_0x59da5a,_0x16371a){const _0x162f4f=_0x39246c;let _0x2bb12d={'raw':!![],'where':{}};const _0x7941fd={},_0x3fc928={'count':0x0,'rows':[]};return db[_0x162f4f('0xd3')][_0x162f4f('0x13b')]({'where':{'id':_0x59da5a['params']['id']}})[_0x162f4f('0x77')](handleEntityNotFound(_0x16371a,null))['then'](function(_0x334bde){const _0x4ae70f=_0x162f4f;if(_0x334bde)return _0x7941fd['model']=_['keys'](db[_0x4ae70f('0xcc')]['rawAttributes']),_0x7941fd[_0x4ae70f('0x26')]=_['keys'](_0x59da5a['query']),_0x7941fd[_0x4ae70f('0x69')]=_[_0x4ae70f('0x139')](_0x7941fd['model'],_0x7941fd[_0x4ae70f('0x26')]),_0x2bb12d['attributes']=_[_0x4ae70f('0x139')](_0x7941fd['model'],qs[_0x4ae70f('0x84')](_0x59da5a[_0x4ae70f('0x26')][_0x4ae70f('0x84')])),_0x2bb12d[_0x4ae70f('0x15f')]=_0x2bb12d[_0x4ae70f('0x15f')][_0x4ae70f('0x15d')]?_0x2bb12d[_0x4ae70f('0x15f')]:_0x7941fd['model'],typeof _0x59da5a[_0x4ae70f('0x26')][_0x4ae70f('0x135')]===_0x4ae70f('0xf')&&(_0x2bb12d['limit']=qs[_0x4ae70f('0x4c')](_0x59da5a[_0x4ae70f('0x26')][_0x4ae70f('0x4c')]),_0x2bb12d[_0x4ae70f('0x123')]=qs['offset'](_0x59da5a[_0x4ae70f('0x26')]['offset'])),_0x2bb12d[_0x4ae70f('0x91')]=qs[_0x4ae70f('0x101')](_0x59da5a[_0x4ae70f('0x26')][_0x4ae70f('0x101')]),_0x2bb12d['where']=qs[_0x4ae70f('0x69')](_['pick'](_0x59da5a[_0x4ae70f('0x26')],_0x7941fd[_0x4ae70f('0x69')])),_0x2bb12d[_0x4ae70f('0xe2')]['UserId']=_0x334bde['id'],_0x59da5a[_0x4ae70f('0x26')][_0x4ae70f('0x1c')]&&(_0x2bb12d[_0x4ae70f('0xe2')]=_[_0x4ae70f('0x5')](_0x2bb12d[_0x4ae70f('0xe2')],{[Op['or']]:_[_0x4ae70f('0x102')](_0x2bb12d[_0x4ae70f('0x15f')],function(_0x1ded7f){const _0x1eb4c6=_0x4ae70f,_0x299e1e={};return _0x299e1e[_0x1ded7f]={[Op[_0x1eb4c6('0x154')]]:'%'+_0x59da5a[_0x1eb4c6('0x26')][_0x1eb4c6('0x1c')]+'%'},_0x299e1e;})})),_0x2bb12d=_[_0x4ae70f('0x5')]({},_0x2bb12d,_0x59da5a[_0x4ae70f('0x1b')]),db[_0x4ae70f('0xcc')][_0x4ae70f('0x15a')]({'where':_0x2bb12d[_0x4ae70f('0xe2')]})['then'](function(_0x3b07cc){const _0x21ad70=_0x4ae70f;return _0x3fc928['count']=_0x3b07cc,_0x59da5a[_0x21ad70('0x26')][_0x21ad70('0x3d')]&&(_0x2bb12d['include']=[{'all':!![]}]),db[_0x21ad70('0xcc')][_0x21ad70('0x40')](_0x2bb12d);})[_0x4ae70f('0x77')](function(_0x8d04a7){const _0x4daf3f=_0x4ae70f;return _0x3fc928[_0x4daf3f('0xee')]=_0x8d04a7,_0x3fc928;});})['then'](respondWithFilteredResult(_0x16371a,_0x2bb12d))['catch'](handleError(_0x16371a,null));},exports['getSmsInteractions']=function(_0xc8d546,_0x33b02f){const _0x21b54e=_0x39246c;let _0x2e0b68={};const _0x3a8b0f={};let _0x440254,_0x3a8e11;return db['User'][_0x21b54e('0x13b')]({'where':{'id':_0xc8d546[_0x21b54e('0x116')]['id']}})['then'](handleEntityNotFound(_0x33b02f,null))[_0x21b54e('0x77')](function(_0x47d628){const _0x28f0ce=_0x21b54e;if(_0x47d628)return _0x440254=_0x47d628,_0x3a8b0f[_0x28f0ce('0xd2')]=_[_0x28f0ce('0xbe')](db[_0x28f0ce('0x9')][_0x28f0ce('0xfd')]),_0x3a8b0f[_0x28f0ce('0x26')]=_['keys'](_0xc8d546[_0x28f0ce('0x26')]),_0x3a8b0f[_0x28f0ce('0x69')]=_['intersection'](_0x3a8b0f['model'],_0x3a8b0f[_0x28f0ce('0x26')]),_0x2e0b68[_0x28f0ce('0x15f')]=_[_0x28f0ce('0x139')](_0x3a8b0f[_0x28f0ce('0xd2')],qs[_0x28f0ce('0x84')](_0xc8d546['query'][_0x28f0ce('0x84')])),_0x2e0b68['attributes']=_0x2e0b68[_0x28f0ce('0x15f')]['length']?_0x2e0b68['attributes']:_0x3a8b0f[_0x28f0ce('0xd2')],_0x2e0b68[_0x28f0ce('0x91')]=qs[_0x28f0ce('0x101')](_0xc8d546[_0x28f0ce('0x26')][_0x28f0ce('0x101')]),_0x2e0b68[_0x28f0ce('0xe2')]=qs['filters'](_[_0x28f0ce('0xbf')](_0xc8d546[_0x28f0ce('0x26')],_0x3a8b0f[_0x28f0ce('0x69')])),_0xc8d546[_0x28f0ce('0x26')][_0x28f0ce('0x1c')]&&(_0x2e0b68['where']=_[_0x28f0ce('0x5')](_0x2e0b68['where'],{[Op['or']]:_[_0x28f0ce('0x102')](_0x2e0b68['attributes'],function(_0x451013){const _0x4e18a1=_0x28f0ce,_0x2a9698={};return _0x2a9698[_0x451013]={[Op[_0x4e18a1('0x154')]]:'%'+_0xc8d546[_0x4e18a1('0x26')][_0x4e18a1('0x1c')]+'%'},_0x2a9698;})})),_0x2e0b68=_[_0x28f0ce('0x5')]({},_0x2e0b68,_0xc8d546[_0x28f0ce('0x1b')]),_0x440254[_0x28f0ce('0x124')](_0x2e0b68);})['then'](function(_0x35421c){const _0x6f5492=_0x21b54e;if(_0x35421c)return _0x3a8e11=_0x35421c[_0x6f5492('0x15d')],typeof _0xc8d546[_0x6f5492('0x26')]['nolimit']===_0x6f5492('0xf')&&(_0x2e0b68[_0x6f5492('0x4c')]=qs[_0x6f5492('0x4c')](_0xc8d546[_0x6f5492('0x26')][_0x6f5492('0x4c')]),_0x2e0b68[_0x6f5492('0x123')]=qs[_0x6f5492('0x123')](_0xc8d546[_0x6f5492('0x26')][_0x6f5492('0x123')])),_0x440254['getSmsInteractions'](_0x2e0b68);})[_0x21b54e('0x77')](function(_0x59710a){if(_0x59710a)return _0x59710a?{'count':_0x3a8e11,'rows':_0x59710a}:null;})[_0x21b54e('0x77')](respondWithResult(_0x33b02f,null))[_0x21b54e('0x4')](handleError(_0x33b02f,null));},exports[_0x39246c('0xd1')]=function(_0x26c450,_0x46c23c){const _0x73271d=_0x39246c;let _0x2184a6={};const _0x4762b5={};let _0x58b6b4,_0x123a31;return db[_0x73271d('0xd3')][_0x73271d('0x13b')]({'where':{'id':_0x26c450[_0x73271d('0x116')]['id']}})[_0x73271d('0x77')](handleEntityNotFound(_0x46c23c,null))[_0x73271d('0x77')](function(_0x587d26){const _0x36c5c7=_0x73271d;if(_0x587d26)return _0x58b6b4=_0x587d26,_0x4762b5['model']=_['keys'](db['FaxInteraction'][_0x36c5c7('0xfd')]),_0x4762b5[_0x36c5c7('0x26')]=_[_0x36c5c7('0xbe')](_0x26c450[_0x36c5c7('0x26')]),_0x4762b5[_0x36c5c7('0x69')]=_['intersection'](_0x4762b5[_0x36c5c7('0xd2')],_0x4762b5[_0x36c5c7('0x26')]),_0x2184a6[_0x36c5c7('0x15f')]=_[_0x36c5c7('0x139')](_0x4762b5['model'],qs['fields'](_0x26c450[_0x36c5c7('0x26')][_0x36c5c7('0x84')])),_0x2184a6[_0x36c5c7('0x15f')]=_0x2184a6[_0x36c5c7('0x15f')][_0x36c5c7('0x15d')]?_0x2184a6[_0x36c5c7('0x15f')]:_0x4762b5[_0x36c5c7('0xd2')],_0x2184a6[_0x36c5c7('0x91')]=qs['sort'](_0x26c450['query'][_0x36c5c7('0x101')]),_0x2184a6[_0x36c5c7('0xe2')]=qs[_0x36c5c7('0x69')](_[_0x36c5c7('0xbf')](_0x26c450[_0x36c5c7('0x26')],_0x4762b5[_0x36c5c7('0x69')])),_0x26c450[_0x36c5c7('0x26')][_0x36c5c7('0x1c')]&&(_0x2184a6[_0x36c5c7('0xe2')]=_[_0x36c5c7('0x5')](_0x2184a6[_0x36c5c7('0xe2')],{[Op['or']]:_[_0x36c5c7('0x102')](_0x2184a6[_0x36c5c7('0x15f')],function(_0x1d7654){const _0xdc01e3=_0x36c5c7,_0x44146d={};return _0x44146d[_0x1d7654]={[Op[_0xdc01e3('0x154')]]:'%'+_0x26c450['query']['filter']+'%'},_0x44146d;})})),_0x2184a6=_[_0x36c5c7('0x5')]({},_0x2184a6,_0x26c450['options']),_0x58b6b4[_0x36c5c7('0xd1')](_0x2184a6);})[_0x73271d('0x77')](function(_0x1d0464){const _0x1968ec=_0x73271d;if(_0x1d0464)return _0x123a31=_0x1d0464[_0x1968ec('0x15d')],typeof _0x26c450[_0x1968ec('0x26')][_0x1968ec('0x135')]==='undefined'&&(_0x2184a6['limit']=qs['limit'](_0x26c450[_0x1968ec('0x26')][_0x1968ec('0x4c')]),_0x2184a6[_0x1968ec('0x123')]=qs['offset'](_0x26c450[_0x1968ec('0x26')]['offset'])),_0x58b6b4[_0x1968ec('0xd1')](_0x2184a6);})[_0x73271d('0x77')](function(_0x1a2a9f){if(_0x1a2a9f)return _0x1a2a9f?{'count':_0x123a31,'rows':_0x1a2a9f}:null;})[_0x73271d('0x77')](respondWithResult(_0x46c23c,null))[_0x73271d('0x4')](handleError(_0x46c23c,null));},exports[_0x39246c('0x9c')]=function(_0x4fdcd3,_0xd7f791){const _0x109e51=_0x39246c;let _0x1e1a3a={};const _0x4333bc={};let _0x44b398,_0x1b2d94;return db['User'][_0x109e51('0x13b')]({'where':{'id':_0x4fdcd3[_0x109e51('0x116')]['id']}})[_0x109e51('0x77')](handleEntityNotFound(_0xd7f791,null))[_0x109e51('0x77')](function(_0x4e8645){const _0x48b47a=_0x109e51;if(_0x4e8645)return _0x44b398=_0x4e8645,_0x4333bc['model']=_[_0x48b47a('0xbe')](db[_0x48b47a('0x14')][_0x48b47a('0xfd')]),_0x4333bc['query']=_[_0x48b47a('0xbe')](_0x4fdcd3[_0x48b47a('0x26')]),_0x4333bc[_0x48b47a('0x69')]=_['intersection'](_0x4333bc[_0x48b47a('0xd2')],_0x4333bc[_0x48b47a('0x26')]),_0x1e1a3a[_0x48b47a('0x15f')]=_[_0x48b47a('0x139')](_0x4333bc[_0x48b47a('0xd2')],qs[_0x48b47a('0x84')](_0x4fdcd3[_0x48b47a('0x26')][_0x48b47a('0x84')])),_0x1e1a3a['attributes']=_0x1e1a3a[_0x48b47a('0x15f')][_0x48b47a('0x15d')]?_0x1e1a3a[_0x48b47a('0x15f')]:_0x4333bc[_0x48b47a('0xd2')],_0x1e1a3a['order']=qs[_0x48b47a('0x101')](_0x4fdcd3[_0x48b47a('0x26')][_0x48b47a('0x101')]),_0x1e1a3a[_0x48b47a('0xe2')]=qs[_0x48b47a('0x69')](_[_0x48b47a('0xbf')](_0x4fdcd3[_0x48b47a('0x26')],_0x4333bc[_0x48b47a('0x69')])),_0x4fdcd3[_0x48b47a('0x26')][_0x48b47a('0x1c')]&&(_0x1e1a3a[_0x48b47a('0xe2')]=_['merge'](_0x1e1a3a[_0x48b47a('0xe2')],{[Op['or']]:_[_0x48b47a('0x102')](_0x1e1a3a['attributes'],function(_0x4834f9){const _0x30abc3=_0x48b47a,_0x29f75c={};return _0x29f75c[_0x4834f9]={[Op[_0x30abc3('0x154')]]:'%'+_0x4fdcd3[_0x30abc3('0x26')][_0x30abc3('0x1c')]+'%'},_0x29f75c;})})),_0x1e1a3a=_[_0x48b47a('0x5')]({},_0x1e1a3a,_0x4fdcd3[_0x48b47a('0x1b')]),_0x44b398[_0x48b47a('0x9c')](_0x1e1a3a);})[_0x109e51('0x77')](function(_0x537dc7){const _0x345689=_0x109e51;if(_0x537dc7)return _0x1b2d94=_0x537dc7[_0x345689('0x15d')],typeof _0x4fdcd3[_0x345689('0x26')][_0x345689('0x135')]==='undefined'&&(_0x1e1a3a[_0x345689('0x4c')]=qs['limit'](_0x4fdcd3[_0x345689('0x26')][_0x345689('0x4c')]),_0x1e1a3a[_0x345689('0x123')]=qs[_0x345689('0x123')](_0x4fdcd3[_0x345689('0x26')][_0x345689('0x123')])),_0x44b398[_0x345689('0x9c')](_0x1e1a3a);})[_0x109e51('0x77')](function(_0xb7a25f){if(_0xb7a25f)return _0xb7a25f?{'count':_0x1b2d94,'rows':_0xb7a25f}:null;})['then'](respondWithResult(_0xd7f791,null))[_0x109e51('0x4')](handleError(_0xd7f791,null));},exports[_0x39246c('0x10d')]=function(_0x429cf9,_0x8ba682,_0x4fa3eb){const _0x45be80=_0x39246c;let _0x311774,_0x50215d,_0x58a8fe;const _0x19b889=!_[_0x45be80('0x15')](_0x429cf9[_0x45be80('0x116')]['id'])?_0x429cf9[_0x45be80('0x116')]['id']:!_[_0x45be80('0x15')](_0x429cf9[_0x45be80('0xd')]['id'])?_0x429cf9[_0x45be80('0xd')]['id']:null;return db[_0x45be80('0xd3')]['findOne']({'where':{'id':_0x19b889,'role':{[Op['or']]:['admin',_0x45be80('0xd'),_0x45be80('0x9f')]}},'attributes':['id',_0x45be80('0x7e'),'phone',_0x45be80('0x70'),_0x45be80('0x11c'),_0x45be80('0x23'),_0x45be80('0x39')]})[_0x45be80('0x77')](function(_0x4cba08){const _0x16f6b2=_0x45be80;if(_0x4cba08){if(_0x4cba08[_0x16f6b2('0x11c')]===_0x16f6b2('0x9f')){_0x311774=_0x4cba08;if(_0x429cf9[_0x16f6b2('0xa4')][_0x16f6b2('0xc6')])_0x58a8fe=util[_0x16f6b2('0x14c')](_0x16f6b2('0x98'),_0x311774[_0x429cf9[_0x16f6b2('0xa4')][_0x16f6b2('0xc6')]]);else _0x429cf9['body'][_0x16f6b2('0xdb')]?_0x58a8fe=util[_0x16f6b2('0x14c')]('SIP/%s',_0x429cf9[_0x16f6b2('0xa4')][_0x16f6b2('0xdb')]):_0x58a8fe=util['format']('SIP/%s',_0x311774['name']);return socket['to'](util[_0x16f6b2('0x14c')]('user:%s',_0x311774[_0x16f6b2('0x7e')]))[_0x16f6b2('0x140')](_0x16f6b2('0x8f'),{'ip':_0x429cf9['headers'][_0x16f6b2('0x146')]||_0x429cf9[_0x16f6b2('0x74')][_0x16f6b2('0x12c')]||_0x429cf9[_0x16f6b2('0x7d')][_0x16f6b2('0x12c')]||_0x429cf9[_0x16f6b2('0x74')]['socket'][_0x16f6b2('0x12c')]}),db['UserVoiceQueueRt'][_0x16f6b2('0x155')]({'where':{'membername':_0x311774['name']},'individualHooks':!![]});}}else throw new ValidationError(_0x16f6b2('0x61'));})['then'](function(){const _0x3a5241=_0x45be80;if(_0x311774)return _0x311774[_0x3a5241('0x147')]({'raw':!![]});})['then'](function(_0x3b1798){const _0x22a701=_0x45be80;if(_0x311774){if(_0x3b1798){_0x50215d=_0x3b1798;if(_0x50215d[_0x22a701('0x15d')]){const _0x15f124=_0x50215d[_0x22a701('0x102')](_0x4a5b03=>{const _0x27236=_0x22a701,_0x29c837={'membername':_0x311774[_0x27236('0x7e')],'UserId':_0x311774['id'],'queue_name':_0x4a5b03['name'],'VoiceQueueId':_0x4a5b03['id'],'interface':_0x58a8fe,'paused':_0x311774[_0x27236('0x39')]||![],'penalty':_0x4a5b03[_0x27236('0xc7')]||0x0};return db[_0x27236('0x3b')]['upsert'](_0x29c837);});return Promise['all'](_0x15f124);}}}})['then'](function(){const _0x40d2e0=_0x45be80;if(_0x311774)return db[_0x40d2e0('0x107')][_0x40d2e0('0x40')]({'where':{'membername':_0x311774['name'],'exitAt':null}});})['then'](function(_0x158b84){const _0x11653b=_0x45be80;if(_0x311774){const _0x4b51b9=[];return _0x158b84[_0x11653b('0x75')](function(_0x40a50b){const _0x7e6f12=_0x11653b;_0x4b51b9[_0x7e6f12('0x11e')](_0x40a50b[_0x7e6f12('0x14f')]({'exitAt':moment()[_0x7e6f12('0x14c')](_0x7e6f12('0xfc'))}));}),Promise[_0x11653b('0xe1')](_0x4b51b9);}})[_0x45be80('0x77')](function(){const _0x17cbfc=_0x45be80;if(_0x311774){const _0x43acf9=[],_0x5b258e=[],_0xa2b208=utils[_0x17cbfc('0xb5')](),_0x57526c={'membername':_0x311774[_0x17cbfc('0x7e')],'interface':_0x58a8fe,'enterAt':moment()[_0x17cbfc('0x14c')](_0x17cbfc('0xfc')),'role':_0x311774[_0x17cbfc('0x11c')],'internal':_0x311774[_0x17cbfc('0x23')]};return _0xa2b208[_0x17cbfc('0x75')](function(_0x4272ba){const _0x255129=_0x17cbfc;_0x43acf9[_0x255129('0x11e')](_[_0x255129('0x5')]({'channel':_0x4272ba,'type':_0x255129('0x28'),'data1':_0x429cf9['body'][_0x255129('0x18')],'data2':_0x58a8fe},_0x57526c)),_0x311774['loginInPause']&&_0x5b258e[_0x255129('0x11e')](_[_0x255129('0x5')]({'channel':_0x4272ba,'type':'PAUSE','data1':_0x255129('0x56')},_0x57526c));}),db['MemberReport'][_0x17cbfc('0x157')](_0x43acf9[_0x17cbfc('0x11d')](_0x5b258e),{'individualHooks':!![]});}})[_0x45be80('0x77')](function(){const _0x3c3c79=_0x45be80;if(_0x311774)return _0x311774[_0x3c3c79('0x14f')]({'online':!![],'lastLoginAt':moment()['format'](_0x3c3c79('0xfc')),'voicePause':_0x311774[_0x3c3c79('0x39')]||![],'mailPause':_0x311774['loginInPause']||![],'chatPause':_0x311774[_0x3c3c79('0x39')]||![],'faxPause':_0x311774[_0x3c3c79('0x39')]||![],'smsPause':_0x311774['loginInPause']||![],'openchannelPause':_0x311774[_0x3c3c79('0x39')]||![],'whatsappPause':_0x311774[_0x3c3c79('0x39')]||![],'pauseType':_0x311774[_0x3c3c79('0x39')]?_0x3c3c79('0x56'):null,'interface':_0x58a8fe,'lastPauseAt':moment()[_0x3c3c79('0x14c')](_0x3c3c79('0xfc'))});})[_0x45be80('0x77')](function(_0xe11cdf){const _0x5ed8b7=_0x45be80;return _0x429cf9[_0x5ed8b7('0x12f')]?_0x4fa3eb():Promise[_0x5ed8b7('0xf3')](_0xe11cdf)[_0x5ed8b7('0x77')](respondWithResult(_0x8ba682,null));})[_0x45be80('0x4')](handleError(_0x8ba682,null));},exports[_0x39246c('0xa6')]=function(_0xf76d01,_0x298697){const _0x517d20=_0x39246c;let _0x42e9b2;return db[_0x517d20('0xd3')][_0x517d20('0x13b')]({'where':{'id':_0xf76d01[_0x517d20('0x116')]['id'],'role':'agent'},'attributes':['id','name',_0x517d20('0x11c')]})['then'](handleEntityNotFound(_0x298697,null))[_0x517d20('0x77')](function(_0x236044){const _0x5bb3fa=_0x517d20;if(_0x236044)return _0x42e9b2=_0x236044,db[_0x5bb3fa('0x3b')]['destroy']({'where':{'membername':_0x42e9b2['name']},'individualHooks':!![]});})[_0x517d20('0x77')](function(){const _0x1e89a0=_0x517d20;return db[_0x1e89a0('0x107')][_0x1e89a0('0x40')]({'where':{'membername':_0x42e9b2[_0x1e89a0('0x7e')],'exitAt':null}});})[_0x517d20('0x77')](function(_0x325b7f){const _0x5b17bb=_0x517d20,_0x13e91e=[];return _0x325b7f[_0x5b17bb('0x75')](function(_0x3473b9){const _0x695760=_0x5b17bb;_0x13e91e[_0x695760('0x11e')](_0x3473b9[_0x695760('0x14f')]({'exitAt':moment()[_0x695760('0x14c')](_0x695760('0xfc'))}));}),Promise[_0x5b17bb('0xe1')](_0x13e91e);})[_0x517d20('0x77')](function(){const _0x149594=_0x517d20;return _0x42e9b2[_0x149594('0x14f')]({'online':![],'lastLoginAt':null,'voicePause':![],'mailPause':![],'chatPause':![],'faxPause':![],'smsPause':![],'openchannelPause':![],'whatsappPause':![],'interface':null});})[_0x517d20('0x77')](respondWithResult(_0x298697,null))[_0x517d20('0x4')](handleError(_0x298697,null));},exports[_0x39246c('0xd0')]=function(_0x3c947f,_0x46e737){const _0x3d896f=_0x39246c;let _0x3e371c;return db['UserVoiceQueueRt'][_0x3d896f('0x14f')]({'paused':0x1},{'where':{'UserId':_0x3c947f['params']['id']},'individualHooks':!![]})[_0x3d896f('0x77')](function(){const _0x4a40ce=_0x3d896f;return db[_0x4a40ce('0xd3')][_0x4a40ce('0x13b')]({'where':{'id':_0x3c947f[_0x4a40ce('0x116')]['id'],'role':_0x4a40ce('0x9f')},'attributes':['id',_0x4a40ce('0x7e'),_0x4a40ce('0x11c'),_0x4a40ce('0x23'),_0x4a40ce('0xc6')]});})['then'](handleEntityNotFound(_0x46e737,null))[_0x3d896f('0x77')](function(_0x5ec0b8){const _0xd87f3a=_0x3d896f;if(_0x5ec0b8)return _0x3e371c=_0x5ec0b8,respondWithRpcPromise(_0xd87f3a('0x4a'),_0xd87f3a('0xd0'),{'id':_0x3e371c['id'],'name':_0x3e371c[_0xd87f3a('0x7e')],'pause':!![]});})[_0x3d896f('0x77')](function(){const _0x5bdc16=_0x3d896f;if(_0x3e371c)return db[_0x5bdc16('0x107')][_0x5bdc16('0x40')]({'where':{'membername':_0x3e371c[_0x5bdc16('0x7e')],'type':_0x5bdc16('0x4b'),'exitAt':null}});})['then'](function(_0x18fa79){const _0xe3cd4b=_0x3d896f;if(_0x18fa79['length']){const _0x391274=moment()[_0xe3cd4b('0x14c')](_0xe3cd4b('0xfc'));for(let _0x153ab0=0x0,_0x397895=_0x18fa79[_0xe3cd4b('0x15d')];_0x153ab0<_0x397895;_0x153ab0++){_0x18fa79[_0x153ab0][_0xe3cd4b('0x14f')]({'exitAt':_0x391274});}}})[_0x3d896f('0x77')](function(){const _0x9f2fab=_0x3d896f,_0x1d330c=[],_0x54eabe=utils[_0x9f2fab('0xb5')]();return _0x54eabe[_0x9f2fab('0x75')](function(_0x4c43e7){const _0x1ba390=_0x9f2fab;_0x1d330c[_0x1ba390('0x11e')]({'channel':_0x4c43e7,'membername':_0x3e371c[_0x1ba390('0x7e')],'interface':_[_0x1ba390('0x15')](_0x3e371c[_0x1ba390('0xc6')])?util[_0x1ba390('0x14c')]('SIP/%s',_0x3e371c[_0x1ba390('0x7e')]):_0x3e371c['interface'],'type':_0x1ba390('0x4b'),'enterAt':moment()[_0x1ba390('0x14c')](_0x1ba390('0xfc')),'data1':_0x3c947f[_0x1ba390('0xa4')][_0x1ba390('0xe0')]||_0x1ba390('0x6f'),'role':_0x3e371c[_0x1ba390('0x11c')],'internal':_0x3e371c[_0x1ba390('0x23')]});}),db[_0x9f2fab('0x107')]['bulkCreate'](_0x1d330c,{'individualHooks':!![]});})['then'](function(){const _0x11a951=_0x3d896f;return _0x3e371c[_0x11a951('0x14f')]({'voicePause':!![],'mailPause':!![],'chatPause':!![],'faxPause':!![],'smsPause':!![],'whatsappPause':!![],'openchannelPause':!![],'pauseType':_0x3c947f[_0x11a951('0xa4')][_0x11a951('0xe0')]||_0x11a951('0x6f'),'lastPauseAt':moment()[_0x11a951('0x14c')](_0x11a951('0xfc'))});})[_0x3d896f('0x77')](respondWithResult(_0x46e737,null))[_0x3d896f('0x4')](handleError(_0x46e737,null));},exports['unpause']=function(_0x46bac7,_0x148d07){const _0x380ea4=_0x39246c;let _0x31e97d;return db[_0x380ea4('0xd3')][_0x380ea4('0x13b')]({'where':{'id':_0x46bac7[_0x380ea4('0x116')]['id']},'attributes':['id',_0x380ea4('0x7e'),_0x380ea4('0x11c'),'voicePause',_0x380ea4('0x150'),_0x380ea4('0xcf'),_0x380ea4('0x20'),_0x380ea4('0x58'),_0x380ea4('0xd6'),'whatsapppause',_0x380ea4('0x27'),_0x380ea4('0x12b')]})['then'](handleEntityNotFound(_0x148d07,null))['then'](function(_0x4d835d){const _0x5ecda3=_0x380ea4;if(_0x4d835d){_0x31e97d=_0x4d835d;if(_0x46bac7['body'][_0x5ecda3('0x73')]&&!utils['isValidChannel'](_0x46bac7[_0x5ecda3('0xa4')][_0x5ecda3('0x73')]))throw new ValidationError(_0x5ecda3('0x80'));switch(_0x46bac7[_0x5ecda3('0xa4')][_0x5ecda3('0x73')]){case _0x5ecda3('0x88'):return respondWithRpcPromise(_0x5ecda3('0x4a'),'unpause',{'id':_0x31e97d['id'],'name':_0x31e97d['name'],'pause':![]})[_0x5ecda3('0x77')](function(){const _0x27ca0d=_0x5ecda3;return db['UserVoiceQueueRt'][_0x27ca0d('0x14f')]({'paused':0x0},{'where':{'UserId':_0x31e97d['id']},'individualHooks':!![]});})[_0x5ecda3('0x77')](function(){const _0x4608de=_0x5ecda3;return db[_0x4608de('0x107')]['findOne']({'where':{'channel':_0x46bac7[_0x4608de('0xa4')]['channel'],'membername':_0x31e97d[_0x4608de('0x7e')],'type':_0x4608de('0x4b'),'exitAt':null}});})[_0x5ecda3('0x77')](function(_0x2b92d2){const _0x1d3ea7=_0x5ecda3;if(_0x2b92d2)return _0x2b92d2[_0x1d3ea7('0x14f')]({'exitAt':moment()[_0x1d3ea7('0x14c')](_0x1d3ea7('0xfc')),'data2':_0x1d3ea7('0x2f')},{'individualHooks':!![]});return null;})['then'](function(){const _0x3b8ed1=_0x5ecda3;return _0x31e97d[_0x3b8ed1('0x14f')]({'voicePause':![]});});case _0x5ecda3('0x104'):case _0x5ecda3('0x2'):case'fax':case _0x5ecda3('0x9a'):case'whatsapp':case _0x5ecda3('0xdc'):return db[_0x5ecda3('0x107')][_0x5ecda3('0x13b')]({'where':{'channel':_0x46bac7[_0x5ecda3('0xa4')][_0x5ecda3('0x73')],'membername':_0x31e97d['name'],'type':_0x5ecda3('0x4b'),'exitAt':null}})['then'](function(_0x59d53a){const _0xe5864f=_0x5ecda3;if(_0x59d53a)return _0x59d53a['update']({'exitAt':moment()[_0xe5864f('0x14c')]('YYYY-MM-DD\x20HH:mm:ss'),'data2':'manual'},{'individualHooks':!![]});return null;})[_0x5ecda3('0x77')](function(){const _0xe71535=_0x5ecda3,_0x5e0c85={};return _[_0xe71535('0x12d')](_0x5e0c85,util[_0xe71535('0x14c')](_0xe71535('0x60'),_0x46bac7['body'][_0xe71535('0x73')],_0xe71535('0xc8')),![]),_0x31e97d[_0xe71535('0x14f')](_0x5e0c85);});default:return respondWithRpcPromise(_0x5ecda3('0x4a'),_0x5ecda3('0xf2'),{'id':_0x31e97d['id'],'name':_0x31e97d[_0x5ecda3('0x7e')],'pause':![]})['then'](function(){const _0x3e585f=_0x5ecda3;return db[_0x3e585f('0x3b')][_0x3e585f('0x14f')]({'paused':0x0},{'where':{'UserId':_0x31e97d['id']}});})['then'](function(){const _0x223734=_0x5ecda3;return db[_0x223734('0x107')][_0x223734('0x40')]({'where':{'membername':_0x31e97d['name'],'type':_0x223734('0x4b'),'exitAt':null}});})[_0x5ecda3('0x77')](function(_0x454f1a){const _0x4481ba=_0x5ecda3,_0x520a50=[];return _0x454f1a['forEach'](function(_0x14d383){const _0x2f5d1c=a648_0x1eea;_0x520a50['push'](_0x14d383[_0x2f5d1c('0x14f')]({'exitAt':moment()[_0x2f5d1c('0x14c')]('YYYY-MM-DD\x20HH:mm:ss'),'data2':_0x2f5d1c('0x2f')}));}),Promise[_0x4481ba('0xe1')](_0x520a50);})[_0x5ecda3('0x77')](function(){const _0x9ac9db=_0x5ecda3;return _0x31e97d[_0x9ac9db('0x14f')]({'voicePause':![],'mailPause':![],'chatPause':![],'faxPause':![],'smsPause':![],'whatsappPause':![],'openchannelPause':![]});});}}})[_0x380ea4('0x77')](respondWithResult(_0x148d07,null))[_0x380ea4('0x4')](handleError(_0x148d07,null));},exports['getTeams']=function(_0x448c8f,_0x265490){const _0x272d4b=_0x39246c;let _0x1f44a2={};const _0x134c54={};let _0x4db57c,_0x198ed4;return db['User'][_0x272d4b('0x13b')]({'where':{'id':_0x448c8f[_0x272d4b('0x116')]['id']}})[_0x272d4b('0x77')](handleEntityNotFound(_0x265490,null))[_0x272d4b('0x77')](function(_0x487923){const _0x52aa08=_0x272d4b;if(_0x487923)return _0x4db57c=_0x487923,_0x134c54[_0x52aa08('0xd2')]=_[_0x52aa08('0xbe')](db[_0x52aa08('0x64')][_0x52aa08('0xfd')]),_0x134c54[_0x52aa08('0x26')]=_[_0x52aa08('0xbe')](_0x448c8f['query']),_0x134c54[_0x52aa08('0x69')]=_['intersection'](_0x134c54['model'],_0x134c54[_0x52aa08('0x26')]),_0x1f44a2[_0x52aa08('0x15f')]=_[_0x52aa08('0x139')](_0x134c54[_0x52aa08('0xd2')],qs[_0x52aa08('0x84')](_0x448c8f[_0x52aa08('0x26')][_0x52aa08('0x84')])),_0x1f44a2[_0x52aa08('0x15f')]=_0x1f44a2['attributes'][_0x52aa08('0x15d')]?_0x1f44a2[_0x52aa08('0x15f')]:_0x134c54[_0x52aa08('0xd2')],_0x1f44a2[_0x52aa08('0x91')]=qs[_0x52aa08('0x101')](_0x448c8f['query'][_0x52aa08('0x101')]),_0x1f44a2[_0x52aa08('0xe2')]=qs[_0x52aa08('0x69')](_['pick'](_0x448c8f[_0x52aa08('0x26')],_0x134c54['filters'])),_0x448c8f[_0x52aa08('0x26')]['filter']&&(_0x1f44a2[_0x52aa08('0xe2')]=_['merge'](_0x1f44a2[_0x52aa08('0xe2')],{[Op['or']]:_[_0x52aa08('0x102')](_0x1f44a2['attributes'],function(_0x3299e3){const _0x162dd5=_0x52aa08,_0x563aa7={};return _0x563aa7[_0x3299e3]={[Op['like']]:'%'+_0x448c8f[_0x162dd5('0x26')]['filter']+'%'},_0x563aa7;})})),_0x1f44a2=_[_0x52aa08('0x5')]({},_0x1f44a2,_0x448c8f['options']),_0x4db57c[_0x52aa08('0x8a')](_0x1f44a2);})[_0x272d4b('0x77')](function(_0xb55618){const _0x4d3fd5=_0x272d4b;if(_0xb55618)return _0x198ed4=_0xb55618[_0x4d3fd5('0x15d')],typeof _0x448c8f[_0x4d3fd5('0x26')][_0x4d3fd5('0x135')]===_0x4d3fd5('0xf')&&(_0x1f44a2['limit']=qs[_0x4d3fd5('0x4c')](_0x448c8f[_0x4d3fd5('0x26')][_0x4d3fd5('0x4c')]),_0x1f44a2[_0x4d3fd5('0x123')]=qs[_0x4d3fd5('0x123')](_0x448c8f[_0x4d3fd5('0x26')]['offset'])),_0x4db57c[_0x4d3fd5('0x8a')](_0x1f44a2);})['then'](function(_0x3ca4af){if(_0x3ca4af)return _0x3ca4af?{'count':_0x198ed4,'rows':_0x3ca4af}:null;})['then'](respondWithResult(_0x265490,null))[_0x272d4b('0x4')](handleError(_0x265490,null));},exports['addTeams']=function(_0x55d319,_0x22bfa8){const _0x35fcaa=_0x39246c;return db[_0x35fcaa('0xd3')][_0x35fcaa('0x13b')]({'where':{'id':_0x55d319['params']['id']}})[_0x35fcaa('0x77')](handleEntityNotFound(_0x22bfa8,null))[_0x35fcaa('0x77')](function(_0x2f3bea){const _0x45170c=_0x35fcaa;if(_0x2f3bea){const _0x1257ac=_0x2f3bea[_0x45170c('0x125')]({'plain':!![]});return _0x2f3bea[_0x45170c('0xb4')](_0x55d319['body']['ids'],_['omit'](_0x55d319[_0x45170c('0xa4')],[_0x45170c('0x97'),'id'])||{})[_0x45170c('0x77')](function(){const _0x82fff6=_0x45170c;for(let _0x4c6a92=0x0;_0x4c6a92<_0x55d319['body'][_0x82fff6('0x97')][_0x82fff6('0x15d')];_0x4c6a92++){let _0x584fe4=[];db[_0x82fff6('0x64')]['findOne']({'where':{'id':_0x55d319[_0x82fff6('0xa4')]['ids'][_0x4c6a92]}})['then'](function(_0x5dd39d){const _0x77e97e=_0x82fff6;return _0x584fe4[_0x77e97e('0x11e')](_0x5dd39d[_0x77e97e('0x147')]()[_0x77e97e('0x77')](function(_0x16f042){const _0x1267c3=_0x77e97e;for(let _0x3e072c=0x0;_0x3e072c<_0x16f042[_0x1267c3('0x15d')];_0x3e072c++){_0x16f042[_0x3e072c][_0x1267c3('0x14b')]('channel','Voice');}return _0x16f042;})),_0x584fe4[_0x77e97e('0x11e')](_0x5dd39d[_0x77e97e('0x113')]()[_0x77e97e('0x77')](function(_0xf1f02c){const _0x1f5b0b=_0x77e97e;for(let _0x31c6d2=0x0;_0x31c6d2<_0xf1f02c[_0x1f5b0b('0x15d')];_0x31c6d2++){_0xf1f02c[_0x31c6d2][_0x1f5b0b('0x14b')](_0x1f5b0b('0x73'),'Chat');}return _0xf1f02c;})),_0x584fe4[_0x77e97e('0x11e')](_0x5dd39d[_0x77e97e('0x52')]()[_0x77e97e('0x77')](function(_0x229fa5){const _0x1f4f70=_0x77e97e;for(let _0xa7c73a=0x0;_0xa7c73a<_0x229fa5['length'];_0xa7c73a++){_0x229fa5[_0xa7c73a][_0x1f4f70('0x14b')](_0x1f4f70('0x73'),_0x1f4f70('0x160'));}return _0x229fa5;})),_0x584fe4[_0x77e97e('0x11e')](_0x5dd39d[_0x77e97e('0x2e')]()[_0x77e97e('0x77')](function(_0x4ca064){const _0x3324b7=_0x77e97e;for(let _0x19a804=0x0;_0x19a804<_0x4ca064[_0x3324b7('0x15d')];_0x19a804++){_0x4ca064[_0x19a804][_0x3324b7('0x14b')](_0x3324b7('0x73'),_0x3324b7('0x7a'));}return _0x4ca064;})),_0x584fe4[_0x77e97e('0x11e')](_0x5dd39d[_0x77e97e('0x16')]()[_0x77e97e('0x77')](function(_0x4ba7f7){const _0xce0afd=_0x77e97e;for(let _0x3fc195=0x0;_0x3fc195<_0x4ba7f7['length'];_0x3fc195++){_0x4ba7f7[_0x3fc195][_0xce0afd('0x14b')]('channel',_0xce0afd('0x3f'));}return _0x4ba7f7;})),_0x584fe4[_0x77e97e('0x11e')](_0x5dd39d[_0x77e97e('0x6c')]()['then'](function(_0x272666){const _0x3fc53f=_0x77e97e;for(let _0x129bf0=0x0;_0x129bf0<_0x272666[_0x3fc53f('0x15d')];_0x129bf0++){_0x272666[_0x129bf0]['setDataValue'](_0x3fc53f('0x73'),_0x3fc53f('0x112'));}return _0x272666;})),_0x584fe4[_0x77e97e('0x11e')](_0x5dd39d[_0x77e97e('0xcd')]()[_0x77e97e('0x77')](function(_0x286d81){const _0x2afa79=_0x77e97e;for(let _0x5a934f=0x0;_0x5a934f<_0x286d81[_0x2afa79('0x15d')];_0x5a934f++){_0x286d81[_0x5a934f]['setDataValue']('channel','Openchannel');}return _0x286d81;})),Promise[_0x77e97e('0xe1')](_0x584fe4);})[_0x82fff6('0x77')](function(_0x1f8402){const _0x3a56f7=_0x82fff6,_0x17ab30=_[_0x3a56f7('0x47')](_0x1f8402);return _0x584fe4=[],db[_0x3a56f7('0x10c')][_0x3a56f7('0xfb')](function(_0x9475aa){const _0x7677a3=_0x3a56f7;for(let _0x1cbc80=0x0;_0x1cbc80<_0x17ab30[_0x7677a3('0x15d')];_0x1cbc80++){_0x584fe4[_0x7677a3('0x11e')](_0x17ab30[_0x1cbc80][_0x7677a3('0x46')](_0x1257ac['id']),{'transaction':_0x9475aa});}return Promise['all'](_0x584fe4)[_0x7677a3('0x77')](function(){const _0x1c2e9a=_0x7677a3;if(!_0x1257ac['online'])return;const _0x5de2c0=_['filter'](_0x17ab30,function(_0x2de9c3){const _0x3d2f13=a648_0x1eea;return _0x2de9c3[_0x3d2f13('0x13c')]('channel')===_0x3d2f13('0x2d');});return Promise[_0x1c2e9a('0xe1')](_0x5de2c0[_0x1c2e9a('0x102')](_0x2d14c5=>{const _0x249e1c=_0x1c2e9a;return db[_0x249e1c('0x3b')][_0x249e1c('0x32')]({'membername':_0x1257ac[_0x249e1c('0x7e')],'UserId':_0x1257ac['id'],'queue_name':_0x2d14c5[_0x249e1c('0x7e')],'VoiceQueueId':_0x2d14c5['id'],'interface':_[_0x249e1c('0x15')](_0x1257ac[_0x249e1c('0xc6')])?util[_0x249e1c('0x14c')](_0x249e1c('0x93'),_0x1257ac[_0x249e1c('0x7e')]):_0x1257ac['interface'],'paused':_0x1257ac[_0x249e1c('0x86')]||![],'penalty':_0x1257ac[_0x249e1c('0xf1')]},{'transaction':_0x9475aa});}));})[_0x7677a3('0x77')](function(){const _0x2d7966=_0x7677a3;for(let _0x575539=0x0;_0x575539<_0x17ab30[_0x2d7966('0x15d')];_0x575539++){const _0x28e4bc=_0x17ab30[_0x575539][_0x2d7966('0x13c')]('channel'),_0x10854e=_0x28e4bc+_0x2d7966('0xaa');socket[_0x2d7966('0x140')]('user'+_0x28e4bc+_0x2d7966('0x48'),{'UserId':_0x1257ac['id'],[_0x10854e]:_0x17ab30[_0x575539]['id']});}});});});}});}})['then'](respondWithStatusCode(_0x22bfa8,null))['catch'](handleError(_0x22bfa8,null));},exports[_0x39246c('0x103')]=function(_0x228d3f,_0x351020){const _0xb08499=_0x39246c;return db[_0xb08499('0xd3')][_0xb08499('0x13b')]({'where':{'id':_0x228d3f[_0xb08499('0x116')]['id']}})[_0xb08499('0x77')](handleEntityNotFound(_0x351020,null))[_0xb08499('0x77')](function(_0x50402f){const _0x1c9f26=_0xb08499;if(_0x50402f){const _0x2d442f=_0x50402f[_0x1c9f26('0x125')]({'plain':!![]}),_0x254a80=_0x228d3f[_0x1c9f26('0x26')][_0x1c9f26('0x97')];return _0x50402f[_0x1c9f26('0x103')](_0x254a80)[_0x1c9f26('0x77')](function(){const _0x9097cc=_0x1c9f26;for(let _0x46fbb0=0x0;_0x46fbb0<_0x254a80[_0x9097cc('0x15d')];_0x46fbb0++){let _0xd12051=[];db['Team']['findOne']({'where':{'id':_0x254a80[_0x46fbb0]}})['then'](function(_0x4d558a){const _0x1a5cb5=_0x9097cc;return _0xd12051[_0x1a5cb5('0x11e')](_0x4d558a[_0x1a5cb5('0x147')]()[_0x1a5cb5('0x77')](function(_0x3141c3){const _0x2dc99b=_0x1a5cb5;for(let _0x4e7456=0x0;_0x4e7456<_0x3141c3[_0x2dc99b('0x15d')];_0x4e7456++){_0x3141c3[_0x4e7456]['setDataValue'](_0x2dc99b('0x73'),'Voice');}return _0x3141c3;})),_0xd12051[_0x1a5cb5('0x11e')](_0x4d558a[_0x1a5cb5('0x113')]()['then'](function(_0x5e229e){const _0x1de168=_0x1a5cb5;for(let _0x3da15e=0x0;_0x3da15e<_0x5e229e[_0x1de168('0x15d')];_0x3da15e++){_0x5e229e[_0x3da15e][_0x1de168('0x14b')](_0x1de168('0x73'),_0x1de168('0x0'));}return _0x5e229e;})),_0xd12051[_0x1a5cb5('0x11e')](_0x4d558a[_0x1a5cb5('0x52')]()[_0x1a5cb5('0x77')](function(_0x302d15){const _0x1da3e0=_0x1a5cb5;for(let _0x19f349=0x0;_0x19f349<_0x302d15[_0x1da3e0('0x15d')];_0x19f349++){_0x302d15[_0x19f349][_0x1da3e0('0x14b')](_0x1da3e0('0x73'),_0x1da3e0('0x160'));}return _0x302d15;})),_0xd12051[_0x1a5cb5('0x11e')](_0x4d558a[_0x1a5cb5('0x2e')]()['then'](function(_0x46df39){const _0x27e54e=_0x1a5cb5;for(let _0x2e141c=0x0;_0x2e141c<_0x46df39[_0x27e54e('0x15d')];_0x2e141c++){_0x46df39[_0x2e141c]['setDataValue'](_0x27e54e('0x73'),_0x27e54e('0x7a'));}return _0x46df39;})),_0xd12051['push'](_0x4d558a['getWhatsappQueues']()['then'](function(_0x378269){const _0x2c8db0=_0x1a5cb5;for(let _0xd54bbb=0x0;_0xd54bbb<_0x378269['length'];_0xd54bbb++){_0x378269[_0xd54bbb][_0x2c8db0('0x14b')](_0x2c8db0('0x73'),_0x2c8db0('0x3f'));}return _0x378269;})),_0xd12051[_0x1a5cb5('0x11e')](_0x4d558a[_0x1a5cb5('0x6c')]()[_0x1a5cb5('0x77')](function(_0x1ab3ef){const _0x1b3f3a=_0x1a5cb5;for(let _0x4ec4ce=0x0;_0x4ec4ce<_0x1ab3ef['length'];_0x4ec4ce++){_0x1ab3ef[_0x4ec4ce]['setDataValue'](_0x1b3f3a('0x73'),_0x1b3f3a('0x112'));}return _0x1ab3ef;})),_0xd12051['push'](_0x4d558a['getOpenchannelQueues']()['then'](function(_0xe90618){const _0x327d62=_0x1a5cb5;for(let _0x45f88a=0x0;_0x45f88a<_0xe90618[_0x327d62('0x15d')];_0x45f88a++){_0xe90618[_0x45f88a][_0x327d62('0x14b')](_0x327d62('0x73'),_0x327d62('0x12'));}return _0xe90618;})),Promise[_0x1a5cb5('0xe1')](_0xd12051);})[_0x9097cc('0x77')](function(_0x4ba6b3){const _0x37b674=_0x9097cc,_0x2f7f80=_['flatten'](_0x4ba6b3);return _0xd12051=[],db[_0x37b674('0x10c')][_0x37b674('0xfb')](function(_0x6321d9){const _0x117e3b=_0x37b674;for(let _0x24180d=0x0;_0x24180d<_0x2f7f80[_0x117e3b('0x15d')];_0x24180d++){_0xd12051[_0x117e3b('0x11e')](_0x2f7f80[_0x24180d][_0x117e3b('0xff')](_0x2d442f['id']),{'transaction':_0x6321d9});}return Promise['all'](_0xd12051)[_0x117e3b('0x77')](function(){const _0x1cf51a=_0x117e3b;if(!_0x2d442f['online'])return;const _0x840a5f=_[_0x1cf51a('0x1c')](_0x2f7f80,function(_0x1e25d3){const _0x112e23=_0x1cf51a;return _0x1e25d3[_0x112e23('0x13c')](_0x112e23('0x73'))===_0x112e23('0x2d');});return Promise[_0x1cf51a('0xe1')](_0x840a5f[_0x1cf51a('0x102')](_0x293326=>{const _0x472988=_0x1cf51a;return db[_0x472988('0x3b')]['destroy']({'where':{'VoiceQueueId':_0x293326['id'],'UserId':_0x2d442f['id']},'transaction':_0x6321d9});}));})[_0x117e3b('0x77')](function(){const _0x4a6204=_0x117e3b;for(let _0x4c6b5f=0x0;_0x4c6b5f<_0x2f7f80['length'];_0x4c6b5f++){const _0x169ad5=_0x2f7f80[_0x4c6b5f][_0x4a6204('0x13c')](_0x4a6204('0x73')),_0x32b9ca=_0x169ad5+_0x4a6204('0xaa');socket[_0x4a6204('0x140')]('user'+_0x169ad5+_0x4a6204('0x4d'),{'UserId':_0x2d442f['id'],[_0x32b9ca]:_0x2f7f80[_0x4c6b5f]['id']});}});});});}});}})['then'](respondWithStatusCode(_0x351020,null))[_0xb08499('0x4')](handleError(_0x351020,null));},exports[_0x39246c('0x117')]=function(_0x4c27af,_0x5338cb){const _0xa79608=_0x39246c;let _0x4ac0b4={};const _0x52fe21={};let _0x2f89e9,_0x5d2d72;return db['User']['findOne']({'where':{'id':_0x4c27af[_0xa79608('0x116')]['id']}})['then'](handleEntityNotFound(_0x5338cb,null))[_0xa79608('0x77')](function(_0x1607d0){const _0x1324fe=_0xa79608;if(_0x1607d0)return _0x2f89e9=_0x1607d0,_0x52fe21[_0x1324fe('0xd2')]=_[_0x1324fe('0xbe')](db['CmList']['rawAttributes']),_0x52fe21[_0x1324fe('0x26')]=_[_0x1324fe('0xbe')](_0x4c27af[_0x1324fe('0x26')]),_0x52fe21['filters']=_['intersection'](_0x52fe21[_0x1324fe('0xd2')],_0x52fe21['query']),_0x4ac0b4[_0x1324fe('0x15f')]=_['intersection'](_0x52fe21[_0x1324fe('0xd2')],qs[_0x1324fe('0x84')](_0x4c27af['query'][_0x1324fe('0x84')])),_0x4ac0b4[_0x1324fe('0x15f')]=_0x4ac0b4[_0x1324fe('0x15f')][_0x1324fe('0x15d')]?_0x4ac0b4['attributes']:_0x52fe21[_0x1324fe('0xd2')],_0x4ac0b4[_0x1324fe('0x91')]=qs[_0x1324fe('0x101')](_0x4c27af[_0x1324fe('0x26')][_0x1324fe('0x101')]),_0x4ac0b4[_0x1324fe('0xe2')]=qs['filters'](_[_0x1324fe('0xbf')](_0x4c27af['query'],_0x52fe21[_0x1324fe('0x69')])),_0x4c27af['query'][_0x1324fe('0x1c')]&&(_0x4ac0b4['where']=_[_0x1324fe('0x5')](_0x4ac0b4[_0x1324fe('0xe2')],{[Op['or']]:_[_0x1324fe('0x102')](_0x4ac0b4['attributes'],function(_0x168b9d){const _0x5817b5=_0x1324fe,_0x35dbdf={};return _0x35dbdf[_0x168b9d]={[Op[_0x5817b5('0x154')]]:'%'+_0x4c27af[_0x5817b5('0x26')][_0x5817b5('0x1c')]+'%'},_0x35dbdf;})})),_0x4ac0b4=_['merge']({},_0x4ac0b4,_0x4c27af['options']),_0x2f89e9[_0x1324fe('0x117')](_0x4ac0b4);})[_0xa79608('0x77')](function(_0x201330){const _0x33435b=_0xa79608;if(_0x201330)return _0x5d2d72=_0x201330[_0x33435b('0x15d')],typeof _0x4c27af['query'][_0x33435b('0x135')]===_0x33435b('0xf')&&(_0x4ac0b4[_0x33435b('0x4c')]=qs['limit'](_0x4c27af[_0x33435b('0x26')][_0x33435b('0x4c')]),_0x4ac0b4['offset']=qs[_0x33435b('0x123')](_0x4c27af[_0x33435b('0x26')]['offset'])),_0x2f89e9['getLists'](_0x4ac0b4);})[_0xa79608('0x77')](function(_0x49cd4f){if(_0x49cd4f)return _0x49cd4f?{'count':_0x5d2d72,'rows':_0x49cd4f}:null;})[_0xa79608('0x77')](respondWithResult(_0x5338cb,null))[_0xa79608('0x4')](handleError(_0x5338cb,null));},exports['getAgents']=function(_0xc574e3,_0x4a470c){const _0x3ea741=_0x39246c;let _0x2386f4={};const _0x300bbd={};let _0x13a394;return db[_0x3ea741('0xd3')][_0x3ea741('0x13b')]({'where':{'id':_0xc574e3[_0x3ea741('0x116')]['id']}})[_0x3ea741('0x77')](handleEntityNotFound(_0x4a470c,null))[_0x3ea741('0x77')](function(_0x2445b9){const _0x56f4b8=_0x3ea741;if(_0x2445b9)return _0x13a394=_0x2445b9,_0x300bbd[_0x56f4b8('0xd2')]=_['keys'](db[_0x56f4b8('0xd3')][_0x56f4b8('0xfd')]),_0x300bbd[_0x56f4b8('0x26')]=_[_0x56f4b8('0xbe')](_0xc574e3[_0x56f4b8('0x26')]),_0x300bbd[_0x56f4b8('0x69')]=_['intersection'](_0x300bbd[_0x56f4b8('0xd2')],_0x300bbd['query']),_0x2386f4[_0x56f4b8('0x15f')]=_[_0x56f4b8('0x139')](_0x300bbd['model'],qs[_0x56f4b8('0x84')](_0xc574e3[_0x56f4b8('0x26')][_0x56f4b8('0x84')])),_0x2386f4[_0x56f4b8('0x15f')]=_0x2386f4[_0x56f4b8('0x15f')]['length']?_0x2386f4['attributes']:_0x300bbd[_0x56f4b8('0xd2')],_0x2386f4['order']=qs[_0x56f4b8('0x101')](_0xc574e3[_0x56f4b8('0x26')][_0x56f4b8('0x101')]),_0x2386f4[_0x56f4b8('0xe2')]=qs[_0x56f4b8('0x69')](_[_0x56f4b8('0xbf')](_0xc574e3['query'],_0x300bbd[_0x56f4b8('0x69')])),_0xc574e3[_0x56f4b8('0x26')][_0x56f4b8('0x1c')]&&(_0x2386f4[_0x56f4b8('0xe2')]=_['merge'](_0x2386f4[_0x56f4b8('0xe2')],{[Op['or']]:_[_0x56f4b8('0x102')](_0x2386f4[_0x56f4b8('0x15f')],function(_0xf41d90){const _0x432d82=_0x56f4b8,_0x5d6916={};return _0x5d6916[_0xf41d90]={[Op[_0x432d82('0x154')]]:'%'+_0xc574e3[_0x432d82('0x26')][_0x432d82('0x1c')]+'%'},_0x5d6916;})})),_0x2386f4[_0x56f4b8('0xd2')]=db[_0x56f4b8('0xd3')],_0x2386f4['as']=_0x56f4b8('0xab'),_0x2386f4=_[_0x56f4b8('0x5')]({},_0x2386f4,_0xc574e3[_0x56f4b8('0x1b')]),_0x13a394['getVoiceQueues']({'include':[_0x2386f4]});})[_0x3ea741('0x77')](function(_0x923f79){const _0x4653b0=_0x3ea741;if(_0x923f79){let _0x35e3ba={};const _0x4cb84f=[];for(let _0x27417c=0x0;_0x27417c<_0x923f79[_0x4653b0('0x15d')];_0x27417c+=0x1){for(let _0x44ee3b=0x0,_0x5134dd;_0x44ee3b<_0x923f79[_0x27417c][_0x4653b0('0xab')][_0x4653b0('0x15d')];_0x44ee3b+=0x1){_0x5134dd=_0x923f79[_0x27417c][_0x4653b0('0xab')][_0x44ee3b][_0x4653b0('0x125')]({'plain':!![]}),_0x35e3ba[_0x5134dd['id']]=_0x5134dd;}}_0x35e3ba=_['values'](_0x35e3ba);for(let _0x1b80d9=qs[_0x4653b0('0x123')](_0xc574e3[_0x4653b0('0x26')][_0x4653b0('0x123')]);_0x1b80d9<_0x35e3ba[_0x4653b0('0x15d')]&&_0x4cb84f[_0x4653b0('0x15d')]=_0x1bd22c?(_0x2110f6=_0x1bd22c,_0x4a92ec=0xc8):_0x4a92ec=0xce,_0x34588c[_0x32a0b9(0x299)](_0x4a92ec),_0x34588c[_0x32a0b9(0x2fc)](_0x32a0b9(0x303),_0x4bd9af+'-'+_0x2110f6+'/'+_0x1bd22c)[_0x32a0b9(0x328)](_0x34c93c);}return null;};}function saveUpdates(_0x56b4ee){return function(_0xba256e){const _0x29fc11=a775_0x6d7d;if(_0xba256e)return _0xba256e[_0x29fc11(0x218)](_0x56b4ee)[_0x29fc11(0x27e)](function(_0x8d219){return _0x8d219;});return null;};}function removeEntity(_0x2daa0c){return function(_0x47ad95){const _0x462d55=a775_0x6d7d;if(_0x47ad95)return _0x47ad95[_0x462d55(0x2f9)]()[_0x462d55(0x27e)](function(){const _0x487da1=_0x462d55,_0x10a8d9=_0x47ad95[_0x487da1(0x2df)]({'plain':!![]});if(_0x10a8d9[_0x487da1(0x2d5)]===_0x487da1(0x2c4))return;const _0x9de484=[{'name':_0x487da1(0x1f8),'value':_0x487da1(0x212),'ignore':!![]},{'name':_0x487da1(0x1da),'value':'agent','ignore':![]},{'name':_0x487da1(0x28e),'value':_0x487da1(0x265),'ignore':![]}],_0x3c9da4=_(_0x9de484)['filter'](_0x487da1(0x259))['map']('value')[_0x487da1(0x1ea)]();if(_[_0x487da1(0x308)](_0x3c9da4,_0x10a8d9[_0x487da1(0x2d5)]))return;const _0x22e4e9=_[_0x487da1(0x2a8)](_0x9de484,[_0x487da1(0x1ea),_0x10a8d9[_0x487da1(0x2d5)]])['name'];return db['UserProfileResource']['destroy']({'where':{'type':_0x22e4e9,'resourceId':_0x10a8d9['id']}})[_0x487da1(0x27e)](function(){return _0x47ad95;});})[_0x462d55(0x27e)](function(){const _0x1e4d53=_0x462d55;_0x2daa0c[_0x1e4d53(0x299)](0xcc)[_0x1e4d53(0x23d)]();});};}function handleEntityNotFound(_0x531b94){return function(_0x155541){const _0xaf9ea5=a775_0x6d7d;return!_0x155541&&_0x531b94[_0xaf9ea5(0x2d6)](0x194),_0x155541;};}function handleError(_0x641164,_0x5750f1){return _0x5750f1=_0x5750f1||0x1f4,function(_0x4c76ff){const _0x2c2577=a775_0x6d7d;logger[_0x2c2577(0x320)](_0x4c76ff[_0x2c2577(0x32a)]),_0x4c76ff[_0x2c2577(0x312)]&&delete _0x4c76ff[_0x2c2577(0x312)],_0x641164['status'](_0x5750f1)['send'](_0x4c76ff);};}function validateUser(_0x7342fa){return new Promise(function(_0xab040d,_0x411ec2){const _0x106d40=a775_0x6d7d;if(_0x7342fa[_0x106d40(0x245)])return _0xab040d(_0x7342fa);return db[_0x106d40(0x2b3)]['findByPk'](0x1)[_0x106d40(0x27e)](function(_0x45fb1b){const _0x4c695d=_0x106d40;if(_0x45fb1b['securePassword'])authService[_0x4c695d(0x215)](_0x7342fa['password']);db[_0x4c695d(0x290)][_0x4c695d(0x25b)]('internal')[_0x4c695d(0x27e)](function(_0x58c154){const _0x3a87c8=_0x4c695d;if(_[_0x3a87c8(0x2b6)](_0x58c154)){_0x7342fa[_0x3a87c8(0x245)]=_0x45fb1b[_0x3a87c8(0x2b7)]||0x1;return;}if(_['isNil'](_0x45fb1b[_0x3a87c8(0x2b7)])||_0x45fb1b[_0x3a87c8(0x2b7)]===_0x58c154){_0x7342fa[_0x3a87c8(0x245)]=_0x58c154+0x1;return;}if(_0x45fb1b[_0x3a87c8(0x2b7)]>_0x58c154){_0x7342fa[_0x3a87c8(0x245)]=_0x45fb1b[_0x3a87c8(0x2b7)];return;}return db['sequelize'][_0x3a87c8(0x2af)](_0x3a87c8(0x315),{'type':QueryTypes[_0x3a87c8(0x28a)]})[_0x3a87c8(0x27e)](function(_0x474771){const _0x1eb9d9=_0x3a87c8;if(_0x474771&&_0x474771[_0x1eb9d9(0x1e6)])for(let _0x16118d=0x0,_0x1278e2=_0x474771[_0x1eb9d9(0x1e6)];_0x16118d<_0x1278e2&&_['isNil'](_0x7342fa[_0x1eb9d9(0x245)]);_0x16118d++){if(_0x45fb1b[_0x1eb9d9(0x2b7)]<=_0x474771[_0x16118d][_0x1eb9d9(0x2d0)])_0x7342fa[_0x1eb9d9(0x245)]=_0x474771[_0x16118d]['from'];else _0x45fb1b[_0x1eb9d9(0x2b7)]>_0x474771[_0x16118d][_0x1eb9d9(0x2d0)]&&_0x45fb1b[_0x1eb9d9(0x2b7)]<=_0x474771[_0x16118d]['to']&&(_0x7342fa[_0x1eb9d9(0x245)]=_0x45fb1b[_0x1eb9d9(0x2b7)]);}return _['isNil'](_0x7342fa[_0x1eb9d9(0x245)])&&(_0x7342fa['internal']=_0x58c154+0x1),_0xab040d(_0x7342fa);});});})[_0x106d40(0x2a4)](function(_0x1a6431){_0x411ec2(_0x1a6431);});});}function updateUser(_0x4e05bc){return new Promise(function(_0xf759e5,_0x53f2af){const _0x17f8c3=a775_0x6d7d;try{_0x4e05bc['voicemail']&&(_0x4e05bc[_0x17f8c3(0x20a)]=_0x4e05bc['internal'],_0x4e05bc[_0x17f8c3(0x2f0)]={'mailbox':_0x4e05bc['internal'],'password':_0x4e05bc[_0x17f8c3(0x25c)],'fullname':_0x4e05bc['fullname'],'email':_0x4e05bc[_0x17f8c3(0x1ec)]});if(_0x4e05bc['role']===_0x17f8c3(0x228)){if(!_0x4e05bc['permissions'])_0x4e05bc[_0x17f8c3(0x2d1)]=[_0x17f8c3(0x2f4),_0x17f8c3(0x2da),_0x17f8c3(0x2cd),_0x17f8c3(0x22d),'110',_0x17f8c3(0x2a0),_0x17f8c3(0x1ff),_0x17f8c3(0x231),_0x17f8c3(0x234),_0x17f8c3(0x1fc),_0x17f8c3(0x323),_0x17f8c3(0x1e2),'111',_0x17f8c3(0x2e7)];}_0xf759e5(_0x4e05bc);}catch(_0x1bfb37){_0x53f2af(_0x1bfb37);}});}exports[a775_0x4b333b(0x284)]=function(_0x445dba,_0x48e95b){const _0x2ddfd0=a775_0x4b333b;let _0x1a350a={};const _0x206fc5={},_0x14eb22={'count':0x0,'rows':[]},_0x1227ab=_['map'](db['User'][_0x2ddfd0(0x216)],function(_0x2edab5){const _0x17fd8a=_0x2ddfd0;return{'name':_0x2edab5[_0x17fd8a(0x286)],'type':_0x2edab5[_0x17fd8a(0x2ff)][_0x17fd8a(0x30c)]};});_0x206fc5['model']=_['differenceBy'](_[_0x2ddfd0(0x20d)](_0x1227ab,_0x2ddfd0(0x312)),[_0x2ddfd0(0x25c),_0x2ddfd0(0x220)]),_0x206fc5['query']=_['keys'](_0x445dba[_0x2ddfd0(0x2af)]),_0x206fc5['filters']=_[_0x2ddfd0(0x2f8)](_0x206fc5[_0x2ddfd0(0x332)],_0x206fc5[_0x2ddfd0(0x2af)]),_0x1a350a[_0x2ddfd0(0x252)]=_['intersection'](_0x206fc5[_0x2ddfd0(0x332)],qs[_0x2ddfd0(0x1dd)](_0x445dba[_0x2ddfd0(0x2af)]['fields'])),_0x1a350a['attributes']=_0x1a350a['attributes']['length']?_0x1a350a[_0x2ddfd0(0x252)]:_0x206fc5[_0x2ddfd0(0x332)];typeof _0x445dba[_0x2ddfd0(0x2af)][_0x2ddfd0(0x2b1)]===_0x2ddfd0(0x1e3)&&(_0x1a350a['limit']=qs[_0x2ddfd0(0x2f6)](_0x445dba['query']['limit']),_0x1a350a[_0x2ddfd0(0x29e)]=qs[_0x2ddfd0(0x29e)](_0x445dba[_0x2ddfd0(0x2af)][_0x2ddfd0(0x29e)]));_0x1a350a[_0x2ddfd0(0x28b)]=qs[_0x2ddfd0(0x316)](_0x445dba[_0x2ddfd0(0x2af)][_0x2ddfd0(0x316)]),_0x1a350a['where']=qs[_0x2ddfd0(0x273)](_[_0x2ddfd0(0x222)](_0x445dba[_0x2ddfd0(0x2af)],_0x206fc5[_0x2ddfd0(0x273)]),_0x1227ab);_0x445dba[_0x2ddfd0(0x2af)][_0x2ddfd0(0x1f7)]&&(_0x1a350a['where']=_[_0x2ddfd0(0x1e5)](_0x1a350a[_0x2ddfd0(0x2e1)],{[Op['or']]:_['map'](_0x1227ab,function(_0x32261b){const _0x5917f6=_0x2ddfd0;if(_0x32261b['type']!==_0x5917f6(0x280))return where(fn('lower',col(_0x32261b[_0x5917f6(0x312)])),{'$like':fn(_0x5917f6(0x2e5),'%'+_0x445dba[_0x5917f6(0x2af)][_0x5917f6(0x1f7)]+'%')});})}));_0x1a350a=_[_0x2ddfd0(0x1e5)]({},_0x1a350a,_0x445dba[_0x2ddfd0(0x2bf)]);const _0x1455f4={'where':_0x1a350a[_0x2ddfd0(0x2e1)]};return db[_0x2ddfd0(0x290)][_0x2ddfd0(0x266)](_0x1455f4)[_0x2ddfd0(0x27e)](function(_0x3057f2){const _0x44b2c6=_0x2ddfd0;return _0x14eb22['count']=_0x3057f2,typeof _0x445dba[_0x44b2c6(0x2af)][_0x44b2c6(0x1d1)]!==_0x44b2c6(0x1e3)&&(_0x1a350a[_0x44b2c6(0x281)]=[{'all':!![]}]),db[_0x44b2c6(0x290)][_0x44b2c6(0x206)](_0x1a350a);})[_0x2ddfd0(0x27e)](function(_0x48e444){const _0x3b306f=_0x2ddfd0;return _0x14eb22[_0x3b306f(0x2ae)]=_0x48e444,_0x14eb22;})[_0x2ddfd0(0x27e)](respondWithFilteredResult(_0x48e95b,_0x1a350a))['catch'](handleError(_0x48e95b,null));},exports[a775_0x4b333b(0x2f7)]=function(_0x2a1016,_0x458436){const _0x147932=a775_0x4b333b;let _0x5216d0={'raw':![],'where':{'id':_0x2a1016['params']['id']}};const _0x3c10a5={};return _0x3c10a5[_0x147932(0x332)]=_[_0x147932(0x2e3)](_[_0x147932(0x2eb)](db[_0x147932(0x290)]['rawAttributes']),[_0x147932(0x25c),_0x147932(0x220)]),_0x3c10a5[_0x147932(0x2af)]=_[_0x147932(0x2eb)](_0x2a1016[_0x147932(0x2af)]),_0x3c10a5[_0x147932(0x273)]=_['intersection'](_0x3c10a5[_0x147932(0x332)],_0x3c10a5['query']),_0x5216d0[_0x147932(0x252)]=_['intersection'](_0x3c10a5[_0x147932(0x332)],qs[_0x147932(0x1dd)](_0x2a1016['query'][_0x147932(0x1dd)])),_0x5216d0['attributes']=_0x5216d0[_0x147932(0x252)][_0x147932(0x1e6)]?_0x5216d0[_0x147932(0x252)]:_0x3c10a5[_0x147932(0x332)],_0x2a1016[_0x147932(0x2af)][_0x147932(0x1d1)]&&(_0x5216d0['include']=[{'all':!![]}]),_0x5216d0=_[_0x147932(0x1e5)]({},_0x5216d0,_0x2a1016['options']),db[_0x147932(0x290)][_0x147932(0x2f3)](_0x5216d0)['then'](handleEntityNotFound(_0x458436,null))[_0x147932(0x27e)](respondWithResult(_0x458436,null))[_0x147932(0x2a4)](handleError(_0x458436,null));},exports[a775_0x4b333b(0x1f4)]=function(_0x3b94a1,_0x344cb1){const _0x5a322d=a775_0x4b333b,_0x4d14a2=_0x3b94a1[_0x5a322d(0x2ad)];let _0x4ec67a=[];if(_0x3b94a1['user']['role']===_0x5a322d(0x228))throw new Error(_0x5a322d(0x2dd));if(_[_0x5a322d(0x236)](_0x4d14a2,['role',_0x5a322d(0x212)])&&_0x3b94a1[_0x5a322d(0x212)][_0x5a322d(0x2d5)]!==_0x5a322d(0x2c4))throw new Error(_0x5a322d(0x267));if(_[_0x5a322d(0x236)](_0x4d14a2,[_0x5a322d(0x2d5),'admin'])&&_0x3b94a1[_0x5a322d(0x212)]['role']!==_0x5a322d(0x2c4))throw new Error(_0x5a322d(0x2c6));return licenseUtil[_0x5a322d(0x271)](_0x4d14a2)[_0x5a322d(0x27e)](function(){return validateUser(_0x4d14a2[0x0]);})['then'](function(){const _0x118d96=_0x5a322d;for(let _0x28b3bc=0x1;_0x28b3bc<_0x4d14a2[_0x118d96(0x1e6)];_0x28b3bc++){const _0x161a30=_0x4d14a2[_0x28b3bc-0x1][_0x118d96(0x245)];if(!_0x4d14a2[_0x28b3bc][_0x118d96(0x245)])_0x4d14a2[_0x28b3bc]['internal']=_0x161a30+0x1;_0x4ec67a[_0x118d96(0x229)](validateUser(_0x4d14a2[_0x28b3bc]));}return Promise[_0x118d96(0x2ab)](_0x4ec67a);})[_0x5a322d(0x27e)](function(){const _0x147175=_0x5a322d;_0x4ec67a=[];for(let _0x405efc=0x0;_0x405efc<_0x4d14a2[_0x147175(0x1e6)];_0x405efc++){_0x4ec67a[_0x147175(0x229)](updateUser(_0x4d14a2[_0x405efc]));}return Promise[_0x147175(0x2ab)](_0x4ec67a);})['then'](function(){const _0x1a9378=_0x5a322d;return _0x4ec67a=_0x4d14a2['map'](_0xf43693=>{const _0x2df732=a775_0x6d7d;return db[_0x2df732(0x290)][_0x2df732(0x32f)](_0xf43693,{'include':[{'model':db['VoiceMail'],'as':_0x2df732(0x2f0)}]})[_0x2df732(0x27e)](function(_0x10b59d){return _0xf43693['id']=_0x10b59d['id'],_0xf43693;});}),Promise[_0x1a9378(0x2ab)](_0x4ec67a);})['then'](function(_0x19f5a5){const _0x2b8afa=_0x5a322d;if(_0x3b94a1[_0x2b8afa(0x2ad)][_0x2b8afa(0x2d5)]===_0x2b8afa(0x212))return _0x19f5a5;if(_0x3b94a1[_0x2b8afa(0x212)][_0x2b8afa(0x2d5)]!=='user')return _0x19f5a5;const _0x1aad3a=_[_0x2b8afa(0x236)](_0x19f5a5,function(_0xb3f4c4){const _0x969193=_0x2b8afa;return _0xb3f4c4[_0x969193(0x2d5)]===_0x969193(0x228)||_0xb3f4c4[_0x969193(0x2d5)]===_0x969193(0x265);});if(!_0x1aad3a)return _0x19f5a5;return db[_0x2b8afa(0x2fd)][_0x2b8afa(0x206)]({'where':{'name':{[Op['or']]:[_0x2b8afa(0x1da),'Telephones']},'userProfileId':_0x3b94a1[_0x2b8afa(0x212)][_0x2b8afa(0x334)]},'raw':!![]})[_0x2b8afa(0x27e)](function(_0x7cc4d5){const _0x518165=_0x2b8afa;if(_['isEmpty'](_0x7cc4d5)||!_[_0x518165(0x236)](_0x7cc4d5,[_0x518165(0x2de),0x0]))return _0x19f5a5;_0x4ec67a=[];const _0x382e68=_(_0x7cc4d5)[_0x518165(0x20d)](function(_0x2aa19c){const _0x1493de=_0x518165;if(_0x2aa19c[_0x1493de(0x2de)]===0x1)return;return _0x2aa19c[_0x1493de(0x312)]===_0x1493de(0x1da)?_0x1493de(0x228):_0x1493de(0x265);})['compact']()[_0x518165(0x1ea)]();for(let _0x1d9687=0x0;_0x1d9687<_0x19f5a5[_0x518165(0x1e6)];_0x1d9687++){if(!_[_0x518165(0x308)](_0x382e68,_0x19f5a5[_0x1d9687][_0x518165(0x2d5)]))return;const _0x510ba2=_0x19f5a5[_0x1d9687][_0x518165(0x2d5)]===_0x518165(0x228)?_0x518165(0x1da):_0x518165(0x28e);_0x4ec67a[_0x518165(0x229)](db['UserProfileResource'][_0x518165(0x32f)]({'name':_0x19f5a5[_0x1d9687]['name'],'resourceId':_0x19f5a5[_0x1d9687]['id'],'type':_0x510ba2,'sectionId':_[_0x518165(0x2a8)](_0x7cc4d5,[_0x518165(0x312),_0x510ba2])['id']},{}));}return Promise[_0x518165(0x2ab)](_0x4ec67a);});})['then'](respondWithResult(_0x344cb1,0xc9))['catch'](handleError(_0x344cb1,null));},exports[a775_0x4b333b(0x218)]=function(_0x22fdb7,_0x1d37f9){const _0xdb2cb5=a775_0x4b333b;return _0x22fdb7[_0xdb2cb5(0x2ad)]['id']&&delete _0x22fdb7['body']['id'],delete _0x22fdb7[_0xdb2cb5(0x2ad)]['role'],db['User'][_0xdb2cb5(0x2f3)]({'where':{'id':_0x22fdb7[_0xdb2cb5(0x307)]['id']}})[_0xdb2cb5(0x27e)](handleEntityNotFound(_0x1d37f9,null))[_0xdb2cb5(0x27e)](saveUpdates(_0x22fdb7['body'],null))['then'](respondWithResult(_0x1d37f9,null))['catch'](handleError(_0x1d37f9,null));},exports[a775_0x4b333b(0x226)]=function(_0x4f5d80,_0x4ec3f0){const _0x5134be=a775_0x4b333b;return db['User'][_0x5134be(0x226)]()[_0x5134be(0x27e)](respondWithResult(_0x4ec3f0,null))[_0x5134be(0x2a4)](handleError(_0x4ec3f0,null));},exports[a775_0x4b333b(0x1d8)]=function(_0xab5c64,_0x433734){const _0x1c76b0=a775_0x4b333b;return db[_0x1c76b0(0x290)][_0x1c76b0(0x2f3)]({'where':{'id':_0xab5c64['params']['id']}})[_0x1c76b0(0x27e)](handleEntityNotFound(_0x433734,null))['then'](function(_0x55e48c){const _0x256dd4=_0x1c76b0;if(_0x55e48c)return _0x55e48c['addContacts'](_0xab5c64['body'][_0x256dd4(0x2ca)],{'through':_[_0x256dd4(0x275)](_0xab5c64[_0x256dd4(0x2ad)],['ids','id'])});})[_0x1c76b0(0x27e)](respondWithResult(_0x433734,null))[_0x1c76b0(0x2a4)](handleError(_0x433734,null));},exports['create']=function(_0x171129,_0x550fc9){const _0x584ff4=a775_0x4b333b;if(_0x171129[_0x584ff4(0x212)]['role']===_0x584ff4(0x228))throw new Error('Unauthorized');if(_0x171129[_0x584ff4(0x2ad)][_0x584ff4(0x2d5)]===_0x584ff4(0x212)&&_0x171129[_0x584ff4(0x212)][_0x584ff4(0x2d5)]!==_0x584ff4(0x2c4))throw new Error(_0x584ff4(0x267));if(_0x171129[_0x584ff4(0x2ad)]['role']===_0x584ff4(0x2c4)&&_0x171129[_0x584ff4(0x212)]['role']!==_0x584ff4(0x2c4))throw new Error(_0x584ff4(0x2c2));return licenseUtil[_0x584ff4(0x271)]([_0x171129[_0x584ff4(0x2ad)]])['then'](function(){const _0x3b2ec0=_0x584ff4;return validateUser(_0x171129[_0x3b2ec0(0x2ad)]);})[_0x584ff4(0x27e)](function(_0x4ca94b){const _0x2e49dc=_0x584ff4;return updateUser(_0x4ca94b)[_0x2e49dc(0x27e)](function(_0x363056){const _0x41b52b=_0x2e49dc;return _0x363056['role']===_0x41b52b(0x2c4)&&(_0x363056[_0x41b52b(0x2f1)]=_0x171129['user'][_0x41b52b(0x2f1)],delete _0x363056['userProfileId']),_0x363056;});})[_0x584ff4(0x27e)](function(_0x2f84a8){const _0xdccf66=_0x584ff4;return db[_0xdccf66(0x290)][_0xdccf66(0x32f)](_0x2f84a8,{'include':[{'model':db['VoiceMail'],'as':_0xdccf66(0x2f0)}]});})[_0x584ff4(0x27e)](function(_0x5c2bdd){const _0x2eaebb=_0x584ff4;if(_0x171129[_0x2eaebb(0x2ad)]['role']===_0x2eaebb(0x212))return _0x5c2bdd;if(_0x171129[_0x2eaebb(0x212)][_0x2eaebb(0x2d5)]!==_0x2eaebb(0x212))return _0x5c2bdd;return db['UserProfileSection'][_0x2eaebb(0x2f3)]({'where':{'name':_0x5c2bdd[_0x2eaebb(0x2d5)]===_0x2eaebb(0x228)?_0x2eaebb(0x1da):_0x2eaebb(0x28e),'userProfileId':_0x171129[_0x2eaebb(0x212)][_0x2eaebb(0x334)]},'raw':!![]})[_0x2eaebb(0x27e)](function(_0x5e46a3){const _0x5689bb=_0x2eaebb;if(!_0x5e46a3||_0x5e46a3[_0x5689bb(0x2de)]!=0x0)return _0x5c2bdd;return db[_0x5689bb(0x283)][_0x5689bb(0x32f)]({'name':_0x5c2bdd[_0x5689bb(0x312)],'resourceId':_0x5c2bdd['id'],'type':_0x5e46a3[_0x5689bb(0x312)],'sectionId':_0x5e46a3['id']},{})[_0x5689bb(0x27e)](function(){return _0x5c2bdd;});})[_0x2eaebb(0x2a4)](function(_0x2a029c){const _0x1a059a=_0x2eaebb;logger['error'](_0x1a059a(0x317),_0x2a029c);throw _0x2a029c;});})[_0x584ff4(0x27e)](respondWithResult(_0x550fc9,0xc9))[_0x584ff4(0x2a4)](handleError(_0x550fc9,null));},exports[a775_0x4b333b(0x2cc)]=function(_0x43fdd7,_0x2b513d){const _0x5ac1db=a775_0x4b333b;if(_0x43fdd7[_0x5ac1db(0x2ad)]['id'])delete _0x43fdd7[_0x5ac1db(0x2ad)]['id'];return db['User'][_0x5ac1db(0x2f3)]({'where':{'id':_0x43fdd7[_0x5ac1db(0x307)]['id']}})[_0x5ac1db(0x27e)](function(_0x5d9893){const _0x288c49=_0x5ac1db;if(!_0x5d9893)return null;if(_0x5d9893['id']===_0x43fdd7['user']['id']){if(!_0x43fdd7[_0x288c49(0x2ad)][_0x288c49(0x30a)]||!_0x43fdd7[_0x288c49(0x2ad)]['newPassword'])throw new ValidationError(_0x288c49(0x301));if(!_0x5d9893[_0x288c49(0x2e9)](_0x43fdd7['body'][_0x288c49(0x30a)]))throw new ValidationError('Wrong\x20credentials');if(_0x43fdd7[_0x288c49(0x2ad)][_0x288c49(0x30a)]===_0x43fdd7[_0x288c49(0x2ad)][_0x288c49(0x1dc)])throw new ValidationError('New\x20password\x20must\x20be\x20different\x20from\x20old\x20password');}else{if(_0x43fdd7[_0x288c49(0x212)][_0x288c49(0x2d5)]==='admin'){if(!_0x43fdd7[_0x288c49(0x2ad)][_0x288c49(0x1dc)])throw new ValidationError(_0x288c49(0x1e9));}else{if(_0x43fdd7['user'][_0x288c49(0x2d5)]===_0x288c49(0x212)){if(!_0x43fdd7['body']['newPassword'])throw new ValidationError(_0x288c49(0x1e9));if(_0x5d9893['role']!==_0x288c49(0x228))throw new ValidationError(_0x288c49(0x2dd));}else throw new ValidationError(_0x288c49(0x2dd));}}return _0x5d9893;})[_0x5ac1db(0x27e)](handleEntityNotFound(_0x2b513d,null))[_0x5ac1db(0x27e)](function(_0x4bab2c){const _0x498644=_0x5ac1db;return db['Setting'][_0x498644(0x2f3)]({'attributes':['id','securePassword','enforcePasswordHistory',_0x498644(0x325)]})[_0x498644(0x27e)](function(_0x11cc01){const _0x3440a5=_0x498644;if(_0x11cc01[_0x3440a5(0x272)])authService['validatePasswordPattern'](_0x43fdd7[_0x3440a5(0x2ad)]['newPassword']);if(!_0x11cc01[_0x3440a5(0x264)]||!_0x4bab2c[_0x3440a5(0x2aa)])return _0x4bab2c;return authService[_0x3440a5(0x22b)](_0x43fdd7['body'][_0x3440a5(0x1dc)],_0x4bab2c[_0x3440a5(0x2aa)],_0x11cc01[_0x3440a5(0x325)]),_0x4bab2c;})[_0x498644(0x27e)](saveUpdates({'password':_0x43fdd7['body'][_0x498644(0x1dc)],'passwordResetAt':_0x43fdd7[_0x498644(0x212)]['id']==_0x43fdd7[_0x498644(0x307)]['id']?moment():null,'previousPasswords':authService[_0x498644(0x243)](_0x43fdd7[_0x498644(0x2ad)]['newPassword'],_0x4bab2c[_0x498644(0x2aa)])},null));})[_0x5ac1db(0x27e)](respondWithResult(_0x2b513d,null))[_0x5ac1db(0x2a4)](handleError(_0x2b513d,null));},exports['addQueues']=function(_0x11be05,_0x480b79){const _0x41bade=a775_0x4b333b,_0x4687a6=_0x11be05['body'][_0x41bade(0x322)];return db[_0x41bade(0x290)]['findOne']({'where':{'id':_0x11be05['params']['id']},'attributes':['id',_0x41bade(0x312),'role','online',_0x41bade(0x29a),'voicePause',_0x41bade(0x29b)]})[_0x41bade(0x27e)](handleEntityNotFound(_0x480b79,null))['then'](function(_0x3fb0fd){const _0x318854=_0x41bade;if(_0x3fb0fd){if(!utils[_0x318854(0x331)](_0x4687a6))throw new ValidationError(_0x318854(0x22c));return _0x3fb0fd[_0x318854(0x2b9)+_[_0x318854(0x23f)](_0x4687a6[_0x318854(0x321)]())+_0x318854(0x27d)](_0x11be05[_0x318854(0x2ad)][_0x318854(0x2ca)],{'through':{'penalty':_0x11be05[_0x318854(0x2ad)]['penalty']||0x0}})[_0x318854(0x27e)](function(_0x10d7b8){const _0x365d93=_0x318854;for(let _0x5936ef=0x0;_0x5936ef<_0x11be05['body']['ids'][_0x365d93(0x1e6)];_0x5936ef+=0x1){const _0xe50322={'UserId':_0x11be05[_0x365d93(0x307)]['id']};_0xe50322[_[_0x365d93(0x23f)](_0x4687a6['toLowerCase']())+_0x365d93(0x2e6)]=_0x11be05['body'][_0x365d93(0x2ca)][_0x5936ef],socket[_0x365d93(0x25e)](_0x365d93(0x212)+_[_0x365d93(0x23f)](_0x4687a6[_0x365d93(0x321)]())+_0x365d93(0x246),_0xe50322);}return _0x10d7b8;})[_0x318854(0x27e)](function(){const _0xe5eac6=_0x318854;if(_0x4687a6===_0xe5eac6(0x22e))return db[_0xe5eac6(0x2d7)][_0xe5eac6(0x206)]({'where':{'id':_0x11be05[_0xe5eac6(0x2ad)][_0xe5eac6(0x2ca)]||[]},'raw':!![],'attributes':['id','name']});})['then'](function(_0x1a1a5d){const _0x2e9950=_0x318854,_0x2d56fc=_0x3fb0fd[_0x2e9950(0x2df)]({'plain':!![]}),_0x198353=[];if(_0x4687a6===_0x2e9950(0x22e)&&_0x2d56fc[_0x2e9950(0x2d5)]==='agent'&&_0x2d56fc[_0x2e9950(0x2a9)]){for(let _0x36488d=0x0;_0x36488d<_0x1a1a5d[_0x2e9950(0x1e6)];_0x36488d+=0x1){_0x198353[_0x2e9950(0x229)]({'membername':_0x2d56fc[_0x2e9950(0x312)],'UserId':_0x2d56fc['id'],'queue_name':_0x1a1a5d[_0x36488d][_0x2e9950(0x312)],'VoiceQueueId':_0x1a1a5d[_0x36488d]['id'],'interface':_[_0x2e9950(0x2b6)](_0x2d56fc[_0x2e9950(0x29b)])?util['format'](_0x2e9950(0x255),_0x2d56fc[_0x2e9950(0x312)]):_0x2d56fc[_0x2e9950(0x29b)],'paused':_0x2d56fc['voicePause']||![],'penalty':_0x11be05['body'][_0x2e9950(0x26c)]||0x0});}return Promise[_0x2e9950(0x2ab)](_0x198353[_0x2e9950(0x20d)](_0x3ad68b=>{const _0x40ee4a=_0x2e9950;return db[_0x40ee4a(0x1d9)]['upsert'](_0x3ad68b);}));}return _0x3fb0fd;});}})['then'](respondWithStatusCode(_0x480b79,null))[_0x41bade(0x2a4)](handleError(_0x480b79,null));},exports['removeQueues']=function(_0x1927aa,_0x435bd6){const _0x20f942=a775_0x4b333b;let _0x52e071;return db[_0x20f942(0x290)][_0x20f942(0x2f3)]({'where':{'id':_0x1927aa[_0x20f942(0x307)]['id']},'attributes':['id',_0x20f942(0x312),'role']})['then'](handleEntityNotFound(_0x435bd6,null))[_0x20f942(0x27e)](function(_0x5b4cca){const _0x1cce0a=_0x20f942;if(_0x5b4cca){_0x52e071=_0x5b4cca;if(!_0x1927aa['query'][_0x1cce0a(0x322)]||!utils['isValidChannel'](_0x1927aa[_0x1cce0a(0x2af)]['channel']))throw new ValidationError('Unknown\x20channel');return _0x5b4cca['remove'+_[_0x1cce0a(0x23f)](_0x1927aa['query']['channel'][_0x1cce0a(0x321)]())+_0x1cce0a(0x27d)](_0x1927aa[_0x1cce0a(0x2af)][_0x1cce0a(0x2ca)]);}})[_0x20f942(0x27e)](function(_0x37b9c1){const _0x5a92fb=_0x20f942;for(let _0x128f47=0x0;_0x128f47<_0x1927aa[_0x5a92fb(0x2af)]['ids'][_0x5a92fb(0x1e6)];_0x128f47+=0x1){const _0x351e02={'UserId':_0x1927aa[_0x5a92fb(0x307)]['id']};_0x351e02[_['capitalize'](_0x1927aa[_0x5a92fb(0x2af)][_0x5a92fb(0x322)]['toLowerCase']())+_0x5a92fb(0x2e6)]=_0x1927aa[_0x5a92fb(0x2af)]['ids'][_0x128f47],socket[_0x5a92fb(0x25e)]('user'+_[_0x5a92fb(0x23f)](_0x1927aa[_0x5a92fb(0x2af)]['channel'][_0x5a92fb(0x321)]())+_0x5a92fb(0x2ec),_0x351e02);}return _0x37b9c1;})[_0x20f942(0x27e)](function(){const _0x5c471e=_0x20f942;if(_0x1927aa[_0x5c471e(0x2af)][_0x5c471e(0x322)]===_0x5c471e(0x22e))return db[_0x5c471e(0x1d9)][_0x5c471e(0x2f9)]({'where':{'UserId':_0x1927aa[_0x5c471e(0x307)]['id'],'VoiceQueueId':_0x1927aa[_0x5c471e(0x2af)][_0x5c471e(0x2ca)]},'individualHooks':!![]})[_0x5c471e(0x27e)](function(){return _0x52e071;});return _0x52e071;})[_0x20f942(0x27e)](respondWithStatusCode(_0x435bd6,null))[_0x20f942(0x2a4)](handleError(_0x435bd6,null));},exports[a775_0x4b333b(0x204)]=function(_0x70af42,_0xd39087){const _0x3a8b74=a775_0x4b333b;return _0x70af42[_0x3a8b74(0x2ad)][_0x3a8b74(0x1eb)]=_0x70af42['file'][_0x3a8b74(0x30e)],db['User']['findOne']({'where':{'id':_0x70af42[_0x3a8b74(0x307)]['id']}})[_0x3a8b74(0x27e)](handleEntityNotFound(_0xd39087,null))[_0x3a8b74(0x27e)](saveUpdates(_0x70af42[_0x3a8b74(0x2ad)],null))[_0x3a8b74(0x27e)](respondWithResult(_0xd39087,null))['catch'](handleError(_0xd39087,null));},exports['getAvatar']=function(_0x5688d7,_0x5a10fd){const _0x4b7e22=a775_0x4b333b,_0x56b2bd=path[_0x4b7e22(0x24a)](config[_0x4b7e22(0x22a)],_0x4b7e22(0x224));return db[_0x4b7e22(0x290)]['findOne']({'where':{'id':_0x5688d7[_0x4b7e22(0x307)]['id']},'attributes':['id',_0x4b7e22(0x1eb)],'raw':!![]})[_0x4b7e22(0x27e)](handleEntityNotFound(_0x5a10fd,null))['then'](function(_0x158c64){const _0x382b2c=_0x4b7e22;if(_0x158c64){if(_[_0x382b2c(0x2b6)](_0x158c64[_0x382b2c(0x1eb)]))return _0x5a10fd[_0x382b2c(0x249)](_0x56b2bd);else{if(!fs[_0x382b2c(0x2e2)](path[_0x382b2c(0x24a)](config[_0x382b2c(0x22a)],_0x382b2c(0x24d),_0x158c64[_0x382b2c(0x1eb)])))return _0x5a10fd[_0x382b2c(0x249)](_0x56b2bd);return _0x5a10fd[_0x382b2c(0x249)](path[_0x382b2c(0x24a)](config[_0x382b2c(0x22a)],_0x382b2c(0x24d),_0x158c64[_0x382b2c(0x1eb)]));}}})[_0x4b7e22(0x2a4)](handleError(_0x5a10fd,null));},exports[a775_0x4b333b(0x31e)]=function(_0x2408d0,_0xcfe384){const _0x3f7846=a775_0x4b333b;let _0x303258={};const _0x36629b={};let _0x1e4cd0,_0xdecb72;return db['User'][_0x3f7846(0x2f3)]({'where':{'id':_0x2408d0[_0x3f7846(0x307)]['id']}})[_0x3f7846(0x27e)](handleEntityNotFound(_0xcfe384,null))[_0x3f7846(0x27e)](function(_0x5df3ea){const _0x47b9e2=_0x3f7846;if(_0x5df3ea)return _0x1e4cd0=_0x5df3ea,_0x36629b[_0x47b9e2(0x332)]=_['keys'](db['CmContact'][_0x47b9e2(0x216)]),_0x36629b[_0x47b9e2(0x2af)]=_['keys'](_0x2408d0['query']),_0x36629b['filters']=_['intersection'](_0x36629b['model'],_0x36629b[_0x47b9e2(0x2af)]),_0x303258[_0x47b9e2(0x252)]=_[_0x47b9e2(0x2f8)](_0x36629b[_0x47b9e2(0x332)],qs[_0x47b9e2(0x1dd)](_0x2408d0[_0x47b9e2(0x2af)][_0x47b9e2(0x1dd)])),_0x303258[_0x47b9e2(0x252)]=_0x303258[_0x47b9e2(0x252)][_0x47b9e2(0x1e6)]?_0x303258[_0x47b9e2(0x252)]:_0x36629b[_0x47b9e2(0x332)],_0x303258['order']=qs[_0x47b9e2(0x316)](_0x2408d0['query']['sort']),_0x303258[_0x47b9e2(0x2e1)]=qs[_0x47b9e2(0x273)](_[_0x47b9e2(0x222)](_0x2408d0[_0x47b9e2(0x2af)],_0x36629b[_0x47b9e2(0x273)])),_0x2408d0[_0x47b9e2(0x2af)]['filter']&&(_0x303258[_0x47b9e2(0x2e1)]=_[_0x47b9e2(0x1e5)](_0x303258[_0x47b9e2(0x2e1)],{[Op['or']]:_[_0x47b9e2(0x20d)](_0x303258['attributes'],function(_0x5c2197){const _0x51824a=_0x47b9e2,_0x336de6={};return _0x336de6[_0x5c2197]={[Op[_0x51824a(0x203)]]:'%'+_0x2408d0[_0x51824a(0x2af)]['filter']+'%'},_0x336de6;})})),_0x303258=_['merge']({},_0x303258,_0x2408d0['options']),_0x1e4cd0['getContacts'](_0x303258);})[_0x3f7846(0x27e)](function(_0xbf8947){const _0x50dc50=_0x3f7846;if(_0xbf8947)return _0xdecb72=_0xbf8947[_0x50dc50(0x1e6)],typeof _0x2408d0[_0x50dc50(0x2af)][_0x50dc50(0x1d1)]!==_0x50dc50(0x1e3)&&(_0x303258[_0x50dc50(0x281)]=[{'model':db[_0x50dc50(0x27b)],'as':'List','required':![]},{'model':db[_0x50dc50(0x1e1)],'as':_0x50dc50(0x1fe),'attributes':['id',_0x50dc50(0x312),'color'],'where':_0x2408d0[_0x50dc50(0x2af)]['tag']?{'id':_0x2408d0[_0x50dc50(0x2af)][_0x50dc50(0x274)]}:undefined,'required':_0x2408d0['query'][_0x50dc50(0x274)]?!![]:![]}]),typeof _0x2408d0['query']['nolimit']==='undefined'&&(_0x303258[_0x50dc50(0x2f6)]=qs['limit'](_0x2408d0[_0x50dc50(0x2af)]['limit']),_0x303258[_0x50dc50(0x29e)]=qs['offset'](_0x2408d0['query'][_0x50dc50(0x29e)])),_0x1e4cd0[_0x50dc50(0x31e)](_0x303258);})['then'](function(_0x4b168c){if(_0x4b168c)return _0x4b168c?{'count':_0xdecb72,'rows':_0x4b168c}:null;})[_0x3f7846(0x27e)](respondWithResult(_0xcfe384,null))[_0x3f7846(0x2a4)](handleError(_0xcfe384,null));},exports[a775_0x4b333b(0x232)]=function(_0x2041f6,_0x3cd76d){const _0x229f65=a775_0x4b333b;let _0x301d3e,_0x43c08f={},_0x3054cc;return db[_0x229f65(0x290)][_0x229f65(0x2f3)]({'where':{'id':_0x2041f6[_0x229f65(0x307)]['id']},'attributes':['id',_0x229f65(0x312),_0x229f65(0x2d5)]})[_0x229f65(0x27e)](handleEntityNotFound(_0x3cd76d,null))[_0x229f65(0x27e)](function(_0x22b58c){const _0x2bde16=_0x229f65;if(!utils[_0x2bde16(0x331)](_0x2041f6[_0x2bde16(0x2af)][_0x2bde16(0x322)]))throw new ValidationError(_0x2bde16(0x22c));_0x301d3e=_0x22b58c;const _0x5071a3={};_0x5071a3['model']=_[_0x2bde16(0x2eb)](db[_[_0x2bde16(0x23f)](_0x2041f6[_0x2bde16(0x2af)][_0x2bde16(0x322)])+'Queue'][_0x2bde16(0x216)]),_0x5071a3['query']=_[_0x2bde16(0x2eb)](_0x2041f6['query']),_0x5071a3[_0x2bde16(0x273)]=_[_0x2bde16(0x2f8)](_0x5071a3['model'],_0x5071a3[_0x2bde16(0x2af)]),_0x43c08f[_0x2bde16(0x252)]=_[_0x2bde16(0x2f8)](_0x5071a3['model'],qs[_0x2bde16(0x1dd)](_0x2041f6[_0x2bde16(0x2af)][_0x2bde16(0x1dd)])),_0x43c08f[_0x2bde16(0x252)]=_0x43c08f[_0x2bde16(0x252)][_0x2bde16(0x1e6)]?_0x43c08f['attributes']:_0x5071a3[_0x2bde16(0x332)],_0x43c08f[_0x2bde16(0x28b)]=qs[_0x2bde16(0x316)](_0x2041f6[_0x2bde16(0x2af)][_0x2bde16(0x316)]),_0x43c08f[_0x2bde16(0x2e1)]=qs[_0x2bde16(0x273)](_[_0x2bde16(0x222)](_0x2041f6[_0x2bde16(0x2af)],_0x5071a3[_0x2bde16(0x273)]));_0x2041f6[_0x2bde16(0x2af)][_0x2bde16(0x1f7)]&&(_0x43c08f['where']=_['merge'](_0x43c08f[_0x2bde16(0x2e1)],{[Op['or']]:_[_0x2bde16(0x20d)](_0x43c08f[_0x2bde16(0x252)],function(_0x164c9a){const _0x2a6236=_0x2bde16,_0x1ad9ef={};return _0x1ad9ef[_0x164c9a]={[Op[_0x2a6236(0x203)]]:'%'+_0x2041f6[_0x2a6236(0x2af)][_0x2a6236(0x1f7)]+'%'},_0x1ad9ef;})}));_0x43c08f=_[_0x2bde16(0x1e5)]({},_0x43c08f,_0x2041f6[_0x2bde16(0x2bf)]);switch(_0x301d3e[_0x2bde16(0x2d5)]){case _0x2bde16(0x2c4):return db[_[_0x2bde16(0x23f)](_0x2041f6[_0x2bde16(0x2af)]['channel'])+_0x2bde16(0x326)][_0x2bde16(0x206)](_0x43c08f);case'user':case _0x2bde16(0x228):return _0x301d3e[_0x2bde16(0x2df)+_[_0x2bde16(0x23f)](_0x2041f6[_0x2bde16(0x2af)][_0x2bde16(0x322)])+_0x2bde16(0x27d)](_0x43c08f);default:throw new ValidationError(_0x2bde16(0x250));}})[_0x229f65(0x27e)](function(_0x1df233){const _0x21cce1=_0x229f65;_0x3054cc=_0x1df233['length'];typeof _0x2041f6[_0x21cce1(0x2af)]['nolimit']===_0x21cce1(0x1e3)&&(_0x43c08f[_0x21cce1(0x2f6)]=qs[_0x21cce1(0x2f6)](_0x2041f6['query']['limit']),_0x43c08f['offset']=qs[_0x21cce1(0x29e)](_0x2041f6[_0x21cce1(0x2af)][_0x21cce1(0x29e)]));switch(_0x301d3e['role']){case _0x21cce1(0x2c4):return db[_['capitalize'](_0x2041f6[_0x21cce1(0x2af)][_0x21cce1(0x322)])+_0x21cce1(0x326)][_0x21cce1(0x206)](_0x43c08f);case _0x21cce1(0x212):case _0x21cce1(0x228):return _0x301d3e[_0x21cce1(0x2df)+_[_0x21cce1(0x23f)](_0x2041f6[_0x21cce1(0x2af)][_0x21cce1(0x322)])+_0x21cce1(0x27d)](_0x43c08f);}})[_0x229f65(0x27e)](function(_0xaa3ff8){return{'count':_0x3054cc,'rows':_0xaa3ff8};})[_0x229f65(0x27e)](respondWithResult(_0x3cd76d,null))['catch'](handleError(_0x3cd76d,null));},exports[a775_0x4b333b(0x288)]=function(_0x2c50b0,_0x3e4395){const _0x5ae37b=a775_0x4b333b;let _0x22aeb9={};const _0x3d915b={};let _0x38a4ec,_0xc918ce;return db[_0x5ae37b(0x290)][_0x5ae37b(0x2f3)]({'where':{'id':_0x2c50b0[_0x5ae37b(0x307)]['id']}})['then'](handleEntityNotFound(_0x3e4395,null))[_0x5ae37b(0x27e)](function(_0x3b76d5){const _0x52ceb9=_0x5ae37b;if(_0x3b76d5)return _0x38a4ec=_0x3b76d5,_0x3d915b['model']=_[_0x52ceb9(0x2eb)](db[_0x52ceb9(0x1d9)][_0x52ceb9(0x216)]),_0x3d915b[_0x52ceb9(0x2af)]=_[_0x52ceb9(0x2eb)](_0x2c50b0[_0x52ceb9(0x2af)]),_0x3d915b[_0x52ceb9(0x273)]=_[_0x52ceb9(0x2f8)](_0x3d915b[_0x52ceb9(0x332)],_0x3d915b['query']),_0x22aeb9[_0x52ceb9(0x252)]=_['intersection'](_0x3d915b[_0x52ceb9(0x332)],qs[_0x52ceb9(0x1dd)](_0x2c50b0[_0x52ceb9(0x2af)][_0x52ceb9(0x1dd)])),_0x22aeb9[_0x52ceb9(0x252)]=_0x22aeb9[_0x52ceb9(0x252)][_0x52ceb9(0x1e6)]?_0x22aeb9[_0x52ceb9(0x252)]:_0x3d915b['model'],_0x22aeb9[_0x52ceb9(0x28b)]=qs[_0x52ceb9(0x316)](_0x2c50b0[_0x52ceb9(0x2af)][_0x52ceb9(0x316)]),_0x22aeb9[_0x52ceb9(0x2e1)]=qs[_0x52ceb9(0x273)](_['pick'](_0x2c50b0[_0x52ceb9(0x2af)],_0x3d915b[_0x52ceb9(0x273)])),_0x2c50b0[_0x52ceb9(0x2af)][_0x52ceb9(0x1f7)]&&(_0x22aeb9[_0x52ceb9(0x2e1)]=_[_0x52ceb9(0x1e5)](_0x22aeb9['where'],{[Op['or']]:_[_0x52ceb9(0x20d)](_0x22aeb9[_0x52ceb9(0x252)],function(_0x25e804){const _0xea3609=_0x52ceb9,_0xca856c={};return _0xca856c[_0x25e804]={[Op[_0xea3609(0x203)]]:'%'+_0x2c50b0['query'][_0xea3609(0x1f7)]+'%'},_0xca856c;})})),_0x22aeb9=_[_0x52ceb9(0x1e5)]({},_0x22aeb9,_0x2c50b0[_0x52ceb9(0x2bf)]),_0x38a4ec[_0x52ceb9(0x288)](_0x22aeb9);})[_0x5ae37b(0x27e)](function(_0x4bc8d1){const _0x36093e=_0x5ae37b;if(_0x4bc8d1)return _0xc918ce=_0x4bc8d1[_0x36093e(0x1e6)],typeof _0x2c50b0['query']['nolimit']===_0x36093e(0x1e3)&&(_0x22aeb9[_0x36093e(0x2f6)]=qs[_0x36093e(0x2f6)](_0x2c50b0[_0x36093e(0x2af)][_0x36093e(0x2f6)]),_0x22aeb9[_0x36093e(0x29e)]=qs['offset'](_0x2c50b0[_0x36093e(0x2af)][_0x36093e(0x29e)])),_0x38a4ec[_0x36093e(0x288)](_0x22aeb9);})[_0x5ae37b(0x27e)](function(_0x3c0982){if(_0x3c0982)return _0x3c0982?{'count':_0xc918ce,'rows':_0x3c0982}:null;})[_0x5ae37b(0x27e)](respondWithResult(_0x3e4395,null))[_0x5ae37b(0x2a4)](handleError(_0x3e4395,null));},exports[a775_0x4b333b(0x2ce)]=function(_0x461e87,_0x4f2bb7){const _0x5664cf=a775_0x4b333b;let _0x2ef90={};const _0x7d4573={};let _0x2efb12,_0x4fdd5a;return db[_0x5664cf(0x290)]['findOne']({'where':{'id':_0x461e87[_0x5664cf(0x307)]['id']}})[_0x5664cf(0x27e)](handleEntityNotFound(_0x4f2bb7,null))['then'](function(_0x23255d){const _0x5f1c1f=_0x5664cf;if(_0x23255d)return _0x2efb12=_0x23255d,_0x7d4573[_0x5f1c1f(0x332)]=_['keys'](db[_0x5f1c1f(0x205)][_0x5f1c1f(0x216)]),_0x7d4573[_0x5f1c1f(0x2af)]=_['keys'](_0x461e87[_0x5f1c1f(0x2af)]),_0x7d4573[_0x5f1c1f(0x273)]=_[_0x5f1c1f(0x2f8)](_0x7d4573['model'],_0x7d4573[_0x5f1c1f(0x2af)]),_0x2ef90[_0x5f1c1f(0x252)]=_['intersection'](_0x7d4573[_0x5f1c1f(0x332)],qs[_0x5f1c1f(0x1dd)](_0x461e87[_0x5f1c1f(0x2af)][_0x5f1c1f(0x1dd)])),_0x2ef90[_0x5f1c1f(0x252)]=_0x2ef90[_0x5f1c1f(0x252)][_0x5f1c1f(0x1e6)]?_0x2ef90[_0x5f1c1f(0x252)]:_0x7d4573[_0x5f1c1f(0x332)],_0x2ef90[_0x5f1c1f(0x28b)]=qs['sort'](_0x461e87[_0x5f1c1f(0x2af)][_0x5f1c1f(0x316)]),_0x2ef90[_0x5f1c1f(0x2e1)]=qs[_0x5f1c1f(0x273)](_[_0x5f1c1f(0x222)](_0x461e87[_0x5f1c1f(0x2af)],_0x7d4573[_0x5f1c1f(0x273)])),_0x461e87[_0x5f1c1f(0x2af)][_0x5f1c1f(0x1f7)]&&(_0x2ef90[_0x5f1c1f(0x2e1)]=_[_0x5f1c1f(0x1e5)](_0x2ef90['where'],{[Op['or']]:_[_0x5f1c1f(0x20d)](_0x2ef90[_0x5f1c1f(0x252)],function(_0x315262){const _0x2eb0b4=_0x5f1c1f,_0x41972a={};return _0x41972a[_0x315262]={[Op[_0x2eb0b4(0x203)]]:'%'+_0x461e87[_0x2eb0b4(0x2af)]['filter']+'%'},_0x41972a;})})),_0x2ef90=_[_0x5f1c1f(0x1e5)]({},_0x2ef90,_0x461e87[_0x5f1c1f(0x2bf)]),_0x2efb12['getGroups'](_0x2ef90);})[_0x5664cf(0x27e)](function(_0x304ae2){const _0x1333fe=_0x5664cf;if(_0x304ae2)return _0x4fdd5a=_0x304ae2[_0x1333fe(0x1e6)],typeof _0x461e87[_0x1333fe(0x2af)][_0x1333fe(0x2b1)]===_0x1333fe(0x1e3)&&(_0x2ef90['limit']=qs[_0x1333fe(0x2f6)](_0x461e87[_0x1333fe(0x2af)][_0x1333fe(0x2f6)]),_0x2ef90[_0x1333fe(0x29e)]=qs[_0x1333fe(0x29e)](_0x461e87[_0x1333fe(0x2af)][_0x1333fe(0x29e)])),_0x2efb12[_0x1333fe(0x2ce)](_0x2ef90);})['then'](function(_0x481a1f){if(_0x481a1f)return _0x481a1f?{'count':_0x4fdd5a,'rows':_0x481a1f}:null;})[_0x5664cf(0x27e)](respondWithResult(_0x4f2bb7,null))[_0x5664cf(0x2a4)](handleError(_0x4f2bb7,null));},exports[a775_0x4b333b(0x21b)]=function(_0x28f1c0,_0x2bb48c){const _0xc43525=a775_0x4b333b;let _0x386d32={'raw':!![],'where':{}};const _0x4b9e18={},_0x465e12={'count':0x0,'rows':[]};return db[_0xc43525(0x290)][_0xc43525(0x2f3)]({'where':{'id':_0x28f1c0[_0xc43525(0x307)]['id']}})[_0xc43525(0x27e)](handleEntityNotFound(_0x2bb48c,null))[_0xc43525(0x27e)](function(_0x4d4abe){const _0x3cd605=_0xc43525;if(_0x4d4abe)return _0x4b9e18[_0x3cd605(0x332)]=_[_0x3cd605(0x2eb)](db[_0x3cd605(0x261)][_0x3cd605(0x216)]),_0x4b9e18[_0x3cd605(0x2af)]=_[_0x3cd605(0x2eb)](_0x28f1c0[_0x3cd605(0x2af)]),_0x4b9e18['filters']=_[_0x3cd605(0x2f8)](_0x4b9e18[_0x3cd605(0x332)],_0x4b9e18[_0x3cd605(0x2af)]),_0x386d32[_0x3cd605(0x252)]=_[_0x3cd605(0x2f8)](_0x4b9e18[_0x3cd605(0x332)],qs[_0x3cd605(0x1dd)](_0x28f1c0[_0x3cd605(0x2af)][_0x3cd605(0x1dd)])),_0x386d32[_0x3cd605(0x252)]=_0x386d32[_0x3cd605(0x252)][_0x3cd605(0x1e6)]?_0x386d32[_0x3cd605(0x252)]:_0x4b9e18['model'],typeof _0x28f1c0['query'][_0x3cd605(0x2b1)]==='undefined'&&(_0x386d32[_0x3cd605(0x2f6)]=qs[_0x3cd605(0x2f6)](_0x28f1c0[_0x3cd605(0x2af)][_0x3cd605(0x2f6)]),_0x386d32[_0x3cd605(0x29e)]=qs[_0x3cd605(0x29e)](_0x28f1c0[_0x3cd605(0x2af)][_0x3cd605(0x29e)])),_0x386d32[_0x3cd605(0x28b)]=qs[_0x3cd605(0x316)](_0x28f1c0[_0x3cd605(0x2af)]['sort']),_0x386d32['where']=qs[_0x3cd605(0x273)](_[_0x3cd605(0x222)](_0x28f1c0[_0x3cd605(0x2af)],_0x4b9e18[_0x3cd605(0x273)])),_0x386d32[_0x3cd605(0x2e1)][_0x3cd605(0x1f3)]=_0x4d4abe['id'],_0x28f1c0['query'][_0x3cd605(0x1f7)]&&(_0x386d32[_0x3cd605(0x2e1)]=_[_0x3cd605(0x1e5)](_0x386d32['where'],{[Op['or']]:_[_0x3cd605(0x20d)](_0x386d32[_0x3cd605(0x252)],function(_0x1ad5f8){const _0x52109e=_0x3cd605,_0x48e083={};return _0x48e083[_0x1ad5f8]={[Op['like']]:'%'+_0x28f1c0[_0x52109e(0x2af)]['filter']+'%'},_0x48e083;})})),_0x386d32=_['merge']({},_0x386d32,_0x28f1c0['options']),db[_0x3cd605(0x261)]['count']({'where':_0x386d32['where']})[_0x3cd605(0x27e)](function(_0x403f88){const _0x484cff=_0x3cd605;return _0x465e12[_0x484cff(0x266)]=_0x403f88,_0x28f1c0['query'][_0x484cff(0x1d1)]&&(_0x386d32[_0x484cff(0x281)]=[{'all':!![]}]),db['VoiceRecording'][_0x484cff(0x206)](_0x386d32);})[_0x3cd605(0x27e)](function(_0x58591f){const _0x352ea7=_0x3cd605;return _0x465e12[_0x352ea7(0x2ae)]=_0x58591f,_0x465e12;});})[_0xc43525(0x27e)](respondWithFilteredResult(_0x2bb48c,_0x386d32))[_0xc43525(0x2a4)](handleError(_0x2bb48c,null));},exports[a775_0x4b333b(0x287)]=function(_0x4d53f5,_0x403ee6){const _0x23cb05=a775_0x4b333b;let _0x446e51={'raw':!![],'where':{}};const _0x26fff0={},_0x4bae73={'count':0x0,'rows':[]};return db[_0x23cb05(0x290)][_0x23cb05(0x2f3)]({'where':{'id':_0x4d53f5['params']['id']}})[_0x23cb05(0x27e)](handleEntityNotFound(_0x403ee6,null))[_0x23cb05(0x27e)](function(_0x3a8b00){const _0x445542=_0x23cb05;if(_0x3a8b00)return _0x26fff0[_0x445542(0x332)]=_[_0x445542(0x2eb)](db['ScreenRecording']['rawAttributes']),_0x26fff0[_0x445542(0x2af)]=_[_0x445542(0x2eb)](_0x4d53f5[_0x445542(0x2af)]),_0x26fff0[_0x445542(0x273)]=_[_0x445542(0x2f8)](_0x26fff0['model'],_0x26fff0[_0x445542(0x2af)]),_0x446e51[_0x445542(0x252)]=_[_0x445542(0x2f8)](_0x26fff0['model'],qs[_0x445542(0x1dd)](_0x4d53f5[_0x445542(0x2af)][_0x445542(0x1dd)])),_0x446e51['attributes']=_0x446e51[_0x445542(0x252)][_0x445542(0x1e6)]?_0x446e51[_0x445542(0x252)]:_0x26fff0[_0x445542(0x332)],typeof _0x4d53f5['query'][_0x445542(0x2b1)]===_0x445542(0x1e3)&&(_0x446e51[_0x445542(0x2f6)]=qs[_0x445542(0x2f6)](_0x4d53f5['query'][_0x445542(0x2f6)]),_0x446e51[_0x445542(0x29e)]=qs[_0x445542(0x29e)](_0x4d53f5[_0x445542(0x2af)][_0x445542(0x29e)])),_0x446e51[_0x445542(0x28b)]=qs[_0x445542(0x316)](_0x4d53f5[_0x445542(0x2af)][_0x445542(0x316)]),_0x446e51[_0x445542(0x2e1)]=qs[_0x445542(0x273)](_[_0x445542(0x222)](_0x4d53f5[_0x445542(0x2af)],_0x26fff0[_0x445542(0x273)])),_0x446e51[_0x445542(0x2e1)][_0x445542(0x1f3)]=_0x3a8b00['id'],_0x4d53f5[_0x445542(0x2af)]['filter']&&(_0x446e51[_0x445542(0x2e1)]=_[_0x445542(0x1e5)](_0x446e51['where'],{[Op['or']]:_[_0x445542(0x20d)](_0x446e51['attributes'],function(_0x354dd8){const _0x3b5fc0=_0x445542,_0x2a1e05={};return _0x2a1e05[_0x354dd8]={[Op[_0x3b5fc0(0x203)]]:'%'+_0x4d53f5[_0x3b5fc0(0x2af)]['filter']+'%'},_0x2a1e05;})})),_0x446e51=_[_0x445542(0x1e5)]({},_0x446e51,_0x4d53f5[_0x445542(0x2bf)]),db['ScreenRecording'][_0x445542(0x266)]({'where':_0x446e51[_0x445542(0x2e1)]})[_0x445542(0x27e)](function(_0x4336e3){const _0x440288=_0x445542;return _0x4bae73[_0x440288(0x266)]=_0x4336e3,_0x4d53f5[_0x440288(0x2af)][_0x440288(0x1d1)]&&(_0x446e51[_0x440288(0x281)]=[{'all':!![]}]),db['ScreenRecording']['findAll'](_0x446e51);})[_0x445542(0x27e)](function(_0x54fb45){return _0x4bae73['rows']=_0x54fb45,_0x4bae73;});})[_0x23cb05(0x27e)](respondWithFilteredResult(_0x403ee6,_0x446e51))['catch'](handleError(_0x403ee6,null));},exports[a775_0x4b333b(0x1e0)]=function(_0x3ccb9e,_0x5a4194){const _0x48b125=a775_0x4b333b;let _0x4a8c50={};const _0x10c66b={};let _0x18e940,_0x5be5e8;return db[_0x48b125(0x290)][_0x48b125(0x2f3)]({'where':{'id':_0x3ccb9e[_0x48b125(0x307)]['id']}})[_0x48b125(0x27e)](handleEntityNotFound(_0x5a4194,null))[_0x48b125(0x27e)](function(_0x7177cd){const _0x2046af=_0x48b125;if(_0x7177cd)return _0x18e940=_0x7177cd,_0x10c66b[_0x2046af(0x332)]=_[_0x2046af(0x2eb)](db[_0x2046af(0x256)][_0x2046af(0x216)]),_0x10c66b[_0x2046af(0x2af)]=_[_0x2046af(0x2eb)](_0x3ccb9e['query']),_0x10c66b[_0x2046af(0x273)]=_['intersection'](_0x10c66b[_0x2046af(0x332)],_0x10c66b[_0x2046af(0x2af)]),_0x4a8c50[_0x2046af(0x252)]=_['intersection'](_0x10c66b['model'],qs['fields'](_0x3ccb9e['query']['fields'])),_0x4a8c50[_0x2046af(0x252)]=_0x4a8c50[_0x2046af(0x252)][_0x2046af(0x1e6)]?_0x4a8c50[_0x2046af(0x252)]:_0x10c66b[_0x2046af(0x332)],_0x4a8c50[_0x2046af(0x28b)]=qs[_0x2046af(0x316)](_0x3ccb9e['query'][_0x2046af(0x316)]),_0x4a8c50['where']=qs[_0x2046af(0x273)](_[_0x2046af(0x222)](_0x3ccb9e[_0x2046af(0x2af)],_0x10c66b[_0x2046af(0x273)])),_0x3ccb9e[_0x2046af(0x2af)][_0x2046af(0x1f7)]&&(_0x4a8c50[_0x2046af(0x2e1)]=_['merge'](_0x4a8c50['where'],{[Op['or']]:_[_0x2046af(0x20d)](_0x4a8c50['attributes'],function(_0x12157a){const _0xe85024=_0x2046af,_0x33b817={};return _0x33b817[_0x12157a]={[Op[_0xe85024(0x203)]]:'%'+_0x3ccb9e[_0xe85024(0x2af)][_0xe85024(0x1f7)]+'%'},_0x33b817;})})),_0x4a8c50=_[_0x2046af(0x1e5)]({},_0x4a8c50,_0x3ccb9e['options']),_0x18e940['getChatInteractions'](_0x4a8c50);})[_0x48b125(0x27e)](function(_0x5a7740){const _0x92ac02=_0x48b125;if(_0x5a7740)return _0x5be5e8=_0x5a7740['length'],typeof _0x3ccb9e['query']['nolimit']===_0x92ac02(0x1e3)&&(_0x4a8c50[_0x92ac02(0x2f6)]=qs[_0x92ac02(0x2f6)](_0x3ccb9e[_0x92ac02(0x2af)][_0x92ac02(0x2f6)]),_0x4a8c50[_0x92ac02(0x29e)]=qs[_0x92ac02(0x29e)](_0x3ccb9e[_0x92ac02(0x2af)][_0x92ac02(0x29e)])),_0x18e940[_0x92ac02(0x1e0)](_0x4a8c50);})[_0x48b125(0x27e)](function(_0x4ebeee){if(_0x4ebeee)return _0x4ebeee?{'count':_0x5be5e8,'rows':_0x4ebeee}:null;})[_0x48b125(0x27e)](respondWithResult(_0x5a4194,null))['catch'](handleError(_0x5a4194,null));},exports[a775_0x4b333b(0x20c)]=function(_0x56d1f5,_0x2fb417){const _0x43301e=a775_0x4b333b;let _0x31330e={};const _0x3759c3={};let _0x2cc5f5,_0x56e086;return db[_0x43301e(0x290)][_0x43301e(0x2f3)]({'where':{'id':_0x56d1f5['params']['id']}})['then'](handleEntityNotFound(_0x2fb417,null))[_0x43301e(0x27e)](function(_0x574298){const _0x2110a0=_0x43301e;if(_0x574298)return _0x2cc5f5=_0x574298,_0x3759c3['model']=_[_0x2110a0(0x2eb)](db[_0x2110a0(0x1e7)][_0x2110a0(0x216)]),_0x3759c3[_0x2110a0(0x2af)]=_['keys'](_0x56d1f5[_0x2110a0(0x2af)]),_0x3759c3['filters']=_['intersection'](_0x3759c3[_0x2110a0(0x332)],_0x3759c3[_0x2110a0(0x2af)]),_0x31330e[_0x2110a0(0x252)]=_[_0x2110a0(0x2f8)](_0x3759c3[_0x2110a0(0x332)],qs[_0x2110a0(0x1dd)](_0x56d1f5[_0x2110a0(0x2af)][_0x2110a0(0x1dd)])),_0x31330e[_0x2110a0(0x252)]=_0x31330e[_0x2110a0(0x252)][_0x2110a0(0x1e6)]?_0x31330e[_0x2110a0(0x252)]:_0x3759c3[_0x2110a0(0x332)],_0x31330e[_0x2110a0(0x28b)]=qs[_0x2110a0(0x316)](_0x56d1f5[_0x2110a0(0x2af)][_0x2110a0(0x316)]),_0x31330e['where']=qs[_0x2110a0(0x273)](_[_0x2110a0(0x222)](_0x56d1f5[_0x2110a0(0x2af)],_0x3759c3[_0x2110a0(0x273)])),_0x56d1f5[_0x2110a0(0x2af)][_0x2110a0(0x1f7)]&&(_0x31330e[_0x2110a0(0x2e1)]=_['merge'](_0x31330e[_0x2110a0(0x2e1)],{[Op['or']]:_[_0x2110a0(0x20d)](_0x31330e[_0x2110a0(0x252)],function(_0x4ca9e3){const _0x2e8183=_0x2110a0,_0x2ae947={};return _0x2ae947[_0x4ca9e3]={[Op[_0x2e8183(0x203)]]:'%'+_0x56d1f5['query'][_0x2e8183(0x1f7)]+'%'},_0x2ae947;})})),_0x31330e=_[_0x2110a0(0x1e5)]({},_0x31330e,_0x56d1f5[_0x2110a0(0x2bf)]),_0x2cc5f5[_0x2110a0(0x20c)](_0x31330e);})[_0x43301e(0x27e)](function(_0x53294a){const _0xd359c7=_0x43301e;if(_0x53294a)return _0x56e086=_0x53294a[_0xd359c7(0x1e6)],typeof _0x56d1f5[_0xd359c7(0x2af)][_0xd359c7(0x2b1)]==='undefined'&&(_0x31330e[_0xd359c7(0x2f6)]=qs[_0xd359c7(0x2f6)](_0x56d1f5[_0xd359c7(0x2af)]['limit']),_0x31330e[_0xd359c7(0x29e)]=qs[_0xd359c7(0x29e)](_0x56d1f5['query'][_0xd359c7(0x29e)])),_0x2cc5f5['getOpenchannelInteractions'](_0x31330e);})[_0x43301e(0x27e)](function(_0x529b74){if(_0x529b74)return _0x529b74?{'count':_0x56e086,'rows':_0x529b74}:null;})['then'](respondWithResult(_0x2fb417,null))[_0x43301e(0x2a4)](handleError(_0x2fb417,null));},exports[a775_0x4b333b(0x240)]=function(_0x24a245,_0x220906){const _0x9cdd54=a775_0x4b333b;let _0x1af785={'raw':!![],'where':{}};const _0x29afc1={},_0x2e1daf={'count':0x0,'rows':[]};return db[_0x9cdd54(0x290)]['findOne']({'where':{'id':_0x24a245[_0x9cdd54(0x307)]['id']}})['then'](handleEntityNotFound(_0x220906,null))[_0x9cdd54(0x27e)](function(_0x425d8e){const _0xc4b66c=_0x9cdd54;if(_0x425d8e)return _0x29afc1[_0xc4b66c(0x332)]=_[_0xc4b66c(0x2eb)](db['MailInteraction'][_0xc4b66c(0x216)]),_0x29afc1['query']=_[_0xc4b66c(0x2eb)](_0x24a245[_0xc4b66c(0x2af)]),_0x29afc1['filters']=_['intersection'](_0x29afc1[_0xc4b66c(0x332)],_0x29afc1['query']),_0x1af785['attributes']=_[_0xc4b66c(0x2f8)](_0x29afc1['model'],qs[_0xc4b66c(0x1dd)](_0x24a245[_0xc4b66c(0x2af)][_0xc4b66c(0x1dd)])),_0x1af785['attributes']=_0x1af785[_0xc4b66c(0x252)][_0xc4b66c(0x1e6)]?_0x1af785['attributes']:_0x29afc1['model'],typeof _0x24a245[_0xc4b66c(0x2af)][_0xc4b66c(0x2b1)]===_0xc4b66c(0x1e3)&&(_0x1af785[_0xc4b66c(0x2f6)]=qs['limit'](_0x24a245['query'][_0xc4b66c(0x2f6)]),_0x1af785[_0xc4b66c(0x29e)]=qs[_0xc4b66c(0x29e)](_0x24a245[_0xc4b66c(0x2af)]['offset'])),_0x1af785['order']=qs[_0xc4b66c(0x316)](_0x24a245[_0xc4b66c(0x2af)]['sort']),_0x1af785['where']=qs['filters'](_[_0xc4b66c(0x222)](_0x24a245['query'],_0x29afc1[_0xc4b66c(0x273)])),_0x1af785[_0xc4b66c(0x2e1)][_0xc4b66c(0x1f3)]=_0x425d8e['id'],_0x24a245['query'][_0xc4b66c(0x1f7)]&&(_0x1af785[_0xc4b66c(0x2e1)]=_[_0xc4b66c(0x1e5)](_0x1af785[_0xc4b66c(0x2e1)],{[Op['or']]:_[_0xc4b66c(0x20d)](_0x1af785['attributes'],function(_0x5e1f69){const _0x5139dc=_0xc4b66c,_0x51f0ae={};return _0x51f0ae[_0x5e1f69]={[Op[_0x5139dc(0x203)]]:'%'+_0x24a245[_0x5139dc(0x2af)][_0x5139dc(0x1f7)]+'%'},_0x51f0ae;})})),_0x1af785=_[_0xc4b66c(0x1e5)]({},_0x1af785,_0x24a245[_0xc4b66c(0x2bf)]),db['MailInteraction']['count']({'where':_0x1af785[_0xc4b66c(0x2e1)]})['then'](function(_0x38f7e3){const _0xeed0c6=_0xc4b66c;return _0x2e1daf['count']=_0x38f7e3,_0x24a245['query'][_0xeed0c6(0x1d1)]&&(_0x1af785[_0xeed0c6(0x281)]=[{'all':!![]}]),db[_0xeed0c6(0x260)][_0xeed0c6(0x206)](_0x1af785);})[_0xc4b66c(0x27e)](function(_0x5a90f2){const _0x2ed8e9=_0xc4b66c;return _0x2e1daf[_0x2ed8e9(0x2ae)]=_0x5a90f2,_0x2e1daf;});})[_0x9cdd54(0x27e)](respondWithFilteredResult(_0x220906,_0x1af785))[_0x9cdd54(0x2a4)](handleError(_0x220906,null));},exports[a775_0x4b333b(0x1fa)]=function(_0x3ea7ea,_0x4e003e){const _0x9bfb99=a775_0x4b333b;let _0x2d30e7={};const _0x1d6140={};let _0x47d13b,_0x3aa29e;return db[_0x9bfb99(0x290)]['findOne']({'where':{'id':_0x3ea7ea[_0x9bfb99(0x307)]['id']}})[_0x9bfb99(0x27e)](handleEntityNotFound(_0x4e003e,null))[_0x9bfb99(0x27e)](function(_0x109143){const _0x476b58=_0x9bfb99;if(_0x109143)return _0x47d13b=_0x109143,_0x1d6140[_0x476b58(0x332)]=_[_0x476b58(0x2eb)](db[_0x476b58(0x1ed)][_0x476b58(0x216)]),_0x1d6140[_0x476b58(0x2af)]=_[_0x476b58(0x2eb)](_0x3ea7ea['query']),_0x1d6140[_0x476b58(0x273)]=_['intersection'](_0x1d6140['model'],_0x1d6140['query']),_0x2d30e7[_0x476b58(0x252)]=_[_0x476b58(0x2f8)](_0x1d6140['model'],qs[_0x476b58(0x1dd)](_0x3ea7ea[_0x476b58(0x2af)][_0x476b58(0x1dd)])),_0x2d30e7[_0x476b58(0x252)]=_0x2d30e7['attributes'][_0x476b58(0x1e6)]?_0x2d30e7[_0x476b58(0x252)]:_0x1d6140['model'],_0x2d30e7[_0x476b58(0x28b)]=qs[_0x476b58(0x316)](_0x3ea7ea[_0x476b58(0x2af)][_0x476b58(0x316)]),_0x2d30e7[_0x476b58(0x2e1)]=qs['filters'](_[_0x476b58(0x222)](_0x3ea7ea[_0x476b58(0x2af)],_0x1d6140[_0x476b58(0x273)])),_0x3ea7ea[_0x476b58(0x2af)][_0x476b58(0x1f7)]&&(_0x2d30e7[_0x476b58(0x2e1)]=_[_0x476b58(0x1e5)](_0x2d30e7['where'],{[Op['or']]:_[_0x476b58(0x20d)](_0x2d30e7[_0x476b58(0x252)],function(_0x94783b){const _0x3239b1=_0x476b58,_0x23443f={};return _0x23443f[_0x94783b]={[Op[_0x3239b1(0x203)]]:'%'+_0x3ea7ea[_0x3239b1(0x2af)][_0x3239b1(0x1f7)]+'%'},_0x23443f;})})),_0x2d30e7=_[_0x476b58(0x1e5)]({},_0x2d30e7,_0x3ea7ea[_0x476b58(0x2bf)]),_0x47d13b['getSmsInteractions'](_0x2d30e7);})[_0x9bfb99(0x27e)](function(_0x460d70){const _0x1701da=_0x9bfb99;if(_0x460d70)return _0x3aa29e=_0x460d70[_0x1701da(0x1e6)],typeof _0x3ea7ea[_0x1701da(0x2af)]['nolimit']===_0x1701da(0x1e3)&&(_0x2d30e7[_0x1701da(0x2f6)]=qs['limit'](_0x3ea7ea[_0x1701da(0x2af)]['limit']),_0x2d30e7[_0x1701da(0x29e)]=qs[_0x1701da(0x29e)](_0x3ea7ea['query'][_0x1701da(0x29e)])),_0x47d13b[_0x1701da(0x1fa)](_0x2d30e7);})['then'](function(_0x5cd9b2){if(_0x5cd9b2)return _0x5cd9b2?{'count':_0x3aa29e,'rows':_0x5cd9b2}:null;})[_0x9bfb99(0x27e)](respondWithResult(_0x4e003e,null))[_0x9bfb99(0x2a4)](handleError(_0x4e003e,null));},exports[a775_0x4b333b(0x235)]=function(_0x4819fd,_0x336d81){const _0x528f1f=a775_0x4b333b;let _0x1e6558={};const _0x74de79={};let _0x491a08,_0x5bf131;return db[_0x528f1f(0x290)][_0x528f1f(0x2f3)]({'where':{'id':_0x4819fd['params']['id']}})[_0x528f1f(0x27e)](handleEntityNotFound(_0x336d81,null))[_0x528f1f(0x27e)](function(_0x58719c){const _0x5db179=_0x528f1f;if(_0x58719c)return _0x491a08=_0x58719c,_0x74de79[_0x5db179(0x332)]=_[_0x5db179(0x2eb)](db[_0x5db179(0x27a)]['rawAttributes']),_0x74de79['query']=_['keys'](_0x4819fd[_0x5db179(0x2af)]),_0x74de79[_0x5db179(0x273)]=_[_0x5db179(0x2f8)](_0x74de79[_0x5db179(0x332)],_0x74de79['query']),_0x1e6558[_0x5db179(0x252)]=_[_0x5db179(0x2f8)](_0x74de79[_0x5db179(0x332)],qs['fields'](_0x4819fd[_0x5db179(0x2af)][_0x5db179(0x1dd)])),_0x1e6558['attributes']=_0x1e6558[_0x5db179(0x252)][_0x5db179(0x1e6)]?_0x1e6558[_0x5db179(0x252)]:_0x74de79['model'],_0x1e6558[_0x5db179(0x28b)]=qs[_0x5db179(0x316)](_0x4819fd['query']['sort']),_0x1e6558[_0x5db179(0x2e1)]=qs[_0x5db179(0x273)](_[_0x5db179(0x222)](_0x4819fd['query'],_0x74de79[_0x5db179(0x273)])),_0x4819fd[_0x5db179(0x2af)][_0x5db179(0x1f7)]&&(_0x1e6558[_0x5db179(0x2e1)]=_['merge'](_0x1e6558[_0x5db179(0x2e1)],{[Op['or']]:_['map'](_0x1e6558[_0x5db179(0x252)],function(_0x281c2b){const _0x1c5a18=_0x5db179,_0x1b123d={};return _0x1b123d[_0x281c2b]={[Op[_0x1c5a18(0x203)]]:'%'+_0x4819fd[_0x1c5a18(0x2af)][_0x1c5a18(0x1f7)]+'%'},_0x1b123d;})})),_0x1e6558=_[_0x5db179(0x1e5)]({},_0x1e6558,_0x4819fd[_0x5db179(0x2bf)]),_0x491a08[_0x5db179(0x235)](_0x1e6558);})['then'](function(_0x45068c){const _0x239f94=_0x528f1f;if(_0x45068c)return _0x5bf131=_0x45068c[_0x239f94(0x1e6)],typeof _0x4819fd[_0x239f94(0x2af)][_0x239f94(0x2b1)]===_0x239f94(0x1e3)&&(_0x1e6558[_0x239f94(0x2f6)]=qs['limit'](_0x4819fd[_0x239f94(0x2af)][_0x239f94(0x2f6)]),_0x1e6558['offset']=qs[_0x239f94(0x29e)](_0x4819fd[_0x239f94(0x2af)][_0x239f94(0x29e)])),_0x491a08['getFaxInteractions'](_0x1e6558);})[_0x528f1f(0x27e)](function(_0x15c84d){if(_0x15c84d)return _0x15c84d?{'count':_0x5bf131,'rows':_0x15c84d}:null;})[_0x528f1f(0x27e)](respondWithResult(_0x336d81,null))[_0x528f1f(0x2a4)](handleError(_0x336d81,null));},exports[a775_0x4b333b(0x313)]=function(_0x21ee54,_0x469db8){const _0x401987=a775_0x4b333b;let _0x4d0ea2={};const _0x1a1716={};let _0x3e94dc,_0x4d1473;return db[_0x401987(0x290)][_0x401987(0x2f3)]({'where':{'id':_0x21ee54[_0x401987(0x307)]['id']}})[_0x401987(0x27e)](handleEntityNotFound(_0x469db8,null))[_0x401987(0x27e)](function(_0x313fd8){const _0x3f34ea=_0x401987;if(_0x313fd8)return _0x3e94dc=_0x313fd8,_0x1a1716[_0x3f34ea(0x332)]=_[_0x3f34ea(0x2eb)](db[_0x3f34ea(0x1ee)][_0x3f34ea(0x216)]),_0x1a1716[_0x3f34ea(0x2af)]=_['keys'](_0x21ee54[_0x3f34ea(0x2af)]),_0x1a1716[_0x3f34ea(0x273)]=_['intersection'](_0x1a1716[_0x3f34ea(0x332)],_0x1a1716['query']),_0x4d0ea2[_0x3f34ea(0x252)]=_[_0x3f34ea(0x2f8)](_0x1a1716[_0x3f34ea(0x332)],qs[_0x3f34ea(0x1dd)](_0x21ee54['query']['fields'])),_0x4d0ea2[_0x3f34ea(0x252)]=_0x4d0ea2['attributes'][_0x3f34ea(0x1e6)]?_0x4d0ea2['attributes']:_0x1a1716[_0x3f34ea(0x332)],_0x4d0ea2[_0x3f34ea(0x28b)]=qs[_0x3f34ea(0x316)](_0x21ee54[_0x3f34ea(0x2af)][_0x3f34ea(0x316)]),_0x4d0ea2[_0x3f34ea(0x2e1)]=qs[_0x3f34ea(0x273)](_[_0x3f34ea(0x222)](_0x21ee54[_0x3f34ea(0x2af)],_0x1a1716[_0x3f34ea(0x273)])),_0x21ee54[_0x3f34ea(0x2af)][_0x3f34ea(0x1f7)]&&(_0x4d0ea2[_0x3f34ea(0x2e1)]=_[_0x3f34ea(0x1e5)](_0x4d0ea2[_0x3f34ea(0x2e1)],{[Op['or']]:_['map'](_0x4d0ea2[_0x3f34ea(0x252)],function(_0x92e59d){const _0x17f58b=_0x3f34ea,_0x1b314e={};return _0x1b314e[_0x92e59d]={[Op[_0x17f58b(0x203)]]:'%'+_0x21ee54[_0x17f58b(0x2af)]['filter']+'%'},_0x1b314e;})})),_0x4d0ea2=_[_0x3f34ea(0x1e5)]({},_0x4d0ea2,_0x21ee54[_0x3f34ea(0x2bf)]),_0x3e94dc[_0x3f34ea(0x313)](_0x4d0ea2);})['then'](function(_0x8fb9ee){const _0x3d86d0=_0x401987;if(_0x8fb9ee)return _0x4d1473=_0x8fb9ee['length'],typeof _0x21ee54['query'][_0x3d86d0(0x2b1)]===_0x3d86d0(0x1e3)&&(_0x4d0ea2[_0x3d86d0(0x2f6)]=qs[_0x3d86d0(0x2f6)](_0x21ee54['query'][_0x3d86d0(0x2f6)]),_0x4d0ea2[_0x3d86d0(0x29e)]=qs[_0x3d86d0(0x29e)](_0x21ee54['query']['offset'])),_0x3e94dc['getWhatsappInteractions'](_0x4d0ea2);})[_0x401987(0x27e)](function(_0x142099){if(_0x142099)return _0x142099?{'count':_0x4d1473,'rows':_0x142099}:null;})[_0x401987(0x27e)](respondWithResult(_0x469db8,null))[_0x401987(0x2a4)](handleError(_0x469db8,null));},exports[a775_0x4b333b(0x2be)]=function(_0x5e92ac,_0x5f0fec,_0x550475){const _0x3d1f6d=a775_0x4b333b;let _0x34ba03,_0x4a0ad8,_0x1afc00;const _0x2e810d=!_['isNil'](_0x5e92ac['params']['id'])?_0x5e92ac['params']['id']:!_[_0x3d1f6d(0x2b6)](_0x5e92ac[_0x3d1f6d(0x212)]['id'])?_0x5e92ac[_0x3d1f6d(0x212)]['id']:null;return db[_0x3d1f6d(0x290)]['findOne']({'where':{'id':_0x2e810d,'role':{[Op['or']]:[_0x3d1f6d(0x2c4),'user',_0x3d1f6d(0x228)]}},'attributes':['id',_0x3d1f6d(0x312),_0x3d1f6d(0x230),_0x3d1f6d(0x1db),'role','internal',_0x3d1f6d(0x29a)]})[_0x3d1f6d(0x27e)](function(_0x52c13a){const _0x1f57e4=_0x3d1f6d;if(_0x52c13a){if(_0x52c13a[_0x1f57e4(0x2d5)]==='agent'){_0x34ba03=_0x52c13a;if(_0x5e92ac[_0x1f57e4(0x2ad)]['interface'])_0x1afc00=util['format'](_0x1f57e4(0x23b),_0x34ba03[_0x5e92ac[_0x1f57e4(0x2ad)][_0x1f57e4(0x29b)]]);else _0x5e92ac[_0x1f57e4(0x2ad)][_0x1f57e4(0x2ac)]?_0x1afc00=util[_0x1f57e4(0x201)]('SIP/%s',_0x5e92ac[_0x1f57e4(0x2ad)][_0x1f57e4(0x2ac)]):_0x1afc00=util[_0x1f57e4(0x201)]('SIP/%s',_0x34ba03[_0x1f57e4(0x312)]);return socket['to'](util['format']('user:%s',_0x34ba03[_0x1f57e4(0x312)]))[_0x1f57e4(0x25e)](_0x1f57e4(0x217),{'ip':_0x5e92ac[_0x1f57e4(0x253)]['x-forwarded-for']||_0x5e92ac[_0x1f57e4(0x1df)][_0x1f57e4(0x309)]||_0x5e92ac[_0x1f57e4(0x2d4)][_0x1f57e4(0x309)]||_0x5e92ac[_0x1f57e4(0x1df)][_0x1f57e4(0x2d4)][_0x1f57e4(0x309)]}),db['UserVoiceQueueRt'][_0x1f57e4(0x2f9)]({'where':{'membername':_0x34ba03[_0x1f57e4(0x312)]},'individualHooks':!![]});}}else throw new ValidationError(_0x1f57e4(0x241));})[_0x3d1f6d(0x27e)](function(){const _0xca6a5=_0x3d1f6d;if(_0x34ba03)return _0x34ba03[_0xca6a5(0x1e8)]({'raw':!![]});})[_0x3d1f6d(0x27e)](function(_0x1c3277){const _0x48a439=_0x3d1f6d;if(_0x34ba03){if(_0x1c3277){_0x4a0ad8=_0x1c3277;if(_0x4a0ad8[_0x48a439(0x1e6)]){const _0x4290c0=_0x4a0ad8[_0x48a439(0x20d)](_0x52a4f4=>{const _0x2d2572=_0x48a439,_0x2a847c={'membername':_0x34ba03[_0x2d2572(0x312)],'UserId':_0x34ba03['id'],'queue_name':_0x52a4f4[_0x2d2572(0x312)],'VoiceQueueId':_0x52a4f4['id'],'interface':_0x1afc00,'paused':_0x34ba03[_0x2d2572(0x29a)]||![],'penalty':_0x52a4f4['UserVoiceQueue.penalty']||0x0};return db[_0x2d2572(0x1d9)][_0x2d2572(0x2a5)](_0x2a847c);});return Promise[_0x48a439(0x2ab)](_0x4290c0);}}}})[_0x3d1f6d(0x27e)](function(){const _0x43ec1a=_0x3d1f6d;if(_0x34ba03)return db[_0x43ec1a(0x24f)][_0x43ec1a(0x206)]({'where':{'membername':_0x34ba03['name'],'exitAt':null}});})[_0x3d1f6d(0x27e)](function(_0x1fd199){const _0x55b7d9=_0x3d1f6d;if(_0x34ba03){const _0x5c2105=[];return _0x1fd199[_0x55b7d9(0x2ef)](function(_0x9a7fa4){const _0x353dd1=_0x55b7d9;_0x5c2105[_0x353dd1(0x229)](_0x9a7fa4[_0x353dd1(0x218)]({'exitAt':moment()[_0x353dd1(0x201)](_0x353dd1(0x305))}));}),Promise[_0x55b7d9(0x2ab)](_0x5c2105);}})[_0x3d1f6d(0x27e)](function(){const _0x316605=_0x3d1f6d;if(_0x34ba03){const _0x1b9eda=[],_0x44cbc6=[],_0x4fb47a=utils[_0x316605(0x202)](),_0x59df9c={'membername':_0x34ba03[_0x316605(0x312)],'interface':_0x1afc00,'enterAt':moment()[_0x316605(0x201)](_0x316605(0x305)),'role':_0x34ba03['role'],'internal':_0x34ba03[_0x316605(0x245)]};return _0x4fb47a[_0x316605(0x2ef)](function(_0x3cc69b){const _0x2ec268=_0x316605;_0x1b9eda[_0x2ec268(0x229)](_[_0x2ec268(0x1e5)]({'channel':_0x3cc69b,'type':_0x2ec268(0x251),'data1':_0x5e92ac[_0x2ec268(0x2ad)][_0x2ec268(0x2d8)],'data2':_0x1afc00},_0x59df9c)),_0x34ba03[_0x2ec268(0x29a)]&&_0x44cbc6['push'](_[_0x2ec268(0x1e5)]({'channel':_0x3cc69b,'type':'PAUSE','data1':'LOGININPAUSE'},_0x59df9c));}),db[_0x316605(0x24f)][_0x316605(0x1f4)](_0x1b9eda[_0x316605(0x2dc)](_0x44cbc6),{'individualHooks':!![]});}})[_0x3d1f6d(0x27e)](function(){const _0x2336dd=_0x3d1f6d;if(_0x34ba03)return _0x34ba03['update']({'online':!![],'lastLoginAt':moment()[_0x2336dd(0x201)]('YYYY-MM-DD\x20HH:mm:ss'),'voicePause':_0x34ba03[_0x2336dd(0x29a)]||![],'mailPause':_0x34ba03[_0x2336dd(0x29a)]||![],'chatPause':_0x34ba03[_0x2336dd(0x29a)]||![],'faxPause':_0x34ba03[_0x2336dd(0x29a)]||![],'smsPause':_0x34ba03['loginInPause']||![],'openchannelPause':_0x34ba03[_0x2336dd(0x29a)]||![],'whatsappPause':_0x34ba03[_0x2336dd(0x29a)]||![],'pauseType':_0x34ba03[_0x2336dd(0x29a)]?_0x2336dd(0x278):null,'interface':_0x1afc00,'lastPauseAt':moment()['format'](_0x2336dd(0x305))});})[_0x3d1f6d(0x27e)](function(_0x1d2bda){const _0x518f7d=_0x3d1f6d;return _0x5e92ac[_0x518f7d(0x327)]?_0x550475():Promise[_0x518f7d(0x20f)](_0x1d2bda)[_0x518f7d(0x27e)](respondWithResult(_0x5f0fec,null));})[_0x3d1f6d(0x2a4)](handleError(_0x5f0fec,null));},exports[a775_0x4b333b(0x292)]=function(_0x3498dc,_0x35e224){const _0x37ba4a=a775_0x4b333b;let _0x5f0ce0;return db[_0x37ba4a(0x290)][_0x37ba4a(0x2f3)]({'where':{'id':_0x3498dc[_0x37ba4a(0x307)]['id'],'role':_0x37ba4a(0x228)},'attributes':['id',_0x37ba4a(0x312),_0x37ba4a(0x2d5)]})[_0x37ba4a(0x27e)](handleEntityNotFound(_0x35e224,null))[_0x37ba4a(0x27e)](function(_0x14422d){const _0x4d1d4b=_0x37ba4a;if(_0x14422d)return _0x5f0ce0=_0x14422d,db[_0x4d1d4b(0x1d9)][_0x4d1d4b(0x2f9)]({'where':{'membername':_0x5f0ce0['name']},'individualHooks':!![]});})[_0x37ba4a(0x27e)](function(){const _0x397e5d=_0x37ba4a;return db['MemberReport']['findAll']({'where':{'membername':_0x5f0ce0[_0x397e5d(0x312)],'exitAt':null}});})[_0x37ba4a(0x27e)](function(_0x48bbd4){const _0x4567e5=_0x37ba4a,_0x5231f1=[];return _0x48bbd4[_0x4567e5(0x2ef)](function(_0x1bfb48){const _0x3896a4=_0x4567e5;_0x5231f1[_0x3896a4(0x229)](_0x1bfb48['update']({'exitAt':moment()[_0x3896a4(0x201)]('YYYY-MM-DD\x20HH:mm:ss')}));}),Promise[_0x4567e5(0x2ab)](_0x5231f1);})[_0x37ba4a(0x27e)](function(){const _0x565a48=_0x37ba4a;return _0x5f0ce0[_0x565a48(0x218)]({'online':![],'lastLoginAt':null,'voicePause':![],'mailPause':![],'chatPause':![],'faxPause':![],'smsPause':![],'openchannelPause':![],'whatsappPause':![],'interface':null});})[_0x37ba4a(0x27e)](respondWithResult(_0x35e224,null))[_0x37ba4a(0x2a4)](handleError(_0x35e224,null));},exports[a775_0x4b333b(0x2e0)]=function(_0x2d0a54,_0x5a62fc){const _0xe3c3e=a775_0x4b333b;let _0x25ffa9;return db[_0xe3c3e(0x1d9)][_0xe3c3e(0x218)]({'paused':0x1},{'where':{'UserId':_0x2d0a54[_0xe3c3e(0x307)]['id']},'individualHooks':!![]})[_0xe3c3e(0x27e)](function(){const _0x1450f5=_0xe3c3e;return db[_0x1450f5(0x290)][_0x1450f5(0x2f3)]({'where':{'id':_0x2d0a54[_0x1450f5(0x307)]['id'],'role':_0x1450f5(0x228)},'attributes':['id',_0x1450f5(0x312),_0x1450f5(0x2d5),_0x1450f5(0x245),_0x1450f5(0x29b)]});})['then'](handleEntityNotFound(_0x5a62fc,null))['then'](function(_0x2367df){const _0x436dad=_0xe3c3e;if(_0x2367df)return _0x25ffa9=_0x2367df,respondWithRpcPromise(_0x436dad(0x210),_0x436dad(0x2e0),{'id':_0x25ffa9['id'],'name':_0x25ffa9[_0x436dad(0x312)],'pause':!![]});})[_0xe3c3e(0x27e)](function(){const _0x3f4c03=_0xe3c3e;if(_0x25ffa9)return db['MemberReport'][_0x3f4c03(0x206)]({'where':{'membername':_0x25ffa9[_0x3f4c03(0x312)],'type':'PAUSE','exitAt':null}});})[_0xe3c3e(0x27e)](function(_0x5337d2){const _0x31f715=_0xe3c3e;if(_0x5337d2['length']){const _0x19b939=moment()[_0x31f715(0x201)](_0x31f715(0x305));for(let _0x8f527c=0x0,_0xf26882=_0x5337d2[_0x31f715(0x1e6)];_0x8f527c<_0xf26882;_0x8f527c++){_0x5337d2[_0x8f527c][_0x31f715(0x218)]({'exitAt':_0x19b939});}}})[_0xe3c3e(0x27e)](function(){const _0x42e322=_0xe3c3e,_0x111c00=[],_0x4702b2=utils[_0x42e322(0x202)]();return _0x4702b2[_0x42e322(0x2ef)](function(_0x4eb44a){const _0x29dd7b=_0x42e322;_0x111c00['push']({'channel':_0x4eb44a,'membername':_0x25ffa9[_0x29dd7b(0x312)],'interface':_['isNil'](_0x25ffa9[_0x29dd7b(0x29b)])?util[_0x29dd7b(0x201)]('SIP/%s',_0x25ffa9['name']):_0x25ffa9['interface'],'type':_0x29dd7b(0x32d),'enterAt':moment()[_0x29dd7b(0x201)](_0x29dd7b(0x305)),'data1':_0x2d0a54[_0x29dd7b(0x2ad)][_0x29dd7b(0x2ff)]||_0x29dd7b(0x27f),'role':_0x25ffa9[_0x29dd7b(0x2d5)],'internal':_0x25ffa9[_0x29dd7b(0x245)]});}),db[_0x42e322(0x24f)][_0x42e322(0x1f4)](_0x111c00,{'individualHooks':!![]});})[_0xe3c3e(0x27e)](function(){const _0x10ff89=_0xe3c3e;return _0x25ffa9['update']({'voicePause':!![],'mailPause':!![],'chatPause':!![],'faxPause':!![],'smsPause':!![],'whatsappPause':!![],'openchannelPause':!![],'pauseType':_0x2d0a54[_0x10ff89(0x2ad)]['type']||'DEFAULT\x20PAUSE','lastPauseAt':moment()['format'](_0x10ff89(0x305))});})[_0xe3c3e(0x27e)](respondWithResult(_0x5a62fc,null))[_0xe3c3e(0x2a4)](handleError(_0x5a62fc,null));},exports['unpause']=function(_0xb9ce34,_0x51d2b9){const _0x47acb2=a775_0x4b333b;let _0x16df79;return db[_0x47acb2(0x290)]['findOne']({'where':{'id':_0xb9ce34[_0x47acb2(0x307)]['id']},'attributes':['id',_0x47acb2(0x312),_0x47acb2(0x2d5),'voicePause',_0x47acb2(0x29f),_0x47acb2(0x2fa),_0x47acb2(0x2b8),'openchannelPause',_0x47acb2(0x21f),'whatsapppause',_0x47acb2(0x2db),_0x47acb2(0x21a)]})[_0x47acb2(0x27e)](handleEntityNotFound(_0x51d2b9,null))[_0x47acb2(0x27e)](function(_0x2a9eb1){const _0x3d9372=_0x47acb2;if(_0x2a9eb1){_0x16df79=_0x2a9eb1;if(_0xb9ce34[_0x3d9372(0x2ad)]['channel']&&!utils['isValidChannel'](_0xb9ce34['body']['channel']))throw new ValidationError(_0x3d9372(0x22c));switch(_0xb9ce34[_0x3d9372(0x2ad)][_0x3d9372(0x322)]){case _0x3d9372(0x22e):return respondWithRpcPromise(_0x3d9372(0x210),_0x3d9372(0x257),{'id':_0x16df79['id'],'name':_0x16df79[_0x3d9372(0x312)],'pause':![]})[_0x3d9372(0x27e)](function(){const _0x5862fb=_0x3d9372;return db['UserVoiceQueueRt'][_0x5862fb(0x218)]({'paused':0x0},{'where':{'UserId':_0x16df79['id']},'individualHooks':!![]});})[_0x3d9372(0x27e)](function(){const _0x44fbb4=_0x3d9372;return db[_0x44fbb4(0x24f)]['findOne']({'where':{'channel':_0xb9ce34[_0x44fbb4(0x2ad)][_0x44fbb4(0x322)],'membername':_0x16df79[_0x44fbb4(0x312)],'type':_0x44fbb4(0x32d),'exitAt':null}});})['then'](function(_0xa8704){const _0xdfbac6=_0x3d9372;if(_0xa8704)return _0xa8704[_0xdfbac6(0x218)]({'exitAt':moment()['format'](_0xdfbac6(0x305)),'data2':_0xdfbac6(0x32b)},{'individualHooks':!![]});return null;})[_0x3d9372(0x27e)](function(){const _0x465d23=_0x3d9372;return _0x16df79[_0x465d23(0x218)]({'voicePause':![]});});case'mail':case _0x3d9372(0x23e):case _0x3d9372(0x2a2):case _0x3d9372(0x22f):case'whatsapp':case _0x3d9372(0x296):return db['MemberReport'][_0x3d9372(0x2f3)]({'where':{'channel':_0xb9ce34[_0x3d9372(0x2ad)][_0x3d9372(0x322)],'membername':_0x16df79[_0x3d9372(0x312)],'type':_0x3d9372(0x32d),'exitAt':null}})[_0x3d9372(0x27e)](function(_0x22a654){const _0x44e9c1=_0x3d9372;if(_0x22a654)return _0x22a654[_0x44e9c1(0x218)]({'exitAt':moment()[_0x44e9c1(0x201)](_0x44e9c1(0x305)),'data2':'manual'},{'individualHooks':!![]});return null;})[_0x3d9372(0x27e)](function(){const _0x57243a=_0x3d9372,_0x4bee90={};return _[_0x57243a(0x2fc)](_0x4bee90,util[_0x57243a(0x201)]('%s%s',_0xb9ce34['body'][_0x57243a(0x322)],'Pause'),![]),_0x16df79[_0x57243a(0x218)](_0x4bee90);});default:return respondWithRpcPromise(_0x3d9372(0x210),_0x3d9372(0x257),{'id':_0x16df79['id'],'name':_0x16df79[_0x3d9372(0x312)],'pause':![]})[_0x3d9372(0x27e)](function(){const _0x2162bb=_0x3d9372;return db['UserVoiceQueueRt'][_0x2162bb(0x218)]({'paused':0x0},{'where':{'UserId':_0x16df79['id']}});})[_0x3d9372(0x27e)](function(){const _0x3e2efc=_0x3d9372;return db['MemberReport'][_0x3e2efc(0x206)]({'where':{'membername':_0x16df79['name'],'type':_0x3e2efc(0x32d),'exitAt':null}});})['then'](function(_0x47f67b){const _0x52b1bf=_0x3d9372,_0x2a7f21=[];return _0x47f67b[_0x52b1bf(0x2ef)](function(_0x4e822a){const _0x1b8568=_0x52b1bf;_0x2a7f21[_0x1b8568(0x229)](_0x4e822a[_0x1b8568(0x218)]({'exitAt':moment()['format']('YYYY-MM-DD\x20HH:mm:ss'),'data2':_0x1b8568(0x32b)}));}),Promise['all'](_0x2a7f21);})[_0x3d9372(0x27e)](function(){const _0x4fc4a0=_0x3d9372;return _0x16df79[_0x4fc4a0(0x218)]({'voicePause':![],'mailPause':![],'chatPause':![],'faxPause':![],'smsPause':![],'whatsappPause':![],'openchannelPause':![]});});}}})[_0x47acb2(0x27e)](respondWithResult(_0x51d2b9,null))[_0x47acb2(0x2a4)](handleError(_0x51d2b9,null));},exports['getTeams']=function(_0x18f91f,_0x978445){const _0x524b68=a775_0x4b333b;let _0x8bf26b={};const _0x431633={};let _0x22515d,_0x526c8e;return db[_0x524b68(0x290)][_0x524b68(0x2f3)]({'where':{'id':_0x18f91f[_0x524b68(0x307)]['id']}})[_0x524b68(0x27e)](handleEntityNotFound(_0x978445,null))[_0x524b68(0x27e)](function(_0x5dc842){const _0x16846b=_0x524b68;if(_0x5dc842)return _0x22515d=_0x5dc842,_0x431633[_0x16846b(0x332)]=_[_0x16846b(0x2eb)](db[_0x16846b(0x2bc)]['rawAttributes']),_0x431633['query']=_[_0x16846b(0x2eb)](_0x18f91f[_0x16846b(0x2af)]),_0x431633['filters']=_[_0x16846b(0x2f8)](_0x431633[_0x16846b(0x332)],_0x431633[_0x16846b(0x2af)]),_0x8bf26b[_0x16846b(0x252)]=_['intersection'](_0x431633['model'],qs[_0x16846b(0x1dd)](_0x18f91f[_0x16846b(0x2af)][_0x16846b(0x1dd)])),_0x8bf26b[_0x16846b(0x252)]=_0x8bf26b['attributes']['length']?_0x8bf26b[_0x16846b(0x252)]:_0x431633[_0x16846b(0x332)],_0x8bf26b[_0x16846b(0x28b)]=qs[_0x16846b(0x316)](_0x18f91f['query'][_0x16846b(0x316)]),_0x8bf26b[_0x16846b(0x2e1)]=qs[_0x16846b(0x273)](_['pick'](_0x18f91f[_0x16846b(0x2af)],_0x431633[_0x16846b(0x273)])),_0x18f91f[_0x16846b(0x2af)][_0x16846b(0x1f7)]&&(_0x8bf26b[_0x16846b(0x2e1)]=_[_0x16846b(0x1e5)](_0x8bf26b[_0x16846b(0x2e1)],{[Op['or']]:_[_0x16846b(0x20d)](_0x8bf26b[_0x16846b(0x252)],function(_0x3c191d){const _0x40349c=_0x16846b,_0x38a005={};return _0x38a005[_0x3c191d]={[Op[_0x40349c(0x203)]]:'%'+_0x18f91f['query'][_0x40349c(0x1f7)]+'%'},_0x38a005;})})),_0x8bf26b=_[_0x16846b(0x1e5)]({},_0x8bf26b,_0x18f91f[_0x16846b(0x2bf)]),_0x22515d['getTeams'](_0x8bf26b);})[_0x524b68(0x27e)](function(_0x3fe77b){const _0x2e2f36=_0x524b68;if(_0x3fe77b)return _0x526c8e=_0x3fe77b['length'],typeof _0x18f91f[_0x2e2f36(0x2af)][_0x2e2f36(0x2b1)]==='undefined'&&(_0x8bf26b[_0x2e2f36(0x2f6)]=qs[_0x2e2f36(0x2f6)](_0x18f91f[_0x2e2f36(0x2af)][_0x2e2f36(0x2f6)]),_0x8bf26b[_0x2e2f36(0x29e)]=qs[_0x2e2f36(0x29e)](_0x18f91f['query'][_0x2e2f36(0x29e)])),_0x22515d[_0x2e2f36(0x268)](_0x8bf26b);})[_0x524b68(0x27e)](function(_0x377bcf){if(_0x377bcf)return _0x377bcf?{'count':_0x526c8e,'rows':_0x377bcf}:null;})[_0x524b68(0x27e)](respondWithResult(_0x978445,null))[_0x524b68(0x2a4)](handleError(_0x978445,null));},exports[a775_0x4b333b(0x2c5)]=function(_0x3725b4,_0x3db409){const _0x3d5162=a775_0x4b333b;return db[_0x3d5162(0x290)][_0x3d5162(0x2f3)]({'where':{'id':_0x3725b4[_0x3d5162(0x307)]['id']}})[_0x3d5162(0x27e)](handleEntityNotFound(_0x3db409,null))['then'](function(_0x32c369){const _0x37adb3=_0x3d5162;if(_0x32c369){const _0x5fbbb4=_0x32c369[_0x37adb3(0x2df)]({'plain':!![]});return _0x32c369['addTeams'](_0x3725b4[_0x37adb3(0x2ad)][_0x37adb3(0x2ca)],_[_0x37adb3(0x275)](_0x3725b4['body'],[_0x37adb3(0x2ca),'id'])||{})[_0x37adb3(0x27e)](function(){const _0x567009=_0x37adb3;for(let _0x123cb9=0x0;_0x123cb9<_0x3725b4[_0x567009(0x2ad)][_0x567009(0x2ca)][_0x567009(0x1e6)];_0x123cb9++){let _0x856c35=[];db[_0x567009(0x2bc)][_0x567009(0x2f3)]({'where':{'id':_0x3725b4[_0x567009(0x2ad)][_0x567009(0x2ca)][_0x123cb9]}})[_0x567009(0x27e)](function(_0x2da1be){const _0x1eaaea=_0x567009;return _0x856c35[_0x1eaaea(0x229)](_0x2da1be['getVoiceQueues']()[_0x1eaaea(0x27e)](function(_0x4054f9){const _0x1a030c=_0x1eaaea;for(let _0x1cebad=0x0;_0x1cebad<_0x4054f9[_0x1a030c(0x1e6)];_0x1cebad++){_0x4054f9[_0x1cebad][_0x1a030c(0x32e)](_0x1a030c(0x322),'Voice');}return _0x4054f9;})),_0x856c35[_0x1eaaea(0x229)](_0x2da1be[_0x1eaaea(0x31c)]()[_0x1eaaea(0x27e)](function(_0x44e2b9){const _0x506f3d=_0x1eaaea;for(let _0x45b89d=0x0;_0x45b89d<_0x44e2b9[_0x506f3d(0x1e6)];_0x45b89d++){_0x44e2b9[_0x45b89d][_0x506f3d(0x32e)](_0x506f3d(0x322),_0x506f3d(0x30f));}return _0x44e2b9;})),_0x856c35['push'](_0x2da1be[_0x1eaaea(0x26b)]()[_0x1eaaea(0x27e)](function(_0x35d38f){const _0x202bc6=_0x1eaaea;for(let _0x4ba222=0x0;_0x4ba222<_0x35d38f[_0x202bc6(0x1e6)];_0x4ba222++){_0x35d38f[_0x4ba222]['setDataValue']('channel',_0x202bc6(0x2ea));}return _0x35d38f;})),_0x856c35['push'](_0x2da1be[_0x1eaaea(0x1de)]()[_0x1eaaea(0x27e)](function(_0x507615){const _0x277a39=_0x1eaaea;for(let _0x1ae69a=0x0;_0x1ae69a<_0x507615[_0x277a39(0x1e6)];_0x1ae69a++){_0x507615[_0x1ae69a][_0x277a39(0x32e)]('channel',_0x277a39(0x28f));}return _0x507615;})),_0x856c35[_0x1eaaea(0x229)](_0x2da1be['getWhatsappQueues']()[_0x1eaaea(0x27e)](function(_0x5c6e40){const _0xd3fff2=_0x1eaaea;for(let _0x281825=0x0;_0x281825<_0x5c6e40[_0xd3fff2(0x1e6)];_0x281825++){_0x5c6e40[_0x281825][_0xd3fff2(0x32e)](_0xd3fff2(0x322),'Whatsapp');}return _0x5c6e40;})),_0x856c35['push'](_0x2da1be[_0x1eaaea(0x20e)]()[_0x1eaaea(0x27e)](function(_0x3e2980){const _0x1e65df=_0x1eaaea;for(let _0x4dbcf2=0x0;_0x4dbcf2<_0x3e2980[_0x1e65df(0x1e6)];_0x4dbcf2++){_0x3e2980[_0x4dbcf2][_0x1e65df(0x32e)](_0x1e65df(0x322),'Fax');}return _0x3e2980;})),_0x856c35['push'](_0x2da1be[_0x1eaaea(0x279)]()[_0x1eaaea(0x27e)](function(_0x57d2d1){const _0x56d6ad=_0x1eaaea;for(let _0x27ee8d=0x0;_0x27ee8d<_0x57d2d1['length'];_0x27ee8d++){_0x57d2d1[_0x27ee8d][_0x56d6ad(0x32e)]('channel',_0x56d6ad(0x233));}return _0x57d2d1;})),Promise[_0x1eaaea(0x2ab)](_0x856c35);})['then'](function(_0x59596e){const _0x59f4ea=_0x567009,_0x11a545=_[_0x59f4ea(0x30b)](_0x59596e);return _0x856c35=[],db[_0x59f4ea(0x276)][_0x59f4ea(0x28d)](function(_0x385948){const _0x5712e0=_0x59f4ea;for(let _0x42a5ef=0x0;_0x42a5ef<_0x11a545[_0x5712e0(0x1e6)];_0x42a5ef++){_0x856c35['push'](_0x11a545[_0x42a5ef][_0x5712e0(0x298)](_0x5fbbb4['id']),{'transaction':_0x385948});}return Promise['all'](_0x856c35)[_0x5712e0(0x27e)](function(){const _0x50e561=_0x5712e0;if(!_0x5fbbb4[_0x50e561(0x2a9)])return;const _0x32f7d2=_[_0x50e561(0x1f7)](_0x11a545,function(_0x8fa65c){const _0x12ab94=_0x50e561;return _0x8fa65c[_0x12ab94(0x244)](_0x12ab94(0x322))===_0x12ab94(0x1f5);});return Promise['all'](_0x32f7d2['map'](_0x592270=>{const _0x2f7c96=_0x50e561;return db[_0x2f7c96(0x1d9)][_0x2f7c96(0x2a5)]({'membername':_0x5fbbb4[_0x2f7c96(0x312)],'UserId':_0x5fbbb4['id'],'queue_name':_0x592270[_0x2f7c96(0x312)],'VoiceQueueId':_0x592270['id'],'interface':_[_0x2f7c96(0x2b6)](_0x5fbbb4['interface'])?util[_0x2f7c96(0x201)](_0x2f7c96(0x255),_0x5fbbb4['name']):_0x5fbbb4[_0x2f7c96(0x29b)],'paused':_0x5fbbb4[_0x2f7c96(0x1e4)]||![],'penalty':_0x5fbbb4[_0x2f7c96(0x26c)]},{'transaction':_0x385948});}));})[_0x5712e0(0x27e)](function(){const _0x46530d=_0x5712e0;for(let _0x459b4b=0x0;_0x459b4b<_0x11a545[_0x46530d(0x1e6)];_0x459b4b++){const _0xed6a9e=_0x11a545[_0x459b4b]['getDataValue']('channel'),_0x3fc17b=_0xed6a9e+_0x46530d(0x2e6);socket[_0x46530d(0x25e)]('user'+_0xed6a9e+_0x46530d(0x246),{'UserId':_0x5fbbb4['id'],[_0x3fc17b]:_0x11a545[_0x459b4b]['id']});}});});});}});}})[_0x3d5162(0x27e)](respondWithStatusCode(_0x3db409,null))[_0x3d5162(0x2a4)](handleError(_0x3db409,null));},exports['removeTeams']=function(_0x33133a,_0x786a90){const _0x3e7167=a775_0x4b333b;return db['User']['findOne']({'where':{'id':_0x33133a['params']['id']}})[_0x3e7167(0x27e)](handleEntityNotFound(_0x786a90,null))[_0x3e7167(0x27e)](function(_0x8d7496){const _0x507e89=_0x3e7167;if(_0x8d7496){const _0x202648=_0x8d7496['get']({'plain':!![]}),_0x483091=_0x33133a['query'][_0x507e89(0x2ca)];return _0x8d7496[_0x507e89(0x29c)](_0x483091)['then'](function(){const _0x550470=_0x507e89;for(let _0x30f5b7=0x0;_0x30f5b7<_0x483091['length'];_0x30f5b7++){let _0x2b4541=[];db[_0x550470(0x2bc)][_0x550470(0x2f3)]({'where':{'id':_0x483091[_0x30f5b7]}})['then'](function(_0x56df8a){const _0x5f31d6=_0x550470;return _0x2b4541[_0x5f31d6(0x229)](_0x56df8a[_0x5f31d6(0x1e8)]()['then'](function(_0xc52545){const _0x2039a3=_0x5f31d6;for(let _0x1afd18=0x0;_0x1afd18<_0xc52545[_0x2039a3(0x1e6)];_0x1afd18++){_0xc52545[_0x1afd18][_0x2039a3(0x32e)]('channel',_0x2039a3(0x1f5));}return _0xc52545;})),_0x2b4541[_0x5f31d6(0x229)](_0x56df8a['getChatQueues']()[_0x5f31d6(0x27e)](function(_0x4087f6){const _0x1d1417=_0x5f31d6;for(let _0x1923fa=0x0;_0x1923fa<_0x4087f6[_0x1d1417(0x1e6)];_0x1923fa++){_0x4087f6[_0x1923fa][_0x1d1417(0x32e)]('channel',_0x1d1417(0x30f));}return _0x4087f6;})),_0x2b4541[_0x5f31d6(0x229)](_0x56df8a[_0x5f31d6(0x26b)]()[_0x5f31d6(0x27e)](function(_0x3e8269){const _0x970d9d=_0x5f31d6;for(let _0x38d337=0x0;_0x38d337<_0x3e8269[_0x970d9d(0x1e6)];_0x38d337++){_0x3e8269[_0x38d337][_0x970d9d(0x32e)]('channel',_0x970d9d(0x2ea));}return _0x3e8269;})),_0x2b4541['push'](_0x56df8a[_0x5f31d6(0x1de)]()[_0x5f31d6(0x27e)](function(_0x3e8e63){const _0x24704b=_0x5f31d6;for(let _0x37f7c9=0x0;_0x37f7c9<_0x3e8e63[_0x24704b(0x1e6)];_0x37f7c9++){_0x3e8e63[_0x37f7c9]['setDataValue'](_0x24704b(0x322),'Sms');}return _0x3e8e63;})),_0x2b4541[_0x5f31d6(0x229)](_0x56df8a[_0x5f31d6(0x311)]()[_0x5f31d6(0x27e)](function(_0x2db1c4){const _0x1ca3e9=_0x5f31d6;for(let _0x3cea7f=0x0;_0x3cea7f<_0x2db1c4[_0x1ca3e9(0x1e6)];_0x3cea7f++){_0x2db1c4[_0x3cea7f]['setDataValue'](_0x1ca3e9(0x322),_0x1ca3e9(0x24e));}return _0x2db1c4;})),_0x2b4541[_0x5f31d6(0x229)](_0x56df8a[_0x5f31d6(0x20e)]()[_0x5f31d6(0x27e)](function(_0x1d71d7){const _0x234972=_0x5f31d6;for(let _0x52e95b=0x0;_0x52e95b<_0x1d71d7[_0x234972(0x1e6)];_0x52e95b++){_0x1d71d7[_0x52e95b]['setDataValue'](_0x234972(0x322),_0x234972(0x248));}return _0x1d71d7;})),_0x2b4541[_0x5f31d6(0x229)](_0x56df8a[_0x5f31d6(0x279)]()[_0x5f31d6(0x27e)](function(_0x59af68){const _0x503024=_0x5f31d6;for(let _0x4a5e48=0x0;_0x4a5e48<_0x59af68['length'];_0x4a5e48++){_0x59af68[_0x4a5e48][_0x503024(0x32e)](_0x503024(0x322),_0x503024(0x233));}return _0x59af68;})),Promise['all'](_0x2b4541);})[_0x550470(0x27e)](function(_0x53c12a){const _0x229915=_0x550470,_0x493e80=_[_0x229915(0x30b)](_0x53c12a);return _0x2b4541=[],db[_0x229915(0x276)][_0x229915(0x28d)](function(_0x1cfe76){const _0xad96c9=_0x229915;for(let _0x1a2d28=0x0;_0x1a2d28<_0x493e80['length'];_0x1a2d28++){_0x2b4541[_0xad96c9(0x229)](_0x493e80[_0x1a2d28][_0xad96c9(0x2b0)](_0x202648['id']),{'transaction':_0x1cfe76});}return Promise[_0xad96c9(0x2ab)](_0x2b4541)[_0xad96c9(0x27e)](function(){const _0x17e08e=_0xad96c9;if(!_0x202648['online'])return;const _0x306d2d=_['filter'](_0x493e80,function(_0xf4ffc1){const _0x1eb3b6=a775_0x6d7d;return _0xf4ffc1[_0x1eb3b6(0x244)](_0x1eb3b6(0x322))===_0x1eb3b6(0x1f5);});return Promise[_0x17e08e(0x2ab)](_0x306d2d[_0x17e08e(0x20d)](_0x168afe=>{const _0x1e06e5=_0x17e08e;return db[_0x1e06e5(0x1d9)][_0x1e06e5(0x2f9)]({'where':{'VoiceQueueId':_0x168afe['id'],'UserId':_0x202648['id']},'transaction':_0x1cfe76});}));})['then'](function(){const _0x5511d2=_0xad96c9;for(let _0x3e5e63=0x0;_0x3e5e63<_0x493e80[_0x5511d2(0x1e6)];_0x3e5e63++){const _0x152d0d=_0x493e80[_0x3e5e63][_0x5511d2(0x244)](_0x5511d2(0x322)),_0x42610d=_0x152d0d+_0x5511d2(0x2e6);socket['emit'](_0x5511d2(0x212)+_0x152d0d+_0x5511d2(0x2ec),{'UserId':_0x202648['id'],[_0x42610d]:_0x493e80[_0x3e5e63]['id']});}});});});}});}})[_0x3e7167(0x27e)](respondWithStatusCode(_0x786a90,null))['catch'](handleError(_0x786a90,null));},exports[a775_0x4b333b(0x21c)]=function(_0x170215,_0x2c36c7){const _0x710811=a775_0x4b333b;let _0x4939b6={};const _0x50716d={};let _0x5ec660,_0xbc6706;return db[_0x710811(0x290)][_0x710811(0x2f3)]({'where':{'id':_0x170215[_0x710811(0x307)]['id']}})[_0x710811(0x27e)](handleEntityNotFound(_0x2c36c7,null))[_0x710811(0x27e)](function(_0x1f6528){const _0x57b72c=_0x710811;if(_0x1f6528)return _0x5ec660=_0x1f6528,_0x50716d[_0x57b72c(0x332)]=_['keys'](db[_0x57b72c(0x27b)][_0x57b72c(0x216)]),_0x50716d[_0x57b72c(0x2af)]=_[_0x57b72c(0x2eb)](_0x170215['query']),_0x50716d[_0x57b72c(0x273)]=_[_0x57b72c(0x2f8)](_0x50716d['model'],_0x50716d[_0x57b72c(0x2af)]),_0x4939b6[_0x57b72c(0x252)]=_[_0x57b72c(0x2f8)](_0x50716d[_0x57b72c(0x332)],qs[_0x57b72c(0x1dd)](_0x170215[_0x57b72c(0x2af)]['fields'])),_0x4939b6['attributes']=_0x4939b6[_0x57b72c(0x252)]['length']?_0x4939b6['attributes']:_0x50716d[_0x57b72c(0x332)],_0x4939b6['order']=qs[_0x57b72c(0x316)](_0x170215[_0x57b72c(0x2af)][_0x57b72c(0x316)]),_0x4939b6[_0x57b72c(0x2e1)]=qs[_0x57b72c(0x273)](_['pick'](_0x170215['query'],_0x50716d['filters'])),_0x170215[_0x57b72c(0x2af)][_0x57b72c(0x1f7)]&&(_0x4939b6['where']=_['merge'](_0x4939b6[_0x57b72c(0x2e1)],{[Op['or']]:_[_0x57b72c(0x20d)](_0x4939b6['attributes'],function(_0x887166){const _0xd76691=_0x57b72c,_0x200afe={};return _0x200afe[_0x887166]={[Op[_0xd76691(0x203)]]:'%'+_0x170215[_0xd76691(0x2af)][_0xd76691(0x1f7)]+'%'},_0x200afe;})})),_0x4939b6=_['merge']({},_0x4939b6,_0x170215[_0x57b72c(0x2bf)]),_0x5ec660[_0x57b72c(0x21c)](_0x4939b6);})[_0x710811(0x27e)](function(_0x4d4079){const _0x410ef2=_0x710811;if(_0x4d4079)return _0xbc6706=_0x4d4079[_0x410ef2(0x1e6)],typeof _0x170215[_0x410ef2(0x2af)][_0x410ef2(0x2b1)]===_0x410ef2(0x1e3)&&(_0x4939b6['limit']=qs[_0x410ef2(0x2f6)](_0x170215[_0x410ef2(0x2af)][_0x410ef2(0x2f6)]),_0x4939b6[_0x410ef2(0x29e)]=qs[_0x410ef2(0x29e)](_0x170215[_0x410ef2(0x2af)][_0x410ef2(0x29e)])),_0x5ec660[_0x410ef2(0x21c)](_0x4939b6);})[_0x710811(0x27e)](function(_0x371976){if(_0x371976)return _0x371976?{'count':_0xbc6706,'rows':_0x371976}:null;})[_0x710811(0x27e)](respondWithResult(_0x2c36c7,null))[_0x710811(0x2a4)](handleError(_0x2c36c7,null));},exports[a775_0x4b333b(0x227)]=function(_0x21b440,_0x310682){const _0x3c9bce=a775_0x4b333b;let _0x4bfb3c={};const _0x475e4c={};let _0x15b3ee;return db[_0x3c9bce(0x290)][_0x3c9bce(0x2f3)]({'where':{'id':_0x21b440[_0x3c9bce(0x307)]['id']}})['then'](handleEntityNotFound(_0x310682,null))['then'](function(_0x3e8cfa){const _0xe3be63=_0x3c9bce;if(_0x3e8cfa)return _0x15b3ee=_0x3e8cfa,_0x475e4c[_0xe3be63(0x332)]=_[_0xe3be63(0x2eb)](db[_0xe3be63(0x290)][_0xe3be63(0x216)]),_0x475e4c[_0xe3be63(0x2af)]=_['keys'](_0x21b440['query']),_0x475e4c[_0xe3be63(0x273)]=_['intersection'](_0x475e4c[_0xe3be63(0x332)],_0x475e4c[_0xe3be63(0x2af)]),_0x4bfb3c[_0xe3be63(0x252)]=_[_0xe3be63(0x2f8)](_0x475e4c[_0xe3be63(0x332)],qs['fields'](_0x21b440['query'][_0xe3be63(0x1dd)])),_0x4bfb3c[_0xe3be63(0x252)]=_0x4bfb3c[_0xe3be63(0x252)][_0xe3be63(0x1e6)]?_0x4bfb3c[_0xe3be63(0x252)]:_0x475e4c['model'],_0x4bfb3c[_0xe3be63(0x28b)]=qs[_0xe3be63(0x316)](_0x21b440[_0xe3be63(0x2af)]['sort']),_0x4bfb3c[_0xe3be63(0x2e1)]=qs[_0xe3be63(0x273)](_[_0xe3be63(0x222)](_0x21b440[_0xe3be63(0x2af)],_0x475e4c['filters'])),_0x21b440[_0xe3be63(0x2af)][_0xe3be63(0x1f7)]&&(_0x4bfb3c[_0xe3be63(0x2e1)]=_[_0xe3be63(0x1e5)](_0x4bfb3c[_0xe3be63(0x2e1)],{[Op['or']]:_[_0xe3be63(0x20d)](_0x4bfb3c['attributes'],function(_0x3ec65c){const _0x1dd670=_0xe3be63,_0x45d319={};return _0x45d319[_0x3ec65c]={[Op['like']]:'%'+_0x21b440[_0x1dd670(0x2af)]['filter']+'%'},_0x45d319;})})),_0x4bfb3c['model']=db[_0xe3be63(0x290)],_0x4bfb3c['as']=_0xe3be63(0x1da),_0x4bfb3c=_[_0xe3be63(0x1e5)]({},_0x4bfb3c,_0x21b440['options']),_0x15b3ee[_0xe3be63(0x1e8)]({'include':[_0x4bfb3c]});})[_0x3c9bce(0x27e)](function(_0x3f56d8){const _0x473c05=_0x3c9bce;if(_0x3f56d8){let _0x3ce5e3={};const _0x2b5e4c=[];for(let _0xf6fc9a=0x0;_0xf6fc9a<_0x3f56d8[_0x473c05(0x1e6)];_0xf6fc9a+=0x1){for(let _0x3506d0=0x0,_0xb90b39;_0x3506d0<_0x3f56d8[_0xf6fc9a][_0x473c05(0x1da)][_0x473c05(0x1e6)];_0x3506d0+=0x1){_0xb90b39=_0x3f56d8[_0xf6fc9a][_0x473c05(0x1da)][_0x3506d0][_0x473c05(0x2df)]({'plain':!![]}),_0x3ce5e3[_0xb90b39['id']]=_0xb90b39;}}_0x3ce5e3=_['values'](_0x3ce5e3);for(let _0x50f031=qs[_0x473c05(0x29e)](_0x21b440[_0x473c05(0x2af)][_0x473c05(0x29e)]);_0x50f031<_0x3ce5e3['length']&&_0x2b5e4c[_0x473c05(0x1e6)]{crypto['randomBytes'](_0x3d439e,function(_0x1feea5,_0x597f7a){const _0x4e2416=a650_0x3c2f;return _0x1feea5&&_0x33f84f(_0x1feea5),_0xd94111(_0x597f7a['toString'](_0x4e2416('0x36')));});});},_0x137421[_0x2a7146('0x48')]['encryptPassword']=function(_0x3efb93,_0x3b7c8e){const _0x476ccd=_0x2a7146;if(!_0x3efb93||!this[_0x476ccd('0x2a')])return _0x3b7c8e?_0x3b7c8e(null):null;const _0x3bec59=0x2710,_0x20d7ba=0x40,_0xd93aac=Buffer[_0x476ccd('0x14')](this[_0x476ccd('0x2a')],_0x476ccd('0x36'));if(!_0x3b7c8e)return crypto[_0x476ccd('0x0')](_0x3efb93,_0xd93aac,_0x3bec59,_0x20d7ba,_0x476ccd('0x34'))['toString']('base64');return crypto[_0x476ccd('0xc')](_0x3efb93,_0xd93aac,_0x3bec59,_0x20d7ba,_0x476ccd('0x34'),function(_0x323efa,_0x408886){const _0xcb774e=_0x476ccd;return _0x323efa&&_0x3b7c8e(_0x323efa),_0x3b7c8e(null,_0x408886[_0xcb774e('0xb')](_0xcb774e('0x36')));});},_0x137421[_0x2a7146('0x48')][_0x2a7146('0x15')]=async function(){const _0x2f26dd=_0x2a7146;if(!this[_0x2f26dd('0x12')])return null;if(!_[_0x2f26dd('0x18')](this['password'])&&authTypes[_0x2f26dd('0x22')](this[_0x2f26dd('0x24')])===-0x1)throw new Error(_0x2f26dd('0x1b'));return this['salt']=await this['makeSaltAsync'](),new Promise((_0x3aa4bb,_0x3ef82f)=>{const _0x495aac=_0x2f26dd;this['encryptPassword'](this[_0x495aac('0x12')],(_0x272c8d,_0x289b80)=>{const _0x2d5f2a=_0x495aac;_0x272c8d?_0x3ef82f(_0x272c8d):(this[_0x2d5f2a('0x12')]=_0x289b80,_0x3aa4bb());});});},_0x137421[_0x2a7146('0x48')][_0x2a7146('0x4a')]=function(){const _0x5e1717=_0x2a7146;this[_0x5e1717('0x35')]=md5(this[_0x5e1717('0x1d')]+_0x5e1717('0xd')+this[_0x5e1717('0x12')]);},_0x137421;}; \ No newline at end of file +const a777_0x4408=['init','indexOf','User','toString','./user.options','local','md5secret','salt','sequelize','pbkdf2','base64','from','Invalid\x20password','password','google','isEmpty','provider','pbkdf2Sync','exports','makeSaltAsync','function','Missing\x20Callback','randomBytes','encryptPassword',':asterisk:','lodash','sha1'];(function(_0x2a0e2d,_0x3899ce){const _0x4408d0=function(_0x3d9600){while(--_0x3d9600){_0x2a0e2d['push'](_0x2a0e2d['shift']());}};_0x4408d0(++_0x3899ce);}(a777_0x4408,0x10a));const a777_0x3d96=function(_0x2a0e2d,_0x3899ce){_0x2a0e2d=_0x2a0e2d-0x1c0;let _0x4408d0=a777_0x4408[_0x2a0e2d];return _0x4408d0;};const a777_0x22030b=a777_0x3d96;'use strict';const {Model}=require(a777_0x22030b(0x1cc)),{attributes}=require('./user.attributes'),{options}=require(a777_0x22030b(0x1c8)),crypto=require('crypto'),md5=require('md5'),_=require(a777_0x22030b(0x1c2)),authTypes=[a777_0x22030b(0x1d2),a777_0x22030b(0x1c9)];class User extends Model{['authenticate'](_0x50353a,_0x51c744){const _0x39d9e2=a777_0x22030b;if(!_0x51c744)return this[_0x39d9e2(0x1d1)]===this['encryptPassword'](_0x50353a);this[_0x39d9e2(0x1c0)](_0x50353a,(_0x4165cf,_0x146f31)=>{_0x4165cf&&_0x51c744(_0x4165cf),this['password']===_0x146f31?_0x51c744(null,!![]):_0x51c744(null,![]);});}['makeSalt'](_0x354adb,_0x161426){const _0xea399f=a777_0x22030b,_0x44a3f4=0x10;if(typeof arguments[0x0]===_0xea399f(0x1d8))_0x161426=arguments[0x0],_0x354adb=_0x44a3f4;else{if(typeof arguments[0x1]===_0xea399f(0x1d8))_0x161426=arguments[0x1];else throw new Error(_0xea399f(0x1d9));}!_0x354adb&&(_0x354adb=_0x44a3f4);try{const _0x5baae6=crypto[_0xea399f(0x1da)](_0x354adb),_0x5e1e13=_0x5baae6[_0xea399f(0x1c7)](_0xea399f(0x1ce));return _0x161426(null,_0x5e1e13),_0x5e1e13;}catch(_0x34e68d){_0x161426(_0x34e68d);throw _0x34e68d;}}async[a777_0x22030b(0x1d7)](_0x539087=0x10){return new Promise((_0x394af4,_0x54046e)=>{const _0x56d43a=a777_0x3d96;crypto[_0x56d43a(0x1da)](_0x539087,function(_0x53e945,_0xc4dae2){const _0x2d358d=_0x56d43a;_0x53e945&&_0x54046e(_0x53e945),_0x394af4(_0xc4dae2['toString'](_0x2d358d(0x1ce)));});});}[a777_0x22030b(0x1c0)](_0x4431a6,_0x42e106){const _0x3fdfe3=a777_0x22030b;if(!_0x4431a6||!this[_0x3fdfe3(0x1cb)])return _0x42e106&&_0x42e106(null),null;const _0x27100f=0x2710,_0x125197=0x40,_0x39e5e6=Buffer[_0x3fdfe3(0x1cf)](this[_0x3fdfe3(0x1cb)],_0x3fdfe3(0x1ce));if(!_0x42e106)return crypto[_0x3fdfe3(0x1d5)](_0x4431a6,_0x39e5e6,_0x27100f,_0x125197,_0x3fdfe3(0x1c3))[_0x3fdfe3(0x1c7)](_0x3fdfe3(0x1ce));try{crypto[_0x3fdfe3(0x1cd)](_0x4431a6,_0x39e5e6,_0x27100f,_0x125197,_0x3fdfe3(0x1c3),(_0x36b851,_0x10a5ab)=>{const _0x11f50d=_0x3fdfe3;_0x36b851?_0x42e106(_0x36b851):_0x42e106(null,_0x10a5ab[_0x11f50d(0x1c7)](_0x11f50d(0x1ce)));});}catch(_0x5cdf7c){_0x42e106&&_0x42e106(_0x5cdf7c);throw _0x5cdf7c;}}async['updatePassword'](){const _0x5af656=a777_0x22030b;if(!this[_0x5af656(0x1d1)])return null;if(!_[_0x5af656(0x1d3)](this[_0x5af656(0x1d1)])&&authTypes[_0x5af656(0x1c5)](this[_0x5af656(0x1d4)])===-0x1)throw new Error(_0x5af656(0x1d0));return this[_0x5af656(0x1cb)]=await this['makeSaltAsync'](),new Promise((_0x57a777,_0x38a993)=>{const _0x1a67dd=_0x5af656;this[_0x1a67dd(0x1c0)](this[_0x1a67dd(0x1d1)],(_0x32231c,_0x8573b0)=>{_0x32231c?_0x38a993(_0x32231c):(this['password']=_0x8573b0,_0x57a777());});});}['updateMd5Password'](){const _0x284593=a777_0x22030b;return this['md5secret']=md5(this['name']+_0x284593(0x1c1)+this[_0x284593(0x1d1)]),this[_0x284593(0x1ca)];}}function init(_0x3199d9,_0x3f23af){const _0x2f8201=a777_0x22030b,_0xc9ed4e=options(_0x3199d9),_0x11c7cb=typeof _0x3f23af===_0x2f8201(0x1d8)?_0x3f23af(_0xc9ed4e):_0xc9ed4e;return User[_0x2f8201(0x1c4)](attributes,_0x11c7cb),User;}module[a777_0x22030b(0x1d6)][a777_0x22030b(0x1c6)]=User,module[a777_0x22030b(0x1d6)][a777_0x22030b(0x1c4)]=init; \ No newline at end of file diff --git a/server/api/user/user.options.js b/server/api/user/user.options.js new file mode 100644 index 0000000..9af823f --- /dev/null +++ b/server/api/user/user.options.js @@ -0,0 +1 @@ +const a778_0x1e6d=['models','WAV','includes','then','SIP/%s,,tTxX','from-sip','utf8','Dial','changed','exports','record','push','chanspy','VoiceChanSpy','users','util','name','format','join','context','system','auth','gsm','CDR(type)=%s','lodash','concat','_XCALLY_MIXMONITOR_UNIQUEID=${UNIQUEID}','SIP/%s,,tTxXU(xcally-mixmonitor-context)','recordingFormat','destroy','length','VoiceExtension','wav','updatePassword','_XCALLY_MIXMONITOR_FORMAT=%s','password','merge','Set','options','CDR(type)=internal','resolve','StopMixMonitor','catch','bulkCreate','ChanSpy','extensionMonitor','%s%s','SIP/%s,%s','internal','updateMd5Password'];(function(_0x2214a0,_0x353527){const _0x1e6dc8=function(_0x311d38){while(--_0x311d38){_0x2214a0['push'](_0x2214a0['shift']());}};_0x1e6dc8(++_0x353527);}(a778_0x1e6d,0x13d));const a778_0x311d=function(_0x2214a0,_0x353527){_0x2214a0=_0x2214a0-0xa9;let _0x1e6dc8=a778_0x1e6d[_0x2214a0];return _0x1e6dc8;};const a778_0x526b02=a778_0x311d,_=require(a778_0x526b02(0xb0)),util=require(a778_0x526b02(0xd9)),{Op}=require('sequelize');function addUserApplication(_0x2641d0,_0x48efb5){const _0x4787fc=a778_0x526b02,_0x1adcbc=[_0x4787fc(0xb8),_0x4787fc(0xcb),_0x4787fc(0xae)],_0x51c17b={'context':_0x2641d0['context']||_0x4787fc(0xcf),'exten':_0x48efb5,'type':_0x4787fc(0xac),'isApp':![],'UserId':_0x2641d0['id']},_0x1f3704=[{'app':_0x4787fc(0xbd),'appdata':_0x4787fc(0xbf)}];_0x2641d0['extensionMonitor']&&_[_0x4787fc(0xcc)](_0x1adcbc,_0x2641d0[_0x4787fc(0xc5)])?(_0x1f3704[_0x4787fc(0xd5)]({'app':_0x4787fc(0xbd),'appdata':_0x4787fc(0xb2)}),_0x1f3704[_0x4787fc(0xd5)]({'app':_0x4787fc(0xbd),'appdata':util[_0x4787fc(0xa9)](_0x4787fc(0xba),_0x2641d0['extensionMonitor'])}),_0x1f3704[_0x4787fc(0xd5)]({'app':_0x4787fc(0xd1),'appdata':util[_0x4787fc(0xa9)](_0x4787fc(0xb3),_0x2641d0[_0x4787fc(0xda)])})):_0x1f3704[_0x4787fc(0xd5)]({'app':_0x4787fc(0xd1),'appdata':util[_0x4787fc(0xa9)](_0x4787fc(0xce),_0x2641d0['name'])});_0x1f3704[_0x4787fc(0xd5)]({'app':'Hangup'});for(let _0x32ce5a=0x0;_0x32ce5a<_0x1f3704[_0x4787fc(0xb6)];_0x32ce5a++){_0x1f3704[_0x32ce5a]['priority']=_0x32ce5a+0x1,_0x1f3704[_0x32ce5a]=_['defaults'](_0x1f3704[_0x32ce5a],_0x51c17b);}return _0x1f3704;}function addChanSpyApplications(_0x4b145d,_0x453754,_0x2e9bff){const _0x331961=a778_0x526b02,_0xa8250c={'context':_0x4b145d[_0x331961(0xab)]||'from-sip','type':_0x331961(0xac),'isApp':![],'UserId':_0x4b145d['id']},_0x121045=[];for(let _0xe56252=0x0,_0x570848=0x1;_0xe56252<_0x2e9bff[_0x331961(0xb6)];_0xe56252++,_0x570848=0x1){const _0x4c609f={'exten':util[_0x331961(0xa9)](_0x331961(0xc6),_0x2e9bff[_0xe56252]['prefix'],_0x453754),'ChanSpyId':_0x2e9bff[_0xe56252]['id']};_0x121045[_0x331961(0xd5)](_[_0x331961(0xbc)]({'app':'Set','appdata':util[_0x331961(0xa9)](_0x331961(0xaf),_0x331961(0xd6)),'priority':_0x570848++},_0xa8250c,_0x4c609f)),_0x2e9bff[_0xe56252][_0x331961(0xd4)]&&_0x121045['push'](_[_0x331961(0xbc)]({'app':'MixMonitor','appdata':util['format']('${UNIQUEID}.%s,ab',_0x2e9bff[_0xe56252][_0x331961(0xb4)]),'priority':_0x570848++},_0xa8250c,_0x4c609f)),_0x2e9bff[_0xe56252][_0x331961(0xad)]&&_0x121045['push'](_['merge']({'app':'Authenticate','appdata':_0x2e9bff[_0xe56252]['password'],'priority':_0x570848++},_0xa8250c,_0x4c609f)),_0x121045[_0x331961(0xd5)](_[_0x331961(0xbc)]({'app':_0x331961(0xc4),'appdata':util[_0x331961(0xa9)](_0x331961(0xc7),_0x4b145d[_0x331961(0xda)],_0x2e9bff[_0xe56252][_0x331961(0xbe)]?_0x2e9bff[_0xe56252][_0x331961(0xbe)][_0x331961(0xaa)](''):''),'priority':_0x570848++},_0xa8250c,_0x4c609f)),_0x2e9bff[_0xe56252]['record']&&_0x121045['push'](_['merge']({'app':_0x331961(0xc1),'priority':_0x570848++},_0xa8250c,_0x4c609f));}return _0x121045;}function getChanSpy(_0x4a3947,_0xa38226){return new Promise(function(_0x5d57c0,_0x20a6f0){const _0x4242b1=a778_0x311d;return _0x4a3947[_0x4242b1(0xd7)]['findAll']()[_0x4242b1(0xcd)](function(_0x3b5801){const _0x3de244=_0x4242b1;if(_0x3b5801){let _0x1b164a=addChanSpyApplications(_0xa38226,_0xa38226[_0x3de244(0xc8)],_0x3b5801);return _0xa38226[_0x3de244(0xc8)]!=_0xa38226[_0x3de244(0xda)]&&(_0x1b164a=_0x1b164a['concat'](addChanSpyApplications(_0xa38226,_0xa38226[_0x3de244(0xda)],_0x3b5801))),_0x5d57c0(_0x1b164a);}return _0x5d57c0([]);})[_0x4242b1(0xc2)](function(_0x415340){_0x20a6f0(_0x415340);});});}function options(_0x508187){const _0x17e1f7=a778_0x526b02;return{'sequelize':_0x508187,'tableName':_0x17e1f7(0xd8),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeCreate':function(_0x2573d2){return _0x2573d2['updateMd5Password'](),_0x2573d2['updatePassword']();},'beforeUpdate':function(_0x3d11ba){const _0x4282b0=_0x17e1f7;return _0x3d11ba[_0x4282b0(0xd2)](_0x4282b0(0xbb))?(_0x3d11ba[_0x4282b0(0xc9)](),_0x3d11ba[_0x4282b0(0xb9)]()):Promise[_0x4282b0(0xc0)]();},'afterCreate':function(_0x15ee43){const _0xb99acc=_0x17e1f7,_0x4adcb6=_0x508187[_0xb99acc(0xca)];let _0x114127=addUserApplication(_0x15ee43,_0x15ee43['internal']);return _0x15ee43[_0xb99acc(0xc8)]!=_0x15ee43['name']&&(_0x114127=_0x114127[_0xb99acc(0xb1)](addUserApplication(_0x15ee43,_0x15ee43[_0xb99acc(0xda)]))),_0x4adcb6[_0xb99acc(0xb7)][_0xb99acc(0xc3)](_0x114127)['then'](function(){const _0x5d4cad=_0xb99acc;if(_0x15ee43[_0x5d4cad(0xd6)])return getChanSpy(_0x4adcb6,_0x15ee43);})['then'](function(_0x18396a){const _0x51c506=_0xb99acc;return _0x18396a&&_0x18396a[_0x51c506(0xb6)]?_0x4adcb6[_0x51c506(0xb7)]['bulkCreate'](_0x18396a):null;})[_0xb99acc(0xc2)](function(_0x59f2b6){return _0x59f2b6;});},'afterUpdate':function(_0x2a5f13){const _0x368354=_0x17e1f7,_0x35cdca=_0x508187[_0x368354(0xca)];return Promise[_0x368354(0xc0)]()[_0x368354(0xcd)](function(){const _0x4a18c4=_0x368354;if(_0x2a5f13[_0x4a18c4(0xd2)](_0x4a18c4(0xd6))||_0x2a5f13['changed'](_0x4a18c4(0xab)))return _0x35cdca[_0x4a18c4(0xb7)][_0x4a18c4(0xb5)]({'where':{'UserId':_0x2a5f13['id'],'type':_0x4a18c4(0xac),'ChanSpyId':{[Op['ne']]:null}}})[_0x4a18c4(0xcd)](function(){const _0x48a964=_0x4a18c4;if(_0x2a5f13[_0x48a964(0xd6)])return getChanSpy(_0x35cdca,_0x2a5f13)[_0x48a964(0xcd)](function(_0x24328f){const _0x443c07=_0x48a964;if(_0x24328f&&_0x24328f[_0x443c07(0xb6)])return _0x35cdca[_0x443c07(0xb7)][_0x443c07(0xc3)](_0x24328f);});});})[_0x368354(0xcd)](function(){const _0x1cac6e=_0x368354;return _0x2a5f13[_0x1cac6e(0xd2)](_0x1cac6e(0xc5))||_0x2a5f13['changed'](_0x1cac6e(0xab))?_0x35cdca['VoiceExtension'][_0x1cac6e(0xb5)]({'where':{'UserId':_0x2a5f13['id'],'type':_0x1cac6e(0xac),'ChanSpyId':null}})[_0x1cac6e(0xcd)](function(){const _0x9a225b=_0x1cac6e;let _0x6179ae=addUserApplication(_0x2a5f13,_0x2a5f13[_0x9a225b(0xc8)]);return _0x2a5f13[_0x9a225b(0xc8)]!=_0x2a5f13['name']&&(_0x6179ae=_0x6179ae[_0x9a225b(0xb1)](addUserApplication(_0x2a5f13,_0x2a5f13['name']))),_0x35cdca[_0x9a225b(0xb7)][_0x9a225b(0xc3)](_0x6179ae);}):null;})['catch'](function(_0x16df71){return _0x16df71;});},'afterDestroy':function(_0x1b457d){const _0x445eb5=_0x17e1f7,_0x5463db=_0x508187[_0x445eb5(0xca)];return _0x5463db[_0x445eb5(0xb7)][_0x445eb5(0xb5)]({'where':{'UserId':_0x1b457d['id'],'type':'system'}});}},'charset':_0x17e1f7(0xd0),'collate':'utf8_bin'};}module[a778_0x526b02(0xd3)][a778_0x526b02(0xbe)]=options; \ No newline at end of file diff --git a/server/api/user/user.rpc.js b/server/api/user/user.rpc.js index 5bf369a..449aa56 100644 --- a/server/api/user/user.rpc.js +++ b/server/api/user/user.rpc.js @@ -1 +1 @@ -const a651_0x6d83=['./user.socket','DEFAULT\x20PAUSE','chat','register','map','all','name','mobile','system','interface','agents','update','LOGIN','User','agent','merge','bulkCreate','SIP/%s','options','error','sequelize','message','limit','format','isNil','info','LogoutUser','loginInPause','attributes','role','channel','upsert','GetUser','getVoiceQueues','phone','%s%s','ShowUser','MemberReport','include','callysquare','../../rediscache','destroy','Pause','internal','../../mysqldb','UserVoiceQueueRt','count','raw','body','model','../../config/utils','YYYY-MM-DD\x20HH:mm:ss','sms','Unknown\x20channel','UnpauseUser','forEach','lodash','catch','set','push','LOGININPAUSE','voice','where','moment','rpc','findAll','fax','uniqueid','debug','whatsapp','PAUSE','../../config/logger','getLicense','mail','stringify','concat','../../config/license/util','length','then','type','findOne'];(function(_0x3483e9,_0x6d8341){const _0x2def55=function(_0x9bb42a){while(--_0x9bb42a){_0x3483e9['push'](_0x3483e9['shift']());}};_0x2def55(++_0x6d8341);}(a651_0x6d83,0x102));const a651_0x2def=function(_0x3483e9,_0x6d8341){_0x3483e9=_0x3483e9-0x0;let _0x2def55=a651_0x6d83[_0x3483e9];return _0x2def55;};const _0x51809f=a651_0x2def;'use strict';const _=require(_0x51809f('0x29')),util=require('util'),db=require(_0x51809f('0x1d'))['db'],logger=require(_0x51809f('0x38'))(_0x51809f('0x31')),moment=require(_0x51809f('0x30')),utils=require(_0x51809f('0x23')),{getSocket}=require(_0x51809f('0x19')),socket=getSocket(),sequelize=require(_0x51809f('0x5')),{Op}=sequelize;require(_0x51809f('0x42'))[_0x51809f('0x45')](socket),exports[_0x51809f('0x11')]=function(_0x9bb42a){const _0x282578=this;return new Promise(function(_0x4f0079,_0x775e96){const _0x1d9fc8=a651_0x2def;return db['User'][_0x1d9fc8('0x32')]({'raw':_0x9bb42a[_0x1d9fc8('0x3')]?_0x9bb42a['options'][_0x1d9fc8('0x20')]===undefined?!![]:![]:!![],'where':_0x9bb42a[_0x1d9fc8('0x3')]?_0x9bb42a['options']['where']||null:null,'attributes':_0x9bb42a[_0x1d9fc8('0x3')]?_0x9bb42a[_0x1d9fc8('0x3')]['attributes']||null:null,'limit':_0x9bb42a[_0x1d9fc8('0x3')]?_0x9bb42a[_0x1d9fc8('0x3')][_0x1d9fc8('0x7')]||null:null,'include':_0x9bb42a[_0x1d9fc8('0x3')]?_0x9bb42a[_0x1d9fc8('0x3')][_0x1d9fc8('0x17')]?_['map'](_0x9bb42a['options'][_0x1d9fc8('0x17')],function(_0x1f5431){const _0x592dd7=_0x1d9fc8;return{'model':db[_0x1f5431[_0x592dd7('0x22')]],'as':_0x1f5431['as'],'attributes':_0x1f5431[_0x592dd7('0xd')],'include':_0x1f5431['include']?_[_0x592dd7('0x46')](_0x1f5431[_0x592dd7('0x17')],function(_0x331c53){const _0x29c56f=_0x592dd7;return{'model':db[_0x331c53[_0x29c56f('0x22')]],'as':_0x331c53['as'],'attributes':_0x331c53[_0x29c56f('0xd')],'include':_0x331c53[_0x29c56f('0x17')]?_[_0x29c56f('0x46')](_0x331c53[_0x29c56f('0x17')],function(_0x3d45ac){const _0x1041dd=_0x29c56f;return{'model':db[_0x3d45ac[_0x1041dd('0x22')]],'as':_0x3d45ac['as'],'attributes':_0x3d45ac[_0x1041dd('0xd')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x5bc2d4){const _0xa95b64=_0x1d9fc8;logger[_0xa95b64('0xa')]('GetUser',_0x9bb42a),logger[_0xa95b64('0x35')](_0xa95b64('0x11'),_0x9bb42a,JSON[_0xa95b64('0x3b')](_0x5bc2d4)),_0x4f0079(_0x5bc2d4);})['catch'](function(_0x5c4195){const _0x5472d1=_0x1d9fc8;logger['error'](_0x5472d1('0x11'),_0x5c4195['message'],_0x9bb42a),_0x775e96(_0x282578[_0x5472d1('0x4')](0x1f4,_0x5c4195[_0x5472d1('0x6')]));});});},exports['ShowUser']=function(_0x45e57d){const _0x4fe16f=this;return new Promise(function(_0x5aa20b,_0x35ddbc){const _0x3a0f2a=a651_0x2def;return db['User'][_0x3a0f2a('0x41')]({'raw':_0x45e57d[_0x3a0f2a('0x3')]?_0x45e57d[_0x3a0f2a('0x3')]['raw']===undefined?!![]:![]:!![],'where':_0x45e57d[_0x3a0f2a('0x3')]?_0x45e57d['options'][_0x3a0f2a('0x2f')]||null:null,'attributes':_0x45e57d[_0x3a0f2a('0x3')]?_0x45e57d['options'][_0x3a0f2a('0xd')]||null:null,'include':_0x45e57d[_0x3a0f2a('0x3')]?_0x45e57d[_0x3a0f2a('0x3')][_0x3a0f2a('0x17')]?_[_0x3a0f2a('0x46')](_0x45e57d[_0x3a0f2a('0x3')][_0x3a0f2a('0x17')],function(_0x2e2c6d){const _0x206fa8=_0x3a0f2a;return{'model':db[_0x2e2c6d[_0x206fa8('0x22')]],'as':_0x2e2c6d['as'],'attributes':_0x2e2c6d[_0x206fa8('0xd')],'include':_0x2e2c6d['include']?_[_0x206fa8('0x46')](_0x2e2c6d[_0x206fa8('0x17')],function(_0x5e4d66){const _0x7367a7=_0x206fa8;return{'model':db[_0x5e4d66[_0x7367a7('0x22')]],'as':_0x5e4d66['as'],'attributes':_0x5e4d66[_0x7367a7('0xd')],'include':_0x5e4d66[_0x7367a7('0x17')]?_[_0x7367a7('0x46')](_0x5e4d66[_0x7367a7('0x17')],function(_0x1d6ac7){const _0x433ccc=_0x7367a7;return{'model':db[_0x1d6ac7[_0x433ccc('0x22')]],'as':_0x1d6ac7['as'],'attributes':_0x1d6ac7['attributes']};}):[]};}):[]};}):[]:[]})[_0x3a0f2a('0x3f')](function(_0x598f77){const _0x5804b7=_0x3a0f2a;logger[_0x5804b7('0xa')]('ShowUser',_0x45e57d),logger[_0x5804b7('0x35')](_0x5804b7('0x15'),_0x45e57d,JSON[_0x5804b7('0x3b')](_0x598f77)),_0x5aa20b(_0x598f77);})[_0x3a0f2a('0x2a')](function(_0x4c4eea){const _0x5ca5c4=_0x3a0f2a;logger[_0x5ca5c4('0x4')]('ShowUser',_0x4c4eea[_0x5ca5c4('0x6')],_0x45e57d),_0x35ddbc(_0x4fe16f[_0x5ca5c4('0x4')](0x1f4,_0x4c4eea[_0x5ca5c4('0x6')]));});});},exports['PauseUser']=function(_0x1b97a4){const _0x5da9ed=this;return new Promise(function(_0xdf1334,_0xd3dee9){const _0x3e618b=a651_0x2def;let _0x22aa3c;return db['User'][_0x3e618b('0x41')]({'where':_0x1b97a4['options']['where']||{},'attributes':['id',_0x3e618b('0x48'),_0x3e618b('0xe'),_0x3e618b('0x1c'),_0x3e618b('0x4b')]})[_0x3e618b('0x3f')](function(_0x185bc5){const _0x1bc234=_0x3e618b;if(_0x185bc5)return _0x22aa3c=_0x185bc5,db['UserVoiceQueueRt'][_0x1bc234('0x4d')]({'paused':0x1},{'where':{'UserId':_0x22aa3c['id']},'individualHooks':!![]});})['then'](function(){const _0x111198=_0x3e618b;if(_0x22aa3c)return db[_0x111198('0x16')][_0x111198('0x32')]({'where':{'membername':_0x22aa3c[_0x111198('0x48')],'type':'PAUSE','exitAt':null}});})[_0x3e618b('0x3f')](function(_0x42dbb2){const _0x43f44d=_0x3e618b;if(_0x22aa3c){if(_0x42dbb2&&_0x42dbb2[_0x43f44d('0x3e')]){const _0x3be66d=moment()['format'](_0x43f44d('0x24'));for(let _0x4c76dc=0x0,_0x5bbe74=_0x42dbb2[_0x43f44d('0x3e')];_0x4c76dc<_0x5bbe74;_0x4c76dc++){_0x42dbb2[_0x4c76dc][_0x43f44d('0x4d')]({'exitAt':_0x3be66d});}}}})[_0x3e618b('0x3f')](function(){const _0x30f03e=_0x3e618b;if(_0x22aa3c){const _0x42186c=[],_0x527513=utils['getChannels']();return _0x527513[_0x30f03e('0x28')](function(_0x347574){const _0xbe57ee=_0x30f03e;_0x42186c['push']({'channel':_0x347574,'membername':_0x22aa3c['name'],'interface':_[_0xbe57ee('0x9')](_0x22aa3c[_0xbe57ee('0x4b')])?util[_0xbe57ee('0x8')](_0xbe57ee('0x2'),_0x22aa3c[_0xbe57ee('0x48')]):_0x22aa3c['interface'],'type':'PAUSE','enterAt':moment()['format']('YYYY-MM-DD\x20HH:mm:ss'),'data1':_0x1b97a4[_0xbe57ee('0x21')][_0xbe57ee('0x40')]||_0xbe57ee('0x43'),'role':_0x22aa3c[_0xbe57ee('0xe')],'internal':_0x22aa3c[_0xbe57ee('0x1c')],'uniqueid':_0x1b97a4[_0xbe57ee('0x21')][_0xbe57ee('0x34')]||null});}),db[_0x30f03e('0x16')][_0x30f03e('0x1')](_0x42186c,{'individualHooks':!![]});}})['then'](function(){const _0x28a4a1=_0x3e618b;if(_0x22aa3c)return _0x22aa3c[_0x28a4a1('0x4d')]({'voicePause':!![],'mailPause':!![],'chatPause':!![],'faxPause':!![],'smsPause':!![],'openchannelPause':!![],'whatsappPause':!![],'pauseType':_0x1b97a4[_0x28a4a1('0x21')][_0x28a4a1('0x40')]||_0x28a4a1('0x43'),'lastPauseAt':moment()[_0x28a4a1('0x8')](_0x28a4a1('0x24'))});})[_0x3e618b('0x3f')](function(_0x5c8554){_0xdf1334(_0x5c8554);})['catch'](function(_0x4f447b){const _0x4757d3=_0x3e618b;_0xd3dee9(_0x5da9ed[_0x4757d3('0x4')](0x1f4,_0x4f447b['message']));});});},exports[_0x51809f('0x27')]=function(_0xeed22f){const _0xbcc6f3=this;return new Promise(function(_0x4b7a9b,_0x4968f0){const _0x423e01=a651_0x2def;let _0x3d5b62;return db[_0x423e01('0x4f')][_0x423e01('0x41')]({'where':_0xeed22f[_0x423e01('0x3')][_0x423e01('0x2f')]||{},'attributes':['id',_0x423e01('0x48')]})[_0x423e01('0x3f')](function(_0x2ac274){const _0x5340c2=_0x423e01;if(_0x2ac274){_0x3d5b62=_0x2ac274;if(_0xeed22f[_0x5340c2('0x21')]['channel']&&!utils['isValidChannel'](_0xeed22f[_0x5340c2('0x21')][_0x5340c2('0xf')]))throw new Error(_0x5340c2('0x26'));switch(_0xeed22f[_0x5340c2('0x21')][_0x5340c2('0xf')]){case _0x5340c2('0x2e'):return db[_0x5340c2('0x1e')]['update']({'paused':0x0},{'where':{'UserId':_0x3d5b62['id']}})[_0x5340c2('0x3f')](function(){const _0x15118e=_0x5340c2;return db['MemberReport']['findOne']({'where':{'channel':_0xeed22f[_0x15118e('0x21')][_0x15118e('0xf')],'membername':_0x3d5b62[_0x15118e('0x48')],'type':_0x15118e('0x37'),'exitAt':null}});})[_0x5340c2('0x3f')](function(_0x6dfc94){const _0xa8665c=_0x5340c2;if(_0x6dfc94)return _0x6dfc94[_0xa8665c('0x4d')]({'exitAt':moment()[_0xa8665c('0x8')]('YYYY-MM-DD\x20HH:mm:ss'),'data2':_0xa8665c('0x4a')},{'individualHooks':!![]});return null;})[_0x5340c2('0x3f')](function(){const _0x3fe123=_0x5340c2;return _0x3d5b62[_0x3fe123('0x4d')]({'voicePause':![]});});case _0x5340c2('0x3a'):case _0x5340c2('0x44'):case _0x5340c2('0x33'):case _0x5340c2('0x25'):case'openchannel':case _0x5340c2('0x36'):return db[_0x5340c2('0x16')][_0x5340c2('0x41')]({'where':{'channel':_0xeed22f[_0x5340c2('0x21')][_0x5340c2('0xf')],'membername':_0x3d5b62['name'],'type':_0x5340c2('0x37'),'exitAt':null}})[_0x5340c2('0x3f')](function(_0x523c2c){const _0x139a82=_0x5340c2;return _0x523c2c[_0x139a82('0x4d')]({'exitAt':moment()[_0x139a82('0x8')](_0x139a82('0x24')),'data2':'system'},{'individualHooks':!![]});})['then'](function(){const _0x42a085=_0x5340c2,_0x499914={};return _[_0x42a085('0x2b')](_0x499914,util[_0x42a085('0x8')](_0x42a085('0x14'),_0xeed22f[_0x42a085('0x21')][_0x42a085('0xf')],_0x42a085('0x1b')),![]),_0x3d5b62[_0x42a085('0x4d')](_0x499914);});default:return db['UserVoiceQueueRt'][_0x5340c2('0x4d')]({'paused':0x0},{'where':{'UserId':_0x3d5b62['id']}})['then'](function(){const _0x1ee45b=_0x5340c2;return db[_0x1ee45b('0x16')][_0x1ee45b('0x32')]({'where':{'membername':_0x3d5b62[_0x1ee45b('0x48')],'type':_0x1ee45b('0x37'),'exitAt':null}});})[_0x5340c2('0x3f')](function(_0x3918ca){const _0x157ae5=_0x5340c2,_0x45cf1f=[];return _0x3918ca[_0x157ae5('0x28')](function(_0x9811c7){const _0x2014e2=_0x157ae5;_0x45cf1f[_0x2014e2('0x2c')](_0x9811c7[_0x2014e2('0x4d')]({'exitAt':moment()['format'](_0x2014e2('0x24')),'data2':'system'}));}),Promise[_0x157ae5('0x47')](_0x45cf1f);})[_0x5340c2('0x3f')](function(){const _0x160fd8=_0x5340c2;return _0x3d5b62[_0x160fd8('0x4d')]({'voicePause':![],'mailPause':![],'chatPause':![],'faxPause':![],'smsPause':![],'openchannelPause':![],'whatsappPause':![]});});}}})[_0x423e01('0x3f')](function(_0x37d77c){_0x4b7a9b(_0x37d77c);})[_0x423e01('0x2a')](function(_0x2948cb){const _0x283388=_0x423e01;_0x4968f0(_0xbcc6f3[_0x283388('0x4')](0x1f4,_0x2948cb[_0x283388('0x6')]));});});},exports[_0x51809f('0xb')]=function(_0x4ee578){const _0x2673eb=this;return new Promise(function(_0x22335e,_0x4d4362){const _0x3566c7=a651_0x2def;let _0x2fad49;return db[_0x3566c7('0x4f')]['findOne']({'where':_0x4ee578[_0x3566c7('0x3')][_0x3566c7('0x2f')]||{},'attributes':['id',_0x3566c7('0x48')]})['then'](function(_0x2d031b){const _0x504c11=_0x3566c7;if(_0x2d031b)return _0x2fad49=_0x2d031b,db[_0x504c11('0x1e')][_0x504c11('0x1a')]({'where':{'membername':_0x2fad49[_0x504c11('0x48')]},'individualHooks':!![]});})[_0x3566c7('0x3f')](function(){const _0x1a6c18=_0x3566c7;if(_0x2fad49)return db[_0x1a6c18('0x16')]['findAll']({'where':{'membername':_0x2fad49[_0x1a6c18('0x48')],'exitAt':null}});})[_0x3566c7('0x3f')](function(_0x1b8f09){const _0x43c42b=_0x3566c7;if(_0x2fad49){if(_0x1b8f09&&_0x1b8f09['length']){const _0x585e09=[];return _0x1b8f09[_0x43c42b('0x28')](function(_0x10ca3d){const _0xac222b=_0x43c42b;_0x585e09[_0xac222b('0x2c')](_0x10ca3d[_0xac222b('0x4d')]({'exitAt':moment()[_0xac222b('0x8')](_0xac222b('0x24'))}));}),Promise[_0x43c42b('0x47')](_0x585e09);}}})[_0x3566c7('0x3f')](function(){const _0x2eb54c=_0x3566c7;if(_0x2fad49)return _0x2fad49[_0x2eb54c('0x4d')]({'online':![],'lastLoginAt':null,'voicePause':![],'mailPause':![],'chatPause':![],'faxPause':![],'smsPause':![],'openchannelPause':![]});})['then'](function(_0x385088){_0x22335e(_0x385088);})[_0x3566c7('0x2a')](function(_0x531966){_0x4d4362(_0x2673eb['error'](0x1f4,_0x531966['message']));});});},exports['LoginUser']=function(_0x2b1876){const _0x50ea48=this;return new Promise(function(_0x116c11,_0x2e2249){const _0x431c71=a651_0x2def;let _0x2a1d92,_0x598eb9,_0x2a6245,_0x583232;return db['User']['findOne']({'where':_0x2b1876[_0x431c71('0x3')][_0x431c71('0x2f')]||{},'attributes':['id',_0x431c71('0x48'),_0x431c71('0xe'),_0x431c71('0x49'),_0x431c71('0x13'),'internal','loginInPause','interface']})['then'](function(_0x15aae6){const _0x29ec82=_0x431c71;if(_0x15aae6)return _0x2a1d92=_0x15aae6,_0x583232=_0x2b1876[_0x29ec82('0x21')]['interface']?_0x2b1876[_0x29ec82('0x21')]['interface']:util[_0x29ec82('0x8')](_0x29ec82('0x2'),_0x2a1d92['name']),db[_0x29ec82('0x4f')][_0x29ec82('0x1f')]({'where':{'role':_0x29ec82('0x50'),'online':!![],'id':{[Op['ne']]:_0x2a1d92['id']}}});})[_0x431c71('0x3f')](function(_0x4a9397){const _0x17622b=_0x431c71;if(_0x4a9397)return _0x2a6245=_0x4a9397,require(_0x17622b('0x3d'))[_0x17622b('0x39')]();})['then'](function(_0x5a3c21){const _0x340cd7=_0x431c71;if(_0x5a3c21&&_0x5a3c21[_0x340cd7('0x4c')]&&_0x2a6245>=_0x5a3c21[_0x340cd7('0x4c')])throw new Error('Maximum\x20login\x20has\x20been\x20reached');})[_0x431c71('0x3f')](function(){const _0x438531=_0x431c71;if(_0x2a1d92)return db[_0x438531('0x1e')][_0x438531('0x1a')]({'where':{'membername':_0x2a1d92['name']},'individualHooks':!![]});})['then'](function(){const _0x4d8560=_0x431c71;if(_0x2a1d92)return _0x2a1d92[_0x4d8560('0x12')]({'raw':!![]});})[_0x431c71('0x3f')](function(_0x2ea7e2){const _0x40a30a=_0x431c71;if(_0x2a1d92){if(_0x2ea7e2){const _0x1f9e21=[];_0x598eb9=_0x2ea7e2;if(_0x598eb9[_0x40a30a('0x3e')]){for(let _0x20d927=0x0;_0x20d927<_0x598eb9['length'];_0x20d927++){_0x1f9e21[_0x40a30a('0x2c')](db['UserVoiceQueueRt'][_0x40a30a('0x10')]({'membername':_0x2a1d92[_0x40a30a('0x48')],'UserId':_0x2a1d92['id'],'queue_name':_0x598eb9[_0x20d927][_0x40a30a('0x48')],'VoiceQueueId':_0x598eb9[_0x20d927]['id'],'interface':_0x583232,'paused':_0x2a1d92[_0x40a30a('0xc')]||![],'penalty':_0x598eb9[_0x20d927]['UserVoiceQueue.penalty']||0x0}));}return Promise[_0x40a30a('0x47')](_0x1f9e21);}}}})['then'](function(){const _0x22b7a4=_0x431c71;if(_0x2a1d92)return db['MemberReport'][_0x22b7a4('0x32')]({'where':{'membername':_0x2a1d92[_0x22b7a4('0x48')],'exitAt':null}});})[_0x431c71('0x3f')](function(_0x3a4cb1){const _0x55e78f=_0x431c71;if(_0x2a1d92){if(_0x3a4cb1&&_0x3a4cb1['length']){const _0x2e947d=[];return _0x3a4cb1[_0x55e78f('0x28')](function(_0x59da20){const _0x1ec55b=_0x55e78f;_0x2e947d['push'](_0x59da20[_0x1ec55b('0x4d')]({'exitAt':moment()[_0x1ec55b('0x8')](_0x1ec55b('0x24'))}));}),Promise[_0x55e78f('0x47')](_0x2e947d);}}})[_0x431c71('0x3f')](function(){const _0x3dc527=_0x431c71;if(_0x2a1d92){const _0x3119f0=[],_0x57a2d9=[],_0x347e6d=utils['getChannels'](),_0x362720={'membername':_0x2a1d92[_0x3dc527('0x48')],'interface':_0x583232,'enterAt':moment()[_0x3dc527('0x8')](_0x3dc527('0x24')),'role':_0x2a1d92['role'],'internal':_0x2a1d92[_0x3dc527('0x1c')]};return _0x347e6d[_0x3dc527('0x28')](function(_0x4080c1){const _0x539511=_0x3dc527;_0x3119f0['push'](_[_0x539511('0x0')]({'channel':_0x4080c1,'type':_0x539511('0x4e'),'data1':_0x539511('0x18'),'data2':_0x583232},_0x362720)),_0x2a1d92[_0x539511('0xc')]&&_0x57a2d9[_0x539511('0x2c')](_['merge']({'channel':_0x4080c1,'type':'PAUSE','data1':'LOGININPAUSE'},_0x362720));}),db[_0x3dc527('0x16')][_0x3dc527('0x1')](_0x3119f0[_0x3dc527('0x3c')](_0x57a2d9),{'individualHooks':!![]});}})[_0x431c71('0x3f')](function(){const _0x172958=_0x431c71;if(_0x2a1d92)return _0x2a1d92['update']({'online':!![],'lastLoginAt':moment()['format'](_0x172958('0x24')),'voicePause':_0x2a1d92[_0x172958('0xc')]||![],'mailPause':_0x2a1d92[_0x172958('0xc')]||![],'chatPause':_0x2a1d92[_0x172958('0xc')]||![],'faxPause':_0x2a1d92[_0x172958('0xc')]||![],'smsPause':_0x2a1d92['loginInPause']||![],'openchannelPause':_0x2a1d92[_0x172958('0xc')]||![],'pauseType':_0x2a1d92['loginInPause']?_0x172958('0x2d'):null,'lastPauseAt':moment()['format'](_0x172958('0x24')),'interface':_0x583232});})['then'](function(_0x346a06){_0x116c11(_0x346a06);})[_0x431c71('0x2a')](function(_0x29d58f){const _0x5f4ec3=_0x431c71;_0x2e2249(_0x50ea48[_0x5f4ec3('0x4')](0x1f4,_0x29d58f['message']));});});}; \ No newline at end of file +const a779_0x2041=['upsert','isNil','GetUser','type','loginInPause','User','Unknown\x20channel','internal','push','catch','UnpauseUser','include','format','attributes','stringify','model','map','getLicense','interface','SIP/%s','merge','uniqueid','LOGININPAUSE','channel','lodash','getChannels','all','MemberReport','sms','message','debug','phone','agents','system','role','YYYY-MM-DD\x20HH:mm:ss','rpc','DEFAULT\x20PAUSE','../../config/utils','count','PAUSE','raw','../../rediscache','util','getVoiceQueues','./user.socket','name','where','info','findAll','set','error','then','isValidChannel','register','agent','destroy','UserVoiceQueueRt','LoginUser','bulkCreate','Pause','concat','forEach','mobile','openchannel','ShowUser','body','LOGIN','chat','options','LogoutUser','findOne','callysquare','length','update','fax','UserVoiceQueue.penalty','PauseUser','sequelize','Maximum\x20login\x20has\x20been\x20reached'];(function(_0x20111e,_0x4c1d71){const _0x204175=function(_0x4a7a07){while(--_0x4a7a07){_0x20111e['push'](_0x20111e['shift']());}};_0x204175(++_0x4c1d71);}(a779_0x2041,0x165));const a779_0x4a7a=function(_0x20111e,_0x4c1d71){_0x20111e=_0x20111e-0x13a;let _0x204175=a779_0x2041[_0x20111e];return _0x204175;};const a779_0x546a16=a779_0x4a7a;'use strict';const _=require(a779_0x546a16(0x17d)),util=require(a779_0x546a16(0x140)),db=require('../../mysqldb')['db'],logger=require('../../config/logger')(a779_0x546a16(0x189)),moment=require('moment'),utils=require(a779_0x546a16(0x13b)),{getSocket}=require(a779_0x546a16(0x13f)),socket=getSocket(),sequelize=require(a779_0x546a16(0x163)),{Op}=sequelize;require(a779_0x546a16(0x142))[a779_0x546a16(0x14b)](socket),exports[a779_0x546a16(0x167)]=function(_0x2b87ef){const _0x46e6a2=this;return new Promise(function(_0x2165d2,_0x198a26){const _0x3fb047=a779_0x4a7a;return db[_0x3fb047(0x16a)][_0x3fb047(0x146)]({'raw':_0x2b87ef[_0x3fb047(0x15a)]?_0x2b87ef[_0x3fb047(0x15a)]['raw']===undefined?!![]:![]:!![],'where':_0x2b87ef['options']?_0x2b87ef[_0x3fb047(0x15a)][_0x3fb047(0x144)]||null:null,'attributes':_0x2b87ef[_0x3fb047(0x15a)]?_0x2b87ef[_0x3fb047(0x15a)][_0x3fb047(0x172)]||null:null,'limit':_0x2b87ef[_0x3fb047(0x15a)]?_0x2b87ef[_0x3fb047(0x15a)]['limit']||null:null,'include':_0x2b87ef[_0x3fb047(0x15a)]?_0x2b87ef[_0x3fb047(0x15a)][_0x3fb047(0x170)]?_[_0x3fb047(0x175)](_0x2b87ef[_0x3fb047(0x15a)][_0x3fb047(0x170)],function(_0x1a7647){const _0x15ba7c=_0x3fb047;return{'model':db[_0x1a7647['model']],'as':_0x1a7647['as'],'attributes':_0x1a7647[_0x15ba7c(0x172)],'include':_0x1a7647[_0x15ba7c(0x170)]?_[_0x15ba7c(0x175)](_0x1a7647[_0x15ba7c(0x170)],function(_0x462b46){const _0x1a1d72=_0x15ba7c;return{'model':db[_0x462b46[_0x1a1d72(0x174)]],'as':_0x462b46['as'],'attributes':_0x462b46['attributes'],'include':_0x462b46[_0x1a1d72(0x170)]?_[_0x1a1d72(0x175)](_0x462b46[_0x1a1d72(0x170)],function(_0x395f90){const _0x8d829=_0x1a1d72;return{'model':db[_0x395f90[_0x8d829(0x174)]],'as':_0x395f90['as'],'attributes':_0x395f90['attributes']};}):[]};}):[]};}):[]:[]})[_0x3fb047(0x149)](function(_0x318419){const _0x2c98a2=_0x3fb047;logger[_0x2c98a2(0x145)]('GetUser',_0x2b87ef),logger[_0x2c98a2(0x183)](_0x2c98a2(0x167),_0x2b87ef,JSON['stringify'](_0x318419)),_0x2165d2(_0x318419);})[_0x3fb047(0x16e)](function(_0x3785f6){const _0x28e05b=_0x3fb047;logger[_0x28e05b(0x148)](_0x28e05b(0x167),_0x3785f6[_0x28e05b(0x182)],_0x2b87ef),_0x198a26(_0x46e6a2['error'](0x1f4,_0x3785f6[_0x28e05b(0x182)]));});});},exports['ShowUser']=function(_0x136dfc){const _0x28d6b2=this;return new Promise(function(_0x4ef44b,_0x53485d){const _0x3b2366=a779_0x4a7a;return db[_0x3b2366(0x16a)][_0x3b2366(0x15c)]({'raw':_0x136dfc[_0x3b2366(0x15a)]?_0x136dfc[_0x3b2366(0x15a)][_0x3b2366(0x13e)]===undefined?!![]:![]:!![],'where':_0x136dfc['options']?_0x136dfc['options'][_0x3b2366(0x144)]||null:null,'attributes':_0x136dfc[_0x3b2366(0x15a)]?_0x136dfc[_0x3b2366(0x15a)][_0x3b2366(0x172)]||null:null,'include':_0x136dfc[_0x3b2366(0x15a)]?_0x136dfc['options'][_0x3b2366(0x170)]?_[_0x3b2366(0x175)](_0x136dfc['options']['include'],function(_0x28c90b){const _0x671863=_0x3b2366;return{'model':db[_0x28c90b[_0x671863(0x174)]],'as':_0x28c90b['as'],'attributes':_0x28c90b[_0x671863(0x172)],'include':_0x28c90b[_0x671863(0x170)]?_[_0x671863(0x175)](_0x28c90b[_0x671863(0x170)],function(_0x136e2b){const _0x295afe=_0x671863;return{'model':db[_0x136e2b['model']],'as':_0x136e2b['as'],'attributes':_0x136e2b[_0x295afe(0x172)],'include':_0x136e2b[_0x295afe(0x170)]?_['map'](_0x136e2b[_0x295afe(0x170)],function(_0x53e559){const _0xf9ec50=_0x295afe;return{'model':db[_0x53e559['model']],'as':_0x53e559['as'],'attributes':_0x53e559[_0xf9ec50(0x172)]};}):[]};}):[]};}):[]:[]})[_0x3b2366(0x149)](function(_0x4a939d){const _0x478297=_0x3b2366;logger[_0x478297(0x145)]('ShowUser',_0x136dfc),logger[_0x478297(0x183)](_0x478297(0x156),_0x136dfc,JSON[_0x478297(0x173)](_0x4a939d)),_0x4ef44b(_0x4a939d);})['catch'](function(_0x2b972d){const _0x1392aa=_0x3b2366;logger[_0x1392aa(0x148)](_0x1392aa(0x156),_0x2b972d[_0x1392aa(0x182)],_0x136dfc),_0x53485d(_0x28d6b2['error'](0x1f4,_0x2b972d['message']));});});},exports[a779_0x546a16(0x162)]=function(_0x319312){const _0x3c6bc6=this;return new Promise(function(_0x38c480,_0x350ade){const _0x45424a=a779_0x4a7a;let _0xe66ce1;return db['User'][_0x45424a(0x15c)]({'where':_0x319312[_0x45424a(0x15a)][_0x45424a(0x144)]||{},'attributes':['id',_0x45424a(0x143),_0x45424a(0x187),_0x45424a(0x16c),_0x45424a(0x177)]})[_0x45424a(0x149)](function(_0x4c1902){const _0x45a9ee=_0x45424a;if(_0x4c1902)return _0xe66ce1=_0x4c1902,db[_0x45a9ee(0x14e)][_0x45a9ee(0x15f)]({'paused':0x1},{'where':{'UserId':_0xe66ce1['id']},'individualHooks':!![]});})['then'](function(){const _0x1507b3=_0x45424a;if(_0xe66ce1)return db[_0x1507b3(0x180)][_0x1507b3(0x146)]({'where':{'membername':_0xe66ce1[_0x1507b3(0x143)],'type':'PAUSE','exitAt':null}});})[_0x45424a(0x149)](function(_0x421934){const _0x318fed=_0x45424a;if(_0xe66ce1){if(_0x421934&&_0x421934['length']){const _0x598677=moment()[_0x318fed(0x171)]('YYYY-MM-DD\x20HH:mm:ss');for(let _0x2bc09d=0x0,_0xb04ff=_0x421934['length'];_0x2bc09d<_0xb04ff;_0x2bc09d++){_0x421934[_0x2bc09d][_0x318fed(0x15f)]({'exitAt':_0x598677});}}}})[_0x45424a(0x149)](function(){const _0x461735=_0x45424a;if(_0xe66ce1){const _0x361948=[],_0x3a308f=utils[_0x461735(0x17e)]();return _0x3a308f[_0x461735(0x153)](function(_0x2f21cb){const _0x32f16e=_0x461735;_0x361948[_0x32f16e(0x16d)]({'channel':_0x2f21cb,'membername':_0xe66ce1['name'],'interface':_[_0x32f16e(0x166)](_0xe66ce1[_0x32f16e(0x177)])?util[_0x32f16e(0x171)](_0x32f16e(0x178),_0xe66ce1[_0x32f16e(0x143)]):_0xe66ce1[_0x32f16e(0x177)],'type':'PAUSE','enterAt':moment()['format'](_0x32f16e(0x188)),'data1':_0x319312[_0x32f16e(0x157)][_0x32f16e(0x168)]||_0x32f16e(0x13a),'role':_0xe66ce1[_0x32f16e(0x187)],'internal':_0xe66ce1[_0x32f16e(0x16c)],'uniqueid':_0x319312[_0x32f16e(0x157)][_0x32f16e(0x17a)]||null});}),db['MemberReport'][_0x461735(0x150)](_0x361948,{'individualHooks':!![]});}})['then'](function(){const _0x477643=_0x45424a;if(_0xe66ce1)return _0xe66ce1[_0x477643(0x15f)]({'voicePause':!![],'mailPause':!![],'chatPause':!![],'faxPause':!![],'smsPause':!![],'openchannelPause':!![],'whatsappPause':!![],'pauseType':_0x319312['body']['type']||_0x477643(0x13a),'lastPauseAt':moment()[_0x477643(0x171)](_0x477643(0x188))});})[_0x45424a(0x149)](function(_0x3ada5e){_0x38c480(_0x3ada5e);})[_0x45424a(0x16e)](function(_0x4931d7){const _0x394ece=_0x45424a;_0x350ade(_0x3c6bc6[_0x394ece(0x148)](0x1f4,_0x4931d7[_0x394ece(0x182)]));});});},exports[a779_0x546a16(0x16f)]=function(_0x2971fe){const _0x23e4e4=this;return new Promise(function(_0x32ec52,_0x4358bb){const _0x10e159=a779_0x4a7a;let _0x3bd16c;return db[_0x10e159(0x16a)][_0x10e159(0x15c)]({'where':_0x2971fe[_0x10e159(0x15a)][_0x10e159(0x144)]||{},'attributes':['id',_0x10e159(0x143)]})[_0x10e159(0x149)](function(_0x5ed101){const _0x13b0a3=_0x10e159;if(_0x5ed101){_0x3bd16c=_0x5ed101;if(_0x2971fe[_0x13b0a3(0x157)][_0x13b0a3(0x17c)]&&!utils[_0x13b0a3(0x14a)](_0x2971fe[_0x13b0a3(0x157)][_0x13b0a3(0x17c)]))throw new Error(_0x13b0a3(0x16b));switch(_0x2971fe[_0x13b0a3(0x157)]['channel']){case'voice':return db[_0x13b0a3(0x14e)]['update']({'paused':0x0},{'where':{'UserId':_0x3bd16c['id']}})[_0x13b0a3(0x149)](function(){const _0x515aca=_0x13b0a3;return db['MemberReport']['findOne']({'where':{'channel':_0x2971fe['body'][_0x515aca(0x17c)],'membername':_0x3bd16c[_0x515aca(0x143)],'type':_0x515aca(0x13d),'exitAt':null}});})['then'](function(_0x3471b5){const _0x3771a5=_0x13b0a3;if(_0x3471b5)return _0x3471b5[_0x3771a5(0x15f)]({'exitAt':moment()['format'](_0x3771a5(0x188)),'data2':_0x3771a5(0x186)},{'individualHooks':!![]});return null;})[_0x13b0a3(0x149)](function(){return _0x3bd16c['update']({'voicePause':![]});});case'mail':case _0x13b0a3(0x159):case _0x13b0a3(0x160):case _0x13b0a3(0x181):case _0x13b0a3(0x155):case'whatsapp':return db[_0x13b0a3(0x180)][_0x13b0a3(0x15c)]({'where':{'channel':_0x2971fe[_0x13b0a3(0x157)][_0x13b0a3(0x17c)],'membername':_0x3bd16c['name'],'type':_0x13b0a3(0x13d),'exitAt':null}})[_0x13b0a3(0x149)](function(_0x378062){const _0x16c254=_0x13b0a3;return _0x378062['update']({'exitAt':moment()[_0x16c254(0x171)](_0x16c254(0x188)),'data2':_0x16c254(0x186)},{'individualHooks':!![]});})['then'](function(){const _0x4586a6=_0x13b0a3,_0x1b637f={};return _[_0x4586a6(0x147)](_0x1b637f,util[_0x4586a6(0x171)]('%s%s',_0x2971fe[_0x4586a6(0x157)][_0x4586a6(0x17c)],_0x4586a6(0x151)),![]),_0x3bd16c[_0x4586a6(0x15f)](_0x1b637f);});default:return db['UserVoiceQueueRt'][_0x13b0a3(0x15f)]({'paused':0x0},{'where':{'UserId':_0x3bd16c['id']}})['then'](function(){const _0x3600b1=_0x13b0a3;return db[_0x3600b1(0x180)][_0x3600b1(0x146)]({'where':{'membername':_0x3bd16c[_0x3600b1(0x143)],'type':'PAUSE','exitAt':null}});})[_0x13b0a3(0x149)](function(_0xb15161){const _0x4cd5cb=_0x13b0a3,_0x947bd7=[];return _0xb15161['forEach'](function(_0x543dd8){const _0x4ad25e=a779_0x4a7a;_0x947bd7[_0x4ad25e(0x16d)](_0x543dd8[_0x4ad25e(0x15f)]({'exitAt':moment()[_0x4ad25e(0x171)]('YYYY-MM-DD\x20HH:mm:ss'),'data2':'system'}));}),Promise[_0x4cd5cb(0x17f)](_0x947bd7);})[_0x13b0a3(0x149)](function(){const _0x2ffe42=_0x13b0a3;return _0x3bd16c[_0x2ffe42(0x15f)]({'voicePause':![],'mailPause':![],'chatPause':![],'faxPause':![],'smsPause':![],'openchannelPause':![],'whatsappPause':![]});});}}})[_0x10e159(0x149)](function(_0x349f7a){_0x32ec52(_0x349f7a);})[_0x10e159(0x16e)](function(_0x421cb2){const _0x5f54d4=_0x10e159;_0x4358bb(_0x23e4e4[_0x5f54d4(0x148)](0x1f4,_0x421cb2[_0x5f54d4(0x182)]));});});},exports[a779_0x546a16(0x15b)]=function(_0x28a818){const _0x1514f1=this;return new Promise(function(_0x494f3b,_0x5db4d6){const _0x26384d=a779_0x4a7a;let _0x5153ac;return db[_0x26384d(0x16a)][_0x26384d(0x15c)]({'where':_0x28a818[_0x26384d(0x15a)][_0x26384d(0x144)]||{},'attributes':['id',_0x26384d(0x143)]})['then'](function(_0x5d30ba){const _0x1a9dae=_0x26384d;if(_0x5d30ba)return _0x5153ac=_0x5d30ba,db[_0x1a9dae(0x14e)][_0x1a9dae(0x14d)]({'where':{'membername':_0x5153ac[_0x1a9dae(0x143)]},'individualHooks':!![]});})[_0x26384d(0x149)](function(){const _0x4a4fd6=_0x26384d;if(_0x5153ac)return db[_0x4a4fd6(0x180)][_0x4a4fd6(0x146)]({'where':{'membername':_0x5153ac[_0x4a4fd6(0x143)],'exitAt':null}});})[_0x26384d(0x149)](function(_0x48da23){const _0x50c310=_0x26384d;if(_0x5153ac){if(_0x48da23&&_0x48da23[_0x50c310(0x15e)]){const _0x1d7e47=[];return _0x48da23[_0x50c310(0x153)](function(_0x293602){const _0x52dda5=_0x50c310;_0x1d7e47[_0x52dda5(0x16d)](_0x293602[_0x52dda5(0x15f)]({'exitAt':moment()[_0x52dda5(0x171)](_0x52dda5(0x188))}));}),Promise[_0x50c310(0x17f)](_0x1d7e47);}}})[_0x26384d(0x149)](function(){const _0x330667=_0x26384d;if(_0x5153ac)return _0x5153ac[_0x330667(0x15f)]({'online':![],'lastLoginAt':null,'voicePause':![],'mailPause':![],'chatPause':![],'faxPause':![],'smsPause':![],'openchannelPause':![]});})[_0x26384d(0x149)](function(_0x296f40){_0x494f3b(_0x296f40);})[_0x26384d(0x16e)](function(_0x534a69){const _0x53a77c=_0x26384d;_0x5db4d6(_0x1514f1[_0x53a77c(0x148)](0x1f4,_0x534a69[_0x53a77c(0x182)]));});});},exports[a779_0x546a16(0x14f)]=function(_0x4c9d32){const _0x5279f9=this;return new Promise(function(_0x5688d7,_0x2f2c08){const _0x59b27e=a779_0x4a7a;let _0x1a2842,_0x265dff,_0x2e9041,_0x1303b0;return db[_0x59b27e(0x16a)][_0x59b27e(0x15c)]({'where':_0x4c9d32[_0x59b27e(0x15a)][_0x59b27e(0x144)]||{},'attributes':['id','name',_0x59b27e(0x187),_0x59b27e(0x154),_0x59b27e(0x184),_0x59b27e(0x16c),_0x59b27e(0x169),'interface']})[_0x59b27e(0x149)](function(_0x20b9d2){const _0x14181b=_0x59b27e;if(_0x20b9d2)return _0x1a2842=_0x20b9d2,_0x1303b0=_0x4c9d32[_0x14181b(0x157)][_0x14181b(0x177)]?_0x4c9d32['body'][_0x14181b(0x177)]:util['format']('SIP/%s',_0x1a2842[_0x14181b(0x143)]),db['User'][_0x14181b(0x13c)]({'where':{'role':_0x14181b(0x14c),'online':!![],'id':{[Op['ne']]:_0x1a2842['id']}}});})[_0x59b27e(0x149)](function(_0x3ac9bc){const _0x3136b7=_0x59b27e;if(_0x3ac9bc)return _0x2e9041=_0x3ac9bc,require('../../config/license/util')[_0x3136b7(0x176)]();})[_0x59b27e(0x149)](function(_0x131cac){const _0x3d785c=_0x59b27e;if(_0x131cac&&_0x131cac[_0x3d785c(0x185)]&&_0x2e9041>=_0x131cac[_0x3d785c(0x185)])throw new Error(_0x3d785c(0x164));})[_0x59b27e(0x149)](function(){const _0x3a0a47=_0x59b27e;if(_0x1a2842)return db[_0x3a0a47(0x14e)][_0x3a0a47(0x14d)]({'where':{'membername':_0x1a2842[_0x3a0a47(0x143)]},'individualHooks':!![]});})[_0x59b27e(0x149)](function(){const _0x267229=_0x59b27e;if(_0x1a2842)return _0x1a2842[_0x267229(0x141)]({'raw':!![]});})[_0x59b27e(0x149)](function(_0xd4c6d0){const _0x1f868a=_0x59b27e;if(_0x1a2842){if(_0xd4c6d0){const _0x57fd14=[];_0x265dff=_0xd4c6d0;if(_0x265dff[_0x1f868a(0x15e)]){for(let _0x250284=0x0;_0x250284<_0x265dff[_0x1f868a(0x15e)];_0x250284++){_0x57fd14[_0x1f868a(0x16d)](db[_0x1f868a(0x14e)][_0x1f868a(0x165)]({'membername':_0x1a2842[_0x1f868a(0x143)],'UserId':_0x1a2842['id'],'queue_name':_0x265dff[_0x250284]['name'],'VoiceQueueId':_0x265dff[_0x250284]['id'],'interface':_0x1303b0,'paused':_0x1a2842[_0x1f868a(0x169)]||![],'penalty':_0x265dff[_0x250284][_0x1f868a(0x161)]||0x0}));}return Promise[_0x1f868a(0x17f)](_0x57fd14);}}}})[_0x59b27e(0x149)](function(){const _0x32d271=_0x59b27e;if(_0x1a2842)return db[_0x32d271(0x180)]['findAll']({'where':{'membername':_0x1a2842[_0x32d271(0x143)],'exitAt':null}});})[_0x59b27e(0x149)](function(_0x332d9e){const _0xefab49=_0x59b27e;if(_0x1a2842){if(_0x332d9e&&_0x332d9e[_0xefab49(0x15e)]){const _0x3b4757=[];return _0x332d9e[_0xefab49(0x153)](function(_0x3011a7){const _0x493db9=_0xefab49;_0x3b4757[_0x493db9(0x16d)](_0x3011a7[_0x493db9(0x15f)]({'exitAt':moment()[_0x493db9(0x171)](_0x493db9(0x188))}));}),Promise[_0xefab49(0x17f)](_0x3b4757);}}})[_0x59b27e(0x149)](function(){const _0x5511bc=_0x59b27e;if(_0x1a2842){const _0x39dba8=[],_0x495fe2=[],_0x36e399=utils['getChannels'](),_0x5cc28a={'membername':_0x1a2842[_0x5511bc(0x143)],'interface':_0x1303b0,'enterAt':moment()[_0x5511bc(0x171)](_0x5511bc(0x188)),'role':_0x1a2842[_0x5511bc(0x187)],'internal':_0x1a2842[_0x5511bc(0x16c)]};return _0x36e399[_0x5511bc(0x153)](function(_0x28f737){const _0x222b6d=_0x5511bc;_0x39dba8[_0x222b6d(0x16d)](_[_0x222b6d(0x179)]({'channel':_0x28f737,'type':_0x222b6d(0x158),'data1':_0x222b6d(0x15d),'data2':_0x1303b0},_0x5cc28a)),_0x1a2842[_0x222b6d(0x169)]&&_0x495fe2['push'](_[_0x222b6d(0x179)]({'channel':_0x28f737,'type':_0x222b6d(0x13d),'data1':_0x222b6d(0x17b)},_0x5cc28a));}),db[_0x5511bc(0x180)][_0x5511bc(0x150)](_0x39dba8[_0x5511bc(0x152)](_0x495fe2),{'individualHooks':!![]});}})[_0x59b27e(0x149)](function(){const _0x185ee1=_0x59b27e;if(_0x1a2842)return _0x1a2842[_0x185ee1(0x15f)]({'online':!![],'lastLoginAt':moment()[_0x185ee1(0x171)](_0x185ee1(0x188)),'voicePause':_0x1a2842[_0x185ee1(0x169)]||![],'mailPause':_0x1a2842['loginInPause']||![],'chatPause':_0x1a2842[_0x185ee1(0x169)]||![],'faxPause':_0x1a2842[_0x185ee1(0x169)]||![],'smsPause':_0x1a2842['loginInPause']||![],'openchannelPause':_0x1a2842[_0x185ee1(0x169)]||![],'pauseType':_0x1a2842[_0x185ee1(0x169)]?'LOGININPAUSE':null,'lastPauseAt':moment()[_0x185ee1(0x171)](_0x185ee1(0x188)),'interface':_0x1303b0});})[_0x59b27e(0x149)](function(_0x3dc521){_0x5688d7(_0x3dc521);})[_0x59b27e(0x16e)](function(_0x5e3f49){const _0x3c40cc=_0x59b27e;_0x2f2c08(_0x5279f9[_0x3c40cc(0x148)](0x1f4,_0x5e3f49['message']));});});}; \ No newline at end of file diff --git a/server/api/user/user.socket.js b/server/api/user/user.socket.js index e210874..27c1db3 100644 --- a/server/api/user/user.socket.js +++ b/server/api/user/user.socket.js @@ -1 +1 @@ -const a652_0xa5a1=['save','register','user:','./user.events','remove','emit','update'];(function(_0x439ad2,_0xa5a1c2){const _0x3688ad=function(_0x29f31f){while(--_0x29f31f){_0x439ad2['push'](_0x439ad2['shift']());}};_0x3688ad(++_0xa5a1c2);}(a652_0xa5a1,0x156));const a652_0x3688=function(_0x439ad2,_0xa5a1c2){_0x439ad2=_0x439ad2-0x0;let _0x3688ad=a652_0xa5a1[_0x439ad2];return _0x3688ad;};const _0x63e462=a652_0x3688;'use strict';const UserEvents=require(_0x63e462('0x4')),events=[_0x63e462('0x1'),_0x63e462('0x5'),_0x63e462('0x0')];function createListener(_0x29f31f,_0x157da8){return function(_0x47332c){const _0x42309d=a652_0x3688;_0x157da8[_0x42309d('0x6')](_0x29f31f,_0x47332c);};}exports[_0x63e462('0x2')]=function(_0x32e1d8){const _0x50fa11=_0x63e462;for(let _0x4be3ba=0x0,_0x3c0d79=events['length'];_0x4be3ba<_0x3c0d79;_0x4be3ba++){const _0x43d590=events[_0x4be3ba],_0x48be9f=createListener(_0x50fa11('0x3')+_0x43d590,_0x32e1d8);UserEvents['on'](_0x43d590,_0x48be9f);}}; \ No newline at end of file +const a780_0x2fb2=['save','user:','register','remove','./user.events','update'];(function(_0x27d12a,_0x223518){const _0x2fb2a2=function(_0x32cd56){while(--_0x32cd56){_0x27d12a['push'](_0x27d12a['shift']());}};_0x2fb2a2(++_0x223518);}(a780_0x2fb2,0x17d));const a780_0x32cd=function(_0x27d12a,_0x223518){_0x27d12a=_0x27d12a-0x1e0;let _0x2fb2a2=a780_0x2fb2[_0x27d12a];return _0x2fb2a2;};const a780_0x978987=a780_0x32cd;'use strict';const UserEvents=require(a780_0x978987(0x1e1)),events=[a780_0x978987(0x1e3),a780_0x978987(0x1e0),a780_0x978987(0x1e2)];function createListener(_0x496862,_0x444209){return function(_0x2c1f3c){_0x444209['emit'](_0x496862,_0x2c1f3c);};}exports[a780_0x978987(0x1e5)]=function(_0x3b0acd){const _0x5c65ec=a780_0x978987;for(let _0x4d968d=0x0,_0x108ae5=events['length'];_0x4d968d<_0x108ae5;_0x4d968d++){const _0x87f640=events[_0x4d968d],_0x3e2e17=createListener(_0x5c65ec(0x1e4)+_0x87f640,_0x3b0acd);UserEvents['on'](_0x87f640,_0x3e2e17);}}; \ No newline at end of file diff --git a/server/api/userChatQueue/index.js b/server/api/userChatQueue/index.js index 593b08c..4711931 100644 --- a/server/api/userChatQueue/index.js +++ b/server/api/userChatQueue/index.js @@ -1 +1 @@ -const a653_0x4c8a=['Router','express'];(function(_0x50203e,_0x4c8a8f){const _0x24dc4e=function(_0x1f1974){while(--_0x1f1974){_0x50203e['push'](_0x50203e['shift']());}};_0x24dc4e(++_0x4c8a8f);}(a653_0x4c8a,0x173));const a653_0x24dc=function(_0x50203e,_0x4c8a8f){_0x50203e=_0x50203e-0x0;let _0x24dc4e=a653_0x4c8a[_0x50203e];return _0x24dc4e;};const _0x2a3d83=a653_0x24dc;'use strict';const express=require(_0x2a3d83('0x0')),router=express[_0x2a3d83('0x1')]();module['exports']=router; \ No newline at end of file +const a781_0x28bd=['exports','express'];(function(_0x391585,_0x1c7edf){const _0x28bd40=function(_0x5a35a9){while(--_0x5a35a9){_0x391585['push'](_0x391585['shift']());}};_0x28bd40(++_0x1c7edf);}(a781_0x28bd,0x19f));const a781_0x5a35=function(_0x391585,_0x1c7edf){_0x391585=_0x391585-0x9c;let _0x28bd40=a781_0x28bd[_0x391585];return _0x28bd40;};const a781_0x53b4db=a781_0x5a35;'use strict';const express=require(a781_0x53b4db(0x9c)),router=express['Router']();module[a781_0x53b4db(0x9d)]=router; \ No newline at end of file diff --git a/server/api/userChatQueue/userChatQueue.attributes.js b/server/api/userChatQueue/userChatQueue.attributes.js index 2186c18..02b2a46 100644 --- a/server/api/userChatQueue/userChatQueue.attributes.js +++ b/server/api/userChatQueue/userChatQueue.attributes.js @@ -1 +1 @@ -const a654_0x14ea=['INTEGER','sequelize'];(function(_0x54972c,_0x14ea93){const _0x2a3906=function(_0x3bcab0){while(--_0x3bcab0){_0x54972c['push'](_0x54972c['shift']());}};_0x2a3906(++_0x14ea93);}(a654_0x14ea,0x156));const a654_0x2a39=function(_0x54972c,_0x14ea93){_0x54972c=_0x54972c-0x0;let _0x2a3906=a654_0x14ea[_0x54972c];return _0x2a3906;};const _0x58a11b=a654_0x2a39;'use strict';const Sequelize=require(_0x58a11b('0x1'));module['exports']={'penalty':{'type':Sequelize[_0x58a11b('0x0')],'defaultValue':0x0}}; \ No newline at end of file +const a782_0x1cc3=['INTEGER'];(function(_0x29f698,_0x2ed107){const _0x1cc379=function(_0xef682a){while(--_0xef682a){_0x29f698['push'](_0x29f698['shift']());}};_0x1cc379(++_0x2ed107);}(a782_0x1cc3,0x1a6));const a782_0xef68=function(_0x29f698,_0x2ed107){_0x29f698=_0x29f698-0xd2;let _0x1cc379=a782_0x1cc3[_0x29f698];return _0x1cc379;};const a782_0x5dbd8d=a782_0xef68;'use strict';const {DataTypes}=require('sequelize'),attributes={'penalty':{'type':DataTypes[a782_0x5dbd8d(0xd2)],'defaultValue':0x0}};module['exports']['attributes']=attributes; \ No newline at end of file diff --git a/server/api/userChatQueue/userChatQueue.model.js b/server/api/userChatQueue/userChatQueue.model.js index a620d42..1181a33 100644 --- a/server/api/userChatQueue/userChatQueue.model.js +++ b/server/api/userChatQueue/userChatQueue.model.js @@ -1 +1 @@ -const a655_0x5ad2=['exports','user_has_chat_queues','define','UserChatQueue'];(function(_0x16873c,_0x5ad2fa){const _0x3b923a=function(_0xdb6388){while(--_0xdb6388){_0x16873c['push'](_0x16873c['shift']());}};_0x3b923a(++_0x5ad2fa);}(a655_0x5ad2,0x174));const a655_0x3b92=function(_0x16873c,_0x5ad2fa){_0x16873c=_0x16873c-0x0;let _0x3b923a=a655_0x5ad2[_0x16873c];return _0x3b923a;};const _0x4f65ac=a655_0x3b92;'use strict';const attributes=require('./userChatQueue.attributes');module[_0x4f65ac('0x0')]=function(_0xdb6388){const _0x110dd2=_0x4f65ac,_0x599f70=_0xdb6388[_0x110dd2('0x2')](_0x110dd2('0x3'),attributes,{'tableName':_0x110dd2('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x599f70;}; \ No newline at end of file +const a783_0x2682=['exports','./userChatQueue.options','function','./userChatQueue.attributes','init','sequelize'];(function(_0x4a3c72,_0x52f607){const _0x26828b=function(_0x15047c){while(--_0x15047c){_0x4a3c72['push'](_0x4a3c72['shift']());}};_0x26828b(++_0x52f607);}(a783_0x2682,0x96));const a783_0x1504=function(_0x4a3c72,_0x52f607){_0x4a3c72=_0x4a3c72-0x91;let _0x26828b=a783_0x2682[_0x4a3c72];return _0x26828b;};const a783_0x1b9fb6=a783_0x1504;'use strict';const {Model}=require(a783_0x1b9fb6(0x96)),{attributes}=require(a783_0x1b9fb6(0x94)),{options}=require(a783_0x1b9fb6(0x92));class UserChatQueue extends Model{}function init(_0xfa5729,_0x4a1c3f){const _0x56c437=a783_0x1b9fb6,_0x5a55f1=options(_0xfa5729),_0x3ec92b=typeof _0x4a1c3f===_0x56c437(0x93)?_0x4a1c3f(_0x5a55f1):_0x5a55f1;return UserChatQueue['init'](attributes,_0x3ec92b),UserChatQueue;}module['exports']['UserChatQueue']=UserChatQueue,module[a783_0x1b9fb6(0x91)][a783_0x1b9fb6(0x95)]=init; \ No newline at end of file diff --git a/server/api/userChatQueue/userChatQueue.options.js b/server/api/userChatQueue/userChatQueue.options.js new file mode 100644 index 0000000..85cf435 --- /dev/null +++ b/server/api/userChatQueue/userChatQueue.options.js @@ -0,0 +1 @@ +var a784_0x5307=['exports','user_has_chat_queues','options'];(function(_0x155f74,_0x476a60){var _0x5307aa=function(_0x2bcb15){while(--_0x2bcb15){_0x155f74['push'](_0x155f74['shift']());}};_0x5307aa(++_0x476a60);}(a784_0x5307,0xb1));var a784_0x2bcb=function(_0x155f74,_0x476a60){_0x155f74=_0x155f74-0x1c2;var _0x5307aa=a784_0x5307[_0x155f74];return _0x5307aa;};var a784_0x3ce97f=a784_0x2bcb;function options(_0x5bc293){var _0xafc6b9=a784_0x2bcb;return{'sequelize':_0x5bc293,'tableName':_0xafc6b9(0x1c3),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a784_0x3ce97f(0x1c2)][a784_0x3ce97f(0x1c4)]=options; \ No newline at end of file diff --git a/server/api/userFaxQueue/index.js b/server/api/userFaxQueue/index.js index 40871e8..04ad4b7 100644 --- a/server/api/userFaxQueue/index.js +++ b/server/api/userFaxQueue/index.js @@ -1 +1 @@ -'use strict';const express=require('express'),router=express['Router']();module['exports']=router; \ No newline at end of file +const a785_0x183c=['express','Router','exports'];(function(_0x185613,_0x1c0381){const _0x183cd9=function(_0x3a19b0){while(--_0x3a19b0){_0x185613['push'](_0x185613['shift']());}};_0x183cd9(++_0x1c0381);}(a785_0x183c,0x1dc));const a785_0x3a19=function(_0x185613,_0x1c0381){_0x185613=_0x185613-0x185;let _0x183cd9=a785_0x183c[_0x185613];return _0x183cd9;};const a785_0x415d4b=a785_0x3a19;'use strict';const express=require(a785_0x415d4b(0x186)),router=express[a785_0x415d4b(0x187)]();module[a785_0x415d4b(0x185)]=router; \ No newline at end of file diff --git a/server/api/userFaxQueue/userFaxQueue.attributes.js b/server/api/userFaxQueue/userFaxQueue.attributes.js index c7cda6e..70c0075 100644 --- a/server/api/userFaxQueue/userFaxQueue.attributes.js +++ b/server/api/userFaxQueue/userFaxQueue.attributes.js @@ -1 +1 @@ -const a657_0xd8b9=['exports','sequelize','INTEGER','STRING'];(function(_0x453b5e,_0xd8b935){const _0x582872=function(_0x52dbd2){while(--_0x52dbd2){_0x453b5e['push'](_0x453b5e['shift']());}};_0x582872(++_0xd8b935);}(a657_0xd8b9,0x18e));const a657_0x5828=function(_0x453b5e,_0xd8b935){_0x453b5e=_0x453b5e-0x0;let _0x582872=a657_0xd8b9[_0x453b5e];return _0x582872;};const _0x33463c=a657_0x5828;'use strict';const Sequelize=require(_0x33463c('0x3'));module[_0x33463c('0x2')]={'penalty':{'type':Sequelize[_0x33463c('0x0')],'defaultValue':0x0},'assigned':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'queue':{'type':Sequelize[_0x33463c('0x1')]}}; \ No newline at end of file +const a786_0x597e=['sequelize','STRING','INTEGER','attributes'];(function(_0x53120e,_0xe68e5f){const _0x597ebb=function(_0x3fa1ed){while(--_0x3fa1ed){_0x53120e['push'](_0x53120e['shift']());}};_0x597ebb(++_0xe68e5f);}(a786_0x597e,0xfc));const a786_0x3fa1=function(_0x53120e,_0xe68e5f){_0x53120e=_0x53120e-0x1a0;let _0x597ebb=a786_0x597e[_0x53120e];return _0x597ebb;};const a786_0x18cd40=a786_0x3fa1;'use strict';const {DataTypes}=require(a786_0x18cd40(0x1a0)),attributes={'penalty':{'type':DataTypes[a786_0x18cd40(0x1a2)],'defaultValue':0x0},'assigned':{'type':DataTypes[a786_0x18cd40(0x1a2)],'defaultValue':0x0},'queue':{'type':DataTypes[a786_0x18cd40(0x1a1)]}};module['exports'][a786_0x18cd40(0x1a3)]=attributes; \ No newline at end of file diff --git a/server/api/userFaxQueue/userFaxQueue.model.js b/server/api/userFaxQueue/userFaxQueue.model.js index 18344e9..9f4f24b 100644 --- a/server/api/userFaxQueue/userFaxQueue.model.js +++ b/server/api/userFaxQueue/userFaxQueue.model.js @@ -1 +1 @@ -const a658_0x48b4=['./userFaxQueue.attributes','exports','user_has_fax_queues','define'];(function(_0x10c192,_0x48b429){const _0x5dd2b0=function(_0x3b0f2d){while(--_0x3b0f2d){_0x10c192['push'](_0x10c192['shift']());}};_0x5dd2b0(++_0x48b429);}(a658_0x48b4,0x1d9));const a658_0x5dd2=function(_0x10c192,_0x48b429){_0x10c192=_0x10c192-0x0;let _0x5dd2b0=a658_0x48b4[_0x10c192];return _0x5dd2b0;};const _0x125033=a658_0x5dd2;'use strict';const attributes=require(_0x125033('0x3'));module[_0x125033('0x0')]=function(_0x3b0f2d){const _0x541e86=_0x125033,_0x4270b3=_0x3b0f2d[_0x541e86('0x2')]('UserFaxQueue',attributes,{'tableName':_0x541e86('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x4270b3;}; \ No newline at end of file +const a787_0x4a76=['exports','init','UserFaxQueue','./userFaxQueue.options'];(function(_0x48f5fb,_0x21b30a){const _0x4a767c=function(_0x19187a){while(--_0x19187a){_0x48f5fb['push'](_0x48f5fb['shift']());}};_0x4a767c(++_0x21b30a);}(a787_0x4a76,0x1b3));const a787_0x1918=function(_0x48f5fb,_0x21b30a){_0x48f5fb=_0x48f5fb-0xdb;let _0x4a767c=a787_0x4a76[_0x48f5fb];return _0x4a767c;};const a787_0x3e340b=a787_0x1918;'use strict';const {Model}=require('sequelize'),{attributes}=require('./userFaxQueue.attributes'),{options}=require(a787_0x3e340b(0xdb));class UserFaxQueue extends Model{}function init(_0x2a9bf6,_0x508f39){const _0x2697a8=a787_0x3e340b,_0x274965=options(_0x2a9bf6),_0x37a24b=typeof _0x508f39==='function'?_0x508f39(_0x274965):_0x274965;return UserFaxQueue[_0x2697a8(0xdd)](attributes,_0x37a24b),UserFaxQueue;}module[a787_0x3e340b(0xdc)][a787_0x3e340b(0xde)]=UserFaxQueue,module[a787_0x3e340b(0xdc)][a787_0x3e340b(0xdd)]=init; \ No newline at end of file diff --git a/server/api/userFaxQueue/userFaxQueue.options.js b/server/api/userFaxQueue/userFaxQueue.options.js new file mode 100644 index 0000000..af93c5e --- /dev/null +++ b/server/api/userFaxQueue/userFaxQueue.options.js @@ -0,0 +1 @@ +var a788_0x15ec=['user_has_fax_queues','exports','options'];(function(_0x4a2d57,_0x1c2774){var _0x15eca2=function(_0x502811){while(--_0x502811){_0x4a2d57['push'](_0x4a2d57['shift']());}};_0x15eca2(++_0x1c2774);}(a788_0x15ec,0x162));var a788_0x5028=function(_0x4a2d57,_0x1c2774){_0x4a2d57=_0x4a2d57-0x111;var _0x15eca2=a788_0x15ec[_0x4a2d57];return _0x15eca2;};var a788_0x3238c4=a788_0x5028;function options(_0x47ac03){var _0x19e45b=a788_0x5028;return{'sequelize':_0x47ac03,'tableName':_0x19e45b(0x111),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a788_0x3238c4(0x112)][a788_0x3238c4(0x113)]=options; \ No newline at end of file diff --git a/server/api/userMailQueue/index.js b/server/api/userMailQueue/index.js index 550ee6f..d599969 100644 --- a/server/api/userMailQueue/index.js +++ b/server/api/userMailQueue/index.js @@ -1 +1 @@ -const a659_0x317f=['express','exports'];(function(_0x253089,_0x317f80){const _0x29fbee=function(_0x211409){while(--_0x211409){_0x253089['push'](_0x253089['shift']());}};_0x29fbee(++_0x317f80);}(a659_0x317f,0x126));const a659_0x29fb=function(_0x253089,_0x317f80){_0x253089=_0x253089-0x0;let _0x29fbee=a659_0x317f[_0x253089];return _0x29fbee;};const _0x2f9c44=a659_0x29fb;'use strict';const express=require(_0x2f9c44('0x0')),router=express['Router']();module[_0x2f9c44('0x1')]=router; \ No newline at end of file +const a789_0x25a9=['exports','express','Router'];(function(_0x256e9a,_0x2fc7aa){const _0x25a9a8=function(_0x4ec84c){while(--_0x4ec84c){_0x256e9a['push'](_0x256e9a['shift']());}};_0x25a9a8(++_0x2fc7aa);}(a789_0x25a9,0x16a));const a789_0x4ec8=function(_0x256e9a,_0x2fc7aa){_0x256e9a=_0x256e9a-0x13b;let _0x25a9a8=a789_0x25a9[_0x256e9a];return _0x25a9a8;};const a789_0x3848e3=a789_0x4ec8;'use strict';const express=require(a789_0x3848e3(0x13d)),router=express[a789_0x3848e3(0x13b)]();module[a789_0x3848e3(0x13c)]=router; \ No newline at end of file diff --git a/server/api/userMailQueue/userMailQueue.attributes.js b/server/api/userMailQueue/userMailQueue.attributes.js index 1ec7d9d..c0dcb21 100644 --- a/server/api/userMailQueue/userMailQueue.attributes.js +++ b/server/api/userMailQueue/userMailQueue.attributes.js @@ -1 +1 @@ -const a660_0x3630=['INTEGER','sequelize','exports'];(function(_0x41c6be,_0x36305c){const _0x1e596b=function(_0x3565f5){while(--_0x3565f5){_0x41c6be['push'](_0x41c6be['shift']());}};_0x1e596b(++_0x36305c);}(a660_0x3630,0x13a));const a660_0x1e59=function(_0x41c6be,_0x36305c){_0x41c6be=_0x41c6be-0x0;let _0x1e596b=a660_0x3630[_0x41c6be];return _0x1e596b;};const _0x55245c=a660_0x1e59;'use strict';const Sequelize=require(_0x55245c('0x2'));module[_0x55245c('0x0')]={'penalty':{'type':Sequelize[_0x55245c('0x1')],'defaultValue':0x0}}; \ No newline at end of file +const a790_0x2783=['INTEGER','exports','sequelize'];(function(_0x959d71,_0x39c7c3){const _0x278381=function(_0x12fada){while(--_0x12fada){_0x959d71['push'](_0x959d71['shift']());}};_0x278381(++_0x39c7c3);}(a790_0x2783,0x1ac));const a790_0x12fa=function(_0x959d71,_0x39c7c3){_0x959d71=_0x959d71-0x1a4;let _0x278381=a790_0x2783[_0x959d71];return _0x278381;};const a790_0x301a9b=a790_0x12fa;'use strict';const {DataTypes}=require(a790_0x301a9b(0x1a4)),attributes={'penalty':{'type':DataTypes[a790_0x301a9b(0x1a5)],'defaultValue':0x0}};module[a790_0x301a9b(0x1a6)]['attributes']=attributes; \ No newline at end of file diff --git a/server/api/userMailQueue/userMailQueue.model.js b/server/api/userMailQueue/userMailQueue.model.js index 43ace7f..b2f44b6 100644 --- a/server/api/userMailQueue/userMailQueue.model.js +++ b/server/api/userMailQueue/userMailQueue.model.js @@ -1 +1 @@ -const a661_0x2ce1=['exports','user_has_mail_queues','./userMailQueue.attributes','define'];(function(_0x5ea70d,_0x2ce1ab){const _0x3b7795=function(_0x3a36e4){while(--_0x3a36e4){_0x5ea70d['push'](_0x5ea70d['shift']());}};_0x3b7795(++_0x2ce1ab);}(a661_0x2ce1,0x185));const a661_0x3b77=function(_0x5ea70d,_0x2ce1ab){_0x5ea70d=_0x5ea70d-0x0;let _0x3b7795=a661_0x2ce1[_0x5ea70d];return _0x3b7795;};const _0x56ba4d=a661_0x3b77;'use strict';const attributes=require(_0x56ba4d('0x1'));module[_0x56ba4d('0x3')]=function(_0x3a36e4){const _0x49c37d=_0x56ba4d,_0x527214=_0x3a36e4[_0x49c37d('0x2')]('UserMailQueue',attributes,{'tableName':_0x49c37d('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x527214;}; \ No newline at end of file +const a791_0x5016=['function','exports','./userMailQueue.attributes','sequelize','init','UserMailQueue'];(function(_0x593a9f,_0x60aa7){const _0x501662=function(_0x2d84d3){while(--_0x2d84d3){_0x593a9f['push'](_0x593a9f['shift']());}};_0x501662(++_0x60aa7);}(a791_0x5016,0x12a));const a791_0x2d84=function(_0x593a9f,_0x60aa7){_0x593a9f=_0x593a9f-0x9e;let _0x501662=a791_0x5016[_0x593a9f];return _0x501662;};const a791_0xf9e2ac=a791_0x2d84;'use strict';const {Model}=require(a791_0xf9e2ac(0xa3)),{attributes}=require(a791_0xf9e2ac(0xa2)),{options}=require('./userMailQueue.options');class UserMailQueue extends Model{}function init(_0x8afb33,_0x3fec27){const _0x1f9d6b=a791_0xf9e2ac,_0x5a7573=options(_0x8afb33),_0x2398ba=typeof _0x3fec27===_0x1f9d6b(0xa0)?_0x3fec27(_0x5a7573):_0x5a7573;return UserMailQueue[_0x1f9d6b(0x9e)](attributes,_0x2398ba),UserMailQueue;}module['exports'][a791_0xf9e2ac(0x9f)]=UserMailQueue,module[a791_0xf9e2ac(0xa1)][a791_0xf9e2ac(0x9e)]=init; \ No newline at end of file diff --git a/server/api/userMailQueue/userMailQueue.options.js b/server/api/userMailQueue/userMailQueue.options.js new file mode 100644 index 0000000..ea3cdd3 --- /dev/null +++ b/server/api/userMailQueue/userMailQueue.options.js @@ -0,0 +1 @@ +var a792_0x5360=['options'];(function(_0x5ea87f,_0x12efde){var _0x53602f=function(_0x300a75){while(--_0x300a75){_0x5ea87f['push'](_0x5ea87f['shift']());}};_0x53602f(++_0x12efde);}(a792_0x5360,0x1a1));var a792_0x300a=function(_0x5ea87f,_0x12efde){_0x5ea87f=_0x5ea87f-0x72;var _0x53602f=a792_0x5360[_0x5ea87f];return _0x53602f;};var a792_0xd33980=a792_0x300a;function options(_0x405209){return{'sequelize':_0x405209,'tableName':'user_has_mail_queues','paranoid':![],'indexes':[],'timestamps':!![]};}module['exports'][a792_0xd33980(0x72)]=options; \ No newline at end of file diff --git a/server/api/userOpenchannelQueue/index.js b/server/api/userOpenchannelQueue/index.js index e7b2f98..cbc5166 100644 --- a/server/api/userOpenchannelQueue/index.js +++ b/server/api/userOpenchannelQueue/index.js @@ -1 +1 @@ -const a662_0x19a5=['express','exports','Router'];(function(_0x3792ec,_0x19a57c){const _0x4a30fb=function(_0x3f5c74){while(--_0x3f5c74){_0x3792ec['push'](_0x3792ec['shift']());}};_0x4a30fb(++_0x19a57c);}(a662_0x19a5,0x1b0));const a662_0x4a30=function(_0x3792ec,_0x19a57c){_0x3792ec=_0x3792ec-0x0;let _0x4a30fb=a662_0x19a5[_0x3792ec];return _0x4a30fb;};const _0xd6a7b5=a662_0x4a30;'use strict';const express=require(_0xd6a7b5('0x0')),router=express[_0xd6a7b5('0x2')]();module[_0xd6a7b5('0x1')]=router; \ No newline at end of file +const a793_0x25ce=['Router'];(function(_0x2de3eb,_0x1d8350){const _0x25ce0e=function(_0x298efe){while(--_0x298efe){_0x2de3eb['push'](_0x2de3eb['shift']());}};_0x25ce0e(++_0x1d8350);}(a793_0x25ce,0x1b9));const a793_0x298e=function(_0x2de3eb,_0x1d8350){_0x2de3eb=_0x2de3eb-0x1cc;let _0x25ce0e=a793_0x25ce[_0x2de3eb];return _0x25ce0e;};const a793_0x32e1a0=a793_0x298e;'use strict';const express=require('express'),router=express[a793_0x32e1a0(0x1cc)]();module['exports']=router; \ No newline at end of file diff --git a/server/api/userOpenchannelQueue/userOpenchannelQueue.attributes.js b/server/api/userOpenchannelQueue/userOpenchannelQueue.attributes.js index 03e63b8..e8a8986 100644 --- a/server/api/userOpenchannelQueue/userOpenchannelQueue.attributes.js +++ b/server/api/userOpenchannelQueue/userOpenchannelQueue.attributes.js @@ -1 +1 @@ -const a663_0x2189=['INTEGER','exports','sequelize'];(function(_0x59d144,_0x2189c9){const _0x51f3a3=function(_0x34878){while(--_0x34878){_0x59d144['push'](_0x59d144['shift']());}};_0x51f3a3(++_0x2189c9);}(a663_0x2189,0x14d));const a663_0x51f3=function(_0x59d144,_0x2189c9){_0x59d144=_0x59d144-0x0;let _0x51f3a3=a663_0x2189[_0x59d144];return _0x51f3a3;};const _0xf7509a=a663_0x51f3;'use strict';const Sequelize=require(_0xf7509a('0x2'));module[_0xf7509a('0x1')]={'penalty':{'type':Sequelize[_0xf7509a('0x0')],'defaultValue':0x0}}; \ No newline at end of file +const a794_0x3b30=['INTEGER','attributes'];(function(_0x5f226f,_0x2493f6){const _0x3b3072=function(_0x500416){while(--_0x500416){_0x5f226f['push'](_0x5f226f['shift']());}};_0x3b3072(++_0x2493f6);}(a794_0x3b30,0xd0));const a794_0x5004=function(_0x5f226f,_0x2493f6){_0x5f226f=_0x5f226f-0xa2;let _0x3b3072=a794_0x3b30[_0x5f226f];return _0x3b3072;};const a794_0x3445bd=a794_0x5004;'use strict';const {DataTypes}=require('sequelize'),attributes={'penalty':{'type':DataTypes[a794_0x3445bd(0xa2)],'defaultValue':0x0}};module['exports'][a794_0x3445bd(0xa3)]=attributes; \ No newline at end of file diff --git a/server/api/userOpenchannelQueue/userOpenchannelQueue.model.js b/server/api/userOpenchannelQueue/userOpenchannelQueue.model.js index 9be0801..0ed9b7b 100644 --- a/server/api/userOpenchannelQueue/userOpenchannelQueue.model.js +++ b/server/api/userOpenchannelQueue/userOpenchannelQueue.model.js @@ -1 +1 @@ -const a664_0x1816=['define','./userOpenchannelQueue.attributes'];(function(_0x4cb832,_0x18164b){const _0x53a20f=function(_0x5e39f4){while(--_0x5e39f4){_0x4cb832['push'](_0x4cb832['shift']());}};_0x53a20f(++_0x18164b);}(a664_0x1816,0x11e));const a664_0x53a2=function(_0x4cb832,_0x18164b){_0x4cb832=_0x4cb832-0x0;let _0x53a20f=a664_0x1816[_0x4cb832];return _0x53a20f;};const _0x3283ca=a664_0x53a2;'use strict';const attributes=require(_0x3283ca('0x1'));module['exports']=function(_0x5e39f4){const _0x59ae7f=_0x3283ca,_0x221eb9=_0x5e39f4[_0x59ae7f('0x0')]('UserOpenchannelQueue',attributes,{'tableName':'user_has_openchannel_queues','paranoid':![],'indexes':[],'timestamps':!![]});return _0x221eb9;}; \ No newline at end of file +const a795_0x2f53=['init','exports','function'];(function(_0x4b0e1c,_0x18c1c7){const _0x2f53ab=function(_0x31c809){while(--_0x31c809){_0x4b0e1c['push'](_0x4b0e1c['shift']());}};_0x2f53ab(++_0x18c1c7);}(a795_0x2f53,0xc2));const a795_0x31c8=function(_0x4b0e1c,_0x18c1c7){_0x4b0e1c=_0x4b0e1c-0xf2;let _0x2f53ab=a795_0x2f53[_0x4b0e1c];return _0x2f53ab;};const a795_0x1f4da1=a795_0x31c8;'use strict';const {Model}=require('sequelize'),{attributes}=require('./userOpenchannelQueue.attributes'),{options}=require('./userOpenchannelQueue.options');class UserOpenchannelQueue extends Model{}function init(_0x14439d,_0x237050){const _0x53cc61=a795_0x31c8,_0x1d579a=options(_0x14439d),_0x361b8d=typeof _0x237050===_0x53cc61(0xf2)?_0x237050(_0x1d579a):_0x1d579a;return UserOpenchannelQueue['init'](attributes,_0x361b8d),UserOpenchannelQueue;}module[a795_0x1f4da1(0xf4)]['UserOpenchannelQueue']=UserOpenchannelQueue,module[a795_0x1f4da1(0xf4)][a795_0x1f4da1(0xf3)]=init; \ No newline at end of file diff --git a/server/api/userOpenchannelQueue/userOpenchannelQueue.options.js b/server/api/userOpenchannelQueue/userOpenchannelQueue.options.js new file mode 100644 index 0000000..68fdb91 --- /dev/null +++ b/server/api/userOpenchannelQueue/userOpenchannelQueue.options.js @@ -0,0 +1 @@ +var a796_0x4409=['exports','options','user_has_openchannel_queues'];(function(_0x45d1d4,_0xdadc18){var _0x44099b=function(_0x2eaad4){while(--_0x2eaad4){_0x45d1d4['push'](_0x45d1d4['shift']());}};_0x44099b(++_0xdadc18);}(a796_0x4409,0x1a4));var a796_0x2eaa=function(_0x45d1d4,_0xdadc18){_0x45d1d4=_0x45d1d4-0x6b;var _0x44099b=a796_0x4409[_0x45d1d4];return _0x44099b;};var a796_0x4feb88=a796_0x2eaa;function options(_0x56055e){var _0xf2edda=a796_0x2eaa;return{'sequelize':_0x56055e,'tableName':_0xf2edda(0x6d),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a796_0x4feb88(0x6b)][a796_0x4feb88(0x6c)]=options; \ No newline at end of file diff --git a/server/api/userProfile/index.js b/server/api/userProfile/index.js index 0d0e76f..bd8a79b 100644 --- a/server/api/userProfile/index.js +++ b/server/api/userProfile/index.js @@ -1 +1 @@ -const a665_0x4b84=['get','../../components/auth/service','./userProfile.controller','show','/:id/sections','clone','create','update','/describe','express','post','getSections','delete','/:id/resources','isAuthenticated','getResources','put','removeSections','Router','exports','addSections','index','removeResources'];(function(_0x8c3f45,_0x4b8447){const _0x4b7280=function(_0x18d74c){while(--_0x18d74c){_0x8c3f45['push'](_0x8c3f45['shift']());}};_0x4b7280(++_0x4b8447);}(a665_0x4b84,0xfa));const a665_0x4b72=function(_0x8c3f45,_0x4b8447){_0x8c3f45=_0x8c3f45-0x0;let _0x4b7280=a665_0x4b84[_0x8c3f45];return _0x4b7280;};const _0x67a66c=a665_0x4b72;'use strict';const express=require(_0x67a66c('0xc')),router=express[_0x67a66c('0x15')](),auth=require(_0x67a66c('0x4')),controller=require(_0x67a66c('0x5'));router['get']('/',auth[_0x67a66c('0x11')](),controller[_0x67a66c('0x1')]),router['get'](_0x67a66c('0xb'),auth['isAuthenticated'](),controller['describe']),router[_0x67a66c('0x3')]('/:id',auth[_0x67a66c('0x11')](),controller[_0x67a66c('0x6')]),router[_0x67a66c('0x3')](_0x67a66c('0x7'),auth[_0x67a66c('0x11')](),controller[_0x67a66c('0xe')]),router['get'](_0x67a66c('0x10'),auth[_0x67a66c('0x11')](),controller[_0x67a66c('0x12')]),router[_0x67a66c('0xd')]('/',auth[_0x67a66c('0x11')](),controller[_0x67a66c('0x9')]),router['post']('/:id/clone',auth[_0x67a66c('0x11')](),controller[_0x67a66c('0x8')]),router['post'](_0x67a66c('0x7'),auth['isAuthenticated'](),controller[_0x67a66c('0x0')]),router[_0x67a66c('0xd')](_0x67a66c('0x10'),auth[_0x67a66c('0x11')](),controller['addResources']),router[_0x67a66c('0x13')]('/:id',auth['isAuthenticated'](),controller[_0x67a66c('0xa')]),router[_0x67a66c('0xf')]('/:id',auth['isAuthenticated'](),controller['destroy']),router[_0x67a66c('0xf')]('/:id/sections',auth['isAuthenticated'](),controller[_0x67a66c('0x14')]),router[_0x67a66c('0xf')](_0x67a66c('0x10'),auth['isAuthenticated'](),controller[_0x67a66c('0x2')]),module[_0x67a66c('0x16')]=router; \ No newline at end of file +const a797_0x2d2f=['getResources','isAuthenticated','clone','/:id','exports','/:id/resources','/:id/clone','delete','../../components/auth/service','getSections','addResources','show','get','create','./userProfile.controller','/:id/sections','addSections','removeResources','post','destroy','express','describe','put','update'];(function(_0xf8b9b,_0x37a560){const _0x2d2f85=function(_0x2c26ab){while(--_0x2c26ab){_0xf8b9b['push'](_0xf8b9b['shift']());}};_0x2d2f85(++_0x37a560);}(a797_0x2d2f,0x6a));const a797_0x2c26=function(_0xf8b9b,_0x37a560){_0xf8b9b=_0xf8b9b-0x11b;let _0x2d2f85=a797_0x2d2f[_0xf8b9b];return _0x2d2f85;};const a797_0x1d67b5=a797_0x2c26;'use strict';const express=require(a797_0x1d67b5(0x125)),router=express['Router'](),auth=require(a797_0x1d67b5(0x131)),controller=require(a797_0x1d67b5(0x11f));router[a797_0x1d67b5(0x11d)]('/',auth['isAuthenticated'](),controller['index']),router[a797_0x1d67b5(0x11d)]('/describe',auth[a797_0x1d67b5(0x12a)](),controller[a797_0x1d67b5(0x126)]),router[a797_0x1d67b5(0x11d)](a797_0x1d67b5(0x12c),auth[a797_0x1d67b5(0x12a)](),controller[a797_0x1d67b5(0x11c)]),router[a797_0x1d67b5(0x11d)](a797_0x1d67b5(0x120),auth[a797_0x1d67b5(0x12a)](),controller[a797_0x1d67b5(0x132)]),router[a797_0x1d67b5(0x11d)](a797_0x1d67b5(0x12e),auth[a797_0x1d67b5(0x12a)](),controller[a797_0x1d67b5(0x129)]),router['post']('/',auth['isAuthenticated'](),controller[a797_0x1d67b5(0x11e)]),router['post'](a797_0x1d67b5(0x12f),auth[a797_0x1d67b5(0x12a)](),controller[a797_0x1d67b5(0x12b)]),router[a797_0x1d67b5(0x123)](a797_0x1d67b5(0x120),auth[a797_0x1d67b5(0x12a)](),controller[a797_0x1d67b5(0x121)]),router[a797_0x1d67b5(0x123)](a797_0x1d67b5(0x12e),auth[a797_0x1d67b5(0x12a)](),controller[a797_0x1d67b5(0x11b)]),router[a797_0x1d67b5(0x127)](a797_0x1d67b5(0x12c),auth[a797_0x1d67b5(0x12a)](),controller[a797_0x1d67b5(0x128)]),router['delete'](a797_0x1d67b5(0x12c),auth[a797_0x1d67b5(0x12a)](),controller[a797_0x1d67b5(0x124)]),router[a797_0x1d67b5(0x130)](a797_0x1d67b5(0x120),auth[a797_0x1d67b5(0x12a)](),controller['removeSections']),router['delete'](a797_0x1d67b5(0x12e),auth['isAuthenticated'](),controller[a797_0x1d67b5(0x122)]),module[a797_0x1d67b5(0x12d)]=router; \ No newline at end of file diff --git a/server/api/userProfile/userProfile.attributes.js b/server/api/userProfile/userProfile.attributes.js index 9e67708..21b2d2f 100644 --- a/server/api/userProfile/userProfile.attributes.js +++ b/server/api/userProfile/userProfile.attributes.js @@ -1 +1 @@ -const a666_0x5c1f=['name','crudPermissions','split','join','sequelize','setDataValue','STRING'];(function(_0x1b1d98,_0x5c1fc4){const _0x299f9e=function(_0x46b72c){while(--_0x46b72c){_0x1b1d98['push'](_0x1b1d98['shift']());}};_0x299f9e(++_0x5c1fc4);}(a666_0x5c1f,0x1ba));const a666_0x299f=function(_0x1b1d98,_0x5c1fc4){_0x1b1d98=_0x1b1d98-0x0;let _0x299f9e=a666_0x5c1f[_0x1b1d98];return _0x299f9e;};const _0x57cc4=a666_0x299f;'use strict';const Sequelize=require(_0x57cc4('0x3'));module['exports']={'name':{'type':Sequelize['STRING'],'allowNull':![],'unique':_0x57cc4('0x6')},'crudPermissions':{'type':Sequelize[_0x57cc4('0x5')],'set':function(_0x46b72c){const _0x24fb69=_0x57cc4;this[_0x24fb69('0x4')](_0x24fb69('0x0'),_0x46b72c?_0x46b72c[_0x24fb69('0x2')](''):[]);},'get':function(){const _0x144aed=_0x57cc4;return this['getDataValue'](_0x144aed('0x0'))?this['getDataValue'](_0x144aed('0x0'))[_0x144aed('0x1')](''):[];},'allowNull':![],'defaultValue':'r'},'description':{'type':Sequelize[_0x57cc4('0x5')],'allowNull':!![]}}; \ No newline at end of file +const a798_0x2563=['getDataValue','exports','sequelize','name','crudPermissions','join','split','STRING'];(function(_0x24c819,_0x244233){const _0x25630d=function(_0x5f5bc3){while(--_0x5f5bc3){_0x24c819['push'](_0x24c819['shift']());}};_0x25630d(++_0x244233);}(a798_0x2563,0xbc));const a798_0x5f5b=function(_0x24c819,_0x244233){_0x24c819=_0x24c819-0x80;let _0x25630d=a798_0x2563[_0x24c819];return _0x25630d;};const a798_0x385cf0=a798_0x5f5b;'use strict';const {DataTypes}=require(a798_0x385cf0(0x86)),attributes={'name':{'type':DataTypes[a798_0x385cf0(0x83)],'allowNull':![],'unique':a798_0x385cf0(0x87)},'crudPermissions':{'type':DataTypes[a798_0x385cf0(0x83)],'set':function(_0x1e684c){const _0x7dd91b=a798_0x385cf0;this['setDataValue'](_0x7dd91b(0x80),_0x1e684c?_0x1e684c[_0x7dd91b(0x81)](''):[]);},'get':function(){const _0x49b59a=a798_0x385cf0;return this[_0x49b59a(0x84)](_0x49b59a(0x80))?this[_0x49b59a(0x84)](_0x49b59a(0x80))[_0x49b59a(0x82)](''):[];},'allowNull':![],'defaultValue':'r'},'description':{'type':DataTypes[a798_0x385cf0(0x83)],'allowNull':!![]}};module[a798_0x385cf0(0x85)]['attributes']=attributes; \ No newline at end of file diff --git a/server/api/userProfile/userProfile.controller.js b/server/api/userProfile/userProfile.controller.js index fbe6a9f..0a85278 100644 --- a/server/api/userProfile/userProfile.controller.js +++ b/server/api/userProfile/userProfile.controller.js @@ -1 +1 @@ -const a667_0x389a=['end','Tag','Team','UserProfile','Telephones','describe','Variable','send','SalesforceAccount','fieldName','Plugin','Reports','OpenchannelAccount','cannedanswers','MailQueue','pauses','sugarcrmaccounts','sort','freshdeskaccounts','undefined','Tags','attributes','reportId','VoiceContext','pick','templates','outboundroutes','deskaccounts','include','foreignKey','includes','../../mysqldb','projects','CmCustomField','options','rawAttributes','salesforceaccounts','CustomReports','mailaccounts','extractedreports','squarerecordings','catch','voicerecordings','filters','AnalyticExtractedReport','body','get','telephone','WhatsappAccount','Content-Range','chatqueues','SquareOdbc','CmContact','DefaultReports','smsqueues','associatedResources','companies','all','params','SmsQueue','parentSections','SquareProject','fields','sectionId','rows','mergeResources','MailSubstatus','resourceId','Resources','updatedAt','keys','query','ZendeskAccount','offset','Agents','api','queuecampaigns','../../rediscache','push','contexts','ThroughTags','zendeskaccounts','musiconholds','lodash','outbound','VoiceRecording','ZohoAccount','SquareProjects','users','squareprojects','voicequeues','globalcustomfields','internalroutes','faxaccounts','json','./userProfile.socket','admin','omit','default','dispositions','subsections','status','destroy','openchannelaccounts','sendStatus','show','merge','autoAssociation','findOne','whatsappaccounts','Disposition','key','map','update','ivrcampaigns','smsaccounts','Lists','../../components/parsers/qs','UserProfileResource','JscriptyProject','sounds','membername','agents','VoicePrefix','VoiceMail','bulkCreate','where','getResources','value','Users','type','findAll','trunks','VoiceQueue','Unknown\x20section','Trigger','mailqueues','Schedule','Trunk','inboundroutes','projectName','createdAt','metrics','nolimit','find','odbc','QueueCampaigns','getSections','CmCompany','queue','VoiceExtension','VoiceQueues','intersection','model','telephones','sequelize','filter','WhatsappQueue','role','userProfileId','CmList','mailsubstatuses','Dashboard','FaxQueue','field','toLowerCase','VIRTUAL','vtigeraccounts','then','section','tag','AnalyticMetric','transaction','customdashboards','faxqueues','forEach','UserProfileSection','removeResources','length','FaxAccount','MailAccount','childModel','User','create','name','inbound','chanspies','ChatWebsite','zohoaccounts','ignore','agent','VoiceChanSpy','ids','order','error','limit','enabled','Invalid\x20section\x20\x27','tags','Template','count','clone','includeAll','isEmpty','DeskAccount'];(function(_0x2e3f93,_0x389a29){const _0x45f99d=function(_0x1a4fc5){while(--_0x1a4fc5){_0x2e3f93['push'](_0x2e3f93['shift']());}};_0x45f99d(++_0x389a29);}(a667_0x389a,0x12e));const a667_0x45f9=function(_0x2e3f93,_0x389a29){_0x2e3f93=_0x2e3f93-0x0;let _0x45f99d=a667_0x389a[_0x2e3f93];return _0x45f99d;};const _0x388572=a667_0x45f9;'use strict';const _=require(_0x388572('0xbf')),qs=require(_0x388572('0x14')),logger=require('../../config/logger')(_0x388572('0xb7')),{getSocket}=require(_0x388572('0xb9')),socket=getSocket(),db=require(_0x388572('0x8b'))['db'],{Op,ValidationError}=require(_0x388572('0x3a'));require(_0x388572('0xcb'))['register'](socket);function respondWithStatusCode(_0x1a4fc5,_0xf1beff){return _0xf1beff=_0xf1beff||0xcc,function(_0x22c96b){const _0x1129ff=a667_0x45f9;if(_0x22c96b)return _0x1a4fc5[_0x1129ff('0x7')](_0xf1beff);return _0x1a4fc5['status'](_0xf1beff)[_0x1129ff('0x6c')]();};}function respondWithResult(_0x333796,_0x42e0f6){return _0x42e0f6=_0x42e0f6||0xc8,function(_0x8e6505){const _0x3b221f=a667_0x45f9;if(_0x8e6505)return _0x333796[_0x3b221f('0x4')](_0x42e0f6)['json'](_0x8e6505);};}function respondWithFilteredResult(_0x200fa0,_0x295e63){return function(_0x3cb9e8){const _0x3115ab=a667_0x45f9;if(_0x3cb9e8){const _0x162e9f=_0x3cb9e8[_0x3115ab('0x67')],_0x196570=_0x295e63[_0x3115ab('0xb5')];let _0x1b520b=_0x295e63[_0x3115ab('0xb5')]+_0x295e63['limit'],_0x1c128c;return _0x1b520b>=_0x162e9f?(_0x1b520b=_0x162e9f,_0x1c128c=0xc8):_0x1c128c=0xce,_0x200fa0[_0x3115ab('0x4')](_0x1c128c),_0x200fa0['set'](_0x3115ab('0x9d'),_0x196570+'-'+_0x1b520b+'/'+_0x162e9f)[_0x3115ab('0xca')](_0x3cb9e8);}return null;};}function saveUpdates(_0x54cca9){return function(_0xb8ce9e){const _0x246cb4=a667_0x45f9;if(_0xb8ce9e)return _0xb8ce9e[_0x246cb4('0x10')](_0x54cca9)[_0x246cb4('0x47')](function(_0xa3dd59){return _0xa3dd59;});return null;};}function removeEntity(_0x3416f0){return function(_0x4f357){const _0xaf0910=a667_0x45f9;if(_0x4f357)return _0x4f357[_0xaf0910('0x5')]()['then'](function(){const _0x82409=_0xaf0910;_0x3416f0[_0x82409('0x4')](0xcc)['end']();});};}function handleEntityNotFound(_0x1cbdcc){return function(_0xbc6e4b){const _0x24ddd8=a667_0x45f9;return!_0xbc6e4b&&_0x1cbdcc[_0x24ddd8('0x7')](0x194),_0xbc6e4b;};}function handleError(_0x1377f7,_0x2e48c3){return _0x2e48c3=_0x2e48c3||0x1f4,function(_0x1f764f){const _0x2283cc=a667_0x45f9;logger[_0x2283cc('0x61')](_0x1f764f['stack']),_0x1f764f[_0x2283cc('0x57')]&&delete _0x1f764f[_0x2283cc('0x57')],_0x1377f7['status'](_0x2e48c3)[_0x2283cc('0x73')](_0x1f764f);};}exports['index']=function(_0x4fdbd4,_0x5e83ff){const _0x59e768=_0x388572;let _0x14c7f6={};const _0x3a2c82={},_0x500465={'count':0x0,'rows':[]},_0x1fd52f=_[_0x59e768('0xf')](db[_0x59e768('0x6f')][_0x59e768('0x8f')],function(_0x1648ea){const _0x20657c=_0x59e768;return{'name':_0x1648ea[_0x20657c('0x75')],'type':_0x1648ea[_0x20657c('0x21')][_0x20657c('0xe')]};});_0x3a2c82[_0x59e768('0x38')]=_[_0x59e768('0xf')](_0x1fd52f,_0x59e768('0x57')),_0x3a2c82['query']=_['keys'](_0x4fdbd4[_0x59e768('0xb3')]),_0x3a2c82[_0x59e768('0x97')]=_[_0x59e768('0x37')](_0x3a2c82[_0x59e768('0x38')],_0x3a2c82[_0x59e768('0xb3')]),_0x14c7f6[_0x59e768('0x81')]=_[_0x59e768('0x37')](_0x3a2c82['model'],qs[_0x59e768('0xaa')](_0x4fdbd4['query'][_0x59e768('0xaa')])),_0x14c7f6['attributes']=_0x14c7f6[_0x59e768('0x81')]['length']?_0x14c7f6[_0x59e768('0x81')]:_0x3a2c82[_0x59e768('0x38')];typeof _0x4fdbd4[_0x59e768('0xb3')][_0x59e768('0x2e')]===_0x59e768('0x7f')&&(_0x14c7f6[_0x59e768('0x62')]=qs[_0x59e768('0x62')](_0x4fdbd4['query']['limit']),_0x14c7f6['offset']=qs[_0x59e768('0xb5')](_0x4fdbd4['query']['offset']));_0x14c7f6[_0x59e768('0x60')]=qs['sort'](_0x4fdbd4[_0x59e768('0xb3')][_0x59e768('0x7d')]),_0x14c7f6['where']=qs['filters'](_['pick'](_0x4fdbd4['query'],_0x3a2c82[_0x59e768('0x97')]),_0x1fd52f);_0x4fdbd4[_0x59e768('0xb3')][_0x59e768('0x3b')]&&(_0x14c7f6[_0x59e768('0x1d')]=_[_0x59e768('0x9')](_0x14c7f6['where'],{[Op['or']]:_[_0x59e768('0xf')](_0x1fd52f,function(_0x114f8f){const _0x173ac7=_0x59e768;if(_0x114f8f[_0x173ac7('0x21')]!==_0x173ac7('0x45')){const _0x853cfb={};return _0x853cfb[_0x114f8f['name']]={[Op['like']]:'%'+_0x4fdbd4[_0x173ac7('0xb3')]['filter']+'%'},_0x853cfb;}})}));_0x14c7f6=_[_0x59e768('0x9')]({},_0x14c7f6,_0x4fdbd4[_0x59e768('0x8e')]);const _0x4302e7={'where':_0x14c7f6[_0x59e768('0x1d')]};return db[_0x59e768('0x6f')][_0x59e768('0x67')](_0x4302e7)[_0x59e768('0x47')](function(_0x243ac7){const _0x2d4722=_0x59e768;return _0x500465[_0x2d4722('0x67')]=_0x243ac7,_0x4fdbd4[_0x2d4722('0xb3')][_0x2d4722('0x69')]&&(_0x14c7f6[_0x2d4722('0x88')]=[{'all':!![]}]),db[_0x2d4722('0x6f')][_0x2d4722('0x22')](_0x14c7f6);})['then'](function(_0x149211){return _0x500465['rows']=_0x149211,_0x500465;})['then'](respondWithFilteredResult(_0x5e83ff,_0x14c7f6))['catch'](handleError(_0x5e83ff,null));},exports[_0x388572('0x8')]=function(_0x151894,_0x4ee99a){const _0x4ce56c=_0x388572;let _0x1a8e37={'raw':![],'where':{'id':_0x151894[_0x4ce56c('0xa6')]['id']}};const _0x11bd84={};return _0x11bd84[_0x4ce56c('0x38')]=_['keys'](db[_0x4ce56c('0x6f')]['rawAttributes']),_0x11bd84['query']=_[_0x4ce56c('0xb2')](_0x151894['query']),_0x11bd84[_0x4ce56c('0x97')]=_[_0x4ce56c('0x37')](_0x11bd84[_0x4ce56c('0x38')],_0x11bd84[_0x4ce56c('0xb3')]),_0x1a8e37[_0x4ce56c('0x81')]=_[_0x4ce56c('0x37')](_0x11bd84['model'],qs['fields'](_0x151894['query'][_0x4ce56c('0xaa')])),_0x1a8e37['attributes']=_0x1a8e37[_0x4ce56c('0x81')]['length']?_0x1a8e37[_0x4ce56c('0x81')]:_0x11bd84[_0x4ce56c('0x38')],_0x151894['query']['includeAll']&&(_0x1a8e37['include']=[{'all':!![]}]),_0x1a8e37=_[_0x4ce56c('0x9')]({},_0x1a8e37,_0x151894[_0x4ce56c('0x8e')]),db[_0x4ce56c('0x6f')]['findOne'](_0x1a8e37)[_0x4ce56c('0x47')](handleEntityNotFound(_0x4ee99a))[_0x4ce56c('0x47')](respondWithResult(_0x4ee99a,null))['catch'](handleError(_0x4ee99a,null));},exports['create']=function(_0x217c70,_0x21c16f){const _0x2e61fc=_0x388572;return db[_0x2e61fc('0x6f')][_0x2e61fc('0x56')](_0x217c70[_0x2e61fc('0x99')],{})[_0x2e61fc('0x47')](respondWithResult(_0x21c16f,0xc9))[_0x2e61fc('0x95')](handleError(_0x21c16f,null));},exports[_0x388572('0x68')]=function(_0x4ca326,_0x335231){const _0x58711d=_0x388572;let _0x14cddf={'where':{'id':_0x4ca326['params']['id']}};const _0x3e65a9={};return _0x3e65a9[_0x58711d('0x38')]=_[_0x58711d('0xb2')](db[_0x58711d('0x6f')]['rawAttributes']),_0x14cddf[_0x58711d('0x81')]=_['intersection'](_0x3e65a9['model'],qs['fields'](_0x4ca326[_0x58711d('0xb3')][_0x58711d('0xaa')])),_0x14cddf[_0x58711d('0x81')]=_0x14cddf[_0x58711d('0x81')][_0x58711d('0x51')]?_0x14cddf[_0x58711d('0x81')]:_0x3e65a9[_0x58711d('0x38')],_0x4ca326['query'][_0x58711d('0x69')]&&(_0x14cddf['include']=[{'all':!![]}]),_0x14cddf=_[_0x58711d('0x9')]({},_0x14cddf,_0x4ca326[_0x58711d('0x8e')]),db[_0x58711d('0x6f')]['findOne'](_0x14cddf)[_0x58711d('0x47')](handleEntityNotFound(_0x335231))[_0x58711d('0x47')](function(_0x28276b){const _0x4b3f88=_0x58711d;if(_0x28276b){let _0x252fcc=_0x28276b['get']({'plain':!![]});return _0x252fcc=qs[_0x4b3f88('0x0')](_0x252fcc,['id',_0x4b3f88('0x2c'),_0x4b3f88('0xb1'),'crudPermissions']),_0x4ca326[_0x4b3f88('0x99')]=_[_0x4b3f88('0x0')](_0x4ca326[_0x4b3f88('0x99')],['id',_0x4b3f88('0x2c'),'updatedAt']),db[_0x4b3f88('0x3a')][_0x4b3f88('0x4b')](function(_0x19ba1a){const _0x591d88=_0x4b3f88;return db[_0x591d88('0x6f')]['create'](_[_0x591d88('0x9')](_0x252fcc,_0x4ca326[_0x591d88('0x99')]),{'include':_0x4ca326['query'][_0x591d88('0x69')]?[{'all':!![]}]:undefined,'transaction':_0x19ba1a})[_0x591d88('0x47')](function(_0x3f6630){const _0x990067=_0x591d88,_0x4db5a2=_0x3f6630[_0x990067('0x9a')]({'plain':!![]});return db['UserProfileSection'][_0x990067('0x22')]({'where':{'userProfileId':_0x4ca326[_0x990067('0xa6')]['id']},'raw':!![]})[_0x990067('0x47')](function(_0x3ed24e){const _0x3dfc54=_0x990067;if(_0x3ed24e)return Promise[_0x3dfc54('0xa5')](_0x3ed24e[_0x3dfc54('0xf')](_0x2f94ff=>{const _0x1f5f03=_0x3dfc54;return new Promise(function(_0x1b180c,_0x24d76c){const _0xb4b2c2=a667_0x45f9;if(_0x2f94ff[_0xb4b2c2('0xa')]===null||_0x2f94ff[_0xb4b2c2('0xa')]===0x1)_0x1b180c(null);return db[_0xb4b2c2('0x15')][_0xb4b2c2('0x22')]({'where':{'sectionId':_0x2f94ff['id']},'raw':!![]})[_0xb4b2c2('0x47')](function(_0x1a89c7){const _0x50ae53=_['map'](_0x1a89c7,function(_0x1ed8ab){const _0x1e6dd2=a667_0x45f9;return qs[_0x1e6dd2('0x0')](_0x1ed8ab,['id',_0x1e6dd2('0x2c'),_0x1e6dd2('0xb1'),'sectionId']);});_0x1b180c(_0x50ae53);})[_0xb4b2c2('0x95')](function(_0x1b28ba){_0x24d76c(_0x1b28ba);});})['then'](function(_0x37c4e0){const _0x4bc632=a667_0x45f9,_0x41a9cd=qs['omit'](_0x2f94ff,['id',_0x4bc632('0x2c'),_0x4bc632('0xb1')]);_0x41a9cd['userProfileId']=_0x4db5a2['id'];if(_0x37c4e0)_0x41a9cd[_0x4bc632('0xb0')]=_0x37c4e0;return _0x41a9cd;})[_0x1f5f03('0x47')](function(_0x2cca96){const _0xd5cda4=_0x1f5f03;return db[_0xd5cda4('0x4f')][_0xd5cda4('0x56')](_0x2cca96,{'include':[{'model':db[_0xd5cda4('0x15')],'as':'Resources'}],'raw':!![],'transaction':_0x19ba1a});});}))['then'](function(){return _0x4db5a2;});});});});}})['then'](respondWithResult(_0x335231,0xc9))[_0x58711d('0x95')](handleError(_0x335231,null));},exports[_0x388572('0x10')]=function(_0x23a483,_0x390066){const _0x5f4829=_0x388572;return _0x23a483[_0x5f4829('0x99')]['id']&&delete _0x23a483['body']['id'],db[_0x5f4829('0x6f')][_0x5f4829('0xb')]({'where':{'id':_0x23a483[_0x5f4829('0xa6')]['id']}})[_0x5f4829('0x47')](handleEntityNotFound(_0x390066))['then'](saveUpdates(_0x23a483[_0x5f4829('0x99')],null))[_0x5f4829('0x47')](respondWithResult(_0x390066,null))[_0x5f4829('0x95')](handleError(_0x390066,null));},exports[_0x388572('0x5')]=function(_0x5b0416,_0x35e813){const _0x5b533d=_0x388572;return db[_0x5b533d('0x6f')][_0x5b533d('0xb')]({'where':{'id':_0x5b0416[_0x5b533d('0xa6')]['id']}})[_0x5b533d('0x47')](handleEntityNotFound(_0x35e813))[_0x5b533d('0x47')](removeEntity(_0x35e813,null))['catch'](handleError(_0x35e813,null));},exports['describe']=function(_0x52991a,_0x501896){const _0x3535a5=_0x388572;return db[_0x3535a5('0x6f')][_0x3535a5('0x71')]()[_0x3535a5('0x47')](respondWithResult(_0x501896,null))[_0x3535a5('0x95')](handleError(_0x501896,null));},exports['addSections']=function(_0x2baf6d,_0x325980){const _0x158ae8=_0x388572,_0x424003=_0x2baf6d[_0x158ae8('0x99')];return db['UserProfile'][_0x158ae8('0xb')]({'where':{'id':_0x2baf6d[_0x158ae8('0xa6')]['id']}})[_0x158ae8('0x47')](handleEntityNotFound(_0x325980))[_0x158ae8('0x47')](function(_0x4b71ee){const _0x4640fc=_0x158ae8;if(_0x4b71ee)return db[_0x4640fc('0x3a')][_0x4640fc('0x4b')](function(_0x135603){const _0x46d8b3=_0x4640fc;return db['UserProfileSection'][_0x46d8b3('0x5')]({'where':{'userProfileId':_0x2baf6d[_0x46d8b3('0xa6')]['id'],'sectionId':_[_0x46d8b3('0xf')](_0x424003,function(_0x140801){return _0x140801['sectionId'];})},'transaction':_0x135603})['then'](function(){const _0x2e0a1b=_0x46d8b3,_0x4503e1=_['map'](_0x424003,function(_0x35b23e){return _0x35b23e['userProfileId']=_0x2baf6d['params']['id'],_0x35b23e;}),_0x503b7b=[];return Promise['all'](_0x4503e1[_0x2e0a1b('0xf')](_0x4bd54b=>{const _0x1578b4=_0x2e0a1b;return db[_0x1578b4('0x4f')][_0x1578b4('0x56')](_0x4bd54b,{'include':[{'model':db['UserProfileResource'],'as':'Resources'}],'raw':!![],'transaction':_0x135603})[_0x1578b4('0x47')](function(_0x3ba37f){const _0x3aa23f=_0x1578b4;_0x503b7b[_0x3aa23f('0xba')](_0x3ba37f[_0x3aa23f('0x9a')]({'plain':!![]}));});}))[_0x2e0a1b('0x47')](function(){return _0x503b7b;});});});})[_0x158ae8('0x47')](function(_0x378c86){return _0x378c86;})[_0x158ae8('0x47')](respondWithResult(_0x325980,null))[_0x158ae8('0x95')](handleError(_0x325980,null));},exports['removeSections']=function(_0x453a2e,_0x57362a){const _0x4a98ff=_0x388572;let _0x36e81c;return db['UserProfile'][_0x4a98ff('0xb')]({'where':{'id':_0x453a2e[_0x4a98ff('0xa6')]['id']},'attributes':['id',_0x4a98ff('0x57')]})['then'](handleEntityNotFound(_0x57362a))[_0x4a98ff('0x47')](function(_0x4ecba4){const _0x574ab5=_0x4a98ff;if(_0x4ecba4)return _0x36e81c=_0x4ecba4,db['UserProfileSection'][_0x574ab5('0x5')]({'where':{'userProfileId':_0x453a2e['params']['id'],'sectionId':_0x453a2e[_0x574ab5('0xb3')][_0x574ab5('0x5f')]}});})[_0x4a98ff('0x47')](function(){return _0x36e81c;})['then'](respondWithStatusCode(_0x57362a,null))[_0x4a98ff('0x95')](handleError(_0x57362a,null));},exports[_0x388572('0x32')]=function(_0x4a1349,_0x37ad03){const _0x2ed1cf=_0x388572;let _0x4df835=[],_0x1e7985=[];return db[_0x2ed1cf('0x4f')][_0x2ed1cf('0x22')]({'where':{'userProfileId':_0x4a1349[_0x2ed1cf('0xa6')]['id']},'raw':!![]})[_0x2ed1cf('0x47')](function(_0x529bb4){const _0x34aa7f=_0x2ed1cf;_0x4df835=_[_0x34aa7f('0x3b')](_0x529bb4,function(_0x586f59){const _0x3db358=_0x34aa7f;return _0x586f59['enabled']===0x1||_[_0x3db358('0x8a')]([0x3eb,0x709],_0x586f59[_0x3db358('0xab')]);});if(!_[_0x34aa7f('0x6a')](_0x4df835))return _[_0x34aa7f('0xf')](_0x4df835,function(_0x401d3d){const _0x526306=_0x34aa7f;return _0x401d3d[_0x526306('0xab')];});else return;})['then'](function(_0x43ed77){const _0x12ed7c=_0x2ed1cf;if(_0x43ed77)_0x1e7985=_0x43ed77;if(_[_0x12ed7c('0x8a')](_0x1e7985,0x64)){const _0x1f6a18=_['find'](_0x4df835,{'sectionId':0x64});return hasDefaultDashboard(_0x1f6a18)['then'](function(_0x4dd7c2){const _0x3af9f8=_0x12ed7c;return _[_0x3af9f8('0xf')](_0x4df835,function(_0x147c7d){const _0x40e0a6=_0x3af9f8;return _0x147c7d[_0x40e0a6('0xab')]===0x64&&(_0x147c7d[_0x40e0a6('0x3')]=_0x4dd7c2),_0x147c7d;});});}else return;})[_0x2ed1cf('0x47')](function(_0x3fffd3){const _0x388aec=_0x2ed1cf;if(_0x3fffd3)_0x4df835=_0x3fffd3;if(_['includes'](_0x1e7985,0x3eb)){const _0x890792=_['find'](_0x4df835,{'sectionId':0x3eb});return getCustomDashboards(_0x890792)[_0x388aec('0x47')](function(_0x26d401){const _0x1b40fd=_0x388aec;return _[_0x1b40fd('0xf')](_0x4df835,function(_0xcec944){const _0x52d151=_0x1b40fd;return _0x890792[_0x52d151('0x63')]?_0xcec944[_0x52d151('0xab')]===0x3eb&&(_0xcec944[_0x52d151('0x3')]=_0x26d401):_0xcec944[_0x52d151('0xab')]===0x64&&(_0xcec944[_0x52d151('0x3')]=_0x26d401),_0xcec944;});});}else return;})[_0x2ed1cf('0x47')](function(_0x506031){const _0xd2a6c2=_0x2ed1cf;if(_0x506031)_0x4df835=_0x506031;if(_[_0xd2a6c2('0x8a')](_0x1e7985,0x709)){const _0x2b2bed=_[_0xd2a6c2('0x2f')](_0x4df835,{'sectionId':0x709});return getPlugins(_0x2b2bed)[_0xd2a6c2('0x47')](function(_0x3ee711){const _0x2cf603=_0xd2a6c2;if(_0x2b2bed[_0x2cf603('0x63')])return _[_0x2cf603('0xf')](_0x4df835,function(_0x2277d8){const _0x527ed0=_0x2cf603;return _0x2277d8['sectionId']===0x709&&(_0x2277d8[_0x527ed0('0x3')]=_0x3ee711),_0x2277d8;});else{const _0x5a98aa={'sectionId':0x76c,'enabled':0x1,'subsections':_0x3ee711},_0x34f197=_['map'](_0x4df835);return _0x34f197[_0x2cf603('0xba')](_0x5a98aa),_0x34f197;}});}else return;})['then'](function(_0x586092){const _0x3845a1=_0x2ed1cf;if(_0x586092)_0x4df835=_0x586092;return _['filter'](_0x4df835,[_0x3845a1('0x63'),0x1]);})['then'](respondWithResult(_0x37ad03,null))[_0x2ed1cf('0x95')](handleError(_0x37ad03,null));};function hasDefaultDashboard(_0x1d6bb7){const _0x3b7b49=[0x65];return new Promise(function(_0x3dc8eb,_0x30b0a5){const _0x59d3dd=a667_0x45f9;try{if(_0x1d6bb7[_0x59d3dd('0xa')])_0x3dc8eb(_0x3b7b49);else return db[_0x59d3dd('0x15')][_0x59d3dd('0xb')]({'where':{'sectionId':_0x1d6bb7['id']},'raw':!![]})['then'](function(_0x36c8d7){_0x36c8d7?_0x3dc8eb(_0x3b7b49):_0x3dc8eb();});}catch(_0x12550a){_0x30b0a5(_0x12550a);}});}function getCustomDashboards(_0xcffadc){const _0x590c31=[];return new Promise(function(_0x40498d,_0x1ad9c5){const _0x337102=a667_0x45f9;try{return _0xcffadc[_0x337102('0xa')]?db[_0x337102('0x41')]['findAll']({'raw':!![]})[_0x337102('0x47')](function(_0x24c239){const _0x325e99=_0x337102;_0x24c239[_0x325e99('0x4e')](function(_0x816721){const _0x1a2559=_0x325e99;_0x590c31[_0x1a2559('0xba')](_0x816721['id']+0x1869f);}),_0x40498d(_0x590c31);}):db[_0x337102('0x15')][_0x337102('0x22')]({'where':{'sectionId':_0xcffadc['id']},'raw':!![]})[_0x337102('0x47')](function(_0x594086){const _0x5f56f1=_0x337102;_0x594086[_0x5f56f1('0x4e')](function(_0x45b452){const _0x579c72=_0x5f56f1;_0x590c31[_0x579c72('0xba')](_0x45b452['resourceId']+0x1869f);}),_0x40498d(_0x590c31);});}catch(_0x21f9cb){_0x1ad9c5(_0x21f9cb);}});}function getPlugins(_0x1ab4dd){const _0x10c2be=[];return new Promise(function(_0x50940b,_0x339d00){const _0x52a3f0=a667_0x45f9;try{return _0x1ab4dd[_0x52a3f0('0xa')]?db['Plugin'][_0x52a3f0('0x22')]({'raw':!![]})[_0x52a3f0('0x47')](function(_0x1ce39f){const _0x33959d=_0x52a3f0;_0x1ce39f[_0x33959d('0x4e')](function(_0x586c0d){const _0x3c737a=_0x33959d;_0x10c2be[_0x3c737a('0xba')](_0x586c0d['id']+0x15b38);}),_0x50940b(_0x10c2be);}):db['UserProfileResource']['findAll']({'where':{'sectionId':_0x1ab4dd['id']},'raw':!![]})['then'](function(_0x482834){const _0x27632b=_0x52a3f0;_0x482834[_0x27632b('0x4e')](function(_0x1d91d7){const _0x29f95b=_0x27632b;_0x10c2be[_0x29f95b('0xba')](_0x1d91d7[_0x29f95b('0xaf')]+0x15b38);}),_0x50940b(_0x10c2be);});}catch(_0x1afbbe){_0x339d00(_0x1afbbe);}});}exports['addResources']=function(_0x3ae034,_0xd8ae46){const _0x2a3cb6=_0x388572;return db[_0x2a3cb6('0x6f')][_0x2a3cb6('0xb')]({'where':{'id':_0x3ae034['params']['id']}})[_0x2a3cb6('0x47')](handleEntityNotFound(_0xd8ae46))[_0x2a3cb6('0x47')](function(_0x4cd6c2){const _0x4e12b6=_0x2a3cb6;if(_0x4cd6c2)return db[_0x4e12b6('0x3a')]['transaction'](function(_0x251de0){const _0x566f8f=_0x4e12b6;return db[_0x566f8f('0x4f')][_0x566f8f('0x22')]({'where':{'userProfileId':_0x3ae034[_0x566f8f('0xa6')]['id']},'attributes':['id'],'raw':!![]})[_0x566f8f('0x47')](function(_0xba8869){const _0x2e89a4=_0x566f8f;if(_0xba8869)return db['UserProfileSection'][_0x2e89a4('0x5')]({'where':{'userProfileId':_0x3ae034[_0x2e89a4('0xa6')]['id'],'id':_[_0x2e89a4('0xf')](_0xba8869,function(_0x38ed67){return _0x38ed67['id'];})},'transaction':_0x251de0});})[_0x566f8f('0x47')](function(){const _0x1e77c4=_0x566f8f,_0x420374=_[_0x1e77c4('0xf')](_0x3ae034[_0x1e77c4('0x99')],function(_0x430805){return _0x430805['userProfileId']=_0x3ae034['params']['id'],_0x430805;});return db['UserProfileSection'][_0x1e77c4('0x1c')](_0x420374,{'raw':!![],'transaction':_0x251de0});})[_0x566f8f('0x47')](function(_0x35785b){const _0x378fcd=_0x566f8f,_0x533fbc=_['filter'](_[_0x378fcd('0xf')](_0x35785b,function(_0x55d411){const _0x178541=_0x378fcd;return _0x55d411[_0x178541('0x9a')]({'plain':!![]});}),{'includeAll':![]});if(_0x533fbc)return db[_0x378fcd('0x4f')][_0x378fcd('0x22')]({'where':{'userProfileId':_0x3ae034[_0x378fcd('0xa6')]['id'],'sectionId':_[_0x378fcd('0xf')](_0x533fbc,function(_0x108fd5){return _0x108fd5['sectionId'];})},'attributes':['id',_0x378fcd('0xab')],'raw':!![]})[_0x378fcd('0x47')](function(){const _0xafc4eb=_0x378fcd,_0x44fe0c=_[_0xafc4eb('0xf')](_0x3ae034[_0xafc4eb('0x99')],function(_0x55ca62){const _0x48899d=_0xafc4eb;return _0x55ca62[_0x48899d('0x3e')]=_0x3ae034[_0x48899d('0xa6')]['id'],_0x55ca62;});return db[_0xafc4eb('0x15')][_0xafc4eb('0x1c')](_0x44fe0c,{'raw':!![],'transaction':_0x251de0});});})[_0x566f8f('0x95')](handleError(_0xd8ae46,null));});})['then'](function(){})['then'](respondWithResult(_0xd8ae46,null))[_0x2a3cb6('0x95')](handleError(_0xd8ae46,null));},exports[_0x388572('0x50')]=function(_0x42b0a2,_0x2ef3c2){const _0x513af0=_0x388572;return db['UserProfile']['findOne']({'where':{'id':_0x42b0a2['params']['id']}})['then'](handleEntityNotFound(_0x2ef3c2))['then'](function(_0x30ea0f){const _0x8f2e24=a667_0x45f9;if(_0x30ea0f)return _0x30ea0f[_0x8f2e24('0x50')](_0x42b0a2[_0x8f2e24('0xb3')][_0x8f2e24('0x5f')]);})[_0x513af0('0x47')](respondWithStatusCode(_0x2ef3c2,null))[_0x513af0('0x95')](handleError(_0x2ef3c2,null));},exports[_0x388572('0x1e')]=function(_0x255c70,_0x1d585f){const _0x50801e=_0x388572;let _0x52d4bb={'raw':![],'where':{}};const _0x30fd4c={},_0x2011a8={'count':0x0,'rows':[]},_0x13f13d=_0x255c70[_0x50801e('0xb3')][_0x50801e('0x48')];if(typeof _0x13f13d===_0x50801e('0x7f'))throw new ValidationError(_0x50801e('0x25'));const _0x4583e6=_0x255c70[_0x50801e('0xb3')][_0x50801e('0xad')]||![],_0x482633=getQueryModels(_0x13f13d,_0x4583e6);if(typeof _0x482633[_0x50801e('0x54')]===_0x50801e('0x7f'))throw new ValidationError(_0x50801e('0x64')+_0x13f13d+'\x27');let _0x5da71d=[];return!_[_0x50801e('0x6a')](_0x482633[_0x50801e('0xa8')])?_0x5da71d=_0x482633['parentSections']:_0x5da71d=[{'name':_0x13f13d}],db['UserProfile'][_0x50801e('0xb')]({'where':{'id':_0x255c70[_0x50801e('0xa6')]['id']}})[_0x50801e('0x47')](handleEntityNotFound(_0x1d585f))[_0x50801e('0x47')](function(_0x2caf59){const _0x33c24e=_0x50801e;if(_0x2caf59){const _0x143810=[];for(let _0x598bca=0x0;_0x598bca<_0x5da71d[_0x33c24e('0x51')];_0x598bca++){_0x143810[_0x33c24e('0xba')](db[_0x33c24e('0x4f')][_0x33c24e('0xb')]({'where':{'userProfileId':_0x2caf59['id'],'name':_0x5da71d[_0x598bca][_0x33c24e('0x57')]},'raw':!![]}));}return Promise[_0x33c24e('0xa5')](_0x143810);}})[_0x50801e('0x47')](function(_0x1fa079){const _0x341e6d=_0x50801e,_0x5e8d37=_[_0x341e6d('0x3b')](_0x1fa079,function(_0x4b3215){return _0x4b3215?_0x4b3215:undefined;}),_0x1b417e=_[_0x341e6d('0x3b')](_0x5da71d,[_0x341e6d('0x5c'),!![]]),_0x4b2069=_[_0x341e6d('0x6a')](_0x5e8d37)&&_['isEmpty'](_0x1b417e)?null:_['union'](_0x1b417e,_0x5e8d37);if(_0x4b2069){const _0x1242c0=[];for(let _0x51474b=0x0;_0x51474b<_0x4b2069[_0x341e6d('0x51')];_0x51474b++){const _0x2e69ec=_[_0x341e6d('0x2f')](_0x5da71d,function(_0x3ae72f){return _0x4b2069[_0x51474b]?_0x3ae72f['name']===_0x4b2069[_0x51474b]['name']:null;});_0x2e69ec&&(_0x4b2069[_0x51474b][_0x341e6d('0x5c')]?_0x1242c0[_0x341e6d('0xba')](getAllResources(_0x482633[_0x341e6d('0x54')],_0x4b2069[_0x51474b])):!_0x4b2069[_0x51474b]['autoAssociation']?_0x1242c0[_0x341e6d('0xba')](getAllowedResources(_0x2e69ec,_0x4b2069[_0x51474b],_0x482633[_0x341e6d('0x54')])):_0x2e69ec[_0x341e6d('0x38')]&&_0x1242c0['push'](getAllFilteredResources(_0x2e69ec,_0x4b2069[_0x51474b])));}return Promise[_0x341e6d('0xa5')](_0x1242c0);}else return null;})[_0x50801e('0x47')](function(_0x50a5f5){const _0x41aa91=_0x50801e,_0x2351ba=_0x50a5f5;let _0x25d384=null;_0x2351ba&&(_0x25d384=_0x2351ba[_0x41aa91('0x51')]===0x1?_0x2351ba[0x0]:null);if(_0x25d384||_0x2351ba){const _0x42bc1f=db[_0x482633[_0x41aa91('0x54')]][_0x41aa91('0x8f')];_0x30fd4c[_0x41aa91('0x38')]=_['keys'](_0x42bc1f),_0x30fd4c[_0x41aa91('0xb3')]=_[_0x41aa91('0xb2')](_0x255c70[_0x41aa91('0xb3')]),_0x30fd4c['filters']=_[_0x41aa91('0x37')](_0x30fd4c[_0x41aa91('0x38')],_0x30fd4c[_0x41aa91('0xb3')]),_0x52d4bb[_0x41aa91('0x81')]=_[_0x41aa91('0x37')](_0x30fd4c[_0x41aa91('0x38')],qs[_0x41aa91('0xaa')](_0x255c70['query']['fields'])),_0x52d4bb[_0x41aa91('0x81')]=_0x52d4bb['attributes'][_0x41aa91('0x51')]?_0x52d4bb[_0x41aa91('0x81')]:_0x30fd4c['model'];typeof _0x255c70[_0x41aa91('0xb3')][_0x41aa91('0x2e')]===_0x41aa91('0x7f')&&(_0x52d4bb[_0x41aa91('0x62')]=qs[_0x41aa91('0x62')](_0x255c70[_0x41aa91('0xb3')][_0x41aa91('0x62')]),_0x52d4bb[_0x41aa91('0xb5')]=qs[_0x41aa91('0xb5')](_0x255c70['query'][_0x41aa91('0xb5')]));_0x52d4bb[_0x41aa91('0x60')]=qs[_0x41aa91('0x7d')](_0x255c70[_0x41aa91('0xb3')]['sort']),_0x52d4bb[_0x41aa91('0x1d')]=qs[_0x41aa91('0x97')](_[_0x41aa91('0x84')](_0x255c70['query'],_0x30fd4c['filters']));_0x255c70[_0x41aa91('0xb3')][_0x41aa91('0x3b')]&&(_0x52d4bb['where']=_['merge'](_0x52d4bb[_0x41aa91('0x1d')],{[Op['or']]:_['map'](_0x42bc1f,function(_0x44fad7){const _0x9b2fbd=_0x41aa91;if(_0x44fad7[_0x9b2fbd('0x21')][_0x9b2fbd('0xe')]!=='VIRTUAL'){const _0x2cc41d={};return _0x2cc41d[_0x44fad7['field']]={[Op['like']]:'%'+_0x255c70[_0x9b2fbd('0xb3')][_0x9b2fbd('0x3b')]+'%'},_0x2cc41d;}})}));const _0x418478=[];if(_0x25d384){const _0x48af58=_[_0x41aa91('0x2f')](_0x5da71d,[_0x41aa91('0x57'),_0x25d384[_0x41aa91('0x57')]]);if(_0x48af58['field']){const _0x533e14={};_0x482633[_0x41aa91('0x54')]===_0x41aa91('0x98')?_0x533e14[_0x48af58['foreignKey']]=_[_0x41aa91('0xf')](_0x25d384[_0x41aa91('0xa3')],'id'):_0x533e14[_0x48af58[_0x41aa91('0x89')]]=_0x25d384[_0x41aa91('0xa3')],_0x418478[_0x41aa91('0xba')](_0x533e14);}else _0x52d4bb[_0x41aa91('0x1d')]['id']=_0x25d384[_0x41aa91('0xa3')];}else for(let _0x2df82e=0x0;_0x2df82e<_0x2351ba[_0x41aa91('0x51')];_0x2df82e++){const _0x1bce70=_[_0x41aa91('0x2f')](_0x5da71d,[_0x41aa91('0x57'),_0x2351ba[_0x2df82e][_0x41aa91('0x57')]]);if(_0x1bce70[_0x41aa91('0x43')]){const _0x50ac67={};_0x50ac67[_0x1bce70[_0x41aa91('0x89')]]=_0x2351ba[_0x2df82e][_0x41aa91('0xa3')],_0x418478[_0x41aa91('0xba')](_0x50ac67);}else{if(!_0x52d4bb[_0x41aa91('0x1d')]['id'])_0x52d4bb[_0x41aa91('0x1d')]['id']=[];_0x2351ba[_0x2df82e]['associatedResources'][_0x41aa91('0x4e')](function(_0x6e747c){const _0x265837=_0x41aa91;_0x52d4bb[_0x265837('0x1d')]['id'][_0x265837('0xba')](_0x6e747c);});}}return!_[_0x41aa91('0x6a')](_0x418478)&&(_0x52d4bb[_0x41aa91('0x1d')]=_[_0x41aa91('0x9')](_0x52d4bb[_0x41aa91('0x1d')],{[Op['and']]:{[Op['or']]:_0x418478}})),_0x52d4bb=_[_0x41aa91('0x9')]({},_0x52d4bb,_0x255c70[_0x41aa91('0x8e')]),_0x25d384&&!_0x25d384[_0x41aa91('0xa')]&&_0x482633[_0x41aa91('0x54')]===_0x41aa91('0x98')?(_0x255c70[_0x41aa91('0xb3')][_0x41aa91('0x69')]&&(_0x52d4bb[_0x41aa91('0x88')]=[{'all':!![]}]),db[_0x482633[_0x41aa91('0x54')]][_0x41aa91('0x22')](_0x52d4bb)[_0x41aa91('0x47')](function(_0x41166d){const _0x62ece9=_0x41aa91,_0xf8e3b9=[];return _0x41166d[_0x62ece9('0x4e')](function(_0x32eab8){const _0x29d0cc=_0x62ece9;let _0x12cca0;switch(_0x32eab8['reportType']){case _0x29d0cc('0x1'):_0x12cca0=_['find'](_0x25d384[_0x29d0cc('0xa3')],function(_0xc42ea1){const _0xd07d9c=_0x29d0cc;return _0xc42ea1['id']===_0x32eab8[_0xd07d9c('0x82')]&&_0xc42ea1[_0xd07d9c('0x21')]===_0xd07d9c('0xa1');});break;case'custom':_0x12cca0=_[_0x29d0cc('0x2f')](_0x25d384[_0x29d0cc('0xa3')],function(_0x588972){const _0xe10aca=_0x29d0cc;return _0x588972['id']===_0x32eab8[_0xe10aca('0x82')]&&_0x588972[_0xe10aca('0x21')]===_0xe10aca('0x91');});break;}if(_0x12cca0)_0xf8e3b9[_0x29d0cc('0xba')](_0x32eab8);}),_0x2011a8['count']=_0xf8e3b9[_0x62ece9('0x51')],_0x2011a8['rows']=_0xf8e3b9,_0x2011a8;})):db[_0x482633[_0x41aa91('0x54')]][_0x41aa91('0x67')]({'where':_0x52d4bb['where']})[_0x41aa91('0x47')](function(_0x1e1581){const _0x408933=_0x41aa91;return _0x2011a8[_0x408933('0x67')]=_0x1e1581,_0x255c70[_0x408933('0xb3')][_0x408933('0x69')]&&(_0x482633[_0x408933('0x54')]===_0x408933('0xa0')?_0x52d4bb['include']=[{'model':db[_0x408933('0x6d')],'as':_0x408933('0x80'),'attributes':['id',_0x408933('0x57'),'color'],'required':_0x255c70[_0x408933('0xb3')]['tag']?!![]:![]},{'model':db['Tag'],'as':_0x408933('0xbc'),'attributes':['id',_0x408933('0x57'),'color'],'through':_0x255c70[_0x408933('0xb3')][_0x408933('0x49')]?{'attributes':[],'where':{'TagId':_0x255c70[_0x408933('0xb3')][_0x408933('0x49')]||undefined}}:{},'required':_0x255c70[_0x408933('0xb3')]['tag']?!![]:![]}]:_0x52d4bb[_0x408933('0x88')]=[{'all':!![]}]),db[_0x482633[_0x408933('0x54')]]['findAll'](_0x52d4bb);})[_0x41aa91('0x47')](function(_0x107f4d){const _0x4ea8dd=_0x41aa91;return _0x2011a8[_0x4ea8dd('0xac')]=_0x107f4d,_0x2011a8;});}else return _0x2011a8;})['then'](respondWithFilteredResult(_0x1d585f,_0x52d4bb))[_0x50801e('0x95')](handleError(_0x1d585f,null));};function getAllResources(_0x489631,_0x384943){return new Promise(function(_0xd1b770,_0x527313){const _0x5189b8=a667_0x45f9;if(_0x384943){const _0x5f5de3=_0x384943[_0x5189b8('0x3b')]?{[_0x384943[_0x5189b8('0x3b')][_0x5189b8('0x43')]]:_0x384943[_0x5189b8('0x3b')][_0x5189b8('0x1f')]}:undefined;return db[_0x489631][_0x5189b8('0x22')]({'where':_0x5f5de3,'raw':!![]})[_0x5189b8('0x47')](function(_0x532f80){const _0x590636=_0x5189b8;_0x384943[_0x590636('0xa3')]=_[_0x590636('0xf')](_0x532f80,'id'),_0xd1b770(_0x384943);})[_0x5189b8('0x95')](function(_0x623bba){_0x527313(_0x623bba);});}else _0xd1b770(null);});}function getAllFilteredResources(_0x137026,_0x562d68){return new Promise(function(_0x346c8b,_0x1e3b0f){const _0x3de20b=a667_0x45f9,_0xa93fca=_0x137026[_0x3de20b('0x3b')]?{[_0x137026['filter'][_0x3de20b('0x43')]]:_0x137026[_0x3de20b('0x3b')][_0x3de20b('0x1f')]}:undefined;return db[_0x137026[_0x3de20b('0x38')]][_0x3de20b('0x22')]({'where':_0xa93fca,'raw':!![]})[_0x3de20b('0x47')](function(_0x1fbde1){const _0x41870e=_0x3de20b;_0x562d68[_0x41870e('0xa3')]=_[_0x41870e('0xf')](_0x1fbde1,function(_0x34ca41){const _0x9c7f7=_0x41870e;return _0x34ca41[_0x9c7f7('0x57')];}),_0x346c8b(_0x562d68);})[_0x3de20b('0x95')](function(_0x26ae66){_0x1e3b0f(_0x26ae66);});});}function getAllowedResources(_0x38dd60,_0x3fec0e,_0x7a0310){return new Promise(function(_0x5dab35,_0x45db15){const _0x3ec8df=a667_0x45f9;if(_0x3fec0e)return db[_0x3ec8df('0x15')][_0x3ec8df('0x22')]({'where':{'sectionId':_0x3fec0e['id']},'raw':!![]})[_0x3ec8df('0x47')](function(_0x523c9a){const _0x32e23b=_0x3ec8df;_0x38dd60[_0x32e23b('0x43')]&&_0x38dd60['field']!=='id'?_0x3fec0e[_0x32e23b('0xa3')]=_[_0x32e23b('0xf')](_0x523c9a,function(_0x381971){return _0x381971[_0x38dd60['field']];}):_0x7a0310===_0x32e23b('0x98')?_0x3fec0e[_0x32e23b('0xa3')]=_[_0x32e23b('0xf')](_0x523c9a,function(_0x345e20){const _0x49122e=_0x32e23b;return{'id':_0x345e20[_0x49122e('0xaf')],'type':_0x345e20[_0x49122e('0x21')]};}):_0x3fec0e[_0x32e23b('0xa3')]=_['map'](_0x523c9a,function(_0x3f0c9c){const _0x1c4d36=_0x32e23b;return _0x3f0c9c[_0x1c4d36('0xaf')];}),_0x5dab35(_0x3fec0e);})['catch'](function(_0x22862b){_0x45db15(_0x22862b);});else _0x5dab35(null);});}function getQueryModels(_0x3b3e56,_0x3a256b){const _0x2f0f2a=_0x388572,_0x25e7e7=_0x3b3e56[_0x2f0f2a('0x44')](),_0x54ab1d={'childModel':undefined,'parentSections':[]};switch(_0x25e7e7){case _0x2f0f2a('0xc5'):_0x54ab1d['childModel']=_0x2f0f2a('0xa9');break;case _0x2f0f2a('0x30'):_0x54ab1d[_0x2f0f2a('0x54')]=_0x2f0f2a('0x9f');break;case _0x2f0f2a('0x94'):_0x54ab1d[_0x2f0f2a('0x54')]='SquareRecording',_0x54ab1d['parentSections']=[{'name':_0x2f0f2a('0xc3'),'field':'name','foreignKey':_0x2f0f2a('0x2b')}];break;case _0x2f0f2a('0x8c'):_0x54ab1d[_0x2f0f2a('0x54')]=_0x2f0f2a('0x16');break;case'contacts':_0x54ab1d[_0x2f0f2a('0x54')]=_0x2f0f2a('0xa0'),_0x54ab1d[_0x2f0f2a('0xa8')]=[{'name':_0x2f0f2a('0x13'),'field':'id','foreignKey':'ListId'}];break;case'lists':_0x54ab1d['childModel']=_0x2f0f2a('0x3f');break;case _0x2f0f2a('0xa4'):_0x54ab1d[_0x2f0f2a('0x54')]=_0x2f0f2a('0x33');break;case _0x2f0f2a('0xc7'):_0x54ab1d[_0x2f0f2a('0x54')]=_0x2f0f2a('0x8d');break;case _0x2f0f2a('0x9e'):_0x54ab1d[_0x2f0f2a('0x54')]='ChatQueue';break;case'chatwebsites':_0x54ab1d['childModel']=_0x2f0f2a('0x5a');break;case _0x2f0f2a('0x4d'):_0x54ab1d[_0x2f0f2a('0x54')]=_0x2f0f2a('0x42');break;case _0x2f0f2a('0xc9'):_0x54ab1d[_0x2f0f2a('0x54')]=_0x2f0f2a('0x52');break;case _0x2f0f2a('0x2a'):case _0x2f0f2a('0xc8'):case _0x2f0f2a('0x86'):_0x54ab1d['childModel']=_0x2f0f2a('0x35');break;case _0x2f0f2a('0xbb'):_0x54ab1d[_0x2f0f2a('0x54')]=_0x2f0f2a('0x83');break;case'voicemails':_0x54ab1d[_0x2f0f2a('0x54')]=_0x2f0f2a('0x1b');break;case _0x2f0f2a('0x96'):_0x54ab1d[_0x2f0f2a('0x54')]=_0x2f0f2a('0xc1'),_0x54ab1d[_0x2f0f2a('0xa8')]=[{'name':_0x2f0f2a('0xb6'),'field':_0x2f0f2a('0x57'),'foreignKey':'membername','model':'User','filter':{'field':_0x2f0f2a('0x3d'),'value':[_0x2f0f2a('0x5d')]}},{'name':_0x2f0f2a('0x70'),'field':_0x2f0f2a('0x57'),'foreignKey':_0x2f0f2a('0x18'),'model':_0x2f0f2a('0x55'),'filter':{'field':'role','value':[_0x2f0f2a('0x9b')]}},{'name':_0x2f0f2a('0x36'),'field':_0x2f0f2a('0x57'),'foreignKey':_0x2f0f2a('0x34'),'model':'VoiceQueue','filter':{'field':'type','value':[_0x2f0f2a('0x58')]}},{'name':'QueueCampaigns','field':_0x2f0f2a('0x57'),'foreignKey':_0x2f0f2a('0x34'),'model':'VoiceQueue','filter':{'field':'type','value':[_0x2f0f2a('0xc0')]}}];break;case _0x2f0f2a('0xbe'):_0x54ab1d['childModel']='VoiceMusicOnHold';break;case _0x2f0f2a('0x59'):_0x54ab1d[_0x2f0f2a('0x54')]=_0x2f0f2a('0x5e');break;case'voiceprefixes':_0x54ab1d['childModel']=_0x2f0f2a('0x1a');break;case _0x2f0f2a('0x11'):_0x54ab1d[_0x2f0f2a('0x54')]='Campaign';break;case _0x2f0f2a('0x27'):_0x54ab1d['childModel']=_0x2f0f2a('0x7a');break;case _0x2f0f2a('0x92'):_0x54ab1d[_0x2f0f2a('0x54')]=_0x2f0f2a('0x53');break;case _0x2f0f2a('0x40'):_0x54ab1d[_0x2f0f2a('0x54')]=_0x2f0f2a('0xae');break;case'openchannelqueues':_0x54ab1d['childModel']='OpenchannelQueue';break;case _0x2f0f2a('0x6'):_0x54ab1d[_0x2f0f2a('0x54')]=_0x2f0f2a('0x78');break;case _0x2f0f2a('0xa2'):_0x54ab1d['childModel']=_0x2f0f2a('0xa7');break;case _0x2f0f2a('0x12'):_0x54ab1d[_0x2f0f2a('0x54')]='SmsAccount';break;case'whatsappqueues':_0x54ab1d[_0x2f0f2a('0x54')]=_0x2f0f2a('0x3c');break;case _0x2f0f2a('0xc'):_0x54ab1d[_0x2f0f2a('0x54')]=_0x2f0f2a('0x9c');break;case'teams':_0x54ab1d['childModel']=_0x2f0f2a('0x6e');break;case _0x2f0f2a('0xc6'):case _0x2f0f2a('0xb8'):_0x54ab1d['childModel']=_0x2f0f2a('0x24');_0x3a256b&&(_0x54ab1d[_0x2f0f2a('0xa8')]=[{'name':_0x2f0f2a('0x36')},{'name':_0x2f0f2a('0x31')}]);break;case _0x2f0f2a('0xc4'):case _0x2f0f2a('0x19'):case _0x2f0f2a('0x39'):_0x54ab1d[_0x2f0f2a('0x54')]=_0x2f0f2a('0x55');_0x3a256b&&(_0x54ab1d[_0x2f0f2a('0xa8')]=[{'name':_0x2f0f2a('0x20'),'filter':{'field':_0x2f0f2a('0x3d'),'value':[_0x2f0f2a('0xcc'),'user']},'ignore':!![]},{'name':_0x2f0f2a('0xb6')},{'name':_0x2f0f2a('0x70')}]);break;case _0x2f0f2a('0xbd'):_0x54ab1d['childModel']=_0x2f0f2a('0xb4');break;case _0x2f0f2a('0x90'):_0x54ab1d[_0x2f0f2a('0x54')]=_0x2f0f2a('0x74');break;case _0x2f0f2a('0x7e'):_0x54ab1d[_0x2f0f2a('0x54')]='FreshdeskAccount';break;case _0x2f0f2a('0x7c'):_0x54ab1d[_0x2f0f2a('0x54')]='SugarcrmAccount';break;case _0x2f0f2a('0x87'):_0x54ab1d[_0x2f0f2a('0x54')]=_0x2f0f2a('0x6b');break;case _0x2f0f2a('0x5b'):_0x54ab1d['childModel']=_0x2f0f2a('0xc2');break;case _0x2f0f2a('0x46'):_0x54ab1d[_0x2f0f2a('0x54')]=_0x2f0f2a('0x55');break;case _0x2f0f2a('0x79'):_0x54ab1d[_0x2f0f2a('0x54')]='CannedAnswer';break;case _0x2f0f2a('0x2'):_0x54ab1d[_0x2f0f2a('0x54')]=_0x2f0f2a('0xd');break;case _0x2f0f2a('0x4c'):_0x54ab1d[_0x2f0f2a('0x54')]=_0x2f0f2a('0x41');break;case'intervals':_0x54ab1d[_0x2f0f2a('0x54')]='Interval';break;case _0x2f0f2a('0x7b'):_0x54ab1d[_0x2f0f2a('0x54')]='Pause';break;case'scheduler':_0x54ab1d[_0x2f0f2a('0x54')]=_0x2f0f2a('0x28');break;case _0x2f0f2a('0x17'):_0x54ab1d['childModel']='Sound';break;case _0x2f0f2a('0x65'):_0x54ab1d['childModel']=_0x2f0f2a('0x6d');break;case _0x2f0f2a('0x85'):_0x54ab1d[_0x2f0f2a('0x54')]=_0x2f0f2a('0x66');break;case'triggers':_0x54ab1d[_0x2f0f2a('0x54')]=_0x2f0f2a('0x26');break;case _0x2f0f2a('0x23'):_0x54ab1d[_0x2f0f2a('0x54')]=_0x2f0f2a('0x29');break;case'variables':_0x54ab1d[_0x2f0f2a('0x54')]=_0x2f0f2a('0x72');break;case'plugins':_0x54ab1d[_0x2f0f2a('0x54')]=_0x2f0f2a('0x76');break;case _0x2f0f2a('0x93'):_0x54ab1d[_0x2f0f2a('0x54')]=_0x2f0f2a('0x98'),_0x54ab1d[_0x2f0f2a('0xa8')]=[{'name':_0x2f0f2a('0x77'),'field':'id','foreignKey':_0x2f0f2a('0x82')}];break;case _0x2f0f2a('0x2d'):_0x54ab1d['childModel']=_0x2f0f2a('0x4a');break;default:return _0x54ab1d;}return _0x54ab1d;} \ No newline at end of file +const a799_0x3c01=['filter','autoAssociation','SugarcrmAccount','squarerecordings','Agents','fields','FreshdeskAccount','Template','mailsubstatuses','cannedanswers','VoiceMusicOnHold','resourceId','Lists','smsaccounts','Unknown\x20section','Interval','options','stack','all','userProfileId','describe','json','voicemails','Dashboard','foreignKey','includeAll','VoiceContext','findAll','Tag','addResources','Trunk','customdashboards','UserProfileSection','faxqueues','globalcustomfields','clone','removeSections','SalesforceAccount','parentSections','teams','CmCompany','childModel','subsections','projectName','send','AnalyticMetric','openchannelqueues','agent','sounds','sectionId','Reports','VoiceQueue','custom','WhatsappQueue','telephone','telephones','FaxAccount','ZendeskAccount','deskaccounts','role','name','vtigeraccounts','associatedResources','metrics','odbc','tags','then','Telephones','faxaccounts','Tags','Sound','agents','ThroughTags','ivrcampaigns','create','updatedAt','value','find','findOne','forEach','merge','like','enabled','count','default','SquareProject','getResources','catch','SmsQueue','VoiceQueues','status','ids','end','field','type','index','mailaccounts','isEmpty','key','internalroutes','DeskAccount','Invalid\x20section\x20\x27','get','include','CannedAnswer','VIRTUAL','set','model','mergeResources','sort','triggers','attributes','Schedule','limit','lists','ignore','section','SquareOdbc','UserProfileResource','Resources','companies','pauses','Variable','admin','chanspies','destroy','FaxQueue','VoiceChanSpy','sendStatus','SmsAccount','rawAttributes','inbound','JscriptyProject','zohoaccounts','getSections','membername','tag','Users','push','toLowerCase','CmList','sequelize','filters','musiconholds','plugins','transaction','QueueCampaigns','UserProfile','voicequeues','error','union','intersection','params','openchannelaccounts','AnalyticExtractedReport','SquareRecording','trunks','offset','api','salesforceaccounts','crudPermissions','bulkCreate','length','MailSubstatus','rows','map','variables','removeResources','ChatWebsite','register','show','whatsappqueues','Content-Range','VoiceMail','ZohoAccount','query','order','color','CustomReports','mailqueues','update','CmCustomField','user','keys','extractedreports','body','reportId','User','omit','users','intervals','reportType','SquareProjects','CmContact','inboundroutes','createdAt','OpenchannelQueue','VoiceExtension','where','includes','../../mysqldb','Trigger'];(function(_0x36120c,_0x23348e){const _0x3c0190=function(_0x7d657e){while(--_0x7d657e){_0x36120c['push'](_0x36120c['shift']());}};_0x3c0190(++_0x23348e);}(a799_0x3c01,0x68));const a799_0x7d65=function(_0x36120c,_0x23348e){_0x36120c=_0x36120c-0xda;let _0x3c0190=a799_0x3c01[_0x36120c];return _0x3c0190;};const a799_0x3b4c25=a799_0x7d65;'use strict';const _=require('lodash'),qs=require('../../components/parsers/qs'),logger=require('../../config/logger')(a799_0x3b4c25(0x110)),{getSocket}=require('../../rediscache'),socket=getSocket(),{db}=require(a799_0x3b4c25(0x13a)),{Op,ValidationError}=require(a799_0x3b4c25(0xff));require('./userProfile.socket')[a799_0x3b4c25(0x11b)](socket);function respondWithStatusCode(_0x5372ef,_0x372e1e){return _0x372e1e=_0x372e1e||0xcc,function(_0x360d53){const _0x10652e=a799_0x7d65;if(_0x360d53)return _0x5372ef[_0x10652e(0xf2)](_0x372e1e);return _0x5372ef[_0x10652e(0x196)](_0x372e1e)[_0x10652e(0x198)]();};}function respondWithResult(_0xd398fe,_0x10b5b8){return _0x10b5b8=_0x10b5b8||0xc8,function(_0x209894){const _0x44a94d=a799_0x7d65;if(_0x209894)return _0xd398fe['status'](_0x10b5b8)[_0x44a94d(0x151)](_0x209894);};}function respondWithFilteredResult(_0x4e8c06,_0x516ff5){return function(_0x234adf){const _0x3876b7=a799_0x7d65;if(_0x234adf){const _0x41e84e=_0x234adf['count'],_0x1ce848=_0x516ff5[_0x3876b7(0x10f)];let _0x4c6f59=_0x516ff5[_0x3876b7(0x10f)]+_0x516ff5[_0x3876b7(0xe3)],_0x14be90;return _0x4c6f59>=_0x41e84e?(_0x4c6f59=_0x41e84e,_0x14be90=0xc8):_0x14be90=0xce,_0x4e8c06[_0x3876b7(0x196)](_0x14be90),_0x4e8c06[_0x3876b7(0xdc)](_0x3876b7(0x11e),_0x1ce848+'-'+_0x4c6f59+'/'+_0x41e84e)[_0x3876b7(0x151)](_0x234adf);}return null;};}function saveUpdates(_0x33e7cd){return function(_0x47baba){if(_0x47baba)return _0x47baba['update'](_0x33e7cd)['then'](function(_0x38fc1a){return _0x38fc1a;});return null;};}function removeEntity(_0x4b7b5a){return function(_0x536cdc){const _0x4d2b5c=a799_0x7d65;if(_0x536cdc)return _0x536cdc[_0x4d2b5c(0xef)]()['then'](function(){const _0x3d5611=_0x4d2b5c;_0x4b7b5a['status'](0xcc)[_0x3d5611(0x198)]();});};}function handleEntityNotFound(_0x3d1c2d){return function(_0x37b455){const _0x2ca996=a799_0x7d65;return!_0x37b455&&_0x3d1c2d[_0x2ca996(0xf2)](0x194),_0x37b455;};}function handleError(_0x5e8992,_0x26b831){return _0x26b831=_0x26b831||0x1f4,function(_0x43546d){const _0x1ebdf2=a799_0x7d65;logger[_0x1ebdf2(0x107)](_0x43546d[_0x1ebdf2(0x14d)]),_0x43546d[_0x1ebdf2(0x178)]&&delete _0x43546d[_0x1ebdf2(0x178)],_0x5e8992[_0x1ebdf2(0x196)](_0x26b831)[_0x1ebdf2(0x168)](_0x43546d);};}exports[a799_0x3b4c25(0x19b)]=function(_0x6690ab,_0x1ffd8d){const _0x228da4=a799_0x3b4c25;let _0x17a8cf={};const _0xbbf164={},_0x431513={'count':0x0,'rows':[]},_0x10cb46=_[_0x228da4(0x117)](db[_0x228da4(0x105)]['rawAttributes'],function(_0x332d5d){const _0xd17e40=_0x228da4;return{'name':_0x332d5d['fieldName'],'type':_0x332d5d[_0xd17e40(0x19a)][_0xd17e40(0x19e)]};});_0xbbf164[_0x228da4(0xdd)]=_[_0x228da4(0x117)](_0x10cb46,'name'),_0xbbf164[_0x228da4(0x121)]=_[_0x228da4(0x129)](_0x6690ab[_0x228da4(0x121)]),_0xbbf164['filters']=_[_0x228da4(0x109)](_0xbbf164['model'],_0xbbf164[_0x228da4(0x121)]),_0x17a8cf[_0x228da4(0xe1)]=_[_0x228da4(0x109)](_0xbbf164[_0x228da4(0xdd)],qs[_0x228da4(0x141)](_0x6690ab['query'][_0x228da4(0x141)])),_0x17a8cf[_0x228da4(0xe1)]=_0x17a8cf[_0x228da4(0xe1)]['length']?_0x17a8cf['attributes']:_0xbbf164[_0x228da4(0xdd)];typeof _0x6690ab[_0x228da4(0x121)]['nolimit']==='undefined'&&(_0x17a8cf[_0x228da4(0xe3)]=qs['limit'](_0x6690ab[_0x228da4(0x121)][_0x228da4(0xe3)]),_0x17a8cf[_0x228da4(0x10f)]=qs[_0x228da4(0x10f)](_0x6690ab['query'][_0x228da4(0x10f)]));_0x17a8cf['order']=qs[_0x228da4(0xdf)](_0x6690ab[_0x228da4(0x121)]['sort']),_0x17a8cf[_0x228da4(0x138)]=qs[_0x228da4(0x100)](_['pick'](_0x6690ab[_0x228da4(0x121)],_0xbbf164[_0x228da4(0x100)]),_0x10cb46);_0x6690ab['query'][_0x228da4(0x13c)]&&(_0x17a8cf['where']=_[_0x228da4(0x18c)](_0x17a8cf[_0x228da4(0x138)],{[Op['or']]:_['map'](_0x10cb46,function(_0x522aab){const _0x465353=_0x228da4;if(_0x522aab[_0x465353(0x19a)]!==_0x465353(0xdb)){const _0x6c82e8={};return _0x6c82e8[_0x522aab['name']]={[Op['like']]:'%'+_0x6690ab[_0x465353(0x121)][_0x465353(0x13c)]+'%'},_0x6c82e8;}})}));_0x17a8cf=_[_0x228da4(0x18c)]({},_0x17a8cf,_0x6690ab[_0x228da4(0x14c)]);const _0x2737e6={'where':_0x17a8cf[_0x228da4(0x138)]};return db[_0x228da4(0x105)]['count'](_0x2737e6)[_0x228da4(0x17e)](function(_0xb1bf7d){const _0x579f1b=_0x228da4;return _0x431513[_0x579f1b(0x18f)]=_0xb1bf7d,_0x6690ab[_0x579f1b(0x121)][_0x579f1b(0x155)]&&(_0x17a8cf[_0x579f1b(0x1a3)]=[{'all':!![]}]),db['UserProfile']['findAll'](_0x17a8cf);})['then'](function(_0x5ab5ce){const _0x5f1047=_0x228da4;return _0x431513[_0x5f1047(0x116)]=_0x5ab5ce,_0x431513;})[_0x228da4(0x17e)](respondWithFilteredResult(_0x1ffd8d,_0x17a8cf))[_0x228da4(0x193)](handleError(_0x1ffd8d,null));},exports[a799_0x3b4c25(0x11c)]=function(_0x49fcc9,_0x40f830){const _0x536086=a799_0x3b4c25;let _0x18facc={'raw':![],'where':{'id':_0x49fcc9[_0x536086(0x10a)]['id']}};const _0x3e550c={};return _0x3e550c[_0x536086(0xdd)]=_['keys'](db[_0x536086(0x105)][_0x536086(0xf4)]),_0x3e550c[_0x536086(0x121)]=_['keys'](_0x49fcc9['query']),_0x3e550c[_0x536086(0x100)]=_[_0x536086(0x109)](_0x3e550c[_0x536086(0xdd)],_0x3e550c[_0x536086(0x121)]),_0x18facc[_0x536086(0xe1)]=_[_0x536086(0x109)](_0x3e550c['model'],qs['fields'](_0x49fcc9['query'][_0x536086(0x141)])),_0x18facc[_0x536086(0xe1)]=_0x18facc[_0x536086(0xe1)][_0x536086(0x114)]?_0x18facc[_0x536086(0xe1)]:_0x3e550c['model'],_0x49fcc9[_0x536086(0x121)][_0x536086(0x155)]&&(_0x18facc['include']=[{'all':!![]}]),_0x18facc=_[_0x536086(0x18c)]({},_0x18facc,_0x49fcc9[_0x536086(0x14c)]),db[_0x536086(0x105)]['findOne'](_0x18facc)[_0x536086(0x17e)](handleEntityNotFound(_0x40f830))['then'](respondWithResult(_0x40f830,null))[_0x536086(0x193)](handleError(_0x40f830,null));},exports[a799_0x3b4c25(0x186)]=function(_0x2ac9c3,_0x4664ec){const _0x2d2191=a799_0x3b4c25;return db[_0x2d2191(0x105)]['create'](_0x2ac9c3[_0x2d2191(0x12b)],{})[_0x2d2191(0x17e)](respondWithResult(_0x4664ec,0xc9))[_0x2d2191(0x193)](handleError(_0x4664ec,null));},exports[a799_0x3b4c25(0x15f)]=function(_0x35b4eb,_0x490337){const _0x3a38eb=a799_0x3b4c25;let _0x31c327={'where':{'id':_0x35b4eb[_0x3a38eb(0x10a)]['id']}};const _0x59f840={};return _0x59f840[_0x3a38eb(0xdd)]=_[_0x3a38eb(0x129)](db[_0x3a38eb(0x105)][_0x3a38eb(0xf4)]),_0x31c327[_0x3a38eb(0xe1)]=_[_0x3a38eb(0x109)](_0x59f840[_0x3a38eb(0xdd)],qs[_0x3a38eb(0x141)](_0x35b4eb[_0x3a38eb(0x121)][_0x3a38eb(0x141)])),_0x31c327[_0x3a38eb(0xe1)]=_0x31c327[_0x3a38eb(0xe1)][_0x3a38eb(0x114)]?_0x31c327[_0x3a38eb(0xe1)]:_0x59f840[_0x3a38eb(0xdd)],_0x35b4eb[_0x3a38eb(0x121)][_0x3a38eb(0x155)]&&(_0x31c327[_0x3a38eb(0x1a3)]=[{'all':!![]}]),_0x31c327=_[_0x3a38eb(0x18c)]({},_0x31c327,_0x35b4eb[_0x3a38eb(0x14c)]),db[_0x3a38eb(0x105)]['findOne'](_0x31c327)['then'](handleEntityNotFound(_0x490337))[_0x3a38eb(0x17e)](function(_0x27ac07){const _0x4853ec=_0x3a38eb;if(_0x27ac07){let _0x3a3f55=_0x27ac07[_0x4853ec(0x1a2)]({'plain':!![]});return _0x3a3f55=qs[_0x4853ec(0x12e)](_0x3a3f55,['id',_0x4853ec(0x135),_0x4853ec(0x187),_0x4853ec(0x112)]),_0x35b4eb['body']=_['omit'](_0x35b4eb[_0x4853ec(0x12b)],['id',_0x4853ec(0x135),_0x4853ec(0x187)]),db['sequelize'][_0x4853ec(0x103)](function(_0x59881d){const _0x328ee6=_0x4853ec;return db[_0x328ee6(0x105)][_0x328ee6(0x186)](_[_0x328ee6(0x18c)](_0x3a3f55,_0x35b4eb[_0x328ee6(0x12b)]),{'include':_0x35b4eb[_0x328ee6(0x121)][_0x328ee6(0x155)]?[{'all':!![]}]:undefined,'transaction':_0x59881d})['then'](function(_0x3be718){const _0x31912f=_0x328ee6,_0x1c8030=_0x3be718[_0x31912f(0x1a2)]({'plain':!![]});return db[_0x31912f(0x15c)]['findAll']({'where':{'userProfileId':_0x35b4eb['params']['id']},'raw':!![]})[_0x31912f(0x17e)](function(_0x89d939){const _0x2f02a6=_0x31912f;if(_0x89d939)return Promise[_0x2f02a6(0x14e)](_0x89d939[_0x2f02a6(0x117)](_0x493e1b=>{const _0x5b66ff=_0x2f02a6;return new Promise(function(_0x2f2635,_0x43a54e){const _0x5727aa=a799_0x7d65;if(_0x493e1b['autoAssociation']===null||_0x493e1b['autoAssociation']===0x1)_0x2f2635(null);return db['UserProfileResource'][_0x5727aa(0x157)]({'where':{'sectionId':_0x493e1b['id']},'raw':!![]})['then'](function(_0x226929){const _0x3ce86b=_0x5727aa,_0x27c85d=_[_0x3ce86b(0x117)](_0x226929,function(_0x4de47d){const _0xefa225=_0x3ce86b;return qs[_0xefa225(0x12e)](_0x4de47d,['id',_0xefa225(0x135),_0xefa225(0x187),_0xefa225(0x16d)]);});_0x2f2635(_0x27c85d);})['catch'](function(_0x4d9da8){_0x43a54e(_0x4d9da8);});})[_0x5b66ff(0x17e)](function(_0x1904ce){const _0x4c88bd=_0x5b66ff,_0x13aa98=qs[_0x4c88bd(0x12e)](_0x493e1b,['id',_0x4c88bd(0x135),'updatedAt']);_0x13aa98[_0x4c88bd(0x14f)]=_0x1c8030['id'];if(_0x1904ce)_0x13aa98['Resources']=_0x1904ce;return _0x13aa98;})[_0x5b66ff(0x17e)](function(_0x56de7e){const _0x2b743b=_0x5b66ff;return db['UserProfileSection'][_0x2b743b(0x186)](_0x56de7e,{'include':[{'model':db['UserProfileResource'],'as':_0x2b743b(0xe9)}],'raw':!![],'transaction':_0x59881d});});}))[_0x2f02a6(0x17e)](function(){return _0x1c8030;});});});});}})[_0x3a38eb(0x17e)](respondWithResult(_0x490337,0xc9))[_0x3a38eb(0x193)](handleError(_0x490337,null));},exports[a799_0x3b4c25(0x126)]=function(_0x5b5c4d,_0x41f556){const _0x4c8165=a799_0x3b4c25;return _0x5b5c4d[_0x4c8165(0x12b)]['id']&&delete _0x5b5c4d['body']['id'],db[_0x4c8165(0x105)]['findOne']({'where':{'id':_0x5b5c4d[_0x4c8165(0x10a)]['id']}})[_0x4c8165(0x17e)](handleEntityNotFound(_0x41f556))[_0x4c8165(0x17e)](saveUpdates(_0x5b5c4d[_0x4c8165(0x12b)],null))[_0x4c8165(0x17e)](respondWithResult(_0x41f556,null))['catch'](handleError(_0x41f556,null));},exports[a799_0x3b4c25(0xef)]=function(_0x22ecc8,_0x36dfd1){const _0x666b85=a799_0x3b4c25;return db['UserProfile'][_0x666b85(0x18a)]({'where':{'id':_0x22ecc8[_0x666b85(0x10a)]['id']}})['then'](handleEntityNotFound(_0x36dfd1))['then'](removeEntity(_0x36dfd1,null))[_0x666b85(0x193)](handleError(_0x36dfd1,null));},exports['describe']=function(_0x3c5c68,_0x58e83e){const _0x529aba=a799_0x3b4c25;return db[_0x529aba(0x105)][_0x529aba(0x150)]()[_0x529aba(0x17e)](respondWithResult(_0x58e83e,null))['catch'](handleError(_0x58e83e,null));},exports['addSections']=function(_0x1decb6,_0x21f792){const _0x4feba2=a799_0x3b4c25,_0x38923b=_0x1decb6[_0x4feba2(0x12b)];return db['UserProfile']['findOne']({'where':{'id':_0x1decb6[_0x4feba2(0x10a)]['id']}})[_0x4feba2(0x17e)](handleEntityNotFound(_0x21f792))[_0x4feba2(0x17e)](function(_0x5ee829){const _0x4c0a2f=_0x4feba2;if(_0x5ee829)return db[_0x4c0a2f(0xff)][_0x4c0a2f(0x103)](function(_0x1f3197){const _0x1cb894=_0x4c0a2f;return db['UserProfileSection'][_0x1cb894(0xef)]({'where':{'userProfileId':_0x1decb6[_0x1cb894(0x10a)]['id'],'sectionId':_['map'](_0x38923b,function(_0x7c9d32){const _0x11a492=_0x1cb894;return _0x7c9d32[_0x11a492(0x16d)];})},'transaction':_0x1f3197})[_0x1cb894(0x17e)](function(){const _0x343bbb=_0x1cb894,_0xf06134=_[_0x343bbb(0x117)](_0x38923b,function(_0x28dda4){const _0x2508ee=_0x343bbb;return _0x28dda4[_0x2508ee(0x14f)]=_0x1decb6['params']['id'],_0x28dda4;}),_0x1eae98=[];return Promise[_0x343bbb(0x14e)](_0xf06134[_0x343bbb(0x117)](_0x38adcb=>{const _0x531da9=_0x343bbb;return db['UserProfileSection'][_0x531da9(0x186)](_0x38adcb,{'include':[{'model':db[_0x531da9(0xe8)],'as':_0x531da9(0xe9)}],'raw':!![],'transaction':_0x1f3197})['then'](function(_0x57e88c){const _0x4af77a=_0x531da9;_0x1eae98[_0x4af77a(0xfc)](_0x57e88c[_0x4af77a(0x1a2)]({'plain':!![]}));});}))[_0x343bbb(0x17e)](function(){return _0x1eae98;});});});})[_0x4feba2(0x17e)](function(_0x12befd){return _0x12befd;})[_0x4feba2(0x17e)](respondWithResult(_0x21f792,null))[_0x4feba2(0x193)](handleError(_0x21f792,null));},exports[a799_0x3b4c25(0x160)]=function(_0x1dfe0f,_0x20bfd7){const _0x1af2db=a799_0x3b4c25;let _0x4be0b7;return db[_0x1af2db(0x105)]['findOne']({'where':{'id':_0x1dfe0f['params']['id']},'attributes':['id',_0x1af2db(0x178)]})[_0x1af2db(0x17e)](handleEntityNotFound(_0x20bfd7))['then'](function(_0x33461e){const _0x2f77d2=_0x1af2db;if(_0x33461e)return _0x4be0b7=_0x33461e,db[_0x2f77d2(0x15c)][_0x2f77d2(0xef)]({'where':{'userProfileId':_0x1dfe0f[_0x2f77d2(0x10a)]['id'],'sectionId':_0x1dfe0f[_0x2f77d2(0x121)]['ids']}});})[_0x1af2db(0x17e)](function(){return _0x4be0b7;})[_0x1af2db(0x17e)](respondWithStatusCode(_0x20bfd7,null))['catch'](handleError(_0x20bfd7,null));},exports[a799_0x3b4c25(0xf8)]=function(_0x30db71,_0x2ba18a){const _0x34218a=a799_0x3b4c25;let _0x4dde23=[],_0x5336dd=[];return db[_0x34218a(0x15c)][_0x34218a(0x157)]({'where':{'userProfileId':_0x30db71['params']['id']},'raw':!![]})[_0x34218a(0x17e)](function(_0x4f33c7){const _0x36054a=_0x34218a;_0x4dde23=_[_0x36054a(0x13c)](_0x4f33c7,function(_0x284626){const _0x3c9f96=_0x36054a;return _0x284626[_0x3c9f96(0x18e)]===0x1||_[_0x3c9f96(0x139)]([0x3eb,0x709],_0x284626['sectionId']);});if(!_[_0x36054a(0x19d)](_0x4dde23))return _['map'](_0x4dde23,function(_0x184856){const _0x17dfdb=_0x36054a;return _0x184856[_0x17dfdb(0x16d)];});else return;})[_0x34218a(0x17e)](function(_0x3ea95b){const _0x5c1cf2=_0x34218a;if(_0x3ea95b)_0x5336dd=_0x3ea95b;if(_[_0x5c1cf2(0x139)](_0x5336dd,0x64)){const _0x191e19=_[_0x5c1cf2(0x189)](_0x4dde23,{'sectionId':0x64});return hasDefaultDashboard(_0x191e19)[_0x5c1cf2(0x17e)](function(_0x1f4366){const _0x159f4b=_0x5c1cf2;return _[_0x159f4b(0x117)](_0x4dde23,function(_0xbe5a86){return _0xbe5a86['sectionId']===0x64&&(_0xbe5a86['subsections']=_0x1f4366),_0xbe5a86;});});}else return;})[_0x34218a(0x17e)](function(_0xd8e1bf){const _0x1ef17c=_0x34218a;if(_0xd8e1bf)_0x4dde23=_0xd8e1bf;if(_['includes'](_0x5336dd,0x3eb)){const _0x1e51f4=_['find'](_0x4dde23,{'sectionId':0x3eb});return getCustomDashboards(_0x1e51f4)[_0x1ef17c(0x17e)](function(_0xd291f7){const _0x2f4f50=_0x1ef17c;return _[_0x2f4f50(0x117)](_0x4dde23,function(_0x21b026){const _0x351d3d=_0x2f4f50;return _0x1e51f4[_0x351d3d(0x18e)]?_0x21b026['sectionId']===0x3eb&&(_0x21b026[_0x351d3d(0x166)]=_0xd291f7):_0x21b026[_0x351d3d(0x16d)]===0x64&&(_0x21b026[_0x351d3d(0x166)]=_0xd291f7),_0x21b026;});});}else return;})['then'](function(_0x90e46f){const _0x15eec1=_0x34218a;if(_0x90e46f)_0x4dde23=_0x90e46f;if(_[_0x15eec1(0x139)](_0x5336dd,0x709)){const _0x1393f4=_[_0x15eec1(0x189)](_0x4dde23,{'sectionId':0x709});return getPlugins(_0x1393f4)[_0x15eec1(0x17e)](function(_0xaabe52){const _0x3ce6a1=_0x15eec1;if(_0x1393f4[_0x3ce6a1(0x18e)])return _[_0x3ce6a1(0x117)](_0x4dde23,function(_0x37c6aa){const _0x11aa16=_0x3ce6a1;return _0x37c6aa[_0x11aa16(0x16d)]===0x709&&(_0x37c6aa[_0x11aa16(0x166)]=_0xaabe52),_0x37c6aa;});else{const _0x468028={'sectionId':0x76c,'enabled':0x1,'subsections':_0xaabe52},_0x46e3fa=_[_0x3ce6a1(0x117)](_0x4dde23);return _0x46e3fa['push'](_0x468028),_0x46e3fa;}});}else return;})[_0x34218a(0x17e)](function(_0x34022e){const _0x407ae7=_0x34218a;if(_0x34022e)_0x4dde23=_0x34022e;return _[_0x407ae7(0x13c)](_0x4dde23,['enabled',0x1]);})['then'](respondWithResult(_0x2ba18a,null))[_0x34218a(0x193)](handleError(_0x2ba18a,null));};function hasDefaultDashboard(_0x2e072c){const _0x13f124=[0x65];return new Promise(function(_0x3783d3,_0x352a0c){const _0x478962=a799_0x7d65;try{if(_0x2e072c[_0x478962(0x13d)])_0x3783d3(_0x13f124);else return db['UserProfileResource'][_0x478962(0x18a)]({'where':{'sectionId':_0x2e072c['id']},'raw':!![]})[_0x478962(0x17e)](function(_0x5a7cf6){_0x5a7cf6?_0x3783d3(_0x13f124):_0x3783d3();});}catch(_0x30f9e4){_0x352a0c(_0x30f9e4);}});}function getCustomDashboards(_0x3692e0){const _0x32da77=[];return new Promise(function(_0xc844fd,_0x195ec6){const _0x1a3179=a799_0x7d65;try{return _0x3692e0[_0x1a3179(0x13d)]?db['Dashboard'][_0x1a3179(0x157)]({'raw':!![]})[_0x1a3179(0x17e)](function(_0x2fea13){const _0x362d9f=_0x1a3179;_0x2fea13[_0x362d9f(0x18b)](function(_0x28deec){const _0x435a55=_0x362d9f;_0x32da77[_0x435a55(0xfc)](_0x28deec['id']+0x1869f);}),_0xc844fd(_0x32da77);}):db[_0x1a3179(0xe8)][_0x1a3179(0x157)]({'where':{'sectionId':_0x3692e0['id']},'raw':!![]})['then'](function(_0x9e6cb3){const _0x463364=_0x1a3179;_0x9e6cb3[_0x463364(0x18b)](function(_0x53e55c){const _0xdff328=_0x463364;_0x32da77[_0xdff328(0xfc)](_0x53e55c[_0xdff328(0x147)]+0x1869f);}),_0xc844fd(_0x32da77);});}catch(_0x155b24){_0x195ec6(_0x155b24);}});}function getPlugins(_0x302a2e){const _0x13b148=[];return new Promise(function(_0x8c5755,_0x432c71){const _0x177fc5=a799_0x7d65;try{return _0x302a2e[_0x177fc5(0x13d)]?db['Plugin'][_0x177fc5(0x157)]({'raw':!![]})['then'](function(_0x6c1a85){const _0x4bc5ca=_0x177fc5;_0x6c1a85[_0x4bc5ca(0x18b)](function(_0x6c756c){const _0x3478be=_0x4bc5ca;_0x13b148[_0x3478be(0xfc)](_0x6c756c['id']+0x15b38);}),_0x8c5755(_0x13b148);}):db[_0x177fc5(0xe8)][_0x177fc5(0x157)]({'where':{'sectionId':_0x302a2e['id']},'raw':!![]})['then'](function(_0x4e7d8b){const _0x1f8e87=_0x177fc5;_0x4e7d8b[_0x1f8e87(0x18b)](function(_0x10a3d7){const _0x53a47a=_0x1f8e87;_0x13b148[_0x53a47a(0xfc)](_0x10a3d7['resourceId']+0x15b38);}),_0x8c5755(_0x13b148);});}catch(_0x285222){_0x432c71(_0x285222);}});}exports[a799_0x3b4c25(0x159)]=function(_0x286fd7,_0x28c3dc){const _0x3f86c4=a799_0x3b4c25;return db['UserProfile'][_0x3f86c4(0x18a)]({'where':{'id':_0x286fd7[_0x3f86c4(0x10a)]['id']}})[_0x3f86c4(0x17e)](handleEntityNotFound(_0x28c3dc))[_0x3f86c4(0x17e)](function(_0x896a54){const _0x7b28b=_0x3f86c4;if(_0x896a54)return db[_0x7b28b(0xff)][_0x7b28b(0x103)](function(_0x2738e7){const _0x519557=_0x7b28b;return db['UserProfileSection'][_0x519557(0x157)]({'where':{'userProfileId':_0x286fd7[_0x519557(0x10a)]['id']},'attributes':['id'],'raw':!![]})[_0x519557(0x17e)](function(_0x5c41f1){const _0x288b06=_0x519557;if(_0x5c41f1)return db[_0x288b06(0x15c)][_0x288b06(0xef)]({'where':{'userProfileId':_0x286fd7['params']['id'],'id':_[_0x288b06(0x117)](_0x5c41f1,function(_0x453e34){return _0x453e34['id'];})},'transaction':_0x2738e7});})[_0x519557(0x17e)](function(){const _0x2de6b7=_0x519557,_0x196a11=_[_0x2de6b7(0x117)](_0x286fd7['body'],function(_0x156d2a){const _0x48ad0e=_0x2de6b7;return _0x156d2a['userProfileId']=_0x286fd7[_0x48ad0e(0x10a)]['id'],_0x156d2a;});return db[_0x2de6b7(0x15c)]['bulkCreate'](_0x196a11,{'raw':!![],'transaction':_0x2738e7});})[_0x519557(0x17e)](function(_0x22265d){const _0x2417f3=_0x519557,_0x1e6d59=_[_0x2417f3(0x13c)](_['map'](_0x22265d,function(_0x2d608b){const _0x35f87c=_0x2417f3;return _0x2d608b[_0x35f87c(0x1a2)]({'plain':!![]});}),{'includeAll':![]});if(_0x1e6d59)return db[_0x2417f3(0x15c)][_0x2417f3(0x157)]({'where':{'userProfileId':_0x286fd7['params']['id'],'sectionId':_[_0x2417f3(0x117)](_0x1e6d59,function(_0xb3dbc9){const _0x14cb07=_0x2417f3;return _0xb3dbc9[_0x14cb07(0x16d)];})},'attributes':['id',_0x2417f3(0x16d)],'raw':!![]})[_0x2417f3(0x17e)](function(){const _0x133492=_0x2417f3,_0x46ef27=_['map'](_0x286fd7[_0x133492(0x12b)],function(_0x1ceb65){const _0x166a50=_0x133492;return _0x1ceb65[_0x166a50(0x14f)]=_0x286fd7[_0x166a50(0x10a)]['id'],_0x1ceb65;});return db[_0x133492(0xe8)][_0x133492(0x113)](_0x46ef27,{'raw':!![],'transaction':_0x2738e7});});})['catch'](handleError(_0x28c3dc,null));});})[_0x3f86c4(0x17e)](function(){})['then'](respondWithResult(_0x28c3dc,null))['catch'](handleError(_0x28c3dc,null));},exports[a799_0x3b4c25(0x119)]=function(_0x3dcf65,_0x557081){const _0x387bc=a799_0x3b4c25;return db[_0x387bc(0x105)][_0x387bc(0x18a)]({'where':{'id':_0x3dcf65[_0x387bc(0x10a)]['id']}})['then'](handleEntityNotFound(_0x557081))[_0x387bc(0x17e)](function(_0x4b6b03){const _0xe538c2=_0x387bc;if(_0x4b6b03)return _0x4b6b03[_0xe538c2(0x119)](_0x3dcf65[_0xe538c2(0x121)][_0xe538c2(0x197)]);})[_0x387bc(0x17e)](respondWithStatusCode(_0x557081,null))[_0x387bc(0x193)](handleError(_0x557081,null));},exports[a799_0x3b4c25(0x192)]=function(_0x475c0c,_0x459aab){const _0x1914a3=a799_0x3b4c25;let _0x241d3f={'raw':![],'where':{}};const _0x3d967e={},_0x5649a8={'count':0x0,'rows':[]},_0x54212e=_0x475c0c['query'][_0x1914a3(0xe6)];if(typeof _0x54212e==='undefined')throw new ValidationError(_0x1914a3(0x14a));const _0x172c73=_0x475c0c['query'][_0x1914a3(0xde)]||![],_0x39a804=getQueryModels(_0x54212e,_0x172c73);if(typeof _0x39a804[_0x1914a3(0x165)]==='undefined')throw new ValidationError(_0x1914a3(0x1a1)+_0x54212e+'\x27');let _0x53ba2e=[];return!_[_0x1914a3(0x19d)](_0x39a804[_0x1914a3(0x162)])?_0x53ba2e=_0x39a804['parentSections']:_0x53ba2e=[{'name':_0x54212e}],db[_0x1914a3(0x105)]['findOne']({'where':{'id':_0x475c0c[_0x1914a3(0x10a)]['id']}})[_0x1914a3(0x17e)](handleEntityNotFound(_0x459aab))['then'](function(_0x24143f){const _0x448ed9=_0x1914a3;if(_0x24143f){const _0x481b85=[];for(let _0x4231a2=0x0;_0x4231a2<_0x53ba2e['length'];_0x4231a2++){_0x481b85[_0x448ed9(0xfc)](db[_0x448ed9(0x15c)]['findOne']({'where':{'userProfileId':_0x24143f['id'],'name':_0x53ba2e[_0x4231a2]['name']},'raw':!![]}));}return Promise['all'](_0x481b85);}})['then'](function(_0x409440){const _0x250d69=_0x1914a3,_0x451be1=_[_0x250d69(0x13c)](_0x409440,function(_0x5f4710){return _0x5f4710?_0x5f4710:undefined;}),_0x2bf0d3=_[_0x250d69(0x13c)](_0x53ba2e,[_0x250d69(0xe5),!![]]),_0xf831dd=_[_0x250d69(0x19d)](_0x451be1)&&_[_0x250d69(0x19d)](_0x2bf0d3)?null:_[_0x250d69(0x108)](_0x2bf0d3,_0x451be1);if(_0xf831dd){const _0x419b89=[];for(let _0x32a464=0x0;_0x32a464<_0xf831dd['length'];_0x32a464++){const _0x5ea9e4=_[_0x250d69(0x189)](_0x53ba2e,function(_0x686b5b){const _0x2315e9=_0x250d69;return _0xf831dd[_0x32a464]?_0x686b5b['name']===_0xf831dd[_0x32a464][_0x2315e9(0x178)]:null;});_0x5ea9e4&&(_0xf831dd[_0x32a464][_0x250d69(0xe5)]?_0x419b89[_0x250d69(0xfc)](getAllResources(_0x39a804[_0x250d69(0x165)],_0xf831dd[_0x32a464])):!_0xf831dd[_0x32a464][_0x250d69(0x13d)]?_0x419b89[_0x250d69(0xfc)](getAllowedResources(_0x5ea9e4,_0xf831dd[_0x32a464],_0x39a804['childModel'])):_0x5ea9e4[_0x250d69(0xdd)]&&_0x419b89[_0x250d69(0xfc)](getAllFilteredResources(_0x5ea9e4,_0xf831dd[_0x32a464])));}return Promise[_0x250d69(0x14e)](_0x419b89);}else return null;})[_0x1914a3(0x17e)](function(_0x398b74){const _0x29b2b3=_0x1914a3,_0x266669=_0x398b74;let _0x38bb23=null;_0x266669&&(_0x38bb23=_0x266669[_0x29b2b3(0x114)]===0x1?_0x266669[0x0]:null);if(_0x38bb23||_0x266669){const _0x3db5a1=db[_0x39a804[_0x29b2b3(0x165)]][_0x29b2b3(0xf4)];_0x3d967e[_0x29b2b3(0xdd)]=_[_0x29b2b3(0x129)](_0x3db5a1),_0x3d967e[_0x29b2b3(0x121)]=_[_0x29b2b3(0x129)](_0x475c0c[_0x29b2b3(0x121)]),_0x3d967e[_0x29b2b3(0x100)]=_['intersection'](_0x3d967e['model'],_0x3d967e[_0x29b2b3(0x121)]),_0x241d3f[_0x29b2b3(0xe1)]=_[_0x29b2b3(0x109)](_0x3d967e[_0x29b2b3(0xdd)],qs['fields'](_0x475c0c[_0x29b2b3(0x121)][_0x29b2b3(0x141)])),_0x241d3f[_0x29b2b3(0xe1)]=_0x241d3f[_0x29b2b3(0xe1)]['length']?_0x241d3f[_0x29b2b3(0xe1)]:_0x3d967e[_0x29b2b3(0xdd)];typeof _0x475c0c[_0x29b2b3(0x121)]['nolimit']==='undefined'&&(_0x241d3f[_0x29b2b3(0xe3)]=qs['limit'](_0x475c0c[_0x29b2b3(0x121)]['limit']),_0x241d3f['offset']=qs[_0x29b2b3(0x10f)](_0x475c0c[_0x29b2b3(0x121)]['offset']));_0x241d3f[_0x29b2b3(0x122)]=qs[_0x29b2b3(0xdf)](_0x475c0c[_0x29b2b3(0x121)][_0x29b2b3(0xdf)]),_0x241d3f['where']=qs[_0x29b2b3(0x100)](_['pick'](_0x475c0c['query'],_0x3d967e[_0x29b2b3(0x100)]));_0x475c0c['query'][_0x29b2b3(0x13c)]&&(_0x241d3f[_0x29b2b3(0x138)]=_['merge'](_0x241d3f[_0x29b2b3(0x138)],{[Op['or']]:_['map'](_0x3db5a1,function(_0x3281f3){const _0x1a4139=_0x29b2b3;if(_0x3281f3[_0x1a4139(0x19a)][_0x1a4139(0x19e)]!==_0x1a4139(0xdb)){const _0x404173={};return _0x404173[_0x3281f3[_0x1a4139(0x199)]]={[Op[_0x1a4139(0x18d)]]:'%'+_0x475c0c['query'][_0x1a4139(0x13c)]+'%'},_0x404173;}})}));const _0x446ce0=[];if(_0x38bb23){const _0x479320=_[_0x29b2b3(0x189)](_0x53ba2e,[_0x29b2b3(0x178),_0x38bb23[_0x29b2b3(0x178)]]);if(_0x479320[_0x29b2b3(0x199)]){const _0x1d282c={};_0x39a804[_0x29b2b3(0x165)]===_0x29b2b3(0x10c)?_0x1d282c[_0x479320[_0x29b2b3(0x154)]]=_['map'](_0x38bb23['associatedResources'],'id'):_0x1d282c[_0x479320['foreignKey']]=_0x38bb23[_0x29b2b3(0x17a)],_0x446ce0['push'](_0x1d282c);}else _0x241d3f[_0x29b2b3(0x138)]['id']=_0x38bb23['associatedResources'];}else for(let _0x274b1e=0x0;_0x274b1e<_0x266669['length'];_0x274b1e++){const _0x219b90=_[_0x29b2b3(0x189)](_0x53ba2e,[_0x29b2b3(0x178),_0x266669[_0x274b1e]['name']]);if(_0x219b90['field']){const _0x45e200={};_0x45e200[_0x219b90[_0x29b2b3(0x154)]]=_0x266669[_0x274b1e][_0x29b2b3(0x17a)],_0x446ce0[_0x29b2b3(0xfc)](_0x45e200);}else{if(!_0x241d3f[_0x29b2b3(0x138)]['id'])_0x241d3f['where']['id']=[];_0x266669[_0x274b1e]['associatedResources']['forEach'](function(_0x3007d7){const _0x4a22e2=_0x29b2b3;_0x241d3f[_0x4a22e2(0x138)]['id'][_0x4a22e2(0xfc)](_0x3007d7);});}}return!_[_0x29b2b3(0x19d)](_0x446ce0)&&(_0x241d3f[_0x29b2b3(0x138)]=_[_0x29b2b3(0x18c)](_0x241d3f[_0x29b2b3(0x138)],{[Op['and']]:{[Op['or']]:_0x446ce0}})),_0x241d3f=_[_0x29b2b3(0x18c)]({},_0x241d3f,_0x475c0c[_0x29b2b3(0x14c)]),_0x38bb23&&!_0x38bb23[_0x29b2b3(0x13d)]&&_0x39a804[_0x29b2b3(0x165)]===_0x29b2b3(0x10c)?(_0x475c0c[_0x29b2b3(0x121)]['includeAll']&&(_0x241d3f['include']=[{'all':!![]}]),db[_0x39a804[_0x29b2b3(0x165)]][_0x29b2b3(0x157)](_0x241d3f)['then'](function(_0x4be3e9){const _0x3f99f2=_0x29b2b3,_0x238a22=[];return _0x4be3e9['forEach'](function(_0x2c04d5){const _0x5ef255=a799_0x7d65;let _0x79494e;switch(_0x2c04d5[_0x5ef255(0x131)]){case _0x5ef255(0x190):_0x79494e=_[_0x5ef255(0x189)](_0x38bb23['associatedResources'],function(_0x42e283){const _0x3fbbe2=_0x5ef255;return _0x42e283['id']===_0x2c04d5[_0x3fbbe2(0x12c)]&&_0x42e283[_0x3fbbe2(0x19a)]==='DefaultReports';});break;case _0x5ef255(0x170):_0x79494e=_[_0x5ef255(0x189)](_0x38bb23[_0x5ef255(0x17a)],function(_0x51db33){const _0x303940=_0x5ef255;return _0x51db33['id']===_0x2c04d5[_0x303940(0x12c)]&&_0x51db33[_0x303940(0x19a)]===_0x303940(0x124);});break;}if(_0x79494e)_0x238a22['push'](_0x2c04d5);}),_0x5649a8[_0x3f99f2(0x18f)]=_0x238a22[_0x3f99f2(0x114)],_0x5649a8['rows']=_0x238a22,_0x5649a8;})):db[_0x39a804['childModel']][_0x29b2b3(0x18f)]({'where':_0x241d3f[_0x29b2b3(0x138)]})[_0x29b2b3(0x17e)](function(_0x2950d0){const _0x52580e=_0x29b2b3;return _0x5649a8[_0x52580e(0x18f)]=_0x2950d0,_0x475c0c[_0x52580e(0x121)][_0x52580e(0x155)]&&(_0x39a804[_0x52580e(0x165)]===_0x52580e(0x133)?_0x241d3f[_0x52580e(0x1a3)]=[{'model':db[_0x52580e(0x158)],'as':_0x52580e(0x181),'attributes':['id',_0x52580e(0x178),_0x52580e(0x123)],'required':_0x475c0c[_0x52580e(0x121)][_0x52580e(0xfa)]?!![]:![]},{'model':db[_0x52580e(0x158)],'as':_0x52580e(0x184),'attributes':['id','name',_0x52580e(0x123)],'through':_0x475c0c[_0x52580e(0x121)]['tag']?{'attributes':[],'where':{'TagId':_0x475c0c[_0x52580e(0x121)]['tag']||undefined}}:{},'required':_0x475c0c['query'][_0x52580e(0xfa)]?!![]:![]}]:_0x241d3f[_0x52580e(0x1a3)]=[{'all':!![]}]),db[_0x39a804['childModel']][_0x52580e(0x157)](_0x241d3f);})[_0x29b2b3(0x17e)](function(_0x273a83){const _0x404b35=_0x29b2b3;return _0x5649a8[_0x404b35(0x116)]=_0x273a83,_0x5649a8;});}else return _0x5649a8;})[_0x1914a3(0x17e)](respondWithFilteredResult(_0x459aab,_0x241d3f))[_0x1914a3(0x193)](handleError(_0x459aab,null));};function getAllResources(_0x337130,_0x1363f4){return new Promise(function(_0x38ad3e,_0x37fcba){const _0x1cb706=a799_0x7d65;if(_0x1363f4){const _0x14ba87=_0x1363f4[_0x1cb706(0x13c)]?{[_0x1363f4[_0x1cb706(0x13c)][_0x1cb706(0x199)]]:_0x1363f4['filter'][_0x1cb706(0x188)]}:undefined;return db[_0x337130]['findAll']({'where':_0x14ba87,'raw':!![]})[_0x1cb706(0x17e)](function(_0x1bf6de){const _0x51b359=_0x1cb706;_0x1363f4[_0x51b359(0x17a)]=_[_0x51b359(0x117)](_0x1bf6de,'id'),_0x38ad3e(_0x1363f4);})[_0x1cb706(0x193)](function(_0xf20aa7){_0x37fcba(_0xf20aa7);});}else _0x38ad3e(null);});}function getAllFilteredResources(_0x425bac,_0x138fca){return new Promise(function(_0x4787b8,_0x316904){const _0x470513=a799_0x7d65,_0x5c3b2e=_0x425bac[_0x470513(0x13c)]?{[_0x425bac[_0x470513(0x13c)][_0x470513(0x199)]]:_0x425bac['filter']['value']}:undefined;return db[_0x425bac[_0x470513(0xdd)]]['findAll']({'where':_0x5c3b2e,'raw':!![]})[_0x470513(0x17e)](function(_0x536145){const _0x5f51fc=_0x470513;_0x138fca[_0x5f51fc(0x17a)]=_[_0x5f51fc(0x117)](_0x536145,function(_0x1c1217){const _0x46d4c6=_0x5f51fc;return _0x1c1217[_0x46d4c6(0x178)];}),_0x4787b8(_0x138fca);})[_0x470513(0x193)](function(_0x44c257){_0x316904(_0x44c257);});});}function getAllowedResources(_0x283bb1,_0xc39657,_0x5a52d2){return new Promise(function(_0x5e605c,_0x2ffffe){const _0x423d0b=a799_0x7d65;if(_0xc39657)return db[_0x423d0b(0xe8)][_0x423d0b(0x157)]({'where':{'sectionId':_0xc39657['id']},'raw':!![]})[_0x423d0b(0x17e)](function(_0x12a7c5){const _0x3ede1d=_0x423d0b;_0x283bb1[_0x3ede1d(0x199)]&&_0x283bb1['field']!=='id'?_0xc39657[_0x3ede1d(0x17a)]=_['map'](_0x12a7c5,function(_0x4a8052){const _0x9c64f6=_0x3ede1d;return _0x4a8052[_0x283bb1[_0x9c64f6(0x199)]];}):_0x5a52d2===_0x3ede1d(0x10c)?_0xc39657[_0x3ede1d(0x17a)]=_[_0x3ede1d(0x117)](_0x12a7c5,function(_0x49c035){const _0x1c69e8=_0x3ede1d;return{'id':_0x49c035[_0x1c69e8(0x147)],'type':_0x49c035[_0x1c69e8(0x19a)]};}):_0xc39657[_0x3ede1d(0x17a)]=_[_0x3ede1d(0x117)](_0x12a7c5,function(_0x54320f){const _0x1b89a5=_0x3ede1d;return _0x54320f[_0x1b89a5(0x147)];}),_0x5e605c(_0xc39657);})[_0x423d0b(0x193)](function(_0x36b9b3){_0x2ffffe(_0x36b9b3);});else _0x5e605c(null);});}function getQueryModels(_0x5a6a28,_0x308608){const _0x2e73fc=a799_0x3b4c25,_0x598b51=_0x5a6a28[_0x2e73fc(0xfd)](),_0xb72967={'childModel':undefined,'parentSections':[]};switch(_0x598b51){case'squareprojects':_0xb72967[_0x2e73fc(0x165)]=_0x2e73fc(0x191);break;case _0x2e73fc(0x17c):_0xb72967[_0x2e73fc(0x165)]=_0x2e73fc(0xe7);break;case _0x2e73fc(0x13f):_0xb72967['childModel']=_0x2e73fc(0x10d),_0xb72967['parentSections']=[{'name':_0x2e73fc(0x132),'field':_0x2e73fc(0x178),'foreignKey':_0x2e73fc(0x167)}];break;case'projects':_0xb72967[_0x2e73fc(0x165)]=_0x2e73fc(0xf6);break;case'contacts':_0xb72967[_0x2e73fc(0x165)]=_0x2e73fc(0x133),_0xb72967[_0x2e73fc(0x162)]=[{'name':_0x2e73fc(0x148),'field':'id','foreignKey':'ListId'}];break;case _0x2e73fc(0xe4):_0xb72967[_0x2e73fc(0x165)]=_0x2e73fc(0xfe);break;case _0x2e73fc(0xea):_0xb72967['childModel']=_0x2e73fc(0x164);break;case _0x2e73fc(0x15e):_0xb72967['childModel']=_0x2e73fc(0x127);break;case'chatqueues':_0xb72967['childModel']='ChatQueue';break;case'chatwebsites':_0xb72967['childModel']=_0x2e73fc(0x11a);break;case _0x2e73fc(0x15d):_0xb72967[_0x2e73fc(0x165)]=_0x2e73fc(0xf0);break;case _0x2e73fc(0x180):_0xb72967[_0x2e73fc(0x165)]=_0x2e73fc(0x174);break;case _0x2e73fc(0x134):case _0x2e73fc(0x19f):case'outboundroutes':_0xb72967[_0x2e73fc(0x165)]=_0x2e73fc(0x137);break;case'contexts':_0xb72967[_0x2e73fc(0x165)]=_0x2e73fc(0x156);break;case _0x2e73fc(0x152):_0xb72967['childModel']=_0x2e73fc(0x11f);break;case'voicerecordings':_0xb72967['childModel']='VoiceRecording',_0xb72967[_0x2e73fc(0x162)]=[{'name':'Agents','field':_0x2e73fc(0x178),'foreignKey':_0x2e73fc(0xf9),'model':_0x2e73fc(0x12d),'filter':{'field':_0x2e73fc(0x177),'value':[_0x2e73fc(0x16b)]}},{'name':'Telephones','field':'name','foreignKey':_0x2e73fc(0xf9),'model':_0x2e73fc(0x12d),'filter':{'field':_0x2e73fc(0x177),'value':[_0x2e73fc(0x172)]}},{'name':_0x2e73fc(0x195),'field':'name','foreignKey':'queue','model':_0x2e73fc(0x16f),'filter':{'field':_0x2e73fc(0x19a),'value':[_0x2e73fc(0xf5)]}},{'name':'QueueCampaigns','field':_0x2e73fc(0x178),'foreignKey':'queue','model':_0x2e73fc(0x16f),'filter':{'field':_0x2e73fc(0x19a),'value':['outbound']}}];break;case _0x2e73fc(0x101):_0xb72967[_0x2e73fc(0x165)]=_0x2e73fc(0x146);break;case _0x2e73fc(0xee):_0xb72967['childModel']=_0x2e73fc(0xf1);break;case'voiceprefixes':_0xb72967[_0x2e73fc(0x165)]='VoicePrefix';break;case _0x2e73fc(0x185):_0xb72967[_0x2e73fc(0x165)]='Campaign';break;case _0x2e73fc(0x125):_0xb72967[_0x2e73fc(0x165)]='MailQueue';break;case _0x2e73fc(0x19c):_0xb72967[_0x2e73fc(0x165)]='MailAccount';break;case _0x2e73fc(0x144):_0xb72967['childModel']=_0x2e73fc(0x115);break;case _0x2e73fc(0x16a):_0xb72967['childModel']=_0x2e73fc(0x136);break;case _0x2e73fc(0x10b):_0xb72967['childModel']='OpenchannelAccount';break;case'smsqueues':_0xb72967[_0x2e73fc(0x165)]=_0x2e73fc(0x194);break;case _0x2e73fc(0x149):_0xb72967['childModel']=_0x2e73fc(0xf3);break;case _0x2e73fc(0x11d):_0xb72967[_0x2e73fc(0x165)]=_0x2e73fc(0x171);break;case'whatsappaccounts':_0xb72967[_0x2e73fc(0x165)]='WhatsappAccount';break;case _0x2e73fc(0x163):_0xb72967[_0x2e73fc(0x165)]='Team';break;case _0x2e73fc(0x106):case'queuecampaigns':_0xb72967[_0x2e73fc(0x165)]=_0x2e73fc(0x16f);_0x308608&&(_0xb72967[_0x2e73fc(0x162)]=[{'name':_0x2e73fc(0x195)},{'name':_0x2e73fc(0x104)}]);break;case _0x2e73fc(0x12f):case _0x2e73fc(0x183):case _0x2e73fc(0x173):_0xb72967[_0x2e73fc(0x165)]=_0x2e73fc(0x12d);_0x308608&&(_0xb72967[_0x2e73fc(0x162)]=[{'name':_0x2e73fc(0xfb),'filter':{'field':'role','value':[_0x2e73fc(0xed),_0x2e73fc(0x128)]},'ignore':!![]},{'name':_0x2e73fc(0x140)},{'name':_0x2e73fc(0x17f)}]);break;case'zendeskaccounts':_0xb72967[_0x2e73fc(0x165)]=_0x2e73fc(0x175);break;case _0x2e73fc(0x111):_0xb72967['childModel']=_0x2e73fc(0x161);break;case'freshdeskaccounts':_0xb72967['childModel']=_0x2e73fc(0x142);break;case'sugarcrmaccounts':_0xb72967[_0x2e73fc(0x165)]=_0x2e73fc(0x13e);break;case _0x2e73fc(0x176):_0xb72967[_0x2e73fc(0x165)]=_0x2e73fc(0x1a0);break;case _0x2e73fc(0xf7):_0xb72967[_0x2e73fc(0x165)]=_0x2e73fc(0x120);break;case _0x2e73fc(0x179):_0xb72967[_0x2e73fc(0x165)]='User';break;case _0x2e73fc(0x145):_0xb72967[_0x2e73fc(0x165)]=_0x2e73fc(0xda);break;case'dispositions':_0xb72967[_0x2e73fc(0x165)]='Disposition';break;case _0x2e73fc(0x15b):_0xb72967[_0x2e73fc(0x165)]=_0x2e73fc(0x153);break;case _0x2e73fc(0x130):_0xb72967[_0x2e73fc(0x165)]=_0x2e73fc(0x14b);break;case _0x2e73fc(0xeb):_0xb72967[_0x2e73fc(0x165)]='Pause';break;case'scheduler':_0xb72967['childModel']=_0x2e73fc(0xe2);break;case _0x2e73fc(0x16c):_0xb72967['childModel']=_0x2e73fc(0x182);break;case _0x2e73fc(0x17d):_0xb72967['childModel']=_0x2e73fc(0x158);break;case'templates':_0xb72967[_0x2e73fc(0x165)]=_0x2e73fc(0x143);break;case _0x2e73fc(0xe0):_0xb72967['childModel']=_0x2e73fc(0x13b);break;case _0x2e73fc(0x10e):_0xb72967[_0x2e73fc(0x165)]=_0x2e73fc(0x15a);break;case _0x2e73fc(0x118):_0xb72967[_0x2e73fc(0x165)]=_0x2e73fc(0xec);break;case _0x2e73fc(0x102):_0xb72967[_0x2e73fc(0x165)]='Plugin';break;case _0x2e73fc(0x12a):_0xb72967[_0x2e73fc(0x165)]='AnalyticExtractedReport',_0xb72967[_0x2e73fc(0x162)]=[{'name':_0x2e73fc(0x16e),'field':'id','foreignKey':_0x2e73fc(0x12c)}];break;case _0x2e73fc(0x17b):_0xb72967[_0x2e73fc(0x165)]=_0x2e73fc(0x169);break;default:return _0xb72967;}return _0xb72967;} \ No newline at end of file diff --git a/server/api/userProfile/userProfile.events.js b/server/api/userProfile/userProfile.events.js index 1e83c52..7e709c6 100644 --- a/server/api/userProfile/userProfile.events.js +++ b/server/api/userProfile/userProfile.events.js @@ -1 +1 @@ -const a668_0x3b6f=['save','addHook','setMaxListeners','UserProfile','exports','undefined','emit','remove','events','update'];(function(_0xb75901,_0x3b6f48){const _0x2bdb1c=function(_0x180874){while(--_0x180874){_0xb75901['push'](_0xb75901['shift']());}};_0x2bdb1c(++_0x3b6f48);}(a668_0x3b6f,0x1dc));const a668_0x2bdb=function(_0xb75901,_0x3b6f48){_0xb75901=_0xb75901-0x0;let _0x2bdb1c=a668_0x3b6f[_0xb75901];return _0x2bdb1c;};const _0x4179ef=a668_0x2bdb;'use strict';const EventEmitter=require(_0x4179ef('0x2')),UserProfile=require('../../mysqldb')['db'][_0x4179ef('0x7')],UserProfileEvents=new EventEmitter();UserProfileEvents[_0x4179ef('0x6')](0x0);const events={'afterCreate':_0x4179ef('0x4'),'afterUpdate':_0x4179ef('0x3'),'afterDestroy':_0x4179ef('0x1')};function emitEvent(_0x180874){return function(_0x178f05){const _0x3dc4d6=a668_0x2bdb;UserProfileEvents[_0x3dc4d6('0x0')](_0x180874+':'+_0x178f05['id'],_0x178f05),UserProfileEvents['emit'](_0x180874,_0x178f05);};}for(const e in events){if(typeof events[e]!==_0x4179ef('0x9')){const event=events[e];UserProfile[_0x4179ef('0x5')](e,emitEvent(event));}}module[_0x4179ef('0x8')]=UserProfileEvents; \ No newline at end of file +const a800_0x1f5a=['../../mysqldb','exports','UserProfile','update','addHook','events','remove','setMaxListeners','save','emit'];(function(_0x464035,_0x49eb2c){const _0x1f5a02=function(_0xe9f8b8){while(--_0xe9f8b8){_0x464035['push'](_0x464035['shift']());}};_0x1f5a02(++_0x49eb2c);}(a800_0x1f5a,0x90));const a800_0xe9f8=function(_0x464035,_0x49eb2c){_0x464035=_0x464035-0x145;let _0x1f5a02=a800_0x1f5a[_0x464035];return _0x1f5a02;};const a800_0x4bbb75=a800_0xe9f8;'use strict';const EventEmitter=require(a800_0x4bbb75(0x146)),UserProfile=require(a800_0x4bbb75(0x14b))['db'][a800_0x4bbb75(0x14d)],UserProfileEvents=new EventEmitter();UserProfileEvents[a800_0x4bbb75(0x148)](0x0);const events={'afterCreate':a800_0x4bbb75(0x149),'afterUpdate':a800_0x4bbb75(0x14e),'afterDestroy':a800_0x4bbb75(0x147)};function emitEvent(_0x41c2d9){return function(_0x22acce){const _0x278e6=a800_0xe9f8;UserProfileEvents[_0x278e6(0x14a)](_0x41c2d9+':'+_0x22acce['id'],_0x22acce),UserProfileEvents['emit'](_0x41c2d9,_0x22acce);};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];UserProfile[a800_0x4bbb75(0x145)](e,emitEvent(event));}}module[a800_0x4bbb75(0x14c)]=UserProfileEvents; \ No newline at end of file diff --git a/server/api/userProfile/userProfile.model.js b/server/api/userProfile/userProfile.model.js index dcf478c..723b644 100644 --- a/server/api/userProfile/userProfile.model.js +++ b/server/api/userProfile/userProfile.model.js @@ -1 +1 @@ -const a669_0x2169=['user_profiles','define','UserProfile','./userProfile.attributes','exports'];(function(_0x218be7,_0x2169b5){const _0x5862ec=function(_0x15d1e1){while(--_0x15d1e1){_0x218be7['push'](_0x218be7['shift']());}};_0x5862ec(++_0x2169b5);}(a669_0x2169,0x1dd));const a669_0x5862=function(_0x218be7,_0x2169b5){_0x218be7=_0x218be7-0x0;let _0x5862ec=a669_0x2169[_0x218be7];return _0x5862ec;};const _0x747b1b=a669_0x5862;'use strict';const attributes=require(_0x747b1b('0x1'));module[_0x747b1b('0x2')]=function(_0x15d1e1){const _0xe6a8bc=_0x747b1b,_0xa8571a=_0x15d1e1[_0xe6a8bc('0x4')](_0xe6a8bc('0x0'),attributes,{'tableName':_0xe6a8bc('0x3'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0xa8571a;}; \ No newline at end of file +const a801_0x4cd6=['exports','function','sequelize','./userProfile.attributes','init','./userProfile.options'];(function(_0xd434e7,_0x47f45c){const _0x4cd68e=function(_0x3a4acc){while(--_0x3a4acc){_0xd434e7['push'](_0xd434e7['shift']());}};_0x4cd68e(++_0x47f45c);}(a801_0x4cd6,0xa5));const a801_0x3a4a=function(_0xd434e7,_0x47f45c){_0xd434e7=_0xd434e7-0xe0;let _0x4cd68e=a801_0x4cd6[_0xd434e7];return _0x4cd68e;};const a801_0x27f7b0=a801_0x3a4a;'use strict';const {Model}=require(a801_0x27f7b0(0xe5)),{attributes}=require(a801_0x27f7b0(0xe0)),{options}=require(a801_0x27f7b0(0xe2));class UserProfile extends Model{}function init(_0x16c6d5,_0x29598c){const _0x171b34=a801_0x27f7b0,_0x8461fe=options(_0x16c6d5),_0x352c8d=typeof _0x29598c===_0x171b34(0xe4)?_0x29598c(_0x8461fe):_0x8461fe;return UserProfile[_0x171b34(0xe1)](attributes,_0x352c8d),UserProfile;}module[a801_0x27f7b0(0xe3)]['UserProfile']=UserProfile,module[a801_0x27f7b0(0xe3)][a801_0x27f7b0(0xe1)]=init; \ No newline at end of file diff --git a/server/api/userProfile/userProfile.options.js b/server/api/userProfile/userProfile.options.js new file mode 100644 index 0000000..739d8e0 --- /dev/null +++ b/server/api/userProfile/userProfile.options.js @@ -0,0 +1 @@ +var a802_0x1197=['options','exports','user_profiles'];(function(_0x426600,_0x533c2f){var _0x119737=function(_0x40a995){while(--_0x40a995){_0x426600['push'](_0x426600['shift']());}};_0x119737(++_0x533c2f);}(a802_0x1197,0xa0));var a802_0x40a9=function(_0x426600,_0x533c2f){_0x426600=_0x426600-0x133;var _0x119737=a802_0x1197[_0x426600];return _0x119737;};var a802_0x1624c2=a802_0x40a9;function options(_0xc73c49){var _0x1c7432=a802_0x40a9;return{'sequelize':_0xc73c49,'tableName':_0x1c7432(0x134),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a802_0x1624c2(0x133)][a802_0x1624c2(0x135)]=options; \ No newline at end of file diff --git a/server/api/userProfile/userProfile.rpc.js b/server/api/userProfile/userProfile.rpc.js index 0d19a1d..214300b 100644 --- a/server/api/userProfile/userProfile.rpc.js +++ b/server/api/userProfile/userProfile.rpc.js @@ -1 +1 @@ -'use strict';const {getSocket}=require('../../rediscache'),socket=getSocket();require('./userProfile.socket')['register'](socket); \ No newline at end of file +const a803_0x3028=['register','./userProfile.socket'];(function(_0x5806d6,_0x1a5fdd){const _0x302834=function(_0x272580){while(--_0x272580){_0x5806d6['push'](_0x5806d6['shift']());}};_0x302834(++_0x1a5fdd);}(a803_0x3028,0x128));const a803_0x2725=function(_0x5806d6,_0x1a5fdd){_0x5806d6=_0x5806d6-0x1bb;let _0x302834=a803_0x3028[_0x5806d6];return _0x302834;};const a803_0x1a6fdd=a803_0x2725;'use strict';const {getSocket}=require('../../rediscache'),socket=getSocket();require(a803_0x1a6fdd(0x1bc))[a803_0x1a6fdd(0x1bb)](socket); \ No newline at end of file diff --git a/server/api/userProfile/userProfile.socket.js b/server/api/userProfile/userProfile.socket.js index 31870c5..21a96d8 100644 --- a/server/api/userProfile/userProfile.socket.js +++ b/server/api/userProfile/userProfile.socket.js @@ -1 +1 @@ -const a671_0x2849=['./userProfile.events','save','register','userProfile:','remove','length'];(function(_0x17322c,_0x2849d6){const _0x4b16bb=function(_0x2dbb74){while(--_0x2dbb74){_0x17322c['push'](_0x17322c['shift']());}};_0x4b16bb(++_0x2849d6);}(a671_0x2849,0xac));const a671_0x4b16=function(_0x17322c,_0x2849d6){_0x17322c=_0x17322c-0x0;let _0x4b16bb=a671_0x2849[_0x17322c];return _0x4b16bb;};const _0xf57a6c=a671_0x4b16;'use strict';const UserProfileEvents=require(_0xf57a6c('0x2')),events=[_0xf57a6c('0x3'),_0xf57a6c('0x0'),'update'];function createListener(_0x2dbb74,_0x2e9ad4){return function(_0x8e8e0e){_0x2e9ad4['emit'](_0x2dbb74,_0x8e8e0e);};}exports[_0xf57a6c('0x4')]=function(_0x489340){const _0x4cd74f=_0xf57a6c;for(let _0x421f4a=0x0,_0x49fa6c=events[_0x4cd74f('0x1')];_0x421f4a<_0x49fa6c;_0x421f4a++){const _0x2055c4=events[_0x421f4a],_0x531fe8=createListener(_0x4cd74f('0x5')+_0x2055c4,_0x489340);UserProfileEvents['on'](_0x2055c4,_0x531fe8);}}; \ No newline at end of file +const a804_0x11af=['userProfile:','emit','length','register','update','remove'];(function(_0x5157f7,_0x50b787){const _0x11af80=function(_0x5b57fd){while(--_0x5b57fd){_0x5157f7['push'](_0x5157f7['shift']());}};_0x11af80(++_0x50b787);}(a804_0x11af,0x141));const a804_0x5b57=function(_0x5157f7,_0x50b787){_0x5157f7=_0x5157f7-0x1b3;let _0x11af80=a804_0x11af[_0x5157f7];return _0x11af80;};const a804_0x1488f2=a804_0x5b57;'use strict';const UserProfileEvents=require('./userProfile.events'),events=['save',a804_0x1488f2(0x1b5),a804_0x1488f2(0x1b4)];function createListener(_0x144e0a,_0x3f24a7){return function(_0x49e9d9){const _0x6480d5=a804_0x5b57;_0x3f24a7[_0x6480d5(0x1b7)](_0x144e0a,_0x49e9d9);};}exports[a804_0x1488f2(0x1b3)]=function(_0x54f3e6){const _0x50a7b9=a804_0x1488f2;for(let _0x3e02f6=0x0,_0x2b8191=events[_0x50a7b9(0x1b8)];_0x3e02f6<_0x2b8191;_0x3e02f6++){const _0x4b080f=events[_0x3e02f6],_0x24bd5c=createListener(_0x50a7b9(0x1b6)+_0x4b080f,_0x54f3e6);UserProfileEvents['on'](_0x4b080f,_0x24bd5c);}}; \ No newline at end of file diff --git a/server/api/userProfileResource/index.js b/server/api/userProfileResource/index.js index 32f6392..1f96c80 100644 --- a/server/api/userProfileResource/index.js +++ b/server/api/userProfileResource/index.js @@ -1 +1 @@ -const a672_0x2689=['get','describe','/:id','index','./userProfileResource.controller','express','../../components/auth/service','exports','/describe','put','show','update','isAuthenticated','destroy'];(function(_0x34ea20,_0x2689b6){const _0x2f2e91=function(_0x12b619){while(--_0x12b619){_0x34ea20['push'](_0x34ea20['shift']());}};_0x2f2e91(++_0x2689b6);}(a672_0x2689,0x1ed));const a672_0x2f2e=function(_0x34ea20,_0x2689b6){_0x34ea20=_0x34ea20-0x0;let _0x2f2e91=a672_0x2689[_0x34ea20];return _0x2f2e91;};const _0xb35898=a672_0x2f2e;'use strict';const express=require(_0xb35898('0x2')),router=express['Router'](),auth=require(_0xb35898('0x3')),controller=require(_0xb35898('0x1'));router[_0xb35898('0xb')]('/',auth[_0xb35898('0x9')](),controller[_0xb35898('0x0')]),router[_0xb35898('0xb')](_0xb35898('0x5'),auth[_0xb35898('0x9')](),controller[_0xb35898('0xc')]),router['get']('/:id',auth['isAuthenticated'](),controller[_0xb35898('0x7')]),router['post']('/',auth[_0xb35898('0x9')](),controller['create']),router[_0xb35898('0x6')](_0xb35898('0xd'),auth[_0xb35898('0x9')](),controller[_0xb35898('0x8')]),router['delete'](_0xb35898('0xd'),auth[_0xb35898('0x9')](),controller[_0xb35898('0xa')]),module[_0xb35898('0x4')]=router; \ No newline at end of file +const a805_0x230d=['isAuthenticated','./userProfileResource.controller','get','index','destroy','create','show','delete','express','/:id','/describe','put','Router'];(function(_0x3b0fc7,_0x39a647){const _0x230d7e=function(_0x1b257a){while(--_0x1b257a){_0x3b0fc7['push'](_0x3b0fc7['shift']());}};_0x230d7e(++_0x39a647);}(a805_0x230d,0xc0));const a805_0x1b25=function(_0x3b0fc7,_0x39a647){_0x3b0fc7=_0x3b0fc7-0x6a;let _0x230d7e=a805_0x230d[_0x3b0fc7];return _0x230d7e;};const a805_0x3ebfab=a805_0x1b25;'use strict';const express=require(a805_0x3ebfab(0x75)),router=express[a805_0x3ebfab(0x6c)](),auth=require('../../components/auth/service'),controller=require(a805_0x3ebfab(0x6e));router[a805_0x3ebfab(0x6f)]('/',auth['isAuthenticated'](),controller[a805_0x3ebfab(0x70)]),router[a805_0x3ebfab(0x6f)](a805_0x3ebfab(0x6a),auth[a805_0x3ebfab(0x6d)](),controller['describe']),router[a805_0x3ebfab(0x6f)](a805_0x3ebfab(0x76),auth[a805_0x3ebfab(0x6d)](),controller[a805_0x3ebfab(0x73)]),router['post']('/',auth[a805_0x3ebfab(0x6d)](),controller[a805_0x3ebfab(0x72)]),router[a805_0x3ebfab(0x6b)]('/:id',auth[a805_0x3ebfab(0x6d)](),controller['update']),router[a805_0x3ebfab(0x74)]('/:id',auth[a805_0x3ebfab(0x6d)](),controller[a805_0x3ebfab(0x71)]),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 3f4eb39..1c1650b 100644 --- a/server/api/userProfileResource/userProfileResource.attributes.js +++ b/server/api/userProfileResource/userProfileResource.attributes.js @@ -1 +1 @@ -const a673_0x21ca=['sequelize','INTEGER','STRING'];(function(_0x4821ed,_0x21ca4b){const _0x37ab92=function(_0x23d9bc){while(--_0x23d9bc){_0x4821ed['push'](_0x4821ed['shift']());}};_0x37ab92(++_0x21ca4b);}(a673_0x21ca,0x15a));const a673_0x37ab=function(_0x4821ed,_0x21ca4b){_0x4821ed=_0x4821ed-0x0;let _0x37ab92=a673_0x21ca[_0x4821ed];return _0x37ab92;};const _0x468f9b=a673_0x37ab;'use strict';const Sequelize=require(_0x468f9b('0x2'));module['exports']={'name':{'type':Sequelize['STRING'],'allowNull':![]},'resourceId':{'type':Sequelize[_0x468f9b('0x0')],'allowNull':![]},'type':{'type':Sequelize[_0x468f9b('0x1')],'allowNull':![]}}; \ No newline at end of file +const a806_0x1ddc=['STRING','exports','attributes','INTEGER','sequelize'];(function(_0x4a6377,_0x416768){const _0x1ddcdd=function(_0x3b1111){while(--_0x3b1111){_0x4a6377['push'](_0x4a6377['shift']());}};_0x1ddcdd(++_0x416768);}(a806_0x1ddc,0x129));const a806_0x3b11=function(_0x4a6377,_0x416768){_0x4a6377=_0x4a6377-0x1ea;let _0x1ddcdd=a806_0x1ddc[_0x4a6377];return _0x1ddcdd;};const a806_0x16321c=a806_0x3b11;'use strict';const {DataTypes}=require(a806_0x16321c(0x1ec)),attributes={'name':{'type':DataTypes['STRING'],'allowNull':![]},'resourceId':{'type':DataTypes[a806_0x16321c(0x1eb)],'allowNull':![]},'type':{'type':DataTypes[a806_0x16321c(0x1ed)],'allowNull':![]}};module[a806_0x16321c(0x1ee)][a806_0x16321c(0x1ea)]=attributes; \ No newline at end of file diff --git a/server/api/userProfileResource/userProfileResource.controller.js b/server/api/userProfileResource/userProfileResource.controller.js index 0758039..8632cf7 100644 --- a/server/api/userProfileResource/userProfileResource.controller.js +++ b/server/api/userProfileResource/userProfileResource.controller.js @@ -1 +1 @@ -const a674_0x2889=['sequelize','UserProfileResource','where','order','sendStatus','model','filters','like','name','fields','lodash','describe','attributes','map','type','body','show','then','offset','status','keys','query','catch','merge','index','../../components/parsers/qs','count','params','include','pick','findOne','filter','undefined','send','options','fieldName','limit','includeAll','update','intersection','length','key','destroy','../../config/logger','create','end','set','sort','json','rows'];(function(_0x38db54,_0x2889f7){const _0x33ca4a=function(_0x3f26c4){while(--_0x3f26c4){_0x38db54['push'](_0x38db54['shift']());}};_0x33ca4a(++_0x2889f7);}(a674_0x2889,0x107));const a674_0x33ca=function(_0x38db54,_0x2889f7){_0x38db54=_0x38db54-0x0;let _0x33ca4a=a674_0x2889[_0x38db54];return _0x33ca4a;};const _0x14dc35=a674_0x33ca;'use strict';const _=require(_0x14dc35('0x2f')),qs=require(_0x14dc35('0xc')),logger=require(_0x14dc35('0x1e'))('api'),db=require('../../mysqldb')['db'],{Op}=require(_0x14dc35('0x25'));function respondWithResult(_0x3f26c4,_0x22c880){return _0x22c880=_0x22c880||0xc8,function(_0x5d440b){const _0x5b91a1=a674_0x33ca;if(_0x5d440b)return _0x3f26c4[_0x5b91a1('0x6')](_0x22c880)['json'](_0x5d440b);};}function respondWithFilteredResult(_0x368f2a,_0x583fa5){return function(_0x267a73){const _0x2e724c=a674_0x33ca;if(_0x267a73){const _0x411b5a=_0x267a73[_0x2e724c('0xd')],_0x50a39f=_0x583fa5[_0x2e724c('0x5')];let _0x3caccb=_0x583fa5[_0x2e724c('0x5')]+_0x583fa5[_0x2e724c('0x17')],_0x92023b;return _0x3caccb>=_0x411b5a?(_0x3caccb=_0x411b5a,_0x92023b=0xc8):_0x92023b=0xce,_0x368f2a[_0x2e724c('0x6')](_0x92023b),_0x368f2a[_0x2e724c('0x21')]('Content-Range',_0x50a39f+'-'+_0x3caccb+'/'+_0x411b5a)[_0x2e724c('0x23')](_0x267a73);}return null;};}function saveUpdates(_0x26a8a2){return function(_0x422bc2){const _0x1c4023=a674_0x33ca;if(_0x422bc2)return _0x422bc2[_0x1c4023('0x19')](_0x26a8a2)[_0x1c4023('0x4')](function(_0xc3a28b){return _0xc3a28b;});return null;};}function removeEntity(_0x79fd40){return function(_0x38bc64){const _0x5b8797=a674_0x33ca;if(_0x38bc64)return _0x38bc64['destroy']()[_0x5b8797('0x4')](function(){const _0x282356=_0x5b8797;_0x79fd40[_0x282356('0x6')](0xcc)[_0x282356('0x20')]();});};}function handleEntityNotFound(_0x4bc623){return function(_0x58f18d){const _0x3c680b=a674_0x33ca;return!_0x58f18d&&_0x4bc623[_0x3c680b('0x29')](0x194),_0x58f18d;};}function handleError(_0xa8bd0f,_0xddf341){return _0xddf341=_0xddf341||0x1f4,function(_0x4bd4e9){const _0x52ae32=a674_0x33ca;logger['error'](_0x4bd4e9['stack']),_0x4bd4e9[_0x52ae32('0x2d')]&&delete _0x4bd4e9[_0x52ae32('0x2d')],_0xa8bd0f[_0x52ae32('0x6')](_0xddf341)[_0x52ae32('0x14')](_0x4bd4e9);};}exports[_0x14dc35('0xb')]=function(_0xf850be,_0x1de5f1){const _0x2db36d=_0x14dc35;let _0x52715e={};const _0x15e754={},_0x1748f5={'count':0x0,'rows':[]},_0x52a603=_[_0x2db36d('0x0')](db[_0x2db36d('0x26')]['rawAttributes'],function(_0x1e9e20){const _0x5b96e8=_0x2db36d;return{'name':_0x1e9e20[_0x5b96e8('0x16')],'type':_0x1e9e20[_0x5b96e8('0x1')][_0x5b96e8('0x1c')]};});_0x15e754['model']=_[_0x2db36d('0x0')](_0x52a603,'name'),_0x15e754[_0x2db36d('0x8')]=_[_0x2db36d('0x7')](_0xf850be[_0x2db36d('0x8')]),_0x15e754[_0x2db36d('0x2b')]=_['intersection'](_0x15e754['model'],_0x15e754['query']),_0x52715e[_0x2db36d('0x31')]=_[_0x2db36d('0x1a')](_0x15e754[_0x2db36d('0x2a')],qs[_0x2db36d('0x2e')](_0xf850be[_0x2db36d('0x8')]['fields'])),_0x52715e[_0x2db36d('0x31')]=_0x52715e[_0x2db36d('0x31')][_0x2db36d('0x1b')]?_0x52715e[_0x2db36d('0x31')]:_0x15e754[_0x2db36d('0x2a')];typeof _0xf850be['query']['nolimit']===_0x2db36d('0x13')&&(_0x52715e[_0x2db36d('0x17')]=qs[_0x2db36d('0x17')](_0xf850be[_0x2db36d('0x8')][_0x2db36d('0x17')]),_0x52715e[_0x2db36d('0x5')]=qs[_0x2db36d('0x5')](_0xf850be[_0x2db36d('0x8')]['offset']));_0x52715e[_0x2db36d('0x28')]=qs[_0x2db36d('0x22')](_0xf850be[_0x2db36d('0x8')][_0x2db36d('0x22')]),_0x52715e['where']=qs[_0x2db36d('0x2b')](_[_0x2db36d('0x10')](_0xf850be[_0x2db36d('0x8')],_0x15e754[_0x2db36d('0x2b')]),_0x52a603);_0xf850be[_0x2db36d('0x8')][_0x2db36d('0x12')]&&(_0x52715e['where']=_[_0x2db36d('0xa')](_0x52715e[_0x2db36d('0x27')],{[Op['or']]:_[_0x2db36d('0x0')](_0x52a603,function(_0x341753){const _0x13c34f=_0x2db36d;if(_0x341753['type']!=='VIRTUAL'){const _0xa9c939={};return _0xa9c939[_0x341753[_0x13c34f('0x2d')]]={[Op[_0x13c34f('0x2c')]]:'%'+_0xf850be[_0x13c34f('0x8')][_0x13c34f('0x12')]+'%'},_0xa9c939;}})}));_0x52715e=_[_0x2db36d('0xa')]({},_0x52715e,_0xf850be[_0x2db36d('0x15')]);const _0x439461={'where':_0x52715e['where']};return db[_0x2db36d('0x26')]['count'](_0x439461)[_0x2db36d('0x4')](function(_0x28049e){const _0x246fa5=_0x2db36d;return _0x1748f5['count']=_0x28049e,_0xf850be[_0x246fa5('0x8')][_0x246fa5('0x18')]&&(_0x52715e[_0x246fa5('0xf')]=[{'all':!![]}]),db[_0x246fa5('0x26')]['findAll'](_0x52715e);})[_0x2db36d('0x4')](function(_0x4b0d5b){const _0x1e93a8=_0x2db36d;return _0x1748f5[_0x1e93a8('0x24')]=_0x4b0d5b,_0x1748f5;})[_0x2db36d('0x4')](respondWithFilteredResult(_0x1de5f1,_0x52715e))[_0x2db36d('0x9')](handleError(_0x1de5f1,null));},exports[_0x14dc35('0x3')]=function(_0x269143,_0x451c68){const _0x3d0aa7=_0x14dc35;let _0x3658cb={'raw':![],'where':{'id':_0x269143['params']['id']}};const _0x3202da={};return _0x3202da[_0x3d0aa7('0x2a')]=_[_0x3d0aa7('0x7')](db[_0x3d0aa7('0x26')]['rawAttributes']),_0x3202da[_0x3d0aa7('0x8')]=_[_0x3d0aa7('0x7')](_0x269143['query']),_0x3202da[_0x3d0aa7('0x2b')]=_[_0x3d0aa7('0x1a')](_0x3202da[_0x3d0aa7('0x2a')],_0x3202da[_0x3d0aa7('0x8')]),_0x3658cb[_0x3d0aa7('0x31')]=_['intersection'](_0x3202da[_0x3d0aa7('0x2a')],qs[_0x3d0aa7('0x2e')](_0x269143[_0x3d0aa7('0x8')][_0x3d0aa7('0x2e')])),_0x3658cb['attributes']=_0x3658cb['attributes'][_0x3d0aa7('0x1b')]?_0x3658cb['attributes']:_0x3202da[_0x3d0aa7('0x2a')],_0x269143[_0x3d0aa7('0x8')][_0x3d0aa7('0x18')]&&(_0x3658cb['include']=[{'all':!![]}]),_0x3658cb=_[_0x3d0aa7('0xa')]({},_0x3658cb,_0x269143[_0x3d0aa7('0x15')]),db[_0x3d0aa7('0x26')][_0x3d0aa7('0x11')](_0x3658cb)[_0x3d0aa7('0x4')](handleEntityNotFound(_0x451c68,null))[_0x3d0aa7('0x4')](respondWithResult(_0x451c68,null))[_0x3d0aa7('0x9')](handleError(_0x451c68,null));},exports['create']=function(_0x5188de,_0xa9a06f){const _0x3ad027=_0x14dc35;return db[_0x3ad027('0x26')][_0x3ad027('0x1f')](_0x5188de[_0x3ad027('0x2')],{})[_0x3ad027('0x4')](respondWithResult(_0xa9a06f,0xc9))[_0x3ad027('0x9')](handleError(_0xa9a06f,null));},exports[_0x14dc35('0x19')]=function(_0xca41c2,_0x9995db){const _0x4c1551=_0x14dc35;return _0xca41c2['body']['id']&&delete _0xca41c2['body']['id'],db[_0x4c1551('0x26')][_0x4c1551('0x11')]({'where':{'id':_0xca41c2[_0x4c1551('0xe')]['id']}})[_0x4c1551('0x4')](handleEntityNotFound(_0x9995db,null))['then'](saveUpdates(_0xca41c2[_0x4c1551('0x2')],null))['then'](respondWithResult(_0x9995db,null))[_0x4c1551('0x9')](handleError(_0x9995db,null));},exports[_0x14dc35('0x1d')]=function(_0x3318b7,_0x2573c5){const _0x502992=_0x14dc35;return db[_0x502992('0x26')][_0x502992('0x11')]({'where':{'id':_0x3318b7[_0x502992('0xe')]['id']}})['then'](handleEntityNotFound(_0x2573c5,null))['then'](removeEntity(_0x2573c5,null))[_0x502992('0x9')](handleError(_0x2573c5,null));},exports[_0x14dc35('0x30')]=function(_0x1a87fa,_0x6379ba){const _0x19bb9d=_0x14dc35;return db[_0x19bb9d('0x26')]['describe']()[_0x19bb9d('0x4')](respondWithResult(_0x6379ba,null))[_0x19bb9d('0x9')](handleError(_0x6379ba,null));}; \ No newline at end of file +const a807_0x5413=['nolimit','index','key','filters','status','map','catch','query','name','UserProfileResource','set','includeAll','where','sort','params','Content-Range','include','limit','fields','destroy','attributes','../../components/parsers/qs','../../mysqldb','update','json','then','options','../../config/logger','create','error','intersection','count','pick','findOne','filter','type','keys','undefined','rawAttributes','fieldName','rows','VIRTUAL','offset','sequelize','body','model','length','stack','merge','describe','show'];(function(_0x5f2624,_0x1e9793){const _0x54134e=function(_0x306f4a){while(--_0x306f4a){_0x5f2624['push'](_0x5f2624['shift']());}};_0x54134e(++_0x1e9793);}(a807_0x5413,0x1b8));const a807_0x306f=function(_0x5f2624,_0x1e9793){_0x5f2624=_0x5f2624-0x1ac;let _0x54134e=a807_0x5413[_0x5f2624];return _0x54134e;};const a807_0x4113e5=a807_0x306f;'use strict';const _=require('lodash'),qs=require(a807_0x4113e5(0x1d4)),logger=require(a807_0x4113e5(0x1da))('api'),{db}=require(a807_0x4113e5(0x1d5)),{Op}=require(a807_0x4113e5(0x1b7));function respondWithResult(_0x25a199,_0x158273){return _0x158273=_0x158273||0xc8,function(_0x4e2fc7){const _0x2d974e=a807_0x306f;if(_0x4e2fc7)return _0x25a199[_0x2d974e(0x1c3)](_0x158273)[_0x2d974e(0x1d7)](_0x4e2fc7);};}function respondWithFilteredResult(_0x4c2a78,_0x106920){return function(_0x58b638){const _0x40586b=a807_0x306f;if(_0x58b638){const _0x33931e=_0x58b638['count'],_0x6ca136=_0x106920[_0x40586b(0x1b6)];let _0x5cc37a=_0x106920['offset']+_0x106920[_0x40586b(0x1d0)],_0x179b6e;return _0x5cc37a>=_0x33931e?(_0x5cc37a=_0x33931e,_0x179b6e=0xc8):_0x179b6e=0xce,_0x4c2a78['status'](_0x179b6e),_0x4c2a78[_0x40586b(0x1c9)](_0x40586b(0x1ce),_0x6ca136+'-'+_0x5cc37a+'/'+_0x33931e)[_0x40586b(0x1d7)](_0x58b638);}return null;};}function saveUpdates(_0x43474d){return function(_0x107a68){const _0x3ed2d4=a807_0x306f;if(_0x107a68)return _0x107a68[_0x3ed2d4(0x1d6)](_0x43474d)['then'](function(_0x1bdd56){return _0x1bdd56;});return null;};}function removeEntity(_0x4ab80c){return function(_0xddd279){const _0x256b26=a807_0x306f;if(_0xddd279)return _0xddd279[_0x256b26(0x1d2)]()[_0x256b26(0x1d8)](function(){const _0x54eabb=_0x256b26;_0x4ab80c[_0x54eabb(0x1c3)](0xcc)['end']();});};}function handleEntityNotFound(_0x548f77){return function(_0x111ecd){return!_0x111ecd&&_0x548f77['sendStatus'](0x194),_0x111ecd;};}function handleError(_0xe859e6,_0x19a342){return _0x19a342=_0x19a342||0x1f4,function(_0x2a472e){const _0x37a61d=a807_0x306f;logger[_0x37a61d(0x1dc)](_0x2a472e[_0x37a61d(0x1bb)]),_0x2a472e[_0x37a61d(0x1c7)]&&delete _0x2a472e['name'],_0xe859e6[_0x37a61d(0x1c3)](_0x19a342)['send'](_0x2a472e);};}exports[a807_0x4113e5(0x1c0)]=function(_0x508bfe,_0x113909){const _0x1ca0f8=a807_0x4113e5;let _0x470fd0={};const _0x7e6f57={},_0x1cfa2c={'count':0x0,'rows':[]},_0x2a5a95=_['map'](db[_0x1ca0f8(0x1c8)]['rawAttributes'],function(_0x173500){const _0x2331c4=_0x1ca0f8;return{'name':_0x173500[_0x2331c4(0x1b3)],'type':_0x173500[_0x2331c4(0x1af)][_0x2331c4(0x1c1)]};});_0x7e6f57[_0x1ca0f8(0x1b9)]=_[_0x1ca0f8(0x1c4)](_0x2a5a95,'name'),_0x7e6f57[_0x1ca0f8(0x1c6)]=_[_0x1ca0f8(0x1b0)](_0x508bfe[_0x1ca0f8(0x1c6)]),_0x7e6f57['filters']=_[_0x1ca0f8(0x1dd)](_0x7e6f57[_0x1ca0f8(0x1b9)],_0x7e6f57[_0x1ca0f8(0x1c6)]),_0x470fd0[_0x1ca0f8(0x1d3)]=_['intersection'](_0x7e6f57[_0x1ca0f8(0x1b9)],qs[_0x1ca0f8(0x1d1)](_0x508bfe[_0x1ca0f8(0x1c6)][_0x1ca0f8(0x1d1)])),_0x470fd0[_0x1ca0f8(0x1d3)]=_0x470fd0[_0x1ca0f8(0x1d3)][_0x1ca0f8(0x1ba)]?_0x470fd0[_0x1ca0f8(0x1d3)]:_0x7e6f57[_0x1ca0f8(0x1b9)];typeof _0x508bfe['query'][_0x1ca0f8(0x1bf)]===_0x1ca0f8(0x1b1)&&(_0x470fd0[_0x1ca0f8(0x1d0)]=qs[_0x1ca0f8(0x1d0)](_0x508bfe[_0x1ca0f8(0x1c6)][_0x1ca0f8(0x1d0)]),_0x470fd0[_0x1ca0f8(0x1b6)]=qs[_0x1ca0f8(0x1b6)](_0x508bfe[_0x1ca0f8(0x1c6)]['offset']));_0x470fd0['order']=qs[_0x1ca0f8(0x1cc)](_0x508bfe['query'][_0x1ca0f8(0x1cc)]),_0x470fd0[_0x1ca0f8(0x1cb)]=qs[_0x1ca0f8(0x1c2)](_[_0x1ca0f8(0x1ac)](_0x508bfe['query'],_0x7e6f57[_0x1ca0f8(0x1c2)]),_0x2a5a95);_0x508bfe[_0x1ca0f8(0x1c6)][_0x1ca0f8(0x1ae)]&&(_0x470fd0[_0x1ca0f8(0x1cb)]=_[_0x1ca0f8(0x1bc)](_0x470fd0[_0x1ca0f8(0x1cb)],{[Op['or']]:_[_0x1ca0f8(0x1c4)](_0x2a5a95,function(_0x184d3b){const _0x3356bd=_0x1ca0f8;if(_0x184d3b[_0x3356bd(0x1af)]!==_0x3356bd(0x1b5)){const _0x12623d={};return _0x12623d[_0x184d3b[_0x3356bd(0x1c7)]]={[Op['like']]:'%'+_0x508bfe[_0x3356bd(0x1c6)][_0x3356bd(0x1ae)]+'%'},_0x12623d;}})}));_0x470fd0=_[_0x1ca0f8(0x1bc)]({},_0x470fd0,_0x508bfe[_0x1ca0f8(0x1d9)]);const _0x21db29={'where':_0x470fd0[_0x1ca0f8(0x1cb)]};return db['UserProfileResource'][_0x1ca0f8(0x1de)](_0x21db29)[_0x1ca0f8(0x1d8)](function(_0x35b7fe){const _0x25513e=_0x1ca0f8;return _0x1cfa2c['count']=_0x35b7fe,_0x508bfe['query']['includeAll']&&(_0x470fd0[_0x25513e(0x1cf)]=[{'all':!![]}]),db['UserProfileResource']['findAll'](_0x470fd0);})[_0x1ca0f8(0x1d8)](function(_0x380590){const _0x5f49df=_0x1ca0f8;return _0x1cfa2c[_0x5f49df(0x1b4)]=_0x380590,_0x1cfa2c;})['then'](respondWithFilteredResult(_0x113909,_0x470fd0))[_0x1ca0f8(0x1c5)](handleError(_0x113909,null));},exports[a807_0x4113e5(0x1be)]=function(_0xe94303,_0x42b560){const _0x11d1e2=a807_0x4113e5;let _0x4a9301={'raw':![],'where':{'id':_0xe94303['params']['id']}};const _0x4e2d3c={};return _0x4e2d3c[_0x11d1e2(0x1b9)]=_[_0x11d1e2(0x1b0)](db[_0x11d1e2(0x1c8)][_0x11d1e2(0x1b2)]),_0x4e2d3c[_0x11d1e2(0x1c6)]=_[_0x11d1e2(0x1b0)](_0xe94303[_0x11d1e2(0x1c6)]),_0x4e2d3c['filters']=_[_0x11d1e2(0x1dd)](_0x4e2d3c[_0x11d1e2(0x1b9)],_0x4e2d3c[_0x11d1e2(0x1c6)]),_0x4a9301[_0x11d1e2(0x1d3)]=_[_0x11d1e2(0x1dd)](_0x4e2d3c['model'],qs[_0x11d1e2(0x1d1)](_0xe94303[_0x11d1e2(0x1c6)][_0x11d1e2(0x1d1)])),_0x4a9301[_0x11d1e2(0x1d3)]=_0x4a9301[_0x11d1e2(0x1d3)][_0x11d1e2(0x1ba)]?_0x4a9301[_0x11d1e2(0x1d3)]:_0x4e2d3c[_0x11d1e2(0x1b9)],_0xe94303['query'][_0x11d1e2(0x1ca)]&&(_0x4a9301[_0x11d1e2(0x1cf)]=[{'all':!![]}]),_0x4a9301=_['merge']({},_0x4a9301,_0xe94303[_0x11d1e2(0x1d9)]),db[_0x11d1e2(0x1c8)]['findOne'](_0x4a9301)[_0x11d1e2(0x1d8)](handleEntityNotFound(_0x42b560,null))[_0x11d1e2(0x1d8)](respondWithResult(_0x42b560,null))[_0x11d1e2(0x1c5)](handleError(_0x42b560,null));},exports[a807_0x4113e5(0x1db)]=function(_0x4a83c4,_0x53715e){const _0x2bd479=a807_0x4113e5;return db[_0x2bd479(0x1c8)][_0x2bd479(0x1db)](_0x4a83c4[_0x2bd479(0x1b8)],{})[_0x2bd479(0x1d8)](respondWithResult(_0x53715e,0xc9))[_0x2bd479(0x1c5)](handleError(_0x53715e,null));},exports[a807_0x4113e5(0x1d6)]=function(_0x2ac2ff,_0x2df022){const _0x54b12d=a807_0x4113e5;return _0x2ac2ff['body']['id']&&delete _0x2ac2ff['body']['id'],db[_0x54b12d(0x1c8)][_0x54b12d(0x1ad)]({'where':{'id':_0x2ac2ff[_0x54b12d(0x1cd)]['id']}})[_0x54b12d(0x1d8)](handleEntityNotFound(_0x2df022,null))[_0x54b12d(0x1d8)](saveUpdates(_0x2ac2ff[_0x54b12d(0x1b8)],null))[_0x54b12d(0x1d8)](respondWithResult(_0x2df022,null))[_0x54b12d(0x1c5)](handleError(_0x2df022,null));},exports['destroy']=function(_0x1b8181,_0x51ab73){const _0x24c700=a807_0x4113e5;return db[_0x24c700(0x1c8)][_0x24c700(0x1ad)]({'where':{'id':_0x1b8181['params']['id']}})[_0x24c700(0x1d8)](handleEntityNotFound(_0x51ab73,null))[_0x24c700(0x1d8)](removeEntity(_0x51ab73,null))['catch'](handleError(_0x51ab73,null));},exports[a807_0x4113e5(0x1bd)]=function(_0x24b939,_0x478c08){const _0x13b846=a807_0x4113e5;return db[_0x13b846(0x1c8)][_0x13b846(0x1bd)]()['then'](respondWithResult(_0x478c08,null))['catch'](handleError(_0x478c08,null));}; \ No newline at end of file diff --git a/server/api/userProfileResource/userProfileResource.model.js b/server/api/userProfileResource/userProfileResource.model.js index f2c2495..94a316d 100644 --- a/server/api/userProfileResource/userProfileResource.model.js +++ b/server/api/userProfileResource/userProfileResource.model.js @@ -1 +1 @@ -const a675_0x335c=['define','user_profile_has_resources','UserProfileResource','exports','resourceId','compositeIndex','./userProfileResource.attributes','sectionId'];(function(_0x3f3d92,_0x335cc1){const _0x1c8527=function(_0x353e7a){while(--_0x353e7a){_0x3f3d92['push'](_0x3f3d92['shift']());}};_0x1c8527(++_0x335cc1);}(a675_0x335c,0xb3));const a675_0x1c85=function(_0x3f3d92,_0x335cc1){_0x3f3d92=_0x3f3d92-0x0;let _0x1c8527=a675_0x335c[_0x3f3d92];return _0x1c8527;};const _0x2ca814=a675_0x1c85;'use strict';const attributes=require(_0x2ca814('0x3'));module[_0x2ca814('0x0')]=function(_0x353e7a){const _0x59e598=_0x2ca814,_0x33a022=_0x353e7a[_0x59e598('0x5')](_0x59e598('0x7'),attributes,{'tableName':_0x59e598('0x6'),'paranoid':![],'indexes':[{'name':_0x59e598('0x2'),'fields':[_0x59e598('0x1'),_0x59e598('0x4')]}],'timestamps':!![]});return _0x33a022;}; \ No newline at end of file +const a808_0x5446=['function','./userProfileResource.options','sequelize','init','exports','UserProfileResource'];(function(_0x42a1c1,_0x9bdebb){const _0x544600=function(_0x35ffb3){while(--_0x35ffb3){_0x42a1c1['push'](_0x42a1c1['shift']());}};_0x544600(++_0x9bdebb);}(a808_0x5446,0x92));const a808_0x35ff=function(_0x42a1c1,_0x9bdebb){_0x42a1c1=_0x42a1c1-0x14b;let _0x544600=a808_0x5446[_0x42a1c1];return _0x544600;};const a808_0x166ddf=a808_0x35ff;'use strict';const {Model}=require(a808_0x166ddf(0x14b)),{attributes}=require('./userProfileResource.attributes'),{options}=require(a808_0x166ddf(0x150));class UserProfileResource extends Model{}function init(_0x3f546a,_0x3c3318){const _0x102211=a808_0x166ddf,_0x3b3776=options(_0x3f546a),_0x1d9cfc=typeof _0x3c3318===_0x102211(0x14f)?_0x3c3318(_0x3b3776):_0x3b3776;return UserProfileResource['init'](attributes,_0x1d9cfc),UserProfileResource;}module['exports'][a808_0x166ddf(0x14e)]=UserProfileResource,module[a808_0x166ddf(0x14d)][a808_0x166ddf(0x14c)]=init; \ No newline at end of file diff --git a/server/api/userProfileResource/userProfileResource.options.js b/server/api/userProfileResource/userProfileResource.options.js new file mode 100644 index 0000000..f719221 --- /dev/null +++ b/server/api/userProfileResource/userProfileResource.options.js @@ -0,0 +1 @@ +var a809_0x2ad0=['user_profile_has_resources','resourceId','options','sectionId'];(function(_0x19267d,_0x44a7b6){var _0x2ad0a6=function(_0x2fa72a){while(--_0x2fa72a){_0x19267d['push'](_0x19267d['shift']());}};_0x2ad0a6(++_0x44a7b6);}(a809_0x2ad0,0x175));var a809_0x2fa7=function(_0x19267d,_0x44a7b6){_0x19267d=_0x19267d-0x11a;var _0x2ad0a6=a809_0x2ad0[_0x19267d];return _0x2ad0a6;};var a809_0x480d5c=a809_0x2fa7;function options(_0x464326){var _0x3fd1a4=a809_0x2fa7;return{'sequelize':_0x464326,'tableName':_0x3fd1a4(0x11d),'paranoid':![],'indexes':[{'name':'compositeIndex','fields':[_0x3fd1a4(0x11a),_0x3fd1a4(0x11c)]}],'timestamps':!![]};}module['exports'][a809_0x480d5c(0x11b)]=options; \ No newline at end of file diff --git a/server/api/userProfileSection/index.js b/server/api/userProfileSection/index.js index 7181205..54bbf9f 100644 --- a/server/api/userProfileSection/index.js +++ b/server/api/userProfileSection/index.js @@ -1 +1 @@ -const a676_0x4f55=['index','get','create','../../components/auth/service','put','express','describe','exports','isAuthenticated','post','/:id','Router','destroy','show'];(function(_0xd6eec5,_0x4f5569){const _0x345c18=function(_0x43ddd2){while(--_0x43ddd2){_0xd6eec5['push'](_0xd6eec5['shift']());}};_0x345c18(++_0x4f5569);}(a676_0x4f55,0x1a8));const a676_0x345c=function(_0xd6eec5,_0x4f5569){_0xd6eec5=_0xd6eec5-0x0;let _0x345c18=a676_0x4f55[_0xd6eec5];return _0x345c18;};const _0x499df3=a676_0x345c;'use strict';const express=require(_0x499df3('0x1')),router=express[_0x499df3('0x7')](),auth=require(_0x499df3('0xd')),controller=require('./userProfileSection.controller');router[_0x499df3('0xb')]('/',auth[_0x499df3('0x4')](),controller[_0x499df3('0xa')]),router[_0x499df3('0xb')]('/describe',auth['isAuthenticated'](),controller[_0x499df3('0x2')]),router[_0x499df3('0xb')](_0x499df3('0x6'),auth[_0x499df3('0x4')](),controller[_0x499df3('0x9')]),router[_0x499df3('0x5')]('/',auth[_0x499df3('0x4')](),controller[_0x499df3('0xc')]),router[_0x499df3('0x0')](_0x499df3('0x6'),auth[_0x499df3('0x4')](),controller['update']),router['delete'](_0x499df3('0x6'),auth[_0x499df3('0x4')](),controller[_0x499df3('0x8')]),module[_0x499df3('0x3')]=router; \ No newline at end of file +const a810_0xba41=['isAuthenticated','create','put','delete','update','/describe','index','../../components/auth/service','exports','./userProfileSection.controller','/:id','get','describe','express','Router'];(function(_0x5b9f38,_0x1ef00a){const _0xba41ac=function(_0x10a95c){while(--_0x10a95c){_0x5b9f38['push'](_0x5b9f38['shift']());}};_0xba41ac(++_0x1ef00a);}(a810_0xba41,0x126));const a810_0x10a9=function(_0x5b9f38,_0x1ef00a){_0x5b9f38=_0x5b9f38-0xd1;let _0xba41ac=a810_0xba41[_0x5b9f38];return _0xba41ac;};const a810_0x59fa7d=a810_0x10a9;'use strict';const express=require(a810_0x59fa7d(0xd5)),router=express[a810_0x59fa7d(0xd6)](),auth=require(a810_0x59fa7d(0xde)),controller=require(a810_0x59fa7d(0xd1));router[a810_0x59fa7d(0xd3)]('/',auth[a810_0x59fa7d(0xd7)](),controller[a810_0x59fa7d(0xdd)]),router[a810_0x59fa7d(0xd3)](a810_0x59fa7d(0xdc),auth['isAuthenticated'](),controller[a810_0x59fa7d(0xd4)]),router[a810_0x59fa7d(0xd3)](a810_0x59fa7d(0xd2),auth[a810_0x59fa7d(0xd7)](),controller['show']),router['post']('/',auth[a810_0x59fa7d(0xd7)](),controller[a810_0x59fa7d(0xd8)]),router[a810_0x59fa7d(0xd9)](a810_0x59fa7d(0xd2),auth[a810_0x59fa7d(0xd7)](),controller[a810_0x59fa7d(0xdb)]),router[a810_0x59fa7d(0xda)](a810_0x59fa7d(0xd2),auth[a810_0x59fa7d(0xd7)](),controller['destroy']),module[a810_0x59fa7d(0xdf)]=router; \ No newline at end of file diff --git a/server/api/userProfileSection/userProfileSection.attributes.js b/server/api/userProfileSection/userProfileSection.attributes.js index 10c33db..370d6ff 100644 --- a/server/api/userProfileSection/userProfileSection.attributes.js +++ b/server/api/userProfileSection/userProfileSection.attributes.js @@ -1 +1 @@ -const a677_0x54aa=['crudPermissions','join','sequelize','getDataValue','BOOLEAN','STRING','setDataValue'];(function(_0x53806c,_0x54aa01){const _0x53e768=function(_0x3322e3){while(--_0x3322e3){_0x53806c['push'](_0x53806c['shift']());}};_0x53e768(++_0x54aa01);}(a677_0x54aa,0x15c));const a677_0x53e7=function(_0x53806c,_0x54aa01){_0x53806c=_0x53806c-0x0;let _0x53e768=a677_0x54aa[_0x53806c];return _0x53e768;};const _0x254170=a677_0x53e7;'use strict';const Sequelize=require(_0x254170('0x4'));module['exports']={'name':{'type':Sequelize['STRING'],'allowNull':![]},'category':{'type':Sequelize[_0x254170('0x0')],'allowNull':![]},'sectionId':{'type':Sequelize['INTEGER'],'allowNull':![]},'enabled':{'type':Sequelize[_0x254170('0x6')],'defaultValue':null},'autoAssociation':{'type':Sequelize[_0x254170('0x6')],'defaultValue':null},'crudPermissions':{'type':Sequelize['STRING'],'set':function(_0x3322e3){const _0x352bab=_0x254170;this[_0x352bab('0x1')](_0x352bab('0x2'),_0x3322e3?_0x3322e3[_0x352bab('0x3')](''):[]);},'get':function(){const _0x38550e=_0x254170;return this['getDataValue'](_0x38550e('0x2'))?this[_0x38550e('0x5')](_0x38550e('0x2'))['split'](''):[];}}}; \ No newline at end of file +const a811_0x55db=['BOOLEAN','crudPermissions','join','INTEGER','exports','STRING','attributes','setDataValue','split','getDataValue','sequelize'];(function(_0x53c107,_0x585eac){const _0x55db86=function(_0x15d5b9){while(--_0x15d5b9){_0x53c107['push'](_0x53c107['shift']());}};_0x55db86(++_0x585eac);}(a811_0x55db,0x6d));const a811_0x15d5=function(_0x53c107,_0x585eac){_0x53c107=_0x53c107-0x17e;let _0x55db86=a811_0x55db[_0x53c107];return _0x55db86;};const a811_0x1008c9=a811_0x15d5;'use strict';const {DataTypes}=require(a811_0x1008c9(0x17e)),attributes={'name':{'type':DataTypes[a811_0x1008c9(0x184)],'allowNull':![]},'category':{'type':DataTypes[a811_0x1008c9(0x184)],'allowNull':![]},'sectionId':{'type':DataTypes[a811_0x1008c9(0x182)],'allowNull':![]},'enabled':{'type':DataTypes[a811_0x1008c9(0x17f)],'defaultValue':null},'autoAssociation':{'type':DataTypes['BOOLEAN'],'defaultValue':null},'crudPermissions':{'type':DataTypes[a811_0x1008c9(0x184)],'set':function(_0x34db8e){const _0x2c4488=a811_0x1008c9;this[_0x2c4488(0x186)](_0x2c4488(0x180),_0x34db8e?_0x34db8e[_0x2c4488(0x181)](''):[]);},'get':function(){const _0x358215=a811_0x1008c9;return this[_0x358215(0x188)](_0x358215(0x180))?this[_0x358215(0x188)](_0x358215(0x180))[_0x358215(0x187)](''):[];}}};module[a811_0x1008c9(0x183)][a811_0x1008c9(0x185)]=attributes; \ No newline at end of file diff --git a/server/api/userProfileSection/userProfileSection.controller.js b/server/api/userProfileSection/userProfileSection.controller.js index 119ca6e..654f60d 100644 --- a/server/api/userProfileSection/userProfileSection.controller.js +++ b/server/api/userProfileSection/userProfileSection.controller.js @@ -1 +1 @@ -const a678_0x1c6c=['Content-Range','../../config/logger','sort','UserProfileSection','error','nolimit','where','undefined','rawAttributes','type','update','describe','merge','findAll','../../components/parsers/qs','order','fieldName','keys','include','status','intersection','name','body','count','stack','set','params','show','json','map','includeAll','destroy','attributes','model','then','limit','VIRTUAL','offset','options','filters','create','api','catch','query','../../mysqldb','findOne','fields','like','index','length'];(function(_0x1d82fa,_0x1c6c55){const _0x2ba217=function(_0x2cfaca){while(--_0x2cfaca){_0x1d82fa['push'](_0x1d82fa['shift']());}};_0x2ba217(++_0x1c6c55);}(a678_0x1c6c,0xe3));const a678_0x2ba2=function(_0x1d82fa,_0x1c6c55){_0x1d82fa=_0x1d82fa-0x0;let _0x2ba217=a678_0x1c6c[_0x1d82fa];return _0x2ba217;};const _0x30a6eb=a678_0x2ba2;'use strict';const _=require('lodash'),qs=require(_0x30a6eb('0x25')),logger=require(_0x30a6eb('0x18'))(_0x30a6eb('0xe')),db=require(_0x30a6eb('0x11'))['db'],{Op}=require('sequelize');function respondWithResult(_0x2cfaca,_0x155a6e){return _0x155a6e=_0x155a6e||0xc8,function(_0x2277d3){const _0x564148=a678_0x2ba2;if(_0x2277d3)return _0x2cfaca[_0x564148('0x2a')](_0x155a6e)['json'](_0x2277d3);};}function respondWithFilteredResult(_0xbb4395,_0x43f49e){return function(_0x3a52d2){const _0xb92991=a678_0x2ba2;if(_0x3a52d2){const _0x283862=_0x3a52d2[_0xb92991('0x2e')],_0x3dcd10=_0x43f49e[_0xb92991('0xa')];let _0x300bb0=_0x43f49e[_0xb92991('0xa')]+_0x43f49e[_0xb92991('0x8')],_0x4b2b4f;return _0x300bb0>=_0x283862?(_0x300bb0=_0x283862,_0x4b2b4f=0xc8):_0x4b2b4f=0xce,_0xbb4395[_0xb92991('0x2a')](_0x4b2b4f),_0xbb4395[_0xb92991('0x30')](_0xb92991('0x17'),_0x3dcd10+'-'+_0x300bb0+'/'+_0x283862)[_0xb92991('0x1')](_0x3a52d2);}return null;};}function saveUpdates(_0x510bd0){return function(_0x1efd7a){const _0xfcf8ab=a678_0x2ba2;if(_0x1efd7a)return _0x1efd7a[_0xfcf8ab('0x21')](_0x510bd0)[_0xfcf8ab('0x7')](function(_0x43fc8c){return _0x43fc8c;});return null;};}function removeEntity(_0x7ebb3a){return function(_0x3d3a95){const _0x139aba=a678_0x2ba2;if(_0x3d3a95)return _0x3d3a95[_0x139aba('0x4')]()['then'](function(){const _0x5da6d9=_0x139aba;_0x7ebb3a[_0x5da6d9('0x2a')](0xcc)['end']();});};}function handleEntityNotFound(_0x57cf6d){return function(_0x5476ae){return!_0x5476ae&&_0x57cf6d['sendStatus'](0x194),_0x5476ae;};}function handleError(_0x51a3ba,_0x386937){return _0x386937=_0x386937||0x1f4,function(_0x1b07e7){const _0x3545c5=a678_0x2ba2;logger[_0x3545c5('0x1b')](_0x1b07e7[_0x3545c5('0x2f')]),_0x1b07e7[_0x3545c5('0x2c')]&&delete _0x1b07e7[_0x3545c5('0x2c')],_0x51a3ba[_0x3545c5('0x2a')](_0x386937)['send'](_0x1b07e7);};}exports[_0x30a6eb('0x15')]=function(_0x5ac871,_0x5bfb48){const _0x55d7f9=_0x30a6eb;let _0x1c7014={};const _0x32a25c={},_0x57c220={'count':0x0,'rows':[]},_0x4ba473=_[_0x55d7f9('0x2')](db[_0x55d7f9('0x1a')][_0x55d7f9('0x1f')],function(_0x4736fb){const _0xfada3d=_0x55d7f9;return{'name':_0x4736fb[_0xfada3d('0x27')],'type':_0x4736fb[_0xfada3d('0x20')]['key']};});_0x32a25c['model']=_[_0x55d7f9('0x2')](_0x4ba473,'name'),_0x32a25c[_0x55d7f9('0x10')]=_[_0x55d7f9('0x28')](_0x5ac871[_0x55d7f9('0x10')]),_0x32a25c[_0x55d7f9('0xc')]=_['intersection'](_0x32a25c['model'],_0x32a25c['query']),_0x1c7014[_0x55d7f9('0x5')]=_[_0x55d7f9('0x2b')](_0x32a25c[_0x55d7f9('0x6')],qs[_0x55d7f9('0x13')](_0x5ac871[_0x55d7f9('0x10')][_0x55d7f9('0x13')])),_0x1c7014[_0x55d7f9('0x5')]=_0x1c7014[_0x55d7f9('0x5')][_0x55d7f9('0x16')]?_0x1c7014[_0x55d7f9('0x5')]:_0x32a25c[_0x55d7f9('0x6')];typeof _0x5ac871['query'][_0x55d7f9('0x1c')]===_0x55d7f9('0x1e')&&(_0x1c7014[_0x55d7f9('0x8')]=qs[_0x55d7f9('0x8')](_0x5ac871[_0x55d7f9('0x10')]['limit']),_0x1c7014[_0x55d7f9('0xa')]=qs[_0x55d7f9('0xa')](_0x5ac871[_0x55d7f9('0x10')][_0x55d7f9('0xa')]));_0x1c7014[_0x55d7f9('0x26')]=qs[_0x55d7f9('0x19')](_0x5ac871[_0x55d7f9('0x10')]['sort']),_0x1c7014[_0x55d7f9('0x1d')]=qs[_0x55d7f9('0xc')](_['pick'](_0x5ac871[_0x55d7f9('0x10')],_0x32a25c['filters']),_0x4ba473);_0x5ac871['query']['filter']&&(_0x1c7014['where']=_[_0x55d7f9('0x23')](_0x1c7014[_0x55d7f9('0x1d')],{[Op['or']]:_['map'](_0x4ba473,function(_0x4ae439){const _0x22e135=_0x55d7f9;if(_0x4ae439[_0x22e135('0x20')]!==_0x22e135('0x9')){const _0x32990e={};return _0x32990e[_0x4ae439[_0x22e135('0x2c')]]={[Op[_0x22e135('0x14')]]:'%'+_0x5ac871[_0x22e135('0x10')]['filter']+'%'},_0x32990e;}})}));_0x1c7014=_[_0x55d7f9('0x23')]({},_0x1c7014,_0x5ac871['options']);const _0x492eec={'where':_0x1c7014[_0x55d7f9('0x1d')]};return db[_0x55d7f9('0x1a')][_0x55d7f9('0x2e')](_0x492eec)[_0x55d7f9('0x7')](function(_0x3dcd9e){const _0x5091bd=_0x55d7f9;return _0x57c220[_0x5091bd('0x2e')]=_0x3dcd9e,_0x5ac871[_0x5091bd('0x10')][_0x5091bd('0x3')]&&(_0x1c7014[_0x5091bd('0x29')]=[{'all':!![]}]),db['UserProfileSection'][_0x5091bd('0x24')](_0x1c7014);})[_0x55d7f9('0x7')](function(_0x1ab28c){return _0x57c220['rows']=_0x1ab28c,_0x57c220;})['then'](respondWithFilteredResult(_0x5bfb48,_0x1c7014))[_0x55d7f9('0xf')](handleError(_0x5bfb48,null));},exports[_0x30a6eb('0x0')]=function(_0x1d0b73,_0xa1621e){const _0x34e6f7=_0x30a6eb;let _0x2b5557={'raw':![],'where':{'id':_0x1d0b73[_0x34e6f7('0x31')]['id']}};const _0x3bde13={};return _0x3bde13['model']=_[_0x34e6f7('0x28')](db[_0x34e6f7('0x1a')]['rawAttributes']),_0x3bde13[_0x34e6f7('0x10')]=_[_0x34e6f7('0x28')](_0x1d0b73[_0x34e6f7('0x10')]),_0x3bde13[_0x34e6f7('0xc')]=_[_0x34e6f7('0x2b')](_0x3bde13['model'],_0x3bde13[_0x34e6f7('0x10')]),_0x2b5557[_0x34e6f7('0x5')]=_[_0x34e6f7('0x2b')](_0x3bde13[_0x34e6f7('0x6')],qs[_0x34e6f7('0x13')](_0x1d0b73[_0x34e6f7('0x10')][_0x34e6f7('0x13')])),_0x2b5557[_0x34e6f7('0x5')]=_0x2b5557['attributes'][_0x34e6f7('0x16')]?_0x2b5557[_0x34e6f7('0x5')]:_0x3bde13['model'],_0x1d0b73['query'][_0x34e6f7('0x3')]&&(_0x2b5557[_0x34e6f7('0x29')]=[{'all':!![]}]),_0x2b5557=_[_0x34e6f7('0x23')]({},_0x2b5557,_0x1d0b73[_0x34e6f7('0xb')]),db[_0x34e6f7('0x1a')]['findOne'](_0x2b5557)[_0x34e6f7('0x7')](handleEntityNotFound(_0xa1621e,null))[_0x34e6f7('0x7')](respondWithResult(_0xa1621e,null))['catch'](handleError(_0xa1621e,null));},exports[_0x30a6eb('0xd')]=function(_0x20147c,_0x18990e){const _0x113254=_0x30a6eb;return db['UserProfileSection']['create'](_0x20147c[_0x113254('0x2d')],{})['then'](respondWithResult(_0x18990e,0xc9))[_0x113254('0xf')](handleError(_0x18990e,null));},exports[_0x30a6eb('0x21')]=function(_0x448a62,_0x100827){const _0x4a71d3=_0x30a6eb;return _0x448a62[_0x4a71d3('0x2d')]['id']&&delete _0x448a62[_0x4a71d3('0x2d')]['id'],db[_0x4a71d3('0x1a')][_0x4a71d3('0x12')]({'where':{'id':_0x448a62[_0x4a71d3('0x31')]['id']}})[_0x4a71d3('0x7')](handleEntityNotFound(_0x100827,null))[_0x4a71d3('0x7')](saveUpdates(_0x448a62[_0x4a71d3('0x2d')],null))['then'](respondWithResult(_0x100827,null))[_0x4a71d3('0xf')](handleError(_0x100827,null));},exports[_0x30a6eb('0x4')]=function(_0x394e7b,_0x260155){const _0x1aec97=_0x30a6eb;return db[_0x1aec97('0x1a')][_0x1aec97('0x12')]({'where':{'id':_0x394e7b[_0x1aec97('0x31')]['id']}})[_0x1aec97('0x7')](handleEntityNotFound(_0x260155,null))[_0x1aec97('0x7')](removeEntity(_0x260155,null))[_0x1aec97('0xf')](handleError(_0x260155,null));},exports[_0x30a6eb('0x22')]=function(_0x2eb5f4,_0x1ec1f5){const _0x21c10c=_0x30a6eb;return db[_0x21c10c('0x1a')][_0x21c10c('0x22')]()[_0x21c10c('0x7')](respondWithResult(_0x1ec1f5,null))[_0x21c10c('0xf')](handleError(_0x1ec1f5,null));}; \ No newline at end of file +const a812_0x1db0=['rawAttributes','map','json','../../config/logger','model','params','destroy','set','length','UserProfileSection','findOne','Content-Range','fields','index','limit','offset','order','rows','body','query','undefined','../../components/parsers/qs','error','VIRTUAL','keys','update','include','sendStatus','then','name','catch','end','options','intersection','../../mysqldb','api','filters','includeAll','attributes','status','count','show','merge','key','filter','describe','create','stack','where','sort'];(function(_0xc6d1ce,_0x5487a0){const _0x1db08e=function(_0x2fd949){while(--_0x2fd949){_0xc6d1ce['push'](_0xc6d1ce['shift']());}};_0x1db08e(++_0x5487a0);}(a812_0x1db0,0xce));const a812_0x2fd9=function(_0xc6d1ce,_0x5487a0){_0xc6d1ce=_0xc6d1ce-0x1d7;let _0x1db08e=a812_0x1db0[_0xc6d1ce];return _0x1db08e;};const a812_0xb05799=a812_0x2fd9;'use strict';const _=require('lodash'),qs=require(a812_0xb05799(0x1e6)),logger=require(a812_0xb05799(0x206))(a812_0xb05799(0x1f4)),{db}=require(a812_0xb05799(0x1f3)),{Op}=require('sequelize');function respondWithResult(_0xd123ed,_0x231422){return _0x231422=_0x231422||0xc8,function(_0x6314d){const _0x395b70=a812_0x2fd9;if(_0x6314d)return _0xd123ed[_0x395b70(0x1f8)](_0x231422)[_0x395b70(0x205)](_0x6314d);};}function respondWithFilteredResult(_0x5ee9c3,_0x4ebe85){return function(_0x582a7c){const _0x200735=a812_0x2fd9;if(_0x582a7c){const _0x53036e=_0x582a7c[_0x200735(0x1f9)],_0x3ba8d5=_0x4ebe85[_0x200735(0x1e0)];let _0x4d88eb=_0x4ebe85[_0x200735(0x1e0)]+_0x4ebe85[_0x200735(0x1df)],_0x105562;return _0x4d88eb>=_0x53036e?(_0x4d88eb=_0x53036e,_0x105562=0xc8):_0x105562=0xce,_0x5ee9c3[_0x200735(0x1f8)](_0x105562),_0x5ee9c3[_0x200735(0x1d8)](_0x200735(0x1dc),_0x3ba8d5+'-'+_0x4d88eb+'/'+_0x53036e)[_0x200735(0x205)](_0x582a7c);}return null;};}function saveUpdates(_0x2c58c1){return function(_0x40861e){const _0x67a1c5=a812_0x2fd9;if(_0x40861e)return _0x40861e['update'](_0x2c58c1)[_0x67a1c5(0x1ed)](function(_0x424029){return _0x424029;});return null;};}function removeEntity(_0x316c00){return function(_0x4d3102){const _0x1fcd88=a812_0x2fd9;if(_0x4d3102)return _0x4d3102[_0x1fcd88(0x1d7)]()[_0x1fcd88(0x1ed)](function(){const _0x5be482=_0x1fcd88;_0x316c00[_0x5be482(0x1f8)](0xcc)[_0x5be482(0x1f0)]();});};}function handleEntityNotFound(_0x12fa83){return function(_0x45b37c){const _0x17c8f9=a812_0x2fd9;return!_0x45b37c&&_0x12fa83[_0x17c8f9(0x1ec)](0x194),_0x45b37c;};}function handleError(_0x46ffb4,_0x28f84c){return _0x28f84c=_0x28f84c||0x1f4,function(_0x1b0d97){const _0x125c2a=a812_0x2fd9;logger[_0x125c2a(0x1e7)](_0x1b0d97[_0x125c2a(0x200)]),_0x1b0d97[_0x125c2a(0x1ee)]&&delete _0x1b0d97[_0x125c2a(0x1ee)],_0x46ffb4[_0x125c2a(0x1f8)](_0x28f84c)['send'](_0x1b0d97);};}exports[a812_0xb05799(0x1de)]=function(_0x4bcaa1,_0x31e428){const _0x200b42=a812_0xb05799;let _0x117ff2={};const _0x65f489={},_0x3af469={'count':0x0,'rows':[]},_0x26180e=_[_0x200b42(0x204)](db[_0x200b42(0x1da)][_0x200b42(0x203)],function(_0x47c3d7){const _0x8f21d3=_0x200b42;return{'name':_0x47c3d7['fieldName'],'type':_0x47c3d7['type'][_0x8f21d3(0x1fc)]};});_0x65f489['model']=_['map'](_0x26180e,_0x200b42(0x1ee)),_0x65f489['query']=_[_0x200b42(0x1e9)](_0x4bcaa1[_0x200b42(0x1e4)]),_0x65f489[_0x200b42(0x1f5)]=_[_0x200b42(0x1f2)](_0x65f489[_0x200b42(0x207)],_0x65f489[_0x200b42(0x1e4)]),_0x117ff2[_0x200b42(0x1f7)]=_['intersection'](_0x65f489[_0x200b42(0x207)],qs[_0x200b42(0x1dd)](_0x4bcaa1[_0x200b42(0x1e4)][_0x200b42(0x1dd)])),_0x117ff2['attributes']=_0x117ff2['attributes'][_0x200b42(0x1d9)]?_0x117ff2[_0x200b42(0x1f7)]:_0x65f489[_0x200b42(0x207)];typeof _0x4bcaa1[_0x200b42(0x1e4)]['nolimit']===_0x200b42(0x1e5)&&(_0x117ff2[_0x200b42(0x1df)]=qs['limit'](_0x4bcaa1['query'][_0x200b42(0x1df)]),_0x117ff2[_0x200b42(0x1e0)]=qs[_0x200b42(0x1e0)](_0x4bcaa1[_0x200b42(0x1e4)][_0x200b42(0x1e0)]));_0x117ff2[_0x200b42(0x1e1)]=qs[_0x200b42(0x202)](_0x4bcaa1[_0x200b42(0x1e4)][_0x200b42(0x202)]),_0x117ff2[_0x200b42(0x201)]=qs[_0x200b42(0x1f5)](_['pick'](_0x4bcaa1[_0x200b42(0x1e4)],_0x65f489[_0x200b42(0x1f5)]),_0x26180e);_0x4bcaa1['query'][_0x200b42(0x1fd)]&&(_0x117ff2[_0x200b42(0x201)]=_[_0x200b42(0x1fb)](_0x117ff2[_0x200b42(0x201)],{[Op['or']]:_['map'](_0x26180e,function(_0x85b927){const _0x2a17df=_0x200b42;if(_0x85b927['type']!==_0x2a17df(0x1e8)){const _0x31d1d9={};return _0x31d1d9[_0x85b927['name']]={[Op['like']]:'%'+_0x4bcaa1[_0x2a17df(0x1e4)][_0x2a17df(0x1fd)]+'%'},_0x31d1d9;}})}));_0x117ff2=_[_0x200b42(0x1fb)]({},_0x117ff2,_0x4bcaa1['options']);const _0x438c32={'where':_0x117ff2['where']};return db[_0x200b42(0x1da)][_0x200b42(0x1f9)](_0x438c32)[_0x200b42(0x1ed)](function(_0x529ea4){const _0x366764=_0x200b42;return _0x3af469[_0x366764(0x1f9)]=_0x529ea4,_0x4bcaa1[_0x366764(0x1e4)][_0x366764(0x1f6)]&&(_0x117ff2[_0x366764(0x1eb)]=[{'all':!![]}]),db[_0x366764(0x1da)]['findAll'](_0x117ff2);})['then'](function(_0x3550a5){const _0x3191f8=_0x200b42;return _0x3af469[_0x3191f8(0x1e2)]=_0x3550a5,_0x3af469;})[_0x200b42(0x1ed)](respondWithFilteredResult(_0x31e428,_0x117ff2))[_0x200b42(0x1ef)](handleError(_0x31e428,null));},exports[a812_0xb05799(0x1fa)]=function(_0x2235ae,_0x14dcbe){const _0x26c215=a812_0xb05799;let _0x1853a4={'raw':![],'where':{'id':_0x2235ae['params']['id']}};const _0x78a993={};return _0x78a993[_0x26c215(0x207)]=_['keys'](db[_0x26c215(0x1da)][_0x26c215(0x203)]),_0x78a993[_0x26c215(0x1e4)]=_[_0x26c215(0x1e9)](_0x2235ae[_0x26c215(0x1e4)]),_0x78a993['filters']=_[_0x26c215(0x1f2)](_0x78a993[_0x26c215(0x207)],_0x78a993[_0x26c215(0x1e4)]),_0x1853a4[_0x26c215(0x1f7)]=_[_0x26c215(0x1f2)](_0x78a993[_0x26c215(0x207)],qs['fields'](_0x2235ae[_0x26c215(0x1e4)]['fields'])),_0x1853a4['attributes']=_0x1853a4['attributes']['length']?_0x1853a4[_0x26c215(0x1f7)]:_0x78a993[_0x26c215(0x207)],_0x2235ae[_0x26c215(0x1e4)][_0x26c215(0x1f6)]&&(_0x1853a4['include']=[{'all':!![]}]),_0x1853a4=_['merge']({},_0x1853a4,_0x2235ae[_0x26c215(0x1f1)]),db['UserProfileSection']['findOne'](_0x1853a4)[_0x26c215(0x1ed)](handleEntityNotFound(_0x14dcbe,null))['then'](respondWithResult(_0x14dcbe,null))['catch'](handleError(_0x14dcbe,null));},exports[a812_0xb05799(0x1ff)]=function(_0x3ccd86,_0x5c8b83){const _0x281240=a812_0xb05799;return db[_0x281240(0x1da)][_0x281240(0x1ff)](_0x3ccd86[_0x281240(0x1e3)],{})['then'](respondWithResult(_0x5c8b83,0xc9))['catch'](handleError(_0x5c8b83,null));},exports[a812_0xb05799(0x1ea)]=function(_0x464f90,_0x22ee6a){const _0x46d8a4=a812_0xb05799;return _0x464f90[_0x46d8a4(0x1e3)]['id']&&delete _0x464f90[_0x46d8a4(0x1e3)]['id'],db[_0x46d8a4(0x1da)][_0x46d8a4(0x1db)]({'where':{'id':_0x464f90[_0x46d8a4(0x208)]['id']}})['then'](handleEntityNotFound(_0x22ee6a,null))[_0x46d8a4(0x1ed)](saveUpdates(_0x464f90[_0x46d8a4(0x1e3)],null))[_0x46d8a4(0x1ed)](respondWithResult(_0x22ee6a,null))['catch'](handleError(_0x22ee6a,null));},exports[a812_0xb05799(0x1d7)]=function(_0x82feab,_0x18ff27){const _0x39521b=a812_0xb05799;return db[_0x39521b(0x1da)][_0x39521b(0x1db)]({'where':{'id':_0x82feab[_0x39521b(0x208)]['id']}})['then'](handleEntityNotFound(_0x18ff27,null))[_0x39521b(0x1ed)](removeEntity(_0x18ff27,null))[_0x39521b(0x1ef)](handleError(_0x18ff27,null));},exports[a812_0xb05799(0x1fe)]=function(_0x122b61,_0x4eb79a){const _0x5aa8d5=a812_0xb05799;return db['UserProfileSection'][_0x5aa8d5(0x1fe)]()['then'](respondWithResult(_0x4eb79a,null))[_0x5aa8d5(0x1ef)](handleError(_0x4eb79a,null));}; \ No newline at end of file diff --git a/server/api/userProfileSection/userProfileSection.model.js b/server/api/userProfileSection/userProfileSection.model.js index 6635a99..0fcfd11 100644 --- a/server/api/userProfileSection/userProfileSection.model.js +++ b/server/api/userProfileSection/userProfileSection.model.js @@ -1 +1 @@ -const a679_0x7640=['UserProfileSection','define','./userProfileSection.attributes','exports','userProfileId','sectionId'];(function(_0x548c8c,_0x764055){const _0x5c19b1=function(_0x8fa950){while(--_0x8fa950){_0x548c8c['push'](_0x548c8c['shift']());}};_0x5c19b1(++_0x764055);}(a679_0x7640,0x7e));const a679_0x5c19=function(_0x548c8c,_0x764055){_0x548c8c=_0x548c8c-0x0;let _0x5c19b1=a679_0x7640[_0x548c8c];return _0x5c19b1;};const _0x18d345=a679_0x5c19;'use strict';const attributes=require(_0x18d345('0x2'));module[_0x18d345('0x3')]=function(_0x8fa950){const _0x3df760=_0x18d345,_0x24daf6=_0x8fa950[_0x3df760('0x1')](_0x3df760('0x0'),attributes,{'tableName':'user_profile_has_sections','paranoid':![],'indexes':[{'name':'compositeIndex','fields':[_0x3df760('0x5'),_0x3df760('0x4')]}],'timestamps':!![]});return _0x24daf6;}; \ No newline at end of file +const a813_0x4538=['exports','./userProfileSection.options','./userProfileSection.attributes','init','UserProfileSection'];(function(_0x239886,_0x85664e){const _0x45384c=function(_0x3f5219){while(--_0x3f5219){_0x239886['push'](_0x239886['shift']());}};_0x45384c(++_0x85664e);}(a813_0x4538,0x6c));const a813_0x3f52=function(_0x239886,_0x85664e){_0x239886=_0x239886-0x1a4;let _0x45384c=a813_0x4538[_0x239886];return _0x45384c;};const a813_0x96bbc6=a813_0x3f52;'use strict';const {Model}=require('sequelize'),{attributes}=require(a813_0x96bbc6(0x1a8)),{options}=require(a813_0x96bbc6(0x1a7));class UserProfileSection extends Model{}function init(_0x470d47,_0x26ad4c){const _0xfbcfca=a813_0x96bbc6,_0x52ab7c=options(_0x470d47),_0x3892bd=typeof _0x26ad4c==='function'?_0x26ad4c(_0x52ab7c):_0x52ab7c;return UserProfileSection[_0xfbcfca(0x1a4)](attributes,_0x3892bd),UserProfileSection;}module[a813_0x96bbc6(0x1a6)][a813_0x96bbc6(0x1a5)]=UserProfileSection,module[a813_0x96bbc6(0x1a6)]['init']=init; \ No newline at end of file diff --git a/server/api/userProfileSection/userProfileSection.options.js b/server/api/userProfileSection/userProfileSection.options.js new file mode 100644 index 0000000..eb9f5f6 --- /dev/null +++ b/server/api/userProfileSection/userProfileSection.options.js @@ -0,0 +1 @@ +var a814_0x87b3=['sectionId','user_profile_has_sections','exports','userProfileId','compositeIndex'];(function(_0x3a47ea,_0x18fc87){var _0x87b3a1=function(_0x299852){while(--_0x299852){_0x3a47ea['push'](_0x3a47ea['shift']());}};_0x87b3a1(++_0x18fc87);}(a814_0x87b3,0x1ae));var a814_0x2998=function(_0x3a47ea,_0x18fc87){_0x3a47ea=_0x3a47ea-0x10d;var _0x87b3a1=a814_0x87b3[_0x3a47ea];return _0x87b3a1;};var a814_0x214ea3=a814_0x2998;function options(_0x5386a3){var _0x5cc414=a814_0x2998;return{'sequelize':_0x5386a3,'tableName':_0x5cc414(0x10e),'paranoid':![],'indexes':[{'name':_0x5cc414(0x111),'fields':[_0x5cc414(0x10d),_0x5cc414(0x110)]}],'timestamps':!![]};}module[a814_0x214ea3(0x10f)]['options']=options; \ No newline at end of file diff --git a/server/api/userSmsQueue/index.js b/server/api/userSmsQueue/index.js index b2222e9..0d3f8bb 100644 --- a/server/api/userSmsQueue/index.js +++ b/server/api/userSmsQueue/index.js @@ -1 +1 @@ -const a680_0x5813=['Router','express'];(function(_0x1b4ea2,_0x58131c){const _0x217c5a=function(_0x2fa146){while(--_0x2fa146){_0x1b4ea2['push'](_0x1b4ea2['shift']());}};_0x217c5a(++_0x58131c);}(a680_0x5813,0xcb));const a680_0x217c=function(_0x1b4ea2,_0x58131c){_0x1b4ea2=_0x1b4ea2-0x0;let _0x217c5a=a680_0x5813[_0x1b4ea2];return _0x217c5a;};const _0x1f3d32=a680_0x217c;'use strict';const express=require(_0x1f3d32('0x0')),router=express[_0x1f3d32('0x1')]();module['exports']=router; \ No newline at end of file +const a815_0x2d61=['exports','express','Router'];(function(_0x3ee394,_0x2c2abf){const _0x2d6125=function(_0x3b1255){while(--_0x3b1255){_0x3ee394['push'](_0x3ee394['shift']());}};_0x2d6125(++_0x2c2abf);}(a815_0x2d61,0x18b));const a815_0x3b12=function(_0x3ee394,_0x2c2abf){_0x3ee394=_0x3ee394-0x1f3;let _0x2d6125=a815_0x2d61[_0x3ee394];return _0x2d6125;};const a815_0x57a6df=a815_0x3b12;'use strict';const express=require(a815_0x57a6df(0x1f5)),router=express[a815_0x57a6df(0x1f3)]();module[a815_0x57a6df(0x1f4)]=router; \ No newline at end of file diff --git a/server/api/userSmsQueue/userSmsQueue.attributes.js b/server/api/userSmsQueue/userSmsQueue.attributes.js index ccd9cf5..05e8f75 100644 --- a/server/api/userSmsQueue/userSmsQueue.attributes.js +++ b/server/api/userSmsQueue/userSmsQueue.attributes.js @@ -1 +1 @@ -const a681_0x317c=['INTEGER','sequelize','exports'];(function(_0x215076,_0x317cbf){const _0x4e41c9=function(_0x2c5979){while(--_0x2c5979){_0x215076['push'](_0x215076['shift']());}};_0x4e41c9(++_0x317cbf);}(a681_0x317c,0x81));const a681_0x4e41=function(_0x215076,_0x317cbf){_0x215076=_0x215076-0x0;let _0x4e41c9=a681_0x317c[_0x215076];return _0x4e41c9;};const _0x330bb8=a681_0x4e41;'use strict';const Sequelize=require(_0x330bb8('0x1'));module[_0x330bb8('0x2')]={'penalty':{'type':Sequelize[_0x330bb8('0x0')],'defaultValue':0x0}}; \ No newline at end of file +const a816_0x5999=['sequelize','exports','INTEGER','attributes'];(function(_0x50320d,_0x4138f5){const _0x5999b5=function(_0x2554e0){while(--_0x2554e0){_0x50320d['push'](_0x50320d['shift']());}};_0x5999b5(++_0x4138f5);}(a816_0x5999,0x13d));const a816_0x2554=function(_0x50320d,_0x4138f5){_0x50320d=_0x50320d-0x1c8;let _0x5999b5=a816_0x5999[_0x50320d];return _0x5999b5;};const a816_0x192fc0=a816_0x2554;'use strict';const {DataTypes}=require(a816_0x192fc0(0x1cb)),attributes={'penalty':{'type':DataTypes[a816_0x192fc0(0x1c9)],'defaultValue':0x0}};module[a816_0x192fc0(0x1c8)][a816_0x192fc0(0x1ca)]=attributes; \ No newline at end of file diff --git a/server/api/userSmsQueue/userSmsQueue.model.js b/server/api/userSmsQueue/userSmsQueue.model.js index 67e9a6c..31f0cdf 100644 --- a/server/api/userSmsQueue/userSmsQueue.model.js +++ b/server/api/userSmsQueue/userSmsQueue.model.js @@ -1 +1 @@ -const a682_0xdfa8=['UserSmsQueue','exports','user_has_sms_queues','./userSmsQueue.attributes'];(function(_0x51263a,_0xdfa82a){const _0x444c96=function(_0x3747ad){while(--_0x3747ad){_0x51263a['push'](_0x51263a['shift']());}};_0x444c96(++_0xdfa82a);}(a682_0xdfa8,0x1af));const a682_0x444c=function(_0x51263a,_0xdfa82a){_0x51263a=_0x51263a-0x0;let _0x444c96=a682_0xdfa8[_0x51263a];return _0x444c96;};const _0x558391=a682_0x444c;'use strict';const attributes=require(_0x558391('0x0'));module[_0x558391('0x2')]=function(_0x3747ad){const _0x198e4b=_0x558391,_0x13d11b=_0x3747ad['define'](_0x198e4b('0x1'),attributes,{'tableName':_0x198e4b('0x3'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x13d11b;}; \ No newline at end of file +const a817_0x22cd=['init','UserSmsQueue','./userSmsQueue.attributes','sequelize','function','exports','./userSmsQueue.options'];(function(_0xc7c29e,_0x408aec){const _0x22cda7=function(_0x3f7696){while(--_0x3f7696){_0xc7c29e['push'](_0xc7c29e['shift']());}};_0x22cda7(++_0x408aec);}(a817_0x22cd,0x7a));const a817_0x3f76=function(_0xc7c29e,_0x408aec){_0xc7c29e=_0xc7c29e-0x124;let _0x22cda7=a817_0x22cd[_0xc7c29e];return _0x22cda7;};const a817_0x5ec5c7=a817_0x3f76;'use strict';const {Model}=require(a817_0x5ec5c7(0x124)),{attributes}=require(a817_0x5ec5c7(0x12a)),{options}=require(a817_0x5ec5c7(0x127));class UserSmsQueue extends Model{}function init(_0x2d7c64,_0x20ade1){const _0x12300e=a817_0x5ec5c7,_0x2bfc31=options(_0x2d7c64),_0x3b7288=typeof _0x20ade1===_0x12300e(0x125)?_0x20ade1(_0x2bfc31):_0x2bfc31;return UserSmsQueue[_0x12300e(0x128)](attributes,_0x3b7288),UserSmsQueue;}module['exports'][a817_0x5ec5c7(0x129)]=UserSmsQueue,module[a817_0x5ec5c7(0x126)]['init']=init; \ No newline at end of file diff --git a/server/api/userSmsQueue/userSmsQueue.options.js b/server/api/userSmsQueue/userSmsQueue.options.js new file mode 100644 index 0000000..cf64638 --- /dev/null +++ b/server/api/userSmsQueue/userSmsQueue.options.js @@ -0,0 +1 @@ +var a818_0x2083=['exports','options'];(function(_0x4d8b9a,_0x388a39){var _0x208326=function(_0x557f16){while(--_0x557f16){_0x4d8b9a['push'](_0x4d8b9a['shift']());}};_0x208326(++_0x388a39);}(a818_0x2083,0x14c));var a818_0x557f=function(_0x4d8b9a,_0x388a39){_0x4d8b9a=_0x4d8b9a-0x1c0;var _0x208326=a818_0x2083[_0x4d8b9a];return _0x208326;};var a818_0x41c186=a818_0x557f;function options(_0xd04645){return{'sequelize':_0xd04645,'tableName':'user_has_sms_queues','paranoid':![],'indexes':[],'timestamps':!![]};}module[a818_0x41c186(0x1c0)][a818_0x41c186(0x1c1)]=options; \ No newline at end of file diff --git a/server/api/userVoiceQueue/index.js b/server/api/userVoiceQueue/index.js index 59f1b39..40871e8 100644 --- a/server/api/userVoiceQueue/index.js +++ b/server/api/userVoiceQueue/index.js @@ -1 +1 @@ -const a683_0x14d0=['express'];(function(_0xd6aad6,_0x14d0b1){const _0x240583=function(_0x429d3e){while(--_0x429d3e){_0xd6aad6['push'](_0xd6aad6['shift']());}};_0x240583(++_0x14d0b1);}(a683_0x14d0,0x1e2));const a683_0x2405=function(_0xd6aad6,_0x14d0b1){_0xd6aad6=_0xd6aad6-0x0;let _0x240583=a683_0x14d0[_0xd6aad6];return _0x240583;};const _0x35dff7=a683_0x2405;'use strict';const express=require(_0x35dff7('0x0')),router=express['Router']();module['exports']=router; \ No newline at end of file +'use strict';const express=require('express'),router=express['Router']();module['exports']=router; \ No newline at end of file diff --git a/server/api/userVoiceQueue/userVoiceQueue.attributes.js b/server/api/userVoiceQueue/userVoiceQueue.attributes.js index eaac50b..9daa8f5 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 a820_0x3ed6=['exports','attributes','sequelize','INTEGER'];(function(_0x533d73,_0xb561f4){const _0x3ed687=function(_0x40a063){while(--_0x40a063){_0x533d73['push'](_0x533d73['shift']());}};_0x3ed687(++_0xb561f4);}(a820_0x3ed6,0x174));const a820_0x40a0=function(_0x533d73,_0xb561f4){_0x533d73=_0x533d73-0x15d;let _0x3ed687=a820_0x3ed6[_0x533d73];return _0x3ed687;};const a820_0x26a85d=a820_0x40a0;'use strict';const {DataTypes}=require(a820_0x26a85d(0x15f)),attributes={'penalty':{'type':DataTypes[a820_0x26a85d(0x160)],'defaultValue':0x0}};module[a820_0x26a85d(0x15d)][a820_0x26a85d(0x15e)]=attributes; \ No newline at end of file diff --git a/server/api/userVoiceQueue/userVoiceQueue.model.js b/server/api/userVoiceQueue/userVoiceQueue.model.js index 35e11b0..c70e847 100644 --- a/server/api/userVoiceQueue/userVoiceQueue.model.js +++ b/server/api/userVoiceQueue/userVoiceQueue.model.js @@ -1 +1 @@ -const a685_0x4d55=['define','UserVoiceQueue','user_has_voice_queues'];(function(_0x3e4aa3,_0x4d55ef){const _0xdba230=function(_0x26c342){while(--_0x26c342){_0x3e4aa3['push'](_0x3e4aa3['shift']());}};_0xdba230(++_0x4d55ef);}(a685_0x4d55,0x1e9));const a685_0xdba2=function(_0x3e4aa3,_0x4d55ef){_0x3e4aa3=_0x3e4aa3-0x0;let _0xdba230=a685_0x4d55[_0x3e4aa3];return _0xdba230;};'use strict';const attributes=require('./userVoiceQueue.attributes');module['exports']=function(_0x26c342){const _0x2bed35=a685_0xdba2,_0x2200cf=_0x26c342[_0x2bed35('0x0')](_0x2bed35('0x1'),attributes,{'tableName':_0x2bed35('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x2200cf;}; \ No newline at end of file +const a821_0x279e=['UserVoiceQueue','sequelize','init','exports'];(function(_0x23ff7d,_0x327a28){const _0x279eb6=function(_0x5c5d52){while(--_0x5c5d52){_0x23ff7d['push'](_0x23ff7d['shift']());}};_0x279eb6(++_0x327a28);}(a821_0x279e,0x120));const a821_0x5c5d=function(_0x23ff7d,_0x327a28){_0x23ff7d=_0x23ff7d-0x69;let _0x279eb6=a821_0x279e[_0x23ff7d];return _0x279eb6;};const a821_0xbf1531=a821_0x5c5d;'use strict';const {Model}=require(a821_0xbf1531(0x6a)),{attributes}=require('./userVoiceQueue.attributes'),{options}=require('./userVoiceQueue.options');class UserVoiceQueue extends Model{}function init(_0x18a714,_0x58f5d1){const _0x1e20c0=a821_0xbf1531,_0x5b48c7=options(_0x18a714),_0x54a417=typeof _0x58f5d1==='function'?_0x58f5d1(_0x5b48c7):_0x5b48c7;return UserVoiceQueue[_0x1e20c0(0x6b)](attributes,_0x54a417),UserVoiceQueue;}module[a821_0xbf1531(0x6c)][a821_0xbf1531(0x69)]=UserVoiceQueue,module[a821_0xbf1531(0x6c)][a821_0xbf1531(0x6b)]=init; \ No newline at end of file diff --git a/server/api/userVoiceQueue/userVoiceQueue.options.js b/server/api/userVoiceQueue/userVoiceQueue.options.js new file mode 100644 index 0000000..b380f5f --- /dev/null +++ b/server/api/userVoiceQueue/userVoiceQueue.options.js @@ -0,0 +1 @@ +var a822_0xd0e3=['options'];(function(_0x5976ed,_0x3788cc){var _0xd0e318=function(_0x3e0028){while(--_0x3e0028){_0x5976ed['push'](_0x5976ed['shift']());}};_0xd0e318(++_0x3788cc);}(a822_0xd0e3,0x194));var a822_0x3e00=function(_0x5976ed,_0x3788cc){_0x5976ed=_0x5976ed-0x16b;var _0xd0e318=a822_0xd0e3[_0x5976ed];return _0xd0e318;};var a822_0x52165c=a822_0x3e00;function options(_0x2147a6){return{'sequelize':_0x2147a6,'tableName':'user_has_voice_queues','paranoid':![],'indexes':[],'timestamps':!![]};}module['exports'][a822_0x52165c(0x16b)]=options; \ No newline at end of file diff --git a/server/api/userVoiceQueueRt/index.js b/server/api/userVoiceQueueRt/index.js index 2f19cfd..2d4f7ed 100644 --- a/server/api/userVoiceQueueRt/index.js +++ b/server/api/userVoiceQueueRt/index.js @@ -1 +1 @@ -const a686_0xbee8=['express','Router'];(function(_0x796a7c,_0xbee81b){const _0x3fb18b=function(_0x30f799){while(--_0x30f799){_0x796a7c['push'](_0x796a7c['shift']());}};_0x3fb18b(++_0xbee81b);}(a686_0xbee8,0x1cd));const a686_0x3fb1=function(_0x796a7c,_0xbee81b){_0x796a7c=_0x796a7c-0x0;let _0x3fb18b=a686_0xbee8[_0x796a7c];return _0x3fb18b;};const _0x350f2e=a686_0x3fb1;'use strict';const express=require(_0x350f2e('0x1')),router=express[_0x350f2e('0x0')]();module['exports']=router; \ No newline at end of file +const a823_0x3a51=['express','Router'];(function(_0x54ae09,_0x32228c){const _0x3a5157=function(_0x575cae){while(--_0x575cae){_0x54ae09['push'](_0x54ae09['shift']());}};_0x3a5157(++_0x32228c);}(a823_0x3a51,0x1e2));const a823_0x575c=function(_0x54ae09,_0x32228c){_0x54ae09=_0x54ae09-0xca;let _0x3a5157=a823_0x3a51[_0x54ae09];return _0x3a5157;};const a823_0x2a3169=a823_0x575c;'use strict';const express=require(a823_0x2a3169(0xca)),router=express[a823_0x2a3169(0xcb)]();module['exports']=router; \ No newline at end of file diff --git a/server/api/userVoiceQueueRt/userVoiceQueueRt.attributes.js b/server/api/userVoiceQueueRt/userVoiceQueueRt.attributes.js index e1c2dcb..1fd8d0a 100644 --- a/server/api/userVoiceQueueRt/userVoiceQueueRt.attributes.js +++ b/server/api/userVoiceQueueRt/userVoiceQueueRt.attributes.js @@ -1 +1 @@ -const a687_0x28f3=['STRING','sequelize','queue_interface','Required\x20by\x20Asterisk','INTEGER'];(function(_0x7fc1c6,_0x28f33c){const _0x1b6d5f=function(_0x13e268){while(--_0x13e268){_0x7fc1c6['push'](_0x7fc1c6['shift']());}};_0x1b6d5f(++_0x28f33c);}(a687_0x28f3,0x103));const a687_0x1b6d=function(_0x7fc1c6,_0x28f33c){_0x7fc1c6=_0x7fc1c6-0x0;let _0x1b6d5f=a687_0x28f3[_0x7fc1c6];return _0x1b6d5f;};const _0x5bbcc9=a687_0x1b6d;'use strict';const Sequelize=require(_0x5bbcc9('0x2'));module['exports']={'uniqueid':{'type':Sequelize[_0x5bbcc9('0x0')],'primaryKey':!![],'autoIncrement':!![],'comment':_0x5bbcc9('0x4')},'membername':{'type':Sequelize['STRING'],'allowNull':![],'comment':_0x5bbcc9('0x4')},'UserId':{'type':Sequelize[_0x5bbcc9('0x0')],'allowNull':![]},'queue_name':{'type':Sequelize[_0x5bbcc9('0x1')],'allowNull':![],'unique':_0x5bbcc9('0x3'),'comment':_0x5bbcc9('0x4')},'VoiceQueueId':{'type':Sequelize['INTEGER'],'allowNull':![]},'interface':{'type':Sequelize[_0x5bbcc9('0x1')],'allowNull':![],'unique':_0x5bbcc9('0x3'),'comment':_0x5bbcc9('0x4')},'penalty':{'type':Sequelize[_0x5bbcc9('0x0')](0xb),'defaultValue':0x0,'comment':_0x5bbcc9('0x4')},'paused':{'type':Sequelize[_0x5bbcc9('0x0')](0xb),'defaultValue':0x0,'comment':_0x5bbcc9('0x4')}}; \ No newline at end of file +const a824_0x7d23=['attributes','exports','STRING','INTEGER','Required\x20by\x20Asterisk','queue_interface'];(function(_0xf131d9,_0x4ac969){const _0x7d23f1=function(_0x19a747){while(--_0x19a747){_0xf131d9['push'](_0xf131d9['shift']());}};_0x7d23f1(++_0x4ac969);}(a824_0x7d23,0x154));const a824_0x19a7=function(_0xf131d9,_0x4ac969){_0xf131d9=_0xf131d9-0x1c3;let _0x7d23f1=a824_0x7d23[_0xf131d9];return _0x7d23f1;};const a824_0x7141e9=a824_0x19a7;'use strict';const {DataTypes}=require('sequelize'),attributes={'uniqueid':{'type':DataTypes[a824_0x7141e9(0x1c8)],'primaryKey':!![],'autoIncrement':!![],'comment':a824_0x7141e9(0x1c3)},'membername':{'type':DataTypes[a824_0x7141e9(0x1c7)],'allowNull':![],'comment':a824_0x7141e9(0x1c3)},'UserId':{'type':DataTypes[a824_0x7141e9(0x1c8)],'allowNull':![]},'queue_name':{'type':DataTypes[a824_0x7141e9(0x1c7)],'allowNull':![],'unique':a824_0x7141e9(0x1c4),'comment':'Required\x20by\x20Asterisk'},'VoiceQueueId':{'type':DataTypes[a824_0x7141e9(0x1c8)],'allowNull':![]},'interface':{'type':DataTypes[a824_0x7141e9(0x1c7)],'allowNull':![],'unique':a824_0x7141e9(0x1c4),'comment':'Required\x20by\x20Asterisk'},'penalty':{'type':DataTypes[a824_0x7141e9(0x1c8)]({'length':0xb}),'defaultValue':0x0,'comment':'Required\x20by\x20Asterisk'},'paused':{'type':DataTypes[a824_0x7141e9(0x1c8)]({'length':0xb}),'defaultValue':0x0,'comment':a824_0x7141e9(0x1c3)}};module[a824_0x7141e9(0x1c6)][a824_0x7141e9(0x1c5)]=attributes; \ No newline at end of file diff --git a/server/api/userVoiceQueueRt/userVoiceQueueRt.events.js b/server/api/userVoiceQueueRt/userVoiceQueueRt.events.js index b8b9319..85becc9 100644 --- a/server/api/userVoiceQueueRt/userVoiceQueueRt.events.js +++ b/server/api/userVoiceQueueRt/userVoiceQueueRt.events.js @@ -1 +1 @@ -const a688_0x2d33=['update','emit','save','exports','remove','addHook','events','setMaxListeners','../../mysqldb','UserVoiceQueueRt'];(function(_0x32da5b,_0x2d337e){const _0x8bdcb9=function(_0x573bbf){while(--_0x573bbf){_0x32da5b['push'](_0x32da5b['shift']());}};_0x8bdcb9(++_0x2d337e);}(a688_0x2d33,0x12f));const a688_0x8bdc=function(_0x32da5b,_0x2d337e){_0x32da5b=_0x32da5b-0x0;let _0x8bdcb9=a688_0x2d33[_0x32da5b];return _0x8bdcb9;};const _0x37d57c=a688_0x8bdc;'use strict';const EventEmitter=require(_0x37d57c('0x3')),UserVoiceQueueRt=require(_0x37d57c('0x5'))['db'][_0x37d57c('0x6')],UserVoiceQueueRtEvents=new EventEmitter();UserVoiceQueueRtEvents[_0x37d57c('0x4')](0x0);const events={'afterCreate':_0x37d57c('0x9'),'afterUpdate':_0x37d57c('0x7'),'afterDestroy':_0x37d57c('0x1')};function emitEvent(_0x573bbf){return function(_0x148831){const _0x1eab53=a688_0x8bdc;UserVoiceQueueRtEvents[_0x1eab53('0x8')](_0x573bbf+':'+_0x148831['id'],_0x148831),UserVoiceQueueRtEvents['emit'](_0x573bbf,_0x148831);};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];UserVoiceQueueRt[_0x37d57c('0x2')](e,emitEvent(event));}}module[_0x37d57c('0x0')]=UserVoiceQueueRtEvents; \ No newline at end of file +const a825_0x2c4c=['addHook','exports','UserVoiceQueueRt','save','events','update','../../mysqldb','undefined','emit'];(function(_0x365e8c,_0x2dc22c){const _0x2c4cce=function(_0x5140dc){while(--_0x5140dc){_0x365e8c['push'](_0x365e8c['shift']());}};_0x2c4cce(++_0x2dc22c);}(a825_0x2c4c,0x10f));const a825_0x5140=function(_0x365e8c,_0x2dc22c){_0x365e8c=_0x365e8c-0x74;let _0x2c4cce=a825_0x2c4c[_0x365e8c];return _0x2c4cce;};const a825_0x5dab65=a825_0x5140;'use strict';const EventEmitter=require(a825_0x5dab65(0x77)),UserVoiceQueueRt=require(a825_0x5dab65(0x79))['db'][a825_0x5dab65(0x75)],UserVoiceQueueRtEvents=new EventEmitter();UserVoiceQueueRtEvents['setMaxListeners'](0x0);const events={'afterCreate':a825_0x5dab65(0x76),'afterUpdate':a825_0x5dab65(0x78),'afterDestroy':'remove'};function emitEvent(_0x34cffe){return function(_0x59e958){const _0x49bb57=a825_0x5140;UserVoiceQueueRtEvents['emit'](_0x34cffe+':'+_0x59e958['id'],_0x59e958),UserVoiceQueueRtEvents[_0x49bb57(0x7b)](_0x34cffe,_0x59e958);};}for(const e in events){if(typeof events[e]!==a825_0x5dab65(0x7a)){const event=events[e];UserVoiceQueueRt[a825_0x5dab65(0x7c)](e,emitEvent(event));}}module[a825_0x5dab65(0x74)]=UserVoiceQueueRtEvents; \ No newline at end of file diff --git a/server/api/userVoiceQueueRt/userVoiceQueueRt.model.js b/server/api/userVoiceQueueRt/userVoiceQueueRt.model.js index 3d23a99..baa63da 100644 --- a/server/api/userVoiceQueueRt/userVoiceQueueRt.model.js +++ b/server/api/userVoiceQueueRt/userVoiceQueueRt.model.js @@ -1 +1 @@ -const a689_0x1edf=['exports','./userVoiceQueueRt.attributes','UserVoiceQueueRt'];(function(_0x1b4daa,_0x1edfa2){const _0x5b59a9=function(_0x49bd49){while(--_0x49bd49){_0x1b4daa['push'](_0x1b4daa['shift']());}};_0x5b59a9(++_0x1edfa2);}(a689_0x1edf,0xef));const a689_0x5b59=function(_0x1b4daa,_0x1edfa2){_0x1b4daa=_0x1b4daa-0x0;let _0x5b59a9=a689_0x1edf[_0x1b4daa];return _0x5b59a9;};const _0x12a068=a689_0x5b59;'use strict';const attributes=require(_0x12a068('0x2'));module[_0x12a068('0x1')]=function(_0x49bd49){const _0x202285=_0x12a068,_0x4b3caa=_0x49bd49['define'](_0x202285('0x0'),attributes,{'tableName':'user_has_voice_queues_rt','paranoid':![],'indexes':[],'timestamps':!![]});return _0x4b3caa;}; \ No newline at end of file +const a826_0x4fc5=['./userVoiceQueueRt.attributes','exports','function','sequelize','./userVoiceQueueRt.options','UserVoiceQueueRt','init'];(function(_0x3ead17,_0x4cc9e3){const _0x4fc5a5=function(_0x3d5603){while(--_0x3d5603){_0x3ead17['push'](_0x3ead17['shift']());}};_0x4fc5a5(++_0x4cc9e3);}(a826_0x4fc5,0x151));const a826_0x3d56=function(_0x3ead17,_0x4cc9e3){_0x3ead17=_0x3ead17-0x1b9;let _0x4fc5a5=a826_0x4fc5[_0x3ead17];return _0x4fc5a5;};const a826_0x28bf68=a826_0x3d56;'use strict';const {Model}=require(a826_0x28bf68(0x1bb)),{attributes}=require(a826_0x28bf68(0x1bf)),{options}=require(a826_0x28bf68(0x1bc));class UserVoiceQueueRt extends Model{}function init(_0x539eb2,_0x557233){const _0x51d0f8=a826_0x28bf68,_0x14f01a=options(_0x539eb2),_0x461602=typeof _0x557233===_0x51d0f8(0x1ba)?_0x557233(_0x14f01a):_0x14f01a;return UserVoiceQueueRt[_0x51d0f8(0x1be)](attributes,_0x461602),UserVoiceQueueRt;}module[a826_0x28bf68(0x1b9)][a826_0x28bf68(0x1bd)]=UserVoiceQueueRt,module[a826_0x28bf68(0x1b9)][a826_0x28bf68(0x1be)]=init; \ No newline at end of file diff --git a/server/api/userVoiceQueueRt/userVoiceQueueRt.options.js b/server/api/userVoiceQueueRt/userVoiceQueueRt.options.js new file mode 100644 index 0000000..ad927ee --- /dev/null +++ b/server/api/userVoiceQueueRt/userVoiceQueueRt.options.js @@ -0,0 +1 @@ +var a827_0x480a=['options','user_has_voice_queues_rt','exports'];(function(_0x3265ef,_0x3383bf){var _0x480a6e=function(_0x54889d){while(--_0x54889d){_0x3265ef['push'](_0x3265ef['shift']());}};_0x480a6e(++_0x3383bf);}(a827_0x480a,0x155));var a827_0x5488=function(_0x3265ef,_0x3383bf){_0x3265ef=_0x3265ef-0x106;var _0x480a6e=a827_0x480a[_0x3265ef];return _0x480a6e;};var a827_0x48ef09=a827_0x5488;function options(_0x15def1){var _0x3ff9c6=a827_0x5488;return{'sequelize':_0x15def1,'tableName':_0x3ff9c6(0x108),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a827_0x48ef09(0x106)][a827_0x48ef09(0x107)]=options; \ No newline at end of file diff --git a/server/api/userVoiceQueueRt/userVoiceQueueRt.rpc.js b/server/api/userVoiceQueueRt/userVoiceQueueRt.rpc.js index 49c24e0..b652017 100644 --- a/server/api/userVoiceQueueRt/userVoiceQueueRt.rpc.js +++ b/server/api/userVoiceQueueRt/userVoiceQueueRt.rpc.js @@ -1 +1 @@ -const a690_0x221c=['rpc','debug','stringify','error','options','UserVoiceQueueRt','outboundQueuePauses','message','../../rediscache','info','../../config/logger','findAll','catch','./userVoiceQueueRt.socket','register','GetVoiceQueueRtPauses','where','../../mysqldb','sequelize','COUNT','`paused`\x20=\x201,\x201,\x20null'];(function(_0x5d47cf,_0x221c96){const _0x57a997=function(_0x3eb2c4){while(--_0x3eb2c4){_0x5d47cf['push'](_0x5d47cf['shift']());}};_0x57a997(++_0x221c96);}(a690_0x221c,0x166));const a690_0x57a9=function(_0x5d47cf,_0x221c96){_0x5d47cf=_0x5d47cf-0x0;let _0x57a997=a690_0x221c[_0x5d47cf];return _0x57a997;};const _0x616e38=a690_0x57a9;'use strict';const db=require(_0x616e38('0x10'))['db'],{fn,literal}=require(_0x616e38('0x11')),logger=require(_0x616e38('0x9'))(_0x616e38('0x14')),{getSocket}=require(_0x616e38('0x7')),socket=getSocket();require(_0x616e38('0xc'))[_0x616e38('0xd')](socket),exports[_0x616e38('0xe')]=function(_0x3eb2c4){const _0x45b230=this;return new Promise(function(_0x1d2a09,_0x348cc9){const _0x3b0d24=a690_0x57a9;return db[_0x3b0d24('0x4')][_0x3b0d24('0xa')]({'raw':_0x3eb2c4[_0x3b0d24('0x3')]?_0x3eb2c4['options']['raw']===undefined?!![]:![]:!![],'where':_0x3eb2c4[_0x3b0d24('0x3')]?_0x3eb2c4[_0x3b0d24('0x3')][_0x3b0d24('0xf')]||null:null,'attributes':[[fn(_0x3b0d24('0x12'),fn('IF',literal(_0x3b0d24('0x13')))),_0x3b0d24('0x5')]]})['then'](function(_0x4f9c9c){const _0x295d40=_0x3b0d24;logger[_0x295d40('0x8')](_0x295d40('0xe'),_0x3eb2c4),logger[_0x295d40('0x0')]('GetVoiceQueueRtPauses',_0x3eb2c4,JSON[_0x295d40('0x1')](_0x4f9c9c)),_0x1d2a09(_0x4f9c9c);})[_0x3b0d24('0xb')](function(_0x4084ea){const _0x6f8a31=_0x3b0d24;logger[_0x6f8a31('0x2')]('GetVoiceQueueRtPauses',_0x4084ea[_0x6f8a31('0x6')],_0x3eb2c4),_0x348cc9(_0x45b230[_0x6f8a31('0x2')](0x1f4,_0x4084ea['message']));});});}; \ No newline at end of file +const a828_0x364e=['outboundQueuePauses','raw','options','rpc','message','../../rediscache','`paused`\x20=\x201,\x201,\x20null','sequelize','where','UserVoiceQueueRt','info','COUNT','error','GetVoiceQueueRtPauses','register','../../config/logger'];(function(_0x15844c,_0x342407){const _0x364e34=function(_0x285c7a){while(--_0x285c7a){_0x15844c['push'](_0x15844c['shift']());}};_0x364e34(++_0x342407);}(a828_0x364e,0x135));const a828_0x285c=function(_0x15844c,_0x342407){_0x15844c=_0x15844c-0x13b;let _0x364e34=a828_0x364e[_0x15844c];return _0x364e34;};const a828_0x26fd34=a828_0x285c;'use strict';const db=require('../../mysqldb')['db'],{fn,literal}=require(a828_0x26fd34(0x13d)),logger=require(a828_0x26fd34(0x145))(a828_0x26fd34(0x149)),{getSocket}=require(a828_0x26fd34(0x13b)),socket=getSocket();require('./userVoiceQueueRt.socket')[a828_0x26fd34(0x144)](socket),exports[a828_0x26fd34(0x143)]=function(_0x4b44a9){const _0x66f90a=this;return new Promise(function(_0xbd6b22,_0x23089c){const _0x76656c=a828_0x285c;return db[_0x76656c(0x13f)]['findAll']({'raw':_0x4b44a9['options']?_0x4b44a9[_0x76656c(0x148)][_0x76656c(0x147)]===undefined?!![]:![]:!![],'where':_0x4b44a9[_0x76656c(0x148)]?_0x4b44a9[_0x76656c(0x148)][_0x76656c(0x13e)]||null:null,'attributes':[[fn(_0x76656c(0x141),fn('IF',literal(_0x76656c(0x13c)))),_0x76656c(0x146)]]})['then'](function(_0x39dcba){const _0x458ab6=_0x76656c;logger[_0x458ab6(0x140)](_0x458ab6(0x143),_0x4b44a9),logger['debug'](_0x458ab6(0x143),_0x4b44a9,JSON['stringify'](_0x39dcba)),_0xbd6b22(_0x39dcba);})['catch'](function(_0x3295a5){const _0x2591e6=_0x76656c;logger['error'](_0x2591e6(0x143),_0x3295a5[_0x2591e6(0x14a)],_0x4b44a9),_0x23089c(_0x66f90a[_0x2591e6(0x142)](0x1f4,_0x3295a5[_0x2591e6(0x14a)]));});});}; \ No newline at end of file diff --git a/server/api/userVoiceQueueRt/userVoiceQueueRt.socket.js b/server/api/userVoiceQueueRt/userVoiceQueueRt.socket.js index ff7f5fc..59a889a 100644 --- a/server/api/userVoiceQueueRt/userVoiceQueueRt.socket.js +++ b/server/api/userVoiceQueueRt/userVoiceQueueRt.socket.js @@ -1 +1 @@ -const a691_0x49ac=['emit','remove','save','register','update','length','./userVoiceQueueRt.events'];(function(_0x45aec8,_0x49ac7f){const _0x229a8b=function(_0x2fd0d9){while(--_0x2fd0d9){_0x45aec8['push'](_0x45aec8['shift']());}};_0x229a8b(++_0x49ac7f);}(a691_0x49ac,0xef));const a691_0x229a=function(_0x45aec8,_0x49ac7f){_0x45aec8=_0x45aec8-0x0;let _0x229a8b=a691_0x49ac[_0x45aec8];return _0x229a8b;};const _0x57d227=a691_0x229a;'use strict';const UserVoiceQueueRtEvents=require(_0x57d227('0x5')),events=[_0x57d227('0x1'),_0x57d227('0x0'),_0x57d227('0x3')];function createListener(_0x2fd0d9,_0x1be510){return function(_0xd72a3a){const _0x533934=a691_0x229a;_0x1be510[_0x533934('0x6')](_0x2fd0d9,_0xd72a3a);};}exports[_0x57d227('0x2')]=function(_0x1f0a90){const _0x1482aa=_0x57d227;for(let _0x29426f=0x0,_0x380e95=events[_0x1482aa('0x4')];_0x29426f<_0x380e95;_0x29426f++){const _0x4b569b=events[_0x29426f],_0x4ac7fd=createListener('userVoiceQueueRt:'+_0x4b569b,_0x1f0a90);UserVoiceQueueRtEvents['on'](_0x4b569b,_0x4ac7fd);}}; \ No newline at end of file +const a829_0x24ed=['userVoiceQueueRt:','save','register','emit'];(function(_0x58ab8e,_0x3b657f){const _0x24ed83=function(_0x59c29d){while(--_0x59c29d){_0x58ab8e['push'](_0x58ab8e['shift']());}};_0x24ed83(++_0x3b657f);}(a829_0x24ed,0xf4));const a829_0x59c2=function(_0x58ab8e,_0x3b657f){_0x58ab8e=_0x58ab8e-0x19a;let _0x24ed83=a829_0x24ed[_0x58ab8e];return _0x24ed83;};const a829_0x176e27=a829_0x59c2;'use strict';const UserVoiceQueueRtEvents=require('./userVoiceQueueRt.events'),events=[a829_0x176e27(0x19b),'remove','update'];function createListener(_0x4591a8,_0x5fb776){return function(_0x19b277){const _0x575dbb=a829_0x59c2;_0x5fb776[_0x575dbb(0x19d)](_0x4591a8,_0x19b277);};}exports[a829_0x176e27(0x19c)]=function(_0x3a0ccc){const _0x3dc2f0=a829_0x176e27;for(let _0x2206ee=0x0,_0x2e739e=events['length'];_0x2206ee<_0x2e739e;_0x2206ee++){const _0xd1c05e=events[_0x2206ee],_0x29a050=createListener(_0x3dc2f0(0x19a)+_0xd1c05e,_0x3a0ccc);UserVoiceQueueRtEvents['on'](_0xd1c05e,_0x29a050);}}; \ No newline at end of file diff --git a/server/api/userWhatsappQueue/index.js b/server/api/userWhatsappQueue/index.js index 8c6d753..888c70c 100644 --- a/server/api/userWhatsappQueue/index.js +++ b/server/api/userWhatsappQueue/index.js @@ -1 +1 @@ -const a692_0x2828=['exports','Router','express'];(function(_0x12509a,_0x282836){const _0x38677f=function(_0x325271){while(--_0x325271){_0x12509a['push'](_0x12509a['shift']());}};_0x38677f(++_0x282836);}(a692_0x2828,0xe8));const a692_0x3867=function(_0x12509a,_0x282836){_0x12509a=_0x12509a-0x0;let _0x38677f=a692_0x2828[_0x12509a];return _0x38677f;};const _0x260eae=a692_0x3867;'use strict';const express=require(_0x260eae('0x1')),router=express[_0x260eae('0x0')]();module[_0x260eae('0x2')]=router; \ No newline at end of file +const a830_0x2033=['express','exports','Router'];(function(_0x2e6f22,_0x4db26a){const _0x203312=function(_0x1995b2){while(--_0x1995b2){_0x2e6f22['push'](_0x2e6f22['shift']());}};_0x203312(++_0x4db26a);}(a830_0x2033,0x8f));const a830_0x1995=function(_0x2e6f22,_0x4db26a){_0x2e6f22=_0x2e6f22-0xee;let _0x203312=a830_0x2033[_0x2e6f22];return _0x203312;};const a830_0x44c9eb=a830_0x1995;'use strict';const express=require(a830_0x44c9eb(0xef)),router=express[a830_0x44c9eb(0xee)]();module[a830_0x44c9eb(0xf0)]=router; \ No newline at end of file diff --git a/server/api/userWhatsappQueue/userWhatsappQueue.attributes.js b/server/api/userWhatsappQueue/userWhatsappQueue.attributes.js index 329ed25..053312d 100644 --- a/server/api/userWhatsappQueue/userWhatsappQueue.attributes.js +++ b/server/api/userWhatsappQueue/userWhatsappQueue.attributes.js @@ -1 +1 @@ -const a693_0x5a04=['INTEGER'];(function(_0x173bff,_0x5a0458){const _0x4d4688=function(_0x496f5c){while(--_0x496f5c){_0x173bff['push'](_0x173bff['shift']());}};_0x4d4688(++_0x5a0458);}(a693_0x5a04,0xeb));const a693_0x4d46=function(_0x173bff,_0x5a0458){_0x173bff=_0x173bff-0x0;let _0x4d4688=a693_0x5a04[_0x173bff];return _0x4d4688;};const _0x377baf=a693_0x4d46;'use strict';const Sequelize=require('sequelize');module['exports']={'penalty':{'type':Sequelize[_0x377baf('0x0')],'defaultValue':0x0}}; \ No newline at end of file +const a831_0x4ed5=['INTEGER','exports','attributes'];(function(_0x1a028d,_0x3aaa10){const _0x4ed55b=function(_0x269f65){while(--_0x269f65){_0x1a028d['push'](_0x1a028d['shift']());}};_0x4ed55b(++_0x3aaa10);}(a831_0x4ed5,0x1a2));const a831_0x269f=function(_0x1a028d,_0x3aaa10){_0x1a028d=_0x1a028d-0x191;let _0x4ed55b=a831_0x4ed5[_0x1a028d];return _0x4ed55b;};const a831_0x28cade=a831_0x269f;'use strict';const {DataTypes}=require('sequelize'),attributes={'penalty':{'type':DataTypes[a831_0x28cade(0x193)],'defaultValue':0x0}};module[a831_0x28cade(0x191)][a831_0x28cade(0x192)]=attributes; \ No newline at end of file diff --git a/server/api/userWhatsappQueue/userWhatsappQueue.model.js b/server/api/userWhatsappQueue/userWhatsappQueue.model.js index 4ae3893..36f5d59 100644 --- a/server/api/userWhatsappQueue/userWhatsappQueue.model.js +++ b/server/api/userWhatsappQueue/userWhatsappQueue.model.js @@ -1 +1 @@ -const a694_0x2273=['define','UserWhatsappQueue','user_has_whatsapp_queues','exports'];(function(_0x30b92a,_0x227379){const _0x11d706=function(_0xf10f9a){while(--_0xf10f9a){_0x30b92a['push'](_0x30b92a['shift']());}};_0x11d706(++_0x227379);}(a694_0x2273,0x1da));const a694_0x11d7=function(_0x30b92a,_0x227379){_0x30b92a=_0x30b92a-0x0;let _0x11d706=a694_0x2273[_0x30b92a];return _0x11d706;};const _0x551667=a694_0x11d7;'use strict';const attributes=require('./userWhatsappQueue.attributes');module[_0x551667('0x1')]=function(_0xf10f9a){const _0x562c14=_0x551667,_0x36932b=_0xf10f9a[_0x562c14('0x2')](_0x562c14('0x3'),attributes,{'tableName':_0x562c14('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x36932b;}; \ No newline at end of file +const a832_0x5662=['sequelize','UserWhatsappQueue','./userWhatsappQueue.attributes','init','function','exports','./userWhatsappQueue.options'];(function(_0x4243d1,_0xc5a9f1){const _0x5662fc=function(_0x587337){while(--_0x587337){_0x4243d1['push'](_0x4243d1['shift']());}};_0x5662fc(++_0xc5a9f1);}(a832_0x5662,0xcc));const a832_0x5873=function(_0x4243d1,_0xc5a9f1){_0x4243d1=_0x4243d1-0x1d9;let _0x5662fc=a832_0x5662[_0x4243d1];return _0x5662fc;};const a832_0x180a27=a832_0x5873;'use strict';const {Model}=require(a832_0x180a27(0x1df)),{attributes}=require(a832_0x180a27(0x1da)),{options}=require(a832_0x180a27(0x1de));class UserWhatsappQueue extends Model{}function init(_0x321380,_0x2de770){const _0x3d4994=a832_0x180a27,_0x40d284=options(_0x321380),_0xca731e=typeof _0x2de770===_0x3d4994(0x1dc)?_0x2de770(_0x40d284):_0x40d284;return UserWhatsappQueue[_0x3d4994(0x1db)](attributes,_0xca731e),UserWhatsappQueue;}module[a832_0x180a27(0x1dd)][a832_0x180a27(0x1d9)]=UserWhatsappQueue,module[a832_0x180a27(0x1dd)][a832_0x180a27(0x1db)]=init; \ No newline at end of file diff --git a/server/api/userWhatsappQueue/userWhatsappQueue.options.js b/server/api/userWhatsappQueue/userWhatsappQueue.options.js new file mode 100644 index 0000000..458cf2b --- /dev/null +++ b/server/api/userWhatsappQueue/userWhatsappQueue.options.js @@ -0,0 +1 @@ +var a833_0x5823=['options','exports','user_has_whatsapp_queues'];(function(_0x152f21,_0x14d458){var _0x58235f=function(_0x23d91d){while(--_0x23d91d){_0x152f21['push'](_0x152f21['shift']());}};_0x58235f(++_0x14d458);}(a833_0x5823,0x14b));var a833_0x23d9=function(_0x152f21,_0x14d458){_0x152f21=_0x152f21-0x86;var _0x58235f=a833_0x5823[_0x152f21];return _0x58235f;};var a833_0x8e0379=a833_0x23d9;function options(_0xa0a4d){var _0x52653b=a833_0x23d9;return{'sequelize':_0xa0a4d,'tableName':_0x52653b(0x87),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a833_0x8e0379(0x86)][a833_0x8e0379(0x88)]=options; \ No newline at end of file diff --git a/server/api/variable/index.js b/server/api/variable/index.js index d2a2b1e..2d596ae 100644 --- a/server/api/variable/index.js +++ b/server/api/variable/index.js @@ -1 +1 @@ -const a695_0x3222=['isAuthenticated','../../components/auth/service','exports','get','show','/:id','update','put','destroy','post','./variable.controller','express'];(function(_0x23905c,_0x3222b7){const _0x45f5ef=function(_0x14cc95){while(--_0x14cc95){_0x23905c['push'](_0x23905c['shift']());}};_0x45f5ef(++_0x3222b7);}(a695_0x3222,0xec));const a695_0x45f5=function(_0x23905c,_0x3222b7){_0x23905c=_0x23905c-0x0;let _0x45f5ef=a695_0x3222[_0x23905c];return _0x45f5ef;};const _0x293124=a695_0x45f5;'use strict';const express=require(_0x293124('0x3')),router=express['Router'](),auth=require(_0x293124('0x5')),controller=require(_0x293124('0x2'));router[_0x293124('0x7')]('/',auth[_0x293124('0x4')](),controller['index']),router[_0x293124('0x7')](_0x293124('0x9'),auth[_0x293124('0x4')](),controller[_0x293124('0x8')]),router[_0x293124('0x1')]('/',auth[_0x293124('0x4')](),controller['create']),router[_0x293124('0xb')](_0x293124('0x9'),auth[_0x293124('0x4')](),controller[_0x293124('0xa')]),router['delete'](_0x293124('0x9'),auth[_0x293124('0x4')](),controller[_0x293124('0x0')]),module[_0x293124('0x6')]=router; \ No newline at end of file +const a834_0x33e3=['destroy','isAuthenticated','/:id','update','../../components/auth/service','post','express','index','create','./variable.controller','get','put','Router'];(function(_0x411bb5,_0x4447dd){const _0x33e34=function(_0x4a8bca){while(--_0x4a8bca){_0x411bb5['push'](_0x411bb5['shift']());}};_0x33e34(++_0x4447dd);}(a834_0x33e3,0x1a7));const a834_0x4a8b=function(_0x411bb5,_0x4447dd){_0x411bb5=_0x411bb5-0xf0;let _0x33e34=a834_0x33e3[_0x411bb5];return _0x33e34;};const a834_0x1bef88=a834_0x4a8b;'use strict';const express=require(a834_0x1bef88(0xfc)),router=express[a834_0x1bef88(0xf5)](),auth=require(a834_0x1bef88(0xfa)),controller=require(a834_0x1bef88(0xf2));router[a834_0x1bef88(0xf3)]('/',auth['isAuthenticated'](),controller[a834_0x1bef88(0xf0)]),router[a834_0x1bef88(0xf3)](a834_0x1bef88(0xf8),auth['isAuthenticated'](),controller['show']),router[a834_0x1bef88(0xfb)]('/',auth['isAuthenticated'](),controller[a834_0x1bef88(0xf1)]),router[a834_0x1bef88(0xf4)](a834_0x1bef88(0xf8),auth[a834_0x1bef88(0xf7)](),controller[a834_0x1bef88(0xf9)]),router['delete'](a834_0x1bef88(0xf8),auth[a834_0x1bef88(0xf7)](),controller[a834_0x1bef88(0xf6)]),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 eeba56b..1d548cb 100644 --- a/server/api/variable/variable.attributes.js +++ b/server/api/variable/variable.attributes.js @@ -1 +1 @@ -const a696_0x5aad=['sequelize','exports','name','STRING'];(function(_0x4c964b,_0x5aad8c){const _0x1f54d1=function(_0x1e4dd5){while(--_0x1e4dd5){_0x4c964b['push'](_0x4c964b['shift']());}};_0x1f54d1(++_0x5aad8c);}(a696_0x5aad,0x91));const a696_0x1f54=function(_0x4c964b,_0x5aad8c){_0x4c964b=_0x4c964b-0x0;let _0x1f54d1=a696_0x5aad[_0x4c964b];return _0x1f54d1;};const _0x415759=a696_0x1f54;'use strict';const Sequelize=require(_0x415759('0x3'));module[_0x415759('0x0')]={'name':{'type':Sequelize[_0x415759('0x2')],'unique':_0x415759('0x1'),'allowNull':![],'validate':{'notEmpty':!![]}},'description':{'type':Sequelize[_0x415759('0x2')]}}; \ No newline at end of file +const a835_0x5f38=['exports','attributes','STRING'];(function(_0x130368,_0x176150){const _0x5f38bb=function(_0x1600d1){while(--_0x1600d1){_0x130368['push'](_0x130368['shift']());}};_0x5f38bb(++_0x176150);}(a835_0x5f38,0x126));const a835_0x1600=function(_0x130368,_0x176150){_0x130368=_0x130368-0x1b1;let _0x5f38bb=a835_0x5f38[_0x130368];return _0x5f38bb;};const a835_0x580ee8=a835_0x1600;'use strict';const {DataTypes}=require('sequelize'),attributes={'name':{'type':DataTypes['STRING'],'unique':'name','allowNull':![],'validate':{'notEmpty':!![]}},'description':{'type':DataTypes[a835_0x580ee8(0x1b3)]}};module[a835_0x580ee8(0x1b1)][a835_0x580ee8(0x1b2)]=attributes; \ No newline at end of file diff --git a/server/api/variable/variable.controller.js b/server/api/variable/variable.controller.js index 12602bc..3cfdc90 100644 --- a/server/api/variable/variable.controller.js +++ b/server/api/variable/variable.controller.js @@ -1 +1 @@ -const a697_0x4902=['merge','fieldName','catch','map','include','count','filters','pick','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','get','findAll','intersection','Variables','body','type','sort','rows','findOne','limit','../../config/logger','nolimit','Content-Range','includeAll','VIRTUAL','update','like','model','order','length','UserProfileResource','Unable\x20to\x20retrieve\x20the\x20current\x20user','undefined','sequelize','UserProfileSection','options','name','create','query','json','filter','../../mysqldb','then','attributes','send','where','keys','offset','key','role','fields','status','Variable','params','rawAttributes','lodash','destroy','userProfileId'];(function(_0x564b6c,_0x4902b9){const _0x1d7caf=function(_0x3239d6){while(--_0x3239d6){_0x564b6c['push'](_0x564b6c['shift']());}};_0x1d7caf(++_0x4902b9);}(a697_0x4902,0xc4));const a697_0x1d7c=function(_0x564b6c,_0x4902b9){_0x564b6c=_0x564b6c-0x0;let _0x1d7caf=a697_0x4902[_0x564b6c];return _0x1d7caf;};const _0x25fda0=a697_0x1d7c;'use strict';const _=require(_0x25fda0('0x1d')),qs=require('../../components/parsers/qs'),logger=require(_0x25fda0('0x33'))('api'),db=require(_0x25fda0('0xf'))['db'],{Op}=require(_0x25fda0('0x7'));function respondWithResult(_0x3239d6,_0x552c98){return _0x552c98=_0x552c98||0xc8,function(_0xfb09d6){const _0x4c8529=a697_0x1d7c;if(_0xfb09d6)return _0x3239d6[_0x4c8529('0x19')](_0x552c98)['json'](_0xfb09d6);};}function respondWithFilteredResult(_0x307bd9,_0x25e0fc){return function(_0x1d9534){const _0x306856=a697_0x1d7c;if(_0x1d9534){const _0x187873=_0x1d9534['count'],_0x591fc2=_0x25e0fc[_0x306856('0x15')];let _0x5d90a7=_0x25e0fc['offset']+_0x25e0fc['limit'],_0x5747b2;return _0x5d90a7>=_0x187873?(_0x5d90a7=_0x187873,_0x5747b2=0xc8):_0x5747b2=0xce,_0x307bd9['status'](_0x5747b2),_0x307bd9['set'](_0x306856('0x35'),_0x591fc2+'-'+_0x5d90a7+'/'+_0x187873)[_0x306856('0xd')](_0x1d9534);}return null;};}function saveUpdates(_0x4b19bc){return function(_0x401e53){const _0x386da2=a697_0x1d7c;if(_0x401e53)return _0x401e53[_0x386da2('0x38')](_0x4b19bc)[_0x386da2('0x10')](function(_0x2ce1fb){return _0x2ce1fb;});return null;};}function removeEntity(_0x4ac916){return function(_0x298f32){const _0x3a63f3=a697_0x1d7c;if(_0x298f32)return _0x298f32[_0x3a63f3('0x1e')]()[_0x3a63f3('0x10')](function(){const _0x1b3651=_0x3a63f3,_0x4a98a4=_0x298f32[_0x1b3651('0x29')]({'plain':!![]}),_0x1718be=_0x1b3651('0x2c');return db[_0x1b3651('0x4')][_0x1b3651('0x1e')]({'where':{'type':_0x1718be,'resourceId':_0x4a98a4['id']}})[_0x1b3651('0x10')](function(){return _0x298f32;});})[_0x3a63f3('0x10')](function(){const _0x21838d=_0x3a63f3;_0x4ac916[_0x21838d('0x19')](0xcc)['end']();});};}function handleEntityNotFound(_0x1402cb){return function(_0x3ebc1c){return!_0x3ebc1c&&_0x1402cb['sendStatus'](0x194),_0x3ebc1c;};}function handleError(_0x12c1cb,_0x29c35a){return _0x29c35a=_0x29c35a||0x1f4,function(_0x1dc099){const _0x46882b=a697_0x1d7c;logger['error'](_0x1dc099['stack']),_0x1dc099[_0x46882b('0xa')]&&delete _0x1dc099['name'],_0x12c1cb[_0x46882b('0x19')](_0x29c35a)[_0x46882b('0x12')](_0x1dc099);};}exports['index']=function(_0x2643e0,_0x16d61f){const _0x3741bc=_0x25fda0;let _0x5f30a1={};const _0x5eb742={},_0x357b0a={'count':0x0,'rows':[]},_0x557c90=_[_0x3741bc('0x23')](db[_0x3741bc('0x1a')][_0x3741bc('0x1c')],function(_0x1b7238){const _0x4c7a33=_0x3741bc;return{'name':_0x1b7238[_0x4c7a33('0x21')],'type':_0x1b7238[_0x4c7a33('0x2e')][_0x4c7a33('0x16')]};});_0x5eb742[_0x3741bc('0x1')]=_[_0x3741bc('0x23')](_0x557c90,_0x3741bc('0xa')),_0x5eb742[_0x3741bc('0xc')]=_[_0x3741bc('0x14')](_0x2643e0[_0x3741bc('0xc')]),_0x5eb742['filters']=_['intersection'](_0x5eb742[_0x3741bc('0x1')],_0x5eb742[_0x3741bc('0xc')]),_0x5f30a1['attributes']=_[_0x3741bc('0x2b')](_0x5eb742[_0x3741bc('0x1')],qs[_0x3741bc('0x18')](_0x2643e0[_0x3741bc('0xc')][_0x3741bc('0x18')])),_0x5f30a1[_0x3741bc('0x11')]=_0x5f30a1[_0x3741bc('0x11')][_0x3741bc('0x3')]?_0x5f30a1[_0x3741bc('0x11')]:_0x5eb742['model'];typeof _0x2643e0['query'][_0x3741bc('0x34')]===_0x3741bc('0x6')&&(_0x5f30a1[_0x3741bc('0x32')]=qs[_0x3741bc('0x32')](_0x2643e0['query']['limit']),_0x5f30a1[_0x3741bc('0x15')]=qs['offset'](_0x2643e0[_0x3741bc('0xc')]['offset']));_0x5f30a1[_0x3741bc('0x2')]=qs[_0x3741bc('0x2f')](_0x2643e0['query'][_0x3741bc('0x2f')]),_0x5f30a1[_0x3741bc('0x13')]=qs['filters'](_[_0x3741bc('0x27')](_0x2643e0[_0x3741bc('0xc')],_0x5eb742[_0x3741bc('0x26')]),_0x557c90);_0x2643e0[_0x3741bc('0xc')][_0x3741bc('0xe')]&&(_0x5f30a1[_0x3741bc('0x13')]=_[_0x3741bc('0x20')](_0x5f30a1['where'],{[Op['or']]:_[_0x3741bc('0x23')](_0x557c90,function(_0x113d64){const _0x1f90e8=_0x3741bc;if(_0x113d64[_0x1f90e8('0x2e')]!==_0x1f90e8('0x37')){const _0xde744c={};return _0xde744c[_0x113d64[_0x1f90e8('0xa')]]={[Op[_0x1f90e8('0x0')]]:'%'+_0x2643e0['query'][_0x1f90e8('0xe')]+'%'},_0xde744c;}})}));_0x5f30a1=_['merge']({},_0x5f30a1,_0x2643e0[_0x3741bc('0x9')]);const _0x25ba58={'where':_0x5f30a1[_0x3741bc('0x13')]};return db[_0x3741bc('0x1a')][_0x3741bc('0x25')](_0x25ba58)['then'](function(_0x4fca09){const _0x85c157=_0x3741bc;return _0x357b0a[_0x85c157('0x25')]=_0x4fca09,_0x2643e0[_0x85c157('0xc')]['includeAll']&&(_0x5f30a1['include']=[{'all':!![]}]),db[_0x85c157('0x1a')][_0x85c157('0x2a')](_0x5f30a1);})[_0x3741bc('0x10')](function(_0xe8a327){const _0x28eb85=_0x3741bc;return _0x357b0a[_0x28eb85('0x30')]=_0xe8a327,_0x357b0a;})[_0x3741bc('0x10')](respondWithFilteredResult(_0x16d61f,_0x5f30a1))['catch'](handleError(_0x16d61f,null));},exports['show']=function(_0x370935,_0x1da1ee){const _0x4fdfcf=_0x25fda0;let _0x315384={'raw':!![],'where':{'id':_0x370935[_0x4fdfcf('0x1b')]['id']}};const _0x127387={};return _0x127387[_0x4fdfcf('0x1')]=_[_0x4fdfcf('0x14')](db[_0x4fdfcf('0x1a')][_0x4fdfcf('0x1c')]),_0x127387[_0x4fdfcf('0xc')]=_[_0x4fdfcf('0x14')](_0x370935[_0x4fdfcf('0xc')]),_0x127387[_0x4fdfcf('0x26')]=_[_0x4fdfcf('0x2b')](_0x127387[_0x4fdfcf('0x1')],_0x127387[_0x4fdfcf('0xc')]),_0x315384[_0x4fdfcf('0x11')]=_[_0x4fdfcf('0x2b')](_0x127387[_0x4fdfcf('0x1')],qs[_0x4fdfcf('0x18')](_0x370935[_0x4fdfcf('0xc')]['fields'])),_0x315384[_0x4fdfcf('0x11')]=_0x315384[_0x4fdfcf('0x11')][_0x4fdfcf('0x3')]?_0x315384[_0x4fdfcf('0x11')]:_0x127387['model'],_0x370935[_0x4fdfcf('0xc')][_0x4fdfcf('0x36')]&&(_0x315384[_0x4fdfcf('0x24')]=[{'all':!![]}]),_0x315384=_[_0x4fdfcf('0x20')]({},_0x315384,_0x370935[_0x4fdfcf('0x9')]),db[_0x4fdfcf('0x1a')][_0x4fdfcf('0x31')](_0x315384)[_0x4fdfcf('0x10')](handleEntityNotFound(_0x1da1ee,null))[_0x4fdfcf('0x10')](respondWithResult(_0x1da1ee,null))[_0x4fdfcf('0x22')](handleError(_0x1da1ee,null));},exports['create']=function(_0x2c289b,_0xc0798b){const _0x3af779=_0x25fda0;return db[_0x3af779('0x1a')]['create'](_0x2c289b['body'],{})[_0x3af779('0x10')](function(_0x5c142f){const _0x4d0fca=_0x3af779,_0x12c63a=_0x2c289b['user'][_0x4d0fca('0x29')]({'plain':!![]});if(!_0x12c63a)throw new Error(_0x4d0fca('0x5'));if(_0x12c63a[_0x4d0fca('0x17')]==='user'){const _0x4f7a03=_0x5c142f['get']({'plain':!![]}),_0x129b77='Variables';return db[_0x4d0fca('0x8')]['findOne']({'where':{'name':_0x129b77,'userProfileId':_0x12c63a[_0x4d0fca('0x1f')]},'raw':!![]})[_0x4d0fca('0x10')](function(_0xdcf45e){const _0x177795=_0x4d0fca;return _0xdcf45e&&_0xdcf45e['autoAssociation']===0x0?db[_0x177795('0x4')][_0x177795('0xb')]({'name':_0x4f7a03[_0x177795('0xa')],'resourceId':_0x4f7a03['id'],'type':_0xdcf45e[_0x177795('0xa')],'sectionId':_0xdcf45e['id']},{})[_0x177795('0x10')](function(){return _0x5c142f;}):_0x5c142f;})[_0x4d0fca('0x22')](function(_0x479569){const _0x2e8f9f=_0x4d0fca;logger['error'](_0x2e8f9f('0x28'),_0x479569);throw _0x479569;});}return _0x5c142f;})[_0x3af779('0x10')](respondWithResult(_0xc0798b,0xc9))[_0x3af779('0x22')](handleError(_0xc0798b,null));},exports[_0x25fda0('0x38')]=function(_0x57b84a,_0x32637){const _0x370294=_0x25fda0;return _0x57b84a[_0x370294('0x2d')]['id']&&delete _0x57b84a[_0x370294('0x2d')]['id'],db[_0x370294('0x1a')][_0x370294('0x31')]({'where':{'id':_0x57b84a[_0x370294('0x1b')]['id']}})['then'](handleEntityNotFound(_0x32637,null))[_0x370294('0x10')](saveUpdates(_0x57b84a[_0x370294('0x2d')],null))[_0x370294('0x10')](respondWithResult(_0x32637,null))[_0x370294('0x22')](handleError(_0x32637,null));},exports['destroy']=function(_0x14325a,_0x192e3e){const _0x4b916a=_0x25fda0;return db[_0x4b916a('0x1a')][_0x4b916a('0x31')]({'where':{'id':_0x14325a[_0x4b916a('0x1b')]['id']}})['then'](handleEntityNotFound(_0x192e3e,null))[_0x4b916a('0x10')](removeEntity(_0x192e3e,null))[_0x4b916a('0x22')](handleError(_0x192e3e,null));}; \ No newline at end of file +const a836_0x49e8=['offset','nolimit','findOne','filters','show','model','like','key','autoAssociation','Variable','merge','end','Variables','includeAll','../../mysqldb','lodash','send','role','user','sequelize','attributes','stack','set','Content-Range','fields','name','length','keys','query','filter','index','rows','UserProfileResource','params','error','fieldName','count','body','api','VIRTUAL','../../config/logger','type','rawAttributes','create','where','UserProfileSection','sort','userProfileId','options','intersection','catch','status','destroy','Unable\x20to\x20retrieve\x20the\x20current\x20user','findAll','get','then','limit','map','../../components/parsers/qs','update'];(function(_0x26680a,_0x289076){const _0x49e816=function(_0x285b39){while(--_0x285b39){_0x26680a['push'](_0x26680a['shift']());}};_0x49e816(++_0x289076);}(a836_0x49e8,0x145));const a836_0x285b=function(_0x26680a,_0x289076){_0x26680a=_0x26680a-0x134;let _0x49e816=a836_0x49e8[_0x26680a];return _0x49e816;};const a836_0x29326d=a836_0x285b;'use strict';const _=require(a836_0x29326d(0x16c)),qs=require(a836_0x29326d(0x15b)),logger=require(a836_0x29326d(0x148))(a836_0x29326d(0x146)),{db}=require(a836_0x29326d(0x16b)),{Op}=require(a836_0x29326d(0x170));function respondWithResult(_0x41dd46,_0x32accb){return _0x32accb=_0x32accb||0xc8,function(_0x461b85){const _0x1e9b89=a836_0x285b;if(_0x461b85)return _0x41dd46[_0x1e9b89(0x153)](_0x32accb)['json'](_0x461b85);};}function respondWithFilteredResult(_0x107228,_0x14d888){return function(_0x272f35){const _0x326c4d=a836_0x285b;if(_0x272f35){const _0x1b1352=_0x272f35[_0x326c4d(0x144)],_0x440a01=_0x14d888[_0x326c4d(0x15d)];let _0x1361cc=_0x14d888['offset']+_0x14d888['limit'],_0xcf3cb0;return _0x1361cc>=_0x1b1352?(_0x1361cc=_0x1b1352,_0xcf3cb0=0xc8):_0xcf3cb0=0xce,_0x107228[_0x326c4d(0x153)](_0xcf3cb0),_0x107228[_0x326c4d(0x136)](_0x326c4d(0x137),_0x440a01+'-'+_0x1361cc+'/'+_0x1b1352)['json'](_0x272f35);}return null;};}function saveUpdates(_0x4905be){return function(_0x195a57){const _0x3cb70a=a836_0x285b;if(_0x195a57)return _0x195a57[_0x3cb70a(0x15c)](_0x4905be)[_0x3cb70a(0x158)](function(_0x3a4490){return _0x3a4490;});return null;};}function removeEntity(_0x441cc3){return function(_0x37342f){const _0x3a6848=a836_0x285b;if(_0x37342f)return _0x37342f['destroy']()['then'](function(){const _0x51c980=a836_0x285b,_0x1f50ce=_0x37342f[_0x51c980(0x157)]({'plain':!![]}),_0x1288a8=_0x51c980(0x169);return db[_0x51c980(0x140)]['destroy']({'where':{'type':_0x1288a8,'resourceId':_0x1f50ce['id']}})[_0x51c980(0x158)](function(){return _0x37342f;});})[_0x3a6848(0x158)](function(){const _0xf3da3c=_0x3a6848;_0x441cc3[_0xf3da3c(0x153)](0xcc)[_0xf3da3c(0x168)]();});};}function handleEntityNotFound(_0x3770a6){return function(_0x579a73){return!_0x579a73&&_0x3770a6['sendStatus'](0x194),_0x579a73;};}function handleError(_0xa64c1c,_0x297b85){return _0x297b85=_0x297b85||0x1f4,function(_0x6eaf4d){const _0x871eda=a836_0x285b;logger[_0x871eda(0x142)](_0x6eaf4d[_0x871eda(0x135)]),_0x6eaf4d[_0x871eda(0x139)]&&delete _0x6eaf4d[_0x871eda(0x139)],_0xa64c1c[_0x871eda(0x153)](_0x297b85)[_0x871eda(0x16d)](_0x6eaf4d);};}exports[a836_0x29326d(0x13e)]=function(_0x274633,_0x3a39f1){const _0x2420e1=a836_0x29326d;let _0x34a948={};const _0x54f5a6={},_0x4dc1f4={'count':0x0,'rows':[]},_0x9896da=_[_0x2420e1(0x15a)](db[_0x2420e1(0x166)][_0x2420e1(0x14a)],function(_0x5e3317){const _0x149d0b=_0x2420e1;return{'name':_0x5e3317[_0x149d0b(0x143)],'type':_0x5e3317[_0x149d0b(0x149)][_0x149d0b(0x164)]};});_0x54f5a6[_0x2420e1(0x162)]=_['map'](_0x9896da,_0x2420e1(0x139)),_0x54f5a6[_0x2420e1(0x13c)]=_[_0x2420e1(0x13b)](_0x274633[_0x2420e1(0x13c)]),_0x54f5a6[_0x2420e1(0x160)]=_[_0x2420e1(0x151)](_0x54f5a6[_0x2420e1(0x162)],_0x54f5a6[_0x2420e1(0x13c)]),_0x34a948[_0x2420e1(0x134)]=_[_0x2420e1(0x151)](_0x54f5a6[_0x2420e1(0x162)],qs[_0x2420e1(0x138)](_0x274633[_0x2420e1(0x13c)][_0x2420e1(0x138)])),_0x34a948[_0x2420e1(0x134)]=_0x34a948[_0x2420e1(0x134)]['length']?_0x34a948[_0x2420e1(0x134)]:_0x54f5a6[_0x2420e1(0x162)];typeof _0x274633['query'][_0x2420e1(0x15e)]==='undefined'&&(_0x34a948[_0x2420e1(0x159)]=qs[_0x2420e1(0x159)](_0x274633['query']['limit']),_0x34a948[_0x2420e1(0x15d)]=qs[_0x2420e1(0x15d)](_0x274633[_0x2420e1(0x13c)][_0x2420e1(0x15d)]));_0x34a948['order']=qs[_0x2420e1(0x14e)](_0x274633[_0x2420e1(0x13c)][_0x2420e1(0x14e)]),_0x34a948['where']=qs[_0x2420e1(0x160)](_['pick'](_0x274633[_0x2420e1(0x13c)],_0x54f5a6[_0x2420e1(0x160)]),_0x9896da);_0x274633[_0x2420e1(0x13c)]['filter']&&(_0x34a948['where']=_[_0x2420e1(0x167)](_0x34a948[_0x2420e1(0x14c)],{[Op['or']]:_[_0x2420e1(0x15a)](_0x9896da,function(_0x472f3c){const _0x102604=_0x2420e1;if(_0x472f3c[_0x102604(0x149)]!==_0x102604(0x147)){const _0x454c9e={};return _0x454c9e[_0x472f3c['name']]={[Op[_0x102604(0x163)]]:'%'+_0x274633[_0x102604(0x13c)][_0x102604(0x13d)]+'%'},_0x454c9e;}})}));_0x34a948=_[_0x2420e1(0x167)]({},_0x34a948,_0x274633[_0x2420e1(0x150)]);const _0x31c85c={'where':_0x34a948[_0x2420e1(0x14c)]};return db['Variable'][_0x2420e1(0x144)](_0x31c85c)[_0x2420e1(0x158)](function(_0x4e5b2e){const _0x1403b4=_0x2420e1;return _0x4dc1f4[_0x1403b4(0x144)]=_0x4e5b2e,_0x274633['query'][_0x1403b4(0x16a)]&&(_0x34a948['include']=[{'all':!![]}]),db['Variable'][_0x1403b4(0x156)](_0x34a948);})[_0x2420e1(0x158)](function(_0x17ac11){const _0x1ca4b1=_0x2420e1;return _0x4dc1f4[_0x1ca4b1(0x13f)]=_0x17ac11,_0x4dc1f4;})[_0x2420e1(0x158)](respondWithFilteredResult(_0x3a39f1,_0x34a948))[_0x2420e1(0x152)](handleError(_0x3a39f1,null));},exports[a836_0x29326d(0x161)]=function(_0x59efc7,_0x24eba2){const _0x876e13=a836_0x29326d;let _0x2f207c={'raw':!![],'where':{'id':_0x59efc7[_0x876e13(0x141)]['id']}};const _0x58ccc5={};return _0x58ccc5[_0x876e13(0x162)]=_[_0x876e13(0x13b)](db[_0x876e13(0x166)][_0x876e13(0x14a)]),_0x58ccc5['query']=_[_0x876e13(0x13b)](_0x59efc7[_0x876e13(0x13c)]),_0x58ccc5[_0x876e13(0x160)]=_[_0x876e13(0x151)](_0x58ccc5[_0x876e13(0x162)],_0x58ccc5['query']),_0x2f207c[_0x876e13(0x134)]=_['intersection'](_0x58ccc5[_0x876e13(0x162)],qs[_0x876e13(0x138)](_0x59efc7['query'][_0x876e13(0x138)])),_0x2f207c[_0x876e13(0x134)]=_0x2f207c[_0x876e13(0x134)][_0x876e13(0x13a)]?_0x2f207c['attributes']:_0x58ccc5[_0x876e13(0x162)],_0x59efc7[_0x876e13(0x13c)][_0x876e13(0x16a)]&&(_0x2f207c['include']=[{'all':!![]}]),_0x2f207c=_[_0x876e13(0x167)]({},_0x2f207c,_0x59efc7['options']),db['Variable'][_0x876e13(0x15f)](_0x2f207c)['then'](handleEntityNotFound(_0x24eba2,null))[_0x876e13(0x158)](respondWithResult(_0x24eba2,null))['catch'](handleError(_0x24eba2,null));},exports[a836_0x29326d(0x14b)]=function(_0x50d872,_0x1a402f){const _0x78447d=a836_0x29326d;return db[_0x78447d(0x166)][_0x78447d(0x14b)](_0x50d872[_0x78447d(0x145)],{})[_0x78447d(0x158)](function(_0x69ac6){const _0x394d9b=_0x78447d,_0x27b03f=_0x50d872[_0x394d9b(0x16f)][_0x394d9b(0x157)]({'plain':!![]});if(!_0x27b03f)throw new Error(_0x394d9b(0x155));if(_0x27b03f[_0x394d9b(0x16e)]===_0x394d9b(0x16f)){const _0x1708d9=_0x69ac6[_0x394d9b(0x157)]({'plain':!![]}),_0x5c1ef7=_0x394d9b(0x169);return db[_0x394d9b(0x14d)][_0x394d9b(0x15f)]({'where':{'name':_0x5c1ef7,'userProfileId':_0x27b03f[_0x394d9b(0x14f)]},'raw':!![]})[_0x394d9b(0x158)](function(_0x5d220e){const _0xcd17af=_0x394d9b;return _0x5d220e&&_0x5d220e[_0xcd17af(0x165)]===0x0?db[_0xcd17af(0x140)][_0xcd17af(0x14b)]({'name':_0x1708d9[_0xcd17af(0x139)],'resourceId':_0x1708d9['id'],'type':_0x5d220e[_0xcd17af(0x139)],'sectionId':_0x5d220e['id']},{})[_0xcd17af(0x158)](function(){return _0x69ac6;}):_0x69ac6;})['catch'](function(_0x4b4863){const _0x307a4b=_0x394d9b;logger[_0x307a4b(0x142)]('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0x4b4863);throw _0x4b4863;});}return _0x69ac6;})['then'](respondWithResult(_0x1a402f,0xc9))[_0x78447d(0x152)](handleError(_0x1a402f,null));},exports[a836_0x29326d(0x15c)]=function(_0x371a2d,_0x5ca35b){const _0x5b3317=a836_0x29326d;return _0x371a2d['body']['id']&&delete _0x371a2d[_0x5b3317(0x145)]['id'],db[_0x5b3317(0x166)][_0x5b3317(0x15f)]({'where':{'id':_0x371a2d[_0x5b3317(0x141)]['id']}})[_0x5b3317(0x158)](handleEntityNotFound(_0x5ca35b,null))[_0x5b3317(0x158)](saveUpdates(_0x371a2d[_0x5b3317(0x145)],null))[_0x5b3317(0x158)](respondWithResult(_0x5ca35b,null))[_0x5b3317(0x152)](handleError(_0x5ca35b,null));},exports[a836_0x29326d(0x154)]=function(_0x502c6d,_0x467ad0){const _0x73d7ed=a836_0x29326d;return db['Variable'][_0x73d7ed(0x15f)]({'where':{'id':_0x502c6d[_0x73d7ed(0x141)]['id']}})['then'](handleEntityNotFound(_0x467ad0,null))[_0x73d7ed(0x158)](removeEntity(_0x467ad0,null))[_0x73d7ed(0x152)](handleError(_0x467ad0,null));}; \ No newline at end of file diff --git a/server/api/variable/variable.model.js b/server/api/variable/variable.model.js index 8593e1a..85385a2 100644 --- a/server/api/variable/variable.model.js +++ b/server/api/variable/variable.model.js @@ -1 +1 @@ -const a698_0x3865=['./variable.attributes','tools_variables','define','Variable','exports'];(function(_0x31cf48,_0x3865c3){const _0x5bbacb=function(_0x5d0886){while(--_0x5d0886){_0x31cf48['push'](_0x31cf48['shift']());}};_0x5bbacb(++_0x3865c3);}(a698_0x3865,0xc1));const a698_0x5bba=function(_0x31cf48,_0x3865c3){_0x31cf48=_0x31cf48-0x0;let _0x5bbacb=a698_0x3865[_0x31cf48];return _0x5bbacb;};const _0x2a26d6=a698_0x5bba;'use strict';const attributes=require(_0x2a26d6('0x2'));module[_0x2a26d6('0x1')]=function(_0x5d0886){const _0x3a9d77=_0x2a26d6,_0x172026=_0x5d0886[_0x3a9d77('0x4')](_0x3a9d77('0x0'),attributes,{'tableName':_0x3a9d77('0x3'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x172026;}; \ No newline at end of file +const a837_0x43dc=['./variable.options','./variable.attributes','init','function','exports','sequelize'];(function(_0x58b128,_0x311ad0){const _0x43dc2f=function(_0x3587ca){while(--_0x3587ca){_0x58b128['push'](_0x58b128['shift']());}};_0x43dc2f(++_0x311ad0);}(a837_0x43dc,0x1a8));const a837_0x3587=function(_0x58b128,_0x311ad0){_0x58b128=_0x58b128-0xee;let _0x43dc2f=a837_0x43dc[_0x58b128];return _0x43dc2f;};const a837_0x483d25=a837_0x3587;'use strict';const {Model}=require(a837_0x483d25(0xef)),{attributes}=require(a837_0x483d25(0xf1)),{options}=require(a837_0x483d25(0xf0));class Variable extends Model{}function init(_0x50401b,_0x569a0c){const _0x2846f5=a837_0x483d25,_0x5e8fa4=options(_0x50401b),_0x4965fd=typeof _0x569a0c===_0x2846f5(0xf3)?_0x569a0c(_0x5e8fa4):_0x5e8fa4;return Variable[_0x2846f5(0xf2)](attributes,_0x4965fd),Variable;}module[a837_0x483d25(0xee)]['Variable']=Variable,module[a837_0x483d25(0xee)]['init']=init; \ No newline at end of file diff --git a/server/api/variable/variable.options.js b/server/api/variable/variable.options.js new file mode 100644 index 0000000..ec73940 --- /dev/null +++ b/server/api/variable/variable.options.js @@ -0,0 +1 @@ +var a838_0x3bea=['options','exports','tools_variables'];(function(_0x527642,_0x303b0d){var _0x3bea1b=function(_0x4552c1){while(--_0x4552c1){_0x527642['push'](_0x527642['shift']());}};_0x3bea1b(++_0x303b0d);}(a838_0x3bea,0x1d8));var a838_0x4552=function(_0x527642,_0x303b0d){_0x527642=_0x527642-0x97;var _0x3bea1b=a838_0x3bea[_0x527642];return _0x3bea1b;};var a838_0x260150=a838_0x4552;function options(_0x5e1e0b){var _0x1007e6=a838_0x4552;return{'sequelize':_0x5e1e0b,'tableName':_0x1007e6(0x98),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a838_0x260150(0x97)][a838_0x260150(0x99)]=options; \ No newline at end of file diff --git a/server/api/variable/variable.rpc.js b/server/api/variable/variable.rpc.js index a64bf7e..cfb416b 100644 --- a/server/api/variable/variable.rpc.js +++ b/server/api/variable/variable.rpc.js @@ -1 +1 @@ -const a699_0x17d9=['catch','rpc','ShowVariable','debug','model','then','message','lodash','where','map','include','attributes','options','../../config/logger','error','Variable','info'];(function(_0x1d7620,_0x17d9b8){const _0x59076b=function(_0x22400d){while(--_0x22400d){_0x1d7620['push'](_0x1d7620['shift']());}};_0x59076b(++_0x17d9b8);}(a699_0x17d9,0x12c));const a699_0x5907=function(_0x1d7620,_0x17d9b8){_0x1d7620=_0x1d7620-0x0;let _0x59076b=a699_0x17d9[_0x1d7620];return _0x59076b;};const _0x26b3d6=a699_0x5907;'use strict';const db=require('../../mysqldb')['db'],logger=require(_0x26b3d6('0x2'))(_0x26b3d6('0x7')),_=require(_0x26b3d6('0xd'));exports[_0x26b3d6('0x8')]=function(_0x22400d){const _0x1f33ab=this;return new Promise(function(_0x30cc0b,_0x3f58b3){const _0x3be987=a699_0x5907;return db[_0x3be987('0x4')]['findOne']({'raw':_0x22400d['options']?_0x22400d[_0x3be987('0x1')]['raw']===undefined?!![]:![]:!![],'where':_0x22400d[_0x3be987('0x1')]?_0x22400d[_0x3be987('0x1')][_0x3be987('0xe')]||null:null,'attributes':_0x22400d['options']?_0x22400d[_0x3be987('0x1')][_0x3be987('0x0')]||null:null,'include':_0x22400d[_0x3be987('0x1')]?_0x22400d['options'][_0x3be987('0x10')]?_[_0x3be987('0xf')](_0x22400d['options'][_0x3be987('0x10')],function(_0x30210a){const _0x213729=_0x3be987;return{'model':db[_0x30210a[_0x213729('0xa')]],'as':_0x30210a['as'],'attributes':_0x30210a['attributes'],'include':_0x30210a[_0x213729('0x10')]?_[_0x213729('0xf')](_0x30210a[_0x213729('0x10')],function(_0x25d513){const _0x4b1153=_0x213729;return{'model':db[_0x25d513[_0x4b1153('0xa')]],'as':_0x25d513['as'],'attributes':_0x25d513[_0x4b1153('0x0')],'include':_0x25d513[_0x4b1153('0x10')]?_[_0x4b1153('0xf')](_0x25d513['include'],function(_0x2ae0b8){const _0x2ae5c8=_0x4b1153;return{'model':db[_0x2ae0b8[_0x2ae5c8('0xa')]],'as':_0x2ae0b8['as'],'attributes':_0x2ae0b8[_0x2ae5c8('0x0')]};}):[]};}):[]};}):[]:[]})[_0x3be987('0xb')](function(_0x342f77){const _0x706e2b=_0x3be987;logger[_0x706e2b('0x5')](_0x706e2b('0x8'),_0x22400d),logger[_0x706e2b('0x9')]('ShowVariable',_0x22400d,JSON['stringify'](_0x342f77)),_0x30cc0b(_0x342f77);})[_0x3be987('0x6')](function(_0x1bc26f){const _0x5a5d72=_0x3be987;logger[_0x5a5d72('0x3')]('ShowVariable',_0x1bc26f[_0x5a5d72('0xc')],_0x22400d),_0x3f58b3(_0x1f33ab[_0x5a5d72('0x3')](0x1f4,_0x1bc26f[_0x5a5d72('0xc')]));});});}; \ No newline at end of file +const a839_0xb03d=['../../mysqldb','include','info','message','../../config/logger','debug','ShowVariable','model','catch','options','Variable','stringify','lodash','error','map','attributes'];(function(_0xea169b,_0x134408){const _0xb03d5e=function(_0x3bec37){while(--_0x3bec37){_0xea169b['push'](_0xea169b['shift']());}};_0xb03d5e(++_0x134408);}(a839_0xb03d,0x1ad));const a839_0x3bec=function(_0xea169b,_0x134408){_0xea169b=_0xea169b-0x86;let _0xb03d5e=a839_0xb03d[_0xea169b];return _0xb03d5e;};const a839_0x2ee2d4=a839_0x3bec;'use strict';const db=require(a839_0x2ee2d4(0x89))['db'],logger=require(a839_0x2ee2d4(0x8d))('rpc'),_=require(a839_0x2ee2d4(0x95));exports[a839_0x2ee2d4(0x8f)]=function(_0x1cd407){const _0x1c0000=this;return new Promise(function(_0x54eaff,_0x518370){const _0x367758=a839_0x3bec;return db[_0x367758(0x93)]['findOne']({'raw':_0x1cd407[_0x367758(0x92)]?_0x1cd407[_0x367758(0x92)]['raw']===undefined?!![]:![]:!![],'where':_0x1cd407[_0x367758(0x92)]?_0x1cd407[_0x367758(0x92)]['where']||null:null,'attributes':_0x1cd407['options']?_0x1cd407[_0x367758(0x92)][_0x367758(0x88)]||null:null,'include':_0x1cd407[_0x367758(0x92)]?_0x1cd407[_0x367758(0x92)][_0x367758(0x8a)]?_[_0x367758(0x87)](_0x1cd407['options'][_0x367758(0x8a)],function(_0x785903){const _0x5b170c=_0x367758;return{'model':db[_0x785903['model']],'as':_0x785903['as'],'attributes':_0x785903[_0x5b170c(0x88)],'include':_0x785903[_0x5b170c(0x8a)]?_[_0x5b170c(0x87)](_0x785903['include'],function(_0x193c88){const _0x4bce5d=_0x5b170c;return{'model':db[_0x193c88[_0x4bce5d(0x90)]],'as':_0x193c88['as'],'attributes':_0x193c88[_0x4bce5d(0x88)],'include':_0x193c88[_0x4bce5d(0x8a)]?_[_0x4bce5d(0x87)](_0x193c88[_0x4bce5d(0x8a)],function(_0xfdb4fd){const _0x311eeb=_0x4bce5d;return{'model':db[_0xfdb4fd[_0x311eeb(0x90)]],'as':_0xfdb4fd['as'],'attributes':_0xfdb4fd[_0x311eeb(0x88)]};}):[]};}):[]};}):[]:[]})['then'](function(_0x285a26){const _0x2b3136=_0x367758;logger[_0x2b3136(0x8b)](_0x2b3136(0x8f),_0x1cd407),logger[_0x2b3136(0x8e)]('ShowVariable',_0x1cd407,JSON[_0x2b3136(0x94)](_0x285a26)),_0x54eaff(_0x285a26);})[_0x367758(0x91)](function(_0x4fd152){const _0x1261c0=_0x367758;logger[_0x1261c0(0x86)](_0x1261c0(0x8f),_0x4fd152[_0x1261c0(0x8c)],_0x1cd407),_0x518370(_0x1c0000[_0x1261c0(0x86)](0x1f4,_0x4fd152[_0x1261c0(0x8c)]));});});}; \ No newline at end of file diff --git a/server/api/version/index.js b/server/api/version/index.js index 7cb0f76..7f3ee8f 100644 --- a/server/api/version/index.js +++ b/server/api/version/index.js @@ -1 +1 @@ -const a700_0x194c=['express','get','./version.controller','fetch','exports','restart','canUpdate','../../components/auth/service','/pull','isAuthenticated','Router','index','reset'];(function(_0x4100c9,_0x194ca6){const _0x311524=function(_0x1288b5){while(--_0x1288b5){_0x4100c9['push'](_0x4100c9['shift']());}};_0x311524(++_0x194ca6);}(a700_0x194c,0x121));const a700_0x3115=function(_0x4100c9,_0x194ca6){_0x4100c9=_0x4100c9-0x0;let _0x311524=a700_0x194c[_0x4100c9];return _0x311524;};const _0x395b6c=a700_0x3115;'use strict';const express=require(_0x395b6c('0xa')),router=express[_0x395b6c('0x7')](),auth=require(_0x395b6c('0x4')),controller=require(_0x395b6c('0xc'));router['get']('/',controller[_0x395b6c('0x8')]),router[_0x395b6c('0xb')]('/fetch',auth['isAuthenticated'](),auth[_0x395b6c('0x3')](),controller[_0x395b6c('0x0')]),router[_0x395b6c('0xb')]('/reset',auth[_0x395b6c('0x6')](),auth['canUpdate'](),controller[_0x395b6c('0x9')]),router[_0x395b6c('0xb')](_0x395b6c('0x5'),auth[_0x395b6c('0x6')](),auth[_0x395b6c('0x3')](),controller['pull']),router[_0x395b6c('0xb')]('/restart',auth[_0x395b6c('0x6')](),controller[_0x395b6c('0x2')]),router[_0x395b6c('0xb')]('/migrations',controller['migrations']),module[_0x395b6c('0x1')]=router; \ No newline at end of file +const a840_0x2d65=['pull','express','migrations','get','reset','Router','/migrations','/reset','exports','/restart','fetch','/fetch','./version.controller','canUpdate','index','isAuthenticated','restart'];(function(_0x5d0aad,_0x2194d0){const _0x2d65ef=function(_0x374ed0){while(--_0x374ed0){_0x5d0aad['push'](_0x5d0aad['shift']());}};_0x2d65ef(++_0x2194d0);}(a840_0x2d65,0x1b2));const a840_0x374e=function(_0x5d0aad,_0x2194d0){_0x5d0aad=_0x5d0aad-0x1c6;let _0x2d65ef=a840_0x2d65[_0x5d0aad];return _0x2d65ef;};const a840_0x49e6ac=a840_0x374e;'use strict';const express=require(a840_0x49e6ac(0x1cf)),router=express[a840_0x49e6ac(0x1d3)](),auth=require('../../components/auth/service'),controller=require(a840_0x49e6ac(0x1c9));router['get']('/',controller[a840_0x49e6ac(0x1cb)]),router[a840_0x49e6ac(0x1d1)](a840_0x49e6ac(0x1c8),auth[a840_0x49e6ac(0x1cc)](),auth[a840_0x49e6ac(0x1ca)](),controller[a840_0x49e6ac(0x1c7)]),router[a840_0x49e6ac(0x1d1)](a840_0x49e6ac(0x1d5),auth[a840_0x49e6ac(0x1cc)](),auth[a840_0x49e6ac(0x1ca)](),controller[a840_0x49e6ac(0x1d2)]),router['get']('/pull',auth[a840_0x49e6ac(0x1cc)](),auth[a840_0x49e6ac(0x1ca)](),controller[a840_0x49e6ac(0x1ce)]),router[a840_0x49e6ac(0x1d1)](a840_0x49e6ac(0x1c6),auth[a840_0x49e6ac(0x1cc)](),controller[a840_0x49e6ac(0x1cd)]),router[a840_0x49e6ac(0x1d1)](a840_0x49e6ac(0x1d4),controller[a840_0x49e6ac(0x1d0)]),module[a840_0x49e6ac(0x1d6)]=router; \ No newline at end of file diff --git a/server/api/version/version.controller.js b/server/api/version/version.controller.js index 867fa22..8284325 100644 --- a/server/api/version/version.controller.js +++ b/server/api/version/version.controller.js @@ -1 +1 @@ -const a701_0xd774=['../../utils/build-info','pm2\x20restart\x20motion\x20%s','info','path','root','simple-git','latest','fetch','then','git\x20reset\x20--hard','tags','lodash','error','version','update','--hard','.js','migrations','compare-versions','json','exports','../../config/logger','npm\x20install\x20--production','join','\x20to\x20','FETCH_HEAD','motion2','../../../package.json','reset','git\x20fetch\x20origin\x20master','master','2.0.0','child_process','sort','../../config/environment','map','constructor','git\x20fetch','Migration','sequelize','origin','umzug','exec','query','length','push','catch','status','replace','../../config/pm2','Database\x20already\x20up-to-date'];(function(_0x5da7a7,_0xd77408){const _0x3bd97e=function(_0x156bba){while(--_0x156bba){_0x5da7a7['push'](_0x5da7a7['shift']());}};_0x3bd97e(++_0xd77408);}(a701_0xd774,0x168));const a701_0x3bd9=function(_0x5da7a7,_0xd77408){_0x5da7a7=_0x5da7a7-0x0;let _0x3bd97e=a701_0xd774[_0x5da7a7];return _0x3bd97e;};const _0x4a303e=a701_0x3bd9;'use strict';const Umzug=require(_0x4a303e('0x26')),path=require(_0x4a303e('0x0')),fs=require('fs'),_=require(_0x4a303e('0x8')),compareVersions=require(_0x4a303e('0xf')),exec=require(_0x4a303e('0x1d'))[_0x4a303e('0x27')],db=require('../../mysqldb')['db'],config=require(_0x4a303e('0x1f')),pm2=require(_0x4a303e('0x2e')),logger=require(_0x4a303e('0x12'))(_0x4a303e('0xb')),{version:packageVersion}=require(_0x4a303e('0x18')),git=require(_0x4a303e('0x2'))(config[_0x4a303e('0x1')]),{UniqueConstraintError}=require(_0x4a303e('0x24')),{readBuildInfo}=require(_0x4a303e('0x30'));async function index(_0x156bba,_0xa78fba){const _0x172849=_0x4a303e,_0x30a122=await readBuildInfo(),_0x56b7b7={'current':packageVersion,'phonebar':0x2,..._0x30a122};return _0x156bba[_0x172849('0x28')]&&_0x156bba[_0x172849('0x28')][_0x172849('0x3')]?git['fetch']()[_0x172849('0x7')](function(_0x53b680,_0x37f5bd){const _0x2ac218=_0x172849;return _0x56b7b7[_0x2ac218('0x3')]=(_0x53b680?packageVersion:_0x37f5bd[_0x2ac218('0x3')])||_0x2ac218('0x1c'),_0xa78fba[_0x2ac218('0x2c')](0xc8)[_0x2ac218('0x10')](_0x56b7b7);}):_0xa78fba[_0x172849('0x2c')](0xc8)['json'](_0x56b7b7);}function fetch(_0x39ce31,_0x49208f){const _0x5f396e=_0x4a303e;return git[_0x5f396e('0x4')]([_0x5f396e('0x25'),_0x5f396e('0x1b')],function(_0x1ee0a5){const _0x148d57=_0x5f396e;if(_0x1ee0a5)return logger[_0x148d57('0x9')](_0x1ee0a5),_0x49208f[_0x148d57('0x2c')](0x1f4)[_0x148d57('0x10')](_0x1ee0a5);return logger[_0x148d57('0x32')](_0x148d57('0x22')),_0x49208f[_0x148d57('0x2c')](0xc8)[_0x148d57('0x10')]({'output':_0x148d57('0x1a')});});}function reset(_0x32f660,_0x59dd6a){const _0xc03616=_0x4a303e;return git[_0xc03616('0x19')]([_0xc03616('0xc'),_0xc03616('0x16')],function(_0x494282){const _0x15ac87=_0xc03616;if(_0x494282)return logger[_0x15ac87('0x9')](_0x494282),_0x59dd6a['status'](0x1f4)[_0x15ac87('0x10')](_0x494282);return logger[_0x15ac87('0x32')]('git\x20reset\x20--hard\x20FETCH_HEAD'),_0x59dd6a[_0x15ac87('0x2c')](0xc8)[_0x15ac87('0x10')]({'output':_0x15ac87('0x6')});});}function pull(_0x2893d0,_0x259e97){const _0x4243aa=_0x4a303e;exec(_0x4243aa('0x13'),function(_0x1afc87,_0x46bfbe,_0x531e47){const _0x1ed732=_0x4243aa;logger[_0x1ed732('0x32')](_0x46bfbe),logger[_0x1ed732('0x32')](_0x531e47);if(_0x1afc87)return logger['error'](_0x1afc87),_0x259e97[_0x1ed732('0x2c')](0x1f4)['json'](_0x1afc87);return _0x259e97['status'](0xc8)[_0x1ed732('0x10')]({'output':_0x46bfbe});});}function restart(_0x3cd689,_0x3e4090){const _0x1400c9=_0x4a303e;return pm2['restart'](_0x1400c9('0x17'))[_0x1400c9('0x5')](function(_0x692023){const _0x4672d2=_0x1400c9;return logger[_0x4672d2('0x32')](_0x4672d2('0x31'),_0x692023),_0x3e4090[_0x4672d2('0x2c')](0xc8)[_0x4672d2('0x10')]({'output':'Your\x20system\x20has\x20been\x20restart\x20successfully'});})[_0x1400c9('0x2b')](function(_0x2fad69){const _0x16a920=_0x1400c9;return logger[_0x16a920('0x9')](_0x2fad69),_0x3e4090[_0x16a920('0x2c')](0x1f4)[_0x16a920('0x10')](_0x2fad69);});}function migrations(_0x410862,_0x501c00){const _0x584591=_0x4a303e,_0x27fe89=fs['readdirSync'](path[_0x584591('0x14')](config['root'],_0x584591('0xe'))),_0x4941f0=[];for(let _0xce16a=0x0;_0xce16a<_0x27fe89['length'];_0xce16a++){const _0x43c746=_0x27fe89[_0xce16a][_0x584591('0x2d')](_0x584591('0xd'),'');compareVersions(packageVersion,_0x43c746)===-0x1&&_0x4941f0[_0x584591('0x2a')](_0x43c746);}if(_0x4941f0[_0x584591('0x29')]){const _0x519bdb=_0x4941f0[_0x584591('0x1e')](compareVersions),_0x3facb3=new Umzug({'storage':_0x584591('0x24'),'storageOptions':{'model':db[_0x584591('0x23')],'modelName':_0x584591('0x23'),'columnName':_0x584591('0xa')},'migrations':{'params':[db[_0x584591('0x24')]['getQueryInterface'](),db[_0x584591('0x24')][_0x584591('0x21')],function(){throw new Error('Migration\x20tried\x20to\x20use\x20old\x20style\x20\x22done\x22\x20callback.\x20Please\x20upgrade\x20to\x20\x22umzug\x22\x20and\x20return\x20a\x20promise\x20instead.');}],'path':path[_0x584591('0x14')](config[_0x584591('0x1')],'migrations'),'pattern':/\.js$/}});_0x3facb3['up']({'migrations':_[_0x584591('0x20')](_0x519bdb,function(_0x150f14){const _0x180c6=_0x584591;return _0x150f14+_0x180c6('0xd');})})[_0x584591('0x5')](function(){const _0x167d6c=_0x584591;return _0x501c00[_0x167d6c('0x2c')](0xc8)[_0x167d6c('0x10')]({'output':'Database\x20migrated\x20successfully\x20from\x20version\x20'+packageVersion+_0x167d6c('0x15')+_['last'](_0x519bdb),'migrations':_['join'](_0x519bdb)});})['catch'](function(_0x2fab9c){const _0x3a0e19=_0x584591;return _0x2fab9c instanceof UniqueConstraintError?_0x501c00[_0x3a0e19('0x2c')](0xc8)[_0x3a0e19('0x10')]({'output':_0x3a0e19('0x2f')}):_0x501c00[_0x3a0e19('0x2c')](0x1f4)['json'](_0x2fab9c);});}else return _0x501c00[_0x584591('0x2c')](0xc8)['json']({'output':'Database\x20already\x20up-to-date'});}module[_0x4a303e('0x11')]={'index':index,'fetch':fetch,'migrations':migrations,'pull':pull,'reset':reset,'restart':restart}; \ No newline at end of file +const a841_0x410c=['../../../package.json','sequelize','child_process','simple-git','\x20to\x20','restart','Database\x20migrated\x20successfully\x20from\x20version\x20','root','last','pm2\x20restart\x20motion\x20%s','json','exports','git\x20reset\x20--hard\x20FETCH_HEAD','npm\x20install\x20--production','latest','replace','join','error','motion2','status','info','length','compare-versions','Migration','../../utils/build-info','catch','readdirSync','--hard','migrations','2.0.0','update','../../config/logger','exec','.js','query','origin','sort','../../mysqldb','../../config/pm2','git\x20reset\x20--hard','fetch','getQueryInterface','index','reset','../../config/environment','lodash','Database\x20already\x20up-to-date','path','then','version'];(function(_0x492f20,_0x269e28){const _0x410c13=function(_0x532107){while(--_0x532107){_0x492f20['push'](_0x492f20['shift']());}};_0x410c13(++_0x269e28);}(a841_0x410c,0x13f));const a841_0x5321=function(_0x492f20,_0x269e28){_0x492f20=_0x492f20-0xd0;let _0x410c13=a841_0x410c[_0x492f20];return _0x410c13;};const a841_0x9f9328=a841_0x5321;'use strict';const Umzug=require('umzug'),path=require(a841_0x9f9328(0xec)),fs=require('fs'),_=require(a841_0x9f9328(0xea)),compareVersions=require(a841_0x9f9328(0xd3)),exec=require(a841_0x9f9328(0xf1))[a841_0x9f9328(0xdd)],{db}=require(a841_0x9f9328(0xe2)),config=require(a841_0x9f9328(0xe9)),pm2=require(a841_0x9f9328(0xe3)),logger=require(a841_0x9f9328(0xdc))(a841_0x9f9328(0xdb)),{version:packageVersion}=require(a841_0x9f9328(0xef)),git=require(a841_0x9f9328(0xf2))(config[a841_0x9f9328(0xf6)]),{UniqueConstraintError}=require(a841_0x9f9328(0xf0)),{readBuildInfo}=require(a841_0x9f9328(0xd5));async function index(_0x4e03b7,_0xabdee8){const _0x4f1331=a841_0x9f9328,_0x3b242f=await readBuildInfo(),_0xc62418={'current':packageVersion,'phonebar':0x2,..._0x3b242f};return _0x4e03b7[_0x4f1331(0xdf)]&&_0x4e03b7['query']['latest']?git[_0x4f1331(0xe5)]()['tags'](function(_0x3a965a,_0x223b6c){const _0x6a0e73=_0x4f1331;return _0xc62418[_0x6a0e73(0xfd)]=(_0x3a965a?packageVersion:_0x223b6c[_0x6a0e73(0xfd)])||_0x6a0e73(0xda),_0xabdee8[_0x6a0e73(0xd0)](0xc8)[_0x6a0e73(0xf9)](_0xc62418);}):_0xabdee8[_0x4f1331(0xd0)](0xc8)[_0x4f1331(0xf9)](_0xc62418);}function fetch(_0x523428,_0x40f830){const _0x47cc47=a841_0x9f9328;return git[_0x47cc47(0xe5)]([_0x47cc47(0xe0),'master'],function(_0x17c7ee){const _0x234a28=_0x47cc47;if(_0x17c7ee)return logger[_0x234a28(0x100)](_0x17c7ee),_0x40f830['status'](0x1f4)['json'](_0x17c7ee);return logger[_0x234a28(0xd1)]('git\x20fetch'),_0x40f830[_0x234a28(0xd0)](0xc8)[_0x234a28(0xf9)]({'output':'git\x20fetch\x20origin\x20master'});});}function reset(_0x5b82da,_0x4d9949){const _0x570c43=a841_0x9f9328;return git[_0x570c43(0xe8)]([_0x570c43(0xd8),'FETCH_HEAD'],function(_0x101bd3){const _0x199e05=_0x570c43;if(_0x101bd3)return logger['error'](_0x101bd3),_0x4d9949[_0x199e05(0xd0)](0x1f4)[_0x199e05(0xf9)](_0x101bd3);return logger[_0x199e05(0xd1)](_0x199e05(0xfb)),_0x4d9949[_0x199e05(0xd0)](0xc8)[_0x199e05(0xf9)]({'output':_0x199e05(0xe4)});});}function pull(_0x4d48f4,_0x2f0391){const _0x5a2b5a=a841_0x9f9328;exec(_0x5a2b5a(0xfc),function(_0x3e914b,_0x3bad1b,_0x52a5a9){const _0x2bde40=_0x5a2b5a;logger['info'](_0x3bad1b),logger[_0x2bde40(0xd1)](_0x52a5a9);if(_0x3e914b)return logger[_0x2bde40(0x100)](_0x3e914b),_0x2f0391['status'](0x1f4)[_0x2bde40(0xf9)](_0x3e914b);return _0x2f0391[_0x2bde40(0xd0)](0xc8)[_0x2bde40(0xf9)]({'output':_0x3bad1b});});}function restart(_0x170a4f,_0x440af5){const _0x422f08=a841_0x9f9328;return pm2['restart'](_0x422f08(0x101))[_0x422f08(0xed)](function(_0x4484ef){const _0x412d44=_0x422f08;return logger[_0x412d44(0xd1)](_0x412d44(0xf8),_0x4484ef),_0x440af5[_0x412d44(0xd0)](0xc8)[_0x412d44(0xf9)]({'output':'Your\x20system\x20has\x20been\x20restarted\x20successfully'});})[_0x422f08(0xd6)](function(_0x52b666){const _0x5e958c=_0x422f08;return logger[_0x5e958c(0x100)](_0x52b666),_0x440af5[_0x5e958c(0xd0)](0x1f4)['json'](_0x52b666);});}function migrations(_0x4bd48a,_0x5ae802){const _0xdf3771=a841_0x9f9328,_0x5371c6=fs[_0xdf3771(0xd7)](path[_0xdf3771(0xff)](config[_0xdf3771(0xf6)],_0xdf3771(0xd9))),_0x41beaf=[];for(let _0x277bdf=0x0;_0x277bdf<_0x5371c6[_0xdf3771(0xd2)];_0x277bdf++){const _0x2666a6=_0x5371c6[_0x277bdf][_0xdf3771(0xfe)]('.js','');compareVersions(packageVersion,_0x2666a6)===-0x1&&_0x41beaf['push'](_0x2666a6);}if(_0x41beaf[_0xdf3771(0xd2)]){const _0x2d4af1=_0x41beaf[_0xdf3771(0xe1)](compareVersions),_0x114b60=new Umzug({'storage':_0xdf3771(0xf0),'storageOptions':{'model':db[_0xdf3771(0xd4)],'modelName':'Migration','columnName':_0xdf3771(0xee)},'migrations':{'params':[db['sequelize'][_0xdf3771(0xe6)](),db['sequelize']['constructor'],function(){throw new Error('Migration\x20tried\x20to\x20use\x20old\x20style\x20\x22done\x22\x20callback.\x20Please\x20upgrade\x20to\x20\x22umzug\x22\x20and\x20return\x20a\x20promise\x20instead.');}],'path':path[_0xdf3771(0xff)](config[_0xdf3771(0xf6)],_0xdf3771(0xd9)),'pattern':/\.js$/}});_0x114b60['up']({'migrations':_['map'](_0x2d4af1,function(_0x33ace6){const _0x33a85c=_0xdf3771;return _0x33ace6+_0x33a85c(0xde);})})[_0xdf3771(0xed)](function(){const _0x1b56e2=_0xdf3771;return _0x5ae802['status'](0xc8)[_0x1b56e2(0xf9)]({'output':_0x1b56e2(0xf5)+packageVersion+_0x1b56e2(0xf3)+_[_0x1b56e2(0xf7)](_0x2d4af1),'migrations':_[_0x1b56e2(0xff)](_0x2d4af1)});})[_0xdf3771(0xd6)](function(_0x4d32a9){const _0x1627ac=_0xdf3771;return _0x4d32a9 instanceof UniqueConstraintError?_0x5ae802[_0x1627ac(0xd0)](0xc8)[_0x1627ac(0xf9)]({'output':_0x1627ac(0xeb)}):_0x5ae802[_0x1627ac(0xd0)](0x1f4)[_0x1627ac(0xf9)](_0x4d32a9);});}else return _0x5ae802['status'](0xc8)['json']({'output':_0xdf3771(0xeb)});}module[a841_0x9f9328(0xfa)][a841_0x9f9328(0xe7)]=index,module[a841_0x9f9328(0xfa)][a841_0x9f9328(0xe5)]=fetch,module[a841_0x9f9328(0xfa)][a841_0x9f9328(0xd9)]=migrations,module[a841_0x9f9328(0xfa)]['pull']=pull,module[a841_0x9f9328(0xfa)]['reset']=reset,module[a841_0x9f9328(0xfa)][a841_0x9f9328(0xf4)]=restart; \ No newline at end of file diff --git a/server/api/voiceAgentReport/index.js b/server/api/voiceAgentReport/index.js index 73ed84c..2c4432f 100644 --- a/server/api/voiceAgentReport/index.js +++ b/server/api/voiceAgentReport/index.js @@ -1 +1 @@ -const a702_0x2b00=['../../components/auth/service','show','post','put','/describe','index','exports','get','create','/:id','destroy','delete','./voiceAgentReport.controller','update','isAuthenticated'];(function(_0x13aee7,_0x2b0035){const _0x27eaf2=function(_0x5a7925){while(--_0x5a7925){_0x13aee7['push'](_0x13aee7['shift']());}};_0x27eaf2(++_0x2b0035);}(a702_0x2b00,0x1b0));const a702_0x27ea=function(_0x13aee7,_0x2b0035){_0x13aee7=_0x13aee7-0x0;let _0x27eaf2=a702_0x2b00[_0x13aee7];return _0x27eaf2;};const _0x1cfe69=a702_0x27ea;'use strict';const express=require('express'),router=express['Router'](),auth=require(_0x1cfe69('0x3')),controller=require(_0x1cfe69('0x0'));router[_0x1cfe69('0xa')]('/',auth[_0x1cfe69('0x2')](),controller[_0x1cfe69('0x8')]),router['get'](_0x1cfe69('0x7'),auth[_0x1cfe69('0x2')](),controller['describe']),router[_0x1cfe69('0xa')](_0x1cfe69('0xc'),auth[_0x1cfe69('0x2')](),controller[_0x1cfe69('0x4')]),router[_0x1cfe69('0x5')]('/',auth['isAuthenticated'](),controller[_0x1cfe69('0xb')]),router[_0x1cfe69('0x6')](_0x1cfe69('0xc'),auth[_0x1cfe69('0x2')](),controller[_0x1cfe69('0x1')]),router[_0x1cfe69('0xe')](_0x1cfe69('0xc'),auth['isAuthenticated'](),controller[_0x1cfe69('0xd')]),module[_0x1cfe69('0x9')]=router; \ No newline at end of file +const a842_0x3fc6=['post','Router','exports','update','get','put','../../components/auth/service','index','delete','destroy','create','express','isAuthenticated','/describe','show','/:id'];(function(_0x5735db,_0x3dca86){const _0x3fc684=function(_0x1a2eb9){while(--_0x1a2eb9){_0x5735db['push'](_0x5735db['shift']());}};_0x3fc684(++_0x3dca86);}(a842_0x3fc6,0xac));const a842_0x1a2e=function(_0x5735db,_0x3dca86){_0x5735db=_0x5735db-0x11d;let _0x3fc684=a842_0x3fc6[_0x5735db];return _0x3fc684;};const a842_0x5844d9=a842_0x1a2e;'use strict';const express=require(a842_0x5844d9(0x12c)),router=express[a842_0x5844d9(0x122)](),auth=require(a842_0x5844d9(0x127)),controller=require('./voiceAgentReport.controller');router[a842_0x5844d9(0x125)]('/',auth['isAuthenticated'](),controller[a842_0x5844d9(0x128)]),router[a842_0x5844d9(0x125)](a842_0x5844d9(0x11e),auth[a842_0x5844d9(0x11d)](),controller['describe']),router[a842_0x5844d9(0x125)](a842_0x5844d9(0x120),auth['isAuthenticated'](),controller[a842_0x5844d9(0x11f)]),router[a842_0x5844d9(0x121)]('/',auth[a842_0x5844d9(0x11d)](),controller[a842_0x5844d9(0x12b)]),router[a842_0x5844d9(0x126)]('/:id',auth['isAuthenticated'](),controller[a842_0x5844d9(0x124)]),router[a842_0x5844d9(0x129)]('/:id',auth[a842_0x5844d9(0x11d)](),controller[a842_0x5844d9(0x12a)]),module[a842_0x5844d9(0x123)]=router; \ No newline at end of file diff --git a/server/api/voiceAgentReport/voiceAgentReport.attributes.js b/server/api/voiceAgentReport/voiceAgentReport.attributes.js index 65e8889..ee0a67f 100644 --- a/server/api/voiceAgentReport/voiceAgentReport.attributes.js +++ b/server/api/voiceAgentReport/voiceAgentReport.attributes.js @@ -1 +1 @@ -const a703_0x3e0d=['exports','STRING','BOOLEAN','INTEGER','DATE','sequelize','FORWARD,\x20BLIND,\x20ATTENDED'];(function(_0x574366,_0x3e0dd8){const _0x5acea7=function(_0x54538b){while(--_0x54538b){_0x574366['push'](_0x574366['shift']());}};_0x5acea7(++_0x3e0dd8);}(a703_0x3e0d,0x92));const a703_0x5ace=function(_0x574366,_0x3e0dd8){_0x574366=_0x574366-0x0;let _0x5acea7=a703_0x3e0d[_0x574366];return _0x5acea7;};const _0xb43d3e=a703_0x5ace;'use strict';const Sequelize=require(_0xb43d3e('0x6'));module[_0xb43d3e('0x1')]={'type':{'type':Sequelize[_0xb43d3e('0x2')]},'uniqueid':{'type':Sequelize[_0xb43d3e('0x2')]},'calleridnum':{'type':Sequelize[_0xb43d3e('0x2')]},'calleridname':{'type':Sequelize[_0xb43d3e('0x2')]},'queue':{'type':Sequelize['STRING']},'interface':{'type':Sequelize['STRING']},'membername':{'type':Sequelize[_0xb43d3e('0x2')]},'agentcalledAt':{'type':Sequelize[_0xb43d3e('0x5')]},'agentconnectAt':{'type':Sequelize[_0xb43d3e('0x5')]},'agentcompleteAt':{'type':Sequelize[_0xb43d3e('0x5')]},'agentringnoanswerAt':{'type':Sequelize[_0xb43d3e('0x5')]},'agentdumpAt':{'type':Sequelize['DATE']},'holdtime':{'type':Sequelize[_0xb43d3e('0x4')]},'agentcomplete':{'type':Sequelize[_0xb43d3e('0x3')],'defaultValue':![]},'agentringnoanswer':{'type':Sequelize[_0xb43d3e('0x3')],'defaultValue':![]},'agentdump':{'type':Sequelize[_0xb43d3e('0x3')],'defaultValue':![]},'talktime':{'type':Sequelize['INTEGER']},'agentacw':{'type':Sequelize[_0xb43d3e('0x3')],'defaultValue':![]},'acwtime':{'type':Sequelize[_0xb43d3e('0x4')]},'reason':{'type':Sequelize[_0xb43d3e('0x2')]},'lastevent':{'type':Sequelize['STRING']},'channel':{'type':Sequelize[_0xb43d3e('0x2')]},'channelstate':{'type':Sequelize['INTEGER']},'channelstatedesc':{'type':Sequelize[_0xb43d3e('0x2')]},'connectedlinenum':{'type':Sequelize[_0xb43d3e('0x2')]},'connectedlinename':{'type':Sequelize[_0xb43d3e('0x2')]},'language':{'type':Sequelize[_0xb43d3e('0x2')]},'accountcode':{'type':Sequelize['STRING']},'context':{'type':Sequelize['STRING']},'exten':{'type':Sequelize['STRING']},'priority':{'type':Sequelize[_0xb43d3e('0x2')]},'destchannel':{'type':Sequelize[_0xb43d3e('0x2')]},'destchannelstate':{'type':Sequelize[_0xb43d3e('0x4')]},'destchannelstatedesc':{'type':Sequelize[_0xb43d3e('0x2')]},'destcalleridnum':{'type':Sequelize[_0xb43d3e('0x2')]},'destcalleridname':{'type':Sequelize[_0xb43d3e('0x2')]},'destconnectedlinenum':{'type':Sequelize[_0xb43d3e('0x2')]},'destconnectedlinename':{'type':Sequelize['STRING']},'destlanguage':{'type':Sequelize['STRING']},'destaccountcode':{'type':Sequelize[_0xb43d3e('0x2')]},'destcontext':{'type':Sequelize[_0xb43d3e('0x2')]},'destexten':{'type':Sequelize[_0xb43d3e('0x2')]},'destpriority':{'type':Sequelize[_0xb43d3e('0x2')]},'destuniqueid':{'type':Sequelize['STRING']},'answeredelsewheredestinationuniqueid':{'type':Sequelize[_0xb43d3e('0x2')]},'answeredelsewheremembername':{'type':Sequelize['STRING']},'transfer':{'type':Sequelize[_0xb43d3e('0x3')],'defaultValue':![]},'transfertype':{'type':Sequelize[_0xb43d3e('0x2')],'comment':_0xb43d3e('0x0')},'transferexten':{'type':Sequelize[_0xb43d3e('0x2')]},'transferuniqueid':{'type':Sequelize['STRING']},'agententerreason':{'type':Sequelize[_0xb43d3e('0x4')],'defaultValue':0x0}}; \ No newline at end of file +const a843_0x104b=['attributes','sequelize','exports','FORWARD,\x20BLIND,\x20ATTENDED','STRING','DATE','INTEGER'];(function(_0x2213cc,_0x4b6deb){const _0x104bf8=function(_0x1f07be){while(--_0x1f07be){_0x2213cc['push'](_0x2213cc['shift']());}};_0x104bf8(++_0x4b6deb);}(a843_0x104b,0x143));const a843_0x1f07=function(_0x2213cc,_0x4b6deb){_0x2213cc=_0x2213cc-0x124;let _0x104bf8=a843_0x104b[_0x2213cc];return _0x104bf8;};const a843_0x401fff=a843_0x1f07;'use strict';const {DataTypes}=require(a843_0x401fff(0x124)),attributes={'type':{'type':DataTypes[a843_0x401fff(0x127)]},'uniqueid':{'type':DataTypes[a843_0x401fff(0x127)]},'calleridnum':{'type':DataTypes[a843_0x401fff(0x127)]},'calleridname':{'type':DataTypes[a843_0x401fff(0x127)]},'queue':{'type':DataTypes[a843_0x401fff(0x127)]},'interface':{'type':DataTypes['STRING']},'membername':{'type':DataTypes[a843_0x401fff(0x127)]},'agentcalledAt':{'type':DataTypes[a843_0x401fff(0x128)]},'agentconnectAt':{'type':DataTypes[a843_0x401fff(0x128)]},'agentcompleteAt':{'type':DataTypes[a843_0x401fff(0x128)]},'agentringnoanswerAt':{'type':DataTypes['DATE']},'agentdumpAt':{'type':DataTypes[a843_0x401fff(0x128)]},'holdtime':{'type':DataTypes[a843_0x401fff(0x129)]},'agentcomplete':{'type':DataTypes['BOOLEAN'],'defaultValue':![]},'agentringnoanswer':{'type':DataTypes['BOOLEAN'],'defaultValue':![]},'agentdump':{'type':DataTypes['BOOLEAN'],'defaultValue':![]},'talktime':{'type':DataTypes['INTEGER']},'agentacw':{'type':DataTypes['BOOLEAN'],'defaultValue':![]},'acwtime':{'type':DataTypes[a843_0x401fff(0x129)]},'reason':{'type':DataTypes[a843_0x401fff(0x127)]},'lastevent':{'type':DataTypes[a843_0x401fff(0x127)]},'channel':{'type':DataTypes[a843_0x401fff(0x127)]},'channelstate':{'type':DataTypes[a843_0x401fff(0x129)]},'channelstatedesc':{'type':DataTypes[a843_0x401fff(0x127)]},'connectedlinenum':{'type':DataTypes[a843_0x401fff(0x127)]},'connectedlinename':{'type':DataTypes['STRING']},'language':{'type':DataTypes[a843_0x401fff(0x127)]},'accountcode':{'type':DataTypes[a843_0x401fff(0x127)]},'context':{'type':DataTypes[a843_0x401fff(0x127)]},'exten':{'type':DataTypes[a843_0x401fff(0x127)]},'priority':{'type':DataTypes[a843_0x401fff(0x127)]},'destchannel':{'type':DataTypes[a843_0x401fff(0x127)]},'destchannelstate':{'type':DataTypes['INTEGER']},'destchannelstatedesc':{'type':DataTypes[a843_0x401fff(0x127)]},'destcalleridnum':{'type':DataTypes[a843_0x401fff(0x127)]},'destcalleridname':{'type':DataTypes[a843_0x401fff(0x127)]},'destconnectedlinenum':{'type':DataTypes[a843_0x401fff(0x127)]},'destconnectedlinename':{'type':DataTypes['STRING']},'destlanguage':{'type':DataTypes[a843_0x401fff(0x127)]},'destaccountcode':{'type':DataTypes[a843_0x401fff(0x127)]},'destcontext':{'type':DataTypes['STRING']},'destexten':{'type':DataTypes[a843_0x401fff(0x127)]},'destpriority':{'type':DataTypes['STRING']},'destuniqueid':{'type':DataTypes[a843_0x401fff(0x127)]},'answeredelsewheredestinationuniqueid':{'type':DataTypes[a843_0x401fff(0x127)]},'answeredelsewheremembername':{'type':DataTypes['STRING']},'transfer':{'type':DataTypes['BOOLEAN'],'defaultValue':![]},'transfertype':{'type':DataTypes[a843_0x401fff(0x127)],'comment':a843_0x401fff(0x126)},'transferexten':{'type':DataTypes[a843_0x401fff(0x127)]},'transferuniqueid':{'type':DataTypes[a843_0x401fff(0x127)]},'agententerreason':{'type':DataTypes[a843_0x401fff(0x129)],'defaultValue':0x0}};module[a843_0x401fff(0x125)][a843_0x401fff(0x12a)]=attributes; \ No newline at end of file diff --git a/server/api/voiceAgentReport/voiceAgentReport.controller.js b/server/api/voiceAgentReport/voiceAgentReport.controller.js index b93fddf..2412a5b 100644 --- a/server/api/voiceAgentReport/voiceAgentReport.controller.js +++ b/server/api/voiceAgentReport/voiceAgentReport.controller.js @@ -1 +1 @@ -const a704_0x570e=['fields','then','like','count','Content-Range','../../config/logger','intersection','../../mysqldb','index','catch','model','sort','rawAttributes','status','api','merge','update','attributes','includeAll','stack','lodash','map','VIRTUAL','filters','params','describe','show','length','set','where','findOne','send','VoiceAgentReport','body','end','destroy','rows','keys','name','offset','type','query','options','limit','order','json','include','pick'];(function(_0x67fd51,_0x570ea8){const _0x3de62d=function(_0x42c713){while(--_0x42c713){_0x67fd51['push'](_0x67fd51['shift']());}};_0x3de62d(++_0x570ea8);}(a704_0x570e,0x10f));const a704_0x3de6=function(_0x67fd51,_0x570ea8){_0x67fd51=_0x67fd51-0x0;let _0x3de62d=a704_0x570e[_0x67fd51];return _0x3de62d;};const _0x2de117=a704_0x3de6;'use strict';const _=require(_0x2de117('0x25')),qs=require('../../components/parsers/qs'),logger=require(_0x2de117('0x16'))(_0x2de117('0x1f')),db=require(_0x2de117('0x18'))['db'],{Op}=require('sequelize');function respondWithResult(_0x42c713,_0x585d86){return _0x585d86=_0x585d86||0xc8,function(_0x4db432){const _0x439588=a704_0x3de6;if(_0x4db432)return _0x42c713[_0x439588('0x1e')](_0x585d86)[_0x439588('0xe')](_0x4db432);};}function respondWithFilteredResult(_0x4cc230,_0x2d4956){return function(_0x33a925){const _0x4331d5=a704_0x3de6;if(_0x33a925){const _0x4e18da=_0x33a925[_0x4331d5('0x14')],_0x293fb7=_0x2d4956[_0x4331d5('0x8')];let _0x5089f1=_0x2d4956[_0x4331d5('0x8')]+_0x2d4956[_0x4331d5('0xc')],_0x408f36;return _0x5089f1>=_0x4e18da?(_0x5089f1=_0x4e18da,_0x408f36=0xc8):_0x408f36=0xce,_0x4cc230['status'](_0x408f36),_0x4cc230[_0x4331d5('0x2d')](_0x4331d5('0x15'),_0x293fb7+'-'+_0x5089f1+'/'+_0x4e18da)[_0x4331d5('0xe')](_0x33a925);}return null;};}function saveUpdates(_0x1b72a8){return function(_0x1328f2){const _0x378eba=a704_0x3de6;if(_0x1328f2)return _0x1328f2['update'](_0x1b72a8)[_0x378eba('0x12')](function(_0x181966){return _0x181966;});return null;};}function removeEntity(_0x45bf69){return function(_0x30d928){const _0x4796b0=a704_0x3de6;if(_0x30d928)return _0x30d928[_0x4796b0('0x4')]()[_0x4796b0('0x12')](function(){const _0x3c8e30=_0x4796b0;_0x45bf69[_0x3c8e30('0x1e')](0xcc)[_0x3c8e30('0x3')]();});};}function handleEntityNotFound(_0x2cc6cb){return function(_0x458409){return!_0x458409&&_0x2cc6cb['sendStatus'](0x194),_0x458409;};}function handleError(_0x5bebc4,_0x26aef2){return _0x26aef2=_0x26aef2||0x1f4,function(_0x54a8c2){const _0x2ca339=a704_0x3de6;logger['error'](_0x54a8c2[_0x2ca339('0x24')]),_0x54a8c2[_0x2ca339('0x7')]&&delete _0x54a8c2['name'],_0x5bebc4[_0x2ca339('0x1e')](_0x26aef2)[_0x2ca339('0x0')](_0x54a8c2);};}exports[_0x2de117('0x19')]=function(_0x2be031,_0x5696d4){const _0x256c9c=_0x2de117;let _0x1b7279={};const _0x5337ed={},_0x137ab1={'count':0x0,'rows':[]},_0x111a59=_[_0x256c9c('0x26')](db[_0x256c9c('0x1')][_0x256c9c('0x1d')],function(_0x2dca4c){return{'name':_0x2dca4c['fieldName'],'type':_0x2dca4c['type']['key']};});_0x5337ed['model']=_[_0x256c9c('0x26')](_0x111a59,'name'),_0x5337ed[_0x256c9c('0xa')]=_[_0x256c9c('0x6')](_0x2be031['query']),_0x5337ed['filters']=_[_0x256c9c('0x17')](_0x5337ed['model'],_0x5337ed[_0x256c9c('0xa')]),_0x1b7279[_0x256c9c('0x22')]=_['intersection'](_0x5337ed[_0x256c9c('0x1b')],qs[_0x256c9c('0x11')](_0x2be031[_0x256c9c('0xa')][_0x256c9c('0x11')])),_0x1b7279[_0x256c9c('0x22')]=_0x1b7279[_0x256c9c('0x22')][_0x256c9c('0x2c')]?_0x1b7279[_0x256c9c('0x22')]:_0x5337ed[_0x256c9c('0x1b')];typeof _0x2be031['query']['nolimit']==='undefined'&&(_0x1b7279[_0x256c9c('0xc')]=qs[_0x256c9c('0xc')](_0x2be031['query'][_0x256c9c('0xc')]),_0x1b7279['offset']=qs[_0x256c9c('0x8')](_0x2be031[_0x256c9c('0xa')]['offset']));_0x1b7279[_0x256c9c('0xd')]=qs['sort'](_0x2be031[_0x256c9c('0xa')][_0x256c9c('0x1c')]),_0x1b7279[_0x256c9c('0x2e')]=qs[_0x256c9c('0x28')](_[_0x256c9c('0x10')](_0x2be031[_0x256c9c('0xa')],_0x5337ed[_0x256c9c('0x28')]),_0x111a59);_0x2be031[_0x256c9c('0xa')]['filter']&&(_0x1b7279['where']=_[_0x256c9c('0x20')](_0x1b7279[_0x256c9c('0x2e')],{[Op['or']]:_[_0x256c9c('0x26')](_0x111a59,function(_0x2d756c){const _0x1c5ada=_0x256c9c;if(_0x2d756c[_0x1c5ada('0x9')]!==_0x1c5ada('0x27')){const _0x2d0101={};return _0x2d0101[_0x2d756c[_0x1c5ada('0x7')]]={[Op[_0x1c5ada('0x13')]]:'%'+_0x2be031[_0x1c5ada('0xa')]['filter']+'%'},_0x2d0101;}})}));_0x1b7279=_[_0x256c9c('0x20')]({},_0x1b7279,_0x2be031[_0x256c9c('0xb')]);const _0x572685={'where':_0x1b7279[_0x256c9c('0x2e')]};return db[_0x256c9c('0x1')][_0x256c9c('0x14')](_0x572685)['then'](function(_0xf2a83f){const _0x151933=_0x256c9c;return _0x137ab1[_0x151933('0x14')]=_0xf2a83f,_0x2be031['query'][_0x151933('0x23')]&&(_0x1b7279[_0x151933('0xf')]=[{'all':!![]}]),db['VoiceAgentReport']['findAll'](_0x1b7279);})[_0x256c9c('0x12')](function(_0x4533ec){const _0x161cf2=_0x256c9c;return _0x137ab1[_0x161cf2('0x5')]=_0x4533ec,_0x137ab1;})[_0x256c9c('0x12')](respondWithFilteredResult(_0x5696d4,_0x1b7279))[_0x256c9c('0x1a')](handleError(_0x5696d4,null));},exports[_0x2de117('0x2b')]=function(_0x10a4ea,_0x52c13e){const _0x3e6dcf=_0x2de117;let _0x5c851f={'raw':![],'where':{'id':_0x10a4ea['params']['id']}};const _0xc9484b={};return _0xc9484b[_0x3e6dcf('0x1b')]=_[_0x3e6dcf('0x6')](db[_0x3e6dcf('0x1')]['rawAttributes']),_0xc9484b[_0x3e6dcf('0xa')]=_[_0x3e6dcf('0x6')](_0x10a4ea[_0x3e6dcf('0xa')]),_0xc9484b['filters']=_[_0x3e6dcf('0x17')](_0xc9484b[_0x3e6dcf('0x1b')],_0xc9484b[_0x3e6dcf('0xa')]),_0x5c851f[_0x3e6dcf('0x22')]=_[_0x3e6dcf('0x17')](_0xc9484b[_0x3e6dcf('0x1b')],qs[_0x3e6dcf('0x11')](_0x10a4ea['query']['fields'])),_0x5c851f[_0x3e6dcf('0x22')]=_0x5c851f[_0x3e6dcf('0x22')][_0x3e6dcf('0x2c')]?_0x5c851f['attributes']:_0xc9484b[_0x3e6dcf('0x1b')],_0x10a4ea[_0x3e6dcf('0xa')][_0x3e6dcf('0x23')]&&(_0x5c851f[_0x3e6dcf('0xf')]=[{'all':!![]}]),_0x5c851f=_['merge']({},_0x5c851f,_0x10a4ea[_0x3e6dcf('0xb')]),db[_0x3e6dcf('0x1')][_0x3e6dcf('0x2f')](_0x5c851f)[_0x3e6dcf('0x12')](handleEntityNotFound(_0x52c13e,null))[_0x3e6dcf('0x12')](respondWithResult(_0x52c13e,null))[_0x3e6dcf('0x1a')](handleError(_0x52c13e,null));},exports['create']=function(_0x26f335,_0x2c9074){const _0x33e648=_0x2de117;return db[_0x33e648('0x1')]['create'](_0x26f335[_0x33e648('0x2')],{})['then'](respondWithResult(_0x2c9074,0xc9))[_0x33e648('0x1a')](handleError(_0x2c9074,null));},exports[_0x2de117('0x21')]=function(_0x5961c8,_0x577fb2){const _0x3bc773=_0x2de117;return _0x5961c8[_0x3bc773('0x2')]['id']&&delete _0x5961c8[_0x3bc773('0x2')]['id'],db['VoiceAgentReport'][_0x3bc773('0x2f')]({'where':{'id':_0x5961c8[_0x3bc773('0x29')]['id']}})[_0x3bc773('0x12')](handleEntityNotFound(_0x577fb2,null))[_0x3bc773('0x12')](saveUpdates(_0x5961c8[_0x3bc773('0x2')],null))[_0x3bc773('0x12')](respondWithResult(_0x577fb2,null))[_0x3bc773('0x1a')](handleError(_0x577fb2,null));},exports[_0x2de117('0x4')]=function(_0x48b3a8,_0x4cbebf){const _0x1ab164=_0x2de117;return db[_0x1ab164('0x1')][_0x1ab164('0x2f')]({'where':{'id':_0x48b3a8[_0x1ab164('0x29')]['id']}})[_0x1ab164('0x12')](handleEntityNotFound(_0x4cbebf,null))[_0x1ab164('0x12')](removeEntity(_0x4cbebf,null))[_0x1ab164('0x1a')](handleError(_0x4cbebf,null));},exports[_0x2de117('0x2a')]=function(_0x233831,_0x7c34e){const _0x42657b=_0x2de117;return db[_0x42657b('0x1')][_0x42657b('0x2a')]()[_0x42657b('0x12')](respondWithResult(_0x7c34e,null))[_0x42657b('0x1a')](handleError(_0x7c34e,null));}; \ No newline at end of file +const a844_0x2c93=['attributes','../../mysqldb','sort','include','VIRTUAL','options','describe','VoiceAgentReport','../../components/parsers/qs','json','body','filter','map','then','end','count','sequelize','undefined','key','rawAttributes','index','send','catch','limit','includeAll','filters','name','findOne','update','rows','error','Content-Range','type','create','status','offset','merge','query','api','fieldName','destroy','lodash','where','params','model','pick','set','stack','keys','sendStatus','show','fields','intersection'];(function(_0x15d5a2,_0x2160f5){const _0x2c93c1=function(_0x377376){while(--_0x377376){_0x15d5a2['push'](_0x15d5a2['shift']());}};_0x2c93c1(++_0x2160f5);}(a844_0x2c93,0x1ef));const a844_0x3773=function(_0x15d5a2,_0x2160f5){_0x15d5a2=_0x15d5a2-0x12c;let _0x2c93c1=a844_0x2c93[_0x15d5a2];return _0x2c93c1;};const a844_0x8520f4=a844_0x3773;'use strict';const _=require(a844_0x8520f4(0x143)),qs=require(a844_0x8520f4(0x157)),logger=require('../../config/logger')(a844_0x8520f4(0x140)),{db}=require(a844_0x8520f4(0x150)),{Op}=require(a844_0x8520f4(0x15f));function respondWithResult(_0xc2263a,_0x5dea67){return _0x5dea67=_0x5dea67||0xc8,function(_0x5e61cd){const _0x393ce5=a844_0x3773;if(_0x5e61cd)return _0xc2263a[_0x393ce5(0x13c)](_0x5dea67)[_0x393ce5(0x158)](_0x5e61cd);};}function respondWithFilteredResult(_0x4ee008,_0x3b2e1a){return function(_0x4e53b2){const _0x23241e=a844_0x3773;if(_0x4e53b2){const _0x187b9c=_0x4e53b2[_0x23241e(0x15e)],_0x38f92e=_0x3b2e1a[_0x23241e(0x13d)];let _0x1b6c3d=_0x3b2e1a[_0x23241e(0x13d)]+_0x3b2e1a[_0x23241e(0x131)],_0x42ef0a;return _0x1b6c3d>=_0x187b9c?(_0x1b6c3d=_0x187b9c,_0x42ef0a=0xc8):_0x42ef0a=0xce,_0x4ee008[_0x23241e(0x13c)](_0x42ef0a),_0x4ee008[_0x23241e(0x148)](_0x23241e(0x139),_0x38f92e+'-'+_0x1b6c3d+'/'+_0x187b9c)['json'](_0x4e53b2);}return null;};}function saveUpdates(_0x19c7b9){return function(_0x5e191f){const _0x569b04=a844_0x3773;if(_0x5e191f)return _0x5e191f[_0x569b04(0x136)](_0x19c7b9)[_0x569b04(0x15c)](function(_0x56738f){return _0x56738f;});return null;};}function removeEntity(_0xc30e20){return function(_0x10cc8f){const _0x4f8c97=a844_0x3773;if(_0x10cc8f)return _0x10cc8f[_0x4f8c97(0x142)]()[_0x4f8c97(0x15c)](function(){const _0x52c211=_0x4f8c97;_0xc30e20['status'](0xcc)[_0x52c211(0x15d)]();});};}function handleEntityNotFound(_0x3e7c96){return function(_0x5efdcd){const _0x56b110=a844_0x3773;return!_0x5efdcd&&_0x3e7c96[_0x56b110(0x14b)](0x194),_0x5efdcd;};}function handleError(_0x58fe7f,_0x53697a){return _0x53697a=_0x53697a||0x1f4,function(_0x5ddfac){const _0x9ee2e3=a844_0x3773;logger[_0x9ee2e3(0x138)](_0x5ddfac[_0x9ee2e3(0x149)]),_0x5ddfac[_0x9ee2e3(0x134)]&&delete _0x5ddfac[_0x9ee2e3(0x134)],_0x58fe7f['status'](_0x53697a)[_0x9ee2e3(0x12f)](_0x5ddfac);};}exports[a844_0x8520f4(0x12e)]=function(_0x3126b3,_0x298591){const _0x15bfc8=a844_0x8520f4;let _0x587b04={};const _0x5e3758={},_0x317412={'count':0x0,'rows':[]},_0x4ccd30=_[_0x15bfc8(0x15b)](db[_0x15bfc8(0x156)][_0x15bfc8(0x12d)],function(_0x108e39){const _0x1dc702=_0x15bfc8;return{'name':_0x108e39[_0x1dc702(0x141)],'type':_0x108e39['type'][_0x1dc702(0x12c)]};});_0x5e3758[_0x15bfc8(0x146)]=_[_0x15bfc8(0x15b)](_0x4ccd30,'name'),_0x5e3758['query']=_[_0x15bfc8(0x14a)](_0x3126b3[_0x15bfc8(0x13f)]),_0x5e3758[_0x15bfc8(0x133)]=_[_0x15bfc8(0x14e)](_0x5e3758[_0x15bfc8(0x146)],_0x5e3758[_0x15bfc8(0x13f)]),_0x587b04['attributes']=_['intersection'](_0x5e3758[_0x15bfc8(0x146)],qs[_0x15bfc8(0x14d)](_0x3126b3['query'][_0x15bfc8(0x14d)])),_0x587b04[_0x15bfc8(0x14f)]=_0x587b04['attributes']['length']?_0x587b04['attributes']:_0x5e3758[_0x15bfc8(0x146)];typeof _0x3126b3['query']['nolimit']===_0x15bfc8(0x160)&&(_0x587b04['limit']=qs[_0x15bfc8(0x131)](_0x3126b3[_0x15bfc8(0x13f)]['limit']),_0x587b04[_0x15bfc8(0x13d)]=qs['offset'](_0x3126b3[_0x15bfc8(0x13f)][_0x15bfc8(0x13d)]));_0x587b04['order']=qs[_0x15bfc8(0x151)](_0x3126b3[_0x15bfc8(0x13f)][_0x15bfc8(0x151)]),_0x587b04[_0x15bfc8(0x144)]=qs['filters'](_[_0x15bfc8(0x147)](_0x3126b3['query'],_0x5e3758[_0x15bfc8(0x133)]),_0x4ccd30);_0x3126b3['query'][_0x15bfc8(0x15a)]&&(_0x587b04[_0x15bfc8(0x144)]=_['merge'](_0x587b04[_0x15bfc8(0x144)],{[Op['or']]:_[_0x15bfc8(0x15b)](_0x4ccd30,function(_0x2caac4){const _0x596ece=_0x15bfc8;if(_0x2caac4[_0x596ece(0x13a)]!==_0x596ece(0x153)){const _0x95c7d4={};return _0x95c7d4[_0x2caac4['name']]={[Op['like']]:'%'+_0x3126b3[_0x596ece(0x13f)][_0x596ece(0x15a)]+'%'},_0x95c7d4;}})}));_0x587b04=_[_0x15bfc8(0x13e)]({},_0x587b04,_0x3126b3['options']);const _0x121abc={'where':_0x587b04['where']};return db[_0x15bfc8(0x156)][_0x15bfc8(0x15e)](_0x121abc)['then'](function(_0x217003){const _0x18c9a2=_0x15bfc8;return _0x317412[_0x18c9a2(0x15e)]=_0x217003,_0x3126b3[_0x18c9a2(0x13f)][_0x18c9a2(0x132)]&&(_0x587b04['include']=[{'all':!![]}]),db['VoiceAgentReport']['findAll'](_0x587b04);})[_0x15bfc8(0x15c)](function(_0x5e8769){const _0x51e607=_0x15bfc8;return _0x317412[_0x51e607(0x137)]=_0x5e8769,_0x317412;})['then'](respondWithFilteredResult(_0x298591,_0x587b04))[_0x15bfc8(0x130)](handleError(_0x298591,null));},exports[a844_0x8520f4(0x14c)]=function(_0x250f4c,_0x5adb5a){const _0x26d494=a844_0x8520f4;let _0xbc695={'raw':![],'where':{'id':_0x250f4c[_0x26d494(0x145)]['id']}};const _0x1813e6={};return _0x1813e6[_0x26d494(0x146)]=_[_0x26d494(0x14a)](db[_0x26d494(0x156)][_0x26d494(0x12d)]),_0x1813e6['query']=_[_0x26d494(0x14a)](_0x250f4c[_0x26d494(0x13f)]),_0x1813e6[_0x26d494(0x133)]=_[_0x26d494(0x14e)](_0x1813e6[_0x26d494(0x146)],_0x1813e6[_0x26d494(0x13f)]),_0xbc695[_0x26d494(0x14f)]=_[_0x26d494(0x14e)](_0x1813e6[_0x26d494(0x146)],qs[_0x26d494(0x14d)](_0x250f4c['query']['fields'])),_0xbc695[_0x26d494(0x14f)]=_0xbc695[_0x26d494(0x14f)]['length']?_0xbc695[_0x26d494(0x14f)]:_0x1813e6['model'],_0x250f4c['query'][_0x26d494(0x132)]&&(_0xbc695[_0x26d494(0x152)]=[{'all':!![]}]),_0xbc695=_[_0x26d494(0x13e)]({},_0xbc695,_0x250f4c[_0x26d494(0x154)]),db['VoiceAgentReport']['findOne'](_0xbc695)[_0x26d494(0x15c)](handleEntityNotFound(_0x5adb5a,null))[_0x26d494(0x15c)](respondWithResult(_0x5adb5a,null))[_0x26d494(0x130)](handleError(_0x5adb5a,null));},exports['create']=function(_0x59bb6b,_0x345a23){const _0x52f3c9=a844_0x8520f4;return db[_0x52f3c9(0x156)][_0x52f3c9(0x13b)](_0x59bb6b['body'],{})[_0x52f3c9(0x15c)](respondWithResult(_0x345a23,0xc9))[_0x52f3c9(0x130)](handleError(_0x345a23,null));},exports['update']=function(_0x1cef74,_0x36ae9e){const _0x4a1d0a=a844_0x8520f4;return _0x1cef74['body']['id']&&delete _0x1cef74[_0x4a1d0a(0x159)]['id'],db['VoiceAgentReport'][_0x4a1d0a(0x135)]({'where':{'id':_0x1cef74[_0x4a1d0a(0x145)]['id']}})[_0x4a1d0a(0x15c)](handleEntityNotFound(_0x36ae9e,null))[_0x4a1d0a(0x15c)](saveUpdates(_0x1cef74[_0x4a1d0a(0x159)],null))[_0x4a1d0a(0x15c)](respondWithResult(_0x36ae9e,null))[_0x4a1d0a(0x130)](handleError(_0x36ae9e,null));},exports['destroy']=function(_0x3cf2c8,_0x16ca3d){const _0x267074=a844_0x8520f4;return db[_0x267074(0x156)][_0x267074(0x135)]({'where':{'id':_0x3cf2c8[_0x267074(0x145)]['id']}})[_0x267074(0x15c)](handleEntityNotFound(_0x16ca3d,null))['then'](removeEntity(_0x16ca3d,null))['catch'](handleError(_0x16ca3d,null));},exports[a844_0x8520f4(0x155)]=function(_0x5481b6,_0x409f5b){const _0x5d385c=a844_0x8520f4;return db[_0x5d385c(0x156)][_0x5d385c(0x155)]()['then'](respondWithResult(_0x409f5b,null))[_0x5d385c(0x130)](handleError(_0x409f5b,null));}; \ No newline at end of file diff --git a/server/api/voiceAgentReport/voiceAgentReport.model.js b/server/api/voiceAgentReport/voiceAgentReport.model.js index 023a3d3..467a4e0 100644 --- a/server/api/voiceAgentReport/voiceAgentReport.model.js +++ b/server/api/voiceAgentReport/voiceAgentReport.model.js @@ -1 +1 @@ -const a705_0x3e10=['uniqueid','destuniqueid','VoiceAgentReport','define','report_agent','./voiceAgentReport.attributes'];(function(_0x16fc86,_0x3e10db){const _0x5cda83=function(_0x5a0e71){while(--_0x5a0e71){_0x16fc86['push'](_0x16fc86['shift']());}};_0x5cda83(++_0x3e10db);}(a705_0x3e10,0x18d));const a705_0x5cda=function(_0x16fc86,_0x3e10db){_0x16fc86=_0x16fc86-0x0;let _0x5cda83=a705_0x3e10[_0x16fc86];return _0x5cda83;};const _0x24d053=a705_0x5cda;'use strict';const attributes=require(_0x24d053('0x4'));module['exports']=function(_0x5a0e71){const _0x41cc0d=_0x24d053,_0xf2cf5e=_0x5a0e71[_0x41cc0d('0x2')](_0x41cc0d('0x1'),attributes,{'tableName':_0x41cc0d('0x3'),'paranoid':![],'indexes':[{'fields':[_0x41cc0d('0x5'),_0x41cc0d('0x0')]}],'timestamps':!![]});return _0xf2cf5e;}; \ No newline at end of file +const a845_0x3d63=['function','init','./voiceAgentReport.attributes','exports','VoiceAgentReport'];(function(_0x1f1098,_0x1e9913){const _0x3d63de=function(_0x285d3a){while(--_0x285d3a){_0x1f1098['push'](_0x1f1098['shift']());}};_0x3d63de(++_0x1e9913);}(a845_0x3d63,0xf6));const a845_0x285d=function(_0x1f1098,_0x1e9913){_0x1f1098=_0x1f1098-0x195;let _0x3d63de=a845_0x3d63[_0x1f1098];return _0x3d63de;};const a845_0x214cef=a845_0x285d;'use strict';const {Model}=require('sequelize'),{attributes}=require(a845_0x214cef(0x196)),{options}=require('./voiceAgentReport.options');class VoiceAgentReport extends Model{}function init(_0x3f0cdb,_0x13354c){const _0x190098=a845_0x214cef,_0x4d1e1d=options(_0x3f0cdb),_0x4fffc7=typeof _0x13354c===_0x190098(0x199)?_0x13354c(_0x4d1e1d):_0x4d1e1d;return VoiceAgentReport[_0x190098(0x195)](attributes,_0x4fffc7),VoiceAgentReport;}module[a845_0x214cef(0x197)][a845_0x214cef(0x198)]=VoiceAgentReport,module[a845_0x214cef(0x197)][a845_0x214cef(0x195)]=init; \ No newline at end of file diff --git a/server/api/voiceAgentReport/voiceAgentReport.options.js b/server/api/voiceAgentReport/voiceAgentReport.options.js new file mode 100644 index 0000000..f395041 --- /dev/null +++ b/server/api/voiceAgentReport/voiceAgentReport.options.js @@ -0,0 +1 @@ +var a846_0x59b2=['uniqueid','exports','options','destuniqueid','report_agent'];(function(_0x1600a3,_0x3fc6f2){var _0x59b2a1=function(_0x4638fd){while(--_0x4638fd){_0x1600a3['push'](_0x1600a3['shift']());}};_0x59b2a1(++_0x3fc6f2);}(a846_0x59b2,0xa7));var a846_0x4638=function(_0x1600a3,_0x3fc6f2){_0x1600a3=_0x1600a3-0x164;var _0x59b2a1=a846_0x59b2[_0x1600a3];return _0x59b2a1;};var a846_0x313fa5=a846_0x4638;function options(_0x2c1b47){var _0x1ba8ec=a846_0x4638;return{'sequelize':_0x2c1b47,'tableName':_0x1ba8ec(0x166),'paranoid':![],'indexes':[{'fields':[_0x1ba8ec(0x167),_0x1ba8ec(0x165)]}],'timestamps':!![]};}module[a846_0x313fa5(0x168)][a846_0x313fa5(0x164)]=options; \ No newline at end of file diff --git a/server/api/voiceAgentReport/voiceAgentReport.rpc.js b/server/api/voiceAgentReport/voiceAgentReport.rpc.js index d30cd0a..707f4a6 100644 --- a/server/api/voiceAgentReport/voiceAgentReport.rpc.js +++ b/server/api/voiceAgentReport/voiceAgentReport.rpc.js @@ -1 +1 @@ -const a706_0x4ed0=['raw','UpdateVoiceAgentReport','create','then','where','CreateVoiceAgentReport','attributes','options','update','rpc','message','info','catch','limit','error','debug','body','VoiceAgentReport','stringify','../../config/logger'];(function(_0x20430b,_0x4ed05a){const _0xc47e1e=function(_0x5d252e){while(--_0x5d252e){_0x20430b['push'](_0x20430b['shift']());}};_0xc47e1e(++_0x4ed05a);}(a706_0x4ed0,0x135));const a706_0xc47e=function(_0x20430b,_0x4ed05a){_0x20430b=_0x20430b-0x0;let _0xc47e1e=a706_0x4ed0[_0x20430b];return _0xc47e1e;};const _0x2b505d=a706_0xc47e;'use strict';const db=require('../../mysqldb')['db'],logger=require(_0x2b505d('0xa'))(_0x2b505d('0x0'));exports[_0x2b505d('0x10')]=function(_0x5d252e){const _0x3fe417=this;return new Promise(function(_0x2d3c73,_0x4f9dc9){const _0x48d6d0=a706_0xc47e;return db[_0x48d6d0('0x8')][_0x48d6d0('0xd')](_0x5d252e[_0x48d6d0('0x7')],{'raw':_0x5d252e[_0x48d6d0('0x12')]?_0x5d252e[_0x48d6d0('0x12')][_0x48d6d0('0xb')]===undefined?!![]:![]:!![]})[_0x48d6d0('0xe')](function(_0x484275){const _0x37ae34=_0x48d6d0;logger[_0x37ae34('0x2')]('CreateVoiceAgentReport',_0x5d252e),logger[_0x37ae34('0x6')]('CreateVoiceAgentReport',_0x5d252e,JSON['stringify'](_0x484275)),_0x2d3c73(_0x484275);})[_0x48d6d0('0x3')](function(_0x8345ef){const _0x258755=_0x48d6d0;logger[_0x258755('0x5')](_0x258755('0x10'),_0x8345ef[_0x258755('0x1')],_0x5d252e),_0x4f9dc9(_0x3fe417['error'](0x1f4,_0x8345ef[_0x258755('0x1')]));});});},exports[_0x2b505d('0xc')]=function(_0x5b2e1b){const _0x14cc15=this;return new Promise(function(_0x6df26,_0x486929){const _0x519e6b=a706_0xc47e;return db[_0x519e6b('0x8')][_0x519e6b('0x13')](_0x5b2e1b[_0x519e6b('0x7')],{'raw':_0x5b2e1b[_0x519e6b('0x12')]?_0x5b2e1b[_0x519e6b('0x12')][_0x519e6b('0xb')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x5b2e1b[_0x519e6b('0x12')]?_0x5b2e1b['options'][_0x519e6b('0xf')]||null:null,'attributes':_0x5b2e1b['options']?_0x5b2e1b['options'][_0x519e6b('0x11')]||null:null,'limit':_0x5b2e1b[_0x519e6b('0x12')]?_0x5b2e1b[_0x519e6b('0x12')][_0x519e6b('0x4')]||null:null})['then'](function(_0x566027){const _0x4cda35=_0x519e6b;logger[_0x4cda35('0x2')](_0x4cda35('0xc'),_0x5b2e1b),logger['debug'](_0x4cda35('0xc'),_0x5b2e1b,JSON[_0x4cda35('0x9')](_0x566027)),_0x6df26(_0x566027);})['catch'](function(_0x4a9de0){const _0x36f134=_0x519e6b;logger[_0x36f134('0x5')](_0x36f134('0xc'),_0x4a9de0[_0x36f134('0x1')],_0x5b2e1b),_0x486929(_0x14cc15['error'](0x1f4,_0x4a9de0[_0x36f134('0x1')]));});});}; \ No newline at end of file +const a847_0x4747=['options','update','VoiceAgentReport','catch','debug','body','rpc','where','CreateVoiceAgentReport','then','info','create','attributes','raw','message','stringify','error','UpdateVoiceAgentReport','../../mysqldb'];(function(_0x12acb2,_0x209015){const _0x474746=function(_0x329ebf){while(--_0x329ebf){_0x12acb2['push'](_0x12acb2['shift']());}};_0x474746(++_0x209015);}(a847_0x4747,0x99));const a847_0x329e=function(_0x12acb2,_0x209015){_0x12acb2=_0x12acb2-0x79;let _0x474746=a847_0x4747[_0x12acb2];return _0x474746;};const a847_0x40acd8=a847_0x329e;'use strict';const db=require(a847_0x40acd8(0x8a))['db'],logger=require('../../config/logger')(a847_0x40acd8(0x7e));exports[a847_0x40acd8(0x80)]=function(_0x17bda8){const _0x295921=this;return new Promise(function(_0xc271bf,_0x2dd2a1){const _0x1829a7=a847_0x329e;return db['VoiceAgentReport'][_0x1829a7(0x83)](_0x17bda8[_0x1829a7(0x7d)],{'raw':_0x17bda8[_0x1829a7(0x8b)]?_0x17bda8[_0x1829a7(0x8b)][_0x1829a7(0x85)]===undefined?!![]:![]:!![]})[_0x1829a7(0x81)](function(_0x3b32d8){const _0x3d287f=_0x1829a7;logger[_0x3d287f(0x82)](_0x3d287f(0x80),_0x17bda8),logger[_0x3d287f(0x7c)]('CreateVoiceAgentReport',_0x17bda8,JSON[_0x3d287f(0x87)](_0x3b32d8)),_0xc271bf(_0x3b32d8);})[_0x1829a7(0x7b)](function(_0xfd166f){const _0x5af2bf=_0x1829a7;logger['error'](_0x5af2bf(0x80),_0xfd166f['message'],_0x17bda8),_0x2dd2a1(_0x295921[_0x5af2bf(0x88)](0x1f4,_0xfd166f[_0x5af2bf(0x86)]));});});},exports[a847_0x40acd8(0x89)]=function(_0x26e671){const _0x14c49d=this;return new Promise(function(_0x61a850,_0x2592f0){const _0x520a61=a847_0x329e;return db[_0x520a61(0x7a)][_0x520a61(0x79)](_0x26e671[_0x520a61(0x7d)],{'raw':_0x26e671[_0x520a61(0x8b)]?_0x26e671[_0x520a61(0x8b)][_0x520a61(0x85)]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x26e671[_0x520a61(0x8b)]?_0x26e671[_0x520a61(0x8b)][_0x520a61(0x7f)]||null:null,'attributes':_0x26e671[_0x520a61(0x8b)]?_0x26e671[_0x520a61(0x8b)][_0x520a61(0x84)]||null:null,'limit':_0x26e671['options']?_0x26e671['options']['limit']||null:null})[_0x520a61(0x81)](function(_0x8b51fc){const _0x4a3c2f=_0x520a61;logger[_0x4a3c2f(0x82)](_0x4a3c2f(0x89),_0x26e671),logger[_0x4a3c2f(0x7c)](_0x4a3c2f(0x89),_0x26e671,JSON[_0x4a3c2f(0x87)](_0x8b51fc)),_0x61a850(_0x8b51fc);})[_0x520a61(0x7b)](function(_0x709cbf){const _0x159971=_0x520a61;logger['error']('UpdateVoiceAgentReport',_0x709cbf[_0x159971(0x86)],_0x26e671),_0x2592f0(_0x14c49d[_0x159971(0x88)](0x1f4,_0x709cbf['message']));});});}; \ No newline at end of file diff --git a/server/api/voiceCallReport/index.js b/server/api/voiceCallReport/index.js index a7b550d..d16d36e 100644 --- a/server/api/voiceCallReport/index.js +++ b/server/api/voiceCallReport/index.js @@ -1 +1 @@ -const a707_0x21c9=['get','exports','./voiceCallReport.controller','describe','../../components/auth/service','put','Router','delete','show','express','/:id','isAuthenticated','post','destroy','index','create','update'];(function(_0x1255a0,_0x21c9b1){const _0x2d85c6=function(_0x1eea31){while(--_0x1eea31){_0x1255a0['push'](_0x1255a0['shift']());}};_0x2d85c6(++_0x21c9b1);}(a707_0x21c9,0xa0));const a707_0x2d85=function(_0x1255a0,_0x21c9b1){_0x1255a0=_0x1255a0-0x0;let _0x2d85c6=a707_0x21c9[_0x1255a0];return _0x2d85c6;};const _0xb58c57=a707_0x2d85;'use strict';const express=require(_0xb58c57('0x2')),router=express[_0xb58c57('0x10')](),auth=require(_0xb58c57('0xe')),controller=require(_0xb58c57('0xc'));router[_0xb58c57('0xa')]('/',auth[_0xb58c57('0x4')](),controller[_0xb58c57('0x7')]),router['get']('/describe',auth['isAuthenticated'](),controller[_0xb58c57('0xd')]),router['get']('/:id',auth[_0xb58c57('0x4')](),controller[_0xb58c57('0x1')]),router[_0xb58c57('0x5')]('/',auth[_0xb58c57('0x4')](),controller[_0xb58c57('0x8')]),router[_0xb58c57('0xf')](_0xb58c57('0x3'),auth['isAuthenticated'](),controller[_0xb58c57('0x9')]),router[_0xb58c57('0x0')]('/:id',auth[_0xb58c57('0x4')](),controller[_0xb58c57('0x6')]),module[_0xb58c57('0xb')]=router; \ No newline at end of file +const a848_0x5d00=['express','post','delete','get','index','../../components/auth/service','./voiceCallReport.controller','/:id','show','isAuthenticated','create','destroy','Router'];(function(_0x37f070,_0x146a5a){const _0x5d00e6=function(_0x291c7f){while(--_0x291c7f){_0x37f070['push'](_0x37f070['shift']());}};_0x5d00e6(++_0x146a5a);}(a848_0x5d00,0xaf));const a848_0x291c=function(_0x37f070,_0x146a5a){_0x37f070=_0x37f070-0x1e2;let _0x5d00e6=a848_0x5d00[_0x37f070];return _0x5d00e6;};const a848_0x2b3c69=a848_0x291c;'use strict';const express=require(a848_0x2b3c69(0x1e9)),router=express[a848_0x2b3c69(0x1e8)](),auth=require(a848_0x2b3c69(0x1ee)),controller=require(a848_0x2b3c69(0x1e2));router['get']('/',auth[a848_0x2b3c69(0x1e5)](),controller[a848_0x2b3c69(0x1ed)]),router['get']('/describe',auth[a848_0x2b3c69(0x1e5)](),controller['describe']),router[a848_0x2b3c69(0x1ec)](a848_0x2b3c69(0x1e3),auth[a848_0x2b3c69(0x1e5)](),controller[a848_0x2b3c69(0x1e4)]),router[a848_0x2b3c69(0x1ea)]('/',auth[a848_0x2b3c69(0x1e5)](),controller[a848_0x2b3c69(0x1e6)]),router['put'](a848_0x2b3c69(0x1e3),auth['isAuthenticated'](),controller['update']),router[a848_0x2b3c69(0x1eb)](a848_0x2b3c69(0x1e3),auth[a848_0x2b3c69(0x1e5)](),controller[a848_0x2b3c69(0x1e7)]),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 7a43589..b3348c1 100644 --- a/server/api/voiceCallReport/voiceCallReport.attributes.js +++ b/server/api/voiceCallReport/voiceCallReport.attributes.js @@ -1 +1 @@ -const a708_0xa59a=['dialer','outbound-fax','STRING','DATE','INTEGER','ENUM','internal','inbound','TEXT','sequelize','exports','outbound'];(function(_0x4b87c4,_0xa59ac2){const _0x5a673c=function(_0x266f69){while(--_0x266f69){_0x4b87c4['push'](_0x4b87c4['shift']());}};_0x5a673c(++_0xa59ac2);}(a708_0xa59a,0x196));const a708_0x5a67=function(_0x4b87c4,_0xa59ac2){_0x4b87c4=_0x4b87c4-0x0;let _0x5a673c=a708_0xa59a[_0x4b87c4];return _0x5a673c;};const _0x2a0e3c=a708_0x5a67;'use strict';const Sequelize=require(_0x2a0e3c('0xb'));module[_0x2a0e3c('0x0')]={'uniqueid':{'type':Sequelize['STRING']},'type':{'type':Sequelize[_0x2a0e3c('0x7')](_0x2a0e3c('0x9'),_0x2a0e3c('0x8'),_0x2a0e3c('0x1'),'inbound-fax',_0x2a0e3c('0x3'),_0x2a0e3c('0x2'))},'tag':{'type':Sequelize[_0x2a0e3c('0x4')]},'accountcode':{'type':Sequelize['STRING']},'source':{'type':Sequelize['STRING']},'destination':{'type':Sequelize[_0x2a0e3c('0x4')]},'destinationcontext':{'type':Sequelize[_0x2a0e3c('0x4')]},'callerid':{'type':Sequelize[_0x2a0e3c('0x4')]},'channel':{'type':Sequelize[_0x2a0e3c('0x4')]},'destinationchannel':{'type':Sequelize[_0x2a0e3c('0x4')]},'lastapplication':{'type':Sequelize[_0x2a0e3c('0x4')]},'lastdata':{'type':Sequelize[_0x2a0e3c('0xa')]},'starttime':{'type':Sequelize[_0x2a0e3c('0x5')]},'systemanswertime':{'type':Sequelize[_0x2a0e3c('0x5')]},'answertime':{'type':Sequelize[_0x2a0e3c('0x5')]},'endtime':{'type':Sequelize[_0x2a0e3c('0x5')]},'duration':{'type':Sequelize[_0x2a0e3c('0x6')]},'billableseconds':{'type':Sequelize[_0x2a0e3c('0x6')]},'mohtime':{'type':Sequelize[_0x2a0e3c('0x6')],'defaultValue':0x0},'disposition':{'type':Sequelize[_0x2a0e3c('0x4')]},'amaflags':{'type':Sequelize[_0x2a0e3c('0x4')]},'userfield':{'type':Sequelize[_0x2a0e3c('0x4')]},'userDisposition':{'type':Sequelize[_0x2a0e3c('0x4')]},'userSecondDisposition':{'type':Sequelize[_0x2a0e3c('0x4')]},'userThirdDisposition':{'type':Sequelize[_0x2a0e3c('0x4')]},'note':{'type':Sequelize['STRING']},'prefix':{'type':Sequelize['STRING']},'routeid':{'type':Sequelize[_0x2a0e3c('0x6')]},'sipcallid':{'type':Sequelize[_0x2a0e3c('0x4')]}}; \ No newline at end of file +const a849_0x2996=['ENUM','TEXT','STRING','attributes','DATE','dialer','inbound-fax','outbound','outbound-fax','INTEGER','sequelize','exports','internal'];(function(_0x429e9d,_0x2fbc2b){const _0x299640=function(_0x4137c8){while(--_0x4137c8){_0x429e9d['push'](_0x429e9d['shift']());}};_0x299640(++_0x2fbc2b);}(a849_0x2996,0xb1));const a849_0x4137=function(_0x429e9d,_0x2fbc2b){_0x429e9d=_0x429e9d-0x14d;let _0x299640=a849_0x2996[_0x429e9d];return _0x299640;};const a849_0x354501=a849_0x4137;'use strict';const {DataTypes}=require(a849_0x354501(0x14f)),attributes={'uniqueid':{'type':DataTypes[a849_0x354501(0x154)]},'type':{'type':DataTypes[a849_0x354501(0x152)]('inbound',a849_0x354501(0x151),a849_0x354501(0x159),a849_0x354501(0x158),a849_0x354501(0x14d),a849_0x354501(0x157))},'tag':{'type':DataTypes['STRING']},'accountcode':{'type':DataTypes['STRING']},'source':{'type':DataTypes[a849_0x354501(0x154)]},'destination':{'type':DataTypes[a849_0x354501(0x154)]},'destinationcontext':{'type':DataTypes[a849_0x354501(0x154)]},'callerid':{'type':DataTypes[a849_0x354501(0x154)]},'channel':{'type':DataTypes[a849_0x354501(0x154)]},'destinationchannel':{'type':DataTypes[a849_0x354501(0x154)]},'lastapplication':{'type':DataTypes[a849_0x354501(0x154)]},'lastdata':{'type':DataTypes[a849_0x354501(0x153)]},'starttime':{'type':DataTypes[a849_0x354501(0x156)]},'systemanswertime':{'type':DataTypes[a849_0x354501(0x156)]},'answertime':{'type':DataTypes[a849_0x354501(0x156)]},'endtime':{'type':DataTypes['DATE']},'duration':{'type':DataTypes[a849_0x354501(0x14e)]},'billableseconds':{'type':DataTypes[a849_0x354501(0x14e)]},'mohtime':{'type':DataTypes['INTEGER'],'defaultValue':0x0},'disposition':{'type':DataTypes[a849_0x354501(0x154)]},'amaflags':{'type':DataTypes[a849_0x354501(0x154)]},'userfield':{'type':DataTypes[a849_0x354501(0x154)]},'userDisposition':{'type':DataTypes[a849_0x354501(0x154)]},'userSecondDisposition':{'type':DataTypes[a849_0x354501(0x154)]},'userThirdDisposition':{'type':DataTypes[a849_0x354501(0x154)]},'note':{'type':DataTypes[a849_0x354501(0x154)]},'prefix':{'type':DataTypes[a849_0x354501(0x154)]},'routeid':{'type':DataTypes['INTEGER']},'sipcallid':{'type':DataTypes[a849_0x354501(0x154)]}};module[a849_0x354501(0x150)][a849_0x354501(0x155)]=attributes; \ No newline at end of file diff --git a/server/api/voiceCallReport/voiceCallReport.controller.js b/server/api/voiceCallReport/voiceCallReport.controller.js index 691abb2..48fc70a 100644 --- a/server/api/voiceCallReport/voiceCallReport.controller.js +++ b/server/api/voiceCallReport/voiceCallReport.controller.js @@ -1 +1 @@ -const a709_0x1099=['rawAttributes','../../components/parsers/qs','sequelize','nolimit','intersection','query','filters','User','send','undefined','update','include','name','where','type','describe','offset','catch','then','findAll','uniqueid','alias','includeAll','../../mysqldb','sort','rows','options','key','attributes','merge','destroy','model','length','params','sendStatus','../../config/logger','VoiceCallReport','limit','map','create','keys','count','json','lodash','show','fullname','index','error','like','findOne','api','body','fields','status'];(function(_0x23215f,_0x1099b5){const _0x657fc1=function(_0x12eddd){while(--_0x12eddd){_0x23215f['push'](_0x23215f['shift']());}};_0x657fc1(++_0x1099b5);}(a709_0x1099,0x192));const a709_0x657f=function(_0x23215f,_0x1099b5){_0x23215f=_0x23215f-0x0;let _0x657fc1=a709_0x1099[_0x23215f];return _0x657fc1;};const _0x428a72=a709_0x657f;'use strict';const _=require(_0x428a72('0x13')),qs=require(_0x428a72('0x1f')),logger=require(_0x428a72('0xb'))(_0x428a72('0x1a')),db=require(_0x428a72('0x35'))['db'],{Op}=require(_0x428a72('0x20'));function respondWithResult(_0x12eddd,_0x1bc6bc){return _0x1bc6bc=_0x1bc6bc||0xc8,function(_0x540613){const _0x15b5aa=a709_0x657f;if(_0x540613)return _0x12eddd[_0x15b5aa('0x1d')](_0x1bc6bc)[_0x15b5aa('0x12')](_0x540613);};}function respondWithFilteredResult(_0x228972,_0x5b9af7){return function(_0x2c9ebf){const _0x4a77f0=a709_0x657f;if(_0x2c9ebf){const _0x4d9ab3=_0x2c9ebf[_0x4a77f0('0x11')],_0x40eb20=_0x5b9af7[_0x4a77f0('0x2e')];let _0x44717a=_0x5b9af7[_0x4a77f0('0x2e')]+_0x5b9af7[_0x4a77f0('0xd')],_0x5933f5;return _0x44717a>=_0x4d9ab3?(_0x44717a=_0x4d9ab3,_0x5933f5=0xc8):_0x5933f5=0xce,_0x228972[_0x4a77f0('0x1d')](_0x5933f5),_0x228972['set']('Content-Range',_0x40eb20+'-'+_0x44717a+'/'+_0x4d9ab3)['json'](_0x2c9ebf);}return null;};}function saveUpdates(_0x51b9a4){return function(_0x4142d8){const _0x56e3a0=a709_0x657f;if(_0x4142d8)return _0x4142d8[_0x56e3a0('0x28')](_0x51b9a4)[_0x56e3a0('0x30')](function(_0x3b267a){return _0x3b267a;});return null;};}function removeEntity(_0x248284){return function(_0x139890){const _0x2ec1ea=a709_0x657f;if(_0x139890)return _0x139890[_0x2ec1ea('0x6')]()['then'](function(){const _0x232d0a=_0x2ec1ea;_0x248284[_0x232d0a('0x1d')](0xcc)['end']();});};}function handleEntityNotFound(_0x2b39cb){return function(_0x2f457e){const _0x327a57=a709_0x657f;return!_0x2f457e&&_0x2b39cb[_0x327a57('0xa')](0x194),_0x2f457e;};}function handleError(_0x4d6421,_0x1a4fd3){return _0x1a4fd3=_0x1a4fd3||0x1f4,function(_0x55d301){const _0x490360=a709_0x657f;logger[_0x490360('0x17')](_0x55d301['stack']),_0x55d301['name']&&delete _0x55d301['name'],_0x4d6421[_0x490360('0x1d')](_0x1a4fd3)[_0x490360('0x26')](_0x55d301);};}exports[_0x428a72('0x16')]=function(_0x140179,_0xe70846){const _0x4ecb2a=_0x428a72;let _0x560896={};const _0x33c54d={},_0x215c11={'count':0x0,'rows':[]},_0x3466b1=_[_0x4ecb2a('0xe')](db[_0x4ecb2a('0xc')][_0x4ecb2a('0x1e')],function(_0x4de6a4){const _0x1dba13=_0x4ecb2a;return{'name':_0x4de6a4['fieldName'],'type':_0x4de6a4[_0x1dba13('0x2c')][_0x1dba13('0x3')]};});_0x33c54d[_0x4ecb2a('0x7')]=_[_0x4ecb2a('0xe')](_0x3466b1,_0x4ecb2a('0x2a')),_0x33c54d['query']=_['keys'](_0x140179['query']),_0x33c54d[_0x4ecb2a('0x24')]=_[_0x4ecb2a('0x22')](_0x33c54d[_0x4ecb2a('0x7')],_0x33c54d[_0x4ecb2a('0x23')]),_0x560896[_0x4ecb2a('0x4')]=_[_0x4ecb2a('0x22')](_0x33c54d[_0x4ecb2a('0x7')],qs[_0x4ecb2a('0x1c')](_0x140179['query'][_0x4ecb2a('0x1c')])),_0x560896[_0x4ecb2a('0x4')]=_0x560896[_0x4ecb2a('0x4')][_0x4ecb2a('0x8')]?_0x560896[_0x4ecb2a('0x4')]:_0x33c54d[_0x4ecb2a('0x7')];typeof _0x140179[_0x4ecb2a('0x23')][_0x4ecb2a('0x21')]===_0x4ecb2a('0x27')&&(_0x560896[_0x4ecb2a('0xd')]=qs[_0x4ecb2a('0xd')](_0x140179[_0x4ecb2a('0x23')][_0x4ecb2a('0xd')]),_0x560896[_0x4ecb2a('0x2e')]=qs['offset'](_0x140179[_0x4ecb2a('0x23')][_0x4ecb2a('0x2e')]));_0x560896['order']=qs['sort'](_0x140179[_0x4ecb2a('0x23')][_0x4ecb2a('0x0')]),_0x560896[_0x4ecb2a('0x2b')]=qs['filters'](_['pick'](_0x140179[_0x4ecb2a('0x23')],_0x33c54d[_0x4ecb2a('0x24')]),_0x3466b1);_0x140179[_0x4ecb2a('0x23')]['filter']&&(_0x560896[_0x4ecb2a('0x2b')]=_['merge'](_0x560896['where'],{[Op['or']]:_[_0x4ecb2a('0xe')](_0x3466b1,function(_0x46d9af){const _0x529f78=_0x4ecb2a;if(_0x46d9af[_0x529f78('0x2c')]!=='VIRTUAL'){const _0x5659cc={};return _0x5659cc[_0x46d9af[_0x529f78('0x2a')]]={[Op[_0x529f78('0x18')]]:'%'+_0x140179[_0x529f78('0x23')]['filter']+'%'},_0x5659cc;}})}));_0x560896=_[_0x4ecb2a('0x5')]({},_0x560896,_0x140179[_0x4ecb2a('0x2')]);const _0x1b8d33={'where':_0x560896[_0x4ecb2a('0x2b')]};return db[_0x4ecb2a('0xc')][_0x4ecb2a('0x11')](_0x1b8d33)[_0x4ecb2a('0x30')](function(_0x4855ab){const _0x553804=_0x4ecb2a;return _0x215c11['count']=_0x4855ab,_0x140179[_0x553804('0x23')]['includeAll']&&(_0x560896[_0x553804('0x29')]=[{'attributes':['id',_0x553804('0x2a'),_0x553804('0x15'),_0x553804('0x33')],'model':db[_0x553804('0x25')],'as':'User'}]),db[_0x553804('0xc')][_0x553804('0x31')](_0x560896);})[_0x4ecb2a('0x30')](function(_0x469f42){const _0x57ad64=_0x4ecb2a;return _0x215c11[_0x57ad64('0x1')]=_0x469f42,_0x215c11;})[_0x4ecb2a('0x30')](respondWithFilteredResult(_0xe70846,_0x560896))[_0x4ecb2a('0x2f')](handleError(_0xe70846,null));},exports[_0x428a72('0x14')]=function(_0x2db148,_0x14d498){const _0x270938=_0x428a72;let _0xe20cb0={'raw':!![],'where':{'id':_0x2db148[_0x270938('0x9')]['id']}};const _0x2358e4={};return _0x2358e4[_0x270938('0x7')]=_[_0x270938('0x10')](db[_0x270938('0xc')][_0x270938('0x1e')]),_0x2358e4[_0x270938('0x23')]=_['keys'](_0x2db148[_0x270938('0x23')]),_0x2358e4['filters']=_[_0x270938('0x22')](_0x2358e4[_0x270938('0x7')],_0x2358e4['query']),_0xe20cb0[_0x270938('0x4')]=_[_0x270938('0x22')](_0x2358e4[_0x270938('0x7')],qs[_0x270938('0x1c')](_0x2db148['query'][_0x270938('0x1c')])),_0xe20cb0[_0x270938('0x4')]=_0xe20cb0[_0x270938('0x4')][_0x270938('0x8')]?_0xe20cb0[_0x270938('0x4')]:_0x2358e4[_0x270938('0x7')],_0x2db148[_0x270938('0x23')][_0x270938('0x34')]&&(_0xe20cb0[_0x270938('0x29')]=[{'all':!![]}]),_0xe20cb0=_[_0x270938('0x5')]({},_0xe20cb0,_0x2db148[_0x270938('0x2')]),db[_0x270938('0xc')][_0x270938('0x19')](_0xe20cb0)[_0x270938('0x30')](handleEntityNotFound(_0x14d498,null))[_0x270938('0x30')](respondWithResult(_0x14d498,null))[_0x270938('0x2f')](handleError(_0x14d498,null));},exports['create']=function(_0x15b6bb,_0x3c1aeb){const _0x1a7590=_0x428a72;return db[_0x1a7590('0xc')][_0x1a7590('0xf')](_0x15b6bb['body'],{})[_0x1a7590('0x30')](respondWithResult(_0x3c1aeb,0xc9))['catch'](handleError(_0x3c1aeb,null));},exports[_0x428a72('0x6')]=function(_0x2a3d64,_0x45a22c){const _0x51c506=_0x428a72;return db[_0x51c506('0xc')]['findOne']({'where':{'id':_0x2a3d64['params']['id']}})[_0x51c506('0x30')](handleEntityNotFound(_0x45a22c,null))[_0x51c506('0x30')](removeEntity(_0x45a22c,null))[_0x51c506('0x2f')](handleError(_0x45a22c,null));},exports[_0x428a72('0x2d')]=function(_0x18d357,_0x11f57d){const _0x50c4dc=_0x428a72;return db[_0x50c4dc('0xc')][_0x50c4dc('0x2d')]()[_0x50c4dc('0x30')](respondWithResult(_0x11f57d,null))[_0x50c4dc('0x2f')](handleError(_0x11f57d,null));},exports[_0x428a72('0x28')]=function(_0x16175c,_0x11dc29){const _0x4d84cf=_0x428a72;return _0x16175c[_0x4d84cf('0x1b')][_0x4d84cf('0x32')]&&delete _0x16175c[_0x4d84cf('0x1b')][_0x4d84cf('0x32')],db[_0x4d84cf('0xc')]['findOne']({'where':{'uniqueid':_0x16175c['params']['id'],'UserId':{[Op['or']]:[null,_0x16175c['user']['id']]}}})[_0x4d84cf('0x30')](handleEntityNotFound(_0x11dc29,null))[_0x4d84cf('0x30')](saveUpdates(_0x16175c[_0x4d84cf('0x1b')],null))[_0x4d84cf('0x30')](respondWithResult(_0x11dc29,null))['catch'](handleError(_0x11dc29,null));}; \ No newline at end of file +const a850_0x20c4=['limit','User','status','show','index','filters','offset','update','send','body','catch','map','../../components/parsers/qs','sort','VoiceCallReport','fullname','destroy','count','../../mysqldb','order','findOne','intersection','create','lodash','options','fieldName','include','params','set','query','keys','type','key','json','where','user','error','sendStatus','rawAttributes','../../config/logger','model','filter','like','VIRTUAL','length','attributes','Content-Range','uniqueid','end','fields','merge','then','sequelize','name','includeAll'];(function(_0x31c1e4,_0x3f750f){const _0x20c466=function(_0x4b008b){while(--_0x4b008b){_0x31c1e4['push'](_0x31c1e4['shift']());}};_0x20c466(++_0x3f750f);}(a850_0x20c4,0xf3));const a850_0x4b00=function(_0x31c1e4,_0x3f750f){_0x31c1e4=_0x31c1e4-0x1a8;let _0x20c466=a850_0x20c4[_0x31c1e4];return _0x20c466;};const a850_0x34fcad=a850_0x4b00;'use strict';const _=require(a850_0x34fcad(0x1a8)),qs=require(a850_0x34fcad(0x1d4)),logger=require(a850_0x34fcad(0x1b8))('api'),{db}=require(a850_0x34fcad(0x1da)),{Op}=require(a850_0x34fcad(0x1c5));function respondWithResult(_0x19e91b,_0x19c72e){return _0x19c72e=_0x19c72e||0xc8,function(_0xd8c075){if(_0xd8c075)return _0x19e91b['status'](_0x19c72e)['json'](_0xd8c075);};}function respondWithFilteredResult(_0x5dd7dd,_0xbd50ac){return function(_0x980774){const _0x5e04aa=a850_0x4b00;if(_0x980774){const _0x5ae200=_0x980774[_0x5e04aa(0x1d9)],_0x57b084=_0xbd50ac[_0x5e04aa(0x1ce)];let _0x211d97=_0xbd50ac[_0x5e04aa(0x1ce)]+_0xbd50ac[_0x5e04aa(0x1c8)],_0x1472a4;return _0x211d97>=_0x5ae200?(_0x211d97=_0x5ae200,_0x1472a4=0xc8):_0x1472a4=0xce,_0x5dd7dd[_0x5e04aa(0x1ca)](_0x1472a4),_0x5dd7dd[_0x5e04aa(0x1ad)](_0x5e04aa(0x1bf),_0x57b084+'-'+_0x211d97+'/'+_0x5ae200)[_0x5e04aa(0x1b2)](_0x980774);}return null;};}function saveUpdates(_0xe12348){return function(_0x401ba5){const _0x2fee24=a850_0x4b00;if(_0x401ba5)return _0x401ba5[_0x2fee24(0x1cf)](_0xe12348)['then'](function(_0x530f90){return _0x530f90;});return null;};}function removeEntity(_0x2e6ee4){return function(_0x37fdf9){const _0x11bb9c=a850_0x4b00;if(_0x37fdf9)return _0x37fdf9['destroy']()[_0x11bb9c(0x1c4)](function(){const _0x378bee=_0x11bb9c;_0x2e6ee4[_0x378bee(0x1ca)](0xcc)[_0x378bee(0x1c1)]();});};}function handleEntityNotFound(_0x126e63){return function(_0x2173be){const _0x95a8d9=a850_0x4b00;return!_0x2173be&&_0x126e63[_0x95a8d9(0x1b6)](0x194),_0x2173be;};}function handleError(_0x103cef,_0x59993f){return _0x59993f=_0x59993f||0x1f4,function(_0x4d01cd){const _0x38699c=a850_0x4b00;logger[_0x38699c(0x1b5)](_0x4d01cd['stack']),_0x4d01cd['name']&&delete _0x4d01cd[_0x38699c(0x1c6)],_0x103cef[_0x38699c(0x1ca)](_0x59993f)[_0x38699c(0x1d0)](_0x4d01cd);};}exports[a850_0x34fcad(0x1cc)]=function(_0x13a803,_0x58ccbf){const _0x3382d7=a850_0x34fcad;let _0x32d6d1={};const _0x504bdc={},_0x541b70={'count':0x0,'rows':[]},_0x4dd59c=_[_0x3382d7(0x1d3)](db[_0x3382d7(0x1d6)][_0x3382d7(0x1b7)],function(_0x3bc959){const _0x34f2dd=_0x3382d7;return{'name':_0x3bc959[_0x34f2dd(0x1aa)],'type':_0x3bc959[_0x34f2dd(0x1b0)][_0x34f2dd(0x1b1)]};});_0x504bdc['model']=_['map'](_0x4dd59c,'name'),_0x504bdc[_0x3382d7(0x1ae)]=_[_0x3382d7(0x1af)](_0x13a803[_0x3382d7(0x1ae)]),_0x504bdc[_0x3382d7(0x1cd)]=_[_0x3382d7(0x1dd)](_0x504bdc['model'],_0x504bdc[_0x3382d7(0x1ae)]),_0x32d6d1['attributes']=_['intersection'](_0x504bdc[_0x3382d7(0x1b9)],qs[_0x3382d7(0x1c2)](_0x13a803['query'][_0x3382d7(0x1c2)])),_0x32d6d1[_0x3382d7(0x1be)]=_0x32d6d1[_0x3382d7(0x1be)][_0x3382d7(0x1bd)]?_0x32d6d1[_0x3382d7(0x1be)]:_0x504bdc[_0x3382d7(0x1b9)];typeof _0x13a803[_0x3382d7(0x1ae)]['nolimit']==='undefined'&&(_0x32d6d1[_0x3382d7(0x1c8)]=qs[_0x3382d7(0x1c8)](_0x13a803[_0x3382d7(0x1ae)][_0x3382d7(0x1c8)]),_0x32d6d1[_0x3382d7(0x1ce)]=qs['offset'](_0x13a803['query'][_0x3382d7(0x1ce)]));_0x32d6d1[_0x3382d7(0x1db)]=qs[_0x3382d7(0x1d5)](_0x13a803[_0x3382d7(0x1ae)][_0x3382d7(0x1d5)]),_0x32d6d1[_0x3382d7(0x1b3)]=qs['filters'](_['pick'](_0x13a803[_0x3382d7(0x1ae)],_0x504bdc[_0x3382d7(0x1cd)]),_0x4dd59c);_0x13a803[_0x3382d7(0x1ae)][_0x3382d7(0x1ba)]&&(_0x32d6d1['where']=_[_0x3382d7(0x1c3)](_0x32d6d1['where'],{[Op['or']]:_[_0x3382d7(0x1d3)](_0x4dd59c,function(_0x1ce12a){const _0x23e5be=_0x3382d7;if(_0x1ce12a[_0x23e5be(0x1b0)]!==_0x23e5be(0x1bc)){const _0x3655ae={};return _0x3655ae[_0x1ce12a['name']]={[Op[_0x23e5be(0x1bb)]]:'%'+_0x13a803[_0x23e5be(0x1ae)][_0x23e5be(0x1ba)]+'%'},_0x3655ae;}})}));_0x32d6d1=_[_0x3382d7(0x1c3)]({},_0x32d6d1,_0x13a803[_0x3382d7(0x1a9)]);const _0x9be8c1={'where':_0x32d6d1[_0x3382d7(0x1b3)]};return db[_0x3382d7(0x1d6)][_0x3382d7(0x1d9)](_0x9be8c1)[_0x3382d7(0x1c4)](function(_0x49b259){const _0x31bbec=_0x3382d7;return _0x541b70['count']=_0x49b259,_0x13a803[_0x31bbec(0x1ae)][_0x31bbec(0x1c7)]&&(_0x32d6d1[_0x31bbec(0x1ab)]=[{'attributes':['id',_0x31bbec(0x1c6),_0x31bbec(0x1d7),'alias'],'model':db['User'],'as':_0x31bbec(0x1c9)}]),db['VoiceCallReport']['findAll'](_0x32d6d1);})[_0x3382d7(0x1c4)](function(_0x251214){return _0x541b70['rows']=_0x251214,_0x541b70;})['then'](respondWithFilteredResult(_0x58ccbf,_0x32d6d1))[_0x3382d7(0x1d2)](handleError(_0x58ccbf,null));},exports[a850_0x34fcad(0x1cb)]=function(_0x4eec00,_0x4e2479){const _0x4b2eaf=a850_0x34fcad;let _0x5ed8ea={'raw':!![],'where':{'id':_0x4eec00[_0x4b2eaf(0x1ac)]['id']}};const _0x11ab35={};return _0x11ab35['model']=_[_0x4b2eaf(0x1af)](db['VoiceCallReport']['rawAttributes']),_0x11ab35[_0x4b2eaf(0x1ae)]=_[_0x4b2eaf(0x1af)](_0x4eec00[_0x4b2eaf(0x1ae)]),_0x11ab35[_0x4b2eaf(0x1cd)]=_[_0x4b2eaf(0x1dd)](_0x11ab35[_0x4b2eaf(0x1b9)],_0x11ab35[_0x4b2eaf(0x1ae)]),_0x5ed8ea[_0x4b2eaf(0x1be)]=_[_0x4b2eaf(0x1dd)](_0x11ab35[_0x4b2eaf(0x1b9)],qs[_0x4b2eaf(0x1c2)](_0x4eec00[_0x4b2eaf(0x1ae)][_0x4b2eaf(0x1c2)])),_0x5ed8ea[_0x4b2eaf(0x1be)]=_0x5ed8ea[_0x4b2eaf(0x1be)][_0x4b2eaf(0x1bd)]?_0x5ed8ea[_0x4b2eaf(0x1be)]:_0x11ab35['model'],_0x4eec00[_0x4b2eaf(0x1ae)][_0x4b2eaf(0x1c7)]&&(_0x5ed8ea[_0x4b2eaf(0x1ab)]=[{'all':!![]}]),_0x5ed8ea=_['merge']({},_0x5ed8ea,_0x4eec00[_0x4b2eaf(0x1a9)]),db[_0x4b2eaf(0x1d6)]['findOne'](_0x5ed8ea)[_0x4b2eaf(0x1c4)](handleEntityNotFound(_0x4e2479,null))['then'](respondWithResult(_0x4e2479,null))[_0x4b2eaf(0x1d2)](handleError(_0x4e2479,null));},exports[a850_0x34fcad(0x1de)]=function(_0x2946f2,_0x43f924){const _0x4c7a3b=a850_0x34fcad;return db['VoiceCallReport'][_0x4c7a3b(0x1de)](_0x2946f2[_0x4c7a3b(0x1d1)],{})[_0x4c7a3b(0x1c4)](respondWithResult(_0x43f924,0xc9))[_0x4c7a3b(0x1d2)](handleError(_0x43f924,null));},exports[a850_0x34fcad(0x1d8)]=function(_0x1be8ca,_0x46dad2){const _0x59bc4b=a850_0x34fcad;return db['VoiceCallReport'][_0x59bc4b(0x1dc)]({'where':{'id':_0x1be8ca[_0x59bc4b(0x1ac)]['id']}})[_0x59bc4b(0x1c4)](handleEntityNotFound(_0x46dad2,null))['then'](removeEntity(_0x46dad2,null))[_0x59bc4b(0x1d2)](handleError(_0x46dad2,null));},exports['describe']=function(_0x2914cf,_0x245202){const _0x365d7c=a850_0x34fcad;return db[_0x365d7c(0x1d6)]['describe']()[_0x365d7c(0x1c4)](respondWithResult(_0x245202,null))[_0x365d7c(0x1d2)](handleError(_0x245202,null));},exports['update']=function(_0x587856,_0x2a4221){const _0x49563e=a850_0x34fcad;return _0x587856[_0x49563e(0x1d1)][_0x49563e(0x1c0)]&&delete _0x587856['body'][_0x49563e(0x1c0)],db['VoiceCallReport'][_0x49563e(0x1dc)]({'where':{'uniqueid':_0x587856[_0x49563e(0x1ac)]['id'],'UserId':{[Op['or']]:[null,_0x587856[_0x49563e(0x1b4)]['id']]}}})[_0x49563e(0x1c4)](handleEntityNotFound(_0x2a4221,null))['then'](saveUpdates(_0x587856[_0x49563e(0x1d1)],null))[_0x49563e(0x1c4)](respondWithResult(_0x2a4221,null))[_0x49563e(0x1d2)](handleError(_0x2a4221,null));}; \ No newline at end of file diff --git a/server/api/voiceCallReport/voiceCallReport.model.js b/server/api/voiceCallReport/voiceCallReport.model.js index 9932e3a..1d60e8a 100644 --- a/server/api/voiceCallReport/voiceCallReport.model.js +++ b/server/api/voiceCallReport/voiceCallReport.model.js @@ -1 +1 @@ -const a710_0x5334=['define','./voiceCallReport.attributes','report_call','VoiceCallReport'];(function(_0x48605a,_0x5334be){const _0x3d25c3=function(_0x1e42a5){while(--_0x1e42a5){_0x48605a['push'](_0x48605a['shift']());}};_0x3d25c3(++_0x5334be);}(a710_0x5334,0xb1));const a710_0x3d25=function(_0x48605a,_0x5334be){_0x48605a=_0x48605a-0x0;let _0x3d25c3=a710_0x5334[_0x48605a];return _0x3d25c3;};const _0x39fe0e=a710_0x3d25;'use strict';const attributes=require(_0x39fe0e('0x0'));module['exports']=function(_0x1e42a5){const _0x300b6c=_0x39fe0e,_0x5b33dc=_0x1e42a5[_0x300b6c('0x3')](_0x300b6c('0x2'),attributes,{'tableName':_0x300b6c('0x1'),'paranoid':![],'indexes':[{'fields':['uniqueid']}],'timestamps':!![]});return _0x5b33dc;}; \ No newline at end of file +const a851_0x2ea4=['function','./voiceCallReport.options','./voiceCallReport.attributes','VoiceCallReport','exports'];(function(_0x5b9979,_0x4bacc6){const _0x2ea43f=function(_0x3ae4ca){while(--_0x3ae4ca){_0x5b9979['push'](_0x5b9979['shift']());}};_0x2ea43f(++_0x4bacc6);}(a851_0x2ea4,0x1a4));const a851_0x3ae4=function(_0x5b9979,_0x4bacc6){_0x5b9979=_0x5b9979-0x64;let _0x2ea43f=a851_0x2ea4[_0x5b9979];return _0x2ea43f;};const a851_0x379885=a851_0x3ae4;'use strict';const {Model}=require('sequelize'),{attributes}=require(a851_0x379885(0x66)),{options}=require(a851_0x379885(0x65));class VoiceCallReport extends Model{}function init(_0x13eb85,_0x288ac4){const _0x5ec4c1=a851_0x379885,_0x287b8a=options(_0x13eb85),_0x53d94a=typeof _0x288ac4===_0x5ec4c1(0x64)?_0x288ac4(_0x287b8a):_0x287b8a;return VoiceCallReport['init'](attributes,_0x53d94a),VoiceCallReport;}module['exports'][a851_0x379885(0x67)]=VoiceCallReport,module[a851_0x379885(0x68)]['init']=init; \ No newline at end of file diff --git a/server/api/voiceCallReport/voiceCallReport.options.js b/server/api/voiceCallReport/voiceCallReport.options.js new file mode 100644 index 0000000..053df4c --- /dev/null +++ b/server/api/voiceCallReport/voiceCallReport.options.js @@ -0,0 +1 @@ +var a852_0x56ac=['exports','report_call','options'];(function(_0x20127c,_0x3a568e){var _0x56ac43=function(_0x4be8b0){while(--_0x4be8b0){_0x20127c['push'](_0x20127c['shift']());}};_0x56ac43(++_0x3a568e);}(a852_0x56ac,0x191));var a852_0x4be8=function(_0x20127c,_0x3a568e){_0x20127c=_0x20127c-0x14b;var _0x56ac43=a852_0x56ac[_0x20127c];return _0x56ac43;};var a852_0x300376=a852_0x4be8;function options(_0x377130){var _0x1e6e50=a852_0x4be8;return{'sequelize':_0x377130,'tableName':_0x1e6e50(0x14d),'paranoid':![],'indexes':[{'fields':['uniqueid']}],'timestamps':!![]};}module[a852_0x300376(0x14c)][a852_0x300376(0x14b)]=options; \ No newline at end of file diff --git a/server/api/voiceCallReport/voiceCallReport.rpc.js b/server/api/voiceCallReport/voiceCallReport.rpc.js index 30ad8cb..b748725 100644 --- a/server/api/voiceCallReport/voiceCallReport.rpc.js +++ b/server/api/voiceCallReport/voiceCallReport.rpc.js @@ -1 +1 @@ -const a711_0x5135=['CreateVoiceCallReport','limit','include','message','../../mysqldb','update','create','../../config/logger','attributes','model','info','findAll','raw','lodash','GetVoiceCallReport','catch','stringify','body','debug','VoiceCallReport','UpdateVoiceCallReport','error','rpc','then','options'];(function(_0x27b68f,_0x513576){const _0x6a9cf0=function(_0x2d81d5){while(--_0x2d81d5){_0x27b68f['push'](_0x27b68f['shift']());}};_0x6a9cf0(++_0x513576);}(a711_0x5135,0x1c4));const a711_0x6a9c=function(_0x27b68f,_0x513576){_0x27b68f=_0x27b68f-0x0;let _0x6a9cf0=a711_0x5135[_0x27b68f];return _0x6a9cf0;};const _0x2e8a6b=a711_0x6a9c;'use strict';const _=require(_0x2e8a6b('0xb')),db=require(_0x2e8a6b('0x2'))['db'],logger=require(_0x2e8a6b('0x5'))(_0x2e8a6b('0x14'));exports['GetVoiceCallReport']=function(_0x2d81d5){const _0x334f80=this;return new Promise(function(_0x4c577c,_0x19abe2){const _0x4355e3=a711_0x6a9c;return db[_0x4355e3('0x11')][_0x4355e3('0x9')]({'raw':_0x2d81d5['options']?_0x2d81d5[_0x4355e3('0x16')][_0x4355e3('0xa')]===undefined?!![]:![]:!![],'where':_0x2d81d5[_0x4355e3('0x16')]?_0x2d81d5['options']['where']||null:null,'attributes':_0x2d81d5[_0x4355e3('0x16')]?_0x2d81d5[_0x4355e3('0x16')]['attributes']||null:null,'limit':_0x2d81d5[_0x4355e3('0x16')]?_0x2d81d5['options'][_0x4355e3('0x18')]||null:null,'include':_0x2d81d5['options']?_0x2d81d5[_0x4355e3('0x16')][_0x4355e3('0x0')]?_['map'](_0x2d81d5['options'][_0x4355e3('0x0')],function(_0x4efadc){const _0x94a664=_0x4355e3;return{'model':db[_0x4efadc[_0x94a664('0x7')]],'as':_0x4efadc['as'],'attributes':_0x4efadc[_0x94a664('0x6')],'include':_0x4efadc['include']?_['map'](_0x4efadc[_0x94a664('0x0')],function(_0x52202e){const _0x257a51=_0x94a664;return{'model':db[_0x52202e[_0x257a51('0x7')]],'as':_0x52202e['as'],'attributes':_0x52202e[_0x257a51('0x6')],'include':_0x52202e[_0x257a51('0x0')]?_['map'](_0x52202e[_0x257a51('0x0')],function(_0xafeec6){const _0x24aa2f=_0x257a51;return{'model':db[_0xafeec6[_0x24aa2f('0x7')]],'as':_0xafeec6['as'],'attributes':_0xafeec6['attributes']};}):[]};}):[]};}):[]:[]})[_0x4355e3('0x15')](function(_0x2b4f38){const _0x1b2e97=_0x4355e3;logger[_0x1b2e97('0x8')](_0x1b2e97('0xc'),_0x2d81d5),logger[_0x1b2e97('0x10')]('GetVoiceCallReport',_0x2d81d5,JSON[_0x1b2e97('0xe')](_0x2b4f38)),_0x4c577c(_0x2b4f38);})[_0x4355e3('0xd')](function(_0x54d746){const _0x2aeb97=_0x4355e3;logger[_0x2aeb97('0x13')](_0x2aeb97('0xc'),_0x54d746[_0x2aeb97('0x1')],_0x2d81d5),_0x19abe2(_0x334f80[_0x2aeb97('0x13')](0x1f4,_0x54d746[_0x2aeb97('0x1')]));});});},exports[_0x2e8a6b('0x17')]=function(_0x395248){const _0x18c076=this;return new Promise(function(_0xb2eee7,_0x309d96){const _0x250022=a711_0x6a9c;return db[_0x250022('0x11')][_0x250022('0x4')](_0x395248['body'],{'raw':_0x395248[_0x250022('0x16')]?_0x395248[_0x250022('0x16')]['raw']===undefined?!![]:![]:!![]})[_0x250022('0x15')](function(_0x830024){const _0x3f58f9=_0x250022;logger['info'](_0x3f58f9('0x17'),_0x395248),logger['debug'](_0x3f58f9('0x17'),_0x395248,JSON[_0x3f58f9('0xe')](_0x830024)),_0xb2eee7(_0x830024);})[_0x250022('0xd')](function(_0x3c3b8){const _0x5d8c25=_0x250022;logger[_0x5d8c25('0x13')]('CreateVoiceCallReport',_0x3c3b8[_0x5d8c25('0x1')],_0x395248),_0x309d96(_0x18c076[_0x5d8c25('0x13')](0x1f4,_0x3c3b8['message']));});});},exports[_0x2e8a6b('0x12')]=function(_0x58a290){const _0x45cbc6=this;return new Promise(function(_0x21c491,_0x5024a1){const _0x5c1942=a711_0x6a9c;return db[_0x5c1942('0x11')][_0x5c1942('0x3')](_0x58a290[_0x5c1942('0xf')],{'raw':_0x58a290['options']?_0x58a290['options'][_0x5c1942('0xa')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x58a290['options']?_0x58a290[_0x5c1942('0x16')]['where']||null:null,'attributes':_0x58a290['options']?_0x58a290['options']['attributes']||null:null,'limit':_0x58a290[_0x5c1942('0x16')]?_0x58a290['options'][_0x5c1942('0x18')]||null:null})[_0x5c1942('0x15')](function(_0x34e151){const _0x132bb5=_0x5c1942;logger[_0x132bb5('0x8')](_0x132bb5('0x12'),_0x58a290),logger['debug']('UpdateVoiceCallReport',_0x58a290,JSON[_0x132bb5('0xe')](_0x34e151)),_0x21c491(_0x34e151);})[_0x5c1942('0xd')](function(_0x40e568){const _0x2c4b03=_0x5c1942;logger[_0x2c4b03('0x13')](_0x2c4b03('0x12'),_0x40e568['message'],_0x58a290),_0x5024a1(_0x45cbc6[_0x2c4b03('0x13')](0x1f4,_0x40e568[_0x2c4b03('0x1')]));});});}; \ No newline at end of file +const a853_0x3cea=['CreateVoiceCallReport','catch','where','model','GetVoiceCallReport','then','create','findAll','rpc','info','raw','../../config/logger','UpdateVoiceCallReport','message','../../mysqldb','stringify','error','limit','include','options','map','attributes','debug','VoiceCallReport'];(function(_0x5c37af,_0x23284d){const _0x3cea6e=function(_0x582835){while(--_0x582835){_0x5c37af['push'](_0x5c37af['shift']());}};_0x3cea6e(++_0x23284d);}(a853_0x3cea,0x1d1));const a853_0x5828=function(_0x5c37af,_0x23284d){_0x5c37af=_0x5c37af-0x1a3;let _0x3cea6e=a853_0x3cea[_0x5c37af];return _0x3cea6e;};const a853_0x3786be=a853_0x5828;'use strict';const _=require('lodash'),db=require(a853_0x3786be(0x1a8))['db'],logger=require(a853_0x3786be(0x1a5))(a853_0x3786be(0x1ba));exports['GetVoiceCallReport']=function(_0x5c0729){const _0x1dcca7=this;return new Promise(function(_0x22ca4d,_0x5320e3){const _0x44fee5=a853_0x5828;return db[_0x44fee5(0x1b1)][_0x44fee5(0x1b9)]({'raw':_0x5c0729['options']?_0x5c0729[_0x44fee5(0x1ad)][_0x44fee5(0x1a4)]===undefined?!![]:![]:!![],'where':_0x5c0729[_0x44fee5(0x1ad)]?_0x5c0729[_0x44fee5(0x1ad)]['where']||null:null,'attributes':_0x5c0729[_0x44fee5(0x1ad)]?_0x5c0729['options'][_0x44fee5(0x1af)]||null:null,'limit':_0x5c0729[_0x44fee5(0x1ad)]?_0x5c0729[_0x44fee5(0x1ad)][_0x44fee5(0x1ab)]||null:null,'include':_0x5c0729[_0x44fee5(0x1ad)]?_0x5c0729[_0x44fee5(0x1ad)]['include']?_['map'](_0x5c0729['options'][_0x44fee5(0x1ac)],function(_0x4dd2ed){const _0x15e31b=_0x44fee5;return{'model':db[_0x4dd2ed[_0x15e31b(0x1b5)]],'as':_0x4dd2ed['as'],'attributes':_0x4dd2ed['attributes'],'include':_0x4dd2ed[_0x15e31b(0x1ac)]?_[_0x15e31b(0x1ae)](_0x4dd2ed[_0x15e31b(0x1ac)],function(_0x29cc97){const _0x3b20e7=_0x15e31b;return{'model':db[_0x29cc97[_0x3b20e7(0x1b5)]],'as':_0x29cc97['as'],'attributes':_0x29cc97[_0x3b20e7(0x1af)],'include':_0x29cc97[_0x3b20e7(0x1ac)]?_[_0x3b20e7(0x1ae)](_0x29cc97[_0x3b20e7(0x1ac)],function(_0xfe8b87){return{'model':db[_0xfe8b87['model']],'as':_0xfe8b87['as'],'attributes':_0xfe8b87['attributes']};}):[]};}):[]};}):[]:[]})[_0x44fee5(0x1b7)](function(_0x21d461){const _0x2c2b5d=_0x44fee5;logger[_0x2c2b5d(0x1a3)](_0x2c2b5d(0x1b6),_0x5c0729),logger[_0x2c2b5d(0x1b0)](_0x2c2b5d(0x1b6),_0x5c0729,JSON['stringify'](_0x21d461)),_0x22ca4d(_0x21d461);})['catch'](function(_0x2acbaa){const _0xdd6b66=_0x44fee5;logger[_0xdd6b66(0x1aa)](_0xdd6b66(0x1b6),_0x2acbaa[_0xdd6b66(0x1a7)],_0x5c0729),_0x5320e3(_0x1dcca7[_0xdd6b66(0x1aa)](0x1f4,_0x2acbaa[_0xdd6b66(0x1a7)]));});});},exports[a853_0x3786be(0x1b2)]=function(_0x477228){const _0xf7ed2e=this;return new Promise(function(_0x2812c6,_0x2e9285){const _0x4bfa1f=a853_0x5828;return db[_0x4bfa1f(0x1b1)][_0x4bfa1f(0x1b8)](_0x477228['body'],{'raw':_0x477228['options']?_0x477228[_0x4bfa1f(0x1ad)][_0x4bfa1f(0x1a4)]===undefined?!![]:![]:!![]})[_0x4bfa1f(0x1b7)](function(_0x32f574){const _0x566def=_0x4bfa1f;logger[_0x566def(0x1a3)](_0x566def(0x1b2),_0x477228),logger['debug'](_0x566def(0x1b2),_0x477228,JSON['stringify'](_0x32f574)),_0x2812c6(_0x32f574);})[_0x4bfa1f(0x1b3)](function(_0x5657e1){const _0x8d14ac=_0x4bfa1f;logger[_0x8d14ac(0x1aa)](_0x8d14ac(0x1b2),_0x5657e1['message'],_0x477228),_0x2e9285(_0xf7ed2e[_0x8d14ac(0x1aa)](0x1f4,_0x5657e1['message']));});});},exports[a853_0x3786be(0x1a6)]=function(_0x5d6d90){const _0x2f3704=this;return new Promise(function(_0x329192,_0x7ddec2){const _0x7bade4=a853_0x5828;return db[_0x7bade4(0x1b1)]['update'](_0x5d6d90['body'],{'raw':_0x5d6d90[_0x7bade4(0x1ad)]?_0x5d6d90['options'][_0x7bade4(0x1a4)]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x5d6d90[_0x7bade4(0x1ad)]?_0x5d6d90[_0x7bade4(0x1ad)][_0x7bade4(0x1b4)]||null:null,'attributes':_0x5d6d90[_0x7bade4(0x1ad)]?_0x5d6d90[_0x7bade4(0x1ad)][_0x7bade4(0x1af)]||null:null,'limit':_0x5d6d90[_0x7bade4(0x1ad)]?_0x5d6d90[_0x7bade4(0x1ad)][_0x7bade4(0x1ab)]||null:null})['then'](function(_0x43d6d8){const _0x2671d1=_0x7bade4;logger[_0x2671d1(0x1a3)](_0x2671d1(0x1a6),_0x5d6d90),logger[_0x2671d1(0x1b0)]('UpdateVoiceCallReport',_0x5d6d90,JSON[_0x2671d1(0x1a9)](_0x43d6d8)),_0x329192(_0x43d6d8);})[_0x7bade4(0x1b3)](function(_0x33b008){const _0x324916=_0x7bade4;logger[_0x324916(0x1aa)]('UpdateVoiceCallReport',_0x33b008[_0x324916(0x1a7)],_0x5d6d90),_0x7ddec2(_0x2f3704[_0x324916(0x1aa)](0x1f4,_0x33b008[_0x324916(0x1a7)]));});});}; \ No newline at end of file diff --git a/server/api/voiceChanSpy/index.js b/server/api/voiceChanSpy/index.js index 00c777f..8595348 100644 --- a/server/api/voiceChanSpy/index.js +++ b/server/api/voiceChanSpy/index.js @@ -1 +1 @@ -const a712_0x56ee=['delete','create','/:id','../../components/auth/service','destroy','update','post','isAuthenticated','./voiceChanSpy.controller','express'];(function(_0x5538b7,_0x56ee5c){const _0x2e74af=function(_0x4604bc){while(--_0x4604bc){_0x5538b7['push'](_0x5538b7['shift']());}};_0x2e74af(++_0x56ee5c);}(a712_0x56ee,0x17d));const a712_0x2e74=function(_0x5538b7,_0x56ee5c){_0x5538b7=_0x5538b7-0x0;let _0x2e74af=a712_0x56ee[_0x5538b7];return _0x2e74af;};const _0x5f5775=a712_0x2e74;'use strict';const express=require(_0x5f5775('0x8')),router=express['Router'](),auth=require(_0x5f5775('0x2')),controller=require(_0x5f5775('0x7'));router['get']('/',auth[_0x5f5775('0x6')](),controller['index']),router['get'](_0x5f5775('0x1'),auth[_0x5f5775('0x6')](),controller['show']),router[_0x5f5775('0x5')]('/',auth[_0x5f5775('0x6')](),controller[_0x5f5775('0x0')]),router['put'](_0x5f5775('0x1'),auth[_0x5f5775('0x6')](),controller[_0x5f5775('0x4')]),router[_0x5f5775('0x9')](_0x5f5775('0x1'),auth[_0x5f5775('0x6')](),controller[_0x5f5775('0x3')]),module['exports']=router; \ No newline at end of file +const a854_0x1aa2=['Router','update','../../components/auth/service','delete','exports','./voiceChanSpy.controller','/:id','index','post','isAuthenticated','get','create'];(function(_0x5677b4,_0x17ac65){const _0x1aa2d0=function(_0x38d806){while(--_0x38d806){_0x5677b4['push'](_0x5677b4['shift']());}};_0x1aa2d0(++_0x17ac65);}(a854_0x1aa2,0x142));const a854_0x38d8=function(_0x5677b4,_0x17ac65){_0x5677b4=_0x5677b4-0xc1;let _0x1aa2d0=a854_0x1aa2[_0x5677b4];return _0x1aa2d0;};const a854_0x32c089=a854_0x38d8;'use strict';const express=require('express'),router=express[a854_0x32c089(0xc3)](),auth=require(a854_0x32c089(0xc5)),controller=require(a854_0x32c089(0xc8));router[a854_0x32c089(0xc1)]('/',auth[a854_0x32c089(0xcc)](),controller[a854_0x32c089(0xca)]),router[a854_0x32c089(0xc1)]('/:id',auth[a854_0x32c089(0xcc)](),controller['show']),router[a854_0x32c089(0xcb)]('/',auth[a854_0x32c089(0xcc)](),controller[a854_0x32c089(0xc2)]),router['put']('/:id',auth[a854_0x32c089(0xcc)](),controller[a854_0x32c089(0xc4)]),router[a854_0x32c089(0xc6)](a854_0x32c089(0xc9),auth[a854_0x32c089(0xcc)](),controller['destroy']),module[a854_0x32c089(0xc7)]=router; \ No newline at end of file diff --git a/server/api/voiceChanSpy/voiceChanSpy.attributes.js b/server/api/voiceChanSpy/voiceChanSpy.attributes.js index 97866e6..e46dc91 100644 --- a/server/api/voiceChanSpy/voiceChanSpy.attributes.js +++ b/server/api/voiceChanSpy/voiceChanSpy.attributes.js @@ -1 +1 @@ -const a713_0x129e=['join','getDataValue','BOOLEAN','exports','options','sequelize','STRING','name','split'];(function(_0x346591,_0x129edf){const _0x2b02cf=function(_0x12e715){while(--_0x12e715){_0x346591['push'](_0x346591['shift']());}};_0x2b02cf(++_0x129edf);}(a713_0x129e,0x84));const a713_0x2b02=function(_0x346591,_0x129edf){_0x346591=_0x346591-0x0;let _0x2b02cf=a713_0x129e[_0x346591];return _0x2b02cf;};const _0x54696d=a713_0x2b02;'use strict';const Sequelize=require(_0x54696d('0x8'));module[_0x54696d('0x6')]={'name':{'type':Sequelize[_0x54696d('0x0')]},'prefix':{'type':Sequelize[_0x54696d('0x0')],'unique':_0x54696d('0x1'),'allowNull':![]},'options':{'type':Sequelize[_0x54696d('0x0')],'set':function(_0x12e715){const _0x15df28=_0x54696d;this['setDataValue']('options',_0x12e715?_0x12e715[_0x15df28('0x3')](''):[]);},'get':function(){const _0x267219=_0x54696d;return this[_0x267219('0x4')](_0x267219('0x7'))?this[_0x267219('0x4')](_0x267219('0x7'))[_0x267219('0x2')](''):[];}},'auth':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'password':{'type':Sequelize['STRING']},'record':{'type':Sequelize[_0x54696d('0x5')],'defaultValue':![]},'recordingFormat':{'type':Sequelize[_0x54696d('0x0')]},'description':{'type':Sequelize[_0x54696d('0x0')]}}; \ No newline at end of file +const a855_0x1a1d=['split','STRING','attributes','setDataValue','getDataValue','options','name','BOOLEAN','join'];(function(_0x10d8de,_0x449173){const _0x1a1d09=function(_0x4b3fef){while(--_0x4b3fef){_0x10d8de['push'](_0x10d8de['shift']());}};_0x1a1d09(++_0x449173);}(a855_0x1a1d,0x1be));const a855_0x4b3f=function(_0x10d8de,_0x449173){_0x10d8de=_0x10d8de-0x1c3;let _0x1a1d09=a855_0x1a1d[_0x10d8de];return _0x1a1d09;};const a855_0x5e708c=a855_0x4b3f;'use strict';const Sequelize=require('sequelize'),attributes={'name':{'type':Sequelize[a855_0x5e708c(0x1c8)]},'prefix':{'type':Sequelize[a855_0x5e708c(0x1c8)],'unique':a855_0x5e708c(0x1c4),'allowNull':![]},'options':{'type':Sequelize[a855_0x5e708c(0x1c8)],'set':function(_0x302810){const _0x2bc046=a855_0x5e708c;this[_0x2bc046(0x1ca)](_0x2bc046(0x1c3),_0x302810?_0x302810[_0x2bc046(0x1c6)](''):[]);},'get':function(){const _0x43022f=a855_0x5e708c;return this[_0x43022f(0x1cb)]('options')?this[_0x43022f(0x1cb)]('options')[_0x43022f(0x1c7)](''):[];}},'auth':{'type':Sequelize[a855_0x5e708c(0x1c5)],'defaultValue':![]},'password':{'type':Sequelize[a855_0x5e708c(0x1c8)]},'record':{'type':Sequelize[a855_0x5e708c(0x1c5)],'defaultValue':![]},'recordingFormat':{'type':Sequelize[a855_0x5e708c(0x1c8)]},'description':{'type':Sequelize['STRING']}};module['exports'][a855_0x5e708c(0x1c9)]=attributes; \ No newline at end of file diff --git a/server/api/voiceChanSpy/voiceChanSpy.controller.js b/server/api/voiceChanSpy/voiceChanSpy.controller.js index 0ca4a07..b7a2b6e 100644 --- a/server/api/voiceChanSpy/voiceChanSpy.controller.js +++ b/server/api/voiceChanSpy/voiceChanSpy.controller.js @@ -1 +1 @@ -const a714_0x294b=['index','includeAll','length','filter','offset','error','../../config/logger','get','pick','count','status','findAll','like','sequelize','end','api','findOne','send','UserProfileResource','model','keys','type','destroy','ChanSpies','params','Unable\x20to\x20retrieve\x20the\x20current\x20user','query','filters','rawAttributes','rows','user','limit','UserProfileSection','stack','update','nolimit','VoiceChanSpy','then','json','body','attributes','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','sort','map','VIRTUAL','sendStatus','fields','create','key','catch','show','userProfileId','merge','name','options','../../mysqldb','lodash','where','intersection'];(function(_0x8f941f,_0x294be6){const _0x337e72=function(_0x25effd){while(--_0x25effd){_0x8f941f['push'](_0x8f941f['shift']());}};_0x337e72(++_0x294be6);}(a714_0x294b,0x83));const a714_0x337e=function(_0x8f941f,_0x294be6){_0x8f941f=_0x8f941f-0x0;let _0x337e72=a714_0x294b[_0x8f941f];return _0x337e72;};const _0x4bf5f1=a714_0x337e;'use strict';const _=require(_0x4bf5f1('0x2b')),qs=require('../../components/parsers/qs'),logger=require(_0x4bf5f1('0x34'))(_0x4bf5f1('0x2')),db=require(_0x4bf5f1('0x2a'))['db'],{Op}=require(_0x4bf5f1('0x0'));function respondWithResult(_0x25effd,_0x2f3cb5){return _0x2f3cb5=_0x2f3cb5||0xc8,function(_0x27a99f){const _0x199fb1=a714_0x337e;if(_0x27a99f)return _0x25effd[_0x199fb1('0x38')](_0x2f3cb5)[_0x199fb1('0x19')](_0x27a99f);};}function respondWithFilteredResult(_0x24d076,_0x5cf36f){return function(_0x15f4e3){const _0x55271b=a714_0x337e;if(_0x15f4e3){const _0x257de9=_0x15f4e3[_0x55271b('0x37')],_0x1c51a3=_0x5cf36f[_0x55271b('0x32')];let _0x51fe0f=_0x5cf36f[_0x55271b('0x32')]+_0x5cf36f[_0x55271b('0x12')],_0x406d83;return _0x51fe0f>=_0x257de9?(_0x51fe0f=_0x257de9,_0x406d83=0xc8):_0x406d83=0xce,_0x24d076[_0x55271b('0x38')](_0x406d83),_0x24d076['set']('Content-Range',_0x1c51a3+'-'+_0x51fe0f+'/'+_0x257de9)['json'](_0x15f4e3);}return null;};}function saveUpdates(_0x35ae0b){return function(_0x9e3ce4){const _0x4fdbc4=a714_0x337e;if(_0x9e3ce4)return _0x9e3ce4[_0x4fdbc4('0x15')](_0x35ae0b)['then'](function(_0x2cbd39){return _0x2cbd39;});return null;};}function removeEntity(_0x4ef7db){return function(_0x500622){const _0x49e172=a714_0x337e;if(_0x500622)return _0x500622[_0x49e172('0x9')]()[_0x49e172('0x18')](function(){const _0x340219=_0x49e172,_0x1f9f5d=_0x500622[_0x340219('0x35')]({'plain':!![]}),_0x42dcf3=_0x340219('0xa');return db[_0x340219('0x5')]['destroy']({'where':{'type':_0x42dcf3,'resourceId':_0x1f9f5d['id']}})['then'](function(){return _0x500622;});})['then'](function(){const _0x95abb4=_0x49e172;_0x4ef7db[_0x95abb4('0x38')](0xcc)[_0x95abb4('0x1')]();});};}function handleEntityNotFound(_0x2a07b1){return function(_0x3dda42){const _0x17fe0d=a714_0x337e;return!_0x3dda42&&_0x2a07b1[_0x17fe0d('0x20')](0x194),_0x3dda42;};}function handleError(_0x32fc3c,_0x1031a9){return _0x1031a9=_0x1031a9||0x1f4,function(_0x1a1557){const _0x248b3b=a714_0x337e;logger[_0x248b3b('0x33')](_0x1a1557[_0x248b3b('0x14')]),_0x1a1557[_0x248b3b('0x28')]&&delete _0x1a1557[_0x248b3b('0x28')],_0x32fc3c['status'](_0x1031a9)[_0x248b3b('0x4')](_0x1a1557);};}exports[_0x4bf5f1('0x2e')]=function(_0xa16a15,_0x2701b7){const _0x1c551f=_0x4bf5f1;let _0x2f4187={};const _0x5bb8d6={},_0x37ae8a={'count':0x0,'rows':[]},_0x2f515b=_[_0x1c551f('0x1e')](db[_0x1c551f('0x17')][_0x1c551f('0xf')],function(_0x281a3c){const _0x42e8a3=_0x1c551f;return{'name':_0x281a3c['fieldName'],'type':_0x281a3c[_0x42e8a3('0x8')][_0x42e8a3('0x23')]};});_0x5bb8d6[_0x1c551f('0x6')]=_[_0x1c551f('0x1e')](_0x2f515b,_0x1c551f('0x28')),_0x5bb8d6[_0x1c551f('0xd')]=_[_0x1c551f('0x7')](_0xa16a15[_0x1c551f('0xd')]),_0x5bb8d6['filters']=_[_0x1c551f('0x2d')](_0x5bb8d6[_0x1c551f('0x6')],_0x5bb8d6[_0x1c551f('0xd')]),_0x2f4187['attributes']=_[_0x1c551f('0x2d')](_0x5bb8d6['model'],qs[_0x1c551f('0x21')](_0xa16a15[_0x1c551f('0xd')][_0x1c551f('0x21')])),_0x2f4187[_0x1c551f('0x1b')]=_0x2f4187[_0x1c551f('0x1b')][_0x1c551f('0x30')]?_0x2f4187[_0x1c551f('0x1b')]:_0x5bb8d6['model'];typeof _0xa16a15[_0x1c551f('0xd')][_0x1c551f('0x16')]==='undefined'&&(_0x2f4187['limit']=qs[_0x1c551f('0x12')](_0xa16a15['query'][_0x1c551f('0x12')]),_0x2f4187[_0x1c551f('0x32')]=qs[_0x1c551f('0x32')](_0xa16a15['query'][_0x1c551f('0x32')]));_0x2f4187['order']=qs[_0x1c551f('0x1d')](_0xa16a15[_0x1c551f('0xd')][_0x1c551f('0x1d')]),_0x2f4187['where']=qs['filters'](_[_0x1c551f('0x36')](_0xa16a15[_0x1c551f('0xd')],_0x5bb8d6[_0x1c551f('0xe')]),_0x2f515b);_0xa16a15['query'][_0x1c551f('0x31')]&&(_0x2f4187[_0x1c551f('0x2c')]=_['merge'](_0x2f4187[_0x1c551f('0x2c')],{[Op['or']]:_['map'](_0x2f515b,function(_0xfe5288){const _0x9613b3=_0x1c551f;if(_0xfe5288[_0x9613b3('0x8')]!==_0x9613b3('0x1f')){const _0x39d2de={};return _0x39d2de[_0xfe5288['name']]={[Op[_0x9613b3('0x3a')]]:'%'+_0xa16a15[_0x9613b3('0xd')][_0x9613b3('0x31')]+'%'},_0x39d2de;}})}));_0x2f4187=_[_0x1c551f('0x27')]({},_0x2f4187,_0xa16a15[_0x1c551f('0x29')]);const _0x514484={'where':_0x2f4187['where']};return db[_0x1c551f('0x17')][_0x1c551f('0x37')](_0x514484)[_0x1c551f('0x18')](function(_0x504866){const _0x527d7d=_0x1c551f;return _0x37ae8a[_0x527d7d('0x37')]=_0x504866,_0xa16a15[_0x527d7d('0xd')][_0x527d7d('0x2f')]&&(_0x2f4187['include']=[{'all':!![]}]),db['VoiceChanSpy'][_0x527d7d('0x39')](_0x2f4187);})[_0x1c551f('0x18')](function(_0x20d64a){const _0x55e139=_0x1c551f;return _0x37ae8a[_0x55e139('0x10')]=_0x20d64a,_0x37ae8a;})[_0x1c551f('0x18')](respondWithFilteredResult(_0x2701b7,_0x2f4187))[_0x1c551f('0x24')](handleError(_0x2701b7,null));},exports[_0x4bf5f1('0x25')]=function(_0x472eb2,_0x243c12){const _0x45c3d1=_0x4bf5f1;let _0x324458={'raw':![],'where':{'id':_0x472eb2[_0x45c3d1('0xb')]['id']}};const _0x1ecf8c={};return _0x1ecf8c[_0x45c3d1('0x6')]=_[_0x45c3d1('0x7')](db[_0x45c3d1('0x17')][_0x45c3d1('0xf')]),_0x1ecf8c['query']=_['keys'](_0x472eb2[_0x45c3d1('0xd')]),_0x1ecf8c[_0x45c3d1('0xe')]=_[_0x45c3d1('0x2d')](_0x1ecf8c[_0x45c3d1('0x6')],_0x1ecf8c[_0x45c3d1('0xd')]),_0x324458[_0x45c3d1('0x1b')]=_[_0x45c3d1('0x2d')](_0x1ecf8c[_0x45c3d1('0x6')],qs[_0x45c3d1('0x21')](_0x472eb2[_0x45c3d1('0xd')][_0x45c3d1('0x21')])),_0x324458[_0x45c3d1('0x1b')]=_0x324458[_0x45c3d1('0x1b')][_0x45c3d1('0x30')]?_0x324458[_0x45c3d1('0x1b')]:_0x1ecf8c[_0x45c3d1('0x6')],_0x472eb2[_0x45c3d1('0xd')][_0x45c3d1('0x2f')]&&(_0x324458['include']=[{'all':!![]}]),_0x324458=_[_0x45c3d1('0x27')]({},_0x324458,_0x472eb2[_0x45c3d1('0x29')]),db[_0x45c3d1('0x17')][_0x45c3d1('0x3')](_0x324458)[_0x45c3d1('0x18')](handleEntityNotFound(_0x243c12,null))[_0x45c3d1('0x18')](respondWithResult(_0x243c12,null))[_0x45c3d1('0x24')](handleError(_0x243c12,null));},exports['create']=function(_0x4edbff,_0x15e2f6){const _0x5704e1=_0x4bf5f1;return db['VoiceChanSpy'][_0x5704e1('0x22')](_0x4edbff[_0x5704e1('0x1a')],{})[_0x5704e1('0x18')](function(_0x3f4af9){const _0x2bd832=_0x5704e1,_0xec7f3e=_0x4edbff[_0x2bd832('0x11')][_0x2bd832('0x35')]({'plain':!![]});if(!_0xec7f3e)throw new Error(_0x2bd832('0xc'));if(_0xec7f3e['role']===_0x2bd832('0x11')){const _0x56d04d=_0x3f4af9[_0x2bd832('0x35')]({'plain':!![]}),_0x5aea25=_0x2bd832('0xa');return db[_0x2bd832('0x13')][_0x2bd832('0x3')]({'where':{'name':_0x5aea25,'userProfileId':_0xec7f3e[_0x2bd832('0x26')]},'raw':!![]})[_0x2bd832('0x18')](function(_0x3a5e65){const _0x254d2c=_0x2bd832;return _0x3a5e65&&_0x3a5e65['autoAssociation']===0x0?db[_0x254d2c('0x5')][_0x254d2c('0x22')]({'name':_0x56d04d[_0x254d2c('0x28')],'resourceId':_0x56d04d['id'],'type':_0x3a5e65['name'],'sectionId':_0x3a5e65['id']},{})['then'](function(){return _0x3f4af9;}):_0x3f4af9;})[_0x2bd832('0x24')](function(_0x234c5d){const _0x13307c=_0x2bd832;logger[_0x13307c('0x33')](_0x13307c('0x1c'),_0x234c5d);throw _0x234c5d;});}return _0x3f4af9;})[_0x5704e1('0x18')](respondWithResult(_0x15e2f6,0xc9))[_0x5704e1('0x24')](handleError(_0x15e2f6,null));},exports[_0x4bf5f1('0x15')]=function(_0x44ffaf,_0x34e08d){const _0x4d33de=_0x4bf5f1;return _0x44ffaf[_0x4d33de('0x1a')]['id']&&delete _0x44ffaf[_0x4d33de('0x1a')]['id'],db[_0x4d33de('0x17')]['findOne']({'where':{'id':_0x44ffaf['params']['id']}})[_0x4d33de('0x18')](handleEntityNotFound(_0x34e08d,null))[_0x4d33de('0x18')](saveUpdates(_0x44ffaf[_0x4d33de('0x1a')],null))[_0x4d33de('0x18')](respondWithResult(_0x34e08d,null))[_0x4d33de('0x24')](handleError(_0x34e08d,null));},exports[_0x4bf5f1('0x9')]=function(_0x2f26df,_0x25e8ee){const _0x21a812=_0x4bf5f1;return db[_0x21a812('0x17')][_0x21a812('0x3')]({'where':{'id':_0x2f26df[_0x21a812('0xb')]['id']}})[_0x21a812('0x18')](handleEntityNotFound(_0x25e8ee,null))[_0x21a812('0x18')](removeEntity(_0x25e8ee,null))['catch'](handleError(_0x25e8ee,null));}; \ No newline at end of file +const a856_0x2908=['../../mysqldb','name','userProfileId','../../config/logger','rows','autoAssociation','type','user','lodash','Unable\x20to\x20retrieve\x20the\x20current\x20user','destroy','findAll','error','Content-Range','VoiceChanSpy','catch','sequelize','attributes','json','fieldName','length','params','like','filter','rawAttributes','ChanSpies','set','sort','pick','order','show','VIRTUAL','key','count','intersection','map','create','include','keys','sendStatus','UserProfileResource','merge','includeAll','filters','status','then','get','limit','findOne','send','model','api','query','options','stack','offset','where','fields','update','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','index','body'];(function(_0x1b0dd7,_0x55f010){const _0x290882=function(_0x128c60){while(--_0x128c60){_0x1b0dd7['push'](_0x1b0dd7['shift']());}};_0x290882(++_0x55f010);}(a856_0x2908,0x7b));const a856_0x128c=function(_0x1b0dd7,_0x55f010){_0x1b0dd7=_0x1b0dd7-0x124;let _0x290882=a856_0x2908[_0x1b0dd7];return _0x290882;};const a856_0x41e069=a856_0x128c;'use strict';const _=require(a856_0x41e069(0x12d)),qs=require('../../components/parsers/qs'),logger=require(a856_0x41e069(0x128))(a856_0x41e069(0x158)),{db}=require(a856_0x41e069(0x125)),{Op}=require(a856_0x41e069(0x135));function respondWithResult(_0x3a4157,_0x534517){return _0x534517=_0x534517||0xc8,function(_0x20edcd){const _0x3fc1d6=a856_0x128c;if(_0x20edcd)return _0x3a4157[_0x3fc1d6(0x151)](_0x534517)[_0x3fc1d6(0x137)](_0x20edcd);};}function respondWithFilteredResult(_0x4a9b3c,_0x4e460b){return function(_0x578a01){const _0x52208d=a856_0x128c;if(_0x578a01){const _0x545b57=_0x578a01[_0x52208d(0x146)],_0x36b0aa=_0x4e460b[_0x52208d(0x15c)];let _0x56c4b2=_0x4e460b[_0x52208d(0x15c)]+_0x4e460b['limit'],_0x7fc4b;return _0x56c4b2>=_0x545b57?(_0x56c4b2=_0x545b57,_0x7fc4b=0xc8):_0x7fc4b=0xce,_0x4a9b3c[_0x52208d(0x151)](_0x7fc4b),_0x4a9b3c[_0x52208d(0x13f)](_0x52208d(0x132),_0x36b0aa+'-'+_0x56c4b2+'/'+_0x545b57)[_0x52208d(0x137)](_0x578a01);}return null;};}function saveUpdates(_0x5b1640){return function(_0x35ef6b){const _0x513f1d=a856_0x128c;if(_0x35ef6b)return _0x35ef6b[_0x513f1d(0x15f)](_0x5b1640)[_0x513f1d(0x152)](function(_0x34ecd8){return _0x34ecd8;});return null;};}function removeEntity(_0x49848c){return function(_0x527835){const _0x4d8ab1=a856_0x128c;if(_0x527835)return _0x527835[_0x4d8ab1(0x12f)]()['then'](function(){const _0x32d924=_0x4d8ab1,_0x25f958=_0x527835[_0x32d924(0x153)]({'plain':!![]}),_0x4b2390=_0x32d924(0x13e);return db[_0x32d924(0x14d)][_0x32d924(0x12f)]({'where':{'type':_0x4b2390,'resourceId':_0x25f958['id']}})[_0x32d924(0x152)](function(){return _0x527835;});})[_0x4d8ab1(0x152)](function(){const _0xe0e33c=_0x4d8ab1;_0x49848c[_0xe0e33c(0x151)](0xcc)['end']();});};}function handleEntityNotFound(_0x16e5af){return function(_0x161a04){const _0x39d5f1=a856_0x128c;return!_0x161a04&&_0x16e5af[_0x39d5f1(0x14c)](0x194),_0x161a04;};}function handleError(_0x56116c,_0x41742d){return _0x41742d=_0x41742d||0x1f4,function(_0x5be71d){const _0x191dd6=a856_0x128c;logger[_0x191dd6(0x131)](_0x5be71d[_0x191dd6(0x15b)]),_0x5be71d[_0x191dd6(0x126)]&&delete _0x5be71d[_0x191dd6(0x126)],_0x56116c[_0x191dd6(0x151)](_0x41742d)[_0x191dd6(0x156)](_0x5be71d);};}exports[a856_0x41e069(0x161)]=function(_0xa6bc5c,_0x425156){const _0x5b092e=a856_0x41e069;let _0x3922a6={};const _0xc84b26={},_0x53aa64={'count':0x0,'rows':[]},_0x1a9288=_[_0x5b092e(0x148)](db[_0x5b092e(0x133)][_0x5b092e(0x13d)],function(_0xbb8d07){const _0x1fe91b=_0x5b092e;return{'name':_0xbb8d07[_0x1fe91b(0x138)],'type':_0xbb8d07[_0x1fe91b(0x12b)][_0x1fe91b(0x145)]};});_0xc84b26['model']=_[_0x5b092e(0x148)](_0x1a9288,'name'),_0xc84b26[_0x5b092e(0x159)]=_['keys'](_0xa6bc5c[_0x5b092e(0x159)]),_0xc84b26[_0x5b092e(0x150)]=_[_0x5b092e(0x147)](_0xc84b26[_0x5b092e(0x157)],_0xc84b26[_0x5b092e(0x159)]),_0x3922a6[_0x5b092e(0x136)]=_[_0x5b092e(0x147)](_0xc84b26[_0x5b092e(0x157)],qs[_0x5b092e(0x15e)](_0xa6bc5c[_0x5b092e(0x159)][_0x5b092e(0x15e)])),_0x3922a6['attributes']=_0x3922a6[_0x5b092e(0x136)][_0x5b092e(0x139)]?_0x3922a6['attributes']:_0xc84b26['model'];typeof _0xa6bc5c[_0x5b092e(0x159)]['nolimit']==='undefined'&&(_0x3922a6[_0x5b092e(0x154)]=qs[_0x5b092e(0x154)](_0xa6bc5c['query']['limit']),_0x3922a6[_0x5b092e(0x15c)]=qs[_0x5b092e(0x15c)](_0xa6bc5c[_0x5b092e(0x159)][_0x5b092e(0x15c)]));_0x3922a6[_0x5b092e(0x142)]=qs[_0x5b092e(0x140)](_0xa6bc5c[_0x5b092e(0x159)]['sort']),_0x3922a6[_0x5b092e(0x15d)]=qs[_0x5b092e(0x150)](_[_0x5b092e(0x141)](_0xa6bc5c[_0x5b092e(0x159)],_0xc84b26['filters']),_0x1a9288);_0xa6bc5c[_0x5b092e(0x159)]['filter']&&(_0x3922a6[_0x5b092e(0x15d)]=_['merge'](_0x3922a6[_0x5b092e(0x15d)],{[Op['or']]:_['map'](_0x1a9288,function(_0x199bc0){const _0x4e1885=_0x5b092e;if(_0x199bc0[_0x4e1885(0x12b)]!==_0x4e1885(0x144)){const _0xa437e6={};return _0xa437e6[_0x199bc0[_0x4e1885(0x126)]]={[Op[_0x4e1885(0x13b)]]:'%'+_0xa6bc5c[_0x4e1885(0x159)][_0x4e1885(0x13c)]+'%'},_0xa437e6;}})}));_0x3922a6=_[_0x5b092e(0x14e)]({},_0x3922a6,_0xa6bc5c[_0x5b092e(0x15a)]);const _0x1c665c={'where':_0x3922a6['where']};return db[_0x5b092e(0x133)]['count'](_0x1c665c)['then'](function(_0x4d4804){const _0x4e327f=_0x5b092e;return _0x53aa64[_0x4e327f(0x146)]=_0x4d4804,_0xa6bc5c['query']['includeAll']&&(_0x3922a6[_0x4e327f(0x14a)]=[{'all':!![]}]),db[_0x4e327f(0x133)][_0x4e327f(0x130)](_0x3922a6);})[_0x5b092e(0x152)](function(_0xa874bf){const _0x46862f=_0x5b092e;return _0x53aa64[_0x46862f(0x129)]=_0xa874bf,_0x53aa64;})['then'](respondWithFilteredResult(_0x425156,_0x3922a6))['catch'](handleError(_0x425156,null));},exports[a856_0x41e069(0x143)]=function(_0x3aa3f4,_0x558dc2){const _0x158820=a856_0x41e069;let _0x52d756={'raw':![],'where':{'id':_0x3aa3f4[_0x158820(0x13a)]['id']}};const _0x2b2cb7={};return _0x2b2cb7['model']=_[_0x158820(0x14b)](db[_0x158820(0x133)][_0x158820(0x13d)]),_0x2b2cb7['query']=_[_0x158820(0x14b)](_0x3aa3f4[_0x158820(0x159)]),_0x2b2cb7['filters']=_[_0x158820(0x147)](_0x2b2cb7[_0x158820(0x157)],_0x2b2cb7[_0x158820(0x159)]),_0x52d756[_0x158820(0x136)]=_[_0x158820(0x147)](_0x2b2cb7[_0x158820(0x157)],qs['fields'](_0x3aa3f4[_0x158820(0x159)][_0x158820(0x15e)])),_0x52d756[_0x158820(0x136)]=_0x52d756[_0x158820(0x136)][_0x158820(0x139)]?_0x52d756[_0x158820(0x136)]:_0x2b2cb7[_0x158820(0x157)],_0x3aa3f4['query'][_0x158820(0x14f)]&&(_0x52d756[_0x158820(0x14a)]=[{'all':!![]}]),_0x52d756=_[_0x158820(0x14e)]({},_0x52d756,_0x3aa3f4[_0x158820(0x15a)]),db['VoiceChanSpy'][_0x158820(0x155)](_0x52d756)[_0x158820(0x152)](handleEntityNotFound(_0x558dc2,null))[_0x158820(0x152)](respondWithResult(_0x558dc2,null))[_0x158820(0x134)](handleError(_0x558dc2,null));},exports['create']=function(_0x5b53ba,_0x37eb7f){const _0x19b8c5=a856_0x41e069;return db[_0x19b8c5(0x133)][_0x19b8c5(0x149)](_0x5b53ba[_0x19b8c5(0x124)],{})[_0x19b8c5(0x152)](function(_0xe7dcd4){const _0x1f9030=_0x19b8c5,_0x14e6b6=_0x5b53ba[_0x1f9030(0x12c)]['get']({'plain':!![]});if(!_0x14e6b6)throw new Error(_0x1f9030(0x12e));if(_0x14e6b6['role']===_0x1f9030(0x12c)){const _0x3c46af=_0xe7dcd4['get']({'plain':!![]}),_0x16b048=_0x1f9030(0x13e);return db['UserProfileSection'][_0x1f9030(0x155)]({'where':{'name':_0x16b048,'userProfileId':_0x14e6b6[_0x1f9030(0x127)]},'raw':!![]})['then'](function(_0x5b8637){const _0x2d8933=_0x1f9030;return _0x5b8637&&_0x5b8637[_0x2d8933(0x12a)]===0x0?db[_0x2d8933(0x14d)][_0x2d8933(0x149)]({'name':_0x3c46af[_0x2d8933(0x126)],'resourceId':_0x3c46af['id'],'type':_0x5b8637[_0x2d8933(0x126)],'sectionId':_0x5b8637['id']},{})[_0x2d8933(0x152)](function(){return _0xe7dcd4;}):_0xe7dcd4;})[_0x1f9030(0x134)](function(_0x549fa6){const _0x164e71=_0x1f9030;logger[_0x164e71(0x131)](_0x164e71(0x160),_0x549fa6);throw _0x549fa6;});}return _0xe7dcd4;})['then'](respondWithResult(_0x37eb7f,0xc9))[_0x19b8c5(0x134)](handleError(_0x37eb7f,null));},exports[a856_0x41e069(0x15f)]=function(_0x5d7db0,_0x5990ee){const _0x59fbc8=a856_0x41e069;return _0x5d7db0[_0x59fbc8(0x124)]['id']&&delete _0x5d7db0['body']['id'],db['VoiceChanSpy'][_0x59fbc8(0x155)]({'where':{'id':_0x5d7db0[_0x59fbc8(0x13a)]['id']}})['then'](handleEntityNotFound(_0x5990ee,null))[_0x59fbc8(0x152)](saveUpdates(_0x5d7db0[_0x59fbc8(0x124)],null))[_0x59fbc8(0x152)](respondWithResult(_0x5990ee,null))[_0x59fbc8(0x134)](handleError(_0x5990ee,null));},exports[a856_0x41e069(0x12f)]=function(_0x5c5e70,_0x1ea7da){const _0x2d92f3=a856_0x41e069;return db['VoiceChanSpy'][_0x2d92f3(0x155)]({'where':{'id':_0x5c5e70[_0x2d92f3(0x13a)]['id']}})['then'](handleEntityNotFound(_0x1ea7da,null))[_0x2d92f3(0x152)](removeEntity(_0x1ea7da,null))[_0x2d92f3(0x134)](handleError(_0x1ea7da,null));}; \ No newline at end of file diff --git a/server/api/voiceChanSpy/voiceChanSpy.model.js b/server/api/voiceChanSpy/voiceChanSpy.model.js index 8101773..dd92598 100644 --- a/server/api/voiceChanSpy/voiceChanSpy.model.js +++ b/server/api/voiceChanSpy/voiceChanSpy.model.js @@ -1 +1 @@ -const a715_0x309f=['then','VoiceChanSpy','lodash','name','findAll','User','options','./voiceChanSpy.attributes','SIP/%s,%s','${UNIQUEID}.%s,ab','VoiceExtension','MixMonitor','prefix','ChanSpy','exports','record','util','catch','StopMixMonitor','concat','push','define','destroy','models','recordingFormat','chanspy','length','bulkCreate','auth','merge','join','password','format','context','internal','voice_chanspy','%s%s'];(function(_0x4b5fd7,_0x309fdf){const _0x181f06=function(_0x105716){while(--_0x105716){_0x4b5fd7['push'](_0x4b5fd7['shift']());}};_0x181f06(++_0x309fdf);}(a715_0x309f,0x163));const a715_0x181f=function(_0x4b5fd7,_0x309fdf){_0x4b5fd7=_0x4b5fd7-0x0;let _0x181f06=a715_0x309f[_0x4b5fd7];return _0x181f06;};const _0x265061=a715_0x181f;'use strict';const _=require(_0x265061('0x11')),util=require(_0x265061('0x1f')),attributes=require(_0x265061('0x16')),createChanSpyApplications=function(_0x105716,_0x4428b4,_0x4b22d8){const _0xbf7c12=_0x265061;let _0xaf0c87=0x1;const _0x1a1b72=[],_0x58c67b={'context':_0x4428b4[_0xbf7c12('0xb')]||'from-sip','exten':util[_0xbf7c12('0xa')](_0xbf7c12('0xe'),_0x105716[_0xbf7c12('0x1b')],_0x4b22d8),'type':'system','isApp':![],'ChanSpyId':_0x105716['id'],'UserId':_0x4428b4['id']};return _0x1a1b72[_0xbf7c12('0x23')](_[_0xbf7c12('0x7')]({'app':'Set','appdata':util[_0xbf7c12('0xa')]('CDR(type)=%s',_0xbf7c12('0x3')),'priority':_0xaf0c87++},_0x58c67b)),_0x105716[_0xbf7c12('0x1e')]&&_0x1a1b72['push'](_[_0xbf7c12('0x7')]({'app':_0xbf7c12('0x1a'),'appdata':util[_0xbf7c12('0xa')](_0xbf7c12('0x18'),_0x105716[_0xbf7c12('0x2')]),'priority':_0xaf0c87++},_0x58c67b)),_0x105716[_0xbf7c12('0x6')]&&_0x1a1b72[_0xbf7c12('0x23')](_[_0xbf7c12('0x7')]({'app':'Authenticate','appdata':_0x105716[_0xbf7c12('0x9')],'priority':_0xaf0c87++},_0x58c67b)),_0x1a1b72[_0xbf7c12('0x23')](_[_0xbf7c12('0x7')]({'app':_0xbf7c12('0x1c'),'appdata':util[_0xbf7c12('0xa')](_0xbf7c12('0x17'),_0x4428b4[_0xbf7c12('0x12')],_0x105716[_0xbf7c12('0x15')]?_0x105716[_0xbf7c12('0x15')][_0xbf7c12('0x8')](''):''),'priority':_0xaf0c87++},_0x58c67b)),_0x105716[_0xbf7c12('0x1e')]&&_0x1a1b72[_0xbf7c12('0x23')](_[_0xbf7c12('0x7')]({'app':_0xbf7c12('0x21'),'priority':_0xaf0c87++},_0x58c67b)),_0x1a1b72;},addChanSpyApplications=function(_0x2af23e,_0x2364e8){const _0x4b322f=_0x265061;let _0xe1b709=[];for(let _0x281172=0x0;_0x281172<_0x2364e8[_0x4b322f('0x4')];_0x281172++){_0xe1b709=_0xe1b709[_0x4b322f('0x22')](createChanSpyApplications(_0x2af23e,_0x2364e8[_0x281172],_0x2364e8[_0x281172][_0x4b322f('0xc')])),_0x2364e8[_0x281172][_0x4b322f('0xc')]!=_0x2364e8[_0x281172]['name']&&(_0xe1b709=_0xe1b709[_0x4b322f('0x22')](createChanSpyApplications(_0x2af23e,_0x2364e8[_0x281172],_0x2364e8[_0x281172][_0x4b322f('0x12')])));}return _0xe1b709;},getChanSpy=function(_0x1062fe,_0x794b8d){return new Promise(function(_0x5b150e,_0x12b0f3){const _0x4994eb=a715_0x181f;return _0x1062fe[_0x4994eb('0x14')][_0x4994eb('0x13')]({'attributes':['id',_0x4994eb('0x12'),_0x4994eb('0xc')],'where':{'role':'agent','chanspy':!![]},'raw':!![]})[_0x4994eb('0xf')](function(_0x100328){if(_0x100328)return _0x5b150e(addChanSpyApplications(_0x794b8d,_0x100328));return _0x5b150e([]);})['catch'](function(_0x38cc9c){_0x12b0f3(_0x38cc9c);});});};module[_0x265061('0x1d')]=function(_0x2942cd){const _0x3a9fe5=_0x265061,_0x780746=_0x2942cd[_0x3a9fe5('0x1')],_0x2e2665=_0x2942cd[_0x3a9fe5('0x24')](_0x3a9fe5('0x10'),attributes,{'tableName':_0x3a9fe5('0xd'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'afterCreate':function(_0xc1e0bc){const _0x222348=_0x3a9fe5;return getChanSpy(_0x780746,_0xc1e0bc)['then'](function(_0x582d11){const _0x2994cb=a715_0x181f;return _0x582d11&&_0x582d11['length']?_0x780746[_0x2994cb('0x19')][_0x2994cb('0x5')](_0x582d11):null;})[_0x222348('0x20')](function(_0x25cba1){return _0x25cba1;});},'afterUpdate':function(_0x173916){const _0x141e3f=_0x3a9fe5;return _0x780746[_0x141e3f('0x19')][_0x141e3f('0x0')]({'where':{'ChanSpyId':_0x173916['id']}})[_0x141e3f('0xf')](function(){return getChanSpy(_0x780746,_0x173916);})[_0x141e3f('0xf')](function(_0x51b7b8){const _0x5b41e7=_0x141e3f;return _0x51b7b8&&_0x51b7b8[_0x5b41e7('0x4')]?_0x780746[_0x5b41e7('0x19')][_0x5b41e7('0x5')](_0x51b7b8):null;})['catch'](function(_0x17fb4b){return _0x17fb4b;});},'afterDestroy':function(_0x27b60d){const _0x4657fa=_0x3a9fe5;return _0x780746[_0x4657fa('0x19')]['destroy']({'where':{'ChanSpyId':_0x27b60d['id']}})[_0x4657fa('0xf')](function(){return null;})[_0x4657fa('0x20')](function(_0x546f09){return _0x546f09;});}}});return _0x2e2665;}; \ No newline at end of file +const a857_0x125e=['init','./voiceChanSpy.options','exports','VoiceChanSpy','./voiceChanSpy.attributes','sequelize','function'];(function(_0x5912a,_0x34fac5){const _0x125e71=function(_0x2ee2e7){while(--_0x2ee2e7){_0x5912a['push'](_0x5912a['shift']());}};_0x125e71(++_0x34fac5);}(a857_0x125e,0x1dd));const a857_0x2ee2=function(_0x5912a,_0x34fac5){_0x5912a=_0x5912a-0x152;let _0x125e71=a857_0x125e[_0x5912a];return _0x125e71;};const a857_0x5f5ac6=a857_0x2ee2;'use strict';const {Model}=require(a857_0x5f5ac6(0x156)),{attributes}=require(a857_0x5f5ac6(0x155)),{options}=require(a857_0x5f5ac6(0x152));class VoiceChanSpy extends Model{}function init(_0x41361c,_0x344b7a){const _0x192003=a857_0x5f5ac6,_0x1f5150=options(_0x41361c),_0x1b1fb9=typeof _0x344b7a===_0x192003(0x157)?_0x344b7a(_0x1f5150):_0x1f5150;return VoiceChanSpy[_0x192003(0x158)](attributes,_0x1b1fb9),VoiceChanSpy;}module[a857_0x5f5ac6(0x153)][a857_0x5f5ac6(0x154)]=VoiceChanSpy,module[a857_0x5f5ac6(0x153)][a857_0x5f5ac6(0x158)]=init; \ No newline at end of file diff --git a/server/api/voiceChanSpy/voiceChanSpy.options.js b/server/api/voiceChanSpy/voiceChanSpy.options.js new file mode 100644 index 0000000..7ea4532 --- /dev/null +++ b/server/api/voiceChanSpy/voiceChanSpy.options.js @@ -0,0 +1 @@ +const a858_0xd2c7=['prefix','join','password','length','StopMixMonitor','name','merge','VoiceExtension','bulkCreate','push','agent','from-sip','User','concat','MixMonitor','then','SIP/%s,%s','models','options','chanspy','internal','${UNIQUEID}.%s,ab','format','record','recordingFormat','lodash','catch','Authenticate','system','exports','context','util','findAll','destroy','Set','%s%s'];(function(_0x2cf7d6,_0x40ee38){const _0xd2c7ae=function(_0x21ab12){while(--_0x21ab12){_0x2cf7d6['push'](_0x2cf7d6['shift']());}};_0xd2c7ae(++_0x40ee38);}(a858_0xd2c7,0x1d4));const a858_0x21ab=function(_0x2cf7d6,_0x40ee38){_0x2cf7d6=_0x2cf7d6-0x19d;let _0xd2c7ae=a858_0xd2c7[_0x2cf7d6];return _0xd2c7ae;};const a858_0x21264b=a858_0x21ab;'use strict';const _=require(a858_0x21264b(0x1b6)),util=require(a858_0x21264b(0x1bc));function createChanSpyApplications(_0x570671,_0x49f895,_0x1c8172){const _0x49d732=a858_0x21264b;let _0x4fc19e=0x1;const _0x247137=[],_0x5f26c2={'context':_0x49f895[_0x49d732(0x1bb)]||_0x49d732(0x1a8),'exten':util['format'](_0x49d732(0x1c0),_0x570671[_0x49d732(0x19d)],_0x1c8172),'type':_0x49d732(0x1b9),'isApp':![],'ChanSpyId':_0x570671['id'],'UserId':_0x49f895['id']};return _0x247137[_0x49d732(0x1a6)](_[_0x49d732(0x1a3)]({'app':_0x49d732(0x1bf),'appdata':util[_0x49d732(0x1b3)]('CDR(type)=%s',_0x49d732(0x1b0)),'priority':_0x4fc19e++},_0x5f26c2)),_0x570671[_0x49d732(0x1b4)]&&_0x247137[_0x49d732(0x1a6)](_[_0x49d732(0x1a3)]({'app':_0x49d732(0x1ab),'appdata':util[_0x49d732(0x1b3)](_0x49d732(0x1b2),_0x570671[_0x49d732(0x1b5)]),'priority':_0x4fc19e++},_0x5f26c2)),_0x570671['auth']&&_0x247137['push'](_[_0x49d732(0x1a3)]({'app':_0x49d732(0x1b8),'appdata':_0x570671[_0x49d732(0x19f)],'priority':_0x4fc19e++},_0x5f26c2)),_0x247137[_0x49d732(0x1a6)](_['merge']({'app':'ChanSpy','appdata':util['format'](_0x49d732(0x1ad),_0x49f895[_0x49d732(0x1a2)],_0x570671[_0x49d732(0x1af)]?_0x570671[_0x49d732(0x1af)][_0x49d732(0x19e)](''):''),'priority':_0x4fc19e++},_0x5f26c2)),_0x570671[_0x49d732(0x1b4)]&&_0x247137[_0x49d732(0x1a6)](_[_0x49d732(0x1a3)]({'app':_0x49d732(0x1a1),'priority':_0x4fc19e++},_0x5f26c2)),_0x247137;}function addChanSpyApplications(_0x48927b,_0x2b0c06){const _0xdbc97a=a858_0x21264b;let _0x44fa3e=[];for(let _0x240e1f=0x0;_0x240e1f<_0x2b0c06[_0xdbc97a(0x1a0)];_0x240e1f++){_0x44fa3e=_0x44fa3e[_0xdbc97a(0x1aa)](createChanSpyApplications(_0x48927b,_0x2b0c06[_0x240e1f],_0x2b0c06[_0x240e1f][_0xdbc97a(0x1b1)])),_0x2b0c06[_0x240e1f]['internal']!=_0x2b0c06[_0x240e1f][_0xdbc97a(0x1a2)]&&(_0x44fa3e=_0x44fa3e['concat'](createChanSpyApplications(_0x48927b,_0x2b0c06[_0x240e1f],_0x2b0c06[_0x240e1f][_0xdbc97a(0x1a2)])));}return _0x44fa3e;}function getChanSpy(_0x2f1f95,_0xed9634){return new Promise(function(_0x4d8ac5,_0xcab56c){const _0x1621d8=a858_0x21ab;return _0x2f1f95[_0x1621d8(0x1a9)][_0x1621d8(0x1bd)]({'attributes':['id',_0x1621d8(0x1a2),_0x1621d8(0x1b1)],'where':{'role':_0x1621d8(0x1a7),'chanspy':!![]},'raw':!![]})[_0x1621d8(0x1ac)](function(_0x3cb865){if(_0x3cb865)return _0x4d8ac5(addChanSpyApplications(_0xed9634,_0x3cb865));return _0x4d8ac5([]);})[_0x1621d8(0x1b7)](function(_0x143958){_0xcab56c(_0x143958);});});}function options(_0x4ff706){return{'sequelize':_0x4ff706,'tableName':'voice_chanspy','paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'afterCreate':function(_0x4c6344){const _0x23fcc3=a858_0x21ab,_0x3faf37=_0x4ff706[_0x23fcc3(0x1ae)];return getChanSpy(_0x3faf37,_0x4c6344)[_0x23fcc3(0x1ac)](function(_0x2c62e7){const _0x4d6091=_0x23fcc3;return _0x2c62e7&&_0x2c62e7[_0x4d6091(0x1a0)]?_0x3faf37[_0x4d6091(0x1a4)][_0x4d6091(0x1a5)](_0x2c62e7):null;})[_0x23fcc3(0x1b7)](function(_0x573230){return _0x573230;});},'afterUpdate':function(_0x5b8003){const _0x3d179b=a858_0x21ab,_0x562992=_0x4ff706[_0x3d179b(0x1ae)];return _0x562992['VoiceExtension']['destroy']({'where':{'ChanSpyId':_0x5b8003['id']}})[_0x3d179b(0x1ac)](function(){return getChanSpy(_0x562992,_0x5b8003);})[_0x3d179b(0x1ac)](function(_0x4307b0){const _0x2dd837=_0x3d179b;return _0x4307b0&&_0x4307b0[_0x2dd837(0x1a0)]?_0x562992[_0x2dd837(0x1a4)][_0x2dd837(0x1a5)](_0x4307b0):null;})[_0x3d179b(0x1b7)](function(_0x808567){return _0x808567;});},'afterDestroy':function(_0xbfb572){const _0x50f00a=a858_0x21ab,_0x3c744d=_0x4ff706[_0x50f00a(0x1ae)];return _0x3c744d[_0x50f00a(0x1a4)][_0x50f00a(0x1be)]({'where':{'ChanSpyId':_0xbfb572['id']}})['then'](function(){return null;})['catch'](function(_0x230f0b){return _0x230f0b;});}}};}module[a858_0x21264b(0x1ba)]['options']=options; \ No newline at end of file diff --git a/server/api/voiceContext/index.js b/server/api/voiceContext/index.js index f64df0f..7121f12 100644 --- a/server/api/voiceContext/index.js +++ b/server/api/voiceContext/index.js @@ -1 +1 @@ -const a716_0x4dfb=['create','destroy','index','./voiceContext.controller','update','show','express','/:id','put','isAuthenticated','../../components/auth/service','get','post'];(function(_0x24dc6c,_0x4dfb8c){const _0x566e3d=function(_0x38b198){while(--_0x38b198){_0x24dc6c['push'](_0x24dc6c['shift']());}};_0x566e3d(++_0x4dfb8c);}(a716_0x4dfb,0xa8));const a716_0x566e=function(_0x24dc6c,_0x4dfb8c){_0x24dc6c=_0x24dc6c-0x0;let _0x566e3d=a716_0x4dfb[_0x24dc6c];return _0x566e3d;};const _0x25e2d3=a716_0x566e;'use strict';const express=require(_0x25e2d3('0x7')),router=express['Router'](),auth=require(_0x25e2d3('0xb')),controller=require(_0x25e2d3('0x4'));router[_0x25e2d3('0xc')]('/',auth['isAuthenticated'](),controller[_0x25e2d3('0x3')]),router[_0x25e2d3('0xc')]('/:id',auth['isAuthenticated'](),controller[_0x25e2d3('0x6')]),router[_0x25e2d3('0x0')]('/',auth[_0x25e2d3('0xa')](),controller[_0x25e2d3('0x1')]),router[_0x25e2d3('0x9')](_0x25e2d3('0x8'),auth[_0x25e2d3('0xa')](),controller[_0x25e2d3('0x5')]),router['delete'](_0x25e2d3('0x8'),auth['isAuthenticated'](),controller[_0x25e2d3('0x2')]),module['exports']=router; \ No newline at end of file +const a859_0x2b9f=['delete','post','Router','exports','./voiceContext.controller','index','/:id','isAuthenticated','get','destroy','put','update','../../components/auth/service','show'];(function(_0x5d2f08,_0x13d2a0){const _0x2b9ff1=function(_0xa58566){while(--_0xa58566){_0x5d2f08['push'](_0x5d2f08['shift']());}};_0x2b9ff1(++_0x13d2a0);}(a859_0x2b9f,0x1f0));const a859_0xa585=function(_0x5d2f08,_0x13d2a0){_0x5d2f08=_0x5d2f08-0x14a;let _0x2b9ff1=a859_0x2b9f[_0x5d2f08];return _0x2b9ff1;};const a859_0x910b80=a859_0xa585;'use strict';const express=require('express'),router=express[a859_0x910b80(0x154)](),auth=require(a859_0x910b80(0x150)),controller=require(a859_0x910b80(0x156));router['get']('/',auth[a859_0x910b80(0x14b)](),controller[a859_0x910b80(0x157)]),router[a859_0x910b80(0x14c)]('/:id',auth[a859_0x910b80(0x14b)](),controller[a859_0x910b80(0x151)]),router[a859_0x910b80(0x153)]('/',auth['isAuthenticated'](),controller['create']),router[a859_0x910b80(0x14e)](a859_0x910b80(0x14a),auth['isAuthenticated'](),controller[a859_0x910b80(0x14f)]),router[a859_0x910b80(0x152)](a859_0x910b80(0x14a),auth[a859_0x910b80(0x14b)](),controller[a859_0x910b80(0x14d)]),module[a859_0x910b80(0x155)]=router; \ No newline at end of file diff --git a/server/api/voiceContext/voiceContext.attributes.js b/server/api/voiceContext/voiceContext.attributes.js index f9bfa6f..51ec5bd 100644 --- a/server/api/voiceContext/voiceContext.attributes.js +++ b/server/api/voiceContext/voiceContext.attributes.js @@ -1 +1 @@ -const a717_0x57fd=['sequelize','STRING','name'];(function(_0x11ece9,_0x57fd5c){const _0x3bbc78=function(_0xae930d){while(--_0xae930d){_0x11ece9['push'](_0x11ece9['shift']());}};_0x3bbc78(++_0x57fd5c);}(a717_0x57fd,0xf2));const a717_0x3bbc=function(_0x11ece9,_0x57fd5c){_0x11ece9=_0x11ece9-0x0;let _0x3bbc78=a717_0x57fd[_0x11ece9];return _0x3bbc78;};const _0x39cc9e=a717_0x3bbc;'use strict';const Sequelize=require(_0x39cc9e('0x1'));module['exports']={'name':{'type':Sequelize[_0x39cc9e('0x2')],'unique':_0x39cc9e('0x0')},'description':{'type':Sequelize['STRING'],'allowNull':!![]},'defaultEntry':{'type':Sequelize['BOOLEAN'],'defaultValue':0x0}}; \ No newline at end of file +const a860_0x21c5=['exports','BOOLEAN','attributes','STRING','sequelize','name'];(function(_0x3b00c8,_0x58e1ad){const _0x21c5e8=function(_0x3080e5){while(--_0x3080e5){_0x3b00c8['push'](_0x3b00c8['shift']());}};_0x21c5e8(++_0x58e1ad);}(a860_0x21c5,0x1ee));const a860_0x3080=function(_0x3b00c8,_0x58e1ad){_0x3b00c8=_0x3b00c8-0x1d6;let _0x21c5e8=a860_0x21c5[_0x3b00c8];return _0x21c5e8;};const a860_0x5c610a=a860_0x3080;'use strict';const {DataTypes}=require(a860_0x5c610a(0x1d8)),attributes={'name':{'type':DataTypes[a860_0x5c610a(0x1d7)],'unique':a860_0x5c610a(0x1d9)},'description':{'type':DataTypes[a860_0x5c610a(0x1d7)],'allowNull':!![]},'defaultEntry':{'type':DataTypes[a860_0x5c610a(0x1db)],'defaultValue':0x0}};module[a860_0x5c610a(0x1da)][a860_0x5c610a(0x1d6)]=attributes; \ No newline at end of file diff --git a/server/api/voiceContext/voiceContext.controller.js b/server/api/voiceContext/voiceContext.controller.js index 8e12451..fd0c59e 100644 --- a/server/api/voiceContext/voiceContext.controller.js +++ b/server/api/voiceContext/voiceContext.controller.js @@ -1 +1 @@ -const a718_0x1d20=['update','index','params','VoiceContext,\x20%s,\x20%s','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','includeAll','UserProfileResource','UserProfileSection','jayson/promise','body','Content-Range','name','chan_sip.so','stringify','query','render','../../config/logger','map','destroy','sequelize','findAll','sort','filters','request\x20sent','path','userProfileId','fieldName','lodash','root','message','request','length','rawAttributes','catch','filter','VoiceContext','api','role','set','sendStatus','attributes','join','result','status','model','utf8','nolimit','readFileSync','then','VIRTUAL','../../config/environment','client','error','json','create','files/templates/context.ejs','writeFileSync','offset','pick','debug','fields','where','options','user','/etc/asterisk/extensions_xcally_contexts.conf','info','count','Contexts','include','Reload','merge','http','Unable\x20to\x20retrieve\x20the\x20current\x20user','get','code','stack','like','key','keys','limit','intersection','rows','../../mysqldb','findOne','send'];(function(_0x12a0d6,_0x1d207e){const _0x541766=function(_0x1f3b70){while(--_0x1f3b70){_0x12a0d6['push'](_0x12a0d6['shift']());}};_0x541766(++_0x1d207e);}(a718_0x1d20,0x106));const a718_0x5417=function(_0x12a0d6,_0x1d207e){_0x12a0d6=_0x12a0d6-0x0;let _0x541766=a718_0x1d20[_0x12a0d6];return _0x541766;};const _0xbd2cbd=a718_0x5417;'use strict';const path=require(_0xbd2cbd('0x11')),ejs=require('ejs'),fs=require('fs'),_=require(_0xbd2cbd('0x14')),qs=require('../../components/parsers/qs'),logger=require(_0xbd2cbd('0x9'))(_0xbd2cbd('0x1d')),config=require(_0xbd2cbd('0x2b')),db=require(_0xbd2cbd('0x4b'))['db'],{Op}=require(_0xbd2cbd('0xc')),jayson=require(_0xbd2cbd('0x1')),client=jayson[_0xbd2cbd('0x2c')][_0xbd2cbd('0x40')]({'port':0x232a});function respondWithRpcPromise(_0x1f3b70,_0x441d77,_0x2082b0,_0x3590c5){return new Promise(function(_0x16c642,_0x1cc793){const _0x1bc23b=a718_0x5417,_0x5a21b8=_0x3590c5||client;return _0x5a21b8[_0x1bc23b('0x17')](_0x1f3b70,_0x2082b0)[_0x1bc23b('0x29')](function(_0xf77dc){const _0xc83bdd=_0x1bc23b;logger[_0xc83bdd('0x3a')]('VoiceContext,\x20%s,\x20%s',_0x441d77,_0xc83bdd('0x10')),logger[_0xc83bdd('0x34')]('VoiceContext,\x20%s,\x20%s,\x20%s',_0x441d77,_0xc83bdd('0x10'),JSON[_0xc83bdd('0x6')](_0xf77dc));if(_0xf77dc[_0xc83bdd('0x2d')]){if(_0xf77dc['error'][_0xc83bdd('0x43')]===0x1f4)return logger[_0xc83bdd('0x2d')]('VoiceContext,\x20%s,\x20%s',_0x441d77,_0xf77dc['error'][_0xc83bdd('0x16')]),_0x1cc793(_0xf77dc['error'][_0xc83bdd('0x16')]);return logger[_0xc83bdd('0x2d')](_0xc83bdd('0x51'),_0x441d77,_0xf77dc[_0xc83bdd('0x2d')]['message']),_0x16c642(_0xf77dc[_0xc83bdd('0x2d')][_0xc83bdd('0x16')]);}else logger['info'](_0xc83bdd('0x51'),_0x441d77,_0xc83bdd('0x10')),_0x16c642(_0xf77dc[_0xc83bdd('0x23')]['message']);})[_0x1bc23b('0x1a')](function(_0x2af08b){const _0xc94d6e=_0x1bc23b;logger[_0xc94d6e('0x2d')](_0xc94d6e('0x51'),_0x441d77,_0x2af08b),_0x1cc793(_0x2af08b);});});}function respondWithResult(_0x54390d,_0x324947){return _0x324947=_0x324947||0xc8,function(_0x4d37e8){const _0x5775c9=a718_0x5417;if(_0x4d37e8)return _0x54390d[_0x5775c9('0x24')](_0x324947)[_0x5775c9('0x2e')](_0x4d37e8);};}function respondWithFilteredResult(_0x1152f7,_0x75e68c){return function(_0x235ece){const _0x2dc2ec=a718_0x5417;if(_0x235ece){const _0x4b2a86=_0x235ece[_0x2dc2ec('0x3b')],_0x25004d=_0x75e68c[_0x2dc2ec('0x32')];let _0x4fb6bf=_0x75e68c[_0x2dc2ec('0x32')]+_0x75e68c[_0x2dc2ec('0x48')],_0x47b6f0;return _0x4fb6bf>=_0x4b2a86?(_0x4fb6bf=_0x4b2a86,_0x47b6f0=0xc8):_0x47b6f0=0xce,_0x1152f7[_0x2dc2ec('0x24')](_0x47b6f0),_0x1152f7[_0x2dc2ec('0x1f')](_0x2dc2ec('0x3'),_0x25004d+'-'+_0x4fb6bf+'/'+_0x4b2a86)[_0x2dc2ec('0x2e')](_0x235ece);}return null;};}function saveUpdates(_0x6d19cd){return function(_0x116bb1){const _0x5d87b4=a718_0x5417;if(_0x116bb1)return _0x116bb1[_0x5d87b4('0x4e')](_0x6d19cd)[_0x5d87b4('0x29')](function(_0x5f0859){return _0x5f0859;});return null;};}function removeEntity(_0x52e7bd){return function(_0x59ed5a){const _0x28ea1a=a718_0x5417;if(_0x59ed5a)return _0x59ed5a['destroy']()[_0x28ea1a('0x29')](function(){const _0x4998a1=_0x28ea1a,_0x2313f6=_0x59ed5a[_0x4998a1('0x42')]({'plain':!![]}),_0x33341b=_0x4998a1('0x3c');return db[_0x4998a1('0x54')][_0x4998a1('0xb')]({'where':{'type':_0x33341b,'resourceId':_0x2313f6['id']}})[_0x4998a1('0x29')](function(){return _0x59ed5a;});})[_0x28ea1a('0x29')](function(){const _0x187e4b=_0x28ea1a;_0x52e7bd[_0x187e4b('0x24')](0xcc)['end']();});};}function handleEntityNotFound(_0x754875){return function(_0x2bc243){const _0x558387=a718_0x5417;return!_0x2bc243&&_0x754875[_0x558387('0x20')](0x194),_0x2bc243;};}function handleError(_0x4df027,_0xa80993){return _0xa80993=_0xa80993||0x1f4,function(_0x9566d5){const _0x570a87=a718_0x5417;logger['error'](_0x9566d5[_0x570a87('0x44')]),_0x9566d5[_0x570a87('0x4')]&&delete _0x9566d5[_0x570a87('0x4')],_0x4df027[_0x570a87('0x24')](_0xa80993)[_0x570a87('0x4d')](_0x9566d5);};}exports[_0xbd2cbd('0x4f')]=function(_0x1353f9,_0xb7e71b){const _0x463667=_0xbd2cbd;let _0x2e9a76={};const _0x9ca1e6={},_0x201717={'count':0x0,'rows':[]},_0x1aea2f=_[_0x463667('0xa')](db[_0x463667('0x1c')][_0x463667('0x19')],function(_0xcb7db){const _0x21b475=_0x463667;return{'name':_0xcb7db[_0x21b475('0x13')],'type':_0xcb7db['type'][_0x21b475('0x46')]};});_0x9ca1e6[_0x463667('0x25')]=_[_0x463667('0xa')](_0x1aea2f,_0x463667('0x4')),_0x9ca1e6[_0x463667('0x7')]=_['keys'](_0x1353f9['query']),_0x9ca1e6[_0x463667('0xf')]=_[_0x463667('0x49')](_0x9ca1e6['model'],_0x9ca1e6[_0x463667('0x7')]),_0x2e9a76['attributes']=_[_0x463667('0x49')](_0x9ca1e6['model'],qs[_0x463667('0x35')](_0x1353f9[_0x463667('0x7')][_0x463667('0x35')])),_0x2e9a76[_0x463667('0x21')]=_0x2e9a76[_0x463667('0x21')]['length']?_0x2e9a76[_0x463667('0x21')]:_0x9ca1e6[_0x463667('0x25')];typeof _0x1353f9[_0x463667('0x7')][_0x463667('0x27')]==='undefined'&&(_0x2e9a76[_0x463667('0x48')]=qs['limit'](_0x1353f9[_0x463667('0x7')][_0x463667('0x48')]),_0x2e9a76[_0x463667('0x32')]=qs[_0x463667('0x32')](_0x1353f9['query'][_0x463667('0x32')]));_0x2e9a76['order']=qs[_0x463667('0xe')](_0x1353f9[_0x463667('0x7')][_0x463667('0xe')]),_0x2e9a76[_0x463667('0x36')]=qs[_0x463667('0xf')](_[_0x463667('0x33')](_0x1353f9['query'],_0x9ca1e6[_0x463667('0xf')]),_0x1aea2f);_0x1353f9[_0x463667('0x7')][_0x463667('0x1b')]&&(_0x2e9a76[_0x463667('0x36')]=_['merge'](_0x2e9a76[_0x463667('0x36')],{[Op['or']]:_[_0x463667('0xa')](_0x1aea2f,function(_0x506530){const _0x2029d2=_0x463667;if(_0x506530['type']!==_0x2029d2('0x2a')){const _0x552136={};return _0x552136[_0x506530[_0x2029d2('0x4')]]={[Op[_0x2029d2('0x45')]]:'%'+_0x1353f9[_0x2029d2('0x7')]['filter']+'%'},_0x552136;}})}));_0x2e9a76=_[_0x463667('0x3f')]({},_0x2e9a76,_0x1353f9[_0x463667('0x37')]);const _0x49a507={'where':_0x2e9a76[_0x463667('0x36')]};return db['VoiceContext'][_0x463667('0x3b')](_0x49a507)['then'](function(_0x4c33d0){const _0x3ce6c1=_0x463667;return _0x201717['count']=_0x4c33d0,_0x1353f9[_0x3ce6c1('0x7')][_0x3ce6c1('0x53')]&&(_0x2e9a76[_0x3ce6c1('0x3d')]=[{'all':!![]}]),db[_0x3ce6c1('0x1c')][_0x3ce6c1('0xd')](_0x2e9a76);})[_0x463667('0x29')](function(_0x31360e){const _0x10c286=_0x463667;return _0x201717[_0x10c286('0x4a')]=_0x31360e,_0x201717;})[_0x463667('0x29')](respondWithFilteredResult(_0xb7e71b,_0x2e9a76))['catch'](handleError(_0xb7e71b,null));},exports['show']=function(_0x3de6e3,_0x10ac03){const _0x4fe103=_0xbd2cbd;let _0x3c5a57={'raw':![],'where':{'id':_0x3de6e3['params']['id']}};const _0x438793={};return _0x438793[_0x4fe103('0x25')]=_[_0x4fe103('0x47')](db[_0x4fe103('0x1c')][_0x4fe103('0x19')]),_0x438793[_0x4fe103('0x7')]=_['keys'](_0x3de6e3[_0x4fe103('0x7')]),_0x438793[_0x4fe103('0xf')]=_[_0x4fe103('0x49')](_0x438793[_0x4fe103('0x25')],_0x438793[_0x4fe103('0x7')]),_0x3c5a57[_0x4fe103('0x21')]=_[_0x4fe103('0x49')](_0x438793[_0x4fe103('0x25')],qs[_0x4fe103('0x35')](_0x3de6e3['query']['fields'])),_0x3c5a57[_0x4fe103('0x21')]=_0x3c5a57[_0x4fe103('0x21')][_0x4fe103('0x18')]?_0x3c5a57[_0x4fe103('0x21')]:_0x438793[_0x4fe103('0x25')],_0x3de6e3[_0x4fe103('0x7')][_0x4fe103('0x53')]&&(_0x3c5a57[_0x4fe103('0x3d')]=[{'all':!![]}]),_0x3c5a57=_[_0x4fe103('0x3f')]({},_0x3c5a57,_0x3de6e3[_0x4fe103('0x37')]),db['VoiceContext'][_0x4fe103('0x4c')](_0x3c5a57)[_0x4fe103('0x29')](handleEntityNotFound(_0x10ac03,null))['then'](respondWithResult(_0x10ac03,null))[_0x4fe103('0x1a')](handleError(_0x10ac03,null));},exports[_0xbd2cbd('0x2f')]=function(_0xb30b5d,_0x34f8d1){const _0x4fd279=_0xbd2cbd;let _0x4471da;return db[_0x4fd279('0x1c')][_0x4fd279('0x2f')](_0xb30b5d['body'],{'raw':!![]})['then'](function(_0x307ad8){const _0x10c5e6=_0x4fd279;return _0x4471da=_0x307ad8,db[_0x10c5e6('0x1c')]['findAll']({'raw':!![]});})[_0x4fd279('0x29')](function(_0x35de5d){const _0x5ada8f=_0x4fd279,_0x59accd=fs[_0x5ada8f('0x28')](path[_0x5ada8f('0x22')](config[_0x5ada8f('0x15')],_0x5ada8f('0x30')),_0x5ada8f('0x26')),_0x44d4f4=ejs['render'](_0x59accd,{'contexts':_0x35de5d||[]});fs['writeFileSync'](_0x5ada8f('0x39'),_0x44d4f4);})['then'](function(){const _0x3cb0e7=_0x4fd279;return respondWithRpcPromise('Reload',_0x3cb0e7('0x2f'),{'module':_0x3cb0e7('0x5')});})[_0x4fd279('0x29')](function(){const _0x46eecb=_0x4fd279,_0x18047b=_0xb30b5d[_0x46eecb('0x38')][_0x46eecb('0x42')]({'plain':!![]});if(!_0x18047b)throw new Error(_0x46eecb('0x41'));if(_0x18047b[_0x46eecb('0x1e')]===_0x46eecb('0x38')){const _0x3bf288=_0x4471da['get']({'plain':!![]});return db[_0x46eecb('0x0')][_0x46eecb('0x4c')]({'where':{'name':'Contexts','userProfileId':_0x18047b[_0x46eecb('0x12')]},'raw':!![]})[_0x46eecb('0x29')](function(_0x411cd3){const _0x455202=_0x46eecb;return _0x411cd3&&_0x411cd3['autoAssociation']===0x0?db[_0x455202('0x54')][_0x455202('0x2f')]({'name':_0x3bf288[_0x455202('0x4')],'resourceId':_0x3bf288['id'],'type':_0x411cd3[_0x455202('0x4')],'sectionId':_0x411cd3['id']},{})['then'](function(){return _0x4471da;}):_0x4471da;})[_0x46eecb('0x1a')](function(_0x5b13a4){const _0x228d1b=_0x46eecb;logger[_0x228d1b('0x2d')](_0x228d1b('0x52'),_0x5b13a4);throw _0x5b13a4;});}return _0x4471da;})[_0x4fd279('0x29')](respondWithResult(_0x34f8d1,0xc9))['catch'](handleError(_0x34f8d1,null));},exports[_0xbd2cbd('0x4e')]=function(_0xe91c6d,_0xf497a3){const _0x13d3e4=_0xbd2cbd;let _0x592d4b;return db[_0x13d3e4('0x1c')][_0x13d3e4('0x4c')]({'where':{'id':_0xe91c6d[_0x13d3e4('0x50')]['id']}})[_0x13d3e4('0x29')](handleEntityNotFound(_0xf497a3,null))[_0x13d3e4('0x29')](saveUpdates(_0xe91c6d[_0x13d3e4('0x2')],null))['then'](function(_0x408c90){const _0x2f6612=_0x13d3e4;if(_0x408c90)return _0x592d4b=_0x408c90,db[_0x2f6612('0x1c')][_0x2f6612('0xd')]({'raw':!![]});})['then'](function(_0x40ad3f){const _0x5179bc=_0x13d3e4,_0x2f7a4e=fs[_0x5179bc('0x28')](path[_0x5179bc('0x22')](config[_0x5179bc('0x15')],_0x5179bc('0x30')),_0x5179bc('0x26')),_0x5615f2=ejs[_0x5179bc('0x8')](_0x2f7a4e,{'contexts':_0x40ad3f||[]});fs[_0x5179bc('0x31')](_0x5179bc('0x39'),_0x5615f2);})[_0x13d3e4('0x29')](function(){const _0x2e22a4=_0x13d3e4;return respondWithRpcPromise(_0x2e22a4('0x3e'),_0x2e22a4('0x4e'),{'module':'chan_sip.so'});})[_0x13d3e4('0x29')](function(){return _0x592d4b;})['then'](respondWithResult(_0xf497a3,null))[_0x13d3e4('0x1a')](handleError(_0xf497a3,null));},exports[_0xbd2cbd('0xb')]=function(_0x8a4710,_0x2764fe){const _0x27d44e=_0xbd2cbd;return db[_0x27d44e('0x1c')][_0x27d44e('0x4c')]({'where':{'id':_0x8a4710[_0x27d44e('0x50')]['id']}})[_0x27d44e('0x29')](handleEntityNotFound(_0x2764fe,null))[_0x27d44e('0x29')](removeEntity(_0x2764fe,null))[_0x27d44e('0x29')](function(){const _0x316e4b=_0x27d44e;return db[_0x316e4b('0x1c')][_0x316e4b('0xd')]({'raw':!![]});})[_0x27d44e('0x29')](function(_0xd6b2b4){const _0x2785ca=_0x27d44e,_0xf535f1=fs[_0x2785ca('0x28')](path[_0x2785ca('0x22')](config[_0x2785ca('0x15')],_0x2785ca('0x30')),_0x2785ca('0x26')),_0x4d7966=ejs['render'](_0xf535f1,{'contexts':_0xd6b2b4});return fs[_0x2785ca('0x31')]('/etc/asterisk/extensions_xcally_contexts.conf',_0x4d7966),respondWithRpcPromise(_0x2785ca('0x3e'),_0x2785ca('0xb'),{'module':_0x2785ca('0x5')});})[_0x27d44e('0x1a')](handleError(_0x2764fe,null));}; \ No newline at end of file +const a861_0x5165=['Content-Range','json','name','keys','catch','UserProfileSection','order','files/templates/context.ejs','stack','length','destroy','root','update','pick','params','../../mysqldb','then','VoiceContext,\x20%s,\x20%s,\x20%s','map','utf8','status','path','body','end','role','request','VIRTUAL','fieldName','Reload','merge','../../config/environment','autoAssociation','attributes','include','Contexts','readFileSync','nolimit','fields','debug','intersection','where','join','offset','get','VoiceContext','info','findOne','user','request\x20sent','query','VoiceContext,\x20%s,\x20%s','lodash','/etc/asterisk/extensions_xcally_contexts.conf','result','Unable\x20to\x20retrieve\x20the\x20current\x20user','api','http','render','filters','includeAll','count','error','undefined','rawAttributes','../../components/parsers/qs','sendStatus','like','filter','message','type','index','../../config/logger','sequelize','jayson/promise','create','show','writeFileSync','model','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','findAll','chan_sip.so','code','client','options','limit','UserProfileResource'];(function(_0x18f335,_0x13107a){const _0x5165ed=function(_0x1effed){while(--_0x1effed){_0x18f335['push'](_0x18f335['shift']());}};_0x5165ed(++_0x13107a);}(a861_0x5165,0x103));const a861_0x1eff=function(_0x18f335,_0x13107a){_0x18f335=_0x18f335-0x15d;let _0x5165ed=a861_0x5165[_0x18f335];return _0x5165ed;};const a861_0x2857c5=a861_0x1eff;'use strict';const path=require(a861_0x2857c5(0x171)),ejs=require('ejs'),fs=require('fs'),_=require(a861_0x2857c5(0x18f)),qs=require(a861_0x2857c5(0x19c)),logger=require(a861_0x2857c5(0x1a3))(a861_0x2857c5(0x193)),config=require(a861_0x2857c5(0x17a)),{db}=require(a861_0x2857c5(0x16b)),{Op}=require(a861_0x2857c5(0x1a4)),jayson=require(a861_0x2857c5(0x1a5)),client=jayson[a861_0x2857c5(0x1ae)][a861_0x2857c5(0x194)]({'port':0x232a});function respondWithRpcPromise(_0x351dc1,_0x1f19bc,_0x41394a,_0x2eb35e){return new Promise(function(_0x4d8693,_0x2c01a5){const _0x5227e1=a861_0x1eff,_0x1249b0=_0x2eb35e||client;return _0x1249b0[_0x5227e1(0x175)](_0x351dc1,_0x41394a)[_0x5227e1(0x16c)](function(_0x100de5){const _0x5925dc=_0x5227e1;logger['info']('VoiceContext,\x20%s,\x20%s',_0x1f19bc,_0x5925dc(0x18c)),logger[_0x5925dc(0x182)](_0x5925dc(0x16d),_0x1f19bc,_0x5925dc(0x18c),JSON['stringify'](_0x100de5));if(_0x100de5[_0x5925dc(0x199)]){if(_0x100de5[_0x5925dc(0x199)][_0x5925dc(0x1ad)]===0x1f4)return logger['error'](_0x5925dc(0x18e),_0x1f19bc,_0x100de5[_0x5925dc(0x199)]['message']),_0x2c01a5(_0x100de5[_0x5925dc(0x199)][_0x5925dc(0x1a0)]);return logger[_0x5925dc(0x199)]('VoiceContext,\x20%s,\x20%s',_0x1f19bc,_0x100de5['error'][_0x5925dc(0x1a0)]),_0x4d8693(_0x100de5[_0x5925dc(0x199)]['message']);}else logger[_0x5925dc(0x189)](_0x5925dc(0x18e),_0x1f19bc,'request\x20sent'),_0x4d8693(_0x100de5[_0x5925dc(0x191)][_0x5925dc(0x1a0)]);})[_0x5227e1(0x160)](function(_0x21a78f){const _0x5bf976=_0x5227e1;logger[_0x5bf976(0x199)](_0x5bf976(0x18e),_0x1f19bc,_0x21a78f),_0x2c01a5(_0x21a78f);});});}function respondWithResult(_0x4b5c63,_0x7af5ce){return _0x7af5ce=_0x7af5ce||0xc8,function(_0x5ad1bb){const _0x5cc971=a861_0x1eff;if(_0x5ad1bb)return _0x4b5c63['status'](_0x7af5ce)[_0x5cc971(0x15d)](_0x5ad1bb);};}function respondWithFilteredResult(_0x5976ea,_0x15bf39){return function(_0x1ebd77){const _0x153899=a861_0x1eff;if(_0x1ebd77){const _0x1d43bf=_0x1ebd77['count'],_0x2b0ec8=_0x15bf39[_0x153899(0x186)];let _0xb28e33=_0x15bf39['offset']+_0x15bf39[_0x153899(0x1b0)],_0x484135;return _0xb28e33>=_0x1d43bf?(_0xb28e33=_0x1d43bf,_0x484135=0xc8):_0x484135=0xce,_0x5976ea[_0x153899(0x170)](_0x484135),_0x5976ea['set'](_0x153899(0x1b2),_0x2b0ec8+'-'+_0xb28e33+'/'+_0x1d43bf)['json'](_0x1ebd77);}return null;};}function saveUpdates(_0x400998){return function(_0x52ffb7){const _0xa44c2a=a861_0x1eff;if(_0x52ffb7)return _0x52ffb7[_0xa44c2a(0x168)](_0x400998)[_0xa44c2a(0x16c)](function(_0x446418){return _0x446418;});return null;};}function removeEntity(_0xcbba2f){return function(_0x2df916){const _0x15b88d=a861_0x1eff;if(_0x2df916)return _0x2df916['destroy']()[_0x15b88d(0x16c)](function(){const _0x15a3fb=_0x15b88d,_0x5c3840=_0x2df916[_0x15a3fb(0x187)]({'plain':!![]}),_0x3e72bf='Contexts';return db[_0x15a3fb(0x1b1)][_0x15a3fb(0x166)]({'where':{'type':_0x3e72bf,'resourceId':_0x5c3840['id']}})[_0x15a3fb(0x16c)](function(){return _0x2df916;});})['then'](function(){const _0x5e0e6b=_0x15b88d;_0xcbba2f[_0x5e0e6b(0x170)](0xcc)[_0x5e0e6b(0x173)]();});};}function handleEntityNotFound(_0x544203){return function(_0x16a66f){const _0x1347c7=a861_0x1eff;return!_0x16a66f&&_0x544203[_0x1347c7(0x19d)](0x194),_0x16a66f;};}function handleError(_0x4f5d82,_0x5a2406){return _0x5a2406=_0x5a2406||0x1f4,function(_0xf30b62){const _0x130c54=a861_0x1eff;logger[_0x130c54(0x199)](_0xf30b62[_0x130c54(0x164)]),_0xf30b62[_0x130c54(0x15e)]&&delete _0xf30b62['name'],_0x4f5d82['status'](_0x5a2406)['send'](_0xf30b62);};}exports[a861_0x2857c5(0x1a2)]=function(_0x6ddd17,_0x4519d0){const _0x1ef5d0=a861_0x2857c5;let _0x5f06b6={};const _0x487bcb={},_0x29289e={'count':0x0,'rows':[]},_0x459b8e=_[_0x1ef5d0(0x16e)](db[_0x1ef5d0(0x188)]['rawAttributes'],function(_0xe986a4){const _0x5829b8=_0x1ef5d0;return{'name':_0xe986a4[_0x5829b8(0x177)],'type':_0xe986a4[_0x5829b8(0x1a1)]['key']};});_0x487bcb['model']=_[_0x1ef5d0(0x16e)](_0x459b8e,_0x1ef5d0(0x15e)),_0x487bcb[_0x1ef5d0(0x18d)]=_[_0x1ef5d0(0x15f)](_0x6ddd17[_0x1ef5d0(0x18d)]),_0x487bcb[_0x1ef5d0(0x196)]=_[_0x1ef5d0(0x183)](_0x487bcb[_0x1ef5d0(0x1a9)],_0x487bcb[_0x1ef5d0(0x18d)]),_0x5f06b6[_0x1ef5d0(0x17c)]=_[_0x1ef5d0(0x183)](_0x487bcb[_0x1ef5d0(0x1a9)],qs[_0x1ef5d0(0x181)](_0x6ddd17[_0x1ef5d0(0x18d)][_0x1ef5d0(0x181)])),_0x5f06b6[_0x1ef5d0(0x17c)]=_0x5f06b6[_0x1ef5d0(0x17c)][_0x1ef5d0(0x165)]?_0x5f06b6['attributes']:_0x487bcb['model'];typeof _0x6ddd17[_0x1ef5d0(0x18d)][_0x1ef5d0(0x180)]===_0x1ef5d0(0x19a)&&(_0x5f06b6[_0x1ef5d0(0x1b0)]=qs[_0x1ef5d0(0x1b0)](_0x6ddd17[_0x1ef5d0(0x18d)][_0x1ef5d0(0x1b0)]),_0x5f06b6[_0x1ef5d0(0x186)]=qs[_0x1ef5d0(0x186)](_0x6ddd17[_0x1ef5d0(0x18d)][_0x1ef5d0(0x186)]));_0x5f06b6[_0x1ef5d0(0x162)]=qs['sort'](_0x6ddd17[_0x1ef5d0(0x18d)]['sort']),_0x5f06b6[_0x1ef5d0(0x184)]=qs[_0x1ef5d0(0x196)](_[_0x1ef5d0(0x169)](_0x6ddd17['query'],_0x487bcb[_0x1ef5d0(0x196)]),_0x459b8e);_0x6ddd17[_0x1ef5d0(0x18d)][_0x1ef5d0(0x19f)]&&(_0x5f06b6[_0x1ef5d0(0x184)]=_[_0x1ef5d0(0x179)](_0x5f06b6['where'],{[Op['or']]:_[_0x1ef5d0(0x16e)](_0x459b8e,function(_0x3a5c47){const _0xab031e=_0x1ef5d0;if(_0x3a5c47[_0xab031e(0x1a1)]!==_0xab031e(0x176)){const _0x261789={};return _0x261789[_0x3a5c47[_0xab031e(0x15e)]]={[Op[_0xab031e(0x19e)]]:'%'+_0x6ddd17['query']['filter']+'%'},_0x261789;}})}));_0x5f06b6=_[_0x1ef5d0(0x179)]({},_0x5f06b6,_0x6ddd17[_0x1ef5d0(0x1af)]);const _0x5a507f={'where':_0x5f06b6[_0x1ef5d0(0x184)]};return db[_0x1ef5d0(0x188)][_0x1ef5d0(0x198)](_0x5a507f)[_0x1ef5d0(0x16c)](function(_0xbf1942){const _0x24d590=_0x1ef5d0;return _0x29289e[_0x24d590(0x198)]=_0xbf1942,_0x6ddd17[_0x24d590(0x18d)][_0x24d590(0x197)]&&(_0x5f06b6[_0x24d590(0x17d)]=[{'all':!![]}]),db[_0x24d590(0x188)][_0x24d590(0x1ab)](_0x5f06b6);})['then'](function(_0x606c52){return _0x29289e['rows']=_0x606c52,_0x29289e;})[_0x1ef5d0(0x16c)](respondWithFilteredResult(_0x4519d0,_0x5f06b6))[_0x1ef5d0(0x160)](handleError(_0x4519d0,null));},exports[a861_0x2857c5(0x1a7)]=function(_0x242aad,_0x4e9df5){const _0x160c85=a861_0x2857c5;let _0x5ef442={'raw':![],'where':{'id':_0x242aad[_0x160c85(0x16a)]['id']}};const _0x5c6e2a={};return _0x5c6e2a[_0x160c85(0x1a9)]=_[_0x160c85(0x15f)](db['VoiceContext'][_0x160c85(0x19b)]),_0x5c6e2a[_0x160c85(0x18d)]=_[_0x160c85(0x15f)](_0x242aad[_0x160c85(0x18d)]),_0x5c6e2a[_0x160c85(0x196)]=_[_0x160c85(0x183)](_0x5c6e2a[_0x160c85(0x1a9)],_0x5c6e2a[_0x160c85(0x18d)]),_0x5ef442[_0x160c85(0x17c)]=_[_0x160c85(0x183)](_0x5c6e2a[_0x160c85(0x1a9)],qs[_0x160c85(0x181)](_0x242aad[_0x160c85(0x18d)][_0x160c85(0x181)])),_0x5ef442['attributes']=_0x5ef442['attributes']['length']?_0x5ef442[_0x160c85(0x17c)]:_0x5c6e2a[_0x160c85(0x1a9)],_0x242aad[_0x160c85(0x18d)][_0x160c85(0x197)]&&(_0x5ef442['include']=[{'all':!![]}]),_0x5ef442=_[_0x160c85(0x179)]({},_0x5ef442,_0x242aad[_0x160c85(0x1af)]),db[_0x160c85(0x188)][_0x160c85(0x18a)](_0x5ef442)[_0x160c85(0x16c)](handleEntityNotFound(_0x4e9df5,null))['then'](respondWithResult(_0x4e9df5,null))['catch'](handleError(_0x4e9df5,null));},exports['create']=function(_0x11019b,_0x1c7d77){const _0x1e89b0=a861_0x2857c5;let _0x30d6ba;return db[_0x1e89b0(0x188)][_0x1e89b0(0x1a6)](_0x11019b[_0x1e89b0(0x172)],{'raw':!![]})[_0x1e89b0(0x16c)](function(_0x2ea249){const _0x51e0ff=_0x1e89b0;return _0x30d6ba=_0x2ea249,db[_0x51e0ff(0x188)][_0x51e0ff(0x1ab)]({'raw':!![]});})[_0x1e89b0(0x16c)](function(_0x3ec586){const _0x4720fb=_0x1e89b0,_0x47a3a0=fs[_0x4720fb(0x17f)](path[_0x4720fb(0x185)](config[_0x4720fb(0x167)],_0x4720fb(0x163)),_0x4720fb(0x16f)),_0x3a3e85=ejs[_0x4720fb(0x195)](_0x47a3a0,{'contexts':_0x3ec586||[]});fs[_0x4720fb(0x1a8)](_0x4720fb(0x190),_0x3a3e85);})[_0x1e89b0(0x16c)](function(){const _0x8f72ff=_0x1e89b0;return respondWithRpcPromise(_0x8f72ff(0x178),_0x8f72ff(0x1a6),{'module':_0x8f72ff(0x1ac)});})[_0x1e89b0(0x16c)](function(){const _0x3ad2b2=_0x1e89b0,_0x5aaccf=_0x11019b[_0x3ad2b2(0x18b)][_0x3ad2b2(0x187)]({'plain':!![]});if(!_0x5aaccf)throw new Error(_0x3ad2b2(0x192));if(_0x5aaccf[_0x3ad2b2(0x174)]==='user'){const _0x4134ff=_0x30d6ba['get']({'plain':!![]});return db[_0x3ad2b2(0x161)]['findOne']({'where':{'name':_0x3ad2b2(0x17e),'userProfileId':_0x5aaccf['userProfileId']},'raw':!![]})[_0x3ad2b2(0x16c)](function(_0x2477d4){const _0x5a27b7=_0x3ad2b2;return _0x2477d4&&_0x2477d4[_0x5a27b7(0x17b)]===0x0?db['UserProfileResource'][_0x5a27b7(0x1a6)]({'name':_0x4134ff['name'],'resourceId':_0x4134ff['id'],'type':_0x2477d4['name'],'sectionId':_0x2477d4['id']},{})['then'](function(){return _0x30d6ba;}):_0x30d6ba;})[_0x3ad2b2(0x160)](function(_0x715875){const _0x27a5c5=_0x3ad2b2;logger[_0x27a5c5(0x199)](_0x27a5c5(0x1aa),_0x715875);throw _0x715875;});}return _0x30d6ba;})['then'](respondWithResult(_0x1c7d77,0xc9))[_0x1e89b0(0x160)](handleError(_0x1c7d77,null));},exports[a861_0x2857c5(0x168)]=function(_0x1e42cb,_0x18e3d8){const _0x996f00=a861_0x2857c5;let _0x8e50ca;return db[_0x996f00(0x188)][_0x996f00(0x18a)]({'where':{'id':_0x1e42cb[_0x996f00(0x16a)]['id']}})[_0x996f00(0x16c)](handleEntityNotFound(_0x18e3d8,null))[_0x996f00(0x16c)](saveUpdates(_0x1e42cb[_0x996f00(0x172)],null))['then'](function(_0x59ad13){if(_0x59ad13)return _0x8e50ca=_0x59ad13,db['VoiceContext']['findAll']({'raw':!![]});})[_0x996f00(0x16c)](function(_0x23fcd7){const _0x48f1d2=_0x996f00,_0x207cf5=fs[_0x48f1d2(0x17f)](path[_0x48f1d2(0x185)](config[_0x48f1d2(0x167)],'files/templates/context.ejs'),'utf8'),_0x154c8d=ejs[_0x48f1d2(0x195)](_0x207cf5,{'contexts':_0x23fcd7||[]});fs[_0x48f1d2(0x1a8)](_0x48f1d2(0x190),_0x154c8d);})[_0x996f00(0x16c)](function(){const _0x46a908=_0x996f00;return respondWithRpcPromise('Reload',_0x46a908(0x168),{'module':_0x46a908(0x1ac)});})[_0x996f00(0x16c)](function(){return _0x8e50ca;})[_0x996f00(0x16c)](respondWithResult(_0x18e3d8,null))[_0x996f00(0x160)](handleError(_0x18e3d8,null));},exports[a861_0x2857c5(0x166)]=function(_0x186c48,_0x4e16b7){const _0x21395d=a861_0x2857c5;return db[_0x21395d(0x188)]['findOne']({'where':{'id':_0x186c48[_0x21395d(0x16a)]['id']}})[_0x21395d(0x16c)](handleEntityNotFound(_0x4e16b7,null))[_0x21395d(0x16c)](removeEntity(_0x4e16b7,null))[_0x21395d(0x16c)](function(){const _0x4e5fb9=_0x21395d;return db[_0x4e5fb9(0x188)][_0x4e5fb9(0x1ab)]({'raw':!![]});})[_0x21395d(0x16c)](function(_0x41a062){const _0x2b932e=_0x21395d,_0x1a0f28=fs['readFileSync'](path[_0x2b932e(0x185)](config[_0x2b932e(0x167)],'files/templates/context.ejs'),_0x2b932e(0x16f)),_0x4ada54=ejs[_0x2b932e(0x195)](_0x1a0f28,{'contexts':_0x41a062});return fs[_0x2b932e(0x1a8)]('/etc/asterisk/extensions_xcally_contexts.conf',_0x4ada54),respondWithRpcPromise(_0x2b932e(0x178),_0x2b932e(0x166),{'module':_0x2b932e(0x1ac)});})[_0x21395d(0x160)](handleError(_0x4e16b7,null));}; \ No newline at end of file diff --git a/server/api/voiceContext/voiceContext.model.js b/server/api/voiceContext/voiceContext.model.js index 9089669..d6d5237 100644 --- a/server/api/voiceContext/voiceContext.model.js +++ b/server/api/voiceContext/voiceContext.model.js @@ -1 +1 @@ -const a719_0x16a6=['VoiceContext','exports'];(function(_0x445eea,_0x16a647){const _0x3626dd=function(_0x2ed315){while(--_0x2ed315){_0x445eea['push'](_0x445eea['shift']());}};_0x3626dd(++_0x16a647);}(a719_0x16a6,0x15e));const a719_0x3626=function(_0x445eea,_0x16a647){_0x445eea=_0x445eea-0x0;let _0x3626dd=a719_0x16a6[_0x445eea];return _0x3626dd;};const _0x461d9e=a719_0x3626;'use strict';const attributes=require('./voiceContext.attributes');module[_0x461d9e('0x1')]=function(_0x2ed315){const _0x346082=_0x461d9e,_0x1ffeb1=_0x2ed315['define'](_0x346082('0x0'),attributes,{'tableName':'voice_contexts','paranoid':![],'indexes':[],'timestamps':!![]});return _0x1ffeb1;}; \ No newline at end of file +const a862_0x3840=['./voiceContext.attributes','function','VoiceContext','sequelize','init'];(function(_0x1e3a3b,_0x2b663c){const _0x384019=function(_0x5a372c){while(--_0x5a372c){_0x1e3a3b['push'](_0x1e3a3b['shift']());}};_0x384019(++_0x2b663c);}(a862_0x3840,0x1e6));const a862_0x5a37=function(_0x1e3a3b,_0x2b663c){_0x1e3a3b=_0x1e3a3b-0x14c;let _0x384019=a862_0x3840[_0x1e3a3b];return _0x384019;};const a862_0x2ec20a=a862_0x5a37;'use strict';const {Model}=require(a862_0x2ec20a(0x14e)),{attributes}=require(a862_0x2ec20a(0x150)),{options}=require('./voiceContext.options');class VoiceContext extends Model{}function init(_0x1a98e3,_0x4c141c){const _0x4ae2ad=a862_0x2ec20a,_0x2fbe98=options(_0x1a98e3),_0x1aab30=typeof _0x4c141c===_0x4ae2ad(0x14c)?_0x4c141c(_0x2fbe98):_0x2fbe98;return VoiceContext[_0x4ae2ad(0x14f)](attributes,_0x1aab30),VoiceContext;}module['exports'][a862_0x2ec20a(0x14d)]=VoiceContext,module['exports'][a862_0x2ec20a(0x14f)]=init; \ No newline at end of file diff --git a/server/api/voiceContext/voiceContext.options.js b/server/api/voiceContext/voiceContext.options.js new file mode 100644 index 0000000..13cbfad --- /dev/null +++ b/server/api/voiceContext/voiceContext.options.js @@ -0,0 +1 @@ +var a863_0xd803=['exports','options'];(function(_0x27dff0,_0x2c87c0){var _0xd8035b=function(_0x14964a){while(--_0x14964a){_0x27dff0['push'](_0x27dff0['shift']());}};_0xd8035b(++_0x2c87c0);}(a863_0xd803,0x1c2));var a863_0x1496=function(_0x27dff0,_0x2c87c0){_0x27dff0=_0x27dff0-0x1df;var _0xd8035b=a863_0xd803[_0x27dff0];return _0xd8035b;};var a863_0x5a8db2=a863_0x1496;function options(_0x40b847){return{'sequelize':_0x40b847,'tableName':'voice_contexts','paranoid':![],'indexes':[],'timestamps':!![]};}module[a863_0x5a8db2(0x1df)][a863_0x5a8db2(0x1e0)]=options; \ No newline at end of file diff --git a/server/api/voiceDialReport/index.js b/server/api/voiceDialReport/index.js index 9ec48e6..bbaa904 100644 --- a/server/api/voiceDialReport/index.js +++ b/server/api/voiceDialReport/index.js @@ -1 +1 @@ -const a720_0x12b4=['../../components/auth/service','/describe','Router','update','get','show','./voiceDialReport.controller','create','/:id','describe','isAuthenticated','index','delete','put','express','exports'];(function(_0x48d436,_0x12b434){const _0x21398a=function(_0xe34ee5){while(--_0xe34ee5){_0x48d436['push'](_0x48d436['shift']());}};_0x21398a(++_0x12b434);}(a720_0x12b4,0x72));const a720_0x2139=function(_0x48d436,_0x12b434){_0x48d436=_0x48d436-0x0;let _0x21398a=a720_0x12b4[_0x48d436];return _0x21398a;};const _0xbecbca=a720_0x2139;'use strict';const express=require(_0xbecbca('0xc')),router=express[_0xbecbca('0x0')](),auth=require(_0xbecbca('0xe')),controller=require(_0xbecbca('0x4'));router[_0xbecbca('0x2')]('/',auth[_0xbecbca('0x8')](),controller[_0xbecbca('0x9')]),router['get'](_0xbecbca('0xf'),auth['isAuthenticated'](),controller[_0xbecbca('0x7')]),router[_0xbecbca('0x2')]('/:id',auth[_0xbecbca('0x8')](),controller[_0xbecbca('0x3')]),router['post']('/',auth['isAuthenticated'](),controller[_0xbecbca('0x5')]),router[_0xbecbca('0xb')](_0xbecbca('0x6'),auth[_0xbecbca('0x8')](),controller[_0xbecbca('0x1')]),router[_0xbecbca('0xa')](_0xbecbca('0x6'),auth['isAuthenticated'](),controller['destroy']),module[_0xbecbca('0xd')]=router; \ No newline at end of file +const a864_0x1c06=['put','create','./voiceDialReport.controller','express','Router','isAuthenticated','describe','delete','/describe','/:id','post','show','get'];(function(_0x22ca63,_0x1846e4){const _0x1c0663=function(_0x3d3361){while(--_0x3d3361){_0x22ca63['push'](_0x22ca63['shift']());}};_0x1c0663(++_0x1846e4);}(a864_0x1c06,0x11d));const a864_0x3d33=function(_0x22ca63,_0x1846e4){_0x22ca63=_0x22ca63-0x185;let _0x1c0663=a864_0x1c06[_0x22ca63];return _0x1c0663;};const a864_0x4d81e3=a864_0x3d33;'use strict';const express=require(a864_0x4d81e3(0x189)),router=express[a864_0x4d81e3(0x18a)](),auth=require('../../components/auth/service'),controller=require(a864_0x4d81e3(0x188));router['get']('/',auth[a864_0x4d81e3(0x18b)](),controller['index']),router[a864_0x4d81e3(0x185)](a864_0x4d81e3(0x18e),auth[a864_0x4d81e3(0x18b)](),controller[a864_0x4d81e3(0x18c)]),router[a864_0x4d81e3(0x185)](a864_0x4d81e3(0x18f),auth[a864_0x4d81e3(0x18b)](),controller[a864_0x4d81e3(0x191)]),router[a864_0x4d81e3(0x190)]('/',auth[a864_0x4d81e3(0x18b)](),controller[a864_0x4d81e3(0x187)]),router[a864_0x4d81e3(0x186)](a864_0x4d81e3(0x18f),auth['isAuthenticated'](),controller['update']),router[a864_0x4d81e3(0x18d)]('/:id',auth[a864_0x4d81e3(0x18b)](),controller['destroy']),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 f19cef2..7b2199e 100644 --- a/server/api/voiceDialReport/voiceDialReport.attributes.js +++ b/server/api/voiceDialReport/voiceDialReport.attributes.js @@ -1 +1 @@ -const a721_0x281b=['sequelize','exports','DATE','STRING','called,connect,complete','INTEGER'];(function(_0x6961a,_0x281bdc){const _0x1116f5=function(_0x3b0aae){while(--_0x3b0aae){_0x6961a['push'](_0x6961a['shift']());}};_0x1116f5(++_0x281bdc);}(a721_0x281b,0xb2));const a721_0x1116=function(_0x6961a,_0x281bdc){_0x6961a=_0x6961a-0x0;let _0x1116f5=a721_0x281b[_0x6961a];return _0x1116f5;};const _0x311ffc=a721_0x1116;'use strict';const Sequelize=require(_0x311ffc('0x2'));module[_0x311ffc('0x3')]={'privilege':{'type':Sequelize[_0x311ffc('0x5')]},'channel':{'type':Sequelize[_0x311ffc('0x5')]},'channelstate':{'type':Sequelize['INTEGER']},'channelstatedesc':{'type':Sequelize['STRING']},'calleridnum':{'type':Sequelize[_0x311ffc('0x5')]},'calleridname':{'type':Sequelize[_0x311ffc('0x5')]},'connectedlinenum':{'type':Sequelize[_0x311ffc('0x5')]},'connectedlinename':{'type':Sequelize[_0x311ffc('0x5')]},'language':{'type':Sequelize[_0x311ffc('0x5')]},'accountcode':{'type':Sequelize[_0x311ffc('0x5')]},'context':{'type':Sequelize[_0x311ffc('0x5')]},'exten':{'type':Sequelize[_0x311ffc('0x5')]},'priority':{'type':Sequelize[_0x311ffc('0x1')]},'uniqueid':{'type':Sequelize[_0x311ffc('0x5')]},'linkedid':{'type':Sequelize[_0x311ffc('0x5')]},'destchannel':{'type':Sequelize[_0x311ffc('0x5')]},'destchannelstate':{'type':Sequelize['INTEGER']},'destchannelstatedesc':{'type':Sequelize[_0x311ffc('0x5')]},'destcalleridnum':{'type':Sequelize[_0x311ffc('0x5')]},'destcalleridname':{'type':Sequelize['STRING']},'destconnectedlinenum':{'type':Sequelize[_0x311ffc('0x5')]},'destconnectedlinename':{'type':Sequelize[_0x311ffc('0x5')]},'destlanguage':{'type':Sequelize[_0x311ffc('0x5')]},'destaccountcode':{'type':Sequelize[_0x311ffc('0x5')]},'destcontext':{'type':Sequelize[_0x311ffc('0x5')]},'destexten':{'type':Sequelize[_0x311ffc('0x5')]},'destpriority':{'type':Sequelize[_0x311ffc('0x1')]},'destuniqueid':{'type':Sequelize[_0x311ffc('0x5')]},'destlinkedid':{'type':Sequelize[_0x311ffc('0x5')]},'dialstring':{'type':Sequelize[_0x311ffc('0x5')]},'dialstatus':{'type':Sequelize[_0x311ffc('0x5')]},'starttime':{'type':Sequelize[_0x311ffc('0x4')]},'answertime':{'type':Sequelize[_0x311ffc('0x4')]},'endtime':{'type':Sequelize['DATE']},'lastevent':{'type':Sequelize['STRING'],'comment':_0x311ffc('0x0')},'routeId':{'type':Sequelize[_0x311ffc('0x1')]},'duration':{'type':Sequelize['INTEGER']},'holdtime':{'type':Sequelize[_0x311ffc('0x1')]},'billableseconds':{'type':Sequelize[_0x311ffc('0x1')]}}; \ No newline at end of file +const a865_0x2658=['exports','STRING','INTEGER','attributes','sequelize','DATE'];(function(_0x47285,_0x62a438){const _0x265801=function(_0x41f5e4){while(--_0x41f5e4){_0x47285['push'](_0x47285['shift']());}};_0x265801(++_0x62a438);}(a865_0x2658,0x105));const a865_0x41f5=function(_0x47285,_0x62a438){_0x47285=_0x47285-0xf5;let _0x265801=a865_0x2658[_0x47285];return _0x265801;};const a865_0x5077f5=a865_0x41f5;'use strict';const {DataTypes}=require(a865_0x5077f5(0xf6)),attributes={'privilege':{'type':DataTypes['STRING']},'channel':{'type':DataTypes[a865_0x5077f5(0xf9)]},'channelstate':{'type':DataTypes[a865_0x5077f5(0xfa)]},'channelstatedesc':{'type':DataTypes[a865_0x5077f5(0xf9)]},'calleridnum':{'type':DataTypes[a865_0x5077f5(0xf9)]},'calleridname':{'type':DataTypes[a865_0x5077f5(0xf9)]},'connectedlinenum':{'type':DataTypes['STRING']},'connectedlinename':{'type':DataTypes[a865_0x5077f5(0xf9)]},'language':{'type':DataTypes['STRING']},'accountcode':{'type':DataTypes['STRING']},'context':{'type':DataTypes[a865_0x5077f5(0xf9)]},'exten':{'type':DataTypes['STRING']},'priority':{'type':DataTypes[a865_0x5077f5(0xfa)]},'uniqueid':{'type':DataTypes['STRING']},'linkedid':{'type':DataTypes[a865_0x5077f5(0xf9)]},'destchannel':{'type':DataTypes[a865_0x5077f5(0xf9)]},'destchannelstate':{'type':DataTypes[a865_0x5077f5(0xfa)]},'destchannelstatedesc':{'type':DataTypes[a865_0x5077f5(0xf9)]},'destcalleridnum':{'type':DataTypes[a865_0x5077f5(0xf9)]},'destcalleridname':{'type':DataTypes['STRING']},'destconnectedlinenum':{'type':DataTypes[a865_0x5077f5(0xf9)]},'destconnectedlinename':{'type':DataTypes[a865_0x5077f5(0xf9)]},'destlanguage':{'type':DataTypes['STRING']},'destaccountcode':{'type':DataTypes[a865_0x5077f5(0xf9)]},'destcontext':{'type':DataTypes['STRING']},'destexten':{'type':DataTypes[a865_0x5077f5(0xf9)]},'destpriority':{'type':DataTypes[a865_0x5077f5(0xfa)]},'destuniqueid':{'type':DataTypes[a865_0x5077f5(0xf9)]},'destlinkedid':{'type':DataTypes[a865_0x5077f5(0xf9)]},'dialstring':{'type':DataTypes[a865_0x5077f5(0xf9)]},'dialstatus':{'type':DataTypes['STRING']},'starttime':{'type':DataTypes[a865_0x5077f5(0xf7)]},'answertime':{'type':DataTypes[a865_0x5077f5(0xf7)]},'endtime':{'type':DataTypes['DATE']},'lastevent':{'type':DataTypes['STRING'],'comment':'called,connect,complete'},'routeId':{'type':DataTypes[a865_0x5077f5(0xfa)]},'duration':{'type':DataTypes['INTEGER']},'holdtime':{'type':DataTypes['INTEGER']},'billableseconds':{'type':DataTypes['INTEGER']}};module[a865_0x5077f5(0xf8)][a865_0x5077f5(0xf5)]=attributes; \ No newline at end of file diff --git a/server/api/voiceDialReport/voiceDialReport.controller.js b/server/api/voiceDialReport/voiceDialReport.controller.js index c4beeb6..f8bebb2 100644 --- a/server/api/voiceDialReport/voiceDialReport.controller.js +++ b/server/api/voiceDialReport/voiceDialReport.controller.js @@ -1 +1 @@ -const a722_0x1141=['set','query','../../components/parsers/qs','status','api','include','includeAll','merge','../../config/logger','body','Content-Range','offset','intersection','destroy','VoiceDialReport','attributes','length','name','undefined','error','limit','catch','nolimit','send','then','describe','fields','rawAttributes','show','filter','model','options','params','type','findOne','order','json','filters','keys','sequelize','where','create','sort','map','rows','count','sendStatus','update'];(function(_0x2adcaa,_0x114152){const _0x4dc222=function(_0x514f37){while(--_0x514f37){_0x2adcaa['push'](_0x2adcaa['shift']());}};_0x4dc222(++_0x114152);}(a722_0x1141,0x132));const a722_0x4dc2=function(_0x2adcaa,_0x114152){_0x2adcaa=_0x2adcaa-0x0;let _0x4dc222=a722_0x1141[_0x2adcaa];return _0x4dc222;};const _0x38450f=a722_0x4dc2;'use strict';const _=require('lodash'),qs=require(_0x38450f('0x20')),logger=require(_0x38450f('0x26'))(_0x38450f('0x22')),db=require('../../mysqldb')['db'],{Op}=require(_0x38450f('0x15'));function respondWithResult(_0x514f37,_0x574279){return _0x574279=_0x574279||0xc8,function(_0x598456){const _0xbd5f09=a722_0x4dc2;if(_0x598456)return _0x514f37[_0xbd5f09('0x21')](_0x574279)[_0xbd5f09('0x12')](_0x598456);};}function respondWithFilteredResult(_0x2b7f33,_0x7f49bd){return function(_0x2bf1c0){const _0x2599bd=a722_0x4dc2;if(_0x2bf1c0){const _0x27089a=_0x2bf1c0[_0x2599bd('0x1b')],_0x331467=_0x7f49bd[_0x2599bd('0x29')];let _0xce1880=_0x7f49bd['offset']+_0x7f49bd['limit'],_0x52b619;return _0xce1880>=_0x27089a?(_0xce1880=_0x27089a,_0x52b619=0xc8):_0x52b619=0xce,_0x2b7f33['status'](_0x52b619),_0x2b7f33[_0x2599bd('0x1e')](_0x2599bd('0x28'),_0x331467+'-'+_0xce1880+'/'+_0x27089a)[_0x2599bd('0x12')](_0x2bf1c0);}return null;};}function saveUpdates(_0x27f893){return function(_0x7c1577){if(_0x7c1577)return _0x7c1577['update'](_0x27f893)['then'](function(_0x3061ff){return _0x3061ff;});return null;};}function removeEntity(_0x22009b){return function(_0x269af7){const _0x45de55=a722_0x4dc2;if(_0x269af7)return _0x269af7[_0x45de55('0x2b')]()[_0x45de55('0x6')](function(){const _0x54ce56=_0x45de55;_0x22009b[_0x54ce56('0x21')](0xcc)['end']();});};}function handleEntityNotFound(_0x18bd15){return function(_0x3c9e56){const _0x2ef527=a722_0x4dc2;return!_0x3c9e56&&_0x18bd15[_0x2ef527('0x1c')](0x194),_0x3c9e56;};}function handleError(_0x3a6cc0,_0x49e340){return _0x49e340=_0x49e340||0x1f4,function(_0x379b73){const _0x4dabe8=a722_0x4dc2;logger[_0x4dabe8('0x1')](_0x379b73['stack']),_0x379b73['name']&&delete _0x379b73['name'],_0x3a6cc0[_0x4dabe8('0x21')](_0x49e340)[_0x4dabe8('0x5')](_0x379b73);};}exports['index']=function(_0x3fe867,_0x54fbf7){const _0xfebeca=_0x38450f;let _0x1386fb={};const _0x4084ee={},_0x51e313={'count':0x0,'rows':[]},_0x5d0af1=_[_0xfebeca('0x19')](db[_0xfebeca('0x2c')][_0xfebeca('0x9')],function(_0x5a00d7){const _0x570a99=_0xfebeca;return{'name':_0x5a00d7['fieldName'],'type':_0x5a00d7[_0x570a99('0xf')]['key']};});_0x4084ee[_0xfebeca('0xc')]=_[_0xfebeca('0x19')](_0x5d0af1,_0xfebeca('0x2f')),_0x4084ee['query']=_[_0xfebeca('0x14')](_0x3fe867['query']),_0x4084ee[_0xfebeca('0x13')]=_[_0xfebeca('0x2a')](_0x4084ee['model'],_0x4084ee[_0xfebeca('0x1f')]),_0x1386fb[_0xfebeca('0x2d')]=_[_0xfebeca('0x2a')](_0x4084ee[_0xfebeca('0xc')],qs[_0xfebeca('0x8')](_0x3fe867[_0xfebeca('0x1f')][_0xfebeca('0x8')])),_0x1386fb[_0xfebeca('0x2d')]=_0x1386fb[_0xfebeca('0x2d')][_0xfebeca('0x2e')]?_0x1386fb[_0xfebeca('0x2d')]:_0x4084ee[_0xfebeca('0xc')];typeof _0x3fe867[_0xfebeca('0x1f')][_0xfebeca('0x4')]===_0xfebeca('0x0')&&(_0x1386fb['limit']=qs['limit'](_0x3fe867[_0xfebeca('0x1f')][_0xfebeca('0x2')]),_0x1386fb[_0xfebeca('0x29')]=qs['offset'](_0x3fe867[_0xfebeca('0x1f')]['offset']));_0x1386fb[_0xfebeca('0x11')]=qs['sort'](_0x3fe867[_0xfebeca('0x1f')][_0xfebeca('0x18')]),_0x1386fb[_0xfebeca('0x16')]=qs[_0xfebeca('0x13')](_['pick'](_0x3fe867[_0xfebeca('0x1f')],_0x4084ee['filters']),_0x5d0af1);_0x3fe867[_0xfebeca('0x1f')][_0xfebeca('0xb')]&&(_0x1386fb[_0xfebeca('0x16')]=_[_0xfebeca('0x25')](_0x1386fb[_0xfebeca('0x16')],{[Op['or']]:_[_0xfebeca('0x19')](_0x5d0af1,function(_0x5ab043){const _0x29533a=_0xfebeca;if(_0x5ab043[_0x29533a('0xf')]!=='VIRTUAL'){const _0x208411={};return _0x208411[_0x5ab043[_0x29533a('0x2f')]]={[Op['like']]:'%'+_0x3fe867['query'][_0x29533a('0xb')]+'%'},_0x208411;}})}));_0x1386fb=_[_0xfebeca('0x25')]({},_0x1386fb,_0x3fe867[_0xfebeca('0xd')]);const _0x4d834c={'where':_0x1386fb[_0xfebeca('0x16')]};return db[_0xfebeca('0x2c')][_0xfebeca('0x1b')](_0x4d834c)[_0xfebeca('0x6')](function(_0x2fd2b0){const _0x4cf1f4=_0xfebeca;return _0x51e313[_0x4cf1f4('0x1b')]=_0x2fd2b0,_0x3fe867['query'][_0x4cf1f4('0x24')]&&(_0x1386fb[_0x4cf1f4('0x23')]=[{'all':!![]}]),db[_0x4cf1f4('0x2c')]['findAll'](_0x1386fb);})[_0xfebeca('0x6')](function(_0x48bd04){const _0x39c2fc=_0xfebeca;return _0x51e313[_0x39c2fc('0x1a')]=_0x48bd04,_0x51e313;})[_0xfebeca('0x6')](respondWithFilteredResult(_0x54fbf7,_0x1386fb))[_0xfebeca('0x3')](handleError(_0x54fbf7,null));},exports[_0x38450f('0xa')]=function(_0x266f33,_0x5386d3){const _0x33b3d8=_0x38450f;let _0x14f601={'raw':!![],'where':{'id':_0x266f33['params']['id']}};const _0x3b70bc={};return _0x3b70bc[_0x33b3d8('0xc')]=_[_0x33b3d8('0x14')](db[_0x33b3d8('0x2c')][_0x33b3d8('0x9')]),_0x3b70bc[_0x33b3d8('0x1f')]=_[_0x33b3d8('0x14')](_0x266f33['query']),_0x3b70bc[_0x33b3d8('0x13')]=_[_0x33b3d8('0x2a')](_0x3b70bc[_0x33b3d8('0xc')],_0x3b70bc['query']),_0x14f601['attributes']=_[_0x33b3d8('0x2a')](_0x3b70bc[_0x33b3d8('0xc')],qs[_0x33b3d8('0x8')](_0x266f33['query'][_0x33b3d8('0x8')])),_0x14f601[_0x33b3d8('0x2d')]=_0x14f601[_0x33b3d8('0x2d')][_0x33b3d8('0x2e')]?_0x14f601[_0x33b3d8('0x2d')]:_0x3b70bc[_0x33b3d8('0xc')],_0x266f33[_0x33b3d8('0x1f')]['includeAll']&&(_0x14f601[_0x33b3d8('0x23')]=[{'all':!![]}]),_0x14f601=_['merge']({},_0x14f601,_0x266f33[_0x33b3d8('0xd')]),db[_0x33b3d8('0x2c')][_0x33b3d8('0x10')](_0x14f601)['then'](handleEntityNotFound(_0x5386d3,null))['then'](respondWithResult(_0x5386d3,null))[_0x33b3d8('0x3')](handleError(_0x5386d3,null));},exports[_0x38450f('0x17')]=function(_0x471561,_0x32d472){const _0x129edf=_0x38450f;return db[_0x129edf('0x2c')]['create'](_0x471561[_0x129edf('0x27')],{})[_0x129edf('0x6')](respondWithResult(_0x32d472,0xc9))[_0x129edf('0x3')](handleError(_0x32d472,null));},exports[_0x38450f('0x1d')]=function(_0x3fece6,_0x540703){const _0x51ae32=_0x38450f;return _0x3fece6[_0x51ae32('0x27')]['id']&&delete _0x3fece6['body']['id'],db['VoiceDialReport'][_0x51ae32('0x10')]({'where':{'id':_0x3fece6['params']['id']}})[_0x51ae32('0x6')](handleEntityNotFound(_0x540703,null))['then'](saveUpdates(_0x3fece6[_0x51ae32('0x27')],null))['then'](respondWithResult(_0x540703,null))[_0x51ae32('0x3')](handleError(_0x540703,null));},exports['destroy']=function(_0x56f6ff,_0x30820f){const _0x5ea234=_0x38450f;return db['VoiceDialReport'][_0x5ea234('0x10')]({'where':{'id':_0x56f6ff[_0x5ea234('0xe')]['id']}})[_0x5ea234('0x6')](handleEntityNotFound(_0x30820f,null))[_0x5ea234('0x6')](removeEntity(_0x30820f,null))[_0x5ea234('0x3')](handleError(_0x30820f,null));},exports[_0x38450f('0x7')]=function(_0x3e4168,_0x131393){const _0xb60ba=_0x38450f;return db[_0xb60ba('0x2c')]['describe']()[_0xb60ba('0x6')](respondWithResult(_0x131393,null))[_0xb60ba('0x3')](handleError(_0x131393,null));}; \ No newline at end of file +const a866_0x2da4=['map','destroy','keys','set','error','query','limit','describe','json','fields','intersection','sort','merge','name','../../components/parsers/qs','sequelize','sendStatus','offset','status','length','end','filters','create','options','VIRTUAL','type','Content-Range','key','../../mysqldb','api','rawAttributes','stack','includeAll','findOne','nolimit','filter','catch','../../config/logger','include','pick','where','attributes','count','undefined','show','body','params','update','model','then','like','VoiceDialReport'];(function(_0x1253ef,_0x16aae4){const _0x2da4cb=function(_0x2790dc){while(--_0x2790dc){_0x1253ef['push'](_0x1253ef['shift']());}};_0x2da4cb(++_0x16aae4);}(a866_0x2da4,0x8d));const a866_0x2790=function(_0x1253ef,_0x16aae4){_0x1253ef=_0x1253ef-0x8b;let _0x2da4cb=a866_0x2da4[_0x1253ef];return _0x2da4cb;};const a866_0x33f1da=a866_0x2790;'use strict';const _=require('lodash'),qs=require(a866_0x33f1da(0xa8)),logger=require(a866_0x33f1da(0x8b))(a866_0x33f1da(0xb7)),{db}=require(a866_0x33f1da(0xb6)),{Op}=require(a866_0x33f1da(0xa9));function respondWithResult(_0x27eaad,_0x42b735){return _0x42b735=_0x42b735||0xc8,function(_0x3cfb7a){const _0x2238b5=a866_0x2790;if(_0x3cfb7a)return _0x27eaad[_0x2238b5(0xac)](_0x42b735)['json'](_0x3cfb7a);};}function respondWithFilteredResult(_0x4492b8,_0xa91874){return function(_0xe92a0f){const _0x4945fc=a866_0x2790;if(_0xe92a0f){const _0x4f9d04=_0xe92a0f[_0x4945fc(0x90)],_0x439979=_0xa91874[_0x4945fc(0xab)];let _0xb2832a=_0xa91874['offset']+_0xa91874[_0x4945fc(0xa0)],_0x5a14e3;return _0xb2832a>=_0x4f9d04?(_0xb2832a=_0x4f9d04,_0x5a14e3=0xc8):_0x5a14e3=0xce,_0x4492b8['status'](_0x5a14e3),_0x4492b8[_0x4945fc(0x9d)](_0x4945fc(0xb4),_0x439979+'-'+_0xb2832a+'/'+_0x4f9d04)[_0x4945fc(0xa2)](_0xe92a0f);}return null;};}function saveUpdates(_0x562a4e){return function(_0x2b9bdb){const _0x2c14da=a866_0x2790;if(_0x2b9bdb)return _0x2b9bdb[_0x2c14da(0x95)](_0x562a4e)[_0x2c14da(0x97)](function(_0x2a77ea){return _0x2a77ea;});return null;};}function removeEntity(_0x592e6c){return function(_0x44a615){const _0x225c9a=a866_0x2790;if(_0x44a615)return _0x44a615[_0x225c9a(0x9b)]()['then'](function(){const _0x299d08=_0x225c9a;_0x592e6c[_0x299d08(0xac)](0xcc)[_0x299d08(0xae)]();});};}function handleEntityNotFound(_0x61ee9b){return function(_0x6f590c){const _0x540d54=a866_0x2790;return!_0x6f590c&&_0x61ee9b[_0x540d54(0xaa)](0x194),_0x6f590c;};}function handleError(_0x590a69,_0x2cf443){return _0x2cf443=_0x2cf443||0x1f4,function(_0x7563ea){const _0x5346a4=a866_0x2790;logger[_0x5346a4(0x9e)](_0x7563ea[_0x5346a4(0xb9)]),_0x7563ea[_0x5346a4(0xa7)]&&delete _0x7563ea['name'],_0x590a69[_0x5346a4(0xac)](_0x2cf443)['send'](_0x7563ea);};}exports['index']=function(_0x30ca98,_0x5cf339){const _0x54726a=a866_0x33f1da;let _0x1a9ec0={};const _0xf0658a={},_0x4ec031={'count':0x0,'rows':[]},_0x5d4178=_[_0x54726a(0x9a)](db[_0x54726a(0x99)][_0x54726a(0xb8)],function(_0x39e688){const _0x50d94b=_0x54726a;return{'name':_0x39e688['fieldName'],'type':_0x39e688[_0x50d94b(0xb3)][_0x50d94b(0xb5)]};});_0xf0658a['model']=_[_0x54726a(0x9a)](_0x5d4178,'name'),_0xf0658a[_0x54726a(0x9f)]=_['keys'](_0x30ca98['query']),_0xf0658a[_0x54726a(0xaf)]=_['intersection'](_0xf0658a[_0x54726a(0x96)],_0xf0658a[_0x54726a(0x9f)]),_0x1a9ec0[_0x54726a(0x8f)]=_[_0x54726a(0xa4)](_0xf0658a['model'],qs[_0x54726a(0xa3)](_0x30ca98['query']['fields'])),_0x1a9ec0[_0x54726a(0x8f)]=_0x1a9ec0[_0x54726a(0x8f)][_0x54726a(0xad)]?_0x1a9ec0[_0x54726a(0x8f)]:_0xf0658a[_0x54726a(0x96)];typeof _0x30ca98[_0x54726a(0x9f)][_0x54726a(0xbc)]===_0x54726a(0x91)&&(_0x1a9ec0['limit']=qs['limit'](_0x30ca98[_0x54726a(0x9f)]['limit']),_0x1a9ec0[_0x54726a(0xab)]=qs[_0x54726a(0xab)](_0x30ca98[_0x54726a(0x9f)][_0x54726a(0xab)]));_0x1a9ec0['order']=qs[_0x54726a(0xa5)](_0x30ca98[_0x54726a(0x9f)][_0x54726a(0xa5)]),_0x1a9ec0[_0x54726a(0x8e)]=qs[_0x54726a(0xaf)](_[_0x54726a(0x8d)](_0x30ca98[_0x54726a(0x9f)],_0xf0658a['filters']),_0x5d4178);_0x30ca98[_0x54726a(0x9f)][_0x54726a(0xbd)]&&(_0x1a9ec0[_0x54726a(0x8e)]=_[_0x54726a(0xa6)](_0x1a9ec0[_0x54726a(0x8e)],{[Op['or']]:_[_0x54726a(0x9a)](_0x5d4178,function(_0xddef80){const _0x46f5e5=_0x54726a;if(_0xddef80[_0x46f5e5(0xb3)]!==_0x46f5e5(0xb2)){const _0x3fa0b8={};return _0x3fa0b8[_0xddef80[_0x46f5e5(0xa7)]]={[Op[_0x46f5e5(0x98)]]:'%'+_0x30ca98[_0x46f5e5(0x9f)]['filter']+'%'},_0x3fa0b8;}})}));_0x1a9ec0=_[_0x54726a(0xa6)]({},_0x1a9ec0,_0x30ca98[_0x54726a(0xb1)]);const _0x500b77={'where':_0x1a9ec0[_0x54726a(0x8e)]};return db[_0x54726a(0x99)][_0x54726a(0x90)](_0x500b77)['then'](function(_0x23e8e9){const _0x19d4c2=_0x54726a;return _0x4ec031[_0x19d4c2(0x90)]=_0x23e8e9,_0x30ca98[_0x19d4c2(0x9f)][_0x19d4c2(0xba)]&&(_0x1a9ec0[_0x19d4c2(0x8c)]=[{'all':!![]}]),db['VoiceDialReport']['findAll'](_0x1a9ec0);})[_0x54726a(0x97)](function(_0x2d0f96){return _0x4ec031['rows']=_0x2d0f96,_0x4ec031;})[_0x54726a(0x97)](respondWithFilteredResult(_0x5cf339,_0x1a9ec0))[_0x54726a(0xbe)](handleError(_0x5cf339,null));},exports[a866_0x33f1da(0x92)]=function(_0x3a6c39,_0x17e003){const _0x41a5af=a866_0x33f1da;let _0x28468b={'raw':!![],'where':{'id':_0x3a6c39[_0x41a5af(0x94)]['id']}};const _0x31ddb7={};return _0x31ddb7[_0x41a5af(0x96)]=_[_0x41a5af(0x9c)](db[_0x41a5af(0x99)][_0x41a5af(0xb8)]),_0x31ddb7[_0x41a5af(0x9f)]=_['keys'](_0x3a6c39[_0x41a5af(0x9f)]),_0x31ddb7['filters']=_[_0x41a5af(0xa4)](_0x31ddb7[_0x41a5af(0x96)],_0x31ddb7['query']),_0x28468b[_0x41a5af(0x8f)]=_['intersection'](_0x31ddb7[_0x41a5af(0x96)],qs[_0x41a5af(0xa3)](_0x3a6c39['query'][_0x41a5af(0xa3)])),_0x28468b['attributes']=_0x28468b[_0x41a5af(0x8f)][_0x41a5af(0xad)]?_0x28468b[_0x41a5af(0x8f)]:_0x31ddb7[_0x41a5af(0x96)],_0x3a6c39[_0x41a5af(0x9f)][_0x41a5af(0xba)]&&(_0x28468b['include']=[{'all':!![]}]),_0x28468b=_[_0x41a5af(0xa6)]({},_0x28468b,_0x3a6c39[_0x41a5af(0xb1)]),db[_0x41a5af(0x99)][_0x41a5af(0xbb)](_0x28468b)[_0x41a5af(0x97)](handleEntityNotFound(_0x17e003,null))[_0x41a5af(0x97)](respondWithResult(_0x17e003,null))['catch'](handleError(_0x17e003,null));},exports['create']=function(_0x1d962a,_0x1f7460){const _0x1434f6=a866_0x33f1da;return db[_0x1434f6(0x99)][_0x1434f6(0xb0)](_0x1d962a[_0x1434f6(0x93)],{})[_0x1434f6(0x97)](respondWithResult(_0x1f7460,0xc9))[_0x1434f6(0xbe)](handleError(_0x1f7460,null));},exports[a866_0x33f1da(0x95)]=function(_0x2e9d20,_0x4c3c71){const _0x3d32d7=a866_0x33f1da;return _0x2e9d20[_0x3d32d7(0x93)]['id']&&delete _0x2e9d20['body']['id'],db[_0x3d32d7(0x99)][_0x3d32d7(0xbb)]({'where':{'id':_0x2e9d20[_0x3d32d7(0x94)]['id']}})['then'](handleEntityNotFound(_0x4c3c71,null))['then'](saveUpdates(_0x2e9d20['body'],null))[_0x3d32d7(0x97)](respondWithResult(_0x4c3c71,null))['catch'](handleError(_0x4c3c71,null));},exports[a866_0x33f1da(0x9b)]=function(_0x31f444,_0x553ae7){const _0x3d052b=a866_0x33f1da;return db['VoiceDialReport']['findOne']({'where':{'id':_0x31f444[_0x3d052b(0x94)]['id']}})[_0x3d052b(0x97)](handleEntityNotFound(_0x553ae7,null))['then'](removeEntity(_0x553ae7,null))[_0x3d052b(0xbe)](handleError(_0x553ae7,null));},exports['describe']=function(_0x5446cf,_0x323ab1){const _0x2d16c6=a866_0x33f1da;return db[_0x2d16c6(0x99)][_0x2d16c6(0xa1)]()[_0x2d16c6(0x97)](respondWithResult(_0x323ab1,null))[_0x2d16c6(0xbe)](handleError(_0x323ab1,null));}; \ No newline at end of file diff --git a/server/api/voiceDialReport/voiceDialReport.model.js b/server/api/voiceDialReport/voiceDialReport.model.js index d6b8061..e5982be 100644 --- a/server/api/voiceDialReport/voiceDialReport.model.js +++ b/server/api/voiceDialReport/voiceDialReport.model.js @@ -1 +1 @@ -const a723_0x4348=['VoiceDialReport','define','exports'];(function(_0x290a36,_0x434872){const _0x498e04=function(_0x2ff1cb){while(--_0x2ff1cb){_0x290a36['push'](_0x290a36['shift']());}};_0x498e04(++_0x434872);}(a723_0x4348,0xd6));const a723_0x498e=function(_0x290a36,_0x434872){_0x290a36=_0x290a36-0x0;let _0x498e04=a723_0x4348[_0x290a36];return _0x498e04;};const _0xae008b=a723_0x498e;'use strict';const attributes=require('./voiceDialReport.attributes');module[_0xae008b('0x1')]=function(_0x2ff1cb){const _0x3af9f7=_0xae008b,_0x276e00=_0x2ff1cb[_0x3af9f7('0x0')](_0x3af9f7('0x2'),attributes,{'tableName':'report_dial','paranoid':![],'indexes':[{'fields':['uniqueid']}],'timestamps':!![]});return _0x276e00;}; \ No newline at end of file +const a867_0x507a=['exports','function','./voiceDialReport.attributes','sequelize','VoiceDialReport','init'];(function(_0x35647e,_0x4823bc){const _0x507aee=function(_0x50aff0){while(--_0x50aff0){_0x35647e['push'](_0x35647e['shift']());}};_0x507aee(++_0x4823bc);}(a867_0x507a,0x101));const a867_0x50af=function(_0x35647e,_0x4823bc){_0x35647e=_0x35647e-0x9f;let _0x507aee=a867_0x507a[_0x35647e];return _0x507aee;};const a867_0x4d0236=a867_0x50af;'use strict';const {Model}=require(a867_0x4d0236(0xa3)),{attributes}=require(a867_0x4d0236(0xa2)),{options}=require('./voiceDialReport.options');class VoiceDialReport extends Model{}function init(_0x36b98b,_0x41acd3){const _0x48584c=a867_0x4d0236,_0x3d21ef=options(_0x36b98b),_0x60a5c7=typeof _0x41acd3===_0x48584c(0xa1)?_0x41acd3(_0x3d21ef):_0x3d21ef;return VoiceDialReport[_0x48584c(0x9f)](attributes,_0x60a5c7),VoiceDialReport;}module[a867_0x4d0236(0xa0)][a867_0x4d0236(0xa4)]=VoiceDialReport,module[a867_0x4d0236(0xa0)][a867_0x4d0236(0x9f)]=init; \ No newline at end of file diff --git a/server/api/voiceDialReport/voiceDialReport.options.js b/server/api/voiceDialReport/voiceDialReport.options.js new file mode 100644 index 0000000..9066f6b --- /dev/null +++ b/server/api/voiceDialReport/voiceDialReport.options.js @@ -0,0 +1 @@ +var a868_0x43dd=['report_dial','options'];(function(_0x3498f3,_0x1a7b56){var _0x43ddd4=function(_0x5307a6){while(--_0x5307a6){_0x3498f3['push'](_0x3498f3['shift']());}};_0x43ddd4(++_0x1a7b56);}(a868_0x43dd,0x93));var a868_0x5307=function(_0x3498f3,_0x1a7b56){_0x3498f3=_0x3498f3-0x1bf;var _0x43ddd4=a868_0x43dd[_0x3498f3];return _0x43ddd4;};var a868_0x419020=a868_0x5307;function options(_0x417ae0){var _0x1a523f=a868_0x5307;return{'sequelize':_0x417ae0,'tableName':_0x1a523f(0x1c0),'paranoid':![],'indexes':[{'fields':['uniqueid']}],'timestamps':!![]};}module['exports'][a868_0x419020(0x1bf)]=options; \ No newline at end of file diff --git a/server/api/voiceDialReport/voiceDialReport.rpc.js b/server/api/voiceDialReport/voiceDialReport.rpc.js index b7e4633..6f81b78 100644 --- a/server/api/voiceDialReport/voiceDialReport.rpc.js +++ b/server/api/voiceDialReport/voiceDialReport.rpc.js @@ -1 +1 @@ -const a724_0x5b1f=['attributes','../../mysqldb','debug','body','raw','create','stringify','../../config/logger','error','catch','VoiceDialReport','message','info','options','CreateVoiceDialReport','rpc','limit','UpdateVoiceDialReport','then'];(function(_0x44b426,_0x5b1f7e){const _0x47dede=function(_0x5bfb96){while(--_0x5bfb96){_0x44b426['push'](_0x44b426['shift']());}};_0x47dede(++_0x5b1f7e);}(a724_0x5b1f,0x72));const a724_0x47de=function(_0x44b426,_0x5b1f7e){_0x44b426=_0x44b426-0x0;let _0x47dede=a724_0x5b1f[_0x44b426];return _0x47dede;};const _0x206383=a724_0x47de;'use strict';const db=require(_0x206383('0x1'))['db'],logger=require(_0x206383('0x7'))(_0x206383('0xf'));exports[_0x206383('0xe')]=function(_0x5bfb96){const _0x356bc8=this;return new Promise(function(_0x4b78b3,_0x1a6d0c){const _0x4b7c32=a724_0x47de;return db[_0x4b7c32('0xa')][_0x4b7c32('0x5')](_0x5bfb96['body'],{'raw':_0x5bfb96[_0x4b7c32('0xd')]?_0x5bfb96[_0x4b7c32('0xd')][_0x4b7c32('0x4')]===undefined?!![]:![]:!![]})[_0x4b7c32('0x12')](function(_0x52b08f){const _0x3e6b74=_0x4b7c32;logger[_0x3e6b74('0xc')](_0x3e6b74('0xe'),_0x5bfb96),logger[_0x3e6b74('0x2')](_0x3e6b74('0xe'),_0x5bfb96,JSON[_0x3e6b74('0x6')](_0x52b08f)),_0x4b78b3(_0x52b08f);})[_0x4b7c32('0x9')](function(_0x27e21a){const _0x5d587c=_0x4b7c32;logger[_0x5d587c('0x8')](_0x5d587c('0xe'),_0x27e21a[_0x5d587c('0xb')],_0x5bfb96),_0x1a6d0c(_0x356bc8['error'](0x1f4,_0x27e21a[_0x5d587c('0xb')]));});});},exports['UpdateVoiceDialReport']=function(_0xbd88ab){const _0x368073=this;return new Promise(function(_0x301be2,_0x74b85c){const _0xdf3efd=a724_0x47de;return db[_0xdf3efd('0xa')]['update'](_0xbd88ab[_0xdf3efd('0x3')],{'raw':_0xbd88ab['options']?_0xbd88ab[_0xdf3efd('0xd')][_0xdf3efd('0x4')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0xbd88ab[_0xdf3efd('0xd')]?_0xbd88ab['options']['where']||null:null,'attributes':_0xbd88ab[_0xdf3efd('0xd')]?_0xbd88ab['options'][_0xdf3efd('0x0')]||null:null,'limit':_0xbd88ab[_0xdf3efd('0xd')]?_0xbd88ab['options'][_0xdf3efd('0x10')]||null:null})[_0xdf3efd('0x12')](function(_0x108383){const _0x5d6799=_0xdf3efd;logger[_0x5d6799('0xc')](_0x5d6799('0x11'),_0xbd88ab),logger[_0x5d6799('0x2')](_0x5d6799('0x11'),_0xbd88ab,JSON[_0x5d6799('0x6')](_0x108383)),_0x301be2(_0x108383);})[_0xdf3efd('0x9')](function(_0x3d2729){const _0x219c27=_0xdf3efd;logger[_0x219c27('0x8')](_0x219c27('0x11'),_0x3d2729[_0x219c27('0xb')],_0xbd88ab),_0x74b85c(_0x368073[_0x219c27('0x8')](0x1f4,_0x3d2729['message']));});});}; \ No newline at end of file +const a869_0x40b3=['then','where','options','info','limit','rpc','stringify','raw','error','UpdateVoiceDialReport','../../config/logger','catch','debug','attributes','CreateVoiceDialReport','message','body','VoiceDialReport'];(function(_0x1c8b10,_0x1b1727){const _0x40b3c0=function(_0x277c46){while(--_0x277c46){_0x1c8b10['push'](_0x1c8b10['shift']());}};_0x40b3c0(++_0x1b1727);}(a869_0x40b3,0x1af));const a869_0x277c=function(_0x1c8b10,_0x1b1727){_0x1c8b10=_0x1c8b10-0x10f;let _0x40b3c0=a869_0x40b3[_0x1c8b10];return _0x40b3c0;};const a869_0x125939=a869_0x277c;'use strict';const db=require('../../mysqldb')['db'],logger=require(a869_0x125939(0x11a))(a869_0x125939(0x115));exports[a869_0x125939(0x11e)]=function(_0x56f488){const _0x35339d=this;return new Promise(function(_0x477e69,_0x4b916c){const _0x39af4a=a869_0x277c;return db[_0x39af4a(0x10f)]['create'](_0x56f488['body'],{'raw':_0x56f488['options']?_0x56f488['options'][_0x39af4a(0x117)]===undefined?!![]:![]:!![]})[_0x39af4a(0x110)](function(_0x499826){const _0x249e3b=_0x39af4a;logger[_0x249e3b(0x113)](_0x249e3b(0x11e),_0x56f488),logger[_0x249e3b(0x11c)](_0x249e3b(0x11e),_0x56f488,JSON['stringify'](_0x499826)),_0x477e69(_0x499826);})['catch'](function(_0x458da6){const _0x205bfe=_0x39af4a;logger[_0x205bfe(0x118)]('CreateVoiceDialReport',_0x458da6[_0x205bfe(0x11f)],_0x56f488),_0x4b916c(_0x35339d[_0x205bfe(0x118)](0x1f4,_0x458da6[_0x205bfe(0x11f)]));});});},exports['UpdateVoiceDialReport']=function(_0x1e93fc){const _0x406918=this;return new Promise(function(_0x17937c,_0x2d0aca){const _0x40188f=a869_0x277c;return db[_0x40188f(0x10f)]['update'](_0x1e93fc[_0x40188f(0x120)],{'raw':_0x1e93fc[_0x40188f(0x112)]?_0x1e93fc[_0x40188f(0x112)][_0x40188f(0x117)]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x1e93fc[_0x40188f(0x112)]?_0x1e93fc[_0x40188f(0x112)][_0x40188f(0x111)]||null:null,'attributes':_0x1e93fc[_0x40188f(0x112)]?_0x1e93fc['options'][_0x40188f(0x11d)]||null:null,'limit':_0x1e93fc[_0x40188f(0x112)]?_0x1e93fc['options'][_0x40188f(0x114)]||null:null})[_0x40188f(0x110)](function(_0x3fe7f0){const _0x128459=_0x40188f;logger[_0x128459(0x113)](_0x128459(0x119),_0x1e93fc),logger[_0x128459(0x11c)](_0x128459(0x119),_0x1e93fc,JSON[_0x128459(0x116)](_0x3fe7f0)),_0x17937c(_0x3fe7f0);})[_0x40188f(0x11b)](function(_0x55305f){const _0x5522fa=_0x40188f;logger[_0x5522fa(0x118)](_0x5522fa(0x119),_0x55305f[_0x5522fa(0x11f)],_0x1e93fc),_0x2d0aca(_0x406918[_0x5522fa(0x118)](0x1f4,_0x55305f[_0x5522fa(0x11f)]));});});}; \ No newline at end of file diff --git a/server/api/voiceExtension/index.js b/server/api/voiceExtension/index.js index ec9e3f3..032d7ad 100644 --- a/server/api/voiceExtension/index.js +++ b/server/api/voiceExtension/index.js @@ -1 +1 @@ -const a725_0x1630=['/:id','destroy','delete','isAuthenticated','addApplications','create','express','get','./voiceExtension.controller','Router','put','update','exports'];(function(_0x1b7541,_0x1630f2){const _0x5c8ec9=function(_0x2006d4){while(--_0x2006d4){_0x1b7541['push'](_0x1b7541['shift']());}};_0x5c8ec9(++_0x1630f2);}(a725_0x1630,0x120));const a725_0x5c8e=function(_0x1b7541,_0x1630f2){_0x1b7541=_0x1b7541-0x0;let _0x5c8ec9=a725_0x1630[_0x1b7541];return _0x5c8ec9;};const _0x37de34=a725_0x5c8e;'use strict';const express=require(_0x37de34('0x4')),router=express[_0x37de34('0x7')](),auth=require('../../components/auth/service'),controller=require(_0x37de34('0x6'));router[_0x37de34('0x5')]('/',auth['isAuthenticated'](),controller['index']),router[_0x37de34('0x5')](_0x37de34('0xb'),auth[_0x37de34('0x1')](),controller['show']),router['post']('/',auth[_0x37de34('0x1')](),controller[_0x37de34('0x3')]),router['post']('/:id/applications',auth['isAuthenticated'](),controller[_0x37de34('0x2')]),router[_0x37de34('0x8')](_0x37de34('0xb'),auth[_0x37de34('0x1')](),controller[_0x37de34('0x9')]),router[_0x37de34('0x0')]('/:id',auth['isAuthenticated'](),controller[_0x37de34('0xc')]),module[_0x37de34('0xa')]=router; \ No newline at end of file +const a870_0x598d=['delete','update','show','/:id','express','post','Router','destroy','get','addApplications','./voiceExtension.controller','isAuthenticated','create','put','exports'];(function(_0x2216e7,_0x505005){const _0x598dfe=function(_0x5103a3){while(--_0x5103a3){_0x2216e7['push'](_0x2216e7['shift']());}};_0x598dfe(++_0x505005);}(a870_0x598d,0x1ab));const a870_0x5103=function(_0x2216e7,_0x505005){_0x2216e7=_0x2216e7-0x12d;let _0x598dfe=a870_0x598d[_0x2216e7];return _0x598dfe;};const a870_0x52d2f0=a870_0x5103;'use strict';const express=require(a870_0x52d2f0(0x139)),router=express[a870_0x52d2f0(0x13b)](),auth=require('../../components/auth/service'),controller=require(a870_0x52d2f0(0x130));router[a870_0x52d2f0(0x12e)]('/',auth[a870_0x52d2f0(0x131)](),controller['index']),router['get'](a870_0x52d2f0(0x138),auth[a870_0x52d2f0(0x131)](),controller[a870_0x52d2f0(0x137)]),router[a870_0x52d2f0(0x13a)]('/',auth['isAuthenticated'](),controller[a870_0x52d2f0(0x132)]),router[a870_0x52d2f0(0x13a)]('/:id/applications',auth[a870_0x52d2f0(0x131)](),controller[a870_0x52d2f0(0x12f)]),router[a870_0x52d2f0(0x133)](a870_0x52d2f0(0x138),auth[a870_0x52d2f0(0x131)](),controller[a870_0x52d2f0(0x136)]),router[a870_0x52d2f0(0x135)](a870_0x52d2f0(0x138),auth[a870_0x52d2f0(0x131)](),controller[a870_0x52d2f0(0x12d)]),module[a870_0x52d2f0(0x134)]=router; \ No newline at end of file diff --git a/server/api/voiceExtension/voiceExtension.attributes.js b/server/api/voiceExtension/voiceExtension.attributes.js index 549bd06..4b1011c 100644 --- a/server/api/voiceExtension/voiceExtension.attributes.js +++ b/server/api/voiceExtension/voiceExtension.attributes.js @@ -1 +1 @@ -const a726_0x1555=['any','ENUM','BOOLEAN','compositeIndex','inbound','internal','exten','wav','STRING','outbound','sequelize','INTEGER'];(function(_0x22cce4,_0x155523){const _0x314fdf=function(_0x32fae2){while(--_0x32fae2){_0x22cce4['push'](_0x22cce4['shift']());}};_0x314fdf(++_0x155523);}(a726_0x1555,0x1de));const a726_0x314f=function(_0x22cce4,_0x155523){_0x22cce4=_0x22cce4-0x0;let _0x314fdf=a726_0x1555[_0x22cce4];return _0x314fdf;};const _0x8b8f65=a726_0x314f;'use strict';const Sequelize=require(_0x8b8f65('0x0'));module['exports']={'context':{'type':Sequelize['STRING'],'allowNull':![],'unique':'compositeIndex','validate':{'notEmpty':!![],'is':/[A-Za-z0-9._+*!\-[\]]+$/i}},'exten':{'type':Sequelize[_0x8b8f65('0xa')],'allowNull':![],'unique':'compositeIndex'},'priority':{'type':Sequelize[_0x8b8f65('0xa')],'allowNull':![],'defaultValue':'1','unique':_0x8b8f65('0x5')},'tag':{'type':Sequelize[_0x8b8f65('0xa')],'allowNull':![],'defaultValue':'--'},'app':{'type':Sequelize[_0x8b8f65('0xa')],'allowNull':![],'defaultValue':'NoOp'},'appdata':{'type':Sequelize[_0x8b8f65('0xa')](0x1000),'allowNull':!![],'defaultValue':''},'type':{'type':Sequelize[_0x8b8f65('0x3')](_0x8b8f65('0x6'),_0x8b8f65('0xb'),_0x8b8f65('0x7'),'inbound-fax','outbound-fax','system',_0x8b8f65('0x2')),'allowNull':![]},'description':{'type':Sequelize[_0x8b8f65('0xa')]},'interval':{'type':Sequelize[_0x8b8f65('0xa')],'allowNull':![],'defaultValue':'*,*,*,*'},'IntervalId':{'type':Sequelize['INTEGER']},'isApp':{'type':Sequelize[_0x8b8f65('0x4')],'allowNull':![],'defaultValue':![]},'appType':{'type':Sequelize[_0x8b8f65('0xa')],'defaultValue':null},'callerID':{'type':Sequelize[_0x8b8f65('0xa')],'allowNull':!![]},'record':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'cutdigits':{'type':Sequelize[_0x8b8f65('0x1')]},'recordingFormat':{'type':Sequelize['STRING'],'defaultValue':_0x8b8f65('0x9')},'answer':{'type':Sequelize[_0x8b8f65('0x4')],'defaultValue':!![]},'name':{'type':Sequelize['VIRTUAL'],'get':function(){const _0x23226c=_0x8b8f65;return this['getDataValue'](_0x23226c('0x8'));}}}; \ No newline at end of file +const a871_0x2f67=['inbound-fax','*,*,*,*','VIRTUAL','compositeIndex','sequelize','BOOLEAN','NoOp','system','getDataValue','INTEGER','wav','outbound','attributes','STRING','any','ENUM','exten','inbound'];(function(_0xc5961,_0x4a7245){const _0x2f6768=function(_0x31ba94){while(--_0x31ba94){_0xc5961['push'](_0xc5961['shift']());}};_0x2f6768(++_0x4a7245);}(a871_0x2f67,0x133));const a871_0x31ba=function(_0xc5961,_0x4a7245){_0xc5961=_0xc5961-0xf1;let _0x2f6768=a871_0x2f67[_0xc5961];return _0x2f6768;};const a871_0x2cc3d2=a871_0x31ba;'use strict';const {DataTypes}=require(a871_0x2cc3d2(0xf4)),attributes={'context':{'type':DataTypes[a871_0x2cc3d2(0xfd)],'allowNull':![],'unique':a871_0x2cc3d2(0xf3),'validate':{'notEmpty':!![],'is':/[A-Za-z0-9._+*!\-[\]]+$/i}},'exten':{'type':DataTypes[a871_0x2cc3d2(0xfd)],'allowNull':![],'unique':a871_0x2cc3d2(0xf3)},'priority':{'type':DataTypes[a871_0x2cc3d2(0xfd)],'allowNull':![],'defaultValue':'1','unique':a871_0x2cc3d2(0xf3)},'tag':{'type':DataTypes[a871_0x2cc3d2(0xfd)],'allowNull':![],'defaultValue':'--'},'app':{'type':DataTypes[a871_0x2cc3d2(0xfd)],'allowNull':![],'defaultValue':a871_0x2cc3d2(0xf6)},'appdata':{'type':DataTypes[a871_0x2cc3d2(0xfd)](0x1000),'allowNull':!![],'defaultValue':''},'type':{'type':DataTypes[a871_0x2cc3d2(0xff)](a871_0x2cc3d2(0x101),a871_0x2cc3d2(0xfb),'internal',a871_0x2cc3d2(0x102),'outbound-fax',a871_0x2cc3d2(0xf7),a871_0x2cc3d2(0xfe)),'allowNull':![]},'description':{'type':DataTypes[a871_0x2cc3d2(0xfd)]},'interval':{'type':DataTypes[a871_0x2cc3d2(0xfd)],'allowNull':![],'defaultValue':a871_0x2cc3d2(0xf1)},'IntervalId':{'type':DataTypes[a871_0x2cc3d2(0xf9)]},'isApp':{'type':DataTypes[a871_0x2cc3d2(0xf5)],'allowNull':![],'defaultValue':![]},'appType':{'type':DataTypes[a871_0x2cc3d2(0xfd)],'defaultValue':null},'callerID':{'type':DataTypes[a871_0x2cc3d2(0xfd)],'allowNull':!![]},'record':{'type':DataTypes[a871_0x2cc3d2(0xf5)],'defaultValue':![]},'cutdigits':{'type':DataTypes[a871_0x2cc3d2(0xf9)]},'recordingFormat':{'type':DataTypes['STRING'],'defaultValue':a871_0x2cc3d2(0xfa)},'answer':{'type':DataTypes[a871_0x2cc3d2(0xf5)],'defaultValue':!![]},'name':{'type':DataTypes[a871_0x2cc3d2(0xf2)],'get':function(){const _0x1db28b=a871_0x2cc3d2;return this[_0x1db28b(0xf8)](_0x1db28b(0x100));}}};module['exports'][a871_0x2cc3d2(0xfc)]=attributes; \ No newline at end of file diff --git a/server/api/voiceExtension/voiceExtension.controller.js b/server/api/voiceExtension/voiceExtension.controller.js index 7b9bd91..ffce8a4 100644 --- a/server/api/voiceExtension/voiceExtension.controller.js +++ b/server/api/voiceExtension/voiceExtension.controller.js @@ -1 +1 @@ -const a727_0x1cf3=['exten','sendStatus','merge','description','type','keys','transaction','outbound','../../rediscache','InboundRoutes','offset','Content-Range','Unable\x20to\x20retrieve\x20the\x20current\x20user','cast(priority\x20as\x20unsigned)','undefined','inbound','api','addApplications','create','role','attributes','findAll','recordingFormat','VoiceExtension','end','autoAssociation','send','pick','map','get','params','query','rows','value','includes','update','index','destroy','concat','UserProfileSection','findOne','ignore','body','./voiceExtension.socket','InternalRoutes','key','where','bulkCreate','cutdigits','set','../../components/parsers/qs','error','rawAttributes','name','model','fields','mandatoryDisposition','fieldName','like','context','count','sort','../../mysqldb','OutboundRoutes','json','then','filter','UserProfileResource','internal','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','status','find','../../config/logger','limit','intersection','length','register','show','userProfileId','includeAll','catch','order','sequelize','filters'];(function(_0x6bfaf5,_0x1cf386){const _0xdec9bb=function(_0x1b0cf5){while(--_0x1b0cf5){_0x6bfaf5['push'](_0x6bfaf5['shift']());}};_0xdec9bb(++_0x1cf386);}(a727_0x1cf3,0x75));const a727_0xdec9=function(_0x6bfaf5,_0x1cf386){_0x6bfaf5=_0x6bfaf5-0x0;let _0xdec9bb=a727_0x1cf3[_0x6bfaf5];return _0xdec9bb;};const _0xf5c207=a727_0xdec9;'use strict';const _=require('lodash'),qs=require(_0xf5c207('0x11')),logger=require(_0xf5c207('0x27'))(_0xf5c207('0x43')),{getSocket}=require(_0xf5c207('0x3b')),socket=getSocket(),db=require(_0xf5c207('0x1d'))['db'],{Op}=require(_0xf5c207('0x31'));require(_0xf5c207('0xa'))[_0xf5c207('0x2b')](socket);function respondWithStatusCode(_0x1b0cf5,_0x53bca2){return _0x53bca2=_0x53bca2||0xcc,function(_0x14d85c){const _0x1792cd=a727_0xdec9;if(_0x14d85c)return _0x1b0cf5[_0x1792cd('0x34')](_0x53bca2);return _0x1b0cf5[_0x1792cd('0x25')](_0x53bca2)[_0x1792cd('0x4b')]();};}function respondWithResult(_0x2399c6,_0x1dd414){return _0x1dd414=_0x1dd414||0xc8,function(_0x1939b7){const _0x3a5f2f=a727_0xdec9;if(_0x1939b7)return _0x2399c6[_0x3a5f2f('0x25')](_0x1dd414)[_0x3a5f2f('0x1f')](_0x1939b7);};}function respondWithFilteredResult(_0x469ecd,_0x2b57ed){return function(_0x2e32d6){const _0x72636d=a727_0xdec9;if(_0x2e32d6){const _0x1116bd=_0x2e32d6[_0x72636d('0x1b')],_0x2c78fb=_0x2b57ed[_0x72636d('0x3d')];let _0x1089d0=_0x2b57ed['offset']+_0x2b57ed['limit'],_0x40c8ff;return _0x1089d0>=_0x1116bd?(_0x1089d0=_0x1116bd,_0x40c8ff=0xc8):_0x40c8ff=0xce,_0x469ecd[_0x72636d('0x25')](_0x40c8ff),_0x469ecd[_0x72636d('0x10')](_0x72636d('0x3e'),_0x2c78fb+'-'+_0x1089d0+'/'+_0x1116bd)[_0x72636d('0x1f')](_0x2e32d6);}return null;};}function removeEntity(_0xa715a3){return function(_0x417d39){const _0x361a46=a727_0xdec9;if(_0x417d39)return _0x417d39[_0x361a46('0x4')]()['then'](function(){const _0x3bfd2d=_0x361a46,_0x1c6e46=_0x417d39[_0x3bfd2d('0x50')]({'plain':!![]}),_0x9162d1=[{'name':_0x3bfd2d('0x3c'),'value':'inbound','ignore':![]},{'name':_0x3bfd2d('0x1e'),'value':_0x3bfd2d('0x3a'),'ignore':![]},{'name':_0x3bfd2d('0xb'),'value':'internal','ignore':![]}],_0x5ccc0f=_(_0x9162d1)['filter'](_0x3bfd2d('0x8'))[_0x3bfd2d('0x4f')](_0x3bfd2d('0x0'))['value']();if(_[_0x3bfd2d('0x1')](_0x5ccc0f,_0x1c6e46[_0x3bfd2d('0x37')]))return;const _0x5158f7=_[_0x3bfd2d('0x26')](_0x9162d1,[_0x3bfd2d('0x0'),_0x1c6e46[_0x3bfd2d('0x37')]])[_0x3bfd2d('0x14')];return db[_0x3bfd2d('0x22')][_0x3bfd2d('0x4')]({'where':{'type':_0x5158f7,'resourceId':_0x1c6e46['id']}})[_0x3bfd2d('0x20')](function(){return _0x417d39;});})['then'](function(){const _0xf03d36=_0x361a46;_0xa715a3['status'](0xcc)[_0xf03d36('0x4b')]();});};}function handleEntityNotFound(_0x587f9d){return function(_0x572a11){const _0x2e3482=a727_0xdec9;return!_0x572a11&&_0x587f9d[_0x2e3482('0x34')](0x194),_0x572a11;};}function handleError(_0xaaf0f,_0x5709eb){return _0x5709eb=_0x5709eb||0x1f4,function(_0x19e91f){const _0x4a3512=a727_0xdec9;logger[_0x4a3512('0x12')](_0x19e91f['stack']),_0x19e91f[_0x4a3512('0x14')]&&delete _0x19e91f[_0x4a3512('0x14')],_0xaaf0f['status'](_0x5709eb)[_0x4a3512('0x4d')](_0x19e91f);};}exports[_0xf5c207('0x3')]=function(_0x14a1f1,_0x13a6f0){const _0x47202b=_0xf5c207;let _0x27fcbf={};const _0x374f38={},_0x23c377={'count':0x0,'rows':[]},_0x4cbaca=_[_0x47202b('0x4f')](db['VoiceExtension'][_0x47202b('0x13')],function(_0x32ac10){const _0x47c3fc=_0x47202b;return{'name':_0x32ac10[_0x47c3fc('0x18')],'type':_0x32ac10[_0x47c3fc('0x37')][_0x47c3fc('0xc')]};});_0x374f38['model']=_['map'](_0x4cbaca,'name'),_0x374f38[_0x47202b('0x52')]=_['keys'](_0x14a1f1[_0x47202b('0x52')]),_0x374f38[_0x47202b('0x32')]=_[_0x47202b('0x29')](_0x374f38[_0x47202b('0x15')],_0x374f38[_0x47202b('0x52')]),_0x27fcbf[_0x47202b('0x47')]=_[_0x47202b('0x29')](_0x374f38[_0x47202b('0x15')],qs[_0x47202b('0x16')](_0x14a1f1['query'][_0x47202b('0x16')])),_0x27fcbf[_0x47202b('0x47')]=_0x27fcbf[_0x47202b('0x47')][_0x47202b('0x2a')]?_0x27fcbf[_0x47202b('0x47')]:_0x374f38[_0x47202b('0x15')];typeof _0x14a1f1[_0x47202b('0x52')]['nolimit']===_0x47202b('0x41')&&(_0x27fcbf[_0x47202b('0x28')]=qs[_0x47202b('0x28')](_0x14a1f1[_0x47202b('0x52')][_0x47202b('0x28')]),_0x27fcbf[_0x47202b('0x3d')]=qs[_0x47202b('0x3d')](_0x14a1f1[_0x47202b('0x52')][_0x47202b('0x3d')]));_0x27fcbf[_0x47202b('0x30')]=qs[_0x47202b('0x1c')](_0x14a1f1[_0x47202b('0x52')][_0x47202b('0x1c')]),_0x27fcbf['where']=qs['filters'](_[_0x47202b('0x4e')](_0x14a1f1[_0x47202b('0x52')],_0x374f38['filters']),_0x4cbaca);_0x14a1f1['query'][_0x47202b('0x21')]&&(_0x27fcbf[_0x47202b('0xd')]=_[_0x47202b('0x35')](_0x27fcbf[_0x47202b('0xd')],{[Op['or']]:_[_0x47202b('0x4f')](_0x4cbaca,function(_0x1715f4){const _0x3d680d=_0x47202b;if(_0x1715f4[_0x3d680d('0x37')]!=='VIRTUAL'){const _0x4ed91f={};return _0x4ed91f[_0x1715f4['name']]={[Op[_0x3d680d('0x19')]]:'%'+_0x14a1f1[_0x3d680d('0x52')]['filter']+'%'},_0x4ed91f;}})}));_0x27fcbf=_['merge']({},_0x27fcbf,_0x14a1f1['options']);const _0x14d9f9={'where':_0x27fcbf[_0x47202b('0xd')]};return db[_0x47202b('0x4a')]['count'](_0x14d9f9)[_0x47202b('0x20')](function(_0x4088dd){const _0xce3b19=_0x47202b;return _0x23c377[_0xce3b19('0x1b')]=_0x4088dd,_0x14a1f1[_0xce3b19('0x52')]['includeAll']&&(_0x27fcbf['include']=[{'all':!![]}]),db[_0xce3b19('0x4a')][_0xce3b19('0x48')](_0x27fcbf);})[_0x47202b('0x20')](function(_0x580858){const _0x458236=_0x47202b;return _0x23c377[_0x458236('0x53')]=_0x580858,_0x23c377;})[_0x47202b('0x20')](respondWithFilteredResult(_0x13a6f0,_0x27fcbf))[_0x47202b('0x2f')](handleError(_0x13a6f0,null));},exports[_0xf5c207('0x2c')]=function(_0x250d50,_0x3e9d6d){const _0x2d1399=_0xf5c207;let _0x159b3c={'raw':![],'where':{'id':_0x250d50[_0x2d1399('0x51')]['id']}};const _0x4df252={};return _0x4df252['model']=_[_0x2d1399('0x38')](db[_0x2d1399('0x4a')][_0x2d1399('0x13')]),_0x4df252[_0x2d1399('0x52')]=_[_0x2d1399('0x38')](_0x250d50[_0x2d1399('0x52')]),_0x4df252[_0x2d1399('0x32')]=_['intersection'](_0x4df252['model'],_0x4df252[_0x2d1399('0x52')]),_0x159b3c[_0x2d1399('0x47')]=_[_0x2d1399('0x29')](_0x4df252[_0x2d1399('0x15')],qs[_0x2d1399('0x16')](_0x250d50['query'][_0x2d1399('0x16')])),_0x159b3c['attributes']=_0x159b3c[_0x2d1399('0x47')][_0x2d1399('0x2a')]?_0x159b3c['attributes']:_0x4df252[_0x2d1399('0x15')],_0x250d50[_0x2d1399('0x52')][_0x2d1399('0x2e')]&&(_0x159b3c['include']=[{'all':!![]}]),_0x159b3c=_[_0x2d1399('0x35')]({},_0x159b3c,_0x250d50['options']),db[_0x2d1399('0x4a')][_0x2d1399('0x7')](_0x159b3c)[_0x2d1399('0x20')](handleEntityNotFound(_0x3e9d6d,null))[_0x2d1399('0x20')](respondWithResult(_0x3e9d6d,null))['catch'](handleError(_0x3e9d6d,null));},exports[_0xf5c207('0x4')]=function(_0x1743b4,_0xe30626){const _0x420c22=_0xf5c207;return db['VoiceExtension'][_0x420c22('0x7')]({'where':{'id':_0x1743b4['params']['id']}})[_0x420c22('0x20')](handleEntityNotFound(_0xe30626,null))[_0x420c22('0x20')](removeEntity(_0xe30626,null))['catch'](handleError(_0xe30626,null));},exports[_0xf5c207('0x45')]=function(_0x712b41,_0x212535){const _0x7c2363=_0xf5c207;return _0x712b41['body'][_0x7c2363('0x37')]===_0x7c2363('0x3a')&&!_['startsWith'](_0x712b41[_0x7c2363('0x9')][_0x7c2363('0x33')],'_')&&(_0x712b41[_0x7c2363('0x9')][_0x7c2363('0x33')]='_'[_0x7c2363('0x5')](_0x712b41[_0x7c2363('0x9')][_0x7c2363('0x33')])),db[_0x7c2363('0x4a')][_0x7c2363('0x45')](_0x712b41[_0x7c2363('0x9')],{'raw':![]})[_0x7c2363('0x20')](function(_0x5be316){const _0x3a3eb2=_0x7c2363,_0x1fc2af=_0x712b41['user']['get']({'plain':!![]});if(!_0x1fc2af)throw new Error(_0x3a3eb2('0x3f'));if(_0x1fc2af[_0x3a3eb2('0x46')]==='user'){const _0x5ccb8a=_0x5be316[_0x3a3eb2('0x50')]({'plain':!![]}),_0x41f4ce=[{'name':_0x3a3eb2('0x3c'),'value':_0x3a3eb2('0x42')},{'name':_0x3a3eb2('0x1e'),'value':_0x3a3eb2('0x3a')},{'name':_0x3a3eb2('0xb'),'value':_0x3a3eb2('0x23')}],_0x4f03c9=_['find'](_0x41f4ce,[_0x3a3eb2('0x0'),_0x5ccb8a[_0x3a3eb2('0x37')]])[_0x3a3eb2('0x14')];return db[_0x3a3eb2('0x6')][_0x3a3eb2('0x7')]({'where':{'name':_0x4f03c9,'userProfileId':_0x1fc2af[_0x3a3eb2('0x2d')]},'raw':!![]})['then'](function(_0x5926b9){const _0x2781b7=_0x3a3eb2;return _0x5926b9&&_0x5926b9[_0x2781b7('0x4c')]===0x0?db[_0x2781b7('0x22')]['create']({'name':_0x5ccb8a[_0x2781b7('0x14')],'resourceId':_0x5ccb8a['id'],'type':_0x5926b9[_0x2781b7('0x14')],'sectionId':_0x5926b9['id']},{})['then'](function(){return _0x5be316;}):_0x5be316;})[_0x3a3eb2('0x2f')](function(_0x55417d){const _0x38c6b7=_0x3a3eb2;logger[_0x38c6b7('0x12')](_0x38c6b7('0x24'),_0x55417d);throw _0x55417d;});}return _0x5be316;})['then'](respondWithResult(_0x212535,0xc9))[_0x7c2363('0x2f')](handleError(_0x212535,null));},exports[_0xf5c207('0x2')]=function(_0x3ecaf0,_0x9a60c3){const _0x397011=_0xf5c207;return _0x3ecaf0[_0x397011('0x9')]['id']&&delete _0x3ecaf0[_0x397011('0x9')]['id'],db[_0x397011('0x4a')][_0x397011('0x7')]({'where':{'id':_0x3ecaf0[_0x397011('0x51')]['id']}})['then'](handleEntityNotFound(_0x9a60c3,null))['then'](function(_0x368765){const _0x4b2ecb=_0x397011;if(_0x368765)return db['VoiceExtension'][_0x4b2ecb('0x2')](_[_0x4b2ecb('0x4e')](_0x3ecaf0['body'],[_0x4b2ecb('0x33'),_0x4b2ecb('0x1a'),_0x4b2ecb('0x36'),_0x4b2ecb('0x49'),_0x4b2ecb('0xf'),_0x4b2ecb('0x17')]),{'where':{'context':_0x368765[_0x4b2ecb('0x1a')],'exten':_0x368765[_0x4b2ecb('0x33')]},'individualHooks':!![]})[_0x4b2ecb('0x20')](function(_0x2af45b){return _0x2af45b;});return null;})[_0x397011('0x20')](respondWithStatusCode(_0x9a60c3,null))[_0x397011('0x2f')](handleError(_0x9a60c3,null));},exports[_0xf5c207('0x44')]=function(_0x3e37c7,_0x514179){const _0x5456d7=_0xf5c207;return db[_0x5456d7('0x4a')]['findOne']({'where':{'id':_0x3e37c7[_0x5456d7('0x51')]['id']}})[_0x5456d7('0x20')](handleEntityNotFound(_0x514179,null))[_0x5456d7('0x20')](function(_0xc5b271){const _0x36a73f=_0x5456d7;if(_0xc5b271)return db[_0x36a73f('0x31')][_0x36a73f('0x39')](function(_0x2168a7){const _0x76a1a3=_0x36a73f;return db[_0x76a1a3('0x4a')][_0x76a1a3('0x4')]({'where':{'VoiceExtensionId':_0x3e37c7[_0x76a1a3('0x51')]['id']},'transaction':_0x2168a7})['then'](function(){const _0xa20edc=_0x76a1a3,_0x27ec89=_[_0xa20edc('0x4f')](_0x3e37c7[_0xa20edc('0x9')],function(_0x49a3d3){const _0x101cb4=_0xa20edc;return _0x49a3d3['VoiceExtensionId']=_0x3e37c7[_0x101cb4('0x51')]['id'],_0x49a3d3;});return db['VoiceExtension'][_0xa20edc('0xe')](_0x27ec89,{'transaction':_0x2168a7});});})[_0x36a73f('0x20')](function(){const _0x523d98=_0x36a73f;return db[_0x523d98('0x4a')]['findAndCountAll']({'where':{'isApp':!![],'VoiceExtensionId':_0x3e37c7[_0x523d98('0x51')]['id']},'order':_0x523d98('0x40')});});})[_0x5456d7('0x20')](respondWithResult(_0x514179,null))[_0x5456d7('0x2f')](handleError(_0x514179,null));}; \ No newline at end of file +const a872_0x3d99=['cast(priority\x20as\x20unsigned)','internal','register','VIRTUAL','order','description','send','then','lodash','VoiceExtension','transaction','sendStatus','fields','../../mysqldb','filter','where','autoAssociation','show','startsWith','concat','context','error','inbound','like','destroy','../../components/parsers/qs','create','sort','offset','api','value','find','../../config/logger','catch','UserProfileResource','OutboundRoutes','outbound','Unable\x20to\x20retrieve\x20the\x20current\x20user','keys','model','limit','cutdigits','includeAll','get','InternalRoutes','exten','update','params','VoiceExtensionId','Content-Range','key','undefined','user','include','map','../../rediscache','query','count','addApplications','type','filters','rawAttributes','body','role','includes','status','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','merge','json','attributes','stack','index','sequelize','findOne','name','InboundRoutes','userProfileId','intersection','length','fieldName'];(function(_0x4b8952,_0x5e8f8f){const _0x3d9955=function(_0x58b65a){while(--_0x58b65a){_0x4b8952['push'](_0x4b8952['shift']());}};_0x3d9955(++_0x5e8f8f);}(a872_0x3d99,0x1ad));const a872_0x58b6=function(_0x4b8952,_0x5e8f8f){_0x4b8952=_0x4b8952-0x1d3;let _0x3d9955=a872_0x3d99[_0x4b8952];return _0x3d9955;};const a872_0xad77a6=a872_0x58b6;'use strict';const _=require(a872_0xad77a6(0x20e)),qs=require(a872_0xad77a6(0x21f)),logger=require(a872_0xad77a6(0x1d6))(a872_0xad77a6(0x1d3)),{getSocket}=require(a872_0xad77a6(0x1ed)),socket=getSocket(),{db}=require(a872_0xad77a6(0x213)),{Op}=require('sequelize');require('./voiceExtension.socket')[a872_0xad77a6(0x208)](socket);function respondWithStatusCode(_0x93acc9,_0x260ecd){return _0x260ecd=_0x260ecd||0xcc,function(_0x421ea4){const _0x2cac63=a872_0x58b6;if(_0x421ea4)return _0x93acc9[_0x2cac63(0x211)](_0x260ecd);return _0x93acc9[_0x2cac63(0x1f7)](_0x260ecd)['end']();};}function respondWithResult(_0x3d0965,_0x423162){return _0x423162=_0x423162||0xc8,function(_0x4388af){const _0x2cf778=a872_0x58b6;if(_0x4388af)return _0x3d0965['status'](_0x423162)[_0x2cf778(0x1fa)](_0x4388af);};}function respondWithFilteredResult(_0x43bcad,_0xf3d8e6){return function(_0x16e114){const _0x31dc95=a872_0x58b6;if(_0x16e114){const _0x290336=_0x16e114[_0x31dc95(0x1ef)],_0x127744=_0xf3d8e6[_0x31dc95(0x222)];let _0x25a66d=_0xf3d8e6['offset']+_0xf3d8e6[_0x31dc95(0x1de)],_0x2a6f04;return _0x25a66d>=_0x290336?(_0x25a66d=_0x290336,_0x2a6f04=0xc8):_0x2a6f04=0xce,_0x43bcad[_0x31dc95(0x1f7)](_0x2a6f04),_0x43bcad['set'](_0x31dc95(0x1e7),_0x127744+'-'+_0x25a66d+'/'+_0x290336)['json'](_0x16e114);}return null;};}function removeEntity(_0x36e556){return function(_0x3774cf){const _0xd46cab=a872_0x58b6;if(_0x3774cf)return _0x3774cf[_0xd46cab(0x21e)]()['then'](function(){const _0x49a6dc=_0xd46cab,_0x5a51de=_0x3774cf[_0x49a6dc(0x1e1)]({'plain':!![]}),_0x40a701=[{'name':_0x49a6dc(0x201),'value':_0x49a6dc(0x21c),'ignore':![]},{'name':_0x49a6dc(0x1d9),'value':_0x49a6dc(0x1da),'ignore':![]},{'name':_0x49a6dc(0x1e2),'value':_0x49a6dc(0x207),'ignore':![]}],_0x2ee07e=_(_0x40a701)[_0x49a6dc(0x214)]('ignore')[_0x49a6dc(0x1ec)](_0x49a6dc(0x1d4))[_0x49a6dc(0x1d4)]();if(_[_0x49a6dc(0x1f6)](_0x2ee07e,_0x5a51de['type']))return;const _0x2204c2=_[_0x49a6dc(0x1d5)](_0x40a701,[_0x49a6dc(0x1d4),_0x5a51de[_0x49a6dc(0x1f1)]])[_0x49a6dc(0x200)];return db[_0x49a6dc(0x1d8)][_0x49a6dc(0x21e)]({'where':{'type':_0x2204c2,'resourceId':_0x5a51de['id']}})[_0x49a6dc(0x20d)](function(){return _0x3774cf;});})['then'](function(){const _0x584fd9=_0xd46cab;_0x36e556[_0x584fd9(0x1f7)](0xcc)['end']();});};}function handleEntityNotFound(_0x281937){return function(_0x47f0a8){const _0x16791d=a872_0x58b6;return!_0x47f0a8&&_0x281937[_0x16791d(0x211)](0x194),_0x47f0a8;};}function handleError(_0x4fdc9c,_0x2c345e){return _0x2c345e=_0x2c345e||0x1f4,function(_0x2511d5){const _0x221f80=a872_0x58b6;logger['error'](_0x2511d5[_0x221f80(0x1fc)]),_0x2511d5[_0x221f80(0x200)]&&delete _0x2511d5[_0x221f80(0x200)],_0x4fdc9c[_0x221f80(0x1f7)](_0x2c345e)[_0x221f80(0x20c)](_0x2511d5);};}exports[a872_0xad77a6(0x1fd)]=function(_0x4381e7,_0x3e1893){const _0x50f722=a872_0xad77a6;let _0x384ed5={};const _0x4c45fe={},_0x72bc6d={'count':0x0,'rows':[]},_0x3efef7=_['map'](db['VoiceExtension'][_0x50f722(0x1f3)],function(_0x4df2ed){const _0x46f940=_0x50f722;return{'name':_0x4df2ed[_0x46f940(0x205)],'type':_0x4df2ed['type'][_0x46f940(0x1e8)]};});_0x4c45fe[_0x50f722(0x1dd)]=_['map'](_0x3efef7,_0x50f722(0x200)),_0x4c45fe['query']=_[_0x50f722(0x1dc)](_0x4381e7['query']),_0x4c45fe['filters']=_[_0x50f722(0x203)](_0x4c45fe[_0x50f722(0x1dd)],_0x4c45fe['query']),_0x384ed5[_0x50f722(0x1fb)]=_[_0x50f722(0x203)](_0x4c45fe[_0x50f722(0x1dd)],qs[_0x50f722(0x212)](_0x4381e7[_0x50f722(0x1ee)][_0x50f722(0x212)])),_0x384ed5['attributes']=_0x384ed5[_0x50f722(0x1fb)][_0x50f722(0x204)]?_0x384ed5[_0x50f722(0x1fb)]:_0x4c45fe[_0x50f722(0x1dd)];typeof _0x4381e7[_0x50f722(0x1ee)]['nolimit']===_0x50f722(0x1e9)&&(_0x384ed5[_0x50f722(0x1de)]=qs[_0x50f722(0x1de)](_0x4381e7['query'][_0x50f722(0x1de)]),_0x384ed5[_0x50f722(0x222)]=qs[_0x50f722(0x222)](_0x4381e7[_0x50f722(0x1ee)][_0x50f722(0x222)]));_0x384ed5[_0x50f722(0x20a)]=qs[_0x50f722(0x221)](_0x4381e7[_0x50f722(0x1ee)][_0x50f722(0x221)]),_0x384ed5[_0x50f722(0x215)]=qs['filters'](_['pick'](_0x4381e7[_0x50f722(0x1ee)],_0x4c45fe[_0x50f722(0x1f2)]),_0x3efef7);_0x4381e7[_0x50f722(0x1ee)][_0x50f722(0x214)]&&(_0x384ed5[_0x50f722(0x215)]=_['merge'](_0x384ed5['where'],{[Op['or']]:_[_0x50f722(0x1ec)](_0x3efef7,function(_0x2076cc){const _0x1b9e82=_0x50f722;if(_0x2076cc[_0x1b9e82(0x1f1)]!==_0x1b9e82(0x209)){const _0x66ce68={};return _0x66ce68[_0x2076cc[_0x1b9e82(0x200)]]={[Op[_0x1b9e82(0x21d)]]:'%'+_0x4381e7['query']['filter']+'%'},_0x66ce68;}})}));_0x384ed5=_[_0x50f722(0x1f9)]({},_0x384ed5,_0x4381e7['options']);const _0x118489={'where':_0x384ed5[_0x50f722(0x215)]};return db[_0x50f722(0x20f)][_0x50f722(0x1ef)](_0x118489)['then'](function(_0x4a7a65){const _0x2986e4=_0x50f722;return _0x72bc6d[_0x2986e4(0x1ef)]=_0x4a7a65,_0x4381e7[_0x2986e4(0x1ee)][_0x2986e4(0x1e0)]&&(_0x384ed5[_0x2986e4(0x1eb)]=[{'all':!![]}]),db[_0x2986e4(0x20f)]['findAll'](_0x384ed5);})['then'](function(_0x417d18){return _0x72bc6d['rows']=_0x417d18,_0x72bc6d;})[_0x50f722(0x20d)](respondWithFilteredResult(_0x3e1893,_0x384ed5))[_0x50f722(0x1d7)](handleError(_0x3e1893,null));},exports[a872_0xad77a6(0x217)]=function(_0x3a1467,_0x2c204d){const _0x3e21e2=a872_0xad77a6;let _0x42e1e6={'raw':![],'where':{'id':_0x3a1467[_0x3e21e2(0x1e5)]['id']}};const _0x3b28fe={};return _0x3b28fe[_0x3e21e2(0x1dd)]=_[_0x3e21e2(0x1dc)](db[_0x3e21e2(0x20f)][_0x3e21e2(0x1f3)]),_0x3b28fe[_0x3e21e2(0x1ee)]=_['keys'](_0x3a1467[_0x3e21e2(0x1ee)]),_0x3b28fe[_0x3e21e2(0x1f2)]=_['intersection'](_0x3b28fe[_0x3e21e2(0x1dd)],_0x3b28fe[_0x3e21e2(0x1ee)]),_0x42e1e6[_0x3e21e2(0x1fb)]=_['intersection'](_0x3b28fe[_0x3e21e2(0x1dd)],qs[_0x3e21e2(0x212)](_0x3a1467[_0x3e21e2(0x1ee)][_0x3e21e2(0x212)])),_0x42e1e6[_0x3e21e2(0x1fb)]=_0x42e1e6[_0x3e21e2(0x1fb)][_0x3e21e2(0x204)]?_0x42e1e6[_0x3e21e2(0x1fb)]:_0x3b28fe['model'],_0x3a1467['query'][_0x3e21e2(0x1e0)]&&(_0x42e1e6['include']=[{'all':!![]}]),_0x42e1e6=_['merge']({},_0x42e1e6,_0x3a1467['options']),db[_0x3e21e2(0x20f)]['findOne'](_0x42e1e6)[_0x3e21e2(0x20d)](handleEntityNotFound(_0x2c204d,null))[_0x3e21e2(0x20d)](respondWithResult(_0x2c204d,null))[_0x3e21e2(0x1d7)](handleError(_0x2c204d,null));},exports[a872_0xad77a6(0x21e)]=function(_0x3a2191,_0x1fa6b1){const _0x31cebe=a872_0xad77a6;return db[_0x31cebe(0x20f)]['findOne']({'where':{'id':_0x3a2191[_0x31cebe(0x1e5)]['id']}})[_0x31cebe(0x20d)](handleEntityNotFound(_0x1fa6b1,null))[_0x31cebe(0x20d)](removeEntity(_0x1fa6b1,null))['catch'](handleError(_0x1fa6b1,null));},exports[a872_0xad77a6(0x220)]=function(_0x4b0423,_0x55eb9f){const _0x5b04f0=a872_0xad77a6;return _0x4b0423[_0x5b04f0(0x1f4)][_0x5b04f0(0x1f1)]===_0x5b04f0(0x1da)&&!_[_0x5b04f0(0x218)](_0x4b0423[_0x5b04f0(0x1f4)][_0x5b04f0(0x1e3)],'_')&&(_0x4b0423[_0x5b04f0(0x1f4)][_0x5b04f0(0x1e3)]='_'[_0x5b04f0(0x219)](_0x4b0423['body'][_0x5b04f0(0x1e3)])),db[_0x5b04f0(0x20f)][_0x5b04f0(0x220)](_0x4b0423[_0x5b04f0(0x1f4)],{'raw':![]})[_0x5b04f0(0x20d)](function(_0x1617c6){const _0x2ac090=_0x5b04f0,_0x536c62=_0x4b0423[_0x2ac090(0x1ea)][_0x2ac090(0x1e1)]({'plain':!![]});if(!_0x536c62)throw new Error(_0x2ac090(0x1db));if(_0x536c62[_0x2ac090(0x1f5)]===_0x2ac090(0x1ea)){const _0x2bfe0d=_0x1617c6[_0x2ac090(0x1e1)]({'plain':!![]}),_0x5b1f3e=[{'name':_0x2ac090(0x201),'value':_0x2ac090(0x21c)},{'name':_0x2ac090(0x1d9),'value':_0x2ac090(0x1da)},{'name':_0x2ac090(0x1e2),'value':_0x2ac090(0x207)}],_0x47443e=_[_0x2ac090(0x1d5)](_0x5b1f3e,[_0x2ac090(0x1d4),_0x2bfe0d[_0x2ac090(0x1f1)]])[_0x2ac090(0x200)];return db['UserProfileSection']['findOne']({'where':{'name':_0x47443e,'userProfileId':_0x536c62[_0x2ac090(0x202)]},'raw':!![]})[_0x2ac090(0x20d)](function(_0x31c758){const _0x53ff3d=_0x2ac090;return _0x31c758&&_0x31c758[_0x53ff3d(0x216)]===0x0?db['UserProfileResource'][_0x53ff3d(0x220)]({'name':_0x2bfe0d['name'],'resourceId':_0x2bfe0d['id'],'type':_0x31c758[_0x53ff3d(0x200)],'sectionId':_0x31c758['id']},{})[_0x53ff3d(0x20d)](function(){return _0x1617c6;}):_0x1617c6;})['catch'](function(_0x4f07ad){const _0x49c0b4=_0x2ac090;logger[_0x49c0b4(0x21b)](_0x49c0b4(0x1f8),_0x4f07ad);throw _0x4f07ad;});}return _0x1617c6;})[_0x5b04f0(0x20d)](respondWithResult(_0x55eb9f,0xc9))[_0x5b04f0(0x1d7)](handleError(_0x55eb9f,null));},exports[a872_0xad77a6(0x1e4)]=function(_0xd0b140,_0x9dfdc6){const _0x31bfac=a872_0xad77a6;return _0xd0b140['body']['id']&&delete _0xd0b140[_0x31bfac(0x1f4)]['id'],db[_0x31bfac(0x20f)]['findOne']({'where':{'id':_0xd0b140[_0x31bfac(0x1e5)]['id']}})[_0x31bfac(0x20d)](handleEntityNotFound(_0x9dfdc6,null))[_0x31bfac(0x20d)](function(_0x1afbc9){const _0x3310d8=_0x31bfac;if(_0x1afbc9)return db[_0x3310d8(0x20f)][_0x3310d8(0x1e4)](_['pick'](_0xd0b140[_0x3310d8(0x1f4)],[_0x3310d8(0x1e3),_0x3310d8(0x21a),_0x3310d8(0x20b),'recordingFormat',_0x3310d8(0x1df),'mandatoryDisposition']),{'where':{'context':_0x1afbc9[_0x3310d8(0x21a)],'exten':_0x1afbc9[_0x3310d8(0x1e3)]},'individualHooks':!![]})[_0x3310d8(0x20d)](function(_0x34a4a6){return _0x34a4a6;});return null;})[_0x31bfac(0x20d)](respondWithStatusCode(_0x9dfdc6,null))[_0x31bfac(0x1d7)](handleError(_0x9dfdc6,null));},exports[a872_0xad77a6(0x1f0)]=function(_0xbc5f92,_0x20976c){const _0x514943=a872_0xad77a6;return db[_0x514943(0x20f)][_0x514943(0x1ff)]({'where':{'id':_0xbc5f92[_0x514943(0x1e5)]['id']}})['then'](handleEntityNotFound(_0x20976c,null))[_0x514943(0x20d)](function(_0x3f7aa2){const _0x1e1cf6=_0x514943;if(_0x3f7aa2)return db[_0x1e1cf6(0x1fe)][_0x1e1cf6(0x210)](function(_0x178df9){const _0x1afc23=_0x1e1cf6;return db[_0x1afc23(0x20f)][_0x1afc23(0x21e)]({'where':{'VoiceExtensionId':_0xbc5f92[_0x1afc23(0x1e5)]['id']},'transaction':_0x178df9})['then'](function(){const _0x387f42=_0x1afc23,_0x2c6afc=_[_0x387f42(0x1ec)](_0xbc5f92[_0x387f42(0x1f4)],function(_0x34e6ab){const _0xacacd6=_0x387f42;return _0x34e6ab[_0xacacd6(0x1e6)]=_0xbc5f92['params']['id'],_0x34e6ab;});return db[_0x387f42(0x20f)]['bulkCreate'](_0x2c6afc,{'transaction':_0x178df9});});})[_0x1e1cf6(0x20d)](function(){const _0x4426d8=_0x1e1cf6;return db[_0x4426d8(0x20f)]['findAndCountAll']({'where':{'isApp':!![],'VoiceExtensionId':_0xbc5f92[_0x4426d8(0x1e5)]['id']},'order':_0x4426d8(0x206)});});})[_0x514943(0x20d)](respondWithResult(_0x20976c,null))['catch'](handleError(_0x20976c,null));}; \ No newline at end of file diff --git a/server/api/voiceExtension/voiceExtension.events.js b/server/api/voiceExtension/voiceExtension.events.js index 9302c86..8a12072 100644 --- a/server/api/voiceExtension/voiceExtension.events.js +++ b/server/api/voiceExtension/voiceExtension.events.js @@ -1 +1 @@ -const a728_0x176d=['exports','setMaxListeners','remove','VoiceExtension','events','../../mysqldb','addHook','emit'];(function(_0x4bb7a3,_0x176dcb){const _0x33ad02=function(_0x12fcf8){while(--_0x12fcf8){_0x4bb7a3['push'](_0x4bb7a3['shift']());}};_0x33ad02(++_0x176dcb);}(a728_0x176d,0x9b));const a728_0x33ad=function(_0x4bb7a3,_0x176dcb){_0x4bb7a3=_0x4bb7a3-0x0;let _0x33ad02=a728_0x176d[_0x4bb7a3];return _0x33ad02;};const _0x195f93=a728_0x33ad;'use strict';const EventEmitter=require(_0x195f93('0x1')),VoiceExtension=require(_0x195f93('0x2'))['db'][_0x195f93('0x0')],VoiceExtensionEvents=new EventEmitter();VoiceExtensionEvents[_0x195f93('0x6')](0x0);const events={'afterCreate':'save','afterUpdate':'update','afterDestroy':_0x195f93('0x7')};function emitEvent(_0x12fcf8){return function(_0x16dd3b){const _0x38c3c0=a728_0x33ad;VoiceExtensionEvents[_0x38c3c0('0x4')](_0x12fcf8+':'+_0x16dd3b['id'],_0x16dd3b),VoiceExtensionEvents[_0x38c3c0('0x4')](_0x12fcf8,_0x16dd3b);};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];VoiceExtension[_0x195f93('0x3')](e,emitEvent(event));}}module[_0x195f93('0x5')]=VoiceExtensionEvents; \ No newline at end of file +const a873_0x55c3=['addHook','save','update','emit','../../mysqldb','setMaxListeners','remove','exports'];(function(_0x1d66b6,_0x1df70b){const _0x55c33b=function(_0x384fcd){while(--_0x384fcd){_0x1d66b6['push'](_0x1d66b6['shift']());}};_0x55c33b(++_0x1df70b);}(a873_0x55c3,0x1a9));const a873_0x384f=function(_0x1d66b6,_0x1df70b){_0x1d66b6=_0x1d66b6-0x86;let _0x55c33b=a873_0x55c3[_0x1d66b6];return _0x55c33b;};const a873_0x1434a5=a873_0x384f;'use strict';const EventEmitter=require('events'),VoiceExtension=require(a873_0x1434a5(0x89))['db']['VoiceExtension'],VoiceExtensionEvents=new EventEmitter();VoiceExtensionEvents[a873_0x1434a5(0x8a)](0x0);const events={'afterCreate':a873_0x1434a5(0x86),'afterUpdate':a873_0x1434a5(0x87),'afterDestroy':a873_0x1434a5(0x8b)};function emitEvent(_0x112650){return function(_0x126f25){const _0x4c041d=a873_0x384f;VoiceExtensionEvents[_0x4c041d(0x88)](_0x112650+':'+_0x126f25['id'],_0x126f25),VoiceExtensionEvents[_0x4c041d(0x88)](_0x112650,_0x126f25);};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];VoiceExtension[a873_0x1434a5(0x8d)](e,emitEvent(event));}}module[a873_0x1434a5(0x8c)]=VoiceExtensionEvents; \ No newline at end of file diff --git a/server/api/voiceExtension/voiceExtension.model.js b/server/api/voiceExtension/voiceExtension.model.js index 15c3698..e37742d 100644 --- a/server/api/voiceExtension/voiceExtension.model.js +++ b/server/api/voiceExtension/voiceExtension.model.js @@ -1 +1 @@ -const a729_0x2254=['./voiceExtension.attributes','define'];(function(_0x3bd759,_0x225480){const _0x3a855c=function(_0xd59f7f){while(--_0xd59f7f){_0x3bd759['push'](_0x3bd759['shift']());}};_0x3a855c(++_0x225480);}(a729_0x2254,0x1c5));const a729_0x3a85=function(_0x3bd759,_0x225480){_0x3bd759=_0x3bd759-0x0;let _0x3a855c=a729_0x2254[_0x3bd759];return _0x3a855c;};const _0x4d017a=a729_0x3a85;'use strict';const attributes=require(_0x4d017a('0x1'));module['exports']=function(_0xd59f7f){const _0x2a6147=_0x4d017a,_0x1027c3=_0xd59f7f[_0x2a6147('0x0')]('VoiceExtension',attributes,{'tableName':'voice_extensions','paranoid':![],'indexes':[],'timestamps':!![]});return _0x1027c3;}; \ No newline at end of file +const a874_0x1303=['init','function','VoiceExtension','sequelize','./voiceExtension.options','exports','./voiceExtension.attributes'];(function(_0x3e1d66,_0x3a2f61){const _0x13033b=function(_0x304d08){while(--_0x304d08){_0x3e1d66['push'](_0x3e1d66['shift']());}};_0x13033b(++_0x3a2f61);}(a874_0x1303,0x96));const a874_0x304d=function(_0x3e1d66,_0x3a2f61){_0x3e1d66=_0x3e1d66-0x139;let _0x13033b=a874_0x1303[_0x3e1d66];return _0x13033b;};const a874_0x27394e=a874_0x304d;'use strict';const {Model}=require(a874_0x27394e(0x139)),{attributes}=require(a874_0x27394e(0x13c)),{options}=require(a874_0x27394e(0x13a));class VoiceExtension extends Model{}function init(_0x2e6224,_0x4e6422){const _0x4a752c=a874_0x27394e,_0x201800=options(_0x2e6224),_0x42c25a=typeof _0x4e6422===_0x4a752c(0x13e)?_0x4e6422(_0x201800):_0x201800;return VoiceExtension['init'](attributes,_0x42c25a),VoiceExtension;}module[a874_0x27394e(0x13b)][a874_0x27394e(0x13f)]=VoiceExtension,module[a874_0x27394e(0x13b)][a874_0x27394e(0x13d)]=init; \ No newline at end of file diff --git a/server/api/voiceExtension/voiceExtension.options.js b/server/api/voiceExtension/voiceExtension.options.js new file mode 100644 index 0000000..8ceae22 --- /dev/null +++ b/server/api/voiceExtension/voiceExtension.options.js @@ -0,0 +1 @@ +var a875_0x3a44=['voice_extensions','options'];(function(_0x4a0315,_0x257e45){var _0x3a440a=function(_0x352564){while(--_0x352564){_0x4a0315['push'](_0x4a0315['shift']());}};_0x3a440a(++_0x257e45);}(a875_0x3a44,0xc2));var a875_0x3525=function(_0x4a0315,_0x257e45){_0x4a0315=_0x4a0315-0x9a;var _0x3a440a=a875_0x3a44[_0x4a0315];return _0x3a440a;};var a875_0x3e11cd=a875_0x3525;function options(_0x1a6c87){var _0x5a9ccb=a875_0x3525;return{'sequelize':_0x1a6c87,'tableName':_0x5a9ccb(0x9a),'paranoid':![],'indexes':[],'timestamps':!![]};}module['exports'][a875_0x3e11cd(0x9b)]=options; \ No newline at end of file diff --git a/server/api/voiceExtension/voiceExtension.rpc.js b/server/api/voiceExtension/voiceExtension.rpc.js index d3554de..336873a 100644 --- a/server/api/voiceExtension/voiceExtension.rpc.js +++ b/server/api/voiceExtension/voiceExtension.rpc.js @@ -1 +1 @@ -const a730_0x8c72=['info','map','../../mysqldb','attributes','where','lodash','options','model','error','raw','include','findAll','debug','message','VoiceExtension','../../config/logger','./voiceExtension.socket','rpc','catch','../../rediscache','GetVoiceExtension'];(function(_0x440d72,_0x8c72a5){const _0xb8792e=function(_0x464fe9){while(--_0x464fe9){_0x440d72['push'](_0x440d72['shift']());}};_0xb8792e(++_0x8c72a5);}(a730_0x8c72,0x83));const a730_0xb879=function(_0x440d72,_0x8c72a5){_0x440d72=_0x440d72-0x0;let _0xb8792e=a730_0x8c72[_0x440d72];return _0xb8792e;};const _0x2e8cdb=a730_0xb879;'use strict';const _=require(_0x2e8cdb('0x0')),db=require(_0x2e8cdb('0x12'))['db'],logger=require(_0x2e8cdb('0xa'))(_0x2e8cdb('0xc')),{getSocket}=require(_0x2e8cdb('0xe')),socket=getSocket();require(_0x2e8cdb('0xb'))['register'](socket),exports[_0x2e8cdb('0xf')]=function(_0x464fe9){const _0x39b7fd=this;return new Promise(function(_0x587e10,_0x23516e){const _0x58518d=a730_0xb879;return db[_0x58518d('0x9')][_0x58518d('0x6')]({'raw':_0x464fe9['options']?_0x464fe9[_0x58518d('0x1')][_0x58518d('0x4')]===undefined?!![]:![]:!![],'where':_0x464fe9['options']?_0x464fe9['options'][_0x58518d('0x14')]||null:null,'attributes':_0x464fe9[_0x58518d('0x1')]?_0x464fe9[_0x58518d('0x1')][_0x58518d('0x13')]||null:null,'limit':_0x464fe9[_0x58518d('0x1')]?_0x464fe9[_0x58518d('0x1')]['limit']||null:null,'include':_0x464fe9[_0x58518d('0x1')]?_0x464fe9[_0x58518d('0x1')][_0x58518d('0x5')]?_[_0x58518d('0x11')](_0x464fe9[_0x58518d('0x1')][_0x58518d('0x5')],function(_0x505786){const _0x461f36=_0x58518d;return{'model':db[_0x505786[_0x461f36('0x2')]],'as':_0x505786['as'],'attributes':_0x505786[_0x461f36('0x13')],'include':_0x505786[_0x461f36('0x5')]?_[_0x461f36('0x11')](_0x505786[_0x461f36('0x5')],function(_0x4a2d4f){const _0x4e82e8=_0x461f36;return{'model':db[_0x4a2d4f[_0x4e82e8('0x2')]],'as':_0x4a2d4f['as'],'attributes':_0x4a2d4f[_0x4e82e8('0x13')],'include':_0x4a2d4f['include']?_[_0x4e82e8('0x11')](_0x4a2d4f[_0x4e82e8('0x5')],function(_0x5b56c3){const _0x3a6ada=_0x4e82e8;return{'model':db[_0x5b56c3[_0x3a6ada('0x2')]],'as':_0x5b56c3['as'],'attributes':_0x5b56c3[_0x3a6ada('0x13')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x3fe42c){const _0x1828da=_0x58518d;logger[_0x1828da('0x10')](_0x1828da('0xf'),_0x464fe9),logger[_0x1828da('0x7')](_0x1828da('0xf'),_0x464fe9,JSON['stringify'](_0x3fe42c)),_0x587e10(_0x3fe42c);})[_0x58518d('0xd')](function(_0x50135a){const _0x19221f=_0x58518d;logger[_0x19221f('0x3')](_0x19221f('0xf'),_0x50135a[_0x19221f('0x8')],_0x464fe9),_0x23516e(_0x39b7fd[_0x19221f('0x3')](0x1f4,_0x50135a[_0x19221f('0x8')]));});});}; \ No newline at end of file +const a876_0x3fde=['model','error','map','attributes','../../mysqldb','register','./voiceExtension.socket','options','raw','rpc','include','info','GetVoiceExtension','then','message','findAll','catch','../../rediscache','lodash'];(function(_0x33a0f8,_0x34ce5f){const _0x3fde80=function(_0x516cb6){while(--_0x516cb6){_0x33a0f8['push'](_0x33a0f8['shift']());}};_0x3fde80(++_0x34ce5f);}(a876_0x3fde,0x160));const a876_0x516c=function(_0x33a0f8,_0x34ce5f){_0x33a0f8=_0x33a0f8-0x91;let _0x3fde80=a876_0x3fde[_0x33a0f8];return _0x3fde80;};const a876_0xe08027=a876_0x516c;'use strict';const _=require(a876_0xe08027(0x99)),db=require(a876_0xe08027(0x9e))['db'],logger=require('../../config/logger')(a876_0xe08027(0xa3)),{getSocket}=require(a876_0xe08027(0x98)),socket=getSocket();require(a876_0xe08027(0xa0))[a876_0xe08027(0x9f)](socket),exports[a876_0xe08027(0x93)]=function(_0xf8ad52){const _0x38d13f=this;return new Promise(function(_0x116b18,_0x554d2a){const _0xfd3fa5=a876_0x516c;return db['VoiceExtension'][_0xfd3fa5(0x96)]({'raw':_0xf8ad52[_0xfd3fa5(0xa1)]?_0xf8ad52[_0xfd3fa5(0xa1)][_0xfd3fa5(0xa2)]===undefined?!![]:![]:!![],'where':_0xf8ad52[_0xfd3fa5(0xa1)]?_0xf8ad52['options']['where']||null:null,'attributes':_0xf8ad52[_0xfd3fa5(0xa1)]?_0xf8ad52['options'][_0xfd3fa5(0x9d)]||null:null,'limit':_0xf8ad52['options']?_0xf8ad52[_0xfd3fa5(0xa1)]['limit']||null:null,'include':_0xf8ad52[_0xfd3fa5(0xa1)]?_0xf8ad52[_0xfd3fa5(0xa1)][_0xfd3fa5(0x91)]?_[_0xfd3fa5(0x9c)](_0xf8ad52['options'][_0xfd3fa5(0x91)],function(_0x1a66e3){const _0x15d9ba=_0xfd3fa5;return{'model':db[_0x1a66e3[_0x15d9ba(0x9a)]],'as':_0x1a66e3['as'],'attributes':_0x1a66e3[_0x15d9ba(0x9d)],'include':_0x1a66e3[_0x15d9ba(0x91)]?_['map'](_0x1a66e3[_0x15d9ba(0x91)],function(_0x3e827f){const _0x440b80=_0x15d9ba;return{'model':db[_0x3e827f[_0x440b80(0x9a)]],'as':_0x3e827f['as'],'attributes':_0x3e827f[_0x440b80(0x9d)],'include':_0x3e827f['include']?_[_0x440b80(0x9c)](_0x3e827f[_0x440b80(0x91)],function(_0x1446dc){const _0x251799=_0x440b80;return{'model':db[_0x1446dc[_0x251799(0x9a)]],'as':_0x1446dc['as'],'attributes':_0x1446dc[_0x251799(0x9d)]};}):[]};}):[]};}):[]:[]})[_0xfd3fa5(0x94)](function(_0x18e9a0){const _0xd3eb73=_0xfd3fa5;logger[_0xd3eb73(0x92)](_0xd3eb73(0x93),_0xf8ad52),logger['debug'](_0xd3eb73(0x93),_0xf8ad52,JSON['stringify'](_0x18e9a0)),_0x116b18(_0x18e9a0);})[_0xfd3fa5(0x97)](function(_0x4aa11d){const _0x3a8589=_0xfd3fa5;logger['error'](_0x3a8589(0x93),_0x4aa11d[_0x3a8589(0x95)],_0xf8ad52),_0x554d2a(_0x38d13f[_0x3a8589(0x9b)](0x1f4,_0x4aa11d[_0x3a8589(0x95)]));});});}; \ No newline at end of file diff --git a/server/api/voiceExtension/voiceExtension.socket.js b/server/api/voiceExtension/voiceExtension.socket.js index f1006d0..da8b0cc 100644 --- a/server/api/voiceExtension/voiceExtension.socket.js +++ b/server/api/voiceExtension/voiceExtension.socket.js @@ -1 +1 @@ -const a731_0x3ef2=['register','save','length','./voiceExtension.events','voiceExtension:','emit'];(function(_0x22670a,_0x3ef247){const _0x3858b8=function(_0xfd2574){while(--_0xfd2574){_0x22670a['push'](_0x22670a['shift']());}};_0x3858b8(++_0x3ef247);}(a731_0x3ef2,0xb4));const a731_0x3858=function(_0x22670a,_0x3ef247){_0x22670a=_0x22670a-0x0;let _0x3858b8=a731_0x3ef2[_0x22670a];return _0x3858b8;};const _0x93c9c6=a731_0x3858;'use strict';const VoiceExtensionEvents=require(_0x93c9c6('0x3')),events=[_0x93c9c6('0x1'),'remove','update'];function createListener(_0xfd2574,_0xf90db7){return function(_0x44e70b){const _0x364a9a=a731_0x3858;_0xf90db7[_0x364a9a('0x5')](_0xfd2574,_0x44e70b);};}exports[_0x93c9c6('0x0')]=function(_0x375bc0){const _0x4606ca=_0x93c9c6;for(let _0x331431=0x0,_0x2193e0=events[_0x4606ca('0x2')];_0x331431<_0x2193e0;_0x331431++){const _0x22f7e1=events[_0x331431],_0x468b3a=createListener(_0x4606ca('0x4')+_0x22f7e1,_0x375bc0);VoiceExtensionEvents['on'](_0x22f7e1,_0x468b3a);}}; \ No newline at end of file +const a877_0x43a2=['voiceExtension:','./voiceExtension.events','remove','save','update','emit'];(function(_0x3e8e37,_0x520a2f){const _0x43a243=function(_0x3a0e68){while(--_0x3a0e68){_0x3e8e37['push'](_0x3e8e37['shift']());}};_0x43a243(++_0x520a2f);}(a877_0x43a2,0x7b));const a877_0x3a0e=function(_0x3e8e37,_0x520a2f){_0x3e8e37=_0x3e8e37-0x145;let _0x43a243=a877_0x43a2[_0x3e8e37];return _0x43a243;};const a877_0x4d5c28=a877_0x3a0e;'use strict';const VoiceExtensionEvents=require(a877_0x4d5c28(0x149)),events=[a877_0x4d5c28(0x145),a877_0x4d5c28(0x14a),a877_0x4d5c28(0x146)];function createListener(_0x53bcd2,_0x369e3f){return function(_0x56c9e1){const _0x5f5c84=a877_0x3a0e;_0x369e3f[_0x5f5c84(0x147)](_0x53bcd2,_0x56c9e1);};}exports['register']=function(_0x1af806){const _0xdd6c1c=a877_0x4d5c28;for(let _0x51f90a=0x0,_0x4c9b0f=events['length'];_0x51f90a<_0x4c9b0f;_0x51f90a++){const _0x1a475b=events[_0x51f90a],_0x27d9a1=createListener(_0xdd6c1c(0x148)+_0x1a475b,_0x1af806);VoiceExtensionEvents['on'](_0x1a475b,_0x27d9a1);}}; \ No newline at end of file diff --git a/server/api/voiceMail/index.js b/server/api/voiceMail/index.js index ac712a8..6bfb729 100644 --- a/server/api/voiceMail/index.js +++ b/server/api/voiceMail/index.js @@ -1 +1 @@ -const a732_0x1d33=['../../components/auth/service','Router','./voiceMail.controller','delete','show','post','destroy','index','update','isAuthenticated','/:id/messages','/:id','getMessages','put','express','get'];(function(_0x24e5ce,_0x1d334c){const _0x54d99a=function(_0x24141b){while(--_0x24141b){_0x24e5ce['push'](_0x24e5ce['shift']());}};_0x54d99a(++_0x1d334c);}(a732_0x1d33,0x1b3));const a732_0x54d9=function(_0x24e5ce,_0x1d334c){_0x24e5ce=_0x24e5ce-0x0;let _0x54d99a=a732_0x1d33[_0x24e5ce];return _0x54d99a;};const _0x480196=a732_0x54d9;'use strict';const express=require(_0x480196('0xb')),router=express[_0x480196('0xe')](),auth=require(_0x480196('0xd')),controller=require(_0x480196('0xf'));router['get']('/',auth[_0x480196('0x6')](),controller[_0x480196('0x4')]),router['get'](_0x480196('0x8'),auth[_0x480196('0x6')](),controller[_0x480196('0x1')]),router[_0x480196('0xc')](_0x480196('0x7'),auth['isAuthenticated'](),controller[_0x480196('0x9')]),router[_0x480196('0x2')]('/',auth['isAuthenticated'](),controller['create']),router[_0x480196('0xa')]('/:id',auth['isAuthenticated'](),controller[_0x480196('0x5')]),router[_0x480196('0x0')]('/:id',auth[_0x480196('0x6')](),controller[_0x480196('0x3')]),module['exports']=router; \ No newline at end of file +const a878_0x125a=['getMessages','/:id/messages','express','destroy','put','./voiceMail.controller','get','isAuthenticated','/:id','update','delete','Router','show','create','post','index','exports'];(function(_0x1cb896,_0x3778c4){const _0x125a87=function(_0x29b40f){while(--_0x29b40f){_0x1cb896['push'](_0x1cb896['shift']());}};_0x125a87(++_0x3778c4);}(a878_0x125a,0x133));const a878_0x29b4=function(_0x1cb896,_0x3778c4){_0x1cb896=_0x1cb896-0xd3;let _0x125a87=a878_0x125a[_0x1cb896];return _0x125a87;};const a878_0x52d226=a878_0x29b4;'use strict';const express=require(a878_0x52d226(0xd4)),router=express[a878_0x52d226(0xdd)](),auth=require('../../components/auth/service'),controller=require(a878_0x52d226(0xd7));router[a878_0x52d226(0xd8)]('/',auth[a878_0x52d226(0xd9)](),controller[a878_0x52d226(0xe1)]),router[a878_0x52d226(0xd8)](a878_0x52d226(0xda),auth[a878_0x52d226(0xd9)](),controller[a878_0x52d226(0xde)]),router[a878_0x52d226(0xd8)](a878_0x52d226(0xd3),auth[a878_0x52d226(0xd9)](),controller[a878_0x52d226(0xe3)]),router[a878_0x52d226(0xe0)]('/',auth[a878_0x52d226(0xd9)](),controller[a878_0x52d226(0xdf)]),router[a878_0x52d226(0xd6)](a878_0x52d226(0xda),auth[a878_0x52d226(0xd9)](),controller[a878_0x52d226(0xdb)]),router[a878_0x52d226(0xdc)](a878_0x52d226(0xda),auth[a878_0x52d226(0xd9)](),controller[a878_0x52d226(0xd5)]),module[a878_0x52d226(0xe2)]=router; \ No newline at end of file diff --git a/server/api/voiceMail/voiceMail.attributes.js b/server/api/voiceMail/voiceMail.attributes.js index 2e08d40..b140380 100644 --- a/server/api/voiceMail/voiceMail.attributes.js +++ b/server/api/voiceMail/voiceMail.attributes.js @@ -1 +1 @@ -const a733_0x52e7=['from-voicemail','email','mailbox','string','\x20-\x20','VIRTUAL','yes','INTEGER','getDataValue','STRING','trim','sequelize','exports','TINYINT(4)','contest_mailbox','ENUM'];(function(_0x5d6b4c,_0x52e724){const _0x1559e0=function(_0x1883fe){while(--_0x1883fe){_0x5d6b4c['push'](_0x5d6b4c['shift']());}};_0x1559e0(++_0x52e724);}(a733_0x52e7,0xfc));const a733_0x1559=function(_0x5d6b4c,_0x52e724){_0x5d6b4c=_0x5d6b4c-0x0;let _0x1559e0=a733_0x52e7[_0x5d6b4c];return _0x1559e0;};const _0x5e3ff2=a733_0x1559;'use strict';const Sequelize=require(_0x5e3ff2('0xf'));module[_0x5e3ff2('0x0')]={'customer_id':{'type':Sequelize[_0x5e3ff2('0xd')]},'context':{'type':Sequelize[_0x5e3ff2('0xd')],'defaultValue':_0x5e3ff2('0x4'),'unique':'contest_mailbox'},'mailbox':{'type':Sequelize[_0x5e3ff2('0xd')],'defaultValue':'','allowNull':![],'unique':_0x5e3ff2('0x2')},'password':{'type':Sequelize[_0x5e3ff2('0xd')]},'fullname':{'type':Sequelize[_0x5e3ff2('0xd')]},'email':{'type':Sequelize[_0x5e3ff2('0xd')],'validate':{'isEmail':!![]},'set':function(_0x1883fe){const _0xaa86e4=_0x5e3ff2;this['setDataValue'](_0xaa86e4('0x5'),typeof _0x1883fe===_0xaa86e4('0x7')&&_0x1883fe[_0xaa86e4('0xe')]()?_0x1883fe['trim']():null);}},'pager':{'type':Sequelize[_0x5e3ff2('0xd')]},'tz':{'type':Sequelize['STRING'],'defaultValue':'central'},'attach':{'type':Sequelize['ENUM'](_0x5e3ff2('0xa'),'no'),'defaultValue':'yes','allowNull':![]},'saycid':{'type':Sequelize['ENUM'](_0x5e3ff2('0xa'),'no'),'defaultValue':_0x5e3ff2('0xa'),'allowNull':![]},'dialout':{'type':Sequelize[_0x5e3ff2('0xd')]},'callback':{'type':Sequelize[_0x5e3ff2('0xd')]},'review':{'type':Sequelize[_0x5e3ff2('0x3')](_0x5e3ff2('0xa'),'no'),'defaultValue':'no','allowNull':![]},'operator':{'type':Sequelize[_0x5e3ff2('0x3')](_0x5e3ff2('0xa'),'no'),'defaultValue':'no','allowNull':![]},'envelope':{'type':Sequelize[_0x5e3ff2('0x3')](_0x5e3ff2('0xa'),'no'),'defaultValue':'no','allowNull':![]},'sayduration':{'type':Sequelize['ENUM'](_0x5e3ff2('0xa'),'no'),'defaultValue':'no','allowNull':![]},'saydurationm':{'type':_0x5e3ff2('0x1'),'defaultValue':0x1,'allowNull':![]},'sendvoicemail':{'type':Sequelize['ENUM']('yes','no'),'defaultValue':'no','allowNull':![]},'delete':{'type':Sequelize['ENUM'](_0x5e3ff2('0xa'),'no'),'defaultValue':'no','allowNull':![]},'nextaftercmd':{'type':Sequelize['ENUM'](_0x5e3ff2('0xa'),'no'),'defaultValue':'yes','allowNull':![]},'forcename':{'type':Sequelize[_0x5e3ff2('0x3')]('yes','no'),'defaultValue':'no','allowNull':![]},'forcegreetings':{'type':Sequelize[_0x5e3ff2('0x3')](_0x5e3ff2('0xa'),'no'),'defaultValue':'no','allowNull':![]},'hidefromdir':{'type':Sequelize[_0x5e3ff2('0x3')](_0x5e3ff2('0xa'),'no'),'defaultValue':_0x5e3ff2('0xa'),'allowNull':![]},'stamp':{'type':'TIMESTAMP'},'emailsubject':{'type':Sequelize[_0x5e3ff2('0xd')]},'emailbody':{'type':Sequelize[_0x5e3ff2('0xd')]},'maxsecs':{'type':Sequelize['INTEGER'](0xff),'defaultValue':0xb4,'allowNull':![]},'maxmsg':{'type':Sequelize[_0x5e3ff2('0xb')](0xff),'defaultValue':0x64,'allowNull':![]},'name':{'type':Sequelize[_0x5e3ff2('0x9')],'get':function(){const _0x5a2e40=_0x5e3ff2;return this[_0x5a2e40('0xc')]('fullname')+_0x5a2e40('0x8')+this[_0x5a2e40('0xc')](_0x5a2e40('0x6'));}}}; \ No newline at end of file +const a879_0x3c98=['central','ENUM','setDataValue','mailbox','email','STRING','trim','attributes','fullname','getDataValue','yes','sequelize','\x20-\x20','TINYINT(4)','from-voicemail','exports','string','INTEGER','VIRTUAL','contest_mailbox'];(function(_0x150fa2,_0x20627b){const _0x3c9832=function(_0x5177e2){while(--_0x5177e2){_0x150fa2['push'](_0x150fa2['shift']());}};_0x3c9832(++_0x20627b);}(a879_0x3c98,0x9c));const a879_0x5177=function(_0x150fa2,_0x20627b){_0x150fa2=_0x150fa2-0xc8;let _0x3c9832=a879_0x3c98[_0x150fa2];return _0x3c9832;};const a879_0x410e8d=a879_0x5177;'use strict';const {DataTypes}=require(a879_0x410e8d(0xd7)),attributes={'customer_id':{'type':DataTypes[a879_0x410e8d(0xd1)]},'context':{'type':DataTypes[a879_0x410e8d(0xd1)],'defaultValue':a879_0x410e8d(0xda),'unique':a879_0x410e8d(0xcb)},'mailbox':{'type':DataTypes['STRING'],'defaultValue':'','allowNull':![],'unique':a879_0x410e8d(0xcb)},'password':{'type':DataTypes[a879_0x410e8d(0xd1)]},'fullname':{'type':DataTypes[a879_0x410e8d(0xd1)]},'email':{'type':DataTypes['STRING'],'validate':{'isEmail':!![]},'set':function(_0x21e9d7){const _0x180115=a879_0x410e8d;this[_0x180115(0xce)](_0x180115(0xd0),typeof _0x21e9d7===_0x180115(0xc8)&&_0x21e9d7[_0x180115(0xd2)]()?_0x21e9d7[_0x180115(0xd2)]():null);}},'pager':{'type':DataTypes[a879_0x410e8d(0xd1)]},'tz':{'type':DataTypes[a879_0x410e8d(0xd1)],'defaultValue':a879_0x410e8d(0xcc)},'attach':{'type':DataTypes['ENUM'](a879_0x410e8d(0xd6),'no'),'defaultValue':a879_0x410e8d(0xd6),'allowNull':![]},'saycid':{'type':DataTypes['ENUM'](a879_0x410e8d(0xd6),'no'),'defaultValue':'yes','allowNull':![]},'dialout':{'type':DataTypes[a879_0x410e8d(0xd1)]},'callback':{'type':DataTypes['STRING']},'review':{'type':DataTypes['ENUM'](a879_0x410e8d(0xd6),'no'),'defaultValue':'no','allowNull':![]},'operator':{'type':DataTypes[a879_0x410e8d(0xcd)](a879_0x410e8d(0xd6),'no'),'defaultValue':'no','allowNull':![]},'envelope':{'type':DataTypes['ENUM'](a879_0x410e8d(0xd6),'no'),'defaultValue':'no','allowNull':![]},'sayduration':{'type':DataTypes[a879_0x410e8d(0xcd)]('yes','no'),'defaultValue':'no','allowNull':![]},'saydurationm':{'type':a879_0x410e8d(0xd9),'defaultValue':0x1,'allowNull':![]},'sendvoicemail':{'type':DataTypes[a879_0x410e8d(0xcd)](a879_0x410e8d(0xd6),'no'),'defaultValue':'no','allowNull':![]},'delete':{'type':DataTypes[a879_0x410e8d(0xcd)](a879_0x410e8d(0xd6),'no'),'defaultValue':'no','allowNull':![]},'nextaftercmd':{'type':DataTypes['ENUM'](a879_0x410e8d(0xd6),'no'),'defaultValue':a879_0x410e8d(0xd6),'allowNull':![]},'forcename':{'type':DataTypes[a879_0x410e8d(0xcd)](a879_0x410e8d(0xd6),'no'),'defaultValue':'no','allowNull':![]},'forcegreetings':{'type':DataTypes[a879_0x410e8d(0xcd)]('yes','no'),'defaultValue':'no','allowNull':![]},'hidefromdir':{'type':DataTypes[a879_0x410e8d(0xcd)](a879_0x410e8d(0xd6),'no'),'defaultValue':a879_0x410e8d(0xd6),'allowNull':![]},'stamp':{'type':'TIMESTAMP'},'emailsubject':{'type':DataTypes[a879_0x410e8d(0xd1)]},'emailbody':{'type':DataTypes['STRING']},'maxsecs':{'type':DataTypes[a879_0x410e8d(0xc9)]({'length':0xff}),'defaultValue':0xb4,'allowNull':![]},'maxmsg':{'type':DataTypes[a879_0x410e8d(0xc9)]({'length':0xff}),'defaultValue':0x64,'allowNull':![]},'name':{'type':DataTypes[a879_0x410e8d(0xca)],'get':function(){const _0x28dee8=a879_0x410e8d;return this[_0x28dee8(0xd5)](_0x28dee8(0xd4))+_0x28dee8(0xd8)+this['getDataValue'](_0x28dee8(0xcf));}}};module[a879_0x410e8d(0xdb)][a879_0x410e8d(0xd3)]=attributes; \ No newline at end of file diff --git a/server/api/voiceMail/voiceMail.controller.js b/server/api/voiceMail/voiceMail.controller.js index cf46c70..29281eb 100644 --- a/server/api/voiceMail/voiceMail.controller.js +++ b/server/api/voiceMail/voiceMail.controller.js @@ -1 +1 @@ -const a734_0x2a94=['role','VoiceMail','sort','params','end','filter','update','user','model','findAndCountAll','error','findOne','lodash','filters','rawAttributes','name','mailbox','length','count','options','stack','../../mysqldb','catch','VIRTUAL','intersection','map','offset','create','findAll','keys','UserProfileSection','includeAll','Unable\x20to\x20retrieve\x20the\x20current\x20user','where','fields','send','query','VoiceMailMessage','set','like','Voicemails','include','Content-Range','order','nolimit','merge','limit','status','body','api','pick','json','destroy','index','get','undefined','rows','type','getMessages','autoAssociation','../../components/parsers/qs','fieldName','attributes','then'];(function(_0x45425a,_0x2a949b){const _0x48ea33=function(_0x35bbfa){while(--_0x35bbfa){_0x45425a['push'](_0x45425a['shift']());}};_0x48ea33(++_0x2a949b);}(a734_0x2a94,0x139));const a734_0x48ea=function(_0x45425a,_0x2a949b){_0x45425a=_0x45425a-0x0;let _0x48ea33=a734_0x2a94[_0x45425a];return _0x48ea33;};const _0x21d3ca=a734_0x48ea;'use strict';const _=require(_0x21d3ca('0x13')),qs=require(_0x21d3ca('0x3')),logger=require('../../config/logger')(_0x21d3ca('0x38')),db=require(_0x21d3ca('0x1c'))['db'],{Op}=require('sequelize');function respondWithResult(_0x35bbfa,_0x2f4e58){return _0x2f4e58=_0x2f4e58||0xc8,function(_0x4d8350){const _0x3014e8=a734_0x48ea;if(_0x4d8350)return _0x35bbfa['status'](_0x2f4e58)[_0x3014e8('0x3a')](_0x4d8350);};}function respondWithFilteredResult(_0x597a78,_0xad7049){return function(_0x2dc910){const _0x220408=a734_0x48ea;if(_0x2dc910){const _0x17c692=_0x2dc910[_0x220408('0x19')],_0x16d856=_0xad7049[_0x220408('0x21')];let _0x55c04e=_0xad7049[_0x220408('0x21')]+_0xad7049['limit'],_0x518551;return _0x55c04e>=_0x17c692?(_0x55c04e=_0x17c692,_0x518551=0xc8):_0x518551=0xce,_0x597a78['status'](_0x518551),_0x597a78[_0x220408('0x2d')](_0x220408('0x31'),_0x16d856+'-'+_0x55c04e+'/'+_0x17c692)[_0x220408('0x3a')](_0x2dc910);}return null;};}function saveUpdates(_0x1fb693){return function(_0x1a1025){const _0x4e8d81=a734_0x48ea;if(_0x1a1025)return _0x1a1025[_0x4e8d81('0xd')](_0x1fb693)[_0x4e8d81('0x6')](function(_0xa748c9){return _0xa748c9;});return null;};}function removeEntity(_0x497bb8){return function(_0x5317e0){const _0x2820d9=a734_0x48ea;if(_0x5317e0)return _0x5317e0['destroy']()[_0x2820d9('0x6')](function(){const _0x469fe5=_0x2820d9,_0x3c2209=_0x5317e0[_0x469fe5('0x3d')]({'plain':!![]}),_0x49c052=_0x469fe5('0x2f');return db['UserProfileResource'][_0x469fe5('0x3b')]({'where':{'type':_0x49c052,'resourceId':_0x3c2209['id']}})[_0x469fe5('0x6')](function(){return _0x5317e0;});})['then'](function(){const _0x16340d=_0x2820d9;_0x497bb8[_0x16340d('0x36')](0xcc)[_0x16340d('0xb')]();});};}function handleEntityNotFound(_0xf928dd){return function(_0x356355){return!_0x356355&&_0xf928dd['sendStatus'](0x194),_0x356355;};}function handleError(_0x2df5e3,_0x19afa7){return _0x19afa7=_0x19afa7||0x1f4,function(_0x4ee16f){const _0x3dac9e=a734_0x48ea;logger[_0x3dac9e('0x11')](_0x4ee16f[_0x3dac9e('0x1b')]),_0x4ee16f[_0x3dac9e('0x16')]&&delete _0x4ee16f[_0x3dac9e('0x16')],_0x2df5e3[_0x3dac9e('0x36')](_0x19afa7)[_0x3dac9e('0x2a')](_0x4ee16f);};}exports[_0x21d3ca('0x3c')]=function(_0xf47c88,_0x4e82a6){const _0x426171=_0x21d3ca;let _0x125d3f={};const _0x1bf8ec={},_0x22463e={'count':0x0,'rows':[]},_0x2c3454=_[_0x426171('0x20')](db[_0x426171('0x8')][_0x426171('0x15')],function(_0x49753d){const _0x27ea67=_0x426171;return{'name':_0x49753d[_0x27ea67('0x4')],'type':_0x49753d[_0x27ea67('0x0')]['key']};});_0x1bf8ec[_0x426171('0xf')]=_[_0x426171('0x20')](_0x2c3454,_0x426171('0x16')),_0x1bf8ec[_0x426171('0x2b')]=_[_0x426171('0x24')](_0xf47c88[_0x426171('0x2b')]),_0x1bf8ec['filters']=_[_0x426171('0x1f')](_0x1bf8ec[_0x426171('0xf')],_0x1bf8ec[_0x426171('0x2b')]),_0x125d3f[_0x426171('0x5')]=_['intersection'](_0x1bf8ec[_0x426171('0xf')],qs[_0x426171('0x29')](_0xf47c88[_0x426171('0x2b')]['fields'])),_0x125d3f[_0x426171('0x5')]=_0x125d3f[_0x426171('0x5')]['length']?_0x125d3f[_0x426171('0x5')]:_0x1bf8ec[_0x426171('0xf')];typeof _0xf47c88[_0x426171('0x2b')][_0x426171('0x33')]===_0x426171('0x3e')&&(_0x125d3f[_0x426171('0x35')]=qs[_0x426171('0x35')](_0xf47c88[_0x426171('0x2b')][_0x426171('0x35')]),_0x125d3f['offset']=qs['offset'](_0xf47c88[_0x426171('0x2b')][_0x426171('0x21')]));_0x125d3f[_0x426171('0x32')]=qs[_0x426171('0x9')](_0xf47c88['query'][_0x426171('0x9')]),_0x125d3f[_0x426171('0x28')]=qs[_0x426171('0x14')](_['pick'](_0xf47c88['query'],_0x1bf8ec[_0x426171('0x14')]),_0x2c3454);_0xf47c88[_0x426171('0x2b')][_0x426171('0xc')]&&(_0x125d3f[_0x426171('0x28')]=_[_0x426171('0x34')](_0x125d3f[_0x426171('0x28')],{[Op['or']]:_[_0x426171('0x20')](_0x2c3454,function(_0x15b5f6){const _0x3510d6=_0x426171;if(_0x15b5f6[_0x3510d6('0x0')]!==_0x3510d6('0x1e')){const _0xbd7052={};return _0xbd7052[_0x15b5f6[_0x3510d6('0x16')]]={[Op[_0x3510d6('0x2e')]]:'%'+_0xf47c88[_0x3510d6('0x2b')][_0x3510d6('0xc')]+'%'},_0xbd7052;}})}));_0x125d3f=_['merge']({},_0x125d3f,_0xf47c88[_0x426171('0x1a')]);const _0x743729={'where':_0x125d3f[_0x426171('0x28')]};return db[_0x426171('0x8')][_0x426171('0x19')](_0x743729)['then'](function(_0x1c1d2a){const _0x1bd958=_0x426171;return _0x22463e[_0x1bd958('0x19')]=_0x1c1d2a,_0xf47c88['query'][_0x1bd958('0x26')]&&(_0x125d3f[_0x1bd958('0x30')]=[{'all':!![]}]),db[_0x1bd958('0x8')][_0x1bd958('0x23')](_0x125d3f);})[_0x426171('0x6')](function(_0x2a7207){const _0x23619c=_0x426171;return _0x22463e[_0x23619c('0x3f')]=_0x2a7207,_0x22463e;})[_0x426171('0x6')](respondWithFilteredResult(_0x4e82a6,_0x125d3f))[_0x426171('0x1d')](handleError(_0x4e82a6,null));},exports['show']=function(_0x2cf5d9,_0x2d5ffb){const _0x5e8a9e=_0x21d3ca;let _0x21f4ba={'raw':!![],'where':{'id':_0x2cf5d9['params']['id']}};const _0x261b01={};return _0x261b01[_0x5e8a9e('0xf')]=_[_0x5e8a9e('0x24')](db[_0x5e8a9e('0x8')][_0x5e8a9e('0x15')]),_0x261b01['query']=_[_0x5e8a9e('0x24')](_0x2cf5d9['query']),_0x261b01[_0x5e8a9e('0x14')]=_[_0x5e8a9e('0x1f')](_0x261b01[_0x5e8a9e('0xf')],_0x261b01[_0x5e8a9e('0x2b')]),_0x21f4ba[_0x5e8a9e('0x5')]=_['intersection'](_0x261b01[_0x5e8a9e('0xf')],qs['fields'](_0x2cf5d9[_0x5e8a9e('0x2b')][_0x5e8a9e('0x29')])),_0x21f4ba[_0x5e8a9e('0x5')]=_0x21f4ba['attributes'][_0x5e8a9e('0x18')]?_0x21f4ba[_0x5e8a9e('0x5')]:_0x261b01[_0x5e8a9e('0xf')],_0x2cf5d9[_0x5e8a9e('0x2b')][_0x5e8a9e('0x26')]&&(_0x21f4ba[_0x5e8a9e('0x30')]=[{'all':!![]}]),_0x21f4ba=_[_0x5e8a9e('0x34')]({},_0x21f4ba,_0x2cf5d9['options']),db[_0x5e8a9e('0x8')][_0x5e8a9e('0x12')](_0x21f4ba)[_0x5e8a9e('0x6')](handleEntityNotFound(_0x2d5ffb,null))[_0x5e8a9e('0x6')](respondWithResult(_0x2d5ffb,null))['catch'](handleError(_0x2d5ffb,null));},exports[_0x21d3ca('0x22')]=function(_0x232ba3,_0xf55f93){const _0x2b8d49=_0x21d3ca;return db[_0x2b8d49('0x8')]['create'](_0x232ba3[_0x2b8d49('0x37')],{})['then'](function(_0x29f3ed){const _0x20a233=_0x2b8d49,_0x34f639=_0x232ba3[_0x20a233('0xe')][_0x20a233('0x3d')]({'plain':!![]});if(!_0x34f639)throw new Error(_0x20a233('0x27'));if(_0x34f639[_0x20a233('0x7')]===_0x20a233('0xe')){const _0x380e45=_0x29f3ed[_0x20a233('0x3d')]({'plain':!![]}),_0x1a4780=_0x20a233('0x2f');return db[_0x20a233('0x25')]['findOne']({'where':{'name':_0x1a4780,'userProfileId':_0x34f639['userProfileId']},'raw':!![]})[_0x20a233('0x6')](function(_0x18ff25){const _0x3afb41=_0x20a233;return _0x18ff25&&_0x18ff25[_0x3afb41('0x2')]===0x0?db['UserProfileResource'][_0x3afb41('0x22')]({'name':_0x380e45['name'],'resourceId':_0x380e45['id'],'type':_0x18ff25['name'],'sectionId':_0x18ff25['id']},{})['then'](function(){return _0x29f3ed;}):_0x29f3ed;})[_0x20a233('0x1d')](function(_0x54ee8a){const _0x33609d=_0x20a233;logger[_0x33609d('0x11')]('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0x54ee8a);throw _0x54ee8a;});}return _0x29f3ed;})[_0x2b8d49('0x6')](respondWithResult(_0xf55f93,0xc9))[_0x2b8d49('0x1d')](handleError(_0xf55f93,null));},exports[_0x21d3ca('0xd')]=function(_0x54daae,_0x268ce){const _0x1bb0fe=_0x21d3ca;return _0x54daae[_0x1bb0fe('0x37')]['id']&&delete _0x54daae['body']['id'],db[_0x1bb0fe('0x8')][_0x1bb0fe('0x12')]({'where':{'id':_0x54daae[_0x1bb0fe('0xa')]['id']}})[_0x1bb0fe('0x6')](handleEntityNotFound(_0x268ce,null))['then'](saveUpdates(_0x54daae[_0x1bb0fe('0x37')],null))[_0x1bb0fe('0x6')](respondWithResult(_0x268ce,null))[_0x1bb0fe('0x1d')](handleError(_0x268ce,null));},exports[_0x21d3ca('0x3b')]=function(_0x2abfac,_0x43e8d8){const _0x5c5ee0=_0x21d3ca;return db[_0x5c5ee0('0x8')][_0x5c5ee0('0x12')]({'where':{'id':_0x2abfac[_0x5c5ee0('0xa')]['id']}})[_0x5c5ee0('0x6')](handleEntityNotFound(_0x43e8d8,null))[_0x5c5ee0('0x6')](removeEntity(_0x43e8d8,null))[_0x5c5ee0('0x1d')](handleError(_0x43e8d8,null));},exports[_0x21d3ca('0x1')]=function(_0x381a60,_0x1c69c2){const _0x552cac=_0x21d3ca;return db[_0x552cac('0x8')][_0x552cac('0x12')]({'where':{'id':_0x381a60[_0x552cac('0xa')]['id']}})[_0x552cac('0x6')](handleEntityNotFound(_0x1c69c2,null))['then'](function(_0x1615f8){const _0x361307=_0x552cac;let _0x5d5828={};const _0x48b2e2={};return _0x48b2e2['model']=_[_0x361307('0x24')](db[_0x361307('0x2c')][_0x361307('0x15')]),_0x48b2e2[_0x361307('0x2b')]=_[_0x361307('0x24')](_0x381a60[_0x361307('0x2b')]),_0x48b2e2[_0x361307('0x14')]=_[_0x361307('0x1f')](_0x48b2e2[_0x361307('0xf')],_0x48b2e2[_0x361307('0x2b')]),_0x5d5828[_0x361307('0x5')]=_[_0x361307('0x1f')](_0x48b2e2[_0x361307('0xf')],qs['fields'](_0x381a60[_0x361307('0x2b')][_0x361307('0x29')])),_0x5d5828[_0x361307('0x5')]=_0x5d5828[_0x361307('0x5')][_0x361307('0x18')]?_0x5d5828[_0x361307('0x5')]:_0x48b2e2['model'],typeof _0x381a60[_0x361307('0x2b')][_0x361307('0x33')]===_0x361307('0x3e')&&(_0x5d5828[_0x361307('0x35')]=qs['limit'](_0x381a60['query']['limit']),_0x5d5828['offset']=qs['offset'](_0x381a60[_0x361307('0x2b')]['offset'])),_0x5d5828[_0x361307('0x32')]=qs[_0x361307('0x9')](_0x381a60['query'][_0x361307('0x9')]),_0x5d5828['where']=qs[_0x361307('0x14')](_[_0x361307('0x39')](_0x381a60['query'],_0x48b2e2[_0x361307('0x14')])),_0x381a60[_0x361307('0x2b')][_0x361307('0xc')]&&(_0x5d5828[_0x361307('0x28')]=_['merge'](_0x5d5828[_0x361307('0x28')],{[Op['or']]:_[_0x361307('0x20')](_0x5d5828[_0x361307('0x5')],function(_0x568d7d){const _0x2cfe7e=_0x361307,_0x29ff36={};return _0x29ff36[_0x568d7d]={[Op[_0x2cfe7e('0x2e')]]:'%'+_0x381a60['query'][_0x2cfe7e('0xc')]+'%'},_0x29ff36;})})),_0x5d5828[_0x361307('0x28')]=_['merge'](_0x5d5828['where'],{'mailboxuser':_0x1615f8[_0x361307('0x17')]}),_0x5d5828=_[_0x361307('0x34')]({},_0x5d5828,_0x381a60[_0x361307('0x1a')]),db['VoiceMailMessage'][_0x361307('0x10')](_0x5d5828)['then'](respondWithFilteredResult(_0x1c69c2,_0x5d5828));})[_0x552cac('0x1d')](handleError(_0x1c69c2,null));}; \ No newline at end of file +const a880_0x2796=['Unable\x20to\x20retrieve\x20the\x20current\x20user','length','sequelize','send','findAll','map','intersection','findOne','autoAssociation','stack','catch','filter','limit','type','create','params','count','name','filters','mailbox','model','keys','userProfileId','get','includeAll','nolimit','VIRTUAL','update','UserProfileResource','UserProfileSection','attributes','undefined','user','sort','include','body','error','options','status','merge','lodash','key','destroy','show','../../components/parsers/qs','VoiceMail','fields','where','Voicemails','rows','index','VoiceMailMessage','json','end','like','pick','fieldName','rawAttributes','then','offset','query'];(function(_0x836e9b,_0x10645c){const _0x279629=function(_0x3bbb20){while(--_0x3bbb20){_0x836e9b['push'](_0x836e9b['shift']());}};_0x279629(++_0x10645c);}(a880_0x2796,0x6a));const a880_0x3bbb=function(_0x836e9b,_0x10645c){_0x836e9b=_0x836e9b-0xf1;let _0x279629=a880_0x2796[_0x836e9b];return _0x279629;};const a880_0x37d621=a880_0x3bbb;'use strict';const _=require(a880_0x37d621(0x129)),qs=require(a880_0x37d621(0x12d)),logger=require('../../config/logger')('api'),{db}=require('../../mysqldb'),{Op}=require(a880_0x37d621(0x103));function respondWithResult(_0x4b3ebb,_0x3b2199){return _0x3b2199=_0x3b2199||0xc8,function(_0x1cdb0e){const _0x39bef5=a880_0x3bbb;if(_0x1cdb0e)return _0x4b3ebb[_0x39bef5(0x127)](_0x3b2199)['json'](_0x1cdb0e);};}function respondWithFilteredResult(_0x408669,_0x2fbb75){return function(_0x3a53eb){const _0x546e95=a880_0x3bbb;if(_0x3a53eb){const _0x2fd182=_0x3a53eb['count'],_0x39d357=_0x2fbb75[_0x546e95(0xff)];let _0x4a54a8=_0x2fbb75['offset']+_0x2fbb75['limit'],_0x1623ce;return _0x4a54a8>=_0x2fd182?(_0x4a54a8=_0x2fd182,_0x1623ce=0xc8):_0x1623ce=0xce,_0x408669[_0x546e95(0x127)](_0x1623ce),_0x408669['set']('Content-Range',_0x39d357+'-'+_0x4a54a8+'/'+_0x2fd182)[_0x546e95(0xf8)](_0x3a53eb);}return null;};}function saveUpdates(_0x271888){return function(_0x1619ca){const _0xc51623=a880_0x3bbb;if(_0x1619ca)return _0x1619ca['update'](_0x271888)[_0xc51623(0xfe)](function(_0x121e07){return _0x121e07;});return null;};}function removeEntity(_0x14939c){return function(_0x3b922e){const _0x4a4647=a880_0x3bbb;if(_0x3b922e)return _0x3b922e[_0x4a4647(0x12b)]()[_0x4a4647(0xfe)](function(){const _0x6a4950=_0x4a4647,_0x4daa1d=_0x3b922e[_0x6a4950(0x118)]({'plain':!![]}),_0x437f1d=_0x6a4950(0xf4);return db[_0x6a4950(0x11d)][_0x6a4950(0x12b)]({'where':{'type':_0x437f1d,'resourceId':_0x4daa1d['id']}})['then'](function(){return _0x3b922e;});})['then'](function(){const _0x1b059d=_0x4a4647;_0x14939c[_0x1b059d(0x127)](0xcc)[_0x1b059d(0xf9)]();});};}function handleEntityNotFound(_0x5a1c54){return function(_0x543dc4){return!_0x543dc4&&_0x5a1c54['sendStatus'](0x194),_0x543dc4;};}function handleError(_0x3d573f,_0x181d1f){return _0x181d1f=_0x181d1f||0x1f4,function(_0x4b7486){const _0x537072=a880_0x3bbb;logger[_0x537072(0x125)](_0x4b7486[_0x537072(0x10a)]),_0x4b7486[_0x537072(0x112)]&&delete _0x4b7486[_0x537072(0x112)],_0x3d573f['status'](_0x181d1f)[_0x537072(0x104)](_0x4b7486);};}exports[a880_0x37d621(0xf6)]=function(_0x1fc9b1,_0x353b64){const _0x950f77=a880_0x37d621;let _0x3eb469={};const _0x37ba84={},_0x4b6a0d={'count':0x0,'rows':[]},_0x5f52ed=_['map'](db[_0x950f77(0xf1)]['rawAttributes'],function(_0xcc7585){const _0x3f1d53=_0x950f77;return{'name':_0xcc7585[_0x3f1d53(0xfc)],'type':_0xcc7585[_0x3f1d53(0x10e)][_0x3f1d53(0x12a)]};});_0x37ba84[_0x950f77(0x115)]=_[_0x950f77(0x106)](_0x5f52ed,_0x950f77(0x112)),_0x37ba84[_0x950f77(0x100)]=_[_0x950f77(0x116)](_0x1fc9b1[_0x950f77(0x100)]),_0x37ba84[_0x950f77(0x113)]=_[_0x950f77(0x107)](_0x37ba84[_0x950f77(0x115)],_0x37ba84['query']),_0x3eb469[_0x950f77(0x11f)]=_[_0x950f77(0x107)](_0x37ba84[_0x950f77(0x115)],qs[_0x950f77(0xf2)](_0x1fc9b1['query'][_0x950f77(0xf2)])),_0x3eb469[_0x950f77(0x11f)]=_0x3eb469[_0x950f77(0x11f)][_0x950f77(0x102)]?_0x3eb469[_0x950f77(0x11f)]:_0x37ba84[_0x950f77(0x115)];typeof _0x1fc9b1[_0x950f77(0x100)][_0x950f77(0x11a)]===_0x950f77(0x120)&&(_0x3eb469[_0x950f77(0x10d)]=qs[_0x950f77(0x10d)](_0x1fc9b1[_0x950f77(0x100)]['limit']),_0x3eb469['offset']=qs[_0x950f77(0xff)](_0x1fc9b1[_0x950f77(0x100)][_0x950f77(0xff)]));_0x3eb469['order']=qs[_0x950f77(0x122)](_0x1fc9b1[_0x950f77(0x100)][_0x950f77(0x122)]),_0x3eb469[_0x950f77(0xf3)]=qs[_0x950f77(0x113)](_[_0x950f77(0xfb)](_0x1fc9b1[_0x950f77(0x100)],_0x37ba84[_0x950f77(0x113)]),_0x5f52ed);_0x1fc9b1[_0x950f77(0x100)][_0x950f77(0x10c)]&&(_0x3eb469[_0x950f77(0xf3)]=_['merge'](_0x3eb469[_0x950f77(0xf3)],{[Op['or']]:_[_0x950f77(0x106)](_0x5f52ed,function(_0x1e5b34){const _0x58a122=_0x950f77;if(_0x1e5b34[_0x58a122(0x10e)]!==_0x58a122(0x11b)){const _0x18fc9f={};return _0x18fc9f[_0x1e5b34[_0x58a122(0x112)]]={[Op[_0x58a122(0xfa)]]:'%'+_0x1fc9b1[_0x58a122(0x100)]['filter']+'%'},_0x18fc9f;}})}));_0x3eb469=_[_0x950f77(0x128)]({},_0x3eb469,_0x1fc9b1['options']);const _0x334909={'where':_0x3eb469['where']};return db[_0x950f77(0xf1)][_0x950f77(0x111)](_0x334909)[_0x950f77(0xfe)](function(_0x518d1c){const _0x2552cf=_0x950f77;return _0x4b6a0d['count']=_0x518d1c,_0x1fc9b1[_0x2552cf(0x100)][_0x2552cf(0x119)]&&(_0x3eb469[_0x2552cf(0x123)]=[{'all':!![]}]),db[_0x2552cf(0xf1)][_0x2552cf(0x105)](_0x3eb469);})['then'](function(_0x19eb5c){const _0x6b0947=_0x950f77;return _0x4b6a0d[_0x6b0947(0xf5)]=_0x19eb5c,_0x4b6a0d;})['then'](respondWithFilteredResult(_0x353b64,_0x3eb469))[_0x950f77(0x10b)](handleError(_0x353b64,null));},exports[a880_0x37d621(0x12c)]=function(_0x18fc0a,_0x2de5d6){const _0x47268f=a880_0x37d621;let _0x9fd27e={'raw':!![],'where':{'id':_0x18fc0a['params']['id']}};const _0x37fe27={};return _0x37fe27[_0x47268f(0x115)]=_[_0x47268f(0x116)](db[_0x47268f(0xf1)][_0x47268f(0xfd)]),_0x37fe27[_0x47268f(0x100)]=_[_0x47268f(0x116)](_0x18fc0a[_0x47268f(0x100)]),_0x37fe27[_0x47268f(0x113)]=_['intersection'](_0x37fe27[_0x47268f(0x115)],_0x37fe27[_0x47268f(0x100)]),_0x9fd27e[_0x47268f(0x11f)]=_['intersection'](_0x37fe27[_0x47268f(0x115)],qs[_0x47268f(0xf2)](_0x18fc0a[_0x47268f(0x100)][_0x47268f(0xf2)])),_0x9fd27e['attributes']=_0x9fd27e['attributes'][_0x47268f(0x102)]?_0x9fd27e[_0x47268f(0x11f)]:_0x37fe27[_0x47268f(0x115)],_0x18fc0a[_0x47268f(0x100)]['includeAll']&&(_0x9fd27e[_0x47268f(0x123)]=[{'all':!![]}]),_0x9fd27e=_[_0x47268f(0x128)]({},_0x9fd27e,_0x18fc0a[_0x47268f(0x126)]),db[_0x47268f(0xf1)]['findOne'](_0x9fd27e)['then'](handleEntityNotFound(_0x2de5d6,null))[_0x47268f(0xfe)](respondWithResult(_0x2de5d6,null))[_0x47268f(0x10b)](handleError(_0x2de5d6,null));},exports[a880_0x37d621(0x10f)]=function(_0x2cdbcb,_0x163296){const _0x40b6f9=a880_0x37d621;return db[_0x40b6f9(0xf1)][_0x40b6f9(0x10f)](_0x2cdbcb['body'],{})[_0x40b6f9(0xfe)](function(_0x4a8f1d){const _0x31b52c=_0x40b6f9,_0x3f509c=_0x2cdbcb['user'][_0x31b52c(0x118)]({'plain':!![]});if(!_0x3f509c)throw new Error(_0x31b52c(0x101));if(_0x3f509c['role']===_0x31b52c(0x121)){const _0x3a9738=_0x4a8f1d[_0x31b52c(0x118)]({'plain':!![]}),_0x43a70a=_0x31b52c(0xf4);return db[_0x31b52c(0x11e)][_0x31b52c(0x108)]({'where':{'name':_0x43a70a,'userProfileId':_0x3f509c[_0x31b52c(0x117)]},'raw':!![]})[_0x31b52c(0xfe)](function(_0x2dfcad){const _0x2722e6=_0x31b52c;return _0x2dfcad&&_0x2dfcad[_0x2722e6(0x109)]===0x0?db[_0x2722e6(0x11d)][_0x2722e6(0x10f)]({'name':_0x3a9738[_0x2722e6(0x112)],'resourceId':_0x3a9738['id'],'type':_0x2dfcad[_0x2722e6(0x112)],'sectionId':_0x2dfcad['id']},{})[_0x2722e6(0xfe)](function(){return _0x4a8f1d;}):_0x4a8f1d;})[_0x31b52c(0x10b)](function(_0x3fd5b1){const _0x3a5c62=_0x31b52c;logger[_0x3a5c62(0x125)]('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0x3fd5b1);throw _0x3fd5b1;});}return _0x4a8f1d;})[_0x40b6f9(0xfe)](respondWithResult(_0x163296,0xc9))[_0x40b6f9(0x10b)](handleError(_0x163296,null));},exports[a880_0x37d621(0x11c)]=function(_0x312e75,_0x3ef947){const _0x40f33c=a880_0x37d621;return _0x312e75[_0x40f33c(0x124)]['id']&&delete _0x312e75[_0x40f33c(0x124)]['id'],db[_0x40f33c(0xf1)][_0x40f33c(0x108)]({'where':{'id':_0x312e75[_0x40f33c(0x110)]['id']}})[_0x40f33c(0xfe)](handleEntityNotFound(_0x3ef947,null))[_0x40f33c(0xfe)](saveUpdates(_0x312e75[_0x40f33c(0x124)],null))[_0x40f33c(0xfe)](respondWithResult(_0x3ef947,null))[_0x40f33c(0x10b)](handleError(_0x3ef947,null));},exports[a880_0x37d621(0x12b)]=function(_0x45dd44,_0x24670){const _0x9afb6d=a880_0x37d621;return db[_0x9afb6d(0xf1)][_0x9afb6d(0x108)]({'where':{'id':_0x45dd44[_0x9afb6d(0x110)]['id']}})['then'](handleEntityNotFound(_0x24670,null))[_0x9afb6d(0xfe)](removeEntity(_0x24670,null))['catch'](handleError(_0x24670,null));},exports['getMessages']=function(_0x49a17d,_0x346be2){const _0x4eea03=a880_0x37d621;return db[_0x4eea03(0xf1)][_0x4eea03(0x108)]({'where':{'id':_0x49a17d['params']['id']}})[_0x4eea03(0xfe)](handleEntityNotFound(_0x346be2,null))[_0x4eea03(0xfe)](function(_0x5b823d){const _0x25f67e=_0x4eea03;let _0x1cddce={};const _0xfbcfc3={};return _0xfbcfc3[_0x25f67e(0x115)]=_[_0x25f67e(0x116)](db[_0x25f67e(0xf7)]['rawAttributes']),_0xfbcfc3[_0x25f67e(0x100)]=_[_0x25f67e(0x116)](_0x49a17d[_0x25f67e(0x100)]),_0xfbcfc3[_0x25f67e(0x113)]=_[_0x25f67e(0x107)](_0xfbcfc3[_0x25f67e(0x115)],_0xfbcfc3[_0x25f67e(0x100)]),_0x1cddce[_0x25f67e(0x11f)]=_[_0x25f67e(0x107)](_0xfbcfc3[_0x25f67e(0x115)],qs[_0x25f67e(0xf2)](_0x49a17d['query'][_0x25f67e(0xf2)])),_0x1cddce[_0x25f67e(0x11f)]=_0x1cddce[_0x25f67e(0x11f)][_0x25f67e(0x102)]?_0x1cddce[_0x25f67e(0x11f)]:_0xfbcfc3[_0x25f67e(0x115)],typeof _0x49a17d[_0x25f67e(0x100)][_0x25f67e(0x11a)]===_0x25f67e(0x120)&&(_0x1cddce[_0x25f67e(0x10d)]=qs[_0x25f67e(0x10d)](_0x49a17d[_0x25f67e(0x100)][_0x25f67e(0x10d)]),_0x1cddce[_0x25f67e(0xff)]=qs['offset'](_0x49a17d[_0x25f67e(0x100)]['offset'])),_0x1cddce['order']=qs['sort'](_0x49a17d[_0x25f67e(0x100)][_0x25f67e(0x122)]),_0x1cddce[_0x25f67e(0xf3)]=qs[_0x25f67e(0x113)](_[_0x25f67e(0xfb)](_0x49a17d[_0x25f67e(0x100)],_0xfbcfc3[_0x25f67e(0x113)])),_0x49a17d[_0x25f67e(0x100)]['filter']&&(_0x1cddce[_0x25f67e(0xf3)]=_[_0x25f67e(0x128)](_0x1cddce[_0x25f67e(0xf3)],{[Op['or']]:_[_0x25f67e(0x106)](_0x1cddce[_0x25f67e(0x11f)],function(_0x40196e){const _0xe78497=_0x25f67e,_0x164137={};return _0x164137[_0x40196e]={[Op['like']]:'%'+_0x49a17d[_0xe78497(0x100)][_0xe78497(0x10c)]+'%'},_0x164137;})})),_0x1cddce[_0x25f67e(0xf3)]=_[_0x25f67e(0x128)](_0x1cddce[_0x25f67e(0xf3)],{'mailboxuser':_0x5b823d[_0x25f67e(0x114)]}),_0x1cddce=_['merge']({},_0x1cddce,_0x49a17d[_0x25f67e(0x126)]),db[_0x25f67e(0xf7)]['findAndCountAll'](_0x1cddce)[_0x25f67e(0xfe)](respondWithFilteredResult(_0x346be2,_0x1cddce));})[_0x4eea03(0x10b)](handleError(_0x346be2,null));}; \ No newline at end of file diff --git a/server/api/voiceMail/voiceMail.model.js b/server/api/voiceMail/voiceMail.model.js index 0b85bdf..dadeb2c 100644 --- a/server/api/voiceMail/voiceMail.model.js +++ b/server/api/voiceMail/voiceMail.model.js @@ -1 +1 @@ -const a735_0x1fb7=['exports','VoiceMail','voice_voicemail','./voiceMail.attributes','context','mailbox_context'];(function(_0x37f665,_0x1fb7e1){const _0x107d70=function(_0x1c1527){while(--_0x1c1527){_0x37f665['push'](_0x37f665['shift']());}};_0x107d70(++_0x1fb7e1);}(a735_0x1fb7,0x15d));const a735_0x107d=function(_0x37f665,_0x1fb7e1){_0x37f665=_0x37f665-0x0;let _0x107d70=a735_0x1fb7[_0x37f665];return _0x107d70;};const _0x5ec693=a735_0x107d;'use strict';const attributes=require(_0x5ec693('0x2'));module[_0x5ec693('0x5')]=function(_0x1c1527){const _0x49b539=_0x5ec693,_0x31b679=_0x1c1527['define'](_0x49b539('0x0'),attributes,{'tableName':_0x49b539('0x1'),'paranoid':![],'indexes':[{'name':_0x49b539('0x4'),'fields':['mailbox',_0x49b539('0x3')]}],'timestamps':!![]});return _0x31b679;}; \ No newline at end of file +const a881_0x9df2=['exports','init','VoiceMail','function','./voiceMail.attributes','./voiceMail.options'];(function(_0x509afd,_0x4e0734){const _0x9df21e=function(_0x210ee5){while(--_0x210ee5){_0x509afd['push'](_0x509afd['shift']());}};_0x9df21e(++_0x4e0734);}(a881_0x9df2,0xf1));const a881_0x210e=function(_0x509afd,_0x4e0734){_0x509afd=_0x509afd-0x1a8;let _0x9df21e=a881_0x9df2[_0x509afd];return _0x9df21e;};const a881_0x187e00=a881_0x210e;'use strict';const {Model}=require('sequelize'),{attributes}=require(a881_0x187e00(0x1ab)),{options}=require(a881_0x187e00(0x1ac));class VoiceMail extends Model{}function init(_0x192678,_0xc24376){const _0x26d6ad=a881_0x187e00,_0x5d50ca=options(_0x192678),_0x24773e=typeof _0xc24376===_0x26d6ad(0x1aa)?_0xc24376(_0x5d50ca):_0x5d50ca;return VoiceMail[_0x26d6ad(0x1a8)](attributes,_0x24773e),VoiceMail;}module[a881_0x187e00(0x1ad)][a881_0x187e00(0x1a9)]=VoiceMail,module[a881_0x187e00(0x1ad)][a881_0x187e00(0x1a8)]=init; \ No newline at end of file diff --git a/server/api/voiceMail/voiceMail.options.js b/server/api/voiceMail/voiceMail.options.js new file mode 100644 index 0000000..b517b5f --- /dev/null +++ b/server/api/voiceMail/voiceMail.options.js @@ -0,0 +1 @@ +var a882_0x3c37=['options','mailbox','voice_voicemail','mailbox_context','context','exports'];(function(_0x5518ad,_0x4fb5a1){var _0x3c377d=function(_0x43db74){while(--_0x43db74){_0x5518ad['push'](_0x5518ad['shift']());}};_0x3c377d(++_0x4fb5a1);}(a882_0x3c37,0x144));var a882_0x43db=function(_0x5518ad,_0x4fb5a1){_0x5518ad=_0x5518ad-0x85;var _0x3c377d=a882_0x3c37[_0x5518ad];return _0x3c377d;};var a882_0xe5a3ef=a882_0x43db;function options(_0x5c8266){var _0x49aad5=a882_0x43db;return{'sequelize':_0x5c8266,'tableName':_0x49aad5(0x87),'paranoid':![],'indexes':[{'name':_0x49aad5(0x88),'fields':[_0x49aad5(0x86),_0x49aad5(0x89)]}],'timestamps':!![]};}module[a882_0xe5a3ef(0x8a)][a882_0xe5a3ef(0x85)]=options; \ No newline at end of file diff --git a/server/api/voiceMailMessage/index.js b/server/api/voiceMailMessage/index.js index 3f63368..e84f554 100644 --- a/server/api/voiceMailMessage/index.js +++ b/server/api/voiceMailMessage/index.js @@ -1 +1 @@ -const a736_0x2d0d=['exports','put','./voiceMailMessage.controller','get','delete','/:id','/:id/download','download','destroy','index','show','Router','isAuthenticated'];(function(_0x4ea042,_0x2d0dd1){const _0x4d394e=function(_0x59cd06){while(--_0x59cd06){_0x4ea042['push'](_0x4ea042['shift']());}};_0x4d394e(++_0x2d0dd1);}(a736_0x2d0d,0x133));const a736_0x4d39=function(_0x4ea042,_0x2d0dd1){_0x4ea042=_0x4ea042-0x0;let _0x4d394e=a736_0x2d0d[_0x4ea042];return _0x4d394e;};const _0x710ec=a736_0x4d39;'use strict';const express=require('express'),router=express[_0x710ec('0x3')](),auth=require('../../components/auth/service'),controller=require(_0x710ec('0x7'));router['get']('/',auth['isAuthenticated'](),controller[_0x710ec('0x1')]),router[_0x710ec('0x8')](_0x710ec('0xa'),auth[_0x710ec('0x4')](),controller[_0x710ec('0x2')]),router[_0x710ec('0x8')](_0x710ec('0xb'),auth[_0x710ec('0x4')](),controller[_0x710ec('0xc')]),router['post']('/',auth['isAuthenticated'](),controller['create']),router[_0x710ec('0x6')]('/:id',auth[_0x710ec('0x4')](),controller['update']),router[_0x710ec('0x9')](_0x710ec('0xa'),auth[_0x710ec('0x4')](),controller[_0x710ec('0x0')]),module[_0x710ec('0x5')]=router; \ No newline at end of file +const a883_0x1740=['exports','/:id','destroy','update','/:id/download','isAuthenticated','get','delete','../../components/auth/service','put','show','index','./voiceMailMessage.controller','post'];(function(_0xe474,_0x184af7){const _0x174001=function(_0x4b1d02){while(--_0x4b1d02){_0xe474['push'](_0xe474['shift']());}};_0x174001(++_0x184af7);}(a883_0x1740,0x17b));const a883_0x4b1d=function(_0xe474,_0x184af7){_0xe474=_0xe474-0x67;let _0x174001=a883_0x1740[_0xe474];return _0x174001;};const a883_0x3eddd1=a883_0x4b1d;'use strict';const express=require('express'),router=express['Router'](),auth=require(a883_0x3eddd1(0x6e)),controller=require(a883_0x3eddd1(0x72));router[a883_0x3eddd1(0x6c)]('/',auth[a883_0x3eddd1(0x6b)](),controller[a883_0x3eddd1(0x71)]),router[a883_0x3eddd1(0x6c)](a883_0x3eddd1(0x67),auth['isAuthenticated'](),controller[a883_0x3eddd1(0x70)]),router[a883_0x3eddd1(0x6c)](a883_0x3eddd1(0x6a),auth[a883_0x3eddd1(0x6b)](),controller['download']),router[a883_0x3eddd1(0x73)]('/',auth[a883_0x3eddd1(0x6b)](),controller['create']),router[a883_0x3eddd1(0x6f)](a883_0x3eddd1(0x67),auth[a883_0x3eddd1(0x6b)](),controller[a883_0x3eddd1(0x69)]),router[a883_0x3eddd1(0x6d)](a883_0x3eddd1(0x67),auth[a883_0x3eddd1(0x6b)](),controller[a883_0x3eddd1(0x68)]),module[a883_0x3eddd1(0x74)]=router; \ No newline at end of file diff --git a/server/api/voiceMailMessage/voiceMailMessage.attributes.js b/server/api/voiceMailMessage/voiceMailMessage.attributes.js index 612de0b..9836568 100644 --- a/server/api/voiceMailMessage/voiceMailMessage.attributes.js +++ b/server/api/voiceMailMessage/voiceMailMessage.attributes.js @@ -1 +1 @@ -const a737_0x434c=['sequelize','long','INTEGER','STRING','TIMESTAMP','getDataValue'];(function(_0x305207,_0x434c33){const _0x5cac20=function(_0x2a3ba4){while(--_0x2a3ba4){_0x305207['push'](_0x305207['shift']());}};_0x5cac20(++_0x434c33);}(a737_0x434c,0x1d8));const a737_0x5cac=function(_0x305207,_0x434c33){_0x305207=_0x305207-0x0;let _0x5cac20=a737_0x434c[_0x305207];return _0x5cac20;};const _0x43c420=a737_0x5cac;'use strict';const Sequelize=require(_0x43c420('0x2'));module['exports']={'name':{'type':Sequelize['VIRTUAL'],'get':function(){const _0x2f6b05=_0x43c420;return this[_0x2f6b05('0x1')]('id');}},'msgnum':{'type':Sequelize[_0x43c420('0x4')](0xb),'defaultValue':0x0,'allowNull':![]},'dir':{'type':Sequelize[_0x43c420('0x5')],'defaultValue':''},'context':{'type':Sequelize['STRING'],'defaultValue':''},'macrocontext':{'type':Sequelize[_0x43c420('0x5')],'defaultValue':''},'callerid':{'type':Sequelize['STRING'],'defaultValue':''},'origtime':{'type':Sequelize[_0x43c420('0x5')],'defaultValue':''},'duration':{'type':Sequelize[_0x43c420('0x5')],'defaultValue':''},'mailboxuser':{'type':Sequelize[_0x43c420('0x5')],'defaultValue':''},'mailboxcontext':{'type':Sequelize['STRING'],'defaultValue':''},'recording':{'type':Sequelize['BLOB'](_0x43c420('0x3')),'defaultValue':null},'flag':{'type':Sequelize[_0x43c420('0x5')],'defaultValue':''},'msg_id':{'type':Sequelize[_0x43c420('0x5')],'defaultValue':''},'stamp':{'type':_0x43c420('0x0'),'allowNull':![]}}; \ No newline at end of file +const a884_0x204b=['sequelize','long','getDataValue','STRING','attributes','TIMESTAMP','BLOB'];(function(_0x5f0d76,_0x2c504b){const _0x204b65=function(_0x4f8eaf){while(--_0x4f8eaf){_0x5f0d76['push'](_0x5f0d76['shift']());}};_0x204b65(++_0x2c504b);}(a884_0x204b,0x107));const a884_0x4f8e=function(_0x5f0d76,_0x2c504b){_0x5f0d76=_0x5f0d76-0x1ac;let _0x204b65=a884_0x204b[_0x5f0d76];return _0x204b65;};const a884_0x2aab7c=a884_0x4f8e;'use strict';const {DataTypes}=require(a884_0x2aab7c(0x1af)),attributes={'name':{'type':DataTypes['VIRTUAL'],'get':function(){const _0x242c3e=a884_0x2aab7c;return this[_0x242c3e(0x1b1)]('id');}},'msgnum':{'type':DataTypes['INTEGER']({'length':0xb}),'defaultValue':0x0,'allowNull':![]},'dir':{'type':DataTypes[a884_0x2aab7c(0x1b2)],'defaultValue':''},'context':{'type':DataTypes[a884_0x2aab7c(0x1b2)],'defaultValue':''},'macrocontext':{'type':DataTypes[a884_0x2aab7c(0x1b2)],'defaultValue':''},'callerid':{'type':DataTypes[a884_0x2aab7c(0x1b2)],'defaultValue':''},'origtime':{'type':DataTypes[a884_0x2aab7c(0x1b2)],'defaultValue':''},'duration':{'type':DataTypes['STRING'],'defaultValue':''},'mailboxuser':{'type':DataTypes['STRING'],'defaultValue':''},'mailboxcontext':{'type':DataTypes[a884_0x2aab7c(0x1b2)],'defaultValue':''},'recording':{'type':DataTypes[a884_0x2aab7c(0x1ae)](a884_0x2aab7c(0x1b0)),'defaultValue':null},'flag':{'type':DataTypes[a884_0x2aab7c(0x1b2)],'defaultValue':''},'msg_id':{'type':DataTypes[a884_0x2aab7c(0x1b2)],'defaultValue':''},'stamp':{'type':a884_0x2aab7c(0x1ad),'allowNull':![]}};module['exports'][a884_0x2aab7c(0x1ac)]=attributes; \ No newline at end of file diff --git a/server/api/voiceMailMessage/voiceMailMessage.controller.js b/server/api/voiceMailMessage/voiceMailMessage.controller.js index 9c0eacf..579bebb 100644 --- a/server/api/voiceMailMessage/voiceMailMessage.controller.js +++ b/server/api/voiceMailMessage/voiceMailMessage.controller.js @@ -1 +1 @@ -const a738_0x135f=['error','recording','.wav\x22','intersection','msg_id','filter','body','type','length','status','rawAttributes','update','../../config/logger','includeAll','index','fields','attachment','params','filters','destroy','VoiceMailMessage\x20not\x20found','stack','attributes','sendStatus','fieldName','include','query','VIRTUAL','undefined','send','json','from','where','then','model','VoiceMailMessage','../../components/parsers/qs','limit','sequelize','findOne','nolimit','keys','merge','rows','audio/wav','count','../../mysqldb','api','order','Content-Disposition','options','name','offset','show','map','differenceBy','sort','create','catch'];(function(_0x1aa504,_0x135fee){const _0xde7386=function(_0x2e71a5){while(--_0x2e71a5){_0x1aa504['push'](_0x1aa504['shift']());}};_0xde7386(++_0x135fee);}(a738_0x135f,0xa2));const a738_0xde73=function(_0x1aa504,_0x135fee){_0x1aa504=_0x1aa504-0x0;let _0xde7386=a738_0x135f[_0x1aa504];return _0xde7386;};const _0xe519a=a738_0xde73;'use strict';const _=require('lodash'),qs=require(_0xe519a('0x33')),logger=require(_0xe519a('0x1b'))(_0xe519a('0x3')),db=require(_0xe519a('0x2'))['db'],{Op,ValidationError}=require(_0xe519a('0x35'));function respondWithResult(_0x2e71a5,_0x3909d7){return _0x3909d7=_0x3909d7||0xc8,function(_0x563969){const _0x2d3f03=a738_0xde73;if(_0x563969)return _0x2e71a5[_0x2d3f03('0x18')](_0x3909d7)[_0x2d3f03('0x2d')](_0x563969);};}function respondWithFilteredResult(_0xf11fd1,_0x20d72b){return function(_0x15b2c1){const _0x45c4c1=a738_0xde73;if(_0x15b2c1){const _0x4a3ce4=_0x15b2c1[_0x45c4c1('0x1')],_0xb5eb06=_0x20d72b[_0x45c4c1('0x8')];let _0x8d0588=_0x20d72b[_0x45c4c1('0x8')]+_0x20d72b['limit'],_0x495d9c;return _0x8d0588>=_0x4a3ce4?(_0x8d0588=_0x4a3ce4,_0x495d9c=0xc8):_0x495d9c=0xce,_0xf11fd1[_0x45c4c1('0x18')](_0x495d9c),_0xf11fd1['set']('Content-Range',_0xb5eb06+'-'+_0x8d0588+'/'+_0x4a3ce4)[_0x45c4c1('0x2d')](_0x15b2c1);}return null;};}function saveUpdates(_0x425265){return function(_0xfe72cf){const _0x1d0b0e=a738_0xde73;if(_0xfe72cf)return _0xfe72cf[_0x1d0b0e('0x1a')](_0x425265)[_0x1d0b0e('0x30')](function(_0x299da2){return _0x299da2;});return null;};}function removeEntity(_0x14be6e){return function(_0x2b6f98){const _0x5cad11=a738_0xde73;if(_0x2b6f98)return _0x2b6f98[_0x5cad11('0x22')]()[_0x5cad11('0x30')](function(){const _0x204071=_0x5cad11;_0x14be6e[_0x204071('0x18')](0xcc)['end']();});};}function handleEntityNotFound(_0x59503a){return function(_0x41a13a){const _0x2490cb=a738_0xde73;return!_0x41a13a&&_0x59503a[_0x2490cb('0x26')](0x194),_0x41a13a;};}function handleError(_0x4df726,_0x200361){return _0x200361=_0x200361||0x1f4,function(_0x1f7487){const _0x585b4b=a738_0xde73;logger[_0x585b4b('0xf')](_0x1f7487[_0x585b4b('0x24')]),_0x1f7487['name']&&delete _0x1f7487[_0x585b4b('0x7')],_0x4df726[_0x585b4b('0x18')](_0x200361)[_0x585b4b('0x2c')](_0x1f7487);};}exports[_0xe519a('0x1d')]=function(_0x2d97d8,_0x5bfffd){const _0x593c3b=_0xe519a;let _0x15819e={};const _0x38b7ca={},_0x5ec90e={'count':0x0,'rows':[]},_0x17dde5=_[_0x593c3b('0xa')](db[_0x593c3b('0x32')][_0x593c3b('0x19')],function(_0x28a081){const _0x3093b0=_0x593c3b;return{'name':_0x28a081[_0x3093b0('0x27')],'type':_0x28a081['type']['key']};});_0x38b7ca['model']=_[_0x593c3b('0xb')](_[_0x593c3b('0xa')](_0x17dde5,_0x593c3b('0x7')),[_0x593c3b('0x7')]),_0x38b7ca[_0x593c3b('0x29')]=_[_0x593c3b('0x38')](_0x2d97d8[_0x593c3b('0x29')]),_0x38b7ca[_0x593c3b('0x21')]=_[_0x593c3b('0x12')](_0x38b7ca['model'],_0x38b7ca[_0x593c3b('0x29')]),_0x15819e['attributes']=_[_0x593c3b('0x12')](_0x38b7ca['model'],qs[_0x593c3b('0x1e')](_0x2d97d8['query'][_0x593c3b('0x1e')])),_0x15819e['attributes']=_0x15819e[_0x593c3b('0x25')][_0x593c3b('0x17')]?_0x15819e[_0x593c3b('0x25')]:_0x38b7ca[_0x593c3b('0x31')];typeof _0x2d97d8[_0x593c3b('0x29')][_0x593c3b('0x37')]===_0x593c3b('0x2b')&&(_0x15819e[_0x593c3b('0x34')]=qs[_0x593c3b('0x34')](_0x2d97d8['query'][_0x593c3b('0x34')]),_0x15819e['offset']=qs['offset'](_0x2d97d8[_0x593c3b('0x29')]['offset']));_0x15819e[_0x593c3b('0x4')]=qs['sort'](_0x2d97d8['query'][_0x593c3b('0xc')]),_0x15819e['where']=qs['filters'](_['pick'](_0x2d97d8[_0x593c3b('0x29')],_0x38b7ca[_0x593c3b('0x21')]),_0x17dde5);_0x2d97d8['query'][_0x593c3b('0x14')]&&(_0x15819e['where']=_[_0x593c3b('0x39')](_0x15819e[_0x593c3b('0x2f')],{[Op['or']]:_[_0x593c3b('0xa')](_0x17dde5,function(_0x3ecca3){const _0x14cb25=_0x593c3b;if(_0x3ecca3[_0x14cb25('0x16')]!==_0x14cb25('0x2a')){const _0x10243b={};return _0x10243b[_0x3ecca3['name']]={[Op['like']]:'%'+_0x2d97d8[_0x14cb25('0x29')][_0x14cb25('0x14')]+'%'},_0x10243b;}})}));_0x15819e=_['merge']({},_0x15819e,_0x2d97d8[_0x593c3b('0x6')]);const _0x2c1627={'where':_0x15819e['where']};return db[_0x593c3b('0x32')][_0x593c3b('0x1')](_0x2c1627)[_0x593c3b('0x30')](function(_0x6a243d){const _0x1c2ea6=_0x593c3b;return _0x5ec90e[_0x1c2ea6('0x1')]=_0x6a243d,_0x2d97d8[_0x1c2ea6('0x29')]['includeAll']&&(_0x15819e[_0x1c2ea6('0x28')]=[{'all':!![]}]),db[_0x1c2ea6('0x32')]['findAll'](_0x15819e);})[_0x593c3b('0x30')](function(_0x30dde0){const _0x2d0fd8=_0x593c3b;return _0x5ec90e[_0x2d0fd8('0x3a')]=_0x30dde0,_0x5ec90e;})[_0x593c3b('0x30')](respondWithFilteredResult(_0x5bfffd,_0x15819e))['catch'](handleError(_0x5bfffd,null));},exports[_0xe519a('0x9')]=function(_0x194568,_0x2b8aae){const _0x421738=_0xe519a;let _0x4c199a={'raw':!![],'where':{'id':_0x194568[_0x421738('0x20')]['id']}};const _0x599d9e={};return _0x599d9e['model']=_[_0x421738('0x38')](db[_0x421738('0x32')]['rawAttributes']),_0x599d9e[_0x421738('0x29')]=_[_0x421738('0x38')](_0x194568[_0x421738('0x29')]),_0x599d9e[_0x421738('0x21')]=_[_0x421738('0x12')](_0x599d9e[_0x421738('0x31')],_0x599d9e[_0x421738('0x29')]),_0x4c199a[_0x421738('0x25')]=_[_0x421738('0x12')](_0x599d9e[_0x421738('0x31')],qs['fields'](_0x194568[_0x421738('0x29')][_0x421738('0x1e')])),_0x4c199a['attributes']=_0x4c199a['attributes']['length']?_0x4c199a[_0x421738('0x25')]:_0x599d9e[_0x421738('0x31')],_0x194568['query'][_0x421738('0x1c')]&&(_0x4c199a[_0x421738('0x28')]=[{'all':!![]}]),_0x4c199a=_[_0x421738('0x39')]({},_0x4c199a,_0x194568[_0x421738('0x6')]),db[_0x421738('0x32')][_0x421738('0x36')](_0x4c199a)['then'](handleEntityNotFound(_0x2b8aae,null))['then'](respondWithResult(_0x2b8aae,null))['catch'](handleError(_0x2b8aae,null));},exports[_0xe519a('0xd')]=function(_0x5c17f1,_0x546bca){const _0x4cb634=_0xe519a;return db[_0x4cb634('0x32')]['create'](_0x5c17f1[_0x4cb634('0x15')],{})[_0x4cb634('0x30')](respondWithResult(_0x546bca,0xc9))['catch'](handleError(_0x546bca,null));},exports[_0xe519a('0x1a')]=function(_0x31903a,_0x1e1018){const _0x48b135=_0xe519a;return _0x31903a['body']['id']&&delete _0x31903a[_0x48b135('0x15')]['id'],db['VoiceMailMessage'][_0x48b135('0x36')]({'where':{'id':_0x31903a[_0x48b135('0x20')]['id']}})[_0x48b135('0x30')](handleEntityNotFound(_0x1e1018,null))['then'](saveUpdates(_0x31903a[_0x48b135('0x15')],null))[_0x48b135('0x30')](respondWithResult(_0x1e1018,null))[_0x48b135('0xe')](handleError(_0x1e1018,null));},exports[_0xe519a('0x22')]=function(_0x3b2da6,_0x167882){const _0x5e3835=_0xe519a;return db[_0x5e3835('0x32')][_0x5e3835('0x36')]({'where':{'id':_0x3b2da6[_0x5e3835('0x20')]['id']}})[_0x5e3835('0x30')](handleEntityNotFound(_0x167882,null))[_0x5e3835('0x30')](removeEntity(_0x167882,null))[_0x5e3835('0xe')](handleError(_0x167882,null));},exports['download']=function(_0x4a8fa0,_0x31e0c0){const _0x270341=_0xe519a;return db[_0x270341('0x32')][_0x270341('0x36')]({'where':{'id':_0x4a8fa0['params']['id']},'attributes':['id',_0x270341('0x10'),_0x270341('0x13')]})[_0x270341('0x30')](handleEntityNotFound(_0x31e0c0,null))[_0x270341('0x30')](function(_0x3b238a){const _0x4f84d1=_0x270341;if(_0x3b238a){if(!_0x3b238a[_0x4f84d1('0x10')])throw new ValidationError(_0x4f84d1('0x23'));const _0x400a09={'Content-Type':_0x4f84d1('0x0'),'Content-Disposition':_0x4f84d1('0x1f')};return _0x3b238a[_0x4f84d1('0x13')]&&(_0x400a09[_0x4f84d1('0x5')]='attachment;\x20filename=\x22'+_0x3b238a['msg_id']+_0x4f84d1('0x11')),_0x31e0c0['set'](_0x400a09),_0x31e0c0[_0x4f84d1('0x2c')](Buffer[_0x4f84d1('0x2e')](_0x3b238a[_0x4f84d1('0x10')]));}})[_0x270341('0xe')](handleError(_0x31e0c0,null));}; \ No newline at end of file +const a885_0x6d5b=['VoiceMailMessage','status','VoiceMailMessage\x20not\x20found','stack','end','findOne','../../mysqldb','include','offset','keys','catch','attachment','order','map','sequelize','audio/wav','body','then','rows','index','create','msg_id','download','Content-Disposition','nolimit','where','intersection','key','json','differenceBy','filters','options','length','query','attributes','../../components/parsers/qs','update','.wav\x22','limit','send','merge','show','undefined','from','fields','includeAll','params','findAll','count','../../config/logger','name','lodash','set','model','destroy','fieldName','sort','type','Content-Range','filter','recording'];(function(_0x52de06,_0x12acb6){const _0x6d5b76=function(_0x365e4a){while(--_0x365e4a){_0x52de06['push'](_0x52de06['shift']());}};_0x6d5b76(++_0x12acb6);}(a885_0x6d5b,0x1d4));const a885_0x365e=function(_0x52de06,_0x12acb6){_0x52de06=_0x52de06-0x166;let _0x6d5b76=a885_0x6d5b[_0x52de06];return _0x6d5b76;};const a885_0x3bbf2a=a885_0x365e;'use strict';const _=require(a885_0x3bbf2a(0x170)),qs=require(a885_0x3bbf2a(0x19d)),logger=require(a885_0x3bbf2a(0x16e))('api'),{db}=require(a885_0x3bbf2a(0x180)),{Op,ValidationError}=require(a885_0x3bbf2a(0x188));function respondWithResult(_0x4acf8f,_0xa710b5){return _0xa710b5=_0xa710b5||0xc8,function(_0x223b53){const _0x33d507=a885_0x365e;if(_0x223b53)return _0x4acf8f[_0x33d507(0x17b)](_0xa710b5)[_0x33d507(0x196)](_0x223b53);};}function respondWithFilteredResult(_0x3f0990,_0x359d7f){return function(_0x34a722){const _0x5a184d=a885_0x365e;if(_0x34a722){const _0x5822bc=_0x34a722['count'],_0x25cb04=_0x359d7f[_0x5a184d(0x182)];let _0xbea824=_0x359d7f[_0x5a184d(0x182)]+_0x359d7f[_0x5a184d(0x1a0)],_0x48b673;return _0xbea824>=_0x5822bc?(_0xbea824=_0x5822bc,_0x48b673=0xc8):_0x48b673=0xce,_0x3f0990[_0x5a184d(0x17b)](_0x48b673),_0x3f0990[_0x5a184d(0x171)](_0x5a184d(0x177),_0x25cb04+'-'+_0xbea824+'/'+_0x5822bc)[_0x5a184d(0x196)](_0x34a722);}return null;};}function saveUpdates(_0xaf9878){return function(_0x27a85b){const _0x701ad4=a885_0x365e;if(_0x27a85b)return _0x27a85b[_0x701ad4(0x19e)](_0xaf9878)[_0x701ad4(0x18b)](function(_0x378ee6){return _0x378ee6;});return null;};}function removeEntity(_0x3623f4){return function(_0x5bb8d3){const _0x4d5019=a885_0x365e;if(_0x5bb8d3)return _0x5bb8d3['destroy']()[_0x4d5019(0x18b)](function(){const _0x3172b1=_0x4d5019;_0x3623f4['status'](0xcc)[_0x3172b1(0x17e)]();});};}function handleEntityNotFound(_0x163027){return function(_0x4af520){return!_0x4af520&&_0x163027['sendStatus'](0x194),_0x4af520;};}function handleError(_0x233714,_0x2bd111){return _0x2bd111=_0x2bd111||0x1f4,function(_0x35a2bc){const _0x5792b2=a885_0x365e;logger['error'](_0x35a2bc[_0x5792b2(0x17d)]),_0x35a2bc['name']&&delete _0x35a2bc[_0x5792b2(0x16f)],_0x233714['status'](_0x2bd111)[_0x5792b2(0x1a1)](_0x35a2bc);};}exports[a885_0x3bbf2a(0x18d)]=function(_0x1f515c,_0x32d089){const _0x1dc7d4=a885_0x3bbf2a;let _0x310762={};const _0x24590d={},_0x5b79d8={'count':0x0,'rows':[]},_0x24bc38=_['map'](db[_0x1dc7d4(0x17a)]['rawAttributes'],function(_0x4d806a){const _0x25f252=_0x1dc7d4;return{'name':_0x4d806a[_0x25f252(0x174)],'type':_0x4d806a[_0x25f252(0x176)][_0x25f252(0x195)]};});_0x24590d[_0x1dc7d4(0x172)]=_[_0x1dc7d4(0x197)](_[_0x1dc7d4(0x187)](_0x24bc38,_0x1dc7d4(0x16f)),[_0x1dc7d4(0x16f)]),_0x24590d[_0x1dc7d4(0x19b)]=_[_0x1dc7d4(0x183)](_0x1f515c['query']),_0x24590d[_0x1dc7d4(0x198)]=_[_0x1dc7d4(0x194)](_0x24590d[_0x1dc7d4(0x172)],_0x24590d[_0x1dc7d4(0x19b)]),_0x310762['attributes']=_[_0x1dc7d4(0x194)](_0x24590d[_0x1dc7d4(0x172)],qs[_0x1dc7d4(0x169)](_0x1f515c[_0x1dc7d4(0x19b)][_0x1dc7d4(0x169)])),_0x310762[_0x1dc7d4(0x19c)]=_0x310762['attributes'][_0x1dc7d4(0x19a)]?_0x310762['attributes']:_0x24590d['model'];typeof _0x1f515c[_0x1dc7d4(0x19b)][_0x1dc7d4(0x192)]===_0x1dc7d4(0x167)&&(_0x310762[_0x1dc7d4(0x1a0)]=qs[_0x1dc7d4(0x1a0)](_0x1f515c[_0x1dc7d4(0x19b)][_0x1dc7d4(0x1a0)]),_0x310762[_0x1dc7d4(0x182)]=qs[_0x1dc7d4(0x182)](_0x1f515c['query'][_0x1dc7d4(0x182)]));_0x310762[_0x1dc7d4(0x186)]=qs[_0x1dc7d4(0x175)](_0x1f515c[_0x1dc7d4(0x19b)][_0x1dc7d4(0x175)]),_0x310762[_0x1dc7d4(0x193)]=qs[_0x1dc7d4(0x198)](_['pick'](_0x1f515c[_0x1dc7d4(0x19b)],_0x24590d[_0x1dc7d4(0x198)]),_0x24bc38);_0x1f515c['query']['filter']&&(_0x310762['where']=_[_0x1dc7d4(0x1a2)](_0x310762[_0x1dc7d4(0x193)],{[Op['or']]:_[_0x1dc7d4(0x187)](_0x24bc38,function(_0x51c4ee){const _0x3e2fa2=_0x1dc7d4;if(_0x51c4ee['type']!=='VIRTUAL'){const _0x49b9de={};return _0x49b9de[_0x51c4ee[_0x3e2fa2(0x16f)]]={[Op['like']]:'%'+_0x1f515c[_0x3e2fa2(0x19b)][_0x3e2fa2(0x178)]+'%'},_0x49b9de;}})}));_0x310762=_[_0x1dc7d4(0x1a2)]({},_0x310762,_0x1f515c[_0x1dc7d4(0x199)]);const _0x2fa979={'where':_0x310762[_0x1dc7d4(0x193)]};return db['VoiceMailMessage'][_0x1dc7d4(0x16d)](_0x2fa979)[_0x1dc7d4(0x18b)](function(_0x40d46c){const _0x231b33=_0x1dc7d4;return _0x5b79d8[_0x231b33(0x16d)]=_0x40d46c,_0x1f515c[_0x231b33(0x19b)][_0x231b33(0x16a)]&&(_0x310762[_0x231b33(0x181)]=[{'all':!![]}]),db[_0x231b33(0x17a)][_0x231b33(0x16c)](_0x310762);})[_0x1dc7d4(0x18b)](function(_0x3d0c9b){const _0xe4e424=_0x1dc7d4;return _0x5b79d8[_0xe4e424(0x18c)]=_0x3d0c9b,_0x5b79d8;})['then'](respondWithFilteredResult(_0x32d089,_0x310762))[_0x1dc7d4(0x184)](handleError(_0x32d089,null));},exports[a885_0x3bbf2a(0x166)]=function(_0x198849,_0x3bf3a6){const _0x588a16=a885_0x3bbf2a;let _0xc560a4={'raw':!![],'where':{'id':_0x198849[_0x588a16(0x16b)]['id']}};const _0x505b56={};return _0x505b56[_0x588a16(0x172)]=_[_0x588a16(0x183)](db[_0x588a16(0x17a)]['rawAttributes']),_0x505b56[_0x588a16(0x19b)]=_['keys'](_0x198849['query']),_0x505b56['filters']=_[_0x588a16(0x194)](_0x505b56['model'],_0x505b56[_0x588a16(0x19b)]),_0xc560a4[_0x588a16(0x19c)]=_[_0x588a16(0x194)](_0x505b56[_0x588a16(0x172)],qs['fields'](_0x198849[_0x588a16(0x19b)][_0x588a16(0x169)])),_0xc560a4[_0x588a16(0x19c)]=_0xc560a4[_0x588a16(0x19c)][_0x588a16(0x19a)]?_0xc560a4[_0x588a16(0x19c)]:_0x505b56['model'],_0x198849[_0x588a16(0x19b)][_0x588a16(0x16a)]&&(_0xc560a4[_0x588a16(0x181)]=[{'all':!![]}]),_0xc560a4=_['merge']({},_0xc560a4,_0x198849[_0x588a16(0x199)]),db[_0x588a16(0x17a)][_0x588a16(0x17f)](_0xc560a4)[_0x588a16(0x18b)](handleEntityNotFound(_0x3bf3a6,null))['then'](respondWithResult(_0x3bf3a6,null))['catch'](handleError(_0x3bf3a6,null));},exports[a885_0x3bbf2a(0x18e)]=function(_0x47b83b,_0x29659e){const _0x1b00d4=a885_0x3bbf2a;return db[_0x1b00d4(0x17a)]['create'](_0x47b83b[_0x1b00d4(0x18a)],{})[_0x1b00d4(0x18b)](respondWithResult(_0x29659e,0xc9))['catch'](handleError(_0x29659e,null));},exports['update']=function(_0x68b319,_0x20f7e9){const _0x5b2c47=a885_0x3bbf2a;return _0x68b319[_0x5b2c47(0x18a)]['id']&&delete _0x68b319['body']['id'],db[_0x5b2c47(0x17a)][_0x5b2c47(0x17f)]({'where':{'id':_0x68b319[_0x5b2c47(0x16b)]['id']}})[_0x5b2c47(0x18b)](handleEntityNotFound(_0x20f7e9,null))[_0x5b2c47(0x18b)](saveUpdates(_0x68b319[_0x5b2c47(0x18a)],null))[_0x5b2c47(0x18b)](respondWithResult(_0x20f7e9,null))['catch'](handleError(_0x20f7e9,null));},exports[a885_0x3bbf2a(0x173)]=function(_0x40de91,_0x2d143e){const _0x1000bb=a885_0x3bbf2a;return db[_0x1000bb(0x17a)][_0x1000bb(0x17f)]({'where':{'id':_0x40de91[_0x1000bb(0x16b)]['id']}})['then'](handleEntityNotFound(_0x2d143e,null))[_0x1000bb(0x18b)](removeEntity(_0x2d143e,null))[_0x1000bb(0x184)](handleError(_0x2d143e,null));},exports[a885_0x3bbf2a(0x190)]=function(_0x5515e1,_0x46cbee){const _0x1178e1=a885_0x3bbf2a;return db[_0x1178e1(0x17a)][_0x1178e1(0x17f)]({'where':{'id':_0x5515e1['params']['id']},'attributes':['id',_0x1178e1(0x179),_0x1178e1(0x18f)]})[_0x1178e1(0x18b)](handleEntityNotFound(_0x46cbee,null))[_0x1178e1(0x18b)](function(_0x51a059){const _0x4a4647=_0x1178e1;if(_0x51a059){if(!_0x51a059[_0x4a4647(0x179)])throw new ValidationError(_0x4a4647(0x17c));const _0x3de2c8={'Content-Type':_0x4a4647(0x189),'Content-Disposition':_0x4a4647(0x185)};return _0x51a059[_0x4a4647(0x18f)]&&(_0x3de2c8[_0x4a4647(0x191)]='attachment;\x20filename=\x22'+_0x51a059['msg_id']+_0x4a4647(0x19f)),_0x46cbee[_0x4a4647(0x171)](_0x3de2c8),_0x46cbee[_0x4a4647(0x1a1)](Buffer[_0x4a4647(0x168)](_0x51a059['recording']));}})['catch'](handleError(_0x46cbee,null));}; \ No newline at end of file diff --git a/server/api/voiceMailMessage/voiceMailMessage.model.js b/server/api/voiceMailMessage/voiceMailMessage.model.js index 5147d3f..feb7371 100644 --- a/server/api/voiceMailMessage/voiceMailMessage.model.js +++ b/server/api/voiceMailMessage/voiceMailMessage.model.js @@ -1 +1 @@ -const a739_0x56dc=['dir','exports','define','VoiceMailMessage','./voiceMailMessage.attributes'];(function(_0x4995d7,_0x56dcd7){const _0x1f7408=function(_0x31238d){while(--_0x31238d){_0x4995d7['push'](_0x4995d7['shift']());}};_0x1f7408(++_0x56dcd7);}(a739_0x56dc,0x1b9));const a739_0x1f74=function(_0x4995d7,_0x56dcd7){_0x4995d7=_0x4995d7-0x0;let _0x1f7408=a739_0x56dc[_0x4995d7];return _0x1f7408;};const _0x3da89d=a739_0x1f74;'use strict';const attributes=require(_0x3da89d('0x3'));module[_0x3da89d('0x0')]=function(_0x31238d){const _0x54c238=_0x3da89d,_0x20bd3c=_0x31238d[_0x54c238('0x1')](_0x54c238('0x2'),attributes,{'tableName':'voice_voicemail_messages','paranoid':![],'indexes':[{'name':_0x54c238('0x4'),'fields':[_0x54c238('0x4')]}],'timestamps':![]});return _0x20bd3c;}; \ No newline at end of file +const a886_0xf3be=['sequelize','./voiceMailMessage.attributes','./voiceMailMessage.options','exports','VoiceMailMessage','function','init'];(function(_0x1f7f26,_0x522ee6){const _0xf3be33=function(_0x515bff){while(--_0x515bff){_0x1f7f26['push'](_0x1f7f26['shift']());}};_0xf3be33(++_0x522ee6);}(a886_0xf3be,0x15a));const a886_0x515b=function(_0x1f7f26,_0x522ee6){_0x1f7f26=_0x1f7f26-0xc6;let _0xf3be33=a886_0xf3be[_0x1f7f26];return _0xf3be33;};const a886_0x389f53=a886_0x515b;'use strict';const {Model}=require(a886_0x389f53(0xca)),{attributes}=require(a886_0x389f53(0xcb)),{options}=require(a886_0x389f53(0xcc));class VoiceMailMessage extends Model{}function init(_0x436431,_0x5c22b4){const _0x2c09f2=a886_0x389f53,_0x28b4b7=options(_0x436431),_0x3408f0=typeof _0x5c22b4===_0x2c09f2(0xc8)?_0x5c22b4(_0x28b4b7):_0x28b4b7;return VoiceMailMessage[_0x2c09f2(0xc9)](attributes,_0x3408f0),VoiceMailMessage;}module[a886_0x389f53(0xc6)][a886_0x389f53(0xc7)]=VoiceMailMessage,module[a886_0x389f53(0xc6)][a886_0x389f53(0xc9)]=init; \ No newline at end of file diff --git a/server/api/voiceMailMessage/voiceMailMessage.options.js b/server/api/voiceMailMessage/voiceMailMessage.options.js new file mode 100644 index 0000000..9f25dbb --- /dev/null +++ b/server/api/voiceMailMessage/voiceMailMessage.options.js @@ -0,0 +1 @@ +var a887_0xc671=['dir','options','voice_voicemail_messages','exports'];(function(_0x561b32,_0x25203e){var _0xc671e4=function(_0x2c0072){while(--_0x2c0072){_0x561b32['push'](_0x561b32['shift']());}};_0xc671e4(++_0x25203e);}(a887_0xc671,0x12a));var a887_0x2c00=function(_0x561b32,_0x25203e){_0x561b32=_0x561b32-0xe3;var _0xc671e4=a887_0xc671[_0x561b32];return _0xc671e4;};var a887_0x22d9df=a887_0x2c00;function options(_0x52180e){var _0x59925e=a887_0x2c00;return{'sequelize':_0x52180e,'tableName':_0x59925e(0xe3),'paranoid':![],'indexes':[{'name':_0x59925e(0xe5),'fields':[_0x59925e(0xe5)]}],'timestamps':![]};}module[a887_0x22d9df(0xe4)][a887_0x22d9df(0xe6)]=options; \ No newline at end of file diff --git a/server/api/voiceMusicOnHold/index.js b/server/api/voiceMusicOnHold/index.js index 1df440c..ec2b0c5 100644 --- a/server/api/voiceMusicOnHold/index.js +++ b/server/api/voiceMusicOnHold/index.js @@ -1 +1 @@ -const a740_0x5b94=['update','isAuthenticated','post','./voiceMusicOnHold.controller','delete','get','getSounds','/:id/sounds','show','index','Router','exports','/:id','put','/:id/sounds/:id2'];(function(_0x1dceb1,_0x5b94fe){const _0x558920=function(_0x56c0e5){while(--_0x56c0e5){_0x1dceb1['push'](_0x1dceb1['shift']());}};_0x558920(++_0x5b94fe);}(a740_0x5b94,0x199));const a740_0x5589=function(_0x1dceb1,_0x5b94fe){_0x1dceb1=_0x1dceb1-0x0;let _0x558920=a740_0x5b94[_0x1dceb1];return _0x558920;};const _0x114425=a740_0x5589;'use strict';const express=require('express'),router=express[_0x114425('0x6')](),auth=require('../../components/auth/service'),controller=require(_0x114425('0xe'));router[_0x114425('0x1')]('/',auth[_0x114425('0xc')](),controller[_0x114425('0x5')]),router[_0x114425('0x1')](_0x114425('0x8'),auth['isAuthenticated'](),controller[_0x114425('0x4')]),router[_0x114425('0x1')](_0x114425('0x3'),auth['isAuthenticated'](),controller[_0x114425('0x2')]),router[_0x114425('0xd')]('/',auth[_0x114425('0xc')](),controller['create']),router[_0x114425('0xd')](_0x114425('0x3'),auth[_0x114425('0xc')](),controller['addSound']),router[_0x114425('0x9')](_0x114425('0x8'),auth[_0x114425('0xc')](),controller[_0x114425('0xb')]),router[_0x114425('0x0')](_0x114425('0x8'),auth[_0x114425('0xc')](),controller['destroy']),router['delete'](_0x114425('0xa'),auth[_0x114425('0xc')](),controller['removeSound']),module[_0x114425('0x7')]=router; \ No newline at end of file +const a888_0x363b=['post','Router','./voiceMusicOnHold.controller','put','removeSound','../../components/auth/service','/:id','destroy','getSounds','index','delete','create','/:id/sounds','show','update','get','isAuthenticated'];(function(_0x4bc07c,_0x42a0e3){const _0x363b68=function(_0x2d759f){while(--_0x2d759f){_0x4bc07c['push'](_0x4bc07c['shift']());}};_0x363b68(++_0x42a0e3);}(a888_0x363b,0x70));const a888_0x2d75=function(_0x4bc07c,_0x42a0e3){_0x4bc07c=_0x4bc07c-0x1c3;let _0x363b68=a888_0x363b[_0x4bc07c];return _0x363b68;};const a888_0xa9928f=a888_0x2d75;'use strict';const express=require('express'),router=express[a888_0xa9928f(0x1cb)](),auth=require(a888_0xa9928f(0x1cf)),controller=require(a888_0xa9928f(0x1cc));router[a888_0xa9928f(0x1c8)]('/',auth[a888_0xa9928f(0x1c9)](),controller[a888_0xa9928f(0x1d3)]),router['get'](a888_0xa9928f(0x1d0),auth[a888_0xa9928f(0x1c9)](),controller[a888_0xa9928f(0x1c6)]),router[a888_0xa9928f(0x1c8)](a888_0xa9928f(0x1c5),auth[a888_0xa9928f(0x1c9)](),controller[a888_0xa9928f(0x1d2)]),router['post']('/',auth['isAuthenticated'](),controller[a888_0xa9928f(0x1c4)]),router[a888_0xa9928f(0x1ca)](a888_0xa9928f(0x1c5),auth['isAuthenticated'](),controller['addSound']),router[a888_0xa9928f(0x1cd)](a888_0xa9928f(0x1d0),auth[a888_0xa9928f(0x1c9)](),controller[a888_0xa9928f(0x1c7)]),router['delete'](a888_0xa9928f(0x1d0),auth[a888_0xa9928f(0x1c9)](),controller[a888_0xa9928f(0x1d1)]),router[a888_0xa9928f(0x1c3)]('/:id/sounds/:id2',auth[a888_0xa9928f(0x1c9)](),controller[a888_0xa9928f(0x1ce)]),module['exports']=router; \ No newline at end of file diff --git a/server/api/voiceMusicOnHold/voiceMusicOnHold.attributes.js b/server/api/voiceMusicOnHold/voiceMusicOnHold.attributes.js index c64e33b..796c4ef 100644 --- a/server/api/voiceMusicOnHold/voiceMusicOnHold.attributes.js +++ b/server/api/voiceMusicOnHold/voiceMusicOnHold.attributes.js @@ -1 +1 @@ -const a741_0x868e=['TIMESTAMP','sequelize','quietmp3','STRING','alpha','quietmp3nb','name','ENUM','custom','files','exports'];(function(_0x229961,_0x868e26){const _0x487d67=function(_0x7d6c28){while(--_0x7d6c28){_0x229961['push'](_0x229961['shift']());}};_0x487d67(++_0x868e26);}(a741_0x868e,0x178));const a741_0x487d=function(_0x229961,_0x868e26){_0x229961=_0x229961-0x0;let _0x487d67=a741_0x868e[_0x229961];return _0x487d67;};const _0x1e53af=a741_0x487d;'use strict';const Sequelize=require(_0x1e53af('0xa'));module[_0x1e53af('0x8')]={'name':{'type':Sequelize[_0x1e53af('0x1')],'allowNull':![],'unique':_0x1e53af('0x4')},'mode':{'type':Sequelize[_0x1e53af('0x5')](_0x1e53af('0x6'),_0x1e53af('0x7'),'mp3nb',_0x1e53af('0x3'),_0x1e53af('0x0'),'mp3'),'allowNull':!![],'defaultValue':_0x1e53af('0x7')},'directory':{'type':Sequelize[_0x1e53af('0x1')],'allowNull':!![]},'application':{'type':Sequelize['STRING'],'allowNull':!![]},'digit':{'type':Sequelize['STRING'],'allowNull':!![]},'sort':{'type':Sequelize[_0x1e53af('0x1')],'allowNull':!![],'defaultValue':_0x1e53af('0x2')},'format':{'type':Sequelize[_0x1e53af('0x1')],'allowNull':!![]},'stamp':{'type':_0x1e53af('0x9')},'defaultEntry':{'type':Sequelize['BOOLEAN'],'defaultValue':0x0}}; \ No newline at end of file +const a889_0x5d1a=['exports','custom','files','mp3','attributes','ENUM','BOOLEAN','quietmp3','name','STRING','TIMESTAMP'];(function(_0x42e4a6,_0x1dbcc6){const _0x5d1a09=function(_0x3415c1){while(--_0x3415c1){_0x42e4a6['push'](_0x42e4a6['shift']());}};_0x5d1a09(++_0x1dbcc6);}(a889_0x5d1a,0xe4));const a889_0x3415=function(_0x42e4a6,_0x1dbcc6){_0x42e4a6=_0x42e4a6-0x181;let _0x5d1a09=a889_0x5d1a[_0x42e4a6];return _0x5d1a09;};const a889_0x35d978=a889_0x3415;'use strict';const {DataTypes}=require('sequelize'),attributes={'name':{'type':DataTypes[a889_0x35d978(0x182)],'allowNull':![],'unique':a889_0x35d978(0x181)},'mode':{'type':DataTypes[a889_0x35d978(0x189)](a889_0x35d978(0x185),'files','mp3nb','quietmp3nb',a889_0x35d978(0x18b),a889_0x35d978(0x187)),'allowNull':!![],'defaultValue':a889_0x35d978(0x186)},'directory':{'type':DataTypes['STRING'],'allowNull':!![]},'application':{'type':DataTypes['STRING'],'allowNull':!![]},'digit':{'type':DataTypes['STRING'],'allowNull':!![]},'sort':{'type':DataTypes[a889_0x35d978(0x182)],'allowNull':!![],'defaultValue':'alpha'},'format':{'type':DataTypes[a889_0x35d978(0x182)],'allowNull':!![]},'stamp':{'type':a889_0x35d978(0x183)},'defaultEntry':{'type':DataTypes[a889_0x35d978(0x18a)],'defaultValue':0x0}};module[a889_0x35d978(0x184)][a889_0x35d978(0x188)]=attributes; \ No newline at end of file diff --git a/server/api/voiceMusicOnHold/voiceMusicOnHold.controller.js b/server/api/voiceMusicOnHold/voiceMusicOnHold.controller.js index f203da2..09f1714 100644 --- a/server/api/voiceMusicOnHold/voiceMusicOnHold.controller.js +++ b/server/api/voiceMusicOnHold/voiceMusicOnHold.controller.js @@ -1 +1 @@ -const a742_0x37c4=['fields','MusicOnHolds','sendStatus','catch','join','params','name','addSound','length','format','UserProfileResource','../../config/environment','directory','map','pick','Sound','create','userProfileId','limit','keys','undefined','findOne','rawAttributes','mkdirSync','body','set','offset','createdAt','../../components/parsers/qs','root','0777','id2','user','converted_format','findAll','destroy','then','intersection','UserProfileSection','count','sort','server/files/moh','readdirSync','%s.%s','includeAll','unlinkSync','mode','api','include','model','end','rmdirSync','merge','symlinkSync','filter','save_name','json','sequelize','nolimit','removeSound','query','../../config/logger','extname','error','basename','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','lodash','files','stack','show','forEach','where','options','order','getSounds','message','like','type','attributes','filters','fieldName','get','status','VoiceMusicOnHold'];(function(_0x5785d6,_0x37c4e0){const _0x26a19c=function(_0x17f693){while(--_0x17f693){_0x5785d6['push'](_0x5785d6['shift']());}};_0x26a19c(++_0x37c4e0);}(a742_0x37c4,0xa9));const a742_0x26a1=function(_0x5785d6,_0x37c4e0){_0x5785d6=_0x5785d6-0x0;let _0x26a19c=a742_0x37c4[_0x5785d6];return _0x26a19c;};const _0x4d0c84=a742_0x26a1;'use strict';const util=require('util'),path=require('path'),fs=require('fs'),_=require(_0x4d0c84('0x41')),qs=require(_0x4d0c84('0x1b')),logger=require(_0x4d0c84('0x3c'))(_0x4d0c84('0x2e')),config=require(_0x4d0c84('0xa')),db=require('../../mysqldb')['db'],{Op,ValidationError}=require(_0x4d0c84('0x38'));function respondWithStatusCode(_0x17f693,_0x4bc48a){return _0x4bc48a=_0x4bc48a||0xcc,function(_0x6385bf){const _0x3fdc78=a742_0x26a1;if(_0x6385bf)return _0x17f693[_0x3fdc78('0x1')](_0x4bc48a);return _0x17f693[_0x3fdc78('0x51')](_0x4bc48a)[_0x3fdc78('0x31')]();};}function respondWithResult(_0x447879,_0x59850e){return _0x59850e=_0x59850e||0xc8,function(_0x2006f8){if(_0x2006f8)return _0x447879['status'](_0x59850e)['json'](_0x2006f8);};}function respondWithFilteredResult(_0x3172b8,_0x319959){return function(_0x48f680){const _0x1df3ab=a742_0x26a1;if(_0x48f680){const _0x1a4e0a=_0x48f680['count'],_0x50a9bc=_0x319959['offset'];let _0x3a106b=_0x319959[_0x1df3ab('0x19')]+_0x319959['limit'],_0x2c8f10;return _0x3a106b>=_0x1a4e0a?(_0x3a106b=_0x1a4e0a,_0x2c8f10=0xc8):_0x2c8f10=0xce,_0x3172b8[_0x1df3ab('0x51')](_0x2c8f10),_0x3172b8[_0x1df3ab('0x18')]('Content-Range',_0x50a9bc+'-'+_0x3a106b+'/'+_0x1a4e0a)[_0x1df3ab('0x37')](_0x48f680);}return null;};}function saveUpdates(_0x170fb3){return function(_0x504abf){const _0x12388c=a742_0x26a1;if(_0x504abf)return _0x504abf['update'](_0x170fb3)[_0x12388c('0x23')](function(_0x37607b){return _0x37607b;});return null;};}function removeEntity(_0x2e9330){return function(_0x6cebff){const _0x102f58=a742_0x26a1;if(_0x6cebff)return _0x6cebff[_0x102f58('0x22')]()['then'](function(){const _0x246d1e=_0x102f58,_0xed6032=_0x6cebff['get']({'plain':!![]}),_0x3b1945=_0x246d1e('0x0');return db[_0x246d1e('0x9')][_0x246d1e('0x22')]({'where':{'type':_0x3b1945,'resourceId':_0xed6032['id']}})['then'](function(){return _0x6cebff;});})['then'](function(){const _0x5d333e=_0x102f58;_0x2e9330[_0x5d333e('0x51')](0xcc)[_0x5d333e('0x31')]();});};}function handleEntityNotFound(_0x27bdf1){return function(_0x4dba6a){const _0x128f96=a742_0x26a1;return!_0x4dba6a&&_0x27bdf1[_0x128f96('0x1')](0x194),_0x4dba6a;};}function handleError(_0x22e6f4,_0x4e4cc7){return _0x4e4cc7=_0x4e4cc7||0x1f4,function(_0x5295ae){const _0x5e7560=a742_0x26a1;logger[_0x5e7560('0x3e')](_0x5295ae[_0x5e7560('0x43')]),_0x5295ae['name']&&delete _0x5295ae['name'],_0x22e6f4[_0x5e7560('0x51')](_0x4e4cc7)['send'](_0x5295ae);};}exports['index']=function(_0x37cc1e,_0x47a8b9){const _0x17708f=_0x4d0c84;let _0x56ddc8={};const _0x207baa={},_0x1f11f3={'count':0x0,'rows':[]},_0xeae61d=_[_0x17708f('0xc')](db[_0x17708f('0x52')][_0x17708f('0x15')],function(_0x54e68f){const _0x116f8a=_0x17708f;return{'name':_0x54e68f[_0x116f8a('0x4f')],'type':_0x54e68f[_0x116f8a('0x4c')]['key']};});_0x207baa[_0x17708f('0x30')]=_[_0x17708f('0xc')](_0xeae61d,_0x17708f('0x5')),_0x207baa[_0x17708f('0x3b')]=_['keys'](_0x37cc1e['query']),_0x207baa[_0x17708f('0x4e')]=_[_0x17708f('0x24')](_0x207baa[_0x17708f('0x30')],_0x207baa['query']),_0x56ddc8[_0x17708f('0x4d')]=_[_0x17708f('0x24')](_0x207baa['model'],qs[_0x17708f('0x53')](_0x37cc1e[_0x17708f('0x3b')][_0x17708f('0x53')])),_0x56ddc8[_0x17708f('0x4d')]=_0x56ddc8[_0x17708f('0x4d')][_0x17708f('0x7')]?_0x56ddc8[_0x17708f('0x4d')]:_0x207baa[_0x17708f('0x30')];typeof _0x37cc1e['query']['nolimit']===_0x17708f('0x13')&&(_0x56ddc8[_0x17708f('0x11')]=qs[_0x17708f('0x11')](_0x37cc1e[_0x17708f('0x3b')][_0x17708f('0x11')]),_0x56ddc8['offset']=qs[_0x17708f('0x19')](_0x37cc1e['query']['offset']));_0x56ddc8[_0x17708f('0x48')]=qs[_0x17708f('0x27')](_0x37cc1e[_0x17708f('0x3b')]['sort']),_0x56ddc8[_0x17708f('0x46')]=qs['filters'](_[_0x17708f('0xd')](_0x37cc1e[_0x17708f('0x3b')],_0x207baa[_0x17708f('0x4e')]),_0xeae61d);_0x37cc1e[_0x17708f('0x3b')][_0x17708f('0x35')]&&(_0x56ddc8[_0x17708f('0x46')]=_[_0x17708f('0x33')](_0x56ddc8[_0x17708f('0x46')],{[Op['or']]:_[_0x17708f('0xc')](_0xeae61d,function(_0x47a142){const _0x229877=_0x17708f;if(_0x47a142[_0x229877('0x4c')]!=='VIRTUAL'){const _0x565472={};return _0x565472[_0x47a142['name']]={[Op[_0x229877('0x4b')]]:'%'+_0x37cc1e['query']['filter']+'%'},_0x565472;}})}));_0x56ddc8=_[_0x17708f('0x33')]({},_0x56ddc8,_0x37cc1e['options']);const _0x3453ca={'where':_0x56ddc8[_0x17708f('0x46')]};return db['VoiceMusicOnHold'][_0x17708f('0x26')](_0x3453ca)[_0x17708f('0x23')](function(_0x1acbfb){const _0x47acc2=_0x17708f;return _0x1f11f3[_0x47acc2('0x26')]=_0x1acbfb,_0x37cc1e[_0x47acc2('0x3b')][_0x47acc2('0x2b')]&&(_0x56ddc8['include']=[{'all':!![]}]),db[_0x47acc2('0x52')][_0x47acc2('0x21')](_0x56ddc8);})[_0x17708f('0x23')](function(_0x580684){return _0x1f11f3['rows']=_0x580684,_0x1f11f3;})[_0x17708f('0x23')](respondWithFilteredResult(_0x47a8b9,_0x56ddc8))[_0x17708f('0x2')](handleError(_0x47a8b9,null));},exports[_0x4d0c84('0x44')]=function(_0x5a9854,_0xd37119){const _0x1fdeec=_0x4d0c84;let _0x47ace3={'raw':![],'where':{'id':_0x5a9854['params']['id']}};const _0x1f20e7={};return _0x1f20e7['model']=_[_0x1fdeec('0x12')](db[_0x1fdeec('0x52')][_0x1fdeec('0x15')]),_0x1f20e7[_0x1fdeec('0x3b')]=_[_0x1fdeec('0x12')](_0x5a9854['query']),_0x1f20e7['filters']=_[_0x1fdeec('0x24')](_0x1f20e7[_0x1fdeec('0x30')],_0x1f20e7[_0x1fdeec('0x3b')]),_0x47ace3['attributes']=_[_0x1fdeec('0x24')](_0x1f20e7[_0x1fdeec('0x30')],qs[_0x1fdeec('0x53')](_0x5a9854['query'][_0x1fdeec('0x53')])),_0x47ace3['attributes']=_0x47ace3[_0x1fdeec('0x4d')][_0x1fdeec('0x7')]?_0x47ace3[_0x1fdeec('0x4d')]:_0x1f20e7['model'],_0x5a9854[_0x1fdeec('0x3b')][_0x1fdeec('0x2b')]&&(_0x47ace3[_0x1fdeec('0x2f')]=[{'all':!![]}]),_0x47ace3=_['merge']({},_0x47ace3,_0x5a9854[_0x1fdeec('0x47')]),db[_0x1fdeec('0x52')][_0x1fdeec('0x14')](_0x47ace3)['then'](handleEntityNotFound(_0xd37119,null))['then'](respondWithResult(_0xd37119,null))[_0x1fdeec('0x2')](handleError(_0xd37119,null));},exports['update']=function(_0x5ba026,_0x39af02){const _0x1fe736=_0x4d0c84;return _0x5ba026[_0x1fe736('0x17')]['id']&&delete _0x5ba026[_0x1fe736('0x17')]['id'],db['VoiceMusicOnHold'][_0x1fe736('0x14')]({'where':{'id':_0x5ba026[_0x1fe736('0x4')]['id']}})[_0x1fe736('0x23')](handleEntityNotFound(_0x39af02,null))[_0x1fe736('0x23')](saveUpdates(_0x5ba026['body'],null))['then'](respondWithResult(_0x39af02,null))[_0x1fe736('0x2')](handleError(_0x39af02,null));},exports[_0x4d0c84('0xf')]=function(_0x4d71e9,_0x43e43b){const _0x3dbc6b=_0x4d0c84;return db[_0x3dbc6b('0x38')]['transaction'](function(_0xdcadb){const _0x36335a=_0x3dbc6b;return _0x4d71e9[_0x36335a('0x17')][_0x36335a('0x2d')]==='files'&&(_0x4d71e9['body'][_0x36335a('0xb')]=path[_0x36335a('0x3')](config[_0x36335a('0x1c')],_0x36335a('0x28'),_0x4d71e9['body'][_0x36335a('0x5')])),db[_0x36335a('0x52')][_0x36335a('0xf')](_0x4d71e9['body'],{'transaction':_0xdcadb})[_0x36335a('0x23')](function(_0x24e96b){const _0x1bae75=_0x36335a;_0x4d71e9[_0x1bae75('0x17')][_0x1bae75('0x2d')]===_0x1bae75('0x42')&&fs[_0x1bae75('0x16')](_0x24e96b[_0x1bae75('0xb')],parseInt(_0x1bae75('0x1d'),0x8));const _0xf24252=_0x4d71e9[_0x1bae75('0x1f')]['get']({'plain':!![]});if(!_0xf24252)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0xf24252['role']===_0x1bae75('0x1f')){const _0x5caabd=_0x24e96b[_0x1bae75('0x50')]({'plain':!![]});return db[_0x1bae75('0x25')][_0x1bae75('0x14')]({'where':{'name':_0x1bae75('0x0'),'userProfileId':_0xf24252[_0x1bae75('0x10')]},'raw':!![]})['then'](function(_0x549b4b){const _0x55111c=_0x1bae75;return _0x549b4b&&_0x549b4b['autoAssociation']===0x0?db['UserProfileResource'][_0x55111c('0xf')]({'name':_0x5caabd['name'],'resourceId':_0x5caabd['id'],'type':_0x549b4b[_0x55111c('0x5')],'sectionId':_0x549b4b['id']},{})[_0x55111c('0x23')](function(){return _0x24e96b;}):_0x24e96b;})[_0x1bae75('0x2')](function(_0x4474ad){const _0x67fc45=_0x1bae75;logger[_0x67fc45('0x3e')](_0x67fc45('0x40'),_0x4474ad);});}return _0x24e96b;});})[_0x3dbc6b('0x23')](respondWithResult(_0x43e43b,0xc9))['catch'](handleError(_0x43e43b,null));},exports[_0x4d0c84('0x22')]=function(_0x52c0fd,_0xc490d){const _0x558dc6=_0x4d0c84;return db['VoiceMusicOnHold']['findOne']({'where':{'id':_0x52c0fd['params']['id']}})[_0x558dc6('0x23')](function(_0x591f1f){const _0x1844d5=_0x558dc6;if(_0x591f1f)return db['sequelize']['transaction'](function(_0x1400a4){const _0x48947b=a742_0x26a1;return _0x591f1f['destroy']({'transaction':_0x1400a4,'raw':!![]})[_0x48947b('0x23')](function(_0x19914c){const _0x357936=_0x48947b;return _0x19914c[_0x357936('0xb')]&&(fs[_0x357936('0x29')](_0x19914c['directory'])[_0x357936('0x45')](function(_0x5d5d12){const _0x19849f=_0x357936;fs[_0x19849f('0x2c')](path['join'](_0x19914c[_0x19849f('0xb')],_0x5d5d12));}),fs[_0x357936('0x32')](_0x19914c[_0x357936('0xb')])),_0x19914c;});})[_0x1844d5('0x2')](function(_0x356c26){const _0x1aa178=_0x1844d5;throw new ValidationError(_0x356c26[_0x1aa178('0x4a')]);});})[_0x558dc6('0x23')](handleEntityNotFound(_0xc490d,null))[_0x558dc6('0x23')](removeEntity(_0xc490d,null))['catch'](handleError(_0xc490d,null));},exports[_0x4d0c84('0x6')]=function(_0xeb3d64,_0x2a081d){const _0x3f5d41=_0x4d0c84;return db[_0x3f5d41('0x38')]['transaction'](function(_0x333d0f){const _0x29e3ab=_0x3f5d41;let _0x2e55da;return db[_0x29e3ab('0x52')][_0x29e3ab('0x14')]({'where':{'id':_0xeb3d64[_0x29e3ab('0x4')]['id']}})[_0x29e3ab('0x23')](function(_0x5331f7){const _0x18b487=_0x29e3ab;if(_0x5331f7)return _0x2e55da=_0x5331f7,_0x5331f7[_0x18b487('0x6')](_0xeb3d64[_0x18b487('0x17')]['id'],{'transaction':_0x333d0f});})[_0x29e3ab('0x23')](function(_0x4cec25){const _0x15ce8c=_0x29e3ab;if(_0x4cec25)return db[_0x15ce8c('0xe')]['findOne']({'where':{'id':_0xeb3d64[_0x15ce8c('0x17')]['id']},'attributes':['id','name',_0x15ce8c('0x36'),_0x15ce8c('0x20'),_0x15ce8c('0x1a')],'raw':!![]});})[_0x29e3ab('0x23')](function(_0xe24057){const _0x1d08bb=_0x29e3ab;if(_0xe24057){const _0x3dd21b=path[_0x1d08bb('0x3')](config[_0x1d08bb('0x1c')],'server/files/sounds/converted',util[_0x1d08bb('0x8')](_0x1d08bb('0x2a'),path[_0x1d08bb('0x3f')](_0xe24057[_0x1d08bb('0x36')],path[_0x1d08bb('0x3d')](_0xe24057[_0x1d08bb('0x36')])),_0xe24057[_0x1d08bb('0x20')])),_0x312ef8=path[_0x1d08bb('0x3')](config[_0x1d08bb('0x1c')],'server/files/moh',_0x2e55da[_0x1d08bb('0x5')],util[_0x1d08bb('0x8')](_0x1d08bb('0x2a'),_0xe24057[_0x1d08bb('0x5')],_0xe24057[_0x1d08bb('0x20')]));return fs[_0x1d08bb('0x34')](_0x3dd21b,_0x312ef8),_0xe24057;}})[_0x29e3ab('0x2')](function(_0xa98efa){const _0x3b3022=_0x29e3ab;throw new ValidationError(_0xa98efa[_0x3b3022('0x4a')]);});})[_0x3f5d41('0x23')](handleEntityNotFound(_0x2a081d,null))['then'](respondWithResult(_0x2a081d,0xc9))[_0x3f5d41('0x2')](handleError(_0x2a081d,null));},exports[_0x4d0c84('0x3a')]=function(_0x43b596,_0x55d100){const _0x599c71=_0x4d0c84;return db['sequelize']['transaction'](function(){const _0x5ba0e9=a742_0x26a1;let _0x4216e6;return db[_0x5ba0e9('0x52')][_0x5ba0e9('0x14')]({'where':{'id':_0x43b596['params']['id']}})[_0x5ba0e9('0x23')](handleEntityNotFound(_0x55d100,null))['then'](function(_0x4f553d){const _0x2fd440=_0x5ba0e9;if(_0x4f553d)return _0x4216e6=_0x4f553d,_0x4f553d['removeSound'](_0x43b596[_0x2fd440('0x4')]['id2']);})[_0x5ba0e9('0x23')](function(_0x349f11){const _0x4a0165=_0x5ba0e9;if(_0x349f11)return db['Sound'][_0x4a0165('0x14')]({'where':{'id':_0x43b596[_0x4a0165('0x4')][_0x4a0165('0x1e')]},'attributes':['id',_0x4a0165('0x5'),_0x4a0165('0x36'),_0x4a0165('0x20'),_0x4a0165('0x1a')],'raw':!![]});})[_0x5ba0e9('0x23')](function(_0x319032){const _0x1187cb=_0x5ba0e9;if(_0x319032)return fs[_0x1187cb('0x2c')](path['join'](_0x4216e6['directory'],util[_0x1187cb('0x8')]('%s.%s',_0x319032[_0x1187cb('0x5')],_0x319032[_0x1187cb('0x20')]))),_0x319032;})[_0x5ba0e9('0x2')](function(_0x4e596b){const _0x31a9f8=_0x5ba0e9;throw new ValidationError(_0x4e596b[_0x31a9f8('0x4a')]);});})[_0x599c71('0x23')](handleEntityNotFound(_0x55d100,null))[_0x599c71('0x23')](respondWithStatusCode(_0x55d100,0xcc))[_0x599c71('0x2')](handleError(_0x55d100,null));},exports['getSounds']=function(_0x35e476,_0xac4f69){const _0xb2924c=_0x4d0c84;let _0xd08c8d={};const _0x1e9062={};let _0x329118,_0x54f5f8;return db[_0xb2924c('0x52')][_0xb2924c('0x14')]({'where':{'id':_0x35e476[_0xb2924c('0x4')]['id']}})[_0xb2924c('0x23')](handleEntityNotFound(_0xac4f69,null))[_0xb2924c('0x23')](function(_0x29c32a){const _0x357694=_0xb2924c;if(_0x29c32a)return _0x329118=_0x29c32a,_0x1e9062[_0x357694('0x30')]=_['keys'](db[_0x357694('0xe')][_0x357694('0x15')]),_0x1e9062[_0x357694('0x3b')]=_[_0x357694('0x12')](_0x35e476[_0x357694('0x3b')]),_0x1e9062[_0x357694('0x4e')]=_[_0x357694('0x24')](_0x1e9062[_0x357694('0x30')],_0x1e9062[_0x357694('0x3b')]),_0xd08c8d[_0x357694('0x4d')]=_[_0x357694('0x24')](_0x1e9062[_0x357694('0x30')],qs[_0x357694('0x53')](_0x35e476['query'][_0x357694('0x53')])),_0xd08c8d['attributes']=_0xd08c8d['attributes'][_0x357694('0x7')]?_0xd08c8d[_0x357694('0x4d')]:_0x1e9062[_0x357694('0x30')],_0xd08c8d[_0x357694('0x48')]=qs['sort'](_0x35e476[_0x357694('0x3b')]['sort']),_0xd08c8d[_0x357694('0x46')]=qs[_0x357694('0x4e')](_[_0x357694('0xd')](_0x35e476[_0x357694('0x3b')],_0x1e9062[_0x357694('0x4e')])),_0x35e476[_0x357694('0x3b')][_0x357694('0x35')]&&(_0xd08c8d[_0x357694('0x46')]=_[_0x357694('0x33')](_0xd08c8d[_0x357694('0x46')],{[Op['or']]:_[_0x357694('0xc')](_0xd08c8d[_0x357694('0x4d')],function(_0x20bec6){const _0x54ad19=_0x357694,_0x46e89a={};return _0x46e89a[_0x20bec6]={[Op[_0x54ad19('0x4b')]]:'%'+_0x35e476[_0x54ad19('0x3b')][_0x54ad19('0x35')]+'%'},_0x46e89a;})})),_0xd08c8d=_[_0x357694('0x33')]({},_0xd08c8d,_0x35e476[_0x357694('0x47')]),_0x329118[_0x357694('0x49')](_0xd08c8d);})[_0xb2924c('0x23')](function(_0x176a8e){const _0x310213=_0xb2924c;if(_0x176a8e)return _0x54f5f8=_0x176a8e[_0x310213('0x7')],typeof _0x35e476['query'][_0x310213('0x39')]===_0x310213('0x13')&&(_0xd08c8d['limit']=qs[_0x310213('0x11')](_0x35e476['query'][_0x310213('0x11')]),_0xd08c8d[_0x310213('0x19')]=qs[_0x310213('0x19')](_0x35e476[_0x310213('0x3b')][_0x310213('0x19')])),_0x329118[_0x310213('0x49')](_0xd08c8d);})['then'](function(_0x3548c9){if(_0x3548c9)return _0x3548c9?{'count':_0x54f5f8,'rows':_0x3548c9}:null;})['then'](respondWithResult(_0xac4f69,null))[_0xb2924c('0x2')](handleError(_0xac4f69,null));}; \ No newline at end of file +const a890_0x1380=['Unable\x20to\x20retrieve\x20the\x20current\x20user','MusicOnHolds','offset','count','options','get','extname','catch','../../mysqldb','show','rows','sendStatus','user','readdirSync','attributes','transaction','filter','merge','status','root','model','intersection','message','then','type','format','index','rawAttributes','body','undefined','pick','end','%s.%s','UserProfileResource','UserProfileSection','id2','userProfileId','save_name','path','basename','map','like','includeAll','length','VIRTUAL','update','converted_format','forEach','join','Sound','nolimit','set','symlinkSync','directory','key','fields','removeSound','json','VoiceMusicOnHold','filters','order','../../config/environment','name','autoAssociation','addSound','role','create','limit','mkdirSync','destroy','query','server/files/moh','keys','Content-Range','api','sequelize','params','fieldName','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','send','findOne','mode','sort','createdAt','util','rmdirSync','files','getSounds','unlinkSync','findAll','error','where'];(function(_0x1f5a82,_0x434902){const _0x13807c=function(_0x10f91a){while(--_0x10f91a){_0x1f5a82['push'](_0x1f5a82['shift']());}};_0x13807c(++_0x434902);}(a890_0x1380,0x71));const a890_0x10f9=function(_0x1f5a82,_0x434902){_0x1f5a82=_0x1f5a82-0xb3;let _0x13807c=a890_0x1380[_0x1f5a82];return _0x13807c;};const a890_0x202007=a890_0x10f9;'use strict';const util=require(a890_0x202007(0xf2)),path=require(a890_0x202007(0xc4)),fs=require('fs'),_=require('lodash'),qs=require('../../components/parsers/qs'),logger=require('../../config/logger')(a890_0x202007(0xe8)),config=require(a890_0x202007(0xdb)),{db}=require(a890_0x202007(0x102)),{Op,ValidationError}=require('sequelize');function respondWithStatusCode(_0x471bf5,_0x4d1251){return _0x4d1251=_0x4d1251||0xcc,function(_0x556e8e){const _0x460f2e=a890_0x10f9;if(_0x556e8e)return _0x471bf5[_0x460f2e(0x105)](_0x4d1251);return _0x471bf5[_0x460f2e(0x10c)](_0x4d1251)[_0x460f2e(0xbd)]();};}function respondWithResult(_0x144670,_0x3b890d){return _0x3b890d=_0x3b890d||0xc8,function(_0x3f2f72){const _0x55a430=a890_0x10f9;if(_0x3f2f72)return _0x144670['status'](_0x3b890d)[_0x55a430(0xd7)](_0x3f2f72);};}function respondWithFilteredResult(_0x3aff30,_0x30bfde){return function(_0x269269){const _0xbdb6cd=a890_0x10f9;if(_0x269269){const _0x284cb5=_0x269269[_0xbdb6cd(0xfd)],_0x37b595=_0x30bfde['offset'];let _0x505386=_0x30bfde[_0xbdb6cd(0xfc)]+_0x30bfde[_0xbdb6cd(0xe1)],_0x3fdd28;return _0x505386>=_0x284cb5?(_0x505386=_0x284cb5,_0x3fdd28=0xc8):_0x3fdd28=0xce,_0x3aff30[_0xbdb6cd(0x10c)](_0x3fdd28),_0x3aff30[_0xbdb6cd(0xd1)](_0xbdb6cd(0xe7),_0x37b595+'-'+_0x505386+'/'+_0x284cb5)[_0xbdb6cd(0xd7)](_0x269269);}return null;};}function saveUpdates(_0x13b911){return function(_0x83b90){const _0x6c43f1=a890_0x10f9;if(_0x83b90)return _0x83b90[_0x6c43f1(0xcb)](_0x13b911)[_0x6c43f1(0xb5)](function(_0x4306a4){return _0x4306a4;});return null;};}function removeEntity(_0x352a85){return function(_0x1eba05){const _0x4a8268=a890_0x10f9;if(_0x1eba05)return _0x1eba05[_0x4a8268(0xe3)]()[_0x4a8268(0xb5)](function(){const _0x14cf04=_0x4a8268,_0x289692=_0x1eba05[_0x14cf04(0xff)]({'plain':!![]}),_0x16719e=_0x14cf04(0xfb);return db[_0x14cf04(0xbf)][_0x14cf04(0xe3)]({'where':{'type':_0x16719e,'resourceId':_0x289692['id']}})[_0x14cf04(0xb5)](function(){return _0x1eba05;});})[_0x4a8268(0xb5)](function(){const _0xe952d4=_0x4a8268;_0x352a85[_0xe952d4(0x10c)](0xcc)['end']();});};}function handleEntityNotFound(_0x4c6938){return function(_0x35a7c0){const _0x358497=a890_0x10f9;return!_0x35a7c0&&_0x4c6938[_0x358497(0x105)](0x194),_0x35a7c0;};}function handleError(_0x584967,_0x14011d){return _0x14011d=_0x14011d||0x1f4,function(_0x3ec242){const _0xc548a9=a890_0x10f9;logger[_0xc548a9(0xf8)](_0x3ec242['stack']),_0x3ec242['name']&&delete _0x3ec242[_0xc548a9(0xdc)],_0x584967[_0xc548a9(0x10c)](_0x14011d)[_0xc548a9(0xed)](_0x3ec242);};}exports[a890_0x202007(0xb8)]=function(_0x16a5a7,_0x42a31f){const _0x180026=a890_0x202007;let _0x1e2198={};const _0xc35e00={},_0x1bfb53={'count':0x0,'rows':[]},_0x8c2b30=_[_0x180026(0xc6)](db[_0x180026(0xd8)][_0x180026(0xb9)],function(_0x361dc1){const _0x293dc6=_0x180026;return{'name':_0x361dc1[_0x293dc6(0xeb)],'type':_0x361dc1[_0x293dc6(0xb6)][_0x293dc6(0xd4)]};});_0xc35e00[_0x180026(0x10e)]=_[_0x180026(0xc6)](_0x8c2b30,_0x180026(0xdc)),_0xc35e00['query']=_[_0x180026(0xe6)](_0x16a5a7[_0x180026(0xe4)]),_0xc35e00['filters']=_[_0x180026(0xb3)](_0xc35e00[_0x180026(0x10e)],_0xc35e00['query']),_0x1e2198[_0x180026(0x108)]=_['intersection'](_0xc35e00[_0x180026(0x10e)],qs['fields'](_0x16a5a7['query'][_0x180026(0xd5)])),_0x1e2198[_0x180026(0x108)]=_0x1e2198[_0x180026(0x108)][_0x180026(0xc9)]?_0x1e2198[_0x180026(0x108)]:_0xc35e00['model'];typeof _0x16a5a7[_0x180026(0xe4)]['nolimit']==='undefined'&&(_0x1e2198[_0x180026(0xe1)]=qs[_0x180026(0xe1)](_0x16a5a7[_0x180026(0xe4)][_0x180026(0xe1)]),_0x1e2198[_0x180026(0xfc)]=qs['offset'](_0x16a5a7[_0x180026(0xe4)][_0x180026(0xfc)]));_0x1e2198['order']=qs[_0x180026(0xf0)](_0x16a5a7[_0x180026(0xe4)][_0x180026(0xf0)]),_0x1e2198['where']=qs['filters'](_[_0x180026(0xbc)](_0x16a5a7['query'],_0xc35e00['filters']),_0x8c2b30);_0x16a5a7['query'][_0x180026(0x10a)]&&(_0x1e2198[_0x180026(0xf9)]=_[_0x180026(0x10b)](_0x1e2198[_0x180026(0xf9)],{[Op['or']]:_[_0x180026(0xc6)](_0x8c2b30,function(_0x4f0826){const _0x1826f3=_0x180026;if(_0x4f0826[_0x1826f3(0xb6)]!==_0x1826f3(0xca)){const _0x44c9ec={};return _0x44c9ec[_0x4f0826[_0x1826f3(0xdc)]]={[Op[_0x1826f3(0xc7)]]:'%'+_0x16a5a7[_0x1826f3(0xe4)][_0x1826f3(0x10a)]+'%'},_0x44c9ec;}})}));_0x1e2198=_[_0x180026(0x10b)]({},_0x1e2198,_0x16a5a7[_0x180026(0xfe)]);const _0x5e36fe={'where':_0x1e2198[_0x180026(0xf9)]};return db[_0x180026(0xd8)]['count'](_0x5e36fe)[_0x180026(0xb5)](function(_0x3e5952){const _0x971a29=_0x180026;return _0x1bfb53[_0x971a29(0xfd)]=_0x3e5952,_0x16a5a7[_0x971a29(0xe4)][_0x971a29(0xc8)]&&(_0x1e2198['include']=[{'all':!![]}]),db[_0x971a29(0xd8)][_0x971a29(0xf7)](_0x1e2198);})[_0x180026(0xb5)](function(_0x42c789){const _0x1afd1b=_0x180026;return _0x1bfb53[_0x1afd1b(0x104)]=_0x42c789,_0x1bfb53;})[_0x180026(0xb5)](respondWithFilteredResult(_0x42a31f,_0x1e2198))['catch'](handleError(_0x42a31f,null));},exports[a890_0x202007(0x103)]=function(_0x411380,_0x1876d4){const _0xf4fd0b=a890_0x202007;let _0x53e43b={'raw':![],'where':{'id':_0x411380[_0xf4fd0b(0xea)]['id']}};const _0x49435a={};return _0x49435a[_0xf4fd0b(0x10e)]=_[_0xf4fd0b(0xe6)](db[_0xf4fd0b(0xd8)][_0xf4fd0b(0xb9)]),_0x49435a[_0xf4fd0b(0xe4)]=_[_0xf4fd0b(0xe6)](_0x411380[_0xf4fd0b(0xe4)]),_0x49435a[_0xf4fd0b(0xd9)]=_[_0xf4fd0b(0xb3)](_0x49435a[_0xf4fd0b(0x10e)],_0x49435a[_0xf4fd0b(0xe4)]),_0x53e43b['attributes']=_[_0xf4fd0b(0xb3)](_0x49435a['model'],qs['fields'](_0x411380['query'][_0xf4fd0b(0xd5)])),_0x53e43b['attributes']=_0x53e43b[_0xf4fd0b(0x108)][_0xf4fd0b(0xc9)]?_0x53e43b[_0xf4fd0b(0x108)]:_0x49435a[_0xf4fd0b(0x10e)],_0x411380[_0xf4fd0b(0xe4)][_0xf4fd0b(0xc8)]&&(_0x53e43b['include']=[{'all':!![]}]),_0x53e43b=_[_0xf4fd0b(0x10b)]({},_0x53e43b,_0x411380[_0xf4fd0b(0xfe)]),db[_0xf4fd0b(0xd8)][_0xf4fd0b(0xee)](_0x53e43b)['then'](handleEntityNotFound(_0x1876d4,null))[_0xf4fd0b(0xb5)](respondWithResult(_0x1876d4,null))[_0xf4fd0b(0x101)](handleError(_0x1876d4,null));},exports['update']=function(_0x490257,_0x4cb3d7){const _0x17e330=a890_0x202007;return _0x490257[_0x17e330(0xba)]['id']&&delete _0x490257[_0x17e330(0xba)]['id'],db[_0x17e330(0xd8)][_0x17e330(0xee)]({'where':{'id':_0x490257[_0x17e330(0xea)]['id']}})[_0x17e330(0xb5)](handleEntityNotFound(_0x4cb3d7,null))['then'](saveUpdates(_0x490257[_0x17e330(0xba)],null))[_0x17e330(0xb5)](respondWithResult(_0x4cb3d7,null))['catch'](handleError(_0x4cb3d7,null));},exports[a890_0x202007(0xe0)]=function(_0x316d09,_0x292370){const _0x152661=a890_0x202007;return db[_0x152661(0xe9)][_0x152661(0x109)](function(_0x1de843){const _0x5d3179=_0x152661;return _0x316d09[_0x5d3179(0xba)]['mode']===_0x5d3179(0xf4)&&(_0x316d09[_0x5d3179(0xba)][_0x5d3179(0xd3)]=path[_0x5d3179(0xce)](config[_0x5d3179(0x10d)],_0x5d3179(0xe5),_0x316d09[_0x5d3179(0xba)][_0x5d3179(0xdc)])),db['VoiceMusicOnHold'][_0x5d3179(0xe0)](_0x316d09[_0x5d3179(0xba)],{'transaction':_0x1de843})[_0x5d3179(0xb5)](function(_0x185974){const _0x2c93f0=_0x5d3179;_0x316d09[_0x2c93f0(0xba)][_0x2c93f0(0xef)]===_0x2c93f0(0xf4)&&fs[_0x2c93f0(0xe2)](_0x185974[_0x2c93f0(0xd3)],parseInt('0777',0x8));const _0x1dfe4c=_0x316d09[_0x2c93f0(0x106)][_0x2c93f0(0xff)]({'plain':!![]});if(!_0x1dfe4c)throw new Error(_0x2c93f0(0xfa));if(_0x1dfe4c[_0x2c93f0(0xdf)]===_0x2c93f0(0x106)){const _0x2048e1=_0x185974[_0x2c93f0(0xff)]({'plain':!![]});return db[_0x2c93f0(0xc0)][_0x2c93f0(0xee)]({'where':{'name':_0x2c93f0(0xfb),'userProfileId':_0x1dfe4c[_0x2c93f0(0xc2)]},'raw':!![]})[_0x2c93f0(0xb5)](function(_0x46aa75){const _0x2440ab=_0x2c93f0;return _0x46aa75&&_0x46aa75[_0x2440ab(0xdd)]===0x0?db[_0x2440ab(0xbf)][_0x2440ab(0xe0)]({'name':_0x2048e1[_0x2440ab(0xdc)],'resourceId':_0x2048e1['id'],'type':_0x46aa75['name'],'sectionId':_0x46aa75['id']},{})[_0x2440ab(0xb5)](function(){return _0x185974;}):_0x185974;})[_0x2c93f0(0x101)](function(_0x56a870){const _0x9b24e8=_0x2c93f0;logger[_0x9b24e8(0xf8)](_0x9b24e8(0xec),_0x56a870);});}return _0x185974;});})[_0x152661(0xb5)](respondWithResult(_0x292370,0xc9))[_0x152661(0x101)](handleError(_0x292370,null));},exports['destroy']=function(_0x12ded2,_0x20c754){const _0x4e1aa8=a890_0x202007;return db[_0x4e1aa8(0xd8)][_0x4e1aa8(0xee)]({'where':{'id':_0x12ded2[_0x4e1aa8(0xea)]['id']}})['then'](function(_0x389bf3){const _0x4cc6e2=_0x4e1aa8;if(_0x389bf3)return db[_0x4cc6e2(0xe9)]['transaction'](function(_0x17fa9c){const _0x9b494c=_0x4cc6e2;return _0x389bf3[_0x9b494c(0xe3)]({'transaction':_0x17fa9c,'raw':!![]})[_0x9b494c(0xb5)](function(_0x44c96b){const _0x359bb0=_0x9b494c;return _0x44c96b[_0x359bb0(0xd3)]&&(fs[_0x359bb0(0x107)](_0x44c96b[_0x359bb0(0xd3)])[_0x359bb0(0xcd)](function(_0x216e49){const _0x9ca2cb=_0x359bb0;fs[_0x9ca2cb(0xf6)](path['join'](_0x44c96b[_0x9ca2cb(0xd3)],_0x216e49));}),fs[_0x359bb0(0xf3)](_0x44c96b[_0x359bb0(0xd3)])),_0x44c96b;});})[_0x4cc6e2(0x101)](function(_0x1c1d60){const _0xc77fbd=_0x4cc6e2;throw new ValidationError(_0x1c1d60[_0xc77fbd(0xb4)]);});})['then'](handleEntityNotFound(_0x20c754,null))[_0x4e1aa8(0xb5)](removeEntity(_0x20c754,null))['catch'](handleError(_0x20c754,null));},exports[a890_0x202007(0xde)]=function(_0x1fe0a1,_0x27fbf6){const _0x4e4e97=a890_0x202007;return db[_0x4e4e97(0xe9)]['transaction'](function(_0x54dc66){const _0x22019f=_0x4e4e97;let _0x315fa7;return db['VoiceMusicOnHold']['findOne']({'where':{'id':_0x1fe0a1[_0x22019f(0xea)]['id']}})['then'](function(_0x38d892){const _0x53dd50=_0x22019f;if(_0x38d892)return _0x315fa7=_0x38d892,_0x38d892[_0x53dd50(0xde)](_0x1fe0a1[_0x53dd50(0xba)]['id'],{'transaction':_0x54dc66});})[_0x22019f(0xb5)](function(_0x7a21f9){const _0x50a6aa=_0x22019f;if(_0x7a21f9)return db[_0x50a6aa(0xcf)]['findOne']({'where':{'id':_0x1fe0a1[_0x50a6aa(0xba)]['id']},'attributes':['id',_0x50a6aa(0xdc),_0x50a6aa(0xc3),'converted_format',_0x50a6aa(0xf1)],'raw':!![]});})['then'](function(_0x52d5df){const _0x4c2740=_0x22019f;if(_0x52d5df){const _0x4940a3=path[_0x4c2740(0xce)](config[_0x4c2740(0x10d)],'server/files/sounds/converted',util[_0x4c2740(0xb7)]('%s.%s',path[_0x4c2740(0xc5)](_0x52d5df['save_name'],path[_0x4c2740(0x100)](_0x52d5df[_0x4c2740(0xc3)])),_0x52d5df[_0x4c2740(0xcc)])),_0x35aa2c=path['join'](config[_0x4c2740(0x10d)],_0x4c2740(0xe5),_0x315fa7[_0x4c2740(0xdc)],util['format'](_0x4c2740(0xbe),_0x52d5df[_0x4c2740(0xdc)],_0x52d5df[_0x4c2740(0xcc)]));return fs[_0x4c2740(0xd2)](_0x4940a3,_0x35aa2c),_0x52d5df;}})[_0x22019f(0x101)](function(_0x46dd2c){throw new ValidationError(_0x46dd2c['message']);});})[_0x4e4e97(0xb5)](handleEntityNotFound(_0x27fbf6,null))[_0x4e4e97(0xb5)](respondWithResult(_0x27fbf6,0xc9))[_0x4e4e97(0x101)](handleError(_0x27fbf6,null));},exports['removeSound']=function(_0x3ff2ec,_0x4bf625){const _0x2f0bf9=a890_0x202007;return db[_0x2f0bf9(0xe9)]['transaction'](function(){const _0x42b8f5=_0x2f0bf9;let _0x1766f3;return db['VoiceMusicOnHold'][_0x42b8f5(0xee)]({'where':{'id':_0x3ff2ec[_0x42b8f5(0xea)]['id']}})[_0x42b8f5(0xb5)](handleEntityNotFound(_0x4bf625,null))['then'](function(_0xc074b3){const _0x4f64d0=_0x42b8f5;if(_0xc074b3)return _0x1766f3=_0xc074b3,_0xc074b3[_0x4f64d0(0xd6)](_0x3ff2ec['params'][_0x4f64d0(0xc1)]);})[_0x42b8f5(0xb5)](function(_0x5a3f3a){const _0x15cfac=_0x42b8f5;if(_0x5a3f3a)return db[_0x15cfac(0xcf)][_0x15cfac(0xee)]({'where':{'id':_0x3ff2ec[_0x15cfac(0xea)]['id2']},'attributes':['id',_0x15cfac(0xdc),_0x15cfac(0xc3),_0x15cfac(0xcc),_0x15cfac(0xf1)],'raw':!![]});})[_0x42b8f5(0xb5)](function(_0x22b0cd){const _0x39e2e2=_0x42b8f5;if(_0x22b0cd)return fs['unlinkSync'](path[_0x39e2e2(0xce)](_0x1766f3['directory'],util[_0x39e2e2(0xb7)]('%s.%s',_0x22b0cd[_0x39e2e2(0xdc)],_0x22b0cd['converted_format']))),_0x22b0cd;})[_0x42b8f5(0x101)](function(_0x4291b2){throw new ValidationError(_0x4291b2['message']);});})[_0x2f0bf9(0xb5)](handleEntityNotFound(_0x4bf625,null))['then'](respondWithStatusCode(_0x4bf625,0xcc))[_0x2f0bf9(0x101)](handleError(_0x4bf625,null));},exports['getSounds']=function(_0x5bc467,_0x3d5575){const _0x43c8ca=a890_0x202007;let _0x109f1f={};const _0x54d485={};let _0x3888ff,_0x36919d;return db[_0x43c8ca(0xd8)]['findOne']({'where':{'id':_0x5bc467['params']['id']}})['then'](handleEntityNotFound(_0x3d5575,null))[_0x43c8ca(0xb5)](function(_0x4de7ed){const _0x375f1d=_0x43c8ca;if(_0x4de7ed)return _0x3888ff=_0x4de7ed,_0x54d485['model']=_['keys'](db['Sound']['rawAttributes']),_0x54d485[_0x375f1d(0xe4)]=_['keys'](_0x5bc467['query']),_0x54d485['filters']=_[_0x375f1d(0xb3)](_0x54d485['model'],_0x54d485[_0x375f1d(0xe4)]),_0x109f1f['attributes']=_[_0x375f1d(0xb3)](_0x54d485[_0x375f1d(0x10e)],qs[_0x375f1d(0xd5)](_0x5bc467['query'][_0x375f1d(0xd5)])),_0x109f1f[_0x375f1d(0x108)]=_0x109f1f[_0x375f1d(0x108)][_0x375f1d(0xc9)]?_0x109f1f[_0x375f1d(0x108)]:_0x54d485[_0x375f1d(0x10e)],_0x109f1f[_0x375f1d(0xda)]=qs['sort'](_0x5bc467['query'][_0x375f1d(0xf0)]),_0x109f1f['where']=qs[_0x375f1d(0xd9)](_[_0x375f1d(0xbc)](_0x5bc467['query'],_0x54d485[_0x375f1d(0xd9)])),_0x5bc467[_0x375f1d(0xe4)]['filter']&&(_0x109f1f['where']=_[_0x375f1d(0x10b)](_0x109f1f['where'],{[Op['or']]:_[_0x375f1d(0xc6)](_0x109f1f[_0x375f1d(0x108)],function(_0x3cdb28){const _0x2e6a68=_0x375f1d,_0x5a55bb={};return _0x5a55bb[_0x3cdb28]={[Op[_0x2e6a68(0xc7)]]:'%'+_0x5bc467['query'][_0x2e6a68(0x10a)]+'%'},_0x5a55bb;})})),_0x109f1f=_[_0x375f1d(0x10b)]({},_0x109f1f,_0x5bc467[_0x375f1d(0xfe)]),_0x3888ff[_0x375f1d(0xf5)](_0x109f1f);})['then'](function(_0x3c2860){const _0x55ffbf=_0x43c8ca;if(_0x3c2860)return _0x36919d=_0x3c2860[_0x55ffbf(0xc9)],typeof _0x5bc467[_0x55ffbf(0xe4)][_0x55ffbf(0xd0)]===_0x55ffbf(0xbb)&&(_0x109f1f[_0x55ffbf(0xe1)]=qs[_0x55ffbf(0xe1)](_0x5bc467[_0x55ffbf(0xe4)][_0x55ffbf(0xe1)]),_0x109f1f[_0x55ffbf(0xfc)]=qs[_0x55ffbf(0xfc)](_0x5bc467[_0x55ffbf(0xe4)][_0x55ffbf(0xfc)])),_0x3888ff[_0x55ffbf(0xf5)](_0x109f1f);})[_0x43c8ca(0xb5)](function(_0x5a4127){if(_0x5a4127)return _0x5a4127?{'count':_0x36919d,'rows':_0x5a4127}:null;})[_0x43c8ca(0xb5)](respondWithResult(_0x3d5575,null))[_0x43c8ca(0x101)](handleError(_0x3d5575,null));}; \ No newline at end of file diff --git a/server/api/voiceMusicOnHold/voiceMusicOnHold.model.js b/server/api/voiceMusicOnHold/voiceMusicOnHold.model.js index bf1f44b..6af481c 100644 --- a/server/api/voiceMusicOnHold/voiceMusicOnHold.model.js +++ b/server/api/voiceMusicOnHold/voiceMusicOnHold.model.js @@ -1 +1 @@ -const a743_0xfe63=['define'];(function(_0x1477b9,_0xfe6315){const _0x5f6439=function(_0x1b335a){while(--_0x1b335a){_0x1477b9['push'](_0x1477b9['shift']());}};_0x5f6439(++_0xfe6315);}(a743_0xfe63,0x153));const a743_0x5f64=function(_0x1477b9,_0xfe6315){_0x1477b9=_0x1477b9-0x0;let _0x5f6439=a743_0xfe63[_0x1477b9];return _0x5f6439;};'use strict';const attributes=require('./voiceMusicOnHold.attributes');module['exports']=function(_0x1b335a){const _0x1487c9=a743_0x5f64,_0x462bd3=_0x1b335a[_0x1487c9('0x0')]('VoiceMusicOnHold',attributes,{'tableName':'voice_musiconhold','paranoid':![],'indexes':[],'timestamps':!![]});return _0x462bd3;}; \ No newline at end of file +const a891_0xc6ad=['exports','function','init','VoiceMusicOnHold','./voiceMusicOnHold.attributes','sequelize'];(function(_0x9ddba3,_0x17c482){const _0xc6adfe=function(_0x438808){while(--_0x438808){_0x9ddba3['push'](_0x9ddba3['shift']());}};_0xc6adfe(++_0x17c482);}(a891_0xc6ad,0x1c4));const a891_0x4388=function(_0x9ddba3,_0x17c482){_0x9ddba3=_0x9ddba3-0x183;let _0xc6adfe=a891_0xc6ad[_0x9ddba3];return _0xc6adfe;};const a891_0xfef53a=a891_0x4388;'use strict';const {Model}=require(a891_0xfef53a(0x186)),{attributes}=require(a891_0xfef53a(0x185)),{options}=require('./voiceMusicOnHold.options');class VoiceMusicOnHold extends Model{}function init(_0x2d7e83,_0x5a3104){const _0x774c73=a891_0xfef53a,_0x1a7543=options(_0x2d7e83),_0x596a23=typeof _0x5a3104===_0x774c73(0x188)?_0x5a3104(_0x1a7543):_0x1a7543;return VoiceMusicOnHold['init'](attributes,_0x596a23),VoiceMusicOnHold;}module[a891_0xfef53a(0x187)][a891_0xfef53a(0x184)]=VoiceMusicOnHold,module['exports'][a891_0xfef53a(0x183)]=init; \ No newline at end of file diff --git a/server/api/voiceMusicOnHold/voiceMusicOnHold.options.js b/server/api/voiceMusicOnHold/voiceMusicOnHold.options.js new file mode 100644 index 0000000..f2fb2d4 --- /dev/null +++ b/server/api/voiceMusicOnHold/voiceMusicOnHold.options.js @@ -0,0 +1 @@ +var a892_0x5dad=['exports'];(function(_0x33278c,_0x43db53){var _0x5dadfa=function(_0x5e4389){while(--_0x5e4389){_0x33278c['push'](_0x33278c['shift']());}};_0x5dadfa(++_0x43db53);}(a892_0x5dad,0x163));var a892_0x5e43=function(_0x33278c,_0x43db53){_0x33278c=_0x33278c-0x17c;var _0x5dadfa=a892_0x5dad[_0x33278c];return _0x5dadfa;};var a892_0x20922a=a892_0x5e43;function options(_0x3e47b3){return{'sequelize':_0x3e47b3,'tableName':'voice_musiconhold','paranoid':![],'indexes':[],'timestamps':!![]};}module[a892_0x20922a(0x17c)]['options']=options; \ No newline at end of file diff --git a/server/api/voicePrefix/index.js b/server/api/voicePrefix/index.js index 1ca54be..01a3229 100644 --- a/server/api/voicePrefix/index.js +++ b/server/api/voicePrefix/index.js @@ -1 +1 @@ -const a744_0x2524=['../../components/auth/service','/describe','delete','/:id/users','update','/:id','isAuthenticated','describe','removeAgents','getAgents','show','exports','get','express'];(function(_0x13e16f,_0x2524e9){const _0x55d3b1=function(_0x376db4){while(--_0x376db4){_0x13e16f['push'](_0x13e16f['shift']());}};_0x55d3b1(++_0x2524e9);}(a744_0x2524,0x124));const a744_0x55d3=function(_0x13e16f,_0x2524e9){_0x13e16f=_0x13e16f-0x0;let _0x55d3b1=a744_0x2524[_0x13e16f];return _0x55d3b1;};const _0x28f1d4=a744_0x55d3;'use strict';const express=require(_0x28f1d4('0x1')),router=express['Router'](),auth=require(_0x28f1d4('0x2')),controller=require('./voicePrefix.controller');router[_0x28f1d4('0x0')]('/',auth[_0x28f1d4('0x8')](),controller['index']),router[_0x28f1d4('0x0')](_0x28f1d4('0x3'),auth['isAuthenticated'](),controller[_0x28f1d4('0x9')]),router[_0x28f1d4('0x0')](_0x28f1d4('0x7'),auth['isAuthenticated'](),controller[_0x28f1d4('0xc')]),router['get'](_0x28f1d4('0x5'),auth['isAuthenticated'](),controller[_0x28f1d4('0xb')]),router['post']('/',auth[_0x28f1d4('0x8')](),controller['create']),router['post']('/:id/users',auth[_0x28f1d4('0x8')](),controller['addAgents']),router['put'](_0x28f1d4('0x7'),auth[_0x28f1d4('0x8')](),controller[_0x28f1d4('0x6')]),router[_0x28f1d4('0x4')]('/:id',auth[_0x28f1d4('0x8')](),controller['destroy']),router[_0x28f1d4('0x4')](_0x28f1d4('0x5'),auth[_0x28f1d4('0x8')](),controller[_0x28f1d4('0xa')]),module[_0x28f1d4('0xd')]=router; \ No newline at end of file +const a893_0xf747=['/:id/users','show','/describe','removeAgents','delete','describe','./voicePrefix.controller','express','Router','post','destroy','isAuthenticated','/:id','create','update','get','addAgents'];(function(_0x50604d,_0x53dcbd){const _0xf747dd=function(_0x2b992d){while(--_0x2b992d){_0x50604d['push'](_0x50604d['shift']());}};_0xf747dd(++_0x53dcbd);}(a893_0xf747,0x186));const a893_0x2b99=function(_0x50604d,_0x53dcbd){_0x50604d=_0x50604d-0x80;let _0xf747dd=a893_0xf747[_0x50604d];return _0xf747dd;};const a893_0x5a7a32=a893_0x2b99;'use strict';const express=require(a893_0x5a7a32(0x88)),router=express[a893_0x5a7a32(0x89)](),auth=require('../../components/auth/service'),controller=require(a893_0x5a7a32(0x87));router[a893_0x5a7a32(0x90)]('/',auth[a893_0x5a7a32(0x8c)](),controller['index']),router[a893_0x5a7a32(0x90)](a893_0x5a7a32(0x83),auth[a893_0x5a7a32(0x8c)](),controller[a893_0x5a7a32(0x86)]),router[a893_0x5a7a32(0x90)](a893_0x5a7a32(0x8d),auth['isAuthenticated'](),controller[a893_0x5a7a32(0x82)]),router['get'](a893_0x5a7a32(0x81),auth[a893_0x5a7a32(0x8c)](),controller['getAgents']),router[a893_0x5a7a32(0x8a)]('/',auth[a893_0x5a7a32(0x8c)](),controller[a893_0x5a7a32(0x8e)]),router[a893_0x5a7a32(0x8a)]('/:id/users',auth[a893_0x5a7a32(0x8c)](),controller[a893_0x5a7a32(0x80)]),router['put'](a893_0x5a7a32(0x8d),auth[a893_0x5a7a32(0x8c)](),controller[a893_0x5a7a32(0x8f)]),router[a893_0x5a7a32(0x85)](a893_0x5a7a32(0x8d),auth[a893_0x5a7a32(0x8c)](),controller[a893_0x5a7a32(0x8b)]),router['delete'](a893_0x5a7a32(0x81),auth['isAuthenticated'](),controller[a893_0x5a7a32(0x84)]),module['exports']=router; \ No newline at end of file diff --git a/server/api/voicePrefix/voicePrefix.attributes.js b/server/api/voicePrefix/voicePrefix.attributes.js index 8e805d1..e10d47f 100644 --- a/server/api/voicePrefix/voicePrefix.attributes.js +++ b/server/api/voicePrefix/voicePrefix.attributes.js @@ -1 +1 @@ -const a745_0x84cb=['name','INTEGER','exports','VIRTUAL','STRING'];(function(_0x567925,_0x84cb9f){const _0x14d60c=function(_0x58d419){while(--_0x58d419){_0x567925['push'](_0x567925['shift']());}};_0x14d60c(++_0x84cb9f);}(a745_0x84cb,0xdc));const a745_0x14d6=function(_0x567925,_0x84cb9f){_0x567925=_0x567925-0x0;let _0x14d60c=a745_0x84cb[_0x567925];return _0x14d60c;};const _0x1c86fd=a745_0x14d6;'use strict';const Sequelize=require('sequelize');module[_0x1c86fd('0x2')]={'name':{'type':Sequelize['STRING'],'allowNull':![],'unique':_0x1c86fd('0x0')},'prefix':{'type':Sequelize[_0x1c86fd('0x3')],'get':function(){return'system-'+this['getDataValue']('name')+'-';}},'description':{'type':Sequelize[_0x1c86fd('0x4')]},'callerIdAll':{'type':Sequelize[_0x1c86fd('0x4')]},'VoiceExtensionId':{'type':Sequelize[_0x1c86fd('0x1')]}}; \ No newline at end of file +const a894_0xe00b=['exports','name','INTEGER','attributes','getDataValue','sequelize','system-','VIRTUAL','STRING'];(function(_0x2ab93d,_0x5474e0){const _0xe00bc2=function(_0x5bd7fb){while(--_0x5bd7fb){_0x2ab93d['push'](_0x2ab93d['shift']());}};_0xe00bc2(++_0x5474e0);}(a894_0xe00b,0xa7));const a894_0x5bd7=function(_0x2ab93d,_0x5474e0){_0x2ab93d=_0x2ab93d-0x1de;let _0xe00bc2=a894_0xe00b[_0x2ab93d];return _0xe00bc2;};const a894_0x113876=a894_0x5bd7;'use strict';const {DataTypes}=require(a894_0x113876(0x1de)),attributes={'name':{'type':DataTypes[a894_0x113876(0x1e1)],'allowNull':![],'unique':a894_0x113876(0x1e3)},'prefix':{'type':DataTypes[a894_0x113876(0x1e0)],'get':function(){const _0x5d70a5=a894_0x113876;return _0x5d70a5(0x1df)+this[_0x5d70a5(0x1e6)](_0x5d70a5(0x1e3))+'-';}},'description':{'type':DataTypes[a894_0x113876(0x1e1)]},'callerIdAll':{'type':DataTypes[a894_0x113876(0x1e1)]},'VoiceExtensionId':{'type':DataTypes[a894_0x113876(0x1e4)]}};module[a894_0x113876(0x1e2)][a894_0x113876(0x1e5)]=attributes; \ No newline at end of file diff --git a/server/api/voicePrefix/voicePrefix.controller.js b/server/api/voicePrefix/voicePrefix.controller.js index 308c07f..977a148 100644 --- a/server/api/voicePrefix/voicePrefix.controller.js +++ b/server/api/voicePrefix/voicePrefix.controller.js @@ -1 +1 @@ -const a746_0x4530=['omit','filters','index','PREFIX-CALLERIDALL=','emit','rows','rawAttributes','Voice\x20Prefix','ids','set','autoAssociation','attributes','body','role','./voicePrefix.socket','sort','order','Extensions\x20creation\x20failed','destroy','model','description','../../config/logger','end','getAgents','like','limit','callerIdAll','user','priority','VoiceExtension','length','create','charAt','api','findAll','includeAll','options','CDR(prefix)=','describe','Unable\x20to\x20retrieve\x20the\x20current\x20user','context','No\x20callerid\x20available','catch','findOne','VoicePrefixId','userVoicePrefix:remove','sendStatus','offset','VoicePrefixes','removeAgents','stack','transaction','update','undefined','Voice\x20Prefix\x20Extension','pick','type','map','filter','status','merge','NoOp','intersection','UserProfileSection','Set','count','VoicePrefix','../../components/parsers/qs','goto','../../rediscache','sequelize','userVoicePrefix:save','get','json','UserProfileResource','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','exten','app','nolimit','addAgents','push','system-','lodash','query','system','fields','include','error','then','name','VIRTUAL','appdata','VoiceExtensionId','where','prefix','fieldName','keys','params','send','from-sip','key','bulkCreate'];(function(_0x52a1e1,_0x45305d){const _0xcf4bc9=function(_0x6b2ff5){while(--_0x6b2ff5){_0x52a1e1['push'](_0x52a1e1['shift']());}};_0xcf4bc9(++_0x45305d);}(a746_0x4530,0x181));const a746_0xcf4b=function(_0x52a1e1,_0x45305d){_0x52a1e1=_0x52a1e1-0x0;let _0xcf4bc9=a746_0x4530[_0x52a1e1];return _0xcf4bc9;};const _0x24e127=a746_0xcf4b;'use strict';const _=require(_0x24e127('0x3')),qs=require(_0x24e127('0x5a')),logger=require(_0x24e127('0x2c'))(_0x24e127('0x38')),{getSocket}=require(_0x24e127('0x5c')),socket=getSocket(),db=require('../../mysqldb')['db'],{Op}=require(_0x24e127('0x5d'));require(_0x24e127('0x25'))['register'](socket);function respondWithStatusCode(_0x6b2ff5,_0x4835f5){return _0x4835f5=_0x4835f5||0xcc,function(_0x3df5ed){const _0x28abc4=a746_0xcf4b;if(_0x3df5ed)return _0x6b2ff5['sendStatus'](_0x4835f5);return _0x6b2ff5[_0x28abc4('0x52')](_0x4835f5)[_0x28abc4('0x2d')]();};}function respondWithResult(_0x4fe737,_0x587734){return _0x587734=_0x587734||0xc8,function(_0x1adcf1){const _0x4e1c7f=a746_0xcf4b;if(_0x1adcf1)return _0x4fe737[_0x4e1c7f('0x52')](_0x587734)['json'](_0x1adcf1);};}function respondWithFilteredResult(_0x53d2bb,_0x2a38fe){return function(_0x4489e0){const _0x553995=a746_0xcf4b;if(_0x4489e0){const _0xae68f3=_0x4489e0['count'],_0xcaa3cc=_0x2a38fe[_0x553995('0x46')];let _0x4f786c=_0x2a38fe[_0x553995('0x46')]+_0x2a38fe[_0x553995('0x30')],_0x3e10a2;return _0x4f786c>=_0xae68f3?(_0x4f786c=_0xae68f3,_0x3e10a2=0xc8):_0x3e10a2=0xce,_0x53d2bb[_0x553995('0x52')](_0x3e10a2),_0x53d2bb[_0x553995('0x20')]('Content-Range',_0xcaa3cc+'-'+_0x4f786c+'/'+_0xae68f3)[_0x553995('0x60')](_0x4489e0);}return null;};}function removeEntity(_0x63d3b0){return function(_0x11e9ff){const _0x29600d=a746_0xcf4b;if(_0x11e9ff)return _0x11e9ff[_0x29600d('0x29')]()[_0x29600d('0x9')](function(){const _0x3bd1ed=_0x29600d,_0x1e5055=_0x11e9ff[_0x3bd1ed('0x5f')]({'plain':!![]}),_0x56fdd4=_0x3bd1ed('0x47');return db[_0x3bd1ed('0x61')][_0x3bd1ed('0x29')]({'where':{'type':_0x56fdd4,'resourceId':_0x1e5055['id']}})[_0x3bd1ed('0x9')](function(){return _0x11e9ff;});})[_0x29600d('0x9')](function(){const _0x5bebeb=_0x29600d;_0x63d3b0[_0x5bebeb('0x52')](0xcc)['end']();});};}function handleEntityNotFound(_0xd3e255){return function(_0x38c62c){const _0x3474fb=a746_0xcf4b;return!_0x38c62c&&_0xd3e255[_0x3474fb('0x45')](0x194),_0x38c62c;};}function handleError(_0x2e79f0,_0xdda85b){return _0xdda85b=_0xdda85b||0x1f4,function(_0x32dd5c){const _0x3d263e=a746_0xcf4b;logger['error'](_0x32dd5c[_0x3d263e('0x49')]),_0x32dd5c['name']&&delete _0x32dd5c['name'],_0x2e79f0['status'](_0xdda85b)[_0x3d263e('0x13')](_0x32dd5c);};}exports[_0x24e127('0x19')]=function(_0x1bd20b,_0x2e9f75){const _0x1a47fd=_0x24e127;let _0x5795ae={};const _0x46cce8={},_0x4d7e09={'count':0x0,'rows':[]},_0x559e47=_[_0x1a47fd('0x50')](db[_0x1a47fd('0x59')][_0x1a47fd('0x1d')],function(_0x809ec9){const _0x3b4fcd=_0x1a47fd;return{'name':_0x809ec9[_0x3b4fcd('0x10')],'type':_0x809ec9[_0x3b4fcd('0x4f')][_0x3b4fcd('0x15')]};});_0x46cce8[_0x1a47fd('0x2a')]=_[_0x1a47fd('0x50')](_0x559e47,_0x1a47fd('0xa')),_0x46cce8[_0x1a47fd('0x4')]=_[_0x1a47fd('0x11')](_0x1bd20b['query']),_0x46cce8[_0x1a47fd('0x18')]=_[_0x1a47fd('0x55')](_0x46cce8[_0x1a47fd('0x2a')],_0x46cce8[_0x1a47fd('0x4')]),_0x5795ae[_0x1a47fd('0x22')]=_[_0x1a47fd('0x55')](_0x46cce8[_0x1a47fd('0x2a')],qs['fields'](_0x1bd20b[_0x1a47fd('0x4')][_0x1a47fd('0x6')])),_0x5795ae[_0x1a47fd('0x22')]=_0x5795ae[_0x1a47fd('0x22')][_0x1a47fd('0x35')]?_0x5795ae['attributes']:_0x46cce8['model'];typeof _0x1bd20b[_0x1a47fd('0x4')][_0x1a47fd('0x65')]===_0x1a47fd('0x4c')&&(_0x5795ae[_0x1a47fd('0x30')]=qs[_0x1a47fd('0x30')](_0x1bd20b[_0x1a47fd('0x4')][_0x1a47fd('0x30')]),_0x5795ae['offset']=qs['offset'](_0x1bd20b['query']['offset']));_0x5795ae[_0x1a47fd('0x27')]=qs[_0x1a47fd('0x26')](_0x1bd20b[_0x1a47fd('0x4')][_0x1a47fd('0x26')]),_0x5795ae[_0x1a47fd('0xe')]=qs[_0x1a47fd('0x18')](_['pick'](_0x1bd20b[_0x1a47fd('0x4')],_0x46cce8[_0x1a47fd('0x18')]),_0x559e47);_0x1bd20b['query']['filter']&&(_0x5795ae[_0x1a47fd('0xe')]=_[_0x1a47fd('0x53')](_0x5795ae['where'],{[Op['or']]:_[_0x1a47fd('0x50')](_0x559e47,function(_0x23bc55){const _0x523ab6=_0x1a47fd;if(_0x23bc55[_0x523ab6('0x4f')]!==_0x523ab6('0xb')){const _0x17cae7={};return _0x17cae7[_0x23bc55[_0x523ab6('0xa')]]={[Op[_0x523ab6('0x2f')]]:'%'+_0x1bd20b['query']['filter']+'%'},_0x17cae7;}})}));_0x5795ae=_['merge']({},_0x5795ae,_0x1bd20b['options']);const _0x12e6c6={'where':_0x5795ae[_0x1a47fd('0xe')]};return db[_0x1a47fd('0x59')][_0x1a47fd('0x58')](_0x12e6c6)['then'](function(_0x440d6d){const _0x2dfe92=_0x1a47fd;return _0x4d7e09[_0x2dfe92('0x58')]=_0x440d6d,_0x1bd20b['query'][_0x2dfe92('0x3a')]&&(_0x5795ae['include']=[{'all':!![]}]),db[_0x2dfe92('0x59')][_0x2dfe92('0x39')](_0x5795ae);})[_0x1a47fd('0x9')](function(_0x52b5dd){const _0x3dba6f=_0x1a47fd;return _0x4d7e09[_0x3dba6f('0x1c')]=_0x52b5dd,_0x4d7e09;})[_0x1a47fd('0x9')](respondWithFilteredResult(_0x2e9f75,_0x5795ae))[_0x1a47fd('0x41')](handleError(_0x2e9f75,null));},exports['show']=function(_0x3282a3,_0x44c1c7){const _0x120c90=_0x24e127;let _0x34251a={'raw':![],'where':{'id':_0x3282a3['params']['id']}};const _0x30bbd1={};return _0x30bbd1[_0x120c90('0x2a')]=_[_0x120c90('0x11')](db[_0x120c90('0x59')][_0x120c90('0x1d')]),_0x30bbd1[_0x120c90('0x4')]=_[_0x120c90('0x11')](_0x3282a3[_0x120c90('0x4')]),_0x30bbd1[_0x120c90('0x18')]=_[_0x120c90('0x55')](_0x30bbd1[_0x120c90('0x2a')],_0x30bbd1[_0x120c90('0x4')]),_0x34251a[_0x120c90('0x22')]=_[_0x120c90('0x55')](_0x30bbd1[_0x120c90('0x2a')],qs[_0x120c90('0x6')](_0x3282a3[_0x120c90('0x4')][_0x120c90('0x6')])),_0x34251a[_0x120c90('0x22')]=_0x34251a[_0x120c90('0x22')][_0x120c90('0x35')]?_0x34251a[_0x120c90('0x22')]:_0x30bbd1[_0x120c90('0x2a')],_0x3282a3[_0x120c90('0x4')][_0x120c90('0x3a')]&&(_0x34251a[_0x120c90('0x7')]=[{'all':!![]}]),_0x34251a=_[_0x120c90('0x53')]({},_0x34251a,_0x3282a3['options']),db['VoicePrefix']['findOne'](_0x34251a)[_0x120c90('0x9')](handleEntityNotFound(_0x44c1c7,null))[_0x120c90('0x9')](respondWithResult(_0x44c1c7,null))['catch'](handleError(_0x44c1c7,null));},exports[_0x24e127('0x29')]=function(_0x1f64b5,_0x1839c2){const _0x2ab372=_0x24e127;return db[_0x2ab372('0x59')]['findOne']({'where':{'id':_0x1f64b5[_0x2ab372('0x12')]['id']}})[_0x2ab372('0x9')](handleEntityNotFound(_0x1839c2,null))[_0x2ab372('0x9')](removeEntity(_0x1839c2,null))[_0x2ab372('0x41')](handleError(_0x1839c2,null));},exports['describe']=function(_0x5a1213,_0x1987e7){const _0x1e3913=_0x24e127;return db[_0x1e3913('0x59')][_0x1e3913('0x3d')]()['then'](respondWithResult(_0x1987e7,null))[_0x1e3913('0x41')](handleError(_0x1987e7,null));},exports[_0x24e127('0x36')]=function(_0x743c49,_0x2a732d){const _0x5c29bc=_0x24e127;let _0xded036;return db[_0x5c29bc('0x5d')]['transaction'](function(_0x1648a4){const _0x51726b=_0x5c29bc;return db[_0x51726b('0x59')][_0x51726b('0x36')](_0x743c49['body'],{'transaction':_0x1648a4})[_0x51726b('0x9')](function(_0x31a034){const _0x50fbc0=_0x51726b;return _0xded036=_0x31a034[_0x50fbc0('0x5f')]({'plain':!![]}),db[_0x50fbc0('0x34')][_0x50fbc0('0x42')]({'where':{'id':_0xded036['VoiceExtensionId']},'raw':!![]})[_0x50fbc0('0x9')](function(_0xcfee8){return createVoicePrefixExtensions(_0xded036,_0xcfee8,_0x1648a4);});});})[_0x5c29bc('0x9')](function(){const _0x35e047=_0x5c29bc,_0x78d9bc=_0x743c49[_0x35e047('0x32')][_0x35e047('0x5f')]({'plain':!![]});if(!_0x78d9bc)throw new Error(_0x35e047('0x3e'));if(_0x78d9bc[_0x35e047('0x24')]===_0x35e047('0x32')){const _0x31abec=_0xded036;return db[_0x35e047('0x56')]['findOne']({'where':{'name':'VoicePrefixes','userProfileId':_0x78d9bc['userProfileId']},'raw':!![]})[_0x35e047('0x9')](function(_0x48dd36){const _0x2487f3=_0x35e047;return _0x48dd36&&_0x48dd36[_0x2487f3('0x21')]===0x0?db[_0x2487f3('0x61')]['create']({'name':_0x31abec[_0x2487f3('0xa')],'resourceId':_0x31abec['id'],'type':_0x48dd36[_0x2487f3('0xa')],'sectionId':_0x48dd36['id']},{})[_0x2487f3('0x9')](function(){return _0xded036;}):_0xded036;})[_0x35e047('0x41')](function(_0x52b242){const _0x50ad52=_0x35e047;logger[_0x50ad52('0x8')](_0x50ad52('0x62'),_0x52b242);throw _0x52b242;});}return _0xded036;})[_0x5c29bc('0x9')](respondWithResult(_0x2a732d,null))[_0x5c29bc('0x41')](handleError(_0x2a732d,null));};function Extension(_0x316f34,_0x217032,_0x388dfb,_0x305eee){const _0x450808=_0x24e127;this[_0x450808('0x3f')]=_0x450808('0x14'),this[_0x450808('0x63')]=_0x316f34,this[_0x450808('0x64')]=_0x388dfb,this['type']=_0x450808('0x5'),this[_0x450808('0x2b')]=_0x450808('0x4d'),this[_0x450808('0x33')]=_0x217032,this[_0x450808('0xc')]=_0x305eee;}function createVoicePrefixExtensions(_0x4b24f7,_0x9f3210,_0x4b4f21){return new Promise(function(_0x388dd8,_0x230396){const _0x52c879=a746_0xcf4b,_0x3b2320=new Extension(formatPrefixName(_0x4b24f7[_0x52c879('0xf')]),0x1,'NoOp',_0x52c879('0x1e'));return _0x3b2320['VoicePrefixId']=_0x4b24f7['id'],db[_0x52c879('0x34')][_0x52c879('0x36')](_0x3b2320,{'transaction':_0x4b4f21})[_0x52c879('0x9')](function(_0x1623f1){const _0x3e9e4d=_0x52c879,_0x3ea679=_0x1623f1[_0x3e9e4d('0x5f')]({'plain':!![]}),_0x197fa8=_[_0x3e9e4d('0x50')](addVoicePrefixExtensions(_0x4b24f7,_0x9f3210),function(_0x479512){const _0x441922=_0x3e9e4d;return _0x479512[_0x441922('0xd')]=_0x3ea679['id'],_0x479512[_0x441922('0x43')]=_0x4b24f7['id'],_0x479512;});return db['VoiceExtension'][_0x3e9e4d('0x16')](_0x197fa8,{'transaction':_0x4b4f21})['then'](function(_0x1facb8){const _0x40b0d7=_0x3e9e4d;return!_0x1facb8?_0x230396(_0x40b0d7('0x28')):_0x388dd8(_0x1facb8);})[_0x3e9e4d('0x41')](function(_0x2223b3){return _0x230396(_0x2223b3);});});});}function addVoicePrefixExtensions(_0x4bc576,_0x441318){const _0x3a30c5=_0x24e127,_0x2ba79d=[],_0x17e7c6=formatPrefixName(_0x4bc576['prefix']);return _0x2ba79d[_0x3a30c5('0x1')](new Extension(_0x17e7c6,0x2,_0x3a30c5('0x57'),_0x3a30c5('0x3c')+_0x4bc576[_0x3a30c5('0xa')])),_0x4bc576[_0x3a30c5('0x31')]?_0x2ba79d['push'](new Extension(_0x17e7c6,0x3,_0x3a30c5('0x57'),_0x3a30c5('0x1a')+_0x4bc576[_0x3a30c5('0x31')])):_0x2ba79d[_0x3a30c5('0x1')](new Extension(_0x17e7c6,0x3,_0x3a30c5('0x54'),_0x3a30c5('0x40'))),_0x2ba79d[_0x3a30c5('0x1')](new Extension(_0x17e7c6,0x4,_0x3a30c5('0x5b'),_0x441318[_0x3a30c5('0x3f')]+','+'${EXTEN:'+(0x8+_0x4bc576[_0x3a30c5('0xa')][_0x3a30c5('0x35')])+'}'+','+0x1)),_0x2ba79d;}function formatPrefixName(_0x2a3eb9){const _0x17a729=_0x24e127;let _0x4738f4='_';for(let _0x474510=0x0;_0x474510<_0x2a3eb9[_0x17a729('0x35')];_0x474510++){_0x2a3eb9[_0x17a729('0x37')](_0x474510)=='-'?_0x4738f4+=_0x2a3eb9['charAt'](_0x474510):_0x4738f4+='['+_0x2a3eb9[_0x17a729('0x37')](_0x474510)+']';}return _0x4738f4+='.',_0x4738f4;}exports['update']=function(_0x42dc2f,_0x43986f){const _0x3dacf7=_0x24e127,_0x4c071b=_0x42dc2f[_0x3dacf7('0x23')];return _0x4c071b[_0x3dacf7('0xf')]=_0x3dacf7('0x2')+_0x4c071b[_0x3dacf7('0xa')]+'-',db[_0x3dacf7('0x5d')][_0x3dacf7('0x4a')](function(_0x43123d){const _0x4aacd7=_0x3dacf7;return db['VoicePrefix'][_0x4aacd7('0x4b')](_0x4c071b,{'where':{'id':_0x4c071b['id']},'transaction':_0x43123d})[_0x4aacd7('0x9')](function(){const _0x57e24e=_0x4aacd7;return db[_0x57e24e('0x34')][_0x57e24e('0x29')]({'where':{'VoicePrefixId':_0x4c071b['id']},'transaction':_0x43123d})[_0x57e24e('0x9')](function(){const _0x362622=_0x57e24e;return db[_0x362622('0x34')][_0x362622('0x42')]({'where':{'id':_0x4c071b['VoiceExtensionId']},'raw':!![]})['then'](function(_0x110318){return createVoicePrefixExtensions(_0x4c071b,_0x110318,_0x43123d);});});});})[_0x3dacf7('0x9')](function(){const _0x343f4f=_0x3dacf7;return db[_0x343f4f('0x59')]['findByPk'](_0x4c071b['id']);})[_0x3dacf7('0x9')](respondWithResult(_0x43986f,null))[_0x3dacf7('0x41')](handleError(_0x43986f,null));},exports[_0x24e127('0x0')]=function(_0x185a5e,_0x45f4b6){const _0x1152aa=_0x24e127;return db[_0x1152aa('0x59')]['findOne']({'where':{'id':_0x185a5e['params']['id']}})[_0x1152aa('0x9')](function(_0x2d7706){const _0x4d0684=_0x1152aa;if(_0x2d7706)return _0x2d7706[_0x4d0684('0x0')](_0x185a5e['body']['ids'],{'through':_[_0x4d0684('0x17')](_0x185a5e[_0x4d0684('0x23')],[_0x4d0684('0x1f'),'id'])})[_0x4d0684('0x9')](function(_0x3d5dfc){const _0x295979=_0x4d0684;for(let _0x4d9ce3=0x0;_0x4d9ce3<_0x185a5e[_0x295979('0x23')][_0x295979('0x1f')][_0x295979('0x35')];_0x4d9ce3+=0x1){socket[_0x295979('0x1b')](_0x295979('0x5e'),{'UserId':_0x185a5e[_0x295979('0x23')][_0x295979('0x1f')][_0x4d9ce3],'VoicePrefixId':_0x185a5e['params']['id']});}return _0x3d5dfc;});})[_0x1152aa('0x9')](respondWithResult(_0x45f4b6,null))[_0x1152aa('0x41')](handleError(_0x45f4b6,null));},exports['removeAgents']=function(_0x5062d6,_0x444732){const _0x2770be=_0x24e127;return db['VoicePrefix'][_0x2770be('0x42')]({'where':{'id':_0x5062d6['params']['id']}})[_0x2770be('0x9')](handleEntityNotFound(_0x444732,null))[_0x2770be('0x9')](function(_0x33f144){const _0x1f3cef=_0x2770be;if(_0x33f144)return _0x33f144[_0x1f3cef('0x48')](_0x5062d6[_0x1f3cef('0x4')][_0x1f3cef('0x1f')])[_0x1f3cef('0x9')](function(){const _0x17e01d=_0x1f3cef;if(_['isArray'](_0x5062d6['query'][_0x17e01d('0x1f')]))for(let _0x53e3ef=0x0;_0x53e3ef<_0x5062d6[_0x17e01d('0x4')]['ids']['length'];_0x53e3ef+=0x1){socket[_0x17e01d('0x1b')](_0x17e01d('0x44'),{'UserId':Number(_0x5062d6[_0x17e01d('0x4')][_0x17e01d('0x1f')][_0x53e3ef]),'VoicePrefixId':Number(_0x5062d6[_0x17e01d('0x12')]['id'])});}else socket[_0x17e01d('0x1b')](_0x17e01d('0x44'),{'UserId':Number(_0x5062d6['query'][_0x17e01d('0x1f')]),'VoicePrefixId':Number(_0x5062d6['params']['id'])});});})['then'](respondWithStatusCode(_0x444732,null))[_0x2770be('0x41')](handleError(_0x444732,null));},exports['getAgents']=function(_0x41278a,_0x59b57c){const _0x24954f=_0x24e127;let _0x4708d6={};const _0x270d3a={};let _0x21c70d,_0x42944e;return db[_0x24954f('0x59')][_0x24954f('0x42')]({'where':{'id':_0x41278a[_0x24954f('0x12')]['id']}})[_0x24954f('0x9')](handleEntityNotFound(_0x59b57c,null))[_0x24954f('0x9')](function(_0x1a5067){const _0x32e1b2=_0x24954f;if(_0x1a5067)return _0x21c70d=_0x1a5067,_0x270d3a[_0x32e1b2('0x2a')]=_[_0x32e1b2('0x11')](db['User'][_0x32e1b2('0x1d')]),_0x270d3a[_0x32e1b2('0x4')]=_['keys'](_0x41278a[_0x32e1b2('0x4')]),_0x270d3a[_0x32e1b2('0x18')]=_[_0x32e1b2('0x55')](_0x270d3a[_0x32e1b2('0x2a')],_0x270d3a[_0x32e1b2('0x4')]),_0x4708d6[_0x32e1b2('0x22')]=_[_0x32e1b2('0x55')](_0x270d3a[_0x32e1b2('0x2a')],qs[_0x32e1b2('0x6')](_0x41278a[_0x32e1b2('0x4')][_0x32e1b2('0x6')])),_0x4708d6['attributes']=_0x4708d6[_0x32e1b2('0x22')][_0x32e1b2('0x35')]?_0x4708d6[_0x32e1b2('0x22')]:_0x270d3a[_0x32e1b2('0x2a')],_0x4708d6[_0x32e1b2('0x27')]=qs[_0x32e1b2('0x26')](_0x41278a[_0x32e1b2('0x4')]['sort']),_0x4708d6[_0x32e1b2('0xe')]=qs[_0x32e1b2('0x18')](_[_0x32e1b2('0x4e')](_0x41278a[_0x32e1b2('0x4')],_0x270d3a[_0x32e1b2('0x18')])),_0x41278a['query'][_0x32e1b2('0x51')]&&(_0x4708d6['where']=_['merge'](_0x4708d6[_0x32e1b2('0xe')],{[Op['or']]:_[_0x32e1b2('0x50')](_0x4708d6[_0x32e1b2('0x22')],function(_0x42f544){const _0x3e6ece=_0x32e1b2,_0x35ba68={};return _0x35ba68[_0x42f544]={[Op[_0x3e6ece('0x2f')]]:'%'+_0x41278a[_0x3e6ece('0x4')][_0x3e6ece('0x51')]+'%'},_0x35ba68;})})),_0x4708d6=_['merge']({},_0x4708d6,_0x41278a[_0x32e1b2('0x3b')]),_0x21c70d[_0x32e1b2('0x2e')](_0x4708d6);})[_0x24954f('0x9')](function(_0x5678bf){const _0x36b6b2=_0x24954f;if(_0x5678bf)return _0x42944e=_0x5678bf[_0x36b6b2('0x35')],typeof _0x41278a[_0x36b6b2('0x4')][_0x36b6b2('0x65')]===_0x36b6b2('0x4c')&&(_0x4708d6[_0x36b6b2('0x30')]=qs[_0x36b6b2('0x30')](_0x41278a[_0x36b6b2('0x4')][_0x36b6b2('0x30')]),_0x4708d6['offset']=qs[_0x36b6b2('0x46')](_0x41278a[_0x36b6b2('0x4')][_0x36b6b2('0x46')])),_0x21c70d[_0x36b6b2('0x2e')](_0x4708d6);})[_0x24954f('0x9')](function(_0x31b13b){if(_0x31b13b)return _0x31b13b?{'count':_0x42944e,'rows':_0x31b13b}:null;})['then'](respondWithResult(_0x59b57c,null))[_0x24954f('0x41')](handleError(_0x59b57c,null));}; \ No newline at end of file +const a895_0x135d=['VoicePrefixes','UserProfileSection','then','describe','app','callerIdAll','UserProfileResource','filters','body','include','stack','order','push','nolimit','get','length','count','../../rediscache','update','register','intersection','model','VoicePrefix','name','emit','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','undefined','removeAgents','sequelize','merge','transaction','findOne','omit','map','query','rows','getAgents','PREFIX-CALLERIDALL=','system','Extensions\x20creation\x20failed','Voice\x20Prefix','sort','rawAttributes','priority','userVoicePrefix:remove','bulkCreate','params','destroy','filter','sendStatus','where','VoiceExtension','Content-Range','goto','Set','create','VoicePrefixId','like','isArray','../../components/parsers/qs','description','offset','limit','No\x20callerid\x20available','attributes','key','User','context','includeAll','error','fieldName','Voice\x20Prefix\x20Extension','role','findByPk','addAgents','userVoicePrefix:save','autoAssociation','catch','pick','type','user','ids','from-sip','prefix','options','${EXTEN:','keys','system-','fields','CDR(prefix)=','status','appdata','Unable\x20to\x20retrieve\x20the\x20current\x20user','VoiceExtensionId','userProfileId','NoOp','end','charAt','findAll','lodash'];(function(_0x4ec610,_0x2166e8){const _0x135d3d=function(_0x5e99a2){while(--_0x5e99a2){_0x4ec610['push'](_0x4ec610['shift']());}};_0x135d3d(++_0x2166e8);}(a895_0x135d,0xf2));const a895_0x5e99=function(_0x4ec610,_0x2166e8){_0x4ec610=_0x4ec610-0x1f3;let _0x135d3d=a895_0x135d[_0x4ec610];return _0x135d3d;};const a895_0x50219d=a895_0x5e99;'use strict';const _=require(a895_0x50219d(0x22c)),qs=require(a895_0x50219d(0x204)),logger=require('../../config/logger')('api'),{getSocket}=require(a895_0x50219d(0x23e)),socket=getSocket(),{db}=require('../../mysqldb'),{Op}=require(a895_0x50219d(0x249));require('./voicePrefix.socket')[a895_0x50219d(0x240)](socket);function respondWithStatusCode(_0x45e21d,_0x5b012c){return _0x5b012c=_0x5b012c||0xcc,function(_0x3fae41){const _0x5e034a=a895_0x5e99;if(_0x3fae41)return _0x45e21d[_0x5e034a(0x1fa)](_0x5b012c);return _0x45e21d[_0x5e034a(0x223)](_0x5b012c)[_0x5e034a(0x229)]();};}function respondWithResult(_0x5bc873,_0x4cdbca){return _0x4cdbca=_0x4cdbca||0xc8,function(_0x1fde8a){if(_0x1fde8a)return _0x5bc873['status'](_0x4cdbca)['json'](_0x1fde8a);};}function respondWithFilteredResult(_0xcc9ffc,_0x1485a7){return function(_0x25f26e){const _0x2c10f2=a895_0x5e99;if(_0x25f26e){const _0x11697d=_0x25f26e[_0x2c10f2(0x23d)],_0x468730=_0x1485a7[_0x2c10f2(0x206)];let _0x57378a=_0x1485a7[_0x2c10f2(0x206)]+_0x1485a7['limit'],_0x2a9170;return _0x57378a>=_0x11697d?(_0x57378a=_0x11697d,_0x2a9170=0xc8):_0x2a9170=0xce,_0xcc9ffc[_0x2c10f2(0x223)](_0x2a9170),_0xcc9ffc['set'](_0x2c10f2(0x1fd),_0x468730+'-'+_0x57378a+'/'+_0x11697d)['json'](_0x25f26e);}return null;};}function removeEntity(_0x4b19e5){return function(_0x4d4a73){const _0x1a72e1=a895_0x5e99;if(_0x4d4a73)return _0x4d4a73['destroy']()[_0x1a72e1(0x22f)](function(){const _0x5c4e2e=_0x1a72e1,_0x3170d0=_0x4d4a73[_0x5c4e2e(0x23b)]({'plain':!![]}),_0x56168f=_0x5c4e2e(0x22d);return db['UserProfileResource']['destroy']({'where':{'type':_0x56168f,'resourceId':_0x3170d0['id']}})[_0x5c4e2e(0x22f)](function(){return _0x4d4a73;});})['then'](function(){const _0xf19e5a=_0x1a72e1;_0x4b19e5[_0xf19e5a(0x223)](0xcc)[_0xf19e5a(0x229)]();});};}function handleEntityNotFound(_0x2dc4dd){return function(_0x17bbc9){return!_0x17bbc9&&_0x2dc4dd['sendStatus'](0x194),_0x17bbc9;};}function handleError(_0x13cba2,_0xc66b63){return _0xc66b63=_0xc66b63||0x1f4,function(_0x3c54d7){const _0x179f39=a895_0x5e99;logger[_0x179f39(0x20e)](_0x3c54d7[_0x179f39(0x237)]),_0x3c54d7[_0x179f39(0x244)]&&delete _0x3c54d7[_0x179f39(0x244)],_0x13cba2[_0x179f39(0x223)](_0xc66b63)['send'](_0x3c54d7);};}exports['index']=function(_0x534b14,_0x5c58aa){const _0x4fa17b=a895_0x50219d;let _0x194111={};const _0x57fda3={},_0x4ae21d={'count':0x0,'rows':[]},_0x2511b9=_[_0x4fa17b(0x24e)](db['VoicePrefix'][_0x4fa17b(0x1f3)],function(_0x14f0a6){const _0x14e5fa=_0x4fa17b;return{'name':_0x14f0a6[_0x14e5fa(0x20f)],'type':_0x14f0a6[_0x14e5fa(0x218)][_0x14e5fa(0x20a)]};});_0x57fda3[_0x4fa17b(0x242)]=_['map'](_0x2511b9,_0x4fa17b(0x244)),_0x57fda3[_0x4fa17b(0x24f)]=_[_0x4fa17b(0x21f)](_0x534b14[_0x4fa17b(0x24f)]),_0x57fda3[_0x4fa17b(0x234)]=_['intersection'](_0x57fda3['model'],_0x57fda3[_0x4fa17b(0x24f)]),_0x194111['attributes']=_[_0x4fa17b(0x241)](_0x57fda3[_0x4fa17b(0x242)],qs[_0x4fa17b(0x221)](_0x534b14['query']['fields'])),_0x194111[_0x4fa17b(0x209)]=_0x194111[_0x4fa17b(0x209)]['length']?_0x194111[_0x4fa17b(0x209)]:_0x57fda3['model'];typeof _0x534b14[_0x4fa17b(0x24f)]['nolimit']===_0x4fa17b(0x247)&&(_0x194111[_0x4fa17b(0x207)]=qs[_0x4fa17b(0x207)](_0x534b14[_0x4fa17b(0x24f)][_0x4fa17b(0x207)]),_0x194111[_0x4fa17b(0x206)]=qs[_0x4fa17b(0x206)](_0x534b14[_0x4fa17b(0x24f)]['offset']));_0x194111[_0x4fa17b(0x238)]=qs['sort'](_0x534b14[_0x4fa17b(0x24f)][_0x4fa17b(0x256)]),_0x194111[_0x4fa17b(0x1fb)]=qs[_0x4fa17b(0x234)](_[_0x4fa17b(0x217)](_0x534b14[_0x4fa17b(0x24f)],_0x57fda3['filters']),_0x2511b9);_0x534b14['query'][_0x4fa17b(0x1f9)]&&(_0x194111['where']=_[_0x4fa17b(0x24a)](_0x194111[_0x4fa17b(0x1fb)],{[Op['or']]:_[_0x4fa17b(0x24e)](_0x2511b9,function(_0x452a43){const _0x4914a1=_0x4fa17b;if(_0x452a43[_0x4914a1(0x218)]!=='VIRTUAL'){const _0x3b56b4={};return _0x3b56b4[_0x452a43[_0x4914a1(0x244)]]={[Op[_0x4914a1(0x202)]]:'%'+_0x534b14['query'][_0x4914a1(0x1f9)]+'%'},_0x3b56b4;}})}));_0x194111=_[_0x4fa17b(0x24a)]({},_0x194111,_0x534b14[_0x4fa17b(0x21d)]);const _0x130b87={'where':_0x194111[_0x4fa17b(0x1fb)]};return db[_0x4fa17b(0x243)]['count'](_0x130b87)[_0x4fa17b(0x22f)](function(_0x5428bb){const _0x25aad6=_0x4fa17b;return _0x4ae21d['count']=_0x5428bb,_0x534b14[_0x25aad6(0x24f)][_0x25aad6(0x20d)]&&(_0x194111[_0x25aad6(0x236)]=[{'all':!![]}]),db[_0x25aad6(0x243)][_0x25aad6(0x22b)](_0x194111);})[_0x4fa17b(0x22f)](function(_0x7d5215){const _0x52b130=_0x4fa17b;return _0x4ae21d[_0x52b130(0x250)]=_0x7d5215,_0x4ae21d;})[_0x4fa17b(0x22f)](respondWithFilteredResult(_0x5c58aa,_0x194111))[_0x4fa17b(0x216)](handleError(_0x5c58aa,null));},exports['show']=function(_0x30f1ae,_0x2c46ea){const _0x3f4908=a895_0x50219d;let _0x36a960={'raw':![],'where':{'id':_0x30f1ae[_0x3f4908(0x1f7)]['id']}};const _0x15f301={};return _0x15f301[_0x3f4908(0x242)]=_[_0x3f4908(0x21f)](db[_0x3f4908(0x243)]['rawAttributes']),_0x15f301[_0x3f4908(0x24f)]=_[_0x3f4908(0x21f)](_0x30f1ae[_0x3f4908(0x24f)]),_0x15f301[_0x3f4908(0x234)]=_['intersection'](_0x15f301[_0x3f4908(0x242)],_0x15f301['query']),_0x36a960['attributes']=_[_0x3f4908(0x241)](_0x15f301['model'],qs[_0x3f4908(0x221)](_0x30f1ae[_0x3f4908(0x24f)][_0x3f4908(0x221)])),_0x36a960[_0x3f4908(0x209)]=_0x36a960[_0x3f4908(0x209)]['length']?_0x36a960[_0x3f4908(0x209)]:_0x15f301[_0x3f4908(0x242)],_0x30f1ae[_0x3f4908(0x24f)]['includeAll']&&(_0x36a960[_0x3f4908(0x236)]=[{'all':!![]}]),_0x36a960=_['merge']({},_0x36a960,_0x30f1ae['options']),db[_0x3f4908(0x243)]['findOne'](_0x36a960)['then'](handleEntityNotFound(_0x2c46ea,null))['then'](respondWithResult(_0x2c46ea,null))[_0x3f4908(0x216)](handleError(_0x2c46ea,null));},exports[a895_0x50219d(0x1f8)]=function(_0x545cde,_0x3ffd2f){const _0x1b960d=a895_0x50219d;return db['VoicePrefix'][_0x1b960d(0x24c)]({'where':{'id':_0x545cde[_0x1b960d(0x1f7)]['id']}})[_0x1b960d(0x22f)](handleEntityNotFound(_0x3ffd2f,null))[_0x1b960d(0x22f)](removeEntity(_0x3ffd2f,null))['catch'](handleError(_0x3ffd2f,null));},exports[a895_0x50219d(0x230)]=function(_0x3004b3,_0x28c6a4){const _0x244836=a895_0x50219d;return db[_0x244836(0x243)][_0x244836(0x230)]()[_0x244836(0x22f)](respondWithResult(_0x28c6a4,null))['catch'](handleError(_0x28c6a4,null));},exports['create']=function(_0x6d4995,_0xfc2421){const _0x349377=a895_0x50219d;let _0x1cf5c7;return db[_0x349377(0x249)]['transaction'](function(_0x3ee646){const _0x635933=_0x349377;return db[_0x635933(0x243)]['create'](_0x6d4995[_0x635933(0x235)],{'transaction':_0x3ee646})[_0x635933(0x22f)](function(_0x552a64){const _0x4327cf=_0x635933;return _0x1cf5c7=_0x552a64[_0x4327cf(0x23b)]({'plain':!![]}),db[_0x4327cf(0x1fc)][_0x4327cf(0x24c)]({'where':{'id':_0x1cf5c7['VoiceExtensionId']},'raw':!![]})['then'](function(_0x15bfea){return createVoicePrefixExtensions(_0x1cf5c7,_0x15bfea,_0x3ee646);});});})[_0x349377(0x22f)](function(){const _0x4c64a=_0x349377,_0x65c27d=_0x6d4995[_0x4c64a(0x219)]['get']({'plain':!![]});if(!_0x65c27d)throw new Error(_0x4c64a(0x225));if(_0x65c27d[_0x4c64a(0x211)]==='user'){const _0x37627e=_0x1cf5c7;return db[_0x4c64a(0x22e)][_0x4c64a(0x24c)]({'where':{'name':_0x4c64a(0x22d),'userProfileId':_0x65c27d[_0x4c64a(0x227)]},'raw':!![]})[_0x4c64a(0x22f)](function(_0x1b8fd0){const _0x5c99a5=_0x4c64a;return _0x1b8fd0&&_0x1b8fd0[_0x5c99a5(0x215)]===0x0?db[_0x5c99a5(0x233)][_0x5c99a5(0x200)]({'name':_0x37627e[_0x5c99a5(0x244)],'resourceId':_0x37627e['id'],'type':_0x1b8fd0[_0x5c99a5(0x244)],'sectionId':_0x1b8fd0['id']},{})[_0x5c99a5(0x22f)](function(){return _0x1cf5c7;}):_0x1cf5c7;})[_0x4c64a(0x216)](function(_0x2d712f){const _0x20d7d7=_0x4c64a;logger['error'](_0x20d7d7(0x246),_0x2d712f);throw _0x2d712f;});}return _0x1cf5c7;})[_0x349377(0x22f)](respondWithResult(_0xfc2421,null))[_0x349377(0x216)](handleError(_0xfc2421,null));};function Extension(_0x3d95e3,_0x1e4da9,_0x4db44c,_0x4b57eb){const _0x209fe4=a895_0x50219d;this[_0x209fe4(0x20c)]=_0x209fe4(0x21b),this['exten']=_0x3d95e3,this[_0x209fe4(0x231)]=_0x4db44c,this[_0x209fe4(0x218)]=_0x209fe4(0x253),this[_0x209fe4(0x205)]=_0x209fe4(0x210),this[_0x209fe4(0x1f4)]=_0x1e4da9,this[_0x209fe4(0x224)]=_0x4b57eb;}function createVoicePrefixExtensions(_0x4073a0,_0x216919,_0x2a8a02){return new Promise(function(_0xa6d6c7,_0xeb4daf){const _0x117b3f=a895_0x5e99,_0xc58d7a=new Extension(formatPrefixName(_0x4073a0[_0x117b3f(0x21c)]),0x1,_0x117b3f(0x228),_0x117b3f(0x255));return _0xc58d7a[_0x117b3f(0x201)]=_0x4073a0['id'],db[_0x117b3f(0x1fc)][_0x117b3f(0x200)](_0xc58d7a,{'transaction':_0x2a8a02})[_0x117b3f(0x22f)](function(_0xf427d6){const _0x520ca4=_0x117b3f,_0x5d391d=_0xf427d6['get']({'plain':!![]}),_0x18952e=_[_0x520ca4(0x24e)](addVoicePrefixExtensions(_0x4073a0,_0x216919),function(_0x62bae0){const _0x43612d=_0x520ca4;return _0x62bae0[_0x43612d(0x226)]=_0x5d391d['id'],_0x62bae0['VoicePrefixId']=_0x4073a0['id'],_0x62bae0;});return db['VoiceExtension'][_0x520ca4(0x1f6)](_0x18952e,{'transaction':_0x2a8a02})['then'](function(_0x160752){const _0x35aa1f=_0x520ca4;return!_0x160752?_0xeb4daf(_0x35aa1f(0x254)):_0xa6d6c7(_0x160752);})[_0x520ca4(0x216)](function(_0x437405){return _0xeb4daf(_0x437405);});});});}function addVoicePrefixExtensions(_0x4c3407,_0x147038){const _0x3a8339=a895_0x50219d,_0xdc3109=[],_0x272188=formatPrefixName(_0x4c3407[_0x3a8339(0x21c)]);return _0xdc3109[_0x3a8339(0x239)](new Extension(_0x272188,0x2,_0x3a8339(0x1ff),_0x3a8339(0x222)+_0x4c3407[_0x3a8339(0x244)])),_0x4c3407[_0x3a8339(0x232)]?_0xdc3109[_0x3a8339(0x239)](new Extension(_0x272188,0x3,_0x3a8339(0x1ff),_0x3a8339(0x252)+_0x4c3407[_0x3a8339(0x232)])):_0xdc3109['push'](new Extension(_0x272188,0x3,_0x3a8339(0x228),_0x3a8339(0x208))),_0xdc3109[_0x3a8339(0x239)](new Extension(_0x272188,0x4,_0x3a8339(0x1fe),_0x147038[_0x3a8339(0x20c)]+','+_0x3a8339(0x21e)+(0x8+_0x4c3407[_0x3a8339(0x244)]['length'])+'}'+','+0x1)),_0xdc3109;}function formatPrefixName(_0x1ed75c){const _0x3f26ab=a895_0x50219d;let _0x2b4eb1='_';for(let _0x204a5b=0x0;_0x204a5b<_0x1ed75c[_0x3f26ab(0x23c)];_0x204a5b++){_0x1ed75c[_0x3f26ab(0x22a)](_0x204a5b)=='-'?_0x2b4eb1+=_0x1ed75c[_0x3f26ab(0x22a)](_0x204a5b):_0x2b4eb1+='['+_0x1ed75c[_0x3f26ab(0x22a)](_0x204a5b)+']';}return _0x2b4eb1+='.',_0x2b4eb1;}exports['update']=function(_0x1a88d6,_0x47d041){const _0x39b7b2=a895_0x50219d,_0x12ff5b=_0x1a88d6['body'];return _0x12ff5b[_0x39b7b2(0x21c)]=_0x39b7b2(0x220)+_0x12ff5b[_0x39b7b2(0x244)]+'-',db[_0x39b7b2(0x249)][_0x39b7b2(0x24b)](function(_0x4aaa52){const _0x192fed=_0x39b7b2;return db[_0x192fed(0x243)][_0x192fed(0x23f)](_0x12ff5b,{'where':{'id':_0x12ff5b['id']},'transaction':_0x4aaa52})[_0x192fed(0x22f)](function(){const _0x2bff08=_0x192fed;return db[_0x2bff08(0x1fc)][_0x2bff08(0x1f8)]({'where':{'VoicePrefixId':_0x12ff5b['id']},'transaction':_0x4aaa52})['then'](function(){const _0x5a9d91=_0x2bff08;return db['VoiceExtension'][_0x5a9d91(0x24c)]({'where':{'id':_0x12ff5b[_0x5a9d91(0x226)]},'raw':!![]})[_0x5a9d91(0x22f)](function(_0x30ea9c){return createVoicePrefixExtensions(_0x12ff5b,_0x30ea9c,_0x4aaa52);});});});})[_0x39b7b2(0x22f)](function(){const _0x2366e8=_0x39b7b2;return db[_0x2366e8(0x243)][_0x2366e8(0x212)](_0x12ff5b['id']);})[_0x39b7b2(0x22f)](respondWithResult(_0x47d041,null))['catch'](handleError(_0x47d041,null));},exports[a895_0x50219d(0x213)]=function(_0xaeb06,_0x2c84dc){const _0x2f76e7=a895_0x50219d;return db['VoicePrefix'][_0x2f76e7(0x24c)]({'where':{'id':_0xaeb06[_0x2f76e7(0x1f7)]['id']}})[_0x2f76e7(0x22f)](function(_0x382f47){const _0x7713a9=_0x2f76e7;if(_0x382f47)return _0x382f47[_0x7713a9(0x213)](_0xaeb06[_0x7713a9(0x235)][_0x7713a9(0x21a)],{'through':_[_0x7713a9(0x24d)](_0xaeb06[_0x7713a9(0x235)],[_0x7713a9(0x21a),'id'])})['then'](function(_0x2e4e47){const _0x4eae3b=_0x7713a9;for(let _0x727c8f=0x0;_0x727c8f<_0xaeb06[_0x4eae3b(0x235)][_0x4eae3b(0x21a)]['length'];_0x727c8f+=0x1){socket[_0x4eae3b(0x245)](_0x4eae3b(0x214),{'UserId':_0xaeb06[_0x4eae3b(0x235)][_0x4eae3b(0x21a)][_0x727c8f],'VoicePrefixId':_0xaeb06[_0x4eae3b(0x1f7)]['id']});}return _0x2e4e47;});})[_0x2f76e7(0x22f)](respondWithResult(_0x2c84dc,null))['catch'](handleError(_0x2c84dc,null));},exports[a895_0x50219d(0x248)]=function(_0x4546fa,_0x4814bc){const _0x59f8a0=a895_0x50219d;return db[_0x59f8a0(0x243)][_0x59f8a0(0x24c)]({'where':{'id':_0x4546fa[_0x59f8a0(0x1f7)]['id']}})['then'](handleEntityNotFound(_0x4814bc,null))[_0x59f8a0(0x22f)](function(_0x12aed0){const _0x39c67e=_0x59f8a0;if(_0x12aed0)return _0x12aed0[_0x39c67e(0x248)](_0x4546fa[_0x39c67e(0x24f)][_0x39c67e(0x21a)])[_0x39c67e(0x22f)](function(){const _0x39fb73=_0x39c67e;if(_[_0x39fb73(0x203)](_0x4546fa[_0x39fb73(0x24f)][_0x39fb73(0x21a)]))for(let _0x3bd198=0x0;_0x3bd198<_0x4546fa[_0x39fb73(0x24f)][_0x39fb73(0x21a)][_0x39fb73(0x23c)];_0x3bd198+=0x1){socket[_0x39fb73(0x245)](_0x39fb73(0x1f5),{'UserId':Number(_0x4546fa[_0x39fb73(0x24f)][_0x39fb73(0x21a)][_0x3bd198]),'VoicePrefixId':Number(_0x4546fa['params']['id'])});}else socket[_0x39fb73(0x245)](_0x39fb73(0x1f5),{'UserId':Number(_0x4546fa[_0x39fb73(0x24f)][_0x39fb73(0x21a)]),'VoicePrefixId':Number(_0x4546fa[_0x39fb73(0x1f7)]['id'])});});})[_0x59f8a0(0x22f)](respondWithStatusCode(_0x4814bc,null))[_0x59f8a0(0x216)](handleError(_0x4814bc,null));},exports['getAgents']=function(_0x2371ff,_0x49ce13){const _0x17a421=a895_0x50219d;let _0x417bae={};const _0x41aeb8={};let _0xe8653b,_0x26154b;return db['VoicePrefix']['findOne']({'where':{'id':_0x2371ff['params']['id']}})[_0x17a421(0x22f)](handleEntityNotFound(_0x49ce13,null))[_0x17a421(0x22f)](function(_0x943e51){const _0x327511=_0x17a421;if(_0x943e51)return _0xe8653b=_0x943e51,_0x41aeb8['model']=_[_0x327511(0x21f)](db[_0x327511(0x20b)]['rawAttributes']),_0x41aeb8[_0x327511(0x24f)]=_[_0x327511(0x21f)](_0x2371ff[_0x327511(0x24f)]),_0x41aeb8[_0x327511(0x234)]=_['intersection'](_0x41aeb8['model'],_0x41aeb8[_0x327511(0x24f)]),_0x417bae[_0x327511(0x209)]=_['intersection'](_0x41aeb8['model'],qs[_0x327511(0x221)](_0x2371ff[_0x327511(0x24f)][_0x327511(0x221)])),_0x417bae[_0x327511(0x209)]=_0x417bae[_0x327511(0x209)]['length']?_0x417bae[_0x327511(0x209)]:_0x41aeb8['model'],_0x417bae[_0x327511(0x238)]=qs[_0x327511(0x256)](_0x2371ff[_0x327511(0x24f)][_0x327511(0x256)]),_0x417bae[_0x327511(0x1fb)]=qs[_0x327511(0x234)](_[_0x327511(0x217)](_0x2371ff[_0x327511(0x24f)],_0x41aeb8['filters'])),_0x2371ff[_0x327511(0x24f)][_0x327511(0x1f9)]&&(_0x417bae[_0x327511(0x1fb)]=_[_0x327511(0x24a)](_0x417bae[_0x327511(0x1fb)],{[Op['or']]:_[_0x327511(0x24e)](_0x417bae[_0x327511(0x209)],function(_0x2dd8b9){const _0x138ffc=_0x327511,_0x413358={};return _0x413358[_0x2dd8b9]={[Op['like']]:'%'+_0x2371ff[_0x138ffc(0x24f)]['filter']+'%'},_0x413358;})})),_0x417bae=_[_0x327511(0x24a)]({},_0x417bae,_0x2371ff[_0x327511(0x21d)]),_0xe8653b[_0x327511(0x251)](_0x417bae);})[_0x17a421(0x22f)](function(_0x4d8907){const _0x2a044=_0x17a421;if(_0x4d8907)return _0x26154b=_0x4d8907[_0x2a044(0x23c)],typeof _0x2371ff[_0x2a044(0x24f)][_0x2a044(0x23a)]===_0x2a044(0x247)&&(_0x417bae[_0x2a044(0x207)]=qs['limit'](_0x2371ff[_0x2a044(0x24f)][_0x2a044(0x207)]),_0x417bae[_0x2a044(0x206)]=qs[_0x2a044(0x206)](_0x2371ff[_0x2a044(0x24f)][_0x2a044(0x206)])),_0xe8653b[_0x2a044(0x251)](_0x417bae);})[_0x17a421(0x22f)](function(_0x3fc9e3){if(_0x3fc9e3)return _0x3fc9e3?{'count':_0x26154b,'rows':_0x3fc9e3}:null;})[_0x17a421(0x22f)](respondWithResult(_0x49ce13,null))[_0x17a421(0x216)](handleError(_0x49ce13,null));}; \ No newline at end of file diff --git a/server/api/voicePrefix/voicePrefix.events.js b/server/api/voicePrefix/voicePrefix.events.js index 6d2966c..43ecc32 100644 --- a/server/api/voicePrefix/voicePrefix.events.js +++ b/server/api/voicePrefix/voicePrefix.events.js @@ -1 +1 @@ -const a747_0x2f3b=['exports','emit','update','events','remove','setMaxListeners','../../mysqldb','save','undefined'];(function(_0x3ab1a6,_0x2f3b30){const _0x2f4e34=function(_0x396269){while(--_0x396269){_0x3ab1a6['push'](_0x3ab1a6['shift']());}};_0x2f4e34(++_0x2f3b30);}(a747_0x2f3b,0x116));const a747_0x2f4e=function(_0x3ab1a6,_0x2f3b30){_0x3ab1a6=_0x3ab1a6-0x0;let _0x2f4e34=a747_0x2f3b[_0x3ab1a6];return _0x2f4e34;};const _0x4f8607=a747_0x2f4e;'use strict';const EventEmitter=require(_0x4f8607('0x4')),VoicePrefix=require(_0x4f8607('0x7'))['db']['VoicePrefix'],VoicePrefixEvents=new EventEmitter();VoicePrefixEvents[_0x4f8607('0x6')](0x0);const events={'afterCreate':_0x4f8607('0x8'),'afterUpdate':_0x4f8607('0x3'),'afterDestroy':_0x4f8607('0x5')};function emitEvent(_0x396269){return function(_0x1a3800){const _0x433490=a747_0x2f4e;VoicePrefixEvents['emit'](_0x396269+':'+_0x1a3800['id'],_0x1a3800),VoicePrefixEvents[_0x433490('0x2')](_0x396269,_0x1a3800);};}for(const e in events){if(typeof events[e]!==_0x4f8607('0x0')){const event=events[e];VoicePrefix['addHook'](e,emitEvent(event));}}module[_0x4f8607('0x1')]=VoicePrefixEvents; \ No newline at end of file +const a896_0x2495=['update','emit','setMaxListeners','VoicePrefix','save','undefined','exports','events','remove'];(function(_0x57605a,_0x1f2d31){const _0x24951e=function(_0x3175a7){while(--_0x3175a7){_0x57605a['push'](_0x57605a['shift']());}};_0x24951e(++_0x1f2d31);}(a896_0x2495,0x1d4));const a896_0x3175=function(_0x57605a,_0x1f2d31){_0x57605a=_0x57605a-0xca;let _0x24951e=a896_0x2495[_0x57605a];return _0x24951e;};const a896_0x56147c=a896_0x3175;'use strict';const EventEmitter=require(a896_0x56147c(0xd1)),VoicePrefix=require('../../mysqldb')['db'][a896_0x56147c(0xcd)],VoicePrefixEvents=new EventEmitter();VoicePrefixEvents[a896_0x56147c(0xcc)](0x0);const events={'afterCreate':a896_0x56147c(0xce),'afterUpdate':a896_0x56147c(0xca),'afterDestroy':a896_0x56147c(0xd2)};function emitEvent(_0x38397a){return function(_0x5f1e67){const _0x1e16ab=a896_0x3175;VoicePrefixEvents[_0x1e16ab(0xcb)](_0x38397a+':'+_0x5f1e67['id'],_0x5f1e67),VoicePrefixEvents[_0x1e16ab(0xcb)](_0x38397a,_0x5f1e67);};}for(const e in events){if(typeof events[e]!==a896_0x56147c(0xcf)){const event=events[e];VoicePrefix['addHook'](e,emitEvent(event));}}module[a896_0x56147c(0xd0)]=VoicePrefixEvents; \ No newline at end of file diff --git a/server/api/voicePrefix/voicePrefix.model.js b/server/api/voicePrefix/voicePrefix.model.js index 2dc4c9c..86e4bcf 100644 --- a/server/api/voicePrefix/voicePrefix.model.js +++ b/server/api/voicePrefix/voicePrefix.model.js @@ -1 +1 @@ -const a748_0x4c43=['voice_prefixes','VoicePrefix','exports','define'];(function(_0x3c52f5,_0x4c4372){const _0x5ce859=function(_0x3503d4){while(--_0x3503d4){_0x3c52f5['push'](_0x3c52f5['shift']());}};_0x5ce859(++_0x4c4372);}(a748_0x4c43,0x1ca));const a748_0x5ce8=function(_0x3c52f5,_0x4c4372){_0x3c52f5=_0x3c52f5-0x0;let _0x5ce859=a748_0x4c43[_0x3c52f5];return _0x5ce859;};const _0x3e52cf=a748_0x5ce8;'use strict';const attributes=require('./voicePrefix.attributes');module[_0x3e52cf('0x0')]=function(_0x3503d4){const _0x223c9=_0x3e52cf,_0x10cf20=_0x3503d4[_0x223c9('0x1')](_0x223c9('0x3'),attributes,{'tableName':_0x223c9('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x10cf20;}; \ No newline at end of file +const a897_0x5179=['init','exports','sequelize','./voicePrefix.options','VoicePrefix','./voicePrefix.attributes','function'];(function(_0x154b1d,_0x18d582){const _0x5179b3=function(_0x1a90bc){while(--_0x1a90bc){_0x154b1d['push'](_0x154b1d['shift']());}};_0x5179b3(++_0x18d582);}(a897_0x5179,0x1ce));const a897_0x1a90=function(_0x154b1d,_0x18d582){_0x154b1d=_0x154b1d-0x7e;let _0x5179b3=a897_0x5179[_0x154b1d];return _0x5179b3;};const a897_0x230c8f=a897_0x1a90;'use strict';const {Model}=require(a897_0x230c8f(0x80)),{attributes}=require(a897_0x230c8f(0x83)),{options}=require(a897_0x230c8f(0x81));class VoicePrefix extends Model{}function init(_0x43a01c,_0x3fd014){const _0x563da3=a897_0x230c8f,_0xcd2897=options(_0x43a01c),_0x30136e=typeof _0x3fd014===_0x563da3(0x84)?_0x3fd014(_0xcd2897):_0xcd2897;return VoicePrefix['init'](attributes,_0x30136e),VoicePrefix;}module['exports'][a897_0x230c8f(0x82)]=VoicePrefix,module[a897_0x230c8f(0x7f)][a897_0x230c8f(0x7e)]=init; \ No newline at end of file diff --git a/server/api/voicePrefix/voicePrefix.options.js b/server/api/voicePrefix/voicePrefix.options.js new file mode 100644 index 0000000..15dc6a5 --- /dev/null +++ b/server/api/voicePrefix/voicePrefix.options.js @@ -0,0 +1 @@ +var a898_0x4ee0=['options','voice_prefixes','exports'];(function(_0x9f6f9d,_0x447408){var _0x4ee0ba=function(_0x812dd0){while(--_0x812dd0){_0x9f6f9d['push'](_0x9f6f9d['shift']());}};_0x4ee0ba(++_0x447408);}(a898_0x4ee0,0x94));var a898_0x812d=function(_0x9f6f9d,_0x447408){_0x9f6f9d=_0x9f6f9d-0x174;var _0x4ee0ba=a898_0x4ee0[_0x9f6f9d];return _0x4ee0ba;};var a898_0x520069=a898_0x812d;function options(_0x16a5a6){var _0x2405d9=a898_0x812d;return{'sequelize':_0x16a5a6,'tableName':_0x2405d9(0x174),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a898_0x520069(0x175)][a898_0x520069(0x176)]=options; \ No newline at end of file diff --git a/server/api/voicePrefix/voicePrefix.rpc.js b/server/api/voicePrefix/voicePrefix.rpc.js index 250d861..21843eb 100644 --- a/server/api/voicePrefix/voicePrefix.rpc.js +++ b/server/api/voicePrefix/voicePrefix.rpc.js @@ -1 +1 @@ -const a749_0x4ee3=['../../rediscache','./voicePrefix.socket'];(function(_0xf854c,_0x4ee3fe){const _0x4858a7=function(_0x1bb3a8){while(--_0x1bb3a8){_0xf854c['push'](_0xf854c['shift']());}};_0x4858a7(++_0x4ee3fe);}(a749_0x4ee3,0x68));const a749_0x4858=function(_0xf854c,_0x4ee3fe){_0xf854c=_0xf854c-0x0;let _0x4858a7=a749_0x4ee3[_0xf854c];return _0x4858a7;};const _0x5a7933=a749_0x4858;'use strict';const {getSocket}=require(_0x5a7933('0x0')),socket=getSocket();require(_0x5a7933('0x1'))['register'](socket); \ No newline at end of file +const a899_0x19c4=['./voicePrefix.socket','register','../../rediscache'];(function(_0x24f2b3,_0x11e8a4){const _0x19c45f=function(_0x24e468){while(--_0x24e468){_0x24f2b3['push'](_0x24f2b3['shift']());}};_0x19c45f(++_0x11e8a4);}(a899_0x19c4,0x1a5));const a899_0x24e4=function(_0x24f2b3,_0x11e8a4){_0x24f2b3=_0x24f2b3-0x191;let _0x19c45f=a899_0x19c4[_0x24f2b3];return _0x19c45f;};const a899_0x3f985f=a899_0x24e4;'use strict';const {getSocket}=require(a899_0x3f985f(0x192)),socket=getSocket();require(a899_0x3f985f(0x193))[a899_0x3f985f(0x191)](socket); \ No newline at end of file diff --git a/server/api/voicePrefix/voicePrefix.socket.js b/server/api/voicePrefix/voicePrefix.socket.js index 48a09b9..726cdd6 100644 --- a/server/api/voicePrefix/voicePrefix.socket.js +++ b/server/api/voicePrefix/voicePrefix.socket.js @@ -1 +1 @@ -const a750_0x5854=['save','update','remove','emit','voicePrefix:'];(function(_0x1537bb,_0x5854ff){const _0x56b703=function(_0x1a2f4a){while(--_0x1a2f4a){_0x1537bb['push'](_0x1537bb['shift']());}};_0x56b703(++_0x5854ff);}(a750_0x5854,0x11e));const a750_0x56b7=function(_0x1537bb,_0x5854ff){_0x1537bb=_0x1537bb-0x0;let _0x56b703=a750_0x5854[_0x1537bb];return _0x56b703;};const _0xb51424=a750_0x56b7;'use strict';const VoicePrefixEvents=require('./voicePrefix.events'),events=[_0xb51424('0x4'),_0xb51424('0x1'),_0xb51424('0x0')];function createListener(_0x1a2f4a,_0xe01eed){return function(_0x252ca4){const _0x1289de=a750_0x56b7;_0xe01eed[_0x1289de('0x2')](_0x1a2f4a,_0x252ca4);};}exports['register']=function(_0x27c0f7){const _0x502130=_0xb51424;for(let _0xe5fdbb=0x0,_0x3ec7c0=events['length'];_0xe5fdbb<_0x3ec7c0;_0xe5fdbb++){const _0xa7d178=events[_0xe5fdbb],_0x14241a=createListener(_0x502130('0x3')+_0xa7d178,_0x27c0f7);VoicePrefixEvents['on'](_0xa7d178,_0x14241a);}}; \ No newline at end of file +const a900_0x3a8a=['length','emit','save','update','remove'];(function(_0x27b25d,_0x434db3){const _0x3a8a66=function(_0x391e9b){while(--_0x391e9b){_0x27b25d['push'](_0x27b25d['shift']());}};_0x3a8a66(++_0x434db3);}(a900_0x3a8a,0x136));const a900_0x391e=function(_0x27b25d,_0x434db3){_0x27b25d=_0x27b25d-0xd0;let _0x3a8a66=a900_0x3a8a[_0x27b25d];return _0x3a8a66;};const a900_0x3362ad=a900_0x391e;'use strict';const VoicePrefixEvents=require('./voicePrefix.events'),events=[a900_0x3362ad(0xd2),a900_0x3362ad(0xd4),a900_0x3362ad(0xd3)];function createListener(_0x1ec74e,_0x312bcf){return function(_0x50648b){const _0x343859=a900_0x391e;_0x312bcf[_0x343859(0xd1)](_0x1ec74e,_0x50648b);};}exports['register']=function(_0x4ddb10){const _0x1d0e51=a900_0x3362ad;for(let _0x1c503a=0x0,_0x1bff37=events[_0x1d0e51(0xd0)];_0x1c503a<_0x1bff37;_0x1c503a++){const _0x1fcea3=events[_0x1c503a],_0x293705=createListener('voicePrefix:'+_0x1fcea3,_0x4ddb10);VoicePrefixEvents['on'](_0x1fcea3,_0x293705);}}; \ No newline at end of file diff --git a/server/api/voiceQueue/index.js b/server/api/voiceQueue/index.js index 5724f6d..3096579 100644 --- a/server/api/voiceQueue/index.js +++ b/server/api/voiceQueue/index.js @@ -1 +1 @@ -const a751_0x116b=['addBlackLists','addLists','./voiceQueue.controller','/:id/blacklists','getBlackLists','getHopperBlacks','Router','index','getTeams','getHopperFinals','getAgents','/:id/teams','getLists','get','put','getHopperHistories','/:id/hoppers','removeLists','removeBlackLists','clone','/:id/hopper_histories','/:id/clone','removeTeams','addAgents','/:id','/:id/hopper_black','isAuthenticated','addTeams','../../components/auth/service','show','/:id/members','post','/:id/users','/:id/lists','express','delete'];(function(_0x1c93a4,_0x116b9f){const _0x40a180=function(_0x38a244){while(--_0x38a244){_0x1c93a4['push'](_0x1c93a4['shift']());}};_0x40a180(++_0x116b9f);}(a751_0x116b,0xe3));const a751_0x40a1=function(_0x1c93a4,_0x116b9f){_0x1c93a4=_0x1c93a4-0x0;let _0x40a180=a751_0x116b[_0x1c93a4];return _0x40a180;};const _0x18f05d=a751_0x40a1;'use strict';const express=require(_0x18f05d('0x17')),router=express[_0x18f05d('0x1f')](),auth=require(_0x18f05d('0x11')),controller=require(_0x18f05d('0x1b'));router[_0x18f05d('0x2')]('/',auth[_0x18f05d('0xf')](),controller[_0x18f05d('0x20')]),router['get'](_0x18f05d('0xd'),auth['isAuthenticated'](),controller[_0x18f05d('0x12')]),router[_0x18f05d('0x2')](_0x18f05d('0x5'),auth[_0x18f05d('0xf')](),controller['getHoppers']),router[_0x18f05d('0x2')](_0x18f05d('0x9'),auth[_0x18f05d('0xf')](),controller[_0x18f05d('0x4')]),router[_0x18f05d('0x2')]('/:id/hopper_finals',auth[_0x18f05d('0xf')](),controller[_0x18f05d('0x22')]),router[_0x18f05d('0x2')](_0x18f05d('0xe'),auth[_0x18f05d('0xf')](),controller[_0x18f05d('0x1e')]),router[_0x18f05d('0x2')](_0x18f05d('0x0'),auth[_0x18f05d('0xf')](),controller[_0x18f05d('0x21')]),router[_0x18f05d('0x2')](_0x18f05d('0x15'),auth[_0x18f05d('0xf')](),controller[_0x18f05d('0x23')]),router[_0x18f05d('0x2')](_0x18f05d('0x13'),auth[_0x18f05d('0xf')](),controller['getMembers']),router[_0x18f05d('0x2')](_0x18f05d('0x16'),auth[_0x18f05d('0xf')](),controller[_0x18f05d('0x1')]),router['get'](_0x18f05d('0x1c'),auth[_0x18f05d('0xf')](),controller[_0x18f05d('0x1d')]),router['post']('/',auth['isAuthenticated'](),controller['create']),router[_0x18f05d('0x14')](_0x18f05d('0xa'),auth[_0x18f05d('0xf')](),controller[_0x18f05d('0x8')]),router['post']('/:id/teams',auth[_0x18f05d('0xf')](),controller[_0x18f05d('0x10')]),router['post']('/:id/users',auth[_0x18f05d('0xf')](),controller[_0x18f05d('0xc')]),router[_0x18f05d('0x14')]('/:id/lists',auth[_0x18f05d('0xf')](),controller[_0x18f05d('0x1a')]),router[_0x18f05d('0x14')](_0x18f05d('0x1c'),auth[_0x18f05d('0xf')](),controller[_0x18f05d('0x19')]),router[_0x18f05d('0x3')](_0x18f05d('0xd'),auth[_0x18f05d('0xf')](),controller['update']),router['delete'](_0x18f05d('0xd'),auth[_0x18f05d('0xf')](),controller['destroy']),router['delete'](_0x18f05d('0x0'),auth[_0x18f05d('0xf')](),controller[_0x18f05d('0xb')]),router[_0x18f05d('0x18')]('/:id/users',auth[_0x18f05d('0xf')](),controller['removeAgents']),router[_0x18f05d('0x18')](_0x18f05d('0x16'),auth[_0x18f05d('0xf')](),controller[_0x18f05d('0x6')]),router[_0x18f05d('0x18')]('/:id/blacklists',auth[_0x18f05d('0xf')](),controller[_0x18f05d('0x7')]),module['exports']=router; \ No newline at end of file +const a901_0x3f2d=['getHopperBlacks','addAgents','isAuthenticated','/:id','removeAgents','removeTeams','clone','/:id/teams','/:id/hoppers','get','/:id/users','getAgents','update','getHopperFinals','/:id/clone','removeLists','/:id/hopper_histories','/:id/members','index','express','getLists','removeBlackLists','getHopperHistories','getBlackLists','delete','addLists','/:id/hopper_black','../../components/auth/service','./voiceQueue.controller','/:id/lists','Router','create','exports','post','/:id/hopper_finals','/:id/blacklists','addTeams'];(function(_0x5c4c23,_0xfd3dfe){const _0x3f2de7=function(_0x52e71c){while(--_0x52e71c){_0x5c4c23['push'](_0x5c4c23['shift']());}};_0x3f2de7(++_0xfd3dfe);}(a901_0x3f2d,0x1c2));const a901_0x52e7=function(_0x5c4c23,_0xfd3dfe){_0x5c4c23=_0x5c4c23-0x1b8;let _0x3f2de7=a901_0x3f2d[_0x5c4c23];return _0x3f2de7;};const a901_0x4e30ff=a901_0x52e7;'use strict';const express=require(a901_0x4e30ff(0x1c5)),router=express[a901_0x4e30ff(0x1d0)](),auth=require(a901_0x4e30ff(0x1cd)),controller=require(a901_0x4e30ff(0x1ce));router['get']('/',auth[a901_0x4e30ff(0x1d9)](),controller[a901_0x4e30ff(0x1c4)]),router['get'](a901_0x4e30ff(0x1da),auth['isAuthenticated'](),controller['show']),router['get'](a901_0x4e30ff(0x1ba),auth[a901_0x4e30ff(0x1d9)](),controller['getHoppers']),router[a901_0x4e30ff(0x1bb)](a901_0x4e30ff(0x1c2),auth[a901_0x4e30ff(0x1d9)](),controller[a901_0x4e30ff(0x1c8)]),router[a901_0x4e30ff(0x1bb)](a901_0x4e30ff(0x1d4),auth[a901_0x4e30ff(0x1d9)](),controller[a901_0x4e30ff(0x1bf)]),router['get'](a901_0x4e30ff(0x1cc),auth['isAuthenticated'](),controller[a901_0x4e30ff(0x1d7)]),router[a901_0x4e30ff(0x1bb)](a901_0x4e30ff(0x1b9),auth[a901_0x4e30ff(0x1d9)](),controller['getTeams']),router[a901_0x4e30ff(0x1bb)]('/:id/users',auth[a901_0x4e30ff(0x1d9)](),controller[a901_0x4e30ff(0x1bd)]),router[a901_0x4e30ff(0x1bb)](a901_0x4e30ff(0x1c3),auth[a901_0x4e30ff(0x1d9)](),controller['getMembers']),router[a901_0x4e30ff(0x1bb)](a901_0x4e30ff(0x1cf),auth['isAuthenticated'](),controller[a901_0x4e30ff(0x1c6)]),router['get']('/:id/blacklists',auth[a901_0x4e30ff(0x1d9)](),controller[a901_0x4e30ff(0x1c9)]),router[a901_0x4e30ff(0x1d3)]('/',auth[a901_0x4e30ff(0x1d9)](),controller[a901_0x4e30ff(0x1d1)]),router[a901_0x4e30ff(0x1d3)](a901_0x4e30ff(0x1c0),auth[a901_0x4e30ff(0x1d9)](),controller[a901_0x4e30ff(0x1b8)]),router[a901_0x4e30ff(0x1d3)](a901_0x4e30ff(0x1b9),auth['isAuthenticated'](),controller[a901_0x4e30ff(0x1d6)]),router[a901_0x4e30ff(0x1d3)]('/:id/users',auth[a901_0x4e30ff(0x1d9)](),controller[a901_0x4e30ff(0x1d8)]),router[a901_0x4e30ff(0x1d3)]('/:id/lists',auth['isAuthenticated'](),controller[a901_0x4e30ff(0x1cb)]),router[a901_0x4e30ff(0x1d3)]('/:id/blacklists',auth['isAuthenticated'](),controller['addBlackLists']),router['put']('/:id',auth[a901_0x4e30ff(0x1d9)](),controller[a901_0x4e30ff(0x1be)]),router[a901_0x4e30ff(0x1ca)](a901_0x4e30ff(0x1da),auth['isAuthenticated'](),controller['destroy']),router[a901_0x4e30ff(0x1ca)](a901_0x4e30ff(0x1b9),auth[a901_0x4e30ff(0x1d9)](),controller[a901_0x4e30ff(0x1dc)]),router[a901_0x4e30ff(0x1ca)](a901_0x4e30ff(0x1bc),auth[a901_0x4e30ff(0x1d9)](),controller[a901_0x4e30ff(0x1db)]),router[a901_0x4e30ff(0x1ca)]('/:id/lists',auth[a901_0x4e30ff(0x1d9)](),controller[a901_0x4e30ff(0x1c1)]),router['delete'](a901_0x4e30ff(0x1d5),auth['isAuthenticated'](),controller[a901_0x4e30ff(0x1c7)]),module[a901_0x4e30ff(0x1d2)]=router; \ No newline at end of file diff --git a/server/api/voiceQueue/voiceQueue.attributes.js b/server/api/voiceQueue/voiceQueue.attributes.js index 7be3d9d..c3b927c 100644 --- a/server/api/voiceQueue/voiceQueue.attributes.js +++ b/server/api/voiceQueue/voiceQueue.attributes.js @@ -1 +1 @@ -const a752_0x5832=['#AgentReject\x20Retry\x20(min:1,\x20max:999)','type','Dial\x20Method.','#AMD\x20Total\x20Analysis\x20Time','DESC','ringall','acw','STRING','power','#RecallMe\x20Timeout\x20(min:1)','booked','setDataValue','leastrecent','Originate\x20Timeout\x20Seconds\x20(min:1,\x20max:999)','joinempty','#AMD\x20Initial\x20Silence','Max\x209999\x20channels,\x200\x20means\x20unlimited.','sequelize','roundrobin','Only\x20for\x20predictive\x20method.','rrordered','Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled','AGI\x20queue\x20option\x20(use:\x20agi://127.0.0.1/square,)','inbound','TEXT','dropRate','wrapuptime','Queue\x20Timeout\x20Seconds\x20(min:1,\x20max:999)','FLOAT','outbound','random','once','Power\x20Level:\x20Calls\x20for\x20agents\x20(min:1,\x20max:10).','UNSIGNED','wrandom','#NoSuchNumber\x20Retry\x20(min:1,\x20max:999)','join','AgentReject\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','INTEGER','yes','ASC','split','#Busy\x20Retry\x20(min:1,\x20max:999)','#AMD\x20Min\x20Word\x20Length','#Congestion\x20Retry\x20(min:1,\x20max:999)','exports','agentBusyFactor','#AMD\x20After\x20Greeting\x20Silence','#Global\x20Max\x20Retry\x20(min:1,\x20max:999)','mandatoryDispositionPauseId','predictive','Interval\x20Predictive\x20Minutes\x20(min:5\x20max:30)','https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Application_Queue','name','periodic_announce','progressive','#Machine\x20Retry\x20(min:1,\x20max:999)','Congestion\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','linear','BOOLEAN','strategy','fewestcalls','rrmemory','leavewhenempty','#AMD\x20Between\x20Words\x20Silence','never','ENUM','default','#NoAnswer\x20Retry\x20(min:1,\x20max:999)','Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','#AMD\x20Silence\x20Threshold\x20(min:0,\x20max:32767)','#AMD\x20Greeting','always','Abandoned\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','#Drop\x20Retry\x20(min:1,\x20max:999)','getDataValue'];(function(_0x3f8be0,_0x5832e9){const _0x38d7e9=function(_0x2af3d2){while(--_0x2af3d2){_0x3f8be0['push'](_0x3f8be0['shift']());}};_0x38d7e9(++_0x5832e9);}(a752_0x5832,0x16b));const a752_0x38d7=function(_0x3f8be0,_0x5832e9){_0x3f8be0=_0x3f8be0-0x0;let _0x38d7e9=a752_0x5832[_0x3f8be0];return _0x38d7e9;};const _0x15f7a0=a752_0x38d7;'use strict';const Sequelize=require(_0x15f7a0('0x22'));module[_0x15f7a0('0x3e')]={'name':{'type':Sequelize[_0x15f7a0('0x18')],'allowNull':![],'unique':_0x15f7a0('0x46'),'validate':{'notEmpty':!![],'is':/^[A-Za-z0-9._]+$/i}},'type':{'type':Sequelize[_0x15f7a0('0x7')](_0x15f7a0('0x28'),_0x15f7a0('0x2e')),'allowNull':![],'defaultValue':_0x15f7a0('0x28')},'musiconhold':{'type':Sequelize[_0x15f7a0('0x18')],'defaultValue':_0x15f7a0('0x8')},'announce':{'type':Sequelize[_0x15f7a0('0x18')],'defaultValue':''},'strategy':{'type':Sequelize[_0x15f7a0('0x7')]('rr','ringall',_0x15f7a0('0x1d'),_0x15f7a0('0x2'),_0x15f7a0('0x2f'),'rrmemory',_0x15f7a0('0x4b'),_0x15f7a0('0x33'),_0x15f7a0('0x25')),'allowNull':![],'defaultValue':_0x15f7a0('0x16'),'set':function(_0x2af3d2){const _0x1acda7=_0x15f7a0;this[_0x1acda7('0x1c')](_0x1acda7('0x1'),_0x2af3d2?_0x2af3d2:_0x1acda7('0x3'));},'get':function(){const _0x15a95e=_0x15f7a0,_0x314649=this[_0x15a95e('0x10')](_0x15a95e('0x12')),_0xaa379=this[_0x15a95e('0x10')]('dialMethod'),_0xe07de9=this[_0x15a95e('0x10')](_0x15a95e('0x1'));if(_0x314649===_0x15a95e('0x28'))return _0xe07de9;if(_0xaa379===_0x15a95e('0x1b')&&_0xe07de9==='rrmemory'||_0xaa379===_0x15a95e('0x1b')&&_0xe07de9===_0x15a95e('0x23'))return _0xe07de9;if(_0xaa379==='progressive'||_0xaa379==='predictive'||_0xaa379===_0x15a95e('0x19'))return _0xe07de9;return null;}},'servicelevel':{'type':Sequelize[_0x15f7a0('0x37')](0xb),'defaultValue':0x0},'context':{'type':Sequelize[_0x15f7a0('0x18')],'defaultValue':null},'penaltymemberslimit':{'type':Sequelize['INTEGER'](0xb)},'timeout':{'type':Sequelize[_0x15f7a0('0x37')](0xb),'defaultValue':0xf},'retry':{'type':Sequelize['INTEGER'](0xb),'defaultValue':0x2},'timeoutpriority':{'type':Sequelize[_0x15f7a0('0x18')]},'weight':{'type':Sequelize['INTEGER'](0xb),'allowNull':!![],'defaultValue':0x0},'wrapuptime':{'type':Sequelize[_0x15f7a0('0x37')](0xb),'defaultValue':0x0},'autofill':{'type':Sequelize[_0x15f7a0('0x7')](_0x15f7a0('0x38'),'no'),'defaultValue':_0x15f7a0('0x38')},'autopause':{'type':Sequelize[_0x15f7a0('0x7')](_0x15f7a0('0x38'),'no','all'),'defaultValue':'no'},'autopausedelay':{'type':Sequelize['INTEGER'](0xb)},'autopausebusy':{'type':Sequelize['ENUM'](_0x15f7a0('0x38'),'no'),'defaultValue':'no'},'autopauseunavail':{'type':Sequelize[_0x15f7a0('0x7')]('yes','no'),'defaultValue':'no'},'maxlen':{'type':Sequelize[_0x15f7a0('0x37')](0xb),'defaultValue':0x0},'setinterfacevar':{'type':Sequelize['ENUM'](_0x15f7a0('0x38'),'no'),'defaultValue':'no'},'setqueueentryvar':{'type':Sequelize['ENUM'](_0x15f7a0('0x38'),'no'),'defautValue':'no'},'setqueuevar':{'type':Sequelize['ENUM'](_0x15f7a0('0x38'),'no'),'defaultValue':'no'},'eventmemberstatus':{'type':Sequelize['ENUM'](_0x15f7a0('0x38'),'no'),'defaultValue':'no'},'membermacro':{'type':Sequelize[_0x15f7a0('0x18')],'allowNull':!![]},'membergosub':{'type':Sequelize[_0x15f7a0('0x18')],'allowNull':!![]},'announce_frequency':{'type':Sequelize[_0x15f7a0('0x37')](0xb),'defaultValue':0x0},'min_announce_frequency':{'type':Sequelize[_0x15f7a0('0x37')](0xb),'defaultValue':0x0},'periodic_announce_frequency':{'type':Sequelize[_0x15f7a0('0x37')](0xb),'defaultValue':0x0},'random_periodic_announce':{'type':Sequelize['ENUM']('yes','no'),'defaultValue':'no'},'relative_periodic_announce':{'type':Sequelize['ENUM'](_0x15f7a0('0x38'),'no'),'defaultValue':_0x15f7a0('0x38')},'announce_holdtime':{'type':Sequelize['ENUM'](_0x15f7a0('0x38'),'no',_0x15f7a0('0x30')),'defaultValue':'no'},'announce_position':{'type':Sequelize[_0x15f7a0('0x18')],'defaultValue':'no'},'announce_to_first_user':{'type':Sequelize[_0x15f7a0('0x7')](_0x15f7a0('0x38'),'no')},'announce_position_limit':{'type':Sequelize['INTEGER'](0xb)},'announce_round_seconds':{'type':Sequelize[_0x15f7a0('0x7')]('0','5','10','15','20','30'),'defaultValue':'0'},'monitor_format':{'type':Sequelize[_0x15f7a0('0x18')],'defaultValue':''},'monitor_type':{'type':Sequelize[_0x15f7a0('0x18')]},'queue_youarenext':{'type':Sequelize[_0x15f7a0('0x18')],'defaultValue':null},'queue_thereare':{'type':Sequelize[_0x15f7a0('0x18')],'defaultValue':null},'queue_callswaiting':{'type':Sequelize[_0x15f7a0('0x18')],'defaultValue':null},'queue_holdtime':{'type':Sequelize[_0x15f7a0('0x18')],'defaultValue':null},'queue_minute':{'type':Sequelize['STRING'],'allowNull':!![],'defaultValue':null},'queue_minutes':{'type':Sequelize[_0x15f7a0('0x18')],'defaultValue':null},'queue_seconds':{'type':Sequelize[_0x15f7a0('0x18')],'defaultValue':null},'queue_thankyou':{'type':Sequelize['STRING'],'defaultValue':null},'queue_reporthold':{'type':Sequelize[_0x15f7a0('0x18')]},'queue_quantity1':{'type':Sequelize[_0x15f7a0('0x18')]},'queue_quantity2':{'type':Sequelize['STRING']},'queue_periodic_announce':{'type':Sequelize['STRING']},'queue_less_than':{'type':Sequelize[_0x15f7a0('0x18')]},'periodic_announce':{'type':Sequelize[_0x15f7a0('0x29')],'set':function(_0x184340){const _0x4d8138=_0x15f7a0;this[_0x4d8138('0x1c')](_0x4d8138('0x47'),_0x184340?_0x184340[_0x4d8138('0x35')](','):[]);},'get':function(){const _0x20305f=_0x15f7a0;return this['getDataValue'](_0x20305f('0x47'))?this['getDataValue'](_0x20305f('0x47'))[_0x20305f('0x3a')](','):[];}},'joinempty':{'type':Sequelize['STRING'],'defaultValue':_0x15f7a0('0x38'),'set':function(_0x4a5bb2){const _0x28d75a=_0x15f7a0;this[_0x28d75a('0x1c')](_0x28d75a('0x1f'),_0x4a5bb2?_0x4a5bb2[_0x28d75a('0x35')](','):undefined);},'get':function(){const _0xf49b4a=_0x15f7a0;return this[_0xf49b4a('0x10')]('joinempty')?this[_0xf49b4a('0x10')]('joinempty')[_0xf49b4a('0x3a')](','):undefined;}},'leavewhenempty':{'type':Sequelize[_0x15f7a0('0x18')],'defaultValue':'no','set':function(_0x9e986e){const _0x2b5d73=_0x15f7a0;this[_0x2b5d73('0x1c')](_0x2b5d73('0x4'),_0x9e986e?_0x9e986e[_0x2b5d73('0x35')](','):undefined);},'get':function(){const _0x4b0b89=_0x15f7a0;return this[_0x4b0b89('0x10')](_0x4b0b89('0x4'))?this[_0x4b0b89('0x10')](_0x4b0b89('0x4'))['split'](','):undefined;}},'reportholdtime':{'type':Sequelize[_0x15f7a0('0x7')](_0x15f7a0('0x38'),'no'),'defaultValue':'no'},'ringinuse':{'type':Sequelize[_0x15f7a0('0x7')](_0x15f7a0('0x38'),'no'),'defaultValue':'no'},'memberdelay':{'type':Sequelize[_0x15f7a0('0x37')](0xb),'defaultValue':0x0},'timeoutrestart':{'type':Sequelize[_0x15f7a0('0x7')](_0x15f7a0('0x38'),'no'),'defaultValue':'no'},'defaultrule':{'type':Sequelize[_0x15f7a0('0x18')]},'description':{'type':Sequelize[_0x15f7a0('0x18')]},'acw':{'type':Sequelize[_0x15f7a0('0x0')],'defaultValue':0x0,'set':function(_0x3738d0){const _0x552f17=_0x15f7a0;this['setDataValue'](_0x552f17('0x17'),_0x3738d0),_0x3738d0&&(this['getDataValue'](_0x552f17('0x2b'))<0x2&&this[_0x552f17('0x1c')](_0x552f17('0x2b'),0x2));}},'acwTimeout':{'type':Sequelize[_0x15f7a0('0x37')](0xb),'defaultValue':0xa},'dialActive':{'type':Sequelize[_0x15f7a0('0x0')],'defaultValue':0x0,'comment':'Active/Disactive\x20Campaign'},'dialMethod':{'type':Sequelize[_0x15f7a0('0x7')]('preview','progressive',_0x15f7a0('0x19'),_0x15f7a0('0x43'),_0x15f7a0('0x1b')),'defaultValue':_0x15f7a0('0x48'),'comment':_0x15f7a0('0x13')},'dialLimitChannel':{'type':Sequelize[_0x15f7a0('0x37')](0x4)[_0x15f7a0('0x32')],'defaultValue':0x0,'validate':{'min':0x0,'max':0x270f},'comment':_0x15f7a0('0x21')},'dialLimitQueue':{'type':Sequelize[_0x15f7a0('0x37')](0x4)[_0x15f7a0('0x32')],'defaultValue':0x0,'validate':{'min':0x0,'max':0x270f},'comment':'Max\x209999\x20member\x20in\x20queue(min:1,\x20max:9999),\x200\x20means\x20unlimited.'},'dialPowerLevel':{'type':Sequelize[_0x15f7a0('0x2d')](0x2)['UNSIGNED'],'defaultValue':0x1,'validate':{'min':0x1,'max':0xa},'comment':_0x15f7a0('0x31')},'dialPredictiveOptimization':{'type':Sequelize[_0x15f7a0('0x7')](_0x15f7a0('0x3f'),_0x15f7a0('0x2a')),'defaultValue':'dropRate','comment':_0x15f7a0('0x24')},'dialPredictiveOptimizationPercentage':{'type':Sequelize['FLOAT'](0x2)[_0x15f7a0('0x32')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x5f},'comment':'Predictive\x20Optimization\x20Percentage\x20(min:\x201,\x20max:\x2095)'},'dialPredictiveInterval':{'type':Sequelize[_0x15f7a0('0x37')](0x3)[_0x15f7a0('0x32')],'defaultValue':0xa,'validate':{'min':0x5,'max':0x1e},'comment':_0x15f7a0('0x44')},'dialOriginateCallerIdName':{'type':Sequelize[_0x15f7a0('0x18')]},'dialOriginateCallerIdNumber':{'type':Sequelize['STRING']},'dialOriginateTimeout':{'type':Sequelize['INTEGER'](0x3)[_0x15f7a0('0x32')],'defaultValue':0x1e,'validate':{'min':0x1,'max':0x3e7},'comment':_0x15f7a0('0x1e')},'dialQueueOptions':{'type':Sequelize[_0x15f7a0('0x18')],'defaultValue':'tTxX','comment':_0x15f7a0('0x45')},'dialQueueTimeout':{'type':Sequelize[_0x15f7a0('0x37')](0x3)['UNSIGNED'],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x15f7a0('0x2c')},'dialQueueProject':{'type':Sequelize[_0x15f7a0('0x18')],'comment':_0x15f7a0('0x27')},'dialCongestionMaxRetry':{'type':Sequelize[_0x15f7a0('0x37')](0x3)[_0x15f7a0('0x32')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x15f7a0('0x3d')},'dialCongestionRetryFrequency':{'type':Sequelize[_0x15f7a0('0x37')](0x5)['UNSIGNED'],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0x15f7a0('0x4a')},'dialBusyMaxRetry':{'type':Sequelize[_0x15f7a0('0x37')](0x3)[_0x15f7a0('0x32')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x15f7a0('0x3b')},'dialBusyRetryFrequency':{'type':Sequelize[_0x15f7a0('0x37')](0x5)['UNSIGNED'],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':'Busy\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)'},'dialNoAnswerMaxRetry':{'type':Sequelize[_0x15f7a0('0x37')](0x3)['UNSIGNED'],'defaultValue':0x3,'comment':_0x15f7a0('0x9')},'dialNoAnswerRetryFrequency':{'type':Sequelize[_0x15f7a0('0x37')](0x5)[_0x15f7a0('0x32')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':'NoAnswer\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)'},'dialGlobalMaxRetry':{'type':Sequelize[_0x15f7a0('0x37')](0x3)[_0x15f7a0('0x32')],'validate':{'min':0x1,'max':0x3e7},'defaultValue':0x4,'comment':_0x15f7a0('0x41')},'dialTimezone':{'type':Sequelize[_0x15f7a0('0x18')],'defaultValue':null},'dialGlobalInterval':{'type':Sequelize[_0x15f7a0('0x18')],'defaultValue':'07:00-22:00,*,*,*'},'dialPrefix':{'type':Sequelize['STRING'],'defaultValue':null},'dialCheckDuplicateType':{'type':Sequelize[_0x15f7a0('0x7')]('always',_0x15f7a0('0x6'),'onlyIfOpen'),'defaultValue':_0x15f7a0('0xd')},'dialAMDActive':{'type':Sequelize[_0x15f7a0('0x0')],'defaultValue':0x0,'comment':'Active/Disactive\x20AMD'},'dialAMDInitialSilence':{'type':Sequelize[_0x15f7a0('0x37')](0x9)[_0x15f7a0('0x32')],'defaultValue':0x9c4,'validate':{'min':0x0},'comment':_0x15f7a0('0x20')},'dialAMDGreeting':{'type':Sequelize['INTEGER'](0x9)['UNSIGNED'],'defaultValue':0x5dc,'validate':{'min':0x0},'comment':_0x15f7a0('0xc')},'dialAMDAfterGreetingSilence':{'type':Sequelize[_0x15f7a0('0x37')](0x9)[_0x15f7a0('0x32')],'defaultValue':0x320,'validate':{'min':0x0},'comment':_0x15f7a0('0x40')},'dialAMDTotalAnalysisTime':{'type':Sequelize[_0x15f7a0('0x37')](0x9)[_0x15f7a0('0x32')],'defaultValue':0x1388,'validate':{'min':0x0},'comment':_0x15f7a0('0x14')},'dialAMDMinWordLength':{'type':Sequelize[_0x15f7a0('0x37')](0x9)[_0x15f7a0('0x32')],'defaultValue':0x64,'validate':{'min':0x0},'comment':_0x15f7a0('0x3c')},'dialAMDBetweenWordsSilence':{'type':Sequelize[_0x15f7a0('0x37')](0x9)[_0x15f7a0('0x32')],'defaultValue':0x32,'validate':{'min':0x0},'comment':_0x15f7a0('0x5')},'dialAMDMaximumNumberOfWords':{'type':Sequelize['INTEGER'](0x9)[_0x15f7a0('0x32')],'defaultValue':0x3,'validate':{'min':0x0},'comment':'#AMD\x20Maximum\x20Number\x20Of\x20Words'},'dialAMDSilenceThreshold':{'type':Sequelize[_0x15f7a0('0x37')](0x5)[_0x15f7a0('0x32')],'validate':{'min':0x0,'max':0x7fff},'defaultValue':0x100,'comment':_0x15f7a0('0xb')},'dialAMDMaximumWordLength':{'type':Sequelize[_0x15f7a0('0x37')](0x9)[_0x15f7a0('0x32')],'defaultValue':0x1388,'validate':{'min':0x0},'comment':'#AMD\x20Maximum\x20Word\x20Length'},'dialRecallMeTimeout':{'type':Sequelize[_0x15f7a0('0x37')](0x5)[_0x15f7a0('0x32')],'validate':{'min':0x1},'defaultValue':0x1e,'comment':_0x15f7a0('0x1a')},'dialRecallInQueue':{'type':Sequelize[_0x15f7a0('0x0')],'defaultValue':0x0,'comment':'Active/Disactive\x20Recall\x20In\x20Queue'},'dialOrderByScheduledAt':{'type':Sequelize[_0x15f7a0('0x7')]('DESC',_0x15f7a0('0x39')),'defaultValue':_0x15f7a0('0x15')},'dialQueueProject2':{'type':Sequelize[_0x15f7a0('0x18')],'comment':'AGI\x20queue\x20option\x20(use:\x20agi://127.0.0.1/square,)'},'dialAgiAfterHangupClient':{'type':Sequelize[_0x15f7a0('0x0')],'defaultValue':![]},'dialAgiAfterHangupAgent':{'type':Sequelize[_0x15f7a0('0x0')],'defaultValue':![]},'dialRandomLastDigitCallerIdNumber':{'type':Sequelize['INTEGER'](0x3)[_0x15f7a0('0x32')],'validate':{'min':0x0,'max':0xf},'defaultValue':0x0,'comment':'Random\x20Last\x20Digit\x20(min:1,\x20max:15)'},'dialCutDigit':{'type':Sequelize[_0x15f7a0('0x37')](0x3)['UNSIGNED'],'validate':{'min':0x0,'max':0xf},'defaultValue':0x0,'comment':'Cut\x20Digit\x20(min:1,\x20max:15)'},'dialNoSuchNumberMaxRetry':{'type':Sequelize[_0x15f7a0('0x37')](0x3)[_0x15f7a0('0x32')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x15f7a0('0x34')},'dialNoSuchNumberRetryFrequency':{'type':Sequelize['INTEGER'](0x5)[_0x15f7a0('0x32')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':'NoSuchNumber\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)'},'dialDropMaxRetry':{'type':Sequelize[_0x15f7a0('0x37')](0x3)['UNSIGNED'],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x15f7a0('0xf')},'dialDropRetryFrequency':{'type':Sequelize[_0x15f7a0('0x37')](0x5)['UNSIGNED'],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':'Drop\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)'},'dialAbandonedMaxRetry':{'type':Sequelize[_0x15f7a0('0x37')](0x3)['UNSIGNED'],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':'#Abandoned\x20Retry\x20(min:1,\x20max:999)'},'dialAbandonedRetryFrequency':{'type':Sequelize[_0x15f7a0('0x37')](0x5)['UNSIGNED'],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0x15f7a0('0xe')},'dialMachineMaxRetry':{'type':Sequelize[_0x15f7a0('0x37')](0x3)[_0x15f7a0('0x32')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x15f7a0('0x49')},'dialMachineRetryFrequency':{'type':Sequelize[_0x15f7a0('0x37')](0x5)['UNSIGNED'],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':'Machine\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)'},'dialAgentRejectMaxRetry':{'type':Sequelize[_0x15f7a0('0x37')](0x3)['UNSIGNED'],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x15f7a0('0x11')},'dialAgentRejectRetryFrequency':{'type':Sequelize[_0x15f7a0('0x37')](0x5)[_0x15f7a0('0x32')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0x15f7a0('0x36')},'mandatoryDispositionPauseId':{'type':Sequelize[_0x15f7a0('0x37')],'allowNull':!![],'comment':_0x15f7a0('0x26')},'mandatoryDisposition':{'type':Sequelize[_0x15f7a0('0x0')],'defaultValue':![],'comment':_0x15f7a0('0xa'),'set':function(_0x14729a){const _0x557f58=_0x15f7a0;if(!_0x14729a)this[_0x557f58('0x1c')](_0x557f58('0x42'),null);this[_0x557f58('0x1c')]('mandatoryDisposition',_0x14729a);}},'dialPredictiveIntervalMaxThreshold':{'type':Sequelize['INTEGER'](0x3)[_0x15f7a0('0x32')],'defaultValue':0x14,'validate':{'min':0x1,'max':0x64}},'dialPredictiveIntervalMinThreshold':{'type':Sequelize['INTEGER'](0x3)[_0x15f7a0('0x32')],'defaultValue':0xa,'validate':{'min':0x1,'max':0x64}}}; \ No newline at end of file +const a902_0x5a67=['name','booked','Max\x209999\x20member\x20in\x20queue(min:1,\x20max:9999),\x200\x20means\x20unlimited.','Congestion\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','roundrobin','Predictive\x20Optimization\x20Percentage\x20(min:\x201,\x20max:\x2095)','Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','exports','Abandoned\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','Interval\x20Predictive\x20Minutes\x20(min:5\x20max:30)','periodic_announce','#AMD\x20Min\x20Word\x20Length','Active/Disactive\x20Recall\x20In\x20Queue','dropRate','leastrecent','split','attributes','Machine\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','preview','AGI\x20queue\x20option\x20(use:\x20agi://127.0.0.1/square,)','strategy','Dial\x20Method.','linear','dialMethod','Originate\x20Timeout\x20Seconds\x20(min:1,\x20max:999)','#Global\x20Max\x20Retry\x20(min:1,\x20max:999)','Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled','predictive','mandatoryDisposition','default','#AMD\x20After\x20Greeting\x20Silence','random','#RecallMe\x20Timeout\x20(min:1)','joinempty','07:00-22:00,*,*,*','Active/Disactive\x20AMD','all','join','#AMD\x20Total\x20Analysis\x20Time','rrmemory','#AMD\x20Between\x20Words\x20Silence','setDataValue','tTxX','#Congestion\x20Retry\x20(min:1,\x20max:999)','Busy\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','Power\x20Level:\x20Calls\x20for\x20agents\x20(min:1,\x20max:10).','STRING','#Abandoned\x20Retry\x20(min:1,\x20max:999)','never','Random\x20Last\x20Digit\x20(min:1,\x20max:15)','#AMD\x20Maximum\x20Word\x20Length','inbound','BOOLEAN','leavewhenempty','Max\x209999\x20channels,\x200\x20means\x20unlimited.','#AMD\x20Maximum\x20Number\x20Of\x20Words','Cut\x20Digit\x20(min:1,\x20max:15)','https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Application_Queue','AgentReject\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','outbound','FLOAT','INTEGER','NoSuchNumber\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','DESC','ringall','#AgentReject\x20Retry\x20(min:1,\x20max:999)','once','yes','getDataValue','Queue\x20Timeout\x20Seconds\x20(min:1,\x20max:999)','power','#Drop\x20Retry\x20(min:1,\x20max:999)','UNSIGNED','ENUM','always','fewestcalls','#Machine\x20Retry\x20(min:1,\x20max:999)','#NoSuchNumber\x20Retry\x20(min:1,\x20max:999)','#AMD\x20Greeting','progressive'];(function(_0x126ddb,_0x568300){const _0x5a6758=function(_0x10daf5){while(--_0x10daf5){_0x126ddb['push'](_0x126ddb['shift']());}};_0x5a6758(++_0x568300);}(a902_0x5a67,0xf5));const a902_0x10da=function(_0x126ddb,_0x568300){_0x126ddb=_0x126ddb-0x147;let _0x5a6758=a902_0x5a67[_0x126ddb];return _0x5a6758;};const a902_0xf3972d=a902_0x10da;'use strict';const {DataTypes}=require('sequelize'),attributes={'name':{'type':DataTypes[a902_0xf3972d(0x170)],'allowNull':![],'unique':a902_0xf3972d(0x192),'validate':{'notEmpty':!![],'is':/^[A-Za-z0-9._]+$/i}},'type':{'type':DataTypes[a902_0xf3972d(0x18b)](a902_0xf3972d(0x175),a902_0xf3972d(0x17d)),'allowNull':![],'defaultValue':a902_0xf3972d(0x175)},'musiconhold':{'type':DataTypes[a902_0xf3972d(0x170)],'defaultValue':a902_0xf3972d(0x15f)},'announce':{'type':DataTypes[a902_0xf3972d(0x170)],'defaultValue':''},'strategy':{'type':DataTypes[a902_0xf3972d(0x18b)]('rr','ringall',a902_0xf3972d(0x150),a902_0xf3972d(0x18d),a902_0xf3972d(0x161),a902_0xf3972d(0x169),a902_0xf3972d(0x158),'wrandom','rrordered'),'allowNull':![],'defaultValue':a902_0xf3972d(0x182),'set':function(_0x5f01df){const _0x2768e4=a902_0xf3972d;this[_0x2768e4(0x16b)](_0x2768e4(0x156),_0x5f01df?_0x5f01df:_0x2768e4(0x169));},'get':function(){const _0x4652cb=a902_0xf3972d,_0x4771da=this[_0x4652cb(0x186)]('type'),_0x4cfe81=this['getDataValue'](_0x4652cb(0x159)),_0x115aea=this[_0x4652cb(0x186)](_0x4652cb(0x156));if(_0x4771da==='inbound')return _0x115aea;if(_0x4cfe81===_0x4652cb(0x193)&&_0x115aea===_0x4652cb(0x169)||_0x4cfe81===_0x4652cb(0x193)&&_0x115aea===_0x4652cb(0x196))return _0x115aea;if(_0x4cfe81===_0x4652cb(0x191)||_0x4cfe81==='predictive'||_0x4cfe81===_0x4652cb(0x188))return _0x115aea;return null;}},'servicelevel':{'type':DataTypes[a902_0xf3972d(0x17f)]({'length':0xb}),'defaultValue':0x0},'context':{'type':DataTypes[a902_0xf3972d(0x170)],'defaultValue':null},'penaltymemberslimit':{'type':DataTypes[a902_0xf3972d(0x17f)]({'length':0xb})},'timeout':{'type':DataTypes['INTEGER']({'length':0xb}),'defaultValue':0xf},'retry':{'type':DataTypes[a902_0xf3972d(0x17f)]({'length':0xb}),'defaultValue':0x2},'timeoutpriority':{'type':DataTypes[a902_0xf3972d(0x170)]},'weight':{'type':DataTypes['INTEGER']({'length':0xb}),'allowNull':!![],'defaultValue':0x0},'wrapuptime':{'type':DataTypes[a902_0xf3972d(0x17f)]({'length':0xb}),'defaultValue':0x0},'autofill':{'type':DataTypes['ENUM']('yes','no'),'defaultValue':a902_0xf3972d(0x185)},'autopause':{'type':DataTypes[a902_0xf3972d(0x18b)]('yes','no',a902_0xf3972d(0x166)),'defaultValue':'no'},'autopausedelay':{'type':DataTypes[a902_0xf3972d(0x17f)]({'length':0xb})},'autopausebusy':{'type':DataTypes[a902_0xf3972d(0x18b)](a902_0xf3972d(0x185),'no'),'defaultValue':'no'},'autopauseunavail':{'type':DataTypes[a902_0xf3972d(0x18b)](a902_0xf3972d(0x185),'no'),'defaultValue':'no'},'maxlen':{'type':DataTypes[a902_0xf3972d(0x17f)]({'length':0xb}),'defaultValue':0x0},'setinterfacevar':{'type':DataTypes[a902_0xf3972d(0x18b)]('yes','no'),'defaultValue':'no'},'setqueueentryvar':{'type':DataTypes[a902_0xf3972d(0x18b)](a902_0xf3972d(0x185),'no'),'defautValue':'no'},'setqueuevar':{'type':DataTypes['ENUM'](a902_0xf3972d(0x185),'no'),'defaultValue':'no'},'eventmemberstatus':{'type':DataTypes[a902_0xf3972d(0x18b)](a902_0xf3972d(0x185),'no'),'defaultValue':'no'},'membermacro':{'type':DataTypes[a902_0xf3972d(0x170)],'allowNull':!![]},'membergosub':{'type':DataTypes[a902_0xf3972d(0x170)],'allowNull':!![]},'announce_frequency':{'type':DataTypes[a902_0xf3972d(0x17f)]({'length':0xb}),'defaultValue':0x0},'min_announce_frequency':{'type':DataTypes['INTEGER']({'length':0xb}),'defaultValue':0x0},'periodic_announce_frequency':{'type':DataTypes[a902_0xf3972d(0x17f)]({'length':0xb}),'defaultValue':0x0},'random_periodic_announce':{'type':DataTypes[a902_0xf3972d(0x18b)]('yes','no'),'defaultValue':'no'},'relative_periodic_announce':{'type':DataTypes['ENUM'](a902_0xf3972d(0x185),'no'),'defaultValue':a902_0xf3972d(0x185)},'announce_holdtime':{'type':DataTypes[a902_0xf3972d(0x18b)]('yes','no',a902_0xf3972d(0x184)),'defaultValue':'no'},'announce_position':{'type':DataTypes[a902_0xf3972d(0x170)],'defaultValue':'no'},'announce_to_first_user':{'type':DataTypes['ENUM'](a902_0xf3972d(0x185),'no')},'announce_position_limit':{'type':DataTypes[a902_0xf3972d(0x17f)]({'length':0xb})},'announce_round_seconds':{'type':DataTypes[a902_0xf3972d(0x18b)]('0','5','10','15','20','30'),'defaultValue':'0'},'monitor_format':{'type':DataTypes['STRING'],'defaultValue':''},'monitor_type':{'type':DataTypes[a902_0xf3972d(0x170)]},'queue_youarenext':{'type':DataTypes[a902_0xf3972d(0x170)],'defaultValue':null},'queue_thereare':{'type':DataTypes[a902_0xf3972d(0x170)],'defaultValue':null},'queue_callswaiting':{'type':DataTypes[a902_0xf3972d(0x170)],'defaultValue':null},'queue_holdtime':{'type':DataTypes[a902_0xf3972d(0x170)],'defaultValue':null},'queue_minute':{'type':DataTypes[a902_0xf3972d(0x170)],'allowNull':!![],'defaultValue':null},'queue_minutes':{'type':DataTypes[a902_0xf3972d(0x170)],'defaultValue':null},'queue_seconds':{'type':DataTypes[a902_0xf3972d(0x170)],'defaultValue':null},'queue_thankyou':{'type':DataTypes[a902_0xf3972d(0x170)],'defaultValue':null},'queue_reporthold':{'type':DataTypes[a902_0xf3972d(0x170)]},'queue_quantity1':{'type':DataTypes[a902_0xf3972d(0x170)]},'queue_quantity2':{'type':DataTypes[a902_0xf3972d(0x170)]},'queue_periodic_announce':{'type':DataTypes[a902_0xf3972d(0x170)]},'queue_less_than':{'type':DataTypes[a902_0xf3972d(0x170)]},'periodic_announce':{'type':DataTypes['TEXT'],'set':function(_0xa90cf){const _0x115b88=a902_0xf3972d;this[_0x115b88(0x16b)](_0x115b88(0x14c),_0xa90cf?_0xa90cf[_0x115b88(0x167)](','):[]);},'get':function(){const _0xeb08dc=a902_0xf3972d;return this[_0xeb08dc(0x186)](_0xeb08dc(0x14c))?this[_0xeb08dc(0x186)](_0xeb08dc(0x14c))['split'](','):[];}},'joinempty':{'type':DataTypes[a902_0xf3972d(0x170)],'defaultValue':a902_0xf3972d(0x185),'set':function(_0x2105d3){const _0x549616=a902_0xf3972d;this[_0x549616(0x16b)](_0x549616(0x163),_0x2105d3?_0x2105d3[_0x549616(0x167)](','):undefined);},'get':function(){const _0x49206b=a902_0xf3972d;return this[_0x49206b(0x186)](_0x49206b(0x163))?this[_0x49206b(0x186)](_0x49206b(0x163))[_0x49206b(0x151)](','):undefined;}},'leavewhenempty':{'type':DataTypes[a902_0xf3972d(0x170)],'defaultValue':'no','set':function(_0x137af3){const _0x1824a5=a902_0xf3972d;this[_0x1824a5(0x16b)]('leavewhenempty',_0x137af3?_0x137af3[_0x1824a5(0x167)](','):undefined);},'get':function(){const _0x4f067d=a902_0xf3972d;return this['getDataValue']('leavewhenempty')?this[_0x4f067d(0x186)](_0x4f067d(0x177))[_0x4f067d(0x151)](','):undefined;}},'reportholdtime':{'type':DataTypes['ENUM'](a902_0xf3972d(0x185),'no'),'defaultValue':'no'},'ringinuse':{'type':DataTypes[a902_0xf3972d(0x18b)](a902_0xf3972d(0x185),'no'),'defaultValue':'no'},'memberdelay':{'type':DataTypes[a902_0xf3972d(0x17f)]({'length':0xb}),'defaultValue':0x0},'timeoutrestart':{'type':DataTypes[a902_0xf3972d(0x18b)](a902_0xf3972d(0x185),'no'),'defaultValue':'no'},'defaultrule':{'type':DataTypes[a902_0xf3972d(0x170)]},'description':{'type':DataTypes[a902_0xf3972d(0x170)]},'acw':{'type':DataTypes[a902_0xf3972d(0x176)],'defaultValue':0x0,'set':function(_0x5679d7){const _0xef98e4=a902_0xf3972d;this[_0xef98e4(0x16b)]('acw',_0x5679d7),_0x5679d7&&(this[_0xef98e4(0x186)]('wrapuptime')<0x2&&this[_0xef98e4(0x16b)]('wrapuptime',0x2));}},'acwTimeout':{'type':DataTypes[a902_0xf3972d(0x17f)]({'length':0xb}),'defaultValue':0xa},'dialActive':{'type':DataTypes[a902_0xf3972d(0x176)],'defaultValue':0x0,'comment':'Active/Disactive\x20Campaign'},'dialMethod':{'type':DataTypes['ENUM'](a902_0xf3972d(0x154),'progressive','power',a902_0xf3972d(0x15d),a902_0xf3972d(0x193)),'defaultValue':a902_0xf3972d(0x191),'comment':a902_0xf3972d(0x157)},'dialLimitChannel':{'type':DataTypes['INTEGER']({'length':0x4})[a902_0xf3972d(0x18a)],'defaultValue':0x0,'validate':{'min':0x0,'max':0x270f},'comment':a902_0xf3972d(0x178)},'dialLimitQueue':{'type':DataTypes[a902_0xf3972d(0x17f)]({'length':0x4})['UNSIGNED'],'defaultValue':0x0,'validate':{'min':0x0,'max':0x270f},'comment':a902_0xf3972d(0x194)},'dialPowerLevel':{'type':DataTypes[a902_0xf3972d(0x17e)]({'length':0x2})['UNSIGNED'],'defaultValue':0x1,'validate':{'min':0x1,'max':0xa},'comment':a902_0xf3972d(0x16f)},'dialPredictiveOptimization':{'type':DataTypes[a902_0xf3972d(0x18b)]('agentBusyFactor',a902_0xf3972d(0x14f)),'defaultValue':a902_0xf3972d(0x14f),'comment':'Only\x20for\x20predictive\x20method.'},'dialPredictiveOptimizationPercentage':{'type':DataTypes[a902_0xf3972d(0x17e)]({'length':0x2})['UNSIGNED'],'defaultValue':0x3,'validate':{'min':0x1,'max':0x5f},'comment':a902_0xf3972d(0x147)},'dialPredictiveInterval':{'type':DataTypes['INTEGER']({'length':0x3})['UNSIGNED'],'defaultValue':0xa,'validate':{'min':0x5,'max':0x1e},'comment':a902_0xf3972d(0x14b)},'dialOriginateCallerIdName':{'type':DataTypes[a902_0xf3972d(0x170)]},'dialOriginateCallerIdNumber':{'type':DataTypes[a902_0xf3972d(0x170)]},'dialOriginateTimeout':{'type':DataTypes['INTEGER']({'length':0x3})[a902_0xf3972d(0x18a)],'defaultValue':0x1e,'validate':{'min':0x1,'max':0x3e7},'comment':a902_0xf3972d(0x15a)},'dialQueueOptions':{'type':DataTypes[a902_0xf3972d(0x170)],'defaultValue':a902_0xf3972d(0x16c),'comment':a902_0xf3972d(0x17b)},'dialQueueTimeout':{'type':DataTypes[a902_0xf3972d(0x17f)]({'length':0x3})[a902_0xf3972d(0x18a)],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':a902_0xf3972d(0x187)},'dialQueueProject':{'type':DataTypes[a902_0xf3972d(0x170)],'comment':a902_0xf3972d(0x155)},'dialCongestionMaxRetry':{'type':DataTypes['INTEGER']({'length':0x3})[a902_0xf3972d(0x18a)],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':a902_0xf3972d(0x16d)},'dialCongestionRetryFrequency':{'type':DataTypes[a902_0xf3972d(0x17f)]({'length':0x5})[a902_0xf3972d(0x18a)],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':a902_0xf3972d(0x195)},'dialBusyMaxRetry':{'type':DataTypes[a902_0xf3972d(0x17f)]({'length':0x3})[a902_0xf3972d(0x18a)],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':'#Busy\x20Retry\x20(min:1,\x20max:999)'},'dialBusyRetryFrequency':{'type':DataTypes[a902_0xf3972d(0x17f)]({'length':0x5})['UNSIGNED'],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':a902_0xf3972d(0x16e)},'dialNoAnswerMaxRetry':{'type':DataTypes[a902_0xf3972d(0x17f)]({'length':0x3})[a902_0xf3972d(0x18a)],'defaultValue':0x3,'comment':'#NoAnswer\x20Retry\x20(min:1,\x20max:999)'},'dialNoAnswerRetryFrequency':{'type':DataTypes[a902_0xf3972d(0x17f)]({'length':0x5})[a902_0xf3972d(0x18a)],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':'NoAnswer\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)'},'dialGlobalMaxRetry':{'type':DataTypes[a902_0xf3972d(0x17f)]({'length':0x3})[a902_0xf3972d(0x18a)],'validate':{'min':0x1,'max':0x3e7},'defaultValue':0x4,'comment':a902_0xf3972d(0x15b)},'dialTimezone':{'type':DataTypes['STRING'],'defaultValue':null},'dialGlobalInterval':{'type':DataTypes['STRING'],'defaultValue':a902_0xf3972d(0x164)},'dialPrefix':{'type':DataTypes[a902_0xf3972d(0x170)],'defaultValue':null},'dialCheckDuplicateType':{'type':DataTypes['ENUM'](a902_0xf3972d(0x18c),a902_0xf3972d(0x172),'onlyIfOpen'),'defaultValue':'always'},'dialAMDActive':{'type':DataTypes['BOOLEAN'],'defaultValue':0x0,'comment':a902_0xf3972d(0x165)},'dialAMDInitialSilence':{'type':DataTypes['INTEGER']({'length':0x9})[a902_0xf3972d(0x18a)],'defaultValue':0x9c4,'validate':{'min':0x0},'comment':'#AMD\x20Initial\x20Silence'},'dialAMDGreeting':{'type':DataTypes[a902_0xf3972d(0x17f)]({'length':0x9})['UNSIGNED'],'defaultValue':0x5dc,'validate':{'min':0x0},'comment':a902_0xf3972d(0x190)},'dialAMDAfterGreetingSilence':{'type':DataTypes[a902_0xf3972d(0x17f)]({'length':0x9})[a902_0xf3972d(0x18a)],'defaultValue':0x320,'validate':{'min':0x0},'comment':a902_0xf3972d(0x160)},'dialAMDTotalAnalysisTime':{'type':DataTypes[a902_0xf3972d(0x17f)]({'length':0x9})[a902_0xf3972d(0x18a)],'defaultValue':0x1388,'validate':{'min':0x0},'comment':a902_0xf3972d(0x168)},'dialAMDMinWordLength':{'type':DataTypes[a902_0xf3972d(0x17f)]({'length':0x9})[a902_0xf3972d(0x18a)],'defaultValue':0x64,'validate':{'min':0x0},'comment':a902_0xf3972d(0x14d)},'dialAMDBetweenWordsSilence':{'type':DataTypes[a902_0xf3972d(0x17f)]({'length':0x9})[a902_0xf3972d(0x18a)],'defaultValue':0x32,'validate':{'min':0x0},'comment':a902_0xf3972d(0x16a)},'dialAMDMaximumNumberOfWords':{'type':DataTypes['INTEGER']({'length':0x9})[a902_0xf3972d(0x18a)],'defaultValue':0x3,'validate':{'min':0x0},'comment':a902_0xf3972d(0x179)},'dialAMDSilenceThreshold':{'type':DataTypes[a902_0xf3972d(0x17f)]({'length':0x5})[a902_0xf3972d(0x18a)],'validate':{'min':0x0,'max':0x7fff},'defaultValue':0x100,'comment':'#AMD\x20Silence\x20Threshold\x20(min:0,\x20max:32767)'},'dialAMDMaximumWordLength':{'type':DataTypes[a902_0xf3972d(0x17f)]({'length':0x9})[a902_0xf3972d(0x18a)],'defaultValue':0x1388,'validate':{'min':0x0},'comment':a902_0xf3972d(0x174)},'dialRecallMeTimeout':{'type':DataTypes[a902_0xf3972d(0x17f)]({'length':0x5})[a902_0xf3972d(0x18a)],'validate':{'min':0x1},'defaultValue':0x1e,'comment':a902_0xf3972d(0x162)},'dialRecallInQueue':{'type':DataTypes[a902_0xf3972d(0x176)],'defaultValue':0x0,'comment':a902_0xf3972d(0x14e)},'dialOrderByScheduledAt':{'type':DataTypes[a902_0xf3972d(0x18b)](a902_0xf3972d(0x181),'ASC'),'defaultValue':a902_0xf3972d(0x181)},'dialQueueProject2':{'type':DataTypes[a902_0xf3972d(0x170)],'comment':a902_0xf3972d(0x155)},'dialAgiAfterHangupClient':{'type':DataTypes['BOOLEAN'],'defaultValue':![]},'dialAgiAfterHangupAgent':{'type':DataTypes['BOOLEAN'],'defaultValue':![]},'dialRandomLastDigitCallerIdNumber':{'type':DataTypes['INTEGER']({'length':0x3})[a902_0xf3972d(0x18a)],'validate':{'min':0x0,'max':0xf},'defaultValue':0x0,'comment':a902_0xf3972d(0x173)},'dialCutDigit':{'type':DataTypes['INTEGER']({'length':0x3})[a902_0xf3972d(0x18a)],'validate':{'min':0x0,'max':0xf},'defaultValue':0x0,'comment':a902_0xf3972d(0x17a)},'dialNoSuchNumberMaxRetry':{'type':DataTypes['INTEGER']({'length':0x3})[a902_0xf3972d(0x18a)],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':a902_0xf3972d(0x18f)},'dialNoSuchNumberRetryFrequency':{'type':DataTypes[a902_0xf3972d(0x17f)]({'length':0x5})[a902_0xf3972d(0x18a)],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':a902_0xf3972d(0x180)},'dialDropMaxRetry':{'type':DataTypes[a902_0xf3972d(0x17f)]({'length':0x3})[a902_0xf3972d(0x18a)],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':a902_0xf3972d(0x189)},'dialDropRetryFrequency':{'type':DataTypes[a902_0xf3972d(0x17f)]({'length':0x5})[a902_0xf3972d(0x18a)],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':'Drop\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)'},'dialAbandonedMaxRetry':{'type':DataTypes[a902_0xf3972d(0x17f)]({'length':0x3})[a902_0xf3972d(0x18a)],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':a902_0xf3972d(0x171)},'dialAbandonedRetryFrequency':{'type':DataTypes['INTEGER']({'length':0x5})[a902_0xf3972d(0x18a)],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':a902_0xf3972d(0x14a)},'dialMachineMaxRetry':{'type':DataTypes['INTEGER']({'length':0x3})[a902_0xf3972d(0x18a)],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':a902_0xf3972d(0x18e)},'dialMachineRetryFrequency':{'type':DataTypes['INTEGER']({'length':0x5})['UNSIGNED'],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':a902_0xf3972d(0x153)},'dialAgentRejectMaxRetry':{'type':DataTypes[a902_0xf3972d(0x17f)]({'length':0x3})[a902_0xf3972d(0x18a)],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':a902_0xf3972d(0x183)},'dialAgentRejectRetryFrequency':{'type':DataTypes[a902_0xf3972d(0x17f)]({'length':0x5})[a902_0xf3972d(0x18a)],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':a902_0xf3972d(0x17c)},'mandatoryDispositionPauseId':{'type':DataTypes[a902_0xf3972d(0x17f)],'allowNull':!![],'comment':a902_0xf3972d(0x15c)},'mandatoryDisposition':{'type':DataTypes['BOOLEAN'],'defaultValue':![],'comment':a902_0xf3972d(0x148),'set':function(_0x5d0be4){const _0x385cd4=a902_0xf3972d;if(!_0x5d0be4)this[_0x385cd4(0x16b)]('mandatoryDispositionPauseId',null);this[_0x385cd4(0x16b)](_0x385cd4(0x15e),_0x5d0be4);}},'dialPredictiveIntervalMaxThreshold':{'type':DataTypes[a902_0xf3972d(0x17f)]({'length':0x3})[a902_0xf3972d(0x18a)],'defaultValue':0x14,'validate':{'min':0x1,'max':0x64}},'dialPredictiveIntervalMinThreshold':{'type':DataTypes[a902_0xf3972d(0x17f)]({'length':0x3})['UNSIGNED'],'defaultValue':0xa,'validate':{'min':0x1,'max':0x64}}};module[a902_0xf3972d(0x149)][a902_0xf3972d(0x152)]=attributes; \ No newline at end of file diff --git a/server/api/voiceQueue/voiceQueue.controller.js b/server/api/voiceQueue/voiceQueue.controller.js index b26463b..6b0ccae 100644 --- a/server/api/voiceQueue/voiceQueue.controller.js +++ b/server/api/voiceQueue/voiceQueue.controller.js @@ -1 +1 @@ -const a753_0x5946=['autoAssociation','all','params','clone','phone\x20NOT\x20IN\x20(?)','../../components/parsers/qs','UserVoiceQueue','VoiceQueue','options','updatedAt','CmHopperFinal','fromQuery','Content-Range','set','forEach','findOrCreate','body','lodash','json','includeAll','COALESCE(calleridnum,\x27\x27)','key','Team','getLists','phone','end','includes','status','CmHopperHistory','into','merge','role','phone\x20IS\x20NOT\x20NULL','order','fieldName','../../config/logger','index','ids','getAgents','teams','ignore','undefined','sequelize','ut.UserId\x20=\x20?','error','CmList','inbound','offset','type','UserVoiceQueueRt','voicePause','rows','userVoiceQueue:remove','getHopperHistories','omit','keys','dialCheckDuplicateType','map','model','createdAt','Agents','length','scheduledAt','getBlackLists','where','addBlackLists','isNil','value','../../rediscache','limit','removeTeams','VoiceQueueId\x20=\x20?','count','transaction','format','getMembers','find','ListId\x20=\x20?','query','always','VoiceQueues','UserProfileResource','every','CmHopper','deletedAt\x20IS\x20NULL','QueueCampaigns','getHoppers','field','intersection','ut.TeamId\x20=\x20tq.TeamId','nolimit','VoiceQueueId','emit','getTeams','addTeams','UserProfileSection','flatMap','online','findOne','isEmpty','destroy','squel','from','rawAttributes','name','select','create','CmListId','cm_hopper_black','send','push','include','interface','catch','ListId','compact','cm_contacts','attributes','./voiceQueue.socket','CmHopperBlack','COALESCE(phone,\x27\x27)','insert','SIP/%s','join','cm_hopper','penalty','union','NOW()','addLists','removeLists','get','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','upsert','filters','team_has_voice_queues','like','user','VIRTUAL','api','addAgents','outbound','fields','findAll','Unable\x20to\x20retrieve\x20the\x20current\x20user','sendStatus','removeBlackLists','User','toString','filter','then','sort','ContactId','userProfileId','SELECT','pick','stack','removeAgents'];(function(_0x68aa85,_0x5946aa){const _0x3b02a4=function(_0x348523){while(--_0x348523){_0x68aa85['push'](_0x68aa85['shift']());}};_0x3b02a4(++_0x5946aa);}(a753_0x5946,0xb0));const a753_0x3b02=function(_0x68aa85,_0x5946aa){_0x68aa85=_0x68aa85-0x0;let _0x3b02a4=a753_0x5946[_0x68aa85];return _0x3b02a4;};const _0x1a6ecf=a753_0x3b02;'use strict';const util=require('util'),_=require(_0x1a6ecf('0x9b')),squel=require(_0x1a6ecf('0x52')),qs=require(_0x1a6ecf('0x8f')),logger=require(_0x1a6ecf('0x10'))(_0x1a6ecf('0x77')),{getSocket}=require(_0x1a6ecf('0x31')),socket=getSocket(),db=require('../../mysqldb')['db'],{Op,QueryTypes}=require('sequelize');require(_0x1a6ecf('0x63'))['register'](socket);function respondWithStatusCode(_0x348523,_0x3fa155){return _0x3fa155=_0x3fa155||0xcc,function(_0x310deb){const _0x433c81=a753_0x3b02;if(_0x310deb)return _0x348523[_0x433c81('0x7d')](_0x3fa155);return _0x348523['status'](_0x3fa155)[_0x433c81('0x6')]();};}function respondWithResult(_0x3952f3,_0x39d0ed){return _0x39d0ed=_0x39d0ed||0xc8,function(_0x58723a){const _0x392ae9=a753_0x3b02;if(_0x58723a)return _0x3952f3['status'](_0x39d0ed)[_0x392ae9('0x9c')](_0x58723a);};}function respondWithFilteredResult(_0x207060,_0x2d2847){return function(_0x1b9ec4){const _0x18039a=a753_0x3b02;if(_0x1b9ec4){const _0x1d62f9=_0x1b9ec4[_0x18039a('0x35')],_0x686cdb=_0x2d2847[_0x18039a('0x1c')];let _0x85e5ab=_0x2d2847['offset']+_0x2d2847['limit'],_0xd5550f;return _0x85e5ab>=_0x1d62f9?(_0x85e5ab=_0x1d62f9,_0xd5550f=0xc8):_0xd5550f=0xce,_0x207060['status'](_0xd5550f),_0x207060[_0x18039a('0x97')](_0x18039a('0x96'),_0x686cdb+'-'+_0x85e5ab+'/'+_0x1d62f9)[_0x18039a('0x9c')](_0x1b9ec4);}return null;};}function saveUpdates(_0x1c35e6){return function(_0x1f4150){const _0x500b14=a753_0x3b02;if(_0x1f4150)return _0x1f4150['update'](_0x1c35e6)[_0x500b14('0x82')](function(_0x5c995b){return _0x5c995b;});return null;};}function removeEntity(_0x382bac){return function(_0x56fe25){const _0x3fbe3d=a753_0x3b02;if(_0x56fe25)return _0x56fe25[_0x3fbe3d('0x51')]()[_0x3fbe3d('0x82')](function(){const _0x213ecf=_0x3fbe3d,_0x14a97d=_0x56fe25[_0x213ecf('0x6f')]({'plain':!![]}),_0x34279e=[{'name':_0x213ecf('0x3d'),'value':_0x213ecf('0x1b'),'ignore':![]},{'name':_0x213ecf('0x42'),'value':'outbound','ignore':![]}],_0x47a8cb=_(_0x34279e)[_0x213ecf('0x81')](_0x213ecf('0x15'))[_0x213ecf('0x26')](_0x213ecf('0x30'))['value']();if(_[_0x213ecf('0x7')](_0x47a8cb,_0x14a97d[_0x213ecf('0x1d')]))return;const _0x1bd39a=_[_0x213ecf('0x39')](_0x34279e,[_0x213ecf('0x30'),_0x14a97d[_0x213ecf('0x1d')]])[_0x213ecf('0x55')];return db['UserProfileResource'][_0x213ecf('0x51')]({'where':{'type':_0x1bd39a,'resourceId':_0x14a97d['id']}})[_0x213ecf('0x82')](function(){return _0x56fe25;});})[_0x3fbe3d('0x82')](function(){const _0xdd9247=_0x3fbe3d;_0x382bac[_0xdd9247('0x8')](0xcc)[_0xdd9247('0x6')]();});};}function handleEntityNotFound(_0x15fe6b){return function(_0x2ebfa0){const _0x43147f=a753_0x3b02;return!_0x2ebfa0&&_0x15fe6b[_0x43147f('0x7d')](0x194),_0x2ebfa0;};}function handleError(_0x51c83a,_0x2efc7a){return _0x2efc7a=_0x2efc7a||0x1f4,function(_0x84479c){const _0x3a7880=a753_0x3b02;logger[_0x3a7880('0x19')](_0x84479c[_0x3a7880('0x88')]),_0x84479c[_0x3a7880('0x55')]&&delete _0x84479c['name'],_0x51c83a['status'](_0x2efc7a)[_0x3a7880('0x5a')](_0x84479c);};}exports[_0x1a6ecf('0x11')]=function(_0x494927,_0x169387){const _0x1a7d26=_0x1a6ecf;let _0x49d8aa={};const _0x440960={},_0x38f56a={'count':0x0,'rows':[]},_0x373d34=_[_0x1a7d26('0x26')](db[_0x1a7d26('0x91')][_0x1a7d26('0x54')],function(_0x1bca3d){const _0x535c1e=_0x1a7d26;return{'name':_0x1bca3d[_0x535c1e('0xf')],'type':_0x1bca3d[_0x535c1e('0x1d')][_0x535c1e('0x2')]};});_0x440960[_0x1a7d26('0x27')]=_['map'](_0x373d34,_0x1a7d26('0x55')),_0x440960[_0x1a7d26('0x3b')]=_[_0x1a7d26('0x24')](_0x494927['query']),_0x440960[_0x1a7d26('0x72')]=_[_0x1a7d26('0x45')](_0x440960[_0x1a7d26('0x27')],_0x440960[_0x1a7d26('0x3b')]),_0x49d8aa[_0x1a7d26('0x62')]=_[_0x1a7d26('0x45')](_0x440960[_0x1a7d26('0x27')],qs['fields'](_0x494927['query']['fields'])),_0x49d8aa[_0x1a7d26('0x62')]=_0x49d8aa['attributes'][_0x1a7d26('0x2a')]?_0x49d8aa[_0x1a7d26('0x62')]:_0x440960[_0x1a7d26('0x27')];typeof _0x494927[_0x1a7d26('0x3b')][_0x1a7d26('0x47')]===_0x1a7d26('0x16')&&(_0x49d8aa[_0x1a7d26('0x32')]=qs[_0x1a7d26('0x32')](_0x494927[_0x1a7d26('0x3b')][_0x1a7d26('0x32')]),_0x49d8aa[_0x1a7d26('0x1c')]=qs[_0x1a7d26('0x1c')](_0x494927[_0x1a7d26('0x3b')][_0x1a7d26('0x1c')]));_0x49d8aa[_0x1a7d26('0xe')]=qs[_0x1a7d26('0x83')](_0x494927['query'][_0x1a7d26('0x83')]),_0x49d8aa[_0x1a7d26('0x2d')]=qs['filters'](_[_0x1a7d26('0x87')](_0x494927[_0x1a7d26('0x3b')],_0x440960[_0x1a7d26('0x72')]),_0x373d34);_0x494927[_0x1a7d26('0x3b')][_0x1a7d26('0x81')]&&(_0x49d8aa[_0x1a7d26('0x2d')]=_[_0x1a7d26('0xb')](_0x49d8aa[_0x1a7d26('0x2d')],{[Op['or']]:_['map'](_0x373d34,function(_0x4bffac){const _0x214f99=_0x1a7d26;if(_0x4bffac[_0x214f99('0x1d')]!==_0x214f99('0x76')){const _0x42529b={};return _0x42529b[_0x4bffac[_0x214f99('0x55')]]={[Op[_0x214f99('0x74')]]:'%'+_0x494927['query'][_0x214f99('0x81')]+'%'},_0x42529b;}})}));_0x49d8aa=_[_0x1a7d26('0xb')]({},_0x49d8aa,_0x494927[_0x1a7d26('0x92')]);const _0xbe050d={'where':_0x49d8aa['where']};return db[_0x1a7d26('0x91')][_0x1a7d26('0x35')](_0xbe050d)[_0x1a7d26('0x82')](function(_0x36c157){const _0x2b26a7=_0x1a7d26;return _0x38f56a[_0x2b26a7('0x35')]=_0x36c157,_0x494927[_0x2b26a7('0x3b')]['includeAll']&&(_0x49d8aa[_0x2b26a7('0x5c')]=[{'all':!![]}]),db[_0x2b26a7('0x91')][_0x2b26a7('0x7b')](_0x49d8aa);})[_0x1a7d26('0x82')](function(_0xf2c01d){const _0x3ce952=_0x1a7d26;return _0x38f56a[_0x3ce952('0x20')]=_0xf2c01d,_0x38f56a;})['then'](respondWithFilteredResult(_0x169387,_0x49d8aa))[_0x1a7d26('0x5e')](handleError(_0x169387,null));},exports['show']=function(_0x205aeb,_0x334ce6){const _0x1cc011=_0x1a6ecf;let _0x587f33={'raw':![],'where':{'id':_0x205aeb[_0x1cc011('0x8c')]['id']}};const _0x1522fa={};return _0x1522fa['model']=_[_0x1cc011('0x24')](db['VoiceQueue']['rawAttributes']),_0x1522fa['query']=_['keys'](_0x205aeb['query']),_0x1522fa[_0x1cc011('0x72')]=_['intersection'](_0x1522fa[_0x1cc011('0x27')],_0x1522fa[_0x1cc011('0x3b')]),_0x587f33[_0x1cc011('0x62')]=_['intersection'](_0x1522fa[_0x1cc011('0x27')],qs[_0x1cc011('0x7a')](_0x205aeb['query'][_0x1cc011('0x7a')])),_0x587f33['attributes']=_0x587f33[_0x1cc011('0x62')]['length']?_0x587f33[_0x1cc011('0x62')]:_0x1522fa[_0x1cc011('0x27')],_0x205aeb[_0x1cc011('0x3b')][_0x1cc011('0x0')]&&(_0x587f33[_0x1cc011('0x5c')]=[{'all':!![]}]),_0x587f33=_[_0x1cc011('0xb')]({},_0x587f33,_0x205aeb[_0x1cc011('0x92')]),db['VoiceQueue']['findOne'](_0x587f33)[_0x1cc011('0x82')](handleEntityNotFound(_0x334ce6,null))[_0x1cc011('0x82')](respondWithResult(_0x334ce6,null))[_0x1cc011('0x5e')](handleError(_0x334ce6,null));},exports['create']=function(_0x5ad5b9,_0x59d968){const _0xf3c81a=_0x1a6ecf;return db[_0xf3c81a('0x91')]['create'](_0x5ad5b9[_0xf3c81a('0x9a')],{})[_0xf3c81a('0x82')](function(_0x4c4f2f){const _0x50a6fa=_0xf3c81a,_0x2c2ece=_0x5ad5b9[_0x50a6fa('0x75')]['get']({'plain':!![]});if(!_0x2c2ece)throw new Error(_0x50a6fa('0x7c'));if(_0x2c2ece[_0x50a6fa('0xc')]===_0x50a6fa('0x75')){const _0x37f83f=_0x4c4f2f[_0x50a6fa('0x6f')]({'plain':!![]}),_0x567ae4=[{'name':'VoiceQueues','value':_0x50a6fa('0x1b')},{'name':_0x50a6fa('0x42'),'value':'outbound'}],_0x5be881=_[_0x50a6fa('0x39')](_0x567ae4,[_0x50a6fa('0x30'),_0x37f83f[_0x50a6fa('0x1d')]])[_0x50a6fa('0x55')];return db[_0x50a6fa('0x4c')][_0x50a6fa('0x4f')]({'where':{'name':_0x5be881,'userProfileId':_0x2c2ece[_0x50a6fa('0x85')]},'raw':!![]})[_0x50a6fa('0x82')](function(_0x5c6b50){const _0xe1fafe=_0x50a6fa;return _0x5c6b50&&_0x5c6b50['autoAssociation']===0x0?db[_0xe1fafe('0x3e')][_0xe1fafe('0x57')]({'name':_0x37f83f['name'],'resourceId':_0x37f83f['id'],'type':_0x5c6b50[_0xe1fafe('0x55')],'sectionId':_0x5c6b50['id']},{})[_0xe1fafe('0x82')](function(){return _0x4c4f2f;}):_0x4c4f2f;})[_0x50a6fa('0x5e')](function(_0x5111d2){const _0x4277f7=_0x50a6fa;logger[_0x4277f7('0x19')](_0x4277f7('0x70'),_0x5111d2);throw _0x5111d2;});}return _0x4c4f2f;})[_0xf3c81a('0x82')](respondWithResult(_0x59d968,0xc9))[_0xf3c81a('0x5e')](handleError(_0x59d968,null));},exports[_0x1a6ecf('0x8d')]=function(_0x545bf9,_0x34413e){const _0x1a44f8=_0x1a6ecf;let _0x179545={'where':{'id':_0x545bf9[_0x1a44f8('0x8c')]['id']}};const _0x21b325={};return _0x21b325[_0x1a44f8('0x27')]=_[_0x1a44f8('0x24')](db[_0x1a44f8('0x91')][_0x1a44f8('0x54')]),_0x179545[_0x1a44f8('0x62')]=_[_0x1a44f8('0x45')](_0x21b325['model'],qs[_0x1a44f8('0x7a')](_0x545bf9[_0x1a44f8('0x3b')][_0x1a44f8('0x7a')])),_0x179545[_0x1a44f8('0x62')]=_0x179545[_0x1a44f8('0x62')][_0x1a44f8('0x2a')]?_0x179545['attributes']:_0x21b325['model'],_0x545bf9[_0x1a44f8('0x3b')][_0x1a44f8('0x0')]&&(_0x179545['include']=[{'all':!![]}]),_0x179545=_['merge']({},_0x179545,_0x545bf9['options']),db[_0x1a44f8('0x91')]['findOne'](_0x179545)['then'](handleEntityNotFound(_0x34413e,null))[_0x1a44f8('0x82')](function(_0x2ce5e0){const _0x41c9d9=_0x1a44f8;if(_0x2ce5e0){let _0xcdd7=_0x2ce5e0['get']({'plain':!![]});return _0xcdd7=qs[_0x41c9d9('0x23')](_0xcdd7,['id',_0x41c9d9('0x28'),_0x41c9d9('0x93')]),_0x545bf9[_0x41c9d9('0x9a')]=_[_0x41c9d9('0x23')](_0x545bf9['body'],['id',_0x41c9d9('0x28'),'updatedAt']),db[_0x41c9d9('0x91')][_0x41c9d9('0x57')](_[_0x41c9d9('0xb')](_0xcdd7,_0x545bf9[_0x41c9d9('0x9a')]),{'include':_0x545bf9[_0x41c9d9('0x3b')][_0x41c9d9('0x0')]?[{'all':!![]}]:undefined})[_0x41c9d9('0x82')](function(_0x59e7c9){const _0x25b12e=_0x41c9d9,_0x4ad213=_0x545bf9[_0x25b12e('0x75')][_0x25b12e('0x6f')]({'plain':!![]});if(!_0x4ad213)throw new Error(_0x25b12e('0x7c'));if(_0x4ad213[_0x25b12e('0xc')]===_0x25b12e('0x75')){const _0x30a936=_0x59e7c9[_0x25b12e('0x6f')]({'plain':!![]}),_0xf6324a=[{'name':_0x25b12e('0x3d'),'value':'inbound'},{'name':'QueueCampaigns','value':_0x25b12e('0x79')}],_0xdc6bc9=_[_0x25b12e('0x39')](_0xf6324a,['value',_0x30a936['type']])[_0x25b12e('0x55')];return db['UserProfileSection'][_0x25b12e('0x4f')]({'where':{'name':_0xdc6bc9,'userProfileId':_0x4ad213[_0x25b12e('0x85')]},'raw':!![]})[_0x25b12e('0x82')](function(_0x2d8baf){const _0x3e19e5=_0x25b12e;return _0x2d8baf&&_0x2d8baf[_0x3e19e5('0x8a')]===0x0?db[_0x3e19e5('0x3e')][_0x3e19e5('0x57')]({'name':_0x30a936[_0x3e19e5('0x55')],'resourceId':_0x30a936['id'],'type':_0x2d8baf[_0x3e19e5('0x55')],'sectionId':_0x2d8baf['id']},{})[_0x3e19e5('0x82')](function(){return _0x59e7c9;}):_0x59e7c9;})['catch'](function(_0xaad38f){const _0x17b437=_0x25b12e;logger[_0x17b437('0x19')]('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0xaad38f);throw _0xaad38f;});}return _0x59e7c9;});}})[_0x1a44f8('0x82')](respondWithResult(_0x34413e,0xc9))[_0x1a44f8('0x5e')](handleError(_0x34413e,null));},exports['update']=function(_0x1c9dac,_0x59cc53){const _0x38c84e=_0x1a6ecf;return _0x1c9dac[_0x38c84e('0x9a')]['id']&&delete _0x1c9dac[_0x38c84e('0x9a')]['id'],db[_0x38c84e('0x91')]['findOne']({'where':{'id':_0x1c9dac[_0x38c84e('0x8c')]['id']}})[_0x38c84e('0x82')](handleEntityNotFound(_0x59cc53,null))[_0x38c84e('0x82')](saveUpdates(_0x1c9dac['body'],null))[_0x38c84e('0x82')](respondWithResult(_0x59cc53,null))[_0x38c84e('0x5e')](handleError(_0x59cc53,null));},exports['destroy']=function(_0x5303a9,_0x52d8e0){const _0x2f6fde=_0x1a6ecf;return db[_0x2f6fde('0x91')]['findOne']({'where':{'id':_0x5303a9[_0x2f6fde('0x8c')]['id']}})[_0x2f6fde('0x82')](handleEntityNotFound(_0x52d8e0,null))[_0x2f6fde('0x82')](removeEntity(_0x52d8e0,null))[_0x2f6fde('0x5e')](handleError(_0x52d8e0,null));},exports[_0x1a6ecf('0x43')]=function(_0x5b2683,_0x203a9b){const _0x1be90e=_0x1a6ecf;let _0x2af2d3={'raw':![],'where':{}};const _0xc3cc5e={},_0x5bb7bc={'count':0x0,'rows':[]};return db[_0x1be90e('0x91')]['findOne']({'where':{'id':_0x5b2683[_0x1be90e('0x8c')]['id']}})[_0x1be90e('0x82')](handleEntityNotFound(_0x203a9b,null))[_0x1be90e('0x82')](function(_0xd65f9e){const _0x7e8e69=_0x1be90e;if(_0xd65f9e)return _0xc3cc5e[_0x7e8e69('0x27')]=_['keys'](db[_0x7e8e69('0x40')][_0x7e8e69('0x54')]),_0xc3cc5e[_0x7e8e69('0x3b')]=_[_0x7e8e69('0x24')](_0x5b2683['query']),_0xc3cc5e['filters']=_[_0x7e8e69('0x45')](_0xc3cc5e[_0x7e8e69('0x27')],_0xc3cc5e['query']),_0x2af2d3[_0x7e8e69('0x62')]=_[_0x7e8e69('0x45')](_0xc3cc5e[_0x7e8e69('0x27')],qs[_0x7e8e69('0x7a')](_0x5b2683[_0x7e8e69('0x3b')][_0x7e8e69('0x7a')])),_0x2af2d3[_0x7e8e69('0x62')]=_0x2af2d3[_0x7e8e69('0x62')][_0x7e8e69('0x2a')]?_0x2af2d3['attributes']:_0xc3cc5e[_0x7e8e69('0x27')],typeof _0x5b2683['query'][_0x7e8e69('0x47')]===_0x7e8e69('0x16')&&(_0x2af2d3[_0x7e8e69('0x32')]=qs[_0x7e8e69('0x32')](_0x5b2683[_0x7e8e69('0x3b')][_0x7e8e69('0x32')]),_0x2af2d3['offset']=qs[_0x7e8e69('0x1c')](_0x5b2683[_0x7e8e69('0x3b')][_0x7e8e69('0x1c')])),_0x2af2d3[_0x7e8e69('0xe')]=qs['sort'](_0x5b2683['query'][_0x7e8e69('0x83')]),_0x2af2d3['where']=qs[_0x7e8e69('0x72')](_[_0x7e8e69('0x87')](_0x5b2683[_0x7e8e69('0x3b')],_0xc3cc5e[_0x7e8e69('0x72')])),_0x2af2d3[_0x7e8e69('0x2d')][_0x7e8e69('0x48')]=_0xd65f9e['id'],_0x5b2683[_0x7e8e69('0x3b')][_0x7e8e69('0x81')]&&(_0x2af2d3['where']=_['merge'](_0x2af2d3['where'],{[Op['or']]:_[_0x7e8e69('0x26')](_0x2af2d3[_0x7e8e69('0x62')],function(_0x57f63e){const _0xbeb52f=_0x7e8e69,_0x33a217={};return _0x33a217[_0x57f63e]={[Op['like']]:'%'+_0x5b2683[_0xbeb52f('0x3b')][_0xbeb52f('0x81')]+'%'},_0x33a217;})})),_0x2af2d3=_[_0x7e8e69('0xb')]({},_0x2af2d3,_0x5b2683[_0x7e8e69('0x92')]),db[_0x7e8e69('0x40')][_0x7e8e69('0x35')]({'where':_0x2af2d3[_0x7e8e69('0x2d')]})[_0x7e8e69('0x82')](function(_0x3f34a2){const _0x35b65a=_0x7e8e69;return _0x5bb7bc[_0x35b65a('0x35')]=_0x3f34a2,_0x5b2683[_0x35b65a('0x3b')]['includeAll']&&(_0x2af2d3['include']=[{'all':!![]}]),db[_0x35b65a('0x40')][_0x35b65a('0x7b')](_0x2af2d3);})[_0x7e8e69('0x82')](function(_0x576cd8){const _0x39c11b=_0x7e8e69;return _0x5bb7bc[_0x39c11b('0x20')]=_0x576cd8,_0x5bb7bc;});})[_0x1be90e('0x82')](respondWithFilteredResult(_0x203a9b,_0x2af2d3))['catch'](handleError(_0x203a9b,null));},exports[_0x1a6ecf('0x22')]=function(_0x1a1936,_0x309c85){const _0x1f4cd0=_0x1a6ecf;let _0x2db06c={'raw':!![],'where':{}};const _0x49f28d={},_0x22d569={'count':0x0,'rows':[]};return db[_0x1f4cd0('0x91')][_0x1f4cd0('0x4f')]({'where':{'id':_0x1a1936[_0x1f4cd0('0x8c')]['id']}})['then'](handleEntityNotFound(_0x309c85,null))[_0x1f4cd0('0x82')](function(_0xdc66c6){const _0x2e18a9=_0x1f4cd0;if(_0xdc66c6)return _0x49f28d[_0x2e18a9('0x27')]=_[_0x2e18a9('0x24')](db['CmHopperHistory'][_0x2e18a9('0x54')]),_0x49f28d[_0x2e18a9('0x3b')]=_[_0x2e18a9('0x24')](_0x1a1936[_0x2e18a9('0x3b')]),_0x49f28d[_0x2e18a9('0x72')]=_['intersection'](_0x49f28d[_0x2e18a9('0x27')],_0x49f28d[_0x2e18a9('0x3b')]),_0x2db06c['attributes']=_[_0x2e18a9('0x45')](_0x49f28d[_0x2e18a9('0x27')],qs[_0x2e18a9('0x7a')](_0x1a1936['query'][_0x2e18a9('0x7a')])),_0x2db06c['attributes']=_0x2db06c[_0x2e18a9('0x62')]['length']?_0x2db06c['attributes']:_0x49f28d[_0x2e18a9('0x27')],typeof _0x1a1936[_0x2e18a9('0x3b')][_0x2e18a9('0x47')]===_0x2e18a9('0x16')&&(_0x2db06c[_0x2e18a9('0x32')]=qs['limit'](_0x1a1936[_0x2e18a9('0x3b')]['limit']),_0x2db06c['offset']=qs['offset'](_0x1a1936[_0x2e18a9('0x3b')][_0x2e18a9('0x1c')])),_0x2db06c[_0x2e18a9('0xe')]=qs[_0x2e18a9('0x83')](_0x1a1936[_0x2e18a9('0x3b')]['sort']),_0x2db06c[_0x2e18a9('0x2d')]=qs[_0x2e18a9('0x72')](_[_0x2e18a9('0x87')](_0x1a1936['query'],_0x49f28d[_0x2e18a9('0x72')])),_0x2db06c[_0x2e18a9('0x2d')][_0x2e18a9('0x48')]=_0xdc66c6['id'],_0x1a1936[_0x2e18a9('0x3b')][_0x2e18a9('0x81')]&&(_0x2db06c[_0x2e18a9('0x2d')]=_[_0x2e18a9('0xb')](_0x2db06c['where'],{[Op['or']]:_[_0x2e18a9('0x26')](_0x2db06c[_0x2e18a9('0x62')],function(_0x22cd09){const _0x42a985=_0x2e18a9,_0x1450fd={};return _0x1450fd[_0x22cd09]={[Op['like']]:'%'+_0x1a1936[_0x42a985('0x3b')][_0x42a985('0x81')]+'%'},_0x1450fd;})})),_0x2db06c=_[_0x2e18a9('0xb')]({},_0x2db06c,_0x1a1936['options']),db[_0x2e18a9('0x9')][_0x2e18a9('0x35')]({'where':_0x2db06c[_0x2e18a9('0x2d')]})[_0x2e18a9('0x82')](function(_0x48d240){const _0xcd9279=_0x2e18a9;return _0x22d569[_0xcd9279('0x35')]=_0x48d240,_0x1a1936[_0xcd9279('0x3b')]['includeAll']&&(_0x2db06c[_0xcd9279('0x5c')]=[{'all':!![]}]),db['CmHopperHistory'][_0xcd9279('0x7b')](_0x2db06c);})[_0x2e18a9('0x82')](function(_0x140014){const _0x468a15=_0x2e18a9;return _0x22d569[_0x468a15('0x20')]=_0x140014,_0x22d569;});})['then'](respondWithFilteredResult(_0x309c85,_0x2db06c))[_0x1f4cd0('0x5e')](handleError(_0x309c85,null));},exports['getHopperFinals']=function(_0x2e4ca0,_0x3a3179){const _0x675139=_0x1a6ecf;let _0x338135={'raw':!![],'where':{}};const _0x56446f={},_0xfcd7e4={'count':0x0,'rows':[]};return db[_0x675139('0x91')][_0x675139('0x4f')]({'where':{'id':_0x2e4ca0[_0x675139('0x8c')]['id']}})[_0x675139('0x82')](handleEntityNotFound(_0x3a3179,null))[_0x675139('0x82')](function(_0x37a3a0){const _0x23a298=_0x675139;if(_0x37a3a0)return _0x56446f['model']=_[_0x23a298('0x24')](db[_0x23a298('0x94')]['rawAttributes']),_0x56446f[_0x23a298('0x3b')]=_[_0x23a298('0x24')](_0x2e4ca0[_0x23a298('0x3b')]),_0x56446f[_0x23a298('0x72')]=_['intersection'](_0x56446f[_0x23a298('0x27')],_0x56446f[_0x23a298('0x3b')]),_0x338135[_0x23a298('0x62')]=_[_0x23a298('0x45')](_0x56446f['model'],qs[_0x23a298('0x7a')](_0x2e4ca0[_0x23a298('0x3b')]['fields'])),_0x338135['attributes']=_0x338135['attributes']['length']?_0x338135[_0x23a298('0x62')]:_0x56446f[_0x23a298('0x27')],typeof _0x2e4ca0[_0x23a298('0x3b')][_0x23a298('0x47')]===_0x23a298('0x16')&&(_0x338135[_0x23a298('0x32')]=qs[_0x23a298('0x32')](_0x2e4ca0[_0x23a298('0x3b')]['limit']),_0x338135['offset']=qs[_0x23a298('0x1c')](_0x2e4ca0[_0x23a298('0x3b')][_0x23a298('0x1c')])),_0x338135[_0x23a298('0xe')]=qs['sort'](_0x2e4ca0[_0x23a298('0x3b')]['sort']),_0x338135[_0x23a298('0x2d')]=qs[_0x23a298('0x72')](_[_0x23a298('0x87')](_0x2e4ca0[_0x23a298('0x3b')],_0x56446f[_0x23a298('0x72')])),_0x338135[_0x23a298('0x2d')][_0x23a298('0x48')]=_0x37a3a0['id'],_0x2e4ca0[_0x23a298('0x3b')]['filter']&&(_0x338135[_0x23a298('0x2d')]=_[_0x23a298('0xb')](_0x338135[_0x23a298('0x2d')],{[Op['or']]:_[_0x23a298('0x26')](_0x338135[_0x23a298('0x62')],function(_0x12ee26){const _0x3d2f64=_0x23a298,_0x530edc={};return _0x530edc[_0x12ee26]={[Op[_0x3d2f64('0x74')]]:'%'+_0x2e4ca0[_0x3d2f64('0x3b')][_0x3d2f64('0x81')]+'%'},_0x530edc;})})),_0x338135=_['merge']({},_0x338135,_0x2e4ca0[_0x23a298('0x92')]),db['CmHopperFinal'][_0x23a298('0x35')]({'where':_0x338135[_0x23a298('0x2d')]})[_0x23a298('0x82')](function(_0x2f1005){const _0xb62866=_0x23a298;return _0xfcd7e4['count']=_0x2f1005,_0x2e4ca0['query']['includeAll']&&(_0x338135['include']=[{'all':!![]}]),db[_0xb62866('0x94')][_0xb62866('0x7b')](_0x338135);})[_0x23a298('0x82')](function(_0x307d79){return _0xfcd7e4['rows']=_0x307d79,_0xfcd7e4;});})[_0x675139('0x82')](respondWithFilteredResult(_0x3a3179,_0x338135))[_0x675139('0x5e')](handleError(_0x3a3179,null));},exports['getHopperBlacks']=function(_0x22ca48,_0x2a4fef){const _0xb68b53=_0x1a6ecf;let _0x257bc7={'raw':!![],'where':{}};const _0xdf995d={},_0x5939d5={'count':0x0,'rows':[]};return db['VoiceQueue'][_0xb68b53('0x4f')]({'where':{'id':_0x22ca48['params']['id']}})[_0xb68b53('0x82')](handleEntityNotFound(_0x2a4fef,null))[_0xb68b53('0x82')](function(_0x3341c5){const _0x5f1aa0=_0xb68b53;if(_0x3341c5)return _0xdf995d[_0x5f1aa0('0x27')]=_[_0x5f1aa0('0x24')](db[_0x5f1aa0('0x64')][_0x5f1aa0('0x54')]),_0xdf995d['query']=_[_0x5f1aa0('0x24')](_0x22ca48['query']),_0xdf995d[_0x5f1aa0('0x72')]=_[_0x5f1aa0('0x45')](_0xdf995d['model'],_0xdf995d[_0x5f1aa0('0x3b')]),_0x257bc7[_0x5f1aa0('0x62')]=_[_0x5f1aa0('0x45')](_0xdf995d['model'],qs[_0x5f1aa0('0x7a')](_0x22ca48['query'][_0x5f1aa0('0x7a')])),_0x257bc7['attributes']=_0x257bc7['attributes'][_0x5f1aa0('0x2a')]?_0x257bc7[_0x5f1aa0('0x62')]:_0xdf995d['model'],typeof _0x22ca48['query'][_0x5f1aa0('0x47')]==='undefined'&&(_0x257bc7[_0x5f1aa0('0x32')]=qs[_0x5f1aa0('0x32')](_0x22ca48[_0x5f1aa0('0x3b')]['limit']),_0x257bc7[_0x5f1aa0('0x1c')]=qs['offset'](_0x22ca48[_0x5f1aa0('0x3b')][_0x5f1aa0('0x1c')])),_0x257bc7[_0x5f1aa0('0xe')]=qs[_0x5f1aa0('0x83')](_0x22ca48[_0x5f1aa0('0x3b')][_0x5f1aa0('0x83')]),_0x257bc7[_0x5f1aa0('0x2d')]=qs[_0x5f1aa0('0x72')](_[_0x5f1aa0('0x87')](_0x22ca48[_0x5f1aa0('0x3b')],_0xdf995d['filters'])),_0x257bc7['where'][_0x5f1aa0('0x48')]=_0x3341c5['id'],_0x22ca48[_0x5f1aa0('0x3b')][_0x5f1aa0('0x81')]&&(_0x257bc7[_0x5f1aa0('0x2d')]=_[_0x5f1aa0('0xb')](_0x257bc7[_0x5f1aa0('0x2d')],{[Op['or']]:_[_0x5f1aa0('0x26')](_0x257bc7[_0x5f1aa0('0x62')],function(_0x5bd5ac){const _0xf7115b=_0x5f1aa0,_0xe53f30={};return _0xe53f30[_0x5bd5ac]={[Op['like']]:'%'+_0x22ca48[_0xf7115b('0x3b')][_0xf7115b('0x81')]+'%'},_0xe53f30;})})),_0x257bc7=_[_0x5f1aa0('0xb')]({},_0x257bc7,_0x22ca48['options']),db['CmHopperBlack']['count']({'where':_0x257bc7[_0x5f1aa0('0x2d')]})['then'](function(_0x406848){const _0x532976=_0x5f1aa0;return _0x5939d5['count']=_0x406848,_0x22ca48[_0x532976('0x3b')][_0x532976('0x0')]&&(_0x257bc7[_0x532976('0x5c')]=[{'all':!![]}]),db['CmHopperBlack'][_0x532976('0x7b')](_0x257bc7);})[_0x5f1aa0('0x82')](function(_0x48bed5){return _0x5939d5['rows']=_0x48bed5,_0x5939d5;});})['then'](respondWithFilteredResult(_0x2a4fef,_0x257bc7))['catch'](handleError(_0x2a4fef,null));},exports['getTeams']=function(_0x325843,_0x45b961){const _0x4586d0=_0x1a6ecf;let _0x5e8a50={};const _0x12e002={};let _0x305231,_0x40cb10;return db['VoiceQueue'][_0x4586d0('0x4f')]({'where':{'id':_0x325843[_0x4586d0('0x8c')]['id']}})[_0x4586d0('0x82')](handleEntityNotFound(_0x45b961,null))[_0x4586d0('0x82')](function(_0x39e8c6){const _0x27f3e8=_0x4586d0;if(_0x39e8c6)return _0x305231=_0x39e8c6,_0x12e002[_0x27f3e8('0x27')]=_[_0x27f3e8('0x24')](db[_0x27f3e8('0x3')][_0x27f3e8('0x54')]),_0x12e002[_0x27f3e8('0x3b')]=_[_0x27f3e8('0x24')](_0x325843['query']),_0x12e002['filters']=_['intersection'](_0x12e002['model'],_0x12e002['query']),_0x5e8a50[_0x27f3e8('0x62')]=_[_0x27f3e8('0x45')](_0x12e002['model'],qs['fields'](_0x325843[_0x27f3e8('0x3b')][_0x27f3e8('0x7a')])),_0x5e8a50[_0x27f3e8('0x62')]=_0x5e8a50[_0x27f3e8('0x62')]['length']?_0x5e8a50[_0x27f3e8('0x62')]:_0x12e002[_0x27f3e8('0x27')],_0x5e8a50[_0x27f3e8('0xe')]=qs[_0x27f3e8('0x83')](_0x325843[_0x27f3e8('0x3b')][_0x27f3e8('0x83')]),_0x5e8a50[_0x27f3e8('0x2d')]=qs[_0x27f3e8('0x72')](_[_0x27f3e8('0x87')](_0x325843[_0x27f3e8('0x3b')],_0x12e002['filters'])),_0x325843[_0x27f3e8('0x3b')]['filter']&&(_0x5e8a50[_0x27f3e8('0x2d')]=_[_0x27f3e8('0xb')](_0x5e8a50[_0x27f3e8('0x2d')],{[Op['or']]:_['map'](_0x5e8a50[_0x27f3e8('0x62')],function(_0x6b8471){const _0x2501ec=_0x27f3e8,_0x54f3a5={};return _0x54f3a5[_0x6b8471]={[Op[_0x2501ec('0x74')]]:'%'+_0x325843[_0x2501ec('0x3b')][_0x2501ec('0x81')]+'%'},_0x54f3a5;})})),_0x5e8a50=_[_0x27f3e8('0xb')]({},_0x5e8a50,_0x325843[_0x27f3e8('0x92')]),_0x305231[_0x27f3e8('0x4a')](_0x5e8a50);})['then'](function(_0x56a03b){const _0x549aeb=_0x4586d0;if(_0x56a03b)return _0x40cb10=_0x56a03b[_0x549aeb('0x2a')],typeof _0x325843['query'][_0x549aeb('0x47')]===_0x549aeb('0x16')&&(_0x5e8a50[_0x549aeb('0x32')]=qs[_0x549aeb('0x32')](_0x325843[_0x549aeb('0x3b')][_0x549aeb('0x32')]),_0x5e8a50[_0x549aeb('0x1c')]=qs[_0x549aeb('0x1c')](_0x325843[_0x549aeb('0x3b')]['offset'])),_0x305231[_0x549aeb('0x4a')](_0x5e8a50);})[_0x4586d0('0x82')](function(_0x5dc1f3){if(_0x5dc1f3)return _0x5dc1f3?{'count':_0x40cb10,'rows':_0x5dc1f3}:null;})[_0x4586d0('0x82')](respondWithResult(_0x45b961,null))[_0x4586d0('0x5e')](handleError(_0x45b961,null));},exports['addTeams']=function(_0x172216,_0x3e3536){const _0x25f877=_0x1a6ecf,_0x432dd5=_0x172216['body'][_0x25f877('0x14')],_0x17cd4b=_[_0x25f877('0x26')](_0x432dd5,'id');return db[_0x25f877('0x3')][_0x25f877('0x7b')]({'where':{'id':_0x17cd4b},'attributes':['id'],'include':[{'model':db[_0x25f877('0x7f')],'as':'Agents','attributes':['id','name',_0x25f877('0x4e'),_0x25f877('0x1f'),_0x25f877('0x5d')],'raw':!![]}]})['then'](function(_0x52c8c2){const _0x3fd428=_0x25f877;if(_0x52c8c2){const _0x30fed4=_[_0x3fd428('0x4d')](_0x52c8c2,function(_0x5ab61f){const _0x105340=_0x3fd428,_0x206ff9=_0x5ab61f[_0x105340('0x6f')]({'plain':!![]});return _0x206ff9[_0x105340('0x29')][_0x105340('0x98')](function(_0x589697){_0x589697['penalty']=_['find'](_0x432dd5,{'id':_0x206ff9['id']})['penalty'];}),_0x206ff9[_0x105340('0x29')];});return db['VoiceQueue']['findOne']({'where':{'id':_0x172216[_0x3fd428('0x8c')]['id']}})[_0x3fd428('0x82')](function(_0x53e02f){const _0x7476d1=_0x3fd428;return db[_0x7476d1('0x17')]['transaction'](function(_0x2c2160){const _0x2908c3=_0x7476d1;return _0x53e02f[_0x2908c3('0x4b')](_0x17cd4b,{'transaction':_0x2c2160})['then'](function(){const _0x281f39=_0x2908c3,_0x1debbc=_0x30fed4[_0x281f39('0x26')](_0x178224=>{const _0x110e27=_0x281f39;return db[_0x110e27('0x90')][_0x110e27('0x99')]({'where':{'UserId':_0x178224['id'],'VoiceQueueId':_0x172216['params']['id']},'defaults':{'penalty':_0x178224['penalty']},'transaction':_0x2c2160});});return Promise[_0x281f39('0x8b')](_0x1debbc);})[_0x2908c3('0x82')](function(){const _0x26e986=_0x2908c3,_0x1c332e=_[_0x26e986('0x81')](_0x30fed4,{'online':!![]}),_0x230014=_0x1c332e[_0x26e986('0x26')](_0x2ec9c6=>{const _0x16f1c4=_0x26e986;return db[_0x16f1c4('0x1e')][_0x16f1c4('0x71')]({'membername':_0x2ec9c6[_0x16f1c4('0x55')],'UserId':_0x2ec9c6['id'],'queue_name':_0x53e02f[_0x16f1c4('0x55')],'VoiceQueueId':_0x53e02f['id'],'interface':_[_0x16f1c4('0x2f')](_0x2ec9c6['interface'])?util[_0x16f1c4('0x37')](_0x16f1c4('0x67'),_0x2ec9c6[_0x16f1c4('0x55')]):_0x2ec9c6[_0x16f1c4('0x5d')],'paused':_0x2ec9c6[_0x16f1c4('0x1f')]||![],'penalty':_0x2ec9c6['penalty']},{'transaction':_0x2c2160});});return Promise[_0x26e986('0x8b')](_0x230014);})[_0x2908c3('0x82')](function(){const _0x4d5f43=_0x2908c3;_0x30fed4[_0x4d5f43('0x98')](function(_0x3cc182){const _0x140a23=_0x4d5f43;socket[_0x140a23('0x49')]('userVoiceQueue:save',{'UserId':_0x3cc182['id'],'VoiceQueueId':_0x53e02f['id']});});});});});}})[_0x25f877('0x82')](respondWithStatusCode(_0x3e3536,null))[_0x25f877('0x5e')](handleError(_0x3e3536,null));},exports[_0x1a6ecf('0x33')]=function(_0x188ef0,_0x4c6fe4){const _0x475df4=_0x1a6ecf;return db[_0x475df4('0x3')][_0x475df4('0x7b')]({'where':{'id':_0x188ef0['query'][_0x475df4('0x12')]},'attributes':['id'],'include':[{'model':db[_0x475df4('0x7f')],'as':'Agents','attributes':['id'],'raw':!![]}]})[_0x475df4('0x82')](handleEntityNotFound(_0x4c6fe4,null))['then'](function(_0x59fc27){const _0x567ba9=_0x475df4,_0x1082f5=_[_0x567ba9('0x26')](_0x59fc27,'id');let _0x188bc4=[];const _0x4348e3=[],_0x361575=squel[_0x567ba9('0x56')]();_0x361575['field']('tq.TeamId')[_0x567ba9('0x53')](_0x567ba9('0x73'),'tq')[_0x567ba9('0x68')]('user_has_teams','ut',_0x567ba9('0x46'))[_0x567ba9('0x2d')]('VoiceQueueId\x20=\x20?',_0x188ef0['params']['id']);for(let _0x43a444=0x0;_0x43a444<_0x59fc27['length'];_0x43a444+=0x1){const _0x5b153e=_0x59fc27[_0x43a444];for(let _0xca5feb=0x0;_0xca5feb<_0x5b153e[_0x567ba9('0x29')][_0x567ba9('0x2a')];_0xca5feb+=0x1){const _0x39c8f9=_0x5b153e[_0x567ba9('0x29')][_0xca5feb],_0x101b23=_0x361575[_0x567ba9('0x8d')]();_0x101b23['where'](_0x567ba9('0x18'),_0x39c8f9['id']),_0x4348e3[_0x567ba9('0x5b')](db['sequelize'][_0x567ba9('0x3b')](_0x101b23[_0x567ba9('0x80')](),{'type':QueryTypes[_0x567ba9('0x86')]})['then'](function(_0x263f9f){const _0x46d7a3=_0x567ba9;if(_0x263f9f[_0x46d7a3('0x2a')]===0x1)return _0x39c8f9['id'];else{const _0x293457=_[_0x46d7a3('0x3f')](_[_0x46d7a3('0x26')](_0x263f9f,'TeamId'),function(_0xa38f7c){const _0x378eff=_0x46d7a3;return _[_0x378eff('0x7')](_0x1082f5,_0xa38f7c);});if(_0x293457)return _0x39c8f9['id'];}}));}}return Promise[_0x567ba9('0x8b')](_0x4348e3)[_0x567ba9('0x82')](function(_0x2b4218){const _0x1d5c50=_0x567ba9;return _0x188bc4=_(_0x188bc4)[_0x1d5c50('0x6b')](_0x2b4218)[_0x1d5c50('0x60')]()[_0x1d5c50('0x30')](),db[_0x1d5c50('0x91')]['findOne']({'where':{'id':_0x188ef0[_0x1d5c50('0x8c')]['id']}})[_0x1d5c50('0x82')](function(_0x33938d){const _0x12077f=_0x1d5c50;return db[_0x12077f('0x17')][_0x12077f('0x36')](function(_0x4be5e6){const _0x1716ee=_0x12077f;return _0x33938d[_0x1716ee('0x33')](_0x188ef0[_0x1716ee('0x3b')][_0x1716ee('0x12')],{'transaction':_0x4be5e6})[_0x1716ee('0x82')](function(){const _0x335790=_0x1716ee;if(!_[_0x335790('0x50')](_0x188bc4))return _0x33938d[_0x335790('0x89')](_0x188bc4,{'transaction':_0x4be5e6})[_0x335790('0x82')](function(){const _0x5a39fc=_0x335790;return db[_0x5a39fc('0x1e')][_0x5a39fc('0x51')]({'where':{'VoiceQueueId':_0x188ef0[_0x5a39fc('0x8c')]['id'],'UserId':_0x188bc4},'transaction':_0x4be5e6});});})[_0x1716ee('0x82')](function(){const _0x80df06=_0x1716ee;_0x188bc4[_0x80df06('0x98')](function(_0xda2fd4){const _0x171ce9=_0x80df06;socket[_0x171ce9('0x49')](_0x171ce9('0x21'),{'UserId':_0xda2fd4,'VoiceQueueId':_0x33938d['id']});});});});});});})['then'](respondWithStatusCode(_0x4c6fe4,null))[_0x475df4('0x5e')](handleError(_0x4c6fe4,null));},exports[_0x1a6ecf('0x78')]=function(_0x387048,_0x11056e){const _0x369226=_0x1a6ecf;let _0x35efc3,_0x2af043;return db[_0x369226('0x91')]['findOne']({'where':{'id':_0x387048[_0x369226('0x8c')]['id']}})[_0x369226('0x82')](function(_0x1b691c){const _0x24f1e4=_0x369226;if(_0x1b691c)return _0x2af043=_0x1b691c,_0x1b691c[_0x24f1e4('0x78')](_0x387048[_0x24f1e4('0x9a')]['ids'],{'through':_[_0x24f1e4('0x23')](_0x387048[_0x24f1e4('0x9a')],[_0x24f1e4('0x12'),'id'])})[_0x24f1e4('0x82')](function(_0x1badbe){const _0x15bc05=_0x24f1e4;for(let _0x5b09d4=0x0;_0x5b09d4<_0x387048[_0x15bc05('0x9a')][_0x15bc05('0x12')]['length'];_0x5b09d4+=0x1){socket[_0x15bc05('0x49')]('userVoiceQueue:save',{'UserId':_0x387048[_0x15bc05('0x9a')]['ids'][_0x5b09d4],'VoiceQueueId':_0x387048[_0x15bc05('0x8c')]['id']});}return _0x1badbe;});})[_0x369226('0x82')](function(_0x555472){const _0x30ec15=_0x369226;_0x35efc3=_0x555472||[];if(_0x2af043)return db[_0x30ec15('0x7f')]['findAll']({'where':{'id':_0x387048[_0x30ec15('0x9a')][_0x30ec15('0x12')]},'attributes':['id',_0x30ec15('0x55'),_0x30ec15('0x4e'),_0x30ec15('0x1f'),_0x30ec15('0x5d')],'raw':!![]});})[_0x369226('0x82')](function(_0x49a5d5){const _0x4d9c7e=_0x369226;if(!_['isEmpty'](_0x49a5d5)){const _0xbb1ec7=[];for(let _0x208139=0x0;_0x208139<_0x49a5d5[_0x4d9c7e('0x2a')];_0x208139++){_0x49a5d5[_0x208139][_0x4d9c7e('0x4e')]&&_0xbb1ec7[_0x4d9c7e('0x5b')](db['UserVoiceQueueRt'][_0x4d9c7e('0x71')]({'membername':_0x49a5d5[_0x208139]['name'],'UserId':_0x49a5d5[_0x208139]['id'],'queue_name':_0x2af043[_0x4d9c7e('0x55')],'VoiceQueueId':_0x2af043['id'],'interface':_[_0x4d9c7e('0x2f')](_0x49a5d5[_0x208139][_0x4d9c7e('0x5d')])?util[_0x4d9c7e('0x37')](_0x4d9c7e('0x67'),_0x49a5d5[_0x208139][_0x4d9c7e('0x55')]):_0x49a5d5[_0x208139][_0x4d9c7e('0x5d')],'paused':_0x49a5d5[_0x208139][_0x4d9c7e('0x1f')]||![],'penalty':_0x387048[_0x4d9c7e('0x9a')][_0x4d9c7e('0x6a')]||0x0}));}return Promise[_0x4d9c7e('0x8b')](_0xbb1ec7);}})['then'](function(){return _0x35efc3;})[_0x369226('0x82')](respondWithResult(_0x11056e,null))[_0x369226('0x5e')](handleError(_0x11056e,null));},exports[_0x1a6ecf('0x89')]=function(_0x86b4b7,_0x59407b){const _0x52b09f=_0x1a6ecf;return db[_0x52b09f('0x91')][_0x52b09f('0x4f')]({'where':{'id':_0x86b4b7[_0x52b09f('0x8c')]['id']}})[_0x52b09f('0x82')](handleEntityNotFound(_0x59407b,null))[_0x52b09f('0x82')](function(_0x5b40f2){const _0x329f35=_0x52b09f;if(_0x5b40f2)return _0x5b40f2[_0x329f35('0x89')](_0x86b4b7[_0x329f35('0x3b')][_0x329f35('0x12')])[_0x329f35('0x82')](function(){const _0x1efef3=_0x329f35;if(_['isArray'](_0x86b4b7[_0x1efef3('0x3b')][_0x1efef3('0x12')]))for(let _0x3c76a0=0x0;_0x3c76a0<_0x86b4b7[_0x1efef3('0x3b')][_0x1efef3('0x12')][_0x1efef3('0x2a')];_0x3c76a0+=0x1){socket[_0x1efef3('0x49')](_0x1efef3('0x21'),{'UserId':Number(_0x86b4b7[_0x1efef3('0x3b')][_0x1efef3('0x12')][_0x3c76a0]),'VoiceQueueId':Number(_0x86b4b7[_0x1efef3('0x8c')]['id'])});}else socket[_0x1efef3('0x49')](_0x1efef3('0x21'),{'UserId':Number(_0x86b4b7['query'][_0x1efef3('0x12')]),'VoiceQueueId':Number(_0x86b4b7[_0x1efef3('0x8c')]['id'])});});})[_0x52b09f('0x82')](function(_0x4508a0){const _0x7c2c27=_0x52b09f;return db[_0x7c2c27('0x1e')][_0x7c2c27('0x51')]({'where':{'VoiceQueueId':_0x86b4b7[_0x7c2c27('0x8c')]['id'],'UserId':_0x86b4b7[_0x7c2c27('0x3b')][_0x7c2c27('0x12')]}})['then'](function(){return _0x4508a0;});})[_0x52b09f('0x82')](respondWithStatusCode(_0x59407b,null))[_0x52b09f('0x5e')](handleError(_0x59407b,null));},exports[_0x1a6ecf('0x13')]=function(_0x4db056,_0xb3fd5c){const _0xe7cbd0=_0x1a6ecf;let _0x1d1c38={};const _0x48ad56={};let _0x327e37,_0x47222c;return db[_0xe7cbd0('0x91')][_0xe7cbd0('0x4f')]({'where':{'id':_0x4db056[_0xe7cbd0('0x8c')]['id']}})[_0xe7cbd0('0x82')](handleEntityNotFound(_0xb3fd5c,null))[_0xe7cbd0('0x82')](function(_0x550fe2){const _0x3b01aa=_0xe7cbd0;if(_0x550fe2)return _0x327e37=_0x550fe2,_0x48ad56[_0x3b01aa('0x27')]=_[_0x3b01aa('0x24')](db[_0x3b01aa('0x7f')][_0x3b01aa('0x54')]),_0x48ad56[_0x3b01aa('0x3b')]=_[_0x3b01aa('0x24')](_0x4db056['query']),_0x48ad56[_0x3b01aa('0x72')]=_['intersection'](_0x48ad56[_0x3b01aa('0x27')],_0x48ad56[_0x3b01aa('0x3b')]),_0x1d1c38[_0x3b01aa('0x62')]=_[_0x3b01aa('0x45')](_0x48ad56[_0x3b01aa('0x27')],qs[_0x3b01aa('0x7a')](_0x4db056[_0x3b01aa('0x3b')][_0x3b01aa('0x7a')])),_0x1d1c38[_0x3b01aa('0x62')]=_0x1d1c38[_0x3b01aa('0x62')][_0x3b01aa('0x2a')]?_0x1d1c38[_0x3b01aa('0x62')]:_0x48ad56['model'],_0x1d1c38[_0x3b01aa('0xe')]=qs[_0x3b01aa('0x83')](_0x4db056[_0x3b01aa('0x3b')][_0x3b01aa('0x83')]),_0x1d1c38[_0x3b01aa('0x2d')]=qs[_0x3b01aa('0x72')](_[_0x3b01aa('0x87')](_0x4db056[_0x3b01aa('0x3b')],_0x48ad56['filters'])),_0x4db056[_0x3b01aa('0x3b')][_0x3b01aa('0x81')]&&(_0x1d1c38[_0x3b01aa('0x2d')]=_[_0x3b01aa('0xb')](_0x1d1c38['where'],{[Op['or']]:_['map'](_0x1d1c38[_0x3b01aa('0x62')],function(_0x127ebd){const _0x32eac7=_0x3b01aa,_0x3ce329={};return _0x3ce329[_0x127ebd]={[Op[_0x32eac7('0x74')]]:'%'+_0x4db056[_0x32eac7('0x3b')]['filter']+'%'},_0x3ce329;})})),_0x1d1c38=_[_0x3b01aa('0xb')]({},_0x1d1c38,_0x4db056[_0x3b01aa('0x92')]),_0x327e37['getAgents'](_0x1d1c38);})[_0xe7cbd0('0x82')](function(_0x54a0b8){const _0x42a68a=_0xe7cbd0;if(_0x54a0b8)return _0x47222c=_0x54a0b8[_0x42a68a('0x2a')],typeof _0x4db056[_0x42a68a('0x3b')]['nolimit']===_0x42a68a('0x16')&&(_0x1d1c38[_0x42a68a('0x32')]=qs['limit'](_0x4db056[_0x42a68a('0x3b')][_0x42a68a('0x32')]),_0x1d1c38[_0x42a68a('0x1c')]=qs[_0x42a68a('0x1c')](_0x4db056[_0x42a68a('0x3b')][_0x42a68a('0x1c')])),_0x327e37[_0x42a68a('0x13')](_0x1d1c38);})[_0xe7cbd0('0x82')](function(_0x4c5829){if(_0x4c5829)return _0x4c5829?{'count':_0x47222c,'rows':_0x4c5829}:null;})[_0xe7cbd0('0x82')](respondWithResult(_0xb3fd5c,null))[_0xe7cbd0('0x5e')](handleError(_0xb3fd5c,null));},exports['getMembers']=function(_0x189f3c,_0x1fb0f5){const _0x40bed7=_0x1a6ecf;let _0x3bb858={};const _0x174c42={};let _0x17880e,_0x334ff9;return db['VoiceQueue']['findOne']({'where':{'id':_0x189f3c[_0x40bed7('0x8c')]['id']}})[_0x40bed7('0x82')](handleEntityNotFound(_0x1fb0f5,null))[_0x40bed7('0x82')](function(_0x35aa58){const _0x4f01c3=_0x40bed7;if(_0x35aa58)return _0x17880e=_0x35aa58,_0x174c42[_0x4f01c3('0x27')]=_[_0x4f01c3('0x24')](db[_0x4f01c3('0x1e')][_0x4f01c3('0x54')]),_0x174c42['query']=_[_0x4f01c3('0x24')](_0x189f3c[_0x4f01c3('0x3b')]),_0x174c42[_0x4f01c3('0x72')]=_[_0x4f01c3('0x45')](_0x174c42[_0x4f01c3('0x27')],_0x174c42[_0x4f01c3('0x3b')]),_0x3bb858[_0x4f01c3('0x62')]=_[_0x4f01c3('0x45')](_0x174c42[_0x4f01c3('0x27')],qs[_0x4f01c3('0x7a')](_0x189f3c[_0x4f01c3('0x3b')]['fields'])),_0x3bb858['attributes']=_0x3bb858[_0x4f01c3('0x62')][_0x4f01c3('0x2a')]?_0x3bb858[_0x4f01c3('0x62')]:_0x174c42[_0x4f01c3('0x27')],_0x3bb858[_0x4f01c3('0xe')]=qs[_0x4f01c3('0x83')](_0x189f3c['query']['sort']),_0x3bb858[_0x4f01c3('0x2d')]=qs[_0x4f01c3('0x72')](_[_0x4f01c3('0x87')](_0x189f3c[_0x4f01c3('0x3b')],_0x174c42[_0x4f01c3('0x72')])),_0x189f3c['query'][_0x4f01c3('0x81')]&&(_0x3bb858[_0x4f01c3('0x2d')]=_[_0x4f01c3('0xb')](_0x3bb858[_0x4f01c3('0x2d')],{[Op['or']]:_[_0x4f01c3('0x26')](_0x3bb858[_0x4f01c3('0x62')],function(_0x42acc7){const _0x2b941e=_0x4f01c3,_0x420be6={};return _0x420be6[_0x42acc7]={[Op[_0x2b941e('0x74')]]:'%'+_0x189f3c['query'][_0x2b941e('0x81')]+'%'},_0x420be6;})})),_0x3bb858=_[_0x4f01c3('0xb')]({},_0x3bb858,_0x189f3c[_0x4f01c3('0x92')]),_0x17880e['getMembers'](_0x3bb858);})[_0x40bed7('0x82')](function(_0x56f9bf){const _0x4be569=_0x40bed7;if(_0x56f9bf)return _0x334ff9=_0x56f9bf['length'],typeof _0x189f3c[_0x4be569('0x3b')][_0x4be569('0x47')]==='undefined'&&(_0x3bb858['limit']=qs[_0x4be569('0x32')](_0x189f3c[_0x4be569('0x3b')][_0x4be569('0x32')]),_0x3bb858[_0x4be569('0x1c')]=qs[_0x4be569('0x1c')](_0x189f3c['query']['offset'])),_0x17880e[_0x4be569('0x38')](_0x3bb858);})[_0x40bed7('0x82')](function(_0x1a4504){return _0x1a4504?{'count':_0x334ff9,'rows':_0x1a4504}:null;})[_0x40bed7('0x82')](respondWithResult(_0x1fb0f5,null))[_0x40bed7('0x5e')](handleError(_0x1fb0f5,null));},exports[_0x1a6ecf('0x4')]=function(_0x33b48a,_0x1f4530){const _0x44a0b0=_0x1a6ecf;let _0x6c5a3d={};const _0x37a563={};let _0xdc2260,_0x5516d8;return db[_0x44a0b0('0x91')][_0x44a0b0('0x4f')]({'where':{'id':_0x33b48a[_0x44a0b0('0x8c')]['id']}})[_0x44a0b0('0x82')](handleEntityNotFound(_0x1f4530,null))[_0x44a0b0('0x82')](function(_0x52266c){const _0x4c5fb5=_0x44a0b0;if(_0x52266c)return _0xdc2260=_0x52266c,_0x37a563['model']=_[_0x4c5fb5('0x24')](db['CmList'][_0x4c5fb5('0x54')]),_0x37a563[_0x4c5fb5('0x3b')]=_['keys'](_0x33b48a[_0x4c5fb5('0x3b')]),_0x37a563[_0x4c5fb5('0x72')]=_[_0x4c5fb5('0x45')](_0x37a563[_0x4c5fb5('0x27')],_0x37a563[_0x4c5fb5('0x3b')]),_0x6c5a3d[_0x4c5fb5('0x62')]=_[_0x4c5fb5('0x45')](_0x37a563[_0x4c5fb5('0x27')],qs[_0x4c5fb5('0x7a')](_0x33b48a[_0x4c5fb5('0x3b')][_0x4c5fb5('0x7a')])),_0x6c5a3d[_0x4c5fb5('0x62')]=_0x6c5a3d['attributes'][_0x4c5fb5('0x2a')]?_0x6c5a3d['attributes']:_0x37a563[_0x4c5fb5('0x27')],_0x6c5a3d[_0x4c5fb5('0xe')]=qs['sort'](_0x33b48a[_0x4c5fb5('0x3b')][_0x4c5fb5('0x83')]),_0x6c5a3d[_0x4c5fb5('0x2d')]=qs[_0x4c5fb5('0x72')](_[_0x4c5fb5('0x87')](_0x33b48a['query'],_0x37a563[_0x4c5fb5('0x72')])),_0x33b48a['query']['filter']&&(_0x6c5a3d[_0x4c5fb5('0x2d')]=_[_0x4c5fb5('0xb')](_0x6c5a3d['where'],{[Op['or']]:_[_0x4c5fb5('0x26')](_0x6c5a3d[_0x4c5fb5('0x62')],function(_0x1761ef){const _0x4581a9=_0x4c5fb5,_0x226486={};return _0x226486[_0x1761ef]={[Op['like']]:'%'+_0x33b48a[_0x4581a9('0x3b')][_0x4581a9('0x81')]+'%'},_0x226486;})})),_0x6c5a3d=_[_0x4c5fb5('0xb')]({},_0x6c5a3d,_0x33b48a['options']),_0xdc2260[_0x4c5fb5('0x4')](_0x6c5a3d);})[_0x44a0b0('0x82')](function(_0x4f17ad){const _0x2e737e=_0x44a0b0;if(_0x4f17ad)return _0x5516d8=_0x4f17ad[_0x2e737e('0x2a')],typeof _0x33b48a[_0x2e737e('0x3b')][_0x2e737e('0x47')]===_0x2e737e('0x16')&&(_0x6c5a3d[_0x2e737e('0x32')]=qs[_0x2e737e('0x32')](_0x33b48a[_0x2e737e('0x3b')][_0x2e737e('0x32')]),_0x6c5a3d['offset']=qs[_0x2e737e('0x1c')](_0x33b48a['query'][_0x2e737e('0x1c')])),_0xdc2260[_0x2e737e('0x4')](_0x6c5a3d);})[_0x44a0b0('0x82')](function(_0x23bfac){if(_0x23bfac)return _0x23bfac?{'count':_0x5516d8,'rows':_0x23bfac}:null;})[_0x44a0b0('0x82')](respondWithResult(_0x1f4530,null))[_0x44a0b0('0x5e')](handleError(_0x1f4530,null));},exports['addLists']=function(_0x5b8e09,_0xc5523c){const _0x14d477=_0x1a6ecf;let _0x3ad684,_0x224542;return db[_0x14d477('0x91')]['findOne']({'where':{'id':_0x5b8e09['params']['id']}})['then'](handleEntityNotFound(_0xc5523c,null))[_0x14d477('0x82')](function(_0x37c80b){const _0x4e0a7a=_0x14d477;if(_0x37c80b)return _0x224542=_0x37c80b,_0x37c80b[_0x4e0a7a('0x6d')](_0x5b8e09[_0x4e0a7a('0x9a')][_0x4e0a7a('0x12')],{'through':_[_0x4e0a7a('0x23')](_0x5b8e09['body'],[_0x4e0a7a('0x12'),'id'])});return null;})[_0x14d477('0x82')](function(_0x3960cd){const _0x57b5c1=_0x14d477;let _0x2a442;_0x3ad684=_0x3960cd||[];const _0x21c153=[];if(_0x3960cd){for(let _0x551d5f=0x0;_0x551d5f<_0x3960cd[_0x57b5c1('0x2a')];_0x551d5f+=0x1){const _0x4414bd=_0x3960cd[_0x551d5f][_0x57b5c1('0x6f')]({'plain':!![]});_0x224542[_0x57b5c1('0x25')]=_0x5b8e09[_0x57b5c1('0x9a')]['dialCheckDuplicateType']?_0x5b8e09[_0x57b5c1('0x9a')][_0x57b5c1('0x25')]:_0x224542['dialCheckDuplicateType'];switch(_0x224542[_0x57b5c1('0x25')]){case _0x57b5c1('0x3c'):_0x2a442=squel['insert']()[_0x57b5c1('0xa')](_0x57b5c1('0x69'))[_0x57b5c1('0x95')]([_0x57b5c1('0x5'),'scheduledAt',_0x57b5c1('0x84'),_0x57b5c1('0x5f'),_0x57b5c1('0x48'),_0x57b5c1('0x28'),'updatedAt'],squel[_0x57b5c1('0x56')]()['field'](_0x57b5c1('0x5'),'phone')[_0x57b5c1('0x44')]('NOW()','scheduledAt')[_0x57b5c1('0x44')]('id',_0x57b5c1('0x84'))['field'](_0x4414bd[_0x57b5c1('0x58')][_0x57b5c1('0x80')](),_0x57b5c1('0x5f'))[_0x57b5c1('0x44')](_0x5b8e09[_0x57b5c1('0x8c')]['id'][_0x57b5c1('0x80')](),'VoiceQueueId')[_0x57b5c1('0x44')]('NOW()',_0x57b5c1('0x28'))[_0x57b5c1('0x44')]('NOW()',_0x57b5c1('0x93'))['from']('cm_contacts')[_0x57b5c1('0x2d')](_0x57b5c1('0x41'))[_0x57b5c1('0x2d')](_0x57b5c1('0x3a'),_0x4414bd[_0x57b5c1('0x58')][_0x57b5c1('0x80')]())['where'](_0x57b5c1('0xd'))[_0x57b5c1('0x2d')](_0x57b5c1('0x8e'),squel[_0x57b5c1('0x56')]()[_0x57b5c1('0x44')](_0x57b5c1('0x1'))[_0x57b5c1('0x53')]('cm_hopper_final')[_0x57b5c1('0x2d')](_0x57b5c1('0x34'),_0x5b8e09[_0x57b5c1('0x8c')]['id'][_0x57b5c1('0x80')]()))[_0x57b5c1('0x2d')]('phone\x20NOT\x20IN\x20(?)',squel[_0x57b5c1('0x56')]()[_0x57b5c1('0x44')]('COALESCE(phone,\x27\x27)')['from']('cm_hopper')['where']('VoiceQueueId\x20=\x20?',_0x5b8e09[_0x57b5c1('0x8c')]['id'][_0x57b5c1('0x80')]())))['toString']();break;case'onlyIfOpen':_0x2a442=squel['insert']()[_0x57b5c1('0xa')](_0x57b5c1('0x69'))[_0x57b5c1('0x95')](['phone','scheduledAt','ContactId','ListId','VoiceQueueId','createdAt',_0x57b5c1('0x93')],squel[_0x57b5c1('0x56')]()[_0x57b5c1('0x44')](_0x57b5c1('0x5'),_0x57b5c1('0x5'))[_0x57b5c1('0x44')](_0x57b5c1('0x6c'),_0x57b5c1('0x2b'))[_0x57b5c1('0x44')]('id',_0x57b5c1('0x84'))['field'](_0x4414bd['CmListId'][_0x57b5c1('0x80')](),_0x57b5c1('0x5f'))[_0x57b5c1('0x44')](_0x5b8e09[_0x57b5c1('0x8c')]['id']['toString'](),_0x57b5c1('0x48'))[_0x57b5c1('0x44')](_0x57b5c1('0x6c'),_0x57b5c1('0x28'))[_0x57b5c1('0x44')](_0x57b5c1('0x6c'),_0x57b5c1('0x93'))[_0x57b5c1('0x53')](_0x57b5c1('0x61'))[_0x57b5c1('0x2d')](_0x57b5c1('0x41'))[_0x57b5c1('0x2d')](_0x57b5c1('0x3a'),_0x4414bd[_0x57b5c1('0x58')][_0x57b5c1('0x80')]())['where'](_0x57b5c1('0xd'))[_0x57b5c1('0x2d')](_0x57b5c1('0x8e'),squel[_0x57b5c1('0x56')]()[_0x57b5c1('0x44')](_0x57b5c1('0x65'))['from'](_0x57b5c1('0x69'))[_0x57b5c1('0x2d')](_0x57b5c1('0x34'),_0x5b8e09[_0x57b5c1('0x8c')]['id'][_0x57b5c1('0x80')]())))[_0x57b5c1('0x80')]();break;default:_0x2a442=squel[_0x57b5c1('0x66')]()['into'](_0x57b5c1('0x69'))[_0x57b5c1('0x95')](['phone',_0x57b5c1('0x2b'),_0x57b5c1('0x84'),_0x57b5c1('0x5f'),'VoiceQueueId',_0x57b5c1('0x28'),'updatedAt'],squel[_0x57b5c1('0x56')]()[_0x57b5c1('0x44')](_0x57b5c1('0x5'),'phone')[_0x57b5c1('0x44')](_0x57b5c1('0x6c'),_0x57b5c1('0x2b'))[_0x57b5c1('0x44')]('id','ContactId')[_0x57b5c1('0x44')](_0x4414bd[_0x57b5c1('0x58')]['toString'](),_0x57b5c1('0x5f'))['field'](_0x5b8e09[_0x57b5c1('0x8c')]['id'][_0x57b5c1('0x80')](),_0x57b5c1('0x48'))[_0x57b5c1('0x44')]('NOW()',_0x57b5c1('0x28'))['field'](_0x57b5c1('0x6c'),_0x57b5c1('0x93'))[_0x57b5c1('0x53')]('cm_contacts')[_0x57b5c1('0x2d')](_0x57b5c1('0x41'))[_0x57b5c1('0x2d')](_0x57b5c1('0x3a'),_0x4414bd[_0x57b5c1('0x58')][_0x57b5c1('0x80')]())[_0x57b5c1('0x2d')](_0x57b5c1('0xd')))[_0x57b5c1('0x80')]();}_0x21c153[_0x57b5c1('0x5b')](db[_0x57b5c1('0x17')][_0x57b5c1('0x3b')](_0x2a442));}return Promise[_0x57b5c1('0x8b')](_0x21c153);}})[_0x14d477('0x82')](function(){return _0x3ad684;})[_0x14d477('0x82')](respondWithResult(_0xc5523c,null))[_0x14d477('0x5e')](handleError(_0xc5523c,null));},exports[_0x1a6ecf('0x6e')]=function(_0x42ec63,_0x4b2071){const _0x5ebe27=_0x1a6ecf;return db['VoiceQueue'][_0x5ebe27('0x4f')]({'where':{'id':_0x42ec63['params']['id']}})[_0x5ebe27('0x82')](handleEntityNotFound(_0x4b2071,null))['then'](function(_0x5df36f){const _0x58f003=_0x5ebe27;if(_0x5df36f)return _0x5df36f['removeLists'](_0x42ec63[_0x58f003('0x3b')][_0x58f003('0x12')]);})['then'](function(_0x1b739e){const _0x4fa073=_0x5ebe27;if(_0x1b739e)return db[_0x4fa073('0x40')][_0x4fa073('0x51')]({'where':{'ListId':_0x42ec63[_0x4fa073('0x3b')][_0x4fa073('0x12')],'VoiceQueueId':_0x42ec63['params']['id']}})[_0x4fa073('0x82')](function(){return _0x1b739e;});})[_0x5ebe27('0x82')](respondWithStatusCode(_0x4b2071,null))['catch'](handleError(_0x4b2071,null));},exports[_0x1a6ecf('0x2c')]=function(_0x4a5233,_0x5f064f){const _0x4e7adf=_0x1a6ecf;let _0x4b7534={};const _0x119b9c={};let _0x48c9e0,_0x21221e;return db[_0x4e7adf('0x91')][_0x4e7adf('0x4f')]({'where':{'id':_0x4a5233[_0x4e7adf('0x8c')]['id']}})[_0x4e7adf('0x82')](handleEntityNotFound(_0x5f064f,null))[_0x4e7adf('0x82')](function(_0x215a13){const _0x121d20=_0x4e7adf;if(_0x215a13)return _0x48c9e0=_0x215a13,_0x119b9c[_0x121d20('0x27')]=_['keys'](db[_0x121d20('0x1a')][_0x121d20('0x54')]),_0x119b9c['query']=_['keys'](_0x4a5233[_0x121d20('0x3b')]),_0x119b9c[_0x121d20('0x72')]=_[_0x121d20('0x45')](_0x119b9c[_0x121d20('0x27')],_0x119b9c[_0x121d20('0x3b')]),_0x4b7534[_0x121d20('0x62')]=_['intersection'](_0x119b9c[_0x121d20('0x27')],qs[_0x121d20('0x7a')](_0x4a5233[_0x121d20('0x3b')][_0x121d20('0x7a')])),_0x4b7534['attributes']=_0x4b7534['attributes'][_0x121d20('0x2a')]?_0x4b7534[_0x121d20('0x62')]:_0x119b9c[_0x121d20('0x27')],_0x4b7534[_0x121d20('0xe')]=qs[_0x121d20('0x83')](_0x4a5233[_0x121d20('0x3b')]['sort']),_0x4b7534[_0x121d20('0x2d')]=qs[_0x121d20('0x72')](_['pick'](_0x4a5233[_0x121d20('0x3b')],_0x119b9c['filters'])),_0x4a5233[_0x121d20('0x3b')][_0x121d20('0x81')]&&(_0x4b7534['where']=_['merge'](_0x4b7534[_0x121d20('0x2d')],{[Op['or']]:_[_0x121d20('0x26')](_0x4b7534[_0x121d20('0x62')],function(_0x1de998){const _0x3f3c02=_0x121d20,_0x7752e3={};return _0x7752e3[_0x1de998]={[Op['like']]:'%'+_0x4a5233[_0x3f3c02('0x3b')][_0x3f3c02('0x81')]+'%'},_0x7752e3;})})),_0x4b7534=_[_0x121d20('0xb')]({},_0x4b7534,_0x4a5233[_0x121d20('0x92')]),_0x48c9e0[_0x121d20('0x2c')](_0x4b7534);})[_0x4e7adf('0x82')](function(_0xb76fbd){const _0x2da238=_0x4e7adf;if(_0xb76fbd)return _0x21221e=_0xb76fbd[_0x2da238('0x2a')],typeof _0x4a5233['query'][_0x2da238('0x47')]==='undefined'&&(_0x4b7534[_0x2da238('0x32')]=qs[_0x2da238('0x32')](_0x4a5233['query'][_0x2da238('0x32')]),_0x4b7534[_0x2da238('0x1c')]=qs[_0x2da238('0x1c')](_0x4a5233['query'][_0x2da238('0x1c')])),_0x48c9e0['getBlackLists'](_0x4b7534);})[_0x4e7adf('0x82')](function(_0x4f2258){if(_0x4f2258)return _0x4f2258?{'count':_0x21221e,'rows':_0x4f2258}:null;})[_0x4e7adf('0x82')](respondWithResult(_0x5f064f,null))['catch'](handleError(_0x5f064f,null));},exports[_0x1a6ecf('0x2e')]=function(_0x4c4f15,_0x1a47f6){const _0xa6be8c=_0x1a6ecf;let _0x1da345;return db[_0xa6be8c('0x91')][_0xa6be8c('0x4f')]({'where':{'id':_0x4c4f15[_0xa6be8c('0x8c')]['id']}})[_0xa6be8c('0x82')](handleEntityNotFound(_0x1a47f6,null))['then'](function(_0x1a6310){const _0x4cd6e0=_0xa6be8c;if(_0x1a6310)return _0x1a6310[_0x4cd6e0('0x2e')](_0x4c4f15[_0x4cd6e0('0x9a')][_0x4cd6e0('0x12')],{'through':_[_0x4cd6e0('0x23')](_0x4c4f15[_0x4cd6e0('0x9a')],[_0x4cd6e0('0x12'),'id'])});return null;})[_0xa6be8c('0x82')](function(_0x41cd4c){const _0x51df46=_0xa6be8c;let _0x300b98;_0x1da345=_0x41cd4c||[];const _0x426fdc=[];if(_0x41cd4c){for(let _0x2dc87f=0x0;_0x2dc87f<_0x41cd4c[_0x51df46('0x2a')];_0x2dc87f+=0x1){const _0x8e0803=_0x41cd4c[_0x2dc87f][_0x51df46('0x6f')]({'plain':!![]});_0x300b98=squel[_0x51df46('0x66')]()[_0x51df46('0xa')](_0x51df46('0x59'))[_0x51df46('0x95')]([_0x51df46('0x5'),'ContactId',_0x51df46('0x5f'),'VoiceQueueId',_0x51df46('0x28'),_0x51df46('0x93')],squel[_0x51df46('0x56')]()[_0x51df46('0x44')]('phone',_0x51df46('0x5'))['field']('id',_0x51df46('0x84'))[_0x51df46('0x44')](_0x8e0803[_0x51df46('0x58')][_0x51df46('0x80')](),_0x51df46('0x5f'))[_0x51df46('0x44')](_0x4c4f15['params']['id'][_0x51df46('0x80')](),_0x51df46('0x48'))['field'](_0x51df46('0x6c'),_0x51df46('0x28'))[_0x51df46('0x44')](_0x51df46('0x6c'),_0x51df46('0x93'))[_0x51df46('0x53')](_0x51df46('0x61'))[_0x51df46('0x2d')](_0x51df46('0x41'))['where'](_0x51df46('0x3a'),_0x8e0803[_0x51df46('0x58')][_0x51df46('0x80')]())[_0x51df46('0x2d')](_0x51df46('0xd')))['toString'](),_0x426fdc[_0x51df46('0x5b')](db[_0x51df46('0x17')][_0x51df46('0x3b')](_0x300b98));}return Promise['all'](_0x426fdc);}})[_0xa6be8c('0x82')](function(){return _0x1da345;})['then'](respondWithResult(_0x1a47f6,null))[_0xa6be8c('0x5e')](handleError(_0x1a47f6,null));},exports[_0x1a6ecf('0x7e')]=function(_0x5ce444,_0x186e83){const _0x3bd3f3=_0x1a6ecf;return db[_0x3bd3f3('0x91')][_0x3bd3f3('0x4f')]({'where':{'id':_0x5ce444[_0x3bd3f3('0x8c')]['id']}})[_0x3bd3f3('0x82')](handleEntityNotFound(_0x186e83,null))[_0x3bd3f3('0x82')](function(_0x59f4d2){const _0x57ee81=_0x3bd3f3;if(_0x59f4d2)return _0x59f4d2['removeBlackLists'](_0x5ce444['query'][_0x57ee81('0x12')]);})[_0x3bd3f3('0x82')](function(_0x5dc87c){const _0x20995d=_0x3bd3f3;if(_0x5dc87c)return db[_0x20995d('0x64')][_0x20995d('0x51')]({'where':{'ListId':_0x5ce444[_0x20995d('0x3b')][_0x20995d('0x12')],'VoiceQueueId':_0x5ce444[_0x20995d('0x8c')]['id']}})[_0x20995d('0x82')](function(){return _0x5dc87c;});})[_0x3bd3f3('0x82')](respondWithStatusCode(_0x186e83,null))['catch'](handleError(_0x186e83,null));}; \ No newline at end of file +const a903_0x4105=['CmHopper','sequelize','offset','UserVoiceQueueRt','CmList','COALESCE(phone,\x27\x27)','update','util','updatedAt','compact','online','SIP/%s','send','phone\x20NOT\x20IN\x20(?)','format','VoiceQueues','intersection','select','addLists','UserProfileSection','include','scheduledAt','filters','omit','role','type','json','order','removeBlackLists','CmHopperFinal','fields','VoiceQueue','cm_hopper','phone','getHopperFinals','like','clone','value','attributes','keys','removeTeams','../../rediscache','emit','union','merge','from','penalty','NOW()','count','always','./voiceQueue.socket','every','end','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','name','userVoiceQueue:remove','isEmpty','status','nolimit','sort','voicePause','deletedAt\x20IS\x20NULL','teams','CmHopperBlack','createdAt','userVoiceQueue:save','UserVoiceQueue','index','CmListId','error','COALESCE(calleridnum,\x27\x27)','tq.TeamId','filter','cm_hopper_final','fieldName','params','includes','toString','create','removeAgents','VIRTUAL','findOrCreate','../../mysqldb','map','catch','flatMap','getLists','User','destroy','outbound','upsert','getMembers','findOne','length','Team','body','Agents','ut.TeamId\x20=\x20tq.TeamId','where','ListId\x20=\x20?','UserProfileResource','squel','dialCheckDuplicateType','insert','isArray','cm_contacts','interface','into','options','VoiceQueueId\x20=\x20?','userProfileId','key','fromQuery','ContactId','QueueCampaigns','model','ListId','findAll','getAgents','autoAssociation','getHoppers','limit','find','inbound','query','addAgents','SELECT','rawAttributes','../../config/logger','team_has_voice_queues','register','removeLists','user_has_teams','getBlackLists','addBlackLists','forEach','show','rows','VoiceQueueId','CmHopperHistory','sendStatus','field','isNil','Content-Range','pick','addTeams','get','all','cm_hopper_black','includeAll','getHopperBlacks','user','getTeams','then','ut.UserId\x20=\x20?','push','api','ids','phone\x20IS\x20NOT\x20NULL','undefined'];(function(_0x14a9dd,_0xce3067){const _0x4105dd=function(_0x559613){while(--_0x559613){_0x14a9dd['push'](_0x14a9dd['shift']());}};_0x4105dd(++_0xce3067);}(a903_0x4105,0x159));const a903_0x5596=function(_0x14a9dd,_0xce3067){_0x14a9dd=_0x14a9dd-0xc9;let _0x4105dd=a903_0x4105[_0x14a9dd];return _0x4105dd;};const a903_0x15cc44=a903_0x5596;'use strict';const util=require(a903_0x15cc44(0x157)),_=require('lodash'),squel=require(a903_0x15cc44(0x115)),qs=require('../../components/parsers/qs'),logger=require(a903_0x15cc44(0x130))(a903_0x15cc44(0x14c)),{getSocket}=require(a903_0x15cc44(0xd9)),socket=getSocket(),{db}=require(a903_0x15cc44(0x102)),{Op,QueryTypes}=require(a903_0x15cc44(0x151));require(a903_0x15cc44(0xe2))[a903_0x15cc44(0x132)](socket);function respondWithStatusCode(_0x1ba7d4,_0x57227a){return _0x57227a=_0x57227a||0xcc,function(_0xbb0f93){const _0x165d22=a903_0x5596;if(_0xbb0f93)return _0x1ba7d4[_0x165d22(0x13c)](_0x57227a);return _0x1ba7d4[_0x165d22(0xe9)](_0x57227a)['end']();};}function respondWithResult(_0x576e50,_0xbf1989){return _0xbf1989=_0xbf1989||0xc8,function(_0x243ec9){const _0x213ed7=a903_0x5596;if(_0x243ec9)return _0x576e50[_0x213ed7(0xe9)](_0xbf1989)[_0x213ed7(0xca)](_0x243ec9);};}function respondWithFilteredResult(_0x527151,_0x473140){return function(_0x914049){const _0x20bca4=a903_0x5596;if(_0x914049){const _0x5d2d29=_0x914049[_0x20bca4(0xe0)],_0x180f6c=_0x473140['offset'];let _0x322b2d=_0x473140[_0x20bca4(0x152)]+_0x473140['limit'],_0x289b55;return _0x322b2d>=_0x5d2d29?(_0x322b2d=_0x5d2d29,_0x289b55=0xc8):_0x289b55=0xce,_0x527151['status'](_0x289b55),_0x527151['set'](_0x20bca4(0x13f),_0x180f6c+'-'+_0x322b2d+'/'+_0x5d2d29)[_0x20bca4(0xca)](_0x914049);}return null;};}function saveUpdates(_0x2ab4a9){return function(_0x585af1){const _0x167f62=a903_0x5596;if(_0x585af1)return _0x585af1[_0x167f62(0x156)](_0x2ab4a9)[_0x167f62(0x149)](function(_0x32395e){return _0x32395e;});return null;};}function removeEntity(_0x2d38cb){return function(_0x5f0011){const _0x4e5c34=a903_0x5596;if(_0x5f0011)return _0x5f0011[_0x4e5c34(0x108)]()[_0x4e5c34(0x149)](function(){const _0x1e070e=_0x4e5c34,_0x34b076=_0x5f0011[_0x1e070e(0x142)]({'plain':!![]}),_0x4b681e=[{'name':_0x1e070e(0x15f),'value':_0x1e070e(0x12b),'ignore':![]},{'name':'QueueCampaigns','value':_0x1e070e(0x109),'ignore':![]}],_0x2aaef7=_(_0x4b681e)[_0x1e070e(0xf8)]('ignore')[_0x1e070e(0x103)](_0x1e070e(0xd5))[_0x1e070e(0xd5)]();if(_['includes'](_0x2aaef7,_0x34b076[_0x1e070e(0xc9)]))return;const _0x202e3b=_['find'](_0x4b681e,['value',_0x34b076[_0x1e070e(0xc9)]])[_0x1e070e(0xe6)];return db[_0x1e070e(0x114)][_0x1e070e(0x108)]({'where':{'type':_0x202e3b,'resourceId':_0x34b076['id']}})[_0x1e070e(0x149)](function(){return _0x5f0011;});})['then'](function(){const _0x5937e9=_0x4e5c34;_0x2d38cb[_0x5937e9(0xe9)](0xcc)[_0x5937e9(0xe4)]();});};}function handleEntityNotFound(_0x123694){return function(_0x1bc4f8){const _0x16a8d0=a903_0x5596;return!_0x1bc4f8&&_0x123694[_0x16a8d0(0x13c)](0x194),_0x1bc4f8;};}function handleError(_0x3a120b,_0x25a21e){return _0x25a21e=_0x25a21e||0x1f4,function(_0x5c4802){const _0x537aff=a903_0x5596;logger['error'](_0x5c4802['stack']),_0x5c4802[_0x537aff(0xe6)]&&delete _0x5c4802[_0x537aff(0xe6)],_0x3a120b[_0x537aff(0xe9)](_0x25a21e)[_0x537aff(0x15c)](_0x5c4802);};}exports[a903_0x15cc44(0xf3)]=function(_0x452c71,_0xf62a81){const _0x1dc733=a903_0x15cc44;let _0x327a6a={};const _0x588f68={},_0x3f95a2={'count':0x0,'rows':[]},_0x20f30c=_[_0x1dc733(0x103)](db[_0x1dc733(0xcf)][_0x1dc733(0x12f)],function(_0x186a23){const _0x217931=_0x1dc733;return{'name':_0x186a23[_0x217931(0xfa)],'type':_0x186a23[_0x217931(0xc9)][_0x217931(0x11f)]};});_0x588f68[_0x1dc733(0x123)]=_[_0x1dc733(0x103)](_0x20f30c,_0x1dc733(0xe6)),_0x588f68['query']=_[_0x1dc733(0xd7)](_0x452c71[_0x1dc733(0x12c)]),_0x588f68['filters']=_[_0x1dc733(0x160)](_0x588f68[_0x1dc733(0x123)],_0x588f68[_0x1dc733(0x12c)]),_0x327a6a[_0x1dc733(0xd6)]=_[_0x1dc733(0x160)](_0x588f68[_0x1dc733(0x123)],qs[_0x1dc733(0xce)](_0x452c71['query'][_0x1dc733(0xce)])),_0x327a6a[_0x1dc733(0xd6)]=_0x327a6a['attributes']['length']?_0x327a6a[_0x1dc733(0xd6)]:_0x588f68['model'];typeof _0x452c71['query'][_0x1dc733(0xea)]===_0x1dc733(0x14f)&&(_0x327a6a[_0x1dc733(0x129)]=qs[_0x1dc733(0x129)](_0x452c71[_0x1dc733(0x12c)][_0x1dc733(0x129)]),_0x327a6a[_0x1dc733(0x152)]=qs[_0x1dc733(0x152)](_0x452c71['query'][_0x1dc733(0x152)]));_0x327a6a[_0x1dc733(0xcb)]=qs['sort'](_0x452c71[_0x1dc733(0x12c)][_0x1dc733(0xeb)]),_0x327a6a[_0x1dc733(0x112)]=qs[_0x1dc733(0x166)](_[_0x1dc733(0x140)](_0x452c71['query'],_0x588f68[_0x1dc733(0x166)]),_0x20f30c);_0x452c71['query'][_0x1dc733(0xf8)]&&(_0x327a6a[_0x1dc733(0x112)]=_[_0x1dc733(0xdc)](_0x327a6a[_0x1dc733(0x112)],{[Op['or']]:_['map'](_0x20f30c,function(_0x393d64){const _0xa422ff=_0x1dc733;if(_0x393d64[_0xa422ff(0xc9)]!==_0xa422ff(0x100)){const _0x262e0e={};return _0x262e0e[_0x393d64[_0xa422ff(0xe6)]]={[Op['like']]:'%'+_0x452c71[_0xa422ff(0x12c)]['filter']+'%'},_0x262e0e;}})}));_0x327a6a=_[_0x1dc733(0xdc)]({},_0x327a6a,_0x452c71[_0x1dc733(0x11c)]);const _0x2e5a93={'where':_0x327a6a[_0x1dc733(0x112)]};return db[_0x1dc733(0xcf)][_0x1dc733(0xe0)](_0x2e5a93)['then'](function(_0x579c90){const _0x43d42b=_0x1dc733;return _0x3f95a2[_0x43d42b(0xe0)]=_0x579c90,_0x452c71[_0x43d42b(0x12c)]['includeAll']&&(_0x327a6a[_0x43d42b(0x164)]=[{'all':!![]}]),db[_0x43d42b(0xcf)]['findAll'](_0x327a6a);})['then'](function(_0x335fc3){return _0x3f95a2['rows']=_0x335fc3,_0x3f95a2;})[_0x1dc733(0x149)](respondWithFilteredResult(_0xf62a81,_0x327a6a))['catch'](handleError(_0xf62a81,null));},exports[a903_0x15cc44(0x138)]=function(_0x33294d,_0x3ff546){const _0x505c1d=a903_0x15cc44;let _0x6fa719={'raw':![],'where':{'id':_0x33294d[_0x505c1d(0xfb)]['id']}};const _0x38611c={};return _0x38611c[_0x505c1d(0x123)]=_[_0x505c1d(0xd7)](db['VoiceQueue'][_0x505c1d(0x12f)]),_0x38611c['query']=_[_0x505c1d(0xd7)](_0x33294d[_0x505c1d(0x12c)]),_0x38611c[_0x505c1d(0x166)]=_['intersection'](_0x38611c[_0x505c1d(0x123)],_0x38611c['query']),_0x6fa719[_0x505c1d(0xd6)]=_[_0x505c1d(0x160)](_0x38611c[_0x505c1d(0x123)],qs['fields'](_0x33294d[_0x505c1d(0x12c)][_0x505c1d(0xce)])),_0x6fa719['attributes']=_0x6fa719[_0x505c1d(0xd6)][_0x505c1d(0x10d)]?_0x6fa719['attributes']:_0x38611c['model'],_0x33294d[_0x505c1d(0x12c)][_0x505c1d(0x145)]&&(_0x6fa719['include']=[{'all':!![]}]),_0x6fa719=_[_0x505c1d(0xdc)]({},_0x6fa719,_0x33294d['options']),db[_0x505c1d(0xcf)][_0x505c1d(0x10c)](_0x6fa719)['then'](handleEntityNotFound(_0x3ff546,null))[_0x505c1d(0x149)](respondWithResult(_0x3ff546,null))[_0x505c1d(0x104)](handleError(_0x3ff546,null));},exports[a903_0x15cc44(0xfe)]=function(_0x576ba7,_0x2c0681){const _0x37b81c=a903_0x15cc44;return db[_0x37b81c(0xcf)][_0x37b81c(0xfe)](_0x576ba7[_0x37b81c(0x10f)],{})[_0x37b81c(0x149)](function(_0x5a4a06){const _0x482136=_0x37b81c,_0x5711be=_0x576ba7[_0x482136(0x147)]['get']({'plain':!![]});if(!_0x5711be)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x5711be[_0x482136(0x168)]==='user'){const _0x24d27e=_0x5a4a06[_0x482136(0x142)]({'plain':!![]}),_0x3bf811=[{'name':_0x482136(0x15f),'value':_0x482136(0x12b)},{'name':'QueueCampaigns','value':'outbound'}],_0x2ba509=_[_0x482136(0x12a)](_0x3bf811,[_0x482136(0xd5),_0x24d27e[_0x482136(0xc9)]])[_0x482136(0xe6)];return db[_0x482136(0x163)][_0x482136(0x10c)]({'where':{'name':_0x2ba509,'userProfileId':_0x5711be[_0x482136(0x11e)]},'raw':!![]})[_0x482136(0x149)](function(_0x2b27f1){const _0x2332fd=_0x482136;return _0x2b27f1&&_0x2b27f1[_0x2332fd(0x127)]===0x0?db[_0x2332fd(0x114)][_0x2332fd(0xfe)]({'name':_0x24d27e[_0x2332fd(0xe6)],'resourceId':_0x24d27e['id'],'type':_0x2b27f1[_0x2332fd(0xe6)],'sectionId':_0x2b27f1['id']},{})[_0x2332fd(0x149)](function(){return _0x5a4a06;}):_0x5a4a06;})[_0x482136(0x104)](function(_0x3dbd09){const _0x49f1db=_0x482136;logger[_0x49f1db(0xf5)](_0x49f1db(0xe5),_0x3dbd09);throw _0x3dbd09;});}return _0x5a4a06;})['then'](respondWithResult(_0x2c0681,0xc9))[_0x37b81c(0x104)](handleError(_0x2c0681,null));},exports[a903_0x15cc44(0xd4)]=function(_0x2418ce,_0x4a82d4){const _0xf9c47=a903_0x15cc44;let _0x17a185={'where':{'id':_0x2418ce[_0xf9c47(0xfb)]['id']}};const _0x54eb6d={};return _0x54eb6d[_0xf9c47(0x123)]=_['keys'](db['VoiceQueue'][_0xf9c47(0x12f)]),_0x17a185['attributes']=_[_0xf9c47(0x160)](_0x54eb6d['model'],qs[_0xf9c47(0xce)](_0x2418ce['query'][_0xf9c47(0xce)])),_0x17a185[_0xf9c47(0xd6)]=_0x17a185[_0xf9c47(0xd6)][_0xf9c47(0x10d)]?_0x17a185[_0xf9c47(0xd6)]:_0x54eb6d['model'],_0x2418ce['query'][_0xf9c47(0x145)]&&(_0x17a185[_0xf9c47(0x164)]=[{'all':!![]}]),_0x17a185=_[_0xf9c47(0xdc)]({},_0x17a185,_0x2418ce[_0xf9c47(0x11c)]),db[_0xf9c47(0xcf)][_0xf9c47(0x10c)](_0x17a185)[_0xf9c47(0x149)](handleEntityNotFound(_0x4a82d4,null))[_0xf9c47(0x149)](function(_0x5c0017){const _0x7c4003=_0xf9c47;if(_0x5c0017){let _0x1e626f=_0x5c0017[_0x7c4003(0x142)]({'plain':!![]});return _0x1e626f=qs['omit'](_0x1e626f,['id',_0x7c4003(0xf0),_0x7c4003(0x158)]),_0x2418ce['body']=_['omit'](_0x2418ce['body'],['id','createdAt','updatedAt']),db[_0x7c4003(0xcf)][_0x7c4003(0xfe)](_['merge'](_0x1e626f,_0x2418ce['body']),{'include':_0x2418ce[_0x7c4003(0x12c)][_0x7c4003(0x145)]?[{'all':!![]}]:undefined})[_0x7c4003(0x149)](function(_0x4956ca){const _0x26f3ca=_0x7c4003,_0x2ee53b=_0x2418ce['user'][_0x26f3ca(0x142)]({'plain':!![]});if(!_0x2ee53b)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x2ee53b[_0x26f3ca(0x168)]===_0x26f3ca(0x147)){const _0x17a4c0=_0x4956ca['get']({'plain':!![]}),_0x106f53=[{'name':_0x26f3ca(0x15f),'value':'inbound'},{'name':_0x26f3ca(0x122),'value':_0x26f3ca(0x109)}],_0x27a5dd=_[_0x26f3ca(0x12a)](_0x106f53,[_0x26f3ca(0xd5),_0x17a4c0[_0x26f3ca(0xc9)]])['name'];return db[_0x26f3ca(0x163)][_0x26f3ca(0x10c)]({'where':{'name':_0x27a5dd,'userProfileId':_0x2ee53b[_0x26f3ca(0x11e)]},'raw':!![]})[_0x26f3ca(0x149)](function(_0x296909){const _0x1368be=_0x26f3ca;return _0x296909&&_0x296909[_0x1368be(0x127)]===0x0?db[_0x1368be(0x114)]['create']({'name':_0x17a4c0[_0x1368be(0xe6)],'resourceId':_0x17a4c0['id'],'type':_0x296909[_0x1368be(0xe6)],'sectionId':_0x296909['id']},{})[_0x1368be(0x149)](function(){return _0x4956ca;}):_0x4956ca;})['catch'](function(_0x269843){logger['error']('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0x269843);throw _0x269843;});}return _0x4956ca;});}})['then'](respondWithResult(_0x4a82d4,0xc9))['catch'](handleError(_0x4a82d4,null));},exports[a903_0x15cc44(0x156)]=function(_0x3eabc3,_0x750815){const _0x177de4=a903_0x15cc44;return _0x3eabc3[_0x177de4(0x10f)]['id']&&delete _0x3eabc3[_0x177de4(0x10f)]['id'],db[_0x177de4(0xcf)][_0x177de4(0x10c)]({'where':{'id':_0x3eabc3[_0x177de4(0xfb)]['id']}})[_0x177de4(0x149)](handleEntityNotFound(_0x750815,null))[_0x177de4(0x149)](saveUpdates(_0x3eabc3[_0x177de4(0x10f)],null))[_0x177de4(0x149)](respondWithResult(_0x750815,null))['catch'](handleError(_0x750815,null));},exports['destroy']=function(_0x262e75,_0x3dd7ec){const _0x2a5479=a903_0x15cc44;return db[_0x2a5479(0xcf)]['findOne']({'where':{'id':_0x262e75[_0x2a5479(0xfb)]['id']}})['then'](handleEntityNotFound(_0x3dd7ec,null))[_0x2a5479(0x149)](removeEntity(_0x3dd7ec,null))[_0x2a5479(0x104)](handleError(_0x3dd7ec,null));},exports[a903_0x15cc44(0x128)]=function(_0x1bf26b,_0x3095d4){const _0x4518f2=a903_0x15cc44;let _0x19b79b={'raw':![],'where':{}};const _0x28b50f={},_0x238cde={'count':0x0,'rows':[]};return db[_0x4518f2(0xcf)]['findOne']({'where':{'id':_0x1bf26b[_0x4518f2(0xfb)]['id']}})[_0x4518f2(0x149)](handleEntityNotFound(_0x3095d4,null))['then'](function(_0x3e0140){const _0x29a58d=_0x4518f2;if(_0x3e0140)return _0x28b50f['model']=_[_0x29a58d(0xd7)](db[_0x29a58d(0x150)]['rawAttributes']),_0x28b50f[_0x29a58d(0x12c)]=_[_0x29a58d(0xd7)](_0x1bf26b[_0x29a58d(0x12c)]),_0x28b50f[_0x29a58d(0x166)]=_[_0x29a58d(0x160)](_0x28b50f[_0x29a58d(0x123)],_0x28b50f['query']),_0x19b79b[_0x29a58d(0xd6)]=_[_0x29a58d(0x160)](_0x28b50f[_0x29a58d(0x123)],qs[_0x29a58d(0xce)](_0x1bf26b['query'][_0x29a58d(0xce)])),_0x19b79b[_0x29a58d(0xd6)]=_0x19b79b[_0x29a58d(0xd6)][_0x29a58d(0x10d)]?_0x19b79b['attributes']:_0x28b50f[_0x29a58d(0x123)],typeof _0x1bf26b[_0x29a58d(0x12c)]['nolimit']===_0x29a58d(0x14f)&&(_0x19b79b['limit']=qs['limit'](_0x1bf26b[_0x29a58d(0x12c)][_0x29a58d(0x129)]),_0x19b79b[_0x29a58d(0x152)]=qs[_0x29a58d(0x152)](_0x1bf26b[_0x29a58d(0x12c)][_0x29a58d(0x152)])),_0x19b79b[_0x29a58d(0xcb)]=qs[_0x29a58d(0xeb)](_0x1bf26b[_0x29a58d(0x12c)][_0x29a58d(0xeb)]),_0x19b79b[_0x29a58d(0x112)]=qs[_0x29a58d(0x166)](_[_0x29a58d(0x140)](_0x1bf26b[_0x29a58d(0x12c)],_0x28b50f[_0x29a58d(0x166)])),_0x19b79b[_0x29a58d(0x112)]['VoiceQueueId']=_0x3e0140['id'],_0x1bf26b[_0x29a58d(0x12c)]['filter']&&(_0x19b79b[_0x29a58d(0x112)]=_['merge'](_0x19b79b['where'],{[Op['or']]:_[_0x29a58d(0x103)](_0x19b79b[_0x29a58d(0xd6)],function(_0x1fdbe1){const _0x32a9f7=_0x29a58d,_0x355b9d={};return _0x355b9d[_0x1fdbe1]={[Op['like']]:'%'+_0x1bf26b[_0x32a9f7(0x12c)]['filter']+'%'},_0x355b9d;})})),_0x19b79b=_[_0x29a58d(0xdc)]({},_0x19b79b,_0x1bf26b[_0x29a58d(0x11c)]),db[_0x29a58d(0x150)]['count']({'where':_0x19b79b[_0x29a58d(0x112)]})[_0x29a58d(0x149)](function(_0x4dad43){const _0x2cd0d5=_0x29a58d;return _0x238cde['count']=_0x4dad43,_0x1bf26b[_0x2cd0d5(0x12c)][_0x2cd0d5(0x145)]&&(_0x19b79b['include']=[{'all':!![]}]),db['CmHopper'][_0x2cd0d5(0x125)](_0x19b79b);})[_0x29a58d(0x149)](function(_0x50eec2){const _0x3c221a=_0x29a58d;return _0x238cde[_0x3c221a(0x139)]=_0x50eec2,_0x238cde;});})[_0x4518f2(0x149)](respondWithFilteredResult(_0x3095d4,_0x19b79b))[_0x4518f2(0x104)](handleError(_0x3095d4,null));},exports['getHopperHistories']=function(_0x1c55e6,_0x893f93){const _0x475508=a903_0x15cc44;let _0x404780={'raw':!![],'where':{}};const _0x8454a9={},_0xa2ad7={'count':0x0,'rows':[]};return db['VoiceQueue'][_0x475508(0x10c)]({'where':{'id':_0x1c55e6[_0x475508(0xfb)]['id']}})[_0x475508(0x149)](handleEntityNotFound(_0x893f93,null))[_0x475508(0x149)](function(_0x352c94){const _0xae829b=_0x475508;if(_0x352c94)return _0x8454a9[_0xae829b(0x123)]=_[_0xae829b(0xd7)](db['CmHopperHistory'][_0xae829b(0x12f)]),_0x8454a9[_0xae829b(0x12c)]=_['keys'](_0x1c55e6[_0xae829b(0x12c)]),_0x8454a9[_0xae829b(0x166)]=_[_0xae829b(0x160)](_0x8454a9[_0xae829b(0x123)],_0x8454a9[_0xae829b(0x12c)]),_0x404780['attributes']=_[_0xae829b(0x160)](_0x8454a9['model'],qs[_0xae829b(0xce)](_0x1c55e6[_0xae829b(0x12c)][_0xae829b(0xce)])),_0x404780[_0xae829b(0xd6)]=_0x404780[_0xae829b(0xd6)][_0xae829b(0x10d)]?_0x404780[_0xae829b(0xd6)]:_0x8454a9[_0xae829b(0x123)],typeof _0x1c55e6['query'][_0xae829b(0xea)]===_0xae829b(0x14f)&&(_0x404780[_0xae829b(0x129)]=qs['limit'](_0x1c55e6[_0xae829b(0x12c)][_0xae829b(0x129)]),_0x404780[_0xae829b(0x152)]=qs[_0xae829b(0x152)](_0x1c55e6['query'][_0xae829b(0x152)])),_0x404780[_0xae829b(0xcb)]=qs['sort'](_0x1c55e6[_0xae829b(0x12c)][_0xae829b(0xeb)]),_0x404780[_0xae829b(0x112)]=qs[_0xae829b(0x166)](_[_0xae829b(0x140)](_0x1c55e6[_0xae829b(0x12c)],_0x8454a9[_0xae829b(0x166)])),_0x404780[_0xae829b(0x112)][_0xae829b(0x13a)]=_0x352c94['id'],_0x1c55e6[_0xae829b(0x12c)][_0xae829b(0xf8)]&&(_0x404780[_0xae829b(0x112)]=_[_0xae829b(0xdc)](_0x404780[_0xae829b(0x112)],{[Op['or']]:_[_0xae829b(0x103)](_0x404780['attributes'],function(_0x28dba6){const _0x3fd9d7=_0xae829b,_0x1ce9f1={};return _0x1ce9f1[_0x28dba6]={[Op['like']]:'%'+_0x1c55e6['query'][_0x3fd9d7(0xf8)]+'%'},_0x1ce9f1;})})),_0x404780=_['merge']({},_0x404780,_0x1c55e6[_0xae829b(0x11c)]),db[_0xae829b(0x13b)][_0xae829b(0xe0)]({'where':_0x404780[_0xae829b(0x112)]})[_0xae829b(0x149)](function(_0x282eab){const _0x3fbfa0=_0xae829b;return _0xa2ad7['count']=_0x282eab,_0x1c55e6[_0x3fbfa0(0x12c)]['includeAll']&&(_0x404780[_0x3fbfa0(0x164)]=[{'all':!![]}]),db[_0x3fbfa0(0x13b)][_0x3fbfa0(0x125)](_0x404780);})['then'](function(_0x45ec10){const _0x46f808=_0xae829b;return _0xa2ad7[_0x46f808(0x139)]=_0x45ec10,_0xa2ad7;});})[_0x475508(0x149)](respondWithFilteredResult(_0x893f93,_0x404780))[_0x475508(0x104)](handleError(_0x893f93,null));},exports[a903_0x15cc44(0xd2)]=function(_0x310f78,_0x3da9eb){const _0x373770=a903_0x15cc44;let _0x3d0356={'raw':!![],'where':{}};const _0x1f592f={},_0x2c73e2={'count':0x0,'rows':[]};return db['VoiceQueue'][_0x373770(0x10c)]({'where':{'id':_0x310f78[_0x373770(0xfb)]['id']}})[_0x373770(0x149)](handleEntityNotFound(_0x3da9eb,null))[_0x373770(0x149)](function(_0x2983af){const _0x371355=_0x373770;if(_0x2983af)return _0x1f592f[_0x371355(0x123)]=_['keys'](db[_0x371355(0xcd)]['rawAttributes']),_0x1f592f['query']=_['keys'](_0x310f78[_0x371355(0x12c)]),_0x1f592f['filters']=_[_0x371355(0x160)](_0x1f592f['model'],_0x1f592f[_0x371355(0x12c)]),_0x3d0356[_0x371355(0xd6)]=_[_0x371355(0x160)](_0x1f592f[_0x371355(0x123)],qs[_0x371355(0xce)](_0x310f78[_0x371355(0x12c)][_0x371355(0xce)])),_0x3d0356['attributes']=_0x3d0356[_0x371355(0xd6)]['length']?_0x3d0356[_0x371355(0xd6)]:_0x1f592f[_0x371355(0x123)],typeof _0x310f78['query'][_0x371355(0xea)]===_0x371355(0x14f)&&(_0x3d0356['limit']=qs['limit'](_0x310f78['query']['limit']),_0x3d0356[_0x371355(0x152)]=qs[_0x371355(0x152)](_0x310f78[_0x371355(0x12c)][_0x371355(0x152)])),_0x3d0356[_0x371355(0xcb)]=qs[_0x371355(0xeb)](_0x310f78[_0x371355(0x12c)][_0x371355(0xeb)]),_0x3d0356['where']=qs[_0x371355(0x166)](_[_0x371355(0x140)](_0x310f78['query'],_0x1f592f[_0x371355(0x166)])),_0x3d0356[_0x371355(0x112)][_0x371355(0x13a)]=_0x2983af['id'],_0x310f78['query'][_0x371355(0xf8)]&&(_0x3d0356['where']=_['merge'](_0x3d0356[_0x371355(0x112)],{[Op['or']]:_[_0x371355(0x103)](_0x3d0356[_0x371355(0xd6)],function(_0x270de){const _0x1a1819=_0x371355,_0x52690c={};return _0x52690c[_0x270de]={[Op[_0x1a1819(0xd3)]]:'%'+_0x310f78['query']['filter']+'%'},_0x52690c;})})),_0x3d0356=_['merge']({},_0x3d0356,_0x310f78['options']),db[_0x371355(0xcd)]['count']({'where':_0x3d0356[_0x371355(0x112)]})[_0x371355(0x149)](function(_0x147cab){const _0xac28ce=_0x371355;return _0x2c73e2['count']=_0x147cab,_0x310f78[_0xac28ce(0x12c)]['includeAll']&&(_0x3d0356['include']=[{'all':!![]}]),db[_0xac28ce(0xcd)]['findAll'](_0x3d0356);})[_0x371355(0x149)](function(_0x3800c4){const _0x1a1ced=_0x371355;return _0x2c73e2[_0x1a1ced(0x139)]=_0x3800c4,_0x2c73e2;});})['then'](respondWithFilteredResult(_0x3da9eb,_0x3d0356))['catch'](handleError(_0x3da9eb,null));},exports[a903_0x15cc44(0x146)]=function(_0x38bc17,_0x343457){const _0x44d1cc=a903_0x15cc44;let _0x378406={'raw':!![],'where':{}};const _0xb97dcc={},_0x29cc91={'count':0x0,'rows':[]};return db['VoiceQueue']['findOne']({'where':{'id':_0x38bc17[_0x44d1cc(0xfb)]['id']}})[_0x44d1cc(0x149)](handleEntityNotFound(_0x343457,null))[_0x44d1cc(0x149)](function(_0x3f4abe){const _0x58444a=_0x44d1cc;if(_0x3f4abe)return _0xb97dcc[_0x58444a(0x123)]=_['keys'](db[_0x58444a(0xef)][_0x58444a(0x12f)]),_0xb97dcc['query']=_[_0x58444a(0xd7)](_0x38bc17[_0x58444a(0x12c)]),_0xb97dcc[_0x58444a(0x166)]=_[_0x58444a(0x160)](_0xb97dcc['model'],_0xb97dcc['query']),_0x378406[_0x58444a(0xd6)]=_['intersection'](_0xb97dcc['model'],qs[_0x58444a(0xce)](_0x38bc17[_0x58444a(0x12c)]['fields'])),_0x378406['attributes']=_0x378406[_0x58444a(0xd6)]['length']?_0x378406[_0x58444a(0xd6)]:_0xb97dcc['model'],typeof _0x38bc17['query'][_0x58444a(0xea)]==='undefined'&&(_0x378406[_0x58444a(0x129)]=qs[_0x58444a(0x129)](_0x38bc17[_0x58444a(0x12c)][_0x58444a(0x129)]),_0x378406[_0x58444a(0x152)]=qs[_0x58444a(0x152)](_0x38bc17[_0x58444a(0x12c)][_0x58444a(0x152)])),_0x378406['order']=qs[_0x58444a(0xeb)](_0x38bc17[_0x58444a(0x12c)][_0x58444a(0xeb)]),_0x378406[_0x58444a(0x112)]=qs[_0x58444a(0x166)](_['pick'](_0x38bc17[_0x58444a(0x12c)],_0xb97dcc[_0x58444a(0x166)])),_0x378406['where'][_0x58444a(0x13a)]=_0x3f4abe['id'],_0x38bc17[_0x58444a(0x12c)][_0x58444a(0xf8)]&&(_0x378406[_0x58444a(0x112)]=_['merge'](_0x378406[_0x58444a(0x112)],{[Op['or']]:_[_0x58444a(0x103)](_0x378406[_0x58444a(0xd6)],function(_0x16783f){const _0xfb595a=_0x58444a,_0x1e9e02={};return _0x1e9e02[_0x16783f]={[Op[_0xfb595a(0xd3)]]:'%'+_0x38bc17[_0xfb595a(0x12c)]['filter']+'%'},_0x1e9e02;})})),_0x378406=_['merge']({},_0x378406,_0x38bc17[_0x58444a(0x11c)]),db[_0x58444a(0xef)][_0x58444a(0xe0)]({'where':_0x378406[_0x58444a(0x112)]})[_0x58444a(0x149)](function(_0xdc8568){const _0x283d95=_0x58444a;return _0x29cc91[_0x283d95(0xe0)]=_0xdc8568,_0x38bc17[_0x283d95(0x12c)][_0x283d95(0x145)]&&(_0x378406['include']=[{'all':!![]}]),db[_0x283d95(0xef)][_0x283d95(0x125)](_0x378406);})['then'](function(_0x4e62c6){return _0x29cc91['rows']=_0x4e62c6,_0x29cc91;});})[_0x44d1cc(0x149)](respondWithFilteredResult(_0x343457,_0x378406))[_0x44d1cc(0x104)](handleError(_0x343457,null));},exports[a903_0x15cc44(0x148)]=function(_0x1c8af0,_0x41b4cb){const _0x239b79=a903_0x15cc44;let _0x5bf419={};const _0x55162f={};let _0x26e5e8,_0x57d06f;return db[_0x239b79(0xcf)][_0x239b79(0x10c)]({'where':{'id':_0x1c8af0['params']['id']}})[_0x239b79(0x149)](handleEntityNotFound(_0x41b4cb,null))[_0x239b79(0x149)](function(_0x1d97f5){const _0x3466bf=_0x239b79;if(_0x1d97f5)return _0x26e5e8=_0x1d97f5,_0x55162f['model']=_[_0x3466bf(0xd7)](db[_0x3466bf(0x10e)][_0x3466bf(0x12f)]),_0x55162f['query']=_['keys'](_0x1c8af0[_0x3466bf(0x12c)]),_0x55162f[_0x3466bf(0x166)]=_[_0x3466bf(0x160)](_0x55162f['model'],_0x55162f[_0x3466bf(0x12c)]),_0x5bf419[_0x3466bf(0xd6)]=_[_0x3466bf(0x160)](_0x55162f[_0x3466bf(0x123)],qs['fields'](_0x1c8af0['query'][_0x3466bf(0xce)])),_0x5bf419['attributes']=_0x5bf419[_0x3466bf(0xd6)][_0x3466bf(0x10d)]?_0x5bf419['attributes']:_0x55162f['model'],_0x5bf419[_0x3466bf(0xcb)]=qs[_0x3466bf(0xeb)](_0x1c8af0[_0x3466bf(0x12c)][_0x3466bf(0xeb)]),_0x5bf419[_0x3466bf(0x112)]=qs[_0x3466bf(0x166)](_[_0x3466bf(0x140)](_0x1c8af0[_0x3466bf(0x12c)],_0x55162f[_0x3466bf(0x166)])),_0x1c8af0[_0x3466bf(0x12c)][_0x3466bf(0xf8)]&&(_0x5bf419[_0x3466bf(0x112)]=_['merge'](_0x5bf419['where'],{[Op['or']]:_[_0x3466bf(0x103)](_0x5bf419[_0x3466bf(0xd6)],function(_0x2339e1){const _0x5149b2=_0x3466bf,_0x5225b2={};return _0x5225b2[_0x2339e1]={[Op[_0x5149b2(0xd3)]]:'%'+_0x1c8af0[_0x5149b2(0x12c)][_0x5149b2(0xf8)]+'%'},_0x5225b2;})})),_0x5bf419=_['merge']({},_0x5bf419,_0x1c8af0['options']),_0x26e5e8['getTeams'](_0x5bf419);})[_0x239b79(0x149)](function(_0x186700){const _0x42fe3c=_0x239b79;if(_0x186700)return _0x57d06f=_0x186700[_0x42fe3c(0x10d)],typeof _0x1c8af0[_0x42fe3c(0x12c)]['nolimit']===_0x42fe3c(0x14f)&&(_0x5bf419['limit']=qs['limit'](_0x1c8af0['query'][_0x42fe3c(0x129)]),_0x5bf419[_0x42fe3c(0x152)]=qs[_0x42fe3c(0x152)](_0x1c8af0[_0x42fe3c(0x12c)][_0x42fe3c(0x152)])),_0x26e5e8[_0x42fe3c(0x148)](_0x5bf419);})[_0x239b79(0x149)](function(_0x27714a){if(_0x27714a)return _0x27714a?{'count':_0x57d06f,'rows':_0x27714a}:null;})[_0x239b79(0x149)](respondWithResult(_0x41b4cb,null))['catch'](handleError(_0x41b4cb,null));},exports['addTeams']=function(_0x657e66,_0x5e1b2f){const _0x305910=a903_0x15cc44,_0x117d2c=_0x657e66[_0x305910(0x10f)][_0x305910(0xee)],_0x356fda=_[_0x305910(0x103)](_0x117d2c,'id');return db[_0x305910(0x10e)][_0x305910(0x125)]({'where':{'id':_0x356fda},'attributes':['id'],'include':[{'model':db[_0x305910(0x107)],'as':_0x305910(0x110),'attributes':['id',_0x305910(0xe6),'online',_0x305910(0xec),_0x305910(0x11a)],'raw':!![]}]})['then'](function(_0x29148d){const _0x36f905=_0x305910;if(_0x29148d){const _0x260360=_[_0x36f905(0x105)](_0x29148d,function(_0x17bb0f){const _0x3152d0=_0x36f905,_0x2aef62=_0x17bb0f[_0x3152d0(0x142)]({'plain':!![]});return _0x2aef62[_0x3152d0(0x110)]['forEach'](function(_0x323a60){const _0x1fe692=_0x3152d0;_0x323a60['penalty']=_[_0x1fe692(0x12a)](_0x117d2c,{'id':_0x2aef62['id']})['penalty'];}),_0x2aef62[_0x3152d0(0x110)];});return db[_0x36f905(0xcf)]['findOne']({'where':{'id':_0x657e66[_0x36f905(0xfb)]['id']}})[_0x36f905(0x149)](function(_0x1046da){const _0xf2fd05=_0x36f905;return db[_0xf2fd05(0x151)]['transaction'](function(_0x3efef4){const _0x175c5f=_0xf2fd05;return _0x1046da[_0x175c5f(0x141)](_0x356fda,{'transaction':_0x3efef4})[_0x175c5f(0x149)](function(){const _0x184736=_0x175c5f,_0x225ae6=_0x260360[_0x184736(0x103)](_0x55438b=>{const _0x191a9b=_0x184736;return db[_0x191a9b(0xf2)][_0x191a9b(0x101)]({'where':{'UserId':_0x55438b['id'],'VoiceQueueId':_0x657e66[_0x191a9b(0xfb)]['id']},'defaults':{'penalty':_0x55438b[_0x191a9b(0xde)]},'transaction':_0x3efef4});});return Promise['all'](_0x225ae6);})[_0x175c5f(0x149)](function(){const _0x250fbf=_0x175c5f,_0x78f394=_[_0x250fbf(0xf8)](_0x260360,{'online':!![]}),_0x1a29f4=_0x78f394[_0x250fbf(0x103)](_0x39395b=>{const _0x2b385c=_0x250fbf;return db[_0x2b385c(0x153)]['upsert']({'membername':_0x39395b['name'],'UserId':_0x39395b['id'],'queue_name':_0x1046da['name'],'VoiceQueueId':_0x1046da['id'],'interface':_[_0x2b385c(0x13e)](_0x39395b['interface'])?util[_0x2b385c(0x15e)](_0x2b385c(0x15b),_0x39395b[_0x2b385c(0xe6)]):_0x39395b[_0x2b385c(0x11a)],'paused':_0x39395b[_0x2b385c(0xec)]||![],'penalty':_0x39395b['penalty']},{'transaction':_0x3efef4});});return Promise[_0x250fbf(0x143)](_0x1a29f4);})[_0x175c5f(0x149)](function(){const _0x558c6d=_0x175c5f;_0x260360[_0x558c6d(0x137)](function(_0x11aad9){const _0x56e3c5=_0x558c6d;socket[_0x56e3c5(0xda)](_0x56e3c5(0xf1),{'UserId':_0x11aad9['id'],'VoiceQueueId':_0x1046da['id']});});});});});}})['then'](respondWithStatusCode(_0x5e1b2f,null))[_0x305910(0x104)](handleError(_0x5e1b2f,null));},exports[a903_0x15cc44(0xd8)]=function(_0x3488c3,_0x209a40){const _0x2455f5=a903_0x15cc44;return db['Team'][_0x2455f5(0x125)]({'where':{'id':_0x3488c3[_0x2455f5(0x12c)][_0x2455f5(0x14d)]},'attributes':['id'],'include':[{'model':db['User'],'as':_0x2455f5(0x110),'attributes':['id'],'raw':!![]}]})[_0x2455f5(0x149)](handleEntityNotFound(_0x209a40,null))[_0x2455f5(0x149)](function(_0x2152bd){const _0x3f7958=_0x2455f5,_0x517cae=_[_0x3f7958(0x103)](_0x2152bd,'id');let _0x5d4573=[];const _0x1c56db=[],_0x187ec8=squel[_0x3f7958(0x161)]();_0x187ec8[_0x3f7958(0x13d)](_0x3f7958(0xf7))[_0x3f7958(0xdd)](_0x3f7958(0x131),'tq')['join'](_0x3f7958(0x134),'ut',_0x3f7958(0x111))[_0x3f7958(0x112)](_0x3f7958(0x11d),_0x3488c3[_0x3f7958(0xfb)]['id']);for(let _0x3e599f=0x0;_0x3e599f<_0x2152bd['length'];_0x3e599f+=0x1){const _0x429e34=_0x2152bd[_0x3e599f];for(let _0x5c572c=0x0;_0x5c572c<_0x429e34['Agents']['length'];_0x5c572c+=0x1){const _0x31cf60=_0x429e34['Agents'][_0x5c572c],_0x3b3244=_0x187ec8[_0x3f7958(0xd4)]();_0x3b3244['where'](_0x3f7958(0x14a),_0x31cf60['id']),_0x1c56db[_0x3f7958(0x14b)](db[_0x3f7958(0x151)][_0x3f7958(0x12c)](_0x3b3244[_0x3f7958(0xfd)](),{'type':QueryTypes[_0x3f7958(0x12e)]})['then'](function(_0x2c81d6){const _0x54b955=_0x3f7958;if(_0x2c81d6['length']===0x1)return _0x31cf60['id'];else{const _0x27697b=_[_0x54b955(0xe3)](_[_0x54b955(0x103)](_0x2c81d6,'TeamId'),function(_0x356e7d){const _0x4940ce=_0x54b955;return _[_0x4940ce(0xfc)](_0x517cae,_0x356e7d);});if(_0x27697b)return _0x31cf60['id'];}}));}}return Promise['all'](_0x1c56db)['then'](function(_0x378375){const _0x2822be=_0x3f7958;return _0x5d4573=_(_0x5d4573)[_0x2822be(0xdb)](_0x378375)[_0x2822be(0x159)]()['value'](),db[_0x2822be(0xcf)]['findOne']({'where':{'id':_0x3488c3[_0x2822be(0xfb)]['id']}})[_0x2822be(0x149)](function(_0x8901bf){const _0x3d33ef=_0x2822be;return db[_0x3d33ef(0x151)]['transaction'](function(_0x1cf4d3){const _0x770026=_0x3d33ef;return _0x8901bf['removeTeams'](_0x3488c3[_0x770026(0x12c)]['ids'],{'transaction':_0x1cf4d3})[_0x770026(0x149)](function(){const _0x4ef84a=_0x770026;if(!_[_0x4ef84a(0xe8)](_0x5d4573))return _0x8901bf[_0x4ef84a(0xff)](_0x5d4573,{'transaction':_0x1cf4d3})[_0x4ef84a(0x149)](function(){const _0x3d7a1f=_0x4ef84a;return db[_0x3d7a1f(0x153)][_0x3d7a1f(0x108)]({'where':{'VoiceQueueId':_0x3488c3[_0x3d7a1f(0xfb)]['id'],'UserId':_0x5d4573},'transaction':_0x1cf4d3});});})[_0x770026(0x149)](function(){_0x5d4573['forEach'](function(_0x53dfcb){const _0x4d2072=a903_0x5596;socket[_0x4d2072(0xda)](_0x4d2072(0xe7),{'UserId':_0x53dfcb,'VoiceQueueId':_0x8901bf['id']});});});});});});})[_0x2455f5(0x149)](respondWithStatusCode(_0x209a40,null))['catch'](handleError(_0x209a40,null));},exports[a903_0x15cc44(0x12d)]=function(_0x51cd20,_0xb7de5c){const _0x2f8315=a903_0x15cc44;let _0x333d6c,_0x410ebd;return db[_0x2f8315(0xcf)][_0x2f8315(0x10c)]({'where':{'id':_0x51cd20[_0x2f8315(0xfb)]['id']}})[_0x2f8315(0x149)](function(_0x1baf0d){const _0x2d3a9c=_0x2f8315;if(_0x1baf0d)return _0x410ebd=_0x1baf0d,_0x1baf0d['addAgents'](_0x51cd20['body'][_0x2d3a9c(0x14d)],{'through':_[_0x2d3a9c(0x167)](_0x51cd20[_0x2d3a9c(0x10f)],['ids','id'])})['then'](function(_0x2e4574){const _0x40c641=_0x2d3a9c;for(let _0x5c7a68=0x0;_0x5c7a68<_0x51cd20[_0x40c641(0x10f)][_0x40c641(0x14d)]['length'];_0x5c7a68+=0x1){socket[_0x40c641(0xda)](_0x40c641(0xf1),{'UserId':_0x51cd20[_0x40c641(0x10f)][_0x40c641(0x14d)][_0x5c7a68],'VoiceQueueId':_0x51cd20['params']['id']});}return _0x2e4574;});})[_0x2f8315(0x149)](function(_0x23ec93){const _0x1c6181=_0x2f8315;_0x333d6c=_0x23ec93||[];if(_0x410ebd)return db[_0x1c6181(0x107)]['findAll']({'where':{'id':_0x51cd20[_0x1c6181(0x10f)][_0x1c6181(0x14d)]},'attributes':['id',_0x1c6181(0xe6),_0x1c6181(0x15a),_0x1c6181(0xec),_0x1c6181(0x11a)],'raw':!![]});})[_0x2f8315(0x149)](function(_0x35779f){const _0x349460=_0x2f8315;if(!_['isEmpty'](_0x35779f)){const _0xbeaa9d=[];for(let _0x4244bf=0x0;_0x4244bf<_0x35779f[_0x349460(0x10d)];_0x4244bf++){_0x35779f[_0x4244bf][_0x349460(0x15a)]&&_0xbeaa9d[_0x349460(0x14b)](db[_0x349460(0x153)][_0x349460(0x10a)]({'membername':_0x35779f[_0x4244bf][_0x349460(0xe6)],'UserId':_0x35779f[_0x4244bf]['id'],'queue_name':_0x410ebd[_0x349460(0xe6)],'VoiceQueueId':_0x410ebd['id'],'interface':_[_0x349460(0x13e)](_0x35779f[_0x4244bf]['interface'])?util['format'](_0x349460(0x15b),_0x35779f[_0x4244bf][_0x349460(0xe6)]):_0x35779f[_0x4244bf]['interface'],'paused':_0x35779f[_0x4244bf]['voicePause']||![],'penalty':_0x51cd20['body']['penalty']||0x0}));}return Promise[_0x349460(0x143)](_0xbeaa9d);}})['then'](function(){return _0x333d6c;})[_0x2f8315(0x149)](respondWithResult(_0xb7de5c,null))[_0x2f8315(0x104)](handleError(_0xb7de5c,null));},exports[a903_0x15cc44(0xff)]=function(_0x1edaf6,_0x445ec8){const _0x366c7e=a903_0x15cc44;return db['VoiceQueue']['findOne']({'where':{'id':_0x1edaf6[_0x366c7e(0xfb)]['id']}})['then'](handleEntityNotFound(_0x445ec8,null))[_0x366c7e(0x149)](function(_0x51892f){const _0x3591b6=_0x366c7e;if(_0x51892f)return _0x51892f[_0x3591b6(0xff)](_0x1edaf6[_0x3591b6(0x12c)]['ids'])[_0x3591b6(0x149)](function(){const _0x35d3b3=_0x3591b6;if(_[_0x35d3b3(0x118)](_0x1edaf6['query'][_0x35d3b3(0x14d)]))for(let _0x38513c=0x0;_0x38513c<_0x1edaf6[_0x35d3b3(0x12c)][_0x35d3b3(0x14d)][_0x35d3b3(0x10d)];_0x38513c+=0x1){socket[_0x35d3b3(0xda)]('userVoiceQueue:remove',{'UserId':Number(_0x1edaf6['query']['ids'][_0x38513c]),'VoiceQueueId':Number(_0x1edaf6['params']['id'])});}else socket[_0x35d3b3(0xda)](_0x35d3b3(0xe7),{'UserId':Number(_0x1edaf6[_0x35d3b3(0x12c)][_0x35d3b3(0x14d)]),'VoiceQueueId':Number(_0x1edaf6[_0x35d3b3(0xfb)]['id'])});});})['then'](function(_0x2d37b7){const _0x107b49=_0x366c7e;return db[_0x107b49(0x153)][_0x107b49(0x108)]({'where':{'VoiceQueueId':_0x1edaf6[_0x107b49(0xfb)]['id'],'UserId':_0x1edaf6[_0x107b49(0x12c)][_0x107b49(0x14d)]}})[_0x107b49(0x149)](function(){return _0x2d37b7;});})[_0x366c7e(0x149)](respondWithStatusCode(_0x445ec8,null))['catch'](handleError(_0x445ec8,null));},exports[a903_0x15cc44(0x126)]=function(_0x4a9cbf,_0x3c2436){const _0x5e1f2a=a903_0x15cc44;let _0x3246ea={};const _0x3007bd={};let _0x508499,_0xa04609;return db[_0x5e1f2a(0xcf)]['findOne']({'where':{'id':_0x4a9cbf[_0x5e1f2a(0xfb)]['id']}})[_0x5e1f2a(0x149)](handleEntityNotFound(_0x3c2436,null))['then'](function(_0x18c5e0){const _0x440b2d=_0x5e1f2a;if(_0x18c5e0)return _0x508499=_0x18c5e0,_0x3007bd[_0x440b2d(0x123)]=_[_0x440b2d(0xd7)](db[_0x440b2d(0x107)]['rawAttributes']),_0x3007bd[_0x440b2d(0x12c)]=_['keys'](_0x4a9cbf[_0x440b2d(0x12c)]),_0x3007bd['filters']=_['intersection'](_0x3007bd[_0x440b2d(0x123)],_0x3007bd[_0x440b2d(0x12c)]),_0x3246ea[_0x440b2d(0xd6)]=_['intersection'](_0x3007bd[_0x440b2d(0x123)],qs[_0x440b2d(0xce)](_0x4a9cbf['query'][_0x440b2d(0xce)])),_0x3246ea[_0x440b2d(0xd6)]=_0x3246ea['attributes'][_0x440b2d(0x10d)]?_0x3246ea[_0x440b2d(0xd6)]:_0x3007bd['model'],_0x3246ea[_0x440b2d(0xcb)]=qs['sort'](_0x4a9cbf['query'][_0x440b2d(0xeb)]),_0x3246ea[_0x440b2d(0x112)]=qs[_0x440b2d(0x166)](_[_0x440b2d(0x140)](_0x4a9cbf['query'],_0x3007bd[_0x440b2d(0x166)])),_0x4a9cbf[_0x440b2d(0x12c)][_0x440b2d(0xf8)]&&(_0x3246ea[_0x440b2d(0x112)]=_[_0x440b2d(0xdc)](_0x3246ea[_0x440b2d(0x112)],{[Op['or']]:_['map'](_0x3246ea[_0x440b2d(0xd6)],function(_0x1178da){const _0x22ca48=_0x440b2d,_0x5b34d6={};return _0x5b34d6[_0x1178da]={[Op['like']]:'%'+_0x4a9cbf[_0x22ca48(0x12c)][_0x22ca48(0xf8)]+'%'},_0x5b34d6;})})),_0x3246ea=_[_0x440b2d(0xdc)]({},_0x3246ea,_0x4a9cbf[_0x440b2d(0x11c)]),_0x508499[_0x440b2d(0x126)](_0x3246ea);})[_0x5e1f2a(0x149)](function(_0x3dcb19){const _0x29ca2c=_0x5e1f2a;if(_0x3dcb19)return _0xa04609=_0x3dcb19[_0x29ca2c(0x10d)],typeof _0x4a9cbf[_0x29ca2c(0x12c)][_0x29ca2c(0xea)]===_0x29ca2c(0x14f)&&(_0x3246ea[_0x29ca2c(0x129)]=qs['limit'](_0x4a9cbf[_0x29ca2c(0x12c)][_0x29ca2c(0x129)]),_0x3246ea[_0x29ca2c(0x152)]=qs['offset'](_0x4a9cbf[_0x29ca2c(0x12c)][_0x29ca2c(0x152)])),_0x508499[_0x29ca2c(0x126)](_0x3246ea);})['then'](function(_0x108851){if(_0x108851)return _0x108851?{'count':_0xa04609,'rows':_0x108851}:null;})[_0x5e1f2a(0x149)](respondWithResult(_0x3c2436,null))['catch'](handleError(_0x3c2436,null));},exports[a903_0x15cc44(0x10b)]=function(_0x2fc42,_0x408c21){const _0x15be6f=a903_0x15cc44;let _0x35e42d={};const _0x42de4e={};let _0x336267,_0x22273c;return db[_0x15be6f(0xcf)]['findOne']({'where':{'id':_0x2fc42[_0x15be6f(0xfb)]['id']}})[_0x15be6f(0x149)](handleEntityNotFound(_0x408c21,null))[_0x15be6f(0x149)](function(_0xda37f8){const _0x512e86=_0x15be6f;if(_0xda37f8)return _0x336267=_0xda37f8,_0x42de4e[_0x512e86(0x123)]=_[_0x512e86(0xd7)](db[_0x512e86(0x153)][_0x512e86(0x12f)]),_0x42de4e[_0x512e86(0x12c)]=_[_0x512e86(0xd7)](_0x2fc42[_0x512e86(0x12c)]),_0x42de4e[_0x512e86(0x166)]=_[_0x512e86(0x160)](_0x42de4e['model'],_0x42de4e['query']),_0x35e42d[_0x512e86(0xd6)]=_[_0x512e86(0x160)](_0x42de4e[_0x512e86(0x123)],qs[_0x512e86(0xce)](_0x2fc42[_0x512e86(0x12c)][_0x512e86(0xce)])),_0x35e42d[_0x512e86(0xd6)]=_0x35e42d[_0x512e86(0xd6)]['length']?_0x35e42d[_0x512e86(0xd6)]:_0x42de4e[_0x512e86(0x123)],_0x35e42d[_0x512e86(0xcb)]=qs[_0x512e86(0xeb)](_0x2fc42[_0x512e86(0x12c)][_0x512e86(0xeb)]),_0x35e42d[_0x512e86(0x112)]=qs['filters'](_[_0x512e86(0x140)](_0x2fc42[_0x512e86(0x12c)],_0x42de4e[_0x512e86(0x166)])),_0x2fc42['query'][_0x512e86(0xf8)]&&(_0x35e42d[_0x512e86(0x112)]=_[_0x512e86(0xdc)](_0x35e42d[_0x512e86(0x112)],{[Op['or']]:_[_0x512e86(0x103)](_0x35e42d[_0x512e86(0xd6)],function(_0x44647c){const _0x7725fb=_0x512e86,_0x3ff6d6={};return _0x3ff6d6[_0x44647c]={[Op[_0x7725fb(0xd3)]]:'%'+_0x2fc42[_0x7725fb(0x12c)][_0x7725fb(0xf8)]+'%'},_0x3ff6d6;})})),_0x35e42d=_[_0x512e86(0xdc)]({},_0x35e42d,_0x2fc42[_0x512e86(0x11c)]),_0x336267[_0x512e86(0x10b)](_0x35e42d);})[_0x15be6f(0x149)](function(_0x249188){const _0xeb49e7=_0x15be6f;if(_0x249188)return _0x22273c=_0x249188['length'],typeof _0x2fc42[_0xeb49e7(0x12c)][_0xeb49e7(0xea)]===_0xeb49e7(0x14f)&&(_0x35e42d[_0xeb49e7(0x129)]=qs['limit'](_0x2fc42[_0xeb49e7(0x12c)][_0xeb49e7(0x129)]),_0x35e42d[_0xeb49e7(0x152)]=qs['offset'](_0x2fc42[_0xeb49e7(0x12c)][_0xeb49e7(0x152)])),_0x336267[_0xeb49e7(0x10b)](_0x35e42d);})['then'](function(_0x3bbc44){return _0x3bbc44?{'count':_0x22273c,'rows':_0x3bbc44}:null;})[_0x15be6f(0x149)](respondWithResult(_0x408c21,null))['catch'](handleError(_0x408c21,null));},exports[a903_0x15cc44(0x106)]=function(_0x33fe93,_0x28e3f3){const _0x3b3650=a903_0x15cc44;let _0xbf79b9={};const _0x296274={};let _0x30fb49,_0x23be3e;return db[_0x3b3650(0xcf)]['findOne']({'where':{'id':_0x33fe93[_0x3b3650(0xfb)]['id']}})['then'](handleEntityNotFound(_0x28e3f3,null))[_0x3b3650(0x149)](function(_0x276eb7){const _0x4e8c5a=_0x3b3650;if(_0x276eb7)return _0x30fb49=_0x276eb7,_0x296274[_0x4e8c5a(0x123)]=_['keys'](db['CmList'][_0x4e8c5a(0x12f)]),_0x296274[_0x4e8c5a(0x12c)]=_[_0x4e8c5a(0xd7)](_0x33fe93[_0x4e8c5a(0x12c)]),_0x296274[_0x4e8c5a(0x166)]=_[_0x4e8c5a(0x160)](_0x296274['model'],_0x296274[_0x4e8c5a(0x12c)]),_0xbf79b9[_0x4e8c5a(0xd6)]=_['intersection'](_0x296274[_0x4e8c5a(0x123)],qs[_0x4e8c5a(0xce)](_0x33fe93[_0x4e8c5a(0x12c)]['fields'])),_0xbf79b9[_0x4e8c5a(0xd6)]=_0xbf79b9[_0x4e8c5a(0xd6)][_0x4e8c5a(0x10d)]?_0xbf79b9[_0x4e8c5a(0xd6)]:_0x296274['model'],_0xbf79b9[_0x4e8c5a(0xcb)]=qs[_0x4e8c5a(0xeb)](_0x33fe93[_0x4e8c5a(0x12c)]['sort']),_0xbf79b9[_0x4e8c5a(0x112)]=qs[_0x4e8c5a(0x166)](_[_0x4e8c5a(0x140)](_0x33fe93['query'],_0x296274[_0x4e8c5a(0x166)])),_0x33fe93['query'][_0x4e8c5a(0xf8)]&&(_0xbf79b9[_0x4e8c5a(0x112)]=_[_0x4e8c5a(0xdc)](_0xbf79b9[_0x4e8c5a(0x112)],{[Op['or']]:_[_0x4e8c5a(0x103)](_0xbf79b9[_0x4e8c5a(0xd6)],function(_0x1789bd){const _0x4471c6=_0x4e8c5a,_0x1f0e55={};return _0x1f0e55[_0x1789bd]={[Op[_0x4471c6(0xd3)]]:'%'+_0x33fe93[_0x4471c6(0x12c)]['filter']+'%'},_0x1f0e55;})})),_0xbf79b9=_[_0x4e8c5a(0xdc)]({},_0xbf79b9,_0x33fe93['options']),_0x30fb49[_0x4e8c5a(0x106)](_0xbf79b9);})[_0x3b3650(0x149)](function(_0x46e5eb){const _0x417938=_0x3b3650;if(_0x46e5eb)return _0x23be3e=_0x46e5eb['length'],typeof _0x33fe93[_0x417938(0x12c)]['nolimit']===_0x417938(0x14f)&&(_0xbf79b9[_0x417938(0x129)]=qs[_0x417938(0x129)](_0x33fe93[_0x417938(0x12c)]['limit']),_0xbf79b9[_0x417938(0x152)]=qs[_0x417938(0x152)](_0x33fe93[_0x417938(0x12c)][_0x417938(0x152)])),_0x30fb49[_0x417938(0x106)](_0xbf79b9);})['then'](function(_0x3504c8){if(_0x3504c8)return _0x3504c8?{'count':_0x23be3e,'rows':_0x3504c8}:null;})[_0x3b3650(0x149)](respondWithResult(_0x28e3f3,null))[_0x3b3650(0x104)](handleError(_0x28e3f3,null));},exports[a903_0x15cc44(0x162)]=function(_0x3112a9,_0x1cad75){const _0x4161d9=a903_0x15cc44;let _0x65fe5d,_0x560f87;return db['VoiceQueue'][_0x4161d9(0x10c)]({'where':{'id':_0x3112a9[_0x4161d9(0xfb)]['id']}})[_0x4161d9(0x149)](handleEntityNotFound(_0x1cad75,null))[_0x4161d9(0x149)](function(_0x5ca7dd){const _0x2652c4=_0x4161d9;if(_0x5ca7dd)return _0x560f87=_0x5ca7dd,_0x5ca7dd[_0x2652c4(0x162)](_0x3112a9['body']['ids'],{'through':_[_0x2652c4(0x167)](_0x3112a9[_0x2652c4(0x10f)],[_0x2652c4(0x14d),'id'])});return null;})[_0x4161d9(0x149)](function(_0x486edb){const _0x470ebf=_0x4161d9;let _0x505eac;_0x65fe5d=_0x486edb||[];const _0x51a4fe=[];if(_0x486edb){for(let _0x587dec=0x0;_0x587dec<_0x486edb['length'];_0x587dec+=0x1){const _0xf4fd0f=_0x486edb[_0x587dec]['get']({'plain':!![]});_0x560f87['dialCheckDuplicateType']=_0x3112a9[_0x470ebf(0x10f)]['dialCheckDuplicateType']?_0x3112a9['body']['dialCheckDuplicateType']:_0x560f87[_0x470ebf(0x116)];switch(_0x560f87[_0x470ebf(0x116)]){case _0x470ebf(0xe1):_0x505eac=squel['insert']()[_0x470ebf(0x11b)]('cm_hopper')[_0x470ebf(0x120)]([_0x470ebf(0xd1),_0x470ebf(0x165),_0x470ebf(0x121),_0x470ebf(0x124),'VoiceQueueId','createdAt',_0x470ebf(0x158)],squel['select']()['field'](_0x470ebf(0xd1),'phone')['field'](_0x470ebf(0xdf),_0x470ebf(0x165))['field']('id',_0x470ebf(0x121))['field'](_0xf4fd0f['CmListId'][_0x470ebf(0xfd)](),_0x470ebf(0x124))[_0x470ebf(0x13d)](_0x3112a9[_0x470ebf(0xfb)]['id'][_0x470ebf(0xfd)](),'VoiceQueueId')[_0x470ebf(0x13d)](_0x470ebf(0xdf),'createdAt')[_0x470ebf(0x13d)](_0x470ebf(0xdf),_0x470ebf(0x158))[_0x470ebf(0xdd)](_0x470ebf(0x119))['where'](_0x470ebf(0xed))[_0x470ebf(0x112)](_0x470ebf(0x113),_0xf4fd0f[_0x470ebf(0xf4)][_0x470ebf(0xfd)]())[_0x470ebf(0x112)](_0x470ebf(0x14e))['where'](_0x470ebf(0x15d),squel[_0x470ebf(0x161)]()['field'](_0x470ebf(0xf6))[_0x470ebf(0xdd)](_0x470ebf(0xf9))[_0x470ebf(0x112)](_0x470ebf(0x11d),_0x3112a9[_0x470ebf(0xfb)]['id'][_0x470ebf(0xfd)]()))['where'](_0x470ebf(0x15d),squel[_0x470ebf(0x161)]()[_0x470ebf(0x13d)](_0x470ebf(0x155))[_0x470ebf(0xdd)](_0x470ebf(0xd0))[_0x470ebf(0x112)]('VoiceQueueId\x20=\x20?',_0x3112a9[_0x470ebf(0xfb)]['id'][_0x470ebf(0xfd)]())))['toString']();break;case'onlyIfOpen':_0x505eac=squel['insert']()[_0x470ebf(0x11b)]('cm_hopper')[_0x470ebf(0x120)]([_0x470ebf(0xd1),_0x470ebf(0x165),_0x470ebf(0x121),_0x470ebf(0x124),_0x470ebf(0x13a),_0x470ebf(0xf0),'updatedAt'],squel[_0x470ebf(0x161)]()[_0x470ebf(0x13d)]('phone',_0x470ebf(0xd1))[_0x470ebf(0x13d)](_0x470ebf(0xdf),_0x470ebf(0x165))[_0x470ebf(0x13d)]('id',_0x470ebf(0x121))[_0x470ebf(0x13d)](_0xf4fd0f[_0x470ebf(0xf4)][_0x470ebf(0xfd)](),_0x470ebf(0x124))['field'](_0x3112a9[_0x470ebf(0xfb)]['id'][_0x470ebf(0xfd)](),'VoiceQueueId')['field'](_0x470ebf(0xdf),_0x470ebf(0xf0))['field'](_0x470ebf(0xdf),_0x470ebf(0x158))['from'](_0x470ebf(0x119))[_0x470ebf(0x112)](_0x470ebf(0xed))[_0x470ebf(0x112)](_0x470ebf(0x113),_0xf4fd0f[_0x470ebf(0xf4)]['toString']())['where'](_0x470ebf(0x14e))['where'](_0x470ebf(0x15d),squel[_0x470ebf(0x161)]()[_0x470ebf(0x13d)](_0x470ebf(0x155))[_0x470ebf(0xdd)]('cm_hopper')['where'](_0x470ebf(0x11d),_0x3112a9['params']['id'][_0x470ebf(0xfd)]())))[_0x470ebf(0xfd)]();break;default:_0x505eac=squel[_0x470ebf(0x117)]()['into'](_0x470ebf(0xd0))['fromQuery']([_0x470ebf(0xd1),_0x470ebf(0x165),_0x470ebf(0x121),_0x470ebf(0x124),_0x470ebf(0x13a),_0x470ebf(0xf0),_0x470ebf(0x158)],squel['select']()[_0x470ebf(0x13d)](_0x470ebf(0xd1),_0x470ebf(0xd1))[_0x470ebf(0x13d)](_0x470ebf(0xdf),_0x470ebf(0x165))[_0x470ebf(0x13d)]('id','ContactId')['field'](_0xf4fd0f[_0x470ebf(0xf4)][_0x470ebf(0xfd)](),_0x470ebf(0x124))[_0x470ebf(0x13d)](_0x3112a9[_0x470ebf(0xfb)]['id'][_0x470ebf(0xfd)](),_0x470ebf(0x13a))[_0x470ebf(0x13d)]('NOW()',_0x470ebf(0xf0))['field'](_0x470ebf(0xdf),'updatedAt')[_0x470ebf(0xdd)](_0x470ebf(0x119))['where'](_0x470ebf(0xed))['where'](_0x470ebf(0x113),_0xf4fd0f[_0x470ebf(0xf4)][_0x470ebf(0xfd)]())[_0x470ebf(0x112)](_0x470ebf(0x14e)))[_0x470ebf(0xfd)]();}_0x51a4fe[_0x470ebf(0x14b)](db[_0x470ebf(0x151)]['query'](_0x505eac));}return Promise['all'](_0x51a4fe);}})[_0x4161d9(0x149)](function(){return _0x65fe5d;})[_0x4161d9(0x149)](respondWithResult(_0x1cad75,null))['catch'](handleError(_0x1cad75,null));},exports[a903_0x15cc44(0x133)]=function(_0x39c2c3,_0x397555){const _0x77adc3=a903_0x15cc44;return db[_0x77adc3(0xcf)][_0x77adc3(0x10c)]({'where':{'id':_0x39c2c3[_0x77adc3(0xfb)]['id']}})[_0x77adc3(0x149)](handleEntityNotFound(_0x397555,null))[_0x77adc3(0x149)](function(_0x3732b0){const _0x40c09a=_0x77adc3;if(_0x3732b0)return _0x3732b0['removeLists'](_0x39c2c3[_0x40c09a(0x12c)][_0x40c09a(0x14d)]);})[_0x77adc3(0x149)](function(_0x592b1e){const _0x213085=_0x77adc3;if(_0x592b1e)return db[_0x213085(0x150)][_0x213085(0x108)]({'where':{'ListId':_0x39c2c3[_0x213085(0x12c)][_0x213085(0x14d)],'VoiceQueueId':_0x39c2c3['params']['id']}})[_0x213085(0x149)](function(){return _0x592b1e;});})[_0x77adc3(0x149)](respondWithStatusCode(_0x397555,null))[_0x77adc3(0x104)](handleError(_0x397555,null));},exports[a903_0x15cc44(0x135)]=function(_0x1de7b1,_0x168771){const _0x49800b=a903_0x15cc44;let _0x3af64c={};const _0x2213a5={};let _0x32b402,_0x458093;return db[_0x49800b(0xcf)][_0x49800b(0x10c)]({'where':{'id':_0x1de7b1[_0x49800b(0xfb)]['id']}})[_0x49800b(0x149)](handleEntityNotFound(_0x168771,null))[_0x49800b(0x149)](function(_0x151517){const _0x470d95=_0x49800b;if(_0x151517)return _0x32b402=_0x151517,_0x2213a5[_0x470d95(0x123)]=_[_0x470d95(0xd7)](db[_0x470d95(0x154)]['rawAttributes']),_0x2213a5[_0x470d95(0x12c)]=_[_0x470d95(0xd7)](_0x1de7b1['query']),_0x2213a5[_0x470d95(0x166)]=_['intersection'](_0x2213a5['model'],_0x2213a5[_0x470d95(0x12c)]),_0x3af64c[_0x470d95(0xd6)]=_[_0x470d95(0x160)](_0x2213a5[_0x470d95(0x123)],qs[_0x470d95(0xce)](_0x1de7b1[_0x470d95(0x12c)][_0x470d95(0xce)])),_0x3af64c[_0x470d95(0xd6)]=_0x3af64c['attributes']['length']?_0x3af64c[_0x470d95(0xd6)]:_0x2213a5['model'],_0x3af64c['order']=qs['sort'](_0x1de7b1[_0x470d95(0x12c)][_0x470d95(0xeb)]),_0x3af64c[_0x470d95(0x112)]=qs['filters'](_[_0x470d95(0x140)](_0x1de7b1[_0x470d95(0x12c)],_0x2213a5['filters'])),_0x1de7b1[_0x470d95(0x12c)][_0x470d95(0xf8)]&&(_0x3af64c['where']=_[_0x470d95(0xdc)](_0x3af64c[_0x470d95(0x112)],{[Op['or']]:_[_0x470d95(0x103)](_0x3af64c[_0x470d95(0xd6)],function(_0xd74390){const _0x41ff07=_0x470d95,_0x32455c={};return _0x32455c[_0xd74390]={[Op[_0x41ff07(0xd3)]]:'%'+_0x1de7b1['query'][_0x41ff07(0xf8)]+'%'},_0x32455c;})})),_0x3af64c=_[_0x470d95(0xdc)]({},_0x3af64c,_0x1de7b1[_0x470d95(0x11c)]),_0x32b402[_0x470d95(0x135)](_0x3af64c);})[_0x49800b(0x149)](function(_0x38344d){const _0x540447=_0x49800b;if(_0x38344d)return _0x458093=_0x38344d[_0x540447(0x10d)],typeof _0x1de7b1[_0x540447(0x12c)]['nolimit']===_0x540447(0x14f)&&(_0x3af64c[_0x540447(0x129)]=qs['limit'](_0x1de7b1[_0x540447(0x12c)][_0x540447(0x129)]),_0x3af64c[_0x540447(0x152)]=qs[_0x540447(0x152)](_0x1de7b1[_0x540447(0x12c)]['offset'])),_0x32b402['getBlackLists'](_0x3af64c);})[_0x49800b(0x149)](function(_0x12075f){if(_0x12075f)return _0x12075f?{'count':_0x458093,'rows':_0x12075f}:null;})[_0x49800b(0x149)](respondWithResult(_0x168771,null))['catch'](handleError(_0x168771,null));},exports[a903_0x15cc44(0x136)]=function(_0x1431d6,_0xe33bf4){const _0x1a5bea=a903_0x15cc44;let _0x7401f8;return db[_0x1a5bea(0xcf)][_0x1a5bea(0x10c)]({'where':{'id':_0x1431d6[_0x1a5bea(0xfb)]['id']}})['then'](handleEntityNotFound(_0xe33bf4,null))[_0x1a5bea(0x149)](function(_0x295b31){const _0x3fe71=_0x1a5bea;if(_0x295b31)return _0x295b31[_0x3fe71(0x136)](_0x1431d6[_0x3fe71(0x10f)][_0x3fe71(0x14d)],{'through':_[_0x3fe71(0x167)](_0x1431d6[_0x3fe71(0x10f)],['ids','id'])});return null;})[_0x1a5bea(0x149)](function(_0x476ac0){const _0x1809e8=_0x1a5bea;let _0x3d7aea;_0x7401f8=_0x476ac0||[];const _0x24484f=[];if(_0x476ac0){for(let _0x5ca7a2=0x0;_0x5ca7a2<_0x476ac0[_0x1809e8(0x10d)];_0x5ca7a2+=0x1){const _0x2eb3b6=_0x476ac0[_0x5ca7a2][_0x1809e8(0x142)]({'plain':!![]});_0x3d7aea=squel[_0x1809e8(0x117)]()[_0x1809e8(0x11b)](_0x1809e8(0x144))['fromQuery']([_0x1809e8(0xd1),'ContactId',_0x1809e8(0x124),_0x1809e8(0x13a),'createdAt',_0x1809e8(0x158)],squel[_0x1809e8(0x161)]()[_0x1809e8(0x13d)](_0x1809e8(0xd1),_0x1809e8(0xd1))[_0x1809e8(0x13d)]('id',_0x1809e8(0x121))[_0x1809e8(0x13d)](_0x2eb3b6[_0x1809e8(0xf4)][_0x1809e8(0xfd)](),_0x1809e8(0x124))['field'](_0x1431d6[_0x1809e8(0xfb)]['id']['toString'](),_0x1809e8(0x13a))[_0x1809e8(0x13d)](_0x1809e8(0xdf),_0x1809e8(0xf0))['field'](_0x1809e8(0xdf),_0x1809e8(0x158))[_0x1809e8(0xdd)]('cm_contacts')[_0x1809e8(0x112)]('deletedAt\x20IS\x20NULL')['where'](_0x1809e8(0x113),_0x2eb3b6[_0x1809e8(0xf4)][_0x1809e8(0xfd)]())[_0x1809e8(0x112)](_0x1809e8(0x14e)))['toString'](),_0x24484f['push'](db['sequelize'][_0x1809e8(0x12c)](_0x3d7aea));}return Promise['all'](_0x24484f);}})['then'](function(){return _0x7401f8;})[_0x1a5bea(0x149)](respondWithResult(_0xe33bf4,null))['catch'](handleError(_0xe33bf4,null));},exports[a903_0x15cc44(0xcc)]=function(_0x54f4ba,_0xe7432b){const _0x1437c2=a903_0x15cc44;return db[_0x1437c2(0xcf)][_0x1437c2(0x10c)]({'where':{'id':_0x54f4ba[_0x1437c2(0xfb)]['id']}})[_0x1437c2(0x149)](handleEntityNotFound(_0xe7432b,null))[_0x1437c2(0x149)](function(_0x1c74ae){const _0x16a035=_0x1437c2;if(_0x1c74ae)return _0x1c74ae[_0x16a035(0xcc)](_0x54f4ba[_0x16a035(0x12c)]['ids']);})[_0x1437c2(0x149)](function(_0x599cf0){const _0x131f8c=_0x1437c2;if(_0x599cf0)return db[_0x131f8c(0xef)][_0x131f8c(0x108)]({'where':{'ListId':_0x54f4ba[_0x131f8c(0x12c)][_0x131f8c(0x14d)],'VoiceQueueId':_0x54f4ba[_0x131f8c(0xfb)]['id']}})[_0x131f8c(0x149)](function(){return _0x599cf0;});})[_0x1437c2(0x149)](respondWithStatusCode(_0xe7432b,null))[_0x1437c2(0x104)](handleError(_0xe7432b,null));}; \ No newline at end of file diff --git a/server/api/voiceQueue/voiceQueue.events.js b/server/api/voiceQueue/voiceQueue.events.js index 1209ece..98b7899 100644 --- a/server/api/voiceQueue/voiceQueue.events.js +++ b/server/api/voiceQueue/voiceQueue.events.js @@ -1 +1 @@ -const a754_0x258a=['../../mysqldb','VoiceQueue','emit','setMaxListeners','addHook','remove','update','events','undefined','save'];(function(_0x48f33c,_0x258aba){const _0x4327a2=function(_0x10807a){while(--_0x10807a){_0x48f33c['push'](_0x48f33c['shift']());}};_0x4327a2(++_0x258aba);}(a754_0x258a,0x99));const a754_0x4327=function(_0x48f33c,_0x258aba){_0x48f33c=_0x48f33c-0x0;let _0x4327a2=a754_0x258a[_0x48f33c];return _0x4327a2;};const _0x163c55=a754_0x4327;'use strict';const EventEmitter=require(_0x163c55('0x4')),VoiceQueue=require(_0x163c55('0x7'))['db'][_0x163c55('0x8')],VoiceQueueEvents=new EventEmitter();VoiceQueueEvents[_0x163c55('0x0')](0x0);const events={'afterCreate':_0x163c55('0x6'),'afterUpdate':_0x163c55('0x3'),'afterDestroy':_0x163c55('0x2')};function emitEvent(_0x10807a){return function(_0x1afdc2){const _0x4ee77b=a754_0x4327;VoiceQueueEvents[_0x4ee77b('0x9')](_0x10807a+':'+_0x1afdc2['id'],_0x1afdc2),VoiceQueueEvents[_0x4ee77b('0x9')](_0x10807a,_0x1afdc2);};}for(const e in events){if(typeof events[e]!==_0x163c55('0x5')){const event=events[e];VoiceQueue[_0x163c55('0x1')](e,emitEvent(event));}}module['exports']=VoiceQueueEvents; \ No newline at end of file +const a904_0xc635=['remove','events','update','../../mysqldb','emit','setMaxListeners','VoiceQueue','exports','undefined'];(function(_0x25f902,_0xd352be){const _0xc63599=function(_0x4a068a){while(--_0x4a068a){_0x25f902['push'](_0x25f902['shift']());}};_0xc63599(++_0xd352be);}(a904_0xc635,0xdb));const a904_0x4a06=function(_0x25f902,_0xd352be){_0x25f902=_0x25f902-0xda;let _0xc63599=a904_0xc635[_0x25f902];return _0xc63599;};const a904_0x383da7=a904_0x4a06;'use strict';const EventEmitter=require(a904_0x383da7(0xe1)),VoiceQueue=require(a904_0x383da7(0xda))['db'][a904_0x383da7(0xdd)],VoiceQueueEvents=new EventEmitter();VoiceQueueEvents[a904_0x383da7(0xdc)](0x0);const events={'afterCreate':'save','afterUpdate':a904_0x383da7(0xe2),'afterDestroy':a904_0x383da7(0xe0)};function emitEvent(_0x32aefc){return function(_0x38ec78){const _0x10187d=a904_0x4a06;VoiceQueueEvents['emit'](_0x32aefc+':'+_0x38ec78['id'],_0x38ec78),VoiceQueueEvents[_0x10187d(0xdb)](_0x32aefc,_0x38ec78);};}for(const e in events){if(typeof events[e]!==a904_0x383da7(0xdf)){const event=events[e];VoiceQueue['addHook'](e,emitEvent(event));}}module[a904_0x383da7(0xde)]=VoiceQueueEvents; \ No newline at end of file diff --git a/server/api/voiceQueue/voiceQueue.model.js b/server/api/voiceQueue/voiceQueue.model.js index 8065eda..e974f0f 100644 --- a/server/api/voiceQueue/voiceQueue.model.js +++ b/server/api/voiceQueue/voiceQueue.model.js @@ -1 +1 @@ -const a755_0x6bfc=['VoiceQueue','./voiceQueue.attributes','define'];(function(_0x228ef4,_0x6bfc6d){const _0x564b6a=function(_0x5e0810){while(--_0x5e0810){_0x228ef4['push'](_0x228ef4['shift']());}};_0x564b6a(++_0x6bfc6d);}(a755_0x6bfc,0x155));const a755_0x564b=function(_0x228ef4,_0x6bfc6d){_0x228ef4=_0x228ef4-0x0;let _0x564b6a=a755_0x6bfc[_0x228ef4];return _0x564b6a;};const _0x22bdc9=a755_0x564b;'use strict';const attributes=require(_0x22bdc9('0x2'));module['exports']=function(_0x5e0810){const _0xec8132=_0x22bdc9,_0x3834df=_0x5e0810[_0xec8132('0x0')](_0xec8132('0x1'),attributes,{'tableName':'voice_queues','paranoid':![],'indexes':[],'timestamps':!![]});return _0x3834df;}; \ No newline at end of file +const a905_0x90ce=['sequelize','./voiceQueue.options','function','exports','./voiceQueue.attributes','VoiceQueue'];(function(_0x3d750d,_0x9f6754){const _0x90ce10=function(_0x388784){while(--_0x388784){_0x3d750d['push'](_0x3d750d['shift']());}};_0x90ce10(++_0x9f6754);}(a905_0x90ce,0x80));const a905_0x3887=function(_0x3d750d,_0x9f6754){_0x3d750d=_0x3d750d-0x13a;let _0x90ce10=a905_0x90ce[_0x3d750d];return _0x90ce10;};const a905_0x398895=a905_0x3887;'use strict';const {Model}=require(a905_0x398895(0x13e)),{attributes}=require(a905_0x398895(0x13c)),{options}=require(a905_0x398895(0x13f));class VoiceQueue extends Model{}function init(_0x25673b,_0x165a98){const _0x500090=a905_0x398895,_0x4db062=options(_0x25673b),_0x371b3c=typeof _0x165a98===_0x500090(0x13a)?_0x165a98(_0x4db062):_0x4db062;return VoiceQueue['init'](attributes,_0x371b3c),VoiceQueue;}module[a905_0x398895(0x13b)][a905_0x398895(0x13d)]=VoiceQueue,module[a905_0x398895(0x13b)]['init']=init; \ No newline at end of file diff --git a/server/api/voiceQueue/voiceQueue.options.js b/server/api/voiceQueue/voiceQueue.options.js new file mode 100644 index 0000000..2a98c77 --- /dev/null +++ b/server/api/voiceQueue/voiceQueue.options.js @@ -0,0 +1 @@ +var a906_0x1256=['exports','options','voice_queues'];(function(_0x436860,_0x55e925){var _0x1256d9=function(_0x175af6){while(--_0x175af6){_0x436860['push'](_0x436860['shift']());}};_0x1256d9(++_0x55e925);}(a906_0x1256,0x11b));var a906_0x175a=function(_0x436860,_0x55e925){_0x436860=_0x436860-0x199;var _0x1256d9=a906_0x1256[_0x436860];return _0x1256d9;};var a906_0x30eb1a=a906_0x175a;function options(_0x435588){var _0x3f1f06=a906_0x175a;return{'sequelize':_0x435588,'tableName':_0x3f1f06(0x19a),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a906_0x30eb1a(0x19b)][a906_0x30eb1a(0x199)]=options; \ No newline at end of file diff --git a/server/api/voiceQueue/voiceQueue.rpc.js b/server/api/voiceQueue/voiceQueue.rpc.js index c08be10..2fae1f2 100644 --- a/server/api/voiceQueue/voiceQueue.rpc.js +++ b/server/api/voiceQueue/voiceQueue.rpc.js @@ -1 +1 @@ -const a756_0x57ef=['attributes','info','./voiceQueue.socket','include','raw','rpc','options','ShowVoiceQueue','../../rediscache','register','VoiceQueue','debug','../../config/logger','message','where','../../mysqldb','map','GetVoiceQueue','stringify','findAll','error','model','then','catch','lodash'];(function(_0x6952e0,_0x57efb7){const _0x1c48f1=function(_0x22651c){while(--_0x22651c){_0x6952e0['push'](_0x6952e0['shift']());}};_0x1c48f1(++_0x57efb7);}(a756_0x57ef,0xb2));const a756_0x1c48=function(_0x6952e0,_0x57efb7){_0x6952e0=_0x6952e0-0x0;let _0x1c48f1=a756_0x57ef[_0x6952e0];return _0x1c48f1;};const _0x2d0907=a756_0x1c48;'use strict';const _=require(_0x2d0907('0x15')),db=require(_0x2d0907('0xc'))['db'],logger=require(_0x2d0907('0x9'))(_0x2d0907('0x2')),{getSocket}=require(_0x2d0907('0x5')),socket=getSocket();require(_0x2d0907('0x18'))[_0x2d0907('0x6')](socket),exports[_0x2d0907('0xe')]=function(_0x22651c){const _0x2462cb=this;return new Promise(function(_0x497f99,_0x53d078){const _0x69aaa2=a756_0x1c48;return db[_0x69aaa2('0x7')][_0x69aaa2('0x10')]({'raw':_0x22651c[_0x69aaa2('0x3')]?_0x22651c[_0x69aaa2('0x3')][_0x69aaa2('0x1')]===undefined?!![]:![]:!![],'where':_0x22651c[_0x69aaa2('0x3')]?_0x22651c['options']['where']||null:null,'attributes':_0x22651c[_0x69aaa2('0x3')]?_0x22651c[_0x69aaa2('0x3')][_0x69aaa2('0x16')]||null:null,'limit':_0x22651c[_0x69aaa2('0x3')]?_0x22651c[_0x69aaa2('0x3')]['limit']||null:null,'include':_0x22651c['options']?_0x22651c[_0x69aaa2('0x3')][_0x69aaa2('0x0')]?_[_0x69aaa2('0xd')](_0x22651c['options']['include'],function(_0x336e14){const _0x23bc65=_0x69aaa2;return{'model':db[_0x336e14[_0x23bc65('0x12')]],'as':_0x336e14['as'],'attributes':_0x336e14[_0x23bc65('0x16')],'include':_0x336e14[_0x23bc65('0x0')]?_[_0x23bc65('0xd')](_0x336e14[_0x23bc65('0x0')],function(_0x46eb61){const _0x3461fd=_0x23bc65;return{'model':db[_0x46eb61['model']],'as':_0x46eb61['as'],'attributes':_0x46eb61[_0x3461fd('0x16')],'include':_0x46eb61[_0x3461fd('0x0')]?_[_0x3461fd('0xd')](_0x46eb61[_0x3461fd('0x0')],function(_0x6cddbf){const _0x2b4f8e=_0x3461fd;return{'model':db[_0x6cddbf[_0x2b4f8e('0x12')]],'as':_0x6cddbf['as'],'attributes':_0x6cddbf['attributes']};}):[]};}):[]};}):[]:[]})['then'](function(_0x5202b0){const _0xf08ee5=_0x69aaa2;logger['info']('GetVoiceQueue',_0x22651c),logger['debug'](_0xf08ee5('0xe'),_0x22651c,JSON['stringify'](_0x5202b0)),_0x497f99(_0x5202b0);})['catch'](function(_0x20c911){const _0x49df39=_0x69aaa2;logger[_0x49df39('0x11')](_0x49df39('0xe'),_0x20c911[_0x49df39('0xa')],_0x22651c),_0x53d078(_0x2462cb[_0x49df39('0x11')](0x1f4,_0x20c911['message']));});});},exports[_0x2d0907('0x4')]=function(_0x16d2bb){const _0x62a31a=this;return new Promise(function(_0x1ef0fd,_0x420ea7){const _0x3ce101=a756_0x1c48;return db[_0x3ce101('0x7')]['findOne']({'raw':_0x16d2bb['options']?_0x16d2bb['options'][_0x3ce101('0x1')]===undefined?!![]:![]:!![],'where':_0x16d2bb['options']?_0x16d2bb[_0x3ce101('0x3')][_0x3ce101('0xb')]||null:null,'attributes':_0x16d2bb[_0x3ce101('0x3')]?_0x16d2bb[_0x3ce101('0x3')]['attributes']||null:null,'include':_0x16d2bb['options']?_0x16d2bb[_0x3ce101('0x3')]['include']?_[_0x3ce101('0xd')](_0x16d2bb['options'][_0x3ce101('0x0')],function(_0x36b22e){const _0x165df1=_0x3ce101;return{'model':db[_0x36b22e[_0x165df1('0x12')]],'as':_0x36b22e['as'],'attributes':_0x36b22e[_0x165df1('0x16')],'include':_0x36b22e['include']?_[_0x165df1('0xd')](_0x36b22e[_0x165df1('0x0')],function(_0x2ba7f7){const _0x405ad0=_0x165df1;return{'model':db[_0x2ba7f7['model']],'as':_0x2ba7f7['as'],'attributes':_0x2ba7f7[_0x405ad0('0x16')],'include':_0x2ba7f7['include']?_['map'](_0x2ba7f7[_0x405ad0('0x0')],function(_0x2233e0){const _0x2a25c9=_0x405ad0;return{'model':db[_0x2233e0[_0x2a25c9('0x12')]],'as':_0x2233e0['as'],'attributes':_0x2233e0[_0x2a25c9('0x16')]};}):[]};}):[]};}):[]:[]})[_0x3ce101('0x13')](function(_0x4c2532){const _0x50f2bb=_0x3ce101;logger[_0x50f2bb('0x17')](_0x50f2bb('0x4'),_0x16d2bb),logger[_0x50f2bb('0x8')](_0x50f2bb('0x4'),_0x16d2bb,JSON[_0x50f2bb('0xf')](_0x4c2532)),_0x1ef0fd(_0x4c2532);})[_0x3ce101('0x14')](function(_0x499924){const _0x8b62d0=_0x3ce101;logger[_0x8b62d0('0x11')](_0x8b62d0('0x4'),_0x499924[_0x8b62d0('0xa')],_0x16d2bb),_0x420ea7(_0x62a31a['error'](0x1f4,_0x499924[_0x8b62d0('0xa')]));});});}; \ No newline at end of file +const a907_0x4e40=['findOne','debug','../../rediscache','GetVoiceQueue','model','../../mysqldb','options','where','VoiceQueue','register','include','../../config/logger','attributes','lodash','limit','catch','rpc','stringify','map','info','error','message','ShowVoiceQueue'];(function(_0x15487b,_0x224e60){const _0x4e40b8=function(_0x3072ea){while(--_0x3072ea){_0x15487b['push'](_0x15487b['shift']());}};_0x4e40b8(++_0x224e60);}(a907_0x4e40,0x10d));const a907_0x3072=function(_0x15487b,_0x224e60){_0x15487b=_0x15487b-0x188;let _0x4e40b8=a907_0x4e40[_0x15487b];return _0x4e40b8;};const a907_0x33b108=a907_0x3072;'use strict';const _=require(a907_0x33b108(0x19c)),db=require(a907_0x33b108(0x194))['db'],logger=require(a907_0x33b108(0x19a))(a907_0x33b108(0x188)),{getSocket}=require(a907_0x33b108(0x191)),socket=getSocket();require('./voiceQueue.socket')[a907_0x33b108(0x198)](socket),exports[a907_0x33b108(0x192)]=function(_0x1c40a2){const _0x317b50=this;return new Promise(function(_0x1f1fa4,_0x1cea0e){const _0xe8b084=a907_0x3072;return db[_0xe8b084(0x197)]['findAll']({'raw':_0x1c40a2[_0xe8b084(0x195)]?_0x1c40a2[_0xe8b084(0x195)]['raw']===undefined?!![]:![]:!![],'where':_0x1c40a2[_0xe8b084(0x195)]?_0x1c40a2[_0xe8b084(0x195)][_0xe8b084(0x196)]||null:null,'attributes':_0x1c40a2[_0xe8b084(0x195)]?_0x1c40a2[_0xe8b084(0x195)][_0xe8b084(0x19b)]||null:null,'limit':_0x1c40a2[_0xe8b084(0x195)]?_0x1c40a2[_0xe8b084(0x195)][_0xe8b084(0x19d)]||null:null,'include':_0x1c40a2[_0xe8b084(0x195)]?_0x1c40a2[_0xe8b084(0x195)][_0xe8b084(0x199)]?_[_0xe8b084(0x18a)](_0x1c40a2[_0xe8b084(0x195)][_0xe8b084(0x199)],function(_0x109f1d){const _0x6a72cf=_0xe8b084;return{'model':db[_0x109f1d[_0x6a72cf(0x193)]],'as':_0x109f1d['as'],'attributes':_0x109f1d[_0x6a72cf(0x19b)],'include':_0x109f1d[_0x6a72cf(0x199)]?_['map'](_0x109f1d[_0x6a72cf(0x199)],function(_0x17896a){const _0x2aa92e=_0x6a72cf;return{'model':db[_0x17896a[_0x2aa92e(0x193)]],'as':_0x17896a['as'],'attributes':_0x17896a['attributes'],'include':_0x17896a['include']?_[_0x2aa92e(0x18a)](_0x17896a['include'],function(_0xbcc7da){const _0x4d624b=_0x2aa92e;return{'model':db[_0xbcc7da[_0x4d624b(0x193)]],'as':_0xbcc7da['as'],'attributes':_0xbcc7da[_0x4d624b(0x19b)]};}):[]};}):[]};}):[]:[]})['then'](function(_0x92516b){const _0x5041ec=_0xe8b084;logger[_0x5041ec(0x18b)]('GetVoiceQueue',_0x1c40a2),logger[_0x5041ec(0x190)](_0x5041ec(0x192),_0x1c40a2,JSON[_0x5041ec(0x189)](_0x92516b)),_0x1f1fa4(_0x92516b);})['catch'](function(_0x29048a){const _0x783835=_0xe8b084;logger[_0x783835(0x18c)](_0x783835(0x192),_0x29048a[_0x783835(0x18d)],_0x1c40a2),_0x1cea0e(_0x317b50[_0x783835(0x18c)](0x1f4,_0x29048a[_0x783835(0x18d)]));});});},exports[a907_0x33b108(0x18e)]=function(_0x42ea7d){const _0x282647=this;return new Promise(function(_0x233a4,_0xe6875){const _0x505613=a907_0x3072;return db[_0x505613(0x197)][_0x505613(0x18f)]({'raw':_0x42ea7d[_0x505613(0x195)]?_0x42ea7d[_0x505613(0x195)]['raw']===undefined?!![]:![]:!![],'where':_0x42ea7d['options']?_0x42ea7d[_0x505613(0x195)][_0x505613(0x196)]||null:null,'attributes':_0x42ea7d[_0x505613(0x195)]?_0x42ea7d[_0x505613(0x195)][_0x505613(0x19b)]||null:null,'include':_0x42ea7d[_0x505613(0x195)]?_0x42ea7d[_0x505613(0x195)][_0x505613(0x199)]?_[_0x505613(0x18a)](_0x42ea7d[_0x505613(0x195)][_0x505613(0x199)],function(_0x4478d3){const _0x444286=_0x505613;return{'model':db[_0x4478d3[_0x444286(0x193)]],'as':_0x4478d3['as'],'attributes':_0x4478d3[_0x444286(0x19b)],'include':_0x4478d3['include']?_[_0x444286(0x18a)](_0x4478d3[_0x444286(0x199)],function(_0x4e40a4){const _0x9f45f9=_0x444286;return{'model':db[_0x4e40a4[_0x9f45f9(0x193)]],'as':_0x4e40a4['as'],'attributes':_0x4e40a4[_0x9f45f9(0x19b)],'include':_0x4e40a4[_0x9f45f9(0x199)]?_[_0x9f45f9(0x18a)](_0x4e40a4['include'],function(_0x2bf15e){const _0x36f231=_0x9f45f9;return{'model':db[_0x2bf15e['model']],'as':_0x2bf15e['as'],'attributes':_0x2bf15e[_0x36f231(0x19b)]};}):[]};}):[]};}):[]:[]})['then'](function(_0x2efa77){const _0x91bc86=_0x505613;logger[_0x91bc86(0x18b)](_0x91bc86(0x18e),_0x42ea7d),logger[_0x91bc86(0x190)](_0x91bc86(0x18e),_0x42ea7d,JSON['stringify'](_0x2efa77)),_0x233a4(_0x2efa77);})[_0x505613(0x19e)](function(_0xde92f4){const _0x9fe232=_0x505613;logger['error']('ShowVoiceQueue',_0xde92f4[_0x9fe232(0x18d)],_0x42ea7d),_0xe6875(_0x282647['error'](0x1f4,_0xde92f4[_0x9fe232(0x18d)]));});});}; \ No newline at end of file diff --git a/server/api/voiceQueue/voiceQueue.socket.js b/server/api/voiceQueue/voiceQueue.socket.js index bb95642..542d65d 100644 --- a/server/api/voiceQueue/voiceQueue.socket.js +++ b/server/api/voiceQueue/voiceQueue.socket.js @@ -1 +1 @@ -const a757_0xfc76=['emit','./voiceQueue.events','save','register','voiceQueue:','remove','update'];(function(_0x54423c,_0xfc76b3){const _0x34993a=function(_0x216d61){while(--_0x216d61){_0x54423c['push'](_0x54423c['shift']());}};_0x34993a(++_0xfc76b3);}(a757_0xfc76,0x1e4));const a757_0x3499=function(_0x54423c,_0xfc76b3){_0x54423c=_0x54423c-0x0;let _0x34993a=a757_0xfc76[_0x54423c];return _0x34993a;};const _0x5c96da=a757_0x3499;'use strict';const VoiceQueueEvents=require(_0x5c96da('0x0')),events=[_0x5c96da('0x1'),_0x5c96da('0x4'),_0x5c96da('0x5')];function createListener(_0x216d61,_0x5c38cf){return function(_0x1a7020){const _0x42a9e3=a757_0x3499;_0x5c38cf[_0x42a9e3('0x6')](_0x216d61,_0x1a7020);};}exports[_0x5c96da('0x2')]=function(_0x197fc3){const _0x47231d=_0x5c96da;for(let _0x17015c=0x0,_0x49d5b4=events['length'];_0x17015c<_0x49d5b4;_0x17015c++){const _0x3f6579=events[_0x17015c],_0x53bb91=createListener(_0x47231d('0x3')+_0x3f6579,_0x197fc3);VoiceQueueEvents['on'](_0x3f6579,_0x53bb91);}}; \ No newline at end of file +const a908_0x33b3=['save','length','./voiceQueue.events','register','voiceQueue:','remove','update'];(function(_0x4513e5,_0x4ab52b){const _0x33b3a8=function(_0x49326f){while(--_0x49326f){_0x4513e5['push'](_0x4513e5['shift']());}};_0x33b3a8(++_0x4ab52b);}(a908_0x33b3,0x70));const a908_0x4932=function(_0x4513e5,_0x4ab52b){_0x4513e5=_0x4513e5-0x1c9;let _0x33b3a8=a908_0x33b3[_0x4513e5];return _0x33b3a8;};const a908_0x4c8e89=a908_0x4932;'use strict';const VoiceQueueEvents=require(a908_0x4c8e89(0x1cb)),events=[a908_0x4c8e89(0x1c9),a908_0x4c8e89(0x1ce),a908_0x4c8e89(0x1cf)];function createListener(_0x80cc13,_0x468b83){return function(_0x3c3b0c){_0x468b83['emit'](_0x80cc13,_0x3c3b0c);};}exports[a908_0x4c8e89(0x1cc)]=function(_0x25ea4a){const _0x3724b6=a908_0x4c8e89;for(let _0x311d34=0x0,_0x2ebb02=events[_0x3724b6(0x1ca)];_0x311d34<_0x2ebb02;_0x311d34++){const _0xf46a33=events[_0x311d34],_0x2960e7=createListener(_0x3724b6(0x1cd)+_0xf46a33,_0x25ea4a);VoiceQueueEvents['on'](_0xf46a33,_0x2960e7);}}; \ No newline at end of file diff --git a/server/api/voiceQueueReport/index.js b/server/api/voiceQueueReport/index.js index 07ca177..5e9471e 100644 --- a/server/api/voiceQueueReport/index.js +++ b/server/api/voiceQueueReport/index.js @@ -1 +1 @@ -const a758_0xff42=['getVoiceQueuesReport','put','update','../../components/auth/service','exports','express','index','/index','delete','/describe','isAuthenticated','./voiceQueueReport.controller','describe','get','/:id'];(function(_0x1edd06,_0xff4221){const _0x526b27=function(_0x1a25e8){while(--_0x1a25e8){_0x1edd06['push'](_0x1edd06['shift']());}};_0x526b27(++_0xff4221);}(a758_0xff42,0x91));const a758_0x526b=function(_0x1edd06,_0xff4221){_0x1edd06=_0x1edd06-0x0;let _0x526b27=a758_0xff42[_0x1edd06];return _0x526b27;};const _0x3c18c4=a758_0x526b;'use strict';const express=require(_0x3c18c4('0xa')),router=express['Router'](),auth=require(_0x3c18c4('0x8')),controller=require(_0x3c18c4('0x1'));router[_0x3c18c4('0x3')]('/',auth['isAuthenticated'](),controller[_0x3c18c4('0xb')]),router[_0x3c18c4('0x3')](_0x3c18c4('0xe'),auth[_0x3c18c4('0x0')](),controller[_0x3c18c4('0x2')]),router[_0x3c18c4('0x3')](_0x3c18c4('0xc'),auth[_0x3c18c4('0x0')](),controller[_0x3c18c4('0x5')]),router['get']('/:id',auth['isAuthenticated'](),controller['show']),router['post']('/',auth['isAuthenticated'](),controller['create']),router[_0x3c18c4('0x6')]('/:id',auth['isAuthenticated'](),controller[_0x3c18c4('0x7')]),router[_0x3c18c4('0xd')](_0x3c18c4('0x4'),auth[_0x3c18c4('0x0')](),controller['destroy']),module[_0x3c18c4('0x9')]=router; \ No newline at end of file +const a909_0x5836=['express','/:id','index','show','isAuthenticated','Router','exports','./voiceQueueReport.controller','get','delete','../../components/auth/service','post'];(function(_0x378b8d,_0x4df9d4){const _0x58367f=function(_0x195e36){while(--_0x195e36){_0x378b8d['push'](_0x378b8d['shift']());}};_0x58367f(++_0x4df9d4);}(a909_0x5836,0xc6));const a909_0x195e=function(_0x378b8d,_0x4df9d4){_0x378b8d=_0x378b8d-0xd9;let _0x58367f=a909_0x5836[_0x378b8d];return _0x58367f;};const a909_0x3bd3cb=a909_0x195e;'use strict';const express=require(a909_0x3bd3cb(0xdf)),router=express[a909_0x3bd3cb(0xe4)](),auth=require(a909_0x3bd3cb(0xdd)),controller=require(a909_0x3bd3cb(0xda));router[a909_0x3bd3cb(0xdb)]('/',auth[a909_0x3bd3cb(0xe3)](),controller[a909_0x3bd3cb(0xe1)]),router['get']('/describe',auth[a909_0x3bd3cb(0xe3)](),controller['describe']),router[a909_0x3bd3cb(0xdb)]('/index',auth[a909_0x3bd3cb(0xe3)](),controller['getVoiceQueuesReport']),router[a909_0x3bd3cb(0xdb)]('/:id',auth['isAuthenticated'](),controller[a909_0x3bd3cb(0xe2)]),router[a909_0x3bd3cb(0xde)]('/',auth[a909_0x3bd3cb(0xe3)](),controller['create']),router['put']('/:id',auth['isAuthenticated'](),controller['update']),router[a909_0x3bd3cb(0xdc)](a909_0x3bd3cb(0xe0),auth[a909_0x3bd3cb(0xe3)](),controller['destroy']),module[a909_0x3bd3cb(0xd9)]=router; \ No newline at end of file diff --git a/server/api/voiceQueueReport/voiceQueueReport.attributes.js b/server/api/voiceQueueReport/voiceQueueReport.attributes.js index 906de78..a9f6b89 100644 --- a/server/api/voiceQueueReport/voiceQueueReport.attributes.js +++ b/server/api/voiceQueueReport/voiceQueueReport.attributes.js @@ -1 +1 @@ -const a759_0x1857=['sequelize','setDataValue','diff','YYYY-MM-DD\x20HH:mm:ss','queuecallerjoinAt','exports','STRING','BOOLEAN','COMPLETEDBYCALLER,\x20COMPLETEDBYAGENT,\x20FORWARDTRANFER,\x20BLINDTRANSFER,\x20ATTENDEDTRANSFER,\x20EXITWITHKEY,\x20TIMEOUT','FORWARD,\x20BLIND,\x20ATTENDED','getDataValue','format','moment','DATE','INTEGER'];(function(_0xac4a8e,_0x1857e0){const _0x119a48=function(_0x1aa302){while(--_0x1aa302){_0xac4a8e['push'](_0xac4a8e['shift']());}};_0x119a48(++_0x1857e0);}(a759_0x1857,0x93));const a759_0x119a=function(_0xac4a8e,_0x1857e0){_0xac4a8e=_0xac4a8e-0x0;let _0x119a48=a759_0x1857[_0xac4a8e];return _0x119a48;};const _0x51cdfd=a759_0x119a;'use strict';const Sequelize=require(_0x51cdfd('0x3')),moment=require(_0x51cdfd('0x0'));module[_0x51cdfd('0x8')]={'type':{'type':Sequelize[_0x51cdfd('0x9')]},'uniqueid':{'type':Sequelize[_0x51cdfd('0x9')]},'calleridnum':{'type':Sequelize['STRING']},'calleridname':{'type':Sequelize[_0x51cdfd('0x9')]},'queue':{'type':Sequelize[_0x51cdfd('0x9')]},'queuecallerjoinAt':{'type':Sequelize[_0x51cdfd('0x1')]},'queuecallerleaveAt':{'type':Sequelize[_0x51cdfd('0x1')],'set':function(_0x1aa302){const _0x21baa2=_0x51cdfd,_0x43af17=moment(_0x1aa302),_0x28e0ff=moment(this[_0x21baa2('0xd')](_0x21baa2('0x7')))[_0x21baa2('0xe')](_0x21baa2('0x6')),_0x26d693=_0x43af17[_0x21baa2('0x5')](_0x28e0ff,'seconds');this[_0x21baa2('0x4')]('queuecallerleaveAt',_0x1aa302),this[_0x21baa2('0x4')]('holdtime',_0x26d693||null);}},'position':{'type':Sequelize['INTEGER']},'count':{'type':Sequelize[_0x51cdfd('0x2')]},'queuecallerabandon':{'type':Sequelize[_0x51cdfd('0xa')],'defaultValue':![]},'queuecallerabandonAt':{'type':Sequelize[_0x51cdfd('0x1')]},'queuecallercomplete':{'type':Sequelize[_0x51cdfd('0xa')],'defaultValue':![]},'queuecallercompleteAt':{'type':Sequelize[_0x51cdfd('0x1')]},'queuecallerexit':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'queuecallerexitAt':{'type':Sequelize[_0x51cdfd('0x1')]},'queuecallerexitreason':{'type':Sequelize[_0x51cdfd('0x9')],'comment':_0x51cdfd('0xb')},'originalposition':{'type':Sequelize[_0x51cdfd('0x2')]},'channel':{'type':Sequelize[_0x51cdfd('0x9')]},'connectedlinenum':{'type':Sequelize['STRING']},'connectedlinename':{'type':Sequelize['STRING']},'accountcode':{'type':Sequelize[_0x51cdfd('0x9')]},'context':{'type':Sequelize[_0x51cdfd('0x9')]},'exten':{'type':Sequelize[_0x51cdfd('0x9')]},'priority':{'type':Sequelize[_0x51cdfd('0x9')]},'holdtime':{'type':Sequelize[_0x51cdfd('0x2')]},'mohtime':{'type':Sequelize[_0x51cdfd('0x2')],'defaultValue':0x0},'assigned':{'type':Sequelize[_0x51cdfd('0xa')],'defaultValue':![]},'lastAssignedTo':{'type':Sequelize[_0x51cdfd('0x9')]},'transfer':{'type':Sequelize[_0x51cdfd('0xa')],'defaultValue':![]},'transfertype':{'type':Sequelize[_0x51cdfd('0x9')],'comment':_0x51cdfd('0xc')},'transferexten':{'type':Sequelize[_0x51cdfd('0x9')]},'transferuniqueid':{'type':Sequelize[_0x51cdfd('0x9')]},'disposition':{'type':Sequelize[_0x51cdfd('0x9')]},'secondDisposition':{'type':Sequelize[_0x51cdfd('0x9')]},'thirdDisposition':{'type':Sequelize[_0x51cdfd('0x9')]},'queuecallerenterreason':{'type':Sequelize[_0x51cdfd('0x2')],'defaultValue':0x0}}; \ No newline at end of file +const a910_0x5790=['setDataValue','INTEGER','queuecallerleaveAt','queuecallerjoinAt','BOOLEAN','COMPLETEDBYCALLER,\x20COMPLETEDBYAGENT,\x20FORWARDTRANFER,\x20BLINDTRANSFER,\x20ATTENDEDTRANSFER,\x20EXITWITHKEY,\x20TIMEOUT','holdtime','FORWARD,\x20BLIND,\x20ATTENDED','DATE','STRING','seconds','format','diff','sequelize','attributes'];(function(_0x599440,_0x1494e7){const _0x57903a=function(_0x4d7008){while(--_0x4d7008){_0x599440['push'](_0x599440['shift']());}};_0x57903a(++_0x1494e7);}(a910_0x5790,0x1b7));const a910_0x4d70=function(_0x599440,_0x1494e7){_0x599440=_0x599440-0x12d;let _0x57903a=a910_0x5790[_0x599440];return _0x57903a;};const a910_0x118f35=a910_0x4d70;'use strict';const {DataTypes}=require(a910_0x118f35(0x136)),moment=require('moment'),attributes={'type':{'type':DataTypes[a910_0x118f35(0x132)]},'uniqueid':{'type':DataTypes['STRING']},'calleridnum':{'type':DataTypes[a910_0x118f35(0x132)]},'calleridname':{'type':DataTypes[a910_0x118f35(0x132)]},'queue':{'type':DataTypes[a910_0x118f35(0x132)]},'queuecallerjoinAt':{'type':DataTypes[a910_0x118f35(0x131)]},'queuecallerleaveAt':{'type':DataTypes[a910_0x118f35(0x131)],'set':function(_0x4d407d){const _0x4e7472=a910_0x118f35,_0x28ef61=moment(_0x4d407d),_0x51014f=moment(this['getDataValue'](_0x4e7472(0x13b)))[_0x4e7472(0x134)]('YYYY-MM-DD\x20HH:mm:ss'),_0x444ab2=_0x28ef61[_0x4e7472(0x135)](_0x51014f,_0x4e7472(0x133));this[_0x4e7472(0x138)](_0x4e7472(0x13a),_0x4d407d),this['setDataValue'](_0x4e7472(0x12f),_0x444ab2||null);}},'position':{'type':DataTypes['INTEGER']},'count':{'type':DataTypes[a910_0x118f35(0x139)]},'queuecallerabandon':{'type':DataTypes[a910_0x118f35(0x12d)],'defaultValue':![]},'queuecallerabandonAt':{'type':DataTypes[a910_0x118f35(0x131)]},'queuecallercomplete':{'type':DataTypes[a910_0x118f35(0x12d)],'defaultValue':![]},'queuecallercompleteAt':{'type':DataTypes[a910_0x118f35(0x131)]},'queuecallerexit':{'type':DataTypes[a910_0x118f35(0x12d)],'defaultValue':![]},'queuecallerexitAt':{'type':DataTypes[a910_0x118f35(0x131)]},'queuecallerexitreason':{'type':DataTypes['STRING'],'comment':a910_0x118f35(0x12e)},'originalposition':{'type':DataTypes[a910_0x118f35(0x139)]},'channel':{'type':DataTypes[a910_0x118f35(0x132)]},'connectedlinenum':{'type':DataTypes[a910_0x118f35(0x132)]},'connectedlinename':{'type':DataTypes[a910_0x118f35(0x132)]},'accountcode':{'type':DataTypes[a910_0x118f35(0x132)]},'context':{'type':DataTypes[a910_0x118f35(0x132)]},'exten':{'type':DataTypes[a910_0x118f35(0x132)]},'priority':{'type':DataTypes[a910_0x118f35(0x132)]},'holdtime':{'type':DataTypes[a910_0x118f35(0x139)]},'mohtime':{'type':DataTypes['INTEGER'],'defaultValue':0x0},'assigned':{'type':DataTypes[a910_0x118f35(0x12d)],'defaultValue':![]},'lastAssignedTo':{'type':DataTypes[a910_0x118f35(0x132)]},'transfer':{'type':DataTypes[a910_0x118f35(0x12d)],'defaultValue':![]},'transfertype':{'type':DataTypes[a910_0x118f35(0x132)],'comment':a910_0x118f35(0x130)},'transferexten':{'type':DataTypes[a910_0x118f35(0x132)]},'transferuniqueid':{'type':DataTypes[a910_0x118f35(0x132)]},'disposition':{'type':DataTypes['STRING']},'secondDisposition':{'type':DataTypes[a910_0x118f35(0x132)]},'thirdDisposition':{'type':DataTypes[a910_0x118f35(0x132)]},'queuecallerenterreason':{'type':DataTypes['INTEGER'],'defaultValue':0x0}};module['exports'][a910_0x118f35(0x137)]=attributes; \ No newline at end of file diff --git a/server/api/voiceQueueReport/voiceQueueReport.controller.js b/server/api/voiceQueueReport/voiceQueueReport.controller.js index c89fec4..b96cf78 100644 --- a/server/api/voiceQueueReport/voiceQueueReport.controller.js +++ b/server/api/voiceQueueReport/voiceQueueReport.controller.js @@ -1 +1 @@ -const a760_0x2954=['order','pick','Content-Range','status','undefined','intersection','register','./voiceQueueReport.socket','name','type','create','key','filters','length','body','sequelize','include','rows','nolimit','count','offset','error','stack','set','destroy','../../config/logger','catch','filter','findOne','end','../../rediscache','json','includeAll','params','update','findAll','limit','model','query','where','options','merge','VoiceQueueReport','attributes','fieldName','getVoiceQueuesReport','fields','then','keys','sort','sendStatus','rawAttributes','index','describe','lodash','send','map'];(function(_0x47146e,_0x29549c){const _0x1fd823=function(_0x251dc2){while(--_0x251dc2){_0x47146e['push'](_0x47146e['shift']());}};_0x1fd823(++_0x29549c);}(a760_0x2954,0x179));const a760_0x1fd8=function(_0x47146e,_0x29549c){_0x47146e=_0x47146e-0x0;let _0x1fd823=a760_0x2954[_0x47146e];return _0x1fd823;};const _0x1a7714=a760_0x1fd8;'use strict';const _=require(_0x1a7714('0x13')),qs=require('../../components/parsers/qs'),logger=require(_0x1a7714('0x2f'))('api'),{getSocket}=require(_0x1a7714('0x34')),socket=getSocket(),db=require('../../mysqldb')['db'],{Op}=require(_0x1a7714('0x25'));require(_0x1a7714('0x1d'))[_0x1a7714('0x1c')](socket);function respondWithResult(_0x251dc2,_0x1dfe60){return _0x1dfe60=_0x1dfe60||0xc8,function(_0x4584d7){const _0x14db43=a760_0x1fd8;if(_0x4584d7)return _0x251dc2[_0x14db43('0x19')](_0x1dfe60)[_0x14db43('0x35')](_0x4584d7);};}function respondWithFilteredResult(_0x24bcda,_0x517ce6){return function(_0x503a9f){const _0x49bfd8=a760_0x1fd8;if(_0x503a9f){const _0x35e061=_0x503a9f[_0x49bfd8('0x29')],_0xa919ff=_0x517ce6[_0x49bfd8('0x2a')];let _0x281b16=_0x517ce6['offset']+_0x517ce6[_0x49bfd8('0x1')],_0x55483f;return _0x281b16>=_0x35e061?(_0x281b16=_0x35e061,_0x55483f=0xc8):_0x55483f=0xce,_0x24bcda[_0x49bfd8('0x19')](_0x55483f),_0x24bcda[_0x49bfd8('0x2d')](_0x49bfd8('0x18'),_0xa919ff+'-'+_0x281b16+'/'+_0x35e061)['json'](_0x503a9f);}return null;};}function saveUpdates(_0x1311df){return function(_0x339a0b){const _0x1f72d8=a760_0x1fd8;if(_0x339a0b)return _0x339a0b[_0x1f72d8('0x38')](_0x1311df)[_0x1f72d8('0xc')](function(_0x4fd52f){return _0x4fd52f;});return null;};}function removeEntity(_0x52d3b8){return function(_0x2409c3){const _0x4413f5=a760_0x1fd8;if(_0x2409c3)return _0x2409c3[_0x4413f5('0x2e')]()[_0x4413f5('0xc')](function(){const _0x2031f1=_0x4413f5;_0x52d3b8[_0x2031f1('0x19')](0xcc)[_0x2031f1('0x33')]();});};}function handleEntityNotFound(_0x429b06){return function(_0x30ac3b){const _0x117e41=a760_0x1fd8;return!_0x30ac3b&&_0x429b06[_0x117e41('0xf')](0x194),_0x30ac3b;};}function handleError(_0x178af2,_0x3f3b73){return _0x3f3b73=_0x3f3b73||0x1f4,function(_0x11e61b){const _0x107333=a760_0x1fd8;logger[_0x107333('0x2b')](_0x11e61b[_0x107333('0x2c')]),_0x11e61b[_0x107333('0x1e')]&&delete _0x11e61b['name'],_0x178af2[_0x107333('0x19')](_0x3f3b73)[_0x107333('0x14')](_0x11e61b);};}exports[_0x1a7714('0x11')]=function(_0x38c806,_0x5d1f35){const _0x5be861=_0x1a7714;let _0x65e212={};const _0xffa838={},_0x16096c={'count':0x0,'rows':[]},_0x538931=_[_0x5be861('0x15')](db[_0x5be861('0x7')][_0x5be861('0x10')],function(_0x4ab421){const _0xd89630=_0x5be861;return{'name':_0x4ab421[_0xd89630('0x9')],'type':_0x4ab421[_0xd89630('0x1f')][_0xd89630('0x21')]};});_0xffa838['model']=_[_0x5be861('0x15')](_0x538931,_0x5be861('0x1e')),_0xffa838[_0x5be861('0x3')]=_['keys'](_0x38c806[_0x5be861('0x3')]),_0xffa838[_0x5be861('0x22')]=_[_0x5be861('0x1b')](_0xffa838[_0x5be861('0x2')],_0xffa838[_0x5be861('0x3')]),_0x65e212[_0x5be861('0x8')]=_[_0x5be861('0x1b')](_0xffa838['model'],qs[_0x5be861('0xb')](_0x38c806[_0x5be861('0x3')][_0x5be861('0xb')])),_0x65e212[_0x5be861('0x8')]=_0x65e212['attributes'][_0x5be861('0x23')]?_0x65e212['attributes']:_0xffa838[_0x5be861('0x2')];typeof _0x38c806[_0x5be861('0x3')]['nolimit']===_0x5be861('0x1a')&&(_0x65e212[_0x5be861('0x1')]=qs['limit'](_0x38c806[_0x5be861('0x3')]['limit']),_0x65e212[_0x5be861('0x2a')]=qs[_0x5be861('0x2a')](_0x38c806[_0x5be861('0x3')][_0x5be861('0x2a')]));_0x65e212[_0x5be861('0x16')]=qs['sort'](_0x38c806['query']['sort']),_0x65e212[_0x5be861('0x4')]=qs[_0x5be861('0x22')](_['pick'](_0x38c806[_0x5be861('0x3')],_0xffa838[_0x5be861('0x22')]),_0x538931);_0x38c806[_0x5be861('0x3')][_0x5be861('0x31')]&&(_0x65e212[_0x5be861('0x4')]=_[_0x5be861('0x6')](_0x65e212['where'],{[Op['or']]:_[_0x5be861('0x15')](_0x538931,function(_0x18ead){const _0x28d20b=_0x5be861;if(_0x18ead[_0x28d20b('0x1f')]!=='VIRTUAL'){const _0x3b2684={};return _0x3b2684[_0x18ead[_0x28d20b('0x1e')]]={[Op['like']]:'%'+_0x38c806[_0x28d20b('0x3')][_0x28d20b('0x31')]+'%'},_0x3b2684;}})}));_0x65e212=_[_0x5be861('0x6')]({},_0x65e212,_0x38c806['options']);const _0x106f29={'where':_0x65e212[_0x5be861('0x4')]};return db[_0x5be861('0x7')][_0x5be861('0x29')](_0x106f29)[_0x5be861('0xc')](function(_0x119de3){const _0x4c17dd=_0x5be861;return _0x16096c[_0x4c17dd('0x29')]=_0x119de3,_0x38c806['query'][_0x4c17dd('0x36')]&&(_0x65e212[_0x4c17dd('0x26')]=[{'all':!![]}]),db[_0x4c17dd('0x7')][_0x4c17dd('0x0')](_0x65e212);})[_0x5be861('0xc')](function(_0x37fa2f){return _0x16096c['rows']=_0x37fa2f,_0x16096c;})[_0x5be861('0xc')](respondWithFilteredResult(_0x5d1f35,_0x65e212))['catch'](handleError(_0x5d1f35,null));},exports['show']=function(_0x25db25,_0x276290){const _0x345bc6=_0x1a7714;let _0x29178a={'raw':![],'where':{'id':_0x25db25[_0x345bc6('0x37')]['id']}};const _0x9e02e2={};return _0x9e02e2[_0x345bc6('0x2')]=_[_0x345bc6('0xd')](db[_0x345bc6('0x7')][_0x345bc6('0x10')]),_0x9e02e2['query']=_['keys'](_0x25db25[_0x345bc6('0x3')]),_0x9e02e2['filters']=_[_0x345bc6('0x1b')](_0x9e02e2['model'],_0x9e02e2[_0x345bc6('0x3')]),_0x29178a[_0x345bc6('0x8')]=_[_0x345bc6('0x1b')](_0x9e02e2[_0x345bc6('0x2')],qs[_0x345bc6('0xb')](_0x25db25[_0x345bc6('0x3')][_0x345bc6('0xb')])),_0x29178a[_0x345bc6('0x8')]=_0x29178a['attributes'][_0x345bc6('0x23')]?_0x29178a[_0x345bc6('0x8')]:_0x9e02e2[_0x345bc6('0x2')],_0x25db25[_0x345bc6('0x3')]['includeAll']&&(_0x29178a[_0x345bc6('0x26')]=[{'all':!![]}]),_0x29178a=_[_0x345bc6('0x6')]({},_0x29178a,_0x25db25[_0x345bc6('0x5')]),db[_0x345bc6('0x7')][_0x345bc6('0x32')](_0x29178a)[_0x345bc6('0xc')](handleEntityNotFound(_0x276290,null))['then'](respondWithResult(_0x276290,null))[_0x345bc6('0x30')](handleError(_0x276290,null));},exports[_0x1a7714('0x20')]=function(_0x795e86,_0x482939){const _0xc20bb3=_0x1a7714;return db[_0xc20bb3('0x7')]['create'](_0x795e86[_0xc20bb3('0x24')],{})[_0xc20bb3('0xc')](respondWithResult(_0x482939,0xc9))[_0xc20bb3('0x30')](handleError(_0x482939,null));},exports[_0x1a7714('0x38')]=function(_0x401d73,_0x3f81bf){const _0x23f206=_0x1a7714;return _0x401d73[_0x23f206('0x24')]['id']&&delete _0x401d73[_0x23f206('0x24')]['id'],db['VoiceQueueReport']['findOne']({'where':{'id':_0x401d73[_0x23f206('0x37')]['id']}})[_0x23f206('0xc')](handleEntityNotFound(_0x3f81bf,null))[_0x23f206('0xc')](saveUpdates(_0x401d73[_0x23f206('0x24')],null))[_0x23f206('0xc')](respondWithResult(_0x3f81bf,null))['catch'](handleError(_0x3f81bf,null));},exports[_0x1a7714('0x2e')]=function(_0x1a18d4,_0x1cf985){const _0x4305e5=_0x1a7714;return db[_0x4305e5('0x7')]['findOne']({'where':{'id':_0x1a18d4[_0x4305e5('0x37')]['id']}})[_0x4305e5('0xc')](handleEntityNotFound(_0x1cf985,null))[_0x4305e5('0xc')](removeEntity(_0x1cf985,null))[_0x4305e5('0x30')](handleError(_0x1cf985,null));},exports[_0x1a7714('0x12')]=function(_0x35bd3e,_0x271ee0){const _0x202022=_0x1a7714;return db[_0x202022('0x7')][_0x202022('0x12')]()[_0x202022('0xc')](respondWithResult(_0x271ee0,null))[_0x202022('0x30')](handleError(_0x271ee0,null));},exports[_0x1a7714('0xa')]=function(_0x5a6c97,_0x51b179){const _0x5a6457=_0x1a7714;let _0x3cebb6={};const _0x1ca479={},_0x2bfff2={'count':0x0,'rows':[]};_0x1ca479[_0x5a6457('0x2')]=_['keys'](db[_0x5a6457('0x7')][_0x5a6457('0x10')]),_0x1ca479['query']=_[_0x5a6457('0xd')](_0x5a6c97[_0x5a6457('0x3')]),_0x1ca479[_0x5a6457('0x22')]=_[_0x5a6457('0x1b')](_0x1ca479[_0x5a6457('0x2')],_0x1ca479[_0x5a6457('0x3')]),_0x3cebb6[_0x5a6457('0x8')]=_[_0x5a6457('0x1b')](_0x1ca479['model'],qs[_0x5a6457('0xb')](_0x5a6c97[_0x5a6457('0x3')][_0x5a6457('0xb')])),_0x3cebb6['attributes']=_0x3cebb6[_0x5a6457('0x8')][_0x5a6457('0x23')]?_0x3cebb6[_0x5a6457('0x8')]:_0x1ca479['model'];typeof _0x5a6c97[_0x5a6457('0x3')][_0x5a6457('0x28')]===_0x5a6457('0x1a')&&(_0x3cebb6[_0x5a6457('0x1')]=qs['limit'](_0x5a6c97['query']['limit']),_0x3cebb6[_0x5a6457('0x2a')]=qs[_0x5a6457('0x2a')](_0x5a6c97[_0x5a6457('0x3')][_0x5a6457('0x2a')]));_0x3cebb6[_0x5a6457('0x16')]=qs[_0x5a6457('0xe')](_0x5a6c97[_0x5a6457('0x3')]['sort']),_0x3cebb6[_0x5a6457('0x4')]=qs['filters'](_[_0x5a6457('0x17')](_0x5a6c97['query'],_0x1ca479[_0x5a6457('0x22')]));_0x5a6c97[_0x5a6457('0x3')][_0x5a6457('0x31')]&&(_0x3cebb6[_0x5a6457('0x4')]=_['merge'](_0x3cebb6['where'],{[Op['or']]:_[_0x5a6457('0x15')](_0x3cebb6[_0x5a6457('0x8')],function(_0x3c7758){const _0x3bec13=_0x5a6457,_0x3056cb={};return _0x3056cb[_0x3c7758]={[Op['like']]:'%'+_0x5a6c97['query'][_0x3bec13('0x31')]+'%'},_0x3056cb;})}));_0x3cebb6=_[_0x5a6457('0x6')]({},_0x3cebb6,_0x5a6c97[_0x5a6457('0x5')]);const _0x42c810={'where':_0x3cebb6['where']};return db[_0x5a6457('0x7')][_0x5a6457('0x29')](_0x42c810)['then'](function(_0x6220cb){const _0x7a2e88=_0x5a6457;return _0x2bfff2[_0x7a2e88('0x29')]=_0x6220cb,_0x5a6c97[_0x7a2e88('0x3')][_0x7a2e88('0x36')]&&(_0x3cebb6['include']=[{'all':!![]}]),db[_0x7a2e88('0x7')][_0x7a2e88('0x0')](_0x3cebb6);})['then'](function(_0x2837ba){const _0x21c640=_0x5a6457;return _0x2bfff2[_0x21c640('0x27')]=_0x2837ba,_0x2bfff2;})['then'](respondWithFilteredResult(_0x51b179,_0x3cebb6,_0x5a6457('0xa')))[_0x5a6457('0x30')](handleError(_0x51b179,null,_0x5a6457('0xa')));}; \ No newline at end of file +const a911_0x2381=['sort','lodash','includeAll','index','attributes','pick','like','include','merge','getVoiceQueuesReport','../../rediscache','end','filter','VoiceQueueReport','offset','then','destroy','params','filters','catch','intersection','name','api','error','send','create','status','type','../../config/logger','register','rawAttributes','findOne','query','options','where','body','fieldName','nolimit','count','model','rows','map','findAll','./voiceQueueReport.socket','describe','limit','set','sendStatus','length','keys','fields','VIRTUAL','undefined','update','show'];(function(_0x4e2ec9,_0x744f0b){const _0x2381fc=function(_0x111b78){while(--_0x111b78){_0x4e2ec9['push'](_0x4e2ec9['shift']());}};_0x2381fc(++_0x744f0b);}(a911_0x2381,0xb4));const a911_0x111b=function(_0x4e2ec9,_0x744f0b){_0x4e2ec9=_0x4e2ec9-0x1a5;let _0x2381fc=a911_0x2381[_0x4e2ec9];return _0x2381fc;};const a911_0x5dd6df=a911_0x111b;'use strict';const _=require(a911_0x5dd6df(0x1ce)),qs=require('../../components/parsers/qs'),logger=require(a911_0x5dd6df(0x1b2))(a911_0x5dd6df(0x1ac)),{getSocket}=require(a911_0x5dd6df(0x1d7)),socket=getSocket(),{db}=require('../../mysqldb'),{Op}=require('sequelize');require(a911_0x5dd6df(0x1c1))[a911_0x5dd6df(0x1b3)](socket);function respondWithResult(_0x4e559b,_0x5e5feb){return _0x5e5feb=_0x5e5feb||0xc8,function(_0xfe2c2c){if(_0xfe2c2c)return _0x4e559b['status'](_0x5e5feb)['json'](_0xfe2c2c);};}function respondWithFilteredResult(_0x1726b0,_0x2df2dd){return function(_0x2cabd2){const _0x36fc90=a911_0x111b;if(_0x2cabd2){const _0x38e5fc=_0x2cabd2[_0x36fc90(0x1bc)],_0x5ceb5d=_0x2df2dd['offset'];let _0x2e6bf0=_0x2df2dd[_0x36fc90(0x1db)]+_0x2df2dd[_0x36fc90(0x1c3)],_0x36a280;return _0x2e6bf0>=_0x38e5fc?(_0x2e6bf0=_0x38e5fc,_0x36a280=0xc8):_0x36a280=0xce,_0x1726b0[_0x36fc90(0x1b0)](_0x36a280),_0x1726b0[_0x36fc90(0x1c4)]('Content-Range',_0x5ceb5d+'-'+_0x2e6bf0+'/'+_0x38e5fc)['json'](_0x2cabd2);}return null;};}function saveUpdates(_0x1411bb){return function(_0x29cb32){const _0x21f548=a911_0x111b;if(_0x29cb32)return _0x29cb32[_0x21f548(0x1cb)](_0x1411bb)['then'](function(_0x2a4769){return _0x2a4769;});return null;};}function removeEntity(_0x2a514e){return function(_0x579a81){const _0x3044b6=a911_0x111b;if(_0x579a81)return _0x579a81['destroy']()[_0x3044b6(0x1a5)](function(){const _0x8f7d59=_0x3044b6;_0x2a514e[_0x8f7d59(0x1b0)](0xcc)[_0x8f7d59(0x1d8)]();});};}function handleEntityNotFound(_0x4f07ab){return function(_0x5ca8dc){const _0x3686ad=a911_0x111b;return!_0x5ca8dc&&_0x4f07ab[_0x3686ad(0x1c5)](0x194),_0x5ca8dc;};}function handleError(_0x40d902,_0x170da7){return _0x170da7=_0x170da7||0x1f4,function(_0x2067ff){const _0xee3b9c=a911_0x111b;logger[_0xee3b9c(0x1ad)](_0x2067ff['stack']),_0x2067ff['name']&&delete _0x2067ff[_0xee3b9c(0x1ab)],_0x40d902[_0xee3b9c(0x1b0)](_0x170da7)[_0xee3b9c(0x1ae)](_0x2067ff);};}exports[a911_0x5dd6df(0x1d0)]=function(_0x4da89a,_0x69ddd1){const _0x22ffcb=a911_0x5dd6df;let _0x3f6fbd={};const _0x11267e={},_0x51662d={'count':0x0,'rows':[]},_0xc6d02b=_[_0x22ffcb(0x1bf)](db[_0x22ffcb(0x1da)][_0x22ffcb(0x1b4)],function(_0x29d469){const _0x4cb2c4=_0x22ffcb;return{'name':_0x29d469[_0x4cb2c4(0x1ba)],'type':_0x29d469[_0x4cb2c4(0x1b1)]['key']};});_0x11267e[_0x22ffcb(0x1bd)]=_[_0x22ffcb(0x1bf)](_0xc6d02b,'name'),_0x11267e[_0x22ffcb(0x1b6)]=_[_0x22ffcb(0x1c7)](_0x4da89a['query']),_0x11267e['filters']=_[_0x22ffcb(0x1aa)](_0x11267e[_0x22ffcb(0x1bd)],_0x11267e[_0x22ffcb(0x1b6)]),_0x3f6fbd[_0x22ffcb(0x1d1)]=_[_0x22ffcb(0x1aa)](_0x11267e['model'],qs[_0x22ffcb(0x1c8)](_0x4da89a[_0x22ffcb(0x1b6)][_0x22ffcb(0x1c8)])),_0x3f6fbd[_0x22ffcb(0x1d1)]=_0x3f6fbd[_0x22ffcb(0x1d1)][_0x22ffcb(0x1c6)]?_0x3f6fbd['attributes']:_0x11267e[_0x22ffcb(0x1bd)];typeof _0x4da89a[_0x22ffcb(0x1b6)][_0x22ffcb(0x1bb)]==='undefined'&&(_0x3f6fbd['limit']=qs[_0x22ffcb(0x1c3)](_0x4da89a[_0x22ffcb(0x1b6)][_0x22ffcb(0x1c3)]),_0x3f6fbd[_0x22ffcb(0x1db)]=qs['offset'](_0x4da89a[_0x22ffcb(0x1b6)][_0x22ffcb(0x1db)]));_0x3f6fbd['order']=qs[_0x22ffcb(0x1cd)](_0x4da89a[_0x22ffcb(0x1b6)]['sort']),_0x3f6fbd[_0x22ffcb(0x1b8)]=qs[_0x22ffcb(0x1a8)](_[_0x22ffcb(0x1d2)](_0x4da89a[_0x22ffcb(0x1b6)],_0x11267e[_0x22ffcb(0x1a8)]),_0xc6d02b);_0x4da89a[_0x22ffcb(0x1b6)][_0x22ffcb(0x1d9)]&&(_0x3f6fbd[_0x22ffcb(0x1b8)]=_[_0x22ffcb(0x1d5)](_0x3f6fbd[_0x22ffcb(0x1b8)],{[Op['or']]:_[_0x22ffcb(0x1bf)](_0xc6d02b,function(_0x221090){const _0x209561=_0x22ffcb;if(_0x221090[_0x209561(0x1b1)]!==_0x209561(0x1c9)){const _0x5051cd={};return _0x5051cd[_0x221090['name']]={[Op[_0x209561(0x1d3)]]:'%'+_0x4da89a[_0x209561(0x1b6)][_0x209561(0x1d9)]+'%'},_0x5051cd;}})}));_0x3f6fbd=_[_0x22ffcb(0x1d5)]({},_0x3f6fbd,_0x4da89a[_0x22ffcb(0x1b7)]);const _0x4797e5={'where':_0x3f6fbd[_0x22ffcb(0x1b8)]};return db[_0x22ffcb(0x1da)][_0x22ffcb(0x1bc)](_0x4797e5)[_0x22ffcb(0x1a5)](function(_0x5ab75e){const _0x323a32=_0x22ffcb;return _0x51662d['count']=_0x5ab75e,_0x4da89a[_0x323a32(0x1b6)][_0x323a32(0x1cf)]&&(_0x3f6fbd[_0x323a32(0x1d4)]=[{'all':!![]}]),db[_0x323a32(0x1da)][_0x323a32(0x1c0)](_0x3f6fbd);})[_0x22ffcb(0x1a5)](function(_0x3412b2){const _0x5d32ac=_0x22ffcb;return _0x51662d[_0x5d32ac(0x1be)]=_0x3412b2,_0x51662d;})[_0x22ffcb(0x1a5)](respondWithFilteredResult(_0x69ddd1,_0x3f6fbd))[_0x22ffcb(0x1a9)](handleError(_0x69ddd1,null));},exports[a911_0x5dd6df(0x1cc)]=function(_0x51c17e,_0x2709cf){const _0x10af50=a911_0x5dd6df;let _0x3f49d2={'raw':![],'where':{'id':_0x51c17e[_0x10af50(0x1a7)]['id']}};const _0x350a61={};return _0x350a61[_0x10af50(0x1bd)]=_['keys'](db[_0x10af50(0x1da)][_0x10af50(0x1b4)]),_0x350a61[_0x10af50(0x1b6)]=_[_0x10af50(0x1c7)](_0x51c17e['query']),_0x350a61[_0x10af50(0x1a8)]=_[_0x10af50(0x1aa)](_0x350a61[_0x10af50(0x1bd)],_0x350a61[_0x10af50(0x1b6)]),_0x3f49d2[_0x10af50(0x1d1)]=_[_0x10af50(0x1aa)](_0x350a61[_0x10af50(0x1bd)],qs[_0x10af50(0x1c8)](_0x51c17e[_0x10af50(0x1b6)][_0x10af50(0x1c8)])),_0x3f49d2['attributes']=_0x3f49d2[_0x10af50(0x1d1)][_0x10af50(0x1c6)]?_0x3f49d2[_0x10af50(0x1d1)]:_0x350a61[_0x10af50(0x1bd)],_0x51c17e['query'][_0x10af50(0x1cf)]&&(_0x3f49d2[_0x10af50(0x1d4)]=[{'all':!![]}]),_0x3f49d2=_[_0x10af50(0x1d5)]({},_0x3f49d2,_0x51c17e['options']),db[_0x10af50(0x1da)][_0x10af50(0x1b5)](_0x3f49d2)['then'](handleEntityNotFound(_0x2709cf,null))[_0x10af50(0x1a5)](respondWithResult(_0x2709cf,null))['catch'](handleError(_0x2709cf,null));},exports[a911_0x5dd6df(0x1af)]=function(_0x446b33,_0x592881){const _0x1a2805=a911_0x5dd6df;return db[_0x1a2805(0x1da)][_0x1a2805(0x1af)](_0x446b33[_0x1a2805(0x1b9)],{})[_0x1a2805(0x1a5)](respondWithResult(_0x592881,0xc9))[_0x1a2805(0x1a9)](handleError(_0x592881,null));},exports['update']=function(_0x4f40b3,_0x48741f){const _0x254846=a911_0x5dd6df;return _0x4f40b3[_0x254846(0x1b9)]['id']&&delete _0x4f40b3[_0x254846(0x1b9)]['id'],db[_0x254846(0x1da)][_0x254846(0x1b5)]({'where':{'id':_0x4f40b3[_0x254846(0x1a7)]['id']}})[_0x254846(0x1a5)](handleEntityNotFound(_0x48741f,null))[_0x254846(0x1a5)](saveUpdates(_0x4f40b3['body'],null))['then'](respondWithResult(_0x48741f,null))[_0x254846(0x1a9)](handleError(_0x48741f,null));},exports[a911_0x5dd6df(0x1a6)]=function(_0x547bdf,_0x3266ad){const _0x17d0b7=a911_0x5dd6df;return db[_0x17d0b7(0x1da)]['findOne']({'where':{'id':_0x547bdf[_0x17d0b7(0x1a7)]['id']}})['then'](handleEntityNotFound(_0x3266ad,null))[_0x17d0b7(0x1a5)](removeEntity(_0x3266ad,null))['catch'](handleError(_0x3266ad,null));},exports['describe']=function(_0x4079f8,_0x37ba19){const _0x194336=a911_0x5dd6df;return db[_0x194336(0x1da)][_0x194336(0x1c2)]()[_0x194336(0x1a5)](respondWithResult(_0x37ba19,null))[_0x194336(0x1a9)](handleError(_0x37ba19,null));},exports['getVoiceQueuesReport']=function(_0x1b4567,_0x9cdef6){const _0x5a5b5a=a911_0x5dd6df;let _0x1a7882={};const _0x2ab502={},_0x4b1cc5={'count':0x0,'rows':[]};_0x2ab502[_0x5a5b5a(0x1bd)]=_[_0x5a5b5a(0x1c7)](db['VoiceQueueReport'][_0x5a5b5a(0x1b4)]),_0x2ab502[_0x5a5b5a(0x1b6)]=_['keys'](_0x1b4567[_0x5a5b5a(0x1b6)]),_0x2ab502[_0x5a5b5a(0x1a8)]=_[_0x5a5b5a(0x1aa)](_0x2ab502[_0x5a5b5a(0x1bd)],_0x2ab502['query']),_0x1a7882[_0x5a5b5a(0x1d1)]=_[_0x5a5b5a(0x1aa)](_0x2ab502[_0x5a5b5a(0x1bd)],qs[_0x5a5b5a(0x1c8)](_0x1b4567['query']['fields'])),_0x1a7882[_0x5a5b5a(0x1d1)]=_0x1a7882['attributes'][_0x5a5b5a(0x1c6)]?_0x1a7882['attributes']:_0x2ab502[_0x5a5b5a(0x1bd)];typeof _0x1b4567[_0x5a5b5a(0x1b6)][_0x5a5b5a(0x1bb)]===_0x5a5b5a(0x1ca)&&(_0x1a7882[_0x5a5b5a(0x1c3)]=qs[_0x5a5b5a(0x1c3)](_0x1b4567[_0x5a5b5a(0x1b6)][_0x5a5b5a(0x1c3)]),_0x1a7882[_0x5a5b5a(0x1db)]=qs[_0x5a5b5a(0x1db)](_0x1b4567['query'][_0x5a5b5a(0x1db)]));_0x1a7882['order']=qs[_0x5a5b5a(0x1cd)](_0x1b4567['query']['sort']),_0x1a7882['where']=qs[_0x5a5b5a(0x1a8)](_['pick'](_0x1b4567[_0x5a5b5a(0x1b6)],_0x2ab502['filters']));_0x1b4567[_0x5a5b5a(0x1b6)][_0x5a5b5a(0x1d9)]&&(_0x1a7882[_0x5a5b5a(0x1b8)]=_[_0x5a5b5a(0x1d5)](_0x1a7882[_0x5a5b5a(0x1b8)],{[Op['or']]:_['map'](_0x1a7882[_0x5a5b5a(0x1d1)],function(_0x2c63d6){const _0x2edb1b=_0x5a5b5a,_0x179b58={};return _0x179b58[_0x2c63d6]={[Op[_0x2edb1b(0x1d3)]]:'%'+_0x1b4567[_0x2edb1b(0x1b6)]['filter']+'%'},_0x179b58;})}));_0x1a7882=_[_0x5a5b5a(0x1d5)]({},_0x1a7882,_0x1b4567['options']);const _0x22a50b={'where':_0x1a7882[_0x5a5b5a(0x1b8)]};return db[_0x5a5b5a(0x1da)][_0x5a5b5a(0x1bc)](_0x22a50b)['then'](function(_0x3bafd3){const _0x4697e9=_0x5a5b5a;return _0x4b1cc5['count']=_0x3bafd3,_0x1b4567[_0x4697e9(0x1b6)][_0x4697e9(0x1cf)]&&(_0x1a7882['include']=[{'all':!![]}]),db[_0x4697e9(0x1da)][_0x4697e9(0x1c0)](_0x1a7882);})[_0x5a5b5a(0x1a5)](function(_0x5b7eb9){return _0x4b1cc5['rows']=_0x5b7eb9,_0x4b1cc5;})[_0x5a5b5a(0x1a5)](respondWithFilteredResult(_0x9cdef6,_0x1a7882,_0x5a5b5a(0x1d6)))[_0x5a5b5a(0x1a9)](handleError(_0x9cdef6,null,'getVoiceQueuesReport'));}; \ No newline at end of file diff --git a/server/api/voiceQueueReport/voiceQueueReport.events.js b/server/api/voiceQueueReport/voiceQueueReport.events.js index 0587ab4..6f7557d 100644 --- a/server/api/voiceQueueReport/voiceQueueReport.events.js +++ b/server/api/voiceQueueReport/voiceQueueReport.events.js @@ -1 +1 @@ -const a761_0x3361=['save','exports','undefined','VoiceQueueReport','update','emit','events','../../mysqldb','remove','setMaxListeners','addHook'];(function(_0x1a059f,_0x336140){const _0x25e066=function(_0x14dd26){while(--_0x14dd26){_0x1a059f['push'](_0x1a059f['shift']());}};_0x25e066(++_0x336140);}(a761_0x3361,0x99));const a761_0x25e0=function(_0x1a059f,_0x336140){_0x1a059f=_0x1a059f-0x0;let _0x25e066=a761_0x3361[_0x1a059f];return _0x25e066;};const _0x3f0f15=a761_0x25e0;'use strict';const EventEmitter=require(_0x3f0f15('0x7')),VoiceQueueReport=require(_0x3f0f15('0x8'))['db'][_0x3f0f15('0x4')],VoiceQueueReportEvents=new EventEmitter();VoiceQueueReportEvents[_0x3f0f15('0xa')](0x0);const events={'afterCreate':_0x3f0f15('0x1'),'afterUpdate':_0x3f0f15('0x5'),'afterDestroy':_0x3f0f15('0x9')};function emitEvent(_0x14dd26){return function(_0x4e7928){const _0x3a77cf=a761_0x25e0;VoiceQueueReportEvents['emit'](_0x14dd26+':'+_0x4e7928['id'],_0x4e7928),VoiceQueueReportEvents[_0x3a77cf('0x6')](_0x14dd26,_0x4e7928);};}for(const e in events){if(typeof events[e]!==_0x3f0f15('0x3')){const event=events[e];VoiceQueueReport[_0x3f0f15('0x0')](e,emitEvent(event));}}module[_0x3f0f15('0x2')]=VoiceQueueReportEvents; \ No newline at end of file +const a912_0x46b8=['undefined','addHook','exports','setMaxListeners','VoiceQueueReport','events','remove','update','save'];(function(_0x3c8b10,_0x4a2dc6){const _0x46b8bb=function(_0x1dcb92){while(--_0x1dcb92){_0x3c8b10['push'](_0x3c8b10['shift']());}};_0x46b8bb(++_0x4a2dc6);}(a912_0x46b8,0x100));const a912_0x1dcb=function(_0x3c8b10,_0x4a2dc6){_0x3c8b10=_0x3c8b10-0x66;let _0x46b8bb=a912_0x46b8[_0x3c8b10];return _0x46b8bb;};const a912_0x43d6e5=a912_0x1dcb;'use strict';const EventEmitter=require(a912_0x43d6e5(0x67)),VoiceQueueReport=require('../../mysqldb')['db'][a912_0x43d6e5(0x66)],VoiceQueueReportEvents=new EventEmitter();VoiceQueueReportEvents[a912_0x43d6e5(0x6e)](0x0);const events={'afterCreate':a912_0x43d6e5(0x6a),'afterUpdate':a912_0x43d6e5(0x69),'afterDestroy':a912_0x43d6e5(0x68)};function emitEvent(_0x1afccd){return function(_0x5bdc8a){VoiceQueueReportEvents['emit'](_0x1afccd+':'+_0x5bdc8a['id'],_0x5bdc8a),VoiceQueueReportEvents['emit'](_0x1afccd,_0x5bdc8a);};}for(const e in events){if(typeof events[e]!==a912_0x43d6e5(0x6b)){const event=events[e];VoiceQueueReport[a912_0x43d6e5(0x6c)](e,emitEvent(event));}}module[a912_0x43d6e5(0x6d)]=VoiceQueueReportEvents; \ No newline at end of file diff --git a/server/api/voiceQueueReport/voiceQueueReport.model.js b/server/api/voiceQueueReport/voiceQueueReport.model.js index b572c41..2a28633 100644 --- a/server/api/voiceQueueReport/voiceQueueReport.model.js +++ b/server/api/voiceQueueReport/voiceQueueReport.model.js @@ -1 +1 @@ -const a762_0x31bb=['exports','calleridnum','define'];(function(_0xc0ebf7,_0x31bb75){const _0x592451=function(_0x3193db){while(--_0x3193db){_0xc0ebf7['push'](_0xc0ebf7['shift']());}};_0x592451(++_0x31bb75);}(a762_0x31bb,0x12f));const a762_0x5924=function(_0xc0ebf7,_0x31bb75){_0xc0ebf7=_0xc0ebf7-0x0;let _0x592451=a762_0x31bb[_0xc0ebf7];return _0x592451;};const _0xd78f74=a762_0x5924;'use strict';const attributes=require('./voiceQueueReport.attributes');module[_0xd78f74('0x0')]=function(_0x3193db){const _0x5db5a8=_0xd78f74,_0x1bc7a8=_0x3193db[_0x5db5a8('0x2')]('VoiceQueueReport',attributes,{'tableName':'report_queue','paranoid':![],'indexes':[{'fields':['uniqueid']},{'fields':[_0x5db5a8('0x1')]}],'timestamps':!![]});return _0x1bc7a8;}; \ No newline at end of file +const a913_0x2f00=['./voiceQueueReport.options','exports','function','sequelize','init','VoiceQueueReport'];(function(_0x365f6c,_0x2fa5d4){const _0x2f009d=function(_0xaa2a6){while(--_0xaa2a6){_0x365f6c['push'](_0x365f6c['shift']());}};_0x2f009d(++_0x2fa5d4);}(a913_0x2f00,0x84));const a913_0xaa2a=function(_0x365f6c,_0x2fa5d4){_0x365f6c=_0x365f6c-0xd4;let _0x2f009d=a913_0x2f00[_0x365f6c];return _0x2f009d;};const a913_0x3a43b9=a913_0xaa2a;'use strict';const {Model}=require(a913_0x3a43b9(0xd7)),{attributes}=require('./voiceQueueReport.attributes'),{options}=require(a913_0x3a43b9(0xd4));class VoiceQueueReport extends Model{}function init(_0x40b0d2,_0x46ab1b){const _0x307249=a913_0x3a43b9,_0x2f4e5e=options(_0x40b0d2),_0x3b1319=typeof _0x46ab1b===_0x307249(0xd6)?_0x46ab1b(_0x2f4e5e):_0x2f4e5e;return VoiceQueueReport['init'](attributes,_0x3b1319),VoiceQueueReport;}module[a913_0x3a43b9(0xd5)][a913_0x3a43b9(0xd9)]=VoiceQueueReport,module[a913_0x3a43b9(0xd5)][a913_0x3a43b9(0xd8)]=init; \ No newline at end of file diff --git a/server/api/voiceQueueReport/voiceQueueReport.options.js b/server/api/voiceQueueReport/voiceQueueReport.options.js new file mode 100644 index 0000000..3dc4a20 --- /dev/null +++ b/server/api/voiceQueueReport/voiceQueueReport.options.js @@ -0,0 +1 @@ +var a914_0x6ad4=['uniqueid','report_queue','exports','calleridnum'];(function(_0x542131,_0x36ea20){var _0x6ad4e7=function(_0x5899aa){while(--_0x5899aa){_0x542131['push'](_0x542131['shift']());}};_0x6ad4e7(++_0x36ea20);}(a914_0x6ad4,0x11c));var a914_0x5899=function(_0x542131,_0x36ea20){_0x542131=_0x542131-0x14d;var _0x6ad4e7=a914_0x6ad4[_0x542131];return _0x6ad4e7;};var a914_0x5ceb7c=a914_0x5899;function options(_0x2d149b){var _0x1c4df8=a914_0x5899;return{'sequelize':_0x2d149b,'tableName':_0x1c4df8(0x14e),'paranoid':![],'indexes':[{'fields':[_0x1c4df8(0x14d)]},{'fields':[_0x1c4df8(0x150)]}],'timestamps':!![]};}module[a914_0x5ceb7c(0x14f)]['options']=options; \ No newline at end of file diff --git a/server/api/voiceQueueReport/voiceQueueReport.rpc.js b/server/api/voiceQueueReport/voiceQueueReport.rpc.js index 88ffc50..0ffe2c6 100644 --- a/server/api/voiceQueueReport/voiceQueueReport.rpc.js +++ b/server/api/voiceQueueReport/voiceQueueReport.rpc.js @@ -1 +1 @@ -const a763_0x4e0b=['then','GetVoiceQueueReport','message','model','rpc','./voiceQueueReport.socket','limit','stringify','debug','findAll','UpdateVoiceQueueReport','where','VoiceQueueReport','attributes','lodash','options','body','map','../../config/logger','info','CreateVoiceQueueReport','include','error','../../mysqldb','register','catch','raw'];(function(_0x112a69,_0x4e0b49){const _0x24d8ce=function(_0x59b352){while(--_0x59b352){_0x112a69['push'](_0x112a69['shift']());}};_0x24d8ce(++_0x4e0b49);}(a763_0x4e0b,0x13d));const a763_0x24d8=function(_0x112a69,_0x4e0b49){_0x112a69=_0x112a69-0x0;let _0x24d8ce=a763_0x4e0b[_0x112a69];return _0x24d8ce;};const _0x78b9b5=a763_0x24d8;'use strict';const _=require(_0x78b9b5('0x15')),db=require(_0x78b9b5('0x3'))['db'],logger=require(_0x78b9b5('0x19'))(_0x78b9b5('0xb')),{getSocket}=require('../../rediscache'),socket=getSocket();require(_0x78b9b5('0xc'))[_0x78b9b5('0x4')](socket),exports['GetVoiceQueueReport']=function(_0x59b352){const _0x2af610=this;return new Promise(function(_0x4b3dc8,_0x338281){const _0x247892=a763_0x24d8;return db[_0x247892('0x13')][_0x247892('0x10')]({'raw':_0x59b352[_0x247892('0x16')]?_0x59b352[_0x247892('0x16')][_0x247892('0x6')]===undefined?!![]:![]:!![],'where':_0x59b352[_0x247892('0x16')]?_0x59b352[_0x247892('0x16')][_0x247892('0x12')]||null:null,'attributes':_0x59b352['options']?_0x59b352[_0x247892('0x16')][_0x247892('0x14')]||null:null,'limit':_0x59b352[_0x247892('0x16')]?_0x59b352[_0x247892('0x16')][_0x247892('0xd')]||null:null,'include':_0x59b352['options']?_0x59b352[_0x247892('0x16')][_0x247892('0x1')]?_[_0x247892('0x18')](_0x59b352['options']['include'],function(_0x10cbfe){const _0x490eef=_0x247892;return{'model':db[_0x10cbfe[_0x490eef('0xa')]],'as':_0x10cbfe['as'],'attributes':_0x10cbfe[_0x490eef('0x14')],'include':_0x10cbfe[_0x490eef('0x1')]?_[_0x490eef('0x18')](_0x10cbfe[_0x490eef('0x1')],function(_0x4ef975){const _0x285319=_0x490eef;return{'model':db[_0x4ef975['model']],'as':_0x4ef975['as'],'attributes':_0x4ef975[_0x285319('0x14')],'include':_0x4ef975[_0x285319('0x1')]?_[_0x285319('0x18')](_0x4ef975[_0x285319('0x1')],function(_0x49854a){return{'model':db[_0x49854a['model']],'as':_0x49854a['as'],'attributes':_0x49854a['attributes']};}):[]};}):[]};}):[]:[]})[_0x247892('0x7')](function(_0x487d9e){const _0x335209=_0x247892;logger[_0x335209('0x1a')](_0x335209('0x8'),_0x59b352),logger[_0x335209('0xf')](_0x335209('0x8'),_0x59b352,JSON[_0x335209('0xe')](_0x487d9e)),_0x4b3dc8(_0x487d9e);})[_0x247892('0x5')](function(_0x4e9804){const _0x2c12b8=_0x247892;logger['error'](_0x2c12b8('0x8'),_0x4e9804[_0x2c12b8('0x9')],_0x59b352),_0x338281(_0x2af610['error'](0x1f4,_0x4e9804[_0x2c12b8('0x9')]));});});},exports[_0x78b9b5('0x0')]=function(_0x24674e){const _0x1a085d=this;return new Promise(function(_0x2ec03f,_0x9bb1b3){const _0x1f773f=a763_0x24d8;return db[_0x1f773f('0x13')]['create'](_0x24674e[_0x1f773f('0x17')],{'raw':_0x24674e[_0x1f773f('0x16')]?_0x24674e[_0x1f773f('0x16')]['raw']===undefined?!![]:![]:!![]})[_0x1f773f('0x7')](function(_0x522a01){const _0x14a5c3=_0x1f773f;logger['info'](_0x14a5c3('0x0'),_0x24674e),logger[_0x14a5c3('0xf')]('CreateVoiceQueueReport',_0x24674e,JSON[_0x14a5c3('0xe')](_0x522a01)),_0x2ec03f(_0x522a01);})[_0x1f773f('0x5')](function(_0x4019d2){const _0x2c34a2=_0x1f773f;logger['error'](_0x2c34a2('0x0'),_0x4019d2[_0x2c34a2('0x9')],_0x24674e),_0x9bb1b3(_0x1a085d['error'](0x1f4,_0x4019d2[_0x2c34a2('0x9')]));});});},exports[_0x78b9b5('0x11')]=function(_0x82bf){const _0x5413f0=this;return new Promise(function(_0x170dfe,_0x2828ac){const _0x1bd3d9=a763_0x24d8;return db['VoiceQueueReport']['update'](_0x82bf['body'],{'raw':_0x82bf[_0x1bd3d9('0x16')]?_0x82bf[_0x1bd3d9('0x16')][_0x1bd3d9('0x6')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x82bf[_0x1bd3d9('0x16')]?_0x82bf[_0x1bd3d9('0x16')][_0x1bd3d9('0x12')]||null:null,'attributes':_0x82bf[_0x1bd3d9('0x16')]?_0x82bf[_0x1bd3d9('0x16')]['attributes']||null:null,'limit':_0x82bf[_0x1bd3d9('0x16')]?_0x82bf[_0x1bd3d9('0x16')][_0x1bd3d9('0xd')]||null:null})[_0x1bd3d9('0x7')](function(_0x134707){const _0x49e9d7=_0x1bd3d9;logger[_0x49e9d7('0x1a')](_0x49e9d7('0x11'),_0x82bf),logger['debug'](_0x49e9d7('0x11'),_0x82bf,JSON[_0x49e9d7('0xe')](_0x134707)),_0x170dfe(_0x134707);})['catch'](function(_0x3b1d1c){const _0x161f84=_0x1bd3d9;logger[_0x161f84('0x2')]('UpdateVoiceQueueReport',_0x3b1d1c['message'],_0x82bf),_0x2828ac(_0x5413f0['error'](0x1f4,_0x3b1d1c['message']));});});}; \ No newline at end of file +const a915_0x44b9=['attributes','GetVoiceQueueReport','UpdateVoiceQueueReport','../../rediscache','./voiceQueueReport.socket','info','lodash','catch','message','../../mysqldb','rpc','then','limit','where','options','stringify','map','VoiceQueueReport','error','findAll','../../config/logger','include','CreateVoiceQueueReport','raw','create','model','update','register','body','debug'];(function(_0x49b2bc,_0x1b9307){const _0x44b9db=function(_0x845fe8){while(--_0x845fe8){_0x49b2bc['push'](_0x49b2bc['shift']());}};_0x44b9db(++_0x1b9307);}(a915_0x44b9,0x173));const a915_0x845f=function(_0x49b2bc,_0x1b9307){_0x49b2bc=_0x49b2bc-0x88;let _0x44b9db=a915_0x44b9[_0x49b2bc];return _0x44b9db;};const a915_0x25ce59=a915_0x845f;'use strict';const _=require(a915_0x25ce59(0xa1)),db=require(a915_0x25ce59(0xa4))['db'],logger=require(a915_0x25ce59(0x91))(a915_0x25ce59(0xa5)),{getSocket}=require(a915_0x25ce59(0x9e)),socket=getSocket();require(a915_0x25ce59(0x9f))[a915_0x25ce59(0x98)](socket),exports[a915_0x25ce59(0x9c)]=function(_0x1101c1){const _0x5a499b=this;return new Promise(function(_0x50e553,_0x1ad8cf){const _0x5902a3=a915_0x845f;return db[_0x5902a3(0x8e)][_0x5902a3(0x90)]({'raw':_0x1101c1[_0x5902a3(0x8b)]?_0x1101c1['options'][_0x5902a3(0x94)]===undefined?!![]:![]:!![],'where':_0x1101c1[_0x5902a3(0x8b)]?_0x1101c1[_0x5902a3(0x8b)][_0x5902a3(0x8a)]||null:null,'attributes':_0x1101c1[_0x5902a3(0x8b)]?_0x1101c1[_0x5902a3(0x8b)][_0x5902a3(0x9b)]||null:null,'limit':_0x1101c1['options']?_0x1101c1[_0x5902a3(0x8b)][_0x5902a3(0x89)]||null:null,'include':_0x1101c1[_0x5902a3(0x8b)]?_0x1101c1['options'][_0x5902a3(0x92)]?_[_0x5902a3(0x8d)](_0x1101c1[_0x5902a3(0x8b)][_0x5902a3(0x92)],function(_0x3ce45d){const _0x1993f1=_0x5902a3;return{'model':db[_0x3ce45d[_0x1993f1(0x96)]],'as':_0x3ce45d['as'],'attributes':_0x3ce45d[_0x1993f1(0x9b)],'include':_0x3ce45d['include']?_[_0x1993f1(0x8d)](_0x3ce45d[_0x1993f1(0x92)],function(_0x3020cb){const _0x4ae5e0=_0x1993f1;return{'model':db[_0x3020cb[_0x4ae5e0(0x96)]],'as':_0x3020cb['as'],'attributes':_0x3020cb[_0x4ae5e0(0x9b)],'include':_0x3020cb[_0x4ae5e0(0x92)]?_['map'](_0x3020cb[_0x4ae5e0(0x92)],function(_0x209710){const _0x5d3d19=_0x4ae5e0;return{'model':db[_0x209710[_0x5d3d19(0x96)]],'as':_0x209710['as'],'attributes':_0x209710[_0x5d3d19(0x9b)]};}):[]};}):[]};}):[]:[]})[_0x5902a3(0x88)](function(_0x3c934c){const _0x3cc2a3=_0x5902a3;logger[_0x3cc2a3(0xa0)](_0x3cc2a3(0x9c),_0x1101c1),logger[_0x3cc2a3(0x9a)](_0x3cc2a3(0x9c),_0x1101c1,JSON[_0x3cc2a3(0x8c)](_0x3c934c)),_0x50e553(_0x3c934c);})[_0x5902a3(0xa2)](function(_0x15b2c4){const _0x309acf=_0x5902a3;logger[_0x309acf(0x8f)]('GetVoiceQueueReport',_0x15b2c4[_0x309acf(0xa3)],_0x1101c1),_0x1ad8cf(_0x5a499b[_0x309acf(0x8f)](0x1f4,_0x15b2c4[_0x309acf(0xa3)]));});});},exports[a915_0x25ce59(0x93)]=function(_0x45e28c){const _0x43c41d=this;return new Promise(function(_0x56cbeb,_0x5e555d){const _0x4bd62a=a915_0x845f;return db[_0x4bd62a(0x8e)][_0x4bd62a(0x95)](_0x45e28c[_0x4bd62a(0x99)],{'raw':_0x45e28c['options']?_0x45e28c[_0x4bd62a(0x8b)][_0x4bd62a(0x94)]===undefined?!![]:![]:!![]})[_0x4bd62a(0x88)](function(_0x1bc0b6){const _0x4c06a8=_0x4bd62a;logger[_0x4c06a8(0xa0)]('CreateVoiceQueueReport',_0x45e28c),logger[_0x4c06a8(0x9a)](_0x4c06a8(0x93),_0x45e28c,JSON['stringify'](_0x1bc0b6)),_0x56cbeb(_0x1bc0b6);})[_0x4bd62a(0xa2)](function(_0x43e985){const _0x4b5983=_0x4bd62a;logger['error']('CreateVoiceQueueReport',_0x43e985[_0x4b5983(0xa3)],_0x45e28c),_0x5e555d(_0x43c41d[_0x4b5983(0x8f)](0x1f4,_0x43e985[_0x4b5983(0xa3)]));});});},exports[a915_0x25ce59(0x9d)]=function(_0xf65b6b){const _0x3e6d37=this;return new Promise(function(_0x59f894,_0x29368d){const _0x5188bf=a915_0x845f;return db[_0x5188bf(0x8e)][_0x5188bf(0x97)](_0xf65b6b[_0x5188bf(0x99)],{'raw':_0xf65b6b[_0x5188bf(0x8b)]?_0xf65b6b[_0x5188bf(0x8b)][_0x5188bf(0x94)]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0xf65b6b[_0x5188bf(0x8b)]?_0xf65b6b[_0x5188bf(0x8b)][_0x5188bf(0x8a)]||null:null,'attributes':_0xf65b6b[_0x5188bf(0x8b)]?_0xf65b6b[_0x5188bf(0x8b)][_0x5188bf(0x9b)]||null:null,'limit':_0xf65b6b[_0x5188bf(0x8b)]?_0xf65b6b[_0x5188bf(0x8b)][_0x5188bf(0x89)]||null:null})[_0x5188bf(0x88)](function(_0x4397ab){const _0x5ad549=_0x5188bf;logger['info']('UpdateVoiceQueueReport',_0xf65b6b),logger[_0x5ad549(0x9a)](_0x5ad549(0x9d),_0xf65b6b,JSON[_0x5ad549(0x8c)](_0x4397ab)),_0x59f894(_0x4397ab);})[_0x5188bf(0xa2)](function(_0x5c27a6){const _0x502f12=_0x5188bf;logger['error'](_0x502f12(0x9d),_0x5c27a6[_0x502f12(0xa3)],_0xf65b6b),_0x29368d(_0x3e6d37['error'](0x1f4,_0x5c27a6['message']));});});}; \ No newline at end of file diff --git a/server/api/voiceQueueReport/voiceQueueReport.socket.js b/server/api/voiceQueueReport/voiceQueueReport.socket.js index 2dc81ab..61624cb 100644 --- a/server/api/voiceQueueReport/voiceQueueReport.socket.js +++ b/server/api/voiceQueueReport/voiceQueueReport.socket.js @@ -1 +1 @@ -const a764_0xe35c=['length','voiceQueueReport:','emit','register','save'];(function(_0x4273f9,_0xe35ccf){const _0x52cf88=function(_0x26e090){while(--_0x26e090){_0x4273f9['push'](_0x4273f9['shift']());}};_0x52cf88(++_0xe35ccf);}(a764_0xe35c,0x1d8));const a764_0x52cf=function(_0x4273f9,_0xe35ccf){_0x4273f9=_0x4273f9-0x0;let _0x52cf88=a764_0xe35c[_0x4273f9];return _0x52cf88;};const _0x22e8be=a764_0x52cf;'use strict';const VoiceQueueReportEvents=require('./voiceQueueReport.events'),events=[_0x22e8be('0x2'),'remove','update'];function createListener(_0x26e090,_0x4e8982){return function(_0x3be674){const _0xed75d8=a764_0x52cf;_0x4e8982[_0xed75d8('0x0')](_0x26e090,_0x3be674);};}exports[_0x22e8be('0x1')]=function(_0x5cf090){const _0x36ba41=_0x22e8be;for(let _0x2f9874=0x0,_0x7eb241=events[_0x36ba41('0x3')];_0x2f9874<_0x7eb241;_0x2f9874++){const _0x5815ce=events[_0x2f9874],_0x16bbc2=createListener(_0x36ba41('0x4')+_0x5815ce,_0x5cf090);VoiceQueueReportEvents['on'](_0x5815ce,_0x16bbc2);}}; \ No newline at end of file +const a916_0x4910=['register','length','./voiceQueueReport.events','voiceQueueReport:','emit'];(function(_0x48cccc,_0x32a0d6){const _0x491042=function(_0x14d935){while(--_0x14d935){_0x48cccc['push'](_0x48cccc['shift']());}};_0x491042(++_0x32a0d6);}(a916_0x4910,0x147));const a916_0x14d9=function(_0x48cccc,_0x32a0d6){_0x48cccc=_0x48cccc-0x173;let _0x491042=a916_0x4910[_0x48cccc];return _0x491042;};const a916_0x3664fc=a916_0x14d9;'use strict';const VoiceQueueReportEvents=require(a916_0x3664fc(0x173)),events=['save','remove','update'];function createListener(_0x59312b,_0x36e325){return function(_0x1c9f3c){const _0x59611c=a916_0x14d9;_0x36e325[_0x59611c(0x175)](_0x59312b,_0x1c9f3c);};}exports[a916_0x3664fc(0x176)]=function(_0x151d76){const _0x48cd8d=a916_0x3664fc;for(let _0x32fcf0=0x0,_0x3158be=events[_0x48cd8d(0x177)];_0x32fcf0<_0x3158be;_0x32fcf0++){const _0x10a01d=events[_0x32fcf0],_0x3c4fd8=createListener(_0x48cd8d(0x174)+_0x10a01d,_0x151d76);VoiceQueueReportEvents['on'](_0x10a01d,_0x3c4fd8);}}; \ No newline at end of file diff --git a/server/api/voiceQueuesLog/index.js b/server/api/voiceQueuesLog/index.js index a6febd5..097af5c 100644 --- a/server/api/voiceQueuesLog/index.js +++ b/server/api/voiceQueuesLog/index.js @@ -1 +1 @@ -const a765_0x1c65=['exports','../../components/auth/service','express','/:id','index','destroy','show','get','create','post','update','delete','isAuthenticated','./voiceQueuesLog.controller'];(function(_0x44207a,_0x1c65e5){const _0xd5b432=function(_0x2d9811){while(--_0x2d9811){_0x44207a['push'](_0x44207a['shift']());}};_0xd5b432(++_0x1c65e5);}(a765_0x1c65,0x1ad));const a765_0xd5b4=function(_0x44207a,_0x1c65e5){_0x44207a=_0x44207a-0x0;let _0xd5b432=a765_0x1c65[_0x44207a];return _0xd5b432;};const _0x2ea670=a765_0xd5b4;'use strict';const express=require(_0x2ea670('0x7')),router=express['Router'](),auth=require(_0x2ea670('0x6')),controller=require(_0x2ea670('0x4'));router[_0x2ea670('0xc')]('/',auth['isAuthenticated'](),controller[_0x2ea670('0x9')]),router['get'](_0x2ea670('0x8'),auth[_0x2ea670('0x3')](),controller[_0x2ea670('0xb')]),router[_0x2ea670('0x0')]('/',auth[_0x2ea670('0x3')](),controller[_0x2ea670('0xd')]),router['put'](_0x2ea670('0x8'),auth[_0x2ea670('0x3')](),controller[_0x2ea670('0x1')]),router[_0x2ea670('0x2')](_0x2ea670('0x8'),auth['isAuthenticated'](),controller[_0x2ea670('0xa')]),module[_0x2ea670('0x5')]=router; \ No newline at end of file +const a917_0x4d56=['express','show','exports','Router','index','get','post','isAuthenticated','put','create','update','/:id','destroy'];(function(_0x4f2c85,_0x5a937b){const _0x4d5651=function(_0x3f54d8){while(--_0x3f54d8){_0x4f2c85['push'](_0x4f2c85['shift']());}};_0x4d5651(++_0x5a937b);}(a917_0x4d56,0x134));const a917_0x3f54=function(_0x4f2c85,_0x5a937b){_0x4f2c85=_0x4f2c85-0x165;let _0x4d5651=a917_0x4d56[_0x4f2c85];return _0x4d5651;};const a917_0xa84e9a=a917_0x3f54;'use strict';const express=require(a917_0xa84e9a(0x169)),router=express[a917_0xa84e9a(0x16c)](),auth=require('../../components/auth/service'),controller=require('./voiceQueuesLog.controller');router[a917_0xa84e9a(0x16e)]('/',auth[a917_0xa84e9a(0x170)](),controller[a917_0xa84e9a(0x16d)]),router[a917_0xa84e9a(0x16e)](a917_0xa84e9a(0x167),auth[a917_0xa84e9a(0x170)](),controller[a917_0xa84e9a(0x16a)]),router[a917_0xa84e9a(0x16f)]('/',auth[a917_0xa84e9a(0x170)](),controller[a917_0xa84e9a(0x165)]),router[a917_0xa84e9a(0x171)](a917_0xa84e9a(0x167),auth[a917_0xa84e9a(0x170)](),controller[a917_0xa84e9a(0x166)]),router['delete'](a917_0xa84e9a(0x167),auth[a917_0xa84e9a(0x170)](),controller[a917_0xa84e9a(0x168)]),module[a917_0xa84e9a(0x16b)]=router; \ No newline at end of file diff --git a/server/api/voiceQueuesLog/voiceQueuesLog.attributes.js b/server/api/voiceQueuesLog/voiceQueuesLog.attributes.js index bc99161..6d2b2ce 100644 --- a/server/api/voiceQueuesLog/voiceQueuesLog.attributes.js +++ b/server/api/voiceQueuesLog/voiceQueuesLog.attributes.js @@ -1 +1 @@ -const a766_0xb93a=['sequelize','exports','format','STRING','YYYY-MM-DD\x20HH:mm:ss','moment'];(function(_0x58da7c,_0xb93a6){const _0x1d3533=function(_0x35323d){while(--_0x35323d){_0x58da7c['push'](_0x58da7c['shift']());}};_0x1d3533(++_0xb93a6);}(a766_0xb93a,0xe2));const a766_0x1d35=function(_0x58da7c,_0xb93a6){_0x58da7c=_0x58da7c-0x0;let _0x1d3533=a766_0xb93a[_0x58da7c];return _0x1d3533;};const _0x116f49=a766_0x1d35;'use strict';const Sequelize=require(_0x116f49('0x2')),moment=require(_0x116f49('0x1'));module[_0x116f49('0x3')]={'time':{'type':Sequelize[_0x116f49('0x5')]},'callid':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':''},'queuename':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':''},'agent':{'type':Sequelize[_0x116f49('0x5')],'allowNull':![],'defaultValue':''},'event':{'type':Sequelize[_0x116f49('0x5')],'allowNull':![],'defaultValue':''},'data':{'type':Sequelize[_0x116f49('0x5')],'allowNull':![],'defaultValue':''},'data1':{'type':Sequelize[_0x116f49('0x5')],'allowNull':![],'defaultValue':''},'data2':{'type':Sequelize[_0x116f49('0x5')],'allowNull':![],'defaultValue':''},'data3':{'type':Sequelize[_0x116f49('0x5')],'allowNull':![],'defaultValue':''},'data4':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':''},'data5':{'type':Sequelize[_0x116f49('0x5')],'allowNull':![],'defaultValue':''},'dtm':{'type':Sequelize['DATE'],'allowNull':![],'defaultValue':moment()[_0x116f49('0x4')](_0x116f49('0x0'))}}; \ No newline at end of file +const a918_0x11e9=['DATE','moment','attributes','STRING','sequelize','exports'];(function(_0x522fa4,_0x42a6b0){const _0x11e9df=function(_0xf2443){while(--_0xf2443){_0x522fa4['push'](_0x522fa4['shift']());}};_0x11e9df(++_0x42a6b0);}(a918_0x11e9,0x15e));const a918_0xf244=function(_0x522fa4,_0x42a6b0){_0x522fa4=_0x522fa4-0x142;let _0x11e9df=a918_0x11e9[_0x522fa4];return _0x11e9df;};const a918_0x29188d=a918_0xf244;'use strict';const {DataTypes}=require(a918_0x29188d(0x144)),moment=require(a918_0x29188d(0x147)),attributes={'time':{'type':DataTypes[a918_0x29188d(0x143)]},'callid':{'type':DataTypes[a918_0x29188d(0x143)],'allowNull':![],'defaultValue':''},'queuename':{'type':DataTypes[a918_0x29188d(0x143)],'allowNull':![],'defaultValue':''},'agent':{'type':DataTypes[a918_0x29188d(0x143)],'allowNull':![],'defaultValue':''},'event':{'type':DataTypes[a918_0x29188d(0x143)],'allowNull':![],'defaultValue':''},'data':{'type':DataTypes[a918_0x29188d(0x143)],'allowNull':![],'defaultValue':''},'data1':{'type':DataTypes[a918_0x29188d(0x143)],'allowNull':![],'defaultValue':''},'data2':{'type':DataTypes[a918_0x29188d(0x143)],'allowNull':![],'defaultValue':''},'data3':{'type':DataTypes[a918_0x29188d(0x143)],'allowNull':![],'defaultValue':''},'data4':{'type':DataTypes['STRING'],'allowNull':![],'defaultValue':''},'data5':{'type':DataTypes['STRING'],'allowNull':![],'defaultValue':''},'dtm':{'type':DataTypes[a918_0x29188d(0x146)],'allowNull':![],'defaultValue':moment()['format']('YYYY-MM-DD\x20HH:mm:ss')}};module[a918_0x29188d(0x145)][a918_0x29188d(0x142)]=attributes; \ No newline at end of file diff --git a/server/api/voiceQueuesLog/voiceQueuesLog.controller.js b/server/api/voiceQueuesLog/voiceQueuesLog.controller.js index 76a522b..8520402 100644 --- a/server/api/voiceQueuesLog/voiceQueuesLog.controller.js +++ b/server/api/voiceQueuesLog/voiceQueuesLog.controller.js @@ -1 +1 @@ -const a767_0x2070=['VIRTUAL','../../config/logger','includeAll','rows','../../components/parsers/qs','create','length','sort','api','sequelize','status','order','send','options','error','count','fields','stack','then','destroy','body','index','query','type','sendStatus','name','filters','limit','catch','params','findAll','pick','update','model','findOne','VoiceQueuesLog','map','set','attributes','keys','fieldName','json','../../mysqldb','end','lodash','merge','undefined','filter','where','rawAttributes','like','intersection','offset','include'];(function(_0x5dd2d8,_0x20709c){const _0x2c1cf4=function(_0x505fdb){while(--_0x505fdb){_0x5dd2d8['push'](_0x5dd2d8['shift']());}};_0x2c1cf4(++_0x20709c);}(a767_0x2070,0x15e));const a767_0x2c1c=function(_0x5dd2d8,_0x20709c){_0x5dd2d8=_0x5dd2d8-0x0;let _0x2c1cf4=a767_0x2070[_0x5dd2d8];return _0x2c1cf4;};const _0x5af6bf=a767_0x2c1c;'use strict';const _=require(_0x5af6bf('0x12')),qs=require(_0x5af6bf('0x20')),logger=require(_0x5af6bf('0x1d'))(_0x5af6bf('0x24')),db=require(_0x5af6bf('0x10'))['db'],{Op}=require(_0x5af6bf('0x25'));function respondWithResult(_0x505fdb,_0x3f5594){return _0x3f5594=_0x3f5594||0xc8,function(_0x5d297d){const _0x3dc6da=a767_0x2c1c;if(_0x5d297d)return _0x505fdb[_0x3dc6da('0x26')](_0x3f5594)[_0x3dc6da('0xf')](_0x5d297d);};}function respondWithFilteredResult(_0x56f092,_0x40950c){return function(_0x16f236){const _0x5ee9dc=a767_0x2c1c;if(_0x16f236){const _0x20b7e2=_0x16f236[_0x5ee9dc('0x2b')],_0x20511f=_0x40950c['offset'];let _0x545a91=_0x40950c[_0x5ee9dc('0x1a')]+_0x40950c[_0x5ee9dc('0x1')],_0x567aac;return _0x545a91>=_0x20b7e2?(_0x545a91=_0x20b7e2,_0x567aac=0xc8):_0x567aac=0xce,_0x56f092[_0x5ee9dc('0x26')](_0x567aac),_0x56f092[_0x5ee9dc('0xb')]('Content-Range',_0x20511f+'-'+_0x545a91+'/'+_0x20b7e2)['json'](_0x16f236);}return null;};}function saveUpdates(_0x1c8328){return function(_0x17a0fc){if(_0x17a0fc)return _0x17a0fc['update'](_0x1c8328)['then'](function(_0x2de58b){return _0x2de58b;});return null;};}function removeEntity(_0x3b04da){return function(_0x5019ef){const _0x207149=a767_0x2c1c;if(_0x5019ef)return _0x5019ef[_0x207149('0x2f')]()[_0x207149('0x2e')](function(){const _0x76d443=_0x207149;_0x3b04da[_0x76d443('0x26')](0xcc)[_0x76d443('0x11')]();});};}function handleEntityNotFound(_0x39a4f4){return function(_0x514313){const _0x2a12f3=a767_0x2c1c;return!_0x514313&&_0x39a4f4[_0x2a12f3('0x34')](0x194),_0x514313;};}function handleError(_0xe9caae,_0x19ba40){return _0x19ba40=_0x19ba40||0x1f4,function(_0x4b0b25){const _0x49e529=a767_0x2c1c;logger[_0x49e529('0x2a')](_0x4b0b25[_0x49e529('0x2d')]),_0x4b0b25[_0x49e529('0x35')]&&delete _0x4b0b25[_0x49e529('0x35')],_0xe9caae[_0x49e529('0x26')](_0x19ba40)[_0x49e529('0x28')](_0x4b0b25);};}exports[_0x5af6bf('0x31')]=function(_0x3ed423,_0x310055){const _0x48cbbb=_0x5af6bf;let _0xfe9b61={};const _0x1c9619={},_0x274dc2={'count':0x0,'rows':[]},_0x1caef1=_[_0x48cbbb('0xa')](db['VoiceQueuesLog'][_0x48cbbb('0x17')],function(_0x536d68){const _0x588cc9=_0x48cbbb;return{'name':_0x536d68[_0x588cc9('0xe')],'type':_0x536d68[_0x588cc9('0x33')]['key']};});_0x1c9619[_0x48cbbb('0x7')]=_[_0x48cbbb('0xa')](_0x1caef1,_0x48cbbb('0x35')),_0x1c9619['query']=_[_0x48cbbb('0xd')](_0x3ed423[_0x48cbbb('0x32')]),_0x1c9619[_0x48cbbb('0x0')]=_[_0x48cbbb('0x19')](_0x1c9619['model'],_0x1c9619[_0x48cbbb('0x32')]),_0xfe9b61[_0x48cbbb('0xc')]=_[_0x48cbbb('0x19')](_0x1c9619['model'],qs['fields'](_0x3ed423[_0x48cbbb('0x32')]['fields'])),_0xfe9b61['attributes']=_0xfe9b61[_0x48cbbb('0xc')][_0x48cbbb('0x22')]?_0xfe9b61[_0x48cbbb('0xc')]:_0x1c9619[_0x48cbbb('0x7')];typeof _0x3ed423['query']['nolimit']===_0x48cbbb('0x14')&&(_0xfe9b61[_0x48cbbb('0x1')]=qs[_0x48cbbb('0x1')](_0x3ed423['query']['limit']),_0xfe9b61[_0x48cbbb('0x1a')]=qs[_0x48cbbb('0x1a')](_0x3ed423[_0x48cbbb('0x32')]['offset']));_0xfe9b61[_0x48cbbb('0x27')]=qs[_0x48cbbb('0x23')](_0x3ed423['query'][_0x48cbbb('0x23')]),_0xfe9b61[_0x48cbbb('0x16')]=qs[_0x48cbbb('0x0')](_[_0x48cbbb('0x5')](_0x3ed423[_0x48cbbb('0x32')],_0x1c9619[_0x48cbbb('0x0')]),_0x1caef1);_0x3ed423[_0x48cbbb('0x32')][_0x48cbbb('0x15')]&&(_0xfe9b61[_0x48cbbb('0x16')]=_[_0x48cbbb('0x13')](_0xfe9b61[_0x48cbbb('0x16')],{[Op['or']]:_[_0x48cbbb('0xa')](_0x1caef1,function(_0x4bd874){const _0x14c6fd=_0x48cbbb;if(_0x4bd874[_0x14c6fd('0x33')]!==_0x14c6fd('0x1c')){const _0x24aba9={};return _0x24aba9[_0x4bd874[_0x14c6fd('0x35')]]={[Op[_0x14c6fd('0x18')]]:'%'+_0x3ed423[_0x14c6fd('0x32')][_0x14c6fd('0x15')]+'%'},_0x24aba9;}})}));_0xfe9b61=_[_0x48cbbb('0x13')]({},_0xfe9b61,_0x3ed423[_0x48cbbb('0x29')]);const _0x33ee00={'where':_0xfe9b61[_0x48cbbb('0x16')]};return db['VoiceQueuesLog'][_0x48cbbb('0x2b')](_0x33ee00)[_0x48cbbb('0x2e')](function(_0x2d844a){const _0x3f3f59=_0x48cbbb;return _0x274dc2['count']=_0x2d844a,_0x3ed423['query'][_0x3f3f59('0x1e')]&&(_0xfe9b61[_0x3f3f59('0x1b')]=[{'all':!![]}]),db[_0x3f3f59('0x9')][_0x3f3f59('0x4')](_0xfe9b61);})[_0x48cbbb('0x2e')](function(_0x2b4250){const _0x140a9f=_0x48cbbb;return _0x274dc2[_0x140a9f('0x1f')]=_0x2b4250,_0x274dc2;})['then'](respondWithFilteredResult(_0x310055,_0xfe9b61))['catch'](handleError(_0x310055,null));},exports['show']=function(_0xb0022c,_0x274b0e){const _0x389aca=_0x5af6bf;let _0xffdc75={'raw':!![],'where':{'id':_0xb0022c[_0x389aca('0x3')]['id']}};const _0x3d6a54={};return _0x3d6a54[_0x389aca('0x7')]=_[_0x389aca('0xd')](db[_0x389aca('0x9')][_0x389aca('0x17')]),_0x3d6a54[_0x389aca('0x32')]=_['keys'](_0xb0022c[_0x389aca('0x32')]),_0x3d6a54['filters']=_[_0x389aca('0x19')](_0x3d6a54[_0x389aca('0x7')],_0x3d6a54['query']),_0xffdc75[_0x389aca('0xc')]=_['intersection'](_0x3d6a54[_0x389aca('0x7')],qs[_0x389aca('0x2c')](_0xb0022c[_0x389aca('0x32')][_0x389aca('0x2c')])),_0xffdc75[_0x389aca('0xc')]=_0xffdc75['attributes']['length']?_0xffdc75[_0x389aca('0xc')]:_0x3d6a54['model'],_0xb0022c[_0x389aca('0x32')]['includeAll']&&(_0xffdc75['include']=[{'all':!![]}]),_0xffdc75=_[_0x389aca('0x13')]({},_0xffdc75,_0xb0022c['options']),db['VoiceQueuesLog'][_0x389aca('0x8')](_0xffdc75)[_0x389aca('0x2e')](handleEntityNotFound(_0x274b0e,null))[_0x389aca('0x2e')](respondWithResult(_0x274b0e,null))[_0x389aca('0x2')](handleError(_0x274b0e,null));},exports['create']=function(_0x1e8c25,_0x343f2b){const _0x37eb99=_0x5af6bf;return db[_0x37eb99('0x9')][_0x37eb99('0x21')](_0x1e8c25[_0x37eb99('0x30')],{})[_0x37eb99('0x2e')](respondWithResult(_0x343f2b,0xc9))[_0x37eb99('0x2')](handleError(_0x343f2b,null));},exports[_0x5af6bf('0x6')]=function(_0xbb85d2,_0x2bb3b9){const _0x1c9b4d=_0x5af6bf;return _0xbb85d2[_0x1c9b4d('0x30')]['id']&&delete _0xbb85d2[_0x1c9b4d('0x30')]['id'],db[_0x1c9b4d('0x9')][_0x1c9b4d('0x8')]({'where':{'id':_0xbb85d2[_0x1c9b4d('0x3')]['id']}})[_0x1c9b4d('0x2e')](handleEntityNotFound(_0x2bb3b9,null))['then'](saveUpdates(_0xbb85d2['body'],null))[_0x1c9b4d('0x2e')](respondWithResult(_0x2bb3b9,null))[_0x1c9b4d('0x2')](handleError(_0x2bb3b9,null));},exports[_0x5af6bf('0x2f')]=function(_0x4fa0e2,_0x32d31d){const _0x5a427c=_0x5af6bf;return db['VoiceQueuesLog'][_0x5a427c('0x8')]({'where':{'id':_0x4fa0e2[_0x5a427c('0x3')]['id']}})['then'](handleEntityNotFound(_0x32d31d,null))[_0x5a427c('0x2e')](removeEntity(_0x32d31d,null))[_0x5a427c('0x2')](handleError(_0x32d31d,null));}; \ No newline at end of file +const a919_0x416c=['count','sort','filters','sendStatus','length','merge','limit','../../components/parsers/qs','Content-Range','api','params','destroy','then','undefined','../../mysqldb','rows','index','type','key','status','body','attributes','offset','rawAttributes','catch','lodash','pick','options','set','send','query','show','VoiceQueuesLog','json','map','fieldName','sequelize','nolimit','error','include','intersection','end','VIRTUAL','model','create','findOne','fields','name','stack','where','update','includeAll','keys'];(function(_0x3d5d19,_0x5edbbc){const _0x416c8b=function(_0x259282){while(--_0x259282){_0x3d5d19['push'](_0x3d5d19['shift']());}};_0x416c8b(++_0x5edbbc);}(a919_0x416c,0xe8));const a919_0x2592=function(_0x3d5d19,_0x5edbbc){_0x3d5d19=_0x3d5d19-0xf8;let _0x416c8b=a919_0x416c[_0x3d5d19];return _0x416c8b;};const a919_0x328dbb=a919_0x2592;'use strict';const _=require(a919_0x328dbb(0xfd)),qs=require(a919_0x328dbb(0x120)),logger=require('../../config/logger')(a919_0x328dbb(0x122)),{db}=require(a919_0x328dbb(0x127)),{Op}=require(a919_0x328dbb(0x108));function respondWithResult(_0x2d7a8c,_0x32eb7e){return _0x32eb7e=_0x32eb7e||0xc8,function(_0x68858a){const _0x35e7db=a919_0x2592;if(_0x68858a)return _0x2d7a8c['status'](_0x32eb7e)[_0x35e7db(0x105)](_0x68858a);};}function respondWithFilteredResult(_0x175de5,_0x3fce9c){return function(_0x1ed1d0){const _0x2018ba=a919_0x2592;if(_0x1ed1d0){const _0x17a9a8=_0x1ed1d0[_0x2018ba(0x119)],_0x115e5f=_0x3fce9c[_0x2018ba(0xfa)];let _0x537dbd=_0x3fce9c[_0x2018ba(0xfa)]+_0x3fce9c[_0x2018ba(0x11f)],_0x5bf5e5;return _0x537dbd>=_0x17a9a8?(_0x537dbd=_0x17a9a8,_0x5bf5e5=0xc8):_0x5bf5e5=0xce,_0x175de5[_0x2018ba(0x12c)](_0x5bf5e5),_0x175de5[_0x2018ba(0x100)](_0x2018ba(0x121),_0x115e5f+'-'+_0x537dbd+'/'+_0x17a9a8)[_0x2018ba(0x105)](_0x1ed1d0);}return null;};}function saveUpdates(_0x1fe5fb){return function(_0x5376f3){const _0x24b357=a919_0x2592;if(_0x5376f3)return _0x5376f3[_0x24b357(0x116)](_0x1fe5fb)[_0x24b357(0x125)](function(_0x2b0a88){return _0x2b0a88;});return null;};}function removeEntity(_0x5a1137){return function(_0x34dfd2){const _0x290904=a919_0x2592;if(_0x34dfd2)return _0x34dfd2[_0x290904(0x124)]()[_0x290904(0x125)](function(){const _0x560455=_0x290904;_0x5a1137[_0x560455(0x12c)](0xcc)[_0x560455(0x10d)]();});};}function handleEntityNotFound(_0xd36979){return function(_0x3743d6){const _0x39b2d9=a919_0x2592;return!_0x3743d6&&_0xd36979[_0x39b2d9(0x11c)](0x194),_0x3743d6;};}function handleError(_0x293359,_0x454027){return _0x454027=_0x454027||0x1f4,function(_0x371825){const _0x1295f1=a919_0x2592;logger[_0x1295f1(0x10a)](_0x371825[_0x1295f1(0x114)]),_0x371825['name']&&delete _0x371825[_0x1295f1(0x113)],_0x293359[_0x1295f1(0x12c)](_0x454027)[_0x1295f1(0x101)](_0x371825);};}exports[a919_0x328dbb(0x129)]=function(_0x152483,_0x3c39e0){const _0x4b36a0=a919_0x328dbb;let _0x5da49a={};const _0x53a956={},_0x5cbbf7={'count':0x0,'rows':[]},_0x1b5911=_[_0x4b36a0(0x106)](db[_0x4b36a0(0x104)][_0x4b36a0(0xfb)],function(_0x47b25d){const _0x4ff4b1=_0x4b36a0;return{'name':_0x47b25d[_0x4ff4b1(0x107)],'type':_0x47b25d['type'][_0x4ff4b1(0x12b)]};});_0x53a956[_0x4b36a0(0x10f)]=_[_0x4b36a0(0x106)](_0x1b5911,_0x4b36a0(0x113)),_0x53a956[_0x4b36a0(0x102)]=_[_0x4b36a0(0x118)](_0x152483[_0x4b36a0(0x102)]),_0x53a956[_0x4b36a0(0x11b)]=_[_0x4b36a0(0x10c)](_0x53a956['model'],_0x53a956['query']),_0x5da49a[_0x4b36a0(0xf9)]=_['intersection'](_0x53a956[_0x4b36a0(0x10f)],qs[_0x4b36a0(0x112)](_0x152483[_0x4b36a0(0x102)][_0x4b36a0(0x112)])),_0x5da49a[_0x4b36a0(0xf9)]=_0x5da49a['attributes'][_0x4b36a0(0x11d)]?_0x5da49a['attributes']:_0x53a956[_0x4b36a0(0x10f)];typeof _0x152483['query'][_0x4b36a0(0x109)]===_0x4b36a0(0x126)&&(_0x5da49a['limit']=qs[_0x4b36a0(0x11f)](_0x152483['query'][_0x4b36a0(0x11f)]),_0x5da49a[_0x4b36a0(0xfa)]=qs[_0x4b36a0(0xfa)](_0x152483[_0x4b36a0(0x102)][_0x4b36a0(0xfa)]));_0x5da49a['order']=qs['sort'](_0x152483['query'][_0x4b36a0(0x11a)]),_0x5da49a[_0x4b36a0(0x115)]=qs['filters'](_[_0x4b36a0(0xfe)](_0x152483['query'],_0x53a956['filters']),_0x1b5911);_0x152483[_0x4b36a0(0x102)]['filter']&&(_0x5da49a[_0x4b36a0(0x115)]=_[_0x4b36a0(0x11e)](_0x5da49a['where'],{[Op['or']]:_[_0x4b36a0(0x106)](_0x1b5911,function(_0x3fae1e){const _0x50f4c8=_0x4b36a0;if(_0x3fae1e[_0x50f4c8(0x12a)]!==_0x50f4c8(0x10e)){const _0x81b8ba={};return _0x81b8ba[_0x3fae1e[_0x50f4c8(0x113)]]={[Op['like']]:'%'+_0x152483['query']['filter']+'%'},_0x81b8ba;}})}));_0x5da49a=_[_0x4b36a0(0x11e)]({},_0x5da49a,_0x152483[_0x4b36a0(0xff)]);const _0x1eac1e={'where':_0x5da49a['where']};return db[_0x4b36a0(0x104)][_0x4b36a0(0x119)](_0x1eac1e)[_0x4b36a0(0x125)](function(_0x307333){const _0x4e567e=_0x4b36a0;return _0x5cbbf7[_0x4e567e(0x119)]=_0x307333,_0x152483[_0x4e567e(0x102)]['includeAll']&&(_0x5da49a[_0x4e567e(0x10b)]=[{'all':!![]}]),db[_0x4e567e(0x104)]['findAll'](_0x5da49a);})[_0x4b36a0(0x125)](function(_0x4ee6f8){const _0x2fbf0e=_0x4b36a0;return _0x5cbbf7[_0x2fbf0e(0x128)]=_0x4ee6f8,_0x5cbbf7;})['then'](respondWithFilteredResult(_0x3c39e0,_0x5da49a))[_0x4b36a0(0xfc)](handleError(_0x3c39e0,null));},exports[a919_0x328dbb(0x103)]=function(_0x1aa6f2,_0xbf3cfc){const _0x41f0c8=a919_0x328dbb;let _0x2f97aa={'raw':!![],'where':{'id':_0x1aa6f2[_0x41f0c8(0x123)]['id']}};const _0x4bf64={};return _0x4bf64[_0x41f0c8(0x10f)]=_['keys'](db['VoiceQueuesLog'][_0x41f0c8(0xfb)]),_0x4bf64['query']=_[_0x41f0c8(0x118)](_0x1aa6f2['query']),_0x4bf64[_0x41f0c8(0x11b)]=_[_0x41f0c8(0x10c)](_0x4bf64[_0x41f0c8(0x10f)],_0x4bf64[_0x41f0c8(0x102)]),_0x2f97aa[_0x41f0c8(0xf9)]=_['intersection'](_0x4bf64['model'],qs['fields'](_0x1aa6f2['query']['fields'])),_0x2f97aa['attributes']=_0x2f97aa[_0x41f0c8(0xf9)]['length']?_0x2f97aa[_0x41f0c8(0xf9)]:_0x4bf64['model'],_0x1aa6f2[_0x41f0c8(0x102)][_0x41f0c8(0x117)]&&(_0x2f97aa['include']=[{'all':!![]}]),_0x2f97aa=_[_0x41f0c8(0x11e)]({},_0x2f97aa,_0x1aa6f2[_0x41f0c8(0xff)]),db[_0x41f0c8(0x104)][_0x41f0c8(0x111)](_0x2f97aa)[_0x41f0c8(0x125)](handleEntityNotFound(_0xbf3cfc,null))[_0x41f0c8(0x125)](respondWithResult(_0xbf3cfc,null))[_0x41f0c8(0xfc)](handleError(_0xbf3cfc,null));},exports[a919_0x328dbb(0x110)]=function(_0x77a5c8,_0x822d19){const _0x10a5c9=a919_0x328dbb;return db[_0x10a5c9(0x104)]['create'](_0x77a5c8['body'],{})[_0x10a5c9(0x125)](respondWithResult(_0x822d19,0xc9))['catch'](handleError(_0x822d19,null));},exports['update']=function(_0x14a00c,_0x346d96){const _0x37d5f4=a919_0x328dbb;return _0x14a00c[_0x37d5f4(0xf8)]['id']&&delete _0x14a00c[_0x37d5f4(0xf8)]['id'],db['VoiceQueuesLog']['findOne']({'where':{'id':_0x14a00c[_0x37d5f4(0x123)]['id']}})[_0x37d5f4(0x125)](handleEntityNotFound(_0x346d96,null))[_0x37d5f4(0x125)](saveUpdates(_0x14a00c[_0x37d5f4(0xf8)],null))[_0x37d5f4(0x125)](respondWithResult(_0x346d96,null))[_0x37d5f4(0xfc)](handleError(_0x346d96,null));},exports['destroy']=function(_0x54167c,_0x3918d0){const _0x16128e=a919_0x328dbb;return db['VoiceQueuesLog'][_0x16128e(0x111)]({'where':{'id':_0x54167c[_0x16128e(0x123)]['id']}})[_0x16128e(0x125)](handleEntityNotFound(_0x3918d0,null))[_0x16128e(0x125)](removeEntity(_0x3918d0,null))[_0x16128e(0xfc)](handleError(_0x3918d0,null));}; \ No newline at end of file diff --git a/server/api/voiceQueuesLog/voiceQueuesLog.model.js b/server/api/voiceQueuesLog/voiceQueuesLog.model.js index 2b4985f..7f76b60 100644 --- a/server/api/voiceQueuesLog/voiceQueuesLog.model.js +++ b/server/api/voiceQueuesLog/voiceQueuesLog.model.js @@ -1 +1 @@ -const a768_0x7106=['voice_queues_log','./voiceQueuesLog.attributes','exports','event','VoiceQueuesLog','event_dtm','dtm'];(function(_0x13c7cb,_0x710632){const _0x418af7=function(_0x8abae2){while(--_0x8abae2){_0x13c7cb['push'](_0x13c7cb['shift']());}};_0x418af7(++_0x710632);}(a768_0x7106,0x144));const a768_0x418a=function(_0x13c7cb,_0x710632){_0x13c7cb=_0x13c7cb-0x0;let _0x418af7=a768_0x7106[_0x13c7cb];return _0x418af7;};const _0x281526=a768_0x418a;'use strict';const attributes=require(_0x281526('0x6'));module[_0x281526('0x0')]=function(_0x8abae2){const _0x179093=_0x281526,_0x2a91cc=_0x8abae2['define'](_0x179093('0x2'),attributes,{'tableName':_0x179093('0x5'),'paranoid':![],'indexes':[{'name':_0x179093('0x3'),'fields':[_0x179093('0x1'),_0x179093('0x4')]}],'timestamps':![]});return _0x2a91cc;}; \ No newline at end of file +const a920_0x4a92=['function','init','exports','./voiceQueuesLog.attributes','./voiceQueuesLog.options','VoiceQueuesLog'];(function(_0xc9ecc,_0x5807eb){const _0x4a921b=function(_0x1df32f){while(--_0x1df32f){_0xc9ecc['push'](_0xc9ecc['shift']());}};_0x4a921b(++_0x5807eb);}(a920_0x4a92,0xa4));const a920_0x1df3=function(_0xc9ecc,_0x5807eb){_0xc9ecc=_0xc9ecc-0x1ab;let _0x4a921b=a920_0x4a92[_0xc9ecc];return _0x4a921b;};const a920_0xce3b5=a920_0x1df3;'use strict';const {Model}=require('sequelize'),{attributes}=require(a920_0xce3b5(0x1ac)),{options}=require(a920_0xce3b5(0x1ad));class VoiceQueuesLog extends Model{}function init(_0x1197cc,_0x5e7100){const _0x52c24c=a920_0xce3b5,_0x1e52b4=options(_0x1197cc),_0x56a7e7=typeof _0x5e7100===_0x52c24c(0x1af)?_0x5e7100(_0x1e52b4):_0x1e52b4;return VoiceQueuesLog[_0x52c24c(0x1b0)](attributes,_0x56a7e7),VoiceQueuesLog;}module[a920_0xce3b5(0x1ab)][a920_0xce3b5(0x1ae)]=VoiceQueuesLog,module['exports'][a920_0xce3b5(0x1b0)]=init; \ No newline at end of file diff --git a/server/api/voiceQueuesLog/voiceQueuesLog.options.js b/server/api/voiceQueuesLog/voiceQueuesLog.options.js new file mode 100644 index 0000000..0e3560d --- /dev/null +++ b/server/api/voiceQueuesLog/voiceQueuesLog.options.js @@ -0,0 +1 @@ +var a921_0x246a=['options','voice_queues_log','dtm','event','exports'];(function(_0x34b086,_0x47332a){var _0x246ad4=function(_0x59af17){while(--_0x59af17){_0x34b086['push'](_0x34b086['shift']());}};_0x246ad4(++_0x47332a);}(a921_0x246a,0x170));var a921_0x59af=function(_0x34b086,_0x47332a){_0x34b086=_0x34b086-0x118;var _0x246ad4=a921_0x246a[_0x34b086];return _0x246ad4;};var a921_0x3e8ee4=a921_0x59af;function options(_0x523a3e){var _0x1f9d08=a921_0x59af;return{'sequelize':_0x523a3e,'tableName':_0x1f9d08(0x11b),'paranoid':![],'indexes':[{'name':'event_dtm','fields':[_0x1f9d08(0x118),_0x1f9d08(0x11c)]}],'timestamps':![]};}module[a921_0x3e8ee4(0x119)][a921_0x3e8ee4(0x11a)]=options; \ No newline at end of file diff --git a/server/api/voiceRecording/index.js b/server/api/voiceRecording/index.js index 8fd090d..9a96084 100644 --- a/server/api/voiceRecording/index.js +++ b/server/api/voiceRecording/index.js @@ -1 +1 @@ -const a769_0x6d3a=['destroy','exports','put','/:id/transcribe','./voiceRecording.controller','downloads','/describe','update','express','get','delete','/:id/downloads','runTranscribe','Router','show','/:id','index','post','../../components/auth/service','isAuthenticated'];(function(_0x672616,_0x6d3aaa){const _0x21d46e=function(_0x3939f9){while(--_0x3939f9){_0x672616['push'](_0x672616['shift']());}};_0x21d46e(++_0x6d3aaa);}(a769_0x6d3a,0x1ae));const a769_0x21d4=function(_0x672616,_0x6d3aaa){_0x672616=_0x672616-0x0;let _0x21d46e=a769_0x6d3a[_0x672616];return _0x21d46e;};const _0x306926=a769_0x21d4;'use strict';const express=require(_0x306926('0x12')),router=express[_0x306926('0x3')](),auth=require(_0x306926('0x8')),controller=require(_0x306926('0xe'));router[_0x306926('0x13')]('/',auth[_0x306926('0x9')](),controller[_0x306926('0x6')]),router['get'](_0x306926('0x10'),auth[_0x306926('0x9')](),controller['describe']),router[_0x306926('0x13')](_0x306926('0x5'),auth[_0x306926('0x9')](),controller[_0x306926('0x4')]),router['get']('/:id/download',auth[_0x306926('0x9')](),controller['download']),router['get'](_0x306926('0x1'),controller[_0x306926('0xf')]),router[_0x306926('0x13')](_0x306926('0xd'),auth[_0x306926('0x9')](),controller['downloadTranscribe']),router[_0x306926('0x7')]('/',auth[_0x306926('0x9')](),controller['create']),router['post'](_0x306926('0xd'),auth[_0x306926('0x9')](),controller[_0x306926('0x2')]),router[_0x306926('0xc')](_0x306926('0x5'),auth[_0x306926('0x9')](),controller[_0x306926('0x11')]),router[_0x306926('0x0')](_0x306926('0x5'),auth[_0x306926('0x9')](),controller[_0x306926('0xa')]),module[_0x306926('0xb')]=router; \ No newline at end of file +const a922_0x5182=['post','downloads','exports','/:id/downloads','/:id/transcribe','update','create','get','put','delete','express','describe','Router','/describe','index','/:id/download','/:id','downloadTranscribe','destroy','show','isAuthenticated'];(function(_0x31e0c9,_0x6615e2){const _0x5182b0=function(_0xb47b23){while(--_0xb47b23){_0x31e0c9['push'](_0x31e0c9['shift']());}};_0x5182b0(++_0x6615e2);}(a922_0x5182,0x7e));const a922_0xb47b=function(_0x31e0c9,_0x6615e2){_0x31e0c9=_0x31e0c9-0x1d4;let _0x5182b0=a922_0x5182[_0x31e0c9];return _0x5182b0;};const a922_0x147d10=a922_0xb47b;'use strict';const express=require(a922_0x147d10(0x1de)),router=express[a922_0x147d10(0x1e0)](),auth=require('../../components/auth/service'),controller=require('./voiceRecording.controller');router[a922_0x147d10(0x1db)]('/',auth[a922_0x147d10(0x1e8)](),controller[a922_0x147d10(0x1e2)]),router['get'](a922_0x147d10(0x1e1),auth[a922_0x147d10(0x1e8)](),controller[a922_0x147d10(0x1df)]),router[a922_0x147d10(0x1db)](a922_0x147d10(0x1e4),auth['isAuthenticated'](),controller[a922_0x147d10(0x1e7)]),router[a922_0x147d10(0x1db)](a922_0x147d10(0x1e3),auth[a922_0x147d10(0x1e8)](),controller['download']),router[a922_0x147d10(0x1db)](a922_0x147d10(0x1d7),controller[a922_0x147d10(0x1d5)]),router[a922_0x147d10(0x1db)](a922_0x147d10(0x1d8),auth[a922_0x147d10(0x1e8)](),controller[a922_0x147d10(0x1e5)]),router[a922_0x147d10(0x1d4)]('/',auth['isAuthenticated'](),controller[a922_0x147d10(0x1da)]),router['post'](a922_0x147d10(0x1d8),auth['isAuthenticated'](),controller['runTranscribe']),router[a922_0x147d10(0x1dc)](a922_0x147d10(0x1e4),auth[a922_0x147d10(0x1e8)](),controller[a922_0x147d10(0x1d9)]),router[a922_0x147d10(0x1dd)]('/:id',auth[a922_0x147d10(0x1e8)](),controller[a922_0x147d10(0x1e6)]),module[a922_0x147d10(0x1d6)]=router; \ No newline at end of file diff --git a/server/api/voiceRecording/voiceRecording.attributes.js b/server/api/voiceRecording/voiceRecording.attributes.js index b455d7d..2f388e9 100644 --- a/server/api/voiceRecording/voiceRecording.attributes.js +++ b/server/api/voiceRecording/voiceRecording.attributes.js @@ -1 +1 @@ -const a770_0x227f=['toString','value','VIRTUAL','INTEGER','updatedAt','NEW','format','BOOLEAN','setDataValue','sequelize','createdAt','TEXT','getDataValue','STRING','MM-DD-YYYY\x20HH:mm','extname','FLOAT','membername','DATE','split'];(function(_0x3e3b4d,_0x227f7c){const _0x288821=function(_0x53e817){while(--_0x53e817){_0x3e3b4d['push'](_0x3e3b4d['shift']());}};_0x288821(++_0x227f7c);}(a770_0x227f,0x1bd));const a770_0x2888=function(_0x3e3b4d,_0x227f7c){_0x3e3b4d=_0x3e3b4d-0x0;let _0x288821=a770_0x227f[_0x3e3b4d];return _0x288821;};const _0x573f6b=a770_0x2888;'use strict';const Sequelize=require(_0x573f6b('0x4')),moment=require('moment'),path=require('path');module['exports']={'format':{'type':Sequelize[_0x573f6b('0x11')],'get':function(){const _0x802e5c=_0x573f6b;return this[_0x802e5c('0x7')](_0x802e5c('0x10'))?path[_0x802e5c('0xa')](this['getDataValue']('value')):undefined;}},'uniqueid':{'type':Sequelize[_0x573f6b('0x8')]},'channel':{'type':Sequelize[_0x573f6b('0x8')],'set':function(_0x53e817){const _0x4d5662=_0x573f6b;_0x53e817&&(this[_0x4d5662('0x3')]('channel',_0x53e817),this[_0x4d5662('0x3')](_0x4d5662('0xc'),_0x53e817[_0x4d5662('0xe')](/\/|-/)[0x1]));}},'membername':{'type':Sequelize[_0x573f6b('0x8')]},'calleridnum':{'type':Sequelize[_0x573f6b('0x8')]},'calleridname':{'type':Sequelize[_0x573f6b('0x8')]},'connectedlinenum':{'type':Sequelize[_0x573f6b('0x8')]},'connectedlinename':{'type':Sequelize[_0x573f6b('0x8')]},'accountcode':{'type':Sequelize['STRING']},'context':{'type':Sequelize[_0x573f6b('0x8')]},'exten':{'type':Sequelize[_0x573f6b('0x8')]},'value':{'type':Sequelize[_0x573f6b('0x8')]},'type':{'type':Sequelize[_0x573f6b('0x8')]},'rating':{'type':Sequelize[_0x573f6b('0x12')],'validate':{'max':0x5,'min':0x0}},'queue':{'type':Sequelize[_0x573f6b('0x8')]},'userDisposition':{'type':Sequelize[_0x573f6b('0x8')]},'userSecondDisposition':{'type':Sequelize[_0x573f6b('0x8')]},'userThirdDisposition':{'type':Sequelize[_0x573f6b('0x8')]},'location':{'type':Sequelize['TEXT']},'transcribeName':{'type':Sequelize[_0x573f6b('0x8')]},'transcribeStatus':{'type':Sequelize[_0x573f6b('0x8')],'defaultValue':_0x573f6b('0x0')},'fileUri':{'type':Sequelize[_0x573f6b('0x6')]},'fileText':{'type':Sequelize['TEXT']},'failureReason':{'type':Sequelize[_0x573f6b('0x6')]},'sentiment':{'type':Sequelize[_0x573f6b('0x8')]},'sPositive':{'type':Sequelize['FLOAT']},'sNegative':{'type':Sequelize['FLOAT']},'sNeutral':{'type':Sequelize[_0x573f6b('0xb')]},'sMixed':{'type':Sequelize[_0x573f6b('0xb')]},'tempSentiment':{'type':Sequelize[_0x573f6b('0x2')],'defaultValue':![]},'createdAt':{'type':Sequelize[_0x573f6b('0xd')],'get':function(){const _0x2c83de=_0x573f6b;return moment(this[_0x2c83de('0x7')](_0x2c83de('0x5')))[_0x2c83de('0x1')](_0x2c83de('0x9'))[_0x2c83de('0xf')]();}},'updatedAt':{'type':Sequelize[_0x573f6b('0xd')],'get':function(){const _0x384078=_0x573f6b;return moment(this['getDataValue'](_0x384078('0x13')))[_0x384078('0x1')]('MM-DD-YYYY\x20HH:mm')[_0x384078('0xf')]();}}}; \ No newline at end of file +const a923_0x2021=['INTEGER','format','BOOLEAN','attributes','split','toString','path','getDataValue','exports','setDataValue','TEXT','channel','createdAt','DATE','extname','VIRTUAL','moment','FLOAT','sequelize','STRING','NEW','MM-DD-YYYY\x20HH:mm'];(function(_0x3fd393,_0x54f021){const _0x202113=function(_0x3ac816){while(--_0x3ac816){_0x3fd393['push'](_0x3fd393['shift']());}};_0x202113(++_0x54f021);}(a923_0x2021,0xc5));const a923_0x3ac8=function(_0x3fd393,_0x54f021){_0x3fd393=_0x3fd393-0x18b;let _0x202113=a923_0x2021[_0x3fd393];return _0x202113;};const a923_0x25bf11=a923_0x3ac8;'use strict';const {DataTypes}=require(a923_0x25bf11(0x19e)),moment=require(a923_0x25bf11(0x19c)),path=require(a923_0x25bf11(0x192)),attributes={'format':{'type':DataTypes[a923_0x25bf11(0x19b)],'get':function(){const _0x5d8edf=a923_0x25bf11;return this['getDataValue']('value')?path[_0x5d8edf(0x19a)](this['getDataValue']('value')):undefined;}},'uniqueid':{'type':DataTypes[a923_0x25bf11(0x19f)]},'channel':{'type':DataTypes[a923_0x25bf11(0x19f)],'set':function(_0x5ee3e1){const _0x21a030=a923_0x25bf11;_0x5ee3e1&&(this[_0x21a030(0x195)](_0x21a030(0x197),_0x5ee3e1),this[_0x21a030(0x195)]('membername',_0x5ee3e1[_0x21a030(0x190)](/\/|-/)[0x1]));}},'membername':{'type':DataTypes[a923_0x25bf11(0x19f)]},'calleridnum':{'type':DataTypes[a923_0x25bf11(0x19f)]},'calleridname':{'type':DataTypes['STRING']},'connectedlinenum':{'type':DataTypes[a923_0x25bf11(0x19f)]},'connectedlinename':{'type':DataTypes[a923_0x25bf11(0x19f)]},'accountcode':{'type':DataTypes[a923_0x25bf11(0x19f)]},'context':{'type':DataTypes[a923_0x25bf11(0x19f)]},'exten':{'type':DataTypes['STRING']},'value':{'type':DataTypes[a923_0x25bf11(0x19f)]},'type':{'type':DataTypes[a923_0x25bf11(0x19f)]},'rating':{'type':DataTypes[a923_0x25bf11(0x18c)],'validate':{'max':0x5,'min':0x0}},'queue':{'type':DataTypes[a923_0x25bf11(0x19f)]},'userDisposition':{'type':DataTypes[a923_0x25bf11(0x19f)]},'userSecondDisposition':{'type':DataTypes['STRING']},'userThirdDisposition':{'type':DataTypes['STRING']},'location':{'type':DataTypes[a923_0x25bf11(0x196)]},'transcribeName':{'type':DataTypes[a923_0x25bf11(0x19f)]},'transcribeStatus':{'type':DataTypes['STRING'],'defaultValue':a923_0x25bf11(0x1a0)},'fileUri':{'type':DataTypes['TEXT']},'fileText':{'type':DataTypes[a923_0x25bf11(0x196)]},'failureReason':{'type':DataTypes[a923_0x25bf11(0x196)]},'sentiment':{'type':DataTypes[a923_0x25bf11(0x19f)]},'sPositive':{'type':DataTypes[a923_0x25bf11(0x19d)]},'sNegative':{'type':DataTypes[a923_0x25bf11(0x19d)]},'sNeutral':{'type':DataTypes['FLOAT']},'sMixed':{'type':DataTypes[a923_0x25bf11(0x19d)]},'tempSentiment':{'type':DataTypes[a923_0x25bf11(0x18e)],'defaultValue':![]},'createdAt':{'type':DataTypes['DATE'],'get':function(){const _0x323a97=a923_0x25bf11;return moment(this[_0x323a97(0x193)](_0x323a97(0x198)))[_0x323a97(0x18d)](_0x323a97(0x18b))[_0x323a97(0x191)]();}},'updatedAt':{'type':DataTypes[a923_0x25bf11(0x199)],'get':function(){const _0x590c76=a923_0x25bf11;return moment(this[_0x590c76(0x193)]('updatedAt'))[_0x590c76(0x18d)](_0x590c76(0x18b))['toString']();}}};module[a923_0x25bf11(0x194)][a923_0x25bf11(0x18f)]=attributes; \ No newline at end of file diff --git a/server/api/voiceRecording/voiceRecording.controller.js b/server/api/voiceRecording/voiceRecording.controller.js index 6ee7d0c..e48b8f5 100644 --- a/server/api/voiceRecording/voiceRecording.controller.js +++ b/server/api/voiceRecording/voiceRecording.controller.js @@ -1 +1 @@ -const a771_0x14ca=['Transcript\x20not\x20available','data2','basename','limit','download','index','[RUNTRANSCRIPT][%d]\x20Transcript\x20action\x20already\x20requested','extname','root','isNil','Bucket','\x22\x20trovato\x20eseguo\x20la\x20cancellazione','sort','[RUNTRANSCRIPT][%d]\x20Bucket\x20%s\x20not\x20available','TranscriptionJob','Entity\x20not\x20found','update','format','attributes','Cloud\x20Provider\x20not\x20available','aws-sdk','fileText','destroy','path','merge','sendStatus','key','find','undefined','cancellazione\x20fisica\x20documento\x20%s','data1','[RUNTRANSCRIPT][%d]\x20Sending\x20transcribe\x20request','create','count','TranscriptionJobStatus','params','nolimit','../../mysqldb','name','filters','order','pick','Voice\x20Recording\x20not\x20found','Not\x20found','Location','transcribeAccountId','fieldName','sentimentAccountId','transcribeName','transcribeStatus','VIRTUAL','fields','location','Name','Sentiment\x20Analysis\x20not\x20configured','map','createBucket','length','File:\x20\x22','then','token','readFileSync','show','offset','Buckets','VoiceRecording','keys','../../components/encryptor','uniqueid','unlink','Setting','findOne','../../components/parsers/qs','VoiceRecording\x20not\x20found','status','MD5','secrets','where','runSentiment','catch','TranscribeService','rows','recording','Transcribe\x20not\x20configured','decryptFile','set','util','rawAttributes','IN_PROGRESS','type','.cypher','downloadTranscribe','send','stack','end','push','value','intersection','NEW','describe','sentimentRegion','includeAll','downloads','upload','options','transcribeRegion','writeFile','sequelize','differenceBy','startTranscriptionJob','error','unlinkSync','model','query','tempSentiment','/server/files/transcribes/transcribe_','TranscriptionJobName','body','bucket','info','$and','filename','%s.cypher','transcribe','message','[RUNTRANSCRIPT][%d]\x20Bucket\x20%s\x20available','lodash','existsSync','../../config/logger','uuid','../../config/environment'];(function(_0x45d8a0,_0x14ca65){const _0x108391=function(_0x2603e){while(--_0x2603e){_0x45d8a0['push'](_0x45d8a0['shift']());}};_0x108391(++_0x14ca65);}(a771_0x14ca,0x18a));const a771_0x1083=function(_0x45d8a0,_0x14ca65){_0x45d8a0=_0x45d8a0-0x0;let _0x108391=a771_0x14ca[_0x45d8a0];return _0x108391;};const _0x2253d3=a771_0x1083;'use strict';const util=require(_0x2253d3('0x55')),path=require(_0x2253d3('0x16')),fs=require('fs'),_=require(_0x2253d3('0x7d')),AWS=require(_0x2253d3('0x13')),{v4:uuidv4}=require(_0x2253d3('0x80')),qs=require(_0x2253d3('0x47')),logger=require(_0x2253d3('0x7f'))('api'),config=require(_0x2253d3('0x81')),db=require(_0x2253d3('0x24'))['db'],{Op,fn,col,ValidationError}=require(_0x2253d3('0x6a')),{InternalError}=require('error-middleware/errors');function respondWithResult(_0x2603e,_0x5b64c3){return _0x5b64c3=_0x5b64c3||0xc8,function(_0x4f6321){if(_0x4f6321)return _0x2603e['status'](_0x5b64c3)['json'](_0x4f6321);};}function respondWithFilteredResult(_0x2abfe4,_0x49f4bd){return function(_0x1898cb){const _0x2c4370=a771_0x1083;if(_0x1898cb){const _0x4ebb7f=_0x1898cb[_0x2c4370('0x20')],_0x41b69f=_0x49f4bd[_0x2c4370('0x3e')];let _0x2c411b=_0x49f4bd[_0x2c4370('0x3e')]+_0x49f4bd[_0x2c4370('0x2')],_0x5bf669;return _0x2c411b>=_0x4ebb7f?(_0x2c411b=_0x4ebb7f,_0x5bf669=0xc8):_0x5bf669=0xce,_0x2abfe4[_0x2c4370('0x49')](_0x5bf669),_0x2abfe4[_0x2c4370('0x54')]('Content-Range',_0x41b69f+'-'+_0x2c411b+'/'+_0x4ebb7f)['json'](_0x1898cb);}return null;};}function saveUpdates(_0x954006){return function(_0xa04101){const _0x4a295c=a771_0x1083;if(_0xa04101)return _0xa04101[_0x4a295c('0xf')](_0x954006)[_0x4a295c('0x3a')](function(_0x152820){return _0x152820;});return null;};}function handleEntityNotFound(_0x472e39){return function(_0x50c523){const _0x5879fa=a771_0x1083;return!_0x50c523&&_0x472e39[_0x5879fa('0x18')](0x194),_0x50c523;};}function handleError(_0x18bccc,_0x4d7d99){return _0x4d7d99=_0x4d7d99||0x1f4,function(_0x553d21){const _0x3771bc=a771_0x1083;logger[_0x3771bc('0x6d')](_0x553d21[_0x3771bc('0x5c')]),_0x553d21[_0x3771bc('0x25')]&&delete _0x553d21[_0x3771bc('0x25')],_0x18bccc[_0x3771bc('0x49')](_0x4d7d99)[_0x3771bc('0x5b')](_0x553d21);};}exports[_0x2253d3('0x4')]=function(_0x17195c,_0x417a33){const _0x4d3ae6=_0x2253d3;let _0x1a13e2={};const _0x4c38b1={},_0x567f62={'count':0x0,'rows':[]},_0x294cdb=_[_0x4d3ae6('0x36')](db[_0x4d3ae6('0x40')][_0x4d3ae6('0x56')],function(_0x523322){const _0x4754e8=_0x4d3ae6;return{'name':_0x523322[_0x4754e8('0x2d')],'type':_0x523322[_0x4754e8('0x58')][_0x4754e8('0x19')]};});_0x4c38b1[_0x4d3ae6('0x6f')]=_[_0x4d3ae6('0x6b')](_['map'](_0x294cdb,_0x4d3ae6('0x25')),[_0x4d3ae6('0x10')]),_0x4c38b1[_0x4d3ae6('0x70')]=_['keys'](_0x17195c[_0x4d3ae6('0x70')]),_0x4c38b1[_0x4d3ae6('0x26')]=_[_0x4d3ae6('0x60')](_0x4c38b1[_0x4d3ae6('0x6f')],_0x4c38b1[_0x4d3ae6('0x70')]),_0x1a13e2[_0x4d3ae6('0x11')]=_[_0x4d3ae6('0x60')](_0x4c38b1[_0x4d3ae6('0x6f')],qs['fields'](_0x17195c[_0x4d3ae6('0x70')]['fields'])),_0x1a13e2[_0x4d3ae6('0x11')]=_0x1a13e2[_0x4d3ae6('0x11')][_0x4d3ae6('0x38')]?_0x1a13e2[_0x4d3ae6('0x11')]:_0x4c38b1['model'];typeof _0x17195c[_0x4d3ae6('0x70')][_0x4d3ae6('0x23')]===_0x4d3ae6('0x1b')&&(_0x1a13e2[_0x4d3ae6('0x2')]=qs[_0x4d3ae6('0x2')](_0x17195c[_0x4d3ae6('0x70')][_0x4d3ae6('0x2')]),_0x1a13e2[_0x4d3ae6('0x3e')]=qs[_0x4d3ae6('0x3e')](_0x17195c[_0x4d3ae6('0x70')][_0x4d3ae6('0x3e')]));_0x1a13e2[_0x4d3ae6('0x27')]=qs[_0x4d3ae6('0xb')](_0x17195c[_0x4d3ae6('0x70')][_0x4d3ae6('0xb')]),_0x1a13e2['where']=qs['filters'](_[_0x4d3ae6('0x28')](_0x17195c[_0x4d3ae6('0x70')],_0x4c38b1[_0x4d3ae6('0x26')]),_0x294cdb);_0x17195c[_0x4d3ae6('0x70')]['filter']&&(_0x1a13e2['where']=_['merge'](_0x1a13e2[_0x4d3ae6('0x4c')],{[Op['or']]:_[_0x4d3ae6('0x36')](_0x294cdb,function(_0x532a13){const _0xcc7484=_0x4d3ae6;if(_0x532a13[_0xcc7484('0x58')]!==_0xcc7484('0x31')){const _0x2d3bfe={};return _0x2d3bfe[_0x532a13[_0xcc7484('0x25')]]={[Op['like']]:'%'+_0x17195c['query']['filter']+'%'},_0x2d3bfe;}})}));_0x1a13e2=_[_0x4d3ae6('0x17')]({},_0x1a13e2,_0x17195c[_0x4d3ae6('0x67')]);const _0x4185ac={'where':_0x1a13e2[_0x4d3ae6('0x4c')]};return db[_0x4d3ae6('0x40')][_0x4d3ae6('0x20')](_0x4185ac)['then'](function(_0xccd898){const _0x5e529d=_0x4d3ae6;return _0x567f62[_0x5e529d('0x20')]=_0xccd898,_0x17195c[_0x5e529d('0x70')]['includeAll']&&(_0x1a13e2['include']=[{'all':!![]}]),db[_0x5e529d('0x40')]['findAll'](_0x1a13e2);})[_0x4d3ae6('0x3a')](function(_0x20bc4c){const _0x44958e=_0x4d3ae6;return _0x567f62[_0x44958e('0x50')]=_0x20bc4c,_0x567f62;})['then'](respondWithFilteredResult(_0x417a33,_0x1a13e2))[_0x4d3ae6('0x4e')](handleError(_0x417a33,null));},exports[_0x2253d3('0x3d')]=function(_0x4872ac,_0x22fa3f){const _0x11358d=_0x2253d3;let _0x105071={'raw':![],'where':{'id':_0x4872ac[_0x11358d('0x22')]['id']}};const _0x20bf9f={};return _0x20bf9f['model']=_[_0x11358d('0x41')](db[_0x11358d('0x40')][_0x11358d('0x56')]),_0x20bf9f['query']=_[_0x11358d('0x41')](_0x4872ac[_0x11358d('0x70')]),_0x20bf9f[_0x11358d('0x26')]=_[_0x11358d('0x60')](_0x20bf9f['model'],_0x20bf9f['query']),_0x105071['attributes']=_['intersection'](_0x20bf9f['model'],qs['fields'](_0x4872ac[_0x11358d('0x70')][_0x11358d('0x32')])),_0x105071[_0x11358d('0x11')]=_0x105071[_0x11358d('0x11')][_0x11358d('0x38')]?_0x105071[_0x11358d('0x11')]:_0x20bf9f[_0x11358d('0x6f')],_0x4872ac[_0x11358d('0x70')][_0x11358d('0x64')]&&(_0x105071['include']=[{'all':!![]}]),_0x105071=_[_0x11358d('0x17')]({},_0x105071,_0x4872ac[_0x11358d('0x67')]),db['VoiceRecording'][_0x11358d('0x46')](_0x105071)[_0x11358d('0x3a')](handleEntityNotFound(_0x22fa3f,null))[_0x11358d('0x3a')](respondWithResult(_0x22fa3f,null))['catch'](handleError(_0x22fa3f,null));},exports[_0x2253d3('0x1f')]=function(_0x15e59a,_0x4777ea){const _0x458384=_0x2253d3;return db['VoiceRecording'][_0x458384('0x1f')](_0x15e59a[_0x458384('0x74')],{})[_0x458384('0x3a')](respondWithResult(_0x4777ea,0xc9))[_0x458384('0x4e')](handleError(_0x4777ea,null));},exports['update']=function(_0x53ba09,_0x5f3bd5){const _0x1eaa9d=_0x2253d3;return _0x53ba09[_0x1eaa9d('0x74')]['id']&&delete _0x53ba09[_0x1eaa9d('0x74')]['id'],db[_0x1eaa9d('0x40')][_0x1eaa9d('0x46')]({'where':{'id':_0x53ba09[_0x1eaa9d('0x22')]['id']}})['then'](handleEntityNotFound(_0x5f3bd5,null))[_0x1eaa9d('0x3a')](saveUpdates(_0x53ba09[_0x1eaa9d('0x74')],null))[_0x1eaa9d('0x3a')](respondWithResult(_0x5f3bd5,null))[_0x1eaa9d('0x4e')](handleError(_0x5f3bd5,null));},exports[_0x2253d3('0x62')]=function(_0x58ba82,_0x99e3e6){const _0x195a50=_0x2253d3;return db[_0x195a50('0x40')]['describe']()[_0x195a50('0x3a')](respondWithResult(_0x99e3e6,null))[_0x195a50('0x4e')](handleError(_0x99e3e6,null));},exports[_0x2253d3('0x3')]=function(_0x4430bf,_0x228d65){const _0x30132d=_0x2253d3,_0x2cd8a1=require(_0x30132d('0x42'));let _0x4891ad=![];const _0x1b3cdf={};return _0x4430bf['query']['type']&&_0x4430bf['query']['type']==='uniqueid'?_0x1b3cdf[_0x30132d('0x43')]=_0x4430bf[_0x30132d('0x22')]['id']:_0x1b3cdf['id']=_0x4430bf['params']['id'],db[_0x30132d('0x40')][_0x30132d('0x46')]({'where':_0x1b3cdf,'attributes':['id',_0x30132d('0x5f')],'raw':!![]})['then'](handleEntityNotFound(_0x228d65,null))[_0x30132d('0x3a')](function(_0x2cafd6){const _0x41057f=_0x30132d;if(_0x2cafd6){const _0x3e2979=_0x2cafd6[_0x41057f('0x5f')],_0x535391=util[_0x41057f('0x10')]('%s.cypher',_0x3e2979);if(fs['existsSync'](_0x535391))return _0x4891ad=!![],_0x2cd8a1['decryptFile'](_0x535391,_0x3e2979,config[_0x41057f('0x4b')][_0x41057f('0x51')])[_0x41057f('0x3a')](function(){return _0x2cafd6;});return _0x2cafd6;}})[_0x30132d('0x3a')](function(_0x53968e){const _0x1d55d4=_0x30132d;if(_0x53968e){const _0x38d4e0=_0x53968e[_0x1d55d4('0x5f')];if(!fs['existsSync'](_0x38d4e0))throw new ValidationError(_0x1d55d4('0x48'));return _0x53968e[_0x1d55d4('0x78')]?_0x228d65[_0x1d55d4('0x3')](_0x38d4e0,_0x53968e['filename']+path[_0x1d55d4('0x6')](_0x38d4e0),function(){_0x4891ad&&fs['unlink'](_0x38d4e0);}):_0x228d65[_0x1d55d4('0x3')](_0x38d4e0,function(){const _0xa0221c=_0x1d55d4;_0x4891ad&&fs[_0xa0221c('0x44')](_0x38d4e0);});}})[_0x30132d('0x4e')](function(_0x39af76){const _0x5bfd4b=_0x30132d;if(_0x39af76[_0x5bfd4b('0x7b')]==='VoiceRecording\x20not\x20found')_0x228d65[_0x5bfd4b('0x49')](0x194)[_0x5bfd4b('0x5b')](_0x5bfd4b('0x2a'));else return handleError(_0x228d65,null);});},exports[_0x2253d3('0x65')]=function(_0x15df0d,_0x2c3d4d){const _0x402909=_0x2253d3,_0x1842cd=require(_0x402909('0x42'));let _0x5dc4cf=![];const _0x955a38={[Op['and']]:[_0x955a38(fn(_0x402909('0x4a'),col(_0x402909('0x43'))),_0x15df0d[_0x402909('0x70')][_0x402909('0x3b')])]};return _0x15df0d[_0x402909('0x70')][_0x402909('0x58')]&&_0x15df0d[_0x402909('0x70')][_0x402909('0x58')]===_0x402909('0x43')?_0x955a38[_0x402909('0x77')][_0x402909('0x5e')]({'uniqueid':_0x15df0d['params']['id']}):_0x955a38[_0x402909('0x77')]['push']({'id':_0x15df0d['params']['id']}),db[_0x402909('0x40')][_0x402909('0x46')]({'where':_0x955a38,'attributes':['id',_0x402909('0x5f')],'raw':!![]})[_0x402909('0x3a')](handleEntityNotFound(_0x2c3d4d,null))[_0x402909('0x3a')](function(_0xcf942b){const _0x2e0e2f=_0x402909;if(_0xcf942b){const _0x440e4b=util['format'](_0x2e0e2f('0x79'),_0xcf942b[_0x2e0e2f('0x5f')]);if(fs[_0x2e0e2f('0x7e')](_0x440e4b))return _0x5dc4cf=!![],_0x1842cd[_0x2e0e2f('0x53')](_0x440e4b,_0xcf942b[_0x2e0e2f('0x5f')],config[_0x2e0e2f('0x4b')]['recording'])[_0x2e0e2f('0x3a')](function(){return _0xcf942b;});return _0xcf942b;}})[_0x402909('0x3a')](function(_0x251d31){const _0x2b105f=_0x402909;if(_0x251d31){if(!fs[_0x2b105f('0x7e')](_0x251d31[_0x2b105f('0x5f')]))throw new ValidationError(_0x2b105f('0x48'));return _0x251d31[_0x2b105f('0x78')]?_0x2c3d4d[_0x2b105f('0x3')](_0x251d31[_0x2b105f('0x5f')],_0x251d31[_0x2b105f('0x78')]+path[_0x2b105f('0x6')](_0x251d31['value']),function(){const _0x3e93c9=_0x2b105f;_0x5dc4cf&&fs[_0x3e93c9('0x44')](_0x251d31[_0x3e93c9('0x5f')]);}):_0x2c3d4d[_0x2b105f('0x3')](_0x251d31[_0x2b105f('0x5f')],function(){_0x5dc4cf&&fs['unlink'](_0x251d31['value']);});}})[_0x402909('0x4e')](handleError(_0x2c3d4d,null));},exports[_0x2253d3('0x15')]=function(_0x5e16d7,_0x4ac6b8){const _0x5bf971=_0x2253d3;return db[_0x5bf971('0x40')][_0x5bf971('0x46')]({'where':{'id':_0x5e16d7[_0x5bf971('0x22')]['id']}})[_0x5bf971('0x3a')](function(_0x33708a){const _0x2f8989=_0x5bf971;if(!_0x33708a)throw new ReferenceError(_0x2f8989('0xe'));return _0x33708a;})[_0x5bf971('0x3a')](function(_0x596fe5){const _0x1ad117=_0x5bf971;let _0x3f3e48=_0x596fe5['value'];return logger['info'](_0x1ad117('0x1c'),_0x3f3e48),!_[_0x1ad117('0x8')](_0x596fe5[_0x1ad117('0x5f')])&&fs[_0x1ad117('0x7e')](_0x3f3e48)&&(logger['info']('File:\x20\x22'+_0x3f3e48+'\x22\x20trovato\x20eseguo\x20la\x20cancellazione'),fs['unlinkSync'](_0x3f3e48)),_0x3f3e48=_0x3f3e48+_0x1ad117('0x59'),!_['isNil'](_0x596fe5[_0x1ad117('0x5f')])&&fs['existsSync'](_0x3f3e48)&&(logger[_0x1ad117('0x76')](_0x1ad117('0x39')+_0x3f3e48+_0x1ad117('0xa')),fs[_0x1ad117('0x6e')](_0x3f3e48)),_0x596fe5;})[_0x5bf971('0x3a')](function(_0x5f58a4){const _0x5bce77=_0x5bf971;if(!_0x5f58a4)throw new InternalError();return _0x5f58a4[_0x5bce77('0x15')]();})[_0x5bf971('0x3a')](function(){const _0x27ae49=_0x5bf971;_0x4ac6b8[_0x27ae49('0x49')](0xcc)[_0x27ae49('0x5d')]();})[_0x5bf971('0x4e')](handleError(_0x4ac6b8,null));};function getBucketslist(_0x3dbd02,_0x3b30cd,_0x4bfb3c){return new Promise(function(_0x453aee,_0x1bae8a){const _0x12b1e8=new AWS['S3']({'accessKeyId':_0x3b30cd,'secretAccessKey':_0x3dbd02,'region':_0x4bfb3c});_0x12b1e8['listBuckets']({},function(_0x24b26b,_0x20a9cd){return _0x24b26b?_0x1bae8a(_0x24b26b):_0x453aee(_0x20a9cd);});});}function createBucket(_0x42139e,_0x767501,_0x4744d6,_0x3223a9){return new Promise(function(_0x58e322,_0x4b7b40){const _0x40d938=a771_0x1083,_0x55c648=new AWS['S3']({'accessKeyId':_0x767501,'secretAccessKey':_0x42139e,'region':_0x4744d6});_0x55c648[_0x40d938('0x37')]({'Bucket':_0x3223a9},function(_0x42b103,_0x3bd4a){return _0x42b103?_0x4b7b40(_0x42b103):_0x58e322(_0x3bd4a);});});}function uploadFile(_0x3b9f3e,_0x278b89,_0x1dc791,_0x274352,_0x38bf2f,_0x137c32){return new Promise(function(_0x3e4428,_0x6085f8){const _0x3c0d96=a771_0x1083,_0x1b0451=new AWS['S3']({'accessKeyId':_0x278b89,'secretAccessKey':_0x3b9f3e,'region':_0x1dc791});_0x1b0451[_0x3c0d96('0x66')]({'Bucket':_0x274352,'Key':_0x38bf2f,'Body':_0x137c32},function(_0x73278d,_0x174f88){return _0x73278d?_0x6085f8(_0x73278d):_0x3e4428(_0x174f88);});});}function startTranscribe(_0x574713,_0x277427,_0x3af486,_0x1590bb,_0x1df4e7,_0x4c6063){return new Promise(function(_0x5a1a83,_0x132b5d){const _0x14aae8=a771_0x1083,_0x407fd4=new AWS[(_0x14aae8('0x4f'))]({'accessKeyId':_0x277427,'secretAccessKey':_0x574713,'region':_0x3af486});_0x407fd4[_0x14aae8('0x6c')]({'TranscriptionJobName':_0x1590bb,'LanguageCode':_0x1df4e7,'Media':{'MediaFileUri':_0x4c6063}},function(_0x5b9aee,_0x548436){return _0x5b9aee?_0x132b5d(_0x5b9aee):_0x5a1a83(_0x548436);});});}function transcribe(_0x430ca3,_0x90acef,_0x39fdd4,_0x110d59,_0x5d7db4,_0x4088f2,_0x4a940f){return new Promise(function(_0x2c2a5b,_0x1dfb46){const _0x5085fc=a771_0x1083,_0x31198a={};return logger[_0x5085fc('0x76')](util[_0x5085fc('0x10')]('[RUNTRANSCRIPT][%d]\x20Starting\x20voice\x20recording\x20upload\x20in\x20bucket\x20%s',_0x430ca3,_0x5d7db4)),uploadFile(_0x90acef,_0x39fdd4,_0x110d59,_0x5d7db4,path[_0x5085fc('0x1')](_0x4088f2),fs[_0x5085fc('0x3c')](_0x4088f2))[_0x5085fc('0x3a')](function(_0x3c2152){const _0xd2b833=_0x5085fc;return logger[_0xd2b833('0x76')](util[_0xd2b833('0x10')]('[RUNTRANSCRIPT][%d]\x20Voice\x20recording\x20uploaded\x20in\x20bucket\x20%s\x20(%s)',_0x430ca3,_0x5d7db4,_0x3c2152[_0xd2b833('0x2b')])),_0x31198a['bucket']=_0x3c2152[_0xd2b833('0x9')],_0x31198a[_0xd2b833('0x33')]=_0x3c2152[_0xd2b833('0x2b')],logger[_0xd2b833('0x76')](util['format'](_0xd2b833('0x1e'),_0x430ca3)),startTranscribe(_0x90acef,_0x39fdd4,_0x110d59,uuidv4(),_0x4a940f,_0x3c2152[_0xd2b833('0x2b')]);})['then'](function(_0x1c44af){const _0x34b4a8=_0x5085fc;return logger[_0x34b4a8('0x76')](util['format']('[RUNTRANSCRIPT][%d]\x20Transcription\x20job\x20%s\x20created',_0x430ca3,_0x1c44af[_0x34b4a8('0xd')]['TranscriptionJobName'])),_0x31198a[_0x34b4a8('0x2f')]=_0x1c44af[_0x34b4a8('0xd')][_0x34b4a8('0x73')],_0x31198a[_0x34b4a8('0x30')]=_0x1c44af[_0x34b4a8('0xd')][_0x34b4a8('0x21')],_0x2c2a5b(_0x31198a);})[_0x5085fc('0x4e')](function(_0x13a0ad){return _0x1dfb46(_0x13a0ad);});});}exports['runTranscribe']=function(_0xfa5995,_0x14da1c){const _0xf81abf=_0x2253d3;let _0x1a503e,_0x2d8a5b,_0x5f3590;const _0x55bef1=require('../../components/encryptor');return db[_0xf81abf('0x40')][_0xf81abf('0x46')]({'where':{'id':_0xfa5995['params']['id']}})[_0xf81abf('0x3a')](function(_0x1920b0){const _0x41b7d9=_0xf81abf;if(_0x1920b0){const _0x10d37c=util[_0x41b7d9('0x10')](_0x41b7d9('0x79'),_0x1920b0['value']);if(fs[_0x41b7d9('0x7e')](_0x10d37c))return _0x55bef1[_0x41b7d9('0x53')](_0x10d37c,_0x1920b0[_0x41b7d9('0x5f')],config[_0x41b7d9('0x4b')][_0x41b7d9('0x51')])[_0x41b7d9('0x3a')](function(){return _0x1920b0;});return _0x1920b0;}})[_0xf81abf('0x3a')](function(_0x1c3a38){const _0x608e9f=_0xf81abf;if(!_0x1c3a38)throw new ValidationError(_0x608e9f('0x29'));return _0x2d8a5b=_0x1c3a38,db[_0x608e9f('0x45')][_0x608e9f('0x46')]({'where':{'id':0x1}});})[_0xf81abf('0x3a')](handleEntityNotFound(_0x14da1c,null))[_0xf81abf('0x3a')](function(_0x15d69e){const _0x41bcf6=_0xf81abf;if(_0x15d69e){_0x1a503e=_0x15d69e;if(!_0x1a503e[_0x41bcf6('0x7a')]||!_0x1a503e['transcribeAccountId']||!_0x1a503e['transcribeRegion']||!_0x1a503e['language']||!_0x1a503e[_0x41bcf6('0x75')])throw new ValidationError(_0x41bcf6('0x52'));if(_0xfa5995['body'][_0x41bcf6('0x4d')]&&(!_0x1a503e['sentiment']||!_0x1a503e[_0x41bcf6('0x2e')]||!_0x1a503e[_0x41bcf6('0x63')]||!_0x1a503e['language']||!_0x1a503e[_0x41bcf6('0x75')]))throw new ValidationError(_0x41bcf6('0x35'));return db['CloudProvider'][_0x41bcf6('0x46')]({'where':{'id':_0x1a503e[_0x41bcf6('0x2c')]}});}})[_0xf81abf('0x3a')](function(_0x10e5ce){const _0x2cfa8c=_0xf81abf;if(!_0x10e5ce)throw new ValidationError(_0x2cfa8c('0x12'));if(!_0x10e5ce[_0x2cfa8c('0x1d')]||!_0x10e5ce[_0x2cfa8c('0x0')])throw new ValidationError('Cloud\x20Provider\x20not\x20configured');return _0x5f3590=_0x10e5ce,getBucketslist(_0x5f3590[_0x2cfa8c('0x1d')],_0x5f3590[_0x2cfa8c('0x0')],_0x1a503e[_0x2cfa8c('0x68')]);})[_0xf81abf('0x3a')](function(_0x119245){const _0x92f256=_0xf81abf;if(_0x119245&&_0x119245[_0x92f256('0x3f')]){const _0x33cf10=_[_0x92f256('0x1a')](_0x119245[_0x92f256('0x3f')],function(_0x6a5e88){const _0x4b82fc=_0x92f256;return _0x6a5e88[_0x4b82fc('0x34')]===_0x1a503e[_0x4b82fc('0x75')];});if(!_0x33cf10)return logger[_0x92f256('0x76')](util[_0x92f256('0x10')](_0x92f256('0xc'),_0xfa5995[_0x92f256('0x22')]['id'],_0x1a503e[_0x92f256('0x75')])),createBucket(_0x5f3590[_0x92f256('0x1d')],_0x5f3590['data2'],_0x1a503e[_0x92f256('0x68')],_0x1a503e[_0x92f256('0x75')]);logger[_0x92f256('0x76')](util[_0x92f256('0x10')](_0x92f256('0x7c'),_0xfa5995[_0x92f256('0x22')]['id'],_0x1a503e['bucket']));return;}})[_0xf81abf('0x3a')](function(){const _0x1234a9=_0xf81abf;return _0x2d8a5b[_0x1234a9('0x30')]===_0x1234a9('0x61')?transcribe(_0xfa5995['params']['id'],_0x5f3590[_0x1234a9('0x1d')],_0x5f3590[_0x1234a9('0x0')],_0x1a503e[_0x1234a9('0x68')],_0x1a503e[_0x1234a9('0x75')],_0x2d8a5b[_0x1234a9('0x5f')],_0x1a503e['language']):(logger[_0x1234a9('0x76')](util[_0x1234a9('0x10')](_0x1234a9('0x5'),_0xfa5995['params']['id'])),{'transcribeStatus':_0x1234a9('0x57')});})[_0xf81abf('0x3a')](function(_0x3a0a41){const _0x4beb64=_0xf81abf;if(_0x3a0a41)return _0x3a0a41[_0x4beb64('0x71')]=_0xfa5995[_0x4beb64('0x74')][_0x4beb64('0x4d')],_0x2d8a5b[_0x4beb64('0xf')](_0x3a0a41);})[_0xf81abf('0x3a')](respondWithResult(_0x14da1c,null))['catch'](handleError(_0x14da1c,null));};function writeFile(_0x405cd8,_0x5dd7c7){return new Promise(function(_0x5dbf60,_0x55854a){const _0x570b6d=a771_0x1083;fs[_0x570b6d('0x69')](_0x5dd7c7,_0x405cd8,function(_0x5beaf9,_0x16c70b){return _0x5beaf9?_0x55854a(_0x5beaf9):_0x5dbf60(_0x16c70b);});});}exports[_0x2253d3('0x5a')]=function(_0xc9ca33,_0x3a69f7){const _0x112572=_0x2253d3;return db[_0x112572('0x40')][_0x112572('0x46')]({'where':{'id':_0xc9ca33['params']['id']}})[_0x112572('0x3a')](handleEntityNotFound(_0x3a69f7))[_0x112572('0x3a')](function(_0x350196){const _0x47d8d5=_0x112572;if(_0x350196&&_0x350196[_0x47d8d5('0x14')]){const _0xbb234d=_0x350196[_0x47d8d5('0x14')],_0xc74d2f=config[_0x47d8d5('0x7')]+_0x47d8d5('0x72')+_0x350196['id']+'.txt';if(fs[_0x47d8d5('0x7e')](_0xc74d2f))return _0xc74d2f;return writeFile(_0xbb234d,_0xc74d2f)[_0x47d8d5('0x3a')](function(){return _0xc74d2f;});}else throw new ValidationError(_0x47d8d5('0x82'));})['then'](function(_0x2f67e5){const _0x2c2ff0=_0x112572;return _0x3a69f7[_0x2c2ff0('0x3')](_0x2f67e5);})[_0x112572('0x4e')](handleError(_0x3a69f7));}; \ No newline at end of file +const a924_0x1164=['length','downloadTranscribe','download','sentimentRegion','lodash','Buckets','root','VoiceRecording\x20not\x20found','order','keys','fields','extname','TranscribeService','update','data2','tempSentiment','aws-sdk','runSentiment','differenceBy','undefined','filters','path','[RUNTRANSCRIPT][%d]\x20Sending\x20transcribe\x20request','push','value','Transcribe\x20not\x20configured','transcribeAccountId','status','../../config/logger','where','name','model','startTranscriptionJob','set','create','findAll','listBuckets','../../components/encryptor','transcribeRegion','TranscriptionJob','Setting','send','Not\x20found','sentimentAccountId','TranscriptionJobName','/server/files/transcribes/transcribe_','unlink','api','transcribeName','[RUNTRANSCRIPT][%d]\x20Starting\x20voice\x20recording\x20upload\x20in\x20bucket\x20%s','fieldName','like','runTranscribe','../../config/environment','end','Entity\x20not\x20found','params','\x22\x20trovato\x20eseguo\x20la\x20cancellazione','intersection','upload','merge','Location','json','include','Cloud\x20Provider\x20not\x20available','destroy','body','VoiceRecording','Voice\x20Recording\x20not\x20found','Sentiment\x20Analysis\x20not\x20configured','rawAttributes','info','find','filename','attributes','fileText','../../mysqldb','location','.cypher','$and','includeAll','util','basename','sort','bucket','uniqueid','error-middleware/errors','catch','language','offset','limit','and','rows','Content-Range','then','sequelize','map','index','cancellazione\x20fisica\x20documento\x20%s','decryptFile','transcribe','data1','findOne','show','Cloud\x20Provider\x20not\x20configured','VIRTUAL','count','isNil','describe','secrets','existsSync','options','CloudProvider','nolimit','File:\x20\x22','createBucket','filter','[RUNTRANSCRIPT][%d]\x20Transcription\x20job\x20%s\x20created','query','sendStatus','sentiment','format','[RUNTRANSCRIPT][%d]\x20Bucket\x20%s\x20available','downloads','Name','unlinkSync','type','Transcript\x20not\x20available','recording','transcribeStatus','message'];(function(_0x2274b7,_0x160894){const _0x11645b=function(_0x5c95da){while(--_0x5c95da){_0x2274b7['push'](_0x2274b7['shift']());}};_0x11645b(++_0x160894);}(a924_0x1164,0x14c));const a924_0x5c95=function(_0x2274b7,_0x160894){_0x2274b7=_0x2274b7-0x127;let _0x11645b=a924_0x1164[_0x2274b7];return _0x11645b;};const a924_0x33ff8b=a924_0x5c95;'use strict';const util=require(a924_0x33ff8b(0x132)),path=require(a924_0x33ff8b(0x179)),fs=require('fs'),_=require(a924_0x33ff8b(0x168)),AWS=require(a924_0x33ff8b(0x174)),{v4:uuidv4}=require('uuid'),qs=require('../../components/parsers/qs'),logger=require(a924_0x33ff8b(0x180))(a924_0x33ff8b(0x193)),config=require(a924_0x33ff8b(0x199)),{db}=require(a924_0x33ff8b(0x12d)),{Op,fn,col,ValidationError}=require(a924_0x33ff8b(0x140)),{InternalError}=require(a924_0x33ff8b(0x137));function respondWithResult(_0x2d9dd3,_0x2ca55a){return _0x2ca55a=_0x2ca55a||0xc8,function(_0x17c8de){const _0x473685=a924_0x5c95;if(_0x17c8de)return _0x2d9dd3[_0x473685(0x17f)](_0x2ca55a)[_0x473685(0x1a2)](_0x17c8de);};}function respondWithFilteredResult(_0x41409c,_0x1f39f2){return function(_0x23a122){const _0x1c8684=a924_0x5c95;if(_0x23a122){const _0x3427f3=_0x23a122[_0x1c8684(0x14b)],_0x88777e=_0x1f39f2[_0x1c8684(0x13a)];let _0x419481=_0x1f39f2[_0x1c8684(0x13a)]+_0x1f39f2[_0x1c8684(0x13b)],_0x1a7a97;return _0x419481>=_0x3427f3?(_0x419481=_0x3427f3,_0x1a7a97=0xc8):_0x1a7a97=0xce,_0x41409c[_0x1c8684(0x17f)](_0x1a7a97),_0x41409c[_0x1c8684(0x185)](_0x1c8684(0x13e),_0x88777e+'-'+_0x419481+'/'+_0x3427f3)[_0x1c8684(0x1a2)](_0x23a122);}return null;};}function saveUpdates(_0x317dd0){return function(_0x3fb56a){const _0x3c9e19=a924_0x5c95;if(_0x3fb56a)return _0x3fb56a[_0x3c9e19(0x171)](_0x317dd0)[_0x3c9e19(0x13f)](function(_0x31163a){return _0x31163a;});return null;};}function handleEntityNotFound(_0x2b8c45){return function(_0x2bab1b){const _0x152466=a924_0x5c95;return!_0x2bab1b&&_0x2b8c45[_0x152466(0x158)](0x194),_0x2bab1b;};}function handleError(_0x279d1c,_0x459b0a){return _0x459b0a=_0x459b0a||0x1f4,function(_0x235b35){const _0x53795f=a924_0x5c95;logger['error'](_0x235b35['stack']),_0x235b35['name']&&delete _0x235b35[_0x53795f(0x182)],_0x279d1c['status'](_0x459b0a)['send'](_0x235b35);};}exports[a924_0x33ff8b(0x142)]=function(_0x229667,_0x38a964){const _0x5bfa16=a924_0x33ff8b;let _0x4889f9={};const _0x56e984={},_0x2c6cee={'count':0x0,'rows':[]},_0x5089c9=_['map'](db[_0x5bfa16(0x1a7)][_0x5bfa16(0x127)],function(_0x4f9086){const _0x3ca3fd=_0x5bfa16;return{'name':_0x4f9086[_0x3ca3fd(0x196)],'type':_0x4f9086[_0x3ca3fd(0x15f)]['key']};});_0x56e984[_0x5bfa16(0x183)]=_[_0x5bfa16(0x176)](_[_0x5bfa16(0x141)](_0x5089c9,_0x5bfa16(0x182)),[_0x5bfa16(0x15a)]),_0x56e984[_0x5bfa16(0x157)]=_[_0x5bfa16(0x16d)](_0x229667[_0x5bfa16(0x157)]),_0x56e984[_0x5bfa16(0x178)]=_['intersection'](_0x56e984['model'],_0x56e984[_0x5bfa16(0x157)]),_0x4889f9[_0x5bfa16(0x12b)]=_[_0x5bfa16(0x19e)](_0x56e984[_0x5bfa16(0x183)],qs[_0x5bfa16(0x16e)](_0x229667[_0x5bfa16(0x157)][_0x5bfa16(0x16e)])),_0x4889f9[_0x5bfa16(0x12b)]=_0x4889f9[_0x5bfa16(0x12b)][_0x5bfa16(0x164)]?_0x4889f9[_0x5bfa16(0x12b)]:_0x56e984[_0x5bfa16(0x183)];typeof _0x229667['query'][_0x5bfa16(0x152)]===_0x5bfa16(0x177)&&(_0x4889f9[_0x5bfa16(0x13b)]=qs[_0x5bfa16(0x13b)](_0x229667[_0x5bfa16(0x157)]['limit']),_0x4889f9[_0x5bfa16(0x13a)]=qs[_0x5bfa16(0x13a)](_0x229667[_0x5bfa16(0x157)]['offset']));_0x4889f9[_0x5bfa16(0x16c)]=qs[_0x5bfa16(0x134)](_0x229667['query'][_0x5bfa16(0x134)]),_0x4889f9[_0x5bfa16(0x181)]=qs[_0x5bfa16(0x178)](_['pick'](_0x229667[_0x5bfa16(0x157)],_0x56e984['filters']),_0x5089c9);_0x229667[_0x5bfa16(0x157)][_0x5bfa16(0x155)]&&(_0x4889f9[_0x5bfa16(0x181)]=_[_0x5bfa16(0x1a0)](_0x4889f9['where'],{[Op['or']]:_[_0x5bfa16(0x141)](_0x5089c9,function(_0x550ab7){const _0x1b29f9=_0x5bfa16;if(_0x550ab7['type']!==_0x1b29f9(0x14a)){const _0x392852={};return _0x392852[_0x550ab7[_0x1b29f9(0x182)]]={[Op[_0x1b29f9(0x197)]]:'%'+_0x229667[_0x1b29f9(0x157)]['filter']+'%'},_0x392852;}})}));_0x4889f9=_[_0x5bfa16(0x1a0)]({},_0x4889f9,_0x229667['options']);const _0x4d4c7a={'where':_0x4889f9[_0x5bfa16(0x181)]};return db[_0x5bfa16(0x1a7)][_0x5bfa16(0x14b)](_0x4d4c7a)[_0x5bfa16(0x13f)](function(_0x5d4cc3){const _0xbb9da=_0x5bfa16;return _0x2c6cee['count']=_0x5d4cc3,_0x229667[_0xbb9da(0x157)][_0xbb9da(0x131)]&&(_0x4889f9[_0xbb9da(0x1a3)]=[{'all':!![]}]),db[_0xbb9da(0x1a7)][_0xbb9da(0x187)](_0x4889f9);})[_0x5bfa16(0x13f)](function(_0x72a790){const _0x456de9=_0x5bfa16;return _0x2c6cee[_0x456de9(0x13d)]=_0x72a790,_0x2c6cee;})[_0x5bfa16(0x13f)](respondWithFilteredResult(_0x38a964,_0x4889f9))['catch'](handleError(_0x38a964,null));},exports[a924_0x33ff8b(0x148)]=function(_0x6666,_0x38a42a){const _0xf8c88=a924_0x33ff8b;let _0xc74eb6={'raw':![],'where':{'id':_0x6666[_0xf8c88(0x19c)]['id']}};const _0xfa0be8={};return _0xfa0be8[_0xf8c88(0x183)]=_[_0xf8c88(0x16d)](db[_0xf8c88(0x1a7)][_0xf8c88(0x127)]),_0xfa0be8[_0xf8c88(0x157)]=_[_0xf8c88(0x16d)](_0x6666[_0xf8c88(0x157)]),_0xfa0be8['filters']=_[_0xf8c88(0x19e)](_0xfa0be8[_0xf8c88(0x183)],_0xfa0be8[_0xf8c88(0x157)]),_0xc74eb6['attributes']=_[_0xf8c88(0x19e)](_0xfa0be8[_0xf8c88(0x183)],qs[_0xf8c88(0x16e)](_0x6666[_0xf8c88(0x157)][_0xf8c88(0x16e)])),_0xc74eb6[_0xf8c88(0x12b)]=_0xc74eb6[_0xf8c88(0x12b)][_0xf8c88(0x164)]?_0xc74eb6[_0xf8c88(0x12b)]:_0xfa0be8['model'],_0x6666['query']['includeAll']&&(_0xc74eb6[_0xf8c88(0x1a3)]=[{'all':!![]}]),_0xc74eb6=_[_0xf8c88(0x1a0)]({},_0xc74eb6,_0x6666[_0xf8c88(0x150)]),db['VoiceRecording']['findOne'](_0xc74eb6)[_0xf8c88(0x13f)](handleEntityNotFound(_0x38a42a,null))[_0xf8c88(0x13f)](respondWithResult(_0x38a42a,null))[_0xf8c88(0x138)](handleError(_0x38a42a,null));},exports[a924_0x33ff8b(0x186)]=function(_0x50820d,_0x65bbff){const _0x501a13=a924_0x33ff8b;return db[_0x501a13(0x1a7)]['create'](_0x50820d[_0x501a13(0x1a6)],{})[_0x501a13(0x13f)](respondWithResult(_0x65bbff,0xc9))[_0x501a13(0x138)](handleError(_0x65bbff,null));},exports[a924_0x33ff8b(0x171)]=function(_0x1f9c0d,_0x2daf7d){const _0x167c29=a924_0x33ff8b;return _0x1f9c0d[_0x167c29(0x1a6)]['id']&&delete _0x1f9c0d[_0x167c29(0x1a6)]['id'],db['VoiceRecording']['findOne']({'where':{'id':_0x1f9c0d[_0x167c29(0x19c)]['id']}})[_0x167c29(0x13f)](handleEntityNotFound(_0x2daf7d,null))['then'](saveUpdates(_0x1f9c0d[_0x167c29(0x1a6)],null))[_0x167c29(0x13f)](respondWithResult(_0x2daf7d,null))[_0x167c29(0x138)](handleError(_0x2daf7d,null));},exports[a924_0x33ff8b(0x14d)]=function(_0x24e5da,_0x3d5949){const _0x151f42=a924_0x33ff8b;return db[_0x151f42(0x1a7)][_0x151f42(0x14d)]()[_0x151f42(0x13f)](respondWithResult(_0x3d5949,null))[_0x151f42(0x138)](handleError(_0x3d5949,null));},exports['download']=function(_0x4fd075,_0x48b85e){const _0x4a0049=a924_0x33ff8b,_0x44547f=require(_0x4a0049(0x189));let _0x5970f8=![];const _0x121077={};return _0x4fd075['query'][_0x4a0049(0x15f)]&&_0x4fd075[_0x4a0049(0x157)]['type']===_0x4a0049(0x136)?_0x121077[_0x4a0049(0x136)]=_0x4fd075[_0x4a0049(0x19c)]['id']:_0x121077['id']=_0x4fd075[_0x4a0049(0x19c)]['id'],db['VoiceRecording']['findOne']({'where':_0x121077,'attributes':['id',_0x4a0049(0x17c)],'raw':!![]})[_0x4a0049(0x13f)](handleEntityNotFound(_0x48b85e,null))['then'](function(_0x45d627){const _0x39eec5=_0x4a0049;if(_0x45d627){const _0x1369cb=_0x45d627['value'],_0x4bbac6=util[_0x39eec5(0x15a)]('%s.cypher',_0x1369cb);if(fs[_0x39eec5(0x14f)](_0x4bbac6))return _0x5970f8=!![],_0x44547f['decryptFile'](_0x4bbac6,_0x1369cb,config[_0x39eec5(0x14e)][_0x39eec5(0x161)])[_0x39eec5(0x13f)](function(){return _0x45d627;});return _0x45d627;}})[_0x4a0049(0x13f)](function(_0x5e6222){const _0x53aee0=_0x4a0049;if(_0x5e6222){const _0x26b92f=_0x5e6222[_0x53aee0(0x17c)];if(!fs[_0x53aee0(0x14f)](_0x26b92f))throw new ValidationError('VoiceRecording\x20not\x20found');return _0x5e6222['filename']?_0x48b85e[_0x53aee0(0x166)](_0x26b92f,_0x5e6222['filename']+path['extname'](_0x26b92f),function(){_0x5970f8&&fs['unlink'](_0x26b92f);}):_0x48b85e[_0x53aee0(0x166)](_0x26b92f,function(){const _0x4e7b09=_0x53aee0;_0x5970f8&&fs[_0x4e7b09(0x192)](_0x26b92f);});}})[_0x4a0049(0x138)](function(_0x50d11f){const _0x46c403=_0x4a0049;if(_0x50d11f[_0x46c403(0x163)]===_0x46c403(0x16b))_0x48b85e[_0x46c403(0x17f)](0x194)[_0x46c403(0x18d)](_0x46c403(0x18e));else return handleError(_0x48b85e,null);});},exports[a924_0x33ff8b(0x15c)]=function(_0x8883da,_0x54f458){const _0x56d811=a924_0x33ff8b,_0x285f43=require(_0x56d811(0x189));let _0x1f8534=![];const _0x87364e={[Op[_0x56d811(0x13c)]]:[_0x87364e(fn('MD5',col(_0x56d811(0x136))),_0x8883da[_0x56d811(0x157)]['token'])]};return _0x8883da[_0x56d811(0x157)][_0x56d811(0x15f)]&&_0x8883da[_0x56d811(0x157)][_0x56d811(0x15f)]===_0x56d811(0x136)?_0x87364e[_0x56d811(0x130)][_0x56d811(0x17b)]({'uniqueid':_0x8883da[_0x56d811(0x19c)]['id']}):_0x87364e[_0x56d811(0x130)][_0x56d811(0x17b)]({'id':_0x8883da[_0x56d811(0x19c)]['id']}),db[_0x56d811(0x1a7)][_0x56d811(0x147)]({'where':_0x87364e,'attributes':['id','value'],'raw':!![]})[_0x56d811(0x13f)](handleEntityNotFound(_0x54f458,null))[_0x56d811(0x13f)](function(_0x3c8f00){const _0xfc43e2=_0x56d811;if(_0x3c8f00){const _0x4ca7a8=util[_0xfc43e2(0x15a)]('%s.cypher',_0x3c8f00[_0xfc43e2(0x17c)]);if(fs[_0xfc43e2(0x14f)](_0x4ca7a8))return _0x1f8534=!![],_0x285f43[_0xfc43e2(0x144)](_0x4ca7a8,_0x3c8f00['value'],config[_0xfc43e2(0x14e)][_0xfc43e2(0x161)])['then'](function(){return _0x3c8f00;});return _0x3c8f00;}})['then'](function(_0x839e3){const _0x17561a=_0x56d811;if(_0x839e3){if(!fs['existsSync'](_0x839e3[_0x17561a(0x17c)]))throw new ValidationError(_0x17561a(0x16b));return _0x839e3['filename']?_0x54f458[_0x17561a(0x166)](_0x839e3['value'],_0x839e3[_0x17561a(0x12a)]+path[_0x17561a(0x16f)](_0x839e3[_0x17561a(0x17c)]),function(){const _0x581a1e=_0x17561a;_0x1f8534&&fs[_0x581a1e(0x192)](_0x839e3['value']);}):_0x54f458['download'](_0x839e3[_0x17561a(0x17c)],function(){const _0x2d0435=_0x17561a;_0x1f8534&&fs[_0x2d0435(0x192)](_0x839e3[_0x2d0435(0x17c)]);});}})[_0x56d811(0x138)](handleError(_0x54f458,null));},exports['destroy']=function(_0xbde101,_0x4dac83){const _0x4b1f4d=a924_0x33ff8b;return db['VoiceRecording'][_0x4b1f4d(0x147)]({'where':{'id':_0xbde101[_0x4b1f4d(0x19c)]['id']}})[_0x4b1f4d(0x13f)](function(_0x3ed80f){const _0x395102=_0x4b1f4d;if(!_0x3ed80f)throw new ReferenceError(_0x395102(0x19b));return _0x3ed80f;})[_0x4b1f4d(0x13f)](function(_0x114a43){const _0x5c376e=_0x4b1f4d;let _0x7503d1=_0x114a43['value'];return logger['info'](_0x5c376e(0x143),_0x7503d1),!_[_0x5c376e(0x14c)](_0x114a43[_0x5c376e(0x17c)])&&fs[_0x5c376e(0x14f)](_0x7503d1)&&(logger['info'](_0x5c376e(0x153)+_0x7503d1+_0x5c376e(0x19d)),fs[_0x5c376e(0x15e)](_0x7503d1)),_0x7503d1=_0x7503d1+_0x5c376e(0x12f),!_[_0x5c376e(0x14c)](_0x114a43[_0x5c376e(0x17c)])&&fs['existsSync'](_0x7503d1)&&(logger['info'](_0x5c376e(0x153)+_0x7503d1+_0x5c376e(0x19d)),fs[_0x5c376e(0x15e)](_0x7503d1)),_0x114a43;})[_0x4b1f4d(0x13f)](function(_0x580e18){const _0x3f2644=_0x4b1f4d;if(!_0x580e18)throw new InternalError();return _0x580e18[_0x3f2644(0x1a5)]();})[_0x4b1f4d(0x13f)](function(){const _0x5d9423=_0x4b1f4d;_0x4dac83[_0x5d9423(0x17f)](0xcc)[_0x5d9423(0x19a)]();})[_0x4b1f4d(0x138)](handleError(_0x4dac83,null));};function getBucketslist(_0x30d807,_0x32d160,_0x772aae){return new Promise(function(_0x13aa8f,_0x2a750b){const _0x35046f=a924_0x5c95,_0x38dac0=new AWS['S3']({'accessKeyId':_0x32d160,'secretAccessKey':_0x30d807,'region':_0x772aae});_0x38dac0[_0x35046f(0x188)]({},function(_0xaeb414,_0x11e587){return _0xaeb414?_0x2a750b(_0xaeb414):_0x13aa8f(_0x11e587);});});}function createBucket(_0xce9e73,_0x2814c6,_0x173818,_0x5d7a9c){return new Promise(function(_0x1b9155,_0x4d72a6){const _0x279fcb=a924_0x5c95,_0x404bba=new AWS['S3']({'accessKeyId':_0x2814c6,'secretAccessKey':_0xce9e73,'region':_0x173818});_0x404bba[_0x279fcb(0x154)]({'Bucket':_0x5d7a9c},function(_0x15c350,_0x5d684a){return _0x15c350?_0x4d72a6(_0x15c350):_0x1b9155(_0x5d684a);});});}function uploadFile(_0x86efb2,_0x36b212,_0x46ce39,_0x2b43a1,_0x3464a5,_0x450899){return new Promise(function(_0x513e4f,_0x5335f5){const _0x5a10cf=a924_0x5c95,_0x2c8fb7=new AWS['S3']({'accessKeyId':_0x36b212,'secretAccessKey':_0x86efb2,'region':_0x46ce39});_0x2c8fb7[_0x5a10cf(0x19f)]({'Bucket':_0x2b43a1,'Key':_0x3464a5,'Body':_0x450899},function(_0x2cb33e,_0x4b273d){return _0x2cb33e?_0x5335f5(_0x2cb33e):_0x513e4f(_0x4b273d);});});}function startTranscribe(_0x485027,_0x489b83,_0x374399,_0x406fc7,_0x4b46d3,_0x4bb1b3){return new Promise(function(_0x4be5fd,_0x57f1ee){const _0x2f712f=a924_0x5c95,_0x308839=new AWS[(_0x2f712f(0x170))]({'accessKeyId':_0x489b83,'secretAccessKey':_0x485027,'region':_0x374399});_0x308839[_0x2f712f(0x184)]({'TranscriptionJobName':_0x406fc7,'LanguageCode':_0x4b46d3,'Media':{'MediaFileUri':_0x4bb1b3}},function(_0x596dd0,_0x1c1d94){return _0x596dd0?_0x57f1ee(_0x596dd0):_0x4be5fd(_0x1c1d94);});});}function transcribe(_0x18cab5,_0x27c9c3,_0x3b75ab,_0x5a4c01,_0x4d7b64,_0x38fbaa,_0x1a6b76){return new Promise(function(_0x3f11d2,_0x1cbb7c){const _0x45c38a=a924_0x5c95,_0x4f738c={};return logger[_0x45c38a(0x128)](util[_0x45c38a(0x15a)](_0x45c38a(0x195),_0x18cab5,_0x4d7b64)),uploadFile(_0x27c9c3,_0x3b75ab,_0x5a4c01,_0x4d7b64,path[_0x45c38a(0x133)](_0x38fbaa),fs['readFileSync'](_0x38fbaa))[_0x45c38a(0x13f)](function(_0x55deb6){const _0x5b5fca=_0x45c38a;return logger['info'](util[_0x5b5fca(0x15a)]('[RUNTRANSCRIPT][%d]\x20Voice\x20recording\x20uploaded\x20in\x20bucket\x20%s\x20(%s)',_0x18cab5,_0x4d7b64,_0x55deb6['Location'])),_0x4f738c['bucket']=_0x55deb6['Bucket'],_0x4f738c[_0x5b5fca(0x12e)]=_0x55deb6['Location'],logger[_0x5b5fca(0x128)](util[_0x5b5fca(0x15a)](_0x5b5fca(0x17a),_0x18cab5)),startTranscribe(_0x27c9c3,_0x3b75ab,_0x5a4c01,uuidv4(),_0x1a6b76,_0x55deb6[_0x5b5fca(0x1a1)]);})[_0x45c38a(0x13f)](function(_0x25393c){const _0x58ccb3=_0x45c38a;return logger[_0x58ccb3(0x128)](util[_0x58ccb3(0x15a)](_0x58ccb3(0x156),_0x18cab5,_0x25393c[_0x58ccb3(0x18b)]['TranscriptionJobName'])),_0x4f738c[_0x58ccb3(0x194)]=_0x25393c[_0x58ccb3(0x18b)][_0x58ccb3(0x190)],_0x4f738c[_0x58ccb3(0x162)]=_0x25393c[_0x58ccb3(0x18b)]['TranscriptionJobStatus'],_0x3f11d2(_0x4f738c);})[_0x45c38a(0x138)](function(_0xe481ee){return _0x1cbb7c(_0xe481ee);});});}exports[a924_0x33ff8b(0x198)]=function(_0x19676c,_0x102ac8){const _0x195869=a924_0x33ff8b;let _0x3eff42,_0x268d1f,_0x407844;const _0x184194=require(_0x195869(0x189));return db[_0x195869(0x1a7)][_0x195869(0x147)]({'where':{'id':_0x19676c[_0x195869(0x19c)]['id']}})[_0x195869(0x13f)](function(_0x5b57dd){const _0x4984f9=_0x195869;if(_0x5b57dd){const _0x5f9bcb=util[_0x4984f9(0x15a)]('%s.cypher',_0x5b57dd[_0x4984f9(0x17c)]);if(fs['existsSync'](_0x5f9bcb))return _0x184194[_0x4984f9(0x144)](_0x5f9bcb,_0x5b57dd[_0x4984f9(0x17c)],config['secrets'][_0x4984f9(0x161)])['then'](function(){return _0x5b57dd;});return _0x5b57dd;}})[_0x195869(0x13f)](function(_0x2b9703){const _0x10bc7c=_0x195869;if(!_0x2b9703)throw new ValidationError(_0x10bc7c(0x1a8));return _0x268d1f=_0x2b9703,db[_0x10bc7c(0x18c)][_0x10bc7c(0x147)]({'where':{'id':0x1}});})['then'](handleEntityNotFound(_0x102ac8,null))['then'](function(_0x288f64){const _0x17696d=_0x195869;if(_0x288f64){_0x3eff42=_0x288f64;if(!_0x3eff42[_0x17696d(0x145)]||!_0x3eff42[_0x17696d(0x17e)]||!_0x3eff42[_0x17696d(0x18a)]||!_0x3eff42[_0x17696d(0x139)]||!_0x3eff42['bucket'])throw new ValidationError(_0x17696d(0x17d));if(_0x19676c[_0x17696d(0x1a6)]['runSentiment']&&(!_0x3eff42[_0x17696d(0x159)]||!_0x3eff42[_0x17696d(0x18f)]||!_0x3eff42[_0x17696d(0x167)]||!_0x3eff42[_0x17696d(0x139)]||!_0x3eff42[_0x17696d(0x135)]))throw new ValidationError(_0x17696d(0x1a9));return db[_0x17696d(0x151)][_0x17696d(0x147)]({'where':{'id':_0x3eff42[_0x17696d(0x17e)]}});}})[_0x195869(0x13f)](function(_0x6579de){const _0x46c3de=_0x195869;if(!_0x6579de)throw new ValidationError(_0x46c3de(0x1a4));if(!_0x6579de[_0x46c3de(0x146)]||!_0x6579de[_0x46c3de(0x172)])throw new ValidationError(_0x46c3de(0x149));return _0x407844=_0x6579de,getBucketslist(_0x407844[_0x46c3de(0x146)],_0x407844['data2'],_0x3eff42[_0x46c3de(0x18a)]);})['then'](function(_0x2c4260){const _0x188f8a=_0x195869;if(_0x2c4260&&_0x2c4260[_0x188f8a(0x169)]){const _0x5cf306=_[_0x188f8a(0x129)](_0x2c4260[_0x188f8a(0x169)],function(_0x539fb3){const _0x180a0f=_0x188f8a;return _0x539fb3[_0x180a0f(0x15d)]===_0x3eff42['bucket'];});if(!_0x5cf306)return logger[_0x188f8a(0x128)](util[_0x188f8a(0x15a)]('[RUNTRANSCRIPT][%d]\x20Bucket\x20%s\x20not\x20available',_0x19676c['params']['id'],_0x3eff42[_0x188f8a(0x135)])),createBucket(_0x407844[_0x188f8a(0x146)],_0x407844[_0x188f8a(0x172)],_0x3eff42['transcribeRegion'],_0x3eff42[_0x188f8a(0x135)]);logger[_0x188f8a(0x128)](util[_0x188f8a(0x15a)](_0x188f8a(0x15b),_0x19676c[_0x188f8a(0x19c)]['id'],_0x3eff42['bucket']));return;}})[_0x195869(0x13f)](function(){const _0x3ae1f2=_0x195869;return _0x268d1f[_0x3ae1f2(0x162)]==='NEW'?transcribe(_0x19676c[_0x3ae1f2(0x19c)]['id'],_0x407844['data1'],_0x407844[_0x3ae1f2(0x172)],_0x3eff42[_0x3ae1f2(0x18a)],_0x3eff42[_0x3ae1f2(0x135)],_0x268d1f[_0x3ae1f2(0x17c)],_0x3eff42[_0x3ae1f2(0x139)]):(logger['info'](util[_0x3ae1f2(0x15a)]('[RUNTRANSCRIPT][%d]\x20Transcript\x20action\x20already\x20requested',_0x19676c[_0x3ae1f2(0x19c)]['id'])),{'transcribeStatus':'IN_PROGRESS'});})[_0x195869(0x13f)](function(_0x63b544){const _0x3c1615=_0x195869;if(_0x63b544)return _0x63b544[_0x3c1615(0x173)]=_0x19676c['body'][_0x3c1615(0x175)],_0x268d1f['update'](_0x63b544);})[_0x195869(0x13f)](respondWithResult(_0x102ac8,null))[_0x195869(0x138)](handleError(_0x102ac8,null));};function writeFile(_0x3e6b62,_0x5f22b6){return new Promise(function(_0x31dd8b,_0x3d9c27){fs['writeFile'](_0x5f22b6,_0x3e6b62,function(_0x159145,_0xc76c81){return _0x159145?_0x3d9c27(_0x159145):_0x31dd8b(_0xc76c81);});});}exports[a924_0x33ff8b(0x165)]=function(_0xe180fb,_0x241b3f){const _0x5d2055=a924_0x33ff8b;return db['VoiceRecording'][_0x5d2055(0x147)]({'where':{'id':_0xe180fb[_0x5d2055(0x19c)]['id']}})[_0x5d2055(0x13f)](handleEntityNotFound(_0x241b3f))[_0x5d2055(0x13f)](function(_0x12b845){const _0x47f319=_0x5d2055;if(_0x12b845&&_0x12b845[_0x47f319(0x12c)]){const _0xed9c36=_0x12b845[_0x47f319(0x12c)],_0x2cb864=config[_0x47f319(0x16a)]+_0x47f319(0x191)+_0x12b845['id']+'.txt';if(fs['existsSync'](_0x2cb864))return _0x2cb864;return writeFile(_0xed9c36,_0x2cb864)[_0x47f319(0x13f)](function(){return _0x2cb864;});}else throw new ValidationError(_0x47f319(0x160));})[_0x5d2055(0x13f)](function(_0x3a7798){const _0x11d988=_0x5d2055;return _0x241b3f[_0x11d988(0x166)](_0x3a7798);})[_0x5d2055(0x138)](handleError(_0x241b3f));}; \ No newline at end of file diff --git a/server/api/voiceRecording/voiceRecording.model.js b/server/api/voiceRecording/voiceRecording.model.js index 2c38e25..fbdf2b8 100644 --- a/server/api/voiceRecording/voiceRecording.model.js +++ b/server/api/voiceRecording/voiceRecording.model.js @@ -1 +1 @@ -const a772_0x5d5a=['VoiceRecording','voice_recordings','uniqueid','exports','define'];(function(_0x2bb3dd,_0x5d5af6){const _0x3f3fd6=function(_0x359eb4){while(--_0x359eb4){_0x2bb3dd['push'](_0x2bb3dd['shift']());}};_0x3f3fd6(++_0x5d5af6);}(a772_0x5d5a,0x12a));const a772_0x3f3f=function(_0x2bb3dd,_0x5d5af6){_0x2bb3dd=_0x2bb3dd-0x0;let _0x3f3fd6=a772_0x5d5a[_0x2bb3dd];return _0x3f3fd6;};const _0x1bbc82=a772_0x3f3f;'use strict';const attributes=require('./voiceRecording.attributes');module[_0x1bbc82('0x0')]=function(_0x359eb4){const _0xb5a6cb=_0x1bbc82,_0x41db76=_0x359eb4[_0xb5a6cb('0x1')](_0xb5a6cb('0x2'),attributes,{'tableName':_0xb5a6cb('0x3'),'paranoid':![],'indexes':[{'name':'uniqueid','fields':[_0xb5a6cb('0x4')]}],'timestamps':!![]});return _0x41db76;}; \ No newline at end of file +const a925_0x4823=['init','exports','VoiceRecording'];(function(_0x4461b3,_0x2e8ea1){const _0x482310=function(_0x595a3a){while(--_0x595a3a){_0x4461b3['push'](_0x4461b3['shift']());}};_0x482310(++_0x2e8ea1);}(a925_0x4823,0x10d));const a925_0x595a=function(_0x4461b3,_0x2e8ea1){_0x4461b3=_0x4461b3-0x146;let _0x482310=a925_0x4823[_0x4461b3];return _0x482310;};const a925_0xd33ac=a925_0x595a;'use strict';const {Model}=require('sequelize'),{attributes}=require('./voiceRecording.attributes'),{options}=require('./voiceRecording.options');class VoiceRecording extends Model{}function init(_0x212d5f,_0x1322b6){const _0x1e4145=a925_0x595a,_0x48091b=options(_0x212d5f),_0x4960c9=typeof _0x1322b6==='function'?_0x1322b6(_0x48091b):_0x48091b;return VoiceRecording[_0x1e4145(0x147)](attributes,_0x4960c9),VoiceRecording;}module[a925_0xd33ac(0x148)][a925_0xd33ac(0x146)]=VoiceRecording,module[a925_0xd33ac(0x148)][a925_0xd33ac(0x147)]=init; \ No newline at end of file diff --git a/server/api/voiceRecording/voiceRecording.options.js b/server/api/voiceRecording/voiceRecording.options.js new file mode 100644 index 0000000..bceb816 --- /dev/null +++ b/server/api/voiceRecording/voiceRecording.options.js @@ -0,0 +1 @@ +var a926_0x1916=['exports','options','uniqueid'];(function(_0x2d62e3,_0x387ef2){var _0x191642=function(_0xe7d6f3){while(--_0xe7d6f3){_0x2d62e3['push'](_0x2d62e3['shift']());}};_0x191642(++_0x387ef2);}(a926_0x1916,0xe0));var a926_0xe7d6=function(_0x2d62e3,_0x387ef2){_0x2d62e3=_0x2d62e3-0x191;var _0x191642=a926_0x1916[_0x2d62e3];return _0x191642;};var a926_0xedb7ca=a926_0xe7d6;function options(_0xc4b720){var _0xb8d85e=a926_0xe7d6;return{'sequelize':_0xc4b720,'tableName':'voice_recordings','paranoid':![],'indexes':[{'name':'uniqueid','fields':[_0xb8d85e(0x191)]}],'timestamps':!![]};}module[a926_0xedb7ca(0x192)][a926_0xedb7ca(0x193)]=options; \ No newline at end of file diff --git a/server/api/voiceRecording/voiceRecording.rpc.js b/server/api/voiceRecording/voiceRecording.rpc.js index f50fdc9..a0ee9dc 100644 --- a/server/api/voiceRecording/voiceRecording.rpc.js +++ b/server/api/voiceRecording/voiceRecording.rpc.js @@ -1 +1 @@ -const a773_0x1a21=['attributes','findOne','value','limit','CreateVoiceRecording\x20file\x20encrypted','util','options','recording','catch','../../mysqldb','callRecordingEncryption','body','CreateVoiceRecording','secrets','stringify','../../config/logger','raw','then','rpc','VoiceRecording','existsSync','message','Setting','error','where','unlink','encryptFile','format','UpdateVoiceRecording','info'];(function(_0x5a83a9,_0x1a2128){const _0x443e97=function(_0x3e1db9){while(--_0x3e1db9){_0x5a83a9['push'](_0x5a83a9['shift']());}};_0x443e97(++_0x1a2128);}(a773_0x1a21,0xf3));const a773_0x443e=function(_0x5a83a9,_0x1a2128){_0x5a83a9=_0x5a83a9-0x0;let _0x443e97=a773_0x1a21[_0x5a83a9];return _0x443e97;};const _0x2903aa=a773_0x443e;'use strict';const util=require(_0x2903aa('0x2')),fs=require('fs'),db=require(_0x2903aa('0x6'))['db'],logger=require(_0x2903aa('0xc'))(_0x2903aa('0xf')),config=require('../../config/environment');exports[_0x2903aa('0x19')]=function(_0x3e1db9){const _0x52c27e=this;return new Promise(function(_0x2e8e2d,_0x409c27){const _0x2060ab=a773_0x443e;return db[_0x2060ab('0x10')]['update'](_0x3e1db9['body'],{'raw':_0x3e1db9['options']?_0x3e1db9[_0x2060ab('0x3')][_0x2060ab('0xd')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x3e1db9[_0x2060ab('0x3')]?_0x3e1db9[_0x2060ab('0x3')][_0x2060ab('0x15')]||null:null,'attributes':_0x3e1db9['options']?_0x3e1db9[_0x2060ab('0x3')][_0x2060ab('0x1b')]||null:null,'limit':_0x3e1db9[_0x2060ab('0x3')]?_0x3e1db9[_0x2060ab('0x3')][_0x2060ab('0x0')]||null:null})[_0x2060ab('0xe')](function(_0x4b444c){const _0x430569=_0x2060ab;logger[_0x430569('0x1a')](_0x430569('0x19'),_0x3e1db9),logger['debug'](_0x430569('0x19'),_0x3e1db9,JSON[_0x430569('0xb')](_0x4b444c)),_0x2e8e2d(_0x4b444c);})['catch'](function(_0x53dd6f){const _0x99a916=_0x2060ab;logger[_0x99a916('0x14')](_0x99a916('0x19'),_0x53dd6f[_0x99a916('0x12')],_0x3e1db9),_0x409c27(_0x52c27e[_0x99a916('0x14')](0x1f4,_0x53dd6f['message']));});});},exports[_0x2903aa('0x9')]=function(_0x11a240){const _0x5d3922=this;return new Promise(function(_0x12b3a1,_0x582e1a){const _0x4b21aa=a773_0x443e,_0x349ace=require('../../components/encryptor');let _0x2eebee;return db[_0x4b21aa('0x13')][_0x4b21aa('0x1c')]({'attributes':['id',_0x4b21aa('0x7')],'where':{'id':0x1},'raw':!![]})['then'](function(_0x409a49){const _0x20fb4f=_0x4b21aa;return _0x2eebee=_0x409a49,db[_0x20fb4f('0x10')]['create'](_0x11a240[_0x20fb4f('0x8')]);})[_0x4b21aa('0xe')](function(_0x381cac){const _0x14aaa3=_0x4b21aa;if(_0x2eebee[_0x14aaa3('0x7')]&&fs[_0x14aaa3('0x11')](_0x381cac[_0x14aaa3('0x1d')])){const _0x182cef=util[_0x14aaa3('0x18')]('%s.cypher',_0x381cac['value']);return _0x349ace[_0x14aaa3('0x17')](_0x381cac[_0x14aaa3('0x1d')],_0x182cef,config[_0x14aaa3('0xa')][_0x14aaa3('0x4')])[_0x14aaa3('0xe')](function(){const _0x5e925d=_0x14aaa3;return fs[_0x5e925d('0x16')](_0x381cac[_0x5e925d('0x1d')]),logger[_0x5e925d('0x1a')](_0x5e925d('0x1')),_0x381cac;});}return _0x381cac;})[_0x4b21aa('0xe')](function(_0x6df729){const _0x593a93=_0x4b21aa;logger['info'](_0x593a93('0x9'),_0x11a240),logger['debug'](_0x593a93('0x9'),_0x11a240,JSON['stringify'](_0x6df729)),_0x12b3a1(_0x6df729);})[_0x4b21aa('0x5')](function(_0x1f6463){const _0xf0e543=_0x4b21aa;logger[_0xf0e543('0x14')](_0xf0e543('0x9'),_0x1f6463['message'],_0x11a240),_0x582e1a(_0x5d3922[_0xf0e543('0x14')](0x1f4,_0x1f6463[_0xf0e543('0x12')]));});});}; \ No newline at end of file +const a927_0x17b6=['CreateVoiceRecording','UpdateVoiceRecording','body','callRecordingEncryption','encryptFile','format','attributes','debug','message','value','recording','unlink','stringify','then','rpc','raw','VoiceRecording','catch','secrets','update','error','info','util','options','../../components/encryptor','../../mysqldb'];(function(_0x2ce69b,_0x366ecd){const _0x17b629=function(_0x48a123){while(--_0x48a123){_0x2ce69b['push'](_0x2ce69b['shift']());}};_0x17b629(++_0x366ecd);}(a927_0x17b6,0x12e));const a927_0x48a1=function(_0x2ce69b,_0x366ecd){_0x2ce69b=_0x2ce69b-0x1d9;let _0x17b629=a927_0x17b6[_0x2ce69b];return _0x17b629;};const a927_0x33e9c4=a927_0x48a1;'use strict';const util=require(a927_0x33e9c4(0x1df)),fs=require('fs'),db=require(a927_0x33e9c4(0x1e2))['db'],logger=require('../../config/logger')(a927_0x33e9c4(0x1f1)),config=require('../../config/environment');exports['UpdateVoiceRecording']=function(_0x2fc007){const _0x238e12=this;return new Promise(function(_0x31b711,_0x4633b8){const _0x14fb9f=a927_0x48a1;return db['VoiceRecording'][_0x14fb9f(0x1dc)](_0x2fc007[_0x14fb9f(0x1e5)],{'raw':_0x2fc007['options']?_0x2fc007['options'][_0x14fb9f(0x1f2)]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x2fc007['options']?_0x2fc007[_0x14fb9f(0x1e0)]['where']||null:null,'attributes':_0x2fc007[_0x14fb9f(0x1e0)]?_0x2fc007[_0x14fb9f(0x1e0)][_0x14fb9f(0x1e9)]||null:null,'limit':_0x2fc007[_0x14fb9f(0x1e0)]?_0x2fc007['options']['limit']||null:null})[_0x14fb9f(0x1f0)](function(_0x34fef8){const _0x3b09e9=_0x14fb9f;logger['info'](_0x3b09e9(0x1e4),_0x2fc007),logger['debug'](_0x3b09e9(0x1e4),_0x2fc007,JSON[_0x3b09e9(0x1ef)](_0x34fef8)),_0x31b711(_0x34fef8);})[_0x14fb9f(0x1da)](function(_0xfc8d39){const _0x3a9990=_0x14fb9f;logger[_0x3a9990(0x1dd)](_0x3a9990(0x1e4),_0xfc8d39[_0x3a9990(0x1eb)],_0x2fc007),_0x4633b8(_0x238e12[_0x3a9990(0x1dd)](0x1f4,_0xfc8d39['message']));});});},exports[a927_0x33e9c4(0x1e3)]=function(_0x464ba0){const _0x5bd897=this;return new Promise(function(_0x544aa4,_0x5b21d2){const _0x1ebfad=a927_0x48a1,_0x3694d7=require(_0x1ebfad(0x1e1));let _0x4fa59f;return db['Setting']['findOne']({'attributes':['id',_0x1ebfad(0x1e6)],'where':{'id':0x1},'raw':!![]})[_0x1ebfad(0x1f0)](function(_0x2a5b25){const _0x5becab=_0x1ebfad;return _0x4fa59f=_0x2a5b25,db[_0x5becab(0x1d9)]['create'](_0x464ba0[_0x5becab(0x1e5)]);})[_0x1ebfad(0x1f0)](function(_0x2e8e16){const _0x461cdd=_0x1ebfad;if(_0x4fa59f['callRecordingEncryption']&&fs['existsSync'](_0x2e8e16[_0x461cdd(0x1ec)])){const _0x40a89f=util[_0x461cdd(0x1e8)]('%s.cypher',_0x2e8e16[_0x461cdd(0x1ec)]);return _0x3694d7[_0x461cdd(0x1e7)](_0x2e8e16['value'],_0x40a89f,config[_0x461cdd(0x1db)][_0x461cdd(0x1ed)])['then'](function(){const _0x49382b=_0x461cdd;return fs[_0x49382b(0x1ee)](_0x2e8e16['value']),logger[_0x49382b(0x1de)]('CreateVoiceRecording\x20file\x20encrypted'),_0x2e8e16;});}return _0x2e8e16;})[_0x1ebfad(0x1f0)](function(_0x4b4c07){const _0x245cef=_0x1ebfad;logger[_0x245cef(0x1de)](_0x245cef(0x1e3),_0x464ba0),logger[_0x245cef(0x1ea)](_0x245cef(0x1e3),_0x464ba0,JSON[_0x245cef(0x1ef)](_0x4b4c07)),_0x544aa4(_0x4b4c07);})[_0x1ebfad(0x1da)](function(_0xeaae0d){const _0x35e115=_0x1ebfad;logger[_0x35e115(0x1dd)]('CreateVoiceRecording',_0xeaae0d[_0x35e115(0x1eb)],_0x464ba0),_0x5b21d2(_0x5bd897[_0x35e115(0x1dd)](0x1f4,_0xeaae0d[_0x35e115(0x1eb)]));});});}; \ No newline at end of file diff --git a/server/api/voiceTransferReport/index.js b/server/api/voiceTransferReport/index.js index 66ee1b6..d7b5ac9 100644 --- a/server/api/voiceTransferReport/index.js +++ b/server/api/voiceTransferReport/index.js @@ -1 +1 @@ -const a774_0x2687=['/:id','isAuthenticated','destroy','Router','get','delete','post','exports','express','update','../../components/auth/service','put','create','./voiceTransferReport.controller'];(function(_0x292a98,_0x2687d6){const _0x2e920a=function(_0xd5e810){while(--_0xd5e810){_0x292a98['push'](_0x292a98['shift']());}};_0x2e920a(++_0x2687d6);}(a774_0x2687,0x19d));const a774_0x2e92=function(_0x292a98,_0x2687d6){_0x292a98=_0x292a98-0x0;let _0x2e920a=a774_0x2687[_0x292a98];return _0x2e920a;};const _0x7f0e0e=a774_0x2e92;'use strict';const express=require(_0x7f0e0e('0x1')),router=express[_0x7f0e0e('0xa')](),auth=require(_0x7f0e0e('0x3')),controller=require(_0x7f0e0e('0x6'));router[_0x7f0e0e('0xb')]('/',auth[_0x7f0e0e('0x8')](),controller['index']),router[_0x7f0e0e('0xb')]('/:id',auth[_0x7f0e0e('0x8')](),controller['show']),router[_0x7f0e0e('0xd')]('/',auth[_0x7f0e0e('0x8')](),controller[_0x7f0e0e('0x5')]),router[_0x7f0e0e('0x4')]('/:id',auth['isAuthenticated'](),controller[_0x7f0e0e('0x2')]),router[_0x7f0e0e('0xc')](_0x7f0e0e('0x7'),auth[_0x7f0e0e('0x8')](),controller[_0x7f0e0e('0x9')]),module[_0x7f0e0e('0x0')]=router; \ No newline at end of file +const a928_0x4a9e=['Router','index','isAuthenticated','update','delete','destroy','post','/:id','get','express','put','exports','../../components/auth/service'];(function(_0x33d291,_0x4c79d6){const _0x4a9e40=function(_0x2d8405){while(--_0x2d8405){_0x33d291['push'](_0x33d291['shift']());}};_0x4a9e40(++_0x4c79d6);}(a928_0x4a9e,0x12e));const a928_0x2d84=function(_0x33d291,_0x4c79d6){_0x33d291=_0x33d291-0x17f;let _0x4a9e40=a928_0x4a9e[_0x33d291];return _0x4a9e40;};const a928_0x2a0d14=a928_0x2d84;'use strict';const express=require(a928_0x2a0d14(0x185)),router=express[a928_0x2a0d14(0x189)](),auth=require(a928_0x2a0d14(0x188)),controller=require('./voiceTransferReport.controller');router[a928_0x2a0d14(0x184)]('/',auth[a928_0x2a0d14(0x18b)](),controller[a928_0x2a0d14(0x18a)]),router[a928_0x2a0d14(0x184)](a928_0x2a0d14(0x183),auth['isAuthenticated'](),controller['show']),router[a928_0x2a0d14(0x182)]('/',auth['isAuthenticated'](),controller['create']),router[a928_0x2a0d14(0x186)]('/:id',auth[a928_0x2a0d14(0x18b)](),controller[a928_0x2a0d14(0x17f)]),router[a928_0x2a0d14(0x180)](a928_0x2a0d14(0x183),auth[a928_0x2a0d14(0x18b)](),controller[a928_0x2a0d14(0x181)]),module[a928_0x2a0d14(0x187)]=router; \ No newline at end of file diff --git a/server/api/voiceTransferReport/voiceTransferReport.attributes.js b/server/api/voiceTransferReport/voiceTransferReport.attributes.js index a05dae8..8d81d9a 100644 --- a/server/api/voiceTransferReport/voiceTransferReport.attributes.js +++ b/server/api/voiceTransferReport/voiceTransferReport.attributes.js @@ -1 +1 @@ -const a775_0x5136=['Yes','STRING','attended','exports','ENUM','blind','sequelize'];(function(_0x43a52b,_0x513658){const _0x518c08=function(_0x9fe694){while(--_0x9fe694){_0x43a52b['push'](_0x43a52b['shift']());}};_0x518c08(++_0x513658);}(a775_0x5136,0x1d4));const a775_0x518c=function(_0x43a52b,_0x513658){_0x43a52b=_0x43a52b-0x0;let _0x518c08=a775_0x5136[_0x43a52b];return _0x518c08;};const _0x3974e9=a775_0x518c;'use strict';const Sequelize=require(_0x3974e9('0x0'));module[_0x3974e9('0x4')]={'type':{'type':Sequelize['ENUM'](_0x3974e9('0x6'),_0x3974e9('0x3'))},'result':{'type':Sequelize[_0x3974e9('0x2')]},'transfererchannel':{'type':Sequelize[_0x3974e9('0x2')]},'transferercalleridnum':{'type':Sequelize['STRING']},'transferercalleridname':{'type':Sequelize[_0x3974e9('0x2')]},'transfererconnectedlinenum':{'type':Sequelize[_0x3974e9('0x2')]},'transfererconnectedlinename':{'type':Sequelize[_0x3974e9('0x2')]},'transfereraccountcode':{'type':Sequelize[_0x3974e9('0x2')]},'transferercontext':{'type':Sequelize[_0x3974e9('0x2')]},'transfererexten':{'type':Sequelize[_0x3974e9('0x2')]},'transfererlinkedid':{'type':Sequelize['STRING']},'transfereechannel':{'type':Sequelize[_0x3974e9('0x2')]},'transfereecalleridnum':{'type':Sequelize[_0x3974e9('0x2')]},'transfereecalleridname':{'type':Sequelize[_0x3974e9('0x2')]},'transfereeconnectedlinenum':{'type':Sequelize['STRING']},'transfereeconnectedlinename':{'type':Sequelize[_0x3974e9('0x2')]},'transfereeaccountcode':{'type':Sequelize['STRING']},'transfereecontext':{'type':Sequelize[_0x3974e9('0x2')]},'transfereeexten':{'type':Sequelize[_0x3974e9('0x2')]},'transfereelinkedid':{'type':Sequelize[_0x3974e9('0x2')]},'isexternal':{'type':Sequelize[_0x3974e9('0x5')](_0x3974e9('0x1'),'No')},'context':{'type':Sequelize[_0x3974e9('0x2')]},'extension':{'type':Sequelize[_0x3974e9('0x2')]}}; \ No newline at end of file +const a929_0x36f0=['blind','Yes','attributes','attended','ENUM','sequelize','exports','STRING'];(function(_0x489fe9,_0x572af1){const _0x36f0d9=function(_0x84e868){while(--_0x84e868){_0x489fe9['push'](_0x489fe9['shift']());}};_0x36f0d9(++_0x572af1);}(a929_0x36f0,0x93));const a929_0x84e8=function(_0x489fe9,_0x572af1){_0x489fe9=_0x489fe9-0x176;let _0x36f0d9=a929_0x36f0[_0x489fe9];return _0x36f0d9;};const a929_0x16baa9=a929_0x84e8;'use strict';const {DataTypes}=require(a929_0x16baa9(0x178)),attributes={'type':{'type':DataTypes['ENUM'](a929_0x16baa9(0x17b),a929_0x16baa9(0x176))},'result':{'type':DataTypes[a929_0x16baa9(0x17a)]},'transfererchannel':{'type':DataTypes[a929_0x16baa9(0x17a)]},'transferercalleridnum':{'type':DataTypes[a929_0x16baa9(0x17a)]},'transferercalleridname':{'type':DataTypes[a929_0x16baa9(0x17a)]},'transfererconnectedlinenum':{'type':DataTypes[a929_0x16baa9(0x17a)]},'transfererconnectedlinename':{'type':DataTypes[a929_0x16baa9(0x17a)]},'transfereraccountcode':{'type':DataTypes[a929_0x16baa9(0x17a)]},'transferercontext':{'type':DataTypes['STRING']},'transfererexten':{'type':DataTypes[a929_0x16baa9(0x17a)]},'transfererlinkedid':{'type':DataTypes[a929_0x16baa9(0x17a)]},'transfereechannel':{'type':DataTypes[a929_0x16baa9(0x17a)]},'transfereecalleridnum':{'type':DataTypes['STRING']},'transfereecalleridname':{'type':DataTypes[a929_0x16baa9(0x17a)]},'transfereeconnectedlinenum':{'type':DataTypes[a929_0x16baa9(0x17a)]},'transfereeconnectedlinename':{'type':DataTypes['STRING']},'transfereeaccountcode':{'type':DataTypes[a929_0x16baa9(0x17a)]},'transfereecontext':{'type':DataTypes[a929_0x16baa9(0x17a)]},'transfereeexten':{'type':DataTypes[a929_0x16baa9(0x17a)]},'transfereelinkedid':{'type':DataTypes[a929_0x16baa9(0x17a)]},'isexternal':{'type':DataTypes[a929_0x16baa9(0x177)](a929_0x16baa9(0x17c),'No')},'context':{'type':DataTypes[a929_0x16baa9(0x17a)]},'extension':{'type':DataTypes[a929_0x16baa9(0x17a)]}};module[a929_0x16baa9(0x179)][a929_0x16baa9(0x17d)]=attributes; \ No newline at end of file diff --git a/server/api/voiceTransferReport/voiceTransferReport.controller.js b/server/api/voiceTransferReport/voiceTransferReport.controller.js index 2973625..765d9f8 100644 --- a/server/api/voiceTransferReport/voiceTransferReport.controller.js +++ b/server/api/voiceTransferReport/voiceTransferReport.controller.js @@ -1 +1 @@ -const a776_0x4bde=['filters','catch','count','findAll','model','VIRTUAL','VoiceTransferReport','then','like','query','length','set','filter','body','error','attributes','destroy','show','type','limit','sort','sendStatus','../../components/parsers/qs','merge','json','include','fields','status','findOne','update','keys','../../mysqldb','nolimit','Content-Range','name','intersection','pick','params','rawAttributes','options','includeAll','where','order','create','offset','map','lodash','rows'];(function(_0x10f68f,_0x4bde85){const _0x30c439=function(_0x762ba){while(--_0x762ba){_0x10f68f['push'](_0x10f68f['shift']());}};_0x30c439(++_0x4bde85);}(a776_0x4bde,0x174));const a776_0x30c4=function(_0x10f68f,_0x4bde85){_0x10f68f=_0x10f68f-0x0;let _0x30c439=a776_0x4bde[_0x10f68f];return _0x30c439;};const _0x129f81=a776_0x30c4;'use strict';const _=require(_0x129f81('0xa')),qs=require(_0x129f81('0x22')),logger=require('../../config/logger')('api'),db=require(_0x129f81('0x2b'))['db'],{Op}=require('sequelize');function respondWithResult(_0x762ba,_0x4a755b){return _0x4a755b=_0x4a755b||0xc8,function(_0x399f31){const _0x482dc5=a776_0x30c4;if(_0x399f31)return _0x762ba[_0x482dc5('0x27')](_0x4a755b)['json'](_0x399f31);};}function respondWithFilteredResult(_0x5455cd,_0x16f422){return function(_0x405f07){const _0x7a4472=a776_0x30c4;if(_0x405f07){const _0x571aa1=_0x405f07['count'],_0x2cf9db=_0x16f422[_0x7a4472('0x8')];let _0x5df1ff=_0x16f422[_0x7a4472('0x8')]+_0x16f422[_0x7a4472('0x1f')],_0x3d4244;return _0x5df1ff>=_0x571aa1?(_0x5df1ff=_0x571aa1,_0x3d4244=0xc8):_0x3d4244=0xce,_0x5455cd[_0x7a4472('0x27')](_0x3d4244),_0x5455cd[_0x7a4472('0x17')](_0x7a4472('0x2d'),_0x2cf9db+'-'+_0x5df1ff+'/'+_0x571aa1)[_0x7a4472('0x24')](_0x405f07);}return null;};}function saveUpdates(_0x4bb81c){return function(_0x293c72){const _0x2f23d5=a776_0x30c4;if(_0x293c72)return _0x293c72[_0x2f23d5('0x29')](_0x4bb81c)[_0x2f23d5('0x13')](function(_0x324ca8){return _0x324ca8;});return null;};}function removeEntity(_0x2979c0){return function(_0x553ee2){const _0x497bfe=a776_0x30c4;if(_0x553ee2)return _0x553ee2[_0x497bfe('0x1c')]()['then'](function(){const _0x518d4d=_0x497bfe;_0x2979c0[_0x518d4d('0x27')](0xcc)['end']();});};}function handleEntityNotFound(_0x1ae9da){return function(_0x261f50){const _0x1f9d6b=a776_0x30c4;return!_0x261f50&&_0x1ae9da[_0x1f9d6b('0x21')](0x194),_0x261f50;};}function handleError(_0x5061c4,_0x2bcd70){return _0x2bcd70=_0x2bcd70||0x1f4,function(_0x2496d4){const _0x6bf3e3=a776_0x30c4;logger[_0x6bf3e3('0x1a')](_0x2496d4['stack']),_0x2496d4[_0x6bf3e3('0x2e')]&&delete _0x2496d4[_0x6bf3e3('0x2e')],_0x5061c4[_0x6bf3e3('0x27')](_0x2bcd70)['send'](_0x2496d4);};}exports['index']=function(_0x5a7ea4,_0x3adacf){const _0xaf606f=_0x129f81;let _0x576593={};const _0x1ece58={},_0x35d240={'count':0x0,'rows':[]},_0x7fc4ca=_[_0xaf606f('0x9')](db[_0xaf606f('0x12')][_0xaf606f('0x2')],function(_0x4062ff){const _0x4996b6=_0xaf606f;return{'name':_0x4062ff['fieldName'],'type':_0x4062ff[_0x4996b6('0x1e')]['key']};});_0x1ece58[_0xaf606f('0x10')]=_[_0xaf606f('0x9')](_0x7fc4ca,'name'),_0x1ece58[_0xaf606f('0x15')]=_['keys'](_0x5a7ea4[_0xaf606f('0x15')]),_0x1ece58[_0xaf606f('0xc')]=_[_0xaf606f('0x2f')](_0x1ece58['model'],_0x1ece58[_0xaf606f('0x15')]),_0x576593[_0xaf606f('0x1b')]=_[_0xaf606f('0x2f')](_0x1ece58['model'],qs[_0xaf606f('0x26')](_0x5a7ea4[_0xaf606f('0x15')][_0xaf606f('0x26')])),_0x576593[_0xaf606f('0x1b')]=_0x576593['attributes'][_0xaf606f('0x16')]?_0x576593['attributes']:_0x1ece58[_0xaf606f('0x10')];typeof _0x5a7ea4[_0xaf606f('0x15')][_0xaf606f('0x2c')]==='undefined'&&(_0x576593['limit']=qs[_0xaf606f('0x1f')](_0x5a7ea4[_0xaf606f('0x15')][_0xaf606f('0x1f')]),_0x576593['offset']=qs[_0xaf606f('0x8')](_0x5a7ea4[_0xaf606f('0x15')][_0xaf606f('0x8')]));_0x576593[_0xaf606f('0x6')]=qs[_0xaf606f('0x20')](_0x5a7ea4[_0xaf606f('0x15')][_0xaf606f('0x20')]),_0x576593[_0xaf606f('0x5')]=qs[_0xaf606f('0xc')](_[_0xaf606f('0x0')](_0x5a7ea4[_0xaf606f('0x15')],_0x1ece58[_0xaf606f('0xc')]),_0x7fc4ca);_0x5a7ea4['query']['filter']&&(_0x576593[_0xaf606f('0x5')]=_[_0xaf606f('0x23')](_0x576593[_0xaf606f('0x5')],{[Op['or']]:_[_0xaf606f('0x9')](_0x7fc4ca,function(_0x4017d9){const _0x263bf0=_0xaf606f;if(_0x4017d9[_0x263bf0('0x1e')]!==_0x263bf0('0x11')){const _0x17963c={};return _0x17963c[_0x4017d9[_0x263bf0('0x2e')]]={[Op[_0x263bf0('0x14')]]:'%'+_0x5a7ea4[_0x263bf0('0x15')][_0x263bf0('0x18')]+'%'},_0x17963c;}})}));_0x576593=_[_0xaf606f('0x23')]({},_0x576593,_0x5a7ea4['options']);const _0x4b0a36={'where':_0x576593[_0xaf606f('0x5')]};return db[_0xaf606f('0x12')]['count'](_0x4b0a36)['then'](function(_0x3eed92){const _0x4cfd39=_0xaf606f;return _0x35d240[_0x4cfd39('0xe')]=_0x3eed92,_0x5a7ea4[_0x4cfd39('0x15')]['includeAll']&&(_0x576593[_0x4cfd39('0x25')]=[{'all':!![]}]),db['VoiceTransferReport'][_0x4cfd39('0xf')](_0x576593);})[_0xaf606f('0x13')](function(_0x378a69){const _0x23de70=_0xaf606f;return _0x35d240[_0x23de70('0xb')]=_0x378a69,_0x35d240;})[_0xaf606f('0x13')](respondWithFilteredResult(_0x3adacf,_0x576593))['catch'](handleError(_0x3adacf,null));},exports[_0x129f81('0x1d')]=function(_0x5b01dc,_0x225f30){const _0x1a44e2=_0x129f81;let _0x109d67={'raw':!![],'where':{'id':_0x5b01dc[_0x1a44e2('0x1')]['id']}};const _0x1a406b={};return _0x1a406b[_0x1a44e2('0x10')]=_['keys'](db[_0x1a44e2('0x12')][_0x1a44e2('0x2')]),_0x1a406b[_0x1a44e2('0x15')]=_[_0x1a44e2('0x2a')](_0x5b01dc['query']),_0x1a406b[_0x1a44e2('0xc')]=_[_0x1a44e2('0x2f')](_0x1a406b['model'],_0x1a406b[_0x1a44e2('0x15')]),_0x109d67['attributes']=_['intersection'](_0x1a406b[_0x1a44e2('0x10')],qs[_0x1a44e2('0x26')](_0x5b01dc[_0x1a44e2('0x15')][_0x1a44e2('0x26')])),_0x109d67[_0x1a44e2('0x1b')]=_0x109d67['attributes'][_0x1a44e2('0x16')]?_0x109d67[_0x1a44e2('0x1b')]:_0x1a406b[_0x1a44e2('0x10')],_0x5b01dc[_0x1a44e2('0x15')][_0x1a44e2('0x4')]&&(_0x109d67[_0x1a44e2('0x25')]=[{'all':!![]}]),_0x109d67=_[_0x1a44e2('0x23')]({},_0x109d67,_0x5b01dc[_0x1a44e2('0x3')]),db[_0x1a44e2('0x12')]['findOne'](_0x109d67)[_0x1a44e2('0x13')](handleEntityNotFound(_0x225f30,null))[_0x1a44e2('0x13')](respondWithResult(_0x225f30,null))[_0x1a44e2('0xd')](handleError(_0x225f30,null));},exports[_0x129f81('0x7')]=function(_0x577248,_0x35122d){const _0x5bc68c=_0x129f81;return db[_0x5bc68c('0x12')]['create'](_0x577248['body'],{})[_0x5bc68c('0x13')](respondWithResult(_0x35122d,0xc9))['catch'](handleError(_0x35122d,null));},exports['update']=function(_0x25125c,_0x18bc63){const _0x36fe1c=_0x129f81;return _0x25125c[_0x36fe1c('0x19')]['id']&&delete _0x25125c[_0x36fe1c('0x19')]['id'],db[_0x36fe1c('0x12')]['findOne']({'where':{'id':_0x25125c[_0x36fe1c('0x1')]['id']}})[_0x36fe1c('0x13')](handleEntityNotFound(_0x18bc63,null))['then'](saveUpdates(_0x25125c[_0x36fe1c('0x19')],null))[_0x36fe1c('0x13')](respondWithResult(_0x18bc63,null))[_0x36fe1c('0xd')](handleError(_0x18bc63,null));},exports[_0x129f81('0x1c')]=function(_0x48b094,_0x29754a){const _0xc180c8=_0x129f81;return db[_0xc180c8('0x12')][_0xc180c8('0x28')]({'where':{'id':_0x48b094[_0xc180c8('0x1')]['id']}})[_0xc180c8('0x13')](handleEntityNotFound(_0x29754a,null))['then'](removeEntity(_0x29754a,null))['catch'](handleError(_0x29754a,null));}; \ No newline at end of file +const a930_0x1126=['rawAttributes','index','VIRTUAL','filters','../../components/parsers/qs','fieldName','catch','filter','where','intersection','show','../../config/logger','model','../../mysqldb','then','sort','rows','limit','merge','map','include','name','error','sendStatus','create','send','keys','body','params','api','options','attributes','pick','count','VoiceTransferReport','status','type','update','undefined','query','sequelize','findOne','end','lodash','offset','key','nolimit','fields','destroy'];(function(_0x422aa8,_0x331eb8){const _0x11267b=function(_0x265d12){while(--_0x265d12){_0x422aa8['push'](_0x422aa8['shift']());}};_0x11267b(++_0x331eb8);}(a930_0x1126,0x1e8));const a930_0x265d=function(_0x422aa8,_0x331eb8){_0x422aa8=_0x422aa8-0xa3;let _0x11267b=a930_0x1126[_0x422aa8];return _0x11267b;};const a930_0xc8805c=a930_0x265d;'use strict';const _=require(a930_0xc8805c(0xd0)),qs=require(a930_0xc8805c(0xa9)),logger=require(a930_0xc8805c(0xb0))(a930_0xc8805c(0xc2)),{db}=require(a930_0xc8805c(0xb2)),{Op}=require(a930_0xc8805c(0xcd));function respondWithResult(_0x268d48,_0x3131c5){return _0x3131c5=_0x3131c5||0xc8,function(_0x121263){const _0x5d08d8=a930_0x265d;if(_0x121263)return _0x268d48[_0x5d08d8(0xc8)](_0x3131c5)['json'](_0x121263);};}function respondWithFilteredResult(_0x279518,_0x1e6a32){return function(_0x1c86c1){const _0x2c60e5=a930_0x265d;if(_0x1c86c1){const _0x1bc16f=_0x1c86c1[_0x2c60e5(0xc6)],_0x3a6ed9=_0x1e6a32[_0x2c60e5(0xd1)];let _0x2bca5e=_0x1e6a32['offset']+_0x1e6a32[_0x2c60e5(0xb6)],_0x2b66b4;return _0x2bca5e>=_0x1bc16f?(_0x2bca5e=_0x1bc16f,_0x2b66b4=0xc8):_0x2b66b4=0xce,_0x279518[_0x2c60e5(0xc8)](_0x2b66b4),_0x279518['set']('Content-Range',_0x3a6ed9+'-'+_0x2bca5e+'/'+_0x1bc16f)['json'](_0x1c86c1);}return null;};}function saveUpdates(_0x5b4990){return function(_0xaca6cb){const _0x4bed1b=a930_0x265d;if(_0xaca6cb)return _0xaca6cb[_0x4bed1b(0xca)](_0x5b4990)[_0x4bed1b(0xb3)](function(_0x16d040){return _0x16d040;});return null;};}function removeEntity(_0x199017){return function(_0xe28267){const _0x26dfc5=a930_0x265d;if(_0xe28267)return _0xe28267[_0x26dfc5(0xa4)]()[_0x26dfc5(0xb3)](function(){const _0x4d5de4=_0x26dfc5;_0x199017['status'](0xcc)[_0x4d5de4(0xcf)]();});};}function handleEntityNotFound(_0x47b282){return function(_0x460410){const _0x3448a5=a930_0x265d;return!_0x460410&&_0x47b282[_0x3448a5(0xbc)](0x194),_0x460410;};}function handleError(_0x352bd9,_0x1d0451){return _0x1d0451=_0x1d0451||0x1f4,function(_0x45178e){const _0x3b86dc=a930_0x265d;logger[_0x3b86dc(0xbb)](_0x45178e['stack']),_0x45178e[_0x3b86dc(0xba)]&&delete _0x45178e[_0x3b86dc(0xba)],_0x352bd9[_0x3b86dc(0xc8)](_0x1d0451)[_0x3b86dc(0xbe)](_0x45178e);};}exports[a930_0xc8805c(0xa6)]=function(_0x5eb0cb,_0x344948){const _0x1a7bb8=a930_0xc8805c;let _0x17aa32={};const _0x20fa97={},_0x3690ad={'count':0x0,'rows':[]},_0x5dce4e=_[_0x1a7bb8(0xb8)](db['VoiceTransferReport'][_0x1a7bb8(0xa5)],function(_0x33484e){const _0x1c2179=_0x1a7bb8;return{'name':_0x33484e[_0x1c2179(0xaa)],'type':_0x33484e[_0x1c2179(0xc9)][_0x1c2179(0xd2)]};});_0x20fa97['model']=_['map'](_0x5dce4e,_0x1a7bb8(0xba)),_0x20fa97['query']=_[_0x1a7bb8(0xbf)](_0x5eb0cb[_0x1a7bb8(0xcc)]),_0x20fa97[_0x1a7bb8(0xa8)]=_[_0x1a7bb8(0xae)](_0x20fa97[_0x1a7bb8(0xb1)],_0x20fa97[_0x1a7bb8(0xcc)]),_0x17aa32[_0x1a7bb8(0xc4)]=_[_0x1a7bb8(0xae)](_0x20fa97[_0x1a7bb8(0xb1)],qs['fields'](_0x5eb0cb[_0x1a7bb8(0xcc)][_0x1a7bb8(0xa3)])),_0x17aa32[_0x1a7bb8(0xc4)]=_0x17aa32[_0x1a7bb8(0xc4)]['length']?_0x17aa32[_0x1a7bb8(0xc4)]:_0x20fa97['model'];typeof _0x5eb0cb[_0x1a7bb8(0xcc)][_0x1a7bb8(0xd3)]===_0x1a7bb8(0xcb)&&(_0x17aa32[_0x1a7bb8(0xb6)]=qs['limit'](_0x5eb0cb['query'][_0x1a7bb8(0xb6)]),_0x17aa32[_0x1a7bb8(0xd1)]=qs['offset'](_0x5eb0cb['query']['offset']));_0x17aa32['order']=qs['sort'](_0x5eb0cb[_0x1a7bb8(0xcc)][_0x1a7bb8(0xb4)]),_0x17aa32[_0x1a7bb8(0xad)]=qs[_0x1a7bb8(0xa8)](_[_0x1a7bb8(0xc5)](_0x5eb0cb[_0x1a7bb8(0xcc)],_0x20fa97[_0x1a7bb8(0xa8)]),_0x5dce4e);_0x5eb0cb[_0x1a7bb8(0xcc)][_0x1a7bb8(0xac)]&&(_0x17aa32[_0x1a7bb8(0xad)]=_[_0x1a7bb8(0xb7)](_0x17aa32[_0x1a7bb8(0xad)],{[Op['or']]:_['map'](_0x5dce4e,function(_0x29325d){const _0x22d83c=_0x1a7bb8;if(_0x29325d[_0x22d83c(0xc9)]!==_0x22d83c(0xa7)){const _0x42f54f={};return _0x42f54f[_0x29325d[_0x22d83c(0xba)]]={[Op['like']]:'%'+_0x5eb0cb[_0x22d83c(0xcc)][_0x22d83c(0xac)]+'%'},_0x42f54f;}})}));_0x17aa32=_['merge']({},_0x17aa32,_0x5eb0cb[_0x1a7bb8(0xc3)]);const _0x271036={'where':_0x17aa32['where']};return db['VoiceTransferReport']['count'](_0x271036)['then'](function(_0x45feef){const _0x4ce54b=_0x1a7bb8;return _0x3690ad[_0x4ce54b(0xc6)]=_0x45feef,_0x5eb0cb['query']['includeAll']&&(_0x17aa32[_0x4ce54b(0xb9)]=[{'all':!![]}]),db['VoiceTransferReport']['findAll'](_0x17aa32);})[_0x1a7bb8(0xb3)](function(_0x289a35){const _0x1cfd8e=_0x1a7bb8;return _0x3690ad[_0x1cfd8e(0xb5)]=_0x289a35,_0x3690ad;})[_0x1a7bb8(0xb3)](respondWithFilteredResult(_0x344948,_0x17aa32))[_0x1a7bb8(0xab)](handleError(_0x344948,null));},exports[a930_0xc8805c(0xaf)]=function(_0x211376,_0x2af425){const _0x5e5b93=a930_0xc8805c;let _0x45b7a7={'raw':!![],'where':{'id':_0x211376[_0x5e5b93(0xc1)]['id']}};const _0x31b886={};return _0x31b886[_0x5e5b93(0xb1)]=_[_0x5e5b93(0xbf)](db[_0x5e5b93(0xc7)][_0x5e5b93(0xa5)]),_0x31b886['query']=_[_0x5e5b93(0xbf)](_0x211376[_0x5e5b93(0xcc)]),_0x31b886[_0x5e5b93(0xa8)]=_[_0x5e5b93(0xae)](_0x31b886[_0x5e5b93(0xb1)],_0x31b886['query']),_0x45b7a7[_0x5e5b93(0xc4)]=_[_0x5e5b93(0xae)](_0x31b886[_0x5e5b93(0xb1)],qs['fields'](_0x211376[_0x5e5b93(0xcc)][_0x5e5b93(0xa3)])),_0x45b7a7[_0x5e5b93(0xc4)]=_0x45b7a7[_0x5e5b93(0xc4)]['length']?_0x45b7a7['attributes']:_0x31b886[_0x5e5b93(0xb1)],_0x211376[_0x5e5b93(0xcc)]['includeAll']&&(_0x45b7a7[_0x5e5b93(0xb9)]=[{'all':!![]}]),_0x45b7a7=_[_0x5e5b93(0xb7)]({},_0x45b7a7,_0x211376[_0x5e5b93(0xc3)]),db[_0x5e5b93(0xc7)][_0x5e5b93(0xce)](_0x45b7a7)['then'](handleEntityNotFound(_0x2af425,null))['then'](respondWithResult(_0x2af425,null))['catch'](handleError(_0x2af425,null));},exports[a930_0xc8805c(0xbd)]=function(_0x2e8210,_0x1ca75c){const _0x3a31b1=a930_0xc8805c;return db[_0x3a31b1(0xc7)][_0x3a31b1(0xbd)](_0x2e8210['body'],{})['then'](respondWithResult(_0x1ca75c,0xc9))[_0x3a31b1(0xab)](handleError(_0x1ca75c,null));},exports[a930_0xc8805c(0xca)]=function(_0x2adbcd,_0x5f3fbb){const _0x1cf79c=a930_0xc8805c;return _0x2adbcd['body']['id']&&delete _0x2adbcd[_0x1cf79c(0xc0)]['id'],db[_0x1cf79c(0xc7)]['findOne']({'where':{'id':_0x2adbcd[_0x1cf79c(0xc1)]['id']}})['then'](handleEntityNotFound(_0x5f3fbb,null))[_0x1cf79c(0xb3)](saveUpdates(_0x2adbcd['body'],null))[_0x1cf79c(0xb3)](respondWithResult(_0x5f3fbb,null))[_0x1cf79c(0xab)](handleError(_0x5f3fbb,null));},exports[a930_0xc8805c(0xa4)]=function(_0x55e3c8,_0x3810aa){const _0x3e2631=a930_0xc8805c;return db[_0x3e2631(0xc7)][_0x3e2631(0xce)]({'where':{'id':_0x55e3c8[_0x3e2631(0xc1)]['id']}})['then'](handleEntityNotFound(_0x3810aa,null))[_0x3e2631(0xb3)](removeEntity(_0x3810aa,null))['catch'](handleError(_0x3810aa,null));}; \ No newline at end of file diff --git a/server/api/voiceTransferReport/voiceTransferReport.model.js b/server/api/voiceTransferReport/voiceTransferReport.model.js index e99c266..f6d8547 100644 --- a/server/api/voiceTransferReport/voiceTransferReport.model.js +++ b/server/api/voiceTransferReport/voiceTransferReport.model.js @@ -1 +1 @@ -const a777_0x5a1e=['VoiceTransferReport','report_call_transfer','define','exports'];(function(_0x4a440e,_0x5a1e7d){const _0x2cd11d=function(_0xf37f53){while(--_0xf37f53){_0x4a440e['push'](_0x4a440e['shift']());}};_0x2cd11d(++_0x5a1e7d);}(a777_0x5a1e,0x9a));const a777_0x2cd1=function(_0x4a440e,_0x5a1e7d){_0x4a440e=_0x4a440e-0x0;let _0x2cd11d=a777_0x5a1e[_0x4a440e];return _0x2cd11d;};const _0x4d8f1c=a777_0x2cd1;'use strict';const attributes=require('./voiceTransferReport.attributes');module[_0x4d8f1c('0x1')]=function(_0xf37f53){const _0x3e781d=_0x4d8f1c,_0x4e9c0e=_0xf37f53[_0x3e781d('0x0')](_0x3e781d('0x2'),attributes,{'tableName':_0x3e781d('0x3'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x4e9c0e;}; \ No newline at end of file +const a931_0x3a56=['./voiceTransferReport.attributes','exports','init','function','sequelize','VoiceTransferReport'];(function(_0x9afbb0,_0x3b5135){const _0x3a569d=function(_0x4f0d89){while(--_0x4f0d89){_0x9afbb0['push'](_0x9afbb0['shift']());}};_0x3a569d(++_0x3b5135);}(a931_0x3a56,0x17d));const a931_0x4f0d=function(_0x9afbb0,_0x3b5135){_0x9afbb0=_0x9afbb0-0x1a5;let _0x3a569d=a931_0x3a56[_0x9afbb0];return _0x3a569d;};const a931_0x2c1f40=a931_0x4f0d;'use strict';const {Model}=require(a931_0x2c1f40(0x1a6)),{attributes}=require(a931_0x2c1f40(0x1a8)),{options}=require('./voiceTransferReport.options');class VoiceTransferReport extends Model{}function init(_0x243039,_0x2efd19){const _0x14833d=a931_0x2c1f40,_0xc10e8=options(_0x243039),_0x489259=typeof _0x2efd19===_0x14833d(0x1a5)?_0x2efd19(_0xc10e8):_0xc10e8;return VoiceTransferReport[_0x14833d(0x1aa)](attributes,_0x489259),VoiceTransferReport;}module[a931_0x2c1f40(0x1a9)][a931_0x2c1f40(0x1a7)]=VoiceTransferReport,module[a931_0x2c1f40(0x1a9)]['init']=init; \ No newline at end of file diff --git a/server/api/voiceTransferReport/voiceTransferReport.options.js b/server/api/voiceTransferReport/voiceTransferReport.options.js new file mode 100644 index 0000000..e5d74c8 --- /dev/null +++ b/server/api/voiceTransferReport/voiceTransferReport.options.js @@ -0,0 +1 @@ +var a932_0x3dbc=['options','exports','report_call_transfer'];(function(_0x3b8560,_0x385e13){var _0x3dbc59=function(_0x2e2a90){while(--_0x2e2a90){_0x3b8560['push'](_0x3b8560['shift']());}};_0x3dbc59(++_0x385e13);}(a932_0x3dbc,0x16b));var a932_0x2e2a=function(_0x3b8560,_0x385e13){_0x3b8560=_0x3b8560-0x11b;var _0x3dbc59=a932_0x3dbc[_0x3b8560];return _0x3dbc59;};var a932_0x5f161a=a932_0x2e2a;function options(_0x1743a7){var _0x41d635=a932_0x2e2a;return{'sequelize':_0x1743a7,'tableName':_0x41d635(0x11d),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a932_0x5f161a(0x11c)][a932_0x5f161a(0x11b)]=options; \ No newline at end of file diff --git a/server/api/voiceTransferReport/voiceTransferReport.rpc.js b/server/api/voiceTransferReport/voiceTransferReport.rpc.js index 77d8eb1..8991541 100644 --- a/server/api/voiceTransferReport/voiceTransferReport.rpc.js +++ b/server/api/voiceTransferReport/voiceTransferReport.rpc.js @@ -1 +1 @@ -const a778_0x598b=['stringify','CreateVoiceTransferReport','debug','rpc','then','message','error','create','catch','../../config/logger','info','options'];(function(_0x46aea6,_0x598b73){const _0x3b04e2=function(_0x3aeb73){while(--_0x3aeb73){_0x46aea6['push'](_0x46aea6['shift']());}};_0x3b04e2(++_0x598b73);}(a778_0x598b,0xa9));const a778_0x3b04=function(_0x46aea6,_0x598b73){_0x46aea6=_0x46aea6-0x0;let _0x3b04e2=a778_0x598b[_0x46aea6];return _0x3b04e2;};const _0x30177e=a778_0x3b04;'use strict';const db=require('../../mysqldb')['db'],logger=require(_0x30177e('0x8'))(_0x30177e('0x2'));exports[_0x30177e('0x0')]=function(_0x3aeb73){const _0xeadfaa=this;return new Promise(function(_0x277bb7,_0x568f9c){const _0x19519d=a778_0x3b04;return db['VoiceTransferReport'][_0x19519d('0x6')](_0x3aeb73['body'],{'raw':_0x3aeb73[_0x19519d('0xa')]?_0x3aeb73[_0x19519d('0xa')]['raw']===undefined?!![]:![]:!![]})[_0x19519d('0x3')](function(_0x5ebc68){const _0x421ea3=_0x19519d;logger[_0x421ea3('0x9')](_0x421ea3('0x0'),_0x3aeb73),logger[_0x421ea3('0x1')](_0x421ea3('0x0'),_0x3aeb73,JSON[_0x421ea3('0xb')](_0x5ebc68)),_0x277bb7(_0x5ebc68);})[_0x19519d('0x7')](function(_0x3f8e84){const _0x1e09e7=_0x19519d;logger[_0x1e09e7('0x5')](_0x1e09e7('0x0'),_0x3f8e84[_0x1e09e7('0x4')],_0x3aeb73),_0x568f9c(_0xeadfaa[_0x1e09e7('0x5')](0x1f4,_0x3f8e84['message']));});});}; \ No newline at end of file +const a933_0x3672=['../../config/logger','debug','options','create','../../mysqldb','message','VoiceTransferReport','catch','stringify','error','raw','CreateVoiceTransferReport','rpc','info','then'];(function(_0x3e34a5,_0x12d949){const _0x36723b=function(_0x5f0a95){while(--_0x5f0a95){_0x3e34a5['push'](_0x3e34a5['shift']());}};_0x36723b(++_0x12d949);}(a933_0x3672,0x70));const a933_0x5f0a=function(_0x3e34a5,_0x12d949){_0x3e34a5=_0x3e34a5-0x1b2;let _0x36723b=a933_0x3672[_0x3e34a5];return _0x36723b;};const a933_0x71b272=a933_0x5f0a;'use strict';const db=require(a933_0x71b272(0x1be))['db'],logger=require(a933_0x71b272(0x1ba))(a933_0x71b272(0x1b7));exports[a933_0x71b272(0x1b6)]=function(_0x297308){const _0x3279d9=this;return new Promise(function(_0x37b6f6,_0x21aac6){const _0x58b925=a933_0x5f0a;return db[_0x58b925(0x1c0)][_0x58b925(0x1bd)](_0x297308['body'],{'raw':_0x297308[_0x58b925(0x1bc)]?_0x297308[_0x58b925(0x1bc)][_0x58b925(0x1b5)]===undefined?!![]:![]:!![]})[_0x58b925(0x1b9)](function(_0xaee441){const _0x551461=_0x58b925;logger[_0x551461(0x1b8)](_0x551461(0x1b6),_0x297308),logger[_0x551461(0x1bb)]('CreateVoiceTransferReport',_0x297308,JSON[_0x551461(0x1b3)](_0xaee441)),_0x37b6f6(_0xaee441);})[_0x58b925(0x1b2)](function(_0x2a3bcf){const _0x16289a=_0x58b925;logger[_0x16289a(0x1b4)]('CreateVoiceTransferReport',_0x2a3bcf[_0x16289a(0x1bf)],_0x297308),_0x21aac6(_0x3279d9[_0x16289a(0x1b4)](0x1f4,_0x2a3bcf[_0x16289a(0x1bf)]));});});}; \ No newline at end of file diff --git a/server/api/webbar/index.js b/server/api/webbar/index.js index a57bcde..68c6fb7 100644 --- a/server/api/webbar/index.js +++ b/server/api/webbar/index.js @@ -1 +1 @@ -const a779_0xadbf=['transfer','isAuthenticated','express','Router','/calls','calls','answer','originate','post','/hold','unhold','exports','hangup','/hangup','canUpdate'];(function(_0x22a757,_0xadbf4c){const _0x8e593b=function(_0x14399f){while(--_0x14399f){_0x22a757['push'](_0x22a757['shift']());}};_0x8e593b(++_0xadbf4c);}(a779_0xadbf,0xd1));const a779_0x8e59=function(_0x22a757,_0xadbf4c){_0x22a757=_0x22a757-0x0;let _0x8e593b=a779_0xadbf[_0x22a757];return _0x8e593b;};const _0x3c2435=a779_0x8e59;'use strict';const express=require(_0x3c2435('0x3')),router=express[_0x3c2435('0x4')](),auth=require('../../components/auth/service'),controller=require('./webbar.controller');router['post']('/originate',auth[_0x3c2435('0x2')](),auth['canUpdate'](),controller[_0x3c2435('0x8')]),router['post'](_0x3c2435('0xe'),auth[_0x3c2435('0x2')](),auth[_0x3c2435('0x0')](),controller[_0x3c2435('0xd')]),router['post']('/answer',auth[_0x3c2435('0x2')](),auth[_0x3c2435('0x0')](),controller[_0x3c2435('0x7')]),router[_0x3c2435('0x9')](_0x3c2435('0xa'),auth[_0x3c2435('0x2')](),auth['canUpdate'](),controller['hold']),router[_0x3c2435('0x9')]('/unhold',auth[_0x3c2435('0x2')](),auth[_0x3c2435('0x0')](),controller[_0x3c2435('0xb')]),router[_0x3c2435('0x9')](_0x3c2435('0x5'),auth['isAuthenticated'](),auth[_0x3c2435('0x0')](),controller[_0x3c2435('0x6')]),router[_0x3c2435('0x9')]('/transfer',auth[_0x3c2435('0x2')](),auth[_0x3c2435('0x0')](),controller[_0x3c2435('0x1')]),module[_0x3c2435('0xc')]=router; \ No newline at end of file +const a934_0x4e7e=['../../components/auth/service','calls','express','/hangup','/transfer','unhold','post','/unhold','/answer','canUpdate','isAuthenticated','originate','transfer','/calls','hold','hangup'];(function(_0x56845e,_0x527dec){const _0x4e7ece=function(_0x4accce){while(--_0x4accce){_0x56845e['push'](_0x56845e['shift']());}};_0x4e7ece(++_0x527dec);}(a934_0x4e7e,0x8b));const a934_0x4acc=function(_0x56845e,_0x527dec){_0x56845e=_0x56845e-0x182;let _0x4e7ece=a934_0x4e7e[_0x56845e];return _0x4e7ece;};const a934_0x223710=a934_0x4acc;'use strict';const express=require(a934_0x223710(0x189)),router=express['Router'](),auth=require(a934_0x223710(0x187)),controller=require('./webbar.controller');router[a934_0x223710(0x18d)]('/originate',auth[a934_0x223710(0x191)](),auth[a934_0x223710(0x190)](),controller[a934_0x223710(0x182)]),router[a934_0x223710(0x18d)](a934_0x223710(0x18a),auth[a934_0x223710(0x191)](),auth[a934_0x223710(0x190)](),controller[a934_0x223710(0x186)]),router[a934_0x223710(0x18d)](a934_0x223710(0x18f),auth[a934_0x223710(0x191)](),auth[a934_0x223710(0x190)](),controller['answer']),router[a934_0x223710(0x18d)]('/hold',auth[a934_0x223710(0x191)](),auth[a934_0x223710(0x190)](),controller[a934_0x223710(0x185)]),router[a934_0x223710(0x18d)](a934_0x223710(0x18e),auth['isAuthenticated'](),auth[a934_0x223710(0x190)](),controller[a934_0x223710(0x18c)]),router['post'](a934_0x223710(0x184),auth[a934_0x223710(0x191)](),auth['canUpdate'](),controller[a934_0x223710(0x188)]),router[a934_0x223710(0x18d)](a934_0x223710(0x18b),auth['isAuthenticated'](),auth[a934_0x223710(0x190)](),controller[a934_0x223710(0x183)]),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 80368ac..0bde8af 100644 --- a/server/api/webbar/webbar.controller.js +++ b/server/api/webbar/webbar.controller.js @@ -1 +1 @@ -const a780_0xca94=['transfer\x20executed!','hold\x20fired:','sessionId','format','code','rows','number','message','agent','answer\x20fired:','VoiceChannels','originate','stringify','log','result','webbar:hold','transfer','originate\x20executed!','webbar:unhold','lodash','filter','conference\x20fired:','hangup\x20fired:','findOne','jayson/promise','all','client','webbar:transfer','../../mysqldb','hangup\x20executed!','then','unhold\x20fired:','validate','name','../../config/logger','catch','json','conference\x20executed!','callerId','request','body','info','callbackUrl','userId\x20is\x20required','transfer\x20fired:','entityFound:','error','User','../../rediscache','webbar:hangup','webbarapi','handleError:','callNumber\x20is\x20required','NotFound','status','hangup','user:%s','unhold\x20executed!','emit','userId','calls\x20fired:','answer','callNumber','UserId','length','string','send','answer\x20executed!'];(function(_0x2dcd5d,_0xca94ff){const _0x6580aa=function(_0x4f7c5f){while(--_0x4f7c5f){_0x2dcd5d['push'](_0x2dcd5d['shift']());}};_0x6580aa(++_0xca94ff);}(a780_0xca94,0x11d));const a780_0x6580=function(_0x2dcd5d,_0xca94ff){_0x2dcd5d=_0x2dcd5d-0x0;let _0x6580aa=a780_0xca94[_0x2dcd5d];return _0x6580aa;};const _0x382b65=a780_0x6580;'use strict';const _=require(_0x382b65('0x6')),db=require(_0x382b65('0xf'))['db'],util=require('util'),jayson=require(_0x382b65('0xb')),amiClient=jayson[_0x382b65('0xd')]['http']({'port':0x232a}),logger=require(_0x382b65('0x15'))(_0x382b65('0x25')),{getSocket}=require(_0x382b65('0x23')),io=getSocket(),Schema=require('validate'),originateValidation=new Schema({'userId':{'type':_0x382b65('0x3d'),'required':[!![],_0x382b65('0x1e')]},'callNumber':{'type':'string','required':[!![],_0x382b65('0x27')]},'callerId':{'type':'string'},'callbackUrl':{'type':_0x382b65('0x34')}}),hangupValidation=new Schema({'userId':{'type':_0x382b65('0x3d'),'required':[!![],_0x382b65('0x1e')]},'sessionId':{'type':_0x382b65('0x34'),'required':![]}}),answerValidation=new Schema({'userId':{'type':_0x382b65('0x3d'),'required':[!![],_0x382b65('0x1e')]},'sessionId':{'type':'string','required':![]}}),transferValidation=new Schema({'userId':{'type':_0x382b65('0x3d'),'required':[!![],_0x382b65('0x1e')]},'sessionId':{'type':_0x382b65('0x34'),'required':[!![],'sessionId\x20is\x20required']},'transferNumber':{'type':_0x382b65('0x34'),'required':[!![],'transferNumber\x20is\x20required']}}),holdValidation=new Schema({'userId':{'type':'number','required':[!![],_0x382b65('0x1e')]},'sessionId':{'type':_0x382b65('0x34'),'required':![]}}),unholdValidation=new Schema({'userId':{'type':_0x382b65('0x3d'),'required':[!![],'userId\x20is\x20required']},'sessionId':{'type':_0x382b65('0x34'),'required':![]}}),callsValidation=new Schema({'userId':{'type':_0x382b65('0x3d'),'required':[!![],_0x382b65('0x1e')]}}),conferenceValidation=new Schema({'userId':{'type':_0x382b65('0x3d'),'required':[!![],'userId\x20is\x20required']}});function emit(_0x4f7c5f,_0x4fb4f2,_0x57484c){const _0x5eb7bd=_0x382b65;logger['info'](_0x4f7c5f,_0x4fb4f2,JSON[_0x5eb7bd('0x43')](_0x57484c)),io['to'](_0x4f7c5f)[_0x5eb7bd('0x2d')](_0x4fb4f2,_0x57484c);}function handleError(_0x5cb93f){return function(_0xedba8a){const _0x1046ca=a780_0x6580;console[_0x1046ca('0x0')](_0x1046ca('0x26'),_0xedba8a,_0xedba8a instanceof RangeError),logger[_0x1046ca('0x21')](_0xedba8a['stack']),_0xedba8a instanceof RangeError?(_0xedba8a['name']&&delete _0xedba8a['name'],_0x5cb93f['status'](0x194)[_0x1046ca('0x35')](_0xedba8a)):(_0xedba8a[_0x1046ca('0x14')]&&delete _0xedba8a[_0x1046ca('0x14')],_0x5cb93f[_0x1046ca('0x29')](0x1f4)[_0x1046ca('0x35')](_0xedba8a));};}function checkError(){return function(_0x7c5e2e){const _0x354e15=a780_0x6580;if(!_0x7c5e2e)throw new RangeError(_0x354e15('0x28'));return _0x7c5e2e;};}function respondWithRpcPromise(_0x3c10d4,_0x5389ed){return new Promise(function(_0x1603e5,_0x1fd608){const _0x42d83a=a780_0x6580,_0x3ec031=amiClient;return _0x3ec031[_0x42d83a('0x1a')](_0x3c10d4,_0x5389ed)[_0x42d83a('0x11')](function(_0x4b8a03){const _0x18c440=_0x42d83a;if(_0x4b8a03[_0x18c440('0x21')]){if(_0x4b8a03['error'][_0x18c440('0x3b')]===0x1f4)return _0x1fd608(_0x4b8a03[_0x18c440('0x21')][_0x18c440('0x3e')]);return _0x1603e5(_0x4b8a03[_0x18c440('0x21')]['message']);}else _0x1603e5(_0x4b8a03[_0x18c440('0x1')]);})[_0x42d83a('0x16')](function(_0x4a99a2){_0x1fd608(_0x4a99a2);});});}function getAgent(_0x1db9d7){const _0x40e107=_0x382b65;return db[_0x40e107('0x22')][_0x40e107('0xa')]({'where':{'id':_0x1db9d7,'role':_0x40e107('0x3f')}})['then'](checkError());}exports[_0x382b65('0x42')]=function(_0x31f8c9,_0x4c38b3){const _0x434af3=_0x382b65;logger[_0x434af3('0x1c')]('originate\x20fired:',_0x31f8c9[_0x434af3('0x1b')]);const _0x281231=originateValidation['validate'](_0x31f8c9[_0x434af3('0x1b')]);if(_0x281231[_0x434af3('0x33')]>0x0)return _0x4c38b3[_0x434af3('0x29')](0x190)[_0x434af3('0x17')](_0x281231);const _0x1db4ce=_0x31f8c9[_0x434af3('0x1b')][_0x434af3('0x2e')],_0x24b055=_0x31f8c9[_0x434af3('0x1b')][_0x434af3('0x31')],_0x18c3cc=_0x31f8c9['body'][_0x434af3('0x19')],_0x539a80=_0x31f8c9[_0x434af3('0x1b')][_0x434af3('0x1d')];return getAgent(_0x1db4ce)[_0x434af3('0x11')](function(_0x2d37b5){const _0x155060=_0x434af3;return logger[_0x155060('0x1c')](_0x155060('0x20'),_0x2d37b5['name']),emit(util[_0x155060('0x3a')](_0x155060('0x2b'),_0x2d37b5[_0x155060('0x14')]),'webbar:originate',{'callNumber':_0x24b055,'callerId':_0x18c3cc,'callbackUrl':_0x539a80}),_0x4c38b3[_0x155060('0x29')](0xc8)[_0x155060('0x17')]({'error':![],'message':_0x155060('0x4')});})[_0x434af3('0x16')](handleError(_0x4c38b3));},exports[_0x382b65('0x2a')]=function(_0x358d1c,_0x2cd691){const _0x1bcb61=_0x382b65;logger[_0x1bcb61('0x1c')](_0x1bcb61('0x9'),_0x358d1c[_0x1bcb61('0x1b')]);const _0x1573e0=hangupValidation[_0x1bcb61('0x13')](_0x358d1c[_0x1bcb61('0x1b')]);if(_0x1573e0[_0x1bcb61('0x33')]>0x0)return _0x2cd691['status'](0x190)[_0x1bcb61('0x17')](_0x1573e0);const _0x516480=_0x358d1c[_0x1bcb61('0x1b')][_0x1bcb61('0x2e')],_0x53b371=_0x358d1c['body'][_0x1bcb61('0x39')];return getAgent(_0x516480)[_0x1bcb61('0x11')](function(_0x513eea){const _0x552cd8=_0x1bcb61;return logger[_0x552cd8('0x1c')](_0x552cd8('0x20'),_0x513eea[_0x552cd8('0x14')]),emit(util[_0x552cd8('0x3a')](_0x552cd8('0x2b'),_0x513eea['name']),_0x552cd8('0x24'),{'sessionId':_0x53b371}),_0x2cd691[_0x552cd8('0x29')](0xc8)[_0x552cd8('0x17')]({'error':![],'message':_0x552cd8('0x10')});})[_0x1bcb61('0x16')](handleError(_0x2cd691));},exports[_0x382b65('0x30')]=function(_0x5008a5,_0x83c7d6){const _0x11e911=_0x382b65;logger['info'](_0x11e911('0x40'),_0x5008a5[_0x11e911('0x1b')]);const _0x223209=answerValidation[_0x11e911('0x13')](_0x5008a5[_0x11e911('0x1b')]);if(_0x223209[_0x11e911('0x33')]>0x0)return _0x83c7d6[_0x11e911('0x29')](0x190)[_0x11e911('0x17')](_0x223209);const _0x43f528=_0x5008a5['body'][_0x11e911('0x2e')],_0x5f5023=_0x5008a5[_0x11e911('0x1b')][_0x11e911('0x39')];return getAgent(_0x43f528)[_0x11e911('0x11')](function(_0x248735){const _0x55e9fe=_0x11e911;return logger[_0x55e9fe('0x1c')](_0x55e9fe('0x20'),_0x248735[_0x55e9fe('0x14')]),emit(util['format']('user:%s',_0x248735[_0x55e9fe('0x14')]),'webbar:answer',{'sessionId':_0x5f5023}),_0x83c7d6['status'](0xc8)[_0x55e9fe('0x17')]({'error':![],'message':_0x55e9fe('0x36')});})[_0x11e911('0x16')](handleError(_0x83c7d6));},exports['hold']=function(_0x3a65a0,_0x280d14){const _0x565282=_0x382b65;logger['info'](_0x565282('0x38'),_0x3a65a0[_0x565282('0x1b')]);const _0x567ee3=holdValidation[_0x565282('0x13')](_0x3a65a0[_0x565282('0x1b')]);if(_0x567ee3['length']>0x0)return _0x280d14[_0x565282('0x29')](0x190)['json'](_0x567ee3);const _0x2e7be0=_0x3a65a0[_0x565282('0x1b')][_0x565282('0x2e')],_0xbe249c=_0x3a65a0[_0x565282('0x1b')]['sessionId'];return getAgent(_0x2e7be0)[_0x565282('0x11')](function(_0x475928){const _0x2d017b=_0x565282;return logger[_0x2d017b('0x1c')](_0x2d017b('0x20'),_0x475928['name']),emit(util[_0x2d017b('0x3a')](_0x2d017b('0x2b'),_0x475928['name']),_0x2d017b('0x2'),{'sessionId':_0xbe249c}),_0x280d14[_0x2d017b('0x29')](0xc8)[_0x2d017b('0x17')]({'error':![],'message':'hold\x20executed!'});})[_0x565282('0x16')](handleError(_0x280d14));},exports['unhold']=function(_0x459832,_0x25b696){const _0xa5f227=_0x382b65;logger[_0xa5f227('0x1c')](_0xa5f227('0x12'),_0x459832[_0xa5f227('0x1b')]);const _0x2fc9fe=unholdValidation[_0xa5f227('0x13')](_0x459832[_0xa5f227('0x1b')]);if(_0x2fc9fe[_0xa5f227('0x33')]>0x0)return _0x25b696[_0xa5f227('0x29')](0x190)[_0xa5f227('0x17')](_0x2fc9fe);const _0x918484=_0x459832[_0xa5f227('0x1b')]['userId'],_0x5bc59d=_0x459832[_0xa5f227('0x1b')][_0xa5f227('0x39')];return getAgent(_0x918484)['then'](function(_0x3bc513){const _0x4f5bfe=_0xa5f227;return logger[_0x4f5bfe('0x1c')]('entityFound:',_0x3bc513[_0x4f5bfe('0x14')]),emit(util[_0x4f5bfe('0x3a')](_0x4f5bfe('0x2b'),_0x3bc513[_0x4f5bfe('0x14')]),_0x4f5bfe('0x5'),{'sessionId':_0x5bc59d}),_0x25b696[_0x4f5bfe('0x29')](0xc8)[_0x4f5bfe('0x17')]({'error':![],'message':_0x4f5bfe('0x2c')});})[_0xa5f227('0x16')](handleError(_0x25b696));},exports['calls']=function(_0x296842,_0x11e87f){const _0x3efe23=_0x382b65;logger[_0x3efe23('0x1c')](_0x3efe23('0x2f'),_0x11e87f[_0x3efe23('0x1b')]);const _0x514e98=callsValidation[_0x3efe23('0x13')](_0x296842['body']);if(_0x514e98[_0x3efe23('0x33')]>0x0)return _0x11e87f[_0x3efe23('0x29')](0x190)[_0x3efe23('0x17')](_0x514e98);const _0x4aa0d1=_0x296842[_0x3efe23('0x1b')]['userId'],_0x558188=respondWithRpcPromise(_0x3efe23('0x41')),_0x5542c4=getAgent(_0x4aa0d1);return Promise[_0x3efe23('0xc')]([_0x558188,_0x5542c4])['then'](function(_0x3a0da8){const _0x33e02d=_0x3efe23,_0x5c6e1d=_0x3a0da8[0x0],_0x49d8b7=_0x3a0da8[0x1],_0x8fe030=_[_0x33e02d('0x7')](_0x5c6e1d[_0x33e02d('0x3c')],function(_0x4b92a7){const _0x107e57=_0x33e02d;return _0x4b92a7[_0x107e57('0x32')]==_0x49d8b7['id'];});return _0x11e87f['status'](0xc8)['json']({'count':_0x8fe030['length'],'rows':_0x8fe030});})['catch'](handleError(_0x11e87f));},exports['conference']=function(_0x4eef95,_0x45b81e){const _0x833991=_0x382b65;logger[_0x833991('0x1c')](_0x833991('0x8'),_0x4eef95[_0x833991('0x1b')]);const _0x39458d=conferenceValidation[_0x833991('0x13')](_0x4eef95[_0x833991('0x1b')]);if(_0x39458d['length']>0x0)return _0x45b81e[_0x833991('0x29')](0x190)[_0x833991('0x17')](_0x39458d);const _0x3e03d5=_0x4eef95[_0x833991('0x1b')][_0x833991('0x2e')];return getAgent(_0x3e03d5)[_0x833991('0x11')](function(_0x4d4429){const _0x2de2c5=_0x833991;return logger[_0x2de2c5('0x1c')](_0x2de2c5('0x20'),_0x4d4429[_0x2de2c5('0x14')]),emit(util[_0x2de2c5('0x3a')](_0x2de2c5('0x2b'),_0x4d4429[_0x2de2c5('0x14')]),'webbar:conference'),_0x45b81e[_0x2de2c5('0x29')](0xc8)[_0x2de2c5('0x17')]({'error':![],'message':_0x2de2c5('0x18')});})[_0x833991('0x16')](handleError(_0x45b81e));},exports[_0x382b65('0x3')]=function(_0x4166fa,_0x3e611f){const _0x1e8972=_0x382b65;logger[_0x1e8972('0x1c')](_0x1e8972('0x1f'),_0x4166fa[_0x1e8972('0x1b')]);const _0x29fa80=transferValidation[_0x1e8972('0x13')](_0x4166fa[_0x1e8972('0x1b')]);if(_0x29fa80[_0x1e8972('0x33')]>0x0)return _0x3e611f[_0x1e8972('0x29')](0x190)[_0x1e8972('0x17')](_0x29fa80);const _0x5abb5f=_0x4166fa[_0x1e8972('0x1b')]['userId'],_0x4ee7f6=_0x4166fa['body'][_0x1e8972('0x39')],_0x55fc2d=_0x4166fa[_0x1e8972('0x1b')]['transferNumber'];return getAgent(_0x5abb5f)[_0x1e8972('0x11')](function(_0x55b54a){const _0x165f27=_0x1e8972;return logger[_0x165f27('0x1c')]('entityFound:',_0x55b54a[_0x165f27('0x14')]),emit(util[_0x165f27('0x3a')](_0x165f27('0x2b'),_0x55b54a[_0x165f27('0x14')]),_0x165f27('0xe'),{'sessionId':_0x4ee7f6,'transferNumber':_0x55fc2d}),_0x3e611f[_0x165f27('0x29')](0xc8)['json']({'error':![],'message':_0x165f27('0x37')});})[_0x1e8972('0x16')](handleError(_0x3e611f));}; \ No newline at end of file +const a935_0x41c1=['userId','conference\x20fired:','entityFound:','handleError:','callNumber\x20is\x20required','json','webbar:hangup','webbar:originate','http','webbar:unhold','transferNumber','body','sessionId\x20is\x20required','hangup\x20executed!','callerId','webbar:transfer','catch','log','calls','filter','emit','NotFound','callNumber','error','hangup\x20fired:','transfer','../../rediscache','webbar:hold','../../mysqldb','answer','validate','stack','format','send','originate\x20executed!','unhold\x20fired:','conference','result','webbar:answer','transferNumber\x20is\x20required','transfer\x20fired:','string','name','length','originate','UserId','transfer\x20executed!','rows','lodash','info','User','user:%s','callbackUrl','originate\x20fired:','VoiceChannels','util','sessionId','request','then','webbarapi','hold\x20executed!','status','message','number','hold\x20fired:','answer\x20executed!','unhold\x20executed!','answer\x20fired:','findOne','code','jayson/promise','../../config/logger','userId\x20is\x20required'];(function(_0x4c304f,_0x5e4adb){const _0x41c1cf=function(_0x56728c){while(--_0x56728c){_0x4c304f['push'](_0x4c304f['shift']());}};_0x41c1cf(++_0x5e4adb);}(a935_0x41c1,0x131));const a935_0x5672=function(_0x4c304f,_0x5e4adb){_0x4c304f=_0x4c304f-0xd2;let _0x41c1cf=a935_0x41c1[_0x4c304f];return _0x41c1cf;};const a935_0x3d4323=a935_0x5672;'use strict';const _=require(a935_0x3d4323(0xf5)),{db}=require(a935_0x3d4323(0xe1)),util=require(a935_0x3d4323(0xfc)),jayson=require(a935_0x3d4323(0x10b)),amiClient=jayson['client'][a935_0x3d4323(0x116)]({'port':0x232a}),logger=require(a935_0x3d4323(0x10c))(a935_0x3d4323(0x100)),{getSocket}=require(a935_0x3d4323(0xdf)),io=getSocket(),Schema=require(a935_0x3d4323(0xe3)),originateValidation=new Schema({'userId':{'type':a935_0x3d4323(0x104),'required':[!![],a935_0x3d4323(0x10d)]},'callNumber':{'type':a935_0x3d4323(0xee),'required':[!![],a935_0x3d4323(0x112)]},'callerId':{'type':a935_0x3d4323(0xee)},'callbackUrl':{'type':a935_0x3d4323(0xee)}}),hangupValidation=new Schema({'userId':{'type':a935_0x3d4323(0x104),'required':[!![],a935_0x3d4323(0x10d)]},'sessionId':{'type':a935_0x3d4323(0xee),'required':![]}}),answerValidation=new Schema({'userId':{'type':a935_0x3d4323(0x104),'required':[!![],a935_0x3d4323(0x10d)]},'sessionId':{'type':'string','required':![]}}),transferValidation=new Schema({'userId':{'type':a935_0x3d4323(0x104),'required':[!![],a935_0x3d4323(0x10d)]},'sessionId':{'type':a935_0x3d4323(0xee),'required':[!![],a935_0x3d4323(0x11a)]},'transferNumber':{'type':a935_0x3d4323(0xee),'required':[!![],a935_0x3d4323(0xec)]}}),holdValidation=new Schema({'userId':{'type':a935_0x3d4323(0x104),'required':[!![],a935_0x3d4323(0x10d)]},'sessionId':{'type':'string','required':![]}}),unholdValidation=new Schema({'userId':{'type':a935_0x3d4323(0x104),'required':[!![],a935_0x3d4323(0x10d)]},'sessionId':{'type':'string','required':![]}}),callsValidation=new Schema({'userId':{'type':a935_0x3d4323(0x104),'required':[!![],a935_0x3d4323(0x10d)]}}),conferenceValidation=new Schema({'userId':{'type':a935_0x3d4323(0x104),'required':[!![],a935_0x3d4323(0x10d)]}});function emit(_0x5f3630,_0x2706a1,_0x37dcd1){const _0x184b6a=a935_0x3d4323;logger['info'](_0x5f3630,_0x2706a1,JSON['stringify'](_0x37dcd1)),io['to'](_0x5f3630)[_0x184b6a(0xd9)](_0x2706a1,_0x37dcd1);}function handleError(_0x44f341){return function(_0x2efa06){const _0x1dcdf1=a935_0x5672;console[_0x1dcdf1(0xd6)](_0x1dcdf1(0x111),_0x2efa06,_0x2efa06 instanceof RangeError),logger['error'](_0x2efa06[_0x1dcdf1(0xe4)]),_0x2efa06 instanceof RangeError?(_0x2efa06[_0x1dcdf1(0xef)]&&delete _0x2efa06[_0x1dcdf1(0xef)],_0x44f341[_0x1dcdf1(0x102)](0x194)[_0x1dcdf1(0xe6)](_0x2efa06)):(_0x2efa06[_0x1dcdf1(0xef)]&&delete _0x2efa06['name'],_0x44f341[_0x1dcdf1(0x102)](0x1f4)['send'](_0x2efa06));};}function checkError(){return function(_0x22d521){const _0x45a1c3=a935_0x5672;if(!_0x22d521)throw new RangeError(_0x45a1c3(0xda));return _0x22d521;};}function respondWithRpcPromise(_0x11b41e,_0x4ad89a){return new Promise(function(_0x47834c,_0x245e03){const _0x1eb316=a935_0x5672,_0x376db0=amiClient;return _0x376db0[_0x1eb316(0xfe)](_0x11b41e,_0x4ad89a)[_0x1eb316(0xff)](function(_0x2a2a70){const _0x353e8c=_0x1eb316;if(_0x2a2a70[_0x353e8c(0xdc)]){if(_0x2a2a70[_0x353e8c(0xdc)][_0x353e8c(0x10a)]===0x1f4)return _0x245e03(_0x2a2a70[_0x353e8c(0xdc)]['message']);return _0x47834c(_0x2a2a70[_0x353e8c(0xdc)][_0x353e8c(0x103)]);}else _0x47834c(_0x2a2a70[_0x353e8c(0xea)]);})[_0x1eb316(0xd5)](function(_0x4c2b77){_0x245e03(_0x4c2b77);});});}function getAgent(_0x5f45c9){const _0x450ca7=a935_0x3d4323;return db[_0x450ca7(0xf7)][_0x450ca7(0x109)]({'where':{'id':_0x5f45c9,'role':'agent'}})[_0x450ca7(0xff)](checkError());}exports[a935_0x3d4323(0xf1)]=function(_0x5437b1,_0x504370){const _0x48de00=a935_0x3d4323;logger[_0x48de00(0xf6)](_0x48de00(0xfa),_0x5437b1[_0x48de00(0x119)]);const _0x5c50cb=originateValidation[_0x48de00(0xe3)](_0x5437b1[_0x48de00(0x119)]);if(_0x5c50cb[_0x48de00(0xf0)]>0x0)return _0x504370[_0x48de00(0x102)](0x190)[_0x48de00(0x113)](_0x5c50cb);const _0x21eadc=_0x5437b1[_0x48de00(0x119)]['userId'],_0x519d59=_0x5437b1[_0x48de00(0x119)][_0x48de00(0xdb)],_0x59088f=_0x5437b1[_0x48de00(0x119)][_0x48de00(0xd3)],_0x4e8302=_0x5437b1[_0x48de00(0x119)][_0x48de00(0xf9)];return getAgent(_0x21eadc)[_0x48de00(0xff)](function(_0x2c0a6c){const _0x5199f3=_0x48de00;return logger['info'](_0x5199f3(0x110),_0x2c0a6c[_0x5199f3(0xef)]),emit(util[_0x5199f3(0xe5)](_0x5199f3(0xf8),_0x2c0a6c[_0x5199f3(0xef)]),_0x5199f3(0x115),{'callNumber':_0x519d59,'callerId':_0x59088f,'callbackUrl':_0x4e8302}),_0x504370[_0x5199f3(0x102)](0xc8)['json']({'error':![],'message':_0x5199f3(0xe7)});})['catch'](handleError(_0x504370));},exports['hangup']=function(_0x1090cb,_0x545d82){const _0xefb4ab=a935_0x3d4323;logger[_0xefb4ab(0xf6)](_0xefb4ab(0xdd),_0x1090cb[_0xefb4ab(0x119)]);const _0x3e43d=hangupValidation['validate'](_0x1090cb[_0xefb4ab(0x119)]);if(_0x3e43d[_0xefb4ab(0xf0)]>0x0)return _0x545d82[_0xefb4ab(0x102)](0x190)[_0xefb4ab(0x113)](_0x3e43d);const _0x42e37b=_0x1090cb[_0xefb4ab(0x119)][_0xefb4ab(0x10e)],_0x1584e7=_0x1090cb['body'][_0xefb4ab(0xfd)];return getAgent(_0x42e37b)[_0xefb4ab(0xff)](function(_0xf58ab0){const _0x5d0b70=_0xefb4ab;return logger[_0x5d0b70(0xf6)](_0x5d0b70(0x110),_0xf58ab0[_0x5d0b70(0xef)]),emit(util[_0x5d0b70(0xe5)](_0x5d0b70(0xf8),_0xf58ab0[_0x5d0b70(0xef)]),_0x5d0b70(0x114),{'sessionId':_0x1584e7}),_0x545d82['status'](0xc8)[_0x5d0b70(0x113)]({'error':![],'message':_0x5d0b70(0xd2)});})[_0xefb4ab(0xd5)](handleError(_0x545d82));},exports[a935_0x3d4323(0xe2)]=function(_0x584f7b,_0x7e442){const _0x1da050=a935_0x3d4323;logger['info'](_0x1da050(0x108),_0x584f7b[_0x1da050(0x119)]);const _0x3c7b21=answerValidation['validate'](_0x584f7b['body']);if(_0x3c7b21[_0x1da050(0xf0)]>0x0)return _0x7e442[_0x1da050(0x102)](0x190)[_0x1da050(0x113)](_0x3c7b21);const _0x15c914=_0x584f7b['body'][_0x1da050(0x10e)],_0x4c5558=_0x584f7b[_0x1da050(0x119)][_0x1da050(0xfd)];return getAgent(_0x15c914)[_0x1da050(0xff)](function(_0x3b71a1){const _0x1ef2f1=_0x1da050;return logger[_0x1ef2f1(0xf6)](_0x1ef2f1(0x110),_0x3b71a1[_0x1ef2f1(0xef)]),emit(util['format'](_0x1ef2f1(0xf8),_0x3b71a1[_0x1ef2f1(0xef)]),_0x1ef2f1(0xeb),{'sessionId':_0x4c5558}),_0x7e442['status'](0xc8)[_0x1ef2f1(0x113)]({'error':![],'message':_0x1ef2f1(0x106)});})['catch'](handleError(_0x7e442));},exports['hold']=function(_0xcb9f71,_0x459651){const _0x536e05=a935_0x3d4323;logger['info'](_0x536e05(0x105),_0xcb9f71[_0x536e05(0x119)]);const _0x25cbcf=holdValidation[_0x536e05(0xe3)](_0xcb9f71[_0x536e05(0x119)]);if(_0x25cbcf[_0x536e05(0xf0)]>0x0)return _0x459651['status'](0x190)[_0x536e05(0x113)](_0x25cbcf);const _0x1663dc=_0xcb9f71[_0x536e05(0x119)][_0x536e05(0x10e)],_0x56851f=_0xcb9f71[_0x536e05(0x119)][_0x536e05(0xfd)];return getAgent(_0x1663dc)['then'](function(_0xfb68ea){const _0x582f31=_0x536e05;return logger[_0x582f31(0xf6)](_0x582f31(0x110),_0xfb68ea[_0x582f31(0xef)]),emit(util['format'](_0x582f31(0xf8),_0xfb68ea['name']),_0x582f31(0xe0),{'sessionId':_0x56851f}),_0x459651[_0x582f31(0x102)](0xc8)[_0x582f31(0x113)]({'error':![],'message':_0x582f31(0x101)});})[_0x536e05(0xd5)](handleError(_0x459651));},exports['unhold']=function(_0x3adcd5,_0xbd438e){const _0xcf94c7=a935_0x3d4323;logger[_0xcf94c7(0xf6)](_0xcf94c7(0xe8),_0x3adcd5['body']);const _0x4f497a=unholdValidation[_0xcf94c7(0xe3)](_0x3adcd5[_0xcf94c7(0x119)]);if(_0x4f497a[_0xcf94c7(0xf0)]>0x0)return _0xbd438e[_0xcf94c7(0x102)](0x190)['json'](_0x4f497a);const _0x2ca471=_0x3adcd5['body'][_0xcf94c7(0x10e)],_0x4a4648=_0x3adcd5[_0xcf94c7(0x119)][_0xcf94c7(0xfd)];return getAgent(_0x2ca471)[_0xcf94c7(0xff)](function(_0x4d1627){const _0x4e5139=_0xcf94c7;return logger['info'](_0x4e5139(0x110),_0x4d1627[_0x4e5139(0xef)]),emit(util['format']('user:%s',_0x4d1627[_0x4e5139(0xef)]),_0x4e5139(0x117),{'sessionId':_0x4a4648}),_0xbd438e['status'](0xc8)['json']({'error':![],'message':_0x4e5139(0x107)});})[_0xcf94c7(0xd5)](handleError(_0xbd438e));},exports[a935_0x3d4323(0xd7)]=function(_0xf45c69,_0x55c488){const _0x3457a7=a935_0x3d4323;logger[_0x3457a7(0xf6)]('calls\x20fired:',_0x55c488[_0x3457a7(0x119)]);const _0x4801ca=callsValidation[_0x3457a7(0xe3)](_0xf45c69[_0x3457a7(0x119)]);if(_0x4801ca[_0x3457a7(0xf0)]>0x0)return _0x55c488['status'](0x190)['json'](_0x4801ca);const _0x3a4786=_0xf45c69[_0x3457a7(0x119)][_0x3457a7(0x10e)],_0x306992=respondWithRpcPromise(_0x3457a7(0xfb)),_0x9f339c=getAgent(_0x3a4786);return Promise['all']([_0x306992,_0x9f339c])[_0x3457a7(0xff)](function(_0x21ae2c){const _0x181e7f=_0x3457a7,_0xf0b5d0=_0x21ae2c[0x0],_0x2e78bb=_0x21ae2c[0x1],_0x1323b8=_[_0x181e7f(0xd8)](_0xf0b5d0[_0x181e7f(0xf4)],function(_0xd66b97){const _0x1ffce3=_0x181e7f;return _0xd66b97[_0x1ffce3(0xf2)]==_0x2e78bb['id'];});return _0x55c488[_0x181e7f(0x102)](0xc8)[_0x181e7f(0x113)]({'count':_0x1323b8[_0x181e7f(0xf0)],'rows':_0x1323b8});})[_0x3457a7(0xd5)](handleError(_0x55c488));},exports[a935_0x3d4323(0xe9)]=function(_0x76580f,_0x43d39c){const _0x149577=a935_0x3d4323;logger['info'](_0x149577(0x10f),_0x76580f[_0x149577(0x119)]);const _0x405ace=conferenceValidation[_0x149577(0xe3)](_0x76580f[_0x149577(0x119)]);if(_0x405ace[_0x149577(0xf0)]>0x0)return _0x43d39c['status'](0x190)[_0x149577(0x113)](_0x405ace);const _0x39c28b=_0x76580f[_0x149577(0x119)]['userId'];return getAgent(_0x39c28b)[_0x149577(0xff)](function(_0x53302e){const _0x4c4414=_0x149577;return logger[_0x4c4414(0xf6)](_0x4c4414(0x110),_0x53302e[_0x4c4414(0xef)]),emit(util['format']('user:%s',_0x53302e['name']),'webbar:conference'),_0x43d39c['status'](0xc8)[_0x4c4414(0x113)]({'error':![],'message':'conference\x20executed!'});})['catch'](handleError(_0x43d39c));},exports[a935_0x3d4323(0xde)]=function(_0x529d80,_0x41b563){const _0x3e3e9e=a935_0x3d4323;logger['info'](_0x3e3e9e(0xed),_0x529d80[_0x3e3e9e(0x119)]);const _0x4cff28=transferValidation[_0x3e3e9e(0xe3)](_0x529d80['body']);if(_0x4cff28['length']>0x0)return _0x41b563[_0x3e3e9e(0x102)](0x190)[_0x3e3e9e(0x113)](_0x4cff28);const _0x2ba2f6=_0x529d80[_0x3e3e9e(0x119)][_0x3e3e9e(0x10e)],_0x114fef=_0x529d80['body']['sessionId'],_0x21a74a=_0x529d80[_0x3e3e9e(0x119)][_0x3e3e9e(0x118)];return getAgent(_0x2ba2f6)[_0x3e3e9e(0xff)](function(_0x4d3523){const _0x1d1350=_0x3e3e9e;return logger['info'](_0x1d1350(0x110),_0x4d3523['name']),emit(util['format']('user:%s',_0x4d3523[_0x1d1350(0xef)]),_0x1d1350(0xd4),{'sessionId':_0x114fef,'transferNumber':_0x21a74a}),_0x41b563[_0x1d1350(0x102)](0xc8)[_0x1d1350(0x113)]({'error':![],'message':_0x1d1350(0xf3)});})[_0x3e3e9e(0xd5)](handleError(_0x41b563));}; \ No newline at end of file diff --git a/server/api/whatsappAccount/index.js b/server/api/whatsappAccount/index.js index ed736c0..3c8e8a9 100644 --- a/server/api/whatsappAccount/index.js +++ b/server/api/whatsappAccount/index.js @@ -1 +1 @@ -const a781_0x3568=['index','getAgents','addDisposition','express','/:id/canned_answers','create','show','/:id/send','removeAnswers','addAgents','removeAgents','destroy','/describe','/:id/notify','getDispositions','/:id/applications','removeDispositions','Router','delete','/:id','put','update','get','addAnswer','addApplications','isAuthenticated','exports','/:id/dispositions','post','./whatsappAccount.controller','/:id/users','notify'];(function(_0x293446,_0x3568f0){const _0x2bde5e=function(_0x2ef37c){while(--_0x2ef37c){_0x293446['push'](_0x293446['shift']());}};_0x2bde5e(++_0x3568f0);}(a781_0x3568,0xcd));const a781_0x2bde=function(_0x293446,_0x3568f0){_0x293446=_0x293446-0x0;let _0x2bde5e=a781_0x3568[_0x293446];return _0x2bde5e;};const _0x24f77e=a781_0x2bde;'use strict';const express=require(_0x24f77e('0x16')),router=express[_0x24f77e('0x4')](),auth=require('../../components/auth/service'),controller=require(_0x24f77e('0x10'));router[_0x24f77e('0x9')]('/',auth['isAuthenticated'](),controller[_0x24f77e('0x13')]),router[_0x24f77e('0x9')](_0x24f77e('0x1f'),auth[_0x24f77e('0xc')](),controller['describe']),router[_0x24f77e('0x9')](_0x24f77e('0x6'),auth['isAuthenticated'](),controller[_0x24f77e('0x19')]),router[_0x24f77e('0x9')](_0x24f77e('0xe'),auth[_0x24f77e('0xc')](),controller[_0x24f77e('0x1')]),router[_0x24f77e('0x9')](_0x24f77e('0x17'),auth[_0x24f77e('0xc')](),controller['getAnswers']),router['get'](_0x24f77e('0x11'),auth[_0x24f77e('0xc')](),controller[_0x24f77e('0x14')]),router[_0x24f77e('0x9')](_0x24f77e('0x2'),auth[_0x24f77e('0xc')](),controller['getApplications']),router[_0x24f77e('0xf')]('/',auth[_0x24f77e('0xc')](),controller[_0x24f77e('0x18')]),router['post'](_0x24f77e('0xe'),auth[_0x24f77e('0xc')](),controller[_0x24f77e('0x15')]),router[_0x24f77e('0xf')](_0x24f77e('0x17'),auth[_0x24f77e('0xc')](),controller[_0x24f77e('0xa')]),router['post']('/:id/users',auth['isAuthenticated'](),controller[_0x24f77e('0x1c')]),router['post']('/:id/applications',auth['isAuthenticated'](),controller[_0x24f77e('0xb')]),router['post'](_0x24f77e('0x0'),controller[_0x24f77e('0x12')]),router[_0x24f77e('0xf')](_0x24f77e('0x1a'),auth[_0x24f77e('0xc')](),controller['send']),router[_0x24f77e('0x7')](_0x24f77e('0x6'),auth[_0x24f77e('0xc')](),controller[_0x24f77e('0x8')]),router[_0x24f77e('0x5')](_0x24f77e('0x6'),auth[_0x24f77e('0xc')](),controller[_0x24f77e('0x1e')]),router[_0x24f77e('0x5')](_0x24f77e('0xe'),auth[_0x24f77e('0xc')](),controller[_0x24f77e('0x3')]),router[_0x24f77e('0x5')](_0x24f77e('0x17'),auth[_0x24f77e('0xc')](),controller[_0x24f77e('0x1b')]),router[_0x24f77e('0x5')](_0x24f77e('0x11'),auth[_0x24f77e('0xc')](),controller[_0x24f77e('0x1d')]),module[_0x24f77e('0xd')]=router; \ No newline at end of file +const a936_0x12d7=['/:id/users','/:id/send','isAuthenticated','removeAgents','/:id','getApplications','addApplications','create','exports','/describe','Router','/:id/dispositions','notify','/:id/canned_answers','addDisposition','addAnswer','removeAnswers','post','express','./whatsappAccount.controller','getAnswers','destroy','addAgents','removeDispositions','delete','../../components/auth/service','update','/:id/applications','get','put'];(function(_0x10d806,_0x3d5673){const _0x12d797=function(_0x9afe72){while(--_0x9afe72){_0x10d806['push'](_0x10d806['shift']());}};_0x12d797(++_0x3d5673);}(a936_0x12d7,0x115));const a936_0x9afe=function(_0x10d806,_0x3d5673){_0x10d806=_0x10d806-0x1e2;let _0x12d797=a936_0x12d7[_0x10d806];return _0x12d797;};const a936_0x2785fb=a936_0x9afe;'use strict';const express=require(a936_0x2785fb(0x1ed)),router=express[a936_0x2785fb(0x1e5)](),auth=require(a936_0x2785fb(0x1f4)),controller=require(a936_0x2785fb(0x1ee));router['get']('/',auth[a936_0x2785fb(0x1fb)](),controller['index']),router[a936_0x2785fb(0x1f7)](a936_0x2785fb(0x1e4),auth['isAuthenticated'](),controller['describe']),router['get'](a936_0x2785fb(0x1fd),auth['isAuthenticated'](),controller['show']),router[a936_0x2785fb(0x1f7)](a936_0x2785fb(0x1e6),auth['isAuthenticated'](),controller['getDispositions']),router[a936_0x2785fb(0x1f7)](a936_0x2785fb(0x1e8),auth[a936_0x2785fb(0x1fb)](),controller[a936_0x2785fb(0x1ef)]),router[a936_0x2785fb(0x1f7)](a936_0x2785fb(0x1f9),auth[a936_0x2785fb(0x1fb)](),controller['getAgents']),router[a936_0x2785fb(0x1f7)](a936_0x2785fb(0x1f6),auth[a936_0x2785fb(0x1fb)](),controller[a936_0x2785fb(0x1fe)]),router[a936_0x2785fb(0x1ec)]('/',auth[a936_0x2785fb(0x1fb)](),controller[a936_0x2785fb(0x1e2)]),router[a936_0x2785fb(0x1ec)](a936_0x2785fb(0x1e6),auth[a936_0x2785fb(0x1fb)](),controller[a936_0x2785fb(0x1e9)]),router['post']('/:id/canned_answers',auth[a936_0x2785fb(0x1fb)](),controller[a936_0x2785fb(0x1ea)]),router[a936_0x2785fb(0x1ec)]('/:id/users',auth[a936_0x2785fb(0x1fb)](),controller[a936_0x2785fb(0x1f1)]),router[a936_0x2785fb(0x1ec)]('/:id/applications',auth[a936_0x2785fb(0x1fb)](),controller[a936_0x2785fb(0x1ff)]),router[a936_0x2785fb(0x1ec)]('/:id/notify',controller[a936_0x2785fb(0x1e7)]),router[a936_0x2785fb(0x1ec)](a936_0x2785fb(0x1fa),auth[a936_0x2785fb(0x1fb)](),controller['send']),router[a936_0x2785fb(0x1f8)](a936_0x2785fb(0x1fd),auth[a936_0x2785fb(0x1fb)](),controller[a936_0x2785fb(0x1f5)]),router[a936_0x2785fb(0x1f3)](a936_0x2785fb(0x1fd),auth['isAuthenticated'](),controller[a936_0x2785fb(0x1f0)]),router['delete'](a936_0x2785fb(0x1e6),auth[a936_0x2785fb(0x1fb)](),controller[a936_0x2785fb(0x1f2)]),router[a936_0x2785fb(0x1f3)](a936_0x2785fb(0x1e8),auth[a936_0x2785fb(0x1fb)](),controller[a936_0x2785fb(0x1eb)]),router[a936_0x2785fb(0x1f3)](a936_0x2785fb(0x1f9),auth[a936_0x2785fb(0x1fb)](),controller[a936_0x2785fb(0x1fc)]),module[a936_0x2785fb(0x1e3)]=router; \ No newline at end of file diff --git a/server/api/whatsappAccount/whatsappAccount.attributes.js b/server/api/whatsappAccount/whatsappAccount.attributes.js index 7d4186d..a8accce 100644 --- a/server/api/whatsappAccount/whatsappAccount.attributes.js +++ b/server/api/whatsappAccount/whatsappAccount.attributes.js @@ -1 +1 @@ -const a782_0x23ee=['exports','sequelize','mandatoryDisposition','STRING','INTEGER','generate','twilio','Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled','TEXT','setDataValue','Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','mandatoryDispositionPauseId','randomstring','BOOLEAN'];(function(_0x5b3d14,_0x23ee86){const _0x41bfe8=function(_0x20e94e){while(--_0x20e94e){_0x5b3d14['push'](_0x5b3d14['shift']());}};_0x41bfe8(++_0x23ee86);}(a782_0x23ee,0x195));const a782_0x41bf=function(_0x5b3d14,_0x23ee86){_0x5b3d14=_0x5b3d14-0x0;let _0x41bfe8=a782_0x23ee[_0x5b3d14];return _0x41bfe8;};const _0x860c7c=a782_0x41bf;'use strict';const Sequelize=require(_0x860c7c('0x2')),rs=require(_0x860c7c('0xd'));module[_0x860c7c('0x1')]={'name':{'type':Sequelize[_0x860c7c('0x4')],'unique':'name','allowNull':![]},'key':{'type':Sequelize['STRING'],'allowNull':![]},'remote':{'type':Sequelize[_0x860c7c('0x4')],'allowNull':![]},'token':{'type':Sequelize[_0x860c7c('0x4')],'defaultValue':function(){const _0x3876d4=_0x860c7c;return rs[_0x3876d4('0x6')]();}},'phone':{'type':Sequelize['STRING']},'type':{'type':Sequelize['ENUM'](_0x860c7c('0x7'))},'accountSid':{'type':Sequelize['STRING']},'authToken':{'type':Sequelize[_0x860c7c('0x4')]},'notificationTemplate':{'type':Sequelize[_0x860c7c('0x9')],'defaultValue':function(){return'Account:\x20{{account.name}}
    {{#queue}}Queue:\x20{{queue.name}}
    {{/queue}}From\x20:\x20{{from}}';}},'notificationSound':{'type':Sequelize[_0x860c7c('0x0')],'defaultValue':![]},'notificationShake':{'type':Sequelize[_0x860c7c('0x0')],'defaultValue':![]},'waitForTheAssignedAgent':{'type':Sequelize[_0x860c7c('0x5')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'queueTransfer':{'type':Sequelize[_0x860c7c('0x0')],'defaultValue':![]},'queueTransferTimeout':{'type':Sequelize['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':Sequelize[_0x860c7c('0x0')],'defaultValue':![]},'agentTransferTimeout':{'type':Sequelize[_0x860c7c('0x5')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'mandatoryDispositionPauseId':{'type':Sequelize['INTEGER'],'comment':_0x860c7c('0x8')},'mandatoryDisposition':{'type':Sequelize['BOOLEAN'],'defaultValue':![],'comment':_0x860c7c('0xb'),'set':function(_0x20e94e){const _0x1e97a0=_0x860c7c;!_0x20e94e&&this[_0x1e97a0('0xa')](_0x1e97a0('0xc'),null),this['setDataValue'](_0x1e97a0('0x3'),_0x20e94e);}},'description':{'type':Sequelize[_0x860c7c('0x4')]}}; \ No newline at end of file +const a937_0x375e=['ENUM','exports','BOOLEAN','Account:\x20{{account.name}}
    {{#queue}}Queue:\x20{{queue.name}}
    {{/queue}}From\x20:\x20{{from}}','mandatoryDisposition','Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled','STRING','INTEGER','name','sequelize','setDataValue'];(function(_0x33c437,_0x15416f){const _0x375e87=function(_0x3c09f0){while(--_0x3c09f0){_0x33c437['push'](_0x33c437['shift']());}};_0x375e87(++_0x15416f);}(a937_0x375e,0x78));const a937_0x3c09=function(_0x33c437,_0x15416f){_0x33c437=_0x33c437-0x1b5;let _0x375e87=a937_0x375e[_0x33c437];return _0x375e87;};const a937_0x3d2203=a937_0x3c09;'use strict';const {DataTypes}=require(a937_0x3d2203(0x1bf)),rs=require('randomstring'),attributes={'name':{'type':DataTypes[a937_0x3d2203(0x1bc)],'unique':a937_0x3d2203(0x1be),'allowNull':![]},'key':{'type':DataTypes['STRING'],'allowNull':![]},'remote':{'type':DataTypes[a937_0x3d2203(0x1bc)],'allowNull':![]},'token':{'type':DataTypes['STRING'],'defaultValue':function(){return rs['generate']();}},'phone':{'type':DataTypes[a937_0x3d2203(0x1bc)]},'type':{'type':DataTypes[a937_0x3d2203(0x1b6)]('twilio')},'accountSid':{'type':DataTypes[a937_0x3d2203(0x1bc)]},'authToken':{'type':DataTypes[a937_0x3d2203(0x1bc)]},'notificationTemplate':{'type':DataTypes['TEXT'],'defaultValue':function(){const _0x2948da=a937_0x3d2203;return _0x2948da(0x1b9);}},'notificationSound':{'type':DataTypes[a937_0x3d2203(0x1b8)],'defaultValue':![]},'notificationShake':{'type':DataTypes[a937_0x3d2203(0x1b8)],'defaultValue':![]},'waitForTheAssignedAgent':{'type':DataTypes['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'queueTransfer':{'type':DataTypes['BOOLEAN'],'defaultValue':![]},'queueTransferTimeout':{'type':DataTypes[a937_0x3d2203(0x1bd)],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':DataTypes[a937_0x3d2203(0x1b8)],'defaultValue':![]},'agentTransferTimeout':{'type':DataTypes[a937_0x3d2203(0x1bd)],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'mandatoryDispositionPauseId':{'type':DataTypes[a937_0x3d2203(0x1bd)],'comment':a937_0x3d2203(0x1bb)},'mandatoryDisposition':{'type':DataTypes[a937_0x3d2203(0x1b8)],'defaultValue':![],'comment':'Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','set':function(_0xcc694f){const _0x512c5f=a937_0x3d2203;!_0xcc694f&&this['setDataValue']('mandatoryDispositionPauseId',null),this[_0x512c5f(0x1b5)](_0x512c5f(0x1ba),_0xcc694f);}},'description':{'type':DataTypes['STRING']}};module[a937_0x3d2203(0x1b7)]['attributes']=attributes; \ No newline at end of file diff --git a/server/api/whatsappAccount/whatsappAccount.controller.js b/server/api/whatsappAccount/whatsappAccount.controller.js index 812e52f..b27d4e6 100644 --- a/server/api/whatsappAccount/whatsappAccount.controller.js +++ b/server/api/whatsappAccount/whatsappAccount.controller.js @@ -1 +1 @@ -const a783_0x39f4=['Pause','isArray','List','sequelize','addDisposition','query','findOne','stack','rawAttributes','CompanyId','fields','keys','whatsapp:','from','WhatsappApplication','WhatsappAccount,\x20%s,\x20%s,\x20%s,\x20%s','undefined','orderBy','WhatsappAccountId','replace','update','../../rediscache','order','info','client','asc','CmList','receiveMessage','autoAssociation','Contacts','body\x20is\x20mandatory\x20and\x20not\x20empty','interaction','updatedAt','pick','unmanaged','options','Start','CannedAnswer','bulkCreate','name','entity\x20found','filter','rows','applications','user','offset','transaction','../../mysqldb','where','limit','addAgents','twilio','UserId','include','merge','getAgents','no\x20available\x20attributes','includeAll','mandatoryDispositionPause','account','code','set','emit','removeAgents','list','error','nolimit','count','UserProfileSection','type','filters','WhatsappAccount,\x20%s,\x20%s','request','like','getApplications','params','isNil','CmContact','length','map','defaults','key','WhatsappAccount,\x20%s,\x20%s,\x20%s','message','show','out','from\x20is\x20mandatory','mapKey','json','WhatsappInteraction','../../config/logger','Body','autoclose','Content-Type','model','create','close','agent','http','status','getDispositions','userWhatsappAccount:save','dataValues','ListId','get','sort','MessageSid','findAndCountAll','Messages','body','User','debug','WhatsappMessage','whatsapp','ContactId','catch','intersection','sendStatus','send','waitForTheAssignedAgent','addAnswer','stringify','../../components/parsers/qs','\x0a','Disposition','omit','created','to\x20is\x20mandatory','Unable\x20to\x20retrieve\x20the\x20current\x20user','userWhatsappAccount:remove','WhatsappAccounts','mapKey\x20invalid,\x20please\x20use\x20one\x20of\x20these:\x20','unshift','Applications','destroy','*,*,*,*','difference','then','notify','mapKey\x20is\x20mandatory,\x20please\x20use\x20one\x20of\x20these:\x20','messageId','lodash','removeAnswers','DESC','attributes','WhatsappAccount','removeDispositions','text/xml','end','push','Content-Range','fieldName','request\x20sent','addApplications','describe','priority','ids','startRouting'];(function(_0x13431a,_0x39f438){const _0x24ddae=function(_0x29d619){while(--_0x29d619){_0x13431a['push'](_0x13431a['shift']());}};_0x24ddae(++_0x39f438);}(a783_0x39f4,0xc9));const a783_0x24dd=function(_0x13431a,_0x39f438){_0x13431a=_0x13431a-0x0;let _0x24ddae=a783_0x39f4[_0x13431a];return _0x24ddae;};const _0x3b7760=a783_0x24dd;'use strict';const _=require(_0x3b7760('0x62')),qs=require(_0x3b7760('0x4f')),logger=require(_0x3b7760('0x2f'))('api'),{getSocket}=require(_0x3b7760('0x88')),socket=getSocket(),db=require(_0x3b7760('0x4'))['db'],{Op,ValidationError}=require(_0x3b7760('0x76'));require('./whatsappAccount.socket')['register'](socket);const jayson=require('jayson/promise'),client=jayson[_0x3b7760('0x8b')][_0x3b7760('0x37')]({'port':0x232c});function respondWithRpcPromise(_0x29d619,_0x4d6c55,_0x4009fd,_0x5bb29c){return new Promise(function(_0x474c23,_0x3c27c5){const _0x184864=a783_0x24dd,_0x418cae=_0x5bb29c||client;return _0x418cae[_0x184864('0x1d')](_0x29d619,_0x4009fd)[_0x184864('0x5e')](function(_0x42d1fd){const _0x2fd1d0=_0x184864;logger[_0x2fd1d0('0x8a')](_0x2fd1d0('0x1c'),_0x4d6c55,_0x2fd1d0('0x6d')),logger['debug'](_0x2fd1d0('0x27'),_0x4d6c55,'request\x20sent',JSON[_0x2fd1d0('0x4e')](_0x42d1fd));if(_0x42d1fd[_0x2fd1d0('0x16')]){if(_0x42d1fd[_0x2fd1d0('0x16')][_0x2fd1d0('0x11')]===0x1f4)return logger[_0x2fd1d0('0x16')](_0x2fd1d0('0x1c'),_0x4d6c55,_0x42d1fd[_0x2fd1d0('0x16')]['message']),_0x3c27c5(_0x42d1fd[_0x2fd1d0('0x16')][_0x2fd1d0('0x28')]);return logger['error'](_0x2fd1d0('0x1c'),_0x4d6c55,_0x42d1fd['error']['message']),_0x474c23(_0x42d1fd[_0x2fd1d0('0x16')][_0x2fd1d0('0x28')]);}else logger[_0x2fd1d0('0x8a')](_0x2fd1d0('0x1c'),_0x4d6c55,'request\x20sent'),_0x474c23(_0x42d1fd['result'][_0x2fd1d0('0x28')]);})[_0x184864('0x48')](function(_0xc928f1){const _0x30f528=_0x184864;logger[_0x30f528('0x16')](_0x30f528('0x1c'),_0x4d6c55,_0xc928f1),_0x3c27c5(_0xc928f1);});});}function respondWithStatusCode(_0x400d10,_0x415339){return _0x415339=_0x415339||0xcc,function(_0x4c215b){const _0x5d3761=a783_0x24dd;if(_0x4c215b)return _0x400d10['sendStatus'](_0x415339);return _0x400d10['status'](_0x415339)[_0x5d3761('0x69')]();};}function respondWithResult(_0x85926b,_0x13d120){return _0x13d120=_0x13d120||0xc8,function(_0x1db0c5){const _0x28aac7=a783_0x24dd;if(_0x1db0c5)return _0x85926b[_0x28aac7('0x38')](_0x13d120)[_0x28aac7('0x2d')](_0x1db0c5);};}function respondWithFilteredResult(_0x4c217b,_0x1cd327){return function(_0x48ba11){const _0x4ad8e1=a783_0x24dd;if(_0x48ba11){const _0x532a46=_0x48ba11[_0x4ad8e1('0x18')],_0x1aaa09=_0x1cd327[_0x4ad8e1('0x2')];let _0x496083=_0x1cd327[_0x4ad8e1('0x2')]+_0x1cd327[_0x4ad8e1('0x6')],_0xce4b67;return _0x496083>=_0x532a46?(_0x496083=_0x532a46,_0xce4b67=0xc8):_0xce4b67=0xce,_0x4c217b[_0x4ad8e1('0x38')](_0xce4b67),_0x4c217b[_0x4ad8e1('0x12')](_0x4ad8e1('0x6b'),_0x1aaa09+'-'+_0x496083+'/'+_0x532a46)[_0x4ad8e1('0x2d')](_0x48ba11);}return null;};}function saveUpdates(_0x728faf){return function(_0x591a39){const _0x1e6cf7=a783_0x24dd;if(_0x591a39)return _0x591a39[_0x1e6cf7('0x87')](_0x728faf)['then'](function(_0x1c729d){return _0x1c729d;});return null;};}function removeEntity(_0x510f4f){return function(_0x5bd1e2){const _0x870cbd=a783_0x24dd;if(_0x5bd1e2)return _0x5bd1e2[_0x870cbd('0x5b')]()[_0x870cbd('0x5e')](function(){const _0x332595=_0x870cbd,_0x4fa6f3=_0x5bd1e2[_0x332595('0x3d')]({'plain':!![]}),_0x999e48=_0x332595('0x57');return db['UserProfileResource'][_0x332595('0x5b')]({'where':{'type':_0x999e48,'resourceId':_0x4fa6f3['id']}})[_0x332595('0x5e')](function(){return _0x5bd1e2;});})[_0x870cbd('0x5e')](function(){const _0x10f412=_0x870cbd;_0x510f4f['status'](0xcc)[_0x10f412('0x69')]();});};}function handleEntityNotFound(_0x32d92d){return function(_0x387152){const _0x43b18f=a783_0x24dd;return!_0x387152&&_0x32d92d[_0x43b18f('0x4a')](0x194),_0x387152;};}function handleError(_0xc93423,_0x116aa9){return _0x116aa9=_0x116aa9||0x1f4,function(_0x2098d0){const _0x38f8d9=a783_0x24dd;logger[_0x38f8d9('0x16')](_0x2098d0[_0x38f8d9('0x7a')]),_0x2098d0[_0x38f8d9('0x9a')]&&delete _0x2098d0['name'],_0xc93423['status'](_0x116aa9)[_0x38f8d9('0x4b')](_0x2098d0);};}exports['index']=function(_0x5bf69d,_0x3cf975){const _0x2015b9=_0x3b7760;let _0x5613a3={'include':[{'model':db['Pause'],'as':'mandatoryDispositionPause'}]};const _0x30edc1={},_0x42acb5={'count':0x0,'rows':[]},_0x34dcdb=_[_0x2015b9('0x24')](db[_0x2015b9('0x66')][_0x2015b9('0x7b')],function(_0x4e01de){const _0x28eb65=_0x2015b9;return{'name':_0x4e01de[_0x28eb65('0x6c')],'type':_0x4e01de[_0x28eb65('0x1a')][_0x28eb65('0x26')]};});_0x30edc1['model']=_[_0x2015b9('0x24')](_0x34dcdb,_0x2015b9('0x9a')),_0x30edc1[_0x2015b9('0x78')]=_[_0x2015b9('0x7e')](_0x5bf69d[_0x2015b9('0x78')]),_0x30edc1[_0x2015b9('0x1b')]=_['intersection'](_0x30edc1[_0x2015b9('0x33')],_0x30edc1[_0x2015b9('0x78')]),_0x5613a3['attributes']=_[_0x2015b9('0x49')](_0x30edc1[_0x2015b9('0x33')],qs['fields'](_0x5bf69d[_0x2015b9('0x78')][_0x2015b9('0x7d')])),_0x5613a3[_0x2015b9('0x65')]=_0x5613a3[_0x2015b9('0x65')][_0x2015b9('0x23')]?_0x5613a3[_0x2015b9('0x65')]:_0x30edc1['model'];typeof _0x5bf69d[_0x2015b9('0x78')][_0x2015b9('0x17')]===_0x2015b9('0x83')&&(_0x5613a3[_0x2015b9('0x6')]=qs[_0x2015b9('0x6')](_0x5bf69d[_0x2015b9('0x78')]['limit']),_0x5613a3[_0x2015b9('0x2')]=qs[_0x2015b9('0x2')](_0x5bf69d[_0x2015b9('0x78')][_0x2015b9('0x2')]));_0x5613a3[_0x2015b9('0x89')]=qs[_0x2015b9('0x3e')](_0x5bf69d['query'][_0x2015b9('0x3e')]),_0x5613a3[_0x2015b9('0x5')]=qs[_0x2015b9('0x1b')](_['pick'](_0x5bf69d[_0x2015b9('0x78')],_0x30edc1[_0x2015b9('0x1b')]),_0x34dcdb);_0x5bf69d[_0x2015b9('0x78')][_0x2015b9('0x9c')]&&(_0x5613a3[_0x2015b9('0x5')]=_[_0x2015b9('0xb')](_0x5613a3['where'],{[Op['or']]:_[_0x2015b9('0x24')](_0x34dcdb,function(_0x522d8f){const _0x1f9d76=_0x2015b9;if(_0x522d8f[_0x1f9d76('0x1a')]!=='VIRTUAL'){const _0x4cddee={};return _0x4cddee[_0x522d8f[_0x1f9d76('0x9a')]]={[Op['like']]:'%'+_0x5bf69d['query']['filter']+'%'},_0x4cddee;}})}));_0x5613a3=_['merge']({},_0x5613a3,_0x5bf69d[_0x2015b9('0x96')]);const _0x1cd125={'where':_0x5613a3[_0x2015b9('0x5')]};return db['WhatsappAccount']['count'](_0x1cd125)['then'](function(_0x1b3d9b){const _0x585823=_0x2015b9;return _0x42acb5[_0x585823('0x18')]=_0x1b3d9b,_0x5bf69d[_0x585823('0x78')]['includeAll']&&(_0x5613a3['include']=[{'all':!![]}]),db[_0x585823('0x66')]['findAll'](_0x5613a3);})[_0x2015b9('0x5e')](function(_0xe44880){const _0x397dd0=_0x2015b9;return _0x42acb5[_0x397dd0('0x9d')]=_0xe44880,_0x42acb5;})[_0x2015b9('0x5e')](respondWithFilteredResult(_0x3cf975,_0x5613a3))['catch'](handleError(_0x3cf975,null));},exports[_0x3b7760('0x29')]=function(_0x4a2220,_0x1b7241){const _0x15967e=_0x3b7760;let _0x4fb0c5={'raw':![],'where':{'id':_0x4a2220['params']['id']},'include':[{'model':db[_0x15967e('0x73')],'as':_0x15967e('0xf')}]};const _0xffc054={};return _0xffc054[_0x15967e('0x33')]=_[_0x15967e('0x7e')](db[_0x15967e('0x66')][_0x15967e('0x7b')]),_0xffc054[_0x15967e('0x78')]=_[_0x15967e('0x7e')](_0x4a2220['query']),_0xffc054[_0x15967e('0x1b')]=_[_0x15967e('0x49')](_0xffc054[_0x15967e('0x33')],_0xffc054[_0x15967e('0x78')]),_0x4fb0c5[_0x15967e('0x65')]=_[_0x15967e('0x49')](_0xffc054[_0x15967e('0x33')],qs[_0x15967e('0x7d')](_0x4a2220[_0x15967e('0x78')][_0x15967e('0x7d')])),_0x4fb0c5[_0x15967e('0x65')]=_0x4fb0c5[_0x15967e('0x65')]['length']?_0x4fb0c5[_0x15967e('0x65')]:_0xffc054[_0x15967e('0x33')],_0x4a2220[_0x15967e('0x78')][_0x15967e('0xe')]&&(_0x4fb0c5[_0x15967e('0xa')]=[{'all':!![]}]),_0x4fb0c5=_['merge']({},_0x4fb0c5,_0x4a2220['options']),db[_0x15967e('0x66')][_0x15967e('0x79')](_0x4fb0c5)[_0x15967e('0x5e')](handleEntityNotFound(_0x1b7241,null))[_0x15967e('0x5e')](respondWithResult(_0x1b7241,null))[_0x15967e('0x48')](handleError(_0x1b7241,null));},exports[_0x3b7760('0x34')]=function(_0x54ec33,_0x18f701){const _0x7af346=_0x3b7760;return db[_0x7af346('0x66')][_0x7af346('0x34')](_0x54ec33[_0x7af346('0x42')],{})['then'](function(_0x5b1c47){const _0x5a916c=_0x7af346,_0x3119ac=_0x54ec33['user']['get']({'plain':!![]});if(!_0x3119ac)throw new Error(_0x5a916c('0x55'));if(_0x3119ac['role']===_0x5a916c('0x1')){const _0x345538=_0x5b1c47['get']({'plain':!![]}),_0x3dff99='WhatsappAccounts';return db[_0x5a916c('0x19')]['findOne']({'where':{'name':_0x3dff99,'userProfileId':_0x3119ac['userProfileId']},'raw':!![]})[_0x5a916c('0x5e')](function(_0x1a5b73){const _0x5166a1=_0x5a916c;return _0x1a5b73&&_0x1a5b73[_0x5166a1('0x8f')]===0x0?db['UserProfileResource']['create']({'name':_0x345538[_0x5166a1('0x9a')],'resourceId':_0x345538['id'],'type':_0x1a5b73[_0x5166a1('0x9a')],'sectionId':_0x1a5b73['id']},{})[_0x5166a1('0x5e')](function(){return _0x5b1c47;}):_0x5b1c47;})[_0x5a916c('0x48')](function(_0x2458b5){logger['error']('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0x2458b5);throw _0x2458b5;});}return _0x5b1c47;})[_0x7af346('0x5e')](respondWithResult(_0x18f701,0xc9))[_0x7af346('0x48')](handleError(_0x18f701,null));},exports['update']=function(_0x3368a7,_0x59077d){const _0x52a76e=_0x3b7760;return _0x3368a7[_0x52a76e('0x42')]['id']&&delete _0x3368a7[_0x52a76e('0x42')]['id'],db['WhatsappAccount'][_0x52a76e('0x79')]({'where':{'id':_0x3368a7[_0x52a76e('0x20')]['id']},'include':[{'model':db[_0x52a76e('0x73')],'as':_0x52a76e('0xf')}]})[_0x52a76e('0x5e')](handleEntityNotFound(_0x59077d,null))[_0x52a76e('0x5e')](saveUpdates(_0x3368a7['body'],null))[_0x52a76e('0x5e')](respondWithResult(_0x59077d,null))['catch'](handleError(_0x59077d,null));},exports[_0x3b7760('0x5b')]=function(_0x3aa51e,_0x3313c0){const _0x3ecdb0=_0x3b7760;return db[_0x3ecdb0('0x66')][_0x3ecdb0('0x79')]({'where':{'id':_0x3aa51e[_0x3ecdb0('0x20')]['id']}})[_0x3ecdb0('0x5e')](handleEntityNotFound(_0x3313c0,null))[_0x3ecdb0('0x5e')](removeEntity(_0x3313c0,null))[_0x3ecdb0('0x48')](handleError(_0x3313c0,null));},exports['describe']=function(_0x16229c,_0x266798){const _0x355634=_0x3b7760;return db[_0x355634('0x66')][_0x355634('0x6f')]()[_0x355634('0x5e')](respondWithResult(_0x266798,null))['catch'](handleError(_0x266798,null));},exports[_0x3b7760('0x77')]=function(_0x4f1608,_0x5a2dd5){const _0x5585b4=_0x3b7760;return _0x4f1608['body']['id']&&delete _0x4f1608[_0x5585b4('0x42')]['id'],db['WhatsappAccount'][_0x5585b4('0x79')]({'where':{'id':_0x4f1608[_0x5585b4('0x20')]['id']}})['then'](handleEntityNotFound(_0x5a2dd5,null))[_0x5585b4('0x5e')](function(_0x18d1d1){const _0x331e32=_0x5585b4;if(_0x18d1d1)return _0x4f1608['body'][_0x331e32('0x85')]=_0x18d1d1['id'],db[_0x331e32('0x51')]['create'](_0x4f1608['body']);})[_0x5585b4('0x5e')](respondWithResult(_0x5a2dd5,null))[_0x5585b4('0x48')](handleError(_0x5a2dd5,null));},exports[_0x3b7760('0x39')]=function(_0x54b483,_0x4c55a2){const _0x2460bc=_0x3b7760;let _0x4738d7={'raw':![],'where':{}};const _0x8079ca={},_0x557adc={'count':0x0,'rows':[]};return db[_0x2460bc('0x66')][_0x2460bc('0x79')]({'where':{'id':_0x54b483[_0x2460bc('0x20')]['id']}})[_0x2460bc('0x5e')](handleEntityNotFound(_0x4c55a2,null))[_0x2460bc('0x5e')](function(_0xcce43f){const _0x56a947=_0x2460bc;if(_0xcce43f)return _0x8079ca['model']=_[_0x56a947('0x7e')](db[_0x56a947('0x51')][_0x56a947('0x7b')]),_0x8079ca[_0x56a947('0x78')]=_[_0x56a947('0x7e')](_0x54b483[_0x56a947('0x78')]),_0x8079ca[_0x56a947('0x1b')]=_[_0x56a947('0x49')](_0x8079ca[_0x56a947('0x33')],_0x8079ca[_0x56a947('0x78')]),_0x4738d7[_0x56a947('0x65')]=_[_0x56a947('0x49')](_0x8079ca[_0x56a947('0x33')],qs[_0x56a947('0x7d')](_0x54b483[_0x56a947('0x78')][_0x56a947('0x7d')])),_0x4738d7[_0x56a947('0x65')]=_0x4738d7[_0x56a947('0x65')][_0x56a947('0x23')]?_0x4738d7[_0x56a947('0x65')]:_0x8079ca[_0x56a947('0x33')],typeof _0x54b483[_0x56a947('0x78')]['nolimit']===_0x56a947('0x83')&&(_0x4738d7[_0x56a947('0x6')]=qs[_0x56a947('0x6')](_0x54b483[_0x56a947('0x78')][_0x56a947('0x6')]),_0x4738d7['offset']=qs[_0x56a947('0x2')](_0x54b483[_0x56a947('0x78')][_0x56a947('0x2')])),_0x4738d7[_0x56a947('0x89')]=qs[_0x56a947('0x3e')](_0x54b483['query'][_0x56a947('0x3e')]),_0x4738d7['where']=qs[_0x56a947('0x1b')](_[_0x56a947('0x94')](_0x54b483['query'],_0x8079ca['filters'])),_0x4738d7[_0x56a947('0x5')][_0x56a947('0x85')]=_0xcce43f['id'],_0x54b483['query'][_0x56a947('0x9c')]&&(_0x4738d7[_0x56a947('0x5')]=_[_0x56a947('0xb')](_0x4738d7[_0x56a947('0x5')],{[Op['or']]:_[_0x56a947('0x24')](_0x4738d7[_0x56a947('0x65')],function(_0x5010a1){const _0x25a7c8=_0x56a947,_0x5acb00={};return _0x5acb00[_0x5010a1]={[Op[_0x25a7c8('0x1e')]]:'%'+_0x54b483['query'][_0x25a7c8('0x9c')]+'%'},_0x5acb00;})})),_0x4738d7=_[_0x56a947('0xb')]({},_0x4738d7,_0x54b483[_0x56a947('0x96')]),db[_0x56a947('0x51')][_0x56a947('0x18')]({'where':_0x4738d7[_0x56a947('0x5')]})['then'](function(_0x5738d9){const _0x25089e=_0x56a947;return _0x557adc['count']=_0x5738d9,_0x54b483[_0x25089e('0x78')][_0x25089e('0xe')]&&(_0x4738d7[_0x25089e('0xa')]=[{'all':!![]}]),db[_0x25089e('0x51')]['findAll'](_0x4738d7);})['then'](function(_0x27af2e){const _0x2897e3=_0x56a947;return _0x557adc[_0x2897e3('0x9d')]=_0x27af2e,_0x557adc;});})[_0x2460bc('0x5e')](respondWithFilteredResult(_0x4c55a2,_0x4738d7))[_0x2460bc('0x48')](handleError(_0x4c55a2,null));},exports[_0x3b7760('0x67')]=function(_0x18705b,_0x4cb8c6){const _0x50dc34=_0x3b7760;return db[_0x50dc34('0x66')]['findOne']({'where':{'id':_0x18705b[_0x50dc34('0x20')]['id']}})['then'](handleEntityNotFound(_0x4cb8c6,null))[_0x50dc34('0x5e')](function(_0x3d277a){const _0x2f0419=_0x50dc34;if(_0x3d277a)return _0x3d277a[_0x2f0419('0x67')](_0x18705b['query'][_0x2f0419('0x71')]);})[_0x50dc34('0x5e')](respondWithStatusCode(_0x4cb8c6,null))['catch'](handleError(_0x4cb8c6,null));},exports[_0x3b7760('0x4d')]=function(_0x5456fd,_0x19d8bf){const _0x1bc74d=_0x3b7760;return _0x5456fd[_0x1bc74d('0x42')]['id']&&delete _0x5456fd[_0x1bc74d('0x42')]['id'],db[_0x1bc74d('0x66')][_0x1bc74d('0x79')]({'where':{'id':_0x5456fd[_0x1bc74d('0x20')]['id']}})[_0x1bc74d('0x5e')](handleEntityNotFound(_0x19d8bf,null))[_0x1bc74d('0x5e')](function(_0x339919){const _0x11efbd=_0x1bc74d;if(_0x339919)return _0x5456fd['body']['WhatsappAccountId']=_0x339919['id'],db['CannedAnswer']['create'](_0x5456fd[_0x11efbd('0x42')]);})[_0x1bc74d('0x5e')](respondWithResult(_0x19d8bf,null))[_0x1bc74d('0x48')](handleError(_0x19d8bf,null));},exports['getAnswers']=function(_0xd58389,_0x23a912){const _0x340f3f=_0x3b7760;let _0x3f3306={'raw':![],'where':{}};const _0x3670a6={},_0x383a95={'count':0x0,'rows':[]};return db['WhatsappAccount'][_0x340f3f('0x79')]({'where':{'id':_0xd58389[_0x340f3f('0x20')]['id']}})[_0x340f3f('0x5e')](handleEntityNotFound(_0x23a912,null))[_0x340f3f('0x5e')](function(_0x4618fb){const _0x2490bd=_0x340f3f;if(_0x4618fb)return _0x3670a6[_0x2490bd('0x33')]=_[_0x2490bd('0x7e')](db['CannedAnswer']['rawAttributes']),_0x3670a6[_0x2490bd('0x78')]=_['keys'](_0xd58389[_0x2490bd('0x78')]),_0x3670a6['filters']=_[_0x2490bd('0x49')](_0x3670a6[_0x2490bd('0x33')],_0x3670a6[_0x2490bd('0x78')]),_0x3f3306[_0x2490bd('0x65')]=_[_0x2490bd('0x49')](_0x3670a6['model'],qs['fields'](_0xd58389[_0x2490bd('0x78')][_0x2490bd('0x7d')])),_0x3f3306['attributes']=_0x3f3306[_0x2490bd('0x65')][_0x2490bd('0x23')]?_0x3f3306[_0x2490bd('0x65')]:_0x3670a6[_0x2490bd('0x33')],typeof _0xd58389[_0x2490bd('0x78')][_0x2490bd('0x17')]===_0x2490bd('0x83')&&(_0x3f3306['limit']=qs[_0x2490bd('0x6')](_0xd58389[_0x2490bd('0x78')][_0x2490bd('0x6')]),_0x3f3306[_0x2490bd('0x2')]=qs['offset'](_0xd58389[_0x2490bd('0x78')][_0x2490bd('0x2')])),_0x3f3306['order']=qs[_0x2490bd('0x3e')](_0xd58389[_0x2490bd('0x78')][_0x2490bd('0x3e')]),_0x3f3306[_0x2490bd('0x5')]=qs[_0x2490bd('0x1b')](_[_0x2490bd('0x94')](_0xd58389[_0x2490bd('0x78')],_0x3670a6[_0x2490bd('0x1b')])),_0x3f3306['where']['WhatsappAccountId']=_0x4618fb['id'],_0xd58389[_0x2490bd('0x78')][_0x2490bd('0x9c')]&&(_0x3f3306[_0x2490bd('0x5')]=_['merge'](_0x3f3306[_0x2490bd('0x5')],{[Op['or']]:_[_0x2490bd('0x24')](_0x3f3306['attributes'],function(_0x35bc36){const _0x104ab7=_0x2490bd,_0x5a1fe0={};return _0x5a1fe0[_0x35bc36]={[Op[_0x104ab7('0x1e')]]:'%'+_0xd58389[_0x104ab7('0x78')]['filter']+'%'},_0x5a1fe0;})})),_0x3f3306=_[_0x2490bd('0xb')]({},_0x3f3306,_0xd58389[_0x2490bd('0x96')]),db[_0x2490bd('0x98')]['count']({'where':_0x3f3306[_0x2490bd('0x5')]})[_0x2490bd('0x5e')](function(_0x4313fb){const _0x217b54=_0x2490bd;return _0x383a95[_0x217b54('0x18')]=_0x4313fb,_0xd58389[_0x217b54('0x78')][_0x217b54('0xe')]&&(_0x3f3306[_0x217b54('0xa')]=[{'all':!![]}]),db[_0x217b54('0x98')]['findAll'](_0x3f3306);})[_0x2490bd('0x5e')](function(_0xcaeecf){const _0x1bc34d=_0x2490bd;return _0x383a95[_0x1bc34d('0x9d')]=_0xcaeecf,_0x383a95;});})[_0x340f3f('0x5e')](respondWithFilteredResult(_0x23a912,_0x3f3306))[_0x340f3f('0x48')](handleError(_0x23a912,null));},exports[_0x3b7760('0x63')]=function(_0xc3cee,_0x5a5a43){const _0x3c2720=_0x3b7760;return db[_0x3c2720('0x66')][_0x3c2720('0x79')]({'where':{'id':_0xc3cee[_0x3c2720('0x20')]['id']}})[_0x3c2720('0x5e')](handleEntityNotFound(_0x5a5a43,null))[_0x3c2720('0x5e')](function(_0x134358){const _0x4d98f1=_0x3c2720;if(_0x134358)return _0x134358[_0x4d98f1('0x63')](_0xc3cee[_0x4d98f1('0x78')][_0x4d98f1('0x71')]);})[_0x3c2720('0x5e')](respondWithStatusCode(_0x5a5a43,null))['catch'](handleError(_0x5a5a43,null));},exports[_0x3b7760('0x7')]=function(_0x102940,_0x11a6bf){const _0x52cdfe=_0x3b7760;return db[_0x52cdfe('0x66')][_0x52cdfe('0x79')]({'where':{'id':_0x102940[_0x52cdfe('0x20')]['id']}})['then'](function(_0x147e51){const _0x4e9f94=_0x52cdfe;if(_0x147e51)return _0x147e51[_0x4e9f94('0x7')](_0x102940['body']['ids'],{'through':_[_0x4e9f94('0x52')](_0x102940[_0x4e9f94('0x42')],['ids','id'])})[_0x4e9f94('0x5e')](function(_0x4fea44){const _0x1d4e2c=_0x4e9f94;for(let _0x54a59c=0x0;_0x54a59c<_0x102940[_0x1d4e2c('0x42')][_0x1d4e2c('0x71')][_0x1d4e2c('0x23')];_0x54a59c+=0x1){socket[_0x1d4e2c('0x13')](_0x1d4e2c('0x3a'),{'UserId':_0x102940[_0x1d4e2c('0x42')][_0x1d4e2c('0x71')][_0x54a59c],'WhatsappAccountId':_0x102940[_0x1d4e2c('0x20')]['id']});}return _0x4fea44;});})[_0x52cdfe('0x5e')](respondWithResult(_0x11a6bf,null))[_0x52cdfe('0x48')](handleError(_0x11a6bf,null));},exports[_0x3b7760('0x14')]=function(_0x337df6,_0x170b7d){const _0x88d7b3=_0x3b7760;return db[_0x88d7b3('0x66')][_0x88d7b3('0x79')]({'where':{'id':_0x337df6[_0x88d7b3('0x20')]['id']}})[_0x88d7b3('0x5e')](handleEntityNotFound(_0x170b7d,null))[_0x88d7b3('0x5e')](function(_0x2c6ba8){const _0x432bba=_0x88d7b3;if(_0x2c6ba8)return _0x2c6ba8['removeAgents'](_0x337df6[_0x432bba('0x78')]['ids'])[_0x432bba('0x5e')](function(){const _0x14972b=_0x432bba;if(_[_0x14972b('0x74')](_0x337df6['query'][_0x14972b('0x71')]))for(let _0x4eb23d=0x0;_0x4eb23d<_0x337df6['query'][_0x14972b('0x71')][_0x14972b('0x23')];_0x4eb23d+=0x1){socket['emit'](_0x14972b('0x56'),{'UserId':Number(_0x337df6[_0x14972b('0x78')][_0x14972b('0x71')][_0x4eb23d]),'WhatsappAccountId':Number(_0x337df6[_0x14972b('0x20')]['id'])});}else socket[_0x14972b('0x13')](_0x14972b('0x56'),{'UserId':Number(_0x337df6[_0x14972b('0x78')]['ids']),'WhatsappAccountId':Number(_0x337df6[_0x14972b('0x20')]['id'])});});})[_0x88d7b3('0x5e')](respondWithStatusCode(_0x170b7d,null))[_0x88d7b3('0x48')](handleError(_0x170b7d,null));},exports[_0x3b7760('0xc')]=function(_0x3e7ab8,_0x366aff){const _0x4b419b=_0x3b7760;let _0xd47b91={};const _0x14badf={};let _0x401c35,_0x214414;return db[_0x4b419b('0x66')][_0x4b419b('0x79')]({'where':{'id':_0x3e7ab8[_0x4b419b('0x20')]['id']}})[_0x4b419b('0x5e')](handleEntityNotFound(_0x366aff,null))[_0x4b419b('0x5e')](function(_0x1b1e2d){const _0x21a89d=_0x4b419b;if(_0x1b1e2d)return _0x401c35=_0x1b1e2d,_0x14badf[_0x21a89d('0x33')]=_[_0x21a89d('0x7e')](db['User'][_0x21a89d('0x7b')]),_0x14badf[_0x21a89d('0x78')]=_[_0x21a89d('0x7e')](_0x3e7ab8[_0x21a89d('0x78')]),_0x14badf['filters']=_[_0x21a89d('0x49')](_0x14badf[_0x21a89d('0x33')],_0x14badf['query']),_0xd47b91[_0x21a89d('0x65')]=_[_0x21a89d('0x49')](_0x14badf['model'],qs[_0x21a89d('0x7d')](_0x3e7ab8['query'][_0x21a89d('0x7d')])),_0xd47b91[_0x21a89d('0x65')]=_0xd47b91[_0x21a89d('0x65')][_0x21a89d('0x23')]?_0xd47b91['attributes']:_0x14badf[_0x21a89d('0x33')],_0xd47b91[_0x21a89d('0x89')]=qs['sort'](_0x3e7ab8[_0x21a89d('0x78')][_0x21a89d('0x3e')]),_0xd47b91[_0x21a89d('0x5')]=qs[_0x21a89d('0x1b')](_[_0x21a89d('0x94')](_0x3e7ab8['query'],_0x14badf[_0x21a89d('0x1b')])),_0x3e7ab8[_0x21a89d('0x78')][_0x21a89d('0x9c')]&&(_0xd47b91[_0x21a89d('0x5')]=_[_0x21a89d('0xb')](_0xd47b91[_0x21a89d('0x5')],{[Op['or']]:_['map'](_0xd47b91[_0x21a89d('0x65')],function(_0x128238){const _0x549fc0=_0x21a89d,_0x158a56={};return _0x158a56[_0x128238]={[Op['like']]:'%'+_0x3e7ab8[_0x549fc0('0x78')]['filter']+'%'},_0x158a56;})})),_0xd47b91=_[_0x21a89d('0xb')]({},_0xd47b91,_0x3e7ab8[_0x21a89d('0x96')]),_0x401c35[_0x21a89d('0xc')](_0xd47b91);})[_0x4b419b('0x5e')](function(_0x18d303){const _0x347b6f=_0x4b419b;if(_0x18d303)return _0x214414=_0x18d303[_0x347b6f('0x23')],typeof _0x3e7ab8['query'][_0x347b6f('0x17')]===_0x347b6f('0x83')&&(_0xd47b91[_0x347b6f('0x6')]=qs['limit'](_0x3e7ab8[_0x347b6f('0x78')][_0x347b6f('0x6')]),_0xd47b91['offset']=qs['offset'](_0x3e7ab8[_0x347b6f('0x78')][_0x347b6f('0x2')])),_0x401c35['getAgents'](_0xd47b91);})['then'](function(_0x3072b3){if(_0x3072b3)return _0x3072b3?{'count':_0x214414,'rows':_0x3072b3}:null;})['then'](respondWithResult(_0x366aff,null))[_0x4b419b('0x48')](handleError(_0x366aff,null));},exports[_0x3b7760('0x6e')]=function(_0x9d027c,_0x5c2f7f){const _0x30ef78=_0x3b7760;return db[_0x30ef78('0x66')][_0x30ef78('0x79')]({'where':{'id':_0x9d027c['params']['id']}})[_0x30ef78('0x5e')](handleEntityNotFound(_0x5c2f7f,null))[_0x30ef78('0x5e')](function(_0x2d8013){const _0x4c78e5=_0x30ef78;if(_0x2d8013)return db[_0x4c78e5('0x76')][_0x4c78e5('0x3')](function(_0x71eccc){const _0x1899e3=_0x4c78e5;return db[_0x1899e3('0x81')][_0x1899e3('0x5b')]({'where':{'WhatsappAccountId':_0x9d027c[_0x1899e3('0x20')]['id']},'transaction':_0x71eccc})[_0x1899e3('0x5e')](function(){const _0x2127a8=_0x1899e3,_0x47d49d=_[_0x2127a8('0x24')](_0x9d027c['body'],function(_0x4e879b){const _0x459410=_0x2127a8;return _0x4e879b[_0x459410('0x85')]=_0x9d027c[_0x459410('0x20')]['id'],_0x4e879b;});return db[_0x2127a8('0x81')][_0x2127a8('0x99')](_0x47d49d,{'transaction':_0x71eccc});});})[_0x4c78e5('0x5e')](function(){const _0x105357=_0x4c78e5;return db[_0x105357('0x81')][_0x105357('0x40')]({'where':{'WhatsappAccountId':_0x9d027c[_0x105357('0x20')]['id']},'order':_0x105357('0x70')});});})[_0x30ef78('0x5e')](respondWithResult(_0x5c2f7f,null))['catch'](handleError(_0x5c2f7f,null));},exports['getApplications']=function(_0x17d42d,_0x448bd5){const _0x272442=_0x3b7760;let _0x59db29={};const _0xb54846={};let _0x101701,_0x1a5a91;return db[_0x272442('0x66')][_0x272442('0x79')]({'where':{'id':_0x17d42d[_0x272442('0x20')]['id']}})[_0x272442('0x5e')](handleEntityNotFound(_0x448bd5,null))[_0x272442('0x5e')](function(_0x530e2d){const _0x563f1c=_0x272442;if(_0x530e2d)return _0x101701=_0x530e2d,_0xb54846[_0x563f1c('0x33')]=_['keys'](db[_0x563f1c('0x81')][_0x563f1c('0x7b')]),_0xb54846[_0x563f1c('0x78')]=_[_0x563f1c('0x7e')](_0x17d42d[_0x563f1c('0x78')]),_0xb54846[_0x563f1c('0x1b')]=_[_0x563f1c('0x49')](_0xb54846['model'],_0xb54846['query']),_0x59db29[_0x563f1c('0x65')]=_[_0x563f1c('0x49')](_0xb54846[_0x563f1c('0x33')],qs[_0x563f1c('0x7d')](_0x17d42d['query']['fields'])),_0x59db29[_0x563f1c('0x65')]=_0x59db29[_0x563f1c('0x65')]['length']?_0x59db29['attributes']:_0xb54846[_0x563f1c('0x33')],_0x59db29[_0x563f1c('0x89')]=qs[_0x563f1c('0x3e')](_0x17d42d[_0x563f1c('0x78')][_0x563f1c('0x3e')]),_0x59db29[_0x563f1c('0x5')]=qs[_0x563f1c('0x1b')](_['pick'](_0x17d42d['query'],_0xb54846[_0x563f1c('0x1b')])),_0x17d42d[_0x563f1c('0x78')]['filter']&&(_0x59db29[_0x563f1c('0x5')]=_[_0x563f1c('0xb')](_0x59db29['where'],{[Op['or']]:_[_0x563f1c('0x24')](_0x59db29[_0x563f1c('0x65')],function(_0x54aa31){const _0x173936=_0x563f1c,_0x186e52={};return _0x186e52[_0x54aa31]={[Op[_0x173936('0x1e')]]:'%'+_0x17d42d[_0x173936('0x78')][_0x173936('0x9c')]+'%'},_0x186e52;})})),_0x59db29=_[_0x563f1c('0xb')]({},_0x59db29,_0x17d42d[_0x563f1c('0x96')]),_0x101701[_0x563f1c('0x1f')](_0x59db29);})[_0x272442('0x5e')](function(_0xd00bd4){const _0x4e117e=_0x272442;if(_0xd00bd4)return _0x1a5a91=_0xd00bd4[_0x4e117e('0x23')],typeof _0x17d42d['query']['nolimit']===_0x4e117e('0x83')&&(_0x59db29[_0x4e117e('0x6')]=qs['limit'](_0x17d42d[_0x4e117e('0x78')]['limit']),_0x59db29[_0x4e117e('0x2')]=qs[_0x4e117e('0x2')](_0x17d42d[_0x4e117e('0x78')][_0x4e117e('0x2')])),_0x101701[_0x4e117e('0x1f')](_0x59db29);})[_0x272442('0x5e')](function(_0x1fbf1e){if(_0x1fbf1e)return _0x1fbf1e?{'count':_0x1a5a91,'rows':_0x1fbf1e}:null;})[_0x272442('0x5e')](respondWithResult(_0x448bd5,null))['catch'](handleError(_0x448bd5,null));},exports[_0x3b7760('0x5f')]=function(_0x100f4b,_0x4fc95f){const _0x43486e=_0x3b7760,_0x2666f2={'channel':_0x43486e('0x46')};let _0x41785d=[],_0x5941d0=[];const _0x52e8fe={};return db[_0x43486e('0x66')][_0x43486e('0x79')]({'where':{'id':_0x100f4b[_0x43486e('0x20')]['id']},'include':[{'model':db['WhatsappApplication'],'as':_0x43486e('0x5a')}]})[_0x43486e('0x5e')](handleEntityNotFound(_0x4fc95f,null))[_0x43486e('0x5e')](function(_0x35fece){const _0x53ba80=_0x43486e;return _0x2666f2[_0x53ba80('0x10')]=_0x35fece,_0x2666f2[_0x53ba80('0x0')]=_[_0x53ba80('0x84')](_0x35fece[_0x53ba80('0x5a')],[_0x53ba80('0x70')],[_0x53ba80('0x8c')]),_0x2666f2[_0x53ba80('0x10')][_0x53ba80('0x5a')]&&delete _0x2666f2[_0x53ba80('0x10')]['Applications'],db[_0x53ba80('0x22')]['describe']();})[_0x43486e('0x5e')](function(_0x168bfe){const _0x2c1bc5=_0x43486e;if(!_0x168bfe)throw new ValidationError(_0x2c1bc5('0xd'));_0x41785d=_[_0x2c1bc5('0x5d')](_[_0x2c1bc5('0x7e')](_0x168bfe),['createdAt',_0x2c1bc5('0x93')]),_0x5941d0=_[_0x2c1bc5('0x5d')](_[_0x2c1bc5('0x7e')](_0x168bfe),['createdAt',_0x2c1bc5('0x93'),_0x2c1bc5('0x7c'),_0x2c1bc5('0x3c')]),_0x2666f2[_0x2c1bc5('0x42')]={'mapKey':'mobile'};_0x2666f2['account'][_0x2c1bc5('0x1a')]&&_0x2666f2[_0x2c1bc5('0x10')]['type']===_0x2c1bc5('0x8')&&(_0x2666f2['body']['from']=_0x100f4b[_0x2c1bc5('0x42')]['From'][_0x2c1bc5('0x86')](_0x2c1bc5('0x7f'),''),_0x2666f2[_0x2c1bc5('0x42')][_0x2c1bc5('0x42')]=_0x100f4b[_0x2c1bc5('0x42')][_0x2c1bc5('0x30')],_0x2666f2[_0x2c1bc5('0x42')][_0x2c1bc5('0x61')]=_0x100f4b[_0x2c1bc5('0x42')][_0x2c1bc5('0x3f')]);_0x2666f2[_0x2c1bc5('0x42')]['id']&&delete _0x2666f2['body']['id'];if(_[_0x2c1bc5('0x21')](_0x2666f2[_0x2c1bc5('0x42')]['from']))throw new ValidationError(_0x2c1bc5('0x2b'));if(_[_0x2c1bc5('0x21')](_0x2666f2[_0x2c1bc5('0x42')][_0x2c1bc5('0x42')])||_0x2666f2['body'][_0x2c1bc5('0x42')]==='')throw new ValidationError(_0x2c1bc5('0x91'));if(_[_0x2c1bc5('0x21')](_0x2666f2[_0x2c1bc5('0x42')][_0x2c1bc5('0x2c')]))throw new ValidationError(_0x2c1bc5('0x60')+_0x5941d0);if(!_['includes'](_0x5941d0,_0x2666f2['body'][_0x2c1bc5('0x2c')]))throw new ValidationError(_0x2c1bc5('0x58')+_0x5941d0);return _0x52e8fe[_0x2666f2[_0x2c1bc5('0x42')][_0x2c1bc5('0x2c')]]=_0x2666f2['body'][_0x2c1bc5('0x80')],db['CmList'][_0x2c1bc5('0x79')]({'where':{'id':_0x2666f2[_0x2c1bc5('0x10')][_0x2c1bc5('0x3c')]},'include':[{'model':db['CmContact'],'as':'Contacts','where':_0x52e8fe,'limit':0x1,'order':[['updatedAt',_0x2c1bc5('0x64')]]}]});})['then'](handleEntityNotFound(_0x4fc95f,null))[_0x43486e('0x5e')](function(_0x49f6a2){const _0x43327d=_0x43486e;if(_0x49f6a2){_0x2666f2[_0x43327d('0x15')]=_['omit'](_0x49f6a2,[_0x43327d('0x90')]);if(_0x49f6a2[_0x43327d('0x90')]['length'])return _0x49f6a2[_0x43327d('0x90')][0x0];const _0xf8e508=_[_0x43327d('0x25')](_0x2666f2[_0x43327d('0x42')],{'firstName':_0x2666f2[_0x43327d('0x42')][_0x43327d('0x80')],'ListId':_0x49f6a2['id']});return _0xf8e508[_0x2666f2[_0x43327d('0x42')][_0x43327d('0x2c')]]=_0x2666f2[_0x43327d('0x42')][_0x43327d('0x80')],db[_0x43327d('0x22')][_0x43327d('0x34')](_0xf8e508,{'fields':_0x41785d,'raw':!![]});}})[_0x43486e('0x5e')](handleEntityNotFound(_0x4fc95f,null))[_0x43486e('0x5e')](function(_0x5d6b47){const _0x6e2e35=_0x43486e;if(_0x5d6b47){_0x2666f2['contact']=_0x5d6b47;const _0x543203={'ContactId':_0x5d6b47['id'],'phone':_0x2666f2['body'][_0x6e2e35('0x80')],'WhatsappAccountId':_0x100f4b['params']['id']},_0x17a7f9={'ContactId':_0x5d6b47['id'],'WhatsappAccountId':_0x100f4b[_0x6e2e35('0x20')]['id'],'closed':![]};return db[_0x6e2e35('0x2e')][_0x6e2e35('0x79')]({'where':_0x17a7f9})['then'](function(_0x854da){const _0x17b4a3=_0x6e2e35;if(_0x854da)return[_0x854da,![]];return db['WhatsappInteraction']['create'](_0x543203)[_0x17b4a3('0x5e')](function(_0x2d5a49){return[_0x2d5a49,!![]];});});}})[_0x43486e('0x5e')](function([_0x3e1cba,_0x6d09d9]){const _0x2d7572=_0x43486e;return _0x2666f2[_0x2d7572('0x92')]=_0x3e1cba[_0x2d7572('0x3d')]({'plain':!![]}),_0x2666f2['interaction']['created']=![],_0x6d09d9&&(_0x2666f2[_0x2d7572('0x10')][_0x2d7572('0x31')]&&_0x2666f2[_0x2d7572('0x0')][_0x2d7572('0x6a')]({'id':0x0,'priority':_0x2666f2['applications'][_0x2d7572('0x23')]+0x1,'app':_0x2d7572('0x35'),'appdata':_0x2d7572('0x95'),'interval':_0x2d7572('0x5c')}),_0x2666f2[_0x2d7572('0x92')][_0x2d7572('0x53')]=!![]),db[_0x2d7572('0x45')]['create']({'phone':_0x2666f2[_0x2d7572('0x42')]['from'],'messageId':_0x2666f2[_0x2d7572('0x42')][_0x2d7572('0x61')],'body':_0x2666f2[_0x2d7572('0x42')][_0x2d7572('0x42')],'WhatsappAccountId':_0x100f4b[_0x2d7572('0x20')]['id'],'WhatsappInteractionId':_0x3e1cba['id'],'direction':'in','ContactId':_0x3e1cba[_0x2d7572('0x47')],'AttachmentId':_0x2666f2[_0x2d7572('0x42')]['AttachmentId']});})[_0x43486e('0x5e')](function(_0x48fefb){const _0x592a04=_0x43486e;_0x2666f2['message']=_0x48fefb;if(_0x2666f2[_0x592a04('0x92')]['UserId'])return db[_0x592a04('0x43')][_0x592a04('0x79')]({'attributes':['id',_0x592a04('0x9a')],'where':{'id':_0x2666f2['interaction'][_0x592a04('0x9')]}})['then'](function(_0x489d6d){const _0x349184=_0x592a04;return _0x489d6d&&_0x2666f2['applications'][_0x349184('0x59')]({'id':0x0,'priority':0x0,'app':_0x349184('0x36'),'appdata':_0x489d6d[_0x349184('0x9a')]+','+(_0x2666f2[_0x349184('0x10')][_0x349184('0x4c')]||0xa),'interval':_0x349184('0x5c')}),respondWithRpcPromise(_0x349184('0x97'),'startRouting',_0x2666f2);});return respondWithRpcPromise(_0x592a04('0x97'),_0x592a04('0x72'),_0x2666f2);})['then'](function(_0x24a377){const _0x582de2=_0x43486e;if(_0x24a377){const _0x190eef=0xc8,_0x4b2bcc=_0x582de2('0x8e');return logger[_0x582de2('0x8a')](_0x582de2('0x27'),_0x4b2bcc,_0x190eef,'entity\x20found'),logger[_0x582de2('0x44')](_0x582de2('0x82'),_0x4b2bcc,_0x190eef,_0x582de2('0x9b'),JSON[_0x582de2('0x4e')](_0x24a377)),_0x2666f2[_0x582de2('0x10')][_0x582de2('0x1a')]===_0x582de2('0x8')?_0x4fc95f[_0x582de2('0x38')](_0x190eef)[_0x582de2('0x12')](_0x582de2('0x32'),_0x582de2('0x68'))['send'](_0x582de2('0x50')):_0x4fc95f[_0x582de2('0x38')](_0x190eef)[_0x582de2('0x2d')](_0x24a377);}})[_0x43486e('0x48')](handleError(_0x4fc95f,null));},exports[_0x3b7760('0x4b')]=function(_0xa4db36,_0x229658){const _0x48da9c=_0x3b7760;let _0x4c2e0f,_0x2c0050;if(_[_0x48da9c('0x21')](_0xa4db36[_0x48da9c('0x42')][_0x48da9c('0x42')])||_0xa4db36[_0x48da9c('0x42')]['body']==='')throw new ValidationError('body\x20is\x20mandatory\x20and\x20not\x20empty');if(_['isNil'](_0xa4db36[_0x48da9c('0x42')]['to']))throw new ValidationError(_0x48da9c('0x54'));const _0xf23919=_0xa4db36[_0x48da9c('0x42')]['to'];return db[_0x48da9c('0x66')]['findOne']({'where':{'id':_0xa4db36[_0x48da9c('0x20')]['id']},'include':[{'model':db[_0x48da9c('0x8d')],'as':_0x48da9c('0x75'),'include':[{'model':db[_0x48da9c('0x22')],'as':_0x48da9c('0x90'),'where':{'mobile':_0xf23919},'limit':0x1,'order':[['updatedAt','DESC']]}]}]})[_0x48da9c('0x5e')](handleEntityNotFound(_0x229658,null))[_0x48da9c('0x5e')](function(_0x1e7752){const _0x120e0d=_0x48da9c;if(_0x1e7752&&_0x1e7752['List']){_0x4c2e0f=_0x1e7752[_0x120e0d('0x3d')]({'plain':!![]});if(_0x4c2e0f[_0x120e0d('0x75')]&&_0x4c2e0f[_0x120e0d('0x75')][_0x120e0d('0x90')][_0x120e0d('0x23')])return _0x4c2e0f[_0x120e0d('0x75')][_0x120e0d('0x90')][0x0];return db[_0x120e0d('0x22')]['create'](_[_0x120e0d('0x25')](_0xa4db36[_0x120e0d('0x42')],{'firstName':_0xf23919,'mobile':_0xf23919,'phone':_0xf23919,'ListId':_0x4c2e0f[_0x120e0d('0x3c')]}));}})[_0x48da9c('0x5e')](handleEntityNotFound(_0x229658,null))['then'](function(_0x35476c){const _0x93f83e=_0x48da9c;if(_0x35476c)return _0x2c0050=_0x35476c,db['WhatsappInteraction']['findOne']({'where':{'ContactId':_0x2c0050['id'],'closed':![],'WhatsappAccountId':_0x4c2e0f['id']}})[_0x93f83e('0x5e')](function(_0x5612bf){const _0x4795fc=_0x93f83e;if(_0x5612bf)return[_0x5612bf,![]];return db[_0x4795fc('0x2e')][_0x4795fc('0x34')]({'UserId':_0xa4db36[_0x4795fc('0x1')]['id'],'ContactId':_0x2c0050['id'],'WhatsappAccountId':_0x4c2e0f['id'],'phone':_0xf23919,'firstMsgDirection':_0x4795fc('0x2a'),'Messages':[_['merge'](_0xa4db36[_0x4795fc('0x42')],{'read':![],'body':_0xa4db36['body']['body'],'phone':_0xf23919,'WhatsappAccountId':_0x4c2e0f['id'],'UserId':_0xa4db36[_0x4795fc('0x1')]['id'],'ContactId':_0x2c0050['id']})]},{'include':[{'model':db[_0x4795fc('0x45')],'as':'Messages'}]})[_0x4795fc('0x5e')](function(_0x62fb5f){return[_0x62fb5f,!![]];});});})[_0x48da9c('0x5e')](function([_0x3b3fb2,_0x268b8b]){const _0x276909=_0x48da9c;if(_0x268b8b)return _0x3b3fb2;return db[_0x276909('0x45')]['create'](_['merge'](_0xa4db36[_0x276909('0x42')],{'read':![],'body':_0xa4db36[_0x276909('0x42')][_0x276909('0x42')],'phone':_0xf23919,'WhatsappAccountId':_0x4c2e0f['id'],'WhatsappInteractionId':_0x3b3fb2['id'],'UserId':_0xa4db36[_0x276909('0x1')]['id'],'ContactId':_0x2c0050['id']}))[_0x276909('0x5e')](function(_0x17d146){const _0x575de3=_0x276909;return _0x3b3fb2[_0x575de3('0x3b')]['Messages']=[],_0x3b3fb2['dataValues'][_0x575de3('0x41')][_0x575de3('0x6a')](_0x17d146[_0x575de3('0x3b')]),_0x3b3fb2;});})['then'](respondWithResult(_0x229658,null))[_0x48da9c('0x48')](handleError(_0x229658,null));}; \ No newline at end of file +const a938_0x4567=['send','from','params','request','list','interaction','WhatsappAccount,\x20%s,\x20%s,\x20%s,\x20%s','asc','UserId','applications','agent','update','unmanaged','keys','sendStatus','pick','stack','List','describe','index','entity\x20found','from\x20is\x20mandatory','length','key','WhatsappApplication','WhatsappInteraction','VIRTUAL','push','messageId','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','updatedAt','where','mapKey\x20is\x20mandatory,\x20please\x20use\x20one\x20of\x20these:\x20','body','notify','Body','WhatsappAccount,\x20%s,\x20%s,\x20%s','addAnswer','Applications','set','Messages','filter','autoclose','MessageSid','filters','count','removeAgents','nolimit','isArray','stringify','fields','mapKey\x20invalid,\x20please\x20use\x20one\x20of\x20these:\x20','From','api','mandatoryDispositionPause','like','bulkCreate','twilio','lodash','ContactId','undefined','body\x20is\x20mandatory\x20and\x20not\x20empty','message','omit','mapKey','model','../../mysqldb','rows','*,*,*,*','WhatsappAccount','AttachmentId','UserProfileResource','CmContact','whatsapp','status','merge','ListId','WhatsappAccount,\x20%s,\x20%s','no\x20available\x20attributes','map','DESC','ids','addAgents','Content-Type','userWhatsappAccount:save','mobile','query','startRouting','waitForTheAssignedAgent','attributes','role','CannedAnswer','options','../../config/logger','name','result','isNil','userWhatsappAccount:remove','Pause','fieldName','defaults','getAgents','dataValues','offset','Contacts','close','emit','created','WhatsappAccounts','limit','destroy','jayson/promise','getDispositions','User','CmList','error','end','get','UserProfileSection','http','includeAll','Disposition','account','create','sort','then','json','show','findOne','catch','Start','../../rediscache','getApplications','includes','debug','rawAttributes','sequelize','\x0a','info','removeDispositions','type','removeAnswers','intersection','include','findAll','out','request\x20sent','user','priority','addDisposition','difference','WhatsappMessage','getAnswers','order','addApplications','receiveMessage','WhatsappAccountId'];(function(_0x3397ca,_0x178cdc){const _0x4567eb=function(_0x124e76){while(--_0x124e76){_0x3397ca['push'](_0x3397ca['shift']());}};_0x4567eb(++_0x178cdc);}(a938_0x4567,0x186));const a938_0x124e=function(_0x3397ca,_0x178cdc){_0x3397ca=_0x3397ca-0xd8;let _0x4567eb=a938_0x4567[_0x3397ca];return _0x4567eb;};const a938_0x4c2b5f=a938_0x124e;'use strict';const _=require(a938_0x4c2b5f(0x163)),qs=require('../../components/parsers/qs'),logger=require(a938_0x4c2b5f(0xe9))(a938_0x4c2b5f(0x15e)),{getSocket}=require(a938_0x4c2b5f(0x10f)),socket=getSocket(),{db}=require(a938_0x4c2b5f(0x16b)),{Op,ValidationError}=require('sequelize');require('./whatsappAccount.socket')['register'](socket);const jayson=require(a938_0x4c2b5f(0xfb)),client=jayson['client'][a938_0x4c2b5f(0x103)]({'port':0x232c});function respondWithRpcPromise(_0x46bf32,_0x1aba18,_0x1c5c40,_0x2f476c){return new Promise(function(_0x26c1c9,_0xad3f88){const _0x167565=a938_0x124e,_0x214116=_0x2f476c||client;return _0x214116[_0x167565(0x12c)](_0x46bf32,_0x1c5c40)[_0x167565(0x109)](function(_0x2f86de){const _0x5a62a0=_0x167565;logger[_0x5a62a0(0x116)](_0x5a62a0(0xd9),_0x1aba18,_0x5a62a0(0x11e)),logger[_0x5a62a0(0x112)](_0x5a62a0(0x14d),_0x1aba18,_0x5a62a0(0x11e),JSON[_0x5a62a0(0x15a)](_0x2f86de));if(_0x2f86de[_0x5a62a0(0xff)]){if(_0x2f86de[_0x5a62a0(0xff)]['code']===0x1f4)return logger['error'](_0x5a62a0(0xd9),_0x1aba18,_0x2f86de['error'][_0x5a62a0(0x167)]),_0xad3f88(_0x2f86de[_0x5a62a0(0xff)][_0x5a62a0(0x167)]);return logger[_0x5a62a0(0xff)](_0x5a62a0(0xd9),_0x1aba18,_0x2f86de[_0x5a62a0(0xff)][_0x5a62a0(0x167)]),_0x26c1c9(_0x2f86de[_0x5a62a0(0xff)][_0x5a62a0(0x167)]);}else logger[_0x5a62a0(0x116)](_0x5a62a0(0xd9),_0x1aba18,_0x5a62a0(0x11e)),_0x26c1c9(_0x2f86de[_0x5a62a0(0xeb)][_0x5a62a0(0x167)]);})[_0x167565(0x10d)](function(_0x1eb4ba){const _0x39993b=_0x167565;logger[_0x39993b(0xff)](_0x39993b(0xd9),_0x1aba18,_0x1eb4ba),_0xad3f88(_0x1eb4ba);});});}function respondWithStatusCode(_0x42b198,_0x143d77){return _0x143d77=_0x143d77||0xcc,function(_0x54b577){const _0x3b11b4=a938_0x124e;if(_0x54b577)return _0x42b198[_0x3b11b4(0x137)](_0x143d77);return _0x42b198[_0x3b11b4(0x173)](_0x143d77)[_0x3b11b4(0x100)]();};}function respondWithResult(_0x5bc405,_0x2ea33c){return _0x2ea33c=_0x2ea33c||0xc8,function(_0x1f8b37){const _0x2d3e00=a938_0x124e;if(_0x1f8b37)return _0x5bc405[_0x2d3e00(0x173)](_0x2ea33c)[_0x2d3e00(0x10a)](_0x1f8b37);};}function respondWithFilteredResult(_0x307c94,_0x41ce12){return function(_0x38fd98){const _0x4fe881=a938_0x124e;if(_0x38fd98){const _0x1fc043=_0x38fd98[_0x4fe881(0x156)],_0x5478f8=_0x41ce12['offset'];let _0x37553f=_0x41ce12['offset']+_0x41ce12[_0x4fe881(0xf9)],_0x31e642;return _0x37553f>=_0x1fc043?(_0x37553f=_0x1fc043,_0x31e642=0xc8):_0x31e642=0xce,_0x307c94[_0x4fe881(0x173)](_0x31e642),_0x307c94['set']('Content-Range',_0x5478f8+'-'+_0x37553f+'/'+_0x1fc043)[_0x4fe881(0x10a)](_0x38fd98);}return null;};}function saveUpdates(_0x5e522a){return function(_0x2d53be){const _0x136e03=a938_0x124e;if(_0x2d53be)return _0x2d53be[_0x136e03(0x134)](_0x5e522a)[_0x136e03(0x109)](function(_0x3a3cb7){return _0x3a3cb7;});return null;};}function removeEntity(_0x46c426){return function(_0x5e17bd){const _0x36721c=a938_0x124e;if(_0x5e17bd)return _0x5e17bd[_0x36721c(0xfa)]()[_0x36721c(0x109)](function(){const _0x56d2d8=_0x36721c,_0x398b49=_0x5e17bd[_0x56d2d8(0x101)]({'plain':!![]}),_0x520c6f='WhatsappAccounts';return db[_0x56d2d8(0x170)]['destroy']({'where':{'type':_0x520c6f,'resourceId':_0x398b49['id']}})[_0x56d2d8(0x109)](function(){return _0x5e17bd;});})['then'](function(){const _0x43673f=_0x36721c;_0x46c426[_0x43673f(0x173)](0xcc)['end']();});};}function handleEntityNotFound(_0x1b57cf){return function(_0x2ec2c3){const _0x9e1bc7=a938_0x124e;return!_0x2ec2c3&&_0x1b57cf[_0x9e1bc7(0x137)](0x194),_0x2ec2c3;};}function handleError(_0x5eeba1,_0x270b55){return _0x270b55=_0x270b55||0x1f4,function(_0x2492be){const _0x39cc6c=a938_0x124e;logger[_0x39cc6c(0xff)](_0x2492be[_0x39cc6c(0x139)]),_0x2492be[_0x39cc6c(0xea)]&&delete _0x2492be[_0x39cc6c(0xea)],_0x5eeba1['status'](_0x270b55)[_0x39cc6c(0x129)](_0x2492be);};}exports[a938_0x4c2b5f(0x13c)]=function(_0x3e697e,_0x3e626a){const _0x1f937b=a938_0x4c2b5f;let _0x57b14a={'include':[{'model':db[_0x1f937b(0xee)],'as':_0x1f937b(0x15f)}]};const _0x3b349a={},_0x589694={'count':0x0,'rows':[]},_0x1d0935=_['map'](db[_0x1f937b(0x16e)][_0x1f937b(0x113)],function(_0xc182d0){const _0x32905e=_0x1f937b;return{'name':_0xc182d0[_0x32905e(0xef)],'type':_0xc182d0[_0x32905e(0x118)][_0x32905e(0x140)]};});_0x3b349a['model']=_[_0x1f937b(0xdb)](_0x1d0935,_0x1f937b(0xea)),_0x3b349a[_0x1f937b(0xe2)]=_[_0x1f937b(0x136)](_0x3e697e[_0x1f937b(0xe2)]),_0x3b349a['filters']=_[_0x1f937b(0x11a)](_0x3b349a[_0x1f937b(0x16a)],_0x3b349a[_0x1f937b(0xe2)]),_0x57b14a[_0x1f937b(0xe5)]=_[_0x1f937b(0x11a)](_0x3b349a[_0x1f937b(0x16a)],qs['fields'](_0x3e697e[_0x1f937b(0xe2)][_0x1f937b(0x15b)])),_0x57b14a[_0x1f937b(0xe5)]=_0x57b14a['attributes'][_0x1f937b(0x13f)]?_0x57b14a[_0x1f937b(0xe5)]:_0x3b349a['model'];typeof _0x3e697e[_0x1f937b(0xe2)][_0x1f937b(0x158)]==='undefined'&&(_0x57b14a[_0x1f937b(0xf9)]=qs[_0x1f937b(0xf9)](_0x3e697e['query'][_0x1f937b(0xf9)]),_0x57b14a[_0x1f937b(0xf3)]=qs['offset'](_0x3e697e['query'][_0x1f937b(0xf3)]));_0x57b14a[_0x1f937b(0x125)]=qs[_0x1f937b(0x108)](_0x3e697e[_0x1f937b(0xe2)][_0x1f937b(0x108)]),_0x57b14a[_0x1f937b(0x148)]=qs[_0x1f937b(0x155)](_[_0x1f937b(0x138)](_0x3e697e[_0x1f937b(0xe2)],_0x3b349a['filters']),_0x1d0935);_0x3e697e[_0x1f937b(0xe2)]['filter']&&(_0x57b14a[_0x1f937b(0x148)]=_[_0x1f937b(0x174)](_0x57b14a[_0x1f937b(0x148)],{[Op['or']]:_[_0x1f937b(0xdb)](_0x1d0935,function(_0x45ecc1){const _0x53fd89=_0x1f937b;if(_0x45ecc1[_0x53fd89(0x118)]!==_0x53fd89(0x143)){const _0x1b6527={};return _0x1b6527[_0x45ecc1[_0x53fd89(0xea)]]={[Op['like']]:'%'+_0x3e697e[_0x53fd89(0xe2)]['filter']+'%'},_0x1b6527;}})}));_0x57b14a=_[_0x1f937b(0x174)]({},_0x57b14a,_0x3e697e[_0x1f937b(0xe8)]);const _0x1bddc8={'where':_0x57b14a[_0x1f937b(0x148)]};return db[_0x1f937b(0x16e)][_0x1f937b(0x156)](_0x1bddc8)['then'](function(_0x2ba344){const _0xf9a0b3=_0x1f937b;return _0x589694['count']=_0x2ba344,_0x3e697e[_0xf9a0b3(0xe2)][_0xf9a0b3(0x104)]&&(_0x57b14a[_0xf9a0b3(0x11b)]=[{'all':!![]}]),db[_0xf9a0b3(0x16e)][_0xf9a0b3(0x11c)](_0x57b14a);})[_0x1f937b(0x109)](function(_0xa3c036){const _0x3e51b8=_0x1f937b;return _0x589694[_0x3e51b8(0x16c)]=_0xa3c036,_0x589694;})[_0x1f937b(0x109)](respondWithFilteredResult(_0x3e626a,_0x57b14a))[_0x1f937b(0x10d)](handleError(_0x3e626a,null));},exports[a938_0x4c2b5f(0x10b)]=function(_0x4927e0,_0x13aed8){const _0x12603e=a938_0x4c2b5f;let _0x9f5f07={'raw':![],'where':{'id':_0x4927e0['params']['id']},'include':[{'model':db[_0x12603e(0xee)],'as':_0x12603e(0x15f)}]};const _0x39ec27={};return _0x39ec27[_0x12603e(0x16a)]=_[_0x12603e(0x136)](db[_0x12603e(0x16e)][_0x12603e(0x113)]),_0x39ec27[_0x12603e(0xe2)]=_[_0x12603e(0x136)](_0x4927e0[_0x12603e(0xe2)]),_0x39ec27[_0x12603e(0x155)]=_[_0x12603e(0x11a)](_0x39ec27[_0x12603e(0x16a)],_0x39ec27['query']),_0x9f5f07[_0x12603e(0xe5)]=_[_0x12603e(0x11a)](_0x39ec27[_0x12603e(0x16a)],qs[_0x12603e(0x15b)](_0x4927e0['query'][_0x12603e(0x15b)])),_0x9f5f07['attributes']=_0x9f5f07['attributes']['length']?_0x9f5f07[_0x12603e(0xe5)]:_0x39ec27['model'],_0x4927e0[_0x12603e(0xe2)][_0x12603e(0x104)]&&(_0x9f5f07['include']=[{'all':!![]}]),_0x9f5f07=_[_0x12603e(0x174)]({},_0x9f5f07,_0x4927e0[_0x12603e(0xe8)]),db[_0x12603e(0x16e)][_0x12603e(0x10c)](_0x9f5f07)[_0x12603e(0x109)](handleEntityNotFound(_0x13aed8,null))[_0x12603e(0x109)](respondWithResult(_0x13aed8,null))['catch'](handleError(_0x13aed8,null));},exports['create']=function(_0x49b110,_0x44f12e){const _0x4a05b3=a938_0x4c2b5f;return db[_0x4a05b3(0x16e)][_0x4a05b3(0x107)](_0x49b110[_0x4a05b3(0x14a)],{})['then'](function(_0x507c64){const _0xa8c78a=_0x4a05b3,_0x572d7f=_0x49b110[_0xa8c78a(0x11f)][_0xa8c78a(0x101)]({'plain':!![]});if(!_0x572d7f)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x572d7f[_0xa8c78a(0xe6)]===_0xa8c78a(0x11f)){const _0x1158e4=_0x507c64['get']({'plain':!![]}),_0x2dadc3=_0xa8c78a(0xf8);return db[_0xa8c78a(0x102)][_0xa8c78a(0x10c)]({'where':{'name':_0x2dadc3,'userProfileId':_0x572d7f['userProfileId']},'raw':!![]})['then'](function(_0x1c0f23){const _0x225a0e=_0xa8c78a;return _0x1c0f23&&_0x1c0f23['autoAssociation']===0x0?db[_0x225a0e(0x170)][_0x225a0e(0x107)]({'name':_0x1158e4[_0x225a0e(0xea)],'resourceId':_0x1158e4['id'],'type':_0x1c0f23['name'],'sectionId':_0x1c0f23['id']},{})['then'](function(){return _0x507c64;}):_0x507c64;})[_0xa8c78a(0x10d)](function(_0x211d2b){const _0x206761=_0xa8c78a;logger[_0x206761(0xff)](_0x206761(0x146),_0x211d2b);throw _0x211d2b;});}return _0x507c64;})[_0x4a05b3(0x109)](respondWithResult(_0x44f12e,0xc9))[_0x4a05b3(0x10d)](handleError(_0x44f12e,null));},exports['update']=function(_0x206425,_0x30c676){const _0x3272a3=a938_0x4c2b5f;return _0x206425[_0x3272a3(0x14a)]['id']&&delete _0x206425[_0x3272a3(0x14a)]['id'],db[_0x3272a3(0x16e)]['findOne']({'where':{'id':_0x206425[_0x3272a3(0x12b)]['id']},'include':[{'model':db[_0x3272a3(0xee)],'as':_0x3272a3(0x15f)}]})[_0x3272a3(0x109)](handleEntityNotFound(_0x30c676,null))[_0x3272a3(0x109)](saveUpdates(_0x206425[_0x3272a3(0x14a)],null))[_0x3272a3(0x109)](respondWithResult(_0x30c676,null))[_0x3272a3(0x10d)](handleError(_0x30c676,null));},exports['destroy']=function(_0x2c3135,_0xea2f17){const _0x217f6c=a938_0x4c2b5f;return db[_0x217f6c(0x16e)][_0x217f6c(0x10c)]({'where':{'id':_0x2c3135[_0x217f6c(0x12b)]['id']}})[_0x217f6c(0x109)](handleEntityNotFound(_0xea2f17,null))[_0x217f6c(0x109)](removeEntity(_0xea2f17,null))[_0x217f6c(0x10d)](handleError(_0xea2f17,null));},exports['describe']=function(_0x4d05e7,_0x16f649){const _0x3fc254=a938_0x4c2b5f;return db['WhatsappAccount'][_0x3fc254(0x13b)]()[_0x3fc254(0x109)](respondWithResult(_0x16f649,null))[_0x3fc254(0x10d)](handleError(_0x16f649,null));},exports[a938_0x4c2b5f(0x121)]=function(_0x46af0d,_0x22ee7c){const _0x1f0e5a=a938_0x4c2b5f;return _0x46af0d[_0x1f0e5a(0x14a)]['id']&&delete _0x46af0d['body']['id'],db['WhatsappAccount'][_0x1f0e5a(0x10c)]({'where':{'id':_0x46af0d[_0x1f0e5a(0x12b)]['id']}})[_0x1f0e5a(0x109)](handleEntityNotFound(_0x22ee7c,null))[_0x1f0e5a(0x109)](function(_0x51bc9b){const _0x3dea61=_0x1f0e5a;if(_0x51bc9b)return _0x46af0d[_0x3dea61(0x14a)][_0x3dea61(0x128)]=_0x51bc9b['id'],db[_0x3dea61(0x105)][_0x3dea61(0x107)](_0x46af0d[_0x3dea61(0x14a)]);})[_0x1f0e5a(0x109)](respondWithResult(_0x22ee7c,null))[_0x1f0e5a(0x10d)](handleError(_0x22ee7c,null));},exports[a938_0x4c2b5f(0xfc)]=function(_0x2adb2e,_0x2d982e){const _0x2fc6f4=a938_0x4c2b5f;let _0x1dfdb8={'raw':![],'where':{}};const _0xcfaee5={},_0x1e3c70={'count':0x0,'rows':[]};return db[_0x2fc6f4(0x16e)][_0x2fc6f4(0x10c)]({'where':{'id':_0x2adb2e[_0x2fc6f4(0x12b)]['id']}})['then'](handleEntityNotFound(_0x2d982e,null))['then'](function(_0x4316db){const _0x26e2b3=_0x2fc6f4;if(_0x4316db)return _0xcfaee5['model']=_['keys'](db[_0x26e2b3(0x105)]['rawAttributes']),_0xcfaee5[_0x26e2b3(0xe2)]=_[_0x26e2b3(0x136)](_0x2adb2e[_0x26e2b3(0xe2)]),_0xcfaee5[_0x26e2b3(0x155)]=_[_0x26e2b3(0x11a)](_0xcfaee5[_0x26e2b3(0x16a)],_0xcfaee5[_0x26e2b3(0xe2)]),_0x1dfdb8[_0x26e2b3(0xe5)]=_[_0x26e2b3(0x11a)](_0xcfaee5[_0x26e2b3(0x16a)],qs[_0x26e2b3(0x15b)](_0x2adb2e[_0x26e2b3(0xe2)][_0x26e2b3(0x15b)])),_0x1dfdb8[_0x26e2b3(0xe5)]=_0x1dfdb8[_0x26e2b3(0xe5)]['length']?_0x1dfdb8['attributes']:_0xcfaee5['model'],typeof _0x2adb2e[_0x26e2b3(0xe2)][_0x26e2b3(0x158)]===_0x26e2b3(0x165)&&(_0x1dfdb8[_0x26e2b3(0xf9)]=qs['limit'](_0x2adb2e[_0x26e2b3(0xe2)]['limit']),_0x1dfdb8['offset']=qs[_0x26e2b3(0xf3)](_0x2adb2e['query']['offset'])),_0x1dfdb8[_0x26e2b3(0x125)]=qs[_0x26e2b3(0x108)](_0x2adb2e['query'][_0x26e2b3(0x108)]),_0x1dfdb8['where']=qs[_0x26e2b3(0x155)](_[_0x26e2b3(0x138)](_0x2adb2e[_0x26e2b3(0xe2)],_0xcfaee5['filters'])),_0x1dfdb8['where'][_0x26e2b3(0x128)]=_0x4316db['id'],_0x2adb2e[_0x26e2b3(0xe2)][_0x26e2b3(0x152)]&&(_0x1dfdb8['where']=_[_0x26e2b3(0x174)](_0x1dfdb8[_0x26e2b3(0x148)],{[Op['or']]:_[_0x26e2b3(0xdb)](_0x1dfdb8['attributes'],function(_0x2f1cd2){const _0x2ae5d1=_0x26e2b3,_0x94480b={};return _0x94480b[_0x2f1cd2]={[Op['like']]:'%'+_0x2adb2e['query'][_0x2ae5d1(0x152)]+'%'},_0x94480b;})})),_0x1dfdb8=_[_0x26e2b3(0x174)]({},_0x1dfdb8,_0x2adb2e[_0x26e2b3(0xe8)]),db['Disposition'][_0x26e2b3(0x156)]({'where':_0x1dfdb8['where']})[_0x26e2b3(0x109)](function(_0x2b7a7c){const _0x53741c=_0x26e2b3;return _0x1e3c70[_0x53741c(0x156)]=_0x2b7a7c,_0x2adb2e[_0x53741c(0xe2)]['includeAll']&&(_0x1dfdb8['include']=[{'all':!![]}]),db[_0x53741c(0x105)][_0x53741c(0x11c)](_0x1dfdb8);})['then'](function(_0x9f0062){const _0x4bee5c=_0x26e2b3;return _0x1e3c70[_0x4bee5c(0x16c)]=_0x9f0062,_0x1e3c70;});})[_0x2fc6f4(0x109)](respondWithFilteredResult(_0x2d982e,_0x1dfdb8))[_0x2fc6f4(0x10d)](handleError(_0x2d982e,null));},exports[a938_0x4c2b5f(0x117)]=function(_0x77da71,_0x37f14c){const _0x3a861a=a938_0x4c2b5f;return db[_0x3a861a(0x16e)]['findOne']({'where':{'id':_0x77da71[_0x3a861a(0x12b)]['id']}})[_0x3a861a(0x109)](handleEntityNotFound(_0x37f14c,null))[_0x3a861a(0x109)](function(_0x136dc1){const _0x1cec0b=_0x3a861a;if(_0x136dc1)return _0x136dc1[_0x1cec0b(0x117)](_0x77da71[_0x1cec0b(0xe2)][_0x1cec0b(0xdd)]);})[_0x3a861a(0x109)](respondWithStatusCode(_0x37f14c,null))[_0x3a861a(0x10d)](handleError(_0x37f14c,null));},exports[a938_0x4c2b5f(0x14e)]=function(_0x637acb,_0x275b6c){const _0x5e03d4=a938_0x4c2b5f;return _0x637acb[_0x5e03d4(0x14a)]['id']&&delete _0x637acb[_0x5e03d4(0x14a)]['id'],db[_0x5e03d4(0x16e)][_0x5e03d4(0x10c)]({'where':{'id':_0x637acb['params']['id']}})[_0x5e03d4(0x109)](handleEntityNotFound(_0x275b6c,null))[_0x5e03d4(0x109)](function(_0xa87745){const _0x167fe3=_0x5e03d4;if(_0xa87745)return _0x637acb[_0x167fe3(0x14a)][_0x167fe3(0x128)]=_0xa87745['id'],db[_0x167fe3(0xe7)][_0x167fe3(0x107)](_0x637acb[_0x167fe3(0x14a)]);})[_0x5e03d4(0x109)](respondWithResult(_0x275b6c,null))[_0x5e03d4(0x10d)](handleError(_0x275b6c,null));},exports[a938_0x4c2b5f(0x124)]=function(_0x26516a,_0x148367){const _0x1ce310=a938_0x4c2b5f;let _0x2fde0d={'raw':![],'where':{}};const _0x197434={},_0x254441={'count':0x0,'rows':[]};return db[_0x1ce310(0x16e)][_0x1ce310(0x10c)]({'where':{'id':_0x26516a[_0x1ce310(0x12b)]['id']}})[_0x1ce310(0x109)](handleEntityNotFound(_0x148367,null))[_0x1ce310(0x109)](function(_0x27f25b){const _0x43ca9e=_0x1ce310;if(_0x27f25b)return _0x197434[_0x43ca9e(0x16a)]=_['keys'](db[_0x43ca9e(0xe7)][_0x43ca9e(0x113)]),_0x197434['query']=_[_0x43ca9e(0x136)](_0x26516a[_0x43ca9e(0xe2)]),_0x197434[_0x43ca9e(0x155)]=_['intersection'](_0x197434['model'],_0x197434[_0x43ca9e(0xe2)]),_0x2fde0d['attributes']=_[_0x43ca9e(0x11a)](_0x197434[_0x43ca9e(0x16a)],qs['fields'](_0x26516a[_0x43ca9e(0xe2)][_0x43ca9e(0x15b)])),_0x2fde0d['attributes']=_0x2fde0d[_0x43ca9e(0xe5)][_0x43ca9e(0x13f)]?_0x2fde0d[_0x43ca9e(0xe5)]:_0x197434[_0x43ca9e(0x16a)],typeof _0x26516a[_0x43ca9e(0xe2)][_0x43ca9e(0x158)]==='undefined'&&(_0x2fde0d[_0x43ca9e(0xf9)]=qs[_0x43ca9e(0xf9)](_0x26516a[_0x43ca9e(0xe2)][_0x43ca9e(0xf9)]),_0x2fde0d[_0x43ca9e(0xf3)]=qs['offset'](_0x26516a['query'][_0x43ca9e(0xf3)])),_0x2fde0d[_0x43ca9e(0x125)]=qs[_0x43ca9e(0x108)](_0x26516a[_0x43ca9e(0xe2)][_0x43ca9e(0x108)]),_0x2fde0d[_0x43ca9e(0x148)]=qs[_0x43ca9e(0x155)](_[_0x43ca9e(0x138)](_0x26516a['query'],_0x197434['filters'])),_0x2fde0d['where'][_0x43ca9e(0x128)]=_0x27f25b['id'],_0x26516a['query'][_0x43ca9e(0x152)]&&(_0x2fde0d[_0x43ca9e(0x148)]=_['merge'](_0x2fde0d[_0x43ca9e(0x148)],{[Op['or']]:_[_0x43ca9e(0xdb)](_0x2fde0d[_0x43ca9e(0xe5)],function(_0x18a5b4){const _0xe8f8a7=_0x43ca9e,_0x2c9f69={};return _0x2c9f69[_0x18a5b4]={[Op[_0xe8f8a7(0x160)]]:'%'+_0x26516a[_0xe8f8a7(0xe2)][_0xe8f8a7(0x152)]+'%'},_0x2c9f69;})})),_0x2fde0d=_[_0x43ca9e(0x174)]({},_0x2fde0d,_0x26516a[_0x43ca9e(0xe8)]),db['CannedAnswer']['count']({'where':_0x2fde0d[_0x43ca9e(0x148)]})[_0x43ca9e(0x109)](function(_0x57edcf){const _0x258fa5=_0x43ca9e;return _0x254441[_0x258fa5(0x156)]=_0x57edcf,_0x26516a['query'][_0x258fa5(0x104)]&&(_0x2fde0d[_0x258fa5(0x11b)]=[{'all':!![]}]),db[_0x258fa5(0xe7)][_0x258fa5(0x11c)](_0x2fde0d);})['then'](function(_0x468b46){const _0xe14e02=_0x43ca9e;return _0x254441[_0xe14e02(0x16c)]=_0x468b46,_0x254441;});})[_0x1ce310(0x109)](respondWithFilteredResult(_0x148367,_0x2fde0d))[_0x1ce310(0x10d)](handleError(_0x148367,null));},exports[a938_0x4c2b5f(0x119)]=function(_0x493222,_0xdef93c){const _0x3a170f=a938_0x4c2b5f;return db[_0x3a170f(0x16e)][_0x3a170f(0x10c)]({'where':{'id':_0x493222[_0x3a170f(0x12b)]['id']}})[_0x3a170f(0x109)](handleEntityNotFound(_0xdef93c,null))['then'](function(_0x274653){const _0x4a9e07=_0x3a170f;if(_0x274653)return _0x274653[_0x4a9e07(0x119)](_0x493222[_0x4a9e07(0xe2)][_0x4a9e07(0xdd)]);})[_0x3a170f(0x109)](respondWithStatusCode(_0xdef93c,null))[_0x3a170f(0x10d)](handleError(_0xdef93c,null));},exports[a938_0x4c2b5f(0xde)]=function(_0x49e862,_0x388f05){const _0x39f003=a938_0x4c2b5f;return db['WhatsappAccount']['findOne']({'where':{'id':_0x49e862['params']['id']}})[_0x39f003(0x109)](function(_0x467463){const _0x108207=_0x39f003;if(_0x467463)return _0x467463['addAgents'](_0x49e862[_0x108207(0x14a)]['ids'],{'through':_[_0x108207(0x168)](_0x49e862[_0x108207(0x14a)],[_0x108207(0xdd),'id'])})['then'](function(_0x390551){const _0x136e90=_0x108207;for(let _0x5c6399=0x0;_0x5c6399<_0x49e862[_0x136e90(0x14a)][_0x136e90(0xdd)][_0x136e90(0x13f)];_0x5c6399+=0x1){socket['emit'](_0x136e90(0xe0),{'UserId':_0x49e862[_0x136e90(0x14a)]['ids'][_0x5c6399],'WhatsappAccountId':_0x49e862[_0x136e90(0x12b)]['id']});}return _0x390551;});})[_0x39f003(0x109)](respondWithResult(_0x388f05,null))[_0x39f003(0x10d)](handleError(_0x388f05,null));},exports['removeAgents']=function(_0x2feeee,_0x14b5b6){const _0x40e6cf=a938_0x4c2b5f;return db[_0x40e6cf(0x16e)][_0x40e6cf(0x10c)]({'where':{'id':_0x2feeee[_0x40e6cf(0x12b)]['id']}})[_0x40e6cf(0x109)](handleEntityNotFound(_0x14b5b6,null))[_0x40e6cf(0x109)](function(_0x4c2644){const _0x142192=_0x40e6cf;if(_0x4c2644)return _0x4c2644[_0x142192(0x157)](_0x2feeee['query'][_0x142192(0xdd)])[_0x142192(0x109)](function(){const _0x3409a4=_0x142192;if(_[_0x3409a4(0x159)](_0x2feeee['query'][_0x3409a4(0xdd)]))for(let _0x2500fe=0x0;_0x2500fe<_0x2feeee[_0x3409a4(0xe2)][_0x3409a4(0xdd)]['length'];_0x2500fe+=0x1){socket[_0x3409a4(0xf6)](_0x3409a4(0xed),{'UserId':Number(_0x2feeee[_0x3409a4(0xe2)]['ids'][_0x2500fe]),'WhatsappAccountId':Number(_0x2feeee[_0x3409a4(0x12b)]['id'])});}else socket[_0x3409a4(0xf6)](_0x3409a4(0xed),{'UserId':Number(_0x2feeee[_0x3409a4(0xe2)][_0x3409a4(0xdd)]),'WhatsappAccountId':Number(_0x2feeee['params']['id'])});});})[_0x40e6cf(0x109)](respondWithStatusCode(_0x14b5b6,null))[_0x40e6cf(0x10d)](handleError(_0x14b5b6,null));},exports[a938_0x4c2b5f(0xf1)]=function(_0x5e7be1,_0x1c0b92){const _0x225923=a938_0x4c2b5f;let _0x5c63d5={};const _0x18f4ed={};let _0x4ff55f,_0x3b4930;return db[_0x225923(0x16e)]['findOne']({'where':{'id':_0x5e7be1[_0x225923(0x12b)]['id']}})[_0x225923(0x109)](handleEntityNotFound(_0x1c0b92,null))[_0x225923(0x109)](function(_0x6df7d1){const _0x4676b4=_0x225923;if(_0x6df7d1)return _0x4ff55f=_0x6df7d1,_0x18f4ed[_0x4676b4(0x16a)]=_[_0x4676b4(0x136)](db[_0x4676b4(0xfd)][_0x4676b4(0x113)]),_0x18f4ed[_0x4676b4(0xe2)]=_[_0x4676b4(0x136)](_0x5e7be1[_0x4676b4(0xe2)]),_0x18f4ed['filters']=_[_0x4676b4(0x11a)](_0x18f4ed['model'],_0x18f4ed[_0x4676b4(0xe2)]),_0x5c63d5[_0x4676b4(0xe5)]=_[_0x4676b4(0x11a)](_0x18f4ed[_0x4676b4(0x16a)],qs[_0x4676b4(0x15b)](_0x5e7be1[_0x4676b4(0xe2)][_0x4676b4(0x15b)])),_0x5c63d5[_0x4676b4(0xe5)]=_0x5c63d5['attributes'][_0x4676b4(0x13f)]?_0x5c63d5[_0x4676b4(0xe5)]:_0x18f4ed[_0x4676b4(0x16a)],_0x5c63d5['order']=qs[_0x4676b4(0x108)](_0x5e7be1[_0x4676b4(0xe2)][_0x4676b4(0x108)]),_0x5c63d5[_0x4676b4(0x148)]=qs[_0x4676b4(0x155)](_[_0x4676b4(0x138)](_0x5e7be1[_0x4676b4(0xe2)],_0x18f4ed[_0x4676b4(0x155)])),_0x5e7be1['query']['filter']&&(_0x5c63d5[_0x4676b4(0x148)]=_[_0x4676b4(0x174)](_0x5c63d5[_0x4676b4(0x148)],{[Op['or']]:_[_0x4676b4(0xdb)](_0x5c63d5['attributes'],function(_0x5a4892){const _0x443d6f=_0x4676b4,_0x3de42a={};return _0x3de42a[_0x5a4892]={[Op[_0x443d6f(0x160)]]:'%'+_0x5e7be1[_0x443d6f(0xe2)]['filter']+'%'},_0x3de42a;})})),_0x5c63d5=_['merge']({},_0x5c63d5,_0x5e7be1[_0x4676b4(0xe8)]),_0x4ff55f[_0x4676b4(0xf1)](_0x5c63d5);})[_0x225923(0x109)](function(_0xcee2b8){const _0x229a6f=_0x225923;if(_0xcee2b8)return _0x3b4930=_0xcee2b8['length'],typeof _0x5e7be1['query'][_0x229a6f(0x158)]===_0x229a6f(0x165)&&(_0x5c63d5[_0x229a6f(0xf9)]=qs[_0x229a6f(0xf9)](_0x5e7be1['query'][_0x229a6f(0xf9)]),_0x5c63d5['offset']=qs[_0x229a6f(0xf3)](_0x5e7be1[_0x229a6f(0xe2)]['offset'])),_0x4ff55f[_0x229a6f(0xf1)](_0x5c63d5);})['then'](function(_0x24f73b){if(_0x24f73b)return _0x24f73b?{'count':_0x3b4930,'rows':_0x24f73b}:null;})[_0x225923(0x109)](respondWithResult(_0x1c0b92,null))[_0x225923(0x10d)](handleError(_0x1c0b92,null));},exports[a938_0x4c2b5f(0x126)]=function(_0x2a03f2,_0x2dfafc){const _0x415bae=a938_0x4c2b5f;return db[_0x415bae(0x16e)][_0x415bae(0x10c)]({'where':{'id':_0x2a03f2[_0x415bae(0x12b)]['id']}})[_0x415bae(0x109)](handleEntityNotFound(_0x2dfafc,null))[_0x415bae(0x109)](function(_0x50cdfd){const _0x4efc1f=_0x415bae;if(_0x50cdfd)return db[_0x4efc1f(0x114)]['transaction'](function(_0x267130){const _0x210347=_0x4efc1f;return db[_0x210347(0x141)][_0x210347(0xfa)]({'where':{'WhatsappAccountId':_0x2a03f2[_0x210347(0x12b)]['id']},'transaction':_0x267130})[_0x210347(0x109)](function(){const _0x1cca9f=_0x210347,_0x3f3baa=_[_0x1cca9f(0xdb)](_0x2a03f2[_0x1cca9f(0x14a)],function(_0x1a940e){const _0x552102=_0x1cca9f;return _0x1a940e[_0x552102(0x128)]=_0x2a03f2[_0x552102(0x12b)]['id'],_0x1a940e;});return db[_0x1cca9f(0x141)][_0x1cca9f(0x161)](_0x3f3baa,{'transaction':_0x267130});});})[_0x4efc1f(0x109)](function(){const _0x260933=_0x4efc1f;return db[_0x260933(0x141)]['findAndCountAll']({'where':{'WhatsappAccountId':_0x2a03f2[_0x260933(0x12b)]['id']},'order':_0x260933(0x120)});});})['then'](respondWithResult(_0x2dfafc,null))[_0x415bae(0x10d)](handleError(_0x2dfafc,null));},exports[a938_0x4c2b5f(0x110)]=function(_0x4bcd99,_0x572721){const _0x45ee4b=a938_0x4c2b5f;let _0x51356b={};const _0x15bc65={};let _0x46cf2c,_0x31a36b;return db[_0x45ee4b(0x16e)]['findOne']({'where':{'id':_0x4bcd99[_0x45ee4b(0x12b)]['id']}})[_0x45ee4b(0x109)](handleEntityNotFound(_0x572721,null))[_0x45ee4b(0x109)](function(_0xcd66e5){const _0x45af6a=_0x45ee4b;if(_0xcd66e5)return _0x46cf2c=_0xcd66e5,_0x15bc65[_0x45af6a(0x16a)]=_[_0x45af6a(0x136)](db[_0x45af6a(0x141)][_0x45af6a(0x113)]),_0x15bc65[_0x45af6a(0xe2)]=_[_0x45af6a(0x136)](_0x4bcd99['query']),_0x15bc65[_0x45af6a(0x155)]=_[_0x45af6a(0x11a)](_0x15bc65[_0x45af6a(0x16a)],_0x15bc65[_0x45af6a(0xe2)]),_0x51356b[_0x45af6a(0xe5)]=_['intersection'](_0x15bc65['model'],qs['fields'](_0x4bcd99[_0x45af6a(0xe2)][_0x45af6a(0x15b)])),_0x51356b['attributes']=_0x51356b[_0x45af6a(0xe5)]['length']?_0x51356b[_0x45af6a(0xe5)]:_0x15bc65[_0x45af6a(0x16a)],_0x51356b[_0x45af6a(0x125)]=qs['sort'](_0x4bcd99[_0x45af6a(0xe2)][_0x45af6a(0x108)]),_0x51356b[_0x45af6a(0x148)]=qs['filters'](_[_0x45af6a(0x138)](_0x4bcd99['query'],_0x15bc65[_0x45af6a(0x155)])),_0x4bcd99[_0x45af6a(0xe2)][_0x45af6a(0x152)]&&(_0x51356b[_0x45af6a(0x148)]=_[_0x45af6a(0x174)](_0x51356b['where'],{[Op['or']]:_[_0x45af6a(0xdb)](_0x51356b[_0x45af6a(0xe5)],function(_0x219fbe){const _0x3fdb5d=_0x45af6a,_0x192176={};return _0x192176[_0x219fbe]={[Op[_0x3fdb5d(0x160)]]:'%'+_0x4bcd99['query'][_0x3fdb5d(0x152)]+'%'},_0x192176;})})),_0x51356b=_[_0x45af6a(0x174)]({},_0x51356b,_0x4bcd99[_0x45af6a(0xe8)]),_0x46cf2c[_0x45af6a(0x110)](_0x51356b);})['then'](function(_0x20ee2a){const _0xc9b91f=_0x45ee4b;if(_0x20ee2a)return _0x31a36b=_0x20ee2a[_0xc9b91f(0x13f)],typeof _0x4bcd99[_0xc9b91f(0xe2)][_0xc9b91f(0x158)]===_0xc9b91f(0x165)&&(_0x51356b[_0xc9b91f(0xf9)]=qs['limit'](_0x4bcd99[_0xc9b91f(0xe2)][_0xc9b91f(0xf9)]),_0x51356b['offset']=qs['offset'](_0x4bcd99[_0xc9b91f(0xe2)][_0xc9b91f(0xf3)])),_0x46cf2c[_0xc9b91f(0x110)](_0x51356b);})[_0x45ee4b(0x109)](function(_0x30bc2d){if(_0x30bc2d)return _0x30bc2d?{'count':_0x31a36b,'rows':_0x30bc2d}:null;})[_0x45ee4b(0x109)](respondWithResult(_0x572721,null))[_0x45ee4b(0x10d)](handleError(_0x572721,null));},exports[a938_0x4c2b5f(0x14b)]=function(_0x6275ab,_0x2b5aae){const _0x44aaeb=a938_0x4c2b5f,_0x76fb28={'channel':_0x44aaeb(0x172)};let _0x3aae23=[],_0x3d5b91=[];const _0xf8ebd3={};return db[_0x44aaeb(0x16e)][_0x44aaeb(0x10c)]({'where':{'id':_0x6275ab[_0x44aaeb(0x12b)]['id']},'include':[{'model':db[_0x44aaeb(0x141)],'as':_0x44aaeb(0x14f)}]})[_0x44aaeb(0x109)](handleEntityNotFound(_0x2b5aae,null))[_0x44aaeb(0x109)](function(_0x4d7d76){const _0x375967=_0x44aaeb;return _0x76fb28['account']=_0x4d7d76,_0x76fb28['applications']=_['orderBy'](_0x4d7d76[_0x375967(0x14f)],[_0x375967(0x120)],[_0x375967(0x130)]),_0x76fb28[_0x375967(0x106)][_0x375967(0x14f)]&&delete _0x76fb28[_0x375967(0x106)]['Applications'],db[_0x375967(0x171)]['describe']();})[_0x44aaeb(0x109)](function(_0x3c7afb){const _0x28b638=_0x44aaeb;if(!_0x3c7afb)throw new ValidationError(_0x28b638(0xda));_0x3aae23=_[_0x28b638(0x122)](_['keys'](_0x3c7afb),['createdAt',_0x28b638(0x147)]),_0x3d5b91=_[_0x28b638(0x122)](_[_0x28b638(0x136)](_0x3c7afb),['createdAt',_0x28b638(0x147),'CompanyId',_0x28b638(0xd8)]),_0x76fb28[_0x28b638(0x14a)]={'mapKey':_0x28b638(0xe1)};_0x76fb28['account'][_0x28b638(0x118)]&&_0x76fb28[_0x28b638(0x106)]['type']==='twilio'&&(_0x76fb28['body'][_0x28b638(0x12a)]=_0x6275ab[_0x28b638(0x14a)][_0x28b638(0x15d)]['replace']('whatsapp:',''),_0x76fb28[_0x28b638(0x14a)][_0x28b638(0x14a)]=_0x6275ab[_0x28b638(0x14a)][_0x28b638(0x14c)],_0x76fb28['body'][_0x28b638(0x145)]=_0x6275ab[_0x28b638(0x14a)][_0x28b638(0x154)]);_0x76fb28[_0x28b638(0x14a)]['id']&&delete _0x76fb28['body']['id'];if(_[_0x28b638(0xec)](_0x76fb28['body'][_0x28b638(0x12a)]))throw new ValidationError(_0x28b638(0x13e));if(_[_0x28b638(0xec)](_0x76fb28[_0x28b638(0x14a)][_0x28b638(0x14a)])||_0x76fb28[_0x28b638(0x14a)]['body']==='')throw new ValidationError(_0x28b638(0x166));if(_[_0x28b638(0xec)](_0x76fb28[_0x28b638(0x14a)][_0x28b638(0x169)]))throw new ValidationError(_0x28b638(0x149)+_0x3d5b91);if(!_[_0x28b638(0x111)](_0x3d5b91,_0x76fb28[_0x28b638(0x14a)]['mapKey']))throw new ValidationError(_0x28b638(0x15c)+_0x3d5b91);return _0xf8ebd3[_0x76fb28[_0x28b638(0x14a)]['mapKey']]=_0x76fb28[_0x28b638(0x14a)][_0x28b638(0x12a)],db[_0x28b638(0xfe)][_0x28b638(0x10c)]({'where':{'id':_0x76fb28['account'][_0x28b638(0xd8)]},'include':[{'model':db['CmContact'],'as':_0x28b638(0xf4),'where':_0xf8ebd3,'limit':0x1,'order':[[_0x28b638(0x147),_0x28b638(0xdc)]]}]});})[_0x44aaeb(0x109)](handleEntityNotFound(_0x2b5aae,null))[_0x44aaeb(0x109)](function(_0xa4175c){const _0x4a2df6=_0x44aaeb;if(_0xa4175c){_0x76fb28[_0x4a2df6(0x12d)]=_[_0x4a2df6(0x168)](_0xa4175c,[_0x4a2df6(0xf4)]);if(_0xa4175c['Contacts'][_0x4a2df6(0x13f)])return _0xa4175c[_0x4a2df6(0xf4)][0x0];const _0x59ccb7=_[_0x4a2df6(0xf0)](_0x76fb28['body'],{'firstName':_0x76fb28['body']['from'],'ListId':_0xa4175c['id']});return _0x59ccb7[_0x76fb28[_0x4a2df6(0x14a)][_0x4a2df6(0x169)]]=_0x76fb28[_0x4a2df6(0x14a)][_0x4a2df6(0x12a)],db['CmContact'][_0x4a2df6(0x107)](_0x59ccb7,{'fields':_0x3aae23,'raw':!![]});}})['then'](handleEntityNotFound(_0x2b5aae,null))[_0x44aaeb(0x109)](function(_0xaf7c35){const _0x50ba2d=_0x44aaeb;if(_0xaf7c35){_0x76fb28['contact']=_0xaf7c35;const _0x13c69e={'ContactId':_0xaf7c35['id'],'phone':_0x76fb28[_0x50ba2d(0x14a)]['from'],'WhatsappAccountId':_0x6275ab[_0x50ba2d(0x12b)]['id']},_0x286541={'ContactId':_0xaf7c35['id'],'WhatsappAccountId':_0x6275ab[_0x50ba2d(0x12b)]['id'],'closed':![]};return db[_0x50ba2d(0x142)][_0x50ba2d(0x10c)]({'where':_0x286541})[_0x50ba2d(0x109)](function(_0xbba979){const _0x4e334c=_0x50ba2d;if(_0xbba979)return[_0xbba979,![]];return db[_0x4e334c(0x142)][_0x4e334c(0x107)](_0x13c69e)[_0x4e334c(0x109)](function(_0x5a1d06){return[_0x5a1d06,!![]];});});}})[_0x44aaeb(0x109)](function([_0x1139a7,_0x2dbea4]){const _0x1c436a=_0x44aaeb;return _0x76fb28[_0x1c436a(0x12e)]=_0x1139a7[_0x1c436a(0x101)]({'plain':!![]}),_0x76fb28[_0x1c436a(0x12e)]['created']=![],_0x2dbea4&&(_0x76fb28[_0x1c436a(0x106)][_0x1c436a(0x153)]&&_0x76fb28[_0x1c436a(0x132)][_0x1c436a(0x144)]({'id':0x0,'priority':_0x76fb28['applications'][_0x1c436a(0x13f)]+0x1,'app':_0x1c436a(0xf5),'appdata':_0x1c436a(0x135),'interval':_0x1c436a(0x16d)}),_0x76fb28[_0x1c436a(0x12e)][_0x1c436a(0xf7)]=!![]),db[_0x1c436a(0x123)][_0x1c436a(0x107)]({'phone':_0x76fb28['body'][_0x1c436a(0x12a)],'messageId':_0x76fb28[_0x1c436a(0x14a)][_0x1c436a(0x145)],'body':_0x76fb28['body'][_0x1c436a(0x14a)],'WhatsappAccountId':_0x6275ab[_0x1c436a(0x12b)]['id'],'WhatsappInteractionId':_0x1139a7['id'],'direction':'in','ContactId':_0x1139a7[_0x1c436a(0x164)],'AttachmentId':_0x76fb28[_0x1c436a(0x14a)][_0x1c436a(0x16f)]});})['then'](function(_0x3f3713){const _0x23c8c3=_0x44aaeb;_0x76fb28[_0x23c8c3(0x167)]=_0x3f3713;if(_0x76fb28['interaction']['UserId'])return db[_0x23c8c3(0xfd)][_0x23c8c3(0x10c)]({'attributes':['id',_0x23c8c3(0xea)],'where':{'id':_0x76fb28[_0x23c8c3(0x12e)][_0x23c8c3(0x131)]}})['then'](function(_0x528d57){const _0x33c9a4=_0x23c8c3;return _0x528d57&&_0x76fb28[_0x33c9a4(0x132)]['unshift']({'id':0x0,'priority':0x0,'app':_0x33c9a4(0x133),'appdata':_0x528d57[_0x33c9a4(0xea)]+','+(_0x76fb28[_0x33c9a4(0x106)][_0x33c9a4(0xe4)]||0xa),'interval':_0x33c9a4(0x16d)}),respondWithRpcPromise(_0x33c9a4(0x10e),_0x33c9a4(0xe3),_0x76fb28);});return respondWithRpcPromise(_0x23c8c3(0x10e),'startRouting',_0x76fb28);})[_0x44aaeb(0x109)](function(_0x50d21f){const _0x2940a6=_0x44aaeb;if(_0x50d21f){const _0x3f5379=0xc8,_0x5be42b=_0x2940a6(0x127);return logger['info']('WhatsappAccount,\x20%s,\x20%s,\x20%s',_0x5be42b,_0x3f5379,_0x2940a6(0x13d)),logger[_0x2940a6(0x112)](_0x2940a6(0x12f),_0x5be42b,_0x3f5379,_0x2940a6(0x13d),JSON[_0x2940a6(0x15a)](_0x50d21f)),_0x76fb28[_0x2940a6(0x106)][_0x2940a6(0x118)]===_0x2940a6(0x162)?_0x2b5aae[_0x2940a6(0x173)](_0x3f5379)[_0x2940a6(0x150)](_0x2940a6(0xdf),'text/xml')[_0x2940a6(0x129)](_0x2940a6(0x115)):_0x2b5aae['status'](_0x3f5379)[_0x2940a6(0x10a)](_0x50d21f);}})[_0x44aaeb(0x10d)](handleError(_0x2b5aae,null));},exports[a938_0x4c2b5f(0x129)]=function(_0x5cad55,_0x412dd8){const _0x145cb9=a938_0x4c2b5f;let _0x5432cb,_0x2f9f78;if(_[_0x145cb9(0xec)](_0x5cad55['body'][_0x145cb9(0x14a)])||_0x5cad55[_0x145cb9(0x14a)][_0x145cb9(0x14a)]==='')throw new ValidationError(_0x145cb9(0x166));if(_[_0x145cb9(0xec)](_0x5cad55['body']['to']))throw new ValidationError('to\x20is\x20mandatory');const _0x394aa3=_0x5cad55[_0x145cb9(0x14a)]['to'];return db[_0x145cb9(0x16e)]['findOne']({'where':{'id':_0x5cad55[_0x145cb9(0x12b)]['id']},'include':[{'model':db[_0x145cb9(0xfe)],'as':_0x145cb9(0x13a),'include':[{'model':db[_0x145cb9(0x171)],'as':_0x145cb9(0xf4),'where':{'mobile':_0x394aa3},'limit':0x1,'order':[[_0x145cb9(0x147),'DESC']]}]}]})[_0x145cb9(0x109)](handleEntityNotFound(_0x412dd8,null))[_0x145cb9(0x109)](function(_0x5a7e3b){const _0x452eff=_0x145cb9;if(_0x5a7e3b&&_0x5a7e3b[_0x452eff(0x13a)]){_0x5432cb=_0x5a7e3b['get']({'plain':!![]});if(_0x5432cb[_0x452eff(0x13a)]&&_0x5432cb[_0x452eff(0x13a)][_0x452eff(0xf4)][_0x452eff(0x13f)])return _0x5432cb[_0x452eff(0x13a)][_0x452eff(0xf4)][0x0];return db['CmContact'][_0x452eff(0x107)](_[_0x452eff(0xf0)](_0x5cad55['body'],{'firstName':_0x394aa3,'mobile':_0x394aa3,'phone':_0x394aa3,'ListId':_0x5432cb[_0x452eff(0xd8)]}));}})[_0x145cb9(0x109)](handleEntityNotFound(_0x412dd8,null))['then'](function(_0x4a9612){const _0x10942f=_0x145cb9;if(_0x4a9612)return _0x2f9f78=_0x4a9612,db[_0x10942f(0x142)][_0x10942f(0x10c)]({'where':{'ContactId':_0x2f9f78['id'],'closed':![],'WhatsappAccountId':_0x5432cb['id']}})[_0x10942f(0x109)](function(_0x3500f1){const _0x125e99=_0x10942f;if(_0x3500f1)return[_0x3500f1,![]];return db[_0x125e99(0x142)][_0x125e99(0x107)]({'UserId':_0x5cad55[_0x125e99(0x11f)]['id'],'ContactId':_0x2f9f78['id'],'WhatsappAccountId':_0x5432cb['id'],'phone':_0x394aa3,'firstMsgDirection':_0x125e99(0x11d),'Messages':[_['merge'](_0x5cad55[_0x125e99(0x14a)],{'read':![],'body':_0x5cad55['body'][_0x125e99(0x14a)],'phone':_0x394aa3,'WhatsappAccountId':_0x5432cb['id'],'UserId':_0x5cad55[_0x125e99(0x11f)]['id'],'ContactId':_0x2f9f78['id']})]},{'include':[{'model':db[_0x125e99(0x123)],'as':_0x125e99(0x151)}]})['then'](function(_0x4694ce){return[_0x4694ce,!![]];});});})[_0x145cb9(0x109)](function([_0x44b984,_0x1a2f19]){const _0x5b4ad6=_0x145cb9;if(_0x1a2f19)return _0x44b984;return db[_0x5b4ad6(0x123)]['create'](_[_0x5b4ad6(0x174)](_0x5cad55[_0x5b4ad6(0x14a)],{'read':![],'body':_0x5cad55[_0x5b4ad6(0x14a)][_0x5b4ad6(0x14a)],'phone':_0x394aa3,'WhatsappAccountId':_0x5432cb['id'],'WhatsappInteractionId':_0x44b984['id'],'UserId':_0x5cad55[_0x5b4ad6(0x11f)]['id'],'ContactId':_0x2f9f78['id']}))[_0x5b4ad6(0x109)](function(_0x438369){const _0x37c80a=_0x5b4ad6;return _0x44b984[_0x37c80a(0xf2)][_0x37c80a(0x151)]=[],_0x44b984[_0x37c80a(0xf2)][_0x37c80a(0x151)][_0x37c80a(0x144)](_0x438369[_0x37c80a(0xf2)]),_0x44b984;});})[_0x145cb9(0x109)](respondWithResult(_0x412dd8,null))[_0x145cb9(0x10d)](handleError(_0x412dd8,null));}; \ No newline at end of file diff --git a/server/api/whatsappAccount/whatsappAccount.events.js b/server/api/whatsappAccount/whatsappAccount.events.js index e0efaad..e34e840 100644 --- a/server/api/whatsappAccount/whatsappAccount.events.js +++ b/server/api/whatsappAccount/whatsappAccount.events.js @@ -1 +1 @@ -const a784_0x3c36=['update','exports','events','undefined','setMaxListeners','addHook','../../mysqldb','WhatsappAccount','remove','emit'];(function(_0x4844cf,_0x3c36c4){const _0x5346b7=function(_0x27df1a){while(--_0x27df1a){_0x4844cf['push'](_0x4844cf['shift']());}};_0x5346b7(++_0x3c36c4);}(a784_0x3c36,0x199));const a784_0x5346=function(_0x4844cf,_0x3c36c4){_0x4844cf=_0x4844cf-0x0;let _0x5346b7=a784_0x3c36[_0x4844cf];return _0x5346b7;};const _0x18f393=a784_0x5346;'use strict';const EventEmitter=require(_0x18f393('0x3')),WhatsappAccount=require(_0x18f393('0x7'))['db'][_0x18f393('0x8')],WhatsappAccountEvents=new EventEmitter();WhatsappAccountEvents[_0x18f393('0x5')](0x0);const events={'afterCreate':'save','afterUpdate':_0x18f393('0x1'),'afterDestroy':_0x18f393('0x9')};function emitEvent(_0x27df1a){return function(_0x59ef7a){const _0x15126f=a784_0x5346;WhatsappAccountEvents[_0x15126f('0x0')](_0x27df1a+':'+_0x59ef7a['id'],_0x59ef7a),WhatsappAccountEvents[_0x15126f('0x0')](_0x27df1a,_0x59ef7a);};}for(const e in events){if(typeof events[e]!==_0x18f393('0x4')){const event=events[e];WhatsappAccount[_0x18f393('0x6')](e,emitEvent(event));}}module[_0x18f393('0x2')]=WhatsappAccountEvents; \ No newline at end of file +const a939_0x2ce5=['addHook','emit','update','setMaxListeners','save','events','../../mysqldb','undefined','WhatsappAccount'];(function(_0x8ed1,_0x48ec63){const _0x2ce5e9=function(_0x155b5c){while(--_0x155b5c){_0x8ed1['push'](_0x8ed1['shift']());}};_0x2ce5e9(++_0x48ec63);}(a939_0x2ce5,0x78));const a939_0x155b=function(_0x8ed1,_0x48ec63){_0x8ed1=_0x8ed1-0x6e;let _0x2ce5e9=a939_0x2ce5[_0x8ed1];return _0x2ce5e9;};const a939_0xdd253b=a939_0x155b;'use strict';const EventEmitter=require(a939_0xdd253b(0x70)),WhatsappAccount=require(a939_0xdd253b(0x71))['db'][a939_0xdd253b(0x73)],WhatsappAccountEvents=new EventEmitter();WhatsappAccountEvents[a939_0xdd253b(0x6e)](0x0);const events={'afterCreate':a939_0xdd253b(0x6f),'afterUpdate':a939_0xdd253b(0x76),'afterDestroy':'remove'};function emitEvent(_0xb73389){return function(_0x13e908){const _0x40d185=a939_0x155b;WhatsappAccountEvents[_0x40d185(0x75)](_0xb73389+':'+_0x13e908['id'],_0x13e908),WhatsappAccountEvents[_0x40d185(0x75)](_0xb73389,_0x13e908);};}for(const e in events){if(typeof events[e]!==a939_0xdd253b(0x72)){const event=events[e];WhatsappAccount[a939_0xdd253b(0x74)](e,emitEvent(event));}}module['exports']=WhatsappAccountEvents; \ No newline at end of file diff --git a/server/api/whatsappAccount/whatsappAccount.model.js b/server/api/whatsappAccount/whatsappAccount.model.js index ef47368..a9f4c3e 100644 --- a/server/api/whatsappAccount/whatsappAccount.model.js +++ b/server/api/whatsappAccount/whatsappAccount.model.js @@ -1 +1 @@ -const a785_0x587c=['whatsapp_accounts','define','./whatsappAccount.attributes'];(function(_0x21aacd,_0x587ce8){const _0x38c71a=function(_0x512bb8){while(--_0x512bb8){_0x21aacd['push'](_0x21aacd['shift']());}};_0x38c71a(++_0x587ce8);}(a785_0x587c,0xec));const a785_0x38c7=function(_0x21aacd,_0x587ce8){_0x21aacd=_0x21aacd-0x0;let _0x38c71a=a785_0x587c[_0x21aacd];return _0x38c71a;};const _0x348373=a785_0x38c7;'use strict';const attributes=require(_0x348373('0x0'));module['exports']=function(_0x512bb8){const _0xf73bb9=_0x348373,_0x30a58c=_0x512bb8[_0xf73bb9('0x2')]('WhatsappAccount',attributes,{'tableName':_0xf73bb9('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x30a58c;}; \ No newline at end of file +const a940_0x11a5=['./whatsappAccount.attributes','sequelize','WhatsappAccount','init','exports'];(function(_0x4b404a,_0x229090){const _0x11a5e6=function(_0x4da84c){while(--_0x4da84c){_0x4b404a['push'](_0x4b404a['shift']());}};_0x11a5e6(++_0x229090);}(a940_0x11a5,0x13e));const a940_0x4da8=function(_0x4b404a,_0x229090){_0x4b404a=_0x4b404a-0x1e3;let _0x11a5e6=a940_0x11a5[_0x4b404a];return _0x11a5e6;};const a940_0x2578a8=a940_0x4da8;'use strict';const {Model}=require(a940_0x2578a8(0x1e6)),{attributes}=require(a940_0x2578a8(0x1e5)),{options}=require('./whatsappAccount.options');class WhatsappAccount extends Model{}function init(_0x345e5b,_0x4f9f69){const _0x44da05=options(_0x345e5b),_0x35cd32=typeof _0x4f9f69==='function'?_0x4f9f69(_0x44da05):_0x44da05;return WhatsappAccount['init'](attributes,_0x35cd32),WhatsappAccount;}module['exports'][a940_0x2578a8(0x1e7)]=WhatsappAccount,module[a940_0x2578a8(0x1e4)][a940_0x2578a8(0x1e3)]=init; \ No newline at end of file diff --git a/server/api/whatsappAccount/whatsappAccount.options.js b/server/api/whatsappAccount/whatsappAccount.options.js new file mode 100644 index 0000000..8c835aa --- /dev/null +++ b/server/api/whatsappAccount/whatsappAccount.options.js @@ -0,0 +1 @@ +var a941_0x35b1=['whatsapp_accounts','exports'];(function(_0x291435,_0x137165){var _0x35b105=function(_0x2ea174){while(--_0x2ea174){_0x291435['push'](_0x291435['shift']());}};_0x35b105(++_0x137165);}(a941_0x35b1,0x1a1));var a941_0x2ea1=function(_0x291435,_0x137165){_0x291435=_0x291435-0xe3;var _0x35b105=a941_0x35b1[_0x291435];return _0x35b105;};var a941_0x45c86b=a941_0x2ea1;function options(_0x19ff92){var _0x254f2e=a941_0x2ea1;return{'sequelize':_0x19ff92,'tableName':_0x254f2e(0xe4),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a941_0x45c86b(0xe3)]['options']=options; \ No newline at end of file diff --git a/server/api/whatsappAccount/whatsappAccount.rpc.js b/server/api/whatsappAccount/whatsappAccount.rpc.js index 456a550..5f981fa 100644 --- a/server/api/whatsappAccount/whatsappAccount.rpc.js +++ b/server/api/whatsappAccount/whatsappAccount.rpc.js @@ -1 +1 @@ -const a786_0xb5a4=['./whatsappAccount.socket','ShowWhatsappAccount','catch','then','error','lodash','where','options','map','WhatsappAccount','attributes','../../rediscache','info','register','include','model','rpc'];(function(_0x5a353b,_0xb5a42){const _0x57d502=function(_0x90bedf){while(--_0x90bedf){_0x5a353b['push'](_0x5a353b['shift']());}};_0x57d502(++_0xb5a42);}(a786_0xb5a4,0x8b));const a786_0x57d5=function(_0x5a353b,_0xb5a42){_0x5a353b=_0x5a353b-0x0;let _0x57d502=a786_0xb5a4[_0x5a353b];return _0x57d502;};const _0xb26432=a786_0x57d5;'use strict';const db=require('../../mysqldb')['db'],logger=require('../../config/logger')(_0xb26432('0xd')),_=require(_0xb26432('0x2')),{getSocket}=require(_0xb26432('0x8')),socket=getSocket();require(_0xb26432('0xe'))[_0xb26432('0xa')](socket),exports[_0xb26432('0xf')]=function(_0x90bedf){const _0x487d6d=this;return new Promise(function(_0x15b868,_0x67f61a){const _0x1e8315=a786_0x57d5;return db[_0x1e8315('0x6')]['findOne']({'raw':_0x90bedf['options']?_0x90bedf[_0x1e8315('0x4')]['raw']===undefined?!![]:![]:!![],'where':_0x90bedf['options']?_0x90bedf['options'][_0x1e8315('0x3')]||null:null,'attributes':_0x90bedf[_0x1e8315('0x4')]?_0x90bedf[_0x1e8315('0x4')][_0x1e8315('0x7')]||null:null,'include':_0x90bedf[_0x1e8315('0x4')]?_0x90bedf[_0x1e8315('0x4')][_0x1e8315('0xb')]?_['map'](_0x90bedf[_0x1e8315('0x4')][_0x1e8315('0xb')],function(_0x3ebdcc){const _0x542196=_0x1e8315;return{'model':db[_0x3ebdcc['model']],'as':_0x3ebdcc['as'],'attributes':_0x3ebdcc[_0x542196('0x7')],'include':_0x3ebdcc[_0x542196('0xb')]?_['map'](_0x3ebdcc[_0x542196('0xb')],function(_0x213e1c){const _0x400f8b=_0x542196;return{'model':db[_0x213e1c[_0x400f8b('0xc')]],'as':_0x213e1c['as'],'attributes':_0x213e1c['attributes'],'include':_0x213e1c[_0x400f8b('0xb')]?_[_0x400f8b('0x5')](_0x213e1c[_0x400f8b('0xb')],function(_0x9efe64){const _0x5a913d=_0x400f8b;return{'model':db[_0x9efe64['model']],'as':_0x9efe64['as'],'attributes':_0x9efe64[_0x5a913d('0x7')]};}):[]};}):[]};}):[]:[]})[_0x1e8315('0x0')](function(_0x1e6942){const _0x285ab9=_0x1e8315;logger[_0x285ab9('0x9')]('ShowWhatsappAccount',_0x90bedf),logger['debug'](_0x285ab9('0xf'),_0x90bedf,JSON['stringify'](_0x1e6942)),_0x15b868(_0x1e6942);})[_0x1e8315('0x10')](function(_0x50f9fd){const _0x2fda3d=_0x1e8315;logger[_0x2fda3d('0x1')]('ShowWhatsappAccount',_0x50f9fd['message'],_0x90bedf),_0x67f61a(_0x487d6d['error'](0x1f4,_0x50f9fd['message']));});});}; \ No newline at end of file +const a942_0x57f6=['ShowWhatsappAccount','../../mysqldb','findOne','model','../../config/logger','WhatsappAccount','stringify','options','error','include','debug','map','../../rediscache','attributes','where','raw','rpc','message','./whatsappAccount.socket','register','lodash'];(function(_0xec448e,_0xa24b04){const _0x57f683=function(_0x1fcbd2){while(--_0x1fcbd2){_0xec448e['push'](_0xec448e['shift']());}};_0x57f683(++_0xa24b04);}(a942_0x57f6,0xa0));const a942_0x1fcb=function(_0xec448e,_0xa24b04){_0xec448e=_0xec448e-0x1ef;let _0x57f683=a942_0x57f6[_0xec448e];return _0x57f683;};const a942_0x3a8931=a942_0x1fcb;'use strict';const db=require(a942_0x3a8931(0x1f8))['db'],logger=require(a942_0x3a8931(0x1fb))(a942_0x3a8931(0x1f2)),_=require(a942_0x3a8931(0x1f6)),{getSocket}=require(a942_0x3a8931(0x203)),socket=getSocket();require(a942_0x3a8931(0x1f4))[a942_0x3a8931(0x1f5)](socket),exports[a942_0x3a8931(0x1f7)]=function(_0xaebf5a){const _0x7da89e=this;return new Promise(function(_0x3ccc7c,_0x393ddc){const _0x3970e3=a942_0x1fcb;return db[_0x3970e3(0x1fc)][_0x3970e3(0x1f9)]({'raw':_0xaebf5a[_0x3970e3(0x1fe)]?_0xaebf5a['options'][_0x3970e3(0x1f1)]===undefined?!![]:![]:!![],'where':_0xaebf5a[_0x3970e3(0x1fe)]?_0xaebf5a['options'][_0x3970e3(0x1f0)]||null:null,'attributes':_0xaebf5a[_0x3970e3(0x1fe)]?_0xaebf5a[_0x3970e3(0x1fe)][_0x3970e3(0x1ef)]||null:null,'include':_0xaebf5a[_0x3970e3(0x1fe)]?_0xaebf5a[_0x3970e3(0x1fe)][_0x3970e3(0x200)]?_[_0x3970e3(0x202)](_0xaebf5a['options'][_0x3970e3(0x200)],function(_0x3da5eb){const _0x598b2d=_0x3970e3;return{'model':db[_0x3da5eb[_0x598b2d(0x1fa)]],'as':_0x3da5eb['as'],'attributes':_0x3da5eb[_0x598b2d(0x1ef)],'include':_0x3da5eb[_0x598b2d(0x200)]?_[_0x598b2d(0x202)](_0x3da5eb['include'],function(_0x25b1c3){const _0x11e50e=_0x598b2d;return{'model':db[_0x25b1c3[_0x11e50e(0x1fa)]],'as':_0x25b1c3['as'],'attributes':_0x25b1c3[_0x11e50e(0x1ef)],'include':_0x25b1c3[_0x11e50e(0x200)]?_['map'](_0x25b1c3[_0x11e50e(0x200)],function(_0x14789d){const _0x50c2bc=_0x11e50e;return{'model':db[_0x14789d[_0x50c2bc(0x1fa)]],'as':_0x14789d['as'],'attributes':_0x14789d[_0x50c2bc(0x1ef)]};}):[]};}):[]};}):[]:[]})['then'](function(_0x36525d){const _0x44e760=_0x3970e3;logger['info'](_0x44e760(0x1f7),_0xaebf5a),logger[_0x44e760(0x201)](_0x44e760(0x1f7),_0xaebf5a,JSON[_0x44e760(0x1fd)](_0x36525d)),_0x3ccc7c(_0x36525d);})['catch'](function(_0x15300b){const _0x28758=_0x3970e3;logger[_0x28758(0x1ff)](_0x28758(0x1f7),_0x15300b[_0x28758(0x1f3)],_0xaebf5a),_0x393ddc(_0x7da89e[_0x28758(0x1ff)](0x1f4,_0x15300b['message']));});});}; \ No newline at end of file diff --git a/server/api/whatsappAccount/whatsappAccount.socket.js b/server/api/whatsappAccount/whatsappAccount.socket.js index f8a44a7..694b3a8 100644 --- a/server/api/whatsappAccount/whatsappAccount.socket.js +++ b/server/api/whatsappAccount/whatsappAccount.socket.js @@ -1 +1 @@ -const a787_0x2865=['./whatsappAccount.events','register','whatsappAccount:','emit','update','remove'];(function(_0x34164d,_0x2865ec){const _0x24869e=function(_0x8edea7){while(--_0x8edea7){_0x34164d['push'](_0x34164d['shift']());}};_0x24869e(++_0x2865ec);}(a787_0x2865,0x150));const a787_0x2486=function(_0x34164d,_0x2865ec){_0x34164d=_0x34164d-0x0;let _0x24869e=a787_0x2865[_0x34164d];return _0x24869e;};const _0x553b95=a787_0x2486;'use strict';const WhatsappAccountEvents=require(_0x553b95('0x0')),events=['save',_0x553b95('0x5'),_0x553b95('0x4')];function createListener(_0x8edea7,_0x2d286d){return function(_0x4019fc){const _0x537ce7=a787_0x2486;_0x2d286d[_0x537ce7('0x3')](_0x8edea7,_0x4019fc);};}exports[_0x553b95('0x1')]=function(_0x52310a){const _0x4f4496=_0x553b95;for(let _0x50c95a=0x0,_0xdd08be=events['length'];_0x50c95a<_0xdd08be;_0x50c95a++){const _0xeccf1f=events[_0x50c95a],_0x3d1c79=createListener(_0x4f4496('0x2')+_0xeccf1f,_0x52310a);WhatsappAccountEvents['on'](_0xeccf1f,_0x3d1c79);}}; \ No newline at end of file +const a943_0x4bfc=['update','register','./whatsappAccount.events','save','whatsappAccount:','length','remove'];(function(_0x20929a,_0x5269e4){const _0x4bfc18=function(_0x324e18){while(--_0x324e18){_0x20929a['push'](_0x20929a['shift']());}};_0x4bfc18(++_0x5269e4);}(a943_0x4bfc,0x190));const a943_0x324e=function(_0x20929a,_0x5269e4){_0x20929a=_0x20929a-0x1ba;let _0x4bfc18=a943_0x4bfc[_0x20929a];return _0x4bfc18;};const a943_0x17c0fa=a943_0x324e;'use strict';const WhatsappAccountEvents=require(a943_0x17c0fa(0x1bb)),events=[a943_0x17c0fa(0x1bc),a943_0x17c0fa(0x1bf),a943_0x17c0fa(0x1c0)];function createListener(_0x51785f,_0x44c91c){return function(_0x53896f){_0x44c91c['emit'](_0x51785f,_0x53896f);};}exports[a943_0x17c0fa(0x1ba)]=function(_0x29deb2){const _0x34e692=a943_0x17c0fa;for(let _0xfcfc70=0x0,_0x31dbb3=events[_0x34e692(0x1be)];_0xfcfc70<_0x31dbb3;_0xfcfc70++){const _0x2cfb33=events[_0xfcfc70],_0x5a47c6=createListener(_0x34e692(0x1bd)+_0x2cfb33,_0x29deb2);WhatsappAccountEvents['on'](_0x2cfb33,_0x5a47c6);}}; \ No newline at end of file diff --git a/server/api/whatsappApplication/index.js b/server/api/whatsappApplication/index.js index ddd1a51..7a64ae6 100644 --- a/server/api/whatsappApplication/index.js +++ b/server/api/whatsappApplication/index.js @@ -1 +1 @@ -const a788_0x50aa=['index','destroy','get','put','Router','delete','isAuthenticated','exports','/:id','post','create'];(function(_0x18726d,_0x50aaa7){const _0x46d6d1=function(_0x4a4481){while(--_0x4a4481){_0x18726d['push'](_0x18726d['shift']());}};_0x46d6d1(++_0x50aaa7);}(a788_0x50aa,0x106));const a788_0x46d6=function(_0x18726d,_0x50aaa7){_0x18726d=_0x18726d-0x0;let _0x46d6d1=a788_0x50aa[_0x18726d];return _0x46d6d1;};const _0x2d71da=a788_0x46d6;'use strict';const express=require('express'),router=express[_0x2d71da('0x6')](),auth=require('../../components/auth/service'),controller=require('./whatsappApplication.controller');router[_0x2d71da('0x4')]('/',auth[_0x2d71da('0x8')](),controller[_0x2d71da('0x2')]),router['get']('/:id',auth[_0x2d71da('0x8')](),controller['show']),router[_0x2d71da('0x0')]('/',auth[_0x2d71da('0x8')](),controller[_0x2d71da('0x1')]),router[_0x2d71da('0x5')](_0x2d71da('0xa'),auth['isAuthenticated'](),controller['update']),router[_0x2d71da('0x7')](_0x2d71da('0xa'),auth[_0x2d71da('0x8')](),controller[_0x2d71da('0x3')]),module[_0x2d71da('0x9')]=router; \ No newline at end of file +const a944_0x1aef=['isAuthenticated','/:id','express','update','put','post','./whatsappApplication.controller','get','destroy','delete','../../components/auth/service'];(function(_0xfe0d33,_0x51ffda){const _0x1aefd2=function(_0x1e4941){while(--_0x1e4941){_0xfe0d33['push'](_0xfe0d33['shift']());}};_0x1aefd2(++_0x51ffda);}(a944_0x1aef,0x153));const a944_0x1e49=function(_0xfe0d33,_0x51ffda){_0xfe0d33=_0xfe0d33-0xa1;let _0x1aefd2=a944_0x1aef[_0xfe0d33];return _0x1aefd2;};const a944_0xb3aca2=a944_0x1e49;'use strict';const express=require(a944_0xb3aca2(0xa5)),router=express['Router'](),auth=require(a944_0xb3aca2(0xa2)),controller=require(a944_0xb3aca2(0xa9));router[a944_0xb3aca2(0xaa)]('/',auth[a944_0xb3aca2(0xa3)](),controller['index']),router[a944_0xb3aca2(0xaa)](a944_0xb3aca2(0xa4),auth['isAuthenticated'](),controller['show']),router[a944_0xb3aca2(0xa8)]('/',auth[a944_0xb3aca2(0xa3)](),controller['create']),router[a944_0xb3aca2(0xa7)](a944_0xb3aca2(0xa4),auth[a944_0xb3aca2(0xa3)](),controller[a944_0xb3aca2(0xa6)]),router[a944_0xb3aca2(0xa1)](a944_0xb3aca2(0xa4),auth[a944_0xb3aca2(0xa3)](),controller[a944_0xb3aca2(0xab)]),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 a123b85..9101a3f 100644 --- a/server/api/whatsappApplication/whatsappApplication.attributes.js +++ b/server/api/whatsappApplication/whatsappApplication.attributes.js @@ -1 +1 @@ -const a789_0x2a79=['exports','*,*,*,*','STRING','INTEGER','noop'];(function(_0x3f7bbd,_0x2a79cb){const _0x59e114=function(_0x503b72){while(--_0x503b72){_0x3f7bbd['push'](_0x3f7bbd['shift']());}};_0x59e114(++_0x2a79cb);}(a789_0x2a79,0x184));const a789_0x59e1=function(_0x3f7bbd,_0x2a79cb){_0x3f7bbd=_0x3f7bbd-0x0;let _0x59e114=a789_0x2a79[_0x3f7bbd];return _0x59e114;};const _0x2e605a=a789_0x59e1;'use strict';const Sequelize=require('sequelize');module[_0x2e605a('0x2')]={'priority':{'type':Sequelize[_0x2e605a('0x0')],'allowNull':![]},'app':{'type':Sequelize[_0x2e605a('0x4')],'allowNull':![],'defaultValue':_0x2e605a('0x1')},'appdata':{'type':Sequelize['TEXT']()},'description':{'type':Sequelize[_0x2e605a('0x4')]},'interval':{'type':Sequelize[_0x2e605a('0x4')],'defaultValue':_0x2e605a('0x3')}}; \ No newline at end of file +const a945_0xefdc=['STRING','noop','*,*,*,*','INTEGER','attributes'];(function(_0x24b22b,_0x58b47a){const _0xefdc82=function(_0x13178a){while(--_0x13178a){_0x24b22b['push'](_0x24b22b['shift']());}};_0xefdc82(++_0x58b47a);}(a945_0xefdc,0xfa));const a945_0x1317=function(_0x24b22b,_0x58b47a){_0x24b22b=_0x24b22b-0x126;let _0xefdc82=a945_0xefdc[_0x24b22b];return _0xefdc82;};const a945_0x3844b3=a945_0x1317;'use strict';const {DataTypes}=require('sequelize'),attributes={'priority':{'type':DataTypes[a945_0x3844b3(0x129)],'allowNull':![]},'app':{'type':DataTypes[a945_0x3844b3(0x126)],'allowNull':![],'defaultValue':a945_0x3844b3(0x127)},'appdata':{'type':DataTypes['TEXT']()},'description':{'type':DataTypes['STRING']},'interval':{'type':DataTypes[a945_0x3844b3(0x126)],'defaultValue':a945_0x3844b3(0x128)}};module['exports'][a945_0x3844b3(0x12a)]=attributes; \ No newline at end of file diff --git a/server/api/whatsappApplication/whatsappApplication.controller.js b/server/api/whatsappApplication/whatsappApplication.controller.js index f30d9bc..d2bb21b 100644 --- a/server/api/whatsappApplication/whatsappApplication.controller.js +++ b/server/api/whatsappApplication/whatsappApplication.controller.js @@ -1 +1 @@ -const a790_0x53ca=['options','limit','set','json','index','VIRTUAL','query','destroy','attributes','name','stack','model','sort','end','length','WhatsappApplication','then','include','type','create','includeAll','nolimit','pick','rows','lodash','filters','fields','map','send','intersection','undefined','where','offset','count','params','../../config/logger','catch','order','like','merge','api','filter','status','key','findOne','fieldName','rawAttributes','update','body','findAll','error','sendStatus'];(function(_0x1468d3,_0x53cac3){const _0x6b6579=function(_0x4028e2){while(--_0x4028e2){_0x1468d3['push'](_0x1468d3['shift']());}};_0x6b6579(++_0x53cac3);}(a790_0x53ca,0x1eb));const a790_0x6b65=function(_0x1468d3,_0x53cac3){_0x1468d3=_0x1468d3-0x0;let _0x6b6579=a790_0x53ca[_0x1468d3];return _0x6b6579;};const _0x208641=a790_0x6b65;'use strict';const _=require(_0x208641('0x1')),qs=require('../../components/parsers/qs'),logger=require(_0x208641('0xc'))(_0x208641('0x11')),db=require('../../mysqldb')['db'],{Op}=require('sequelize');function respondWithResult(_0x4028e2,_0x15e175){return _0x15e175=_0x15e175||0xc8,function(_0x527fae){if(_0x527fae)return _0x4028e2['status'](_0x15e175)['json'](_0x527fae);};}function respondWithFilteredResult(_0x3f5a66,_0x2ddc67){return function(_0x1bf1f8){const _0x3e065c=a790_0x6b65;if(_0x1bf1f8){const _0x31b64f=_0x1bf1f8[_0x3e065c('0xa')],_0x21d77f=_0x2ddc67[_0x3e065c('0x9')];let _0x297317=_0x2ddc67[_0x3e065c('0x9')]+_0x2ddc67[_0x3e065c('0x1e')],_0x2e0b9c;return _0x297317>=_0x31b64f?(_0x297317=_0x31b64f,_0x2e0b9c=0xc8):_0x2e0b9c=0xce,_0x3f5a66[_0x3e065c('0x13')](_0x2e0b9c),_0x3f5a66[_0x3e065c('0x1f')]('Content-Range',_0x21d77f+'-'+_0x297317+'/'+_0x31b64f)[_0x3e065c('0x20')](_0x1bf1f8);}return null;};}function saveUpdates(_0x2a6179){return function(_0x24b016){const _0x3bc994=a790_0x6b65;if(_0x24b016)return _0x24b016[_0x3bc994('0x18')](_0x2a6179)['then'](function(_0x3845b3){return _0x3845b3;});return null;};}function removeEntity(_0x71f2c){return function(_0x16799f){const _0x324605=a790_0x6b65;if(_0x16799f)return _0x16799f[_0x324605('0x24')]()[_0x324605('0x2d')](function(){const _0x378acc=_0x324605;_0x71f2c[_0x378acc('0x13')](0xcc)[_0x378acc('0x2a')]();});};}function handleEntityNotFound(_0x4abb50){return function(_0x5bad22){const _0xc0488c=a790_0x6b65;return!_0x5bad22&&_0x4abb50[_0xc0488c('0x1c')](0x194),_0x5bad22;};}function handleError(_0x5cec2c,_0x205418){return _0x205418=_0x205418||0x1f4,function(_0x4fdd1b){const _0x55ce92=a790_0x6b65;logger[_0x55ce92('0x1b')](_0x4fdd1b[_0x55ce92('0x27')]),_0x4fdd1b[_0x55ce92('0x26')]&&delete _0x4fdd1b['name'],_0x5cec2c['status'](_0x205418)[_0x55ce92('0x5')](_0x4fdd1b);};}exports[_0x208641('0x21')]=function(_0x29db9b,_0x1a824b){const _0x382ff1=_0x208641;let _0x5c6f1c={};const _0x37fb95={},_0x225867={'count':0x0,'rows':[]},_0x57272e=_[_0x382ff1('0x4')](db['WhatsappApplication'][_0x382ff1('0x17')],function(_0x506345){const _0x4917f4=_0x382ff1;return{'name':_0x506345[_0x4917f4('0x16')],'type':_0x506345[_0x4917f4('0x2f')][_0x4917f4('0x14')]};});_0x37fb95[_0x382ff1('0x28')]=_[_0x382ff1('0x4')](_0x57272e,_0x382ff1('0x26')),_0x37fb95[_0x382ff1('0x23')]=_['keys'](_0x29db9b['query']),_0x37fb95[_0x382ff1('0x2')]=_[_0x382ff1('0x6')](_0x37fb95[_0x382ff1('0x28')],_0x37fb95[_0x382ff1('0x23')]),_0x5c6f1c[_0x382ff1('0x25')]=_[_0x382ff1('0x6')](_0x37fb95[_0x382ff1('0x28')],qs['fields'](_0x29db9b[_0x382ff1('0x23')][_0x382ff1('0x3')])),_0x5c6f1c[_0x382ff1('0x25')]=_0x5c6f1c[_0x382ff1('0x25')][_0x382ff1('0x2b')]?_0x5c6f1c[_0x382ff1('0x25')]:_0x37fb95[_0x382ff1('0x28')];typeof _0x29db9b[_0x382ff1('0x23')][_0x382ff1('0x32')]===_0x382ff1('0x7')&&(_0x5c6f1c['limit']=qs[_0x382ff1('0x1e')](_0x29db9b['query'][_0x382ff1('0x1e')]),_0x5c6f1c[_0x382ff1('0x9')]=qs['offset'](_0x29db9b[_0x382ff1('0x23')]['offset']));_0x5c6f1c[_0x382ff1('0xe')]=qs['sort'](_0x29db9b[_0x382ff1('0x23')][_0x382ff1('0x29')]),_0x5c6f1c['where']=qs['filters'](_[_0x382ff1('0x33')](_0x29db9b[_0x382ff1('0x23')],_0x37fb95[_0x382ff1('0x2')]),_0x57272e);_0x29db9b[_0x382ff1('0x23')][_0x382ff1('0x12')]&&(_0x5c6f1c['where']=_[_0x382ff1('0x10')](_0x5c6f1c[_0x382ff1('0x8')],{[Op['or']]:_['map'](_0x57272e,function(_0x5ac937){const _0x2bd9a6=_0x382ff1;if(_0x5ac937[_0x2bd9a6('0x2f')]!==_0x2bd9a6('0x22')){const _0x3317ec={};return _0x3317ec[_0x5ac937['name']]={[Op[_0x2bd9a6('0xf')]]:'%'+_0x29db9b[_0x2bd9a6('0x23')]['filter']+'%'},_0x3317ec;}})}));_0x5c6f1c=_['merge']({},_0x5c6f1c,_0x29db9b[_0x382ff1('0x1d')]);const _0x3e42f1={'where':_0x5c6f1c[_0x382ff1('0x8')]};return db[_0x382ff1('0x2c')]['count'](_0x3e42f1)[_0x382ff1('0x2d')](function(_0x17f73d){const _0x2efded=_0x382ff1;return _0x225867[_0x2efded('0xa')]=_0x17f73d,_0x29db9b['query'][_0x2efded('0x31')]&&(_0x5c6f1c[_0x2efded('0x2e')]=[{'all':!![]}]),db['WhatsappApplication'][_0x2efded('0x1a')](_0x5c6f1c);})[_0x382ff1('0x2d')](function(_0x107101){const _0x4b21b2=_0x382ff1;return _0x225867[_0x4b21b2('0x0')]=_0x107101,_0x225867;})['then'](respondWithFilteredResult(_0x1a824b,_0x5c6f1c))[_0x382ff1('0xd')](handleError(_0x1a824b,null));},exports['show']=function(_0x2b9e1e,_0x319b32){const _0xd3d2f6=_0x208641;let _0x1a3ad3={'raw':!![],'where':{'id':_0x2b9e1e[_0xd3d2f6('0xb')]['id']}};const _0x19ac5e={};return _0x19ac5e['model']=_['keys'](db[_0xd3d2f6('0x2c')]['rawAttributes']),_0x19ac5e[_0xd3d2f6('0x23')]=_['keys'](_0x2b9e1e[_0xd3d2f6('0x23')]),_0x19ac5e['filters']=_['intersection'](_0x19ac5e[_0xd3d2f6('0x28')],_0x19ac5e[_0xd3d2f6('0x23')]),_0x1a3ad3['attributes']=_['intersection'](_0x19ac5e[_0xd3d2f6('0x28')],qs[_0xd3d2f6('0x3')](_0x2b9e1e[_0xd3d2f6('0x23')][_0xd3d2f6('0x3')])),_0x1a3ad3[_0xd3d2f6('0x25')]=_0x1a3ad3[_0xd3d2f6('0x25')][_0xd3d2f6('0x2b')]?_0x1a3ad3[_0xd3d2f6('0x25')]:_0x19ac5e[_0xd3d2f6('0x28')],_0x2b9e1e[_0xd3d2f6('0x23')][_0xd3d2f6('0x31')]&&(_0x1a3ad3[_0xd3d2f6('0x2e')]=[{'all':!![]}]),_0x1a3ad3=_['merge']({},_0x1a3ad3,_0x2b9e1e[_0xd3d2f6('0x1d')]),db['WhatsappApplication'][_0xd3d2f6('0x15')](_0x1a3ad3)['then'](handleEntityNotFound(_0x319b32,null))['then'](respondWithResult(_0x319b32,null))[_0xd3d2f6('0xd')](handleError(_0x319b32,null));},exports[_0x208641('0x30')]=function(_0x26bb22,_0x122371){const _0x4870e3=_0x208641;return db[_0x4870e3('0x2c')][_0x4870e3('0x30')](_0x26bb22[_0x4870e3('0x19')],{})[_0x4870e3('0x2d')](respondWithResult(_0x122371,0xc9))[_0x4870e3('0xd')](handleError(_0x122371,null));},exports[_0x208641('0x18')]=function(_0x51fe8d,_0x26f054){const _0x236409=_0x208641;return _0x51fe8d[_0x236409('0x19')]['id']&&delete _0x51fe8d[_0x236409('0x19')]['id'],db[_0x236409('0x2c')][_0x236409('0x15')]({'where':{'id':_0x51fe8d[_0x236409('0xb')]['id']}})[_0x236409('0x2d')](handleEntityNotFound(_0x26f054,null))[_0x236409('0x2d')](saveUpdates(_0x51fe8d['body'],null))[_0x236409('0x2d')](respondWithResult(_0x26f054,null))['catch'](handleError(_0x26f054,null));},exports[_0x208641('0x24')]=function(_0x2a5275,_0x37298e){const _0x54b2bf=_0x208641;return db[_0x54b2bf('0x2c')][_0x54b2bf('0x15')]({'where':{'id':_0x2a5275[_0x54b2bf('0xb')]['id']}})[_0x54b2bf('0x2d')](handleEntityNotFound(_0x37298e,null))['then'](removeEntity(_0x37298e,null))[_0x54b2bf('0xd')](handleError(_0x37298e,null));}; \ No newline at end of file +const a946_0x2a39=['sequelize','length','include','includeAll','fields','create','update','sort','pick','catch','stack','map','undefined','then','keys','merge','filter','where','filters','attributes','WhatsappApplication','set','../../mysqldb','intersection','lodash','count','query','model','error','rows','params','fieldName','findAll','limit','nolimit','status','type','options','body','name','offset','../../config/logger','api','index','findOne','VIRTUAL','json','destroy','key'];(function(_0x5a85a0,_0x12810a){const _0x2a3932=function(_0x156179){while(--_0x156179){_0x5a85a0['push'](_0x5a85a0['shift']());}};_0x2a3932(++_0x12810a);}(a946_0x2a39,0x166));const a946_0x1561=function(_0x5a85a0,_0x12810a){_0x5a85a0=_0x5a85a0-0x1d0;let _0x2a3932=a946_0x2a39[_0x5a85a0];return _0x2a3932;};const a946_0x57ee70=a946_0x1561;'use strict';const _=require(a946_0x57ee70(0x1d9)),qs=require('../../components/parsers/qs'),logger=require(a946_0x57ee70(0x1ea))(a946_0x57ee70(0x1eb)),{db}=require(a946_0x57ee70(0x1d7)),{Op}=require(a946_0x57ee70(0x1f2));function respondWithResult(_0x5eabec,_0x34c18a){return _0x34c18a=_0x34c18a||0xc8,function(_0x86fbfa){const _0x479760=a946_0x1561;if(_0x86fbfa)return _0x5eabec[_0x479760(0x1e4)](_0x34c18a)[_0x479760(0x1ef)](_0x86fbfa);};}function respondWithFilteredResult(_0x15ff78,_0x26396f){return function(_0x23a238){const _0x17957b=a946_0x1561;if(_0x23a238){const _0x4e0bd0=_0x23a238[_0x17957b(0x1da)],_0x19337d=_0x26396f[_0x17957b(0x1e9)];let _0x2d7aee=_0x26396f[_0x17957b(0x1e9)]+_0x26396f[_0x17957b(0x1e2)],_0x79e93c;return _0x2d7aee>=_0x4e0bd0?(_0x2d7aee=_0x4e0bd0,_0x79e93c=0xc8):_0x79e93c=0xce,_0x15ff78['status'](_0x79e93c),_0x15ff78[_0x17957b(0x1d6)]('Content-Range',_0x19337d+'-'+_0x2d7aee+'/'+_0x4e0bd0)[_0x17957b(0x1ef)](_0x23a238);}return null;};}function saveUpdates(_0x3dfb4a){return function(_0x3ce81f){const _0x29b472=a946_0x1561;if(_0x3ce81f)return _0x3ce81f[_0x29b472(0x1f8)](_0x3dfb4a)[_0x29b472(0x1ff)](function(_0x1795fa){return _0x1795fa;});return null;};}function removeEntity(_0x219c8e){return function(_0x44abc6){const _0x3ba8ba=a946_0x1561;if(_0x44abc6)return _0x44abc6[_0x3ba8ba(0x1f0)]()[_0x3ba8ba(0x1ff)](function(){const _0x331024=_0x3ba8ba;_0x219c8e[_0x331024(0x1e4)](0xcc)['end']();});};}function handleEntityNotFound(_0x4b9845){return function(_0x348a2a){return!_0x348a2a&&_0x4b9845['sendStatus'](0x194),_0x348a2a;};}function handleError(_0xdaace8,_0x35d26c){return _0x35d26c=_0x35d26c||0x1f4,function(_0xabf1dd){const _0x458793=a946_0x1561;logger[_0x458793(0x1dd)](_0xabf1dd[_0x458793(0x1fc)]),_0xabf1dd[_0x458793(0x1e8)]&&delete _0xabf1dd[_0x458793(0x1e8)],_0xdaace8[_0x458793(0x1e4)](_0x35d26c)['send'](_0xabf1dd);};}exports[a946_0x57ee70(0x1ec)]=function(_0x35e536,_0x45d0ab){const _0x5e13a2=a946_0x57ee70;let _0x1fefbb={};const _0x55378c={},_0x150dca={'count':0x0,'rows':[]},_0x43d781=_[_0x5e13a2(0x1fd)](db[_0x5e13a2(0x1d5)]['rawAttributes'],function(_0x10c9ee){const _0x582020=_0x5e13a2;return{'name':_0x10c9ee[_0x582020(0x1e0)],'type':_0x10c9ee[_0x582020(0x1e5)][_0x582020(0x1f1)]};});_0x55378c[_0x5e13a2(0x1dc)]=_['map'](_0x43d781,_0x5e13a2(0x1e8)),_0x55378c[_0x5e13a2(0x1db)]=_[_0x5e13a2(0x200)](_0x35e536[_0x5e13a2(0x1db)]),_0x55378c['filters']=_[_0x5e13a2(0x1d8)](_0x55378c[_0x5e13a2(0x1dc)],_0x55378c[_0x5e13a2(0x1db)]),_0x1fefbb[_0x5e13a2(0x1d4)]=_['intersection'](_0x55378c['model'],qs['fields'](_0x35e536[_0x5e13a2(0x1db)]['fields'])),_0x1fefbb['attributes']=_0x1fefbb[_0x5e13a2(0x1d4)][_0x5e13a2(0x1f3)]?_0x1fefbb[_0x5e13a2(0x1d4)]:_0x55378c[_0x5e13a2(0x1dc)];typeof _0x35e536[_0x5e13a2(0x1db)][_0x5e13a2(0x1e3)]===_0x5e13a2(0x1fe)&&(_0x1fefbb[_0x5e13a2(0x1e2)]=qs[_0x5e13a2(0x1e2)](_0x35e536[_0x5e13a2(0x1db)][_0x5e13a2(0x1e2)]),_0x1fefbb[_0x5e13a2(0x1e9)]=qs['offset'](_0x35e536[_0x5e13a2(0x1db)]['offset']));_0x1fefbb['order']=qs[_0x5e13a2(0x1f9)](_0x35e536[_0x5e13a2(0x1db)][_0x5e13a2(0x1f9)]),_0x1fefbb[_0x5e13a2(0x1d2)]=qs[_0x5e13a2(0x1d3)](_[_0x5e13a2(0x1fa)](_0x35e536[_0x5e13a2(0x1db)],_0x55378c['filters']),_0x43d781);_0x35e536['query']['filter']&&(_0x1fefbb['where']=_[_0x5e13a2(0x1d0)](_0x1fefbb[_0x5e13a2(0x1d2)],{[Op['or']]:_[_0x5e13a2(0x1fd)](_0x43d781,function(_0x474eec){const _0x2cef71=_0x5e13a2;if(_0x474eec[_0x2cef71(0x1e5)]!==_0x2cef71(0x1ee)){const _0x467cfb={};return _0x467cfb[_0x474eec['name']]={[Op['like']]:'%'+_0x35e536['query'][_0x2cef71(0x1d1)]+'%'},_0x467cfb;}})}));_0x1fefbb=_[_0x5e13a2(0x1d0)]({},_0x1fefbb,_0x35e536['options']);const _0xde9da={'where':_0x1fefbb['where']};return db[_0x5e13a2(0x1d5)][_0x5e13a2(0x1da)](_0xde9da)[_0x5e13a2(0x1ff)](function(_0x328e65){const _0xd1900a=_0x5e13a2;return _0x150dca['count']=_0x328e65,_0x35e536[_0xd1900a(0x1db)][_0xd1900a(0x1f5)]&&(_0x1fefbb[_0xd1900a(0x1f4)]=[{'all':!![]}]),db[_0xd1900a(0x1d5)][_0xd1900a(0x1e1)](_0x1fefbb);})[_0x5e13a2(0x1ff)](function(_0x471f05){const _0x48730a=_0x5e13a2;return _0x150dca[_0x48730a(0x1de)]=_0x471f05,_0x150dca;})[_0x5e13a2(0x1ff)](respondWithFilteredResult(_0x45d0ab,_0x1fefbb))['catch'](handleError(_0x45d0ab,null));},exports['show']=function(_0x4a5a71,_0x119922){const _0x1b56e1=a946_0x57ee70;let _0x37a4fe={'raw':!![],'where':{'id':_0x4a5a71[_0x1b56e1(0x1df)]['id']}};const _0x2f777e={};return _0x2f777e[_0x1b56e1(0x1dc)]=_[_0x1b56e1(0x200)](db[_0x1b56e1(0x1d5)]['rawAttributes']),_0x2f777e[_0x1b56e1(0x1db)]=_[_0x1b56e1(0x200)](_0x4a5a71[_0x1b56e1(0x1db)]),_0x2f777e[_0x1b56e1(0x1d3)]=_[_0x1b56e1(0x1d8)](_0x2f777e[_0x1b56e1(0x1dc)],_0x2f777e[_0x1b56e1(0x1db)]),_0x37a4fe[_0x1b56e1(0x1d4)]=_['intersection'](_0x2f777e[_0x1b56e1(0x1dc)],qs[_0x1b56e1(0x1f6)](_0x4a5a71[_0x1b56e1(0x1db)][_0x1b56e1(0x1f6)])),_0x37a4fe[_0x1b56e1(0x1d4)]=_0x37a4fe['attributes'][_0x1b56e1(0x1f3)]?_0x37a4fe[_0x1b56e1(0x1d4)]:_0x2f777e[_0x1b56e1(0x1dc)],_0x4a5a71[_0x1b56e1(0x1db)]['includeAll']&&(_0x37a4fe[_0x1b56e1(0x1f4)]=[{'all':!![]}]),_0x37a4fe=_['merge']({},_0x37a4fe,_0x4a5a71[_0x1b56e1(0x1e6)]),db[_0x1b56e1(0x1d5)][_0x1b56e1(0x1ed)](_0x37a4fe)[_0x1b56e1(0x1ff)](handleEntityNotFound(_0x119922,null))['then'](respondWithResult(_0x119922,null))[_0x1b56e1(0x1fb)](handleError(_0x119922,null));},exports[a946_0x57ee70(0x1f7)]=function(_0x359725,_0x2fa706){const _0x2b12b1=a946_0x57ee70;return db[_0x2b12b1(0x1d5)][_0x2b12b1(0x1f7)](_0x359725[_0x2b12b1(0x1e7)],{})[_0x2b12b1(0x1ff)](respondWithResult(_0x2fa706,0xc9))[_0x2b12b1(0x1fb)](handleError(_0x2fa706,null));},exports[a946_0x57ee70(0x1f8)]=function(_0x1a8f0b,_0x4e8450){const _0x35e2a4=a946_0x57ee70;return _0x1a8f0b[_0x35e2a4(0x1e7)]['id']&&delete _0x1a8f0b[_0x35e2a4(0x1e7)]['id'],db['WhatsappApplication'][_0x35e2a4(0x1ed)]({'where':{'id':_0x1a8f0b['params']['id']}})[_0x35e2a4(0x1ff)](handleEntityNotFound(_0x4e8450,null))[_0x35e2a4(0x1ff)](saveUpdates(_0x1a8f0b[_0x35e2a4(0x1e7)],null))[_0x35e2a4(0x1ff)](respondWithResult(_0x4e8450,null))[_0x35e2a4(0x1fb)](handleError(_0x4e8450,null));},exports['destroy']=function(_0x5b9ce8,_0xcba8e){const _0x11a4a3=a946_0x57ee70;return db['WhatsappApplication'][_0x11a4a3(0x1ed)]({'where':{'id':_0x5b9ce8[_0x11a4a3(0x1df)]['id']}})[_0x11a4a3(0x1ff)](handleEntityNotFound(_0xcba8e,null))['then'](removeEntity(_0xcba8e,null))[_0x11a4a3(0x1fb)](handleError(_0xcba8e,null));}; \ No newline at end of file diff --git a/server/api/whatsappApplication/whatsappApplication.model.js b/server/api/whatsappApplication/whatsappApplication.model.js index e400b27..cd2a9a5 100644 --- a/server/api/whatsappApplication/whatsappApplication.model.js +++ b/server/api/whatsappApplication/whatsappApplication.model.js @@ -1 +1 @@ -const a791_0x3c33=['utf8mb4_unicode_ci','./whatsappApplication.attributes','whatsapp_applications','WhatsappApplication','define','utf8mb4'];(function(_0x45c5dc,_0x3c333f){const _0x1d8a28=function(_0xd4596e){while(--_0xd4596e){_0x45c5dc['push'](_0x45c5dc['shift']());}};_0x1d8a28(++_0x3c333f);}(a791_0x3c33,0x17c));const a791_0x1d8a=function(_0x45c5dc,_0x3c333f){_0x45c5dc=_0x45c5dc-0x0;let _0x1d8a28=a791_0x3c33[_0x45c5dc];return _0x1d8a28;};const _0x5c520f=a791_0x1d8a;'use strict';const attributes=require(_0x5c520f('0x5'));module['exports']=function(_0xd4596e){const _0x1a7437=_0x5c520f,_0x2ce42d=_0xd4596e[_0x1a7437('0x2')](_0x1a7437('0x1'),attributes,{'tableName':_0x1a7437('0x0'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x1a7437('0x3'),'collate':_0x1a7437('0x4')});return _0x2ce42d;}; \ No newline at end of file +const a947_0x5b96=['exports','WhatsappApplication','init','./whatsappApplication.attributes'];(function(_0x4e8f43,_0x496578){const _0x5b9620=function(_0x58fdbc){while(--_0x58fdbc){_0x4e8f43['push'](_0x4e8f43['shift']());}};_0x5b9620(++_0x496578);}(a947_0x5b96,0x187));const a947_0x58fd=function(_0x4e8f43,_0x496578){_0x4e8f43=_0x4e8f43-0xa1;let _0x5b9620=a947_0x5b96[_0x4e8f43];return _0x5b9620;};const a947_0x201c67=a947_0x58fd;'use strict';const {Model}=require('sequelize'),{attributes}=require(a947_0x201c67(0xa1)),{options}=require('./whatsappApplication.options');class WhatsappApplication extends Model{}function init(_0x46835b,_0x3d75b4){const _0xb8d500=a947_0x201c67,_0x337dc3=options(_0x46835b),_0x47109d=typeof _0x3d75b4==='function'?_0x3d75b4(_0x337dc3):_0x337dc3;return WhatsappApplication[_0xb8d500(0xa4)](attributes,_0x47109d),WhatsappApplication;}module[a947_0x201c67(0xa2)][a947_0x201c67(0xa3)]=WhatsappApplication,module[a947_0x201c67(0xa2)][a947_0x201c67(0xa4)]=init; \ No newline at end of file diff --git a/server/api/whatsappApplication/whatsappApplication.options.js b/server/api/whatsappApplication/whatsappApplication.options.js new file mode 100644 index 0000000..b2eef58 --- /dev/null +++ b/server/api/whatsappApplication/whatsappApplication.options.js @@ -0,0 +1 @@ +var a948_0x2896=['exports','utf8mb4_unicode_ci','utf8mb4','options'];(function(_0x3e251e,_0x1d3d6f){var _0x2896e3=function(_0x354c5f){while(--_0x354c5f){_0x3e251e['push'](_0x3e251e['shift']());}};_0x2896e3(++_0x1d3d6f);}(a948_0x2896,0x18b));var a948_0x354c=function(_0x3e251e,_0x1d3d6f){_0x3e251e=_0x3e251e-0x123;var _0x2896e3=a948_0x2896[_0x3e251e];return _0x2896e3;};var a948_0x310063=a948_0x354c;function options(_0x4d38d7){var _0x3e5358=a948_0x354c;return{'sequelize':_0x4d38d7,'tableName':'whatsapp_applications','paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x3e5358(0x126),'collate':_0x3e5358(0x125)};}module[a948_0x310063(0x124)][a948_0x310063(0x123)]=options; \ No newline at end of file diff --git a/server/api/whatsappInteraction/index.js b/server/api/whatsappInteraction/index.js index 3eab934..a8bdf41 100644 --- a/server/api/whatsappInteraction/index.js +++ b/server/api/whatsappInteraction/index.js @@ -1 +1 @@ -const a792_0x89c7=['/:id/download','index','destroy','put','whatsappinteraction:addtags','./whatsappInteraction.controller','delete','post','whatsapp','/:id/tags','express','/:id','exports','update','whatsappinteraction:update','describe','show','isAuthenticated','tracked','addMessage','create','removeTags','/:id/messages','addTags','get','getMessages','../../components/auth/service','download','whatsappinteraction:destroy'];(function(_0x14f8bb,_0x89c735){const _0x185256=function(_0x3ac662){while(--_0x3ac662){_0x14f8bb['push'](_0x14f8bb['shift']());}};_0x185256(++_0x89c735);}(a792_0x89c7,0xee));const a792_0x1852=function(_0x14f8bb,_0x89c735){_0x14f8bb=_0x14f8bb-0x0;let _0x185256=a792_0x89c7[_0x14f8bb];return _0x185256;};const _0x5b6170=a792_0x1852;'use strict';const express=require(_0x5b6170('0x4')),router=express['Router'](),auth=require(_0x5b6170('0x14')),interaction=require('../../components/interaction/service'),controller=require(_0x5b6170('0x1c'));router[_0x5b6170('0x12')]('/',auth[_0x5b6170('0xb')](),controller[_0x5b6170('0x18')]),router[_0x5b6170('0x12')]('/describe',auth['isAuthenticated'](),controller[_0x5b6170('0x9')]),router[_0x5b6170('0x12')](_0x5b6170('0x5'),auth[_0x5b6170('0xb')](),controller[_0x5b6170('0xa')]),router[_0x5b6170('0x12')](_0x5b6170('0x10'),auth[_0x5b6170('0xb')](),controller[_0x5b6170('0x13')]),router[_0x5b6170('0x12')](_0x5b6170('0x17'),auth[_0x5b6170('0xb')](),controller[_0x5b6170('0x15')]),router['post']('/',auth['isAuthenticated'](),controller[_0x5b6170('0xe')]),router[_0x5b6170('0x1')](_0x5b6170('0x10'),auth['isAuthenticated'](),controller[_0x5b6170('0xd')]),router['post'](_0x5b6170('0x3'),auth['isAuthenticated'](),interaction[_0x5b6170('0xc')](_0x5b6170('0x2'),_0x5b6170('0x1b')),controller[_0x5b6170('0x11')]),router[_0x5b6170('0x1a')]('/:id',auth['isAuthenticated'](),interaction[_0x5b6170('0xc')](_0x5b6170('0x2'),_0x5b6170('0x8')),controller[_0x5b6170('0x7')]),router[_0x5b6170('0x0')](_0x5b6170('0x5'),auth[_0x5b6170('0xb')](),interaction[_0x5b6170('0xc')]('whatsapp',_0x5b6170('0x16')),controller[_0x5b6170('0x19')]),router[_0x5b6170('0x0')](_0x5b6170('0x3'),auth['isAuthenticated'](),controller[_0x5b6170('0xf')]),module[_0x5b6170('0x6')]=router; \ No newline at end of file +const a949_0x10dc=['whatsappinteraction:destroy','whatsapp','whatsappinteraction:addtags','../../components/interaction/service','index','post','/:id','./whatsappInteraction.controller','exports','express','isAuthenticated','destroy','getMessages','delete','create','describe','put','/:id/tags','/:id/messages','whatsappinteraction:update','../../components/auth/service','tracked','addTags','Router','get','/:id/download'];(function(_0x581799,_0x326b73){const _0x10dc78=function(_0x5d750f){while(--_0x5d750f){_0x581799['push'](_0x581799['shift']());}};_0x10dc78(++_0x326b73);}(a949_0x10dc,0x15c));const a949_0x5d75=function(_0x581799,_0x326b73){_0x581799=_0x581799-0xa5;let _0x10dc78=a949_0x10dc[_0x581799];return _0x10dc78;};const a949_0x7cdb1=a949_0x5d75;'use strict';const express=require(a949_0x7cdb1(0xbe)),router=express[a949_0x7cdb1(0xb2)](),auth=require(a949_0x7cdb1(0xaf)),interaction=require(a949_0x7cdb1(0xb8)),controller=require(a949_0x7cdb1(0xbc));router[a949_0x7cdb1(0xb3)]('/',auth['isAuthenticated'](),controller[a949_0x7cdb1(0xb9)]),router['get']('/describe',auth[a949_0x7cdb1(0xa5)](),controller[a949_0x7cdb1(0xaa)]),router['get'](a949_0x7cdb1(0xbb),auth['isAuthenticated'](),controller['show']),router['get'](a949_0x7cdb1(0xad),auth['isAuthenticated'](),controller[a949_0x7cdb1(0xa7)]),router[a949_0x7cdb1(0xb3)](a949_0x7cdb1(0xb4),auth[a949_0x7cdb1(0xa5)](),controller['download']),router['post']('/',auth[a949_0x7cdb1(0xa5)](),controller[a949_0x7cdb1(0xa9)]),router[a949_0x7cdb1(0xba)](a949_0x7cdb1(0xad),auth[a949_0x7cdb1(0xa5)](),controller['addMessage']),router[a949_0x7cdb1(0xba)](a949_0x7cdb1(0xac),auth['isAuthenticated'](),interaction[a949_0x7cdb1(0xb0)]('whatsapp',a949_0x7cdb1(0xb7)),controller[a949_0x7cdb1(0xb1)]),router[a949_0x7cdb1(0xab)](a949_0x7cdb1(0xbb),auth[a949_0x7cdb1(0xa5)](),interaction[a949_0x7cdb1(0xb0)](a949_0x7cdb1(0xb6),a949_0x7cdb1(0xae)),controller['update']),router['delete'](a949_0x7cdb1(0xbb),auth['isAuthenticated'](),interaction[a949_0x7cdb1(0xb0)]('whatsapp',a949_0x7cdb1(0xb5)),controller[a949_0x7cdb1(0xa6)]),router[a949_0x7cdb1(0xa8)](a949_0x7cdb1(0xac),auth[a949_0x7cdb1(0xa5)](),controller['removeTags']),module[a949_0x7cdb1(0xbd)]=router; \ No newline at end of file diff --git a/server/api/whatsappInteraction/whatsappInteraction.attributes.js b/server/api/whatsappInteraction/whatsappInteraction.attributes.js index 5e8cb51..91ec89b 100644 --- a/server/api/whatsappInteraction/whatsappInteraction.attributes.js +++ b/server/api/whatsappInteraction/whatsappInteraction.attributes.js @@ -1 +1 @@ -const a793_0x58b9=['STRING','BOOLEAN','ENUM','out','exports','DATE'];(function(_0x529e05,_0x58b92a){const _0x5bc244=function(_0x4e4873){while(--_0x4e4873){_0x529e05['push'](_0x529e05['shift']());}};_0x5bc244(++_0x58b92a);}(a793_0x58b9,0x152));const a793_0x5bc2=function(_0x529e05,_0x58b92a){_0x529e05=_0x529e05-0x0;let _0x5bc244=a793_0x58b9[_0x529e05];return _0x5bc244;};const _0x3010be=a793_0x5bc2;'use strict';const Sequelize=require('sequelize');module[_0x3010be('0x2')]={'closed':{'type':Sequelize[_0x3010be('0x5')],'defaultValue':![]},'closedAt':{'type':Sequelize[_0x3010be('0x3')]},'disposition':{'type':Sequelize['STRING']},'secondDisposition':{'type':Sequelize[_0x3010be('0x4')]},'thirdDisposition':{'type':Sequelize[_0x3010be('0x4')]},'note':{'type':Sequelize[_0x3010be('0x4')]},'phone':{'type':Sequelize['STRING']},'read1stAt':{'type':Sequelize[_0x3010be('0x3')]},'firstMsgDirection':{'type':Sequelize[_0x3010be('0x0')]('in',_0x3010be('0x1')),'defaultValue':'in','allowNull':![]},'lastMsgAt':{'type':Sequelize[_0x3010be('0x3')]},'lastMsgDirection':{'type':Sequelize[_0x3010be('0x0')]('in',_0x3010be('0x1')),'defaultValue':'in','allowNull':![]}}; \ No newline at end of file +const a950_0x1e18=['DATE','ENUM','exports','out','attributes','STRING'];(function(_0x2c591a,_0xcbe4b0){const _0x1e18d0=function(_0x3244cd){while(--_0x3244cd){_0x2c591a['push'](_0x2c591a['shift']());}};_0x1e18d0(++_0xcbe4b0);}(a950_0x1e18,0x180));const a950_0x3244=function(_0x2c591a,_0xcbe4b0){_0x2c591a=_0x2c591a-0x9e;let _0x1e18d0=a950_0x1e18[_0x2c591a];return _0x1e18d0;};const a950_0x2594ca=a950_0x3244;'use strict';const {DataTypes}=require('sequelize'),attributes={'closed':{'type':DataTypes['BOOLEAN'],'defaultValue':![]},'closedAt':{'type':DataTypes['DATE']},'disposition':{'type':DataTypes[a950_0x2594ca(0xa3)]},'secondDisposition':{'type':DataTypes['STRING']},'thirdDisposition':{'type':DataTypes['STRING']},'note':{'type':DataTypes['STRING']},'phone':{'type':DataTypes[a950_0x2594ca(0xa3)]},'read1stAt':{'type':DataTypes[a950_0x2594ca(0x9e)]},'firstMsgDirection':{'type':DataTypes[a950_0x2594ca(0x9f)]('in',a950_0x2594ca(0xa1)),'defaultValue':'in','allowNull':![]},'lastMsgAt':{'type':DataTypes[a950_0x2594ca(0x9e)]},'lastMsgDirection':{'type':DataTypes[a950_0x2594ca(0x9f)]('in','out'),'defaultValue':'in','allowNull':![]}};module[a950_0x2594ca(0xa0)][a950_0x2594ca(0xa2)]=attributes; \ No newline at end of file diff --git a/server/api/whatsappInteraction/whatsappInteraction.controller.js b/server/api/whatsappInteraction/whatsappInteraction.controller.js index 0131f7e..2caa132 100644 --- a/server/api/whatsappInteraction/whatsappInteraction.controller.js +++ b/server/api/whatsappInteraction/whatsappInteraction.controller.js @@ -1 +1 @@ -const a794_0x1fc3=['firstName','tag','err','sendStatus','expr','i.WhatsappAccountId\x20IN\x20?','Sequelize','filter','groupBy','addTags','some','start','GROUP_CONCAT(DISTINCT\x20t.id)','limit','CONCAT(c.firstName,\x20\x27\x20\x27,\x20c.lastName)\x20LIKE\x20?','map','cm_contacts','../../config/logger','index','rows','`\x20>\x200','keys','json','describe','disposition','Contact.email','N.A.','send','where','squel','destroy','40px','query','parse','./whatsappInteraction.socket','$lte','end','pipe','User','split','c.lastName','WhatsappInteractionId','count','ui.WhatsappInteractionId\x20IN\x20?','CONCAT_WS(\x27\x20\x27,\x20o.name,\x20o.fullname)\x20LIKE\x20?','`\x20=\x200','whatsapp_interactions','lastName','union','t.id\x20=\x20it.TagId','from','nolimit','rimraf','files','CmContact','Messages','../../mysqldb','operator','select','merge','push','closedAt','ejs','a.mandatoryDisposition','having','type','ContactId','basename','join','color','WhatsappInteraction','unreadMessages','getWhatsappAccounts','path','transcript-','Tags','u.id\x20=\x20ui.UserId','unix','setTags','ui.WhatsappInteractionId','create','../../rediscache','fieldName','renderFile','Attachment','existsSync','SELECT','out','html-pdf','concat','MATCH\x20(c.firstName,\x20c.lastName,\x20c.phone,\x20c.mobile,\x20c.fax,\x20c.email)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','removeTags','downloadInteraction.html','Owner.internal','Content-Range','left_join','10px','addMessage','clone','YYYY-MM-DD\x20HH:mm:ss','i.phone\x20LIKE\x20?','order','attachments','format','read','sequelize','findAll','text','rawAttributes','set','\x20=\x20?','compact','server','fullname','filters','$gte','journey','SUM(me.read\x20=\x200\x20AND\x20me.direction\x20=\x20\x27in\x27)','c.firstName\x20LIKE\x20?\x20OR\x20c.lastName\x20LIKE\x20?\x20OR\x20c.email\x20LIKE\x20?','moment','../../config/environment','Account.mandatoryDisposition','t.id\x20IN\x20?','$substring','Owner','whatsapp_accounts','secret','sqlOperator','name','stack','i.WhatsappAccountId\x20IS\x20NOT\x20NULL','MATCH\x20(me.body)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','Users','whatsapp_interaction_has_tags','sort','search','length','user_has_whatsapp_interactions','Tag','tools_tags','WhatsappMessage','direction','users','value','mkdirSync','Contact.mobile','catch','parseSearch','DESC','download','o.internal','findOne','u.fullname','c.fax','unlinkSync','omit','i.WhatsappAccountId\x20IS\x20NULL','UserId','Account.key','transcript-%d-%s.zip','createdAt','buildExpression','i.id\x20LIKE\x20?','it.WhatsappInteractionId\x20=\x20i.id','params','CONCAT(\x27,\x27,\x20`TagIds`,\x20\x27,\x27)\x20LIKE\x20?','includeAll','i.id','update','find','TagIds','toString','zip-dir','root','ids','createReadStream','WhatsappAccountId','a.key','c.phone','conditions','createWriteStream','c.id\x20=\x20i.ContactId\x20AND\x20c.deletedAt\x20IS\x20NULL','keyBy','Contact','me.WhatsappInteractionId\x20=\x20i.id','../../components/parsers/qs','field','undefined','Contact.firstName','isEmpty','model','u.id','status','intersection','tmp','attributes','%s\x20#%d','Contact.lastName','error','QueryTypes','YYYY-MM-DD','30px','then','forEach','Account','offset','body','pick','WhatsappAccount','fields','System','Whatsapp','closed','replace','toFile','o.fullname','gte','getFullTextValue'];(function(_0x278489,_0x1fc33d){const _0x105493=function(_0x163344){while(--_0x163344){_0x278489['push'](_0x278489['shift']());}};_0x105493(++_0x1fc33d);}(a794_0x1fc3,0x1ae));const a794_0x1054=function(_0x278489,_0x1fc33d){_0x278489=_0x278489-0x0;let _0x105493=a794_0x1fc3[_0x278489];return _0x105493;};const _0x3e449c=a794_0x1054;'use strict';const pdf=require(_0x3e449c('0x5e')),rimraf=require(_0x3e449c('0x3a')),zipdir=require(_0x3e449c('0xb2')),moment=require(_0x3e449c('0x7d')),util=require('util'),path=require(_0x3e449c('0x4f')),ejs=require(_0x3e449c('0x44')),fs=require('fs'),_=require('lodash'),squel=require(_0x3e449c('0x23')),{getSocket}=require(_0x3e449c('0x57')),socket=getSocket(),qs=require(_0x3e449c('0xbf')),as=require('../../components/parsers/advancedSearch'),logger=require(_0x3e449c('0x17'))('api'),config=require(_0x3e449c('0x7e')),db=require(_0x3e449c('0x3e'))['db'],{Op}=require('sequelize');require(_0x3e449c('0x28'))['register'](socket);function respondWithStatusCode(_0x163344,_0x5ce672){return _0x5ce672=_0x5ce672||0xcc,function(_0x4af66a){const _0x4bf41a=a794_0x1054;if(_0x4af66a)return _0x163344[_0x4bf41a('0x9')](_0x5ce672);return _0x163344[_0x4bf41a('0xc6')](_0x5ce672)[_0x4bf41a('0x2a')]();};}function respondWithResult(_0x4c6796,_0x15b0ce){return _0x15b0ce=_0x15b0ce||0xc8,function(_0x1673bb){const _0x18dc93=a794_0x1054;if(_0x1673bb)return _0x4c6796[_0x18dc93('0xc6')](_0x15b0ce)[_0x18dc93('0x1c')](_0x1673bb);};}function respondWithFilteredResult(_0x57edd2,_0x45a55c){return function(_0x49a078){const _0x260ae8=a794_0x1054;if(_0x49a078){const _0x2ca508=_0x49a078[_0x260ae8('0x30')],_0xb603ec=_0x45a55c[_0x260ae8('0xd3')];let _0x5dafde=_0x45a55c[_0x260ae8('0xd3')]+_0x45a55c[_0x260ae8('0x13')],_0x4354ba;return _0x5dafde>=_0x2ca508?(_0x5dafde=_0x2ca508,_0x4354ba=0xc8):_0x4354ba=0xce,_0x57edd2[_0x260ae8('0xc6')](_0x4354ba),_0x57edd2[_0x260ae8('0x73')](_0x260ae8('0x64'),_0xb603ec+'-'+_0x5dafde+'/'+_0x2ca508)[_0x260ae8('0x1c')](_0x49a078);}return null;};}function saveUpdates(_0x5e94f0){return function(_0xe5c5a4){const _0x23160c=a794_0x1054;if(_0xe5c5a4)return _0xe5c5a4[_0x23160c('0xae')](_0x5e94f0)[_0x23160c('0xd0')](function(_0x3c6ad8){return _0x3c6ad8;});return null;};}function removeEntity(_0x4aa3b0){return function(_0x259d86){const _0x1ad390=a794_0x1054;if(_0x259d86)return _0x259d86[_0x1ad390('0x24')]()['then'](function(){_0x4aa3b0['status'](0xcc)['end']();});};}function handleEntityNotFound(_0x3339b9){return function(_0x2dcb1f){const _0x2586b5=a794_0x1054;return!_0x2dcb1f&&_0x3339b9[_0x2586b5('0x9')](0x194),_0x2dcb1f;};}function handleError(_0x12a8cf,_0x5e9088){return _0x5e9088=_0x5e9088||0x1f4,function(_0x20413e){const _0x3dc9ff=a794_0x1054;logger[_0x3dc9ff('0xcc')](_0x20413e[_0x3dc9ff('0x87')]),_0x20413e[_0x3dc9ff('0x86')]&&delete _0x20413e[_0x3dc9ff('0x86')],_0x12a8cf[_0x3dc9ff('0xc6')](_0x5e9088)[_0x3dc9ff('0x21')](_0x20413e);};}function getInteractionUsers(_0x24be56,_0x20fe12){return new Promise(function(_0x7f8e6c,_0x264079){const _0x3996ed=a794_0x1054;try{_0x20fe12[_0x24be56['id']]&&(_0x24be56[_0x3996ed('0x8a')]=_[_0x3996ed('0x15')](_0x20fe12[_0x24be56['id']],function(_0x473ba2){const _0x47ce8a=_0x3996ed;return{'id':_0x473ba2['id'],'fullname':_0x473ba2[_0x47ce8a('0x77')]};}));}catch(_0x31c071){_0x264079(_0x31c071);}_0x7f8e6c(_0x24be56);});}function getInteractionTags(_0x38ddd3,_0x4d593a){return new Promise(function(_0x1f44ca,_0x4d4381){const _0xe54f37=a794_0x1054;try{_0x38ddd3[_0xe54f37('0xb0')]&&(_0x38ddd3[_0xe54f37('0x51')]=[],_0x38ddd3['TagIds']['split'](',')['forEach'](function(_0xfa819a){const _0x2b176a=_0xe54f37;_0x38ddd3[_0x2b176a('0x51')][_0x2b176a('0x42')](_0x4d593a[_0xfa819a]);})),delete _0x38ddd3[_0xe54f37('0xb0')];}catch(_0x58eceb){_0x4d4381(_0x58eceb);}_0x1f44ca(_0x38ddd3);});}function updateWhatsappInteraction(_0x339588,_0x1ade88,_0x33f907){return new Promise(function(_0xfe1dc3,_0x3a5133){const _0x1ada12=a794_0x1054;return getInteractionUsers(_0x339588,_0x33f907)[_0x1ada12('0xd0')](function(_0x5a9d8b){return getInteractionTags(_0x5a9d8b,_0x1ade88);})[_0x1ada12('0xd0')](function(_0x5e79f8){_0xfe1dc3(_0x5e79f8);})[_0x1ada12('0x98')](function(_0x2b9a22){_0x3a5133(_0x2b9a22);});});}exports[_0x3e449c('0x18')]=function(_0xba0352,_0x2a3c01){const _0x81b09f=_0x3e449c,_0x224cb3={},_0xa5ae9c={},_0x1ca2c0={'count':0x0,'rows':[]},_0x2469ff=_[_0x81b09f('0x15')](db[_0x81b09f('0x4c')]['rawAttributes'],function(_0xded25c){const _0x10d4dc=_0x81b09f;return{'name':_0xded25c[_0x10d4dc('0x58')],'type':_0xded25c['type']['key']};});_0xa5ae9c[_0x81b09f('0xc4')]=_[_0x81b09f('0x15')](_0x2469ff,'name'),_0xa5ae9c['query']=_['keys'](_0xba0352[_0x81b09f('0x26')]),_0xa5ae9c[_0x81b09f('0x78')]=_[_0x81b09f('0xc7')](_0xa5ae9c['model'],_0xa5ae9c[_0x81b09f('0x26')]),_0x224cb3['attributes']=_[_0x81b09f('0xc7')](_0xa5ae9c[_0x81b09f('0xc4')],qs[_0x81b09f('0xd7')](_0xba0352[_0x81b09f('0x26')][_0x81b09f('0xd7')])),_0x224cb3[_0x81b09f('0xc9')]=_0x224cb3[_0x81b09f('0xc9')][_0x81b09f('0x8e')]?_0x224cb3['attributes']:_0xa5ae9c[_0x81b09f('0xc4')];typeof _0xba0352['query']['nolimit']===_0x81b09f('0xc1')&&(_0x224cb3[_0x81b09f('0x13')]=qs[_0x81b09f('0x13')](_0xba0352['query']['limit']),_0x224cb3[_0x81b09f('0xd3')]=qs['offset'](_0xba0352[_0x81b09f('0x26')]['offset']));_0x224cb3[_0x81b09f('0x6b')]=qs[_0x81b09f('0x8c')](_0xba0352[_0x81b09f('0x26')][_0x81b09f('0x8c')]),_0x224cb3['where']=qs[_0x81b09f('0x78')](_[_0x81b09f('0xd5')](_0xba0352[_0x81b09f('0x26')],_0xa5ae9c['filters']),_0x2469ff);let _0x151ed5=[];const _0x2c1e15=squel[_0x81b09f('0x40')]()['field']('id')['field'](_0x81b09f('0x86'))['field']('color')[_0x81b09f('0x38')](_0x81b09f('0x91')),_0x129a6b=squel['select']()[_0x81b09f('0xc0')](_0x81b09f('0xc5'))[_0x81b09f('0xc0')](_0x81b09f('0x9e'))[_0x81b09f('0xc0')](_0x81b09f('0x55'))['from'](_0x81b09f('0x8f'),'ui')[_0x81b09f('0x65')]('users','u',_0x81b09f('0x52')),_0x225680=squel[_0x81b09f('0x40')]()['from'](_0x81b09f('0x34'),'i')[_0x81b09f('0x65')](_0x81b09f('0x16'),'c',_0x81b09f('0xbb'))[_0x81b09f('0x65')](_0x81b09f('0x94'),'o','o.id\x20=\x20i.UserId')[_0x81b09f('0x65')](_0x81b09f('0x83'),'a','a.id\x20=\x20i.WhatsappAccountId')['left_join']('whatsapp_messages','me',_0x81b09f('0xbe'))['left_join'](_0x81b09f('0x8b'),'it',_0x81b09f('0xa9'))[_0x81b09f('0x65')](_0x81b09f('0x91'),'t',_0x81b09f('0x37')),_0x333bc5=squel[_0x81b09f('0xa')]();let _0x552159=[];const _0x17f961=squel[_0x81b09f('0xa')]();let _0x11faef;if(_0xba0352[_0x81b09f('0x26')][_0x81b09f('0x8d')]){_0x11faef=as[_0x81b09f('0x99')](_0xba0352[_0x81b09f('0x26')]['search']);const _0x2de451=_0x11faef[_0x81b09f('0x85')];for(let _0x5a3382=0x0;_0x5a3382<_0x11faef[_0x81b09f('0xb9')][_0x81b09f('0x8e')];_0x5a3382++){const _0x2b2e65=_0x11faef[_0x81b09f('0xb9')][_0x5a3382],_0x252d4e='i';let _0x5bec02,_0x41fbf9=_[_0x81b09f('0xaf')](_0x2469ff,[_0x81b09f('0x86'),_0x2b2e65[_0x81b09f('0xc0')]]);if(!_0x41fbf9)switch(_0x2b2e65[_0x81b09f('0xc0')]){case _0x81b09f('0x4d'):_0x2b2e65[_0x81b09f('0x95')]==0x1?_0x225680[_0x81b09f('0x46')]('`'+_0x2b2e65[_0x81b09f('0xc0')]+_0x81b09f('0x33')):_0x225680[_0x81b09f('0x46')]('`'+_0x2b2e65[_0x81b09f('0xc0')]+_0x81b09f('0x1a'));break;case _0x81b09f('0xbd'):if(_0x2b2e65[_0x81b09f('0x3f')]===_0x81b09f('0x81')){if(_0x2b2e65[_0x81b09f('0x95')]['split']('\x20')[_0x81b09f('0x8e')]>0x1)_0x333bc5[_0x2de451](_0x81b09f('0x60'),qs[_0x81b09f('0x5')](_0x2b2e65[_0x81b09f('0x95')]),null);else{const _0x372397='%'+_0x2b2e65['value']+'%';_0x333bc5[_0x2de451](_0x81b09f('0x7c'),_0x372397,_0x372397,_0x372397);}}else _0x41fbf9=_[_0x81b09f('0xaf')](_0x2469ff,[_0x81b09f('0x86'),_0x81b09f('0x48')]),_0x2b2e65[_0x81b09f('0xc0')]=_0x81b09f('0x48'),_0x5bec02=as[_0x81b09f('0xa7')](_0x252d4e,_0x41fbf9[_0x81b09f('0x47')],_0x2b2e65),_0x333bc5[_0x2de451](_0x5bec02[_0x81b09f('0x71')],_0x5bec02['value'][_0x81b09f('0x11')],_0x5bec02['value'][_0x81b09f('0x2a')]);break;case _0x81b09f('0x90'):{const _0x2fb516=_0x2b2e65[_0x81b09f('0x95')]['split'](',')[_0x81b09f('0x15')](function(_0x2bea9c){return Number(_0x2bea9c);});_0x2fb516[_0x81b09f('0xd1')](function(_0x5d8e52){const _0x57be3d=_0x81b09f;_0x17f961['or'](_0x57be3d('0xab'),'%,'+_0x5d8e52+',%');}),_0x552159=_[_0x81b09f('0x36')](_0x552159,_0x2fb516);}break;case _0x81b09f('0x2c'):_0x2b2e65[_0x81b09f('0x3f')]==='$substring'?_0x333bc5[_0x2de451](_0x81b09f('0x32'),'%'+_0x2b2e65[_0x81b09f('0x95')]+'%',null):(_0x41fbf9=_['find'](_0x2469ff,[_0x81b09f('0x86'),_0x81b09f('0xa3')]),_0x2b2e65[_0x81b09f('0xc0')]='UserId',_0x5bec02=as[_0x81b09f('0xa7')](_0x252d4e,_0x41fbf9['type'],_0x2b2e65),_0x333bc5[_0x2de451](_0x5bec02[_0x81b09f('0x71')],_0x5bec02[_0x81b09f('0x95')][_0x81b09f('0x11')],_0x5bec02[_0x81b09f('0x95')]['end']));break;case'body':_0x5bec02=as[_0x81b09f('0xa7')]('me',null,_0x2b2e65),_0x333bc5[_0x2de451](_0x5bec02['text'],_0x5bec02[_0x81b09f('0x95')][_0x81b09f('0x11')],_0x5bec02[_0x81b09f('0x95')]['end']);break;}else _0x5bec02=as[_0x81b09f('0xa7')](_0x252d4e,_0x41fbf9['type'],_0x2b2e65),_0x333bc5[_0x2de451](_0x5bec02['text'],_0x5bec02[_0x81b09f('0x95')][_0x81b09f('0x11')],_0x5bec02[_0x81b09f('0x95')][_0x81b09f('0x2a')]);}}else{const _0x11840b=_(_0xba0352[_0x81b09f('0x26')])[_0x81b09f('0x1b')]()[_0x81b09f('0x15')](function(_0xa4ed53){const _0x243e1a=_0x81b09f;return _[_0x243e1a('0x10')](_0x2469ff,['name',_0xa4ed53])?_0xa4ed53:undefined;})[_0x81b09f('0x75')]()[_0x81b09f('0x95')]();!_[_0x81b09f('0xc3')](_0x11840b)&&_0x11840b[_0x81b09f('0xd1')](function(_0x5153d6){const _0x4a8610=_0x81b09f;if(_0x5153d6==='WhatsappAccountId')_0x225680[_0x4a8610('0x22')](_0x4a8610('0xb'),[][_0x4a8610('0x5f')](_0xba0352[_0x4a8610('0x26')][_0x5153d6]));else{if(_0x5153d6===_0x4a8610('0xa6')){const _0x18ee98=JSON[_0x4a8610('0x27')](_0xba0352[_0x4a8610('0x26')][_0x5153d6])[_0x4a8610('0x79')],_0x2b648e=JSON[_0x4a8610('0x27')](_0xba0352[_0x4a8610('0x26')][_0x5153d6])[_0x4a8610('0x29')];_0x225680[_0x4a8610('0x22')]('i.createdAt\x20BETWEEN\x20?\x20AND\x20?',_0x18ee98,_0x2b648e);}else _0xba0352[_0x4a8610('0x26')][_0x5153d6]==='null'?_0x225680[_0x4a8610('0x22')]('i.'+_0x5153d6+'\x20IS\x20NULL'):_0x225680[_0x4a8610('0x22')]('i.'+_0x5153d6+_0x4a8610('0x74'),_0xba0352[_0x4a8610('0x26')][_0x5153d6]);}});_0xba0352[_0x81b09f('0x26')][_0x81b09f('0x6e')]&&(_0xba0352[_0x81b09f('0x26')][_0x81b09f('0x6e')]==0x1?_0x225680[_0x81b09f('0x46')]('`unreadMessages`\x20=\x200'):_0x225680[_0x81b09f('0x46')]('`unreadMessages`\x20>\x200'));_0xba0352[_0x81b09f('0x26')][_0x81b09f('0x7')]&&(_0x552159=_['isArray'](_0xba0352[_0x81b09f('0x26')][_0x81b09f('0x7')])?_0xba0352[_0x81b09f('0x26')][_0x81b09f('0x7')]:new Array(_0xba0352[_0x81b09f('0x26')][_0x81b09f('0x7')]),_0x552159['forEach'](function(_0x4a0c5c){const _0x55833c=_0x81b09f;_0x17f961['or'](_0x55833c('0xab'),'%,'+_0x4a0c5c+',%');}));if(_0xba0352['query']['filter']){const _0x2402c2=_0xba0352[_0x81b09f('0x26')][_0x81b09f('0xd')][_0x81b09f('0x1')]('\x5c','\x5c\x5c')['replace'](/'/g,'\x27\x27');qs['isNumeric'](_0x2402c2)?_0x333bc5['or'](_0x81b09f('0xa8'),_0x2402c2+'%')['or'](_0x81b09f('0x6a'),_0x2402c2+'%'):_0x333bc5['or'](_0x81b09f('0x89'),qs[_0x81b09f('0x5')](_0x2402c2))['or'](_0x81b09f('0x14'),_0x2402c2+'%');}}_0x225680[_0x81b09f('0x22')](_0x333bc5),_0x225680['group'](_0x81b09f('0xad'));let _0x4079eb={'type':db[_0x81b09f('0xc')][_0x81b09f('0xcd')][_0x81b09f('0x5c')],'raw':!![]};const _0x48fca1=_0x225680[_0x81b09f('0x68')]();_0x48fca1[_0x81b09f('0xc0')](_0x81b09f('0xad')),_0x48fca1[_0x81b09f('0xc0')](_0x81b09f('0x7b'),_0x81b09f('0x4d')),_0x224cb3[_0x81b09f('0x6b')]&&_0x224cb3[_0x81b09f('0x6b')][_0x81b09f('0xd1')](function(_0x45e1d3){const _0x518501=_0x81b09f;_0x225680[_0x518501('0x6b')]('i.'+_0x45e1d3[0x0],_0x45e1d3[0x1]===_0x518501('0x9a')?![]:!![]);}),!_[_0x81b09f('0xc3')](_0x552159)&&(_0x225680['having'](_0x17f961),_0x48fca1[_0x81b09f('0x22')](_0x81b09f('0x80'),_0x552159)),Promise['resolve']()['then'](function(){const _0x32787e=_0x81b09f;if(!_0x11faef){if(_0xba0352[_0x32787e('0x26')][_0x32787e('0xb6')]||_0xba0352[_0x32787e('0x26')][_0x32787e('0x7a')])return;_0x48fca1[_0x32787e('0x22')](_0x32787e('0x88')),_0x225680['where'](_0x32787e('0x88'));return;}return _0xba0352['user'][_0x32787e('0x4e')]({'attributes':['id'],'raw':!![]})[_0x32787e('0xd0')](function(_0x4ca236){const _0x481224=_0x32787e;_[_0x481224('0xc3')](_0x4ca236)?(_0x48fca1[_0x481224('0x22')](_0x481224('0xa2')),_0x225680[_0x481224('0x22')](_0x481224('0xa2'))):(_0x48fca1[_0x481224('0x22')](_0x481224('0xb'),_[_0x481224('0x15')](_0x4ca236,'id')),_0x225680[_0x481224('0x22')](_0x481224('0xb'),_[_0x481224('0x15')](_0x4ca236,'id')));});})[_0x81b09f('0xd0')](function(){const _0x11377f=_0x81b09f;db[_0x11377f('0x6f')][_0x11377f('0x26')](_0x48fca1[_0x11377f('0xb1')](),_0x4079eb)[_0x11377f('0xd0')](function(_0x13acd6){const _0x4e330d=_0x11377f;_0x1ca2c0[_0x4e330d('0x30')]=_0x13acd6[_0x4e330d('0x8e')];if(_0x1ca2c0[_0x4e330d('0x30')]===0x0)return[];return db[_0x4e330d('0x6f')][_0x4e330d('0x26')](_0x2c1e15[_0x4e330d('0xb1')](),_0x4079eb)['then'](function(_0x2cb9fc){const _0x4090c0=_0x4e330d;_0x151ed5=_[_0x4090c0('0xbc')](_0x2cb9fc,'id'),_0x4079eb=_[_0x4090c0('0x41')](_0x4079eb,{'model':db['WhatsappInteraction'],'mapToModel':!![],'raw':!![],'nest':!![]});_0xba0352['query'][_0x4090c0('0xd7')]?_0x224cb3[_0x4090c0('0xc9')][_0x4090c0('0xd1')](function(_0x56eec3){_0x225680['field']('i.'+_0x56eec3);}):(_0x225680[_0x4090c0('0xc0')](_0x4090c0('0x7b'),'unreadMessages'),_0x225680[_0x4090c0('0xc0')](_0x4090c0('0xb7'),_0x4090c0('0xa4')),_0x225680[_0x4090c0('0xc0')](_0x4090c0('0x45'),_0x4090c0('0x7f')),_0x225680['field']('i.*'),_0x225680[_0x4090c0('0xc0')]('c.firstName',_0x4090c0('0xc2')),_0x225680[_0x4090c0('0xc0')](_0x4090c0('0x2e'),_0x4090c0('0xcb')),_0x225680[_0x4090c0('0xc0')]('c.email',_0x4090c0('0x1f')),_0x225680[_0x4090c0('0xc0')](_0x4090c0('0xb8'),'Contact.phone'),_0x225680[_0x4090c0('0xc0')]('c.mobile',_0x4090c0('0x97')),_0x225680[_0x4090c0('0xc0')](_0x4090c0('0x9f'),'Contact.fax'),_0x225680[_0x4090c0('0xc0')](_0x4090c0('0x3'),'Owner.fullname'),_0x225680['field'](_0x4090c0('0x9c'),_0x4090c0('0x63')),_0x225680[_0x4090c0('0xc0')](_0x4090c0('0x12'),'TagIds'));if(_0x224cb3[_0x4090c0('0x13')])_0x225680[_0x4090c0('0x13')](_0x224cb3[_0x4090c0('0x13')]);if(_0x224cb3[_0x4090c0('0xd3')])_0x225680[_0x4090c0('0xd3')](_0x224cb3['offset']);return db['sequelize'][_0x4090c0('0x26')](_0x225680['toString'](),_0x4079eb);})[_0x4e330d('0xd0')](function(_0x7a1eb9){const _0x3344f8=_0x4e330d;return _0x129a6b[_0x3344f8('0x22')](_0x3344f8('0x31'),_[_0x3344f8('0x15')](_0x7a1eb9,'id')),db[_0x3344f8('0x6f')][_0x3344f8('0x26')](_0x129a6b[_0x3344f8('0xb1')](),_0x4079eb)['then'](function(_0x1a9ede){const _0x597c33=_0x3344f8,_0x235b12=_[_0x597c33('0xe')](_0x1a9ede,_0x597c33('0x2f')),_0x56ccd7=[];return _0x7a1eb9['forEach'](function(_0x12d7d4){const _0x1bc26b=_0x597c33;_0x56ccd7[_0x1bc26b('0x42')](updateWhatsappInteraction(_0x12d7d4,_0x151ed5,_0x235b12));}),Promise['all'](_0x56ccd7);});});})[_0x11377f('0xd0')](function(_0x5a210a){const _0xc17483=_0x11377f;return _0x1ca2c0[_0xc17483('0x19')]=_0x5a210a,_0x1ca2c0;})[_0x11377f('0xd0')](respondWithFilteredResult(_0x2a3c01,_0x224cb3));})['catch'](handleError(_0x2a3c01,null));},exports['show']=function(_0x487eb0,_0x13500f){const _0x30928a=_0x3e449c;let _0x305ab4={'raw':![],'where':{'id':_0x487eb0[_0x30928a('0xaa')]['id']}};const _0xcabfe9={};return _0xcabfe9[_0x30928a('0xc4')]=_[_0x30928a('0x1b')](db[_0x30928a('0x4c')][_0x30928a('0x72')]),_0xcabfe9[_0x30928a('0x26')]=_[_0x30928a('0x1b')](_0x487eb0['query']),_0xcabfe9[_0x30928a('0x78')]=_['intersection'](_0xcabfe9[_0x30928a('0xc4')],_0xcabfe9['query']),_0x305ab4[_0x30928a('0xc9')]=_[_0x30928a('0xc7')](_0xcabfe9[_0x30928a('0xc4')],qs[_0x30928a('0xd7')](_0x487eb0[_0x30928a('0x26')][_0x30928a('0xd7')])),_0x305ab4[_0x30928a('0xc9')]=_0x305ab4[_0x30928a('0xc9')]['length']?_0x305ab4['attributes']:_0xcabfe9[_0x30928a('0xc4')],_0x487eb0[_0x30928a('0x26')][_0x30928a('0xac')]&&(_0x305ab4['include']=[{'all':!![]}]),_0x305ab4=_['merge']({},_0x305ab4,_0x487eb0['options']),db[_0x30928a('0x4c')][_0x30928a('0x9d')](_0x305ab4)[_0x30928a('0xd0')](handleEntityNotFound(_0x13500f,null))[_0x30928a('0xd0')](respondWithResult(_0x13500f,null))[_0x30928a('0x98')](handleError(_0x13500f,null));},exports[_0x3e449c('0x56')]=function(_0x39ad92,_0x366a4c){const _0x5f0abe=_0x3e449c;return db[_0x5f0abe('0x4c')][_0x5f0abe('0x56')](_0x39ad92[_0x5f0abe('0xd4')],{})[_0x5f0abe('0xd0')](respondWithResult(_0x366a4c,0xc9))['catch'](handleError(_0x366a4c,null));},exports['update']=function(_0x4def82,_0x2c1ddd){const _0x16223d=_0x3e449c;return _0x4def82['body']['id']&&delete _0x4def82[_0x16223d('0xd4')]['id'],db[_0x16223d('0x4c')][_0x16223d('0x9d')]({'where':{'id':_0x4def82[_0x16223d('0xaa')]['id']}})[_0x16223d('0xd0')](handleEntityNotFound(_0x2c1ddd,null))[_0x16223d('0xd0')](saveUpdates(_0x4def82[_0x16223d('0xd4')],null))[_0x16223d('0xd0')](respondWithResult(_0x2c1ddd,null))['catch'](handleError(_0x2c1ddd,null));},exports[_0x3e449c('0x24')]=function(_0x35801f,_0x5a08b8){const _0x4d6e2d=_0x3e449c;return db['WhatsappInteraction'][_0x4d6e2d('0x9d')]({'where':{'id':_0x35801f[_0x4d6e2d('0xaa')]['id']}})['then'](handleEntityNotFound(_0x5a08b8,null))[_0x4d6e2d('0xd0')](removeEntity(_0x5a08b8,null))['catch'](handleError(_0x5a08b8,null));},exports[_0x3e449c('0x1d')]=function(_0xf9d9e9,_0x5b6635){const _0x1fcdad=_0x3e449c;return db[_0x1fcdad('0x4c')][_0x1fcdad('0x1d')]()[_0x1fcdad('0xd0')](respondWithResult(_0x5b6635,null))[_0x1fcdad('0x98')](handleError(_0x5b6635,null));},exports[_0x3e449c('0x67')]=function(_0x59a89f,_0x5140a1){const _0x10ec50=_0x3e449c;return db[_0x10ec50('0x92')][_0x10ec50('0x9d')]({'where':{'id':_0x59a89f['params']['id']}})[_0x10ec50('0xd0')](function(_0x446e2e){const _0x4e24e3=_0x10ec50;if(_0x446e2e)return _0x446e2e['addMessage'](_0x59a89f[_0x4e24e3('0xd4')][_0x4e24e3('0xb4')],{'through':_['omit'](_0x59a89f[_0x4e24e3('0xd4')],[_0x4e24e3('0xb4'),'id'])});})[_0x10ec50('0xd0')](respondWithResult(_0x5140a1,null))[_0x10ec50('0x98')](handleError(_0x5140a1,null));},exports['getMessages']=function(_0x1edd61,_0x466e4b){const _0x5d9af2=_0x3e449c;let _0x3b9f7b={'raw':![],'where':{}};const _0x43bfc2={},_0x2d417b={'count':0x0,'rows':[]};return db[_0x5d9af2('0x4c')][_0x5d9af2('0x9d')]({'where':{'id':_0x1edd61[_0x5d9af2('0xaa')]['id']}})[_0x5d9af2('0xd0')](handleEntityNotFound(_0x466e4b,null))[_0x5d9af2('0xd0')](function(_0x2fca94){const _0x49e3f6=_0x5d9af2;if(_0x2fca94){_0x43bfc2['model']=_[_0x49e3f6('0x1b')](db[_0x49e3f6('0x92')][_0x49e3f6('0x72')]),_0x43bfc2[_0x49e3f6('0x26')]=_['keys'](_0x1edd61[_0x49e3f6('0x26')]),_0x43bfc2[_0x49e3f6('0x78')]=_[_0x49e3f6('0xc7')](_0x43bfc2['model'],_0x43bfc2[_0x49e3f6('0x26')]),_0x3b9f7b['attributes']=_[_0x49e3f6('0xc7')](_0x43bfc2[_0x49e3f6('0xc4')],qs['fields'](_0x1edd61['query'][_0x49e3f6('0xd7')])),_0x3b9f7b[_0x49e3f6('0xc9')]=_0x3b9f7b[_0x49e3f6('0xc9')]['length']?_0x3b9f7b['attributes']:_0x43bfc2[_0x49e3f6('0xc4')];typeof _0x1edd61[_0x49e3f6('0x26')][_0x49e3f6('0x39')]===_0x49e3f6('0xc1')&&(_0x3b9f7b[_0x49e3f6('0x13')]=qs[_0x49e3f6('0x13')](_0x1edd61['query'][_0x49e3f6('0x13')]),_0x3b9f7b[_0x49e3f6('0xd3')]=qs[_0x49e3f6('0xd3')](_0x1edd61['query'][_0x49e3f6('0xd3')]));_0x3b9f7b[_0x49e3f6('0x6b')]=qs['sort'](_0x1edd61[_0x49e3f6('0x26')][_0x49e3f6('0x8c')]),_0x3b9f7b['where']=qs[_0x49e3f6('0x78')](_[_0x49e3f6('0xd5')](_0x1edd61[_0x49e3f6('0x26')],_0x43bfc2[_0x49e3f6('0x78')])),_0x3b9f7b[_0x49e3f6('0x22')][_0x49e3f6('0x2f')]=_0x2fca94['id'];_0x1edd61[_0x49e3f6('0x26')][_0x49e3f6('0xd')]&&(_0x3b9f7b[_0x49e3f6('0x22')]=_[_0x49e3f6('0x41')](_0x3b9f7b[_0x49e3f6('0x22')],{[Op['or']]:_[_0x49e3f6('0x15')](_0x3b9f7b[_0x49e3f6('0xc9')],function(_0x199a10){const _0x4491c5=_0x49e3f6,_0xdec7c3={};return _0xdec7c3[_0x199a10]={[Op['like']]:'%'+_0x1edd61[_0x4491c5('0x26')][_0x4491c5('0xd')]+'%'},_0xdec7c3;})}));if(_0x1edd61[_0x49e3f6('0x26')][_0x49e3f6('0x79')]){const _0x57af02=_0x1edd61[_0x49e3f6('0x26')][_0x49e3f6('0x79')][_0x49e3f6('0x2d')](','),_0x5590fa={};_0x5590fa[_0x57af02[0x0]]={[Op[_0x49e3f6('0x4')]]:moment(_0x57af02[0x1])[_0x49e3f6('0x6d')](_0x49e3f6('0x69'))},_0x3b9f7b[_0x49e3f6('0x22')]=_[_0x49e3f6('0x41')](_0x3b9f7b[_0x49e3f6('0x22')],_0x5590fa);}return _0x3b9f7b=_[_0x49e3f6('0x41')]({},_0x3b9f7b,_0x1edd61['options']),db[_0x49e3f6('0x92')]['count']({'where':_0x3b9f7b[_0x49e3f6('0x22')]})['then'](function(_0x4ff50e){const _0x392309=_0x49e3f6;return _0x2d417b[_0x392309('0x30')]=_0x4ff50e,_0x1edd61[_0x392309('0x26')]['includeAll']&&(_0x3b9f7b['include']=[{'all':!![]}]),db[_0x392309('0x92')][_0x392309('0x70')](_0x3b9f7b);})[_0x49e3f6('0xd0')](function(_0x512a7a){const _0x2e9d74=_0x49e3f6;return _0x2d417b[_0x2e9d74('0x19')]=_0x512a7a,_0x2d417b;});}})['then'](respondWithFilteredResult(_0x466e4b,_0x3b9f7b))['catch'](handleError(_0x466e4b,null));},exports[_0x3e449c('0xf')]=function(_0x37a5ad,_0x974242){const _0xcf643b=_0x3e449c;return db[_0xcf643b('0x4c')]['findOne']({'where':{'id':_0x37a5ad[_0xcf643b('0xaa')]['id']}})[_0xcf643b('0xd0')](function(_0x47e3ec){const _0x15f2ef=_0xcf643b;if(_0x47e3ec)return _0x47e3ec[_0x15f2ef('0x54')](_0x37a5ad[_0x15f2ef('0xd4')][_0x15f2ef('0xb4')],{'through':_[_0x15f2ef('0xa1')](_0x37a5ad[_0x15f2ef('0xd4')],['ids','id'])})['then'](function(){const _0x525e9c=_0x15f2ef;return db['Tag'][_0x525e9c('0x70')]({'attributes':['id',_0x525e9c('0x86'),_0x525e9c('0x4b')],'where':{'id':_0x37a5ad[_0x525e9c('0xd4')][_0x525e9c('0xb4')]}});})[_0x15f2ef('0xd0')](function(_0x1c28da){return socket['emit']('whatsappInteractionTags:save',{'id':Number(_0x37a5ad['params']['id']),'tags':_0x1c28da||[]}),{'id':Number(_0x37a5ad['params']['id']),'tags':_0x1c28da||[]};});})['then'](respondWithResult(_0x974242,null))[_0xcf643b('0x98')](handleError(_0x974242,null));},exports[_0x3e449c('0x61')]=function(_0x38c082,_0x4e7c5b){const _0x16f3dd=_0x3e449c;return db[_0x16f3dd('0x4c')]['findOne']({'where':{'id':_0x38c082[_0x16f3dd('0xaa')]['id']}})['then'](handleEntityNotFound(_0x4e7c5b,null))[_0x16f3dd('0xd0')](function(_0x267f9b){const _0xc2e2e3=_0x16f3dd;if(_0x267f9b)return _0x267f9b['removeTags'](_0x38c082[_0xc2e2e3('0x26')][_0xc2e2e3('0xb4')]);})[_0x16f3dd('0xd0')](respondWithStatusCode(_0x4e7c5b,null))[_0x16f3dd('0x98')](handleError(_0x4e7c5b,null));},exports[_0x3e449c('0x9b')]=function(_0x10f82a,_0x385fec){const _0x5e4410=_0x3e449c,_0x18b5f8=moment()[_0x5e4410('0x53')]()[_0x5e4410('0xb1')](),_0x3377df=path['join'](config[_0x5e4410('0xb3')],'files',_0x5e4410('0xc8')),_0x35dfa7=path[_0x5e4410('0x4a')](config[_0x5e4410('0xb3')],_0x5e4410('0x76'),_0x5e4410('0x3b'),_0x5e4410('0x6c')),_0x27bcf1=path[_0x5e4410('0x4a')](_0x3377df,_0x18b5f8),_0x235d40=util[_0x5e4410('0x6d')](_0x5e4410('0xa5'),_0x10f82a[_0x5e4410('0xaa')]['id'],_0x18b5f8),_0x705ba4=path['join'](_0x3377df,_0x235d40),_0x20fa10=[];_0x20fa10[_0x5e4410('0x42')]({'model':db[_0x5e4410('0x2c')],'as':_0x5e4410('0x2c'),'attributes':['id',_0x5e4410('0x77')],'raw':!![]}),_0x20fa10[_0x5e4410('0x42')]({'model':db[_0x5e4410('0x3c')],'as':'Contact','attributes':['id',_0x5e4410('0x6'),_0x5e4410('0x35')],'raw':!![]});_0x10f82a[_0x5e4410('0x26')][_0x5e4410('0x6c')]&&_0x20fa10[_0x5e4410('0x42')]({'model':db[_0x5e4410('0x5a')],'as':_0x5e4410('0x5a'),'raw':!![]});const _0x56993b=[{'model':db[_0x5e4410('0x92')],'as':'Messages','attributes':['id','body',_0x5e4410('0xa6'),_0x5e4410('0x93'),_0x5e4410('0x84'),'read'],'include':_0x20fa10}];return _0x56993b['push']({'model':db[_0x5e4410('0xd6')],'as':_0x5e4410('0xd2'),'attributes':['id',_0x5e4410('0x86')]}),_0x56993b[_0x5e4410('0x42')]({'model':db[_0x5e4410('0x2c')],'as':_0x5e4410('0x82'),'attributes':['id','fullname']}),db[_0x5e4410('0x4c')]['findOne']({'where':{'id':_0x10f82a[_0x5e4410('0xaa')]['id']},'include':_0x56993b})[_0x5e4410('0xd0')](handleEntityNotFound(_0x385fec,null))[_0x5e4410('0xd0')](function(_0x101c6b){const _0x2218a0=_0x5e4410;if(_0x101c6b){const _0x3ef94a=_0x101c6b['get']({'plain':!![]});fs[_0x2218a0('0x96')](_0x27bcf1);const _0x400417={'format':'A4','border':_0x2218a0('0x66'),'header':{'height':_0x2218a0('0x25'),'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':_0x2218a0('0xcf'),'contents':{'default':util[_0x2218a0('0x6d')]('\x0a\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'](_0x2218a0('0xca'),_0x2218a0('0xd9'),_0x3ef94a['id']),moment()[_0x2218a0('0x6d')](_0x2218a0('0xce'))['toString']())}}},_0x444d99={'channel':_0x2218a0('0xd9'),'account':_0x3ef94a[_0x2218a0('0xd2')][_0x2218a0('0x86')],'agent':_0x3ef94a[_0x2218a0('0x82')]?_0x3ef94a[_0x2218a0('0x82')]['fullname']:_0x2218a0('0x20'),'createdAt':moment(_0x3ef94a[_0x2218a0('0xa6')])[_0x2218a0('0x6d')](_0x2218a0('0x69'))[_0x2218a0('0xb1')](),'closedAt':_0x3ef94a[_0x2218a0('0x0')]?moment(_0x3ef94a[_0x2218a0('0x43')])[_0x2218a0('0x6d')](_0x2218a0('0x69'))[_0x2218a0('0xb1')]():'','disposition':_0x3ef94a[_0x2218a0('0x1e')],'messages':_(_0x3ef94a[_0x2218a0('0x3d')])['filter']({'secret':![]})[_0x2218a0('0x15')](function(_0x4f4f06){const _0x586585=_0x2218a0;if(_0x4f4f06['Attachment']){const _0x45c9cd=path['join'](_0x35dfa7,_0x4f4f06['Attachment'][_0x586585('0x49')]);fs[_0x586585('0x5b')](_0x45c9cd)&&fs[_0x586585('0xb5')](_0x45c9cd)[_0x586585('0x2b')](fs[_0x586585('0xba')](path[_0x586585('0x4a')](_0x27bcf1,_0x4f4f06[_0x586585('0x5a')][_0x586585('0x49')])));}return{'date':moment(_0x4f4f06[_0x586585('0xa6')])[_0x586585('0x6d')](_0x586585('0x69'))[_0x586585('0xb1')](),'sender':_0x4f4f06['direction']===_0x586585('0x5d')?_0x4f4f06[_0x586585('0x2c')]?_0x4f4f06[_0x586585('0x2c')][_0x586585('0x77')]:_0x586585('0xd8'):_0x4f4f06['Contact'][_0x586585('0x6')]+(_0x4f4f06[_0x586585('0xbd')][_0x586585('0x35')]?'\x20'+_0x4f4f06[_0x586585('0xbd')]['lastName']:''),'body':_0x4f4f06[_0x586585('0x5a')]?_0x4f4f06[_0x586585('0x5a')][_0x586585('0x49')]:_0x4f4f06[_0x586585('0xd4')],'direction':_0x4f4f06['direction']===_0x586585('0x5d')?'A':'C','secret':_0x4f4f06[_0x586585('0x84')],'read':_0x4f4f06[_0x586585('0x6e')],'attachment':_0x4f4f06[_0x586585('0x5a')]};})['value']()};return ejs[_0x2218a0('0x59')](path['join'](config[_0x2218a0('0xb3')],_0x2218a0('0x76'),'views',_0x2218a0('0x62')),{'interaction':_0x444d99})[_0x2218a0('0xd0')](function(_0x325c4a){return new Promise(function(_0x5cde62,_0x281d6e){const _0x4611ff=a794_0x1054;pdf['create'](_0x325c4a,_0x400417)[_0x4611ff('0x2')](path[_0x4611ff('0x4a')](_0x27bcf1,_0x4611ff('0x50')+_0x3ef94a['id']+'-'+_0x18b5f8+'.pdf'),function(_0x185f20,_0x5cdc24){if(_0x185f20)return _0x281d6e(_0x185f20);_0x5cde62(_0x5cdc24);});});})['then'](function(){const _0x1ca93f=_0x2218a0;return new Promise(function(_0x161ec3,_0x1fb178){zipdir(_0x27bcf1,{'saveTo':_0x705ba4},function(_0x3de600,_0x39a636){if(_0x3de600)return _0x1fb178(_0x3de600);return _0x161ec3(_0x39a636);});})['then'](function(){return new Promise(function(_0x171ce5,_0x166730){rimraf(_0x27bcf1,function(_0xbe89b5){if(_0xbe89b5)_0x166730(_0xbe89b5);return _0x171ce5();});});})[_0x1ca93f('0xd0')](function(){return _0x385fec['download'](_0x705ba4,_0x235d40,function(_0x1145e6){const _0x3f31bb=a794_0x1054;_0x1145e6?console['log'](_0x3f31bb('0x8'),_0x1145e6):fs[_0x3f31bb('0xa0')](_0x705ba4);});});});}else return _0x385fec[_0x2218a0('0x9')](0xc8);})[_0x5e4410('0x98')](handleError(_0x385fec,null));}; \ No newline at end of file +const a951_0x441d=['format','include','o.internal','type','err','a.mandatoryDisposition','toFile','Contact','stack','c.firstName\x20LIKE\x20?\x20OR\x20c.lastName\x20LIKE\x20?\x20OR\x20c.email\x20LIKE\x20?','key','views','Contact.fax','fullname','Messages','start','log','update','field','c.id\x20=\x20i.ContactId\x20AND\x20c.deletedAt\x20IS\x20NULL','transcript-%d-%s.zip','../../components/parsers/qs','findOne','isNumeric','getWhatsappAccounts','intersection','map','clone','c.mobile','./whatsappInteraction.socket','isEmpty','limit','groupBy','read','t.id\x20=\x20it.TagId','omit','$substring','c.lastName','MATCH\x20(me.body)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','../../mysqldb','i.WhatsappAccountId\x20IS\x20NOT\x20NULL','Account','length','findAll','attributes','concat','isArray','disposition','Attachment','nolimit','merge','sendStatus','show','util','mkdirSync','create','$lte','it.WhatsappInteractionId\x20=\x20i.id','u.id\x20=\x20ui.UserId','WhatsappInteractionId','then','downloadInteraction.html','../../rediscache','\x20=\x20?','server','filters','existsSync','parseSearch','end','ContactId','squel','keys','keyBy','find','filter','WhatsappInteraction','ids','text','rawAttributes','.pdf','u.id','WhatsappAccountId','Whatsapp','query','order','createdAt','DESC','Account.key','from','`unreadMessages`\x20=\x200','`\x20>\x200','buildExpression','search','10px','tag','status','a.key','destroy','getFullTextValue','forEach','rows','tools_tags','o.fullname','addMessage','whatsapp_interaction_has_tags','u.fullname','tmp','../../config/logger','Contact.email','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20
    Interaction\x20Transcript
    \x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','files','error','GROUP_CONCAT(DISTINCT\x20t.id)','sqlOperator','TagIds','ui.WhatsappInteractionId','compact','getMessages','gte','split','c.email','pipe','push','journey','closed','having','undefined','download','replace','i.WhatsappAccountId\x20IN\x20?','register','group','me.WhatsappInteractionId\x20=\x20i.id','Owner','lodash','ejs','SUM(me.read\x20=\x200\x20AND\x20me.direction\x20=\x20\x27in\x27)','some','direction','c.firstName','removeTags','unlinkSync','Account.mandatoryDisposition','UserId','c.phone','where','whatsapp_accounts','setTags','includeAll','root','all','%s\x20#%d','describe','count','send','../../config/environment','addTags','value','params','color','transcript-','expr','i.WhatsappAccountId\x20IS\x20NULL','firstName','Users','\x0a\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','CONCAT(\x27,\x27,\x20`TagIds`,\x20\x27,\x27)\x20LIKE\x20?','catch','join','parse','whatsappInteractionTags:save','offset','user','model','left_join','api','Contact.phone','createWriteStream','users','like','fieldName','Tags','N.A.','WhatsappMessage','i.id','union','o.id\x20=\x20i.UserId','CONCAT(c.firstName,\x20\x27\x20\x27,\x20c.lastName)\x20LIKE\x20?','lastName','i.id\x20LIKE\x20?','set','select','pick','toString','basename','YYYY-MM-DD','YYYY-MM-DD\x20HH:mm:ss','sequelize','get','options','a.id\x20=\x20i.WhatsappAccountId','User','c.fax','out','Contact.firstName','unreadMessages','name','json','MATCH\x20(c.firstName,\x20c.lastName,\x20c.phone,\x20c.mobile,\x20c.fax,\x20c.email)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','cm_contacts','$gte','i.phone\x20LIKE\x20?','fields','Tag','i.*','sort','\x20IS\x20NULL','body','attachments','30px'];(function(_0x3c6576,_0x5a7324){const _0x441d83=function(_0x44abe6){while(--_0x44abe6){_0x3c6576['push'](_0x3c6576['shift']());}};_0x441d83(++_0x5a7324);}(a951_0x441d,0x15a));const a951_0x44ab=function(_0x3c6576,_0x5a7324){_0x3c6576=_0x3c6576-0x7f;let _0x441d83=a951_0x441d[_0x3c6576];return _0x441d83;};const a951_0x5d92d3=a951_0x44ab;'use strict';const pdf=require('html-pdf'),rimraf=require('rimraf'),zipdir=require('zip-dir'),moment=require('moment'),util=require(a951_0x5d92d3(0x112)),path=require('path'),ejs=require(a951_0x5d92d3(0x88)),fs=require('fs'),_=require(a951_0x5d92d3(0x87)),squel=require(a951_0x5d92d3(0x123)),{getSocket}=require(a951_0x5d92d3(0x11b)),socket=getSocket(),qs=require(a951_0x5d92d3(0xf2)),as=require('../../components/parsers/advancedSearch'),logger=require(a951_0x5d92d3(0x148))(a951_0x5d92d3(0xb0)),config=require(a951_0x5d92d3(0x9c)),{db}=require(a951_0x5d92d3(0x104)),{Op,QueryTypes}=require(a951_0x5d92d3(0xc6));require(a951_0x5d92d3(0xfa))[a951_0x5d92d3(0x83)](socket);function respondWithStatusCode(_0x330ac3,_0x3b58d8){return _0x3b58d8=_0x3b58d8||0xcc,function(_0x510d26){const _0x551294=a951_0x44ab;if(_0x510d26)return _0x330ac3[_0x551294(0x110)](_0x3b58d8);return _0x330ac3[_0x551294(0x13c)](_0x3b58d8)[_0x551294(0x121)]();};}function respondWithResult(_0x5a8397,_0x2af5aa){return _0x2af5aa=_0x2af5aa||0xc8,function(_0x1d18bb){const _0x5a5261=a951_0x44ab;if(_0x1d18bb)return _0x5a8397[_0x5a5261(0x13c)](_0x2af5aa)[_0x5a5261(0xd0)](_0x1d18bb);};}function respondWithFilteredResult(_0x5673d8,_0x56f8b3){return function(_0xcc7e){const _0x32ded0=a951_0x44ab;if(_0xcc7e){const _0x140582=_0xcc7e[_0x32ded0(0x9a)],_0x3618f7=_0x56f8b3[_0x32ded0(0xac)];let _0x244fe0=_0x56f8b3[_0x32ded0(0xac)]+_0x56f8b3[_0x32ded0(0xfc)],_0x4c3ffa;return _0x244fe0>=_0x140582?(_0x244fe0=_0x140582,_0x4c3ffa=0xc8):_0x4c3ffa=0xce,_0x5673d8['status'](_0x4c3ffa),_0x5673d8[_0x32ded0(0xbf)]('Content-Range',_0x3618f7+'-'+_0x244fe0+'/'+_0x140582)['json'](_0xcc7e);}return null;};}function saveUpdates(_0x4f121e){return function(_0x59d809){const _0x5ee9bc=a951_0x44ab;if(_0x59d809)return _0x59d809[_0x5ee9bc(0xee)](_0x4f121e)['then'](function(_0x29823e){return _0x29823e;});return null;};}function removeEntity(_0x288fc3){return function(_0x154665){const _0x58415b=a951_0x44ab;if(_0x154665)return _0x154665[_0x58415b(0x13e)]()[_0x58415b(0x119)](function(){const _0x22d22e=_0x58415b;_0x288fc3[_0x22d22e(0x13c)](0xcc)[_0x22d22e(0x121)]();});};}function handleEntityNotFound(_0x33ffe4){return function(_0x5b148f){return!_0x5b148f&&_0x33ffe4['sendStatus'](0x194),_0x5b148f;};}function handleError(_0x4d5fc8,_0x3aae23){return _0x3aae23=_0x3aae23||0x1f4,function(_0x44db42){const _0x24737b=a951_0x44ab;logger[_0x24737b(0x14c)](_0x44db42[_0x24737b(0xe5)]),_0x44db42[_0x24737b(0xcf)]&&delete _0x44db42[_0x24737b(0xcf)],_0x4d5fc8[_0x24737b(0x13c)](_0x3aae23)[_0x24737b(0x9b)](_0x44db42);};}function getInteractionUsers(_0x5a585d,_0x1737d6){return new Promise(function(_0x9b4d2e,_0x298f6a){const _0x31553a=a951_0x44ab;try{_0x1737d6[_0x5a585d['id']]&&(_0x5a585d[_0x31553a(0xa5)]=_[_0x31553a(0xf7)](_0x1737d6[_0x5a585d['id']],function(_0x1b30b3){return{'id':_0x1b30b3['id'],'fullname':_0x1b30b3['fullname']};}));}catch(_0x4dcdb4){_0x298f6a(_0x4dcdb4);}_0x9b4d2e(_0x5a585d);});}function getInteractionTags(_0x1fdecd,_0x12c9a3){return new Promise(function(_0x485451,_0xb66aeb){const _0xdf0eb=a951_0x44ab;try{_0x1fdecd[_0xdf0eb(0x14f)]&&(_0x1fdecd['Tags']=[],_0x1fdecd[_0xdf0eb(0x14f)][_0xdf0eb(0x154)](',')[_0xdf0eb(0x140)](function(_0x3d4b05){const _0x3c155b=_0xdf0eb;_0x1fdecd[_0x3c155b(0xb6)][_0x3c155b(0x157)](_0x12c9a3[_0x3d4b05]);})),delete _0x1fdecd['TagIds'];}catch(_0x4cdab6){_0xb66aeb(_0x4cdab6);}_0x485451(_0x1fdecd);});}function updateWhatsappInteraction(_0x5b52af,_0x501b2d,_0x523188){return new Promise(function(_0x22f972,_0x5eea5e){return getInteractionUsers(_0x5b52af,_0x523188)['then'](function(_0x41ea36){return getInteractionTags(_0x41ea36,_0x501b2d);})['then'](function(_0x8168ab){_0x22f972(_0x8168ab);})['catch'](function(_0x5b1634){_0x5eea5e(_0x5b1634);});});}exports['index']=function(_0x85f518,_0x5eccf5){const _0x25459c=a951_0x5d92d3,_0x5cd4b6={},_0x4bb75c={},_0x57d600={'count':0x0,'rows':[]},_0x5b7dd5=_[_0x25459c(0xf7)](db[_0x25459c(0x128)][_0x25459c(0x12b)],function(_0x3e10dd){const _0x5451d5=_0x25459c;return{'name':_0x3e10dd[_0x5451d5(0xb5)],'type':_0x3e10dd['type'][_0x5451d5(0xe7)]};});_0x4bb75c[_0x25459c(0xae)]=_[_0x25459c(0xf7)](_0x5b7dd5,_0x25459c(0xcf)),_0x4bb75c[_0x25459c(0x130)]=_[_0x25459c(0x124)](_0x85f518['query']),_0x4bb75c[_0x25459c(0x11e)]=_['intersection'](_0x4bb75c[_0x25459c(0xae)],_0x4bb75c[_0x25459c(0x130)]),_0x5cd4b6[_0x25459c(0x109)]=_[_0x25459c(0xf6)](_0x4bb75c['model'],qs[_0x25459c(0xd5)](_0x85f518['query']['fields'])),_0x5cd4b6[_0x25459c(0x109)]=_0x5cd4b6[_0x25459c(0x109)][_0x25459c(0x107)]?_0x5cd4b6[_0x25459c(0x109)]:_0x4bb75c[_0x25459c(0xae)];typeof _0x85f518[_0x25459c(0x130)][_0x25459c(0x10e)]===_0x25459c(0x7f)&&(_0x5cd4b6[_0x25459c(0xfc)]=qs[_0x25459c(0xfc)](_0x85f518[_0x25459c(0x130)][_0x25459c(0xfc)]),_0x5cd4b6['offset']=qs[_0x25459c(0xac)](_0x85f518[_0x25459c(0x130)][_0x25459c(0xac)]));_0x5cd4b6[_0x25459c(0x131)]=qs['sort'](_0x85f518[_0x25459c(0x130)][_0x25459c(0xd8)]),_0x5cd4b6['where']=qs[_0x25459c(0x11e)](_[_0x25459c(0xc1)](_0x85f518['query'],_0x4bb75c['filters']),_0x5b7dd5);let _0x156506=[];const _0x298ab3=squel[_0x25459c(0xc0)]()[_0x25459c(0xef)]('id')[_0x25459c(0xef)](_0x25459c(0xcf))[_0x25459c(0xef)]('color')[_0x25459c(0x135)](_0x25459c(0x142)),_0x2e744c=squel[_0x25459c(0xc0)]()[_0x25459c(0xef)](_0x25459c(0x12d))['field'](_0x25459c(0x146))[_0x25459c(0xef)](_0x25459c(0x150))[_0x25459c(0x135)]('user_has_whatsapp_interactions','ui')[_0x25459c(0xaf)](_0x25459c(0xb3),'u',_0x25459c(0x117)),_0x491d20=squel[_0x25459c(0xc0)]()['from']('whatsapp_interactions','i')['left_join'](_0x25459c(0xd2),'c',_0x25459c(0xf0))[_0x25459c(0xaf)]('users','o',_0x25459c(0xbb))[_0x25459c(0xaf)](_0x25459c(0x93),'a',_0x25459c(0xc9))[_0x25459c(0xaf)]('whatsapp_messages','me',_0x25459c(0x85))[_0x25459c(0xaf)](_0x25459c(0x145),'it',_0x25459c(0x116))[_0x25459c(0xaf)]('tools_tags','t',_0x25459c(0xff)),_0x331a2d=squel['expr']();let _0x3a9fab=[];const _0x5816c5=squel[_0x25459c(0xa2)]();let _0xdcd287;if(_0x85f518['query'][_0x25459c(0x139)]){_0xdcd287=as[_0x25459c(0x120)](_0x85f518['query']['search']);const _0x5b018e=_0xdcd287[_0x25459c(0x14e)];for(let _0x145b96=0x0;_0x145b96<_0xdcd287['conditions'][_0x25459c(0x107)];_0x145b96++){const _0x11251a=_0xdcd287['conditions'][_0x145b96],_0x1e6810='i';let _0x167a8d,_0x4c54b2=_[_0x25459c(0x126)](_0x5b7dd5,[_0x25459c(0xcf),_0x11251a[_0x25459c(0xef)]]);if(!_0x4c54b2)switch(_0x11251a[_0x25459c(0xef)]){case'unreadMessages':_0x11251a['value']==0x1?_0x491d20[_0x25459c(0x15a)]('`'+_0x11251a[_0x25459c(0xef)]+'`\x20=\x200'):_0x491d20[_0x25459c(0x15a)]('`'+_0x11251a[_0x25459c(0xef)]+_0x25459c(0x137));break;case _0x25459c(0xe4):if(_0x11251a['operator']===_0x25459c(0x101)){if(_0x11251a[_0x25459c(0x9e)]['split']('\x20')['length']>0x1)_0x331a2d[_0x5b018e](_0x25459c(0xd1),qs[_0x25459c(0x13f)](_0x11251a[_0x25459c(0x9e)]),null);else{const _0x5bfef8='%'+_0x11251a['value']+'%';_0x331a2d[_0x5b018e](_0x25459c(0xe6),_0x5bfef8,_0x5bfef8,_0x5bfef8);}}else _0x4c54b2=_[_0x25459c(0x126)](_0x5b7dd5,[_0x25459c(0xcf),_0x25459c(0x122)]),_0x11251a['field']=_0x25459c(0x122),_0x167a8d=as[_0x25459c(0x138)](_0x1e6810,_0x4c54b2['type'],_0x11251a),_0x331a2d[_0x5b018e](_0x167a8d[_0x25459c(0x12a)],_0x167a8d[_0x25459c(0x9e)][_0x25459c(0xec)],_0x167a8d[_0x25459c(0x9e)]['end']);break;case _0x25459c(0xd6):{const _0x5a242b=_0x11251a[_0x25459c(0x9e)][_0x25459c(0x154)](',')[_0x25459c(0xf7)](function(_0x20c162){return Number(_0x20c162);});_0x5a242b[_0x25459c(0x140)](function(_0x553f9a){const _0x54fb06=_0x25459c;_0x5816c5['or'](_0x54fb06(0xa7),'%,'+_0x553f9a+',%');}),_0x3a9fab=_[_0x25459c(0xba)](_0x3a9fab,_0x5a242b);}break;case'User':_0x11251a['operator']===_0x25459c(0x101)?_0x331a2d[_0x5b018e]('CONCAT_WS(\x27\x20\x27,\x20o.name,\x20o.fullname)\x20LIKE\x20?','%'+_0x11251a[_0x25459c(0x9e)]+'%',null):(_0x4c54b2=_[_0x25459c(0x126)](_0x5b7dd5,[_0x25459c(0xcf),_0x25459c(0x90)]),_0x11251a[_0x25459c(0xef)]=_0x25459c(0x90),_0x167a8d=as[_0x25459c(0x138)](_0x1e6810,_0x4c54b2[_0x25459c(0xe0)],_0x11251a),_0x331a2d[_0x5b018e](_0x167a8d[_0x25459c(0x12a)],_0x167a8d[_0x25459c(0x9e)][_0x25459c(0xec)],_0x167a8d[_0x25459c(0x9e)][_0x25459c(0x121)]));break;case'body':_0x167a8d=as[_0x25459c(0x138)]('me',null,_0x11251a),_0x331a2d[_0x5b018e](_0x167a8d[_0x25459c(0x12a)],_0x167a8d[_0x25459c(0x9e)][_0x25459c(0xec)],_0x167a8d['value']['end']);break;}else _0x167a8d=as[_0x25459c(0x138)](_0x1e6810,_0x4c54b2[_0x25459c(0xe0)],_0x11251a),_0x331a2d[_0x5b018e](_0x167a8d['text'],_0x167a8d[_0x25459c(0x9e)]['start'],_0x167a8d[_0x25459c(0x9e)]['end']);}}else{const _0x2de241=_(_0x85f518[_0x25459c(0x130)])[_0x25459c(0x124)]()[_0x25459c(0xf7)](function(_0x12962b){const _0xdd6387=_0x25459c;return _[_0xdd6387(0x8a)](_0x5b7dd5,['name',_0x12962b])?_0x12962b:undefined;})[_0x25459c(0x151)]()['value']();!_[_0x25459c(0xfb)](_0x2de241)&&_0x2de241[_0x25459c(0x140)](function(_0x35600c){const _0x2a20bf=_0x25459c;if(_0x35600c===_0x2a20bf(0x12e))_0x491d20[_0x2a20bf(0x92)](_0x2a20bf(0x82),[][_0x2a20bf(0x10a)](_0x85f518[_0x2a20bf(0x130)][_0x35600c]));else{if(_0x35600c===_0x2a20bf(0x132)){const _0x2c24ae=JSON[_0x2a20bf(0xaa)](_0x85f518['query'][_0x35600c])['$gte'],_0x2c317f=JSON[_0x2a20bf(0xaa)](_0x85f518[_0x2a20bf(0x130)][_0x35600c])[_0x2a20bf(0x115)];_0x491d20[_0x2a20bf(0x92)]('i.createdAt\x20BETWEEN\x20?\x20AND\x20?',_0x2c24ae,_0x2c317f);}else _0x85f518[_0x2a20bf(0x130)][_0x35600c]==='null'?_0x491d20[_0x2a20bf(0x92)]('i.'+_0x35600c+_0x2a20bf(0xd9)):_0x491d20[_0x2a20bf(0x92)]('i.'+_0x35600c+_0x2a20bf(0x11c),_0x85f518[_0x2a20bf(0x130)][_0x35600c]);}});_0x85f518[_0x25459c(0x130)]['read']&&(_0x85f518[_0x25459c(0x130)][_0x25459c(0xfe)]==0x1?_0x491d20[_0x25459c(0x15a)](_0x25459c(0x136)):_0x491d20[_0x25459c(0x15a)]('`unreadMessages`\x20>\x200'));_0x85f518[_0x25459c(0x130)][_0x25459c(0x13b)]&&(_0x3a9fab=_[_0x25459c(0x10b)](_0x85f518[_0x25459c(0x130)][_0x25459c(0x13b)])?_0x85f518[_0x25459c(0x130)][_0x25459c(0x13b)]:new Array(_0x85f518[_0x25459c(0x130)][_0x25459c(0x13b)]),_0x3a9fab[_0x25459c(0x140)](function(_0x314e32){const _0x185bac=_0x25459c;_0x5816c5['or'](_0x185bac(0xa7),'%,'+_0x314e32+',%');}));if(_0x85f518[_0x25459c(0x130)]['filter']){const _0xeefb74=_0x85f518[_0x25459c(0x130)]['filter'][_0x25459c(0x81)]('\x5c','\x5c\x5c')[_0x25459c(0x81)](/'/g,'\x27\x27');qs[_0x25459c(0xf4)](_0xeefb74)?_0x331a2d['or'](_0x25459c(0xbe),_0xeefb74+'%')['or'](_0x25459c(0xd4),_0xeefb74+'%'):_0x331a2d['or'](_0x25459c(0x103),qs[_0x25459c(0x13f)](_0xeefb74))['or'](_0x25459c(0xbc),_0xeefb74+'%');}}_0x491d20[_0x25459c(0x92)](_0x331a2d),_0x491d20[_0x25459c(0x84)](_0x25459c(0xb9));let _0x1d4c0c={'type':QueryTypes['SELECT'],'raw':!![]};const _0x42c084=_0x491d20[_0x25459c(0xf8)]();_0x42c084[_0x25459c(0xef)](_0x25459c(0xb9)),_0x42c084[_0x25459c(0xef)]('SUM(me.read\x20=\x200\x20AND\x20me.direction\x20=\x20\x27in\x27)',_0x25459c(0xce)),_0x5cd4b6[_0x25459c(0x131)]&&_0x5cd4b6[_0x25459c(0x131)][_0x25459c(0x140)](function(_0x85ecca){const _0x230dc7=_0x25459c;_0x491d20[_0x230dc7(0x131)]('i.'+_0x85ecca[0x0],_0x85ecca[0x1]===_0x230dc7(0x133)?![]:!![]);}),!_['isEmpty'](_0x3a9fab)&&(_0x491d20[_0x25459c(0x15a)](_0x5816c5),_0x42c084[_0x25459c(0x92)]('t.id\x20IN\x20?',_0x3a9fab)),Promise['resolve']()[_0x25459c(0x119)](function(){const _0x89d258=_0x25459c;if(!_0xdcd287){if(_0x85f518[_0x89d258(0x130)][_0x89d258(0x12e)]||_0x85f518[_0x89d258(0x130)][_0x89d258(0x158)])return;_0x42c084[_0x89d258(0x92)](_0x89d258(0x105)),_0x491d20[_0x89d258(0x92)](_0x89d258(0x105));return;}return _0x85f518[_0x89d258(0xad)][_0x89d258(0xf5)]({'attributes':['id'],'raw':!![]})[_0x89d258(0x119)](function(_0x245351){const _0x1179de=_0x89d258;_[_0x1179de(0xfb)](_0x245351)?(_0x42c084[_0x1179de(0x92)](_0x1179de(0xa3)),_0x491d20[_0x1179de(0x92)](_0x1179de(0xa3))):(_0x42c084[_0x1179de(0x92)]('i.WhatsappAccountId\x20IN\x20?',_[_0x1179de(0xf7)](_0x245351,'id')),_0x491d20[_0x1179de(0x92)]('i.WhatsappAccountId\x20IN\x20?',_[_0x1179de(0xf7)](_0x245351,'id')));});})[_0x25459c(0x119)](function(){const _0x4ccd52=_0x25459c;db[_0x4ccd52(0xc6)][_0x4ccd52(0x130)](_0x42c084[_0x4ccd52(0xc2)](),_0x1d4c0c)['then'](function(_0x5752a6){const _0x2574e6=_0x4ccd52;_0x57d600[_0x2574e6(0x9a)]=_0x5752a6[_0x2574e6(0x107)];if(_0x57d600[_0x2574e6(0x9a)]===0x0)return[];return db[_0x2574e6(0xc6)][_0x2574e6(0x130)](_0x298ab3[_0x2574e6(0xc2)](),_0x1d4c0c)[_0x2574e6(0x119)](function(_0xc99f0d){const _0x1e315f=_0x2574e6;_0x156506=_[_0x1e315f(0x125)](_0xc99f0d,'id'),_0x1d4c0c=_[_0x1e315f(0x10f)](_0x1d4c0c,{'model':db['WhatsappInteraction'],'mapToModel':!![],'raw':!![],'nest':!![]});_0x85f518['query'][_0x1e315f(0xd5)]?_0x5cd4b6[_0x1e315f(0x109)]['forEach'](function(_0x520313){const _0x38e75f=_0x1e315f;_0x491d20[_0x38e75f(0xef)]('i.'+_0x520313);}):(_0x491d20[_0x1e315f(0xef)](_0x1e315f(0x89),_0x1e315f(0xce)),_0x491d20[_0x1e315f(0xef)](_0x1e315f(0x13d),_0x1e315f(0x134)),_0x491d20[_0x1e315f(0xef)](_0x1e315f(0xe2),_0x1e315f(0x8f)),_0x491d20[_0x1e315f(0xef)](_0x1e315f(0xd7)),_0x491d20[_0x1e315f(0xef)](_0x1e315f(0x8c),_0x1e315f(0xcd)),_0x491d20[_0x1e315f(0xef)](_0x1e315f(0x102),'Contact.lastName'),_0x491d20['field'](_0x1e315f(0x155),_0x1e315f(0x149)),_0x491d20['field'](_0x1e315f(0x91),_0x1e315f(0xb1)),_0x491d20[_0x1e315f(0xef)](_0x1e315f(0xf9),'Contact.mobile'),_0x491d20['field'](_0x1e315f(0xcb),_0x1e315f(0xe9)),_0x491d20[_0x1e315f(0xef)](_0x1e315f(0x143),'Owner.fullname'),_0x491d20['field'](_0x1e315f(0xdf),'Owner.internal'),_0x491d20['field'](_0x1e315f(0x14d),_0x1e315f(0x14f)));if(_0x5cd4b6[_0x1e315f(0xfc)])_0x491d20[_0x1e315f(0xfc)](_0x5cd4b6['limit']);if(_0x5cd4b6[_0x1e315f(0xac)])_0x491d20[_0x1e315f(0xac)](_0x5cd4b6[_0x1e315f(0xac)]);return db[_0x1e315f(0xc6)][_0x1e315f(0x130)](_0x491d20[_0x1e315f(0xc2)](),_0x1d4c0c);})['then'](function(_0x3e8081){const _0x5c1ff3=_0x2574e6;return _0x2e744c[_0x5c1ff3(0x92)]('ui.WhatsappInteractionId\x20IN\x20?',_[_0x5c1ff3(0xf7)](_0x3e8081,'id')),db[_0x5c1ff3(0xc6)][_0x5c1ff3(0x130)](_0x2e744c['toString'](),_0x1d4c0c)[_0x5c1ff3(0x119)](function(_0x34753a){const _0x30bba4=_0x5c1ff3,_0x462da9=_[_0x30bba4(0xfd)](_0x34753a,'WhatsappInteractionId'),_0x2a4533=[];return _0x3e8081[_0x30bba4(0x140)](function(_0x4737f7){const _0x438c06=_0x30bba4;_0x2a4533[_0x438c06(0x157)](updateWhatsappInteraction(_0x4737f7,_0x156506,_0x462da9));}),Promise[_0x30bba4(0x97)](_0x2a4533);});});})[_0x4ccd52(0x119)](function(_0x46daa0){const _0x2f1063=_0x4ccd52;return _0x57d600[_0x2f1063(0x141)]=_0x46daa0,_0x57d600;})[_0x4ccd52(0x119)](respondWithFilteredResult(_0x5eccf5,_0x5cd4b6));})[_0x25459c(0xa8)](handleError(_0x5eccf5,null));},exports[a951_0x5d92d3(0x111)]=function(_0x396f3d,_0x590eeb){const _0x124d49=a951_0x5d92d3;let _0x305e7f={'raw':![],'where':{'id':_0x396f3d[_0x124d49(0x9f)]['id']}};const _0x14b64c={};return _0x14b64c['model']=_[_0x124d49(0x124)](db['WhatsappInteraction'][_0x124d49(0x12b)]),_0x14b64c[_0x124d49(0x130)]=_[_0x124d49(0x124)](_0x396f3d[_0x124d49(0x130)]),_0x14b64c[_0x124d49(0x11e)]=_[_0x124d49(0xf6)](_0x14b64c[_0x124d49(0xae)],_0x14b64c['query']),_0x305e7f['attributes']=_[_0x124d49(0xf6)](_0x14b64c[_0x124d49(0xae)],qs[_0x124d49(0xd5)](_0x396f3d[_0x124d49(0x130)][_0x124d49(0xd5)])),_0x305e7f[_0x124d49(0x109)]=_0x305e7f[_0x124d49(0x109)][_0x124d49(0x107)]?_0x305e7f[_0x124d49(0x109)]:_0x14b64c['model'],_0x396f3d[_0x124d49(0x130)][_0x124d49(0x95)]&&(_0x305e7f[_0x124d49(0xde)]=[{'all':!![]}]),_0x305e7f=_['merge']({},_0x305e7f,_0x396f3d[_0x124d49(0xc8)]),db[_0x124d49(0x128)][_0x124d49(0xf3)](_0x305e7f)['then'](handleEntityNotFound(_0x590eeb,null))['then'](respondWithResult(_0x590eeb,null))['catch'](handleError(_0x590eeb,null));},exports[a951_0x5d92d3(0x114)]=function(_0x29a0cc,_0x30ea77){const _0x5c30c7=a951_0x5d92d3;return db[_0x5c30c7(0x128)][_0x5c30c7(0x114)](_0x29a0cc[_0x5c30c7(0xda)],{})[_0x5c30c7(0x119)](respondWithResult(_0x30ea77,0xc9))[_0x5c30c7(0xa8)](handleError(_0x30ea77,null));},exports[a951_0x5d92d3(0xee)]=function(_0x1eeee7,_0x776c01){const _0x45ef34=a951_0x5d92d3;return _0x1eeee7[_0x45ef34(0xda)]['id']&&delete _0x1eeee7[_0x45ef34(0xda)]['id'],db[_0x45ef34(0x128)][_0x45ef34(0xf3)]({'where':{'id':_0x1eeee7[_0x45ef34(0x9f)]['id']}})[_0x45ef34(0x119)](handleEntityNotFound(_0x776c01,null))[_0x45ef34(0x119)](saveUpdates(_0x1eeee7['body'],null))[_0x45ef34(0x119)](respondWithResult(_0x776c01,null))[_0x45ef34(0xa8)](handleError(_0x776c01,null));},exports['destroy']=function(_0x3a4bab,_0x3f16f7){const _0x29900a=a951_0x5d92d3;return db[_0x29900a(0x128)]['findOne']({'where':{'id':_0x3a4bab[_0x29900a(0x9f)]['id']}})[_0x29900a(0x119)](handleEntityNotFound(_0x3f16f7,null))['then'](removeEntity(_0x3f16f7,null))['catch'](handleError(_0x3f16f7,null));},exports['describe']=function(_0x4c32de,_0x3d351c){const _0x418f25=a951_0x5d92d3;return db[_0x418f25(0x128)][_0x418f25(0x99)]()[_0x418f25(0x119)](respondWithResult(_0x3d351c,null))[_0x418f25(0xa8)](handleError(_0x3d351c,null));},exports[a951_0x5d92d3(0x144)]=function(_0x58ed7a,_0x2797e2){const _0x37e35d=a951_0x5d92d3;return db[_0x37e35d(0xb8)][_0x37e35d(0xf3)]({'where':{'id':_0x58ed7a[_0x37e35d(0x9f)]['id']}})[_0x37e35d(0x119)](function(_0x39517a){const _0x1831d3=_0x37e35d;if(_0x39517a)return _0x39517a[_0x1831d3(0x144)](_0x58ed7a[_0x1831d3(0xda)]['ids'],{'through':_[_0x1831d3(0x100)](_0x58ed7a[_0x1831d3(0xda)],[_0x1831d3(0x129),'id'])});})[_0x37e35d(0x119)](respondWithResult(_0x2797e2,null))[_0x37e35d(0xa8)](handleError(_0x2797e2,null));},exports[a951_0x5d92d3(0x152)]=function(_0x189b24,_0x133fe9){const _0xd6a647=a951_0x5d92d3;let _0x45662b={'raw':![],'where':{}};const _0x4581fe={},_0x51cfe7={'count':0x0,'rows':[]};return db[_0xd6a647(0x128)]['findOne']({'where':{'id':_0x189b24['params']['id']}})[_0xd6a647(0x119)](handleEntityNotFound(_0x133fe9,null))[_0xd6a647(0x119)](function(_0x57394f){const _0x112ebb=_0xd6a647;if(_0x57394f){_0x4581fe[_0x112ebb(0xae)]=_[_0x112ebb(0x124)](db[_0x112ebb(0xb8)][_0x112ebb(0x12b)]),_0x4581fe[_0x112ebb(0x130)]=_['keys'](_0x189b24['query']),_0x4581fe['filters']=_['intersection'](_0x4581fe['model'],_0x4581fe[_0x112ebb(0x130)]),_0x45662b[_0x112ebb(0x109)]=_[_0x112ebb(0xf6)](_0x4581fe[_0x112ebb(0xae)],qs[_0x112ebb(0xd5)](_0x189b24[_0x112ebb(0x130)][_0x112ebb(0xd5)])),_0x45662b['attributes']=_0x45662b[_0x112ebb(0x109)]['length']?_0x45662b[_0x112ebb(0x109)]:_0x4581fe['model'];typeof _0x189b24[_0x112ebb(0x130)][_0x112ebb(0x10e)]===_0x112ebb(0x7f)&&(_0x45662b[_0x112ebb(0xfc)]=qs[_0x112ebb(0xfc)](_0x189b24['query'][_0x112ebb(0xfc)]),_0x45662b[_0x112ebb(0xac)]=qs['offset'](_0x189b24['query'][_0x112ebb(0xac)]));_0x45662b[_0x112ebb(0x131)]=qs['sort'](_0x189b24[_0x112ebb(0x130)][_0x112ebb(0xd8)]),_0x45662b[_0x112ebb(0x92)]=qs[_0x112ebb(0x11e)](_['pick'](_0x189b24[_0x112ebb(0x130)],_0x4581fe[_0x112ebb(0x11e)])),_0x45662b[_0x112ebb(0x92)][_0x112ebb(0x118)]=_0x57394f['id'];_0x189b24[_0x112ebb(0x130)][_0x112ebb(0x127)]&&(_0x45662b[_0x112ebb(0x92)]=_['merge'](_0x45662b[_0x112ebb(0x92)],{[Op['or']]:_[_0x112ebb(0xf7)](_0x45662b['attributes'],function(_0x1b34de){const _0x177571=_0x112ebb,_0xe40928={};return _0xe40928[_0x1b34de]={[Op[_0x177571(0xb4)]]:'%'+_0x189b24[_0x177571(0x130)][_0x177571(0x127)]+'%'},_0xe40928;})}));if(_0x189b24[_0x112ebb(0x130)][_0x112ebb(0xd3)]){const _0x9c6dd9=_0x189b24[_0x112ebb(0x130)][_0x112ebb(0xd3)][_0x112ebb(0x154)](','),_0x6c20ac={};_0x6c20ac[_0x9c6dd9[0x0]]={[Op[_0x112ebb(0x153)]]:moment(_0x9c6dd9[0x1])[_0x112ebb(0xdd)](_0x112ebb(0xc5))},_0x45662b['where']=_[_0x112ebb(0x10f)](_0x45662b['where'],_0x6c20ac);}return _0x45662b=_[_0x112ebb(0x10f)]({},_0x45662b,_0x189b24['options']),db['WhatsappMessage'][_0x112ebb(0x9a)]({'where':_0x45662b[_0x112ebb(0x92)]})[_0x112ebb(0x119)](function(_0x2b8a75){const _0x5ad77d=_0x112ebb;return _0x51cfe7[_0x5ad77d(0x9a)]=_0x2b8a75,_0x189b24[_0x5ad77d(0x130)][_0x5ad77d(0x95)]&&(_0x45662b['include']=[{'all':!![]}]),db[_0x5ad77d(0xb8)][_0x5ad77d(0x108)](_0x45662b);})[_0x112ebb(0x119)](function(_0x420bc8){const _0x22da81=_0x112ebb;return _0x51cfe7[_0x22da81(0x141)]=_0x420bc8,_0x51cfe7;});}})[_0xd6a647(0x119)](respondWithFilteredResult(_0x133fe9,_0x45662b))[_0xd6a647(0xa8)](handleError(_0x133fe9,null));},exports[a951_0x5d92d3(0x9d)]=function(_0x480aa8,_0x23cf09){const _0x40df0b=a951_0x5d92d3;return db[_0x40df0b(0x128)]['findOne']({'where':{'id':_0x480aa8[_0x40df0b(0x9f)]['id']}})[_0x40df0b(0x119)](function(_0x3f4f7d){const _0xcdb6af=_0x40df0b;if(_0x3f4f7d)return _0x3f4f7d[_0xcdb6af(0x94)](_0x480aa8[_0xcdb6af(0xda)][_0xcdb6af(0x129)],{'through':_[_0xcdb6af(0x100)](_0x480aa8[_0xcdb6af(0xda)],['ids','id'])})['then'](function(){const _0x32c9c7=_0xcdb6af;return db[_0x32c9c7(0xd6)][_0x32c9c7(0x108)]({'attributes':['id',_0x32c9c7(0xcf),_0x32c9c7(0xa0)],'where':{'id':_0x480aa8[_0x32c9c7(0xda)][_0x32c9c7(0x129)]}});})[_0xcdb6af(0x119)](function(_0x252cd1){const _0x1330cd=_0xcdb6af;return socket['emit'](_0x1330cd(0xab),{'id':Number(_0x480aa8[_0x1330cd(0x9f)]['id']),'tags':_0x252cd1||[]}),{'id':Number(_0x480aa8[_0x1330cd(0x9f)]['id']),'tags':_0x252cd1||[]};});})[_0x40df0b(0x119)](respondWithResult(_0x23cf09,null))[_0x40df0b(0xa8)](handleError(_0x23cf09,null));},exports[a951_0x5d92d3(0x8d)]=function(_0x4c552d,_0x498d3f){const _0x37b13b=a951_0x5d92d3;return db[_0x37b13b(0x128)][_0x37b13b(0xf3)]({'where':{'id':_0x4c552d['params']['id']}})['then'](handleEntityNotFound(_0x498d3f,null))[_0x37b13b(0x119)](function(_0x41d9aa){const _0x2affd8=_0x37b13b;if(_0x41d9aa)return _0x41d9aa[_0x2affd8(0x8d)](_0x4c552d[_0x2affd8(0x130)][_0x2affd8(0x129)]);})[_0x37b13b(0x119)](respondWithStatusCode(_0x498d3f,null))['catch'](handleError(_0x498d3f,null));},exports[a951_0x5d92d3(0x80)]=function(_0x427cc8,_0x5e0fa4){const _0x3acb9e=a951_0x5d92d3,_0x32c307=moment()['unix']()[_0x3acb9e(0xc2)](),_0x2cbabc=path[_0x3acb9e(0xa9)](config['root'],_0x3acb9e(0x14b),_0x3acb9e(0x147)),_0x21de2a=path['join'](config[_0x3acb9e(0x96)],_0x3acb9e(0x11d),_0x3acb9e(0x14b),_0x3acb9e(0xdb)),_0x4ee384=path['join'](_0x2cbabc,_0x32c307),_0x1d1242=util[_0x3acb9e(0xdd)](_0x3acb9e(0xf1),_0x427cc8[_0x3acb9e(0x9f)]['id'],_0x32c307),_0x535025=path[_0x3acb9e(0xa9)](_0x2cbabc,_0x1d1242),_0x548eaa=[];_0x548eaa[_0x3acb9e(0x157)]({'model':db[_0x3acb9e(0xca)],'as':_0x3acb9e(0xca),'attributes':['id',_0x3acb9e(0xea)],'raw':!![]}),_0x548eaa[_0x3acb9e(0x157)]({'model':db['CmContact'],'as':_0x3acb9e(0xe4),'attributes':['id',_0x3acb9e(0xa4),'lastName'],'raw':!![]});_0x427cc8[_0x3acb9e(0x130)]['attachments']&&_0x548eaa[_0x3acb9e(0x157)]({'model':db[_0x3acb9e(0x10d)],'as':_0x3acb9e(0x10d),'raw':!![]});const _0x1ab014=[{'model':db[_0x3acb9e(0xb8)],'as':_0x3acb9e(0xeb),'attributes':['id','body',_0x3acb9e(0x132),'direction','secret',_0x3acb9e(0xfe)],'include':_0x548eaa}];return _0x1ab014[_0x3acb9e(0x157)]({'model':db['WhatsappAccount'],'as':_0x3acb9e(0x106),'attributes':['id','name']}),_0x1ab014[_0x3acb9e(0x157)]({'model':db[_0x3acb9e(0xca)],'as':'Owner','attributes':['id',_0x3acb9e(0xea)]}),db[_0x3acb9e(0x128)]['findOne']({'where':{'id':_0x427cc8['params']['id']},'include':_0x1ab014})[_0x3acb9e(0x119)](handleEntityNotFound(_0x5e0fa4,null))[_0x3acb9e(0x119)](function(_0x5a48ee){const _0x105894=_0x3acb9e;if(_0x5a48ee){const _0x18ee32=_0x5a48ee[_0x105894(0xc7)]({'plain':!![]});fs[_0x105894(0x113)](_0x4ee384);const _0x120d66={'format':'A4','border':_0x105894(0x13a),'header':{'height':'40px','contents':{'first':_0x105894(0x14a)}},'footer':{'height':_0x105894(0xdc),'contents':{'default':util[_0x105894(0xdd)](_0x105894(0xa6),util[_0x105894(0xdd)](_0x105894(0x98),'Whatsapp',_0x18ee32['id']),moment()[_0x105894(0xdd)](_0x105894(0xc4))[_0x105894(0xc2)]())}}},_0x37fee9={'channel':_0x105894(0x12f),'account':_0x18ee32[_0x105894(0x106)][_0x105894(0xcf)],'agent':_0x18ee32[_0x105894(0x86)]?_0x18ee32[_0x105894(0x86)][_0x105894(0xea)]:_0x105894(0xb7),'createdAt':moment(_0x18ee32[_0x105894(0x132)])[_0x105894(0xdd)](_0x105894(0xc5))[_0x105894(0xc2)](),'closedAt':_0x18ee32[_0x105894(0x159)]?moment(_0x18ee32['closedAt'])['format'](_0x105894(0xc5))[_0x105894(0xc2)]():'','disposition':_0x18ee32[_0x105894(0x10c)],'messages':_(_0x18ee32['Messages'])['filter']({'secret':![]})['map'](function(_0x357fc9){const _0x5732dc=_0x105894;if(_0x357fc9[_0x5732dc(0x10d)]){const _0xb023c3=path['join'](_0x21de2a,_0x357fc9[_0x5732dc(0x10d)]['basename']);fs[_0x5732dc(0x11f)](_0xb023c3)&&fs['createReadStream'](_0xb023c3)[_0x5732dc(0x156)](fs[_0x5732dc(0xb2)](path['join'](_0x4ee384,_0x357fc9['Attachment'][_0x5732dc(0xc3)])));}return{'date':moment(_0x357fc9[_0x5732dc(0x132)])[_0x5732dc(0xdd)](_0x5732dc(0xc5))['toString'](),'sender':_0x357fc9[_0x5732dc(0x8b)]===_0x5732dc(0xcc)?_0x357fc9['User']?_0x357fc9['User']['fullname']:'System':_0x357fc9['Contact'][_0x5732dc(0xa4)]+(_0x357fc9['Contact']['lastName']?'\x20'+_0x357fc9['Contact'][_0x5732dc(0xbd)]:''),'body':_0x357fc9[_0x5732dc(0x10d)]?_0x357fc9[_0x5732dc(0x10d)][_0x5732dc(0xc3)]:_0x357fc9[_0x5732dc(0xda)],'direction':_0x357fc9['direction']===_0x5732dc(0xcc)?'A':'C','secret':_0x357fc9['secret'],'read':_0x357fc9[_0x5732dc(0xfe)],'attachment':_0x357fc9[_0x5732dc(0x10d)]};})[_0x105894(0x9e)]()};return ejs['renderFile'](path[_0x105894(0xa9)](config[_0x105894(0x96)],_0x105894(0x11d),_0x105894(0xe8),_0x105894(0x11a)),{'interaction':_0x37fee9})[_0x105894(0x119)](function(_0x47fe6e){return new Promise(function(_0x3592f0,_0x1738a9){const _0x5920ea=a951_0x44ab;pdf['create'](_0x47fe6e,_0x120d66)[_0x5920ea(0xe3)](path[_0x5920ea(0xa9)](_0x4ee384,_0x5920ea(0xa1)+_0x18ee32['id']+'-'+_0x32c307+_0x5920ea(0x12c)),function(_0x3800bd,_0x5e51d7){if(_0x3800bd)return _0x1738a9(_0x3800bd);_0x3592f0(_0x5e51d7);});});})['then'](function(){const _0x55fd33=_0x105894;return new Promise(function(_0x7a2b1f,_0xfe4e89){zipdir(_0x4ee384,{'saveTo':_0x535025},function(_0x325165,_0x458d73){if(_0x325165)return _0xfe4e89(_0x325165);return _0x7a2b1f(_0x458d73);});})[_0x55fd33(0x119)](function(){return new Promise(function(_0x22704b,_0xf2fe07){rimraf(_0x4ee384,function(_0x27513b){if(_0x27513b)_0xf2fe07(_0x27513b);return _0x22704b();});});})[_0x55fd33(0x119)](function(){const _0x4ddcb9=_0x55fd33;return _0x5e0fa4[_0x4ddcb9(0x80)](_0x535025,_0x1d1242,function(_0x97020){const _0x5812f5=_0x4ddcb9;_0x97020?console[_0x5812f5(0xed)](_0x5812f5(0xe1),_0x97020):fs[_0x5812f5(0x8e)](_0x535025);});});});}else return _0x5e0fa4[_0x105894(0x110)](0xc8);})[_0x3acb9e(0xa8)](handleError(_0x5e0fa4,null));}; \ No newline at end of file diff --git a/server/api/whatsappInteraction/whatsappInteraction.events.js b/server/api/whatsappInteraction/whatsappInteraction.events.js index 2568d78..479439c 100644 --- a/server/api/whatsappInteraction/whatsappInteraction.events.js +++ b/server/api/whatsappInteraction/whatsappInteraction.events.js @@ -1 +1 @@ -const a795_0x2c2f=['Users','remove','setMaxListeners','../../mysqldb','length','emit','getUsers','save','addHook','exports','update','setDataValue','then','WhatsappInteraction','findAll','events'];(function(_0x2c2c2b,_0x2c2f85){const _0x33b553=function(_0x2d086f){while(--_0x2d086f){_0x2c2c2b['push'](_0x2c2c2b['shift']());}};_0x33b553(++_0x2c2f85);}(a795_0x2c2f,0x64));const a795_0x33b5=function(_0x2c2c2b,_0x2c2f85){_0x2c2c2b=_0x2c2c2b-0x0;let _0x33b553=a795_0x2c2f[_0x2c2c2b];return _0x33b553;};const _0x50ea7e=a795_0x33b5;'use strict';const EventEmitter=require(_0x50ea7e('0xb')),WhatsappInteraction=require(_0x50ea7e('0xf'))['db'][_0x50ea7e('0x9')],WhatsappMessage=require('../../mysqldb')['db']['WhatsappMessage'],WhatsappInteractionEvents=new EventEmitter();WhatsappInteractionEvents[_0x50ea7e('0xe')](0x0);const events={'afterCreate':_0x50ea7e('0x3'),'afterUpdate':_0x50ea7e('0x6'),'afterDestroy':_0x50ea7e('0xd')};function emitEvent(_0x2d086f){return function(_0xc0ad23){const _0x4da00d=a795_0x33b5;_0xc0ad23[_0x4da00d('0x2')]({'attributes':['id'],'raw':!![]})[_0x4da00d('0x8')](function(_0x1314fc){const _0x3af8fe=_0x4da00d;return _0xc0ad23[_0x3af8fe('0x7')](_0x3af8fe('0xc'),_0x1314fc['map'](function(_0x1eee5f){return{'id':_0x1eee5f['id']};})),WhatsappMessage[_0x3af8fe('0xa')]({'where':{'WhatsappInteractionId':_0xc0ad23['id'],'direction':'in','read':![]},'raw':!![]});})[_0x4da00d('0x8')](function(_0x18f74e){const _0x3a61e6=_0x4da00d;_0xc0ad23[_0x3a61e6('0x7')]('unreadMessages',_0x18f74e[_0x3a61e6('0x0')]),WhatsappInteractionEvents[_0x3a61e6('0x1')](_0x2d086f+':'+_0xc0ad23['id'],_0xc0ad23),WhatsappInteractionEvents[_0x3a61e6('0x1')](_0x2d086f,_0xc0ad23);})['catch'](()=>{});};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];WhatsappInteraction[_0x50ea7e('0x4')](e,emitEvent(event));}}module[_0x50ea7e('0x5')]=WhatsappInteractionEvents; \ No newline at end of file +const a952_0x2c8d=['setDataValue','map','unreadMessages','setMaxListeners','getUsers','Users','undefined','exports','save','addHook','emit','WhatsappInteraction','update','length','then','catch','remove','WhatsappMessage','../../mysqldb'];(function(_0x3aace3,_0x1c96af){const _0x2c8d2c=function(_0x1b2bb9){while(--_0x1b2bb9){_0x3aace3['push'](_0x3aace3['shift']());}};_0x2c8d2c(++_0x1c96af);}(a952_0x2c8d,0x89));const a952_0x1b2b=function(_0x3aace3,_0x1c96af){_0x3aace3=_0x3aace3-0xa0;let _0x2c8d2c=a952_0x2c8d[_0x3aace3];return _0x2c8d2c;};const a952_0x34d3fa=a952_0x1b2b;'use strict';const EventEmitter=require('events'),WhatsappInteraction=require('../../mysqldb')['db'][a952_0x34d3fa(0xa7)],WhatsappMessage=require(a952_0x34d3fa(0xae))['db'][a952_0x34d3fa(0xad)],WhatsappInteractionEvents=new EventEmitter();WhatsappInteractionEvents[a952_0x34d3fa(0xb2)](0x0);const events={'afterCreate':a952_0x34d3fa(0xa4),'afterUpdate':a952_0x34d3fa(0xa8),'afterDestroy':a952_0x34d3fa(0xac)};function emitEvent(_0x56d092){return function(_0x5761e0){const _0x5897d7=a952_0x1b2b;_0x5761e0[_0x5897d7(0xa0)]({'attributes':['id'],'raw':!![]})[_0x5897d7(0xaa)](function(_0x294766){const _0x2486b0=_0x5897d7;return _0x5761e0['setDataValue'](_0x2486b0(0xa1),_0x294766[_0x2486b0(0xb0)](function(_0x586ba7){return{'id':_0x586ba7['id']};})),WhatsappMessage['findAll']({'where':{'WhatsappInteractionId':_0x5761e0['id'],'direction':'in','read':![]},'raw':!![]});})['then'](function(_0x22b7af){const _0x246df6=_0x5897d7;_0x5761e0[_0x246df6(0xaf)](_0x246df6(0xb1),_0x22b7af[_0x246df6(0xa9)]),WhatsappInteractionEvents[_0x246df6(0xa6)](_0x56d092+':'+_0x5761e0['id'],_0x5761e0),WhatsappInteractionEvents[_0x246df6(0xa6)](_0x56d092,_0x5761e0);})[_0x5897d7(0xab)](()=>{});};}for(const e in events){if(typeof events[e]!==a952_0x34d3fa(0xa2)){const event=events[e];WhatsappInteraction[a952_0x34d3fa(0xa5)](e,emitEvent(event));}}module[a952_0x34d3fa(0xa3)]=WhatsappInteractionEvents; \ No newline at end of file diff --git a/server/api/whatsappInteraction/whatsappInteraction.model.js b/server/api/whatsappInteraction/whatsappInteraction.model.js index 1bb2c35..e787b6c 100644 --- a/server/api/whatsappInteraction/whatsappInteraction.model.js +++ b/server/api/whatsappInteraction/whatsappInteraction.model.js @@ -1 +1 @@ -const a796_0x325d=['moment','WhatsappInteraction','whatsapp_interactions','changed','exports','closed','define'];(function(_0x3c75e5,_0x325d1d){const _0x30ce1a=function(_0xd1ec96){while(--_0xd1ec96){_0x3c75e5['push'](_0x3c75e5['shift']());}};_0x30ce1a(++_0x325d1d);}(a796_0x325d,0x1ec));const a796_0x30ce=function(_0x3c75e5,_0x325d1d){_0x3c75e5=_0x3c75e5-0x0;let _0x30ce1a=a796_0x325d[_0x3c75e5];return _0x30ce1a;};const _0x320d88=a796_0x30ce;'use strict';const moment=require(_0x320d88('0x5')),attributes=require('./whatsappInteraction.attributes');module[_0x320d88('0x2')]=function(_0xd1ec96){const _0x229db0=_0x320d88,_0xe93d7d=_0xd1ec96[_0x229db0('0x4')](_0x229db0('0x6'),attributes,{'tableName':_0x229db0('0x0'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x4dae39){const _0x3d3b40=_0x229db0;_0x4dae39[_0x3d3b40('0x1')](_0x3d3b40('0x3'))&&(_0x4dae39['closedAt']=moment()['format']('YYYY-MM-DD\x20HH:mm:ss'));}}});return _0xe93d7d;}; \ No newline at end of file +const a953_0x5692=['WhatsappInteraction','init','exports','./whatsappInteraction.attributes','./whatsappInteraction.options'];(function(_0x18da68,_0x3774e8){const _0x569201=function(_0xf3270b){while(--_0xf3270b){_0x18da68['push'](_0x18da68['shift']());}};_0x569201(++_0x3774e8);}(a953_0x5692,0x147));const a953_0xf327=function(_0x18da68,_0x3774e8){_0x18da68=_0x18da68-0xef;let _0x569201=a953_0x5692[_0x18da68];return _0x569201;};const a953_0x953f31=a953_0xf327;'use strict';const {Model}=require('sequelize'),{attributes}=require(a953_0x953f31(0xf0)),{options}=require(a953_0x953f31(0xf1));class WhatsappInteraction extends Model{}function init(_0x1529ff,_0x5f2fc8){const _0x436247=a953_0x953f31,_0x1851a4=options(_0x1529ff),_0x39f756=typeof _0x5f2fc8==='function'?_0x5f2fc8(_0x1851a4):_0x1851a4;return WhatsappInteraction[_0x436247(0xf3)](attributes,_0x39f756),WhatsappInteraction;}module['exports'][a953_0x953f31(0xf2)]=WhatsappInteraction,module[a953_0x953f31(0xef)][a953_0x953f31(0xf3)]=init; \ No newline at end of file diff --git a/server/api/whatsappInteraction/whatsappInteraction.options.js b/server/api/whatsappInteraction/whatsappInteraction.options.js new file mode 100644 index 0000000..c8b1428 --- /dev/null +++ b/server/api/whatsappInteraction/whatsappInteraction.options.js @@ -0,0 +1 @@ +const a954_0x8ecf=['moment','whatsapp_interactions','changed','closed','YYYY-MM-DD\x20HH:mm:ss','options'];(function(_0x2007bd,_0x5cd148){const _0x8ecf4=function(_0x2cdffe){while(--_0x2cdffe){_0x2007bd['push'](_0x2007bd['shift']());}};_0x8ecf4(++_0x5cd148);}(a954_0x8ecf,0x74));const a954_0x2cdf=function(_0x2007bd,_0x5cd148){_0x2007bd=_0x2007bd-0x1d0;let _0x8ecf4=a954_0x8ecf[_0x2007bd];return _0x8ecf4;};const a954_0x495e2e=a954_0x2cdf,moment=require(a954_0x495e2e(0x1d4));function options(_0x4309f2){const _0x530646=a954_0x495e2e;return{'sequelize':_0x4309f2,'tableName':_0x530646(0x1d5),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x5a00b0){const _0xdd269f=_0x530646;_0x5a00b0[_0xdd269f(0x1d0)](_0xdd269f(0x1d1))&&(_0x5a00b0['closedAt']=moment()['format'](_0xdd269f(0x1d2)));}}};}module['exports'][a954_0x495e2e(0x1d3)]=options; \ No newline at end of file diff --git a/server/api/whatsappInteraction/whatsappInteraction.rpc.js b/server/api/whatsappInteraction/whatsappInteraction.rpc.js index 38f7334..c575625 100644 --- a/server/api/whatsappInteraction/whatsappInteraction.rpc.js +++ b/server/api/whatsappInteraction/whatsappInteraction.rpc.js @@ -1 +1 @@ -const a797_0x23c4=['update','limit','ids','then','omit','rpc','../../config/logger','../../mysqldb','raw','lodash','AddTags','body','WhatsappInteraction','debug','AddTagsToWhatsappInteraction','attributes','stringify','UpdateWhatsappInteraction','info','register','message','./whatsappInteraction.socket','findOne','where','error','options'];(function(_0x276ddd,_0x23c4eb){const _0x43c96e=function(_0x183ca0){while(--_0x183ca0){_0x276ddd['push'](_0x276ddd['shift']());}};_0x43c96e(++_0x23c4eb);}(a797_0x23c4,0x1d9));const a797_0x43c9=function(_0x276ddd,_0x23c4eb){_0x276ddd=_0x276ddd-0x0;let _0x43c96e=a797_0x23c4[_0x276ddd];return _0x43c96e;};const _0x85c91=a797_0x43c9;'use strict';const _=require(_0x85c91('0x4')),db=require(_0x85c91('0x2'))['db'],logger=require(_0x85c91('0x1'))(_0x85c91('0x0')),{getSocket}=require('../../rediscache'),socket=getSocket();require(_0x85c91('0x10'))[_0x85c91('0xe')](socket),exports['UpdateWhatsappInteraction']=function(_0x183ca0){const _0x438955=this;return new Promise(function(_0x16c420,_0x5468d7){const _0x35f032=a797_0x43c9;return db[_0x35f032('0x7')][_0x35f032('0x15')](_0x183ca0[_0x35f032('0x6')],{'raw':_0x183ca0[_0x35f032('0x14')]?_0x183ca0[_0x35f032('0x14')][_0x35f032('0x3')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x183ca0[_0x35f032('0x14')]?_0x183ca0[_0x35f032('0x14')][_0x35f032('0x12')]||null:null,'attributes':_0x183ca0[_0x35f032('0x14')]?_0x183ca0['options'][_0x35f032('0xa')]||null:null,'limit':_0x183ca0[_0x35f032('0x14')]?_0x183ca0[_0x35f032('0x14')][_0x35f032('0x16')]||null:null})[_0x35f032('0x18')](function(_0x1f4637){const _0x4092f6=_0x35f032;logger['info'](_0x4092f6('0xc'),_0x183ca0),logger[_0x4092f6('0x8')]('UpdateWhatsappInteraction',_0x183ca0,JSON[_0x4092f6('0xb')](_0x1f4637)),_0x16c420(_0x1f4637);})['catch'](function(_0x23cfc5){const _0x12305c=_0x35f032;logger[_0x12305c('0x13')](_0x12305c('0xc'),_0x23cfc5[_0x12305c('0xf')],_0x183ca0),_0x5468d7(_0x438955[_0x12305c('0x13')](0x1f4,_0x23cfc5[_0x12305c('0xf')]));});});},exports[_0x85c91('0x9')]=function(_0x4ad3a6){const _0x26561d=this;return new Promise(function(_0x3e5120,_0x1e5323){const _0x176b1c=a797_0x43c9;return db[_0x176b1c('0x7')][_0x176b1c('0x11')]({'where':_0x4ad3a6[_0x176b1c('0x14')]?_0x4ad3a6[_0x176b1c('0x14')][_0x176b1c('0x12')]||null:null})[_0x176b1c('0x18')](function(_0x4a26d1){const _0xbdb880=_0x176b1c;if(_0x4a26d1)return _0x4a26d1['addTags'](_0x4ad3a6[_0xbdb880('0x6')][_0xbdb880('0x17')],{'through':_[_0xbdb880('0x19')](_0x4ad3a6['body'],[_0xbdb880('0x17'),'id'])});})[_0x176b1c('0x18')](function([_0x42e273]){const _0x2addf6=_0x176b1c;logger[_0x2addf6('0xd')](_0x2addf6('0x5'),_0x4ad3a6),logger[_0x2addf6('0x8')]('AddTags',_0x4ad3a6,JSON[_0x2addf6('0xb')](_0x42e273)),_0x3e5120(_0x42e273);})['catch'](function(_0x2a1b71){const _0x29b5c4=_0x176b1c;logger[_0x29b5c4('0x13')]('AddTags',_0x2a1b71[_0x29b5c4('0xf')],_0x4ad3a6),_0x1e5323(_0x26561d['error'](0x1f4,_0x2a1b71['message']));});});}; \ No newline at end of file +const a955_0x2f9f=['body','catch','stringify','WhatsappInteraction','debug','addTags','ids','AddTags','../../rediscache','error','../../config/logger','options','attributes','UpdateWhatsappInteraction','message','../../mysqldb','then','where','rpc','raw','omit','info','./whatsappInteraction.socket'];(function(_0x5e3df1,_0x5259d6){const _0x2f9f38=function(_0xcd6330){while(--_0xcd6330){_0x5e3df1['push'](_0x5e3df1['shift']());}};_0x2f9f38(++_0x5259d6);}(a955_0x2f9f,0x196));const a955_0xcd63=function(_0x5e3df1,_0x5259d6){_0x5e3df1=_0x5e3df1-0x189;let _0x2f9f38=a955_0x2f9f[_0x5e3df1];return _0x2f9f38;};const a955_0x46a31e=a955_0xcd63;'use strict';const _=require('lodash'),db=require(a955_0x46a31e(0x189))['db'],logger=require(a955_0x46a31e(0x19b))(a955_0x46a31e(0x18c)),{getSocket}=require(a955_0x46a31e(0x199)),socket=getSocket();require(a955_0x46a31e(0x190))['register'](socket),exports[a955_0x46a31e(0x19e)]=function(_0x22fb79){const _0x867347=this;return new Promise(function(_0x28fdba,_0x18af1a){const _0x2d30a0=a955_0xcd63;return db['WhatsappInteraction']['update'](_0x22fb79[_0x2d30a0(0x191)],{'raw':_0x22fb79[_0x2d30a0(0x19c)]?_0x22fb79[_0x2d30a0(0x19c)][_0x2d30a0(0x18d)]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x22fb79['options']?_0x22fb79[_0x2d30a0(0x19c)][_0x2d30a0(0x18b)]||null:null,'attributes':_0x22fb79[_0x2d30a0(0x19c)]?_0x22fb79[_0x2d30a0(0x19c)][_0x2d30a0(0x19d)]||null:null,'limit':_0x22fb79[_0x2d30a0(0x19c)]?_0x22fb79[_0x2d30a0(0x19c)]['limit']||null:null})['then'](function(_0x3e86ec){const _0x474bf6=_0x2d30a0;logger[_0x474bf6(0x18f)](_0x474bf6(0x19e),_0x22fb79),logger[_0x474bf6(0x195)](_0x474bf6(0x19e),_0x22fb79,JSON['stringify'](_0x3e86ec)),_0x28fdba(_0x3e86ec);})[_0x2d30a0(0x192)](function(_0x1095ae){const _0x2dbc04=_0x2d30a0;logger[_0x2dbc04(0x19a)]('UpdateWhatsappInteraction',_0x1095ae['message'],_0x22fb79),_0x18af1a(_0x867347[_0x2dbc04(0x19a)](0x1f4,_0x1095ae[_0x2dbc04(0x19f)]));});});},exports['AddTagsToWhatsappInteraction']=function(_0x36d180){const _0x1d8f86=this;return new Promise(function(_0x57ecee,_0x21246e){const _0x97450b=a955_0xcd63;return db[_0x97450b(0x194)]['findOne']({'where':_0x36d180[_0x97450b(0x19c)]?_0x36d180[_0x97450b(0x19c)][_0x97450b(0x18b)]||null:null})[_0x97450b(0x18a)](function(_0x1b529b){const _0x8426e7=_0x97450b;if(_0x1b529b)return _0x1b529b[_0x8426e7(0x196)](_0x36d180[_0x8426e7(0x191)][_0x8426e7(0x197)],{'through':_[_0x8426e7(0x18e)](_0x36d180[_0x8426e7(0x191)],[_0x8426e7(0x197),'id'])});})[_0x97450b(0x18a)](function([_0x5af723]){const _0x323ce2=_0x97450b;logger['info'](_0x323ce2(0x198),_0x36d180),logger['debug'](_0x323ce2(0x198),_0x36d180,JSON[_0x323ce2(0x193)](_0x5af723)),_0x57ecee(_0x5af723);})[_0x97450b(0x192)](function(_0x2f9f2f){const _0x25dd60=_0x97450b;logger[_0x25dd60(0x19a)](_0x25dd60(0x198),_0x2f9f2f[_0x25dd60(0x19f)],_0x36d180),_0x21246e(_0x1d8f86[_0x25dd60(0x19a)](0x1f4,_0x2f9f2f[_0x25dd60(0x19f)]));});});}; \ No newline at end of file diff --git a/server/api/whatsappInteraction/whatsappInteraction.socket.js b/server/api/whatsappInteraction/whatsappInteraction.socket.js index a1bcced..f8ffe5b 100644 --- a/server/api/whatsappInteraction/whatsappInteraction.socket.js +++ b/server/api/whatsappInteraction/whatsappInteraction.socket.js @@ -1 +1 @@ -const a798_0x2e8b=['./whatsappInteraction.events','whatsappInteraction:','remove','update','register','save'];(function(_0x1f8236,_0x2e8b39){const _0x1fdcdf=function(_0x21ddf9){while(--_0x21ddf9){_0x1f8236['push'](_0x1f8236['shift']());}};_0x1fdcdf(++_0x2e8b39);}(a798_0x2e8b,0x1d7));const a798_0x1fdc=function(_0x1f8236,_0x2e8b39){_0x1f8236=_0x1f8236-0x0;let _0x1fdcdf=a798_0x2e8b[_0x1f8236];return _0x1fdcdf;};const _0x328da2=a798_0x1fdc;'use strict';const WhatsappInteractionEvents=require(_0x328da2('0x3')),events=[_0x328da2('0x2'),_0x328da2('0x5'),_0x328da2('0x0')];function createListener(_0x21ddf9,_0x38af56){return function(_0x2cc9ee){_0x38af56['emit'](_0x21ddf9,_0x2cc9ee);};}exports[_0x328da2('0x1')]=function(_0x1269fb){const _0x283d41=_0x328da2;for(let _0xf77357=0x0,_0x7733b8=events['length'];_0xf77357<_0x7733b8;_0xf77357++){const _0x5ebccb=events[_0xf77357],_0x19ebfb=createListener(_0x283d41('0x4')+_0x5ebccb,_0x1269fb);WhatsappInteractionEvents['on'](_0x5ebccb,_0x19ebfb);}}; \ No newline at end of file +const a956_0x4d11=['register','emit','update','whatsappInteraction:','./whatsappInteraction.events','save'];(function(_0x1bf5b9,_0x4759af){const _0x4d11c8=function(_0x291539){while(--_0x291539){_0x1bf5b9['push'](_0x1bf5b9['shift']());}};_0x4d11c8(++_0x4759af);}(a956_0x4d11,0x85));const a956_0x2915=function(_0x1bf5b9,_0x4759af){_0x1bf5b9=_0x1bf5b9-0x175;let _0x4d11c8=a956_0x4d11[_0x1bf5b9];return _0x4d11c8;};const a956_0x229ce7=a956_0x2915;'use strict';const WhatsappInteractionEvents=require(a956_0x229ce7(0x178)),events=[a956_0x229ce7(0x179),'remove',a956_0x229ce7(0x176)];function createListener(_0x5e5efb,_0xe9127c){return function(_0x2441d9){const _0x339d0d=a956_0x2915;_0xe9127c[_0x339d0d(0x175)](_0x5e5efb,_0x2441d9);};}exports[a956_0x229ce7(0x17a)]=function(_0x455287){const _0x29c8db=a956_0x229ce7;for(let _0xd7260=0x0,_0x286524=events['length'];_0xd7260<_0x286524;_0xd7260++){const _0x370cf7=events[_0xd7260],_0x5536a0=createListener(_0x29c8db(0x177)+_0x370cf7,_0x455287);WhatsappInteractionEvents['on'](_0x370cf7,_0x5536a0);}}; \ No newline at end of file diff --git a/server/api/whatsappMessage/index.js b/server/api/whatsappMessage/index.js index 752516c..2dad866 100644 --- a/server/api/whatsappMessage/index.js +++ b/server/api/whatsappMessage/index.js @@ -1 +1 @@ -const a799_0x5c63=['create','get','./whatsappMessage.controller','put','whatsappmessage:create','../../components/auth/service','post','reject','show','isAuthenticated','status','/:id/status','/describe','index','/:id/reject','delete','../../components/interaction/service','whatsapp','tracked','Router','/:id/accept','describe','/:id'];(function(_0x1bb892,_0x5c63aa){const _0x4de5bb=function(_0x5e5c73){while(--_0x5e5c73){_0x1bb892['push'](_0x1bb892['shift']());}};_0x4de5bb(++_0x5c63aa);}(a799_0x5c63,0x126));const a799_0x4de5=function(_0x1bb892,_0x5c63aa){_0x1bb892=_0x1bb892-0x0;let _0x4de5bb=a799_0x5c63[_0x1bb892];return _0x4de5bb;};const _0x1cb9bb=a799_0x4de5;'use strict';const express=require('express'),router=express[_0x1cb9bb('0x1')](),auth=require(_0x1cb9bb('0xa')),interaction=require(_0x1cb9bb('0x15')),controller=require(_0x1cb9bb('0x7'));router[_0x1cb9bb('0x6')]('/',auth[_0x1cb9bb('0xe')](),controller[_0x1cb9bb('0x12')]),router[_0x1cb9bb('0x6')](_0x1cb9bb('0x11'),auth[_0x1cb9bb('0xe')](),controller[_0x1cb9bb('0x3')]),router['get'](_0x1cb9bb('0x4'),auth['isAuthenticated'](),controller[_0x1cb9bb('0xd')]),router[_0x1cb9bb('0xb')]('/',auth[_0x1cb9bb('0xe')](),interaction[_0x1cb9bb('0x0')](_0x1cb9bb('0x16'),_0x1cb9bb('0x9')),controller[_0x1cb9bb('0x5')]),router[_0x1cb9bb('0xb')](_0x1cb9bb('0x10'),controller[_0x1cb9bb('0xf')]),router[_0x1cb9bb('0x8')]('/:id',auth['isAuthenticated'](),controller['update']),router['put'](_0x1cb9bb('0x2'),auth[_0x1cb9bb('0xe')](),controller['accept']),router[_0x1cb9bb('0x8')](_0x1cb9bb('0x13'),auth[_0x1cb9bb('0xe')](),controller[_0x1cb9bb('0xc')]),router[_0x1cb9bb('0x14')](_0x1cb9bb('0x4'),auth['isAuthenticated'](),controller['destroy']),module['exports']=router; \ No newline at end of file +const a957_0x12d0=['Router','put','/:id/status','accept','exports','/:id/accept','post','destroy','./whatsappMessage.controller','isAuthenticated','tracked','whatsappmessage:create','delete','status','whatsapp','express','show','create','../../components/auth/service','index','../../components/interaction/service','/describe','/:id','describe','update','get'];(function(_0x4868ff,_0x5ab910){const _0x12d0f7=function(_0x3ba5fc){while(--_0x3ba5fc){_0x4868ff['push'](_0x4868ff['shift']());}};_0x12d0f7(++_0x5ab910);}(a957_0x12d0,0x1cf));const a957_0x3ba5=function(_0x4868ff,_0x5ab910){_0x4868ff=_0x4868ff-0x133;let _0x12d0f7=a957_0x12d0[_0x4868ff];return _0x12d0f7;};const a957_0x9a32bb=a957_0x3ba5;'use strict';const express=require(a957_0x9a32bb(0x147)),router=express[a957_0x9a32bb(0x138)](),auth=require(a957_0x9a32bb(0x14a)),interaction=require(a957_0x9a32bb(0x14c)),controller=require(a957_0x9a32bb(0x140));router[a957_0x9a32bb(0x137)]('/',auth[a957_0x9a32bb(0x141)](),controller[a957_0x9a32bb(0x14b)]),router[a957_0x9a32bb(0x137)](a957_0x9a32bb(0x133),auth[a957_0x9a32bb(0x141)](),controller[a957_0x9a32bb(0x135)]),router[a957_0x9a32bb(0x137)](a957_0x9a32bb(0x134),auth['isAuthenticated'](),controller[a957_0x9a32bb(0x148)]),router[a957_0x9a32bb(0x13e)]('/',auth['isAuthenticated'](),interaction[a957_0x9a32bb(0x142)](a957_0x9a32bb(0x146),a957_0x9a32bb(0x143)),controller[a957_0x9a32bb(0x149)]),router[a957_0x9a32bb(0x13e)](a957_0x9a32bb(0x13a),controller[a957_0x9a32bb(0x145)]),router[a957_0x9a32bb(0x139)](a957_0x9a32bb(0x134),auth[a957_0x9a32bb(0x141)](),controller[a957_0x9a32bb(0x136)]),router[a957_0x9a32bb(0x139)](a957_0x9a32bb(0x13d),auth[a957_0x9a32bb(0x141)](),controller[a957_0x9a32bb(0x13b)]),router['put']('/:id/reject',auth['isAuthenticated'](),controller['reject']),router[a957_0x9a32bb(0x144)](a957_0x9a32bb(0x134),auth[a957_0x9a32bb(0x141)](),controller[a957_0x9a32bb(0x13f)]),module[a957_0x9a32bb(0x13c)]=router; \ No newline at end of file diff --git a/server/api/whatsappMessage/whatsappMessage.attributes.js b/server/api/whatsappMessage/whatsappMessage.attributes.js index 2d56326..2d2830e 100644 --- a/server/api/whatsappMessage/whatsappMessage.attributes.js +++ b/server/api/whatsappMessage/whatsappMessage.attributes.js @@ -1 +1 @@ -const a800_0x3cc6=['ENUM','sequelize','BOOLEAN','medium','DATE','TEXT','STRING','out'];(function(_0x590c62,_0x3cc65e){const _0x5adb67=function(_0x4376a4){while(--_0x4376a4){_0x590c62['push'](_0x590c62['shift']());}};_0x5adb67(++_0x3cc65e);}(a800_0x3cc6,0x1d2));const a800_0x5adb=function(_0x590c62,_0x3cc65e){_0x590c62=_0x590c62-0x0;let _0x5adb67=a800_0x3cc6[_0x590c62];return _0x5adb67;};const _0x379cc4=a800_0x5adb;'use strict';const Sequelize=require(_0x379cc4('0x7'));module['exports']={'body':{'type':Sequelize[_0x379cc4('0x3')](_0x379cc4('0x1')),'allowNull':![]},'read':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'direction':{'type':Sequelize[_0x379cc4('0x6')]('in',_0x379cc4('0x5')),'defaultValue':_0x379cc4('0x5'),'allowNull':![]},'messageId':{'type':Sequelize['STRING'](0xbe)},'phone':{'type':Sequelize[_0x379cc4('0x4')]},'readAt':{'type':Sequelize[_0x379cc4('0x2')]},'secret':{'type':Sequelize[_0x379cc4('0x0')],'defaultValue':![]},'providerName':{'type':Sequelize[_0x379cc4('0x4')]},'providerResponse':{'type':Sequelize[_0x379cc4('0x3')]}}; \ No newline at end of file +const a958_0x4a37=['STRING','attributes','BOOLEAN','DATE','sequelize','medium','ENUM','TEXT','out'];(function(_0x42636d,_0x4bcf96){const _0x4a3700=function(_0x30d0e5){while(--_0x30d0e5){_0x42636d['push'](_0x42636d['shift']());}};_0x4a3700(++_0x4bcf96);}(a958_0x4a37,0x1d6));const a958_0x30d0=function(_0x42636d,_0x4bcf96){_0x42636d=_0x42636d-0x127;let _0x4a3700=a958_0x4a37[_0x42636d];return _0x4a3700;};const a958_0x58d2fd=a958_0x30d0;'use strict';const {DataTypes}=require(a958_0x58d2fd(0x129)),attributes={'body':{'type':DataTypes[a958_0x58d2fd(0x12c)]({'length':a958_0x58d2fd(0x12a)}),'allowNull':![]},'read':{'type':DataTypes[a958_0x58d2fd(0x127)],'defaultValue':![]},'direction':{'type':DataTypes[a958_0x58d2fd(0x12b)]('in',a958_0x58d2fd(0x12d)),'defaultValue':'out','allowNull':![]},'messageId':{'type':DataTypes[a958_0x58d2fd(0x12e)](0xbe)},'phone':{'type':DataTypes[a958_0x58d2fd(0x12e)]},'readAt':{'type':DataTypes[a958_0x58d2fd(0x128)]},'secret':{'type':DataTypes[a958_0x58d2fd(0x127)],'defaultValue':![]},'providerName':{'type':DataTypes[a958_0x58d2fd(0x12e)]},'providerResponse':{'type':DataTypes[a958_0x58d2fd(0x12c)]}};module['exports'][a958_0x58d2fd(0x12f)]=attributes; \ No newline at end of file diff --git a/server/api/whatsappMessage/whatsappMessage.controller.js b/server/api/whatsappMessage/whatsappMessage.controller.js index 02d6930..54d189e 100644 --- a/server/api/whatsappMessage/whatsappMessage.controller.js +++ b/server/api/whatsappMessage/whatsappMessage.controller.js @@ -1 +1 @@ -const a801_0x1ec2=['read','query','send','lodash','create','[WHATSAPPMESSAGE:ACCEPT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s','http','WhatsappMessage,\x20%s,\x20%s,\x20%s','length','like','model','destroy','request\x20sent','MessageStatus','WhatsappMessage,\x20%s,\x20%s','stringify','messageId','inspect','agent','WhatsppMessage,\x20%s,\x20%s,\x20%s','EventManager','show','offset','read1stAt','sendStatus','AcceptMessage','include','findOne','YYYY-MM-DD\x20HH:mm:ss','findAll','map','whatsapp','WhatsappInteractionId','jayson/promise','isNil','SIP/%s','user','get','WhatsappMessage','format','count','client','rows','sort','intersection','update','RejectMessage','stack','event','name','body','keys','rawAttributes','type','rejectmessage','WhatsappAccountId','null','options','sequelize','reject','interaction','where','WhatsappInteraction','set','Content-Range','error','then','message','catch','CmContact','role','UserId','acceptmessage','filters','includeAll','merge','twilio','whatsapp-interactions','json','status','moment','limit','accept','params','index','MessageSid','VIRTUAL','attributes','../../mysqldb','channel','../../config/logger','../../rediscache','result','../../components/parsers/qs','info','interface','filter','nolimit','debug'];(function(_0x18867d,_0x1ec22f){const _0x5903cd=function(_0x4c9401){while(--_0x4c9401){_0x18867d['push'](_0x18867d['shift']());}};_0x5903cd(++_0x1ec22f);}(a801_0x1ec2,0xf2));const a801_0x5903=function(_0x18867d,_0x1ec22f){_0x18867d=_0x18867d-0x0;let _0x5903cd=a801_0x1ec2[_0x18867d];return _0x5903cd;};const _0x3613e5=a801_0x5903;'use strict';const moment=require(_0x3613e5('0x24')),util=require('util'),_=require(_0x3613e5('0x3a')),qs=require(_0x3613e5('0x31')),logger=require(_0x3613e5('0x2e'))('api'),{getSocket}=require(_0x3613e5('0x2f')),socket=getSocket(),interaction_log=require(_0x3613e5('0x2e'))(_0x3613e5('0x21')),db=require(_0x3613e5('0x2c'))['db'],{Op}=require(_0x3613e5('0xe'));require('./whatsappMessage.socket')['register'](socket);const jayson=require(_0x3613e5('0x58')),client=jayson[_0x3613e5('0x60')][_0x3613e5('0x3d')]({'port':0x232c}),client9002=jayson[_0x3613e5('0x60')][_0x3613e5('0x3d')]({'port':0x232a});function respondWithRpcPromise(_0x4c9401,_0x4dc0f5,_0x2ea75d,_0x3ddeb4){return new Promise(function(_0xaf676,_0x850a56){const _0x21ae70=_0x3ddeb4||client;return _0x21ae70['request'](_0x4c9401,_0x2ea75d)['then'](function(_0x2de4e4){const _0x4e3699=a801_0x5903;logger[_0x4e3699('0x32')](_0x4e3699('0x45'),_0x4dc0f5,_0x4e3699('0x43')),logger[_0x4e3699('0x36')](_0x4e3699('0x3e'),_0x4dc0f5,_0x4e3699('0x43'),JSON[_0x4e3699('0x46')](_0x2de4e4));if(_0x2de4e4[_0x4e3699('0x15')]){if(_0x2de4e4['error']['code']===0x1f4)return logger[_0x4e3699('0x15')](_0x4e3699('0x45'),_0x4dc0f5,_0x2de4e4[_0x4e3699('0x15')][_0x4e3699('0x17')]),_0x850a56(_0x2de4e4[_0x4e3699('0x15')][_0x4e3699('0x17')]);return logger[_0x4e3699('0x15')]('WhatsappMessage,\x20%s,\x20%s',_0x4dc0f5,_0x2de4e4[_0x4e3699('0x15')][_0x4e3699('0x17')]),_0xaf676(_0x2de4e4[_0x4e3699('0x15')][_0x4e3699('0x17')]);}else logger[_0x4e3699('0x32')](_0x4e3699('0x45'),_0x4dc0f5,_0x4e3699('0x43')),_0xaf676(_0x2de4e4[_0x4e3699('0x30')]['message']);})['catch'](function(_0x1f50c8){const _0x256606=a801_0x5903;logger['error'](_0x256606('0x45'),_0x4dc0f5,_0x1f50c8),_0x850a56(_0x1f50c8);});});}function respondWithResult(_0x57cb80,_0x17eb4a){return _0x17eb4a=_0x17eb4a||0xc8,function(_0x52114f){const _0x259372=a801_0x5903;if(_0x52114f)return _0x57cb80[_0x259372('0x23')](_0x17eb4a)[_0x259372('0x22')](_0x52114f);};}function respondWithFilteredResult(_0x1e9b37,_0x5afd94){return function(_0x3b9603){const _0x505429=a801_0x5903;if(_0x3b9603){const _0x5e121a=_0x3b9603[_0x505429('0x5f')],_0xfca1f=_0x5afd94[_0x505429('0x4d')];let _0x21a46c=_0x5afd94[_0x505429('0x4d')]+_0x5afd94[_0x505429('0x25')],_0x2340c7;return _0x21a46c>=_0x5e121a?(_0x21a46c=_0x5e121a,_0x2340c7=0xc8):_0x2340c7=0xce,_0x1e9b37[_0x505429('0x23')](_0x2340c7),_0x1e9b37[_0x505429('0x13')](_0x505429('0x14'),_0xfca1f+'-'+_0x21a46c+'/'+_0x5e121a)[_0x505429('0x22')](_0x3b9603);}return null;};}function saveUpdates(_0x19c3fb){return function(_0x4ffd2e){const _0xa6736c=a801_0x5903;if(_0x4ffd2e)return _0x4ffd2e[_0xa6736c('0x1')](_0x19c3fb)[_0xa6736c('0x16')](function(_0x16dfa5){return _0x16dfa5;});return null;};}function removeEntity(_0x296975){return function(_0x36738c){const _0x53f50d=a801_0x5903;if(_0x36738c)return _0x36738c['destroy']()[_0x53f50d('0x16')](function(){const _0x41dd5e=_0x53f50d;_0x296975[_0x41dd5e('0x23')](0xcc)['end']();});};}function handleEntityNotFound(_0x407a15){return function(_0x49c2c9){const _0x804505=a801_0x5903;return!_0x49c2c9&&_0x407a15[_0x804505('0x4f')](0x194),_0x49c2c9;};}function handleError(_0x4237e7,_0x4f2e6d){return _0x4f2e6d=_0x4f2e6d||0x1f4,function(_0x434576){const _0x1da414=a801_0x5903;logger['error'](_0x434576[_0x1da414('0x3')]),_0x434576[_0x1da414('0x5')]&&delete _0x434576[_0x1da414('0x5')],_0x4237e7[_0x1da414('0x23')](_0x4f2e6d)[_0x1da414('0x39')](_0x434576);};}exports[_0x3613e5('0x28')]=function(_0x2e5f33,_0x56fdd9){const _0x32acd9=_0x3613e5;let _0x2ab8b9={};const _0x46ae0c={},_0x534bfc={'count':0x0,'rows':[]},_0x391c91=_[_0x32acd9('0x55')](db['WhatsappMessage']['rawAttributes'],function(_0x63cc6d){const _0x2233ce=_0x32acd9;return{'name':_0x63cc6d['fieldName'],'type':_0x63cc6d[_0x2233ce('0x9')]['key']};});_0x46ae0c[_0x32acd9('0x41')]=_[_0x32acd9('0x55')](_0x391c91,_0x32acd9('0x5')),_0x46ae0c[_0x32acd9('0x38')]=_[_0x32acd9('0x7')](_0x2e5f33['query']),_0x46ae0c['filters']=_[_0x32acd9('0x0')](_0x46ae0c[_0x32acd9('0x41')],_0x46ae0c[_0x32acd9('0x38')]),_0x2ab8b9['attributes']=_[_0x32acd9('0x0')](_0x46ae0c[_0x32acd9('0x41')],qs['fields'](_0x2e5f33[_0x32acd9('0x38')]['fields'])),_0x2ab8b9[_0x32acd9('0x2b')]=_0x2ab8b9[_0x32acd9('0x2b')][_0x32acd9('0x3f')]?_0x2ab8b9[_0x32acd9('0x2b')]:_0x46ae0c[_0x32acd9('0x41')];typeof _0x2e5f33[_0x32acd9('0x38')][_0x32acd9('0x35')]==='undefined'&&(_0x2ab8b9['limit']=qs['limit'](_0x2e5f33[_0x32acd9('0x38')]['limit']),_0x2ab8b9[_0x32acd9('0x4d')]=qs[_0x32acd9('0x4d')](_0x2e5f33[_0x32acd9('0x38')][_0x32acd9('0x4d')]));_0x2ab8b9['order']=qs['sort'](_0x2e5f33[_0x32acd9('0x38')][_0x32acd9('0x62')]),_0x2ab8b9[_0x32acd9('0x11')]=qs[_0x32acd9('0x1d')](_['pick'](_0x2e5f33[_0x32acd9('0x38')],_0x46ae0c['filters']),_0x391c91);_0x2e5f33[_0x32acd9('0x38')][_0x32acd9('0x34')]&&(_0x2ab8b9[_0x32acd9('0x11')]=_[_0x32acd9('0x1f')](_0x2ab8b9['where'],{[Op['or']]:_['map'](_0x391c91,function(_0x13351e){const _0x1d5247=_0x32acd9;if(_0x13351e[_0x1d5247('0x9')]!==_0x1d5247('0x2a')){const _0x47dadd={};return _0x47dadd[_0x13351e[_0x1d5247('0x5')]]={[Op[_0x1d5247('0x40')]]:'%'+_0x2e5f33['query'][_0x1d5247('0x34')]+'%'},_0x47dadd;}})}));_0x2ab8b9=_[_0x32acd9('0x1f')]({},_0x2ab8b9,_0x2e5f33['options']);const _0x50da3d={'where':_0x2ab8b9[_0x32acd9('0x11')]};return db['WhatsappMessage'][_0x32acd9('0x5f')](_0x50da3d)['then'](function(_0x3b9755){const _0x15344e=_0x32acd9;return _0x534bfc['count']=_0x3b9755,_0x2e5f33[_0x15344e('0x38')][_0x15344e('0x1e')]&&(_0x2ab8b9['include']=[{'all':!![]}]),db[_0x15344e('0x5d')][_0x15344e('0x54')](_0x2ab8b9);})[_0x32acd9('0x16')](function(_0x370b27){const _0x467c55=_0x32acd9;return _0x534bfc[_0x467c55('0x61')]=_0x370b27,_0x534bfc;})[_0x32acd9('0x16')](respondWithFilteredResult(_0x56fdd9,_0x2ab8b9))[_0x32acd9('0x18')](handleError(_0x56fdd9,null));},exports[_0x3613e5('0x4c')]=function(_0x3fcf25,_0x569783){const _0x1d1994=_0x3613e5;let _0x3152c={'raw':!![],'where':{'id':_0x3fcf25[_0x1d1994('0x27')]['id']}};const _0x256dfb={};return _0x256dfb[_0x1d1994('0x41')]=_[_0x1d1994('0x7')](db[_0x1d1994('0x5d')][_0x1d1994('0x8')]),_0x256dfb[_0x1d1994('0x38')]=_[_0x1d1994('0x7')](_0x3fcf25[_0x1d1994('0x38')]),_0x256dfb[_0x1d1994('0x1d')]=_[_0x1d1994('0x0')](_0x256dfb[_0x1d1994('0x41')],_0x256dfb[_0x1d1994('0x38')]),_0x3152c['attributes']=_[_0x1d1994('0x0')](_0x256dfb[_0x1d1994('0x41')],qs['fields'](_0x3fcf25['query']['fields'])),_0x3152c[_0x1d1994('0x2b')]=_0x3152c[_0x1d1994('0x2b')]['length']?_0x3152c[_0x1d1994('0x2b')]:_0x256dfb[_0x1d1994('0x41')],_0x3fcf25['query']['includeAll']&&(_0x3152c[_0x1d1994('0x51')]=[{'all':!![]}]),_0x3152c=_[_0x1d1994('0x1f')]({},_0x3152c,_0x3fcf25[_0x1d1994('0xd')]),db[_0x1d1994('0x5d')][_0x1d1994('0x52')](_0x3152c)[_0x1d1994('0x16')](handleEntityNotFound(_0x569783,null))[_0x1d1994('0x16')](respondWithResult(_0x569783,null))[_0x1d1994('0x18')](handleError(_0x569783,null));},exports[_0x3613e5('0x3b')]=function(_0x610eb6,_0x9b4a08){const _0x290224=_0x3613e5;return db[_0x290224('0x5d')][_0x290224('0x3b')](_0x610eb6[_0x290224('0x6')],{})[_0x290224('0x16')](respondWithResult(_0x9b4a08,0xc9))['catch'](handleError(_0x9b4a08,null));},exports[_0x3613e5('0x1')]=function(_0x260420,_0x52087b){const _0x42fd2e=_0x3613e5;return _0x260420[_0x42fd2e('0x6')]['id']&&delete _0x260420[_0x42fd2e('0x6')]['id'],db[_0x42fd2e('0x5d')][_0x42fd2e('0x52')]({'where':{'id':_0x260420['params']['id']}})[_0x42fd2e('0x16')](handleEntityNotFound(_0x52087b,null))[_0x42fd2e('0x16')](saveUpdates(_0x260420[_0x42fd2e('0x6')],null))[_0x42fd2e('0x16')](respondWithResult(_0x52087b,null))['catch'](handleError(_0x52087b,null));},exports[_0x3613e5('0x42')]=function(_0x21db3c,_0x18888e){const _0x10a1f0=_0x3613e5;return db[_0x10a1f0('0x5d')][_0x10a1f0('0x52')]({'where':{'id':_0x21db3c[_0x10a1f0('0x27')]['id']}})[_0x10a1f0('0x16')](handleEntityNotFound(_0x18888e,null))[_0x10a1f0('0x16')](removeEntity(_0x18888e,null))[_0x10a1f0('0x18')](handleError(_0x18888e,null));},exports['describe']=function(_0x5ad50a,_0x1e85d7){const _0x4cb452=_0x3613e5;return db[_0x4cb452('0x5d')]['describe']()['then'](respondWithResult(_0x1e85d7,null))[_0x4cb452('0x18')](handleError(_0x1e85d7,null));},exports[_0x3613e5('0x26')]=function(_0x476366,_0x55518c){const _0x2f0cc0=_0x3613e5,_0x559710={'channel':'whatsapp'};return _0x476366[_0x2f0cc0('0x6')]['id']&&delete _0x476366[_0x2f0cc0('0x6')]['id'],_0x476366[_0x2f0cc0('0x6')][_0x2f0cc0('0x37')]=!![],_0x476366['body']['readAt']=moment()[_0x2f0cc0('0x5e')](_0x2f0cc0('0x53')),_0x476366[_0x2f0cc0('0x6')]['UserId']=_0x476366[_0x2f0cc0('0x6')][_0x2f0cc0('0x1b')]||_0x476366['user']['id'],db['WhatsappMessage'][_0x2f0cc0('0x52')]({'where':{'id':_0x476366['params']['id'],'UserId':null},'include':[{'model':db[_0x2f0cc0('0x19')],'as':'Contact'}]})[_0x2f0cc0('0x16')](handleEntityNotFound(_0x55518c,null))[_0x2f0cc0('0x16')](saveUpdates(_0x476366[_0x2f0cc0('0x6')],null))[_0x2f0cc0('0x16')](function(_0x1ce93e){const _0x17c1bc=_0x2f0cc0;if(_0x1ce93e)return _0x559710[_0x17c1bc('0x17')]=_0x1ce93e['get']({'plain':!![]}),db[_0x17c1bc('0x12')][_0x17c1bc('0x52')]({'where':{'id':_0x1ce93e[_0x17c1bc('0x57')]}});return null;})[_0x2f0cc0('0x16')](handleEntityNotFound(_0x55518c,null))[_0x2f0cc0('0x16')](function(_0x2bb87c){const _0x149933=_0x2f0cc0;if(_0x2bb87c)return _0x2bb87c[_0x149933('0x1')]({'UserId':_0x476366[_0x149933('0x6')][_0x149933('0x1b')],'read1stAt':_[_0x149933('0x59')](_0x2bb87c[_0x149933('0x4e')])?moment()['format']('YYYY-MM-DD\x20HH:mm:ss'):undefined});return null;})['then'](function(_0x5aea9b){const _0x50ae99=_0x2f0cc0;if(_0x5aea9b)return _0x559710[_0x50ae99('0x10')]=_0x5aea9b[_0x50ae99('0x5c')]({'plain':!![]}),interaction_log[_0x50ae99('0x32')](_0x50ae99('0x3c'),_0x476366[_0x50ae99('0x5b')]['id'],_0x476366[_0x50ae99('0x5b')][_0x50ae99('0x5')],_0x476366[_0x50ae99('0x5b')][_0x50ae99('0x1a')],_0x559710[_0x50ae99('0x10')]['id'],_0x476366[_0x50ae99('0x6')]?JSON[_0x50ae99('0x46')](_0x476366[_0x50ae99('0x6')]):_0x50ae99('0xc')),respondWithRpcPromise(_0x50ae99('0x50'),'acceptMessage',_0x559710);return null;})[_0x2f0cc0('0x16')](function(_0x4d10b3){const _0x454ca2=_0x2f0cc0;if(_0x4d10b3){if(_0x476366[_0x454ca2('0x6')]['manual'])return _0x559710[_0x454ca2('0x17')]['interface']=util[_0x454ca2('0x5e')](_0x454ca2('0x5a'),_0x476366['user'][_0x454ca2('0x5')]),_0x559710[_0x454ca2('0x17')]['channel']=_0x559710['channel'],_0x559710[_0x454ca2('0x17')]['event']='accept',respondWithRpcPromise(_0x454ca2('0x4b'),'EventManager',{'event':_0x454ca2('0x1c'),'message':_0x559710[_0x454ca2('0x17')]},client9002)['then'](function(){return _0x559710;});return _0x559710;}return null;})['then'](respondWithResult(_0x55518c,null))['catch'](handleError(_0x55518c,null));},exports[_0x3613e5('0xf')]=function(_0x2c0b02,_0x45c7dc){const _0x5dcda4=_0x3613e5,_0x5f2100={'agent':{},'channel':_0x5dcda4('0x56')};return _0x2c0b02[_0x5dcda4('0x6')]['id']&&delete _0x2c0b02['body']['id'],_0x2c0b02['body'][_0x5dcda4('0x1b')]=_0x2c0b02[_0x5dcda4('0x6')][_0x5dcda4('0x1b')]||_0x2c0b02[_0x5dcda4('0x5b')]['id'],_0x5f2100[_0x5dcda4('0x49')]['id']=_0x2c0b02[_0x5dcda4('0x6')]['UserId'],db[_0x5dcda4('0x5d')]['findOne']({'where':{'id':_0x2c0b02[_0x5dcda4('0x27')]['id'],'UserId':null}})[_0x5dcda4('0x16')](handleEntityNotFound(_0x45c7dc,null))[_0x5dcda4('0x16')](function(_0x273efa){const _0x2566f5=_0x5dcda4;if(_0x273efa)return _0x5f2100[_0x2566f5('0x17')]=_0x273efa['get']({'plain':!![]}),db[_0x2566f5('0x12')][_0x2566f5('0x52')]({'where':{'id':_0x273efa['WhatsappInteractionId']}});return null;})[_0x5dcda4('0x16')](handleEntityNotFound(_0x45c7dc,null))[_0x5dcda4('0x16')](function(_0x132be8){const _0x2cb5d7=_0x5dcda4;if(_0x132be8)return _0x5f2100['interaction']=_0x132be8[_0x2cb5d7('0x5c')]({'plain':!![]}),interaction_log[_0x2cb5d7('0x32')]('[WHATSAPPMESSAGE:REJECT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s',_0x2c0b02['user']['id'],_0x2c0b02[_0x2cb5d7('0x5b')][_0x2cb5d7('0x5')],_0x2c0b02[_0x2cb5d7('0x5b')][_0x2cb5d7('0x1a')],_0x5f2100[_0x2cb5d7('0x10')]['id'],_0x2c0b02['body']?JSON['stringify'](_0x2c0b02[_0x2cb5d7('0x6')]):_0x2cb5d7('0xc')),respondWithRpcPromise(_0x2cb5d7('0x2'),'rejectMessage',_0x5f2100);return null;})[_0x5dcda4('0x16')](function(_0x46b31e){const _0x50b3d4=_0x5dcda4;if(_0x46b31e)return _0x46b31e['message'][_0x50b3d4('0x33')]=util[_0x50b3d4('0x5e')]('SIP/%s',_0x2c0b02[_0x50b3d4('0x5b')]['name']),_0x46b31e[_0x50b3d4('0x17')]['channel']=_0x5f2100[_0x50b3d4('0x2d')],_0x46b31e['message'][_0x50b3d4('0x4')]=_0x50b3d4('0xf'),respondWithRpcPromise(_0x50b3d4('0x4b'),_0x50b3d4('0x4b'),{'event':_0x50b3d4('0xa'),'message':_0x46b31e[_0x50b3d4('0x17')]},client9002),_0x5f2100;return null;})[_0x5dcda4('0x16')](respondWithResult(_0x45c7dc,null))[_0x5dcda4('0x18')](handleError(_0x45c7dc,null));},exports[_0x3613e5('0x23')]=function(_0xbafac2,_0x5dfffd){const _0x13d851=_0x3613e5;_0xbafac2[_0x13d851('0x6')]['id']&&delete _0xbafac2[_0x13d851('0x6')]['id'];let _0x3421bf;return db[_0x13d851('0x5d')]['findOne']({'where':{'id':_0xbafac2[_0x13d851('0x27')]['id']}})[_0x13d851('0x16')](handleEntityNotFound(_0x5dfffd,null))[_0x13d851('0x16')](function(_0x8c59f){const _0x565f6e=_0x13d851;if(_0x8c59f)return _0x3421bf=_0x8c59f,db['WhatsappAccount'][_0x565f6e('0x52')]({'where':{'id':_0x8c59f[_0x565f6e('0xb')]}});})[_0x13d851('0x16')](handleEntityNotFound(_0x5dfffd,null))[_0x13d851('0x16')](function(_0x5ef28b){const _0x337977=_0x13d851;if(_0x5ef28b){logger[_0x337977('0x36')](_0x337977('0x4a'),_0x337977('0x23'),'received\x20delivery\x20report\x20from',_0x5ef28b['type'],util['inspect'](_0xbafac2['body'],{'showHidden':![],'depth':null}));switch(_0x5ef28b[_0x337977('0x9')]){case _0x337977('0x20'):if(_0xbafac2[_0x337977('0x6')][_0x337977('0x29')]&&_0xbafac2[_0x337977('0x6')][_0x337977('0x29')]===_0x3421bf[_0x337977('0x47')]&&_0xbafac2[_0x337977('0x6')][_0x337977('0x44')]&&_0xbafac2[_0x337977('0x6')][_0x337977('0x44')]===_0x337977('0x37'))return _0x3421bf[_0x337977('0x1')]({'read':!![]});else logger[_0x337977('0x15')]('WhatsappAccount,\x20%s,\x20%s,\x20%s',_0x337977('0x23'),_0x337977('0x20'),util[_0x337977('0x48')](_0xbafac2[_0x337977('0x6')],{'showHidden':![],'depth':null}));break;}return _0x3421bf;}})[_0x13d851('0x16')](respondWithResult(_0x5dfffd,null))[_0x13d851('0x18')](handleError(_0x5dfffd,null));}; \ No newline at end of file +const a959_0x426d=['../../components/parsers/qs','read1stAt','lodash','Content-Range','WhatsappInteractionId','../../rediscache','WhatsppMessage,\x20%s,\x20%s,\x20%s','twilio','event','includeAll','WhatsappMessage','filter','include','query','index','MessageSid','findOne','whatsapp-interactions','manual','EventManager','[WHATSAPPMESSAGE:REJECT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s','MessageStatus','options','rejectmessage','RejectMessage','attributes','type','offset','acceptMessage','WhatsappAccount,\x20%s,\x20%s,\x20%s','pick','key','SIP/%s','format','update','api','code','received\x20delivery\x20report\x20from','WhatsappAccount','[WHATSAPPMESSAGE:ACCEPT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s','catch','send','body','info','WhatsappMessage,\x20%s,\x20%s,\x20%s','params','sequelize','like','request\x20sent','isNil','role','channel','interaction','json','keys','get','limit','fields','sort','order','stringify','name','request','inspect','register','describe','moment','status','null','read','merge','error','length','accept','debug','model','VIRTUAL','intersection','agent','http','map','reject','client','destroy','rawAttributes','message','sendStatus','create','interface','../../mysqldb','then','./whatsappMessage.socket','AcceptMessage','UserId','YYYY-MM-DD\x20HH:mm:ss','where','count','WhatsappInteraction','util','set','user','WhatsappMessage,\x20%s,\x20%s','messageId'];(function(_0x50994c,_0x272ae6){const _0x426d39=function(_0x5ca187){while(--_0x5ca187){_0x50994c['push'](_0x50994c['shift']());}};_0x426d39(++_0x272ae6);}(a959_0x426d,0xb4));const a959_0x5ca1=function(_0x50994c,_0x272ae6){_0x50994c=_0x50994c-0x1a4;let _0x426d39=a959_0x426d[_0x50994c];return _0x426d39;};const a959_0x6eadf2=a959_0x5ca1;'use strict';const moment=require(a959_0x6eadf2(0x200)),util=require(a959_0x6eadf2(0x1b9)),_=require(a959_0x6eadf2(0x1c0)),qs=require(a959_0x6eadf2(0x1be)),logger=require('../../config/logger')(a959_0x6eadf2(0x1e1)),{getSocket}=require(a959_0x6eadf2(0x1c3)),socket=getSocket(),interaction_log=require('../../config/logger')(a959_0x6eadf2(0x1cf)),{db}=require(a959_0x6eadf2(0x1b0)),{Op}=require(a959_0x6eadf2(0x1ec));require(a959_0x6eadf2(0x1b2))[a959_0x6eadf2(0x1fe)](socket);const jayson=require('jayson/promise'),client=jayson[a959_0x6eadf2(0x1a9)]['http']({'port':0x232c}),client9002=jayson[a959_0x6eadf2(0x1a9)][a959_0x6eadf2(0x1a6)]({'port':0x232a});function respondWithRpcPromise(_0x2c45a6,_0x29519e,_0x336989,_0x1057c3){return new Promise(function(_0x48d84e,_0xeae6f2){const _0x5a64b9=a959_0x5ca1,_0x539dc8=_0x1057c3||client;return _0x539dc8[_0x5a64b9(0x1fc)](_0x2c45a6,_0x336989)[_0x5a64b9(0x1b1)](function(_0x454490){const _0x105a5d=_0x5a64b9;logger[_0x105a5d(0x1e9)](_0x105a5d(0x1bc),_0x29519e,_0x105a5d(0x1ee)),logger[_0x105a5d(0x208)](_0x105a5d(0x1ea),_0x29519e,'request\x20sent',JSON[_0x105a5d(0x1fa)](_0x454490));if(_0x454490['error']){if(_0x454490['error'][_0x105a5d(0x1e2)]===0x1f4)return logger['error'](_0x105a5d(0x1bc),_0x29519e,_0x454490[_0x105a5d(0x205)]['message']),_0xeae6f2(_0x454490[_0x105a5d(0x205)]['message']);return logger[_0x105a5d(0x205)]('WhatsappMessage,\x20%s,\x20%s',_0x29519e,_0x454490[_0x105a5d(0x205)][_0x105a5d(0x1ac)]),_0x48d84e(_0x454490['error'][_0x105a5d(0x1ac)]);}else logger['info'](_0x105a5d(0x1bc),_0x29519e,_0x105a5d(0x1ee)),_0x48d84e(_0x454490['result'][_0x105a5d(0x1ac)]);})[_0x5a64b9(0x1e6)](function(_0x3acf75){const _0x21f204=_0x5a64b9;logger[_0x21f204(0x205)](_0x21f204(0x1bc),_0x29519e,_0x3acf75),_0xeae6f2(_0x3acf75);});});}function respondWithResult(_0x415905,_0x23272c){return _0x23272c=_0x23272c||0xc8,function(_0x5b4853){const _0x821cad=a959_0x5ca1;if(_0x5b4853)return _0x415905[_0x821cad(0x201)](_0x23272c)[_0x821cad(0x1f3)](_0x5b4853);};}function respondWithFilteredResult(_0x32fbf9,_0x5d677c){return function(_0x412521){const _0x994870=a959_0x5ca1;if(_0x412521){const _0x47793c=_0x412521[_0x994870(0x1b7)],_0x45e3c2=_0x5d677c[_0x994870(0x1d9)];let _0x4ebe4a=_0x5d677c['offset']+_0x5d677c[_0x994870(0x1f6)],_0x214f79;return _0x4ebe4a>=_0x47793c?(_0x4ebe4a=_0x47793c,_0x214f79=0xc8):_0x214f79=0xce,_0x32fbf9[_0x994870(0x201)](_0x214f79),_0x32fbf9[_0x994870(0x1ba)](_0x994870(0x1c1),_0x45e3c2+'-'+_0x4ebe4a+'/'+_0x47793c)[_0x994870(0x1f3)](_0x412521);}return null;};}function saveUpdates(_0x33313e){return function(_0x2747c4){const _0x402d38=a959_0x5ca1;if(_0x2747c4)return _0x2747c4[_0x402d38(0x1e0)](_0x33313e)[_0x402d38(0x1b1)](function(_0x3b89b2){return _0x3b89b2;});return null;};}function removeEntity(_0x5e3aa8){return function(_0x34f9a){const _0x5543a1=a959_0x5ca1;if(_0x34f9a)return _0x34f9a[_0x5543a1(0x1aa)]()[_0x5543a1(0x1b1)](function(){_0x5e3aa8['status'](0xcc)['end']();});};}function handleEntityNotFound(_0x5d57b5){return function(_0x2b0d08){const _0x5f3256=a959_0x5ca1;return!_0x2b0d08&&_0x5d57b5[_0x5f3256(0x1ad)](0x194),_0x2b0d08;};}function handleError(_0x234004,_0x5667ce){return _0x5667ce=_0x5667ce||0x1f4,function(_0x59beaf){const _0x3afdcb=a959_0x5ca1;logger[_0x3afdcb(0x205)](_0x59beaf['stack']),_0x59beaf[_0x3afdcb(0x1fb)]&&delete _0x59beaf[_0x3afdcb(0x1fb)],_0x234004['status'](_0x5667ce)[_0x3afdcb(0x1e7)](_0x59beaf);};}exports[a959_0x6eadf2(0x1cc)]=function(_0x3d2daa,_0x40d24f){const _0x4e937d=a959_0x6eadf2;let _0x3c0af9={};const _0x13c5cd={},_0xbb3abe={'count':0x0,'rows':[]},_0x47162d=_[_0x4e937d(0x1a7)](db[_0x4e937d(0x1c8)][_0x4e937d(0x1ab)],function(_0x232304){const _0x494fe2=_0x4e937d;return{'name':_0x232304['fieldName'],'type':_0x232304[_0x494fe2(0x1d8)][_0x494fe2(0x1dd)]};});_0x13c5cd[_0x4e937d(0x209)]=_['map'](_0x47162d,'name'),_0x13c5cd[_0x4e937d(0x1cb)]=_['keys'](_0x3d2daa[_0x4e937d(0x1cb)]),_0x13c5cd['filters']=_[_0x4e937d(0x1a4)](_0x13c5cd[_0x4e937d(0x209)],_0x13c5cd[_0x4e937d(0x1cb)]),_0x3c0af9[_0x4e937d(0x1d7)]=_[_0x4e937d(0x1a4)](_0x13c5cd['model'],qs[_0x4e937d(0x1f7)](_0x3d2daa[_0x4e937d(0x1cb)][_0x4e937d(0x1f7)])),_0x3c0af9['attributes']=_0x3c0af9[_0x4e937d(0x1d7)][_0x4e937d(0x206)]?_0x3c0af9[_0x4e937d(0x1d7)]:_0x13c5cd[_0x4e937d(0x209)];typeof _0x3d2daa['query']['nolimit']==='undefined'&&(_0x3c0af9[_0x4e937d(0x1f6)]=qs['limit'](_0x3d2daa[_0x4e937d(0x1cb)][_0x4e937d(0x1f6)]),_0x3c0af9[_0x4e937d(0x1d9)]=qs[_0x4e937d(0x1d9)](_0x3d2daa[_0x4e937d(0x1cb)][_0x4e937d(0x1d9)]));_0x3c0af9[_0x4e937d(0x1f9)]=qs[_0x4e937d(0x1f8)](_0x3d2daa[_0x4e937d(0x1cb)][_0x4e937d(0x1f8)]),_0x3c0af9['where']=qs['filters'](_[_0x4e937d(0x1dc)](_0x3d2daa[_0x4e937d(0x1cb)],_0x13c5cd['filters']),_0x47162d);_0x3d2daa[_0x4e937d(0x1cb)]['filter']&&(_0x3c0af9[_0x4e937d(0x1b6)]=_['merge'](_0x3c0af9[_0x4e937d(0x1b6)],{[Op['or']]:_['map'](_0x47162d,function(_0x1455e0){const _0x32d69a=_0x4e937d;if(_0x1455e0[_0x32d69a(0x1d8)]!==_0x32d69a(0x20a)){const _0x4454e9={};return _0x4454e9[_0x1455e0[_0x32d69a(0x1fb)]]={[Op[_0x32d69a(0x1ed)]]:'%'+_0x3d2daa[_0x32d69a(0x1cb)][_0x32d69a(0x1c9)]+'%'},_0x4454e9;}})}));_0x3c0af9=_[_0x4e937d(0x204)]({},_0x3c0af9,_0x3d2daa[_0x4e937d(0x1d4)]);const _0x45f3d3={'where':_0x3c0af9[_0x4e937d(0x1b6)]};return db[_0x4e937d(0x1c8)]['count'](_0x45f3d3)[_0x4e937d(0x1b1)](function(_0x4f68ac){const _0xe662b=_0x4e937d;return _0xbb3abe[_0xe662b(0x1b7)]=_0x4f68ac,_0x3d2daa['query']['includeAll']&&(_0x3c0af9[_0xe662b(0x1ca)]=[{'all':!![]}]),db[_0xe662b(0x1c8)]['findAll'](_0x3c0af9);})['then'](function(_0x4b9fe1){return _0xbb3abe['rows']=_0x4b9fe1,_0xbb3abe;})[_0x4e937d(0x1b1)](respondWithFilteredResult(_0x40d24f,_0x3c0af9))[_0x4e937d(0x1e6)](handleError(_0x40d24f,null));},exports['show']=function(_0x574307,_0x158b6b){const _0x1e83c9=a959_0x6eadf2;let _0x380a9f={'raw':!![],'where':{'id':_0x574307[_0x1e83c9(0x1eb)]['id']}};const _0x4320ad={};return _0x4320ad[_0x1e83c9(0x209)]=_[_0x1e83c9(0x1f4)](db[_0x1e83c9(0x1c8)][_0x1e83c9(0x1ab)]),_0x4320ad[_0x1e83c9(0x1cb)]=_[_0x1e83c9(0x1f4)](_0x574307[_0x1e83c9(0x1cb)]),_0x4320ad['filters']=_[_0x1e83c9(0x1a4)](_0x4320ad[_0x1e83c9(0x209)],_0x4320ad[_0x1e83c9(0x1cb)]),_0x380a9f[_0x1e83c9(0x1d7)]=_[_0x1e83c9(0x1a4)](_0x4320ad['model'],qs[_0x1e83c9(0x1f7)](_0x574307[_0x1e83c9(0x1cb)][_0x1e83c9(0x1f7)])),_0x380a9f[_0x1e83c9(0x1d7)]=_0x380a9f[_0x1e83c9(0x1d7)][_0x1e83c9(0x206)]?_0x380a9f[_0x1e83c9(0x1d7)]:_0x4320ad['model'],_0x574307[_0x1e83c9(0x1cb)][_0x1e83c9(0x1c7)]&&(_0x380a9f[_0x1e83c9(0x1ca)]=[{'all':!![]}]),_0x380a9f=_[_0x1e83c9(0x204)]({},_0x380a9f,_0x574307['options']),db[_0x1e83c9(0x1c8)][_0x1e83c9(0x1ce)](_0x380a9f)[_0x1e83c9(0x1b1)](handleEntityNotFound(_0x158b6b,null))[_0x1e83c9(0x1b1)](respondWithResult(_0x158b6b,null))[_0x1e83c9(0x1e6)](handleError(_0x158b6b,null));},exports[a959_0x6eadf2(0x1ae)]=function(_0x534f0c,_0x297663){const _0x1f08f1=a959_0x6eadf2;return db['WhatsappMessage'][_0x1f08f1(0x1ae)](_0x534f0c[_0x1f08f1(0x1e8)],{})[_0x1f08f1(0x1b1)](respondWithResult(_0x297663,0xc9))['catch'](handleError(_0x297663,null));},exports[a959_0x6eadf2(0x1e0)]=function(_0x428a33,_0x10e5d3){const _0x48ed9d=a959_0x6eadf2;return _0x428a33[_0x48ed9d(0x1e8)]['id']&&delete _0x428a33[_0x48ed9d(0x1e8)]['id'],db['WhatsappMessage'][_0x48ed9d(0x1ce)]({'where':{'id':_0x428a33[_0x48ed9d(0x1eb)]['id']}})[_0x48ed9d(0x1b1)](handleEntityNotFound(_0x10e5d3,null))[_0x48ed9d(0x1b1)](saveUpdates(_0x428a33[_0x48ed9d(0x1e8)],null))[_0x48ed9d(0x1b1)](respondWithResult(_0x10e5d3,null))[_0x48ed9d(0x1e6)](handleError(_0x10e5d3,null));},exports[a959_0x6eadf2(0x1aa)]=function(_0x1cf598,_0x32ae11){const _0x2f297d=a959_0x6eadf2;return db[_0x2f297d(0x1c8)]['findOne']({'where':{'id':_0x1cf598['params']['id']}})[_0x2f297d(0x1b1)](handleEntityNotFound(_0x32ae11,null))[_0x2f297d(0x1b1)](removeEntity(_0x32ae11,null))['catch'](handleError(_0x32ae11,null));},exports['describe']=function(_0x44c784,_0x50880a){const _0x252a54=a959_0x6eadf2;return db['WhatsappMessage'][_0x252a54(0x1ff)]()[_0x252a54(0x1b1)](respondWithResult(_0x50880a,null))[_0x252a54(0x1e6)](handleError(_0x50880a,null));},exports[a959_0x6eadf2(0x207)]=function(_0x962d0c,_0x330358){const _0x48e31a=a959_0x6eadf2,_0x4e5a54={'channel':'whatsapp'};return _0x962d0c['body']['id']&&delete _0x962d0c[_0x48e31a(0x1e8)]['id'],_0x962d0c[_0x48e31a(0x1e8)]['read']=!![],_0x962d0c[_0x48e31a(0x1e8)]['readAt']=moment()[_0x48e31a(0x1df)](_0x48e31a(0x1b5)),_0x962d0c[_0x48e31a(0x1e8)]['UserId']=_0x962d0c[_0x48e31a(0x1e8)][_0x48e31a(0x1b4)]||_0x962d0c[_0x48e31a(0x1bb)]['id'],db[_0x48e31a(0x1c8)][_0x48e31a(0x1ce)]({'where':{'id':_0x962d0c[_0x48e31a(0x1eb)]['id'],'UserId':null},'include':[{'model':db['CmContact'],'as':'Contact'}]})[_0x48e31a(0x1b1)](handleEntityNotFound(_0x330358,null))['then'](saveUpdates(_0x962d0c[_0x48e31a(0x1e8)],null))['then'](function(_0x415a1a){const _0x1c5360=_0x48e31a;if(_0x415a1a)return _0x4e5a54[_0x1c5360(0x1ac)]=_0x415a1a[_0x1c5360(0x1f5)]({'plain':!![]}),db['WhatsappInteraction'][_0x1c5360(0x1ce)]({'where':{'id':_0x415a1a['WhatsappInteractionId']}});return null;})[_0x48e31a(0x1b1)](handleEntityNotFound(_0x330358,null))['then'](function(_0x28cfb2){const _0xfc9d42=_0x48e31a;if(_0x28cfb2)return _0x28cfb2['update']({'UserId':_0x962d0c[_0xfc9d42(0x1e8)][_0xfc9d42(0x1b4)],'read1stAt':_[_0xfc9d42(0x1ef)](_0x28cfb2[_0xfc9d42(0x1bf)])?moment()[_0xfc9d42(0x1df)](_0xfc9d42(0x1b5)):undefined});return null;})[_0x48e31a(0x1b1)](function(_0x478901){const _0x5b4c27=_0x48e31a;if(_0x478901)return _0x4e5a54[_0x5b4c27(0x1f2)]=_0x478901['get']({'plain':!![]}),interaction_log[_0x5b4c27(0x1e9)](_0x5b4c27(0x1e5),_0x962d0c['user']['id'],_0x962d0c['user'][_0x5b4c27(0x1fb)],_0x962d0c['user'][_0x5b4c27(0x1f0)],_0x4e5a54['interaction']['id'],_0x962d0c[_0x5b4c27(0x1e8)]?JSON['stringify'](_0x962d0c[_0x5b4c27(0x1e8)]):_0x5b4c27(0x202)),respondWithRpcPromise(_0x5b4c27(0x1b3),_0x5b4c27(0x1da),_0x4e5a54);return null;})[_0x48e31a(0x1b1)](function(_0x1584e2){const _0x4c0ccd=_0x48e31a;if(_0x1584e2){if(_0x962d0c[_0x4c0ccd(0x1e8)][_0x4c0ccd(0x1d0)])return _0x4e5a54['message']['interface']=util[_0x4c0ccd(0x1df)](_0x4c0ccd(0x1de),_0x962d0c['user'][_0x4c0ccd(0x1fb)]),_0x4e5a54[_0x4c0ccd(0x1ac)][_0x4c0ccd(0x1f1)]=_0x4e5a54[_0x4c0ccd(0x1f1)],_0x4e5a54[_0x4c0ccd(0x1ac)]['event']=_0x4c0ccd(0x207),respondWithRpcPromise(_0x4c0ccd(0x1d1),'EventManager',{'event':'acceptmessage','message':_0x4e5a54[_0x4c0ccd(0x1ac)]},client9002)['then'](function(){return _0x4e5a54;});return _0x4e5a54;}return null;})[_0x48e31a(0x1b1)](respondWithResult(_0x330358,null))[_0x48e31a(0x1e6)](handleError(_0x330358,null));},exports[a959_0x6eadf2(0x1a8)]=function(_0xcb39d9,_0x109cfa){const _0x2fab09=a959_0x6eadf2,_0x1e1461={'agent':{},'channel':'whatsapp'};return _0xcb39d9[_0x2fab09(0x1e8)]['id']&&delete _0xcb39d9[_0x2fab09(0x1e8)]['id'],_0xcb39d9[_0x2fab09(0x1e8)][_0x2fab09(0x1b4)]=_0xcb39d9[_0x2fab09(0x1e8)][_0x2fab09(0x1b4)]||_0xcb39d9[_0x2fab09(0x1bb)]['id'],_0x1e1461[_0x2fab09(0x1a5)]['id']=_0xcb39d9['body'][_0x2fab09(0x1b4)],db['WhatsappMessage']['findOne']({'where':{'id':_0xcb39d9[_0x2fab09(0x1eb)]['id'],'UserId':null}})[_0x2fab09(0x1b1)](handleEntityNotFound(_0x109cfa,null))[_0x2fab09(0x1b1)](function(_0x19eed5){const _0xce38ef=_0x2fab09;if(_0x19eed5)return _0x1e1461[_0xce38ef(0x1ac)]=_0x19eed5['get']({'plain':!![]}),db[_0xce38ef(0x1b8)]['findOne']({'where':{'id':_0x19eed5[_0xce38ef(0x1c2)]}});return null;})[_0x2fab09(0x1b1)](handleEntityNotFound(_0x109cfa,null))['then'](function(_0x37d783){const _0x196b68=_0x2fab09;if(_0x37d783)return _0x1e1461[_0x196b68(0x1f2)]=_0x37d783['get']({'plain':!![]}),interaction_log[_0x196b68(0x1e9)](_0x196b68(0x1d2),_0xcb39d9[_0x196b68(0x1bb)]['id'],_0xcb39d9['user'][_0x196b68(0x1fb)],_0xcb39d9[_0x196b68(0x1bb)]['role'],_0x1e1461[_0x196b68(0x1f2)]['id'],_0xcb39d9[_0x196b68(0x1e8)]?JSON['stringify'](_0xcb39d9[_0x196b68(0x1e8)]):_0x196b68(0x202)),respondWithRpcPromise(_0x196b68(0x1d6),'rejectMessage',_0x1e1461);return null;})[_0x2fab09(0x1b1)](function(_0x390291){const _0x12a51d=_0x2fab09;if(_0x390291)return _0x390291[_0x12a51d(0x1ac)][_0x12a51d(0x1af)]=util[_0x12a51d(0x1df)](_0x12a51d(0x1de),_0xcb39d9[_0x12a51d(0x1bb)][_0x12a51d(0x1fb)]),_0x390291[_0x12a51d(0x1ac)][_0x12a51d(0x1f1)]=_0x1e1461[_0x12a51d(0x1f1)],_0x390291[_0x12a51d(0x1ac)][_0x12a51d(0x1c6)]=_0x12a51d(0x1a8),respondWithRpcPromise(_0x12a51d(0x1d1),_0x12a51d(0x1d1),{'event':_0x12a51d(0x1d5),'message':_0x390291['message']},client9002),_0x1e1461;return null;})['then'](respondWithResult(_0x109cfa,null))[_0x2fab09(0x1e6)](handleError(_0x109cfa,null));},exports[a959_0x6eadf2(0x201)]=function(_0x1180b7,_0x13426a){const _0x271466=a959_0x6eadf2;_0x1180b7[_0x271466(0x1e8)]['id']&&delete _0x1180b7[_0x271466(0x1e8)]['id'];let _0x5df684;return db[_0x271466(0x1c8)][_0x271466(0x1ce)]({'where':{'id':_0x1180b7[_0x271466(0x1eb)]['id']}})[_0x271466(0x1b1)](handleEntityNotFound(_0x13426a,null))[_0x271466(0x1b1)](function(_0x42c5cd){const _0x5138da=_0x271466;if(_0x42c5cd)return _0x5df684=_0x42c5cd,db[_0x5138da(0x1e4)][_0x5138da(0x1ce)]({'where':{'id':_0x42c5cd['WhatsappAccountId']}});})[_0x271466(0x1b1)](handleEntityNotFound(_0x13426a,null))['then'](function(_0x2fb225){const _0x36c10b=_0x271466;if(_0x2fb225){logger[_0x36c10b(0x208)](_0x36c10b(0x1c4),'status',_0x36c10b(0x1e3),_0x2fb225[_0x36c10b(0x1d8)],util[_0x36c10b(0x1fd)](_0x1180b7[_0x36c10b(0x1e8)],{'showHidden':![],'depth':null}));switch(_0x2fb225['type']){case _0x36c10b(0x1c5):if(_0x1180b7['body'][_0x36c10b(0x1cd)]&&_0x1180b7[_0x36c10b(0x1e8)][_0x36c10b(0x1cd)]===_0x5df684[_0x36c10b(0x1bd)]&&_0x1180b7[_0x36c10b(0x1e8)]['MessageStatus']&&_0x1180b7[_0x36c10b(0x1e8)][_0x36c10b(0x1d3)]===_0x36c10b(0x203))return _0x5df684[_0x36c10b(0x1e0)]({'read':!![]});else logger[_0x36c10b(0x205)](_0x36c10b(0x1db),_0x36c10b(0x201),_0x36c10b(0x1c5),util[_0x36c10b(0x1fd)](_0x1180b7['body'],{'showHidden':![],'depth':null}));break;}return _0x5df684;}})[_0x271466(0x1b1)](respondWithResult(_0x13426a,null))[_0x271466(0x1e6)](handleError(_0x13426a,null));}; \ No newline at end of file diff --git a/server/api/whatsappMessage/whatsappMessage.events.js b/server/api/whatsappMessage/whatsappMessage.events.js index 923357c..a6ea474 100644 --- a/server/api/whatsappMessage/whatsappMessage.events.js +++ b/server/api/whatsappMessage/whatsappMessage.events.js @@ -1 +1 @@ -const a802_0x5aed=['events','setMaxListeners','exports','emit','update','addHook','../../mysqldb','WhatsappMessage'];(function(_0x4e72e3,_0x5aedda){const _0x471aca=function(_0x1de3d5){while(--_0x1de3d5){_0x4e72e3['push'](_0x4e72e3['shift']());}};_0x471aca(++_0x5aedda);}(a802_0x5aed,0xd4));const a802_0x471a=function(_0x4e72e3,_0x5aedda){_0x4e72e3=_0x4e72e3-0x0;let _0x471aca=a802_0x5aed[_0x4e72e3];return _0x471aca;};const _0x112d26=a802_0x471a;'use strict';const EventEmitter=require(_0x112d26('0x4')),WhatsappMessage=require(_0x112d26('0x2'))['db'][_0x112d26('0x3')],WhatsappMessageEvents=new EventEmitter();WhatsappMessageEvents[_0x112d26('0x5')](0x0);const events={'afterCreate':'save','afterUpdate':_0x112d26('0x0'),'afterDestroy':'remove'};function emitEvent(_0x1de3d5){return function(_0x11966f){const _0x599d2e=a802_0x471a;WhatsappMessageEvents[_0x599d2e('0x7')](_0x1de3d5+':'+_0x11966f['id'],_0x11966f),WhatsappMessageEvents['emit'](_0x1de3d5,_0x11966f);};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];WhatsappMessage[_0x112d26('0x1')](e,emitEvent(event));}}module[_0x112d26('0x6')]=WhatsappMessageEvents; \ No newline at end of file +const a960_0x336c=['events','../../mysqldb','undefined','emit','setMaxListeners','save','remove','addHook'];(function(_0x4394ab,_0x4b3cc8){const _0x336c0d=function(_0x91b643){while(--_0x91b643){_0x4394ab['push'](_0x4394ab['shift']());}};_0x336c0d(++_0x4b3cc8);}(a960_0x336c,0x16a));const a960_0x91b6=function(_0x4394ab,_0x4b3cc8){_0x4394ab=_0x4394ab-0x135;let _0x336c0d=a960_0x336c[_0x4394ab];return _0x336c0d;};const a960_0x47de2a=a960_0x91b6;'use strict';const EventEmitter=require(a960_0x47de2a(0x13b)),WhatsappMessage=require(a960_0x47de2a(0x13c))['db']['WhatsappMessage'],WhatsappMessageEvents=new EventEmitter();WhatsappMessageEvents[a960_0x47de2a(0x137)](0x0);const events={'afterCreate':a960_0x47de2a(0x138),'afterUpdate':'update','afterDestroy':a960_0x47de2a(0x139)};function emitEvent(_0x38d97e){return function(_0x1c888b){const _0x146d2c=a960_0x91b6;WhatsappMessageEvents[_0x146d2c(0x136)](_0x38d97e+':'+_0x1c888b['id'],_0x1c888b),WhatsappMessageEvents[_0x146d2c(0x136)](_0x38d97e,_0x1c888b);};}for(const e in events){if(typeof events[e]!==a960_0x47de2a(0x135)){const event=events[e];WhatsappMessage[a960_0x47de2a(0x13a)](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 fdfafd1..9562897 100644 --- a/server/api/whatsappMessage/whatsappMessage.model.js +++ b/server/api/whatsappMessage/whatsappMessage.model.js @@ -1 +1 @@ -const a803_0x34e1=['sid','FULLTEXT','lodash','api','util','../../config/logger','catch','twilio','WhatsappMessage,\x20%s,\x20%s,\x20%s','utf8mb4_unicode_ci','WhatsappAccountId','out','Missing\x20parameters:\x20phone,\x20accountSid\x20or\x20authToken','token','accountSid','phone','WhatsappAccount','define','body','afterCreate','exports','models','/api/whatsapp/messages/','then','error','update','findOne','utf8mb4','WhatsappInteraction','authToken','create','/status?token=','whatsapp:','direction','createdAt','get','secret','isNil','./whatsappMessage.attributes','messageId','WhatsappInteractionId','toLowerCase','whatsapp_messages','fti_whatsapp_messages'];(function(_0x367b10,_0x34e127){const _0x2b9df9=function(_0x335eab){while(--_0x335eab){_0x367b10['push'](_0x367b10['shift']());}};_0x2b9df9(++_0x34e127);}(a803_0x34e1,0x1ec));const a803_0x2b9d=function(_0x367b10,_0x34e127){_0x367b10=_0x367b10-0x0;let _0x2b9df9=a803_0x34e1[_0x367b10];return _0x2b9df9;};const _0x2ac227=a803_0x2b9d;'use strict';const _=require(_0x2ac227('0x26')),util=require(_0x2ac227('0x28')),logger=require(_0x2ac227('0x29'))(_0x2ac227('0x27')),attributes=require(_0x2ac227('0x1e'));module[_0x2ac227('0xc')]=function(_0x335eab){const _0x4a0a4d=_0x2ac227,_0x4d2c97=_0x335eab[_0x4a0a4d('0xd')],_0x4ea58c=_0x335eab[_0x4a0a4d('0x9')]('WhatsappMessage',attributes,{'tableName':_0x4a0a4d('0x22'),'paranoid':![],'indexes':[{'name':'messageId','fields':[_0x4a0a4d('0x1f')]},{'name':_0x4a0a4d('0x23'),'fields':[_0x4a0a4d('0xa')],'type':_0x4a0a4d('0x25')}],'timestamps':!![],'hooks':{'afterCreate':function(_0x2e5fc6){const _0x42200a=_0x4a0a4d,_0x24863f=_0x2e5fc6[_0x42200a('0x1b')]({'plain':!![]});(_0x24863f[_0x42200a('0x19')][_0x42200a('0x21')]()==='in'||_0x24863f['direction'][_0x42200a('0x21')]()===_0x42200a('0x3')&&!_0x24863f[_0x42200a('0x1c')]&&!_[_0x42200a('0x1d')](_0x24863f['UserId']))&&_0x4d2c97[_0x42200a('0x14')][_0x42200a('0x12')]({'where':{'id':_0x24863f[_0x42200a('0x20')]}})[_0x42200a('0xf')](function(_0x230328){const _0x43e737=_0x42200a;_0x230328&&_0x230328[_0x43e737('0x11')]({'lastMsgAt':_0x24863f[_0x43e737('0x1a')],'lastMsgDirection':_0x24863f[_0x43e737('0x19')][_0x43e737('0x21')]()});})[_0x42200a('0x2a')](function(_0x10b00f){const _0xe44cee=_0x42200a;console[_0xe44cee('0x10')](_0x10b00f);});if(_0x24863f['direction']==='out'&&!_0x24863f['secret']){let _0x54ce0c;_0x4d2c97[_0x42200a('0x8')][_0x42200a('0x12')]({'where':{'id':_0x24863f[_0x42200a('0x2')]},'raw':!![]})[_0x42200a('0xf')](function(_0x432377){const _0x5f26e7=_0x42200a;_0x54ce0c=_0x432377;if(_0x54ce0c&&_0x54ce0c['type'])switch(_0x54ce0c['type']){case _0x5f26e7('0x2b'):{const _0xc47503=require('twilio');if(_0x54ce0c[_0x5f26e7('0x6')]&&_0x54ce0c[_0x5f26e7('0x15')]&&_0x54ce0c[_0x5f26e7('0x7')]){const _0x2103d=new _0xc47503(_0x54ce0c[_0x5f26e7('0x6')],_0x54ce0c[_0x5f26e7('0x15')]);_0x2103d['messages'][_0x5f26e7('0x16')]({'body':_0x24863f[_0x5f26e7('0xa')],'to':_0x5f26e7('0x18')+_0x24863f[_0x5f26e7('0x7')],'from':_0x5f26e7('0x18')+_0x54ce0c[_0x5f26e7('0x7')],'statusCallback':_0x54ce0c['remote']+_0x5f26e7('0xe')+_0x24863f['id']+_0x5f26e7('0x17')+_0x54ce0c[_0x5f26e7('0x5')]})['then'](function(_0x72112c){const _0x2c1312=_0x5f26e7;if(_0x72112c[_0x2c1312('0x24')])return _0x2e5fc6[_0x2c1312('0x11')]({'messageId':_0x72112c[_0x2c1312('0x24')]});})[_0x5f26e7('0x2a')](function(_0x33f3bc){const _0xf554ac=_0x5f26e7;logger['error'](_0xf554ac('0x0'),_0xf554ac('0xb'),_0xf554ac('0x2b'),util['inspect'](_0x33f3bc,{'showHidden':![],'depth':null}));});}else logger[_0x5f26e7('0x10')](_0x5f26e7('0x0'),_0x5f26e7('0xb'),_0x5f26e7('0x2b'),_0x5f26e7('0x4'));}break;}})['finally'](function(){return null;});}else return null;}},'charset':_0x4a0a4d('0x13'),'collate':_0x4a0a4d('0x1')});return _0x4ea58c;}; \ No newline at end of file +const a961_0x3da2=['./whatsappMessage.options','function','exports','./whatsappMessage.attributes','WhatsappMessage','sequelize'];(function(_0x212e6c,_0x186f12){const _0x3da21a=function(_0x485785){while(--_0x485785){_0x212e6c['push'](_0x212e6c['shift']());}};_0x3da21a(++_0x186f12);}(a961_0x3da2,0x17c));const a961_0x4857=function(_0x212e6c,_0x186f12){_0x212e6c=_0x212e6c-0x1a2;let _0x3da21a=a961_0x3da2[_0x212e6c];return _0x3da21a;};const a961_0xe76ebb=a961_0x4857;'use strict';const {Model}=require(a961_0xe76ebb(0x1a5)),{attributes}=require(a961_0xe76ebb(0x1a3)),{options}=require(a961_0xe76ebb(0x1a6));class WhatsappMessage extends Model{}function init(_0x2523b1,_0x4ff5f2){const _0x977c4b=a961_0xe76ebb,_0x553258=options(_0x2523b1),_0x6c6ff5=typeof _0x4ff5f2===_0x977c4b(0x1a7)?_0x4ff5f2(_0x553258):_0x553258;return WhatsappMessage['init'](attributes,_0x6c6ff5),WhatsappMessage;}module[a961_0xe76ebb(0x1a2)][a961_0xe76ebb(0x1a4)]=WhatsappMessage,module[a961_0xe76ebb(0x1a2)]['init']=init; \ No newline at end of file diff --git a/server/api/whatsappMessage/whatsappMessage.options.js b/server/api/whatsappMessage/whatsappMessage.options.js new file mode 100644 index 0000000..e68a449 --- /dev/null +++ b/server/api/whatsappMessage/whatsappMessage.options.js @@ -0,0 +1 @@ +const a962_0x25b2=['messageId','get','secret','../../config/logger','then','update','toLowerCase','type','out','Missing\x20parameters:\x20phone,\x20accountSid\x20or\x20authToken','/status?token=','whatsapp:','create','WhatsappAccountId','catch','findOne','accountSid','messages','exports','twilio','createdAt','WhatsappMessage,\x20%s,\x20%s,\x20%s','error','body','whatsapp_messages','afterCreate','direction','isNil','authToken','token','lodash','find','fti_whatsapp_messages','sid','/api/whatsapp/messages/','util','inspect','phone','WhatsappInteraction'];(function(_0x3018d0,_0x374cbe){const _0x25b26c=function(_0x4be0b3){while(--_0x4be0b3){_0x3018d0['push'](_0x3018d0['shift']());}};_0x25b26c(++_0x374cbe);}(a962_0x25b2,0x8b));const a962_0x4be0=function(_0x3018d0,_0x374cbe){_0x3018d0=_0x3018d0-0x16e;let _0x25b26c=a962_0x25b2[_0x3018d0];return _0x25b26c;};const a962_0x4df732=a962_0x4be0,util=require(a962_0x4df732(0x17b)),_=require(a962_0x4df732(0x176)),twilio=require(a962_0x4df732(0x192)),logger=require(a962_0x4df732(0x182))('api');function options(_0x4e8df2){const _0x310005=a962_0x4df732;return{'sequelize':_0x4e8df2,'tableName':_0x310005(0x170),'paranoid':![],'indexes':[{'name':'messageId','fields':[_0x310005(0x17f)]},{'name':_0x310005(0x178),'fields':[_0x310005(0x16f)],'type':'FULLTEXT'}],'timestamps':!![],'hooks':{'afterCreate':function(_0x1b9a3c){const _0x28401c=_0x310005,_0x18c3bf=_0x4e8df2['models'],_0x47eac2=_0x1b9a3c[_0x28401c(0x180)]({'plain':!![]});(_0x47eac2[_0x28401c(0x172)]['toLowerCase']()==='in'||_0x47eac2[_0x28401c(0x172)][_0x28401c(0x185)]()==='out'&&!_0x47eac2[_0x28401c(0x181)]&&!_[_0x28401c(0x173)](_0x47eac2['UserId']))&&_0x18c3bf[_0x28401c(0x17e)][_0x28401c(0x18e)]({'where':{'id':_0x47eac2['WhatsappInteractionId']}})[_0x28401c(0x183)](function(_0x29beb5){const _0x2ddf9c=_0x28401c;_0x29beb5&&_0x29beb5['update']({'lastMsgAt':_0x47eac2[_0x2ddf9c(0x193)],'lastMsgDirection':_0x47eac2[_0x2ddf9c(0x172)][_0x2ddf9c(0x185)]()});})[_0x28401c(0x18d)](function(_0x50c3cf){console['error'](_0x50c3cf);});if(_0x47eac2[_0x28401c(0x172)]===_0x28401c(0x187)&&!_0x47eac2[_0x28401c(0x181)]){let _0x22914f;_0x18c3bf['WhatsappAccount'][_0x28401c(0x177)]({'where':{'id':_0x47eac2[_0x28401c(0x18c)]},'raw':!![]})['then'](function(_0xfaf89c){const _0x2520c4=_0x28401c;_0x22914f=_0xfaf89c;if(_0x22914f&&_0x22914f[_0x2520c4(0x186)])switch(_0x22914f['type']){case _0x2520c4(0x192):if(_0x22914f[_0x2520c4(0x18f)]&&_0x22914f['authToken']&&_0x22914f[_0x2520c4(0x17d)]){const _0x5c026e=new twilio(_0x22914f['accountSid'],_0x22914f[_0x2520c4(0x174)]);_0x5c026e[_0x2520c4(0x190)][_0x2520c4(0x18b)]({'body':_0x47eac2[_0x2520c4(0x16f)],'to':_0x2520c4(0x18a)+_0x47eac2[_0x2520c4(0x17d)],'from':'whatsapp:'+_0x22914f[_0x2520c4(0x17d)],'statusCallback':_0x22914f['remote']+_0x2520c4(0x17a)+_0x47eac2['id']+_0x2520c4(0x189)+_0x22914f[_0x2520c4(0x175)]})[_0x2520c4(0x183)](function(_0x6b93a9){const _0x39b115=_0x2520c4;if(_0x6b93a9[_0x39b115(0x179)])return _0x1b9a3c[_0x39b115(0x184)]({'messageId':_0x6b93a9[_0x39b115(0x179)]});})['catch'](function(_0x124f25){const _0x25f493=_0x2520c4;logger[_0x25f493(0x16e)](_0x25f493(0x194),_0x25f493(0x171),_0x25f493(0x192),util[_0x25f493(0x17c)](_0x124f25,{'showHidden':![],'depth':null}));});}else logger[_0x2520c4(0x16e)](_0x2520c4(0x194),'afterCreate','twilio',_0x2520c4(0x188));break;}});}}},'charset':'utf8mb4','collate':'utf8mb4_unicode_ci'};}module[a962_0x4df732(0x191)]['options']=options; \ No newline at end of file diff --git a/server/api/whatsappMessage/whatsappMessage.rpc.js b/server/api/whatsappMessage/whatsappMessage.rpc.js index 4479841..345c12e 100644 --- a/server/api/whatsappMessage/whatsappMessage.rpc.js +++ b/server/api/whatsappMessage/whatsappMessage.rpc.js @@ -1 +1 @@ -const a804_0x310d=['create','then','../../mysqldb','options','raw','message','./whatsappMessage.socket','../../rediscache','rpc','register','CreateWhatsappMessage','stringify','catch','debug','body','error','WhatsappMessage'];(function(_0x58ec35,_0x310dce){const _0x259a2a=function(_0x349d08){while(--_0x349d08){_0x58ec35['push'](_0x58ec35['shift']());}};_0x259a2a(++_0x310dce);}(a804_0x310d,0x121));const a804_0x259a=function(_0x58ec35,_0x310dce){_0x58ec35=_0x58ec35-0x0;let _0x259a2a=a804_0x310d[_0x58ec35];return _0x259a2a;};const _0x629b34=a804_0x259a;'use strict';const db=require(_0x629b34('0x2'))['db'],logger=require('../../config/logger')(_0x629b34('0x8')),{getSocket}=require(_0x629b34('0x7')),socket=getSocket();require(_0x629b34('0x6'))[_0x629b34('0x9')](socket),exports[_0x629b34('0xa')]=function(_0x349d08){const _0x14bde2=this;return new Promise(function(_0x38ebae,_0x55c49c){const _0x1d78d2=a804_0x259a;return db[_0x1d78d2('0x10')][_0x1d78d2('0x0')](_0x349d08[_0x1d78d2('0xe')],{'raw':_0x349d08[_0x1d78d2('0x3')]?_0x349d08[_0x1d78d2('0x3')][_0x1d78d2('0x4')]===undefined?!![]:![]:!![]})[_0x1d78d2('0x1')](function(_0x66975c){const _0x4a287a=_0x1d78d2;logger['info']('CreateWhatsappMessage',_0x349d08),logger[_0x4a287a('0xd')]('CreateWhatsappMessage',_0x349d08,JSON[_0x4a287a('0xb')](_0x66975c)),_0x38ebae(_0x66975c);})[_0x1d78d2('0xc')](function(_0x554439){const _0x29ccbf=_0x1d78d2;logger['error']('CreateWhatsappMessage',_0x554439[_0x29ccbf('0x5')],_0x349d08),_0x55c49c(_0x14bde2[_0x29ccbf('0xf')](0x1f4,_0x554439['message']));});});}; \ No newline at end of file +const a963_0x27f2=['./whatsappMessage.socket','../../mysqldb','body','../../config/logger','options','register','info','debug','CreateWhatsappMessage','catch','error','WhatsappMessage','stringify','create','message'];(function(_0x59f85f,_0x351882){const _0x27f252=function(_0x30ec55){while(--_0x30ec55){_0x59f85f['push'](_0x59f85f['shift']());}};_0x27f252(++_0x351882);}(a963_0x27f2,0xf2));const a963_0x30ec=function(_0x59f85f,_0x351882){_0x59f85f=_0x59f85f-0x1e5;let _0x27f252=a963_0x27f2[_0x59f85f];return _0x27f252;};const a963_0x142ddd=a963_0x30ec;'use strict';const db=require(a963_0x142ddd(0x1f3))['db'],logger=require(a963_0x142ddd(0x1e6))('rpc'),{getSocket}=require('../../rediscache'),socket=getSocket();require(a963_0x142ddd(0x1f2))[a963_0x142ddd(0x1e8)](socket),exports[a963_0x142ddd(0x1eb)]=function(_0xf54cc6){const _0x924fca=this;return new Promise(function(_0x223f6b,_0x48dc7c){const _0x37d241=a963_0x30ec;return db[_0x37d241(0x1ee)][_0x37d241(0x1f0)](_0xf54cc6[_0x37d241(0x1e5)],{'raw':_0xf54cc6[_0x37d241(0x1e7)]?_0xf54cc6[_0x37d241(0x1e7)]['raw']===undefined?!![]:![]:!![]})['then'](function(_0x58315d){const _0x3cb0b4=_0x37d241;logger[_0x3cb0b4(0x1e9)](_0x3cb0b4(0x1eb),_0xf54cc6),logger[_0x3cb0b4(0x1ea)]('CreateWhatsappMessage',_0xf54cc6,JSON[_0x3cb0b4(0x1ef)](_0x58315d)),_0x223f6b(_0x58315d);})[_0x37d241(0x1ec)](function(_0x1da4a5){const _0x440e26=_0x37d241;logger['error'](_0x440e26(0x1eb),_0x1da4a5[_0x440e26(0x1f1)],_0xf54cc6),_0x48dc7c(_0x924fca[_0x440e26(0x1ed)](0x1f4,_0x1da4a5['message']));});});}; \ No newline at end of file diff --git a/server/api/whatsappMessage/whatsappMessage.socket.js b/server/api/whatsappMessage/whatsappMessage.socket.js index a14b503..0432262 100644 --- a/server/api/whatsappMessage/whatsappMessage.socket.js +++ b/server/api/whatsappMessage/whatsappMessage.socket.js @@ -1 +1 @@ -const a805_0x4479=['./whatsappMessage.events','whatsappMessage:','emit','save','remove'];(function(_0x118a30,_0x447906){const _0x2220ae=function(_0x5f5345){while(--_0x5f5345){_0x118a30['push'](_0x118a30['shift']());}};_0x2220ae(++_0x447906);}(a805_0x4479,0x182));const a805_0x2220=function(_0x118a30,_0x447906){_0x118a30=_0x118a30-0x0;let _0x2220ae=a805_0x4479[_0x118a30];return _0x2220ae;};const _0x236906=a805_0x2220;'use strict';const WhatsappMessageEvents=require(_0x236906('0x4')),events=[_0x236906('0x2'),_0x236906('0x3'),'update'];function createListener(_0x5f5345,_0x2e190e){return function(_0x4fa8fd){const _0x33c355=a805_0x2220;_0x2e190e[_0x33c355('0x1')](_0x5f5345,_0x4fa8fd);};}exports['register']=function(_0x3d7c41){const _0x58ed6d=_0x236906;for(let _0x44e257=0x0,_0x12e83d=events['length'];_0x44e257<_0x12e83d;_0x44e257++){const _0x40f9ec=events[_0x44e257],_0x5e7540=createListener(_0x58ed6d('0x0')+_0x40f9ec,_0x3d7c41);WhatsappMessageEvents['on'](_0x40f9ec,_0x5e7540);}}; \ No newline at end of file +const a964_0x1b1c=['./whatsappMessage.events','emit','remove','whatsappMessage:'];(function(_0x3d627e,_0x290d0f){const _0x1b1cce=function(_0x53978b){while(--_0x53978b){_0x3d627e['push'](_0x3d627e['shift']());}};_0x1b1cce(++_0x290d0f);}(a964_0x1b1c,0xd2));const a964_0x5397=function(_0x3d627e,_0x290d0f){_0x3d627e=_0x3d627e-0x12f;let _0x1b1cce=a964_0x1b1c[_0x3d627e];return _0x1b1cce;};const a964_0x53561d=a964_0x5397;'use strict';const WhatsappMessageEvents=require(a964_0x53561d(0x131)),events=['save',a964_0x53561d(0x12f),'update'];function createListener(_0x119542,_0xcc50b5){return function(_0x3795a6){const _0x217612=a964_0x5397;_0xcc50b5[_0x217612(0x132)](_0x119542,_0x3795a6);};}exports['register']=function(_0x50b3b8){const _0x54231a=a964_0x53561d;for(let _0x4aa7e8=0x0,_0x4ceb20=events['length'];_0x4aa7e8<_0x4ceb20;_0x4aa7e8++){const _0x510c25=events[_0x4aa7e8],_0xb630d7=createListener(_0x54231a(0x130)+_0x510c25,_0x50b3b8);WhatsappMessageEvents['on'](_0x510c25,_0xb630d7);}}; \ No newline at end of file diff --git a/server/api/whatsappQueue/index.js b/server/api/whatsappQueue/index.js index 9cad8fb..7947350 100644 --- a/server/api/whatsappQueue/index.js +++ b/server/api/whatsappQueue/index.js @@ -1 +1 @@ -const a806_0x43b7=['/describe','get','getAgents','destroy','post','/:id/users','show','exports','isAuthenticated','getTeams','addTeams','index','describe','delete','removeTeams','removeAgents','../../components/auth/service','put','/:id','Router'];(function(_0x230a0d,_0x43b715){const _0x3e0923=function(_0x5a7312){while(--_0x5a7312){_0x230a0d['push'](_0x230a0d['shift']());}};_0x3e0923(++_0x43b715);}(a806_0x43b7,0x10d));const a806_0x3e09=function(_0x230a0d,_0x43b715){_0x230a0d=_0x230a0d-0x0;let _0x3e0923=a806_0x43b7[_0x230a0d];return _0x3e0923;};const _0x51d766=a806_0x3e09;'use strict';const express=require('express'),router=express[_0x51d766('0xa')](),auth=require(_0x51d766('0x7')),controller=require('./whatsappQueue.controller');router['get']('/',auth[_0x51d766('0x13')](),controller[_0x51d766('0x2')]),router[_0x51d766('0xc')](_0x51d766('0xb'),auth[_0x51d766('0x13')](),controller[_0x51d766('0x3')]),router[_0x51d766('0xc')](_0x51d766('0x9'),auth['isAuthenticated'](),controller[_0x51d766('0x11')]),router[_0x51d766('0xc')]('/:id/members',auth[_0x51d766('0x13')](),controller['getMembers']),router['get']('/:id/teams',auth[_0x51d766('0x13')](),controller[_0x51d766('0x0')]),router[_0x51d766('0xc')]('/:id/users',auth[_0x51d766('0x13')](),controller[_0x51d766('0xd')]),router[_0x51d766('0xf')]('/',auth[_0x51d766('0x13')](),controller['create']),router[_0x51d766('0xf')]('/:id/teams',auth[_0x51d766('0x13')](),controller[_0x51d766('0x1')]),router[_0x51d766('0xf')](_0x51d766('0x10'),auth['isAuthenticated'](),controller['addAgents']),router[_0x51d766('0x8')]('/:id',auth['isAuthenticated'](),controller['update']),router[_0x51d766('0x4')](_0x51d766('0x9'),auth[_0x51d766('0x13')](),controller[_0x51d766('0xe')]),router[_0x51d766('0x4')]('/:id/teams',auth['isAuthenticated'](),controller[_0x51d766('0x5')]),router[_0x51d766('0x4')](_0x51d766('0x10'),auth[_0x51d766('0x13')](),controller[_0x51d766('0x6')]),module[_0x51d766('0x12')]=router; \ No newline at end of file +const a965_0x2686=['addTeams','delete','get','removeAgents','show','describe','getAgents','put','express','Router','/:id/members','update','getMembers','/:id/teams','isAuthenticated','/describe','removeTeams','destroy','/:id','post','/:id/users','exports','create'];(function(_0x1072e9,_0x1ae897){const _0x268601=function(_0x41791a){while(--_0x41791a){_0x1072e9['push'](_0x1072e9['shift']());}};_0x268601(++_0x1ae897);}(a965_0x2686,0xff));const a965_0x4179=function(_0x1072e9,_0x1ae897){_0x1072e9=_0x1072e9-0x14c;let _0x268601=a965_0x2686[_0x1072e9];return _0x268601;};const a965_0x40c599=a965_0x4179;'use strict';const express=require(a965_0x40c599(0x152)),router=express[a965_0x40c599(0x153)](),auth=require('../../components/auth/service'),controller=require('./whatsappQueue.controller');router[a965_0x40c599(0x14c)]('/',auth[a965_0x40c599(0x158)](),controller['index']),router[a965_0x40c599(0x14c)](a965_0x40c599(0x159),auth[a965_0x40c599(0x158)](),controller[a965_0x40c599(0x14f)]),router[a965_0x40c599(0x14c)](a965_0x40c599(0x15c),auth[a965_0x40c599(0x158)](),controller[a965_0x40c599(0x14e)]),router[a965_0x40c599(0x14c)](a965_0x40c599(0x154),auth[a965_0x40c599(0x158)](),controller[a965_0x40c599(0x156)]),router[a965_0x40c599(0x14c)](a965_0x40c599(0x157),auth[a965_0x40c599(0x158)](),controller['getTeams']),router[a965_0x40c599(0x14c)](a965_0x40c599(0x15e),auth[a965_0x40c599(0x158)](),controller[a965_0x40c599(0x150)]),router[a965_0x40c599(0x15d)]('/',auth[a965_0x40c599(0x158)](),controller[a965_0x40c599(0x160)]),router[a965_0x40c599(0x15d)]('/:id/teams',auth['isAuthenticated'](),controller[a965_0x40c599(0x161)]),router[a965_0x40c599(0x15d)](a965_0x40c599(0x15e),auth[a965_0x40c599(0x158)](),controller['addAgents']),router[a965_0x40c599(0x151)](a965_0x40c599(0x15c),auth[a965_0x40c599(0x158)](),controller[a965_0x40c599(0x155)]),router[a965_0x40c599(0x162)](a965_0x40c599(0x15c),auth[a965_0x40c599(0x158)](),controller[a965_0x40c599(0x15b)]),router[a965_0x40c599(0x162)](a965_0x40c599(0x157),auth['isAuthenticated'](),controller[a965_0x40c599(0x15a)]),router[a965_0x40c599(0x162)]('/:id/users',auth[a965_0x40c599(0x158)](),controller[a965_0x40c599(0x14d)]),module[a965_0x40c599(0x15f)]=router; \ No newline at end of file diff --git a/server/api/whatsappQueue/whatsappQueue.attributes.js b/server/api/whatsappQueue/whatsappQueue.attributes.js index 99a36fd..e53818d 100644 --- a/server/api/whatsappQueue/whatsappQueue.attributes.js +++ b/server/api/whatsappQueue/whatsappQueue.attributes.js @@ -1 +1 @@ -const a807_0x49eb=['roundrobin','STRING','rrmemory','sequelize'];(function(_0x4c10c8,_0x49eba7){const _0x2de0a3=function(_0x276c23){while(--_0x276c23){_0x4c10c8['push'](_0x4c10c8['shift']());}};_0x2de0a3(++_0x49eba7);}(a807_0x49eb,0x17e));const a807_0x2de0=function(_0x4c10c8,_0x49eba7){_0x4c10c8=_0x4c10c8-0x0;let _0x2de0a3=a807_0x49eb[_0x4c10c8];return _0x2de0a3;};const _0x7e8630=a807_0x2de0;'use strict';const Sequelize=require(_0x7e8630('0x1'));module['exports']={'name':{'type':Sequelize[_0x7e8630('0x3')],'unique':'name','validate':{'notEmpty':!![],'is':/^[A-Za-z0-9._]+$/i}},'timeout':{'type':Sequelize['INTEGER'],'validate':{'min':0x1,'max':0x20c49b}},'strategy':{'type':Sequelize['ENUM'](_0x7e8630('0x0'),'beepall',_0x7e8630('0x2'))},'description':{'type':Sequelize[_0x7e8630('0x3')]}}; \ No newline at end of file +const a966_0x53e1=['exports','roundrobin','beepall','STRING','sequelize','name'];(function(_0x2a2426,_0x5743e4){const _0x53e132=function(_0x48882e){while(--_0x48882e){_0x2a2426['push'](_0x2a2426['shift']());}};_0x53e132(++_0x5743e4);}(a966_0x53e1,0x89));const a966_0x4888=function(_0x2a2426,_0x5743e4){_0x2a2426=_0x2a2426-0x11f;let _0x53e132=a966_0x53e1[_0x2a2426];return _0x53e132;};const a966_0x364d50=a966_0x4888;'use strict';const {DataTypes}=require(a966_0x364d50(0x124)),attributes={'name':{'type':DataTypes[a966_0x364d50(0x123)],'unique':a966_0x364d50(0x11f),'validate':{'notEmpty':!![],'is':/^[A-Za-z0-9._]+$/i}},'timeout':{'type':DataTypes['INTEGER'],'validate':{'min':0x1,'max':0x20c49b}},'strategy':{'type':DataTypes['ENUM']('rrmemory',a966_0x364d50(0x122),a966_0x364d50(0x121))},'description':{'type':DataTypes['STRING']}};module[a966_0x364d50(0x120)]['attributes']=attributes; \ No newline at end of file diff --git a/server/api/whatsappQueue/whatsappQueue.controller.js b/server/api/whatsappQueue/whatsappQueue.controller.js index 5552568..ef24ca4 100644 --- a/server/api/whatsappQueue/whatsappQueue.controller.js +++ b/server/api/whatsappQueue/whatsappQueue.controller.js @@ -1 +1 @@ -const a808_0x55d2=['userWhatsappQueue:save','intersection','updatedAt','join','nolimit','sendStatus','UserWhatsappQueue','api','UserProfileResource','error','ids','online','fieldName','%s/%s','include','destroy','toString','../../components/parsers/qs','describe','Team','ut.TeamId\x20=\x20tq.TeamId','createdAt','Agents','tq.TeamId','pick','params','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','from','keys','UserId','update','includeAll','team_has_whatsapp_queues','../../mysqldb','WhatsappQueueId\x20=\x20?','userWhatsappQueue:remove','sort','interface','order','agent','where','addTeams','includes','show','role','query','getAgents','index','value','status','findOrCreate','get','count','whatsappPause','model','emit','getTeams','length','options','all','../../config/logger','merge','offset','every','user_has_teams','findAndCountAll','User','map','SELECT','addAgents','removeTeams','attributes','union','isEmpty','transaction','register','SIP','user','../../rediscache','then','filter','rows','like','push','fields','field','name','UserProfileSection','create','format','./whatsappQueue.socket','WhatsappQueue','compact','removeAgents','Content-Range','end','json','ut.UserId\x20=\x20?','flatMap','set','undefined','filters','sequelize','findOne','body','squel','catch','select','rawAttributes','clone','findAll','limit'];(function(_0x591b02,_0x55d21f){const _0x544f44=function(_0x3b87f1){while(--_0x3b87f1){_0x591b02['push'](_0x591b02['shift']());}};_0x544f44(++_0x55d21f);}(a808_0x55d2,0xf0));const a808_0x544f=function(_0x591b02,_0x55d21f){_0x591b02=_0x591b02-0x0;let _0x544f44=a808_0x55d2[_0x591b02];return _0x544f44;};const _0x1ce8e0=a808_0x544f;'use strict';const util=require('util'),_=require('lodash'),squel=require(_0x1ce8e0('0x59')),qs=require(_0x1ce8e0('0x1')),logger=require(_0x1ce8e0('0x2c'))(_0x1ce8e0('0x67')),{getSocket}=require(_0x1ce8e0('0x3e')),socket=getSocket(),db=require(_0x1ce8e0('0x11'))['db'],{Op,QueryTypes}=require('sequelize');require(_0x1ce8e0('0x4a'))[_0x1ce8e0('0x3b')](socket);function respondWithStatusCode(_0x3b87f1,_0x5c8324){return _0x5c8324=_0x5c8324||0xcc,function(_0xf6637){const _0x28d9b0=a808_0x544f;if(_0xf6637)return _0x3b87f1[_0x28d9b0('0x65')](_0x5c8324);return _0x3b87f1[_0x28d9b0('0x21')](_0x5c8324)[_0x28d9b0('0x4f')]();};}function respondWithResult(_0x2806b2,_0x5bd540){return _0x5bd540=_0x5bd540||0xc8,function(_0x23a713){const _0xece604=a808_0x544f;if(_0x23a713)return _0x2806b2[_0xece604('0x21')](_0x5bd540)[_0xece604('0x50')](_0x23a713);};}function respondWithFilteredResult(_0x405c42,_0x2f5c8e){return function(_0x3e1eeb){const _0x9942b1=a808_0x544f;if(_0x3e1eeb){const _0x418fd0=_0x3e1eeb[_0x9942b1('0x24')],_0x46cd5c=_0x2f5c8e['offset'];let _0x444116=_0x2f5c8e['offset']+_0x2f5c8e[_0x9942b1('0x5f')],_0x5ea68d;return _0x444116>=_0x418fd0?(_0x444116=_0x418fd0,_0x5ea68d=0xc8):_0x5ea68d=0xce,_0x405c42[_0x9942b1('0x21')](_0x5ea68d),_0x405c42[_0x9942b1('0x53')](_0x9942b1('0x4e'),_0x46cd5c+'-'+_0x444116+'/'+_0x418fd0)[_0x9942b1('0x50')](_0x3e1eeb);}return null;};}function saveUpdates(_0x483a6f){return function(_0xf56e3e){const _0x23e8a3=a808_0x544f;if(_0xf56e3e)return _0xf56e3e['update'](_0x483a6f)[_0x23e8a3('0x3f')](function(_0x2a85cb){return _0x2a85cb;});return null;};}function removeEntity(_0xf3bf6e){return function(_0x5aabc7){const _0xf3e972=a808_0x544f;if(_0x5aabc7)return _0x5aabc7[_0xf3e972('0x6f')]()[_0xf3e972('0x3f')](function(){const _0x4e3037=_0xf3e972,_0x29102f=_0x5aabc7[_0x4e3037('0x23')]({'plain':!![]}),_0x25734a='WhatsappQueues';return db['UserProfileResource'][_0x4e3037('0x6f')]({'where':{'type':_0x25734a,'resourceId':_0x29102f['id']}})['then'](function(){return _0x5aabc7;});})[_0xf3e972('0x3f')](function(){const _0x2d394d=_0xf3e972;_0xf3bf6e[_0x2d394d('0x21')](0xcc)[_0x2d394d('0x4f')]();});};}function handleEntityNotFound(_0x194739){return function(_0xf96716){const _0x493306=a808_0x544f;return!_0xf96716&&_0x194739[_0x493306('0x65')](0x194),_0xf96716;};}function handleError(_0x1285ad,_0x13f9fe){return _0x13f9fe=_0x13f9fe||0x1f4,function(_0x153b2b){const _0x425ad7=a808_0x544f;logger[_0x425ad7('0x69')](_0x153b2b['stack']),_0x153b2b[_0x425ad7('0x46')]&&delete _0x153b2b[_0x425ad7('0x46')],_0x1285ad[_0x425ad7('0x21')](_0x13f9fe)['send'](_0x153b2b);};}exports[_0x1ce8e0('0x1f')]=function(_0x11848a,_0x4a667b){const _0x14eeb6=_0x1ce8e0;let _0x3def81={};const _0x3d33c7={},_0x5d1472={'count':0x0,'rows':[]},_0x5e0db0=_[_0x14eeb6('0x33')](db[_0x14eeb6('0x4b')][_0x14eeb6('0x5c')],function(_0x28e0ce){const _0x157b14=_0x14eeb6;return{'name':_0x28e0ce[_0x157b14('0x6c')],'type':_0x28e0ce['type']['key']};});_0x3d33c7['model']=_['map'](_0x5e0db0,'name'),_0x3d33c7[_0x14eeb6('0x1d')]=_[_0x14eeb6('0xc')](_0x11848a['query']),_0x3d33c7[_0x14eeb6('0x55')]=_['intersection'](_0x3d33c7[_0x14eeb6('0x26')],_0x3d33c7['query']),_0x3def81[_0x14eeb6('0x37')]=_[_0x14eeb6('0x61')](_0x3d33c7[_0x14eeb6('0x26')],qs[_0x14eeb6('0x44')](_0x11848a[_0x14eeb6('0x1d')][_0x14eeb6('0x44')])),_0x3def81[_0x14eeb6('0x37')]=_0x3def81[_0x14eeb6('0x37')][_0x14eeb6('0x29')]?_0x3def81[_0x14eeb6('0x37')]:_0x3d33c7[_0x14eeb6('0x26')];typeof _0x11848a[_0x14eeb6('0x1d')]['nolimit']===_0x14eeb6('0x54')&&(_0x3def81['limit']=qs[_0x14eeb6('0x5f')](_0x11848a['query']['limit']),_0x3def81[_0x14eeb6('0x2e')]=qs[_0x14eeb6('0x2e')](_0x11848a['query']['offset']));_0x3def81['order']=qs[_0x14eeb6('0x14')](_0x11848a[_0x14eeb6('0x1d')][_0x14eeb6('0x14')]),_0x3def81[_0x14eeb6('0x18')]=qs['filters'](_['pick'](_0x11848a[_0x14eeb6('0x1d')],_0x3d33c7[_0x14eeb6('0x55')]),_0x5e0db0);_0x11848a[_0x14eeb6('0x1d')][_0x14eeb6('0x40')]&&(_0x3def81[_0x14eeb6('0x18')]=_[_0x14eeb6('0x2d')](_0x3def81['where'],{[Op['or']]:_['map'](_0x5e0db0,function(_0x1b3c2d){const _0x36b22d=_0x14eeb6;if(_0x1b3c2d['type']!=='VIRTUAL'){const _0x493896={};return _0x493896[_0x1b3c2d[_0x36b22d('0x46')]]={[Op[_0x36b22d('0x42')]]:'%'+_0x11848a[_0x36b22d('0x1d')]['filter']+'%'},_0x493896;}})}));_0x3def81=_['merge']({},_0x3def81,_0x11848a['options']);const _0x2e269c={'where':_0x3def81[_0x14eeb6('0x18')]};return db[_0x14eeb6('0x4b')]['count'](_0x2e269c)['then'](function(_0x3d105f){const _0x2a9840=_0x14eeb6;return _0x5d1472[_0x2a9840('0x24')]=_0x3d105f,_0x11848a['query'][_0x2a9840('0xf')]&&(_0x3def81[_0x2a9840('0x6e')]=[{'all':!![]}]),db['WhatsappQueue']['findAll'](_0x3def81);})['then'](function(_0x1b502b){return _0x5d1472['rows']=_0x1b502b,_0x5d1472;})[_0x14eeb6('0x3f')](respondWithFilteredResult(_0x4a667b,_0x3def81))[_0x14eeb6('0x5a')](handleError(_0x4a667b,null));},exports[_0x1ce8e0('0x1b')]=function(_0x19982f,_0x527899){const _0xa79472=_0x1ce8e0;let _0x3bbcf7={'raw':!![],'where':{'id':_0x19982f[_0xa79472('0x9')]['id']}};const _0x476348={};return _0x476348[_0xa79472('0x26')]=_[_0xa79472('0xc')](db[_0xa79472('0x4b')]['rawAttributes']),_0x476348[_0xa79472('0x1d')]=_[_0xa79472('0xc')](_0x19982f[_0xa79472('0x1d')]),_0x476348[_0xa79472('0x55')]=_[_0xa79472('0x61')](_0x476348[_0xa79472('0x26')],_0x476348[_0xa79472('0x1d')]),_0x3bbcf7[_0xa79472('0x37')]=_[_0xa79472('0x61')](_0x476348[_0xa79472('0x26')],qs[_0xa79472('0x44')](_0x19982f[_0xa79472('0x1d')][_0xa79472('0x44')])),_0x3bbcf7[_0xa79472('0x37')]=_0x3bbcf7[_0xa79472('0x37')][_0xa79472('0x29')]?_0x3bbcf7[_0xa79472('0x37')]:_0x476348[_0xa79472('0x26')],_0x19982f[_0xa79472('0x1d')][_0xa79472('0xf')]&&(_0x3bbcf7[_0xa79472('0x6e')]=[{'all':!![]}]),_0x3bbcf7=_[_0xa79472('0x2d')]({},_0x3bbcf7,_0x19982f['options']),db[_0xa79472('0x4b')][_0xa79472('0x57')](_0x3bbcf7)['then'](handleEntityNotFound(_0x527899,null))[_0xa79472('0x3f')](respondWithResult(_0x527899,null))['catch'](handleError(_0x527899,null));},exports[_0x1ce8e0('0x48')]=function(_0x42534d,_0x333f11){const _0x4a6258=_0x1ce8e0;return db[_0x4a6258('0x4b')]['create'](_0x42534d[_0x4a6258('0x58')],{})[_0x4a6258('0x3f')](function(_0x543262){const _0x2fc9c6=_0x4a6258,_0x2bf262=_0x42534d['user'][_0x2fc9c6('0x23')]({'plain':!![]});if(!_0x2bf262)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x2bf262[_0x2fc9c6('0x1c')]===_0x2fc9c6('0x3d')){const _0x28c217=_0x543262[_0x2fc9c6('0x23')]({'plain':!![]}),_0x319dd6='WhatsappQueues';return db[_0x2fc9c6('0x47')]['findOne']({'where':{'name':_0x319dd6,'userProfileId':_0x2bf262['userProfileId']},'raw':!![]})[_0x2fc9c6('0x3f')](function(_0x9f1abc){const _0x5081af=_0x2fc9c6;return _0x9f1abc&&_0x9f1abc['autoAssociation']===0x0?db[_0x5081af('0x68')][_0x5081af('0x48')]({'name':_0x28c217[_0x5081af('0x46')],'resourceId':_0x28c217['id'],'type':_0x9f1abc[_0x5081af('0x46')],'sectionId':_0x9f1abc['id']},{})[_0x5081af('0x3f')](function(){return _0x543262;}):_0x543262;})[_0x2fc9c6('0x5a')](function(_0xf78022){const _0x42c01c=_0x2fc9c6;logger[_0x42c01c('0x69')](_0x42c01c('0xa'),_0xf78022);throw _0xf78022;});}return _0x543262;})['then'](respondWithResult(_0x333f11,0xc9))[_0x4a6258('0x5a')](handleError(_0x333f11,null));},exports[_0x1ce8e0('0xe')]=function(_0x2ab480,_0x3bb7c9){const _0x3ecc9f=_0x1ce8e0;return _0x2ab480[_0x3ecc9f('0x58')]['id']&&delete _0x2ab480[_0x3ecc9f('0x58')]['id'],db[_0x3ecc9f('0x4b')][_0x3ecc9f('0x57')]({'where':{'id':_0x2ab480[_0x3ecc9f('0x9')]['id']}})[_0x3ecc9f('0x3f')](handleEntityNotFound(_0x3bb7c9,null))[_0x3ecc9f('0x3f')](saveUpdates(_0x2ab480[_0x3ecc9f('0x58')],null))['then'](respondWithResult(_0x3bb7c9,null))['catch'](handleError(_0x3bb7c9,null));},exports[_0x1ce8e0('0x6f')]=function(_0x2ab3dd,_0x3d2f2e){const _0x209137=_0x1ce8e0;return db[_0x209137('0x4b')][_0x209137('0x57')]({'where':{'id':_0x2ab3dd[_0x209137('0x9')]['id']}})[_0x209137('0x3f')](handleEntityNotFound(_0x3d2f2e,null))[_0x209137('0x3f')](removeEntity(_0x3d2f2e,null))[_0x209137('0x5a')](handleError(_0x3d2f2e,null));},exports[_0x1ce8e0('0x2')]=function(_0x156e1f,_0x364304){const _0x44b50f=_0x1ce8e0;return db[_0x44b50f('0x4b')][_0x44b50f('0x2')]()[_0x44b50f('0x3f')](respondWithResult(_0x364304,null))[_0x44b50f('0x5a')](handleError(_0x364304,null));},exports['getMembers']=function(_0x3256ea,_0x3997c9){const _0x2f1784=_0x1ce8e0;let _0x11cf53={'raw':!![],'where':{}};const _0x3f33e3={};let _0x121ee3;return db[_0x2f1784('0x4b')][_0x2f1784('0x57')]({'where':{'id':_0x3256ea['params']['id']}})['then'](handleEntityNotFound(_0x3997c9,null))[_0x2f1784('0x3f')](function(_0x1d8fa7){const _0x52e1c3=_0x2f1784;if(_0x1d8fa7)return _0x121ee3=_0x1d8fa7[_0x52e1c3('0x23')]({'plain':!![]}),_0x3f33e3[_0x52e1c3('0x26')]=_[_0x52e1c3('0xc')](db[_0x52e1c3('0x66')][_0x52e1c3('0x5c')]),_0x3f33e3['query']=_[_0x52e1c3('0xc')](_0x3256ea['query']),_0x3f33e3[_0x52e1c3('0x55')]=_[_0x52e1c3('0x61')](_0x3f33e3['model'],_0x3f33e3[_0x52e1c3('0x1d')]),_0x11cf53[_0x52e1c3('0x37')]=_[_0x52e1c3('0x61')](_0x3f33e3[_0x52e1c3('0x26')],qs[_0x52e1c3('0x44')](_0x3256ea['query'][_0x52e1c3('0x44')])),_0x11cf53[_0x52e1c3('0x37')]=_0x11cf53['attributes']['length']?_0x11cf53[_0x52e1c3('0x37')]:_0x3f33e3['model'],typeof _0x3256ea[_0x52e1c3('0x1d')][_0x52e1c3('0x64')]===_0x52e1c3('0x54')&&(_0x11cf53[_0x52e1c3('0x5f')]=qs[_0x52e1c3('0x5f')](_0x3256ea['query'][_0x52e1c3('0x5f')]),_0x11cf53[_0x52e1c3('0x2e')]=qs[_0x52e1c3('0x2e')](_0x3256ea['query'][_0x52e1c3('0x2e')])),_0x11cf53['order']=qs[_0x52e1c3('0x14')](_0x3256ea[_0x52e1c3('0x1d')][_0x52e1c3('0x14')]),_0x11cf53[_0x52e1c3('0x18')]=qs[_0x52e1c3('0x55')](_[_0x52e1c3('0x8')](_0x3256ea[_0x52e1c3('0x1d')],_0x3f33e3[_0x52e1c3('0x55')])),_0x11cf53[_0x52e1c3('0x18')]['WhatsappQueueId']=_0x1d8fa7['id'],_0x3256ea[_0x52e1c3('0x1d')][_0x52e1c3('0x40')]&&(_0x11cf53['where']=_[_0x52e1c3('0x2d')](_0x11cf53['where'],{[Op['or']]:_[_0x52e1c3('0x33')](_0x11cf53[_0x52e1c3('0x37')],function(_0x31d026){const _0x51704c=_0x52e1c3,_0x1b7de8={};return _0x1b7de8[_0x31d026]={[Op[_0x51704c('0x42')]]:'%'+_0x3256ea[_0x51704c('0x1d')][_0x51704c('0x40')]+'%'},_0x1b7de8;})})),_0x11cf53=_['merge']({},_0x11cf53,_0x3256ea[_0x52e1c3('0x2a')]),db[_0x52e1c3('0x66')][_0x52e1c3('0x5e')](_0x11cf53);})['then'](function(_0x2612cb){const _0x4f0980=_0x2f1784;if(_0x2612cb)return db[_0x4f0980('0x32')][_0x4f0980('0x31')]({'where':{'id':_[_0x4f0980('0x33')](_0x2612cb,_0x4f0980('0xd')),'role':_0x4f0980('0x17')},'attributes':['id',_0x4f0980('0x46'),_0x4f0980('0x25'),_0x4f0980('0x62'),_0x4f0980('0x5')]});})[_0x2f1784('0x3f')](function(_0x2cda55){const _0x319bc7=_0x2f1784;return _0x2cda55?{'count':_0x2cda55[_0x319bc7('0x24')],'rows':_['map'](_0x2cda55[_0x319bc7('0x41')],function(_0x184f40){const _0x104066=_0x319bc7;return{'membername':_0x184f40[_0x104066('0x46')],'UserId':_0x184f40['id'],'queue_name':_0x121ee3[_0x104066('0x46')],'WhatsappQueueId':_0x121ee3['id'],'interface':util[_0x104066('0x49')](_0x104066('0x6d'),_0x104066('0x3c'),_0x184f40[_0x104066('0x46')]),'penalty':0x0,'paused':_0x184f40[_0x104066('0x25')],'createdAt':_0x184f40['createdAt'],'updatedAt':_0x184f40[_0x104066('0x62')]};})}:{'count':0x0,'rows':[]};})['then'](respondWithFilteredResult(_0x3997c9,_0x11cf53))[_0x2f1784('0x5a')](handleError(_0x3997c9,null));},exports[_0x1ce8e0('0x28')]=function(_0xbb1b71,_0x182802){const _0x2a027f=_0x1ce8e0;let _0x4a0dd1={};const _0x511f7f={};let _0x565ce7,_0x7380eb;return db['WhatsappQueue'][_0x2a027f('0x57')]({'where':{'id':_0xbb1b71[_0x2a027f('0x9')]['id']}})['then'](handleEntityNotFound(_0x182802,null))[_0x2a027f('0x3f')](function(_0x579aad){const _0x17b888=_0x2a027f;if(_0x579aad)return _0x565ce7=_0x579aad,_0x511f7f['model']=_[_0x17b888('0xc')](db[_0x17b888('0x3')][_0x17b888('0x5c')]),_0x511f7f['query']=_[_0x17b888('0xc')](_0xbb1b71[_0x17b888('0x1d')]),_0x511f7f[_0x17b888('0x55')]=_['intersection'](_0x511f7f[_0x17b888('0x26')],_0x511f7f[_0x17b888('0x1d')]),_0x4a0dd1[_0x17b888('0x37')]=_[_0x17b888('0x61')](_0x511f7f[_0x17b888('0x26')],qs[_0x17b888('0x44')](_0xbb1b71[_0x17b888('0x1d')][_0x17b888('0x44')])),_0x4a0dd1[_0x17b888('0x37')]=_0x4a0dd1[_0x17b888('0x37')][_0x17b888('0x29')]?_0x4a0dd1[_0x17b888('0x37')]:_0x511f7f['model'],_0x4a0dd1['order']=qs[_0x17b888('0x14')](_0xbb1b71[_0x17b888('0x1d')][_0x17b888('0x14')]),_0x4a0dd1[_0x17b888('0x18')]=qs[_0x17b888('0x55')](_[_0x17b888('0x8')](_0xbb1b71['query'],_0x511f7f[_0x17b888('0x55')])),_0xbb1b71[_0x17b888('0x1d')][_0x17b888('0x40')]&&(_0x4a0dd1[_0x17b888('0x18')]=_[_0x17b888('0x2d')](_0x4a0dd1[_0x17b888('0x18')],{[Op['or']]:_['map'](_0x4a0dd1[_0x17b888('0x37')],function(_0x56a66e){const _0x34c682=_0x17b888,_0x163281={};return _0x163281[_0x56a66e]={[Op[_0x34c682('0x42')]]:'%'+_0xbb1b71[_0x34c682('0x1d')][_0x34c682('0x40')]+'%'},_0x163281;})})),_0x4a0dd1=_[_0x17b888('0x2d')]({},_0x4a0dd1,_0xbb1b71[_0x17b888('0x2a')]),_0x565ce7['getTeams'](_0x4a0dd1);})[_0x2a027f('0x3f')](function(_0x5c5a9a){const _0x50162b=_0x2a027f;if(_0x5c5a9a)return _0x7380eb=_0x5c5a9a['length'],typeof _0xbb1b71[_0x50162b('0x1d')][_0x50162b('0x64')]===_0x50162b('0x54')&&(_0x4a0dd1['limit']=qs[_0x50162b('0x5f')](_0xbb1b71['query']['limit']),_0x4a0dd1[_0x50162b('0x2e')]=qs[_0x50162b('0x2e')](_0xbb1b71[_0x50162b('0x1d')][_0x50162b('0x2e')])),_0x565ce7['getTeams'](_0x4a0dd1);})[_0x2a027f('0x3f')](function(_0x3fccb4){if(_0x3fccb4)return _0x3fccb4?{'count':_0x7380eb,'rows':_0x3fccb4}:null;})[_0x2a027f('0x3f')](respondWithResult(_0x182802,null))[_0x2a027f('0x5a')](handleError(_0x182802,null));},exports[_0x1ce8e0('0x19')]=function(_0xf4e3a1,_0x40114b){const _0x406acb=_0x1ce8e0,_0x2d99e5=_0xf4e3a1['body'][_0x406acb('0x6a')];return db[_0x406acb('0x3')][_0x406acb('0x5e')]({'where':{'id':_0x2d99e5},'attributes':['id'],'include':[{'model':db[_0x406acb('0x32')],'as':_0x406acb('0x6'),'attributes':['id','name',_0x406acb('0x6b'),'voicePause',_0x406acb('0x15')],'raw':!![]}]})[_0x406acb('0x3f')](function(_0x2cd507){const _0x11f348=_0x406acb;if(_0x2cd507){const _0x1c62e2=_[_0x11f348('0x52')](_0x2cd507,function(_0x19d55b){const _0x1cf685=_0x11f348,_0x2b115c=_0x19d55b['get']({'plain':!![]});return _0x2b115c[_0x1cf685('0x6')];});return db[_0x11f348('0x4b')]['findOne']({'where':{'id':_0xf4e3a1[_0x11f348('0x9')]['id']}})[_0x11f348('0x3f')](function(_0x1e0117){const _0x573b1d=_0x11f348;return db[_0x573b1d('0x56')][_0x573b1d('0x3a')](function(_0x5830c4){const _0x5085d0=_0x573b1d;return _0x1e0117[_0x5085d0('0x19')](_0x2d99e5,{'transaction':_0x5830c4})['then'](function(){return Promise['all'](_0x1c62e2['map'](_0x4f948c=>{const _0x6308fc=a808_0x544f;return db[_0x6308fc('0x66')][_0x6308fc('0x22')]({'where':{'UserId':_0x4f948c['id'],'WhatsappQueueId':_0xf4e3a1[_0x6308fc('0x9')]['id']},'transaction':_0x5830c4});}));})[_0x5085d0('0x3f')](function(){_0x1c62e2['forEach'](function(_0x1392ae){const _0x370732=a808_0x544f;socket[_0x370732('0x27')]('userWhatsappQueue:save',{'UserId':_0x1392ae['id'],'WhatsappQueueId':_0x1e0117['id']});});});});});}})['then'](respondWithStatusCode(_0x40114b,null))['catch'](handleError(_0x40114b,null));},exports[_0x1ce8e0('0x36')]=function(_0x4efe0e,_0x5c1acb){const _0x3c09e0=_0x1ce8e0;return db[_0x3c09e0('0x3')][_0x3c09e0('0x5e')]({'where':{'id':_0x4efe0e[_0x3c09e0('0x1d')]['ids']},'attributes':['id'],'include':[{'model':db[_0x3c09e0('0x32')],'as':_0x3c09e0('0x6'),'attributes':['id'],'raw':!![]}]})[_0x3c09e0('0x3f')](handleEntityNotFound(_0x5c1acb,null))[_0x3c09e0('0x3f')](function(_0x1b74db){const _0x18d5ed=_0x3c09e0,_0x300e26=_['map'](_0x1b74db,'id');let _0x1397a2=[];const _0xff0f10=[],_0xd9ada7=squel[_0x18d5ed('0x5b')]();_0xd9ada7[_0x18d5ed('0x45')](_0x18d5ed('0x7'))[_0x18d5ed('0xb')](_0x18d5ed('0x10'),'tq')[_0x18d5ed('0x63')](_0x18d5ed('0x30'),'ut',_0x18d5ed('0x4'))['where'](_0x18d5ed('0x12'),_0x4efe0e[_0x18d5ed('0x9')]['id']);for(let _0x2c3957=0x0;_0x2c3957<_0x1b74db[_0x18d5ed('0x29')];_0x2c3957+=0x1){const _0x1ecae3=_0x1b74db[_0x2c3957];for(let _0x99a91e=0x0;_0x99a91e<_0x1ecae3[_0x18d5ed('0x6')][_0x18d5ed('0x29')];_0x99a91e+=0x1){const _0x12ae39=_0x1ecae3[_0x18d5ed('0x6')][_0x99a91e],_0x4f5a29=_0xd9ada7[_0x18d5ed('0x5d')]();_0x4f5a29[_0x18d5ed('0x18')](_0x18d5ed('0x51'),_0x12ae39['id']),_0xff0f10[_0x18d5ed('0x43')](db['sequelize'][_0x18d5ed('0x1d')](_0x4f5a29[_0x18d5ed('0x0')](),{'type':QueryTypes[_0x18d5ed('0x34')]})['then'](function(_0x4b20b8){const _0x3f7ca2=_0x18d5ed;if(_0x4b20b8['length']===0x1)return _0x12ae39['id'];else{const _0x3ef21d=_[_0x3f7ca2('0x2f')](_[_0x3f7ca2('0x33')](_0x4b20b8,'TeamId'),function(_0x24e61){const _0x290f4a=_0x3f7ca2;return _[_0x290f4a('0x1a')](_0x300e26,_0x24e61);});if(_0x3ef21d)return _0x12ae39['id'];}}));}}return Promise[_0x18d5ed('0x2b')](_0xff0f10)[_0x18d5ed('0x3f')](function(_0x1165e0){const _0x54701f=_0x18d5ed;return _0x1397a2=_(_0x1397a2)[_0x54701f('0x38')](_0x1165e0)[_0x54701f('0x4c')]()[_0x54701f('0x20')](),db[_0x54701f('0x4b')][_0x54701f('0x57')]({'where':{'id':_0x4efe0e[_0x54701f('0x9')]['id']}})[_0x54701f('0x3f')](function(_0x32589){const _0x4098b2=_0x54701f;return db[_0x4098b2('0x56')][_0x4098b2('0x3a')](function(_0x313f69){const _0x3e57bb=_0x4098b2;return _0x32589[_0x3e57bb('0x36')](_0x4efe0e[_0x3e57bb('0x1d')][_0x3e57bb('0x6a')],{'transaction':_0x313f69})[_0x3e57bb('0x3f')](function(){const _0x5e04b8=_0x3e57bb;if(!_[_0x5e04b8('0x39')](_0x1397a2))return _0x32589[_0x5e04b8('0x4d')](_0x1397a2,{'transaction':_0x313f69});})[_0x3e57bb('0x3f')](function(){_0x1397a2['forEach'](function(_0x8d5018){const _0x3603b5=a808_0x544f;socket['emit'](_0x3603b5('0x13'),{'UserId':_0x8d5018,'WhatsappQueueId':_0x32589['id']});});});});});});})[_0x3c09e0('0x3f')](respondWithStatusCode(_0x5c1acb,null))[_0x3c09e0('0x5a')](handleError(_0x5c1acb,null));},exports[_0x1ce8e0('0x35')]=function(_0x48d957,_0x328dcc){const _0x28d92a=_0x1ce8e0;return db['WhatsappQueue']['findOne']({'where':{'id':_0x48d957[_0x28d92a('0x9')]['id']}})[_0x28d92a('0x3f')](function(_0x5a9877){const _0x1cf7bf=_0x28d92a;if(_0x5a9877)return _0x5a9877['addAgents'](_0x48d957[_0x1cf7bf('0x58')][_0x1cf7bf('0x6a')],{'through':_['omit'](_0x48d957['body'],[_0x1cf7bf('0x6a'),'id'])})['then'](function(_0x57f07d){const _0x2a4335=_0x1cf7bf;for(let _0x5afd1b=0x0;_0x5afd1b<_0x48d957[_0x2a4335('0x58')][_0x2a4335('0x6a')]['length'];_0x5afd1b+=0x1){socket['emit'](_0x2a4335('0x60'),{'UserId':_0x48d957['body']['ids'][_0x5afd1b],'WhatsappQueueId':_0x48d957[_0x2a4335('0x9')]['id']});}return _0x57f07d;});})['then'](respondWithResult(_0x328dcc,null))[_0x28d92a('0x5a')](handleError(_0x328dcc,null));},exports['removeAgents']=function(_0x1826f2,_0x1a2a42){const _0x4b6918=_0x1ce8e0;return db[_0x4b6918('0x4b')][_0x4b6918('0x57')]({'where':{'id':_0x1826f2[_0x4b6918('0x9')]['id']}})[_0x4b6918('0x3f')](handleEntityNotFound(_0x1a2a42,null))[_0x4b6918('0x3f')](function(_0x16d103){const _0x3f44c0=_0x4b6918;if(_0x16d103)return _0x16d103[_0x3f44c0('0x4d')](_0x1826f2['query'][_0x3f44c0('0x6a')])[_0x3f44c0('0x3f')](function(){const _0x57e5e8=_0x3f44c0;if(_['isArray'](_0x1826f2[_0x57e5e8('0x1d')][_0x57e5e8('0x6a')]))for(let _0x29c55f=0x0;_0x29c55f<_0x1826f2[_0x57e5e8('0x1d')][_0x57e5e8('0x6a')][_0x57e5e8('0x29')];_0x29c55f+=0x1){socket[_0x57e5e8('0x27')](_0x57e5e8('0x13'),{'UserId':Number(_0x1826f2[_0x57e5e8('0x1d')]['ids'][_0x29c55f]),'WhatsappQueueId':Number(_0x1826f2[_0x57e5e8('0x9')]['id'])});}else socket['emit'](_0x57e5e8('0x13'),{'UserId':Number(_0x1826f2[_0x57e5e8('0x1d')][_0x57e5e8('0x6a')]),'WhatsappQueueId':Number(_0x1826f2[_0x57e5e8('0x9')]['id'])});});})[_0x4b6918('0x3f')](respondWithStatusCode(_0x1a2a42,null))[_0x4b6918('0x5a')](handleError(_0x1a2a42,null));},exports[_0x1ce8e0('0x1e')]=function(_0x559061,_0xa0d280){const _0x2dccb6=_0x1ce8e0;let _0x38492b={};const _0x2cb18a={};let _0x3eae40,_0x8654f;return db[_0x2dccb6('0x4b')][_0x2dccb6('0x57')]({'where':{'id':_0x559061['params']['id']}})[_0x2dccb6('0x3f')](handleEntityNotFound(_0xa0d280,null))[_0x2dccb6('0x3f')](function(_0x14d6f6){const _0x3f0d5c=_0x2dccb6;if(_0x14d6f6)return _0x3eae40=_0x14d6f6,_0x2cb18a[_0x3f0d5c('0x26')]=_[_0x3f0d5c('0xc')](db[_0x3f0d5c('0x32')][_0x3f0d5c('0x5c')]),_0x2cb18a[_0x3f0d5c('0x1d')]=_['keys'](_0x559061[_0x3f0d5c('0x1d')]),_0x2cb18a[_0x3f0d5c('0x55')]=_[_0x3f0d5c('0x61')](_0x2cb18a[_0x3f0d5c('0x26')],_0x2cb18a[_0x3f0d5c('0x1d')]),_0x38492b[_0x3f0d5c('0x37')]=_[_0x3f0d5c('0x61')](_0x2cb18a[_0x3f0d5c('0x26')],qs[_0x3f0d5c('0x44')](_0x559061[_0x3f0d5c('0x1d')][_0x3f0d5c('0x44')])),_0x38492b[_0x3f0d5c('0x37')]=_0x38492b['attributes'][_0x3f0d5c('0x29')]?_0x38492b[_0x3f0d5c('0x37')]:_0x2cb18a['model'],_0x38492b[_0x3f0d5c('0x16')]=qs['sort'](_0x559061[_0x3f0d5c('0x1d')][_0x3f0d5c('0x14')]),_0x38492b[_0x3f0d5c('0x18')]=qs[_0x3f0d5c('0x55')](_['pick'](_0x559061['query'],_0x2cb18a[_0x3f0d5c('0x55')])),_0x559061[_0x3f0d5c('0x1d')]['filter']&&(_0x38492b['where']=_[_0x3f0d5c('0x2d')](_0x38492b[_0x3f0d5c('0x18')],{[Op['or']]:_['map'](_0x38492b[_0x3f0d5c('0x37')],function(_0x4f16d2){const _0x512d4c=_0x3f0d5c,_0x193dac={};return _0x193dac[_0x4f16d2]={[Op['like']]:'%'+_0x559061[_0x512d4c('0x1d')][_0x512d4c('0x40')]+'%'},_0x193dac;})})),_0x38492b=_['merge']({},_0x38492b,_0x559061[_0x3f0d5c('0x2a')]),_0x3eae40[_0x3f0d5c('0x1e')](_0x38492b);})[_0x2dccb6('0x3f')](function(_0x3645ce){const _0x1e7b7f=_0x2dccb6;if(_0x3645ce)return _0x8654f=_0x3645ce[_0x1e7b7f('0x29')],typeof _0x559061['query'][_0x1e7b7f('0x64')]===_0x1e7b7f('0x54')&&(_0x38492b[_0x1e7b7f('0x5f')]=qs[_0x1e7b7f('0x5f')](_0x559061[_0x1e7b7f('0x1d')][_0x1e7b7f('0x5f')]),_0x38492b['offset']=qs['offset'](_0x559061['query'][_0x1e7b7f('0x2e')])),_0x3eae40[_0x1e7b7f('0x1e')](_0x38492b);})['then'](function(_0x3a0348){if(_0x3a0348)return _0x3a0348?{'count':_0x8654f,'rows':_0x3a0348}:null;})[_0x2dccb6('0x3f')](respondWithResult(_0xa0d280,null))[_0x2dccb6('0x5a')](handleError(_0xa0d280,null));}; \ No newline at end of file +const a967_0x26bf=['then','lodash','findAll','../../rediscache','clone','addAgents','sort','query','../../mysqldb','../../config/logger','all','ut.TeamId\x20=\x20tq.TeamId','addTeams','union','length','destroy','nolimit','map','select','get','squel','WhatsappQueue','findOrCreate','index','SELECT','createdAt','like','type','catch','removeTeams','create','show','user','name','Content-Range','undefined','TeamId','keys','UserWhatsappQueue','user_has_teams','order','ids','push','WhatsappQueues','intersection','Unable\x20to\x20retrieve\x20the\x20current\x20user','include','options','util','offset','../../components/parsers/qs','send','filter','json','merge','userWhatsappQueue:remove','Team','Agents','UserProfileResource','autoAssociation','tq.TeamId','agent','model','every','format','join','userWhatsappQueue:save','whatsappPause','findOne','end','sendStatus','value','SIP','flatMap','status','online','fields','count','removeAgents','emit','fieldName','stack','filters','sequelize','where','update','isEmpty','omit','transaction','describe','%s/%s','rows','field','toString','getTeams','findAndCountAll','limit','pick','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','attributes','body','WhatsappQueueId','updatedAt','getMembers','rawAttributes','set','User','team_has_whatsapp_queues','getAgents','VIRTUAL','includeAll','params','UserProfileSection'];(function(_0x538dca,_0x2e61ce){const _0x26bfaf=function(_0x55ca4d){while(--_0x55ca4d){_0x538dca['push'](_0x538dca['shift']());}};_0x26bfaf(++_0x2e61ce);}(a967_0x26bf,0x1f4));const a967_0x55ca=function(_0x538dca,_0x2e61ce){_0x538dca=_0x538dca-0xe3;let _0x26bfaf=a967_0x26bf[_0x538dca];return _0x26bfaf;};const a967_0x3665bd=a967_0x55ca;'use strict';const util=require(a967_0x3665bd(0xe3)),_=require(a967_0x3665bd(0x125)),squel=require(a967_0x3665bd(0x138)),qs=require(a967_0x3665bd(0xe5)),logger=require(a967_0x3665bd(0x12d))('api'),{getSocket}=require(a967_0x3665bd(0x127)),socket=getSocket(),{db}=require(a967_0x3665bd(0x12c)),{Op,QueryTypes}=require(a967_0x3665bd(0x106));require('./whatsappQueue.socket')['register'](socket);function respondWithStatusCode(_0x497b44,_0x1627d9){return _0x1627d9=_0x1627d9||0xcc,function(_0x3059e3){const _0x18917d=a967_0x55ca;if(_0x3059e3)return _0x497b44[_0x18917d(0xf9)](_0x1627d9);return _0x497b44['status'](_0x1627d9)[_0x18917d(0xf8)]();};}function respondWithResult(_0x26ba74,_0x5f39aa){return _0x5f39aa=_0x5f39aa||0xc8,function(_0x5762f2){const _0xcf9b1f=a967_0x55ca;if(_0x5762f2)return _0x26ba74[_0xcf9b1f(0xfd)](_0x5f39aa)[_0xcf9b1f(0xe8)](_0x5762f2);};}function respondWithFilteredResult(_0x4d6ba4,_0x4925b3){return function(_0x42d3e0){const _0xd45126=a967_0x55ca;if(_0x42d3e0){const _0x5997d3=_0x42d3e0[_0xd45126(0x100)],_0x17b69e=_0x4925b3['offset'];let _0x5287de=_0x4925b3[_0xd45126(0xe4)]+_0x4925b3[_0xd45126(0x113)],_0x526223;return _0x5287de>=_0x5997d3?(_0x5287de=_0x5997d3,_0x526223=0xc8):_0x526223=0xce,_0x4d6ba4['status'](_0x526223),_0x4d6ba4[_0xd45126(0x11c)](_0xd45126(0x146),_0x17b69e+'-'+_0x5287de+'/'+_0x5997d3)[_0xd45126(0xe8)](_0x42d3e0);}return null;};}function saveUpdates(_0x18dad3){return function(_0x4b2757){const _0x1b1d40=a967_0x55ca;if(_0x4b2757)return _0x4b2757['update'](_0x18dad3)[_0x1b1d40(0x124)](function(_0x2086dc){return _0x2086dc;});return null;};}function removeEntity(_0x41898e){return function(_0x3c3394){const _0x44a6f6=a967_0x55ca;if(_0x3c3394)return _0x3c3394[_0x44a6f6(0x133)]()[_0x44a6f6(0x124)](function(){const _0xc6b10b=_0x44a6f6,_0x4fe73e=_0x3c3394[_0xc6b10b(0x137)]({'plain':!![]}),_0x128edf=_0xc6b10b(0x14f);return db['UserProfileResource'][_0xc6b10b(0x133)]({'where':{'type':_0x128edf,'resourceId':_0x4fe73e['id']}})['then'](function(){return _0x3c3394;});})[_0x44a6f6(0x124)](function(){_0x41898e['status'](0xcc)['end']();});};}function handleEntityNotFound(_0x26297e){return function(_0x4360dc){const _0x3287cf=a967_0x55ca;return!_0x4360dc&&_0x26297e[_0x3287cf(0xf9)](0x194),_0x4360dc;};}function handleError(_0x5c4a3c,_0x2a3165){return _0x2a3165=_0x2a3165||0x1f4,function(_0x441f70){const _0x5ba4c5=a967_0x55ca;logger['error'](_0x441f70[_0x5ba4c5(0x104)]),_0x441f70[_0x5ba4c5(0x145)]&&delete _0x441f70[_0x5ba4c5(0x145)],_0x5c4a3c[_0x5ba4c5(0xfd)](_0x2a3165)[_0x5ba4c5(0xe6)](_0x441f70);};}exports[a967_0x3665bd(0x13b)]=function(_0x546e7b,_0x2f010d){const _0x3ba58f=a967_0x3665bd;let _0x1da95d={};const _0x28e764={},_0x34058c={'count':0x0,'rows':[]},_0x3b2805=_['map'](db[_0x3ba58f(0x139)][_0x3ba58f(0x11b)],function(_0xd311f){const _0x5c5830=_0x3ba58f;return{'name':_0xd311f[_0x5c5830(0x103)],'type':_0xd311f[_0x5c5830(0x13f)]['key']};});_0x28e764[_0x3ba58f(0xf1)]=_[_0x3ba58f(0x135)](_0x3b2805,_0x3ba58f(0x145)),_0x28e764['query']=_[_0x3ba58f(0x149)](_0x546e7b['query']),_0x28e764['filters']=_[_0x3ba58f(0x150)](_0x28e764[_0x3ba58f(0xf1)],_0x28e764['query']),_0x1da95d['attributes']=_[_0x3ba58f(0x150)](_0x28e764[_0x3ba58f(0xf1)],qs[_0x3ba58f(0xff)](_0x546e7b[_0x3ba58f(0x12b)][_0x3ba58f(0xff)])),_0x1da95d[_0x3ba58f(0x116)]=_0x1da95d[_0x3ba58f(0x116)][_0x3ba58f(0x132)]?_0x1da95d[_0x3ba58f(0x116)]:_0x28e764['model'];typeof _0x546e7b[_0x3ba58f(0x12b)][_0x3ba58f(0x134)]===_0x3ba58f(0x147)&&(_0x1da95d[_0x3ba58f(0x113)]=qs[_0x3ba58f(0x113)](_0x546e7b[_0x3ba58f(0x12b)][_0x3ba58f(0x113)]),_0x1da95d['offset']=qs['offset'](_0x546e7b['query'][_0x3ba58f(0xe4)]));_0x1da95d[_0x3ba58f(0x14c)]=qs[_0x3ba58f(0x12a)](_0x546e7b[_0x3ba58f(0x12b)][_0x3ba58f(0x12a)]),_0x1da95d[_0x3ba58f(0x107)]=qs['filters'](_[_0x3ba58f(0x114)](_0x546e7b['query'],_0x28e764[_0x3ba58f(0x105)]),_0x3b2805);_0x546e7b[_0x3ba58f(0x12b)]['filter']&&(_0x1da95d[_0x3ba58f(0x107)]=_[_0x3ba58f(0xe9)](_0x1da95d['where'],{[Op['or']]:_[_0x3ba58f(0x135)](_0x3b2805,function(_0x46f7b2){const _0x3ef6d7=_0x3ba58f;if(_0x46f7b2[_0x3ef6d7(0x13f)]!==_0x3ef6d7(0x120)){const _0x32c5d7={};return _0x32c5d7[_0x46f7b2[_0x3ef6d7(0x145)]]={[Op[_0x3ef6d7(0x13e)]]:'%'+_0x546e7b[_0x3ef6d7(0x12b)]['filter']+'%'},_0x32c5d7;}})}));_0x1da95d=_[_0x3ba58f(0xe9)]({},_0x1da95d,_0x546e7b[_0x3ba58f(0x153)]);const _0x1114f7={'where':_0x1da95d[_0x3ba58f(0x107)]};return db[_0x3ba58f(0x139)][_0x3ba58f(0x100)](_0x1114f7)[_0x3ba58f(0x124)](function(_0x12181c){const _0x41cd43=_0x3ba58f;return _0x34058c['count']=_0x12181c,_0x546e7b[_0x41cd43(0x12b)][_0x41cd43(0x121)]&&(_0x1da95d[_0x41cd43(0x152)]=[{'all':!![]}]),db[_0x41cd43(0x139)][_0x41cd43(0x126)](_0x1da95d);})[_0x3ba58f(0x124)](function(_0x4dbc80){const _0x383003=_0x3ba58f;return _0x34058c[_0x383003(0x10e)]=_0x4dbc80,_0x34058c;})[_0x3ba58f(0x124)](respondWithFilteredResult(_0x2f010d,_0x1da95d))[_0x3ba58f(0x140)](handleError(_0x2f010d,null));},exports[a967_0x3665bd(0x143)]=function(_0x24ed86,_0x17b095){const _0x1e47b8=a967_0x3665bd;let _0x5399a7={'raw':!![],'where':{'id':_0x24ed86[_0x1e47b8(0x122)]['id']}};const _0x97094b={};return _0x97094b[_0x1e47b8(0xf1)]=_[_0x1e47b8(0x149)](db['WhatsappQueue']['rawAttributes']),_0x97094b['query']=_[_0x1e47b8(0x149)](_0x24ed86[_0x1e47b8(0x12b)]),_0x97094b['filters']=_[_0x1e47b8(0x150)](_0x97094b['model'],_0x97094b[_0x1e47b8(0x12b)]),_0x5399a7[_0x1e47b8(0x116)]=_[_0x1e47b8(0x150)](_0x97094b['model'],qs[_0x1e47b8(0xff)](_0x24ed86[_0x1e47b8(0x12b)][_0x1e47b8(0xff)])),_0x5399a7[_0x1e47b8(0x116)]=_0x5399a7['attributes'][_0x1e47b8(0x132)]?_0x5399a7['attributes']:_0x97094b['model'],_0x24ed86[_0x1e47b8(0x12b)][_0x1e47b8(0x121)]&&(_0x5399a7['include']=[{'all':!![]}]),_0x5399a7=_[_0x1e47b8(0xe9)]({},_0x5399a7,_0x24ed86[_0x1e47b8(0x153)]),db[_0x1e47b8(0x139)][_0x1e47b8(0xf7)](_0x5399a7)[_0x1e47b8(0x124)](handleEntityNotFound(_0x17b095,null))[_0x1e47b8(0x124)](respondWithResult(_0x17b095,null))[_0x1e47b8(0x140)](handleError(_0x17b095,null));},exports[a967_0x3665bd(0x142)]=function(_0x26745a,_0x26da9d){const _0x3003a9=a967_0x3665bd;return db[_0x3003a9(0x139)][_0x3003a9(0x142)](_0x26745a[_0x3003a9(0x117)],{})[_0x3003a9(0x124)](function(_0x45b663){const _0x5ec35d=_0x3003a9,_0x1d19cc=_0x26745a[_0x5ec35d(0x144)][_0x5ec35d(0x137)]({'plain':!![]});if(!_0x1d19cc)throw new Error(_0x5ec35d(0x151));if(_0x1d19cc['role']==='user'){const _0xf4ccb2=_0x45b663['get']({'plain':!![]}),_0x42c1a1=_0x5ec35d(0x14f);return db[_0x5ec35d(0x123)]['findOne']({'where':{'name':_0x42c1a1,'userProfileId':_0x1d19cc['userProfileId']},'raw':!![]})[_0x5ec35d(0x124)](function(_0x18f1b9){const _0x417fa8=_0x5ec35d;return _0x18f1b9&&_0x18f1b9[_0x417fa8(0xee)]===0x0?db[_0x417fa8(0xed)][_0x417fa8(0x142)]({'name':_0xf4ccb2[_0x417fa8(0x145)],'resourceId':_0xf4ccb2['id'],'type':_0x18f1b9[_0x417fa8(0x145)],'sectionId':_0x18f1b9['id']},{})[_0x417fa8(0x124)](function(){return _0x45b663;}):_0x45b663;})[_0x5ec35d(0x140)](function(_0x3b511f){const _0x107531=_0x5ec35d;logger['error'](_0x107531(0x115),_0x3b511f);throw _0x3b511f;});}return _0x45b663;})['then'](respondWithResult(_0x26da9d,0xc9))[_0x3003a9(0x140)](handleError(_0x26da9d,null));},exports[a967_0x3665bd(0x108)]=function(_0x545080,_0xb03804){const _0x3f0d9e=a967_0x3665bd;return _0x545080['body']['id']&&delete _0x545080[_0x3f0d9e(0x117)]['id'],db['WhatsappQueue'][_0x3f0d9e(0xf7)]({'where':{'id':_0x545080[_0x3f0d9e(0x122)]['id']}})[_0x3f0d9e(0x124)](handleEntityNotFound(_0xb03804,null))['then'](saveUpdates(_0x545080[_0x3f0d9e(0x117)],null))['then'](respondWithResult(_0xb03804,null))['catch'](handleError(_0xb03804,null));},exports[a967_0x3665bd(0x133)]=function(_0x1680e9,_0x30a3bf){const _0x2b6ad8=a967_0x3665bd;return db[_0x2b6ad8(0x139)][_0x2b6ad8(0xf7)]({'where':{'id':_0x1680e9[_0x2b6ad8(0x122)]['id']}})[_0x2b6ad8(0x124)](handleEntityNotFound(_0x30a3bf,null))[_0x2b6ad8(0x124)](removeEntity(_0x30a3bf,null))[_0x2b6ad8(0x140)](handleError(_0x30a3bf,null));},exports[a967_0x3665bd(0x10c)]=function(_0x5ca477,_0x45e26a){const _0x470c7=a967_0x3665bd;return db[_0x470c7(0x139)]['describe']()[_0x470c7(0x124)](respondWithResult(_0x45e26a,null))['catch'](handleError(_0x45e26a,null));},exports[a967_0x3665bd(0x11a)]=function(_0x56daa3,_0x16fd25){const _0x5a7609=a967_0x3665bd;let _0x4a3cca={'raw':!![],'where':{}};const _0x524705={};let _0x5d3803;return db['WhatsappQueue']['findOne']({'where':{'id':_0x56daa3[_0x5a7609(0x122)]['id']}})[_0x5a7609(0x124)](handleEntityNotFound(_0x16fd25,null))['then'](function(_0x2862b4){const _0xcbfaa6=_0x5a7609;if(_0x2862b4)return _0x5d3803=_0x2862b4['get']({'plain':!![]}),_0x524705[_0xcbfaa6(0xf1)]=_[_0xcbfaa6(0x149)](db[_0xcbfaa6(0x14a)][_0xcbfaa6(0x11b)]),_0x524705[_0xcbfaa6(0x12b)]=_['keys'](_0x56daa3[_0xcbfaa6(0x12b)]),_0x524705[_0xcbfaa6(0x105)]=_['intersection'](_0x524705[_0xcbfaa6(0xf1)],_0x524705[_0xcbfaa6(0x12b)]),_0x4a3cca['attributes']=_[_0xcbfaa6(0x150)](_0x524705[_0xcbfaa6(0xf1)],qs['fields'](_0x56daa3[_0xcbfaa6(0x12b)][_0xcbfaa6(0xff)])),_0x4a3cca[_0xcbfaa6(0x116)]=_0x4a3cca[_0xcbfaa6(0x116)][_0xcbfaa6(0x132)]?_0x4a3cca[_0xcbfaa6(0x116)]:_0x524705[_0xcbfaa6(0xf1)],typeof _0x56daa3['query'][_0xcbfaa6(0x134)]===_0xcbfaa6(0x147)&&(_0x4a3cca[_0xcbfaa6(0x113)]=qs[_0xcbfaa6(0x113)](_0x56daa3[_0xcbfaa6(0x12b)][_0xcbfaa6(0x113)]),_0x4a3cca[_0xcbfaa6(0xe4)]=qs[_0xcbfaa6(0xe4)](_0x56daa3[_0xcbfaa6(0x12b)][_0xcbfaa6(0xe4)])),_0x4a3cca[_0xcbfaa6(0x14c)]=qs[_0xcbfaa6(0x12a)](_0x56daa3[_0xcbfaa6(0x12b)][_0xcbfaa6(0x12a)]),_0x4a3cca[_0xcbfaa6(0x107)]=qs[_0xcbfaa6(0x105)](_[_0xcbfaa6(0x114)](_0x56daa3[_0xcbfaa6(0x12b)],_0x524705[_0xcbfaa6(0x105)])),_0x4a3cca[_0xcbfaa6(0x107)][_0xcbfaa6(0x118)]=_0x2862b4['id'],_0x56daa3[_0xcbfaa6(0x12b)][_0xcbfaa6(0xe7)]&&(_0x4a3cca[_0xcbfaa6(0x107)]=_[_0xcbfaa6(0xe9)](_0x4a3cca[_0xcbfaa6(0x107)],{[Op['or']]:_[_0xcbfaa6(0x135)](_0x4a3cca[_0xcbfaa6(0x116)],function(_0x4d2929){const _0xa4c1a5=_0xcbfaa6,_0x21aac9={};return _0x21aac9[_0x4d2929]={[Op[_0xa4c1a5(0x13e)]]:'%'+_0x56daa3[_0xa4c1a5(0x12b)]['filter']+'%'},_0x21aac9;})})),_0x4a3cca=_['merge']({},_0x4a3cca,_0x56daa3['options']),db[_0xcbfaa6(0x14a)]['findAll'](_0x4a3cca);})[_0x5a7609(0x124)](function(_0x1d3516){const _0x4ea878=_0x5a7609;if(_0x1d3516)return db[_0x4ea878(0x11d)][_0x4ea878(0x112)]({'where':{'id':_['map'](_0x1d3516,'UserId'),'role':_0x4ea878(0xf0)},'attributes':['id','name',_0x4ea878(0xf6),_0x4ea878(0x119),_0x4ea878(0x13d)]});})['then'](function(_0x38f094){const _0x40045e=_0x5a7609;return _0x38f094?{'count':_0x38f094[_0x40045e(0x100)],'rows':_[_0x40045e(0x135)](_0x38f094[_0x40045e(0x10e)],function(_0x4d4b82){const _0x21f1de=_0x40045e;return{'membername':_0x4d4b82[_0x21f1de(0x145)],'UserId':_0x4d4b82['id'],'queue_name':_0x5d3803[_0x21f1de(0x145)],'WhatsappQueueId':_0x5d3803['id'],'interface':util[_0x21f1de(0xf3)](_0x21f1de(0x10d),_0x21f1de(0xfb),_0x4d4b82[_0x21f1de(0x145)]),'penalty':0x0,'paused':_0x4d4b82[_0x21f1de(0xf6)],'createdAt':_0x4d4b82[_0x21f1de(0x13d)],'updatedAt':_0x4d4b82[_0x21f1de(0x119)]};})}:{'count':0x0,'rows':[]};})[_0x5a7609(0x124)](respondWithFilteredResult(_0x16fd25,_0x4a3cca))[_0x5a7609(0x140)](handleError(_0x16fd25,null));},exports[a967_0x3665bd(0x111)]=function(_0x2e757f,_0x3e64d3){const _0x20111f=a967_0x3665bd;let _0x4d2615={};const _0x426e82={};let _0x377fbe,_0x2d426c;return db[_0x20111f(0x139)][_0x20111f(0xf7)]({'where':{'id':_0x2e757f[_0x20111f(0x122)]['id']}})[_0x20111f(0x124)](handleEntityNotFound(_0x3e64d3,null))[_0x20111f(0x124)](function(_0x250932){const _0x204afb=_0x20111f;if(_0x250932)return _0x377fbe=_0x250932,_0x426e82['model']=_[_0x204afb(0x149)](db['Team'][_0x204afb(0x11b)]),_0x426e82['query']=_['keys'](_0x2e757f[_0x204afb(0x12b)]),_0x426e82[_0x204afb(0x105)]=_[_0x204afb(0x150)](_0x426e82[_0x204afb(0xf1)],_0x426e82[_0x204afb(0x12b)]),_0x4d2615[_0x204afb(0x116)]=_[_0x204afb(0x150)](_0x426e82['model'],qs[_0x204afb(0xff)](_0x2e757f[_0x204afb(0x12b)]['fields'])),_0x4d2615['attributes']=_0x4d2615[_0x204afb(0x116)][_0x204afb(0x132)]?_0x4d2615[_0x204afb(0x116)]:_0x426e82[_0x204afb(0xf1)],_0x4d2615[_0x204afb(0x14c)]=qs[_0x204afb(0x12a)](_0x2e757f[_0x204afb(0x12b)][_0x204afb(0x12a)]),_0x4d2615[_0x204afb(0x107)]=qs[_0x204afb(0x105)](_['pick'](_0x2e757f['query'],_0x426e82[_0x204afb(0x105)])),_0x2e757f[_0x204afb(0x12b)]['filter']&&(_0x4d2615['where']=_['merge'](_0x4d2615[_0x204afb(0x107)],{[Op['or']]:_[_0x204afb(0x135)](_0x4d2615[_0x204afb(0x116)],function(_0x2562cb){const _0x38a8dc=_0x204afb,_0x233067={};return _0x233067[_0x2562cb]={[Op[_0x38a8dc(0x13e)]]:'%'+_0x2e757f[_0x38a8dc(0x12b)][_0x38a8dc(0xe7)]+'%'},_0x233067;})})),_0x4d2615=_[_0x204afb(0xe9)]({},_0x4d2615,_0x2e757f[_0x204afb(0x153)]),_0x377fbe[_0x204afb(0x111)](_0x4d2615);})[_0x20111f(0x124)](function(_0x305fb0){const _0x424629=_0x20111f;if(_0x305fb0)return _0x2d426c=_0x305fb0[_0x424629(0x132)],typeof _0x2e757f['query']['nolimit']===_0x424629(0x147)&&(_0x4d2615[_0x424629(0x113)]=qs['limit'](_0x2e757f[_0x424629(0x12b)][_0x424629(0x113)]),_0x4d2615[_0x424629(0xe4)]=qs[_0x424629(0xe4)](_0x2e757f[_0x424629(0x12b)][_0x424629(0xe4)])),_0x377fbe[_0x424629(0x111)](_0x4d2615);})['then'](function(_0xc71d04){if(_0xc71d04)return _0xc71d04?{'count':_0x2d426c,'rows':_0xc71d04}:null;})[_0x20111f(0x124)](respondWithResult(_0x3e64d3,null))[_0x20111f(0x140)](handleError(_0x3e64d3,null));},exports['addTeams']=function(_0x2d375c,_0x15072f){const _0x1a7583=a967_0x3665bd,_0x2884f1=_0x2d375c[_0x1a7583(0x117)][_0x1a7583(0x14d)];return db[_0x1a7583(0xeb)][_0x1a7583(0x126)]({'where':{'id':_0x2884f1},'attributes':['id'],'include':[{'model':db[_0x1a7583(0x11d)],'as':_0x1a7583(0xec),'attributes':['id',_0x1a7583(0x145),_0x1a7583(0xfe),'voicePause','interface'],'raw':!![]}]})[_0x1a7583(0x124)](function(_0x1c9582){const _0xc29654=_0x1a7583;if(_0x1c9582){const _0x1d71cb=_[_0xc29654(0xfc)](_0x1c9582,function(_0x5398a6){const _0x1a5c03=_0x5398a6['get']({'plain':!![]});return _0x1a5c03['Agents'];});return db[_0xc29654(0x139)][_0xc29654(0xf7)]({'where':{'id':_0x2d375c[_0xc29654(0x122)]['id']}})['then'](function(_0x48ce8f){const _0x188fc3=_0xc29654;return db['sequelize'][_0x188fc3(0x10b)](function(_0x45f57f){const _0x3c71b3=_0x188fc3;return _0x48ce8f[_0x3c71b3(0x130)](_0x2884f1,{'transaction':_0x45f57f})[_0x3c71b3(0x124)](function(){const _0x3918f6=_0x3c71b3;return Promise[_0x3918f6(0x12e)](_0x1d71cb[_0x3918f6(0x135)](_0x9fa9fd=>{const _0x5ebe9f=_0x3918f6;return db[_0x5ebe9f(0x14a)][_0x5ebe9f(0x13a)]({'where':{'UserId':_0x9fa9fd['id'],'WhatsappQueueId':_0x2d375c['params']['id']},'transaction':_0x45f57f});}));})[_0x3c71b3(0x124)](function(){_0x1d71cb['forEach'](function(_0x26f040){const _0x55debd=a967_0x55ca;socket[_0x55debd(0x102)](_0x55debd(0xf5),{'UserId':_0x26f040['id'],'WhatsappQueueId':_0x48ce8f['id']});});});});});}})[_0x1a7583(0x124)](respondWithStatusCode(_0x15072f,null))[_0x1a7583(0x140)](handleError(_0x15072f,null));},exports[a967_0x3665bd(0x141)]=function(_0x3378be,_0x580f0c){const _0x9cdea4=a967_0x3665bd;return db['Team'][_0x9cdea4(0x126)]({'where':{'id':_0x3378be[_0x9cdea4(0x12b)][_0x9cdea4(0x14d)]},'attributes':['id'],'include':[{'model':db[_0x9cdea4(0x11d)],'as':_0x9cdea4(0xec),'attributes':['id'],'raw':!![]}]})[_0x9cdea4(0x124)](handleEntityNotFound(_0x580f0c,null))[_0x9cdea4(0x124)](function(_0x4ea232){const _0x3debdf=_0x9cdea4,_0x5278ee=_[_0x3debdf(0x135)](_0x4ea232,'id');let _0x126c08=[];const _0x1dbfde=[],_0x43d775=squel[_0x3debdf(0x136)]();_0x43d775[_0x3debdf(0x10f)](_0x3debdf(0xef))['from'](_0x3debdf(0x11e),'tq')[_0x3debdf(0xf4)](_0x3debdf(0x14b),'ut',_0x3debdf(0x12f))[_0x3debdf(0x107)]('WhatsappQueueId\x20=\x20?',_0x3378be['params']['id']);for(let _0xd3bb66=0x0;_0xd3bb66<_0x4ea232['length'];_0xd3bb66+=0x1){const _0x5ea439=_0x4ea232[_0xd3bb66];for(let _0x1cde67=0x0;_0x1cde67<_0x5ea439[_0x3debdf(0xec)][_0x3debdf(0x132)];_0x1cde67+=0x1){const _0x2b8432=_0x5ea439['Agents'][_0x1cde67],_0x2c28e1=_0x43d775[_0x3debdf(0x128)]();_0x2c28e1[_0x3debdf(0x107)]('ut.UserId\x20=\x20?',_0x2b8432['id']),_0x1dbfde[_0x3debdf(0x14e)](db[_0x3debdf(0x106)][_0x3debdf(0x12b)](_0x2c28e1[_0x3debdf(0x110)](),{'type':QueryTypes[_0x3debdf(0x13c)]})[_0x3debdf(0x124)](function(_0x227934){const _0x4b74fc=_0x3debdf;if(_0x227934[_0x4b74fc(0x132)]===0x1)return _0x2b8432['id'];else{const _0x3ca5c6=_[_0x4b74fc(0xf2)](_[_0x4b74fc(0x135)](_0x227934,_0x4b74fc(0x148)),function(_0x26d6f4){return _['includes'](_0x5278ee,_0x26d6f4);});if(_0x3ca5c6)return _0x2b8432['id'];}}));}}return Promise['all'](_0x1dbfde)[_0x3debdf(0x124)](function(_0x248275){const _0x14a1aa=_0x3debdf;return _0x126c08=_(_0x126c08)[_0x14a1aa(0x131)](_0x248275)['compact']()[_0x14a1aa(0xfa)](),db['WhatsappQueue'][_0x14a1aa(0xf7)]({'where':{'id':_0x3378be[_0x14a1aa(0x122)]['id']}})[_0x14a1aa(0x124)](function(_0x1b2bd0){const _0x80d034=_0x14a1aa;return db[_0x80d034(0x106)][_0x80d034(0x10b)](function(_0x1456e6){const _0x12dfa6=_0x80d034;return _0x1b2bd0[_0x12dfa6(0x141)](_0x3378be[_0x12dfa6(0x12b)][_0x12dfa6(0x14d)],{'transaction':_0x1456e6})['then'](function(){const _0x51c929=_0x12dfa6;if(!_[_0x51c929(0x109)](_0x126c08))return _0x1b2bd0[_0x51c929(0x101)](_0x126c08,{'transaction':_0x1456e6});})[_0x12dfa6(0x124)](function(){_0x126c08['forEach'](function(_0x357bfb){const _0x3c5327=a967_0x55ca;socket[_0x3c5327(0x102)]('userWhatsappQueue:remove',{'UserId':_0x357bfb,'WhatsappQueueId':_0x1b2bd0['id']});});});});});});})[_0x9cdea4(0x124)](respondWithStatusCode(_0x580f0c,null))[_0x9cdea4(0x140)](handleError(_0x580f0c,null));},exports[a967_0x3665bd(0x129)]=function(_0x1f57f2,_0x1fdff2){const _0x3d4237=a967_0x3665bd;return db[_0x3d4237(0x139)]['findOne']({'where':{'id':_0x1f57f2[_0x3d4237(0x122)]['id']}})['then'](function(_0x9d3230){const _0x418dd5=_0x3d4237;if(_0x9d3230)return _0x9d3230[_0x418dd5(0x129)](_0x1f57f2[_0x418dd5(0x117)]['ids'],{'through':_[_0x418dd5(0x10a)](_0x1f57f2[_0x418dd5(0x117)],[_0x418dd5(0x14d),'id'])})['then'](function(_0x450026){const _0xdaf01a=_0x418dd5;for(let _0x10d505=0x0;_0x10d505<_0x1f57f2['body']['ids'][_0xdaf01a(0x132)];_0x10d505+=0x1){socket['emit'](_0xdaf01a(0xf5),{'UserId':_0x1f57f2[_0xdaf01a(0x117)][_0xdaf01a(0x14d)][_0x10d505],'WhatsappQueueId':_0x1f57f2[_0xdaf01a(0x122)]['id']});}return _0x450026;});})[_0x3d4237(0x124)](respondWithResult(_0x1fdff2,null))[_0x3d4237(0x140)](handleError(_0x1fdff2,null));},exports[a967_0x3665bd(0x101)]=function(_0x76015c,_0x47660f){const _0x4c3ce8=a967_0x3665bd;return db['WhatsappQueue'][_0x4c3ce8(0xf7)]({'where':{'id':_0x76015c[_0x4c3ce8(0x122)]['id']}})[_0x4c3ce8(0x124)](handleEntityNotFound(_0x47660f,null))[_0x4c3ce8(0x124)](function(_0x5e1f52){const _0x59653a=_0x4c3ce8;if(_0x5e1f52)return _0x5e1f52['removeAgents'](_0x76015c[_0x59653a(0x12b)][_0x59653a(0x14d)])[_0x59653a(0x124)](function(){const _0x51d2eb=_0x59653a;if(_['isArray'](_0x76015c[_0x51d2eb(0x12b)][_0x51d2eb(0x14d)]))for(let _0x45afc1=0x0;_0x45afc1<_0x76015c['query'][_0x51d2eb(0x14d)][_0x51d2eb(0x132)];_0x45afc1+=0x1){socket[_0x51d2eb(0x102)]('userWhatsappQueue:remove',{'UserId':Number(_0x76015c[_0x51d2eb(0x12b)][_0x51d2eb(0x14d)][_0x45afc1]),'WhatsappQueueId':Number(_0x76015c[_0x51d2eb(0x122)]['id'])});}else socket[_0x51d2eb(0x102)](_0x51d2eb(0xea),{'UserId':Number(_0x76015c['query'][_0x51d2eb(0x14d)]),'WhatsappQueueId':Number(_0x76015c[_0x51d2eb(0x122)]['id'])});});})[_0x4c3ce8(0x124)](respondWithStatusCode(_0x47660f,null))[_0x4c3ce8(0x140)](handleError(_0x47660f,null));},exports['getAgents']=function(_0x16e891,_0x6dec73){const _0x560286=a967_0x3665bd;let _0x3490f5={};const _0x12ca26={};let _0x1b0bd3,_0x22af21;return db['WhatsappQueue'][_0x560286(0xf7)]({'where':{'id':_0x16e891[_0x560286(0x122)]['id']}})[_0x560286(0x124)](handleEntityNotFound(_0x6dec73,null))[_0x560286(0x124)](function(_0x2af92d){const _0x5e547e=_0x560286;if(_0x2af92d)return _0x1b0bd3=_0x2af92d,_0x12ca26[_0x5e547e(0xf1)]=_['keys'](db[_0x5e547e(0x11d)][_0x5e547e(0x11b)]),_0x12ca26['query']=_[_0x5e547e(0x149)](_0x16e891['query']),_0x12ca26[_0x5e547e(0x105)]=_[_0x5e547e(0x150)](_0x12ca26['model'],_0x12ca26[_0x5e547e(0x12b)]),_0x3490f5['attributes']=_[_0x5e547e(0x150)](_0x12ca26[_0x5e547e(0xf1)],qs['fields'](_0x16e891['query'][_0x5e547e(0xff)])),_0x3490f5[_0x5e547e(0x116)]=_0x3490f5[_0x5e547e(0x116)][_0x5e547e(0x132)]?_0x3490f5[_0x5e547e(0x116)]:_0x12ca26[_0x5e547e(0xf1)],_0x3490f5['order']=qs[_0x5e547e(0x12a)](_0x16e891[_0x5e547e(0x12b)][_0x5e547e(0x12a)]),_0x3490f5[_0x5e547e(0x107)]=qs[_0x5e547e(0x105)](_['pick'](_0x16e891[_0x5e547e(0x12b)],_0x12ca26[_0x5e547e(0x105)])),_0x16e891[_0x5e547e(0x12b)]['filter']&&(_0x3490f5[_0x5e547e(0x107)]=_[_0x5e547e(0xe9)](_0x3490f5[_0x5e547e(0x107)],{[Op['or']]:_[_0x5e547e(0x135)](_0x3490f5[_0x5e547e(0x116)],function(_0x58d60a){const _0x5db3ab=_0x5e547e,_0x2c8f88={};return _0x2c8f88[_0x58d60a]={[Op[_0x5db3ab(0x13e)]]:'%'+_0x16e891[_0x5db3ab(0x12b)][_0x5db3ab(0xe7)]+'%'},_0x2c8f88;})})),_0x3490f5=_[_0x5e547e(0xe9)]({},_0x3490f5,_0x16e891[_0x5e547e(0x153)]),_0x1b0bd3[_0x5e547e(0x11f)](_0x3490f5);})[_0x560286(0x124)](function(_0x46b68a){const _0x8795f9=_0x560286;if(_0x46b68a)return _0x22af21=_0x46b68a[_0x8795f9(0x132)],typeof _0x16e891[_0x8795f9(0x12b)][_0x8795f9(0x134)]===_0x8795f9(0x147)&&(_0x3490f5[_0x8795f9(0x113)]=qs[_0x8795f9(0x113)](_0x16e891['query'][_0x8795f9(0x113)]),_0x3490f5[_0x8795f9(0xe4)]=qs[_0x8795f9(0xe4)](_0x16e891['query'][_0x8795f9(0xe4)])),_0x1b0bd3[_0x8795f9(0x11f)](_0x3490f5);})['then'](function(_0x591c55){if(_0x591c55)return _0x591c55?{'count':_0x22af21,'rows':_0x591c55}:null;})[_0x560286(0x124)](respondWithResult(_0x6dec73,null))['catch'](handleError(_0x6dec73,null));}; \ No newline at end of file diff --git a/server/api/whatsappQueue/whatsappQueue.events.js b/server/api/whatsappQueue/whatsappQueue.events.js index 2eccd34..5101155 100644 --- a/server/api/whatsappQueue/whatsappQueue.events.js +++ b/server/api/whatsappQueue/whatsappQueue.events.js @@ -1 +1 @@ -const a809_0x479a=['save','../../mysqldb','events','emit','undefined','remove','WhatsappQueue','exports','addHook','setMaxListeners'];(function(_0x231f10,_0x479a38){const _0x28df83=function(_0x5e593a){while(--_0x5e593a){_0x231f10['push'](_0x231f10['shift']());}};_0x28df83(++_0x479a38);}(a809_0x479a,0x13e));const a809_0x28df=function(_0x231f10,_0x479a38){_0x231f10=_0x231f10-0x0;let _0x28df83=a809_0x479a[_0x231f10];return _0x28df83;};const _0x27c830=a809_0x28df;'use strict';const EventEmitter=require(_0x27c830('0x4')),WhatsappQueue=require(_0x27c830('0x3'))['db'][_0x27c830('0x8')],WhatsappQueueEvents=new EventEmitter();WhatsappQueueEvents[_0x27c830('0x1')](0x0);const events={'afterCreate':_0x27c830('0x2'),'afterUpdate':'update','afterDestroy':_0x27c830('0x7')};function emitEvent(_0x5e593a){return function(_0x44250c){const _0x5eb69b=a809_0x28df;WhatsappQueueEvents[_0x5eb69b('0x5')](_0x5e593a+':'+_0x44250c['id'],_0x44250c),WhatsappQueueEvents[_0x5eb69b('0x5')](_0x5e593a,_0x44250c);};}for(const e in events){if(typeof events[e]!==_0x27c830('0x6')){const event=events[e];WhatsappQueue[_0x27c830('0x0')](e,emitEvent(event));}}module[_0x27c830('0x9')]=WhatsappQueueEvents; \ No newline at end of file +const a968_0x1860=['WhatsappQueue','remove','../../mysqldb','emit','exports','update','events','setMaxListeners','addHook','save'];(function(_0x2f91d0,_0x5724fd){const _0x1860c3=function(_0x3279c0){while(--_0x3279c0){_0x2f91d0['push'](_0x2f91d0['shift']());}};_0x1860c3(++_0x5724fd);}(a968_0x1860,0x82));const a968_0x3279=function(_0x2f91d0,_0x5724fd){_0x2f91d0=_0x2f91d0-0x175;let _0x1860c3=a968_0x1860[_0x2f91d0];return _0x1860c3;};const a968_0x268237=a968_0x3279;'use strict';const EventEmitter=require(a968_0x268237(0x17b)),WhatsappQueue=require(a968_0x268237(0x177))['db'][a968_0x268237(0x175)],WhatsappQueueEvents=new EventEmitter();WhatsappQueueEvents[a968_0x268237(0x17c)](0x0);const events={'afterCreate':a968_0x268237(0x17e),'afterUpdate':a968_0x268237(0x17a),'afterDestroy':a968_0x268237(0x176)};function emitEvent(_0x5a7304){return function(_0x5148f4){const _0x36d5d1=a968_0x3279;WhatsappQueueEvents[_0x36d5d1(0x178)](_0x5a7304+':'+_0x5148f4['id'],_0x5148f4),WhatsappQueueEvents[_0x36d5d1(0x178)](_0x5a7304,_0x5148f4);};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];WhatsappQueue[a968_0x268237(0x17d)](e,emitEvent(event));}}module[a968_0x268237(0x179)]=WhatsappQueueEvents; \ No newline at end of file diff --git a/server/api/whatsappQueue/whatsappQueue.model.js b/server/api/whatsappQueue/whatsappQueue.model.js index a6ce798..afce04a 100644 --- a/server/api/whatsappQueue/whatsappQueue.model.js +++ b/server/api/whatsappQueue/whatsappQueue.model.js @@ -1 +1 @@ -const a810_0x22f1=['WhatsappQueue','define','exports'];(function(_0x1db88c,_0x22f1be){const _0x225c4e=function(_0x35d123){while(--_0x35d123){_0x1db88c['push'](_0x1db88c['shift']());}};_0x225c4e(++_0x22f1be);}(a810_0x22f1,0x17b));const a810_0x225c=function(_0x1db88c,_0x22f1be){_0x1db88c=_0x1db88c-0x0;let _0x225c4e=a810_0x22f1[_0x1db88c];return _0x225c4e;};const _0x419ffa=a810_0x225c;'use strict';const attributes=require('./whatsappQueue.attributes');module[_0x419ffa('0x1')]=function(_0x35d123){const _0x3838a6=_0x419ffa,_0x29e6b2=_0x35d123[_0x3838a6('0x0')](_0x3838a6('0x2'),attributes,{'tableName':'whatsapp_queues','paranoid':![],'indexes':[],'timestamps':!![]});return _0x29e6b2;}; \ No newline at end of file +const a969_0x3574=['function','./whatsappQueue.attributes','init','WhatsappQueue','exports','./whatsappQueue.options','sequelize'];(function(_0x51fca0,_0x5a41d4){const _0x3574a1=function(_0x1f55ce){while(--_0x1f55ce){_0x51fca0['push'](_0x51fca0['shift']());}};_0x3574a1(++_0x5a41d4);}(a969_0x3574,0x8b));const a969_0x1f55=function(_0x51fca0,_0x5a41d4){_0x51fca0=_0x51fca0-0xe1;let _0x3574a1=a969_0x3574[_0x51fca0];return _0x3574a1;};const a969_0x337783=a969_0x1f55;'use strict';const {Model}=require(a969_0x337783(0xe1)),{attributes}=require(a969_0x337783(0xe3)),{options}=require(a969_0x337783(0xe7));class WhatsappQueue extends Model{}function init(_0x214f18,_0x2460c6){const _0xfd1a10=a969_0x337783,_0x75fbf2=options(_0x214f18),_0x5e8959=typeof _0x2460c6===_0xfd1a10(0xe2)?_0x2460c6(_0x75fbf2):_0x75fbf2;return WhatsappQueue[_0xfd1a10(0xe4)](attributes,_0x5e8959),WhatsappQueue;}module[a969_0x337783(0xe6)][a969_0x337783(0xe5)]=WhatsappQueue,module['exports']['init']=init; \ No newline at end of file diff --git a/server/api/whatsappQueue/whatsappQueue.options.js b/server/api/whatsappQueue/whatsappQueue.options.js new file mode 100644 index 0000000..9d18a12 --- /dev/null +++ b/server/api/whatsappQueue/whatsappQueue.options.js @@ -0,0 +1 @@ +var a970_0x1403=['exports','whatsapp_queues','options'];(function(_0x10e8c9,_0x225d2a){var _0x140382=function(_0x4e1da7){while(--_0x4e1da7){_0x10e8c9['push'](_0x10e8c9['shift']());}};_0x140382(++_0x225d2a);}(a970_0x1403,0xf3));var a970_0x4e1d=function(_0x10e8c9,_0x225d2a){_0x10e8c9=_0x10e8c9-0x19d;var _0x140382=a970_0x1403[_0x10e8c9];return _0x140382;};var a970_0x1dfbd0=a970_0x4e1d;function options(_0x3a9583){var _0x339adf=a970_0x4e1d;return{'sequelize':_0x3a9583,'tableName':_0x339adf(0x19e),'paranoid':![],'indexes':[],'timestamps':!![]};}module[a970_0x1dfbd0(0x19d)][a970_0x1dfbd0(0x19f)]=options; \ No newline at end of file diff --git a/server/api/whatsappQueue/whatsappQueue.rpc.js b/server/api/whatsappQueue/whatsappQueue.rpc.js index 9497784..9424de5 100644 --- a/server/api/whatsappQueue/whatsappQueue.rpc.js +++ b/server/api/whatsappQueue/whatsappQueue.rpc.js @@ -1 +1 @@ -const a811_0x57b7=['model','raw','lodash','rpc','map','message','ShowWhatsappQueue','then','include','stringify','../../config/logger','../../rediscache','./whatsappQueue.socket','register','where','catch','findAll','attributes','findOne','limit','info','error','GetWhatsappQueue','options','debug','WhatsappQueue'];(function(_0x1ec97c,_0x57b732){const _0xa0d9c7=function(_0x2e20a0){while(--_0x2e20a0){_0x1ec97c['push'](_0x1ec97c['shift']());}};_0xa0d9c7(++_0x57b732);}(a811_0x57b7,0x1ed));const a811_0xa0d9=function(_0x1ec97c,_0x57b732){_0x1ec97c=_0x1ec97c-0x0;let _0xa0d9c7=a811_0x57b7[_0x1ec97c];return _0xa0d9c7;};const _0x2d1819=a811_0xa0d9;'use strict';const _=require(_0x2d1819('0x3')),db=require('../../mysqldb')['db'],logger=require(_0x2d1819('0xb'))(_0x2d1819('0x4')),{getSocket}=require(_0x2d1819('0xc')),socket=getSocket();require(_0x2d1819('0xd'))[_0x2d1819('0xe')](socket),exports[_0x2d1819('0x17')]=function(_0x2e20a0){const _0x39611d=this;return new Promise(function(_0x4a7621,_0x54cbc0){const _0x2402c7=a811_0xa0d9;return db[_0x2402c7('0x0')][_0x2402c7('0x11')]({'raw':_0x2e20a0['options']?_0x2e20a0[_0x2402c7('0x18')][_0x2402c7('0x2')]===undefined?!![]:![]:!![],'where':_0x2e20a0['options']?_0x2e20a0[_0x2402c7('0x18')][_0x2402c7('0xf')]||null:null,'attributes':_0x2e20a0[_0x2402c7('0x18')]?_0x2e20a0[_0x2402c7('0x18')]['attributes']||null:null,'limit':_0x2e20a0[_0x2402c7('0x18')]?_0x2e20a0['options'][_0x2402c7('0x14')]||null:null,'include':_0x2e20a0[_0x2402c7('0x18')]?_0x2e20a0[_0x2402c7('0x18')]['include']?_['map'](_0x2e20a0[_0x2402c7('0x18')][_0x2402c7('0x9')],function(_0x2f5764){const _0x39b03d=_0x2402c7;return{'model':db[_0x2f5764[_0x39b03d('0x1')]],'as':_0x2f5764['as'],'attributes':_0x2f5764[_0x39b03d('0x12')],'include':_0x2f5764[_0x39b03d('0x9')]?_[_0x39b03d('0x5')](_0x2f5764[_0x39b03d('0x9')],function(_0x4f1bd0){const _0x180c85=_0x39b03d;return{'model':db[_0x4f1bd0['model']],'as':_0x4f1bd0['as'],'attributes':_0x4f1bd0[_0x180c85('0x12')],'include':_0x4f1bd0['include']?_[_0x180c85('0x5')](_0x4f1bd0['include'],function(_0x57af61){const _0x46f451=_0x180c85;return{'model':db[_0x57af61[_0x46f451('0x1')]],'as':_0x57af61['as'],'attributes':_0x57af61['attributes']};}):[]};}):[]};}):[]:[]})[_0x2402c7('0x8')](function(_0x5d7743){const _0x358cd7=_0x2402c7;logger[_0x358cd7('0x15')](_0x358cd7('0x17'),_0x2e20a0),logger[_0x358cd7('0x19')](_0x358cd7('0x17'),_0x2e20a0,JSON['stringify'](_0x5d7743)),_0x4a7621(_0x5d7743);})[_0x2402c7('0x10')](function(_0x49fe05){const _0x4b96cc=_0x2402c7;logger[_0x4b96cc('0x16')](_0x4b96cc('0x17'),_0x49fe05['message'],_0x2e20a0),_0x54cbc0(_0x39611d[_0x4b96cc('0x16')](0x1f4,_0x49fe05[_0x4b96cc('0x6')]));});});},exports[_0x2d1819('0x7')]=function(_0x1e25a2){const _0x38fb62=this;return new Promise(function(_0x32d8d0,_0x5dc863){const _0x2c4f65=a811_0xa0d9;return db['WhatsappQueue'][_0x2c4f65('0x13')]({'raw':_0x1e25a2[_0x2c4f65('0x18')]?_0x1e25a2[_0x2c4f65('0x18')][_0x2c4f65('0x2')]===undefined?!![]:![]:!![],'where':_0x1e25a2[_0x2c4f65('0x18')]?_0x1e25a2[_0x2c4f65('0x18')][_0x2c4f65('0xf')]||null:null,'attributes':_0x1e25a2[_0x2c4f65('0x18')]?_0x1e25a2[_0x2c4f65('0x18')][_0x2c4f65('0x12')]||null:null,'include':_0x1e25a2[_0x2c4f65('0x18')]?_0x1e25a2[_0x2c4f65('0x18')][_0x2c4f65('0x9')]?_[_0x2c4f65('0x5')](_0x1e25a2[_0x2c4f65('0x18')][_0x2c4f65('0x9')],function(_0x19179e){const _0xeeb01b=_0x2c4f65;return{'model':db[_0x19179e[_0xeeb01b('0x1')]],'as':_0x19179e['as'],'attributes':_0x19179e[_0xeeb01b('0x12')],'include':_0x19179e[_0xeeb01b('0x9')]?_['map'](_0x19179e['include'],function(_0x39f42e){const _0x471853=_0xeeb01b;return{'model':db[_0x39f42e[_0x471853('0x1')]],'as':_0x39f42e['as'],'attributes':_0x39f42e['attributes'],'include':_0x39f42e[_0x471853('0x9')]?_[_0x471853('0x5')](_0x39f42e[_0x471853('0x9')],function(_0x343b9d){const _0xb26f26=_0x471853;return{'model':db[_0x343b9d[_0xb26f26('0x1')]],'as':_0x343b9d['as'],'attributes':_0x343b9d[_0xb26f26('0x12')]};}):[]};}):[]};}):[]:[]})[_0x2c4f65('0x8')](function(_0x528f58){const _0x15ad5b=_0x2c4f65;logger[_0x15ad5b('0x15')](_0x15ad5b('0x7'),_0x1e25a2),logger[_0x15ad5b('0x19')](_0x15ad5b('0x7'),_0x1e25a2,JSON[_0x15ad5b('0xa')](_0x528f58)),_0x32d8d0(_0x528f58);})['catch'](function(_0x56133a){const _0x5d5a28=_0x2c4f65;logger[_0x5d5a28('0x16')](_0x5d5a28('0x7'),_0x56133a[_0x5d5a28('0x6')],_0x1e25a2),_0x5dc863(_0x38fb62[_0x5d5a28('0x16')](0x1f4,_0x56133a[_0x5d5a28('0x6')]));});});}; \ No newline at end of file +const a971_0x1ed5=['ShowWhatsappQueue','message','../../rediscache','attributes','lodash','GetWhatsappQueue','catch','then','model','map','rpc','../../mysqldb','include','raw','options','debug','error','stringify','info','where','limit','WhatsappQueue'];(function(_0x2def3a,_0x38d74e){const _0x1ed5bd=function(_0x676d3f){while(--_0x676d3f){_0x2def3a['push'](_0x2def3a['shift']());}};_0x1ed5bd(++_0x38d74e);}(a971_0x1ed5,0xe7));const a971_0x676d=function(_0x2def3a,_0x38d74e){_0x2def3a=_0x2def3a-0x1ec;let _0x1ed5bd=a971_0x1ed5[_0x2def3a];return _0x1ed5bd;};const a971_0x486dbf=a971_0x676d;'use strict';const _=require(a971_0x486dbf(0x1fb)),db=require(a971_0x486dbf(0x1ec))['db'],logger=require('../../config/logger')(a971_0x486dbf(0x201)),{getSocket}=require(a971_0x486dbf(0x1f9)),socket=getSocket();require('./whatsappQueue.socket')['register'](socket),exports['GetWhatsappQueue']=function(_0x147592){const _0x14317c=this;return new Promise(function(_0x4b335e,_0x6bd091){const _0x1c9143=a971_0x676d;return db[_0x1c9143(0x1f6)]['findAll']({'raw':_0x147592[_0x1c9143(0x1ef)]?_0x147592['options']['raw']===undefined?!![]:![]:!![],'where':_0x147592[_0x1c9143(0x1ef)]?_0x147592[_0x1c9143(0x1ef)]['where']||null:null,'attributes':_0x147592[_0x1c9143(0x1ef)]?_0x147592['options'][_0x1c9143(0x1fa)]||null:null,'limit':_0x147592['options']?_0x147592[_0x1c9143(0x1ef)][_0x1c9143(0x1f5)]||null:null,'include':_0x147592[_0x1c9143(0x1ef)]?_0x147592['options'][_0x1c9143(0x1ed)]?_['map'](_0x147592[_0x1c9143(0x1ef)][_0x1c9143(0x1ed)],function(_0x55a9a7){const _0x136d80=_0x1c9143;return{'model':db[_0x55a9a7[_0x136d80(0x1ff)]],'as':_0x55a9a7['as'],'attributes':_0x55a9a7[_0x136d80(0x1fa)],'include':_0x55a9a7['include']?_[_0x136d80(0x200)](_0x55a9a7['include'],function(_0x180134){const _0x565e11=_0x136d80;return{'model':db[_0x180134[_0x565e11(0x1ff)]],'as':_0x180134['as'],'attributes':_0x180134['attributes'],'include':_0x180134[_0x565e11(0x1ed)]?_['map'](_0x180134[_0x565e11(0x1ed)],function(_0x544ed2){const _0x41b4bf=_0x565e11;return{'model':db[_0x544ed2[_0x41b4bf(0x1ff)]],'as':_0x544ed2['as'],'attributes':_0x544ed2[_0x41b4bf(0x1fa)]};}):[]};}):[]};}):[]:[]})[_0x1c9143(0x1fe)](function(_0x59c093){const _0x4fe85b=_0x1c9143;logger[_0x4fe85b(0x1f3)](_0x4fe85b(0x1fc),_0x147592),logger['debug'](_0x4fe85b(0x1fc),_0x147592,JSON[_0x4fe85b(0x1f2)](_0x59c093)),_0x4b335e(_0x59c093);})['catch'](function(_0x232ada){const _0x40ae8d=_0x1c9143;logger[_0x40ae8d(0x1f1)](_0x40ae8d(0x1fc),_0x232ada[_0x40ae8d(0x1f8)],_0x147592),_0x6bd091(_0x14317c[_0x40ae8d(0x1f1)](0x1f4,_0x232ada[_0x40ae8d(0x1f8)]));});});},exports[a971_0x486dbf(0x1f7)]=function(_0x5afb19){const _0x2eeaeb=this;return new Promise(function(_0x59b841,_0x26e11c){const _0x29e6f8=a971_0x676d;return db[_0x29e6f8(0x1f6)]['findOne']({'raw':_0x5afb19[_0x29e6f8(0x1ef)]?_0x5afb19[_0x29e6f8(0x1ef)][_0x29e6f8(0x1ee)]===undefined?!![]:![]:!![],'where':_0x5afb19[_0x29e6f8(0x1ef)]?_0x5afb19['options'][_0x29e6f8(0x1f4)]||null:null,'attributes':_0x5afb19[_0x29e6f8(0x1ef)]?_0x5afb19[_0x29e6f8(0x1ef)][_0x29e6f8(0x1fa)]||null:null,'include':_0x5afb19['options']?_0x5afb19[_0x29e6f8(0x1ef)][_0x29e6f8(0x1ed)]?_[_0x29e6f8(0x200)](_0x5afb19['options']['include'],function(_0x37ed79){const _0x5a60b6=_0x29e6f8;return{'model':db[_0x37ed79['model']],'as':_0x37ed79['as'],'attributes':_0x37ed79[_0x5a60b6(0x1fa)],'include':_0x37ed79[_0x5a60b6(0x1ed)]?_[_0x5a60b6(0x200)](_0x37ed79['include'],function(_0x55690d){const _0xe76d7f=_0x5a60b6;return{'model':db[_0x55690d['model']],'as':_0x55690d['as'],'attributes':_0x55690d['attributes'],'include':_0x55690d['include']?_['map'](_0x55690d[_0xe76d7f(0x1ed)],function(_0x1269f0){const _0xb8a2c9=_0xe76d7f;return{'model':db[_0x1269f0[_0xb8a2c9(0x1ff)]],'as':_0x1269f0['as'],'attributes':_0x1269f0['attributes']};}):[]};}):[]};}):[]:[]})[_0x29e6f8(0x1fe)](function(_0x25f860){const _0x34098e=_0x29e6f8;logger[_0x34098e(0x1f3)](_0x34098e(0x1f7),_0x5afb19),logger[_0x34098e(0x1f0)]('ShowWhatsappQueue',_0x5afb19,JSON[_0x34098e(0x1f2)](_0x25f860)),_0x59b841(_0x25f860);})[_0x29e6f8(0x1fd)](function(_0x6557b9){const _0x229d52=_0x29e6f8;logger[_0x229d52(0x1f1)]('ShowWhatsappQueue',_0x6557b9['message'],_0x5afb19),_0x26e11c(_0x2eeaeb[_0x229d52(0x1f1)](0x1f4,_0x6557b9['message']));});});}; \ No newline at end of file diff --git a/server/api/whatsappQueue/whatsappQueue.socket.js b/server/api/whatsappQueue/whatsappQueue.socket.js index f8b853b..2f007b2 100644 --- a/server/api/whatsappQueue/whatsappQueue.socket.js +++ b/server/api/whatsappQueue/whatsappQueue.socket.js @@ -1 +1 @@ -const a812_0x3050=['update','length','whatsappQueue:','save','./whatsappQueue.events','register','remove'];(function(_0x28c3b8,_0x3050a6){const _0x2e6d4d=function(_0x394cc8){while(--_0x394cc8){_0x28c3b8['push'](_0x28c3b8['shift']());}};_0x2e6d4d(++_0x3050a6);}(a812_0x3050,0x99));const a812_0x2e6d=function(_0x28c3b8,_0x3050a6){_0x28c3b8=_0x28c3b8-0x0;let _0x2e6d4d=a812_0x3050[_0x28c3b8];return _0x2e6d4d;};const _0x73da25=a812_0x2e6d;'use strict';const WhatsappQueueEvents=require(_0x73da25('0x5')),events=[_0x73da25('0x4'),_0x73da25('0x0'),_0x73da25('0x1')];function createListener(_0x394cc8,_0x46b0a4){return function(_0x2f1a4){_0x46b0a4['emit'](_0x394cc8,_0x2f1a4);};}exports[_0x73da25('0x6')]=function(_0x7722fd){const _0x291c91=_0x73da25;for(let _0x310084=0x0,_0x47bc0a=events[_0x291c91('0x2')];_0x310084<_0x47bc0a;_0x310084++){const _0xdf15d2=events[_0x310084],_0x5b52ee=createListener(_0x291c91('0x3')+_0xdf15d2,_0x7722fd);WhatsappQueueEvents['on'](_0xdf15d2,_0x5b52ee);}}; \ No newline at end of file +const a972_0x5827=['emit','length','save','remove','./whatsappQueue.events','update'];(function(_0x27f2e6,_0x4f8297){const _0x58270c=function(_0x8f3162){while(--_0x8f3162){_0x27f2e6['push'](_0x27f2e6['shift']());}};_0x58270c(++_0x4f8297);}(a972_0x5827,0x13d));const a972_0x8f31=function(_0x27f2e6,_0x4f8297){_0x27f2e6=_0x27f2e6-0x85;let _0x58270c=a972_0x5827[_0x27f2e6];return _0x58270c;};const a972_0x8bd365=a972_0x8f31;'use strict';const WhatsappQueueEvents=require(a972_0x8bd365(0x8a)),events=[a972_0x8bd365(0x88),a972_0x8bd365(0x89),a972_0x8bd365(0x85)];function createListener(_0x28c58d,_0x57d4ef){return function(_0x3e8062){const _0x1ad948=a972_0x8f31;_0x57d4ef[_0x1ad948(0x86)](_0x28c58d,_0x3e8062);};}exports['register']=function(_0x3b7837){const _0x5adcbe=a972_0x8bd365;for(let _0xa7044d=0x0,_0x1e2fe3=events[_0x5adcbe(0x87)];_0xa7044d<_0x1e2fe3;_0xa7044d++){const _0x2c34d4=events[_0xa7044d],_0x2843e0=createListener('whatsappQueue:'+_0x2c34d4,_0x3b7837);WhatsappQueueEvents['on'](_0x2c34d4,_0x2843e0);}}; \ No newline at end of file diff --git a/server/api/whatsappQueueReport/index.js b/server/api/whatsappQueueReport/index.js index 460574c..000de14 100644 --- a/server/api/whatsappQueueReport/index.js +++ b/server/api/whatsappQueueReport/index.js @@ -1 +1 @@ -const a813_0x2347=['describe','/:id','express','destroy','index','isAuthenticated','post','/describe','create','get','put','delete'];(function(_0x470e80,_0x234777){const _0x132970=function(_0x15888a){while(--_0x15888a){_0x470e80['push'](_0x470e80['shift']());}};_0x132970(++_0x234777);}(a813_0x2347,0x85));const a813_0x1329=function(_0x470e80,_0x234777){_0x470e80=_0x470e80-0x0;let _0x132970=a813_0x2347[_0x470e80];return _0x132970;};const _0x38439f=a813_0x1329;'use strict';const express=require(_0x38439f('0x1')),router=express['Router'](),auth=require('../../components/auth/service'),controller=require('./whatsappQueueReport.controller');router[_0x38439f('0x8')]('/',auth[_0x38439f('0x4')](),controller[_0x38439f('0x3')]),router[_0x38439f('0x8')](_0x38439f('0x6'),auth[_0x38439f('0x4')](),controller[_0x38439f('0xb')]),router[_0x38439f('0x8')](_0x38439f('0x0'),auth[_0x38439f('0x4')](),controller['show']),router[_0x38439f('0x5')]('/',auth['isAuthenticated'](),controller[_0x38439f('0x7')]),router[_0x38439f('0x9')]('/:id',auth[_0x38439f('0x4')](),controller['update']),router[_0x38439f('0xa')](_0x38439f('0x0'),auth[_0x38439f('0x4')](),controller[_0x38439f('0x2')]),module['exports']=router; \ No newline at end of file +const a973_0x5db5=['/:id','put','isAuthenticated','create','post','show','update','express','Router','get','describe'];(function(_0x5a018a,_0x569320){const _0x5db54a=function(_0x3daaab){while(--_0x3daaab){_0x5a018a['push'](_0x5a018a['shift']());}};_0x5db54a(++_0x569320);}(a973_0x5db5,0x160));const a973_0x3daa=function(_0x5a018a,_0x569320){_0x5a018a=_0x5a018a-0xed;let _0x5db54a=a973_0x5db5[_0x5a018a];return _0x5db54a;};const a973_0x33683b=a973_0x3daa;'use strict';const express=require(a973_0x33683b(0xf4)),router=express[a973_0x33683b(0xf5)](),auth=require('../../components/auth/service'),controller=require('./whatsappQueueReport.controller');router[a973_0x33683b(0xf6)]('/',auth[a973_0x33683b(0xef)](),controller['index']),router[a973_0x33683b(0xf6)]('/describe',auth[a973_0x33683b(0xef)](),controller[a973_0x33683b(0xf7)]),router[a973_0x33683b(0xf6)](a973_0x33683b(0xed),auth[a973_0x33683b(0xef)](),controller[a973_0x33683b(0xf2)]),router[a973_0x33683b(0xf1)]('/',auth[a973_0x33683b(0xef)](),controller[a973_0x33683b(0xf0)]),router[a973_0x33683b(0xee)](a973_0x33683b(0xed),auth[a973_0x33683b(0xef)](),controller[a973_0x33683b(0xf3)]),router['delete'](a973_0x33683b(0xed),auth[a973_0x33683b(0xef)](),controller['destroy']),module['exports']=router; \ No newline at end of file diff --git a/server/api/whatsappQueueReport/whatsappQueueReport.attributes.js b/server/api/whatsappQueueReport/whatsappQueueReport.attributes.js index 350c6de..a7e8354 100644 --- a/server/api/whatsappQueueReport/whatsappQueueReport.attributes.js +++ b/server/api/whatsappQueueReport/whatsappQueueReport.attributes.js @@ -1 +1 @@ -const a814_0x37ad=['STRING','sequelize','DATE'];(function(_0x1c6a7b,_0x37ad02){const _0x26c3db=function(_0x1d75b2){while(--_0x1d75b2){_0x1c6a7b['push'](_0x1c6a7b['shift']());}};_0x26c3db(++_0x37ad02);}(a814_0x37ad,0x162));const a814_0x26c3=function(_0x1c6a7b,_0x37ad02){_0x1c6a7b=_0x1c6a7b-0x0;let _0x26c3db=a814_0x37ad[_0x1c6a7b];return _0x26c3db;};const _0x4948a3=a814_0x26c3;'use strict';const Sequelize=require(_0x4948a3('0x1'));module['exports']={'uniqueid':{'type':Sequelize[_0x4948a3('0x0')],'allowNull':![]},'from':{'type':Sequelize['STRING']},'joinAt':{'type':Sequelize[_0x4948a3('0x2')]},'leaveAt':{'type':Sequelize[_0x4948a3('0x2')]},'acceptAt':{'type':Sequelize[_0x4948a3('0x2')]},'exitAt':{'type':Sequelize[_0x4948a3('0x2')]},'reason':{'type':Sequelize['STRING']}}; \ No newline at end of file +const a974_0x24d6=['exports','DATE','STRING'];(function(_0x3ae6b5,_0x863ce){const _0x24d696=function(_0x5425e5){while(--_0x5425e5){_0x3ae6b5['push'](_0x3ae6b5['shift']());}};_0x24d696(++_0x863ce);}(a974_0x24d6,0x1df));const a974_0x5425=function(_0x3ae6b5,_0x863ce){_0x3ae6b5=_0x3ae6b5-0x198;let _0x24d696=a974_0x24d6[_0x3ae6b5];return _0x24d696;};const a974_0x3b4e44=a974_0x5425;'use strict';const {DataTypes}=require('sequelize'),attributes={'uniqueid':{'type':DataTypes[a974_0x3b4e44(0x198)],'allowNull':![]},'from':{'type':DataTypes[a974_0x3b4e44(0x198)]},'joinAt':{'type':DataTypes['DATE']},'leaveAt':{'type':DataTypes['DATE']},'acceptAt':{'type':DataTypes[a974_0x3b4e44(0x19a)]},'exitAt':{'type':DataTypes[a974_0x3b4e44(0x19a)]},'reason':{'type':DataTypes[a974_0x3b4e44(0x198)]}};module[a974_0x3b4e44(0x199)]['attributes']=attributes; \ No newline at end of file diff --git a/server/api/whatsappQueueReport/whatsappQueueReport.controller.js b/server/api/whatsappQueueReport/whatsappQueueReport.controller.js index 4cdee71..b7bf1cf 100644 --- a/server/api/whatsappQueueReport/whatsappQueueReport.controller.js +++ b/server/api/whatsappQueueReport/whatsappQueueReport.controller.js @@ -1 +1 @@ -const a815_0x1378=['../../components/parsers/qs','describe','Content-Range','length','offset','sort','../../config/logger','lodash','key','intersection','attributes','WhatsappQueueReport','sequelize','query','findAll','limit','body','VIRTUAL','fields','includeAll','where','json','merge','rows','filter','set','then','type','name','error','order','include','update','send','count','model','keys','stack','show','findOne','filters','create','like','api','map','params','status','catch','rawAttributes','undefined','destroy'];(function(_0x8322fd,_0x13786b){const _0x62a706=function(_0x282431){while(--_0x282431){_0x8322fd['push'](_0x8322fd['shift']());}};_0x62a706(++_0x13786b);}(a815_0x1378,0xc1));const a815_0x62a7=function(_0x8322fd,_0x13786b){_0x8322fd=_0x8322fd-0x0;let _0x62a706=a815_0x1378[_0x8322fd];return _0x62a706;};const _0x555cc9=a815_0x62a7;'use strict';const _=require(_0x555cc9('0x12')),qs=require(_0x555cc9('0xb')),logger=require(_0x555cc9('0x11'))(_0x555cc9('0x3')),db=require('../../mysqldb')['db'],{Op}=require(_0x555cc9('0x17'));function respondWithResult(_0x282431,_0x43e8e8){return _0x43e8e8=_0x43e8e8||0xc8,function(_0x3c5389){const _0x33aead=a815_0x62a7;if(_0x3c5389)return _0x282431[_0x33aead('0x6')](_0x43e8e8)['json'](_0x3c5389);};}function respondWithFilteredResult(_0x87f6e4,_0x23f54c){return function(_0x2c6c4a){const _0x5227e4=a815_0x62a7;if(_0x2c6c4a){const _0x579e1c=_0x2c6c4a[_0x5227e4('0x2d')],_0x5d3ca5=_0x23f54c[_0x5227e4('0xf')];let _0x723e38=_0x23f54c[_0x5227e4('0xf')]+_0x23f54c['limit'],_0x1bc211;return _0x723e38>=_0x579e1c?(_0x723e38=_0x579e1c,_0x1bc211=0xc8):_0x1bc211=0xce,_0x87f6e4[_0x5227e4('0x6')](_0x1bc211),_0x87f6e4[_0x5227e4('0x24')](_0x5227e4('0xd'),_0x5d3ca5+'-'+_0x723e38+'/'+_0x579e1c)[_0x5227e4('0x20')](_0x2c6c4a);}return null;};}function saveUpdates(_0x31eb9c){return function(_0x33ca8e){const _0x4fac78=a815_0x62a7;if(_0x33ca8e)return _0x33ca8e[_0x4fac78('0x2b')](_0x31eb9c)[_0x4fac78('0x25')](function(_0x498b6f){return _0x498b6f;});return null;};}function removeEntity(_0x5ddbdb){return function(_0x701fd){const _0x4852d1=a815_0x62a7;if(_0x701fd)return _0x701fd[_0x4852d1('0xa')]()[_0x4852d1('0x25')](function(){const _0x521e58=_0x4852d1;_0x5ddbdb[_0x521e58('0x6')](0xcc)['end']();});};}function handleEntityNotFound(_0xcdd191){return function(_0x86a67f){return!_0x86a67f&&_0xcdd191['sendStatus'](0x194),_0x86a67f;};}function handleError(_0x18dbe0,_0x437310){return _0x437310=_0x437310||0x1f4,function(_0x5ea17c){const _0x7b9bbe=a815_0x62a7;logger[_0x7b9bbe('0x28')](_0x5ea17c[_0x7b9bbe('0x30')]),_0x5ea17c[_0x7b9bbe('0x27')]&&delete _0x5ea17c[_0x7b9bbe('0x27')],_0x18dbe0[_0x7b9bbe('0x6')](_0x437310)[_0x7b9bbe('0x2c')](_0x5ea17c);};}exports['index']=function(_0x66faae,_0x2bd734){const _0x49bd21=_0x555cc9;let _0x55078d={};const _0x3c3d36={},_0x410af5={'count':0x0,'rows':[]},_0x41a183=_['map'](db[_0x49bd21('0x16')][_0x49bd21('0x8')],function(_0x124dfd){const _0x736140=_0x49bd21;return{'name':_0x124dfd['fieldName'],'type':_0x124dfd[_0x736140('0x26')][_0x736140('0x13')]};});_0x3c3d36[_0x49bd21('0x2e')]=_[_0x49bd21('0x4')](_0x41a183,_0x49bd21('0x27')),_0x3c3d36['query']=_[_0x49bd21('0x2f')](_0x66faae['query']),_0x3c3d36[_0x49bd21('0x0')]=_['intersection'](_0x3c3d36[_0x49bd21('0x2e')],_0x3c3d36[_0x49bd21('0x18')]),_0x55078d[_0x49bd21('0x15')]=_[_0x49bd21('0x14')](_0x3c3d36[_0x49bd21('0x2e')],qs['fields'](_0x66faae['query'][_0x49bd21('0x1d')])),_0x55078d[_0x49bd21('0x15')]=_0x55078d[_0x49bd21('0x15')][_0x49bd21('0xe')]?_0x55078d[_0x49bd21('0x15')]:_0x3c3d36[_0x49bd21('0x2e')];typeof _0x66faae['query']['nolimit']===_0x49bd21('0x9')&&(_0x55078d['limit']=qs[_0x49bd21('0x1a')](_0x66faae['query']['limit']),_0x55078d['offset']=qs[_0x49bd21('0xf')](_0x66faae[_0x49bd21('0x18')]['offset']));_0x55078d[_0x49bd21('0x29')]=qs[_0x49bd21('0x10')](_0x66faae[_0x49bd21('0x18')][_0x49bd21('0x10')]),_0x55078d[_0x49bd21('0x1f')]=qs[_0x49bd21('0x0')](_['pick'](_0x66faae[_0x49bd21('0x18')],_0x3c3d36['filters']),_0x41a183);_0x66faae[_0x49bd21('0x18')][_0x49bd21('0x23')]&&(_0x55078d['where']=_[_0x49bd21('0x21')](_0x55078d['where'],{[Op['or']]:_[_0x49bd21('0x4')](_0x41a183,function(_0x3f75ef){const _0x3b7bcb=_0x49bd21;if(_0x3f75ef['type']!==_0x3b7bcb('0x1c')){const _0x5ed1a6={};return _0x5ed1a6[_0x3f75ef[_0x3b7bcb('0x27')]]={[Op[_0x3b7bcb('0x2')]]:'%'+_0x66faae[_0x3b7bcb('0x18')]['filter']+'%'},_0x5ed1a6;}})}));_0x55078d=_[_0x49bd21('0x21')]({},_0x55078d,_0x66faae['options']);const _0xca66e9={'where':_0x55078d[_0x49bd21('0x1f')]};return db[_0x49bd21('0x16')][_0x49bd21('0x2d')](_0xca66e9)['then'](function(_0xeeadc3){const _0x1d77e7=_0x49bd21;return _0x410af5[_0x1d77e7('0x2d')]=_0xeeadc3,_0x66faae[_0x1d77e7('0x18')]['includeAll']&&(_0x55078d[_0x1d77e7('0x2a')]=[{'all':!![]}]),db[_0x1d77e7('0x16')][_0x1d77e7('0x19')](_0x55078d);})[_0x49bd21('0x25')](function(_0x4fc0f3){const _0x1812e4=_0x49bd21;return _0x410af5[_0x1812e4('0x22')]=_0x4fc0f3,_0x410af5;})[_0x49bd21('0x25')](respondWithFilteredResult(_0x2bd734,_0x55078d))['catch'](handleError(_0x2bd734,null));},exports[_0x555cc9('0x31')]=function(_0x346a72,_0x2c24c5){const _0x4f2462=_0x555cc9;let _0x145309={'raw':!![],'where':{'id':_0x346a72[_0x4f2462('0x5')]['id']}};const _0x1f7b40={};return _0x1f7b40[_0x4f2462('0x2e')]=_[_0x4f2462('0x2f')](db['WhatsappQueueReport']['rawAttributes']),_0x1f7b40[_0x4f2462('0x18')]=_['keys'](_0x346a72[_0x4f2462('0x18')]),_0x1f7b40[_0x4f2462('0x0')]=_['intersection'](_0x1f7b40['model'],_0x1f7b40[_0x4f2462('0x18')]),_0x145309['attributes']=_[_0x4f2462('0x14')](_0x1f7b40['model'],qs['fields'](_0x346a72[_0x4f2462('0x18')][_0x4f2462('0x1d')])),_0x145309[_0x4f2462('0x15')]=_0x145309[_0x4f2462('0x15')][_0x4f2462('0xe')]?_0x145309[_0x4f2462('0x15')]:_0x1f7b40[_0x4f2462('0x2e')],_0x346a72[_0x4f2462('0x18')][_0x4f2462('0x1e')]&&(_0x145309[_0x4f2462('0x2a')]=[{'all':!![]}]),_0x145309=_['merge']({},_0x145309,_0x346a72['options']),db[_0x4f2462('0x16')][_0x4f2462('0x32')](_0x145309)[_0x4f2462('0x25')](handleEntityNotFound(_0x2c24c5,null))[_0x4f2462('0x25')](respondWithResult(_0x2c24c5,null))[_0x4f2462('0x7')](handleError(_0x2c24c5,null));},exports[_0x555cc9('0x1')]=function(_0x433769,_0x1b49d1){const _0x120293=_0x555cc9;return db[_0x120293('0x16')][_0x120293('0x1')](_0x433769[_0x120293('0x1b')],{})[_0x120293('0x25')](respondWithResult(_0x1b49d1,0xc9))['catch'](handleError(_0x1b49d1,null));},exports[_0x555cc9('0x2b')]=function(_0x3a6d07,_0x2db793){const _0x4dbba6=_0x555cc9;return _0x3a6d07['body']['id']&&delete _0x3a6d07[_0x4dbba6('0x1b')]['id'],db[_0x4dbba6('0x16')][_0x4dbba6('0x32')]({'where':{'id':_0x3a6d07['params']['id']}})[_0x4dbba6('0x25')](handleEntityNotFound(_0x2db793,null))[_0x4dbba6('0x25')](saveUpdates(_0x3a6d07[_0x4dbba6('0x1b')],null))[_0x4dbba6('0x25')](respondWithResult(_0x2db793,null))[_0x4dbba6('0x7')](handleError(_0x2db793,null));},exports[_0x555cc9('0xa')]=function(_0x2f2be1,_0x10a95d){const _0x37e710=_0x555cc9;return db['WhatsappQueueReport'][_0x37e710('0x32')]({'where':{'id':_0x2f2be1[_0x37e710('0x5')]['id']}})[_0x37e710('0x25')](handleEntityNotFound(_0x10a95d,null))[_0x37e710('0x25')](removeEntity(_0x10a95d,null))[_0x37e710('0x7')](handleError(_0x10a95d,null));},exports[_0x555cc9('0xc')]=function(_0x26c156,_0xc6a1bc){const _0x17a619=_0x555cc9;return db['WhatsappQueueReport'][_0x17a619('0xc')]()[_0x17a619('0x25')](respondWithResult(_0xc6a1bc,null))[_0x17a619('0x7')](handleError(_0xc6a1bc,null));}; \ No newline at end of file +const a975_0x4f17=['name','where','stack','index','sendStatus','fieldName','map','intersection','query','../../components/parsers/qs','filter','model','../../mysqldb','params','lodash','show','error','findAll','filters','VIRTUAL','limit','key','update','pick','then','sequelize','offset','status','length','include','includeAll','options','count','like','create','keys','nolimit','type','describe','catch','sort','attributes','merge','destroy','end','fields','findOne','WhatsappQueueReport','body','order'];(function(_0x348e11,_0xfe896a){const _0x4f1774=function(_0x598aff){while(--_0x598aff){_0x348e11['push'](_0x348e11['shift']());}};_0x4f1774(++_0xfe896a);}(a975_0x4f17,0x11f));const a975_0x598a=function(_0x348e11,_0xfe896a){_0x348e11=_0x348e11-0xda;let _0x4f1774=a975_0x4f17[_0x348e11];return _0x4f1774;};const a975_0x53dfdd=a975_0x598a;'use strict';const _=require(a975_0x53dfdd(0xf5)),qs=require(a975_0x53dfdd(0xf0)),logger=require('../../config/logger')('api'),{db}=require(a975_0x53dfdd(0xf3)),{Op}=require(a975_0x53dfdd(0x100));function respondWithResult(_0x2a2f31,_0x504531){return _0x504531=_0x504531||0xc8,function(_0x7d7c4c){const _0x2189fa=a975_0x598a;if(_0x7d7c4c)return _0x2a2f31[_0x2189fa(0x102)](_0x504531)['json'](_0x7d7c4c);};}function respondWithFilteredResult(_0x1fe8b0,_0xb5e610){return function(_0x56a72a){const _0x238bee=a975_0x598a;if(_0x56a72a){const _0x1af0fa=_0x56a72a[_0x238bee(0x107)],_0x3a30ed=_0xb5e610['offset'];let _0x442cab=_0xb5e610[_0x238bee(0x101)]+_0xb5e610[_0x238bee(0xfb)],_0x224d2c;return _0x442cab>=_0x1af0fa?(_0x442cab=_0x1af0fa,_0x224d2c=0xc8):_0x224d2c=0xce,_0x1fe8b0[_0x238bee(0x102)](_0x224d2c),_0x1fe8b0['set']('Content-Range',_0x3a30ed+'-'+_0x442cab+'/'+_0x1af0fa)['json'](_0x56a72a);}return null;};}function saveUpdates(_0x53e4f3){return function(_0x42f89c){const _0x49dda6=a975_0x598a;if(_0x42f89c)return _0x42f89c[_0x49dda6(0xfd)](_0x53e4f3)['then'](function(_0x36e093){return _0x36e093;});return null;};}function removeEntity(_0x338405){return function(_0x29f679){const _0x397ca5=a975_0x598a;if(_0x29f679)return _0x29f679[_0x397ca5(0xe0)]()[_0x397ca5(0xff)](function(){const _0x5df76b=_0x397ca5;_0x338405[_0x5df76b(0x102)](0xcc)[_0x5df76b(0xe1)]();});};}function handleEntityNotFound(_0x25f40b){return function(_0x43bed7){const _0x47f43d=a975_0x598a;return!_0x43bed7&&_0x25f40b[_0x47f43d(0xeb)](0x194),_0x43bed7;};}function handleError(_0x99fb07,_0x5a77f0){return _0x5a77f0=_0x5a77f0||0x1f4,function(_0xb55ad){const _0x3830a3=a975_0x598a;logger[_0x3830a3(0xf7)](_0xb55ad[_0x3830a3(0xe9)]),_0xb55ad['name']&&delete _0xb55ad[_0x3830a3(0xe7)],_0x99fb07[_0x3830a3(0x102)](_0x5a77f0)['send'](_0xb55ad);};}exports[a975_0x53dfdd(0xea)]=function(_0x582534,_0x1dda2b){const _0x1535e7=a975_0x53dfdd;let _0x3e2890={};const _0x4176a0={},_0x4e322a={'count':0x0,'rows':[]},_0xacf58a=_[_0x1535e7(0xed)](db[_0x1535e7(0xe4)]['rawAttributes'],function(_0x581a58){const _0x5c3152=_0x1535e7;return{'name':_0x581a58[_0x5c3152(0xec)],'type':_0x581a58[_0x5c3152(0xda)][_0x5c3152(0xfc)]};});_0x4176a0[_0x1535e7(0xf2)]=_[_0x1535e7(0xed)](_0xacf58a,_0x1535e7(0xe7)),_0x4176a0[_0x1535e7(0xef)]=_[_0x1535e7(0x10a)](_0x582534[_0x1535e7(0xef)]),_0x4176a0[_0x1535e7(0xf9)]=_[_0x1535e7(0xee)](_0x4176a0[_0x1535e7(0xf2)],_0x4176a0['query']),_0x3e2890[_0x1535e7(0xde)]=_['intersection'](_0x4176a0[_0x1535e7(0xf2)],qs[_0x1535e7(0xe2)](_0x582534['query'][_0x1535e7(0xe2)])),_0x3e2890[_0x1535e7(0xde)]=_0x3e2890['attributes'][_0x1535e7(0x103)]?_0x3e2890[_0x1535e7(0xde)]:_0x4176a0['model'];typeof _0x582534[_0x1535e7(0xef)][_0x1535e7(0x10b)]==='undefined'&&(_0x3e2890[_0x1535e7(0xfb)]=qs['limit'](_0x582534['query'][_0x1535e7(0xfb)]),_0x3e2890[_0x1535e7(0x101)]=qs[_0x1535e7(0x101)](_0x582534[_0x1535e7(0xef)]['offset']));_0x3e2890[_0x1535e7(0xe6)]=qs[_0x1535e7(0xdd)](_0x582534[_0x1535e7(0xef)]['sort']),_0x3e2890['where']=qs[_0x1535e7(0xf9)](_[_0x1535e7(0xfe)](_0x582534[_0x1535e7(0xef)],_0x4176a0[_0x1535e7(0xf9)]),_0xacf58a);_0x582534[_0x1535e7(0xef)][_0x1535e7(0xf1)]&&(_0x3e2890[_0x1535e7(0xe8)]=_[_0x1535e7(0xdf)](_0x3e2890[_0x1535e7(0xe8)],{[Op['or']]:_[_0x1535e7(0xed)](_0xacf58a,function(_0x56e378){const _0x17ba3e=_0x1535e7;if(_0x56e378[_0x17ba3e(0xda)]!==_0x17ba3e(0xfa)){const _0x12722a={};return _0x12722a[_0x56e378[_0x17ba3e(0xe7)]]={[Op[_0x17ba3e(0x108)]]:'%'+_0x582534[_0x17ba3e(0xef)][_0x17ba3e(0xf1)]+'%'},_0x12722a;}})}));_0x3e2890=_[_0x1535e7(0xdf)]({},_0x3e2890,_0x582534[_0x1535e7(0x106)]);const _0x570aeb={'where':_0x3e2890[_0x1535e7(0xe8)]};return db[_0x1535e7(0xe4)][_0x1535e7(0x107)](_0x570aeb)[_0x1535e7(0xff)](function(_0x30933a){const _0x13e08b=_0x1535e7;return _0x4e322a[_0x13e08b(0x107)]=_0x30933a,_0x582534[_0x13e08b(0xef)]['includeAll']&&(_0x3e2890[_0x13e08b(0x104)]=[{'all':!![]}]),db[_0x13e08b(0xe4)][_0x13e08b(0xf8)](_0x3e2890);})[_0x1535e7(0xff)](function(_0x4804df){return _0x4e322a['rows']=_0x4804df,_0x4e322a;})[_0x1535e7(0xff)](respondWithFilteredResult(_0x1dda2b,_0x3e2890))[_0x1535e7(0xdc)](handleError(_0x1dda2b,null));},exports[a975_0x53dfdd(0xf6)]=function(_0x5c3fe2,_0x382bac){const _0x4d5655=a975_0x53dfdd;let _0x5701e8={'raw':!![],'where':{'id':_0x5c3fe2[_0x4d5655(0xf4)]['id']}};const _0x1d8a86={};return _0x1d8a86[_0x4d5655(0xf2)]=_[_0x4d5655(0x10a)](db[_0x4d5655(0xe4)]['rawAttributes']),_0x1d8a86['query']=_[_0x4d5655(0x10a)](_0x5c3fe2[_0x4d5655(0xef)]),_0x1d8a86['filters']=_[_0x4d5655(0xee)](_0x1d8a86['model'],_0x1d8a86['query']),_0x5701e8['attributes']=_['intersection'](_0x1d8a86['model'],qs[_0x4d5655(0xe2)](_0x5c3fe2[_0x4d5655(0xef)][_0x4d5655(0xe2)])),_0x5701e8[_0x4d5655(0xde)]=_0x5701e8[_0x4d5655(0xde)][_0x4d5655(0x103)]?_0x5701e8[_0x4d5655(0xde)]:_0x1d8a86[_0x4d5655(0xf2)],_0x5c3fe2[_0x4d5655(0xef)][_0x4d5655(0x105)]&&(_0x5701e8['include']=[{'all':!![]}]),_0x5701e8=_['merge']({},_0x5701e8,_0x5c3fe2[_0x4d5655(0x106)]),db['WhatsappQueueReport']['findOne'](_0x5701e8)['then'](handleEntityNotFound(_0x382bac,null))[_0x4d5655(0xff)](respondWithResult(_0x382bac,null))[_0x4d5655(0xdc)](handleError(_0x382bac,null));},exports[a975_0x53dfdd(0x109)]=function(_0x5dfde5,_0x23bd81){const _0x485281=a975_0x53dfdd;return db[_0x485281(0xe4)][_0x485281(0x109)](_0x5dfde5[_0x485281(0xe5)],{})[_0x485281(0xff)](respondWithResult(_0x23bd81,0xc9))[_0x485281(0xdc)](handleError(_0x23bd81,null));},exports['update']=function(_0xbf0396,_0x4d8ea6){const _0x45326e=a975_0x53dfdd;return _0xbf0396[_0x45326e(0xe5)]['id']&&delete _0xbf0396[_0x45326e(0xe5)]['id'],db['WhatsappQueueReport'][_0x45326e(0xe3)]({'where':{'id':_0xbf0396[_0x45326e(0xf4)]['id']}})[_0x45326e(0xff)](handleEntityNotFound(_0x4d8ea6,null))[_0x45326e(0xff)](saveUpdates(_0xbf0396[_0x45326e(0xe5)],null))['then'](respondWithResult(_0x4d8ea6,null))[_0x45326e(0xdc)](handleError(_0x4d8ea6,null));},exports[a975_0x53dfdd(0xe0)]=function(_0x420e3a,_0x4baaa5){const _0x1078f6=a975_0x53dfdd;return db[_0x1078f6(0xe4)][_0x1078f6(0xe3)]({'where':{'id':_0x420e3a[_0x1078f6(0xf4)]['id']}})[_0x1078f6(0xff)](handleEntityNotFound(_0x4baaa5,null))['then'](removeEntity(_0x4baaa5,null))[_0x1078f6(0xdc)](handleError(_0x4baaa5,null));},exports[a975_0x53dfdd(0xdb)]=function(_0x389bec,_0xf52425){const _0x2c8e1c=a975_0x53dfdd;return db[_0x2c8e1c(0xe4)][_0x2c8e1c(0xdb)]()['then'](respondWithResult(_0xf52425,null))[_0x2c8e1c(0xdc)](handleError(_0xf52425,null));}; \ No newline at end of file diff --git a/server/api/whatsappQueueReport/whatsappQueueReport.model.js b/server/api/whatsappQueueReport/whatsappQueueReport.model.js index 731834f..8b1a99c 100644 --- a/server/api/whatsappQueueReport/whatsappQueueReport.model.js +++ b/server/api/whatsappQueueReport/whatsappQueueReport.model.js @@ -1 +1 @@ -const a816_0x53d3=['report_whatsapp_queue','define','./whatsappQueueReport.attributes','uniqueid','exports'];(function(_0x574c7f,_0x53d37c){const _0x5ceb02=function(_0x1f66ea){while(--_0x1f66ea){_0x574c7f['push'](_0x574c7f['shift']());}};_0x5ceb02(++_0x53d37c);}(a816_0x53d3,0x18a));const a816_0x5ceb=function(_0x574c7f,_0x53d37c){_0x574c7f=_0x574c7f-0x0;let _0x5ceb02=a816_0x53d3[_0x574c7f];return _0x5ceb02;};const _0x44050f=a816_0x5ceb;'use strict';const attributes=require(_0x44050f('0x3'));module[_0x44050f('0x0')]=function(_0x1f66ea){const _0x1ebfe9=_0x44050f,_0x5aa316=_0x1f66ea[_0x1ebfe9('0x2')]('WhatsappQueueReport',attributes,{'tableName':_0x1ebfe9('0x1'),'paranoid':![],'indexes':[{'name':_0x1ebfe9('0x4'),'fields':[_0x1ebfe9('0x4')]}],'timestamps':!![]});return _0x5aa316;}; \ No newline at end of file +const a976_0x540d=['./whatsappQueueReport.attributes','init','./whatsappQueueReport.options','sequelize','exports','function'];(function(_0xe11346,_0x27a6e5){const _0x540d87=function(_0x15836d){while(--_0x15836d){_0xe11346['push'](_0xe11346['shift']());}};_0x540d87(++_0x27a6e5);}(a976_0x540d,0x17a));const a976_0x1583=function(_0xe11346,_0x27a6e5){_0xe11346=_0xe11346-0x96;let _0x540d87=a976_0x540d[_0xe11346];return _0x540d87;};const a976_0x2afcda=a976_0x1583;'use strict';const {Model}=require(a976_0x2afcda(0x99)),{attributes}=require(a976_0x2afcda(0x96)),{options}=require(a976_0x2afcda(0x98));class WhatsappQueueReport extends Model{}function init(_0x2f9ce0,_0x4b529e){const _0x28eedf=a976_0x2afcda,_0x2928f6=options(_0x2f9ce0),_0xd3a24=typeof _0x4b529e===_0x28eedf(0x9b)?_0x4b529e(_0x2928f6):_0x2928f6;return WhatsappQueueReport[_0x28eedf(0x97)](attributes,_0xd3a24),WhatsappQueueReport;}module[a976_0x2afcda(0x9a)]['WhatsappQueueReport']=WhatsappQueueReport,module[a976_0x2afcda(0x9a)][a976_0x2afcda(0x97)]=init; \ No newline at end of file diff --git a/server/api/whatsappQueueReport/whatsappQueueReport.options.js b/server/api/whatsappQueueReport/whatsappQueueReport.options.js new file mode 100644 index 0000000..c637f79 --- /dev/null +++ b/server/api/whatsappQueueReport/whatsappQueueReport.options.js @@ -0,0 +1 @@ +var a977_0x41ad=['uniqueid','options'];(function(_0x1c7e7d,_0x12c47e){var _0x41adc4=function(_0xc99232){while(--_0xc99232){_0x1c7e7d['push'](_0x1c7e7d['shift']());}};_0x41adc4(++_0x12c47e);}(a977_0x41ad,0xa6));var a977_0xc992=function(_0x1c7e7d,_0x12c47e){_0x1c7e7d=_0x1c7e7d-0x12b;var _0x41adc4=a977_0x41ad[_0x1c7e7d];return _0x41adc4;};var a977_0x5e7bfa=a977_0xc992;function options(_0x38d7cc){var _0xac0669=a977_0xc992;return{'sequelize':_0x38d7cc,'tableName':'report_whatsapp_queue','paranoid':![],'indexes':[{'name':'uniqueid','fields':[_0xac0669(0x12b)]}],'timestamps':!![]};}module['exports'][a977_0x5e7bfa(0x12c)]=options; \ No newline at end of file diff --git a/server/api/whatsappQueueReport/whatsappQueueReport.rpc.js b/server/api/whatsappQueueReport/whatsappQueueReport.rpc.js index 1b2a12f..19a0b14 100644 --- a/server/api/whatsappQueueReport/whatsappQueueReport.rpc.js +++ b/server/api/whatsappQueueReport/whatsappQueueReport.rpc.js @@ -1 +1 @@ -const a817_0x2590=['info','stringify','error','CreateWhatsappQueueReport','attributes','update','message','then','../../mysqldb','raw','where','rpc','UpdateWhatsappQueueReport','body','options','catch','limit','../../config/logger','debug','WhatsappQueueReport','create'];(function(_0x403a06,_0x25907e){const _0x5763a6=function(_0x1017e8){while(--_0x1017e8){_0x403a06['push'](_0x403a06['shift']());}};_0x5763a6(++_0x25907e);}(a817_0x2590,0xf5));const a817_0x5763=function(_0x403a06,_0x25907e){_0x403a06=_0x403a06-0x0;let _0x5763a6=a817_0x2590[_0x403a06];return _0x5763a6;};const _0x20db2d=a817_0x5763;'use strict';const db=require(_0x20db2d('0xf'))['db'],logger=require(_0x20db2d('0x3'))(_0x20db2d('0x12'));exports[_0x20db2d('0xa')]=function(_0x1017e8){const _0x20112b=this;return new Promise(function(_0x30e10c,_0x2c4130){const _0x271fd8=a817_0x5763;return db['WhatsappQueueReport'][_0x271fd8('0x6')](_0x1017e8[_0x271fd8('0x14')],{'raw':_0x1017e8[_0x271fd8('0x0')]?_0x1017e8['options'][_0x271fd8('0x10')]===undefined?!![]:![]:!![]})[_0x271fd8('0xe')](function(_0x296168){const _0x29b652=_0x271fd8;logger['info'](_0x29b652('0xa'),_0x1017e8),logger['debug'](_0x29b652('0xa'),_0x1017e8,JSON[_0x29b652('0x8')](_0x296168)),_0x30e10c(_0x296168);})[_0x271fd8('0x1')](function(_0x49d457){const _0x4a3321=_0x271fd8;logger[_0x4a3321('0x9')](_0x4a3321('0xa'),_0x49d457[_0x4a3321('0xd')],_0x1017e8),_0x2c4130(_0x20112b['error'](0x1f4,_0x49d457[_0x4a3321('0xd')]));});});},exports['UpdateWhatsappQueueReport']=function(_0x40ec8d){const _0x3ae35d=this;return new Promise(function(_0x56533e,_0x1de17e){const _0x5e7d45=a817_0x5763;return db[_0x5e7d45('0x5')][_0x5e7d45('0xc')](_0x40ec8d[_0x5e7d45('0x14')],{'raw':_0x40ec8d['options']?_0x40ec8d[_0x5e7d45('0x0')][_0x5e7d45('0x10')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x40ec8d[_0x5e7d45('0x0')]?_0x40ec8d['options'][_0x5e7d45('0x11')]||null:null,'attributes':_0x40ec8d[_0x5e7d45('0x0')]?_0x40ec8d['options'][_0x5e7d45('0xb')]||null:null,'limit':_0x40ec8d[_0x5e7d45('0x0')]?_0x40ec8d['options'][_0x5e7d45('0x2')]||null:null})[_0x5e7d45('0xe')](function(_0x8be9e5){const _0x17c25b=_0x5e7d45;logger[_0x17c25b('0x7')](_0x17c25b('0x13'),_0x40ec8d),logger[_0x17c25b('0x4')](_0x17c25b('0x13'),_0x40ec8d,JSON[_0x17c25b('0x8')](_0x8be9e5)),_0x56533e(_0x8be9e5);})[_0x5e7d45('0x1')](function(_0x4f94ba){const _0xbe9f71=_0x5e7d45;logger[_0xbe9f71('0x9')](_0xbe9f71('0x13'),_0x4f94ba['message'],_0x40ec8d),_0x1de17e(_0x3ae35d[_0xbe9f71('0x9')](0x1f4,_0x4f94ba[_0xbe9f71('0xd')]));});});}; \ No newline at end of file +const a978_0x12a0=['error','debug','catch','update','create','info','../../config/logger','limit','raw','options','stringify','CreateWhatsappQueueReport','message','UpdateWhatsappQueueReport','WhatsappQueueReport','where','then','body','attributes'];(function(_0x1654d3,_0xf103fd){const _0x12a0b2=function(_0x36cc65){while(--_0x36cc65){_0x1654d3['push'](_0x1654d3['shift']());}};_0x12a0b2(++_0xf103fd);}(a978_0x12a0,0x199));const a978_0x36cc=function(_0x1654d3,_0xf103fd){_0x1654d3=_0x1654d3-0x1d3;let _0x12a0b2=a978_0x12a0[_0x1654d3];return _0x12a0b2;};const a978_0x3fd13b=a978_0x36cc;'use strict';const db=require('../../mysqldb')['db'],logger=require(a978_0x3fd13b(0x1e2))('rpc');exports[a978_0x3fd13b(0x1d4)]=function(_0x5d3d6c){const _0x1a25d9=this;return new Promise(function(_0x1fced2,_0x401d34){const _0x322aa2=a978_0x36cc;return db[_0x322aa2(0x1d7)][_0x322aa2(0x1e0)](_0x5d3d6c['body'],{'raw':_0x5d3d6c[_0x322aa2(0x1e5)]?_0x5d3d6c[_0x322aa2(0x1e5)]['raw']===undefined?!![]:![]:!![]})[_0x322aa2(0x1d9)](function(_0x473b8c){const _0x3354a5=_0x322aa2;logger[_0x3354a5(0x1e1)](_0x3354a5(0x1d4),_0x5d3d6c),logger[_0x3354a5(0x1dd)](_0x3354a5(0x1d4),_0x5d3d6c,JSON[_0x3354a5(0x1d3)](_0x473b8c)),_0x1fced2(_0x473b8c);})[_0x322aa2(0x1de)](function(_0x313dab){const _0x2fabf6=_0x322aa2;logger[_0x2fabf6(0x1dc)]('CreateWhatsappQueueReport',_0x313dab[_0x2fabf6(0x1d5)],_0x5d3d6c),_0x401d34(_0x1a25d9[_0x2fabf6(0x1dc)](0x1f4,_0x313dab[_0x2fabf6(0x1d5)]));});});},exports['UpdateWhatsappQueueReport']=function(_0x86fbbf){const _0x4f0041=this;return new Promise(function(_0x4b0eab,_0x1af370){const _0x589927=a978_0x36cc;return db[_0x589927(0x1d7)][_0x589927(0x1df)](_0x86fbbf[_0x589927(0x1da)],{'raw':_0x86fbbf['options']?_0x86fbbf[_0x589927(0x1e5)][_0x589927(0x1e4)]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x86fbbf[_0x589927(0x1e5)]?_0x86fbbf[_0x589927(0x1e5)][_0x589927(0x1d8)]||null:null,'attributes':_0x86fbbf['options']?_0x86fbbf['options'][_0x589927(0x1db)]||null:null,'limit':_0x86fbbf[_0x589927(0x1e5)]?_0x86fbbf['options'][_0x589927(0x1e3)]||null:null})['then'](function(_0x2faa7d){const _0x1cdd96=_0x589927;logger['info']('UpdateWhatsappQueueReport',_0x86fbbf),logger[_0x1cdd96(0x1dd)](_0x1cdd96(0x1d6),_0x86fbbf,JSON[_0x1cdd96(0x1d3)](_0x2faa7d)),_0x4b0eab(_0x2faa7d);})['catch'](function(_0x498d44){const _0x4d343a=_0x589927;logger['error'](_0x4d343a(0x1d6),_0x498d44['message'],_0x86fbbf),_0x1af370(_0x4f0041[_0x4d343a(0x1dc)](0x1f4,_0x498d44['message']));});});}; \ No newline at end of file diff --git a/server/api/whatsappTransferReport/index.js b/server/api/whatsappTransferReport/index.js index c88db1f..890d4eb 100644 --- a/server/api/whatsappTransferReport/index.js +++ b/server/api/whatsappTransferReport/index.js @@ -1 +1 @@ -const a818_0x8b7e=['describe','./whatsappTransferReport.controller','/:id','index','create','destroy','exports','isAuthenticated','get','/describe','post'];(function(_0x9ea5a0,_0x8b7eef){const _0x7a4a33=function(_0x4b5dab){while(--_0x4b5dab){_0x9ea5a0['push'](_0x9ea5a0['shift']());}};_0x7a4a33(++_0x8b7eef);}(a818_0x8b7e,0x129));const a818_0x7a4a=function(_0x9ea5a0,_0x8b7eef){_0x9ea5a0=_0x9ea5a0-0x0;let _0x7a4a33=a818_0x8b7e[_0x9ea5a0];return _0x7a4a33;};const _0x263cc6=a818_0x7a4a;'use strict';const express=require('express'),router=express['Router'](),auth=require('../../components/auth/service'),controller=require(_0x263cc6('0x1'));router[_0x263cc6('0x8')]('/',auth[_0x263cc6('0x7')](),controller[_0x263cc6('0x3')]),router[_0x263cc6('0x8')](_0x263cc6('0x9'),auth[_0x263cc6('0x7')](),controller[_0x263cc6('0x0')]),router[_0x263cc6('0x8')](_0x263cc6('0x2'),auth[_0x263cc6('0x7')](),controller['show']),router[_0x263cc6('0xa')]('/',auth[_0x263cc6('0x7')](),controller[_0x263cc6('0x4')]),router['put'](_0x263cc6('0x2'),auth['isAuthenticated'](),controller['update']),router['delete'](_0x263cc6('0x2'),auth[_0x263cc6('0x7')](),controller[_0x263cc6('0x5')]),module[_0x263cc6('0x6')]=router; \ No newline at end of file +const a979_0x1747=['delete','exports','get','create','../../components/auth/service','isAuthenticated','Router','/describe','index','/:id','post'];(function(_0x4d8b10,_0x1cc29a){const _0x1747bd=function(_0x39924f){while(--_0x39924f){_0x4d8b10['push'](_0x4d8b10['shift']());}};_0x1747bd(++_0x1cc29a);}(a979_0x1747,0x1bb));const a979_0x3992=function(_0x4d8b10,_0x1cc29a){_0x4d8b10=_0x4d8b10-0x11a;let _0x1747bd=a979_0x1747[_0x4d8b10];return _0x1747bd;};const a979_0x192c4b=a979_0x3992;'use strict';const express=require('express'),router=express[a979_0x192c4b(0x11d)](),auth=require(a979_0x192c4b(0x11b)),controller=require('./whatsappTransferReport.controller');router['get']('/',auth[a979_0x192c4b(0x11c)](),controller[a979_0x192c4b(0x11f)]),router[a979_0x192c4b(0x124)](a979_0x192c4b(0x11e),auth['isAuthenticated'](),controller['describe']),router[a979_0x192c4b(0x124)](a979_0x192c4b(0x120),auth[a979_0x192c4b(0x11c)](),controller['show']),router[a979_0x192c4b(0x121)]('/',auth[a979_0x192c4b(0x11c)](),controller[a979_0x192c4b(0x11a)]),router['put']('/:id',auth[a979_0x192c4b(0x11c)](),controller['update']),router[a979_0x192c4b(0x122)](a979_0x192c4b(0x120),auth[a979_0x192c4b(0x11c)](),controller['destroy']),module[a979_0x192c4b(0x123)]=router; \ No newline at end of file diff --git a/server/api/whatsappTransferReport/whatsappTransferReport.attributes.js b/server/api/whatsappTransferReport/whatsappTransferReport.attributes.js index cece26c..d4f9ce2 100644 --- a/server/api/whatsappTransferReport/whatsappTransferReport.attributes.js +++ b/server/api/whatsappTransferReport/whatsappTransferReport.attributes.js @@ -1 +1 @@ -const a819_0x5c07=['STRING','ENUM','queue','DATE','agent','sequelize','exports'];(function(_0x2d96f9,_0x5c07ac){const _0x593960=function(_0x14eea9){while(--_0x14eea9){_0x2d96f9['push'](_0x2d96f9['shift']());}};_0x593960(++_0x5c07ac);}(a819_0x5c07,0xc8));const a819_0x5939=function(_0x2d96f9,_0x5c07ac){_0x2d96f9=_0x2d96f9-0x0;let _0x593960=a819_0x5c07[_0x2d96f9];return _0x593960;};const _0x29ef98=a819_0x5939;'use strict';const Sequelize=require(_0x29ef98('0x1'));module[_0x29ef98('0x2')]={'uniqueid':{'type':Sequelize[_0x29ef98('0x3')],'allowNull':![]},'type':{'type':Sequelize[_0x29ef98('0x4')]('account',_0x29ef98('0x0'),_0x29ef98('0x5')),'allowNull':![]},'transferredAt':{'type':Sequelize[_0x29ef98('0x6')]}}; \ No newline at end of file +const a980_0x329c=['STRING','agent','attributes','exports'];(function(_0x2fdcc2,_0xea1e3d){const _0x329ce2=function(_0x41876b){while(--_0x41876b){_0x2fdcc2['push'](_0x2fdcc2['shift']());}};_0x329ce2(++_0xea1e3d);}(a980_0x329c,0xce));const a980_0x4187=function(_0x2fdcc2,_0xea1e3d){_0x2fdcc2=_0x2fdcc2-0x1d0;let _0x329ce2=a980_0x329c[_0x2fdcc2];return _0x329ce2;};const a980_0x164d66=a980_0x4187;'use strict';const {DataTypes}=require('sequelize'),attributes={'uniqueid':{'type':DataTypes[a980_0x164d66(0x1d2)],'allowNull':![]},'type':{'type':DataTypes['ENUM']('account',a980_0x164d66(0x1d3),'queue'),'allowNull':![]},'transferredAt':{'type':DataTypes['DATE']}};module[a980_0x164d66(0x1d1)][a980_0x164d66(0x1d0)]=attributes; \ No newline at end of file diff --git a/server/api/whatsappTransferReport/whatsappTransferReport.controller.js b/server/api/whatsappTransferReport/whatsappTransferReport.controller.js index fd230c6..59ab3d9 100644 --- a/server/api/whatsappTransferReport/whatsappTransferReport.controller.js +++ b/server/api/whatsappTransferReport/whatsappTransferReport.controller.js @@ -1 +1 @@ -const a820_0x31e7=['lodash','end','map','attributes','findAll','offset','destroy','order','findOne','filters','name','sequelize','error','query','options','describe','set','../../components/parsers/qs','body','type','undefined','Content-Range','intersection','sort','catch','json','merge','../../config/logger','length','nolimit','params','keys','includeAll','sendStatus','model','VIRTUAL','pick','then','status','rows','include','create','WhatsappTransferReport','api','where','rawAttributes','fields','send','key','update','limit','count'];(function(_0xfd8386,_0x31e788){const _0x19dfdc=function(_0x1168f6){while(--_0x1168f6){_0xfd8386['push'](_0xfd8386['shift']());}};_0x19dfdc(++_0x31e788);}(a820_0x31e7,0xef));const a820_0x19df=function(_0xfd8386,_0x31e788){_0xfd8386=_0xfd8386-0x0;let _0x19dfdc=a820_0x31e7[_0xfd8386];return _0x19dfdc;};const _0x255c87=a820_0x19df;'use strict';const _=require(_0x255c87('0x15')),qs=require(_0x255c87('0x26')),logger=require(_0x255c87('0x30'))(_0x255c87('0xc')),db=require('../../mysqldb')['db'],{Op}=require(_0x255c87('0x20'));function respondWithResult(_0x1168f6,_0x531e0a){return _0x531e0a=_0x531e0a||0xc8,function(_0x838f9d){const _0x438be9=a820_0x19df;if(_0x838f9d)return _0x1168f6[_0x438be9('0x7')](_0x531e0a)[_0x438be9('0x2e')](_0x838f9d);};}function respondWithFilteredResult(_0x335471,_0xfb32de){return function(_0x4e394d){const _0x2cd6ca=a820_0x19df;if(_0x4e394d){const _0x2bf62f=_0x4e394d[_0x2cd6ca('0x14')],_0x5a9ba5=_0xfb32de[_0x2cd6ca('0x1a')];let _0x255b62=_0xfb32de[_0x2cd6ca('0x1a')]+_0xfb32de[_0x2cd6ca('0x13')],_0xac0f17;return _0x255b62>=_0x2bf62f?(_0x255b62=_0x2bf62f,_0xac0f17=0xc8):_0xac0f17=0xce,_0x335471[_0x2cd6ca('0x7')](_0xac0f17),_0x335471[_0x2cd6ca('0x25')](_0x2cd6ca('0x2a'),_0x5a9ba5+'-'+_0x255b62+'/'+_0x2bf62f)[_0x2cd6ca('0x2e')](_0x4e394d);}return null;};}function saveUpdates(_0x11a119){return function(_0xcbddfa){const _0x4b8427=a820_0x19df;if(_0xcbddfa)return _0xcbddfa[_0x4b8427('0x12')](_0x11a119)['then'](function(_0x537072){return _0x537072;});return null;};}function removeEntity(_0x559ebb){return function(_0x21a953){const _0x2b70c2=a820_0x19df;if(_0x21a953)return _0x21a953[_0x2b70c2('0x1b')]()[_0x2b70c2('0x6')](function(){const _0x5eed3b=_0x2b70c2;_0x559ebb[_0x5eed3b('0x7')](0xcc)[_0x5eed3b('0x16')]();});};}function handleEntityNotFound(_0x2a7fdc){return function(_0x4bc75f){const _0x47a772=a820_0x19df;return!_0x4bc75f&&_0x2a7fdc[_0x47a772('0x2')](0x194),_0x4bc75f;};}function handleError(_0x30f554,_0x4aade8){return _0x4aade8=_0x4aade8||0x1f4,function(_0x1c3583){const _0x5affdb=a820_0x19df;logger[_0x5affdb('0x21')](_0x1c3583['stack']),_0x1c3583[_0x5affdb('0x1f')]&&delete _0x1c3583['name'],_0x30f554['status'](_0x4aade8)[_0x5affdb('0x10')](_0x1c3583);};}exports['index']=function(_0x5f1e86,_0x38fd55){const _0x3049af=_0x255c87;let _0x51574d={};const _0x3f8526={},_0x38f1e6={'count':0x0,'rows':[]},_0x450141=_[_0x3049af('0x17')](db[_0x3049af('0xb')][_0x3049af('0xe')],function(_0x244dc4){const _0x2ec7eb=_0x3049af;return{'name':_0x244dc4['fieldName'],'type':_0x244dc4[_0x2ec7eb('0x28')][_0x2ec7eb('0x11')]};});_0x3f8526['model']=_[_0x3049af('0x17')](_0x450141,_0x3049af('0x1f')),_0x3f8526[_0x3049af('0x22')]=_['keys'](_0x5f1e86[_0x3049af('0x22')]),_0x3f8526[_0x3049af('0x1e')]=_[_0x3049af('0x2b')](_0x3f8526[_0x3049af('0x3')],_0x3f8526[_0x3049af('0x22')]),_0x51574d[_0x3049af('0x18')]=_['intersection'](_0x3f8526[_0x3049af('0x3')],qs['fields'](_0x5f1e86['query'][_0x3049af('0xf')])),_0x51574d[_0x3049af('0x18')]=_0x51574d[_0x3049af('0x18')][_0x3049af('0x31')]?_0x51574d['attributes']:_0x3f8526['model'];typeof _0x5f1e86['query'][_0x3049af('0x32')]===_0x3049af('0x29')&&(_0x51574d[_0x3049af('0x13')]=qs[_0x3049af('0x13')](_0x5f1e86[_0x3049af('0x22')][_0x3049af('0x13')]),_0x51574d[_0x3049af('0x1a')]=qs[_0x3049af('0x1a')](_0x5f1e86[_0x3049af('0x22')][_0x3049af('0x1a')]));_0x51574d[_0x3049af('0x1c')]=qs[_0x3049af('0x2c')](_0x5f1e86[_0x3049af('0x22')][_0x3049af('0x2c')]),_0x51574d[_0x3049af('0xd')]=qs[_0x3049af('0x1e')](_[_0x3049af('0x5')](_0x5f1e86['query'],_0x3f8526[_0x3049af('0x1e')]),_0x450141);_0x5f1e86[_0x3049af('0x22')]['filter']&&(_0x51574d['where']=_[_0x3049af('0x2f')](_0x51574d[_0x3049af('0xd')],{[Op['or']]:_[_0x3049af('0x17')](_0x450141,function(_0x13ac5c){const _0x113652=_0x3049af;if(_0x13ac5c[_0x113652('0x28')]!==_0x113652('0x4')){const _0x2f16b9={};return _0x2f16b9[_0x13ac5c[_0x113652('0x1f')]]={[Op['like']]:'%'+_0x5f1e86['query']['filter']+'%'},_0x2f16b9;}})}));_0x51574d=_[_0x3049af('0x2f')]({},_0x51574d,_0x5f1e86['options']);const _0x3a77e4={'where':_0x51574d[_0x3049af('0xd')]};return db[_0x3049af('0xb')]['count'](_0x3a77e4)[_0x3049af('0x6')](function(_0x42bb23){const _0x9b970f=_0x3049af;return _0x38f1e6['count']=_0x42bb23,_0x5f1e86['query'][_0x9b970f('0x1')]&&(_0x51574d[_0x9b970f('0x9')]=[{'all':!![]}]),db[_0x9b970f('0xb')][_0x9b970f('0x19')](_0x51574d);})[_0x3049af('0x6')](function(_0x425adf){const _0x68d17d=_0x3049af;return _0x38f1e6[_0x68d17d('0x8')]=_0x425adf,_0x38f1e6;})['then'](respondWithFilteredResult(_0x38fd55,_0x51574d))[_0x3049af('0x2d')](handleError(_0x38fd55,null));},exports['show']=function(_0x215ecb,_0x449bfb){const _0xab6245=_0x255c87;let _0xb93212={'raw':!![],'where':{'id':_0x215ecb['params']['id']}};const _0x5cbb72={};return _0x5cbb72['model']=_[_0xab6245('0x0')](db[_0xab6245('0xb')][_0xab6245('0xe')]),_0x5cbb72[_0xab6245('0x22')]=_[_0xab6245('0x0')](_0x215ecb['query']),_0x5cbb72[_0xab6245('0x1e')]=_[_0xab6245('0x2b')](_0x5cbb72[_0xab6245('0x3')],_0x5cbb72[_0xab6245('0x22')]),_0xb93212[_0xab6245('0x18')]=_[_0xab6245('0x2b')](_0x5cbb72[_0xab6245('0x3')],qs[_0xab6245('0xf')](_0x215ecb[_0xab6245('0x22')][_0xab6245('0xf')])),_0xb93212[_0xab6245('0x18')]=_0xb93212['attributes'][_0xab6245('0x31')]?_0xb93212[_0xab6245('0x18')]:_0x5cbb72['model'],_0x215ecb['query'][_0xab6245('0x1')]&&(_0xb93212[_0xab6245('0x9')]=[{'all':!![]}]),_0xb93212=_[_0xab6245('0x2f')]({},_0xb93212,_0x215ecb[_0xab6245('0x23')]),db[_0xab6245('0xb')][_0xab6245('0x1d')](_0xb93212)[_0xab6245('0x6')](handleEntityNotFound(_0x449bfb,null))[_0xab6245('0x6')](respondWithResult(_0x449bfb,null))[_0xab6245('0x2d')](handleError(_0x449bfb,null));},exports[_0x255c87('0xa')]=function(_0x2f1baa,_0x45c59c){const _0x21675a=_0x255c87;return db['WhatsappTransferReport'][_0x21675a('0xa')](_0x2f1baa['body'],{})[_0x21675a('0x6')](respondWithResult(_0x45c59c,0xc9))['catch'](handleError(_0x45c59c,null));},exports[_0x255c87('0x12')]=function(_0x387c30,_0x33d486){const _0x49359e=_0x255c87;return _0x387c30[_0x49359e('0x27')]['id']&&delete _0x387c30[_0x49359e('0x27')]['id'],db[_0x49359e('0xb')][_0x49359e('0x1d')]({'where':{'id':_0x387c30[_0x49359e('0x33')]['id']}})['then'](handleEntityNotFound(_0x33d486,null))[_0x49359e('0x6')](saveUpdates(_0x387c30['body'],null))[_0x49359e('0x6')](respondWithResult(_0x33d486,null))[_0x49359e('0x2d')](handleError(_0x33d486,null));},exports['destroy']=function(_0x268e07,_0x12c580){const _0x3ed027=_0x255c87;return db[_0x3ed027('0xb')]['findOne']({'where':{'id':_0x268e07[_0x3ed027('0x33')]['id']}})[_0x3ed027('0x6')](handleEntityNotFound(_0x12c580,null))[_0x3ed027('0x6')](removeEntity(_0x12c580,null))[_0x3ed027('0x2d')](handleError(_0x12c580,null));},exports[_0x255c87('0x24')]=function(_0x53a865,_0x337f08){const _0x3193e7=_0x255c87;return db[_0x3193e7('0xb')][_0x3193e7('0x24')]()['then'](respondWithResult(_0x337f08,null))[_0x3193e7('0x2d')](handleError(_0x337f08,null));}; \ No newline at end of file +const a981_0x4e3e=['map','params','catch','findOne','keys','nolimit','set','lodash','show','include','includeAll','merge','body','offset','destroy','stack','then','sendStatus','../../components/parsers/qs','where','../../config/logger','limit','findAll','describe','WhatsappTransferReport','json','count','type','sequelize','create','fieldName','options','like','attributes','error','update','query','filters','VIRTUAL','end','Content-Range','filter','order','key','rawAttributes','pick','length','name','api','fields','model','status','intersection','sort'];(function(_0x18d319,_0x4bf201){const _0x4e3e8a=function(_0x4e8234){while(--_0x4e8234){_0x18d319['push'](_0x18d319['shift']());}};_0x4e3e8a(++_0x4bf201);}(a981_0x4e3e,0x1c3));const a981_0x4e82=function(_0x18d319,_0x4bf201){_0x18d319=_0x18d319-0xf2;let _0x4e3e8a=a981_0x4e3e[_0x18d319];return _0x4e3e8a;};const a981_0x1baf96=a981_0x4e82;'use strict';const _=require(a981_0x1baf96(0x11c)),qs=require(a981_0x1baf96(0x127)),logger=require(a981_0x1baf96(0xf3))(a981_0x1baf96(0x10f)),{db}=require('../../mysqldb'),{Op}=require(a981_0x1baf96(0xfb));function respondWithResult(_0x27181a,_0xf619e){return _0xf619e=_0xf619e||0xc8,function(_0x3c5dbf){const _0x4833e9=a981_0x4e82;if(_0x3c5dbf)return _0x27181a['status'](_0xf619e)[_0x4833e9(0xf8)](_0x3c5dbf);};}function respondWithFilteredResult(_0x49f42a,_0x597fd9){return function(_0x36444f){const _0x4f0731=a981_0x4e82;if(_0x36444f){const _0x3f8c01=_0x36444f[_0x4f0731(0xf9)],_0x5378b8=_0x597fd9[_0x4f0731(0x122)];let _0x38ec7f=_0x597fd9[_0x4f0731(0x122)]+_0x597fd9[_0x4f0731(0xf4)],_0x5e0bf4;return _0x38ec7f>=_0x3f8c01?(_0x38ec7f=_0x3f8c01,_0x5e0bf4=0xc8):_0x5e0bf4=0xce,_0x49f42a[_0x4f0731(0x112)](_0x5e0bf4),_0x49f42a[_0x4f0731(0x11b)](_0x4f0731(0x107),_0x5378b8+'-'+_0x38ec7f+'/'+_0x3f8c01)[_0x4f0731(0xf8)](_0x36444f);}return null;};}function saveUpdates(_0x468a38){return function(_0x2d016a){const _0x30d925=a981_0x4e82;if(_0x2d016a)return _0x2d016a['update'](_0x468a38)[_0x30d925(0x125)](function(_0x39e02f){return _0x39e02f;});return null;};}function removeEntity(_0x2e209c){return function(_0x9012ae){const _0x3f6e8c=a981_0x4e82;if(_0x9012ae)return _0x9012ae[_0x3f6e8c(0x123)]()[_0x3f6e8c(0x125)](function(){const _0x43ae69=_0x3f6e8c;_0x2e209c[_0x43ae69(0x112)](0xcc)[_0x43ae69(0x106)]();});};}function handleEntityNotFound(_0x535233){return function(_0x6b487b){const _0x507c72=a981_0x4e82;return!_0x6b487b&&_0x535233[_0x507c72(0x126)](0x194),_0x6b487b;};}function handleError(_0x3a4671,_0x378c9c){return _0x378c9c=_0x378c9c||0x1f4,function(_0x292543){const _0x6925fb=a981_0x4e82;logger[_0x6925fb(0x101)](_0x292543[_0x6925fb(0x124)]),_0x292543[_0x6925fb(0x10e)]&&delete _0x292543[_0x6925fb(0x10e)],_0x3a4671[_0x6925fb(0x112)](_0x378c9c)['send'](_0x292543);};}exports['index']=function(_0x340238,_0x42e84b){const _0x117407=a981_0x1baf96;let _0x500ad3={};const _0x25629b={},_0x36875d={'count':0x0,'rows':[]},_0x55453d=_[_0x117407(0x115)](db[_0x117407(0xf7)][_0x117407(0x10b)],function(_0x49bc87){const _0x37181f=_0x117407;return{'name':_0x49bc87[_0x37181f(0xfd)],'type':_0x49bc87[_0x37181f(0xfa)][_0x37181f(0x10a)]};});_0x25629b[_0x117407(0x111)]=_[_0x117407(0x115)](_0x55453d,_0x117407(0x10e)),_0x25629b['query']=_[_0x117407(0x119)](_0x340238[_0x117407(0x103)]),_0x25629b[_0x117407(0x104)]=_[_0x117407(0x113)](_0x25629b[_0x117407(0x111)],_0x25629b[_0x117407(0x103)]),_0x500ad3[_0x117407(0x100)]=_['intersection'](_0x25629b[_0x117407(0x111)],qs[_0x117407(0x110)](_0x340238[_0x117407(0x103)][_0x117407(0x110)])),_0x500ad3['attributes']=_0x500ad3[_0x117407(0x100)][_0x117407(0x10d)]?_0x500ad3['attributes']:_0x25629b[_0x117407(0x111)];typeof _0x340238[_0x117407(0x103)][_0x117407(0x11a)]==='undefined'&&(_0x500ad3[_0x117407(0xf4)]=qs[_0x117407(0xf4)](_0x340238['query']['limit']),_0x500ad3[_0x117407(0x122)]=qs[_0x117407(0x122)](_0x340238[_0x117407(0x103)]['offset']));_0x500ad3[_0x117407(0x109)]=qs[_0x117407(0x114)](_0x340238[_0x117407(0x103)][_0x117407(0x114)]),_0x500ad3[_0x117407(0xf2)]=qs[_0x117407(0x104)](_[_0x117407(0x10c)](_0x340238[_0x117407(0x103)],_0x25629b['filters']),_0x55453d);_0x340238[_0x117407(0x103)][_0x117407(0x108)]&&(_0x500ad3['where']=_[_0x117407(0x120)](_0x500ad3[_0x117407(0xf2)],{[Op['or']]:_[_0x117407(0x115)](_0x55453d,function(_0x5447f0){const _0x34a76a=_0x117407;if(_0x5447f0[_0x34a76a(0xfa)]!==_0x34a76a(0x105)){const _0x3dafcf={};return _0x3dafcf[_0x5447f0[_0x34a76a(0x10e)]]={[Op[_0x34a76a(0xff)]]:'%'+_0x340238[_0x34a76a(0x103)]['filter']+'%'},_0x3dafcf;}})}));_0x500ad3=_[_0x117407(0x120)]({},_0x500ad3,_0x340238[_0x117407(0xfe)]);const _0x2c2cb5={'where':_0x500ad3[_0x117407(0xf2)]};return db[_0x117407(0xf7)][_0x117407(0xf9)](_0x2c2cb5)['then'](function(_0x381afb){const _0x4c89cd=_0x117407;return _0x36875d[_0x4c89cd(0xf9)]=_0x381afb,_0x340238[_0x4c89cd(0x103)]['includeAll']&&(_0x500ad3[_0x4c89cd(0x11e)]=[{'all':!![]}]),db[_0x4c89cd(0xf7)][_0x4c89cd(0xf5)](_0x500ad3);})[_0x117407(0x125)](function(_0x3b11d6){return _0x36875d['rows']=_0x3b11d6,_0x36875d;})[_0x117407(0x125)](respondWithFilteredResult(_0x42e84b,_0x500ad3))['catch'](handleError(_0x42e84b,null));},exports[a981_0x1baf96(0x11d)]=function(_0x2a5053,_0x18028b){const _0x5acc9f=a981_0x1baf96;let _0x346136={'raw':!![],'where':{'id':_0x2a5053[_0x5acc9f(0x116)]['id']}};const _0xf65a15={};return _0xf65a15['model']=_[_0x5acc9f(0x119)](db[_0x5acc9f(0xf7)][_0x5acc9f(0x10b)]),_0xf65a15[_0x5acc9f(0x103)]=_[_0x5acc9f(0x119)](_0x2a5053[_0x5acc9f(0x103)]),_0xf65a15[_0x5acc9f(0x104)]=_[_0x5acc9f(0x113)](_0xf65a15[_0x5acc9f(0x111)],_0xf65a15[_0x5acc9f(0x103)]),_0x346136[_0x5acc9f(0x100)]=_['intersection'](_0xf65a15[_0x5acc9f(0x111)],qs[_0x5acc9f(0x110)](_0x2a5053['query'][_0x5acc9f(0x110)])),_0x346136[_0x5acc9f(0x100)]=_0x346136['attributes']['length']?_0x346136[_0x5acc9f(0x100)]:_0xf65a15['model'],_0x2a5053[_0x5acc9f(0x103)][_0x5acc9f(0x11f)]&&(_0x346136[_0x5acc9f(0x11e)]=[{'all':!![]}]),_0x346136=_[_0x5acc9f(0x120)]({},_0x346136,_0x2a5053[_0x5acc9f(0xfe)]),db[_0x5acc9f(0xf7)][_0x5acc9f(0x118)](_0x346136)[_0x5acc9f(0x125)](handleEntityNotFound(_0x18028b,null))[_0x5acc9f(0x125)](respondWithResult(_0x18028b,null))[_0x5acc9f(0x117)](handleError(_0x18028b,null));},exports[a981_0x1baf96(0xfc)]=function(_0x5792fb,_0x2fdfe3){const _0x386ae1=a981_0x1baf96;return db[_0x386ae1(0xf7)]['create'](_0x5792fb[_0x386ae1(0x121)],{})[_0x386ae1(0x125)](respondWithResult(_0x2fdfe3,0xc9))[_0x386ae1(0x117)](handleError(_0x2fdfe3,null));},exports[a981_0x1baf96(0x102)]=function(_0x157933,_0x3204f8){const _0x231c60=a981_0x1baf96;return _0x157933[_0x231c60(0x121)]['id']&&delete _0x157933[_0x231c60(0x121)]['id'],db[_0x231c60(0xf7)][_0x231c60(0x118)]({'where':{'id':_0x157933['params']['id']}})[_0x231c60(0x125)](handleEntityNotFound(_0x3204f8,null))[_0x231c60(0x125)](saveUpdates(_0x157933[_0x231c60(0x121)],null))[_0x231c60(0x125)](respondWithResult(_0x3204f8,null))[_0x231c60(0x117)](handleError(_0x3204f8,null));},exports['destroy']=function(_0x167c6b,_0x11051d){const _0x3f11d9=a981_0x1baf96;return db[_0x3f11d9(0xf7)]['findOne']({'where':{'id':_0x167c6b['params']['id']}})['then'](handleEntityNotFound(_0x11051d,null))[_0x3f11d9(0x125)](removeEntity(_0x11051d,null))[_0x3f11d9(0x117)](handleError(_0x11051d,null));},exports[a981_0x1baf96(0xf6)]=function(_0x50628c,_0x172bab){const _0x3c950a=a981_0x1baf96;return db[_0x3c950a(0xf7)][_0x3c950a(0xf6)]()['then'](respondWithResult(_0x172bab,null))[_0x3c950a(0x117)](handleError(_0x172bab,null));}; \ No newline at end of file diff --git a/server/api/whatsappTransferReport/whatsappTransferReport.model.js b/server/api/whatsappTransferReport/whatsappTransferReport.model.js index 722df10..9e75a4f 100644 --- a/server/api/whatsappTransferReport/whatsappTransferReport.model.js +++ b/server/api/whatsappTransferReport/whatsappTransferReport.model.js @@ -1 +1 @@ -const a821_0x1647=['WhatsappTransferReport','uniqueid','report_whatsapp_transfer','./whatsappTransferReport.attributes','exports'];(function(_0x851333,_0x1647e2){const _0x35b917=function(_0xe23ec9){while(--_0xe23ec9){_0x851333['push'](_0x851333['shift']());}};_0x35b917(++_0x1647e2);}(a821_0x1647,0x12c));const a821_0x35b9=function(_0x851333,_0x1647e2){_0x851333=_0x851333-0x0;let _0x35b917=a821_0x1647[_0x851333];return _0x35b917;};const _0x3a5966=a821_0x35b9;'use strict';const attributes=require(_0x3a5966('0x3'));module[_0x3a5966('0x4')]=function(_0xe23ec9){const _0x102cd7=_0x3a5966,_0x34dd7a=_0xe23ec9['define'](_0x102cd7('0x0'),attributes,{'tableName':_0x102cd7('0x2'),'paranoid':![],'indexes':[{'name':_0x102cd7('0x1'),'fields':[_0x102cd7('0x1')]}],'timestamps':!![]});return _0x34dd7a;}; \ No newline at end of file +const a982_0x2832=['sequelize','./whatsappTransferReport.options','init','./whatsappTransferReport.attributes','WhatsappTransferReport','exports','function'];(function(_0x1c47c2,_0x2a026c){const _0x2832af=function(_0x1c1489){while(--_0x1c1489){_0x1c47c2['push'](_0x1c47c2['shift']());}};_0x2832af(++_0x2a026c);}(a982_0x2832,0x1cc));const a982_0x1c14=function(_0x1c47c2,_0x2a026c){_0x1c47c2=_0x1c47c2-0xcd;let _0x2832af=a982_0x2832[_0x1c47c2];return _0x2832af;};const a982_0x1af851=a982_0x1c14;'use strict';const {Model}=require(a982_0x1af851(0xcf)),{attributes}=require(a982_0x1af851(0xd2)),{options}=require(a982_0x1af851(0xd0));class WhatsappTransferReport extends Model{}function init(_0x8d334a,_0x17d750){const _0x5ed711=a982_0x1af851,_0x3a8187=options(_0x8d334a),_0x2206ea=typeof _0x17d750===_0x5ed711(0xce)?_0x17d750(_0x3a8187):_0x3a8187;return WhatsappTransferReport[_0x5ed711(0xd1)](attributes,_0x2206ea),WhatsappTransferReport;}module[a982_0x1af851(0xcd)][a982_0x1af851(0xd3)]=WhatsappTransferReport,module[a982_0x1af851(0xcd)]['init']=init; \ No newline at end of file diff --git a/server/api/whatsappTransferReport/whatsappTransferReport.options.js b/server/api/whatsappTransferReport/whatsappTransferReport.options.js new file mode 100644 index 0000000..88aeee8 --- /dev/null +++ b/server/api/whatsappTransferReport/whatsappTransferReport.options.js @@ -0,0 +1 @@ +var a983_0x8d10=['uniqueid','exports','report_whatsapp_transfer'];(function(_0x5dd5aa,_0x44bb15){var _0x8d1022=function(_0x136183){while(--_0x136183){_0x5dd5aa['push'](_0x5dd5aa['shift']());}};_0x8d1022(++_0x44bb15);}(a983_0x8d10,0x179));var a983_0x1361=function(_0x5dd5aa,_0x44bb15){_0x5dd5aa=_0x5dd5aa-0xb0;var _0x8d1022=a983_0x8d10[_0x5dd5aa];return _0x8d1022;};var a983_0x224d83=a983_0x1361;function options(_0x34a90a){var _0x468174=a983_0x1361;return{'sequelize':_0x34a90a,'tableName':_0x468174(0xb0),'paranoid':![],'indexes':[{'name':_0x468174(0xb1),'fields':[_0x468174(0xb1)]}],'timestamps':!![]};}module[a983_0x224d83(0xb2)]['options']=options; \ No newline at end of file diff --git a/server/app.js b/server/app.js index f3c2997..ad59de0 100644 --- a/server/app.js +++ b/server/app.js @@ -15,4 +15,4 @@ // * treaties. The SOFTWARE PRODUCT is licensed, not sold. * // * * // ************************************************************************* -const a822_0xac3c=['./config/license','lodash','debounce','Error\x20on\x20server\x20exit','kill','delete','./config/schedule/transcribe','Server\x20failed\x20to\x20start\x20due\x20to\x20error:','close','join','SIGUSR2','DB\x20Sync\x20Error:\x20','pid','error','./config/config.service','Offline\x20apps:','warn','sync','./rpc','Development\x20Mode','./config/environment','listen','ONCE\x20SIGINT','info','sequelize','Cannot\x20kill\x20','RPC\x20Error','online','./config/schedule','Database','name','./config/logger','environment','Online\x20apps:','log','stack','exit','./config/pm2','message','map','./globals','\x0a*****\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Caught\x20','Error\x20on\x20server\x20exit:\x20','./mysqldb','xCally\x20Starting...\x20','test','app','isProduction','./config/schedule/chat','start','Rpc\x20closed','None','SIGINT','process\x20or\x20namespace\x20not\x20found','debug','status','\x0a*****\x20\x20\x20\x20\x20\x20\x20Stopped\x20and\x20removed\x20all\x20subprocesses\x20\x20\x20\x20\x20\x20*****\x0a\x0a\x0a','./config/seedDB','once','filter'];(function(_0x338ad6,_0xac3c0f){const _0x33a7c9=function(_0x5ca111){while(--_0x5ca111){_0x338ad6['push'](_0x338ad6['shift']());}};_0x33a7c9(++_0xac3c0f);}(a822_0xac3c,0x1a6));const a822_0x33a7=function(_0x338ad6,_0xac3c0f){_0x338ad6=_0x338ad6-0x0;let _0x33a7c9=a822_0xac3c[_0x338ad6];return _0x33a7c9;};const _0x490010=a822_0x33a7;'use strict';require(_0x490010('0x26'));const mysqldb=require(_0x490010('0x29')),{RPC}=require(_0x490010('0x10')),{getConfigService}=require(_0x490010('0xc')),config=require(_0x490010('0x12')),logger=require(_0x490010('0x1d')),pm2=require(_0x490010('0x23')),pm2Config=require('./config/pm2/config'),schedule=require(_0x490010('0x1a')),chat=require(_0x490010('0x2e')),transcribe=require(_0x490010('0x4')),{default:seedDB}=require(_0x490010('0x37')),{default:checkLicense}=require(_0x490010('0x3a')),{getRedis}=require('./rediscache'),cs=getConfigService(),_=require(_0x490010('0x3b')),appLogger=logger(_0x490010('0x2c')),queryLogger=logger('db-query');function logDatabase(_0x5ca111){const _0x5a683b=_0x490010;try{queryLogger['info'](_0x5a683b('0x1b'),_0x5ca111);}catch(_0x3229ff){console[_0x5a683b('0xb')](_0x3229ff);}}function onRPCError(_0x54b882){const _0xf7b742=_0x490010;appLogger[_0xf7b742('0xb')](_0xf7b742('0x18'),_0x54b882);}const rpc=new RPC(onRPCError),onServerExitHandler=_[_0x490010('0x0')](async function onServerExit(_0x4483ef){const _0x1061f6=_0x490010;console[_0x1061f6('0x20')](_0x1061f6('0x27')+_0x4483ef+'\x20signal!\x20\x20\x20\x20\x20\x20\x20\x20*****\x0a');try{await rpc[_0x1061f6('0x6')](),appLogger[_0x1061f6('0x34')](_0x1061f6('0x30'));for(const _0x37388b of pm2Config['apps']){try{await pm2[_0x1061f6('0x3')](_0x37388b[_0x1061f6('0x1c')]),appLogger[_0x1061f6('0x34')](_0x37388b[_0x1061f6('0x1c')]+'\x20deleted');}catch(_0x5f1eb0){_0x5f1eb0[_0x1061f6('0x24')]!==_0x1061f6('0x33')&&(console[_0x1061f6('0xb')]('Cannot\x20kill\x20'+_0x37388b['name'],_0x5f1eb0),appLogger[_0x1061f6('0xb')](_0x1061f6('0x17')+_0x37388b[_0x1061f6('0x1c')]+':\x20'+_0x5f1eb0[_0x1061f6('0x24')]+'\x0a'+_0x5f1eb0[_0x1061f6('0x21')]));}}console['log'](_0x1061f6('0x36')),getRedis()['disconnect'](),appLogger['debug']('Redis\x20disconnected'),appLogger[_0x1061f6('0x34')]('App\x20shut\x20down');}catch(_0x22db0f){console[_0x1061f6('0xb')](_0x1061f6('0x1'),_0x22db0f),appLogger[_0x1061f6('0xb')](_0x1061f6('0x28')+_0x22db0f[_0x1061f6('0x24')]+'\x0a'+_0x22db0f['stack']);}},0x7d0,{'leading':!![]});!(cs['isProduction']||cs['isTest'])?(process[_0x490010('0x38')](_0x490010('0x8'),async function(){const _0x185002=_0x490010;await onServerExitHandler(_0x185002('0x8')),process[_0x185002('0x2')](process[_0x185002('0xa')],_0x185002('0x8'));}),process['on'](_0x490010('0x32'),async function(){const _0x4d7d6f=_0x490010;console[_0x4d7d6f('0x20')]('ON\x20SIGINT'),await onServerExitHandler(_0x4d7d6f('0x32')),process[_0x4d7d6f('0x22')](0x0);})):process[_0x490010('0x38')](_0x490010('0x32'),async function(){const _0x377ba8=_0x490010;console['log'](_0x377ba8('0x14')),await onServerExitHandler(_0x377ba8('0x32')),process[_0x377ba8('0x22')](0x0);});async function main(){const _0x124b23=_0x490010;try{console[_0x124b23('0x20')](_0x124b23('0x2a')+(cs[_0x124b23('0x2d')]?'':_0x124b23('0x11')));try{await mysqldb['db'][_0x124b23('0x16')][_0x124b23('0xf')]({'logging':cs[_0x124b23('0x2d')]||cs[_0x124b23('0x1e')]===_0x124b23('0x2b')?![]:logDatabase});}catch(_0x33c767){console[_0x124b23('0xe')]('DB\x20Sync\x20Error:\x0a',_0x33c767),queryLogger[_0x124b23('0xb')](_0x124b23('0x9')+_0x33c767['message']+',\x20'+_0x33c767['stack']);}config['seedDB']===!![]&&(console[_0x124b23('0x20')]('Starting\x20DB\x20seed...'),await seedDB(),console[_0x124b23('0x20')]('Seed\x20DB\x20ok'));await checkLicense();const _0x2f4a14=await rpc[_0x124b23('0x13')]();appLogger[_0x124b23('0x15')](_0x2f4a14),await chat[_0x124b23('0x2f')](),await schedule[_0x124b23('0x2f')]();const _0x52ce27=await transcribe[_0x124b23('0x2f')]();appLogger['info'](_0x52ce27);const _0x1665ee=await pm2[_0x124b23('0x2f')](pm2Config);appLogger[_0x124b23('0x15')](_0x124b23('0x1f'),_[_0x124b23('0x25')](_[_0x124b23('0x39')](_0x1665ee,{'status':_0x124b23('0x19')}),_0x124b23('0x1c'))['join']()),appLogger['info'](_0x124b23('0xd'),_['map'](_['filter'](_0x1665ee,function(_0x2bd789){const _0x38e770=_0x124b23;return _0x2bd789[_0x38e770('0x35')]!==_0x38e770('0x19');}),'name')[_0x124b23('0x7')]()||_0x124b23('0x31')),console[_0x124b23('0x20')]('xCally\x20ready!');}catch(_0x2565be){console[_0x124b23('0xb')](_0x2565be),appLogger[_0x124b23('0xb')](_0x124b23('0x5'),_0x2565be);throw _0x2565be;}}main(); \ No newline at end of file +const a984_0x12b0=['seedDB','disconnect','map','online','Seed\x20DB\x20ok','\x0a*****\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Caught\x20','./config/pm2/config','./rpc','isTest','listen','sequelize','log','\x20deleted','once','pid','SIGUSR2','Rpc\x20closed','process\x20or\x20namespace\x20not\x20found','stack','message','name','close','SIGINT','xCally\x20Starting...\x20','./config/schedule/chat','ON\x20SIGINT','info','sync','./mysqldb','./config/schedule/transcribe','DB\x20Sync\x20Error:\x20','join','Cannot\x20kill\x20','app','App\x20shut\x20down','Redis\x20disconnected','Online\x20apps:','./config/schedule','./config/license','debounce','delete','status','start','./globals','None','Development\x20Mode','environment','exit','filter','ONCE\x20SIGINT','Error\x20on\x20server\x20exit','./config/logger','apps','kill','debug','isProduction','RPC\x20Error','\x20signal!\x20\x20\x20\x20\x20\x20\x20\x20*****\x0a','error','Error\x20on\x20server\x20exit:\x20','lodash','Server\x20failed\x20to\x20start\x20due\x20to\x20error:','xCally\x20ready!','warn'];(function(_0x3d3dae,_0x26bec5){const _0x12b07e=function(_0x100025){while(--_0x100025){_0x3d3dae['push'](_0x3d3dae['shift']());}};_0x12b07e(++_0x26bec5);}(a984_0x12b0,0xb6));const a984_0x1000=function(_0x3d3dae,_0x26bec5){_0x3d3dae=_0x3d3dae-0x1d7;let _0x12b07e=a984_0x12b0[_0x3d3dae];return _0x12b07e;};const a984_0x452de5=a984_0x1000;'use strict';require(a984_0x452de5(0x20c));const mysqldb=require(a984_0x452de5(0x1fd)),{RPC}=require(a984_0x452de5(0x1e8)),{getConfigService}=require('./config/config.service'),config=require('./config/environment'),logger=require(a984_0x452de5(0x214)),pm2=require('./config/pm2'),pm2Config=require(a984_0x452de5(0x1e7)),schedule=require(a984_0x452de5(0x206)),chat=require(a984_0x452de5(0x1f9)),transcribe=require(a984_0x452de5(0x1fe)),{default:seedDB}=require('./config/seedDB'),{default:checkLicense}=require(a984_0x452de5(0x207)),{getRedis}=require('./rediscache'),cs=getConfigService(),_=require(a984_0x452de5(0x1dd)),appLogger=logger(a984_0x452de5(0x202)),queryLogger=logger('db-query');function logDatabase(_0x4597bf){const _0x1e8cfd=a984_0x452de5;try{queryLogger[_0x1e8cfd(0x1fb)]('Database',_0x4597bf);}catch(_0x56986f){console[_0x1e8cfd(0x1db)](_0x56986f);}}function onRPCError(_0x147657){const _0x2bda9a=a984_0x452de5;appLogger[_0x2bda9a(0x1db)](_0x2bda9a(0x1d9),_0x147657);}const rpc=new RPC(onRPCError),onServerExitHandler=_[a984_0x452de5(0x208)](async function onServerExit(_0x90d864){const _0x69841f=a984_0x452de5;console[_0x69841f(0x1ec)](_0x69841f(0x1e6)+_0x90d864+_0x69841f(0x1da));try{await rpc[_0x69841f(0x1f6)](),appLogger[_0x69841f(0x1d7)](_0x69841f(0x1f1));for(const _0x5e22aa of pm2Config[_0x69841f(0x215)]){try{await pm2[_0x69841f(0x209)](_0x5e22aa['name']),appLogger['debug'](_0x5e22aa[_0x69841f(0x1f5)]+_0x69841f(0x1ed));}catch(_0x311cf2){_0x311cf2['message']!==_0x69841f(0x1f2)&&(console[_0x69841f(0x1db)]('Cannot\x20kill\x20'+_0x5e22aa['name'],_0x311cf2),appLogger[_0x69841f(0x1db)](_0x69841f(0x201)+_0x5e22aa[_0x69841f(0x1f5)]+':\x20'+_0x311cf2['message']+'\x0a'+_0x311cf2['stack']));}}console[_0x69841f(0x1ec)]('\x0a*****\x20\x20\x20\x20\x20\x20\x20Stopped\x20and\x20removed\x20all\x20subprocesses\x20\x20\x20\x20\x20\x20*****\x0a\x0a\x0a'),getRedis()[_0x69841f(0x1e2)](),appLogger['debug'](_0x69841f(0x204)),appLogger[_0x69841f(0x1d7)](_0x69841f(0x203));}catch(_0x638964){console['error'](_0x69841f(0x213),_0x638964),appLogger[_0x69841f(0x1db)](_0x69841f(0x1dc)+_0x638964[_0x69841f(0x1f4)]+'\x0a'+_0x638964[_0x69841f(0x1f3)]);}},0x7d0,{'leading':!![]});!(cs[a984_0x452de5(0x1d8)]||cs[a984_0x452de5(0x1e9)])?(process[a984_0x452de5(0x1ee)]('SIGUSR2',async function(){const _0x241b19=a984_0x452de5;await onServerExitHandler(_0x241b19(0x1f0)),process[_0x241b19(0x216)](process[_0x241b19(0x1ef)],_0x241b19(0x1f0));}),process['on'](a984_0x452de5(0x1f7),async function(){const _0x2a4c63=a984_0x452de5;console['log'](_0x2a4c63(0x1fa)),await onServerExitHandler(_0x2a4c63(0x1f7)),process['exit'](0x0);})):process['once'](a984_0x452de5(0x1f7),async function(){const _0x82e374=a984_0x452de5;console[_0x82e374(0x1ec)](_0x82e374(0x212)),await onServerExitHandler(_0x82e374(0x1f7)),process[_0x82e374(0x210)](0x0);});async function main(){const _0x4e9766=a984_0x452de5;try{console[_0x4e9766(0x1ec)](_0x4e9766(0x1f8)+(cs[_0x4e9766(0x1d8)]?'':_0x4e9766(0x20e)));try{await mysqldb['db'][_0x4e9766(0x1eb)][_0x4e9766(0x1fc)]({'logging':cs[_0x4e9766(0x1d8)]||cs[_0x4e9766(0x20f)]==='test'?![]:logDatabase});}catch(_0x550a8f){console[_0x4e9766(0x1e0)]('DB\x20Sync\x20Error:\x0a',_0x550a8f),queryLogger[_0x4e9766(0x1db)](_0x4e9766(0x1ff)+_0x550a8f[_0x4e9766(0x1f4)]+',\x20'+_0x550a8f['stack']);}config[_0x4e9766(0x1e1)]===!![]&&(console['log']('Starting\x20DB\x20seed...'),await seedDB(),console[_0x4e9766(0x1ec)](_0x4e9766(0x1e5)));await checkLicense();const _0x25508b=await rpc[_0x4e9766(0x1ea)]();appLogger[_0x4e9766(0x1fb)](_0x25508b),await chat[_0x4e9766(0x20b)](),await schedule[_0x4e9766(0x20b)]();const _0x4d0e70=await transcribe['start']();appLogger[_0x4e9766(0x1fb)](_0x4d0e70);const _0x5ce0ab=await pm2[_0x4e9766(0x20b)](pm2Config);appLogger[_0x4e9766(0x1fb)](_0x4e9766(0x205),_[_0x4e9766(0x1e3)](_[_0x4e9766(0x211)](_0x5ce0ab,{'status':_0x4e9766(0x1e4)}),'name')[_0x4e9766(0x200)]()),appLogger[_0x4e9766(0x1fb)]('Offline\x20apps:',_[_0x4e9766(0x1e3)](_[_0x4e9766(0x211)](_0x5ce0ab,function(_0x1d49a0){const _0x22f341=_0x4e9766;return _0x1d49a0[_0x22f341(0x20a)]!==_0x22f341(0x1e4);}),_0x4e9766(0x1f5))[_0x4e9766(0x200)]()||_0x4e9766(0x20d)),console[_0x4e9766(0x1ec)](_0x4e9766(0x1df));}catch(_0x277a6e){console[_0x4e9766(0x1db)](_0x277a6e),appLogger[_0x4e9766(0x1db)](_0x4e9766(0x1de),_0x277a6e);throw _0x277a6e;}}main(); \ No newline at end of file diff --git a/server/components/auth/service.js b/server/components/auth/service.js index ce318c4..b372c7d 100644 --- a/server/components/auth/service.js +++ b/server/components/auth/service.js @@ -1 +1 @@ -const a823_0x2ddf=['HS256','express-jwt','exports','getLicense','options','toLowerCase','apiKeyNonce','lodash','voicePause','user','getUuid','test','unmanaged','The\x20password\x20must\x20be\x20different\x20from\x20the\x20previous\x20%d\x20passwords.\x20Please\x20choose\x20another\x20one.','hex','status','sub','mailPause','payload','pauseType','format','startsWith','floor','Basic','unshift','role','hotdesk','/dashboards/general','userProfileId','findOne','passwordResetAt','update','redirect','showWebBar','phoneBarEnableRecording','apikey','User\x20object\x20not\x20found.','query','authenticate','cookie','isAuthenticated','faxPause','secrets','authorization','../../mysqldb','name','params','phoneBarRemoteControlPort','jsonwebtoken','disposition','smsPause','decryptString','nonce','../../config/license/hardware','pass','crypto','closed','openchannelPause','toString','../encryptor','phoneBarEnableDtmfTone','../../config/environment','chatPause','Forbidden','lastLoginAt','md5secret','Unmanaged.','The\x20password\x20must\x20be\x20different\x20from\x20the\x20last\x20one.\x20Please\x20choose\x20another\x20one.','secret','userpic','length','phoneBarDnd','../../config/license/util','then','phoneBarExpires','sign','Invalid\x20API\x20access\x20key','internal','Unknown\x20authorization\x20format','Forbidden.','send','join','lastPauseAt','motion.token','allowmessenger','alias','apiKeyIat','headers','isNil','split','randomBytes','sequelize','User','session','User\x20not\x20found.','isEqual','phoneBarEnableSettings','use','The\x20password\x20must\x20be\x20at\x20least\x208\x20characters\x20long\x20and\x20have\x201\x20lowercase\x20character,\x201\x20uppercase\x20character,\x201\x20number\x20and\x201\x20special\x20character\x20~!@#$%^&-_=+[{]}.','basic-auth','email','It\x20looks\x20like\x20you\x20aren\x27t\x20logged\x20in,\x20please\x20try\x20again.','Please\x20use\x20the\x20previous\x20API\x20access\x20key\x20to\x20generate\x20a\x20new\x20one','Bearer','phoneBarAutoAnswer','promisify','json','catch'];(function(_0x737147,_0x2ddf4c){const _0x11a8b4=function(_0x4e6484){while(--_0x4e6484){_0x737147['push'](_0x737147['shift']());}};_0x11a8b4(++_0x2ddf4c);}(a823_0x2ddf,0xd7));const a823_0x11a8=function(_0x737147,_0x2ddf4c){_0x737147=_0x737147-0x0;let _0x11a8b4=a823_0x2ddf[_0x737147];return _0x11a8b4;};const _0x54d3be=a823_0x11a8;'use strict';const db=require(_0x54d3be('0x2d'))['db'],{ValidationError}=require(_0x54d3be('0x5c')),config=require(_0x54d3be('0x3e')),hardwareConf=require(_0x54d3be('0x36')),licenseUtil=require(_0x54d3be('0x49')),encryptor=require(_0x54d3be('0x3c')),util=require('util'),_=require(_0x54d3be('0x8')),jwt=require(_0x54d3be('0x31')),expressJwt=require(_0x54d3be('0x2')),compose=require('composable-middleware'),basicAuth=require(_0x54d3be('0x64')),crypto=require(_0x54d3be('0x38')),validateJwt=expressJwt({'secret':config[_0x54d3be('0x2b')]['session'],'algorithms':[_0x54d3be('0x1')]}),userAttributes=['id',_0x54d3be('0x1a'),'fullname',_0x54d3be('0x2e'),_0x54d3be('0x4e'),_0x54d3be('0x65'),_0x54d3be('0x46'),'permissions',_0x54d3be('0x42'),_0x54d3be('0x9'),_0x54d3be('0x3f'),_0x54d3be('0x12'),_0x54d3be('0x2a'),_0x54d3be('0x33'),_0x54d3be('0x3a'),_0x54d3be('0x14'),_0x54d3be('0x22'),_0x54d3be('0x41'),_0x54d3be('0x53'),'crudPermissions',_0x54d3be('0x55'),_0x54d3be('0x1f'),_0x54d3be('0x56'),_0x54d3be('0x69'),'phoneBarAutoAnswerDelay',_0x54d3be('0x48'),_0x54d3be('0x23'),_0x54d3be('0x3d'),_0x54d3be('0x61'),_0x54d3be('0x4b'),'phoneBarPrefixRequired','phoneBarRemoteControl',_0x54d3be('0x30'),_0x54d3be('0x1b'),'interface',_0x54d3be('0x1d'),'settingsEnabled'];function isChatInteractionAuthorized(){const _0x3a77c3=_0x54d3be;return this[_0x3a77c3('0x29')](!![])[_0x3a77c3('0x62')](function(_0x4e6484,_0x5cd15c,_0x3c63ed){const _0x391b4d=_0x3a77c3;if(_0x4e6484[_0x391b4d('0xa')])_0x3c63ed();else return db['ChatInteraction'][_0x391b4d('0x1e')]({'where':{'id':_0x4e6484[_0x391b4d('0x2f')]['id']},'attributes':['id',_0x391b4d('0x39'),'disposition'],'raw':!![]})[_0x391b4d('0x4a')](function(_0x40e1f9){const _0x1b1741=_0x391b4d;if(_0x40e1f9&&_0x40e1f9[_0x1b1741('0x39')])return _0x5cd15c[_0x1b1741('0x10')](_0x40e1f9[_0x1b1741('0x32')]===_0x1b1741('0xd')?0x195:0x193)[_0x1b1741('0x6b')]({'message':_0x40e1f9[_0x1b1741('0x32')]===_0x1b1741('0xd')?_0x1b1741('0x43'):_0x1b1741('0x50')});else _0x3c63ed();})[_0x391b4d('0x0')](function(_0x458beb){_0x3c63ed(_0x458beb);});});}function isAuthenticated(_0x1b51c5){const _0x2b0c21=_0x54d3be;return compose()[_0x2b0c21('0x62')](function(_0x399fa7,_0x463e80,_0x58860f){const _0x551374=_0x2b0c21;if(_0x399fa7[_0x551374('0x58')][_0x551374('0x2c')]){if(_[_0x551374('0x16')](_0x399fa7[_0x551374('0x58')][_0x551374('0x2c')],_0x551374('0x18'))){const _0x1b346b=basicAuth(_0x399fa7);db['User'][_0x551374('0x1e')]({'where':{'name':_0x1b346b[_0x551374('0x2e')]}})[_0x551374('0x4a')](function(_0x3851ab){const _0x2440cc=_0x551374;if(!_0x3851ab||!_0x3851ab[_0x2440cc('0x27')](_0x1b346b[_0x2440cc('0x37')]))return _0x463e80[_0x2440cc('0x10')](0x191)[_0x2440cc('0x6b')]({'message':'Wrong\x20credentials.'});_0x399fa7[_0x2440cc('0xa')]={'id':_0x3851ab['id']},_0x58860f();})['catch'](function(_0x19f498){_0x58860f(_0x19f498);});}else{if(_[_0x551374('0x16')](_0x399fa7[_0x551374('0x58')]['authorization'],_0x551374('0x68')))validateJwt(_0x399fa7,_0x463e80,_0x58860f);else{if(_0x1b51c5)_0x58860f();else return _0x463e80[_0x551374('0x10')](0x193)[_0x551374('0x6b')]({'message':_0x551374('0x4f')});}}}else{if(_0x399fa7[_0x551374('0x26')][_0x551374('0x24')])try{const _0x1ed94d={'audience':hardwareConf['getUuid'](),'issuer':hardwareConf[_0x551374('0xb')]()};verifyJwt(_0x399fa7[_0x551374('0x26')][_0x551374('0x24')],_0x1ed94d)[_0x551374('0x4a')](function(_0x5da899){const _0x35d78b=_0x551374;return db[_0x35d78b('0x5d')][_0x35d78b('0x1e')]({'where':{'id':_0x5da899[_0x35d78b('0x11')]}})[_0x35d78b('0x4a')](function(_0x12d30f){const _0x1cf5b0=_0x35d78b;if(!_0x12d30f||!_[_0x1cf5b0('0x60')](_0x12d30f[_0x1cf5b0('0x7')],_0x5da899[_0x1cf5b0('0x35')]))return _0x463e80[_0x1cf5b0('0x10')](0x191)[_0x1cf5b0('0x6b')]({'message':'API\x20access\x20key\x20is\x20not\x20valid\x20anymore'});_0x399fa7['user']={'id':_0x12d30f['id']},_0x58860f();});})[_0x551374('0x0')](function(){const _0x5c0edb=_0x551374;return _0x463e80['status'](0x191)['json']({'message':_0x5c0edb('0x4d')});});}catch(_0x477da0){_0x58860f(_0x477da0);}else{if(_0x1b51c5)_0x58860f();else return _0x463e80[_0x551374('0x10')](0x193)['json']({'message':'Unknown\x20authorization\x20format'});}}})[_0x2b0c21('0x62')](function(_0x69b43e,_0x4215fe,_0x351835){const _0x3fbf97=_0x2b0c21;if(_0x69b43e[_0x3fbf97('0xa')])db[_0x3fbf97('0x5d')]['findOne']({'where':{'id':_0x69b43e[_0x3fbf97('0xa')]['id']},'attributes':userAttributes})['then'](function(_0xacfed0){const _0x1ac2bb=_0x3fbf97;if(!_0xacfed0)return _0x4215fe[_0x1ac2bb('0x10')](0x194)[_0x1ac2bb('0x6b')]({'message':_0x1ac2bb('0x5f')});_0x69b43e['user']=_0xacfed0,_0x351835();})[_0x3fbf97('0x0')](function(_0x2ffab2){_0x351835(_0x2ffab2);});else{if(_0x1b51c5)_0x351835();else return _0x4215fe[_0x3fbf97('0x10')](0x194)[_0x3fbf97('0x6b')]({'message':_0x3fbf97('0x25')});}});}function canUpdate(){return compose()['use'](function(_0x4977a1,_0x859ea9,_0x3edc8e){const _0x1528c6=a823_0x11a8;return licenseUtil[_0x1528c6('0x4')]()['then'](function(_0x45bb2a){const _0x1a06ea=_0x1528c6;if(_0x45bb2a[_0x1a06ea('0x20')])_0x3edc8e();else return _0x859ea9[_0x1a06ea('0x10')](0x193)[_0x1a06ea('0x6b')]({'message':_0x1a06ea('0x40')});})['catch'](function(_0x228faf){_0x3edc8e(_0x228faf);});});}function isMiddleware(_0xa2a268,_0x45bb4,_0x355365){return _0xa2a268['isMiddleware']=!![],_0x355365();}function signToken(_0x3700c8){return signJwt(_0x3700c8);}function setTokenCookie(_0x225cf2,_0x2db0c9){const _0x4b9364=_0x54d3be;if(!_0x225cf2[_0x4b9364('0xa')])return _0x2db0c9['status'](0x194)['json']({'message':_0x4b9364('0x66')});const _0x4eb4b6={'payload':{'id':_0x225cf2[_0x4b9364('0xa')]['id'],'role':_0x225cf2[_0x4b9364('0xa')][_0x4b9364('0x1a')]},'options':{'expiresIn':0x15180}};return signJwt(_0x4eb4b6)['then'](function(_0x4b818d){const _0x45a634=_0x4b9364;_0x2db0c9[_0x45a634('0x28')](_0x45a634('0x54'),_0x4b818d),_0x2db0c9[_0x45a634('0x21')](_0x45a634('0x1c'));})['catch'](function(_0x2c2c96){const _0x12d1c2=_0x4b9364;return _0x2db0c9['status'](0x1f4)[_0x12d1c2('0x51')](_0x2c2c96);});}function retrieveApiKey(_0x3c4c89){const _0x71d9d5=_0x54d3be;return _['isNil'](_0x3c4c89[_0x71d9d5('0x7')])||_[_0x71d9d5('0x59')](_0x3c4c89[_0x71d9d5('0x57')])?null:createJwt(_0x3c4c89);}function generateApiKey(_0x1c47f8){const _0xc7ebed=_0x54d3be;return _0x1c47f8[_0xc7ebed('0x7')]=generateNonce(),_0x1c47f8['apiKeyIat']=generateIssuedAt(),createJwt(_0x1c47f8);}function regenerateApiKey(_0x56ae00,_0x51a223){const _0x4af7cc=_0x54d3be,_0x1938ff=_0x56ae00[_0x4af7cc('0x26')]['apikey'];if(_0x1938ff){const _0x43784f={'nonce':_0x51a223['apiKeyNonce'],'iat':_0x51a223['apiKeyIat'],'audience':hardwareConf[_0x4af7cc('0xb')](),'issuer':hardwareConf['getUuid']()};return verifyJwt(_0x1938ff,_0x43784f)['then'](function(){return generateApiKey(_0x51a223);});}else throw{'message':_0x4af7cc('0x67')};}function validatePasswordPattern(_0x17c977){const _0xa7a54e=_0x54d3be,_0x4a2324=new RegExp(/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/);if(!_0x4a2324[_0xa7a54e('0xc')](_0x17c977))throw new ValidationError(_0xa7a54e('0x63'));return;}function validatePasswordHistory(_0x1194a6,_0x1de729,_0x5504ee){const _0x8f0549=_0x54d3be,_0x574562=encryptor[_0x8f0549('0x34')](_0x1de729)[_0x8f0549('0x5a')](',');for(let _0x65304f=0x0;_0x65304f<_0x5504ee;_0x65304f++){if(!_0x574562[_0x65304f])break;if(_0x1194a6[_0x8f0549('0x6')]()===_0x574562[_0x65304f][_0x8f0549('0x6')]()){let _0x4205e5=util[_0x8f0549('0x15')](_0x8f0549('0xe'),_0x5504ee);_0x5504ee===0x1&&(_0x4205e5=_0x8f0549('0x44'));throw new ValidationError(_0x4205e5);}}return;}function updatePasswordsHistory(_0x46f6a9,_0x43867b){const _0x26015b=_0x54d3be,_0x20c4cd=_0x43867b?encryptor[_0x26015b('0x34')](_0x43867b)[_0x26015b('0x5a')](','):[];return _0x20c4cd[_0x26015b('0x47')]===0x5&&_0x20c4cd['splice'](-0x1,0x1),_0x20c4cd[_0x26015b('0x19')](_0x46f6a9),encryptor['encryptString'](_0x20c4cd[_0x26015b('0x52')](','));}function signJwt(_0x1557f7){const _0x10aaa5=_0x54d3be,_0x3e2436=util['promisify'](jwt[_0x10aaa5('0x4c')],{'context':jwt}),_0x171b49=_0x1557f7[_0x10aaa5('0x45')]||config[_0x10aaa5('0x2b')][_0x10aaa5('0x5e')];return new Promise(function(_0x3bbd87,_0x47850a){const _0x37522b=_0x10aaa5;_0x3e2436(_0x1557f7[_0x37522b('0x13')],_0x171b49,_0x1557f7[_0x37522b('0x5')])['then'](function(_0x1c7491){_0x3bbd87(_0x1c7491);})[_0x37522b('0x0')](function(_0x30d0fb){_0x47850a(_0x30d0fb);});});}function verifyJwt(_0x21bc00,_0x1d4e31,_0x205d00){const _0x6c0c23=_0x54d3be,_0x109fd8=util[_0x6c0c23('0x6a')](jwt['verify'],{'context':jwt}),_0x281704=_0x205d00||config[_0x6c0c23('0x2b')]['session'];return new Promise(function(_0x59fa4e,_0x4f2445){const _0x3de6fa=_0x6c0c23;_0x109fd8(_0x21bc00,_0x281704,_0x1d4e31)[_0x3de6fa('0x4a')](function(_0xfe776){_0x59fa4e(_0xfe776);})[_0x3de6fa('0x0')](function(_0x47434a){_0x4f2445(_0x47434a);});});}function generateNonce(){const _0x3e17dd=_0x54d3be;return crypto[_0x3e17dd('0x5b')](0x10)['toString'](_0x3e17dd('0xf'));}function generateIssuedAt(){const _0x3bbd92=_0x54d3be;return Math[_0x3bbd92('0x17')](Date['now']()/0x3e8)['toString']();}function createJwt(_0x26e7cc){const _0x2baa69=_0x54d3be,_0x5e2dd9={'payload':{'iat':_0x26e7cc[_0x2baa69('0x57')],'nonce':_0x26e7cc[_0x2baa69('0x7')]},'options':{'algorithm':'HS512','subject':_0x26e7cc['id'][_0x2baa69('0x3b')](),'issuer':hardwareConf[_0x2baa69('0xb')](),'audience':hardwareConf[_0x2baa69('0xb')]()}};return signJwt(_0x5e2dd9)[_0x2baa69('0x4a')](function(_0x158e83){const _0x16e887=_0x2baa69;return{'iat':_0x26e7cc[_0x16e887('0x57')],'nonce':_0x26e7cc[_0x16e887('0x7')],'token':_0x158e83};});}module[_0x54d3be('0x3')]={'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 a985_0x6866=['startsWith','exports','query','../encryptor','pauseType','The\x20password\x20must\x20be\x20different\x20from\x20the\x20last\x20one.\x20Please\x20choose\x20another\x20one.','User\x20object\x20not\x20found.','It\x20looks\x20like\x20you\x20aren\x27t\x20logged\x20in,\x20please\x20try\x20again.','isMiddleware','name','floor','email','findOne','headers','getLicense','authenticate','HS256','fullname','pass','../../mysqldb','isEqual','phoneBarEnableRecording','isNil','openchannelPause','session','secrets','unmanaged','toString','toLowerCase','validatePasswordHistory','payload','lastLoginAt','Unknown\x20authorization\x20format','phoneBarEnableSettings','crudPermissions','canUpdate','util','catch','permissions','nonce','basic-auth','getUuid','update','randomBytes','authorization','regenerateApiKey','phoneBarAutoAnswerDelay','alias','verify','phoneBarRemoteControlPort','signToken','apiKeyNonce','isChatInteractionAuthorized','apikey','crypto','The\x20password\x20must\x20be\x20at\x20least\x208\x20characters\x20long\x20and\x20have\x201\x20lowercase\x20character,\x201\x20uppercase\x20character,\x201\x20number\x20and\x201\x20special\x20character\x20~!@#$%^&-_=+[{]}.','decryptString','jsonwebtoken','json','Unmanaged.','status','internal','The\x20password\x20must\x20be\x20different\x20from\x20the\x20previous\x20%d\x20passwords.\x20Please\x20choose\x20another\x20one.','format','Forbidden.','closed','faxPause','phoneBarEnableDtmfTone','send','userpic','motion.token','Basic','unshift','Wrong\x20credentials.','disposition','role','/dashboards/general','User','composable-middleware','md5secret','use','API\x20access\x20key\x20is\x20not\x20valid\x20anymore','ChatInteraction','chatPause','voicePause','user','retrieveApiKey','isAuthenticated','sub','validatePasswordPattern','split','redirect','hotdesk','mailPause','phoneBarAutoAnswer','apiKeyIat','smsPause','splice','sequelize','encryptString','interface','then','../../config/license/hardware','User\x20not\x20found.','Bearer','../../config/license/util','lastPauseAt','allowmessenger','showWebBar','options','promisify','secret','phoneBarPrefixRequired','hex'];(function(_0x1b4ce2,_0x3b85e2){const _0x686630=function(_0x4553d6){while(--_0x4553d6){_0x1b4ce2['push'](_0x1b4ce2['shift']());}};_0x686630(++_0x3b85e2);}(a985_0x6866,0xbd));const a985_0x4553=function(_0x1b4ce2,_0x3b85e2){_0x1b4ce2=_0x1b4ce2-0x132;let _0x686630=a985_0x6866[_0x1b4ce2];return _0x686630;};const a985_0x4330c9=a985_0x4553;'use strict';const {db}=require(a985_0x4330c9(0x16c)),{ValidationError}=require(a985_0x4330c9(0x149)),config=require('../../config/environment'),hardwareConf=require(a985_0x4330c9(0x14d)),licenseUtil=require(a985_0x4330c9(0x150)),encryptor=require(a985_0x4330c9(0x15c)),util=require(a985_0x4330c9(0x17d)),_=require('lodash'),jwt=require(a985_0x4330c9(0x192)),expressJwt=require('express-jwt'),compose=require(a985_0x4330c9(0x135)),basicAuth=require(a985_0x4330c9(0x181)),crypto=require(a985_0x4330c9(0x18f)),validateJwt=expressJwt({'secret':config[a985_0x4330c9(0x172)][a985_0x4330c9(0x171)],'algorithms':[a985_0x4330c9(0x169)]}),userAttributes=['id',a985_0x4330c9(0x132),a985_0x4330c9(0x16a),a985_0x4330c9(0x162),a985_0x4330c9(0x196),a985_0x4330c9(0x164),a985_0x4330c9(0x19e),a985_0x4330c9(0x17f),a985_0x4330c9(0x136),a985_0x4330c9(0x13b),a985_0x4330c9(0x13a),a985_0x4330c9(0x144),a985_0x4330c9(0x19b),a985_0x4330c9(0x147),a985_0x4330c9(0x170),a985_0x4330c9(0x15d),a985_0x4330c9(0x153),a985_0x4330c9(0x178),a985_0x4330c9(0x151),a985_0x4330c9(0x17b),a985_0x4330c9(0x152),'passwordResetAt',a985_0x4330c9(0x188),a985_0x4330c9(0x145),a985_0x4330c9(0x187),'phoneBarDnd',a985_0x4330c9(0x16e),a985_0x4330c9(0x19c),a985_0x4330c9(0x17a),'phoneBarExpires',a985_0x4330c9(0x157),'phoneBarRemoteControl',a985_0x4330c9(0x18a),a985_0x4330c9(0x143),a985_0x4330c9(0x14b),'userProfileId','settingsEnabled'];function isChatInteractionAuthorized(){const _0x1ed8ec=a985_0x4330c9;return this[_0x1ed8ec(0x13e)](!![])[_0x1ed8ec(0x137)](function(_0x54d82b,_0x542b93,_0x6c46e8){const _0x135deb=_0x1ed8ec;if(_0x54d82b[_0x135deb(0x13c)])_0x6c46e8();else return db[_0x135deb(0x139)][_0x135deb(0x165)]({'where':{'id':_0x54d82b['params']['id']},'attributes':['id','closed',_0x135deb(0x1a3)],'raw':!![]})['then'](function(_0x2bf974){const _0x2adad4=_0x135deb;if(_0x2bf974&&_0x2bf974[_0x2adad4(0x19a)])return _0x542b93['status'](_0x2bf974[_0x2adad4(0x1a3)]===_0x2adad4(0x173)?0x195:0x193)['json']({'message':_0x2bf974['disposition']==='unmanaged'?_0x2adad4(0x194):_0x2adad4(0x199)});else _0x6c46e8();})[_0x135deb(0x17e)](function(_0x59e83a){_0x6c46e8(_0x59e83a);});});}function isAuthenticated(_0x2016ed){return compose()['use'](function(_0x1c3302,_0x5d873e,_0x90b2ee){const _0x3ef333=a985_0x4553;if(_0x1c3302['headers'][_0x3ef333(0x185)]){if(_[_0x3ef333(0x159)](_0x1c3302[_0x3ef333(0x166)][_0x3ef333(0x185)],_0x3ef333(0x1a0))){const _0xe1ef7e=basicAuth(_0x1c3302);db[_0x3ef333(0x134)]['findOne']({'where':{'name':_0xe1ef7e['name']}})[_0x3ef333(0x14c)](function(_0x2d9ce1){const _0x1caa31=_0x3ef333;if(!_0x2d9ce1||!_0x2d9ce1[_0x1caa31(0x168)](_0xe1ef7e[_0x1caa31(0x16b)]))return _0x5d873e[_0x1caa31(0x195)](0x191)[_0x1caa31(0x193)]({'message':_0x1caa31(0x1a2)});_0x1c3302[_0x1caa31(0x13c)]={'id':_0x2d9ce1['id']},_0x90b2ee();})[_0x3ef333(0x17e)](function(_0x55bec5){_0x90b2ee(_0x55bec5);});}else{if(_[_0x3ef333(0x159)](_0x1c3302[_0x3ef333(0x166)]['authorization'],_0x3ef333(0x14f)))validateJwt(_0x1c3302,_0x5d873e,_0x90b2ee);else{if(_0x2016ed)_0x90b2ee();else return _0x5d873e[_0x3ef333(0x195)](0x193)['json']({'message':_0x3ef333(0x179)});}}}else{if(_0x1c3302[_0x3ef333(0x15b)]['apikey'])try{const _0x263ed0={'audience':hardwareConf[_0x3ef333(0x182)](),'issuer':hardwareConf[_0x3ef333(0x182)]()};verifyJwt(_0x1c3302[_0x3ef333(0x15b)][_0x3ef333(0x18e)],_0x263ed0)[_0x3ef333(0x14c)](function(_0x36671b){const _0x276eea=_0x3ef333;return db[_0x276eea(0x134)][_0x276eea(0x165)]({'where':{'id':_0x36671b[_0x276eea(0x13f)]}})[_0x276eea(0x14c)](function(_0x29965c){const _0x3803a5=_0x276eea;if(!_0x29965c||!_[_0x3803a5(0x16d)](_0x29965c[_0x3803a5(0x18c)],_0x36671b[_0x3803a5(0x180)]))return _0x5d873e['status'](0x191)['json']({'message':_0x3803a5(0x138)});_0x1c3302[_0x3803a5(0x13c)]={'id':_0x29965c['id']},_0x90b2ee();});})[_0x3ef333(0x17e)](function(){const _0x1dbea2=_0x3ef333;return _0x5d873e[_0x1dbea2(0x195)](0x191)['json']({'message':'Invalid\x20API\x20access\x20key'});});}catch(_0x341593){_0x90b2ee(_0x341593);}else{if(_0x2016ed)_0x90b2ee();else return _0x5d873e[_0x3ef333(0x195)](0x193)[_0x3ef333(0x193)]({'message':_0x3ef333(0x179)});}}})['use'](function(_0x1506c6,_0x5e7e0c,_0x4b9052){const _0x222547=a985_0x4553;if(_0x1506c6[_0x222547(0x13c)])db[_0x222547(0x134)][_0x222547(0x165)]({'where':{'id':_0x1506c6[_0x222547(0x13c)]['id']},'attributes':userAttributes})[_0x222547(0x14c)](function(_0x374d51){const _0x57bf23=_0x222547;if(!_0x374d51)return _0x5e7e0c[_0x57bf23(0x195)](0x194)[_0x57bf23(0x193)]({'message':_0x57bf23(0x14e)});_0x1506c6[_0x57bf23(0x13c)]=_0x374d51,_0x4b9052();})['catch'](function(_0x80b1f7){_0x4b9052(_0x80b1f7);});else{if(_0x2016ed)_0x4b9052();else return _0x5e7e0c[_0x222547(0x195)](0x194)[_0x222547(0x193)]({'message':_0x222547(0x15f)});}});}function canUpdate(){const _0x1fa3ac=a985_0x4330c9;return compose()[_0x1fa3ac(0x137)](function(_0x56c4eb,_0x30d72e,_0x1c8a1b){const _0x53e6ec=_0x1fa3ac;return licenseUtil[_0x53e6ec(0x167)]()[_0x53e6ec(0x14c)](function(_0x1dd401){const _0x13d005=_0x53e6ec;if(_0x1dd401[_0x13d005(0x183)])_0x1c8a1b();else return _0x30d72e[_0x13d005(0x195)](0x193)[_0x13d005(0x193)]({'message':'Forbidden'});})['catch'](function(_0x14036e){_0x1c8a1b(_0x14036e);});});}function isMiddleware(_0x10272a,_0x39b3e5,_0x38e2c0){const _0x78b9fe=a985_0x4330c9;return _0x10272a[_0x78b9fe(0x161)]=!![],_0x38e2c0();}function signToken(_0x12d0cf){return signJwt(_0x12d0cf);}function setTokenCookie(_0x59b75d,_0x3377a3){const _0xac1009=a985_0x4330c9;if(!_0x59b75d['user'])return _0x3377a3[_0xac1009(0x195)](0x194)['json']({'message':_0xac1009(0x160)});const _0x594897={'payload':{'id':_0x59b75d[_0xac1009(0x13c)]['id'],'role':_0x59b75d[_0xac1009(0x13c)][_0xac1009(0x132)]},'options':{'expiresIn':0x15180}};return signJwt(_0x594897)['then'](function(_0x52e944){const _0x567e64=_0xac1009;_0x3377a3['cookie'](_0x567e64(0x19f),_0x52e944),_0x3377a3[_0x567e64(0x142)](_0x567e64(0x133));})[_0xac1009(0x17e)](function(_0x1bd12a){const _0xd8ae15=_0xac1009;return _0x3377a3[_0xd8ae15(0x195)](0x1f4)[_0xd8ae15(0x19d)](_0x1bd12a);});}function retrieveApiKey(_0x222ca0){const _0x241ea9=a985_0x4330c9;return _[_0x241ea9(0x16f)](_0x222ca0[_0x241ea9(0x18c)])||_[_0x241ea9(0x16f)](_0x222ca0[_0x241ea9(0x146)])?null:createJwt(_0x222ca0);}function generateApiKey(_0x254dc0){const _0x211e62=a985_0x4330c9;return _0x254dc0['apiKeyNonce']=generateNonce(),_0x254dc0[_0x211e62(0x146)]=generateIssuedAt(),createJwt(_0x254dc0);}function regenerateApiKey(_0x1c561f,_0x37ee8e){const _0x326c01=a985_0x4330c9,_0x1ab497=_0x1c561f['query']['apikey'];if(_0x1ab497){const _0x4b29e4={'nonce':_0x37ee8e['apiKeyNonce'],'iat':_0x37ee8e['apiKeyIat'],'audience':hardwareConf['getUuid'](),'issuer':hardwareConf[_0x326c01(0x182)]()};return verifyJwt(_0x1ab497,_0x4b29e4)['then'](function(){return generateApiKey(_0x37ee8e);});}else throw{'message':'Please\x20use\x20the\x20previous\x20API\x20access\x20key\x20to\x20generate\x20a\x20new\x20one'};}function validatePasswordPattern(_0x15c9e6){const _0xa4dbcd=a985_0x4330c9,_0x3acbdd=new RegExp(/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/);if(!_0x3acbdd['test'](_0x15c9e6))throw new ValidationError(_0xa4dbcd(0x190));return;}function validatePasswordHistory(_0x221fd6,_0x83e66c,_0x4d6d37){const _0x482e5c=a985_0x4330c9,_0xfa3d84=encryptor['decryptString'](_0x83e66c)[_0x482e5c(0x141)](',');for(let _0x2c7053=0x0;_0x2c7053<_0x4d6d37;_0x2c7053++){if(!_0xfa3d84[_0x2c7053])break;if(_0x221fd6[_0x482e5c(0x175)]()===_0xfa3d84[_0x2c7053][_0x482e5c(0x175)]()){let _0x2ac3d1=util[_0x482e5c(0x198)](_0x482e5c(0x197),_0x4d6d37);_0x4d6d37===0x1&&(_0x2ac3d1=_0x482e5c(0x15e));throw new ValidationError(_0x2ac3d1);}}return;}function updatePasswordsHistory(_0x49edbe,_0x54f6e4){const _0x2c29bd=a985_0x4330c9,_0x25dae2=_0x54f6e4?encryptor[_0x2c29bd(0x191)](_0x54f6e4)['split'](','):[];return _0x25dae2['length']===0x5&&_0x25dae2[_0x2c29bd(0x148)](-0x1,0x1),_0x25dae2[_0x2c29bd(0x1a1)](_0x49edbe),encryptor[_0x2c29bd(0x14a)](_0x25dae2['join'](','));}function signJwt(_0x1efdfb){const _0x4a480f=a985_0x4330c9,_0x3d1091=util[_0x4a480f(0x155)](jwt['sign'],{'context':jwt}),_0x7a3e6f=_0x1efdfb[_0x4a480f(0x156)]||config[_0x4a480f(0x172)][_0x4a480f(0x171)];return new Promise(function(_0x591924,_0x45f48a){const _0x5a6a97=_0x4a480f;_0x3d1091(_0x1efdfb[_0x5a6a97(0x177)],_0x7a3e6f,_0x1efdfb[_0x5a6a97(0x154)])['then'](function(_0x4f6efa){_0x591924(_0x4f6efa);})[_0x5a6a97(0x17e)](function(_0x25ab77){_0x45f48a(_0x25ab77);});});}function verifyJwt(_0x723a84,_0x125fc4,_0x2ef04f){const _0x43713c=a985_0x4330c9,_0xb9ad=util[_0x43713c(0x155)](jwt[_0x43713c(0x189)],{'context':jwt}),_0x239064=_0x2ef04f||config[_0x43713c(0x172)][_0x43713c(0x171)];return new Promise(function(_0x888e35,_0xfc3e71){const _0x527fc4=_0x43713c;_0xb9ad(_0x723a84,_0x239064,_0x125fc4)[_0x527fc4(0x14c)](function(_0x2812a7){_0x888e35(_0x2812a7);})[_0x527fc4(0x17e)](function(_0x372359){_0xfc3e71(_0x372359);});});}function generateNonce(){const _0x4e7ec2=a985_0x4330c9;return crypto[_0x4e7ec2(0x184)](0x10)['toString'](_0x4e7ec2(0x158));}function generateIssuedAt(){const _0x4267cc=a985_0x4330c9;return Math[_0x4267cc(0x163)](Date['now']()/0x3e8)[_0x4267cc(0x174)]();}function createJwt(_0x2a7c95){const _0x5032b0=a985_0x4330c9,_0x43de54={'payload':{'iat':_0x2a7c95['apiKeyIat'],'nonce':_0x2a7c95[_0x5032b0(0x18c)]},'options':{'algorithm':'HS512','subject':_0x2a7c95['id']['toString'](),'issuer':hardwareConf['getUuid'](),'audience':hardwareConf[_0x5032b0(0x182)]()}};return signJwt(_0x43de54)[_0x5032b0(0x14c)](function(_0x567d7d){const _0x490e53=_0x5032b0;return{'iat':_0x2a7c95['apiKeyIat'],'nonce':_0x2a7c95[_0x490e53(0x18c)],'token':_0x567d7d};});}module['exports'][a985_0x4330c9(0x18d)]=isChatInteractionAuthorized,module['exports'][a985_0x4330c9(0x13e)]=isAuthenticated,module['exports'][a985_0x4330c9(0x17c)]=canUpdate,module[a985_0x4330c9(0x15a)][a985_0x4330c9(0x161)]=isMiddleware,module[a985_0x4330c9(0x15a)][a985_0x4330c9(0x18b)]=signToken,module['exports']['setTokenCookie']=setTokenCookie,module['exports'][a985_0x4330c9(0x13d)]=retrieveApiKey,module[a985_0x4330c9(0x15a)]['generateApiKey']=generateApiKey,module[a985_0x4330c9(0x15a)][a985_0x4330c9(0x186)]=regenerateApiKey,module[a985_0x4330c9(0x15a)][a985_0x4330c9(0x140)]=validatePasswordPattern,module[a985_0x4330c9(0x15a)][a985_0x4330c9(0x176)]=validatePasswordHistory,module[a985_0x4330c9(0x15a)]['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 abb6fe8..02f765c 100644 --- a/server/components/encryptor/create-cypher-fallback.js +++ b/server/components/encryptor/create-cypher-fallback.js @@ -1 +1 @@ -const a824_0x55f1=['exports','message','crypto','min','slice','Missing\x20passphrase','hex','md5','test','Missing\x20cipher','update','repeat','length','from'];(function(_0xb020c1,_0x55f1e7){const _0x3ce0a0=function(_0x134931){while(--_0x134931){_0xb020c1['push'](_0xb020c1['shift']());}};_0x3ce0a0(++_0x55f1e7);}(a824_0x55f1,0x15f));const a824_0x3ce0=function(_0xb020c1,_0x55f1e7){_0xb020c1=_0xb020c1-0x0;let _0x3ce0a0=a824_0x55f1[_0xb020c1];return _0x3ce0a0;};const _0x56a24a=a824_0x3ce0;'use strict';const {createCipheriv,createHash}=require(_0x56a24a('0x1'));function sizes(_0x134931){const _0x2be069=_0x56a24a;for(let _0x3baa9d=0x1,_0x434913=0x0;;){try{return createCipheriv(_0x134931,'.'[_0x2be069('0xa')](_0x3baa9d),'.'[_0x2be069('0xa')](_0x434913)),[_0x3baa9d,_0x434913];}catch(_0x3286d1){if(/invalid iv length/i[_0x2be069('0x7')](_0x3286d1[_0x2be069('0x0')]))_0x434913+=0x1;else{if(/invalid key length/i['test'](_0x3286d1[_0x2be069('0x0')]))_0x3baa9d+=0x1;else throw _0x3286d1;}}}}function compute(_0x285386,_0x1c1677){const _0x3ae7c7=_0x56a24a;let [_0x2043b7,_0x51c9a5]=sizes(_0x285386);for(let _0x193a42='',_0x2a0001='',_0x1e6b4c='';;){const _0x3d1cef=createHash(_0x3ae7c7('0x6'));_0x3d1cef['update'](_0x1e6b4c,_0x3ae7c7('0x5')),_0x3d1cef[_0x3ae7c7('0x9')](_0x1c1677),_0x1e6b4c=_0x3d1cef['digest'](_0x3ae7c7('0x5'));let _0x2bc5ae=0x0,_0x2b5d3d=0x0;_0x2bc5ae=Math[_0x3ae7c7('0x2')](_0x1e6b4c[_0x3ae7c7('0xb')]-_0x2b5d3d,0x2*_0x2043b7),(_0x2043b7-=_0x2bc5ae/0x2,_0x193a42+=_0x1e6b4c[_0x3ae7c7('0x3')](_0x2b5d3d,_0x2b5d3d+_0x2bc5ae),_0x2b5d3d+=_0x2bc5ae),_0x2bc5ae=Math[_0x3ae7c7('0x2')](_0x1e6b4c[_0x3ae7c7('0xb')]-_0x2b5d3d,0x2*_0x51c9a5),(_0x51c9a5-=_0x2bc5ae/0x2,_0x2a0001+=_0x1e6b4c['slice'](_0x2b5d3d,_0x2b5d3d+_0x2bc5ae),_0x2b5d3d+=_0x2bc5ae);if(_0x2043b7+_0x51c9a5===0x0)return[_0x193a42,_0x2a0001];}}function createCypherFallback(_0x1a12a0,_0xff0719){const _0x12ae05=_0x56a24a;if(!_0x1a12a0)throw new Error(_0x12ae05('0x8'));if(!_0xff0719)throw new Error(_0x12ae05('0x4'));const [_0x22c179,_0x586e5e]=compute(_0x1a12a0,_0xff0719);return{'key':Buffer['from'](_0x22c179,_0x12ae05('0x5')),'iv':Buffer[_0x12ae05('0xc')](_0x586e5e,_0x12ae05('0x5'))};}module[_0x56a24a('0xd')]={'createCypherFallback':createCypherFallback}; \ No newline at end of file +const a986_0x2f35=['md5','update','length','message','min','from','Missing\x20cipher','slice','test','digest','Missing\x20passphrase','repeat','createCypherFallback','hex'];(function(_0x232f3b,_0x4332b0){const _0x2f35a1=function(_0x2bf3e8){while(--_0x2bf3e8){_0x232f3b['push'](_0x232f3b['shift']());}};_0x2f35a1(++_0x4332b0);}(a986_0x2f35,0x175));const a986_0x2bf3=function(_0x232f3b,_0x4332b0){_0x232f3b=_0x232f3b-0x6e;let _0x2f35a1=a986_0x2f35[_0x232f3b];return _0x2f35a1;};const a986_0x1897ce=a986_0x2bf3;'use strict';const {createCipheriv,createHash}=require('crypto');function sizes(_0x511533){const _0x49295d=a986_0x2bf3;for(let _0x3d27f9=0x1,_0x23e7bd=0x0;;){try{return createCipheriv(_0x511533,'.'[_0x49295d(0x70)](_0x3d27f9),'.'['repeat'](_0x23e7bd)),[_0x3d27f9,_0x23e7bd];}catch(_0x3d2a78){if(/invalid iv length/i[_0x49295d(0x7b)](_0x3d2a78['message']))_0x23e7bd+=0x1;else{if(/invalid key length/i[_0x49295d(0x7b)](_0x3d2a78[_0x49295d(0x76)]))_0x3d27f9+=0x1;else throw _0x3d2a78;}}}}function compute(_0x41c5aa,_0x1d219d){const _0x5c6ab3=a986_0x2bf3;let [_0x4dfd29,_0xed51c2]=sizes(_0x41c5aa);for(let _0x5834c6='',_0x4192dc='',_0x103ef2='';;){const _0x3eabb9=createHash(_0x5c6ab3(0x73));_0x3eabb9[_0x5c6ab3(0x74)](_0x103ef2,_0x5c6ab3(0x72)),_0x3eabb9[_0x5c6ab3(0x74)](_0x1d219d),_0x103ef2=_0x3eabb9[_0x5c6ab3(0x6e)](_0x5c6ab3(0x72));let _0x2bf9d1=0x0,_0x1ccad7=0x0;_0x2bf9d1=Math[_0x5c6ab3(0x77)](_0x103ef2[_0x5c6ab3(0x75)]-_0x1ccad7,0x2*_0x4dfd29),(_0x4dfd29-=_0x2bf9d1/0x2,_0x5834c6+=_0x103ef2['slice'](_0x1ccad7,_0x1ccad7+_0x2bf9d1),_0x1ccad7+=_0x2bf9d1),_0x2bf9d1=Math[_0x5c6ab3(0x77)](_0x103ef2[_0x5c6ab3(0x75)]-_0x1ccad7,0x2*_0xed51c2),(_0xed51c2-=_0x2bf9d1/0x2,_0x4192dc+=_0x103ef2[_0x5c6ab3(0x7a)](_0x1ccad7,_0x1ccad7+_0x2bf9d1),_0x1ccad7+=_0x2bf9d1);if(_0x4dfd29+_0xed51c2===0x0)return[_0x5834c6,_0x4192dc];}}function createCypherFallback(_0x58df63,_0x571b8c){const _0x5123d8=a986_0x2bf3;if(!_0x58df63)throw new Error(_0x5123d8(0x79));if(!_0x571b8c)throw new Error(_0x5123d8(0x6f));const [_0x442c8e,_0x2ec086]=compute(_0x58df63,_0x571b8c);return{'key':Buffer[_0x5123d8(0x78)](_0x442c8e,_0x5123d8(0x72)),'iv':Buffer[_0x5123d8(0x78)](_0x2ec086,_0x5123d8(0x72))};}module['exports'][a986_0x1897ce(0x71)]=createCypherFallback; \ No newline at end of file diff --git a/server/components/encryptor/index.js b/server/components/encryptor/index.js index 3a488df..c4e1774 100644 --- a/server/components/encryptor/index.js +++ b/server/components/encryptor/index.js @@ -1 +1 @@ -const a825_0x2812=['update','base64','createHash','exports','binary','error','substr','unlink','sha256','final','data1','key','aes-256-ctr','join','license','separator','randomBytes','crypto','undefined','length','toString','data','read','promises','algorithm','utf8','write','concat','createWriteStream','app','createReadStream','utf-8','secret','from','../../config/logger','split','slice','./create-cypher-fallback','digest','open','parse','end','close','createCipheriv','info'];(function(_0x562b09,_0x2812ed){const _0x40b9a7=function(_0xdf8190){while(--_0xdf8190){_0x562b09['push'](_0x562b09['shift']());}};_0x40b9a7(++_0x2812ed);}(a825_0x2812,0xcb));const a825_0x40b9=function(_0x562b09,_0x2812ed){_0x562b09=_0x562b09-0x0;let _0x40b9a7=a825_0x2812[_0x562b09];return _0x40b9a7;};const _0x1ee946=a825_0x40b9;'use strict';const fs=require('fs'),crypto=require(_0x1ee946('0x27')),{createCypherFallback}=require(_0x1ee946('0xe')),logger=require(_0x1ee946('0xb'))(_0x1ee946('0x6')),DEFAULT_STRING_OPTIONS={'secret':'some-naughty-secret','algorithm':_0x1ee946('0x22'),'separator':'!'},DEFAULT_FILE_OPTIONS={'algorithm':'aes192','separator':'!'},KEYLEN_MAP={'aes-256-ctr':0x20,'aes192':0x18},IVLEN_MAP={'aes-256-ctr':0x18,'aes192':0x10};function getCipherAndIvText(_0xdf8190,_0x54ffee,_0x3b06c7){const _0x37ae40=_0x1ee946,_0x267850=KEYLEN_MAP[_0x54ffee],_0x228979=crypto[_0x37ae40('0x18')](_0x37ae40('0x1e'))[_0x37ae40('0x16')](String(_0xdf8190))[_0x37ae40('0xf')]('base64')['substr'](0x0,_0x267850),_0x3ebd49=Buffer[_0x37ae40('0xa')](_0x228979,'utf-8'),_0x2fd28e=crypto[_0x37ae40('0x26')](0x10),_0x528811=_0x2fd28e['toString'](_0x37ae40('0x17')),_0x195c8a=crypto[_0x37ae40('0x14')](_0x54ffee,_0x3ebd49,_0x2fd28e,_0x3b06c7);return[_0x195c8a,_0x528811];}function getDecipher(_0x4a906d,_0x3acf74,_0x562950,_0x2d0749){const _0x4e8013=_0x1ee946,_0x1033f5=KEYLEN_MAP[_0x3acf74],_0x39a0c9=typeof _0x562950==='string'&&_0x562950[_0x4e8013('0x29')]>0x0;let _0x30f7d1=null,_0x5580d7=null;if(!_0x39a0c9){logger[_0x4e8013('0x15')]('Missing\x20Initialization\x20Vector\x20in\x20the\x20encrypted\x20string.\x20Using\x20fallbacks.');const _0x2c91fb=createCypherFallback(_0x3acf74,_0x4a906d);_0x5580d7=_0x2c91fb['iv'],_0x30f7d1=_0x2c91fb[_0x4e8013('0x21')];}const _0x4f69a2=_0x39a0c9?Buffer[_0x4e8013('0xa')](_0x562950,_0x4e8013('0x17')):_0x5580d7,_0xbce435=_0x39a0c9?crypto[_0x4e8013('0x18')](_0x4e8013('0x1e'))[_0x4e8013('0x16')](String(_0x4a906d))[_0x4e8013('0xf')]('base64')[_0x4e8013('0x1c')](0x0,_0x1033f5):null,_0x4f8add=_0x39a0c9?Buffer['from'](_0xbce435,'utf-8'):_0x30f7d1,_0x591f2b=crypto['createDecipheriv'](_0x3acf74,_0x4f8add,_0x4f69a2,_0x2d0749);return _0x591f2b;}function encryptFile(_0x4dff48,_0x264885,_0x4fcb5d,_0x360408={}){return new Promise(function(_0x44d282,_0x5c8b70){const _0x325f9c=a825_0x40b9;_0x360408={...DEFAULT_FILE_OPTIONS,..._0x360408};const _0x4b53d0=fs[_0x325f9c('0x7')](_0x4dff48),_0x65f27d=fs[_0x325f9c('0x5')](_0x264885),[_0x336fac,_0x5a8734]=getCipherAndIvText(_0x4fcb5d,_0x360408[_0x325f9c('0x1')]);_0x4b53d0['on']('open',function(){const _0x10e17c=_0x325f9c,_0x1ef7f2=Buffer[_0x10e17c('0xa')](_0x5a8734,_0x10e17c('0x17')),_0x304d4e=Buffer['from'](_0x360408[_0x10e17c('0x25')],_0x10e17c('0x8'));_0x65f27d[_0x10e17c('0x3')](Buffer[_0x10e17c('0x4')]([_0x1ef7f2,_0x304d4e],_0x1ef7f2[_0x10e17c('0x29')]+_0x304d4e['length']));}),_0x4b53d0['on']('data',function(_0x18bcb8){const _0x35be1e=_0x325f9c,_0x5888cb=Buffer[_0x35be1e('0xa')](_0x336fac['update'](_0x18bcb8),_0x35be1e('0x1a'));_0x65f27d[_0x35be1e('0x3')](_0x5888cb);}),_0x4b53d0['on'](_0x325f9c('0x12'),function(){const _0x3a5cbd=_0x325f9c;try{const _0x117ee3=Buffer[_0x3a5cbd('0xa')](_0x336fac['final']('binary'),'binary');_0x65f27d[_0x3a5cbd('0x3')](_0x117ee3),_0x65f27d[_0x3a5cbd('0x12')](),_0x65f27d['on'](_0x3a5cbd('0x13'),function(){_0x44d282(_0x264885);});}catch(_0x32edbc){fs[_0x3a5cbd('0x1d')](_0x264885,_0x39a891=>{_0x5c8b70(_0x39a891===null?_0x32edbc:_0x39a891);});}});});}async function decryptFile(_0x2c70ae,_0x3f41c7,_0x3eb8fd,_0x3b5977={}){const _0x1e05ae=_0x1ee946;_0x3b5977={...DEFAULT_FILE_OPTIONS,..._0x3b5977};const _0x4a32c6=Buffer['from'](_0x3b5977[_0x1e05ae('0x25')],'utf-8')[_0x1e05ae('0x29')],_0x238286=IVLEN_MAP[_0x3b5977[_0x1e05ae('0x1')]],_0x166fd3=_0x238286+_0x4a32c6,_0x211e74=await fs[_0x1e05ae('0x0')][_0x1e05ae('0x10')](_0x2c70ae,'r'),_0x430f9b=Buffer['alloc'](_0x166fd3),{buffer:_0xe7fe02}=await _0x211e74[_0x1e05ae('0x2c')](_0x430f9b,0x0,_0x166fd3),_0x3c6621=_0xe7fe02[_0x1e05ae('0xd')](0x0,_0x238286),_0x21a504=_0xe7fe02['slice'](_0x238286),_0x403ef6=_0x21a504[_0x1e05ae('0x2a')](_0x1e05ae('0x8')),_0x615b26=_0x3c6621[_0x1e05ae('0x2a')](_0x1e05ae('0x17')),_0xa17a2e=_0x403ef6===_0x3b5977[_0x1e05ae('0x25')];return new Promise(function(_0x2e2b37,_0x416352){const _0x199128=_0x1e05ae,_0x380648=fs[_0x199128('0x7')](_0x2c70ae,{'start':_0xa17a2e?_0x166fd3:0x0,'fd':_0x211e74,'autoClose':!![]}),_0x320cc2=fs['createWriteStream'](_0x3f41c7),_0x1d5ae1=getDecipher(_0x3eb8fd,_0x3b5977[_0x199128('0x1')],_0xa17a2e?_0x615b26:null);_0x380648['on'](_0x199128('0x2b'),function(_0x45a85a){const _0x130e64=_0x199128,_0x36b845=Buffer[_0x130e64('0xa')](_0x1d5ae1['update'](_0x45a85a),_0x130e64('0x1a'));_0x320cc2[_0x130e64('0x3')](_0x36b845);}),_0x380648['on'](_0x199128('0x1b'),_0x405cbf=>_0x416352(_0x405cbf)),_0x380648['on']('end',function(){const _0x4d0c8d=_0x199128;try{const _0x1bdf42=Buffer['from'](_0x1d5ae1[_0x4d0c8d('0x1f')](_0x4d0c8d('0x1a')),_0x4d0c8d('0x1a'));_0x320cc2[_0x4d0c8d('0x3')](_0x1bdf42),_0x320cc2[_0x4d0c8d('0x12')](),_0x320cc2['on']('close',function(){_0x2e2b37(_0x3f41c7);});}catch(_0x43f350){fs[_0x4d0c8d('0x1d')](_0x3f41c7,_0x479b0f=>{_0x416352(_0x479b0f===null?_0x43f350:_0x479b0f);});}});});}function encryptString(_0x20a14a,_0x2bb1cd=DEFAULT_STRING_OPTIONS[_0x1ee946('0x9')],_0x14a752=DEFAULT_STRING_OPTIONS['algorithm'],_0x838908=DEFAULT_STRING_OPTIONS['separator']){const _0x2189e5=_0x1ee946;if(!_0x20a14a||_0x20a14a[_0x2189e5('0x29')]===0x0)return _0x20a14a;if(!_0x2bb1cd||_0x2bb1cd['length']===0x0)throw new Error('you\x20must\x20pass\x20a\x20secret');const [_0x35651a,_0x26bf93]=getCipherAndIvText(_0x2bb1cd,_0x14a752);let _0x553cc8=_0x35651a[_0x2189e5('0x16')](_0x20a14a,_0x2189e5('0x2'),'base64');return _0x553cc8+=_0x35651a[_0x2189e5('0x1f')](_0x2189e5('0x17')),[_0x26bf93,_0x553cc8]['join'](_0x838908);}function decryptString(_0x242ce0,_0x1c5f29=DEFAULT_STRING_OPTIONS['secret'],_0x488697=DEFAULT_STRING_OPTIONS[_0x1ee946('0x1')],_0x5a553c=DEFAULT_STRING_OPTIONS[_0x1ee946('0x25')]){const _0x28709e=_0x1ee946;if(!_0x242ce0||_0x242ce0[_0x28709e('0x29')]===0x0)return _0x242ce0;if(!_0x1c5f29||_0x1c5f29[_0x28709e('0x29')]===0x0)throw new Error('you\x20must\x20pass\x20a\x20secret');const _0x588b8e=_0x242ce0[_0x28709e('0xc')](_0x5a553c),_0x49e0a2=_0x588b8e[_0x28709e('0x29')]===0x2,_0x639963=_0x49e0a2?_0x588b8e[0x1]:_0x242ce0,_0x504e41=getDecipher(_0x1c5f29,_0x488697,_0x49e0a2?_0x588b8e[0x0]:undefined);let _0x3ee8b7=_0x504e41[_0x28709e('0x16')](_0x639963,_0x28709e('0x17'),'utf8');return _0x3ee8b7+=_0x504e41[_0x28709e('0x1f')](_0x28709e('0x2')),_0x3ee8b7;}function getValueFromLicense(_0x502be3,_0x4239e6){const _0x52a6bd=_0x1ee946;if(_0x502be3&&_0x4239e6){if(_0x4239e6['data1']&&_0x4239e6[_0x52a6bd('0x24')]){const _0x41d430=_0x4239e6[_0x52a6bd('0x20')],_0x5c0e62=_0x4239e6[_0x52a6bd('0x24')],_0x257a2e=_0x41d430['split']('-')[0x4],_0x5b0961=_0x41d430[_0x52a6bd('0xc')]('-')[0x0],_0x3fc344=[_0x257a2e,_0x41d430,_0x5b0961][_0x52a6bd('0x23')](':'),_0x2dc872=getDecipher(_0x3fc344,'aes-256-ctr');let _0x1df868=_0x2dc872[_0x52a6bd('0x16')](_0x5c0e62,'base64',_0x52a6bd('0x2'));_0x1df868+=_0x2dc872['final'](_0x52a6bd('0x2'));const _0x59d66e=JSON[_0x52a6bd('0x11')](_0x1df868);return typeof _0x59d66e[_0x502be3]===_0x52a6bd('0x28')?null:_0x59d66e[_0x502be3];}}return null;}module[_0x1ee946('0x19')]={'encryptFile':encryptFile,'decryptFile':decryptFile,'encryptString':encryptString,'decryptString':decryptString,'getValueFromLicense':getValueFromLicense}; \ No newline at end of file +const a987_0x340e=['createWriteStream','update','end','string','aes-256-ctr','encryptString','createCipheriv','utf8','digest','split','createDecipheriv','secret','utf-8','concat','createHash','substr','app','open','info','error','binary','write','decryptString','data1','algorithm','createReadStream','decryptFile','promises','close','join','data','toString','license','alloc','base64','./create-cypher-fallback','exports','from','sha256','some-naughty-secret','unlink','Missing\x20Initialization\x20Vector\x20in\x20the\x20encrypted\x20string.\x20Using\x20fallbacks.','crypto','you\x20must\x20pass\x20a\x20secret','final','randomBytes','slice','encryptFile','separator','../../config/logger','key','read','aes192','length'];(function(_0x24f04b,_0x262b3c){const _0x340eff=function(_0xaa55f6){while(--_0xaa55f6){_0x24f04b['push'](_0x24f04b['shift']());}};_0x340eff(++_0x262b3c);}(a987_0x340e,0x1c7));const a987_0xaa55=function(_0x24f04b,_0x262b3c){_0x24f04b=_0x24f04b-0x16c;let _0x340eff=a987_0x340e[_0x24f04b];return _0x340eff;};const a987_0x4b375a=a987_0xaa55;'use strict';const fs=require('fs'),crypto=require(a987_0x4b375a(0x17f)),{createCypherFallback}=require(a987_0x4b375a(0x178)),logger=require(a987_0x4b375a(0x186))(a987_0x4b375a(0x19b)),DEFAULT_STRING_OPTIONS={'secret':a987_0x4b375a(0x17c),'algorithm':a987_0x4b375a(0x18f),'separator':'!'},DEFAULT_FILE_OPTIONS={'algorithm':a987_0x4b375a(0x189),'separator':'!'},KEYLEN_MAP={'aes-256-ctr':0x20,'aes192':0x18},IVLEN_MAP={'aes-256-ctr':0x18,'aes192':0x10};function getCipherAndIvText(_0x5d51c0,_0x10ce68,_0x23ead6){const _0x387437=a987_0x4b375a,_0x2f34bf=KEYLEN_MAP[_0x10ce68],_0x304dd6=crypto[_0x387437(0x199)]('sha256')['update'](String(_0x5d51c0))[_0x387437(0x193)](_0x387437(0x177))['substr'](0x0,_0x2f34bf),_0x5f311c=Buffer['from'](_0x304dd6,'utf-8'),_0x40cff4=crypto[_0x387437(0x182)](0x10),_0x5c113b=_0x40cff4[_0x387437(0x174)]('base64'),_0x1bf5d5=crypto[_0x387437(0x191)](_0x10ce68,_0x5f311c,_0x40cff4,_0x23ead6);return[_0x1bf5d5,_0x5c113b];}function getDecipher(_0x54dd8b,_0x5dbd6d,_0x4b7c46,_0x460c21){const _0x57c0cf=a987_0x4b375a,_0x26c21d=KEYLEN_MAP[_0x5dbd6d],_0x1af184=typeof _0x4b7c46===_0x57c0cf(0x18e)&&_0x4b7c46[_0x57c0cf(0x18a)]>0x0;let _0x42c61a=null,_0x24701a=null;if(!_0x1af184){logger[_0x57c0cf(0x19d)](_0x57c0cf(0x17e));const _0x2da813=createCypherFallback(_0x5dbd6d,_0x54dd8b);_0x24701a=_0x2da813['iv'],_0x42c61a=_0x2da813[_0x57c0cf(0x187)];}const _0x44aa76=_0x1af184?Buffer[_0x57c0cf(0x17a)](_0x4b7c46,'base64'):_0x24701a,_0x46f63a=_0x1af184?crypto[_0x57c0cf(0x199)](_0x57c0cf(0x17b))[_0x57c0cf(0x18c)](String(_0x54dd8b))['digest']('base64')[_0x57c0cf(0x19a)](0x0,_0x26c21d):null,_0x552bd2=_0x1af184?Buffer['from'](_0x46f63a,_0x57c0cf(0x197)):_0x42c61a,_0x25bc23=crypto[_0x57c0cf(0x195)](_0x5dbd6d,_0x552bd2,_0x44aa76,_0x460c21);return _0x25bc23;}function encryptFile(_0x3f9508,_0x50a8ce,_0x2ce9e3,_0x1c544b={}){return new Promise(function(_0x2eb933,_0x4fdcf5){const _0xea5a5f=a987_0xaa55;_0x1c544b={...DEFAULT_FILE_OPTIONS,..._0x1c544b};const _0x1df5aa=fs[_0xea5a5f(0x16e)](_0x3f9508),_0x1fa28e=fs[_0xea5a5f(0x18b)](_0x50a8ce),[_0x307b63,_0xc6cdf0]=getCipherAndIvText(_0x2ce9e3,_0x1c544b[_0xea5a5f(0x16d)]);_0x1df5aa['on'](_0xea5a5f(0x19c),function(){const _0x226561=_0xea5a5f,_0x438c82=Buffer['from'](_0xc6cdf0,_0x226561(0x177)),_0x1a4917=Buffer['from'](_0x1c544b[_0x226561(0x185)],_0x226561(0x197));_0x1fa28e[_0x226561(0x1a0)](Buffer[_0x226561(0x198)]([_0x438c82,_0x1a4917],_0x438c82[_0x226561(0x18a)]+_0x1a4917[_0x226561(0x18a)]));}),_0x1df5aa['on'](_0xea5a5f(0x173),function(_0x286f49){const _0x18044f=_0xea5a5f,_0x6203ba=Buffer[_0x18044f(0x17a)](_0x307b63[_0x18044f(0x18c)](_0x286f49),_0x18044f(0x19f));_0x1fa28e[_0x18044f(0x1a0)](_0x6203ba);}),_0x1df5aa['on']('end',function(){const _0x16770e=_0xea5a5f;try{const _0x32360f=Buffer[_0x16770e(0x17a)](_0x307b63['final'](_0x16770e(0x19f)),'binary');_0x1fa28e[_0x16770e(0x1a0)](_0x32360f),_0x1fa28e['end'](),_0x1fa28e['on'](_0x16770e(0x171),function(){_0x2eb933(_0x50a8ce);});}catch(_0x5170bc){fs[_0x16770e(0x17d)](_0x50a8ce,_0x3852c1=>{_0x4fdcf5(_0x3852c1===null?_0x5170bc:_0x3852c1);});}});});}async function decryptFile(_0x110143,_0x24ca2b,_0x8e8642,_0xfb93cd={}){const _0xaf1f42=a987_0x4b375a;_0xfb93cd={...DEFAULT_FILE_OPTIONS,..._0xfb93cd};const _0x4c06af=Buffer[_0xaf1f42(0x17a)](_0xfb93cd[_0xaf1f42(0x185)],'utf-8')['length'],_0x35de65=IVLEN_MAP[_0xfb93cd[_0xaf1f42(0x16d)]],_0x4e64dd=_0x35de65+_0x4c06af,_0x3eea22=await fs[_0xaf1f42(0x170)]['open'](_0x110143,'r'),_0x267c56=Buffer[_0xaf1f42(0x176)](_0x4e64dd),{buffer:_0x5a73eb}=await _0x3eea22[_0xaf1f42(0x188)](_0x267c56,0x0,_0x4e64dd),_0x5b34c8=_0x5a73eb[_0xaf1f42(0x183)](0x0,_0x35de65),_0x457083=_0x5a73eb['slice'](_0x35de65),_0x5acb37=_0x457083[_0xaf1f42(0x174)](_0xaf1f42(0x197)),_0x4d2204=_0x5b34c8[_0xaf1f42(0x174)]('base64'),_0x3cfca3=_0x5acb37===_0xfb93cd['separator'];return new Promise(function(_0x466a30,_0xbe7d4f){const _0x5d4366=_0xaf1f42,_0x4317ca=fs[_0x5d4366(0x16e)](_0x110143,{'start':_0x3cfca3?_0x4e64dd:0x0,'fd':_0x3eea22,'autoClose':!![]}),_0x294aa7=fs[_0x5d4366(0x18b)](_0x24ca2b),_0x41b24d=getDecipher(_0x8e8642,_0xfb93cd[_0x5d4366(0x16d)],_0x3cfca3?_0x4d2204:null);_0x4317ca['on'](_0x5d4366(0x173),function(_0x2a7a4c){const _0x19eca2=_0x5d4366,_0x20bd83=Buffer[_0x19eca2(0x17a)](_0x41b24d[_0x19eca2(0x18c)](_0x2a7a4c),_0x19eca2(0x19f));_0x294aa7[_0x19eca2(0x1a0)](_0x20bd83);}),_0x4317ca['on'](_0x5d4366(0x19e),_0x1f777d=>_0xbe7d4f(_0x1f777d)),_0x4317ca['on'](_0x5d4366(0x18d),function(){const _0x5ca98b=_0x5d4366;try{const _0x344013=Buffer[_0x5ca98b(0x17a)](_0x41b24d['final']('binary'),_0x5ca98b(0x19f));_0x294aa7[_0x5ca98b(0x1a0)](_0x344013),_0x294aa7['end'](),_0x294aa7['on'](_0x5ca98b(0x171),function(){_0x466a30(_0x24ca2b);});}catch(_0x291bec){fs[_0x5ca98b(0x17d)](_0x24ca2b,_0xfc20d=>{_0xbe7d4f(_0xfc20d===null?_0x291bec:_0xfc20d);});}});});}function encryptString(_0x57e235,_0x611b5d=DEFAULT_STRING_OPTIONS['secret'],_0x2b16ba=DEFAULT_STRING_OPTIONS[a987_0x4b375a(0x16d)],_0x3f485c=DEFAULT_STRING_OPTIONS[a987_0x4b375a(0x185)]){const _0x90015c=a987_0x4b375a;if(!_0x57e235||_0x57e235[_0x90015c(0x18a)]===0x0)return _0x57e235;if(!_0x611b5d||_0x611b5d[_0x90015c(0x18a)]===0x0)throw new Error(_0x90015c(0x180));const [_0x192f69,_0x1e224f]=getCipherAndIvText(_0x611b5d,_0x2b16ba);let _0xbdf0e6=_0x192f69['update'](_0x57e235,'utf8',_0x90015c(0x177));return _0xbdf0e6+=_0x192f69[_0x90015c(0x181)](_0x90015c(0x177)),[_0x1e224f,_0xbdf0e6]['join'](_0x3f485c);}function decryptString(_0x46c5ac,_0x1a9ca1=DEFAULT_STRING_OPTIONS[a987_0x4b375a(0x196)],_0x5ee555=DEFAULT_STRING_OPTIONS[a987_0x4b375a(0x16d)],_0x1208a2=DEFAULT_STRING_OPTIONS[a987_0x4b375a(0x185)]){const _0x475860=a987_0x4b375a;if(!_0x46c5ac||_0x46c5ac[_0x475860(0x18a)]===0x0)return _0x46c5ac;if(!_0x1a9ca1||_0x1a9ca1[_0x475860(0x18a)]===0x0)throw new Error(_0x475860(0x180));const _0x3b5205=_0x46c5ac[_0x475860(0x194)](_0x1208a2),_0x3038d7=_0x3b5205[_0x475860(0x18a)]===0x2,_0x4b182d=_0x3038d7?_0x3b5205[0x1]:_0x46c5ac,_0x6a2521=getDecipher(_0x1a9ca1,_0x5ee555,_0x3038d7?_0x3b5205[0x0]:undefined);let _0x2a16cd=_0x6a2521[_0x475860(0x18c)](_0x4b182d,'base64',_0x475860(0x192));return _0x2a16cd+=_0x6a2521['final'](_0x475860(0x192)),_0x2a16cd;}function getValueFromLicense(_0x40b8ae,_0x14d9c9){const _0x13964e=a987_0x4b375a;if(_0x40b8ae&&_0x14d9c9){if(_0x14d9c9[_0x13964e(0x16c)]&&_0x14d9c9[_0x13964e(0x175)]){const _0x26db9c=_0x14d9c9[_0x13964e(0x16c)],_0x10d16a=_0x14d9c9[_0x13964e(0x175)],_0x275755=_0x26db9c[_0x13964e(0x194)]('-')[0x4],_0x15e07f=_0x26db9c['split']('-')[0x0],_0x489b12=[_0x275755,_0x26db9c,_0x15e07f][_0x13964e(0x172)](':'),_0x508486=getDecipher(_0x489b12,_0x13964e(0x18f));let _0xa29884=_0x508486[_0x13964e(0x18c)](_0x10d16a,_0x13964e(0x177),_0x13964e(0x192));_0xa29884+=_0x508486[_0x13964e(0x181)](_0x13964e(0x192));const _0x390b2f=JSON['parse'](_0xa29884);return typeof _0x390b2f[_0x40b8ae]==='undefined'?null:_0x390b2f[_0x40b8ae];}}return null;}module[a987_0x4b375a(0x179)][a987_0x4b375a(0x184)]=encryptFile,module[a987_0x4b375a(0x179)][a987_0x4b375a(0x16f)]=decryptFile,module[a987_0x4b375a(0x179)][a987_0x4b375a(0x190)]=encryptString,module[a987_0x4b375a(0x179)][a987_0x4b375a(0x1a1)]=decryptString,module[a987_0x4b375a(0x179)]['getValueFromLicense']=getValueFromLicense; \ No newline at end of file diff --git a/server/components/export/csv.js b/server/components/export/csv.js index 038e98d..c1be9df 100644 --- a/server/components/export/csv.js +++ b/server/components/export/csv.js @@ -1 +1 @@ -const a826_0x57e7=['SELECT','QueryTypes','rimraf','sequelize','mkdirSync','argv','split','csv','Error\x20during\x20extraction\x20report\x20with\x20id\x20%d\x20in\x20%s\x20format','info','format','zip-dir','num','all','join','SELECT\x20count(*)\x20as\x20num\x20FROM\x20(%s)\x20t','then','length','util','%s\x20limit\x20%d\x20OFFSET\x20%d','../../config/logger','update','Failed','inspect','path','to-csv','splitSizeCsv','push','map','zip','query','existsSync','CSV','Start\x20extraction\x20report\x20with\x20id\x20%d\x20in\x20%s\x20format','Setting','basename','%s%d.%s','../../mysqldb','dbH','analytics','AnalyticExtractedReport'];(function(_0x326606,_0x57e7c9){const _0x4e62d7=function(_0x3a9877){while(--_0x3a9877){_0x326606['push'](_0x326606['shift']());}};_0x4e62d7(++_0x57e7c9);}(a826_0x57e7,0x184));const a826_0x4e62=function(_0x326606,_0x57e7c9){_0x326606=_0x326606-0x0;let _0x4e62d7=a826_0x57e7[_0x326606];return _0x4e62d7;};const _0x480bd3=a826_0x4e62;'use strict';const util=require(_0x480bd3('0x28')),path=require(_0x480bd3('0x5')),csv=require(_0x480bd3('0x6')),fs=require('fs'),zipdir=require(_0x480bd3('0x21')),rimraf=require(_0x480bd3('0x18')),db=require(_0x480bd3('0x12'))['db'],dbH=require(_0x480bd3('0x12'))[_0x480bd3('0x13')],logger=require(_0x480bd3('0x1'))(_0x480bd3('0x14')),EXTRACTED_REPORT_ID=Number(process[_0x480bd3('0x1b')][0x2]),QUERY=process[_0x480bd3('0x1b')][0x3],PATH=process[_0x480bd3('0x1b')][0x4];function analyticExtractedReport(_0x3a9877,_0x4891c8){const _0x449dea=_0x480bd3,_0x144bf1={'status':_0x3a9877},_0x39071a={'where':{'id':EXTRACTED_REPORT_ID}};return _0x4891c8&&(_0x144bf1['savename']=_0x4891c8),db[_0x449dea('0x15')][_0x449dea('0x2')](_0x144bf1,_0x39071a);}function main(){const _0x4a34c4=_0x480bd3;let _0x23fa34=0x1388,_0x2e7e2e;return logger[_0x4a34c4('0x1f')](util[_0x4a34c4('0x20')](_0x4a34c4('0xe'),EXTRACTED_REPORT_ID,_0x4a34c4('0xd'))),db[_0x4a34c4('0xf')]['findOne']({'where':{'id':0x1},'raw':!![],'attributes':['id',_0x4a34c4('0x1c'),_0x4a34c4('0x7')]})[_0x4a34c4('0x26')](function(_0x2796f7){const _0x23bfb8=_0x4a34c4;_0x2796f7&&(_0x2e7e2e=_0x2796f7,_0x23fa34=_0x2e7e2e[_0x23bfb8('0x7')]||0x1388);})[_0x4a34c4('0x26')](function(){const _0x996346=_0x4a34c4;return dbH[_0x996346('0x19')]['query'](util[_0x996346('0x20')](_0x996346('0x25'),QUERY),{'type':dbH[_0x996346('0x19')][_0x996346('0x17')][_0x996346('0x16')]});})['then'](function(_0x23fccb){const _0x3dc86b=_0x4a34c4;if(!_0x23fccb[0x0][_0x3dc86b('0x22')])return analyticExtractedReport('Empty');const _0x5aafc5=[];let _0x512794=0x0,_0x22195c=!![];if(_0x23fccb&&_0x23fccb[_0x3dc86b('0x27')]){let _0x44c0c6=_0x23fccb[0x0]['num']%(_0x512794+_0x23fa34);if(_0x2e7e2e[_0x3dc86b('0x1c')])for(;_0x22195c;_0x512794+=_0x23fa34,_0x44c0c6=_0x23fccb[0x0][_0x3dc86b('0x22')]%(_0x512794+_0x23fa34)){(_0x44c0c6==0x0||_0x44c0c6==_0x23fccb[0x0][_0x3dc86b('0x22')])&&(_0x22195c=![]),_0x5aafc5[_0x3dc86b('0x8')](dbH[_0x3dc86b('0x19')][_0x3dc86b('0xb')](util[_0x3dc86b('0x20')](_0x3dc86b('0x0'),QUERY,_0x23fa34,_0x512794),{'type':dbH[_0x3dc86b('0x19')][_0x3dc86b('0x17')][_0x3dc86b('0x16')]}));}else _0x5aafc5['push'](dbH[_0x3dc86b('0x19')]['query'](QUERY,{'type':dbH[_0x3dc86b('0x19')][_0x3dc86b('0x17')][_0x3dc86b('0x16')]}));}const _0x23f9ed=path['dirname'](PATH),_0x4553e5=path[_0x3dc86b('0x10')](PATH,'.csv'),_0x26a474=_0x2e7e2e['split']&&_0x5aafc5[_0x3dc86b('0x27')]>0x1,_0x1f9f6d=[];return!fs[_0x3dc86b('0xc')](path['join'](_0x23f9ed,_0x4553e5))&&_0x26a474&&fs[_0x3dc86b('0x1a')](path[_0x3dc86b('0x24')](_0x23f9ed,_0x4553e5)),Promise[_0x3dc86b('0x23')](_0x5aafc5[_0x3dc86b('0x9')](_0x47fb28=>{_0x1f9f6d['push'](_0x47fb28);}))[_0x3dc86b('0x26')](function(){const _0x546431=_0x3dc86b;for(let _0x10d207=0x0;_0x10d207<_0x1f9f6d[_0x546431('0x27')];_0x10d207+=0x1){let _0x551db2;const _0x369daa=_0x1f9f6d[_0x10d207];_0x26a474?_0x551db2=path['join'](_0x23f9ed,_0x4553e5,util[_0x546431('0x20')](_0x546431('0x11'),_0x4553e5,_0x10d207,'csv')):_0x551db2=path[_0x546431('0x24')](_0x23f9ed,util['format']('%s.%s',_0x4553e5,'csv')),fs['writeFileSync'](_0x551db2,csv(_0x369daa));}})[_0x3dc86b('0x26')](function(){const _0xb32d2c=_0x3dc86b;_0x26a474&&(zipdir(path[_0xb32d2c('0x24')](_0x23f9ed,_0x4553e5),{'saveTo':path[_0xb32d2c('0x24')](_0x23f9ed,util[_0xb32d2c('0x20')]('%s.%s',_0x4553e5,_0xb32d2c('0xa')))},function(){}),rimraf(path['join'](_0x23f9ed,_0x4553e5),function(){}));})[_0x3dc86b('0x26')](function(){const _0x6fff7=_0x3dc86b;return logger['info'](util['format']('Extraction\x20report\x20with\x20id\x20%d\x20in\x20%s\x20format\x20completed',EXTRACTED_REPORT_ID,'CSV')),analyticExtractedReport('Completed',_0x26a474?util['format']('%s.%s',_0x4553e5,_0x26a474?_0x6fff7('0xa'):_0x6fff7('0x1d')):null);});})['catch'](function(_0x22c4c6){const _0x14d485=_0x4a34c4;return logger['info'](util[_0x14d485('0x20')](_0x14d485('0x1e'),EXTRACTED_REPORT_ID,_0x14d485('0xd')),util[_0x14d485('0x4')](_0x22c4c6,{'showHidden':![],'depth':null})),analyticExtractedReport(_0x14d485('0x3'));});}main(); \ No newline at end of file +const a988_0x3ae3=['Error\x20during\x20extraction\x20report\x20with\x20id\x20%d\x20in\x20%s\x20format','%s.%s','mkdirSync','existsSync','util','format','savename','dbH','Extraction\x20report\x20with\x20id\x20%d\x20in\x20%s\x20format\x20completed','push','Completed','all','join','QueryTypes','num','CSV','info','sequelize','../../mysqldb','split','zip-dir','.csv','map','argv','csv','zip','length','AnalyticExtractedReport','query','then','inspect','%s\x20limit\x20%d\x20OFFSET\x20%d','SELECT\x20count(*)\x20as\x20num\x20FROM\x20(%s)\x20t','path','../../config/logger','splitSizeCsv','SELECT','Failed','writeFileSync','%s%d.%s','Empty','Start\x20extraction\x20report\x20with\x20id\x20%d\x20in\x20%s\x20format'];(function(_0x2e3e27,_0xbf9022){const _0x3ae3ee=function(_0x5dd1ae){while(--_0x5dd1ae){_0x2e3e27['push'](_0x2e3e27['shift']());}};_0x3ae3ee(++_0xbf9022);}(a988_0x3ae3,0x1be));const a988_0x5dd1=function(_0x2e3e27,_0xbf9022){_0x2e3e27=_0x2e3e27-0x1a8;let _0x3ae3ee=a988_0x3ae3[_0x2e3e27];return _0x3ae3ee;};const a988_0xae7024=a988_0x5dd1;'use strict';const util=require(a988_0xae7024(0x1bc)),path=require(a988_0xae7024(0x1af)),csv=require('to-csv'),fs=require('fs'),zipdir=require(a988_0xae7024(0x1cc)),rimraf=require('rimraf'),{db}=require(a988_0xae7024(0x1ca)),dbH=require('../../mysqldb')[a988_0xae7024(0x1bf)],logger=require(a988_0xae7024(0x1b0))('analytics'),EXTRACTED_REPORT_ID=Number(process[a988_0xae7024(0x1cf)][0x2]),QUERY=process[a988_0xae7024(0x1cf)][0x3],PATH=process[a988_0xae7024(0x1cf)][0x4];function analyticExtractedReport(_0x2296b3,_0x2415c4){const _0x2fbeb9=a988_0xae7024,_0x3cde03={'status':_0x2296b3},_0x369375={'where':{'id':EXTRACTED_REPORT_ID}};return _0x2415c4&&(_0x3cde03[_0x2fbeb9(0x1be)]=_0x2415c4),db[_0x2fbeb9(0x1a9)]['update'](_0x3cde03,_0x369375);}function main(){const _0x16bf5d=a988_0xae7024;let _0x3dcd8c=0x1388,_0x21156b;return logger[_0x16bf5d(0x1c8)](util[_0x16bf5d(0x1bd)](_0x16bf5d(0x1b7),EXTRACTED_REPORT_ID,_0x16bf5d(0x1c7))),db['Setting']['findOne']({'where':{'id':0x1},'raw':!![],'attributes':['id',_0x16bf5d(0x1cb),_0x16bf5d(0x1b1)]})[_0x16bf5d(0x1ab)](function(_0xee464b){const _0x59d662=_0x16bf5d;_0xee464b&&(_0x21156b=_0xee464b,_0x3dcd8c=_0x21156b[_0x59d662(0x1b1)]||0x1388);})[_0x16bf5d(0x1ab)](function(){const _0x2b2825=_0x16bf5d;return dbH['sequelize'][_0x2b2825(0x1aa)](util[_0x2b2825(0x1bd)](_0x2b2825(0x1ae),QUERY),{'type':dbH['sequelize'][_0x2b2825(0x1c5)][_0x2b2825(0x1b2)]});})[_0x16bf5d(0x1ab)](function(_0x40ab39){const _0xad03b8=_0x16bf5d;if(!_0x40ab39[0x0][_0xad03b8(0x1c6)])return analyticExtractedReport(_0xad03b8(0x1b6));const _0x51fcc8=[];let _0x46ca75=0x0,_0x471816=!![];if(_0x40ab39&&_0x40ab39[_0xad03b8(0x1a8)]){let _0x5d6861=_0x40ab39[0x0][_0xad03b8(0x1c6)]%(_0x46ca75+_0x3dcd8c);if(_0x21156b[_0xad03b8(0x1cb)])for(;_0x471816;_0x46ca75+=_0x3dcd8c,_0x5d6861=_0x40ab39[0x0][_0xad03b8(0x1c6)]%(_0x46ca75+_0x3dcd8c)){(_0x5d6861==0x0||_0x5d6861==_0x40ab39[0x0][_0xad03b8(0x1c6)])&&(_0x471816=![]),_0x51fcc8[_0xad03b8(0x1c1)](dbH[_0xad03b8(0x1c9)][_0xad03b8(0x1aa)](util[_0xad03b8(0x1bd)](_0xad03b8(0x1ad),QUERY,_0x3dcd8c,_0x46ca75),{'type':dbH[_0xad03b8(0x1c9)][_0xad03b8(0x1c5)][_0xad03b8(0x1b2)]}));}else _0x51fcc8['push'](dbH['sequelize'][_0xad03b8(0x1aa)](QUERY,{'type':dbH[_0xad03b8(0x1c9)]['QueryTypes']['SELECT']}));}const _0x551189=path['dirname'](PATH),_0xf1f311=path['basename'](PATH,_0xad03b8(0x1cd)),_0x2bea8a=_0x21156b[_0xad03b8(0x1cb)]&&_0x51fcc8[_0xad03b8(0x1a8)]>0x1,_0x566f75=[];return!fs[_0xad03b8(0x1bb)](path[_0xad03b8(0x1c4)](_0x551189,_0xf1f311))&&_0x2bea8a&&fs[_0xad03b8(0x1ba)](path[_0xad03b8(0x1c4)](_0x551189,_0xf1f311)),Promise[_0xad03b8(0x1c3)](_0x51fcc8[_0xad03b8(0x1ce)](_0x46cffb=>{const _0x12aeba=_0xad03b8;_0x566f75[_0x12aeba(0x1c1)](_0x46cffb);}))[_0xad03b8(0x1ab)](function(){const _0x5d6274=_0xad03b8;for(let _0x1099bf=0x0;_0x1099bf<_0x566f75['length'];_0x1099bf+=0x1){let _0x3646be;const _0x4c0bf7=_0x566f75[_0x1099bf];_0x2bea8a?_0x3646be=path[_0x5d6274(0x1c4)](_0x551189,_0xf1f311,util[_0x5d6274(0x1bd)](_0x5d6274(0x1b5),_0xf1f311,_0x1099bf,_0x5d6274(0x1d0))):_0x3646be=path[_0x5d6274(0x1c4)](_0x551189,util['format'](_0x5d6274(0x1b9),_0xf1f311,_0x5d6274(0x1d0))),fs[_0x5d6274(0x1b4)](_0x3646be,csv(_0x4c0bf7));}})['then'](function(){const _0x3aab37=_0xad03b8;_0x2bea8a&&(zipdir(path[_0x3aab37(0x1c4)](_0x551189,_0xf1f311),{'saveTo':path[_0x3aab37(0x1c4)](_0x551189,util[_0x3aab37(0x1bd)](_0x3aab37(0x1b9),_0xf1f311,_0x3aab37(0x1d1)))},function(){}),rimraf(path[_0x3aab37(0x1c4)](_0x551189,_0xf1f311),function(){}));})[_0xad03b8(0x1ab)](function(){const _0x2d8725=_0xad03b8;return logger[_0x2d8725(0x1c8)](util[_0x2d8725(0x1bd)](_0x2d8725(0x1c0),EXTRACTED_REPORT_ID,_0x2d8725(0x1c7))),analyticExtractedReport(_0x2d8725(0x1c2),_0x2bea8a?util[_0x2d8725(0x1bd)](_0x2d8725(0x1b9),_0xf1f311,_0x2bea8a?_0x2d8725(0x1d1):_0x2d8725(0x1d0)):null);});})['catch'](function(_0x230f3e){const _0x1c00b2=_0x16bf5d;return logger[_0x1c00b2(0x1c8)](util['format'](_0x1c00b2(0x1b8),EXTRACTED_REPORT_ID,'CSV'),util[_0x1c00b2(0x1ac)](_0x230f3e,{'showHidden':![],'depth':null})),analyticExtractedReport(_0x1c00b2(0x1b3));});}main(); \ No newline at end of file diff --git a/server/components/export/pdf.js b/server/components/export/pdf.js index 66a3082..ac0dc51 100644 --- a/server/components/export/pdf.js +++ b/server/components/export/pdf.js @@ -1 +1 @@ -const a827_0x26f8=['then','createPdfKitDocument','argv','err','undefined','basename','end','Empty','Start\x20extraction\x20report\x20with\x20id\x20%d\x20in\x20%s\x20format','query','log','pdf','QueryTypes','/fonts/Roboto-Medium.ttf','../../config/logger','split','%s.%s','join','inspect','path','pdfmake/src/printer','../../mysqldb','%s\x20limit\x20%d\x20OFFSET\x20%d','map','length','SELECT','push','catch','/fonts/Roboto-MediumItalic.ttf','finish','startDate','splitSizePdf','header','AnalyticExtractedReport','PDF','createWriteStream','endDate','analytics','dbH','body','zip','/fonts/Roboto-Italic.ttf','mkdirSync','Error\x20during\x20extraction\x20report\x20with\x20id\x20%d\x20in\x20%s\x20format','tableHeader','info','dirname','num','rimraf','format','sequelize','SELECT\x20count(*)\x20as\x20num\x20FROM\x20(%s)\x20t','error','Failed','update','existsSync','toString','findOne','all','CSV','content'];(function(_0x510384,_0x26f8dd){const _0x304044=function(_0x2ccb3c){while(--_0x2ccb3c){_0x510384['push'](_0x510384['shift']());}};_0x304044(++_0x26f8dd);}(a827_0x26f8,0x149));const a827_0x3040=function(_0x510384,_0x26f8dd){_0x510384=_0x510384-0x0;let _0x304044=a827_0x26f8[_0x510384];return _0x304044;};const _0x182e5b=a827_0x3040;'use strict';const _=require('lodash'),fs=require('fs'),util=require('util'),path=require(_0x182e5b('0x38')),moment=require('moment'),PdfPrinter=require(_0x182e5b('0x39')),zipdir=require('zip-dir'),rimraf=require(_0x182e5b('0x18')),db=require(_0x182e5b('0x3a'))['db'],dbH=require('../../mysqldb')[_0x182e5b('0xe')],logger=require(_0x182e5b('0x33'))(_0x182e5b('0xd')),EXTRACTED_REPORT_ID=Number(process['argv'][0x2]),QUERY=process[_0x182e5b('0x27')][0x3],PATH=process['argv'][0x4],NAME=process[_0x182e5b('0x27')][0x5],FORMAT='MMMM\x20Do\x20YYYY,\x20h:mm:ss\x20a';let _extractedReport;function analyticExtractedReport(_0x2ccb3c,_0x27ca39){const _0x3e32b3=_0x182e5b,_0x53021b={'status':_0x2ccb3c},_0x328234={'where':{'id':EXTRACTED_REPORT_ID}};return _0x27ca39&&(_0x53021b['savename']=_0x27ca39),db[_0x3e32b3('0x9')][_0x3e32b3('0x1e')](_0x53021b,_0x328234);}function getHeader(_0x583273){const _0x27fa74=_0x182e5b,_0x5d8d03=[];for(const _0x4854f2 in _0x583273){typeof _0x583273[_0x4854f2]!==_0x27fa74('0x29')&&_0x5d8d03[_0x27fa74('0x2')]({'text':_0x4854f2,'style':_0x27fa74('0x14')});}return _0x5d8d03;}function extractReport(_0x318518){const _0x3d9bc0=_0x182e5b;let _0x4294c8=0x1388,_0x426526;if(!_0x318518[0x0][_0x3d9bc0('0x17')])return analyticExtractedReport(_0x3d9bc0('0x2c'));const _0x2f9213=[];let _0x214ad7=0x0,_0x519729=!![];const _0x3666c7=path[_0x3d9bc0('0x16')](PATH),_0x26c434=path[_0x3d9bc0('0x2a')](PATH,'.pdf');let _0x1eeedd=![];const _0x4c7949=[];return db['Setting'][_0x3d9bc0('0x21')]({'where':{'id':0x1},'raw':!![],'attributes':['id','split',_0x3d9bc0('0x7')]})[_0x3d9bc0('0x25')](function(_0x20a97b){const _0x2931ee=_0x3d9bc0;_0x20a97b&&(_0x426526=_0x20a97b,_0x4294c8=_0x426526[_0x2931ee('0x7')]||0x3e8);})[_0x3d9bc0('0x25')](function(){const _0x224300=_0x3d9bc0;if(_0x318518&&_0x318518[_0x224300('0x0')]){let _0x32b4f0=_0x318518[0x0]['num']%(_0x214ad7+_0x4294c8);if(_0x426526[_0x224300('0x34')])for(;_0x519729;_0x214ad7+=_0x4294c8,_0x32b4f0=_0x318518[0x0]['num']%(_0x214ad7+_0x4294c8)){(_0x32b4f0==0x0||_0x32b4f0==_0x318518[0x0][_0x224300('0x17')])&&(_0x519729=![]),_0x2f9213[_0x224300('0x2')](dbH[_0x224300('0x1a')][_0x224300('0x2e')](util[_0x224300('0x19')](_0x224300('0x3b'),QUERY,_0x4294c8,_0x214ad7),{'type':dbH[_0x224300('0x1a')][_0x224300('0x31')]['SELECT']}));}else _0x2f9213[_0x224300('0x2')](dbH[_0x224300('0x1a')]['query'](QUERY,{'type':dbH[_0x224300('0x1a')][_0x224300('0x31')][_0x224300('0x1')]}));}return _0x1eeedd=_0x426526['split']&&_0x2f9213[_0x224300('0x0')]>0x1,!fs[_0x224300('0x1f')](path[_0x224300('0x36')](_0x3666c7,_0x26c434))&&_0x1eeedd&&fs[_0x224300('0x12')](path[_0x224300('0x36')](_0x3666c7,_0x26c434)),Promise[_0x224300('0x22')](_0x2f9213[_0x224300('0x3c')](_0x218f3f=>{const _0x458757=_0x224300;_0x4c7949[_0x458757('0x2')](_0x218f3f);}));})['then'](function(){const _0x5c6c3a=_0x3d9bc0;return Promise['all'](_0x2f9213[_0x5c6c3a('0x3c')]((_0x25a818,_0x36d780)=>{const _0x582e86=_0x5c6c3a;let _0x550767;const _0xba556d=util[_0x582e86('0x19')]('Name:\x20%s\x0aReport:\x20%s\x0aFrom:\x20%s\x20To:\x20%s',NAME,_extractedReport['name'],moment(_extractedReport[_0x582e86('0x6')])[_0x582e86('0x19')](FORMAT),moment(_extractedReport[_0x582e86('0xc')])[_0x582e86('0x19')](FORMAT)),_0x223718={'pageSize':'A4','pageOrientation':'landscape','content':[{'text':_0xba556d,'style':_0x582e86('0x8')}],'styles':{'header':{'fontSize':0x12,'bold':!![],'margin':[0x0,0x0,0x0,0xa]},'tableHeader':{'bold':!![],'fontSize':0xd,'color':'black'}}},_0x360f23={'headerRows':0x1,'body':[]};_0x360f23[_0x582e86('0xf')][_0x582e86('0x2')](getHeader(_0x25a818[0x0]));let _0x2d289f;for(let _0x1ae4e4=0x0;_0x1ae4e4<_0x25a818[_0x582e86('0x0')];_0x1ae4e4+=0x1){_0x2d289f=[];for(const _0x37500b in _0x25a818[_0x1ae4e4]){typeof _0x25a818[_0x1ae4e4][_0x37500b]!==_0x582e86('0x29')&&_0x2d289f[_0x582e86('0x2')](_0x25a818[_0x1ae4e4][_0x37500b]?_[_0x582e86('0x20')](_0x25a818[_0x1ae4e4][_0x37500b]):'');}_0x360f23[_0x582e86('0xf')]['push'](_0x2d289f);}return _0x223718[_0x582e86('0x24')][_0x582e86('0x2')]({'table':_0x360f23}),new Promise(function(_0x3068b9,_0x1194f4){const _0xcf9e=_0x582e86,_0x5aaa31=new PdfPrinter({'Roboto':{'normal':__dirname+'/fonts/Roboto-Regular.ttf','bold':__dirname+_0xcf9e('0x32'),'italics':__dirname+_0xcf9e('0x11'),'bolditalics':__dirname+_0xcf9e('0x4')}}),_0x5c5d18=_0x5aaa31[_0xcf9e('0x26')](_0x223718);_0x1eeedd?_0x550767=path[_0xcf9e('0x36')](_0x3666c7,_0x26c434,util['format']('%s%d.%s',_0x26c434,_0x36d780,_0xcf9e('0x30'))):_0x550767=path['join'](_0x3666c7,util[_0xcf9e('0x19')](_0xcf9e('0x35'),_0x26c434,_0xcf9e('0x30')));const _0x5078a8=_0x5c5d18['pipe'](fs[_0xcf9e('0xb')](_0x550767));_0x5078a8['on'](_0xcf9e('0x5'),function(){_0x3068b9();}),_0x5078a8['on'](_0xcf9e('0x1c'),function(_0x14422a){const _0x4ddc91=_0xcf9e;console[_0x4ddc91('0x2f')](_0x4ddc91('0x28'),_0x14422a),_0x1194f4(_0x14422a);}),_0x5c5d18[_0xcf9e('0x2b')]();});}));})['then'](function(){if(_0x1eeedd)return new Promise(function(_0x5c3424,_0x3c5059){const _0x4fc82a=a827_0x3040;zipdir(path[_0x4fc82a('0x36')](_0x3666c7,_0x26c434),{'saveTo':path[_0x4fc82a('0x36')](_0x3666c7,util[_0x4fc82a('0x19')](_0x4fc82a('0x35'),_0x26c434,_0x4fc82a('0x10')))},function(_0x461f40){_0x461f40?_0x3c5059(_0x461f40):_0x5c3424();});});})[_0x3d9bc0('0x25')](function(){_0x1eeedd&&rimraf(path['join'](_0x3666c7,_0x26c434),function(){});})[_0x3d9bc0('0x25')](function(){const _0x2d18a7=_0x3d9bc0;return logger[_0x2d18a7('0x15')](util[_0x2d18a7('0x19')]('Extraction\x20report\x20with\x20id\x20%d\x20in\x20%s\x20format\x20completed',EXTRACTED_REPORT_ID,_0x2d18a7('0x23'))),analyticExtractedReport('Completed',_0x1eeedd?util['format'](_0x2d18a7('0x35'),_0x26c434,_0x1eeedd?'zip':_0x2d18a7('0x30')):null);});}function main(){const _0x5a842b=_0x182e5b;return logger[_0x5a842b('0x15')](util[_0x5a842b('0x19')](_0x5a842b('0x2d'),EXTRACTED_REPORT_ID,'PDF')),db['AnalyticExtractedReport'][_0x5a842b('0x21')]({'where':{'id':EXTRACTED_REPORT_ID}})[_0x5a842b('0x25')](function(_0x470ff0){const _0x515b5f=_0x5a842b;return _extractedReport=_0x470ff0,dbH[_0x515b5f('0x1a')]['query'](util[_0x515b5f('0x19')](_0x515b5f('0x1b'),QUERY),{'type':dbH['sequelize'][_0x515b5f('0x31')]['SELECT']});})['then'](extractReport)[_0x5a842b('0x3')](function(_0x1ed375){const _0x199ffc=_0x5a842b;return logger['info'](util[_0x199ffc('0x19')](_0x199ffc('0x13'),EXTRACTED_REPORT_ID,_0x199ffc('0xa')),util[_0x199ffc('0x37')](_0x1ed375,{'showHidden':![],'depth':null})),analyticExtractedReport(_0x199ffc('0x1d'));});}main(); \ No newline at end of file +const a989_0x1d87=['SELECT\x20count(*)\x20as\x20num\x20FROM\x20(%s)\x20t','mkdirSync','Error\x20during\x20extraction\x20report\x20with\x20id\x20%d\x20in\x20%s\x20format','util','%s%d.%s','SELECT','info','tableHeader','err','push','dbH','pipe','map','argv','dirname','AnalyticExtractedReport','log','existsSync','createPdfKitDocument','split','/fonts/Roboto-Italic.ttf','query','/fonts/Roboto-Regular.ttf','format','end','basename','content','savename','QueryTypes','inspect','error','moment','CSV','name','rimraf','catch','Setting','createWriteStream','findOne','finish','%s\x20limit\x20%d\x20OFFSET\x20%d','pdf','body','undefined','zip','header','Name:\x20%s\x0aReport:\x20%s\x0aFrom:\x20%s\x20To:\x20%s','Failed','num','.pdf','toString','%s.%s','path','/fonts/Roboto-Medium.ttf','/fonts/Roboto-MediumItalic.ttf','Empty','endDate','../../mysqldb','Extraction\x20report\x20with\x20id\x20%d\x20in\x20%s\x20format\x20completed','all','join','Completed','black','Start\x20extraction\x20report\x20with\x20id\x20%d\x20in\x20%s\x20format','length','analytics','startDate','sequelize','PDF','pdfmake/src/printer','then','splitSizePdf'];(function(_0x12dc39,_0x3048b9){const _0x1d8795=function(_0xcc8cf6){while(--_0xcc8cf6){_0x12dc39['push'](_0x12dc39['shift']());}};_0x1d8795(++_0x3048b9);}(a989_0x1d87,0xfb));const a989_0xcc8c=function(_0x12dc39,_0x3048b9){_0x12dc39=_0x12dc39-0x1b3;let _0x1d8795=a989_0x1d87[_0x12dc39];return _0x1d8795;};const a989_0x3768bd=a989_0xcc8c;'use strict';const _=require('lodash'),fs=require('fs'),util=require(a989_0x3768bd(0x1db)),path=require(a989_0x3768bd(0x1c4)),moment=require(a989_0x3768bd(0x1f7)),PdfPrinter=require(a989_0x3768bd(0x1d5)),zipdir=require('zip-dir'),rimraf=require(a989_0x3768bd(0x1fa)),{db}=require('../../mysqldb'),dbH=require(a989_0x3768bd(0x1c9))[a989_0x3768bd(0x1e2)],logger=require('../../config/logger')(a989_0x3768bd(0x1d1)),EXTRACTED_REPORT_ID=Number(process[a989_0x3768bd(0x1e5)][0x2]),QUERY=process[a989_0x3768bd(0x1e5)][0x3],PATH=process[a989_0x3768bd(0x1e5)][0x4],NAME=process[a989_0x3768bd(0x1e5)][0x5],FORMAT='MMMM\x20Do\x20YYYY,\x20h:mm:ss\x20a';let _extractedReport;function analyticExtractedReport(_0x378fd6,_0x4f73f5){const _0x45a718=a989_0x3768bd,_0x445b54={'status':_0x378fd6},_0x9a505e={'where':{'id':EXTRACTED_REPORT_ID}};return _0x4f73f5&&(_0x445b54[_0x45a718(0x1f3)]=_0x4f73f5),db[_0x45a718(0x1e7)]['update'](_0x445b54,_0x9a505e);}function getHeader(_0x52547a){const _0x180d66=a989_0x3768bd,_0x3582d0=[];for(const _0x2447ed in _0x52547a){typeof _0x52547a[_0x2447ed]!==_0x180d66(0x1bb)&&_0x3582d0[_0x180d66(0x1e1)]({'text':_0x2447ed,'style':_0x180d66(0x1df)});}return _0x3582d0;}function extractReport(_0x30b77e){const _0x15a2a8=a989_0x3768bd;let _0x2a177f=0x1388,_0x10489a;if(!_0x30b77e[0x0][_0x15a2a8(0x1c0)])return analyticExtractedReport(_0x15a2a8(0x1c7));const _0x3a6bf2=[];let _0x4fd83e=0x0,_0x4bcd46=!![];const _0xd15970=path[_0x15a2a8(0x1e6)](PATH),_0x5c8d87=path[_0x15a2a8(0x1f1)](PATH,_0x15a2a8(0x1c1));let _0xc146c6=![];const _0x45f0c4=[];return db[_0x15a2a8(0x1b4)][_0x15a2a8(0x1b6)]({'where':{'id':0x1},'raw':!![],'attributes':['id',_0x15a2a8(0x1eb),_0x15a2a8(0x1d7)]})[_0x15a2a8(0x1d6)](function(_0x128115){const _0x3cab98=_0x15a2a8;_0x128115&&(_0x10489a=_0x128115,_0x2a177f=_0x10489a[_0x3cab98(0x1d7)]||0x3e8);})[_0x15a2a8(0x1d6)](function(){const _0x57484b=_0x15a2a8;if(_0x30b77e&&_0x30b77e[_0x57484b(0x1d0)]){let _0x3322ad=_0x30b77e[0x0][_0x57484b(0x1c0)]%(_0x4fd83e+_0x2a177f);if(_0x10489a[_0x57484b(0x1eb)])for(;_0x4bcd46;_0x4fd83e+=_0x2a177f,_0x3322ad=_0x30b77e[0x0][_0x57484b(0x1c0)]%(_0x4fd83e+_0x2a177f)){(_0x3322ad==0x0||_0x3322ad==_0x30b77e[0x0][_0x57484b(0x1c0)])&&(_0x4bcd46=![]),_0x3a6bf2[_0x57484b(0x1e1)](dbH['sequelize'][_0x57484b(0x1ed)](util[_0x57484b(0x1ef)](_0x57484b(0x1b8),QUERY,_0x2a177f,_0x4fd83e),{'type':dbH[_0x57484b(0x1d3)][_0x57484b(0x1f4)][_0x57484b(0x1dd)]}));}else _0x3a6bf2[_0x57484b(0x1e1)](dbH['sequelize'][_0x57484b(0x1ed)](QUERY,{'type':dbH['sequelize'][_0x57484b(0x1f4)][_0x57484b(0x1dd)]}));}return _0xc146c6=_0x10489a[_0x57484b(0x1eb)]&&_0x3a6bf2[_0x57484b(0x1d0)]>0x1,!fs[_0x57484b(0x1e9)](path[_0x57484b(0x1cc)](_0xd15970,_0x5c8d87))&&_0xc146c6&&fs[_0x57484b(0x1d9)](path['join'](_0xd15970,_0x5c8d87)),Promise['all'](_0x3a6bf2[_0x57484b(0x1e4)](_0x91fe64=>{_0x45f0c4['push'](_0x91fe64);}));})[_0x15a2a8(0x1d6)](function(){const _0x479c7e=_0x15a2a8;return Promise[_0x479c7e(0x1cb)](_0x3a6bf2[_0x479c7e(0x1e4)]((_0x265f3c,_0x377d07)=>{const _0x16118b=_0x479c7e;let _0x151f94;const _0x390c95=util[_0x16118b(0x1ef)](_0x16118b(0x1be),NAME,_extractedReport[_0x16118b(0x1f9)],moment(_extractedReport[_0x16118b(0x1d2)])[_0x16118b(0x1ef)](FORMAT),moment(_extractedReport[_0x16118b(0x1c8)])[_0x16118b(0x1ef)](FORMAT)),_0x3fc049={'pageSize':'A4','pageOrientation':'landscape','content':[{'text':_0x390c95,'style':_0x16118b(0x1bd)}],'styles':{'header':{'fontSize':0x12,'bold':!![],'margin':[0x0,0x0,0x0,0xa]},'tableHeader':{'bold':!![],'fontSize':0xd,'color':_0x16118b(0x1ce)}}},_0x273b0a={'headerRows':0x1,'body':[]};_0x273b0a[_0x16118b(0x1ba)]['push'](getHeader(_0x265f3c[0x0]));let _0x2491a1;for(let _0x5c529a=0x0;_0x5c529a<_0x265f3c[_0x16118b(0x1d0)];_0x5c529a+=0x1){_0x2491a1=[];for(const _0x17338d in _0x265f3c[_0x5c529a]){typeof _0x265f3c[_0x5c529a][_0x17338d]!==_0x16118b(0x1bb)&&_0x2491a1[_0x16118b(0x1e1)](_0x265f3c[_0x5c529a][_0x17338d]?_[_0x16118b(0x1c2)](_0x265f3c[_0x5c529a][_0x17338d]):'');}_0x273b0a[_0x16118b(0x1ba)][_0x16118b(0x1e1)](_0x2491a1);}return _0x3fc049[_0x16118b(0x1f2)][_0x16118b(0x1e1)]({'table':_0x273b0a}),new Promise(function(_0x5ea614,_0x76a736){const _0x184b75=_0x16118b,_0xb4a0fe=new PdfPrinter({'Roboto':{'normal':__dirname+_0x184b75(0x1ee),'bold':__dirname+_0x184b75(0x1c5),'italics':__dirname+_0x184b75(0x1ec),'bolditalics':__dirname+_0x184b75(0x1c6)}}),_0x10fd96=_0xb4a0fe[_0x184b75(0x1ea)](_0x3fc049);_0xc146c6?_0x151f94=path['join'](_0xd15970,_0x5c8d87,util[_0x184b75(0x1ef)](_0x184b75(0x1dc),_0x5c8d87,_0x377d07,'pdf')):_0x151f94=path[_0x184b75(0x1cc)](_0xd15970,util[_0x184b75(0x1ef)](_0x184b75(0x1c3),_0x5c8d87,_0x184b75(0x1b9)));const _0x1e1aed=_0x10fd96[_0x184b75(0x1e3)](fs[_0x184b75(0x1b5)](_0x151f94));_0x1e1aed['on'](_0x184b75(0x1b7),function(){_0x5ea614();}),_0x1e1aed['on'](_0x184b75(0x1f6),function(_0x58d848){const _0x26be12=_0x184b75;console[_0x26be12(0x1e8)](_0x26be12(0x1e0),_0x58d848),_0x76a736(_0x58d848);}),_0x10fd96[_0x184b75(0x1f0)]();});}));})[_0x15a2a8(0x1d6)](function(){if(_0xc146c6)return new Promise(function(_0x1d5824,_0x5455e0){const _0x3bf733=a989_0xcc8c;zipdir(path['join'](_0xd15970,_0x5c8d87),{'saveTo':path['join'](_0xd15970,util['format'](_0x3bf733(0x1c3),_0x5c8d87,_0x3bf733(0x1bc)))},function(_0x4f9f9e){_0x4f9f9e?_0x5455e0(_0x4f9f9e):_0x1d5824();});});})[_0x15a2a8(0x1d6)](function(){const _0x9c259c=_0x15a2a8;_0xc146c6&&rimraf(path[_0x9c259c(0x1cc)](_0xd15970,_0x5c8d87),function(){});})[_0x15a2a8(0x1d6)](function(){const _0x3289f1=_0x15a2a8;return logger[_0x3289f1(0x1de)](util[_0x3289f1(0x1ef)](_0x3289f1(0x1ca),EXTRACTED_REPORT_ID,_0x3289f1(0x1f8))),analyticExtractedReport(_0x3289f1(0x1cd),_0xc146c6?util[_0x3289f1(0x1ef)](_0x3289f1(0x1c3),_0x5c8d87,_0xc146c6?_0x3289f1(0x1bc):_0x3289f1(0x1b9)):null);});}function main(){const _0x38ab56=a989_0x3768bd;return logger[_0x38ab56(0x1de)](util[_0x38ab56(0x1ef)](_0x38ab56(0x1cf),EXTRACTED_REPORT_ID,_0x38ab56(0x1d4))),db[_0x38ab56(0x1e7)][_0x38ab56(0x1b6)]({'where':{'id':EXTRACTED_REPORT_ID}})[_0x38ab56(0x1d6)](function(_0x4b5222){const _0x31dabb=_0x38ab56;return _extractedReport=_0x4b5222,dbH[_0x31dabb(0x1d3)][_0x31dabb(0x1ed)](util['format'](_0x31dabb(0x1d8),QUERY),{'type':dbH['sequelize'][_0x31dabb(0x1f4)][_0x31dabb(0x1dd)]});})[_0x38ab56(0x1d6)](extractReport)[_0x38ab56(0x1b3)](function(_0x2dd5bb){const _0x12a2b9=_0x38ab56;return logger[_0x12a2b9(0x1de)](util[_0x12a2b9(0x1ef)](_0x12a2b9(0x1da),EXTRACTED_REPORT_ID,_0x12a2b9(0x1d4)),util[_0x12a2b9(0x1f5)](_0x2dd5bb,{'showHidden':![],'depth':null})),analyticExtractedReport(_0x12a2b9(0x1bf));});}main(); \ No newline at end of file diff --git a/server/components/export/xlsx.js b/server/components/export/xlsx.js index b3845c4..8af4838 100644 --- a/server/components/export/xlsx.js +++ b/server/components/export/xlsx.js @@ -1 +1 @@ -const a828_0x142d=['writeFileSync','Start\x20extraction\x20report\x20with\x20id\x20%d\x20in\x20%s\x20format','zip','num','dbH','%s%d.%s','../../config/logger','SELECT','length','Setting','.xlsx','json2xls','then','analytics','../../mysqldb','basename','map','QueryTypes','savename','sequelize','Extraction\x20report\x20with\x20id\x20%d\x20in\x20%s\x20format\x20completed','catch','Error\x20during\x20extraction\x20report\x20with\x20id\x20%d\x20in\x20%s\x20format','mkdirSync','splitSizeXlsx','existsSync','dirname','argv','info','query','Completed','inspect','Failed','XLSX','util','path','findOne','xlsx','join','%s.%s','format','split','push'];(function(_0x17fb40,_0x142d8b){const _0x11f118=function(_0x3f4ad4){while(--_0x3f4ad4){_0x17fb40['push'](_0x17fb40['shift']());}};_0x11f118(++_0x142d8b);}(a828_0x142d,0x1e2));const a828_0x11f1=function(_0x17fb40,_0x142d8b){_0x17fb40=_0x17fb40-0x0;let _0x11f118=a828_0x142d[_0x17fb40];return _0x11f118;};const _0x25f7df=a828_0x11f1;'use strict';const util=require(_0x25f7df('0x19')),path=require(_0x25f7df('0x1a')),fs=require('fs'),json2xls=require(_0x25f7df('0x2')),zipdir=require('zip-dir'),rimraf=require('rimraf'),db=require(_0x25f7df('0x5'))['db'],dbH=require('../../mysqldb')[_0x25f7df('0x26')],logger=require(_0x25f7df('0x28'))(_0x25f7df('0x4')),EXTRACTED_REPORT_ID=Number(process[_0x25f7df('0x12')][0x2]),QUERY=process[_0x25f7df('0x12')][0x3],PATH=process[_0x25f7df('0x12')][0x4];function analyticExtractedReport(_0x3f4ad4,_0x115c1c){const _0x10b6c=_0x25f7df,_0xeefd36={'status':_0x3f4ad4},_0x4ffb36={'where':{'id':EXTRACTED_REPORT_ID}};return _0x115c1c&&(_0xeefd36[_0x10b6c('0x9')]=_0x115c1c),db['AnalyticExtractedReport']['update'](_0xeefd36,_0x4ffb36);}function main(){const _0x4ff462=_0x25f7df;let _0xb3992c=0x1388,_0x40e920;return logger[_0x4ff462('0x13')](util[_0x4ff462('0x1f')](_0x4ff462('0x23'),EXTRACTED_REPORT_ID,_0x4ff462('0x18'))),db[_0x4ff462('0x0')][_0x4ff462('0x1b')]({'where':{'id':0x1},'raw':!![],'attributes':['id',_0x4ff462('0x20'),_0x4ff462('0xf')]})[_0x4ff462('0x3')](function(_0x497a59){const _0x47c596=_0x4ff462;_0x497a59&&(_0x40e920=_0x497a59,_0xb3992c=_0x40e920[_0x47c596('0xf')]||0x1388);})[_0x4ff462('0x3')](function(){const _0x4b67f1=_0x4ff462;return dbH[_0x4b67f1('0xa')]['query'](util[_0x4b67f1('0x1f')]('SELECT\x20count(*)\x20as\x20num\x20FROM\x20(%s)\x20t',QUERY),{'type':dbH['sequelize'][_0x4b67f1('0x8')][_0x4b67f1('0x29')]});})[_0x4ff462('0x3')](function(_0x493acd){const _0x5c1482=_0x4ff462;if(!_0x493acd[0x0][_0x5c1482('0x25')])return analyticExtractedReport('Empty');const _0x5367a6=[];let _0x2fffc9=0x0,_0x49eded=!![];if(_0x40e920['split']){if(_0x493acd&&_0x493acd[_0x5c1482('0x2a')]){let _0x2f89a8=_0x493acd[0x0][_0x5c1482('0x25')]%(_0x2fffc9+_0xb3992c);for(;_0x49eded;_0x2fffc9+=_0xb3992c,_0x2f89a8=_0x493acd[0x0][_0x5c1482('0x25')]%(_0x2fffc9+_0xb3992c)){(_0x2f89a8==0x0||_0x2f89a8==_0x493acd[0x0][_0x5c1482('0x25')])&&(_0x49eded=![]),_0x5367a6[_0x5c1482('0x21')](dbH[_0x5c1482('0xa')][_0x5c1482('0x14')](util[_0x5c1482('0x1f')]('%s\x20limit\x20%d\x20OFFSET\x20%d',QUERY,_0xb3992c,_0x2fffc9),{'type':dbH[_0x5c1482('0xa')][_0x5c1482('0x8')]['SELECT']}));}}}else _0x5367a6['push'](dbH[_0x5c1482('0xa')][_0x5c1482('0x14')](QUERY,{'type':dbH[_0x5c1482('0xa')][_0x5c1482('0x8')][_0x5c1482('0x29')]}));const _0x204211=path[_0x5c1482('0x11')](PATH),_0x4a9699=path[_0x5c1482('0x6')](PATH,_0x5c1482('0x1')),_0x4c2269=_0x40e920[_0x5c1482('0x20')]&&_0x5367a6[_0x5c1482('0x2a')]>0x1,_0x219899=[];return!fs[_0x5c1482('0x10')](path[_0x5c1482('0x1d')](_0x204211,_0x4a9699))&&_0x4c2269&&fs[_0x5c1482('0xe')](path[_0x5c1482('0x1d')](_0x204211,_0x4a9699)),Promise['all'](_0x5367a6[_0x5c1482('0x7')](_0x24ee69=>{const _0x27655b=_0x5c1482;_0x219899[_0x27655b('0x21')](_0x24ee69);}))[_0x5c1482('0x3')](function(){const _0x4e5193=_0x5c1482;for(let _0x59a1d6=0x0;_0x59a1d6<_0x219899['length'];_0x59a1d6+=0x1){let _0xda17e4;const _0x49eff6=_0x219899[_0x59a1d6];_0x4c2269?_0xda17e4=path[_0x4e5193('0x1d')](_0x204211,_0x4a9699,util[_0x4e5193('0x1f')](_0x4e5193('0x27'),_0x4a9699,_0x59a1d6,_0x4e5193('0x1c'))):_0xda17e4=path[_0x4e5193('0x1d')](_0x204211,util[_0x4e5193('0x1f')](_0x4e5193('0x1e'),_0x4a9699,_0x4e5193('0x1c'))),fs[_0x4e5193('0x22')](_0xda17e4,json2xls(_0x49eff6),'binary');}})[_0x5c1482('0x3')](function(){const _0xd7a521=_0x5c1482;_0x4c2269&&(zipdir(path['join'](_0x204211,_0x4a9699),{'saveTo':path[_0xd7a521('0x1d')](_0x204211,util[_0xd7a521('0x1f')]('%s.%s',_0x4a9699,'zip'))},function(){}),rimraf(path[_0xd7a521('0x1d')](_0x204211,_0x4a9699),function(){}));})['then'](function(){const _0x242061=_0x5c1482;return logger[_0x242061('0x13')](util['format'](_0x242061('0xb'),EXTRACTED_REPORT_ID,_0x242061('0x18'))),analyticExtractedReport(_0x242061('0x15'),_0x4c2269?util[_0x242061('0x1f')](_0x242061('0x1e'),_0x4a9699,_0x4c2269?_0x242061('0x24'):_0x242061('0x1c')):null);});})[_0x4ff462('0xc')](function(_0x4e0579){const _0x541c8d=_0x4ff462;return logger['info'](util[_0x541c8d('0x1f')](_0x541c8d('0xd'),EXTRACTED_REPORT_ID,'XLSX'),util[_0x541c8d('0x16')](_0x4e0579,{'showHidden':![],'depth':null})),analyticExtractedReport(_0x541c8d('0x17'));});}main(); \ No newline at end of file +const a990_0x295b=['savename','argv','zip','Empty','num','join','format','all','push','json2xls','%s%d.%s','%s\x20limit\x20%d\x20OFFSET\x20%d','dbH','then','SELECT','Setting','Start\x20extraction\x20report\x20with\x20id\x20%d\x20in\x20%s\x20format','query','split','writeFileSync','../../mysqldb','QueryTypes','.xlsx','%s.%s','xlsx','../../config/logger','sequelize','XLSX','Error\x20during\x20extraction\x20report\x20with\x20id\x20%d\x20in\x20%s\x20format','dirname','binary','info','util','rimraf','Extraction\x20report\x20with\x20id\x20%d\x20in\x20%s\x20format\x20completed','existsSync','update','mkdirSync','Failed','length','inspect','SELECT\x20count(*)\x20as\x20num\x20FROM\x20(%s)\x20t','analytics'];(function(_0x19fb5d,_0xad9840){const _0x295b21=function(_0x55541e){while(--_0x55541e){_0x19fb5d['push'](_0x19fb5d['shift']());}};_0x295b21(++_0xad9840);}(a990_0x295b,0x103));const a990_0x5554=function(_0x19fb5d,_0xad9840){_0x19fb5d=_0x19fb5d-0x1cf;let _0x295b21=a990_0x295b[_0x19fb5d];return _0x295b21;};const a990_0x3447f1=a990_0x5554;'use strict';const util=require(a990_0x3447f1(0x1ee)),path=require('path'),fs=require('fs'),json2xls=require(a990_0x3447f1(0x1d7)),zipdir=require('zip-dir'),rimraf=require(a990_0x3447f1(0x1ef)),{db}=require(a990_0x3447f1(0x1e2)),dbH=require(a990_0x3447f1(0x1e2))[a990_0x3447f1(0x1da)],logger=require(a990_0x3447f1(0x1e7))(a990_0x3447f1(0x1f8)),EXTRACTED_REPORT_ID=Number(process[a990_0x3447f1(0x1cf)][0x2]),QUERY=process[a990_0x3447f1(0x1cf)][0x3],PATH=process[a990_0x3447f1(0x1cf)][0x4];function analyticExtractedReport(_0x5c74d6,_0x112b75){const _0x3e3ac8=a990_0x3447f1,_0x8e64c={'status':_0x5c74d6},_0x5d93e7={'where':{'id':EXTRACTED_REPORT_ID}};return _0x112b75&&(_0x8e64c[_0x3e3ac8(0x1f9)]=_0x112b75),db['AnalyticExtractedReport'][_0x3e3ac8(0x1f2)](_0x8e64c,_0x5d93e7);}function main(){const _0x1c4891=a990_0x3447f1;let _0x3fbda8=0x1388,_0x45b710;return logger[_0x1c4891(0x1ed)](util['format'](_0x1c4891(0x1de),EXTRACTED_REPORT_ID,'XLSX')),db[_0x1c4891(0x1dd)]['findOne']({'where':{'id':0x1},'raw':!![],'attributes':['id','split','splitSizeXlsx']})[_0x1c4891(0x1db)](function(_0x36ae14){_0x36ae14&&(_0x45b710=_0x36ae14,_0x3fbda8=_0x45b710['splitSizeXlsx']||0x1388);})[_0x1c4891(0x1db)](function(){const _0x326526=_0x1c4891;return dbH[_0x326526(0x1e8)][_0x326526(0x1df)](util[_0x326526(0x1d4)](_0x326526(0x1f7),QUERY),{'type':dbH['sequelize']['QueryTypes'][_0x326526(0x1dc)]});})[_0x1c4891(0x1db)](function(_0xfc9517){const _0x22df9b=_0x1c4891;if(!_0xfc9517[0x0][_0x22df9b(0x1d2)])return analyticExtractedReport(_0x22df9b(0x1d1));const _0x4191c8=[];let _0x73e95e=0x0,_0x27ddba=!![];if(_0x45b710['split']){if(_0xfc9517&&_0xfc9517[_0x22df9b(0x1f5)]){let _0x4b5765=_0xfc9517[0x0]['num']%(_0x73e95e+_0x3fbda8);for(;_0x27ddba;_0x73e95e+=_0x3fbda8,_0x4b5765=_0xfc9517[0x0][_0x22df9b(0x1d2)]%(_0x73e95e+_0x3fbda8)){(_0x4b5765==0x0||_0x4b5765==_0xfc9517[0x0]['num'])&&(_0x27ddba=![]),_0x4191c8[_0x22df9b(0x1d6)](dbH[_0x22df9b(0x1e8)][_0x22df9b(0x1df)](util[_0x22df9b(0x1d4)](_0x22df9b(0x1d9),QUERY,_0x3fbda8,_0x73e95e),{'type':dbH[_0x22df9b(0x1e8)][_0x22df9b(0x1e3)][_0x22df9b(0x1dc)]}));}}}else _0x4191c8['push'](dbH[_0x22df9b(0x1e8)][_0x22df9b(0x1df)](QUERY,{'type':dbH['sequelize'][_0x22df9b(0x1e3)][_0x22df9b(0x1dc)]}));const _0x4db73f=path[_0x22df9b(0x1eb)](PATH),_0x14d43d=path['basename'](PATH,_0x22df9b(0x1e4)),_0x22bfa6=_0x45b710[_0x22df9b(0x1e0)]&&_0x4191c8[_0x22df9b(0x1f5)]>0x1,_0x333efb=[];return!fs[_0x22df9b(0x1f1)](path[_0x22df9b(0x1d3)](_0x4db73f,_0x14d43d))&&_0x22bfa6&&fs[_0x22df9b(0x1f3)](path['join'](_0x4db73f,_0x14d43d)),Promise[_0x22df9b(0x1d5)](_0x4191c8['map'](_0x317a8e=>{const _0x5c92c3=_0x22df9b;_0x333efb[_0x5c92c3(0x1d6)](_0x317a8e);}))[_0x22df9b(0x1db)](function(){const _0x1ade9d=_0x22df9b;for(let _0x5d5805=0x0;_0x5d5805<_0x333efb[_0x1ade9d(0x1f5)];_0x5d5805+=0x1){let _0x5549db;const _0x51296c=_0x333efb[_0x5d5805];_0x22bfa6?_0x5549db=path[_0x1ade9d(0x1d3)](_0x4db73f,_0x14d43d,util[_0x1ade9d(0x1d4)](_0x1ade9d(0x1d8),_0x14d43d,_0x5d5805,_0x1ade9d(0x1e6))):_0x5549db=path[_0x1ade9d(0x1d3)](_0x4db73f,util[_0x1ade9d(0x1d4)](_0x1ade9d(0x1e5),_0x14d43d,_0x1ade9d(0x1e6))),fs[_0x1ade9d(0x1e1)](_0x5549db,json2xls(_0x51296c),_0x1ade9d(0x1ec));}})[_0x22df9b(0x1db)](function(){const _0x15e9bf=_0x22df9b;_0x22bfa6&&(zipdir(path[_0x15e9bf(0x1d3)](_0x4db73f,_0x14d43d),{'saveTo':path[_0x15e9bf(0x1d3)](_0x4db73f,util[_0x15e9bf(0x1d4)](_0x15e9bf(0x1e5),_0x14d43d,_0x15e9bf(0x1d0)))},function(){}),rimraf(path[_0x15e9bf(0x1d3)](_0x4db73f,_0x14d43d),function(){}));})['then'](function(){const _0x232ead=_0x22df9b;return logger['info'](util[_0x232ead(0x1d4)](_0x232ead(0x1f0),EXTRACTED_REPORT_ID,_0x232ead(0x1e9))),analyticExtractedReport('Completed',_0x22bfa6?util[_0x232ead(0x1d4)]('%s.%s',_0x14d43d,_0x22bfa6?'zip':_0x232ead(0x1e6)):null);});})['catch'](function(_0x504c90){const _0x5142b3=_0x1c4891;return logger[_0x5142b3(0x1ed)](util[_0x5142b3(0x1d4)](_0x5142b3(0x1ea),EXTRACTED_REPORT_ID,_0x5142b3(0x1e9)),util[_0x5142b3(0x1f6)](_0x504c90,{'showHidden':![],'depth':null})),analyticExtractedReport(_0x5142b3(0x1f4));});}main(); \ No newline at end of file diff --git a/server/components/extensions/rewrite.js b/server/components/extensions/rewrite.js index 00f79d0..09912ae 100644 --- a/server/components/extensions/rewrite.js +++ b/server/components/extensions/rewrite.js @@ -1 +1 @@ -const a829_0x1dc1=['MONITOR_OPTIONS=ab','splice','IntervalId','ExecIf','uniq','groupBy','XCALLY-MOTION-PROGRESS=0','push','lodash','CDR(prefix)=noprefix','Interval','_XCALLY_MIXMONITOR_UNIQUEID=${UNIQUEID}','models','interval','concat','Hangup','outboundrouteid=','CDR(type)=%s','$[${XCALLY-MOTION-PROGRESS}=0]?Progress','playback','$[${LEN(${PREFIX-CALLERIDALL})}\x20>\x200]?Set(CALLERID(all)=${PREFIX-CALLERIDALL}):Set(CALLERID(all)=','exten','_XCALLY_MIXMONITOR_FORMAT=','intervals','outbound','$[${LEN(${PREFIX-CALLERIDALL})}\x20>\x200]?Set(CALLERID(all)=${PREFIX-CALLERIDALL}):NoOp(No\x20number\x20available)','undefined','filter','answer','Set','callerID','${EXTEN}','VoiceExtension','XCALLY-MOTION-ANSWER=0','literal','sortBy','extension','find','catch','rewrite','length','VoiceExtensionId','format','tag','CAST(priority\x20AS\x20UNSIGNED)','extensions','XCALLY-MOTION-ANSWER=1','bulkCreate','none','findAll','context','last','createdAt','):Goto(','CDR(routeid)=',',${EXTEN},','cutdigits','priority','recordingFormat','CDR(destination)=','type','then','toLowerCase','destroy','map','appType','queue','CDR(tag)=','error','custom','sequelize','indexOf'];(function(_0x292c81,_0x1dc10b){const _0x15c07c=function(_0x2947d8){while(--_0x2947d8){_0x292c81['push'](_0x292c81['shift']());}};_0x15c07c(++_0x1dc10b);}(a829_0x1dc1,0x95));const a829_0x15c0=function(_0x292c81,_0x1dc10b){_0x292c81=_0x292c81-0x0;let _0x15c07c=a829_0x1dc1[_0x292c81];return _0x15c07c;};const _0x483084=a829_0x15c0;'use strict';const _=require(_0x483084('0x3')),util=require('util'),{Op}=require(_0x483084('0x41'));function rewrite(_0x2947d8,_0x2c8678){const _0x20c34b=_0x483084,_0x4f9d8b=this;return _0x2947d8[_0x20c34b('0x7')][_0x20c34b('0x5')][_0x20c34b('0x2c')]({'raw':!![]})[_0x20c34b('0x38')](function(_0x2935db){const _0x3be89a=_0x20c34b;return _0x4f9d8b[_0x3be89a('0x12')]=_0x2935db,_0x2947d8[_0x3be89a('0x7')][_0x3be89a('0x1b')]['findAll']({'where':{'IntervalId':_0x2c8678[_0x3be89a('0x45')]},'raw':!![]});})[_0x20c34b('0x38')](function(_0x5793ec){const _0x22f707=_0x20c34b;return _0x2947d8[_0x22f707('0x7')][_0x22f707('0x1b')][_0x22f707('0x2c')]({'where':{'exten':{[Op['in']]:_[_0x22f707('0x47')](_['map'](_0x5793ec,_0x22f707('0x10')))}},'order':_0x2947d8[_0x22f707('0x1d')](_0x22f707('0x27')),'raw':!![]});})[_0x20c34b('0x38')](function(_0x4b8157){const _0x544654=_0x20c34b,_0x7ad066=_[_0x544654('0x16')](_0x4b8157,{'priority':'1'}),_0x1f7c69=_['filter'](_0x4b8157,{'isApp':0x1}),_0x35213a=_[_0x544654('0x0')](_0x1f7c69,_0x544654('0x10')),_0x39b507=[_0x544654('0x3d'),_0x544654('0xe')],_0x4120e6=[];let _0x10ba52=[];for(const _0x53fdda in _0x35213a){if(typeof _0x35213a[_0x53fdda]!=='undefined'){_0x4f9d8b[_0x544654('0x34')]=0x2,_0x4f9d8b[_0x544654('0x28')]=[],_0x4f9d8b[_0x544654('0x1f')]=_[_0x544654('0x20')](_0x7ad066,{'exten':_0x35213a[_0x53fdda][0x0][_0x544654('0x10')]}),_0x4f9d8b[_0x544654('0x28')][_0x544654('0x2')]({'type':_0x35213a[_0x53fdda][0x0][_0x544654('0x37')],'app':'Set','appdata':util[_0x544654('0x25')](_0x544654('0xc'),_0x35213a[_0x53fdda][0x0][_0x544654('0x37')]),'context':_0x35213a[_0x53fdda][0x0][_0x544654('0x2d')],'exten':_0x35213a[_0x53fdda][0x0][_0x544654('0x10')],'priority':_0x4f9d8b[_0x544654('0x34')]++,'VoiceExtensionId':_0x35213a[_0x53fdda][0x0][_0x544654('0x24')]});if(_0x35213a[_0x53fdda][0x0][_0x544654('0x37')]===_0x544654('0x13')){_0x4f9d8b[_0x544654('0x1f')]&&_0x4f9d8b[_0x544654('0x28')][_0x544654('0x2')]({'type':_0x35213a[_0x53fdda][0x0][_0x544654('0x37')],'app':'Set','appdata':_0x544654('0x36')+(_0x4f9d8b['extension'][_0x544654('0x33')]?'${EXTEN:'+_0x4f9d8b[_0x544654('0x1f')][_0x544654('0x33')]+'}':_0x544654('0x1a')),'context':_0x35213a[_0x53fdda][0x0][_0x544654('0x2d')],'exten':_0x35213a[_0x53fdda][0x0][_0x544654('0x10')],'priority':_0x4f9d8b[_0x544654('0x34')]++,'VoiceExtensionId':_0x35213a[_0x53fdda][0x0][_0x544654('0x24')]});_0x4f9d8b[_0x544654('0x28')][_0x544654('0x2')]({'type':_0x35213a[_0x53fdda][0x0][_0x544654('0x37')],'app':'Set','appdata':_0x544654('0x31')+_0x35213a[_0x53fdda][0x0][_0x544654('0x24')],'context':_0x35213a[_0x53fdda][0x0][_0x544654('0x2d')],'exten':_0x35213a[_0x53fdda][0x0][_0x544654('0x10')],'priority':_0x4f9d8b[_0x544654('0x34')]++,'VoiceExtensionId':_0x35213a[_0x53fdda][0x0][_0x544654('0x24')]});const _0xe42bfa=_0x4f9d8b[_0x544654('0x34')]++;_0x4f9d8b[_0x544654('0x28')]['push']({'type':_0x35213a[_0x53fdda][0x0]['type'],'app':'ExecIf','appdata':'$[${LEN(${CDR(prefix)})}\x20>\x200]?Goto('+(_0xe42bfa+0x2)+_0x544654('0x30')+(_0xe42bfa+0x1)+')','context':_0x35213a[_0x53fdda][0x0][_0x544654('0x2d')],'exten':_0x35213a[_0x53fdda][0x0]['exten'],'priority':_0xe42bfa,'VoiceExtensionId':_0x35213a[_0x53fdda][0x0][_0x544654('0x24')]}),_0x4f9d8b[_0x544654('0x1f')]&&_0x4f9d8b[_0x544654('0x28')][_0x544654('0x2')]({'type':_0x35213a[_0x53fdda][0x0][_0x544654('0x37')],'app':_0x544654('0x18'),'appdata':_0x4f9d8b[_0x544654('0x1f')][_0x544654('0x33')]?'CDR(prefix)=${EXTEN:0:'+_0x4f9d8b[_0x544654('0x1f')][_0x544654('0x33')]+'}':_0x544654('0x4'),'context':_0x35213a[_0x53fdda][0x0][_0x544654('0x2d')],'exten':_0x35213a[_0x53fdda][0x0][_0x544654('0x10')],'priority':_0x4f9d8b[_0x544654('0x34')]++,'VoiceExtensionId':_0x35213a[_0x53fdda][0x0][_0x544654('0x24')]}),_0x4f9d8b[_0x544654('0x28')][_0x544654('0x2')]({'type':_0x35213a[_0x53fdda][0x0][_0x544654('0x37')],'app':_0x544654('0x18'),'appdata':_0x544654('0xb')+_0x35213a[_0x53fdda][0x0][_0x544654('0x24')],'context':_0x35213a[_0x53fdda][0x0][_0x544654('0x2d')],'exten':_0x35213a[_0x53fdda][0x0]['exten'],'priority':_0x4f9d8b['priority']++,'VoiceExtensionId':_0x35213a[_0x53fdda][0x0][_0x544654('0x24')]}),_0x4f9d8b[_0x544654('0x1f')]&&typeof _0x4f9d8b['extension']['recordingFormat']!==_0x544654('0x15')&&_0x4f9d8b[_0x544654('0x1f')][_0x544654('0x35')]!==_0x544654('0x2b')&&(_0x4f9d8b[_0x544654('0x28')][_0x544654('0x2')]({'type':_0x35213a[_0x53fdda][0x0]['type'],'app':_0x544654('0x18'),'appdata':_0x544654('0x6'),'context':_0x35213a[_0x53fdda][0x0][_0x544654('0x2d')],'exten':_0x35213a[_0x53fdda][0x0][_0x544654('0x10')],'priority':_0x4f9d8b['priority']++,'VoiceExtensionId':_0x35213a[_0x53fdda][0x0][_0x544654('0x24')]}),_0x4f9d8b[_0x544654('0x28')][_0x544654('0x2')]({'type':_0x35213a[_0x53fdda][0x0][_0x544654('0x37')],'app':_0x544654('0x18'),'appdata':_0x544654('0x11')+_0x4f9d8b[_0x544654('0x1f')][_0x544654('0x35')]||'wav','context':_0x35213a[_0x53fdda][0x0]['context'],'exten':_0x35213a[_0x53fdda][0x0][_0x544654('0x10')],'priority':_0x4f9d8b['priority']++,'VoiceExtensionId':_0x35213a[_0x53fdda][0x0][_0x544654('0x24')]}));}_0x4f9d8b[_0x544654('0x28')][_0x544654('0x2')]({'type':_0x35213a[_0x53fdda][0x0][_0x544654('0x37')],'app':_0x544654('0x18'),'appdata':_0x544654('0x1c'),'context':_0x35213a[_0x53fdda][0x0]['context'],'exten':_0x35213a[_0x53fdda][0x0][_0x544654('0x10')],'priority':_0x4f9d8b[_0x544654('0x34')]++,'VoiceExtensionId':_0x35213a[_0x53fdda][0x0]['VoiceExtensionId']}),_0x4f9d8b[_0x544654('0x28')]['push']({'type':_0x35213a[_0x53fdda][0x0][_0x544654('0x37')],'app':_0x544654('0x18'),'appdata':_0x544654('0x1'),'context':_0x35213a[_0x53fdda][0x0][_0x544654('0x2d')],'exten':_0x35213a[_0x53fdda][0x0]['exten'],'priority':_0x4f9d8b[_0x544654('0x34')]++,'VoiceExtensionId':_0x35213a[_0x53fdda][0x0][_0x544654('0x24')]}),_0x4f9d8b['extensions'][_0x544654('0x2')]({'type':_0x35213a[_0x53fdda][0x0][_0x544654('0x37')],'app':'Set','appdata':_0x544654('0x43'),'context':_0x35213a[_0x53fdda][0x0][_0x544654('0x2d')],'exten':_0x35213a[_0x53fdda][0x0]['exten'],'priority':_0x4f9d8b['priority']++,'VoiceExtensionId':_0x35213a[_0x53fdda][0x0][_0x544654('0x24')]});for(let _0x3f5d46=0x0,_0x80e6fe=0x0;_0x3f5d46<_0x35213a[_0x53fdda][_0x544654('0x23')];_0x3f5d46+=0x1,_0x80e6fe=0x0){const _0x44ed64=_0x35213a[_0x53fdda][_0x3f5d46];_0x44ed64['type']&&(_0x44ed64[_0x544654('0x37')]=_0x44ed64[_0x544654('0x37')]['toLowerCase']());const _0x197edf=[],_0xd1abc4=[];delete _0x44ed64['id'],delete _0x44ed64[_0x544654('0x2f')],delete _0x44ed64['updatedAt'];const _0x7c8c0a=_0x44ed64[_0x544654('0x8')]!=='*,*,*,*'?[_0x44ed64['interval']]:_0x44ed64[_0x544654('0x45')]?_[_0x544654('0x3b')](_[_0x544654('0x16')](_0x4f9d8b[_0x544654('0x12')],{'IntervalId':_0x44ed64['IntervalId']}),'interval'):[];typeof _0x44ed64[_0x544654('0x26')]!==_0x544654('0x15')&&(_0x44ed64[_0x544654('0x26')]&&_0x44ed64['tag']!=='--'&&_0x197edf['push']({'type':_0x44ed64[_0x544654('0x37')],'app':_0x544654('0x18'),'appdata':_0x544654('0x3e')+_0x44ed64['tag'],'context':_0x44ed64[_0x544654('0x2d')],'exten':_0x44ed64[_0x544654('0x10')],'priority':_0x7c8c0a[_0x544654('0x23')]+_0x4f9d8b[_0x544654('0x34')]+_0x80e6fe++,'VoiceExtensionId':_0x44ed64[_0x544654('0x24')]}));_0x44ed64[_0x544654('0x37')]==='outbound'&&typeof _0x44ed64[_0x544654('0x19')]!==_0x544654('0x15')&&(_0x44ed64[_0x544654('0x19')]?_0x197edf['push']({'type':_0x44ed64[_0x544654('0x37')],'app':_0x544654('0x46'),'appdata':_0x544654('0xf')+_0x44ed64['callerID']+')','context':_0x44ed64[_0x544654('0x2d')],'exten':_0x44ed64['exten'],'priority':_0x7c8c0a['length']+_0x4f9d8b[_0x544654('0x34')]+_0x80e6fe++,'VoiceExtensionId':_0x44ed64[_0x544654('0x24')]}):_0x197edf[_0x544654('0x2')]({'type':_0x44ed64[_0x544654('0x37')],'app':_0x544654('0x46'),'appdata':_0x544654('0x14'),'context':_0x44ed64[_0x544654('0x2d')],'exten':_0x44ed64['exten'],'priority':_0x7c8c0a[_0x544654('0x23')]+_0x4f9d8b['priority']+_0x80e6fe++,'VoiceExtensionId':_0x44ed64['VoiceExtensionId']}));typeof _0x44ed64[_0x544654('0x17')]!==_0x544654('0x15')&&(_0x39b507[_0x544654('0x42')](_0x44ed64['app'][_0x544654('0x39')]())>=0x0&&_0x44ed64[_0x544654('0x3c')]!==_0x544654('0x40')&&(_0x44ed64[_0x544654('0x17')]?(_0x197edf[_0x544654('0x2')]({'type':_0x44ed64[_0x544654('0x37')],'app':'ExecIf','appdata':'$[${XCALLY-MOTION-ANSWER}=0]?Answer','context':_0x44ed64[_0x544654('0x2d')],'exten':_0x44ed64[_0x544654('0x10')],'priority':_0x7c8c0a['length']+_0x4f9d8b[_0x544654('0x34')]+_0x80e6fe++,'VoiceExtensionId':_0x44ed64[_0x544654('0x24')]}),_0x197edf['push']({'type':_0x44ed64[_0x544654('0x37')],'app':_0x544654('0x18'),'appdata':_0x544654('0x29'),'context':_0x44ed64[_0x544654('0x2d')],'exten':_0x44ed64[_0x544654('0x10')],'priority':_0x7c8c0a[_0x544654('0x23')]+_0x4f9d8b[_0x544654('0x34')]+_0x80e6fe++,'VoiceExtensionId':_0x44ed64[_0x544654('0x24')]})):(_0x197edf['push']({'type':_0x44ed64[_0x544654('0x37')],'app':_0x544654('0x46'),'appdata':_0x544654('0xd'),'context':_0x44ed64[_0x544654('0x2d')],'exten':_0x44ed64[_0x544654('0x10')],'priority':_0x7c8c0a[_0x544654('0x23')]+_0x4f9d8b[_0x544654('0x34')]+_0x80e6fe++,'VoiceExtensionId':_0x44ed64[_0x544654('0x24')]}),_0x197edf['push']({'type':_0x44ed64[_0x544654('0x37')],'app':_0x544654('0x18'),'appdata':'XCALLY-MOTION-PROGRESS=1','context':_0x44ed64[_0x544654('0x2d')],'exten':_0x44ed64[_0x544654('0x10')],'priority':_0x7c8c0a[_0x544654('0x23')]+_0x4f9d8b[_0x544654('0x34')]+_0x80e6fe++,'VoiceExtensionId':_0x44ed64[_0x544654('0x24')]}))));for(let _0x161319=0x0;_0x161319<_0x7c8c0a[_0x544654('0x23')];_0x161319+=0x1){const _0x550114=_0x4f9d8b[_0x544654('0x34')]+_0x7c8c0a[_0x544654('0x23')],_0xeda908=_0x161319===_0x7c8c0a[_0x544654('0x23')]-0x1?_0x4f9d8b[_0x544654('0x34')]+_0x197edf[_0x544654('0x23')]+_0xd1abc4[_0x544654('0x23')]+0x2:_0x4f9d8b[_0x544654('0x34')]+_0x161319+0x1;_0x197edf[_0x544654('0x44')](_0x161319,0x0,{'type':_0x44ed64[_0x544654('0x37')],'app':'GotoIfTime','appdata':_0x7c8c0a[_0x161319]+'?'+_0x44ed64[_0x544654('0x2d')]+_0x544654('0x32')+_0x550114+':'+_0x44ed64[_0x544654('0x2d')]+',${EXTEN},'+_0xeda908,'exten':_0x44ed64[_0x544654('0x10')],'context':_0x44ed64[_0x544654('0x2d')],'priority':_0x4f9d8b[_0x544654('0x34')]+_0x161319,'VoiceExtensionId':_0x35213a[_0x53fdda][0x0][_0x544654('0x24')]});}_0x44ed64[_0x544654('0x34')]=_0x197edf[_0x544654('0x23')]?_[_0x544654('0x2e')](_0x197edf)['priority']+0x1:_0x4f9d8b[_0x544654('0x34')],_0x4f9d8b[_0x544654('0x34')]=(_0xd1abc4[_0x544654('0x23')]?_['last'](_0xd1abc4)[_0x544654('0x34')]:_0x44ed64['priority'])+0x1,_0x4f9d8b[_0x544654('0x28')]=_['concat'](_0x4f9d8b['extensions'],_0x197edf,[_0x44ed64],_0xd1abc4);}_0x4f9d8b['extensions'][_0x544654('0x2')]({'type':_0x35213a[_0x53fdda][0x0][_0x544654('0x37')],'app':_0x544654('0xa'),'exten':_0x35213a[_0x53fdda][0x0]['exten'],'context':_0x35213a[_0x53fdda][0x0][_0x544654('0x2d')],'priority':_0x4f9d8b[_0x544654('0x34')],'VoiceExtensionId':_0x35213a[_0x53fdda][0x0][_0x544654('0x24')]}),_0x4120e6[_0x544654('0x2')](_0x35213a[_0x53fdda][0x0][_0x544654('0x24')]),_0x10ba52=_[_0x544654('0x9')](_0x10ba52,_0x4f9d8b[_0x544654('0x28')]);}}return _0x2947d8['transaction'](function(_0x2d6d77){const _0x19030f=_0x544654;return _0x2947d8['models'][_0x19030f('0x1b')][_0x19030f('0x3a')]({'where':{'VoiceExtensionId':{[Op['in']]:_0x4120e6}},'transaction':_0x2d6d77})[_0x19030f('0x38')](function(){const _0x434d72=_0x19030f;return _0x2947d8[_0x434d72('0x7')][_0x434d72('0x1b')][_0x434d72('0x2a')](_[_0x434d72('0x1e')](_0x10ba52,_0x434d72('0x34')),{'transaction':_0x2d6d77});});});})[_0x20c34b('0x21')](function(_0x45e71c){const _0x4c7a18=_0x20c34b;console[_0x4c7a18('0x3f')](_0x45e71c);});}exports[_0x483084('0x22')]=rewrite; \ No newline at end of file +const a991_0x17cd=['answer','ExecIf','queue','playback','MONITOR_OPTIONS=ab','_XCALLY_MIXMONITOR_FORMAT=','CDR(destination)=','cutdigits','sortBy','extensions','Set','CDR(tag)=','callerID','destroy','undefined','XCALLY-MOTION-ANSWER=1','_XCALLY_MIXMONITOR_UNIQUEID=${UNIQUEID}','filter','intervals','none','priority','sequelize','CDR(routeid)=','app','CDR(type)=%s','util','XCALLY-MOTION-PROGRESS=1','updatedAt',',${EXTEN},','appType','tag','interval','models','extension','toLowerCase','GotoIfTime','length','findAll','outbound','literal','format','VoiceExtensionId','${EXTEN:','recordingFormat','):Goto(','XCALLY-MOTION-ANSWER=0','then','push','groupBy','map','context','$[${XCALLY-MOTION-PROGRESS}=0]?Progress','bulkCreate','CAST(priority\x20AS\x20UNSIGNED)','CDR(prefix)=${EXTEN:0:','$[${LEN(${CDR(prefix)})}\x20>\x200]?Goto(','splice','IntervalId','VoiceExtension','exten','*,*,*,*','rewrite','concat','$[${LEN(${PREFIX-CALLERIDALL})}\x20>\x200]?Set(CALLERID(all)=${PREFIX-CALLERIDALL}):Set(CALLERID(all)=','indexOf','type','CDR(prefix)=noprefix','find','last','$[${LEN(${PREFIX-CALLERIDALL})}\x20>\x200]?Set(CALLERID(all)=${PREFIX-CALLERIDALL}):NoOp(No\x20number\x20available)','XCALLY-MOTION-PROGRESS=0','uniq'];(function(_0x518df2,_0x46c16f){const _0x17cd2b=function(_0x3a467f){while(--_0x3a467f){_0x518df2['push'](_0x518df2['shift']());}};_0x17cd2b(++_0x46c16f);}(a991_0x17cd,0xa0));const a991_0x3a46=function(_0x518df2,_0x46c16f){_0x518df2=_0x518df2-0x1a4;let _0x17cd2b=a991_0x17cd[_0x518df2];return _0x17cd2b;};const a991_0x1a720e=a991_0x3a46;'use strict';const _=require('lodash'),util=require(a991_0x1a720e(0x1ad)),{Op}=require(a991_0x1a720e(0x1a9));function rewrite(_0x2c8da6,_0x5c1310){const _0x28509c=a991_0x1a720e,_0x3d7279=this;return _0x2c8da6[_0x28509c(0x1b4)]['Interval'][_0x28509c(0x1b9)]({'raw':!![]})['then'](function(_0x20564b){const _0x46a59f=_0x28509c;return _0x3d7279[_0x46a59f(0x1a6)]=_0x20564b,_0x2c8da6['models'][_0x46a59f(0x1ce)]['findAll']({'where':{'IntervalId':_0x5c1310[_0x46a59f(0x1cd)]},'raw':!![]});})[_0x28509c(0x1c2)](function(_0x35d578){const _0x22029=_0x28509c;return _0x2c8da6[_0x22029(0x1b4)][_0x22029(0x1ce)][_0x22029(0x1b9)]({'where':{'exten':{[Op['in']]:_[_0x22029(0x1db)](_['map'](_0x35d578,_0x22029(0x1cf)))}},'order':_0x2c8da6[_0x22029(0x1bb)](_0x22029(0x1c9)),'raw':!![]});})['then'](function(_0x279132){const _0x2435e4=_0x28509c,_0x29ca5d=_[_0x2435e4(0x1a5)](_0x279132,{'priority':'1'}),_0x188ddc=_[_0x2435e4(0x1a5)](_0x279132,{'isApp':0x1}),_0xed4bb9=_[_0x2435e4(0x1c4)](_0x188ddc,_0x2435e4(0x1cf)),_0x48f483=[_0x2435e4(0x1de),_0x2435e4(0x1df)],_0x349883=[];let _0x6b0b14=[];for(const _0x360cf5 in _0xed4bb9){if(typeof _0xed4bb9[_0x360cf5]!==_0x2435e4(0x1ea)){_0x3d7279[_0x2435e4(0x1a8)]=0x2,_0x3d7279[_0x2435e4(0x1e5)]=[],_0x3d7279['extension']=_[_0x2435e4(0x1d7)](_0x29ca5d,{'exten':_0xed4bb9[_0x360cf5][0x0][_0x2435e4(0x1cf)]}),_0x3d7279[_0x2435e4(0x1e5)][_0x2435e4(0x1c3)]({'type':_0xed4bb9[_0x360cf5][0x0]['type'],'app':_0x2435e4(0x1e6),'appdata':util[_0x2435e4(0x1bc)](_0x2435e4(0x1ac),_0xed4bb9[_0x360cf5][0x0][_0x2435e4(0x1d5)]),'context':_0xed4bb9[_0x360cf5][0x0][_0x2435e4(0x1c6)],'exten':_0xed4bb9[_0x360cf5][0x0][_0x2435e4(0x1cf)],'priority':_0x3d7279['priority']++,'VoiceExtensionId':_0xed4bb9[_0x360cf5][0x0][_0x2435e4(0x1bd)]});if(_0xed4bb9[_0x360cf5][0x0][_0x2435e4(0x1d5)]==='outbound'){_0x3d7279[_0x2435e4(0x1b5)]&&_0x3d7279[_0x2435e4(0x1e5)][_0x2435e4(0x1c3)]({'type':_0xed4bb9[_0x360cf5][0x0][_0x2435e4(0x1d5)],'app':_0x2435e4(0x1e6),'appdata':_0x2435e4(0x1e2)+(_0x3d7279[_0x2435e4(0x1b5)]['cutdigits']?_0x2435e4(0x1be)+_0x3d7279['extension'][_0x2435e4(0x1e3)]+'}':'${EXTEN}'),'context':_0xed4bb9[_0x360cf5][0x0][_0x2435e4(0x1c6)],'exten':_0xed4bb9[_0x360cf5][0x0]['exten'],'priority':_0x3d7279[_0x2435e4(0x1a8)]++,'VoiceExtensionId':_0xed4bb9[_0x360cf5][0x0][_0x2435e4(0x1bd)]});_0x3d7279[_0x2435e4(0x1e5)][_0x2435e4(0x1c3)]({'type':_0xed4bb9[_0x360cf5][0x0]['type'],'app':_0x2435e4(0x1e6),'appdata':_0x2435e4(0x1aa)+_0xed4bb9[_0x360cf5][0x0][_0x2435e4(0x1bd)],'context':_0xed4bb9[_0x360cf5][0x0][_0x2435e4(0x1c6)],'exten':_0xed4bb9[_0x360cf5][0x0]['exten'],'priority':_0x3d7279['priority']++,'VoiceExtensionId':_0xed4bb9[_0x360cf5][0x0][_0x2435e4(0x1bd)]});const _0x9a8a33=_0x3d7279[_0x2435e4(0x1a8)]++;_0x3d7279[_0x2435e4(0x1e5)][_0x2435e4(0x1c3)]({'type':_0xed4bb9[_0x360cf5][0x0]['type'],'app':_0x2435e4(0x1dd),'appdata':_0x2435e4(0x1cb)+(_0x9a8a33+0x2)+_0x2435e4(0x1c0)+(_0x9a8a33+0x1)+')','context':_0xed4bb9[_0x360cf5][0x0][_0x2435e4(0x1c6)],'exten':_0xed4bb9[_0x360cf5][0x0][_0x2435e4(0x1cf)],'priority':_0x9a8a33,'VoiceExtensionId':_0xed4bb9[_0x360cf5][0x0]['VoiceExtensionId']}),_0x3d7279[_0x2435e4(0x1b5)]&&_0x3d7279[_0x2435e4(0x1e5)]['push']({'type':_0xed4bb9[_0x360cf5][0x0][_0x2435e4(0x1d5)],'app':_0x2435e4(0x1e6),'appdata':_0x3d7279['extension']['cutdigits']?_0x2435e4(0x1ca)+_0x3d7279[_0x2435e4(0x1b5)]['cutdigits']+'}':_0x2435e4(0x1d6),'context':_0xed4bb9[_0x360cf5][0x0][_0x2435e4(0x1c6)],'exten':_0xed4bb9[_0x360cf5][0x0][_0x2435e4(0x1cf)],'priority':_0x3d7279['priority']++,'VoiceExtensionId':_0xed4bb9[_0x360cf5][0x0]['VoiceExtensionId']}),_0x3d7279[_0x2435e4(0x1e5)][_0x2435e4(0x1c3)]({'type':_0xed4bb9[_0x360cf5][0x0][_0x2435e4(0x1d5)],'app':_0x2435e4(0x1e6),'appdata':'outboundrouteid='+_0xed4bb9[_0x360cf5][0x0][_0x2435e4(0x1bd)],'context':_0xed4bb9[_0x360cf5][0x0][_0x2435e4(0x1c6)],'exten':_0xed4bb9[_0x360cf5][0x0][_0x2435e4(0x1cf)],'priority':_0x3d7279[_0x2435e4(0x1a8)]++,'VoiceExtensionId':_0xed4bb9[_0x360cf5][0x0][_0x2435e4(0x1bd)]}),_0x3d7279[_0x2435e4(0x1b5)]&&typeof _0x3d7279[_0x2435e4(0x1b5)][_0x2435e4(0x1bf)]!==_0x2435e4(0x1ea)&&_0x3d7279[_0x2435e4(0x1b5)][_0x2435e4(0x1bf)]!==_0x2435e4(0x1a7)&&(_0x3d7279[_0x2435e4(0x1e5)][_0x2435e4(0x1c3)]({'type':_0xed4bb9[_0x360cf5][0x0][_0x2435e4(0x1d5)],'app':_0x2435e4(0x1e6),'appdata':_0x2435e4(0x1a4),'context':_0xed4bb9[_0x360cf5][0x0][_0x2435e4(0x1c6)],'exten':_0xed4bb9[_0x360cf5][0x0][_0x2435e4(0x1cf)],'priority':_0x3d7279[_0x2435e4(0x1a8)]++,'VoiceExtensionId':_0xed4bb9[_0x360cf5][0x0]['VoiceExtensionId']}),_0x3d7279[_0x2435e4(0x1e5)][_0x2435e4(0x1c3)]({'type':_0xed4bb9[_0x360cf5][0x0]['type'],'app':_0x2435e4(0x1e6),'appdata':_0x2435e4(0x1e1)+_0x3d7279[_0x2435e4(0x1b5)]['recordingFormat']||'wav','context':_0xed4bb9[_0x360cf5][0x0]['context'],'exten':_0xed4bb9[_0x360cf5][0x0][_0x2435e4(0x1cf)],'priority':_0x3d7279[_0x2435e4(0x1a8)]++,'VoiceExtensionId':_0xed4bb9[_0x360cf5][0x0][_0x2435e4(0x1bd)]}));}_0x3d7279[_0x2435e4(0x1e5)][_0x2435e4(0x1c3)]({'type':_0xed4bb9[_0x360cf5][0x0][_0x2435e4(0x1d5)],'app':'Set','appdata':_0x2435e4(0x1c1),'context':_0xed4bb9[_0x360cf5][0x0][_0x2435e4(0x1c6)],'exten':_0xed4bb9[_0x360cf5][0x0][_0x2435e4(0x1cf)],'priority':_0x3d7279[_0x2435e4(0x1a8)]++,'VoiceExtensionId':_0xed4bb9[_0x360cf5][0x0][_0x2435e4(0x1bd)]}),_0x3d7279[_0x2435e4(0x1e5)][_0x2435e4(0x1c3)]({'type':_0xed4bb9[_0x360cf5][0x0][_0x2435e4(0x1d5)],'app':_0x2435e4(0x1e6),'appdata':_0x2435e4(0x1da),'context':_0xed4bb9[_0x360cf5][0x0][_0x2435e4(0x1c6)],'exten':_0xed4bb9[_0x360cf5][0x0][_0x2435e4(0x1cf)],'priority':_0x3d7279[_0x2435e4(0x1a8)]++,'VoiceExtensionId':_0xed4bb9[_0x360cf5][0x0][_0x2435e4(0x1bd)]}),_0x3d7279[_0x2435e4(0x1e5)][_0x2435e4(0x1c3)]({'type':_0xed4bb9[_0x360cf5][0x0]['type'],'app':_0x2435e4(0x1e6),'appdata':_0x2435e4(0x1e0),'context':_0xed4bb9[_0x360cf5][0x0][_0x2435e4(0x1c6)],'exten':_0xed4bb9[_0x360cf5][0x0][_0x2435e4(0x1cf)],'priority':_0x3d7279[_0x2435e4(0x1a8)]++,'VoiceExtensionId':_0xed4bb9[_0x360cf5][0x0][_0x2435e4(0x1bd)]});for(let _0x2f96c2=0x0,_0x3cae00=0x0;_0x2f96c2<_0xed4bb9[_0x360cf5]['length'];_0x2f96c2+=0x1,_0x3cae00=0x0){const _0x2c5023=_0xed4bb9[_0x360cf5][_0x2f96c2];_0x2c5023[_0x2435e4(0x1d5)]&&(_0x2c5023[_0x2435e4(0x1d5)]=_0x2c5023[_0x2435e4(0x1d5)][_0x2435e4(0x1b6)]());const _0x3cf60c=[],_0x4a68e2=[];delete _0x2c5023['id'],delete _0x2c5023['createdAt'],delete _0x2c5023[_0x2435e4(0x1af)];const _0x34a1ba=_0x2c5023[_0x2435e4(0x1b3)]!==_0x2435e4(0x1d0)?[_0x2c5023['interval']]:_0x2c5023[_0x2435e4(0x1cd)]?_[_0x2435e4(0x1c5)](_[_0x2435e4(0x1a5)](_0x3d7279[_0x2435e4(0x1a6)],{'IntervalId':_0x2c5023[_0x2435e4(0x1cd)]}),_0x2435e4(0x1b3)):[];typeof _0x2c5023[_0x2435e4(0x1b2)]!=='undefined'&&(_0x2c5023[_0x2435e4(0x1b2)]&&_0x2c5023[_0x2435e4(0x1b2)]!=='--'&&_0x3cf60c[_0x2435e4(0x1c3)]({'type':_0x2c5023[_0x2435e4(0x1d5)],'app':'Set','appdata':_0x2435e4(0x1e7)+_0x2c5023[_0x2435e4(0x1b2)],'context':_0x2c5023[_0x2435e4(0x1c6)],'exten':_0x2c5023['exten'],'priority':_0x34a1ba[_0x2435e4(0x1b8)]+_0x3d7279[_0x2435e4(0x1a8)]+_0x3cae00++,'VoiceExtensionId':_0x2c5023[_0x2435e4(0x1bd)]}));_0x2c5023[_0x2435e4(0x1d5)]===_0x2435e4(0x1ba)&&typeof _0x2c5023[_0x2435e4(0x1e8)]!=='undefined'&&(_0x2c5023[_0x2435e4(0x1e8)]?_0x3cf60c['push']({'type':_0x2c5023[_0x2435e4(0x1d5)],'app':'ExecIf','appdata':_0x2435e4(0x1d3)+_0x2c5023['callerID']+')','context':_0x2c5023[_0x2435e4(0x1c6)],'exten':_0x2c5023[_0x2435e4(0x1cf)],'priority':_0x34a1ba['length']+_0x3d7279[_0x2435e4(0x1a8)]+_0x3cae00++,'VoiceExtensionId':_0x2c5023[_0x2435e4(0x1bd)]}):_0x3cf60c[_0x2435e4(0x1c3)]({'type':_0x2c5023[_0x2435e4(0x1d5)],'app':_0x2435e4(0x1dd),'appdata':_0x2435e4(0x1d9),'context':_0x2c5023['context'],'exten':_0x2c5023[_0x2435e4(0x1cf)],'priority':_0x34a1ba['length']+_0x3d7279[_0x2435e4(0x1a8)]+_0x3cae00++,'VoiceExtensionId':_0x2c5023[_0x2435e4(0x1bd)]}));typeof _0x2c5023[_0x2435e4(0x1dc)]!=='undefined'&&(_0x48f483[_0x2435e4(0x1d4)](_0x2c5023[_0x2435e4(0x1ab)][_0x2435e4(0x1b6)]())>=0x0&&_0x2c5023[_0x2435e4(0x1b1)]!=='custom'&&(_0x2c5023[_0x2435e4(0x1dc)]?(_0x3cf60c[_0x2435e4(0x1c3)]({'type':_0x2c5023[_0x2435e4(0x1d5)],'app':_0x2435e4(0x1dd),'appdata':'$[${XCALLY-MOTION-ANSWER}=0]?Answer','context':_0x2c5023['context'],'exten':_0x2c5023[_0x2435e4(0x1cf)],'priority':_0x34a1ba['length']+_0x3d7279[_0x2435e4(0x1a8)]+_0x3cae00++,'VoiceExtensionId':_0x2c5023[_0x2435e4(0x1bd)]}),_0x3cf60c[_0x2435e4(0x1c3)]({'type':_0x2c5023[_0x2435e4(0x1d5)],'app':_0x2435e4(0x1e6),'appdata':_0x2435e4(0x1eb),'context':_0x2c5023[_0x2435e4(0x1c6)],'exten':_0x2c5023[_0x2435e4(0x1cf)],'priority':_0x34a1ba[_0x2435e4(0x1b8)]+_0x3d7279['priority']+_0x3cae00++,'VoiceExtensionId':_0x2c5023['VoiceExtensionId']})):(_0x3cf60c[_0x2435e4(0x1c3)]({'type':_0x2c5023['type'],'app':_0x2435e4(0x1dd),'appdata':_0x2435e4(0x1c7),'context':_0x2c5023['context'],'exten':_0x2c5023[_0x2435e4(0x1cf)],'priority':_0x34a1ba[_0x2435e4(0x1b8)]+_0x3d7279[_0x2435e4(0x1a8)]+_0x3cae00++,'VoiceExtensionId':_0x2c5023[_0x2435e4(0x1bd)]}),_0x3cf60c[_0x2435e4(0x1c3)]({'type':_0x2c5023['type'],'app':_0x2435e4(0x1e6),'appdata':_0x2435e4(0x1ae),'context':_0x2c5023[_0x2435e4(0x1c6)],'exten':_0x2c5023[_0x2435e4(0x1cf)],'priority':_0x34a1ba[_0x2435e4(0x1b8)]+_0x3d7279['priority']+_0x3cae00++,'VoiceExtensionId':_0x2c5023[_0x2435e4(0x1bd)]}))));for(let _0x29251d=0x0;_0x29251d<_0x34a1ba['length'];_0x29251d+=0x1){const _0xa01be0=_0x3d7279['priority']+_0x34a1ba[_0x2435e4(0x1b8)],_0x3d9c55=_0x29251d===_0x34a1ba[_0x2435e4(0x1b8)]-0x1?_0x3d7279[_0x2435e4(0x1a8)]+_0x3cf60c[_0x2435e4(0x1b8)]+_0x4a68e2['length']+0x2:_0x3d7279[_0x2435e4(0x1a8)]+_0x29251d+0x1;_0x3cf60c[_0x2435e4(0x1cc)](_0x29251d,0x0,{'type':_0x2c5023[_0x2435e4(0x1d5)],'app':_0x2435e4(0x1b7),'appdata':_0x34a1ba[_0x29251d]+'?'+_0x2c5023[_0x2435e4(0x1c6)]+',${EXTEN},'+_0xa01be0+':'+_0x2c5023[_0x2435e4(0x1c6)]+_0x2435e4(0x1b0)+_0x3d9c55,'exten':_0x2c5023[_0x2435e4(0x1cf)],'context':_0x2c5023[_0x2435e4(0x1c6)],'priority':_0x3d7279[_0x2435e4(0x1a8)]+_0x29251d,'VoiceExtensionId':_0xed4bb9[_0x360cf5][0x0][_0x2435e4(0x1bd)]});}_0x2c5023[_0x2435e4(0x1a8)]=_0x3cf60c[_0x2435e4(0x1b8)]?_['last'](_0x3cf60c)[_0x2435e4(0x1a8)]+0x1:_0x3d7279[_0x2435e4(0x1a8)],_0x3d7279['priority']=(_0x4a68e2['length']?_[_0x2435e4(0x1d8)](_0x4a68e2)['priority']:_0x2c5023['priority'])+0x1,_0x3d7279[_0x2435e4(0x1e5)]=_[_0x2435e4(0x1d2)](_0x3d7279['extensions'],_0x3cf60c,[_0x2c5023],_0x4a68e2);}_0x3d7279['extensions'][_0x2435e4(0x1c3)]({'type':_0xed4bb9[_0x360cf5][0x0][_0x2435e4(0x1d5)],'app':'Hangup','exten':_0xed4bb9[_0x360cf5][0x0][_0x2435e4(0x1cf)],'context':_0xed4bb9[_0x360cf5][0x0][_0x2435e4(0x1c6)],'priority':_0x3d7279[_0x2435e4(0x1a8)],'VoiceExtensionId':_0xed4bb9[_0x360cf5][0x0][_0x2435e4(0x1bd)]}),_0x349883[_0x2435e4(0x1c3)](_0xed4bb9[_0x360cf5][0x0]['VoiceExtensionId']),_0x6b0b14=_[_0x2435e4(0x1d2)](_0x6b0b14,_0x3d7279[_0x2435e4(0x1e5)]);}}return _0x2c8da6['transaction'](function(_0x2f3fd3){const _0x2ae5c7=_0x2435e4;return _0x2c8da6[_0x2ae5c7(0x1b4)][_0x2ae5c7(0x1ce)][_0x2ae5c7(0x1e9)]({'where':{'VoiceExtensionId':{[Op['in']]:_0x349883}},'transaction':_0x2f3fd3})[_0x2ae5c7(0x1c2)](function(){const _0x4f7d96=_0x2ae5c7;return _0x2c8da6['models'][_0x4f7d96(0x1ce)][_0x4f7d96(0x1c8)](_[_0x4f7d96(0x1e4)](_0x6b0b14,_0x4f7d96(0x1a8)),{'transaction':_0x2f3fd3});});});})['catch'](function(_0x4d3976){console['error'](_0x4d3976);});}exports[a991_0x1a720e(0x1d1)]=rewrite; \ No newline at end of file diff --git a/server/components/import/cm/csv2.js b/server/components/import/cm/csv2.js index 03db295..257d7fe 100644 --- a/server/components/import/cm/csv2.js +++ b/server/components/import/cm/csv2.js @@ -1 +1 @@ -const a830_0x2384=['recallme','argv','finish','createdAt','send','mysql2/promise','voice_queues_has_cm_blacklists','data','email\x20wrong\x20format','SIGINT','email','error','phone','cm_contacts.scheduledat','.csv','password','host','join','cm_hopper_black','query','database','cm_contacts.updatedAt','COMPLETE','emit','cm_contacts.ListId','options','ListId\x20=\x20?','\x20=\x20','voice_queues_has_cm_lists','createConnection','appendFileSync','VoiceQueueId','queries:\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20','trim','cm_contacts.priority','.id\x20=\x20','into','ListId','insert','isNaN','contact:import:','where',',\x20scheduledAt\x20=\x20NOW()','cm_contacts.phone',',\x0a\x20bodyString,\x20agentsString','moment','writeFileSync','isValid','step','cm_contacts.createdAt\x20=\x20?','campaigns_has_cm_blacklists','errors','path','../../../mysqldb/infile-stream-factory','select','papaparse','cm_hopper','push','UserId','abort','socket_timestamp','SystemError','stringify','cm_contacts.id','arguments\x20\x20\x20','../../../rediscache','.CmListId','Received\x20SIGINT','CompanyId','exit','min_id','replace','fields','.CmListId\x20=\x20?','end','cm_contacts.phone\x20NOT\x20IN\x20(?)','field','format','updatedAt','\x22always\x22','priority','id\x20IN\x20?','code','voice_queues','validator','util','dirname','isNumber','from','CSV\x20Parser\x20error:\x20','DROP\x20TABLE\x20','log','cm_contacts.ListId\x20=\x20','dialectOptions','CSV2\x20Starting:\x20fullfilepath=','\x20LIKE\x20cm_contacts;','handleQuery:\x20','fromQuery','all','map','existsSync','cm_contacts','scheduledat\x20wrong\x20format\x20(YYYY-MM-DD\x20HH:mm:ss)','rows','duplicates','\x20not\x20specified','body\x20id\x20mandatory','squel','parse','length','message','campaigns_has_cm_lists','dateOfBirth','lodash','ContactId','includes','CampaignId','sequelize','ListId\x20is\x20mandatory','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','stack','phone\x20is\x20mandatory','cm_contacts.createdAt',')\x20NOT\x20IN\x20?','start','binding','YYYY-MM-DD\x20HH:mm:ss','scheduledat','deletedAt\x20IS\x20NULL','function','group','affectedRows','timezone','SystemRow','keys','isArray','firstName\x20is\x20mandatory','toString','../../../globals','cm_contacts.UserId','complete'];(function(_0x2672bf,_0x238461){const _0x2349cf=function(_0x5ee312){while(--_0x5ee312){_0x2672bf['push'](_0x2672bf['shift']());}};_0x2349cf(++_0x238461);}(a830_0x2384,0x143));const a830_0x2349=function(_0x2672bf,_0x238461){_0x2672bf=_0x2672bf-0x0;let _0x2349cf=a830_0x2384[_0x2672bf];return _0x2349cf;};const _0x45b377=a830_0x2349;'use strict';require(_0x45b377('0x61'));const fs=require('fs'),path=require(_0x45b377('0xb')),_=require(_0x45b377('0x48')),Papa=require(_0x45b377('0xe')),util=require(_0x45b377('0x2c')),mysql2=require(_0x45b377('0x69')),moment=require(_0x45b377('0x4')),squel=require(_0x45b377('0x42')),db=require('../../../mysqldb')['db'],{infileStreamFactory}=require(_0x45b377('0xc')),{getSocket}=require(_0x45b377('0x18')),socket=getSocket(),{isEmail}=require(_0x45b377('0x2b')),stats={'finish':![],'errors':[],'rows':0x0,'affectedRows':0x0},results=[];let stopped=![];const NOW=moment()[_0x45b377('0x24')]('YYYY-MM-DD\x20HH:mm:ss');function selectNotIn(_0x5ee312,_0x4c608f,_0x3250e7,_0x199b38,_0x51ea04){const _0x30ca0b=_0x45b377;return squel[_0x30ca0b('0xd')]()[_0x30ca0b('0x23')](_0x30ca0b('0x70'))[_0x30ca0b('0x2f')](_0x199b38)[_0x30ca0b('0x75')](_0x4c608f,null,_0x4c608f+'.id\x20=\x20'+_0x199b38+'.'+_0x3250e7)[_0x30ca0b('0x0')](_0x199b38+'.'+_0x3250e7+_0x30ca0b('0x7f')+_0x5ee312+'.'+_0x3250e7)[_0x30ca0b('0x0')](_0x4c608f+'.dialCheckDuplicateType\x20IN\x20('+_0x51ea04[_0x30ca0b('0x75')]()+')');}function sendMessage(_0x1c17a4){const _0x5d7b25=_0x45b377,_0x3a39e0=typeof _0x1c17a4==='string'?_0x1c17a4:JSON[_0x5d7b25('0x15')](_0x1c17a4);typeof process[_0x5d7b25('0x68')]===_0x5d7b25('0x58')?process['send'](_0x3a39e0):console[_0x5d7b25('0x32')](_0x3a39e0);}function insertCmHopper(_0x439c18,_0x3d3b7f,_0x5b7530,_0x59b6a6,_0x10db72){const _0x140562=_0x45b377,_0x55a41d=[_0x140562('0x2'),_0x140562('0x71'),_0x140562('0x16'),_0x140562('0x7c'),_0x3d3b7f+'.'+_0x59b6a6,_0x140562('0x51'),_0x140562('0x79'),_0x140562('0x86'),_0x140562('0x62'),'\x22'+_0x10db72+'\x22'];return squel[_0x140562('0x8a')]()[_0x140562('0x88')](_0x140562('0xf'))[_0x140562('0x38')]([_0x140562('0x70'),_0x140562('0x56'),'ContactId',_0x140562('0x89'),_0x59b6a6,_0x140562('0x67'),'updatedAt',_0x140562('0x27'),'UserId',_0x140562('0x64')],squel[_0x140562('0xd')]()[_0x140562('0x1f')](_0x55a41d)[_0x140562('0x2f')](_0x3d3b7f)[_0x140562('0x75')](_0x140562('0x3c'),null,_0x140562('0x33')+_0x3d3b7f+'.CmListId')['join'](_0x5b7530,null,_0x5b7530+'.id\x20=\x20'+_0x3d3b7f+'.'+_0x59b6a6)[_0x140562('0x0')](_0x3d3b7f+_0x140562('0x20'),_0x439c18)['where'](_0x140562('0x8'),NOW)[_0x140562('0x0')]('cm_contacts.phone\x20NOT\x20IN\x20(?)',selectNotIn(_0x3d3b7f,_0x5b7530,_0x59b6a6,_0x140562('0xf'),[_0x140562('0x26'),'\x22onlyIfOpen\x22']))[_0x140562('0x0')](_0x140562('0x22'),selectNotIn(_0x3d3b7f,_0x5b7530,_0x59b6a6,_0x140562('0xf'),[_0x140562('0x26')])))['toString']();}function insertCmHopperBlack(_0x3940fc,_0x3b07c7,_0x5b3e7b,_0x57dd4e){const _0x507c06=_0x45b377,_0x164170=['cm_contacts.phone',_0x507c06('0x16'),_0x507c06('0x7c'),_0x3b07c7+'.'+_0x57dd4e,'cm_contacts.createdAt',_0x507c06('0x79')];return squel[_0x507c06('0x8a')]()[_0x507c06('0x88')](_0x507c06('0x76'))[_0x507c06('0x38')](['phone',_0x507c06('0x49'),'ListId',_0x57dd4e,_0x507c06('0x67'),_0x507c06('0x25')],squel['select']()[_0x507c06('0x1f')](_0x164170)['from'](_0x3b07c7)[_0x507c06('0x75')](_0x507c06('0x3c'),null,_0x507c06('0x33')+_0x3b07c7+_0x507c06('0x19'))[_0x507c06('0x75')](_0x5b3e7b,null,_0x5b3e7b+_0x507c06('0x87')+_0x3b07c7+'.'+_0x57dd4e)[_0x507c06('0x0')](_0x3b07c7+'.CmListId\x20=\x20?',_0x3940fc)[_0x507c06('0x0')](_0x507c06('0x8'),NOW)[_0x507c06('0x0')]('cm_contacts.phone\x20NOT\x20IN\x20(?)',squel[_0x507c06('0xd')]()[_0x507c06('0x23')]('phone')[_0x507c06('0x2f')](_0x507c06('0x76'))['where'](_0x507c06('0x7e'),_0x3940fc)['where'](_0x57dd4e+_0x507c06('0x7f')+_0x3b07c7+'.'+_0x57dd4e)))[_0x507c06('0x60')]();}function insertCmContact(_0x413a63,_0x26e319,_0x2aef02,_0x17e8f1){const _0x4951a6=_0x45b377,_0x1602c1=_['concat'](_[_0x4951a6('0x5d')](_0x17e8f1),['ListId',_0x4951a6('0x1b'),'createdAt','updatedAt']);return squel[_0x4951a6('0x8a')]()[_0x4951a6('0x88')]('cm_contacts')[_0x4951a6('0x38')](_0x1602c1,squel[_0x4951a6('0xd')]()['fields'](_0x1602c1)[_0x4951a6('0x2f')](_0x26e319)[_0x4951a6('0x0')]('('+_0x2aef02[_0x4951a6('0x75')](',')+_0x4951a6('0x52'),squel['select']()[_0x4951a6('0x1f')](_0x2aef02)[_0x4951a6('0x2f')](_0x4951a6('0x3c'))[_0x4951a6('0x0')](_0x4951a6('0x7e'),_0x413a63)[_0x4951a6('0x0')](_0x4951a6('0x57')))[_0x4951a6('0x0')](_0x4951a6('0x28'),squel[_0x4951a6('0xd')]()[_0x4951a6('0x23')]('MIN(id)',_0x4951a6('0x1d'))['from'](_0x26e319)[_0x4951a6('0x59')](_0x2aef02[_0x4951a6('0x75')](','))))[_0x4951a6('0x60')]();}function handleStop(){const _0xbb32cd=_0x45b377;console[_0xbb32cd('0x32')](_0xbb32cd('0x1a')),stopped=!![];}function handleUncaughtException(_0x5e5908){const _0x21f5b0=_0x45b377;console[_0x21f5b0('0x6f')](_0x5e5908[_0x21f5b0('0x45')]);throw _0x5e5908;}function handleError(_0x475a58,_0x2435c0){const _0x4bc91f=_0x45b377;stats['errors'][_0x4bc91f('0x10')]({'name':_0x2435c0[_0x4bc91f('0x29')],'message':_0x2435c0[_0x4bc91f('0x45')],'row':_0x475a58});}async function lowLevelMySQL2Query(_0x15d92a){const _0x22b6dd=_0x45b377,_0x2d0932=db['sequelize']['config'],_0x4a7bd2={'host':_0x2d0932[_0x22b6dd('0x74')],'port':_0x2d0932['port'],'user':_0x2d0932['username'],'password':_0x2d0932[_0x22b6dd('0x73')],'database':_0x2d0932[_0x22b6dd('0x78')],'timezone':db[_0x22b6dd('0x4c')][_0x22b6dd('0x7d')][_0x22b6dd('0x5b')],'bigNumberStrings':![],'supportBigNumbers':!![],..._0x2d0932[_0x22b6dd('0x34')]},_0x4d90f5=await mysql2[_0x22b6dd('0x81')](_0x4a7bd2),[_0x2cbe38,_0x2b654b]=await _0x4d90f5[_0x22b6dd('0x77')]({'sql':_0x15d92a,'infileStreamFactory':infileStreamFactory});return await _0x4d90f5[_0x22b6dd('0x21')](),{'affectedRows':_0x2cbe38[_0x22b6dd('0x5a')],'rows':_0x2cbe38,'fields':_0x2b654b};}async function handleQuery(_0x1a897e,_0x1fde86=![]){const _0x4b730b=_0x45b377;try{if(_0x1fde86){const {affectedRows:_0x19bdb0}=await lowLevelMySQL2Query(_0x1a897e);results['push'](_0x19bdb0);}else{const [_0x351e67]=await db[_0x4b730b('0x4c')][_0x4b730b('0x77')](_0x1a897e);results[_0x4b730b('0x10')](_0x351e67);}}catch(_0x274828){console['error'](_0x4b730b('0x37')+_0x274828['message'],_0x274828[_0x4b730b('0x4f')],_0x1a897e);throw _0x274828;}}function main(_0x604722,_0x68d9dd,_0x1ca920,_0x38f5b3){const _0x144ef6=_0x45b377;sendMessage(_0x144ef6('0x53'));const _0x28dc85=_0x68d9dd[_0x144ef6('0x54')],_0x793a7c=_0x68d9dd[_0x144ef6('0x13')],_0x2806fc=path['join'](path[_0x144ef6('0x2d')](_0x604722),_0x793a7c+_0x144ef6('0x72')),_0x202eec=_[_0x144ef6('0x5d')](_0x28dc85)['join']();fs[_0x144ef6('0x5')](_0x2806fc,_0x202eec+'\x0a'),Papa['parse'](fs['createReadStream'](_0x604722),{'header':!![],'skipEmptyLines':!![],'step':function(_0x321194,_0xdb3029){const _0x2cf298=_0x144ef6;let _0x41d452=0x0,_0x15ec68=[];const _0x54d64c=Array[_0x2cf298('0x5e')](_0x321194[_0x2cf298('0x6b')])?_0x321194[_0x2cf298('0x6b')]:[_0x321194[_0x2cf298('0x6b')]];try{for(_0x41d452=0x0,_0x15ec68=[];_0x41d452<_0x54d64c[_0x2cf298('0x44')];_0x41d452++){stats[_0x2cf298('0x3e')]+=0x1;if(_0x321194[_0x2cf298('0xa')][_0x41d452])handleError(_0x54d64c[_0x41d452],_0x321194['errors'][_0x41d452]);else{const _0x448f6a=[];for(const _0x3a4a2e in _0x28dc85){if(typeof _0x28dc85[_0x3a4a2e]!=='undefined'){if(_0x54d64c[_0x41d452][_0x28dc85[_0x3a4a2e]]){let _0x46b91c=_[_0x2cf298('0x85')](_0x54d64c[_0x41d452][_0x28dc85[_0x3a4a2e]][_0x2cf298('0x1e')](/"/g,'\x27'));switch(_0x3a4a2e){case _0x2cf298('0x56'):{const _0x303918=moment(_0x46b91c,_0x2cf298('0x55'),!![]);_0x303918[_0x2cf298('0x6')]()?_0x15ec68[_0x2cf298('0x10')]('\x22'+_0x46b91c+'\x22'):_0x448f6a[_0x2cf298('0x10')](_0x2cf298('0x3d'));}break;case'priority':{const _0x83b662=parseInt(_0x46b91c);_0x46b91c=_[_0x2cf298('0x8b')](_0x83b662)||_0x83b662<0x0||_0x83b662>0x4?_0x38f5b3?0x3:0x2:_0x83b662,_0x15ec68[_0x2cf298('0x10')]('\x22'+_0x46b91c+'\x22');}break;case _0x2cf298('0x11'):{const _0x1b4c90=parseInt(_0x46b91c);_[_0x2cf298('0x2e')](_0x1b4c90)&&_[_0x2cf298('0x4a')](_0x1ca920,_0x1b4c90)?_0x15ec68['push']('\x22'+_0x1b4c90+'\x22'):_0x448f6a[_0x2cf298('0x10')]('agent\x20not\x20exists');}break;case _0x2cf298('0x6e'):isEmail(_0x46b91c)?_0x15ec68['push']('\x22'+_0x46b91c+'\x22'):_0x448f6a[_0x2cf298('0x10')](_0x2cf298('0x6c'));break;case _0x2cf298('0x47'):{const _0xa3fcf0=moment(_0x46b91c,'YYYY-MM-DD',!![]);_0xa3fcf0[_0x2cf298('0x6')]()?_0x15ec68['push']('\x22'+_0x46b91c+'\x22'):_0x448f6a[_0x2cf298('0x10')]('dateOfBirth\x20wrong\x20format\x20(YYYY-MM-DD)');}break;default:_0x15ec68[_0x2cf298('0x10')]('\x22'+_0x46b91c+'\x22');}}else switch(_0x3a4a2e){case'firstName':case _0x2cf298('0x70'):_0x448f6a[_0x2cf298('0x10')](_0x3a4a2e+_0x2cf298('0x40'));break;default:_0x15ec68[_0x2cf298('0x10')]('\x22\x22');}}}_0x448f6a[_0x2cf298('0x44')]?handleError(_0x54d64c[_0x41d452],{'code':_0x2cf298('0x5c'),'message':_0x448f6a[_0x2cf298('0x75')]()}):fs[_0x2cf298('0x82')](_0x2806fc,_0x15ec68[_0x2cf298('0x75')]()+'\x0a'),_0x15ec68=[];}!(stats[_0x2cf298('0x3e')]%0xc8)&&(socket[_0x2cf298('0x7b')]('contact:import:'+_0x793a7c,stats),stats[_0x2cf298('0xa')]=[]);}stopped&&(console['log']('Abort\x20parser'),_0xdb3029[_0x2cf298('0x12')]());}catch(_0x1a0128){handleError(_0x321194[_0x2cf298('0x6b')][_0x41d452],{'code':_0x2cf298('0x14'),'message':_0x1a0128['message']}),console[_0x2cf298('0x6f')](_0x2cf298('0x7'),_0x1a0128[_0x2cf298('0x45')]);}},'complete':_0x2c1dae=>(async()=>{const _0x1247bb=_0x144ef6;console[_0x1247bb('0x32')](_0x1247bb('0x7a'),_0x2c1dae);try{const _0x1f9d78=[];let _0x468054=_0x1247bb('0x3c');_0x68d9dd[_0x1247bb('0x3f')]&&_0x68d9dd['duplicates']['length']&&(_0x468054='cm_contacts_'+_0x793a7c,_0x1f9d78[_0x1247bb('0x10')]({'query':'CREATE\x20TABLE\x20'+_0x468054+_0x1247bb('0x36'),'lowLevel':![]}));let _0x23d179=util[_0x1247bb('0x24')](_0x1247bb('0x4e'),_0x2806fc,_0x468054,_0x202eec,_0x68d9dd[_0x1247bb('0x89')],_0x68d9dd[_0x1247bb('0x1b')]||null,NOW,NOW);_['isNil'](_0x28dc85[_0x1247bb('0x56')])&&(_0x23d179+=_0x1247bb('0x1'));_0x1f9d78[_0x1247bb('0x10')]({'query':_0x23d179,'lowLevel':!![]});_0x68d9dd[_0x1247bb('0x3f')]&&_0x68d9dd[_0x1247bb('0x3f')][_0x1247bb('0x44')]&&(_0x1f9d78[_0x1247bb('0x10')]({'query':insertCmContact(_0x68d9dd[_0x1247bb('0x89')],_0x468054,_0x68d9dd[_0x1247bb('0x3f')],_0x28dc85),'lowLevel':![]}),_0x1f9d78[_0x1247bb('0x10')]({'query':_0x1247bb('0x31')+_0x468054+';','lowLevel':![]}));_0x1f9d78[_0x1247bb('0x10')]({'query':insertCmHopper(_0x68d9dd['ListId'],_0x1247bb('0x80'),'voice_queues','VoiceQueueId',_0x38f5b3),'lowLevel':![]}),_0x1f9d78[_0x1247bb('0x10')]({'query':insertCmHopperBlack(_0x68d9dd[_0x1247bb('0x89')],_0x1247bb('0x6a'),_0x1247bb('0x2a'),_0x1247bb('0x83')),'lowLevel':![]}),_0x1f9d78[_0x1247bb('0x10')]({'query':insertCmHopper(_0x68d9dd[_0x1247bb('0x89')],_0x1247bb('0x46'),'campaigns',_0x1247bb('0x4b'),_0x38f5b3),'lowLevel':![]}),_0x1f9d78[_0x1247bb('0x10')]({'query':insertCmHopperBlack(_0x68d9dd[_0x1247bb('0x89')],_0x1247bb('0x9'),'campaigns','CampaignId'),'lowLevel':![]}),console[_0x1247bb('0x32')](_0x1247bb('0x84')+_0x1f9d78[_0x1247bb('0x3a')](_0x212af6=>_0x212af6[_0x1247bb('0x77')])[_0x1247bb('0x75')]('\x0a'));try{await Promise[_0x1247bb('0x39')](_0x1f9d78['map'](_0x4079f3=>handleQuery(_0x4079f3[_0x1247bb('0x77')],_0x4079f3['lowLevel']))),stats[_0x1247bb('0x66')]=!![],stats[_0x1247bb('0x5a')]=_0x68d9dd[_0x1247bb('0x3f')]&&_0x68d9dd[_0x1247bb('0x3f')][_0x1247bb('0x44')]?results[0x2][_0x1247bb('0x5a')]:results[0x0]['affectedRows'],socket[_0x1247bb('0x7b')](_0x1247bb('0x8c')+_0x793a7c,stats),process[_0x1247bb('0x1c')](0x0);}catch(_0x59f58e){console[_0x1247bb('0x6f')](_0x1247bb('0x30')+_0x59f58e['message']+',\x20'+_0x59f58e['stack']);throw _0x59f58e;}}catch(_0xf22478){console[_0x1247bb('0x6f')](_0x1247bb('0x63'),_0xf22478[_0x1247bb('0x45')]);throw _0xf22478;}})(),'error':function(_0x368936,_0x36d142,_0x42de52,_0x40d354){throw new Error(_0x40d354);}});}function validate(){const _0x52f380=_0x45b377;if(process[_0x52f380('0x65')]&&process[_0x52f380('0x65')][_0x52f380('0x44')]<0x4)throw new Error(_0x52f380('0x17'));const [,,_0x3838c8,_0x1f9c88,_0x130c30]=process[_0x52f380('0x65')];console[_0x52f380('0x32')](_0x52f380('0x35')+_0x3838c8+_0x52f380('0x3'));if(!fs[_0x52f380('0x3b')](_0x3838c8))throw new Error('File\x20does\x20not\x20exist:\x20'+_0x3838c8);let _0xa9f3ad={},_0x2d477b=0x0;try{_0xa9f3ad=JSON[_0x52f380('0x43')](_0x1f9c88);if(!_0xa9f3ad[_0x52f380('0x54')])throw new Error('binding\x20does\x20not\x20exists');if(!_0xa9f3ad[_0x52f380('0x54')][_0x52f380('0x70')])throw new Error(_0x52f380('0x50'));if(!_0xa9f3ad[_0x52f380('0x54')]['firstName'])throw new Error(_0x52f380('0x5f'));_0xa9f3ad[_0x52f380('0x54')][_0x52f380('0x11')]&&(_0x2d477b=0x1);if(!_0xa9f3ad['ListId'])throw new Error(_0x52f380('0x4d'));}catch(_0x4ddcaa){throw new Error(_0x52f380('0x41'));}let _0x9bc158=[];try{_0x9bc158=_['map'](JSON['parse'](_0x130c30,'id'));}catch(_0x53abd8){console['log']('No\x20agent\x20available');}main(_0x3838c8,_0xa9f3ad,_0x9bc158,_0x2d477b);}validate(),process['on'](_0x45b377('0x6d'),handleStop),process['on']('uncaughtException',handleUncaughtException); \ No newline at end of file +const a992_0x232f=['emit','host','File\x20does\x20not\x20exist:\x20','send','appendFileSync','cm_contacts.phone','YYYY-MM-DD\x20HH:mm:ss','updatedAt','\x20not\x20specified','includes','path','.CmListId','createConnection','fields','concat','SIGINT','CREATE\x20TABLE\x20','cm_contacts.createdAt\x20=\x20?',')\x20NOT\x20IN\x20?','mysql2/promise','../../../mysqldb','data','isNaN','username','cm_contacts.phone\x20NOT\x20IN\x20(?)','ContactId','../../../globals','cm_contacts.updatedAt','recallme','writeFileSync','cm_contacts_','moment','errors','stringify','../../../mysqldb/infile-stream-factory','string','isValid','binding\x20does\x20not\x20exists','socket_timestamp','insert','config','uncaughtException','\x22onlyIfOpen\x22','UserId','sequelize','keys','voice_queues','push','fromQuery','log','trim','select','undefined','binding','join','scheduledat','options','field','function','duplicates','\x20=\x20','CompanyId','\x20LIKE\x20cm_contacts;','cm_hopper_black','error','format','CSV\x20Parser\x20error:\x20','isNil','map','cm_contacts.ListId','ListId\x20is\x20mandatory','VoiceQueueId','phone\x20is\x20mandatory','ListId\x20=\x20?','id\x20IN\x20?','argv','rows','CSV2\x20Starting:\x20fullfilepath=','COMPLETE','lodash','.CmListId\x20=\x20?','contact:import:','campaigns','agent\x20not\x20exists','voice_queues_has_cm_lists','No\x20agent\x20available','from','lowLevel','.id\x20=\x20','dateOfBirth\x20wrong\x20format\x20(YYYY-MM-DD)','firstName','handleQuery:\x20','\x22always\x22','CampaignId','code','body\x20id\x20mandatory','replace','deletedAt\x20IS\x20NULL','parse','ListId','step','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','dialectOptions','where','MIN(id)','length','isNumber','min_id','email','into','dirname','scheduledat\x20wrong\x20format\x20(YYYY-MM-DD\x20HH:mm:ss)','cm_contacts.createdAt','papaparse','affectedRows','DROP\x20TABLE\x20','cm_contacts.priority','stack','campaigns_has_cm_blacklists','phone','cm_hopper','end','password','toString','createReadStream','cm_contacts','SystemError','isArray','complete','message',',\x0a\x20bodyString,\x20agentsString','createdAt','campaigns_has_cm_lists','Received\x20SIGINT','cm_contacts.id','query','arguments\x20\x20\x20','all','priority','timezone'];(function(_0x33a401,_0x148b4d){const _0x232fca=function(_0x118a1e){while(--_0x118a1e){_0x33a401['push'](_0x33a401['shift']());}};_0x232fca(++_0x148b4d);}(a992_0x232f,0x1c1));const a992_0x118a=function(_0x33a401,_0x148b4d){_0x33a401=_0x33a401-0x199;let _0x232fca=a992_0x232f[_0x33a401];return _0x232fca;};const a992_0xc9791c=a992_0x118a;'use strict';require(a992_0xc9791c(0x222));const fs=require('fs'),path=require(a992_0xc9791c(0x212)),_=require(a992_0xc9791c(0x1cb)),Papa=require(a992_0xc9791c(0x1ed)),util=require('util'),mysql2=require(a992_0xc9791c(0x21b)),moment=require(a992_0xc9791c(0x19b)),squel=require('squel'),{db}=require(a992_0xc9791c(0x21c)),{infileStreamFactory}=require(a992_0xc9791c(0x19e)),{getSocket}=require('../../../rediscache'),socket=getSocket(),{isEmail}=require('validator'),stats={'finish':![],'errors':[],'rows':0x0,'affectedRows':0x0},results=[];let stopped=![];const NOW=moment()[a992_0xc9791c(0x1bd)](a992_0xc9791c(0x20e));function selectNotIn(_0x20d8d1,_0x4d7004,_0x410347,_0x2cec93,_0x1c53b0){const _0x2b5fcb=a992_0xc9791c;return squel[_0x2b5fcb(0x1af)]()[_0x2b5fcb(0x1b5)](_0x2b5fcb(0x1f3))[_0x2b5fcb(0x1d2)](_0x2cec93)[_0x2b5fcb(0x1b2)](_0x4d7004,null,_0x4d7004+'.id\x20=\x20'+_0x2cec93+'.'+_0x410347)[_0x2b5fcb(0x1e3)](_0x2cec93+'.'+_0x410347+_0x2b5fcb(0x1b8)+_0x20d8d1+'.'+_0x410347)['where'](_0x4d7004+'.dialCheckDuplicateType\x20IN\x20('+_0x1c53b0[_0x2b5fcb(0x1b2)]()+')');}function sendMessage(_0x5ee722){const _0x118826=a992_0xc9791c,_0x1e7399=typeof _0x5ee722===_0x118826(0x19f)?_0x5ee722:JSON[_0x118826(0x19d)](_0x5ee722);typeof process[_0x118826(0x20b)]===_0x118826(0x1b6)?process['send'](_0x1e7399):console[_0x118826(0x1ad)](_0x1e7399);}function insertCmHopper(_0x151886,_0x5a3a73,_0x37e8a1,_0x44b620,_0xb4b147){const _0x5cf72e=a992_0xc9791c,_0xb8bc68=['cm_contacts.phone','cm_contacts.scheduledat',_0x5cf72e(0x202),_0x5cf72e(0x1c1),_0x5a3a73+'.'+_0x44b620,_0x5cf72e(0x1ec),_0x5cf72e(0x223),_0x5cf72e(0x1f0),'cm_contacts.UserId','\x22'+_0xb4b147+'\x22'];return squel[_0x5cf72e(0x1a3)]()[_0x5cf72e(0x1e9)](_0x5cf72e(0x1f4))[_0x5cf72e(0x1ac)]([_0x5cf72e(0x1f3),_0x5cf72e(0x1b3),'ContactId',_0x5cf72e(0x1df),_0x44b620,_0x5cf72e(0x1ff),_0x5cf72e(0x20f),_0x5cf72e(0x206),_0x5cf72e(0x1a7),_0x5cf72e(0x224)],squel[_0x5cf72e(0x1af)]()[_0x5cf72e(0x215)](_0xb8bc68)[_0x5cf72e(0x1d2)](_0x5a3a73)[_0x5cf72e(0x1b2)](_0x5cf72e(0x1f9),null,'cm_contacts.ListId\x20=\x20'+_0x5a3a73+_0x5cf72e(0x213))['join'](_0x37e8a1,null,_0x37e8a1+'.id\x20=\x20'+_0x5a3a73+'.'+_0x44b620)[_0x5cf72e(0x1e3)](_0x5a3a73+_0x5cf72e(0x1cc),_0x151886)[_0x5cf72e(0x1e3)](_0x5cf72e(0x219),NOW)[_0x5cf72e(0x1e3)]('cm_contacts.phone\x20NOT\x20IN\x20(?)',selectNotIn(_0x5a3a73,_0x37e8a1,_0x44b620,_0x5cf72e(0x1f4),[_0x5cf72e(0x1d8),_0x5cf72e(0x1a6)]))['where'](_0x5cf72e(0x220),selectNotIn(_0x5a3a73,_0x37e8a1,_0x44b620,'cm_hopper',['\x22always\x22'])))['toString']();}function insertCmHopperBlack(_0x34880a,_0x2cda9c,_0x2a4d1c,_0x12d26f){const _0x44ed78=a992_0xc9791c,_0x42faf1=[_0x44ed78(0x20d),_0x44ed78(0x202),_0x44ed78(0x1c1),_0x2cda9c+'.'+_0x12d26f,_0x44ed78(0x1ec),'cm_contacts.updatedAt'];return squel[_0x44ed78(0x1a3)]()[_0x44ed78(0x1e9)](_0x44ed78(0x1bb))['fromQuery']([_0x44ed78(0x1f3),_0x44ed78(0x221),_0x44ed78(0x1df),_0x12d26f,_0x44ed78(0x1ff),_0x44ed78(0x20f)],squel[_0x44ed78(0x1af)]()['fields'](_0x42faf1)['from'](_0x2cda9c)['join'](_0x44ed78(0x1f9),null,'cm_contacts.ListId\x20=\x20'+_0x2cda9c+_0x44ed78(0x213))['join'](_0x2a4d1c,null,_0x2a4d1c+_0x44ed78(0x1d4)+_0x2cda9c+'.'+_0x12d26f)[_0x44ed78(0x1e3)](_0x2cda9c+_0x44ed78(0x1cc),_0x34880a)[_0x44ed78(0x1e3)](_0x44ed78(0x219),NOW)[_0x44ed78(0x1e3)](_0x44ed78(0x220),squel[_0x44ed78(0x1af)]()['field'](_0x44ed78(0x1f3))['from'](_0x44ed78(0x1bb))[_0x44ed78(0x1e3)](_0x44ed78(0x1c5),_0x34880a)[_0x44ed78(0x1e3)](_0x12d26f+_0x44ed78(0x1b8)+_0x2cda9c+'.'+_0x12d26f)))[_0x44ed78(0x1f7)]();}function insertCmContact(_0x300646,_0x5310c8,_0x5092b8,_0x26f5b8){const _0x52191a=a992_0xc9791c,_0x3d51d9=_[_0x52191a(0x216)](_[_0x52191a(0x1a9)](_0x26f5b8),[_0x52191a(0x1df),_0x52191a(0x1b9),_0x52191a(0x1ff),_0x52191a(0x20f)]);return squel[_0x52191a(0x1a3)]()[_0x52191a(0x1e9)]('cm_contacts')[_0x52191a(0x1ac)](_0x3d51d9,squel[_0x52191a(0x1af)]()['fields'](_0x3d51d9)[_0x52191a(0x1d2)](_0x5310c8)[_0x52191a(0x1e3)]('('+_0x5092b8[_0x52191a(0x1b2)](',')+_0x52191a(0x21a),squel['select']()[_0x52191a(0x215)](_0x5092b8)['from']('cm_contacts')['where'](_0x52191a(0x1c5),_0x300646)[_0x52191a(0x1e3)](_0x52191a(0x1dd)))[_0x52191a(0x1e3)](_0x52191a(0x1c6),squel[_0x52191a(0x1af)]()[_0x52191a(0x1b5)](_0x52191a(0x1e4),_0x52191a(0x1e7))[_0x52191a(0x1d2)](_0x5310c8)['group'](_0x5092b8[_0x52191a(0x1b2)](','))))['toString']();}function handleStop(){const _0x4c2156=a992_0xc9791c;console[_0x4c2156(0x1ad)](_0x4c2156(0x201)),stopped=!![];}function handleUncaughtException(_0x29b11e){const _0x2e6f90=a992_0xc9791c;console['error'](_0x29b11e[_0x2e6f90(0x1fd)]);throw _0x29b11e;}function handleError(_0x2357c0,_0x20b869){const _0x411dd1=a992_0xc9791c;stats[_0x411dd1(0x19c)]['push']({'name':_0x20b869[_0x411dd1(0x1da)],'message':_0x20b869[_0x411dd1(0x1fd)],'row':_0x2357c0});}async function lowLevelMySQL2Query(_0x3d8bf3){const _0x494119=a992_0xc9791c,_0xa2cd0e=db[_0x494119(0x1a8)][_0x494119(0x1a4)],_0x10a8aa={'host':_0xa2cd0e[_0x494119(0x209)],'port':_0xa2cd0e['port'],'user':_0xa2cd0e[_0x494119(0x21f)],'password':_0xa2cd0e[_0x494119(0x1f6)],'database':_0xa2cd0e['database'],'timezone':db[_0x494119(0x1a8)][_0x494119(0x1b4)][_0x494119(0x207)],'bigNumberStrings':![],'supportBigNumbers':!![],..._0xa2cd0e[_0x494119(0x1e2)]},_0x30c210=await mysql2[_0x494119(0x214)](_0x10a8aa),[_0x5701a4,_0x2a6c41]=await _0x30c210['query']({'sql':_0x3d8bf3,'infileStreamFactory':infileStreamFactory});return await _0x30c210[_0x494119(0x1f5)](),{'affectedRows':_0x5701a4[_0x494119(0x1ee)],'rows':_0x5701a4,'fields':_0x2a6c41};}async function handleQuery(_0x2b4293,_0xda1db7=![]){const _0x16eff4=a992_0xc9791c;try{if(_0xda1db7){const {affectedRows:_0x338f57}=await lowLevelMySQL2Query(_0x2b4293);results['push'](_0x338f57);}else{const [_0x4f453f]=await db[_0x16eff4(0x1a8)]['query'](_0x2b4293);results[_0x16eff4(0x1ab)](_0x4f453f);}}catch(_0x257e7b){console[_0x16eff4(0x1bc)](_0x16eff4(0x1d7)+_0x257e7b[_0x16eff4(0x1fd)],_0x257e7b[_0x16eff4(0x1f1)],_0x2b4293);throw _0x257e7b;}}function main(_0x57660d,_0x3c30c1,_0x41ae57,_0x1fcb07){const _0x219a8e=a992_0xc9791c;sendMessage('start');const _0x466722=_0x3c30c1['binding'],_0x411c69=_0x3c30c1[_0x219a8e(0x1a2)],_0x2162a3=path[_0x219a8e(0x1b2)](path[_0x219a8e(0x1ea)](_0x57660d),_0x411c69+'.csv'),_0x1b3c28=_['keys'](_0x466722)[_0x219a8e(0x1b2)]();fs[_0x219a8e(0x199)](_0x2162a3,_0x1b3c28+'\x0a'),Papa[_0x219a8e(0x1de)](fs[_0x219a8e(0x1f8)](_0x57660d),{'header':!![],'skipEmptyLines':!![],'step':function(_0x1e99c6,_0x46719e){const _0x14499b=_0x219a8e;let _0x175efb=0x0,_0x511598=[];const _0x42a8a6=Array[_0x14499b(0x1fb)](_0x1e99c6[_0x14499b(0x21d)])?_0x1e99c6[_0x14499b(0x21d)]:[_0x1e99c6[_0x14499b(0x21d)]];try{for(_0x175efb=0x0,_0x511598=[];_0x175efb<_0x42a8a6[_0x14499b(0x1e5)];_0x175efb++){stats[_0x14499b(0x1c8)]+=0x1;if(_0x1e99c6[_0x14499b(0x19c)][_0x175efb])handleError(_0x42a8a6[_0x175efb],_0x1e99c6[_0x14499b(0x19c)][_0x175efb]);else{const _0x38261e=[];for(const _0x2201df in _0x466722){if(typeof _0x466722[_0x2201df]!==_0x14499b(0x1b0)){if(_0x42a8a6[_0x175efb][_0x466722[_0x2201df]]){let _0x3dc179=_[_0x14499b(0x1ae)](_0x42a8a6[_0x175efb][_0x466722[_0x2201df]][_0x14499b(0x1dc)](/"/g,'\x27'));switch(_0x2201df){case'scheduledat':{const _0x4d104e=moment(_0x3dc179,_0x14499b(0x20e),!![]);_0x4d104e[_0x14499b(0x1a0)]()?_0x511598[_0x14499b(0x1ab)]('\x22'+_0x3dc179+'\x22'):_0x38261e[_0x14499b(0x1ab)](_0x14499b(0x1eb));}break;case'priority':{const _0x4b4dcf=parseInt(_0x3dc179);_0x3dc179=_[_0x14499b(0x21e)](_0x4b4dcf)||_0x4b4dcf<0x0||_0x4b4dcf>0x4?_0x1fcb07?0x3:0x2:_0x4b4dcf,_0x511598[_0x14499b(0x1ab)]('\x22'+_0x3dc179+'\x22');}break;case _0x14499b(0x1a7):{const _0x1f08a8=parseInt(_0x3dc179);_[_0x14499b(0x1e6)](_0x1f08a8)&&_[_0x14499b(0x211)](_0x41ae57,_0x1f08a8)?_0x511598[_0x14499b(0x1ab)]('\x22'+_0x1f08a8+'\x22'):_0x38261e[_0x14499b(0x1ab)](_0x14499b(0x1cf));}break;case _0x14499b(0x1e8):isEmail(_0x3dc179)?_0x511598['push']('\x22'+_0x3dc179+'\x22'):_0x38261e[_0x14499b(0x1ab)]('email\x20wrong\x20format');break;case'dateOfBirth':{const _0x1ca7f1=moment(_0x3dc179,'YYYY-MM-DD',!![]);_0x1ca7f1[_0x14499b(0x1a0)]()?_0x511598[_0x14499b(0x1ab)]('\x22'+_0x3dc179+'\x22'):_0x38261e['push'](_0x14499b(0x1d5));}break;default:_0x511598[_0x14499b(0x1ab)]('\x22'+_0x3dc179+'\x22');}}else switch(_0x2201df){case _0x14499b(0x1d6):case _0x14499b(0x1f3):_0x38261e[_0x14499b(0x1ab)](_0x2201df+_0x14499b(0x210));break;default:_0x511598[_0x14499b(0x1ab)]('\x22\x22');}}}_0x38261e[_0x14499b(0x1e5)]?handleError(_0x42a8a6[_0x175efb],{'code':'SystemRow','message':_0x38261e[_0x14499b(0x1b2)]()}):fs[_0x14499b(0x20c)](_0x2162a3,_0x511598[_0x14499b(0x1b2)]()+'\x0a'),_0x511598=[];}!(stats[_0x14499b(0x1c8)]%0xc8)&&(socket['emit'](_0x14499b(0x1cd)+_0x411c69,stats),stats[_0x14499b(0x19c)]=[]);}stopped&&(console['log']('Abort\x20parser'),_0x46719e['abort']());}catch(_0x296ed1){handleError(_0x1e99c6['data'][_0x175efb],{'code':_0x14499b(0x1fa),'message':_0x296ed1[_0x14499b(0x1fd)]}),console['error'](_0x14499b(0x1e0),_0x296ed1[_0x14499b(0x1fd)]);}},'complete':_0x54e4f6=>(async()=>{const _0x1e0c78=_0x219a8e;console[_0x1e0c78(0x1ad)](_0x1e0c78(0x1ca),_0x54e4f6);try{const _0x24c74f=[];let _0x3a59f8=_0x1e0c78(0x1f9);_0x3c30c1[_0x1e0c78(0x1b7)]&&_0x3c30c1[_0x1e0c78(0x1b7)][_0x1e0c78(0x1e5)]&&(_0x3a59f8=_0x1e0c78(0x19a)+_0x411c69,_0x24c74f[_0x1e0c78(0x1ab)]({'query':_0x1e0c78(0x218)+_0x3a59f8+_0x1e0c78(0x1ba),'lowLevel':![]}));let _0x1cf021=util[_0x1e0c78(0x1bd)](_0x1e0c78(0x1e1),_0x2162a3,_0x3a59f8,_0x1b3c28,_0x3c30c1[_0x1e0c78(0x1df)],_0x3c30c1['CompanyId']||null,NOW,NOW);_[_0x1e0c78(0x1bf)](_0x466722[_0x1e0c78(0x1b3)])&&(_0x1cf021+=',\x20scheduledAt\x20=\x20NOW()');_0x24c74f[_0x1e0c78(0x1ab)]({'query':_0x1cf021,'lowLevel':!![]});_0x3c30c1[_0x1e0c78(0x1b7)]&&_0x3c30c1[_0x1e0c78(0x1b7)][_0x1e0c78(0x1e5)]&&(_0x24c74f['push']({'query':insertCmContact(_0x3c30c1[_0x1e0c78(0x1df)],_0x3a59f8,_0x3c30c1[_0x1e0c78(0x1b7)],_0x466722),'lowLevel':![]}),_0x24c74f['push']({'query':_0x1e0c78(0x1ef)+_0x3a59f8+';','lowLevel':![]}));_0x24c74f['push']({'query':insertCmHopper(_0x3c30c1[_0x1e0c78(0x1df)],_0x1e0c78(0x1d0),_0x1e0c78(0x1aa),'VoiceQueueId',_0x1fcb07),'lowLevel':![]}),_0x24c74f['push']({'query':insertCmHopperBlack(_0x3c30c1[_0x1e0c78(0x1df)],'voice_queues_has_cm_blacklists','voice_queues',_0x1e0c78(0x1c3)),'lowLevel':![]}),_0x24c74f[_0x1e0c78(0x1ab)]({'query':insertCmHopper(_0x3c30c1[_0x1e0c78(0x1df)],_0x1e0c78(0x200),_0x1e0c78(0x1ce),'CampaignId',_0x1fcb07),'lowLevel':![]}),_0x24c74f['push']({'query':insertCmHopperBlack(_0x3c30c1[_0x1e0c78(0x1df)],_0x1e0c78(0x1f2),'campaigns',_0x1e0c78(0x1d9)),'lowLevel':![]}),console[_0x1e0c78(0x1ad)]('queries:\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20'+_0x24c74f[_0x1e0c78(0x1c0)](_0x5c09d5=>_0x5c09d5[_0x1e0c78(0x203)])[_0x1e0c78(0x1b2)]('\x0a'));try{await Promise[_0x1e0c78(0x205)](_0x24c74f['map'](_0xd5fcbd=>handleQuery(_0xd5fcbd[_0x1e0c78(0x203)],_0xd5fcbd[_0x1e0c78(0x1d3)]))),stats['finish']=!![],stats['affectedRows']=_0x3c30c1['duplicates']&&_0x3c30c1[_0x1e0c78(0x1b7)][_0x1e0c78(0x1e5)]?results[0x2][_0x1e0c78(0x1ee)]:results[0x0]['affectedRows'],socket[_0x1e0c78(0x208)](_0x1e0c78(0x1cd)+_0x411c69,stats),process['exit'](0x0);}catch(_0x39aa89){console[_0x1e0c78(0x1bc)](_0x1e0c78(0x1be)+_0x39aa89[_0x1e0c78(0x1fd)]+',\x20'+_0x39aa89['stack']);throw _0x39aa89;}}catch(_0x5cbbdc){console[_0x1e0c78(0x1bc)](_0x1e0c78(0x1fc),_0x5cbbdc['message']);throw _0x5cbbdc;}})(),'error':function(_0x20cc77,_0x85ffc3,_0x31513e,_0xda017d){throw new Error(_0xda017d);}});}function validate(){const _0x16616c=a992_0xc9791c;if(process[_0x16616c(0x1c7)]&&process['argv'][_0x16616c(0x1e5)]<0x4)throw new Error(_0x16616c(0x204));const [,,_0x5280eb,_0x5e7a56,_0x28077f]=process[_0x16616c(0x1c7)];console[_0x16616c(0x1ad)](_0x16616c(0x1c9)+_0x5280eb+_0x16616c(0x1fe));if(!fs['existsSync'](_0x5280eb))throw new Error(_0x16616c(0x20a)+_0x5280eb);let _0x5809b8={},_0x2d279d=0x0;try{_0x5809b8=JSON[_0x16616c(0x1de)](_0x5e7a56);if(!_0x5809b8[_0x16616c(0x1b1)])throw new Error(_0x16616c(0x1a1));if(!_0x5809b8[_0x16616c(0x1b1)][_0x16616c(0x1f3)])throw new Error(_0x16616c(0x1c4));if(!_0x5809b8[_0x16616c(0x1b1)]['firstName'])throw new Error('firstName\x20is\x20mandatory');_0x5809b8[_0x16616c(0x1b1)][_0x16616c(0x1a7)]&&(_0x2d279d=0x1);if(!_0x5809b8[_0x16616c(0x1df)])throw new Error(_0x16616c(0x1c2));}catch(_0x4090d8){throw new Error(_0x16616c(0x1db));}let _0x175cea=[];try{_0x175cea=_[_0x16616c(0x1c0)](JSON[_0x16616c(0x1de)](_0x28077f,'id'));}catch(_0x5dcea1){console['log'](_0x16616c(0x1d1));}main(_0x5280eb,_0x5809b8,_0x175cea,_0x2d279d);}validate(),process['on'](a992_0xc9791c(0x217),handleStop),process['on'](a992_0xc9791c(0x1a5),handleUncaughtException); \ No newline at end of file diff --git a/server/components/integrations/configuration.js b/server/components/integrations/configuration.js index 051a39e..bd2c616 100644 --- a/server/components/integrations/configuration.js +++ b/server/components/integrations/configuration.js @@ -1 +1 @@ -const a831_0x3b6a=['variable','Caller\x20Name','Answer\x20Time','destcalleridname','Agent\x20Complete','endtime','keyValue','answertime','calleridname','toLowerCase','Agent\x20Connect','getSubjects','***\x20Time\x20Info\x20***','inbound','queue','Hold\x20Time','Date','agentconnectAt','Member\x20Name','outbound','***\x20Call\x20Info\x20***','Queue','string','UniqueId','voice','calleridnum','Duration','Agent\x20Number','Outbound\x20Call','holdtime','getDescriptions','push','[xCALLY\x20Ticket]','destcalleridnum','uniqueid','Agent\x20Ring','agentcalledAt','destexten'];(function(_0x1d29da,_0x3b6aee){const _0x3bcea2=function(_0x21668e){while(--_0x21668e){_0x1d29da['push'](_0x1d29da['shift']());}};_0x3bcea2(++_0x3b6aee);}(a831_0x3b6a,0xec));const a831_0x3bce=function(_0x1d29da,_0x3b6aee){_0x1d29da=_0x1d29da-0x0;let _0x3bcea2=a831_0x3b6a[_0x1d29da];return _0x3bcea2;};const _0x275778=a831_0x3bce;'use strict';exports[_0x275778('0x3')]=function(_0x21668e,_0x4de383){const _0x5c4ec6=_0x275778,_0x5d051e=[{'type':_0x5c4ec6('0xe'),'content':_0x5c4ec6('0x18'),'variableName':null}];switch(_0x21668e[_0x5c4ec6('0x1')]()){case _0x5c4ec6('0x10'):switch(_0x4de383[_0x5c4ec6('0x1')]()){case _0x5c4ec6('0x5'):_0x5d051e[_0x5c4ec6('0x17')]({'type':_0x5c4ec6('0x1e'),'content':'','variableName':_0x5c4ec6('0x6')}),_0x5d051e[_0x5c4ec6('0x17')]({'type':_0x5c4ec6('0x1e'),'content':'','variableName':_0x5c4ec6('0x11')});break;case'outbound':_0x5d051e[_0x5c4ec6('0x17')]({'type':_0x5c4ec6('0xe'),'content':_0x5c4ec6('0x14'),'variableName':null}),_0x5d051e[_0x5c4ec6('0x17')]({'type':_0x5c4ec6('0x1e'),'content':'','variableName':_0x5c4ec6('0x19')});break;}}return _0x5d051e;},exports[_0x275778('0x16')]=function(_0x416429,_0x2f83e1){const _0xbde488=_0x275778;let _0x3eee5e=[];switch(_0x416429[_0xbde488('0x1')]()){case _0xbde488('0x10'):switch(_0x2f83e1['toLowerCase']()){case'inbound':_0x3eee5e=[{'type':_0xbde488('0xe'),'content':_0xbde488('0xc'),'key':null,'keyType':null,'variableName':null},{'type':'keyValue','content':'','key':'Caller\x20Number','keyType':_0xbde488('0x1e'),'variableName':_0xbde488('0x11')},{'type':_0xbde488('0x24'),'content':'','key':_0xbde488('0x1f'),'keyType':'variable','variableName':_0xbde488('0x0')},{'type':_0xbde488('0x24'),'content':'','key':'Call\x20To','keyType':_0xbde488('0x1e'),'variableName':_0xbde488('0x1d')},{'type':_0xbde488('0x24'),'content':'','key':_0xbde488('0xd'),'keyType':'variable','variableName':_0xbde488('0x6')},{'type':_0xbde488('0x24'),'content':'','key':_0xbde488('0xf'),'keyType':'variable','variableName':_0xbde488('0x1a')},{'type':_0xbde488('0x24'),'content':'','key':_0xbde488('0x8'),'keyType':'variable','variableName':_0xbde488('0x1c')},{'type':_0xbde488('0xe'),'content':'***\x20Agent\x20Info\x20***','key':null,'keyType':null,'variableName':null},{'type':_0xbde488('0x24'),'content':'','key':'Agent\x20Name','keyType':'variable','variableName':_0xbde488('0x21')},{'type':_0xbde488('0x24'),'content':'','key':_0xbde488('0x13'),'keyType':_0xbde488('0x1e'),'variableName':_0xbde488('0x19')},{'type':'string','content':'***\x20Time\x20Info\x20***','key':null,'keyType':null,'variableName':null},{'type':_0xbde488('0x24'),'content':'','key':_0xbde488('0x1b'),'keyType':_0xbde488('0x1e'),'variableName':_0xbde488('0x1c')},{'type':_0xbde488('0x24'),'content':'','key':_0xbde488('0x2'),'keyType':_0xbde488('0x1e'),'variableName':_0xbde488('0x9')},{'type':'keyValue','content':'','key':_0xbde488('0x22'),'keyType':_0xbde488('0x1e'),'variableName':'agentcompleteAt'},{'type':_0xbde488('0x24'),'content':'','key':_0xbde488('0x7'),'keyType':'variable','variableName':_0xbde488('0x15')},{'type':_0xbde488('0x24'),'content':'','key':'Talk\x20Time','keyType':_0xbde488('0x1e'),'variableName':'talktime'}];break;case _0xbde488('0xb'):_0x3eee5e=[{'type':_0xbde488('0xe'),'content':_0xbde488('0xc'),'variableName':null},{'type':'keyValue','content':'','key':'Called\x20Number','keyType':_0xbde488('0x1e'),'keyContent':'','variableName':'destcalleridnum'},{'type':'keyValue','content':'','key':_0xbde488('0xa'),'keyType':_0xbde488('0x1e'),'keyContent':'','variableName':'membername'},{'type':_0xbde488('0x24'),'content':'','key':'UniqueId','keyType':_0xbde488('0x1e'),'keyContent':'','variableName':'uniqueid'},{'type':'keyValue','content':'','key':'Date','keyType':_0xbde488('0x1e'),'keyContent':'','variableName':'starttime'},{'type':_0xbde488('0xe'),'content':_0xbde488('0x4')},{'type':_0xbde488('0x24'),'content':'','key':_0xbde488('0x20'),'keyType':_0xbde488('0x1e'),'keyContent':'','variableName':_0xbde488('0x25')},{'type':_0xbde488('0x24'),'content':'','key':'Complete\x20Time','keyType':_0xbde488('0x1e'),'keyContent':'','variableName':_0xbde488('0x23')},{'type':'keyValue','content':'','key':_0xbde488('0x12'),'keyType':_0xbde488('0x1e'),'keyContent':'','variableName':'duration'},{'type':'keyValue','content':'','key':'Billable\x20Time','keyType':_0xbde488('0x1e'),'keyContent':'','variableName':'billableseconds'}];break;}}return _0x3eee5e;}; \ No newline at end of file +const a993_0x4bba=['***\x20Call\x20Info\x20***','Agent\x20Connect','destcalleridname','Outbound\x20Call','***\x20Time\x20Info\x20***','outbound','Agent\x20Name','push','Member\x20Name','string','holdtime','billableseconds','Caller\x20Name','answertime','keyValue','Caller\x20Number','queue','voice','Duration','Call\x20To','Agent\x20Number','Date','membername','agentconnectAt','[xCALLY\x20Ticket]','destcalleridnum','calleridnum','toLowerCase','agentcompleteAt','variable','calleridname','agentcalledAt','inbound','UniqueId','Talk\x20Time','Hold\x20Time','Agent\x20Complete','uniqueid','Answer\x20Time'];(function(_0x3883ef,_0x57d2b0){const _0x4bbaa3=function(_0x1c5893){while(--_0x1c5893){_0x3883ef['push'](_0x3883ef['shift']());}};_0x4bbaa3(++_0x57d2b0);}(a993_0x4bba,0x1ee));const a993_0x1c58=function(_0x3883ef,_0x57d2b0){_0x3883ef=_0x3883ef-0xb3;let _0x4bbaa3=a993_0x4bba[_0x3883ef];return _0x4bbaa3;};'use strict';exports['getSubjects']=function(_0x3fdc34,_0x619ffb){const _0x4f1b3a=a993_0x1c58,_0x424802=[{'type':_0x4f1b3a(0xc9),'content':_0x4f1b3a(0xd8),'variableName':null}];switch(_0x3fdc34[_0x4f1b3a(0xb4)]()){case _0x4f1b3a(0xd1):switch(_0x619ffb[_0x4f1b3a(0xb4)]()){case _0x4f1b3a(0xb9):_0x424802[_0x4f1b3a(0xc7)]({'type':_0x4f1b3a(0xb6),'content':'','variableName':_0x4f1b3a(0xd0)}),_0x424802[_0x4f1b3a(0xc7)]({'type':_0x4f1b3a(0xb6),'content':'','variableName':_0x4f1b3a(0xb3)});break;case _0x4f1b3a(0xc5):_0x424802['push']({'type':'string','content':_0x4f1b3a(0xc3),'variableName':null}),_0x424802['push']({'type':_0x4f1b3a(0xb6),'content':'','variableName':_0x4f1b3a(0xd9)});break;}}return _0x424802;},exports['getDescriptions']=function(_0x1637fa,_0x1633d2){const _0x32a0bb=a993_0x1c58;let _0x452a81=[];switch(_0x1637fa['toLowerCase']()){case'voice':switch(_0x1633d2['toLowerCase']()){case _0x32a0bb(0xb9):_0x452a81=[{'type':'string','content':'***\x20Call\x20Info\x20***','key':null,'keyType':null,'variableName':null},{'type':_0x32a0bb(0xce),'content':'','key':_0x32a0bb(0xcf),'keyType':_0x32a0bb(0xb6),'variableName':_0x32a0bb(0xb3)},{'type':_0x32a0bb(0xce),'content':'','key':_0x32a0bb(0xcc),'keyType':_0x32a0bb(0xb6),'variableName':_0x32a0bb(0xb7)},{'type':_0x32a0bb(0xce),'content':'','key':_0x32a0bb(0xd3),'keyType':'variable','variableName':'destexten'},{'type':'keyValue','content':'','key':'Queue','keyType':_0x32a0bb(0xb6),'variableName':_0x32a0bb(0xd0)},{'type':_0x32a0bb(0xce),'content':'','key':'UniqueId','keyType':'variable','variableName':_0x32a0bb(0xbe)},{'type':_0x32a0bb(0xce),'content':'','key':'Date','keyType':_0x32a0bb(0xb6),'variableName':'agentcalledAt'},{'type':_0x32a0bb(0xc9),'content':'***\x20Agent\x20Info\x20***','key':null,'keyType':null,'variableName':null},{'type':'keyValue','content':'','key':_0x32a0bb(0xc6),'keyType':_0x32a0bb(0xb6),'variableName':_0x32a0bb(0xc2)},{'type':_0x32a0bb(0xce),'content':'','key':_0x32a0bb(0xd4),'keyType':'variable','variableName':_0x32a0bb(0xd9)},{'type':_0x32a0bb(0xc9),'content':'***\x20Time\x20Info\x20***','key':null,'keyType':null,'variableName':null},{'type':'keyValue','content':'','key':'Agent\x20Ring','keyType':_0x32a0bb(0xb6),'variableName':_0x32a0bb(0xb8)},{'type':_0x32a0bb(0xce),'content':'','key':_0x32a0bb(0xc1),'keyType':_0x32a0bb(0xb6),'variableName':_0x32a0bb(0xd7)},{'type':_0x32a0bb(0xce),'content':'','key':_0x32a0bb(0xbd),'keyType':_0x32a0bb(0xb6),'variableName':_0x32a0bb(0xb5)},{'type':_0x32a0bb(0xce),'content':'','key':_0x32a0bb(0xbc),'keyType':_0x32a0bb(0xb6),'variableName':_0x32a0bb(0xca)},{'type':_0x32a0bb(0xce),'content':'','key':_0x32a0bb(0xbb),'keyType':_0x32a0bb(0xb6),'variableName':'talktime'}];break;case _0x32a0bb(0xc5):_0x452a81=[{'type':_0x32a0bb(0xc9),'content':_0x32a0bb(0xc0),'variableName':null},{'type':'keyValue','content':'','key':'Called\x20Number','keyType':_0x32a0bb(0xb6),'keyContent':'','variableName':'destcalleridnum'},{'type':'keyValue','content':'','key':_0x32a0bb(0xc8),'keyType':'variable','keyContent':'','variableName':_0x32a0bb(0xd6)},{'type':_0x32a0bb(0xce),'content':'','key':_0x32a0bb(0xba),'keyType':_0x32a0bb(0xb6),'keyContent':'','variableName':_0x32a0bb(0xbe)},{'type':_0x32a0bb(0xce),'content':'','key':_0x32a0bb(0xd5),'keyType':_0x32a0bb(0xb6),'keyContent':'','variableName':'starttime'},{'type':_0x32a0bb(0xc9),'content':_0x32a0bb(0xc4)},{'type':_0x32a0bb(0xce),'content':'','key':_0x32a0bb(0xbf),'keyType':_0x32a0bb(0xb6),'keyContent':'','variableName':_0x32a0bb(0xcd)},{'type':'keyValue','content':'','key':'Complete\x20Time','keyType':_0x32a0bb(0xb6),'keyContent':'','variableName':'endtime'},{'type':'keyValue','content':'','key':_0x32a0bb(0xd2),'keyType':'variable','keyContent':'','variableName':'duration'},{'type':_0x32a0bb(0xce),'content':'','key':'Billable\x20Time','keyType':'variable','keyContent':'','variableName':_0x32a0bb(0xcb)}];break;}}return _0x452a81;}; \ No newline at end of file diff --git a/server/components/interaction/service.js b/server/components/interaction/service.js index 088df4d..4c21d01 100644 --- a/server/components/interaction/service.js +++ b/server/components/interaction/service.js @@ -1 +1 @@ -const a832_0x2d0a=['InteractionId','../../config/logger','Interaction','omit','role','then','mobile','info','upperFirst','body','html','name','unknown','null','[%s]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s','findOne','error','openchannel-interactions','sms-interactions','chat-interactions','catch','lodash','stringify','user','toUpperCase'];(function(_0x1bf3ce,_0x2d0a5c){const _0x3dfa80=function(_0x4a0eae){while(--_0x4a0eae){_0x1bf3ce['push'](_0x1bf3ce['shift']());}};_0x3dfa80(++_0x2d0a5c);}(a832_0x2d0a,0xbb));const a832_0x3dfa=function(_0x1bf3ce,_0x2d0a5c){_0x1bf3ce=_0x1bf3ce-0x0;let _0x3dfa80=a832_0x2d0a[_0x1bf3ce];return _0x3dfa80;};const _0x4560ba=a832_0x3dfa;'use strict';const _=require(_0x4560ba('0x9')),db=require('../../mysqldb')['db'],loggers={'openchannel':require(_0x4560ba('0xe'))(_0x4560ba('0x5')),'mail':require(_0x4560ba('0xe'))('mail-interactions'),'fax':require(_0x4560ba('0xe'))('fax-interactions'),'sms':require(_0x4560ba('0xe'))(_0x4560ba('0x6')),'chat':require(_0x4560ba('0xe'))(_0x4560ba('0x7')),'whatsapp':require(_0x4560ba('0xe'))('whatsapp-interactions')};function getInteractionId(_0x4a0eae,_0x1d9474,_0x595f3f){const _0x1d8c0d=_0x4560ba;if(_0x4a0eae&&_0x4a0eae[_['upperFirst'](_0x595f3f)+_0x1d8c0d('0xd')])return _0x4a0eae[_[_0x1d8c0d('0x15')](_0x595f3f)+'InteractionId'];else{if(_0x4a0eae&&_0x4a0eae['id'])return _0x4a0eae['id'];else return _0x1d9474&&_0x1d9474['id']?_0x1d9474['id']:_0x1d8c0d('0x0');}}function log(_0xa322ff,_0x3a1f26,_0x50ac29,_0x5ee99e,_0xf74ab2,_0x1116ae){const _0x3aaf0c=_0x4560ba;loggers[_0xf74ab2['toLowerCase']()][_0xa322ff](_0x3aaf0c('0x2'),_0x1116ae[_0x3aaf0c('0xc')](),_0x3a1f26?_0x3a1f26['id']:null,_0x3a1f26?_0x3a1f26[_0x3aaf0c('0x18')]:null,_0x3a1f26?_0x3a1f26[_0x3aaf0c('0x11')]:null,getInteractionId(_0x50ac29,_0x5ee99e,_0xf74ab2),_0x50ac29?JSON[_0x3aaf0c('0xa')](_0x50ac29):_0x3aaf0c('0x1'));}function updateUser(_0x114622,_0xd01a9b,_0x2b03bc,_0x547dc0,_0x59e04b){const _0x4f3add=_0x4560ba;db[_[_0x4f3add('0x15')](_0x547dc0)+_0x4f3add('0xf')][_0x4f3add('0x3')]({'where':{'id':getInteractionId(_0xd01a9b,_0x2b03bc,_0x547dc0)}})[_0x4f3add('0x12')](function(_0x55ce5e){if(_0x55ce5e)return _0x55ce5e['update']({'UserId':_0x114622?_0x114622['id']:null});})[_0x4f3add('0x12')](function(_0x31a4a1){const _0x3fae3=_0x4f3add;_0x31a4a1&&log(_0x3fae3('0x14'),_0x114622,_0xd01a9b,_0x2b03bc,_0x547dc0,_0x59e04b);})[_0x4f3add('0x8')](function(){const _0x33adf1=_0x4f3add;log(_0x33adf1('0x4'),_0x114622,_0xd01a9b,_0x2b03bc,_0x547dc0,_0x59e04b);});}exports['tracked']=function(_0x320bd7,_0x21f319){return function(_0x51773e,_0x234972,_0x1448e2){const _0x777407=a832_0x3dfa,_0x402f6=_0x51773e[_0x777407('0xb')];let _0x2a3a3e={};const _0x319d8b=_0x51773e['query'];_0x2a3a3e&&(_0x2a3a3e=_['clone'](_0x51773e[_0x777407('0x16')]),_0x2a3a3e=_[_0x777407('0x10')](_0x2a3a3e,['body',_0x777407('0x17'),'phone','fax',_0x777407('0x13')])),updateUser(_0x402f6,_0x2a3a3e,_0x319d8b,_0x320bd7,_0x21f319),_0x1448e2(null);};}; \ No newline at end of file +const a994_0x43d7=['tracked','chat-interactions','then','null','upperFirst','[%s]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s','error','phone','clone','openchannel-interactions','toUpperCase','InteractionId','user','stringify','../../config/logger','lodash','body','Interaction','fax-interactions','catch','omit','whatsapp-interactions','toLowerCase','role','unknown','html','sms-interactions','update'];(function(_0x5e4a21,_0x405732){const _0x43d70c=function(_0x47f0a7){while(--_0x47f0a7){_0x5e4a21['push'](_0x5e4a21['shift']());}};_0x43d70c(++_0x405732);}(a994_0x43d7,0x113));const a994_0x47f0=function(_0x5e4a21,_0x405732){_0x5e4a21=_0x5e4a21-0xf3;let _0x43d70c=a994_0x43d7[_0x5e4a21];return _0x43d70c;};const a994_0x27739a=a994_0x47f0;'use strict';const _=require(a994_0x27739a(0x107)),{db}=require('../../mysqldb'),loggers={'openchannel':require(a994_0x27739a(0x106))(a994_0x27739a(0x101)),'mail':require(a994_0x27739a(0x106))('mail-interactions'),'fax':require(a994_0x27739a(0x106))(a994_0x27739a(0x10a)),'sms':require(a994_0x27739a(0x106))(a994_0x27739a(0xf6)),'chat':require(a994_0x27739a(0x106))(a994_0x27739a(0xf9)),'whatsapp':require(a994_0x27739a(0x106))(a994_0x27739a(0x10d))};function getInteractionId(_0x569b85,_0xc956f3,_0x37970b){const _0x4b8b2c=a994_0x27739a;if(_0x569b85&&_0x569b85[_[_0x4b8b2c(0xfc)](_0x37970b)+_0x4b8b2c(0x103)])return _0x569b85[_[_0x4b8b2c(0xfc)](_0x37970b)+_0x4b8b2c(0x103)];else{if(_0x569b85&&_0x569b85['id'])return _0x569b85['id'];else return _0xc956f3&&_0xc956f3['id']?_0xc956f3['id']:_0x4b8b2c(0xf4);}}function log(_0x485d20,_0x46cead,_0xba34b2,_0x3a194f,_0x1dc14e,_0x1bc88a){const _0x51b169=a994_0x27739a;loggers[_0x1dc14e[_0x51b169(0x10e)]()][_0x485d20](_0x51b169(0xfd),_0x1bc88a[_0x51b169(0x102)](),_0x46cead?_0x46cead['id']:null,_0x46cead?_0x46cead['name']:null,_0x46cead?_0x46cead[_0x51b169(0xf3)]:null,getInteractionId(_0xba34b2,_0x3a194f,_0x1dc14e),_0xba34b2?JSON[_0x51b169(0x105)](_0xba34b2):_0x51b169(0xfb));}function updateUser(_0x3fa721,_0x1afef9,_0x43e023,_0x1e00ce,_0x4762f6){const _0x4bd2ca=a994_0x27739a;db[_[_0x4bd2ca(0xfc)](_0x1e00ce)+_0x4bd2ca(0x109)]['findOne']({'where':{'id':getInteractionId(_0x1afef9,_0x43e023,_0x1e00ce)}})[_0x4bd2ca(0xfa)](function(_0x24662d){const _0x5345a9=_0x4bd2ca;if(_0x24662d)return _0x24662d[_0x5345a9(0xf7)]({'UserId':_0x3fa721?_0x3fa721['id']:null});})[_0x4bd2ca(0xfa)](function(_0x33e1b7){_0x33e1b7&&log('info',_0x3fa721,_0x1afef9,_0x43e023,_0x1e00ce,_0x4762f6);})[_0x4bd2ca(0x10b)](function(){const _0x3e1897=_0x4bd2ca;log(_0x3e1897(0xfe),_0x3fa721,_0x1afef9,_0x43e023,_0x1e00ce,_0x4762f6);});}exports[a994_0x27739a(0xf8)]=function(_0x493e84,_0x4e1364){return function(_0x5d07f1,_0x1b5aaa,_0x540e35){const _0x2fa840=a994_0x47f0,_0x2ee8da=_0x5d07f1[_0x2fa840(0x104)];let _0x7f6eb5={};const _0x301f0c=_0x5d07f1['query'];_0x7f6eb5&&(_0x7f6eb5=_[_0x2fa840(0x100)](_0x5d07f1['body']),_0x7f6eb5=_[_0x2fa840(0x10c)](_0x7f6eb5,[_0x2fa840(0x108),_0x2fa840(0xf5),_0x2fa840(0xff),'fax','mobile'])),updateUser(_0x2ee8da,_0x7f6eb5,_0x301f0c,_0x493e84,_0x4e1364),_0x540e35(null);};}; \ No newline at end of file diff --git a/server/components/license/service.js b/server/components/license/service.js index 5d8c3ab..6c468c8 100644 --- a/server/components/license/service.js +++ b/server/components/license/service.js @@ -1 +1 @@ -const a833_0x4771=['use','License','status','Maximum\x20%s\x20limit\x20have\x20been\x20reached','composable-middleware','../encryptor','format','util','user','User','users','then','findOne','isUserLimit','admin','../../mysqldb','catch'];(function(_0x57fcc0,_0x47714f){const _0x4cfa00=function(_0x841ad){while(--_0x841ad){_0x57fcc0['push'](_0x57fcc0['shift']());}};_0x4cfa00(++_0x47714f);}(a833_0x4771,0x1c5));const a833_0x4cfa=function(_0x57fcc0,_0x47714f){_0x57fcc0=_0x57fcc0-0x0;let _0x4cfa00=a833_0x4771[_0x57fcc0];return _0x4cfa00;};const _0x1abdc1=a833_0x4cfa;'use strict';const util=require(_0x1abdc1('0xd')),compose=require(_0x1abdc1('0xa')),{Op}=require('sequelize'),db=require(_0x1abdc1('0x4'))['db'],{getValueFromLicense}=require(_0x1abdc1('0xb'));function isLimit(_0x841ad,_0x1c1001,_0x4dbfa5,_0x30ce11){const _0x29f17c=_0x1abdc1;let _0x3846ae=_0x1c1001;return compose()[_0x29f17c('0x6')](function(_0x201736,_0x3d4011,_0x3af293){const _0x36b0bc=_0x29f17c;return db[_0x36b0bc('0x7')][_0x36b0bc('0x1')]({'where':{'id':0x1},'raw':!![]})['then'](function(_0x354b07){const _0x4faf5d=getValueFromLicense(_0x841ad,_0x354b07);return _0x4faf5d?_0x4faf5d:_0x3846ae;})[_0x36b0bc('0x0')](function(_0x3ef9b2){return _0x3846ae=_0x3ef9b2,_0x4dbfa5['count'](_0x30ce11);})['then'](function(_0x2981c8){const _0x4f9bb6=_0x36b0bc;if(_0x2981c8>=_0x3846ae)return _0x3d4011[_0x4f9bb6('0x8')](0x193)['json']({'message':util[_0x4f9bb6('0xc')](_0x4f9bb6('0x9'),_0x841ad)});_0x3af293();})[_0x36b0bc('0x5')](function(_0x24a334){_0x3af293(_0x24a334);});});}function isUserLimit(){const _0x4c3f5e=_0x1abdc1;return isLimit(_0x4c3f5e('0x10'),0x1,db[_0x4c3f5e('0xf')],{'where':{[Op['or']]:[{'role':_0x4c3f5e('0x3')},{'role':_0x4c3f5e('0xe')}]}});}exports[_0x1abdc1('0x2')]=isUserLimit; \ No newline at end of file +const a995_0x4753=['then','Maximum\x20%s\x20limit\x20have\x20been\x20reached','use','User','users','catch','findOne','util','count','status','format','sequelize','../../mysqldb','json','user','../encryptor','composable-middleware'];(function(_0x48f7d9,_0xae5462){const _0x475378=function(_0x929784){while(--_0x929784){_0x48f7d9['push'](_0x48f7d9['shift']());}};_0x475378(++_0xae5462);}(a995_0x4753,0x12a));const a995_0x9297=function(_0x48f7d9,_0xae5462){_0x48f7d9=_0x48f7d9-0x1ca;let _0x475378=a995_0x4753[_0x48f7d9];return _0x475378;};const a995_0x3ba357=a995_0x9297;'use strict';const util=require(a995_0x3ba357(0x1d9)),compose=require(a995_0x3ba357(0x1d1)),{Op}=require(a995_0x3ba357(0x1cc)),{db}=require(a995_0x3ba357(0x1cd)),{getValueFromLicense}=require(a995_0x3ba357(0x1d0));function isLimit(_0x194c70,_0x55f304,_0x4f3d72,_0x2d2486){const _0x3cb8e2=a995_0x3ba357;let _0x2888db=_0x55f304;return compose()[_0x3cb8e2(0x1d4)](function(_0xeadf8b,_0x9295f2,_0xc69dc6){const _0x286977=_0x3cb8e2;return db['License'][_0x286977(0x1d8)]({'where':{'id':0x1},'raw':!![]})['then'](function(_0x5c13bd){const _0x29513a=getValueFromLicense(_0x194c70,_0x5c13bd);return _0x29513a?_0x29513a:_0x2888db;})[_0x286977(0x1d2)](function(_0x1883bb){const _0x366d07=_0x286977;return _0x2888db=_0x1883bb,_0x4f3d72[_0x366d07(0x1da)](_0x2d2486);})[_0x286977(0x1d2)](function(_0x361014){const _0x2fa042=_0x286977;if(_0x361014>=_0x2888db)return _0x9295f2[_0x2fa042(0x1ca)](0x193)[_0x2fa042(0x1ce)]({'message':util[_0x2fa042(0x1cb)](_0x2fa042(0x1d3),_0x194c70)});_0xc69dc6();})[_0x286977(0x1d7)](function(_0x950bc4){_0xc69dc6(_0x950bc4);});});}function isUserLimit(){const _0xd1d84a=a995_0x3ba357;return isLimit(_0xd1d84a(0x1d6),0x1,db[_0xd1d84a(0x1d5)],{'where':{[Op['or']]:[{'role':'admin'},{'role':_0xd1d84a(0x1cf)}]}});}exports['isUserLimit']=isUserLimit; \ No newline at end of file diff --git a/server/components/parsers/advancedSearch.js b/server/components/parsers/advancedSearch.js index 20c855e..72c262a 100644 --- a/server/components/parsers/advancedSearch.js +++ b/server/components/parsers/advancedSearch.js @@ -1 +1 @@ -const a834_0x43db=['map','$startsWith','NOT\x20IN\x20?','$gt','includes','$between','split','\x20AS\x20','days','replace','=\x20?','$substring','sqlOperator','indexOf','utcOffset','$notIn','shift','>\x20?','$in','minutes','$lt','startsWith','lodash','seconds','$gte','parseSearch','$eq','filter','YYYY-MM-DD','CAST(','pop','moment','field','and','[$or]','$endsWith','DATE','<>\x20?','match','castTo','format','>=\x20?','<=\x20?','add','length','$lte','operator','text','$ne','start','value'];(function(_0x7a3c5,_0x43db03){const _0x4ece62=function(_0x4a491d){while(--_0x4a491d){_0x7a3c5['push'](_0x7a3c5['shift']());}};_0x4ece62(++_0x43db03);}(a834_0x43db,0x6a));const a834_0x4ece=function(_0x7a3c5,_0x43db03){_0x7a3c5=_0x7a3c5-0x0;let _0x4ece62=a834_0x43db[_0x7a3c5];return _0x4ece62;};const _0x137fa6=a834_0x4ece;'use strict';const _=require(_0x137fa6('0x12')),moment=require(_0x137fa6('0x1b'));exports[_0x137fa6('0x15')]=function(_0x4a491d){const _0x3e6119=_0x137fa6,_0x134a70={'conditions':[]};_0x134a70[_0x3e6119('0x8')]=_[_0x3e6119('0x11')](_0x4a491d,_0x3e6119('0x1e'))?'or':_0x3e6119('0x1d');const _0xdffa7e=_0x4a491d[_0x3e6119('0x5')]('[$and]','')['replace']('[$or]','')[_0x3e6119('0x2')]('||');for(let _0x456b7f=0x0;_0x456b7f<_0xdffa7e[_0x3e6119('0x28')];_0x456b7f++){const _0x4356bd=_0xdffa7e[_0x456b7f][_0x3e6119('0x2')](':='),_0x284df9=_0x4356bd[0x0],_0x48ffe7=_0x4356bd['slice'](0x1);_0x48ffe7['forEach'](function(_0x59bc40){const _0x1589f9=_0x3e6119,_0x97dcfd=_0x59bc40[_0x1589f9('0x2')]('[')[_0x1589f9('0xc')](),_0x3a71a6=_0x59bc40[_0x1589f9('0x22')](/\[(.*?)\]/g);_0x3a71a6['forEach'](function(_0x40580b){const _0x5b18f5=_0x1589f9,_0xe230d9=_0x40580b[_0x5b18f5('0x2')]('[')[_0x5b18f5('0x17')](function(_0x17f266){const _0x37d245=_0x5b18f5;return _0x17f266[_0x37d245('0x9')](']')>-0x1;})[_0x5b18f5('0x2f')](function(_0x545a02){return _0x545a02['split'](']')[0x0];})[0x0];_0x134a70['conditions']['push']({'field':_0x284df9,'operator':_0x97dcfd,'value':_0xe230d9});});});}return _0x134a70;},exports['buildExpression']=function(_0x3b858e,_0x549718,_0x29faaf){const _0x2fe1cb=_0x137fa6,_0x57927d={};if(_0x549718===_0x2fe1cb('0x20')){if(_0x29faaf[_0x2fe1cb('0x2a')]==='$eq')_0x29faaf[_0x2fe1cb('0x2a')]=_0x2fe1cb('0x1'),_0x29faaf[_0x2fe1cb('0x2e')]+=','+_0x29faaf[_0x2fe1cb('0x2e')];else _[_0x2fe1cb('0x0')](['$gt','$lte'],_0x29faaf['operator'])&&(_0x29faaf['value']=moment(_0x29faaf[_0x2fe1cb('0x2e')])[_0x2fe1cb('0x27')](0x1,_0x2fe1cb('0x4'))[_0x2fe1cb('0x24')](_0x2fe1cb('0x18')));}_0x29faaf[_0x2fe1cb('0x23')]?(_0x549718=_0x29faaf[_0x2fe1cb('0x23')],_0x57927d['text']=_0x2fe1cb('0x19')+_0x3b858e+'.'+_0x29faaf[_0x2fe1cb('0x1c')]+_0x2fe1cb('0x3')+_0x29faaf[_0x2fe1cb('0x23')]+')\x20'+parseOperator(_0x29faaf[_0x2fe1cb('0x2a')])):_0x57927d[_0x2fe1cb('0x2b')]=_0x3b858e+'.'+_0x29faaf[_0x2fe1cb('0x1c')]+'\x20'+parseOperator(_0x29faaf[_0x2fe1cb('0x2a')]);if(_[_0x2fe1cb('0x0')]([_0x2fe1cb('0x2c'),_0x2fe1cb('0xb')],_0x29faaf['operator']))_0x57927d[_0x2fe1cb('0x2b')]='('+_0x57927d[_0x2fe1cb('0x2b')]+'\x20OR\x20'+_0x3b858e+'.'+_0x29faaf[_0x2fe1cb('0x1c')]+'\x20IS\x20NULL)';return _0x57927d['value']=parseValue(_0x549718,_0x29faaf[_0x2fe1cb('0x2a')],_0x29faaf['value']),_0x57927d;};function parseOperator(_0x3867a8){const _0x3c634d=_0x137fa6;let _0x1fb0fc;switch(_0x3867a8){case _0x3c634d('0xe'):_0x1fb0fc='IN\x20?';break;case'$notIn':_0x1fb0fc=_0x3c634d('0x31');break;case _0x3c634d('0x16'):_0x1fb0fc=_0x3c634d('0x6');break;case _0x3c634d('0x2c'):_0x1fb0fc=_0x3c634d('0x21');break;case _0x3c634d('0x7'):case _0x3c634d('0x30'):case _0x3c634d('0x1f'):_0x1fb0fc='LIKE\x20?';break;case _0x3c634d('0x10'):_0x1fb0fc='<\x20?';break;case _0x3c634d('0x32'):_0x1fb0fc=_0x3c634d('0xd');break;case _0x3c634d('0x29'):_0x1fb0fc=_0x3c634d('0x26');break;case _0x3c634d('0x14'):_0x1fb0fc=_0x3c634d('0x25');break;case'$between':_0x1fb0fc='BETWEEN\x20?\x20AND\x20?';break;}return _0x1fb0fc;}function parseValue(_0x18fb9a,_0x5c6b88,_0x72e94f){const _0x4ce835=_0x137fa6;let _0x18bd94={'start':undefined,'end':undefined};switch(_0x5c6b88){case'$in':case'$notIn':_0x18bd94[_0x4ce835('0x2d')]=_0x72e94f[_0x4ce835('0x2')](',');break;case _0x4ce835('0x7'):_0x18bd94['start']='%'+_0x72e94f+'%';break;case _0x4ce835('0x30'):_0x18bd94[_0x4ce835('0x2d')]=_0x72e94f+'%';break;case _0x4ce835('0x1f'):_0x18bd94[_0x4ce835('0x2d')]='%'+_0x72e94f;break;case _0x4ce835('0x1'):{const _0x57ab19=_0x45200e[_0x4ce835('0x2')](',');let _0x45200e=_0x57ab19[_0x4ce835('0xc')](),_0x151071=_0x57ab19[_0x4ce835('0x1a')]();_0x18fb9a===_0x4ce835('0x20')&&(_0x45200e=moment(_0x45200e)[_0x4ce835('0xa')](0x0,!![])[_0x4ce835('0x24')](),_0x151071=moment(_0x151071)[_0x4ce835('0xa')](0x0,!![])['add'](0x17,'hours')[_0x4ce835('0x27')](0x3b,_0x4ce835('0xf'))[_0x4ce835('0x27')](0x3b,_0x4ce835('0x13'))['format']()),_0x18bd94={'start':_0x45200e,'end':_0x151071};}break;default:_0x18bd94[_0x4ce835('0x2d')]=_0x72e94f;break;}return _0x18bd94;} \ No newline at end of file +const a996_0x316e=['split','CAST(','$endsWith','parseSearch','startsWith','conditions','forEach','add','>\x20?','slice','shift','field','$between','sqlOperator','$ne','[$and]','format','replace','$lte','$in','start','\x20IS\x20NULL)','castTo','moment','buildExpression','<>\x20?','\x20AS\x20','[$or]','lodash','$gt','YYYY-MM-DD','operator','\x20OR\x20','indexOf','$eq','text','match','IN\x20?','DATE','>=\x20?','length','$substring','<\x20?','filter','and','NOT\x20IN\x20?','minutes','$gte','$notIn','value','LIKE\x20?','includes','seconds','map','$startsWith'];(function(_0x1ddd9c,_0x31c62b){const _0x316e81=function(_0x49f3c5){while(--_0x49f3c5){_0x1ddd9c['push'](_0x1ddd9c['shift']());}};_0x316e81(++_0x31c62b);}(a996_0x316e,0x10f));const a996_0x49f3=function(_0x1ddd9c,_0x31c62b){_0x1ddd9c=_0x1ddd9c-0xcb;let _0x316e81=a996_0x316e[_0x1ddd9c];return _0x316e81;};const a996_0x522d1a=a996_0x49f3;'use strict';const _=require(a996_0x522d1a(0xeb)),moment=require(a996_0x522d1a(0xe6));exports[a996_0x522d1a(0xd2)]=function(_0x131939){const _0xc4f9b7=a996_0x522d1a,_0x4bb2cf={'conditions':[]};_0x4bb2cf[_0xc4f9b7(0xdc)]=_[_0xc4f9b7(0xd3)](_0x131939,_0xc4f9b7(0xea))?'or':_0xc4f9b7(0xfb);const _0x1effd0=_0x131939[_0xc4f9b7(0xe0)](_0xc4f9b7(0xde),'')[_0xc4f9b7(0xe0)](_0xc4f9b7(0xea),'')['split']('||');for(let _0x433dcd=0x0;_0x433dcd<_0x1effd0[_0xc4f9b7(0xf7)];_0x433dcd++){const _0x1904f5=_0x1effd0[_0x433dcd]['split'](':='),_0x22de81=_0x1904f5[0x0],_0x315475=_0x1904f5[_0xc4f9b7(0xd8)](0x1);_0x315475[_0xc4f9b7(0xd5)](function(_0x47133f){const _0x3a6b6e=_0xc4f9b7,_0x28f2e3=_0x47133f[_0x3a6b6e(0xcf)]('[')[_0x3a6b6e(0xd9)](),_0x4e7b70=_0x47133f[_0x3a6b6e(0xf3)](/\[(.*?)\]/g);_0x4e7b70[_0x3a6b6e(0xd5)](function(_0xd3aca0){const _0x4526a0=_0x3a6b6e,_0x885c49=_0xd3aca0['split']('[')[_0x4526a0(0xfa)](function(_0x547354){const _0x20c1d5=_0x4526a0;return _0x547354[_0x20c1d5(0xf0)](']')>-0x1;})[_0x4526a0(0xcd)](function(_0x1d4df0){const _0x2be70d=_0x4526a0;return _0x1d4df0[_0x2be70d(0xcf)](']')[0x0];})[0x0];_0x4bb2cf[_0x4526a0(0xd4)]['push']({'field':_0x22de81,'operator':_0x28f2e3,'value':_0x885c49});});});}return _0x4bb2cf;},exports[a996_0x522d1a(0xe7)]=function(_0x84646a,_0x30fdb9,_0x4ededc){const _0x543e96=a996_0x522d1a,_0x2e6ea={};if(_0x30fdb9===_0x543e96(0xf5)){if(_0x4ededc['operator']===_0x543e96(0xf1))_0x4ededc[_0x543e96(0xee)]='$between',_0x4ededc[_0x543e96(0x100)]+=','+_0x4ededc[_0x543e96(0x100)];else _[_0x543e96(0xcb)]([_0x543e96(0xec),'$lte'],_0x4ededc['operator'])&&(_0x4ededc[_0x543e96(0x100)]=moment(_0x4ededc[_0x543e96(0x100)])['add'](0x1,'days')[_0x543e96(0xdf)](_0x543e96(0xed)));}_0x4ededc[_0x543e96(0xe5)]?(_0x30fdb9=_0x4ededc['castTo'],_0x2e6ea[_0x543e96(0xf2)]=_0x543e96(0xd0)+_0x84646a+'.'+_0x4ededc['field']+_0x543e96(0xe9)+_0x4ededc[_0x543e96(0xe5)]+')\x20'+parseOperator(_0x4ededc[_0x543e96(0xee)])):_0x2e6ea['text']=_0x84646a+'.'+_0x4ededc[_0x543e96(0xda)]+'\x20'+parseOperator(_0x4ededc[_0x543e96(0xee)]);if(_['includes'](['$ne','$notIn'],_0x4ededc[_0x543e96(0xee)]))_0x2e6ea['text']='('+_0x2e6ea[_0x543e96(0xf2)]+_0x543e96(0xef)+_0x84646a+'.'+_0x4ededc['field']+_0x543e96(0xe4);return _0x2e6ea[_0x543e96(0x100)]=parseValue(_0x30fdb9,_0x4ededc[_0x543e96(0xee)],_0x4ededc[_0x543e96(0x100)]),_0x2e6ea;};function parseOperator(_0x11dba9){const _0x36db01=a996_0x522d1a;let _0x183ceb;switch(_0x11dba9){case'$in':_0x183ceb=_0x36db01(0xf4);break;case _0x36db01(0xff):_0x183ceb=_0x36db01(0xfc);break;case _0x36db01(0xf1):_0x183ceb='=\x20?';break;case _0x36db01(0xdd):_0x183ceb=_0x36db01(0xe8);break;case _0x36db01(0xf8):case'$startsWith':case _0x36db01(0xd1):_0x183ceb=_0x36db01(0x101);break;case'$lt':_0x183ceb=_0x36db01(0xf9);break;case _0x36db01(0xec):_0x183ceb=_0x36db01(0xd7);break;case _0x36db01(0xe1):_0x183ceb='<=\x20?';break;case _0x36db01(0xfe):_0x183ceb=_0x36db01(0xf6);break;case _0x36db01(0xdb):_0x183ceb='BETWEEN\x20?\x20AND\x20?';break;}return _0x183ceb;}function parseValue(_0x513289,_0x1335b0,_0xcb825b){const _0x4d6dd1=a996_0x522d1a;let _0x26d6d1={'start':undefined,'end':undefined};switch(_0x1335b0){case _0x4d6dd1(0xe2):case'$notIn':_0x26d6d1['start']=_0xcb825b['split'](',');break;case _0x4d6dd1(0xf8):_0x26d6d1[_0x4d6dd1(0xe3)]='%'+_0xcb825b+'%';break;case _0x4d6dd1(0xce):_0x26d6d1['start']=_0xcb825b+'%';break;case _0x4d6dd1(0xd1):_0x26d6d1[_0x4d6dd1(0xe3)]='%'+_0xcb825b;break;case _0x4d6dd1(0xdb):{const _0x258c7c=_0x5afd44[_0x4d6dd1(0xcf)](',');let _0x5afd44=_0x258c7c[_0x4d6dd1(0xd9)](),_0x308c8c=_0x258c7c['pop']();_0x513289===_0x4d6dd1(0xf5)&&(_0x5afd44=moment(_0x5afd44)['utcOffset'](0x0,!![])[_0x4d6dd1(0xdf)](),_0x308c8c=moment(_0x308c8c)['utcOffset'](0x0,!![])[_0x4d6dd1(0xd6)](0x17,'hours')[_0x4d6dd1(0xd6)](0x3b,_0x4d6dd1(0xfd))[_0x4d6dd1(0xd6)](0x3b,_0x4d6dd1(0xcc))[_0x4d6dd1(0xdf)]()),_0x26d6d1={'start':_0x5afd44,'end':_0x308c8c};}break;default:_0x26d6d1[_0x4d6dd1(0xe3)]=_0xcb825b;break;}return _0x26d6d1;} \ No newline at end of file diff --git a/server/components/parsers/qs.js b/server/components/parsers/qs.js index f136ac1..553d8c0 100644 --- a/server/components/parsers/qs.js +++ b/server/components/parsers/qs.js @@ -1 +1 @@ -const a835_0x5e0f=['match','DATE','format','unsigned','find','filters','split','gte','limit','getFullTextValue','parse','offset','isEmail','isArray','replace','$gte','lte','forOwn','subtract','$lte','lodash','priority','col','length','includes','YYYY-MM-DD','push','cast','isNumeric','isPlainObject','map','undefined','^[+]?[0-9]*$','utc','substr','isString','isEmpty','unset','sort','omit','forEach','moment','isObject'];(function(_0x4f1811,_0x5e0fc8){const _0x46f7ba=function(_0x242fb0){while(--_0x242fb0){_0x4f1811['push'](_0x4f1811['shift']());}};_0x46f7ba(++_0x5e0fc8);}(a835_0x5e0f,0xe9));const a835_0x46f7=function(_0x4f1811,_0x5e0fc8){_0x4f1811=_0x4f1811-0x0;let _0x46f7ba=a835_0x5e0f[_0x4f1811];return _0x46f7ba;};const _0x1ee86c=a835_0x46f7;'use strict';const _=require(_0x1ee86c('0x2')),sequelize=require('sequelize'),moment=require(_0x1ee86c('0x17')),Op=sequelize['Op'],LIMIT_VALUE=0xfa;exports['fields']=function(_0x242fb0){let _0x4c93b9=null;return _0x242fb0&&(_0x4c93b9=_0x242fb0['split'](',')),_0x4c93b9;},exports[_0x1ee86c('0x1e')]=function(_0x2e47c8,_0xb7e37d){const _0x5b9925=_0x1ee86c,_0x1d28ab={};return!_[_0x5b9925('0x12')](_0x2e47c8)&&_[_0x5b9925('0x2a')](_0x2e47c8,function(_0x591c64,_0x1115f8){const _0x3814b9=_0x5b9925;try{if(_0xb7e37d){const _0x2b9341=_[_0x3814b9('0x1d')](_0xb7e37d,{'name':_0x1115f8})||{};if(_0x2b9341['type']===_0x3814b9('0x1a')&&_[_0x3814b9('0xb')](_0x591c64)){const _0x384d95=JSON[_0x3814b9('0x23')](_0x591c64),_0x1c3139={[Op[_0x3814b9('0x20')]]:moment(moment(_0x384d95[_0x3814b9('0x28')])['format'](_0x3814b9('0x7')))[_0x3814b9('0xf')]()[_0x3814b9('0x1b')](),[Op[_0x3814b9('0x29')]]:moment(moment(_0x384d95[_0x3814b9('0x1')])[_0x3814b9('0x1b')](_0x3814b9('0x7')))['utc']()[_0x3814b9('0x0')](0x1,'s')[_0x3814b9('0x1b')]()};_0x1d28ab[_0x1115f8]=_0x1c3139;}else _0x1d28ab[_0x1115f8]=_[_0x3814b9('0x26')](_0x591c64)?_0x591c64:JSON['parse'](_0x591c64);}else _0x1d28ab[_0x1115f8]=_[_0x3814b9('0x26')](_0x591c64)?_0x591c64:JSON[_0x3814b9('0x23')](_0x591c64);}catch(_0xe97956){_0x1d28ab[_0x1115f8]=_0x591c64[_0x3814b9('0x1f')](',');}}),_0x1d28ab;},exports[_0x1ee86c('0x21')]=function(_0x2310fe){return _0x2310fe=parseInt(_0x2310fe,0xa),(!_0x2310fe||_0x2310fe<0x0)&&(_0x2310fe=LIMIT_VALUE),_0x2310fe;},exports[_0x1ee86c('0x24')]=function(_0x4b976f){return _0x4b976f=parseInt(_0x4b976f,0xa),(!_0x4b976f||_0x4b976f<0x0)&&(_0x4b976f=0x0),_0x4b976f;},exports[_0x1ee86c('0x14')]=function(_0x49d4c1){const _0x4f703=_0x1ee86c;let _0x395083,_0x46d4c0=null;return _0x49d4c1&&(_0x395083=_0x49d4c1[_0x4f703('0x1f')](','),_0x46d4c0=_[_0x4f703('0xc')](_0x395083,function(_0x56ffcd){const _0x2613ed=_0x4f703;return _0x56ffcd['indexOf']('-')===0x0?[_0x56ffcd==='priority'?sequelize['cast'](sequelize['col'](_0x2613ed('0x3')),_0x2613ed('0x1c')):_0x56ffcd[_0x2613ed('0x10')](0x1),'DESC']:[_0x56ffcd===_0x2613ed('0x3')?sequelize[_0x2613ed('0x9')](sequelize[_0x2613ed('0x4')]('priority'),'unsigned'):_0x56ffcd,'ASC'];})),_0x46d4c0;},exports[_0x1ee86c('0x15')]=function(_0x2e1a33,_0x20856b){const _0x5a29a7=_0x1ee86c;if(_[_0x5a29a7('0x12')](_0x2e1a33))return _0x2e1a33;if(_['isArray'](_0x2e1a33)){for(let _0x3ed38d=0x0;_0x3ed38d<_0x2e1a33[_0x5a29a7('0x5')];_0x3ed38d+=0x1){_0x2e1a33[_0x3ed38d]=this[_0x5a29a7('0x15')](_0x2e1a33[_0x3ed38d],_0x20856b);}return _0x2e1a33;}if(!_[_0x5a29a7('0x18')](_0x2e1a33))return _0x2e1a33;_[_0x5a29a7('0x11')](_0x20856b)&&(_0x20856b=[_0x20856b]);if(!_[_0x5a29a7('0x26')](_0x20856b))return _0x2e1a33;for(let _0xe98e8d=0x0;_0xe98e8d<_0x20856b[_0x5a29a7('0x5')];_0xe98e8d+=0x1){_[_0x5a29a7('0x13')](_0x2e1a33,_0x20856b[_0xe98e8d]);}for(const _0xd0b18d in _0x2e1a33){typeof _0x2e1a33[_0xd0b18d]!==_0x5a29a7('0xd')&&(_0x2e1a33[_0xd0b18d]=this[_0x5a29a7('0x15')](_0x2e1a33[_0xd0b18d],_0x20856b));}return _0x2e1a33;},exports[_0x1ee86c('0xa')]=function(_0x3e5d52){const _0x29f851=_0x1ee86c;return _0x3e5d52[_0x29f851('0x19')](RegExp(_0x29f851('0xe')))?!![]:![];},exports[_0x1ee86c('0x25')]=function(_0x3a8409){const _0x3a36a7=_0x1ee86c;return _0x3a8409[_0x3a36a7('0x19')](/^\S+@\S+$/)?!![]:![];},exports[_0x1ee86c('0x22')]=function(_0x133568){const _0x44ce35=_0x1ee86c,_0x4b7d1c=[];return _0x133568[_0x44ce35('0x1f')](/[ ,]+/)[_0x44ce35('0x16')](function(_0xa03596){const _0x34ceb0=_0x44ce35;_0xa03596=_0xa03596[_0x34ceb0('0x27')](/([^:]")"+/g,'$1'),_0xa03596='+'+_0xa03596+'*';if(_0xa03596[_0x34ceb0('0x6')]('@'))_0xa03596='\x22'+_0xa03596+'\x22';_0x4b7d1c[_0x34ceb0('0x8')](_0xa03596);}),_0x4b7d1c['join']('\x20');}; \ No newline at end of file +const a997_0x1dc8=['parse','match','filters','unsigned','undefined','length','offset','limit','replace','split','isObject','unset','substr','type','omit','DATE','moment','$gte','subtract','forOwn','col','utc','push','sort','getFullTextValue','^[+]?[0-9]*$','lte','YYYY-MM-DD','map','isString','DESC','isEmpty','priority','format','lodash','cast','isArray','ASC','isNumeric'];(function(_0x2fcaeb,_0x20729f){const _0x1dc832=function(_0x36349a){while(--_0x36349a){_0x2fcaeb['push'](_0x2fcaeb['shift']());}};_0x1dc832(++_0x20729f);}(a997_0x1dc8,0xd4));const a997_0x3634=function(_0x2fcaeb,_0x20729f){_0x2fcaeb=_0x2fcaeb-0x1f0;let _0x1dc832=a997_0x1dc8[_0x2fcaeb];return _0x1dc832;};const a997_0x4fe9b4=a997_0x3634;'use strict';const _=require(a997_0x4fe9b4(0x201)),sequelize=require('sequelize'),moment=require(a997_0x4fe9b4(0x216)),Op=sequelize['Op'],LIMIT_VALUE=0xfa;exports['fields']=function(_0x32e595){const _0x37fee5=a997_0x4fe9b4;let _0xe26a34=null;return _0x32e595&&(_0xe26a34=_0x32e595[_0x37fee5(0x20f)](',')),_0xe26a34;},exports[a997_0x4fe9b4(0x208)]=function(_0x2af7a2,_0x1d4bcb){const _0x42188c=a997_0x4fe9b4,_0x357d15={};return!_[_0x42188c(0x1fe)](_0x2af7a2)&&_[_0x42188c(0x1f2)](_0x2af7a2,function(_0x59a14c,_0x69dac1){const _0x311e4f=_0x42188c;try{if(_0x1d4bcb){const _0x437369=_['find'](_0x1d4bcb,{'name':_0x69dac1})||{};if(_0x437369[_0x311e4f(0x213)]===_0x311e4f(0x215)&&_['isPlainObject'](_0x59a14c)){const _0x4b9019=JSON['parse'](_0x59a14c),_0x23dc2a={[Op['gte']]:moment(moment(_0x4b9019[_0x311e4f(0x1f0)])[_0x311e4f(0x200)](_0x311e4f(0x1fa)))[_0x311e4f(0x1f4)]()[_0x311e4f(0x200)](),[Op[_0x311e4f(0x1f9)]]:moment(moment(_0x4b9019['$lte'])[_0x311e4f(0x200)]('YYYY-MM-DD'))['utc']()[_0x311e4f(0x1f1)](0x1,'s')[_0x311e4f(0x200)]()};_0x357d15[_0x69dac1]=_0x23dc2a;}else _0x357d15[_0x69dac1]=_[_0x311e4f(0x203)](_0x59a14c)?_0x59a14c:JSON[_0x311e4f(0x206)](_0x59a14c);}else _0x357d15[_0x69dac1]=_['isArray'](_0x59a14c)?_0x59a14c:JSON['parse'](_0x59a14c);}catch(_0x2e4560){_0x357d15[_0x69dac1]=_0x59a14c[_0x311e4f(0x20f)](',');}}),_0x357d15;},exports[a997_0x4fe9b4(0x20d)]=function(_0x1a5b63){return _0x1a5b63=parseInt(_0x1a5b63,0xa),(!_0x1a5b63||_0x1a5b63<0x0)&&(_0x1a5b63=LIMIT_VALUE),_0x1a5b63;},exports[a997_0x4fe9b4(0x20c)]=function(_0x1ada77){return _0x1ada77=parseInt(_0x1ada77,0xa),(!_0x1ada77||_0x1ada77<0x0)&&(_0x1ada77=0x0),_0x1ada77;},exports[a997_0x4fe9b4(0x1f6)]=function(_0x43b872){const _0x1b8ab3=a997_0x4fe9b4;let _0x3da96f,_0x18d639=null;return _0x43b872&&(_0x3da96f=_0x43b872['split'](','),_0x18d639=_[_0x1b8ab3(0x1fb)](_0x3da96f,function(_0x3e4201){const _0x3585d3=_0x1b8ab3;return _0x3e4201['indexOf']('-')===0x0?[_0x3e4201===_0x3585d3(0x1ff)?sequelize[_0x3585d3(0x202)](sequelize[_0x3585d3(0x1f3)](_0x3585d3(0x1ff)),_0x3585d3(0x209)):_0x3e4201[_0x3585d3(0x212)](0x1),_0x3585d3(0x1fd)]:[_0x3e4201===_0x3585d3(0x1ff)?sequelize[_0x3585d3(0x202)](sequelize['col'](_0x3585d3(0x1ff)),_0x3585d3(0x209)):_0x3e4201,_0x3585d3(0x204)];})),_0x18d639;},exports[a997_0x4fe9b4(0x214)]=function(_0x1cf0ba,_0x1fdb89){const _0x1f6e7f=a997_0x4fe9b4;if(_[_0x1f6e7f(0x1fe)](_0x1cf0ba))return _0x1cf0ba;if(_['isArray'](_0x1cf0ba)){for(let _0x227d8d=0x0;_0x227d8d<_0x1cf0ba[_0x1f6e7f(0x20b)];_0x227d8d+=0x1){_0x1cf0ba[_0x227d8d]=this[_0x1f6e7f(0x214)](_0x1cf0ba[_0x227d8d],_0x1fdb89);}return _0x1cf0ba;}if(!_[_0x1f6e7f(0x210)](_0x1cf0ba))return _0x1cf0ba;_[_0x1f6e7f(0x1fc)](_0x1fdb89)&&(_0x1fdb89=[_0x1fdb89]);if(!_[_0x1f6e7f(0x203)](_0x1fdb89))return _0x1cf0ba;for(let _0xbb0d0c=0x0;_0xbb0d0c<_0x1fdb89[_0x1f6e7f(0x20b)];_0xbb0d0c+=0x1){_[_0x1f6e7f(0x211)](_0x1cf0ba,_0x1fdb89[_0xbb0d0c]);}for(const _0x1a964c in _0x1cf0ba){typeof _0x1cf0ba[_0x1a964c]!==_0x1f6e7f(0x20a)&&(_0x1cf0ba[_0x1a964c]=this['omit'](_0x1cf0ba[_0x1a964c],_0x1fdb89));}return _0x1cf0ba;},exports[a997_0x4fe9b4(0x205)]=function(_0x5706b6){const _0x5d9c90=a997_0x4fe9b4;return _0x5706b6[_0x5d9c90(0x207)](RegExp(_0x5d9c90(0x1f8)))?!![]:![];},exports['isEmail']=function(_0x16b3e9){const _0x3b9f05=a997_0x4fe9b4;return _0x16b3e9[_0x3b9f05(0x207)](/^\S+@\S+$/)?!![]:![];},exports[a997_0x4fe9b4(0x1f7)]=function(_0x3be602){const _0x4af812=[];return _0x3be602['split'](/[ ,]+/)['forEach'](function(_0x331526){const _0x39ce13=a997_0x3634;_0x331526=_0x331526[_0x39ce13(0x20e)](/([^:]")"+/g,'$1'),_0x331526='+'+_0x331526+'*';if(_0x331526['includes']('@'))_0x331526='\x22'+_0x331526+'\x22';_0x4af812[_0x39ce13(0x1f5)](_0x331526);}),_0x4af812['join']('\x20');}; \ No newline at end of file diff --git a/server/config/config.service.js b/server/config/config.service.js index 18b13ff..75f4bf6 100644 --- a/server/config/config.service.js +++ b/server/config/config.service.js @@ -1 +1 @@ -const a836_0x1d35=['string','reduce','./env_definitions','exports','test','undefined','true','toLowerCase','boolean','defineProperties','production'];(function(_0x8989b4,_0x1d358d){const _0x54ec50=function(_0x353c88){while(--_0x353c88){_0x8989b4['push'](_0x8989b4['shift']());}};_0x54ec50(++_0x1d358d);}(a836_0x1d35,0x117));const a836_0x54ec=function(_0x8989b4,_0x1d358d){_0x8989b4=_0x8989b4-0x0;let _0x54ec50=a836_0x1d35[_0x8989b4];return _0x54ec50;};const _0x1e3f69=a836_0x54ec,{camelCase}=require('lodash'),{validKeys}=require(_0x1e3f69('0x9')),VALID_KEYS=validKeys;function toBoolean(_0x353c88,_0x2a0dfa=![]){const _0x395b82=_0x1e3f69;return typeof _0x353c88===_0x395b82('0x1')?_0x2a0dfa:Boolean(typeof _0x353c88==='string'?_0x353c88[_0x395b82('0x3')]()===_0x395b82('0x2'):_0x353c88);}function toNumber(_0x113d97,_0x126da1=null){const _0x3f2915=_0x1e3f69,_0x4a4b21=typeof _0x113d97===_0x3f2915('0x1')||_0x113d97===null?NaN:Number(_0x113d97);return isNaN(_0x4a4b21)?_0x126da1:_0x4a4b21;}function toString(_0x405fdd,_0x3eda9e=''){return typeof _0x405fdd==='undefined'||_0x405fdd===null?_0x3eda9e:String(_0x405fdd);}function getPropertiesConfiguration(){const _0x21b8d3=_0x1e3f69,_0x413113={'enumerable':!![],'configurable':![],'writable':![]};return VALID_KEYS[_0x21b8d3('0x8')]((_0x324599,{env:_0x5deaf5,type:_0x52f2eb,defaultValue:_0x27408a})=>{const _0xddeccb=_0x21b8d3;let _0x28b8f3=null;const _0x4d2f17=process['env'][_0x5deaf5];switch(_0x52f2eb){case _0xddeccb('0x4'):_0x28b8f3=toBoolean(_0x4d2f17,_0x27408a);break;case'number':_0x28b8f3=toNumber(_0x4d2f17,_0x27408a);break;case _0xddeccb('0x7'):_0x28b8f3=toString(_0x4d2f17,_0x27408a);break;default:break;}if(_0x5deaf5==='NODE_ENV')_0x324599={..._0x324599,'isProduction':{'value':_0x28b8f3===_0xddeccb('0x6'),..._0x413113},'isTest':{'value':_0x28b8f3===_0xddeccb('0x0'),..._0x413113},'environment':{'value':_0x28b8f3,..._0x413113}};else{const _0x24f646=camelCase(_0x5deaf5['replace'](/^XC_/,''));_0x324599={..._0x324599,[_0x24f646]:{'value':_0x28b8f3,..._0x413113}};}return _0x324599;},{});}let configService=null;function getConfigService(){const _0x3b1bad=_0x1e3f69;if(configService===null){configService={};const _0x5bb7be=getPropertiesConfiguration();Object[_0x3b1bad('0x5')](configService,_0x5bb7be);}return configService;}module[_0x1e3f69('0xa')]={'getConfigService':getConfigService}; \ No newline at end of file +const a998_0x15e7=['string','boolean','true','test','number','undefined','toLowerCase','NODE_ENV','env','defineProperties','getConfigService','lodash','exports','replace'];(function(_0x4e83cf,_0x5ecf14){const _0x15e75d=function(_0x17616d){while(--_0x17616d){_0x4e83cf['push'](_0x4e83cf['shift']());}};_0x15e75d(++_0x5ecf14);}(a998_0x15e7,0x14e));const a998_0x1761=function(_0x4e83cf,_0x5ecf14){_0x4e83cf=_0x4e83cf-0xa1;let _0x15e75d=a998_0x15e7[_0x4e83cf];return _0x15e75d;};const a998_0xa9509b=a998_0x1761,{camelCase}=require(a998_0xa9509b(0xae)),{validKeys}=require('./env_definitions'),VALID_KEYS=validKeys;function toBoolean(_0x4e9260,_0x22572b=![]){const _0x3df16a=a998_0xa9509b;return typeof _0x4e9260===_0x3df16a(0xa8)?_0x22572b:Boolean(typeof _0x4e9260===_0x3df16a(0xa3)?_0x4e9260[_0x3df16a(0xa9)]()===_0x3df16a(0xa5):_0x4e9260);}function toNumber(_0x4a63e2,_0x4d3cfa=null){const _0x2b67a6=a998_0xa9509b,_0x64af5d=typeof _0x4a63e2===_0x2b67a6(0xa8)||_0x4a63e2===null?NaN:Number(_0x4a63e2);return isNaN(_0x64af5d)?_0x4d3cfa:_0x64af5d;}function toString(_0x4f3522,_0x4f4f43=''){const _0x1352d6=a998_0xa9509b;return typeof _0x4f3522===_0x1352d6(0xa8)||_0x4f3522===null?_0x4f4f43:String(_0x4f3522);}function getPropertiesConfiguration(){const _0x1552e7={'enumerable':!![],'configurable':![],'writable':![]};return VALID_KEYS['reduce']((_0x2246af,{env:_0x1b8fcf,type:_0x3fb7c9,defaultValue:_0xa340a5})=>{const _0x3efd95=a998_0x1761;let _0x35c170=null;const _0x4f8be4=process[_0x3efd95(0xab)][_0x1b8fcf];switch(_0x3fb7c9){case _0x3efd95(0xa4):_0x35c170=toBoolean(_0x4f8be4,_0xa340a5);break;case _0x3efd95(0xa7):_0x35c170=toNumber(_0x4f8be4,_0xa340a5);break;case'string':_0x35c170=toString(_0x4f8be4,_0xa340a5);break;default:break;}if(_0x1b8fcf===_0x3efd95(0xaa))_0x2246af={..._0x2246af,'isProduction':{'value':_0x35c170==='production',..._0x1552e7},'isTest':{'value':_0x35c170===_0x3efd95(0xa6),..._0x1552e7},'environment':{'value':_0x35c170,..._0x1552e7}};else{const _0x3f32a5=camelCase(_0x1b8fcf[_0x3efd95(0xa2)](/^XC_/,''));_0x2246af={..._0x2246af,[_0x3f32a5]:{'value':_0x35c170,..._0x1552e7}};}return _0x2246af;},{});}let configService=null;function getConfigService(){const _0x5ad6e1=a998_0xa9509b;if(configService===null){configService={};const _0x58285d=getPropertiesConfiguration();Object[_0x5ad6e1(0xac)](configService,_0x58285d);}return configService;}module[a998_0xa9509b(0xa1)][a998_0xa9509b(0xad)]=getConfigService; \ No newline at end of file diff --git a/server/config/environment/development.js b/server/config/environment/development.js index 7c0e6e0..b817029 100644 --- a/server/config/environment/development.js +++ b/server/config/environment/development.js @@ -1 +1 @@ -const a837_0x45f3=['mysqlUser','agiPort','jstz','asteriskPassword','../config.service','./shared','dbPort','redisHost','asteriskPort','asteriskHost','googleId','redisPort','agiIp','exports','dbHost','utf8mb4','/api/auth/google/callback','rpcIp','googleSecret','asteriskUsername','getConfigService','rpcPort','offsetStr','utf8_general_ci','seedDb','timezones','domain','sessionSecret','mysqlDatabase','name','mysql','mysqlPassword','utf8'];(function(_0x2c291c,_0x45f303){const _0x42938b=function(_0x150836){while(--_0x150836){_0x2c291c['push'](_0x2c291c['shift']());}};_0x42938b(++_0x45f303);}(a837_0x45f3,0x6d));const a837_0x4293=function(_0x2c291c,_0x45f303){_0x2c291c=_0x2c291c-0x0;let _0x42938b=a837_0x45f3[_0x2c291c];return _0x42938b;};const _0x17fc65=a837_0x4293;'use strict';const shared=require(_0x17fc65('0x1c')),jstz=require(_0x17fc65('0x19')),timezone=jstz['determine'](),timezoneOffset=shared[_0x17fc65('0xf')][timezone[_0x17fc65('0x13')]()][_0x17fc65('0xc')],cs=require(_0x17fc65('0x1b'))[_0x17fc65('0xa')]();module[_0x17fc65('0x3')]={'sequelize':{'database':cs[_0x17fc65('0x12')],'username':cs['mysqlUser'],'password':cs[_0x17fc65('0x15')],'options':{'host':cs[_0x17fc65('0x4')],'port':cs[_0x17fc65('0x1d')],'dialect':'mysql','dialectOptions':{'charset':_0x17fc65('0x5')},'timezone':timezoneOffset,'define':{'charset':_0x17fc65('0x16'),'collate':'utf8_general_ci'}}},'sequelizeHistory':{'database':cs[_0x17fc65('0x12')],'username':cs[_0x17fc65('0x17')],'password':cs[_0x17fc65('0x15')],'options':{'host':cs['dbHost'],'port':cs[_0x17fc65('0x1d')],'dialect':_0x17fc65('0x14'),'dialectOptions':{'charset':_0x17fc65('0x5')},'logging':![],'timezone':timezoneOffset,'define':{'charset':_0x17fc65('0x16'),'collate':_0x17fc65('0xd')}}},'asterisk':{'ip':cs[_0x17fc65('0x20')],'port':cs[_0x17fc65('0x1f')],'username':cs[_0x17fc65('0x9')],'password':cs[_0x17fc65('0x1a')]},'redis':{'host':cs[_0x17fc65('0x1e')],'port':cs[_0x17fc65('0x1')]},'rpc':{'port':cs[_0x17fc65('0xb')],'ip':cs[_0x17fc65('0x7')]},'agi':{'port':cs[_0x17fc65('0x18')],'ip':cs[_0x17fc65('0x2')]},'seedDB':cs[_0x17fc65('0xe')],'google':{'clientID':cs[_0x17fc65('0x0')],'clientSecret':cs[_0x17fc65('0x8')],'callbackURL':cs[_0x17fc65('0x10')]+_0x17fc65('0x6')},'secrets':{'session':cs[_0x17fc65('0x11')],'recording':cs['recordingSecret']},'xdr':{'disabled':![]}}; \ No newline at end of file +const a999_0x2532=['dbHost','utf8mb4','utf8_general_ci','mysqlUser','googleId','asteriskPassword','../config.service','redisPort','mysqlDatabase','domain','googleSecret','mysql','dbPort','asteriskHost','exports','rpcPort','determine','asteriskPort','agiIp','utf8','recordingSecret','name','rpcIp','mysqlPassword','redisHost'];(function(_0x2e61c0,_0x4c52e0){const _0x253226=function(_0x51e9b0){while(--_0x51e9b0){_0x2e61c0['push'](_0x2e61c0['shift']());}};_0x253226(++_0x4c52e0);}(a999_0x2532,0xe0));const a999_0x51e9=function(_0x2e61c0,_0x4c52e0){_0x2e61c0=_0x2e61c0-0x1eb;let _0x253226=a999_0x2532[_0x2e61c0];return _0x253226;};const a999_0x180b21=a999_0x51e9;'use strict';const shared=require('./shared'),jstz=require('jstz'),timezone=jstz[a999_0x180b21(0x1fc)](),timezoneOffset=shared['timezones'][timezone[a999_0x180b21(0x201)]()]['offsetStr'],cs=require(a999_0x180b21(0x1f2))['getConfigService']();module[a999_0x180b21(0x1fa)]={'sequelize':{'database':cs[a999_0x180b21(0x1f4)],'username':cs[a999_0x180b21(0x1ef)],'password':cs[a999_0x180b21(0x203)],'options':{'host':cs[a999_0x180b21(0x1ec)],'port':cs[a999_0x180b21(0x1f8)],'dialect':'mysql','dialectOptions':{'charset':'utf8mb4'},'timezone':timezoneOffset,'define':{'charset':a999_0x180b21(0x1ff),'collate':'utf8_general_ci'}}},'sequelizeHistory':{'database':cs['mysqlDatabase'],'username':cs['mysqlUser'],'password':cs[a999_0x180b21(0x203)],'options':{'host':cs[a999_0x180b21(0x1ec)],'port':cs[a999_0x180b21(0x1f8)],'dialect':a999_0x180b21(0x1f7),'dialectOptions':{'charset':a999_0x180b21(0x1ed)},'logging':![],'timezone':timezoneOffset,'define':{'charset':a999_0x180b21(0x1ff),'collate':a999_0x180b21(0x1ee)}}},'asterisk':{'ip':cs[a999_0x180b21(0x1f9)],'port':cs[a999_0x180b21(0x1fd)],'username':cs['asteriskUsername'],'password':cs[a999_0x180b21(0x1f1)]},'redis':{'host':cs[a999_0x180b21(0x1eb)],'port':cs[a999_0x180b21(0x1f3)]},'rpc':{'port':cs[a999_0x180b21(0x1fb)],'ip':cs[a999_0x180b21(0x202)]},'agi':{'port':cs['agiPort'],'ip':cs[a999_0x180b21(0x1fe)]},'seedDB':cs['seedDb'],'google':{'clientID':cs[a999_0x180b21(0x1f0)],'clientSecret':cs[a999_0x180b21(0x1f6)],'callbackURL':cs[a999_0x180b21(0x1f5)]+'/api/auth/google/callback'},'secrets':{'session':cs['sessionSecret'],'recording':cs[a999_0x180b21(0x200)]},'xdr':{'disabled':![]}}; \ No newline at end of file diff --git a/server/config/environment/index.js b/server/config/environment/index.js index ee2e932..bc9c093 100644 --- a/server/config/environment/index.js +++ b/server/config/environment/index.js @@ -1 +1 @@ -const a838_0x12fb=['getConfigService','../environment/','environment','port','sessionSecret','seedDB','exports','appRoot','development','browserSyncPort','./shared','isProduction'];(function(_0xbad216,_0x12fb31){const _0x5aa604=function(_0x4a479e){while(--_0x4a479e){_0xbad216['push'](_0xbad216['shift']());}};_0x5aa604(++_0x12fb31);}(a838_0x12fb,0x14a));const a838_0x5aa6=function(_0xbad216,_0x12fb31){_0xbad216=_0xbad216-0x0;let _0x5aa604=a838_0x12fb[_0xbad216];return _0x5aa604;};const _0xdf9c5d=a838_0x5aa6;'use strict';const cs=require('../config.service')[_0xdf9c5d('0x6')](),all={'env':cs[_0xdf9c5d('0x8')],'root':global[_0xdf9c5d('0x1')],'browserSyncPort':cs[_0xdf9c5d('0x3')],'port':cs[_0xdf9c5d('0x9')],'ip':cs['ip'],'seedDB':cs[_0xdf9c5d('0xb')],'secrets':{'session':cs[_0xdf9c5d('0xa')],'recording':cs['recordingSecret']}},shared=require(_0xdf9c5d('0x4')),env=cs[_0xdf9c5d('0x5')]||cs['isTest']?cs['environment']:_0xdf9c5d('0x2'),variables=require(_0xdf9c5d('0x7')+env);module[_0xdf9c5d('0x0')]={...all,...shared,...variables}; \ No newline at end of file +const a1000_0x1a6c=['port','exports','../config.service','development','environment','sessionSecret','browserSyncPort','isProduction','isTest'];(function(_0x521598,_0x12a653){const _0x1a6c2f=function(_0x453696){while(--_0x453696){_0x521598['push'](_0x521598['shift']());}};_0x1a6c2f(++_0x12a653);}(a1000_0x1a6c,0x9c));const a1000_0x4536=function(_0x521598,_0x12a653){_0x521598=_0x521598-0xf7;let _0x1a6c2f=a1000_0x1a6c[_0x521598];return _0x1a6c2f;};const a1000_0x56113f=a1000_0x4536;'use strict';const cs=require(a1000_0x56113f(0xff))['getConfigService'](),all={'env':cs[a1000_0x56113f(0xf8)],'root':global['appRoot'],'browserSyncPort':cs[a1000_0x56113f(0xfa)],'port':cs[a1000_0x56113f(0xfd)],'ip':cs['ip'],'seedDB':cs['seedDB'],'secrets':{'session':cs[a1000_0x56113f(0xf9)],'recording':cs['recordingSecret']}},shared=require('./shared'),env=cs[a1000_0x56113f(0xfb)]||cs[a1000_0x56113f(0xfc)]?cs[a1000_0x56113f(0xf8)]:a1000_0x56113f(0xf7),variables=require('../environment/'+env);module[a1000_0x56113f(0xfe)]={...all,...shared,...variables}; \ No newline at end of file diff --git a/server/config/environment/shared.js b/server/config/environment/shared.js index 148299c..4664fdf 100644 --- a/server/config/environment/shared.js +++ b/server/config/environment/shared.js @@ -1 +1 @@ -var a839_0x4365=['-04:00','America/Juneau','Pacific/Noumea','America/Martinique','America/Nipigon','-03:00','+10:30','America/Glace_Bay','America/Dawson_Creek','America/Los_Angeles','Asia/Vladivostok','+05:45','America/Montevideo','America/Sao_Paulo','Asia/Yakutsk','America/Sitka','America/Argentina/Rio_Gallegos','Asia/Bishkek','America/Mazatlan','Asia/Shanghai','Pacific/Norfolk','+06:30','Asia/Tbilisi','Indian/Mauritius','Pacific/Tahiti','America/Winnipeg','-09:00','America/Edmonton','Antarctica/Syowa','Europe/Madrid','Africa/Maputo','Pacific/Funafuti','Australia/Darwin','America/Atikokan','Europe/Vienna','America/Kentucky/Louisville','America/Chicago','America/Mexico_City','Africa/Ndjamena','Europe/Andorra','admin','America/North_Dakota/New_Salem','+00:00','Asia/Karachi','America/Belem','Asia/Oral','Pacific/Pohnpei','+14:00','America/Argentina/Buenos_Aires','America/Phoenix','America/Managua','America/Lima','Europe/Amsterdam','Asia/Pyongyang','Asia/Bangkok','America/Matamoros','Africa/Abidjan','Europe/Stockholm','America/Ojinaga','+11:00','Atlantic/Azores','America/Porto_Velho','America/Cayenne','Europe/Kaliningrad','Pacific/Fiji','America/Swift_Current','America/Havana','Pacific/Chatham','Pacific/Pitcairn','+13:45','Africa/Khartoum','Europe/Kiev','Asia/Kolkata','America/Santa_Isabel','Australia/Lord_Howe','+10:00','Africa/El_Aaiun','Europe/Warsaw','Asia/Brunei','Antarctica/Vostok','+08:45','Pacific/Kosrae','America/Hermosillo','Africa/Johannesburg','-07:00','Europe/Budapest','Asia/Kuching','Europe/Berlin','America/Boise','Asia/Khandyga','Europe/Minsk','Asia/Dhaka','-03:30','America/Iqaluit','Africa/Tripoli','America/La_Paz','Europe/Istanbul','Asia/Novokuznetsk','Asia/Baghdad','Australia/Lindeman','Asia/Dubai','Asia/Sakhalin','+06:00','America/Tegucigalpa','America/Resolute','America/Costa_Rica','America/Indiana/Winamac','Asia/Jerusalem','Asia/Dili','Pacific/Rarotonga','Asia/Hebron','America/Argentina/Ushuaia','America/Jamaica','America/Guayaquil','America/Merida','Australia/Perth','Asia/Baku','America/Maceio','America/Manaus','Atlantic/Canary','Indian/Reunion','Asia/Amman','Asia/Almaty','America/Vancouver','Pacific/Galapagos','+13:00','Asia/Gaza','Europe/Zaporozhye','America/Argentina/Mendoza','Asia/Ust-Nera','Asia/Manila','Europe/Athens','+09:30','America/Port_of_Spain','Europe/Simferopol','Europe/Volgograd','Pacific/Niue','America/Argentina/San_Luis','Africa/Ceuta','America/Indiana/Petersburg','guest','Asia/Aqtobe','America/Rankin_Inlet','Asia/Jayapura','America/Indiana/Marengo','America/Whitehorse','Asia/Kathmandu','America/Moncton','America/Santiago','-08:00','America/Curacao','user','America/Araguaina','America/Santarem','Africa/Lagos','Asia/Riyadh','Europe/Copenhagen','Australia/Currie','Europe/Chisinau','Pacific/Apia','-06:00','Pacific/Fakaofo','America/Guatemala','Asia/Tehran','+12:00','America/Nassau','America/Rio_Branco','Europe/Uzhgorod','Pacific/Gambier','Africa/Algiers','Europe/Riga','Asia/Anadyr','America/Pangnirtung','Indian/Maldives','Asia/Singapore','Europe/Brussels','Asia/Tashkent','+05:00','America/Argentina/La_Rioja','Africa/Tunis','Asia/Ashgabat','America/Boa_Vista','Asia/Macau','America/Miquelon','Indian/Chagos','America/New_York','Australia/Hobart','Indian/Kerguelen','Asia/Yekaterinburg','Europe/Gibraltar','Asia/Novosibirsk','Asia/Urumqi','America/Argentina/Cordoba','America/Yellowknife','America/Yakutat','America/Blanc-Sablon','Asia/Colombo','Pacific/Pago_Pago','Asia/Hovd','America/Guyana','Asia/Jakarta','America/Menominee','Pacific/Port_Moresby','Europe/Monaco','Asia/Irkutsk','America/Indiana/Vincennes','America/Halifax','Pacific/Tarawa','-05:00','Europe/Tirane','Europe/Prague','Europe/Sofia','Antarctica/Troll','America/Cambridge_Bay','America/Belize','Pacific/Wake','Asia/Samarkand','America/Indiana/Indianapolis','Australia/Melbourne','America/Port-au-Prince','America/Argentina/Catamarca','Antarctica/Casey','+08:00','Europe/Belgrade','America/Cayman','America/Denver','America/Anchorage','America/Cuiaba','Pacific/Palau','America/Goose_Bay','Antarctica/Macquarie','Europe/Zurich','Europe/London','America/Argentina/Jujuy','-10:00','America/Barbados','+02:00','America/Puerto_Rico','Pacific/Auckland','Africa/Windhoek','Asia/Taipei','Europe/Malta','Asia/Ulaanbaatar','Europe/Rome','Pacific/Easter','Atlantic/Cape_Verde','-02:00','America/Bogota','America/Toronto','Asia/Qyzylorda','Asia/Kamchatka','Asia/Choibalsan','Asia/Beirut','America/Recife','Australia/Adelaide','+01:00','Asia/Qatar','Europe/Helsinki','Africa/Bissau','Asia/Srednekolymsk','America/Eirunepe','Asia/Dushanbe','America/Metlakatla','Africa/Accra','America/Fort_Nelson','Europe/Samara','Pacific/Honolulu','Pacific/Enderbury','+03:00','Europe/Bucharest','Atlantic/Faroe','Europe/Luxembourg','Australia/Eucla','Australia/Broken_Hill','Pacific/Guam','-11:00','Asia/Rangoon','Africa/Nairobi','Indian/Cocos','Pacific/Wallis','America/Bahia_Banderas','Antarctica/Palmer','Pacific/Kwajalein','+07:00','Africa/Casablanca','America/Rainy_River','America/Detroit','+04:00','Asia/Yerevan','America/Kentucky/Monticello','-04:30','Africa/Monrovia','+09:00','-01:00','America/Indiana/Knox','+08:30','Antarctica/Rothera','exports','America/Thunder_Bay','Pacific/Bougainville','Pacific/Guadalcanal'];(function(_0x5f3792,_0x436544){var _0x195a60=function(_0x3a78c4){while(--_0x3a78c4){_0x5f3792['push'](_0x5f3792['shift']());}};_0x195a60(++_0x436544);}(a839_0x4365,0xed));var a839_0x195a=function(_0x5f3792,_0x436544){_0x5f3792=_0x5f3792-0x0;var _0x195a60=a839_0x4365[_0x5f3792];return _0x195a60;};var _0x5fa5da=a839_0x195a;'use strict';module[_0x5fa5da('0x3c')]={'userRoles':[_0x5fa5da('0xcc'),_0x5fa5da('0xd7'),_0x5fa5da('0x68')],'timezones':{'Europe/Andorra':{'name':_0x5fa5da('0x67'),'utcOffset':0x3c,'offsetStr':_0x5fa5da('0x12'),'countries':['AD']},'Asia/Dubai':{'name':_0x5fa5da('0xa4'),'utcOffset':0xf0,'offsetStr':_0x5fa5da('0x32'),'countries':['AE','OM']},'Asia/Kabul':{'name':'Asia/Kabul','utcOffset':0x10e,'offsetStr':'+04:30','countries':['AF']},'Europe/Tirane':{'name':_0x5fa5da('0x111'),'utcOffset':0x3c,'offsetStr':'+01:00','countries':['AL']},'Asia/Yerevan':{'name':_0x5fa5da('0x33'),'utcOffset':0xf0,'offsetStr':_0x5fa5da('0x32'),'countries':['AM']},'Antarctica/Rothera':{'name':_0x5fa5da('0x3b'),'utcOffset':-0xb4,'offsetStr':_0x5fa5da('0x45'),'countries':['AQ']},'Antarctica/Palmer':{'name':_0x5fa5da('0x2c'),'utcOffset':-0xb4,'offsetStr':_0x5fa5da('0x45'),'countries':['AQ']},'Antarctica/Mawson':{'name':'Antarctica/Mawson','utcOffset':0x12c,'offsetStr':_0x5fa5da('0xf1'),'countries':['AQ']},'Antarctica/Davis':{'name':'Antarctica/Davis','utcOffset':0x1a4,'offsetStr':_0x5fa5da('0x2e'),'countries':['AQ']},'Antarctica/Casey':{'name':_0x5fa5da('0x11d'),'utcOffset':0x1e0,'offsetStr':_0x5fa5da('0x11e'),'countries':['AQ']},'Antarctica/Vostok':{'name':_0x5fa5da('0x8f'),'utcOffset':0x168,'offsetStr':'+06:00','countries':['AQ']},'Antarctica/DumontDUrville':{'name':'Antarctica/DumontDUrville','utcOffset':0x258,'offsetStr':_0x5fa5da('0x8b'),'countries':['AQ']},'Antarctica/Syowa':{'name':_0x5fa5da('0x5c'),'utcOffset':0xb4,'offsetStr':_0x5fa5da('0x1f'),'countries':['AQ']},'Antarctica/Troll':{'name':_0x5fa5da('0x114'),'utcOffset':0x0,'offsetStr':_0x5fa5da('0x6a'),'countries':['AQ']},'America/Argentina/Buenos_Aires':{'name':_0x5fa5da('0x70'),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['AR']},'America/Argentina/Cordoba':{'name':_0x5fa5da('0x100'),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['AR']},'America/Argentina/Salta':{'name':'America/Argentina/Salta','utcOffset':-0xb4,'offsetStr':_0x5fa5da('0x45'),'countries':['AR']},'America/Argentina/Jujuy':{'name':_0x5fa5da('0x129'),'utcOffset':-0xb4,'offsetStr':_0x5fa5da('0x45'),'countries':['AR']},'America/Argentina/Tucuman':{'name':'America/Argentina/Tucuman','utcOffset':-0xb4,'offsetStr':_0x5fa5da('0x45'),'countries':['AR']},'America/Argentina/Catamarca':{'name':_0x5fa5da('0x11c'),'utcOffset':-0xb4,'offsetStr':_0x5fa5da('0x45'),'countries':['AR']},'America/Argentina/La_Rioja':{'name':_0x5fa5da('0xf2'),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['AR']},'America/Argentina/San_Juan':{'name':'America/Argentina/San_Juan','utcOffset':-0xb4,'offsetStr':_0x5fa5da('0x45'),'countries':['AR']},'America/Argentina/Mendoza':{'name':_0x5fa5da('0xc0'),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['AR']},'America/Argentina/San_Luis':{'name':_0x5fa5da('0xc9'),'utcOffset':-0xb4,'offsetStr':_0x5fa5da('0x45'),'countries':['AR']},'America/Argentina/Rio_Gallegos':{'name':_0x5fa5da('0x50'),'utcOffset':-0xb4,'offsetStr':_0x5fa5da('0x45'),'countries':['AR']},'America/Argentina/Ushuaia':{'name':_0x5fa5da('0xaf'),'utcOffset':-0xb4,'offsetStr':_0x5fa5da('0x45'),'countries':['AR']},'Pacific/Pago_Pago':{'name':_0x5fa5da('0x105'),'utcOffset':-0x294,'offsetStr':_0x5fa5da('0x26'),'countries':['AS','UM']},'Europe/Vienna':{'name':_0x5fa5da('0x62'),'utcOffset':0x3c,'offsetStr':_0x5fa5da('0x12'),'countries':['AT']},'Australia/Lord_Howe':{'name':_0x5fa5da('0x8a'),'utcOffset':0x294,'offsetStr':'+11:00','countries':['AU']},'Antarctica/Macquarie':{'name':_0x5fa5da('0x126'),'utcOffset':0x294,'offsetStr':_0x5fa5da('0x7b'),'countries':['AU']},'Australia/Hobart':{'name':_0x5fa5da('0xfa'),'utcOffset':0x294,'offsetStr':_0x5fa5da('0x7b'),'countries':['AU']},'Australia/Currie':{'name':_0x5fa5da('0xdd'),'utcOffset':0x294,'offsetStr':'+11:00','countries':['AU']},'Australia/Melbourne':{'name':_0x5fa5da('0x11a'),'utcOffset':0x294,'offsetStr':_0x5fa5da('0x7b'),'countries':['AU']},'Australia/Sydney':{'name':'Australia/Sydney','utcOffset':0x294,'offsetStr':_0x5fa5da('0x7b'),'countries':['AU']},'Australia/Broken_Hill':{'name':_0x5fa5da('0x24'),'utcOffset':0x276,'offsetStr':_0x5fa5da('0x46'),'countries':['AU']},'Australia/Brisbane':{'name':'Australia/Brisbane','utcOffset':0x258,'offsetStr':_0x5fa5da('0x8b'),'countries':['AU']},'Australia/Lindeman':{'name':_0x5fa5da('0xa3'),'utcOffset':0x258,'offsetStr':_0x5fa5da('0x8b'),'countries':['AU']},'Australia/Adelaide':{'name':_0x5fa5da('0x11'),'utcOffset':0x276,'offsetStr':'+10:30','countries':['AU']},'Australia/Darwin':{'name':_0x5fa5da('0x60'),'utcOffset':0x23a,'offsetStr':_0x5fa5da('0xc4'),'countries':['AU']},'Australia/Perth':{'name':_0x5fa5da('0xb3'),'utcOffset':0x1e0,'offsetStr':_0x5fa5da('0x11e'),'countries':['AU']},'Australia/Eucla':{'name':_0x5fa5da('0x23'),'utcOffset':0x20d,'offsetStr':_0x5fa5da('0x90'),'countries':['AU']},'Asia/Baku':{'name':_0x5fa5da('0xb4'),'utcOffset':0xf0,'offsetStr':_0x5fa5da('0x32'),'countries':['AZ']},'America/Barbados':{'name':_0x5fa5da('0x12b'),'utcOffset':-0xf0,'offsetStr':_0x5fa5da('0x40'),'countries':['BB']},'Asia/Dhaka':{'name':_0x5fa5da('0x9b'),'utcOffset':0x168,'offsetStr':'+06:00','countries':['BD']},'Europe/Brussels':{'name':_0x5fa5da('0xef'),'utcOffset':0x3c,'offsetStr':_0x5fa5da('0x12'),'countries':['BE']},'Europe/Sofia':{'name':_0x5fa5da('0x113'),'utcOffset':0x78,'offsetStr':'+02:00','countries':['BG']},'Atlantic/Bermuda':{'name':'Atlantic/Bermuda','utcOffset':-0xf0,'offsetStr':_0x5fa5da('0x40'),'countries':['BM']},'Asia/Brunei':{'name':_0x5fa5da('0x8e'),'utcOffset':0x1e0,'offsetStr':_0x5fa5da('0x11e'),'countries':['BN']},'America/La_Paz':{'name':_0x5fa5da('0x9f'),'utcOffset':-0xf0,'offsetStr':_0x5fa5da('0x40'),'countries':['BO']},'America/Noronha':{'name':'America/Noronha','utcOffset':-0x78,'offsetStr':_0x5fa5da('0x9'),'countries':['BR']},'America/Belem':{'name':_0x5fa5da('0x6c'),'utcOffset':-0xb4,'offsetStr':_0x5fa5da('0x45'),'countries':['BR']},'America/Fortaleza':{'name':'America/Fortaleza','utcOffset':-0xb4,'offsetStr':_0x5fa5da('0x45'),'countries':['BR']},'America/Recife':{'name':_0x5fa5da('0x10'),'utcOffset':-0xb4,'offsetStr':_0x5fa5da('0x45'),'countries':['BR']},'America/Araguaina':{'name':_0x5fa5da('0xd8'),'utcOffset':-0xb4,'offsetStr':_0x5fa5da('0x45'),'countries':['BR']},'America/Maceio':{'name':_0x5fa5da('0xb5'),'utcOffset':-0xb4,'offsetStr':_0x5fa5da('0x45'),'countries':['BR']},'America/Bahia':{'name':'America/Bahia','utcOffset':-0xb4,'offsetStr':_0x5fa5da('0x45'),'countries':['BR']},'America/Sao_Paulo':{'name':_0x5fa5da('0x4d'),'utcOffset':-0x78,'offsetStr':_0x5fa5da('0x9'),'countries':['BR']},'America/Campo_Grande':{'name':'America/Campo_Grande','utcOffset':-0xb4,'offsetStr':_0x5fa5da('0x45'),'countries':['BR']},'America/Cuiaba':{'name':_0x5fa5da('0x123'),'utcOffset':-0xb4,'offsetStr':_0x5fa5da('0x45'),'countries':['BR']},'America/Santarem':{'name':_0x5fa5da('0xd9'),'utcOffset':-0xb4,'offsetStr':_0x5fa5da('0x45'),'countries':['BR']},'America/Porto_Velho':{'name':_0x5fa5da('0x7d'),'utcOffset':-0xf0,'offsetStr':_0x5fa5da('0x40'),'countries':['BR']},'America/Boa_Vista':{'name':_0x5fa5da('0xf5'),'utcOffset':-0xf0,'offsetStr':_0x5fa5da('0x40'),'countries':['BR']},'America/Manaus':{'name':_0x5fa5da('0xb6'),'utcOffset':-0xf0,'offsetStr':_0x5fa5da('0x40'),'countries':['BR']},'America/Eirunepe':{'name':_0x5fa5da('0x17'),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['BR']},'America/Rio_Branco':{'name':_0x5fa5da('0xe6'),'utcOffset':-0x12c,'offsetStr':_0x5fa5da('0x110'),'countries':['BR']},'America/Nassau':{'name':_0x5fa5da('0xe5'),'utcOffset':-0x12c,'offsetStr':_0x5fa5da('0x110'),'countries':['BS']},'Asia/Thimphu':{'name':'Asia/Thimphu','utcOffset':0x168,'offsetStr':'+06:00','countries':['BT']},'Europe/Minsk':{'name':_0x5fa5da('0x9a'),'utcOffset':0xb4,'offsetStr':_0x5fa5da('0x1f'),'countries':['BY']},'America/Belize':{'name':_0x5fa5da('0x116'),'utcOffset':-0x168,'offsetStr':_0x5fa5da('0xe0'),'countries':['BZ']},'America/St_Johns':{'name':'America/St_Johns','utcOffset':-0xd2,'offsetStr':_0x5fa5da('0x9c'),'countries':['CA']},'America/Halifax':{'name':_0x5fa5da('0x10e'),'utcOffset':-0xf0,'offsetStr':_0x5fa5da('0x40'),'countries':['CA']},'America/Glace_Bay':{'name':_0x5fa5da('0x47'),'utcOffset':-0xf0,'offsetStr':_0x5fa5da('0x40'),'countries':['CA']},'America/Moncton':{'name':_0x5fa5da('0xd3'),'utcOffset':-0xf0,'offsetStr':_0x5fa5da('0x40'),'countries':['CA']},'America/Goose_Bay':{'name':_0x5fa5da('0x125'),'utcOffset':-0xf0,'offsetStr':_0x5fa5da('0x40'),'countries':['CA']},'America/Blanc-Sablon':{'name':_0x5fa5da('0x103'),'utcOffset':-0xf0,'offsetStr':_0x5fa5da('0x40'),'countries':['CA']},'America/Toronto':{'name':_0x5fa5da('0xb'),'utcOffset':-0x12c,'offsetStr':_0x5fa5da('0x110'),'countries':['CA']},'America/Nipigon':{'name':_0x5fa5da('0x44'),'utcOffset':-0x12c,'offsetStr':_0x5fa5da('0x110'),'countries':['CA']},'America/Thunder_Bay':{'name':_0x5fa5da('0x3d'),'utcOffset':-0x12c,'offsetStr':_0x5fa5da('0x110'),'countries':['CA']},'America/Iqaluit':{'name':_0x5fa5da('0x9d'),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['CA']},'America/Pangnirtung':{'name':_0x5fa5da('0xec'),'utcOffset':-0x12c,'offsetStr':_0x5fa5da('0x110'),'countries':['CA']},'America/Resolute':{'name':_0x5fa5da('0xa8'),'utcOffset':-0x168,'offsetStr':_0x5fa5da('0xe0'),'countries':['CA']},'America/Atikokan':{'name':_0x5fa5da('0x61'),'utcOffset':-0x12c,'offsetStr':_0x5fa5da('0x110'),'countries':['CA']},'America/Rankin_Inlet':{'name':_0x5fa5da('0xce'),'utcOffset':-0x168,'offsetStr':_0x5fa5da('0xe0'),'countries':['CA']},'America/Winnipeg':{'name':_0x5fa5da('0x59'),'utcOffset':-0x168,'offsetStr':'-06:00','countries':['CA']},'America/Rainy_River':{'name':_0x5fa5da('0x30'),'utcOffset':-0x168,'offsetStr':'-06:00','countries':['CA']},'America/Regina':{'name':'America/Regina','utcOffset':-0x168,'offsetStr':_0x5fa5da('0xe0'),'countries':['CA']},'America/Swift_Current':{'name':_0x5fa5da('0x81'),'utcOffset':-0x168,'offsetStr':_0x5fa5da('0xe0'),'countries':['CA']},'America/Edmonton':{'name':_0x5fa5da('0x5b'),'utcOffset':-0x1a4,'offsetStr':_0x5fa5da('0x94'),'countries':['CA']},'America/Cambridge_Bay':{'name':_0x5fa5da('0x115'),'utcOffset':-0x1a4,'offsetStr':_0x5fa5da('0x94'),'countries':['CA']},'America/Yellowknife':{'name':_0x5fa5da('0x101'),'utcOffset':-0x1a4,'offsetStr':_0x5fa5da('0x94'),'countries':['CA']},'America/Inuvik':{'name':'America/Inuvik','utcOffset':-0x1a4,'offsetStr':_0x5fa5da('0x94'),'countries':['CA']},'America/Creston':{'name':'America/Creston','utcOffset':-0x1a4,'offsetStr':_0x5fa5da('0x94'),'countries':['CA']},'America/Dawson_Creek':{'name':_0x5fa5da('0x48'),'utcOffset':-0x1a4,'offsetStr':_0x5fa5da('0x94'),'countries':['CA']},'America/Fort_Nelson':{'name':_0x5fa5da('0x1b'),'utcOffset':-0x1a4,'offsetStr':_0x5fa5da('0x94'),'countries':['CA']},'America/Vancouver':{'name':_0x5fa5da('0xbb'),'utcOffset':-0x1e0,'offsetStr':'-08:00','countries':['CA']},'America/Whitehorse':{'name':_0x5fa5da('0xd1'),'utcOffset':-0x1e0,'offsetStr':_0x5fa5da('0xd5'),'countries':['CA']},'America/Dawson':{'name':'America/Dawson','utcOffset':-0x1e0,'offsetStr':_0x5fa5da('0xd5'),'countries':['CA']},'Indian/Cocos':{'name':_0x5fa5da('0x29'),'utcOffset':0x186,'offsetStr':_0x5fa5da('0x55'),'countries':['CC']},'Europe/Zurich':{'name':_0x5fa5da('0x127'),'utcOffset':0x3c,'offsetStr':_0x5fa5da('0x12'),'countries':['CH','DE','LI']},'Africa/Abidjan':{'name':_0x5fa5da('0x78'),'utcOffset':0x0,'offsetStr':_0x5fa5da('0x6a'),'countries':['CI','BF','GM','GN','ML','MR','SH','SL','SN','ST','TG']},'Pacific/Rarotonga':{'name':_0x5fa5da('0xad'),'utcOffset':-0x258,'offsetStr':_0x5fa5da('0x12a'),'countries':['CK']},'America/Santiago':{'name':_0x5fa5da('0xd4'),'utcOffset':-0xb4,'offsetStr':_0x5fa5da('0x45'),'countries':['CL']},'Pacific/Easter':{'name':_0x5fa5da('0x7'),'utcOffset':-0x12c,'offsetStr':_0x5fa5da('0x110'),'countries':['CL']},'Asia/Shanghai':{'name':_0x5fa5da('0x53'),'utcOffset':0x1e0,'offsetStr':_0x5fa5da('0x11e'),'countries':['CN']},'Asia/Urumqi':{'name':_0x5fa5da('0xff'),'utcOffset':0x168,'offsetStr':_0x5fa5da('0xa6'),'countries':['CN']},'America/Bogota':{'name':_0x5fa5da('0xa'),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['CO']},'America/Costa_Rica':{'name':_0x5fa5da('0xa9'),'utcOffset':-0x168,'offsetStr':_0x5fa5da('0xe0'),'countries':['CR']},'America/Havana':{'name':_0x5fa5da('0x82'),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['CU']},'Atlantic/Cape_Verde':{'name':_0x5fa5da('0x8'),'utcOffset':-0x3c,'offsetStr':_0x5fa5da('0x38'),'countries':['CV']},'America/Curacao':{'name':_0x5fa5da('0xd6'),'utcOffset':-0xf0,'offsetStr':_0x5fa5da('0x40'),'countries':['CW','AW','BQ','SX']},'Indian/Christmas':{'name':'Indian/Christmas','utcOffset':0x1a4,'offsetStr':_0x5fa5da('0x2e'),'countries':['CX']},'Asia/Nicosia':{'name':'Asia/Nicosia','utcOffset':0x78,'offsetStr':_0x5fa5da('0x12c'),'countries':['CY']},'Europe/Prague':{'name':_0x5fa5da('0x112'),'utcOffset':0x3c,'offsetStr':'+01:00','countries':['CZ','SK']},'Europe/Berlin':{'name':_0x5fa5da('0x97'),'utcOffset':0x3c,'offsetStr':_0x5fa5da('0x12'),'countries':['DE']},'Europe/Copenhagen':{'name':_0x5fa5da('0xdc'),'utcOffset':0x3c,'offsetStr':_0x5fa5da('0x12'),'countries':['DK']},'America/Santo_Domingo':{'name':'America/Santo_Domingo','utcOffset':-0xf0,'offsetStr':_0x5fa5da('0x40'),'countries':['DO']},'Africa/Algiers':{'name':_0x5fa5da('0xe9'),'utcOffset':0x3c,'offsetStr':'+01:00','countries':['DZ']},'America/Guayaquil':{'name':_0x5fa5da('0xb1'),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['EC']},'Pacific/Galapagos':{'name':_0x5fa5da('0xbc'),'utcOffset':-0x168,'offsetStr':_0x5fa5da('0xe0'),'countries':['EC']},'Europe/Tallinn':{'name':'Europe/Tallinn','utcOffset':0x78,'offsetStr':'+02:00','countries':['EE']},'Africa/Cairo':{'name':'Africa/Cairo','utcOffset':0x78,'offsetStr':_0x5fa5da('0x12c'),'countries':['EG']},'Africa/El_Aaiun':{'name':_0x5fa5da('0x8c'),'utcOffset':0x0,'offsetStr':_0x5fa5da('0x6a'),'countries':['EH']},'Europe/Madrid':{'name':_0x5fa5da('0x5d'),'utcOffset':0x3c,'offsetStr':_0x5fa5da('0x12'),'countries':['ES']},'Africa/Ceuta':{'name':_0x5fa5da('0xca'),'utcOffset':0x3c,'offsetStr':_0x5fa5da('0x12'),'countries':['ES']},'Atlantic/Canary':{'name':_0x5fa5da('0xb7'),'utcOffset':0x0,'offsetStr':'+00:00','countries':['ES']},'Europe/Helsinki':{'name':_0x5fa5da('0x14'),'utcOffset':0x78,'offsetStr':_0x5fa5da('0x12c'),'countries':['FI','AX']},'Pacific/Fiji':{'name':_0x5fa5da('0x80'),'utcOffset':0x2d0,'offsetStr':'+12:00','countries':['FJ']},'Atlantic/Stanley':{'name':'Atlantic/Stanley','utcOffset':-0xb4,'offsetStr':_0x5fa5da('0x45'),'countries':['FK']},'Pacific/Chuuk':{'name':'Pacific/Chuuk','utcOffset':0x258,'offsetStr':_0x5fa5da('0x8b'),'countries':['FM']},'Pacific/Pohnpei':{'name':_0x5fa5da('0x6e'),'utcOffset':0x294,'offsetStr':_0x5fa5da('0x7b'),'countries':['FM']},'Pacific/Kosrae':{'name':_0x5fa5da('0x91'),'utcOffset':0x294,'offsetStr':_0x5fa5da('0x7b'),'countries':['FM']},'Atlantic/Faroe':{'name':_0x5fa5da('0x21'),'utcOffset':0x0,'offsetStr':_0x5fa5da('0x6a'),'countries':['FO']},'Europe/Paris':{'name':'Europe/Paris','utcOffset':0x3c,'offsetStr':_0x5fa5da('0x12'),'countries':['FR']},'UTC':{'name':'UTC','utcOffset':0x0,'offsetStr':'+00:00','countries':['GB','GG','IM','JE']},'Europe/London':{'name':_0x5fa5da('0x128'),'utcOffset':0x0,'offsetStr':_0x5fa5da('0x6a'),'countries':['GB','GG','IM','JE']},'Asia/Tbilisi':{'name':_0x5fa5da('0x56'),'utcOffset':0xf0,'offsetStr':_0x5fa5da('0x32'),'countries':['GE']},'America/Cayenne':{'name':_0x5fa5da('0x7e'),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['GF']},'Africa/Accra':{'name':_0x5fa5da('0x1a'),'utcOffset':0x0,'offsetStr':_0x5fa5da('0x6a'),'countries':['GH']},'Europe/Gibraltar':{'name':_0x5fa5da('0xfd'),'utcOffset':0x3c,'offsetStr':_0x5fa5da('0x12'),'countries':['GI']},'America/Godthab':{'name':'America/Godthab','utcOffset':-0xb4,'offsetStr':_0x5fa5da('0x45'),'countries':['GL']},'America/Danmarkshavn':{'name':'America/Danmarkshavn','utcOffset':0x0,'offsetStr':_0x5fa5da('0x6a'),'countries':['GL']},'America/Scoresbysund':{'name':'America/Scoresbysund','utcOffset':-0x3c,'offsetStr':_0x5fa5da('0x38'),'countries':['GL']},'America/Thule':{'name':'America/Thule','utcOffset':-0xf0,'offsetStr':_0x5fa5da('0x40'),'countries':['GL']},'Europe/Athens':{'name':_0x5fa5da('0xc3'),'utcOffset':0x78,'offsetStr':_0x5fa5da('0x12c'),'countries':['GR']},'Atlantic/South_Georgia':{'name':'Atlantic/South_Georgia','utcOffset':-0x78,'offsetStr':'-02:00','countries':['GS']},'America/Guatemala':{'name':_0x5fa5da('0xe2'),'utcOffset':-0x168,'offsetStr':_0x5fa5da('0xe0'),'countries':['GT']},'Pacific/Guam':{'name':_0x5fa5da('0x25'),'utcOffset':0x258,'offsetStr':_0x5fa5da('0x8b'),'countries':['GU','MP']},'Africa/Bissau':{'name':_0x5fa5da('0x15'),'utcOffset':0x0,'offsetStr':_0x5fa5da('0x6a'),'countries':['GW']},'America/Guyana':{'name':_0x5fa5da('0x107'),'utcOffset':-0xf0,'offsetStr':'-04:00','countries':['GY']},'Asia/Hong_Kong':{'name':'Asia/Hong_Kong','utcOffset':0x1e0,'offsetStr':_0x5fa5da('0x11e'),'countries':['HK']},'America/Tegucigalpa':{'name':_0x5fa5da('0xa7'),'utcOffset':-0x168,'offsetStr':_0x5fa5da('0xe0'),'countries':['HN']},'America/Port-au-Prince':{'name':_0x5fa5da('0x11b'),'utcOffset':-0x12c,'offsetStr':_0x5fa5da('0x110'),'countries':['HT']},'Europe/Budapest':{'name':_0x5fa5da('0x95'),'utcOffset':0x3c,'offsetStr':_0x5fa5da('0x12'),'countries':['HU']},'Asia/Jakarta':{'name':_0x5fa5da('0x108'),'utcOffset':0x1a4,'offsetStr':_0x5fa5da('0x2e'),'countries':['ID']},'Asia/Pontianak':{'name':'Asia/Pontianak','utcOffset':0x1a4,'offsetStr':_0x5fa5da('0x2e'),'countries':['ID']},'Asia/Makassar':{'name':'Asia/Makassar','utcOffset':0x1e0,'offsetStr':'+08:00','countries':['ID']},'Asia/Jayapura':{'name':_0x5fa5da('0xcf'),'utcOffset':0x21c,'offsetStr':'+09:00','countries':['ID']},'Europe/Dublin':{'name':'Europe/Dublin','utcOffset':0x0,'offsetStr':_0x5fa5da('0x6a'),'countries':['IE']},'Asia/Jerusalem':{'name':_0x5fa5da('0xab'),'utcOffset':0x78,'offsetStr':_0x5fa5da('0x12c'),'countries':['IL']},'Asia/Kolkata':{'name':_0x5fa5da('0x88'),'utcOffset':0x14a,'offsetStr':'+05:30','countries':['IN']},'Indian/Chagos':{'name':_0x5fa5da('0xf8'),'utcOffset':0x168,'offsetStr':_0x5fa5da('0xa6'),'countries':['IO']},'Asia/Baghdad':{'name':_0x5fa5da('0xa2'),'utcOffset':0xb4,'offsetStr':_0x5fa5da('0x1f'),'countries':['IQ']},'Asia/Tehran':{'name':_0x5fa5da('0xe3'),'utcOffset':0xd2,'offsetStr':'+03:30','countries':['IR']},'Atlantic/Reykjavik':{'name':'Atlantic/Reykjavik','utcOffset':0x0,'offsetStr':_0x5fa5da('0x6a'),'countries':['IS']},'Europe/Rome':{'name':_0x5fa5da('0x6'),'utcOffset':0x3c,'offsetStr':_0x5fa5da('0x12'),'countries':['IT','SM','VA']},'America/Jamaica':{'name':_0x5fa5da('0xb0'),'utcOffset':-0x12c,'offsetStr':_0x5fa5da('0x110'),'countries':['JM']},'Asia/Amman':{'name':_0x5fa5da('0xb9'),'utcOffset':0x78,'offsetStr':_0x5fa5da('0x12c'),'countries':['JO']},'Asia/Tokyo':{'name':'Asia/Tokyo','utcOffset':0x21c,'offsetStr':_0x5fa5da('0x37'),'countries':['JP']},'Africa/Nairobi':{'name':_0x5fa5da('0x28'),'utcOffset':0xb4,'offsetStr':_0x5fa5da('0x1f'),'countries':['KE','DJ','ER','ET','KM','MG','SO','TZ','UG','YT']},'Asia/Bishkek':{'name':_0x5fa5da('0x51'),'utcOffset':0x168,'offsetStr':_0x5fa5da('0xa6'),'countries':['KG']},'Pacific/Tarawa':{'name':_0x5fa5da('0x10f'),'utcOffset':0x2d0,'offsetStr':'+12:00','countries':['KI']},'Pacific/Enderbury':{'name':_0x5fa5da('0x1e'),'utcOffset':0x30c,'offsetStr':_0x5fa5da('0xbd'),'countries':['KI']},'Pacific/Kiritimati':{'name':'Pacific/Kiritimati','utcOffset':0x348,'offsetStr':_0x5fa5da('0x6f'),'countries':['KI']},'Asia/Pyongyang':{'name':_0x5fa5da('0x75'),'utcOffset':0x1fe,'offsetStr':_0x5fa5da('0x3a'),'countries':['KP']},'Asia/Seoul':{'name':'Asia/Seoul','utcOffset':0x21c,'offsetStr':_0x5fa5da('0x37'),'countries':['KR']},'America/Cayman':{'name':_0x5fa5da('0x120'),'utcOffset':-0x12c,'offsetStr':_0x5fa5da('0x110'),'countries':['KY']},'Asia/Almaty':{'name':_0x5fa5da('0xba'),'utcOffset':0x168,'offsetStr':_0x5fa5da('0xa6'),'countries':['KZ']},'Asia/Qyzylorda':{'name':_0x5fa5da('0xc'),'utcOffset':0x168,'offsetStr':_0x5fa5da('0xa6'),'countries':['KZ']},'Asia/Aqtobe':{'name':_0x5fa5da('0xcd'),'utcOffset':0x12c,'offsetStr':'+05:00','countries':['KZ']},'Asia/Aqtau':{'name':'Asia/Aqtau','utcOffset':0x12c,'offsetStr':'+05:00','countries':['KZ']},'Asia/Oral':{'name':_0x5fa5da('0x6d'),'utcOffset':0x12c,'offsetStr':_0x5fa5da('0xf1'),'countries':['KZ']},'Asia/Beirut':{'name':_0x5fa5da('0xf'),'utcOffset':0x78,'offsetStr':_0x5fa5da('0x12c'),'countries':['LB']},'Asia/Colombo':{'name':_0x5fa5da('0x104'),'utcOffset':0x14a,'offsetStr':'+05:30','countries':['LK']},'Africa/Monrovia':{'name':_0x5fa5da('0x36'),'utcOffset':0x0,'offsetStr':_0x5fa5da('0x6a'),'countries':['LR']},'Europe/Vilnius':{'name':'Europe/Vilnius','utcOffset':0x78,'offsetStr':'+02:00','countries':['LT']},'Europe/Luxembourg':{'name':_0x5fa5da('0x22'),'utcOffset':0x3c,'offsetStr':_0x5fa5da('0x12'),'countries':['LU']},'Europe/Riga':{'name':_0x5fa5da('0xea'),'utcOffset':0x78,'offsetStr':_0x5fa5da('0x12c'),'countries':['LV']},'Africa/Tripoli':{'name':_0x5fa5da('0x9e'),'utcOffset':0x78,'offsetStr':'+02:00','countries':['LY']},'Africa/Casablanca':{'name':_0x5fa5da('0x2f'),'utcOffset':0x0,'offsetStr':_0x5fa5da('0x6a'),'countries':['MA']},'Europe/Monaco':{'name':_0x5fa5da('0x10b'),'utcOffset':0x3c,'offsetStr':'+01:00','countries':['MC']},'Europe/Chisinau':{'name':_0x5fa5da('0xde'),'utcOffset':0x78,'offsetStr':_0x5fa5da('0x12c'),'countries':['MD']},'Pacific/Majuro':{'name':'Pacific/Majuro','utcOffset':0x2d0,'offsetStr':_0x5fa5da('0xe4'),'countries':['MH']},'Pacific/Kwajalein':{'name':_0x5fa5da('0x2d'),'utcOffset':0x2d0,'offsetStr':'+12:00','countries':['MH']},'Asia/Rangoon':{'name':_0x5fa5da('0x27'),'utcOffset':0x186,'offsetStr':_0x5fa5da('0x55'),'countries':['MM']},'Asia/Ulaanbaatar':{'name':_0x5fa5da('0x5'),'utcOffset':0x1e0,'offsetStr':'+08:00','countries':['MN']},'Asia/Hovd':{'name':_0x5fa5da('0x106'),'utcOffset':0x1a4,'offsetStr':_0x5fa5da('0x2e'),'countries':['MN']},'Asia/Choibalsan':{'name':_0x5fa5da('0xe'),'utcOffset':0x1e0,'offsetStr':'+08:00','countries':['MN']},'Asia/Macau':{'name':_0x5fa5da('0xf6'),'utcOffset':0x1e0,'offsetStr':'+08:00','countries':['MO']},'America/Martinique':{'name':_0x5fa5da('0x43'),'utcOffset':-0xf0,'offsetStr':_0x5fa5da('0x40'),'countries':['MQ']},'Europe/Malta':{'name':_0x5fa5da('0x4'),'utcOffset':0x3c,'offsetStr':_0x5fa5da('0x12'),'countries':['MT']},'Indian/Mauritius':{'name':_0x5fa5da('0x57'),'utcOffset':0xf0,'offsetStr':'+04:00','countries':['MU']},'Indian/Maldives':{'name':_0x5fa5da('0xed'),'utcOffset':0x12c,'offsetStr':'+05:00','countries':['MV']},'America/Mexico_City':{'name':_0x5fa5da('0x65'),'utcOffset':-0x168,'offsetStr':_0x5fa5da('0xe0'),'countries':['MX']},'America/Cancun':{'name':'America/Cancun','utcOffset':-0x12c,'offsetStr':_0x5fa5da('0x110'),'countries':['MX']},'America/Merida':{'name':_0x5fa5da('0xb2'),'utcOffset':-0x168,'offsetStr':_0x5fa5da('0xe0'),'countries':['MX']},'America/Monterrey':{'name':'America/Monterrey','utcOffset':-0x168,'offsetStr':_0x5fa5da('0xe0'),'countries':['MX']},'America/Matamoros':{'name':_0x5fa5da('0x77'),'utcOffset':-0x168,'offsetStr':_0x5fa5da('0xe0'),'countries':['MX']},'America/Mazatlan':{'name':_0x5fa5da('0x52'),'utcOffset':-0x1a4,'offsetStr':_0x5fa5da('0x94'),'countries':['MX']},'America/Chihuahua':{'name':'America/Chihuahua','utcOffset':-0x1a4,'offsetStr':_0x5fa5da('0x94'),'countries':['MX']},'America/Ojinaga':{'name':_0x5fa5da('0x7a'),'utcOffset':-0x1a4,'offsetStr':_0x5fa5da('0x94'),'countries':['MX']},'America/Hermosillo':{'name':_0x5fa5da('0x92'),'utcOffset':-0x1a4,'offsetStr':_0x5fa5da('0x94'),'countries':['MX']},'America/Tijuana':{'name':'America/Tijuana','utcOffset':-0x1e0,'offsetStr':'-08:00','countries':['MX']},'America/Santa_Isabel':{'name':_0x5fa5da('0x89'),'utcOffset':-0x1e0,'offsetStr':'-08:00','countries':['MX']},'America/Bahia_Banderas':{'name':_0x5fa5da('0x2b'),'utcOffset':-0x168,'offsetStr':'-06:00','countries':['MX']},'Asia/Kuala_Lumpur':{'name':'Asia/Kuala_Lumpur','utcOffset':0x1e0,'offsetStr':_0x5fa5da('0x11e'),'countries':['MY']},'Asia/Kuching':{'name':_0x5fa5da('0x96'),'utcOffset':0x1e0,'offsetStr':'+08:00','countries':['MY']},'Africa/Maputo':{'name':_0x5fa5da('0x5e'),'utcOffset':0x78,'offsetStr':_0x5fa5da('0x12c'),'countries':['MZ','BI','BW','CD','MW','RW','ZM','ZW']},'Africa/Windhoek':{'name':_0x5fa5da('0x2'),'utcOffset':0x78,'offsetStr':_0x5fa5da('0x12c'),'countries':['NA']},'Pacific/Noumea':{'name':_0x5fa5da('0x42'),'utcOffset':0x294,'offsetStr':_0x5fa5da('0x7b'),'countries':['NC']},'Pacific/Norfolk':{'name':_0x5fa5da('0x54'),'utcOffset':0x294,'offsetStr':_0x5fa5da('0x7b'),'countries':['NF']},'Africa/Lagos':{'name':_0x5fa5da('0xda'),'utcOffset':0x3c,'offsetStr':_0x5fa5da('0x12'),'countries':['NG','AO','BJ','CD','CF','CG','CM','GA','GQ','NE']},'America/Managua':{'name':_0x5fa5da('0x72'),'utcOffset':-0x168,'offsetStr':_0x5fa5da('0xe0'),'countries':['NI']},'Europe/Amsterdam':{'name':_0x5fa5da('0x74'),'utcOffset':0x3c,'offsetStr':_0x5fa5da('0x12'),'countries':['NL']},'Europe/Oslo':{'name':'Europe/Oslo','utcOffset':0x3c,'offsetStr':_0x5fa5da('0x12'),'countries':['NO','SJ']},'Asia/Kathmandu':{'name':_0x5fa5da('0xd2'),'utcOffset':0x159,'offsetStr':_0x5fa5da('0x4b'),'countries':['NP']},'Pacific/Nauru':{'name':'Pacific/Nauru','utcOffset':0x2d0,'offsetStr':_0x5fa5da('0xe4'),'countries':['NR']},'Pacific/Niue':{'name':_0x5fa5da('0xc8'),'utcOffset':-0x294,'offsetStr':'-11:00','countries':['NU']},'Pacific/Auckland':{'name':_0x5fa5da('0x1'),'utcOffset':0x30c,'offsetStr':'+13:00','countries':['NZ','AQ']},'Pacific/Chatham':{'name':_0x5fa5da('0x83'),'utcOffset':0x339,'offsetStr':_0x5fa5da('0x85'),'countries':['NZ']},'America/Panama':{'name':'America/Panama','utcOffset':-0x12c,'offsetStr':_0x5fa5da('0x110'),'countries':['PA']},'America/Lima':{'name':_0x5fa5da('0x73'),'utcOffset':-0x12c,'offsetStr':_0x5fa5da('0x110'),'countries':['PE']},'Pacific/Tahiti':{'name':_0x5fa5da('0x58'),'utcOffset':-0x258,'offsetStr':_0x5fa5da('0x12a'),'countries':['PF']},'Pacific/Marquesas':{'name':'Pacific/Marquesas','utcOffset':-0x23a,'offsetStr':'-09:30','countries':['PF']},'Pacific/Gambier':{'name':_0x5fa5da('0xe8'),'utcOffset':-0x21c,'offsetStr':_0x5fa5da('0x5a'),'countries':['PF']},'Pacific/Port_Moresby':{'name':_0x5fa5da('0x10a'),'utcOffset':0x258,'offsetStr':_0x5fa5da('0x8b'),'countries':['PG']},'Pacific/Bougainville':{'name':_0x5fa5da('0x3e'),'utcOffset':0x294,'offsetStr':'+11:00','countries':['PG']},'Asia/Manila':{'name':_0x5fa5da('0xc2'),'utcOffset':0x1e0,'offsetStr':'+08:00','countries':['PH']},'Asia/Karachi':{'name':_0x5fa5da('0x6b'),'utcOffset':0x12c,'offsetStr':_0x5fa5da('0xf1'),'countries':['PK']},'Europe/Warsaw':{'name':_0x5fa5da('0x8d'),'utcOffset':0x3c,'offsetStr':_0x5fa5da('0x12'),'countries':['PL']},'America/Miquelon':{'name':_0x5fa5da('0xf7'),'utcOffset':-0xb4,'offsetStr':_0x5fa5da('0x45'),'countries':['PM']},'Pacific/Pitcairn':{'name':_0x5fa5da('0x84'),'utcOffset':-0x1e0,'offsetStr':_0x5fa5da('0xd5'),'countries':['PN']},'America/Puerto_Rico':{'name':_0x5fa5da('0x0'),'utcOffset':-0xf0,'offsetStr':_0x5fa5da('0x40'),'countries':['PR']},'Asia/Gaza':{'name':_0x5fa5da('0xbe'),'utcOffset':0x78,'offsetStr':_0x5fa5da('0x12c'),'countries':['PS']},'Asia/Hebron':{'name':_0x5fa5da('0xae'),'utcOffset':0x78,'offsetStr':_0x5fa5da('0x12c'),'countries':['PS']},'Europe/Lisbon':{'name':'Europe/Lisbon','utcOffset':0x0,'offsetStr':_0x5fa5da('0x6a'),'countries':['PT']},'Atlantic/Madeira':{'name':'Atlantic/Madeira','utcOffset':0x0,'offsetStr':_0x5fa5da('0x6a'),'countries':['PT']},'Atlantic/Azores':{'name':_0x5fa5da('0x7c'),'utcOffset':-0x3c,'offsetStr':_0x5fa5da('0x38'),'countries':['PT']},'Pacific/Palau':{'name':_0x5fa5da('0x124'),'utcOffset':0x21c,'offsetStr':_0x5fa5da('0x37'),'countries':['PW']},'America/Asuncion':{'name':'America/Asuncion','utcOffset':-0xb4,'offsetStr':_0x5fa5da('0x45'),'countries':['PY']},'Asia/Qatar':{'name':_0x5fa5da('0x13'),'utcOffset':0xb4,'offsetStr':_0x5fa5da('0x1f'),'countries':['QA','BH']},'Indian/Reunion':{'name':_0x5fa5da('0xb8'),'utcOffset':0xf0,'offsetStr':_0x5fa5da('0x32'),'countries':['RE','TF']},'Europe/Bucharest':{'name':_0x5fa5da('0x20'),'utcOffset':0x78,'offsetStr':_0x5fa5da('0x12c'),'countries':['RO']},'Europe/Belgrade':{'name':_0x5fa5da('0x11f'),'utcOffset':0x3c,'offsetStr':_0x5fa5da('0x12'),'countries':['RS','BA','HR','ME','MK','SI']},'Europe/Kaliningrad':{'name':_0x5fa5da('0x7f'),'utcOffset':0x78,'offsetStr':_0x5fa5da('0x12c'),'countries':['RU']},'Europe/Moscow':{'name':'Europe/Moscow','utcOffset':0xb4,'offsetStr':'+03:00','countries':['RU']},'Europe/Simferopol':{'name':_0x5fa5da('0xc6'),'utcOffset':0xb4,'offsetStr':'+03:00','countries':['RU']},'Europe/Volgograd':{'name':_0x5fa5da('0xc7'),'utcOffset':0xb4,'offsetStr':'+03:00','countries':['RU']},'Europe/Samara':{'name':_0x5fa5da('0x1c'),'utcOffset':0xf0,'offsetStr':_0x5fa5da('0x32'),'countries':['RU']},'Asia/Yekaterinburg':{'name':_0x5fa5da('0xfc'),'utcOffset':0x12c,'offsetStr':_0x5fa5da('0xf1'),'countries':['RU']},'Asia/Omsk':{'name':'Asia/Omsk','utcOffset':0x168,'offsetStr':_0x5fa5da('0xa6'),'countries':['RU']},'Asia/Novosibirsk':{'name':_0x5fa5da('0xfe'),'utcOffset':0x168,'offsetStr':'+06:00','countries':['RU']},'Asia/Novokuznetsk':{'name':_0x5fa5da('0xa1'),'utcOffset':0x1a4,'offsetStr':_0x5fa5da('0x2e'),'countries':['RU']},'Asia/Krasnoyarsk':{'name':'Asia/Krasnoyarsk','utcOffset':0x1a4,'offsetStr':_0x5fa5da('0x2e'),'countries':['RU']},'Asia/Irkutsk':{'name':_0x5fa5da('0x10c'),'utcOffset':0x1e0,'offsetStr':'+08:00','countries':['RU']},'Asia/Chita':{'name':'Asia/Chita','utcOffset':0x1e0,'offsetStr':'+08:00','countries':['RU']},'Asia/Yakutsk':{'name':_0x5fa5da('0x4e'),'utcOffset':0x21c,'offsetStr':_0x5fa5da('0x37'),'countries':['RU']},'Asia/Khandyga':{'name':_0x5fa5da('0x99'),'utcOffset':0x21c,'offsetStr':'+09:00','countries':['RU']},'Asia/Vladivostok':{'name':_0x5fa5da('0x4a'),'utcOffset':0x258,'offsetStr':_0x5fa5da('0x8b'),'countries':['RU']},'Asia/Sakhalin':{'name':_0x5fa5da('0xa5'),'utcOffset':0x258,'offsetStr':'+10:00','countries':['RU']},'Asia/Ust-Nera':{'name':_0x5fa5da('0xc1'),'utcOffset':0x258,'offsetStr':'+10:00','countries':['RU']},'Asia/Magadan':{'name':'Asia/Magadan','utcOffset':0x258,'offsetStr':'+10:00','countries':['RU']},'Asia/Srednekolymsk':{'name':_0x5fa5da('0x16'),'utcOffset':0x294,'offsetStr':_0x5fa5da('0x7b'),'countries':['RU']},'Asia/Kamchatka':{'name':_0x5fa5da('0xd'),'utcOffset':0x2d0,'offsetStr':'+12:00','countries':['RU']},'Asia/Anadyr':{'name':_0x5fa5da('0xeb'),'utcOffset':0x2d0,'offsetStr':'+12:00','countries':['RU']},'Asia/Riyadh':{'name':_0x5fa5da('0xdb'),'utcOffset':0xb4,'offsetStr':_0x5fa5da('0x1f'),'countries':['SA','KW','YE']},'Pacific/Guadalcanal':{'name':_0x5fa5da('0x3f'),'utcOffset':0x294,'offsetStr':'+11:00','countries':['SB']},'Indian/Mahe':{'name':'Indian/Mahe','utcOffset':0xf0,'offsetStr':_0x5fa5da('0x32'),'countries':['SC']},'Africa/Khartoum':{'name':_0x5fa5da('0x86'),'utcOffset':0xb4,'offsetStr':_0x5fa5da('0x1f'),'countries':['SD','SS']},'Europe/Stockholm':{'name':_0x5fa5da('0x79'),'utcOffset':0x3c,'offsetStr':_0x5fa5da('0x12'),'countries':['SE']},'Asia/Singapore':{'name':_0x5fa5da('0xee'),'utcOffset':0x1e0,'offsetStr':_0x5fa5da('0x11e'),'countries':['SG']},'America/Paramaribo':{'name':'America/Paramaribo','utcOffset':-0xb4,'offsetStr':_0x5fa5da('0x45'),'countries':['SR']},'America/El_Salvador':{'name':'America/El_Salvador','utcOffset':-0x168,'offsetStr':_0x5fa5da('0xe0'),'countries':['SV']},'Asia/Damascus':{'name':'Asia/Damascus','utcOffset':0x78,'offsetStr':_0x5fa5da('0x12c'),'countries':['SY']},'America/Grand_Turk':{'name':'America/Grand_Turk','utcOffset':-0xf0,'offsetStr':_0x5fa5da('0x40'),'countries':['TC']},'Africa/Ndjamena':{'name':_0x5fa5da('0x66'),'utcOffset':0x3c,'offsetStr':_0x5fa5da('0x12'),'countries':['TD']},'Indian/Kerguelen':{'name':_0x5fa5da('0xfb'),'utcOffset':0x12c,'offsetStr':'+05:00','countries':['TF']},'Asia/Bangkok':{'name':_0x5fa5da('0x76'),'utcOffset':0x1a4,'offsetStr':'+07:00','countries':['TH','KH','LA','VN']},'Asia/Dushanbe':{'name':_0x5fa5da('0x18'),'utcOffset':0x12c,'offsetStr':_0x5fa5da('0xf1'),'countries':['TJ']},'Pacific/Fakaofo':{'name':_0x5fa5da('0xe1'),'utcOffset':0x30c,'offsetStr':_0x5fa5da('0xbd'),'countries':['TK']},'Asia/Dili':{'name':_0x5fa5da('0xac'),'utcOffset':0x21c,'offsetStr':_0x5fa5da('0x37'),'countries':['TL']},'Asia/Ashgabat':{'name':_0x5fa5da('0xf4'),'utcOffset':0x12c,'offsetStr':_0x5fa5da('0xf1'),'countries':['TM']},'Africa/Tunis':{'name':_0x5fa5da('0xf3'),'utcOffset':0x3c,'offsetStr':_0x5fa5da('0x12'),'countries':['TN']},'Pacific/Tongatapu':{'name':'Pacific/Tongatapu','utcOffset':0x30c,'offsetStr':_0x5fa5da('0xbd'),'countries':['TO']},'Europe/Istanbul':{'name':_0x5fa5da('0xa0'),'utcOffset':0x78,'offsetStr':_0x5fa5da('0x12c'),'countries':['TR']},'America/Port_of_Spain':{'name':_0x5fa5da('0xc5'),'utcOffset':-0xf0,'offsetStr':_0x5fa5da('0x40'),'countries':['TT','AG','AI','BL','DM','GD','GP','KN','LC','MF','MS','VC','VG','VI']},'Pacific/Funafuti':{'name':_0x5fa5da('0x5f'),'utcOffset':0x2d0,'offsetStr':_0x5fa5da('0xe4'),'countries':['TV']},'Asia/Taipei':{'name':_0x5fa5da('0x3'),'utcOffset':0x1e0,'offsetStr':_0x5fa5da('0x11e'),'countries':['TW']},'Europe/Kiev':{'name':_0x5fa5da('0x87'),'utcOffset':0x78,'offsetStr':'+02:00','countries':['UA']},'Europe/Uzhgorod':{'name':_0x5fa5da('0xe7'),'utcOffset':0x78,'offsetStr':'+02:00','countries':['UA']},'Europe/Zaporozhye':{'name':_0x5fa5da('0xbf'),'utcOffset':0x78,'offsetStr':_0x5fa5da('0x12c'),'countries':['UA']},'Pacific/Wake':{'name':_0x5fa5da('0x117'),'utcOffset':0x2d0,'offsetStr':_0x5fa5da('0xe4'),'countries':['UM']},'America/New_York':{'name':_0x5fa5da('0xf9'),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['US']},'America/Detroit':{'name':_0x5fa5da('0x31'),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['US']},'America/Kentucky/Louisville':{'name':_0x5fa5da('0x63'),'utcOffset':-0x12c,'offsetStr':_0x5fa5da('0x110'),'countries':['US']},'America/Kentucky/Monticello':{'name':_0x5fa5da('0x34'),'utcOffset':-0x12c,'offsetStr':_0x5fa5da('0x110'),'countries':['US']},'America/Indiana/Indianapolis':{'name':_0x5fa5da('0x119'),'utcOffset':-0x12c,'offsetStr':_0x5fa5da('0x110'),'countries':['US']},'America/Indiana/Vincennes':{'name':_0x5fa5da('0x10d'),'utcOffset':-0x12c,'offsetStr':_0x5fa5da('0x110'),'countries':['US']},'America/Indiana/Winamac':{'name':_0x5fa5da('0xaa'),'utcOffset':-0x12c,'offsetStr':_0x5fa5da('0x110'),'countries':['US']},'America/Indiana/Marengo':{'name':_0x5fa5da('0xd0'),'utcOffset':-0x12c,'offsetStr':_0x5fa5da('0x110'),'countries':['US']},'America/Indiana/Petersburg':{'name':_0x5fa5da('0xcb'),'utcOffset':-0x12c,'offsetStr':_0x5fa5da('0x110'),'countries':['US']},'America/Indiana/Vevay':{'name':'America/Indiana/Vevay','utcOffset':-0x12c,'offsetStr':_0x5fa5da('0x110'),'countries':['US']},'America/Chicago':{'name':_0x5fa5da('0x64'),'utcOffset':-0x168,'offsetStr':_0x5fa5da('0xe0'),'countries':['US']},'America/Indiana/Tell_City':{'name':'America/Indiana/Tell_City','utcOffset':-0x168,'offsetStr':_0x5fa5da('0xe0'),'countries':['US']},'America/Indiana/Knox':{'name':_0x5fa5da('0x39'),'utcOffset':-0x168,'offsetStr':_0x5fa5da('0xe0'),'countries':['US']},'America/Menominee':{'name':_0x5fa5da('0x109'),'utcOffset':-0x168,'offsetStr':_0x5fa5da('0xe0'),'countries':['US']},'America/North_Dakota/Center':{'name':'America/North_Dakota/Center','utcOffset':-0x168,'offsetStr':'-06:00','countries':['US']},'America/North_Dakota/New_Salem':{'name':_0x5fa5da('0x69'),'utcOffset':-0x168,'offsetStr':_0x5fa5da('0xe0'),'countries':['US']},'America/North_Dakota/Beulah':{'name':'America/North_Dakota/Beulah','utcOffset':-0x168,'offsetStr':_0x5fa5da('0xe0'),'countries':['US']},'America/Denver':{'name':_0x5fa5da('0x121'),'utcOffset':-0x1a4,'offsetStr':'-07:00','countries':['US']},'America/Boise':{'name':_0x5fa5da('0x98'),'utcOffset':-0x1a4,'offsetStr':_0x5fa5da('0x94'),'countries':['US']},'America/Phoenix':{'name':_0x5fa5da('0x71'),'utcOffset':-0x1a4,'offsetStr':_0x5fa5da('0x94'),'countries':['US']},'America/Los_Angeles':{'name':_0x5fa5da('0x49'),'utcOffset':-0x1e0,'offsetStr':'-08:00','countries':['US']},'America/Metlakatla':{'name':_0x5fa5da('0x19'),'utcOffset':-0x1e0,'offsetStr':_0x5fa5da('0xd5'),'countries':['US']},'America/Anchorage':{'name':_0x5fa5da('0x122'),'utcOffset':-0x21c,'offsetStr':_0x5fa5da('0x5a'),'countries':['US']},'America/Juneau':{'name':_0x5fa5da('0x41'),'utcOffset':-0x21c,'offsetStr':_0x5fa5da('0x5a'),'countries':['US']},'America/Sitka':{'name':_0x5fa5da('0x4f'),'utcOffset':-0x21c,'offsetStr':_0x5fa5da('0x5a'),'countries':['US']},'America/Yakutat':{'name':_0x5fa5da('0x102'),'utcOffset':-0x21c,'offsetStr':_0x5fa5da('0x5a'),'countries':['US']},'America/Nome':{'name':'America/Nome','utcOffset':-0x21c,'offsetStr':_0x5fa5da('0x5a'),'countries':['US']},'America/Adak':{'name':'America/Adak','utcOffset':-0x258,'offsetStr':_0x5fa5da('0x12a'),'countries':['US']},'Pacific/Honolulu':{'name':_0x5fa5da('0x1d'),'utcOffset':-0x258,'offsetStr':_0x5fa5da('0x12a'),'countries':['US','UM']},'America/Montevideo':{'name':_0x5fa5da('0x4c'),'utcOffset':-0xb4,'offsetStr':_0x5fa5da('0x45'),'countries':['UY']},'Asia/Samarkand':{'name':_0x5fa5da('0x118'),'utcOffset':0x12c,'offsetStr':_0x5fa5da('0xf1'),'countries':['UZ']},'Asia/Tashkent':{'name':_0x5fa5da('0xf0'),'utcOffset':0x12c,'offsetStr':'+05:00','countries':['UZ']},'America/Caracas':{'name':'America/Caracas','utcOffset':-0x10e,'offsetStr':_0x5fa5da('0x35'),'countries':['VE']},'Asia/Ho_Chi_Minh':{'name':'Asia/Ho_Chi_Minh','utcOffset':0x1a4,'offsetStr':_0x5fa5da('0x2e'),'countries':['VN']},'Pacific/Efate':{'name':'Pacific/Efate','utcOffset':0x294,'offsetStr':'+11:00','countries':['VU']},'Pacific/Wallis':{'name':_0x5fa5da('0x2a'),'utcOffset':0x2d0,'offsetStr':_0x5fa5da('0xe4'),'countries':['WF']},'Pacific/Apia':{'name':_0x5fa5da('0xdf'),'utcOffset':0x348,'offsetStr':_0x5fa5da('0x6f'),'countries':['WS']},'Africa/Johannesburg':{'name':_0x5fa5da('0x93'),'utcOffset':0x78,'offsetStr':_0x5fa5da('0x12c'),'countries':['ZA','LS','SZ']}}}; \ No newline at end of file +var a1001_0x5b13=['America/Bogota','Europe/Minsk','America/Argentina/Tucuman','Asia/Kuching','America/Belem','+02:00','America/Ojinaga','Asia/Novosibirsk','Pacific/Norfolk','America/North_Dakota/Center','America/Panama','America/Maceio','+03:00','Asia/Irkutsk','America/Bahia_Banderas','Pacific/Kiritimati','-09:00','America/Managua','America/Curacao','America/Sitka','Asia/Anadyr','Pacific/Palau','America/Paramaribo','exports','Europe/Prague','Europe/Monaco','Asia/Makassar','Atlantic/Bermuda','user','Asia/Beirut','America/Rankin_Inlet','Asia/Chita','Pacific/Kosrae','-04:30','Europe/Tallinn','Africa/Tripoli','-05:00','Atlantic/Faroe','Asia/Hovd','Pacific/Bougainville','Europe/Tirane','Africa/Windhoek','Antarctica/Casey','-06:00','America/Port_of_Spain','Europe/Vilnius','Europe/Dublin','Indian/Chagos','America/Toronto','+00:00','Europe/Oslo','UTC','Europe/Lisbon','Europe/Gibraltar','-07:00','Asia/Dili','Pacific/Niue','Atlantic/Azores','America/Jamaica','Asia/Oral','Europe/Rome','Pacific/Honolulu','America/Asuncion','-04:00','Pacific/Apia','Asia/Ho_Chi_Minh','Pacific/Guadalcanal','America/Indiana/Indianapolis','America/Nipigon','Asia/Macau','Antarctica/Vostok','Asia/Baghdad','America/Merida','America/Godthab','America/Goose_Bay','Asia/Urumqi','Africa/El_Aaiun','Asia/Riyadh','Africa/Maputo','Asia/Bangkok','Europe/Athens','Pacific/Fakaofo','America/Nassau','Asia/Aqtau','America/Phoenix','America/Costa_Rica','Asia/Pyongyang','Indian/Maldives','America/Argentina/La_Rioja','+07:00','Indian/Mahe','Pacific/Chuuk','-11:00','Australia/Lord_Howe','Africa/Ndjamena','Asia/Amman','Pacific/Pitcairn','America/Hermosillo','Africa/Ceuta','Asia/Dhaka','Australia/Adelaide','America/Fortaleza','America/Vancouver','-08:00','Europe/Moscow','Asia/Colombo','America/Juneau','Pacific/Wake','America/Argentina/San_Luis','America/Argentina/Cordoba','+10:00','Europe/Warsaw','America/Puerto_Rico','America/Barbados','Australia/Eucla','+08:00','Africa/Casablanca','America/Indiana/Vincennes','Asia/Samarkand','America/Noronha','Asia/Sakhalin','America/Boise','Europe/Malta','Asia/Tehran','Atlantic/Reykjavik','America/Chicago','Europe/Paris','-01:00','America/Indiana/Knox','Africa/Abidjan','America/Indiana/Petersburg','+04:00','Pacific/Noumea','America/Argentina/Catamarca','Asia/Thimphu','America/Rio_Branco','America/Los_Angeles','Asia/Kabul','America/Mexico_City','+05:00','Asia/Brunei','America/Porto_Velho','Asia/Baku','Europe/Amsterdam','America/Iqaluit','Pacific/Guam','Indian/Reunion','America/Campo_Grande','Asia/Qyzylorda','America/Boa_Vista','+06:00','Pacific/Tarawa','Pacific/Rarotonga','Europe/Madrid','America/Thule','America/Edmonton','Europe/London','Europe/Copenhagen','America/Atikokan','America/Danmarkshavn','Antarctica/Troll','Asia/Hong_Kong','Africa/Bissau','Pacific/Pago_Pago','Asia/Kamchatka','Europe/Zaporozhye','America/Cambridge_Bay','+13:00','America/Cayenne','Africa/Nairobi','America/Argentina/Jujuy','Africa/Johannesburg','Africa/Algiers','Asia/Kuala_Lumpur','America/Menominee','Asia/Dubai','Asia/Jayapura','+08:30','America/Adak','America/Scoresbysund','Asia/Gaza','+03:30','America/Argentina/Rio_Gallegos','Asia/Qatar','guest','America/Argentina/Buenos_Aires','Indian/Kerguelen','+09:00','Antarctica/DumontDUrville','America/Regina','Africa/Monrovia','America/Whitehorse','Asia/Khandyga','America/Glace_Bay','Atlantic/Stanley','America/North_Dakota/New_Salem','America/Chihuahua','Europe/Chisinau','Asia/Taipei','America/Moncton','Asia/Ulaanbaatar','Atlantic/South_Georgia','Europe/Istanbul','Australia/Perth','America/Santiago','Asia/Ashgabat','Asia/Nicosia','America/Araguaina','America/Nome','Europe/Helsinki','Pacific/Chatham','Antarctica/Macquarie','Indian/Christmas','America/Guatemala','America/Grand_Turk','Asia/Seoul','Europe/Volgograd','America/Indiana/Tell_City','Asia/Rangoon','Pacific/Fiji','America/Matamoros','Australia/Melbourne','Atlantic/Canary','America/Port-au-Prince','Pacific/Port_Moresby','Australia/Hobart','Europe/Zurich','Pacific/Pohnpei','Europe/Belgrade','America/Argentina/Salta','America/Yellowknife','Pacific/Funafuti','Australia/Sydney','-10:00','America/Belize','Asia/Novokuznetsk','America/Argentina/Mendoza','Europe/Kiev','-03:00','Asia/Karachi','Asia/Yerevan','+13:45','Asia/Bishkek','America/El_Salvador','Atlantic/Cape_Verde','Asia/Kathmandu','America/North_Dakota/Beulah','Australia/Brisbane','Antarctica/Rothera','America/New_York','Antarctica/Palmer','Pacific/Wallis','America/Cuiaba','Antarctica/Davis','America/Argentina/Ushuaia','Europe/Berlin','America/Thunder_Bay','+11:00','America/St_Johns','Asia/Yekaterinburg','Antarctica/Mawson','+01:00','Asia/Almaty','+04:30','America/Martinique','+05:30','America/Sao_Paulo','Europe/Samara','+12:00','Europe/Simferopol','America/Creston','America/Cancun','America/Fort_Nelson','Indian/Cocos','Asia/Jakarta','+06:30','America/Santa_Isabel','America/Cayman','Pacific/Tongatapu','Asia/Choibalsan','Europe/Vienna','Africa/Tunis','Indian/Mauritius','America/Denver','America/Caracas','+14:00','America/Kentucky/Monticello','Asia/Magadan','America/Dawson','Europe/Bucharest','-02:00','America/Metlakatla','Pacific/Marquesas','America/Santarem','Pacific/Efate','Asia/Srednekolymsk','Europe/Stockholm','Asia/Jerusalem','America/La_Paz','Asia/Tbilisi','America/Inuvik','Africa/Khartoum','Asia/Omsk','America/Manaus','Asia/Krasnoyarsk','America/Resolute'];(function(_0x192c66,_0x5caa6d){var _0x5b13f5=function(_0x415b0e){while(--_0x415b0e){_0x192c66['push'](_0x192c66['shift']());}};_0x5b13f5(++_0x5caa6d);}(a1001_0x5b13,0x1dc));var a1001_0x415b=function(_0x192c66,_0x5caa6d){_0x192c66=_0x192c66-0x10f;var _0x5b13f5=a1001_0x5b13[_0x192c66];return _0x5b13f5;};var a1001_0x330420=a1001_0x415b;'use strict';module[a1001_0x330420(0x1ae)]={'userRoles':[a1001_0x330420(0x11d),a1001_0x330420(0x1b3),'admin'],'timezones':{'Europe/Andorra':{'name':'Europe/Andorra','utcOffset':0x3c,'offsetStr':a1001_0x330420(0x16a),'countries':['AD']},'Asia/Dubai':{'name':a1001_0x330420(0x114),'utcOffset':0xf0,'offsetStr':a1001_0x330420(0x21a),'countries':['AE','OM']},'Asia/Kabul':{'name':a1001_0x330420(0x220),'utcOffset':0x10e,'offsetStr':a1001_0x330420(0x16c),'countries':['AF']},'Europe/Tirane':{'name':a1001_0x330420(0x1bf),'utcOffset':0x3c,'offsetStr':a1001_0x330420(0x16a),'countries':['AL']},'Asia/Yerevan':{'name':a1001_0x330420(0x155),'utcOffset':0xf0,'offsetStr':a1001_0x330420(0x21a),'countries':['AM']},'Antarctica/Rothera':{'name':a1001_0x330420(0x15d),'utcOffset':-0xb4,'offsetStr':a1001_0x330420(0x153),'countries':['AQ']},'Antarctica/Palmer':{'name':a1001_0x330420(0x15f),'utcOffset':-0xb4,'offsetStr':a1001_0x330420(0x153),'countries':['AQ']},'Antarctica/Mawson':{'name':a1001_0x330420(0x169),'utcOffset':0x12c,'offsetStr':a1001_0x330420(0x222),'countries':['AQ']},'Antarctica/Davis':{'name':a1001_0x330420(0x162),'utcOffset':0x1a4,'offsetStr':a1001_0x330420(0x1f0),'countries':['AQ']},'Antarctica/Casey':{'name':a1001_0x330420(0x1c1),'utcOffset':0x1e0,'offsetStr':a1001_0x330420(0x20a),'countries':['AQ']},'Antarctica/Vostok':{'name':a1001_0x330420(0x1dd),'utcOffset':0x168,'offsetStr':'+06:00','countries':['AQ']},'Antarctica/DumontDUrville':{'name':a1001_0x330420(0x121),'utcOffset':0x258,'offsetStr':'+10:00','countries':['AQ']},'Antarctica/Syowa':{'name':'Antarctica/Syowa','utcOffset':0xb4,'offsetStr':a1001_0x330420(0x1a3),'countries':['AQ']},'Antarctica/Troll':{'name':a1001_0x330420(0x237),'utcOffset':0x0,'offsetStr':'+00:00','countries':['AQ']},'America/Argentina/Buenos_Aires':{'name':a1001_0x330420(0x11e),'utcOffset':-0xb4,'offsetStr':a1001_0x330420(0x153),'countries':['AR']},'America/Argentina/Cordoba':{'name':a1001_0x330420(0x204),'utcOffset':-0xb4,'offsetStr':a1001_0x330420(0x153),'countries':['AR']},'America/Argentina/Salta':{'name':a1001_0x330420(0x14a),'utcOffset':-0xb4,'offsetStr':a1001_0x330420(0x153),'countries':['AR']},'America/Argentina/Jujuy':{'name':a1001_0x330420(0x10f),'utcOffset':-0xb4,'offsetStr':a1001_0x330420(0x153),'countries':['AR']},'America/Argentina/Tucuman':{'name':a1001_0x330420(0x199),'utcOffset':-0xb4,'offsetStr':a1001_0x330420(0x153),'countries':['AR']},'America/Argentina/Catamarca':{'name':a1001_0x330420(0x21c),'utcOffset':-0xb4,'offsetStr':a1001_0x330420(0x153),'countries':['AR']},'America/Argentina/La_Rioja':{'name':a1001_0x330420(0x1ef),'utcOffset':-0xb4,'offsetStr':a1001_0x330420(0x153),'countries':['AR']},'America/Argentina/San_Juan':{'name':'America/Argentina/San_Juan','utcOffset':-0xb4,'offsetStr':a1001_0x330420(0x153),'countries':['AR']},'America/Argentina/Mendoza':{'name':a1001_0x330420(0x151),'utcOffset':-0xb4,'offsetStr':a1001_0x330420(0x153),'countries':['AR']},'America/Argentina/San_Luis':{'name':a1001_0x330420(0x203),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['AR']},'America/Argentina/Rio_Gallegos':{'name':a1001_0x330420(0x11b),'utcOffset':-0xb4,'offsetStr':a1001_0x330420(0x153),'countries':['AR']},'America/Argentina/Ushuaia':{'name':a1001_0x330420(0x163),'utcOffset':-0xb4,'offsetStr':a1001_0x330420(0x153),'countries':['AR']},'Pacific/Pago_Pago':{'name':a1001_0x330420(0x23a),'utcOffset':-0x294,'offsetStr':'-11:00','countries':['AS','UM']},'Europe/Vienna':{'name':a1001_0x330420(0x17d),'utcOffset':0x3c,'offsetStr':a1001_0x330420(0x16a),'countries':['AT']},'Australia/Lord_Howe':{'name':a1001_0x330420(0x1f4),'utcOffset':0x294,'offsetStr':a1001_0x330420(0x166),'countries':['AU']},'Antarctica/Macquarie':{'name':a1001_0x330420(0x138),'utcOffset':0x294,'offsetStr':'+11:00','countries':['AU']},'Australia/Hobart':{'name':a1001_0x330420(0x146),'utcOffset':0x294,'offsetStr':a1001_0x330420(0x166),'countries':['AU']},'Australia/Currie':{'name':'Australia/Currie','utcOffset':0x294,'offsetStr':a1001_0x330420(0x166),'countries':['AU']},'Australia/Melbourne':{'name':a1001_0x330420(0x142),'utcOffset':0x294,'offsetStr':a1001_0x330420(0x166),'countries':['AU']},'Australia/Sydney':{'name':a1001_0x330420(0x14d),'utcOffset':0x294,'offsetStr':a1001_0x330420(0x166),'countries':['AU']},'Australia/Broken_Hill':{'name':'Australia/Broken_Hill','utcOffset':0x276,'offsetStr':'+10:30','countries':['AU']},'Australia/Brisbane':{'name':a1001_0x330420(0x15c),'utcOffset':0x258,'offsetStr':a1001_0x330420(0x205),'countries':['AU']},'Australia/Lindeman':{'name':'Australia/Lindeman','utcOffset':0x258,'offsetStr':'+10:00','countries':['AU']},'Australia/Adelaide':{'name':a1001_0x330420(0x1fb),'utcOffset':0x276,'offsetStr':'+10:30','countries':['AU']},'Australia/Darwin':{'name':'Australia/Darwin','utcOffset':0x23a,'offsetStr':'+09:30','countries':['AU']},'Australia/Perth':{'name':a1001_0x330420(0x130),'utcOffset':0x1e0,'offsetStr':'+08:00','countries':['AU']},'Australia/Eucla':{'name':a1001_0x330420(0x209),'utcOffset':0x20d,'offsetStr':'+08:45','countries':['AU']},'Asia/Baku':{'name':a1001_0x330420(0x225),'utcOffset':0xf0,'offsetStr':a1001_0x330420(0x21a),'countries':['AZ']},'America/Barbados':{'name':a1001_0x330420(0x208),'utcOffset':-0xf0,'offsetStr':'-04:00','countries':['BB']},'Asia/Dhaka':{'name':a1001_0x330420(0x1fa),'utcOffset':0x168,'offsetStr':'+06:00','countries':['BD']},'Europe/Brussels':{'name':'Europe/Brussels','utcOffset':0x3c,'offsetStr':'+01:00','countries':['BE']},'Europe/Sofia':{'name':'Europe/Sofia','utcOffset':0x78,'offsetStr':'+02:00','countries':['BG']},'Atlantic/Bermuda':{'name':a1001_0x330420(0x1b2),'utcOffset':-0xf0,'offsetStr':a1001_0x330420(0x1d6),'countries':['BM']},'Asia/Brunei':{'name':a1001_0x330420(0x223),'utcOffset':0x1e0,'offsetStr':a1001_0x330420(0x20a),'countries':['BN']},'America/La_Paz':{'name':a1001_0x330420(0x18f),'utcOffset':-0xf0,'offsetStr':a1001_0x330420(0x1d6),'countries':['BO']},'America/Noronha':{'name':a1001_0x330420(0x20e),'utcOffset':-0x78,'offsetStr':a1001_0x330420(0x187),'countries':['BR']},'America/Belem':{'name':a1001_0x330420(0x19b),'utcOffset':-0xb4,'offsetStr':a1001_0x330420(0x153),'countries':['BR']},'America/Fortaleza':{'name':a1001_0x330420(0x1fc),'utcOffset':-0xb4,'offsetStr':a1001_0x330420(0x153),'countries':['BR']},'America/Recife':{'name':'America/Recife','utcOffset':-0xb4,'offsetStr':'-03:00','countries':['BR']},'America/Araguaina':{'name':a1001_0x330420(0x134),'utcOffset':-0xb4,'offsetStr':a1001_0x330420(0x153),'countries':['BR']},'America/Maceio':{'name':a1001_0x330420(0x1a2),'utcOffset':-0xb4,'offsetStr':a1001_0x330420(0x153),'countries':['BR']},'America/Bahia':{'name':'America/Bahia','utcOffset':-0xb4,'offsetStr':'-03:00','countries':['BR']},'America/Sao_Paulo':{'name':a1001_0x330420(0x16f),'utcOffset':-0x78,'offsetStr':a1001_0x330420(0x187),'countries':['BR']},'America/Campo_Grande':{'name':a1001_0x330420(0x22a),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['BR']},'America/Cuiaba':{'name':a1001_0x330420(0x161),'utcOffset':-0xb4,'offsetStr':a1001_0x330420(0x153),'countries':['BR']},'America/Santarem':{'name':a1001_0x330420(0x18a),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['BR']},'America/Porto_Velho':{'name':a1001_0x330420(0x224),'utcOffset':-0xf0,'offsetStr':a1001_0x330420(0x1d6),'countries':['BR']},'America/Boa_Vista':{'name':a1001_0x330420(0x22c),'utcOffset':-0xf0,'offsetStr':a1001_0x330420(0x1d6),'countries':['BR']},'America/Manaus':{'name':a1001_0x330420(0x194),'utcOffset':-0xf0,'offsetStr':a1001_0x330420(0x1d6),'countries':['BR']},'America/Eirunepe':{'name':'America/Eirunepe','utcOffset':-0x12c,'offsetStr':a1001_0x330420(0x1bb),'countries':['BR']},'America/Rio_Branco':{'name':a1001_0x330420(0x21e),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['BR']},'America/Nassau':{'name':a1001_0x330420(0x1e9),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['BS']},'Asia/Thimphu':{'name':a1001_0x330420(0x21d),'utcOffset':0x168,'offsetStr':a1001_0x330420(0x22d),'countries':['BT']},'Europe/Minsk':{'name':a1001_0x330420(0x198),'utcOffset':0xb4,'offsetStr':a1001_0x330420(0x1a3),'countries':['BY']},'America/Belize':{'name':a1001_0x330420(0x14f),'utcOffset':-0x168,'offsetStr':a1001_0x330420(0x1c2),'countries':['BZ']},'America/St_Johns':{'name':a1001_0x330420(0x167),'utcOffset':-0xd2,'offsetStr':'-03:30','countries':['CA']},'America/Halifax':{'name':'America/Halifax','utcOffset':-0xf0,'offsetStr':'-04:00','countries':['CA']},'America/Glace_Bay':{'name':a1001_0x330420(0x126),'utcOffset':-0xf0,'offsetStr':'-04:00','countries':['CA']},'America/Moncton':{'name':a1001_0x330420(0x12c),'utcOffset':-0xf0,'offsetStr':a1001_0x330420(0x1d6),'countries':['CA']},'America/Goose_Bay':{'name':a1001_0x330420(0x1e1),'utcOffset':-0xf0,'offsetStr':a1001_0x330420(0x1d6),'countries':['CA']},'America/Blanc-Sablon':{'name':'America/Blanc-Sablon','utcOffset':-0xf0,'offsetStr':a1001_0x330420(0x1d6),'countries':['CA']},'America/Toronto':{'name':a1001_0x330420(0x1c7),'utcOffset':-0x12c,'offsetStr':a1001_0x330420(0x1bb),'countries':['CA']},'America/Nipigon':{'name':a1001_0x330420(0x1db),'utcOffset':-0x12c,'offsetStr':a1001_0x330420(0x1bb),'countries':['CA']},'America/Thunder_Bay':{'name':a1001_0x330420(0x165),'utcOffset':-0x12c,'offsetStr':a1001_0x330420(0x1bb),'countries':['CA']},'America/Iqaluit':{'name':a1001_0x330420(0x227),'utcOffset':-0x12c,'offsetStr':a1001_0x330420(0x1bb),'countries':['CA']},'America/Pangnirtung':{'name':'America/Pangnirtung','utcOffset':-0x12c,'offsetStr':a1001_0x330420(0x1bb),'countries':['CA']},'America/Resolute':{'name':a1001_0x330420(0x196),'utcOffset':-0x168,'offsetStr':a1001_0x330420(0x1c2),'countries':['CA']},'America/Atikokan':{'name':a1001_0x330420(0x235),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['CA']},'America/Rankin_Inlet':{'name':a1001_0x330420(0x1b5),'utcOffset':-0x168,'offsetStr':a1001_0x330420(0x1c2),'countries':['CA']},'America/Winnipeg':{'name':'America/Winnipeg','utcOffset':-0x168,'offsetStr':a1001_0x330420(0x1c2),'countries':['CA']},'America/Rainy_River':{'name':'America/Rainy_River','utcOffset':-0x168,'offsetStr':a1001_0x330420(0x1c2),'countries':['CA']},'America/Regina':{'name':a1001_0x330420(0x122),'utcOffset':-0x168,'offsetStr':a1001_0x330420(0x1c2),'countries':['CA']},'America/Swift_Current':{'name':'America/Swift_Current','utcOffset':-0x168,'offsetStr':a1001_0x330420(0x1c2),'countries':['CA']},'America/Edmonton':{'name':a1001_0x330420(0x232),'utcOffset':-0x1a4,'offsetStr':a1001_0x330420(0x1cd),'countries':['CA']},'America/Cambridge_Bay':{'name':a1001_0x330420(0x23d),'utcOffset':-0x1a4,'offsetStr':'-07:00','countries':['CA']},'America/Yellowknife':{'name':a1001_0x330420(0x14b),'utcOffset':-0x1a4,'offsetStr':'-07:00','countries':['CA']},'America/Inuvik':{'name':a1001_0x330420(0x191),'utcOffset':-0x1a4,'offsetStr':'-07:00','countries':['CA']},'America/Creston':{'name':a1001_0x330420(0x173),'utcOffset':-0x1a4,'offsetStr':a1001_0x330420(0x1cd),'countries':['CA']},'America/Dawson_Creek':{'name':'America/Dawson_Creek','utcOffset':-0x1a4,'offsetStr':a1001_0x330420(0x1cd),'countries':['CA']},'America/Fort_Nelson':{'name':a1001_0x330420(0x175),'utcOffset':-0x1a4,'offsetStr':a1001_0x330420(0x1cd),'countries':['CA']},'America/Vancouver':{'name':a1001_0x330420(0x1fd),'utcOffset':-0x1e0,'offsetStr':a1001_0x330420(0x1fe),'countries':['CA']},'America/Whitehorse':{'name':a1001_0x330420(0x124),'utcOffset':-0x1e0,'offsetStr':a1001_0x330420(0x1fe),'countries':['CA']},'America/Dawson':{'name':a1001_0x330420(0x185),'utcOffset':-0x1e0,'offsetStr':'-08:00','countries':['CA']},'Indian/Cocos':{'name':a1001_0x330420(0x176),'utcOffset':0x186,'offsetStr':a1001_0x330420(0x178),'countries':['CC']},'Europe/Zurich':{'name':a1001_0x330420(0x147),'utcOffset':0x3c,'offsetStr':a1001_0x330420(0x16a),'countries':['CH','DE','LI']},'Africa/Abidjan':{'name':a1001_0x330420(0x218),'utcOffset':0x0,'offsetStr':a1001_0x330420(0x1c8),'countries':['CI','BF','GM','GN','ML','MR','SH','SL','SN','ST','TG']},'Pacific/Rarotonga':{'name':a1001_0x330420(0x22f),'utcOffset':-0x258,'offsetStr':a1001_0x330420(0x14e),'countries':['CK']},'America/Santiago':{'name':a1001_0x330420(0x131),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['CL']},'Pacific/Easter':{'name':'Pacific/Easter','utcOffset':-0x12c,'offsetStr':a1001_0x330420(0x1bb),'countries':['CL']},'Asia/Shanghai':{'name':'Asia/Shanghai','utcOffset':0x1e0,'offsetStr':a1001_0x330420(0x20a),'countries':['CN']},'Asia/Urumqi':{'name':a1001_0x330420(0x1e2),'utcOffset':0x168,'offsetStr':a1001_0x330420(0x22d),'countries':['CN']},'America/Bogota':{'name':a1001_0x330420(0x197),'utcOffset':-0x12c,'offsetStr':a1001_0x330420(0x1bb),'countries':['CO']},'America/Costa_Rica':{'name':a1001_0x330420(0x1ec),'utcOffset':-0x168,'offsetStr':a1001_0x330420(0x1c2),'countries':['CR']},'America/Havana':{'name':'America/Havana','utcOffset':-0x12c,'offsetStr':'-05:00','countries':['CU']},'Atlantic/Cape_Verde':{'name':a1001_0x330420(0x159),'utcOffset':-0x3c,'offsetStr':'-01:00','countries':['CV']},'America/Curacao':{'name':a1001_0x330420(0x1a9),'utcOffset':-0xf0,'offsetStr':'-04:00','countries':['CW','AW','BQ','SX']},'Indian/Christmas':{'name':a1001_0x330420(0x139),'utcOffset':0x1a4,'offsetStr':a1001_0x330420(0x1f0),'countries':['CX']},'Asia/Nicosia':{'name':a1001_0x330420(0x133),'utcOffset':0x78,'offsetStr':a1001_0x330420(0x19c),'countries':['CY']},'Europe/Prague':{'name':a1001_0x330420(0x1af),'utcOffset':0x3c,'offsetStr':a1001_0x330420(0x16a),'countries':['CZ','SK']},'Europe/Berlin':{'name':a1001_0x330420(0x164),'utcOffset':0x3c,'offsetStr':'+01:00','countries':['DE']},'Europe/Copenhagen':{'name':a1001_0x330420(0x234),'utcOffset':0x3c,'offsetStr':'+01:00','countries':['DK']},'America/Santo_Domingo':{'name':'America/Santo_Domingo','utcOffset':-0xf0,'offsetStr':a1001_0x330420(0x1d6),'countries':['DO']},'Africa/Algiers':{'name':a1001_0x330420(0x111),'utcOffset':0x3c,'offsetStr':a1001_0x330420(0x16a),'countries':['DZ']},'America/Guayaquil':{'name':'America/Guayaquil','utcOffset':-0x12c,'offsetStr':a1001_0x330420(0x1bb),'countries':['EC']},'Pacific/Galapagos':{'name':'Pacific/Galapagos','utcOffset':-0x168,'offsetStr':a1001_0x330420(0x1c2),'countries':['EC']},'Europe/Tallinn':{'name':a1001_0x330420(0x1b9),'utcOffset':0x78,'offsetStr':a1001_0x330420(0x19c),'countries':['EE']},'Africa/Cairo':{'name':'Africa/Cairo','utcOffset':0x78,'offsetStr':'+02:00','countries':['EG']},'Africa/El_Aaiun':{'name':a1001_0x330420(0x1e3),'utcOffset':0x0,'offsetStr':a1001_0x330420(0x1c8),'countries':['EH']},'Europe/Madrid':{'name':a1001_0x330420(0x230),'utcOffset':0x3c,'offsetStr':a1001_0x330420(0x16a),'countries':['ES']},'Africa/Ceuta':{'name':a1001_0x330420(0x1f9),'utcOffset':0x3c,'offsetStr':a1001_0x330420(0x16a),'countries':['ES']},'Atlantic/Canary':{'name':a1001_0x330420(0x143),'utcOffset':0x0,'offsetStr':'+00:00','countries':['ES']},'Europe/Helsinki':{'name':a1001_0x330420(0x136),'utcOffset':0x78,'offsetStr':a1001_0x330420(0x19c),'countries':['FI','AX']},'Pacific/Fiji':{'name':a1001_0x330420(0x140),'utcOffset':0x2d0,'offsetStr':a1001_0x330420(0x171),'countries':['FJ']},'Atlantic/Stanley':{'name':a1001_0x330420(0x127),'utcOffset':-0xb4,'offsetStr':a1001_0x330420(0x153),'countries':['FK']},'Pacific/Chuuk':{'name':a1001_0x330420(0x1f2),'utcOffset':0x258,'offsetStr':a1001_0x330420(0x205),'countries':['FM']},'Pacific/Pohnpei':{'name':a1001_0x330420(0x148),'utcOffset':0x294,'offsetStr':'+11:00','countries':['FM']},'Pacific/Kosrae':{'name':a1001_0x330420(0x1b7),'utcOffset':0x294,'offsetStr':'+11:00','countries':['FM']},'Atlantic/Faroe':{'name':a1001_0x330420(0x1bc),'utcOffset':0x0,'offsetStr':a1001_0x330420(0x1c8),'countries':['FO']},'Europe/Paris':{'name':a1001_0x330420(0x215),'utcOffset':0x3c,'offsetStr':a1001_0x330420(0x16a),'countries':['FR']},'UTC':{'name':a1001_0x330420(0x1ca),'utcOffset':0x0,'offsetStr':a1001_0x330420(0x1c8),'countries':['GB','GG','IM','JE']},'Europe/London':{'name':a1001_0x330420(0x233),'utcOffset':0x0,'offsetStr':a1001_0x330420(0x1c8),'countries':['GB','GG','IM','JE']},'Asia/Tbilisi':{'name':a1001_0x330420(0x190),'utcOffset':0xf0,'offsetStr':a1001_0x330420(0x21a),'countries':['GE']},'America/Cayenne':{'name':a1001_0x330420(0x23f),'utcOffset':-0xb4,'offsetStr':a1001_0x330420(0x153),'countries':['GF']},'Africa/Accra':{'name':'Africa/Accra','utcOffset':0x0,'offsetStr':a1001_0x330420(0x1c8),'countries':['GH']},'Europe/Gibraltar':{'name':a1001_0x330420(0x1cc),'utcOffset':0x3c,'offsetStr':a1001_0x330420(0x16a),'countries':['GI']},'America/Godthab':{'name':a1001_0x330420(0x1e0),'utcOffset':-0xb4,'offsetStr':a1001_0x330420(0x153),'countries':['GL']},'America/Danmarkshavn':{'name':a1001_0x330420(0x236),'utcOffset':0x0,'offsetStr':a1001_0x330420(0x1c8),'countries':['GL']},'America/Scoresbysund':{'name':a1001_0x330420(0x118),'utcOffset':-0x3c,'offsetStr':a1001_0x330420(0x216),'countries':['GL']},'America/Thule':{'name':a1001_0x330420(0x231),'utcOffset':-0xf0,'offsetStr':a1001_0x330420(0x1d6),'countries':['GL']},'Europe/Athens':{'name':a1001_0x330420(0x1e7),'utcOffset':0x78,'offsetStr':a1001_0x330420(0x19c),'countries':['GR']},'Atlantic/South_Georgia':{'name':a1001_0x330420(0x12e),'utcOffset':-0x78,'offsetStr':a1001_0x330420(0x187),'countries':['GS']},'America/Guatemala':{'name':a1001_0x330420(0x13a),'utcOffset':-0x168,'offsetStr':a1001_0x330420(0x1c2),'countries':['GT']},'Pacific/Guam':{'name':a1001_0x330420(0x228),'utcOffset':0x258,'offsetStr':a1001_0x330420(0x205),'countries':['GU','MP']},'Africa/Bissau':{'name':a1001_0x330420(0x239),'utcOffset':0x0,'offsetStr':'+00:00','countries':['GW']},'America/Guyana':{'name':'America/Guyana','utcOffset':-0xf0,'offsetStr':a1001_0x330420(0x1d6),'countries':['GY']},'Asia/Hong_Kong':{'name':a1001_0x330420(0x238),'utcOffset':0x1e0,'offsetStr':a1001_0x330420(0x20a),'countries':['HK']},'America/Tegucigalpa':{'name':'America/Tegucigalpa','utcOffset':-0x168,'offsetStr':a1001_0x330420(0x1c2),'countries':['HN']},'America/Port-au-Prince':{'name':a1001_0x330420(0x144),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['HT']},'Europe/Budapest':{'name':'Europe/Budapest','utcOffset':0x3c,'offsetStr':a1001_0x330420(0x16a),'countries':['HU']},'Asia/Jakarta':{'name':a1001_0x330420(0x177),'utcOffset':0x1a4,'offsetStr':a1001_0x330420(0x1f0),'countries':['ID']},'Asia/Pontianak':{'name':'Asia/Pontianak','utcOffset':0x1a4,'offsetStr':a1001_0x330420(0x1f0),'countries':['ID']},'Asia/Makassar':{'name':a1001_0x330420(0x1b1),'utcOffset':0x1e0,'offsetStr':a1001_0x330420(0x20a),'countries':['ID']},'Asia/Jayapura':{'name':a1001_0x330420(0x115),'utcOffset':0x21c,'offsetStr':a1001_0x330420(0x120),'countries':['ID']},'Europe/Dublin':{'name':a1001_0x330420(0x1c5),'utcOffset':0x0,'offsetStr':a1001_0x330420(0x1c8),'countries':['IE']},'Asia/Jerusalem':{'name':a1001_0x330420(0x18e),'utcOffset':0x78,'offsetStr':a1001_0x330420(0x19c),'countries':['IL']},'Asia/Kolkata':{'name':'Asia/Kolkata','utcOffset':0x14a,'offsetStr':a1001_0x330420(0x16e),'countries':['IN']},'Indian/Chagos':{'name':a1001_0x330420(0x1c6),'utcOffset':0x168,'offsetStr':a1001_0x330420(0x22d),'countries':['IO']},'Asia/Baghdad':{'name':a1001_0x330420(0x1de),'utcOffset':0xb4,'offsetStr':a1001_0x330420(0x1a3),'countries':['IQ']},'Asia/Tehran':{'name':a1001_0x330420(0x212),'utcOffset':0xd2,'offsetStr':a1001_0x330420(0x11a),'countries':['IR']},'Atlantic/Reykjavik':{'name':a1001_0x330420(0x213),'utcOffset':0x0,'offsetStr':a1001_0x330420(0x1c8),'countries':['IS']},'Europe/Rome':{'name':a1001_0x330420(0x1d3),'utcOffset':0x3c,'offsetStr':a1001_0x330420(0x16a),'countries':['IT','SM','VA']},'America/Jamaica':{'name':a1001_0x330420(0x1d1),'utcOffset':-0x12c,'offsetStr':a1001_0x330420(0x1bb),'countries':['JM']},'Asia/Amman':{'name':a1001_0x330420(0x1f6),'utcOffset':0x78,'offsetStr':a1001_0x330420(0x19c),'countries':['JO']},'Asia/Tokyo':{'name':'Asia/Tokyo','utcOffset':0x21c,'offsetStr':a1001_0x330420(0x120),'countries':['JP']},'Africa/Nairobi':{'name':a1001_0x330420(0x240),'utcOffset':0xb4,'offsetStr':a1001_0x330420(0x1a3),'countries':['KE','DJ','ER','ET','KM','MG','SO','TZ','UG','YT']},'Asia/Bishkek':{'name':a1001_0x330420(0x157),'utcOffset':0x168,'offsetStr':'+06:00','countries':['KG']},'Pacific/Tarawa':{'name':a1001_0x330420(0x22e),'utcOffset':0x2d0,'offsetStr':a1001_0x330420(0x171),'countries':['KI']},'Pacific/Enderbury':{'name':'Pacific/Enderbury','utcOffset':0x30c,'offsetStr':a1001_0x330420(0x23e),'countries':['KI']},'Pacific/Kiritimati':{'name':a1001_0x330420(0x1a6),'utcOffset':0x348,'offsetStr':'+14:00','countries':['KI']},'Asia/Pyongyang':{'name':a1001_0x330420(0x1ed),'utcOffset':0x1fe,'offsetStr':a1001_0x330420(0x116),'countries':['KP']},'Asia/Seoul':{'name':a1001_0x330420(0x13c),'utcOffset':0x21c,'offsetStr':a1001_0x330420(0x120),'countries':['KR']},'America/Cayman':{'name':a1001_0x330420(0x17a),'utcOffset':-0x12c,'offsetStr':a1001_0x330420(0x1bb),'countries':['KY']},'Asia/Almaty':{'name':a1001_0x330420(0x16b),'utcOffset':0x168,'offsetStr':a1001_0x330420(0x22d),'countries':['KZ']},'Asia/Qyzylorda':{'name':a1001_0x330420(0x22b),'utcOffset':0x168,'offsetStr':a1001_0x330420(0x22d),'countries':['KZ']},'Asia/Aqtobe':{'name':'Asia/Aqtobe','utcOffset':0x12c,'offsetStr':'+05:00','countries':['KZ']},'Asia/Aqtau':{'name':a1001_0x330420(0x1ea),'utcOffset':0x12c,'offsetStr':a1001_0x330420(0x222),'countries':['KZ']},'Asia/Oral':{'name':a1001_0x330420(0x1d2),'utcOffset':0x12c,'offsetStr':'+05:00','countries':['KZ']},'Asia/Beirut':{'name':a1001_0x330420(0x1b4),'utcOffset':0x78,'offsetStr':a1001_0x330420(0x19c),'countries':['LB']},'Asia/Colombo':{'name':a1001_0x330420(0x200),'utcOffset':0x14a,'offsetStr':a1001_0x330420(0x16e),'countries':['LK']},'Africa/Monrovia':{'name':a1001_0x330420(0x123),'utcOffset':0x0,'offsetStr':a1001_0x330420(0x1c8),'countries':['LR']},'Europe/Vilnius':{'name':a1001_0x330420(0x1c4),'utcOffset':0x78,'offsetStr':a1001_0x330420(0x19c),'countries':['LT']},'Europe/Luxembourg':{'name':'Europe/Luxembourg','utcOffset':0x3c,'offsetStr':a1001_0x330420(0x16a),'countries':['LU']},'Europe/Riga':{'name':'Europe/Riga','utcOffset':0x78,'offsetStr':a1001_0x330420(0x19c),'countries':['LV']},'Africa/Tripoli':{'name':a1001_0x330420(0x1ba),'utcOffset':0x78,'offsetStr':a1001_0x330420(0x19c),'countries':['LY']},'Africa/Casablanca':{'name':a1001_0x330420(0x20b),'utcOffset':0x0,'offsetStr':a1001_0x330420(0x1c8),'countries':['MA']},'Europe/Monaco':{'name':a1001_0x330420(0x1b0),'utcOffset':0x3c,'offsetStr':a1001_0x330420(0x16a),'countries':['MC']},'Europe/Chisinau':{'name':a1001_0x330420(0x12a),'utcOffset':0x78,'offsetStr':a1001_0x330420(0x19c),'countries':['MD']},'Pacific/Majuro':{'name':'Pacific/Majuro','utcOffset':0x2d0,'offsetStr':a1001_0x330420(0x171),'countries':['MH']},'Pacific/Kwajalein':{'name':'Pacific/Kwajalein','utcOffset':0x2d0,'offsetStr':a1001_0x330420(0x171),'countries':['MH']},'Asia/Rangoon':{'name':a1001_0x330420(0x13f),'utcOffset':0x186,'offsetStr':a1001_0x330420(0x178),'countries':['MM']},'Asia/Ulaanbaatar':{'name':a1001_0x330420(0x12d),'utcOffset':0x1e0,'offsetStr':a1001_0x330420(0x20a),'countries':['MN']},'Asia/Hovd':{'name':a1001_0x330420(0x1bd),'utcOffset':0x1a4,'offsetStr':a1001_0x330420(0x1f0),'countries':['MN']},'Asia/Choibalsan':{'name':a1001_0x330420(0x17c),'utcOffset':0x1e0,'offsetStr':a1001_0x330420(0x20a),'countries':['MN']},'Asia/Macau':{'name':a1001_0x330420(0x1dc),'utcOffset':0x1e0,'offsetStr':a1001_0x330420(0x20a),'countries':['MO']},'America/Martinique':{'name':a1001_0x330420(0x16d),'utcOffset':-0xf0,'offsetStr':'-04:00','countries':['MQ']},'Europe/Malta':{'name':a1001_0x330420(0x211),'utcOffset':0x3c,'offsetStr':a1001_0x330420(0x16a),'countries':['MT']},'Indian/Mauritius':{'name':a1001_0x330420(0x17f),'utcOffset':0xf0,'offsetStr':'+04:00','countries':['MU']},'Indian/Maldives':{'name':a1001_0x330420(0x1ee),'utcOffset':0x12c,'offsetStr':'+05:00','countries':['MV']},'America/Mexico_City':{'name':a1001_0x330420(0x221),'utcOffset':-0x168,'offsetStr':'-06:00','countries':['MX']},'America/Cancun':{'name':a1001_0x330420(0x174),'utcOffset':-0x12c,'offsetStr':a1001_0x330420(0x1bb),'countries':['MX']},'America/Merida':{'name':a1001_0x330420(0x1df),'utcOffset':-0x168,'offsetStr':'-06:00','countries':['MX']},'America/Monterrey':{'name':'America/Monterrey','utcOffset':-0x168,'offsetStr':'-06:00','countries':['MX']},'America/Matamoros':{'name':a1001_0x330420(0x141),'utcOffset':-0x168,'offsetStr':'-06:00','countries':['MX']},'America/Mazatlan':{'name':'America/Mazatlan','utcOffset':-0x1a4,'offsetStr':a1001_0x330420(0x1cd),'countries':['MX']},'America/Chihuahua':{'name':a1001_0x330420(0x129),'utcOffset':-0x1a4,'offsetStr':a1001_0x330420(0x1cd),'countries':['MX']},'America/Ojinaga':{'name':a1001_0x330420(0x19d),'utcOffset':-0x1a4,'offsetStr':a1001_0x330420(0x1cd),'countries':['MX']},'America/Hermosillo':{'name':a1001_0x330420(0x1f8),'utcOffset':-0x1a4,'offsetStr':a1001_0x330420(0x1cd),'countries':['MX']},'America/Tijuana':{'name':'America/Tijuana','utcOffset':-0x1e0,'offsetStr':a1001_0x330420(0x1fe),'countries':['MX']},'America/Santa_Isabel':{'name':a1001_0x330420(0x179),'utcOffset':-0x1e0,'offsetStr':a1001_0x330420(0x1fe),'countries':['MX']},'America/Bahia_Banderas':{'name':a1001_0x330420(0x1a5),'utcOffset':-0x168,'offsetStr':a1001_0x330420(0x1c2),'countries':['MX']},'Asia/Kuala_Lumpur':{'name':a1001_0x330420(0x112),'utcOffset':0x1e0,'offsetStr':a1001_0x330420(0x20a),'countries':['MY']},'Asia/Kuching':{'name':a1001_0x330420(0x19a),'utcOffset':0x1e0,'offsetStr':a1001_0x330420(0x20a),'countries':['MY']},'Africa/Maputo':{'name':a1001_0x330420(0x1e5),'utcOffset':0x78,'offsetStr':a1001_0x330420(0x19c),'countries':['MZ','BI','BW','CD','MW','RW','ZM','ZW']},'Africa/Windhoek':{'name':a1001_0x330420(0x1c0),'utcOffset':0x78,'offsetStr':a1001_0x330420(0x19c),'countries':['NA']},'Pacific/Noumea':{'name':a1001_0x330420(0x21b),'utcOffset':0x294,'offsetStr':a1001_0x330420(0x166),'countries':['NC']},'Pacific/Norfolk':{'name':a1001_0x330420(0x19f),'utcOffset':0x294,'offsetStr':'+11:00','countries':['NF']},'Africa/Lagos':{'name':'Africa/Lagos','utcOffset':0x3c,'offsetStr':a1001_0x330420(0x16a),'countries':['NG','AO','BJ','CD','CF','CG','CM','GA','GQ','NE']},'America/Managua':{'name':a1001_0x330420(0x1a8),'utcOffset':-0x168,'offsetStr':a1001_0x330420(0x1c2),'countries':['NI']},'Europe/Amsterdam':{'name':a1001_0x330420(0x226),'utcOffset':0x3c,'offsetStr':a1001_0x330420(0x16a),'countries':['NL']},'Europe/Oslo':{'name':a1001_0x330420(0x1c9),'utcOffset':0x3c,'offsetStr':a1001_0x330420(0x16a),'countries':['NO','SJ']},'Asia/Kathmandu':{'name':a1001_0x330420(0x15a),'utcOffset':0x159,'offsetStr':'+05:45','countries':['NP']},'Pacific/Nauru':{'name':'Pacific/Nauru','utcOffset':0x2d0,'offsetStr':a1001_0x330420(0x171),'countries':['NR']},'Pacific/Niue':{'name':a1001_0x330420(0x1cf),'utcOffset':-0x294,'offsetStr':a1001_0x330420(0x1f3),'countries':['NU']},'Pacific/Auckland':{'name':'Pacific/Auckland','utcOffset':0x30c,'offsetStr':a1001_0x330420(0x23e),'countries':['NZ','AQ']},'Pacific/Chatham':{'name':a1001_0x330420(0x137),'utcOffset':0x339,'offsetStr':a1001_0x330420(0x156),'countries':['NZ']},'America/Panama':{'name':a1001_0x330420(0x1a1),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['PA']},'America/Lima':{'name':'America/Lima','utcOffset':-0x12c,'offsetStr':a1001_0x330420(0x1bb),'countries':['PE']},'Pacific/Tahiti':{'name':'Pacific/Tahiti','utcOffset':-0x258,'offsetStr':'-10:00','countries':['PF']},'Pacific/Marquesas':{'name':a1001_0x330420(0x189),'utcOffset':-0x23a,'offsetStr':'-09:30','countries':['PF']},'Pacific/Gambier':{'name':'Pacific/Gambier','utcOffset':-0x21c,'offsetStr':a1001_0x330420(0x1a7),'countries':['PF']},'Pacific/Port_Moresby':{'name':a1001_0x330420(0x145),'utcOffset':0x258,'offsetStr':'+10:00','countries':['PG']},'Pacific/Bougainville':{'name':a1001_0x330420(0x1be),'utcOffset':0x294,'offsetStr':a1001_0x330420(0x166),'countries':['PG']},'Asia/Manila':{'name':'Asia/Manila','utcOffset':0x1e0,'offsetStr':'+08:00','countries':['PH']},'Asia/Karachi':{'name':a1001_0x330420(0x154),'utcOffset':0x12c,'offsetStr':'+05:00','countries':['PK']},'Europe/Warsaw':{'name':a1001_0x330420(0x206),'utcOffset':0x3c,'offsetStr':a1001_0x330420(0x16a),'countries':['PL']},'America/Miquelon':{'name':'America/Miquelon','utcOffset':-0xb4,'offsetStr':a1001_0x330420(0x153),'countries':['PM']},'Pacific/Pitcairn':{'name':a1001_0x330420(0x1f7),'utcOffset':-0x1e0,'offsetStr':a1001_0x330420(0x1fe),'countries':['PN']},'America/Puerto_Rico':{'name':a1001_0x330420(0x207),'utcOffset':-0xf0,'offsetStr':'-04:00','countries':['PR']},'Asia/Gaza':{'name':a1001_0x330420(0x119),'utcOffset':0x78,'offsetStr':a1001_0x330420(0x19c),'countries':['PS']},'Asia/Hebron':{'name':'Asia/Hebron','utcOffset':0x78,'offsetStr':a1001_0x330420(0x19c),'countries':['PS']},'Europe/Lisbon':{'name':a1001_0x330420(0x1cb),'utcOffset':0x0,'offsetStr':'+00:00','countries':['PT']},'Atlantic/Madeira':{'name':'Atlantic/Madeira','utcOffset':0x0,'offsetStr':a1001_0x330420(0x1c8),'countries':['PT']},'Atlantic/Azores':{'name':a1001_0x330420(0x1d0),'utcOffset':-0x3c,'offsetStr':'-01:00','countries':['PT']},'Pacific/Palau':{'name':a1001_0x330420(0x1ac),'utcOffset':0x21c,'offsetStr':a1001_0x330420(0x120),'countries':['PW']},'America/Asuncion':{'name':a1001_0x330420(0x1d5),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['PY']},'Asia/Qatar':{'name':a1001_0x330420(0x11c),'utcOffset':0xb4,'offsetStr':a1001_0x330420(0x1a3),'countries':['QA','BH']},'Indian/Reunion':{'name':a1001_0x330420(0x229),'utcOffset':0xf0,'offsetStr':a1001_0x330420(0x21a),'countries':['RE','TF']},'Europe/Bucharest':{'name':a1001_0x330420(0x186),'utcOffset':0x78,'offsetStr':a1001_0x330420(0x19c),'countries':['RO']},'Europe/Belgrade':{'name':a1001_0x330420(0x149),'utcOffset':0x3c,'offsetStr':'+01:00','countries':['RS','BA','HR','ME','MK','SI']},'Europe/Kaliningrad':{'name':'Europe/Kaliningrad','utcOffset':0x78,'offsetStr':a1001_0x330420(0x19c),'countries':['RU']},'Europe/Moscow':{'name':a1001_0x330420(0x1ff),'utcOffset':0xb4,'offsetStr':a1001_0x330420(0x1a3),'countries':['RU']},'Europe/Simferopol':{'name':a1001_0x330420(0x172),'utcOffset':0xb4,'offsetStr':a1001_0x330420(0x1a3),'countries':['RU']},'Europe/Volgograd':{'name':a1001_0x330420(0x13d),'utcOffset':0xb4,'offsetStr':a1001_0x330420(0x1a3),'countries':['RU']},'Europe/Samara':{'name':a1001_0x330420(0x170),'utcOffset':0xf0,'offsetStr':a1001_0x330420(0x21a),'countries':['RU']},'Asia/Yekaterinburg':{'name':a1001_0x330420(0x168),'utcOffset':0x12c,'offsetStr':a1001_0x330420(0x222),'countries':['RU']},'Asia/Omsk':{'name':a1001_0x330420(0x193),'utcOffset':0x168,'offsetStr':a1001_0x330420(0x22d),'countries':['RU']},'Asia/Novosibirsk':{'name':a1001_0x330420(0x19e),'utcOffset':0x168,'offsetStr':a1001_0x330420(0x22d),'countries':['RU']},'Asia/Novokuznetsk':{'name':a1001_0x330420(0x150),'utcOffset':0x1a4,'offsetStr':a1001_0x330420(0x1f0),'countries':['RU']},'Asia/Krasnoyarsk':{'name':a1001_0x330420(0x195),'utcOffset':0x1a4,'offsetStr':a1001_0x330420(0x1f0),'countries':['RU']},'Asia/Irkutsk':{'name':a1001_0x330420(0x1a4),'utcOffset':0x1e0,'offsetStr':a1001_0x330420(0x20a),'countries':['RU']},'Asia/Chita':{'name':a1001_0x330420(0x1b6),'utcOffset':0x1e0,'offsetStr':a1001_0x330420(0x20a),'countries':['RU']},'Asia/Yakutsk':{'name':'Asia/Yakutsk','utcOffset':0x21c,'offsetStr':'+09:00','countries':['RU']},'Asia/Khandyga':{'name':a1001_0x330420(0x125),'utcOffset':0x21c,'offsetStr':a1001_0x330420(0x120),'countries':['RU']},'Asia/Vladivostok':{'name':'Asia/Vladivostok','utcOffset':0x258,'offsetStr':a1001_0x330420(0x205),'countries':['RU']},'Asia/Sakhalin':{'name':a1001_0x330420(0x20f),'utcOffset':0x258,'offsetStr':'+10:00','countries':['RU']},'Asia/Ust-Nera':{'name':'Asia/Ust-Nera','utcOffset':0x258,'offsetStr':'+10:00','countries':['RU']},'Asia/Magadan':{'name':a1001_0x330420(0x184),'utcOffset':0x258,'offsetStr':a1001_0x330420(0x205),'countries':['RU']},'Asia/Srednekolymsk':{'name':a1001_0x330420(0x18c),'utcOffset':0x294,'offsetStr':a1001_0x330420(0x166),'countries':['RU']},'Asia/Kamchatka':{'name':a1001_0x330420(0x23b),'utcOffset':0x2d0,'offsetStr':'+12:00','countries':['RU']},'Asia/Anadyr':{'name':a1001_0x330420(0x1ab),'utcOffset':0x2d0,'offsetStr':a1001_0x330420(0x171),'countries':['RU']},'Asia/Riyadh':{'name':a1001_0x330420(0x1e4),'utcOffset':0xb4,'offsetStr':'+03:00','countries':['SA','KW','YE']},'Pacific/Guadalcanal':{'name':a1001_0x330420(0x1d9),'utcOffset':0x294,'offsetStr':a1001_0x330420(0x166),'countries':['SB']},'Indian/Mahe':{'name':a1001_0x330420(0x1f1),'utcOffset':0xf0,'offsetStr':a1001_0x330420(0x21a),'countries':['SC']},'Africa/Khartoum':{'name':a1001_0x330420(0x192),'utcOffset':0xb4,'offsetStr':a1001_0x330420(0x1a3),'countries':['SD','SS']},'Europe/Stockholm':{'name':a1001_0x330420(0x18d),'utcOffset':0x3c,'offsetStr':a1001_0x330420(0x16a),'countries':['SE']},'Asia/Singapore':{'name':'Asia/Singapore','utcOffset':0x1e0,'offsetStr':'+08:00','countries':['SG']},'America/Paramaribo':{'name':a1001_0x330420(0x1ad),'utcOffset':-0xb4,'offsetStr':a1001_0x330420(0x153),'countries':['SR']},'America/El_Salvador':{'name':a1001_0x330420(0x158),'utcOffset':-0x168,'offsetStr':'-06:00','countries':['SV']},'Asia/Damascus':{'name':'Asia/Damascus','utcOffset':0x78,'offsetStr':a1001_0x330420(0x19c),'countries':['SY']},'America/Grand_Turk':{'name':a1001_0x330420(0x13b),'utcOffset':-0xf0,'offsetStr':a1001_0x330420(0x1d6),'countries':['TC']},'Africa/Ndjamena':{'name':a1001_0x330420(0x1f5),'utcOffset':0x3c,'offsetStr':a1001_0x330420(0x16a),'countries':['TD']},'Indian/Kerguelen':{'name':a1001_0x330420(0x11f),'utcOffset':0x12c,'offsetStr':a1001_0x330420(0x222),'countries':['TF']},'Asia/Bangkok':{'name':a1001_0x330420(0x1e6),'utcOffset':0x1a4,'offsetStr':'+07:00','countries':['TH','KH','LA','VN']},'Asia/Dushanbe':{'name':'Asia/Dushanbe','utcOffset':0x12c,'offsetStr':a1001_0x330420(0x222),'countries':['TJ']},'Pacific/Fakaofo':{'name':a1001_0x330420(0x1e8),'utcOffset':0x30c,'offsetStr':'+13:00','countries':['TK']},'Asia/Dili':{'name':a1001_0x330420(0x1ce),'utcOffset':0x21c,'offsetStr':a1001_0x330420(0x120),'countries':['TL']},'Asia/Ashgabat':{'name':a1001_0x330420(0x132),'utcOffset':0x12c,'offsetStr':'+05:00','countries':['TM']},'Africa/Tunis':{'name':a1001_0x330420(0x17e),'utcOffset':0x3c,'offsetStr':a1001_0x330420(0x16a),'countries':['TN']},'Pacific/Tongatapu':{'name':a1001_0x330420(0x17b),'utcOffset':0x30c,'offsetStr':a1001_0x330420(0x23e),'countries':['TO']},'Europe/Istanbul':{'name':a1001_0x330420(0x12f),'utcOffset':0x78,'offsetStr':a1001_0x330420(0x19c),'countries':['TR']},'America/Port_of_Spain':{'name':a1001_0x330420(0x1c3),'utcOffset':-0xf0,'offsetStr':a1001_0x330420(0x1d6),'countries':['TT','AG','AI','BL','DM','GD','GP','KN','LC','MF','MS','VC','VG','VI']},'Pacific/Funafuti':{'name':a1001_0x330420(0x14c),'utcOffset':0x2d0,'offsetStr':'+12:00','countries':['TV']},'Asia/Taipei':{'name':a1001_0x330420(0x12b),'utcOffset':0x1e0,'offsetStr':a1001_0x330420(0x20a),'countries':['TW']},'Europe/Kiev':{'name':a1001_0x330420(0x152),'utcOffset':0x78,'offsetStr':a1001_0x330420(0x19c),'countries':['UA']},'Europe/Uzhgorod':{'name':'Europe/Uzhgorod','utcOffset':0x78,'offsetStr':a1001_0x330420(0x19c),'countries':['UA']},'Europe/Zaporozhye':{'name':a1001_0x330420(0x23c),'utcOffset':0x78,'offsetStr':'+02:00','countries':['UA']},'Pacific/Wake':{'name':a1001_0x330420(0x202),'utcOffset':0x2d0,'offsetStr':'+12:00','countries':['UM']},'America/New_York':{'name':a1001_0x330420(0x15e),'utcOffset':-0x12c,'offsetStr':a1001_0x330420(0x1bb),'countries':['US']},'America/Detroit':{'name':'America/Detroit','utcOffset':-0x12c,'offsetStr':'-05:00','countries':['US']},'America/Kentucky/Louisville':{'name':'America/Kentucky/Louisville','utcOffset':-0x12c,'offsetStr':a1001_0x330420(0x1bb),'countries':['US']},'America/Kentucky/Monticello':{'name':a1001_0x330420(0x183),'utcOffset':-0x12c,'offsetStr':a1001_0x330420(0x1bb),'countries':['US']},'America/Indiana/Indianapolis':{'name':a1001_0x330420(0x1da),'utcOffset':-0x12c,'offsetStr':a1001_0x330420(0x1bb),'countries':['US']},'America/Indiana/Vincennes':{'name':a1001_0x330420(0x20c),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['US']},'America/Indiana/Winamac':{'name':'America/Indiana/Winamac','utcOffset':-0x12c,'offsetStr':a1001_0x330420(0x1bb),'countries':['US']},'America/Indiana/Marengo':{'name':'America/Indiana/Marengo','utcOffset':-0x12c,'offsetStr':a1001_0x330420(0x1bb),'countries':['US']},'America/Indiana/Petersburg':{'name':a1001_0x330420(0x219),'utcOffset':-0x12c,'offsetStr':a1001_0x330420(0x1bb),'countries':['US']},'America/Indiana/Vevay':{'name':'America/Indiana/Vevay','utcOffset':-0x12c,'offsetStr':a1001_0x330420(0x1bb),'countries':['US']},'America/Chicago':{'name':a1001_0x330420(0x214),'utcOffset':-0x168,'offsetStr':a1001_0x330420(0x1c2),'countries':['US']},'America/Indiana/Tell_City':{'name':a1001_0x330420(0x13e),'utcOffset':-0x168,'offsetStr':a1001_0x330420(0x1c2),'countries':['US']},'America/Indiana/Knox':{'name':a1001_0x330420(0x217),'utcOffset':-0x168,'offsetStr':a1001_0x330420(0x1c2),'countries':['US']},'America/Menominee':{'name':a1001_0x330420(0x113),'utcOffset':-0x168,'offsetStr':a1001_0x330420(0x1c2),'countries':['US']},'America/North_Dakota/Center':{'name':a1001_0x330420(0x1a0),'utcOffset':-0x168,'offsetStr':'-06:00','countries':['US']},'America/North_Dakota/New_Salem':{'name':a1001_0x330420(0x128),'utcOffset':-0x168,'offsetStr':a1001_0x330420(0x1c2),'countries':['US']},'America/North_Dakota/Beulah':{'name':a1001_0x330420(0x15b),'utcOffset':-0x168,'offsetStr':a1001_0x330420(0x1c2),'countries':['US']},'America/Denver':{'name':a1001_0x330420(0x180),'utcOffset':-0x1a4,'offsetStr':a1001_0x330420(0x1cd),'countries':['US']},'America/Boise':{'name':a1001_0x330420(0x210),'utcOffset':-0x1a4,'offsetStr':'-07:00','countries':['US']},'America/Phoenix':{'name':a1001_0x330420(0x1eb),'utcOffset':-0x1a4,'offsetStr':a1001_0x330420(0x1cd),'countries':['US']},'America/Los_Angeles':{'name':a1001_0x330420(0x21f),'utcOffset':-0x1e0,'offsetStr':a1001_0x330420(0x1fe),'countries':['US']},'America/Metlakatla':{'name':a1001_0x330420(0x188),'utcOffset':-0x1e0,'offsetStr':a1001_0x330420(0x1fe),'countries':['US']},'America/Anchorage':{'name':'America/Anchorage','utcOffset':-0x21c,'offsetStr':'-09:00','countries':['US']},'America/Juneau':{'name':a1001_0x330420(0x201),'utcOffset':-0x21c,'offsetStr':'-09:00','countries':['US']},'America/Sitka':{'name':a1001_0x330420(0x1aa),'utcOffset':-0x21c,'offsetStr':'-09:00','countries':['US']},'America/Yakutat':{'name':'America/Yakutat','utcOffset':-0x21c,'offsetStr':'-09:00','countries':['US']},'America/Nome':{'name':a1001_0x330420(0x135),'utcOffset':-0x21c,'offsetStr':'-09:00','countries':['US']},'America/Adak':{'name':a1001_0x330420(0x117),'utcOffset':-0x258,'offsetStr':a1001_0x330420(0x14e),'countries':['US']},'Pacific/Honolulu':{'name':a1001_0x330420(0x1d4),'utcOffset':-0x258,'offsetStr':a1001_0x330420(0x14e),'countries':['US','UM']},'America/Montevideo':{'name':'America/Montevideo','utcOffset':-0xb4,'offsetStr':a1001_0x330420(0x153),'countries':['UY']},'Asia/Samarkand':{'name':a1001_0x330420(0x20d),'utcOffset':0x12c,'offsetStr':a1001_0x330420(0x222),'countries':['UZ']},'Asia/Tashkent':{'name':'Asia/Tashkent','utcOffset':0x12c,'offsetStr':a1001_0x330420(0x222),'countries':['UZ']},'America/Caracas':{'name':a1001_0x330420(0x181),'utcOffset':-0x10e,'offsetStr':a1001_0x330420(0x1b8),'countries':['VE']},'Asia/Ho_Chi_Minh':{'name':a1001_0x330420(0x1d8),'utcOffset':0x1a4,'offsetStr':a1001_0x330420(0x1f0),'countries':['VN']},'Pacific/Efate':{'name':a1001_0x330420(0x18b),'utcOffset':0x294,'offsetStr':a1001_0x330420(0x166),'countries':['VU']},'Pacific/Wallis':{'name':a1001_0x330420(0x160),'utcOffset':0x2d0,'offsetStr':a1001_0x330420(0x171),'countries':['WF']},'Pacific/Apia':{'name':a1001_0x330420(0x1d7),'utcOffset':0x348,'offsetStr':a1001_0x330420(0x182),'countries':['WS']},'Africa/Johannesburg':{'name':a1001_0x330420(0x110),'utcOffset':0x78,'offsetStr':a1001_0x330420(0x19c),'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 dd085c9..21d1000 100644 --- a/server/config/environment/test.js +++ b/server/config/environment/test.js @@ -1 +1 @@ -const a840_0x2baf=['recordingSecret','timezones','asteriskUsername','rpcIp','dbHost','sessionSecret','mysqlUser','mysql','jstz','utf8mb4','dbPort','agiPort','mysqlDatabase','asteriskPassword','googleSecret','redisHost','determine','mysqlPassword','rpcPort','agiIp','offsetStr','../config.service','name','googleId','utf8_general_ci','asteriskPort','./shared','redisPort','utf8'];(function(_0x2e5b4f,_0x2bafa9){const _0x2f0428=function(_0x330043){while(--_0x330043){_0x2e5b4f['push'](_0x2e5b4f['shift']());}};_0x2f0428(++_0x2bafa9);}(a840_0x2baf,0x1dc));const a840_0x2f04=function(_0x2e5b4f,_0x2bafa9){_0x2e5b4f=_0x2e5b4f-0x0;let _0x2f0428=a840_0x2baf[_0x2e5b4f];return _0x2f0428;};const _0x17ecf4=a840_0x2f04;'use strict';const shared=require(_0x17ecf4('0xe')),jstz=require(_0x17ecf4('0x19')),timezone=jstz[_0x17ecf4('0x4')](),timezoneOffset=shared[_0x17ecf4('0x12')][timezone[_0x17ecf4('0xa')]()][_0x17ecf4('0x8')],cs=require(_0x17ecf4('0x9'))['getConfigService']();module['exports']={'sequelize':{'database':cs['mysqlDatabase'],'username':cs[_0x17ecf4('0x17')],'password':cs[_0x17ecf4('0x5')],'options':{'host':cs['dbHost'],'port':cs[_0x17ecf4('0x1b')],'dialect':'mysql','dialectOptions':{'charset':_0x17ecf4('0x1a')},'timezone':timezoneOffset,'define':{'charset':_0x17ecf4('0x10'),'collate':_0x17ecf4('0xc')}}},'sequelizeHistory':{'database':cs[_0x17ecf4('0x0')],'username':cs[_0x17ecf4('0x17')],'password':cs[_0x17ecf4('0x5')],'options':{'host':cs[_0x17ecf4('0x15')],'port':cs[_0x17ecf4('0x1b')],'dialect':_0x17ecf4('0x18'),'dialectOptions':{'charset':_0x17ecf4('0x1a')},'logging':![],'timezone':timezoneOffset,'define':{'charset':_0x17ecf4('0x10'),'collate':'utf8_general_ci'}}},'asterisk':{'ip':cs['asteriskHost'],'port':cs[_0x17ecf4('0xd')],'username':cs[_0x17ecf4('0x13')],'password':cs[_0x17ecf4('0x1')]},'redis':{'host':cs[_0x17ecf4('0x3')],'port':cs[_0x17ecf4('0xf')]},'rpc':{'port':cs[_0x17ecf4('0x6')],'ip':cs[_0x17ecf4('0x14')]},'agi':{'port':cs[_0x17ecf4('0x1c')],'ip':cs[_0x17ecf4('0x7')]},'seedDB':cs['seedDb'],'google':{'clientID':cs[_0x17ecf4('0xb')],'clientSecret':cs[_0x17ecf4('0x2')],'callbackURL':cs['domain']+'/api/auth/google/callback'},'secrets':{'session':cs[_0x17ecf4('0x16')],'recording':cs[_0x17ecf4('0x11')]},'xdr':{'disabled':![]}}; \ No newline at end of file +const a1002_0x5717=['googleSecret','timezones','offsetStr','mysql','exports','determine','domain','dbHost','asteriskPassword','../config.service','redisPort','mysqlDatabase','mysqlPassword','./shared','mysqlUser','utf8','/api/auth/google/callback','redisHost','dbPort','utf8mb4','jstz','googleId','seedDb','asteriskPort','utf8_general_ci'];(function(_0x46bb07,_0x6ebd82){const _0x57172b=function(_0x3b91b2){while(--_0x3b91b2){_0x46bb07['push'](_0x46bb07['shift']());}};_0x57172b(++_0x6ebd82);}(a1002_0x5717,0x116));const a1002_0x3b91=function(_0x46bb07,_0x6ebd82){_0x46bb07=_0x46bb07-0x130;let _0x57172b=a1002_0x5717[_0x46bb07];return _0x57172b;};const a1002_0x431718=a1002_0x3b91;'use strict';const shared=require(a1002_0x431718(0x13a)),jstz=require(a1002_0x431718(0x141)),timezone=jstz[a1002_0x431718(0x132)](),timezoneOffset=shared[a1002_0x431718(0x147)][timezone['name']()][a1002_0x431718(0x148)],cs=require(a1002_0x431718(0x136))['getConfigService']();module[a1002_0x431718(0x131)]={'sequelize':{'database':cs['mysqlDatabase'],'username':cs[a1002_0x431718(0x13b)],'password':cs[a1002_0x431718(0x139)],'options':{'host':cs[a1002_0x431718(0x134)],'port':cs[a1002_0x431718(0x13f)],'dialect':a1002_0x431718(0x130),'dialectOptions':{'charset':a1002_0x431718(0x140)},'timezone':timezoneOffset,'define':{'charset':a1002_0x431718(0x13c),'collate':a1002_0x431718(0x145)}}},'sequelizeHistory':{'database':cs[a1002_0x431718(0x138)],'username':cs[a1002_0x431718(0x13b)],'password':cs[a1002_0x431718(0x139)],'options':{'host':cs[a1002_0x431718(0x134)],'port':cs[a1002_0x431718(0x13f)],'dialect':a1002_0x431718(0x130),'dialectOptions':{'charset':a1002_0x431718(0x140)},'logging':![],'timezone':timezoneOffset,'define':{'charset':a1002_0x431718(0x13c),'collate':a1002_0x431718(0x145)}}},'asterisk':{'ip':cs['asteriskHost'],'port':cs[a1002_0x431718(0x144)],'username':cs['asteriskUsername'],'password':cs[a1002_0x431718(0x135)]},'redis':{'host':cs[a1002_0x431718(0x13e)],'port':cs[a1002_0x431718(0x137)]},'rpc':{'port':cs['rpcPort'],'ip':cs['rpcIp']},'agi':{'port':cs['agiPort'],'ip':cs['agiIp']},'seedDB':cs[a1002_0x431718(0x143)],'google':{'clientID':cs[a1002_0x431718(0x142)],'clientSecret':cs[a1002_0x431718(0x146)],'callbackURL':cs[a1002_0x431718(0x133)]+a1002_0x431718(0x13d)},'secrets':{'session':cs['sessionSecret'],'recording':cs['recordingSecret']},'xdr':{'disabled':![]}}; \ No newline at end of file diff --git a/server/config/express.js b/server/config/express.js index 0bd14dd..33bab3e 100644 --- a/server/config/express.js +++ b/server/config/express.js @@ -1 +1 @@ -const a841_0x5c1d=['set','./config.service','app','appPath','html','Public\x20path\x20set\x20to\x20','cookie-parser','engine','ejs','root','express','OPTIONS,GET,HEAD,PUT,PATCH,POST,DELETE','renderFile','errorhandler','50mb','method-override','./environment','join','initialize','toISOString','json\x20replacer','use','isProduction','get','static','split','body-parser','passport','public','/server/views','views','json','cors'];(function(_0x871584,_0x5c1ded){const _0x5647a4=function(_0x7e9e08){while(--_0x7e9e08){_0x871584['push'](_0x871584['shift']());}};_0x5647a4(++_0x5c1ded);}(a841_0x5c1d,0x149));const a841_0x5647=function(_0x871584,_0x5c1ded){_0x871584=_0x871584-0x0;let _0x5647a4=a841_0x5c1d[_0x871584];return _0x5647a4;};const _0x3f68de=a841_0x5647;'use strict';const express=require(_0x3f68de('0xb')),bodyParser=require(_0x3f68de('0x1b')),methodOverride=require(_0x3f68de('0x10')),cookieParser=require(_0x3f68de('0x7')),errorHandler=require(_0x3f68de('0xe')),path=require('path'),passport=require(_0x3f68de('0x1c')),cors=require(_0x3f68de('0x0')),config=require(_0x3f68de('0x11')),{getConfigService}=require(_0x3f68de('0x2')),logger=require('./logger')(_0x3f68de('0x3'));exports['default']=function(_0x7e9e08){const _0x159522=_0x3f68de,_0x1e0336=getConfigService();_0x7e9e08[_0x159522('0x1')](_0x159522('0x4'),path[_0x159522('0x12')](config[_0x159522('0xa')],'..',_0x159522('0x1d'))),logger['info'](_0x159522('0x6')+_0x7e9e08[_0x159522('0x18')]('appPath')),!_0x1e0336[_0x159522('0x17')]&&_0x7e9e08['use'](errorHandler()),_0x7e9e08[_0x159522('0x1')](_0x159522('0x15'),function(_0x15062f,_0x21e418){const _0x2c33e9=_0x159522;return this[_0x15062f]instanceof Date&&(_0x21e418=this[_0x15062f][_0x2c33e9('0x14')]()[_0x2c33e9('0x1a')]('.')[0x0]+'Z'),_0x21e418;}),_0x7e9e08[_0x159522('0x16')](express[_0x159522('0x19')](_0x7e9e08[_0x159522('0x18')](_0x159522('0x4')))),_0x7e9e08['set'](_0x159522('0x1f'),config[_0x159522('0xa')]+_0x159522('0x1e')),_0x7e9e08[_0x159522('0x8')](_0x159522('0x5'),require(_0x159522('0x9'))[_0x159522('0xd')]),_0x7e9e08['set']('view\x20engine',_0x159522('0x5')),_0x7e9e08[_0x159522('0x16')](bodyParser['urlencoded']({'limit':'50mb','extended':!![]})),_0x7e9e08[_0x159522('0x16')](bodyParser[_0x159522('0x20')]({'limit':_0x159522('0xf')})),_0x7e9e08['use'](cors({'origin':!_0x1e0336[_0x159522('0x17')],'methods':_0x1e0336[_0x159522('0x17')]?'GET,HEAD,PUT,PATCH,POST,DELETE':_0x159522('0xc'),'preflightContinue':!![]})),_0x7e9e08['use'](methodOverride()),_0x7e9e08[_0x159522('0x16')](cookieParser()),_0x7e9e08['use'](passport[_0x159522('0x13')]());}; \ No newline at end of file +const a1003_0x3643=['OPTIONS,GET,HEAD,PUT,PATCH,POST,DELETE','appPath','info','./environment','app','errorhandler','renderFile','json\x20replacer','express','/server/views','body-parser','initialize','./config.service','toISOString','default','passport','50mb','engine','root','isProduction','view\x20engine','split','urlencoded','join','views','static','use','set','cookie-parser','get'];(function(_0xe166af,_0x4ea393){const _0x364377=function(_0x1385bb){while(--_0x1385bb){_0xe166af['push'](_0xe166af['shift']());}};_0x364377(++_0x4ea393);}(a1003_0x3643,0xba));const a1003_0x1385=function(_0xe166af,_0x4ea393){_0xe166af=_0xe166af-0x15e;let _0x364377=a1003_0x3643[_0xe166af];return _0x364377;};const a1003_0x3bb432=a1003_0x1385;'use strict';const express=require(a1003_0x3bb432(0x160)),bodyParser=require(a1003_0x3bb432(0x162)),methodOverride=require('method-override'),cookieParser=require(a1003_0x3bb432(0x174)),errorHandler=require(a1003_0x3bb432(0x17b)),path=require('path'),passport=require(a1003_0x3bb432(0x167)),cors=require('cors'),config=require(a1003_0x3bb432(0x179)),{getConfigService}=require(a1003_0x3bb432(0x164)),logger=require('./logger')(a1003_0x3bb432(0x17a));exports[a1003_0x3bb432(0x166)]=function(_0x33bc2c){const _0x62a7e6=a1003_0x3bb432,_0x1bd3b3=getConfigService();_0x33bc2c['set'](_0x62a7e6(0x177),path[_0x62a7e6(0x16f)](config['root'],'..','public')),logger[_0x62a7e6(0x178)]('Public\x20path\x20set\x20to\x20'+_0x33bc2c[_0x62a7e6(0x175)]('appPath')),!_0x1bd3b3['isProduction']&&_0x33bc2c[_0x62a7e6(0x172)](errorHandler()),_0x33bc2c['set'](_0x62a7e6(0x15f),function(_0x34e5a8,_0x4f02f9){const _0x2f6d78=_0x62a7e6;return this[_0x34e5a8]instanceof Date&&(_0x4f02f9=this[_0x34e5a8][_0x2f6d78(0x165)]()[_0x2f6d78(0x16d)]('.')[0x0]+'Z'),_0x4f02f9;}),_0x33bc2c['use'](express[_0x62a7e6(0x171)](_0x33bc2c[_0x62a7e6(0x175)](_0x62a7e6(0x177)))),_0x33bc2c[_0x62a7e6(0x173)](_0x62a7e6(0x170),config[_0x62a7e6(0x16a)]+_0x62a7e6(0x161)),_0x33bc2c[_0x62a7e6(0x169)]('html',require('ejs')[_0x62a7e6(0x15e)]),_0x33bc2c[_0x62a7e6(0x173)](_0x62a7e6(0x16c),'html'),_0x33bc2c[_0x62a7e6(0x172)](bodyParser[_0x62a7e6(0x16e)]({'limit':_0x62a7e6(0x168),'extended':!![]})),_0x33bc2c[_0x62a7e6(0x172)](bodyParser['json']({'limit':_0x62a7e6(0x168)})),_0x33bc2c[_0x62a7e6(0x172)](cors({'origin':!_0x1bd3b3[_0x62a7e6(0x16b)],'methods':_0x1bd3b3['isProduction']?'GET,HEAD,PUT,PATCH,POST,DELETE':_0x62a7e6(0x176),'preflightContinue':!![]})),_0x33bc2c[_0x62a7e6(0x172)](methodOverride()),_0x33bc2c[_0x62a7e6(0x172)](cookieParser()),_0x33bc2c[_0x62a7e6(0x172)](passport[_0x62a7e6(0x163)]());}; \ No newline at end of file diff --git a/server/config/license/hardware.js b/server/config/license/hardware.js index 64c6eff..ee6aa2f 100644 --- a/server/config/license/hardware.js +++ b/server/config/license/hardware.js @@ -1 +1 @@ -const a842_0xb63e=['execSync','orderBy','model','head','devLicense','crypto','win32','md5','length','../config.service','hostname','internal','concat','test','IPv4','filter','macAddress','mac','digest','address','update','127.0.0.1','hex','keys','replace','lodash','ipAddress','substring','family','map','dmidecode\x20--string\x20system-uuid','createHash','cpus'];(function(_0x391e61,_0xb63e1d){const _0x547f00=function(_0x49db64){while(--_0x49db64){_0x391e61['push'](_0x391e61['shift']());}};_0x547f00(++_0xb63e1d);}(a842_0xb63e,0x1d0));const a842_0x547f=function(_0x391e61,_0xb63e1d){_0x391e61=_0x391e61-0x0;let _0x547f00=a842_0xb63e[_0x391e61];return _0x547f00;};const _0x479e68=a842_0x547f;'use strict';const _=require(_0x479e68('0x17')),os=require('os'),crypto=require(_0x479e68('0x3')),{getConfigService}=require(_0x479e68('0x7')),exec=require('child_process')[_0x479e68('0x1f')];function getInterfaces(){const _0x5481ce=_0x479e68;let _0x49db64=[];const _0x27e7ee=os['networkInterfaces'](),_0x38d7fa=_[_0x5481ce('0x20')](_[_0x5481ce('0x15')](_0x27e7ee));for(let _0x1023a8=0x0;_0x1023a8<_0x38d7fa[_0x5481ce('0x6')];_0x1023a8++){const _0x17242f=_0x27e7ee[_0x38d7fa[_0x1023a8]][_0x5481ce('0xd')](function(_0x440783){const _0x5e07df=_0x5481ce;return _0x440783[_0x5e07df('0x1a')]===_0x5e07df('0xc')&&_0x440783[_0x5e07df('0x9')]===![];});_0x49db64=_0x49db64[_0x5481ce('0xa')](_0x17242f);}return _0x49db64;}function getFirstInterface(){const _0x50bc5a=_0x479e68,_0x3eeee5=_[_0x50bc5a('0x1')](getInterfaces());return{'macAddress':_0x3eeee5&&_0x3eeee5[_0x50bc5a('0xf')]?_0x3eeee5[_0x50bc5a('0xf')]:'00:00:00:00:00:00','ipAddress':_0x3eeee5&&_0x3eeee5[_0x50bc5a('0x11')]?_0x3eeee5['address']:_0x50bc5a('0x13')};}function getCPUhash(){const _0x1195bf=_0x479e68,_0x3f5b16=_[_0x1195bf('0x20')](os[_0x1195bf('0x1e')]()[_0x1195bf('0x1b')](function(_0x17fac3){const _0x130e17=_0x1195bf;return _0x17fac3[_0x130e17('0x0')];}))['join'](':');return crypto[_0x1195bf('0x1d')](_0x1195bf('0x5'))[_0x1195bf('0x12')](_0x3f5b16)[_0x1195bf('0x10')](_0x1195bf('0x14'));}function getUuid(){const _0x7e2149=_0x479e68,_0x15b83a=getConfigService(),_0x2df6be=os['platform'](),_0x45e2b2=/[0-9a-f-]{36}/;if(!_0x15b83a['isProduction']&&_0x45e2b2[_0x7e2149('0xb')](_0x15b83a[_0x7e2149('0x2')]))return _0x15b83a[_0x7e2149('0x2')];else{if(_0x2df6be===_0x7e2149('0x4'))return exec(_0x7e2149('0x1c'),{'encoding':'utf8'})[_0x7e2149('0x16')]('\x0d\x0a','');else{const _0x3bd140=getFirstInterface(),_0x12ddd0=getCPUhash(),_0x45cfdb=_0x12ddd0+'|'+os[_0x7e2149('0x8')]()+'|'+_0x3bd140[_0x7e2149('0xe')]+'|'+_0x3bd140[_0x7e2149('0x18')],_0x52db3f=crypto[_0x7e2149('0x1d')](_0x7e2149('0x5'))['update'](_0x45cfdb)[_0x7e2149('0x10')]('hex');return _0x52db3f[_0x7e2149('0x19')](0x0,0x8)+'-'+_0x52db3f[_0x7e2149('0x19')](0x8,0xc)+'-'+_0x52db3f[_0x7e2149('0x19')](0xc,0x10)+'-'+_0x52db3f[_0x7e2149('0x19')](0x10,0x14)+'-'+_0x52db3f['substring'](0x14);}}}module['exports']={'getUuid':getUuid,'getFirstInterface':getFirstInterface,'getCPUhash':getCPUhash}; \ No newline at end of file +const a1004_0x17d7=['macAddress','../config.service','length','isProduction','hex','00:00:00:00:00:00','digest','127.0.0.1','address','join','filter','md5','getUuid','child_process','keys','win32','platform','model','lodash','IPv4','internal','utf8','devLicense','dmidecode\x20--string\x20system-uuid','head','map','cpus','family','substring','hostname','createHash','exports','update','networkInterfaces','orderBy'];(function(_0x3a63a2,_0x41f1d9){const _0x17d7b6=function(_0x4df2eb){while(--_0x4df2eb){_0x3a63a2['push'](_0x3a63a2['shift']());}};_0x17d7b6(++_0x41f1d9);}(a1004_0x17d7,0xb1));const a1004_0x4df2=function(_0x3a63a2,_0x41f1d9){_0x3a63a2=_0x3a63a2-0x7f;let _0x17d7b6=a1004_0x17d7[_0x3a63a2];return _0x17d7b6;};const a1004_0x498ef4=a1004_0x4df2;'use strict';const _=require(a1004_0x498ef4(0x8f)),os=require('os'),crypto=require('crypto'),{getConfigService}=require(a1004_0x498ef4(0xa1)),exec=require(a1004_0x498ef4(0x8a))['execSync'];function getInterfaces(){const _0x4f1a99=a1004_0x498ef4;let _0x13182a=[];const _0x1f74d6=os[_0x4f1a99(0x9e)](),_0x299d95=_[_0x4f1a99(0x9f)](_[_0x4f1a99(0x8b)](_0x1f74d6));for(let _0x2429fd=0x0;_0x2429fd<_0x299d95[_0x4f1a99(0x7f)];_0x2429fd++){const _0x4ec380=_0x1f74d6[_0x299d95[_0x2429fd]][_0x4f1a99(0x87)](function(_0x311a31){const _0x564147=_0x4f1a99;return _0x311a31[_0x564147(0x98)]===_0x564147(0x90)&&_0x311a31[_0x564147(0x91)]===![];});_0x13182a=_0x13182a['concat'](_0x4ec380);}return _0x13182a;}function getFirstInterface(){const _0x904811=a1004_0x498ef4,_0x163efa=_[_0x904811(0x95)](getInterfaces());return{'macAddress':_0x163efa&&_0x163efa['mac']?_0x163efa['mac']:_0x904811(0x82),'ipAddress':_0x163efa&&_0x163efa[_0x904811(0x85)]?_0x163efa[_0x904811(0x85)]:_0x904811(0x84)};}function getCPUhash(){const _0x38e915=a1004_0x498ef4,_0x2f265c=_[_0x38e915(0x9f)](os[_0x38e915(0x97)]()[_0x38e915(0x96)](function(_0x4576b5){const _0x358b8e=_0x38e915;return _0x4576b5[_0x358b8e(0x8e)];}))[_0x38e915(0x86)](':');return crypto[_0x38e915(0x9b)](_0x38e915(0x88))[_0x38e915(0x9d)](_0x2f265c)[_0x38e915(0x83)](_0x38e915(0x81));}function getUuid(){const _0x41905b=a1004_0x498ef4,_0x4215f9=getConfigService(),_0xb53368=os[_0x41905b(0x8d)](),_0x39eabf=/[0-9a-f-]{36}/;if(!_0x4215f9[_0x41905b(0x80)]&&_0x39eabf['test'](_0x4215f9[_0x41905b(0x93)]))return _0x4215f9['devLicense'];else{if(_0xb53368===_0x41905b(0x8c))return exec(_0x41905b(0x94),{'encoding':_0x41905b(0x92)})['replace']('\x0d\x0a','');else{const _0xdecbc4=getFirstInterface(),_0x59b115=getCPUhash(),_0x3c20d6=_0x59b115+'|'+os[_0x41905b(0x9a)]()+'|'+_0xdecbc4[_0x41905b(0xa0)]+'|'+_0xdecbc4['ipAddress'],_0x2ecc80=crypto[_0x41905b(0x9b)](_0x41905b(0x88))[_0x41905b(0x9d)](_0x3c20d6)[_0x41905b(0x83)]('hex');return _0x2ecc80[_0x41905b(0x99)](0x0,0x8)+'-'+_0x2ecc80[_0x41905b(0x99)](0x8,0xc)+'-'+_0x2ecc80[_0x41905b(0x99)](0xc,0x10)+'-'+_0x2ecc80[_0x41905b(0x99)](0x10,0x14)+'-'+_0x2ecc80[_0x41905b(0x99)](0x14);}}}module['exports'][a1004_0x498ef4(0x89)]=getUuid,module[a1004_0x498ef4(0x9c)]['getFirstInterface']=getFirstInterface,module[a1004_0x498ef4(0x9c)]['getCPUhash']=getCPUhash; \ No newline at end of file diff --git a/server/config/license/index.js b/server/config/license/index.js index 3ec7a41..9e48638 100644 --- a/server/config/license/index.js +++ b/server/config/license/index.js @@ -1 +1 @@ -const a843_0x3f08=['../../api/jira/jira.controller','findOrCreate','%s\x20-\x20GRAY\x20PERIOD\x20STARTED\x20AT\x20%s','THE\x20LICENSE\x20HAS\x20BEEN\x20DISABLED','admin','ipAddress','%s/api/servers/%s/check?version=%s','util','info','THE\x20LICENSE\x20HAS\x20BEEN\x20UPDATED','data1','./hardware','update','error','MOTLICENSE','|email|','openIssue','email','Motion\x20License\x20Alert','|uuid|','moment','DEMO\x20START\x20AT\x20%s','format','|machineUuid|','|name|','fullname','%s/api/servers/%s/check?version=%s&oldtoken=%s','uuid','decryptString','THE\x20LICENSE\x20HAS\x20BEEN\x20ENABLED','days','NEW\x20UUID\x20DETECTED:\x20FROM\x20%s\x20TO\x20%s','../../components/encryptor','License','YYYY-MM-DD\x20HH:mm','getUuid','finally','reject','request-promise-native','||FIELD||VALUE||\x0a','diff','catch','active','default','license','toUpperCase','SERVICE\x20LICENSE\x20STARTED\x20%s','|reason|','encryptString','https://www.xcallymotion.com','then','GET','No\x20UUID\x20found','data2','User'];(function(_0x2e1327,_0x3f08f2){const _0x5959c7=function(_0x1e1aa2){while(--_0x1e1aa2){_0x2e1327['push'](_0x2e1327['shift']());}};_0x5959c7(++_0x3f08f2);}(a843_0x3f08,0x144));const a843_0x5959=function(_0x2e1327,_0x3f08f2){_0x2e1327=_0x2e1327-0x0;let _0x5959c7=a843_0x3f08[_0x2e1327];return _0x5959c7;};const _0x4dacf5=a843_0x5959;'use strict';const {version}=require('../../../package.json'),util=require(_0x4dacf5('0xd')),encryptor=require(_0x4dacf5('0x26')),moment=require(_0x4dacf5('0x1a')),rp=require(_0x4dacf5('0x2c')),db=require('../../mysqldb')['db'],hardware=require(_0x4dacf5('0x11')),logger=require('../logger')('license'),jira=require(_0x4dacf5('0x6')),HOST=_0x4dacf5('0x0'),TIME=0x3c*0x1388,DAYS=0x7;let GRAY_PERIOD_REASON,ADMIN,oldToken;function httpRequest(_0x1e1aa2){return new Promise(function(_0x2e86bc,_0x4aa8c5){const _0x4fafe4=a843_0x5959;let _0x515344=util[_0x4fafe4('0x1c')](_0x4fafe4('0xc'),HOST,_0x1e1aa2,version);oldToken&&(_0x515344=util[_0x4fafe4('0x1c')](_0x4fafe4('0x20'),HOST,_0x1e1aa2,version,oldToken));const _0x409268={'uri':_0x515344,'method':_0x4fafe4('0x2'),'timeout':0xea60,'json':!![]};return rp(_0x409268)[_0x4fafe4('0x1')](function(_0x477977){_0x2e86bc(_0x477977);})[_0x4fafe4('0x2f')](function(_0x4f10d8){_0x4aa8c5(_0x4f10d8);});});}function sendJiraAlert(_0x7bec7d,_0x4972cc,_0x357357){const _0x11c49b=_0x4dacf5;let _0x89f96=_0x11c49b('0x2d');return db[_0x11c49b('0x5')]['findOne']({'where':{'role':_0x11c49b('0xa')},'attributes':[_0x11c49b('0x1f'),_0x11c49b('0x17')],'raw':!![]})[_0x11c49b('0x1')](function(_0x583f13){const _0x37de6b=_0x11c49b;return ADMIN=_0x583f13,_0x89f96+=_0x37de6b('0x35')+_0x357357+'|\x0a',_0x89f96+=_0x37de6b('0x19')+_0x7bec7d+'|\x0a',_0x89f96+=_0x37de6b('0x1d')+_0x4972cc+'|\x0a',_0x89f96+=_0x37de6b('0x1e')+ADMIN[_0x37de6b('0x1f')]+'|\x0a',_0x89f96+=_0x37de6b('0x15')+ADMIN[_0x37de6b('0x17')]+'|\x0a',_0x89f96;})[_0x11c49b('0x1')](function(_0x288f7f){const _0x596002=_0x11c49b,_0x4a2149=hardware['getFirstInterface']()[_0x596002('0xb')];return jira[_0x596002('0x16')]({'key':_0x596002('0x14'),'summary':_0x596002('0x18'),'description':_0x288f7f,'issuetype':'Alert','oldToken':_0x7bec7d,'newToken':_0x4972cc,'email':ADMIN['email'],'name':ADMIN[_0x596002('0x1f')],'reason':GRAY_PERIOD_REASON,'ip':_0x4a2149});});}function manageLicense(_0x52a51b,_0x44937f){const _0x50b99a=_0x4dacf5,_0x157844=_0x44937f['get']({'plain':!![]});httpRequest(_0x52a51b)[_0x50b99a('0x1')](function(_0x2bfdba){const _0x1cb160=_0x50b99a;oldToken&&(oldToken=undefined);if(_0x2bfdba[_0x1cb160('0x30')]){(!_0x157844[_0x1cb160('0x32')]&&_0x157844[_0x1cb160('0x32')]!=_0x2bfdba[_0x1cb160('0x32')]||_0x157844[_0x1cb160('0x32')]&&_0x157844[_0x1cb160('0x4')])&&logger['info'](_0x1cb160('0x23'));_0x157844[_0x1cb160('0x32')]&&!_0x157844[_0x1cb160('0x4')]&&_0x157844[_0x1cb160('0x32')]!=_0x2bfdba[_0x1cb160('0x32')]&&logger[_0x1cb160('0xe')](_0x1cb160('0xf'));if(_0x157844[_0x1cb160('0x32')]&&!_0x157844[_0x1cb160('0x4')]&&_0x157844[_0x1cb160('0x32')]==_0x2bfdba[_0x1cb160('0x32')])return _0x44937f;return _0x44937f[_0x1cb160('0x12')]({'data1':_0x52a51b,'data2':null,'license':_0x2bfdba[_0x1cb160('0x32')]});}else{if(_0x2bfdba[_0x1cb160('0x32')]||_0x157844[_0x1cb160('0x32')]){if(!_0x157844[_0x1cb160('0x4')])return _0x157844[_0x1cb160('0x10')]==_0x52a51b?(GRAY_PERIOD_REASON='Disabled',logger[_0x1cb160('0xe')](_0x1cb160('0x9'))):(GRAY_PERIOD_REASON='Changed',oldToken=_0x157844[_0x1cb160('0x10')],logger[_0x1cb160('0xe')]('NEW\x20UUID\x20DETECTED:\x20FROM\x20%s\x20TO\x20%s',_0x157844[_0x1cb160('0x10')],_0x52a51b)),sendJiraAlert(_0x157844['data1'],_0x2bfdba[_0x1cb160('0x21')],GRAY_PERIOD_REASON),logger['info'](_0x1cb160('0x8'),GRAY_PERIOD_REASON[_0x1cb160('0x33')](),moment()[_0x1cb160('0x1c')](_0x1cb160('0x28'))),_0x44937f[_0x1cb160('0x12')]({'data2':encryptor[_0x1cb160('0x36')](moment()[_0x1cb160('0x1c')](_0x1cb160('0x28')))});else{if(moment()[_0x1cb160('0x2e')](encryptor[_0x1cb160('0x22')](_0x157844['data2']),_0x1cb160('0x24'))>DAYS)return logger[_0x1cb160('0xe')](_0x1cb160('0x1b'),moment()[_0x1cb160('0x1c')](_0x1cb160('0x28'))),_0x44937f['update']({'data1':_0x52a51b,'data2':null,'license':null});}}else{if(_0x157844[_0x1cb160('0x10')]!=_0x52a51b)return logger['info'](_0x1cb160('0x25'),_0x157844[_0x1cb160('0x10')],_0x52a51b),_0x44937f[_0x1cb160('0x12')]({'data1':_0x52a51b,'data2':null,'license':null});}}return _0x44937f;})[_0x50b99a('0x1')](function(_0x39b996){_0x44937f=_0x39b996;})[_0x50b99a('0x2f')](function(_0x22028c){const _0x2c3011=_0x50b99a;logger[_0x2c3011('0x13')](_0x22028c['message']);})[_0x50b99a('0x2a')](function(){setTimeout(function(){const _0x5626ae=a843_0x5959;manageLicense(hardware[_0x5626ae('0x29')](),_0x44937f);},TIME);});}function defaultLicense(){const _0x31dbbf=_0x4dacf5,_0x418f24=hardware[_0x31dbbf('0x29')]();return _0x418f24?db[_0x31dbbf('0x27')][_0x31dbbf('0x7')]({'where':{'id':0x1},'defaults':{'data1':_0x418f24}})[_0x31dbbf('0x1')](function([_0x69836f]){const _0x51ffc7=_0x31dbbf;logger[_0x51ffc7('0xe')](_0x51ffc7('0x34'),_0x418f24),manageLicense(_0x418f24,_0x69836f);})[_0x31dbbf('0x2f')](function(_0x38cbd2){const _0x116e81=_0x31dbbf;logger[_0x116e81('0x13')](_0x38cbd2['message']);throw _0x38cbd2;}):Promise[_0x31dbbf('0x2b')](new Error(_0x31dbbf('0x3')));}exports[_0x4dacf5('0x31')]=defaultLicense; \ No newline at end of file +const a1005_0x2aa2=['message','diff','error','YYYY-MM-DD\x20HH:mm','|email|','format','Motion\x20License\x20Alert','email','request-promise-native','get','catch','license','getUuid','DEMO\x20START\x20AT\x20%s','getFirstInterface','reject','../../../package.json','fullname','openIssue','update','User','data1','finally','days','../logger','uuid','../../mysqldb','THE\x20LICENSE\x20HAS\x20BEEN\x20DISABLED','https://www.xcallymotion.com','GET','No\x20UUID\x20found','|uuid|','../../components/encryptor','findOrCreate','decryptString','then','active','|name|','%s/api/servers/%s/check?version=%s&oldtoken=%s','%s/api/servers/%s/check?version=%s','info','THE\x20LICENSE\x20HAS\x20BEEN\x20ENABLED','%s\x20-\x20GRAY\x20PERIOD\x20STARTED\x20AT\x20%s','||FIELD||VALUE||\x0a','data2','NEW\x20UUID\x20DETECTED:\x20FROM\x20%s\x20TO\x20%s','default','./hardware','SERVICE\x20LICENSE\x20STARTED\x20%s','THE\x20LICENSE\x20HAS\x20BEEN\x20UPDATED','encryptString'];(function(_0x468b7f,_0x551a6a){const _0x2aa25b=function(_0x54df36){while(--_0x54df36){_0x468b7f['push'](_0x468b7f['shift']());}};_0x2aa25b(++_0x551a6a);}(a1005_0x2aa2,0xde));const a1005_0x54df=function(_0x468b7f,_0x551a6a){_0x468b7f=_0x468b7f-0x1a8;let _0x2aa25b=a1005_0x2aa2[_0x468b7f];return _0x2aa25b;};const a1005_0x46259e=a1005_0x54df;'use strict';const {version}=require(a1005_0x46259e(0x1d9)),util=require('util'),encryptor=require(a1005_0x46259e(0x1b6)),moment=require('moment'),rp=require(a1005_0x46259e(0x1d1)),{db}=require(a1005_0x46259e(0x1b0)),hardware=require(a1005_0x46259e(0x1c5)),logger=require(a1005_0x46259e(0x1ae))(a1005_0x46259e(0x1d4)),jira=require('../../api/jira/jira.controller'),HOST=a1005_0x46259e(0x1b2),TIME=0x3c*0x1388,DAYS=0x7;let GRAY_PERIOD_REASON,ADMIN,oldToken;function httpRequest(_0x16b587){return new Promise(function(_0x10bcb4,_0x577d9a){const _0x3c5bae=a1005_0x54df;let _0xdacaf2=util[_0x3c5bae(0x1ce)](_0x3c5bae(0x1bd),HOST,_0x16b587,version);oldToken&&(_0xdacaf2=util[_0x3c5bae(0x1ce)](_0x3c5bae(0x1bc),HOST,_0x16b587,version,oldToken));const _0x4fdb16={'uri':_0xdacaf2,'method':_0x3c5bae(0x1b3),'timeout':0xea60,'json':!![]};return rp(_0x4fdb16)[_0x3c5bae(0x1b9)](function(_0xfc1a1e){_0x10bcb4(_0xfc1a1e);})[_0x3c5bae(0x1d3)](function(_0x45798f){_0x577d9a(_0x45798f);});});}function sendJiraAlert(_0x1021f7,_0xd50b4e,_0x80ab8a){const _0xa63001=a1005_0x46259e;let _0x1d6291=_0xa63001(0x1c1);return db[_0xa63001(0x1aa)]['findOne']({'where':{'role':'admin'},'attributes':[_0xa63001(0x1da),_0xa63001(0x1d0)],'raw':!![]})[_0xa63001(0x1b9)](function(_0x443909){const _0x32d2ec=_0xa63001;return ADMIN=_0x443909,_0x1d6291+='|reason|'+_0x80ab8a+'|\x0a',_0x1d6291+=_0x32d2ec(0x1b5)+_0x1021f7+'|\x0a',_0x1d6291+='|machineUuid|'+_0xd50b4e+'|\x0a',_0x1d6291+=_0x32d2ec(0x1bb)+ADMIN[_0x32d2ec(0x1da)]+'|\x0a',_0x1d6291+=_0x32d2ec(0x1cd)+ADMIN[_0x32d2ec(0x1d0)]+'|\x0a',_0x1d6291;})['then'](function(_0x401586){const _0x3db68a=_0xa63001,_0x3251a9=hardware[_0x3db68a(0x1d7)]()['ipAddress'];return jira[_0x3db68a(0x1a8)]({'key':'MOTLICENSE','summary':_0x3db68a(0x1cf),'description':_0x401586,'issuetype':'Alert','oldToken':_0x1021f7,'newToken':_0xd50b4e,'email':ADMIN[_0x3db68a(0x1d0)],'name':ADMIN['fullname'],'reason':GRAY_PERIOD_REASON,'ip':_0x3251a9});});}function manageLicense(_0x1c4074,_0x1a771b){const _0x4f8f8d=a1005_0x46259e,_0x1e9102=_0x1a771b[_0x4f8f8d(0x1d2)]({'plain':!![]});httpRequest(_0x1c4074)[_0x4f8f8d(0x1b9)](function(_0x14f55f){const _0xbebde0=_0x4f8f8d;oldToken&&(oldToken=undefined);if(_0x14f55f[_0xbebde0(0x1ba)]){(!_0x1e9102[_0xbebde0(0x1d4)]&&_0x1e9102[_0xbebde0(0x1d4)]!=_0x14f55f[_0xbebde0(0x1d4)]||_0x1e9102[_0xbebde0(0x1d4)]&&_0x1e9102['data2'])&&logger[_0xbebde0(0x1be)](_0xbebde0(0x1bf));_0x1e9102[_0xbebde0(0x1d4)]&&!_0x1e9102[_0xbebde0(0x1c2)]&&_0x1e9102['license']!=_0x14f55f[_0xbebde0(0x1d4)]&&logger[_0xbebde0(0x1be)](_0xbebde0(0x1c7));if(_0x1e9102['license']&&!_0x1e9102[_0xbebde0(0x1c2)]&&_0x1e9102['license']==_0x14f55f['license'])return _0x1a771b;return _0x1a771b['update']({'data1':_0x1c4074,'data2':null,'license':_0x14f55f[_0xbebde0(0x1d4)]});}else{if(_0x14f55f[_0xbebde0(0x1d4)]||_0x1e9102[_0xbebde0(0x1d4)]){if(!_0x1e9102['data2'])return _0x1e9102['data1']==_0x1c4074?(GRAY_PERIOD_REASON='Disabled',logger['info'](_0xbebde0(0x1b1))):(GRAY_PERIOD_REASON='Changed',oldToken=_0x1e9102[_0xbebde0(0x1ab)],logger['info'](_0xbebde0(0x1c3),_0x1e9102[_0xbebde0(0x1ab)],_0x1c4074)),sendJiraAlert(_0x1e9102['data1'],_0x14f55f[_0xbebde0(0x1af)],GRAY_PERIOD_REASON),logger['info'](_0xbebde0(0x1c0),GRAY_PERIOD_REASON['toUpperCase'](),moment()[_0xbebde0(0x1ce)](_0xbebde0(0x1cc))),_0x1a771b[_0xbebde0(0x1a9)]({'data2':encryptor[_0xbebde0(0x1c8)](moment()[_0xbebde0(0x1ce)](_0xbebde0(0x1cc)))});else{if(moment()[_0xbebde0(0x1ca)](encryptor[_0xbebde0(0x1b8)](_0x1e9102['data2']),_0xbebde0(0x1ad))>DAYS)return logger[_0xbebde0(0x1be)](_0xbebde0(0x1d6),moment()[_0xbebde0(0x1ce)](_0xbebde0(0x1cc))),_0x1a771b[_0xbebde0(0x1a9)]({'data1':_0x1c4074,'data2':null,'license':null});}}else{if(_0x1e9102[_0xbebde0(0x1ab)]!=_0x1c4074)return logger[_0xbebde0(0x1be)]('NEW\x20UUID\x20DETECTED:\x20FROM\x20%s\x20TO\x20%s',_0x1e9102[_0xbebde0(0x1ab)],_0x1c4074),_0x1a771b[_0xbebde0(0x1a9)]({'data1':_0x1c4074,'data2':null,'license':null});}}return _0x1a771b;})[_0x4f8f8d(0x1b9)](function(_0xd2bffc){_0x1a771b=_0xd2bffc;})[_0x4f8f8d(0x1d3)](function(_0x4caf75){const _0x322df5=_0x4f8f8d;logger[_0x322df5(0x1cb)](_0x4caf75[_0x322df5(0x1c9)]);})[_0x4f8f8d(0x1ac)](function(){setTimeout(function(){const _0x3dd216=a1005_0x54df;manageLicense(hardware[_0x3dd216(0x1d5)](),_0x1a771b);},TIME);});}function defaultLicense(){const _0x539545=a1005_0x46259e,_0x28f43d=hardware[_0x539545(0x1d5)]();return _0x28f43d?db['License'][_0x539545(0x1b7)]({'where':{'id':0x1},'defaults':{'data1':_0x28f43d}})[_0x539545(0x1b9)](function([_0x20c886]){const _0x4fb18c=_0x539545;logger[_0x4fb18c(0x1be)](_0x4fb18c(0x1c6),_0x28f43d),manageLicense(_0x28f43d,_0x20c886);})[_0x539545(0x1d3)](function(_0xbb8a4f){const _0x2b8474=_0x539545;logger['error'](_0xbb8a4f[_0x2b8474(0x1c9)]);throw _0xbb8a4f;}):Promise[_0x539545(0x1d8)](new Error(_0x539545(0x1b4)));}exports[a1005_0x46259e(0x1c4)]=defaultLicense; \ No newline at end of file diff --git a/server/config/license/util.js b/server/config/license/util.js index 6763145..32c653b 100644 --- a/server/config/license/util.js +++ b/server/config/license/util.js @@ -1 +1 @@ -const a844_0x1c81=['License\x20limit\x20reached\x20for\x20telephones','License','sequelize','../../components/encryptor','machineUuid','COUNT','forEach','days','users','telephones','disabled','demo','./hardware','telephone','split','exports','License\x20key\x20value\x20not\x20found','count','message','../../mysqldb','uuid','moment','defaults','Breaking\x20license','add','isEmpty','2027-01-01T00:00:00.000Z','role','user','gray','parse','decryptString','format','admin','then','getUuid','findOne','%s:%s:%s','findAll','User','catch','grayReason','data2','data1','Demo\x20license','lodash'];(function(_0x40597c,_0x1c816c){const _0x41f66a=function(_0x1a6a88){while(--_0x1a6a88){_0x40597c['push'](_0x40597c['shift']());}};_0x41f66a(++_0x1c816c);}(a844_0x1c81,0xc3));const a844_0x41f6=function(_0x40597c,_0x1c816c){_0x40597c=_0x40597c-0x0;let _0x41f66a=a844_0x1c81[_0x40597c];return _0x41f66a;};const _0x185e29=a844_0x41f6;'use strict';const encryptor=require(_0x185e29('0x26')),util=require('util'),_=require(_0x185e29('0x22')),moment=require(_0x185e29('0xa')),hardware=require(_0x185e29('0x1')),db=require(_0x185e29('0x8'))['db'],{Op,fn,col}=require(_0x185e29('0x25')),demoLicense={'demo':!![],'agents':0x2,'telephones':0x0,'users':0x1,'expiration':_0x185e29('0xf'),'chat':![],'mail':![],'fax':![],'messaging':![],'whatsapp':![],'cm':![],'dialer':![],'jscripty':![],'openchannel':![],'callysquare':0x2,'webrtc':![],'jaws':![],'custom':![],'description':_0x185e29('0x21'),'machineUuid':hardware[_0x185e29('0x18')](),'virtual':0x0,'voice':!![],'screenrecording':![],'preferred':![],'ai':![]},breakingLicense={'breaking':!![],'demo':!![],'agents':0x2,'telephones':0x0,'users':0x1,'expiration':'2027-01-01T00:00:00.000Z','chat':![],'mail':![],'fax':![],'messaging':![],'whatsapp':![],'cm':![],'dialer':![],'jscripty':![],'openchannel':![],'callysquare':0x2,'webrtc':![],'jaws':![],'custom':![],'update':![],'description':_0x185e29('0xc'),'machineUuid':hardware[_0x185e29('0x18')](),'virtual':0x0,'voice':!![],'screenrecording':![],'preferred':![],'ai':![]};function getLicense(_0x1a6a88){return new Promise(function(_0x2ee18a,_0x4c77f8){const _0x30c47a=a844_0x41f6;return db[_0x30c47a('0x24')][_0x30c47a('0x19')](_[_0x30c47a('0xb')](_0x1a6a88,{'raw':!![],'where':{'id':0x1}}))[_0x30c47a('0x17')](function(_0x71f91b){return checkLicense(_0x71f91b,null);})[_0x30c47a('0x17')](function(_0x46b43b){_0x2ee18a(_0x46b43b);return;})[_0x30c47a('0x1d')](function(_0x106680){_0x4c77f8(_0x106680);});});}function checkLicense(_0x2ab351,_0xab9e22){const _0x51f029=_0x185e29;if(!_0x2ab351)return demoLicense[_0x51f029('0x9')]=_0x2ab351[_0x51f029('0x20')],demoLicense;try{const _0x3e98c8=_0xab9e22||_0x2ab351['license'];if(_[_0x51f029('0xe')](_0x3e98c8))throw new Error(_0x51f029('0x5'));const _0x2f27a7=_0x2ab351[_0x51f029('0x20')],_0x2c2304=_0x2ab351[_0x51f029('0x1f')],_0x15b46f=_0x2f27a7[_0x51f029('0x3')]('-')[0x4],_0x50ae4b=_0x2f27a7[_0x51f029('0x3')]('-')[0x0],_0x50dd01=encryptor[_0x51f029('0x14')](_0x3e98c8,util[_0x51f029('0x15')](_0x51f029('0x1a'),_0x15b46f,_0x2f27a7,_0x50ae4b)),_0x3621e8=JSON[_0x51f029('0x13')](_0x50dd01);_0x3621e8[_0x51f029('0x0')]=![],_0x3621e8[_0x51f029('0x9')]=_0x2f27a7,_0x3621e8[_0x51f029('0x27')]=hardware[_0x51f029('0x18')]();if(_0x2c2304){const _0x142573=encryptor['decryptString'](_0x2c2304);_0x3621e8[_0x51f029('0x12')]=_0x142573,_0x3621e8['deadline']=moment(_0x142573)[_0x51f029('0xd')](0x7,_0x51f029('0x2a'))['format'](),_0x3621e8[_0x51f029('0x1e')]=_0x3621e8[_0x51f029('0x9')]!=_0x3621e8[_0x51f029('0x27')]?'changed':_0x51f029('0x2d');}return _0x3621e8;}catch(_0x189ea2){return breakingLicense['uuid']=_0x2ab351[_0x51f029('0x20')],breakingLicense[_0x51f029('0x7')]=_0x189ea2['message'],breakingLicense;}}function getLimits(){return new Promise(function(_0x127ed3,_0x2139f4){const _0xc321da=a844_0x41f6;getLicense()[_0xc321da('0x17')](function(_0x1c24cc){const _0x347a17=_0xc321da;return db[_0x347a17('0x1c')][_0x347a17('0x1b')]({'attributes':[_0x347a17('0x10'),[fn(_0x347a17('0x28'),col(_0x347a17('0x10'))),_0x347a17('0x6')]],'group':_0x347a17('0x10'),'where':{'role':{[Op['or']]:[_0x347a17('0x16'),_0x347a17('0x11'),_0x347a17('0x2')]}},'raw':!![]})[_0x347a17('0x17')](function(_0x1e232a){const _0x363399=_0x347a17,_0x141e6c={'user':_0x1c24cc[_0x363399('0x2b')]||0x0,'telephone':_0x1c24cc[_0x363399('0x2c')]||0x0};_0x1e232a[_0x363399('0x29')](function(_0x595dad){const _0x2e977b=_0x363399,_0x413521=_0x595dad[_0x2e977b('0x10')]==='admin'?_0x2e977b('0x11'):_0x595dad[_0x2e977b('0x10')];_0x141e6c[_0x413521]-=_0x595dad[_0x2e977b('0x6')];if(_0x141e6c[_0x413521]<0x0)_0x141e6c[_0x413521]=0x0;}),_0x127ed3(_0x141e6c);return;});})[_0xc321da('0x1d')](function(_0x2acbe6){_0x2139f4(_0x2acbe6);});});}function checkUserLimits(_0x2b8ba3){return new Promise(function(_0x2f2efe,_0x3b003f){const _0x4cc723=a844_0x41f6;getLimits()[_0x4cc723('0x17')](function(_0x24d138){const _0x151f05=_0x4cc723,_0xe1f95=_['pick'](_['countBy'](_0x2b8ba3,_0x151f05('0x10')),[_0x151f05('0x16'),_0x151f05('0x11'),_0x151f05('0x2')]),_0x39272f=(_0xe1f95[_0x151f05('0x16')]||0x0)+(_0xe1f95[_0x151f05('0x11')]||0x0),_0x2f68e5=_0xe1f95[_0x151f05('0x2')]||0x0;if(_0x39272f>_0x24d138[_0x151f05('0x11')])return _0x3b003f('License\x20limit\x20reached\x20for\x20users');if(_0x2f68e5>_0x24d138['telephone'])return _0x3b003f(_0x151f05('0x23'));return _0x2f2efe();})['catch'](function(_0x45369e){_0x3b003f(_0x45369e);});});}module[_0x185e29('0x4')]={'checkLicense':checkLicense,'checkUserLimits':checkUserLimits,'getLicense':getLicense}; \ No newline at end of file +const a1006_0x578b=['COUNT','message','License\x20limit\x20reached\x20for\x20telephones','users','exports','days','split','telephone','sequelize','countBy','telephones','admin','data1','catch','moment','../../mysqldb','license','decryptString','demo','count','Breaking\x20license','pick','findOne','uuid','role','User','findAll','Demo\x20license','changed','../../components/encryptor','machineUuid','disabled','defaults','isEmpty','getUuid','user','lodash','grayReason','2027-01-01T00:00:00.000Z','then','format','getLicense'];(function(_0x947d88,_0x15cadd){const _0x578bdc=function(_0x3974b4){while(--_0x3974b4){_0x947d88['push'](_0x947d88['shift']());}};_0x578bdc(++_0x15cadd);}(a1006_0x578b,0x119));const a1006_0x3974=function(_0x947d88,_0x15cadd){_0x947d88=_0x947d88-0xf3;let _0x578bdc=a1006_0x578b[_0x947d88];return _0x578bdc;};const a1006_0x4835cd=a1006_0x3974;'use strict';const encryptor=require(a1006_0x4835cd(0xf3)),util=require('util'),_=require(a1006_0x4835cd(0xfa)),moment=require(a1006_0x4835cd(0x10e)),hardware=require('./hardware'),{db}=require(a1006_0x4835cd(0x10f)),{Op,fn,col}=require(a1006_0x4835cd(0x108)),demoLicense={'demo':!![],'agents':0x2,'telephones':0x0,'users':0x1,'expiration':a1006_0x4835cd(0xfc),'chat':![],'mail':![],'fax':![],'messaging':![],'whatsapp':![],'cm':![],'dialer':![],'jscripty':![],'openchannel':![],'callysquare':0x2,'webrtc':![],'jaws':![],'custom':![],'description':a1006_0x4835cd(0x11b),'machineUuid':hardware['getUuid'](),'virtual':0x0,'voice':!![],'screenrecording':![],'preferred':![],'ai':![]},breakingLicense={'breaking':!![],'demo':!![],'agents':0x2,'telephones':0x0,'users':0x1,'expiration':'2027-01-01T00:00:00.000Z','chat':![],'mail':![],'fax':![],'messaging':![],'whatsapp':![],'cm':![],'dialer':![],'jscripty':![],'openchannel':![],'callysquare':0x2,'webrtc':![],'jaws':![],'custom':![],'update':![],'description':a1006_0x4835cd(0x114),'machineUuid':hardware[a1006_0x4835cd(0xf8)](),'virtual':0x0,'voice':!![],'screenrecording':![],'preferred':![],'ai':![]};function getLicense(_0x4dc4ad){return new Promise(function(_0x22374c,_0x2ba441){const _0x554662=a1006_0x3974;return db['License'][_0x554662(0x116)](_[_0x554662(0xf6)](_0x4dc4ad,{'raw':!![],'where':{'id':0x1}}))[_0x554662(0xfd)](function(_0x29a203){return checkLicense(_0x29a203,null);})[_0x554662(0xfd)](function(_0x1eb88d){_0x22374c(_0x1eb88d);return;})['catch'](function(_0x1c39d4){_0x2ba441(_0x1c39d4);});});}function checkLicense(_0x5a2a97,_0x4b5751){const _0x2c800a=a1006_0x4835cd;if(!_0x5a2a97)return demoLicense['uuid']=_0x5a2a97[_0x2c800a(0x10c)],demoLicense;try{const _0x256df2=_0x4b5751||_0x5a2a97[_0x2c800a(0x110)];if(_[_0x2c800a(0xf7)](_0x256df2))throw new Error('License\x20key\x20value\x20not\x20found');const _0x55f511=_0x5a2a97[_0x2c800a(0x10c)],_0x44ea29=_0x5a2a97['data2'],_0x229c96=_0x55f511['split']('-')[0x4],_0x2810e9=_0x55f511[_0x2c800a(0x106)]('-')[0x0],_0x54c797=encryptor[_0x2c800a(0x111)](_0x256df2,util[_0x2c800a(0xfe)]('%s:%s:%s',_0x229c96,_0x55f511,_0x2810e9)),_0x1384e9=JSON['parse'](_0x54c797);_0x1384e9[_0x2c800a(0x112)]=![],_0x1384e9['uuid']=_0x55f511,_0x1384e9[_0x2c800a(0xf4)]=hardware['getUuid']();if(_0x44ea29){const _0x58f9fa=encryptor[_0x2c800a(0x111)](_0x44ea29);_0x1384e9['gray']=_0x58f9fa,_0x1384e9['deadline']=moment(_0x58f9fa)['add'](0x7,_0x2c800a(0x105))[_0x2c800a(0xfe)](),_0x1384e9[_0x2c800a(0xfb)]=_0x1384e9[_0x2c800a(0x117)]!=_0x1384e9[_0x2c800a(0xf4)]?_0x2c800a(0x11c):_0x2c800a(0xf5);}return _0x1384e9;}catch(_0x3db077){return breakingLicense[_0x2c800a(0x117)]=_0x5a2a97[_0x2c800a(0x10c)],breakingLicense[_0x2c800a(0x101)]=_0x3db077[_0x2c800a(0x101)],breakingLicense;}}function getLimits(){return new Promise(function(_0x9e4807,_0x3d39da){const _0x3a5fb7=a1006_0x3974;getLicense()[_0x3a5fb7(0xfd)](function(_0xb34ebb){const _0x1d6a53=_0x3a5fb7;return db[_0x1d6a53(0x119)][_0x1d6a53(0x11a)]({'attributes':['role',[fn(_0x1d6a53(0x100),col(_0x1d6a53(0x118))),_0x1d6a53(0x113)]],'group':_0x1d6a53(0x118),'where':{'role':{[Op['or']]:[_0x1d6a53(0x10b),_0x1d6a53(0xf9),'telephone']}},'raw':!![]})['then'](function(_0x165a36){const _0x1c062e=_0x1d6a53,_0x540666={'user':_0xb34ebb[_0x1c062e(0x103)]||0x0,'telephone':_0xb34ebb[_0x1c062e(0x10a)]||0x0};_0x165a36['forEach'](function(_0x17757c){const _0x360537=_0x1c062e,_0x54c2fd=_0x17757c[_0x360537(0x118)]===_0x360537(0x10b)?_0x360537(0xf9):_0x17757c[_0x360537(0x118)];_0x540666[_0x54c2fd]-=_0x17757c[_0x360537(0x113)];if(_0x540666[_0x54c2fd]<0x0)_0x540666[_0x54c2fd]=0x0;}),_0x9e4807(_0x540666);return;});})[_0x3a5fb7(0x10d)](function(_0x1f6390){_0x3d39da(_0x1f6390);});});}function checkUserLimits(_0x3ea18b){return new Promise(function(_0x5010a5,_0x4c1351){const _0x24f621=a1006_0x3974;getLimits()[_0x24f621(0xfd)](function(_0xd7a58){const _0x623a46=_0x24f621,_0x5609e8=_[_0x623a46(0x115)](_[_0x623a46(0x109)](_0x3ea18b,_0x623a46(0x118)),[_0x623a46(0x10b),'user','telephone']),_0x47f236=(_0x5609e8[_0x623a46(0x10b)]||0x0)+(_0x5609e8[_0x623a46(0xf9)]||0x0),_0x622f1=_0x5609e8[_0x623a46(0x107)]||0x0;if(_0x47f236>_0xd7a58[_0x623a46(0xf9)])return _0x4c1351('License\x20limit\x20reached\x20for\x20users');if(_0x622f1>_0xd7a58[_0x623a46(0x107)])return _0x4c1351(_0x623a46(0x102));return _0x5010a5();})[_0x24f621(0x10d)](function(_0x3baef7){_0x4c1351(_0x3baef7);});});}module[a1006_0x4835cd(0x104)]['checkLicense']=checkLicense,module[a1006_0x4835cd(0x104)]['checkUserLimits']=checkUserLimits,module['exports'][a1006_0x4835cd(0xff)]=getLicense; \ No newline at end of file diff --git a/server/config/local.env.js b/server/config/local.env.js index d2241ea..0589a61 100644 --- a/server/config/local.env.js +++ b/server/config/local.env.js @@ -1 +1 @@ -var a845_0x257b=['http://localhost:9000','app-id','secret'];(function(_0xa2b1bd,_0x257ba3){var _0x33abc3=function(_0x4c7281){while(--_0x4c7281){_0xa2b1bd['push'](_0xa2b1bd['shift']());}};_0x33abc3(++_0x257ba3);}(a845_0x257b,0x163));var a845_0x33ab=function(_0xa2b1bd,_0x257ba3){_0xa2b1bd=_0xa2b1bd-0x0;var _0x33abc3=a845_0x257b[_0xa2b1bd];return _0x33abc3;};var _0x48df25=a845_0x33ab;'use strict';module['exports']={'DOMAIN':_0x48df25('0x2'),'SESSION_SECRET':'myappanuglar-secret','GOOGLE_ID':_0x48df25('0x0'),'GOOGLE_SECRET':_0x48df25('0x1'),'DEBUG':''}; \ No newline at end of file +var a1007_0x5ad5=['myappanuglar-secret','http://localhost:9000'];(function(_0x406641,_0x5f0ebf){var _0x5ad5af=function(_0x195bc8){while(--_0x195bc8){_0x406641['push'](_0x406641['shift']());}};_0x5ad5af(++_0x5f0ebf);}(a1007_0x5ad5,0xdf));var a1007_0x195b=function(_0x406641,_0x5f0ebf){_0x406641=_0x406641-0x182;var _0x5ad5af=a1007_0x5ad5[_0x406641];return _0x5ad5af;};var a1007_0x58382b=a1007_0x195b;'use strict';module['exports']={'DOMAIN':a1007_0x58382b(0x182),'SESSION_SECRET':a1007_0x58382b(0x183),'GOOGLE_ID':'app-id','GOOGLE_SECRET':'secret','DEBUG':''}; \ No newline at end of file diff --git a/server/config/logger.js b/server/config/logger.js index 6603886..ec2eba2 100644 --- a/server/config/logger.js +++ b/server/config/logger.js @@ -1 +1 @@ -const a846_0x5a0f=['logPath','./config.service','Console',']\x20[','}}}','path','assign','util','error','{{{','YYYY-MM-DD\x20HH:mm:ss','triple-beam','\x20-\x20','format','transports','replace','safe-stable-stringify','createLogger','%s-%s.log','exports','%s-%s','debugLevel'];(function(_0x430a3a,_0x5a0fc9){const _0x3e7e81=function(_0x360a84){while(--_0x360a84){_0x430a3a['push'](_0x430a3a['shift']());}};_0x3e7e81(++_0x5a0fc9);}(a846_0x5a0f,0x166));const a846_0x3e7e=function(_0x430a3a,_0x5a0fc9){_0x430a3a=_0x430a3a-0x0;let _0x3e7e81=a846_0x5a0f[_0x430a3a];return _0x3e7e81;};const _0x2008f9=a846_0x3e7e;'use strict';const moment=require('moment'),winston=require('winston'),util=require(_0x2008f9('0x1')),path=require(_0x2008f9('0x15')),{MESSAGE}=require(_0x2008f9('0x5')),jsonStringify=require(_0x2008f9('0xa')),cs=require(_0x2008f9('0x11'))['getConfigService'](),logPath=cs[_0x2008f9('0x10')];function filename(_0x360a84,_0x3f551c){const _0x1f6171=_0x2008f9;return path['join'](logPath,util[_0x1f6171('0x7')](_0x1f6171('0xc'),_0x360a84,_0x3f551c));}const MotionFormatter=_0x17d36d=>winston[_0x2008f9('0x7')](_0x22bb59=>{const _0x1acab1=_0x2008f9,_0x26ae00=moment()[_0x1acab1('0x7')](_0x1acab1('0x4')),{level:_0x5dd33e,message:_0x4d692d}=_0x22bb59,_0x25a70a=jsonStringify(Object[_0x1acab1('0x0')]({},_0x22bb59,{'level':undefined,'message':undefined,'splat':undefined})),_0x4c0a76=typeof _0x4d692d==='string'?_0x4d692d['replace'](/@@{/g,_0x1acab1('0x3'))['replace'](/}@@/g,_0x1acab1('0x14'))[_0x1acab1('0x9')](/@{/g,'{{')['replace'](/}@/g,'}}'):'';return _0x22bb59[MESSAGE]='['+_0x26ae00+_0x1acab1('0x13')+_0x5dd33e['toUpperCase']()+']\x20'+_0x17d36d+_0x1acab1('0x6')+_0x4c0a76+'\x20'+(_0x25a70a==='{}'?'':_0x25a70a),_0x22bb59;})();module[_0x2008f9('0xd')]=function(_0x238694){const _0x454556=_0x2008f9;return winston[_0x454556('0xb')]({'transports':[new winston[(_0x454556('0x8'))]['File']({'name':util[_0x454556('0x7')]('%s-%s',_0x238694,_0x454556('0x2')),'filename':filename(_0x238694,_0x454556('0x2')),'level':_0x454556('0x2'),'maxsize':0xa00000,'maxFiles':0xa,'tailable':!![],'format':MotionFormatter(_0x238694)}),new winston[(_0x454556('0x8'))]['File']({'name':util[_0x454556('0x7')](_0x454556('0xe'),_0x238694,'info'),'filename':filename(_0x238694,'info'),'level':'info','maxsize':0xa00000,'maxFiles':0xa,'tailable':!![],'format':MotionFormatter(_0x238694)}),new winston[(_0x454556('0x8'))][(_0x454556('0x12'))]({'level':cs[_0x454556('0xf')],'format':MotionFormatter(_0x238694)})]});}; \ No newline at end of file +const a1008_0x3380=['}}}','File',']\x20[','safe-stable-stringify','triple-beam','getConfigService','string','toUpperCase','debugLevel','util','winston','./config.service','replace','transports','info','{{{','error','Console','format','%s-%s','%s-%s.log','createLogger','join'];(function(_0x320f34,_0x2c5698){const _0x3380db=function(_0x362dda){while(--_0x362dda){_0x320f34['push'](_0x320f34['shift']());}};_0x3380db(++_0x2c5698);}(a1008_0x3380,0x1d9));const a1008_0x362d=function(_0x320f34,_0x2c5698){_0x320f34=_0x320f34-0x106;let _0x3380db=a1008_0x3380[_0x320f34];return _0x3380db;};const a1008_0x5b4638=a1008_0x362d;'use strict';const moment=require('moment'),winston=require(a1008_0x5b4638(0x11a)),util=require(a1008_0x5b4638(0x119)),path=require('path'),{MESSAGE}=require(a1008_0x5b4638(0x114)),jsonStringify=require(a1008_0x5b4638(0x113)),cs=require(a1008_0x5b4638(0x11b))[a1008_0x5b4638(0x115)](),logPath=cs['logPath'];function filename(_0x55108a,_0x378966){const _0x1974b0=a1008_0x5b4638;return path[_0x1974b0(0x10f)](logPath,util['format'](_0x1974b0(0x10d),_0x55108a,_0x378966));}const MotionFormatter=_0x2d4a87=>winston[a1008_0x5b4638(0x10b)](_0x3bf18c=>{const _0x18d00a=a1008_0x5b4638,_0x259c2a=moment()['format']('YYYY-MM-DD\x20HH:mm:ss'),{level:_0x58edd4,message:_0x3857ff}=_0x3bf18c,_0x8db279=jsonStringify(Object['assign']({},_0x3bf18c,{'level':undefined,'message':undefined,'splat':undefined})),_0x4fffcd=typeof _0x3857ff===_0x18d00a(0x116)?_0x3857ff[_0x18d00a(0x11c)](/@@{/g,_0x18d00a(0x108))['replace'](/}@@/g,_0x18d00a(0x110))[_0x18d00a(0x11c)](/@{/g,'{{')[_0x18d00a(0x11c)](/}@/g,'}}'):'';return _0x3bf18c[MESSAGE]='['+_0x259c2a+_0x18d00a(0x112)+_0x58edd4[_0x18d00a(0x117)]()+']\x20'+_0x2d4a87+'\x20-\x20'+_0x4fffcd+'\x20'+(_0x8db279==='{}'?'':_0x8db279),_0x3bf18c;})();module['exports']=function(_0x2f19df){const _0xfe509a=a1008_0x5b4638;return winston[_0xfe509a(0x10e)]({'transports':[new winston[(_0xfe509a(0x106))][(_0xfe509a(0x111))]({'name':util[_0xfe509a(0x10b)]('%s-%s',_0x2f19df,'error'),'filename':filename(_0x2f19df,'error'),'level':_0xfe509a(0x109),'maxsize':0xa00000,'maxFiles':0xa,'tailable':!![],'format':MotionFormatter(_0x2f19df)}),new winston[(_0xfe509a(0x106))][(_0xfe509a(0x111))]({'name':util[_0xfe509a(0x10b)](_0xfe509a(0x10c),_0x2f19df,_0xfe509a(0x107)),'filename':filename(_0x2f19df,'info'),'level':_0xfe509a(0x107),'maxsize':0xa00000,'maxFiles':0xa,'tailable':!![],'format':MotionFormatter(_0x2f19df)}),new winston[(_0xfe509a(0x106))][(_0xfe509a(0x10a))]({'level':cs[_0xfe509a(0x118)],'format':MotionFormatter(_0x2f19df)})]});}; \ No newline at end of file diff --git a/server/config/pm2/config.js b/server/config/pm2/config.js index 3bff648..5dee15c 100644 --- a/server/config/pm2/config.js +++ b/server/config/pm2/config.js @@ -1 +1 @@ -const a847_0x3fb0=['routing','services/agi/index.js','express','email','ami','services/express/index.js','join','services/routing/index.js','path','agi','exports','xdr','appRoot'];(function(_0x21e2d2,_0x3fb0e5){const _0x4e26bb=function(_0xf1328d){while(--_0xf1328d){_0x21e2d2['push'](_0x21e2d2['shift']());}};_0x4e26bb(++_0x3fb0e5);}(a847_0x3fb0,0x71));const a847_0x4e26=function(_0x21e2d2,_0x3fb0e5){_0x21e2d2=_0x21e2d2-0x0;let _0x4e26bb=a847_0x3fb0[_0x21e2d2];return _0x4e26bb;};const _0x430da8=a847_0x4e26;'use strict';const path=require(_0x430da8('0xc')),config={'apps':[{'wait_ready':!![],'name':_0x430da8('0x6'),'script':path['join'](global[_0x430da8('0x3')],_0x430da8('0x9'))},{'name':_0x430da8('0x8'),'script':path[_0x430da8('0xa')](global['appRoot'],'services/ami/index.js')},{'name':_0x430da8('0x0'),'script':path[_0x430da8('0xa')](global[_0x430da8('0x3')],_0x430da8('0x5'))},{'name':_0x430da8('0x7'),'script':path['join'](global[_0x430da8('0x3')],'services/email/index.js')},{'name':_0x430da8('0x4'),'script':path[_0x430da8('0xa')](global[_0x430da8('0x3')],_0x430da8('0xb'))},{'name':_0x430da8('0x2'),'script':path[_0x430da8('0xa')](global['appRoot'],'services/xdr/index.js')}]};module[_0x430da8('0x1')]=config; \ No newline at end of file +const a1009_0x6d9e=['express','services/xdr/index.js','routing','appRoot','path','xdr','ami','agi','services/agi/index.js','join','email','services/email/index.js','services/express/index.js'];(function(_0x1c630d,_0x2a6f1b){const _0x6d9e6=function(_0x2e118d){while(--_0x2e118d){_0x1c630d['push'](_0x1c630d['shift']());}};_0x6d9e6(++_0x2a6f1b);}(a1009_0x6d9e,0x8a));const a1009_0x2e11=function(_0x1c630d,_0x2a6f1b){_0x1c630d=_0x1c630d-0x80;let _0x6d9e6=a1009_0x6d9e[_0x1c630d];return _0x6d9e6;};const a1009_0x222a3e=a1009_0x2e11;'use strict';const path=require(a1009_0x222a3e(0x89)),config={'apps':[{'wait_ready':!![],'name':a1009_0x222a3e(0x85),'script':path[a1009_0x222a3e(0x81)](global[a1009_0x222a3e(0x88)],a1009_0x222a3e(0x84))},{'name':a1009_0x222a3e(0x8b),'script':path[a1009_0x222a3e(0x81)](global[a1009_0x222a3e(0x88)],'services/ami/index.js')},{'name':a1009_0x222a3e(0x8c),'script':path[a1009_0x222a3e(0x81)](global[a1009_0x222a3e(0x88)],a1009_0x222a3e(0x80))},{'name':a1009_0x222a3e(0x82),'script':path[a1009_0x222a3e(0x81)](global[a1009_0x222a3e(0x88)],a1009_0x222a3e(0x83))},{'name':a1009_0x222a3e(0x87),'script':path[a1009_0x222a3e(0x81)](global[a1009_0x222a3e(0x88)],'services/routing/index.js')},{'name':a1009_0x222a3e(0x8a),'script':path['join'](global[a1009_0x222a3e(0x88)],a1009_0x222a3e(0x86))}]};module['exports']=config; \ No newline at end of file diff --git a/server/config/pm2/index.js b/server/config/pm2/index.js index 1c955bd..810fa51 100644 --- a/server/config/pm2/index.js +++ b/server/config/pm2/index.js @@ -1 +1 @@ -const a848_0x15a6=['../config.service','interpreter_args','dump','describe','list','getConfigService','connect','disconnect','saved','start','Restarted','vscode_debugger','then','Stopped','connected','debug','environment','pm2','interpreter','nodeArgs','interpreterArgs','isProduction','restart','--inspect','stop','Stopped\x20and\x20Deleted','delete','node_args'];(function(_0x292abf,_0x15a6fb){const _0x12135d=function(_0xbf4f01){while(--_0xbf4f01){_0x292abf['push'](_0x292abf['shift']());}};_0x12135d(++_0x15a6fb);}(a848_0x15a6,0x9d));const a848_0x1213=function(_0x292abf,_0x15a6fb){_0x292abf=_0x292abf-0x0;let _0x12135d=a848_0x15a6[_0x292abf];return _0x12135d;};const _0x15a7f5=a848_0x1213;'use strict';const pm2=require(_0x15a7f5('0x0')),cs=require(_0x15a7f5('0xb'))[_0x15a7f5('0x10')]();function connect(){return new Promise(function(_0xbf4f01,_0x47b573){const _0x54e6b8=a848_0x1213;return pm2[_0x54e6b8('0x11')](function(_0x4b534d){const _0x16844a=_0x54e6b8;_0x4b534d?_0x47b573(_0x4b534d):_0xbf4f01(_0x16844a('0x19'));});});}exports[_0x15a7f5('0x14')]=function(_0x3284c4){const _0x519e26=_0x15a7f5;return!(cs[_0x519e26('0x4')]||cs['isTest']||cs[_0x519e26('0x1b')]===_0x519e26('0x16'))&&(_0x3284c4[_0x519e26('0x1')]='node',_0x3284c4[_0x519e26('0xc')]=[_0x519e26('0x6')],_0x3284c4[_0x519e26('0xa')]=[_0x519e26('0x6')],_0x3284c4[_0x519e26('0x3')]=[_0x519e26('0x6')],_0x3284c4[_0x519e26('0x2')]=[_0x519e26('0x6')]),connect()['then'](function(){return new Promise(function(_0x4efe5b,_0x8fa976){return pm2['start'](_0x3284c4,function(_0xbf0049,_0x3b6062){const _0xc517bc=a848_0x1213;_0xbf0049?_0x8fa976(_0xbf0049):(pm2[_0xc517bc('0x12')](),_0x4efe5b(_0x3b6062));});});});},exports[_0x15a7f5('0x7')]=function(_0x17901a){const _0x30f948=_0x15a7f5;return connect()[_0x30f948('0x17')](function(){return new Promise(function(_0x3de483,_0x25c877){return pm2['stop'](_0x17901a,function(_0x53764e,_0x10ad3b){const _0xb24f87=a848_0x1213;_0x53764e?_0x25c877(_0x53764e):(console[_0xb24f87('0x1a')](_0xb24f87('0x18'),_0x17901a),_0x3de483(_0x10ad3b));});});});},exports[_0x15a7f5('0x5')]=function(_0x31572a){const _0x52d11d=_0x15a7f5;return connect()[_0x52d11d('0x17')](function(){return new Promise(function(_0x448551,_0x24195c){const _0x14ca66=a848_0x1213;return pm2[_0x14ca66('0x5')](_0x31572a,function(_0x461415,_0x2e43d3){const _0x11e70a=_0x14ca66;_0x461415?_0x24195c(_0x461415):(console[_0x11e70a('0x1a')](_0x11e70a('0x15'),_0x31572a),_0x448551(_0x2e43d3));});});});},exports[_0x15a7f5('0xf')]=function(){return connect()['then'](function(){return new Promise(function(_0x2327e7,_0x2d3b5b){return pm2['list'](function(_0xff803c,_0xc7a538){_0xff803c?_0x2d3b5b(_0xff803c):_0x2327e7(_0xc7a538);});});});},exports['describe']=function(_0x4fd45c){const _0x3ef7f4=_0x15a7f5;return connect()[_0x3ef7f4('0x17')](function(){return new Promise(function(_0x7972c2,_0x36ccc9){const _0x3f0823=a848_0x1213;return pm2[_0x3f0823('0xe')](_0x4fd45c,function(_0x4dbc54,_0x1d174d){_0x4dbc54?_0x36ccc9(_0x4dbc54):_0x7972c2(_0x1d174d);});});});},exports[_0x15a7f5('0x9')]=function(_0x37e099){const _0x361e9c=_0x15a7f5;return connect()[_0x361e9c('0x17')](function(){return new Promise(function(_0x308196,_0x3130d5){return pm2['delete'](_0x37e099,function(_0x34bf2d,_0x4141d0){const _0x59f582=a848_0x1213;_0x34bf2d?_0x3130d5(_0x34bf2d):(console[_0x59f582('0x1a')](_0x59f582('0x8'),_0x37e099),_0x308196(_0x4141d0));});});});},exports[_0x15a7f5('0xd')]=function(){const _0x15308b=_0x15a7f5;return connect()[_0x15308b('0x17')](function(){return new Promise(function(_0x13a8f6,_0x5613dd){const _0x36176d=a848_0x1213;return pm2[_0x36176d('0xd')](function(_0x10d025){const _0x551a66=_0x36176d;_0x10d025?_0x5613dd(_0x10d025):_0x13a8f6(_0x551a66('0x13'));});});});}; \ No newline at end of file +const a1010_0x4d96=['node','describe','pm2','vscode_debugger','interpreterArgs','Stopped','then','start','isTest','list','debug','delete','nodeArgs','stop','restart','environment','connected','saved','Stopped\x20and\x20Deleted','../config.service','interpreter_args','Restarted','node_args','getConfigService','connect','--inspect','disconnect','interpreter'];(function(_0x668914,_0x2226d3){const _0x4d9674=function(_0x56c1dd){while(--_0x56c1dd){_0x668914['push'](_0x668914['shift']());}};_0x4d9674(++_0x2226d3);}(a1010_0x4d96,0x121));const a1010_0x56c1=function(_0x668914,_0x2226d3){_0x668914=_0x668914-0x6f;let _0x4d9674=a1010_0x4d96[_0x668914];return _0x4d9674;};const a1010_0x1fa3dd=a1010_0x56c1;'use strict';const pm2=require(a1010_0x1fa3dd(0x84)),cs=require(a1010_0x1fa3dd(0x79))[a1010_0x1fa3dd(0x7d)]();function connect(){return new Promise(function(_0x519ce7,_0x1f9416){const _0x109b55=a1010_0x56c1;return pm2[_0x109b55(0x7e)](function(_0x582098){const _0x4bdc33=_0x109b55;_0x582098?_0x1f9416(_0x582098):_0x519ce7(_0x4bdc33(0x76));});});}exports[a1010_0x1fa3dd(0x89)]=function(_0x16b885){const _0x4d7d35=a1010_0x1fa3dd;return!(cs['isProduction']||cs[_0x4d7d35(0x8a)]||cs[_0x4d7d35(0x75)]===_0x4d7d35(0x85))&&(_0x16b885[_0x4d7d35(0x81)]=_0x4d7d35(0x82),_0x16b885[_0x4d7d35(0x7a)]=[_0x4d7d35(0x7f)],_0x16b885[_0x4d7d35(0x7c)]=[_0x4d7d35(0x7f)],_0x16b885[_0x4d7d35(0x86)]=[_0x4d7d35(0x7f)],_0x16b885[_0x4d7d35(0x72)]=[_0x4d7d35(0x7f)]),connect()[_0x4d7d35(0x88)](function(){return new Promise(function(_0x1db1ba,_0x3a9404){return pm2['start'](_0x16b885,function(_0x23e472,_0xfebde4){const _0x11109c=a1010_0x56c1;_0x23e472?_0x3a9404(_0x23e472):(pm2[_0x11109c(0x80)](),_0x1db1ba(_0xfebde4));});});});},exports[a1010_0x1fa3dd(0x73)]=function(_0x763306){const _0xbba5a8=a1010_0x1fa3dd;return connect()[_0xbba5a8(0x88)](function(){return new Promise(function(_0x51a886,_0x5d3381){return pm2['stop'](_0x763306,function(_0x34e5c7,_0xd028de){const _0x836cbc=a1010_0x56c1;_0x34e5c7?_0x5d3381(_0x34e5c7):(console['debug'](_0x836cbc(0x87),_0x763306),_0x51a886(_0xd028de));});});});},exports[a1010_0x1fa3dd(0x74)]=function(_0x5031a8){const _0x32ff58=a1010_0x1fa3dd;return connect()[_0x32ff58(0x88)](function(){return new Promise(function(_0x313c63,_0x35083b){return pm2['restart'](_0x5031a8,function(_0x6eaa50,_0x29a913){const _0x191d55=a1010_0x56c1;_0x6eaa50?_0x35083b(_0x6eaa50):(console[_0x191d55(0x70)](_0x191d55(0x7b),_0x5031a8),_0x313c63(_0x29a913));});});});},exports['list']=function(){const _0x5a3e79=a1010_0x1fa3dd;return connect()[_0x5a3e79(0x88)](function(){return new Promise(function(_0x5c3fe6,_0xabdeca){const _0x48d136=a1010_0x56c1;return pm2[_0x48d136(0x6f)](function(_0xa1cfac,_0x5a2099){_0xa1cfac?_0xabdeca(_0xa1cfac):_0x5c3fe6(_0x5a2099);});});});},exports[a1010_0x1fa3dd(0x83)]=function(_0x2aaa05){const _0x4390a9=a1010_0x1fa3dd;return connect()[_0x4390a9(0x88)](function(){return new Promise(function(_0x2c1080,_0x3ad5ce){const _0x12a99f=a1010_0x56c1;return pm2[_0x12a99f(0x83)](_0x2aaa05,function(_0x3e4f94,_0x31431c){_0x3e4f94?_0x3ad5ce(_0x3e4f94):_0x2c1080(_0x31431c);});});});},exports[a1010_0x1fa3dd(0x71)]=function(_0x3732f3){const _0x45c865=a1010_0x1fa3dd;return connect()[_0x45c865(0x88)](function(){return new Promise(function(_0x1eb367,_0x337eeb){const _0x447a88=a1010_0x56c1;return pm2[_0x447a88(0x71)](_0x3732f3,function(_0x525625,_0x4fd344){const _0xe2a20b=_0x447a88;_0x525625?_0x337eeb(_0x525625):(console[_0xe2a20b(0x70)](_0xe2a20b(0x78),_0x3732f3),_0x1eb367(_0x4fd344));});});});},exports['dump']=function(){const _0x41dfd8=a1010_0x1fa3dd;return connect()[_0x41dfd8(0x88)](function(){return new Promise(function(_0x2590ea,_0x19a91f){return pm2['dump'](function(_0x8cbf5e){const _0x165b7e=a1010_0x56c1;_0x8cbf5e?_0x19a91f(_0x8cbf5e):_0x2590ea(_0x165b7e(0x77));});});});}; \ No newline at end of file diff --git a/server/config/schedule/chat.js b/server/config/schedule/chat.js index 67938ce..324aa68 100644 --- a/server/config/schedule/chat.js +++ b/server/config/schedule/chat.js @@ -1 +1 @@ -const a849_0x26f4=['subtract','update','findAll','ChatInteraction','error','moment','../../rediscache','length','Setting','timeout','chatTimeout','lodash','map','then','findOne','format','../../mysqldb','catch','chatInteraction:update','lastMsgAt'];(function(_0x4e3909,_0x26f4a3){const _0x205ccd=function(_0x35e7a2){while(--_0x35e7a2){_0x4e3909['push'](_0x4e3909['shift']());}};_0x205ccd(++_0x26f4a3);}(a849_0x26f4,0x82));const a849_0x205c=function(_0x4e3909,_0x26f4a3){_0x4e3909=_0x4e3909-0x0;let _0x205ccd=a849_0x26f4[_0x4e3909];return _0x205ccd;};const _0x1d7bd3=a849_0x205c;'use strict';const _=require(_0x1d7bd3('0x1')),moment=require(_0x1d7bd3('0xf')),db=require(_0x1d7bd3('0x6'))['db'],{getSocket}=require(_0x1d7bd3('0x10')),io=getSocket();function closeInteractions(){const _0x43022b=_0x1d7bd3;let _0x35e7a2=0x0,_0x578519=[];return db[_0x43022b('0x12')][_0x43022b('0x4')]({'raw':!![],'attributes':['id','chatTimeout'],'where':{'id':0x1}})[_0x43022b('0x3')](function(_0xe03183){const _0x11355f=_0x43022b;return _0x35e7a2=_0xe03183[_0x11355f('0x0')],_0x35e7a2?db['ChatInteraction'][_0x11355f('0xc')]({'raw':!![],'attributes':['id',_0x11355f('0x9')],'where':{'closed':![],'lastMsgAt':{'$lt':moment()[_0x11355f('0xa')](_0xe03183[_0x11355f('0x0')],'minutes')}}}):[];})[_0x43022b('0x3')](function(_0x1febf6){const _0x7f15e8=_0x43022b;_0x578519=_0x1febf6;if(_0x35e7a2)return db[_0x7f15e8('0xd')][_0x7f15e8('0xb')]({'closeReason':'system','disposition':_0x7f15e8('0x13'),'closed':!![],'closedAt':moment()[_0x7f15e8('0x5')]('YYYY-MM-DD\x20HH:mm:ss')},{'where':{'id':_[_0x7f15e8('0x2')](_0x578519||[],'id')}});})[_0x43022b('0x3')](function(){const _0x423e95=_0x43022b;for(let _0x3caf07=0x0;_0x3caf07<_0x578519[_0x423e95('0x11')];_0x3caf07++){io['emit'](_0x423e95('0x8'),{'id':_0x578519[_0x3caf07]['id'],'closed':!![]});}})[_0x43022b('0x7')](function(_0xf78363){const _0x1db038=_0x43022b;console[_0x1db038('0xe')](_0xf78363);});}exports['start']=function(){return setInterval(function(){return closeInteractions();},0x3c*0x3e8),closeInteractions();}; \ No newline at end of file +const a1011_0x1978=['findAll','subtract','ChatInteraction','lodash','chatTimeout','chatInteraction:update','moment','length','findOne','timeout','then','../../mysqldb','format','error','system','../../rediscache','lastMsgAt','map','emit','YYYY-MM-DD\x20HH:mm:ss','catch','update','minutes'];(function(_0x2f9143,_0x2f3c30){const _0x1978c5=function(_0x493f90){while(--_0x493f90){_0x2f9143['push'](_0x2f9143['shift']());}};_0x1978c5(++_0x2f3c30);}(a1011_0x1978,0x1c4));const a1011_0x493f=function(_0x2f9143,_0x2f3c30){_0x2f9143=_0x2f9143-0xb0;let _0x1978c5=a1011_0x1978[_0x2f9143];return _0x1978c5;};const a1011_0x2aa9d9=a1011_0x493f;'use strict';const _=require(a1011_0x2aa9d9(0xbb)),moment=require(a1011_0x2aa9d9(0xbe)),{db}=require(a1011_0x2aa9d9(0xc3)),{getSocket}=require(a1011_0x2aa9d9(0xb0)),io=getSocket();function closeInteractions(){const _0x172523=a1011_0x2aa9d9;let _0x3e9249=0x0,_0xde57c=[];return db['Setting'][_0x172523(0xc0)]({'raw':!![],'attributes':['id',_0x172523(0xbc)],'where':{'id':0x1}})[_0x172523(0xc2)](function(_0x4883f0){const _0xcdc9b4=_0x172523;return _0x3e9249=_0x4883f0[_0xcdc9b4(0xbc)],_0x3e9249?db[_0xcdc9b4(0xba)][_0xcdc9b4(0xb8)]({'raw':!![],'attributes':['id',_0xcdc9b4(0xb1)],'where':{'closed':![],'lastMsgAt':{'$lt':moment()[_0xcdc9b4(0xb9)](_0x4883f0[_0xcdc9b4(0xbc)],_0xcdc9b4(0xb7))}}}):[];})['then'](function(_0x22dd70){const _0x4ded03=_0x172523;_0xde57c=_0x22dd70;if(_0x3e9249)return db[_0x4ded03(0xba)][_0x4ded03(0xb6)]({'closeReason':_0x4ded03(0xc6),'disposition':_0x4ded03(0xc1),'closed':!![],'closedAt':moment()[_0x4ded03(0xc4)](_0x4ded03(0xb4))},{'where':{'id':_[_0x4ded03(0xb2)](_0xde57c||[],'id')}});})['then'](function(){const _0x434994=_0x172523;for(let _0x55dd1e=0x0;_0x55dd1e<_0xde57c[_0x434994(0xbf)];_0x55dd1e++){io[_0x434994(0xb3)](_0x434994(0xbd),{'id':_0xde57c[_0x55dd1e]['id'],'closed':!![]});}})[_0x172523(0xb5)](function(_0x4ec04b){const _0x4b66f8=_0x172523;console[_0x4b66f8(0xc5)](_0x4ec04b);});}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 e86fabe..d72c7b3 100644 --- a/server/config/schedule/index.js +++ b/server/config/schedule/index.js @@ -1 +1 @@ -const a850_0x5659=['existsSync','name','../../api/analyticCustomReport/analyticCustomReport.controller','exec\x20defaul\x20report\x20id:%s','start','scheduled','Try\x20to\x20send\x20a\x20mail\x20to','schedule','stop\x20cron','subtractUnit','map','active','cron-job-manager','subtractNumber','join','http','length','empty\x20file,\x20email\x20not\x20sent','message','update','catch','startAt','Info\x20report:\x0a%s\x0aPlease\x20see\x20the\x20attachments\x0aThis\x20is\x20an\x20automatically\x20generated\x20email\x20–\x20please\x20do\x20not\x20reply\x20to\x20it.\x0a\x0a','user','isBetween','status','cron','delete\x20cron','../../api/analyticDefaultReport/analyticDefaultReport.controller','output','isNil','savename','DefaultReportId','secure','YYYY-MM-DD\x20HH:mm:ss','my\x20id','SendMail','zip','Smtp','toString','path','jayson/promise','subtractUnit\x20null\x20or\x20undefined','email','findAll','Report\x20empty\x0aThis\x20is\x20an\x20automatically\x20generated\x20email\x20–\x20please\x20do\x20not\x20reply\x20to\x20this\x20email.\x0a\x0a','error\x20mail','MailServerOut','moment','runReport','run','stringify','jobs','exists','keys','client','email\x20sent','index','host','intersection','then','../../mysqldb','endAt','toRun','%s.%s','add\x20cron','data','stop','auth','lodash','difference','port','Schedule','keyBy','text','error','MailAccount','Report\x20%s\x20last\x20%s\x20%s','attachments','CustomReportId','info','Sent','../../files/reports','format','service'];(function(_0x25c7dd,_0x5659ab){const _0x62b57a=function(_0x9763ee){while(--_0x9763ee){_0x25c7dd['push'](_0x25c7dd['shift']());}};_0x62b57a(++_0x5659ab);}(a850_0x5659,0x151));const a850_0x62b5=function(_0x25c7dd,_0x5659ab){_0x25c7dd=_0x25c7dd-0x0;let _0x62b57a=a850_0x5659[_0x25c7dd];return _0x62b57a;};const _0x53669f=a850_0x62b5;'use strict';const fs=require('fs'),util=require('util'),path=require(_0x53669f('0x2b')),_=require(_0x53669f('0x48')),moment=require(_0x53669f('0x33')),CronJobManager=require(_0x53669f('0xf')),jayson=require(_0x53669f('0x2c')),logger=require('../logger')(_0x53669f('0xa')),db=require(_0x53669f('0x40'))['db'],analyticCustomReportController=require(_0x53669f('0x5')),analyticDefaultReportController=require(_0x53669f('0x1f')),client=jayson[_0x53669f('0x3a')][_0x53669f('0x12')]({'port':0x232b}),manager=new CronJobManager();function handleSendEmail(_0x9763ee,_0x5688af){return function(){const _0x3c63aa=a850_0x62b5;logger['info'](_0x3c63aa('0x9'),_0x9763ee[_0x3c63aa('0x2e')]);let _0xa82348=!![];const _0x45bede={'tls':{'rejectUnauthorized':![]}};_0x9763ee[_0x3c63aa('0x4f')][_0x3c63aa('0x29')]['service']?_0x45bede[_0x3c63aa('0x2')]=_0x9763ee[_0x3c63aa('0x4f')][_0x3c63aa('0x29')][_0x3c63aa('0x2')]:(_0x45bede[_0x3c63aa('0x3d')]=_0x9763ee[_0x3c63aa('0x4f')][_0x3c63aa('0x29')][_0x3c63aa('0x3d')],_0x45bede[_0x3c63aa('0x4a')]=_0x9763ee[_0x3c63aa('0x4f')]['Smtp'][_0x3c63aa('0x4a')],_0x45bede['secure']=_0x9763ee[_0x3c63aa('0x4f')][_0x3c63aa('0x29')][_0x3c63aa('0x24')]);_0x9763ee[_0x3c63aa('0x4f')][_0x3c63aa('0x29')]['authentication']&&(_0x45bede[_0x3c63aa('0x47')]={'user':_0x9763ee[_0x3c63aa('0x4f')][_0x3c63aa('0x29')][_0x3c63aa('0x1a')],'pass':_0x9763ee['MailAccount'][_0x3c63aa('0x29')]['pass']});const _0x50d4e5={'account':_0x45bede,'message':{'from':util['format']('\x22%s\x22\x20<%s>',_0x9763ee[_0x3c63aa('0x4f')][_0x3c63aa('0x4')],_0x9763ee['MailAccount']['email']||_0x9763ee['MailAccount'][_0x3c63aa('0x29')][_0x3c63aa('0x1a')]),'to':_0x9763ee['email'],'cc':_0x9763ee['cc'],'bcc':_0x9763ee['bcc'],'subject':util[_0x3c63aa('0x1')](_0x3c63aa('0x50'),_0x5688af['name'],_0x9763ee[_0x3c63aa('0x10')],_0x9763ee[_0x3c63aa('0xc')])}},_0x69c9a7=path[_0x3c63aa('0x11')](__dirname,_0x3c63aa('0x0')),_0x318962=_0x5688af[_0x3c63aa('0x22')],_0x575df7=util[_0x3c63aa('0x1')](_0x3c63aa('0x43'),path['basename'](_0x5688af[_0x3c63aa('0x22')],path['extname'](_0x5688af[_0x3c63aa('0x22')])),_0x3c63aa('0x28')),_0x500e1b=path['join'](_0x69c9a7,_0x318962),_0x59099c=path[_0x3c63aa('0x11')](_0x69c9a7,_0x575df7);if(fs[_0x3c63aa('0x3')](_0x500e1b))_0x5688af[_0x3c63aa('0x1c')]=_0x3c63aa('0x54'),_0x50d4e5[_0x3c63aa('0x15')][_0x3c63aa('0x51')]=[{'filename':_0x318962,'path':_0x500e1b}],_0x50d4e5[_0x3c63aa('0x15')][_0x3c63aa('0x4d')]=util[_0x3c63aa('0x1')](_0x3c63aa('0x19'),JSON[_0x3c63aa('0x36')](_0x5688af,null,0x2));else fs['existsSync'](_0x59099c)?(_0x5688af[_0x3c63aa('0x1c')]='Sent',_0x50d4e5[_0x3c63aa('0x15')][_0x3c63aa('0x51')]=[{'filename':_0x575df7,'path':_0x59099c}]):(_0x50d4e5[_0x3c63aa('0x15')][_0x3c63aa('0x4d')]=_0x3c63aa('0x30'),!_0x9763ee['sendIfEmpty']&&(_0xa82348=![],logger[_0x3c63aa('0x53')](_0x3c63aa('0x14'))));if(_0xa82348)return client['request'](_0x3c63aa('0x27'),_0x50d4e5)[_0x3c63aa('0x3f')](function(_0x19a05a){const _0x5072ab=_0x3c63aa;if(_0x19a05a[_0x5072ab('0x4e')])return logger[_0x5072ab('0x4e')](_0x5072ab('0x31'),JSON[_0x5072ab('0x36')](_0x19a05a));return logger[_0x5072ab('0x53')](_0x5072ab('0x3b'));})[_0x3c63aa('0x17')](function(_0x136a5a){const _0x5b3100=_0x3c63aa;return logger[_0x5b3100('0x4e')]('error\x20mail',JSON[_0x5b3100('0x36')](_0x136a5a));});};}function handleError(){return function(_0x3da0f6){const _0x1f1730=a850_0x62b5;return logger[_0x1f1730('0x4e')](JSON[_0x1f1730('0x36')](_0x3da0f6));};}function handleResult(_0x58e4c7){return function(_0x16d8e5){const _0x57b782=a850_0x62b5;logger['info'](_0x57b782('0x45'),JSON[_0x57b782('0x36')](_0x16d8e5)),_0x58e4c7[_0x57b782('0x4f')]&&_0x58e4c7[_0x57b782('0x4f')][_0x57b782('0x29')]&&!_[_0x57b782('0x21')](_0x58e4c7[_0x57b782('0x2e')])&&setTimeout(handleSendEmail(_0x58e4c7,_0x16d8e5),0x3c*0x3e8);};}function handleJob(_0x4f1293){return function(){const _0x272c9c=a850_0x62b5;try{if(_[_0x272c9c('0x21')](_0x4f1293[_0x272c9c('0x10')]))return logger[_0x272c9c('0x53')]('subtractNumber\x20null\x20or\x20undefined');if(_[_0x272c9c('0x21')](_0x4f1293[_0x272c9c('0xc')]))return logger[_0x272c9c('0x53')](_0x272c9c('0x2d'));const _0x29e458={'startDate':moment()['subtract'](_0x4f1293[_0x272c9c('0x10')],_0x4f1293[_0x272c9c('0xc')])[_0x272c9c('0x1')](_0x272c9c('0x25')),'endDate':moment()[_0x272c9c('0x1')](_0x272c9c('0x25')),'type':_0x272c9c('0x8'),'output':_0x4f1293[_0x272c9c('0x20')],'name':_0x4f1293['name']};if(!_[_0x272c9c('0x21')](_0x4f1293[_0x272c9c('0x23')]))return logger[_0x272c9c('0x53')](_0x272c9c('0x6'),_0x4f1293[_0x272c9c('0x23')]),analyticDefaultReportController[_0x272c9c('0x34')]({'id':_0x4f1293[_0x272c9c('0x23')]},_0x29e458)['then'](handleResult(_0x4f1293))['catch'](handleError());if(!_[_0x272c9c('0x21')](_0x4f1293[_0x272c9c('0x52')]))return logger['info']('exec\x20custom\x20report\x20id:%s',_0x4f1293[_0x272c9c('0x52')]),analyticCustomReportController[_0x272c9c('0x34')]({'id':_0x4f1293[_0x272c9c('0x52')]},_0x29e458)[_0x272c9c('0x3f')](handleResult(_0x4f1293))['catch'](handleError());}catch(_0x3ebc4e){logger[_0x272c9c('0x4e')](JSON[_0x272c9c('0x36')](_0x3ebc4e));}return logger[_0x272c9c('0x53')]('no\x20report\x20id');};}function getJobs(_0x1c9e6b){const _0x527398=_0x53669f,_0x1c283f={};return _0x1c9e6b&&(_0x1c283f['id']=_0x1c9e6b),db[_0x527398('0x4b')][_0x527398('0x2f')]({'where':_0x1c283f,'include':[{'model':db[_0x527398('0x4f')],'attributes':['id',_0x527398('0x4'),_0x527398('0x2e')],'include':[{'model':db[_0x527398('0x32')],'as':'Smtp'}]}]})['then'](function(_0x43dc85){const _0x35974a=_0x527398,_0x2090cd=_[_0x35974a('0x39')](manager[_0x35974a('0x37')]),_0x6b7715=_[_0x35974a('0xd')](_0x43dc85,function(_0x1d1429){const _0x17dfa1=_0x35974a;return _0x1d1429['id'][_0x17dfa1('0x2a')]();}),_0x30a943=_[_0x35974a('0x4c')](_0x43dc85,function(_0x22596b){const _0x58bfed=_0x35974a;return _0x22596b['id'][_0x58bfed('0x2a')]();}),_0x13b38e=_0x1c9e6b?_0x6b7715:_[_0x35974a('0x49')](_0x6b7715,_0x2090cd),_0x1180f3=_[_0x35974a('0x3e')](_0x6b7715,_0x2090cd),_0x1d224f=_[_0x35974a('0x49')](_0x2090cd,_0x6b7715);let _0xf30343,_0x248f42;for(_0xf30343=0x0;_0xf30343<_0x1d224f[_0x35974a('0x13')]&&!_0x1c9e6b;_0xf30343+=0x1){_0x248f42=_0x1d224f[_0xf30343][_0x35974a('0x2a')](),manager[_0x35974a('0x38')](_0x248f42)&&(manager['stop'](_0x248f42),manager['deleteJob'](_0x248f42),logger[_0x35974a('0x53')](_0x35974a('0x1e'),_0x248f42));}logger['info'](_0x35974a('0x42'),JSON[_0x35974a('0x36')](_0x13b38e));for(_0xf30343=0x0;_0xf30343<_0x13b38e['length'];_0xf30343+=0x1){_0x248f42=_0x13b38e[_0xf30343]['toString'](),logger[_0x35974a('0x53')](_0x35974a('0x3c'),_0x248f42);if(_0x1c9e6b)logger['info'](_0x35974a('0x26'),_0x1c9e6b),logger[_0x35974a('0x53')](JSON[_0x35974a('0x36')](_0x30a943[_0x248f42])),Promise['resolve']()[_0x35974a('0x3f')](handleJob(_0x30a943[_0x248f42])),logger[_0x35974a('0x53')]('run\x20job',_0x30a943[_0x248f42][_0x35974a('0x4')],_0x30a943[_0x248f42][_0x35974a('0x1d')]);else{if(_0x30a943[_0x248f42][_0x35974a('0x1d')]&&_0x30a943[_0x248f42][_0x35974a('0xe')]&&moment()[_0x35974a('0x1b')](_0x30a943[_0x248f42][_0x35974a('0x18')],_0x30a943[_0x248f42]['endAt']))manager['add'](_0x248f42,_0x30a943[_0x248f42]['cron'],handleJob(_0x30a943[_0x248f42])),manager[_0x35974a('0x7')](_0x248f42),logger[_0x35974a('0x53')](_0x35974a('0x44'),_0x30a943[_0x248f42][_0x35974a('0x4')],_0x30a943[_0x248f42][_0x35974a('0x1d')]);else manager['exists'](_0x248f42)&&(manager[_0x35974a('0x46')](_0x248f42),manager['deleteJob'](_0x248f42),logger[_0x35974a('0x53')](_0x35974a('0xb'),_0x30a943[_0x248f42][_0x35974a('0x4')],_0x30a943[_0x248f42][_0x35974a('0x1d')]));}}for(_0xf30343=0x0,_0x248f42;_0xf30343<_0x1180f3['length']&&!_0x1c9e6b;_0xf30343+=0x1){_0x248f42=_0x1180f3[_0xf30343][_0x35974a('0x2a')](),manager[_0x35974a('0x38')](_0x248f42)&&(_0x30a943[_0x248f42]['cron']&&_0x30a943[_0x248f42][_0x35974a('0xe')]&&moment()[_0x35974a('0x1b')](_0x30a943[_0x248f42]['startAt'],_0x30a943[_0x248f42][_0x35974a('0x41')])?(manager[_0x35974a('0x16')](_0x248f42,_0x30a943[_0x248f42][_0x35974a('0x1d')],handleJob(_0x30a943[_0x248f42])),logger[_0x35974a('0x53')]('update\x20cron',_0x30a943[_0x248f42]['name'],_0x30a943[_0x248f42][_0x35974a('0x1d')])):(manager[_0x35974a('0x46')](_0x248f42),manager['deleteJob'](_0x248f42),logger['info'](_0x35974a('0xb'),_0x30a943[_0x248f42][_0x35974a('0x4')],_0x30a943[_0x248f42][_0x35974a('0x1d')])));}})[_0x527398('0x17')](function(_0x48d3d5){const _0x5a59e1=_0x527398;logger['error'](JSON[_0x5a59e1('0x36')](_0x48d3d5));});}exports[_0x53669f('0x35')]=function(_0x36fd94){return getJobs(_0x36fd94);},exports['start']=function(){return setInterval(function(){return getJobs();},0x3c*0x3e8),getJobs();}; \ No newline at end of file +const a1012_0x3570=['attachments','update\x20cron','delete\x20cron','length','isBetween','runReport','sendIfEmpty','auth','active','pass','format','difference','exists','subtractUnit\x20null\x20or\x20undefined','CustomReportId','host','Report\x20empty\x0aThis\x20is\x20an\x20automatically\x20generated\x20email\x20–\x20please\x20do\x20not\x20reply\x20to\x20this\x20email.\x0a\x0a','../../api/analyticDefaultReport/analyticDefaultReport.controller','request','client','authentication','SendMail','join','Report\x20%s\x20last\x20%s\x20%s','secure','start','map','message','stop','output','Sent','existsSync','no\x20report\x20id','exec\x20custom\x20report\x20id:%s','bcc','update','findAll','../../api/analyticCustomReport/analyticCustomReport.controller','name','catch','scheduled','data','moment','http','email\x20sent','keyBy','then','text','status','subtractUnit','../logger','run','port','toString','isNil','../../files/reports','endAt','path','add\x20cron','Smtp','subtract','run\x20job','zip','subtractNumber','MailAccount','deleteJob','\x22%s\x22\x20<%s>','../../mysqldb','email','cron','stop\x20cron','stringify','service','resolve','YYYY-MM-DD\x20HH:mm:ss','intersection','user','info','Schedule','DefaultReportId','MailServerOut','Info\x20report:\x0a%s\x0aPlease\x20see\x20the\x20attachments\x0aThis\x20is\x20an\x20automatically\x20generated\x20email\x20–\x20please\x20do\x20not\x20reply\x20to\x20it.\x0a\x0a','savename','error','Try\x20to\x20send\x20a\x20mail\x20to','jayson/promise','util','add'];(function(_0x157f60,_0x3b80b1){const _0x357051=function(_0x2afbf5){while(--_0x2afbf5){_0x157f60['push'](_0x157f60['shift']());}};_0x357051(++_0x3b80b1);}(a1012_0x3570,0x10a));const a1012_0x2afb=function(_0x157f60,_0x3b80b1){_0x157f60=_0x157f60-0xbc;let _0x357051=a1012_0x3570[_0x157f60];return _0x357051;};const a1012_0x157a05=a1012_0x2afb;'use strict';const fs=require('fs'),util=require(a1012_0x157a05(0x110)),path=require(a1012_0x157a05(0xf3)),_=require('lodash'),moment=require(a1012_0x157a05(0xe4)),CronJobManager=require('cron-job-manager'),jayson=require(a1012_0x157a05(0x10f)),logger=require(a1012_0x157a05(0xec))('schedule'),{db}=require(a1012_0x157a05(0xfd)),analyticCustomReportController=require(a1012_0x157a05(0xdf)),analyticDefaultReportController=require(a1012_0x157a05(0xcb)),client=jayson[a1012_0x157a05(0xcd)][a1012_0x157a05(0xe5)]({'port':0x232b}),manager=new CronJobManager();function handleSendEmail(_0x1b1726,_0x79be80){return function(){const _0x4fa426=a1012_0x2afb;logger[_0x4fa426(0x107)](_0x4fa426(0x10e),_0x1b1726[_0x4fa426(0xfe)]);let _0x7f9008=!![];const _0xe6f5ef={'tls':{'rejectUnauthorized':![]}};_0x1b1726[_0x4fa426(0xfa)][_0x4fa426(0xf5)][_0x4fa426(0x102)]?_0xe6f5ef['service']=_0x1b1726[_0x4fa426(0xfa)][_0x4fa426(0xf5)][_0x4fa426(0x102)]:(_0xe6f5ef[_0x4fa426(0xc9)]=_0x1b1726[_0x4fa426(0xfa)][_0x4fa426(0xf5)][_0x4fa426(0xc9)],_0xe6f5ef[_0x4fa426(0xee)]=_0x1b1726[_0x4fa426(0xfa)][_0x4fa426(0xf5)][_0x4fa426(0xee)],_0xe6f5ef['secure']=_0x1b1726['MailAccount'][_0x4fa426(0xf5)][_0x4fa426(0xd2)]);_0x1b1726[_0x4fa426(0xfa)][_0x4fa426(0xf5)][_0x4fa426(0xce)]&&(_0xe6f5ef[_0x4fa426(0xc1)]={'user':_0x1b1726[_0x4fa426(0xfa)][_0x4fa426(0xf5)][_0x4fa426(0x106)],'pass':_0x1b1726['MailAccount']['Smtp'][_0x4fa426(0xc3)]});const _0x23119d={'account':_0xe6f5ef,'message':{'from':util[_0x4fa426(0xc4)](_0x4fa426(0xfc),_0x1b1726[_0x4fa426(0xfa)][_0x4fa426(0xe0)],_0x1b1726[_0x4fa426(0xfa)]['email']||_0x1b1726['MailAccount'][_0x4fa426(0xf5)][_0x4fa426(0x106)]),'to':_0x1b1726[_0x4fa426(0xfe)],'cc':_0x1b1726['cc'],'bcc':_0x1b1726[_0x4fa426(0xdc)],'subject':util[_0x4fa426(0xc4)](_0x4fa426(0xd1),_0x79be80['name'],_0x1b1726[_0x4fa426(0xf9)],_0x1b1726[_0x4fa426(0xeb)])}},_0x8221d4=path['join'](__dirname,_0x4fa426(0xf1)),_0xb24db2=_0x79be80[_0x4fa426(0x10c)],_0x349ac6=util['format']('%s.%s',path['basename'](_0x79be80[_0x4fa426(0x10c)],path['extname'](_0x79be80['savename'])),_0x4fa426(0xf8)),_0x721298=path[_0x4fa426(0xd0)](_0x8221d4,_0xb24db2),_0x56029b=path[_0x4fa426(0xd0)](_0x8221d4,_0x349ac6);if(fs[_0x4fa426(0xd9)](_0x721298))_0x79be80[_0x4fa426(0xea)]=_0x4fa426(0xd8),_0x23119d[_0x4fa426(0xd5)][_0x4fa426(0x112)]=[{'filename':_0xb24db2,'path':_0x721298}],_0x23119d[_0x4fa426(0xd5)][_0x4fa426(0xe9)]=util['format'](_0x4fa426(0x10b),JSON[_0x4fa426(0x101)](_0x79be80,null,0x2));else fs['existsSync'](_0x56029b)?(_0x79be80[_0x4fa426(0xea)]=_0x4fa426(0xd8),_0x23119d[_0x4fa426(0xd5)]['attachments']=[{'filename':_0x349ac6,'path':_0x56029b}]):(_0x23119d[_0x4fa426(0xd5)]['text']=_0x4fa426(0xca),!_0x1b1726[_0x4fa426(0xc0)]&&(_0x7f9008=![],logger[_0x4fa426(0x107)]('empty\x20file,\x20email\x20not\x20sent')));if(_0x7f9008)return client[_0x4fa426(0xcc)](_0x4fa426(0xcf),_0x23119d)[_0x4fa426(0xe8)](function(_0x2a72a3){const _0x2328e9=_0x4fa426;if(_0x2a72a3[_0x2328e9(0x10d)])return logger['error']('error\x20mail',JSON['stringify'](_0x2a72a3));return logger[_0x2328e9(0x107)](_0x2328e9(0xe6));})['catch'](function(_0x1ee954){const _0x5d6f55=_0x4fa426;return logger['error']('error\x20mail',JSON[_0x5d6f55(0x101)](_0x1ee954));});};}function handleError(){return function(_0x253c9d){return logger['error'](JSON['stringify'](_0x253c9d));};}function handleResult(_0x330412){return function(_0x2a0b2a){const _0xa8ccfe=a1012_0x2afb;logger[_0xa8ccfe(0x107)](_0xa8ccfe(0xe3),JSON[_0xa8ccfe(0x101)](_0x2a0b2a)),_0x330412['MailAccount']&&_0x330412[_0xa8ccfe(0xfa)][_0xa8ccfe(0xf5)]&&!_[_0xa8ccfe(0xf0)](_0x330412[_0xa8ccfe(0xfe)])&&setTimeout(handleSendEmail(_0x330412,_0x2a0b2a),0x3c*0x3e8);};}function handleJob(_0x5c0f9c){return function(){const _0x1d30d3=a1012_0x2afb;try{if(_[_0x1d30d3(0xf0)](_0x5c0f9c[_0x1d30d3(0xf9)]))return logger[_0x1d30d3(0x107)]('subtractNumber\x20null\x20or\x20undefined');if(_[_0x1d30d3(0xf0)](_0x5c0f9c[_0x1d30d3(0xeb)]))return logger['info'](_0x1d30d3(0xc7));const _0x5c1979={'startDate':moment()[_0x1d30d3(0xf6)](_0x5c0f9c[_0x1d30d3(0xf9)],_0x5c0f9c[_0x1d30d3(0xeb)])[_0x1d30d3(0xc4)](_0x1d30d3(0x104)),'endDate':moment()[_0x1d30d3(0xc4)]('YYYY-MM-DD\x20HH:mm:ss'),'type':_0x1d30d3(0xe2),'output':_0x5c0f9c[_0x1d30d3(0xd7)],'name':_0x5c0f9c[_0x1d30d3(0xe0)]};if(!_[_0x1d30d3(0xf0)](_0x5c0f9c['DefaultReportId']))return logger[_0x1d30d3(0x107)]('exec\x20defaul\x20report\x20id:%s',_0x5c0f9c[_0x1d30d3(0x109)]),analyticDefaultReportController[_0x1d30d3(0xbf)]({'id':_0x5c0f9c['DefaultReportId']},_0x5c1979)[_0x1d30d3(0xe8)](handleResult(_0x5c0f9c))[_0x1d30d3(0xe1)](handleError());if(!_[_0x1d30d3(0xf0)](_0x5c0f9c[_0x1d30d3(0xc8)]))return logger[_0x1d30d3(0x107)](_0x1d30d3(0xdb),_0x5c0f9c[_0x1d30d3(0xc8)]),analyticCustomReportController['runReport']({'id':_0x5c0f9c[_0x1d30d3(0xc8)]},_0x5c1979)[_0x1d30d3(0xe8)](handleResult(_0x5c0f9c))[_0x1d30d3(0xe1)](handleError());}catch(_0x1570df){logger['error'](JSON['stringify'](_0x1570df));}return logger[_0x1d30d3(0x107)](_0x1d30d3(0xda));};}function getJobs(_0x46a508){const _0x3a62dd=a1012_0x157a05,_0x13720a={};return _0x46a508&&(_0x13720a['id']=_0x46a508),db[_0x3a62dd(0x108)][_0x3a62dd(0xde)]({'where':_0x13720a,'include':[{'model':db[_0x3a62dd(0xfa)],'attributes':['id','name',_0x3a62dd(0xfe)],'include':[{'model':db[_0x3a62dd(0x10a)],'as':'Smtp'}]}]})[_0x3a62dd(0xe8)](function(_0x22ff08){const _0x5de299=_0x3a62dd,_0x4c9bb3=_['keys'](manager['jobs']),_0x1c574a=_[_0x5de299(0xd4)](_0x22ff08,function(_0x1f5d2e){return _0x1f5d2e['id']['toString']();}),_0x7e8d4c=_[_0x5de299(0xe7)](_0x22ff08,function(_0x4584ae){const _0x2d85c5=_0x5de299;return _0x4584ae['id'][_0x2d85c5(0xef)]();}),_0x10ef60=_0x46a508?_0x1c574a:_['difference'](_0x1c574a,_0x4c9bb3),_0x1ca831=_[_0x5de299(0x105)](_0x1c574a,_0x4c9bb3),_0xde5e28=_[_0x5de299(0xc5)](_0x4c9bb3,_0x1c574a);let _0xa1c77,_0x1a4b37;for(_0xa1c77=0x0;_0xa1c77<_0xde5e28['length']&&!_0x46a508;_0xa1c77+=0x1){_0x1a4b37=_0xde5e28[_0xa1c77][_0x5de299(0xef)](),manager[_0x5de299(0xc6)](_0x1a4b37)&&(manager[_0x5de299(0xd6)](_0x1a4b37),manager[_0x5de299(0xfb)](_0x1a4b37),logger[_0x5de299(0x107)](_0x5de299(0xbc),_0x1a4b37));}logger[_0x5de299(0x107)]('toRun',JSON[_0x5de299(0x101)](_0x10ef60));for(_0xa1c77=0x0;_0xa1c77<_0x10ef60[_0x5de299(0xbd)];_0xa1c77+=0x1){_0x1a4b37=_0x10ef60[_0xa1c77][_0x5de299(0xef)](),logger['info']('index',_0x1a4b37);if(_0x46a508)logger['info']('my\x20id',_0x46a508),logger[_0x5de299(0x107)](JSON['stringify'](_0x7e8d4c[_0x1a4b37])),Promise[_0x5de299(0x103)]()[_0x5de299(0xe8)](handleJob(_0x7e8d4c[_0x1a4b37])),logger[_0x5de299(0x107)](_0x5de299(0xf7),_0x7e8d4c[_0x1a4b37][_0x5de299(0xe0)],_0x7e8d4c[_0x1a4b37][_0x5de299(0xff)]);else{if(_0x7e8d4c[_0x1a4b37][_0x5de299(0xff)]&&_0x7e8d4c[_0x1a4b37][_0x5de299(0xc2)]&&moment()[_0x5de299(0xbe)](_0x7e8d4c[_0x1a4b37]['startAt'],_0x7e8d4c[_0x1a4b37][_0x5de299(0xf2)]))manager[_0x5de299(0x111)](_0x1a4b37,_0x7e8d4c[_0x1a4b37][_0x5de299(0xff)],handleJob(_0x7e8d4c[_0x1a4b37])),manager[_0x5de299(0xd3)](_0x1a4b37),logger[_0x5de299(0x107)](_0x5de299(0xf4),_0x7e8d4c[_0x1a4b37][_0x5de299(0xe0)],_0x7e8d4c[_0x1a4b37]['cron']);else manager['exists'](_0x1a4b37)&&(manager[_0x5de299(0xd6)](_0x1a4b37),manager[_0x5de299(0xfb)](_0x1a4b37),logger[_0x5de299(0x107)]('stop\x20cron',_0x7e8d4c[_0x1a4b37][_0x5de299(0xe0)],_0x7e8d4c[_0x1a4b37][_0x5de299(0xff)]));}}for(_0xa1c77=0x0,_0x1a4b37;_0xa1c77<_0x1ca831['length']&&!_0x46a508;_0xa1c77+=0x1){_0x1a4b37=_0x1ca831[_0xa1c77]['toString'](),manager[_0x5de299(0xc6)](_0x1a4b37)&&(_0x7e8d4c[_0x1a4b37]['cron']&&_0x7e8d4c[_0x1a4b37]['active']&&moment()[_0x5de299(0xbe)](_0x7e8d4c[_0x1a4b37]['startAt'],_0x7e8d4c[_0x1a4b37][_0x5de299(0xf2)])?(manager[_0x5de299(0xdd)](_0x1a4b37,_0x7e8d4c[_0x1a4b37][_0x5de299(0xff)],handleJob(_0x7e8d4c[_0x1a4b37])),logger[_0x5de299(0x107)](_0x5de299(0x113),_0x7e8d4c[_0x1a4b37][_0x5de299(0xe0)],_0x7e8d4c[_0x1a4b37][_0x5de299(0xff)])):(manager['stop'](_0x1a4b37),manager[_0x5de299(0xfb)](_0x1a4b37),logger[_0x5de299(0x107)](_0x5de299(0x100),_0x7e8d4c[_0x1a4b37][_0x5de299(0xe0)],_0x7e8d4c[_0x1a4b37][_0x5de299(0xff)])));}})[_0x3a62dd(0xe1)](function(_0x45ed63){const _0x39ee34=_0x3a62dd;logger[_0x39ee34(0x10d)](JSON[_0x39ee34(0x101)](_0x45ed63));});}exports[a1012_0x157a05(0xed)]=function(_0x12c979){return getJobs(_0x12c979);},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 581dffb..f1c5df1 100644 --- a/server/config/schedule/transcribe.js +++ b/server/config/schedule/transcribe.js @@ -1 +1 @@ -const a851_0x411c=['aws-sdk','Settings\x20not\x20available','findOne','sentimentRegion','Transcribe\x20not\x20configured','No\x20transcribe\x20job\x20to\x20check','[RECORDING:%d]\x20Sentiment\x20Analysis\x20available','SentimentScore','Positive','Sentiment','results','data2','data1','Transcript\x20not\x20available','sequelize','start','[RECORDING:%d]\x20Error\x20running\x20Transcribe\x20&\x20Sentiment\x20Analysis','TranscriptFileUri','IN_PROGRESS','transcripts','resolve','../../config/logger','COMPLETED','update','then','request-promise-native','Comprehend','getTranscriptionJob','SequelizeValidationError','forEach','all','[RECORDING:%d]\x20Get\x20status\x20for\x20transcript\x20job\x20(%s)','Transcript','[RECORDING:%d]\x20Transcript\x20Job\x20status\x20not\x20managed','../../mysqldb','Sentiment\x20Analysis\x20not\x20requested','TranscriptionJob','transcribeAccountId','sentimentAccountId','transcript','Cloud\x20Provider\x20not\x20available','transcribeRegion','Mixed','error','Negative','info','transcribe','FailureReason','Cloud\x20Provider\x20not\x20configured','TranscriptionJobStatus','findAll','push','tempSentiment','[RECORDING:%d]\x20Status\x20of\x20transcript\x20job\x20(%s):\x20%s','fileText','language','format','util','[RECORDING:%d]\x20Transcript\x20downloaded','transcribeName','name','Neutral','Sentiment\x20Analysis\x20not\x20configured','[RECORDING:%d]\x20Voice\x20Recording\x20entry\x20updated','CloudProvider','FAILED','bucket','length','inspect','TranscribeService','catch'];(function(_0x238b91,_0x411cd7){const _0x59dc31=function(_0x172b24){while(--_0x172b24){_0x238b91['push'](_0x238b91['shift']());}};_0x59dc31(++_0x411cd7);}(a851_0x411c,0x80));const a851_0x59dc=function(_0x238b91,_0x411cd7){_0x238b91=_0x238b91-0x0;let _0x59dc31=a851_0x411c[_0x238b91];return _0x59dc31;};const _0x460991=a851_0x59dc,AWS=require(_0x460991('0xe')),rp=require(_0x460991('0x27')),util=require(_0x460991('0x0')),db=require(_0x460991('0x30'))['db'],{ValidationError}=require(_0x460991('0x1c')),logger=require(_0x460991('0x23'))(_0x460991('0x3c'));function getTranscriptionJob(_0x172b24,_0x495678,_0x1f5fa3,_0x3500df){return new Promise(function(_0x26f383,_0x466ef5){const _0x324ea9=a851_0x59dc,_0x4b354e=new AWS[(_0x324ea9('0xc'))]({'accessKeyId':_0x495678,'secretAccessKey':_0x172b24,'region':_0x1f5fa3});_0x4b354e[_0x324ea9('0x29')]({'TranscriptionJobName':_0x3500df},function(_0x457203,_0x23610d){return _0x457203?_0x466ef5(_0x457203):_0x26f383(_0x23610d);});});}function sentiment(_0x31c5a4,_0x161b14,_0x253a34,_0x2e19b3,_0x46d3b5){return new Promise(function(_0x402097,_0x46cfb4){const _0xee7d76=a851_0x59dc,_0xa43937=new AWS[(_0xee7d76('0x28'))]({'accessKeyId':_0x161b14,'secretAccessKey':_0x31c5a4,'region':_0x253a34});_0xa43937['detectSentiment']({'Text':_0x2e19b3,'LanguageCode':_0x46d3b5['substring'](0x0,0x2)},function(_0x26f653,_0x2bf45b){return _0x26f653?_0x46cfb4(_0x26f653):_0x402097(_0x2bf45b);});});}function checkTranscribeJob(_0x562438,_0x5bc43c,_0x101c4e){let _0xd0433a;return new Promise(function(_0x3dccce){const _0xd3799a=a851_0x59dc;return logger[_0xd3799a('0x3b')](util['format'](_0xd3799a('0x2d'),_0x562438['id'],_0x562438[_0xd3799a('0x2')])),getTranscriptionJob(_0x101c4e[_0xd3799a('0x1a')],_0x101c4e[_0xd3799a('0x19')],_0x5bc43c[_0xd3799a('0x37')],_0x562438[_0xd3799a('0x2')])[_0xd3799a('0x26')](function(_0x460d75){const _0x3225b7=_0xd3799a;logger[_0x3225b7('0x3b')](util[_0x3225b7('0x46')](_0x3225b7('0x43'),_0x562438['id'],_0x562438['transcribeName'],_0x460d75[_0x3225b7('0x32')][_0x3225b7('0x3f')]));if(!_0x562438[_0x3225b7('0x44')])switch(_0x460d75[_0x3225b7('0x32')][_0x3225b7('0x3f')]){case _0x3225b7('0x24'):{const _0x8cfc82={'transcribeStatus':_0x460d75[_0x3225b7('0x32')]['TranscriptionJobStatus'],'fileUri':_0x460d75[_0x3225b7('0x32')][_0x3225b7('0x2e')][_0x3225b7('0x1f')]};return logger[_0x3225b7('0x3b')](util[_0x3225b7('0x46')]('[RECORDING:%d]\x20Get\x20transcript',_0x562438['id'])),rp({'uri':_0x460d75[_0x3225b7('0x32')][_0x3225b7('0x2e')][_0x3225b7('0x1f')],'json':!![]})[_0x3225b7('0x26')](function(_0x220b4b){const _0x13179b=_0x3225b7;logger['info'](util[_0x13179b('0x46')](_0x13179b('0x1'),_0x562438['id']));if(_0x220b4b&&_0x220b4b[_0x13179b('0x18')]&&_0x220b4b[_0x13179b('0x18')][_0x13179b('0x21')]&&_0x220b4b[_0x13179b('0x18')][_0x13179b('0x21')]['length']){_0x8cfc82[_0x13179b('0x44')]='';for(let _0x10fba3=0x0;_0x10fba3<_0x220b4b[_0x13179b('0x18')][_0x13179b('0x21')][_0x13179b('0xa')];_0x10fba3++){_0x8cfc82[_0x13179b('0x44')]+=_0x220b4b[_0x13179b('0x18')][_0x13179b('0x21')][_0x10fba3][_0x13179b('0x35')]+'';}}return _0x562438[_0x13179b('0x25')](_0x8cfc82);})[_0x3225b7('0x26')](function(){const _0x4feaab=_0x3225b7;logger[_0x4feaab('0x3b')](util[_0x4feaab('0x46')]('[RECORDING:%d]\x20Voice\x20Recording\x20entry\x20updated',_0x562438['id']));if(!_0x562438[_0x4feaab('0x42')])throw new ValidationError(_0x4feaab('0x31'));if(!_0x5bc43c['sentiment']||!_0x5bc43c['sentimentAccountId']||!_0x5bc43c[_0x4feaab('0x11')]||!_0x5bc43c['language']||!_0x5bc43c[_0x4feaab('0x9')])throw new ValidationError(_0x4feaab('0x5'));if(!_0x8cfc82[_0x4feaab('0x44')])throw new Error(_0x4feaab('0x1b'));return _0x5bc43c[_0x4feaab('0x34')]===_0x101c4e['id']?_0x101c4e:db[_0x4feaab('0x7')][_0x4feaab('0x10')]({'where':{'id':_0x5bc43c[_0x4feaab('0x34')]}});})[_0x3225b7('0x26')](function(_0x5f51f3){const _0x22902f=_0x3225b7;if(!_0x5f51f3)throw new ValidationError(_0x22902f('0x36'));if(!_0x5f51f3[_0x22902f('0x1a')]||!_0x5f51f3[_0x22902f('0x19')])throw new ValidationError('Cloud\x20Provider\x20not\x20configured');return _0xd0433a=_0x5f51f3,logger[_0x22902f('0x3b')](util[_0x22902f('0x46')]('[RECORDING:%d]\x20Requesting\x20sentiment\x20analysis',_0x562438['id'])),sentiment(_0xd0433a[_0x22902f('0x1a')],_0xd0433a[_0x22902f('0x19')],_0x5bc43c[_0x22902f('0x11')],_0x8cfc82[_0x22902f('0x44')],_0x5bc43c[_0x22902f('0x45')]);})[_0x3225b7('0x26')](function(_0x5514b9){const _0x7b787c=_0x3225b7;return logger['info'](util['format'](_0x7b787c('0x14'),_0x562438['id'])),_0x562438[_0x7b787c('0x25')]({'sentiment':_0x5514b9[_0x7b787c('0x17')],'sPositive':_0x5514b9[_0x7b787c('0x15')][_0x7b787c('0x16')],'sNegative':_0x5514b9[_0x7b787c('0x15')]['Negative'],'sMixed':_0x5514b9[_0x7b787c('0x15')]['Mixed'],'sNeutral':_0x5514b9['SentimentScore'][_0x7b787c('0x4')]});})[_0x3225b7('0x26')](function(){const _0x170f86=_0x3225b7;logger[_0x170f86('0x3b')](util[_0x170f86('0x46')](_0x170f86('0x6'),_0x562438['id'])),_0x3dccce();});}case _0x3225b7('0x8'):return _0x562438[_0x3225b7('0x25')]({'transcribeStatus':_0x3225b7('0x8'),'failureReason':_0x460d75['TranscriptionJob'][_0x3225b7('0x3d')]})['then'](function(){const _0x11dec0=_0x3225b7;logger[_0x11dec0('0x3b')](util[_0x11dec0('0x46')](_0x11dec0('0x6'),_0x562438['id'])),_0x3dccce();});default:logger['info'](util[_0x3225b7('0x46')](_0x3225b7('0x2f'),_0x562438['id']));break;}else return Promise[_0x3225b7('0x22')]()[_0x3225b7('0x26')](function(){const _0xfc5c24=_0x3225b7;if(!_0x562438[_0xfc5c24('0x42')])throw new ValidationError(_0xfc5c24('0x31'));if(!_0x5bc43c['sentiment']||!_0x5bc43c[_0xfc5c24('0x34')]||!_0x5bc43c[_0xfc5c24('0x11')]||!_0x5bc43c[_0xfc5c24('0x45')]||!_0x5bc43c['bucket'])throw new ValidationError(_0xfc5c24('0x5'));if(!_0x562438[_0xfc5c24('0x44')])throw new Error('Transcript\x20not\x20available');return _0x5bc43c[_0xfc5c24('0x34')]===_0x101c4e['id']?_0x101c4e:db[_0xfc5c24('0x7')][_0xfc5c24('0x10')]({'where':{'id':_0x5bc43c[_0xfc5c24('0x34')]}});})['then'](function(_0x24a49c){const _0xc8802f=_0x3225b7;if(!_0x24a49c)throw new ValidationError(_0xc8802f('0x36'));if(!_0x24a49c[_0xc8802f('0x1a')]||!_0x24a49c[_0xc8802f('0x19')])throw new ValidationError(_0xc8802f('0x3e'));return _0xd0433a=_0x24a49c,logger[_0xc8802f('0x3b')](util[_0xc8802f('0x46')]('[RECORDING:%d]\x20Requesting\x20sentiment\x20analysis',_0x562438['id'])),sentiment(_0xd0433a[_0xc8802f('0x1a')],_0xd0433a['data2'],_0x5bc43c['sentimentRegion'],_0x562438[_0xc8802f('0x44')],_0x5bc43c[_0xc8802f('0x45')]);})[_0x3225b7('0x26')](function(_0x1b8a72){const _0x5096a5=_0x3225b7;return logger[_0x5096a5('0x3b')](util[_0x5096a5('0x46')](_0x5096a5('0x14'),_0x562438['id'])),_0x562438[_0x5096a5('0x25')]({'sentiment':_0x1b8a72[_0x5096a5('0x17')],'sPositive':_0x1b8a72['SentimentScore'][_0x5096a5('0x16')],'sNegative':_0x1b8a72[_0x5096a5('0x15')][_0x5096a5('0x3a')],'sMixed':_0x1b8a72[_0x5096a5('0x15')][_0x5096a5('0x38')],'sNeutral':_0x1b8a72[_0x5096a5('0x15')][_0x5096a5('0x4')],'transcribeStatus':_0x5096a5('0x24')});})['then'](function(){const _0x439b87=_0x3225b7;logger[_0x439b87('0x3b')](util[_0x439b87('0x46')]('[RECORDING:%d]\x20Voice\x20Recording\x20entry\x20updated',_0x562438['id'])),_0x3dccce();});})[_0xd3799a('0xd')](function(_0x2043b5){const _0x28de3b=_0xd3799a;_0x2043b5&&((!_0x2043b5[_0x28de3b('0x3')]||_0x2043b5[_0x28de3b('0x3')]!==_0x28de3b('0x2a'))&&logger[_0x28de3b('0x39')](util['format'](_0x28de3b('0x1e'),_0x562438['id']),util['inspect'](_0x2043b5,{'showHidden':![],'depth':null}))),_0x3dccce();});});}function checkTranscribe(){const _0x389335=_0x460991;let _0x4fb712,_0x21d8c9,_0x6d5869;return db['VoiceRecording'][_0x389335('0x40')]({'where':{'transcribeStatus':_0x389335('0x20')}})[_0x389335('0x26')](function(_0x4af3e7){const _0x50e9c1=_0x389335;if(!_0x4af3e7||!_0x4af3e7[_0x50e9c1('0xa')])throw new ValidationError(_0x50e9c1('0x13'));return _0x4fb712=_0x4af3e7,db['Setting'][_0x50e9c1('0x10')]({'where':{'id':0x1}});})[_0x389335('0x26')](function(_0x527094){const _0xb96d0=_0x389335;if(!_0x527094)throw new ValidationError(_0xb96d0('0xf'));_0x21d8c9=_0x527094;if(!_0x21d8c9[_0xb96d0('0x3c')]||!_0x21d8c9['transcribeAccountId']||!_0x21d8c9['transcribeRegion']||!_0x21d8c9[_0xb96d0('0x45')]||!_0x21d8c9[_0xb96d0('0x9')])throw new ValidationError(_0xb96d0('0x12'));return db[_0xb96d0('0x7')][_0xb96d0('0x10')]({'where':{'id':_0x21d8c9[_0xb96d0('0x33')]}});})[_0x389335('0x26')](function(_0x43d271){const _0x462e6b=_0x389335;if(!_0x43d271)throw new ValidationError(_0x462e6b('0x36'));if(!_0x43d271[_0x462e6b('0x1a')]||!_0x43d271[_0x462e6b('0x19')])throw new ValidationError(_0x462e6b('0x3e'));_0x6d5869=_0x43d271;const _0x41e580=[];return _0x4fb712[_0x462e6b('0x2b')](function(_0x17585b){const _0x1b7fa0=_0x462e6b;_0x41e580[_0x1b7fa0('0x41')](checkTranscribeJob(_0x17585b,_0x21d8c9,_0x6d5869));}),Promise[_0x462e6b('0x2c')](_0x41e580);})[_0x389335('0xd')](function(_0x1f6f26){const _0x365874=_0x389335;_0x1f6f26&&((!_0x1f6f26[_0x365874('0x3')]||_0x1f6f26[_0x365874('0x3')]!==_0x365874('0x2a'))&&logger[_0x365874('0x39')](util[_0x365874('0xb')](_0x1f6f26,{'showHidden':![],'depth':null})));});}exports[_0x460991('0x1d')]=function(){return setInterval(function(){return checkTranscribe();},0x3c*0x3e8),checkTranscribe();}; \ No newline at end of file +const a1013_0x4a61=['start','sequelize','update','data1','detectSentiment','FailureReason','catch','transcribeAccountId','VoiceRecording','Sentiment\x20Analysis\x20not\x20requested','transcribe','results','No\x20transcribe\x20job\x20to\x20check','[RECORDING:%d]\x20Requesting\x20sentiment\x20analysis','transcript','[RECORDING:%d]\x20Status\x20of\x20transcript\x20job\x20(%s):\x20%s','getTranscriptionJob','sentiment','../../config/logger','IN_PROGRESS','sentimentRegion','sentimentAccountId','push','then','Transcribe\x20not\x20configured','tempSentiment','Comprehend','name','FAILED','format','aws-sdk','TranscriptFileUri','substring','Cloud\x20Provider\x20not\x20available','[RECORDING:%d]\x20Get\x20status\x20for\x20transcript\x20job\x20(%s)','[RECORDING:%d]\x20Transcript\x20downloaded','Transcript','CloudProvider','[RECORDING:%d]\x20Error\x20running\x20Transcribe\x20&\x20Sentiment\x20Analysis','info','error','resolve','inspect','TranscriptionJobStatus','Negative','util','Sentiment\x20Analysis\x20not\x20configured','COMPLETED','Neutral','Sentiment','SentimentScore','[RECORDING:%d]\x20Get\x20transcript','bucket','Positive','Cloud\x20Provider\x20not\x20configured','all','language','transcribeRegion','Transcript\x20not\x20available','fileText','findOne','request-promise-native','forEach','[RECORDING:%d]\x20Transcript\x20Job\x20status\x20not\x20managed','TranscriptionJob','[RECORDING:%d]\x20Voice\x20Recording\x20entry\x20updated','Mixed','data2','transcripts','length'];(function(_0x1c330e,_0x32426e){const _0x4a61ab=function(_0x433698){while(--_0x433698){_0x1c330e['push'](_0x1c330e['shift']());}};_0x4a61ab(++_0x32426e);}(a1013_0x4a61,0xd9));const a1013_0x4336=function(_0x1c330e,_0x32426e){_0x1c330e=_0x1c330e-0x1b2;let _0x4a61ab=a1013_0x4a61[_0x1c330e];return _0x4a61ab;};const a1013_0x33d559=a1013_0x4336,AWS=require(a1013_0x33d559(0x1c9)),rp=require(a1013_0x33d559(0x1e8)),util=require(a1013_0x33d559(0x1d8)),{db}=require('../../mysqldb'),{ValidationError}=require(a1013_0x33d559(0x1f2)),logger=require(a1013_0x33d559(0x1bd))(a1013_0x33d559(0x1b5));function getTranscriptionJob(_0x50d80b,_0x3d91b2,_0x5f01ad,_0x212076){return new Promise(function(_0x37a36c,_0x247a2b){const _0x957b78=a1013_0x4336,_0x50a20c=new AWS['TranscribeService']({'accessKeyId':_0x3d91b2,'secretAccessKey':_0x50d80b,'region':_0x5f01ad});_0x50a20c[_0x957b78(0x1bb)]({'TranscriptionJobName':_0x212076},function(_0x292d71,_0x467e06){return _0x292d71?_0x247a2b(_0x292d71):_0x37a36c(_0x467e06);});});}function sentiment(_0x3dea55,_0x467146,_0xd48815,_0x270d7c,_0x2bfb9a){return new Promise(function(_0x4b0b19,_0x4323cd){const _0x4e503b=a1013_0x4336,_0x4033f5=new AWS[(_0x4e503b(0x1c5))]({'accessKeyId':_0x467146,'secretAccessKey':_0x3dea55,'region':_0xd48815});_0x4033f5[_0x4e503b(0x1f5)]({'Text':_0x270d7c,'LanguageCode':_0x2bfb9a[_0x4e503b(0x1cb)](0x0,0x2)},function(_0x1eee72,_0x26672d){return _0x1eee72?_0x4323cd(_0x1eee72):_0x4b0b19(_0x26672d);});});}function checkTranscribeJob(_0x1fc61e,_0x3be187,_0x54d210){let _0x43864d;return new Promise(function(_0x574d2c){const _0x1f76d4=a1013_0x4336;return logger[_0x1f76d4(0x1d2)](util[_0x1f76d4(0x1c8)](_0x1f76d4(0x1cd),_0x1fc61e['id'],_0x1fc61e['transcribeName'])),getTranscriptionJob(_0x54d210[_0x1f76d4(0x1f4)],_0x54d210[_0x1f76d4(0x1ee)],_0x3be187[_0x1f76d4(0x1e4)],_0x1fc61e['transcribeName'])[_0x1f76d4(0x1c2)](function(_0x44c1c0){const _0x3fa340=_0x1f76d4;logger[_0x3fa340(0x1d2)](util[_0x3fa340(0x1c8)](_0x3fa340(0x1ba),_0x1fc61e['id'],_0x1fc61e['transcribeName'],_0x44c1c0[_0x3fa340(0x1eb)][_0x3fa340(0x1d6)]));if(!_0x1fc61e['fileText'])switch(_0x44c1c0['TranscriptionJob'][_0x3fa340(0x1d6)]){case _0x3fa340(0x1da):{const _0x1f29d9={'transcribeStatus':_0x44c1c0[_0x3fa340(0x1eb)][_0x3fa340(0x1d6)],'fileUri':_0x44c1c0[_0x3fa340(0x1eb)][_0x3fa340(0x1cf)][_0x3fa340(0x1ca)]};return logger[_0x3fa340(0x1d2)](util[_0x3fa340(0x1c8)](_0x3fa340(0x1de),_0x1fc61e['id'])),rp({'uri':_0x44c1c0[_0x3fa340(0x1eb)]['Transcript'][_0x3fa340(0x1ca)],'json':!![]})[_0x3fa340(0x1c2)](function(_0x52f27e){const _0x4279fd=_0x3fa340;logger[_0x4279fd(0x1d2)](util['format'](_0x4279fd(0x1ce),_0x1fc61e['id']));if(_0x52f27e&&_0x52f27e[_0x4279fd(0x1b6)]&&_0x52f27e['results']['transcripts']&&_0x52f27e[_0x4279fd(0x1b6)][_0x4279fd(0x1ef)][_0x4279fd(0x1f0)]){_0x1f29d9[_0x4279fd(0x1e6)]='';for(let _0x3f856d=0x0;_0x3f856d<_0x52f27e['results'][_0x4279fd(0x1ef)][_0x4279fd(0x1f0)];_0x3f856d++){_0x1f29d9[_0x4279fd(0x1e6)]+=_0x52f27e[_0x4279fd(0x1b6)][_0x4279fd(0x1ef)][_0x3f856d][_0x4279fd(0x1b9)]+'';}}return _0x1fc61e[_0x4279fd(0x1f3)](_0x1f29d9);})[_0x3fa340(0x1c2)](function(){const _0x139407=_0x3fa340;logger[_0x139407(0x1d2)](util[_0x139407(0x1c8)](_0x139407(0x1ec),_0x1fc61e['id']));if(!_0x1fc61e['tempSentiment'])throw new ValidationError(_0x139407(0x1b4));if(!_0x3be187['sentiment']||!_0x3be187[_0x139407(0x1c0)]||!_0x3be187[_0x139407(0x1bf)]||!_0x3be187[_0x139407(0x1e3)]||!_0x3be187['bucket'])throw new ValidationError(_0x139407(0x1d9));if(!_0x1f29d9[_0x139407(0x1e6)])throw new Error(_0x139407(0x1e5));return _0x3be187[_0x139407(0x1c0)]===_0x54d210['id']?_0x54d210:db['CloudProvider'][_0x139407(0x1e7)]({'where':{'id':_0x3be187['sentimentAccountId']}});})[_0x3fa340(0x1c2)](function(_0x13a763){const _0x16fb98=_0x3fa340;if(!_0x13a763)throw new ValidationError(_0x16fb98(0x1cc));if(!_0x13a763[_0x16fb98(0x1f4)]||!_0x13a763[_0x16fb98(0x1ee)])throw new ValidationError(_0x16fb98(0x1e1));return _0x43864d=_0x13a763,logger['info'](util['format'](_0x16fb98(0x1b8),_0x1fc61e['id'])),sentiment(_0x43864d[_0x16fb98(0x1f4)],_0x43864d[_0x16fb98(0x1ee)],_0x3be187['sentimentRegion'],_0x1f29d9[_0x16fb98(0x1e6)],_0x3be187[_0x16fb98(0x1e3)]);})[_0x3fa340(0x1c2)](function(_0x317590){const _0x13ef39=_0x3fa340;return logger['info'](util[_0x13ef39(0x1c8)]('[RECORDING:%d]\x20Sentiment\x20Analysis\x20available',_0x1fc61e['id'])),_0x1fc61e[_0x13ef39(0x1f3)]({'sentiment':_0x317590[_0x13ef39(0x1dc)],'sPositive':_0x317590['SentimentScore'][_0x13ef39(0x1e0)],'sNegative':_0x317590['SentimentScore'][_0x13ef39(0x1d7)],'sMixed':_0x317590[_0x13ef39(0x1dd)][_0x13ef39(0x1ed)],'sNeutral':_0x317590[_0x13ef39(0x1dd)][_0x13ef39(0x1db)]});})['then'](function(){const _0x3150e0=_0x3fa340;logger[_0x3150e0(0x1d2)](util[_0x3150e0(0x1c8)]('[RECORDING:%d]\x20Voice\x20Recording\x20entry\x20updated',_0x1fc61e['id'])),_0x574d2c();});}case _0x3fa340(0x1c7):return _0x1fc61e[_0x3fa340(0x1f3)]({'transcribeStatus':'FAILED','failureReason':_0x44c1c0[_0x3fa340(0x1eb)][_0x3fa340(0x1f6)]})[_0x3fa340(0x1c2)](function(){const _0x44921d=_0x3fa340;logger[_0x44921d(0x1d2)](util[_0x44921d(0x1c8)](_0x44921d(0x1ec),_0x1fc61e['id'])),_0x574d2c();});default:logger[_0x3fa340(0x1d2)](util[_0x3fa340(0x1c8)](_0x3fa340(0x1ea),_0x1fc61e['id']));break;}else return Promise[_0x3fa340(0x1d4)]()[_0x3fa340(0x1c2)](function(){const _0x55a9b0=_0x3fa340;if(!_0x1fc61e[_0x55a9b0(0x1c4)])throw new ValidationError(_0x55a9b0(0x1b4));if(!_0x3be187[_0x55a9b0(0x1bc)]||!_0x3be187[_0x55a9b0(0x1c0)]||!_0x3be187[_0x55a9b0(0x1bf)]||!_0x3be187['language']||!_0x3be187[_0x55a9b0(0x1df)])throw new ValidationError(_0x55a9b0(0x1d9));if(!_0x1fc61e[_0x55a9b0(0x1e6)])throw new Error(_0x55a9b0(0x1e5));return _0x3be187['sentimentAccountId']===_0x54d210['id']?_0x54d210:db[_0x55a9b0(0x1d0)][_0x55a9b0(0x1e7)]({'where':{'id':_0x3be187[_0x55a9b0(0x1c0)]}});})['then'](function(_0x3fde30){const _0x41e63b=_0x3fa340;if(!_0x3fde30)throw new ValidationError(_0x41e63b(0x1cc));if(!_0x3fde30[_0x41e63b(0x1f4)]||!_0x3fde30[_0x41e63b(0x1ee)])throw new ValidationError('Cloud\x20Provider\x20not\x20configured');return _0x43864d=_0x3fde30,logger['info'](util[_0x41e63b(0x1c8)](_0x41e63b(0x1b8),_0x1fc61e['id'])),sentiment(_0x43864d[_0x41e63b(0x1f4)],_0x43864d['data2'],_0x3be187[_0x41e63b(0x1bf)],_0x1fc61e[_0x41e63b(0x1e6)],_0x3be187[_0x41e63b(0x1e3)]);})[_0x3fa340(0x1c2)](function(_0xede93a){const _0x3ec01d=_0x3fa340;return logger[_0x3ec01d(0x1d2)](util[_0x3ec01d(0x1c8)]('[RECORDING:%d]\x20Sentiment\x20Analysis\x20available',_0x1fc61e['id'])),_0x1fc61e[_0x3ec01d(0x1f3)]({'sentiment':_0xede93a[_0x3ec01d(0x1dc)],'sPositive':_0xede93a['SentimentScore'][_0x3ec01d(0x1e0)],'sNegative':_0xede93a['SentimentScore'][_0x3ec01d(0x1d7)],'sMixed':_0xede93a[_0x3ec01d(0x1dd)]['Mixed'],'sNeutral':_0xede93a[_0x3ec01d(0x1dd)][_0x3ec01d(0x1db)],'transcribeStatus':_0x3ec01d(0x1da)});})[_0x3fa340(0x1c2)](function(){const _0x51e3aa=_0x3fa340;logger[_0x51e3aa(0x1d2)](util[_0x51e3aa(0x1c8)](_0x51e3aa(0x1ec),_0x1fc61e['id'])),_0x574d2c();});})[_0x1f76d4(0x1f7)](function(_0x5891dc){const _0x5dfd3a=_0x1f76d4;_0x5891dc&&((!_0x5891dc['name']||_0x5891dc[_0x5dfd3a(0x1c6)]!=='SequelizeValidationError')&&logger[_0x5dfd3a(0x1d3)](util[_0x5dfd3a(0x1c8)](_0x5dfd3a(0x1d1),_0x1fc61e['id']),util[_0x5dfd3a(0x1d5)](_0x5891dc,{'showHidden':![],'depth':null}))),_0x574d2c();});});}function checkTranscribe(){const _0x5d1e33=a1013_0x33d559;let _0xf058bb,_0x23097e,_0x2fc94a;return db[_0x5d1e33(0x1b3)]['findAll']({'where':{'transcribeStatus':_0x5d1e33(0x1be)}})[_0x5d1e33(0x1c2)](function(_0x2d98d1){const _0x32eeea=_0x5d1e33;if(!_0x2d98d1||!_0x2d98d1[_0x32eeea(0x1f0)])throw new ValidationError(_0x32eeea(0x1b7));return _0xf058bb=_0x2d98d1,db['Setting'][_0x32eeea(0x1e7)]({'where':{'id':0x1}});})[_0x5d1e33(0x1c2)](function(_0xe6aba7){const _0x74e3dd=_0x5d1e33;if(!_0xe6aba7)throw new ValidationError('Settings\x20not\x20available');_0x23097e=_0xe6aba7;if(!_0x23097e['transcribe']||!_0x23097e[_0x74e3dd(0x1b2)]||!_0x23097e[_0x74e3dd(0x1e4)]||!_0x23097e['language']||!_0x23097e['bucket'])throw new ValidationError(_0x74e3dd(0x1c3));return db['CloudProvider'][_0x74e3dd(0x1e7)]({'where':{'id':_0x23097e[_0x74e3dd(0x1b2)]}});})['then'](function(_0x182067){const _0x2ad033=_0x5d1e33;if(!_0x182067)throw new ValidationError(_0x2ad033(0x1cc));if(!_0x182067['data1']||!_0x182067[_0x2ad033(0x1ee)])throw new ValidationError('Cloud\x20Provider\x20not\x20configured');_0x2fc94a=_0x182067;const _0x28c001=[];return _0xf058bb[_0x2ad033(0x1e9)](function(_0x349201){const _0x143a68=_0x2ad033;_0x28c001[_0x143a68(0x1c1)](checkTranscribeJob(_0x349201,_0x23097e,_0x2fc94a));}),Promise[_0x2ad033(0x1e2)](_0x28c001);})[_0x5d1e33(0x1f7)](function(_0x4610c8){const _0x1150c6=_0x5d1e33;_0x4610c8&&((!_0x4610c8['name']||_0x4610c8[_0x1150c6(0x1c6)]!=='SequelizeValidationError')&&logger[_0x1150c6(0x1d3)](util[_0x1150c6(0x1d5)](_0x4610c8,{'showHidden':![],'depth':null})));});}exports[a1013_0x33d559(0x1f1)]=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 f9271f1..1082a9e 100644 --- a/server/config/seedContact.js +++ b/server/config/seedContact.js @@ -1 +1 @@ -const a852_0x2f5b=['bulkCreate','Biondo','hopper2','hopper1','then','contacts1','push','now','destroy','innocenzo.biondo','CmContact','contacts2','log','Innocenzo','finished\x20populating','CmHopper'];(function(_0x4bccc3,_0x2f5ba2){const _0x5ddbd9=function(_0x420e6d){while(--_0x420e6d){_0x4bccc3['push'](_0x4bccc3['shift']());}};_0x5ddbd9(++_0x2f5ba2);}(a852_0x2f5b,0x186));const a852_0x5ddb=function(_0x4bccc3,_0x2f5ba2){_0x4bccc3=_0x4bccc3-0x0;let _0x5ddbd9=a852_0x2f5b[_0x4bccc3];return _0x5ddbd9;};const _0x17cef0=a852_0x5ddb;'use strict';const db=require('../mysqldb')['db'],contacts=[],hopper=[],contacts2=[],hopper2=[];for(let i=0x1;i<=0x4b0;i+=0x1){contacts['push']({'id':i,'firstName':'Innocenzo'+i,'lastName':_0x17cef0('0xb')+i,'phone':0xf879fb460+i,'email':'innocenzo.biondo'+i+'@xcally.com'});}for(let i=0x1;i<=0x4b0;i+=0x1){hopper['push']({'id':i,'active':![],'scheduledat':Date[_0x17cef0('0x1')](),'countbusyretry':0x0,'countcongestionretry':0x0,'countnoanswerretry':0x0,'ContactId':i,'ListId':0x1,'UserId':0x1,'VoiceQueueId':0x3fd,'createdAt':Date[_0x17cef0('0x1')](),'updatedAt':Date[_0x17cef0('0x1')]()});}for(let i=0x4b1;i<=0x960;i+=0x1){contacts2[_0x17cef0('0x0')]({'id':i,'firstName':_0x17cef0('0x7')+i,'lastName':_0x17cef0('0xb')+i,'phone':0xf879fb460+i,'email':_0x17cef0('0x3')+i+'@xcally.com'});}for(let i=0x4b1;i<=0x960;i+=0x1){hopper2[_0x17cef0('0x0')]({'id':i,'active':![],'scheduledat':Date[_0x17cef0('0x1')](),'countbusyretry':0x0,'countcongestionretry':0x0,'countnoanswerretry':0x0,'ContactId':i,'ListId':0x1,'UserId':0x1,'VoiceQueueId':0x3fd,'createdAt':Date['now'](),'updatedAt':Date['now']()});}db[_0x17cef0('0x4')][_0x17cef0('0x2')]({'where':{}})[_0x17cef0('0xe')](function(){const _0x2068cb=_0x17cef0;return db[_0x2068cb('0x4')][_0x2068cb('0xa')](contacts);})[_0x17cef0('0xe')](function(){const _0x82ae2f=_0x17cef0;return console[_0x82ae2f('0x6')](_0x82ae2f('0x8'),_0x82ae2f('0xf')),db[_0x82ae2f('0x9')][_0x82ae2f('0x2')]({'where':{}});})[_0x17cef0('0xe')](function(){const _0xde06c0=_0x17cef0;return db['CmHopper'][_0xde06c0('0xa')](hopper);})[_0x17cef0('0xe')](function(){const _0x4b8168=_0x17cef0;return console['log'](_0x4b8168('0x8'),_0x4b8168('0xd')),db['CmContact'][_0x4b8168('0xa')](contacts2);})[_0x17cef0('0xe')](function(){const _0x100c35=_0x17cef0;return console['log'](_0x100c35('0x8'),_0x100c35('0x5')),db['CmHopper']['bulkCreate'](hopper2);})[_0x17cef0('0xe')](function(){const _0x55758d=_0x17cef0;console[_0x55758d('0x6')](_0x55758d('0x8'),_0x55758d('0xc'));})['catch'](function(_0x420e6d){console['log'](_0x420e6d);}); \ No newline at end of file +const a1014_0x63c5=['innocenzo.biondo','destroy','log','CmHopper','catch','hopper1','CmContact','then','Biondo','bulkCreate','@xcally.com','hopper2','contacts1','finished\x20populating','contacts2','../mysqldb','push','now','Innocenzo'];(function(_0x18eb14,_0x3948f3){const _0x63c535=function(_0x143c0d){while(--_0x143c0d){_0x18eb14['push'](_0x18eb14['shift']());}};_0x63c535(++_0x3948f3);}(a1014_0x63c5,0x185));const a1014_0x143c=function(_0x18eb14,_0x3948f3){_0x18eb14=_0x18eb14-0x15f;let _0x63c535=a1014_0x63c5[_0x18eb14];return _0x63c535;};const a1014_0x1e9e0a=a1014_0x143c;'use strict';const {db}=require(a1014_0x1e9e0a(0x165)),contacts=[],hopper=[],contacts2=[],hopper2=[];for(let i=0x1;i<=0x4b0;i+=0x1){contacts['push']({'id':i,'firstName':a1014_0x1e9e0a(0x168)+i,'lastName':a1014_0x1e9e0a(0x171)+i,'phone':0xf879fb460+i,'email':a1014_0x1e9e0a(0x169)+i+a1014_0x1e9e0a(0x160)});}for(let i=0x1;i<=0x4b0;i+=0x1){hopper['push']({'id':i,'active':![],'scheduledat':Date[a1014_0x1e9e0a(0x167)](),'countbusyretry':0x0,'countcongestionretry':0x0,'countnoanswerretry':0x0,'ContactId':i,'ListId':0x1,'UserId':0x1,'VoiceQueueId':0x3fd,'createdAt':Date[a1014_0x1e9e0a(0x167)](),'updatedAt':Date[a1014_0x1e9e0a(0x167)]()});}for(let i=0x4b1;i<=0x960;i+=0x1){contacts2[a1014_0x1e9e0a(0x166)]({'id':i,'firstName':a1014_0x1e9e0a(0x168)+i,'lastName':a1014_0x1e9e0a(0x171)+i,'phone':0xf879fb460+i,'email':a1014_0x1e9e0a(0x169)+i+'@xcally.com'});}for(let i=0x4b1;i<=0x960;i+=0x1){hopper2[a1014_0x1e9e0a(0x166)]({'id':i,'active':![],'scheduledat':Date['now'](),'countbusyretry':0x0,'countcongestionretry':0x0,'countnoanswerretry':0x0,'ContactId':i,'ListId':0x1,'UserId':0x1,'VoiceQueueId':0x3fd,'createdAt':Date[a1014_0x1e9e0a(0x167)](),'updatedAt':Date[a1014_0x1e9e0a(0x167)]()});}db['CmContact'][a1014_0x1e9e0a(0x16a)]({'where':{}})[a1014_0x1e9e0a(0x170)](function(){const _0x23a980=a1014_0x1e9e0a;return db[_0x23a980(0x16f)][_0x23a980(0x15f)](contacts);})[a1014_0x1e9e0a(0x170)](function(){const _0x278d7e=a1014_0x1e9e0a;return console[_0x278d7e(0x16b)]('finished\x20populating',_0x278d7e(0x162)),db['CmHopper'][_0x278d7e(0x16a)]({'where':{}});})[a1014_0x1e9e0a(0x170)](function(){const _0x56bfc0=a1014_0x1e9e0a;return db['CmHopper'][_0x56bfc0(0x15f)](hopper);})[a1014_0x1e9e0a(0x170)](function(){const _0xa6169c=a1014_0x1e9e0a;return console[_0xa6169c(0x16b)](_0xa6169c(0x163),_0xa6169c(0x16e)),db[_0xa6169c(0x16f)][_0xa6169c(0x15f)](contacts2);})[a1014_0x1e9e0a(0x170)](function(){const _0x301529=a1014_0x1e9e0a;return console[_0x301529(0x16b)]('finished\x20populating',_0x301529(0x164)),db[_0x301529(0x16c)][_0x301529(0x15f)](hopper2);})[a1014_0x1e9e0a(0x170)](function(){const _0x30f6c7=a1014_0x1e9e0a;console[_0x30f6c7(0x16b)](_0x30f6c7(0x163),_0x30f6c7(0x161));})[a1014_0x1e9e0a(0x16d)](function(_0x3ae5eb){console['log'](_0x3ae5eb);}); \ No newline at end of file diff --git a/server/config/seedDB/analyticReports.js b/server/config/seedDB/analyticReports.js index 30c2e59..cb7ba77 100644 --- a/server/config/seedDB/analyticReports.js +++ b/server/config/seedDB/analyticReports.js @@ -1 +1 @@ -const a853_0x1d9b=['error','Analytic\x20Custom\x20Reports\x20have\x20been\x20created','AnalyticDefaultReport','bulkCreate','./report','app','length','AnalyticFieldReport','default','fields','motion','../logger','Can\x27t\x20create\x20Analytic\x20Custom\x20Report','custom','then','ReportId','catch','info','createDefault','createCustom','Can\x27t\x20create\x20Analytic\x20Default\x20Report','AnalyticCustomReport','destroy','Analytic\x20Default\x20Reports\x20have\x20been\x20created'];(function(_0x3a0f4f,_0x1d9b2d){const _0x2716d3=function(_0x31d1ec){while(--_0x31d1ec){_0x3a0f4f['push'](_0x3a0f4f['shift']());}};_0x2716d3(++_0x1d9b2d);}(a853_0x1d9b,0x143));const a853_0x2716=function(_0x3a0f4f,_0x1d9b2d){_0x3a0f4f=_0x3a0f4f-0x0;let _0x2716d3=a853_0x1d9b[_0x3a0f4f];return _0x2716d3;};const _0x5c0644=a853_0x2716;'use strict';const db=require('../../mysqldb')['db'],logger=require(_0x5c0644('0x0'))(_0x5c0644('0x12')),report=require(_0x5c0644('0x11'));exports[_0x5c0644('0x7')]=function(){const _0x2c3c94=_0x5c0644;return db[_0x2c3c94('0xf')][_0x2c3c94('0xb')]({'where':{}})[_0x2c3c94('0x3')](function(){const _0xc37cfb=_0x2c3c94;return db[_0xc37cfb('0xf')][_0xc37cfb('0x10')](report[_0xc37cfb('0x15')](_0xc37cfb('0x17')),{'ignoreDuplicates':!![],'individualHooks':!![]});})[_0x2c3c94('0x3')](function(_0x31d1ec){const _0x59cabe=_0x2c3c94,_0x12deb4=report[_0x59cabe('0x16')]();for(let _0x2055ce=0x0;_0x2055ce<_0x31d1ec['length'];_0x2055ce+=0x1){if(_0x12deb4[_0x31d1ec[_0x2055ce]['id']]){for(let _0x28aad5=0x0;_0x28aad5<_0x12deb4[_0x31d1ec[_0x2055ce]['id']][_0x59cabe('0x13')];_0x28aad5+=0x1){_0x12deb4[_0x31d1ec[_0x2055ce]['id']][_0x28aad5]['DefaultReportId']=_0x12deb4[_0x31d1ec[_0x2055ce]['id']][_0x28aad5][_0x59cabe('0x4')],delete _0x12deb4[_0x31d1ec[_0x2055ce]['id']][_0x28aad5][_0x59cabe('0x4')];}db['AnalyticFieldReport'][_0x59cabe('0x10')](_0x12deb4[_0x31d1ec[_0x2055ce]['id']]);}}})[_0x2c3c94('0x3')](function(){const _0x7f30b1=_0x2c3c94;logger['info'](_0x7f30b1('0xc'));})['catch'](function(_0x375c87){const _0x599a1f=_0x2c3c94;logger[_0x599a1f('0xd')](_0x599a1f('0x9'),_0x375c87['message']);});},exports[_0x5c0644('0x8')]=function(){const _0x32a4d7=_0x5c0644;return db[_0x32a4d7('0xa')]['bulkCreate'](report['default'](_0x32a4d7('0x2')),{'ignoreDuplicates':!![],'individualHooks':!![]})['then'](function(_0x58ae9d){const _0x7275c3=_0x32a4d7,_0x2e2c45=report['fields']();for(let _0x4a2b38=0x0;_0x4a2b38<_0x58ae9d[_0x7275c3('0x13')];_0x4a2b38+=0x1){if(_0x2e2c45[_0x58ae9d[_0x4a2b38]['id']]){for(let _0xad3d6e=0x0;_0xad3d6e<_0x2e2c45[_0x58ae9d[_0x4a2b38]['id']][_0x7275c3('0x13')];_0xad3d6e+=0x1){_0x2e2c45[_0x58ae9d[_0x4a2b38]['id']][_0xad3d6e]['CustomReportId']=_0x2e2c45[_0x58ae9d[_0x4a2b38]['id']][_0xad3d6e]['ReportId'],delete _0x2e2c45[_0x58ae9d[_0x4a2b38]['id']][_0xad3d6e][_0x7275c3('0x4')];}db[_0x7275c3('0x14')]['bulkCreate'](_0x2e2c45[_0x58ae9d[_0x4a2b38]['id']]);}}})[_0x32a4d7('0x3')](function(){const _0x278802=_0x32a4d7;logger[_0x278802('0x6')](_0x278802('0xe'));})[_0x32a4d7('0x5')](function(){const _0x1dd633=_0x32a4d7;logger[_0x1dd633('0xd')](_0x1dd633('0x1'));});}; \ No newline at end of file +const a1015_0x341e=['length','CustomReportId','AnalyticDefaultReport','error','Can\x27t\x20create\x20Analytic\x20Default\x20Report','message','ReportId','motion','Analytic\x20Custom\x20Reports\x20have\x20been\x20created','../../mysqldb','bulkCreate','createCustom','AnalyticCustomReport','info','then','destroy','fields','custom','AnalyticFieldReport','catch','default','createDefault','app'];(function(_0x5215b3,_0x3927dc){const _0x341e65=function(_0x5d265a){while(--_0x5d265a){_0x5215b3['push'](_0x5215b3['shift']());}};_0x341e65(++_0x3927dc);}(a1015_0x341e,0x16d));const a1015_0x5d26=function(_0x5215b3,_0x3927dc){_0x5215b3=_0x5215b3-0x87;let _0x341e65=a1015_0x341e[_0x5215b3];return _0x341e65;};const a1015_0x13ecd4=a1015_0x5d26;'use strict';const {db}=require(a1015_0x13ecd4(0x93)),logger=require('../logger')(a1015_0x13ecd4(0x89)),report=require('./report');exports[a1015_0x13ecd4(0x88)]=function(){const _0x37da36=a1015_0x13ecd4;return db[_0x37da36(0x8c)][_0x37da36(0x99)]({'where':{}})['then'](function(){const _0x4969c3=_0x37da36;return db[_0x4969c3(0x8c)][_0x4969c3(0x94)](report[_0x4969c3(0x87)](_0x4969c3(0x91)),{'ignoreDuplicates':!![],'individualHooks':!![]});})['then'](function(_0x2e6e6e){const _0x355828=_0x37da36,_0x12a085=report[_0x355828(0x9a)]();for(let _0xebd3af=0x0;_0xebd3af<_0x2e6e6e[_0x355828(0x8a)];_0xebd3af+=0x1){if(_0x12a085[_0x2e6e6e[_0xebd3af]['id']]){for(let _0x27490a=0x0;_0x27490a<_0x12a085[_0x2e6e6e[_0xebd3af]['id']]['length'];_0x27490a+=0x1){_0x12a085[_0x2e6e6e[_0xebd3af]['id']][_0x27490a]['DefaultReportId']=_0x12a085[_0x2e6e6e[_0xebd3af]['id']][_0x27490a]['ReportId'],delete _0x12a085[_0x2e6e6e[_0xebd3af]['id']][_0x27490a][_0x355828(0x90)];}db[_0x355828(0x9c)]['bulkCreate'](_0x12a085[_0x2e6e6e[_0xebd3af]['id']]);}}})[_0x37da36(0x98)](function(){const _0x5a2401=_0x37da36;logger[_0x5a2401(0x97)]('Analytic\x20Default\x20Reports\x20have\x20been\x20created');})[_0x37da36(0x9d)](function(_0x4fcb4e){const _0x47362a=_0x37da36;logger[_0x47362a(0x8d)](_0x47362a(0x8e),_0x4fcb4e[_0x47362a(0x8f)]);});},exports[a1015_0x13ecd4(0x95)]=function(){const _0x22f84e=a1015_0x13ecd4;return db[_0x22f84e(0x96)][_0x22f84e(0x94)](report[_0x22f84e(0x87)](_0x22f84e(0x9b)),{'ignoreDuplicates':!![],'individualHooks':!![]})['then'](function(_0xb0466b){const _0x345218=_0x22f84e,_0x386b71=report[_0x345218(0x9a)]();for(let _0x351658=0x0;_0x351658<_0xb0466b[_0x345218(0x8a)];_0x351658+=0x1){if(_0x386b71[_0xb0466b[_0x351658]['id']]){for(let _0x23568e=0x0;_0x23568e<_0x386b71[_0xb0466b[_0x351658]['id']]['length'];_0x23568e+=0x1){_0x386b71[_0xb0466b[_0x351658]['id']][_0x23568e][_0x345218(0x8b)]=_0x386b71[_0xb0466b[_0x351658]['id']][_0x23568e][_0x345218(0x90)],delete _0x386b71[_0xb0466b[_0x351658]['id']][_0x23568e][_0x345218(0x90)];}db[_0x345218(0x9c)][_0x345218(0x94)](_0x386b71[_0xb0466b[_0x351658]['id']]);}}})[_0x22f84e(0x98)](function(){const _0x520668=_0x22f84e;logger[_0x520668(0x97)](_0x520668(0x92));})[_0x22f84e(0x9d)](function(){const _0x1ad39b=_0x22f84e;logger[_0x1ad39b(0x8d)]('Can\x27t\x20create\x20Analytic\x20Custom\x20Report');});}; \ No newline at end of file diff --git a/server/config/seedDB/analyticTreeReports.js b/server/config/seedDB/analyticTreeReports.js index ca65316..eadd50e 100644 --- a/server/config/seedDB/analyticTreeReports.js +++ b/server/config/seedDB/analyticTreeReports.js @@ -1 +1 @@ -const a854_0x88bd=['custom','info','createCustom','Analytic\x20Tree\x20Custom\x20Reports\x20have\x20been\x20created','./tree','catch','Can\x27t\x20create\x20Analytic\x20Tree\x20Default\x20Report','Can\x27t\x20create\x20Analytic\x20Tree\x20Custom\x20Report','app','AnalyticTreeReport','motion','stringify','findOrCreate','createDefault','../../mysqldb','then'];(function(_0x102d97,_0x88bd22){const _0x2690e2=function(_0x4a1c7a){while(--_0x4a1c7a){_0x102d97['push'](_0x102d97['shift']());}};_0x2690e2(++_0x88bd22);}(a854_0x88bd,0x11e));const a854_0x2690=function(_0x102d97,_0x88bd22){_0x102d97=_0x102d97-0x0;let _0x2690e2=a854_0x88bd[_0x102d97];return _0x2690e2;};const _0x2fd5a0=a854_0x2690;'use strict';const db=require(_0x2fd5a0('0x0'))['db'],logger=require('../logger')(_0x2fd5a0('0xa')),tree=require(_0x2fd5a0('0x6'));exports[_0x2fd5a0('0xf')]=function(){const _0xf85fb1=_0x2fd5a0;return db[_0xf85fb1('0xb')][_0xf85fb1('0xe')]({'where':{'id':0x1},'defaults':{'id':0x1,'tree':JSON[_0xf85fb1('0xd')](tree[_0xf85fb1('0xc')])}})['then'](function([_0x4a1c7a,_0x2c2b0d]){const _0x2419d4=_0xf85fb1;if(!_0x2c2b0d)return _0x4a1c7a['update']({'tree':JSON['stringify'](tree[_0x2419d4('0xc')])});return _0x4a1c7a;})[_0xf85fb1('0x1')](function(){const _0x48cef0=_0xf85fb1;logger[_0x48cef0('0x3')]('Analytic\x20Tree\x20Default\x20Reports\x20have\x20been\x20created');})[_0xf85fb1('0x7')](function(){const _0x224a5f=_0xf85fb1;logger['error'](_0x224a5f('0x8'));});},exports[_0x2fd5a0('0x4')]=function(){const _0x1c787d=_0x2fd5a0;return db['AnalyticTreeReport']['bulkCreate']([{'id':0x2,'tree':JSON['stringify'](tree[_0x1c787d('0x2')])}],{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x1c787d('0x1')](function(){const _0x1e8820=_0x1c787d;logger[_0x1e8820('0x3')](_0x1e8820('0x5'));})[_0x1c787d('0x7')](function(){const _0x25520c=_0x1c787d;logger['error'](_0x25520c('0x9'));});}; \ No newline at end of file +const a1016_0x2686=['stringify','createDefault','motion','bulkCreate','then','error','AnalyticTreeReport','catch','./tree','app','custom','Analytic\x20Tree\x20Default\x20Reports\x20have\x20been\x20created','../../mysqldb','info'];(function(_0x5f3578,_0x2cfc39){const _0x26864c=function(_0x2c6fd3){while(--_0x2c6fd3){_0x5f3578['push'](_0x5f3578['shift']());}};_0x26864c(++_0x2cfc39);}(a1016_0x2686,0x13b));const a1016_0x2c6f=function(_0x5f3578,_0x2cfc39){_0x5f3578=_0x5f3578-0x18d;let _0x26864c=a1016_0x2686[_0x5f3578];return _0x26864c;};const a1016_0x1e9e6d=a1016_0x2c6f;'use strict';const {db}=require(a1016_0x1e9e6d(0x192)),logger=require('../logger')(a1016_0x1e9e6d(0x18f)),tree=require(a1016_0x1e9e6d(0x18e));exports[a1016_0x1e9e6d(0x195)]=function(){const _0x259bcd=a1016_0x1e9e6d;return db[_0x259bcd(0x19a)]['findOrCreate']({'where':{'id':0x1},'defaults':{'id':0x1,'tree':JSON[_0x259bcd(0x194)](tree[_0x259bcd(0x196)])}})[_0x259bcd(0x198)](function([_0x86fea1,_0x553ef7]){const _0x16b9e1=_0x259bcd;if(!_0x553ef7)return _0x86fea1['update']({'tree':JSON[_0x16b9e1(0x194)](tree[_0x16b9e1(0x196)])});return _0x86fea1;})['then'](function(){const _0x545e7d=_0x259bcd;logger[_0x545e7d(0x193)](_0x545e7d(0x191));})[_0x259bcd(0x18d)](function(){const _0x514f27=_0x259bcd;logger[_0x514f27(0x199)]('Can\x27t\x20create\x20Analytic\x20Tree\x20Default\x20Report');});},exports['createCustom']=function(){const _0x1e8982=a1016_0x1e9e6d;return db['AnalyticTreeReport'][_0x1e8982(0x197)]([{'id':0x2,'tree':JSON[_0x1e8982(0x194)](tree[_0x1e8982(0x190)])}],{'ignoreDuplicates':!![],'individualHooks':!![]})['then'](function(){logger['info']('Analytic\x20Tree\x20Custom\x20Reports\x20have\x20been\x20created');})[_0x1e8982(0x18d)](function(){logger['error']('Can\x27t\x20create\x20Analytic\x20Tree\x20Custom\x20Report');});}; \ No newline at end of file diff --git a/server/config/seedDB/chanspy.js b/server/config/seedDB/chanspy.js index 707a527..e30848b 100644 --- a/server/config/seedDB/chanspy.js +++ b/server/config/seedDB/chanspy.js @@ -1 +1 @@ -const a855_0xfea5=['VoiceChanSpy','OnlyListen','error','then','spy3','bulkCreate','info','Listen&TalkBoth','The\x20supervisor\x20can\x20listen\x20and\x20talk\x20to\x20the\x20agent.\x20The\x20customer\x20will\x20not\x20listen\x20to\x20the\x20supervisor\x20voice','Can\x27t\x20create\x20ChanSpy','The\x20supervisor\x20can\x20listen\x20and\x20talk\x20both\x20to\x20the\x20agent\x20and\x20to\x20the\x20customer,\x20like\x20a\x20pure\x203\x20way\x20conference\x20room','ChanSpy\x20have\x20been\x20created','Listen&TalkOne','OnlyListenBoth','spy2','app'];(function(_0x28a68c,_0xfea597){const _0x21a7ad=function(_0x5c7b23){while(--_0x5c7b23){_0x28a68c['push'](_0x28a68c['shift']());}};_0x21a7ad(++_0xfea597);}(a855_0xfea5,0x1cf));const a855_0x21a7=function(_0x28a68c,_0xfea597){_0x28a68c=_0x28a68c-0x0;let _0x21a7ad=a855_0xfea5[_0x28a68c];return _0x21a7ad;};const _0x4f3eac=a855_0x21a7;'use strict';const db=require('../../mysqldb')['db'],logger=require('../logger')(_0x4f3eac('0x0')),chanSpy=[{'id':0x1,'name':_0x4f3eac('0xd'),'prefix':'spy1','options':['b','w','E','S'],'description':_0x4f3eac('0x9')},{'id':0x2,'name':_0x4f3eac('0x2'),'prefix':_0x4f3eac('0xf'),'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':_0x4f3eac('0x8'),'prefix':_0x4f3eac('0x5'),'options':['B','w','E','S'],'description':_0x4f3eac('0xb')},{'id':0x4,'name':_0x4f3eac('0xe'),'prefix':'spy4','options':['B','o','E','S'],'description':'The\x20supervisor\x20can\x20just\x20listen\x20to\x20the\x20phone\x20call'}];exports['create']=function(){const _0x4b3c7a=_0x4f3eac;return db[_0x4b3c7a('0x1')][_0x4b3c7a('0x6')](chanSpy,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x4b3c7a('0x4')](function(){const _0x4b3f04=_0x4b3c7a;logger[_0x4b3f04('0x7')](_0x4b3f04('0xc'));})['catch'](function(){const _0x133bba=_0x4b3c7a;logger[_0x133bba('0x3')](_0x133bba('0xa'));});}; \ No newline at end of file +const a1017_0x1359=['info','../logger','create','bulkCreate','OnlyListen','Listen&TalkOne','spy1','spy2','OnlyListenBoth','error','spy3','../../mysqldb','The\x20supervisor\x20can\x20just\x20listen\x20to\x20the\x20phone\x20call','app','spy4','The\x20supervisor\x20can\x20only\x20listen\x20the\x20agent\x20channel\x20(neither\x20the\x20agent\x20nor\x20the\x20customer\x20will\x20listen\x20to\x20the\x20supervisor\x20voice)','Can\x27t\x20create\x20ChanSpy','ChanSpy\x20have\x20been\x20created','catch'];(function(_0x268d9b,_0x51849b){const _0x135906=function(_0x460e68){while(--_0x460e68){_0x268d9b['push'](_0x268d9b['shift']());}};_0x135906(++_0x51849b);}(a1017_0x1359,0x1cd));const a1017_0x460e=function(_0x268d9b,_0x51849b){_0x268d9b=_0x268d9b-0x1ac;let _0x135906=a1017_0x1359[_0x268d9b];return _0x135906;};const a1017_0x4121a2=a1017_0x460e;'use strict';const {db}=require(a1017_0x4121a2(0x1b2)),logger=require(a1017_0x4121a2(0x1bb))(a1017_0x4121a2(0x1b4)),chanSpy=[{'id':0x1,'name':a1017_0x4121a2(0x1ac),'prefix':a1017_0x4121a2(0x1ad),'options':['b','w','E','S'],'description':'The\x20supervisor\x20can\x20listen\x20and\x20talk\x20to\x20the\x20agent.\x20The\x20customer\x20will\x20not\x20listen\x20to\x20the\x20supervisor\x20voice'},{'id':0x2,'name':a1017_0x4121a2(0x1be),'prefix':a1017_0x4121a2(0x1ae),'options':['b','o','E','S'],'description':a1017_0x4121a2(0x1b6)},{'id':0x3,'name':'Listen&TalkBoth','prefix':a1017_0x4121a2(0x1b1),'options':['B','w','E','S'],'description':'The\x20supervisor\x20can\x20listen\x20and\x20talk\x20both\x20to\x20the\x20agent\x20and\x20to\x20the\x20customer,\x20like\x20a\x20pure\x203\x20way\x20conference\x20room'},{'id':0x4,'name':a1017_0x4121a2(0x1af),'prefix':a1017_0x4121a2(0x1b5),'options':['B','o','E','S'],'description':a1017_0x4121a2(0x1b3)}];exports[a1017_0x4121a2(0x1bc)]=function(){const _0x27faaa=a1017_0x4121a2;return db['VoiceChanSpy'][_0x27faaa(0x1bd)](chanSpy,{'ignoreDuplicates':!![],'individualHooks':!![]})['then'](function(){const _0x3e4f87=_0x27faaa;logger[_0x3e4f87(0x1ba)](_0x3e4f87(0x1b8));})[_0x27faaa(0x1b9)](function(){const _0x52cf9f=_0x27faaa;logger[_0x52cf9f(0x1b0)](_0x52cf9f(0x1b7));});}; \ No newline at end of file diff --git a/server/config/seedDB/companies.js b/server/config/seedDB/companies.js index eb5a7ae..f9ee56a 100644 --- a/server/config/seedDB/companies.js +++ b/server/config/seedDB/companies.js @@ -1 +1 @@ -const a856_0x49eb=['company\x20auto\x20generated','+3901119886500','then','Companies\x20have\x20been\x20created','Can\x27t\x20create\x20Companies','catch','error','../../mysqldb','www.xcallymotion.com','xcally.com','srl','../logger','info@xcally.com','+390110960070','CmCompany','bulkCreate','Corso\x20Vittorio\x20Emanuele\x20II,\x20111','Italy','Xenialab'];(function(_0x34af7f,_0x49eb48){const _0xd5e7ad=function(_0x1c3aec){while(--_0x1c3aec){_0x34af7f['push'](_0x34af7f['shift']());}};_0xd5e7ad(++_0x49eb48);}(a856_0x49eb,0x8b));const a856_0xd5e7=function(_0x34af7f,_0x49eb48){_0x34af7f=_0x34af7f-0x0;let _0xd5e7ad=a856_0x49eb[_0x34af7f];return _0xd5e7ad;};const _0x3b7c24=a856_0xd5e7;'use strict';const db=require(_0x3b7c24('0x1'))['db'],logger=require(_0x3b7c24('0x5'))('app'),companies=[{'id':0x1,'name':_0x3b7c24('0xc'),'type':_0x3b7c24('0x4'),'vat':'09668910012','phone':_0x3b7c24('0xe'),'fax':_0x3b7c24('0x7'),'website':_0x3b7c24('0x2'),'email':_0x3b7c24('0x6'),'emailDomain':_0x3b7c24('0x3'),'street':_0x3b7c24('0xa'),'postalCode':'10128','city':'Turin','country':_0x3b7c24('0xb'),'description':_0x3b7c24('0xd')}];exports['create']=function(){const _0x52a728=_0x3b7c24;return db[_0x52a728('0x8')][_0x52a728('0x9')](companies,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x52a728('0xf')](function(){const _0x71eb8=_0x52a728;logger['info'](_0x71eb8('0x10'));})[_0x52a728('0x12')](function(){const _0x242a5a=_0x52a728;logger[_0x242a5a('0x0')](_0x242a5a('0x11'));});}; \ No newline at end of file +const a1018_0x1de7=['info@xcally.com','Italy','10128','app','Turin','company\x20auto\x20generated','srl','www.xcallymotion.com','Xenialab','create','../logger','09668910012','catch','Corso\x20Vittorio\x20Emanuele\x20II,\x20111','error','+3901119886500','+390110960070','CmCompany','Can\x27t\x20create\x20Companies','xcally.com'];(function(_0x123113,_0x18ac3d){const _0x1de7f8=function(_0x21fd73){while(--_0x21fd73){_0x123113['push'](_0x123113['shift']());}};_0x1de7f8(++_0x18ac3d);}(a1018_0x1de7,0x7a));const a1018_0x21fd=function(_0x123113,_0x18ac3d){_0x123113=_0x123113-0x133;let _0x1de7f8=a1018_0x1de7[_0x123113];return _0x1de7f8;};const a1018_0x17ce47=a1018_0x21fd;'use strict';const {db}=require('../../mysqldb'),logger=require(a1018_0x17ce47(0x13b))(a1018_0x17ce47(0x134)),companies=[{'id':0x1,'name':a1018_0x17ce47(0x139),'type':a1018_0x17ce47(0x137),'vat':a1018_0x17ce47(0x13c),'phone':a1018_0x17ce47(0x140),'fax':a1018_0x17ce47(0x141),'website':a1018_0x17ce47(0x138),'email':a1018_0x17ce47(0x145),'emailDomain':a1018_0x17ce47(0x144),'street':a1018_0x17ce47(0x13e),'postalCode':a1018_0x17ce47(0x133),'city':a1018_0x17ce47(0x135),'country':a1018_0x17ce47(0x146),'description':a1018_0x17ce47(0x136)}];exports[a1018_0x17ce47(0x13a)]=function(){const _0x309893=a1018_0x17ce47;return db[_0x309893(0x142)]['bulkCreate'](companies,{'ignoreDuplicates':!![],'individualHooks':!![]})['then'](function(){logger['info']('Companies\x20have\x20been\x20created');})[_0x309893(0x13d)](function(){const _0x592729=_0x309893;logger[_0x592729(0x13f)](_0x592729(0x143));});}; \ No newline at end of file diff --git a/server/config/seedDB/contacts.js b/server/config/seedDB/contacts.js index 55faa74..0e137b9 100644 --- a/server/config/seedDB/contacts.js +++ b/server/config/seedDB/contacts.js @@ -1 +1 @@ -const a857_0x252d=['CmContact','Mario','random','then','catch','floor','contact\x20auto\x20generated','456','../logger','giuseppe.verdi@xcally.com','Contacts\x20have\x20been\x20created','../../mysqldb','length','789','andrea.bianco@xcally.com','app','Bianco','error','mario.rossi@xcally.com','Giuseppe','info','Can\x27t\x20create\x20Contacts','Rossi'];(function(_0x78d9ee,_0x252d93){const _0x313fa9=function(_0x55ae02){while(--_0x55ae02){_0x78d9ee['push'](_0x78d9ee['shift']());}};_0x313fa9(++_0x252d93);}(a857_0x252d,0xaa));const a857_0x313f=function(_0x78d9ee,_0x252d93){_0x78d9ee=_0x78d9ee-0x0;let _0x313fa9=a857_0x252d[_0x78d9ee];return _0x313fa9;};const _0x144e3c=a857_0x313f;'use strict';const db=require(_0x144e3c('0x2'))['db'],logger=require(_0x144e3c('0x16'))(_0x144e3c('0x6')),tags=require('./tags')['getNames'](),getRandomTag=function(){const _0x49b34f=_0x144e3c,_0x55ae02=tags[_0x49b34f('0x3')]-0x1;return[tags[Math[_0x49b34f('0x13')](Math[_0x49b34f('0x10')]()*_0x55ae02)+0x1]];},contacts=[{'id':0x1,'firstName':_0x144e3c('0xf'),'lastName':_0x144e3c('0xd'),'phone':'123','email':_0x144e3c('0x9'),'ListId':0x1,'CompanyId':0x1,'tags':getRandomTag(),'description':_0x144e3c('0x14')},{'id':0x2,'firstName':_0x144e3c('0xa'),'lastName':'Verdi','phone':_0x144e3c('0x15'),'email':_0x144e3c('0x0'),'ListId':0x1,'CompanyId':0x1,'tags':getRandomTag(),'description':'contact\x20auto\x20generated'},{'id':0x3,'firstName':'Andrea','lastName':_0x144e3c('0x7'),'phone':_0x144e3c('0x4'),'email':_0x144e3c('0x5'),'ListId':0x2,'CompanyId':0x1,'tags':getRandomTag(),'description':_0x144e3c('0x14')}];exports['create']=function(){const _0x59b112=_0x144e3c;return db[_0x59b112('0xe')]['bulkCreate'](contacts,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x59b112('0x11')](function(){const _0x575fb7=_0x59b112;logger[_0x575fb7('0xb')](_0x575fb7('0x1'));})[_0x59b112('0x12')](function(){const _0x4fed3f=_0x59b112;logger[_0x4fed3f('0x8')](_0x4fed3f('0xc'));});}; \ No newline at end of file +const a1019_0x2284=['Giuseppe','bulkCreate','Rossi','error','floor','Can\x27t\x20create\x20Contacts','CmContact','app','create','mario.rossi@xcally.com','catch','Andrea','giuseppe.verdi@xcally.com','then','../logger','info','andrea.bianco@xcally.com','Contacts\x20have\x20been\x20created','getNames','Verdi','contact\x20auto\x20generated','123','456','Bianco'];(function(_0x2fdb52,_0x397a77){const _0x22848e=function(_0x5851a4){while(--_0x5851a4){_0x2fdb52['push'](_0x2fdb52['shift']());}};_0x22848e(++_0x397a77);}(a1019_0x2284,0x1c7));const a1019_0x5851=function(_0x2fdb52,_0x397a77){_0x2fdb52=_0x2fdb52-0x8f;let _0x22848e=a1019_0x2284[_0x2fdb52];return _0x22848e;};const a1019_0x2b790a=a1019_0x5851;'use strict';const {db}=require('../../mysqldb'),logger=require(a1019_0x2b790a(0x9e))(a1019_0x2b790a(0x97)),tags=require('./tags')[a1019_0x2b790a(0xa2)](),getRandomTag=function(){const _0x5d3199=a1019_0x2b790a,_0x18296c=tags['length']-0x1;return[tags[Math[_0x5d3199(0x94)](Math['random']()*_0x18296c)+0x1]];},contacts=[{'id':0x1,'firstName':'Mario','lastName':a1019_0x2b790a(0x92),'phone':a1019_0x2b790a(0xa5),'email':a1019_0x2b790a(0x99),'ListId':0x1,'CompanyId':0x1,'tags':getRandomTag(),'description':a1019_0x2b790a(0xa4)},{'id':0x2,'firstName':a1019_0x2b790a(0x90),'lastName':a1019_0x2b790a(0xa3),'phone':a1019_0x2b790a(0xa6),'email':a1019_0x2b790a(0x9c),'ListId':0x1,'CompanyId':0x1,'tags':getRandomTag(),'description':'contact\x20auto\x20generated'},{'id':0x3,'firstName':a1019_0x2b790a(0x9b),'lastName':a1019_0x2b790a(0x8f),'phone':'789','email':a1019_0x2b790a(0xa0),'ListId':0x2,'CompanyId':0x1,'tags':getRandomTag(),'description':'contact\x20auto\x20generated'}];exports[a1019_0x2b790a(0x98)]=function(){const _0x515ad5=a1019_0x2b790a;return db[_0x515ad5(0x96)][_0x515ad5(0x91)](contacts,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x515ad5(0x9d)](function(){const _0x31381d=_0x515ad5;logger[_0x31381d(0x9f)](_0x31381d(0xa1));})[_0x515ad5(0x9a)](function(){const _0x598b90=_0x515ad5;logger[_0x598b90(0x93)](_0x598b90(0x95));});}; \ No newline at end of file diff --git a/server/config/seedDB/dispositions.js b/server/config/seedDB/dispositions.js index b7ddbef..a7c2b82 100644 --- a/server/config/seedDB/dispositions.js +++ b/server/config/seedDB/dispositions.js @@ -1 +1 @@ -const a858_0x4be3=['catch','Answer\x20Machine','create','then','error','Interested','Disposition','info','Special','../../mysqldb','bulkCreate','Can\x27t\x20create\x20Companies','Dispositions\x20have\x20been\x20created','../logger'];(function(_0x3a36f4,_0x4be3cd){const _0x58365b=function(_0x90a655){while(--_0x90a655){_0x3a36f4['push'](_0x3a36f4['shift']());}};_0x58365b(++_0x4be3cd);}(a858_0x4be3,0x137));const a858_0x5836=function(_0x3a36f4,_0x4be3cd){_0x3a36f4=_0x3a36f4-0x0;let _0x58365b=a858_0x4be3[_0x3a36f4];return _0x58365b;};const _0x27fff2=a858_0x5836;'use strict';const db=require(_0x27fff2('0x6'))['db'],logger=require(_0x27fff2('0xa'))('app'),dispositions=[{'name':'Fax'},{'name':_0x27fff2('0xc')},{'name':_0x27fff2('0x2')},{'name':'Not\x20Interested'},{'name':'Sold'},{'name':_0x27fff2('0x5')}];exports[_0x27fff2('0xd')]=function(){const _0x35dbdd=_0x27fff2;return db[_0x35dbdd('0x3')][_0x35dbdd('0x7')](dispositions,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x35dbdd('0x0')](function(){const _0x33fc74=_0x35dbdd;logger[_0x33fc74('0x4')](_0x33fc74('0x9'));})[_0x35dbdd('0xb')](function(){const _0xfa464c=_0x35dbdd;logger[_0xfa464c('0x1')](_0xfa464c('0x8'));});}; \ No newline at end of file +const a1020_0xfb86=['../../mysqldb','create','bulkCreate','Not\x20Interested','catch','app','info','Dispositions\x20have\x20been\x20created','Sold','Answer\x20Machine','Disposition','Special','error','Fax','Interested'];(function(_0x3549c3,_0x15d8c6){const _0xfb8655=function(_0x3173bf){while(--_0x3173bf){_0x3549c3['push'](_0x3549c3['shift']());}};_0xfb8655(++_0x15d8c6);}(a1020_0xfb86,0x1b6));const a1020_0x3173=function(_0x3549c3,_0x15d8c6){_0x3549c3=_0x3549c3-0x7f;let _0xfb8655=a1020_0xfb86[_0x3549c3];return _0xfb8655;};const a1020_0xc1d3ce=a1020_0x3173;'use strict';const {db}=require(a1020_0xc1d3ce(0x8b)),logger=require('../logger')(a1020_0xc1d3ce(0x81)),dispositions=[{'name':a1020_0xc1d3ce(0x89)},{'name':a1020_0xc1d3ce(0x85)},{'name':a1020_0xc1d3ce(0x8a)},{'name':a1020_0xc1d3ce(0x7f)},{'name':a1020_0xc1d3ce(0x84)},{'name':a1020_0xc1d3ce(0x87)}];exports[a1020_0xc1d3ce(0x8c)]=function(){const _0x2fb138=a1020_0xc1d3ce;return db[_0x2fb138(0x86)][_0x2fb138(0x8d)](dispositions,{'ignoreDuplicates':!![],'individualHooks':!![]})['then'](function(){const _0x1de0cc=_0x2fb138;logger[_0x1de0cc(0x82)](_0x1de0cc(0x83));})[_0x2fb138(0x80)](function(){const _0xb60be5=_0x2fb138;logger[_0xb60be5(0x88)]('Can\x27t\x20create\x20Companies');});}; \ No newline at end of file diff --git a/server/config/seedDB/index.js b/server/config/seedDB/index.js index 51d9ee8..5212fdc 100644 --- a/server/config/seedDB/index.js +++ b/server/config/seedDB/index.js @@ -1 +1 @@ -const a859_0x523b=['error','./companies','create','./analyticReports','./trunks','Setting','./sounds','./voiceExtensions','./analyticTreeReports','./mailAccounts','stringify','./jscriptyProjects','./voiceQueues','app','./variables','./voiceContexts','default','./squareOdbc','./users','./chanspy','../logger','./squareProjects','createAlways','./teams','./contacts','Settings\x20have\x20been\x20created','./pauses','./mailSubstatuses','./migrations','./voiceMusicOnHold','findOrCreate','./tags','createDefault'];(function(_0x184fe2,_0x523b5e){const _0x3c0d5=function(_0x53af24){while(--_0x53af24){_0x184fe2['push'](_0x184fe2['shift']());}};_0x3c0d5(++_0x523b5e);}(a859_0x523b,0x1ad));const a859_0x3c0d=function(_0x184fe2,_0x523b5e){_0x184fe2=_0x184fe2-0x0;let _0x3c0d5=a859_0x523b[_0x184fe2];return _0x3c0d5;};const _0x39fc1f=a859_0x3c0d;'use strict';const db=require('../../mysqldb')['db'],logger=require(_0x39fc1f('0x14'))(_0x39fc1f('0xd'));async function defaultSeed(){const _0xcc49f7=_0x39fc1f;try{const [,_0x53af24]=await db[_0xcc49f7('0x5')][_0xcc49f7('0x1e')]({'where':{'id':0x1},'defaults':{'firstSetup':!![]}});_0x53af24?(logger['info'](_0xcc49f7('0x19')),await require(_0xcc49f7('0x8'))['createCustom'](),await require(_0xcc49f7('0x3'))['createCustom'](),await require(_0xcc49f7('0x1c'))[_0xcc49f7('0x2')](),await require('./intervals')[_0xcc49f7('0x2')](),await require('./userProfiles')[_0xcc49f7('0x2')](),await require(_0xcc49f7('0x12'))[_0xcc49f7('0x2')](),await require(_0xcc49f7('0x17'))[_0xcc49f7('0x2')](),await require(_0xcc49f7('0x4'))['create'](),await require(_0xcc49f7('0xc'))['create'](),await require(_0xcc49f7('0x13'))[_0xcc49f7('0x2')](),await require(_0xcc49f7('0x1d'))['create'](),await require(_0xcc49f7('0xe'))[_0xcc49f7('0x2')](),await require(_0xcc49f7('0x1a'))[_0xcc49f7('0x2')](),await require(_0xcc49f7('0x1f'))['create'](),await require(_0xcc49f7('0x1'))[_0xcc49f7('0x2')](),await require(_0xcc49f7('0x6'))[_0xcc49f7('0x2')](),await require(_0xcc49f7('0x11'))[_0xcc49f7('0x2')](),await require(_0xcc49f7('0x15'))[_0xcc49f7('0x2')](),await require(_0xcc49f7('0xb'))[_0xcc49f7('0x2')](),await require(_0xcc49f7('0x7'))[_0xcc49f7('0x2')](),await require(_0xcc49f7('0x1b'))['create'](),await require('./dispositions')[_0xcc49f7('0x2')](),await require('./lists')[_0xcc49f7('0x2')](),await require(_0xcc49f7('0x18'))[_0xcc49f7('0x2')]()):(await require(_0xcc49f7('0xf'))[_0xcc49f7('0x2')](),await require('./voiceExtensions')[_0xcc49f7('0x16')](),await require(_0xcc49f7('0x9'))[_0xcc49f7('0x2')](),await require(_0xcc49f7('0x8'))['createDefault'](),await require(_0xcc49f7('0x3'))[_0xcc49f7('0x20')]());}catch(_0x514400){logger[_0xcc49f7('0x0')]('Default\x20seed',JSON[_0xcc49f7('0xa')](_0x514400));}}exports[_0x39fc1f('0x10')]=defaultSeed; \ No newline at end of file +const a1021_0x3194=['./sounds','./userProfiles','Settings\x20have\x20been\x20created','findOrCreate','./variables','./mailSubstatuses','./trunks','./contacts','./voiceExtensions','./pauses','createCustom','createAlways','./chanspy','./companies','default','./voiceMusicOnHold','create','./squareOdbc','../logger','./jscriptyProjects','./analyticReports','./voiceContexts','./voiceQueues','Default\x20seed','./squareProjects','Setting','./migrations','info','./users','./analyticTreeReports','./intervals'];(function(_0x37bac4,_0x324e71){const _0x3194d7=function(_0x9a798c){while(--_0x9a798c){_0x37bac4['push'](_0x37bac4['shift']());}};_0x3194d7(++_0x324e71);}(a1021_0x3194,0xbf));const a1021_0x9a79=function(_0x37bac4,_0x324e71){_0x37bac4=_0x37bac4-0x1ce;let _0x3194d7=a1021_0x3194[_0x37bac4];return _0x3194d7;};const a1021_0x5048f0=a1021_0x9a79;'use strict';const {db}=require('../../mysqldb'),logger=require(a1021_0x5048f0(0x1db))('app');async function defaultSeed(){const _0x5d0093=a1021_0x5048f0;try{const [,_0x2179ac]=await db[_0x5d0093(0x1e2)][_0x5d0093(0x1eb)]({'where':{'id':0x1},'defaults':{'firstSetup':!![]}});_0x2179ac?(logger[_0x5d0093(0x1e4)](_0x5d0093(0x1ea)),await require(_0x5d0093(0x1e6))['createCustom'](),await require('./analyticReports')[_0x5d0093(0x1d3)](),await require(_0x5d0093(0x1e3))[_0x5d0093(0x1d9)](),await require(_0x5d0093(0x1e7))[_0x5d0093(0x1d9)](),await require(_0x5d0093(0x1e9))[_0x5d0093(0x1d9)](),await require(_0x5d0093(0x1e5))['create'](),await require('./teams')[_0x5d0093(0x1d9)](),await require(_0x5d0093(0x1cf))['create'](),await require(_0x5d0093(0x1d5))[_0x5d0093(0x1d9)](),await require(_0x5d0093(0x1d8))[_0x5d0093(0x1d9)](),await require(_0x5d0093(0x1ec))[_0x5d0093(0x1d9)](),await require(_0x5d0093(0x1d2))[_0x5d0093(0x1d9)](),await require('./tags')['create'](),await require(_0x5d0093(0x1d6))[_0x5d0093(0x1d9)](),await require(_0x5d0093(0x1e8))[_0x5d0093(0x1d9)](),await require(_0x5d0093(0x1da))[_0x5d0093(0x1d9)](),await require(_0x5d0093(0x1e1))[_0x5d0093(0x1d9)](),await require(_0x5d0093(0x1dc))['create'](),await require(_0x5d0093(0x1d1))[_0x5d0093(0x1d9)](),await require(_0x5d0093(0x1ce))[_0x5d0093(0x1d9)](),await require('./dispositions')[_0x5d0093(0x1d9)](),await require('./lists')[_0x5d0093(0x1d9)](),await require(_0x5d0093(0x1d0))[_0x5d0093(0x1d9)](),await require(_0x5d0093(0x1df))[_0x5d0093(0x1d9)]()):(await require(_0x5d0093(0x1de))[_0x5d0093(0x1d9)](),await require('./voiceExtensions')[_0x5d0093(0x1d4)](),await require('./mailAccounts')[_0x5d0093(0x1d9)](),await require(_0x5d0093(0x1e6))['createDefault'](),await require(_0x5d0093(0x1dd))['createDefault']());}catch(_0x2635f8){logger['error'](_0x5d0093(0x1e0),JSON['stringify'](_0x2635f8));}}exports[a1021_0x5048f0(0x1d7)]=defaultSeed; \ No newline at end of file diff --git a/server/config/seedDB/intervals.js b/server/config/seedDB/intervals.js index ec044e8..cb97dab 100644 --- a/server/config/seedDB/intervals.js +++ b/server/config/seedDB/intervals.js @@ -1 +1 @@ -const a860_0x1bb2=['WorkingTime','*,*,1,jan','09:00-13:00,mon-fri,*,*','*,*,25,dec','bulkCreate','*,*,14,feb','../../mysqldb','Christmas','filter','Can\x27t\x20create\x20Intevals','map','Afternoon','Holidays','findAll','flat','Halloween','working\x20time\x20auto\x20generated','Interval','Valentines','14:00-18:00,mon-fri,*,*','app','Intervals\x20have\x20been\x20created','NewYear','*,*,31,oct'];(function(_0x1b89e6,_0x1bb28b){const _0x14b04e=function(_0x20f70a){while(--_0x20f70a){_0x1b89e6['push'](_0x1b89e6['shift']());}};_0x14b04e(++_0x1bb28b);}(a860_0x1bb2,0x144));const a860_0x14b0=function(_0x1b89e6,_0x1bb28b){_0x1b89e6=_0x1b89e6-0x0;let _0x14b04e=a860_0x1bb2[_0x1b89e6];return _0x14b04e;};const _0x4add51=a860_0x14b0;'use strict';const db=require(_0x4add51('0x12'))['db'],logger=require('../logger')(_0x4add51('0x8')),subIntervals={'WorkingTime':[{'name':'Morning','interval':_0x4add51('0xe')},{'name':_0x4add51('0x17'),'interval':_0x4add51('0x7')}],'Holidays':[{'name':_0x4add51('0x13'),'interval':_0x4add51('0xf')},{'name':_0x4add51('0xa'),'interval':_0x4add51('0xd')},{'name':_0x4add51('0x6'),'interval':_0x4add51('0x11')},{'name':_0x4add51('0x3'),'interval':_0x4add51('0xb')}]},intervals=[{'id':0x1,'name':_0x4add51('0xc'),'description':_0x4add51('0x4')},{'id':0x2,'name':_0x4add51('0x0'),'description':_0x4add51('0x4')}];async function create(){const _0x4079f5=_0x4add51;try{await db[_0x4079f5('0x5')][_0x4079f5('0x10')](intervals,{'ignoreDuplicates':!![],'individualHooks':!![]});const _0x20f70a=await db[_0x4079f5('0x5')][_0x4079f5('0x1')](),_0x32311b=_0x20f70a[_0x4079f5('0x16')](_0x2eae58=>{const _0x16bc44=_0x4079f5,_0x4aa512=subIntervals[_0x2eae58['name']];return Array['isArray'](_0x4aa512)?_0x4aa512[_0x16bc44('0x16')](_0x3a312b=>{const {description:_0x52a2c0,id:_0x15d4b5}=_0x2eae58;return{'description':_0x52a2c0,'IntervalId':_0x15d4b5,..._0x3a312b};}):null;})[_0x4079f5('0x14')](_0x24576b=>_0x24576b!==null)[_0x4079f5('0x2')]();await db[_0x4079f5('0x5')]['bulkCreate'](_0x32311b,{'ignoreDuplicates':!![],'individualHooks':!![]}),logger['info'](_0x4079f5('0x9'));}catch(_0x917c99){logger['error'](_0x4079f5('0x15'),_0x917c99);throw _0x917c99;}}module['exports']={'create':create}; \ No newline at end of file +const a1022_0x2d8b=['WorkingTime','exports','Holidays','*,*,1,jan','Morning','error','Valentines','Christmas','*,*,25,dec','Interval','Can\x27t\x20create\x20Intevals','findAll','bulkCreate','Intervals\x20have\x20been\x20created','*,*,14,feb','NewYear','filter','working\x20time\x20auto\x20generated','Halloween','app','../../mysqldb','../logger','Afternoon','isArray','map','create'];(function(_0x4e9784,_0x30bea3){const _0x2d8b3b=function(_0x4ffe52){while(--_0x4ffe52){_0x4e9784['push'](_0x4e9784['shift']());}};_0x2d8b3b(++_0x30bea3);}(a1022_0x2d8b,0x1ae));const a1022_0x4ffe=function(_0x4e9784,_0x30bea3){_0x4e9784=_0x4e9784-0x156;let _0x2d8b3b=a1022_0x2d8b[_0x4e9784];return _0x2d8b3b;};const a1022_0x597189=a1022_0x4ffe;'use strict';const {db}=require(a1022_0x597189(0x15c)),logger=require(a1022_0x597189(0x15d))(a1022_0x597189(0x15b)),subIntervals={'WorkingTime':[{'name':a1022_0x597189(0x166),'interval':'09:00-13:00,mon-fri,*,*'},{'name':a1022_0x597189(0x15e),'interval':'14:00-18:00,mon-fri,*,*'}],'Holidays':[{'name':a1022_0x597189(0x169),'interval':a1022_0x597189(0x16a)},{'name':a1022_0x597189(0x157),'interval':a1022_0x597189(0x165)},{'name':a1022_0x597189(0x168),'interval':a1022_0x597189(0x156)},{'name':a1022_0x597189(0x15a),'interval':'*,*,31,oct'}]},intervals=[{'id':0x1,'name':a1022_0x597189(0x162),'description':a1022_0x597189(0x159)},{'id':0x2,'name':a1022_0x597189(0x164),'description':a1022_0x597189(0x159)}];async function create(){const _0x30a342=a1022_0x597189;try{await db[_0x30a342(0x16b)][_0x30a342(0x16e)](intervals,{'ignoreDuplicates':!![],'individualHooks':!![]});const _0x5767f7=await db[_0x30a342(0x16b)][_0x30a342(0x16d)](),_0x1bd633=_0x5767f7[_0x30a342(0x160)](_0x2f0bda=>{const _0x3ef404=_0x30a342,_0x3f484e=subIntervals[_0x2f0bda['name']];return Array[_0x3ef404(0x15f)](_0x3f484e)?_0x3f484e[_0x3ef404(0x160)](_0x47d4f7=>{const {description:_0x449f5a,id:_0x51b5b0}=_0x2f0bda;return{'description':_0x449f5a,'IntervalId':_0x51b5b0,..._0x47d4f7};}):null;})[_0x30a342(0x158)](_0xf8a62=>_0xf8a62!==null)['flat']();await db[_0x30a342(0x16b)][_0x30a342(0x16e)](_0x1bd633,{'ignoreDuplicates':!![],'individualHooks':!![]}),logger['info'](_0x30a342(0x16f));}catch(_0x1f12ae){logger[_0x30a342(0x167)](_0x30a342(0x16c),_0x1f12ae);throw _0x1f12ae;}}module[a1022_0x597189(0x163)][a1022_0x597189(0x161)]=create; \ No newline at end of file diff --git a/server/config/seedDB/jscriptyProjects.js b/server/config/seedDB/jscriptyProjects.js index 0b118b5..2f5614d 100644 --- a/server/config/seedDB/jscriptyProjects.js +++ b/server/config/seedDB/jscriptyProjects.js @@ -1 +1 @@ -const a861_0x14da=['join','customerSatisfation','../../mysqldb','create','catch','info','../logger','JscriptyProject','utf-8','Jscripty\x20Projects\x20have\x20been\x20created','jscripty','readFileSync','CustomerSatisfaction','then','app'];(function(_0xf7b903,_0x14da9b){const _0x16a645=function(_0x3aff62){while(--_0x3aff62){_0xf7b903['push'](_0xf7b903['shift']());}};_0x16a645(++_0x14da9b);}(a861_0x14da,0x106));const a861_0x16a6=function(_0xf7b903,_0x14da9b){_0xf7b903=_0xf7b903-0x0;let _0x16a645=a861_0x14da[_0xf7b903];return _0x16a645;};const _0x1f656a=a861_0x16a6;'use strict';const fs=require('fs'),path=require('path'),db=require(_0x1f656a('0xa'))['db'],logger=require(_0x1f656a('0xe'))(_0x1f656a('0x7')),getJson=function(_0x3aff62){const _0x483491=_0x1f656a;return fs[_0x483491('0x4')](path[_0x483491('0x8')](__dirname,_0x483491('0x3'),_0x3aff62+'.json'),{'encoding':_0x483491('0x1')});},jscriptyProjects=[{'id':0x1,'name':_0x1f656a('0x5'),'description':'Customer\x20Satisfaction\x20auto\x20generated','formData':getJson(_0x1f656a('0x9'))}];exports[_0x1f656a('0xb')]=function(){const _0xa8a4e7=_0x1f656a;return db[_0xa8a4e7('0x0')]['bulkCreate'](jscriptyProjects,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0xa8a4e7('0x6')](function(){const _0x38bd43=_0xa8a4e7;logger[_0x38bd43('0xd')](_0x38bd43('0x2'));})[_0xa8a4e7('0xc')](function(){logger['error']('Can\x27t\x20create\x20Jscripty\x20Projects');});}; \ No newline at end of file +const a1023_0x566c=['then','create','utf-8','info','../../mysqldb','Can\x27t\x20create\x20Jscripty\x20Projects','app','readFileSync','Customer\x20Satisfaction\x20auto\x20generated','catch','bulkCreate','join','customerSatisfation','path','jscripty','.json','Jscripty\x20Projects\x20have\x20been\x20created','../logger','JscriptyProject'];(function(_0x47001a,_0x4e7003){const _0x566c75=function(_0x3e36f2){while(--_0x3e36f2){_0x47001a['push'](_0x47001a['shift']());}};_0x566c75(++_0x4e7003);}(a1023_0x566c,0x11f));const a1023_0x3e36=function(_0x47001a,_0x4e7003){_0x47001a=_0x47001a-0x1e2;let _0x566c75=a1023_0x566c[_0x47001a];return _0x566c75;};const a1023_0x42a1bb=a1023_0x3e36;'use strict';const fs=require('fs'),path=require(a1023_0x42a1bb(0x1ed)),{db}=require(a1023_0x42a1bb(0x1e4)),logger=require(a1023_0x42a1bb(0x1f1))(a1023_0x42a1bb(0x1e6)),getJson=function(_0x2e12cc){const _0x33cdbb=a1023_0x42a1bb;return fs[_0x33cdbb(0x1e7)](path[_0x33cdbb(0x1eb)](__dirname,_0x33cdbb(0x1ee),_0x2e12cc+_0x33cdbb(0x1ef)),{'encoding':_0x33cdbb(0x1e2)});},jscriptyProjects=[{'id':0x1,'name':'CustomerSatisfaction','description':a1023_0x42a1bb(0x1e8),'formData':getJson(a1023_0x42a1bb(0x1ec))}];exports[a1023_0x42a1bb(0x1f4)]=function(){const _0xe28477=a1023_0x42a1bb;return db[_0xe28477(0x1f2)][_0xe28477(0x1ea)](jscriptyProjects,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0xe28477(0x1f3)](function(){const _0x21a01f=_0xe28477;logger[_0x21a01f(0x1e3)](_0x21a01f(0x1f0));})[_0xe28477(0x1e9)](function(){const _0x293336=_0xe28477;logger['error'](_0x293336(0x1e5));});}; \ No newline at end of file diff --git a/server/config/seedDB/lists.js b/server/config/seedDB/lists.js index 1e348da..e0a743e 100644 --- a/server/config/seedDB/lists.js +++ b/server/config/seedDB/lists.js @@ -1 +1 @@ -const a862_0x1e99=['Callback\x20List','black\x20list\x20auto\x20generated','info','error','Public\x20List','create','public\x20list\x20auto\x20generated','then','../logger','catch','Lists\x20have\x20been\x20created','app','CmList','Callback\x20list\x20auto\x20generated'];(function(_0x52c990,_0x1e99f5){const _0x4a881c=function(_0x4e9723){while(--_0x4e9723){_0x52c990['push'](_0x52c990['shift']());}};_0x4a881c(++_0x1e99f5);}(a862_0x1e99,0x1c9));const a862_0x4a88=function(_0x52c990,_0x1e99f5){_0x52c990=_0x52c990-0x0;let _0x4a881c=a862_0x1e99[_0x52c990];return _0x4a881c;};const _0x486554=a862_0x4a88;'use strict';const db=require('../../mysqldb')['db'],logger=require(_0x486554('0xd'))(_0x486554('0x2')),lists=[{'id':0x1,'name':_0x486554('0x9'),'description':_0x486554('0xb')},{'id':0x2,'name':'Black\x20List','description':_0x486554('0x6')},{'id':0x3,'name':_0x486554('0x5'),'description':_0x486554('0x4')}];exports[_0x486554('0xa')]=function(){const _0xb6052e=_0x486554;return db[_0xb6052e('0x3')]['bulkCreate'](lists,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0xb6052e('0xc')](function(){const _0x2fb863=_0xb6052e;logger[_0x2fb863('0x7')](_0x2fb863('0x1'));})[_0xb6052e('0x0')](function(){const _0x364e37=_0xb6052e;logger[_0x364e37('0x8')]('Can\x27t\x20create\x20Lists');});}; \ No newline at end of file +const a1024_0x552f=['create','then','black\x20list\x20auto\x20generated','CmList','Black\x20List','Callback\x20list\x20auto\x20generated','error','../../mysqldb','Callback\x20List','bulkCreate','Public\x20List','public\x20list\x20auto\x20generated','Lists\x20have\x20been\x20created'];(function(_0x99bd9c,_0x4b78e8){const _0x552fa9=function(_0x50d21e){while(--_0x50d21e){_0x99bd9c['push'](_0x99bd9c['shift']());}};_0x552fa9(++_0x4b78e8);}(a1024_0x552f,0xb7));const a1024_0x50d2=function(_0x99bd9c,_0x4b78e8){_0x99bd9c=_0x99bd9c-0xb9;let _0x552fa9=a1024_0x552f[_0x99bd9c];return _0x552fa9;};const a1024_0x4b0975=a1024_0x50d2;'use strict';const {db}=require(a1024_0x4b0975(0xbf)),logger=require('../logger')('app'),lists=[{'id':0x1,'name':a1024_0x4b0975(0xc2),'description':a1024_0x4b0975(0xc3)},{'id':0x2,'name':a1024_0x4b0975(0xbc),'description':a1024_0x4b0975(0xba)},{'id':0x3,'name':a1024_0x4b0975(0xc0),'description':a1024_0x4b0975(0xbd)}];exports[a1024_0x4b0975(0xc5)]=function(){const _0x1b3e31=a1024_0x4b0975;return db[_0x1b3e31(0xbb)][_0x1b3e31(0xc1)](lists,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x1b3e31(0xb9)](function(){const _0x51951f=_0x1b3e31;logger['info'](_0x51951f(0xc4));})['catch'](function(){const _0x520447=_0x1b3e31;logger[_0x520447(0xbe)]('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 c5ba5ec..f0e6a3c 100644 --- a/server/config/seedDB/mailAccounts.js +++ b/server/config/seedDB/mailAccounts.js @@ -1 +1 @@ -const a863_0x5c8d=['../../mysqldb','MailAccount','service\x20motion\x20smtp\x20auto\x20generated','username','info','create','MailServerOut','127.0.0.1','MailServerIn','Can\x27t\x20create\x20Mail\x20Accounts','findOrCreate','password','app','then','service\x20motion\x20imap\x20auto\x20generated','Service\x20Mail'];(function(_0x6cc83a,_0x5c8d74){const _0x232647=function(_0x14deea){while(--_0x14deea){_0x6cc83a['push'](_0x6cc83a['shift']());}};_0x232647(++_0x5c8d74);}(a863_0x5c8d,0xd5));const a863_0x2326=function(_0x6cc83a,_0x5c8d74){_0x6cc83a=_0x6cc83a-0x0;let _0x232647=a863_0x5c8d[_0x6cc83a];return _0x232647;};const _0x4a0b39=a863_0x2326;'use strict';const db=require(_0x4a0b39('0xb'))['db'],logger=require('../logger')(_0x4a0b39('0x7'));exports[_0x4a0b39('0x0')]=function(){const _0x21f259=_0x4a0b39;let _0x14deea;return db[_0x21f259('0xc')]['findOrCreate']({'where':{'service':!![]},'defaults':{'name':_0x21f259('0xa'),'key':'SERV','email':'email@xcally.com','service':!![],'description':'service\x20motion\x20account\x20auto\x20generated','active':![],'ListId':0x1}})[_0x21f259('0x8')](function([_0x2b2844,_0x2d5fa4]){const _0xcbb160=_0x21f259;return _0x2d5fa4&&logger[_0xcbb160('0xf')]('service\x20motion\x20account\x20auto\x20generated'),_0x14deea=_0x2b2844,db[_0xcbb160('0x1')][_0xcbb160('0x5')]({'where':{'MailAccountId':_0x14deea['id']},'defaults':{'host':_0xcbb160('0x2'),'user':_0xcbb160('0xe'),'pass':_0xcbb160('0x6'),'port':0x19,'secure':![],'authentication':![],'MailAccountId':_0x14deea['id'],'description':_0xcbb160('0xd')}});})['then'](function([,_0x48e49d]){const _0x1106eb=_0x21f259;return _0x48e49d&&logger[_0x1106eb('0xf')](_0x1106eb('0xd')),db[_0x1106eb('0x3')][_0x1106eb('0x5')]({'where':{'MailAccountId':_0x14deea['id']},'defaults':{'host':_0x1106eb('0x2'),'user':_0x1106eb('0xe'),'password':_0x1106eb('0x6'),'port':0x3e1,'MailAccountId':_0x14deea['id'],'description':_0x1106eb('0x9')}});})[_0x21f259('0x8')](function([,_0x32dc4f]){const _0x325a23=_0x21f259;_0x32dc4f&&logger[_0x325a23('0xf')](_0x325a23('0x9'));})['catch'](function(){const _0x19dae5=_0x21f259;logger['error'](_0x19dae5('0x4'));});}; \ No newline at end of file +const a1025_0x4310=['service\x20motion\x20imap\x20auto\x20generated','email@xcally.com','MailServerOut','then','Can\x27t\x20create\x20Mail\x20Accounts','MailAccount','create','password','info','../../mysqldb','catch','../logger','service\x20motion\x20account\x20auto\x20generated','service\x20motion\x20smtp\x20auto\x20generated','findOrCreate','MailServerIn','SERV','username','127.0.0.1','Service\x20Mail'];(function(_0x58094f,_0x244d0c){const _0x4310fc=function(_0x30977d){while(--_0x30977d){_0x58094f['push'](_0x58094f['shift']());}};_0x4310fc(++_0x244d0c);}(a1025_0x4310,0x113));const a1025_0x3097=function(_0x58094f,_0x244d0c){_0x58094f=_0x58094f-0x133;let _0x4310fc=a1025_0x4310[_0x58094f];return _0x4310fc;};const a1025_0x4cff09=a1025_0x3097;'use strict';const {db}=require(a1025_0x4cff09(0x141)),logger=require(a1025_0x4cff09(0x143))('app');exports[a1025_0x4cff09(0x13e)]=function(){const _0x308400=a1025_0x4cff09;let _0x3ac076;return db[_0x308400(0x13d)][_0x308400(0x146)]({'where':{'service':!![]},'defaults':{'name':_0x308400(0x137),'key':_0x308400(0x134),'email':_0x308400(0x139),'service':!![],'description':'service\x20motion\x20account\x20auto\x20generated','active':![],'ListId':0x1}})[_0x308400(0x13b)](function([_0x3d1a8b,_0x8fe57e]){const _0x138883=_0x308400;return _0x8fe57e&&logger[_0x138883(0x140)](_0x138883(0x144)),_0x3ac076=_0x3d1a8b,db[_0x138883(0x13a)][_0x138883(0x146)]({'where':{'MailAccountId':_0x3ac076['id']},'defaults':{'host':'127.0.0.1','user':'username','pass':_0x138883(0x13f),'port':0x19,'secure':![],'authentication':![],'MailAccountId':_0x3ac076['id'],'description':_0x138883(0x145)}});})[_0x308400(0x13b)](function([,_0x23cf5d]){const _0x146783=_0x308400;return _0x23cf5d&&logger[_0x146783(0x140)](_0x146783(0x145)),db[_0x146783(0x133)][_0x146783(0x146)]({'where':{'MailAccountId':_0x3ac076['id']},'defaults':{'host':_0x146783(0x136),'user':_0x146783(0x135),'password':_0x146783(0x13f),'port':0x3e1,'MailAccountId':_0x3ac076['id'],'description':_0x146783(0x138)}});})['then'](function([,_0x37cf6f]){const _0x271489=_0x308400;_0x37cf6f&&logger[_0x271489(0x140)](_0x271489(0x138));})[_0x308400(0x142)](function(){const _0x4b26b6=_0x308400;logger['error'](_0x4b26b6(0x13c));});}; \ No newline at end of file diff --git a/server/config/seedDB/mailSubstatuses.js b/server/config/seedDB/mailSubstatuses.js index 1bcd964..415a63c 100644 --- a/server/config/seedDB/mailSubstatuses.js +++ b/server/config/seedDB/mailSubstatuses.js @@ -1 +1 @@ -const a864_0x2828=['Substatues\x20have\x20been\x20created','catch','app','bulkCreate','../logger','Can\x27t\x20create\x20MailSubstatuses','then','Pending\x20status\x20for\x20mail\x20interaction'];(function(_0x267c9a,_0x28289d){const _0x564ef3=function(_0x48ed0d){while(--_0x48ed0d){_0x267c9a['push'](_0x267c9a['shift']());}};_0x564ef3(++_0x28289d);}(a864_0x2828,0xd1));const a864_0x564e=function(_0x267c9a,_0x28289d){_0x267c9a=_0x267c9a-0x0;let _0x564ef3=a864_0x2828[_0x267c9a];return _0x564ef3;};const _0x434c6e=a864_0x564e;'use strict';const db=require('../../mysqldb')['db'],logger=require(_0x434c6e('0x3'))(_0x434c6e('0x1')),items=[{'id':0x1,'name':'pending','description':_0x434c6e('0x6')}];exports['create']=function(){const _0xb27b0=_0x434c6e;return db['MailSubstatus'][_0xb27b0('0x2')](items,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0xb27b0('0x5')](function(){const _0x3dab1f=_0xb27b0;logger['info'](_0x3dab1f('0x7'));})[_0xb27b0('0x0')](function(){const _0x3b3935=_0xb27b0;logger['error'](_0x3b3935('0x4'));});}; \ No newline at end of file +const a1026_0x2de3=['pending','catch','Substatues\x20have\x20been\x20created','info','then','../logger','error','Can\x27t\x20create\x20MailSubstatuses','bulkCreate','Pending\x20status\x20for\x20mail\x20interaction','../../mysqldb','app'];(function(_0x3fc8bc,_0x4b0eb6){const _0x2de33d=function(_0x31e6fa){while(--_0x31e6fa){_0x3fc8bc['push'](_0x3fc8bc['shift']());}};_0x2de33d(++_0x4b0eb6);}(a1026_0x2de3,0x192));const a1026_0x31e6=function(_0x3fc8bc,_0x4b0eb6){_0x3fc8bc=_0x3fc8bc-0x159;let _0x2de33d=a1026_0x2de3[_0x3fc8bc];return _0x2de33d;};const a1026_0x44f62b=a1026_0x31e6;'use strict';const {db}=require(a1026_0x44f62b(0x15d)),logger=require(a1026_0x44f62b(0x164))(a1026_0x44f62b(0x15e)),items=[{'id':0x1,'name':a1026_0x44f62b(0x15f),'description':a1026_0x44f62b(0x15c)}];exports['create']=function(){const _0x56a0e6=a1026_0x44f62b;return db['MailSubstatus'][_0x56a0e6(0x15b)](items,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x56a0e6(0x163)](function(){const _0x1f33df=_0x56a0e6;logger[_0x1f33df(0x162)](_0x1f33df(0x161));})[_0x56a0e6(0x160)](function(){const _0x1adb69=_0x56a0e6;logger[_0x1adb69(0x159)](_0x1adb69(0x15a));});}; \ No newline at end of file diff --git a/server/config/seedDB/migrations.js b/server/config/seedDB/migrations.js index f497b00..c1dda05 100644 --- a/server/config/seedDB/migrations.js +++ b/server/config/seedDB/migrations.js @@ -1 +1 @@ -const a865_0x4135=['create','Version\x20have\x20been\x20created','then','error','.js','catch','../logger','../../../package.json','app','info','../../mysqldb'];(function(_0x569ac9,_0x413568){const _0x478876=function(_0x196ace){while(--_0x196ace){_0x569ac9['push'](_0x569ac9['shift']());}};_0x478876(++_0x413568);}(a865_0x4135,0x1b7));const a865_0x4788=function(_0x569ac9,_0x413568){_0x569ac9=_0x569ac9-0x0;let _0x478876=a865_0x4135[_0x569ac9];return _0x478876;};const _0x440456=a865_0x4788;'use strict';const db=require(_0x440456('0x0'))['db'],logger=require(_0x440456('0x7'))(_0x440456('0x9')),{version:packageVersion}=require(_0x440456('0x8'));exports[_0x440456('0x1')]=function(){const _0x4f84f1=_0x440456;return db['Migration'][_0x4f84f1('0x1')]({'version':packageVersion+_0x4f84f1('0x5')})[_0x4f84f1('0x3')](function(){const _0xa28559=_0x4f84f1;logger[_0xa28559('0xa')](_0xa28559('0x2'));})[_0x4f84f1('0x6')](function(){const _0x200aa7=_0x4f84f1;logger[_0x200aa7('0x4')]('Can\x27t\x20create\x20Version');});}; \ No newline at end of file +const a1027_0x3460=['app','then','info','../../mysqldb','../logger','Version\x20have\x20been\x20created','Can\x27t\x20create\x20Version','../../../package.json','create','Migration'];(function(_0x403808,_0x47312c){const _0x3460f2=function(_0x15ac45){while(--_0x15ac45){_0x403808['push'](_0x403808['shift']());}};_0x3460f2(++_0x47312c);}(a1027_0x3460,0x1ea));const a1027_0x15ac=function(_0x403808,_0x47312c){_0x403808=_0x403808-0x151;let _0x3460f2=a1027_0x3460[_0x403808];return _0x3460f2;};const a1027_0x35068b=a1027_0x15ac;'use strict';const {db}=require(a1027_0x35068b(0x154)),logger=require(a1027_0x35068b(0x155))(a1027_0x35068b(0x151)),{version:packageVersion}=require(a1027_0x35068b(0x158));exports[a1027_0x35068b(0x159)]=function(){const _0x4d9289=a1027_0x35068b;return db[_0x4d9289(0x15a)][_0x4d9289(0x159)]({'version':packageVersion+'.js'})[_0x4d9289(0x152)](function(){const _0x17a216=_0x4d9289;logger[_0x17a216(0x153)](_0x17a216(0x156));})['catch'](function(){const _0x465dbc=_0x4d9289;logger['error'](_0x465dbc(0x157));});}; \ No newline at end of file diff --git a/server/config/seedDB/pauses.js b/server/config/seedDB/pauses.js index b9b7cd8..1ec5825 100644 --- a/server/config/seedDB/pauses.js +++ b/server/config/seedDB/pauses.js @@ -1 +1 @@ -const a866_0x4959=['info','then','Pause','../logger','create','aftercall\x20pause\x20auto\x20generated','Pauses\x20have\x20been\x20created','../../mysqldb','AFTERCALL','app','BACKOFFICE','catch'];(function(_0x5ba14d,_0x4959af){const _0x473438=function(_0x3a2b69){while(--_0x3a2b69){_0x5ba14d['push'](_0x5ba14d['shift']());}};_0x473438(++_0x4959af);}(a866_0x4959,0xdc));const a866_0x4734=function(_0x5ba14d,_0x4959af){_0x5ba14d=_0x5ba14d-0x0;let _0x473438=a866_0x4959[_0x5ba14d];return _0x473438;};const _0x3a2a6a=a866_0x4734;'use strict';const db=require(_0x3a2a6a('0x3'))['db'],logger=require(_0x3a2a6a('0xb'))(_0x3a2a6a('0x5')),pauses=[{'id':0x1,'name':_0x3a2a6a('0x6'),'description':'backoffice\x20pause\x20auto\x20generated'},{'id':0x2,'name':_0x3a2a6a('0x4'),'description':_0x3a2a6a('0x1')}];exports[_0x3a2a6a('0x0')]=function(){const _0x1d11c4=_0x3a2a6a;return db[_0x1d11c4('0xa')]['bulkCreate'](pauses,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x1d11c4('0x9')](function(){const _0x8d3e2a=_0x1d11c4;logger[_0x8d3e2a('0x8')](_0x8d3e2a('0x2'));})[_0x1d11c4('0x7')](function(){logger['error']('Can\x27t\x20create\x20Pauses');});}; \ No newline at end of file +const a1028_0x31e2=['aftercall\x20pause\x20auto\x20generated','../../mysqldb','BACKOFFICE','app','bulkCreate','Pauses\x20have\x20been\x20created','then','error','../logger','create','catch'];(function(_0x472cd3,_0x508f8c){const _0x31e228=function(_0x476c42){while(--_0x476c42){_0x472cd3['push'](_0x472cd3['shift']());}};_0x31e228(++_0x508f8c);}(a1028_0x31e2,0x189));const a1028_0x476c=function(_0x472cd3,_0x508f8c){_0x472cd3=_0x472cd3-0x9a;let _0x31e228=a1028_0x31e2[_0x472cd3];return _0x31e228;};const a1028_0x29eefe=a1028_0x476c;'use strict';const {db}=require(a1028_0x29eefe(0x9e)),logger=require(a1028_0x29eefe(0x9a))(a1028_0x29eefe(0xa0)),pauses=[{'id':0x1,'name':a1028_0x29eefe(0x9f),'description':'backoffice\x20pause\x20auto\x20generated'},{'id':0x2,'name':'AFTERCALL','description':a1028_0x29eefe(0x9d)}];exports[a1028_0x29eefe(0x9b)]=function(){const _0x9a2e07=a1028_0x29eefe;return db['Pause'][_0x9a2e07(0xa1)](pauses,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x9a2e07(0xa3)](function(){const _0x3773cc=_0x9a2e07;logger['info'](_0x3773cc(0xa2));})[_0x9a2e07(0x9c)](function(){const _0x379a79=_0x9a2e07;logger[_0x379a79(0xa4)]('Can\x27t\x20create\x20Pauses');});}; \ No newline at end of file diff --git a/server/config/seedDB/report/default.js b/server/config/seedDB/report/default.js index bf4f2b3..f3b4645 100644 --- a/server/config/seedDB/report/default.js +++ b/server/config/seedDB/report/default.js @@ -1 +1 @@ -var a867_0x21f9=['report_whatsapp_queue','List\x20Penetration\x20Rate','Email\x20interactions\x20by\x20queue','report_mail_queue','WhatsApp\x20interactions\x20by\x20agent','[{\x22parentKey\x22:\x22OpenchannelQueueId\x22,\x22foreignTable\x22:\x22openchannel_queues\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','Email\x20Account\x20Times','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22mail_interactions.closed\x22,\x22value\x22:\x221\x22},{\x22group\x22:{\x22operator\x22:\x22OR\x22,\x22rules\x22:[{\x22condition\x22:\x22!=\x22,\x22field\x22:\x22mail_interactions.disposition\x22,\x22value\x22:\x22\x27unmanaged\x27\x22},{\x22condition\x22:\x22IS\x20NULL\x22,\x22field\x22:\x22mail_interactions.disposition\x22,\x22value\x22:\x22\x22}]}}]}}','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22sms_interactions.closed\x22,\x22value\x22:\x221\x22}]}}','openchannel_interactions','sms_interactions','Campaign\x20Calls','_voice_agents','_sms','[{\x22parentKey\x22:\x22SmsAccountId\x22,\x22foreignTable\x22:\x22sms_accounts\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','[{\x22parentKey\x22:\x22MailAccountId\x22,\x22foreignTable\x22:\x22mail_accounts\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','Agents\x20status\x20details','Answer\x20time\x20\x20by\x20hour','Openchannel\x20By\x20Queue','Calls\x20distribution\x20by\x20day\x20of\x20the\x20week','Agent\x20Calls','_chat','{\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:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22whatsapp_interactions.closed\x22,\x22value\x22:\x221\x22}]}}','Chat\x20By\x20Date','Sms\x20interaction\x20times\x20by\x20account','Fax\x20interactions\x20by\x20account','Agent\x20calls\x20timer\x20Handle\x20time=\x20talk\x20time\x20+\x20ACW\x20time','Records\x20rating\x20by\x20agent','mail_interactions','_voice_callysquare','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22openchannel_interactions.closed\x22,\x22value\x22:\x221\x22},{\x22group\x22:{\x22operator\x22:\x22OR\x22,\x22rules\x22:[{\x22condition\x22:\x22!=\x22,\x22field\x22:\x22openchannel_interactions.disposition\x22,\x22value\x22:\x22\x27unmanaged\x27\x22},{\x22condition\x22:\x22IS\x20NULL\x22,\x22field\x22:\x22openchannel_interactions.disposition\x22,\x22value\x22:\x22\x22}]}}]}}','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22agentcomplete\x22,\x22value\x22:\x221\x22,\x22required\x22:true}]}}','Website\x20Summary','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22queuecallercomplete\x22,\x22value\x22:\x220\x22,\x22required\x22:true}]}}','_voice_queues_unanswered','Rating\x20by\x20Agent','Calls\x20distribution\x20by\x20hour','Login\x20Time','Email\x20interactions\x20by\x20agent','_bull_ivr_campaigns','Sms\x20interactions\x20by\x20date','[{\x22parentKey\x22:\x22ChatWebsiteId\x22,\x22foreignTable\x22:\x22chat_websites\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','Sentiment\x20by\x20Agent','Unanswered\x20by\x20Queue','[{\x22parentKey\x22:\x22SmsQueueId\x22,\x22foreignTable\x22:\x22sms_queues\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','Calls\x20by\x20Day','Fax\x20interactions\x20by\x20date','Summary\x20of\x20the\x20calls\x20disconnection\x20causes','report_call','report_agent','Disposition\x20Rate','{\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}]}}]}}','Summary\x20of\x20outbound\x20calls\x20grouped\x20by\x20date','Calls\x20by\x20Agent','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[]}}','Outbound\x20calls\x20grouped\x20by\x20disposition','report_queue','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22chat_interactions.closed\x22,\x22value\x22:\x221\x22}]}}','Calls\x20distribution\x20by\x20day\x20of\x20the\x20month','Calls\x20by\x20Queue','Blocks','_voice_queues','Fax\x20By\x20Agent','[{\x22parentKey\x22:\x22MailQueueId\x22,\x22foreignTable\x22:\x22mail_queues\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','Queue\x20timer\x20Handle\x20Time=\x20Talk\x20Time\x20+\x20AVG\x20TIme','WhatsApp\x20interactions\x20by\x20account','Simple\x20queue\x20calls\x20overview','report_sms_queue','{\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}]}}]}}','Openchannel\x20Account\x20Summary','whatsapp_interactions','Fax\x20interaction\x20times\x20by\x20account','Calls\x20Summary','Calls\x20Result','{\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}]}}','Unanswered\x20calls\x20summary\x20by\x20queue','Calls\x20by\x20Date','Sms\x20By\x20Date','Details','_voice_queues_distribution','Calls\x20detail\x20(cdr)','[{\x22parentKey\x22:\x22OpenchannelAccountId\x22,\x22foreignTable\x22:\x22openchannel_accounts\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','_voice_calls','_agents','Agent\x27s\x20login\x20time','_openchannel','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22fax_interactions.closed\x22,\x22value\x22:\x221\x22}]}}','chat_interactions','Abandon\x20time\x20performance\x20by\x20queue','WhatsApp\x20By\x20Queue','Rating\x20by\x20Queue','WhatsApp\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}]}}','Detailed\x20report\x20about\x20the\x20unanswered\x20calls','Outbound\x20Calls\x20by\x20Agent','fax_interactions','Email\x20By\x20Queue','Email\x20By\x20Agent','Openchannel\x20interactions\x20by\x20queue','Disconnection\x20Cause','Fax\x20By\x20Date','Answer\x20Time\x20by\x20Queue','Sms\x20Account\x20Summary','Chat\x20interactions\x20by\x20agent','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22chat_interactions.closed\x22,\x22value\x22:\x221\x22},{\x22group\x22:{\x22operator\x22:\x22OR\x22,\x22rules\x22:[{\x22condition\x22:\x22IS\x20NULL\x22,\x22field\x22:\x22chat_interactions.disposition\x22,\x22value\x22:\x22\x22},{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22!=\x22,\x22field\x22:\x22chat_interactions.disposition\x22,\x22value\x22:\x22\x27abandoned\x27\x22},{\x22condition\x22:\x22!=\x22,\x22field\x22:\x22chat_interactions.disposition\x22,\x22value\x22:\x22\x27unmanaged\x27\x22}]}}]}}]}}','Queues\x20answer\x20time\x20performance','Email\x20interactions\x20by\x20account','{\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}]}}]}}','report_square_details','Openchannel\x20interaction\x20times\x20by\x20account','Sms\x20By\x20Agent','Answer\x20Time\x20by\x20Hour','Fax\x20interactions\x20by\x20agent','Chat\x20interactions\x20by\x20queue','[{\x22parentKey\x22:\x22FaxAccountId\x22,\x22foreignTable\x22:\x22fax_accounts\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','_voice_queues_answered','WhatsApp\x20interactions\x20by\x20date','CallySquare\x20Blocks\x20Detail','Outbound','Abandon\x20Time\x20by\x20Queue','{\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}]}}','Agent\x27s\x20status\x20detail','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22IS\x20NOT\x20NULL\x22,\x22field\x22:\x22voice_recordings.sentiment\x22,\x22value\x22:\x22\x22}]}}','cm_hopper_final','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22campaigntype\x22,\x22value\x22:\x22\x27ivr\x27\x22}]}}','Chat\x20By\x20Agent','Activities\x20Summary','Sentiment\x20by\x20agent','Email\x20interactions\x20by\x20date','report_fax_queue','Summary','_whatsapp','[{\x22parentKey\x22:\x22FaxQueueId\x22,\x22foreignTable\x22:\x22fax_queues\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','Manual\x20outbound\x20calls\x20detailed\x20report','_voice_recordings','CallySquare\x20Summary','Agent\x20Disposition\x20Rate','report_member','Email\x20Account\x20Summary','Unmanaged\x20calls\x20summary','_mail','WhatsApp\x20Account\x20Times','{\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}]}}','report_openchannel_queue','Website\x20Times','Records\x20rating\x20by\x20queue','Detailed\x20report\x20about\x20answered\x20queue\x20calls','report_chat_queue','Openchannel\x20By\x20Agent','Sentiment\x20Summary','Fax\x20Account\x20Summary','[{\x22parentKey\x22:\x22ChatQueueId\x22,\x22foreignTable\x22:\x22chat_queues\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','_bull_queue_campaigns','voice_recordings','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22IS\x20NOT\x20NULL\x22,\x22field\x22:\x22voice_recordings.sentiment\x22,\x22value\x22:\x22NULL\x22}]}}','Fax\x20By\x20Queue','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22campaigntype\x22,\x22value\x22:\x22\x27queue\x27\x22}]}}','Sms\x20interactions\x20by\x20agent','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22mail_interactions.closed\x22,\x22value\x22:\x221\x22}]}}','Summary\x20report\x20of\x20the\x20calls\x20type','Queue\x20calls\x20summary\x20by\x20date','Calls\x20by\x20Type','exports','_fax','{\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}]}}','Summary\x20of\x20outbound\x20calls\x20grouped\x20by\x20agent','report_square','WhatsApp\x20By\x20Date','[{\x22parentKey\x22:\x22UserId\x22,\x22foreignTable\x22:\x22users\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]'];(function(_0x3a189c,_0x21f9bf){var _0x4d1d02=function(_0x7d29ff){while(--_0x7d29ff){_0x3a189c['push'](_0x3a189c['shift']());}};_0x4d1d02(++_0x21f9bf);}(a867_0x21f9,0x81));var a867_0x4d1d=function(_0x3a189c,_0x21f9bf){_0x3a189c=_0x3a189c-0x0;var _0x4d1d02=a867_0x21f9[_0x3a189c];return _0x4d1d02;};var _0x1ad2a8=a867_0x4d1d;'use strict';module[_0x1ad2a8('0x22')]=function(_0x7d29ff){var _0x55e810=_0x1ad2a8;return[{'id':0x1,'name':_0x55e810('0x78'),'description':'Detailed\x20queues\x20report','parent':_0x7d29ff+_0x55e810('0x67'),'table':_0x55e810('0x62'),'conditions':'{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[]}}'},{'id':0x2,'name':_0x55e810('0x73'),'description':_0x55e810('0x6c'),'parent':_0x7d29ff+'_voice_queues','table':'report_queue','conditions':_0x55e810('0x60')},{'id':0x3,'name':_0x55e810('0x78'),'description':_0x55e810('0x12'),'parent':_0x7d29ff+_0x55e810('0x9d'),'table':_0x55e810('0x5b'),'conditions':_0x55e810('0x49')},{'id':0x4,'name':_0x55e810('0x5f'),'description':_0x55e810('0x44'),'parent':_0x7d29ff+_0x55e810('0x9d'),'table':_0x55e810('0x5b'),'conditions':_0x55e810('0x49')},{'id':0x5,'name':_0x55e810('0x65'),'description':_0x55e810('0x6a'),'parent':_0x7d29ff+'_voice_queues_answered','table':_0x55e810('0x5b'),'conditions':_0x55e810('0x49')},{'id':0x6,'name':_0x55e810('0x8f'),'description':_0x55e810('0x93'),'parent':_0x7d29ff+_0x55e810('0x9d'),'table':_0x55e810('0x5b'),'conditions':_0x55e810('0x49')},{'id':0x7,'name':_0x55e810('0x8d'),'description':_0x55e810('0x59'),'parent':_0x7d29ff+_0x55e810('0x9d'),'table':_0x55e810('0x5b'),'conditions':_0x55e810('0x49')},{'id':0x8,'name':_0x55e810('0x99'),'description':_0x55e810('0x3a'),'parent':_0x7d29ff+_0x55e810('0x9d'),'table':_0x55e810('0x5b'),'conditions':_0x55e810('0x49')},{'id':0x9,'name':_0x55e810('0x78'),'description':_0x55e810('0x87'),'parent':_0x7d29ff+_0x55e810('0x4c'),'table':_0x55e810('0x62'),'conditions':_0x55e810('0x4b')},{'id':0xa,'name':_0x55e810('0x55'),'description':_0x55e810('0x75'),'parent':_0x7d29ff+_0x55e810('0x4c'),'table':_0x55e810('0x62'),'conditions':_0x55e810('0x4b')},{'id':0xb,'name':'Unmanaged\x20calls','description':_0x55e810('0xb'),'parent':_0x7d29ff+_0x55e810('0x4c'),'table':_0x55e810('0x62'),'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':_0x55e810('0xa1'),'description':_0x55e810('0x82'),'parent':_0x7d29ff+_0x55e810('0x4c'),'table':_0x55e810('0x62'),'conditions':_0x55e810('0x86')},{'id':0xd,'name':_0x55e810('0x76'),'description':_0x55e810('0x20'),'parent':_0x7d29ff+_0x55e810('0x79'),'table':_0x55e810('0x62'),'conditions':_0x55e810('0x60')},{'id':0xe,'name':'Calls\x20by\x20Hour','description':_0x55e810('0x4e'),'parent':_0x7d29ff+_0x55e810('0x79'),'table':'report_queue','conditions':_0x55e810('0x60')},{'id':0xf,'name':_0x55e810('0x57'),'description':_0x55e810('0x64'),'parent':_0x7d29ff+_0x55e810('0x79'),'table':_0x55e810('0x62'),'conditions':'{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[]}}'},{'id':0x10,'name':'Calls\x20by\x20Weekday','description':_0x55e810('0x3c'),'parent':_0x7d29ff+_0x55e810('0x79'),'table':_0x55e810('0x62'),'conditions':'{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[]}}'},{'id':0x11,'name':_0x55e810('0x2'),'description':'Calls\x20distribution\x20by\x20queue','parent':_0x7d29ff+_0x55e810('0x67'),'table':_0x55e810('0x62'),'conditions':_0x55e810('0x60')},{'id':0x12,'name':_0x55e810('0x78'),'description':_0x55e810('0x7a'),'parent':_0x7d29ff+_0x55e810('0x7c'),'table':_0x55e810('0x5a'),'conditions':_0x55e810('0x60')},{'id':0x13,'name':_0x55e810('0xa0'),'description':_0x55e810('0x5'),'parent':_0x7d29ff+'_voice_calls','table':_0x55e810('0x5a'),'conditions':_0x55e810('0xe')},{'id':0x14,'name':_0x55e810('0x21'),'description':_0x55e810('0x1f'),'parent':_0x7d29ff+_0x55e810('0x7c'),'table':_0x55e810('0x5a'),'conditions':_0x55e810('0x60')},{'id':0x15,'name':'Outbound\x20Calls\x20Disposition','description':_0x55e810('0x61'),'parent':_0x7d29ff+_0x55e810('0x7c'),'table':_0x55e810('0x5a'),'conditions':_0x55e810('0xe')},{'id':0x16,'name':_0x55e810('0x88'),'description':_0x55e810('0x25'),'parent':_0x7d29ff+_0x55e810('0x7c'),'table':_0x55e810('0x5a'),'conditions':_0x55e810('0xe')},{'id':0x17,'name':'Outbound\x20Calls\x20by\x20Date','description':_0x55e810('0x5e'),'parent':_0x7d29ff+_0x55e810('0x7c'),'table':'report_call','conditions':_0x55e810('0xe')},{'id':0x18,'name':_0x55e810('0x4f'),'description':_0x55e810('0x7e'),'parent':_0x7d29ff+_0x55e810('0x7d'),'table':_0x55e810('0x9'),'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':_0x55e810('0xa8'),'description':'Agent\x27s\x20activities\x20report','parent':_0x7d29ff+_0x55e810('0x35'),'table':_0x55e810('0x9'),'conditions':'{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22channel\x22,\x22value\x22:\x22\x27voice\x27\x22,\x22required\x22:true}]}}'},{'id':0x1a,'name':'Pause\x20Details','description':_0x55e810('0x39'),'parent':_0x7d29ff+_0x55e810('0x35'),'table':_0x55e810('0x9'),'conditions':_0x55e810('0x24')},{'id':0x1b,'name':_0x55e810('0x78'),'description':_0x55e810('0xa3'),'parent':_0x7d29ff+'_voice_agents','table':_0x55e810('0x9'),'conditions':'{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22channel\x22,\x22value\x22:\x22\x27voice\x27\x22,\x22required\x22:true}]}}'},{'id':0x1c,'name':'Pause\x20Time','description':'Agent\x27s\x20pause\x20time','parent':_0x7d29ff+'_voice_agents','table':_0x55e810('0x9'),'conditions':_0x55e810('0xa2')},{'id':0x1d,'name':_0x55e810('0x2'),'description':_0x55e810('0x7'),'parent':_0x7d29ff+'_voice_callysquare','table':_0x55e810('0x26'),'conditions':_0x55e810('0x60')},{'id':0x1e,'name':_0x55e810('0x66'),'description':_0x55e810('0x9f'),'parent':_0x7d29ff+_0x55e810('0x47'),'table':_0x55e810('0x96'),'conditions':_0x55e810('0x60')},{'id':0x1f,'name':_0x55e810('0x4d'),'description':_0x55e810('0x45'),'parent':_0x7d29ff+_0x55e810('0x6'),'table':_0x55e810('0x19'),'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':_0x55e810('0x84'),'description':_0x55e810('0x11'),'parent':_0x7d29ff+_0x55e810('0x6'),'table':_0x55e810('0x19'),'conditions':'{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22IS\x20NOT\x20NULL\x22,\x22field\x22:\x22queue\x22,\x22value\x22:\x22\x22,\x22required\x22:false},{\x22condition\x22:\x22>\x22,\x22field\x22:\x22rating\x22,\x22value\x22:\x220\x22,\x22required\x22:true}]}}'},{'id':0x21,'name':_0x55e810('0x78'),'description':'','parent':_0x7d29ff+_0x55e810('0x18'),'table':_0x55e810('0xa5'),'conditions':_0x55e810('0x1c')},{'id':0x22,'name':_0x55e810('0x72'),'description':'','parent':_0x7d29ff+'_bull_queue_campaigns','table':'cm_hopper_history','conditions':_0x55e810('0x1c')},{'id':0x23,'name':_0x55e810('0x34'),'description':'','parent':_0x7d29ff+'_bull_queue_campaigns','table':'cm_hopper_final','conditions':_0x55e810('0x1c')},{'id':0x24,'name':_0x55e810('0x2a'),'description':'','parent':_0x7d29ff+_0x55e810('0x18'),'table':'cm_hopper_final','conditions':_0x55e810('0x1c')},{'id':0x25,'name':_0x55e810('0x3d'),'description':'','parent':_0x7d29ff+'_bull_queue_campaigns','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},{\x22condition\x22:\x22=\x22,\x22field\x22:\x22state\x22,\x22value\x22:\x224\x22}]}}'},{'id':0x26,'name':_0x55e810('0x5c'),'description':'','parent':_0x7d29ff+_0x55e810('0x18'),'table':_0x55e810('0xa5'),'conditions':_0x55e810('0x74')},{'id':0x27,'name':_0x55e810('0x8'),'description':'','parent':_0x7d29ff+_0x55e810('0x18'),'table':_0x55e810('0xa5'),'conditions':'{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22campaigntype\x22,\x22value\x22:\x22\x27queue\x27\x22},{\x22condition\x22:\x22IS\x20NOT\x20NULL\x22,\x22field\x22:\x22disposition\x22,\x22value\x22:\x22\x22},{\x22condition\x22:\x22=\x22,\x22field\x22:\x22state\x22,\x22value\x22:\x224\x22}]}}'},{'id':0x28,'name':_0x55e810('0x78'),'description':'','parent':_0x7d29ff+_0x55e810('0x51'),'table':_0x55e810('0xa5'),'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':_0x55e810('0x72'),'description':'','parent':_0x7d29ff+_0x55e810('0x51'),'table':'cm_hopper_history','conditions':_0x55e810('0xa6')},{'id':0x2a,'name':_0x55e810('0x34'),'description':'','parent':_0x7d29ff+_0x55e810('0x51'),'table':_0x55e810('0xa5'),'conditions':_0x55e810('0xa6')},{'id':0x2b,'name':_0x55e810('0x2a'),'description':'','parent':_0x7d29ff+_0x55e810('0x51'),'table':_0x55e810('0xa5'),'conditions':_0x55e810('0xa6')},{'id':0x2c,'name':_0x55e810('0x4a'),'description':'Chat\x20interactions\x20by\x20website','parent':_0x7d29ff+'_chat','table':'chat_interactions','joins':'[{\x22parentKey\x22:\x22ChatWebsiteId\x22,\x22foreignTable\x22:\x22chat_websites\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]'},{'id':0x2d,'name':_0x55e810('0x10'),'description':'Chat\x20interaction\x20times\x20by\x20website','parent':_0x7d29ff+'_chat','table':_0x55e810('0x81'),'conditions':_0x55e810('0x92'),'joins':_0x55e810('0x53')},{'id':0x2e,'name':_0x55e810('0xa7'),'description':_0x55e810('0x91'),'parent':_0x7d29ff+'_chat','table':'chat_interactions','conditions':'{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22chat_interactions.closed\x22,\x22value\x22:\x221\x22}]}}','joins':_0x55e810('0x28')},{'id':0x2f,'name':_0x55e810('0x41'),'description':'Chat\x20interactions\x20by\x20date','parent':_0x7d29ff+_0x55e810('0x3e'),'table':_0x55e810('0x81'),'conditions':_0x55e810('0x63')},{'id':0x30,'name':'Chat\x20By\x20Queue','description':_0x55e810('0x9b'),'parent':_0x7d29ff+_0x55e810('0x3e'),'table':_0x55e810('0x13'),'joins':_0x55e810('0x17')},{'id':0x31,'name':_0x55e810('0xa'),'description':_0x55e810('0x94'),'parent':_0x7d29ff+_0x55e810('0xc'),'table':_0x55e810('0x46'),'joins':'[{\x22parentKey\x22:\x22MailAccountId\x22,\x22foreignTable\x22:\x22mail_accounts\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]'},{'id':0x32,'name':_0x55e810('0x2f'),'description':'Email\x20interaction\x20times\x20by\x20account','parent':_0x7d29ff+_0x55e810('0xc'),'table':_0x55e810('0x46'),'conditions':_0x55e810('0x30'),'joins':_0x55e810('0x38')},{'id':0x33,'name':_0x55e810('0x8b'),'description':_0x55e810('0x50'),'parent':_0x7d29ff+_0x55e810('0xc'),'table':_0x55e810('0x46'),'conditions':_0x55e810('0x1e'),'joins':_0x55e810('0x28')},{'id':0x34,'name':'Email\x20By\x20Date','description':_0x55e810('0x0'),'parent':_0x7d29ff+_0x55e810('0xc'),'table':_0x55e810('0x46'),'conditions':_0x55e810('0x1e')},{'id':0x35,'name':_0x55e810('0x8a'),'description':_0x55e810('0x2b'),'parent':_0x7d29ff+_0x55e810('0xc'),'table':_0x55e810('0x2c'),'joins':_0x55e810('0x69')},{'id':0x36,'name':_0x55e810('0x6f'),'description':'Openchannel\x20interactions\x20by\x20account','parent':_0x7d29ff+_0x55e810('0x7f'),'table':'openchannel_interactions','joins':'[{\x22parentKey\x22:\x22OpenchannelAccountId\x22,\x22foreignTable\x22:\x22openchannel_accounts\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]'},{'id':0x37,'name':'Openchannel\x20Account\x20Times','description':_0x55e810('0x97'),'parent':_0x7d29ff+_0x55e810('0x7f'),'table':_0x55e810('0x32'),'conditions':_0x55e810('0x48'),'joins':_0x55e810('0x7b')},{'id':0x38,'name':_0x55e810('0x14'),'description':'Openchannel\x20interactions\x20by\x20agent','parent':_0x7d29ff+_0x55e810('0x7f'),'table':_0x55e810('0x32'),'conditions':'{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22openchannel_interactions.closed\x22,\x22value\x22:\x221\x22}]}}','joins':_0x55e810('0x28')},{'id':0x39,'name':'Openchannel\x20By\x20Date','description':'Openchannel\x20interactions\x20by\x20date','parent':_0x7d29ff+_0x55e810('0x7f'),'table':_0x55e810('0x32'),'conditions':_0x55e810('0x3f')},{'id':0x3a,'name':_0x55e810('0x3b'),'description':_0x55e810('0x8c'),'parent':_0x7d29ff+'_openchannel','table':_0x55e810('0xf'),'joins':_0x55e810('0x2e')},{'id':0x3b,'name':_0x55e810('0x90'),'description':'Sms\x20interactions\x20by\x20account','parent':_0x7d29ff+'_sms','table':_0x55e810('0x33'),'joins':_0x55e810('0x37')},{'id':0x3c,'name':'Sms\x20Account\x20Times','description':_0x55e810('0x42'),'parent':_0x7d29ff+_0x55e810('0x36'),'table':_0x55e810('0x33'),'conditions':_0x55e810('0x95'),'joins':'[{\x22parentKey\x22:\x22SmsAccountId\x22,\x22foreignTable\x22:\x22sms_accounts\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]'},{'id':0x3d,'name':_0x55e810('0x98'),'description':_0x55e810('0x1d'),'parent':_0x7d29ff+_0x55e810('0x36'),'table':_0x55e810('0x33'),'conditions':_0x55e810('0x31'),'joins':'[{\x22parentKey\x22:\x22UserId\x22,\x22foreignTable\x22:\x22users\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]'},{'id':0x3e,'name':_0x55e810('0x77'),'description':_0x55e810('0x52'),'parent':_0x7d29ff+_0x55e810('0x36'),'table':_0x55e810('0x33'),'conditions':_0x55e810('0x31')},{'id':0x3f,'name':'Sms\x20By\x20Queue','description':'Sms\x20interactions\x20by\x20queue','parent':_0x7d29ff+_0x55e810('0x36'),'table':_0x55e810('0x6d'),'joins':_0x55e810('0x56')},{'id':0x40,'name':_0x55e810('0x16'),'description':_0x55e810('0x43'),'parent':_0x7d29ff+_0x55e810('0x23'),'table':_0x55e810('0x89'),'joins':_0x55e810('0x9c')},{'id':0x41,'name':'Fax\x20Account\x20Times','description':_0x55e810('0x71'),'parent':_0x7d29ff+_0x55e810('0x23'),'table':_0x55e810('0x89'),'conditions':_0x55e810('0x6e'),'joins':_0x55e810('0x9c')},{'id':0x42,'name':_0x55e810('0x68'),'description':_0x55e810('0x9a'),'parent':_0x7d29ff+_0x55e810('0x23'),'table':'fax_interactions','conditions':_0x55e810('0x80'),'joins':_0x55e810('0x28')},{'id':0x43,'name':_0x55e810('0x8e'),'description':_0x55e810('0x58'),'parent':_0x7d29ff+'_fax','table':_0x55e810('0x89'),'conditions':_0x55e810('0x80')},{'id':0x44,'name':_0x55e810('0x1b'),'description':'Fax\x20interactions\x20by\x20queue','parent':_0x7d29ff+_0x55e810('0x23'),'table':_0x55e810('0x1'),'joins':_0x55e810('0x4')},{'id':0x45,'name':'WhatsApp\x20Account\x20Summary','description':_0x55e810('0x6b'),'parent':_0x7d29ff+_0x55e810('0x3'),'table':_0x55e810('0x70'),'joins':'[{\x22parentKey\x22:\x22WhatsappAccountId\x22,\x22foreignTable\x22:\x22whatsapp_accounts\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]'},{'id':0x46,'name':_0x55e810('0xd'),'description':'WhatsApp\x20interaction\x20times\x20by\x20account','parent':_0x7d29ff+'_whatsapp','table':_0x55e810('0x70'),'conditions':_0x55e810('0x5d'),'joins':'[{\x22parentKey\x22:\x22WhatsappAccountId\x22,\x22foreignTable\x22:\x22whatsapp_accounts\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]'},{'id':0x47,'name':_0x55e810('0x85'),'description':_0x55e810('0x2d'),'parent':_0x7d29ff+'_whatsapp','table':_0x55e810('0x70'),'conditions':_0x55e810('0x40'),'joins':_0x55e810('0x28')},{'id':0x48,'name':_0x55e810('0x27'),'description':_0x55e810('0x9e'),'parent':_0x7d29ff+_0x55e810('0x3'),'table':'whatsapp_interactions','conditions':_0x55e810('0x40')},{'id':0x49,'name':_0x55e810('0x83'),'description':'WhatsApp\x20interactions\x20by\x20queue','parent':_0x7d29ff+_0x55e810('0x3'),'table':_0x55e810('0x29'),'joins':'[{\x22parentKey\x22:\x22WhatsappQueueId\x22,\x22foreignTable\x22:\x22whatsapp_queues\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]'},{'id':0x4a,'name':_0x55e810('0x54'),'description':_0x55e810('0xa9'),'parent':_0x7d29ff+_0x55e810('0x6'),'table':'voice_recordings','conditions':_0x55e810('0x1a'),'joins':_0x55e810('0x28')},{'id':0x4b,'name':_0x55e810('0x15'),'description':_0x55e810('0x15'),'parent':_0x7d29ff+_0x55e810('0x6'),'table':_0x55e810('0x19'),'conditions':_0x55e810('0xa4')}];}; \ No newline at end of file +var a1029_0x51ea=['_voice_recordings','Openchannel\x20interactions\x20by\x20date','_voice_queues_unanswered','Agent\x27s\x20activities\x20report','Activities\x20Summary','_fax','Openchannel\x20Account\x20Summary','Unmanaged\x20calls\x20summary','exports','Login\x20Time','_voice_queues_answered','Fax\x20interaction\x20times\x20by\x20account','Sentiment\x20Summary','Records\x20rating\x20by\x20queue','report_queue','whatsapp_interactions','{\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}]}}','Chat\x20By\x20Agent','Detailed\x20report\x20about\x20the\x20unanswered\x20calls','Calls\x20by\x20Date','Rating\x20by\x20Queue','{\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:\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}]}}','Unanswered\x20calls\x20summary\x20by\x20queue','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22type\x22,\x22value\x22:\x22\x27outbound\x27\x22,\x22required\x22:true}]}}','Calls\x20by\x20Hour','Calls\x20by\x20Weekday','[{\x22parentKey\x22:\x22MailQueueId\x22,\x22foreignTable\x22:\x22mail_queues\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22IS\x20NOT\x20NULL\x22,\x22field\x22:\x22voice_recordings.sentiment\x22,\x22value\x22:\x22\x22}]}}','Email\x20Account\x20Summary','Outbound\x20Calls\x20by\x20Date','[{\x22parentKey\x22:\x22ChatQueueId\x22,\x22foreignTable\x22:\x22chat_queues\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','[{\x22parentKey\x22:\x22ChatWebsiteId\x22,\x22foreignTable\x22:\x22chat_websites\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','Agent\x20Calls','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22fax_interactions.closed\x22,\x22value\x22:\x221\x22}]}}','Fax\x20interactions\x20by\x20agent','Openchannel\x20Account\x20Times','_openchannel','WhatsApp\x20By\x20Queue','[{\x22parentKey\x22:\x22UserId\x22,\x22foreignTable\x22:\x22users\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','Email\x20By\x20Agent','Unmanaged\x20calls','Sms\x20interactions\x20by\x20date','Openchannel\x20interactions\x20by\x20agent','_mail','Website\x20Summary','Sms\x20By\x20Queue','Sentiment\x20by\x20Agent','Summary\x20of\x20outbound\x20calls\x20grouped\x20by\x20date','report_call','_agents','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22openchannel_interactions.closed\x22,\x22value\x22:\x221\x22}]}}','Calls\x20detail\x20(cdr)','_voice_queues','WhatsApp\x20interaction\x20times\x20by\x20account','Abandon\x20time\x20performance\x20by\x20queue','Email\x20interaction\x20times\x20by\x20account','Openchannel\x20interaction\x20times\x20by\x20account','Sms\x20interactions\x20by\x20account','[{\x22parentKey\x22:\x22MailAccountId\x22,\x22foreignTable\x22:\x22mail_accounts\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','_bull_queue_campaigns','Fax\x20interactions\x20by\x20queue','_whatsapp','Fax\x20Account\x20Times','Chat\x20By\x20Queue','Agent\x27s\x20status\x20detail','[{\x22parentKey\x22:\x22WhatsappAccountId\x22,\x22foreignTable\x22:\x22whatsapp_accounts\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','openchannel_interactions','Simple\x20queue\x20calls\x20overview','_voice_queues_distribution','Answer\x20time\x20\x20by\x20hour','Fax\x20Account\x20Summary','Answer\x20Time\x20by\x20Queue','{\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}]}}]}}','Campaign\x20Calls','Blocks','Detailed\x20report\x20about\x20answered\x20queue\x20calls','Summary\x20of\x20outbound\x20calls\x20grouped\x20by\x20agent','Summary\x20report\x20of\x20the\x20calls\x20type','Abandon\x20Time\x20by\x20Queue','Records\x20rating\x20by\x20agent','cm_hopper_final','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22campaigntype\x22,\x22value\x22:\x22\x27queue\x27\x22},{\x22condition\x22:\x22IS\x20NOT\x20NULL\x22,\x22field\x22:\x22disposition\x22,\x22value\x22:\x22\x22},{\x22condition\x22:\x22=\x22,\x22field\x22:\x22state\x22,\x22value\x22:\x224\x22}]}}','report_sms_queue','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22campaigntype\x22,\x22value\x22:\x22\x27ivr\x27\x22}]}}','WhatsApp\x20By\x20Agent','Outbound\x20Calls\x20Disposition','Openchannel\x20interactions\x20by\x20account','report_agent','Sms\x20By\x20Agent','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22>\x22,\x22field\x22:\x22rating\x22,\x22value\x22:\x220\x22,\x22required\x22:true}]}}','Chat\x20interactions\x20by\x20website','report_member','CallySquare\x20Summary','WhatsApp\x20Account\x20Times','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22IS\x20NOT\x20NULL\x22,\x22field\x22:\x22voice_recordings.sentiment\x22,\x22value\x22:\x22NULL\x22}]}}','Manual\x20outbound\x20calls\x20detailed\x20report','Summary','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22chat_interactions.closed\x22,\x22value\x22:\x221\x22}]}}','[{\x22parentKey\x22:\x22FaxQueueId\x22,\x22foreignTable\x22:\x22fax_queues\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','Calls\x20Summary','Chat\x20By\x20Date','Outbound\x20Calls\x20by\x20Agent','_bull_ivr_campaigns','Agent\x20Disposition\x20Rate','{\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}]}}]}}','_voice_callysquare','_sms','sms_interactions','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22sms_interactions.closed\x22,\x22value\x22:\x221\x22}]}}','fax_interactions','Calls\x20distribution\x20by\x20hour','Fax\x20interactions\x20by\x20account','Agents\x20status\x20details','_voice_agents','chat_interactions','Outbound\x20calls\x20grouped\x20by\x20disposition','Queue\x20calls\x20summary\x20by\x20date','WhatsApp\x20interactions\x20by\x20account','Sentiment\x20by\x20agent','List\x20Penetration\x20Rate','Rating\x20by\x20Agent','Calls\x20distribution\x20by\x20day\x20of\x20the\x20month','voice_recordings','Openchannel\x20By\x20Agent','[{\x22parentKey\x22:\x22OpenchannelAccountId\x22,\x22foreignTable\x22:\x22openchannel_accounts\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','Fax\x20interactions\x20by\x20date','_voice_calls','Queues\x20answer\x20time\x20performance','Disposition\x20Rate','Summary\x20of\x20the\x20calls\x20disconnection\x20causes','[{\x22parentKey\x22:\x22SmsAccountId\x22,\x22foreignTable\x22:\x22sms_accounts\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22mail_interactions.closed\x22,\x22value\x22:\x221\x22},{\x22group\x22:{\x22operator\x22:\x22OR\x22,\x22rules\x22:[{\x22condition\x22:\x22!=\x22,\x22field\x22:\x22mail_interactions.disposition\x22,\x22value\x22:\x22\x27unmanaged\x27\x22},{\x22condition\x22:\x22IS\x20NULL\x22,\x22field\x22:\x22mail_interactions.disposition\x22,\x22value\x22:\x22\x22}]}}]}}','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22whatsapp_interactions.closed\x22,\x22value\x22:\x221\x22}]}}','Chat\x20interactions\x20by\x20date','Disconnection\x20Cause','Fax\x20By\x20Queue','Calls\x20distribution\x20by\x20day\x20of\x20the\x20week','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22agentcomplete\x22,\x22value\x22:\x221\x22,\x22required\x22:true}]}}','report_square','mail_interactions','Openchannel\x20By\x20Date','Sms\x20By\x20Date','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22mail_interactions.closed\x22,\x22value\x22:\x221\x22}]}}','Website\x20Times','Chat\x20interaction\x20times\x20by\x20website','report_whatsapp_queue','Unanswered\x20by\x20Queue','cm_hopper_history','Chat\x20interactions\x20by\x20queue','Calls\x20by\x20Queue','Email\x20By\x20Date','report_openchannel_queue','report_chat_queue','Agent\x27s\x20login\x20time','Email\x20interactions\x20by\x20agent','Outbound','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22campaigntype\x22,\x22value\x22:\x22\x27queue\x27\x22}]}}','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22fax_interactions.closed\x22,\x22value\x22:\x221\x22},{\x22group\x22:{\x22operator\x22:\x22OR\x22,\x22rules\x22:[{\x22condition\x22:\x22!=\x22,\x22field\x22:\x22fax_interactions.disposition\x22,\x22value\x22:\x22\x27unmanaged\x27\x22},{\x22condition\x22:\x22IS\x20NULL\x22,\x22field\x22:\x22fax_interactions.disposition\x22,\x22value\x22:\x22\x22}]}}]}}','{\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}]}}]}}]}}','_chat','Fax\x20By\x20Date','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[]}}','[{\x22parentKey\x22:\x22WhatsappQueueId\x22,\x22foreignTable\x22:\x22whatsapp_queues\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','Fax\x20By\x20Agent','Email\x20By\x20Queue','Sms\x20interactions\x20by\x20agent','Email\x20interactions\x20by\x20date','Details','{\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}]}}','WhatsApp\x20interactions\x20by\x20agent','[{\x22parentKey\x22:\x22FaxAccountId\x22,\x22foreignTable\x22:\x22fax_accounts\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','Calls\x20by\x20Agent','WhatsApp\x20interactions\x20by\x20date','Calls\x20by\x20Day','WhatsApp\x20Account\x20Summary','{\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}]}}','report_fax_queue','{\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}]}}','Openchannel\x20interactions\x20by\x20queue'];(function(_0x3720f7,_0x4e140b){var _0x51eaa0=function(_0x41729b){while(--_0x41729b){_0x3720f7['push'](_0x3720f7['shift']());}};_0x51eaa0(++_0x4e140b);}(a1029_0x51ea,0x121));var a1029_0x4172=function(_0x3720f7,_0x4e140b){_0x3720f7=_0x3720f7-0xaf;var _0x51eaa0=a1029_0x51ea[_0x3720f7];return _0x51eaa0;};var a1029_0x4951aa=a1029_0x4172;'use strict';module[a1029_0x4951aa(0xfe)]=function(_0x3594b5){var _0x46a171=a1029_0x4951aa;return[{'id':0x1,'name':'Details','description':'Detailed\x20queues\x20report','parent':_0x3594b5+_0x46a171(0x12b),'table':_0x46a171(0x104),'conditions':_0x46a171(0xe4)},{'id':0x2,'name':'Calls\x20Result','description':_0x46a171(0x13a),'parent':_0x3594b5+_0x46a171(0x12b),'table':_0x46a171(0x104),'conditions':_0x46a171(0xe4)},{'id':0x3,'name':_0x46a171(0xea),'description':_0x46a171(0x142),'parent':_0x3594b5+'_voice_queues_answered','table':_0x46a171(0x14e),'conditions':_0x46a171(0xcc)},{'id':0x4,'name':_0x46a171(0xee),'description':'Agent\x20calls\x20timer\x20Handle\x20time=\x20talk\x20time\x20+\x20ACW\x20time','parent':_0x3594b5+'_voice_queues_answered','table':_0x46a171(0x14e),'conditions':'{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22agentcomplete\x22,\x22value\x22:\x221\x22,\x22required\x22:true}]}}'},{'id':0x5,'name':_0x46a171(0xd8),'description':'Queue\x20timer\x20Handle\x20Time=\x20Talk\x20Time\x20+\x20AVG\x20TIme','parent':_0x3594b5+_0x46a171(0x100),'table':'report_agent','conditions':_0x46a171(0xcc)},{'id':0x6,'name':_0x46a171(0x13e),'description':_0x46a171(0xc2),'parent':_0x3594b5+_0x46a171(0x100),'table':_0x46a171(0x14e),'conditions':_0x46a171(0xcc)},{'id':0x7,'name':_0x46a171(0xc9),'description':_0x46a171(0xc4),'parent':_0x3594b5+_0x46a171(0x100),'table':_0x46a171(0x14e),'conditions':_0x46a171(0xcc)},{'id':0x8,'name':'Answer\x20Time\x20by\x20Hour','description':_0x46a171(0x13c),'parent':_0x3594b5+_0x46a171(0x100),'table':_0x46a171(0x14e),'conditions':_0x46a171(0xcc)},{'id':0x9,'name':'Details','description':_0x46a171(0x108),'parent':_0x3594b5+_0x46a171(0xf8),'table':_0x46a171(0x104),'conditions':_0x46a171(0x10b)},{'id':0xa,'name':_0x46a171(0xd5),'description':_0x46a171(0x10d),'parent':_0x3594b5+_0x46a171(0xf8),'table':_0x46a171(0x104),'conditions':_0x46a171(0x10b)},{'id':0xb,'name':_0x46a171(0x11f),'description':_0x46a171(0xfd),'parent':_0x3594b5+'_voice_queues_unanswered','table':_0x46a171(0x104),'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':_0x46a171(0x145),'description':_0x46a171(0x12d),'parent':_0x3594b5+'_voice_queues_unanswered','table':_0x46a171(0x104),'conditions':'{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22queuecallerabandon\x22,\x22value\x22:\x221\x22,\x22required\x22:true}]}}'},{'id':0xd,'name':_0x46a171(0x109),'description':_0x46a171(0xb7),'parent':_0x3594b5+_0x46a171(0x13b),'table':_0x46a171(0x104),'conditions':_0x46a171(0xe4)},{'id':0xe,'name':_0x46a171(0x10f),'description':_0x46a171(0xb1),'parent':_0x3594b5+_0x46a171(0x13b),'table':_0x46a171(0x104),'conditions':_0x46a171(0xe4)},{'id':0xf,'name':_0x46a171(0xf0),'description':_0x46a171(0xbc),'parent':_0x3594b5+_0x46a171(0x13b),'table':_0x46a171(0x104),'conditions':_0x46a171(0xe4)},{'id':0x10,'name':_0x46a171(0x110),'description':_0x46a171(0xcb),'parent':_0x3594b5+'_voice_queues_distribution','table':_0x46a171(0x104),'conditions':_0x46a171(0xe4)},{'id':0x11,'name':'Summary','description':'Calls\x20distribution\x20by\x20queue','parent':_0x3594b5+_0x46a171(0x12b),'table':_0x46a171(0x104),'conditions':_0x46a171(0xe4)},{'id':0x12,'name':_0x46a171(0xea),'description':_0x46a171(0x12a),'parent':_0x3594b5+_0x46a171(0xc1),'table':_0x46a171(0x127),'conditions':_0x46a171(0xe4)},{'id':0x13,'name':_0x46a171(0xde),'description':_0x46a171(0x156),'parent':_0x3594b5+'_voice_calls','table':_0x46a171(0x127),'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':0x14,'name':'Calls\x20by\x20Type','description':_0x46a171(0x144),'parent':_0x3594b5+_0x46a171(0xc1),'table':_0x46a171(0x127),'conditions':_0x46a171(0xe4)},{'id':0x15,'name':_0x46a171(0x14c),'description':_0x46a171(0xb6),'parent':_0x3594b5+'_voice_calls','table':_0x46a171(0x127),'conditions':_0x46a171(0x10e)},{'id':0x16,'name':_0x46a171(0x15c),'description':_0x46a171(0x143),'parent':_0x3594b5+_0x46a171(0xc1),'table':_0x46a171(0x127),'conditions':_0x46a171(0x10e)},{'id':0x17,'name':_0x46a171(0x114),'description':_0x46a171(0x126),'parent':_0x3594b5+_0x46a171(0xc1),'table':_0x46a171(0x127),'conditions':_0x46a171(0x10e)},{'id':0x18,'name':_0x46a171(0xff),'description':_0x46a171(0xdc),'parent':_0x3594b5+_0x46a171(0x128),'table':_0x46a171(0x152),'conditions':_0x46a171(0xeb)},{'id':0x19,'name':_0x46a171(0xfa),'description':_0x46a171(0xf9),'parent':_0x3594b5+_0x46a171(0xb4),'table':_0x46a171(0x152),'conditions':_0x46a171(0xf2)},{'id':0x1a,'name':'Pause\x20Details','description':_0x46a171(0xb3),'parent':_0x3594b5+_0x46a171(0xb4),'table':_0x46a171(0x152),'conditions':_0x46a171(0x106)},{'id':0x1b,'name':_0x46a171(0xea),'description':_0x46a171(0x137),'parent':_0x3594b5+_0x46a171(0xb4),'table':_0x46a171(0x152),'conditions':_0x46a171(0xf2)},{'id':0x1c,'name':'Pause\x20Time','description':'Agent\x27s\x20pause\x20time','parent':_0x3594b5+'_voice_agents','table':_0x46a171(0x152),'conditions':_0x46a171(0x10c)},{'id':0x1d,'name':_0x46a171(0x157),'description':_0x46a171(0x153),'parent':_0x3594b5+_0x46a171(0x160),'table':_0x46a171(0xcd),'conditions':_0x46a171(0xe4)},{'id':0x1e,'name':_0x46a171(0x141),'description':'CallySquare\x20Blocks\x20Detail','parent':_0x3594b5+_0x46a171(0x160),'table':'report_square_details','conditions':_0x46a171(0xe4)},{'id':0x1f,'name':_0x46a171(0xbb),'description':_0x46a171(0x146),'parent':_0x3594b5+_0x46a171(0xf6),'table':'voice_recordings','conditions':_0x46a171(0x150)},{'id':0x20,'name':_0x46a171(0x10a),'description':_0x46a171(0x103),'parent':_0x3594b5+'_voice_recordings','table':_0x46a171(0xbd),'conditions':_0x46a171(0xf4)},{'id':0x21,'name':'Details','description':'','parent':_0x3594b5+'_bull_queue_campaigns','table':_0x46a171(0x147),'conditions':_0x46a171(0xdf)},{'id':0x22,'name':_0x46a171(0x15a),'description':'','parent':_0x3594b5+_0x46a171(0x132),'table':'cm_hopper_history','conditions':_0x46a171(0xdf)},{'id':0x23,'name':_0x46a171(0x140),'description':'','parent':_0x3594b5+_0x46a171(0x132),'table':_0x46a171(0x147),'conditions':_0x46a171(0xdf)},{'id':0x24,'name':_0x46a171(0xba),'description':'','parent':_0x3594b5+_0x46a171(0x132),'table':_0x46a171(0x147),'conditions':_0x46a171(0xdf)},{'id':0x25,'name':_0x46a171(0x117),'description':'','parent':_0x3594b5+'_bull_queue_campaigns','table':_0x46a171(0x147),'conditions':'{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22campaigntype\x22,\x22value\x22:\x22\x27queue\x27\x22},{\x22condition\x22:\x22=\x22,\x22field\x22:\x22state\x22,\x22value\x22:\x224\x22}]}}'},{'id':0x26,'name':_0x46a171(0xc3),'description':'','parent':_0x3594b5+'_bull_queue_campaigns','table':_0x46a171(0x147),'conditions':'{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22campaigntype\x22,\x22value\x22:\x22\x27queue\x27\x22},{\x22condition\x22:\x22IS\x20NOT\x20NULL\x22,\x22field\x22:\x22disposition\x22,\x22value\x22:\x22\x22},{\x22condition\x22:\x22=\x22,\x22field\x22:\x22state\x22,\x22value\x22:\x224\x22}]}}'},{'id':0x27,'name':_0x46a171(0x15e),'description':'','parent':_0x3594b5+_0x46a171(0x132),'table':_0x46a171(0x147),'conditions':_0x46a171(0x148)},{'id':0x28,'name':_0x46a171(0xea),'description':'','parent':_0x3594b5+_0x46a171(0x15d),'table':'cm_hopper_final','conditions':_0x46a171(0x14a)},{'id':0x29,'name':_0x46a171(0x15a),'description':'','parent':_0x3594b5+_0x46a171(0x15d),'table':_0x46a171(0xd6),'conditions':_0x46a171(0x14a)},{'id':0x2a,'name':_0x46a171(0x140),'description':'','parent':_0x3594b5+_0x46a171(0x15d),'table':_0x46a171(0x147),'conditions':_0x46a171(0x14a)},{'id':0x2b,'name':_0x46a171(0xba),'description':'','parent':_0x3594b5+_0x46a171(0x15d),'table':_0x46a171(0x147),'conditions':_0x46a171(0x14a)},{'id':0x2c,'name':_0x46a171(0x123),'description':_0x46a171(0x151),'parent':_0x3594b5+'_chat','table':'chat_interactions','joins':_0x46a171(0x116)},{'id':0x2d,'name':_0x46a171(0xd2),'description':_0x46a171(0xd3),'parent':_0x3594b5+_0x46a171(0xe2),'table':_0x46a171(0xb5),'conditions':_0x46a171(0xe1),'joins':_0x46a171(0x116)},{'id':0x2e,'name':_0x46a171(0x107),'description':'Chat\x20interactions\x20by\x20agent','parent':_0x3594b5+_0x46a171(0xe2),'table':_0x46a171(0xb5),'conditions':_0x46a171(0x158),'joins':_0x46a171(0x11d)},{'id':0x2f,'name':_0x46a171(0x15b),'description':_0x46a171(0xc8),'parent':_0x3594b5+_0x46a171(0xe2),'table':_0x46a171(0xb5),'conditions':_0x46a171(0x158)},{'id':0x30,'name':_0x46a171(0x136),'description':_0x46a171(0xd7),'parent':_0x3594b5+_0x46a171(0xe2),'table':_0x46a171(0xdb),'joins':_0x46a171(0x115)},{'id':0x31,'name':_0x46a171(0x113),'description':'Email\x20interactions\x20by\x20account','parent':_0x3594b5+_0x46a171(0x122),'table':_0x46a171(0xce),'joins':_0x46a171(0x131)},{'id':0x32,'name':'Email\x20Account\x20Times','description':_0x46a171(0x12e),'parent':_0x3594b5+_0x46a171(0x122),'table':_0x46a171(0xce),'conditions':_0x46a171(0xc6),'joins':_0x46a171(0x131)},{'id':0x33,'name':_0x46a171(0x11e),'description':_0x46a171(0xdd),'parent':_0x3594b5+_0x46a171(0x122),'table':'mail_interactions','conditions':_0x46a171(0xd1),'joins':'[{\x22parentKey\x22:\x22UserId\x22,\x22foreignTable\x22:\x22users\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]'},{'id':0x34,'name':_0x46a171(0xd9),'description':_0x46a171(0xe9),'parent':_0x3594b5+_0x46a171(0x122),'table':_0x46a171(0xce),'conditions':'{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22mail_interactions.closed\x22,\x22value\x22:\x221\x22}]}}'},{'id':0x35,'name':_0x46a171(0xe7),'description':'Email\x20interactions\x20by\x20queue','parent':_0x3594b5+'_mail','table':'report_mail_queue','joins':_0x46a171(0x111)},{'id':0x36,'name':_0x46a171(0xfc),'description':_0x46a171(0x14d),'parent':_0x3594b5+_0x46a171(0x11b),'table':_0x46a171(0x139),'joins':_0x46a171(0xbf)},{'id':0x37,'name':_0x46a171(0x11a),'description':_0x46a171(0x12f),'parent':_0x3594b5+'_openchannel','table':_0x46a171(0x139),'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':_0x46a171(0xbf)},{'id':0x38,'name':_0x46a171(0xbe),'description':_0x46a171(0x121),'parent':_0x3594b5+_0x46a171(0x11b),'table':_0x46a171(0x139),'conditions':_0x46a171(0x129),'joins':_0x46a171(0x11d)},{'id':0x39,'name':_0x46a171(0xcf),'description':_0x46a171(0xf7),'parent':_0x3594b5+_0x46a171(0x11b),'table':_0x46a171(0x139),'conditions':_0x46a171(0x129)},{'id':0x3a,'name':'Openchannel\x20By\x20Queue','description':_0x46a171(0xf5),'parent':_0x3594b5+'_openchannel','table':_0x46a171(0xda),'joins':'[{\x22parentKey\x22:\x22OpenchannelQueueId\x22,\x22foreignTable\x22:\x22openchannel_queues\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]'},{'id':0x3b,'name':'Sms\x20Account\x20Summary','description':_0x46a171(0x130),'parent':_0x3594b5+'_sms','table':_0x46a171(0x162),'joins':_0x46a171(0xc5)},{'id':0x3c,'name':'Sms\x20Account\x20Times','description':'Sms\x20interaction\x20times\x20by\x20account','parent':_0x3594b5+'_sms','table':_0x46a171(0x162),'conditions':_0x46a171(0x15f),'joins':_0x46a171(0xc5)},{'id':0x3d,'name':_0x46a171(0x14f),'description':_0x46a171(0xe8),'parent':_0x3594b5+_0x46a171(0x161),'table':_0x46a171(0x162),'conditions':_0x46a171(0xaf),'joins':_0x46a171(0x11d)},{'id':0x3e,'name':_0x46a171(0xd0),'description':_0x46a171(0x120),'parent':_0x3594b5+'_sms','table':_0x46a171(0x162),'conditions':_0x46a171(0xaf)},{'id':0x3f,'name':_0x46a171(0x124),'description':'Sms\x20interactions\x20by\x20queue','parent':_0x3594b5+_0x46a171(0x161),'table':_0x46a171(0x149),'joins':'[{\x22parentKey\x22:\x22SmsQueueId\x22,\x22foreignTable\x22:\x22sms_queues\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]'},{'id':0x40,'name':_0x46a171(0x13d),'description':_0x46a171(0xb2),'parent':_0x3594b5+'_fax','table':'fax_interactions','joins':'[{\x22parentKey\x22:\x22FaxAccountId\x22,\x22foreignTable\x22:\x22fax_accounts\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]'},{'id':0x41,'name':_0x46a171(0x135),'description':_0x46a171(0x101),'parent':_0x3594b5+_0x46a171(0xfb),'table':_0x46a171(0xb0),'conditions':_0x46a171(0xe0),'joins':_0x46a171(0xed)},{'id':0x42,'name':_0x46a171(0xe6),'description':_0x46a171(0x119),'parent':_0x3594b5+_0x46a171(0xfb),'table':_0x46a171(0xb0),'conditions':_0x46a171(0x118),'joins':_0x46a171(0x11d)},{'id':0x43,'name':_0x46a171(0xe3),'description':_0x46a171(0xc0),'parent':_0x3594b5+_0x46a171(0xfb),'table':_0x46a171(0xb0),'conditions':_0x46a171(0x118)},{'id':0x44,'name':_0x46a171(0xca),'description':_0x46a171(0x133),'parent':_0x3594b5+_0x46a171(0xfb),'table':_0x46a171(0xf3),'joins':_0x46a171(0x159)},{'id':0x45,'name':_0x46a171(0xf1),'description':_0x46a171(0xb8),'parent':_0x3594b5+_0x46a171(0x134),'table':'whatsapp_interactions','joins':_0x46a171(0x138)},{'id':0x46,'name':_0x46a171(0x154),'description':_0x46a171(0x12c),'parent':_0x3594b5+_0x46a171(0x134),'table':_0x46a171(0x105),'conditions':_0x46a171(0x13f),'joins':_0x46a171(0x138)},{'id':0x47,'name':_0x46a171(0x14b),'description':_0x46a171(0xec),'parent':_0x3594b5+_0x46a171(0x134),'table':'whatsapp_interactions','conditions':_0x46a171(0xc7),'joins':_0x46a171(0x11d)},{'id':0x48,'name':'WhatsApp\x20By\x20Date','description':_0x46a171(0xef),'parent':_0x3594b5+_0x46a171(0x134),'table':_0x46a171(0x105),'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':_0x46a171(0x11c),'description':'WhatsApp\x20interactions\x20by\x20queue','parent':_0x3594b5+_0x46a171(0x134),'table':_0x46a171(0xd4),'joins':_0x46a171(0xe5)},{'id':0x4a,'name':_0x46a171(0x125),'description':_0x46a171(0xb9),'parent':_0x3594b5+_0x46a171(0xf6),'table':'voice_recordings','conditions':_0x46a171(0x155),'joins':_0x46a171(0x11d)},{'id':0x4b,'name':'Sentiment\x20Summary','description':_0x46a171(0x102),'parent':_0x3594b5+_0x46a171(0xf6),'table':_0x46a171(0xbd),'conditions':_0x46a171(0x112)}];}; \ No newline at end of file diff --git a/server/config/seedDB/report/fields.js b/server/config/seedDB/report/fields.js index ac466f8..14b3bfb 100644 --- a/server/config/seedDB/report/fields.js +++ b/server/config/seedDB/report/fields.js @@ -1 +1 @@ -const a868_0x55e5=['Unmanaged\x20HoldTime','ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(mail_interactions.createdAt)))','Talk\x20Time','queuecallercomplete','Billsec','duration','agentcomplete','fax_interactions.createdAt','fax_queues.name','destination','Abandoned\x20Rate>120s','Completed\x20(%)','queuecallerleaveAt','AgentACWTime','queuecallerexitreason','Tot\x20Abandoned','chat_interactions.createdAt','Pause\x20Time','Date','data1','ROUND(COUNT(IF(closed=1\x20&&\x20disposition=\x27abandoned\x27,1,NULL))/COUNT(id)\x20*100,1)','Negative(%)','QueueAbandonAt','UNIX_TIMESTAMP(queuecallercompleteAt)-UNIX_TIMESTAMP(queuecallerleaveAt)','fax_accounts.name','TotTalkTime','Tot\x20Unmanaged\x20Time','Timeout','lastevent','UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)','users.fullname','Abandoned','QueueExitAt','rating','EnterAt','ROUND(AVG(holdtime))','Email\x20Account','Abandoned\x20Rate<10s','dropreason','UnmanagedAt','Sms\x20Account','AvgACWTime','ExitAt','report_sms_queue.id','COUNT(IF(UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)\x20>=120,1,NULL))','SUM','lastdata','AvgTalkTime','POSITIVE','acwtime','CallerId','Answered','AnswerTime','CONCAT(ROUND((\x20(SELECT\x20COUNT(IF(voice_recordings.sentiment\x20=\x20\x27POSITIVE\x27,1,NULL)))*100/\x20COUNT\x20(voice_recordings.sentiment)),2),\x27%\x27)','UniqueId','UNIX_TIMESTAMP(queuecallerExitAt)-UNIX_TIMESTAMP(queuecallerjoinAt)','AgentConnectAt','Total\x20Calls','Abandoned\x20(%)','QueuePosition','AvgHandleTime','Source','Avg\x20ACWTime','DID','mail_interactions.createdAt','AVG\x20Hold\x20Time','AgentCompleteAt','Day','Calls','Total\x20(%)','position','ROUND(AVG(UNIX_TIMESTAMP(leaveAt)-UNIX_TIMESTAMP(joinAt)))','ROUND(SUM(IF(state=4,1,0))/COUNT(*)*100,1)','Abandon','Web\x20Site','CallerID','State','sms_interactions.id','COUNT(IF(closed=1\x20&&\x20disposition\x20=\x27unmanaged\x27,1,NULL))','source','openchannel_interactions.id','QueueAbandon','MIXED','ROUND(count(id)*100/(SELECT\x20COUNT(*)\x20FROM\x20cm_hopper_history\x20WHERE\x20campaigntype=\x27ivr\x27),2)','Abandoned\x20Rate\x2010-60s','agentconnectAt','AgentComplete','Project\x20Name','Closed','LastCallAt','DAYNAME(queuecallerjoinat)','COUNT(IF(reason=\x27timeout\x27,1,NULL))','Mixed(%)','Start\x20Time','Tot\x20TalkTime','Duration','billableseconds','sms_accounts.name','CallerIdName','QueueExit','CONCAT(ROUND((\x20(SELECT\x20COUNT(IF(voice_recordings.sentiment\x20=\x20\x27MIXED\x27,1,NULL)))*100/\x20COUNT\x20(voice_recordings.sentiment)),2),\x27%\x27)','Tot\x20Answered','whatsapp_interactions.id','dnid','Avg\x20Duration','mail_interactions.id','Abandoned>120s','openchannel_accounts.name','CASE\x20WHEN\x20queuecallercomplete=1\x20THEN\x20queuecallercompleteAt\x20ELSE\x20queuecallerLeaveAt\x20END','Pause','interface','holdtime','Drop\x20Reason','lastapplication','COUNT(IF(holdtime\x20>=30,1,NULL))','Abandoned\x2060-120s','COUNT(IF(UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)\x20<10,1,NULL))','UserId','project_name','UNIX_TIMESTAMP(leaveAt)-UNIX_TIMESTAMP(joinAt)','IF(queuecallercomplete=1,holdtime,null)','Answer\x20Rate\x2020-30s','report_mail_queue.id','Avg\x20Rating','Tot\x20Handle\x20Time','Abandoned\x20Rate\x2060-120s','sms_interactions.createdAt','accountcode','lodash','report_openchannel_queue.id','ROUND(COUNT(IF(UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)\x20<10,1,NULL))\x20/\x20SUM(queuecallerabandon)\x20*100,1)','ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(sms_interactions.createdAt)))','Openchannel\x20Account','SEC_TO_TIME','COUNT(IF(closed=1\x20&&\x20((disposition\x20!=\x27unmanaged\x27\x20&&\x20disposition\x20!=\x27abandoned\x27)\x20||\x20disposition\x20IS\x20NULL),1,NULL))','EndTime','uniqueid','UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(mail_interactions.createdAt)','ROUND(count(id)*100/(SELECT\x20COUNT(*)\x20FROM\x20cm_hopper_history\x20WHERE\x20campaigntype=\x27queue\x27),2)','enterAt','queuecallerabandon','Answer\x20Rate','Avg\x20HoldTime','node','Unmanaged','Neutral(%)','Interactions','LeaveAt','chat_websites.name','ROUND(SUM(queuecallercomplete)/COUNT(DISTINCT\x20uniqueid)*100,1)','Total','agentacw','Login\x20Time','Accepted','Event','type','report_whatsapp_queue.id','sms_interactions.closed','voice_recordings.sentiment','UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(whatsapp_interactions.createdAt)','ListId','connectedlinename','Hold\x20Time','ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(fax_interactions.createdAt)))','Global\x20Count','data','NEGATIVE','Whatsapp\x20Account','TotHandleTime','AVG\x20Interaction\x20Time','talktime\x20+\x20acwtime','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)','starttime','COUNT\x20DISTINCT','exitAt','ROUND(AVG(acwtime))','CallerIdNum','CompleteAt','sms_queues.name','COUNT(IF(holdtime\x20>=20\x20AND\x20holdtime\x20<30,1,NULL))','Open','COUNT(IF(closed=1,1,NULL))','openchannel_interactions.createdAt','talktime','ROUND(AVG(duration))','Sentiment\x20TOT','calleridnum','Agent','COUNT\x20(IF(voice_recordings.sentiment\x20=\x20\x27NEGATIVE\x27,1,NULL))','exports','blacklist','queuecallerjoinAt','membername','groupBy','Answered\x20>30s','ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(createdAt)))','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)','countglobal','ASC','Positive(%)','ROUND(COUNT(IF(holdtime<10,1,NULL))\x20/\x20SUM(agentcomplete)\x20*100,1)','UniqueID','COUNT','TalkTime','Block','UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(sms_interactions.createdAt)','ROUND(AVG(UNIX_TIMESTAMP(queuecallercompleteAt)-UNIX_TIMESTAMP(queuecallerleaveAt)))','Full\x20Name','Contacts','JoinAt','QueueExitReason','ROUND(COUNT(IF(UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)\x20>=120,1,NULL))\x20\x20/\x20SUM(queuecallerabandon)\x20*100,1)','End\x20Time','joinAt','queuecallerexit','HOUR','Total\x20Rating','agentcalledAt','UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(fax_interactions.createdAt)','AVG\x20Talk\x20Time','destinationchannel','SUM(IF(state=4,1,0))','queuecallerexitAt','report_chat_queue.id','AgentCalledAt','mail_accounts.name','Tot\x20HoldTime','Avg\x20Handle\x20Time','openchannel_queues.name','Reason','ROUND(AVG(UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)))','Abandon\x20Time','UNIX_TIMESTAMP(exitAt)-UNIX_TIMESTAMP(enterAt)','endtime','UnmanagedReason','UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(createdAt)','BlackList','Answered\x2010-20s','ROUND(COUNT(IF(holdtime\x20>=10\x20AND\x20holdtime\x20<20,1,NULL))\x20/\x20SUM(agentcomplete)\x20*100,1)','Destination','COUNT(IF(closed=0,1,NULL))','Campaign\x20Name','CONCAT(ROUND((\x20(SELECT\x20COUNT(IF(voice_recordings.sentiment\x20=\x20\x27NEUTRAL\x27,1,NULL)))*100/\x20COUNT\x20(voice_recordings.sentiment)),2),\x27%\x27)','Tot\x20Duration','AVG','CASE\x20WHEN\x20type=\x27LOGIN\x27\x20THEN\x20UNIX_TIMESTAMP(exitAt)-UNIX_TIMESTAMP(enterAt)\x20END','Offered','chat_interactions.id','Type','CASE\x20WHEN\x20queuecallercomplete=1\x20THEN\x20\x27YES\x27\x20ELSE\x20\x27NO\x27\x20END','StartTime','AgentExtension','Tag','Interface','DESC','statedesc','Caller\x20Id','Disposition','COUNT(IF(holdtime<10,1,NULL))','Interaction\x20Time','Fax\x20Account','DATE','CONCAT(ROUND((\x20(SELECT\x20COUNT(IF(voice_recordings.sentiment\x20=\x20\x27NEGATIVE\x27,1,NULL)))*100/\x20COUNT\x20(voice_recordings.sentiment)),2),\x27%\x27)','COUNT(IF(holdtime\x20>=10\x20AND\x20holdtime\x20<20,1,NULL))','calleridname','NEUTRAL','Calls\x20(%)','campaign','tag','SEC_TO_TIME(AVG(talktime))','ROUND(SUM(talktime\x20+\x20acwtime)/COUNT(agentcomplete))','CASE\x20WHEN\x20type=\x27TALKING\x27\x20THEN\x20UNIX_TIMESTAMP(exitAt)-UNIX_TIMESTAMP(enterAt)\x20END','chat_interactions.closed','disposition','Unique\x20Id','COUNT\x20(IF(voice_recordings.sentiment\x20=\x20\x27POSITIVE\x27,1,NULL))','ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(whatsapp_interactions.createdAt)))','whatsapp_queues.name','Answer\x20Rate\x20<10s','Penetration\x20Rate','leaveAt','mail_queues.name','AvgAbandonTime','COUNT(IF(UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)\x20>=10\x20AND\x20UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)\x20<60,1,NULL))','exten','ROUND(COUNT(IF(closed=1,1,NULL))/COUNT(id)\x20*100,1)','queuecallerjoinat','ROUND(COUNT(id)*100/(SELECT\x20COUNT(*)\x20FROM\x20cm_hopper_final\x20WHERE\x20state=4\x20and\x20campaigntype=\x27queue\x27),2)','QueueLeaveAt','TotACWTime','queue','Completed','Unmanaged\x20(%)','COUNT(IF(UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)\x20>=60\x20AND\x20UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)\x20<120,1,NULL))','Answer\x20Rate\x2010-20s','COUNT(IF(reason=\x27accepted\x27,1,NULL))','Hour','Answered\x20<10s','Queue','Answered\x2020-30s','mail_interactions.closed','queuecallerabandonAt','COUNT\x20(IF(voice_recordings.sentiment\x20=\x20\x27NEUTRAL\x27,1,NULL))','COUNT\x20(IF(voice_recordings.sentiment\x20=\x20\x27MIXED\x27,1,NULL))','answertime','Rated\x20Calls','HoldTime','reason','Abandoned<10s','ROUND(AVG(UNIX_TIMESTAMP(queuecallerExitAt)-UNIX_TIMESTAMP(queuecallerjoinAt)))','callerid','COUNT(IF(closed=1\x20&&\x20disposition\x20=\x27abandoned\x27,1,NULL))'];(function(_0x34474d,_0x55e5c5){const _0xd13cae=function(_0x58c5ba){while(--_0x58c5ba){_0x34474d['push'](_0x34474d['shift']());}};_0xd13cae(++_0x55e5c5);}(a868_0x55e5,0xad));const a868_0xd13c=function(_0x34474d,_0x55e5c5){_0x34474d=_0x34474d-0x0;let _0xd13cae=a868_0x55e5[_0x34474d];return _0xd13cae;};const _0x23989f=a868_0xd13c;'use strict';const _=require(_0x23989f('0x10b'));module[_0x23989f('0x10')]=function(){const _0x57f136=_0x23989f,_0x58c5ba=[{'field':'uniqueid','alias':_0x57f136('0xc1'),'ReportId':0x1},{'field':_0x57f136('0xd'),'alias':_0x57f136('0x3'),'ReportId':0x1},{'field':_0x57f136('0x5b'),'alias':'CallerIdName','ReportId':0x1},{'field':_0x57f136('0x75'),'alias':_0x57f136('0x7d'),'ReportId':0x1},{'field':_0x57f136('0x12'),'alias':'QueueJoinAt','ReportId':0x1},{'field':'queuecallerleaveAt','alias':_0x57f136('0x73'),'ReportId':0x1},{'field':_0x57f136('0x117'),'alias':_0x57f136('0xdc'),'ReportId':0x1},{'field':'queuecallerabandonAt','alias':_0x57f136('0xa1'),'ReportId':0x1},{'field':_0x57f136('0x8e'),'alias':'Complete','ReportId':0x1},{'field':'queuecallercompleteAt','alias':_0x57f136('0x4'),'ReportId':0x1},{'field':_0x57f136('0x29'),'alias':_0x57f136('0xee'),'ReportId':0x1},{'field':_0x57f136('0x31'),'alias':_0x57f136('0xab'),'ReportId':0x1},{'field':_0x57f136('0x99'),'alias':_0x57f136('0x25'),'ReportId':0x1},{'field':_0x57f136('0x6f'),'alias':_0x57f136('0xca'),'ReportId':0x1},{'field':'UNIX_TIMESTAMP(queuecallercompleteAt)-UNIX_TIMESTAMP(queuecallerleaveAt)','alias':_0x57f136('0x1e'),'format':_0x57f136('0x110'),'custom':0x1,'ReportId':0x1},{'field':_0x57f136('0xa8'),'alias':'AbandonTime','format':_0x57f136('0x110'),'custom':0x1,'ReportId':0x1},{'field':_0x57f136('0x103'),'alias':_0x57f136('0xbf'),'format':'SEC_TO_TIME','custom':0x1,'ReportId':0x1},{'field':_0x57f136('0xd'),'alias':'CallerID','ReportId':0x2},{'field':'queue','alias':'Queue','ReportId':0x2},{'field':'queuecallerjoinAt','alias':_0x57f136('0x4d'),'ReportId':0x2},{'field':_0x57f136('0xf7'),'alias':_0x57f136('0x112'),'custom':0x1,'ReportId':0x2},{'field':'holdtime','alias':_0x57f136('0x85'),'format':_0x57f136('0x110'),'ReportId':0x2},{'field':_0x57f136('0x4c'),'alias':_0x57f136('0xbe'),'custom':0x1,'ReportId':0x2},{'field':_0x57f136('0x113'),'alias':_0x57f136('0xc1'),'ReportId':0x3},{'field':_0x57f136('0xd'),'alias':'CallerIdNum','ReportId':0x3},{'field':_0x57f136('0x5b'),'alias':_0x57f136('0xed'),'ReportId':0x3},{'field':_0x57f136('0x75'),'alias':'Queue','ReportId':0x3},{'field':_0x57f136('0x13'),'alias':'Agent','ReportId':0x3},{'field':_0x57f136('0x2c'),'alias':_0x57f136('0x33'),'ReportId':0x3},{'field':_0x57f136('0xe0'),'alias':_0x57f136('0xc3'),'ReportId':0x3},{'field':'agentcompleteAt','alias':_0x57f136('0xcd'),'ReportId':0x3},{'field':_0x57f136('0xfa'),'alias':_0x57f136('0xbf'),'ReportId':0x3},{'field':_0x57f136('0xa'),'alias':_0x57f136('0x1e'),'ReportId':0x3},{'field':_0x57f136('0x122'),'alias':'AgentACW','ReportId':0x3},{'field':'acwtime','alias':_0x57f136('0x98'),'ReportId':0x3},{'field':'agentcomplete','alias':_0x57f136('0xe1'),'ReportId':0x3},{'field':'reason','alias':'HangupReason','ReportId':0x3},{'field':_0x57f136('0xa7'),'alias':'LastEvent','ReportId':0x3},{'field':_0x57f136('0x6f'),'alias':_0x57f136('0xca'),'ReportId':0x3},{'field':_0x57f136('0x13'),'alias':'Agent','groupBy':0x1,'ReportId':0x4},{'field':_0x57f136('0x91'),'alias':'Completed','function':'SUM','ReportId':0x4},{'field':'talktime','alias':_0x57f136('0xa4'),'function':_0x57f136('0xb8'),'format':_0x57f136('0x110'),'ReportId':0x4},{'field':_0x57f136('0xbc'),'alias':_0x57f136('0x74'),'function':_0x57f136('0xb8'),'format':'SEC_TO_TIME','ReportId':0x4},{'field':_0x57f136('0x135'),'alias':_0x57f136('0x133'),'function':_0x57f136('0xb8'),'format':_0x57f136('0x110'),'custom':0x1,'ReportId':0x4},{'field':'ROUND(AVG(talktime))','alias':_0x57f136('0xba'),'format':'SEC_TO_TIME','custom':0x1,'ReportId':0x4},{'field':'ROUND(AVG(acwtime))','alias':_0x57f136('0xb4'),'format':_0x57f136('0x110'),'custom':0x1,'ReportId':0x4},{'field':'ROUND(SUM(talktime\x20+\x20acwtime)/COUNT(agentcomplete))','alias':_0x57f136('0xc7'),'format':_0x57f136('0x110'),'custom':0x1,'ReportId':0x4},{'field':_0x57f136('0x75'),'alias':_0x57f136('0x7d'),'groupBy':0x1,'ReportId':0x5},{'field':_0x57f136('0x91'),'alias':_0x57f136('0x76'),'function':_0x57f136('0xb8'),'ReportId':0x5},{'field':_0x57f136('0xa'),'alias':_0x57f136('0xe9'),'function':'SUM','format':'SEC_TO_TIME','ReportId':0x5},{'field':'holdtime','alias':_0x57f136('0x35'),'function':_0x57f136('0xb8'),'format':_0x57f136('0x110'),'ReportId':0x5},{'field':'acwtime','alias':'Tot\x20ACWTime','function':'SUM','format':'SEC_TO_TIME','ReportId':0x5},{'field':'talktime\x20+\x20acwtime','alias':_0x57f136('0x107'),'function':'SUM','format':_0x57f136('0x110'),'custom':0x1,'ReportId':0x5},{'field':'ROUND(AVG(talktime))','alias':'Avg\x20TalkTime','format':_0x57f136('0x110'),'custom':0x1,'ReportId':0x5},{'field':_0x57f136('0xae'),'alias':_0x57f136('0x119'),'format':'SEC_TO_TIME','custom':0x1,'ReportId':0x5},{'field':_0x57f136('0x2'),'alias':_0x57f136('0xc9'),'format':_0x57f136('0x110'),'custom':0x1,'ReportId':0x5},{'field':_0x57f136('0x61'),'alias':_0x57f136('0x36'),'format':_0x57f136('0x110'),'custom':0x1,'ReportId':0x5},{'field':_0x57f136('0x75'),'alias':_0x57f136('0x7d'),'groupBy':0x1,'ReportId':0x6},{'field':'agentcomplete','alias':_0x57f136('0xf0'),'function':_0x57f136('0xb8'),'ReportId':0x6},{'field':_0x57f136('0x55'),'alias':'Answered\x20<10s','custom':0x1,'ReportId':0x6},{'field':_0x57f136('0x1b'),'alias':_0x57f136('0x69'),'custom':0x1,'ReportId':0x6},{'field':_0x57f136('0x5a'),'alias':'Answered\x2010-20s','custom':0x1,'ReportId':0x6},{'field':_0x57f136('0x41'),'alias':_0x57f136('0x79'),'custom':0x1,'ReportId':0x6},{'field':'COUNT(IF(holdtime\x20>=20\x20AND\x20holdtime\x20<30,1,NULL))','alias':_0x57f136('0x7e'),'custom':0x1,'ReportId':0x6},{'field':'ROUND(COUNT(IF(holdtime\x20>=20\x20AND\x20holdtime\x20<30,1,NULL))\x20/\x20SUM(agentcomplete)\x20*100,1)','alias':_0x57f136('0x104'),'custom':0x1,'ReportId':0x6},{'field':'COUNT(IF(holdtime\x20>=30,1,NULL))','alias':_0x57f136('0x15'),'custom':0x1,'ReportId':0x6},{'field':'ROUND(COUNT(IF(holdtime\x20>=30,1,NULL))\x20/\x20SUM(agentcomplete)\x20*100,1)','alias':'Answer\x20Rate\x20>30s','custom':0x1,'ReportId':0x6},{'field':_0x57f136('0x86'),'alias':'Reason','groupBy':0x1,'ReportId':0x7},{'field':_0x57f136('0x113'),'alias':'Calls','function':_0x57f136('0x1d'),'ReportId':0x7},{'field':_0x57f136('0xe0'),'alias':'Hour','format':_0x57f136('0x2a'),'groupBy':0x1,'ReportId':0x8},{'field':_0x57f136('0x91'),'alias':_0x57f136('0xf0'),'function':_0x57f136('0xb8'),'ReportId':0x8},{'field':_0x57f136('0x55'),'alias':_0x57f136('0x7c'),'custom':0x1,'ReportId':0x8},{'field':'COUNT(IF(holdtime\x20>=10\x20AND\x20holdtime\x20<20,1,NULL))','alias':_0x57f136('0x40'),'custom':0x1,'ReportId':0x8},{'field':_0x57f136('0x6'),'alias':'Answered\x2020-30s','custom':0x1,'ReportId':0x8},{'field':_0x57f136('0xfd'),'alias':_0x57f136('0x15'),'custom':0x1,'ReportId':0x8},{'field':_0x57f136('0x113'),'alias':_0x57f136('0xc1'),'ReportId':0x9},{'field':_0x57f136('0xd'),'alias':_0x57f136('0x3'),'ReportId':0x9},{'field':_0x57f136('0x75'),'alias':_0x57f136('0x7d'),'ReportId':0x9},{'field':_0x57f136('0x12'),'alias':_0x57f136('0x24'),'ReportId':0x9},{'field':_0x57f136('0x97'),'alias':_0x57f136('0x11e'),'ReportId':0x9},{'field':'queuecallerabandon','alias':_0x57f136('0xd4'),'ReportId':0x9},{'field':_0x57f136('0x80'),'alias':'AbandonAt','ReportId':0x9},{'field':'queuecallerexit','alias':_0x57f136('0x11b'),'ReportId':0x9},{'field':'queuecallerexitAt','alias':_0x57f136('0xb2'),'ReportId':0x9},{'field':_0x57f136('0x99'),'alias':_0x57f136('0x3d'),'ReportId':0x9},{'field':_0x57f136('0xd1'),'alias':_0x57f136('0xc6'),'ReportId':0x9},{'field':'exten','alias':_0x57f136('0xca'),'ReportId':0x9},{'field':_0x57f136('0xa8'),'alias':_0x57f136('0x3a'),'format':_0x57f136('0x110'),'custom':0x1,'ReportId':0x9},{'field':'UNIX_TIMESTAMP(queuecallerExitAt)-UNIX_TIMESTAMP(queuecallerjoinAt)','alias':_0x57f136('0x8b'),'format':_0x57f136('0x110'),'custom':0x1,'ReportId':0x9},{'field':_0x57f136('0x75'),'alias':_0x57f136('0x7d'),'groupBy':0x1,'ReportId':0xa},{'field':_0x57f136('0x117'),'alias':'Abandoned','function':_0x57f136('0xb8'),'ReportId':0xa},{'field':'queuecallerexit','alias':_0x57f136('0x11b'),'function':_0x57f136('0xb8'),'ReportId':0xa},{'field':'UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)','alias':'Tot\x20AbandonTime','function':_0x57f136('0xb8'),'format':_0x57f136('0x110'),'custom':0x1,'ReportId':0xa},{'field':_0x57f136('0x39'),'alias':_0x57f136('0x6d'),'format':_0x57f136('0x110'),'custom':0x1,'ReportId':0xa},{'field':_0x57f136('0xc2'),'alias':_0x57f136('0xa5'),'function':_0x57f136('0xb8'),'format':_0x57f136('0x110'),'custom':0x1,'ReportId':0xa},{'field':_0x57f136('0x88'),'alias':'Avg\x20Unmanaged\x20TIme','format':_0x57f136('0x110'),'custom':0x1,'ReportId':0xa},{'field':_0x57f136('0x99'),'alias':_0x57f136('0x38'),'groupBy':0x1,'ReportId':0xb},{'field':'queuecallerexit','alias':'Calls','function':_0x57f136('0xb8'),'ReportId':0xb},{'field':'UNIX_TIMESTAMP(queuecallerExitAt)-UNIX_TIMESTAMP(queuecallerjoinAt)','alias':_0x57f136('0xa5'),'function':_0x57f136('0xb8'),'custom':0x1,'ReportId':0xb},{'field':_0x57f136('0x75'),'alias':_0x57f136('0x7d'),'groupBy':0x1,'ReportId':0xc},{'field':_0x57f136('0x117'),'alias':_0x57f136('0x9a'),'function':'SUM','ReportId':0xc},{'field':_0x57f136('0xff'),'alias':_0x57f136('0x87'),'custom':0x1,'ReportId':0xc},{'field':_0x57f136('0x10d'),'alias':_0x57f136('0xb0'),'custom':0x1,'ReportId':0xc},{'field':_0x57f136('0x6e'),'alias':'Abandoned\x2010-60s','custom':0x1,'ReportId':0xc},{'field':_0x57f136('0x136'),'alias':_0x57f136('0xdf'),'custom':0x1,'ReportId':0xc},{'field':_0x57f136('0x78'),'alias':_0x57f136('0xfe'),'custom':0x1,'ReportId':0xc},{'field':_0x57f136('0x17'),'alias':_0x57f136('0x108'),'custom':0x1,'ReportId':0xc},{'field':_0x57f136('0xb7'),'alias':_0x57f136('0xf5'),'custom':0x1,'ReportId':0xc},{'field':_0x57f136('0x26'),'alias':_0x57f136('0x95'),'custom':0x1,'ReportId':0xc},{'field':_0x57f136('0x71'),'alias':'Date','format':'DATE','groupBy':0x1,'custom':0x1,'ReportId':0xd},{'field':_0x57f136('0x113'),'alias':_0x57f136('0x49'),'function':_0x57f136('0x0'),'ReportId':0xd},{'field':_0x57f136('0x8e'),'alias':_0x57f136('0x76'),'function':_0x57f136('0xb8'),'ReportId':0xd},{'field':_0x57f136('0x117'),'alias':_0x57f136('0xaa'),'function':_0x57f136('0xb8'),'custom':0x1,'ReportId':0xd},{'field':_0x57f136('0x29'),'alias':_0x57f136('0x11b'),'function':_0x57f136('0xb8'),'custom':0x1,'ReportId':0xd},{'field':_0x57f136('0xa2'),'alias':_0x57f136('0xe9'),'function':'SUM','format':_0x57f136('0x110'),'custom':0x1,'ReportId':0xd},{'field':_0x57f136('0x21'),'alias':_0x57f136('0xba'),'format':_0x57f136('0x110'),'custom':0x1,'ReportId':0xd},{'field':_0x57f136('0x39'),'alias':_0x57f136('0x6d'),'format':_0x57f136('0x110'),'custom':0x1,'ReportId':0xd},{'field':_0x57f136('0x71'),'alias':_0x57f136('0x7b'),'format':'HOUR','groupBy':0x1,'custom':0x1,'ReportId':0xe},{'field':_0x57f136('0x113'),'alias':_0x57f136('0x49'),'function':_0x57f136('0x0'),'ReportId':0xe},{'field':_0x57f136('0x8e'),'alias':_0x57f136('0xbe'),'function':_0x57f136('0xb8'),'ReportId':0xe},{'field':_0x57f136('0x120'),'alias':_0x57f136('0x118'),'custom':0x1,'ReportId':0xe},{'field':_0x57f136('0x117'),'alias':'Abandoned','function':_0x57f136('0xb8'),'ReportId':0xe},{'field':'queuecallerexit','alias':'Unmanaged','function':_0x57f136('0xb8'),'ReportId':0xe},{'field':_0x57f136('0xa2'),'alias':_0x57f136('0xe9'),'function':'SUM','format':'SEC_TO_TIME','custom':0x1,'ReportId':0xe},{'field':_0x57f136('0x21'),'alias':_0x57f136('0xba'),'format':_0x57f136('0x110'),'custom':0x1,'ReportId':0xe},{'field':_0x57f136('0x39'),'alias':'AvgAbandonTime','format':'SEC_TO_TIME','custom':0x1,'ReportId':0xe},{'field':'DAY(queuecallerjoinat)','alias':_0x57f136('0xce'),'groupBy':0x1,'custom':0x1,'ReportId':0xf},{'field':_0x57f136('0x113'),'alias':_0x57f136('0x49'),'function':_0x57f136('0x0'),'ReportId':0xf},{'field':'queuecallercomplete','alias':'Answered','function':'SUM','ReportId':0xf},{'field':_0x57f136('0x120'),'alias':_0x57f136('0x118'),'custom':0x1,'ReportId':0xf},{'field':_0x57f136('0x117'),'alias':'Abandoned','function':_0x57f136('0xb8'),'ReportId':0xf},{'field':_0x57f136('0x29'),'alias':_0x57f136('0x11b'),'function':_0x57f136('0xb8'),'ReportId':0xf},{'field':'UNIX_TIMESTAMP(queuecallercompleteAt)-UNIX_TIMESTAMP(queuecallerleaveAt)','alias':_0x57f136('0xe9'),'function':_0x57f136('0xb8'),'format':'SEC_TO_TIME','custom':0x1,'ReportId':0xf},{'field':_0x57f136('0x21'),'alias':_0x57f136('0xba'),'format':_0x57f136('0x110'),'custom':0x1,'ReportId':0xf},{'field':_0x57f136('0x39'),'alias':_0x57f136('0x6d'),'format':_0x57f136('0x110'),'custom':0x1,'ReportId':0xf},{'field':_0x57f136('0xe5'),'alias':'DayOfWeek','groupBy':0x1,'custom':0x1,'ReportId':0x10},{'field':_0x57f136('0x113'),'alias':_0x57f136('0x49'),'function':'COUNT\x20DISTINCT','ReportId':0x10},{'field':_0x57f136('0x8e'),'alias':_0x57f136('0xbe'),'function':_0x57f136('0xb8'),'ReportId':0x10},{'field':_0x57f136('0x120'),'alias':'Answer\x20Rate','custom':0x1,'ReportId':0x10},{'field':_0x57f136('0x117'),'alias':_0x57f136('0xaa'),'function':'SUM','orderBy':_0x57f136('0x19'),'ReportId':0x10},{'field':_0x57f136('0x29'),'alias':'Unmanaged','function':'SUM','ReportId':0x10},{'field':_0x57f136('0xa2'),'alias':_0x57f136('0xe9'),'function':_0x57f136('0xb8'),'format':'SEC_TO_TIME','custom':0x1,'ReportId':0x10},{'field':'ROUND(AVG(UNIX_TIMESTAMP(queuecallercompleteAt)-UNIX_TIMESTAMP(queuecallerleaveAt)))','alias':_0x57f136('0xba'),'format':_0x57f136('0x110'),'custom':0x1,'ReportId':0x10},{'field':_0x57f136('0x39'),'alias':'AvgAbandonTime','format':_0x57f136('0x110'),'custom':0x1,'ReportId':0x10},{'field':'queue','alias':_0x57f136('0x7d'),'groupBy':0x1,'ReportId':0x11},{'field':'uniqueid','alias':_0x57f136('0x49'),'function':_0x57f136('0x0'),'ReportId':0x11},{'field':'queuecallercomplete','alias':_0x57f136('0xbe'),'function':_0x57f136('0xb8'),'ReportId':0x11},{'field':_0x57f136('0x120'),'alias':_0x57f136('0x118'),'custom':0x1,'ReportId':0x11},{'field':_0x57f136('0x117'),'alias':'Abandoned','function':'SUM','ReportId':0x11},{'field':_0x57f136('0x29'),'alias':_0x57f136('0x11b'),'function':_0x57f136('0xb8'),'ReportId':0x11},{'field':_0x57f136('0xa2'),'alias':_0x57f136('0xe9'),'function':_0x57f136('0xb8'),'format':_0x57f136('0x110'),'custom':0x1,'ReportId':0x11},{'field':_0x57f136('0x21'),'alias':'AvgTalkTime','format':'SEC_TO_TIME','custom':0x1,'ReportId':0x11},{'field':'ROUND(AVG(UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)))','alias':'AvgAbandonTime','format':_0x57f136('0x110'),'custom':0x1,'ReportId':0x11},{'field':_0x57f136('0x113'),'alias':_0x57f136('0x1c'),'ReportId':0x12},{'field':_0x57f136('0x126'),'alias':_0x57f136('0x4b'),'ReportId':0x12},{'field':'tag','alias':'Tag','ReportId':0x12},{'field':_0x57f136('0xda'),'alias':_0x57f136('0xc8'),'ReportId':0x12},{'field':_0x57f136('0x94'),'alias':_0x57f136('0x42'),'ReportId':0x12},{'field':'callerid','alias':_0x57f136('0xd6'),'ReportId':0x12},{'field':_0x57f136('0x2f'),'alias':'DestChannel','ReportId':0x12},{'field':_0x57f136('0xfc'),'alias':'LastApp','ReportId':0x12},{'field':_0x57f136('0xb9'),'alias':'LastData','ReportId':0x12},{'field':_0x57f136('0x137'),'alias':'StartTime','ReportId':0x12},{'field':_0x57f136('0x83'),'alias':'AnswerTime','ReportId':0x12},{'field':_0x57f136('0x3c'),'alias':_0x57f136('0x112'),'ReportId':0x12},{'field':_0x57f136('0x90'),'alias':_0x57f136('0xea'),'ReportId':0x12},{'field':'disposition','alias':_0x57f136('0x54'),'ReportId':0x12},{'field':_0x57f136('0x113'),'alias':_0x57f136('0x1c'),'ReportId':0x13},{'field':_0x57f136('0x10a'),'alias':_0x57f136('0x4e'),'ReportId':0x13},{'field':_0x57f136('0xda'),'alias':_0x57f136('0xc8'),'ReportId':0x13},{'field':_0x57f136('0x94'),'alias':_0x57f136('0x42'),'ReportId':0x13},{'field':_0x57f136('0x89'),'alias':_0x57f136('0xbd'),'ReportId':0x13},{'field':'starttime','alias':'StartTime','ReportId':0x13},{'field':_0x57f136('0x83'),'alias':_0x57f136('0xbf'),'ReportId':0x13},{'field':_0x57f136('0x3c'),'alias':'EndTime','ReportId':0x13},{'field':_0x57f136('0x90'),'alias':_0x57f136('0xea'),'format':_0x57f136('0x110'),'ReportId':0x13},{'field':_0x57f136('0xeb'),'alias':_0x57f136('0x8f'),'format':_0x57f136('0x110'),'ReportId':0x13},{'field':_0x57f136('0x64'),'alias':_0x57f136('0x54'),'ReportId':0x13},{'field':_0x57f136('0x5f'),'alias':_0x57f136('0x4f'),'ReportId':0x13},{'field':_0x57f136('0x126'),'alias':_0x57f136('0x4b'),'groupBy':0x1,'ReportId':0x14},{'field':_0x57f136('0x113'),'alias':_0x57f136('0xcf'),'function':_0x57f136('0x1d'),'ReportId':0x14},{'field':'duration','alias':_0x57f136('0x46'),'function':_0x57f136('0xb8'),'format':_0x57f136('0x110'),'ReportId':0x14},{'field':_0x57f136('0xb'),'alias':_0x57f136('0xf3'),'format':_0x57f136('0x110'),'custom':0x1,'ReportId':0x14},{'field':_0x57f136('0x64'),'alias':_0x57f136('0x54'),'groupBy':0x1,'ReportId':0x15},{'field':'uniqueid','alias':_0x57f136('0xcf'),'function':'COUNT','ReportId':0x15},{'field':_0x57f136('0x90'),'alias':'Tot\x20Duration','function':_0x57f136('0xb8'),'format':'SEC_TO_TIME','ReportId':0x15},{'field':_0x57f136('0xb'),'alias':_0x57f136('0xf3'),'format':_0x57f136('0x110'),'custom':0x1,'ReportId':0x15},{'field':'SUBSTRING_INDEX(channel,\x20\x22-\x22,\x201)','alias':_0x57f136('0xe'),'groupBy':0x1,'custom':0x1,'ReportId':0x16},{'field':_0x57f136('0x113'),'alias':_0x57f136('0xcf'),'function':_0x57f136('0x1d'),'ReportId':0x16},{'field':'duration','alias':_0x57f136('0x46'),'function':'SUM','format':_0x57f136('0x110'),'ReportId':0x16},{'field':_0x57f136('0xb'),'alias':'Avg\x20Duration','format':_0x57f136('0x110'),'custom':0x1,'ReportId':0x16},{'field':_0x57f136('0x137'),'alias':_0x57f136('0x9d'),'format':_0x57f136('0x58'),'groupBy':0x1,'ReportId':0x17},{'field':_0x57f136('0x113'),'alias':_0x57f136('0xcf'),'function':_0x57f136('0x1d'),'ReportId':0x17},{'field':_0x57f136('0x90'),'alias':_0x57f136('0x46'),'function':'SUM','format':_0x57f136('0x110'),'ReportId':0x17},{'field':_0x57f136('0xb'),'alias':'Avg\x20Duration','format':'SEC_TO_TIME','custom':0x1,'ReportId':0x17},{'field':'membername','alias':_0x57f136('0xe'),'groupBy':0x1,'orderBy':_0x57f136('0x19'),'ReportId':0x18},{'field':_0x57f136('0x3b'),'alias':'Duration','function':_0x57f136('0xb8'),'format':_0x57f136('0x110'),'custom':0x1,'ReportId':0x18},{'field':_0x57f136('0x13'),'alias':_0x57f136('0xe'),'groupBy':0x1,'ReportId':0x19},{'field':_0x57f136('0x48'),'alias':_0x57f136('0x123'),'function':_0x57f136('0xb8'),'format':_0x57f136('0x110'),'custom':0x1,'ReportId':0x19},{'field':_0x57f136('0x62'),'alias':_0x57f136('0x8d'),'function':'SUM','format':_0x57f136('0x110'),'custom':0x1,'ReportId':0x19},{'field':'CASE\x20WHEN\x20type=\x27PAUSE\x27\x20THEN\x20UNIX_TIMESTAMP(exitAt)-UNIX_TIMESTAMP(enterAt)\x20END','alias':_0x57f136('0x9c'),'function':_0x57f136('0xb8'),'format':_0x57f136('0x110'),'custom':0x1,'ReportId':0x19},{'field':_0x57f136('0x13'),'alias':_0x57f136('0xe'),'ReportId':0x1a},{'field':_0x57f136('0x116'),'alias':_0x57f136('0xad'),'ReportId':0x1a},{'field':_0x57f136('0x1'),'alias':_0x57f136('0xb5'),'ReportId':0x1a},{'field':_0x57f136('0x9e'),'alias':_0x57f136('0xf8'),'ReportId':0x1a},{'field':_0x57f136('0x90'),'alias':_0x57f136('0xea'),'format':_0x57f136('0x110'),'ReportId':0x1a},{'field':_0x57f136('0x13'),'alias':'Agent','ReportId':0x1b},{'field':_0x57f136('0xf9'),'alias':_0x57f136('0x50'),'ReportId':0x1b},{'field':_0x57f136('0x126'),'alias':_0x57f136('0x125'),'ReportId':0x1b},{'field':'data1','alias':_0x57f136('0x4b'),'ReportId':0x1b},{'field':_0x57f136('0x116'),'alias':_0x57f136('0xad'),'ReportId':0x1b},{'field':'exitAt','alias':'ExitAt','ReportId':0x1b},{'field':_0x57f136('0x3b'),'alias':_0x57f136('0xea'),'format':'SEC_TO_TIME','custom':0x1,'ReportId':0x1b},{'field':_0x57f136('0x13'),'alias':'Agent','groupBy':0x1,'orderBy':_0x57f136('0x19'),'ReportId':0x1c},{'field':_0x57f136('0x9e'),'alias':'PauseType','groupBy':0x1,'orderBy':_0x57f136('0x19'),'ReportId':0x1c},{'field':_0x57f136('0x3b'),'alias':_0x57f136('0xea'),'function':_0x57f136('0xb8'),'format':_0x57f136('0x110'),'custom':0x1,'ReportId':0x1c},{'field':_0x57f136('0x101'),'alias':_0x57f136('0xe2'),'ReportId':0x1d},{'field':_0x57f136('0x113'),'alias':_0x57f136('0xc1'),'ReportId':0x1d},{'field':'callerid','alias':_0x57f136('0xbd'),'ReportId':0x1d},{'field':_0x57f136('0xf2'),'alias':_0x57f136('0xca'),'ReportId':0x1d},{'field':_0x57f136('0x28'),'alias':_0x57f136('0xe8'),'orderBy':_0x57f136('0x19'),'ReportId':0x1d},{'field':_0x57f136('0x6b'),'alias':_0x57f136('0x27'),'ReportId':0x1d},{'field':_0x57f136('0x102'),'alias':_0x57f136('0xea'),'format':_0x57f136('0x110'),'custom':0x1,'ReportId':0x1d},{'field':_0x57f136('0x113'),'alias':_0x57f136('0x65'),'ReportId':0x1e},{'field':_0x57f136('0x101'),'alias':_0x57f136('0xe2'),'ReportId':0x1e},{'field':_0x57f136('0x89'),'alias':_0x57f136('0x53'),'ReportId':0x1e},{'field':_0x57f136('0x11a'),'alias':_0x57f136('0x1f'),'ReportId':0x1e},{'field':_0x57f136('0x130'),'alias':'Data','ReportId':0x1e},{'field':_0x57f136('0x12c'),'alias':'Agent','groupBy':0x1,'ReportId':0x1f},{'field':_0x57f136('0x113'),'alias':'Recorded\x20Calls','function':_0x57f136('0x1d'),'ReportId':0x1f},{'field':_0x57f136('0xac'),'alias':'Total\x20Rating','function':_0x57f136('0xb8'),'ReportId':0x1f},{'field':_0x57f136('0xac'),'alias':_0x57f136('0x106'),'function':_0x57f136('0x47'),'ReportId':0x1f},{'field':_0x57f136('0x75'),'alias':_0x57f136('0x7d'),'groupBy':0x1,'ReportId':0x20},{'field':_0x57f136('0x113'),'alias':_0x57f136('0x84'),'function':_0x57f136('0x1d'),'ReportId':0x20},{'field':'rating','alias':_0x57f136('0x2b'),'function':_0x57f136('0xb8'),'ReportId':0x20},{'field':'rating','alias':_0x57f136('0x106'),'function':_0x57f136('0x47'),'ReportId':0x20},{'field':_0x57f136('0x5e'),'alias':'Campaign\x20Name','ReportId':0x21},{'field':_0x57f136('0xd'),'alias':'CallerIdNum','ReportId':0x21},{'field':_0x57f136('0x137'),'alias':_0x57f136('0xe4'),'orderBy':_0x57f136('0x51'),'ReportId':0x21},{'field':_0x57f136('0x52'),'alias':_0x57f136('0xd7'),'ReportId':0x21},{'field':_0x57f136('0x18'),'alias':_0x57f136('0x12f'),'ReportId':0x21},{'field':_0x57f136('0xb1'),'alias':_0x57f136('0xfb'),'ReportId':0x21},{'field':_0x57f136('0x11'),'alias':_0x57f136('0x3f'),'ReportId':0x21},{'field':'membername','alias':_0x57f136('0xe'),'ReportId':0x21},{'field':_0x57f136('0xa'),'alias':_0x57f136('0x8d'),'ReportId':0x21},{'field':_0x57f136('0x64'),'alias':_0x57f136('0x54'),'ReportId':0x21},{'field':_0x57f136('0x113'),'alias':'UniqueId','ReportId':0x21},{'field':'statedesc','alias':'State','groupBy':!![],'orderBy':_0x57f136('0x19'),'ReportId':0x22},{'field':'id','alias':'Calls','function':'COUNT','ReportId':0x22},{'field':_0x57f136('0x115'),'alias':_0x57f136('0x5d'),'custom':!![],'ReportId':0x22},{'field':_0x57f136('0x5e'),'alias':_0x57f136('0x44'),'orderBy':_0x57f136('0x19'),'groupBy':!![],'ReportId':0x23},{'field':_0x57f136('0x52'),'alias':_0x57f136('0xd7'),'groupBy':!![],'ReportId':0x23},{'field':'id','alias':'Total\x20Calls','function':_0x57f136('0x1d'),'ReportId':0x23},{'field':'ListId','groupBy':!![],'orderBy':_0x57f136('0x19'),'ReportId':0x24},{'field':'id','alias':_0x57f136('0x23'),'function':_0x57f136('0x1d'),'ReportId':0x24},{'field':_0x57f136('0x30'),'alias':'Managed','custom':!![],'ReportId':0x24},{'field':_0x57f136('0xd3'),'alias':_0x57f136('0x6a'),'custom':!![],'ReportId':0x24},{'field':'membername','alias':_0x57f136('0xe'),'groupBy':!![],'orderBy':_0x57f136('0x19'),'ReportId':0x25},{'field':'id','alias':_0x57f136('0xcf'),'function':'COUNT','ReportId':0x25},{'field':_0x57f136('0x60'),'alias':_0x57f136('0x2e'),'custom':!![],'ReportId':0x25},{'field':_0x57f136('0x64'),'alias':'Disposition','groupBy':!![],'ReportId':0x26},{'field':'id','alias':'Total','function':_0x57f136('0x1d'),'ReportId':0x26},{'field':_0x57f136('0x72'),'alias':'Total\x20(%)','custom':!![],'ReportId':0x26},{'field':_0x57f136('0x13'),'alias':_0x57f136('0xe'),'groupBy':!![],'ReportId':0x27},{'field':_0x57f136('0x64'),'alias':'Disposition','groupBy':!![],'ReportId':0x27},{'field':'id','alias':_0x57f136('0x121'),'function':'COUNT','ReportId':0x27},{'field':'ROUND(COUNT(id)*100/(SELECT\x20COUNT(*)\x20FROM\x20cm_hopper_final\x20WHERE\x20state=4\x20and\x20campaigntype=\x27queue\x27),2)','alias':_0x57f136('0xd0'),'custom':!![],'ReportId':0x27},{'field':_0x57f136('0x5e'),'alias':_0x57f136('0x44'),'ReportId':0x28},{'field':_0x57f136('0xd'),'alias':_0x57f136('0x3'),'ReportId':0x28},{'field':_0x57f136('0x137'),'alias':_0x57f136('0xe4'),'orderBy':_0x57f136('0x51'),'ReportId':0x28},{'field':'statedesc','alias':_0x57f136('0xd7'),'ReportId':0x28},{'field':_0x57f136('0x18'),'alias':_0x57f136('0x12f'),'ReportId':0x28},{'field':_0x57f136('0xb1'),'alias':'Drop\x20Reason','ReportId':0x28},{'field':_0x57f136('0x11'),'alias':_0x57f136('0x3f'),'ReportId':0x28},{'field':'talktime','alias':'Talk\x20Time','ReportId':0x28},{'field':_0x57f136('0x113'),'alias':'UniqueId','ReportId':0x28},{'field':_0x57f136('0x52'),'alias':_0x57f136('0xd7'),'groupBy':!![],'orderBy':_0x57f136('0x19'),'ReportId':0x29},{'field':'id','alias':_0x57f136('0xcf'),'function':_0x57f136('0x1d'),'ReportId':0x29},{'field':_0x57f136('0xde'),'alias':_0x57f136('0x5d'),'custom':!![],'ReportId':0x29},{'field':_0x57f136('0x5e'),'alias':'Campaign\x20Name','orderBy':'ASC','groupBy':!![],'ReportId':0x2a},{'field':_0x57f136('0x52'),'alias':_0x57f136('0xd7'),'groupBy':!![],'ReportId':0x2a},{'field':'id','alias':_0x57f136('0xc4'),'function':'COUNT','ReportId':0x2a},{'field':_0x57f136('0x12b'),'groupBy':!![],'orderBy':'ASC','ReportId':0x2b},{'field':'id','alias':'Contacts','function':_0x57f136('0x1d'),'ReportId':0x2b},{'field':_0x57f136('0x30'),'alias':'Managed','custom':!![],'ReportId':0x2b},{'field':_0x57f136('0xd3'),'alias':_0x57f136('0x6a'),'custom':!![],'ReportId':0x2b},{'field':_0x57f136('0x11f'),'alias':_0x57f136('0xd5'),'groupBy':!![],'ReportId':0x2c},{'field':_0x57f136('0x4a'),'alias':_0x57f136('0x11d'),'function':'COUNT','ReportId':0x2c},{'field':'COUNT(IF(closed=0,1,NULL))','alias':'Open','custom':!![],'ReportId':0x2c},{'field':_0x57f136('0x111'),'alias':_0x57f136('0xe3'),'custom':!![],'ReportId':0x2c},{'field':_0x57f136('0xd9'),'alias':'Unmanaged','custom':!![],'ReportId':0x2c},{'field':_0x57f136('0x8a'),'alias':_0x57f136('0xaa'),'custom':!![],'ReportId':0x2c},{'field':_0x57f136('0x11f'),'alias':'Web\x20Site','groupBy':!![],'ReportId':0x2d},{'field':'UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(chat_interactions.createdAt)','alias':_0x57f136('0x56'),'function':'SUM','format':_0x57f136('0x110'),'custom':!![],'ReportId':0x2d},{'field':'ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(chat_interactions.createdAt)))','alias':'AVG\x20Interaction\x20Time','format':'SEC_TO_TIME','custom':!![],'ReportId':0x2d},{'field':'users.fullname','alias':_0x57f136('0xe'),'groupBy':!![],'ReportId':0x2e},{'field':_0x57f136('0x63'),'alias':'Closed','function':_0x57f136('0xb8'),'ReportId':0x2e},{'field':'UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(chat_interactions.createdAt)','alias':'Interaction\x20Time','function':_0x57f136('0xb8'),'format':_0x57f136('0x110'),'custom':!![],'ReportId':0x2e},{'field':'ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(chat_interactions.createdAt)))','alias':_0x57f136('0x134'),'format':_0x57f136('0x110'),'custom':!![],'ReportId':0x2e},{'field':_0x57f136('0x9b'),'alias':'Date','format':'DATE','groupBy':!![],'custom':!![],'ReportId':0x2f},{'field':'chat_interactions.id','alias':_0x57f136('0x11d'),'function':_0x57f136('0x1d'),'ReportId':0x2f},{'field':_0x57f136('0x111'),'alias':'Completed','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':_0x57f136('0x96'),'custom':!![],'ReportId':0x2f},{'field':_0x57f136('0xd9'),'alias':_0x57f136('0x11b'),'custom':!![],'ReportId':0x2f},{'field':'ROUND(COUNT(IF(closed=1\x20&&\x20disposition=\x27unmanaged\x27,1,NULL))/COUNT(id)\x20*100,1)','alias':_0x57f136('0x77'),'custom':!![],'ReportId':0x2f},{'field':_0x57f136('0x8a'),'alias':_0x57f136('0xaa'),'custom':!![],'ReportId':0x2f},{'field':_0x57f136('0x9f'),'alias':_0x57f136('0xc5'),'custom':!![],'ReportId':0x2f},{'field':_0x57f136('0x3e'),'alias':_0x57f136('0x56'),'function':_0x57f136('0xb8'),'format':_0x57f136('0x110'),'custom':!![],'ReportId':0x2f},{'field':_0x57f136('0x16'),'alias':'AVG\x20Interaction\x20Time','format':'SEC_TO_TIME','custom':!![],'ReportId':0x2f},{'field':'chat_queues.name','alias':_0x57f136('0x7d'),'groupBy':!![],'ReportId':0x30},{'field':_0x57f136('0x32'),'alias':_0x57f136('0x11d'),'function':_0x57f136('0x1d'),'ReportId':0x30},{'field':_0x57f136('0x7a'),'alias':_0x57f136('0x124'),'custom':!![],'ReportId':0x30},{'field':_0x57f136('0xe6'),'alias':_0x57f136('0xa6'),'custom':!![],'ReportId':0x30},{'field':_0x57f136('0x102'),'alias':_0x57f136('0x12d'),'function':'SUM','format':_0x57f136('0x110'),'custom':!![],'ReportId':0x30},{'field':_0x57f136('0xd2'),'alias':_0x57f136('0xcc'),'format':_0x57f136('0x110'),'custom':!![],'ReportId':0x30},{'field':'mail_accounts.name','alias':_0x57f136('0xaf'),'groupBy':!![],'ReportId':0x31},{'field':_0x57f136('0xf4'),'alias':_0x57f136('0x11d'),'function':_0x57f136('0x1d'),'ReportId':0x31},{'field':_0x57f136('0x43'),'alias':_0x57f136('0x7'),'custom':!![],'ReportId':0x31},{'field':_0x57f136('0x8'),'alias':_0x57f136('0xe3'),'custom':!![],'ReportId':0x31},{'field':_0x57f136('0x34'),'alias':'Email\x20Account','groupBy':!![],'ReportId':0x32},{'field':_0x57f136('0x114'),'alias':'Interaction\x20Time','function':_0x57f136('0xb8'),'format':'SEC_TO_TIME','custom':!![],'ReportId':0x32},{'field':_0x57f136('0x8c'),'alias':_0x57f136('0x134'),'format':_0x57f136('0x110'),'custom':!![],'ReportId':0x32},{'field':'users.fullname','alias':_0x57f136('0xe'),'groupBy':!![],'ReportId':0x33},{'field':_0x57f136('0x7f'),'alias':_0x57f136('0xe3'),'function':_0x57f136('0xb8'),'ReportId':0x33},{'field':_0x57f136('0x114'),'alias':_0x57f136('0x56'),'function':_0x57f136('0xb8'),'format':_0x57f136('0x110'),'custom':!![],'ReportId':0x33},{'field':_0x57f136('0x8c'),'alias':'AVG\x20Interaction\x20Time','format':'SEC_TO_TIME','custom':!![],'ReportId':0x33},{'field':_0x57f136('0xcb'),'alias':_0x57f136('0x9d'),'format':_0x57f136('0x58'),'groupBy':!![],'custom':!![],'ReportId':0x34},{'field':_0x57f136('0xf4'),'alias':'Interactions','function':_0x57f136('0x1d'),'ReportId':0x34},{'field':_0x57f136('0x8'),'alias':'Completed','custom':!![],'ReportId':0x34},{'field':_0x57f136('0x70'),'alias':'Completed\x20(%)','custom':!![],'ReportId':0x34},{'field':_0x57f136('0x3e'),'alias':'Interaction\x20Time','function':_0x57f136('0xb8'),'format':_0x57f136('0x110'),'custom':!![],'ReportId':0x34},{'field':'ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(createdAt)))','alias':_0x57f136('0x134'),'format':_0x57f136('0x110'),'custom':!![],'ReportId':0x34},{'field':_0x57f136('0x6c'),'alias':'Queue','groupBy':!![],'ReportId':0x35},{'field':_0x57f136('0x105'),'alias':_0x57f136('0x11d'),'function':_0x57f136('0x1d'),'ReportId':0x35},{'field':_0x57f136('0x7a'),'alias':_0x57f136('0x124'),'custom':!![],'ReportId':0x35},{'field':'COUNT(IF(reason=\x27timeout\x27,1,NULL))','alias':'Timeout','custom':!![],'ReportId':0x35},{'field':_0x57f136('0x102'),'alias':_0x57f136('0x12d'),'function':_0x57f136('0xb8'),'format':_0x57f136('0x110'),'custom':!![],'ReportId':0x35},{'field':_0x57f136('0xd2'),'alias':_0x57f136('0xcc'),'format':'SEC_TO_TIME','custom':!![],'ReportId':0x35},{'field':_0x57f136('0xf6'),'alias':_0x57f136('0x10f'),'groupBy':!![],'ReportId':0x36},{'field':_0x57f136('0xdb'),'alias':_0x57f136('0x11d'),'function':_0x57f136('0x1d'),'ReportId':0x36},{'field':_0x57f136('0x43'),'alias':'Open','custom':!![],'ReportId':0x36},{'field':_0x57f136('0x8'),'alias':_0x57f136('0xe3'),'custom':!![],'ReportId':0x36},{'field':_0x57f136('0xf6'),'alias':_0x57f136('0x10f'),'groupBy':!![],'ReportId':0x37},{'field':'UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(openchannel_interactions.createdAt)','alias':_0x57f136('0x56'),'function':'SUM','format':_0x57f136('0x110'),'custom':!![],'ReportId':0x37},{'field':'ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(openchannel_interactions.createdAt)))','alias':_0x57f136('0x134'),'format':'SEC_TO_TIME','custom':!![],'ReportId':0x37},{'field':_0x57f136('0xa9'),'alias':_0x57f136('0xe'),'groupBy':!![],'ReportId':0x38},{'field':'openchannel_interactions.closed','alias':'Closed','function':_0x57f136('0xb8'),'ReportId':0x38},{'field':'UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(openchannel_interactions.createdAt)','alias':_0x57f136('0x56'),'function':_0x57f136('0xb8'),'format':_0x57f136('0x110'),'custom':!![],'ReportId':0x38},{'field':'ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(openchannel_interactions.createdAt)))','alias':_0x57f136('0x134'),'format':_0x57f136('0x110'),'custom':!![],'ReportId':0x38},{'field':_0x57f136('0x9'),'alias':_0x57f136('0x9d'),'format':_0x57f136('0x58'),'groupBy':!![],'custom':!![],'ReportId':0x39},{'field':_0x57f136('0xdb'),'alias':_0x57f136('0x11d'),'function':_0x57f136('0x1d'),'ReportId':0x39},{'field':_0x57f136('0x8'),'alias':'Completed','custom':!![],'ReportId':0x39},{'field':_0x57f136('0x70'),'alias':_0x57f136('0x96'),'custom':!![],'ReportId':0x39},{'field':_0x57f136('0x3e'),'alias':_0x57f136('0x56'),'function':_0x57f136('0xb8'),'format':_0x57f136('0x110'),'custom':!![],'ReportId':0x39},{'field':_0x57f136('0x16'),'alias':_0x57f136('0x134'),'format':_0x57f136('0x110'),'custom':!![],'ReportId':0x39},{'field':_0x57f136('0x37'),'alias':_0x57f136('0x7d'),'groupBy':!![],'ReportId':0x3a},{'field':_0x57f136('0x10c'),'alias':_0x57f136('0x11d'),'function':_0x57f136('0x1d'),'ReportId':0x3a},{'field':_0x57f136('0x7a'),'alias':_0x57f136('0x124'),'custom':!![],'ReportId':0x3a},{'field':_0x57f136('0xe6'),'alias':_0x57f136('0xa6'),'custom':!![],'ReportId':0x3a},{'field':_0x57f136('0x102'),'alias':_0x57f136('0x12d'),'function':'SUM','format':_0x57f136('0x110'),'custom':!![],'ReportId':0x3a},{'field':_0x57f136('0xd2'),'alias':'AVG\x20Hold\x20Time','format':'SEC_TO_TIME','custom':!![],'ReportId':0x3a},{'field':'sms_accounts.name','alias':_0x57f136('0xb3'),'groupBy':!![],'ReportId':0x3b},{'field':_0x57f136('0xd8'),'alias':_0x57f136('0x11d'),'function':_0x57f136('0x1d'),'ReportId':0x3b},{'field':'COUNT(IF(closed=0,1,NULL))','alias':_0x57f136('0x7'),'custom':!![],'ReportId':0x3b},{'field':'COUNT(IF(closed=1,1,NULL))','alias':_0x57f136('0xe3'),'custom':!![],'ReportId':0x3b},{'field':_0x57f136('0xec'),'alias':_0x57f136('0xb3'),'groupBy':!![],'ReportId':0x3c},{'field':_0x57f136('0x20'),'alias':_0x57f136('0x56'),'function':_0x57f136('0xb8'),'format':_0x57f136('0x110'),'custom':!![],'ReportId':0x3c},{'field':'ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(sms_interactions.createdAt)))','alias':'AVG\x20Interaction\x20Time','format':_0x57f136('0x110'),'custom':!![],'ReportId':0x3c},{'field':_0x57f136('0xa9'),'alias':_0x57f136('0xe'),'groupBy':!![],'ReportId':0x3d},{'field':_0x57f136('0x128'),'alias':'Closed','function':_0x57f136('0xb8'),'ReportId':0x3d},{'field':_0x57f136('0x20'),'alias':'Interaction\x20Time','function':_0x57f136('0xb8'),'format':'SEC_TO_TIME','custom':!![],'ReportId':0x3d},{'field':_0x57f136('0x10e'),'alias':_0x57f136('0x134'),'format':'SEC_TO_TIME','custom':!![],'ReportId':0x3d},{'field':_0x57f136('0x109'),'alias':_0x57f136('0x9d'),'format':_0x57f136('0x58'),'groupBy':!![],'custom':!![],'ReportId':0x3e},{'field':_0x57f136('0xd8'),'alias':_0x57f136('0x11d'),'function':_0x57f136('0x1d'),'ReportId':0x3e},{'field':'COUNT(IF(closed=1,1,NULL))','alias':_0x57f136('0x76'),'custom':!![],'ReportId':0x3e},{'field':'ROUND(COUNT(IF(closed=1,1,NULL))/COUNT(id)\x20*100,1)','alias':_0x57f136('0x96'),'custom':!![],'ReportId':0x3e},{'field':_0x57f136('0x3e'),'alias':_0x57f136('0x56'),'function':_0x57f136('0xb8'),'format':_0x57f136('0x110'),'custom':!![],'ReportId':0x3e},{'field':_0x57f136('0x16'),'alias':_0x57f136('0x134'),'format':_0x57f136('0x110'),'custom':!![],'ReportId':0x3e},{'field':_0x57f136('0x5'),'alias':_0x57f136('0x7d'),'groupBy':!![],'ReportId':0x3f},{'field':_0x57f136('0xb6'),'alias':_0x57f136('0x11d'),'function':_0x57f136('0x1d'),'ReportId':0x3f},{'field':'COUNT(IF(reason=\x27accepted\x27,1,NULL))','alias':'Accepted','custom':!![],'ReportId':0x3f},{'field':_0x57f136('0xe6'),'alias':_0x57f136('0xa6'),'custom':!![],'ReportId':0x3f},{'field':_0x57f136('0x102'),'alias':_0x57f136('0x12d'),'function':_0x57f136('0xb8'),'format':_0x57f136('0x110'),'custom':!![],'ReportId':0x3f},{'field':_0x57f136('0xd2'),'alias':_0x57f136('0xcc'),'format':'SEC_TO_TIME','custom':!![],'ReportId':0x3f},{'field':_0x57f136('0x93'),'alias':_0x57f136('0x7d'),'groupBy':!![],'ReportId':0x44},{'field':'report_fax_queue.id','alias':_0x57f136('0x11d'),'function':_0x57f136('0x1d'),'ReportId':0x44},{'field':'COUNT(IF(reason=\x27accepted\x27,1,NULL))','alias':_0x57f136('0x124'),'custom':!![],'ReportId':0x44},{'field':_0x57f136('0xe6'),'alias':_0x57f136('0xa6'),'custom':!![],'ReportId':0x44},{'field':'UNIX_TIMESTAMP(leaveAt)-UNIX_TIMESTAMP(joinAt)','alias':_0x57f136('0x12d'),'function':_0x57f136('0xb8'),'format':_0x57f136('0x110'),'custom':!![],'ReportId':0x44},{'field':_0x57f136('0xd2'),'alias':'AVG\x20Hold\x20Time','format':'SEC_TO_TIME','custom':!![],'ReportId':0x44},{'field':_0x57f136('0x92'),'alias':_0x57f136('0x9d'),'format':'DATE','groupBy':!![],'custom':!![],'ReportId':0x43},{'field':'fax_interactions.id','alias':_0x57f136('0x11d'),'function':_0x57f136('0x1d'),'ReportId':0x43},{'field':'COUNT(IF(closed=1,1,NULL))','alias':_0x57f136('0x76'),'custom':!![],'ReportId':0x43},{'field':_0x57f136('0x70'),'alias':_0x57f136('0x96'),'custom':!![],'ReportId':0x43},{'field':_0x57f136('0x3e'),'alias':'Interaction\x20Time','function':'SUM','format':'SEC_TO_TIME','custom':!![],'ReportId':0x43},{'field':'ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(createdAt)))','alias':'AVG\x20Interaction\x20Time','format':_0x57f136('0x110'),'custom':!![],'ReportId':0x43},{'field':_0x57f136('0xa9'),'alias':'Agent','groupBy':!![],'ReportId':0x42},{'field':'fax_interactions.closed','alias':_0x57f136('0xe3'),'function':_0x57f136('0xb8'),'ReportId':0x42},{'field':_0x57f136('0x2d'),'alias':_0x57f136('0x56'),'function':_0x57f136('0xb8'),'format':_0x57f136('0x110'),'custom':!![],'ReportId':0x42},{'field':_0x57f136('0x12e'),'alias':_0x57f136('0x134'),'format':_0x57f136('0x110'),'custom':!![],'ReportId':0x42},{'field':_0x57f136('0xa3'),'alias':_0x57f136('0x57'),'groupBy':!![],'ReportId':0x41},{'field':'UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(fax_interactions.createdAt)','alias':'Interaction\x20Time','function':_0x57f136('0xb8'),'format':_0x57f136('0x110'),'custom':!![],'ReportId':0x41},{'field':_0x57f136('0x12e'),'alias':_0x57f136('0x134'),'format':_0x57f136('0x110'),'custom':!![],'ReportId':0x41},{'field':_0x57f136('0xa3'),'alias':_0x57f136('0x57'),'groupBy':!![],'ReportId':0x40},{'field':'fax_interactions.id','alias':'Interactions','function':_0x57f136('0x1d'),'ReportId':0x40},{'field':_0x57f136('0x43'),'alias':_0x57f136('0x7'),'custom':!![],'ReportId':0x40},{'field':_0x57f136('0x8'),'alias':'Closed','custom':!![],'ReportId':0x40},{'field':'voice_recordings.UserId','alias':_0x57f136('0x100'),'groupBy':!![],'custom':![],'ReportId':0x4a},{'field':_0x57f136('0xa9'),'alias':_0x57f136('0x22'),'groupBy':![],'custom':![],'ReportId':0x4a},{'field':_0x57f136('0x66'),'alias':_0x57f136('0xbb'),'groupBy':![],'custom':!![],'ReportId':0x4a},{'field':_0x57f136('0xf'),'alias':_0x57f136('0x131'),'groupBy':![],'custom':!![],'ReportId':0x4a},{'field':_0x57f136('0x81'),'alias':'NEUTRAL','groupBy':![],'custom':!![],'ReportId':0x4a},{'field':_0x57f136('0x82'),'alias':_0x57f136('0xdd'),'groupBy':![],'custom':!![],'ReportId':0x4a},{'field':_0x57f136('0x129'),'alias':'TOT','function':_0x57f136('0x1d'),'groupBy':![],'custom':![],'ReportId':0x4a},{'field':_0x57f136('0xc0'),'alias':_0x57f136('0x1a'),'groupBy':![],'custom':!![],'ReportId':0x45},{'field':_0x57f136('0x59'),'alias':_0x57f136('0xa0'),'groupBy':![],'custom':!![],'ReportId':0x4a},{'field':_0x57f136('0x45'),'alias':_0x57f136('0x11c'),'groupBy':![],'custom':!![],'ReportId':0x4a},{'field':_0x57f136('0xef'),'alias':'Mixed(%)','groupBy':![],'custom':!![],'ReportId':0x4a},{'field':_0x57f136('0x129'),'alias':_0x57f136('0xc'),'function':_0x57f136('0x1d'),'groupBy':![],'custom':![],'ReportId':0x4b},{'field':_0x57f136('0x66'),'alias':_0x57f136('0xbb'),'groupBy':![],'custom':!![],'ReportId':0x4b},{'field':_0x57f136('0xf'),'alias':_0x57f136('0x131'),'groupBy':![],'custom':!![],'ReportId':0x4b},{'field':_0x57f136('0x81'),'alias':_0x57f136('0x5c'),'groupBy':![],'custom':!![],'ReportId':0x4b},{'field':_0x57f136('0x82'),'alias':_0x57f136('0xdd'),'groupBy':![],'custom':!![],'ReportId':0x4b},{'field':_0x57f136('0xc0'),'alias':_0x57f136('0x1a'),'groupBy':![],'custom':!![],'ReportId':0x4b},{'field':'CONCAT(ROUND((\x20(SELECT\x20COUNT(IF(voice_recordings.sentiment\x20=\x20\x27NEGATIVE\x27,1,NULL)))*100/\x20COUNT\x20(voice_recordings.sentiment)),2),\x27%\x27)','alias':_0x57f136('0xa0'),'groupBy':![],'custom':!![],'ReportId':0x4b},{'field':_0x57f136('0x45'),'alias':'Neutral(%)','groupBy':![],'custom':!![],'ReportId':0x4b},{'field':_0x57f136('0xef'),'alias':_0x57f136('0xe7'),'groupBy':![],'custom':!![],'ReportId':0x4b},{'field':'whatsapp_accounts.name','alias':_0x57f136('0x132'),'groupBy':!![],'ReportId':0x45},{'field':_0x57f136('0xf1'),'alias':_0x57f136('0x11d'),'function':_0x57f136('0x1d'),'ReportId':0x45},{'field':_0x57f136('0x43'),'alias':_0x57f136('0x7'),'custom':!![],'ReportId':0x45},{'field':_0x57f136('0x8'),'alias':_0x57f136('0xe3'),'custom':!![],'ReportId':0x45},{'field':'whatsapp_accounts.name','alias':_0x57f136('0x132'),'groupBy':!![],'ReportId':0x46},{'field':_0x57f136('0x12a'),'alias':_0x57f136('0x56'),'function':'SUM','format':'SEC_TO_TIME','custom':!![],'ReportId':0x46},{'field':_0x57f136('0x67'),'alias':_0x57f136('0x134'),'format':'SEC_TO_TIME','custom':!![],'ReportId':0x46},{'field':'users.fullname','alias':'Agent','groupBy':!![],'ReportId':0x47},{'field':'whatsapp_interactions.closed','alias':_0x57f136('0xe3'),'function':_0x57f136('0xb8'),'ReportId':0x47},{'field':_0x57f136('0x12a'),'alias':_0x57f136('0x56'),'function':_0x57f136('0xb8'),'format':_0x57f136('0x110'),'custom':!![],'ReportId':0x47},{'field':_0x57f136('0x67'),'alias':'AVG\x20Interaction\x20Time','format':_0x57f136('0x110'),'custom':!![],'ReportId':0x47},{'field':'whatsapp_interactions.createdAt','alias':_0x57f136('0x9d'),'format':'DATE','groupBy':!![],'custom':!![],'ReportId':0x48},{'field':'whatsapp_interactions.id','alias':'Interactions','function':_0x57f136('0x1d'),'ReportId':0x48},{'field':_0x57f136('0x8'),'alias':'Completed','custom':!![],'ReportId':0x48},{'field':_0x57f136('0x70'),'alias':_0x57f136('0x96'),'custom':!![],'ReportId':0x48},{'field':_0x57f136('0x3e'),'alias':_0x57f136('0x56'),'function':_0x57f136('0xb8'),'format':_0x57f136('0x110'),'custom':!![],'ReportId':0x48},{'field':_0x57f136('0x16'),'alias':_0x57f136('0x134'),'format':_0x57f136('0x110'),'custom':!![],'ReportId':0x48},{'field':_0x57f136('0x68'),'alias':'Queue','groupBy':!![],'ReportId':0x49},{'field':_0x57f136('0x127'),'alias':_0x57f136('0x11d'),'function':'COUNT','ReportId':0x49},{'field':'COUNT(IF(reason=\x27accepted\x27,1,NULL))','alias':'Accepted','custom':!![],'ReportId':0x49},{'field':'COUNT(IF(reason=\x27timeout\x27,1,NULL))','alias':'Timeout','custom':!![],'ReportId':0x49},{'field':_0x57f136('0x102'),'alias':_0x57f136('0x12d'),'function':_0x57f136('0xb8'),'format':'SEC_TO_TIME','custom':!![],'ReportId':0x49},{'field':_0x57f136('0xd2'),'alias':_0x57f136('0xcc'),'format':_0x57f136('0x110'),'custom':!![],'ReportId':0x49}];return _[_0x57f136('0x14')](_0x58c5ba,'ReportId');}; \ No newline at end of file +const a1030_0x3a09=['Abandon','CASE\x20WHEN\x20queuecallercomplete=1\x20THEN\x20\x27YES\x27\x20ELSE\x20\x27NO\x27\x20END','openchannel_interactions.closed','Abandoned','Project\x20Name','ROUND(AVG(UNIX_TIMESTAMP(queuecallerExitAt)-UNIX_TIMESTAMP(queuecallerjoinAt)))','COUNT','Web\x20Site','ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(mail_interactions.createdAt)))','leaveAt','Offered','POSITIVE','countglobal','Caller\x20Id','Answer\x20Rate\x20>30s','queuecallerleaveAt','TOT','holdtime','SEC_TO_TIME','Abandoned\x20Rate>120s','Abandon\x20Time','uniqueid','AbandonAt','MIXED','CONCAT(ROUND((\x20(SELECT\x20COUNT(IF(voice_recordings.sentiment\x20=\x20\x27POSITIVE\x27,1,NULL)))*100/\x20COUNT\x20(voice_recordings.sentiment)),2),\x27%\x27)','report_whatsapp_queue.id','UNIX_TIMESTAMP(queuecallercompleteAt)-UNIX_TIMESTAMP(queuecallerleaveAt)','HangupReason','Completed','users.fullname','Day','CASE\x20WHEN\x20queuecallercomplete=1\x20THEN\x20queuecallercompleteAt\x20ELSE\x20queuecallerLeaveAt\x20END','queuecallerabandonAt','ROUND(AVG(UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)))','Answered\x20<10s','ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(createdAt)))','Neutral(%)','ROUND(SUM(talktime\x20+\x20acwtime)/COUNT(agentcomplete))','AVG\x20Interaction\x20Time','COUNT\x20(IF(voice_recordings.sentiment\x20=\x20\x27POSITIVE\x27,1,NULL))','mail_interactions.createdAt','ROUND(COUNT(IF(holdtime<10,1,NULL))\x20/\x20SUM(agentcomplete)\x20*100,1)','Positive(%)','sms_queues.name','Tot\x20Abandoned','sms_interactions.createdAt','TotACWTime','sms_interactions.id','node','Tot\x20Unmanaged\x20Time','COUNT(IF(closed=1\x20&&\x20disposition\x20=\x27unmanaged\x27,1,NULL))','AvgHandleTime','Timeout','lastapplication','Complete','EndTime','project_name','mail_queues.name','queuecallerabandon','Queue','lastevent','endtime','Closed','End\x20Time','COUNT\x20(IF(voice_recordings.sentiment\x20=\x20\x27MIXED\x27,1,NULL))','Penetration\x20Rate','QueueAbandon','UniqueID','Tot\x20Duration','NEGATIVE','Unique\x20Id','COUNT(IF(holdtime<10,1,NULL))','destinationchannel','Duration','Drop\x20Reason','reason','whatsapp_accounts.name','queuecallerexitreason','agentcomplete','mail_accounts.name','Avg\x20TalkTime','LastEvent','COUNT(IF(closed=1,1,NULL))','COUNT\x20DISTINCT','Recorded\x20Calls','SUBSTRING_INDEX(channel,\x20\x22-\x22,\x201)','openchannel_interactions.id','Avg\x20HoldTime','AvgAbandonTime','ROUND(AVG(holdtime))','Answered','mail_interactions.id','queuecallercomplete','ASC','lastdata','ROUND(COUNT(IF(closed=1\x20&&\x20disposition=\x27abandoned\x27,1,NULL))/COUNT(id)\x20*100,1)','UserId','Managed','CallerId','Campaign\x20Name','enterAt','lodash','QueueExitReason','Abandoned\x20(%)','COUNT\x20(IF(voice_recordings.sentiment\x20=\x20\x27NEUTRAL\x27,1,NULL))','Abandoned\x2010-60s','connectedlinename','Abandoned\x20Rate\x2060-120s','COUNT(IF(holdtime\x20>=10\x20AND\x20holdtime\x20<20,1,NULL))','Abandoned>120s','AnswerTime','QueueLeaveAt','DESC','Tot\x20HoldTime','data','Total\x20(%)','acwtime','CallerIdNum','EnterAt','AvgTalkTime','SEC_TO_TIME(AVG(talktime))','blacklist','CallerIdName','report_sms_queue.id','AgentCompleteAt','Interactions','voice_recordings.sentiment','Agent','Completed\x20(%)','Answered\x2010-20s','chat_queues.name','Avg\x20Unmanaged\x20TIme','UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(fax_interactions.createdAt)','Avg\x20ACWTime','Answer\x20Rate\x2020-30s','source','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)','AbandonTime','COUNT(IF(closed=1\x20&&\x20disposition\x20=\x27abandoned\x27,1,NULL))','UNIX_TIMESTAMP(queuecallerExitAt)-UNIX_TIMESTAMP(queuecallerjoinAt)','Hour','Abandoned\x20Rate<10s','chat_websites.name','Type','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)','Tot\x20TalkTime','queuecallerexit','starttime','Abandoned<10s','sms_accounts.name','Login\x20Time','DestChannel','ROUND(COUNT(IF(UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)\x20>=120,1,NULL))\x20\x20/\x20SUM(queuecallerabandon)\x20*100,1)','interface','COUNT(IF(reason=\x27accepted\x27,1,NULL))','tag','COUNT(IF(reason=\x27timeout\x27,1,NULL))','duration','CASE\x20WHEN\x20type=\x27LOGIN\x27\x20THEN\x20UNIX_TIMESTAMP(exitAt)-UNIX_TIMESTAMP(enterAt)\x20END','chat_interactions.createdAt','dropreason','ListId','Tot\x20ACWTime','exten','Mixed(%)','data1','Total\x20Calls','dnid','Total\x20Rating','fax_queues.name','CASE\x20WHEN\x20type=\x27TALKING\x27\x20THEN\x20UNIX_TIMESTAMP(exitAt)-UNIX_TIMESTAMP(enterAt)\x20END','AvgACWTime','whatsapp_interactions.closed','openchannel_queues.name','Sentiment\x20TOT','ROUND(COUNT(IF(holdtime\x20>=20\x20AND\x20holdtime\x20<30,1,NULL))\x20/\x20SUM(agentcomplete)\x20*100,1)','voice_recordings.UserId','State','COUNT(IF(UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)\x20<10,1,NULL))','Hold\x20Time','fax_accounts.name','Talk\x20Time','UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)','Fax\x20Account','report_mail_queue.id','JoinAt','DayOfWeek','Avg\x20Rating','Answer\x20Rate','Calls','UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(sms_interactions.createdAt)','AVG\x20Talk\x20Time','UNIX_TIMESTAMP(exitAt)-UNIX_TIMESTAMP(enterAt)','Tot\x20AbandonTime','CONCAT(ROUND((\x20(SELECT\x20COUNT(IF(voice_recordings.sentiment\x20=\x20\x27MIXED\x27,1,NULL)))*100/\x20COUNT\x20(voice_recordings.sentiment)),2),\x27%\x27)','queuecallerjoinAt','TotHandleTime','UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(chat_interactions.createdAt)','ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(fax_interactions.createdAt)))','COUNT(IF(holdtime\x20>=30,1,NULL))','CompleteAt','Pause','Unmanaged\x20HoldTime','Email\x20Account','AVG\x20Hold\x20Time','ROUND(count(id)*100/(SELECT\x20COUNT(*)\x20FROM\x20cm_hopper_history\x20WHERE\x20campaigntype=\x27queue\x27),2)','Destination','ROUND(COUNT(IF(UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)\x20<10,1,NULL))\x20/\x20SUM(queuecallerabandon)\x20*100,1)','queue','COUNT(IF(UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)\x20>=10\x20AND\x20UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)\x20<60,1,NULL))','ROUND(SUM(queuecallercomplete)/COUNT(DISTINCT\x20uniqueid)*100,1)','ROUND(count(id)*100/(SELECT\x20COUNT(*)\x20FROM\x20cm_hopper_history\x20WHERE\x20campaigntype=\x27ivr\x27),2)','AVG','whatsapp_interactions.id','Disposition','answertime','talktime\x20+\x20acwtime','campaign','openchannel_accounts.name','HoldTime','ROUND(COUNT(IF(closed=1,1,NULL))/COUNT(id)\x20*100,1)','Answer\x20Rate\x2010-20s','rating','calleridnum','Whatsapp\x20Account','Date','ROUND(AVG(UNIX_TIMESTAMP(leaveAt)-UNIX_TIMESTAMP(joinAt)))','Tot\x20Answered','Accepted','Avg\x20Handle\x20Time','whatsapp_queues.name','NEUTRAL','TalkTime','ROUND(COUNT(id)*100/(SELECT\x20COUNT(*)\x20FROM\x20cm_hopper_final\x20WHERE\x20state=4\x20and\x20campaigntype=\x27queue\x27),2)','AgentCalledAt','UNIX_TIMESTAMP(leaveAt)-UNIX_TIMESTAMP(joinAt)','Reason','Answer\x20Rate\x20<10s','agentacw','fax_interactions.id','COUNT(IF(holdtime\x20>=20\x20AND\x20holdtime\x20<30,1,NULL))','AgentACWTime','membername','calleridname','queuecallercompleteAt','Answered\x20>30s','Full\x20Name','whatsapp_interactions.createdAt','CASE\x20WHEN\x20type=\x27PAUSE\x27\x20THEN\x20UNIX_TIMESTAMP(exitAt)-UNIX_TIMESTAMP(enterAt)\x20END','LastApp','DATE','ROUND(SUM(IF(state=4,1,0))/COUNT(*)*100,1)','Contacts','ROUND(AVG(UNIX_TIMESTAMP(queuecallercompleteAt)-UNIX_TIMESTAMP(queuecallerleaveAt)))','UnmanagedAt','UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(createdAt)','Interface','COUNT(IF(closed=1\x20&&\x20((disposition\x20!=\x27unmanaged\x27\x20&&\x20disposition\x20!=\x27abandoned\x27)\x20||\x20disposition\x20IS\x20NULL),1,NULL))','Negative(%)','callerid','LeaveAt','Pause\x20Time','ROUND(AVG(duration))','Block','accountcode','fax_interactions.createdAt','Total','Open','Sms\x20Account','report_openchannel_queue.id','DAY(queuecallerjoinat)','COUNT\x20(IF(voice_recordings.sentiment\x20=\x20\x27NEGATIVE\x27,1,NULL))','UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(mail_interactions.createdAt)','LastData','exitAt','StartTime','ROUND(COUNT(IF(closed=1\x20&&\x20disposition=\x27unmanaged\x27,1,NULL))/COUNT(id)\x20*100,1)','agentcalledAt','sms_interactions.closed','Tag','SUM','statedesc','Calls\x20(%)','disposition','UniqueId','queuecallerjoinat','Abandoned\x2060-120s','ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(sms_interactions.createdAt)))','Source','DID','UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(whatsapp_interactions.createdAt)','SUM(IF(state=4,1,0))','type','groupBy','chat_interactions.id','ReportId','QueueJoinAt','joinAt','Unmanaged','Unmanaged\x20(%)','COUNT(IF(UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)\x20>=120,1,NULL))','IF(queuecallercomplete=1,holdtime,null)','QueueExit','CallerID','ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(chat_interactions.createdAt)))','Avg\x20Duration','COUNT(IF(closed=0,1,NULL))','AgentExtension','billableseconds','HOUR','Global\x20Count','BlackList','QueuePosition','agentconnectAt','ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(openchannel_interactions.createdAt)))','ROUND(AVG(acwtime))','mail_interactions.closed','QueueAbandonAt','Interaction\x20Time','AgentComplete','talktime','ExitAt'];(function(_0x47f116,_0x182b49){const _0x3a0986=function(_0x21ea87){while(--_0x21ea87){_0x47f116['push'](_0x47f116['shift']());}};_0x3a0986(++_0x182b49);}(a1030_0x3a09,0x152));const a1030_0x21ea=function(_0x47f116,_0x182b49){_0x47f116=_0x47f116-0x177;let _0x3a0986=a1030_0x3a09[_0x47f116];return _0x3a0986;};const a1030_0x405e62=a1030_0x21ea;'use strict';const _=require(a1030_0x405e62(0x1cc));module['exports']=function(){const _0x333ee2=a1030_0x405e62,_0x5311b4=[{'field':_0x333ee2(0x17c),'alias':'UniqueId','ReportId':0x1},{'field':_0x333ee2(0x246),'alias':_0x333ee2(0x1dc),'ReportId':0x1},{'field':_0x333ee2(0x25a),'alias':_0x333ee2(0x1e1),'ReportId':0x1},{'field':_0x333ee2(0x237),'alias':_0x333ee2(0x1a2),'ReportId':0x1},{'field':_0x333ee2(0x22a),'alias':_0x333ee2(0x28f),'ReportId':0x1},{'field':_0x333ee2(0x2b8),'alias':_0x333ee2(0x1d6),'ReportId':0x1},{'field':_0x333ee2(0x1a1),'alias':_0x333ee2(0x1a9),'ReportId':0x1},{'field':_0x333ee2(0x187),'alias':_0x333ee2(0x2a4),'ReportId':0x1},{'field':_0x333ee2(0x1c3),'alias':_0x333ee2(0x19d),'ReportId':0x1},{'field':_0x333ee2(0x25b),'alias':_0x333ee2(0x22f),'ReportId':0x1},{'field':_0x333ee2(0x1f9),'alias':_0x333ee2(0x295),'ReportId':0x1},{'field':'queuecallerexitAt','alias':'QueueExitAt','ReportId':0x1},{'field':'queuecallerexitreason','alias':_0x333ee2(0x1cd),'ReportId':0x1},{'field':_0x333ee2(0x20a),'alias':_0x333ee2(0x288),'ReportId':0x1},{'field':_0x333ee2(0x181),'alias':_0x333ee2(0x24f),'format':_0x333ee2(0x179),'custom':0x1,'ReportId':0x1},{'field':_0x333ee2(0x21d),'alias':_0x333ee2(0x1f0),'format':_0x333ee2(0x179),'custom':0x1,'ReportId':0x1},{'field':_0x333ee2(0x294),'alias':_0x333ee2(0x1d5),'format':_0x333ee2(0x179),'custom':0x1,'ReportId':0x1},{'field':_0x333ee2(0x246),'alias':_0x333ee2(0x296),'ReportId':0x2},{'field':_0x333ee2(0x237),'alias':_0x333ee2(0x1a2),'ReportId':0x2},{'field':_0x333ee2(0x22a),'alias':_0x333ee2(0x27a),'ReportId':0x2},{'field':_0x333ee2(0x186),'alias':_0x333ee2(0x19e),'custom':0x1,'ReportId':0x2},{'field':'holdtime','alias':_0x333ee2(0x242),'format':_0x333ee2(0x179),'ReportId':0x2},{'field':_0x333ee2(0x2aa),'alias':'Answered','custom':0x1,'ReportId':0x2},{'field':_0x333ee2(0x17c),'alias':_0x333ee2(0x283),'ReportId':0x3},{'field':_0x333ee2(0x246),'alias':'CallerIdNum','ReportId':0x3},{'field':_0x333ee2(0x25a),'alias':_0x333ee2(0x1e1),'ReportId':0x3},{'field':_0x333ee2(0x237),'alias':_0x333ee2(0x1a2),'ReportId':0x3},{'field':'membername','alias':'Agent','ReportId':0x3},{'field':_0x333ee2(0x27c),'alias':_0x333ee2(0x251),'ReportId':0x3},{'field':'agentconnectAt','alias':'AgentConnectAt','ReportId':0x3},{'field':'agentcompleteAt','alias':_0x333ee2(0x1e3),'ReportId':0x3},{'field':_0x333ee2(0x178),'alias':'AnswerTime','ReportId':0x3},{'field':_0x333ee2(0x2a7),'alias':'TalkTime','ReportId':0x3},{'field':_0x333ee2(0x255),'alias':'AgentACW','ReportId':0x3},{'field':'acwtime','alias':_0x333ee2(0x258),'ReportId':0x3},{'field':'agentcomplete','alias':_0x333ee2(0x2a6),'ReportId':0x3},{'field':_0x333ee2(0x1b2),'alias':_0x333ee2(0x182),'ReportId':0x3},{'field':_0x333ee2(0x1a3),'alias':_0x333ee2(0x1b8),'ReportId':0x3},{'field':_0x333ee2(0x20a),'alias':_0x333ee2(0x288),'ReportId':0x3},{'field':_0x333ee2(0x259),'alias':_0x333ee2(0x1e6),'groupBy':0x1,'ReportId':0x4},{'field':'agentcomplete','alias':_0x333ee2(0x183),'function':_0x333ee2(0x27f),'ReportId':0x4},{'field':_0x333ee2(0x2a7),'alias':'TotTalkTime','function':_0x333ee2(0x27f),'format':_0x333ee2(0x179),'ReportId':0x4},{'field':_0x333ee2(0x1db),'alias':_0x333ee2(0x195),'function':_0x333ee2(0x27f),'format':_0x333ee2(0x179),'ReportId':0x4},{'field':_0x333ee2(0x23f),'alias':_0x333ee2(0x22b),'function':_0x333ee2(0x27f),'format':'SEC_TO_TIME','custom':0x1,'ReportId':0x4},{'field':'ROUND(AVG(talktime))','alias':_0x333ee2(0x1de),'format':_0x333ee2(0x179),'custom':0x1,'ReportId':0x4},{'field':'ROUND(AVG(acwtime))','alias':_0x333ee2(0x212),'format':'SEC_TO_TIME','custom':0x1,'ReportId':0x4},{'field':_0x333ee2(0x18c),'alias':_0x333ee2(0x19a),'format':_0x333ee2(0x179),'custom':0x1,'ReportId':0x4},{'field':_0x333ee2(0x237),'alias':_0x333ee2(0x1a2),'groupBy':0x1,'ReportId':0x5},{'field':_0x333ee2(0x1b5),'alias':_0x333ee2(0x183),'function':_0x333ee2(0x27f),'ReportId':0x5},{'field':_0x333ee2(0x2a7),'alias':_0x333ee2(0x1f8),'function':'SUM','format':_0x333ee2(0x179),'ReportId':0x5},{'field':_0x333ee2(0x178),'alias':_0x333ee2(0x1d8),'function':_0x333ee2(0x27f),'format':_0x333ee2(0x179),'ReportId':0x5},{'field':_0x333ee2(0x1db),'alias':_0x333ee2(0x209),'function':'SUM','format':_0x333ee2(0x179),'ReportId':0x5},{'field':_0x333ee2(0x23f),'alias':'Tot\x20Handle\x20Time','function':_0x333ee2(0x27f),'format':_0x333ee2(0x179),'custom':0x1,'ReportId':0x5},{'field':'ROUND(AVG(talktime))','alias':_0x333ee2(0x1b7),'format':_0x333ee2(0x179),'custom':0x1,'ReportId':0x5},{'field':_0x333ee2(0x1c0),'alias':_0x333ee2(0x1be),'format':_0x333ee2(0x179),'custom':0x1,'ReportId':0x5},{'field':_0x333ee2(0x2a2),'alias':_0x333ee2(0x1ec),'format':_0x333ee2(0x179),'custom':0x1,'ReportId':0x5},{'field':_0x333ee2(0x18c),'alias':_0x333ee2(0x24c),'format':_0x333ee2(0x179),'custom':0x1,'ReportId':0x5},{'field':_0x333ee2(0x237),'alias':_0x333ee2(0x1a2),'groupBy':0x1,'ReportId':0x6},{'field':_0x333ee2(0x1b5),'alias':'Tot\x20Answered','function':_0x333ee2(0x27f),'ReportId':0x6},{'field':_0x333ee2(0x1ae),'alias':_0x333ee2(0x189),'custom':0x1,'ReportId':0x6},{'field':_0x333ee2(0x190),'alias':_0x333ee2(0x254),'custom':0x1,'ReportId':0x6},{'field':_0x333ee2(0x1d3),'alias':_0x333ee2(0x1e8),'custom':0x1,'ReportId':0x6},{'field':'ROUND(COUNT(IF(holdtime\x20>=10\x20AND\x20holdtime\x20<20,1,NULL))\x20/\x20SUM(agentcomplete)\x20*100,1)','alias':_0x333ee2(0x244),'custom':0x1,'ReportId':0x6},{'field':_0x333ee2(0x257),'alias':'Answered\x2020-30s','custom':0x1,'ReportId':0x6},{'field':_0x333ee2(0x216),'alias':_0x333ee2(0x1ed),'custom':0x1,'ReportId':0x6},{'field':_0x333ee2(0x22e),'alias':_0x333ee2(0x25c),'custom':0x1,'ReportId':0x6},{'field':'ROUND(COUNT(IF(holdtime\x20>=30,1,NULL))\x20/\x20SUM(agentcomplete)\x20*100,1)','alias':_0x333ee2(0x2b7),'custom':0x1,'ReportId':0x6},{'field':_0x333ee2(0x1b2),'alias':_0x333ee2(0x253),'groupBy':0x1,'ReportId':0x7},{'field':_0x333ee2(0x17c),'alias':_0x333ee2(0x224),'function':'COUNT','ReportId':0x7},{'field':_0x333ee2(0x2a0),'alias':_0x333ee2(0x1f3),'format':_0x333ee2(0x29c),'groupBy':0x1,'ReportId':0x8},{'field':'agentcomplete','alias':_0x333ee2(0x24a),'function':_0x333ee2(0x27f),'ReportId':0x8},{'field':'COUNT(IF(holdtime<10,1,NULL))','alias':_0x333ee2(0x189),'custom':0x1,'ReportId':0x8},{'field':_0x333ee2(0x1d3),'alias':'Answered\x2010-20s','custom':0x1,'ReportId':0x8},{'field':_0x333ee2(0x257),'alias':'Answered\x2020-30s','custom':0x1,'ReportId':0x8},{'field':_0x333ee2(0x22e),'alias':'Answered\x20>30s','custom':0x1,'ReportId':0x8},{'field':_0x333ee2(0x17c),'alias':_0x333ee2(0x283),'ReportId':0x9},{'field':'calleridnum','alias':'CallerIdNum','ReportId':0x9},{'field':'queue','alias':_0x333ee2(0x1a2),'ReportId':0x9},{'field':_0x333ee2(0x22a),'alias':_0x333ee2(0x220),'ReportId':0x9},{'field':_0x333ee2(0x2b8),'alias':_0x333ee2(0x26b),'ReportId':0x9},{'field':_0x333ee2(0x1a1),'alias':_0x333ee2(0x2a9),'ReportId':0x9},{'field':'queuecallerabandonAt','alias':_0x333ee2(0x17d),'ReportId':0x9},{'field':_0x333ee2(0x1f9),'alias':'Unmanaged','ReportId':0x9},{'field':'queuecallerexitAt','alias':_0x333ee2(0x265),'ReportId':0x9},{'field':_0x333ee2(0x1b4),'alias':'UnmanagedReason','ReportId':0x9},{'field':'position','alias':_0x333ee2(0x29f),'ReportId':0x9},{'field':'exten','alias':'DID','ReportId':0x9},{'field':_0x333ee2(0x21d),'alias':_0x333ee2(0x17b),'format':_0x333ee2(0x179),'custom':0x1,'ReportId':0x9},{'field':_0x333ee2(0x1f2),'alias':_0x333ee2(0x231),'format':_0x333ee2(0x179),'custom':0x1,'ReportId':0x9},{'field':_0x333ee2(0x237),'alias':'Queue','groupBy':0x1,'ReportId':0xa},{'field':_0x333ee2(0x1a1),'alias':_0x333ee2(0x2ac),'function':_0x333ee2(0x27f),'ReportId':0xa},{'field':'queuecallerexit','alias':_0x333ee2(0x291),'function':'SUM','ReportId':0xa},{'field':_0x333ee2(0x21d),'alias':_0x333ee2(0x228),'function':'SUM','format':_0x333ee2(0x179),'custom':0x1,'ReportId':0xa},{'field':_0x333ee2(0x188),'alias':'AvgAbandonTime','format':'SEC_TO_TIME','custom':0x1,'ReportId':0xa},{'field':_0x333ee2(0x1f2),'alias':'Tot\x20Unmanaged\x20Time','function':_0x333ee2(0x27f),'format':_0x333ee2(0x179),'custom':0x1,'ReportId':0xa},{'field':_0x333ee2(0x2ae),'alias':_0x333ee2(0x1ea),'format':'SEC_TO_TIME','custom':0x1,'ReportId':0xa},{'field':'queuecallerexitreason','alias':_0x333ee2(0x253),'groupBy':0x1,'ReportId':0xb},{'field':'queuecallerexit','alias':_0x333ee2(0x224),'function':'SUM','ReportId':0xb},{'field':'UNIX_TIMESTAMP(queuecallerExitAt)-UNIX_TIMESTAMP(queuecallerjoinAt)','alias':_0x333ee2(0x198),'function':_0x333ee2(0x27f),'custom':0x1,'ReportId':0xb},{'field':_0x333ee2(0x237),'alias':_0x333ee2(0x1a2),'groupBy':0x1,'ReportId':0xc},{'field':_0x333ee2(0x1a1),'alias':_0x333ee2(0x193),'function':_0x333ee2(0x27f),'ReportId':0xc},{'field':_0x333ee2(0x219),'alias':_0x333ee2(0x1fb),'custom':0x1,'ReportId':0xc},{'field':_0x333ee2(0x236),'alias':_0x333ee2(0x1f4),'custom':0x1,'ReportId':0xc},{'field':_0x333ee2(0x238),'alias':_0x333ee2(0x1d0),'custom':0x1,'ReportId':0xc},{'field':_0x333ee2(0x1f7),'alias':'Abandoned\x20Rate\x2010-60s','custom':0x1,'ReportId':0xc},{'field':'COUNT(IF(UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)\x20>=60\x20AND\x20UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)\x20<120,1,NULL))','alias':_0x333ee2(0x285),'custom':0x1,'ReportId':0xc},{'field':'ROUND(COUNT(IF(UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)\x20>=60\x20AND\x20UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)\x20<120,1,NULL))\x20\x20\x20/\x20SUM(queuecallerabandon)\x20*100,1)','alias':_0x333ee2(0x1d2),'custom':0x1,'ReportId':0xc},{'field':_0x333ee2(0x293),'alias':_0x333ee2(0x1d4),'custom':0x1,'ReportId':0xc},{'field':_0x333ee2(0x1ff),'alias':_0x333ee2(0x17a),'custom':0x1,'ReportId':0xc},{'field':_0x333ee2(0x284),'alias':'Date','format':_0x333ee2(0x261),'groupBy':0x1,'custom':0x1,'ReportId':0xd},{'field':_0x333ee2(0x17c),'alias':_0x333ee2(0x2b3),'function':_0x333ee2(0x1ba),'ReportId':0xd},{'field':'queuecallercomplete','alias':_0x333ee2(0x183),'function':_0x333ee2(0x27f),'ReportId':0xd},{'field':'queuecallerabandon','alias':_0x333ee2(0x2ac),'function':_0x333ee2(0x27f),'custom':0x1,'ReportId':0xd},{'field':_0x333ee2(0x1f9),'alias':_0x333ee2(0x291),'function':'SUM','custom':0x1,'ReportId':0xd},{'field':_0x333ee2(0x181),'alias':'Tot\x20TalkTime','function':_0x333ee2(0x27f),'format':'SEC_TO_TIME','custom':0x1,'ReportId':0xd},{'field':'ROUND(AVG(UNIX_TIMESTAMP(queuecallercompleteAt)-UNIX_TIMESTAMP(queuecallerleaveAt)))','alias':_0x333ee2(0x1de),'format':_0x333ee2(0x179),'custom':0x1,'ReportId':0xd},{'field':_0x333ee2(0x188),'alias':_0x333ee2(0x1bf),'format':_0x333ee2(0x179),'custom':0x1,'ReportId':0xd},{'field':_0x333ee2(0x284),'alias':_0x333ee2(0x1f3),'format':_0x333ee2(0x29c),'groupBy':0x1,'custom':0x1,'ReportId':0xe},{'field':_0x333ee2(0x17c),'alias':_0x333ee2(0x2b3),'function':_0x333ee2(0x1ba),'ReportId':0xe},{'field':_0x333ee2(0x1c3),'alias':_0x333ee2(0x1c1),'function':_0x333ee2(0x27f),'ReportId':0xe},{'field':'ROUND(SUM(queuecallercomplete)/COUNT(DISTINCT\x20uniqueid)*100,1)','alias':_0x333ee2(0x223),'custom':0x1,'ReportId':0xe},{'field':_0x333ee2(0x1a1),'alias':_0x333ee2(0x2ac),'function':_0x333ee2(0x27f),'ReportId':0xe},{'field':_0x333ee2(0x1f9),'alias':_0x333ee2(0x291),'function':_0x333ee2(0x27f),'ReportId':0xe},{'field':'UNIX_TIMESTAMP(queuecallercompleteAt)-UNIX_TIMESTAMP(queuecallerleaveAt)','alias':'Tot\x20TalkTime','function':_0x333ee2(0x27f),'format':_0x333ee2(0x179),'custom':0x1,'ReportId':0xe},{'field':_0x333ee2(0x264),'alias':_0x333ee2(0x1de),'format':'SEC_TO_TIME','custom':0x1,'ReportId':0xe},{'field':_0x333ee2(0x188),'alias':_0x333ee2(0x1bf),'format':_0x333ee2(0x179),'custom':0x1,'ReportId':0xe},{'field':_0x333ee2(0x275),'alias':_0x333ee2(0x185),'groupBy':0x1,'custom':0x1,'ReportId':0xf},{'field':'uniqueid','alias':_0x333ee2(0x2b3),'function':_0x333ee2(0x1ba),'ReportId':0xf},{'field':'queuecallercomplete','alias':'Answered','function':_0x333ee2(0x27f),'ReportId':0xf},{'field':_0x333ee2(0x239),'alias':_0x333ee2(0x223),'custom':0x1,'ReportId':0xf},{'field':_0x333ee2(0x1a1),'alias':'Abandoned','function':_0x333ee2(0x27f),'ReportId':0xf},{'field':_0x333ee2(0x1f9),'alias':_0x333ee2(0x291),'function':_0x333ee2(0x27f),'ReportId':0xf},{'field':'UNIX_TIMESTAMP(queuecallercompleteAt)-UNIX_TIMESTAMP(queuecallerleaveAt)','alias':_0x333ee2(0x1f8),'function':_0x333ee2(0x27f),'format':_0x333ee2(0x179),'custom':0x1,'ReportId':0xf},{'field':_0x333ee2(0x264),'alias':_0x333ee2(0x1de),'format':'SEC_TO_TIME','custom':0x1,'ReportId':0xf},{'field':_0x333ee2(0x188),'alias':_0x333ee2(0x1bf),'format':'SEC_TO_TIME','custom':0x1,'ReportId':0xf},{'field':'DAYNAME(queuecallerjoinat)','alias':_0x333ee2(0x221),'groupBy':0x1,'custom':0x1,'ReportId':0x10},{'field':'uniqueid','alias':_0x333ee2(0x2b3),'function':_0x333ee2(0x1ba),'ReportId':0x10},{'field':_0x333ee2(0x1c3),'alias':_0x333ee2(0x1c1),'function':_0x333ee2(0x27f),'ReportId':0x10},{'field':_0x333ee2(0x239),'alias':_0x333ee2(0x223),'custom':0x1,'ReportId':0x10},{'field':_0x333ee2(0x1a1),'alias':_0x333ee2(0x2ac),'function':'SUM','orderBy':_0x333ee2(0x1c4),'ReportId':0x10},{'field':_0x333ee2(0x1f9),'alias':_0x333ee2(0x291),'function':_0x333ee2(0x27f),'ReportId':0x10},{'field':_0x333ee2(0x181),'alias':_0x333ee2(0x1f8),'function':_0x333ee2(0x27f),'format':'SEC_TO_TIME','custom':0x1,'ReportId':0x10},{'field':_0x333ee2(0x264),'alias':_0x333ee2(0x1de),'format':'SEC_TO_TIME','custom':0x1,'ReportId':0x10},{'field':_0x333ee2(0x188),'alias':_0x333ee2(0x1bf),'format':_0x333ee2(0x179),'custom':0x1,'ReportId':0x10},{'field':_0x333ee2(0x237),'alias':_0x333ee2(0x1a2),'groupBy':0x1,'ReportId':0x11},{'field':_0x333ee2(0x17c),'alias':_0x333ee2(0x2b3),'function':_0x333ee2(0x1ba),'ReportId':0x11},{'field':'queuecallercomplete','alias':_0x333ee2(0x1c1),'function':_0x333ee2(0x27f),'ReportId':0x11},{'field':'ROUND(SUM(queuecallercomplete)/COUNT(DISTINCT\x20uniqueid)*100,1)','alias':_0x333ee2(0x223),'custom':0x1,'ReportId':0x11},{'field':_0x333ee2(0x1a1),'alias':_0x333ee2(0x2ac),'function':_0x333ee2(0x27f),'ReportId':0x11},{'field':_0x333ee2(0x1f9),'alias':'Unmanaged','function':_0x333ee2(0x27f),'ReportId':0x11},{'field':_0x333ee2(0x181),'alias':_0x333ee2(0x1f8),'function':'SUM','format':_0x333ee2(0x179),'custom':0x1,'ReportId':0x11},{'field':_0x333ee2(0x264),'alias':_0x333ee2(0x1de),'format':'SEC_TO_TIME','custom':0x1,'ReportId':0x11},{'field':_0x333ee2(0x188),'alias':'AvgAbandonTime','format':_0x333ee2(0x179),'custom':0x1,'ReportId':0x11},{'field':_0x333ee2(0x17c),'alias':_0x333ee2(0x1aa),'ReportId':0x12},{'field':_0x333ee2(0x28b),'alias':'Type','ReportId':0x12},{'field':_0x333ee2(0x202),'alias':_0x333ee2(0x27e),'ReportId':0x12},{'field':_0x333ee2(0x1ee),'alias':_0x333ee2(0x287),'ReportId':0x12},{'field':'destination','alias':_0x333ee2(0x235),'ReportId':0x12},{'field':'callerid','alias':_0x333ee2(0x296),'ReportId':0x12},{'field':_0x333ee2(0x1af),'alias':_0x333ee2(0x1fe),'ReportId':0x12},{'field':_0x333ee2(0x19c),'alias':_0x333ee2(0x260),'ReportId':0x12},{'field':_0x333ee2(0x1c5),'alias':_0x333ee2(0x278),'ReportId':0x12},{'field':'starttime','alias':_0x333ee2(0x27a),'ReportId':0x12},{'field':_0x333ee2(0x23e),'alias':_0x333ee2(0x1d5),'ReportId':0x12},{'field':_0x333ee2(0x1a4),'alias':_0x333ee2(0x19e),'ReportId':0x12},{'field':_0x333ee2(0x204),'alias':_0x333ee2(0x1b0),'ReportId':0x12},{'field':_0x333ee2(0x282),'alias':_0x333ee2(0x23d),'ReportId':0x12},{'field':'uniqueid','alias':_0x333ee2(0x1aa),'ReportId':0x13},{'field':_0x333ee2(0x26f),'alias':_0x333ee2(0x29a),'ReportId':0x13},{'field':_0x333ee2(0x1ee),'alias':_0x333ee2(0x287),'ReportId':0x13},{'field':'destination','alias':_0x333ee2(0x235),'ReportId':0x13},{'field':'callerid','alias':_0x333ee2(0x1c9),'ReportId':0x13},{'field':'starttime','alias':_0x333ee2(0x27a),'ReportId':0x13},{'field':_0x333ee2(0x23e),'alias':_0x333ee2(0x1d5),'ReportId':0x13},{'field':'endtime','alias':_0x333ee2(0x19e),'ReportId':0x13},{'field':'duration','alias':'Duration','format':_0x333ee2(0x179),'ReportId':0x13},{'field':_0x333ee2(0x29b),'alias':'Billsec','format':_0x333ee2(0x179),'ReportId':0x13},{'field':_0x333ee2(0x282),'alias':_0x333ee2(0x23d),'ReportId':0x13},{'field':_0x333ee2(0x202),'alias':_0x333ee2(0x27e),'ReportId':0x13},{'field':_0x333ee2(0x28b),'alias':_0x333ee2(0x1f6),'groupBy':0x1,'ReportId':0x14},{'field':_0x333ee2(0x17c),'alias':'Calls','function':_0x333ee2(0x2af),'ReportId':0x14},{'field':'duration','alias':'Tot\x20Duration','function':'SUM','format':'SEC_TO_TIME','ReportId':0x14},{'field':'ROUND(AVG(duration))','alias':_0x333ee2(0x298),'format':'SEC_TO_TIME','custom':0x1,'ReportId':0x14},{'field':_0x333ee2(0x282),'alias':_0x333ee2(0x23d),'groupBy':0x1,'ReportId':0x15},{'field':'uniqueid','alias':_0x333ee2(0x224),'function':_0x333ee2(0x2af),'ReportId':0x15},{'field':_0x333ee2(0x204),'alias':_0x333ee2(0x1ab),'function':_0x333ee2(0x27f),'format':_0x333ee2(0x179),'ReportId':0x15},{'field':_0x333ee2(0x26d),'alias':_0x333ee2(0x298),'format':_0x333ee2(0x179),'custom':0x1,'ReportId':0x15},{'field':_0x333ee2(0x1bc),'alias':_0x333ee2(0x1e6),'groupBy':0x1,'custom':0x1,'ReportId':0x16},{'field':_0x333ee2(0x17c),'alias':_0x333ee2(0x224),'function':'COUNT','ReportId':0x16},{'field':_0x333ee2(0x204),'alias':'Tot\x20Duration','function':_0x333ee2(0x27f),'format':_0x333ee2(0x179),'ReportId':0x16},{'field':_0x333ee2(0x26d),'alias':_0x333ee2(0x298),'format':_0x333ee2(0x179),'custom':0x1,'ReportId':0x16},{'field':_0x333ee2(0x1fa),'alias':_0x333ee2(0x248),'format':_0x333ee2(0x261),'groupBy':0x1,'ReportId':0x17},{'field':'uniqueid','alias':_0x333ee2(0x224),'function':'COUNT','ReportId':0x17},{'field':_0x333ee2(0x204),'alias':_0x333ee2(0x1ab),'function':'SUM','format':'SEC_TO_TIME','ReportId':0x17},{'field':_0x333ee2(0x26d),'alias':_0x333ee2(0x298),'format':'SEC_TO_TIME','custom':0x1,'ReportId':0x17},{'field':_0x333ee2(0x259),'alias':_0x333ee2(0x1e6),'groupBy':0x1,'orderBy':'ASC','ReportId':0x18},{'field':_0x333ee2(0x227),'alias':_0x333ee2(0x1b0),'function':'SUM','format':_0x333ee2(0x179),'custom':0x1,'ReportId':0x18},{'field':_0x333ee2(0x259),'alias':'Agent','groupBy':0x1,'ReportId':0x19},{'field':_0x333ee2(0x205),'alias':_0x333ee2(0x1fd),'function':_0x333ee2(0x27f),'format':_0x333ee2(0x179),'custom':0x1,'ReportId':0x19},{'field':_0x333ee2(0x211),'alias':_0x333ee2(0x21c),'function':'SUM','format':_0x333ee2(0x179),'custom':0x1,'ReportId':0x19},{'field':_0x333ee2(0x25f),'alias':_0x333ee2(0x26c),'function':_0x333ee2(0x27f),'format':_0x333ee2(0x179),'custom':0x1,'ReportId':0x19},{'field':_0x333ee2(0x259),'alias':_0x333ee2(0x1e6),'ReportId':0x1a},{'field':_0x333ee2(0x1cb),'alias':_0x333ee2(0x1dd),'ReportId':0x1a},{'field':'exitAt','alias':_0x333ee2(0x2a8),'ReportId':0x1a},{'field':'data1','alias':_0x333ee2(0x230),'ReportId':0x1a},{'field':_0x333ee2(0x204),'alias':_0x333ee2(0x1b0),'format':_0x333ee2(0x179),'ReportId':0x1a},{'field':'membername','alias':_0x333ee2(0x1e6),'ReportId':0x1b},{'field':_0x333ee2(0x200),'alias':_0x333ee2(0x267),'ReportId':0x1b},{'field':'type','alias':'Event','ReportId':0x1b},{'field':'data1','alias':_0x333ee2(0x1f6),'ReportId':0x1b},{'field':_0x333ee2(0x1cb),'alias':_0x333ee2(0x1dd),'ReportId':0x1b},{'field':_0x333ee2(0x279),'alias':_0x333ee2(0x2a8),'ReportId':0x1b},{'field':_0x333ee2(0x227),'alias':_0x333ee2(0x1b0),'format':_0x333ee2(0x179),'custom':0x1,'ReportId':0x1b},{'field':'membername','alias':_0x333ee2(0x1e6),'groupBy':0x1,'orderBy':_0x333ee2(0x1c4),'ReportId':0x1c},{'field':_0x333ee2(0x20c),'alias':'PauseType','groupBy':0x1,'orderBy':_0x333ee2(0x1c4),'ReportId':0x1c},{'field':_0x333ee2(0x227),'alias':_0x333ee2(0x1b0),'function':_0x333ee2(0x27f),'format':'SEC_TO_TIME','custom':0x1,'ReportId':0x1c},{'field':_0x333ee2(0x19f),'alias':'Project\x20Name','ReportId':0x1d},{'field':_0x333ee2(0x17c),'alias':_0x333ee2(0x283),'ReportId':0x1d},{'field':_0x333ee2(0x26a),'alias':_0x333ee2(0x1c9),'ReportId':0x1d},{'field':_0x333ee2(0x20e),'alias':_0x333ee2(0x288),'ReportId':0x1d},{'field':_0x333ee2(0x290),'alias':'Start\x20Time','orderBy':_0x333ee2(0x1c4),'ReportId':0x1d},{'field':_0x333ee2(0x2b2),'alias':_0x333ee2(0x1a6),'ReportId':0x1d},{'field':_0x333ee2(0x252),'alias':_0x333ee2(0x1b0),'format':_0x333ee2(0x179),'custom':0x1,'ReportId':0x1d},{'field':_0x333ee2(0x17c),'alias':_0x333ee2(0x1ad),'ReportId':0x1e},{'field':_0x333ee2(0x19f),'alias':_0x333ee2(0x2ad),'ReportId':0x1e},{'field':_0x333ee2(0x26a),'alias':_0x333ee2(0x2b6),'ReportId':0x1e},{'field':_0x333ee2(0x197),'alias':_0x333ee2(0x26e),'ReportId':0x1e},{'field':_0x333ee2(0x1d9),'alias':'Data','ReportId':0x1e},{'field':_0x333ee2(0x1d1),'alias':_0x333ee2(0x1e6),'groupBy':0x1,'ReportId':0x1f},{'field':_0x333ee2(0x17c),'alias':_0x333ee2(0x1bb),'function':_0x333ee2(0x2af),'ReportId':0x1f},{'field':'rating','alias':'Total\x20Rating','function':'SUM','ReportId':0x1f},{'field':'rating','alias':_0x333ee2(0x222),'function':_0x333ee2(0x23b),'ReportId':0x1f},{'field':'queue','alias':_0x333ee2(0x1a2),'groupBy':0x1,'ReportId':0x20},{'field':_0x333ee2(0x17c),'alias':'Rated\x20Calls','function':_0x333ee2(0x2af),'ReportId':0x20},{'field':'rating','alias':_0x333ee2(0x20f),'function':_0x333ee2(0x27f),'ReportId':0x20},{'field':_0x333ee2(0x245),'alias':_0x333ee2(0x222),'function':_0x333ee2(0x23b),'ReportId':0x20},{'field':_0x333ee2(0x240),'alias':'Campaign\x20Name','ReportId':0x21},{'field':_0x333ee2(0x246),'alias':'CallerIdNum','ReportId':0x21},{'field':_0x333ee2(0x1fa),'alias':'LastCallAt','orderBy':'DESC','ReportId':0x21},{'field':_0x333ee2(0x280),'alias':_0x333ee2(0x218),'ReportId':0x21},{'field':_0x333ee2(0x2b5),'alias':_0x333ee2(0x29d),'ReportId':0x21},{'field':_0x333ee2(0x207),'alias':_0x333ee2(0x1b1),'ReportId':0x21},{'field':_0x333ee2(0x1e0),'alias':_0x333ee2(0x29e),'ReportId':0x21},{'field':'membername','alias':_0x333ee2(0x1e6),'ReportId':0x21},{'field':_0x333ee2(0x2a7),'alias':_0x333ee2(0x21c),'ReportId':0x21},{'field':_0x333ee2(0x282),'alias':_0x333ee2(0x23d),'ReportId':0x21},{'field':_0x333ee2(0x17c),'alias':_0x333ee2(0x283),'ReportId':0x21},{'field':_0x333ee2(0x280),'alias':'State','groupBy':!![],'orderBy':_0x333ee2(0x1c4),'ReportId':0x22},{'field':'id','alias':_0x333ee2(0x224),'function':_0x333ee2(0x2af),'ReportId':0x22},{'field':_0x333ee2(0x234),'alias':_0x333ee2(0x281),'custom':!![],'ReportId':0x22},{'field':_0x333ee2(0x240),'alias':_0x333ee2(0x1ca),'orderBy':'ASC','groupBy':!![],'ReportId':0x23},{'field':_0x333ee2(0x280),'alias':_0x333ee2(0x218),'groupBy':!![],'ReportId':0x23},{'field':'id','alias':_0x333ee2(0x20d),'function':'COUNT','ReportId':0x23},{'field':_0x333ee2(0x208),'groupBy':!![],'orderBy':_0x333ee2(0x1c4),'ReportId':0x24},{'field':'id','alias':'Contacts','function':_0x333ee2(0x2af),'ReportId':0x24},{'field':_0x333ee2(0x28a),'alias':_0x333ee2(0x1c8),'custom':!![],'ReportId':0x24},{'field':_0x333ee2(0x262),'alias':'Penetration\x20Rate','custom':!![],'ReportId':0x24},{'field':_0x333ee2(0x259),'alias':'Agent','groupBy':!![],'orderBy':_0x333ee2(0x1c4),'ReportId':0x25},{'field':'id','alias':'Calls','function':'COUNT','ReportId':0x25},{'field':_0x333ee2(0x1df),'alias':_0x333ee2(0x226),'custom':!![],'ReportId':0x25},{'field':'disposition','alias':_0x333ee2(0x23d),'groupBy':!![],'ReportId':0x26},{'field':'id','alias':_0x333ee2(0x271),'function':_0x333ee2(0x2af),'ReportId':0x26},{'field':_0x333ee2(0x250),'alias':_0x333ee2(0x1da),'custom':!![],'ReportId':0x26},{'field':_0x333ee2(0x259),'alias':_0x333ee2(0x1e6),'groupBy':!![],'ReportId':0x27},{'field':'disposition','alias':_0x333ee2(0x23d),'groupBy':!![],'ReportId':0x27},{'field':'id','alias':_0x333ee2(0x271),'function':_0x333ee2(0x2af),'ReportId':0x27},{'field':_0x333ee2(0x250),'alias':_0x333ee2(0x1da),'custom':!![],'ReportId':0x27},{'field':_0x333ee2(0x240),'alias':_0x333ee2(0x1ca),'ReportId':0x28},{'field':_0x333ee2(0x246),'alias':_0x333ee2(0x1dc),'ReportId':0x28},{'field':_0x333ee2(0x1fa),'alias':'LastCallAt','orderBy':_0x333ee2(0x1d7),'ReportId':0x28},{'field':_0x333ee2(0x280),'alias':'State','ReportId':0x28},{'field':_0x333ee2(0x2b5),'alias':_0x333ee2(0x29d),'ReportId':0x28},{'field':_0x333ee2(0x207),'alias':'Drop\x20Reason','ReportId':0x28},{'field':_0x333ee2(0x1e0),'alias':_0x333ee2(0x29e),'ReportId':0x28},{'field':'talktime','alias':_0x333ee2(0x21c),'ReportId':0x28},{'field':_0x333ee2(0x17c),'alias':_0x333ee2(0x283),'ReportId':0x28},{'field':_0x333ee2(0x280),'alias':_0x333ee2(0x218),'groupBy':!![],'orderBy':'ASC','ReportId':0x29},{'field':'id','alias':'Calls','function':'COUNT','ReportId':0x29},{'field':_0x333ee2(0x23a),'alias':_0x333ee2(0x281),'custom':!![],'ReportId':0x29},{'field':_0x333ee2(0x240),'alias':'Campaign\x20Name','orderBy':_0x333ee2(0x1c4),'groupBy':!![],'ReportId':0x2a},{'field':_0x333ee2(0x280),'alias':_0x333ee2(0x218),'groupBy':!![],'ReportId':0x2a},{'field':'id','alias':_0x333ee2(0x20d),'function':_0x333ee2(0x2af),'ReportId':0x2a},{'field':_0x333ee2(0x208),'groupBy':!![],'orderBy':_0x333ee2(0x1c4),'ReportId':0x2b},{'field':'id','alias':_0x333ee2(0x263),'function':_0x333ee2(0x2af),'ReportId':0x2b},{'field':_0x333ee2(0x28a),'alias':_0x333ee2(0x1c8),'custom':!![],'ReportId':0x2b},{'field':_0x333ee2(0x262),'alias':_0x333ee2(0x1a8),'custom':!![],'ReportId':0x2b},{'field':_0x333ee2(0x1f5),'alias':'Web\x20Site','groupBy':!![],'ReportId':0x2c},{'field':_0x333ee2(0x28d),'alias':_0x333ee2(0x1e4),'function':'COUNT','ReportId':0x2c},{'field':_0x333ee2(0x299),'alias':'Open','custom':!![],'ReportId':0x2c},{'field':_0x333ee2(0x268),'alias':_0x333ee2(0x1a5),'custom':!![],'ReportId':0x2c},{'field':_0x333ee2(0x199),'alias':'Unmanaged','custom':!![],'ReportId':0x2c},{'field':_0x333ee2(0x1f1),'alias':_0x333ee2(0x2ac),'custom':!![],'ReportId':0x2c},{'field':'chat_websites.name','alias':_0x333ee2(0x2b0),'groupBy':!![],'ReportId':0x2d},{'field':_0x333ee2(0x22c),'alias':'Interaction\x20Time','function':_0x333ee2(0x27f),'format':_0x333ee2(0x179),'custom':!![],'ReportId':0x2d},{'field':_0x333ee2(0x297),'alias':_0x333ee2(0x18d),'format':_0x333ee2(0x179),'custom':!![],'ReportId':0x2d},{'field':_0x333ee2(0x184),'alias':_0x333ee2(0x1e6),'groupBy':!![],'ReportId':0x2e},{'field':'chat_interactions.closed','alias':_0x333ee2(0x1a5),'function':_0x333ee2(0x27f),'ReportId':0x2e},{'field':_0x333ee2(0x22c),'alias':_0x333ee2(0x2a5),'function':'SUM','format':_0x333ee2(0x179),'custom':!![],'ReportId':0x2e},{'field':_0x333ee2(0x297),'alias':_0x333ee2(0x18d),'format':_0x333ee2(0x179),'custom':!![],'ReportId':0x2e},{'field':_0x333ee2(0x206),'alias':'Date','format':_0x333ee2(0x261),'groupBy':!![],'custom':!![],'ReportId':0x2f},{'field':'chat_interactions.id','alias':_0x333ee2(0x1e4),'function':'COUNT','ReportId':0x2f},{'field':_0x333ee2(0x268),'alias':_0x333ee2(0x183),'custom':!![],'ReportId':0x2f},{'field':_0x333ee2(0x1ef),'alias':_0x333ee2(0x1e7),'custom':!![],'ReportId':0x2f},{'field':_0x333ee2(0x199),'alias':_0x333ee2(0x291),'custom':!![],'ReportId':0x2f},{'field':_0x333ee2(0x27b),'alias':_0x333ee2(0x292),'custom':!![],'ReportId':0x2f},{'field':_0x333ee2(0x1f1),'alias':_0x333ee2(0x2ac),'custom':!![],'ReportId':0x2f},{'field':_0x333ee2(0x1c6),'alias':_0x333ee2(0x1ce),'custom':!![],'ReportId':0x2f},{'field':'UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(createdAt)','alias':_0x333ee2(0x2a5),'function':_0x333ee2(0x27f),'format':_0x333ee2(0x179),'custom':!![],'ReportId':0x2f},{'field':'ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(createdAt)))','alias':'AVG\x20Interaction\x20Time','format':'SEC_TO_TIME','custom':!![],'ReportId':0x2f},{'field':_0x333ee2(0x1e9),'alias':'Queue','groupBy':!![],'ReportId':0x30},{'field':'report_chat_queue.id','alias':_0x333ee2(0x1e4),'function':_0x333ee2(0x2af),'ReportId':0x30},{'field':_0x333ee2(0x201),'alias':_0x333ee2(0x24b),'custom':!![],'ReportId':0x30},{'field':_0x333ee2(0x203),'alias':_0x333ee2(0x19b),'custom':!![],'ReportId':0x30},{'field':_0x333ee2(0x252),'alias':_0x333ee2(0x21a),'function':'SUM','format':_0x333ee2(0x179),'custom':!![],'ReportId':0x30},{'field':_0x333ee2(0x249),'alias':_0x333ee2(0x233),'format':_0x333ee2(0x179),'custom':!![],'ReportId':0x30},{'field':_0x333ee2(0x1b6),'alias':_0x333ee2(0x232),'groupBy':!![],'ReportId':0x31},{'field':_0x333ee2(0x1c2),'alias':_0x333ee2(0x1e4),'function':_0x333ee2(0x2af),'ReportId':0x31},{'field':_0x333ee2(0x299),'alias':_0x333ee2(0x272),'custom':!![],'ReportId':0x31},{'field':'COUNT(IF(closed=1,1,NULL))','alias':'Closed','custom':!![],'ReportId':0x31},{'field':_0x333ee2(0x1b6),'alias':_0x333ee2(0x232),'groupBy':!![],'ReportId':0x32},{'field':_0x333ee2(0x277),'alias':'Interaction\x20Time','function':_0x333ee2(0x27f),'format':_0x333ee2(0x179),'custom':!![],'ReportId':0x32},{'field':_0x333ee2(0x2b1),'alias':_0x333ee2(0x18d),'format':_0x333ee2(0x179),'custom':!![],'ReportId':0x32},{'field':_0x333ee2(0x184),'alias':_0x333ee2(0x1e6),'groupBy':!![],'ReportId':0x33},{'field':_0x333ee2(0x2a3),'alias':_0x333ee2(0x1a5),'function':_0x333ee2(0x27f),'ReportId':0x33},{'field':_0x333ee2(0x277),'alias':'Interaction\x20Time','function':_0x333ee2(0x27f),'format':'SEC_TO_TIME','custom':!![],'ReportId':0x33},{'field':'ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(mail_interactions.createdAt)))','alias':'AVG\x20Interaction\x20Time','format':'SEC_TO_TIME','custom':!![],'ReportId':0x33},{'field':_0x333ee2(0x18f),'alias':_0x333ee2(0x248),'format':_0x333ee2(0x261),'groupBy':!![],'custom':!![],'ReportId':0x34},{'field':'mail_interactions.id','alias':_0x333ee2(0x1e4),'function':_0x333ee2(0x2af),'ReportId':0x34},{'field':_0x333ee2(0x1b9),'alias':_0x333ee2(0x183),'custom':!![],'ReportId':0x34},{'field':_0x333ee2(0x243),'alias':'Completed\x20(%)','custom':!![],'ReportId':0x34},{'field':_0x333ee2(0x266),'alias':'Interaction\x20Time','function':_0x333ee2(0x27f),'format':'SEC_TO_TIME','custom':!![],'ReportId':0x34},{'field':'ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(createdAt)))','alias':'AVG\x20Interaction\x20Time','format':_0x333ee2(0x179),'custom':!![],'ReportId':0x34},{'field':_0x333ee2(0x1a0),'alias':_0x333ee2(0x1a2),'groupBy':!![],'ReportId':0x35},{'field':_0x333ee2(0x21f),'alias':_0x333ee2(0x1e4),'function':_0x333ee2(0x2af),'ReportId':0x35},{'field':_0x333ee2(0x201),'alias':_0x333ee2(0x24b),'custom':!![],'ReportId':0x35},{'field':_0x333ee2(0x203),'alias':'Timeout','custom':!![],'ReportId':0x35},{'field':_0x333ee2(0x252),'alias':_0x333ee2(0x21a),'function':_0x333ee2(0x27f),'format':_0x333ee2(0x179),'custom':!![],'ReportId':0x35},{'field':_0x333ee2(0x249),'alias':_0x333ee2(0x233),'format':'SEC_TO_TIME','custom':!![],'ReportId':0x35},{'field':_0x333ee2(0x241),'alias':'Openchannel\x20Account','groupBy':!![],'ReportId':0x36},{'field':_0x333ee2(0x1bd),'alias':_0x333ee2(0x1e4),'function':_0x333ee2(0x2af),'ReportId':0x36},{'field':_0x333ee2(0x299),'alias':_0x333ee2(0x272),'custom':!![],'ReportId':0x36},{'field':'COUNT(IF(closed=1,1,NULL))','alias':_0x333ee2(0x1a5),'custom':!![],'ReportId':0x36},{'field':_0x333ee2(0x241),'alias':'Openchannel\x20Account','groupBy':!![],'ReportId':0x37},{'field':'UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(openchannel_interactions.createdAt)','alias':_0x333ee2(0x2a5),'function':_0x333ee2(0x27f),'format':'SEC_TO_TIME','custom':!![],'ReportId':0x37},{'field':_0x333ee2(0x2a1),'alias':_0x333ee2(0x18d),'format':'SEC_TO_TIME','custom':!![],'ReportId':0x37},{'field':_0x333ee2(0x184),'alias':_0x333ee2(0x1e6),'groupBy':!![],'ReportId':0x38},{'field':_0x333ee2(0x2ab),'alias':_0x333ee2(0x1a5),'function':_0x333ee2(0x27f),'ReportId':0x38},{'field':'UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(openchannel_interactions.createdAt)','alias':_0x333ee2(0x2a5),'function':_0x333ee2(0x27f),'format':_0x333ee2(0x179),'custom':!![],'ReportId':0x38},{'field':'ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(openchannel_interactions.createdAt)))','alias':_0x333ee2(0x18d),'format':_0x333ee2(0x179),'custom':!![],'ReportId':0x38},{'field':'openchannel_interactions.createdAt','alias':_0x333ee2(0x248),'format':_0x333ee2(0x261),'groupBy':!![],'custom':!![],'ReportId':0x39},{'field':_0x333ee2(0x1bd),'alias':_0x333ee2(0x1e4),'function':_0x333ee2(0x2af),'ReportId':0x39},{'field':_0x333ee2(0x1b9),'alias':'Completed','custom':!![],'ReportId':0x39},{'field':'ROUND(COUNT(IF(closed=1,1,NULL))/COUNT(id)\x20*100,1)','alias':_0x333ee2(0x1e7),'custom':!![],'ReportId':0x39},{'field':'UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(createdAt)','alias':_0x333ee2(0x2a5),'function':_0x333ee2(0x27f),'format':'SEC_TO_TIME','custom':!![],'ReportId':0x39},{'field':_0x333ee2(0x18a),'alias':_0x333ee2(0x18d),'format':_0x333ee2(0x179),'custom':!![],'ReportId':0x39},{'field':_0x333ee2(0x214),'alias':_0x333ee2(0x1a2),'groupBy':!![],'ReportId':0x3a},{'field':_0x333ee2(0x274),'alias':_0x333ee2(0x1e4),'function':'COUNT','ReportId':0x3a},{'field':_0x333ee2(0x201),'alias':_0x333ee2(0x24b),'custom':!![],'ReportId':0x3a},{'field':_0x333ee2(0x203),'alias':_0x333ee2(0x19b),'custom':!![],'ReportId':0x3a},{'field':_0x333ee2(0x252),'alias':_0x333ee2(0x21a),'function':'SUM','format':'SEC_TO_TIME','custom':!![],'ReportId':0x3a},{'field':_0x333ee2(0x249),'alias':_0x333ee2(0x233),'format':_0x333ee2(0x179),'custom':!![],'ReportId':0x3a},{'field':'sms_accounts.name','alias':_0x333ee2(0x273),'groupBy':!![],'ReportId':0x3b},{'field':_0x333ee2(0x196),'alias':_0x333ee2(0x1e4),'function':_0x333ee2(0x2af),'ReportId':0x3b},{'field':'COUNT(IF(closed=0,1,NULL))','alias':'Open','custom':!![],'ReportId':0x3b},{'field':_0x333ee2(0x1b9),'alias':'Closed','custom':!![],'ReportId':0x3b},{'field':_0x333ee2(0x1fc),'alias':_0x333ee2(0x273),'groupBy':!![],'ReportId':0x3c},{'field':_0x333ee2(0x225),'alias':'Interaction\x20Time','function':_0x333ee2(0x27f),'format':_0x333ee2(0x179),'custom':!![],'ReportId':0x3c},{'field':_0x333ee2(0x286),'alias':'AVG\x20Interaction\x20Time','format':_0x333ee2(0x179),'custom':!![],'ReportId':0x3c},{'field':_0x333ee2(0x184),'alias':_0x333ee2(0x1e6),'groupBy':!![],'ReportId':0x3d},{'field':_0x333ee2(0x27d),'alias':'Closed','function':_0x333ee2(0x27f),'ReportId':0x3d},{'field':'UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(sms_interactions.createdAt)','alias':_0x333ee2(0x2a5),'function':_0x333ee2(0x27f),'format':_0x333ee2(0x179),'custom':!![],'ReportId':0x3d},{'field':_0x333ee2(0x286),'alias':_0x333ee2(0x18d),'format':_0x333ee2(0x179),'custom':!![],'ReportId':0x3d},{'field':_0x333ee2(0x194),'alias':'Date','format':_0x333ee2(0x261),'groupBy':!![],'custom':!![],'ReportId':0x3e},{'field':'sms_interactions.id','alias':_0x333ee2(0x1e4),'function':_0x333ee2(0x2af),'ReportId':0x3e},{'field':_0x333ee2(0x1b9),'alias':'Completed','custom':!![],'ReportId':0x3e},{'field':_0x333ee2(0x243),'alias':_0x333ee2(0x1e7),'custom':!![],'ReportId':0x3e},{'field':'UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(createdAt)','alias':_0x333ee2(0x2a5),'function':'SUM','format':_0x333ee2(0x179),'custom':!![],'ReportId':0x3e},{'field':_0x333ee2(0x18a),'alias':_0x333ee2(0x18d),'format':'SEC_TO_TIME','custom':!![],'ReportId':0x3e},{'field':_0x333ee2(0x192),'alias':_0x333ee2(0x1a2),'groupBy':!![],'ReportId':0x3f},{'field':_0x333ee2(0x1e2),'alias':_0x333ee2(0x1e4),'function':_0x333ee2(0x2af),'ReportId':0x3f},{'field':_0x333ee2(0x201),'alias':'Accepted','custom':!![],'ReportId':0x3f},{'field':_0x333ee2(0x203),'alias':_0x333ee2(0x19b),'custom':!![],'ReportId':0x3f},{'field':_0x333ee2(0x252),'alias':_0x333ee2(0x21a),'function':'SUM','format':'SEC_TO_TIME','custom':!![],'ReportId':0x3f},{'field':_0x333ee2(0x249),'alias':_0x333ee2(0x233),'format':_0x333ee2(0x179),'custom':!![],'ReportId':0x3f},{'field':_0x333ee2(0x210),'alias':_0x333ee2(0x1a2),'groupBy':!![],'ReportId':0x44},{'field':'report_fax_queue.id','alias':'Interactions','function':'COUNT','ReportId':0x44},{'field':_0x333ee2(0x201),'alias':'Accepted','custom':!![],'ReportId':0x44},{'field':_0x333ee2(0x203),'alias':_0x333ee2(0x19b),'custom':!![],'ReportId':0x44},{'field':_0x333ee2(0x252),'alias':_0x333ee2(0x21a),'function':_0x333ee2(0x27f),'format':'SEC_TO_TIME','custom':!![],'ReportId':0x44},{'field':_0x333ee2(0x249),'alias':_0x333ee2(0x233),'format':_0x333ee2(0x179),'custom':!![],'ReportId':0x44},{'field':_0x333ee2(0x270),'alias':_0x333ee2(0x248),'format':_0x333ee2(0x261),'groupBy':!![],'custom':!![],'ReportId':0x43},{'field':_0x333ee2(0x256),'alias':_0x333ee2(0x1e4),'function':_0x333ee2(0x2af),'ReportId':0x43},{'field':_0x333ee2(0x1b9),'alias':_0x333ee2(0x183),'custom':!![],'ReportId':0x43},{'field':'ROUND(COUNT(IF(closed=1,1,NULL))/COUNT(id)\x20*100,1)','alias':_0x333ee2(0x1e7),'custom':!![],'ReportId':0x43},{'field':_0x333ee2(0x266),'alias':_0x333ee2(0x2a5),'function':'SUM','format':_0x333ee2(0x179),'custom':!![],'ReportId':0x43},{'field':_0x333ee2(0x18a),'alias':_0x333ee2(0x18d),'format':_0x333ee2(0x179),'custom':!![],'ReportId':0x43},{'field':'users.fullname','alias':_0x333ee2(0x1e6),'groupBy':!![],'ReportId':0x42},{'field':'fax_interactions.closed','alias':_0x333ee2(0x1a5),'function':'SUM','ReportId':0x42},{'field':_0x333ee2(0x1eb),'alias':_0x333ee2(0x2a5),'function':'SUM','format':_0x333ee2(0x179),'custom':!![],'ReportId':0x42},{'field':_0x333ee2(0x22d),'alias':_0x333ee2(0x18d),'format':_0x333ee2(0x179),'custom':!![],'ReportId':0x42},{'field':_0x333ee2(0x21b),'alias':'Fax\x20Account','groupBy':!![],'ReportId':0x41},{'field':'UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(fax_interactions.createdAt)','alias':_0x333ee2(0x2a5),'function':_0x333ee2(0x27f),'format':_0x333ee2(0x179),'custom':!![],'ReportId':0x41},{'field':_0x333ee2(0x22d),'alias':_0x333ee2(0x18d),'format':_0x333ee2(0x179),'custom':!![],'ReportId':0x41},{'field':'fax_accounts.name','alias':_0x333ee2(0x21e),'groupBy':!![],'ReportId':0x40},{'field':_0x333ee2(0x256),'alias':'Interactions','function':_0x333ee2(0x2af),'ReportId':0x40},{'field':_0x333ee2(0x299),'alias':'Open','custom':!![],'ReportId':0x40},{'field':_0x333ee2(0x1b9),'alias':_0x333ee2(0x1a5),'custom':!![],'ReportId':0x40},{'field':_0x333ee2(0x217),'alias':_0x333ee2(0x1c7),'groupBy':!![],'custom':![],'ReportId':0x4a},{'field':'users.fullname','alias':_0x333ee2(0x25d),'groupBy':![],'custom':![],'ReportId':0x4a},{'field':_0x333ee2(0x18e),'alias':_0x333ee2(0x2b4),'groupBy':![],'custom':!![],'ReportId':0x4a},{'field':_0x333ee2(0x276),'alias':_0x333ee2(0x1ac),'groupBy':![],'custom':!![],'ReportId':0x4a},{'field':_0x333ee2(0x1cf),'alias':_0x333ee2(0x24e),'groupBy':![],'custom':!![],'ReportId':0x4a},{'field':_0x333ee2(0x1a7),'alias':_0x333ee2(0x17e),'groupBy':![],'custom':!![],'ReportId':0x4a},{'field':_0x333ee2(0x1e5),'alias':_0x333ee2(0x177),'function':_0x333ee2(0x2af),'groupBy':![],'custom':![],'ReportId':0x4a},{'field':_0x333ee2(0x17f),'alias':_0x333ee2(0x191),'groupBy':![],'custom':!![],'ReportId':0x45},{'field':'CONCAT(ROUND((\x20(SELECT\x20COUNT(IF(voice_recordings.sentiment\x20=\x20\x27NEGATIVE\x27,1,NULL)))*100/\x20COUNT\x20(voice_recordings.sentiment)),2),\x27%\x27)','alias':_0x333ee2(0x269),'groupBy':![],'custom':!![],'ReportId':0x4a},{'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':'Neutral(%)','groupBy':![],'custom':!![],'ReportId':0x4a},{'field':_0x333ee2(0x229),'alias':_0x333ee2(0x20b),'groupBy':![],'custom':!![],'ReportId':0x4a},{'field':'voice_recordings.sentiment','alias':_0x333ee2(0x215),'function':_0x333ee2(0x2af),'groupBy':![],'custom':![],'ReportId':0x4b},{'field':_0x333ee2(0x18e),'alias':'POSITIVE','groupBy':![],'custom':!![],'ReportId':0x4b},{'field':'COUNT\x20(IF(voice_recordings.sentiment\x20=\x20\x27NEGATIVE\x27,1,NULL))','alias':_0x333ee2(0x1ac),'groupBy':![],'custom':!![],'ReportId':0x4b},{'field':_0x333ee2(0x1cf),'alias':_0x333ee2(0x24e),'groupBy':![],'custom':!![],'ReportId':0x4b},{'field':_0x333ee2(0x1a7),'alias':_0x333ee2(0x17e),'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':_0x333ee2(0x191),'groupBy':![],'custom':!![],'ReportId':0x4b},{'field':'CONCAT(ROUND((\x20(SELECT\x20COUNT(IF(voice_recordings.sentiment\x20=\x20\x27NEGATIVE\x27,1,NULL)))*100/\x20COUNT\x20(voice_recordings.sentiment)),2),\x27%\x27)','alias':_0x333ee2(0x269),'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':_0x333ee2(0x18b),'groupBy':![],'custom':!![],'ReportId':0x4b},{'field':_0x333ee2(0x229),'alias':_0x333ee2(0x20b),'groupBy':![],'custom':!![],'ReportId':0x4b},{'field':_0x333ee2(0x1b3),'alias':'Whatsapp\x20Account','groupBy':!![],'ReportId':0x45},{'field':'whatsapp_interactions.id','alias':_0x333ee2(0x1e4),'function':'COUNT','ReportId':0x45},{'field':_0x333ee2(0x299),'alias':'Open','custom':!![],'ReportId':0x45},{'field':_0x333ee2(0x1b9),'alias':_0x333ee2(0x1a5),'custom':!![],'ReportId':0x45},{'field':_0x333ee2(0x1b3),'alias':_0x333ee2(0x247),'groupBy':!![],'ReportId':0x46},{'field':'UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(whatsapp_interactions.createdAt)','alias':'Interaction\x20Time','function':_0x333ee2(0x27f),'format':'SEC_TO_TIME','custom':!![],'ReportId':0x46},{'field':'ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(whatsapp_interactions.createdAt)))','alias':_0x333ee2(0x18d),'format':_0x333ee2(0x179),'custom':!![],'ReportId':0x46},{'field':_0x333ee2(0x184),'alias':_0x333ee2(0x1e6),'groupBy':!![],'ReportId':0x47},{'field':_0x333ee2(0x213),'alias':_0x333ee2(0x1a5),'function':'SUM','ReportId':0x47},{'field':_0x333ee2(0x289),'alias':'Interaction\x20Time','function':_0x333ee2(0x27f),'format':_0x333ee2(0x179),'custom':!![],'ReportId':0x47},{'field':'ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(whatsapp_interactions.createdAt)))','alias':'AVG\x20Interaction\x20Time','format':_0x333ee2(0x179),'custom':!![],'ReportId':0x47},{'field':_0x333ee2(0x25e),'alias':_0x333ee2(0x248),'format':_0x333ee2(0x261),'groupBy':!![],'custom':!![],'ReportId':0x48},{'field':_0x333ee2(0x23c),'alias':'Interactions','function':_0x333ee2(0x2af),'ReportId':0x48},{'field':_0x333ee2(0x1b9),'alias':_0x333ee2(0x183),'custom':!![],'ReportId':0x48},{'field':'ROUND(COUNT(IF(closed=1,1,NULL))/COUNT(id)\x20*100,1)','alias':_0x333ee2(0x1e7),'custom':!![],'ReportId':0x48},{'field':_0x333ee2(0x266),'alias':_0x333ee2(0x2a5),'function':_0x333ee2(0x27f),'format':_0x333ee2(0x179),'custom':!![],'ReportId':0x48},{'field':_0x333ee2(0x18a),'alias':_0x333ee2(0x18d),'format':'SEC_TO_TIME','custom':!![],'ReportId':0x48},{'field':_0x333ee2(0x24d),'alias':'Queue','groupBy':!![],'ReportId':0x49},{'field':_0x333ee2(0x180),'alias':_0x333ee2(0x1e4),'function':_0x333ee2(0x2af),'ReportId':0x49},{'field':_0x333ee2(0x201),'alias':_0x333ee2(0x24b),'custom':!![],'ReportId':0x49},{'field':_0x333ee2(0x203),'alias':'Timeout','custom':!![],'ReportId':0x49},{'field':'UNIX_TIMESTAMP(leaveAt)-UNIX_TIMESTAMP(joinAt)','alias':_0x333ee2(0x21a),'function':_0x333ee2(0x27f),'format':_0x333ee2(0x179),'custom':!![],'ReportId':0x49},{'field':_0x333ee2(0x249),'alias':_0x333ee2(0x233),'format':_0x333ee2(0x179),'custom':!![],'ReportId':0x49}];return _[_0x333ee2(0x28c)](_0x5311b4,_0x333ee2(0x28e));}; \ No newline at end of file diff --git a/server/config/seedDB/report/index.js b/server/config/seedDB/report/index.js index c362ee1..04b6ae9 100644 --- a/server/config/seedDB/report/index.js +++ b/server/config/seedDB/report/index.js @@ -1 +1 @@ -var a869_0x5ab1=['./default','./fields','exports'];(function(_0x263d85,_0x5ab1bd){var _0x5061db=function(_0x21409c){while(--_0x21409c){_0x263d85['push'](_0x263d85['shift']());}};_0x5061db(++_0x5ab1bd);}(a869_0x5ab1,0x146));var a869_0x5061=function(_0x263d85,_0x5ab1bd){_0x263d85=_0x263d85-0x0;var _0x5061db=a869_0x5ab1[_0x263d85];return _0x5061db;};var _0x292622=a869_0x5061;'use strict';module[_0x292622('0x0')]={'default':require(_0x292622('0x1')),'fields':require(_0x292622('0x2'))}; \ No newline at end of file +var a1031_0x1b9d=['./fields','exports','./default'];(function(_0x321271,_0x42f30d){var _0x1b9d04=function(_0x15dcce){while(--_0x15dcce){_0x321271['push'](_0x321271['shift']());}};_0x1b9d04(++_0x42f30d);}(a1031_0x1b9d,0xa9));var a1031_0x15dc=function(_0x321271,_0x42f30d){_0x321271=_0x321271-0xcf;var _0x1b9d04=a1031_0x1b9d[_0x321271];return _0x1b9d04;};var a1031_0x36fd93=a1031_0x15dc;'use strict';module[a1031_0x36fd93(0xcf)]={'default':require(a1031_0x36fd93(0xd0)),'fields':require(a1031_0x36fd93(0xd1))}; \ No newline at end of file diff --git a/server/config/seedDB/sounds.js b/server/config/seedDB/sounds.js index ed7f60f..d7b32bf 100644 --- a/server/config/seedDB/sounds.js +++ b/server/config/seedDB/sounds.js @@ -1 +1 @@ -const a870_0xdd78=['../../mysqldb','Agent\x20Pause','agentmanagement-unpause','Can\x27t\x20create\x20Sounds','create','Agent\x20Login','Call\x20Rating\x20Message','welcome-acme','order-elaborated','order-shipped','order-number','wav','agentmanagement-logout','Order\x20Elaborated','auto\x20generated\x20sound','Order\x20Message','info','agentmanagement-pause','Agent\x20Action\x20Failure','Welcome\x20Message','rate-call','Sounds\x20have\x20been\x20created','Agent\x20Menu','Thank\x20You','Agent\x20Logout','Order\x20Shipped','agentmanagement-action-failure','error','agentmanagement-login','then','thanx','app','mp3'];(function(_0x58ff4c,_0xdd788e){const _0x2db493=function(_0x3563d3){while(--_0x3563d3){_0x58ff4c['push'](_0x58ff4c['shift']());}};_0x2db493(++_0xdd788e);}(a870_0xdd78,0x163));const a870_0x2db4=function(_0x58ff4c,_0xdd788e){_0x58ff4c=_0x58ff4c-0x0;let _0x2db493=a870_0xdd78[_0x58ff4c];return _0x2db493;};const _0x311e8f=a870_0x2db4;'use strict';const db=require(_0x311e8f('0x8'))['db'],logger=require('../logger')(_0x311e8f('0x6')),sounds=[{'id':0x1,'name':'Welcome\x20Message','save_name':_0x311e8f('0xf'),'display_name':_0x311e8f('0x1b'),'original_format':_0x311e8f('0x13'),'converted_format':_0x311e8f('0x13'),'description':_0x311e8f('0x16')},{'id':0x2,'name':_0x311e8f('0x17'),'save_name':_0x311e8f('0x12'),'display_name':_0x311e8f('0x17'),'original_format':'wav','converted_format':_0x311e8f('0x13'),'description':'auto\x20generated\x20sound'},{'id':0x3,'name':_0x311e8f('0x0'),'save_name':_0x311e8f('0x11'),'display_name':_0x311e8f('0x0'),'original_format':_0x311e8f('0x13'),'converted_format':'wav','description':_0x311e8f('0x16')},{'id':0x4,'name':_0x311e8f('0x15'),'save_name':_0x311e8f('0x10'),'display_name':_0x311e8f('0x15'),'original_format':_0x311e8f('0x13'),'converted_format':_0x311e8f('0x13'),'description':'auto\x20generated\x20sound'},{'id':0x5,'name':_0x311e8f('0xe'),'save_name':_0x311e8f('0x1c'),'display_name':'Call\x20Rating\x20Message','original_format':_0x311e8f('0x13'),'converted_format':_0x311e8f('0x13'),'description':_0x311e8f('0x16')},{'id':0x6,'name':_0x311e8f('0x1f'),'save_name':_0x311e8f('0x5'),'display_name':_0x311e8f('0x1f'),'original_format':'wav','converted_format':'wav','description':_0x311e8f('0x16')},{'id':0x7,'name':_0x311e8f('0xd'),'save_name':_0x311e8f('0x3'),'display_name':_0x311e8f('0xd'),'original_format':'mp3','converted_format':_0x311e8f('0x13'),'description':_0x311e8f('0x16')},{'id':0x8,'name':_0x311e8f('0x20'),'save_name':_0x311e8f('0x14'),'display_name':'Agent\x20Logout','original_format':_0x311e8f('0x7'),'converted_format':'wav','description':'auto\x20generated\x20sound'},{'id':0x9,'name':_0x311e8f('0x1e'),'save_name':'agentmanagement-menu','display_name':'Agent\x20Menu','original_format':'wav','converted_format':'wav','description':_0x311e8f('0x16')},{'id':0xa,'name':'Agent\x20Pause','save_name':_0x311e8f('0x19'),'display_name':_0x311e8f('0x9'),'original_format':_0x311e8f('0x7'),'converted_format':_0x311e8f('0x13'),'description':_0x311e8f('0x16')},{'id':0xb,'name':'Agent\x20End\x20Pause','save_name':_0x311e8f('0xa'),'display_name':'Agent\x20End\x20Pause','original_format':_0x311e8f('0x7'),'converted_format':'wav','description':_0x311e8f('0x16')},{'id':0xc,'name':'Agent\x20Action\x20Failure','save_name':_0x311e8f('0x1'),'display_name':_0x311e8f('0x1a'),'original_format':_0x311e8f('0x13'),'converted_format':_0x311e8f('0x13'),'description':_0x311e8f('0x16')}];exports[_0x311e8f('0xc')]=function(){const _0x5ece10=_0x311e8f;return db['Sound']['bulkCreate'](sounds,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x5ece10('0x4')](function(){const _0x1d0a94=_0x5ece10;logger[_0x1d0a94('0x18')](_0x1d0a94('0x1d'));})['catch'](function(){const _0xf6b1de=_0x5ece10;logger[_0xf6b1de('0x2')](_0xf6b1de('0xb'));});}; \ No newline at end of file +const a1032_0x4f7d=['rate-call','Order\x20Message','Thank\x20You','Agent\x20Pause','Order\x20Shipped','thanx','create','bulkCreate','mp3','auto\x20generated\x20sound','wav','Order\x20Elaborated','Agent\x20End\x20Pause','Agent\x20Action\x20Failure','agentmanagement-action-failure','agentmanagement-logout','Sounds\x20have\x20been\x20created','../../mysqldb','agentmanagement-menu','order-number','Welcome\x20Message','Agent\x20Logout','Sound','info','Call\x20Rating\x20Message','Can\x27t\x20create\x20Sounds','welcome-acme','Agent\x20Login','error','agentmanagement-login','app'];(function(_0x5d6549,_0x4378e1){const _0x4f7d02=function(_0x5bee51){while(--_0x5bee51){_0x5d6549['push'](_0x5d6549['shift']());}};_0x4f7d02(++_0x4378e1);}(a1032_0x4f7d,0x1a6));const a1032_0x5bee=function(_0x5d6549,_0x4378e1){_0x5d6549=_0x5d6549-0x101;let _0x4f7d02=a1032_0x4f7d[_0x5d6549];return _0x4f7d02;};const a1032_0xec0b21=a1032_0x5bee;'use strict';const {db}=require(a1032_0xec0b21(0x11e)),logger=require('../logger')(a1032_0xec0b21(0x10c)),sounds=[{'id':0x1,'name':a1032_0xec0b21(0x102),'save_name':a1032_0xec0b21(0x108),'display_name':a1032_0xec0b21(0x102),'original_format':a1032_0xec0b21(0x117),'converted_format':'wav','description':a1032_0xec0b21(0x116)},{'id':0x2,'name':a1032_0xec0b21(0x10e),'save_name':a1032_0xec0b21(0x101),'display_name':a1032_0xec0b21(0x10e),'original_format':a1032_0xec0b21(0x117),'converted_format':a1032_0xec0b21(0x117),'description':a1032_0xec0b21(0x116)},{'id':0x3,'name':a1032_0xec0b21(0x111),'save_name':'order-shipped','display_name':a1032_0xec0b21(0x111),'original_format':a1032_0xec0b21(0x117),'converted_format':a1032_0xec0b21(0x117),'description':'auto\x20generated\x20sound'},{'id':0x4,'name':a1032_0xec0b21(0x118),'save_name':'order-elaborated','display_name':a1032_0xec0b21(0x118),'original_format':'wav','converted_format':a1032_0xec0b21(0x117),'description':a1032_0xec0b21(0x116)},{'id':0x5,'name':a1032_0xec0b21(0x106),'save_name':a1032_0xec0b21(0x10d),'display_name':a1032_0xec0b21(0x106),'original_format':a1032_0xec0b21(0x117),'converted_format':'wav','description':a1032_0xec0b21(0x116)},{'id':0x6,'name':a1032_0xec0b21(0x10f),'save_name':a1032_0xec0b21(0x112),'display_name':a1032_0xec0b21(0x10f),'original_format':'wav','converted_format':a1032_0xec0b21(0x117),'description':a1032_0xec0b21(0x116)},{'id':0x7,'name':'Agent\x20Login','save_name':a1032_0xec0b21(0x10b),'display_name':a1032_0xec0b21(0x109),'original_format':a1032_0xec0b21(0x115),'converted_format':'wav','description':a1032_0xec0b21(0x116)},{'id':0x8,'name':a1032_0xec0b21(0x103),'save_name':a1032_0xec0b21(0x11c),'display_name':'Agent\x20Logout','original_format':'mp3','converted_format':'wav','description':a1032_0xec0b21(0x116)},{'id':0x9,'name':'Agent\x20Menu','save_name':a1032_0xec0b21(0x11f),'display_name':'Agent\x20Menu','original_format':a1032_0xec0b21(0x117),'converted_format':a1032_0xec0b21(0x117),'description':'auto\x20generated\x20sound'},{'id':0xa,'name':a1032_0xec0b21(0x110),'save_name':'agentmanagement-pause','display_name':a1032_0xec0b21(0x110),'original_format':a1032_0xec0b21(0x115),'converted_format':a1032_0xec0b21(0x117),'description':a1032_0xec0b21(0x116)},{'id':0xb,'name':a1032_0xec0b21(0x119),'save_name':'agentmanagement-unpause','display_name':a1032_0xec0b21(0x119),'original_format':'mp3','converted_format':a1032_0xec0b21(0x117),'description':a1032_0xec0b21(0x116)},{'id':0xc,'name':'Agent\x20Action\x20Failure','save_name':a1032_0xec0b21(0x11b),'display_name':a1032_0xec0b21(0x11a),'original_format':a1032_0xec0b21(0x117),'converted_format':a1032_0xec0b21(0x117),'description':a1032_0xec0b21(0x116)}];exports[a1032_0xec0b21(0x113)]=function(){const _0x27bd25=a1032_0xec0b21;return db[_0x27bd25(0x104)][_0x27bd25(0x114)](sounds,{'ignoreDuplicates':!![],'individualHooks':!![]})['then'](function(){const _0x553df2=_0x27bd25;logger[_0x553df2(0x105)](_0x553df2(0x11d));})['catch'](function(){const _0x30f6a2=_0x27bd25;logger[_0x30f6a2(0x10a)](_0x30f6a2(0x107));});}; \ No newline at end of file diff --git a/server/config/seedDB/squareOdbc.js b/server/config/seedDB/squareOdbc.js index 140dc57..003b1c4 100644 --- a/server/config/seedDB/squareOdbc.js +++ b/server/config/seedDB/squareOdbc.js @@ -1 +1 @@ -const a871_0x5e94=['error','create','ODBC\x20have\x20been\x20created','SquareOdbc','then','bulkCreate','xcally-motion-database','DRIVER=MySQL;SERVER=127.0.0.1;UID=xcall;PWD=xC@LL1234;DATABASE=motion2','../logger','catch','app','../../mysqldb','info'];(function(_0x1710b1,_0x5e9448){const _0x3ced03=function(_0x2279f9){while(--_0x2279f9){_0x1710b1['push'](_0x1710b1['shift']());}};_0x3ced03(++_0x5e9448);}(a871_0x5e94,0x13b));const a871_0x3ced=function(_0x1710b1,_0x5e9448){_0x1710b1=_0x1710b1-0x0;let _0x3ced03=a871_0x5e94[_0x1710b1];return _0x3ced03;};const _0x51faf0=a871_0x3ced;'use strict';const db=require(_0x51faf0('0x8'))['db'],logger=require(_0x51faf0('0x5'))(_0x51faf0('0x7')),odbc=[{'id':0x1,'name':_0x51faf0('0x3'),'dsn':_0x51faf0('0x4'),'description':'xcally\x20motion\x20db\x20auto\x20generated'}];exports[_0x51faf0('0xb')]=function(){const _0xe08d9a=_0x51faf0;return db[_0xe08d9a('0x0')][_0xe08d9a('0x2')](odbc,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0xe08d9a('0x1')](function(){const _0x33340c=_0xe08d9a;logger[_0x33340c('0x9')](_0x33340c('0xc'));})[_0xe08d9a('0x6')](function(){const _0x4dc14a=_0xe08d9a;logger[_0x4dc14a('0xa')]('Can\x27t\x20create\x20ODBC');});}; \ No newline at end of file +const a1033_0x3592=['xcally-motion-database','catch','../logger','ODBC\x20have\x20been\x20created','app','info','SquareOdbc','xcally\x20motion\x20db\x20auto\x20generated','DRIVER=MySQL;SERVER=127.0.0.1;UID=xcall;PWD=xC@LL1234;DATABASE=motion2','../../mysqldb','then','Can\x27t\x20create\x20ODBC'];(function(_0x1af410,_0x1632e1){const _0x35925a=function(_0x2ad1aa){while(--_0x2ad1aa){_0x1af410['push'](_0x1af410['shift']());}};_0x35925a(++_0x1632e1);}(a1033_0x3592,0x1a3));const a1033_0x2ad1=function(_0x1af410,_0x1632e1){_0x1af410=_0x1af410-0x1f1;let _0x35925a=a1033_0x3592[_0x1af410];return _0x35925a;};const a1033_0x1a8d81=a1033_0x2ad1;'use strict';const {db}=require(a1033_0x1a8d81(0x1fb)),logger=require(a1033_0x1a8d81(0x1f4))(a1033_0x1a8d81(0x1f6)),odbc=[{'id':0x1,'name':a1033_0x1a8d81(0x1f2),'dsn':a1033_0x1a8d81(0x1fa),'description':a1033_0x1a8d81(0x1f9)}];exports['create']=function(){const _0x1de806=a1033_0x1a8d81;return db[_0x1de806(0x1f8)]['bulkCreate'](odbc,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x1de806(0x1fc)](function(){const _0x83e4fb=_0x1de806;logger[_0x83e4fb(0x1f7)](_0x83e4fb(0x1f5));})[_0x1de806(0x1f3)](function(){const _0x4d762f=_0x1de806;logger['error'](_0x4d762f(0x1f1));});}; \ No newline at end of file diff --git a/server/config/seedDB/squareProjects.js b/server/config/seedDB/squareProjects.js index 99aae0e..6a56914 100644 --- a/server/config/seedDB/squareProjects.js +++ b/server/config/seedDB/squareProjects.js @@ -1 +1 @@ -const a872_0x3f7d=['utf-8','Orders','SquareProject','then','xml','app','Survey\x20IVR\x20sample\x20auto\x20generated','AutoAttendant','readFileSync','create','bulkCreate','CSI','path','Agent\x20Management\x20sample\x20auto\x20generated','Customer\x20Satisfaction\x20IVR\x20sample\x20auto\x20generated','Survey','.xml','info','join','Order\x20DB\x20IVR\x20sample\x20auto\x20generated','Basic\x20IVR\x20sample\x20auto\x20generated','catch','Square\x20Projects\x20have\x20been\x20created','AgentManagement'];(function(_0x594dc9,_0x3f7d4b){const _0x598321=function(_0x47e4e8){while(--_0x47e4e8){_0x594dc9['push'](_0x594dc9['shift']());}};_0x598321(++_0x3f7d4b);}(a872_0x3f7d,0x114));const a872_0x5983=function(_0x594dc9,_0x3f7d4b){_0x594dc9=_0x594dc9-0x0;let _0x598321=a872_0x3f7d[_0x594dc9];return _0x598321;};const _0x4480a6=a872_0x5983;'use strict';const fs=require('fs'),path=require(_0x4480a6('0x0')),db=require('../../mysqldb')['db'],logger=require('../logger')(_0x4480a6('0x11')),getXml=function(_0x47e4e8){const _0x2c37d4=_0x4480a6;return fs[_0x2c37d4('0x14')](path[_0x2c37d4('0x6')](__dirname,_0x2c37d4('0x10'),_0x47e4e8+_0x2c37d4('0x4')),{'encoding':_0x2c37d4('0xc')});},squareProjects=[{'id':0x1,'name':_0x4480a6('0x13'),'description':_0x4480a6('0x8'),'preproduction':getXml(_0x4480a6('0x13')),'production':getXml(_0x4480a6('0x13'))},{'id':0x2,'name':'CSI','description':_0x4480a6('0x2'),'preproduction':getXml(_0x4480a6('0x17')),'production':getXml(_0x4480a6('0x17'))},{'id':0x3,'name':_0x4480a6('0xd'),'description':_0x4480a6('0x7'),'preproduction':getXml(_0x4480a6('0xd')),'production':getXml('Orders')},{'id':0x4,'name':_0x4480a6('0x3'),'description':_0x4480a6('0x12'),'preproduction':getXml(_0x4480a6('0x3')),'production':getXml(_0x4480a6('0x3'))},{'id':0x5,'name':_0x4480a6('0xb'),'description':_0x4480a6('0x1'),'preproduction':getXml(_0x4480a6('0xb')),'production':getXml(_0x4480a6('0xb'))}];exports[_0x4480a6('0x15')]=function(){const _0x13b3be=_0x4480a6;return db[_0x13b3be('0xe')][_0x13b3be('0x16')](squareProjects,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x13b3be('0xf')](function(){const _0x43f99c=_0x13b3be;logger[_0x43f99c('0x5')](_0x43f99c('0xa'));})[_0x13b3be('0x9')](function(){logger['error']('Can\x27t\x20create\x20Square\x20Projects');});}; \ No newline at end of file +const a1034_0x5a80=['AutoAttendant','CSI','catch','create','.xml','utf-8','xml','Survey','join','bulkCreate','readFileSync','then','error','Customer\x20Satisfaction\x20IVR\x20sample\x20auto\x20generated','../logger','app','info','AgentManagement','Order\x20DB\x20IVR\x20sample\x20auto\x20generated','path','Orders','SquareProject','Survey\x20IVR\x20sample\x20auto\x20generated','Square\x20Projects\x20have\x20been\x20created','Basic\x20IVR\x20sample\x20auto\x20generated','Agent\x20Management\x20sample\x20auto\x20generated','Can\x27t\x20create\x20Square\x20Projects'];(function(_0x4b2eff,_0x2efae5){const _0x5a8061=function(_0x57d660){while(--_0x57d660){_0x4b2eff['push'](_0x4b2eff['shift']());}};_0x5a8061(++_0x2efae5);}(a1034_0x5a80,0x9c));const a1034_0x57d6=function(_0x4b2eff,_0x2efae5){_0x4b2eff=_0x4b2eff-0x157;let _0x5a8061=a1034_0x5a80[_0x4b2eff];return _0x5a8061;};const a1034_0x8ba920=a1034_0x57d6;'use strict';const fs=require('fs'),path=require(a1034_0x8ba920(0x170)),{db}=require('../../mysqldb'),logger=require(a1034_0x8ba920(0x16b))(a1034_0x8ba920(0x16c)),getXml=function(_0xe368d2){const _0xb1e22b=a1034_0x8ba920;return fs[_0xb1e22b(0x167)](path[_0xb1e22b(0x165)](__dirname,_0xb1e22b(0x163),_0xe368d2+_0xb1e22b(0x161)),{'encoding':_0xb1e22b(0x162)});},squareProjects=[{'id':0x1,'name':a1034_0x8ba920(0x15d),'description':a1034_0x8ba920(0x15a),'preproduction':getXml(a1034_0x8ba920(0x15d)),'production':getXml(a1034_0x8ba920(0x15d))},{'id':0x2,'name':a1034_0x8ba920(0x15e),'description':a1034_0x8ba920(0x16a),'preproduction':getXml(a1034_0x8ba920(0x15e)),'production':getXml(a1034_0x8ba920(0x15e))},{'id':0x3,'name':a1034_0x8ba920(0x171),'description':a1034_0x8ba920(0x16f),'preproduction':getXml(a1034_0x8ba920(0x171)),'production':getXml(a1034_0x8ba920(0x171))},{'id':0x4,'name':a1034_0x8ba920(0x164),'description':a1034_0x8ba920(0x158),'preproduction':getXml(a1034_0x8ba920(0x164)),'production':getXml(a1034_0x8ba920(0x164))},{'id':0x5,'name':a1034_0x8ba920(0x16e),'description':a1034_0x8ba920(0x15b),'preproduction':getXml(a1034_0x8ba920(0x16e)),'production':getXml(a1034_0x8ba920(0x16e))}];exports[a1034_0x8ba920(0x160)]=function(){const _0x2df15e=a1034_0x8ba920;return db[_0x2df15e(0x157)][_0x2df15e(0x166)](squareProjects,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x2df15e(0x168)](function(){const _0x19ea0c=_0x2df15e;logger[_0x19ea0c(0x16d)](_0x19ea0c(0x159));})[_0x2df15e(0x15f)](function(){const _0x53093e=_0x2df15e;logger[_0x53093e(0x169)](_0x53093e(0x15c));});}; \ No newline at end of file diff --git a/server/config/seedDB/tags.js b/server/config/seedDB/tags.js index 9cbd913..2ba1efc 100644 --- a/server/config/seedDB/tags.js +++ b/server/config/seedDB/tags.js @@ -1 +1 @@ -const a873_0x2a28=['name','tag\x20defective\x20auto\x20generated','tag\x20faq\x20auto\x20generated','tag\x20forums\x20auto\x20generated','about_sales','error','tag\x20installation\x20auto\x20generated','getNames','faq','Tags\x20have\x20been\x20created','catch','forums','defective','map','Can\x27t\x20create\x20Tags','installation','bulkCreate','lodash','../../mysqldb'];(function(_0x45c2ab,_0x2a28fd){const _0xc42164=function(_0x23119a){while(--_0x23119a){_0x45c2ab['push'](_0x45c2ab['shift']());}};_0xc42164(++_0x2a28fd);}(a873_0x2a28,0xc8));const a873_0xc421=function(_0x45c2ab,_0x2a28fd){_0x45c2ab=_0x45c2ab-0x0;let _0xc42164=a873_0x2a28[_0x45c2ab];return _0xc42164;};const _0xb8200b=a873_0xc421;'use strict';const _=require(_0xb8200b('0x7')),db=require(_0xb8200b('0x8'))['db'],logger=require('../logger')('app'),tags=[{'id':0x1,'name':_0xb8200b('0x1'),'description':_0xb8200b('0xc')},{'id':0x2,'name':_0xb8200b('0x2'),'description':_0xb8200b('0xa')},{'id':0x3,'name':_0xb8200b('0x11'),'description':_0xb8200b('0xb')},{'id':0x4,'name':_0xb8200b('0x5'),'description':_0xb8200b('0xf')},{'id':0x5,'name':_0xb8200b('0xd'),'description':'tag\x20about_sales\x20auto\x20generated'}];exports['create']=function(){const _0x23425e=_0xb8200b;return db['Tag'][_0x23425e('0x6')](tags,{'ignoreDuplicates':!![],'individualHooks':!![]})['then'](function(){const _0xdb7a42=_0x23425e;logger['info'](_0xdb7a42('0x12'));})[_0x23425e('0x0')](function(){const _0x471475=_0x23425e;logger[_0x471475('0xe')](_0x471475('0x4'));});},exports[_0xb8200b('0x10')]=function(){const _0x4ae54a=_0xb8200b;return _[_0x4ae54a('0x3')](tags,_0x4ae54a('0x9'));}; \ No newline at end of file +const a1035_0x7cdd=['app','about_sales','../logger','name','../../mysqldb','faq','create','tag\x20forums\x20auto\x20generated','tag\x20faq\x20auto\x20generated','info','tag\x20installation\x20auto\x20generated','tag\x20about_sales\x20auto\x20generated','Tags\x20have\x20been\x20created','Tag','error','tag\x20defective\x20auto\x20generated','bulkCreate','lodash','map','Can\x27t\x20create\x20Tags'];(function(_0x2a9c5a,_0x4d7329){const _0x7cdd20=function(_0xc4e0c2){while(--_0xc4e0c2){_0x2a9c5a['push'](_0x2a9c5a['shift']());}};_0x7cdd20(++_0x4d7329);}(a1035_0x7cdd,0x1b3));const a1035_0xc4e0=function(_0x2a9c5a,_0x4d7329){_0x2a9c5a=_0x2a9c5a-0xd0;let _0x7cdd20=a1035_0x7cdd[_0x2a9c5a];return _0x7cdd20;};const a1035_0x4c7a33=a1035_0xc4e0;'use strict';const _=require(a1035_0x4c7a33(0xd2)),{db}=require(a1035_0x4c7a33(0xd9)),logger=require(a1035_0x4c7a33(0xd7))(a1035_0x4c7a33(0xd5)),tags=[{'id':0x1,'name':'forums','description':a1035_0x4c7a33(0xdc)},{'id':0x2,'name':'defective','description':a1035_0x4c7a33(0xd0)},{'id':0x3,'name':a1035_0x4c7a33(0xda),'description':a1035_0x4c7a33(0xdd)},{'id':0x4,'name':'installation','description':a1035_0x4c7a33(0xdf)},{'id':0x5,'name':a1035_0x4c7a33(0xd6),'description':a1035_0x4c7a33(0xe0)}];exports[a1035_0x4c7a33(0xdb)]=function(){const _0x587158=a1035_0x4c7a33;return db[_0x587158(0xe2)][_0x587158(0xd1)](tags,{'ignoreDuplicates':!![],'individualHooks':!![]})['then'](function(){const _0x368134=_0x587158;logger[_0x368134(0xde)](_0x368134(0xe1));})['catch'](function(){const _0x4beaab=_0x587158;logger[_0x4beaab(0xe3)](_0x4beaab(0xd4));});},exports['getNames']=function(){const _0x342ae1=a1035_0x4c7a33;return _[_0x342ae1(0xd3)](tags,_0x342ae1(0xd8));}; \ No newline at end of file diff --git a/server/config/seedDB/teams.js b/server/config/seedDB/teams.js index c2ceb05..5ddee05 100644 --- a/server/config/seedDB/teams.js +++ b/server/config/seedDB/teams.js @@ -1 +1 @@ -const a874_0x1947=['Teams\x20have\x20been\x20created','create','Can\x27t\x20create\x20Teams','Demo\x20Team','addAgents','../../mysqldb','demo\x20team\x20auto\x20generated','error','../logger','info','app','then','bulkCreate','length','catch'];(function(_0x2f93f8,_0x1947ea){const _0x660355=function(_0x4712dd){while(--_0x4712dd){_0x2f93f8['push'](_0x2f93f8['shift']());}};_0x660355(++_0x1947ea);}(a874_0x1947,0x1d4));const a874_0x6603=function(_0x2f93f8,_0x1947ea){_0x2f93f8=_0x2f93f8-0x0;let _0x660355=a874_0x1947[_0x2f93f8];return _0x660355;};const _0x3af35c=a874_0x6603;'use strict';const db=require(_0x3af35c('0x2'))['db'],logger=require(_0x3af35c('0x5'))(_0x3af35c('0x7')),teams=[{'id':0x1,'name':_0x3af35c('0x0'),'description':_0x3af35c('0x3')}];exports[_0x3af35c('0xd')]=function(){const _0x25e005=_0x3af35c;return db['Team'][_0x25e005('0x9')](teams,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x25e005('0x8')](function(_0x4712dd){const _0x797985=_0x25e005;for(let _0x12c57c=0x0;_0x12c57c<_0x4712dd[_0x797985('0xa')];_0x12c57c+=0x1){_0x4712dd[_0x12c57c][_0x797985('0x1')]([0x2,0x3]);}})['then'](function(){const _0x32b9ee=_0x25e005;logger[_0x32b9ee('0x6')](_0x32b9ee('0xc'));})[_0x25e005('0xb')](function(){const _0x1ce901=_0x25e005;logger[_0x1ce901('0x4')](_0x1ce901('0xe'));});}; \ No newline at end of file +const a1036_0x35a6=['error','../../mysqldb','bulkCreate','app','length','then','demo\x20team\x20auto\x20generated','info','Teams\x20have\x20been\x20created','create','../logger'];(function(_0x5dacb5,_0x51e196){const _0x35a6c2=function(_0x1845c1){while(--_0x1845c1){_0x5dacb5['push'](_0x5dacb5['shift']());}};_0x35a6c2(++_0x51e196);}(a1036_0x35a6,0x1d7));const a1036_0x1845=function(_0x5dacb5,_0x51e196){_0x5dacb5=_0x5dacb5-0x1ad;let _0x35a6c2=a1036_0x35a6[_0x5dacb5];return _0x35a6c2;};const a1036_0x33c358=a1036_0x1845;'use strict';const {db}=require(a1036_0x33c358(0x1b0)),logger=require(a1036_0x33c358(0x1ae))(a1036_0x33c358(0x1b2)),teams=[{'id':0x1,'name':'Demo\x20Team','description':a1036_0x33c358(0x1b5)}];exports[a1036_0x33c358(0x1ad)]=function(){const _0x307c72=a1036_0x33c358;return db['Team'][_0x307c72(0x1b1)](teams,{'ignoreDuplicates':!![],'individualHooks':!![]})['then'](function(_0x47e41f){const _0x3cd30c=_0x307c72;for(let _0x1a8cbd=0x0;_0x1a8cbd<_0x47e41f[_0x3cd30c(0x1b3)];_0x1a8cbd+=0x1){_0x47e41f[_0x1a8cbd]['addAgents']([0x2,0x3]);}})[_0x307c72(0x1b4)](function(){const _0x1b4914=_0x307c72;logger[_0x1b4914(0x1b6)](_0x1b4914(0x1b7));})['catch'](function(){const _0x3936b0=_0x307c72;logger[_0x3936b0(0x1af)]('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 c162e86..3c688a7 100644 --- a/server/config/seedDB/tree/index.js +++ b/server/config/seedDB/tree/index.js @@ -1 +1 @@ -var a875_0x4c7e=['unanswered','Motion\x20Bull','Queue\x20Campaigns','Openchannel','icon\x20s20\x20','Email','icon\x20s20\x20icon-account-multiple','Chat','Queues','calls','voice','icon\x20s20\x20icon-message-text','icon\x20s20\x20icon-phone-dots','queues','Agents','sms','icon\x20s20\x20icon-google-earth','Fax','queue_campaigns','Cally\x20Square','openchannel','icon\x20s20\x20icon-fire','fax','bull','icon\x20s20\x20icon-phone-log','Answered','chat','motion','Calls','icon\x20s20\x20icon-stackoverflow','Voice','callysquare','agents','Distribution','whatsapp','icon\x20s20\x20icon-sitemap','Recordings','custom','distribution'];(function(_0x2b8086,_0x4c7e8c){var _0x3625da=function(_0x1ccf45){while(--_0x1ccf45){_0x2b8086['push'](_0x2b8086['shift']());}};_0x3625da(++_0x4c7e8c);}(a875_0x4c7e,0x12c));var a875_0x3625=function(_0x2b8086,_0x4c7e8c){_0x2b8086=_0x2b8086-0x0;var _0x3625da=a875_0x4c7e[_0x2b8086];return _0x3625da;};var _0x2c8b7e=a875_0x3625;'use strict';function getQueuesChildren(_0x1ccf45){var _0x47cb73=a875_0x3625;return _0x1ccf45+='_',[{'id':_0x1ccf45+'answered','text':_0x47cb73('0x25')},{'id':_0x1ccf45+_0x47cb73('0xc'),'text':'Unanswered'},{'id':_0x1ccf45+_0x47cb73('0xb'),'text':_0x47cb73('0x6')}];}function getVoiceChildren(_0x57b2dc){var _0x1f864f=a875_0x3625;return _0x57b2dc+='_',[{'id':_0x57b2dc+_0x1f864f('0x19'),'text':_0x1f864f('0x14'),'icon':_0x1f864f('0x2'),'children':getQueuesChildren(_0x57b2dc+_0x1f864f('0x19'))},{'id':_0x57b2dc+_0x1f864f('0x15'),'text':_0x1f864f('0x1'),'icon':_0x1f864f('0x18')},{'id':_0x57b2dc+_0x1f864f('0x5'),'text':'Agents','icon':_0x1f864f('0x12')},{'id':_0x57b2dc+_0x1f864f('0x4'),'text':_0x1f864f('0x1f'),'icon':_0x1f864f('0x8')},{'id':_0x57b2dc+'recordings','text':_0x1f864f('0x9'),'icon':'icon\x20s20\x20icon-microphone'}];}function getBullChildren(_0x2df584){var _0x4c814f=a875_0x3625;return _0x2df584+='_',[{'id':_0x2df584+_0x4c814f('0x1e'),'text':_0x4c814f('0xe'),'icon':_0x4c814f('0x2')},{'id':_0x2df584+'ivr_campaigns','text':'IVR\x20Campaigns','icon':'icon\x20s20\x20icon-sitemap'}];}function getMotionChildren(_0x473d53){var _0x3ad54e=a875_0x3625;return _0x473d53+='_',[{'id':_0x473d53+_0x3ad54e('0x16'),'text':_0x3ad54e('0x3'),'icon':_0x3ad54e('0x24'),'children':getVoiceChildren(_0x473d53+'voice')},{'id':_0x473d53+_0x3ad54e('0x23'),'text':_0x3ad54e('0xd'),'icon':_0x3ad54e('0x21'),'children':getBullChildren(_0x473d53+_0x3ad54e('0x23'))},{'id':_0x473d53+_0x3ad54e('0x26'),'text':_0x3ad54e('0x13'),'icon':'icon\x20s20\x20icon-hangouts'},{'id':_0x473d53+'mail','text':_0x3ad54e('0x11'),'icon':'icon\x20s20\x20icon-email'},{'id':_0x473d53+_0x3ad54e('0x20'),'text':_0x3ad54e('0xf'),'icon':_0x3ad54e('0x1c')},{'id':_0x473d53+_0x3ad54e('0x1b'),'text':'Sms','icon':_0x3ad54e('0x17')},{'id':_0x473d53+_0x3ad54e('0x22'),'text':_0x3ad54e('0x1d'),'icon':'icon\x20s20\x20icon-deskphone'},{'id':_0x473d53+_0x3ad54e('0x7'),'text':'WhatsApp\x20Connector','icon':'icon\x20s20\x20icon-whatsapp'},{'id':_0x473d53+_0x3ad54e('0x5'),'text':_0x3ad54e('0x1a'),'icon':_0x3ad54e('0x12')}];}function getTree(_0x20c065){var _0x89c123=a875_0x3625;return[{'id':_0x20c065?_0x89c123('0xa'):_0x89c123('0x0'),'text':(_0x20c065?'Custom':'Motion')+'\x20Reports','icon':_0x89c123('0x10')+(_0x20c065?'icon-laptop-chromebook':'icon-cloud'),'state':{'opened':!![],'selected':!![]},'children':getMotionChildren(_0x20c065?_0x89c123('0xa'):_0x89c123('0x0'))}];}exports[_0x2c8b7e('0x0')]=getTree(![]),exports[_0x2c8b7e('0xa')]=getTree(!![]); \ No newline at end of file +var a1037_0x137a=['Agents','Sms','ivr_campaigns','icon\x20s20\x20icon-stackoverflow','bull','custom','calls','icon\x20s20\x20icon-phone-dots','WhatsApp\x20Connector','Chat','Queues','queue_campaigns','Calls','whatsapp','icon\x20s20\x20icon-deskphone','Motion\x20Bull','icon\x20s20\x20','icon\x20s20\x20icon-phone-log','Fax','IVR\x20Campaigns','agents','queues','recordings','icon-cloud','icon\x20s20\x20icon-fire','mail','icon\x20s20\x20icon-email','icon\x20s20\x20icon-whatsapp','distribution','\x20Reports','Recordings','Distribution','Custom','voice','Voice','icon\x20s20\x20icon-account-multiple','unanswered','Email','icon\x20s20\x20icon-google-earth','icon\x20s20\x20icon-message-text','icon\x20s20\x20icon-sitemap'];(function(_0x207c0d,_0xba75d2){var _0x137acf=function(_0x5d0507){while(--_0x5d0507){_0x207c0d['push'](_0x207c0d['shift']());}};_0x137acf(++_0xba75d2);}(a1037_0x137a,0x1dc));var a1037_0x5d05=function(_0x207c0d,_0xba75d2){_0x207c0d=_0x207c0d-0xab;var _0x137acf=a1037_0x137a[_0x207c0d];return _0x137acf;};var a1037_0x25c8b3=a1037_0x5d05;'use strict';function getQueuesChildren(_0x153072){var _0x4f96e6=a1037_0x5d05;return _0x153072+='_',[{'id':_0x153072+'answered','text':'Answered'},{'id':_0x153072+_0x4f96e6(0xb6),'text':'Unanswered'},{'id':_0x153072+_0x4f96e6(0xae),'text':_0x4f96e6(0xb1)}];}function getVoiceChildren(_0x36dad2){var _0x5c3da3=a1037_0x5d05;return _0x36dad2+='_',[{'id':_0x36dad2+_0x5c3da3(0xd0),'text':_0x5c3da3(0xc5),'icon':_0x5c3da3(0xbe),'children':getQueuesChildren(_0x36dad2+_0x5c3da3(0xd0))},{'id':_0x36dad2+_0x5c3da3(0xc1),'text':_0x5c3da3(0xc7),'icon':_0x5c3da3(0xc2)},{'id':_0x36dad2+_0x5c3da3(0xcf),'text':'Agents','icon':_0x5c3da3(0xb5)},{'id':_0x36dad2+'callysquare','text':'Cally\x20Square','icon':_0x5c3da3(0xba)},{'id':_0x36dad2+_0x5c3da3(0xd1),'text':_0x5c3da3(0xb0),'icon':'icon\x20s20\x20icon-microphone'}];}function getBullChildren(_0x106512){var _0x7cecab=a1037_0x5d05;return _0x106512+='_',[{'id':_0x106512+_0x7cecab(0xc6),'text':'Queue\x20Campaigns','icon':_0x7cecab(0xbe)},{'id':_0x106512+_0x7cecab(0xbd),'text':_0x7cecab(0xce),'icon':_0x7cecab(0xba)}];}function getMotionChildren(_0xf08fc4){var _0x251759=a1037_0x5d05;return _0xf08fc4+='_',[{'id':_0xf08fc4+_0x251759(0xb3),'text':_0x251759(0xb4),'icon':_0x251759(0xcc),'children':getVoiceChildren(_0xf08fc4+_0x251759(0xb3))},{'id':_0xf08fc4+_0x251759(0xbf),'text':_0x251759(0xca),'icon':_0x251759(0xd3),'children':getBullChildren(_0xf08fc4+'bull')},{'id':_0xf08fc4+'chat','text':_0x251759(0xc4),'icon':'icon\x20s20\x20icon-hangouts'},{'id':_0xf08fc4+_0x251759(0xab),'text':_0x251759(0xb7),'icon':_0x251759(0xac)},{'id':_0xf08fc4+'openchannel','text':'Openchannel','icon':_0x251759(0xb8)},{'id':_0xf08fc4+'sms','text':_0x251759(0xbc),'icon':_0x251759(0xb9)},{'id':_0xf08fc4+'fax','text':_0x251759(0xcd),'icon':_0x251759(0xc9)},{'id':_0xf08fc4+_0x251759(0xc8),'text':_0x251759(0xc3),'icon':_0x251759(0xad)},{'id':_0xf08fc4+_0x251759(0xcf),'text':_0x251759(0xbb),'icon':_0x251759(0xb5)}];}function getTree(_0x2a163a){var _0x2b75a9=a1037_0x5d05;return[{'id':_0x2a163a?'custom':'motion','text':(_0x2a163a?_0x2b75a9(0xb2):'Motion')+_0x2b75a9(0xaf),'icon':_0x2b75a9(0xcb)+(_0x2a163a?'icon-laptop-chromebook':_0x2b75a9(0xd2)),'state':{'opened':!![],'selected':!![]},'children':getMotionChildren(_0x2a163a?_0x2b75a9(0xc0):'motion')}];}exports['motion']=getTree(![]),exports[a1037_0x25c8b3(0xc0)]=getTree(!![]); \ No newline at end of file diff --git a/server/config/seedDB/trunks.js b/server/config/seedDB/trunks.js index ffab5ad..2d22369 100644 --- a/server/config/seedDB/trunks.js +++ b/server/config/seedDB/trunks.js @@ -1 +1 @@ -const a876_0x63e8=['Can\x27t\x20create\x20Trunks','demo','error','Trunks\x20have\x20been\x20created','info','trunk\x20demo\x20auto\x20generated','create','then','app','bulkCreate'];(function(_0x324d9b,_0x63e8e6){const _0x4eb52c=function(_0x4c0f21){while(--_0x4c0f21){_0x324d9b['push'](_0x324d9b['shift']());}};_0x4eb52c(++_0x63e8e6);}(a876_0x63e8,0x181));const a876_0x4eb5=function(_0x324d9b,_0x63e8e6){_0x324d9b=_0x324d9b-0x0;let _0x4eb52c=a876_0x63e8[_0x324d9b];return _0x4eb52c;};const _0x502684=a876_0x4eb5;'use strict';const db=require('../../mysqldb')['db'],logger=require('../logger')(_0x502684('0x3')),trunks=[{'id':0x1,'name':_0x502684('0x6'),'secret':'55xcally55','defaultuser':'demo','description':_0x502684('0x0')}];exports[_0x502684('0x1')]=function(){const _0x3ccb3c=_0x502684;return db['Trunk'][_0x3ccb3c('0x4')](trunks,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x3ccb3c('0x2')](function(){const _0x3178cc=_0x3ccb3c;logger[_0x3178cc('0x9')](_0x3178cc('0x8'));})['catch'](function(){const _0x2180a7=_0x3ccb3c;logger[_0x2180a7('0x7')](_0x2180a7('0x5'));});}; \ No newline at end of file +const a1038_0x1eb5=['trunk\x20demo\x20auto\x20generated','error','55xcally55','then','demo','bulkCreate','../../mysqldb','Trunks\x20have\x20been\x20created','app','../logger','info','catch'];(function(_0x52b0c2,_0x2fbfd9){const _0x1eb5fb=function(_0x2ebc91){while(--_0x2ebc91){_0x52b0c2['push'](_0x52b0c2['shift']());}};_0x1eb5fb(++_0x2fbfd9);}(a1038_0x1eb5,0x11c));const a1038_0x2ebc=function(_0x52b0c2,_0x2fbfd9){_0x52b0c2=_0x52b0c2-0x149;let _0x1eb5fb=a1038_0x1eb5[_0x52b0c2];return _0x1eb5fb;};const a1038_0x10c49d=a1038_0x2ebc;'use strict';const {db}=require(a1038_0x10c49d(0x153)),logger=require(a1038_0x10c49d(0x14a))(a1038_0x10c49d(0x149)),trunks=[{'id':0x1,'name':'demo','secret':a1038_0x10c49d(0x14f),'defaultuser':a1038_0x10c49d(0x151),'description':a1038_0x10c49d(0x14d)}];exports['create']=function(){const _0x1eaac0=a1038_0x10c49d;return db['Trunk'][_0x1eaac0(0x152)](trunks,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x1eaac0(0x150)](function(){const _0x532d41=_0x1eaac0;logger[_0x532d41(0x14b)](_0x532d41(0x154));})[_0x1eaac0(0x14c)](function(){const _0x4324ff=_0x1eaac0;logger[_0x4324ff(0x14e)]('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 dbcb920..6635e15 100644 --- a/server/config/seedDB/userProfiles.js +++ b/server/config/seedDB/userProfiles.js @@ -1 +1 @@ -const a877_0x190d=['catch','Auto\x20generated\x20User\x20Profile','error','create','then','bulkCreate','UserProfile','Default','info'];(function(_0x3ae6c9,_0x190d98){const _0x2a0091=function(_0x516246){while(--_0x516246){_0x3ae6c9['push'](_0x3ae6c9['shift']());}};_0x2a0091(++_0x190d98);}(a877_0x190d,0x139));const a877_0x2a00=function(_0x3ae6c9,_0x190d98){_0x3ae6c9=_0x3ae6c9-0x0;let _0x2a0091=a877_0x190d[_0x3ae6c9];return _0x2a0091;};const _0x4667f0=a877_0x2a00;'use strict';const db=require('../../mysqldb')['db'],logger=require('../logger')('app'),userProfiles=[{'id':0x1,'name':_0x4667f0('0x0'),'crudPermissions':['r','e','d'],'description':_0x4667f0('0x3')}];exports[_0x4667f0('0x5')]=function(){const _0x84f253=_0x4667f0;return db[_0x84f253('0x8')][_0x84f253('0x7')](userProfiles,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x84f253('0x6')](function(){const _0x39b09c=_0x84f253;logger[_0x39b09c('0x1')]('User\x20Profiles\x20have\x20been\x20created');})[_0x84f253('0x2')](function(){const _0x2de4ee=_0x84f253;logger[_0x2de4ee('0x4')]('Can\x27t\x20create\x20User\x20Profiles');});}; \ No newline at end of file +const a1039_0x6968=['../../mysqldb','Default','Auto\x20generated\x20User\x20Profile','bulkCreate','catch','Can\x27t\x20create\x20User\x20Profiles','error','User\x20Profiles\x20have\x20been\x20created','info','then','UserProfile','create','../logger'];(function(_0x9b475b,_0x153dfe){const _0x69684f=function(_0x15dee6){while(--_0x15dee6){_0x9b475b['push'](_0x9b475b['shift']());}};_0x69684f(++_0x153dfe);}(a1039_0x6968,0x1a3));const a1039_0x15de=function(_0x9b475b,_0x153dfe){_0x9b475b=_0x9b475b-0xcc;let _0x69684f=a1039_0x6968[_0x9b475b];return _0x69684f;};const a1039_0x3c0cb2=a1039_0x15de;'use strict';const {db}=require(a1039_0x3c0cb2(0xd6)),logger=require(a1039_0x3c0cb2(0xd5))('app'),userProfiles=[{'id':0x1,'name':a1039_0x3c0cb2(0xd7),'crudPermissions':['r','e','d'],'description':a1039_0x3c0cb2(0xd8)}];exports[a1039_0x3c0cb2(0xd4)]=function(){const _0x1f6ad0=a1039_0x3c0cb2;return db[_0x1f6ad0(0xd3)][_0x1f6ad0(0xcc)](userProfiles,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x1f6ad0(0xd2)](function(){const _0x288733=_0x1f6ad0;logger[_0x288733(0xd1)](_0x288733(0xd0));})[_0x1f6ad0(0xcd)](function(){const _0x5a6122=_0x1f6ad0;logger[_0x5a6122(0xcf)](_0x5a6122(0xce));});}; \ No newline at end of file diff --git a/server/config/seedDB/users.js b/server/config/seedDB/users.js index daebee7..58d4bde 100644 --- a/server/config/seedDB/users.js +++ b/server/config/seedDB/users.js @@ -1 +1 @@ -const a878_0x4532=['error','agent','create','info','admin@xcally.com','Jane\x20Miller','then','User','Administrator','Users\x20have\x20been\x20created','../../mysqldb','john.doe@xcally.com','password','jane.miller@xcally.com','bulkCreate','Can\x27t\x20create\x20Users','shuttle55','John\x20Doe','agent\x20auto\x20generated','split','app','admin','john.doe'];(function(_0x25ead4,_0x453272){const _0x5354d4=function(_0x2c9b8f){while(--_0x2c9b8f){_0x25ead4['push'](_0x25ead4['shift']());}};_0x5354d4(++_0x453272);}(a878_0x4532,0x1b7));const a878_0x5354=function(_0x25ead4,_0x453272){_0x25ead4=_0x25ead4-0x0;let _0x5354d4=a878_0x4532[_0x25ead4];return _0x5354d4;};const _0x406998=a878_0x5354;'use strict';const db=require(_0x406998('0x8'))['db'],logger=require('../logger')(_0x406998('0x12')),users=[{'id':0x1,'role':_0x406998('0x13'),'name':_0x406998('0x13'),'password':_0x406998('0xa'),'fullname':_0x406998('0x6'),'email':_0x406998('0x2'),'internal':0x3e8,'description':'user\x20auto\x20generated'},{'id':0x2,'role':_0x406998('0x16'),'name':_0x406998('0x14'),'email':_0x406998('0x9'),'password':_0x406998('0xe'),'fullname':_0x406998('0xf'),'internal':0x3e9,'permissions':'101,102,103,113,110,104,105,106,107,108,109,100,111,114'[_0x406998('0x11')](','),'description':_0x406998('0x10')},{'id':0x3,'role':_0x406998('0x16'),'name':'jane.miller','email':_0x406998('0xb'),'password':_0x406998('0xe'),'fullname':_0x406998('0x3'),'internal':0x3ea,'permissions':'101,102,103,113,110,104,105,106,107,108,109,100,111,114'[_0x406998('0x11')](','),'description':_0x406998('0x10')}];exports[_0x406998('0x0')]=function(){const _0x1b61b5=_0x406998;return db[_0x1b61b5('0x5')][_0x1b61b5('0xc')](users,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x1b61b5('0x4')](function(){const _0xf76b1f=_0x1b61b5;logger[_0xf76b1f('0x1')](_0xf76b1f('0x7'));})['catch'](function(_0x2c9b8f){const _0x25d7f3=_0x1b61b5;logger[_0x25d7f3('0x15')](_0x25d7f3('0xd'),_0x2c9b8f);});}; \ No newline at end of file +const a1040_0x2168=['agent\x20auto\x20generated','../../mysqldb','admin','Jane\x20Miller','John\x20Doe','shuttle55','jane.miller@xcally.com','101,102,103,113,110,104,105,106,107,108,109,100,111,114','password','bulkCreate','catch','User','admin@xcally.com','split','jane.miller','info','user\x20auto\x20generated','john.doe','then','john.doe@xcally.com','Can\x27t\x20create\x20Users','error'];(function(_0x3e7974,_0x402bfb){const _0x216838=function(_0x2bbccc){while(--_0x2bbccc){_0x3e7974['push'](_0x3e7974['shift']());}};_0x216838(++_0x402bfb);}(a1040_0x2168,0xe6));const a1040_0x2bbc=function(_0x3e7974,_0x402bfb){_0x3e7974=_0x3e7974-0xbd;let _0x216838=a1040_0x2168[_0x3e7974];return _0x216838;};const a1040_0x5b31ac=a1040_0x2bbc;'use strict';const {db}=require(a1040_0x5b31ac(0xca)),logger=require('../logger')('app'),users=[{'id':0x1,'role':'admin','name':a1040_0x5b31ac(0xcb),'password':a1040_0x5b31ac(0xd1),'fullname':'Administrator','email':a1040_0x5b31ac(0xbf),'internal':0x3e8,'description':a1040_0x5b31ac(0xc3)},{'id':0x2,'role':'agent','name':a1040_0x5b31ac(0xc4),'email':a1040_0x5b31ac(0xc6),'password':a1040_0x5b31ac(0xce),'fullname':a1040_0x5b31ac(0xcd),'internal':0x3e9,'permissions':a1040_0x5b31ac(0xd0)[a1040_0x5b31ac(0xc0)](','),'description':a1040_0x5b31ac(0xc9)},{'id':0x3,'role':'agent','name':a1040_0x5b31ac(0xc1),'email':a1040_0x5b31ac(0xcf),'password':'shuttle55','fullname':a1040_0x5b31ac(0xcc),'internal':0x3ea,'permissions':a1040_0x5b31ac(0xd0)['split'](','),'description':a1040_0x5b31ac(0xc9)}];exports['create']=function(){const _0x533514=a1040_0x5b31ac;return db[_0x533514(0xbe)][_0x533514(0xd2)](users,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x533514(0xc5)](function(){const _0xc627b8=_0x533514;logger[_0xc627b8(0xc2)]('Users\x20have\x20been\x20created');})[_0x533514(0xbd)](function(_0x3861e3){const _0x3bb8c4=_0x533514;logger[_0x3bb8c4(0xc8)](_0x3bb8c4(0xc7),_0x3861e3);});}; \ No newline at end of file diff --git a/server/config/seedDB/variables.js b/server/config/seedDB/variables.js index 03721dc..6d600a8 100644 --- a/server/config/seedDB/variables.js +++ b/server/config/seedDB/variables.js @@ -1 +1 @@ -const a879_0x49a1=['then','VAR1','variable\x20dialed\x20number\x20identifier\x20auto\x20generated','Variables\x20have\x20been\x20created','error','ORDER','variable\x20useful\x20for\x20agent\x20popup\x20auto\x20generated','ORDERNUM','generic\x20variable\x20auto\x20generated','OPTION','../logger','variable\x20auto\x20generated','info','RATE','RESULT','PHONE','LASTNAME','UNIQUEID','CALLERID(dnid)','DBRESULT','variable\x20for\x20db\x20query\x20result\x20auto\x20generated','../../mysqldb','CALLERID(name)','catch','CHOICE','Variable','variable\x20select\x20a\x20natural\x20language\x20file\x20when\x20available\x20auto\x20generated','Can\x27t\x20create\x20Variables','VAR2','CHANNEL(language)','variable\x20number\x20of\x20the\x20caller\x20auto\x20generated','FIRSTNAME','variable\x20current\x20call\x20unique\x20identifier\x20auto\x20generated','app','CALLERID(num)'];(function(_0x1e4d79,_0x49a1b8){const _0x57e244=function(_0xdcdb40){while(--_0xdcdb40){_0x1e4d79['push'](_0x1e4d79['shift']());}};_0x57e244(++_0x49a1b8);}(a879_0x49a1,0x7c));const a879_0x57e2=function(_0x1e4d79,_0x49a1b8){_0x1e4d79=_0x1e4d79-0x0;let _0x57e244=a879_0x49a1[_0x1e4d79];return _0x57e244;};const _0x228514=a879_0x57e2;'use strict';const db=require(_0x228514('0x2'))['db'],logger=require(_0x228514('0x1a'))(_0x228514('0xe')),variables=[{'id':0x1,'name':_0x228514('0x5'),'description':'variable\x20for\x20menu\x20auto\x20generated'},{'id':0x2,'name':_0x228514('0x17'),'description':'variable\x20for\x20order\x20auto\x20generated'},{'id':0x3,'name':_0x228514('0x0'),'description':_0x228514('0x1')},{'id':0x4,'name':_0x228514('0x1d'),'description':'variable\x20for\x20rate\x20call\x20auto\x20generated'},{'id':0x5,'name':_0x228514('0x22'),'description':_0x228514('0x12')},{'id':0x6,'name':_0x228514('0x3'),'description':'variable\x20name\x20of\x20the\x20caller\x20auto\x20generated'},{'id':0x7,'name':_0x228514('0xf'),'description':_0x228514('0xb')},{'id':0x8,'name':_0x228514('0xa'),'description':_0x228514('0x7')},{'id':0x9,'name':'COUNTER','description':_0x228514('0x1b')},{'id':0xa,'name':'EMAIL','description':'variable\x20auto\x20generated'},{'id':0xb,'name':'EXTRAVAR','description':_0x228514('0x16')},{'id':0xc,'name':_0x228514('0xc'),'description':_0x228514('0x1b')},{'id':0xd,'name':_0x228514('0x20'),'description':'variable\x20auto\x20generated'},{'id':0xe,'name':'INPUT','description':_0x228514('0x1b')},{'id':0xf,'name':_0x228514('0x19'),'description':_0x228514('0x1b')},{'id':0x10,'name':_0x228514('0x15'),'description':_0x228514('0x1b')},{'id':0x11,'name':_0x228514('0x1f'),'description':'variable\x20auto\x20generated'},{'id':0x12,'name':_0x228514('0x1e'),'description':_0x228514('0x1b')},{'id':0x13,'name':_0x228514('0x21'),'description':_0x228514('0xd')},{'id':0x14,'name':_0x228514('0x11'),'description':'generic\x20variable\x20auto\x20generated'},{'id':0x15,'name':_0x228514('0x9'),'description':'generic\x20variable\x20auto\x20generated'},{'id':0x16,'name':'VAR3','description':_0x228514('0x18')}];exports['create']=function(){const _0x57b247=_0x228514;return db[_0x57b247('0x6')]['bulkCreate'](variables,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x57b247('0x10')](function(){const _0x33e8c3=_0x57b247;logger[_0x33e8c3('0x1c')](_0x33e8c3('0x13'));})[_0x57b247('0x4')](function(){const _0x10a99f=_0x57b247;logger[_0x10a99f('0x14')](_0x10a99f('0x8'));});}; \ No newline at end of file +const a1041_0xde06=['LASTNAME','app','variable\x20for\x20order\x20auto\x20generated','COUNTER','variable\x20name\x20of\x20the\x20caller\x20auto\x20generated','DBRESULT','../../mysqldb','generic\x20variable\x20auto\x20generated','create','../logger','EXTRAVAR','Can\x27t\x20create\x20Variables','Variable','VAR3','UNIQUEID','VAR1','INPUT','OPTION','info','PHONE','CALLERID(name)','variable\x20auto\x20generated','variable\x20useful\x20for\x20agent\x20popup\x20auto\x20generated','ORDERNUM','bulkCreate','variable\x20dialed\x20number\x20identifier\x20auto\x20generated','CALLERID(dnid)','error','Variables\x20have\x20been\x20created','EMAIL','RATE','catch','CHOICE','variable\x20current\x20call\x20unique\x20identifier\x20auto\x20generated','variable\x20for\x20rate\x20call\x20auto\x20generated'];(function(_0xedfcac,_0x26b1b6){const _0xde0649=function(_0x50b525){while(--_0x50b525){_0xedfcac['push'](_0xedfcac['shift']());}};_0xde0649(++_0x26b1b6);}(a1041_0xde06,0xcc));const a1041_0x50b5=function(_0xedfcac,_0x26b1b6){_0xedfcac=_0xedfcac-0x76;let _0xde0649=a1041_0xde06[_0xedfcac];return _0xde0649;};const a1041_0x2a336c=a1041_0x50b5;'use strict';const {db}=require(a1041_0x2a336c(0x82)),logger=require(a1041_0x2a336c(0x85))(a1041_0x2a336c(0x7d)),variables=[{'id':0x1,'name':a1041_0x2a336c(0x79),'description':'variable\x20for\x20menu\x20auto\x20generated'},{'id':0x2,'name':a1041_0x2a336c(0x93),'description':a1041_0x2a336c(0x7e)},{'id':0x3,'name':a1041_0x2a336c(0x81),'description':'variable\x20for\x20db\x20query\x20result\x20auto\x20generated'},{'id':0x4,'name':a1041_0x2a336c(0x77),'description':a1041_0x2a336c(0x7b)},{'id':0x5,'name':a1041_0x2a336c(0x96),'description':a1041_0x2a336c(0x95)},{'id':0x6,'name':a1041_0x2a336c(0x90),'description':a1041_0x2a336c(0x80)},{'id':0x7,'name':'CALLERID(num)','description':'variable\x20number\x20of\x20the\x20caller\x20auto\x20generated'},{'id':0x8,'name':'CHANNEL(language)','description':'variable\x20select\x20a\x20natural\x20language\x20file\x20when\x20available\x20auto\x20generated'},{'id':0x9,'name':a1041_0x2a336c(0x7f),'description':a1041_0x2a336c(0x91)},{'id':0xa,'name':a1041_0x2a336c(0x76),'description':a1041_0x2a336c(0x91)},{'id':0xb,'name':a1041_0x2a336c(0x86),'description':a1041_0x2a336c(0x92)},{'id':0xc,'name':'FIRSTNAME','description':a1041_0x2a336c(0x91)},{'id':0xd,'name':a1041_0x2a336c(0x7c),'description':'variable\x20auto\x20generated'},{'id':0xe,'name':a1041_0x2a336c(0x8c),'description':a1041_0x2a336c(0x91)},{'id':0xf,'name':a1041_0x2a336c(0x8d),'description':a1041_0x2a336c(0x91)},{'id':0x10,'name':'ORDER','description':a1041_0x2a336c(0x91)},{'id':0x11,'name':a1041_0x2a336c(0x8f),'description':a1041_0x2a336c(0x91)},{'id':0x12,'name':'RESULT','description':a1041_0x2a336c(0x91)},{'id':0x13,'name':a1041_0x2a336c(0x8a),'description':a1041_0x2a336c(0x7a)},{'id':0x14,'name':a1041_0x2a336c(0x8b),'description':a1041_0x2a336c(0x83)},{'id':0x15,'name':'VAR2','description':a1041_0x2a336c(0x83)},{'id':0x16,'name':a1041_0x2a336c(0x89),'description':'generic\x20variable\x20auto\x20generated'}];exports[a1041_0x2a336c(0x84)]=function(){const _0x3bf618=a1041_0x2a336c;return db[_0x3bf618(0x88)][_0x3bf618(0x94)](variables,{'ignoreDuplicates':!![],'individualHooks':!![]})['then'](function(){const _0x35b8f0=_0x3bf618;logger[_0x35b8f0(0x8e)](_0x35b8f0(0x98));})[_0x3bf618(0x78)](function(){const _0x2f3e85=_0x3bf618;logger[_0x2f3e85(0x97)](_0x2f3e85(0x87));});}; \ No newline at end of file diff --git a/server/config/seedDB/voiceContexts.js b/server/config/seedDB/voiceContexts.js index c3ed415..92bea93 100644 --- a/server/config/seedDB/voiceContexts.js +++ b/server/config/seedDB/voiceContexts.js @@ -1 +1 @@ -const a880_0x5c47=['from-sip','outbound-fax','inbound-fax','error','Context\x20','from-voicemail','exports','../../mysqldb','default\x20entry\x20context\x20(DO\x20NOT\x20DELETE)','from-voip-provider','name','findOrCreate','app','../logger','VoiceContext','info'];(function(_0x2795c4,_0x5c4797){const _0x581e41=function(_0x19ba97){while(--_0x19ba97){_0x2795c4['push'](_0x2795c4['shift']());}};_0x581e41(++_0x5c4797);}(a880_0x5c47,0x80));const a880_0x581e=function(_0x2795c4,_0x5c4797){_0x2795c4=_0x2795c4-0x0;let _0x581e41=a880_0x5c47[_0x2795c4];return _0x581e41;};const _0x50ae8a=a880_0x581e;'use strict';const db=require(_0x50ae8a('0x7'))['db'],logger=require(_0x50ae8a('0xd'))(_0x50ae8a('0xc')),voiceContexts=[{'name':_0x50ae8a('0x0'),'description':_0x50ae8a('0x8'),'defaultEntry':!![]},{'name':_0x50ae8a('0x9'),'description':_0x50ae8a('0x8'),'defaultEntry':!![]},{'name':_0x50ae8a('0x2'),'description':_0x50ae8a('0x8'),'defaultEntry':!![]},{'name':_0x50ae8a('0x1'),'description':_0x50ae8a('0x8'),'defaultEntry':!![]},{'name':_0x50ae8a('0x5'),'description':_0x50ae8a('0x8'),'defaultEntry':!![]},{'name':'xcally-mixmonitor-context','description':_0x50ae8a('0x8'),'defaultEntry':!![]}];async function create(){const _0x3a2a08=_0x50ae8a;for(const _0x19ba97 of voiceContexts){try{const [,_0x234718]=await db[_0x3a2a08('0xe')][_0x3a2a08('0xb')]({'where':{'name':_0x19ba97[_0x3a2a08('0xa')]},'defaults':_0x19ba97});_0x234718&&logger[_0x3a2a08('0xf')](_0x3a2a08('0x4')+_0x19ba97[_0x3a2a08('0xa')]+'\x20have\x20been\x20created');}catch(_0x1ffb1e){logger[_0x3a2a08('0x3')]('Can\x27t\x20create\x20'+_0x19ba97[_0x3a2a08('0xa')]+'\x20context',_0x1ffb1e);}}}module[_0x50ae8a('0x6')]={'create':create}; \ No newline at end of file +const a1042_0x328b=['Can\x27t\x20create\x20','name','outbound-fax','from-sip','default\x20entry\x20context\x20(DO\x20NOT\x20DELETE)','\x20context','Context\x20','../logger','\x20have\x20been\x20created','app','from-voicemail','create','exports','error','../../mysqldb','inbound-fax','xcally-mixmonitor-context','info'];(function(_0x40ac50,_0xccba29){const _0x328b17=function(_0x216dea){while(--_0x216dea){_0x40ac50['push'](_0x40ac50['shift']());}};_0x328b17(++_0xccba29);}(a1042_0x328b,0x1ba));const a1042_0x216d=function(_0x40ac50,_0xccba29){_0x40ac50=_0x40ac50-0x12f;let _0x328b17=a1042_0x328b[_0x40ac50];return _0x328b17;};const a1042_0x3cab52=a1042_0x216d;'use strict';const {db}=require(a1042_0x3cab52(0x133)),logger=require(a1042_0x3cab52(0x13e))(a1042_0x3cab52(0x140)),voiceContexts=[{'name':a1042_0x3cab52(0x13a),'description':'default\x20entry\x20context\x20(DO\x20NOT\x20DELETE)','defaultEntry':!![]},{'name':'from-voip-provider','description':'default\x20entry\x20context\x20(DO\x20NOT\x20DELETE)','defaultEntry':!![]},{'name':a1042_0x3cab52(0x134),'description':'default\x20entry\x20context\x20(DO\x20NOT\x20DELETE)','defaultEntry':!![]},{'name':a1042_0x3cab52(0x139),'description':a1042_0x3cab52(0x13b),'defaultEntry':!![]},{'name':a1042_0x3cab52(0x12f),'description':a1042_0x3cab52(0x13b),'defaultEntry':!![]},{'name':a1042_0x3cab52(0x135),'description':a1042_0x3cab52(0x13b),'defaultEntry':!![]}];async function create(){const _0x1ed811=a1042_0x3cab52;for(const _0x3cec7c of voiceContexts){try{const [,_0x35cc86]=await db['VoiceContext']['findOrCreate']({'where':{'name':_0x3cec7c[_0x1ed811(0x138)]},'defaults':_0x3cec7c});_0x35cc86&&logger[_0x1ed811(0x136)](_0x1ed811(0x13d)+_0x3cec7c[_0x1ed811(0x138)]+_0x1ed811(0x13f));}catch(_0x49e57e){logger[_0x1ed811(0x132)](_0x1ed811(0x137)+_0x3cec7c[_0x1ed811(0x138)]+_0x1ed811(0x13c),_0x49e57e);}}}module[a1042_0x3cab52(0x131)][a1042_0x3cab52(0x130)]=create; \ No newline at end of file diff --git a/server/config/seedDB/voiceExtensions.js b/server/config/seedDB/voiceExtensions.js index fef845c..a3e1df0 100644 --- a/server/config/seedDB/voiceExtensions.js +++ b/server/config/seedDB/voiceExtensions.js @@ -1 +1 @@ -const a881_0x3949=['${XMF-PATH},d','forward\x20to\x20Survey\x20IVR\x20auto\x20generated','context','appdata','from-sip','info','lodash','Answer','FAXOPT(ecm)=${XMF-ECM}','Hangup','bulkCreate','Set','queue','outboundrouteid','_X.','description','forward\x20to\x20Agent\x20Management\x20IVR\x20auto\x20generated','Sales,xX,,,300,,,,,','demo-congrats','agi://127.0.0.1/square,AgentManagement','FAXOPT(modem)=${XMF-MODEM}','$[\x22${XMD-AMD}\x22\x20!=\x20\x22NONE\x22\x20]?5:11','Can\x27t\x20create\x20Voice\x20Extensions','Wait','$[\x22${XMD-AGIAFTER}\x22\x20!=\x20\x22NONE\x22\x20]?AGI(${XMD-AGIAFTER})','MixMonitor','_XCALLY_MIXMONITOR_FORMAT=wav','XCALLY-MOTION-ANSWER=0','outboundrouteid=','catch\x20hangup\x20event\x20auto\x20generated','defaults','Queue','FAXOPT(minrate)=${XMF-MINRATE}','length','type','Return','dialer\x20extensions\x20auto\x20generated','XCALLY-MOTION-PROGRESS=0','CDR(type)=dialer','$[\x22${XMD-AGI}\x22\x20!=\x20\x22NONE\x22\x20]?AGI(${XMD-AGI})','from-voip-provider','$[\x22${AMDSTATUS}\x22\x20==\x20\x22MACHINE\x22\x20]?14:11','xcally-motion-dialer','Dial','600','forward\x20to\x20Orders\x20IVR\x20auto\x20generated','echo\x20test\x20demo\x20auto\x20generated','Support,xX,,,300,,,,,','demo-echotest','FAXOPT(maxrate)=${XMF-MAXRATE}','agi://127.0.0.1/square,Orders','CDR(type)=outbound-fax','6000','internal','agi://127.0.0.1/square,Survey','_[x][c][a][l][l][y][Q][u][e][u][e][E][x][t][e][n][s][i][o][n].','forward\x20to\x20Auto\x20Attendant\x20IVR\x20auto\x20generated','GotoIf','forward\x20to\x20CSI\x20IVR\x20auto\x20generated','fax\x20extensions\x20auto\x20generated','Echo','${XCALLY_MIXMONITOR_UNIQUEID}.${XCALLY_MIXMONITOR_FORMAT},ab','VoiceExtension','CDR(type)=inbound','createAlways','6666','${XMD-AMDINITIALSILENCE},${XMD-AMDGREETING},${XMD-AMDAFTERGREETINGSILENCE},${XMD-AMDTOTALANALYSISTIME},${XMD-AMDMINWORDLENGTH},${XMD-AMDBETWEENWORDSSILENCE},${XMD-AMDMAXIMUMNUMBEROFWORDS},${XMD-AMDSILENCETHRESHOLD},${XMD-AMDMAXIMUMWORDLENGTH}','exten','catch','failed','SendFax','FAXOPT(localstationid)=${XMF-LOCALSTATIONID}','priority','CDR(type)=internal','$[\x22${XMD-QUEUE}\x22\x20!=\x20\x22NONE\x22\x20]?QUEUE(${XMD-QUEUE})','agi','demo-echodone','agi://127.0.0.1/square,CSI','CALLERID(all)=${XMD-CALLERID}','$[\x22${AMDSTATUS}\x22\x20==\x20\x22HUMAN\x22\x20]?11:9','Execif','sequelize','6668','xcally-mixmonitor-context','xcally-motion-preview','system','then','create','6667','6670','../logger','6669','Background','FAXOPT(headerinfo)=${XMF-HEADERINFO}','outbound','app','../../mysqldb','Progress','AGI','_XCALLY_MIXMONITOR_UNIQUEID=${UNIQUEID}','destroy','Voice\x20Extensions\x20have\x20been\x20created','custom','catch\x20failed\x20event\x20auto\x20generated','Playback','agi://127.0.0.1/square,AutoAttendant'];(function(_0x5f07e9,_0x394945){const _0xcb179d=function(_0x363418){while(--_0x363418){_0x5f07e9['push'](_0x5f07e9['shift']());}};_0xcb179d(++_0x394945);}(a881_0x3949,0x1b9));const a881_0xcb17=function(_0x5f07e9,_0x394945){_0x5f07e9=_0x5f07e9-0x0;let _0xcb179d=a881_0x3949[_0x5f07e9];return _0xcb179d;};const _0xee0245=a881_0xcb17;'use strict';const _=require(_0xee0245('0x5f')),db=require(_0xee0245('0x4f'))['db'],{Op}=require(_0xee0245('0x40')),logger=require(_0xee0245('0x49'))(_0xee0245('0x4e')),applications={0x258:[{'app':_0xee0245('0x64'),'appdata':'CDR(type)=internal'},{'app':_0xee0245('0x60')},{'app':_0xee0245('0x57'),'appdata':_0xee0245('0x1f'),'isApp':!![]},{'app':_0xee0245('0x2b'),'isApp':!![]},{'app':'Playback','appdata':_0xee0245('0x3b'),'isApp':!![]},{'app':_0xee0245('0x62')}],0x1770:[{'app':_0xee0245('0x64'),'appdata':_0xee0245('0x38')},{'app':'Answer'},{'app':_0xee0245('0xe'),'appdata':_0xee0245('0x1e'),'appType':'queue','isApp':!![]},{'app':_0xee0245('0x62')}],0x1771:[{'app':_0xee0245('0x64'),'appdata':_0xee0245('0x38')},{'app':_0xee0245('0x60')},{'app':_0xee0245('0xe'),'appdata':_0xee0245('0x0'),'appType':_0xee0245('0x65'),'isApp':!![]},{'app':_0xee0245('0x62')}],0x1a0a:[{'app':'Set','appdata':_0xee0245('0x38')},{'app':_0xee0245('0x51'),'appdata':_0xee0245('0x58'),'appType':_0xee0245('0x3a'),'isApp':!![]},{'app':_0xee0245('0x62')}],0x1a0b:[{'app':_0xee0245('0x64'),'appdata':_0xee0245('0x38')},{'app':_0xee0245('0x51'),'appdata':_0xee0245('0x21'),'appType':_0xee0245('0x3a'),'isApp':!![]},{'app':_0xee0245('0x62')}],0x1a0c:[{'app':'Set','appdata':'CDR(type)=internal'},{'app':'AGI','appdata':_0xee0245('0x3c'),'appType':_0xee0245('0x3a'),'isApp':!![]},{'app':_0xee0245('0x62')}],0x1a0d:[{'app':_0xee0245('0x64'),'appdata':'CDR(type)=internal'},{'app':_0xee0245('0x51'),'appdata':_0xee0245('0x25'),'appType':_0xee0245('0x3a'),'isApp':!![]},{'app':_0xee0245('0x62')}],0x1a0e:[{'app':'Set','appdata':_0xee0245('0x38')},{'app':'AGI','appdata':_0xee0245('0x2'),'appType':_0xee0245('0x3a'),'isApp':!![]},{'app':_0xee0245('0x62')}],'xcally-motion-dialer':[{'app':_0xee0245('0x64'),'appdata':_0xee0245('0x15')},{'app':_0xee0245('0x64'),'appdata':_0xee0245('0x3d')},{'app':_0xee0245('0x28'),'appdata':_0xee0245('0x4')},{'app':_0xee0245('0x60'),'appdata':''},{'app':_0xee0245('0x4b'),'appdata':'silence/1'},{'app':'AMD','appdata':_0xee0245('0x31')},{'app':_0xee0245('0x28'),'appdata':_0xee0245('0x3e')},{'app':_0xee0245('0x28'),'appdata':'$[\x22${AMDSTATUS}\x22\x20==\x20\x22NOTSURE\x22\x20]?11:10'},{'app':'GotoIf','appdata':_0xee0245('0x18')},{'app':_0xee0245('0x3f'),'appdata':_0xee0245('0x16')},{'app':'Execif','appdata':_0xee0245('0x39')},{'app':_0xee0245('0x3f'),'appdata':_0xee0245('0x7')},{'app':'Hangup'}],'xcally-motion-fax':[{'app':_0xee0245('0x64'),'appdata':_0xee0245('0x22')},{'app':_0xee0245('0x6'),'appdata':'6'},{'app':_0xee0245('0x64'),'appdata':_0xee0245('0x61')},{'app':_0xee0245('0x64'),'appdata':_0xee0245('0x4c')},{'app':_0xee0245('0x64'),'appdata':_0xee0245('0x36')},{'app':_0xee0245('0x64'),'appdata':_0xee0245('0x20')},{'app':'Set','appdata':_0xee0245('0xf')},{'app':_0xee0245('0x64'),'appdata':_0xee0245('0x3')},{'app':'Set','appdata':'FAXOPT(t38timeout)=${XMF-T38TIMEOUT}'},{'app':_0xee0245('0x35'),'appdata':_0xee0245('0x59')}],'xcally-motion-preview':[{'app':_0xee0245('0x64'),'appdata':'CDR(type)=dialer'},{'app':_0xee0245('0x64'),'appdata':_0xee0245('0x3d')},{'app':_0xee0245('0x3f'),'appdata':_0xee0245('0x16')},{'app':_0xee0245('0x1a'),'appdata':'${XMD-DIALCHANNEL},${XMD-DIALTIMEOUT},${XMD-DIALOPTIONS},${XMD-DIALURL}'},{'app':'Execif','appdata':_0xee0245('0x7')},{'app':_0xee0245('0x62')}],'_.':[{'app':'Set','appdata':'CDR(type)=outbound'},{'app':_0xee0245('0x64'),'appdata':_0xee0245('0xa')},{'app':'Set','appdata':_0xee0245('0x14')},{'app':'Set','appdata':'MONITOR_OPTIONS=ab'},{'app':_0xee0245('0x64'),'outboundrouteid':!![]},{'app':'Set','appdata':_0xee0245('0x52')},{'app':'Set','appdata':_0xee0245('0x9')},{'app':_0xee0245('0x57'),'appdata':_0xee0245('0x1'),'appType':_0xee0245('0x55'),'isApp':!![]},{'app':_0xee0245('0x62')}],'_X.':[{'app':_0xee0245('0x64'),'appdata':_0xee0245('0x2e')},{'app':_0xee0245('0x60')},{'app':_0xee0245('0x57'),'appdata':_0xee0245('0x1'),'isApp':!![]},{'app':_0xee0245('0x62')}],'h':[{'app':'Hangup'}],'failed':[{'app':_0xee0245('0x62')}]},voiceExtensions=[{'type':'internal','context':_0xee0245('0x5d'),'exten':_0xee0245('0x1b'),'description':_0xee0245('0x1d')},{'type':_0xee0245('0x24'),'context':'from-sip','exten':_0xee0245('0x23'),'description':'forward\x20to\x20Support\x20queue\x20auto\x20generated'},{'type':_0xee0245('0x24'),'context':_0xee0245('0x5d'),'exten':'6001','description':'forward\x20to\x20Sales\x20queue\x20auto\x20generated'},{'type':'internal','context':_0xee0245('0x5d'),'exten':_0xee0245('0x30'),'description':_0xee0245('0x27')},{'type':'internal','context':'from-sip','exten':_0xee0245('0x47'),'description':_0xee0245('0x1c')},{'type':_0xee0245('0x24'),'context':_0xee0245('0x5d'),'exten':_0xee0245('0x41'),'description':_0xee0245('0x29')},{'type':'internal','context':_0xee0245('0x5d'),'exten':_0xee0245('0x4a'),'description':_0xee0245('0x5a')},{'type':_0xee0245('0x24'),'context':_0xee0245('0x5d'),'exten':_0xee0245('0x48'),'description':_0xee0245('0x69')},{'type':_0xee0245('0x44'),'context':_0xee0245('0x5d'),'exten':_0xee0245('0x19'),'description':_0xee0245('0x13')},{'type':_0xee0245('0x44'),'context':_0xee0245('0x5d'),'exten':'xcally-motion-fax','description':_0xee0245('0x2a')},{'type':'system','context':_0xee0245('0x5d'),'exten':_0xee0245('0x43'),'description':_0xee0245('0x13')},{'type':_0xee0245('0x4d'),'context':'from-sip','exten':'_.','description':'demo\x20outbound\x20calls\x20auto\x20generated'},{'type':'inbound','context':_0xee0245('0x17'),'exten':_0xee0245('0x67'),'description':'catch\x20all\x20inbound\x20calls\x20auto\x20generated'},{'type':_0xee0245('0x44'),'context':_0xee0245('0x5d'),'exten':'h','description':_0xee0245('0xc')},{'type':_0xee0245('0x44'),'context':'from-sip','exten':_0xee0245('0x34'),'description':_0xee0245('0x56')}],applicationsAlways={'s':[{'app':_0xee0245('0x8'),'appdata':_0xee0245('0x2c')},{'app':_0xee0245('0x12')}],'_[x][c][a][l][l][y][Q][u][e][u][e][E][x][t][e][n][s][i][o][n].':[{'app':_0xee0245('0x50')},{'app':_0xee0245('0xe'),'appdata':'${EXTEN:20},xX'}]},voiceExtensionsAlways=[{'type':_0xee0245('0x44'),'context':_0xee0245('0x42'),'exten':'s'},{'type':_0xee0245('0x44'),'context':'from-sip','exten':_0xee0245('0x26')}];function createExtensions(_0x363418,_0x13d646){const _0x3e250c=_0xee0245;return db[_0x3e250c('0x2d')][_0x3e250c('0x63')](_0x363418,{'ignoreDuplicates':!![],'individualHooks':!![]})['then'](function(_0x2f225e){const _0x5d4e0f=_0x3e250c;for(let _0x200a34=0x0;_0x200a34<_0x2f225e[_0x5d4e0f('0x10')];_0x200a34+=0x1){if(_0x13d646[_0x2f225e[_0x200a34][_0x5d4e0f('0x32')]])for(let _0x3db777=0x0;_0x3db777<_0x13d646[_0x2f225e[_0x200a34][_0x5d4e0f('0x32')]][_0x5d4e0f('0x10')];_0x3db777+=0x1){_0x13d646[_0x2f225e[_0x200a34]['exten']][_0x3db777][_0x5d4e0f('0x66')]&&(_0x13d646[_0x2f225e[_0x200a34][_0x5d4e0f('0x32')]][_0x3db777][_0x5d4e0f('0x5c')]=_0x5d4e0f('0xb')+_0x2f225e[_0x200a34]['id'],delete _0x13d646[_0x2f225e[_0x200a34][_0x5d4e0f('0x32')]][_0x3db777][_0x5d4e0f('0x66')]),_0x13d646[_0x2f225e[_0x200a34]['exten']][_0x3db777]=_[_0x5d4e0f('0xd')](_0x13d646[_0x2f225e[_0x200a34][_0x5d4e0f('0x32')]][_0x3db777],{'isApp':![],'appType':_0x5d4e0f('0x55'),'type':_0x2f225e[_0x200a34][_0x5d4e0f('0x11')],'context':_0x2f225e[_0x200a34][_0x5d4e0f('0x5b')],'exten':_0x2f225e[_0x200a34][_0x5d4e0f('0x32')],'priority':parseInt(_0x2f225e[_0x200a34][_0x5d4e0f('0x37')],0xa)+0x1+_0x3db777,'description':_0x2f225e[_0x200a34][_0x5d4e0f('0x68')],'VoiceExtensionId':_0x2f225e[_0x200a34]['id']}),db[_0x5d4e0f('0x2d')][_0x5d4e0f('0x46')](_0x13d646[_0x2f225e[_0x200a34]['exten']][_0x3db777]);}}})[_0x3e250c('0x45')](function(){const _0x470f59=_0x3e250c;logger[_0x470f59('0x5e')](_0x470f59('0x54'));})['catch'](function(_0x1bd06d){const _0x50953e=_0x3e250c;logger['error'](_0x50953e('0x5'),_0x1bd06d);});}exports[_0xee0245('0x46')]=function(){createExtensions(voiceExtensions,applications);},exports[_0xee0245('0x2f')]=function(){const _0x4708b6=_0xee0245;return db[_0x4708b6('0x2d')][_0x4708b6('0x53')]({'where':{[Op['or']]:voiceExtensionsAlways}})['then'](function(){createExtensions(voiceExtensionsAlways,applicationsAlways);})[_0x4708b6('0x33')](function(_0x943609){const _0x463078=_0x4708b6;logger['error'](_0x463078('0x5'),_0x943609);});}; \ No newline at end of file +const a1043_0x29fb=['${EXTEN:20},xX','xcally-motion-dialer','_XCALLY_MIXMONITOR_UNIQUEID=${UNIQUEID}','Answer','6668','CDR(type)=dialer','forward\x20to\x20CSI\x20IVR\x20auto\x20generated','silence/1','demo-congrats','appdata','agi','$[\x22${AMDSTATUS}\x22\x20==\x20\x22NOTSURE\x22\x20]?11:10','create','CDR(type)=outbound-fax','Background','agi://127.0.0.1/square,AutoAttendant','echo\x20test\x20demo\x20auto\x20generated','defaults','forward\x20to\x20Orders\x20IVR\x20auto\x20generated','catch','fax\x20extensions\x20auto\x20generated','catch\x20hangup\x20event\x20auto\x20generated','info','Can\x27t\x20create\x20Voice\x20Extensions','createAlways','forward\x20to\x20Survey\x20IVR\x20auto\x20generated','6000','then','Hangup','Sales,xX,,,300,,,,,','6669','$[\x22${XMD-AGIAFTER}\x22\x20!=\x20\x22NONE\x22\x20]?AGI(${XMD-AGIAFTER})','6670','XCALLY-MOTION-ANSWER=0','error','destroy','$[\x22${XMD-AGI}\x22\x20!=\x20\x22NONE\x22\x20]?AGI(${XMD-AGI})','lodash','demo-echotest','VoiceExtension','agi://127.0.0.1/square,CSI','Queue','context','Playback','Dial','demo-echodone','Echo','Voice\x20Extensions\x20have\x20been\x20created','queue','$[\x22${XMD-QUEUE}\x22\x20!=\x20\x22NONE\x22\x20]?QUEUE(${XMD-QUEUE})','demo\x20outbound\x20calls\x20auto\x20generated','MONITOR_OPTIONS=ab','AMD','$[\x22${AMDSTATUS}\x22\x20==\x20\x22HUMAN\x22\x20]?11:9','AGI','6667','xcally-mixmonitor-context','CALLERID(all)=${XMD-CALLERID}','app','system','FAXOPT(localstationid)=${XMF-LOCALSTATIONID}','_X.','Set','GotoIf','internal','FAXOPT(headerinfo)=${XMF-HEADERINFO}','FAXOPT(minrate)=${XMF-MINRATE}','$[\x22${AMDSTATUS}\x22\x20==\x20\x22MACHINE\x22\x20]?14:11','exten','bulkCreate','custom','outboundrouteid','${XMD-AMDINITIALSILENCE},${XMD-AMDGREETING},${XMD-AMDAFTERGREETINGSILENCE},${XMD-AMDTOTALANALYSISTIME},${XMD-AMDMINWORDLENGTH},${XMD-AMDBETWEENWORDSSILENCE},${XMD-AMDMAXIMUMNUMBEROFWORDS},${XMD-AMDSILENCETHRESHOLD},${XMD-AMDMAXIMUMWORDLENGTH}','xcally-motion-preview','from-sip','FAXOPT(modem)=${XMF-MODEM}','FAXOPT(t38timeout)=${XMF-T38TIMEOUT}','inbound','length','agi://127.0.0.1/square,Orders','${XMF-PATH},d','CDR(type)=internal','dialer\x20extensions\x20auto\x20generated','outbound','CDR(type)=inbound','catch\x20failed\x20event\x20auto\x20generated','CDR(type)=outbound','SendFax','../logger','description','_XCALLY_MIXMONITOR_FORMAT=wav','Execif','FAXOPT(maxrate)=${XMF-MAXRATE}','sequelize','Progress'];(function(_0x243fa4,_0xcb0aa5){const _0x29fb49=function(_0x5b5912){while(--_0x5b5912){_0x243fa4['push'](_0x243fa4['shift']());}};_0x29fb49(++_0xcb0aa5);}(a1043_0x29fb,0x17a));const a1043_0x5b59=function(_0x243fa4,_0xcb0aa5){_0x243fa4=_0x243fa4-0x116;let _0x29fb49=a1043_0x29fb[_0x243fa4];return _0x29fb49;};const a1043_0x203620=a1043_0x5b59;'use strict';const _=require(a1043_0x203620(0x13d)),{db}=require('../../mysqldb'),{Op}=require(a1043_0x203620(0x116)),logger=require(a1043_0x203620(0x170))(a1043_0x203620(0x152)),applications={0x258:[{'app':a1043_0x203620(0x156),'appdata':a1043_0x203620(0x169)},{'app':a1043_0x203620(0x11b)},{'app':a1043_0x203620(0x143),'appdata':a1043_0x203620(0x13e),'isApp':!![]},{'app':a1043_0x203620(0x146),'isApp':!![]},{'app':'Playback','appdata':a1043_0x203620(0x145),'isApp':!![]},{'app':'Hangup'}],0x1770:[{'app':'Set','appdata':a1043_0x203620(0x169)},{'app':a1043_0x203620(0x11b)},{'app':a1043_0x203620(0x141),'appdata':'Support,xX,,,300,,,,,','appType':a1043_0x203620(0x148),'isApp':!![]},{'app':'Hangup'}],0x1771:[{'app':'Set','appdata':a1043_0x203620(0x169)},{'app':a1043_0x203620(0x11b)},{'app':a1043_0x203620(0x141),'appdata':a1043_0x203620(0x135),'appType':a1043_0x203620(0x148),'isApp':!![]},{'app':a1043_0x203620(0x134)}],0x1a0a:[{'app':a1043_0x203620(0x156),'appdata':'CDR(type)=internal'},{'app':a1043_0x203620(0x14e),'appdata':a1043_0x203620(0x127),'appType':'agi','isApp':!![]},{'app':a1043_0x203620(0x134)}],0x1a0b:[{'app':a1043_0x203620(0x156),'appdata':a1043_0x203620(0x169)},{'app':a1043_0x203620(0x14e),'appdata':a1043_0x203620(0x167),'appType':a1043_0x203620(0x122),'isApp':!![]},{'app':'Hangup'}],0x1a0c:[{'app':a1043_0x203620(0x156),'appdata':a1043_0x203620(0x169)},{'app':a1043_0x203620(0x14e),'appdata':a1043_0x203620(0x140),'appType':a1043_0x203620(0x122),'isApp':!![]},{'app':'Hangup'}],0x1a0d:[{'app':a1043_0x203620(0x156),'appdata':a1043_0x203620(0x169)},{'app':a1043_0x203620(0x14e),'appdata':'agi://127.0.0.1/square,Survey','appType':a1043_0x203620(0x122),'isApp':!![]},{'app':a1043_0x203620(0x134)}],0x1a0e:[{'app':a1043_0x203620(0x156),'appdata':'CDR(type)=internal'},{'app':'AGI','appdata':'agi://127.0.0.1/square,AgentManagement','appType':a1043_0x203620(0x122),'isApp':!![]},{'app':a1043_0x203620(0x134)}],'xcally-motion-dialer':[{'app':a1043_0x203620(0x156),'appdata':'CDR(type)=dialer'},{'app':'Set','appdata':'CALLERID(all)=${XMD-CALLERID}'},{'app':a1043_0x203620(0x157),'appdata':'$[\x22${XMD-AMD}\x22\x20!=\x20\x22NONE\x22\x20]?5:11'},{'app':a1043_0x203620(0x11b),'appdata':''},{'app':a1043_0x203620(0x126),'appdata':a1043_0x203620(0x11f)},{'app':a1043_0x203620(0x14c),'appdata':a1043_0x203620(0x160)},{'app':'GotoIf','appdata':a1043_0x203620(0x14d)},{'app':a1043_0x203620(0x157),'appdata':a1043_0x203620(0x123)},{'app':a1043_0x203620(0x157),'appdata':a1043_0x203620(0x15b)},{'app':a1043_0x203620(0x173),'appdata':a1043_0x203620(0x13c)},{'app':a1043_0x203620(0x173),'appdata':a1043_0x203620(0x149)},{'app':a1043_0x203620(0x173),'appdata':a1043_0x203620(0x137)},{'app':a1043_0x203620(0x134)}],'xcally-motion-fax':[{'app':a1043_0x203620(0x156),'appdata':a1043_0x203620(0x125)},{'app':'Wait','appdata':'6'},{'app':a1043_0x203620(0x156),'appdata':'FAXOPT(ecm)=${XMF-ECM}'},{'app':a1043_0x203620(0x156),'appdata':a1043_0x203620(0x159)},{'app':a1043_0x203620(0x156),'appdata':a1043_0x203620(0x154)},{'app':a1043_0x203620(0x156),'appdata':a1043_0x203620(0x174)},{'app':a1043_0x203620(0x156),'appdata':a1043_0x203620(0x15a)},{'app':a1043_0x203620(0x156),'appdata':a1043_0x203620(0x163)},{'app':a1043_0x203620(0x156),'appdata':a1043_0x203620(0x164)},{'app':a1043_0x203620(0x16f),'appdata':a1043_0x203620(0x168)}],'xcally-motion-preview':[{'app':a1043_0x203620(0x156),'appdata':a1043_0x203620(0x11d)},{'app':a1043_0x203620(0x156),'appdata':a1043_0x203620(0x151)},{'app':a1043_0x203620(0x173),'appdata':a1043_0x203620(0x13c)},{'app':a1043_0x203620(0x144),'appdata':'${XMD-DIALCHANNEL},${XMD-DIALTIMEOUT},${XMD-DIALOPTIONS},${XMD-DIALURL}'},{'app':a1043_0x203620(0x173),'appdata':a1043_0x203620(0x137)},{'app':a1043_0x203620(0x134)}],'_.':[{'app':a1043_0x203620(0x156),'appdata':a1043_0x203620(0x16e)},{'app':a1043_0x203620(0x156),'appdata':a1043_0x203620(0x139)},{'app':a1043_0x203620(0x156),'appdata':'XCALLY-MOTION-PROGRESS=0'},{'app':a1043_0x203620(0x156),'appdata':a1043_0x203620(0x14b)},{'app':a1043_0x203620(0x156),'outboundrouteid':!![]},{'app':a1043_0x203620(0x156),'appdata':a1043_0x203620(0x11a)},{'app':'Set','appdata':a1043_0x203620(0x172)},{'app':a1043_0x203620(0x143),'appdata':a1043_0x203620(0x120),'appType':a1043_0x203620(0x15e),'isApp':!![]},{'app':a1043_0x203620(0x134)}],'_X.':[{'app':a1043_0x203620(0x156),'appdata':a1043_0x203620(0x16c)},{'app':'Answer'},{'app':a1043_0x203620(0x143),'appdata':'demo-congrats','isApp':!![]},{'app':'Hangup'}],'h':[{'app':a1043_0x203620(0x134)}],'failed':[{'app':a1043_0x203620(0x134)}]},voiceExtensions=[{'type':a1043_0x203620(0x158),'context':a1043_0x203620(0x162),'exten':'600','description':a1043_0x203620(0x128)},{'type':a1043_0x203620(0x158),'context':a1043_0x203620(0x162),'exten':a1043_0x203620(0x132),'description':'forward\x20to\x20Support\x20queue\x20auto\x20generated'},{'type':a1043_0x203620(0x158),'context':a1043_0x203620(0x162),'exten':'6001','description':'forward\x20to\x20Sales\x20queue\x20auto\x20generated'},{'type':'internal','context':a1043_0x203620(0x162),'exten':'6666','description':'forward\x20to\x20Auto\x20Attendant\x20IVR\x20auto\x20generated'},{'type':a1043_0x203620(0x158),'context':a1043_0x203620(0x162),'exten':a1043_0x203620(0x14f),'description':a1043_0x203620(0x12a)},{'type':a1043_0x203620(0x158),'context':a1043_0x203620(0x162),'exten':a1043_0x203620(0x11c),'description':a1043_0x203620(0x11e)},{'type':'internal','context':a1043_0x203620(0x162),'exten':a1043_0x203620(0x136),'description':a1043_0x203620(0x131)},{'type':a1043_0x203620(0x158),'context':a1043_0x203620(0x162),'exten':a1043_0x203620(0x138),'description':'forward\x20to\x20Agent\x20Management\x20IVR\x20auto\x20generated'},{'type':a1043_0x203620(0x153),'context':a1043_0x203620(0x162),'exten':a1043_0x203620(0x119),'description':'dialer\x20extensions\x20auto\x20generated'},{'type':a1043_0x203620(0x153),'context':a1043_0x203620(0x162),'exten':'xcally-motion-fax','description':a1043_0x203620(0x12c)},{'type':a1043_0x203620(0x153),'context':a1043_0x203620(0x162),'exten':a1043_0x203620(0x161),'description':a1043_0x203620(0x16a)},{'type':a1043_0x203620(0x16b),'context':a1043_0x203620(0x162),'exten':'_.','description':a1043_0x203620(0x14a)},{'type':a1043_0x203620(0x165),'context':'from-voip-provider','exten':a1043_0x203620(0x155),'description':'catch\x20all\x20inbound\x20calls\x20auto\x20generated'},{'type':'system','context':a1043_0x203620(0x162),'exten':'h','description':a1043_0x203620(0x12d)},{'type':a1043_0x203620(0x153),'context':a1043_0x203620(0x162),'exten':'failed','description':a1043_0x203620(0x16d)}],applicationsAlways={'s':[{'app':'MixMonitor','appdata':'${XCALLY_MIXMONITOR_UNIQUEID}.${XCALLY_MIXMONITOR_FORMAT},ab'},{'app':'Return'}],'_[x][c][a][l][l][y][Q][u][e][u][e][E][x][t][e][n][s][i][o][n].':[{'app':a1043_0x203620(0x117)},{'app':a1043_0x203620(0x141),'appdata':a1043_0x203620(0x118)}]},voiceExtensionsAlways=[{'type':a1043_0x203620(0x153),'context':a1043_0x203620(0x150),'exten':'s'},{'type':'system','context':'from-sip','exten':'_[x][c][a][l][l][y][Q][u][e][u][e][E][x][t][e][n][s][i][o][n].'}];function createExtensions(_0x42c576,_0x9aa1){const _0x388f6a=a1043_0x203620;return db['VoiceExtension'][_0x388f6a(0x15d)](_0x42c576,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x388f6a(0x133)](function(_0x81bf19){const _0x2d0c83=_0x388f6a;for(let _0x461340=0x0;_0x461340<_0x81bf19[_0x2d0c83(0x166)];_0x461340+=0x1){if(_0x9aa1[_0x81bf19[_0x461340][_0x2d0c83(0x15c)]])for(let _0xb82e45=0x0;_0xb82e45<_0x9aa1[_0x81bf19[_0x461340][_0x2d0c83(0x15c)]]['length'];_0xb82e45+=0x1){_0x9aa1[_0x81bf19[_0x461340]['exten']][_0xb82e45][_0x2d0c83(0x15f)]&&(_0x9aa1[_0x81bf19[_0x461340]['exten']][_0xb82e45][_0x2d0c83(0x121)]='outboundrouteid='+_0x81bf19[_0x461340]['id'],delete _0x9aa1[_0x81bf19[_0x461340][_0x2d0c83(0x15c)]][_0xb82e45][_0x2d0c83(0x15f)]),_0x9aa1[_0x81bf19[_0x461340][_0x2d0c83(0x15c)]][_0xb82e45]=_[_0x2d0c83(0x129)](_0x9aa1[_0x81bf19[_0x461340][_0x2d0c83(0x15c)]][_0xb82e45],{'isApp':![],'appType':'custom','type':_0x81bf19[_0x461340]['type'],'context':_0x81bf19[_0x461340][_0x2d0c83(0x142)],'exten':_0x81bf19[_0x461340][_0x2d0c83(0x15c)],'priority':parseInt(_0x81bf19[_0x461340]['priority'],0xa)+0x1+_0xb82e45,'description':_0x81bf19[_0x461340][_0x2d0c83(0x171)],'VoiceExtensionId':_0x81bf19[_0x461340]['id']}),db[_0x2d0c83(0x13f)][_0x2d0c83(0x124)](_0x9aa1[_0x81bf19[_0x461340][_0x2d0c83(0x15c)]][_0xb82e45]);}}})[_0x388f6a(0x133)](function(){const _0x27aa98=_0x388f6a;logger[_0x27aa98(0x12e)](_0x27aa98(0x147));})[_0x388f6a(0x12b)](function(_0x440a9e){const _0x416d73=_0x388f6a;logger['error'](_0x416d73(0x12f),_0x440a9e);});}exports['create']=function(){createExtensions(voiceExtensions,applications);},exports[a1043_0x203620(0x130)]=function(){const _0x4af8db=a1043_0x203620;return db[_0x4af8db(0x13f)][_0x4af8db(0x13b)]({'where':{[Op['or']]:voiceExtensionsAlways}})[_0x4af8db(0x133)](function(){createExtensions(voiceExtensionsAlways,applicationsAlways);})[_0x4af8db(0x12b)](function(_0x2e6ec7){const _0xf5e7c2=_0x4af8db;logger[_0xf5e7c2(0x13a)](_0xf5e7c2(0x12f),_0x2e6ec7);});}; \ No newline at end of file diff --git a/server/config/seedDB/voiceMusicOnHold.js b/server/config/seedDB/voiceMusicOnHold.js index c33aedd..cd8ddb7 100644 --- a/server/config/seedDB/voiceMusicOnHold.js +++ b/server/config/seedDB/voiceMusicOnHold.js @@ -1 +1 @@ -const a882_0x277a=['noice','files','/var/lib/asterisk/moh/','error','create','VoiceMusicOnHold','then','default','wait\x20moh\x20auto\x20generated','wav','../logger','Can\x27t\x20create\x20Music\x20on\x20hold','info','wait','random','/var/opt/motion2/server/files/moh/noice/','noice\x20moh\x20auto\x20generated','default\x20moh\x20auto\x20generated'];(function(_0x3ecc66,_0x277a2e){const _0x25756a=function(_0x538bc6){while(--_0x538bc6){_0x3ecc66['push'](_0x3ecc66['shift']());}};_0x25756a(++_0x277a2e);}(a882_0x277a,0x7e));const a882_0x2575=function(_0x3ecc66,_0x277a2e){_0x3ecc66=_0x3ecc66-0x0;let _0x25756a=a882_0x277a[_0x3ecc66];return _0x25756a;};const _0x22f5fd=a882_0x2575;'use strict';const db=require('../../mysqldb')['db'],logger=require(_0x22f5fd('0xa'))('app'),voiceMusicOnHold=[{'id':0x1,'name':_0x22f5fd('0x7'),'directory':_0x22f5fd('0x2'),'mode':_0x22f5fd('0x1'),'sort':_0x22f5fd('0xe'),'format':_0x22f5fd('0x9'),'defaultEntry':!![],'description':_0x22f5fd('0x11')},{'id':0x2,'name':_0x22f5fd('0x0'),'directory':_0x22f5fd('0xf'),'mode':'files','sort':'random','format':_0x22f5fd('0x9'),'defaultEntry':!![],'description':_0x22f5fd('0x10')},{'id':0x3,'name':_0x22f5fd('0xd'),'directory':'/var/opt/motion2/server/files/moh/wait/','mode':'files','sort':_0x22f5fd('0xe'),'format':_0x22f5fd('0x9'),'defaultEntry':!![],'description':_0x22f5fd('0x8')}];exports[_0x22f5fd('0x4')]=function(){const _0x56cd0e=_0x22f5fd;return db[_0x56cd0e('0x5')]['bulkCreate'](voiceMusicOnHold,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x56cd0e('0x6')](function(){const _0x4cfaa5=_0x56cd0e;logger[_0x4cfaa5('0xc')]('Music\x20on\x20hold\x20have\x20been\x20created');})['catch'](function(){const _0x6f0e2b=_0x56cd0e;logger[_0x6f0e2b('0x3')](_0x6f0e2b('0xb'));});}; \ No newline at end of file +const a1044_0x1130=['info','files','error','wav','app','wait\x20moh\x20auto\x20generated','noice\x20moh\x20auto\x20generated','catch','wait','bulkCreate','default\x20moh\x20auto\x20generated','../logger','/var/opt/motion2/server/files/moh/wait/','Can\x27t\x20create\x20Music\x20on\x20hold','../../mysqldb','/var/opt/motion2/server/files/moh/noice/','random','Music\x20on\x20hold\x20have\x20been\x20created','VoiceMusicOnHold','default'];(function(_0x1ebaf0,_0x2baf52){const _0x11308f=function(_0x3b8fbe){while(--_0x3b8fbe){_0x1ebaf0['push'](_0x1ebaf0['shift']());}};_0x11308f(++_0x2baf52);}(a1044_0x1130,0x145));const a1044_0x3b8f=function(_0x1ebaf0,_0x2baf52){_0x1ebaf0=_0x1ebaf0-0x97;let _0x11308f=a1044_0x1130[_0x1ebaf0];return _0x11308f;};const a1044_0x3b3641=a1044_0x3b8f;'use strict';const {db}=require(a1044_0x3b3641(0xa0)),logger=require(a1044_0x3b3641(0x9d))(a1044_0x3b3641(0xaa)),voiceMusicOnHold=[{'id':0x1,'name':a1044_0x3b3641(0xa5),'directory':'/var/lib/asterisk/moh/','mode':'files','sort':'random','format':a1044_0x3b3641(0xa9),'defaultEntry':!![],'description':a1044_0x3b3641(0x9c)},{'id':0x2,'name':'noice','directory':a1044_0x3b3641(0xa1),'mode':a1044_0x3b3641(0xa7),'sort':'random','format':a1044_0x3b3641(0xa9),'defaultEntry':!![],'description':a1044_0x3b3641(0x98)},{'id':0x3,'name':a1044_0x3b3641(0x9a),'directory':a1044_0x3b3641(0x9e),'mode':'files','sort':a1044_0x3b3641(0xa2),'format':'wav','defaultEntry':!![],'description':a1044_0x3b3641(0x97)}];exports['create']=function(){const _0x551c77=a1044_0x3b3641;return db[_0x551c77(0xa4)][_0x551c77(0x9b)](voiceMusicOnHold,{'ignoreDuplicates':!![],'individualHooks':!![]})['then'](function(){const _0x19cbec=_0x551c77;logger[_0x19cbec(0xa6)](_0x19cbec(0xa3));})[_0x551c77(0x99)](function(){const _0x114eda=_0x551c77;logger[_0x114eda(0xa8)](_0x114eda(0x9f));});}; \ No newline at end of file diff --git a/server/config/seedDB/voiceQueues.js b/server/config/seedDB/voiceQueues.js index fdd3308..632283e 100644 --- a/server/config/seedDB/voiceQueues.js +++ b/server/config/seedDB/voiceQueues.js @@ -1 +1 @@ -const a883_0x165a=['addTeams','wait','Sales','rrmemory','Voice\x20Queues\x20have\x20been\x20created','inbound\x20voice\x20queue\x20auto\x20generated','CallbackCampaign','inbound','Support','addBlackLists','../logger','outbound\x20voice\x20queue\x20campaign\x20auto\x20generated','VoiceQueue','Survey','outbound','bulkCreate','error','noice','Can\x27t\x20create\x20Voice\x20Queues','Telemarketing','ringall','addLists','../../mysqldb'];(function(_0x436ae3,_0x165aa3){const _0x5e4d07=function(_0x558d26){while(--_0x558d26){_0x436ae3['push'](_0x436ae3['shift']());}};_0x5e4d07(++_0x165aa3);}(a883_0x165a,0x71));const a883_0x5e4d=function(_0x436ae3,_0x165aa3){_0x436ae3=_0x436ae3-0x0;let _0x5e4d07=a883_0x165a[_0x436ae3];return _0x5e4d07;};const _0x5ce507=a883_0x5e4d;'use strict';const db=require(_0x5ce507('0x1'))['db'],logger=require(_0x5ce507('0xc'))('app'),voiceQueues=[{'id':0x1,'type':_0x5ce507('0x9'),'name':_0x5ce507('0xa'),'strategy':_0x5ce507('0x16'),'musiconhold':_0x5ce507('0x3'),'description':_0x5ce507('0x7')},{'id':0x2,'type':'inbound','name':_0x5ce507('0x4'),'strategy':_0x5ce507('0x16'),'musiconhold':_0x5ce507('0x3'),'description':_0x5ce507('0x7')},{'id':0x3,'type':'outbound','name':_0x5ce507('0xf'),'strategy':_0x5ce507('0x5'),'TrunkId':0x1,'IntervalId':0x1,'musiconhold':'noice','description':_0x5ce507('0xd')},{'id':0x4,'type':_0x5ce507('0x10'),'name':_0x5ce507('0x15'),'strategy':'rrmemory','TrunkId':0x1,'IntervalId':0x1,'musiconhold':'noice','description':'outbound\x20voice\x20queue\x20campaign\x20auto\x20generated'},{'id':0x5,'type':'outbound','name':_0x5ce507('0x8'),'strategy':_0x5ce507('0x5'),'TrunkId':0x1,'IntervalId':0x1,'musiconhold':_0x5ce507('0x13'),'description':_0x5ce507('0xd')}];async function create(){const _0x505ad4=_0x5ce507;try{await db[_0x505ad4('0xe')][_0x505ad4('0x11')](voiceQueues,{'ignoreDuplicates':!![],'individualHooks':!![]});const _0x558d26=await db[_0x505ad4('0xe')]['findAll']();for(const _0x34ed4f of _0x558d26){await _0x34ed4f['addAgents']([0x2,0x3],{'ignoreDuplicates':!![],'individualHooks':!![]}),await _0x34ed4f[_0x505ad4('0x2')]([0x1],{'ignoreDuplicates':!![],'individualHooks':!![]}),_0x34ed4f['type']===_0x505ad4('0x10')&&_0x34ed4f['id']!==0x5&&(await _0x34ed4f[_0x505ad4('0x0')]([0x1],{'ignoreDuplicates':!![],'individualHooks':!![]}),await _0x34ed4f[_0x505ad4('0xb')]([0x2],{'ignoreDuplicates':!![],'individualHooks':!![]})),_0x34ed4f['id']===0x5&&await _0x34ed4f['addLists']([0x3],{'ignoreDuplicates':!![],'individualHooks':!![]});}logger['info'](_0x505ad4('0x6'));}catch(_0x368043){logger[_0x505ad4('0x12')](_0x505ad4('0x14'),_0x368043);throw _0x368043;}}module['exports']={'create':create}; \ No newline at end of file +const a1045_0x4ef8=['info','wait','rrmemory','create','CallbackCampaign','type','inbound\x20voice\x20queue\x20auto\x20generated','outbound','inbound','VoiceQueue','app','../../mysqldb','ringall','Voice\x20Queues\x20have\x20been\x20created','addAgents','Support','outbound\x20voice\x20queue\x20campaign\x20auto\x20generated','Sales','noice','addLists','addTeams','findAll','bulkCreate','error','addBlackLists','Survey','../logger'];(function(_0x3925f5,_0x2d36a2){const _0x4ef849=function(_0x3af4a){while(--_0x3af4a){_0x3925f5['push'](_0x3925f5['shift']());}};_0x4ef849(++_0x2d36a2);}(a1045_0x4ef8,0x138));const a1045_0x3af4=function(_0x3925f5,_0x2d36a2){_0x3925f5=_0x3925f5-0x1e5;let _0x4ef849=a1045_0x4ef8[_0x3925f5];return _0x4ef849;};const a1045_0x369746=a1045_0x3af4;'use strict';const {db}=require(a1045_0x369746(0x1fc)),logger=require(a1045_0x369746(0x1f0))(a1045_0x369746(0x1fb)),voiceQueues=[{'id':0x1,'type':'inbound','name':a1045_0x369746(0x1e5),'strategy':a1045_0x369746(0x1fd),'musiconhold':a1045_0x369746(0x1f2),'description':a1045_0x369746(0x1f7)},{'id':0x2,'type':a1045_0x369746(0x1f9),'name':a1045_0x369746(0x1e7),'strategy':a1045_0x369746(0x1fd),'musiconhold':'wait','description':'inbound\x20voice\x20queue\x20auto\x20generated'},{'id':0x3,'type':a1045_0x369746(0x1f8),'name':a1045_0x369746(0x1ef),'strategy':'rrmemory','TrunkId':0x1,'IntervalId':0x1,'musiconhold':'noice','description':a1045_0x369746(0x1e6)},{'id':0x4,'type':a1045_0x369746(0x1f8),'name':'Telemarketing','strategy':a1045_0x369746(0x1f3),'TrunkId':0x1,'IntervalId':0x1,'musiconhold':a1045_0x369746(0x1e8),'description':'outbound\x20voice\x20queue\x20campaign\x20auto\x20generated'},{'id':0x5,'type':a1045_0x369746(0x1f8),'name':a1045_0x369746(0x1f5),'strategy':a1045_0x369746(0x1f3),'TrunkId':0x1,'IntervalId':0x1,'musiconhold':a1045_0x369746(0x1e8),'description':a1045_0x369746(0x1e6)}];async function create(){const _0x130623=a1045_0x369746;try{await db[_0x130623(0x1fa)][_0x130623(0x1ec)](voiceQueues,{'ignoreDuplicates':!![],'individualHooks':!![]});const _0x3100e3=await db['VoiceQueue'][_0x130623(0x1eb)]();for(const _0x159b8d of _0x3100e3){await _0x159b8d[_0x130623(0x1ff)]([0x2,0x3],{'ignoreDuplicates':!![],'individualHooks':!![]}),await _0x159b8d[_0x130623(0x1ea)]([0x1],{'ignoreDuplicates':!![],'individualHooks':!![]}),_0x159b8d[_0x130623(0x1f6)]==='outbound'&&_0x159b8d['id']!==0x5&&(await _0x159b8d[_0x130623(0x1e9)]([0x1],{'ignoreDuplicates':!![],'individualHooks':!![]}),await _0x159b8d[_0x130623(0x1ee)]([0x2],{'ignoreDuplicates':!![],'individualHooks':!![]})),_0x159b8d['id']===0x5&&await _0x159b8d[_0x130623(0x1e9)]([0x3],{'ignoreDuplicates':!![],'individualHooks':!![]});}logger[_0x130623(0x1f1)](_0x130623(0x1fe));}catch(_0x2a2606){logger[_0x130623(0x1ed)]('Can\x27t\x20create\x20Voice\x20Queues',_0x2a2606);throw _0x2a2606;}}module['exports'][a1045_0x369746(0x1f4)]=create; \ No newline at end of file diff --git a/server/config/seedUsers.js b/server/config/seedUsers.js index ff49911..60736bf 100644 --- a/server/config/seedUsers.js +++ b/server/config/seedUsers.js @@ -1 +1 @@ -const a884_0xa831=['/etc/pki/tls/private/motion.key','/etc/pki/tls/certs/motion.crt','add\x20user','push','\x22%s\x22\x20<%s>','yes','actpass','catch','bulkCreate','then','format','udp','agent','%s%s','util','User','../mysqldb','password'];(function(_0x364483,_0xa83189){const _0x167ac3=function(_0x524d0c){while(--_0x524d0c){_0x364483['push'](_0x364483['shift']());}};_0x167ac3(++_0xa83189);}(a884_0xa831,0x82));const a884_0x167a=function(_0x364483,_0xa83189){_0x364483=_0x364483-0x0;let _0x167ac3=a884_0xa831[_0x364483];return _0x167ac3;};const _0x3ef4d6=a884_0x167a;'use strict';const util=require(_0x3ef4d6('0xa')),db=require(_0x3ef4d6('0xc'))['db'],users=[];for(let i=0x1;i<=0xc8;i+=0x1){users[_0x3ef4d6('0x11')]({'name':util[_0x3ef4d6('0x6')](_0x3ef4d6('0x9'),_0x3ef4d6('0x8'),i),'fullname':util['format']('%s%s',_0x3ef4d6('0x8'),i),'email':util[_0x3ef4d6('0x6')]('%s%s@xcally.com',_0x3ef4d6('0x8'),i),'role':_0x3ef4d6('0x8'),'password':_0x3ef4d6('0xd'),'internal':0xfa0+i,'type':'friend','transport':[_0x3ef4d6('0x7'),'ws','wss'],'disallow':['all'],'allow':['ulaw'],'defaultuser':util[_0x3ef4d6('0x6')](_0x3ef4d6('0x9'),'agent',i),'encryption':_0x3ef4d6('0x1'),'avpf':_0x3ef4d6('0x1'),'force_avp':'yes','icesupport':_0x3ef4d6('0x1'),'dtlsenable':_0x3ef4d6('0x1'),'dtlsverify':'no','dtlscertfile':_0x3ef4d6('0xf'),'dtlsprivatekey':_0x3ef4d6('0xe'),'dtlssetup':_0x3ef4d6('0x2'),'callerid':util[_0x3ef4d6('0x6')](_0x3ef4d6('0x0'),util['format']('%s%s',_0x3ef4d6('0x8'),i),0xfa0+i)});}db[_0x3ef4d6('0xb')][_0x3ef4d6('0x4')](users)[_0x3ef4d6('0x5')](function(){const _0x22528d=_0x3ef4d6;console['log'](_0x22528d('0x10'));})[_0x3ef4d6('0x3')](function(_0x524d0c){console['log'](_0x524d0c);}); \ No newline at end of file +const a1046_0x1428=['yes','/etc/pki/tls/private/motion.key','%s%s@xcally.com','User','actpass','\x22%s\x22\x20<%s>','udp','push','all','catch','format','friend','password','then','agent','ulaw','/etc/pki/tls/certs/motion.crt','%s%s','../mysqldb','log'];(function(_0x2cb919,_0x45501a){const _0x142866=function(_0x15e47b){while(--_0x15e47b){_0x2cb919['push'](_0x2cb919['shift']());}};_0x142866(++_0x45501a);}(a1046_0x1428,0xb8));const a1046_0x15e4=function(_0x2cb919,_0x45501a){_0x2cb919=_0x2cb919-0xf4;let _0x142866=a1046_0x1428[_0x2cb919];return _0x142866;};const a1046_0x432690=a1046_0x15e4;'use strict';const util=require('util'),{db}=require(a1046_0x432690(0x102)),users=[];for(let i=0x1;i<=0xc8;i+=0x1){users[a1046_0x432690(0xf7)]({'name':util[a1046_0x432690(0xfa)](a1046_0x432690(0x101),a1046_0x432690(0xfe),i),'fullname':util['format'](a1046_0x432690(0x101),'agent',i),'email':util[a1046_0x432690(0xfa)](a1046_0x432690(0x106),a1046_0x432690(0xfe),i),'role':a1046_0x432690(0xfe),'password':a1046_0x432690(0xfc),'internal':0xfa0+i,'type':a1046_0x432690(0xfb),'transport':[a1046_0x432690(0xf6),'ws','wss'],'disallow':[a1046_0x432690(0xf8)],'allow':[a1046_0x432690(0xff)],'defaultuser':util[a1046_0x432690(0xfa)](a1046_0x432690(0x101),a1046_0x432690(0xfe),i),'encryption':a1046_0x432690(0x104),'avpf':a1046_0x432690(0x104),'force_avp':a1046_0x432690(0x104),'icesupport':a1046_0x432690(0x104),'dtlsenable':a1046_0x432690(0x104),'dtlsverify':'no','dtlscertfile':a1046_0x432690(0x100),'dtlsprivatekey':a1046_0x432690(0x105),'dtlssetup':a1046_0x432690(0xf4),'callerid':util['format'](a1046_0x432690(0xf5),util['format']('%s%s',a1046_0x432690(0xfe),i),0xfa0+i)});}db[a1046_0x432690(0x107)]['bulkCreate'](users)[a1046_0x432690(0xfd)](function(){const _0x2010b3=a1046_0x432690;console[_0x2010b3(0x103)]('add\x20user');})[a1046_0x432690(0xf9)](function(_0x56e7ce){const _0x55de86=a1046_0x432690;console[_0x55de86(0x103)](_0x56e7ce);}); \ No newline at end of file diff --git a/server/config/socketio.js b/server/config/socketio.js index 59b0053..c3a3e0a 100644 --- a/server/config/socketio.js +++ b/server/config/socketio.js @@ -1 +1 @@ -const a885_0x1314=['%s:queue:%s','FaxQueues','Agents','openchannel','SmsQueues','Campaign','user','removeFaxInteractions','nsp','admin','SmsQueue','FaxQueue','../mysqldb','userProfileId','request','catch','IvrCampaigns','type','Telephones','UserProfileSection','campaign:%s:%s','FaxInteraction','user_has_mail_interactions:remove','WhatsappInteraction','user_has_sms_interactions:remove','VoiceQueues','util','OpenchannelQueues','address','MailInteractions','WhatsappQueues','remotePort','user:%s','MailQueues','getWhatsappQueues','user_has_fax_interactions:remove','removeWhatsappInteractions','WhatsappQueue','ChatInteraction','undefined','leave','user_has_chat_interactions:remove','mail','Trunks','voice:inbound','MailInteraction','MailQueue','ChatQueues','findAll','SocketIO\x20','getVoiceQueues','connectedAt','getFaxQueues','role','voice','autoAssociation','DISCONNECTED','handshake','OpenchannelQueue','length','join','SmsInteraction','FaxInteractions','trunk:%s','all','ChatQueue','getOpenchannelQueues','voice:outbound','Trunk','VoiceQueue','emit','findOne','ChatInteractions','chat','query','SmsInteractions','connection','agent','WhatsappInteractions','map','include','sms','user_has_whatsapp_interactions:remove','whatsapp','name','disconnect','ivr','format','OpenchannelInteractions','getSmsQueues','then','telephone:%s','user_has_openchannel_interactions:remove','lodash','setMaxListeners','OpenchannelInteraction','fax','UserProfileResource','User','push','removeSmsInteractions','telephone','log','removeMailInteractions','CONNECTED'];(function(_0x4bd397,_0x1314c4){const _0x49d99d=function(_0x4c7dfa){while(--_0x4c7dfa){_0x4bd397['push'](_0x4bd397['shift']());}};_0x49d99d(++_0x1314c4);}(a885_0x1314,0x194));const a885_0x49d9=function(_0x4bd397,_0x1314c4){_0x4bd397=_0x4bd397-0x0;let _0x49d99d=a885_0x1314[_0x4bd397];return _0x49d99d;};const _0x459ecb=a885_0x49d9;'use strict';const _=require(_0x459ecb('0x4')),util=require(_0x459ecb('0x2a')),db=require(_0x459ecb('0x1c'))['db'],queryQueues={'attributes':['id',_0x459ecb('0x64')],'include':[{'as':_0x459ecb('0x12'),'model':db[_0x459ecb('0x9')],'attributes':['id',_0x459ecb('0x64'),_0x459ecb('0x45')],'raw':!![],'where':{'role':_0x459ecb('0x5d')},'required':![]}]},queryTelephones={'raw':!![],'attributes':['id',_0x459ecb('0x64')],'where':{'role':'telephone'}},queryTrunks={'raw':!![],'attributes':['id',_0x459ecb('0x64')]},queryAgents={'raw':!![],'attributes':['id',_0x459ecb('0x64')],'where':{'role':_0x459ecb('0x5d')}},queryCampaigns={'raw':!![],'attributes':['id',_0x459ecb('0x64'),_0x459ecb('0x21')],'where':{'type':'ivr'}};function getAssociatedResources(_0x4c7dfa,_0x51931c,_0x511c10){const _0x39564d=_0x459ecb;return db[_0x39564d('0x23')][_0x39564d('0x57')]({'where':{'name':_0x4c7dfa,'userProfileId':_0x51931c},'raw':!![]})['then'](function(_0x1fa0b2){const _0x463127=_0x39564d;if(_0x1fa0b2){if(_0x1fa0b2[_0x463127('0x47')]){let _0x41a511;switch(_0x4c7dfa){case _0x463127('0x29'):case _0x463127('0x3f'):case _0x463127('0x11'):case'SmsQueues':case _0x463127('0x31'):case _0x463127('0x2b'):case _0x463127('0x2e'):_0x41a511=queryQueues;break;case _0x463127('0x22'):_0x41a511=queryTelephones;break;case _0x463127('0x3b'):_0x41a511=queryTrunks;break;case _0x463127('0x20'):_0x41a511=queryCampaigns;break;default:break;}return _0x41a511?db[_0x511c10][_0x463127('0x40')](_0x41a511):_0x41a511;}else return db[_0x463127('0x8')][_0x463127('0x40')]({'attributes':['resourceId'],'where':{'sectionId':_0x1fa0b2['id']},'raw':!![]})[_0x463127('0x1')](function(_0x576ecf){const _0x1d1e1d=_0x463127;if(_0x576ecf){const _0x312dda={'where':{'id':_[_0x1d1e1d('0x5f')](_0x576ecf,'resourceId')},'raw':!![]};switch(_0x511c10){case _0x1d1e1d('0x9'):_0x312dda['where']['role']=_0x1d1e1d('0xc');break;case'Campaign':_0x312dda['where']['type']=_0x1d1e1d('0x66');break;}return db[_0x511c10][_0x1d1e1d('0x40')](_0x312dda);}else return[];});}else return[];})[_0x39564d('0x1')](function(_0x1f1e9d){return _0x1f1e9d;});}function joinOrLeaveQueues(_0x26755d,_0x10fbf2,_0x3a0922,_0x500cd8){const _0xc5e82a=_0x459ecb;_0x26755d[_0x10fbf2](util['format'](_0xc5e82a('0x10'),_0x3a0922,_0x500cd8[_0xc5e82a('0x64')]));if(_0x500cd8[_0xc5e82a('0x12')])for(let _0x5e28e4=0x0;_0x5e28e4<_0x500cd8[_0xc5e82a('0x12')][_0xc5e82a('0x4b')];_0x5e28e4+=0x1){_0x26755d[_0x10fbf2](util['format'](_0xc5e82a('0x30'),_0x500cd8[_0xc5e82a('0x12')][_0x5e28e4][_0xc5e82a('0x64')]));}}function joinOrLeave(_0x44fbaf,_0x48da73,_0x4dff05){const _0x4929fb=_0x459ecb;let _0x26f444;_0x44fbaf['handshake'][_0x4929fb('0x5a')]['id']&&db[_0x4929fb('0x9')][_0x4929fb('0x57')]({'attributes':['id',_0x4929fb('0x64'),_0x4929fb('0x45'),_0x4929fb('0x1d')],'where':{'id':_0x44fbaf[_0x4929fb('0x49')][_0x4929fb('0x5a')]['id']},'include':[{'model':db[_0x4929fb('0x36')],'as':_0x4929fb('0x58'),'attributes':['id'],'raw':!![]},{'model':db[_0x4929fb('0x3d')],'as':_0x4929fb('0x2d'),'attributes':['id'],'raw':!![]},{'model':db[_0x4929fb('0x25')],'as':_0x4929fb('0x4e'),'attributes':['id'],'raw':!![]},{'model':db[_0x4929fb('0x4d')],'as':'SmsInteractions','attributes':['id'],'raw':!![]},{'model':db[_0x4929fb('0x6')],'as':'OpenchannelInteractions','attributes':['id'],'raw':!![]},{'model':db[_0x4929fb('0x27')],'as':_0x4929fb('0x5e'),'attributes':['id'],'raw':!![]}]})[_0x4929fb('0x1')](function(_0x2ad77e){const _0x1869d4=_0x4929fb;if(_0x2ad77e){_0x26f444=_0x2ad77e,_0x44fbaf[_0x48da73](util['format'](_0x1869d4('0x30'),_0x2ad77e['name']));const _0x4dfa63=[];switch(_0x2ad77e[_0x1869d4('0x45')]){case _0x1869d4('0x19'):_0x44fbaf[_0x48da73]('voice:inbound'),_0x44fbaf[_0x48da73](_0x1869d4('0x53'));typeof queryQueues['include']!==_0x1869d4('0x37')&&delete queryQueues[_0x1869d4('0x60')];_0x4dfa63['push'](db[_0x1869d4('0x55')][_0x1869d4('0x40')](queryQueues)),_0x4dfa63[_0x1869d4('0xa')](db[_0x1869d4('0x51')][_0x1869d4('0x40')](queryQueues)),_0x4dfa63[_0x1869d4('0xa')](db['FaxQueue'][_0x1869d4('0x40')](queryQueues)),_0x4dfa63[_0x1869d4('0xa')](db[_0x1869d4('0x1a')][_0x1869d4('0x40')](queryQueues)),_0x4dfa63['push'](db[_0x1869d4('0x3e')][_0x1869d4('0x40')](queryQueues)),_0x4dfa63['push'](db[_0x1869d4('0x4a')][_0x1869d4('0x40')](queryQueues)),_0x4dfa63[_0x1869d4('0xa')](db['WhatsappQueue'][_0x1869d4('0x40')](queryQueues)),_0x4dfa63[_0x1869d4('0xa')](db[_0x1869d4('0x9')][_0x1869d4('0x40')](queryTelephones)),_0x4dfa63[_0x1869d4('0xa')](db[_0x1869d4('0x54')][_0x1869d4('0x40')](queryTrunks)),_0x4dfa63['push'](db[_0x1869d4('0x15')][_0x1869d4('0x40')](queryCampaigns)),_0x4dfa63['push'](db[_0x1869d4('0x9')][_0x1869d4('0x40')](queryAgents));break;case _0x1869d4('0x16'):_0x44fbaf[_0x48da73](_0x1869d4('0x3c')),_0x44fbaf[_0x48da73](_0x1869d4('0x53')),_0x4dfa63[_0x1869d4('0xa')](getAssociatedResources(_0x1869d4('0x29'),_0x2ad77e['userProfileId'],_0x1869d4('0x55'))),_0x4dfa63[_0x1869d4('0xa')](getAssociatedResources(_0x1869d4('0x3f'),_0x2ad77e['userProfileId'],_0x1869d4('0x51'))),_0x4dfa63[_0x1869d4('0xa')](getAssociatedResources(_0x1869d4('0x11'),_0x2ad77e[_0x1869d4('0x1d')],_0x1869d4('0x1b'))),_0x4dfa63[_0x1869d4('0xa')](getAssociatedResources(_0x1869d4('0x14'),_0x2ad77e['userProfileId'],_0x1869d4('0x1a'))),_0x4dfa63[_0x1869d4('0xa')](getAssociatedResources('MailQueues',_0x2ad77e[_0x1869d4('0x1d')],_0x1869d4('0x3e'))),_0x4dfa63['push'](getAssociatedResources(_0x1869d4('0x2b'),_0x2ad77e[_0x1869d4('0x1d')],_0x1869d4('0x4a'))),_0x4dfa63['push'](getAssociatedResources(_0x1869d4('0x2e'),_0x2ad77e[_0x1869d4('0x1d')],_0x1869d4('0x35'))),_0x4dfa63['push'](getAssociatedResources(_0x1869d4('0x22'),_0x2ad77e['userProfileId'],_0x1869d4('0x9'))),_0x4dfa63[_0x1869d4('0xa')](getAssociatedResources(_0x1869d4('0x3b'),_0x2ad77e[_0x1869d4('0x1d')],_0x1869d4('0x54'))),_0x4dfa63[_0x1869d4('0xa')](getAssociatedResources('IvrCampaigns',_0x2ad77e[_0x1869d4('0x1d')],_0x1869d4('0x15'))),_0x4dfa63[_0x1869d4('0xa')](db[_0x1869d4('0x9')]['findAll'](queryAgents));break;case'agent':_0x44fbaf[_0x48da73]('voice:inbound'),_0x44fbaf[_0x48da73](_0x1869d4('0x53')),_0x4dfa63[_0x1869d4('0xa')](_0x2ad77e[_0x1869d4('0x42')]({'attributes':['id','name']})),_0x4dfa63['push'](_0x2ad77e['getChatQueues']({'attributes':['id',_0x1869d4('0x64')]})),_0x4dfa63['push'](_0x2ad77e[_0x1869d4('0x44')]({'attributes':['id','name']})),_0x4dfa63[_0x1869d4('0xa')](_0x2ad77e[_0x1869d4('0x0')]({'attributes':['id',_0x1869d4('0x64')]})),_0x4dfa63['push'](_0x2ad77e['getMailQueues']({'attributes':['id',_0x1869d4('0x64')]})),_0x4dfa63[_0x1869d4('0xa')](_0x2ad77e[_0x1869d4('0x52')]({'attributes':['id',_0x1869d4('0x64')]})),_0x4dfa63[_0x1869d4('0xa')](_0x2ad77e[_0x1869d4('0x32')]({'attributes':['id','name']}));break;}return Promise[_0x1869d4('0x50')](_0x4dfa63);}})[_0x4929fb('0x1')](function(_0x3cf2f7){const _0x3f6451=_0x4929fb;if(_0x3cf2f7&&_0x3cf2f7[_0x3f6451('0x4b')])for(let _0xd65868=0x0;_0xd65868<_0x3cf2f7[_0x3f6451('0x4b')];_0xd65868+=0x1){for(let _0x4cc7b7=0x0;_0x4cc7b7<_0x3cf2f7[_0xd65868][_0x3f6451('0x4b')];_0x4cc7b7+=0x1){switch(_0xd65868){case 0x0:joinOrLeaveQueues(_0x44fbaf,_0x48da73,_0x3f6451('0x46'),_0x3cf2f7[_0xd65868][_0x4cc7b7]);break;case 0x1:joinOrLeaveQueues(_0x44fbaf,_0x48da73,_0x3f6451('0x59'),_0x3cf2f7[_0xd65868][_0x4cc7b7]);break;case 0x2:joinOrLeaveQueues(_0x44fbaf,_0x48da73,_0x3f6451('0x7'),_0x3cf2f7[_0xd65868][_0x4cc7b7]);break;case 0x3:joinOrLeaveQueues(_0x44fbaf,_0x48da73,_0x3f6451('0x61'),_0x3cf2f7[_0xd65868][_0x4cc7b7]);break;case 0x4:joinOrLeaveQueues(_0x44fbaf,_0x48da73,_0x3f6451('0x3a'),_0x3cf2f7[_0xd65868][_0x4cc7b7]);break;case 0x5:joinOrLeaveQueues(_0x44fbaf,_0x48da73,_0x3f6451('0x13'),_0x3cf2f7[_0xd65868][_0x4cc7b7]);break;case 0x6:joinOrLeaveQueues(_0x44fbaf,_0x48da73,_0x3f6451('0x63'),_0x3cf2f7[_0xd65868][_0x4cc7b7]);break;case 0x7:_0x44fbaf[_0x48da73](util[_0x3f6451('0x67')](_0x3f6451('0x2'),_0x3cf2f7[_0xd65868][_0x4cc7b7][_0x3f6451('0x64')]));break;case 0x8:_0x44fbaf[_0x48da73](util['format'](_0x3f6451('0x4f'),_0x3cf2f7[_0xd65868][_0x4cc7b7][_0x3f6451('0x64')]));break;case 0x9:_0x44fbaf[_0x48da73](util['format'](_0x3f6451('0x24'),_0x3cf2f7[_0xd65868][_0x4cc7b7]['type'],_0x3cf2f7[_0xd65868][_0x4cc7b7][_0x3f6451('0x64')]));break;case 0xa:_0x44fbaf[_0x48da73](util[_0x3f6451('0x67')](_0x3f6451('0x30'),_0x3cf2f7[_0xd65868][_0x4cc7b7][_0x3f6451('0x64')]));break;}}}})[_0x4929fb('0x1')](function(){const _0xef31d4=_0x4929fb;if(_0x48da73==='leave'){const _0x131d46=_[_0xef31d4('0x5f')](_0x26f444[_0xef31d4('0x58')],'id');return _0x26f444['removeChatInteractions'](_0x131d46)[_0xef31d4('0x1')](function(){const _0x25ceac=_0xef31d4;for(let _0x543476=0x0;_0x543476<_0x131d46[_0x25ceac('0x4b')];_0x543476+=0x1){_0x4dff05[_0x25ceac('0x56')](_0x25ceac('0x39'),{'ChatInteractionId':Number(_0x131d46[_0x543476]),'UserId':Number(_0x26f444['id'])});}});}})[_0x4929fb('0x1')](function(){const _0x6166c1=_0x4929fb;if(_0x48da73===_0x6166c1('0x38')){const _0x10f90e=_['map'](_0x26f444[_0x6166c1('0x2d')],'id');return _0x26f444[_0x6166c1('0xe')](_0x10f90e)[_0x6166c1('0x1')](function(){const _0xbbc219=_0x6166c1;for(let _0x2727e6=0x0;_0x2727e6<_0x10f90e['length'];_0x2727e6+=0x1){_0x4dff05['emit'](_0xbbc219('0x26'),{'MailInteractionId':Number(_0x10f90e[_0x2727e6]),'UserId':Number(_0x26f444['id'])});}});}})[_0x4929fb('0x1')](function(){const _0x591957=_0x4929fb;if(_0x48da73==='leave'){const _0x42814c=_[_0x591957('0x5f')](_0x26f444['FaxInteractions'],'id');return _0x26f444[_0x591957('0x17')](_0x42814c)[_0x591957('0x1')](function(){const _0x5d3dfc=_0x591957;for(let _0x2eaff4=0x0;_0x2eaff4<_0x42814c['length'];_0x2eaff4+=0x1){_0x4dff05[_0x5d3dfc('0x56')](_0x5d3dfc('0x33'),{'FaxInteractionId':Number(_0x42814c[_0x2eaff4]),'UserId':Number(_0x26f444['id'])});}});}})[_0x4929fb('0x1')](function(){const _0xdc5064=_0x4929fb;if(_0x48da73==='leave'){const _0x336d78=_['map'](_0x26f444[_0xdc5064('0x5b')],'id');return _0x26f444[_0xdc5064('0xb')](_0x336d78)[_0xdc5064('0x1')](function(){const _0xceb46a=_0xdc5064;for(let _0x8fc408=0x0;_0x8fc408<_0x336d78[_0xceb46a('0x4b')];_0x8fc408+=0x1){_0x4dff05['emit'](_0xceb46a('0x28'),{'SmsInteractionId':Number(_0x336d78[_0x8fc408]),'UserId':Number(_0x26f444['id'])});}});}})['then'](function(){const _0x207002=_0x4929fb;if(_0x48da73===_0x207002('0x38')){const _0x3badfb=_['map'](_0x26f444[_0x207002('0x68')],'id');return _0x26f444['removeOpenchannelInteractions'](_0x3badfb)[_0x207002('0x1')](function(){const _0x5230d3=_0x207002;for(let _0xd584e3=0x0;_0xd584e3<_0x3badfb[_0x5230d3('0x4b')];_0xd584e3+=0x1){_0x4dff05[_0x5230d3('0x56')](_0x5230d3('0x3'),{'OpenchannelInteractionId':Number(_0x3badfb[_0xd584e3]),'UserId':Number(_0x26f444['id'])});}});}})[_0x4929fb('0x1')](function(){const _0x289ab7=_0x4929fb;if(_0x48da73===_0x289ab7('0x38')){const _0xcc35d4=_[_0x289ab7('0x5f')](_0x26f444['WhatsappInteractions'],'id');return _0x26f444[_0x289ab7('0x34')](_0xcc35d4)[_0x289ab7('0x1')](function(){const _0x58fae9=_0x289ab7;for(let _0x2ddb46=0x0;_0x2ddb46<_0xcc35d4[_0x58fae9('0x4b')];_0x2ddb46+=0x1){_0x4dff05[_0x58fae9('0x56')](_0x58fae9('0x62'),{'WhatsappInteractionId':Number(_0xcc35d4[_0x2ddb46]),'UserId':Number(_0x26f444['id'])});}});}})[_0x4929fb('0x1f')](function(_0x294556){const _0x1112c8=_0x4929fb;_0x44fbaf[_0x1112c8('0xd')](_0x294556);});}function onDisconnect(_0x48d1d2,_0x122328){joinOrLeave(_0x48d1d2,'leave',_0x122328);}function onConnect(_0x2a8f31){const _0x411ec8=_0x459ecb;joinOrLeave(_0x2a8f31,_0x411ec8('0x4c'));}exports['default']=function(_0x7d8692){_0x7d8692['on']('connection',function(_0x2062ae){const _0x1b0d4e=a885_0x49d9;_0x2062ae[_0x1b0d4e('0x5')](0x0),_0x2062ae[_0x1b0d4e('0x2c')]=_0x2062ae[_0x1b0d4e('0x1e')][_0x1b0d4e('0x5c')]['remoteAddress']+':'+_0x2062ae[_0x1b0d4e('0x1e')][_0x1b0d4e('0x5c')][_0x1b0d4e('0x2f')],_0x2062ae[_0x1b0d4e('0x43')]=new Date(),_0x2062ae['log']=function(_0x5b42a8){const _0x48d79c=_0x1b0d4e;console[_0x48d79c('0xd')](_0x48d79c('0x41')+_0x2062ae[_0x48d79c('0x18')][_0x48d79c('0x64')]+'['+_0x2062ae[_0x48d79c('0x2c')]+']',_0x5b42a8);},_0x2062ae['on'](_0x1b0d4e('0x65'),function(){const _0x5275a8=_0x1b0d4e;onDisconnect(_0x2062ae,_0x7d8692),_0x2062ae['log'](_0x5275a8('0x48'));}),onConnect(_0x2062ae),_0x2062ae[_0x1b0d4e('0xd')](_0x1b0d4e('0xf'));});}; \ No newline at end of file +const a1047_0x3e96=['removeChatInteractions','WhatsappQueue','then','nsp','user_has_chat_interactions:remove','remoteAddress','length','ChatQueues','leave','findAll','getChatQueues','WhatsappInteraction','UserProfileResource','getVoiceQueues','userProfileId','role','Trunks','log','FaxQueues','../mysqldb','request','query','WhatsappInteractions','VoiceQueue','getOpenchannelQueues','findOne','MailInteraction','getSmsQueues','name','whatsapp','Trunk','connection','address','WhatsappQueues','user_has_fax_interactions:remove','ChatQueue','removeWhatsappInteractions','OpenchannelQueues','User','removeOpenchannelInteractions','format','join','ivr','agent','fax','openchannel','voice:outbound','UserProfileSection','ChatInteraction','where','removeSmsInteractions','OpenchannelInteraction','disconnect','getWhatsappQueues','emit','FaxInteraction','Campaign','VoiceQueues','getMailQueues','include','campaign:%s:%s','admin','voice','SmsQueues','util','ChatInteractions','OpenchannelQueue','Agents','IvrCampaigns','DISCONNECTED','Telephones','FaxInteractions','SmsInteractions','user:%s','user_has_whatsapp_interactions:remove','setMaxListeners','getFaxQueues','MailInteractions','lodash','map','resourceId','MailQueues','FaxQueue','SmsQueue','MailQueue','CONNECTED','SocketIO\x20','trunk:%s','voice:inbound','user_has_openchannel_interactions:remove','type','push','remotePort','undefined','user_has_sms_interactions:remove','telephone'];(function(_0x3e5732,_0x3d9dd8){const _0x3e9680=function(_0x472269){while(--_0x472269){_0x3e5732['push'](_0x3e5732['shift']());}};_0x3e9680(++_0x3d9dd8);}(a1047_0x3e96,0x1e6));const a1047_0x4722=function(_0x3e5732,_0x3d9dd8){_0x3e5732=_0x3e5732-0xab;let _0x3e9680=a1047_0x3e96[_0x3e5732];return _0x3e9680;};const a1047_0x28ff99=a1047_0x4722;'use strict';const _=require(a1047_0x28ff99(0xf3)),util=require(a1047_0x28ff99(0xe5)),{db}=require(a1047_0x28ff99(0xb8)),queryQueues={'attributes':['id','name'],'include':[{'as':a1047_0x28ff99(0xe8),'model':db[a1047_0x28ff99(0xcb)],'attributes':['id',a1047_0x28ff99(0xc1),'role'],'raw':!![],'where':{'role':a1047_0x28ff99(0xd0)},'required':![]}]},queryTelephones={'raw':!![],'attributes':['id','name'],'where':{'role':a1047_0x28ff99(0x104)}},queryTrunks={'raw':!![],'attributes':['id',a1047_0x28ff99(0xc1)]},queryAgents={'raw':!![],'attributes':['id',a1047_0x28ff99(0xc1)],'where':{'role':a1047_0x28ff99(0xd0)}},queryCampaigns={'raw':!![],'attributes':['id','name',a1047_0x28ff99(0xff)],'where':{'type':a1047_0x28ff99(0xcf)}};function getAssociatedResources(_0x1e22f4,_0x1453c3,_0x791fea){const _0x526cd7=a1047_0x28ff99;return db[_0x526cd7(0xd4)][_0x526cd7(0xbe)]({'where':{'name':_0x1e22f4,'userProfileId':_0x1453c3},'raw':!![]})[_0x526cd7(0x107)](function(_0x4e3e7c){const _0x58fc8e=_0x526cd7;if(_0x4e3e7c){if(_0x4e3e7c['autoAssociation']){let _0xcf369d;switch(_0x1e22f4){case _0x58fc8e(0xde):case _0x58fc8e(0xac):case'FaxQueues':case _0x58fc8e(0xe4):case _0x58fc8e(0xf6):case _0x58fc8e(0xca):case _0x58fc8e(0xc6):_0xcf369d=queryQueues;break;case _0x58fc8e(0xeb):_0xcf369d=queryTelephones;break;case _0x58fc8e(0xb5):_0xcf369d=queryTrunks;break;case _0x58fc8e(0xe9):_0xcf369d=queryCampaigns;break;default:break;}return _0xcf369d?db[_0x791fea][_0x58fc8e(0xae)](_0xcf369d):_0xcf369d;}else return db[_0x58fc8e(0xb1)]['findAll']({'attributes':[_0x58fc8e(0xf5)],'where':{'sectionId':_0x4e3e7c['id']},'raw':!![]})[_0x58fc8e(0x107)](function(_0x57a6ea){const _0x1b1592=_0x58fc8e;if(_0x57a6ea){const _0x22bbe8={'where':{'id':_[_0x1b1592(0xf4)](_0x57a6ea,_0x1b1592(0xf5))},'raw':!![]};switch(_0x791fea){case'User':_0x22bbe8[_0x1b1592(0xd6)][_0x1b1592(0xb4)]=_0x1b1592(0x104);break;case'Campaign':_0x22bbe8[_0x1b1592(0xd6)][_0x1b1592(0xff)]=_0x1b1592(0xcf);break;}return db[_0x791fea][_0x1b1592(0xae)](_0x22bbe8);}else return[];});}else return[];})[_0x526cd7(0x107)](function(_0x138727){return _0x138727;});}function joinOrLeaveQueues(_0x31d206,_0x4361ff,_0x5c744c,_0x202ada){const _0x44e5de=a1047_0x28ff99;_0x31d206[_0x4361ff](util['format']('%s:queue:%s',_0x5c744c,_0x202ada[_0x44e5de(0xc1)]));if(_0x202ada['Agents'])for(let _0x209aed=0x0;_0x209aed<_0x202ada[_0x44e5de(0xe8)]['length'];_0x209aed+=0x1){_0x31d206[_0x4361ff](util[_0x44e5de(0xcd)]('user:%s',_0x202ada[_0x44e5de(0xe8)][_0x209aed][_0x44e5de(0xc1)]));}}function joinOrLeave(_0x4a7e74,_0x4432af,_0x477e53){const _0x516acf=a1047_0x28ff99;let _0x240b88;_0x4a7e74['handshake'][_0x516acf(0xba)]['id']&&db[_0x516acf(0xcb)][_0x516acf(0xbe)]({'attributes':['id','name',_0x516acf(0xb4),'userProfileId'],'where':{'id':_0x4a7e74['handshake'][_0x516acf(0xba)]['id']},'include':[{'model':db[_0x516acf(0xd5)],'as':'ChatInteractions','attributes':['id'],'raw':!![]},{'model':db[_0x516acf(0xbf)],'as':'MailInteractions','attributes':['id'],'raw':!![]},{'model':db[_0x516acf(0xdc)],'as':_0x516acf(0xec),'attributes':['id'],'raw':!![]},{'model':db['SmsInteraction'],'as':'SmsInteractions','attributes':['id'],'raw':!![]},{'model':db[_0x516acf(0xd8)],'as':'OpenchannelInteractions','attributes':['id'],'raw':!![]},{'model':db[_0x516acf(0xb0)],'as':_0x516acf(0xbb),'attributes':['id'],'raw':!![]}]})[_0x516acf(0x107)](function(_0x1127ad){const _0x55047c=_0x516acf;if(_0x1127ad){_0x240b88=_0x1127ad,_0x4a7e74[_0x4432af](util[_0x55047c(0xcd)](_0x55047c(0xee),_0x1127ad[_0x55047c(0xc1)]));const _0x1255c8=[];switch(_0x1127ad[_0x55047c(0xb4)]){case _0x55047c(0xe2):_0x4a7e74[_0x4432af]('voice:inbound'),_0x4a7e74[_0x4432af]('voice:outbound');typeof queryQueues[_0x55047c(0xe0)]!==_0x55047c(0x102)&&delete queryQueues[_0x55047c(0xe0)];_0x1255c8[_0x55047c(0x100)](db[_0x55047c(0xbc)][_0x55047c(0xae)](queryQueues)),_0x1255c8[_0x55047c(0x100)](db['ChatQueue'][_0x55047c(0xae)](queryQueues)),_0x1255c8['push'](db[_0x55047c(0xf7)][_0x55047c(0xae)](queryQueues)),_0x1255c8[_0x55047c(0x100)](db[_0x55047c(0xf8)][_0x55047c(0xae)](queryQueues)),_0x1255c8[_0x55047c(0x100)](db['MailQueue']['findAll'](queryQueues)),_0x1255c8['push'](db[_0x55047c(0xe7)][_0x55047c(0xae)](queryQueues)),_0x1255c8[_0x55047c(0x100)](db[_0x55047c(0x106)][_0x55047c(0xae)](queryQueues)),_0x1255c8[_0x55047c(0x100)](db[_0x55047c(0xcb)]['findAll'](queryTelephones)),_0x1255c8['push'](db[_0x55047c(0xc3)][_0x55047c(0xae)](queryTrunks)),_0x1255c8[_0x55047c(0x100)](db[_0x55047c(0xdd)][_0x55047c(0xae)](queryCampaigns)),_0x1255c8[_0x55047c(0x100)](db[_0x55047c(0xcb)][_0x55047c(0xae)](queryAgents));break;case'user':_0x4a7e74[_0x4432af]('voice:inbound'),_0x4a7e74[_0x4432af](_0x55047c(0xd3)),_0x1255c8[_0x55047c(0x100)](getAssociatedResources('VoiceQueues',_0x1127ad[_0x55047c(0xb3)],_0x55047c(0xbc))),_0x1255c8[_0x55047c(0x100)](getAssociatedResources('ChatQueues',_0x1127ad[_0x55047c(0xb3)],_0x55047c(0xc8))),_0x1255c8[_0x55047c(0x100)](getAssociatedResources(_0x55047c(0xb7),_0x1127ad[_0x55047c(0xb3)],_0x55047c(0xf7))),_0x1255c8[_0x55047c(0x100)](getAssociatedResources(_0x55047c(0xe4),_0x1127ad[_0x55047c(0xb3)],_0x55047c(0xf8))),_0x1255c8[_0x55047c(0x100)](getAssociatedResources(_0x55047c(0xf6),_0x1127ad[_0x55047c(0xb3)],_0x55047c(0xf9))),_0x1255c8[_0x55047c(0x100)](getAssociatedResources(_0x55047c(0xca),_0x1127ad['userProfileId'],_0x55047c(0xe7))),_0x1255c8['push'](getAssociatedResources(_0x55047c(0xc6),_0x1127ad[_0x55047c(0xb3)],_0x55047c(0x106))),_0x1255c8[_0x55047c(0x100)](getAssociatedResources(_0x55047c(0xeb),_0x1127ad['userProfileId'],_0x55047c(0xcb))),_0x1255c8[_0x55047c(0x100)](getAssociatedResources('Trunks',_0x1127ad[_0x55047c(0xb3)],_0x55047c(0xc3))),_0x1255c8[_0x55047c(0x100)](getAssociatedResources(_0x55047c(0xe9),_0x1127ad[_0x55047c(0xb3)],_0x55047c(0xdd))),_0x1255c8[_0x55047c(0x100)](db[_0x55047c(0xcb)]['findAll'](queryAgents));break;case _0x55047c(0xd0):_0x4a7e74[_0x4432af](_0x55047c(0xfd)),_0x4a7e74[_0x4432af](_0x55047c(0xd3)),_0x1255c8[_0x55047c(0x100)](_0x1127ad[_0x55047c(0xb2)]({'attributes':['id',_0x55047c(0xc1)]})),_0x1255c8[_0x55047c(0x100)](_0x1127ad[_0x55047c(0xaf)]({'attributes':['id','name']})),_0x1255c8['push'](_0x1127ad[_0x55047c(0xf1)]({'attributes':['id',_0x55047c(0xc1)]})),_0x1255c8[_0x55047c(0x100)](_0x1127ad[_0x55047c(0xc0)]({'attributes':['id',_0x55047c(0xc1)]})),_0x1255c8['push'](_0x1127ad[_0x55047c(0xdf)]({'attributes':['id',_0x55047c(0xc1)]})),_0x1255c8[_0x55047c(0x100)](_0x1127ad[_0x55047c(0xbd)]({'attributes':['id',_0x55047c(0xc1)]})),_0x1255c8['push'](_0x1127ad[_0x55047c(0xda)]({'attributes':['id',_0x55047c(0xc1)]}));break;}return Promise['all'](_0x1255c8);}})[_0x516acf(0x107)](function(_0x207f2b){const _0x195f47=_0x516acf;if(_0x207f2b&&_0x207f2b[_0x195f47(0xab)])for(let _0x164c1c=0x0;_0x164c1c<_0x207f2b['length'];_0x164c1c+=0x1){for(let _0x3d7f38=0x0;_0x3d7f38<_0x207f2b[_0x164c1c][_0x195f47(0xab)];_0x3d7f38+=0x1){switch(_0x164c1c){case 0x0:joinOrLeaveQueues(_0x4a7e74,_0x4432af,_0x195f47(0xe3),_0x207f2b[_0x164c1c][_0x3d7f38]);break;case 0x1:joinOrLeaveQueues(_0x4a7e74,_0x4432af,'chat',_0x207f2b[_0x164c1c][_0x3d7f38]);break;case 0x2:joinOrLeaveQueues(_0x4a7e74,_0x4432af,_0x195f47(0xd1),_0x207f2b[_0x164c1c][_0x3d7f38]);break;case 0x3:joinOrLeaveQueues(_0x4a7e74,_0x4432af,'sms',_0x207f2b[_0x164c1c][_0x3d7f38]);break;case 0x4:joinOrLeaveQueues(_0x4a7e74,_0x4432af,'mail',_0x207f2b[_0x164c1c][_0x3d7f38]);break;case 0x5:joinOrLeaveQueues(_0x4a7e74,_0x4432af,_0x195f47(0xd2),_0x207f2b[_0x164c1c][_0x3d7f38]);break;case 0x6:joinOrLeaveQueues(_0x4a7e74,_0x4432af,_0x195f47(0xc2),_0x207f2b[_0x164c1c][_0x3d7f38]);break;case 0x7:_0x4a7e74[_0x4432af](util['format']('telephone:%s',_0x207f2b[_0x164c1c][_0x3d7f38]['name']));break;case 0x8:_0x4a7e74[_0x4432af](util[_0x195f47(0xcd)](_0x195f47(0xfc),_0x207f2b[_0x164c1c][_0x3d7f38][_0x195f47(0xc1)]));break;case 0x9:_0x4a7e74[_0x4432af](util[_0x195f47(0xcd)](_0x195f47(0xe1),_0x207f2b[_0x164c1c][_0x3d7f38][_0x195f47(0xff)],_0x207f2b[_0x164c1c][_0x3d7f38][_0x195f47(0xc1)]));break;case 0xa:_0x4a7e74[_0x4432af](util[_0x195f47(0xcd)](_0x195f47(0xee),_0x207f2b[_0x164c1c][_0x3d7f38][_0x195f47(0xc1)]));break;}}}})[_0x516acf(0x107)](function(){const _0x939b22=_0x516acf;if(_0x4432af===_0x939b22(0xad)){const _0x7da9ee=_[_0x939b22(0xf4)](_0x240b88[_0x939b22(0xe6)],'id');return _0x240b88[_0x939b22(0x105)](_0x7da9ee)[_0x939b22(0x107)](function(){const _0x56301a=_0x939b22;for(let _0x57b983=0x0;_0x57b983<_0x7da9ee[_0x56301a(0xab)];_0x57b983+=0x1){_0x477e53[_0x56301a(0xdb)](_0x56301a(0x109),{'ChatInteractionId':Number(_0x7da9ee[_0x57b983]),'UserId':Number(_0x240b88['id'])});}});}})[_0x516acf(0x107)](function(){const _0x16a4eb=_0x516acf;if(_0x4432af==='leave'){const _0x24256d=_[_0x16a4eb(0xf4)](_0x240b88[_0x16a4eb(0xf2)],'id');return _0x240b88['removeMailInteractions'](_0x24256d)[_0x16a4eb(0x107)](function(){const _0x49dd31=_0x16a4eb;for(let _0x77bc1f=0x0;_0x77bc1f<_0x24256d[_0x49dd31(0xab)];_0x77bc1f+=0x1){_0x477e53[_0x49dd31(0xdb)]('user_has_mail_interactions:remove',{'MailInteractionId':Number(_0x24256d[_0x77bc1f]),'UserId':Number(_0x240b88['id'])});}});}})[_0x516acf(0x107)](function(){const _0x1f019f=_0x516acf;if(_0x4432af===_0x1f019f(0xad)){const _0x1a4f18=_[_0x1f019f(0xf4)](_0x240b88[_0x1f019f(0xec)],'id');return _0x240b88['removeFaxInteractions'](_0x1a4f18)[_0x1f019f(0x107)](function(){const _0x38c3af=_0x1f019f;for(let _0xaec229=0x0;_0xaec229<_0x1a4f18[_0x38c3af(0xab)];_0xaec229+=0x1){_0x477e53['emit'](_0x38c3af(0xc7),{'FaxInteractionId':Number(_0x1a4f18[_0xaec229]),'UserId':Number(_0x240b88['id'])});}});}})[_0x516acf(0x107)](function(){const _0x2d50ab=_0x516acf;if(_0x4432af===_0x2d50ab(0xad)){const _0x4fdf0e=_[_0x2d50ab(0xf4)](_0x240b88[_0x2d50ab(0xed)],'id');return _0x240b88[_0x2d50ab(0xd7)](_0x4fdf0e)[_0x2d50ab(0x107)](function(){const _0x720775=_0x2d50ab;for(let _0x283c3c=0x0;_0x283c3c<_0x4fdf0e[_0x720775(0xab)];_0x283c3c+=0x1){_0x477e53[_0x720775(0xdb)](_0x720775(0x103),{'SmsInteractionId':Number(_0x4fdf0e[_0x283c3c]),'UserId':Number(_0x240b88['id'])});}});}})['then'](function(){const _0x5d6bdd=_0x516acf;if(_0x4432af==='leave'){const _0x4b7c85=_['map'](_0x240b88['OpenchannelInteractions'],'id');return _0x240b88[_0x5d6bdd(0xcc)](_0x4b7c85)[_0x5d6bdd(0x107)](function(){const _0x3f1128=_0x5d6bdd;for(let _0x30073b=0x0;_0x30073b<_0x4b7c85[_0x3f1128(0xab)];_0x30073b+=0x1){_0x477e53[_0x3f1128(0xdb)](_0x3f1128(0xfe),{'OpenchannelInteractionId':Number(_0x4b7c85[_0x30073b]),'UserId':Number(_0x240b88['id'])});}});}})[_0x516acf(0x107)](function(){const _0x488c9b=_0x516acf;if(_0x4432af===_0x488c9b(0xad)){const _0x2653b5=_[_0x488c9b(0xf4)](_0x240b88[_0x488c9b(0xbb)],'id');return _0x240b88[_0x488c9b(0xc9)](_0x2653b5)[_0x488c9b(0x107)](function(){const _0x4ee543=_0x488c9b;for(let _0x502447=0x0;_0x502447<_0x2653b5[_0x4ee543(0xab)];_0x502447+=0x1){_0x477e53['emit'](_0x4ee543(0xef),{'WhatsappInteractionId':Number(_0x2653b5[_0x502447]),'UserId':Number(_0x240b88['id'])});}});}})['catch'](function(_0x20b466){_0x4a7e74['log'](_0x20b466);});}function onDisconnect(_0x4fbd58,_0x139f42){const _0x1cd9fd=a1047_0x28ff99;joinOrLeave(_0x4fbd58,_0x1cd9fd(0xad),_0x139f42);}function onConnect(_0x21975c){const _0x1bb34d=a1047_0x28ff99;joinOrLeave(_0x21975c,_0x1bb34d(0xce));}exports['default']=function(_0x2d0e17){_0x2d0e17['on']('connection',function(_0xbd1a01){const _0xa7c605=a1047_0x4722;_0xbd1a01[_0xa7c605(0xf0)](0x0),_0xbd1a01[_0xa7c605(0xc5)]=_0xbd1a01[_0xa7c605(0xb9)][_0xa7c605(0xc4)][_0xa7c605(0x10a)]+':'+_0xbd1a01[_0xa7c605(0xb9)][_0xa7c605(0xc4)][_0xa7c605(0x101)],_0xbd1a01['connectedAt']=new Date(),_0xbd1a01['log']=function(_0x162836){const _0x39ebee=_0xa7c605;console['log'](_0x39ebee(0xfb)+_0xbd1a01[_0x39ebee(0x108)][_0x39ebee(0xc1)]+'['+_0xbd1a01[_0x39ebee(0xc5)]+']',_0x162836);},_0xbd1a01['on'](_0xa7c605(0xd9),function(){const _0x41e10d=_0xa7c605;onDisconnect(_0xbd1a01,_0x2d0e17),_0xbd1a01[_0x41e10d(0xb6)](_0x41e10d(0xea));}),onConnect(_0xbd1a01),_0xbd1a01[_0xa7c605(0xb6)](_0xa7c605(0xfa));});}; \ No newline at end of file diff --git a/server/config/triggers/index.js b/server/config/triggers/index.js index 748c288..0311f1a 100644 --- a/server/config/triggers/index.js +++ b/server/config/triggers/index.js @@ -1 +1 @@ -const a886_0x2bf1=['closed','format','WhatsappMessage','event','Sms','toLowerCase','../logger','direction','UserId','../../mysqldb','User','SIP/%s','SmsInteraction','Chat','length','Whatsapp','addHook','undefined','default','channel','Mail','OpenchannelInteraction','newmessage','jayson/promise','then','Openchannel','WhatsappInteraction','MailMessage','OpenchannelMessage','http','util','EventManager','afterCreate','MailInteraction','SmsMessage','client','Fax','findOne','newinteraction','Trigger,\x20%s','opened','error','condition','name','incomingmessage','ChatMessage','catch','ChatInteraction','afterUpdate','get','FaxInteraction','FaxMessage','closedinteraction','interface'];(function(_0x326c1c,_0x2bf197){const _0x2169a1=function(_0x383807){while(--_0x383807){_0x326c1c['push'](_0x326c1c['shift']());}};_0x2169a1(++_0x2bf197);}(a886_0x2bf1,0x19f));const a886_0x2169=function(_0x326c1c,_0x2bf197){_0x326c1c=_0x326c1c-0x0;let _0x2169a1=a886_0x2bf1[_0x326c1c];return _0x2169a1;};const _0x54e0d9=a886_0x2169;'use strict';const util=require(_0x54e0d9('0x2f')),db=require(_0x54e0d9('0x1a'))['db'],jayson=require(_0x54e0d9('0x28')),logger=require(_0x54e0d9('0x17'))('triggers'),client=jayson[_0x54e0d9('0x34')][_0x54e0d9('0x2e')]({'port':0x232a}),triggers=[{'channel':_0x54e0d9('0x1e'),'model':_0x54e0d9('0xa'),'event':_0x54e0d9('0x31'),'condition':_0x54e0d9('0x1'),'callback':afterCreate},{'channel':_0x54e0d9('0x1e'),'model':_0x54e0d9('0xa'),'event':'afterUpdate','condition':_0x54e0d9('0xf'),'callback':afterUpdate},{'channel':_0x54e0d9('0x1e'),'model':_0x54e0d9('0x8'),'event':_0x54e0d9('0x31'),'condition':_0x54e0d9('0x27'),'callback':afterCreateMessage},{'channel':_0x54e0d9('0x15'),'model':'SmsInteraction','event':_0x54e0d9('0x31'),'condition':_0x54e0d9('0x1'),'callback':afterCreate},{'channel':'Sms','model':_0x54e0d9('0x1d'),'event':_0x54e0d9('0xb'),'condition':_0x54e0d9('0xf'),'callback':afterUpdate},{'channel':_0x54e0d9('0x15'),'model':_0x54e0d9('0x33'),'event':_0x54e0d9('0x31'),'condition':_0x54e0d9('0x27'),'callback':afterCreateMessage},{'channel':'Whatsapp','model':_0x54e0d9('0x2b'),'event':'afterCreate','condition':_0x54e0d9('0x1'),'callback':afterCreate},{'channel':_0x54e0d9('0x20'),'model':_0x54e0d9('0x2b'),'event':'afterUpdate','condition':_0x54e0d9('0xf'),'callback':afterUpdate},{'channel':_0x54e0d9('0x20'),'model':_0x54e0d9('0x13'),'event':_0x54e0d9('0x31'),'condition':_0x54e0d9('0x27'),'callback':afterCreateMessage},{'channel':_0x54e0d9('0x35'),'model':_0x54e0d9('0xd'),'event':_0x54e0d9('0x31'),'condition':_0x54e0d9('0x1'),'callback':afterCreate},{'channel':_0x54e0d9('0x35'),'model':_0x54e0d9('0xd'),'event':_0x54e0d9('0xb'),'condition':'closedinteraction','callback':afterUpdate},{'channel':_0x54e0d9('0x35'),'model':_0x54e0d9('0xe'),'event':_0x54e0d9('0x31'),'condition':_0x54e0d9('0x27'),'callback':afterCreateMessage},{'channel':_0x54e0d9('0x25'),'model':_0x54e0d9('0x32'),'event':_0x54e0d9('0x31'),'condition':_0x54e0d9('0x1'),'callback':afterCreate},{'channel':_0x54e0d9('0x25'),'model':_0x54e0d9('0x32'),'event':_0x54e0d9('0xb'),'condition':_0x54e0d9('0xf'),'callback':afterUpdate},{'channel':_0x54e0d9('0x25'),'model':_0x54e0d9('0x2c'),'event':_0x54e0d9('0x31'),'condition':'newmessage','callback':afterCreateMessage},{'channel':'Openchannel','model':_0x54e0d9('0x26'),'event':_0x54e0d9('0x31'),'condition':'newinteraction','callback':afterCreate},{'channel':_0x54e0d9('0x2a'),'model':_0x54e0d9('0x26'),'event':_0x54e0d9('0xb'),'condition':'closedinteraction','callback':afterUpdate},{'channel':_0x54e0d9('0x2a'),'model':_0x54e0d9('0x2d'),'event':_0x54e0d9('0x31'),'condition':'newmessage','callback':afterCreateMessage}];function request(_0x383807){const _0x5840b5=_0x54e0d9;return client['request'](_0x5840b5('0x30'),_0x383807)['then'](function(_0x26f0f0){const _0x3d5ee3=_0x5840b5;logger['info'](_0x3d5ee3('0x2'),'EventManager',_0x26f0f0),_0x26f0f0[_0x3d5ee3('0x4')]&&(_0x26f0f0[_0x3d5ee3('0x4')]['code']===0x1f4&&logger[_0x3d5ee3('0x4')](_0x3d5ee3('0x2'),_0x3d5ee3('0x30'),_0x26f0f0['error']));})[_0x5840b5('0x9')](function(_0x70a1f2){const _0x5dd07a=_0x5840b5;logger[_0x5dd07a('0x4')]('Trigger,\x20%s',_0x5dd07a('0x30'),_0x70a1f2);});}function afterCreateMessage(_0x4a15b6){return function(_0x4cf944){const _0x50b12b=a886_0x2169;return _0x4cf944=_0x4cf944[_0x50b12b('0xc')]({'plain':!![]}),_0x4cf944[_0x50b12b('0x24')]=_0x4a15b6,_0x4cf944[_0x50b12b('0x14')]=_0x4cf944[_0x50b12b('0x18')],_0x4cf944['UserId']?db[_0x50b12b('0x1b')]['findOne']({'where':{'id':_0x4cf944[_0x50b12b('0x19')]},'attributes':['id',_0x50b12b('0x6')],'raw':!![]})[_0x50b12b('0x29')](function(_0x1ba313){const _0x1ec82a=_0x50b12b;return _0x4cf944[_0x1ec82a('0x10')]=util[_0x1ec82a('0x12')]('SIP/%s',_0x1ba313[_0x1ec82a('0x6')]),_0x4cf944[_0x1ec82a('0x24')]=_0x4a15b6,request({'event':_0x1ec82a('0x7'),'message':_0x4cf944});})['catch'](function(_0x5a7d15){const _0x443f6d=_0x50b12b;console[_0x443f6d('0x4')](_0x5a7d15);}):request({'event':'outgoingmessage','message':_0x4cf944});};}function afterCreate(_0x2581bd,_0xc176ad){return function(_0x30e906){const _0x3139cd=a886_0x2169;return _0x30e906=_0x30e906['get']({'plain':!![]}),_0x30e906['channel']=_0x2581bd,_0x30e906[_0x3139cd('0x14')]=_0x3139cd('0x3'),request({'event':_0xc176ad,'message':_0x30e906});};}function afterUpdate(_0x1c7566,_0x288a80){return function(_0xa69bce){const _0x54956d=a886_0x2169;if(_0xa69bce['changed'](_0x54956d('0x11'))&&_0xa69bce['closed'])return _0xa69bce=_0xa69bce[_0x54956d('0xc')]({'plain':!![]}),_0xa69bce['channel']=_0x1c7566,_0xa69bce['event']='closed',_0xa69bce['UserId']?db[_0x54956d('0x1b')][_0x54956d('0x0')]({'where':{'id':_0xa69bce[_0x54956d('0x19')]},'attributes':['id',_0x54956d('0x6')],'raw':!![]})[_0x54956d('0x29')](function(_0x39352e){const _0x51f8f0=_0x54956d;return _0xa69bce[_0x51f8f0('0x10')]=util[_0x51f8f0('0x12')](_0x51f8f0('0x1c'),_0x39352e['name']),request({'event':_0x288a80,'message':_0xa69bce});})[_0x54956d('0x9')](function(_0x183ed2){const _0x49ba31=_0x54956d;console[_0x49ba31('0x4')](_0x183ed2);}):request({'event':_0x288a80,'message':_0xa69bce});};}exports[_0x54e0d9('0x23')]=function(){const _0xd540ce=_0x54e0d9;for(let _0x4277a9=0x0;_0x4277a9=_0x518322[_0x4f6b0f('0x10')])throw Error(_0x4f6b0f('0x12'));_0x242eab(_0x30d3aa);})[_0x406ad6('0xf')](function(_0x5e5606){_0x473560(_0x5e5606);});});}; \ No newline at end of file +const a1049_0x1c68=['agent','toLowerCase','includes','isValidChannel','catch','voice','role','lodash','./license/util','blockedAt','isUndefined','update','getLicense','sequelize','fax','User','agents','count','whatsapp','../mysqldb','openchannel','then'];(function(_0x4bbf50,_0x2cfd75){const _0x1c68d6=function(_0x1f2aa3){while(--_0x1f2aa3){_0x4bbf50['push'](_0x4bbf50['shift']());}};_0x1c68d6(++_0x2cfd75);}(a1049_0x1c68,0x191));const a1049_0x1f2a=function(_0x4bbf50,_0x2cfd75){_0x4bbf50=_0x4bbf50-0xcb;let _0x1c68d6=a1049_0x1c68[_0x4bbf50];return _0x1c68d6;};const a1049_0x21997a=a1049_0x1f2a;'use strict';const _=require(a1049_0x21997a(0xcd)),{db}=require(a1049_0x21997a(0xd9)),util=require(a1049_0x21997a(0xce)),{Op}=require(a1049_0x21997a(0xd3)),channels=[a1049_0x21997a(0xcb),'mail','chat',a1049_0x21997a(0xd4),'sms',a1049_0x21997a(0xd8),a1049_0x21997a(0xda)];exports['getChannels']=function(){return channels;},exports[a1049_0x21997a(0xdf)]=function(_0x6b5e2a){const _0x32d41e=a1049_0x21997a;return _0x6b5e2a=_0x6b5e2a[_0x32d41e(0xdd)](),_[_0x32d41e(0xde)](channels,_0x6b5e2a);},exports['clearBlockUser']=function(_0x501afd,_0x4c97db,_0x27f791,_0x458b7a){const _0x34086a=a1049_0x21997a,_0x4287ec={'loginAttempts':_0x4c97db,'blocked':_0x27f791};return!_[_0x34086a(0xd0)](_0x458b7a)&&(_0x4287ec[_0x34086a(0xcf)]=_0x458b7a),_0x501afd[_0x34086a(0xd1)](_0x4287ec);},exports[a1049_0x21997a(0xd2)]=function(_0x6536af){return new Promise(function(_0x35c4b0,_0x5e029e){const _0x2b42ef=a1049_0x1f2a;let _0x36898e=0x0;_0x6536af[_0x2b42ef(0xcc)]!==_0x2b42ef(0xdc)&&_0x35c4b0(_0x6536af),db[_0x2b42ef(0xd5)][_0x2b42ef(0xd7)]({'where':{'role':_0x2b42ef(0xdc),'online':!![],'id':{[Op['ne']]:_0x6536af['id']}}})['then'](function(_0x15074f){const _0x237b31=_0x2b42ef;return _0x36898e=_0x15074f,util[_0x237b31(0xd2)]();})[_0x2b42ef(0xdb)](function(_0x5eaf74){const _0x119e27=_0x2b42ef;if(_0x5eaf74&&_0x5eaf74[_0x119e27(0xd6)]&&_0x36898e>=_0x5eaf74['agents'])throw Error('Maximum\x20login\x20has\x20been\x20reached');_0x35c4b0(_0x6536af);})[_0x2b42ef(0xe0)](function(_0xd526b4){_0x5e029e(_0xd526b4);});});}; \ No newline at end of file diff --git a/server/errors/index.js b/server/errors/index.js index 7cb0b1b..105a611 100644 --- a/server/errors/index.js +++ b/server/errors/index.js @@ -1 +1 @@ -const a888_0x45a8=['json','exports','render','404','status'];(function(_0x4b9662,_0x45a85b){const _0x4bc8e0=function(_0x81fb4e){while(--_0x81fb4e){_0x4b9662['push'](_0x4b9662['shift']());}};_0x4bc8e0(++_0x45a85b);}(a888_0x45a8,0x155));const a888_0x4bc8=function(_0x4b9662,_0x45a85b){_0x4b9662=_0x4b9662-0x0;let _0x4bc8e0=a888_0x45a8[_0x4b9662];return _0x4bc8e0;};const _0xeca00e=a888_0x4bc8;'use strict';module[_0xeca00e('0x0')][0x194]=function pageNotFound(_0x81fb4e,_0x24872e){const _0x5f2c8e=_0xeca00e,_0x42dc3f=_0x5f2c8e('0x2'),_0x4dfefa=0x194,_0x3e5432={'status':_0x4dfefa};_0x24872e[_0x5f2c8e('0x3')](_0x3e5432[_0x5f2c8e('0x3')]),_0x24872e[_0x5f2c8e('0x1')](_0x42dc3f,{},function(_0x8e1760,_0xaa8e13){const _0x429753=_0x5f2c8e;if(_0x8e1760)return _0x24872e['status'](_0x3e5432[_0x429753('0x3')])[_0x429753('0x4')](_0x3e5432);_0x24872e['send'](_0xaa8e13);});}; \ No newline at end of file +const a1050_0x44c6=['404','render','exports','send','status','json'];(function(_0x1e95a1,_0x500040){const _0x44c604=function(_0x17be55){while(--_0x17be55){_0x1e95a1['push'](_0x1e95a1['shift']());}};_0x44c604(++_0x500040);}(a1050_0x44c6,0x147));const a1050_0x17be=function(_0x1e95a1,_0x500040){_0x1e95a1=_0x1e95a1-0x124;let _0x44c604=a1050_0x44c6[_0x1e95a1];return _0x44c604;};const a1050_0x5a54b5=a1050_0x17be;'use strict';module[a1050_0x5a54b5(0x129)][0x194]=function pageNotFound(_0xa771ed,_0x2ae3ba){const _0x3a83e7=a1050_0x5a54b5,_0x57accb=_0x3a83e7(0x127),_0x21d843=0x194,_0x2676ec={'status':_0x21d843};_0x2ae3ba['status'](_0x2676ec['status']),_0x2ae3ba[_0x3a83e7(0x128)](_0x57accb,{},function(_0x2d9ed8,_0x28cc48){const _0x2974b9=_0x3a83e7;if(_0x2d9ed8)return _0x2ae3ba[_0x2974b9(0x125)](_0x2676ec[_0x2974b9(0x125)])[_0x2974b9(0x126)](_0x2676ec);_0x2ae3ba[_0x2974b9(0x124)](_0x28cc48);});}; \ No newline at end of file diff --git a/server/globals.js b/server/globals.js index 42d7f22..03fa23f 100644 --- a/server/globals.js +++ b/server/globals.js @@ -1 +1 @@ -const a889_0x31be=['path','appRoot'];(function(_0x1bbc45,_0x31be4e){const _0x4dcb08=function(_0x397d89){while(--_0x397d89){_0x1bbc45['push'](_0x1bbc45['shift']());}};_0x4dcb08(++_0x31be4e);}(a889_0x31be,0x190));const a889_0x4dcb=function(_0x1bbc45,_0x31be4e){_0x1bbc45=_0x1bbc45-0x0;let _0x4dcb08=a889_0x31be[_0x1bbc45];return _0x4dcb08;};const _0x17c38a=a889_0x4dcb,path=require(_0x17c38a('0x0'));global[_0x17c38a('0x1')]=path['resolve'](__dirname); \ No newline at end of file +const a1051_0x5acb=['path','resolve'];(function(_0x158b6f,_0x511f51){const _0x5acb88=function(_0x1921fa){while(--_0x1921fa){_0x158b6f['push'](_0x158b6f['shift']());}};_0x5acb88(++_0x511f51);}(a1051_0x5acb,0x117));const a1051_0x1921=function(_0x158b6f,_0x511f51){_0x158b6f=_0x158b6f-0xca;let _0x5acb88=a1051_0x5acb[_0x158b6f];return _0x5acb88;};const a1051_0x5b7ca2=a1051_0x1921,path=require(a1051_0x5b7ca2(0xcb));global['appRoot']=path[a1051_0x5b7ca2(0xca)](__dirname); \ No newline at end of file diff --git a/server/migrations/2.0.13.js b/server/migrations/2.0.13.js index d1e7ed1..2049186 100644 --- a/server/migrations/2.0.13.js +++ b/server/migrations/2.0.13.js @@ -1 +1 @@ -const a891_0x4728=['deletedat','users','migration','deleted','exports','rescheduled','DATE','info','removeColumn','Removed\x20column\x20%s\x20from\x20%s','then','stringify','phoneBarRingInUse','reschedule','BOOLEAN','cm_hopper_final','catch','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','STRING','addColumn','renameColumn','../config/logger','queryInterface','prototype'];(function(_0x43e7f6,_0x47288d){const _0x27e4cf=function(_0x4baeb6){while(--_0x4baeb6){_0x43e7f6['push'](_0x43e7f6['shift']());}};_0x27e4cf(++_0x47288d);}(a891_0x4728,0x16e));const a891_0x27e4=function(_0x43e7f6,_0x47288d){_0x43e7f6=_0x43e7f6-0x0;let _0x27e4cf=a891_0x4728[_0x43e7f6];return _0x27e4cf;};const _0x5ad56a=a891_0x27e4;'use strict';const logger=require(_0x5ad56a('0xf'))(_0x5ad56a('0x14')),Migration=function(_0x4baeb6){const _0x27b0c9=_0x5ad56a;this[_0x27b0c9('0x10')]=_0x4baeb6;};Migration[_0x5ad56a('0x11')][_0x5ad56a('0xd')]=function(_0x49d14a,_0xd9ab6d,_0x297827){const _0x5a84b4=_0x5ad56a;return this[_0x5a84b4('0x10')][_0x5a84b4('0xd')](_0x49d14a,_0xd9ab6d,_0x297827)[_0x5a84b4('0x4')](function(){const _0x12c338=_0x5a84b4;logger[_0x12c338('0x1')]('Added\x20column\x20%s\x20to\x20%s',_0xd9ab6d,_0x49d14a);})[_0x5a84b4('0xa')](function(_0x5c9310){const _0x316698=_0x5a84b4;logger['info'](JSON[_0x316698('0x5')](_0x5c9310));});},Migration[_0x5ad56a('0x11')][_0x5ad56a('0x2')]=function(_0x354cb,_0x37dbb9){const _0x53d6cf=_0x5ad56a;return this[_0x53d6cf('0x10')]['removeColumn'](_0x354cb,_0x37dbb9)[_0x53d6cf('0x4')](function(){const _0xd6ffb7=_0x53d6cf;logger[_0xd6ffb7('0x1')](_0xd6ffb7('0x3'),_0x37dbb9,_0x354cb);})['catch'](function(_0x4f966e){const _0x22a715=_0x53d6cf;logger[_0x22a715('0x1')](JSON[_0x22a715('0x5')](_0x4f966e));});},Migration[_0x5ad56a('0x11')][_0x5ad56a('0xe')]=function(_0x2dee1f,_0x3d3ff7,_0x8cc4e){const _0x360ac3=_0x5ad56a;return this[_0x360ac3('0x10')]['renameColumn'](_0x2dee1f,_0x3d3ff7,_0x8cc4e)[_0x360ac3('0x4')](function(){const _0x33c2d5=_0x360ac3;logger[_0x33c2d5('0x1')](_0x33c2d5('0xb'),_0x3d3ff7,_0x8cc4e,_0x2dee1f);})[_0x360ac3('0xa')](function(_0x46b2fe){const _0x469428=_0x360ac3;logger[_0x469428('0x1')](JSON['stringify'](_0x46b2fe));});},module[_0x5ad56a('0x16')]={'up':function(_0x4932d3,_0xa7ea02){const _0x4fb912=_0x5ad56a,_0x42f3d5=new Migration(_0x4932d3);_0x42f3d5[_0x4fb912('0xd')](_0x4fb912('0x9'),'deletedat',{'type':_0xa7ea02[_0x4fb912('0x0')]}),_0x42f3d5[_0x4fb912('0xd')]('users',_0x4fb912('0x6'),{'type':_0xa7ea02[_0x4fb912('0x8')],'defaultValue':![]}),_0x42f3d5[_0x4fb912('0xd')](_0x4fb912('0x9'),_0x4fb912('0x15'),{'type':_0xa7ea02[_0x4fb912('0xc')],'defaultValue':null}),_0x42f3d5['renameColumn'](_0x4fb912('0x9'),'reschedule',_0x4fb912('0x17'));},'down':function(_0x599c62,_0x2fcca1){const _0x84f6da=_0x5ad56a,_0x38dd1a=new Migration(_0x599c62,_0x2fcca1);_0x38dd1a['removeColumn'](_0x84f6da('0x13'),_0x84f6da('0x6')),_0x38dd1a['removeColumn'](_0x84f6da('0x9'),_0x84f6da('0x12')),_0x38dd1a[_0x84f6da('0x2')](_0x84f6da('0x9'),_0x84f6da('0x15')),_0x38dd1a['renameColumn'](_0x84f6da('0x9'),_0x84f6da('0x17'),_0x84f6da('0x7'));}}; \ No newline at end of file +const a1053_0x3812=['Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','users','../config/logger','info','Removed\x20column\x20%s\x20from\x20%s','exports','rescheduled','deleted','then','removeColumn','Added\x20column\x20%s\x20to\x20%s','catch','queryInterface','stringify','migration','prototype','addColumn','cm_hopper_final','deletedat','renameColumn','reschedule','phoneBarRingInUse'];(function(_0xc988ba,_0xf1f196){const _0x38128c=function(_0x259be2){while(--_0x259be2){_0xc988ba['push'](_0xc988ba['shift']());}};_0x38128c(++_0xf1f196);}(a1053_0x3812,0x1ad));const a1053_0x259b=function(_0xc988ba,_0xf1f196){_0xc988ba=_0xc988ba-0x177;let _0x38128c=a1053_0x3812[_0xc988ba];return _0x38128c;};const a1053_0x23b400=a1053_0x259b;'use strict';const logger=require(a1053_0x23b400(0x184))(a1053_0x23b400(0x17a)),Migration=function(_0x31a4e6){const _0x11da04=a1053_0x23b400;this[_0x11da04(0x178)]=_0x31a4e6;};Migration[a1053_0x23b400(0x17b)]['addColumn']=function(_0x5f519b,_0x30acb8,_0x18385c){const _0x449c17=a1053_0x23b400;return this[_0x449c17(0x178)][_0x449c17(0x17c)](_0x5f519b,_0x30acb8,_0x18385c)['then'](function(){const _0x406c27=_0x449c17;logger[_0x406c27(0x185)](_0x406c27(0x18c),_0x30acb8,_0x5f519b);})[_0x449c17(0x177)](function(_0x4f5702){const _0x4679af=_0x449c17;logger[_0x4679af(0x185)](JSON[_0x4679af(0x179)](_0x4f5702));});},Migration['prototype'][a1053_0x23b400(0x18b)]=function(_0x4bb487,_0x4c6d49){const _0x506bfd=a1053_0x23b400;return this[_0x506bfd(0x178)]['removeColumn'](_0x4bb487,_0x4c6d49)[_0x506bfd(0x18a)](function(){const _0x488ce4=_0x506bfd;logger[_0x488ce4(0x185)](_0x488ce4(0x186),_0x4c6d49,_0x4bb487);})[_0x506bfd(0x177)](function(_0x51f28d){const _0x375274=_0x506bfd;logger[_0x375274(0x185)](JSON[_0x375274(0x179)](_0x51f28d));});},Migration[a1053_0x23b400(0x17b)][a1053_0x23b400(0x17f)]=function(_0x428249,_0x3de5ff,_0x50361b){const _0x1fdbc3=a1053_0x23b400;return this[_0x1fdbc3(0x178)][_0x1fdbc3(0x17f)](_0x428249,_0x3de5ff,_0x50361b)[_0x1fdbc3(0x18a)](function(){const _0xfbcc0b=_0x1fdbc3;logger[_0xfbcc0b(0x185)](_0xfbcc0b(0x182),_0x3de5ff,_0x50361b,_0x428249);})[_0x1fdbc3(0x177)](function(_0x290507){const _0x3d27bb=_0x1fdbc3;logger[_0x3d27bb(0x185)](JSON[_0x3d27bb(0x179)](_0x290507));});},module[a1053_0x23b400(0x187)]={'up':function(_0x5533a8,_0x5bd73){const _0x103b85=a1053_0x23b400,_0x23859a=new Migration(_0x5533a8);_0x23859a[_0x103b85(0x17c)](_0x103b85(0x17d),_0x103b85(0x17e),{'type':_0x5bd73['DATE']}),_0x23859a['addColumn'](_0x103b85(0x183),_0x103b85(0x181),{'type':_0x5bd73['BOOLEAN'],'defaultValue':![]}),_0x23859a['addColumn'](_0x103b85(0x17d),_0x103b85(0x189),{'type':_0x5bd73['STRING'],'defaultValue':null}),_0x23859a[_0x103b85(0x17f)]('cm_hopper_final',_0x103b85(0x180),_0x103b85(0x188));},'down':function(_0x11c139,_0x25bcf8){const _0x29403f=a1053_0x23b400,_0xf7d38b=new Migration(_0x11c139,_0x25bcf8);_0xf7d38b['removeColumn'](_0x29403f(0x183),_0x29403f(0x181)),_0xf7d38b[_0x29403f(0x18b)](_0x29403f(0x17d),_0x29403f(0x17e)),_0xf7d38b[_0x29403f(0x18b)]('cm_hopper_final',_0x29403f(0x189)),_0xf7d38b['renameColumn'](_0x29403f(0x17d),_0x29403f(0x188),_0x29403f(0x180));}}; \ No newline at end of file diff --git a/server/migrations/2.0.14.js b/server/migrations/2.0.14.js index de35dec..12143c4 100644 --- a/server/migrations/2.0.14.js +++ b/server/migrations/2.0.14.js @@ -1 +1 @@ -var a892_0x2484=['exports'];(function(_0x716f94,_0x24842c){var _0x2cffbf=function(_0x117546){while(--_0x117546){_0x716f94['push'](_0x716f94['shift']());}};_0x2cffbf(++_0x24842c);}(a892_0x2484,0x1ec));var a892_0x2cff=function(_0x716f94,_0x24842c){_0x716f94=_0x716f94-0x0;var _0x2cffbf=a892_0x2484[_0x716f94];return _0x2cffbf;};var _0x28a924=a892_0x2cff;'use strict';module[_0x28a924('0x0')]={'up':function(){},'down':function(){}}; \ No newline at end of file +'use strict';module['exports']={'up':function(){},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.0.15.js b/server/migrations/2.0.15.js index 6e38f2e..12143c4 100644 --- a/server/migrations/2.0.15.js +++ b/server/migrations/2.0.15.js @@ -1 +1 @@ -var a893_0x100d=['exports'];(function(_0x19c3f6,_0x100d57){var _0x5e189e=function(_0x14bf6a){while(--_0x14bf6a){_0x19c3f6['push'](_0x19c3f6['shift']());}};_0x5e189e(++_0x100d57);}(a893_0x100d,0x96));var a893_0x5e18=function(_0x19c3f6,_0x100d57){_0x19c3f6=_0x19c3f6-0x0;var _0x5e189e=a893_0x100d[_0x19c3f6];return _0x5e189e;};var _0x3f54e5=a893_0x5e18;'use strict';module[_0x3f54e5('0x0')]={'up':function(){},'down':function(){}}; \ No newline at end of file +'use strict';module['exports']={'up':function(){},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.0.16.js b/server/migrations/2.0.16.js index 9ef5947..63b5a43 100644 --- a/server/migrations/2.0.16.js +++ b/server/migrations/2.0.16.js @@ -1 +1 @@ -var a894_0x20b0=['exports'];(function(_0x3e0a3f,_0x20b019){var _0x32058c=function(_0x1a078a){while(--_0x1a078a){_0x3e0a3f['push'](_0x3e0a3f['shift']());}};_0x32058c(++_0x20b019);}(a894_0x20b0,0x1ea));var a894_0x3205=function(_0x3e0a3f,_0x20b019){_0x3e0a3f=_0x3e0a3f-0x0;var _0x32058c=a894_0x20b0[_0x3e0a3f];return _0x32058c;};var _0x38699b=a894_0x3205;'use strict';module[_0x38699b('0x0')]={'up':function(){},'down':function(){}}; \ No newline at end of file +var a1056_0x435e=['exports'];(function(_0x5b3d50,_0x3ffd8b){var _0x435e78=function(_0x30edf4){while(--_0x30edf4){_0x5b3d50['push'](_0x5b3d50['shift']());}};_0x435e78(++_0x3ffd8b);}(a1056_0x435e,0x6e));var a1056_0x30ed=function(_0x5b3d50,_0x3ffd8b){_0x5b3d50=_0x5b3d50-0x135;var _0x435e78=a1056_0x435e[_0x5b3d50];return _0x435e78;};var a1056_0x4c2c8e=a1056_0x30ed;'use strict';module[a1056_0x4c2c8e(0x135)]={'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 12143c4..32760fe 100644 --- a/server/migrations/2.0.17.js +++ b/server/migrations/2.0.17.js @@ -1 +1 @@ -'use strict';module['exports']={'up':function(){},'down':function(){}}; \ No newline at end of file +var a1057_0x3b64=['exports'];(function(_0x4ce98a,_0x2b00d9){var _0x3b64ed=function(_0x2867e7){while(--_0x2867e7){_0x4ce98a['push'](_0x4ce98a['shift']());}};_0x3b64ed(++_0x2b00d9);}(a1057_0x3b64,0x19b));var a1057_0x2867=function(_0x4ce98a,_0x2b00d9){_0x4ce98a=_0x4ce98a-0xf1;var _0x3b64ed=a1057_0x3b64[_0x4ce98a];return _0x3b64ed;};var a1057_0x1f6660=a1057_0x2867;'use strict';module[a1057_0x1f6660(0xf1)]={'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 32688a8..d1029a0 100644 --- a/server/migrations/2.0.18.js +++ b/server/migrations/2.0.18.js @@ -1 +1 @@ -var a896_0x22f2=['exports'];(function(_0x1692ff,_0x22f2e0){var _0x8298e8=function(_0x2c4895){while(--_0x2c4895){_0x1692ff['push'](_0x1692ff['shift']());}};_0x8298e8(++_0x22f2e0);}(a896_0x22f2,0x145));var a896_0x8298=function(_0x1692ff,_0x22f2e0){_0x1692ff=_0x1692ff-0x0;var _0x8298e8=a896_0x22f2[_0x1692ff];return _0x8298e8;};var _0x12d0be=a896_0x8298;'use strict';module[_0x12d0be('0x0')]={'up':function(){},'down':function(){}}; \ No newline at end of file +var a1058_0x3580=['exports'];(function(_0x202fd7,_0x287730){var _0x358081=function(_0x5729ca){while(--_0x5729ca){_0x202fd7['push'](_0x202fd7['shift']());}};_0x358081(++_0x287730);}(a1058_0x3580,0x1f3));var a1058_0x5729=function(_0x202fd7,_0x287730){_0x202fd7=_0x202fd7-0xe3;var _0x358081=a1058_0x3580[_0x202fd7];return _0x358081;};var a1058_0x3c9dd3=a1058_0x5729;'use strict';module[a1058_0x3c9dd3(0xe3)]={'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 b8a2603..6f787da 100644 --- a/server/migrations/2.0.19.js +++ b/server/migrations/2.0.19.js @@ -1 +1 @@ -var a897_0x4c67=['exports'];(function(_0x1140e4,_0x4c6712){var _0x413612=function(_0x2c42b7){while(--_0x2c42b7){_0x1140e4['push'](_0x1140e4['shift']());}};_0x413612(++_0x4c6712);}(a897_0x4c67,0x1ae));var a897_0x4136=function(_0x1140e4,_0x4c6712){_0x1140e4=_0x1140e4-0x0;var _0x413612=a897_0x4c67[_0x1140e4];return _0x413612;};var _0x1cfc94=a897_0x4136;'use strict';module[_0x1cfc94('0x0')]={'up':function(){},'down':function(){}}; \ No newline at end of file +var a1059_0x3ecb=['exports'];(function(_0x1243fb,_0x401d5e){var _0x3ecb5b=function(_0x24a6da){while(--_0x24a6da){_0x1243fb['push'](_0x1243fb['shift']());}};_0x3ecb5b(++_0x401d5e);}(a1059_0x3ecb,0xe9));var a1059_0x24a6=function(_0x1243fb,_0x401d5e){_0x1243fb=_0x1243fb-0x164;var _0x3ecb5b=a1059_0x3ecb[_0x1243fb];return _0x3ecb5b;};var a1059_0x32719c=a1059_0x24a6;'use strict';module[a1059_0x32719c(0x164)]={'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 30aadb2..7450fbf 100644 --- a/server/migrations/2.0.20.js +++ b/server/migrations/2.0.20.js @@ -1 +1 @@ -const a898_0x5ec5=['dropTable','migration','report_jscripty_sessions','queryInterface','jscripty_projects','stringify','report_jscripty_inputs','removeColumn','catch','Added\x20column\x20%s\x20to\x20%s','Removed\x20column\x20%s\x20from\x20%s','renameColumn','table\x20dropped\x20%s','prototype','../config/logger','addColumn','info','then'];(function(_0x14db3b,_0x5ec567){const _0x17f869=function(_0x203aa1){while(--_0x203aa1){_0x14db3b['push'](_0x14db3b['shift']());}};_0x17f869(++_0x5ec567);}(a898_0x5ec5,0x106));const a898_0x17f8=function(_0x14db3b,_0x5ec567){_0x14db3b=_0x14db3b-0x0;let _0x17f869=a898_0x5ec5[_0x14db3b];return _0x17f869;};const _0x5592a0=a898_0x17f8;'use strict';const logger=require(_0x5592a0('0x4'))(_0x5592a0('0x9')),Migration=function(_0x203aa1){this['queryInterface']=_0x203aa1;};Migration['prototype'][_0x5592a0('0x5')]=function(_0x4bc86b,_0x3fd2f6,_0x5665a1){const _0x4fb42b=_0x5592a0;return this[_0x4fb42b('0xb')][_0x4fb42b('0x5')](_0x4bc86b,_0x3fd2f6,_0x5665a1)[_0x4fb42b('0x7')](function(){const _0x1cf30c=_0x4fb42b;logger[_0x1cf30c('0x6')](_0x1cf30c('0x11'),_0x3fd2f6,_0x4bc86b);})[_0x4fb42b('0x10')](function(_0xe5cc4f){const _0x1c4e08=_0x4fb42b;logger[_0x1c4e08('0x6')](JSON[_0x1c4e08('0xd')](_0xe5cc4f));});},Migration['prototype'][_0x5592a0('0xf')]=function(_0x29d582,_0x54800a){const _0x5b521d=_0x5592a0;return this[_0x5b521d('0xb')][_0x5b521d('0xf')](_0x29d582,_0x54800a)[_0x5b521d('0x7')](function(){const _0x357516=_0x5b521d;logger[_0x357516('0x6')](_0x357516('0x0'),_0x54800a,_0x29d582);})[_0x5b521d('0x10')](function(_0x1419ec){const _0x586d11=_0x5b521d;logger[_0x586d11('0x6')](JSON['stringify'](_0x1419ec));});},Migration['prototype'][_0x5592a0('0x1')]=function(_0x14139b,_0x1f2b5a,_0x9d3870){const _0x44c9f8=_0x5592a0;return this['queryInterface'][_0x44c9f8('0x1')](_0x14139b,_0x1f2b5a,_0x9d3870)[_0x44c9f8('0x7')](function(){const _0x23e2d2=_0x44c9f8;logger[_0x23e2d2('0x6')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x1f2b5a,_0x9d3870,_0x14139b);})['catch'](function(_0x166eee){const _0x388dcb=_0x44c9f8;logger[_0x388dcb('0x6')](JSON[_0x388dcb('0xd')](_0x166eee));});},Migration[_0x5592a0('0x3')][_0x5592a0('0x8')]=function(_0x6935d7){const _0x61a81b=_0x5592a0;return this[_0x61a81b('0xb')][_0x61a81b('0x8')](_0x6935d7)[_0x61a81b('0x7')](function(){const _0x59e102=_0x61a81b;logger['info'](_0x59e102('0x2'),_0x6935d7);})[_0x61a81b('0x10')](function(_0x34d04e){const _0x537b1d=_0x61a81b;logger[_0x537b1d('0x6')](JSON[_0x537b1d('0xd')](_0x34d04e));});},module['exports']={'up':function(_0xbd8c7){const _0x3f288f=_0x5592a0,_0x4e1b56=new Migration(_0xbd8c7);_0x4e1b56['dropTable'](_0x3f288f('0xc')),_0x4e1b56[_0x3f288f('0x8')](_0x3f288f('0xe')),_0x4e1b56[_0x3f288f('0x8')]('report_jscripty_questions'),_0x4e1b56[_0x3f288f('0x8')](_0x3f288f('0xa'));},'down':function(){}}; \ No newline at end of file +const a1060_0x1a2a=['Added\x20column\x20%s\x20to\x20%s','catch','prototype','queryInterface','addColumn','Removed\x20column\x20%s\x20from\x20%s','../config/logger','report_jscripty_sessions','then','removeColumn','exports','migration','info','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','dropTable','report_jscripty_questions','renameColumn','stringify'];(function(_0x3b437c,_0x56ea02){const _0x1a2ada=function(_0x1f2d90){while(--_0x1f2d90){_0x3b437c['push'](_0x3b437c['shift']());}};_0x1a2ada(++_0x56ea02);}(a1060_0x1a2a,0x1c9));const a1060_0x1f2d=function(_0x3b437c,_0x56ea02){_0x3b437c=_0x3b437c-0xce;let _0x1a2ada=a1060_0x1a2a[_0x3b437c];return _0x1a2ada;};const a1060_0x1457ad=a1060_0x1f2d;'use strict';const logger=require(a1060_0x1457ad(0xdf))(a1060_0x1457ad(0xd2)),Migration=function(_0x1f5023){const _0x323de7=a1060_0x1457ad;this[_0x323de7(0xdc)]=_0x1f5023;};Migration['prototype'][a1060_0x1457ad(0xdd)]=function(_0x10091a,_0x5153a6,_0x3931ac){const _0x3ae698=a1060_0x1457ad;return this[_0x3ae698(0xdc)][_0x3ae698(0xdd)](_0x10091a,_0x5153a6,_0x3931ac)['then'](function(){const _0x517285=_0x3ae698;logger[_0x517285(0xd3)](_0x517285(0xd9),_0x5153a6,_0x10091a);})[_0x3ae698(0xda)](function(_0x26c61d){const _0x42fa68=_0x3ae698;logger[_0x42fa68(0xd3)](JSON[_0x42fa68(0xd8)](_0x26c61d));});},Migration[a1060_0x1457ad(0xdb)][a1060_0x1457ad(0xd0)]=function(_0x83126,_0x2881f4){const _0x2eb3f4=a1060_0x1457ad;return this[_0x2eb3f4(0xdc)][_0x2eb3f4(0xd0)](_0x83126,_0x2881f4)[_0x2eb3f4(0xcf)](function(){const _0x19cbf6=_0x2eb3f4;logger['info'](_0x19cbf6(0xde),_0x2881f4,_0x83126);})['catch'](function(_0x4bdeaf){const _0x2babbf=_0x2eb3f4;logger[_0x2babbf(0xd3)](JSON[_0x2babbf(0xd8)](_0x4bdeaf));});},Migration[a1060_0x1457ad(0xdb)][a1060_0x1457ad(0xd7)]=function(_0x52d87f,_0x3e553f,_0x1ff64e){const _0x5d3cda=a1060_0x1457ad;return this[_0x5d3cda(0xdc)]['renameColumn'](_0x52d87f,_0x3e553f,_0x1ff64e)[_0x5d3cda(0xcf)](function(){const _0x6aa446=_0x5d3cda;logger[_0x6aa446(0xd3)](_0x6aa446(0xd4),_0x3e553f,_0x1ff64e,_0x52d87f);})[_0x5d3cda(0xda)](function(_0x1ccee3){const _0x5618=_0x5d3cda;logger[_0x5618(0xd3)](JSON[_0x5618(0xd8)](_0x1ccee3));});},Migration[a1060_0x1457ad(0xdb)][a1060_0x1457ad(0xd5)]=function(_0x292dd8){const _0x4cc1bf=a1060_0x1457ad;return this[_0x4cc1bf(0xdc)][_0x4cc1bf(0xd5)](_0x292dd8)['then'](function(){logger['info']('table\x20dropped\x20%s',_0x292dd8);})['catch'](function(_0x2ef128){const _0x1aee75=_0x4cc1bf;logger[_0x1aee75(0xd3)](JSON['stringify'](_0x2ef128));});},module[a1060_0x1457ad(0xd1)]={'up':function(_0x335be4){const _0x3a27cb=a1060_0x1457ad,_0x80f70b=new Migration(_0x335be4);_0x80f70b['dropTable']('jscripty_projects'),_0x80f70b[_0x3a27cb(0xd5)]('report_jscripty_inputs'),_0x80f70b['dropTable'](_0x3a27cb(0xd6)),_0x80f70b[_0x3a27cb(0xd5)](_0x3a27cb(0xce));},'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 79aabb0..d48986d 100644 --- a/server/migrations/2.0.21.js +++ b/server/migrations/2.0.21.js @@ -1 +1 @@ -const a899_0x3fbc=['jscripty_projects','prototype','report_jscripty_questions','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','stringify','then','renameColumn','addColumn','removeColumn','../config/logger','dropTable','table\x20dropped\x20%s','info','Removed\x20column\x20%s\x20from\x20%s','migration','queryInterface','Added\x20column\x20%s\x20to\x20%s','exports','catch'];(function(_0x1fe494,_0x3fbca9){const _0x20e679=function(_0x37ed6f){while(--_0x37ed6f){_0x1fe494['push'](_0x1fe494['shift']());}};_0x20e679(++_0x3fbca9);}(a899_0x3fbc,0x13a));const a899_0x20e6=function(_0x1fe494,_0x3fbca9){_0x1fe494=_0x1fe494-0x0;let _0x20e679=a899_0x3fbc[_0x1fe494];return _0x20e679;};const _0x24cbd1=a899_0x20e6;'use strict';const logger=require(_0x24cbd1('0x12'))(_0x24cbd1('0x4')),Migration=function(_0x37ed6f){const _0x410faf=_0x24cbd1;this[_0x410faf('0x5')]=_0x37ed6f;};Migration[_0x24cbd1('0xa')][_0x24cbd1('0x10')]=function(_0x3c8563,_0x513a3c,_0x18cf1b){const _0x23cfcb=_0x24cbd1;return this[_0x23cfcb('0x5')][_0x23cfcb('0x10')](_0x3c8563,_0x513a3c,_0x18cf1b)['then'](function(){const _0x289058=_0x23cfcb;logger['info'](_0x289058('0x6'),_0x513a3c,_0x3c8563);})[_0x23cfcb('0x8')](function(_0x1b6c54){const _0x420028=_0x23cfcb;logger[_0x420028('0x2')](JSON[_0x420028('0xd')](_0x1b6c54));});},Migration['prototype'][_0x24cbd1('0x11')]=function(_0xdf5263,_0x5daa62){const _0x1c84c4=_0x24cbd1;return this[_0x1c84c4('0x5')]['removeColumn'](_0xdf5263,_0x5daa62)[_0x1c84c4('0xe')](function(){const _0xf56dc6=_0x1c84c4;logger[_0xf56dc6('0x2')](_0xf56dc6('0x3'),_0x5daa62,_0xdf5263);})[_0x1c84c4('0x8')](function(_0x2f111a){const _0x374dd8=_0x1c84c4;logger[_0x374dd8('0x2')](JSON[_0x374dd8('0xd')](_0x2f111a));});},Migration['prototype'][_0x24cbd1('0xf')]=function(_0x184e08,_0x46299e,_0x14f913){const _0x1d9067=_0x24cbd1;return this[_0x1d9067('0x5')][_0x1d9067('0xf')](_0x184e08,_0x46299e,_0x14f913)['then'](function(){const _0x5d7037=_0x1d9067;logger['info'](_0x5d7037('0xc'),_0x46299e,_0x14f913,_0x184e08);})['catch'](function(_0x492f43){const _0x4a041b=_0x1d9067;logger[_0x4a041b('0x2')](JSON[_0x4a041b('0xd')](_0x492f43));});},Migration[_0x24cbd1('0xa')][_0x24cbd1('0x0')]=function(_0x4685ba){const _0x91fc37=_0x24cbd1;return this['queryInterface']['dropTable'](_0x4685ba)[_0x91fc37('0xe')](function(){const _0x332f0b=_0x91fc37;logger[_0x332f0b('0x2')](_0x332f0b('0x1'),_0x4685ba);})[_0x91fc37('0x8')](function(_0x346335){const _0x2f5228=_0x91fc37;logger[_0x2f5228('0x2')](JSON[_0x2f5228('0xd')](_0x346335));});},module[_0x24cbd1('0x7')]={'up':function(_0x514d5d){const _0x219983=_0x24cbd1,_0x220c25=new Migration(_0x514d5d);_0x220c25[_0x219983('0x0')](_0x219983('0x9'),{'force':!![]}),_0x220c25[_0x219983('0x0')]('report_jscripty_inputs',{'force':!![]}),_0x220c25[_0x219983('0x0')](_0x219983('0xb'),{'force':!![]}),_0x220c25[_0x219983('0x0')]('report_jscripty_sessions',{'force':!![]});},'down':function(){}}; \ No newline at end of file +const a1061_0x7c96=['Added\x20column\x20%s\x20to\x20%s','renameColumn','table\x20dropped\x20%s','report_jscripty_questions','Removed\x20column\x20%s\x20from\x20%s','report_jscripty_sessions','report_jscripty_inputs','info','then','../config/logger','queryInterface','prototype','dropTable','catch','addColumn','stringify','migration','removeColumn'];(function(_0x1ab62d,_0x1781dd){const _0x7c960b=function(_0x4a0a0f){while(--_0x4a0a0f){_0x1ab62d['push'](_0x1ab62d['shift']());}};_0x7c960b(++_0x1781dd);}(a1061_0x7c96,0x1d8));const a1061_0x4a0a=function(_0x1ab62d,_0x1781dd){_0x1ab62d=_0x1ab62d-0xff;let _0x7c960b=a1061_0x7c96[_0x1ab62d];return _0x7c960b;};const a1061_0x24bc7f=a1061_0x4a0a;'use strict';const logger=require(a1061_0x24bc7f(0x104))(a1061_0x24bc7f(0x10b)),Migration=function(_0x5c9409){const _0x1bb244=a1061_0x24bc7f;this[_0x1bb244(0x105)]=_0x5c9409;};Migration['prototype']['addColumn']=function(_0x1311f4,_0x3791d0,_0x55680c){const _0x17a7d6=a1061_0x24bc7f;return this[_0x17a7d6(0x105)][_0x17a7d6(0x109)](_0x1311f4,_0x3791d0,_0x55680c)[_0x17a7d6(0x103)](function(){const _0x1a2cc9=_0x17a7d6;logger[_0x1a2cc9(0x102)](_0x1a2cc9(0x10d),_0x3791d0,_0x1311f4);})[_0x17a7d6(0x108)](function(_0x4ce42a){const _0x1e3e30=_0x17a7d6;logger[_0x1e3e30(0x102)](JSON[_0x1e3e30(0x10a)](_0x4ce42a));});},Migration[a1061_0x24bc7f(0x106)][a1061_0x24bc7f(0x10c)]=function(_0x3f5a8e,_0x105805){const _0x182727=a1061_0x24bc7f;return this['queryInterface'][_0x182727(0x10c)](_0x3f5a8e,_0x105805)[_0x182727(0x103)](function(){const _0x4e4351=_0x182727;logger['info'](_0x4e4351(0xff),_0x105805,_0x3f5a8e);})['catch'](function(_0x168074){const _0x56fe47=_0x182727;logger[_0x56fe47(0x102)](JSON[_0x56fe47(0x10a)](_0x168074));});},Migration[a1061_0x24bc7f(0x106)][a1061_0x24bc7f(0x10e)]=function(_0x1c1a02,_0x19b47e,_0x1cde58){const _0x3433e3=a1061_0x24bc7f;return this['queryInterface'][_0x3433e3(0x10e)](_0x1c1a02,_0x19b47e,_0x1cde58)[_0x3433e3(0x103)](function(){const _0x3938e3=_0x3433e3;logger[_0x3938e3(0x102)]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x19b47e,_0x1cde58,_0x1c1a02);})['catch'](function(_0xab1667){const _0x173d5d=_0x3433e3;logger['info'](JSON[_0x173d5d(0x10a)](_0xab1667));});},Migration['prototype'][a1061_0x24bc7f(0x107)]=function(_0xc216c6){const _0x58caec=a1061_0x24bc7f;return this[_0x58caec(0x105)][_0x58caec(0x107)](_0xc216c6)['then'](function(){const _0x5741f1=_0x58caec;logger[_0x5741f1(0x102)](_0x5741f1(0x10f),_0xc216c6);})[_0x58caec(0x108)](function(_0x519646){const _0x3e2dfa=_0x58caec;logger[_0x3e2dfa(0x102)](JSON['stringify'](_0x519646));});},module['exports']={'up':function(_0x59ecd8){const _0x7fc3e1=a1061_0x24bc7f,_0x32d59a=new Migration(_0x59ecd8);_0x32d59a[_0x7fc3e1(0x107)]('jscripty_projects',{'force':!![]}),_0x32d59a['dropTable'](_0x7fc3e1(0x101),{'force':!![]}),_0x32d59a[_0x7fc3e1(0x107)](_0x7fc3e1(0x110),{'force':!![]}),_0x32d59a[_0x7fc3e1(0x107)](_0x7fc3e1(0x100),{'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 525dcc3..00359fe 100644 --- a/server/migrations/2.0.22.js +++ b/server/migrations/2.0.22.js @@ -1 +1 @@ -const a900_0x5192=['prototype','queryInterface','report_jscripty_sessions','migration','report_jscripty_questions','dropTable','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','catch','then','stringify','removeColumn','report_jscripty_answers','addColumn','info','Removed\x20column\x20%s\x20from\x20%s'];(function(_0x40cf54,_0x519236){const _0x346ba6=function(_0x2ebfef){while(--_0x2ebfef){_0x40cf54['push'](_0x40cf54['shift']());}};_0x346ba6(++_0x519236);}(a900_0x5192,0x17e));const a900_0x346b=function(_0x40cf54,_0x519236){_0x40cf54=_0x40cf54-0x0;let _0x346ba6=a900_0x5192[_0x40cf54];return _0x346ba6;};const _0x524c62=a900_0x346b;'use strict';const logger=require('../config/logger')(_0x524c62('0xb')),Migration=function(_0x2ebfef){const _0x155bb8=_0x524c62;this[_0x155bb8('0x9')]=_0x2ebfef;};Migration[_0x524c62('0x8')][_0x524c62('0x5')]=function(_0x4079d9,_0x4b2bd4,_0x642ca4){const _0x58bcb8=_0x524c62;return this[_0x58bcb8('0x9')][_0x58bcb8('0x5')](_0x4079d9,_0x4b2bd4,_0x642ca4)['then'](function(){const _0x3a5527=_0x58bcb8;logger[_0x3a5527('0x6')]('Added\x20column\x20%s\x20to\x20%s',_0x4b2bd4,_0x4079d9);})['catch'](function(_0x4b1d95){const _0x211a94=_0x58bcb8;logger[_0x211a94('0x6')](JSON[_0x211a94('0x2')](_0x4b1d95));});},Migration[_0x524c62('0x8')][_0x524c62('0x3')]=function(_0x427508,_0x16b4ae){const _0xa68d8f=_0x524c62;return this[_0xa68d8f('0x9')]['removeColumn'](_0x427508,_0x16b4ae)[_0xa68d8f('0x1')](function(){const _0x9c8fdf=_0xa68d8f;logger['info'](_0x9c8fdf('0x7'),_0x16b4ae,_0x427508);})[_0xa68d8f('0x0')](function(_0x2eee02){const _0x4d8fad=_0xa68d8f;logger[_0x4d8fad('0x6')](JSON[_0x4d8fad('0x2')](_0x2eee02));});},Migration[_0x524c62('0x8')]['renameColumn']=function(_0x282bee,_0x532fef,_0x266398){const _0x4574d1=_0x524c62;return this['queryInterface']['renameColumn'](_0x282bee,_0x532fef,_0x266398)[_0x4574d1('0x1')](function(){const _0x5c6ba7=_0x4574d1;logger[_0x5c6ba7('0x6')](_0x5c6ba7('0xe'),_0x532fef,_0x266398,_0x282bee);})['catch'](function(_0x160c69){const _0x5c245e=_0x4574d1;logger[_0x5c245e('0x6')](JSON[_0x5c245e('0x2')](_0x160c69));});},Migration[_0x524c62('0x8')][_0x524c62('0xd')]=function(_0x4442c5){const _0x4b7aff=_0x524c62;return this[_0x4b7aff('0x9')][_0x4b7aff('0xd')](_0x4442c5)[_0x4b7aff('0x1')](function(){const _0x5b279e=_0x4b7aff;logger[_0x5b279e('0x6')]('table\x20dropped\x20%s',_0x4442c5);})[_0x4b7aff('0x0')](function(_0x251d94){logger['info'](JSON['stringify'](_0x251d94));});},module['exports']={'up':function(_0xde743a){const _0x26b3d5=_0x524c62,_0x4d37de=new Migration(_0xde743a);_0x4d37de[_0x26b3d5('0xd')](_0x26b3d5('0x4'),{'force':!![]}),_0x4d37de['dropTable'](_0x26b3d5('0xc'),{'force':!![]}),_0x4d37de[_0x26b3d5('0xd')](_0x26b3d5('0xa'),{'force':!![]});},'down':function(){}}; \ No newline at end of file +const a1062_0x5a59=['queryInterface','info','then','renameColumn','stringify','report_jscripty_questions','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','exports','report_jscripty_sessions','Added\x20column\x20%s\x20to\x20%s','addColumn','catch','removeColumn','report_jscripty_answers','prototype','dropTable','Removed\x20column\x20%s\x20from\x20%s'];(function(_0x431f7b,_0x433f82){const _0x5a5974=function(_0x566a99){while(--_0x566a99){_0x431f7b['push'](_0x431f7b['shift']());}};_0x5a5974(++_0x433f82);}(a1062_0x5a59,0x104));const a1062_0x566a=function(_0x431f7b,_0x433f82){_0x431f7b=_0x431f7b-0xcb;let _0x5a5974=a1062_0x5a59[_0x431f7b];return _0x5a5974;};const a1062_0x2b5375=a1062_0x566a;'use strict';const logger=require('../config/logger')('migration'),Migration=function(_0xc7fba2){const _0x2491df=a1062_0x566a;this[_0x2491df(0xd7)]=_0xc7fba2;};Migration[a1062_0x2b5375(0xd4)][a1062_0x2b5375(0xd0)]=function(_0x2aae31,_0x336c36,_0x116d25){const _0x59d7df=a1062_0x2b5375;return this[_0x59d7df(0xd7)][_0x59d7df(0xd0)](_0x2aae31,_0x336c36,_0x116d25)[_0x59d7df(0xd9)](function(){const _0x448a6c=_0x59d7df;logger[_0x448a6c(0xd8)](_0x448a6c(0xcf),_0x336c36,_0x2aae31);})['catch'](function(_0x250a2a){const _0x402a3a=_0x59d7df;logger[_0x402a3a(0xd8)](JSON[_0x402a3a(0xdb)](_0x250a2a));});},Migration[a1062_0x2b5375(0xd4)][a1062_0x2b5375(0xd2)]=function(_0x48db2e,_0x5bbcb0){const _0x1f054d=a1062_0x2b5375;return this[_0x1f054d(0xd7)][_0x1f054d(0xd2)](_0x48db2e,_0x5bbcb0)[_0x1f054d(0xd9)](function(){const _0x1bf4bc=_0x1f054d;logger['info'](_0x1bf4bc(0xd6),_0x5bbcb0,_0x48db2e);})[_0x1f054d(0xd1)](function(_0xb31c30){const _0x5c5a4c=_0x1f054d;logger[_0x5c5a4c(0xd8)](JSON[_0x5c5a4c(0xdb)](_0xb31c30));});},Migration[a1062_0x2b5375(0xd4)][a1062_0x2b5375(0xda)]=function(_0x123af6,_0x26c97b,_0x4ea4c7){const _0x4b3f8c=a1062_0x2b5375;return this[_0x4b3f8c(0xd7)]['renameColumn'](_0x123af6,_0x26c97b,_0x4ea4c7)[_0x4b3f8c(0xd9)](function(){const _0x32c50c=_0x4b3f8c;logger[_0x32c50c(0xd8)](_0x32c50c(0xcc),_0x26c97b,_0x4ea4c7,_0x123af6);})['catch'](function(_0x5d29d3){logger['info'](JSON['stringify'](_0x5d29d3));});},Migration['prototype']['dropTable']=function(_0x13d1e5){const _0x1837e1=a1062_0x2b5375;return this[_0x1837e1(0xd7)]['dropTable'](_0x13d1e5)[_0x1837e1(0xd9)](function(){const _0x280b96=_0x1837e1;logger[_0x280b96(0xd8)]('table\x20dropped\x20%s',_0x13d1e5);})['catch'](function(_0x1f9f51){const _0x5bf9e4=_0x1837e1;logger[_0x5bf9e4(0xd8)](JSON['stringify'](_0x1f9f51));});},module[a1062_0x2b5375(0xcd)]={'up':function(_0x301b52){const _0x4c8e78=a1062_0x2b5375,_0xd9ddba=new Migration(_0x301b52);_0xd9ddba[_0x4c8e78(0xd5)](_0x4c8e78(0xd3),{'force':!![]}),_0xd9ddba['dropTable'](_0x4c8e78(0xcb),{'force':!![]}),_0xd9ddba[_0x4c8e78(0xd5)](_0x4c8e78(0xce),{'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 77bcab3..b9131f4 100644 --- a/server/migrations/2.0.23.js +++ b/server/migrations/2.0.23.js @@ -1 +1 @@ -const a901_0xcc83=['user_has_openchannel_rooms','dropTable','stringify','table\x20dropped\x20%s','openchannel_accounts','ENUM','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','openchannel_applications','removeColumn','int_zendesk_accounts','integrationTab','migration','prototype','newTab','Added\x20column\x20%s\x20to\x20%s','queryInterface','type','catch','info','int_salesforce_accounts','openchannel_rooms','openchannel_messages','../config/logger','renameColumn','addColumn','then'];(function(_0x32cb90,_0xcc836){const _0x515b2d=function(_0x2cf6fe){while(--_0x2cf6fe){_0x32cb90['push'](_0x32cb90['shift']());}};_0x515b2d(++_0xcc836);}(a901_0xcc83,0x1d0));const a901_0x515b=function(_0x32cb90,_0xcc836){_0x32cb90=_0x32cb90-0x0;let _0x515b2d=a901_0xcc83[_0x32cb90];return _0x515b2d;};const _0xf5a36f=a901_0x515b;'use strict';const logger=require(_0xf5a36f('0x0'))(_0xf5a36f('0xf')),Migration=function(_0x2cf6fe){const _0x9e7223=_0xf5a36f;this[_0x9e7223('0x13')]=_0x2cf6fe;};Migration[_0xf5a36f('0x10')][_0xf5a36f('0x2')]=function(_0x1b5406,_0x4b77eb,_0xdaf959){const _0x22cae5=_0xf5a36f;return this[_0x22cae5('0x13')]['addColumn'](_0x1b5406,_0x4b77eb,_0xdaf959)[_0x22cae5('0x3')](function(){const _0x2c1825=_0x22cae5;logger[_0x2c1825('0x16')](_0x2c1825('0x12'),_0x4b77eb,_0x1b5406);})[_0x22cae5('0x15')](function(_0x5d6006){const _0x16b48a=_0x22cae5;logger[_0x16b48a('0x16')](JSON[_0x16b48a('0x6')](_0x5d6006));});},Migration[_0xf5a36f('0x10')]['removeColumn']=function(_0x1b6a6b,_0xf0493e){const _0x444f59=_0xf5a36f;return this[_0x444f59('0x13')][_0x444f59('0xc')](_0x1b6a6b,_0xf0493e)[_0x444f59('0x3')](function(){logger['info']('Removed\x20column\x20%s\x20from\x20%s',_0xf0493e,_0x1b6a6b);})['catch'](function(_0x49a748){const _0x4e7cca=_0x444f59;logger[_0x4e7cca('0x16')](JSON[_0x4e7cca('0x6')](_0x49a748));});},Migration[_0xf5a36f('0x10')][_0xf5a36f('0x1')]=function(_0x19582f,_0x4cbe69,_0x1165c1){const _0x2f707e=_0xf5a36f;return this[_0x2f707e('0x13')][_0x2f707e('0x1')](_0x19582f,_0x4cbe69,_0x1165c1)[_0x2f707e('0x3')](function(){const _0x1eceaa=_0x2f707e;logger[_0x1eceaa('0x16')](_0x1eceaa('0xa'),_0x4cbe69,_0x1165c1,_0x19582f);})[_0x2f707e('0x15')](function(_0xb6942){const _0x547d1d=_0x2f707e;logger[_0x547d1d('0x16')](JSON['stringify'](_0xb6942));});},Migration[_0xf5a36f('0x10')][_0xf5a36f('0x5')]=function(_0x49188f){const _0x196e42=_0xf5a36f;return this[_0x196e42('0x13')][_0x196e42('0x5')](_0x49188f)[_0x196e42('0x3')](function(){const _0x2b8cbd=_0x196e42;logger[_0x2b8cbd('0x16')](_0x2b8cbd('0x7'),_0x49188f);})[_0x196e42('0x15')](function(_0x3068c3){const _0x11dcfd=_0x196e42;logger[_0x11dcfd('0x16')](JSON[_0x11dcfd('0x6')](_0x3068c3));});},module['exports']={'up':function(_0x4a23c2,_0x39e53f){const _0x26ad84=_0xf5a36f,_0x31b44f=new Migration(_0x4a23c2);_0x31b44f[_0x26ad84('0x2')](_0x26ad84('0x17'),'type',{'type':_0x39e53f[_0x26ad84('0x9')](_0x26ad84('0xe'),'newTab'),'defaultValue':_0x26ad84('0xe')}),_0x31b44f[_0x26ad84('0x2')](_0x26ad84('0xd'),_0x26ad84('0x14'),{'type':_0x39e53f[_0x26ad84('0x9')]('integrationTab',_0x26ad84('0x11')),'defaultValue':_0x26ad84('0xe')}),_0x31b44f[_0x26ad84('0x5')](_0x26ad84('0x4'),{'force':!![]}),_0x31b44f['dropTable'](_0x26ad84('0x19'),{'force':!![]}),_0x31b44f['dropTable'](_0x26ad84('0x18'),{'force':!![]}),_0x31b44f[_0x26ad84('0x5')](_0x26ad84('0xb'),{'force':!![]}),_0x31b44f[_0x26ad84('0x5')](_0x26ad84('0x8'),{'force':!![]});},'down':function(_0x5655c1){const _0xe673ca=_0xf5a36f,_0x162e3a=new Migration(_0x5655c1);_0x162e3a[_0xe673ca('0xc')](_0xe673ca('0x17'),_0xe673ca('0x14')),_0x162e3a[_0xe673ca('0xc')]('int_zendesk_accounts','type');}}; \ No newline at end of file +const a1063_0xa0fc=['exports','ENUM','openchannel_messages','openchannel_accounts','addColumn','type','integrationTab','dropTable','int_zendesk_accounts','renameColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','prototype','stringify','then','openchannel_rooms','info','../config/logger','removeColumn','queryInterface','newTab','catch','openchannel_applications','int_salesforce_accounts','Added\x20column\x20%s\x20to\x20%s','table\x20dropped\x20%s'];(function(_0x428d50,_0x50f883){const _0xa0fc08=function(_0x2c1237){while(--_0x2c1237){_0x428d50['push'](_0x428d50['shift']());}};_0xa0fc08(++_0x50f883);}(a1063_0xa0fc,0x7a));const a1063_0x2c12=function(_0x428d50,_0x50f883){_0x428d50=_0x428d50-0x1d0;let _0xa0fc08=a1063_0xa0fc[_0x428d50];return _0xa0fc08;};const a1063_0x352c5c=a1063_0x2c12;'use strict';const logger=require(a1063_0x352c5c(0x1e3))('migration'),Migration=function(_0x72d410){const _0x250d8d=a1063_0x352c5c;this[_0x250d8d(0x1e5)]=_0x72d410;};Migration['prototype'][a1063_0x352c5c(0x1d7)]=function(_0x2897b9,_0x3cb2a5,_0x499691){const _0x6bbc65=a1063_0x352c5c;return this[_0x6bbc65(0x1e5)][_0x6bbc65(0x1d7)](_0x2897b9,_0x3cb2a5,_0x499691)['then'](function(){const _0x4b1ce6=_0x6bbc65;logger[_0x4b1ce6(0x1e2)](_0x4b1ce6(0x1d1),_0x3cb2a5,_0x2897b9);})[_0x6bbc65(0x1e7)](function(_0x31acd7){const _0x333c6b=_0x6bbc65;logger[_0x333c6b(0x1e2)](JSON[_0x333c6b(0x1df)](_0x31acd7));});},Migration['prototype'][a1063_0x352c5c(0x1e4)]=function(_0x1f8ade,_0x460d9b){const _0x26db63=a1063_0x352c5c;return this[_0x26db63(0x1e5)][_0x26db63(0x1e4)](_0x1f8ade,_0x460d9b)[_0x26db63(0x1e0)](function(){const _0x275a3a=_0x26db63;logger[_0x275a3a(0x1e2)]('Removed\x20column\x20%s\x20from\x20%s',_0x460d9b,_0x1f8ade);})['catch'](function(_0x304f7e){const _0x14f3a5=_0x26db63;logger[_0x14f3a5(0x1e2)](JSON[_0x14f3a5(0x1df)](_0x304f7e));});},Migration[a1063_0x352c5c(0x1de)][a1063_0x352c5c(0x1dc)]=function(_0x25e47e,_0x593e20,_0xbf6c47){const _0x468071=a1063_0x352c5c;return this[_0x468071(0x1e5)][_0x468071(0x1dc)](_0x25e47e,_0x593e20,_0xbf6c47)[_0x468071(0x1e0)](function(){const _0x1e0348=_0x468071;logger['info'](_0x1e0348(0x1dd),_0x593e20,_0xbf6c47,_0x25e47e);})[_0x468071(0x1e7)](function(_0x2c0ffe){const _0x3c30ce=_0x468071;logger[_0x3c30ce(0x1e2)](JSON[_0x3c30ce(0x1df)](_0x2c0ffe));});},Migration[a1063_0x352c5c(0x1de)][a1063_0x352c5c(0x1da)]=function(_0x38df11){const _0x44b2a6=a1063_0x352c5c;return this['queryInterface']['dropTable'](_0x38df11)[_0x44b2a6(0x1e0)](function(){const _0x2ed1eb=_0x44b2a6;logger[_0x2ed1eb(0x1e2)](_0x2ed1eb(0x1d2),_0x38df11);})['catch'](function(_0x33e119){const _0x5aa1b5=_0x44b2a6;logger['info'](JSON[_0x5aa1b5(0x1df)](_0x33e119));});},module[a1063_0x352c5c(0x1d3)]={'up':function(_0x311868,_0x3c8b21){const _0x3b5e3b=a1063_0x352c5c,_0x59e60c=new Migration(_0x311868);_0x59e60c[_0x3b5e3b(0x1d7)](_0x3b5e3b(0x1d0),'type',{'type':_0x3c8b21['ENUM']('integrationTab',_0x3b5e3b(0x1e6)),'defaultValue':'integrationTab'}),_0x59e60c[_0x3b5e3b(0x1d7)](_0x3b5e3b(0x1db),_0x3b5e3b(0x1d8),{'type':_0x3c8b21[_0x3b5e3b(0x1d4)](_0x3b5e3b(0x1d9),'newTab'),'defaultValue':_0x3b5e3b(0x1d9)}),_0x59e60c[_0x3b5e3b(0x1da)]('user_has_openchannel_rooms',{'force':!![]}),_0x59e60c[_0x3b5e3b(0x1da)](_0x3b5e3b(0x1d5),{'force':!![]}),_0x59e60c['dropTable'](_0x3b5e3b(0x1e1),{'force':!![]}),_0x59e60c[_0x3b5e3b(0x1da)](_0x3b5e3b(0x1e8),{'force':!![]}),_0x59e60c[_0x3b5e3b(0x1da)](_0x3b5e3b(0x1d6),{'force':!![]});},'down':function(_0x542fe2){const _0x59c4ee=a1063_0x352c5c,_0x2ca96e=new Migration(_0x542fe2);_0x2ca96e[_0x59c4ee(0x1e4)]('int_salesforce_accounts',_0x59c4ee(0x1d8)),_0x2ca96e[_0x59c4ee(0x1e4)](_0x59c4ee(0x1db),'type');}}; \ No newline at end of file diff --git a/server/migrations/2.0.24.js b/server/migrations/2.0.24.js index cbc9968..be79534 100644 --- a/server/migrations/2.0.24.js +++ b/server/migrations/2.0.24.js @@ -1 +1 @@ -const a902_0x438b=['dropTable','Removed\x20column\x20%s\x20from\x20%s','migration','queryInterface','info','Added\x20column\x20%s\x20to\x20%s','renameColumn','table\x20dropped\x20%s','../config/logger','prototype','catch','removeColumn','addColumn','then','stringify'];(function(_0x4df620,_0x438bab){const _0x53ba29=function(_0x375c76){while(--_0x375c76){_0x4df620['push'](_0x4df620['shift']());}};_0x53ba29(++_0x438bab);}(a902_0x438b,0x1aa));const a902_0x53ba=function(_0x4df620,_0x438bab){_0x4df620=_0x4df620-0x0;let _0x53ba29=a902_0x438b[_0x4df620];return _0x53ba29;};const _0x29ce28=a902_0x53ba;'use strict';const logger=require(_0x29ce28('0x2'))(_0x29ce28('0xb')),Migration=function(_0x375c76){const _0x49ee0b=_0x29ce28;this[_0x49ee0b('0xc')]=_0x375c76;};Migration['prototype'][_0x29ce28('0x6')]=function(_0x2f7534,_0x240ff7,_0xf1fb49){const _0x57f547=_0x29ce28;return this['queryInterface']['addColumn'](_0x2f7534,_0x240ff7,_0xf1fb49)[_0x57f547('0x7')](function(){const _0x167b2f=_0x57f547;logger[_0x167b2f('0xd')](_0x167b2f('0xe'),_0x240ff7,_0x2f7534);})[_0x57f547('0x4')](function(_0x50ddbc){const _0x2126d1=_0x57f547;logger['info'](JSON[_0x2126d1('0x8')](_0x50ddbc));});},Migration[_0x29ce28('0x3')]['removeColumn']=function(_0x34318f,_0x1b1e48){const _0x5ab789=_0x29ce28;return this[_0x5ab789('0xc')][_0x5ab789('0x5')](_0x34318f,_0x1b1e48)['then'](function(){const _0x32d256=_0x5ab789;logger[_0x32d256('0xd')](_0x32d256('0xa'),_0x1b1e48,_0x34318f);})[_0x5ab789('0x4')](function(_0x33f201){const _0x588e08=_0x5ab789;logger[_0x588e08('0xd')](JSON[_0x588e08('0x8')](_0x33f201));});},Migration[_0x29ce28('0x3')]['renameColumn']=function(_0x3e3485,_0xa30cdc,_0x1fcbf4){const _0x2b3c11=_0x29ce28;return this[_0x2b3c11('0xc')][_0x2b3c11('0x0')](_0x3e3485,_0xa30cdc,_0x1fcbf4)['then'](function(){const _0xaabc26=_0x2b3c11;logger[_0xaabc26('0xd')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0xa30cdc,_0x1fcbf4,_0x3e3485);})[_0x2b3c11('0x4')](function(_0x3d80ca){const _0x5580fe=_0x2b3c11;logger[_0x5580fe('0xd')](JSON['stringify'](_0x3d80ca));});},Migration['prototype']['dropTable']=function(_0x5b88e4){const _0x60374f=_0x29ce28;return this[_0x60374f('0xc')][_0x60374f('0x9')](_0x5b88e4)[_0x60374f('0x7')](function(){const _0x20fb46=_0x60374f;logger[_0x20fb46('0xd')](_0x20fb46('0x1'),_0x5b88e4);})[_0x60374f('0x4')](function(_0x5dd785){const _0x450120=_0x60374f;logger[_0x450120('0xd')](JSON[_0x450120('0x8')](_0x5dd785));});},module['exports']={'up':function(_0x498ff4){const _0x1dcf4a=_0x29ce28,_0x5d1526=new Migration(_0x498ff4);_0x5d1526[_0x1dcf4a('0x9')]('tools_schedules',{'force':!![]});},'down':function(){}}; \ No newline at end of file +const a1064_0x16f0=['then','info','stringify','tools_schedules','exports','addColumn','table\x20dropped\x20%s','removeColumn','dropTable','prototype','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','migration','catch','queryInterface'];(function(_0x52d652,_0xa00400){const _0x16f0cc=function(_0x402769){while(--_0x402769){_0x52d652['push'](_0x52d652['shift']());}};_0x16f0cc(++_0xa00400);}(a1064_0x16f0,0x96));const a1064_0x4027=function(_0x52d652,_0xa00400){_0x52d652=_0x52d652-0x12b;let _0x16f0cc=a1064_0x16f0[_0x52d652];return _0x16f0cc;};const a1064_0xc41073=a1064_0x4027;'use strict';const logger=require('../config/logger')(a1064_0xc41073(0x12c)),Migration=function(_0x394762){const _0x4a0fd5=a1064_0xc41073;this[_0x4a0fd5(0x12e)]=_0x394762;};Migration[a1064_0xc41073(0x138)][a1064_0xc41073(0x134)]=function(_0x125d8d,_0x30ffaf,_0x5d9e68){const _0x2d5029=a1064_0xc41073;return this['queryInterface'][_0x2d5029(0x134)](_0x125d8d,_0x30ffaf,_0x5d9e68)[_0x2d5029(0x12f)](function(){const _0x4ba1ab=_0x2d5029;logger[_0x4ba1ab(0x130)]('Added\x20column\x20%s\x20to\x20%s',_0x30ffaf,_0x125d8d);})[_0x2d5029(0x12d)](function(_0x15cd0b){const _0x41b3a2=_0x2d5029;logger[_0x41b3a2(0x130)](JSON[_0x41b3a2(0x131)](_0x15cd0b));});},Migration[a1064_0xc41073(0x138)]['removeColumn']=function(_0x212c18,_0x5d5135){const _0x236397=a1064_0xc41073;return this['queryInterface'][_0x236397(0x136)](_0x212c18,_0x5d5135)[_0x236397(0x12f)](function(){const _0x5bce33=_0x236397;logger[_0x5bce33(0x130)]('Removed\x20column\x20%s\x20from\x20%s',_0x5d5135,_0x212c18);})[_0x236397(0x12d)](function(_0x4aa5cd){const _0x650b0b=_0x236397;logger[_0x650b0b(0x130)](JSON['stringify'](_0x4aa5cd));});},Migration['prototype']['renameColumn']=function(_0x51005c,_0x520f0f,_0x1f6d8a){const _0x175cf0=a1064_0xc41073;return this[_0x175cf0(0x12e)]['renameColumn'](_0x51005c,_0x520f0f,_0x1f6d8a)[_0x175cf0(0x12f)](function(){const _0x309a26=_0x175cf0;logger[_0x309a26(0x130)](_0x309a26(0x12b),_0x520f0f,_0x1f6d8a,_0x51005c);})[_0x175cf0(0x12d)](function(_0x176c3f){const _0x2b0575=_0x175cf0;logger[_0x2b0575(0x130)](JSON[_0x2b0575(0x131)](_0x176c3f));});},Migration[a1064_0xc41073(0x138)]['dropTable']=function(_0x38d15a){const _0x44a790=a1064_0xc41073;return this[_0x44a790(0x12e)][_0x44a790(0x137)](_0x38d15a)[_0x44a790(0x12f)](function(){const _0x3f3c4e=_0x44a790;logger[_0x3f3c4e(0x130)](_0x3f3c4e(0x135),_0x38d15a);})['catch'](function(_0x38ed4d){const _0x4d5031=_0x44a790;logger['info'](JSON[_0x4d5031(0x131)](_0x38ed4d));});},module[a1064_0xc41073(0x133)]={'up':function(_0x366e04){const _0x3498ed=a1064_0xc41073,_0x4893f0=new Migration(_0x366e04);_0x4893f0[_0x3498ed(0x137)](_0x3498ed(0x132),{'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 63849c8..638c695 100644 --- a/server/migrations/2.0.25.js +++ b/server/migrations/2.0.25.js @@ -1 +1 @@ -const a903_0xa612=['catch','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());','../config/logger','Insert\x20new\x20row\x20in\x20voice_extensions','exports','Changed\x20column\x20%s\x20in\x20table\x20%s','util','Added\x20column\x20%s\x20to\x20%s','sequelize','ulaw;gsm','dialPrefix','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());','stringify','info','addColumn','changeColumn','insertExtension','STRING','tools_trunks','then','migration','inspect','queryInterface','allow','voice_queues','prototype','ulaw;gsm;alaw'];(function(_0x2ffe8d,_0xa6129){const _0x3f6a3e=function(_0x4b02d2){while(--_0x4b02d2){_0x2ffe8d['push'](_0x2ffe8d['shift']());}};_0x3f6a3e(++_0xa6129);}(a903_0xa612,0x108));const a903_0x3f6a=function(_0x2ffe8d,_0xa6129){_0x2ffe8d=_0x2ffe8d-0x0;let _0x3f6a3e=a903_0xa612[_0x2ffe8d];return _0x3f6a3e;};const _0x4c2d53=a903_0x3f6a;'use strict';const logger=require(_0x4c2d53('0x8'))(_0x4c2d53('0x1a')),util=require(_0x4c2d53('0xc')),Migration=function(_0x4b02d2){const _0x40b04e=_0x4c2d53;this[_0x40b04e('0x1')]=_0x4b02d2;};Migration[_0x4c2d53('0x4')]['insertExtension']=function(_0x2bca8b){const _0x3aafbe=_0x4c2d53;return this[_0x3aafbe('0x1')][_0x3aafbe('0xe')]['query'](_0x2bca8b)[_0x3aafbe('0x19')](function(){const _0x484f7c=_0x3aafbe;logger[_0x484f7c('0x13')](_0x484f7c('0x9'));})[_0x3aafbe('0x6')](function(_0x139900){const _0x4d7def=_0x3aafbe;logger[_0x4d7def('0x13')](util[_0x4d7def('0x0')](_0x139900,{'showHidden':![],'depth':null}));});},Migration[_0x4c2d53('0x4')][_0x4c2d53('0x15')]=function(_0x5aa11e,_0x185541,_0x2ec73a){const _0xe75332=_0x4c2d53;return this[_0xe75332('0x1')][_0xe75332('0x15')](_0x5aa11e,_0x185541,_0x2ec73a)[_0xe75332('0x19')](function(){const _0x1e2b69=_0xe75332;logger[_0x1e2b69('0x13')](_0x1e2b69('0xb'),_0x185541,_0x5aa11e);})[_0xe75332('0x6')](function(_0xd2022d){const _0x25f288=_0xe75332;logger[_0x25f288('0x13')](util['inspect'](_0xd2022d,{'showHidden':![],'depth':null}));});},Migration[_0x4c2d53('0x4')][_0x4c2d53('0x14')]=function(_0x7d547f,_0x540bc7,_0x4db71d){const _0x9e1707=_0x4c2d53;return this[_0x9e1707('0x1')][_0x9e1707('0x14')](_0x7d547f,_0x540bc7,_0x4db71d)[_0x9e1707('0x19')](function(){const _0x23525d=_0x9e1707;logger[_0x23525d('0x13')](_0x23525d('0xd'),_0x540bc7,_0x7d547f);})[_0x9e1707('0x6')](function(_0x4d55b3){const _0x2df6d7=_0x9e1707;logger[_0x2df6d7('0x13')](JSON[_0x2df6d7('0x12')](_0x4d55b3));});},module[_0x4c2d53('0xa')]={'up':function(_0x4c8929,_0x21957d){const _0x3e171c=_0x4c2d53,_0x418b25=new Migration(_0x4c8929);_0x418b25[_0x3e171c('0x16')](_0x3e171c('0x7')),_0x418b25[_0x3e171c('0x16')](_0x3e171c('0x11')),_0x418b25['changeColumn']('users',_0x3e171c('0x2'),{'type':_0x21957d[_0x3e171c('0x17')],'defaultValue':_0x3e171c('0xf')}),_0x418b25[_0x3e171c('0x15')](_0x3e171c('0x18'),_0x3e171c('0x2'),{'type':_0x21957d[_0x3e171c('0x17')],'defaultValue':_0x3e171c('0x5')}),_0x418b25[_0x3e171c('0x14')](_0x3e171c('0x3'),_0x3e171c('0x10'),{'type':_0x21957d[_0x3e171c('0x17')],'defaultValue':null});},'down':function(){}}; \ No newline at end of file +const a1065_0x16b9=['prototype','query','info','addColumn','stringify','insertExtension','util','users','inspect','../config/logger','Added\x20column\x20%s\x20to\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','catch','ulaw;gsm','STRING','sequelize','dialPrefix','allow','changeColumn','queryInterface'];(function(_0x10744a,_0x30bc9a){const _0x16b99c=function(_0x3c84c1){while(--_0x3c84c1){_0x10744a['push'](_0x10744a['shift']());}};_0x16b99c(++_0x30bc9a);}(a1065_0x16b9,0x102));const a1065_0x3c84=function(_0x10744a,_0x30bc9a){_0x10744a=_0x10744a-0xef;let _0x16b99c=a1065_0x16b9[_0x10744a];return _0x16b99c;};const a1065_0x1c6c80=a1065_0x3c84;'use strict';const logger=require(a1065_0x1c6c80(0xfa))('migration'),util=require(a1065_0x1c6c80(0xf7)),Migration=function(_0x462106){const _0x4a1988=a1065_0x1c6c80;this[_0x4a1988(0xf0)]=_0x462106;};Migration[a1065_0x1c6c80(0xf1)][a1065_0x1c6c80(0xf6)]=function(_0x1fd0e0){const _0x15a2fa=a1065_0x1c6c80;return this['queryInterface'][_0x15a2fa(0x100)][_0x15a2fa(0xf2)](_0x1fd0e0)['then'](function(){logger['info']('Insert\x20new\x20row\x20in\x20voice_extensions');})[_0x15a2fa(0xfd)](function(_0x3c0741){logger['info'](util['inspect'](_0x3c0741,{'showHidden':![],'depth':null}));});},Migration[a1065_0x1c6c80(0xf1)][a1065_0x1c6c80(0xef)]=function(_0x359cbc,_0x4e6b29,_0x12756e){const _0x32dbb2=a1065_0x1c6c80;return this[_0x32dbb2(0xf0)][_0x32dbb2(0xef)](_0x359cbc,_0x4e6b29,_0x12756e)['then'](function(){const _0x449e37=_0x32dbb2;logger[_0x449e37(0xf3)](_0x449e37(0xfc),_0x4e6b29,_0x359cbc);})[_0x32dbb2(0xfd)](function(_0x1c0e63){const _0x59f25f=_0x32dbb2;logger[_0x59f25f(0xf3)](util[_0x59f25f(0xf9)](_0x1c0e63,{'showHidden':![],'depth':null}));});},Migration[a1065_0x1c6c80(0xf1)][a1065_0x1c6c80(0xf4)]=function(_0x444f81,_0xfb7eea,_0x2b9aa9){const _0x5bf687=a1065_0x1c6c80;return this[_0x5bf687(0xf0)]['addColumn'](_0x444f81,_0xfb7eea,_0x2b9aa9)['then'](function(){const _0xe05e4e=_0x5bf687;logger[_0xe05e4e(0xf3)](_0xe05e4e(0xfb),_0xfb7eea,_0x444f81);})[_0x5bf687(0xfd)](function(_0x5da4d2){const _0x2e155e=_0x5bf687;logger['info'](JSON[_0x2e155e(0xf5)](_0x5da4d2));});},module['exports']={'up':function(_0x4fe40b,_0x135f09){const _0xddf8ae=a1065_0x1c6c80,_0x2a713e=new Migration(_0x4fe40b);_0x2a713e[_0xddf8ae(0xf6)]('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());'),_0x2a713e[_0xddf8ae(0xf6)]('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());'),_0x2a713e['changeColumn'](_0xddf8ae(0xf8),_0xddf8ae(0x102),{'type':_0x135f09[_0xddf8ae(0xff)],'defaultValue':_0xddf8ae(0xfe)}),_0x2a713e[_0xddf8ae(0xef)]('tools_trunks',_0xddf8ae(0x102),{'type':_0x135f09[_0xddf8ae(0xff)],'defaultValue':'ulaw;gsm;alaw'}),_0x2a713e[_0xddf8ae(0xf4)]('voice_queues',_0xddf8ae(0x101),{'type':_0x135f09['STRING'],'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 b1cea0a..11dd7c9 100644 --- a/server/migrations/2.0.26.js +++ b/server/migrations/2.0.26.js @@ -1 +1 @@ -const a904_0x35d0=['mail_servers_out','BOOLEAN','queryInterface','always','then','dialCheckDuplicateType','Added\x20column\x20%s\x20to\x20%s','stringify','tools_trunks','voice_queues','addColumn','email','Changed\x20column\x20%s\x20in\x20table\x20%s','never','INTEGER','authentication','ulaw;alaw;gsm','allow','onlyIfOpen','info','prototype','sendrpid','timeout','ENUM','changeColumn','inspect','pai'];(function(_0x6078c1,_0x35d033){const _0x471357=function(_0x5b3ec4){while(--_0x5b3ec4){_0x6078c1['push'](_0x6078c1['shift']());}};_0x471357(++_0x35d033);}(a904_0x35d0,0x153));const a904_0x4713=function(_0x6078c1,_0x35d033){_0x6078c1=_0x6078c1-0x0;let _0x471357=a904_0x35d0[_0x6078c1];return _0x471357;};const _0x1cde81=a904_0x4713;'use strict';const logger=require('../config/logger')('migration'),util=require('util'),Migration=function(_0x5b3ec4){const _0xfefb0b=a904_0x4713;this[_0xfefb0b('0xe')]=_0x5b3ec4;};Migration['prototype']['changeColumn']=function(_0x58f3d8,_0x329633,_0x4910de){const _0x12bbb9=a904_0x4713;return this[_0x12bbb9('0xe')][_0x12bbb9('0x9')](_0x58f3d8,_0x329633,_0x4910de)[_0x12bbb9('0x10')](function(){const _0x44fcdf=_0x12bbb9;logger['info'](_0x44fcdf('0x18'),_0x329633,_0x58f3d8);})['catch'](function(_0x5d3504){const _0x34d377=_0x12bbb9;logger['info'](util[_0x34d377('0xa')](_0x5d3504,{'showHidden':![],'depth':null}));});},Migration[_0x1cde81('0x5')][_0x1cde81('0x16')]=function(_0x5e90fb,_0x2803de,_0x27432a){const _0x3e0af9=_0x1cde81;return this['queryInterface'][_0x3e0af9('0x16')](_0x5e90fb,_0x2803de,_0x27432a)[_0x3e0af9('0x10')](function(){const _0x460337=_0x3e0af9;logger[_0x460337('0x4')](_0x460337('0x12'),_0x2803de,_0x5e90fb);})['catch'](function(_0x46dfd6){const _0x571605=_0x3e0af9;logger[_0x571605('0x4')](JSON[_0x571605('0x13')](_0x46dfd6));});},module['exports']={'up':function(_0x1c5ee2,_0x4fd10f){const _0x1e723f=_0x1cde81,_0x563774=new Migration(_0x1c5ee2);_0x563774[_0x1e723f('0x9')](_0x1e723f('0x14'),_0x1e723f('0x6'),{'type':_0x4fd10f['ENUM']('yes','no',_0x1e723f('0xb')),'defaultValue':'no'}),_0x563774[_0x1e723f('0x16')](_0x1e723f('0xc'),_0x1e723f('0x0'),{'type':_0x4fd10f[_0x1e723f('0xd')],'defaultValue':!![]}),_0x563774[_0x1e723f('0x9')](_0x1e723f('0x15'),_0x1e723f('0x7'),{'type':_0x4fd10f[_0x1e723f('0x1a')](0xb),'defaultValue':0xf}),_0x563774[_0x1e723f('0x9')](_0x1e723f('0x15'),'retry',{'type':_0x4fd10f[_0x1e723f('0x1a')](0xb),'defaultValue':0x2}),_0x563774['changeColumn']('users',_0x1e723f('0x2'),{'type':_0x4fd10f['STRING'],'allowNull':![],'defaultValue':'ulaw;alaw;gsm'}),_0x563774[_0x1e723f('0x9')]('tools_trunks',_0x1e723f('0x2'),{'type':_0x4fd10f['STRING'],'allowNull':![],'defaultValue':_0x1e723f('0x1')}),_0x563774[_0x1e723f('0x16')]('voice_queues','dialCheckDuplicateType',{'type':_0x4fd10f[_0x1e723f('0x8')]('always','never',_0x1e723f('0x3')),'defaultValue':_0x1e723f('0xf')}),_0x563774[_0x1e723f('0x16')]('campaigns',_0x1e723f('0x11'),{'type':_0x4fd10f[_0x1e723f('0x8')](_0x1e723f('0xf'),_0x1e723f('0x19'),_0x1e723f('0x3')),'defaultValue':'always'}),_0x563774[_0x1e723f('0x16')]('mail_accounts',_0x1e723f('0x17'),{'type':_0x4fd10f['STRING']});},'down':function(){}}; \ No newline at end of file +const a1066_0x2ffb=['migration','email','INTEGER','mail_servers_out','ENUM','Added\x20column\x20%s\x20to\x20%s','queryInterface','onlyIfOpen','dialCheckDuplicateType','changeColumn','sendrpid','then','voice_queues','exports','always','retry','yes','info','users','pai','timeout','ulaw;alaw;gsm','util','mail_accounts','authentication','tools_trunks','campaigns','BOOLEAN','allow','STRING','catch','never','addColumn'];(function(_0x2543cb,_0x49c3cc){const _0x2ffb86=function(_0x19e4c8){while(--_0x19e4c8){_0x2543cb['push'](_0x2543cb['shift']());}};_0x2ffb86(++_0x49c3cc);}(a1066_0x2ffb,0xc1));const a1066_0x19e4=function(_0x2543cb,_0x49c3cc){_0x2543cb=_0x2543cb-0x107;let _0x2ffb86=a1066_0x2ffb[_0x2543cb];return _0x2ffb86;};const a1066_0x33c008=a1066_0x19e4;'use strict';const logger=require('../config/logger')(a1066_0x33c008(0x10c)),util=require(a1066_0x33c008(0x122)),Migration=function(_0x5c23e7){const _0x419e29=a1066_0x33c008;this[_0x419e29(0x112)]=_0x5c23e7;};Migration['prototype'][a1066_0x33c008(0x115)]=function(_0x441d00,_0x5de6cf,_0x7788a3){const _0x2e18de=a1066_0x33c008;return this['queryInterface'][_0x2e18de(0x115)](_0x441d00,_0x5de6cf,_0x7788a3)[_0x2e18de(0x117)](function(){logger['info']('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x5de6cf,_0x441d00);})['catch'](function(_0x49f39f){const _0x593170=_0x2e18de;logger[_0x593170(0x11d)](util['inspect'](_0x49f39f,{'showHidden':![],'depth':null}));});},Migration['prototype']['addColumn']=function(_0xf1f3de,_0x315f50,_0x5ca974){const _0x13f6bf=a1066_0x33c008;return this[_0x13f6bf(0x112)]['addColumn'](_0xf1f3de,_0x315f50,_0x5ca974)[_0x13f6bf(0x117)](function(){const _0x5a1c93=_0x13f6bf;logger[_0x5a1c93(0x11d)](_0x5a1c93(0x111),_0x315f50,_0xf1f3de);})[_0x13f6bf(0x109)](function(_0x38f72a){const _0x4ad4be=_0x13f6bf;logger[_0x4ad4be(0x11d)](JSON['stringify'](_0x38f72a));});},module[a1066_0x33c008(0x119)]={'up':function(_0x949b17,_0x290fff){const _0x2eeb3a=a1066_0x33c008,_0x278a28=new Migration(_0x949b17);_0x278a28[_0x2eeb3a(0x115)]('tools_trunks',_0x2eeb3a(0x116),{'type':_0x290fff[_0x2eeb3a(0x110)](_0x2eeb3a(0x11c),'no',_0x2eeb3a(0x11f)),'defaultValue':'no'}),_0x278a28[_0x2eeb3a(0x10b)](_0x2eeb3a(0x10f),_0x2eeb3a(0x124),{'type':_0x290fff[_0x2eeb3a(0x127)],'defaultValue':!![]}),_0x278a28['changeColumn']('voice_queues',_0x2eeb3a(0x120),{'type':_0x290fff[_0x2eeb3a(0x10e)](0xb),'defaultValue':0xf}),_0x278a28[_0x2eeb3a(0x115)]('voice_queues',_0x2eeb3a(0x11b),{'type':_0x290fff[_0x2eeb3a(0x10e)](0xb),'defaultValue':0x2}),_0x278a28['changeColumn'](_0x2eeb3a(0x11e),'allow',{'type':_0x290fff['STRING'],'allowNull':![],'defaultValue':_0x2eeb3a(0x121)}),_0x278a28[_0x2eeb3a(0x115)](_0x2eeb3a(0x125),_0x2eeb3a(0x107),{'type':_0x290fff[_0x2eeb3a(0x108)],'allowNull':![],'defaultValue':'ulaw;alaw;gsm'}),_0x278a28[_0x2eeb3a(0x10b)](_0x2eeb3a(0x118),_0x2eeb3a(0x114),{'type':_0x290fff[_0x2eeb3a(0x110)](_0x2eeb3a(0x11a),_0x2eeb3a(0x10a),_0x2eeb3a(0x113)),'defaultValue':_0x2eeb3a(0x11a)}),_0x278a28[_0x2eeb3a(0x10b)](_0x2eeb3a(0x126),_0x2eeb3a(0x114),{'type':_0x290fff['ENUM'](_0x2eeb3a(0x11a),'never',_0x2eeb3a(0x113)),'defaultValue':_0x2eeb3a(0x11a)}),_0x278a28[_0x2eeb3a(0x10b)](_0x2eeb3a(0x123),_0x2eeb3a(0x10d),{'type':_0x290fff[_0x2eeb3a(0x108)]});},'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 c4c114e..36877f7 100644 --- a/server/migrations/2.0.27.js +++ b/server/migrations/2.0.27.js @@ -1 +1 @@ -var a905_0xf706=['exports'];(function(_0x2da6af,_0xf70634){var _0x360a94=function(_0xa3816a){while(--_0xa3816a){_0x2da6af['push'](_0x2da6af['shift']());}};_0x360a94(++_0xf70634);}(a905_0xf706,0x15f));var a905_0x360a=function(_0x2da6af,_0xf70634){_0x2da6af=_0x2da6af-0x0;var _0x360a94=a905_0xf706[_0x2da6af];return _0x360a94;};var _0x50a130=a905_0x360a;'use strict';module[_0x50a130('0x0')]={'up':function(){},'down':function(){}}; \ No newline at end of file +var a1067_0x2f83=['exports'];(function(_0x5dbc1b,_0x1c77d9){var _0x2f83e4=function(_0x537422){while(--_0x537422){_0x5dbc1b['push'](_0x5dbc1b['shift']());}};_0x2f83e4(++_0x1c77d9);}(a1067_0x2f83,0x90));var a1067_0x5374=function(_0x5dbc1b,_0x1c77d9){_0x5dbc1b=_0x5dbc1b-0x1d9;var _0x2f83e4=a1067_0x2f83[_0x5dbc1b];return _0x2f83e4;};var a1067_0x2cdc48=a1067_0x5374;'use strict';module[a1067_0x2cdc48(0x1d9)]={'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 138ff5b..bff4c5a 100644 --- a/server/migrations/2.0.28.js +++ b/server/migrations/2.0.28.js @@ -1 +1 @@ -var a906_0x1df1=['exports'];(function(_0x25236f,_0x1df169){var _0x3dda4f=function(_0x18a7da){while(--_0x18a7da){_0x25236f['push'](_0x25236f['shift']());}};_0x3dda4f(++_0x1df169);}(a906_0x1df1,0x1b9));var a906_0x3dda=function(_0x25236f,_0x1df169){_0x25236f=_0x25236f-0x0;var _0x3dda4f=a906_0x1df1[_0x25236f];return _0x3dda4f;};var _0x512603=a906_0x3dda;'use strict';module[_0x512603('0x0')]={'up':function(){},'down':function(){}}; \ No newline at end of file +var a1068_0x3d0b=['exports'];(function(_0x40011b,_0x35b23d){var _0x3d0ba5=function(_0x59bc0c){while(--_0x59bc0c){_0x40011b['push'](_0x40011b['shift']());}};_0x3d0ba5(++_0x35b23d);}(a1068_0x3d0b,0xb9));var a1068_0x59bc=function(_0x40011b,_0x35b23d){_0x40011b=_0x40011b-0x103;var _0x3d0ba5=a1068_0x3d0b[_0x40011b];return _0x3d0ba5;};var a1068_0x38c04e=a1068_0x59bc;'use strict';module[a1068_0x38c04e(0x103)]={'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 deef453..961345f 100644 --- a/server/migrations/2.0.29.js +++ b/server/migrations/2.0.29.js @@ -1 +1 @@ -const a907_0x170b=['dialAMDMaximumNumberOfWords','#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_enquiries','phoneBarUnconditional','dialAMDActive','chat_proactive_actions','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\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());','dialAMDBetweenWordsSilence','table\x20dropped\x20%s','#AMD\x20Min\x20Word\x20Length','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\x273\x27,\x20\x27set\x27,\x20\x27CALLERID(all)=${XMD-CALLERID}\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','prototype','cm_hopper_final','addIndex','phoneBarDnd','migration','dialAMDMinWordLength','Active/Disactive\x20AMD','users','phone','stringify','Changed\x20column\x20%s\x20in\x20table\x20%s','team_has_chat_queues','calleridnum','#AMD\x20Greeting','query\x20%s','enqueue','user_has_chat_interactions','query','chat_messages','dialAMDInitialSilence','#AMD\x20Initial\x20Silence','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\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());','#AMD\x20After\x20Greeting\x20Silence','chat_dispositions','addColumn','dialAMDTotalAnalysisTime','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\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_websites','chat_applications','catch','Added\x20column\x20%s\x20to\x20%s','INTEGER','exports','#AMD\x20Maximum\x20Word\x20Length','join','campaigns','sequence','info','changeColumn','chat_interactions','STRING','user_has_chat_queues','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x271\x27,\x20\x27NoOp\x27,\x20\x27\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','#AMD\x20Between\x20Words\x20Silence','openchannel_messages','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\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());','#AMD\x20Silence\x20Threshold\x20(min:0,\x20max:32767)','queryInterface','dialQueueTimeout','dialAMDSilenceThreshold','phoneBarNoReplyNumber','dialAMDGreeting','tail','then','sequelize','chat_queues','UNSIGNED','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());','dialAMDMaximumWordLength','finally','dialAMDAfterGreetingSilence','DELETE\x20FROM\x20`voice_extensions`\x20WHERE\x20exten\x20=\x20\x27xcally-motion-dialer\x27;','#AMD\x20Maximum\x20Number\x20Of\x20Words','dropTable','phoneBarBusyNumber','voice_queues','BOOLEAN','user_has_chat_rooms'];(function(_0x1e3c6d,_0x170ba1){const _0x2105e8=function(_0x29020b){while(--_0x29020b){_0x1e3c6d['push'](_0x1e3c6d['shift']());}};_0x2105e8(++_0x170ba1);}(a907_0x170b,0x15e));const a907_0x2105=function(_0x1e3c6d,_0x170ba1){_0x1e3c6d=_0x1e3c6d-0x0;let _0x2105e8=a907_0x170b[_0x1e3c6d];return _0x2105e8;};const _0x199cb6=a907_0x2105;'use strict';const logger=require('../config/logger')(_0x199cb6('0x4d')),Sequence=function(){};Sequence[_0x199cb6('0x49')]['enqueue']=function(_0x29020b){const _0xe90156=_0x199cb6;this['tail']=this[_0xe90156('0x2c')]?this['tail'][_0xe90156('0x33')](_0x29020b):_0x29020b();};const Migration=function(_0x1c6328){const _0x57e50b=_0x199cb6;this['queryInterface']=_0x1c6328,this[_0x57e50b('0x1c')]=new Sequence();};Migration[_0x199cb6('0x49')][_0x199cb6('0x1e')]=function(_0x572f30,_0x2c2394,_0x318489){const _0x1d92ed=this;this['sequence']['enqueue'](function(){const _0x1f5d84=a907_0x2105;return _0x1d92ed[_0x1f5d84('0x27')][_0x1f5d84('0x1e')](_0x572f30,_0x2c2394,_0x318489)[_0x1f5d84('0x2d')](function(){const _0x3de1ff=_0x1f5d84;logger[_0x3de1ff('0x1d')](_0x3de1ff('0x1'),_0x2c2394,_0x572f30);})[_0x1f5d84('0x15')](function(_0x30672c){logger['info'](JSON['stringify'](_0x30672c));});});},Migration['prototype']['addColumn']=function(_0x5ae9d9,_0x4176db,_0x5e5fbc){const _0x35e75a=_0x199cb6,_0x8ec96d=this;this['sequence'][_0x35e75a('0x6')](function(){const _0xcc1479=_0x35e75a;return _0x8ec96d[_0xcc1479('0x27')][_0xcc1479('0x10')](_0x5ae9d9,_0x4176db,_0x5e5fbc)['then'](function(){const _0x6c4c8f=_0xcc1479;logger[_0x6c4c8f('0x1d')](_0x6c4c8f('0x16'),_0x4176db,_0x5ae9d9);})['catch'](function(_0x12d643){const _0x492b37=_0xcc1479;logger[_0x492b37('0x1d')](JSON['stringify'](_0x12d643));});});},Migration[_0x199cb6('0x49')][_0x199cb6('0x37')]=function(_0x59968d){const _0x4defe3=_0x199cb6,_0x420f49=this;this[_0x4defe3('0x1c')][_0x4defe3('0x6')](function(){const _0x3bc788=_0x4defe3;return _0x420f49[_0x3bc788('0x27')]['dropTable'](_0x59968d,{'force':!![]})['then'](function(){const _0x42ab65=_0x3bc788;logger[_0x42ab65('0x1d')](_0x42ab65('0x45'),_0x59968d);})[_0x3bc788('0x15')](function(_0x1ea780){const _0x4eeaaf=_0x3bc788;logger[_0x4eeaaf('0x1d')](JSON[_0x4eeaaf('0x0')](_0x1ea780));});});},Migration[_0x199cb6('0x49')][_0x199cb6('0x4b')]=function(_0x29525b,_0x31db80,_0x38a334){const _0x538d5e=_0x199cb6,_0x5b4d09=this;this[_0x538d5e('0x1c')]['enqueue'](function(){const _0x586d62=_0x538d5e;return _0x5b4d09[_0x586d62('0x27')][_0x586d62('0x4b')](_0x29525b,_0x31db80,{'indexName':_0x38a334})[_0x586d62('0x2d')](function(){const _0x35b93f=_0x586d62;logger['info']('addIndex\x20%s\x20%s\x20%s',_0x29525b,_0x31db80[_0x35b93f('0x1a')](','),_0x38a334);})[_0x586d62('0x15')](function(_0x81bc08){const _0x5d6e42=_0x586d62;logger[_0x5d6e42('0x1d')](JSON[_0x5d6e42('0x0')](_0x81bc08));});});},Migration[_0x199cb6('0x49')][_0x199cb6('0x8')]=function(_0x1a8e14){const _0x3ee70a=_0x199cb6,_0x4d1ad7=this;this['sequence'][_0x3ee70a('0x6')](function(){const _0x1f1528=_0x3ee70a;return _0x4d1ad7['queryInterface'][_0x1f1528('0x2e')][_0x1f1528('0x8')](_0x1a8e14)[_0x1f1528('0x2d')](function(){const _0x3a8cb1=_0x1f1528;logger[_0x3a8cb1('0x1d')](_0x3a8cb1('0x5'),_0x1a8e14);})[_0x1f1528('0x15')](function(_0x1729df){const _0x2b5517=_0x1f1528;logger[_0x2b5517('0x1d')](JSON[_0x2b5517('0x0')](_0x1729df));});});},Migration['prototype'][_0x199cb6('0xc')]=function(_0x39cec2){const _0x2f7c4e=_0x199cb6;this[_0x2f7c4e('0x1c')]['enqueue'](function(){return _0x39cec2();});},module[_0x199cb6('0x18')]={'up':function(_0x20659c,_0x3fc433){return new Promise(function(_0x86d31a){const _0xb37504=a907_0x2105,_0x29cd6f=new Migration(_0x20659c);_0x29cd6f[_0xb37504('0x37')](_0xb37504('0x3b')),_0x29cd6f[_0xb37504('0x37')](_0xb37504('0x3f')),_0x29cd6f[_0xb37504('0x37')](_0xb37504('0x9')),_0x29cd6f[_0xb37504('0x37')](_0xb37504('0x42')),_0x29cd6f['dropTable'](_0xb37504('0xf')),_0x29cd6f[_0xb37504('0x37')](_0xb37504('0x14')),_0x29cd6f[_0xb37504('0x37')](_0xb37504('0x7')),_0x29cd6f['dropTable'](_0xb37504('0x1f')),_0x29cd6f[_0xb37504('0x37')](_0xb37504('0x2')),_0x29cd6f[_0xb37504('0x37')](_0xb37504('0x21')),_0x29cd6f['dropTable'](_0xb37504('0x2f')),_0x29cd6f[_0xb37504('0x37')](_0xb37504('0x13')),_0x29cd6f[_0xb37504('0x37')](_0xb37504('0x24')),_0x29cd6f['dropTable']('user_has_openchannel_interactions'),_0x29cd6f[_0xb37504('0x37')]('openchannel_interactions'),_0x29cd6f[_0xb37504('0x4b')](_0xb37504('0x47'),[_0xb37504('0x51')],'phone'),_0x29cd6f['addIndex'](_0xb37504('0x4a'),[_0xb37504('0x3')],_0xb37504('0x3')),_0x29cd6f['addColumn'](_0xb37504('0x50'),'phoneBarUnconditionalNumber',{'type':_0x3fc433['STRING']}),_0x29cd6f[_0xb37504('0x10')]('users',_0xb37504('0x2a'),{'type':_0x3fc433[_0xb37504('0x20')]}),_0x29cd6f['addColumn']('users',_0xb37504('0x38'),{'type':_0x3fc433[_0xb37504('0x20')]}),_0x29cd6f[_0xb37504('0x10')](_0xb37504('0x50'),_0xb37504('0x40'),{'type':_0x3fc433[_0xb37504('0x3a')],'defaultValue':![]}),_0x29cd6f[_0xb37504('0x10')](_0xb37504('0x50'),'phoneBarNoReply',{'type':_0x3fc433[_0xb37504('0x3a')],'defaultValue':![]}),_0x29cd6f[_0xb37504('0x10')]('users','phoneBarBusy',{'type':_0x3fc433[_0xb37504('0x3a')],'defaultValue':![]}),_0x29cd6f[_0xb37504('0x10')](_0xb37504('0x50'),_0xb37504('0x4c'),{'type':_0x3fc433[_0xb37504('0x3a')],'defaultValue':!![]}),_0x29cd6f[_0xb37504('0x1e')](_0xb37504('0x1b'),_0xb37504('0x28'),{'type':_0x3fc433[_0xb37504('0x17')](0x3)['UNSIGNED'],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':'Queue\x20Timeout\x20Seconds\x20(min:1,\x20max:999)'}),_0x29cd6f[_0xb37504('0x10')](_0xb37504('0x39'),_0xb37504('0x41'),{'type':_0x3fc433[_0xb37504('0x3a')],'defaultValue':0x0,'comment':'Active/Disactive\x20AMD'}),_0x29cd6f[_0xb37504('0x10')](_0xb37504('0x39'),_0xb37504('0xa'),{'type':_0x3fc433[_0xb37504('0x17')](0x9)[_0xb37504('0x30')],'validate':{'min':0x0},'defaultValue':0x9c4,'comment':_0xb37504('0xb')}),_0x29cd6f['addColumn'](_0xb37504('0x39'),_0xb37504('0x2b'),{'type':_0x3fc433['INTEGER'](0x9)[_0xb37504('0x30')],'validate':{'min':0x0},'defaultValue':0x5dc,'comment':_0xb37504('0x4')}),_0x29cd6f[_0xb37504('0x10')](_0xb37504('0x39'),_0xb37504('0x34'),{'type':_0x3fc433[_0xb37504('0x17')](0x9)[_0xb37504('0x30')],'validate':{'min':0x0},'defaultValue':0x320,'comment':_0xb37504('0xe')}),_0x29cd6f[_0xb37504('0x10')](_0xb37504('0x39'),'dialAMDTotalAnalysisTime',{'type':_0x3fc433[_0xb37504('0x17')](0x9)['UNSIGNED'],'validate':{'min':0x0},'defaultValue':0x1388,'comment':_0xb37504('0x3d')}),_0x29cd6f[_0xb37504('0x10')](_0xb37504('0x39'),_0xb37504('0x4e'),{'type':_0x3fc433[_0xb37504('0x17')](0x9)[_0xb37504('0x30')],'validate':{'min':0x0},'defaultValue':0x64,'comment':_0xb37504('0x46')}),_0x29cd6f[_0xb37504('0x10')](_0xb37504('0x39'),_0xb37504('0x44'),{'type':_0x3fc433['INTEGER'](0x9)[_0xb37504('0x30')],'validate':{'min':0x0},'defaultValue':0x32,'comment':'#AMD\x20Between\x20Words\x20Silence'}),_0x29cd6f['addColumn'](_0xb37504('0x39'),_0xb37504('0x3c'),{'type':_0x3fc433['INTEGER'](0x9)[_0xb37504('0x30')],'validate':{'min':0x0},'defaultValue':0x3,'comment':_0xb37504('0x36')}),_0x29cd6f['addColumn']('voice_queues',_0xb37504('0x29'),{'type':_0x3fc433[_0xb37504('0x17')](0x5)[_0xb37504('0x30')],'validate':{'min':0x0,'max':0x7fff},'defaultValue':0x100,'comment':_0xb37504('0x26')}),_0x29cd6f['addColumn']('voice_queues',_0xb37504('0x32'),{'type':_0x3fc433[_0xb37504('0x17')](0x9)['UNSIGNED'],'validate':{'min':0x0},'defaultValue':0x1388,'comment':_0xb37504('0x19')}),_0x29cd6f[_0xb37504('0x10')](_0xb37504('0x1b'),_0xb37504('0x41'),{'type':_0x3fc433[_0xb37504('0x3a')],'defaultValue':0x0,'comment':_0xb37504('0x4f')}),_0x29cd6f[_0xb37504('0x10')]('campaigns',_0xb37504('0xa'),{'type':_0x3fc433[_0xb37504('0x17')](0x9)[_0xb37504('0x30')],'validate':{'min':0x0},'defaultValue':0x9c4,'comment':_0xb37504('0xb')}),_0x29cd6f[_0xb37504('0x10')]('campaigns',_0xb37504('0x2b'),{'type':_0x3fc433[_0xb37504('0x17')](0x9)[_0xb37504('0x30')],'validate':{'min':0x0},'defaultValue':0x5dc,'comment':_0xb37504('0x4')}),_0x29cd6f[_0xb37504('0x10')](_0xb37504('0x1b'),_0xb37504('0x34'),{'type':_0x3fc433[_0xb37504('0x17')](0x9)[_0xb37504('0x30')],'validate':{'min':0x0},'defaultValue':0x320,'comment':_0xb37504('0xe')}),_0x29cd6f[_0xb37504('0x10')](_0xb37504('0x1b'),_0xb37504('0x11'),{'type':_0x3fc433[_0xb37504('0x17')](0x9)['UNSIGNED'],'validate':{'min':0x0},'defaultValue':0x1388,'comment':_0xb37504('0x3d')}),_0x29cd6f['addColumn'](_0xb37504('0x1b'),'dialAMDMinWordLength',{'type':_0x3fc433['INTEGER'](0x9)['UNSIGNED'],'validate':{'min':0x0},'defaultValue':0x64,'comment':_0xb37504('0x46')}),_0x29cd6f[_0xb37504('0x10')](_0xb37504('0x1b'),_0xb37504('0x44'),{'type':_0x3fc433[_0xb37504('0x17')](0x9)[_0xb37504('0x30')],'validate':{'min':0x0},'defaultValue':0x32,'comment':_0xb37504('0x23')}),_0x29cd6f['addColumn']('campaigns','dialAMDMaximumNumberOfWords',{'type':_0x3fc433[_0xb37504('0x17')](0x9)['UNSIGNED'],'validate':{'min':0x0},'defaultValue':0x3,'comment':'#AMD\x20Maximum\x20Number\x20Of\x20Words'}),_0x29cd6f[_0xb37504('0x10')](_0xb37504('0x1b'),_0xb37504('0x29'),{'type':_0x3fc433[_0xb37504('0x17')](0x5)[_0xb37504('0x30')],'validate':{'min':0x0,'max':0x7fff},'defaultValue':0x100,'comment':_0xb37504('0x26')}),_0x29cd6f[_0xb37504('0x10')]('campaigns','dialAMDMaximumWordLength',{'type':_0x3fc433[_0xb37504('0x17')](0x9)['UNSIGNED'],'validate':{'min':0x0},'defaultValue':0x1388,'comment':_0xb37504('0x19')}),_0x29cd6f[_0xb37504('0x8')](_0xb37504('0x35')),_0x29cd6f[_0xb37504('0x8')](_0xb37504('0x22')),_0x29cd6f[_0xb37504('0x8')]('INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\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());'),_0x29cd6f[_0xb37504('0x8')](_0xb37504('0x48')),_0x29cd6f[_0xb37504('0x8')]('INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\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());'),_0x29cd6f[_0xb37504('0x8')](_0xb37504('0xd')),_0x29cd6f[_0xb37504('0x8')](_0xb37504('0x12')),_0x29cd6f[_0xb37504('0x8')](_0xb37504('0x3e')),_0x29cd6f[_0xb37504('0x8')](_0xb37504('0x25')),_0x29cd6f['query'](_0xb37504('0x43')),_0x29cd6f[_0xb37504('0x8')]('INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\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());'),_0x29cd6f['query'](_0xb37504('0x31')),_0x29cd6f[_0xb37504('0xc')](_0x86d31a);});},'down':function(){}}; \ No newline at end of file +const a1069_0x5677=['#AMD\x20Maximum\x20Word\x20Length','chat_queues','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\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());','users','then','UNSIGNED','chat_enquiries','exports','finally','query','BOOLEAN','final','catch','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\x271\x27,\x20\x27NoOp\x27,\x20\x27\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','openchannel_interactions','team_has_chat_queues','cm_hopper_final','queryInterface','DELETE\x20FROM\x20`voice_extensions`\x20WHERE\x20exten\x20=\x20\x27xcally-motion-dialer\x27;','info','dialAMDGreeting','stringify','STRING','phone','dialAMDSilenceThreshold','dialAMDActive','Added\x20column\x20%s\x20to\x20%s','dialAMDInitialSilence','dialQueueTimeout','Changed\x20column\x20%s\x20in\x20table\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\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\x20Total\x20Analysis\x20Time','changeColumn','dialAMDTotalAnalysisTime','dialAMDBetweenWordsSilence','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());','#AMD\x20Between\x20Words\x20Silence','prototype','tail','enqueue','dialAMDMaximumWordLength','sequelize','phoneBarNoReply','INTEGER','chat_dispositions','dialAMDMinWordLength','migration','#AMD\x20Maximum\x20Number\x20Of\x20Words','query\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());','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\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());','#AMD\x20Initial\x20Silence','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\x272\x27,\x20\x27set\x27,\x20\x27CDR(type)=dialer\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','campaigns','#AMD\x20After\x20Greeting\x20Silence','calleridnum','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\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_proactive_actions','addIndex\x20%s\x20%s\x20%s','dialAMDMaximumNumberOfWords','#AMD\x20Greeting','sequence','chat_websites','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_rooms','dropTable','chat_interactions','addIndex','chat_messages','cm_hopper','openchannel_messages','dialAMDAfterGreetingSilence','#AMD\x20Silence\x20Threshold\x20(min:0,\x20max:32767)','user_has_chat_queues','Active/Disactive\x20AMD','addColumn'];(function(_0x5e2a69,_0x40dfce){const _0x5677a1=function(_0x54b098){while(--_0x54b098){_0x5e2a69['push'](_0x5e2a69['shift']());}};_0x5677a1(++_0x40dfce);}(a1069_0x5677,0x112));const a1069_0x54b0=function(_0x5e2a69,_0x40dfce){_0x5e2a69=_0x5e2a69-0x9c;let _0x5677a1=a1069_0x5677[_0x5e2a69];return _0x5677a1;};const a1069_0x11e68d=a1069_0x54b0;'use strict';const logger=require('../config/logger')(a1069_0x11e68d(0xa3)),Sequence=function(){};Sequence[a1069_0x11e68d(0xe8)][a1069_0x11e68d(0x9c)]=function(_0x2d0a01){const _0x567256=a1069_0x11e68d;this[_0x567256(0xe9)]=this[_0x567256(0xe9)]?this[_0x567256(0xe9)][_0x567256(0xca)](_0x2d0a01):_0x2d0a01();};const Migration=function(_0x216419){const _0x2298e2=a1069_0x11e68d;this[_0x2298e2(0xd4)]=_0x216419,this[_0x2298e2(0xb3)]=new Sequence();};Migration[a1069_0x11e68d(0xe8)][a1069_0x11e68d(0xe3)]=function(_0x2c7a78,_0x25a419,_0x38d253){const _0x4b79f7=a1069_0x11e68d,_0x3f7f60=this;this[_0x4b79f7(0xb3)][_0x4b79f7(0x9c)](function(){const _0x173a6d=_0x4b79f7;return _0x3f7f60[_0x173a6d(0xd4)][_0x173a6d(0xe3)](_0x2c7a78,_0x25a419,_0x38d253)[_0x173a6d(0xc6)](function(){const _0x2af17e=_0x173a6d;logger[_0x2af17e(0xd6)](_0x2af17e(0xe0),_0x25a419,_0x2c7a78);})['catch'](function(_0xf671d2){const _0x37cea1=_0x173a6d;logger[_0x37cea1(0xd6)](JSON[_0x37cea1(0xd8)](_0xf671d2));});});},Migration[a1069_0x11e68d(0xe8)][a1069_0x11e68d(0xc1)]=function(_0x1fbd3e,_0x14741a,_0xb24c24){const _0x438ba1=a1069_0x11e68d,_0x2f869b=this;this[_0x438ba1(0xb3)][_0x438ba1(0x9c)](function(){const _0x113740=_0x438ba1;return _0x2f869b[_0x113740(0xd4)][_0x113740(0xc1)](_0x1fbd3e,_0x14741a,_0xb24c24)[_0x113740(0xc6)](function(){const _0x22bda5=_0x113740;logger[_0x22bda5(0xd6)](_0x22bda5(0xdd),_0x14741a,_0x1fbd3e);})[_0x113740(0xce)](function(_0x29674e){const _0x397a7d=_0x113740;logger[_0x397a7d(0xd6)](JSON[_0x397a7d(0xd8)](_0x29674e));});});},Migration[a1069_0x11e68d(0xe8)][a1069_0x11e68d(0xb7)]=function(_0x4d67cf){const _0x4bfdfe=this;this['sequence']['enqueue'](function(){const _0x3f2749=a1069_0x54b0;return _0x4bfdfe[_0x3f2749(0xd4)][_0x3f2749(0xb7)](_0x4d67cf,{'force':!![]})[_0x3f2749(0xc6)](function(){const _0x42899c=_0x3f2749;logger[_0x42899c(0xd6)](_0x42899c(0xa9),_0x4d67cf);})['catch'](function(_0x5d4734){const _0x1e8c9a=_0x3f2749;logger[_0x1e8c9a(0xd6)](JSON[_0x1e8c9a(0xd8)](_0x5d4734));});});},Migration[a1069_0x11e68d(0xe8)]['addIndex']=function(_0x25eb43,_0x4ccd70,_0x4a2938){const _0x32641d=a1069_0x11e68d,_0x3dfeb7=this;this[_0x32641d(0xb3)][_0x32641d(0x9c)](function(){const _0x43d0d5=_0x32641d;return _0x3dfeb7['queryInterface'][_0x43d0d5(0xb9)](_0x25eb43,_0x4ccd70,{'indexName':_0x4a2938})[_0x43d0d5(0xc6)](function(){const _0x23c4e1=_0x43d0d5;logger[_0x23c4e1(0xd6)](_0x23c4e1(0xb0),_0x25eb43,_0x4ccd70['join'](','),_0x4a2938);})['catch'](function(_0x25b2ef){const _0x5cc17c=_0x43d0d5;logger[_0x5cc17c(0xd6)](JSON['stringify'](_0x25b2ef));});});},Migration[a1069_0x11e68d(0xe8)]['query']=function(_0x46ebed){const _0x54e557=a1069_0x11e68d,_0x3ff518=this;this[_0x54e557(0xb3)]['enqueue'](function(){const _0x7b3153=_0x54e557;return _0x3ff518[_0x7b3153(0xd4)][_0x7b3153(0x9e)]['query'](_0x46ebed)['then'](function(){const _0x529134=_0x7b3153;logger['info'](_0x529134(0xa5),_0x46ebed);})[_0x7b3153(0xce)](function(_0x423305){const _0x5ba4f0=_0x7b3153;logger[_0x5ba4f0(0xd6)](JSON[_0x5ba4f0(0xd8)](_0x423305));});});},Migration['prototype'][a1069_0x11e68d(0xcd)]=function(_0x1ba1d9){const _0x5d66cd=a1069_0x11e68d;this[_0x5d66cd(0xb3)][_0x5d66cd(0x9c)](function(){return _0x1ba1d9();});},module[a1069_0x11e68d(0xc9)]={'up':function(_0x259ea6,_0x360c6e){return new Promise(function(_0x1df0ca){const _0xe98a27=a1069_0x54b0,_0x1709fa=new Migration(_0x259ea6);_0x1709fa[_0xe98a27(0xb7)](_0xe98a27(0xb6)),_0x1709fa[_0xe98a27(0xb7)](_0xe98a27(0xc8)),_0x1709fa[_0xe98a27(0xb7)](_0xe98a27(0xba)),_0x1709fa['dropTable'](_0xe98a27(0xaf)),_0x1709fa[_0xe98a27(0xb7)](_0xe98a27(0xa1)),_0x1709fa[_0xe98a27(0xb7)]('chat_applications'),_0x1709fa[_0xe98a27(0xb7)]('user_has_chat_interactions'),_0x1709fa[_0xe98a27(0xb7)](_0xe98a27(0xb8)),_0x1709fa[_0xe98a27(0xb7)](_0xe98a27(0xd2)),_0x1709fa[_0xe98a27(0xb7)](_0xe98a27(0xbf)),_0x1709fa[_0xe98a27(0xb7)](_0xe98a27(0xc3)),_0x1709fa[_0xe98a27(0xb7)](_0xe98a27(0xb4)),_0x1709fa['dropTable'](_0xe98a27(0xbc)),_0x1709fa[_0xe98a27(0xb7)]('user_has_openchannel_interactions'),_0x1709fa['dropTable'](_0xe98a27(0xd1)),_0x1709fa[_0xe98a27(0xb9)](_0xe98a27(0xbb),[_0xe98a27(0xda)],_0xe98a27(0xda)),_0x1709fa[_0xe98a27(0xb9)](_0xe98a27(0xd3),[_0xe98a27(0xad)],'calleridnum'),_0x1709fa[_0xe98a27(0xc1)](_0xe98a27(0xc5),'phoneBarUnconditionalNumber',{'type':_0x360c6e[_0xe98a27(0xd9)]}),_0x1709fa['addColumn'](_0xe98a27(0xc5),'phoneBarNoReplyNumber',{'type':_0x360c6e['STRING']}),_0x1709fa[_0xe98a27(0xc1)]('users','phoneBarBusyNumber',{'type':_0x360c6e[_0xe98a27(0xd9)]}),_0x1709fa[_0xe98a27(0xc1)]('users','phoneBarUnconditional',{'type':_0x360c6e['BOOLEAN'],'defaultValue':![]}),_0x1709fa[_0xe98a27(0xc1)](_0xe98a27(0xc5),_0xe98a27(0x9f),{'type':_0x360c6e[_0xe98a27(0xcc)],'defaultValue':![]}),_0x1709fa[_0xe98a27(0xc1)]('users','phoneBarBusy',{'type':_0x360c6e['BOOLEAN'],'defaultValue':![]}),_0x1709fa[_0xe98a27(0xc1)](_0xe98a27(0xc5),'phoneBarDnd',{'type':_0x360c6e['BOOLEAN'],'defaultValue':!![]}),_0x1709fa[_0xe98a27(0xe3)](_0xe98a27(0xab),_0xe98a27(0xdf),{'type':_0x360c6e['INTEGER'](0x3)[_0xe98a27(0xc7)],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':'Queue\x20Timeout\x20Seconds\x20(min:1,\x20max:999)'}),_0x1709fa[_0xe98a27(0xc1)]('voice_queues',_0xe98a27(0xdc),{'type':_0x360c6e[_0xe98a27(0xcc)],'defaultValue':0x0,'comment':'Active/Disactive\x20AMD'}),_0x1709fa['addColumn'](_0xe98a27(0xcf),_0xe98a27(0xde),{'type':_0x360c6e[_0xe98a27(0xa0)](0x9)[_0xe98a27(0xc7)],'validate':{'min':0x0},'defaultValue':0x9c4,'comment':_0xe98a27(0xa8)}),_0x1709fa['addColumn'](_0xe98a27(0xcf),_0xe98a27(0xd7),{'type':_0x360c6e[_0xe98a27(0xa0)](0x9)[_0xe98a27(0xc7)],'validate':{'min':0x0},'defaultValue':0x5dc,'comment':_0xe98a27(0xb2)}),_0x1709fa[_0xe98a27(0xc1)](_0xe98a27(0xcf),_0xe98a27(0xbd),{'type':_0x360c6e['INTEGER'](0x9)['UNSIGNED'],'validate':{'min':0x0},'defaultValue':0x320,'comment':_0xe98a27(0xac)}),_0x1709fa[_0xe98a27(0xc1)](_0xe98a27(0xcf),_0xe98a27(0xe4),{'type':_0x360c6e[_0xe98a27(0xa0)](0x9)[_0xe98a27(0xc7)],'validate':{'min':0x0},'defaultValue':0x1388,'comment':_0xe98a27(0xe2)}),_0x1709fa[_0xe98a27(0xc1)](_0xe98a27(0xcf),_0xe98a27(0xa2),{'type':_0x360c6e[_0xe98a27(0xa0)](0x9)['UNSIGNED'],'validate':{'min':0x0},'defaultValue':0x64,'comment':'#AMD\x20Min\x20Word\x20Length'}),_0x1709fa[_0xe98a27(0xc1)](_0xe98a27(0xcf),'dialAMDBetweenWordsSilence',{'type':_0x360c6e[_0xe98a27(0xa0)](0x9)[_0xe98a27(0xc7)],'validate':{'min':0x0},'defaultValue':0x32,'comment':_0xe98a27(0xe7)}),_0x1709fa['addColumn'](_0xe98a27(0xcf),_0xe98a27(0xb1),{'type':_0x360c6e['INTEGER'](0x9)[_0xe98a27(0xc7)],'validate':{'min':0x0},'defaultValue':0x3,'comment':'#AMD\x20Maximum\x20Number\x20Of\x20Words'}),_0x1709fa[_0xe98a27(0xc1)](_0xe98a27(0xcf),_0xe98a27(0xdb),{'type':_0x360c6e[_0xe98a27(0xa0)](0x5)[_0xe98a27(0xc7)],'validate':{'min':0x0,'max':0x7fff},'defaultValue':0x100,'comment':_0xe98a27(0xbe)}),_0x1709fa['addColumn'](_0xe98a27(0xcf),_0xe98a27(0x9d),{'type':_0x360c6e[_0xe98a27(0xa0)](0x9)[_0xe98a27(0xc7)],'validate':{'min':0x0},'defaultValue':0x1388,'comment':_0xe98a27(0xc2)}),_0x1709fa[_0xe98a27(0xc1)](_0xe98a27(0xab),_0xe98a27(0xdc),{'type':_0x360c6e[_0xe98a27(0xcc)],'defaultValue':0x0,'comment':_0xe98a27(0xc0)}),_0x1709fa[_0xe98a27(0xc1)](_0xe98a27(0xab),_0xe98a27(0xde),{'type':_0x360c6e[_0xe98a27(0xa0)](0x9)[_0xe98a27(0xc7)],'validate':{'min':0x0},'defaultValue':0x9c4,'comment':_0xe98a27(0xa8)}),_0x1709fa[_0xe98a27(0xc1)](_0xe98a27(0xab),_0xe98a27(0xd7),{'type':_0x360c6e[_0xe98a27(0xa0)](0x9)[_0xe98a27(0xc7)],'validate':{'min':0x0},'defaultValue':0x5dc,'comment':_0xe98a27(0xb2)}),_0x1709fa[_0xe98a27(0xc1)]('campaigns','dialAMDAfterGreetingSilence',{'type':_0x360c6e[_0xe98a27(0xa0)](0x9)[_0xe98a27(0xc7)],'validate':{'min':0x0},'defaultValue':0x320,'comment':_0xe98a27(0xac)}),_0x1709fa[_0xe98a27(0xc1)]('campaigns',_0xe98a27(0xe4),{'type':_0x360c6e[_0xe98a27(0xa0)](0x9)[_0xe98a27(0xc7)],'validate':{'min':0x0},'defaultValue':0x1388,'comment':'#AMD\x20Total\x20Analysis\x20Time'}),_0x1709fa[_0xe98a27(0xc1)](_0xe98a27(0xab),_0xe98a27(0xa2),{'type':_0x360c6e['INTEGER'](0x9)[_0xe98a27(0xc7)],'validate':{'min':0x0},'defaultValue':0x64,'comment':'#AMD\x20Min\x20Word\x20Length'}),_0x1709fa[_0xe98a27(0xc1)](_0xe98a27(0xab),_0xe98a27(0xe5),{'type':_0x360c6e[_0xe98a27(0xa0)](0x9)[_0xe98a27(0xc7)],'validate':{'min':0x0},'defaultValue':0x32,'comment':_0xe98a27(0xe7)}),_0x1709fa[_0xe98a27(0xc1)]('campaigns',_0xe98a27(0xb1),{'type':_0x360c6e[_0xe98a27(0xa0)](0x9)['UNSIGNED'],'validate':{'min':0x0},'defaultValue':0x3,'comment':_0xe98a27(0xa4)}),_0x1709fa['addColumn']('campaigns',_0xe98a27(0xdb),{'type':_0x360c6e['INTEGER'](0x5)['UNSIGNED'],'validate':{'min':0x0,'max':0x7fff},'defaultValue':0x100,'comment':_0xe98a27(0xbe)}),_0x1709fa[_0xe98a27(0xc1)](_0xe98a27(0xab),_0xe98a27(0x9d),{'type':_0x360c6e[_0xe98a27(0xa0)](0x9)['UNSIGNED'],'validate':{'min':0x0},'defaultValue':0x1388,'comment':_0xe98a27(0xc2)}),_0x1709fa[_0xe98a27(0xcb)](_0xe98a27(0xd5)),_0x1709fa[_0xe98a27(0xcb)](_0xe98a27(0xd0)),_0x1709fa['query'](_0xe98a27(0xaa)),_0x1709fa['query'](_0xe98a27(0xae)),_0x1709fa['query'](_0xe98a27(0xa6)),_0x1709fa[_0xe98a27(0xcb)](_0xe98a27(0xa7)),_0x1709fa[_0xe98a27(0xcb)](_0xe98a27(0xe1)),_0x1709fa['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\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());'),_0x1709fa[_0xe98a27(0xcb)](_0xe98a27(0xe6)),_0x1709fa[_0xe98a27(0xcb)](_0xe98a27(0xc4)),_0x1709fa[_0xe98a27(0xcb)]('INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\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());'),_0x1709fa['query'](_0xe98a27(0xb5)),_0x1709fa[_0xe98a27(0xcd)](_0x1df0ca);});},'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 9504c94..d51d1c1 100644 --- a/server/migrations/2.0.30.js +++ b/server/migrations/2.0.30.js @@ -1 +1 @@ -const a908_0x507f=['changeColumn','UNSIGNED','queryInterface','chat_websites_fields','chat_messages','Changed\x20column\x20%s\x20in\x20table\x20%s','finally','team_has_chat_queues','voice_queues','prototype','chat_enquiries','addIndex','stringify','dialQueueTimeout','chat_websites','catch','table\x20dropped\x20%s','info','Queue\x20Timeout\x20Seconds\x20(min:1,\x20max:999)','addColumn','join','chat_visitors','user_has_chat_interactions','then','query\x20%s','tail','dropTable','sequence','chat_queues','chat_dispositions','../config/logger','Added\x20column\x20%s\x20to\x20%s','enqueue','chat_proactive_actions','chat_interactions','user_has_chat_queues','query','INTEGER'];(function(_0xd28655,_0x507f31){const _0xccbf35=function(_0x341045){while(--_0x341045){_0xd28655['push'](_0xd28655['shift']());}};_0xccbf35(++_0x507f31);}(a908_0x507f,0x141));const a908_0xccbf=function(_0xd28655,_0x507f31){_0xd28655=_0xd28655-0x0;let _0xccbf35=a908_0x507f[_0xd28655];return _0xccbf35;};const _0x31e5df=a908_0xccbf;'use strict';const logger=require(_0x31e5df('0xd'))('migration'),Sequence=function(){};Sequence[_0x31e5df('0x1e')][_0x31e5df('0xf')]=function(_0x341045){const _0x2efadd=_0x31e5df;this[_0x2efadd('0x8')]=this[_0x2efadd('0x8')]?this['tail'][_0x2efadd('0x1b')](_0x341045):_0x341045();};const Migration=function(_0x52be0f){this['queryInterface']=_0x52be0f,this['sequence']=new Sequence();};Migration['prototype']['changeColumn']=function(_0x34fd8c,_0x1ef7ba,_0x175c97){const _0x523901=_0x31e5df,_0x493e1d=this;this[_0x523901('0xa')][_0x523901('0xf')](function(){const _0x394324=_0x523901;return _0x493e1d[_0x394324('0x17')][_0x394324('0x15')](_0x34fd8c,_0x1ef7ba,_0x175c97)['then'](function(){const _0x1dcee5=_0x394324;logger['info'](_0x1dcee5('0x1a'),_0x1ef7ba,_0x34fd8c);})[_0x394324('0x24')](function(_0x2de863){const _0x139f62=_0x394324;logger[_0x139f62('0x0')](JSON[_0x139f62('0x21')](_0x2de863));});});},Migration[_0x31e5df('0x1e')][_0x31e5df('0x2')]=function(_0x423b2d,_0x4653de,_0x581d47){const _0x2976b3=_0x31e5df,_0x14d0e2=this;this[_0x2976b3('0xa')][_0x2976b3('0xf')](function(){const _0x3415f5=_0x2976b3;return _0x14d0e2['queryInterface']['addColumn'](_0x423b2d,_0x4653de,_0x581d47)[_0x3415f5('0x6')](function(){const _0x3806b6=_0x3415f5;logger[_0x3806b6('0x0')](_0x3806b6('0xe'),_0x4653de,_0x423b2d);})['catch'](function(_0x4be7bd){const _0x48704a=_0x3415f5;logger[_0x48704a('0x0')](JSON['stringify'](_0x4be7bd));});});},Migration['prototype'][_0x31e5df('0x9')]=function(_0x16a004){const _0x70a491=_0x31e5df,_0x317eba=this;this[_0x70a491('0xa')][_0x70a491('0xf')](function(){const _0x5f4872=_0x70a491;return _0x317eba[_0x5f4872('0x17')][_0x5f4872('0x9')](_0x16a004,{'force':!![]})[_0x5f4872('0x6')](function(){const _0x4c22bd=_0x5f4872;logger['info'](_0x4c22bd('0x25'),_0x16a004);})['catch'](function(_0x5b6053){const _0x2bf8ce=_0x5f4872;logger[_0x2bf8ce('0x0')](JSON['stringify'](_0x5b6053));});});},Migration['prototype'][_0x31e5df('0x20')]=function(_0x2208a6,_0x470a01,_0x37f2d5){const _0x421aab=_0x31e5df,_0x78210=this;this[_0x421aab('0xa')][_0x421aab('0xf')](function(){const _0x4fc10c=_0x421aab;return _0x78210[_0x4fc10c('0x17')]['addIndex'](_0x2208a6,_0x470a01,{'indexName':_0x37f2d5})[_0x4fc10c('0x6')](function(){const _0x2f7f1a=_0x4fc10c;logger[_0x2f7f1a('0x0')]('addIndex\x20%s\x20%s\x20%s',_0x2208a6,_0x470a01[_0x2f7f1a('0x3')](','),_0x37f2d5);})[_0x4fc10c('0x24')](function(_0x5afddd){logger['info'](JSON['stringify'](_0x5afddd));});});},Migration[_0x31e5df('0x1e')][_0x31e5df('0x13')]=function(_0x4e8195){const _0x5f0321=_0x31e5df,_0x555a84=this;this[_0x5f0321('0xa')][_0x5f0321('0xf')](function(){const _0x33c3e5=_0x5f0321;return _0x555a84[_0x33c3e5('0x17')]['sequelize'][_0x33c3e5('0x13')](_0x4e8195)[_0x33c3e5('0x6')](function(){const _0x1f6339=_0x33c3e5;logger[_0x1f6339('0x0')](_0x1f6339('0x7'),_0x4e8195);})[_0x33c3e5('0x24')](function(_0x537758){const _0x54d40b=_0x33c3e5;logger[_0x54d40b('0x0')](JSON['stringify'](_0x537758));});});},Migration[_0x31e5df('0x1e')]['final']=function(_0x28d0b8){const _0x4f9c3c=_0x31e5df;this[_0x4f9c3c('0xa')][_0x4f9c3c('0xf')](function(){return _0x28d0b8();});},module['exports']={'up':function(_0x2fed20,_0x454146){return new Promise(function(_0x1366ec){const _0x2cd18d=a908_0xccbf,_0x5ca58a=new Migration(_0x2fed20);_0x5ca58a[_0x2cd18d('0x9')]('user_has_chat_rooms'),_0x5ca58a[_0x2cd18d('0x9')](_0x2cd18d('0x1f')),_0x5ca58a[_0x2cd18d('0x9')](_0x2cd18d('0x19')),_0x5ca58a['dropTable'](_0x2cd18d('0x10')),_0x5ca58a[_0x2cd18d('0x9')](_0x2cd18d('0xc')),_0x5ca58a[_0x2cd18d('0x9')]('chat_applications'),_0x5ca58a[_0x2cd18d('0x9')](_0x2cd18d('0x5')),_0x5ca58a[_0x2cd18d('0x9')](_0x2cd18d('0x11')),_0x5ca58a[_0x2cd18d('0x9')](_0x2cd18d('0x1c')),_0x5ca58a['dropTable'](_0x2cd18d('0x12')),_0x5ca58a[_0x2cd18d('0x9')](_0x2cd18d('0xb')),_0x5ca58a[_0x2cd18d('0x9')](_0x2cd18d('0x4')),_0x5ca58a[_0x2cd18d('0x9')](_0x2cd18d('0x18')),_0x5ca58a[_0x2cd18d('0x9')](_0x2cd18d('0x23')),_0x5ca58a['changeColumn'](_0x2cd18d('0x1d'),_0x2cd18d('0x22'),{'type':_0x454146[_0x2cd18d('0x14')](0x3)[_0x2cd18d('0x16')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x2cd18d('0x1')}),_0x5ca58a['final'](_0x1366ec);});},'down':function(){}}; \ No newline at end of file +const a1070_0x40d0=['addIndex','UNSIGNED','INTEGER','../config/logger','chat_websites_fields','stringify','chat_queues','info','queryInterface','addIndex\x20%s\x20%s\x20%s','query\x20%s','finally','prototype','Queue\x20Timeout\x20Seconds\x20(min:1,\x20max:999)','addColumn','dropTable','Changed\x20column\x20%s\x20in\x20table\x20%s','chat_applications','query','enqueue','table\x20dropped\x20%s','team_has_chat_queues','Added\x20column\x20%s\x20to\x20%s','voice_queues','changeColumn','tail','catch','chat_enquiries','final','sequence','chat_proactive_actions','then','chat_websites'];(function(_0x216388,_0x2c3a9b){const _0x40d0eb=function(_0x2a4960){while(--_0x2a4960){_0x216388['push'](_0x216388['shift']());}};_0x40d0eb(++_0x2c3a9b);}(a1070_0x40d0,0x96));const a1070_0x2a49=function(_0x216388,_0x2c3a9b){_0x216388=_0x216388-0x1e1;let _0x40d0eb=a1070_0x40d0[_0x216388];return _0x40d0eb;};const a1070_0x6947bc=a1070_0x2a49;'use strict';const logger=require(a1070_0x6947bc(0x1f3))('migration'),Sequence=function(){};Sequence['prototype'][a1070_0x6947bc(0x1e2)]=function(_0x50ea47){const _0x12bd6d=a1070_0x6947bc;this['tail']=this[_0x12bd6d(0x1e8)]?this[_0x12bd6d(0x1e8)][_0x12bd6d(0x1fb)](_0x50ea47):_0x50ea47();};const Migration=function(_0x113c08){const _0x3f829a=a1070_0x6947bc;this[_0x3f829a(0x1f8)]=_0x113c08,this[_0x3f829a(0x1ec)]=new Sequence();};Migration[a1070_0x6947bc(0x1fc)][a1070_0x6947bc(0x1e7)]=function(_0x733fa7,_0x5758d0,_0x18980d){const _0x10546a=a1070_0x6947bc,_0x3c334b=this;this[_0x10546a(0x1ec)]['enqueue'](function(){const _0x49078d=_0x10546a;return _0x3c334b[_0x49078d(0x1f8)][_0x49078d(0x1e7)](_0x733fa7,_0x5758d0,_0x18980d)['then'](function(){const _0x2c4fe7=_0x49078d;logger[_0x2c4fe7(0x1f7)](_0x2c4fe7(0x200),_0x5758d0,_0x733fa7);})[_0x49078d(0x1e9)](function(_0x329f2e){const _0x31382d=_0x49078d;logger[_0x31382d(0x1f7)](JSON[_0x31382d(0x1f5)](_0x329f2e));});});},Migration[a1070_0x6947bc(0x1fc)][a1070_0x6947bc(0x1fe)]=function(_0x1d54c9,_0x2235f4,_0x1cfb7d){const _0x1d3fbf=this;this['sequence']['enqueue'](function(){const _0x4e78be=a1070_0x2a49;return _0x1d3fbf['queryInterface'][_0x4e78be(0x1fe)](_0x1d54c9,_0x2235f4,_0x1cfb7d)[_0x4e78be(0x1ee)](function(){const _0x530048=_0x4e78be;logger[_0x530048(0x1f7)](_0x530048(0x1e5),_0x2235f4,_0x1d54c9);})['catch'](function(_0x523ef1){const _0x482c27=_0x4e78be;logger[_0x482c27(0x1f7)](JSON[_0x482c27(0x1f5)](_0x523ef1));});});},Migration[a1070_0x6947bc(0x1fc)]['dropTable']=function(_0x238d47){const _0x3ec07b=a1070_0x6947bc,_0x4cad83=this;this[_0x3ec07b(0x1ec)]['enqueue'](function(){const _0x53a597=_0x3ec07b;return _0x4cad83[_0x53a597(0x1f8)][_0x53a597(0x1ff)](_0x238d47,{'force':!![]})[_0x53a597(0x1ee)](function(){const _0x1240c4=_0x53a597;logger['info'](_0x1240c4(0x1e3),_0x238d47);})[_0x53a597(0x1e9)](function(_0x323a06){const _0x24e565=_0x53a597;logger[_0x24e565(0x1f7)](JSON['stringify'](_0x323a06));});});},Migration[a1070_0x6947bc(0x1fc)][a1070_0x6947bc(0x1f0)]=function(_0x5813b1,_0x5357e4,_0x430825){const _0x492109=a1070_0x6947bc,_0x3480a2=this;this['sequence'][_0x492109(0x1e2)](function(){const _0x23acd2=_0x492109;return _0x3480a2[_0x23acd2(0x1f8)][_0x23acd2(0x1f0)](_0x5813b1,_0x5357e4,{'indexName':_0x430825})[_0x23acd2(0x1ee)](function(){const _0x190efc=_0x23acd2;logger[_0x190efc(0x1f7)](_0x190efc(0x1f9),_0x5813b1,_0x5357e4['join'](','),_0x430825);})[_0x23acd2(0x1e9)](function(_0x1cf557){const _0x1c0986=_0x23acd2;logger[_0x1c0986(0x1f7)](JSON[_0x1c0986(0x1f5)](_0x1cf557));});});},Migration[a1070_0x6947bc(0x1fc)][a1070_0x6947bc(0x1e1)]=function(_0xa9134a){const _0x271e4b=a1070_0x6947bc,_0x6d83fd=this;this['sequence'][_0x271e4b(0x1e2)](function(){const _0x3a9e7e=_0x271e4b;return _0x6d83fd[_0x3a9e7e(0x1f8)]['sequelize'][_0x3a9e7e(0x1e1)](_0xa9134a)[_0x3a9e7e(0x1ee)](function(){const _0x32d8a4=_0x3a9e7e;logger[_0x32d8a4(0x1f7)](_0x32d8a4(0x1fa),_0xa9134a);})[_0x3a9e7e(0x1e9)](function(_0xdfeb09){const _0x526d30=_0x3a9e7e;logger[_0x526d30(0x1f7)](JSON['stringify'](_0xdfeb09));});});},Migration[a1070_0x6947bc(0x1fc)][a1070_0x6947bc(0x1eb)]=function(_0x440533){const _0x39592f=a1070_0x6947bc;this[_0x39592f(0x1ec)][_0x39592f(0x1e2)](function(){return _0x440533();});},module['exports']={'up':function(_0x86bb5b,_0x1d8fa3){return new Promise(function(_0x503bd6){const _0x2a0356=a1070_0x2a49,_0x541be9=new Migration(_0x86bb5b);_0x541be9[_0x2a0356(0x1ff)]('user_has_chat_rooms'),_0x541be9['dropTable'](_0x2a0356(0x1ea)),_0x541be9[_0x2a0356(0x1ff)]('chat_messages'),_0x541be9[_0x2a0356(0x1ff)](_0x2a0356(0x1ed)),_0x541be9['dropTable']('chat_dispositions'),_0x541be9['dropTable'](_0x2a0356(0x201)),_0x541be9[_0x2a0356(0x1ff)]('user_has_chat_interactions'),_0x541be9['dropTable']('chat_interactions'),_0x541be9[_0x2a0356(0x1ff)](_0x2a0356(0x1e4)),_0x541be9['dropTable']('user_has_chat_queues'),_0x541be9[_0x2a0356(0x1ff)](_0x2a0356(0x1f6)),_0x541be9[_0x2a0356(0x1ff)]('chat_visitors'),_0x541be9[_0x2a0356(0x1ff)](_0x2a0356(0x1f4)),_0x541be9[_0x2a0356(0x1ff)](_0x2a0356(0x1ef)),_0x541be9['changeColumn'](_0x2a0356(0x1e6),'dialQueueTimeout',{'type':_0x1d8fa3[_0x2a0356(0x1f2)](0x3)[_0x2a0356(0x1f1)],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x2a0356(0x1fd)}),_0x541be9['final'](_0x503bd6);});},'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 92f9f04..1500a5f 100644 --- a/server/migrations/2.0.31.js +++ b/server/migrations/2.0.31.js @@ -1 +1 @@ -const a909_0x2031=['transferexten','enqueue','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','tail','user_has_sms_interactions','ALTER\x20TABLE\x20chat_websites\x20DROP\x20FOREIGN\x20KEY\x20chat_websites_ibfk_2','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\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());','sequelize','report_queue','sms_queues','twitter','dropTable','migration','info','Added\x20column\x20%s\x20to\x20%s','final','sms_accounts','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());','join','queryInterface','catch','questionId','users','token','Changed\x20column\x20%s\x20in\x20table\x20%s','report_jscripty_answers','sms_messages','exports','STRING','addIndex','query','cm_contacts','sequence','sms_interactions','user_has_sms_queues','ALTER\x20TABLE\x20chat_websites\x20DROP\x20COLUMN\x20OfflineTemplateId','FORWARD,\x20BLIND,\x20ATTENDED','transfer','report_jscripty_questions','changeColumn','addIndex\x20%s\x20%s\x20%s','chat_websites','../config/logger','IntervalId','then','prototype','addColumn','finally'];(function(_0x49f761,_0x2031d1){const _0x40a809=function(_0x2b42eb){while(--_0x2b42eb){_0x49f761['push'](_0x49f761['shift']());}};_0x40a809(++_0x2031d1);}(a909_0x2031,0x1e6));const a909_0x40a8=function(_0x49f761,_0x2031d1){_0x49f761=_0x49f761-0x0;let _0x40a809=a909_0x2031[_0x49f761];return _0x40a809;};const _0xe53d8f=a909_0x40a8;'use strict';const logger=require(_0xe53d8f('0x2f'))(_0xe53d8f('0x11')),Sequence=function(){};Sequence['prototype']['enqueue']=function(_0x2b42eb){const _0x307332=_0xe53d8f;this[_0x307332('0x7')]=this[_0x307332('0x7')]?this[_0x307332('0x7')][_0x307332('0x3')](_0x2b42eb):_0x2b42eb();};const Migration=function(_0x27f30a){const _0x18911d=_0xe53d8f;this[_0x18911d('0x18')]=_0x27f30a,this[_0x18911d('0x25')]=new Sequence();};Migration[_0xe53d8f('0x1')][_0xe53d8f('0x2c')]=function(_0x4bdf37,_0x39ed70,_0x4de299){const _0x40df62=_0xe53d8f,_0x3eb737=this;this[_0x40df62('0x25')][_0x40df62('0x5')](function(){const _0x3de9b6=_0x40df62;return _0x3eb737['queryInterface'][_0x3de9b6('0x2c')](_0x4bdf37,_0x39ed70,_0x4de299)[_0x3de9b6('0x0')](function(){const _0x53fb22=_0x3de9b6;logger[_0x53fb22('0x12')](_0x53fb22('0x1d'),_0x39ed70,_0x4bdf37);})[_0x3de9b6('0x19')](function(_0x31158c){const _0x4c2785=_0x3de9b6;logger[_0x4c2785('0x12')](JSON[_0x4c2785('0xa')](_0x31158c));});});},Migration['prototype'][_0xe53d8f('0x2')]=function(_0x118a72,_0x3a61cb,_0xb0222b){const _0x1b5a7a=_0xe53d8f,_0x67f448=this;this[_0x1b5a7a('0x25')][_0x1b5a7a('0x5')](function(){const _0x4e867d=_0x1b5a7a;return _0x67f448[_0x4e867d('0x18')][_0x4e867d('0x2')](_0x118a72,_0x3a61cb,_0xb0222b)[_0x4e867d('0x0')](function(){const _0x4aceab=_0x4e867d;logger[_0x4aceab('0x12')](_0x4aceab('0x13'),_0x3a61cb,_0x118a72);})['catch'](function(_0x49e048){logger['info'](JSON['stringify'](_0x49e048));});});},Migration[_0xe53d8f('0x1')][_0xe53d8f('0x10')]=function(_0x5457fa){const _0x5bbca4=_0xe53d8f,_0x5d1aa4=this;this['sequence'][_0x5bbca4('0x5')](function(){const _0x20246b=_0x5bbca4;return _0x5d1aa4['queryInterface'][_0x20246b('0x10')](_0x5457fa,{'force':!![]})[_0x20246b('0x0')](function(){const _0x224bef=_0x20246b;logger[_0x224bef('0x12')]('table\x20dropped\x20%s',_0x5457fa);})[_0x20246b('0x19')](function(_0x56180b){const _0x47db3b=_0x20246b;logger['info'](JSON[_0x47db3b('0xa')](_0x56180b));});});},Migration[_0xe53d8f('0x1')]['addIndex']=function(_0x3cd77e,_0x4c2ceb,_0x4aa85c){const _0x57df06=_0xe53d8f,_0x46250b=this;this[_0x57df06('0x25')][_0x57df06('0x5')](function(){const _0x53d87a=_0x57df06;return _0x46250b[_0x53d87a('0x18')][_0x53d87a('0x22')](_0x3cd77e,_0x4c2ceb,{'indexName':_0x4aa85c})[_0x53d87a('0x0')](function(){const _0x4e83c1=_0x53d87a;logger[_0x4e83c1('0x12')](_0x4e83c1('0x2d'),_0x3cd77e,_0x4c2ceb[_0x4e83c1('0x17')](','),_0x4aa85c);})[_0x53d87a('0x19')](function(_0x14729d){const _0x30cb35=_0x53d87a;logger[_0x30cb35('0x12')](JSON[_0x30cb35('0xa')](_0x14729d));});});},Migration[_0xe53d8f('0x1')]['query']=function(_0x223c0d){const _0x2eab66=_0xe53d8f,_0x44fc01=this;this[_0x2eab66('0x25')][_0x2eab66('0x5')](function(){const _0x2889ec=_0x2eab66;return _0x44fc01[_0x2889ec('0x18')][_0x2889ec('0xc')]['query'](_0x223c0d)['then'](function(){const _0x20cc00=_0x2889ec;logger[_0x20cc00('0x12')]('query\x20%s',_0x223c0d);})[_0x2889ec('0x19')](function(_0x3753c0){logger['info'](JSON['stringify'](_0x3753c0));});});},Migration[_0xe53d8f('0x1')][_0xe53d8f('0x14')]=function(_0x49a688){const _0x597263=_0xe53d8f;this[_0x597263('0x25')][_0x597263('0x5')](function(){return _0x49a688();});},module[_0xe53d8f('0x20')]={'up':function(_0x20c070,_0xb8c5cc){return new Promise(function(_0x45b23c){const _0x569986=a909_0x40a8,_0x5cdb81=new Migration(_0x20c070);_0x5cdb81[_0x569986('0x10')](_0x569986('0x1f')),_0x5cdb81[_0x569986('0x10')]('sms_dispositions'),_0x5cdb81[_0x569986('0x10')]('sms_applications'),_0x5cdb81[_0x569986('0x10')](_0x569986('0x8')),_0x5cdb81[_0x569986('0x10')](_0x569986('0x26')),_0x5cdb81[_0x569986('0x10')]('team_has_sms_queues'),_0x5cdb81['dropTable'](_0x569986('0x27')),_0x5cdb81[_0x569986('0x10')](_0x569986('0xe')),_0x5cdb81[_0x569986('0x10')](_0x569986('0x15')),_0x5cdb81[_0x569986('0x2')](_0x569986('0x24'),'facebook',{'type':_0xb8c5cc['STRING']}),_0x5cdb81[_0x569986('0x2')](_0x569986('0x24'),_0x569986('0xf'),{'type':_0xb8c5cc[_0x569986('0x21')]}),_0x5cdb81[_0x569986('0x23')](_0x569986('0x9')),_0x5cdb81[_0x569986('0x23')](_0x569986('0x28')),_0x5cdb81[_0x569986('0x2')]('chat_websites','timezone',{'type':_0xb8c5cc[_0x569986('0x21')]}),_0x5cdb81[_0x569986('0x2')](_0x569986('0x2e'),_0x569986('0x1c'),{'type':_0xb8c5cc[_0x569986('0x21')]}),_0x5cdb81[_0x569986('0x2')]('chat_websites',_0x569986('0x30'),{'type':_0xb8c5cc['INTEGER'](0xb)}),_0x5cdb81['query'](_0x569986('0x6')),_0x5cdb81[_0x569986('0x2')](_0x569986('0xd'),_0x569986('0x2a'),{'type':_0xb8c5cc['BOOLEAN'],'defaultValue':![]}),_0x5cdb81[_0x569986('0x2')]('report_queue','transfertype',{'type':_0xb8c5cc[_0x569986('0x21')],'comment':_0x569986('0x29')}),_0x5cdb81[_0x569986('0x2')](_0x569986('0xd'),_0x569986('0x4'),{'type':_0xb8c5cc['STRING']}),_0x5cdb81[_0x569986('0x2')](_0x569986('0xd'),'transferuniqueid',{'type':_0xb8c5cc[_0x569986('0x21')]}),_0x5cdb81[_0x569986('0x2')](_0x569986('0x1e'),_0x569986('0x1a'),{'type':_0xb8c5cc['STRING']}),_0x5cdb81[_0x569986('0x2')](_0x569986('0x2b'),'questionId',{'type':_0xb8c5cc[_0x569986('0x21')]}),_0x5cdb81[_0x569986('0x2')](_0x569986('0x1b'),'phoneBarUnansweredCallBadge',{'type':_0xb8c5cc['BOOLEAN'],'defaultValue':!![]}),_0x5cdb81[_0x569986('0x23')]('INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\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());'),_0x5cdb81[_0x569986('0x23')]('INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\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());'),_0x5cdb81[_0x569986('0x23')]('INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\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());'),_0x5cdb81[_0x569986('0x23')](_0x569986('0xb')),_0x5cdb81['query'](_0x569986('0x16')),_0x5cdb81[_0x569986('0x14')](_0x45b23c);});},'down':function(){}}; \ No newline at end of file +const a1071_0x124f=['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());','addIndex\x20%s\x20%s\x20%s','users','BOOLEAN','IntervalId','Changed\x20column\x20%s\x20in\x20table\x20%s','final','stringify','report_jscripty_answers','user_has_sms_queues','questionId','changeColumn','addColumn','prototype','then','token','team_has_sms_queues','sms_interactions','cm_contacts','phoneBarUnansweredCallBadge','timezone','sequelize','sms_accounts','info','user_has_sms_interactions','report_jscripty_questions','sequence','queryInterface','join','dropTable','migration','enqueue','exports','catch','Added\x20column\x20%s\x20to\x20%s','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-preview\x27,\x20\x271\x27,\x20\x27NoOp\x27,\x20\x27\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','chat_websites','query\x20%s','tail','ALTER\x20TABLE\x20chat_websites\x20ADD\x20CONSTRAINT\x20chat_websites_ibfk_2\x20FOREIGN\x20KEY\x20(IntervalId)\x20REFERENCES\x20tools_intervals(id)\x20ON\x20UPDATE\x20CASCADE\x20ON\x20DELETE\x20SET\x20NULL','STRING','query','../config/logger','twitter','addIndex','finally','report_queue','ALTER\x20TABLE\x20chat_websites\x20DROP\x20COLUMN\x20OfflineTemplateId','sms_applications','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-preview\x27,\x20\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());','ALTER\x20TABLE\x20chat_websites\x20DROP\x20FOREIGN\x20KEY\x20chat_websites_ibfk_2','transferexten','table\x20dropped\x20%s','sms_queues'];(function(_0x457564,_0x3e9b33){const _0x124f8a=function(_0x41e9ca){while(--_0x41e9ca){_0x457564['push'](_0x457564['shift']());}};_0x124f8a(++_0x3e9b33);}(a1071_0x124f,0x66));const a1071_0x41e9=function(_0x457564,_0x3e9b33){_0x457564=_0x457564-0x92;let _0x124f8a=a1071_0x124f[_0x457564];return _0x124f8a;};const a1071_0xbafb9b=a1071_0x41e9;'use strict';const logger=require(a1071_0xbafb9b(0xc2))(a1071_0xbafb9b(0xb6)),Sequence=function(){};Sequence[a1071_0xbafb9b(0xa5)]['enqueue']=function(_0x12d0bd){const _0x266039=a1071_0xbafb9b;this[_0x266039(0xbe)]=this[_0x266039(0xbe)]?this[_0x266039(0xbe)][_0x266039(0xc5)](_0x12d0bd):_0x12d0bd();};const Migration=function(_0x1072ea){const _0x515f35=a1071_0xbafb9b;this[_0x515f35(0xb3)]=_0x1072ea,this[_0x515f35(0xb2)]=new Sequence();};Migration[a1071_0xbafb9b(0xa5)][a1071_0xbafb9b(0xa3)]=function(_0x3b9c58,_0x3ccd81,_0x1b6985){const _0x4bb092=a1071_0xbafb9b,_0x52fd61=this;this[_0x4bb092(0xb2)][_0x4bb092(0xb7)](function(){const _0x6a1f5a=_0x4bb092;return _0x52fd61[_0x6a1f5a(0xb3)]['changeColumn'](_0x3b9c58,_0x3ccd81,_0x1b6985)[_0x6a1f5a(0xa6)](function(){const _0x51589b=_0x6a1f5a;logger[_0x51589b(0xaf)](_0x51589b(0x9d),_0x3ccd81,_0x3b9c58);})[_0x6a1f5a(0xb9)](function(_0x3d84bc){logger['info'](JSON['stringify'](_0x3d84bc));});});},Migration[a1071_0xbafb9b(0xa5)][a1071_0xbafb9b(0xa4)]=function(_0x1e958e,_0x25c011,_0x23ae8a){const _0x14e08a=a1071_0xbafb9b,_0x5a8d06=this;this['sequence'][_0x14e08a(0xb7)](function(){const _0x7223ad=_0x14e08a;return _0x5a8d06['queryInterface'][_0x7223ad(0xa4)](_0x1e958e,_0x25c011,_0x23ae8a)[_0x7223ad(0xa6)](function(){const _0x52495c=_0x7223ad;logger[_0x52495c(0xaf)](_0x52495c(0xba),_0x25c011,_0x1e958e);})[_0x7223ad(0xb9)](function(_0x49615){const _0x56a14c=_0x7223ad;logger['info'](JSON[_0x56a14c(0x9f)](_0x49615));});});},Migration['prototype'][a1071_0xbafb9b(0xb5)]=function(_0x53bbf4){const _0x344333=a1071_0xbafb9b,_0x25efd1=this;this[_0x344333(0xb2)]['enqueue'](function(){const _0x4d0fdb=_0x344333;return _0x25efd1[_0x4d0fdb(0xb3)][_0x4d0fdb(0xb5)](_0x53bbf4,{'force':!![]})['then'](function(){const _0x314b0b=_0x4d0fdb;logger[_0x314b0b(0xaf)](_0x314b0b(0x96),_0x53bbf4);})[_0x4d0fdb(0xb9)](function(_0x153c9d){const _0x37beed=_0x4d0fdb;logger[_0x37beed(0xaf)](JSON['stringify'](_0x153c9d));});});},Migration[a1071_0xbafb9b(0xa5)][a1071_0xbafb9b(0xc4)]=function(_0x5dc7be,_0x5e7f2c,_0xf030ae){const _0x503e04=a1071_0xbafb9b,_0x2f7868=this;this[_0x503e04(0xb2)][_0x503e04(0xb7)](function(){const _0x18bda0=_0x503e04;return _0x2f7868['queryInterface'][_0x18bda0(0xc4)](_0x5dc7be,_0x5e7f2c,{'indexName':_0xf030ae})[_0x18bda0(0xa6)](function(){const _0xb375e4=_0x18bda0;logger[_0xb375e4(0xaf)](_0xb375e4(0x99),_0x5dc7be,_0x5e7f2c[_0xb375e4(0xb4)](','),_0xf030ae);})[_0x18bda0(0xb9)](function(_0x3195ef){const _0xe96610=_0x18bda0;logger['info'](JSON[_0xe96610(0x9f)](_0x3195ef));});});},Migration['prototype'][a1071_0xbafb9b(0xc1)]=function(_0x47365f){const _0x3108fe=a1071_0xbafb9b,_0x1ea26b=this;this[_0x3108fe(0xb2)][_0x3108fe(0xb7)](function(){const _0x43a2b6=_0x3108fe;return _0x1ea26b[_0x43a2b6(0xb3)][_0x43a2b6(0xad)][_0x43a2b6(0xc1)](_0x47365f)['then'](function(){const _0x8ce731=_0x43a2b6;logger[_0x8ce731(0xaf)](_0x8ce731(0xbd),_0x47365f);})['catch'](function(_0x1fa9a7){const _0x3439e8=_0x43a2b6;logger[_0x3439e8(0xaf)](JSON['stringify'](_0x1fa9a7));});});},Migration[a1071_0xbafb9b(0xa5)][a1071_0xbafb9b(0x9e)]=function(_0x464b50){const _0x4cebfa=a1071_0xbafb9b;this[_0x4cebfa(0xb2)][_0x4cebfa(0xb7)](function(){return _0x464b50();});},module[a1071_0xbafb9b(0xb8)]={'up':function(_0x8555fb,_0x24be6c){return new Promise(function(_0x1a750f){const _0x42125c=a1071_0x41e9,_0x2f2869=new Migration(_0x8555fb);_0x2f2869[_0x42125c(0xb5)]('sms_messages'),_0x2f2869[_0x42125c(0xb5)]('sms_dispositions'),_0x2f2869[_0x42125c(0xb5)](_0x42125c(0x92)),_0x2f2869[_0x42125c(0xb5)](_0x42125c(0xb0)),_0x2f2869['dropTable'](_0x42125c(0xa9)),_0x2f2869[_0x42125c(0xb5)](_0x42125c(0xa8)),_0x2f2869[_0x42125c(0xb5)](_0x42125c(0xa1)),_0x2f2869[_0x42125c(0xb5)](_0x42125c(0x97)),_0x2f2869[_0x42125c(0xb5)](_0x42125c(0xae)),_0x2f2869['addColumn'](_0x42125c(0xaa),'facebook',{'type':_0x24be6c[_0x42125c(0xc0)]}),_0x2f2869[_0x42125c(0xa4)](_0x42125c(0xaa),_0x42125c(0xc3),{'type':_0x24be6c[_0x42125c(0xc0)]}),_0x2f2869['query'](_0x42125c(0x94)),_0x2f2869[_0x42125c(0xc1)](_0x42125c(0xc7)),_0x2f2869[_0x42125c(0xa4)]('chat_websites',_0x42125c(0xac),{'type':_0x24be6c[_0x42125c(0xc0)]}),_0x2f2869[_0x42125c(0xa4)](_0x42125c(0xbc),_0x42125c(0xa7),{'type':_0x24be6c[_0x42125c(0xc0)]}),_0x2f2869[_0x42125c(0xa4)](_0x42125c(0xbc),_0x42125c(0x9c),{'type':_0x24be6c['INTEGER'](0xb)}),_0x2f2869['query'](_0x42125c(0xbf)),_0x2f2869[_0x42125c(0xa4)](_0x42125c(0xc6),'transfer',{'type':_0x24be6c[_0x42125c(0x9b)],'defaultValue':![]}),_0x2f2869[_0x42125c(0xa4)](_0x42125c(0xc6),'transfertype',{'type':_0x24be6c['STRING'],'comment':'FORWARD,\x20BLIND,\x20ATTENDED'}),_0x2f2869[_0x42125c(0xa4)](_0x42125c(0xc6),_0x42125c(0x95),{'type':_0x24be6c[_0x42125c(0xc0)]}),_0x2f2869[_0x42125c(0xa4)](_0x42125c(0xc6),'transferuniqueid',{'type':_0x24be6c[_0x42125c(0xc0)]}),_0x2f2869[_0x42125c(0xa4)](_0x42125c(0xa0),'questionId',{'type':_0x24be6c[_0x42125c(0xc0)]}),_0x2f2869['addColumn'](_0x42125c(0xb1),_0x42125c(0xa2),{'type':_0x24be6c[_0x42125c(0xc0)]}),_0x2f2869[_0x42125c(0xa4)](_0x42125c(0x9a),_0x42125c(0xab),{'type':_0x24be6c[_0x42125c(0x9b)],'defaultValue':!![]}),_0x2f2869[_0x42125c(0xc1)](_0x42125c(0xbb)),_0x2f2869[_0x42125c(0xc1)]('INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\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());'),_0x2f2869[_0x42125c(0xc1)]('INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\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());'),_0x2f2869[_0x42125c(0xc1)](_0x42125c(0x93)),_0x2f2869['query'](_0x42125c(0x98)),_0x2f2869['final'](_0x1a750f);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.0.32.js b/server/migrations/2.0.32.js index c3fb4ed..aa2c7b4 100644 --- a/server/migrations/2.0.32.js +++ b/server/migrations/2.0.32.js @@ -1 +1 @@ -var a910_0x466b=['exports'];(function(_0x16c69a,_0x466bb1){var _0x292b25=function(_0x13aa27){while(--_0x13aa27){_0x16c69a['push'](_0x16c69a['shift']());}};_0x292b25(++_0x466bb1);}(a910_0x466b,0x150));var a910_0x292b=function(_0x16c69a,_0x466bb1){_0x16c69a=_0x16c69a-0x0;var _0x292b25=a910_0x466b[_0x16c69a];return _0x292b25;};var _0x52d8db=a910_0x292b;'use strict';module[_0x52d8db('0x0')]={'up':function(){},'down':function(){}}; \ No newline at end of file +var a1072_0x1120=['exports'];(function(_0x34719c,_0x2ca4dc){var _0x11203c=function(_0x194924){while(--_0x194924){_0x34719c['push'](_0x34719c['shift']());}};_0x11203c(++_0x2ca4dc);}(a1072_0x1120,0x18d));var a1072_0x1949=function(_0x34719c,_0x2ca4dc){_0x34719c=_0x34719c-0x111;var _0x11203c=a1072_0x1120[_0x34719c];return _0x11203c;};var a1072_0x4674f4=a1072_0x1949;'use strict';module[a1072_0x4674f4(0x111)]={'up':function(){},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.0.33.js b/server/migrations/2.0.33.js index cbb99a1..39f8a67 100644 --- a/server/migrations/2.0.33.js +++ b/server/migrations/2.0.33.js @@ -1 +1 @@ -const a911_0x3cd9=['removeColumn','table\x20dropped\x20%s','enableRating','email','user_has_fax_rooms','mapKeyOffline','finally','chat_websites','addIndex\x20%s\x20%s\x20%s','forwardTranscript','closingMessageButton','dropTable','closeUrl','enqueue','team_has_fax_queues','actions','fax_rooms','query\x20%s','TEXT','forwardOffline','tail','join','fax_messages','util','catch','sequelize','sequence','prototype','query','color','ENUM','STRING','sitepic','exports','then','Changed\x20column\x20%s\x20in\x20table\x20%s','thumb','Added\x20column\x20%s\x20to\x20%s','user_has_fax_interactions','closeMethod','ratingMessage','changeColumn','final','cm_hopper','queue','addIndex','ratingStarsNumber','assigned','acceptUrl','BOOLEAN','fax_dispositions','fax_applications','color_button','fax_queues','queryInterface','fax_attachments','rejectUrl','agentAlias','fax_accounts','fidelity','user_has_chat_queues','user_has_fax_queues','rejectMethod','user_has_openchannel_queues','stringify','../config/logger','closingMessage','forwardOfflineAddress','addColumn','inspect','Removed\x20column\x20%s\x20from\x20%s','star','info','chat_interactions','ratingValue','INTEGER'];(function(_0x52c42d,_0x3cd901){const _0x45be5f=function(_0x3d659d){while(--_0x3d659d){_0x52c42d['push'](_0x52c42d['shift']());}};_0x45be5f(++_0x3cd901);}(a911_0x3cd9,0x13e));const a911_0x45be=function(_0x52c42d,_0x3cd901){_0x52c42d=_0x52c42d-0x0;let _0x45be5f=a911_0x3cd9[_0x52c42d];return _0x45be5f;};const _0x31e6fa=a911_0x45be;'use strict';const logger=require(_0x31e6fa('0x33'))('migration'),util=require(_0x31e6fa('0x9')),Sequence=function(){};Sequence['prototype'][_0x31e6fa('0x4b')]=function(_0x3d659d){const _0x3305ec=_0x31e6fa;this[_0x3305ec('0x6')]=this[_0x3305ec('0x6')]?this[_0x3305ec('0x6')][_0x3305ec('0x44')](_0x3d659d):_0x3d659d();};const Migration=function(_0x4bdc82){const _0x1f74b6=_0x31e6fa;this[_0x1f74b6('0x28')]=_0x4bdc82,this[_0x1f74b6('0xc')]=new Sequence();};Migration[_0x31e6fa('0xd')][_0x31e6fa('0x1b')]=function(_0x326c4a,_0x3ab3e1,_0x20d5cd){const _0x3efe58=_0x31e6fa,_0x91c15f=this;this[_0x3efe58('0xc')]['enqueue'](function(){const _0x46ff70=_0x3efe58;return _0x91c15f[_0x46ff70('0x28')][_0x46ff70('0x1b')](_0x326c4a,_0x3ab3e1,_0x20d5cd)['then'](function(){const _0x4c3121=_0x46ff70;logger[_0x4c3121('0x3a')](_0x4c3121('0x15'),_0x3ab3e1,_0x326c4a);})['catch'](function(_0x2a8d64){const _0x5b7758=_0x46ff70;logger[_0x5b7758('0x3a')](JSON[_0x5b7758('0x32')](_0x2a8d64));});});},Migration[_0x31e6fa('0xd')][_0x31e6fa('0x36')]=function(_0x53a41e,_0x41b02f,_0x319a45){const _0x56d227=_0x31e6fa,_0x56ab66=this;this[_0x56d227('0xc')][_0x56d227('0x4b')](function(){const _0x490e83=_0x56d227;return _0x56ab66[_0x490e83('0x28')]['addColumn'](_0x53a41e,_0x41b02f,_0x319a45)[_0x490e83('0x14')](function(){const _0x503476=_0x490e83;logger[_0x503476('0x3a')](_0x503476('0x17'),_0x41b02f,_0x53a41e);})[_0x490e83('0xa')](function(_0x1d765e){const _0x1cd24d=_0x490e83;logger[_0x1cd24d('0x3a')](JSON[_0x1cd24d('0x32')](_0x1d765e));});});},Migration[_0x31e6fa('0xd')][_0x31e6fa('0x49')]=function(_0xc19e00){const _0x37e71b=_0x31e6fa,_0x432c1b=this;this[_0x37e71b('0xc')][_0x37e71b('0x4b')](function(){const _0x39e981=_0x37e71b;return _0x432c1b[_0x39e981('0x28')]['dropTable'](_0xc19e00,{'force':!![]})[_0x39e981('0x14')](function(){const _0xc11bcf=_0x39e981;logger[_0xc11bcf('0x3a')](_0xc11bcf('0x3f'),_0xc19e00);})[_0x39e981('0xa')](function(_0x15059c){const _0xcec037=_0x39e981;logger[_0xcec037('0x3a')](JSON['stringify'](_0x15059c));});});},Migration[_0x31e6fa('0xd')][_0x31e6fa('0x1f')]=function(_0x2798df,_0x1308d0,_0x360b78){const _0x527069=_0x31e6fa,_0x36285a=this;this[_0x527069('0xc')][_0x527069('0x4b')](function(){const _0x16813f=_0x527069;return _0x36285a[_0x16813f('0x28')][_0x16813f('0x1f')](_0x2798df,_0x1308d0,{'indexName':_0x360b78})['then'](function(){const _0x52d940=_0x16813f;logger['info'](_0x52d940('0x46'),_0x2798df,_0x1308d0[_0x52d940('0x7')](','),_0x360b78);})[_0x16813f('0xa')](function(_0x467077){const _0x6cbe69=_0x16813f;logger[_0x6cbe69('0x3a')](JSON[_0x6cbe69('0x32')](_0x467077));});});},Migration[_0x31e6fa('0xd')][_0x31e6fa('0xe')]=function(_0x4bf1cc){const _0x3a4223=_0x31e6fa,_0x23689c=this;this[_0x3a4223('0xc')]['enqueue'](function(){const _0x587da0=_0x3a4223;return _0x23689c[_0x587da0('0x28')][_0x587da0('0xb')][_0x587da0('0xe')](_0x4bf1cc)[_0x587da0('0x14')](function(){const _0x468e62=_0x587da0;logger['info'](_0x468e62('0x3'),_0x4bf1cc);})[_0x587da0('0xa')](function(_0x530ef1){const _0x27e75c=_0x587da0;logger[_0x27e75c('0x3a')](JSON[_0x27e75c('0x32')](_0x530ef1));});});},Migration[_0x31e6fa('0xd')][_0x31e6fa('0x3e')]=function(_0x4bb0e8,_0x42900b){const _0x152fc5=_0x31e6fa,_0x4e5b44=this;this[_0x152fc5('0xc')][_0x152fc5('0x4b')](function(){const _0x109245=_0x152fc5;return _0x4e5b44[_0x109245('0x28')][_0x109245('0x3e')](_0x4bb0e8,_0x42900b)[_0x109245('0x14')](function(){const _0xe92d9c=_0x109245;logger[_0xe92d9c('0x3a')](_0xe92d9c('0x38'),_0x42900b,_0x4bb0e8);})[_0x109245('0xa')](function(_0x3bbc68){const _0x4b512a=_0x109245;logger[_0x4b512a('0x3a')](util[_0x4b512a('0x37')](_0x3bbc68,{'showHidden':![],'depth':null}));});});},Migration[_0x31e6fa('0xd')][_0x31e6fa('0x1c')]=function(_0x51f204){const _0x4d1d4b=_0x31e6fa;this['sequence'][_0x4d1d4b('0x4b')](function(){return _0x51f204();});},module[_0x31e6fa('0x13')]={'up':function(_0x2d03b0,_0x454a0d){return new Promise(function(_0x429fa3){const _0x3da768=a911_0x45be,_0x148098=new Migration(_0x2d03b0);_0x148098[_0x3da768('0x36')](_0x3da768('0x45'),_0x3da768('0x2b'),{'type':_0x454a0d[_0x3da768('0x11')],'defaultValue':'Agent'}),_0x148098['addColumn'](_0x3da768('0x45'),_0x3da768('0x43'),{'type':_0x454a0d[_0x3da768('0x11')],'defaultValue':_0x3da768('0x41')}),_0x148098['addColumn'](_0x3da768('0x45'),_0x3da768('0x12'),{'type':_0x454a0d[_0x3da768('0x4')]}),_0x148098[_0x3da768('0x36')](_0x3da768('0x45'),_0x3da768('0x34'),{'type':_0x454a0d['TEXT']}),_0x148098[_0x3da768('0x36')](_0x3da768('0x45'),_0x3da768('0x48'),{'type':_0x454a0d[_0x3da768('0x11')],'defaultValue':'Send'}),_0x148098[_0x3da768('0x36')](_0x3da768('0x45'),_0x3da768('0x40'),{'type':_0x454a0d[_0x3da768('0x23')],'defaultValue':![]}),_0x148098[_0x3da768('0x36')](_0x3da768('0x45'),'ratingType',{'type':_0x454a0d[_0x3da768('0x10')]('star',_0x3da768('0x16')),'defaultValue':_0x3da768('0x39')}),_0x148098[_0x3da768('0x36')](_0x3da768('0x45'),_0x3da768('0x20'),{'type':_0x454a0d[_0x3da768('0x3d')],'defaultValue':0x5}),_0x148098[_0x3da768('0x36')](_0x3da768('0x3b'),_0x3da768('0x3c'),{'type':_0x454a0d['INTEGER']}),_0x148098[_0x3da768('0x36')]('chat_interactions',_0x3da768('0x1a'),{'type':_0x454a0d[_0x3da768('0x4')]}),_0x148098[_0x3da768('0x36')]('chat_interactions','pathTranscript',{'type':_0x454a0d['TEXT']}),_0x148098[_0x3da768('0x36')](_0x3da768('0x3b'),'mailTranscript',{'type':_0x454a0d['STRING']}),_0x148098['addColumn'](_0x3da768('0x45'),_0x3da768('0x47'),{'type':_0x454a0d[_0x3da768('0x23')],'defaultValue':![]}),_0x148098['addColumn'](_0x3da768('0x45'),_0x3da768('0x5'),{'type':_0x454a0d[_0x3da768('0x23')],'defaultValue':![]}),_0x148098['addColumn'](_0x3da768('0x45'),_0x3da768('0x35'),{'type':_0x454a0d[_0x3da768('0x11')],'validate':{'isEmail':!![]}}),_0x148098[_0x3da768('0x1b')](_0x3da768('0x45'),_0x3da768('0xf'),{'type':_0x454a0d[_0x3da768('0x11')],'allowNull':![],'defaultValue':'#9f946a'}),_0x148098[_0x3da768('0x1b')](_0x3da768('0x45'),_0x3da768('0x26'),{'type':_0x454a0d[_0x3da768('0x11')],'allowNull':![],'defaultValue':'#9f946a'}),_0x148098['dropTable'](_0x3da768('0x29')),_0x148098[_0x3da768('0x49')](_0x3da768('0x42')),_0x148098[_0x3da768('0x49')](_0x3da768('0x2')),_0x148098['dropTable'](_0x3da768('0x8')),_0x148098[_0x3da768('0x49')](_0x3da768('0x24')),_0x148098['dropTable'](_0x3da768('0x25')),_0x148098[_0x3da768('0x49')](_0x3da768('0x18')),_0x148098[_0x3da768('0x49')]('fax_interactions'),_0x148098[_0x3da768('0x49')](_0x3da768('0x0')),_0x148098[_0x3da768('0x49')](_0x3da768('0x2f')),_0x148098[_0x3da768('0x49')](_0x3da768('0x27')),_0x148098['removeColumn'](_0x3da768('0x2c'),_0x3da768('0x2d')),_0x148098[_0x3da768('0x3e')](_0x3da768('0x2c'),'timeout'),_0x148098['removeColumn'](_0x3da768('0x2c'),_0x3da768('0x22')),_0x148098['removeColumn']('fax_accounts',_0x3da768('0x2a')),_0x148098['removeColumn'](_0x3da768('0x2c'),'acceptMethod'),_0x148098[_0x3da768('0x3e')](_0x3da768('0x2c'),_0x3da768('0x30')),_0x148098[_0x3da768('0x3e')](_0x3da768('0x2c'),_0x3da768('0x1')),_0x148098[_0x3da768('0x3e')](_0x3da768('0x2c'),_0x3da768('0x4a')),_0x148098['removeColumn']('fax_accounts',_0x3da768('0x19')),_0x148098['removeColumn'](_0x3da768('0x2e'),_0x3da768('0x21')),_0x148098[_0x3da768('0x3e')](_0x3da768('0x2e'),_0x3da768('0x1e')),_0x148098['removeColumn'](_0x3da768('0x31'),_0x3da768('0x21')),_0x148098[_0x3da768('0x3e')]('user_has_openchannel_queues',_0x3da768('0x1e')),_0x148098['addColumn'](_0x3da768('0x1d'),'priority',{'type':_0x454a0d['INTEGER'](0x2)['UNSIGNED'],'defaultValue':0x2}),_0x148098[_0x3da768('0x1f')](_0x3da768('0x1d'),['priority'],'priority'),_0x148098[_0x3da768('0x49')]('sms_messages'),_0x148098[_0x3da768('0x1c')](_0x429fa3);});},'down':function(){}}; \ No newline at end of file +const a1073_0x3237=['color_button','fidelity','then','mapKeyOffline','Agent','query','final','acceptMethod','color','sequence','star','fax_dispositions','Added\x20column\x20%s\x20to\x20%s','TEXT','email','chat_websites','priority','queue','addIndex','table\x20dropped\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','inspect','tail','#9f946a','removeColumn','exports','addIndex\x20%s\x20%s\x20%s','actions','dropTable','closingMessageButton','forwardOffline','ratingMessage','ratingType','closeUrl','rejectUrl','addColumn','query\x20%s','cm_hopper','sequelize','util','fax_interactions','BOOLEAN','ratingValue','fax_applications','mailTranscript','enqueue','chat_interactions','pathTranscript','Removed\x20column\x20%s\x20from\x20%s','INTEGER','catch','ratingStarsNumber','closingMessage','UNSIGNED','forwardTranscript','stringify','user_has_fax_queues','ENUM','queryInterface','acceptUrl','fax_rooms','info','STRING','team_has_fax_queues','user_has_openchannel_queues','timeout','prototype','closeMethod','fax_accounts','thumb','changeColumn','sitepic'];(function(_0x1aafef,_0x24aadc){const _0x323706=function(_0x36c73b){while(--_0x36c73b){_0x1aafef['push'](_0x1aafef['shift']());}};_0x323706(++_0x24aadc);}(a1073_0x3237,0x1e8));const a1073_0x36c7=function(_0x1aafef,_0x24aadc){_0x1aafef=_0x1aafef-0x6f;let _0x323706=a1073_0x3237[_0x1aafef];return _0x323706;};const a1073_0x260c11=a1073_0x36c7;'use strict';const logger=require('../config/logger')('migration'),util=require(a1073_0x260c11(0xa6)),Sequence=function(){};Sequence[a1073_0x260c11(0x79)][a1073_0x260c11(0xac)]=function(_0xa85008){const _0x2bbde9=a1073_0x260c11;this[_0x2bbde9(0x95)]=this[_0x2bbde9(0x95)]?this[_0x2bbde9(0x95)]['finally'](_0xa85008):_0xa85008();};const Migration=function(_0x5a090d){const _0x4ceb9f=a1073_0x260c11;this[_0x4ceb9f(0x71)]=_0x5a090d,this['sequence']=new Sequence();};Migration[a1073_0x260c11(0x79)][a1073_0x260c11(0x7d)]=function(_0x95dba8,_0x347c11,_0x3a8f9d){const _0x1da022=this;this['sequence']['enqueue'](function(){const _0x59519e=a1073_0x36c7;return _0x1da022['queryInterface'][_0x59519e(0x7d)](_0x95dba8,_0x347c11,_0x3a8f9d)[_0x59519e(0x81)](function(){const _0x25dd14=_0x59519e;logger[_0x25dd14(0x74)](_0x25dd14(0x93),_0x347c11,_0x95dba8);})['catch'](function(_0x385f4d){const _0x14cbbf=_0x59519e;logger[_0x14cbbf(0x74)](JSON[_0x14cbbf(0xb6)](_0x385f4d));});});},Migration[a1073_0x260c11(0x79)][a1073_0x260c11(0xa2)]=function(_0x2d59ab,_0x46f66c,_0x349b39){const _0x2125a3=a1073_0x260c11,_0xf42c02=this;this[_0x2125a3(0x88)][_0x2125a3(0xac)](function(){const _0x45eceb=_0x2125a3;return _0xf42c02[_0x45eceb(0x71)][_0x45eceb(0xa2)](_0x2d59ab,_0x46f66c,_0x349b39)['then'](function(){const _0x35abd3=_0x45eceb;logger[_0x35abd3(0x74)](_0x35abd3(0x8b),_0x46f66c,_0x2d59ab);})[_0x45eceb(0xb1)](function(_0x2f862d){logger['info'](JSON['stringify'](_0x2f862d));});});},Migration[a1073_0x260c11(0x79)][a1073_0x260c11(0x9b)]=function(_0x236cd5){const _0x488a2e=a1073_0x260c11,_0x5e1a72=this;this[_0x488a2e(0x88)][_0x488a2e(0xac)](function(){const _0x1e4815=_0x488a2e;return _0x5e1a72[_0x1e4815(0x71)]['dropTable'](_0x236cd5,{'force':!![]})[_0x1e4815(0x81)](function(){const _0x1aa028=_0x1e4815;logger[_0x1aa028(0x74)](_0x1aa028(0x92),_0x236cd5);})['catch'](function(_0x178d6f){const _0x2603e7=_0x1e4815;logger[_0x2603e7(0x74)](JSON['stringify'](_0x178d6f));});});},Migration[a1073_0x260c11(0x79)][a1073_0x260c11(0x91)]=function(_0x2074a6,_0x43e4fd,_0x30c65b){const _0x2f039d=a1073_0x260c11,_0x58494c=this;this[_0x2f039d(0x88)][_0x2f039d(0xac)](function(){const _0x56496a=_0x2f039d;return _0x58494c[_0x56496a(0x71)]['addIndex'](_0x2074a6,_0x43e4fd,{'indexName':_0x30c65b})['then'](function(){const _0xe700bf=_0x56496a;logger[_0xe700bf(0x74)](_0xe700bf(0x99),_0x2074a6,_0x43e4fd['join'](','),_0x30c65b);})[_0x56496a(0xb1)](function(_0x1c6881){const _0x3c9b75=_0x56496a;logger['info'](JSON[_0x3c9b75(0xb6)](_0x1c6881));});});},Migration['prototype'][a1073_0x260c11(0x84)]=function(_0x2112cd){const _0x2bf189=this;this['sequence']['enqueue'](function(){const _0x269c67=a1073_0x36c7;return _0x2bf189[_0x269c67(0x71)][_0x269c67(0xa5)][_0x269c67(0x84)](_0x2112cd)['then'](function(){const _0x14458e=_0x269c67;logger[_0x14458e(0x74)](_0x14458e(0xa3),_0x2112cd);})[_0x269c67(0xb1)](function(_0x4b474e){const _0x4ab766=_0x269c67;logger['info'](JSON[_0x4ab766(0xb6)](_0x4b474e));});});},Migration[a1073_0x260c11(0x79)]['removeColumn']=function(_0xbd25e2,_0x3c4d78){const _0x14b8f7=a1073_0x260c11,_0x29a9be=this;this[_0x14b8f7(0x88)][_0x14b8f7(0xac)](function(){const _0x5c5b79=_0x14b8f7;return _0x29a9be[_0x5c5b79(0x71)]['removeColumn'](_0xbd25e2,_0x3c4d78)[_0x5c5b79(0x81)](function(){const _0x2a45c9=_0x5c5b79;logger[_0x2a45c9(0x74)](_0x2a45c9(0xaf),_0x3c4d78,_0xbd25e2);})[_0x5c5b79(0xb1)](function(_0x525a3d){const _0x2662c2=_0x5c5b79;logger['info'](util[_0x2662c2(0x94)](_0x525a3d,{'showHidden':![],'depth':null}));});});},Migration[a1073_0x260c11(0x79)][a1073_0x260c11(0x85)]=function(_0x63e0e3){const _0x33258a=a1073_0x260c11;this[_0x33258a(0x88)]['enqueue'](function(){return _0x63e0e3();});},module[a1073_0x260c11(0x98)]={'up':function(_0x457cf6,_0x566c2e){return new Promise(function(_0x404fb6){const _0x30c38b=a1073_0x36c7,_0x55b4c2=new Migration(_0x457cf6);_0x55b4c2[_0x30c38b(0xa2)]('chat_websites','agentAlias',{'type':_0x566c2e['STRING'],'defaultValue':_0x30c38b(0x83)}),_0x55b4c2['addColumn'](_0x30c38b(0x8e),_0x30c38b(0x82),{'type':_0x566c2e[_0x30c38b(0x75)],'defaultValue':_0x30c38b(0x8d)}),_0x55b4c2[_0x30c38b(0xa2)](_0x30c38b(0x8e),_0x30c38b(0x7e),{'type':_0x566c2e[_0x30c38b(0x8c)]}),_0x55b4c2[_0x30c38b(0xa2)](_0x30c38b(0x8e),_0x30c38b(0xb3),{'type':_0x566c2e[_0x30c38b(0x8c)]}),_0x55b4c2[_0x30c38b(0xa2)]('chat_websites',_0x30c38b(0x9c),{'type':_0x566c2e[_0x30c38b(0x75)],'defaultValue':'Send'}),_0x55b4c2['addColumn'](_0x30c38b(0x8e),'enableRating',{'type':_0x566c2e['BOOLEAN'],'defaultValue':![]}),_0x55b4c2[_0x30c38b(0xa2)](_0x30c38b(0x8e),_0x30c38b(0x9f),{'type':_0x566c2e[_0x30c38b(0x70)](_0x30c38b(0x89),_0x30c38b(0x7c)),'defaultValue':_0x30c38b(0x89)}),_0x55b4c2[_0x30c38b(0xa2)](_0x30c38b(0x8e),_0x30c38b(0xb2),{'type':_0x566c2e[_0x30c38b(0xb0)],'defaultValue':0x5}),_0x55b4c2['addColumn']('chat_interactions',_0x30c38b(0xa9),{'type':_0x566c2e['INTEGER']}),_0x55b4c2[_0x30c38b(0xa2)](_0x30c38b(0xad),_0x30c38b(0x9e),{'type':_0x566c2e['TEXT']}),_0x55b4c2[_0x30c38b(0xa2)](_0x30c38b(0xad),_0x30c38b(0xae),{'type':_0x566c2e['TEXT']}),_0x55b4c2['addColumn'](_0x30c38b(0xad),_0x30c38b(0xab),{'type':_0x566c2e[_0x30c38b(0x75)]}),_0x55b4c2[_0x30c38b(0xa2)](_0x30c38b(0x8e),_0x30c38b(0xb5),{'type':_0x566c2e['BOOLEAN'],'defaultValue':![]}),_0x55b4c2[_0x30c38b(0xa2)](_0x30c38b(0x8e),_0x30c38b(0x9d),{'type':_0x566c2e[_0x30c38b(0xa8)],'defaultValue':![]}),_0x55b4c2[_0x30c38b(0xa2)]('chat_websites','forwardOfflineAddress',{'type':_0x566c2e[_0x30c38b(0x75)],'validate':{'isEmail':!![]}}),_0x55b4c2[_0x30c38b(0x7d)](_0x30c38b(0x8e),_0x30c38b(0x87),{'type':_0x566c2e[_0x30c38b(0x75)],'allowNull':![],'defaultValue':_0x30c38b(0x96)}),_0x55b4c2[_0x30c38b(0x7d)](_0x30c38b(0x8e),_0x30c38b(0x7f),{'type':_0x566c2e[_0x30c38b(0x75)],'allowNull':![],'defaultValue':'#9f946a'}),_0x55b4c2[_0x30c38b(0x9b)]('fax_attachments'),_0x55b4c2[_0x30c38b(0x9b)]('user_has_fax_rooms'),_0x55b4c2['dropTable'](_0x30c38b(0x73)),_0x55b4c2['dropTable']('fax_messages'),_0x55b4c2[_0x30c38b(0x9b)](_0x30c38b(0x8a)),_0x55b4c2[_0x30c38b(0x9b)](_0x30c38b(0xaa)),_0x55b4c2['dropTable']('user_has_fax_interactions'),_0x55b4c2[_0x30c38b(0x9b)](_0x30c38b(0xa7)),_0x55b4c2[_0x30c38b(0x9b)](_0x30c38b(0x76)),_0x55b4c2[_0x30c38b(0x9b)](_0x30c38b(0x6f)),_0x55b4c2[_0x30c38b(0x9b)]('fax_queues'),_0x55b4c2[_0x30c38b(0x97)](_0x30c38b(0x7b),_0x30c38b(0x80)),_0x55b4c2[_0x30c38b(0x97)](_0x30c38b(0x7b),_0x30c38b(0x78)),_0x55b4c2[_0x30c38b(0x97)](_0x30c38b(0x7b),_0x30c38b(0x72)),_0x55b4c2[_0x30c38b(0x97)](_0x30c38b(0x7b),_0x30c38b(0xa1)),_0x55b4c2[_0x30c38b(0x97)](_0x30c38b(0x7b),_0x30c38b(0x86)),_0x55b4c2['removeColumn'](_0x30c38b(0x7b),'rejectMethod'),_0x55b4c2[_0x30c38b(0x97)]('fax_accounts',_0x30c38b(0x9a)),_0x55b4c2[_0x30c38b(0x97)](_0x30c38b(0x7b),_0x30c38b(0xa0)),_0x55b4c2[_0x30c38b(0x97)](_0x30c38b(0x7b),_0x30c38b(0x7a)),_0x55b4c2['removeColumn']('user_has_chat_queues','assigned'),_0x55b4c2[_0x30c38b(0x97)]('user_has_chat_queues',_0x30c38b(0x90)),_0x55b4c2['removeColumn']('user_has_openchannel_queues','assigned'),_0x55b4c2[_0x30c38b(0x97)](_0x30c38b(0x77),_0x30c38b(0x90)),_0x55b4c2[_0x30c38b(0xa2)](_0x30c38b(0xa4),_0x30c38b(0x8f),{'type':_0x566c2e[_0x30c38b(0xb0)](0x2)[_0x30c38b(0xb4)],'defaultValue':0x2}),_0x55b4c2['addIndex'](_0x30c38b(0xa4),['priority'],_0x30c38b(0x8f)),_0x55b4c2[_0x30c38b(0x9b)]('sms_messages'),_0x55b4c2[_0x30c38b(0x85)](_0x404fb6);});},'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 2528598..9ac64f4 100644 --- a/server/migrations/2.0.34.js +++ b/server/migrations/2.0.34.js @@ -1 +1 @@ -const a912_0xf238=['recallme','addColumn','removeColumn','dialRecallMeTimeout','query\x20%s','cm_hopper_history','Thanks\x20you\x20for\x20your\x20time!','exports','cm_hopper_final','userDisposition','migration','mail_interactions','forwardTranscriptMessage','final','info','stringify','sms_accounts','deviceVendor','closeMethod','queryInterface','signature','unmanagedMessage','osName','waitingMessage','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;','addIndex','mail_messages','inspect','active','phone','catch','then','browserName','actions','BOOLEAN','ALTER\x20TABLE\x20mail_messages\x20DROP\x20FOREIGN\x20KEY\x20mail_messages_ibfk_1','custom','enableFeedback','rejectUrl','Please\x20hold\x20and\x20we\x20will\x20answer\x20your\x20request\x20as\x20soon\x20as\x20possible.','authToken','finally','enableCustomerWriting','voice_recordings','ALTER\x20TABLE\x20mail_messages\x20DROP\x20COLUMN\x20UserId','STRING','Send','mail_accounts','mail_rooms','closeUrl','ALTER\x20TABLE\x20mail_messages\x20DROP\x20COLUMN\x20MailMessageId','../config/logger','user_has_mail_rooms','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','ALTER\x20TABLE\x20analytics_extracted_reports\x20DROP\x20FOREIGN\x20KEY\x20analytics_extracted_reports_ibfk_1','whiteLabel','osVersion','Skip','tail','query','acceptMethod','chat_messages','INTEGER','addIndex\x20%s\x20%s\x20%s','chat_interactions','mail_dispositions','acceptUrl','util','enqueue','accountSid','dialRecallInQueue','Removed\x20column\x20%s\x20from\x20%s','key','team_has_mail_queues','voice_queues','ALTER\x20TABLE\x20mail_rooms\x20DROP\x20FOREIGN\x20KEY\x20mail_rooms_ibfk_1','skipUnmanaged','ALTER\x20TABLE\x20mail_rooms\x20DROP\x20COLUMN\x20MailAccountId','fax_accounts','prototype','Your\x20request\x20has\x20not\x20been\x20processed.','conditionAgreement','timeout','enableUnmanagedNote','Added\x20column\x20%s\x20to\x20%s','mail_applications','dropTable','ALTER\x20TABLE\x20mail_messages\x20DROP\x20COLUMN\x20MailRoomId','cm_hopper','autoclose','sequence','chat_websites','changeColumn','sequelize','Changed\x20column\x20%s\x20in\x20table\x20%s','ALTER\x20TABLE\x20users\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8\x20COLLATE\x20utf8_bin;','table\x20dropped\x20%s'];(function(_0x8e793b,_0xf238f1){const _0x4eadd4=function(_0x13f78e){while(--_0x13f78e){_0x8e793b['push'](_0x8e793b['shift']());}};_0x4eadd4(++_0xf238f1);}(a912_0xf238,0x1b9));const a912_0x4ead=function(_0x8e793b,_0xf238f1){_0x8e793b=_0x8e793b-0x0;let _0x4eadd4=a912_0xf238[_0x8e793b];return _0x4eadd4;};const _0x1b9550=a912_0x4ead;'use strict';const logger=require(_0x1b9550('0x5f'))(_0x1b9550('0x36')),util=require(_0x1b9550('0xe')),Sequence=function(){};Sequence[_0x1b9550('0x1a')][_0x1b9550('0xf')]=function(_0x13f78e){const _0x402393=_0x1b9550;this[_0x402393('0x5')]=this['tail']?this[_0x402393('0x5')][_0x402393('0x55')](_0x13f78e):_0x13f78e();};const Migration=function(_0x50dc51){const _0x5da4d1=_0x1b9550;this[_0x5da4d1('0x3f')]=_0x50dc51,this['sequence']=new Sequence();};Migration[_0x1b9550('0x1a')][_0x1b9550('0x27')]=function(_0x31ff8b,_0x40be5e,_0x270563){const _0x4bef72=_0x1b9550,_0x1073f9=this;this[_0x4bef72('0x25')]['enqueue'](function(){const _0x3d5e53=_0x4bef72;return _0x1073f9[_0x3d5e53('0x3f')][_0x3d5e53('0x27')](_0x31ff8b,_0x40be5e,_0x270563)[_0x3d5e53('0x4b')](function(){const _0x39ddda=_0x3d5e53;logger[_0x39ddda('0x3a')](_0x39ddda('0x29'),_0x40be5e,_0x31ff8b);})[_0x3d5e53('0x4a')](function(_0x388d74){const _0x49e5d3=_0x3d5e53;logger[_0x49e5d3('0x3a')](JSON[_0x49e5d3('0x3b')](_0x388d74));});});},Migration[_0x1b9550('0x1a')][_0x1b9550('0x2d')]=function(_0x160e24,_0x35372d,_0x851167){const _0x22e5de=_0x1b9550,_0x533c64=this;this[_0x22e5de('0x25')][_0x22e5de('0xf')](function(){const _0x48c703=_0x22e5de;return _0x533c64[_0x48c703('0x3f')][_0x48c703('0x2d')](_0x160e24,_0x35372d,_0x851167)[_0x48c703('0x4b')](function(){const _0x11cea9=_0x48c703;logger[_0x11cea9('0x3a')](_0x11cea9('0x1f'),_0x35372d,_0x160e24);})[_0x48c703('0x4a')](function(_0x2620b3){const _0x81f05d=_0x48c703;logger['info'](JSON[_0x81f05d('0x3b')](_0x2620b3));});});},Migration[_0x1b9550('0x1a')]['dropTable']=function(_0x30eb2b){const _0x52603c=_0x1b9550,_0xa08ba8=this;this[_0x52603c('0x25')]['enqueue'](function(){const _0x3b0ad9=_0x52603c;return _0xa08ba8[_0x3b0ad9('0x3f')][_0x3b0ad9('0x21')](_0x30eb2b,{'force':!![]})['then'](function(){const _0x4b5f28=_0x3b0ad9;logger['info'](_0x4b5f28('0x2b'),_0x30eb2b);})[_0x3b0ad9('0x4a')](function(_0x390106){const _0x12fe2b=_0x3b0ad9;logger['info'](JSON[_0x12fe2b('0x3b')](_0x390106));});});},Migration['prototype'][_0x1b9550('0x45')]=function(_0x3d0c9f,_0x3a25e2,_0x10a2c6){const _0xd2b449=_0x1b9550,_0x2b7ef8=this;this[_0xd2b449('0x25')][_0xd2b449('0xf')](function(){const _0x5caa06=_0xd2b449;return _0x2b7ef8[_0x5caa06('0x3f')]['addIndex'](_0x3d0c9f,_0x3a25e2,{'indexName':_0x10a2c6})[_0x5caa06('0x4b')](function(){const _0x3b1449=_0x5caa06;logger['info'](_0x3b1449('0xa'),_0x3d0c9f,_0x3a25e2['join'](','),_0x10a2c6);})['catch'](function(_0x1bb255){const _0x2bf9b2=_0x5caa06;logger[_0x2bf9b2('0x3a')](JSON['stringify'](_0x1bb255));});});},Migration[_0x1b9550('0x1a')][_0x1b9550('0x6')]=function(_0x2838bd){const _0x3f77fc=_0x1b9550,_0x706298=this;this[_0x3f77fc('0x25')][_0x3f77fc('0xf')](function(){const _0x487b96=_0x3f77fc;return _0x706298[_0x487b96('0x3f')][_0x487b96('0x28')][_0x487b96('0x6')](_0x2838bd)[_0x487b96('0x4b')](function(){const _0x5ecf42=_0x487b96;logger['info'](_0x5ecf42('0x30'),_0x2838bd);})['catch'](function(_0x483327){const _0x29491e=_0x487b96;logger[_0x29491e('0x3a')](JSON['stringify'](_0x483327));});});},Migration['prototype'][_0x1b9550('0x2e')]=function(_0x30a1f7,_0x1cc15d){const _0x37ac68=_0x1b9550,_0x4cec4f=this;this['sequence'][_0x37ac68('0xf')](function(){const _0xf09cb=_0x37ac68;return _0x4cec4f['queryInterface'][_0xf09cb('0x2e')](_0x30a1f7,_0x1cc15d)[_0xf09cb('0x4b')](function(){const _0x5df801=_0xf09cb;logger['info'](_0x5df801('0x12'),_0x1cc15d,_0x30a1f7);})[_0xf09cb('0x4a')](function(_0x3cbf63){const _0x46bedc=_0xf09cb;logger['info'](util[_0x46bedc('0x47')](_0x3cbf63,{'showHidden':![],'depth':null}));});});},Migration[_0x1b9550('0x1a')][_0x1b9550('0x39')]=function(_0x381ad6){const _0x4d7669=_0x1b9550;this[_0x4d7669('0x25')][_0x4d7669('0xf')](function(){return _0x381ad6();});},module[_0x1b9550('0x33')]={'up':function(_0x216c97,_0x57d70c){return new Promise(function(_0x2b94fc){const _0x3c709e=a912_0x4ead,_0x5a4071=new Migration(_0x216c97);_0x5a4071[_0x3c709e('0x2d')]('chat_websites',_0x3c709e('0x13'),{'type':_0x57d70c[_0x3c709e('0x59')],'allowNull':![]}),_0x5a4071[_0x3c709e('0x2d')]('chat_websites',_0x3c709e('0x38'),{'type':_0x57d70c['STRING']}),_0x5a4071[_0x3c709e('0x2d')](_0x3c709e('0x26'),'skipMessageButton',{'type':_0x57d70c['STRING'],'defaultValue':_0x3c709e('0x4')}),_0x5a4071[_0x3c709e('0x2d')]('chat_websites',_0x3c709e('0x51'),{'type':_0x57d70c['BOOLEAN'],'defaultValue':![]}),_0x5a4071[_0x3c709e('0x2d')](_0x3c709e('0x26'),_0x3c709e('0x56'),{'type':_0x57d70c[_0x3c709e('0x4e')],'defaultValue':![]}),_0x5a4071[_0x3c709e('0x2d')](_0x3c709e('0x26'),_0x3c709e('0x1c'),{'type':_0x57d70c[_0x3c709e('0x4e')],'defaultValue':![]}),_0x5a4071[_0x3c709e('0x2d')](_0x3c709e('0x26'),'waitingTitle',{'type':_0x57d70c[_0x3c709e('0x59')],'defaultValue':'All\x20of\x20our\x20agents\x20are\x20busy\x20at\x20this\x20time.\x20Your\x20chat\x20is\x20very\x20important\x20to\x20us.'}),_0x5a4071['addColumn'](_0x3c709e('0x26'),_0x3c709e('0x43'),{'type':_0x57d70c['STRING'],'defaultValue':_0x3c709e('0x53')}),_0x5a4071['addColumn']('chat_websites',_0x3c709e('0x24'),{'type':_0x57d70c['BOOLEAN'],'defaultValue':!![]}),_0x5a4071[_0x3c709e('0x2d')](_0x3c709e('0x26'),_0x3c709e('0x41'),{'type':_0x57d70c['STRING'],'defaultValue':_0x3c709e('0x1b')}),_0x5a4071[_0x3c709e('0x2d')]('chat_websites',_0x3c709e('0x1e'),{'type':_0x57d70c[_0x3c709e('0x4e')],'defaultValue':!![]}),_0x5a4071[_0x3c709e('0x2d')](_0x3c709e('0x26'),'sendUnmanaged',{'type':_0x57d70c[_0x3c709e('0x59')],'defaultValue':_0x3c709e('0x5a')}),_0x5a4071[_0x3c709e('0x2d')]('chat_websites',_0x3c709e('0x17'),{'type':_0x57d70c[_0x3c709e('0x59')],'defaultValue':_0x3c709e('0x4')}),_0x5a4071['changeColumn']('chat_websites','closingMessage',{'type':_0x57d70c[_0x3c709e('0x59')],'defaultValue':_0x3c709e('0x32')}),_0x5a4071[_0x3c709e('0x2d')]('chat_interactions',_0x3c709e('0x4c'),{'type':_0x57d70c[_0x3c709e('0x59')]}),_0x5a4071[_0x3c709e('0x2d')](_0x3c709e('0xb'),'browserVersion',{'type':_0x57d70c[_0x3c709e('0x59')]}),_0x5a4071[_0x3c709e('0x2d')](_0x3c709e('0xb'),_0x3c709e('0x42'),{'type':_0x57d70c[_0x3c709e('0x59')]}),_0x5a4071[_0x3c709e('0x2d')](_0x3c709e('0xb'),_0x3c709e('0x3'),{'type':_0x57d70c[_0x3c709e('0x59')]}),_0x5a4071[_0x3c709e('0x2d')](_0x3c709e('0xb'),'deviceModel',{'type':_0x57d70c['STRING']}),_0x5a4071[_0x3c709e('0x2d')](_0x3c709e('0xb'),_0x3c709e('0x3d'),{'type':_0x57d70c[_0x3c709e('0x59')]}),_0x5a4071['addColumn'](_0x3c709e('0xb'),'deviceType',{'type':_0x57d70c['STRING']}),_0x5a4071['addColumn'](_0x3c709e('0x8'),'AttachmentId',{'type':_0x57d70c[_0x3c709e('0x9')]}),_0x5a4071[_0x3c709e('0x6')](_0x3c709e('0x0')),_0x5a4071[_0x3c709e('0x2d')](_0x3c709e('0x15'),_0x3c709e('0x2f'),{'type':_0x57d70c[_0x3c709e('0x9')](0x5)['UNSIGNED'],'defaultValue':0x1e}),_0x5a4071[_0x3c709e('0x2d')]('voice_queues',_0x3c709e('0x11'),{'type':_0x57d70c[_0x3c709e('0x4e')],'defaultValue':![]}),_0x5a4071[_0x3c709e('0x2d')](_0x3c709e('0x23'),_0x3c709e('0x2c'),{'type':_0x57d70c[_0x3c709e('0x4e')],'defaultValue':![]}),_0x5a4071[_0x3c709e('0x2d')](_0x3c709e('0x34'),_0x3c709e('0x2c'),{'type':_0x57d70c[_0x3c709e('0x4e')],'defaultValue':![]}),_0x5a4071[_0x3c709e('0x2d')](_0x3c709e('0x31'),'recallme',{'type':_0x57d70c['BOOLEAN'],'defaultValue':![]}),_0x5a4071[_0x3c709e('0x2d')](_0x3c709e('0x57'),_0x3c709e('0x35'),{'type':_0x57d70c['STRING']}),_0x5a4071[_0x3c709e('0x21')](_0x3c709e('0x60')),_0x5a4071[_0x3c709e('0x6')](_0x3c709e('0x16')),_0x5a4071['query'](_0x3c709e('0x18')),_0x5a4071['dropTable'](_0x3c709e('0x5c')),_0x5a4071[_0x3c709e('0x6')](_0x3c709e('0x1')),_0x5a4071[_0x3c709e('0x6')](_0x3c709e('0x5e')),_0x5a4071['query'](_0x3c709e('0x4f')),_0x5a4071['query'](_0x3c709e('0x22')),_0x5a4071[_0x3c709e('0x6')]('ALTER\x20TABLE\x20mail_messages\x20DROP\x20FOREIGN\x20KEY\x20mail_messages_ibfk_2'),_0x5a4071[_0x3c709e('0x6')](_0x3c709e('0x58')),_0x5a4071[_0x3c709e('0x21')](_0x3c709e('0x46')),_0x5a4071['dropTable']('mail_attachments'),_0x5a4071[_0x3c709e('0x21')](_0x3c709e('0xc')),_0x5a4071[_0x3c709e('0x21')](_0x3c709e('0x20')),_0x5a4071[_0x3c709e('0x21')]('user_has_mail_interactions'),_0x5a4071['dropTable'](_0x3c709e('0x37')),_0x5a4071[_0x3c709e('0x21')](_0x3c709e('0x14')),_0x5a4071[_0x3c709e('0x21')]('user_has_mail_queues'),_0x5a4071[_0x3c709e('0x21')]('mail_queues'),_0x5a4071[_0x3c709e('0x2e')](_0x3c709e('0x5b'),'fidelity'),_0x5a4071[_0x3c709e('0x2e')](_0x3c709e('0x5b'),_0x3c709e('0x1d')),_0x5a4071[_0x3c709e('0x2e')]('mail_accounts',_0x3c709e('0x2')),_0x5a4071['removeColumn'](_0x3c709e('0x5b'),_0x3c709e('0xd')),_0x5a4071['removeColumn'](_0x3c709e('0x5b'),_0x3c709e('0x52')),_0x5a4071['removeColumn'](_0x3c709e('0x5b'),_0x3c709e('0x7')),_0x5a4071[_0x3c709e('0x2e')]('mail_accounts','rejectMethod'),_0x5a4071['removeColumn'](_0x3c709e('0x5b'),_0x3c709e('0x4d')),_0x5a4071['removeColumn']('mail_accounts',_0x3c709e('0x5d')),_0x5a4071[_0x3c709e('0x2e')](_0x3c709e('0x5b'),_0x3c709e('0x3e')),_0x5a4071[_0x3c709e('0x2e')](_0x3c709e('0x5b'),_0x3c709e('0x40')),_0x5a4071[_0x3c709e('0x2e')](_0x3c709e('0x5b'),_0x3c709e('0x50')),_0x5a4071[_0x3c709e('0x2d')](_0x3c709e('0x5b'),_0x3c709e('0x48'),{'type':_0x57d70c[_0x3c709e('0x4e')],'defaultValue':!![]}),_0x5a4071[_0x3c709e('0x2e')]('mail_servers_out','state'),_0x5a4071[_0x3c709e('0x21')]('mail_servers_in'),_0x5a4071[_0x3c709e('0x6')](_0x3c709e('0x44')),_0x5a4071[_0x3c709e('0x6')]('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;'),_0x5a4071['query']('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;'),_0x5a4071[_0x3c709e('0x21')]('fax_attachments'),_0x5a4071[_0x3c709e('0x2d')]('sms_accounts',_0x3c709e('0x49'),{'type':_0x57d70c['STRING']}),_0x5a4071[_0x3c709e('0x2d')](_0x3c709e('0x3c'),_0x3c709e('0x10'),{'type':_0x57d70c[_0x3c709e('0x59')]}),_0x5a4071[_0x3c709e('0x2d')](_0x3c709e('0x3c'),_0x3c709e('0x54'),{'type':_0x57d70c[_0x3c709e('0x59')]}),_0x5a4071[_0x3c709e('0x2d')](_0x3c709e('0x3c'),_0x3c709e('0x13'),{'type':_0x57d70c[_0x3c709e('0x59')],'allowNull':![]}),_0x5a4071['query'](_0x3c709e('0x2a')),_0x5a4071[_0x3c709e('0x2d')]('openchannel_accounts',_0x3c709e('0x13'),{'type':_0x57d70c[_0x3c709e('0x59')],'allowNull':![]}),_0x5a4071[_0x3c709e('0x2d')](_0x3c709e('0x19'),_0x3c709e('0x13'),{'type':_0x57d70c['STRING'],'allowNull':![]}),_0x5a4071[_0x3c709e('0x2d')](_0x3c709e('0x5b'),_0x3c709e('0x13'),{'type':_0x57d70c[_0x3c709e('0x59')],'allowNull':![]}),_0x5a4071[_0x3c709e('0x39')](_0x2b94fc);});},'down':function(){}}; \ No newline at end of file +const a1074_0x3fdd=['mail_servers_out','unmanagedMessage','cm_hopper','openchannel_accounts','exports','ALTER\x20TABLE\x20mail_messages\x20DROP\x20FOREIGN\x20KEY\x20mail_messages_ibfk_1','Send','prototype','acceptMethod','timeout','acceptUrl','user_has_mail_queues','dialRecallMeTimeout','waitingMessage','sequelize','Added\x20column\x20%s\x20to\x20%s','info','closingMessage','mail_servers_in','team_has_mail_queues','forwardTranscriptMessage','enableFeedback','addIndex\x20%s\x20%s\x20%s','state','mail_attachments','ALTER\x20TABLE\x20mail_messages\x20DROP\x20COLUMN\x20MailRoomId','then','dialRecallInQueue','rejectMethod','../config/logger','signature','skipMessageButton','queryInterface','query','custom','conditionAgreement','inspect','cm_hopper_final','mail_interactions','catch','sequence','accountSid','sendUnmanaged','recallme','ALTER\x20TABLE\x20analytics_extracted_reports\x20DROP\x20FOREIGN\x20KEY\x20analytics_extracted_reports_ibfk_1','addIndex','dropTable','authToken','mail_dispositions','Thanks\x20you\x20for\x20your\x20time!','ALTER\x20TABLE\x20mail_messages\x20DROP\x20COLUMN\x20UserId','browserVersion','addColumn','mail_accounts','Your\x20request\x20has\x20not\x20been\x20processed.','INTEGER','chat_websites','actions','mail_messages','Skip','fidelity','rejectUrl','stringify','All\x20of\x20our\x20agents\x20are\x20busy\x20at\x20this\x20time.\x20Your\x20chat\x20is\x20very\x20important\x20to\x20us.','closeUrl','mail_rooms','fax_accounts','deviceVendor','osName','enqueue','finally','STRING','chat_interactions','phone','sms_accounts','voice_queues','removeColumn','BOOLEAN','changeColumn','ALTER\x20TABLE\x20mail_messages\x20DROP\x20FOREIGN\x20KEY\x20mail_messages_ibfk_2','user_has_mail_interactions','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','key','waitingTitle','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\x20mail_rooms\x20DROP\x20COLUMN\x20MailAccountId','enableUnmanagedNote','browserName','tail','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;','UNSIGNED','deviceType','Please\x20hold\x20and\x20we\x20will\x20answer\x20your\x20request\x20as\x20soon\x20as\x20possible.','final','query\x20%s','user_has_mail_rooms','skipUnmanaged','ALTER\x20TABLE\x20mail_messages\x20DROP\x20COLUMN\x20MailMessageId','join'];(function(_0x2473b2,_0x5afcd5){const _0x3fdd85=function(_0x39624e){while(--_0x39624e){_0x2473b2['push'](_0x2473b2['shift']());}};_0x3fdd85(++_0x5afcd5);}(a1074_0x3fdd,0xa7));const a1074_0x3962=function(_0x2473b2,_0x5afcd5){_0x2473b2=_0x2473b2-0x1f3;let _0x3fdd85=a1074_0x3fdd[_0x2473b2];return _0x3fdd85;};const a1074_0x348d61=a1074_0x3962;'use strict';const logger=require(a1074_0x348d61(0x231))('migration'),util=require('util'),Sequence=function(){};Sequence[a1074_0x348d61(0x21b)]['enqueue']=function(_0x1a5ead){const _0x5b72c5=a1074_0x348d61;this[_0x5b72c5(0x209)]=this['tail']?this['tail'][_0x5b72c5(0x1f6)](_0x1a5ead):_0x1a5ead();};const Migration=function(_0x4975d6){const _0xe57fd8=a1074_0x348d61;this[_0xe57fd8(0x234)]=_0x4975d6,this[_0xe57fd8(0x23c)]=new Sequence();};Migration['prototype'][a1074_0x348d61(0x1fe)]=function(_0x30cada,_0x50af2a,_0x536983){const _0x1778d8=a1074_0x348d61,_0x23e8df=this;this[_0x1778d8(0x23c)]['enqueue'](function(){const _0x211f82=_0x1778d8;return _0x23e8df[_0x211f82(0x234)][_0x211f82(0x1fe)](_0x30cada,_0x50af2a,_0x536983)['then'](function(){logger['info']('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x50af2a,_0x30cada);})[_0x211f82(0x23b)](function(_0xda967c){const _0x36ca59=_0x211f82;logger[_0x36ca59(0x224)](JSON[_0x36ca59(0x252)](_0xda967c));});});},Migration[a1074_0x348d61(0x21b)][a1074_0x348d61(0x248)]=function(_0x1c76ba,_0x9077e5,_0x5825e7){const _0x113483=a1074_0x348d61,_0x57ab9a=this;this[_0x113483(0x23c)][_0x113483(0x1f5)](function(){const _0x11c655=_0x113483;return _0x57ab9a[_0x11c655(0x234)]['addColumn'](_0x1c76ba,_0x9077e5,_0x5825e7)['then'](function(){const _0x183b23=_0x11c655;logger[_0x183b23(0x224)](_0x183b23(0x223),_0x9077e5,_0x1c76ba);})[_0x11c655(0x23b)](function(_0x9e9f7d){const _0x892cd6=_0x11c655;logger[_0x892cd6(0x224)](JSON[_0x892cd6(0x252)](_0x9e9f7d));});});},Migration[a1074_0x348d61(0x21b)][a1074_0x348d61(0x242)]=function(_0x496f23){const _0x38a085=this;this['sequence']['enqueue'](function(){const _0x5961ab=a1074_0x3962;return _0x38a085[_0x5961ab(0x234)][_0x5961ab(0x242)](_0x496f23,{'force':!![]})['then'](function(){logger['info']('table\x20dropped\x20%s',_0x496f23);})['catch'](function(_0x1df93e){const _0x343975=_0x5961ab;logger[_0x343975(0x224)](JSON[_0x343975(0x252)](_0x1df93e));});});},Migration['prototype'][a1074_0x348d61(0x241)]=function(_0x510541,_0x2178aa,_0x232abc){const _0x5e4d53=a1074_0x348d61,_0x1aba26=this;this[_0x5e4d53(0x23c)]['enqueue'](function(){const _0x53efc6=_0x5e4d53;return _0x1aba26['queryInterface'][_0x53efc6(0x241)](_0x510541,_0x2178aa,{'indexName':_0x232abc})[_0x53efc6(0x22e)](function(){const _0x20be95=_0x53efc6;logger['info'](_0x20be95(0x22a),_0x510541,_0x2178aa[_0x20be95(0x213)](','),_0x232abc);})[_0x53efc6(0x23b)](function(_0x4365d6){const _0x3ea9d9=_0x53efc6;logger['info'](JSON[_0x3ea9d9(0x252)](_0x4365d6));});});},Migration[a1074_0x348d61(0x21b)][a1074_0x348d61(0x235)]=function(_0x5c491d){const _0x11cc4e=a1074_0x348d61,_0x197c23=this;this[_0x11cc4e(0x23c)]['enqueue'](function(){const _0x587bac=_0x11cc4e;return _0x197c23['queryInterface'][_0x587bac(0x222)][_0x587bac(0x235)](_0x5c491d)[_0x587bac(0x22e)](function(){const _0x1ecd8d=_0x587bac;logger[_0x1ecd8d(0x224)](_0x1ecd8d(0x20f),_0x5c491d);})['catch'](function(_0x92ae3d){const _0x15ba86=_0x587bac;logger['info'](JSON[_0x15ba86(0x252)](_0x92ae3d));});});},Migration[a1074_0x348d61(0x21b)][a1074_0x348d61(0x1fc)]=function(_0x4929a7,_0x11e529){const _0x47fca1=a1074_0x348d61,_0x3bcf6c=this;this[_0x47fca1(0x23c)][_0x47fca1(0x1f5)](function(){const _0x9bab42=_0x47fca1;return _0x3bcf6c['queryInterface'][_0x9bab42(0x1fc)](_0x4929a7,_0x11e529)[_0x9bab42(0x22e)](function(){const _0x292770=_0x9bab42;logger[_0x292770(0x224)]('Removed\x20column\x20%s\x20from\x20%s',_0x11e529,_0x4929a7);})[_0x9bab42(0x23b)](function(_0x307b2e){const _0x23055a=_0x9bab42;logger[_0x23055a(0x224)](util[_0x23055a(0x238)](_0x307b2e,{'showHidden':![],'depth':null}));});});},Migration[a1074_0x348d61(0x21b)][a1074_0x348d61(0x20e)]=function(_0x5f3417){const _0x20aaca=a1074_0x348d61;this['sequence'][_0x20aaca(0x1f5)](function(){return _0x5f3417();});},module[a1074_0x348d61(0x218)]={'up':function(_0x3c21c8,_0x869c35){return new Promise(function(_0x57cea7){const _0x31e2e3=a1074_0x3962,_0x4fad56=new Migration(_0x3c21c8);_0x4fad56[_0x31e2e3(0x248)](_0x31e2e3(0x24c),_0x31e2e3(0x203),{'type':_0x869c35[_0x31e2e3(0x1f7)],'allowNull':![]}),_0x4fad56['addColumn']('chat_websites',_0x31e2e3(0x228),{'type':_0x869c35[_0x31e2e3(0x1f7)]}),_0x4fad56[_0x31e2e3(0x248)](_0x31e2e3(0x24c),_0x31e2e3(0x233),{'type':_0x869c35[_0x31e2e3(0x1f7)],'defaultValue':_0x31e2e3(0x24f)}),_0x4fad56[_0x31e2e3(0x248)](_0x31e2e3(0x24c),_0x31e2e3(0x229),{'type':_0x869c35[_0x31e2e3(0x1fd)],'defaultValue':![]}),_0x4fad56[_0x31e2e3(0x248)](_0x31e2e3(0x24c),'enableCustomerWriting',{'type':_0x869c35[_0x31e2e3(0x1fd)],'defaultValue':![]}),_0x4fad56[_0x31e2e3(0x248)]('chat_websites',_0x31e2e3(0x237),{'type':_0x869c35[_0x31e2e3(0x1fd)],'defaultValue':![]}),_0x4fad56['addColumn'](_0x31e2e3(0x24c),_0x31e2e3(0x204),{'type':_0x869c35[_0x31e2e3(0x1f7)],'defaultValue':_0x31e2e3(0x253)}),_0x4fad56[_0x31e2e3(0x248)](_0x31e2e3(0x24c),_0x31e2e3(0x221),{'type':_0x869c35[_0x31e2e3(0x1f7)],'defaultValue':_0x31e2e3(0x20d)}),_0x4fad56[_0x31e2e3(0x248)](_0x31e2e3(0x24c),'autoclose',{'type':_0x869c35[_0x31e2e3(0x1fd)],'defaultValue':!![]}),_0x4fad56['addColumn'](_0x31e2e3(0x24c),_0x31e2e3(0x215),{'type':_0x869c35[_0x31e2e3(0x1f7)],'defaultValue':_0x31e2e3(0x24a)}),_0x4fad56[_0x31e2e3(0x248)](_0x31e2e3(0x24c),_0x31e2e3(0x207),{'type':_0x869c35['BOOLEAN'],'defaultValue':!![]}),_0x4fad56[_0x31e2e3(0x248)](_0x31e2e3(0x24c),_0x31e2e3(0x23e),{'type':_0x869c35[_0x31e2e3(0x1f7)],'defaultValue':_0x31e2e3(0x21a)}),_0x4fad56[_0x31e2e3(0x248)]('chat_websites',_0x31e2e3(0x211),{'type':_0x869c35['STRING'],'defaultValue':_0x31e2e3(0x24f)}),_0x4fad56[_0x31e2e3(0x1fe)]('chat_websites',_0x31e2e3(0x225),{'type':_0x869c35[_0x31e2e3(0x1f7)],'defaultValue':_0x31e2e3(0x245)}),_0x4fad56[_0x31e2e3(0x248)](_0x31e2e3(0x1f8),_0x31e2e3(0x208),{'type':_0x869c35[_0x31e2e3(0x1f7)]}),_0x4fad56[_0x31e2e3(0x248)](_0x31e2e3(0x1f8),_0x31e2e3(0x247),{'type':_0x869c35[_0x31e2e3(0x1f7)]}),_0x4fad56[_0x31e2e3(0x248)](_0x31e2e3(0x1f8),_0x31e2e3(0x1f4),{'type':_0x869c35['STRING']}),_0x4fad56[_0x31e2e3(0x248)](_0x31e2e3(0x1f8),'osVersion',{'type':_0x869c35[_0x31e2e3(0x1f7)]}),_0x4fad56[_0x31e2e3(0x248)](_0x31e2e3(0x1f8),'deviceModel',{'type':_0x869c35['STRING']}),_0x4fad56['addColumn']('chat_interactions',_0x31e2e3(0x1f3),{'type':_0x869c35['STRING']}),_0x4fad56['addColumn'](_0x31e2e3(0x1f8),_0x31e2e3(0x20c),{'type':_0x869c35[_0x31e2e3(0x1f7)]}),_0x4fad56[_0x31e2e3(0x248)]('chat_messages','AttachmentId',{'type':_0x869c35['INTEGER']}),_0x4fad56[_0x31e2e3(0x235)](_0x31e2e3(0x202)),_0x4fad56[_0x31e2e3(0x248)](_0x31e2e3(0x1fb),_0x31e2e3(0x220),{'type':_0x869c35[_0x31e2e3(0x24b)](0x5)[_0x31e2e3(0x20b)],'defaultValue':0x1e}),_0x4fad56[_0x31e2e3(0x248)]('voice_queues',_0x31e2e3(0x22f),{'type':_0x869c35[_0x31e2e3(0x1fd)],'defaultValue':![]}),_0x4fad56[_0x31e2e3(0x248)](_0x31e2e3(0x216),'recallme',{'type':_0x869c35['BOOLEAN'],'defaultValue':![]}),_0x4fad56[_0x31e2e3(0x248)](_0x31e2e3(0x239),'recallme',{'type':_0x869c35[_0x31e2e3(0x1fd)],'defaultValue':![]}),_0x4fad56[_0x31e2e3(0x248)]('cm_hopper_history',_0x31e2e3(0x23f),{'type':_0x869c35['BOOLEAN'],'defaultValue':![]}),_0x4fad56[_0x31e2e3(0x248)](_0x31e2e3(0x201),'userDisposition',{'type':_0x869c35[_0x31e2e3(0x1f7)]}),_0x4fad56[_0x31e2e3(0x242)](_0x31e2e3(0x210)),_0x4fad56[_0x31e2e3(0x235)]('ALTER\x20TABLE\x20mail_rooms\x20DROP\x20FOREIGN\x20KEY\x20mail_rooms_ibfk_1'),_0x4fad56[_0x31e2e3(0x235)](_0x31e2e3(0x206)),_0x4fad56['dropTable'](_0x31e2e3(0x255)),_0x4fad56[_0x31e2e3(0x235)](_0x31e2e3(0x240)),_0x4fad56['query'](_0x31e2e3(0x212)),_0x4fad56[_0x31e2e3(0x235)](_0x31e2e3(0x219)),_0x4fad56['query'](_0x31e2e3(0x22d)),_0x4fad56[_0x31e2e3(0x235)](_0x31e2e3(0x1ff)),_0x4fad56[_0x31e2e3(0x235)](_0x31e2e3(0x246)),_0x4fad56[_0x31e2e3(0x242)](_0x31e2e3(0x24e)),_0x4fad56[_0x31e2e3(0x242)](_0x31e2e3(0x22c)),_0x4fad56[_0x31e2e3(0x242)](_0x31e2e3(0x244)),_0x4fad56['dropTable']('mail_applications'),_0x4fad56[_0x31e2e3(0x242)](_0x31e2e3(0x200)),_0x4fad56[_0x31e2e3(0x242)](_0x31e2e3(0x23a)),_0x4fad56[_0x31e2e3(0x242)](_0x31e2e3(0x227)),_0x4fad56[_0x31e2e3(0x242)](_0x31e2e3(0x21f)),_0x4fad56[_0x31e2e3(0x242)]('mail_queues'),_0x4fad56[_0x31e2e3(0x1fc)](_0x31e2e3(0x249),_0x31e2e3(0x250)),_0x4fad56[_0x31e2e3(0x1fc)]('mail_accounts',_0x31e2e3(0x21d)),_0x4fad56[_0x31e2e3(0x1fc)](_0x31e2e3(0x249),'whiteLabel'),_0x4fad56['removeColumn'](_0x31e2e3(0x249),_0x31e2e3(0x21e)),_0x4fad56[_0x31e2e3(0x1fc)](_0x31e2e3(0x249),_0x31e2e3(0x251)),_0x4fad56[_0x31e2e3(0x1fc)]('mail_accounts',_0x31e2e3(0x21c)),_0x4fad56[_0x31e2e3(0x1fc)](_0x31e2e3(0x249),_0x31e2e3(0x230)),_0x4fad56[_0x31e2e3(0x1fc)](_0x31e2e3(0x249),_0x31e2e3(0x24d)),_0x4fad56[_0x31e2e3(0x1fc)](_0x31e2e3(0x249),_0x31e2e3(0x254)),_0x4fad56[_0x31e2e3(0x1fc)](_0x31e2e3(0x249),'closeMethod'),_0x4fad56[_0x31e2e3(0x1fc)](_0x31e2e3(0x249),_0x31e2e3(0x232)),_0x4fad56['removeColumn'](_0x31e2e3(0x249),_0x31e2e3(0x236)),_0x4fad56[_0x31e2e3(0x248)]('mail_accounts','active',{'type':_0x869c35['BOOLEAN'],'defaultValue':!![]}),_0x4fad56[_0x31e2e3(0x1fc)](_0x31e2e3(0x214),_0x31e2e3(0x22b)),_0x4fad56[_0x31e2e3(0x242)](_0x31e2e3(0x226)),_0x4fad56[_0x31e2e3(0x235)](_0x31e2e3(0x20a)),_0x4fad56[_0x31e2e3(0x235)](_0x31e2e3(0x205)),_0x4fad56[_0x31e2e3(0x235)]('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;'),_0x4fad56['dropTable']('fax_attachments'),_0x4fad56[_0x31e2e3(0x248)]('sms_accounts',_0x31e2e3(0x1f9),{'type':_0x869c35[_0x31e2e3(0x1f7)]}),_0x4fad56[_0x31e2e3(0x248)](_0x31e2e3(0x1fa),_0x31e2e3(0x23d),{'type':_0x869c35[_0x31e2e3(0x1f7)]}),_0x4fad56[_0x31e2e3(0x248)]('sms_accounts',_0x31e2e3(0x243),{'type':_0x869c35[_0x31e2e3(0x1f7)]}),_0x4fad56[_0x31e2e3(0x248)](_0x31e2e3(0x1fa),_0x31e2e3(0x203),{'type':_0x869c35['STRING'],'allowNull':![]}),_0x4fad56[_0x31e2e3(0x235)]('ALTER\x20TABLE\x20users\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8\x20COLLATE\x20utf8_bin;'),_0x4fad56[_0x31e2e3(0x248)](_0x31e2e3(0x217),_0x31e2e3(0x203),{'type':_0x869c35['STRING'],'allowNull':![]}),_0x4fad56['addColumn'](_0x31e2e3(0x256),_0x31e2e3(0x203),{'type':_0x869c35[_0x31e2e3(0x1f7)],'allowNull':![]}),_0x4fad56['addColumn'](_0x31e2e3(0x249),_0x31e2e3(0x203),{'type':_0x869c35[_0x31e2e3(0x1f7)],'allowNull':![]}),_0x4fad56[_0x31e2e3(0x20e)](_0x57cea7);});},'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 7a714a6..44b3a00 100644 --- a/server/migrations/2.0.35.js +++ b/server/migrations/2.0.35.js @@ -1 +1 @@ -const a913_0x292b=['ALTER\x20TABLE\x20chat_interactions\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci;','ratingType','bcc','userFullname','query','dropTable','dialOrderByScheduledAt','messageId','inReplyTo','report_fax','ALTER\x20TABLE\x20mail_messages\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci;','chat_websites','report_chat','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','analytics_default_reports','addIndex\x20%s\x20%s\x20%s','MailInteractionId','then','inspect','query\x20%s','customerIp','queryInterface','table\x20dropped\x20%s','exports','attach','DESC','sequelize','util','ENUM','userName','report_openchannel','analytics_custom_reports','cm_hopper_history','signature','accountName','long','finally','campaigns','status','final','html','voice_queues','Removed\x20column\x20%s\x20from\x20%s','INTEGER','edited','mail_messages','report_chat_session','report_mail_session','STRING','chat_interactions','phoneBarEnableDtmfTone','report_sms_session','join','enqueue','prototype','users','report_fax_session','ALTER\x20TABLE\x20`mail_messages`\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ADD\x20CONSTRAINT\x20`mail_messages_ibfk_2`\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20FOREIGN\x20KEY\x20(`MailInteractionId`)\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20REFERENCES\x20mail_interactions(`id`)\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20UPDATE\x20CASCADE\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20DELETE\x20CASCADE','referer','UserId','thumb','report_openchannel_session','accountId','info','sequence','body','enableCustomerAttachment','Added\x20column\x20%s\x20to\x20%s','sentAt','TEXT','offline_chat_button','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','reason','BOOLEAN','changeColumn','read','stringify','attachment','voiceSource','removeColumn','catch','addIndex','report_sms','tail','ASC','star','editedat','subject','joins','phoneBarAutoAnswerDelay','report_mail','tools_templates','MailAccountId','addColumn'];(function(_0x224919,_0x292b85){const _0x71fefa=function(_0x5400e7){while(--_0x5400e7){_0x224919['push'](_0x224919['shift']());}};_0x71fefa(++_0x292b85);}(a913_0x292b,0xf5));const a913_0x71fe=function(_0x224919,_0x292b85){_0x224919=_0x224919-0x0;let _0x71fefa=a913_0x292b[_0x224919];return _0x71fefa;};const _0x47b964=a913_0x71fe;'use strict';const logger=require('../config/logger')('migration'),util=require(_0x47b964('0x40')),Sequence=function(){};Sequence[_0x47b964('0x5b')][_0x47b964('0x5a')]=function(_0x5400e7){const _0x569355=_0x47b964;this[_0x569355('0x1a')]=this['tail']?this[_0x569355('0x1a')][_0x569355('0x49')](_0x5400e7):_0x5400e7();};const Migration=function(_0x569933){const _0x34fe3e=_0x47b964;this[_0x34fe3e('0x3a')]=_0x569933,this[_0x34fe3e('0x7')]=new Sequence();};Migration[_0x47b964('0x5b')][_0x47b964('0x11')]=function(_0x11c76c,_0x316699,_0x8d347c){const _0x1530c0=_0x47b964,_0x28ad7d=this;this[_0x1530c0('0x7')][_0x1530c0('0x5a')](function(){const _0x30a0aa=_0x1530c0;return _0x28ad7d[_0x30a0aa('0x3a')][_0x30a0aa('0x11')](_0x11c76c,_0x316699,_0x8d347c)['then'](function(){logger['info']('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x316699,_0x11c76c);})[_0x30a0aa('0x17')](function(_0x263522){const _0x115096=_0x30a0aa;logger['info'](JSON[_0x115096('0x13')](_0x263522));});});},Migration[_0x47b964('0x5b')]['addColumn']=function(_0x430f99,_0x3e3902,_0x34e21f){const _0x2350be=_0x47b964,_0x3e4685=this;this[_0x2350be('0x7')][_0x2350be('0x5a')](function(){const _0x1751d7=_0x2350be;return _0x3e4685[_0x1751d7('0x3a')][_0x1751d7('0x24')](_0x430f99,_0x3e3902,_0x34e21f)[_0x1751d7('0x36')](function(){const _0x23d3b9=_0x1751d7;logger[_0x23d3b9('0x6')](_0x23d3b9('0xa'),_0x3e3902,_0x430f99);})['catch'](function(_0x3f2d9c){const _0x47e9de=_0x1751d7;logger['info'](JSON[_0x47e9de('0x13')](_0x3f2d9c));});});},Migration[_0x47b964('0x5b')][_0x47b964('0x2a')]=function(_0x3ea1de){const _0x4c2860=_0x47b964,_0x312de4=this;this['sequence'][_0x4c2860('0x5a')](function(){const _0x42eea8=_0x4c2860;return _0x312de4[_0x42eea8('0x3a')]['dropTable'](_0x3ea1de,{'force':!![]})['then'](function(){const _0x36e538=_0x42eea8;logger['info'](_0x36e538('0x3b'),_0x3ea1de);})[_0x42eea8('0x17')](function(_0x5e7023){const _0x3f8743=_0x42eea8;logger[_0x3f8743('0x6')](JSON['stringify'](_0x5e7023));});});},Migration['prototype'][_0x47b964('0x18')]=function(_0x1dadaf,_0x59a78b,_0x57532a){const _0x2af0f8=_0x47b964,_0x273b75=this;this[_0x2af0f8('0x7')][_0x2af0f8('0x5a')](function(){const _0x3a0949=_0x2af0f8;return _0x273b75[_0x3a0949('0x3a')][_0x3a0949('0x18')](_0x1dadaf,_0x59a78b,{'indexName':_0x57532a})['then'](function(){const _0x3fa6e2=_0x3a0949;logger[_0x3fa6e2('0x6')](_0x3fa6e2('0x34'),_0x1dadaf,_0x59a78b[_0x3fa6e2('0x59')](','),_0x57532a);})[_0x3a0949('0x17')](function(_0x3bad35){const _0xa8af8b=_0x3a0949;logger[_0xa8af8b('0x6')](JSON[_0xa8af8b('0x13')](_0x3bad35));});});},Migration[_0x47b964('0x5b')][_0x47b964('0x29')]=function(_0x437b3b){const _0x3ad8cb=_0x47b964,_0x578a12=this;this[_0x3ad8cb('0x7')][_0x3ad8cb('0x5a')](function(){const _0x4e6053=_0x3ad8cb;return _0x578a12[_0x4e6053('0x3a')][_0x4e6053('0x3f')][_0x4e6053('0x29')](_0x437b3b)['then'](function(){const _0x2b2dfa=_0x4e6053;logger[_0x2b2dfa('0x6')](_0x2b2dfa('0x38'),_0x437b3b);})[_0x4e6053('0x17')](function(_0x4b35ec){const _0x4fff38=_0x4e6053;logger[_0x4fff38('0x6')](JSON[_0x4fff38('0x13')](_0x4b35ec));});});},Migration[_0x47b964('0x5b')][_0x47b964('0x16')]=function(_0x329455,_0x3edca1){const _0x394466=_0x47b964,_0x2ef276=this;this['sequence'][_0x394466('0x5a')](function(){const _0xe87734=_0x394466;return _0x2ef276['queryInterface'][_0xe87734('0x16')](_0x329455,_0x3edca1)[_0xe87734('0x36')](function(){const _0x4f7896=_0xe87734;logger[_0x4f7896('0x6')](_0x4f7896('0x4f'),_0x3edca1,_0x329455);})[_0xe87734('0x17')](function(_0x5d54f6){const _0x1d0403=_0xe87734;logger[_0x1d0403('0x6')](util[_0x1d0403('0x37')](_0x5d54f6,{'showHidden':![],'depth':null}));});});},Migration[_0x47b964('0x5b')]['final']=function(_0x51fb47){const _0x172f82=_0x47b964;this[_0x172f82('0x7')][_0x172f82('0x5a')](function(){return _0x51fb47();});},module[_0x47b964('0x3c')]={'up':function(_0x2e7d32,_0x41b710){return new Promise(function(_0xd06a45){const _0x44b78c=a913_0x71fe,_0x277611=new Migration(_0x2e7d32);_0x277611[_0x44b78c('0x24')](_0x44b78c('0x44'),_0x44b78c('0x1f'),{'type':_0x41b710['TEXT']}),_0x277611[_0x44b78c('0x24')](_0x44b78c('0x33'),_0x44b78c('0x1f'),{'type':_0x41b710[_0x44b78c('0xc')]}),_0x277611[_0x44b78c('0x29')]('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'),_0x277611['addColumn'](_0x44b78c('0x30'),_0x44b78c('0xd'),{'type':_0x41b710[_0x44b78c('0x55')],'defaultValue':'Send'}),_0x277611['addColumn']('chat_websites',_0x44b78c('0x9'),{'type':_0x41b710[_0x44b78c('0x10')],'defaultValue':![]}),_0x277611[_0x44b78c('0x24')](_0x44b78c('0x56'),_0x44b78c('0x1'),{'type':_0x41b710[_0x44b78c('0x55')]}),_0x277611[_0x44b78c('0x24')]('chat_interactions',_0x44b78c('0x39'),{'type':_0x41b710[_0x44b78c('0x55')]}),_0x277611[_0x44b78c('0x24')](_0x44b78c('0x56'),_0x44b78c('0x26'),{'type':_0x41b710[_0x44b78c('0x41')](_0x44b78c('0x1c'),_0x44b78c('0x3')),'defaultValue':'star'}),_0x277611[_0x44b78c('0x29')](_0x44b78c('0x25')),_0x277611[_0x44b78c('0x24')](_0x44b78c('0x52'),_0x44b78c('0x8'),{'type':_0x41b710['TEXT'](_0x44b78c('0x48')),'allowNull':![]}),_0x277611['addColumn'](_0x44b78c('0x52'),_0x44b78c('0x12'),{'type':_0x41b710[_0x44b78c('0x10')],'defaultValue':![]}),_0x277611['addColumn'](_0x44b78c('0x52'),'direction',{'type':_0x41b710['ENUM']('in','out'),'defaultValue':'out','allowNull':![]}),_0x277611['changeColumn'](_0x44b78c('0x52'),_0x44b78c('0x2c'),{'type':_0x41b710['STRING'](0xbe)}),_0x277611[_0x44b78c('0x16')](_0x44b78c('0x52'),_0x44b78c('0x2d')),_0x277611[_0x44b78c('0x11')](_0x44b78c('0x52'),'to',{'type':_0x41b710[_0x44b78c('0xc')](_0x44b78c('0x48'))}),_0x277611[_0x44b78c('0x11')](_0x44b78c('0x52'),'cc',{'type':_0x41b710['TEXT'](_0x44b78c('0x48'))}),_0x277611[_0x44b78c('0x11')](_0x44b78c('0x52'),_0x44b78c('0x27'),{'type':_0x41b710[_0x44b78c('0xc')](_0x44b78c('0x48'))}),_0x277611[_0x44b78c('0x11')](_0x44b78c('0x52'),_0x44b78c('0x1e'),{'type':_0x41b710[_0x44b78c('0xc')]}),_0x277611['addColumn'](_0x44b78c('0x52'),_0x44b78c('0xb'),{'type':_0x41b710['DATE']}),_0x277611[_0x44b78c('0x24')](_0x44b78c('0x52'),_0x44b78c('0x3d'),{'type':_0x41b710[_0x44b78c('0x50')],'defaultValue':0x0}),_0x277611[_0x44b78c('0x16')](_0x44b78c('0x52'),'fromId'),_0x277611['removeColumn'](_0x44b78c('0x52'),_0x44b78c('0x14')),_0x277611[_0x44b78c('0x16')](_0x44b78c('0x52'),'text'),_0x277611[_0x44b78c('0x16')](_0x44b78c('0x52'),_0x44b78c('0x4d')),_0x277611[_0x44b78c('0x16')]('mail_messages',_0x44b78c('0xf')),_0x277611['removeColumn'](_0x44b78c('0x52'),'auto'),_0x277611[_0x44b78c('0x16')](_0x44b78c('0x52'),_0x44b78c('0x4b')),_0x277611[_0x44b78c('0x16')](_0x44b78c('0x52'),'retry'),_0x277611[_0x44b78c('0x16')](_0x44b78c('0x52'),_0x44b78c('0x15')),_0x277611[_0x44b78c('0x16')](_0x44b78c('0x52'),_0x44b78c('0x42')),_0x277611[_0x44b78c('0x16')]('mail_messages',_0x44b78c('0x28')),_0x277611['removeColumn'](_0x44b78c('0x52'),_0x44b78c('0x5')),_0x277611[_0x44b78c('0x16')](_0x44b78c('0x52'),_0x44b78c('0x47')),_0x277611[_0x44b78c('0x16')](_0x44b78c('0x52'),_0x44b78c('0x35')),_0x277611[_0x44b78c('0x24')](_0x44b78c('0x52'),_0x44b78c('0x23'),{'type':_0x41b710[_0x44b78c('0x50')]}),_0x277611[_0x44b78c('0x29')](_0x44b78c('0x32')),_0x277611['addColumn'](_0x44b78c('0x52'),'MailInteractionId',{'type':_0x41b710[_0x44b78c('0x50')]}),_0x277611['query'](_0x44b78c('0x0')),_0x277611[_0x44b78c('0x24')](_0x44b78c('0x52'),_0x44b78c('0x2'),{'type':_0x41b710[_0x44b78c('0x50')]}),_0x277611[_0x44b78c('0x29')](_0x44b78c('0xe')),_0x277611[_0x44b78c('0x24')](_0x44b78c('0x52'),'ContactId',{'type':_0x41b710[_0x44b78c('0x50')]}),_0x277611[_0x44b78c('0x29')]('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'),_0x277611[_0x44b78c('0x29')](_0x44b78c('0x2f')),_0x277611['addColumn']('mail_interactions',_0x44b78c('0x3d'),{'type':_0x41b710[_0x44b78c('0x10')],'defaultValue':![]}),_0x277611[_0x44b78c('0x24')]('mail_accounts',_0x44b78c('0x46'),{'type':_0x41b710[_0x44b78c('0xc')]}),_0x277611[_0x44b78c('0x16')](_0x44b78c('0x22'),'subject'),_0x277611[_0x44b78c('0x24')](_0x44b78c('0x5c'),_0x44b78c('0x57'),{'type':_0x41b710[_0x44b78c('0x10')],'defaultValue':![]}),_0x277611[_0x44b78c('0x24')](_0x44b78c('0x5c'),_0x44b78c('0x20'),{'type':_0x41b710['INTEGER'],'defaultValue':0x0}),_0x277611['dropTable'](_0x44b78c('0x43')),_0x277611[_0x44b78c('0x2a')](_0x44b78c('0x4')),_0x277611[_0x44b78c('0x2a')](_0x44b78c('0x31')),_0x277611[_0x44b78c('0x2a')](_0x44b78c('0x53')),_0x277611[_0x44b78c('0x2a')](_0x44b78c('0x2e')),_0x277611['dropTable'](_0x44b78c('0x5d')),_0x277611[_0x44b78c('0x2a')](_0x44b78c('0x21')),_0x277611[_0x44b78c('0x2a')](_0x44b78c('0x54')),_0x277611['dropTable'](_0x44b78c('0x19')),_0x277611[_0x44b78c('0x2a')](_0x44b78c('0x58')),_0x277611[_0x44b78c('0x24')](_0x44b78c('0x45'),_0x44b78c('0x1d'),{'type':_0x41b710['DATE']}),_0x277611[_0x44b78c('0x24')](_0x44b78c('0x45'),_0x44b78c('0x51'),{'type':_0x41b710[_0x44b78c('0x10')],'defaultValue':![]}),_0x277611[_0x44b78c('0x24')](_0x44b78c('0x4e'),_0x44b78c('0x2b'),{'type':_0x41b710[_0x44b78c('0x41')](_0x44b78c('0x3e'),_0x44b78c('0x1b')),'defaultValue':'DESC'}),_0x277611[_0x44b78c('0x24')](_0x44b78c('0x4a'),_0x44b78c('0x2b'),{'type':_0x41b710[_0x44b78c('0x41')]('DESC','ASC'),'defaultValue':'DESC'}),_0x277611[_0x44b78c('0x4c')](_0xd06a45);});},'down':function(){}}; \ No newline at end of file +const a1075_0x50c2=['voiceSource','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','report_mail_session','cm_hopper_history','dialOrderByScheduledAt','referer','report_sms_session','report_mail','userFullname','BOOLEAN','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','prototype','Changed\x20column\x20%s\x20in\x20table\x20%s','finally','report_sms','report_chat_session','query','direction','signature','util','info','enqueue','report_chat','mail_messages','attach','ContactId','text','inspect','ASC','status','ALTER\x20TABLE\x20chat_interactions\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci;','removeColumn','STRING','MailInteractionId','html','ratingType','offline_chat_button','DESC','ALTER\x20TABLE\x20mail_messages\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci;','read','Added\x20column\x20%s\x20to\x20%s','INTEGER','sentAt','DATE','table\x20dropped\x20%s','thumb','sequence','voice_queues','addIndex','addColumn','long','phoneBarAutoAnswerDelay','report_openchannel_session','users','joins','ENUM','dropTable','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','auto','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','phoneBarEnableDtmfTone','attachment','MailAccountId','Send','enableCustomerAttachment','changeColumn','reason','report_fax','chat_interactions','catch','analytics_custom_reports','messageId','stringify','accountName','tools_templates','subject','editedat','TEXT','star','join','analytics_default_reports','then','body','out','report_fax_session','sequelize','accountId','queryInterface','tail','chat_websites','mail_accounts','final','Removed\x20column\x20%s\x20from\x20%s','campaigns','exports'];(function(_0x3c4357,_0x274f2c){const _0x50c248=function(_0x3309aa){while(--_0x3309aa){_0x3c4357['push'](_0x3c4357['shift']());}};_0x50c248(++_0x274f2c);}(a1075_0x50c2,0x84));const a1075_0x3309=function(_0x3c4357,_0x274f2c){_0x3c4357=_0x3c4357-0x1a9;let _0x50c248=a1075_0x50c2[_0x3c4357];return _0x50c248;};const a1075_0x1228db=a1075_0x3309;'use strict';const logger=require('../config/logger')('migration'),util=require(a1075_0x1228db(0x1f6)),Sequence=function(){};Sequence[a1075_0x1228db(0x1ee)][a1075_0x1228db(0x1f8)]=function(_0x30962e){const _0x15ae62=a1075_0x1228db;this[_0x15ae62(0x1dc)]=this[_0x15ae62(0x1dc)]?this['tail'][_0x15ae62(0x1f0)](_0x30962e):_0x30962e();};const Migration=function(_0x48fb85){const _0x4f3c13=a1075_0x1228db;this['queryInterface']=_0x48fb85,this[_0x4f3c13(0x1b2)]=new Sequence();};Migration[a1075_0x1228db(0x1ee)][a1075_0x1228db(0x1c5)]=function(_0x3006fa,_0x5b8b3c,_0x3faa8e){const _0x26d8af=this;this['sequence']['enqueue'](function(){const _0x317b29=a1075_0x3309;return _0x26d8af[_0x317b29(0x1db)][_0x317b29(0x1c5)](_0x3006fa,_0x5b8b3c,_0x3faa8e)[_0x317b29(0x1d5)](function(){const _0x53f89d=_0x317b29;logger[_0x53f89d(0x1f7)](_0x53f89d(0x1ef),_0x5b8b3c,_0x3006fa);})['catch'](function(_0x334c46){const _0xc4ff33=_0x317b29;logger[_0xc4ff33(0x1f7)](JSON[_0xc4ff33(0x1cc)](_0x334c46));});});},Migration[a1075_0x1228db(0x1ee)][a1075_0x1228db(0x1b5)]=function(_0xa082e2,_0x1be493,_0x3746bb){const _0x2edb98=a1075_0x1228db,_0x23767c=this;this['sequence'][_0x2edb98(0x1f8)](function(){const _0x11c0d2=_0x2edb98;return _0x23767c['queryInterface']['addColumn'](_0xa082e2,_0x1be493,_0x3746bb)['then'](function(){const _0x45f578=a1075_0x3309;logger['info'](_0x45f578(0x1ac),_0x1be493,_0xa082e2);})[_0x11c0d2(0x1c9)](function(_0x500468){const _0x3c30f8=_0x11c0d2;logger[_0x3c30f8(0x1f7)](JSON[_0x3c30f8(0x1cc)](_0x500468));});});},Migration[a1075_0x1228db(0x1ee)][a1075_0x1228db(0x1bc)]=function(_0x67d72e){const _0x3a74de=a1075_0x1228db,_0x2ed21b=this;this[_0x3a74de(0x1b2)]['enqueue'](function(){const _0x47b2fe=_0x3a74de;return _0x2ed21b[_0x47b2fe(0x1db)][_0x47b2fe(0x1bc)](_0x67d72e,{'force':!![]})[_0x47b2fe(0x1d5)](function(){const _0x549a1e=_0x47b2fe;logger[_0x549a1e(0x1f7)](_0x549a1e(0x1b0),_0x67d72e);})[_0x47b2fe(0x1c9)](function(_0x1fcb27){const _0x257aa5=_0x47b2fe;logger[_0x257aa5(0x1f7)](JSON[_0x257aa5(0x1cc)](_0x1fcb27));});});},Migration[a1075_0x1228db(0x1ee)][a1075_0x1228db(0x1b4)]=function(_0x2582ed,_0x39fb7d,_0x260f02){const _0x215c72=a1075_0x1228db,_0x5a57b7=this;this['sequence'][_0x215c72(0x1f8)](function(){const _0x4b0e33=_0x215c72;return _0x5a57b7[_0x4b0e33(0x1db)][_0x4b0e33(0x1b4)](_0x2582ed,_0x39fb7d,{'indexName':_0x260f02})['then'](function(){const _0x5029e9=_0x4b0e33;logger['info']('addIndex\x20%s\x20%s\x20%s',_0x2582ed,_0x39fb7d[_0x5029e9(0x1d3)](','),_0x260f02);})['catch'](function(_0x961ccf){logger['info'](JSON['stringify'](_0x961ccf));});});},Migration[a1075_0x1228db(0x1ee)]['query']=function(_0xb279eb){const _0x91ced9=a1075_0x1228db,_0x237b1a=this;this[_0x91ced9(0x1b2)][_0x91ced9(0x1f8)](function(){const _0x35d6cd=_0x91ced9;return _0x237b1a[_0x35d6cd(0x1db)][_0x35d6cd(0x1d9)][_0x35d6cd(0x1f3)](_0xb279eb)[_0x35d6cd(0x1d5)](function(){const _0x22a1d8=_0x35d6cd;logger[_0x22a1d8(0x1f7)]('query\x20%s',_0xb279eb);})[_0x35d6cd(0x1c9)](function(_0x511aeb){const _0x3aac39=_0x35d6cd;logger[_0x3aac39(0x1f7)](JSON[_0x3aac39(0x1cc)](_0x511aeb));});});},Migration[a1075_0x1228db(0x1ee)][a1075_0x1228db(0x202)]=function(_0x10df1f,_0x1595ff){const _0x4e6964=a1075_0x1228db,_0x52c3cc=this;this[_0x4e6964(0x1b2)][_0x4e6964(0x1f8)](function(){const _0x5c7846=_0x4e6964;return _0x52c3cc[_0x5c7846(0x1db)][_0x5c7846(0x202)](_0x10df1f,_0x1595ff)[_0x5c7846(0x1d5)](function(){const _0x2b6536=_0x5c7846;logger[_0x2b6536(0x1f7)](_0x2b6536(0x1e0),_0x1595ff,_0x10df1f);})[_0x5c7846(0x1c9)](function(_0x6d5bfb){const _0x46c0d3=_0x5c7846;logger[_0x46c0d3(0x1f7)](util[_0x46c0d3(0x1fe)](_0x6d5bfb,{'showHidden':![],'depth':null}));});});},Migration[a1075_0x1228db(0x1ee)][a1075_0x1228db(0x1df)]=function(_0x581cef){const _0x7f0265=a1075_0x1228db;this[_0x7f0265(0x1b2)][_0x7f0265(0x1f8)](function(){return _0x581cef();});},module[a1075_0x1228db(0x1e2)]={'up':function(_0x67253,_0x2b2b3c){return new Promise(function(_0x1df00d){const _0x1cef92=a1075_0x3309,_0xed8280=new Migration(_0x67253);_0xed8280[_0x1cef92(0x1b5)](_0x1cef92(0x1ca),_0x1cef92(0x1ba),{'type':_0x2b2b3c['TEXT']}),_0xed8280[_0x1cef92(0x1b5)](_0x1cef92(0x1d4),_0x1cef92(0x1ba),{'type':_0x2b2b3c[_0x1cef92(0x1d1)]}),_0xed8280[_0x1cef92(0x1f3)]('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'),_0xed8280['addColumn']('chat_websites',_0x1cef92(0x207),{'type':_0x2b2b3c[_0x1cef92(0x203)],'defaultValue':_0x1cef92(0x1c3)}),_0xed8280['addColumn'](_0x1cef92(0x1dd),_0x1cef92(0x1c4),{'type':_0x2b2b3c['BOOLEAN'],'defaultValue':![]}),_0xed8280[_0x1cef92(0x1b5)](_0x1cef92(0x1c8),_0x1cef92(0x1e8),{'type':_0x2b2b3c[_0x1cef92(0x203)]}),_0xed8280[_0x1cef92(0x1b5)](_0x1cef92(0x1c8),'customerIp',{'type':_0x2b2b3c[_0x1cef92(0x203)]}),_0xed8280[_0x1cef92(0x1b5)]('chat_interactions',_0x1cef92(0x206),{'type':_0x2b2b3c[_0x1cef92(0x1bb)](_0x1cef92(0x1d2),_0x1cef92(0x1b1)),'defaultValue':_0x1cef92(0x1d2)}),_0xed8280[_0x1cef92(0x1f3)](_0x1cef92(0x201)),_0xed8280['addColumn']('mail_messages',_0x1cef92(0x1d6),{'type':_0x2b2b3c[_0x1cef92(0x1d1)]('long'),'allowNull':![]}),_0xed8280['addColumn'](_0x1cef92(0x1fa),_0x1cef92(0x1ab),{'type':_0x2b2b3c[_0x1cef92(0x1ec)],'defaultValue':![]}),_0xed8280[_0x1cef92(0x1b5)](_0x1cef92(0x1fa),_0x1cef92(0x1f4),{'type':_0x2b2b3c[_0x1cef92(0x1bb)]('in',_0x1cef92(0x1d7)),'defaultValue':_0x1cef92(0x1d7),'allowNull':![]}),_0xed8280['changeColumn'](_0x1cef92(0x1fa),_0x1cef92(0x1cb),{'type':_0x2b2b3c[_0x1cef92(0x203)](0xbe)}),_0xed8280[_0x1cef92(0x202)]('mail_messages','inReplyTo'),_0xed8280[_0x1cef92(0x1c5)](_0x1cef92(0x1fa),'to',{'type':_0x2b2b3c[_0x1cef92(0x1d1)](_0x1cef92(0x1b6))}),_0xed8280[_0x1cef92(0x1c5)](_0x1cef92(0x1fa),'cc',{'type':_0x2b2b3c[_0x1cef92(0x1d1)](_0x1cef92(0x1b6))}),_0xed8280[_0x1cef92(0x1c5)](_0x1cef92(0x1fa),'bcc',{'type':_0x2b2b3c['TEXT']('long')}),_0xed8280[_0x1cef92(0x1c5)](_0x1cef92(0x1fa),_0x1cef92(0x1cf),{'type':_0x2b2b3c['TEXT']}),_0xed8280['addColumn'](_0x1cef92(0x1fa),_0x1cef92(0x1ae),{'type':_0x2b2b3c[_0x1cef92(0x1af)]}),_0xed8280[_0x1cef92(0x1b5)](_0x1cef92(0x1fa),_0x1cef92(0x1fb),{'type':_0x2b2b3c[_0x1cef92(0x1ad)],'defaultValue':0x0}),_0xed8280[_0x1cef92(0x202)](_0x1cef92(0x1fa),'fromId'),_0xed8280[_0x1cef92(0x202)](_0x1cef92(0x1fa),_0x1cef92(0x1c1)),_0xed8280[_0x1cef92(0x202)](_0x1cef92(0x1fa),_0x1cef92(0x1fd)),_0xed8280[_0x1cef92(0x202)]('mail_messages',_0x1cef92(0x205)),_0xed8280[_0x1cef92(0x202)](_0x1cef92(0x1fa),_0x1cef92(0x1c6)),_0xed8280[_0x1cef92(0x202)]('mail_messages',_0x1cef92(0x1be)),_0xed8280[_0x1cef92(0x202)](_0x1cef92(0x1fa),_0x1cef92(0x200)),_0xed8280[_0x1cef92(0x202)](_0x1cef92(0x1fa),'retry'),_0xed8280[_0x1cef92(0x202)]('mail_messages',_0x1cef92(0x1e3)),_0xed8280[_0x1cef92(0x202)](_0x1cef92(0x1fa),'userName'),_0xed8280[_0x1cef92(0x202)]('mail_messages',_0x1cef92(0x1eb)),_0xed8280[_0x1cef92(0x202)]('mail_messages',_0x1cef92(0x1da)),_0xed8280[_0x1cef92(0x202)]('mail_messages',_0x1cef92(0x1cd)),_0xed8280['removeColumn']('mail_messages','MailInteractionId'),_0xed8280[_0x1cef92(0x1b5)](_0x1cef92(0x1fa),_0x1cef92(0x1c2),{'type':_0x2b2b3c[_0x1cef92(0x1ad)]}),_0xed8280[_0x1cef92(0x1f3)](_0x1cef92(0x1bf)),_0xed8280[_0x1cef92(0x1b5)](_0x1cef92(0x1fa),_0x1cef92(0x204),{'type':_0x2b2b3c[_0x1cef92(0x1ad)]}),_0xed8280[_0x1cef92(0x1f3)](_0x1cef92(0x1ed)),_0xed8280[_0x1cef92(0x1b5)](_0x1cef92(0x1fa),'UserId',{'type':_0x2b2b3c[_0x1cef92(0x1ad)]}),_0xed8280[_0x1cef92(0x1f3)](_0x1cef92(0x1bd)),_0xed8280[_0x1cef92(0x1b5)]('mail_messages',_0x1cef92(0x1fc),{'type':_0x2b2b3c[_0x1cef92(0x1ad)]}),_0xed8280[_0x1cef92(0x1f3)](_0x1cef92(0x1e4)),_0xed8280[_0x1cef92(0x1f3)](_0x1cef92(0x1aa)),_0xed8280['addColumn']('mail_interactions',_0x1cef92(0x1fb),{'type':_0x2b2b3c[_0x1cef92(0x1ec)],'defaultValue':![]}),_0xed8280[_0x1cef92(0x1b5)](_0x1cef92(0x1de),_0x1cef92(0x1f5),{'type':_0x2b2b3c[_0x1cef92(0x1d1)]}),_0xed8280[_0x1cef92(0x202)](_0x1cef92(0x1ce),_0x1cef92(0x1cf)),_0xed8280[_0x1cef92(0x1b5)]('users',_0x1cef92(0x1c0),{'type':_0x2b2b3c[_0x1cef92(0x1ec)],'defaultValue':![]}),_0xed8280[_0x1cef92(0x1b5)](_0x1cef92(0x1b9),_0x1cef92(0x1b7),{'type':_0x2b2b3c[_0x1cef92(0x1ad)],'defaultValue':0x0}),_0xed8280[_0x1cef92(0x1bc)]('report_openchannel'),_0xed8280[_0x1cef92(0x1bc)](_0x1cef92(0x1b8)),_0xed8280[_0x1cef92(0x1bc)](_0x1cef92(0x1f9)),_0xed8280[_0x1cef92(0x1bc)](_0x1cef92(0x1f2)),_0xed8280[_0x1cef92(0x1bc)](_0x1cef92(0x1c7)),_0xed8280['dropTable'](_0x1cef92(0x1d8)),_0xed8280[_0x1cef92(0x1bc)](_0x1cef92(0x1ea)),_0xed8280[_0x1cef92(0x1bc)](_0x1cef92(0x1e5)),_0xed8280[_0x1cef92(0x1bc)](_0x1cef92(0x1f1)),_0xed8280[_0x1cef92(0x1bc)](_0x1cef92(0x1e9)),_0xed8280[_0x1cef92(0x1b5)](_0x1cef92(0x1e6),_0x1cef92(0x1d0),{'type':_0x2b2b3c[_0x1cef92(0x1af)]}),_0xed8280[_0x1cef92(0x1b5)](_0x1cef92(0x1e6),'edited',{'type':_0x2b2b3c[_0x1cef92(0x1ec)],'defaultValue':![]}),_0xed8280[_0x1cef92(0x1b5)](_0x1cef92(0x1b3),_0x1cef92(0x1e7),{'type':_0x2b2b3c[_0x1cef92(0x1bb)](_0x1cef92(0x1a9),_0x1cef92(0x1ff)),'defaultValue':_0x1cef92(0x1a9)}),_0xed8280[_0x1cef92(0x1b5)](_0x1cef92(0x1e1),_0x1cef92(0x1e7),{'type':_0x2b2b3c[_0x1cef92(0x1bb)]('DESC','ASC'),'defaultValue':_0x1cef92(0x1a9)}),_0xed8280['final'](_0x1df00d);});},'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 f52311c..1d12417 100644 --- a/server/migrations/2.0.36.js +++ b/server/migrations/2.0.36.js @@ -1 +1 @@ -const a914_0x56ca=['finally','inspect','then','prototype','INTEGER','Added\x20column\x20%s\x20to\x20%s','openchannel_messages','stringify','join','queryInterface','dropTable','removeColumn','tail','sequence','../config/logger','addIndex\x20%s\x20%s\x20%s','util','final','AttachmentId','Removed\x20column\x20%s\x20from\x20%s','enqueue','migration','sequelize','info','query\x20%s','addColumn','addIndex','exports','catch','table\x20dropped\x20%s','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','Changed\x20column\x20%s\x20in\x20table\x20%s','query'];(function(_0x3a7402,_0x56cac6){const _0x50415e=function(_0x52bfca){while(--_0x52bfca){_0x3a7402['push'](_0x3a7402['shift']());}};_0x50415e(++_0x56cac6);}(a914_0x56ca,0x140));const a914_0x5041=function(_0x3a7402,_0x56cac6){_0x3a7402=_0x3a7402-0x0;let _0x50415e=a914_0x56ca[_0x3a7402];return _0x50415e;};const _0xa41bc1=a914_0x5041;'use strict';const logger=require(_0xa41bc1('0x18'))(_0xa41bc1('0x1f')),util=require(_0xa41bc1('0x1a')),Sequence=function(){};Sequence[_0xa41bc1('0xd')]['enqueue']=function(_0x52bfca){const _0x280997=_0xa41bc1;this[_0x280997('0x16')]=this['tail']?this['tail'][_0x280997('0xa')](_0x52bfca):_0x52bfca();};const Migration=function(_0x586f6e){const _0xb84b5=_0xa41bc1;this['queryInterface']=_0x586f6e,this[_0xb84b5('0x17')]=new Sequence();};Migration[_0xa41bc1('0xd')]['changeColumn']=function(_0x4241b1,_0x522e94,_0xd8b5a6){const _0x3835cf=_0xa41bc1,_0x23b606=this;this['sequence'][_0x3835cf('0x1e')](function(){const _0x5cbb6b=_0x3835cf;return _0x23b606[_0x5cbb6b('0x13')]['changeColumn'](_0x4241b1,_0x522e94,_0xd8b5a6)[_0x5cbb6b('0xc')](function(){const _0x5324b9=_0x5cbb6b;logger[_0x5324b9('0x0')](_0x5324b9('0x8'),_0x522e94,_0x4241b1);})[_0x5cbb6b('0x5')](function(_0x4d0575){const _0x25d7c8=_0x5cbb6b;logger[_0x25d7c8('0x0')](JSON[_0x25d7c8('0x11')](_0x4d0575));});});},Migration[_0xa41bc1('0xd')][_0xa41bc1('0x2')]=function(_0x5d0a22,_0x3f7701,_0x5db392){const _0x5dfceb=_0xa41bc1,_0x7be731=this;this[_0x5dfceb('0x17')][_0x5dfceb('0x1e')](function(){const _0x54b06b=_0x5dfceb;return _0x7be731[_0x54b06b('0x13')][_0x54b06b('0x2')](_0x5d0a22,_0x3f7701,_0x5db392)[_0x54b06b('0xc')](function(){const _0x3c2894=_0x54b06b;logger[_0x3c2894('0x0')](_0x3c2894('0xf'),_0x3f7701,_0x5d0a22);})[_0x54b06b('0x5')](function(_0x18573b){const _0x36d058=_0x54b06b;logger[_0x36d058('0x0')](JSON['stringify'](_0x18573b));});});},Migration[_0xa41bc1('0xd')]['dropTable']=function(_0x36de3d){const _0x477290=this;this['sequence']['enqueue'](function(){const _0x481632=a914_0x5041;return _0x477290[_0x481632('0x13')][_0x481632('0x14')](_0x36de3d,{'force':!![]})[_0x481632('0xc')](function(){const _0x36b636=_0x481632;logger[_0x36b636('0x0')](_0x36b636('0x6'),_0x36de3d);})['catch'](function(_0x15f56a){const _0x2b26b4=_0x481632;logger['info'](JSON[_0x2b26b4('0x11')](_0x15f56a));});});},Migration[_0xa41bc1('0xd')][_0xa41bc1('0x3')]=function(_0x27b485,_0xbf5d6d,_0x1c5715){const _0x3751b2=_0xa41bc1,_0x3f8e79=this;this['sequence'][_0x3751b2('0x1e')](function(){const _0x368e26=_0x3751b2;return _0x3f8e79[_0x368e26('0x13')]['addIndex'](_0x27b485,_0xbf5d6d,{'indexName':_0x1c5715})[_0x368e26('0xc')](function(){const _0x574a3c=_0x368e26;logger['info'](_0x574a3c('0x19'),_0x27b485,_0xbf5d6d[_0x574a3c('0x12')](','),_0x1c5715);})['catch'](function(_0x20192b){const _0x2b31e9=_0x368e26;logger[_0x2b31e9('0x0')](JSON['stringify'](_0x20192b));});});},Migration[_0xa41bc1('0xd')][_0xa41bc1('0x9')]=function(_0x5b625e){const _0x2c5180=_0xa41bc1,_0x25c0aa=this;this['sequence'][_0x2c5180('0x1e')](function(){const _0x3cb840=_0x2c5180;return _0x25c0aa[_0x3cb840('0x13')][_0x3cb840('0x20')][_0x3cb840('0x9')](_0x5b625e)['then'](function(){const _0x2cc76b=_0x3cb840;logger[_0x2cc76b('0x0')](_0x2cc76b('0x1'),_0x5b625e);})[_0x3cb840('0x5')](function(_0x2e6245){const _0x2c0233=_0x3cb840;logger[_0x2c0233('0x0')](JSON['stringify'](_0x2e6245));});});},Migration['prototype'][_0xa41bc1('0x15')]=function(_0x36e2aa,_0x443cbe){const _0x110aee=_0xa41bc1,_0x551ad2=this;this[_0x110aee('0x17')][_0x110aee('0x1e')](function(){const _0x4cdac8=_0x110aee;return _0x551ad2[_0x4cdac8('0x13')][_0x4cdac8('0x15')](_0x36e2aa,_0x443cbe)[_0x4cdac8('0xc')](function(){const _0x75007f=_0x4cdac8;logger[_0x75007f('0x0')](_0x75007f('0x1d'),_0x443cbe,_0x36e2aa);})['catch'](function(_0x46320c){const _0x3d135b=_0x4cdac8;logger['info'](util[_0x3d135b('0xb')](_0x46320c,{'showHidden':![],'depth':null}));});});},Migration[_0xa41bc1('0xd')][_0xa41bc1('0x1b')]=function(_0x2a0695){const _0x554263=_0xa41bc1;this[_0x554263('0x17')][_0x554263('0x1e')](function(){return _0x2a0695();});},module[_0xa41bc1('0x4')]={'up':function(_0x4a0574,_0x5c5653){return new Promise(function(_0x27950a){const _0x1eb280=a914_0x5041,_0x182e84=new Migration(_0x4a0574);_0x182e84[_0x1eb280('0x2')](_0x1eb280('0x10'),_0x1eb280('0x1c'),{'type':_0x5c5653[_0x1eb280('0xe')]}),_0x182e84[_0x1eb280('0x9')](_0x1eb280('0x7')),_0x182e84[_0x1eb280('0x1b')](_0x27950a);});},'down':function(){}}; \ No newline at end of file +const a1076_0x5425=['then','queryInterface','query','INTEGER','inspect','Changed\x20column\x20%s\x20in\x20table\x20%s','enqueue','migration','addIndex','table\x20dropped\x20%s','Removed\x20column\x20%s\x20from\x20%s','finally','sequelize','tail','prototype','final','AttachmentId','addIndex\x20%s\x20%s\x20%s','stringify','util','sequence','info','query\x20%s','removeColumn','addColumn','openchannel_messages','dropTable','changeColumn','exports','catch','Added\x20column\x20%s\x20to\x20%s'];(function(_0x114d4e,_0x3e36ea){const _0x54254b=function(_0x590ef8){while(--_0x590ef8){_0x114d4e['push'](_0x114d4e['shift']());}};_0x54254b(++_0x3e36ea);}(a1076_0x5425,0x1ce));const a1076_0x590e=function(_0x114d4e,_0x3e36ea){_0x114d4e=_0x114d4e-0x183;let _0x54254b=a1076_0x5425[_0x114d4e];return _0x54254b;};const a1076_0x39dd6a=a1076_0x590e;'use strict';const logger=require('../config/logger')(a1076_0x39dd6a(0x18d)),util=require(a1076_0x39dd6a(0x199)),Sequence=function(){};Sequence[a1076_0x39dd6a(0x194)]['enqueue']=function(_0x140503){const _0x480e3e=a1076_0x39dd6a;this[_0x480e3e(0x193)]=this['tail']?this[_0x480e3e(0x193)][_0x480e3e(0x191)](_0x140503):_0x140503();};const Migration=function(_0x56567b){const _0xbdead7=a1076_0x39dd6a;this[_0xbdead7(0x187)]=_0x56567b,this['sequence']=new Sequence();};Migration[a1076_0x39dd6a(0x194)][a1076_0x39dd6a(0x1a1)]=function(_0x5a2bbe,_0x2f5fe9,_0x7b0f85){const _0x59f632=a1076_0x39dd6a,_0x4a9216=this;this[_0x59f632(0x19a)][_0x59f632(0x18c)](function(){const _0x4e5fe3=_0x59f632;return _0x4a9216[_0x4e5fe3(0x187)][_0x4e5fe3(0x1a1)](_0x5a2bbe,_0x2f5fe9,_0x7b0f85)[_0x4e5fe3(0x186)](function(){const _0x3e45fb=_0x4e5fe3;logger[_0x3e45fb(0x19b)](_0x3e45fb(0x18b),_0x2f5fe9,_0x5a2bbe);})[_0x4e5fe3(0x184)](function(_0x10ab68){const _0x33c4e1=_0x4e5fe3;logger[_0x33c4e1(0x19b)](JSON[_0x33c4e1(0x198)](_0x10ab68));});});},Migration[a1076_0x39dd6a(0x194)][a1076_0x39dd6a(0x19e)]=function(_0x50f8d1,_0x32e6d8,_0x7260e9){const _0x51a9ee=a1076_0x39dd6a,_0x5a259a=this;this[_0x51a9ee(0x19a)]['enqueue'](function(){const _0x59be59=_0x51a9ee;return _0x5a259a[_0x59be59(0x187)]['addColumn'](_0x50f8d1,_0x32e6d8,_0x7260e9)[_0x59be59(0x186)](function(){const _0xa91014=_0x59be59;logger[_0xa91014(0x19b)](_0xa91014(0x185),_0x32e6d8,_0x50f8d1);})['catch'](function(_0x2d7b02){const _0x2bd635=_0x59be59;logger[_0x2bd635(0x19b)](JSON[_0x2bd635(0x198)](_0x2d7b02));});});},Migration['prototype'][a1076_0x39dd6a(0x1a0)]=function(_0x1bb2cc){const _0x186dfe=a1076_0x39dd6a,_0x39b033=this;this[_0x186dfe(0x19a)]['enqueue'](function(){const _0x5c6c46=_0x186dfe;return _0x39b033[_0x5c6c46(0x187)][_0x5c6c46(0x1a0)](_0x1bb2cc,{'force':!![]})[_0x5c6c46(0x186)](function(){const _0x475889=_0x5c6c46;logger[_0x475889(0x19b)](_0x475889(0x18f),_0x1bb2cc);})[_0x5c6c46(0x184)](function(_0x26dad6){const _0x3c5bfb=_0x5c6c46;logger[_0x3c5bfb(0x19b)](JSON['stringify'](_0x26dad6));});});},Migration[a1076_0x39dd6a(0x194)][a1076_0x39dd6a(0x18e)]=function(_0x50db3c,_0x33f12d,_0x104938){const _0x3940ce=a1076_0x39dd6a,_0x5e88ff=this;this[_0x3940ce(0x19a)]['enqueue'](function(){const _0x270afe=_0x3940ce;return _0x5e88ff[_0x270afe(0x187)][_0x270afe(0x18e)](_0x50db3c,_0x33f12d,{'indexName':_0x104938})[_0x270afe(0x186)](function(){const _0x4d5f2d=_0x270afe;logger[_0x4d5f2d(0x19b)](_0x4d5f2d(0x197),_0x50db3c,_0x33f12d['join'](','),_0x104938);})[_0x270afe(0x184)](function(_0x5933c1){const _0x367e0c=_0x270afe;logger[_0x367e0c(0x19b)](JSON[_0x367e0c(0x198)](_0x5933c1));});});},Migration[a1076_0x39dd6a(0x194)]['query']=function(_0x39c59f){const _0x5835ed=a1076_0x39dd6a,_0x5ee9a4=this;this[_0x5835ed(0x19a)][_0x5835ed(0x18c)](function(){const _0x3422bd=_0x5835ed;return _0x5ee9a4[_0x3422bd(0x187)][_0x3422bd(0x192)]['query'](_0x39c59f)[_0x3422bd(0x186)](function(){const _0xbe1761=_0x3422bd;logger[_0xbe1761(0x19b)](_0xbe1761(0x19c),_0x39c59f);})[_0x3422bd(0x184)](function(_0x208ac8){const _0x1b285d=_0x3422bd;logger[_0x1b285d(0x19b)](JSON[_0x1b285d(0x198)](_0x208ac8));});});},Migration[a1076_0x39dd6a(0x194)][a1076_0x39dd6a(0x19d)]=function(_0x28c133,_0x5028c3){const _0x1f390b=a1076_0x39dd6a,_0x24a7c8=this;this[_0x1f390b(0x19a)][_0x1f390b(0x18c)](function(){const _0x326e19=_0x1f390b;return _0x24a7c8[_0x326e19(0x187)][_0x326e19(0x19d)](_0x28c133,_0x5028c3)['then'](function(){const _0x20c087=_0x326e19;logger[_0x20c087(0x19b)](_0x20c087(0x190),_0x5028c3,_0x28c133);})[_0x326e19(0x184)](function(_0x2888fd){const _0x15f88e=_0x326e19;logger[_0x15f88e(0x19b)](util[_0x15f88e(0x18a)](_0x2888fd,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1076_0x39dd6a(0x195)]=function(_0x506d11){const _0x2dee4d=a1076_0x39dd6a;this[_0x2dee4d(0x19a)]['enqueue'](function(){return _0x506d11();});},module[a1076_0x39dd6a(0x183)]={'up':function(_0x4a168b,_0x490ad7){return new Promise(function(_0x10c5a6){const _0x592919=a1076_0x590e,_0x544596=new Migration(_0x4a168b);_0x544596[_0x592919(0x19e)](_0x592919(0x19f),_0x592919(0x196),{'type':_0x490ad7[_0x592919(0x189)]}),_0x544596[_0x592919(0x188)]('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'),_0x544596['final'](_0x10c5a6);});},'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 00f8973..d781374 100644 --- a/server/migrations/2.0.37.js +++ b/server/migrations/2.0.37.js @@ -1 +1 @@ -const a915_0x1321=['prototype','dropTable','stringify','info','tail','sequence','queryInterface','jscripty_projects','table\x20dropped\x20%s','sms_messages','addIndex\x20%s\x20%s\x20%s','BOOLEAN','Changed\x20column\x20%s\x20in\x20table\x20%s','addColumn','enqueue','removeColumn','sequelize','sms_interactions','Removed\x20column\x20%s\x20from\x20%s','completed','query\x20%s','enableUncompleteSave','STRING','final','query','util','migration','changeColumn','catch','phone','Added\x20column\x20%s\x20to\x20%s','addIndex','exports','then'];(function(_0x1853f8,_0x1321c2){const _0x47f68d=function(_0x33238c){while(--_0x33238c){_0x1853f8['push'](_0x1853f8['shift']());}};_0x47f68d(++_0x1321c2);}(a915_0x1321,0x6c));const a915_0x47f6=function(_0x1853f8,_0x1321c2){_0x1853f8=_0x1853f8-0x0;let _0x47f68d=a915_0x1321[_0x1853f8];return _0x47f68d;};const _0x1c2c78=a915_0x47f6;'use strict';const logger=require('../config/logger')(_0x1c2c78('0x14')),util=require(_0x1c2c78('0x13')),Sequence=function(){};Sequence[_0x1c2c78('0x1c')][_0x1c2c78('0x8')]=function(_0x33238c){const _0x1c8999=_0x1c2c78;this[_0x1c8999('0x20')]=this['tail']?this[_0x1c8999('0x20')]['finally'](_0x33238c):_0x33238c();};const Migration=function(_0x7c38b7){const _0x144fc1=_0x1c2c78;this[_0x144fc1('0x0')]=_0x7c38b7,this[_0x144fc1('0x21')]=new Sequence();};Migration['prototype'][_0x1c2c78('0x15')]=function(_0x123a51,_0x416dfe,_0x41ad18){const _0x382f89=_0x1c2c78,_0x40de8f=this;this[_0x382f89('0x21')][_0x382f89('0x8')](function(){const _0x177688=_0x382f89;return _0x40de8f[_0x177688('0x0')][_0x177688('0x15')](_0x123a51,_0x416dfe,_0x41ad18)[_0x177688('0x1b')](function(){const _0x1775c1=_0x177688;logger[_0x1775c1('0x1f')](_0x1775c1('0x6'),_0x416dfe,_0x123a51);})[_0x177688('0x16')](function(_0x38c967){const _0x78a4eb=_0x177688;logger['info'](JSON[_0x78a4eb('0x1e')](_0x38c967));});});},Migration['prototype'][_0x1c2c78('0x7')]=function(_0x2e3dee,_0x1aea8f,_0xf4139a){const _0x138612=_0x1c2c78,_0x17197b=this;this[_0x138612('0x21')]['enqueue'](function(){const _0x372fdf=_0x138612;return _0x17197b[_0x372fdf('0x0')][_0x372fdf('0x7')](_0x2e3dee,_0x1aea8f,_0xf4139a)[_0x372fdf('0x1b')](function(){const _0x2ae4ff=_0x372fdf;logger[_0x2ae4ff('0x1f')](_0x2ae4ff('0x18'),_0x1aea8f,_0x2e3dee);})[_0x372fdf('0x16')](function(_0x1ce930){const _0x17e125=_0x372fdf;logger[_0x17e125('0x1f')](JSON[_0x17e125('0x1e')](_0x1ce930));});});},Migration[_0x1c2c78('0x1c')][_0x1c2c78('0x1d')]=function(_0x35cf50){const _0xf89a37=_0x1c2c78,_0x159173=this;this['sequence'][_0xf89a37('0x8')](function(){const _0x4d8043=_0xf89a37;return _0x159173[_0x4d8043('0x0')]['dropTable'](_0x35cf50,{'force':!![]})[_0x4d8043('0x1b')](function(){const _0x293376=_0x4d8043;logger[_0x293376('0x1f')](_0x293376('0x2'),_0x35cf50);})['catch'](function(_0x467386){const _0x465aeb=_0x4d8043;logger[_0x465aeb('0x1f')](JSON[_0x465aeb('0x1e')](_0x467386));});});},Migration[_0x1c2c78('0x1c')]['addIndex']=function(_0x3fd248,_0x1e1139,_0x36dc57){const _0x10b6d7=this;this['sequence']['enqueue'](function(){const _0x227b7f=a915_0x47f6;return _0x10b6d7['queryInterface'][_0x227b7f('0x19')](_0x3fd248,_0x1e1139,{'indexName':_0x36dc57})[_0x227b7f('0x1b')](function(){const _0x47eeef=_0x227b7f;logger['info'](_0x47eeef('0x4'),_0x3fd248,_0x1e1139['join'](','),_0x36dc57);})['catch'](function(_0x1e116c){logger['info'](JSON['stringify'](_0x1e116c));});});},Migration[_0x1c2c78('0x1c')][_0x1c2c78('0x12')]=function(_0x256f0d){const _0x38ffde=_0x1c2c78,_0x546de5=this;this[_0x38ffde('0x21')][_0x38ffde('0x8')](function(){const _0x429e2c=_0x38ffde;return _0x546de5[_0x429e2c('0x0')][_0x429e2c('0xa')][_0x429e2c('0x12')](_0x256f0d)['then'](function(){const _0x27364f=_0x429e2c;logger[_0x27364f('0x1f')](_0x27364f('0xe'),_0x256f0d);})[_0x429e2c('0x16')](function(_0x32d351){const _0x9fe8c=_0x429e2c;logger[_0x9fe8c('0x1f')](JSON[_0x9fe8c('0x1e')](_0x32d351));});});},Migration[_0x1c2c78('0x1c')][_0x1c2c78('0x9')]=function(_0x1aab71,_0x57dd81){const _0x452b7c=_0x1c2c78,_0x3bdd1a=this;this[_0x452b7c('0x21')][_0x452b7c('0x8')](function(){const _0x25e780=_0x452b7c;return _0x3bdd1a[_0x25e780('0x0')][_0x25e780('0x9')](_0x1aab71,_0x57dd81)[_0x25e780('0x1b')](function(){const _0x280cee=_0x25e780;logger[_0x280cee('0x1f')](_0x280cee('0xc'),_0x57dd81,_0x1aab71);})[_0x25e780('0x16')](function(_0x99d658){logger['info'](util['inspect'](_0x99d658,{'showHidden':![],'depth':null}));});});},Migration[_0x1c2c78('0x1c')][_0x1c2c78('0x11')]=function(_0x48bff8){const _0x5b8219=_0x1c2c78;this[_0x5b8219('0x21')]['enqueue'](function(){return _0x48bff8();});},module[_0x1c2c78('0x1a')]={'up':function(_0x19560b,_0x447227){return new Promise(function(_0x276b8f){const _0xe89c99=a915_0x47f6,_0x3d2602=new Migration(_0x19560b);_0x3d2602['addColumn'](_0xe89c99('0x1'),_0xe89c99('0xf'),{'type':_0x447227[_0xe89c99('0x5')],'defaultValue':!![]}),_0x3d2602[_0xe89c99('0x7')]('report_jscripty_sessions',_0xe89c99('0xd'),{'type':_0x447227[_0xe89c99('0x5')],'defaultValue':![]}),_0x3d2602['query']('UPDATE\x20report_jscripty_sessions\x20SET\x20completed\x20=\x20true'),_0x3d2602[_0xe89c99('0x7')](_0xe89c99('0xb'),_0xe89c99('0x17'),{'type':_0x447227[_0xe89c99('0x10')]}),_0x3d2602[_0xe89c99('0x7')](_0xe89c99('0x3'),'phone',{'type':_0x447227[_0xe89c99('0x10')]}),_0x3d2602[_0xe89c99('0x11')](_0x276b8f);});},'down':function(){}}; \ No newline at end of file +const a1077_0x2468=['table\x20dropped\x20%s','sequelize','enqueue','addColumn','sequence','removeColumn','join','stringify','finally','exports','info','prototype','jscripty_projects','then','phone','../config/logger','STRING','Added\x20column\x20%s\x20to\x20%s','sms_messages','Changed\x20column\x20%s\x20in\x20table\x20%s','query\x20%s','query','addIndex','catch','queryInterface','enableUncompleteSave','final','tail','completed','sms_interactions','addIndex\x20%s\x20%s\x20%s','migration','changeColumn'];(function(_0x4eb53a,_0x33d7e6){const _0x2468c5=function(_0x3f658f){while(--_0x3f658f){_0x4eb53a['push'](_0x4eb53a['shift']());}};_0x2468c5(++_0x33d7e6);}(a1077_0x2468,0x7a));const a1077_0x3f65=function(_0x4eb53a,_0x33d7e6){_0x4eb53a=_0x4eb53a-0x90;let _0x2468c5=a1077_0x2468[_0x4eb53a];return _0x2468c5;};const a1077_0x5e35ef=a1077_0x3f65;'use strict';const logger=require(a1077_0x5e35ef(0xa9))(a1077_0x5e35ef(0x98)),util=require('util'),Sequence=function(){};Sequence['prototype'][a1077_0x5e35ef(0x9c)]=function(_0x100832){const _0x364f04=a1077_0x5e35ef;this['tail']=this[_0x364f04(0x94)]?this[_0x364f04(0x94)][_0x364f04(0xa2)](_0x100832):_0x100832();};const Migration=function(_0xddecfc){this['queryInterface']=_0xddecfc,this['sequence']=new Sequence();};Migration[a1077_0x5e35ef(0xa5)]['changeColumn']=function(_0x3b5444,_0xd0a7ec,_0x51f79e){const _0x456f4c=a1077_0x5e35ef,_0x5b5535=this;this[_0x456f4c(0x9e)][_0x456f4c(0x9c)](function(){const _0x190b11=_0x456f4c;return _0x5b5535['queryInterface'][_0x190b11(0x99)](_0x3b5444,_0xd0a7ec,_0x51f79e)[_0x190b11(0xa7)](function(){const _0x1ee075=_0x190b11;logger['info'](_0x1ee075(0xad),_0xd0a7ec,_0x3b5444);})[_0x190b11(0x90)](function(_0xc67b9a){const _0x31c91b=_0x190b11;logger[_0x31c91b(0xa4)](JSON[_0x31c91b(0xa1)](_0xc67b9a));});});},Migration['prototype'][a1077_0x5e35ef(0x9d)]=function(_0x5a7d99,_0x359ff9,_0x2cf93d){const _0x4c1de5=a1077_0x5e35ef,_0x139724=this;this[_0x4c1de5(0x9e)][_0x4c1de5(0x9c)](function(){const _0x21ad84=_0x4c1de5;return _0x139724[_0x21ad84(0x91)][_0x21ad84(0x9d)](_0x5a7d99,_0x359ff9,_0x2cf93d)[_0x21ad84(0xa7)](function(){const _0x361ac8=_0x21ad84;logger['info'](_0x361ac8(0xab),_0x359ff9,_0x5a7d99);})['catch'](function(_0x26373d){const _0x14662a=_0x21ad84;logger[_0x14662a(0xa4)](JSON[_0x14662a(0xa1)](_0x26373d));});});},Migration[a1077_0x5e35ef(0xa5)]['dropTable']=function(_0x47130a){const _0x3ee311=a1077_0x5e35ef,_0x4f9498=this;this[_0x3ee311(0x9e)]['enqueue'](function(){const _0x5f49ee=_0x3ee311;return _0x4f9498[_0x5f49ee(0x91)]['dropTable'](_0x47130a,{'force':!![]})[_0x5f49ee(0xa7)](function(){const _0x43dfce=_0x5f49ee;logger['info'](_0x43dfce(0x9a),_0x47130a);})[_0x5f49ee(0x90)](function(_0x3f1a5e){const _0x1745c9=_0x5f49ee;logger[_0x1745c9(0xa4)](JSON[_0x1745c9(0xa1)](_0x3f1a5e));});});},Migration[a1077_0x5e35ef(0xa5)][a1077_0x5e35ef(0xb0)]=function(_0x524d86,_0x562b03,_0x586047){const _0x53377b=a1077_0x5e35ef,_0x1c881e=this;this[_0x53377b(0x9e)][_0x53377b(0x9c)](function(){const _0x1cb3b0=_0x53377b;return _0x1c881e[_0x1cb3b0(0x91)][_0x1cb3b0(0xb0)](_0x524d86,_0x562b03,{'indexName':_0x586047})[_0x1cb3b0(0xa7)](function(){const _0x11bba5=_0x1cb3b0;logger[_0x11bba5(0xa4)](_0x11bba5(0x97),_0x524d86,_0x562b03[_0x11bba5(0xa0)](','),_0x586047);})[_0x1cb3b0(0x90)](function(_0x39d302){const _0x5735d3=_0x1cb3b0;logger[_0x5735d3(0xa4)](JSON['stringify'](_0x39d302));});});},Migration['prototype'][a1077_0x5e35ef(0xaf)]=function(_0x3caf20){const _0x4743b0=a1077_0x5e35ef,_0x38706c=this;this[_0x4743b0(0x9e)][_0x4743b0(0x9c)](function(){const _0x865aa9=_0x4743b0;return _0x38706c[_0x865aa9(0x91)][_0x865aa9(0x9b)][_0x865aa9(0xaf)](_0x3caf20)[_0x865aa9(0xa7)](function(){const _0x8e8adb=_0x865aa9;logger[_0x8e8adb(0xa4)](_0x8e8adb(0xae),_0x3caf20);})[_0x865aa9(0x90)](function(_0x3499ea){const _0x4b660a=_0x865aa9;logger[_0x4b660a(0xa4)](JSON[_0x4b660a(0xa1)](_0x3499ea));});});},Migration[a1077_0x5e35ef(0xa5)][a1077_0x5e35ef(0x9f)]=function(_0x5e6d87,_0x470567){const _0x5d171f=a1077_0x5e35ef,_0x47884c=this;this[_0x5d171f(0x9e)]['enqueue'](function(){const _0x69a59b=_0x5d171f;return _0x47884c['queryInterface'][_0x69a59b(0x9f)](_0x5e6d87,_0x470567)[_0x69a59b(0xa7)](function(){const _0x46b6d0=_0x69a59b;logger[_0x46b6d0(0xa4)]('Removed\x20column\x20%s\x20from\x20%s',_0x470567,_0x5e6d87);})['catch'](function(_0x499a88){logger['info'](util['inspect'](_0x499a88,{'showHidden':![],'depth':null}));});});},Migration[a1077_0x5e35ef(0xa5)][a1077_0x5e35ef(0x93)]=function(_0x28c467){const _0x2ec858=a1077_0x5e35ef;this[_0x2ec858(0x9e)][_0x2ec858(0x9c)](function(){return _0x28c467();});},module[a1077_0x5e35ef(0xa3)]={'up':function(_0xcdcb5b,_0x3aaf22){return new Promise(function(_0x263b11){const _0x14c6d4=a1077_0x3f65,_0x3b79e5=new Migration(_0xcdcb5b);_0x3b79e5[_0x14c6d4(0x9d)](_0x14c6d4(0xa6),_0x14c6d4(0x92),{'type':_0x3aaf22['BOOLEAN'],'defaultValue':!![]}),_0x3b79e5[_0x14c6d4(0x9d)]('report_jscripty_sessions',_0x14c6d4(0x95),{'type':_0x3aaf22['BOOLEAN'],'defaultValue':![]}),_0x3b79e5[_0x14c6d4(0xaf)]('UPDATE\x20report_jscripty_sessions\x20SET\x20completed\x20=\x20true'),_0x3b79e5[_0x14c6d4(0x9d)](_0x14c6d4(0x96),_0x14c6d4(0xa8),{'type':_0x3aaf22[_0x14c6d4(0xaa)]}),_0x3b79e5[_0x14c6d4(0x9d)](_0x14c6d4(0xac),_0x14c6d4(0xa8),{'type':_0x3aaf22[_0x14c6d4(0xaa)]}),_0x3b79e5[_0x14c6d4(0x93)](_0x263b11);});},'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 ee57067..380ce5a 100644 --- a/server/migrations/2.0.38.js +++ b/server/migrations/2.0.38.js @@ -1 +1 @@ -const a916_0x31e8=['join','sequence','dropTable','Added\x20column\x20%s\x20to\x20%s','final','\x20Error\x20:','prototype','info','finally','query','AttachmentId','util','messageId','tools_trunks','then','Ls\x20:','addIndex\x20%s\x20%s\x20%s','sms_messages','fax_applications','remote','addIndex','enqueue','removeColumn','sms_accounts','chown\x20motion:asterisk\x20/var/opt/motion2/server/files/attachments','tail','STRING','changeColumn','fax_messages','stringify','INTEGER','migration','child_process','catch','addColumn','exports','t38pt_udptl','query\x20%s','queryInterface','token','Changed\x20column\x20%s\x20in\x20table\x20%s','../config/logger'];(function(_0x5b042a,_0x31e8ba){const _0xa2d64c=function(_0x4e792b){while(--_0x4e792b){_0x5b042a['push'](_0x5b042a['shift']());}};_0xa2d64c(++_0x31e8ba);}(a916_0x31e8,0x79));const a916_0xa2d6=function(_0x5b042a,_0x31e8ba){_0x5b042a=_0x5b042a-0x0;let _0xa2d64c=a916_0x31e8[_0x5b042a];return _0xa2d64c;};const _0x4f5e86=a916_0xa2d6;'use strict';const logger=require(_0x4f5e86('0x4'))(_0x4f5e86('0x24')),util=require(_0x4f5e86('0x10')),exec=require(_0x4f5e86('0x25'))['exec'],cmd=_0x4f5e86('0x1d'),ls='ls\x20-la\x20/var/opt/motion2/server/files',Sequence=function(){};Sequence[_0x4f5e86('0xb')]['enqueue']=function(_0x4e792b){const _0x356601=_0x4f5e86;this['tail']=this['tail']?this[_0x356601('0x1e')][_0x356601('0xd')](_0x4e792b):_0x4e792b();};const Migration=function(_0x2ff309){const _0xbcc8d=_0x4f5e86;this[_0xbcc8d('0x1')]=_0x2ff309,this[_0xbcc8d('0x6')]=new Sequence();};Migration[_0x4f5e86('0xb')][_0x4f5e86('0x20')]=function(_0x55cba1,_0x697ea0,_0x7573d0){const _0x5f1b9e=_0x4f5e86,_0x488984=this;this[_0x5f1b9e('0x6')][_0x5f1b9e('0x1a')](function(){const _0x5c5e55=_0x5f1b9e;return _0x488984[_0x5c5e55('0x1')]['changeColumn'](_0x55cba1,_0x697ea0,_0x7573d0)['then'](function(){const _0x5162f1=_0x5c5e55;logger[_0x5162f1('0xc')](_0x5162f1('0x3'),_0x697ea0,_0x55cba1);})[_0x5c5e55('0x26')](function(_0x7bf893){const _0x19d080=_0x5c5e55;logger['info'](JSON[_0x19d080('0x22')](_0x7bf893));});});},Migration[_0x4f5e86('0xb')][_0x4f5e86('0x27')]=function(_0x4863f3,_0x1bd8f8,_0x37d451){const _0xe52518=_0x4f5e86,_0x4fce3b=this;this[_0xe52518('0x6')][_0xe52518('0x1a')](function(){return _0x4fce3b['queryInterface']['addColumn'](_0x4863f3,_0x1bd8f8,_0x37d451)['then'](function(){const _0x158169=a916_0xa2d6;logger[_0x158169('0xc')](_0x158169('0x8'),_0x1bd8f8,_0x4863f3);})['catch'](function(_0x27eb9f){const _0xa0ba50=a916_0xa2d6;logger['info'](JSON[_0xa0ba50('0x22')](_0x27eb9f));});});},Migration['prototype']['dropTable']=function(_0x12ff07){const _0x3f7918=_0x4f5e86,_0x7f00ee=this;this[_0x3f7918('0x6')]['enqueue'](function(){const _0x58d3f9=_0x3f7918;return _0x7f00ee[_0x58d3f9('0x1')][_0x58d3f9('0x7')](_0x12ff07,{'force':!![]})[_0x58d3f9('0x13')](function(){const _0x45126c=_0x58d3f9;logger[_0x45126c('0xc')]('table\x20dropped\x20%s',_0x12ff07);})[_0x58d3f9('0x26')](function(_0x47c374){const _0x1c28ca=_0x58d3f9;logger['info'](JSON[_0x1c28ca('0x22')](_0x47c374));});});},Migration['prototype'][_0x4f5e86('0x19')]=function(_0x3f990f,_0x25ede7,_0x57f43c){const _0x1e5b74=_0x4f5e86,_0xc6b737=this;this[_0x1e5b74('0x6')][_0x1e5b74('0x1a')](function(){const _0x2ae61b=_0x1e5b74;return _0xc6b737[_0x2ae61b('0x1')][_0x2ae61b('0x19')](_0x3f990f,_0x25ede7,{'indexName':_0x57f43c})[_0x2ae61b('0x13')](function(){const _0x1a3d06=_0x2ae61b;logger[_0x1a3d06('0xc')](_0x1a3d06('0x15'),_0x3f990f,_0x25ede7[_0x1a3d06('0x5')](','),_0x57f43c);})['catch'](function(_0x1661e4){logger['info'](JSON['stringify'](_0x1661e4));});});},Migration[_0x4f5e86('0xb')][_0x4f5e86('0xe')]=function(_0xc1fa42){const _0x1cd141=_0x4f5e86,_0x16903c=this;this[_0x1cd141('0x6')]['enqueue'](function(){const _0x106cfb=_0x1cd141;return _0x16903c[_0x106cfb('0x1')]['sequelize'][_0x106cfb('0xe')](_0xc1fa42)[_0x106cfb('0x13')](function(){const _0x4ba287=_0x106cfb;logger[_0x4ba287('0xc')](_0x4ba287('0x0'),_0xc1fa42);})[_0x106cfb('0x26')](function(_0x4efb13){const _0x2ae26e=_0x106cfb;logger['info'](JSON[_0x2ae26e('0x22')](_0x4efb13));});});},Migration[_0x4f5e86('0xb')][_0x4f5e86('0x1b')]=function(_0x4f3527,_0x5760d8){const _0x34e729=_0x4f5e86,_0x3a33d7=this;this[_0x34e729('0x6')]['enqueue'](function(){const _0x34608f=_0x34e729;return _0x3a33d7[_0x34608f('0x1')][_0x34608f('0x1b')](_0x4f3527,_0x5760d8)['then'](function(){const _0x3d643f=_0x34608f;logger[_0x3d643f('0xc')]('Removed\x20column\x20%s\x20from\x20%s',_0x5760d8,_0x4f3527);})['catch'](function(_0x52c795){const _0xac1420=_0x34608f;logger[_0xac1420('0xc')](util['inspect'](_0x52c795,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x4f5e86('0x9')]=function(_0x166d26){const _0x4ebf0c=_0x4f5e86;this['sequence'][_0x4ebf0c('0x1a')](function(){return _0x166d26();});},module[_0x4f5e86('0x28')]={'up':function(_0x5b0238,_0x20ef79){return new Promise(function(_0x3f9b1b){const _0x3381bd=a916_0xa2d6,_0x45dfe8=new Migration(_0x5b0238);_0x45dfe8[_0x3381bd('0x27')](_0x3381bd('0x1c'),_0x3381bd('0x18'),{'type':_0x20ef79['STRING']}),_0x45dfe8[_0x3381bd('0x27')](_0x3381bd('0x1c'),_0x3381bd('0x2'),{'type':_0x20ef79[_0x3381bd('0x1f')]}),_0x45dfe8[_0x3381bd('0x27')](_0x3381bd('0x16'),_0x3381bd('0x11'),{'type':_0x20ef79[_0x3381bd('0x1f')]}),exec(cmd,function(_0x3430a3,_0xba6b09,_0x409147){const _0x5902d1=_0x3381bd;logger[_0x5902d1('0xc')]('Exec\x20chmod','\x20Error\x20:',JSON[_0x5902d1('0x22')](_0x3430a3),_0xba6b09,_0x409147),exec(ls,function(_0x4ee4bf,_0x281e8d,_0x2df73a){const _0x4e5ea5=_0x5902d1;logger[_0x4e5ea5('0xc')](_0x4e5ea5('0x14'),_0x4e5ea5('0xa'),JSON[_0x4e5ea5('0x22')](_0x4ee4bf),_0x281e8d,_0x2df73a);});}),_0x45dfe8[_0x3381bd('0x7')](_0x3381bd('0x17')),_0x45dfe8[_0x3381bd('0x27')](_0x3381bd('0x21'),_0x3381bd('0xf'),{'type':_0x20ef79[_0x3381bd('0x23')]}),_0x45dfe8['query']('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'),_0x45dfe8[_0x3381bd('0x27')](_0x3381bd('0x12'),_0x3381bd('0x29'),{'type':_0x20ef79['STRING'],'defaultValue':'no'}),_0x45dfe8['final'](_0x3f9b1b);});},'down':function(){}}; \ No newline at end of file +const a1078_0x2ea9=['\x20Error\x20:','util','chown\x20motion:asterisk\x20/var/opt/motion2/server/files/attachments','Ls\x20:','addIndex','dropTable','changeColumn','addColumn','sms_messages','sequence','fax_messages','catch','sequelize','tail','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','info','messageId','query','exec','fax_applications','queryInterface','STRING','Exec\x20chmod','exports','token','join','INTEGER','then','stringify','Changed\x20column\x20%s\x20in\x20table\x20%s','prototype','remote','child_process','addIndex\x20%s\x20%s\x20%s','migration','tools_trunks','../config/logger','inspect','removeColumn','enqueue','sms_accounts','finally','final'];(function(_0x1323dc,_0x276973){const _0x2ea95f=function(_0x11af3d){while(--_0x11af3d){_0x1323dc['push'](_0x1323dc['shift']());}};_0x2ea95f(++_0x276973);}(a1078_0x2ea9,0x1c2));const a1078_0x11af=function(_0x1323dc,_0x276973){_0x1323dc=_0x1323dc-0x1dc;let _0x2ea95f=a1078_0x2ea9[_0x1323dc];return _0x2ea95f;};const a1078_0x21f94f=a1078_0x11af;'use strict';const logger=require(a1078_0x21f94f(0x1ec))(a1078_0x21f94f(0x1ea)),util=require(a1078_0x21f94f(0x1f4)),exec=require(a1078_0x21f94f(0x1e8))[a1078_0x21f94f(0x205)],cmd=a1078_0x21f94f(0x1f5),ls='ls\x20-la\x20/var/opt/motion2/server/files',Sequence=function(){};Sequence[a1078_0x21f94f(0x1e6)]['enqueue']=function(_0x39384c){const _0x5ab2e0=a1078_0x21f94f;this[_0x5ab2e0(0x200)]=this[_0x5ab2e0(0x200)]?this[_0x5ab2e0(0x200)][_0x5ab2e0(0x1f1)](_0x39384c):_0x39384c();};const Migration=function(_0x1d2fdf){const _0x5c8cb9=a1078_0x21f94f;this[_0x5c8cb9(0x1dc)]=_0x1d2fdf,this['sequence']=new Sequence();};Migration[a1078_0x21f94f(0x1e6)][a1078_0x21f94f(0x1f9)]=function(_0x1bf99e,_0x4e24d5,_0x6b07c3){const _0x3d7e40=a1078_0x21f94f,_0x241363=this;this[_0x3d7e40(0x1fc)][_0x3d7e40(0x1ef)](function(){const _0x109396=_0x3d7e40;return _0x241363[_0x109396(0x1dc)][_0x109396(0x1f9)](_0x1bf99e,_0x4e24d5,_0x6b07c3)[_0x109396(0x1e3)](function(){const _0xd4cf1a=_0x109396;logger[_0xd4cf1a(0x202)](_0xd4cf1a(0x1e5),_0x4e24d5,_0x1bf99e);})['catch'](function(_0x1f3f69){const _0x55fb5d=_0x109396;logger[_0x55fb5d(0x202)](JSON['stringify'](_0x1f3f69));});});},Migration[a1078_0x21f94f(0x1e6)][a1078_0x21f94f(0x1fa)]=function(_0x41ddad,_0x55a4cb,_0x5c0b9c){const _0xe745fc=a1078_0x21f94f,_0xefbee3=this;this[_0xe745fc(0x1fc)][_0xe745fc(0x1ef)](function(){const _0x39dcfc=_0xe745fc;return _0xefbee3[_0x39dcfc(0x1dc)][_0x39dcfc(0x1fa)](_0x41ddad,_0x55a4cb,_0x5c0b9c)['then'](function(){const _0x5cac25=_0x39dcfc;logger[_0x5cac25(0x202)]('Added\x20column\x20%s\x20to\x20%s',_0x55a4cb,_0x41ddad);})[_0x39dcfc(0x1fe)](function(_0x514446){const _0x43ccc4=_0x39dcfc;logger['info'](JSON[_0x43ccc4(0x1e4)](_0x514446));});});},Migration[a1078_0x21f94f(0x1e6)][a1078_0x21f94f(0x1f8)]=function(_0x42cb46){const _0x4af622=a1078_0x21f94f,_0x4c1adf=this;this['sequence'][_0x4af622(0x1ef)](function(){const _0xee8c5f=_0x4af622;return _0x4c1adf[_0xee8c5f(0x1dc)][_0xee8c5f(0x1f8)](_0x42cb46,{'force':!![]})[_0xee8c5f(0x1e3)](function(){const _0x5d9181=_0xee8c5f;logger[_0x5d9181(0x202)]('table\x20dropped\x20%s',_0x42cb46);})[_0xee8c5f(0x1fe)](function(_0x5617b6){const _0x35cb66=_0xee8c5f;logger['info'](JSON[_0x35cb66(0x1e4)](_0x5617b6));});});},Migration[a1078_0x21f94f(0x1e6)][a1078_0x21f94f(0x1f7)]=function(_0x299405,_0x20a1c7,_0x1435b7){const _0x1f4ebf=a1078_0x21f94f,_0x2291ee=this;this[_0x1f4ebf(0x1fc)][_0x1f4ebf(0x1ef)](function(){const _0xb6a159=_0x1f4ebf;return _0x2291ee['queryInterface'][_0xb6a159(0x1f7)](_0x299405,_0x20a1c7,{'indexName':_0x1435b7})[_0xb6a159(0x1e3)](function(){const _0xb1f677=_0xb6a159;logger[_0xb1f677(0x202)](_0xb1f677(0x1e9),_0x299405,_0x20a1c7[_0xb1f677(0x1e1)](','),_0x1435b7);})[_0xb6a159(0x1fe)](function(_0x2f1a6a){const _0x2ee158=_0xb6a159;logger[_0x2ee158(0x202)](JSON['stringify'](_0x2f1a6a));});});},Migration[a1078_0x21f94f(0x1e6)][a1078_0x21f94f(0x204)]=function(_0x13c3fb){const _0xa72fc6=a1078_0x21f94f,_0x50931f=this;this['sequence'][_0xa72fc6(0x1ef)](function(){const _0x416e94=_0xa72fc6;return _0x50931f[_0x416e94(0x1dc)][_0x416e94(0x1ff)][_0x416e94(0x204)](_0x13c3fb)[_0x416e94(0x1e3)](function(){const _0x9e304e=_0x416e94;logger[_0x9e304e(0x202)]('query\x20%s',_0x13c3fb);})[_0x416e94(0x1fe)](function(_0xf87b69){const _0x532506=_0x416e94;logger[_0x532506(0x202)](JSON[_0x532506(0x1e4)](_0xf87b69));});});},Migration[a1078_0x21f94f(0x1e6)][a1078_0x21f94f(0x1ee)]=function(_0xfd4568,_0xf3722a){const _0x50bf5f=a1078_0x21f94f,_0x3c207b=this;this[_0x50bf5f(0x1fc)][_0x50bf5f(0x1ef)](function(){const _0x533929=_0x50bf5f;return _0x3c207b[_0x533929(0x1dc)][_0x533929(0x1ee)](_0xfd4568,_0xf3722a)[_0x533929(0x1e3)](function(){const _0x5cd0fb=_0x533929;logger[_0x5cd0fb(0x202)]('Removed\x20column\x20%s\x20from\x20%s',_0xf3722a,_0xfd4568);})['catch'](function(_0x4c659e){const _0x2fe840=_0x533929;logger[_0x2fe840(0x202)](util[_0x2fe840(0x1ed)](_0x4c659e,{'showHidden':![],'depth':null}));});});},Migration[a1078_0x21f94f(0x1e6)][a1078_0x21f94f(0x1f2)]=function(_0x338b02){const _0x52f46d=a1078_0x21f94f;this[_0x52f46d(0x1fc)][_0x52f46d(0x1ef)](function(){return _0x338b02();});},module[a1078_0x21f94f(0x1df)]={'up':function(_0x33806e,_0x367559){return new Promise(function(_0x733ed9){const _0x179497=a1078_0x11af,_0x57c57e=new Migration(_0x33806e);_0x57c57e[_0x179497(0x1fa)](_0x179497(0x1f0),_0x179497(0x1e7),{'type':_0x367559[_0x179497(0x1dd)]}),_0x57c57e[_0x179497(0x1fa)](_0x179497(0x1f0),_0x179497(0x1e0),{'type':_0x367559[_0x179497(0x1dd)]}),_0x57c57e['addColumn'](_0x179497(0x1fb),_0x179497(0x203),{'type':_0x367559[_0x179497(0x1dd)]}),exec(cmd,function(_0x59b32f,_0x4a8ad6,_0x2781e4){const _0x170118=_0x179497;logger[_0x170118(0x202)](_0x170118(0x1de),_0x170118(0x1f3),JSON[_0x170118(0x1e4)](_0x59b32f),_0x4a8ad6,_0x2781e4),exec(ls,function(_0x23ebfb,_0x3935c2,_0x52f5e0){const _0x551afb=_0x170118;logger[_0x551afb(0x202)](_0x551afb(0x1f6),'\x20Error\x20:',JSON[_0x551afb(0x1e4)](_0x23ebfb),_0x3935c2,_0x52f5e0);});}),_0x57c57e['dropTable'](_0x179497(0x206)),_0x57c57e[_0x179497(0x1fa)](_0x179497(0x1fd),'AttachmentId',{'type':_0x367559[_0x179497(0x1e2)]}),_0x57c57e['query'](_0x179497(0x201)),_0x57c57e[_0x179497(0x1fa)](_0x179497(0x1eb),'t38pt_udptl',{'type':_0x367559[_0x179497(0x1dd)],'defaultValue':'no'}),_0x57c57e[_0x179497(0x1f2)](_0x733ed9);});},'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 d532e54..a6dda82 100644 --- a/server/migrations/2.0.39.js +++ b/server/migrations/2.0.39.js @@ -1 +1 @@ -const a917_0x12f2=['addIndex','BOOLEAN','findAll','join','xcally-mixmonitor-context','addColumn','ENUM','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-fax\x27,\x20\x279\x27,\x20\x27Set\x27,\x20\x27FAXOPT(modem)=${XMF-MODEM}\x27,\x20\x27system\x27,\x20\x27Fax\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','prototype','pageTitle','sequence','../config/environment','settings','writeFileSync','info','../config/logger','checkVoiceContexts','\x20Error\x20:','contact','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-fax\x27,\x20\x275\x27,\x20\x27Set\x27,\x20\x27FAXOPT(headerinfo)=${XMF-HEADERINFO}\x27,\x20\x27system\x27,\x20\x27Fax\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','nothing','api/voiceContext/voiceContext.model','final','addIndex\x20%s\x20%s\x20%s','enqueue','changeColumn','exec','tail','asterisk\x20-rx\x20\x22reload\x20chan_sip.so\x22','moduleSearch','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\x274\x27,\x20\x27Set\x27,\x20\x27FAXOPT(ecm)=${XMF-ECM}\x27,\x20\x27system\x27,\x20\x27Fax\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','query','files/templates/context.ejs','moduleCreate','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\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());','catch','contact_lead','defaultPageTitle','root','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\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());','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\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());','path','child_process','Exec\x20chmod','Added\x20column\x20%s\x20to\x20%s','findOrCreate','chmod\x20775\x20/var/opt/motion2/server/files/attachments','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-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());','then','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-fax\x27,\x20\x271\x27,\x20\x27NoOp\x27,\x20\x27\x27,\x20\x27system\x27,\x20\x27Fax\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','removeColumn','Ls\x20:','int_salesforce_configurations','lead','cm_contacts','inspect','stringify','render','STRING','queryInterface','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-fax\x27,\x20\x273\x27,\x20\x27Wait\x27,\x20\x276\x27,\x20\x27system\x27,\x20\x27Fax\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','Changed\x20column\x20%s\x20in\x20table\x20%s','util'];(function(_0x4415e9,_0x12f2ee){const _0x35cc42=function(_0x177b70){while(--_0x177b70){_0x4415e9['push'](_0x4415e9['shift']());}};_0x35cc42(++_0x12f2ee);}(a917_0x12f2,0x142));const a917_0x35cc=function(_0x4415e9,_0x12f2ee){_0x4415e9=_0x4415e9-0x0;let _0x35cc42=a917_0x12f2[_0x4415e9];return _0x35cc42;};const _0x1ff61d=a917_0x35cc;'use strict';const logger=require(_0x1ff61d('0x12'))('migration'),util=require(_0x1ff61d('0x2')),ejs=require('ejs'),fs=require('fs'),path=require(_0x1ff61d('0x2d')),exec=require(_0x1ff61d('0x2e'))[_0x1ff61d('0x1d')],config=require(_0x1ff61d('0xe')),Sequence=function(){};Sequence[_0x1ff61d('0xb')][_0x1ff61d('0x1b')]=function(_0x177b70){const _0x54acf7=_0x1ff61d;this[_0x54acf7('0x1e')]=this[_0x54acf7('0x1e')]?this[_0x54acf7('0x1e')]['finally'](_0x177b70):_0x177b70();};const Migration=function(_0x5d8ece){const _0x4d7313=_0x1ff61d;this['queryInterface']=_0x5d8ece,this[_0x4d7313('0xd')]=new Sequence();};Migration['prototype'][_0x1ff61d('0x1c')]=function(_0x42bac8,_0xa5be18,_0x22e138){const _0x4ffcef=_0x1ff61d,_0x2cf152=this;this[_0x4ffcef('0xd')]['enqueue'](function(){const _0x431d85=_0x4ffcef;return _0x2cf152[_0x431d85('0x40')][_0x431d85('0x1c')](_0x42bac8,_0xa5be18,_0x22e138)['then'](function(){const _0x26acc4=_0x431d85;logger[_0x26acc4('0x11')](_0x26acc4('0x1'),_0xa5be18,_0x42bac8);})['catch'](function(_0x5f534d){const _0x507817=_0x431d85;logger[_0x507817('0x11')](JSON[_0x507817('0x3d')](_0x5f534d));});});},Migration[_0x1ff61d('0xb')][_0x1ff61d('0x8')]=function(_0x4da6ad,_0x3c8ec5,_0xa8a761){const _0x13ca9a=_0x1ff61d,_0x5da66d=this;this[_0x13ca9a('0xd')]['enqueue'](function(){const _0x206083=_0x13ca9a;return _0x5da66d[_0x206083('0x40')][_0x206083('0x8')](_0x4da6ad,_0x3c8ec5,_0xa8a761)['then'](function(){const _0x4f6fa8=_0x206083;logger[_0x4f6fa8('0x11')](_0x4f6fa8('0x30'),_0x3c8ec5,_0x4da6ad);})['catch'](function(_0x512196){const _0x196393=_0x206083;logger[_0x196393('0x11')](JSON[_0x196393('0x3d')](_0x512196));});});},Migration[_0x1ff61d('0xb')]['dropTable']=function(_0x235767){const _0x19db74=_0x1ff61d,_0xe506c3=this;this[_0x19db74('0xd')]['enqueue'](function(){const _0x15430c=_0x19db74;return _0xe506c3[_0x15430c('0x40')][_0x15430c('0x33')](_0x235767,{'force':!![]})['then'](function(){logger['info']('table\x20dropped\x20%s',_0x235767);})[_0x15430c('0x27')](function(_0x1ec5f9){const _0x64ecb9=_0x15430c;logger['info'](JSON[_0x64ecb9('0x3d')](_0x1ec5f9));});});},Migration['prototype']['addIndex']=function(_0x4d0307,_0x2cf87f,_0x5895f6){const _0x164377=_0x1ff61d,_0xfe92e2=this;this[_0x164377('0xd')][_0x164377('0x1b')](function(){const _0x19c055=_0x164377;return _0xfe92e2[_0x19c055('0x40')][_0x19c055('0x3')](_0x4d0307,_0x2cf87f,{'indexName':_0x5895f6})[_0x19c055('0x35')](function(){const _0x37874f=_0x19c055;logger[_0x37874f('0x11')](_0x37874f('0x1a'),_0x4d0307,_0x2cf87f[_0x37874f('0x6')](','),_0x5895f6);})[_0x19c055('0x27')](function(_0x49e806){const _0x119431=_0x19c055;logger['info'](JSON[_0x119431('0x3d')](_0x49e806));});});},Migration[_0x1ff61d('0xb')][_0x1ff61d('0x23')]=function(_0x1958e8){const _0x58fcc4=_0x1ff61d,_0x189657=this;this[_0x58fcc4('0xd')]['enqueue'](function(){const _0x2d481e=_0x58fcc4;return _0x189657[_0x2d481e('0x40')]['sequelize'][_0x2d481e('0x23')](_0x1958e8)[_0x2d481e('0x35')](function(){logger['info']('query\x20%s',_0x1958e8);})[_0x2d481e('0x27')](function(_0x14e823){const _0x254bd0=_0x2d481e;logger['info'](JSON[_0x254bd0('0x3d')](_0x14e823));});});},Migration['prototype'][_0x1ff61d('0x37')]=function(_0x70a0e6,_0xa4f1e8){const _0x3fc5aa=_0x1ff61d,_0x227070=this;this[_0x3fc5aa('0xd')]['enqueue'](function(){const _0x3b559c=_0x3fc5aa;return _0x227070[_0x3b559c('0x40')]['removeColumn'](_0x70a0e6,_0xa4f1e8)[_0x3b559c('0x35')](function(){const _0x231519=_0x3b559c;logger[_0x231519('0x11')]('Removed\x20column\x20%s\x20from\x20%s',_0xa4f1e8,_0x70a0e6);})[_0x3b559c('0x27')](function(_0x4c5aa8){const _0x3e87f6=_0x3b559c;logger[_0x3e87f6('0x11')](util[_0x3e87f6('0x3c')](_0x4c5aa8,{'showHidden':![],'depth':null}));});});},Migration[_0x1ff61d('0xb')][_0x1ff61d('0x13')]=function(){const _0x3ce59d=_0x1ff61d,_0x24f978=this,_0x1b24b4=_0x24f978[_0x3ce59d('0x40')]['sequelize']['import'](path[_0x3ce59d('0x6')](config[_0x3ce59d('0x2a')],_0x3ce59d('0x18')));this[_0x3ce59d('0xd')][_0x3ce59d('0x1b')](function(){const _0x34759f=_0x3ce59d;return _0x1b24b4[_0x34759f('0x31')]({'where':{'name':_0x34759f('0x7')},'defaults':{'name':_0x34759f('0x7'),'description':'default\x20entry\x20context\x20(DO\x20NOT\x20DELETE)','defaultEntry':!![]}})[_0x34759f('0x21')](function(){const _0x552154=_0x34759f;return _0x1b24b4[_0x552154('0x5')]({'raw':!![]});})[_0x34759f('0x35')](function(_0x2dcea8){const _0x12a15e=_0x34759f,_0x52ec2c=fs['readFileSync'](path['join'](config[_0x12a15e('0x2a')],_0x12a15e('0x24')),'utf8'),_0x15ec3e=ejs[_0x12a15e('0x3e')](_0x52ec2c,{'contexts':_0x2dcea8||[]});fs[_0x12a15e('0x10')]('/etc/asterisk/extensions_xcally_contexts.conf',_0x15ec3e),exec(_0x12a15e('0x1f'),function(_0x4d5841,_0x5904d4,_0xa29023){const _0x5278bf=_0x12a15e;logger['info'](_0x5278bf('0x2f'),_0x5278bf('0x14'),JSON['stringify'](_0x4d5841),_0x5904d4,_0xa29023);});})['catch'](function(_0x15b3cb){logger['info'](JSON['stringify'](_0x15b3cb));});});},Migration[_0x1ff61d('0xb')][_0x1ff61d('0x19')]=function(_0x59f512){const _0x34a72e=_0x1ff61d;this['sequence'][_0x34a72e('0x1b')](function(){return _0x59f512();});},module['exports']={'up':function(_0xbe2fa7,_0x13f420){return new Promise(function(_0x51e347){const _0x157f4c=a917_0x35cc,_0x4f9fa0=new Migration(_0xbe2fa7);_0x4f9fa0['addColumn']('settings',_0x157f4c('0x29'),{'type':_0x13f420[_0x157f4c('0x4')],'defaultValue':!![]}),_0x4f9fa0[_0x157f4c('0x8')](_0x157f4c('0xf'),_0x157f4c('0xc'),{'type':_0x13f420[_0x157f4c('0x3f')]}),_0x4f9fa0[_0x157f4c('0x13')](),_0x4f9fa0[_0x157f4c('0x8')](_0x157f4c('0x39'),_0x157f4c('0x20'),{'type':_0x13f420[_0x157f4c('0x9')](_0x157f4c('0x28'),_0x157f4c('0x15'),'lead'),'defaultValue':_0x157f4c('0x28')}),_0x4f9fa0[_0x157f4c('0x8')]('int_salesforce_configurations',_0x157f4c('0x25'),{'type':_0x13f420[_0x157f4c('0x9')](_0x157f4c('0x17'),_0x157f4c('0x15'),_0x157f4c('0x3a')),'defaultValue':_0x157f4c('0x3a')}),_0x4f9fa0[_0x157f4c('0x23')](_0x157f4c('0x36')),_0x4f9fa0[_0x157f4c('0x23')]('INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\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());'),_0x4f9fa0['query'](_0x157f4c('0x0')),_0x4f9fa0[_0x157f4c('0x23')](_0x157f4c('0x22')),_0x4f9fa0[_0x157f4c('0x23')](_0x157f4c('0x16')),_0x4f9fa0[_0x157f4c('0x23')](_0x157f4c('0x2b')),_0x4f9fa0[_0x157f4c('0x23')](_0x157f4c('0x2c')),_0x4f9fa0[_0x157f4c('0x23')]('INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\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());'),_0x4f9fa0[_0x157f4c('0x23')](_0x157f4c('0xa')),_0x4f9fa0[_0x157f4c('0x23')](_0x157f4c('0x26')),_0x4f9fa0['query'](_0x157f4c('0x34')),exec(_0x157f4c('0x32'),function(_0x2005d3,_0x21d535,_0x45db96){const _0x2342ca=_0x157f4c;logger[_0x2342ca('0x11')]('Exec\x20chmod','\x20Error\x20:',JSON['stringify'](_0x2005d3),_0x21d535,_0x45db96),exec('ls\x20-la\x20/var/opt/motion2/server/files',function(_0x220f53,_0x146d63,_0x28911d){const _0x308252=_0x2342ca;logger[_0x308252('0x11')](_0x308252('0x38'),_0x308252('0x14'),JSON[_0x308252('0x3d')](_0x220f53),_0x146d63,_0x28911d);});}),_0x4f9fa0[_0x157f4c('0x8')](_0x157f4c('0x3b'),'deletedAt',{'type':_0x13f420['DATE'],'defaultValue':null}),_0x4f9fa0[_0x157f4c('0x19')](_0x51e347);});},'down':function(){}}; \ No newline at end of file +const a1079_0x5590=['inspect','join','import','checkVoiceContexts','readFileSync','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\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());','xcally-mixmonitor-context','spread','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-fax\x27,\x20\x271\x27,\x20\x27NoOp\x27,\x20\x27\x27,\x20\x27system\x27,\x20\x27Fax\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','child_process','defaultPageTitle','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-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());','sequence','ENUM','changeColumn','settings','addColumn','removeColumn','final','addIndex\x20%s\x20%s\x20%s','\x20Error\x20:','deletedAt','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\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());','Exec\x20chmod','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-fax\x27,\x20\x278\x27,\x20\x27Set\x27,\x20\x27FAXOPT(minrate)=${XMF-MINRATE}\x27,\x20\x27system\x27,\x20\x27Fax\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','enqueue','writeFileSync','moduleSearch','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\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());','findOrCreate','chmod\x20775\x20/var/opt/motion2/server/files/attachments','root','exec','contact','lead','files/templates/context.ejs','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\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());','pageTitle','findAll','dropTable','../config/environment','stringify','addIndex','STRING','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-fax\x27,\x20\x279\x27,\x20\x27Set\x27,\x20\x27FAXOPT(modem)=${XMF-MODEM}\x27,\x20\x27system\x27,\x20\x27Fax\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','exports','path','table\x20dropped\x20%s','prototype','tail','Added\x20column\x20%s\x20to\x20%s','Removed\x20column\x20%s\x20from\x20%s','queryInterface','info','util','int_salesforce_configurations','nothing','DATE','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\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());','render','/etc/asterisk/extensions_xcally_contexts.conf','query','catch','then','asterisk\x20-rx\x20\x22reload\x20chan_sip.so\x22','utf8','contact_lead'];(function(_0x37edd0,_0x40474a){const _0x559088=function(_0x5d13b4){while(--_0x5d13b4){_0x37edd0['push'](_0x37edd0['shift']());}};_0x559088(++_0x40474a);}(a1079_0x5590,0xcb));const a1079_0x5d13=function(_0x37edd0,_0x40474a){_0x37edd0=_0x37edd0-0xa6;let _0x559088=a1079_0x5590[_0x37edd0];return _0x559088;};const a1079_0x3da511=a1079_0x5d13;'use strict';const logger=require('../config/logger')('migration'),util=require(a1079_0x3da511(0xde)),ejs=require('ejs'),fs=require('fs'),path=require(a1079_0x3da511(0xd6)),exec=require(a1079_0x3da511(0xb0))[a1079_0x3da511(0xc8)],config=require(a1079_0x3da511(0xd0)),Sequence=function(){};Sequence[a1079_0x3da511(0xd8)][a1079_0x3da511(0xc1)]=function(_0x3077fd){const _0x3bc89e=a1079_0x3da511;this[_0x3bc89e(0xd9)]=this[_0x3bc89e(0xd9)]?this[_0x3bc89e(0xd9)]['finally'](_0x3077fd):_0x3077fd();};const Migration=function(_0x11c576){this['queryInterface']=_0x11c576,this['sequence']=new Sequence();};Migration[a1079_0x3da511(0xd8)][a1079_0x3da511(0xb6)]=function(_0x278abb,_0xc1a980,_0x1d3edf){const _0x4d06e3=a1079_0x3da511,_0x2352b1=this;this[_0x4d06e3(0xb4)]['enqueue'](function(){const _0x13de7f=_0x4d06e3;return _0x2352b1['queryInterface']['changeColumn'](_0x278abb,_0xc1a980,_0x1d3edf)[_0x13de7f(0xe7)](function(){const _0x53d11c=_0x13de7f;logger[_0x53d11c(0xdd)]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0xc1a980,_0x278abb);})[_0x13de7f(0xe6)](function(_0x3ac6a6){logger['info'](JSON['stringify'](_0x3ac6a6));});});},Migration[a1079_0x3da511(0xd8)]['addColumn']=function(_0x130668,_0x2dbbef,_0x580361){const _0x540be0=a1079_0x3da511,_0x285328=this;this[_0x540be0(0xb4)][_0x540be0(0xc1)](function(){const _0x4e05db=_0x540be0;return _0x285328[_0x4e05db(0xdc)][_0x4e05db(0xb8)](_0x130668,_0x2dbbef,_0x580361)[_0x4e05db(0xe7)](function(){const _0x4bb102=_0x4e05db;logger['info'](_0x4bb102(0xda),_0x2dbbef,_0x130668);})[_0x4e05db(0xe6)](function(_0x1dad98){const _0x1b8242=_0x4e05db;logger[_0x1b8242(0xdd)](JSON[_0x1b8242(0xd1)](_0x1dad98));});});},Migration[a1079_0x3da511(0xd8)][a1079_0x3da511(0xcf)]=function(_0x350225){const _0x56ebab=a1079_0x3da511,_0x39b6d3=this;this['sequence'][_0x56ebab(0xc1)](function(){const _0x3d2df6=_0x56ebab;return _0x39b6d3[_0x3d2df6(0xdc)][_0x3d2df6(0xcf)](_0x350225,{'force':!![]})['then'](function(){const _0x2ec5eb=_0x3d2df6;logger[_0x2ec5eb(0xdd)](_0x2ec5eb(0xd7),_0x350225);})[_0x3d2df6(0xe6)](function(_0x346300){const _0x3d9f02=_0x3d2df6;logger[_0x3d9f02(0xdd)](JSON[_0x3d9f02(0xd1)](_0x346300));});});},Migration['prototype'][a1079_0x3da511(0xd2)]=function(_0x28ab3d,_0x388e2a,_0x49d317){const _0x12029f=a1079_0x3da511,_0x2936e6=this;this[_0x12029f(0xb4)][_0x12029f(0xc1)](function(){const _0x3c7750=_0x12029f;return _0x2936e6[_0x3c7750(0xdc)]['addIndex'](_0x28ab3d,_0x388e2a,{'indexName':_0x49d317})['then'](function(){const _0x5b79b7=_0x3c7750;logger[_0x5b79b7(0xdd)](_0x5b79b7(0xbb),_0x28ab3d,_0x388e2a[_0x5b79b7(0xa8)](','),_0x49d317);})['catch'](function(_0x4bc66f){const _0x28fbc6=_0x3c7750;logger['info'](JSON[_0x28fbc6(0xd1)](_0x4bc66f));});});},Migration['prototype'][a1079_0x3da511(0xe5)]=function(_0x5f33df){const _0x1598cd=a1079_0x3da511,_0x29520c=this;this[_0x1598cd(0xb4)][_0x1598cd(0xc1)](function(){const _0x2f3af8=_0x1598cd;return _0x29520c[_0x2f3af8(0xdc)]['sequelize'][_0x2f3af8(0xe5)](_0x5f33df)[_0x2f3af8(0xe7)](function(){const _0x1a6686=_0x2f3af8;logger[_0x1a6686(0xdd)]('query\x20%s',_0x5f33df);})[_0x2f3af8(0xe6)](function(_0x235a5f){const _0x15640e=_0x2f3af8;logger[_0x15640e(0xdd)](JSON[_0x15640e(0xd1)](_0x235a5f));});});},Migration[a1079_0x3da511(0xd8)][a1079_0x3da511(0xb9)]=function(_0x5af70a,_0x242b62){const _0x507a72=a1079_0x3da511,_0x76f2fe=this;this['sequence'][_0x507a72(0xc1)](function(){const _0x2d9e02=_0x507a72;return _0x76f2fe[_0x2d9e02(0xdc)][_0x2d9e02(0xb9)](_0x5af70a,_0x242b62)[_0x2d9e02(0xe7)](function(){const _0x29bfe7=_0x2d9e02;logger[_0x29bfe7(0xdd)](_0x29bfe7(0xdb),_0x242b62,_0x5af70a);})[_0x2d9e02(0xe6)](function(_0x4da0e9){const _0x235541=_0x2d9e02;logger['info'](util[_0x235541(0xa7)](_0x4da0e9,{'showHidden':![],'depth':null}));});});},Migration[a1079_0x3da511(0xd8)][a1079_0x3da511(0xaa)]=function(){const _0x5d8707=a1079_0x3da511,_0x175532=this,_0x4a1a5a=_0x175532[_0x5d8707(0xdc)]['sequelize'][_0x5d8707(0xa9)](path['join'](config[_0x5d8707(0xc7)],'api/voiceContext/voiceContext.model'));this[_0x5d8707(0xb4)][_0x5d8707(0xc1)](function(){const _0x120797=_0x5d8707;return _0x4a1a5a[_0x120797(0xc5)]({'where':{'name':_0x120797(0xad)},'defaults':{'name':_0x120797(0xad),'description':'default\x20entry\x20context\x20(DO\x20NOT\x20DELETE)','defaultEntry':!![]}})[_0x120797(0xae)](function(){const _0x4c66bc=_0x120797;return _0x4a1a5a[_0x4c66bc(0xce)]({'raw':!![]});})['then'](function(_0x5b40d6){const _0x3f27be=_0x120797,_0x57b3ca=fs[_0x3f27be(0xab)](path[_0x3f27be(0xa8)](config[_0x3f27be(0xc7)],_0x3f27be(0xcb)),_0x3f27be(0xe9)),_0x22ffa7=ejs[_0x3f27be(0xe3)](_0x57b3ca,{'contexts':_0x5b40d6||[]});fs[_0x3f27be(0xc2)](_0x3f27be(0xe4),_0x22ffa7),exec(_0x3f27be(0xe8),function(_0x31ebf2,_0x3224d2,_0x42a8c1){const _0x8d25e6=_0x3f27be;logger[_0x8d25e6(0xdd)](_0x8d25e6(0xbf),_0x8d25e6(0xbc),JSON[_0x8d25e6(0xd1)](_0x31ebf2),_0x3224d2,_0x42a8c1);});})[_0x120797(0xe6)](function(_0x46d46c){const _0x4b2739=_0x120797;logger['info'](JSON[_0x4b2739(0xd1)](_0x46d46c));});});},Migration[a1079_0x3da511(0xd8)][a1079_0x3da511(0xba)]=function(_0x5b8528){const _0x57401c=a1079_0x3da511;this[_0x57401c(0xb4)]['enqueue'](function(){return _0x5b8528();});},module[a1079_0x3da511(0xd5)]={'up':function(_0x51f873,_0x54947b){return new Promise(function(_0x354331){const _0x34e594=a1079_0x5d13,_0x6d3c6b=new Migration(_0x51f873);_0x6d3c6b['addColumn']('settings',_0x34e594(0xb1),{'type':_0x54947b[_0x34e594(0xb2)],'defaultValue':!![]}),_0x6d3c6b['addColumn'](_0x34e594(0xb7),_0x34e594(0xcd),{'type':_0x54947b[_0x34e594(0xd3)]}),_0x6d3c6b[_0x34e594(0xaa)](),_0x6d3c6b['addColumn'](_0x34e594(0xdf),_0x34e594(0xc3),{'type':_0x54947b[_0x34e594(0xb5)](_0x34e594(0xa6),_0x34e594(0xc9),_0x34e594(0xca)),'defaultValue':'contact_lead'}),_0x6d3c6b[_0x34e594(0xb8)](_0x34e594(0xdf),'moduleCreate',{'type':_0x54947b[_0x34e594(0xb5)](_0x34e594(0xe0),'contact',_0x34e594(0xca)),'defaultValue':_0x34e594(0xca)}),_0x6d3c6b[_0x34e594(0xe5)](_0x34e594(0xaf)),_0x6d3c6b[_0x34e594(0xe5)](_0x34e594(0xe2)),_0x6d3c6b[_0x34e594(0xe5)](_0x34e594(0xac)),_0x6d3c6b['query'](_0x34e594(0xbe)),_0x6d3c6b[_0x34e594(0xe5)](_0x34e594(0xcc)),_0x6d3c6b[_0x34e594(0xe5)]('INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\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());'),_0x6d3c6b[_0x34e594(0xe5)](_0x34e594(0xc4)),_0x6d3c6b[_0x34e594(0xe5)](_0x34e594(0xc0)),_0x6d3c6b[_0x34e594(0xe5)](_0x34e594(0xd4)),_0x6d3c6b[_0x34e594(0xe5)](_0x34e594(0xb3)),_0x6d3c6b[_0x34e594(0xe5)]('INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\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(_0x34e594(0xc6),function(_0x14080e,_0x134f54,_0x1e0154){const _0x129740=_0x34e594;logger[_0x129740(0xdd)](_0x129740(0xbf),_0x129740(0xbc),JSON[_0x129740(0xd1)](_0x14080e),_0x134f54,_0x1e0154),exec('ls\x20-la\x20/var/opt/motion2/server/files',function(_0x47d4e0,_0x57318e,_0x137707){const _0x564820=_0x129740;logger[_0x564820(0xdd)]('Ls\x20:',_0x564820(0xbc),JSON[_0x564820(0xd1)](_0x47d4e0),_0x57318e,_0x137707);});}),_0x6d3c6b['addColumn']('cm_contacts',_0x34e594(0xbd),{'type':_0x54947b[_0x34e594(0xe1)],'defaultValue':null}),_0x6d3c6b[_0x34e594(0xba)](_0x354331);});},'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 83b9b99..4d41774 100644 --- a/server/migrations/2.0.40.js +++ b/server/migrations/2.0.40.js @@ -1 +1 @@ -var a918_0x54ad=['exports'];(function(_0x1f9c5a,_0x54adfa){var _0x3b7845=function(_0x1dcacf){while(--_0x1dcacf){_0x1f9c5a['push'](_0x1f9c5a['shift']());}};_0x3b7845(++_0x54adfa);}(a918_0x54ad,0x84));var a918_0x3b78=function(_0x1f9c5a,_0x54adfa){_0x1f9c5a=_0x1f9c5a-0x0;var _0x3b7845=a918_0x54ad[_0x1f9c5a];return _0x3b7845;};var _0x4ff16d=a918_0x3b78;'use strict';module[_0x4ff16d('0x0')]={'up':function(){},'down':function(){}}; \ No newline at end of file +var a1080_0x2406=['exports'];(function(_0x3abf45,_0x9ffed0){var _0x240632=function(_0x4f9544){while(--_0x4f9544){_0x3abf45['push'](_0x3abf45['shift']());}};_0x240632(++_0x9ffed0);}(a1080_0x2406,0x172));var a1080_0x4f95=function(_0x3abf45,_0x9ffed0){_0x3abf45=_0x3abf45-0x16f;var _0x240632=a1080_0x2406[_0x3abf45];return _0x240632;};var a1080_0x430821=a1080_0x4f95;'use strict';module[a1080_0x430821(0x16f)]={'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 7bff1f3..32d5aba 100644 --- a/server/migrations/2.0.41.js +++ b/server/migrations/2.0.41.js @@ -1 +1 @@ -const a919_0x1a63=['prototype','removeColumn','stringify','dropTable','showAgentAvatar','info','agentAvatar','queryInterface','cm_custom_fields','changeColumn','TEXT','util','serverUrl','sequelize','join','STRING','addColumn','catch','query','formData','enqueue','chat_interactions','addIndex','addIndex\x20%s\x20%s\x20%s','inspect','Removed\x20column\x20%s\x20from\x20%s','BOOLEAN','chat_websites','chat_messages','secret','values','then','tail','long','sequence','int_desk_accounts','table\x20dropped\x20%s'];(function(_0x2c67e9,_0x1a63da){const _0x134a11=function(_0x4e27fc){while(--_0x4e27fc){_0x2c67e9['push'](_0x2c67e9['shift']());}};_0x134a11(++_0x1a63da);}(a919_0x1a63,0x77));const a919_0x134a=function(_0x2c67e9,_0x1a63da){_0x2c67e9=_0x2c67e9-0x0;let _0x134a11=a919_0x1a63[_0x2c67e9];return _0x134a11;};const _0x38a42c=a919_0x134a;'use strict';const logger=require('../config/logger')('migration'),util=require(_0x38a42c('0x3')),Sequence=function(){};Sequence[_0x38a42c('0x1d')][_0x38a42c('0xc')]=function(_0x4e27fc){const _0xfdb374=_0x38a42c;this[_0xfdb374('0x18')]=this[_0xfdb374('0x18')]?this['tail']['finally'](_0x4e27fc):_0x4e27fc();};const Migration=function(_0x55145b){const _0x251890=_0x38a42c;this[_0x251890('0x24')]=_0x55145b,this[_0x251890('0x1a')]=new Sequence();};Migration[_0x38a42c('0x1d')][_0x38a42c('0x1')]=function(_0x287bd2,_0x1b04f6,_0x58d947){const _0x3d753e=_0x38a42c,_0x1fb489=this;this[_0x3d753e('0x1a')][_0x3d753e('0xc')](function(){const _0x4a6c29=_0x3d753e;return _0x1fb489[_0x4a6c29('0x24')][_0x4a6c29('0x1')](_0x287bd2,_0x1b04f6,_0x58d947)[_0x4a6c29('0x17')](function(){const _0x4c9e9c=_0x4a6c29;logger[_0x4c9e9c('0x22')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x1b04f6,_0x287bd2);})[_0x4a6c29('0x9')](function(_0x34f464){const _0x14319c=_0x4a6c29;logger[_0x14319c('0x22')](JSON['stringify'](_0x34f464));});});},Migration[_0x38a42c('0x1d')]['addColumn']=function(_0x2180a3,_0x55f761,_0x2fbb7a){const _0x422e5f=_0x38a42c,_0x495848=this;this[_0x422e5f('0x1a')][_0x422e5f('0xc')](function(){const _0x33d8b4=_0x422e5f;return _0x495848['queryInterface'][_0x33d8b4('0x8')](_0x2180a3,_0x55f761,_0x2fbb7a)[_0x33d8b4('0x17')](function(){const _0x5aa641=_0x33d8b4;logger[_0x5aa641('0x22')]('Added\x20column\x20%s\x20to\x20%s',_0x55f761,_0x2180a3);})[_0x33d8b4('0x9')](function(_0x201d31){const _0x16af52=_0x33d8b4;logger[_0x16af52('0x22')](JSON[_0x16af52('0x1f')](_0x201d31));});});},Migration[_0x38a42c('0x1d')][_0x38a42c('0x20')]=function(_0x1e48b6){const _0x46df9e=this;this['sequence']['enqueue'](function(){const _0x4966f5=a919_0x134a;return _0x46df9e[_0x4966f5('0x24')]['dropTable'](_0x1e48b6,{'force':!![]})[_0x4966f5('0x17')](function(){const _0x415991=_0x4966f5;logger['info'](_0x415991('0x1c'),_0x1e48b6);})['catch'](function(_0x211d6d){const _0x335198=_0x4966f5;logger[_0x335198('0x22')](JSON[_0x335198('0x1f')](_0x211d6d));});});},Migration[_0x38a42c('0x1d')]['addIndex']=function(_0x2703ca,_0x2303b7,_0x25ae9e){const _0x32f779=_0x38a42c,_0x3e11eb=this;this[_0x32f779('0x1a')]['enqueue'](function(){const _0x9b2fa0=_0x32f779;return _0x3e11eb['queryInterface'][_0x9b2fa0('0xe')](_0x2703ca,_0x2303b7,{'indexName':_0x25ae9e})[_0x9b2fa0('0x17')](function(){const _0x1589fd=_0x9b2fa0;logger[_0x1589fd('0x22')](_0x1589fd('0xf'),_0x2703ca,_0x2303b7[_0x1589fd('0x6')](','),_0x25ae9e);})[_0x9b2fa0('0x9')](function(_0x4ba84e){const _0x9d6abd=_0x9b2fa0;logger[_0x9d6abd('0x22')](JSON[_0x9d6abd('0x1f')](_0x4ba84e));});});},Migration[_0x38a42c('0x1d')][_0x38a42c('0xa')]=function(_0x5c64f1){const _0x454fa9=_0x38a42c,_0x1db226=this;this[_0x454fa9('0x1a')][_0x454fa9('0xc')](function(){const _0x4947cd=_0x454fa9;return _0x1db226[_0x4947cd('0x24')][_0x4947cd('0x5')][_0x4947cd('0xa')](_0x5c64f1)[_0x4947cd('0x17')](function(){logger['info']('query\x20%s',_0x5c64f1);})[_0x4947cd('0x9')](function(_0x12e5c3){const _0x286937=_0x4947cd;logger[_0x286937('0x22')](JSON['stringify'](_0x12e5c3));});});},Migration[_0x38a42c('0x1d')][_0x38a42c('0x1e')]=function(_0x3f8fd6,_0x2ad339){const _0x2512c8=_0x38a42c,_0x2701e7=this;this[_0x2512c8('0x1a')][_0x2512c8('0xc')](function(){const _0x1171af=_0x2512c8;return _0x2701e7['queryInterface'][_0x1171af('0x1e')](_0x3f8fd6,_0x2ad339)[_0x1171af('0x17')](function(){const _0x497dc5=_0x1171af;logger[_0x497dc5('0x22')](_0x497dc5('0x11'),_0x2ad339,_0x3f8fd6);})[_0x1171af('0x9')](function(_0x2d889d){const _0x467f08=_0x1171af;logger[_0x467f08('0x22')](util[_0x467f08('0x10')](_0x2d889d,{'showHidden':![],'depth':null}));});});},Migration['prototype']['final']=function(_0x38eece){const _0x139d40=_0x38a42c;this['sequence'][_0x139d40('0xc')](function(){return _0x38eece();});},module['exports']={'up':function(_0xf62065,_0x4213ca){return new Promise(function(_0x12dda3){const _0x5698a2=a919_0x134a,_0xdeb190=new Migration(_0xf62065);_0xdeb190[_0x5698a2('0x8')](_0x5698a2('0x1b'),_0x5698a2('0x4'),{'type':_0x4213ca[_0x5698a2('0x7')]}),_0xdeb190[_0x5698a2('0x8')](_0x5698a2('0xd'),_0x5698a2('0xb'),{'type':_0x4213ca[_0x5698a2('0x2')]('long')}),_0xdeb190['addColumn'](_0x5698a2('0x14'),_0x5698a2('0x15'),{'type':_0x4213ca[_0x5698a2('0x12')],'defaultValue':![]}),_0xdeb190[_0x5698a2('0x8')](_0x5698a2('0x13'),_0x5698a2('0x23'),{'type':_0x4213ca[_0x5698a2('0x2')]}),_0xdeb190[_0x5698a2('0x8')](_0x5698a2('0x13'),_0x5698a2('0x21'),{'type':_0x4213ca[_0x5698a2('0x12')],'defaultValue':![]}),_0xdeb190['changeColumn'](_0x5698a2('0x0'),_0x5698a2('0x16'),{'type':_0x4213ca[_0x5698a2('0x2')](_0x5698a2('0x19'))}),_0xdeb190['final'](_0x12dda3);});},'down':function(){}}; \ No newline at end of file +const a1081_0x475b=['final','addIndex\x20%s\x20%s\x20%s','formData','chat_websites','serverUrl','removeColumn','queryInterface','cm_custom_fields','addIndex','finally','enqueue','info','chat_messages','TEXT','Added\x20column\x20%s\x20to\x20%s','query','tail','catch','sequence','stringify','exports','showAgentAvatar','values','prototype','agentAvatar','BOOLEAN','then','changeColumn','table\x20dropped\x20%s','dropTable','util','long','addColumn'];(function(_0x3f0a88,_0xdfcf9d){const _0x475ba6=function(_0x36adc9){while(--_0x36adc9){_0x3f0a88['push'](_0x3f0a88['shift']());}};_0x475ba6(++_0xdfcf9d);}(a1081_0x475b,0x94));const a1081_0x36ad=function(_0x3f0a88,_0xdfcf9d){_0x3f0a88=_0x3f0a88-0x1cb;let _0x475ba6=a1081_0x475b[_0x3f0a88];return _0x475ba6;};const a1081_0x3c1392=a1081_0x36ad;'use strict';const logger=require('../config/logger')('migration'),util=require(a1081_0x3c1392(0x1d9)),Sequence=function(){};Sequence[a1081_0x3c1392(0x1d2)][a1081_0x3c1392(0x1e6)]=function(_0x202fcb){const _0xa54944=a1081_0x3c1392;this[_0xa54944(0x1cb)]=this[_0xa54944(0x1cb)]?this['tail'][_0xa54944(0x1e5)](_0x202fcb):_0x202fcb();};const Migration=function(_0x5a0075){const _0x5d6742=a1081_0x3c1392;this['queryInterface']=_0x5a0075,this[_0x5d6742(0x1cd)]=new Sequence();};Migration['prototype'][a1081_0x3c1392(0x1d6)]=function(_0x58187d,_0x290d5e,_0x562203){const _0x5cfa82=a1081_0x3c1392,_0x29ad17=this;this[_0x5cfa82(0x1cd)]['enqueue'](function(){const _0x24a04b=_0x5cfa82;return _0x29ad17['queryInterface'][_0x24a04b(0x1d6)](_0x58187d,_0x290d5e,_0x562203)[_0x24a04b(0x1d5)](function(){const _0x38820d=_0x24a04b;logger[_0x38820d(0x1e7)]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x290d5e,_0x58187d);})[_0x24a04b(0x1cc)](function(_0x15a9d6){const _0x4313df=_0x24a04b;logger['info'](JSON[_0x4313df(0x1ce)](_0x15a9d6));});});},Migration[a1081_0x3c1392(0x1d2)][a1081_0x3c1392(0x1db)]=function(_0x2aaf18,_0x521594,_0x3f68c5){const _0xf58c07=a1081_0x3c1392,_0x18dc86=this;this[_0xf58c07(0x1cd)]['enqueue'](function(){const _0x901447=_0xf58c07;return _0x18dc86[_0x901447(0x1e2)][_0x901447(0x1db)](_0x2aaf18,_0x521594,_0x3f68c5)[_0x901447(0x1d5)](function(){const _0x46a1c2=_0x901447;logger['info'](_0x46a1c2(0x1ea),_0x521594,_0x2aaf18);})['catch'](function(_0x347791){const _0x144b1e=_0x901447;logger['info'](JSON[_0x144b1e(0x1ce)](_0x347791));});});},Migration[a1081_0x3c1392(0x1d2)][a1081_0x3c1392(0x1d8)]=function(_0x419d6c){const _0x21dfdc=a1081_0x3c1392,_0x35d9d6=this;this[_0x21dfdc(0x1cd)][_0x21dfdc(0x1e6)](function(){const _0x5a400a=_0x21dfdc;return _0x35d9d6['queryInterface']['dropTable'](_0x419d6c,{'force':!![]})[_0x5a400a(0x1d5)](function(){const _0x529fce=_0x5a400a;logger[_0x529fce(0x1e7)](_0x529fce(0x1d7),_0x419d6c);})['catch'](function(_0x38d605){const _0x190ed3=_0x5a400a;logger[_0x190ed3(0x1e7)](JSON[_0x190ed3(0x1ce)](_0x38d605));});});},Migration[a1081_0x3c1392(0x1d2)][a1081_0x3c1392(0x1e4)]=function(_0x23c1af,_0x7790d9,_0x11c4fa){const _0x34976c=a1081_0x3c1392,_0x5f306c=this;this[_0x34976c(0x1cd)]['enqueue'](function(){const _0x3cf97d=_0x34976c;return _0x5f306c[_0x3cf97d(0x1e2)][_0x3cf97d(0x1e4)](_0x23c1af,_0x7790d9,{'indexName':_0x11c4fa})['then'](function(){const _0x2ddafc=_0x3cf97d;logger[_0x2ddafc(0x1e7)](_0x2ddafc(0x1dd),_0x23c1af,_0x7790d9['join'](','),_0x11c4fa);})['catch'](function(_0x1f9507){const _0xf50f86=_0x3cf97d;logger[_0xf50f86(0x1e7)](JSON[_0xf50f86(0x1ce)](_0x1f9507));});});},Migration[a1081_0x3c1392(0x1d2)][a1081_0x3c1392(0x1eb)]=function(_0x2f80ec){const _0x51337e=a1081_0x3c1392,_0x43fa68=this;this[_0x51337e(0x1cd)][_0x51337e(0x1e6)](function(){const _0x28a932=_0x51337e;return _0x43fa68[_0x28a932(0x1e2)]['sequelize'][_0x28a932(0x1eb)](_0x2f80ec)[_0x28a932(0x1d5)](function(){const _0xbd3885=_0x28a932;logger[_0xbd3885(0x1e7)]('query\x20%s',_0x2f80ec);})[_0x28a932(0x1cc)](function(_0xd4256b){const _0x4e68eb=_0x28a932;logger[_0x4e68eb(0x1e7)](JSON[_0x4e68eb(0x1ce)](_0xd4256b));});});},Migration[a1081_0x3c1392(0x1d2)][a1081_0x3c1392(0x1e1)]=function(_0x21c1cd,_0x43ecf6){const _0x258178=a1081_0x3c1392,_0x68d1a2=this;this[_0x258178(0x1cd)][_0x258178(0x1e6)](function(){const _0x2b2e93=_0x258178;return _0x68d1a2[_0x2b2e93(0x1e2)][_0x2b2e93(0x1e1)](_0x21c1cd,_0x43ecf6)[_0x2b2e93(0x1d5)](function(){const _0x28a0a1=_0x2b2e93;logger[_0x28a0a1(0x1e7)]('Removed\x20column\x20%s\x20from\x20%s',_0x43ecf6,_0x21c1cd);})['catch'](function(_0x1aefff){logger['info'](util['inspect'](_0x1aefff,{'showHidden':![],'depth':null}));});});},Migration[a1081_0x3c1392(0x1d2)][a1081_0x3c1392(0x1dc)]=function(_0xb1a685){this['sequence']['enqueue'](function(){return _0xb1a685();});},module[a1081_0x3c1392(0x1cf)]={'up':function(_0x13427c,_0x38fdee){return new Promise(function(_0x431efc){const _0x3a7b4c=a1081_0x36ad,_0x316554=new Migration(_0x13427c);_0x316554[_0x3a7b4c(0x1db)]('int_desk_accounts',_0x3a7b4c(0x1e0),{'type':_0x38fdee['STRING']}),_0x316554[_0x3a7b4c(0x1db)]('chat_interactions',_0x3a7b4c(0x1de),{'type':_0x38fdee[_0x3a7b4c(0x1e9)](_0x3a7b4c(0x1da))}),_0x316554[_0x3a7b4c(0x1db)](_0x3a7b4c(0x1e8),'secret',{'type':_0x38fdee['BOOLEAN'],'defaultValue':![]}),_0x316554[_0x3a7b4c(0x1db)]('chat_websites',_0x3a7b4c(0x1d3),{'type':_0x38fdee[_0x3a7b4c(0x1e9)]}),_0x316554[_0x3a7b4c(0x1db)](_0x3a7b4c(0x1df),_0x3a7b4c(0x1d0),{'type':_0x38fdee[_0x3a7b4c(0x1d4)],'defaultValue':![]}),_0x316554[_0x3a7b4c(0x1d6)](_0x3a7b4c(0x1e3),_0x3a7b4c(0x1d1),{'type':_0x38fdee[_0x3a7b4c(0x1e9)](_0x3a7b4c(0x1da))}),_0x316554[_0x3a7b4c(0x1dc)](_0x431efc);});},'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 bbff30a..f16c6fa 100644 --- a/server/migrations/2.0.42.js +++ b/server/migrations/2.0.42.js @@ -1 +1 @@ -const a920_0x45e6=['tail','queryInterface','number','sequelize','stringify','Added\x20column\x20%s\x20to\x20%s','info','failMessage','then','notIn','sequence','TEXT','prototype','cf_','addIndex\x20%s\x20%s\x20%s','table\x20dropped\x20%s','dropTable','cm_contacts','Removed\x20column\x20%s\x20from\x20%s','switch','exports','enqueue','addColumn','users','removeColumn','join','length','query','changeColumn','catch','api/cmCustomField/cmCustomField.model','tools_tags','extensionMonitor','../config/environment','BOOLEAN','getCustomFields','root','finally','path','addIndex','STRING','query\x20%s','final','inspect'];(function(_0x10937b,_0x45e6c6){const _0x3ab622=function(_0x5499ac){while(--_0x5499ac){_0x10937b['push'](_0x10937b['shift']());}};_0x3ab622(++_0x45e6c6);}(a920_0x45e6,0x17d));const a920_0x3ab6=function(_0x10937b,_0x45e6c6){_0x10937b=_0x10937b-0x0;let _0x3ab622=a920_0x45e6[_0x10937b];return _0x3ab622;};const _0x233caf=a920_0x3ab6;'use strict';const logger=require('../config/logger')('migration'),util=require('util'),path=require(_0x233caf('0x9')),config=require(_0x233caf('0x4')),{Op}=require(_0x233caf('0x12')),Sequence=function(){};Sequence['prototype'][_0x233caf('0x24')]=function(_0x5499ac){const _0x2510bf=_0x233caf;this['tail']=this[_0x2510bf('0xf')]?this[_0x2510bf('0xf')][_0x2510bf('0x8')](_0x5499ac):_0x5499ac();};const Migration=function(_0x269465){const _0x224126=_0x233caf;this[_0x224126('0x10')]=_0x269465,this[_0x224126('0x19')]=new Sequence();};Migration[_0x233caf('0x1b')][_0x233caf('0x2b')]=function(_0xcd2e6d,_0x457747,_0x4f19ea){const _0x437ac1=_0x233caf,_0x5381c4=this;this[_0x437ac1('0x19')][_0x437ac1('0x24')](function(){const _0x2556cb=_0x437ac1;return _0x5381c4['queryInterface'][_0x2556cb('0x2b')](_0xcd2e6d,_0x457747,_0x4f19ea)['then'](function(){const _0x418050=_0x2556cb;logger[_0x418050('0x15')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x457747,_0xcd2e6d);})[_0x2556cb('0x0')](function(_0x1b0aab){const _0xc5a81e=_0x2556cb;logger[_0xc5a81e('0x15')](JSON['stringify'](_0x1b0aab));});});},Migration['prototype'][_0x233caf('0x25')]=function(_0x3c8eb5,_0x203729,_0x1c956d){const _0xb91c37=_0x233caf,_0x4c626f=this;this[_0xb91c37('0x19')][_0xb91c37('0x24')](function(){const _0x51f646=_0xb91c37;return _0x4c626f[_0x51f646('0x10')][_0x51f646('0x25')](_0x3c8eb5,_0x203729,_0x1c956d)[_0x51f646('0x17')](function(){const _0x323826=_0x51f646;logger[_0x323826('0x15')](_0x323826('0x14'),_0x203729,_0x3c8eb5);})[_0x51f646('0x0')](function(_0x47af12){const _0x49bcb3=_0x51f646;logger[_0x49bcb3('0x15')](JSON['stringify'](_0x47af12));});});},Migration[_0x233caf('0x1b')]['dropTable']=function(_0x28e296){const _0x246bc1=this;this['sequence']['enqueue'](function(){const _0x175236=a920_0x3ab6;return _0x246bc1[_0x175236('0x10')][_0x175236('0x1f')](_0x28e296,{'force':!![]})['then'](function(){const _0x121cc8=_0x175236;logger[_0x121cc8('0x15')](_0x121cc8('0x1e'),_0x28e296);})[_0x175236('0x0')](function(_0x4a9494){const _0x593bbd=_0x175236;logger[_0x593bbd('0x15')](JSON[_0x593bbd('0x13')](_0x4a9494));});});},Migration[_0x233caf('0x1b')][_0x233caf('0xa')]=function(_0x51d5f3,_0x207d0f,_0x1447ba){const _0x2eeace=_0x233caf,_0x390f03=this;this[_0x2eeace('0x19')][_0x2eeace('0x24')](function(){const _0x5ea5e8=_0x2eeace;return _0x390f03[_0x5ea5e8('0x10')]['addIndex'](_0x51d5f3,_0x207d0f,{'indexName':_0x1447ba})[_0x5ea5e8('0x17')](function(){const _0x52cf4c=_0x5ea5e8;logger['info'](_0x52cf4c('0x1d'),_0x51d5f3,_0x207d0f[_0x52cf4c('0x28')](','),_0x1447ba);})['catch'](function(_0x4cfb2d){const _0x501e56=_0x5ea5e8;logger[_0x501e56('0x15')](JSON[_0x501e56('0x13')](_0x4cfb2d));});});},Migration[_0x233caf('0x1b')][_0x233caf('0x2a')]=function(_0x3dae7e){const _0x1e5143=this;this['sequence']['enqueue'](function(){const _0x189cc9=a920_0x3ab6;return _0x1e5143[_0x189cc9('0x10')][_0x189cc9('0x12')]['query'](_0x3dae7e)[_0x189cc9('0x17')](function(){const _0x162c02=_0x189cc9;logger[_0x162c02('0x15')](_0x162c02('0xc'),_0x3dae7e);})['catch'](function(_0x4cdc0c){const _0x2eb985=_0x189cc9;logger[_0x2eb985('0x15')](JSON[_0x2eb985('0x13')](_0x4cdc0c));});});},Migration[_0x233caf('0x1b')][_0x233caf('0x27')]=function(_0x3bbf17,_0x2ce94f){const _0x29ce51=_0x233caf,_0x84c85=this;this[_0x29ce51('0x19')][_0x29ce51('0x24')](function(){const _0x4e8807=_0x29ce51;return _0x84c85[_0x4e8807('0x10')]['removeColumn'](_0x3bbf17,_0x2ce94f)[_0x4e8807('0x17')](function(){const _0x1d81b1=_0x4e8807;logger[_0x1d81b1('0x15')](_0x1d81b1('0x21'),_0x2ce94f,_0x3bbf17);})[_0x4e8807('0x0')](function(_0x3ba222){const _0x10bb7f=_0x4e8807;logger['info'](util[_0x10bb7f('0xe')](_0x3ba222,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x233caf('0x6')]=function(){const _0x4e82d2=_0x233caf,_0x45ef72=this,_0x48b022=_0x45ef72['queryInterface'][_0x4e82d2('0x12')]['import'](path[_0x4e82d2('0x28')](config[_0x4e82d2('0x7')],_0x4e82d2('0x1')));return _0x48b022['findAll']({'where':{'type':{[Op[_0x4e82d2('0x18')]]:[_0x4e82d2('0x11'),_0x4e82d2('0x22')]}},'attributes':['id']})['then'](function(_0xe348a2){return _0xe348a2;})[_0x4e82d2('0x0')](function(_0x284b86){const _0xbcc1db=_0x4e82d2;logger[_0xbcc1db('0x15')](JSON[_0xbcc1db('0x13')](_0x284b86));});},Migration[_0x233caf('0x1b')][_0x233caf('0xd')]=function(_0x3eddd8){this['sequence']['enqueue'](function(){return _0x3eddd8();});},module[_0x233caf('0x23')]={'up':function(_0x5df26b,_0x50ef17){return new Promise(function(_0x2d0b9d){const _0x10d010=a920_0x3ab6,_0x556260=new Migration(_0x5df26b);_0x556260[_0x10d010('0x25')](_0x10d010('0x2'),'color',{'type':_0x50ef17[_0x10d010('0xb')],'defaultValue':'#0091EA'}),_0x556260['addColumn']('openchannel_messages','secret',{'type':_0x50ef17[_0x10d010('0x5')],'defaultValue':![]}),_0x556260['getCustomFields']()[_0x10d010('0x17')](function(_0x4dfc43){const _0x50ed87=_0x10d010;if(_0x4dfc43)for(let _0x60e2e5=0x0,_0x9a0564=_0x4dfc43[_0x50ed87('0x29')];_0x60e2e5<_0x9a0564;_0x60e2e5++){_0x556260['changeColumn'](_0x50ed87('0x20'),_0x50ed87('0x1c')+_0x4dfc43[_0x60e2e5]['id'],{'type':_0x50ef17['TEXT']});}}),_0x556260[_0x10d010('0x25')]('fax_messages',_0x10d010('0x16'),{'type':_0x50ef17[_0x10d010('0x1a')]}),_0x556260[_0x10d010('0x25')](_0x10d010('0x26'),_0x10d010('0x3'),{'type':_0x50ef17[_0x10d010('0xb')],'defaultValue':''}),_0x556260[_0x10d010('0xd')](_0x2d0b9d);});},'down':function(){}}; \ No newline at end of file +const a1082_0x104f=['secret','info','query','extensionMonitor','sequelize','failMessage','prototype','Changed\x20column\x20%s\x20in\x20table\x20%s','#0091EA','root','query\x20%s','api/cmCustomField/cmCustomField.model','exports','queryInterface','util','enqueue','number','path','switch','import','STRING','Added\x20column\x20%s\x20to\x20%s','finally','tail','stringify','color','catch','join','removeColumn','findAll','sequence','table\x20dropped\x20%s','changeColumn','final','length','tools_tags','TEXT','../config/logger','getCustomFields','inspect','BOOLEAN','addColumn','then','addIndex\x20%s\x20%s\x20%s','dropTable','cm_contacts','users'];(function(_0x33e0c0,_0x3bffb5){const _0x104ff8=function(_0x252b1c){while(--_0x252b1c){_0x33e0c0['push'](_0x33e0c0['shift']());}};_0x104ff8(++_0x3bffb5);}(a1082_0x104f,0x104));const a1082_0x252b=function(_0x33e0c0,_0x3bffb5){_0x33e0c0=_0x33e0c0-0x79;let _0x104ff8=a1082_0x104f[_0x33e0c0];return _0x104ff8;};const a1082_0x4a86e1=a1082_0x252b;'use strict';const logger=require(a1082_0x4a86e1(0x85))('migration'),util=require(a1082_0x4a86e1(0x9d)),path=require(a1082_0x4a86e1(0xa0)),config=require('../config/environment'),{Op}=require(a1082_0x4a86e1(0x93)),Sequence=function(){};Sequence[a1082_0x4a86e1(0x95)][a1082_0x4a86e1(0x9e)]=function(_0x2f7642){const _0x5e93d4=a1082_0x4a86e1;this[_0x5e93d4(0xa6)]=this['tail']?this['tail'][_0x5e93d4(0xa5)](_0x2f7642):_0x2f7642();};const Migration=function(_0x72f341){const _0x53b2d4=a1082_0x4a86e1;this[_0x53b2d4(0x9c)]=_0x72f341,this['sequence']=new Sequence();};Migration[a1082_0x4a86e1(0x95)][a1082_0x4a86e1(0x80)]=function(_0x100f43,_0x2c440e,_0x277c8f){const _0x15fa28=a1082_0x4a86e1,_0x213db4=this;this[_0x15fa28(0x7e)]['enqueue'](function(){const _0xa54572=_0x15fa28;return _0x213db4['queryInterface'][_0xa54572(0x80)](_0x100f43,_0x2c440e,_0x277c8f)[_0xa54572(0x8a)](function(){const _0x452ea6=_0xa54572;logger[_0x452ea6(0x90)](_0x452ea6(0x96),_0x2c440e,_0x100f43);})[_0xa54572(0x7a)](function(_0x48dfe0){const _0x27fd20=_0xa54572;logger[_0x27fd20(0x90)](JSON[_0x27fd20(0xa7)](_0x48dfe0));});});},Migration[a1082_0x4a86e1(0x95)][a1082_0x4a86e1(0x89)]=function(_0x1d2e38,_0x35ebc9,_0x95738b){const _0x425c33=a1082_0x4a86e1,_0x57d0f4=this;this[_0x425c33(0x7e)][_0x425c33(0x9e)](function(){const _0x19de72=_0x425c33;return _0x57d0f4[_0x19de72(0x9c)][_0x19de72(0x89)](_0x1d2e38,_0x35ebc9,_0x95738b)[_0x19de72(0x8a)](function(){const _0x3ca95a=_0x19de72;logger[_0x3ca95a(0x90)](_0x3ca95a(0xa4),_0x35ebc9,_0x1d2e38);})[_0x19de72(0x7a)](function(_0x4c75b2){const _0x3b4997=_0x19de72;logger['info'](JSON[_0x3b4997(0xa7)](_0x4c75b2));});});},Migration['prototype'][a1082_0x4a86e1(0x8c)]=function(_0x5d2540){const _0xa29194=a1082_0x4a86e1,_0x5ece35=this;this[_0xa29194(0x7e)]['enqueue'](function(){const _0x44fcb9=_0xa29194;return _0x5ece35[_0x44fcb9(0x9c)]['dropTable'](_0x5d2540,{'force':!![]})[_0x44fcb9(0x8a)](function(){const _0x31029b=_0x44fcb9;logger[_0x31029b(0x90)](_0x31029b(0x7f),_0x5d2540);})[_0x44fcb9(0x7a)](function(_0x32b8fa){const _0x4a8841=_0x44fcb9;logger[_0x4a8841(0x90)](JSON['stringify'](_0x32b8fa));});});},Migration[a1082_0x4a86e1(0x95)]['addIndex']=function(_0x5a2988,_0x55b60b,_0x1d63ee){const _0x47eeaf=a1082_0x4a86e1,_0x51589a=this;this[_0x47eeaf(0x7e)][_0x47eeaf(0x9e)](function(){const _0x9231ca=_0x47eeaf;return _0x51589a[_0x9231ca(0x9c)]['addIndex'](_0x5a2988,_0x55b60b,{'indexName':_0x1d63ee})[_0x9231ca(0x8a)](function(){const _0x328c44=_0x9231ca;logger[_0x328c44(0x90)](_0x328c44(0x8b),_0x5a2988,_0x55b60b[_0x328c44(0x7b)](','),_0x1d63ee);})['catch'](function(_0x25ecd0){const _0x194843=_0x9231ca;logger[_0x194843(0x90)](JSON[_0x194843(0xa7)](_0x25ecd0));});});},Migration[a1082_0x4a86e1(0x95)][a1082_0x4a86e1(0x91)]=function(_0x270cba){const _0x1f26e1=a1082_0x4a86e1,_0x2792b5=this;this[_0x1f26e1(0x7e)]['enqueue'](function(){const _0x2967ab=_0x1f26e1;return _0x2792b5[_0x2967ab(0x9c)]['sequelize'][_0x2967ab(0x91)](_0x270cba)['then'](function(){const _0x1a0151=_0x2967ab;logger[_0x1a0151(0x90)](_0x1a0151(0x99),_0x270cba);})[_0x2967ab(0x7a)](function(_0x5175ff){const _0x558645=_0x2967ab;logger[_0x558645(0x90)](JSON['stringify'](_0x5175ff));});});},Migration[a1082_0x4a86e1(0x95)][a1082_0x4a86e1(0x7c)]=function(_0xe45c55,_0x36f31a){const _0x1b1dc7=a1082_0x4a86e1,_0x380e55=this;this[_0x1b1dc7(0x7e)]['enqueue'](function(){const _0x29decd=_0x1b1dc7;return _0x380e55[_0x29decd(0x9c)][_0x29decd(0x7c)](_0xe45c55,_0x36f31a)[_0x29decd(0x8a)](function(){logger['info']('Removed\x20column\x20%s\x20from\x20%s',_0x36f31a,_0xe45c55);})['catch'](function(_0x5460c0){const _0x364495=_0x29decd;logger[_0x364495(0x90)](util[_0x364495(0x87)](_0x5460c0,{'showHidden':![],'depth':null}));});});},Migration['prototype']['getCustomFields']=function(){const _0x12f9a6=a1082_0x4a86e1,_0x13799b=this,_0x24a205=_0x13799b['queryInterface']['sequelize'][_0x12f9a6(0xa2)](path[_0x12f9a6(0x7b)](config[_0x12f9a6(0x98)],_0x12f9a6(0x9a)));return _0x24a205[_0x12f9a6(0x7d)]({'where':{'type':{[Op['notIn']]:[_0x12f9a6(0x9f),_0x12f9a6(0xa1)]}},'attributes':['id']})[_0x12f9a6(0x8a)](function(_0x1b8dcc){return _0x1b8dcc;})[_0x12f9a6(0x7a)](function(_0x259aff){const _0x5334dc=_0x12f9a6;logger[_0x5334dc(0x90)](JSON[_0x5334dc(0xa7)](_0x259aff));});},Migration['prototype'][a1082_0x4a86e1(0x81)]=function(_0x45e637){const _0x25d940=a1082_0x4a86e1;this['sequence'][_0x25d940(0x9e)](function(){return _0x45e637();});},module[a1082_0x4a86e1(0x9b)]={'up':function(_0x195cfa,_0x35788f){return new Promise(function(_0x1ee7f8){const _0x3fa8c5=a1082_0x252b,_0x1f1fdd=new Migration(_0x195cfa);_0x1f1fdd[_0x3fa8c5(0x89)](_0x3fa8c5(0x83),_0x3fa8c5(0x79),{'type':_0x35788f['STRING'],'defaultValue':_0x3fa8c5(0x97)}),_0x1f1fdd[_0x3fa8c5(0x89)]('openchannel_messages',_0x3fa8c5(0x8f),{'type':_0x35788f[_0x3fa8c5(0x88)],'defaultValue':![]}),_0x1f1fdd[_0x3fa8c5(0x86)]()['then'](function(_0x4358fe){const _0x3c5121=_0x3fa8c5;if(_0x4358fe)for(let _0x336291=0x0,_0x299e9b=_0x4358fe[_0x3c5121(0x82)];_0x336291<_0x299e9b;_0x336291++){_0x1f1fdd[_0x3c5121(0x80)](_0x3c5121(0x8d),'cf_'+_0x4358fe[_0x336291]['id'],{'type':_0x35788f['TEXT']});}}),_0x1f1fdd[_0x3fa8c5(0x89)]('fax_messages',_0x3fa8c5(0x94),{'type':_0x35788f[_0x3fa8c5(0x84)]}),_0x1f1fdd[_0x3fa8c5(0x89)](_0x3fa8c5(0x8e),_0x3fa8c5(0x92),{'type':_0x35788f[_0x3fa8c5(0xa3)],'defaultValue':''}),_0x1f1fdd['final'](_0x1ee7f8);});},'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 a946f0f..a9ef735 100644 --- a/server/migrations/2.0.43.js +++ b/server/migrations/2.0.43.js @@ -1 +1 @@ -const a921_0x3dcf=['migration','final','../config/logger','tail','queryInterface','info','Added\x20column\x20%s\x20to\x20%s','query','changeColumn','prototype','Removed\x20column\x20%s\x20from\x20%s','sequelize','enqueue','addIndex','addIndex\x20%s\x20%s\x20%s','stringify','finally','join','then','query\x20%s','removeColumn','inspect','dropTable','addColumn','BOOLEAN','sequence','catch'];(function(_0x5a6d77,_0x3dcf9a){const _0x33a5f4=function(_0x1c3fff){while(--_0x1c3fff){_0x5a6d77['push'](_0x5a6d77['shift']());}};_0x33a5f4(++_0x3dcf9a);}(a921_0x3dcf,0x14c));const a921_0x33a5=function(_0x5a6d77,_0x3dcf9a){_0x5a6d77=_0x5a6d77-0x0;let _0x33a5f4=a921_0x3dcf[_0x5a6d77];return _0x33a5f4;};const _0x1fa60c=a921_0x33a5;'use strict';const logger=require(_0x1fa60c('0x15'))(_0x1fa60c('0x13')),util=require('util'),Sequence=function(){};Sequence[_0x1fa60c('0x1')][_0x1fa60c('0x4')]=function(_0x1c3fff){const _0x4f0715=_0x1fa60c;this[_0x4f0715('0x16')]=this[_0x4f0715('0x16')]?this[_0x4f0715('0x16')][_0x4f0715('0x8')](_0x1c3fff):_0x1c3fff();};const Migration=function(_0x5e190e){const _0x195be6=_0x1fa60c;this[_0x195be6('0x17')]=_0x5e190e,this[_0x195be6('0x11')]=new Sequence();};Migration['prototype'][_0x1fa60c('0x0')]=function(_0x477162,_0x535609,_0x2b1694){const _0x35711f=_0x1fa60c,_0x22ecd5=this;this[_0x35711f('0x11')]['enqueue'](function(){const _0x56aa25=_0x35711f;return _0x22ecd5[_0x56aa25('0x17')][_0x56aa25('0x0')](_0x477162,_0x535609,_0x2b1694)[_0x56aa25('0xa')](function(){const _0x1f5cd4=_0x56aa25;logger[_0x1f5cd4('0x18')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x535609,_0x477162);})['catch'](function(_0x54f8ac){const _0x523d5a=_0x56aa25;logger[_0x523d5a('0x18')](JSON[_0x523d5a('0x7')](_0x54f8ac));});});},Migration['prototype'][_0x1fa60c('0xf')]=function(_0x4cadfa,_0x48c6b6,_0x522979){const _0x541319=_0x1fa60c,_0x36f779=this;this['sequence'][_0x541319('0x4')](function(){const _0x56c7d2=_0x541319;return _0x36f779[_0x56c7d2('0x17')][_0x56c7d2('0xf')](_0x4cadfa,_0x48c6b6,_0x522979)[_0x56c7d2('0xa')](function(){const _0x4f4ad3=_0x56c7d2;logger[_0x4f4ad3('0x18')](_0x4f4ad3('0x19'),_0x48c6b6,_0x4cadfa);})[_0x56c7d2('0x12')](function(_0x16cd97){const _0x516531=_0x56c7d2;logger[_0x516531('0x18')](JSON[_0x516531('0x7')](_0x16cd97));});});},Migration['prototype'][_0x1fa60c('0xe')]=function(_0x363c3b){const _0x3a8703=_0x1fa60c,_0xa2e103=this;this[_0x3a8703('0x11')]['enqueue'](function(){const _0x2a6d6f=_0x3a8703;return _0xa2e103[_0x2a6d6f('0x17')][_0x2a6d6f('0xe')](_0x363c3b,{'force':!![]})[_0x2a6d6f('0xa')](function(){const _0xa007c6=_0x2a6d6f;logger[_0xa007c6('0x18')]('table\x20dropped\x20%s',_0x363c3b);})[_0x2a6d6f('0x12')](function(_0x3cf029){const _0xf7dd29=_0x2a6d6f;logger[_0xf7dd29('0x18')](JSON['stringify'](_0x3cf029));});});},Migration['prototype'][_0x1fa60c('0x5')]=function(_0x1d6668,_0x211097,_0xc23eea){const _0x1f941d=_0x1fa60c,_0x647757=this;this[_0x1f941d('0x11')][_0x1f941d('0x4')](function(){const _0x2b98d0=_0x1f941d;return _0x647757[_0x2b98d0('0x17')]['addIndex'](_0x1d6668,_0x211097,{'indexName':_0xc23eea})[_0x2b98d0('0xa')](function(){const _0x2d226b=_0x2b98d0;logger['info'](_0x2d226b('0x6'),_0x1d6668,_0x211097[_0x2d226b('0x9')](','),_0xc23eea);})[_0x2b98d0('0x12')](function(_0x1e18e2){const _0x13a651=_0x2b98d0;logger[_0x13a651('0x18')](JSON[_0x13a651('0x7')](_0x1e18e2));});});},Migration['prototype'][_0x1fa60c('0x1a')]=function(_0xc980bb){const _0x1436f9=_0x1fa60c,_0x22b4a8=this;this[_0x1436f9('0x11')]['enqueue'](function(){const _0x2471fc=_0x1436f9;return _0x22b4a8[_0x2471fc('0x17')][_0x2471fc('0x3')][_0x2471fc('0x1a')](_0xc980bb)[_0x2471fc('0xa')](function(){const _0x293997=_0x2471fc;logger[_0x293997('0x18')](_0x293997('0xb'),_0xc980bb);})[_0x2471fc('0x12')](function(_0x2cad70){const _0x34597e=_0x2471fc;logger['info'](JSON[_0x34597e('0x7')](_0x2cad70));});});},Migration[_0x1fa60c('0x1')]['removeColumn']=function(_0x172c8c,_0x440a10){const _0x48b516=_0x1fa60c,_0x565096=this;this[_0x48b516('0x11')][_0x48b516('0x4')](function(){const _0x5135dd=_0x48b516;return _0x565096[_0x5135dd('0x17')][_0x5135dd('0xc')](_0x172c8c,_0x440a10)[_0x5135dd('0xa')](function(){const _0x1d0e36=_0x5135dd;logger[_0x1d0e36('0x18')](_0x1d0e36('0x2'),_0x440a10,_0x172c8c);})[_0x5135dd('0x12')](function(_0x151296){const _0x21aba1=_0x5135dd;logger[_0x21aba1('0x18')](util[_0x21aba1('0xd')](_0x151296,{'showHidden':![],'depth':null}));});});},Migration[_0x1fa60c('0x1')][_0x1fa60c('0x14')]=function(_0xb92898){const _0xa143dc=_0x1fa60c;this[_0xa143dc('0x11')][_0xa143dc('0x4')](function(){return _0xb92898();});},module['exports']={'up':function(_0x5a1bc4,_0x348860){return new Promise(function(_0x208b50){const _0x259935=a921_0x33a5,_0x2c6a6b=new Migration(_0x5a1bc4);_0x2c6a6b[_0x259935('0xf')]('mail_messages','secret',{'type':_0x348860[_0x259935('0x10')],'defaultValue':![]}),_0x2c6a6b['final'](_0x208b50);});},'down':function(){}}; \ No newline at end of file +const a1083_0x5016=['changeColumn','query','util','Added\x20column\x20%s\x20to\x20%s','catch','final','Removed\x20column\x20%s\x20from\x20%s','join','addColumn','addIndex','migration','secret','sequence','exports','stringify','inspect','mail_messages','info','enqueue','table\x20dropped\x20%s','then','tail','query\x20%s','queryInterface','addIndex\x20%s\x20%s\x20%s','prototype','dropTable','BOOLEAN'];(function(_0x32d204,_0xac6b90){const _0x50167a=function(_0x16c9f1){while(--_0x16c9f1){_0x32d204['push'](_0x32d204['shift']());}};_0x50167a(++_0xac6b90);}(a1083_0x5016,0x1ea));const a1083_0x16c9=function(_0x32d204,_0xac6b90){_0x32d204=_0x32d204-0x13e;let _0x50167a=a1083_0x5016[_0x32d204];return _0x50167a;};const a1083_0x4f37cd=a1083_0x16c9;'use strict';const logger=require('../config/logger')(a1083_0x4f37cd(0x156)),util=require(a1083_0x4f37cd(0x14e)),Sequence=function(){};Sequence[a1083_0x4f37cd(0x149)][a1083_0x4f37cd(0x142)]=function(_0x3697e7){const _0x316b33=a1083_0x4f37cd;this['tail']=this[_0x316b33(0x145)]?this[_0x316b33(0x145)]['finally'](_0x3697e7):_0x3697e7();};const Migration=function(_0x3cfd32){const _0x475d9e=a1083_0x4f37cd;this[_0x475d9e(0x147)]=_0x3cfd32,this['sequence']=new Sequence();};Migration[a1083_0x4f37cd(0x149)][a1083_0x4f37cd(0x14c)]=function(_0x2c8fc7,_0x507607,_0x571e91){const _0x1f300e=a1083_0x4f37cd,_0x42e7f6=this;this[_0x1f300e(0x158)][_0x1f300e(0x142)](function(){const _0x208d5d=_0x1f300e;return _0x42e7f6[_0x208d5d(0x147)][_0x208d5d(0x14c)](_0x2c8fc7,_0x507607,_0x571e91)[_0x208d5d(0x144)](function(){const _0x280139=_0x208d5d;logger[_0x280139(0x141)]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x507607,_0x2c8fc7);})[_0x208d5d(0x150)](function(_0x1a41b0){const _0x478a20=_0x208d5d;logger[_0x478a20(0x141)](JSON[_0x478a20(0x13e)](_0x1a41b0));});});},Migration[a1083_0x4f37cd(0x149)]['addColumn']=function(_0x4849ee,_0x5cbea0,_0x2fe9cb){const _0xd1b83b=a1083_0x4f37cd,_0x4ab1c8=this;this[_0xd1b83b(0x158)][_0xd1b83b(0x142)](function(){const _0x297b2a=_0xd1b83b;return _0x4ab1c8[_0x297b2a(0x147)][_0x297b2a(0x154)](_0x4849ee,_0x5cbea0,_0x2fe9cb)[_0x297b2a(0x144)](function(){const _0x9085eb=_0x297b2a;logger[_0x9085eb(0x141)](_0x9085eb(0x14f),_0x5cbea0,_0x4849ee);})[_0x297b2a(0x150)](function(_0xf8eb10){const _0x281b8f=_0x297b2a;logger['info'](JSON[_0x281b8f(0x13e)](_0xf8eb10));});});},Migration['prototype'][a1083_0x4f37cd(0x14a)]=function(_0x2e60e7){const _0x1f698d=a1083_0x4f37cd,_0x4d38bd=this;this['sequence'][_0x1f698d(0x142)](function(){const _0x3a583e=_0x1f698d;return _0x4d38bd[_0x3a583e(0x147)][_0x3a583e(0x14a)](_0x2e60e7,{'force':!![]})[_0x3a583e(0x144)](function(){const _0xadf8c5=_0x3a583e;logger[_0xadf8c5(0x141)](_0xadf8c5(0x143),_0x2e60e7);})['catch'](function(_0x53f8b8){const _0x5ee8ed=_0x3a583e;logger['info'](JSON[_0x5ee8ed(0x13e)](_0x53f8b8));});});},Migration[a1083_0x4f37cd(0x149)][a1083_0x4f37cd(0x155)]=function(_0x5864b8,_0x4f08ff,_0x432141){const _0x410a70=a1083_0x4f37cd,_0x582bb7=this;this[_0x410a70(0x158)][_0x410a70(0x142)](function(){const _0x33a61e=_0x410a70;return _0x582bb7[_0x33a61e(0x147)][_0x33a61e(0x155)](_0x5864b8,_0x4f08ff,{'indexName':_0x432141})[_0x33a61e(0x144)](function(){const _0x157bb3=_0x33a61e;logger[_0x157bb3(0x141)](_0x157bb3(0x148),_0x5864b8,_0x4f08ff[_0x157bb3(0x153)](','),_0x432141);})[_0x33a61e(0x150)](function(_0x2f71f7){const _0x300d2f=_0x33a61e;logger[_0x300d2f(0x141)](JSON[_0x300d2f(0x13e)](_0x2f71f7));});});},Migration[a1083_0x4f37cd(0x149)][a1083_0x4f37cd(0x14d)]=function(_0x726c8f){const _0xb7dfc8=a1083_0x4f37cd,_0x13ec4a=this;this[_0xb7dfc8(0x158)][_0xb7dfc8(0x142)](function(){const _0xad67f8=_0xb7dfc8;return _0x13ec4a['queryInterface']['sequelize'][_0xad67f8(0x14d)](_0x726c8f)[_0xad67f8(0x144)](function(){const _0x516243=_0xad67f8;logger['info'](_0x516243(0x146),_0x726c8f);})['catch'](function(_0x545703){const _0x4db811=_0xad67f8;logger[_0x4db811(0x141)](JSON['stringify'](_0x545703));});});},Migration[a1083_0x4f37cd(0x149)]['removeColumn']=function(_0x2b703a,_0x2bf8ae){const _0x8083bb=a1083_0x4f37cd,_0x253f19=this;this['sequence'][_0x8083bb(0x142)](function(){const _0x504295=_0x8083bb;return _0x253f19[_0x504295(0x147)]['removeColumn'](_0x2b703a,_0x2bf8ae)[_0x504295(0x144)](function(){const _0x484d69=_0x504295;logger[_0x484d69(0x141)](_0x484d69(0x152),_0x2bf8ae,_0x2b703a);})['catch'](function(_0x2ad517){const _0xbd7e64=_0x504295;logger[_0xbd7e64(0x141)](util[_0xbd7e64(0x13f)](_0x2ad517,{'showHidden':![],'depth':null}));});});},Migration[a1083_0x4f37cd(0x149)][a1083_0x4f37cd(0x151)]=function(_0x35dc11){const _0x321911=a1083_0x4f37cd;this['sequence'][_0x321911(0x142)](function(){return _0x35dc11();});},module[a1083_0x4f37cd(0x159)]={'up':function(_0x3b5083,_0x56ab9c){return new Promise(function(_0xe625bb){const _0x539f59=a1083_0x16c9,_0x29ee06=new Migration(_0x3b5083);_0x29ee06[_0x539f59(0x154)](_0x539f59(0x140),_0x539f59(0x157),{'type':_0x56ab9c[_0x539f59(0x14b)],'defaultValue':![]}),_0x29ee06[_0x539f59(0x151)](_0xe625bb);});},'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 5f393d3..993444e 100644 --- a/server/migrations/2.0.44.js +++ b/server/migrations/2.0.44.js @@ -1 +1 @@ -const a922_0x2f50=['migration','nameAndAccount','util','mail_messages','ALTER\x20TABLE\x20chat_dispositions\x20add\x20UNIQUE\x20INDEX\x20nameAndAccount\x20(name,\x20ChatAccountId)','Do\x20you\x20want\x20to\x20close\x20the\x20interaction?','prototype','threadId','tail','dropTable','then','openchannel_dispositions','chat_websites','closingQuestion','query','addIndex','info','openchannel_messages','ALTER\x20TABLE\x20sms_dispositions\x20add\x20UNIQUE\x20INDEX\x20nameAndAccount\x20(name,\x20SmsAccountId)','finally','fax_messages','chat_interactions','openchannel_interactions','Added\x20column\x20%s\x20to\x20%s','final','removeColumn','queryInterface','substatus','sms_dispositions','inspect','ALTER\x20TABLE\x20openchannel_dispositions\x20add\x20UNIQUE\x20INDEX\x20nameAndAccount\x20(name,\x20OpenchannelAccountId)','STRING','query\x20%s','readAt','mail_dispositions','addColumn','table\x20dropped\x20%s','chat_messages','stringify','DATE','Removed\x20column\x20%s\x20from\x20%s','enqueue','externalUrl','name','ALTER\x20TABLE\x20fax_dispositions\x20add\x20UNIQUE\x20INDEX\x20nameAndAccount\x20(name,\x20FaxAccountId)','sequence','join','catch','Changed\x20column\x20%s\x20in\x20table\x20%s','read1stAt','voice_dispositions','exports','ALTER\x20TABLE\x20mail_dispositions\x20DROP\x20INDEX\x20name','changeColumn'];(function(_0x340a8b,_0x2f5031){const _0x404c6e=function(_0x52cc54){while(--_0x52cc54){_0x340a8b['push'](_0x340a8b['shift']());}};_0x404c6e(++_0x2f5031);}(a922_0x2f50,0x176));const a922_0x404c=function(_0x340a8b,_0x2f5031){_0x340a8b=_0x340a8b-0x0;let _0x404c6e=a922_0x2f50[_0x340a8b];return _0x404c6e;};const _0x3a269e=a922_0x404c;'use strict';const logger=require('../config/logger')(_0x3a269e('0x4')),util=require(_0x3a269e('0x6')),Sequence=function(){};Sequence[_0x3a269e('0xa')][_0x3a269e('0x2d')]=function(_0x52cc54){const _0x5dd24f=_0x3a269e;this[_0x5dd24f('0xc')]=this[_0x5dd24f('0xc')]?this[_0x5dd24f('0xc')][_0x5dd24f('0x17')](_0x52cc54):_0x52cc54();};const Migration=function(_0x53f16b){const _0x442f7f=_0x3a269e;this[_0x442f7f('0x1e')]=_0x53f16b,this['sequence']=new Sequence();};Migration[_0x3a269e('0xa')][_0x3a269e('0x3')]=function(_0x4441f5,_0x48d511,_0x416502){const _0x5c79fc=_0x3a269e,_0x5236fb=this;this[_0x5c79fc('0x31')][_0x5c79fc('0x2d')](function(){const _0x35cb17=_0x5c79fc;return _0x5236fb[_0x35cb17('0x1e')]['changeColumn'](_0x4441f5,_0x48d511,_0x416502)[_0x35cb17('0xe')](function(){const _0x4938e2=_0x35cb17;logger['info'](_0x4938e2('0x34'),_0x48d511,_0x4441f5);})[_0x35cb17('0x33')](function(_0x2872dd){const _0x452edd=_0x35cb17;logger[_0x452edd('0x14')](JSON[_0x452edd('0x2a')](_0x2872dd));});});},Migration[_0x3a269e('0xa')]['addColumn']=function(_0xe1d5b8,_0x572467,_0x6ccc19){const _0x2e5397=_0x3a269e,_0x47ef0e=this;this[_0x2e5397('0x31')][_0x2e5397('0x2d')](function(){const _0x35976c=_0x2e5397;return _0x47ef0e['queryInterface']['addColumn'](_0xe1d5b8,_0x572467,_0x6ccc19)[_0x35976c('0xe')](function(){const _0x52fd2d=_0x35976c;logger['info'](_0x52fd2d('0x1b'),_0x572467,_0xe1d5b8);})[_0x35976c('0x33')](function(_0x1ee38a){const _0x256358=_0x35976c;logger[_0x256358('0x14')](JSON[_0x256358('0x2a')](_0x1ee38a));});});},Migration[_0x3a269e('0xa')][_0x3a269e('0xd')]=function(_0xd2ebfa){const _0x1d82c6=_0x3a269e,_0x4f68b2=this;this[_0x1d82c6('0x31')][_0x1d82c6('0x2d')](function(){const _0x33b4f8=_0x1d82c6;return _0x4f68b2[_0x33b4f8('0x1e')][_0x33b4f8('0xd')](_0xd2ebfa,{'force':!![]})[_0x33b4f8('0xe')](function(){const _0x1017b8=_0x33b4f8;logger['info'](_0x1017b8('0x28'),_0xd2ebfa);})['catch'](function(_0x217042){const _0x196104=_0x33b4f8;logger[_0x196104('0x14')](JSON[_0x196104('0x2a')](_0x217042));});});},Migration[_0x3a269e('0xa')][_0x3a269e('0x13')]=function(_0x9e0a57,_0x31ff54,_0x16f658){const _0x3ebcff=_0x3a269e,_0x5c7837=this;this[_0x3ebcff('0x31')]['enqueue'](function(){const _0x363564=_0x3ebcff;return _0x5c7837[_0x363564('0x1e')][_0x363564('0x13')](_0x9e0a57,_0x31ff54,{'indexName':_0x16f658})[_0x363564('0xe')](function(){const _0x2aac8d=_0x363564;logger[_0x2aac8d('0x14')]('addIndex\x20%s\x20%s\x20%s',_0x9e0a57,_0x31ff54[_0x2aac8d('0x32')](','),_0x16f658);})[_0x363564('0x33')](function(_0x2bce03){const _0x49d1b6=_0x363564;logger[_0x49d1b6('0x14')](JSON['stringify'](_0x2bce03));});});},Migration[_0x3a269e('0xa')][_0x3a269e('0x12')]=function(_0x4224b3){const _0x556763=_0x3a269e,_0x5adff4=this;this[_0x556763('0x31')][_0x556763('0x2d')](function(){const _0x5aa2f1=_0x556763;return _0x5adff4[_0x5aa2f1('0x1e')]['sequelize']['query'](_0x4224b3)[_0x5aa2f1('0xe')](function(){const _0x45c0eb=_0x5aa2f1;logger[_0x45c0eb('0x14')](_0x45c0eb('0x24'),_0x4224b3);})[_0x5aa2f1('0x33')](function(_0x4f881){const _0x2fe898=_0x5aa2f1;logger[_0x2fe898('0x14')](JSON[_0x2fe898('0x2a')](_0x4f881));});});},Migration[_0x3a269e('0xa')][_0x3a269e('0x1d')]=function(_0x1aa9da,_0x5a9678){const _0x270ed0=_0x3a269e,_0x4090d3=this;this[_0x270ed0('0x31')][_0x270ed0('0x2d')](function(){const _0x7e1ee9=_0x270ed0;return _0x4090d3[_0x7e1ee9('0x1e')]['removeColumn'](_0x1aa9da,_0x5a9678)[_0x7e1ee9('0xe')](function(){const _0x59ee12=_0x7e1ee9;logger['info'](_0x59ee12('0x2c'),_0x5a9678,_0x1aa9da);})[_0x7e1ee9('0x33')](function(_0x6f6dab){const _0x4b105c=_0x7e1ee9;logger[_0x4b105c('0x14')](util[_0x4b105c('0x21')](_0x6f6dab,{'showHidden':![],'depth':null}));});});},Migration[_0x3a269e('0xa')][_0x3a269e('0x1c')]=function(_0x180a76){const _0x5770be=_0x3a269e;this[_0x5770be('0x31')]['enqueue'](function(){return _0x180a76();});},module[_0x3a269e('0x1')]={'up':function(_0x131167,_0x22376d){return new Promise(function(_0x41467f){const _0x205427=a922_0x404c,_0x19d527=new Migration(_0x131167);_0x19d527[_0x205427('0x27')](_0x205427('0x10'),_0x205427('0x11'),{'type':_0x22376d[_0x205427('0x23')],'defaultValue':_0x205427('0x9')}),_0x19d527['addColumn'](_0x205427('0x19'),_0x205427('0x35'),{'type':_0x22376d['DATE']}),_0x19d527[_0x205427('0x27')](_0x205427('0x29'),'readAt',{'type':_0x22376d[_0x205427('0x2b')]}),_0x19d527[_0x205427('0x27')]('fax_interactions',_0x205427('0x35'),{'type':_0x22376d[_0x205427('0x2b')]}),_0x19d527[_0x205427('0x27')](_0x205427('0x18'),_0x205427('0x25'),{'type':_0x22376d[_0x205427('0x2b')]}),_0x19d527[_0x205427('0x27')](_0x205427('0x1a'),_0x205427('0x35'),{'type':_0x22376d[_0x205427('0x2b')]}),_0x19d527['addColumn'](_0x205427('0x1a'),_0x205427('0xb'),{'type':_0x22376d[_0x205427('0x23')]}),_0x19d527['addColumn'](_0x205427('0x1a'),_0x205427('0x2e'),{'type':_0x22376d[_0x205427('0x23')]}),_0x19d527[_0x205427('0x27')](_0x205427('0x15'),_0x205427('0x25'),{'type':_0x22376d[_0x205427('0x2b')]}),_0x19d527[_0x205427('0x27')]('mail_interactions','read1stAt',{'type':_0x22376d[_0x205427('0x2b')]}),_0x19d527['addColumn']('mail_interactions',_0x205427('0x1f'),{'type':_0x22376d[_0x205427('0x23')](0x3c)}),_0x19d527[_0x205427('0x27')]('mail_interactions','substatusAt',{'type':_0x22376d[_0x205427('0x2b')]}),_0x19d527[_0x205427('0x27')](_0x205427('0x7'),_0x205427('0x25'),{'type':_0x22376d['DATE']}),_0x19d527[_0x205427('0x27')]('sms_interactions',_0x205427('0x35'),{'type':_0x22376d[_0x205427('0x2b')]}),_0x19d527[_0x205427('0x27')]('sms_messages',_0x205427('0x25'),{'type':_0x22376d[_0x205427('0x2b')]}),_0x19d527[_0x205427('0x3')]('chat_dispositions',_0x205427('0x2f'),{'type':_0x22376d[_0x205427('0x23')],'unique':_0x205427('0x5'),'allowNull':![]}),_0x19d527[_0x205427('0x3')]('fax_dispositions','name',{'type':_0x22376d[_0x205427('0x23')],'unique':_0x205427('0x5'),'allowNull':![]}),_0x19d527[_0x205427('0x3')](_0x205427('0xf'),_0x205427('0x2f'),{'type':_0x22376d[_0x205427('0x23')],'unique':_0x205427('0x5'),'allowNull':![]}),_0x19d527[_0x205427('0x3')](_0x205427('0x20'),_0x205427('0x2f'),{'type':_0x22376d[_0x205427('0x23')],'unique':_0x205427('0x5'),'allowNull':![]}),_0x19d527[_0x205427('0x3')](_0x205427('0x0'),_0x205427('0x2f'),{'type':_0x22376d['STRING'],'unique':'nameAndAccount','allowNull':![]}),_0x19d527[_0x205427('0x12')](_0x205427('0x8')),_0x19d527[_0x205427('0x12')](_0x205427('0x30')),_0x19d527[_0x205427('0x12')](_0x205427('0x22')),_0x19d527[_0x205427('0x12')](_0x205427('0x16')),_0x19d527[_0x205427('0x12')]('ALTER\x20TABLE\x20voice_dispositions\x20add\x20UNIQUE\x20INDEX\x20nameAndAccount\x20(name,\x20ListId)'),_0x19d527[_0x205427('0x3')](_0x205427('0x26'),_0x205427('0x2f'),{'type':_0x22376d[_0x205427('0x23')],'unique':_0x205427('0x5'),'allowNull':![]}),_0x19d527['query'](_0x205427('0x2')),_0x19d527[_0x205427('0x12')]('ALTER\x20TABLE\x20mail_dispositions\x20add\x20UNIQUE\x20INDEX\x20nameAndAccount\x20(name,\x20MailAccountId)'),_0x19d527[_0x205427('0x1c')](_0x41467f);});},'down':function(){}}; \ No newline at end of file +const a1084_0x36fe=['dropTable','exports','STRING','addIndex','then','mail_dispositions','inspect','read1stAt','../config/logger','join','ALTER\x20TABLE\x20mail_dispositions\x20add\x20UNIQUE\x20INDEX\x20nameAndAccount\x20(name,\x20MailAccountId)','readAt','addColumn','mail_interactions','migration','prototype','openchannel_messages','ALTER\x20TABLE\x20voice_dispositions\x20add\x20UNIQUE\x20INDEX\x20nameAndAccount\x20(name,\x20ListId)','threadId','substatusAt','sms_interactions','ALTER\x20TABLE\x20sms_dispositions\x20add\x20UNIQUE\x20INDEX\x20nameAndAccount\x20(name,\x20SmsAccountId)','DATE','ALTER\x20TABLE\x20fax_dispositions\x20add\x20UNIQUE\x20INDEX\x20nameAndAccount\x20(name,\x20FaxAccountId)','ALTER\x20TABLE\x20openchannel_dispositions\x20add\x20UNIQUE\x20INDEX\x20nameAndAccount\x20(name,\x20OpenchannelAccountId)','sms_messages','query','catch','sms_dispositions','final','fax_interactions','name','enqueue','table\x20dropped\x20%s','Do\x20you\x20want\x20to\x20close\x20the\x20interaction?','openchannel_interactions','addIndex\x20%s\x20%s\x20%s','mail_messages','closingQuestion','info','removeColumn','Added\x20column\x20%s\x20to\x20%s','stringify','nameAndAccount','queryInterface','fax_dispositions','ALTER\x20TABLE\x20mail_dispositions\x20DROP\x20INDEX\x20name','sequelize','sequence','changeColumn','finally'];(function(_0x5bbdcf,_0x2793d0){const _0x36fea3=function(_0x8c5834){while(--_0x8c5834){_0x5bbdcf['push'](_0x5bbdcf['shift']());}};_0x36fea3(++_0x2793d0);}(a1084_0x36fe,0x13a));const a1084_0x8c58=function(_0x5bbdcf,_0x2793d0){_0x5bbdcf=_0x5bbdcf-0x68;let _0x36fea3=a1084_0x36fe[_0x5bbdcf];return _0x36fea3;};const a1084_0x52f447=a1084_0x8c58;'use strict';const logger=require(a1084_0x52f447(0x68))(a1084_0x52f447(0x6e)),util=require('util'),Sequence=function(){};Sequence[a1084_0x52f447(0x6f)][a1084_0x52f447(0x80)]=function(_0x1ca0da){const _0x4a4c84=a1084_0x52f447;this['tail']=this['tail']?this['tail'][_0x4a4c84(0x92)](_0x1ca0da):_0x1ca0da();};const Migration=function(_0x56fdfe){const _0x83f8c8=a1084_0x52f447;this['queryInterface']=_0x56fdfe,this[_0x83f8c8(0x90)]=new Sequence();};Migration['prototype']['changeColumn']=function(_0x2fb391,_0x25a67b,_0xc87ef){const _0x16cd24=a1084_0x52f447,_0x585fd0=this;this[_0x16cd24(0x90)][_0x16cd24(0x80)](function(){const _0x33aa66=_0x16cd24;return _0x585fd0[_0x33aa66(0x8c)][_0x33aa66(0x91)](_0x2fb391,_0x25a67b,_0xc87ef)[_0x33aa66(0x97)](function(){const _0x166768=_0x33aa66;logger[_0x166768(0x87)]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x25a67b,_0x2fb391);})['catch'](function(_0xed7a9a){const _0xa4d322=_0x33aa66;logger[_0xa4d322(0x87)](JSON[_0xa4d322(0x8a)](_0xed7a9a));});});},Migration[a1084_0x52f447(0x6f)][a1084_0x52f447(0x6c)]=function(_0x5c55b9,_0x5cb480,_0x564a67){const _0x23469c=a1084_0x52f447,_0x45a910=this;this[_0x23469c(0x90)]['enqueue'](function(){const _0xc73e3a=_0x23469c;return _0x45a910['queryInterface'][_0xc73e3a(0x6c)](_0x5c55b9,_0x5cb480,_0x564a67)[_0xc73e3a(0x97)](function(){const _0x2e4628=_0xc73e3a;logger['info'](_0x2e4628(0x89),_0x5cb480,_0x5c55b9);})[_0xc73e3a(0x7b)](function(_0x17114b){const _0x555882=_0xc73e3a;logger[_0x555882(0x87)](JSON[_0x555882(0x8a)](_0x17114b));});});},Migration[a1084_0x52f447(0x6f)][a1084_0x52f447(0x93)]=function(_0x3243e8){const _0x3910e2=a1084_0x52f447,_0x27faf8=this;this['sequence'][_0x3910e2(0x80)](function(){const _0x2308c3=_0x3910e2;return _0x27faf8['queryInterface'][_0x2308c3(0x93)](_0x3243e8,{'force':!![]})[_0x2308c3(0x97)](function(){const _0x301745=_0x2308c3;logger[_0x301745(0x87)](_0x301745(0x81),_0x3243e8);})[_0x2308c3(0x7b)](function(_0x2f1004){const _0x5691d0=_0x2308c3;logger[_0x5691d0(0x87)](JSON[_0x5691d0(0x8a)](_0x2f1004));});});},Migration[a1084_0x52f447(0x6f)][a1084_0x52f447(0x96)]=function(_0xb202e8,_0x52036b,_0x3295d5){const _0x53dca9=a1084_0x52f447,_0x59e606=this;this['sequence'][_0x53dca9(0x80)](function(){const _0x7eaa15=_0x53dca9;return _0x59e606[_0x7eaa15(0x8c)][_0x7eaa15(0x96)](_0xb202e8,_0x52036b,{'indexName':_0x3295d5})[_0x7eaa15(0x97)](function(){const _0x27b0d6=_0x7eaa15;logger[_0x27b0d6(0x87)](_0x27b0d6(0x84),_0xb202e8,_0x52036b[_0x27b0d6(0x69)](','),_0x3295d5);})['catch'](function(_0x1a0f95){const _0x4b12ac=_0x7eaa15;logger[_0x4b12ac(0x87)](JSON[_0x4b12ac(0x8a)](_0x1a0f95));});});},Migration[a1084_0x52f447(0x6f)][a1084_0x52f447(0x7a)]=function(_0x3f63c9){const _0x44f091=a1084_0x52f447,_0x1de2ce=this;this['sequence'][_0x44f091(0x80)](function(){const _0x4f2a90=_0x44f091;return _0x1de2ce[_0x4f2a90(0x8c)][_0x4f2a90(0x8f)][_0x4f2a90(0x7a)](_0x3f63c9)[_0x4f2a90(0x97)](function(){const _0x2c65d5=_0x4f2a90;logger[_0x2c65d5(0x87)]('query\x20%s',_0x3f63c9);})[_0x4f2a90(0x7b)](function(_0x3f7902){const _0x2926c8=_0x4f2a90;logger['info'](JSON[_0x2926c8(0x8a)](_0x3f7902));});});},Migration[a1084_0x52f447(0x6f)][a1084_0x52f447(0x88)]=function(_0xdf79bc,_0x29872f){const _0x4aa45b=a1084_0x52f447,_0x13281a=this;this[_0x4aa45b(0x90)][_0x4aa45b(0x80)](function(){const _0x303302=_0x4aa45b;return _0x13281a[_0x303302(0x8c)]['removeColumn'](_0xdf79bc,_0x29872f)[_0x303302(0x97)](function(){logger['info']('Removed\x20column\x20%s\x20from\x20%s',_0x29872f,_0xdf79bc);})[_0x303302(0x7b)](function(_0x339f98){const _0x546d4b=_0x303302;logger['info'](util[_0x546d4b(0x99)](_0x339f98,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1084_0x52f447(0x7d)]=function(_0x5eac07){const _0x1798d8=a1084_0x52f447;this[_0x1798d8(0x90)][_0x1798d8(0x80)](function(){return _0x5eac07();});},module[a1084_0x52f447(0x94)]={'up':function(_0x27571b,_0x2655e2){return new Promise(function(_0x4d75c9){const _0x50605b=a1084_0x8c58,_0x74af78=new Migration(_0x27571b);_0x74af78[_0x50605b(0x6c)]('chat_websites',_0x50605b(0x86),{'type':_0x2655e2[_0x50605b(0x95)],'defaultValue':_0x50605b(0x82)}),_0x74af78['addColumn']('chat_interactions',_0x50605b(0x9a),{'type':_0x2655e2[_0x50605b(0x76)]}),_0x74af78[_0x50605b(0x6c)]('chat_messages',_0x50605b(0x6b),{'type':_0x2655e2['DATE']}),_0x74af78[_0x50605b(0x6c)](_0x50605b(0x7e),_0x50605b(0x9a),{'type':_0x2655e2[_0x50605b(0x76)]}),_0x74af78[_0x50605b(0x6c)]('fax_messages','readAt',{'type':_0x2655e2['DATE']}),_0x74af78[_0x50605b(0x6c)](_0x50605b(0x83),_0x50605b(0x9a),{'type':_0x2655e2[_0x50605b(0x76)]}),_0x74af78['addColumn'](_0x50605b(0x83),_0x50605b(0x72),{'type':_0x2655e2[_0x50605b(0x95)]}),_0x74af78[_0x50605b(0x6c)](_0x50605b(0x83),'externalUrl',{'type':_0x2655e2['STRING']}),_0x74af78[_0x50605b(0x6c)](_0x50605b(0x70),_0x50605b(0x6b),{'type':_0x2655e2[_0x50605b(0x76)]}),_0x74af78[_0x50605b(0x6c)]('mail_interactions',_0x50605b(0x9a),{'type':_0x2655e2[_0x50605b(0x76)]}),_0x74af78[_0x50605b(0x6c)](_0x50605b(0x6d),'substatus',{'type':_0x2655e2['STRING'](0x3c)}),_0x74af78[_0x50605b(0x6c)](_0x50605b(0x6d),_0x50605b(0x73),{'type':_0x2655e2[_0x50605b(0x76)]}),_0x74af78[_0x50605b(0x6c)](_0x50605b(0x85),_0x50605b(0x6b),{'type':_0x2655e2['DATE']}),_0x74af78[_0x50605b(0x6c)](_0x50605b(0x74),'read1stAt',{'type':_0x2655e2[_0x50605b(0x76)]}),_0x74af78[_0x50605b(0x6c)](_0x50605b(0x79),_0x50605b(0x6b),{'type':_0x2655e2[_0x50605b(0x76)]}),_0x74af78[_0x50605b(0x91)]('chat_dispositions',_0x50605b(0x7f),{'type':_0x2655e2[_0x50605b(0x95)],'unique':_0x50605b(0x8b),'allowNull':![]}),_0x74af78[_0x50605b(0x91)](_0x50605b(0x8d),_0x50605b(0x7f),{'type':_0x2655e2['STRING'],'unique':_0x50605b(0x8b),'allowNull':![]}),_0x74af78[_0x50605b(0x91)]('openchannel_dispositions',_0x50605b(0x7f),{'type':_0x2655e2[_0x50605b(0x95)],'unique':_0x50605b(0x8b),'allowNull':![]}),_0x74af78[_0x50605b(0x91)](_0x50605b(0x7c),'name',{'type':_0x2655e2[_0x50605b(0x95)],'unique':_0x50605b(0x8b),'allowNull':![]}),_0x74af78[_0x50605b(0x91)]('voice_dispositions',_0x50605b(0x7f),{'type':_0x2655e2[_0x50605b(0x95)],'unique':_0x50605b(0x8b),'allowNull':![]}),_0x74af78[_0x50605b(0x7a)]('ALTER\x20TABLE\x20chat_dispositions\x20add\x20UNIQUE\x20INDEX\x20nameAndAccount\x20(name,\x20ChatAccountId)'),_0x74af78[_0x50605b(0x7a)](_0x50605b(0x77)),_0x74af78[_0x50605b(0x7a)](_0x50605b(0x78)),_0x74af78[_0x50605b(0x7a)](_0x50605b(0x75)),_0x74af78['query'](_0x50605b(0x71)),_0x74af78[_0x50605b(0x91)](_0x50605b(0x98),_0x50605b(0x7f),{'type':_0x2655e2[_0x50605b(0x95)],'unique':_0x50605b(0x8b),'allowNull':![]}),_0x74af78[_0x50605b(0x7a)](_0x50605b(0x8e)),_0x74af78['query'](_0x50605b(0x6a)),_0x74af78[_0x50605b(0x7d)](_0x4d75c9);});},'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 9c2e14f..12143c4 100644 --- a/server/migrations/2.0.45.js +++ b/server/migrations/2.0.45.js @@ -1 +1 @@ -var a923_0x5541=['exports'];(function(_0x4a4d2a,_0x5541ae){var _0x4911cf=function(_0x30fb83){while(--_0x30fb83){_0x4a4d2a['push'](_0x4a4d2a['shift']());}};_0x4911cf(++_0x5541ae);}(a923_0x5541,0xcb));var a923_0x4911=function(_0x4a4d2a,_0x5541ae){_0x4a4d2a=_0x4a4d2a-0x0;var _0x4911cf=a923_0x5541[_0x4a4d2a];return _0x4911cf;};var _0x823772=a923_0x4911;'use strict';module[_0x823772('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.46.js b/server/migrations/2.0.46.js index b53e793..d723d0a 100644 --- a/server/migrations/2.0.46.js +++ b/server/migrations/2.0.46.js @@ -1 +1 @@ -const a924_0x3c0d=['table\x20dropped\x20%s','Note','UPDATE\x20fax_interactions\x20as\x20t1\x20JOIN\x20cm_contacts\x20AS\x20t2\x20ON\x20t1.ContactId\x20=\x20t2.id\x20SET\x20t1.fax\x20=\x20t2.fax','addColumn','catch','tail','inspect','Added\x20column\x20%s\x20to\x20%s','exports','final','crudPermissions','STRING','chat_websites','showWebBar','stringify','finally','enqueue','addIndex\x20%s\x20%s\x20%s','Removed\x20column\x20%s\x20from\x20%s','changeColumn','../config/logger','info','fax','queryInterface','migration','prototype','then','query\x20%s','fax_interactions','sequence','placeholderMessage','Changed\x20column\x20%s\x20in\x20table\x20%s','removeColumn','users','dropTable','query'];(function(_0x4c9583,_0x3c0d6d){const _0x342591=function(_0xa8eff3){while(--_0xa8eff3){_0x4c9583['push'](_0x4c9583['shift']());}};_0x342591(++_0x3c0d6d);}(a924_0x3c0d,0x74));const a924_0x3425=function(_0x4c9583,_0x3c0d6d){_0x4c9583=_0x4c9583-0x0;let _0x342591=a924_0x3c0d[_0x4c9583];return _0x342591;};const _0x3cfbbb=a924_0x3425;'use strict';const logger=require(_0x3cfbbb('0xc'))(_0x3cfbbb('0x10')),util=require('util'),Sequence=function(){};Sequence['prototype'][_0x3cfbbb('0x8')]=function(_0xa8eff3){const _0x3c647f=_0x3cfbbb;this[_0x3c647f('0x21')]=this[_0x3c647f('0x21')]?this[_0x3c647f('0x21')][_0x3c647f('0x7')](_0xa8eff3):_0xa8eff3();};const Migration=function(_0x1b1278){const _0x292246=_0x3cfbbb;this['queryInterface']=_0x1b1278,this[_0x292246('0x15')]=new Sequence();};Migration[_0x3cfbbb('0x11')][_0x3cfbbb('0xb')]=function(_0x2677af,_0x3d8fff,_0x4f3427){const _0x27fbf2=_0x3cfbbb,_0xf40d1c=this;this[_0x27fbf2('0x15')][_0x27fbf2('0x8')](function(){const _0x1ec1b7=_0x27fbf2;return _0xf40d1c[_0x1ec1b7('0xf')][_0x1ec1b7('0xb')](_0x2677af,_0x3d8fff,_0x4f3427)['then'](function(){const _0xd7e36=_0x1ec1b7;logger[_0xd7e36('0xd')](_0xd7e36('0x17'),_0x3d8fff,_0x2677af);})[_0x1ec1b7('0x20')](function(_0x5a2cd4){const _0x39e475=_0x1ec1b7;logger[_0x39e475('0xd')](JSON[_0x39e475('0x6')](_0x5a2cd4));});});},Migration[_0x3cfbbb('0x11')][_0x3cfbbb('0x1f')]=function(_0x284b49,_0x26e4c2,_0xb762bd){const _0x38447e=_0x3cfbbb,_0x19f72c=this;this[_0x38447e('0x15')][_0x38447e('0x8')](function(){const _0x3f6f9b=_0x38447e;return _0x19f72c[_0x3f6f9b('0xf')][_0x3f6f9b('0x1f')](_0x284b49,_0x26e4c2,_0xb762bd)[_0x3f6f9b('0x12')](function(){const _0x2f184f=_0x3f6f9b;logger[_0x2f184f('0xd')](_0x2f184f('0x23'),_0x26e4c2,_0x284b49);})[_0x3f6f9b('0x20')](function(_0x2c7784){const _0x15c9ab=_0x3f6f9b;logger[_0x15c9ab('0xd')](JSON[_0x15c9ab('0x6')](_0x2c7784));});});},Migration[_0x3cfbbb('0x11')][_0x3cfbbb('0x1a')]=function(_0x267144){const _0x3c9f13=this;this['sequence']['enqueue'](function(){const _0xef9968=a924_0x3425;return _0x3c9f13[_0xef9968('0xf')][_0xef9968('0x1a')](_0x267144,{'force':!![]})[_0xef9968('0x12')](function(){const _0x41068e=_0xef9968;logger[_0x41068e('0xd')](_0x41068e('0x1c'),_0x267144);})[_0xef9968('0x20')](function(_0xe7b314){const _0x29111b=_0xef9968;logger[_0x29111b('0xd')](JSON[_0x29111b('0x6')](_0xe7b314));});});},Migration[_0x3cfbbb('0x11')]['addIndex']=function(_0x1b7deb,_0x291cd8,_0x3bc24a){const _0x2100bc=_0x3cfbbb,_0x1f4c8b=this;this['sequence'][_0x2100bc('0x8')](function(){const _0x4c80a2=_0x2100bc;return _0x1f4c8b[_0x4c80a2('0xf')]['addIndex'](_0x1b7deb,_0x291cd8,{'indexName':_0x3bc24a})['then'](function(){const _0x51697e=_0x4c80a2;logger[_0x51697e('0xd')](_0x51697e('0x9'),_0x1b7deb,_0x291cd8['join'](','),_0x3bc24a);})['catch'](function(_0x51e87c){const _0x23e809=_0x4c80a2;logger['info'](JSON[_0x23e809('0x6')](_0x51e87c));});});},Migration[_0x3cfbbb('0x11')][_0x3cfbbb('0x1b')]=function(_0x33909f){const _0x24c8c5=this;this['sequence']['enqueue'](function(){const _0x5c57e9=a924_0x3425;return _0x24c8c5['queryInterface']['sequelize'][_0x5c57e9('0x1b')](_0x33909f)[_0x5c57e9('0x12')](function(){const _0x405737=_0x5c57e9;logger['info'](_0x405737('0x13'),_0x33909f);})[_0x5c57e9('0x20')](function(_0x484e89){const _0x254cd4=_0x5c57e9;logger[_0x254cd4('0xd')](JSON[_0x254cd4('0x6')](_0x484e89));});});},Migration[_0x3cfbbb('0x11')][_0x3cfbbb('0x18')]=function(_0x75ac82,_0x32367e){const _0x149886=_0x3cfbbb,_0x1a8113=this;this[_0x149886('0x15')]['enqueue'](function(){const _0x165354=_0x149886;return _0x1a8113[_0x165354('0xf')][_0x165354('0x18')](_0x75ac82,_0x32367e)['then'](function(){const _0x19d1fd=_0x165354;logger[_0x19d1fd('0xd')](_0x19d1fd('0xa'),_0x32367e,_0x75ac82);})[_0x165354('0x20')](function(_0x38a409){const _0x34d9a1=_0x165354;logger[_0x34d9a1('0xd')](util[_0x34d9a1('0x22')](_0x38a409,{'showHidden':![],'depth':null}));});});},Migration[_0x3cfbbb('0x11')][_0x3cfbbb('0x1')]=function(_0x2f6c98){const _0x1bdd0c=_0x3cfbbb;this[_0x1bdd0c('0x15')]['enqueue'](function(){return _0x2f6c98();});},module[_0x3cfbbb('0x0')]={'up':function(_0x1490ef,_0x3b3f4b){return new Promise(function(_0x17d974){const _0x5534db=a924_0x3425,_0x4301d3=new Migration(_0x1490ef);_0x4301d3[_0x5534db('0xb')](_0x5534db('0x19'),_0x5534db('0x5'),{'type':_0x3b3f4b['INTEGER'],'defaultValue':0x0}),_0x4301d3['query']('UPDATE\x20users\x20SET\x20permissions=\x27101,102,103,104,105,106,107,108,109,100\x27\x20WHERE\x20role=\x27agent\x27\x20AND\x20(permissions\x20IS\x20NULL\x20OR\x20permissions\x20=\x20\x27\x27)'),_0x4301d3[_0x5534db('0x1f')](_0x5534db('0x19'),_0x5534db('0x2'),{'type':_0x3b3f4b['INTEGER'],'defaultValue':0x0}),_0x4301d3['addColumn'](_0x5534db('0x4'),'noteTitle',{'type':_0x3b3f4b['STRING'],'defaultValue':_0x5534db('0x1d')}),_0x4301d3[_0x5534db('0x1f')](_0x5534db('0x4'),_0x5534db('0x16'),{'type':_0x3b3f4b[_0x5534db('0x3')],'defaultValue':'Type\x20a\x20message'}),_0x4301d3[_0x5534db('0x1f')](_0x5534db('0x14'),_0x5534db('0xe'),{'type':_0x3b3f4b[_0x5534db('0x3')]}),_0x4301d3['query'](_0x5534db('0x1e')),_0x4301d3[_0x5534db('0x1')](_0x17d974);});},'down':function(){}}; \ No newline at end of file +const a1086_0x3b2a=['sequelize','Changed\x20column\x20%s\x20in\x20table\x20%s','removeColumn','Note','join','INTEGER','addIndex\x20%s\x20%s\x20%s','tail','dropTable','finally','chat_websites','sequence','query','UPDATE\x20users\x20SET\x20permissions=\x27101,102,103,104,105,106,107,108,109,100\x27\x20WHERE\x20role=\x27agent\x27\x20AND\x20(permissions\x20IS\x20NULL\x20OR\x20permissions\x20=\x20\x27\x27)','STRING','then','catch','addColumn','noteTitle','UPDATE\x20fax_interactions\x20as\x20t1\x20JOIN\x20cm_contacts\x20AS\x20t2\x20ON\x20t1.ContactId\x20=\x20t2.id\x20SET\x20t1.fax\x20=\x20t2.fax','Added\x20column\x20%s\x20to\x20%s','exports','placeholderMessage','enqueue','Removed\x20column\x20%s\x20from\x20%s','prototype','stringify','showWebBar','changeColumn','addIndex','final','info','queryInterface','Type\x20a\x20message'];(function(_0x57be3e,_0x441f3c){const _0x3b2a68=function(_0x4ba5ca){while(--_0x4ba5ca){_0x57be3e['push'](_0x57be3e['shift']());}};_0x3b2a68(++_0x441f3c);}(a1086_0x3b2a,0x182));const a1086_0x4ba5=function(_0x57be3e,_0x441f3c){_0x57be3e=_0x57be3e-0x10f;let _0x3b2a68=a1086_0x3b2a[_0x57be3e];return _0x3b2a68;};const a1086_0x226ca5=a1086_0x4ba5;'use strict';const logger=require('../config/logger')('migration'),util=require('util'),Sequence=function(){};Sequence[a1086_0x226ca5(0x11c)][a1086_0x226ca5(0x11a)]=function(_0x34d975){const _0x92ce52=a1086_0x226ca5;this[_0x92ce52(0x12c)]=this[_0x92ce52(0x12c)]?this[_0x92ce52(0x12c)][_0x92ce52(0x12e)](_0x34d975):_0x34d975();};const Migration=function(_0xfdef78){const _0x45766f=a1086_0x226ca5;this[_0x45766f(0x123)]=_0xfdef78,this['sequence']=new Sequence();};Migration[a1086_0x226ca5(0x11c)][a1086_0x226ca5(0x11f)]=function(_0x2fa275,_0x588073,_0xa90be3){const _0x359e2e=a1086_0x226ca5,_0x3db05c=this;this[_0x359e2e(0x130)][_0x359e2e(0x11a)](function(){const _0x13d269=_0x359e2e;return _0x3db05c[_0x13d269(0x123)]['changeColumn'](_0x2fa275,_0x588073,_0xa90be3)[_0x13d269(0x112)](function(){const _0x1d9d93=_0x13d269;logger[_0x1d9d93(0x122)](_0x1d9d93(0x126),_0x588073,_0x2fa275);})[_0x13d269(0x113)](function(_0x6310f0){const _0x414359=_0x13d269;logger[_0x414359(0x122)](JSON[_0x414359(0x11d)](_0x6310f0));});});},Migration[a1086_0x226ca5(0x11c)]['addColumn']=function(_0x306d30,_0x1e8ac6,_0x2076ce){const _0x53c9ad=a1086_0x226ca5,_0x446a83=this;this[_0x53c9ad(0x130)][_0x53c9ad(0x11a)](function(){const _0x3ca041=_0x53c9ad;return _0x446a83[_0x3ca041(0x123)][_0x3ca041(0x114)](_0x306d30,_0x1e8ac6,_0x2076ce)[_0x3ca041(0x112)](function(){const _0x2d873d=_0x3ca041;logger[_0x2d873d(0x122)](_0x2d873d(0x117),_0x1e8ac6,_0x306d30);})[_0x3ca041(0x113)](function(_0x307bb0){const _0x5ae70a=_0x3ca041;logger[_0x5ae70a(0x122)](JSON[_0x5ae70a(0x11d)](_0x307bb0));});});},Migration[a1086_0x226ca5(0x11c)]['dropTable']=function(_0x559907){const _0x52002d=a1086_0x226ca5,_0x595c4e=this;this[_0x52002d(0x130)][_0x52002d(0x11a)](function(){const _0x2c4ecc=_0x52002d;return _0x595c4e[_0x2c4ecc(0x123)][_0x2c4ecc(0x12d)](_0x559907,{'force':!![]})['then'](function(){logger['info']('table\x20dropped\x20%s',_0x559907);})[_0x2c4ecc(0x113)](function(_0x33bf0e){const _0x3799af=_0x2c4ecc;logger['info'](JSON[_0x3799af(0x11d)](_0x33bf0e));});});},Migration[a1086_0x226ca5(0x11c)][a1086_0x226ca5(0x120)]=function(_0x18fd5f,_0x3f8047,_0x1a7def){const _0x63de90=this;this['sequence']['enqueue'](function(){const _0x5b7912=a1086_0x4ba5;return _0x63de90[_0x5b7912(0x123)][_0x5b7912(0x120)](_0x18fd5f,_0x3f8047,{'indexName':_0x1a7def})['then'](function(){const _0x812831=_0x5b7912;logger['info'](_0x812831(0x12b),_0x18fd5f,_0x3f8047[_0x812831(0x129)](','),_0x1a7def);})[_0x5b7912(0x113)](function(_0x125b69){const _0x5c724b=_0x5b7912;logger['info'](JSON[_0x5c724b(0x11d)](_0x125b69));});});},Migration[a1086_0x226ca5(0x11c)]['query']=function(_0x4dc288){const _0x33b5cd=a1086_0x226ca5,_0x1cbf90=this;this[_0x33b5cd(0x130)]['enqueue'](function(){const _0x4a91ed=_0x33b5cd;return _0x1cbf90[_0x4a91ed(0x123)][_0x4a91ed(0x125)][_0x4a91ed(0x10f)](_0x4dc288)[_0x4a91ed(0x112)](function(){const _0x5345f3=_0x4a91ed;logger[_0x5345f3(0x122)]('query\x20%s',_0x4dc288);})['catch'](function(_0x179184){const _0x540de0=_0x4a91ed;logger[_0x540de0(0x122)](JSON['stringify'](_0x179184));});});},Migration[a1086_0x226ca5(0x11c)]['removeColumn']=function(_0x510e5c,_0x431abc){const _0x2e673b=a1086_0x226ca5,_0x1e9a9a=this;this['sequence'][_0x2e673b(0x11a)](function(){const _0x1f7598=_0x2e673b;return _0x1e9a9a['queryInterface'][_0x1f7598(0x127)](_0x510e5c,_0x431abc)[_0x1f7598(0x112)](function(){const _0x6ca21d=_0x1f7598;logger['info'](_0x6ca21d(0x11b),_0x431abc,_0x510e5c);})[_0x1f7598(0x113)](function(_0x5cde2a){logger['info'](util['inspect'](_0x5cde2a,{'showHidden':![],'depth':null}));});});},Migration[a1086_0x226ca5(0x11c)]['final']=function(_0x5a15af){const _0x4a890e=a1086_0x226ca5;this[_0x4a890e(0x130)][_0x4a890e(0x11a)](function(){return _0x5a15af();});},module[a1086_0x226ca5(0x118)]={'up':function(_0xb419a0,_0x2023ab){return new Promise(function(_0x332e8e){const _0x151973=a1086_0x4ba5,_0xc10679=new Migration(_0xb419a0);_0xc10679[_0x151973(0x11f)]('users',_0x151973(0x11e),{'type':_0x2023ab[_0x151973(0x12a)],'defaultValue':0x0}),_0xc10679[_0x151973(0x10f)](_0x151973(0x110)),_0xc10679['addColumn']('users','crudPermissions',{'type':_0x2023ab[_0x151973(0x12a)],'defaultValue':0x0}),_0xc10679['addColumn'](_0x151973(0x12f),_0x151973(0x115),{'type':_0x2023ab['STRING'],'defaultValue':_0x151973(0x128)}),_0xc10679[_0x151973(0x114)]('chat_websites',_0x151973(0x119),{'type':_0x2023ab[_0x151973(0x111)],'defaultValue':_0x151973(0x124)}),_0xc10679['addColumn']('fax_interactions','fax',{'type':_0x2023ab[_0x151973(0x111)]}),_0xc10679[_0x151973(0x10f)](_0x151973(0x116)),_0xc10679[_0x151973(0x121)](_0x332e8e);});},'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 3d2cd6f..b28d5be 100644 --- a/server/migrations/2.0.47.js +++ b/server/migrations/2.0.47.js @@ -1 +1 @@ -const a925_0x2321=['sms_messages','exports','DELETE\x20FROM\x20dashboards','Removed\x20column\x20%s\x20from\x20%s','enqueue','query','queryInterface','data','dropTable','catch','final','prototype','tail','addIndex','changeColumn','formSubmitFailureMessage','dashboard_items','secret','stringify','addIndex\x20%s\x20%s\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','chat_websites','migration','Form\x20properly\x20submitted','util','addColumn','info','sequelize','inspect','removeColumn','attrs','then','query\x20%s','sequence','dashboards','title','join','TEXT','STRING','../config/logger'];(function(_0x134abf,_0x2321a3){const _0x5c1953=function(_0x506a6e){while(--_0x506a6e){_0x134abf['push'](_0x134abf['shift']());}};_0x5c1953(++_0x2321a3);}(a925_0x2321,0xdf));const a925_0x5c19=function(_0x134abf,_0x2321a3){_0x134abf=_0x134abf-0x0;let _0x5c1953=a925_0x2321[_0x134abf];return _0x5c1953;};const _0x27a7fa=a925_0x5c19;'use strict';const logger=require(_0x27a7fa('0x10'))(_0x27a7fa('0x27')),util=require(_0x27a7fa('0x1')),Sequence=function(){};Sequence[_0x27a7fa('0x1c')]['enqueue']=function(_0x506a6e){const _0xc7fc8b=_0x27a7fa;this['tail']=this[_0xc7fc8b('0x1d')]?this[_0xc7fc8b('0x1d')]['finally'](_0x506a6e):_0x506a6e();};const Migration=function(_0x16ac9c){const _0x236672=_0x27a7fa;this['queryInterface']=_0x16ac9c,this[_0x236672('0xa')]=new Sequence();};Migration[_0x27a7fa('0x1c')][_0x27a7fa('0x1f')]=function(_0x2ec64b,_0x2adc85,_0x4961a0){const _0x1293cb=_0x27a7fa,_0x2f462f=this;this[_0x1293cb('0xa')][_0x1293cb('0x15')](function(){const _0x561f5a=_0x1293cb;return _0x2f462f['queryInterface'][_0x561f5a('0x1f')](_0x2ec64b,_0x2adc85,_0x4961a0)[_0x561f5a('0x8')](function(){const _0x5600f1=_0x561f5a;logger[_0x5600f1('0x3')](_0x5600f1('0x25'),_0x2adc85,_0x2ec64b);})[_0x561f5a('0x1a')](function(_0x461dad){const _0x4fcbfc=_0x561f5a;logger[_0x4fcbfc('0x3')](JSON[_0x4fcbfc('0x23')](_0x461dad));});});},Migration[_0x27a7fa('0x1c')][_0x27a7fa('0x2')]=function(_0x4ca34c,_0xbf9381,_0x5d8d7d){const _0x36e8f3=_0x27a7fa,_0x25e8ea=this;this['sequence'][_0x36e8f3('0x15')](function(){const _0x5e2b44=_0x36e8f3;return _0x25e8ea[_0x5e2b44('0x17')][_0x5e2b44('0x2')](_0x4ca34c,_0xbf9381,_0x5d8d7d)[_0x5e2b44('0x8')](function(){const _0x5f4972=_0x5e2b44;logger[_0x5f4972('0x3')]('Added\x20column\x20%s\x20to\x20%s',_0xbf9381,_0x4ca34c);})[_0x5e2b44('0x1a')](function(_0x4446c0){const _0x36eec7=_0x5e2b44;logger[_0x36eec7('0x3')](JSON['stringify'](_0x4446c0));});});},Migration[_0x27a7fa('0x1c')][_0x27a7fa('0x19')]=function(_0x216359){const _0x4766b1=_0x27a7fa,_0x5275e1=this;this['sequence'][_0x4766b1('0x15')](function(){const _0xf6e0b4=_0x4766b1;return _0x5275e1[_0xf6e0b4('0x17')][_0xf6e0b4('0x19')](_0x216359,{'force':!![]})[_0xf6e0b4('0x8')](function(){logger['info']('table\x20dropped\x20%s',_0x216359);})['catch'](function(_0xc0d7f4){const _0x3c9230=_0xf6e0b4;logger[_0x3c9230('0x3')](JSON['stringify'](_0xc0d7f4));});});},Migration[_0x27a7fa('0x1c')][_0x27a7fa('0x1e')]=function(_0x551584,_0x337bee,_0x388fcc){const _0x5903ec=_0x27a7fa,_0x27f402=this;this[_0x5903ec('0xa')][_0x5903ec('0x15')](function(){const _0x53439c=_0x5903ec;return _0x27f402[_0x53439c('0x17')][_0x53439c('0x1e')](_0x551584,_0x337bee,{'indexName':_0x388fcc})[_0x53439c('0x8')](function(){const _0x2342cc=_0x53439c;logger[_0x2342cc('0x3')](_0x2342cc('0x24'),_0x551584,_0x337bee[_0x2342cc('0xd')](','),_0x388fcc);})['catch'](function(_0x53b7ce){const _0x1607da=_0x53439c;logger[_0x1607da('0x3')](JSON['stringify'](_0x53b7ce));});});},Migration[_0x27a7fa('0x1c')][_0x27a7fa('0x16')]=function(_0x17b034){const _0x442648=_0x27a7fa,_0x138fa4=this;this[_0x442648('0xa')][_0x442648('0x15')](function(){const _0x1bb4a1=_0x442648;return _0x138fa4[_0x1bb4a1('0x17')][_0x1bb4a1('0x4')]['query'](_0x17b034)[_0x1bb4a1('0x8')](function(){const _0x4b889f=_0x1bb4a1;logger[_0x4b889f('0x3')](_0x4b889f('0x9'),_0x17b034);})['catch'](function(_0x2388bd){const _0x448e9d=_0x1bb4a1;logger[_0x448e9d('0x3')](JSON[_0x448e9d('0x23')](_0x2388bd));});});},Migration[_0x27a7fa('0x1c')][_0x27a7fa('0x6')]=function(_0x1357c8,_0x5ea42f){const _0x30076f=_0x27a7fa,_0x59277b=this;this[_0x30076f('0xa')]['enqueue'](function(){const _0x4ecfac=_0x30076f;return _0x59277b[_0x4ecfac('0x17')][_0x4ecfac('0x6')](_0x1357c8,_0x5ea42f)[_0x4ecfac('0x8')](function(){const _0x4586cc=_0x4ecfac;logger[_0x4586cc('0x3')](_0x4586cc('0x14'),_0x5ea42f,_0x1357c8);})[_0x4ecfac('0x1a')](function(_0x41c2e7){const _0x4d5d58=_0x4ecfac;logger[_0x4d5d58('0x3')](util[_0x4d5d58('0x5')](_0x41c2e7,{'showHidden':![],'depth':null}));});});},Migration['prototype']['final']=function(_0x2b55c2){this['sequence']['enqueue'](function(){return _0x2b55c2();});},module[_0x27a7fa('0x12')]={'up':function(_0x517e34,_0x5619fa){return new Promise(function(_0x290c97){const _0x34a4c4=a925_0x5c19,_0x1bcac3=new Migration(_0x517e34);_0x1bcac3[_0x34a4c4('0x16')](_0x34a4c4('0x13')),_0x1bcac3['removeColumn'](_0x34a4c4('0xb'),'interval'),_0x1bcac3[_0x34a4c4('0x1f')]('dashboard_items','type',{'type':_0x5619fa['STRING'](0x14),'allowNull':![],'validate':{'len':[0x1,0x14]}}),_0x1bcac3['removeColumn']('dashboard_items',_0x34a4c4('0x16')),_0x1bcac3[_0x34a4c4('0x6')](_0x34a4c4('0x21'),_0x34a4c4('0x18')),_0x1bcac3['addColumn'](_0x34a4c4('0x21'),_0x34a4c4('0xc'),{'type':_0x5619fa[_0x34a4c4('0xf')](0x14),'validate':{'len':[0x0,0x14]}}),_0x1bcac3[_0x34a4c4('0x2')]('dashboard_items',_0x34a4c4('0x7'),{'type':_0x5619fa[_0x34a4c4('0xe')]('long')}),_0x1bcac3[_0x34a4c4('0x2')](_0x34a4c4('0x11'),_0x34a4c4('0x22'),{'type':_0x5619fa['BOOLEAN'],'defaultValue':![]}),_0x1bcac3[_0x34a4c4('0x2')](_0x34a4c4('0x26'),'formSubmitSuccessMessage',{'type':_0x5619fa[_0x34a4c4('0xf')],'defaultValue':_0x34a4c4('0x0')}),_0x1bcac3[_0x34a4c4('0x2')](_0x34a4c4('0x26'),_0x34a4c4('0x20'),{'type':_0x5619fa[_0x34a4c4('0xf')],'defaultValue':'Form\x20submission\x20error'}),_0x1bcac3[_0x34a4c4('0x1b')](_0x290c97);});},'down':function(){}}; \ No newline at end of file +const a1087_0x4590=['migration','changeColumn','tail','queryInterface','attrs','formSubmitFailureMessage','Changed\x20column\x20%s\x20in\x20table\x20%s','chat_websites','sequelize','secret','interval','then','finally','catch','sequence','stringify','Added\x20column\x20%s\x20to\x20%s','../config/logger','Form\x20submission\x20error','info','data','addColumn','query\x20%s','TEXT','STRING','join','removeColumn','util','inspect','dashboard_items','BOOLEAN','formSubmitSuccessMessage','Form\x20properly\x20submitted','dashboards','table\x20dropped\x20%s','Removed\x20column\x20%s\x20from\x20%s','type','sms_messages','query','dropTable','enqueue','prototype','final','long','addIndex'];(function(_0x4d8f1c,_0x315eab){const _0x459081=function(_0x4e6f26){while(--_0x4e6f26){_0x4d8f1c['push'](_0x4d8f1c['shift']());}};_0x459081(++_0x315eab);}(a1087_0x4590,0xe9));const a1087_0x4e6f=function(_0x4d8f1c,_0x315eab){_0x4d8f1c=_0x4d8f1c-0x133;let _0x459081=a1087_0x4590[_0x4d8f1c];return _0x459081;};const a1087_0x5130ae=a1087_0x4e6f;'use strict';const logger=require(a1087_0x5130ae(0x13c))(a1087_0x5130ae(0x158)),util=require(a1087_0x5130ae(0x146)),Sequence=function(){};Sequence[a1087_0x5130ae(0x154)]['enqueue']=function(_0x2fa71c){const _0x1c8428=a1087_0x5130ae;this[_0x1c8428(0x15a)]=this[_0x1c8428(0x15a)]?this[_0x1c8428(0x15a)][_0x1c8428(0x137)](_0x2fa71c):_0x2fa71c();};const Migration=function(_0x130a7a){const _0x4642a1=a1087_0x5130ae;this[_0x4642a1(0x15b)]=_0x130a7a,this[_0x4642a1(0x139)]=new Sequence();};Migration[a1087_0x5130ae(0x154)]['changeColumn']=function(_0x29830d,_0x395494,_0x57e661){const _0x53a3c6=a1087_0x5130ae,_0x13d1f7=this;this[_0x53a3c6(0x139)][_0x53a3c6(0x153)](function(){const _0x271674=_0x53a3c6;return _0x13d1f7['queryInterface'][_0x271674(0x159)](_0x29830d,_0x395494,_0x57e661)[_0x271674(0x136)](function(){const _0x393e66=_0x271674;logger[_0x393e66(0x13e)](_0x393e66(0x15e),_0x395494,_0x29830d);})[_0x271674(0x138)](function(_0x11fdfb){const _0x4d7761=_0x271674;logger[_0x4d7761(0x13e)](JSON['stringify'](_0x11fdfb));});});},Migration[a1087_0x5130ae(0x154)][a1087_0x5130ae(0x140)]=function(_0x47d49f,_0x56a3df,_0x239995){const _0x589532=a1087_0x5130ae,_0x42d742=this;this[_0x589532(0x139)]['enqueue'](function(){const _0xd0bb23=_0x589532;return _0x42d742['queryInterface']['addColumn'](_0x47d49f,_0x56a3df,_0x239995)['then'](function(){const _0x299fd1=a1087_0x4e6f;logger[_0x299fd1(0x13e)](_0x299fd1(0x13b),_0x56a3df,_0x47d49f);})[_0xd0bb23(0x138)](function(_0x3aa90d){const _0x5eae36=_0xd0bb23;logger[_0x5eae36(0x13e)](JSON[_0x5eae36(0x13a)](_0x3aa90d));});});},Migration[a1087_0x5130ae(0x154)][a1087_0x5130ae(0x152)]=function(_0x4231cc){const _0x86e0fc=a1087_0x5130ae,_0x4778e9=this;this[_0x86e0fc(0x139)][_0x86e0fc(0x153)](function(){const _0x407a44=_0x86e0fc;return _0x4778e9[_0x407a44(0x15b)]['dropTable'](_0x4231cc,{'force':!![]})[_0x407a44(0x136)](function(){const _0x1e8c1f=_0x407a44;logger[_0x1e8c1f(0x13e)](_0x1e8c1f(0x14d),_0x4231cc);})[_0x407a44(0x138)](function(_0x816b4c){const _0x22b851=_0x407a44;logger[_0x22b851(0x13e)](JSON[_0x22b851(0x13a)](_0x816b4c));});});},Migration['prototype'][a1087_0x5130ae(0x157)]=function(_0x536329,_0x2904f9,_0x377ff4){const _0x2a9096=a1087_0x5130ae,_0x32e542=this;this[_0x2a9096(0x139)]['enqueue'](function(){const _0x25f854=_0x2a9096;return _0x32e542[_0x25f854(0x15b)][_0x25f854(0x157)](_0x536329,_0x2904f9,{'indexName':_0x377ff4})[_0x25f854(0x136)](function(){const _0x114cac=_0x25f854;logger['info']('addIndex\x20%s\x20%s\x20%s',_0x536329,_0x2904f9[_0x114cac(0x144)](','),_0x377ff4);})[_0x25f854(0x138)](function(_0x1dcaf3){const _0x351a6b=_0x25f854;logger[_0x351a6b(0x13e)](JSON['stringify'](_0x1dcaf3));});});},Migration[a1087_0x5130ae(0x154)][a1087_0x5130ae(0x151)]=function(_0x5c0bd7){const _0x4d3573=a1087_0x5130ae,_0x85c278=this;this[_0x4d3573(0x139)]['enqueue'](function(){const _0x5e36cd=_0x4d3573;return _0x85c278['queryInterface'][_0x5e36cd(0x133)][_0x5e36cd(0x151)](_0x5c0bd7)[_0x5e36cd(0x136)](function(){const _0x41efc4=_0x5e36cd;logger[_0x41efc4(0x13e)](_0x41efc4(0x141),_0x5c0bd7);})[_0x5e36cd(0x138)](function(_0x10e193){const _0x4c3971=_0x5e36cd;logger['info'](JSON[_0x4c3971(0x13a)](_0x10e193));});});},Migration['prototype'][a1087_0x5130ae(0x145)]=function(_0x35d783,_0x485531){const _0x3ef94f=a1087_0x5130ae,_0x14a034=this;this[_0x3ef94f(0x139)][_0x3ef94f(0x153)](function(){const _0x4999bd=_0x3ef94f;return _0x14a034['queryInterface']['removeColumn'](_0x35d783,_0x485531)[_0x4999bd(0x136)](function(){const _0x80a284=_0x4999bd;logger[_0x80a284(0x13e)](_0x80a284(0x14e),_0x485531,_0x35d783);})['catch'](function(_0x32e155){const _0x3ee3a7=_0x4999bd;logger['info'](util[_0x3ee3a7(0x147)](_0x32e155,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1087_0x5130ae(0x155)]=function(_0x293138){const _0xfd1c30=a1087_0x5130ae;this['sequence'][_0xfd1c30(0x153)](function(){return _0x293138();});},module['exports']={'up':function(_0x848c03,_0x59c7bf){return new Promise(function(_0xe4bea){const _0x16c72d=a1087_0x4e6f,_0x2205eb=new Migration(_0x848c03);_0x2205eb['query']('DELETE\x20FROM\x20dashboards'),_0x2205eb['removeColumn'](_0x16c72d(0x14c),_0x16c72d(0x135)),_0x2205eb[_0x16c72d(0x159)](_0x16c72d(0x148),_0x16c72d(0x14f),{'type':_0x59c7bf[_0x16c72d(0x143)](0x14),'allowNull':![],'validate':{'len':[0x1,0x14]}}),_0x2205eb[_0x16c72d(0x145)](_0x16c72d(0x148),_0x16c72d(0x151)),_0x2205eb[_0x16c72d(0x145)]('dashboard_items',_0x16c72d(0x13f)),_0x2205eb[_0x16c72d(0x140)](_0x16c72d(0x148),'title',{'type':_0x59c7bf[_0x16c72d(0x143)](0x14),'validate':{'len':[0x0,0x14]}}),_0x2205eb['addColumn'](_0x16c72d(0x148),_0x16c72d(0x15c),{'type':_0x59c7bf[_0x16c72d(0x142)](_0x16c72d(0x156))}),_0x2205eb[_0x16c72d(0x140)](_0x16c72d(0x150),_0x16c72d(0x134),{'type':_0x59c7bf[_0x16c72d(0x149)],'defaultValue':![]}),_0x2205eb[_0x16c72d(0x140)](_0x16c72d(0x15f),_0x16c72d(0x14a),{'type':_0x59c7bf[_0x16c72d(0x143)],'defaultValue':_0x16c72d(0x14b)}),_0x2205eb['addColumn']('chat_websites',_0x16c72d(0x15d),{'type':_0x59c7bf[_0x16c72d(0x143)],'defaultValue':_0x16c72d(0x13d)}),_0x2205eb[_0x16c72d(0x155)](_0xe4bea);});},'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 3a7e882..0e3c15b 100644 --- a/server/migrations/2.0.48.js +++ b/server/migrations/2.0.48.js @@ -1 +1 @@ -const a926_0x2c57=['stringify','settings','ENUM','queryInterface','turnpassword','tail','prototype','query\x20%s','yes','addColumn','#include\x20\x22stun_xcally.conf\x22\x0a#include\x20\x22turn_xcally.conf\x22\x0a[ice_host_candidates]','STRING','#include\x20\x22stun_xcally.conf\x22','inspect','writeFileSync','sequelize','Removed\x20column\x20%s\x20from\x20%s','mail_interactions','then','/etc/asterisk/res_stun_monitor.conf','info','appendFileSync','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;','util',';\x20STUN\x20server\x20list\x0a','Changed\x20column\x20%s\x20in\x20table\x20%s','/etc/asterisk/stun_xcally.conf','catch','final','exports','out','addIndex','/etc/asterisk/rtp.conf','query','removeColumn','changeColumn','migration','finally','sequence','dropTable','fax_interactions','firstMsgDirection','replace','UPDATE\x20users\x20SET\x20rtcp_mux=\x27yes\x27\x20WHERE\x20showWebBar=2','UPDATE\x20mail_interactions\x20t1,\x20(SELECT\x20MailInteractionId,\x20MIN(id)\x20AS\x20messageid,\x20ANY_VALUE(direction)\x20AS\x20direction\x20FROM\x20mail_messages\x20WHERE\x20MailInteractionId\x20IS\x20NOT\x20NULL\x20GROUP\x20BY\x20MailInteractionId)\x20t2\x20SET\x20t1.firstMsgDirection\x20=\x20t2.direction\x20WHERE\x20t1.id\x20=\x20t2.MailInteractionId;','sms_interactions','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;','/etc/asterisk/turn_xcally.conf','enqueue','turnusername','join','utf8'];(function(_0x38be4e,_0x2c57e6){const _0xeaeb37=function(_0x3a9401){while(--_0x3a9401){_0x38be4e['push'](_0x38be4e['shift']());}};_0xeaeb37(++_0x2c57e6);}(a926_0x2c57,0x111));const a926_0xeaeb=function(_0x38be4e,_0x2c57e6){_0x38be4e=_0x38be4e-0x0;let _0xeaeb37=a926_0x2c57[_0x38be4e];return _0xeaeb37;};const _0x225199=a926_0xeaeb;'use strict';const fs=require('fs'),util=require(_0x225199('0xa')),_=require('lodash'),logger=require('../config/logger')(_0x225199('0x17')),Sequence=function(){};Sequence[_0x225199('0x2d')][_0x225199('0x23')]=function(_0x3a9401){const _0x47a304=_0x225199;this[_0x47a304('0x2c')]=this[_0x47a304('0x2c')]?this[_0x47a304('0x2c')][_0x47a304('0x18')](_0x3a9401):_0x3a9401();};const Migration=function(_0x27c1cc){const _0x1ae31e=_0x225199;this[_0x1ae31e('0x2a')]=_0x27c1cc,this['sequence']=new Sequence();};Migration[_0x225199('0x2d')][_0x225199('0x16')]=function(_0x8c6d04,_0x506e13,_0x2ff1df){const _0xef6d20=_0x225199,_0x48c56f=this;this[_0xef6d20('0x19')]['enqueue'](function(){const _0x2c6b52=_0xef6d20;return _0x48c56f['queryInterface'][_0x2c6b52('0x16')](_0x8c6d04,_0x506e13,_0x2ff1df)[_0x2c6b52('0x5')](function(){const _0x3e4813=_0x2c6b52;logger['info'](_0x3e4813('0xc'),_0x506e13,_0x8c6d04);})['catch'](function(_0x5043b2){const _0x4eaf59=_0x2c6b52;logger[_0x4eaf59('0x7')](JSON[_0x4eaf59('0x27')](_0x5043b2));});});},Migration[_0x225199('0x2d')][_0x225199('0x30')]=function(_0x463863,_0x1c128b,_0x2288f1){const _0x2292d9=_0x225199,_0x32d135=this;this[_0x2292d9('0x19')]['enqueue'](function(){const _0xed04d2=_0x2292d9;return _0x32d135[_0xed04d2('0x2a')][_0xed04d2('0x30')](_0x463863,_0x1c128b,_0x2288f1)[_0xed04d2('0x5')](function(){const _0x414c98=_0xed04d2;logger[_0x414c98('0x7')]('Added\x20column\x20%s\x20to\x20%s',_0x1c128b,_0x463863);})[_0xed04d2('0xe')](function(_0x1cea8f){const _0x28b482=_0xed04d2;logger[_0x28b482('0x7')](JSON['stringify'](_0x1cea8f));});});},Migration[_0x225199('0x2d')]['dropTable']=function(_0x407558){const _0x36300b=_0x225199,_0x18cc89=this;this[_0x36300b('0x19')][_0x36300b('0x23')](function(){const _0x3c2afb=_0x36300b;return _0x18cc89[_0x3c2afb('0x2a')][_0x3c2afb('0x1a')](_0x407558,{'force':!![]})['then'](function(){const _0x32720b=_0x3c2afb;logger[_0x32720b('0x7')]('table\x20dropped\x20%s',_0x407558);})[_0x3c2afb('0xe')](function(_0x45a1dc){const _0x1409a1=_0x3c2afb;logger['info'](JSON[_0x1409a1('0x27')](_0x45a1dc));});});},Migration[_0x225199('0x2d')][_0x225199('0x12')]=function(_0x4fdc05,_0x3795fe,_0x9c7586){const _0x3135d4=_0x225199,_0x5b3ce0=this;this[_0x3135d4('0x19')][_0x3135d4('0x23')](function(){const _0x3d798d=_0x3135d4;return _0x5b3ce0[_0x3d798d('0x2a')][_0x3d798d('0x12')](_0x4fdc05,_0x3795fe,{'indexName':_0x9c7586})[_0x3d798d('0x5')](function(){const _0x4d6cb6=_0x3d798d;logger[_0x4d6cb6('0x7')]('addIndex\x20%s\x20%s\x20%s',_0x4fdc05,_0x3795fe[_0x4d6cb6('0x25')](','),_0x9c7586);})[_0x3d798d('0xe')](function(_0x2d2381){const _0x10ce75=_0x3d798d;logger[_0x10ce75('0x7')](JSON['stringify'](_0x2d2381));});});},Migration[_0x225199('0x2d')][_0x225199('0x14')]=function(_0x17417a){const _0x4ddd8e=_0x225199,_0x489269=this;this[_0x4ddd8e('0x19')][_0x4ddd8e('0x23')](function(){const _0x3327c5=_0x4ddd8e;return _0x489269[_0x3327c5('0x2a')][_0x3327c5('0x2')]['query'](_0x17417a)['then'](function(){const _0x5d1fc0=_0x3327c5;logger[_0x5d1fc0('0x7')](_0x5d1fc0('0x2e'),_0x17417a);})[_0x3327c5('0xe')](function(_0x1075d4){const _0x22b27d=_0x3327c5;logger[_0x22b27d('0x7')](JSON[_0x22b27d('0x27')](_0x1075d4));});});},Migration[_0x225199('0x2d')][_0x225199('0x15')]=function(_0x32b5b0,_0x40e559){const _0x269392=this;this['sequence']['enqueue'](function(){const _0x1f4e0b=a926_0xeaeb;return _0x269392[_0x1f4e0b('0x2a')][_0x1f4e0b('0x15')](_0x32b5b0,_0x40e559)[_0x1f4e0b('0x5')](function(){const _0x1d2457=_0x1f4e0b;logger[_0x1d2457('0x7')](_0x1d2457('0x3'),_0x40e559,_0x32b5b0);})[_0x1f4e0b('0xe')](function(_0x28fb58){const _0x31d03e=_0x1f4e0b;logger['info'](util[_0x31d03e('0x0')](_0x28fb58,{'showHidden':![],'depth':null}));});});},Migration[_0x225199('0x2d')]['final']=function(_0x22cd94){const _0x221e9f=_0x225199;this[_0x221e9f('0x19')][_0x221e9f('0x23')](function(){return _0x22cd94();});},module[_0x225199('0x10')]={'up':function(_0x36f9f2,_0x426d45){return new Promise(function(_0xf3d573){const _0x3a9c0e=a926_0xeaeb,_0x32a559=new Migration(_0x36f9f2);_0x32a559['addColumn'](_0x3a9c0e('0x28'),'turnaddr',{'type':_0x426d45[_0x3a9c0e('0x32')]}),_0x32a559[_0x3a9c0e('0x30')](_0x3a9c0e('0x28'),_0x3a9c0e('0x24'),{'type':_0x426d45[_0x3a9c0e('0x32')]}),_0x32a559['addColumn'](_0x3a9c0e('0x28'),_0x3a9c0e('0x2b'),{'type':_0x426d45[_0x3a9c0e('0x32')]}),_0x32a559['addColumn']('users','rtcp_mux',{'type':_0x426d45[_0x3a9c0e('0x29')](_0x3a9c0e('0x2f'),'no'),'defaultValue':'no'}),_0x32a559['query'](_0x3a9c0e('0x1e')),_0x32a559['addColumn'](_0x3a9c0e('0x20'),_0x3a9c0e('0x1c'),{'type':_0x426d45[_0x3a9c0e('0x29')]('in','out'),'defaultValue':'in','allowNull':![]}),_0x32a559[_0x3a9c0e('0x14')](_0x3a9c0e('0x21')),_0x32a559[_0x3a9c0e('0x30')](_0x3a9c0e('0x4'),_0x3a9c0e('0x1c'),{'type':_0x426d45[_0x3a9c0e('0x29')]('in',_0x3a9c0e('0x11')),'defaultValue':'in','allowNull':![]}),_0x32a559[_0x3a9c0e('0x14')](_0x3a9c0e('0x1f')),_0x32a559[_0x3a9c0e('0x30')](_0x3a9c0e('0x1b'),'firstMsgDirection',{'type':_0x426d45[_0x3a9c0e('0x29')]('in','out'),'defaultValue':'in','allowNull':![]}),_0x32a559[_0x3a9c0e('0x14')](_0x3a9c0e('0x9'));try{fs[_0x3a9c0e('0x1')](_0x3a9c0e('0xd'),_0x3a9c0e('0xb'),{'encoding':'utf8'}),fs[_0x3a9c0e('0x1')](_0x3a9c0e('0x22'),';\x20TURN\x20server\x20list\x0a',{'encoding':_0x3a9c0e('0x26')});let _0x4e98c6=fs['readFileSync']('/etc/asterisk/rtp.conf',{'encoding':_0x3a9c0e('0x26')});_0x4e98c6=_[_0x3a9c0e('0x1d')](_0x4e98c6,'[ice_host_candidates]',_0x3a9c0e('0x31')),fs[_0x3a9c0e('0x1')](_0x3a9c0e('0x13'),_0x4e98c6,{'encoding':_0x3a9c0e('0x26')}),fs[_0x3a9c0e('0x8')](_0x3a9c0e('0x6'),_0x3a9c0e('0x33'),{'encoding':_0x3a9c0e('0x26')});}catch(_0x5b1e68){logger[_0x3a9c0e('0x7')](JSON['stringify'](_0x5b1e68));}_0x32a559[_0x3a9c0e('0xf')](_0xf3d573);});},'down':function(){}}; \ No newline at end of file +const a1088_0x22b7=['/etc/asterisk/turn_xcally.conf','UPDATE\x20mail_interactions\x20t1,\x20(SELECT\x20MailInteractionId,\x20MIN(id)\x20AS\x20messageid,\x20ANY_VALUE(direction)\x20AS\x20direction\x20FROM\x20mail_messages\x20WHERE\x20MailInteractionId\x20IS\x20NOT\x20NULL\x20GROUP\x20BY\x20MailInteractionId)\x20t2\x20SET\x20t1.firstMsgDirection\x20=\x20t2.direction\x20WHERE\x20t1.id\x20=\x20t2.MailInteractionId;','exports','appendFileSync','out','catch','addColumn','final','turnaddr','readFileSync',';\x20STUN\x20server\x20list\x0a','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/stun_xcally.conf','turnusername','info','settings',';\x20TURN\x20server\x20list\x0a','STRING','turnpassword','dropTable','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;','stringify','/etc/asterisk/rtp.conf','changeColumn','#include\x20\x22stun_xcally.conf\x22\x0a#include\x20\x22turn_xcally.conf\x22\x0a[ice_host_candidates]','table\x20dropped\x20%s','then','sequelize','firstMsgDirection','utf8','fax_interactions','[ice_host_candidates]','replace','mail_interactions','finally','yes','prototype','Removed\x20column\x20%s\x20from\x20%s','lodash','queryInterface','enqueue','ENUM','../config/logger','query','/etc/asterisk/res_stun_monitor.conf','sequence','tail','sms_interactions','#include\x20\x22stun_xcally.conf\x22','users','addIndex\x20%s\x20%s\x20%s','writeFileSync'];(function(_0x7e4d04,_0x175351){const _0x22b71a=function(_0x128748){while(--_0x128748){_0x7e4d04['push'](_0x7e4d04['shift']());}};_0x22b71a(++_0x175351);}(a1088_0x22b7,0x1e6));const a1088_0x1287=function(_0x7e4d04,_0x175351){_0x7e4d04=_0x7e4d04-0x194;let _0x22b71a=a1088_0x22b7[_0x7e4d04];return _0x22b71a;};const a1088_0x5bcebc=a1088_0x1287;'use strict';const fs=require('fs'),util=require('util'),_=require(a1088_0x5bcebc(0x1b2)),logger=require(a1088_0x5bcebc(0x1b6))('migration'),Sequence=function(){};Sequence[a1088_0x5bcebc(0x1b0)][a1088_0x5bcebc(0x1b4)]=function(_0x563057){const _0x3dc5c5=a1088_0x5bcebc;this['tail']=this[_0x3dc5c5(0x1ba)]?this['tail'][_0x3dc5c5(0x1ae)](_0x563057):_0x563057();};const Migration=function(_0x2c7824){const _0x539ada=a1088_0x5bcebc;this[_0x539ada(0x1b3)]=_0x2c7824,this[_0x539ada(0x1b9)]=new Sequence();};Migration[a1088_0x5bcebc(0x1b0)][a1088_0x5bcebc(0x1a3)]=function(_0xb405c8,_0x295fcd,_0x38291f){const _0xa2d956=a1088_0x5bcebc,_0x2b0f3f=this;this['sequence'][_0xa2d956(0x1b4)](function(){const _0x564e1e=_0xa2d956;return _0x2b0f3f[_0x564e1e(0x1b3)][_0x564e1e(0x1a3)](_0xb405c8,_0x295fcd,_0x38291f)[_0x564e1e(0x1a6)](function(){logger['info']('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x295fcd,_0xb405c8);})[_0x564e1e(0x1c5)](function(_0x27464a){const _0x566b20=_0x564e1e;logger[_0x566b20(0x19a)](JSON[_0x566b20(0x1a1)](_0x27464a));});});},Migration['prototype'][a1088_0x5bcebc(0x1c6)]=function(_0x475a46,_0x4571ac,_0x29d7d2){const _0x422d0f=a1088_0x5bcebc,_0x575528=this;this[_0x422d0f(0x1b9)][_0x422d0f(0x1b4)](function(){const _0x59b8c8=_0x422d0f;return _0x575528[_0x59b8c8(0x1b3)][_0x59b8c8(0x1c6)](_0x475a46,_0x4571ac,_0x29d7d2)[_0x59b8c8(0x1a6)](function(){const _0x387d40=_0x59b8c8;logger[_0x387d40(0x19a)]('Added\x20column\x20%s\x20to\x20%s',_0x4571ac,_0x475a46);})[_0x59b8c8(0x1c5)](function(_0x38a3a7){const _0x166737=_0x59b8c8;logger['info'](JSON[_0x166737(0x1a1)](_0x38a3a7));});});},Migration[a1088_0x5bcebc(0x1b0)][a1088_0x5bcebc(0x19f)]=function(_0x235e39){const _0x1a5e4c=a1088_0x5bcebc,_0x206143=this;this[_0x1a5e4c(0x1b9)][_0x1a5e4c(0x1b4)](function(){const _0x3d5565=_0x1a5e4c;return _0x206143[_0x3d5565(0x1b3)][_0x3d5565(0x19f)](_0x235e39,{'force':!![]})[_0x3d5565(0x1a6)](function(){const _0x1f6ec8=_0x3d5565;logger[_0x1f6ec8(0x19a)](_0x1f6ec8(0x1a5),_0x235e39);})[_0x3d5565(0x1c5)](function(_0x18ab5a){const _0x649148=_0x3d5565;logger['info'](JSON[_0x649148(0x1a1)](_0x18ab5a));});});},Migration['prototype']['addIndex']=function(_0xda504,_0x117d55,_0x4a2af9){const _0x4c6d0d=a1088_0x5bcebc,_0x4a8efd=this;this[_0x4c6d0d(0x1b9)]['enqueue'](function(){const _0xb42548=_0x4c6d0d;return _0x4a8efd[_0xb42548(0x1b3)]['addIndex'](_0xda504,_0x117d55,{'indexName':_0x4a2af9})[_0xb42548(0x1a6)](function(){const _0xccf09f=_0xb42548;logger[_0xccf09f(0x19a)](_0xccf09f(0x1be),_0xda504,_0x117d55['join'](','),_0x4a2af9);})[_0xb42548(0x1c5)](function(_0x3317f8){const _0x429d60=_0xb42548;logger[_0x429d60(0x19a)](JSON[_0x429d60(0x1a1)](_0x3317f8));});});},Migration[a1088_0x5bcebc(0x1b0)][a1088_0x5bcebc(0x1b7)]=function(_0x1a85f7){const _0x2860bb=a1088_0x5bcebc,_0x55d026=this;this[_0x2860bb(0x1b9)][_0x2860bb(0x1b4)](function(){const _0x300b80=_0x2860bb;return _0x55d026[_0x300b80(0x1b3)][_0x300b80(0x1a7)][_0x300b80(0x1b7)](_0x1a85f7)[_0x300b80(0x1a6)](function(){const _0x49909f=_0x300b80;logger[_0x49909f(0x19a)]('query\x20%s',_0x1a85f7);})['catch'](function(_0x10efb1){const _0x19ff28=_0x300b80;logger[_0x19ff28(0x19a)](JSON['stringify'](_0x10efb1));});});},Migration[a1088_0x5bcebc(0x1b0)]['removeColumn']=function(_0x18205c,_0x340051){const _0x3ea888=a1088_0x5bcebc,_0x32310a=this;this['sequence'][_0x3ea888(0x1b4)](function(){const _0x11a8c7=_0x3ea888;return _0x32310a['queryInterface']['removeColumn'](_0x18205c,_0x340051)[_0x11a8c7(0x1a6)](function(){const _0x15ea9f=_0x11a8c7;logger[_0x15ea9f(0x19a)](_0x15ea9f(0x1b1),_0x340051,_0x18205c);})[_0x11a8c7(0x1c5)](function(_0x4a8691){const _0x3967da=_0x11a8c7;logger[_0x3967da(0x19a)](util['inspect'](_0x4a8691,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1088_0x5bcebc(0x1c7)]=function(_0x5801d2){const _0x5f2be0=a1088_0x5bcebc;this['sequence'][_0x5f2be0(0x1b4)](function(){return _0x5801d2();});},module[a1088_0x5bcebc(0x1c2)]={'up':function(_0x260b1e,_0x1dedae){return new Promise(function(_0x2fcaea){const _0x5d657d=a1088_0x1287,_0x5e0adc=new Migration(_0x260b1e);_0x5e0adc[_0x5d657d(0x1c6)](_0x5d657d(0x19b),_0x5d657d(0x1c8),{'type':_0x1dedae['STRING']}),_0x5e0adc['addColumn'](_0x5d657d(0x19b),_0x5d657d(0x199),{'type':_0x1dedae[_0x5d657d(0x19d)]}),_0x5e0adc['addColumn']('settings',_0x5d657d(0x19e),{'type':_0x1dedae[_0x5d657d(0x19d)]}),_0x5e0adc[_0x5d657d(0x1c6)](_0x5d657d(0x1bd),'rtcp_mux',{'type':_0x1dedae[_0x5d657d(0x1b5)](_0x5d657d(0x1af),'no'),'defaultValue':'no'}),_0x5e0adc['query'](_0x5d657d(0x196)),_0x5e0adc[_0x5d657d(0x1c6)](_0x5d657d(0x1bb),_0x5d657d(0x1a8),{'type':_0x1dedae[_0x5d657d(0x1b5)]('in','out'),'defaultValue':'in','allowNull':![]}),_0x5e0adc['query'](_0x5d657d(0x1a0)),_0x5e0adc[_0x5d657d(0x1c6)](_0x5d657d(0x1ad),'firstMsgDirection',{'type':_0x1dedae[_0x5d657d(0x1b5)]('in',_0x5d657d(0x1c4)),'defaultValue':'in','allowNull':![]}),_0x5e0adc['query'](_0x5d657d(0x1c1)),_0x5e0adc[_0x5d657d(0x1c6)](_0x5d657d(0x1aa),_0x5d657d(0x1a8),{'type':_0x1dedae['ENUM']('in',_0x5d657d(0x1c4)),'defaultValue':'in','allowNull':![]}),_0x5e0adc['query'](_0x5d657d(0x197));try{fs[_0x5d657d(0x1bf)](_0x5d657d(0x198),_0x5d657d(0x195),{'encoding':_0x5d657d(0x1a9)}),fs[_0x5d657d(0x1bf)](_0x5d657d(0x1c0),_0x5d657d(0x19c),{'encoding':_0x5d657d(0x1a9)});let _0x4f6f63=fs[_0x5d657d(0x194)](_0x5d657d(0x1a2),{'encoding':'utf8'});_0x4f6f63=_[_0x5d657d(0x1ac)](_0x4f6f63,_0x5d657d(0x1ab),_0x5d657d(0x1a4)),fs[_0x5d657d(0x1bf)](_0x5d657d(0x1a2),_0x4f6f63,{'encoding':_0x5d657d(0x1a9)}),fs[_0x5d657d(0x1c3)](_0x5d657d(0x1b8),_0x5d657d(0x1bc),{'encoding':_0x5d657d(0x1a9)});}catch(_0x2d0cc8){logger[_0x5d657d(0x19a)](JSON[_0x5d657d(0x1a1)](_0x2d0cc8));}_0x5e0adc[_0x5d657d(0x1c7)](_0x2fcaea);});},'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 97a5d08..cfcfa36 100644 --- a/server/migrations/2.0.49.js +++ b/server/migrations/2.0.49.js @@ -1 +1 @@ -const a927_0x4e95=['enqueue','prototype','deliveryReport','addColumn','offlineMessageBody','migration','table\x20dropped\x20%s','query','DELETE\x20FROM\x20`voice_extensions`\x20WHERE\x20`exten`=\x27xcally-motion-preview\x27\x20AND\x20`priority`=\x204','sequence','dropTable','You\x20received\x20a\x20new\x20offline\x20message\x20from\x20websiteName.\x20Here\x20you\x20can\x20find\x20the\x20details\x20of\x20the\x20request:','exports','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\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());','dialAgiAfterHangupAgent','users','phoneBarOutboundProxy','removeColumn','DATE','sequelize','STRING','final','then','DELETE\x20FROM\x20`voice_extensions`\x20WHERE\x20`exten`=\x27xcally-motion-dialer\x27\x20AND\x20`priority`=\x2011','classic','basic','Changed\x20column\x20%s\x20in\x20table\x20%s','../config/logger','BOOLEAN','DELETE\x20FROM\x20`voice_extensions`\x20WHERE\x20`exten`=\x27xcally-motion-preview\x27\x20AND\x20`priority`=\x205','cm_hopper_final','agiafterat','catch','finally','offlineMessageSubject','senderString','changeColumn','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());','voice_queues','stringify','sms_accounts','Removed\x20column\x20%s\x20from\x20%s','username','info','smsMethod','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-preview\x27,\x20\x275\x27,\x20\x27dial\x27,\x20\x27${XMD-DIALCHANNEL},${XMD-DIALTIMEOUT},${XMD-DIALOPTIONS},${XMD-DIALURL}\x27,\x20\x27system\x27,\x20\x27dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','classic+','util','queryInterface','Added\x20column\x20%s\x20to\x20%s','tail'];(function(_0x5b4320,_0x4e950c){const _0x2ef038=function(_0x2da0b2){while(--_0x2da0b2){_0x5b4320['push'](_0x5b4320['shift']());}};_0x2ef038(++_0x4e950c);}(a927_0x4e95,0x1ad));const a927_0x2ef0=function(_0x5b4320,_0x4e950c){_0x5b4320=_0x5b4320-0x0;let _0x2ef038=a927_0x4e95[_0x5b4320];return _0x2ef038;};const _0x53b102=a927_0x2ef0;'use strict';const util=require(_0x53b102('0x23')),logger=require(_0x53b102('0xf'))(_0x53b102('0x2c')),Sequence=function(){};Sequence[_0x53b102('0x28')]['enqueue']=function(_0x2da0b2){const _0x51cef3=_0x53b102;this[_0x51cef3('0x26')]=this[_0x51cef3('0x26')]?this['tail'][_0x51cef3('0x15')](_0x2da0b2):_0x2da0b2();};const Migration=function(_0x44b401){const _0x391e93=_0x53b102;this[_0x391e93('0x24')]=_0x44b401,this[_0x391e93('0x30')]=new Sequence();};Migration['prototype'][_0x53b102('0x18')]=function(_0x47e82b,_0x15f1ad,_0x15e07a){const _0x14c4ef=_0x53b102,_0x48b956=this;this[_0x14c4ef('0x30')][_0x14c4ef('0x27')](function(){const _0x1badcc=_0x14c4ef;return _0x48b956[_0x1badcc('0x24')][_0x1badcc('0x18')](_0x47e82b,_0x15f1ad,_0x15e07a)[_0x1badcc('0xa')](function(){const _0x4d5472=_0x1badcc;logger[_0x4d5472('0x1f')](_0x4d5472('0xe'),_0x15f1ad,_0x47e82b);})[_0x1badcc('0x14')](function(_0x2f3310){const _0x2840dc=_0x1badcc;logger[_0x2840dc('0x1f')](JSON['stringify'](_0x2f3310));});});},Migration[_0x53b102('0x28')][_0x53b102('0x2a')]=function(_0x38e5fd,_0x1b3be4,_0x1a9d4a){const _0x34cbda=_0x53b102,_0x2c6eaf=this;this['sequence'][_0x34cbda('0x27')](function(){const _0x43c611=_0x34cbda;return _0x2c6eaf[_0x43c611('0x24')][_0x43c611('0x2a')](_0x38e5fd,_0x1b3be4,_0x1a9d4a)[_0x43c611('0xa')](function(){const _0x4fc419=_0x43c611;logger['info'](_0x4fc419('0x25'),_0x1b3be4,_0x38e5fd);})[_0x43c611('0x14')](function(_0x1202e3){const _0x5be1a9=_0x43c611;logger['info'](JSON[_0x5be1a9('0x1b')](_0x1202e3));});});},Migration[_0x53b102('0x28')]['dropTable']=function(_0xf18639){const _0x5617e6=this;this['sequence']['enqueue'](function(){const _0xc9fecf=a927_0x2ef0;return _0x5617e6[_0xc9fecf('0x24')][_0xc9fecf('0x31')](_0xf18639,{'force':!![]})[_0xc9fecf('0xa')](function(){const _0x2aaab8=_0xc9fecf;logger[_0x2aaab8('0x1f')](_0x2aaab8('0x2d'),_0xf18639);})[_0xc9fecf('0x14')](function(_0x3de5e2){const _0xce4b89=_0xc9fecf;logger[_0xce4b89('0x1f')](JSON[_0xce4b89('0x1b')](_0x3de5e2));});});},Migration[_0x53b102('0x28')][_0x53b102('0x0')]=function(_0x6d94e,_0x3b598e,_0x96278d){const _0x468084=_0x53b102,_0x3478e8=this;this['sequence'][_0x468084('0x27')](function(){const _0x2fc6ee=_0x468084;return _0x3478e8[_0x2fc6ee('0x24')][_0x2fc6ee('0x0')](_0x6d94e,_0x3b598e,{'indexName':_0x96278d})[_0x2fc6ee('0xa')](function(){logger['info']('addIndex\x20%s\x20%s\x20%s',_0x6d94e,_0x3b598e['join'](','),_0x96278d);})['catch'](function(_0x46db5e){logger['info'](JSON['stringify'](_0x46db5e));});});},Migration['prototype']['query']=function(_0x3778ff){const _0x2c0044=_0x53b102,_0x1a908d=this;this[_0x2c0044('0x30')][_0x2c0044('0x27')](function(){const _0x5e1613=_0x2c0044;return _0x1a908d[_0x5e1613('0x24')][_0x5e1613('0x7')]['query'](_0x3778ff)['then'](function(){const _0x192a8f=_0x5e1613;logger[_0x192a8f('0x1f')]('query\x20%s',_0x3778ff);})['catch'](function(_0x2922f5){const _0x5e66ed=_0x5e1613;logger['info'](JSON[_0x5e66ed('0x1b')](_0x2922f5));});});},Migration[_0x53b102('0x28')][_0x53b102('0x5')]=function(_0x418632,_0x338f76){const _0x5cd02e=_0x53b102,_0x3d3fef=this;this[_0x5cd02e('0x30')][_0x5cd02e('0x27')](function(){const _0x2d072b=_0x5cd02e;return _0x3d3fef[_0x2d072b('0x24')][_0x2d072b('0x5')](_0x418632,_0x338f76)['then'](function(){const _0x231503=_0x2d072b;logger[_0x231503('0x1f')](_0x231503('0x1d'),_0x338f76,_0x418632);})[_0x2d072b('0x14')](function(_0x2c7591){const _0xed2f4b=_0x2d072b;logger[_0xed2f4b('0x1f')](util['inspect'](_0x2c7591,{'showHidden':![],'depth':null}));});});},Migration[_0x53b102('0x28')][_0x53b102('0x9')]=function(_0x1a6151){const _0x4fd73e=_0x53b102;this[_0x4fd73e('0x30')][_0x4fd73e('0x27')](function(){return _0x1a6151();});},module[_0x53b102('0x33')]={'up':function(_0x5bd516,_0x2cc286){return new Promise(function(_0x3dbf2e){const _0x36b11e=a927_0x2ef0,_0x16d946=new Migration(_0x5bd516);_0x16d946[_0x36b11e('0x2a')](_0x36b11e('0x1c'),_0x36b11e('0x20'),{'type':_0x2cc286['ENUM'](_0x36b11e('0xd'),_0x36b11e('0xc'),_0x36b11e('0x22'))}),_0x16d946[_0x36b11e('0x2a')](_0x36b11e('0x1c'),_0x36b11e('0x1e'),{'type':_0x2cc286[_0x36b11e('0x8')]}),_0x16d946[_0x36b11e('0x2a')](_0x36b11e('0x1c'),'password',{'type':_0x2cc286['STRING']}),_0x16d946['addColumn'](_0x36b11e('0x1c'),_0x36b11e('0x17'),{'type':_0x2cc286[_0x36b11e('0x8')]}),_0x16d946[_0x36b11e('0x2a')]('sms_accounts',_0x36b11e('0x29'),{'type':_0x2cc286[_0x36b11e('0x10')],'defaultValue':![]}),_0x16d946[_0x36b11e('0x2a')]('users','allowmessenger',{'type':_0x2cc286[_0x36b11e('0x10')],'defaultValue':!![]}),_0x16d946[_0x36b11e('0x2a')](_0x36b11e('0x3'),_0x36b11e('0x4'),{'type':_0x2cc286[_0x36b11e('0x8')]}),_0x16d946[_0x36b11e('0x2a')]('chat_websites',_0x36b11e('0x16'),{'type':_0x2cc286['STRING'],'defaultValue':'New\x20offline\x20message\x20from\x20websiteName'}),_0x16d946['addColumn']('chat_websites',_0x36b11e('0x2b'),{'type':_0x2cc286[_0x36b11e('0x8')],'defaultValue':_0x36b11e('0x32')}),_0x16d946[_0x36b11e('0x2a')]('voice_queues','dialQueueProject2',{'type':_0x2cc286[_0x36b11e('0x8')]}),_0x16d946[_0x36b11e('0x2a')](_0x36b11e('0x1a'),'dialAgiAfterHangupClient',{'type':_0x2cc286[_0x36b11e('0x10')],'defaultValue':![]}),_0x16d946[_0x36b11e('0x2a')](_0x36b11e('0x1a'),_0x36b11e('0x2'),{'type':_0x2cc286[_0x36b11e('0x10')],'defaultValue':![]}),_0x16d946['query'](_0x36b11e('0xb')),_0x16d946[_0x36b11e('0x2e')]('INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\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());'),_0x16d946[_0x36b11e('0x2e')](_0x36b11e('0x19')),_0x16d946[_0x36b11e('0x2e')](_0x36b11e('0x2f')),_0x16d946[_0x36b11e('0x2e')](_0x36b11e('0x11')),_0x16d946[_0x36b11e('0x2e')](_0x36b11e('0x1')),_0x16d946['query'](_0x36b11e('0x21')),_0x16d946[_0x36b11e('0x2e')]('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());'),_0x16d946['addColumn'](_0x36b11e('0x12'),_0x36b11e('0x13'),{'type':_0x2cc286[_0x36b11e('0x6')]}),_0x16d946['final'](_0x3dbf2e);});},'down':function(){}}; \ No newline at end of file +const a1089_0x109b=['info','query\x20%s','agiafterat','join','sequelize','sequence','basic','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\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','voice_queues','then','Changed\x20column\x20%s\x20in\x20table\x20%s','classic+','prototype','BOOLEAN','addColumn','../config/logger','queryInterface','username','final','addIndex\x20%s\x20%s\x20%s','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\x2712\x27,\x20\x27Hangup\x27,\x20\x27system\x27,\x20\x27dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','DELETE\x20FROM\x20`voice_extensions`\x20WHERE\x20`exten`=\x27xcally-motion-preview\x27\x20AND\x20`priority`=\x204','sms_accounts','changeColumn','query','users','dropTable','migration','catch','tail','DATE','classic','smsMethod','deliveryReport','util','table\x20dropped\x20%s','STRING','Removed\x20column\x20%s\x20from\x20%s','chat_websites','inspect','addIndex','DELETE\x20FROM\x20`voice_extensions`\x20WHERE\x20`exten`=\x27xcally-motion-preview\x27\x20AND\x20`priority`=\x205','removeColumn','offlineMessageSubject','stringify','offlineMessageBody','DELETE\x20FROM\x20`voice_extensions`\x20WHERE\x20`exten`=\x27xcally-motion-dialer\x27\x20AND\x20`priority`=\x2011','dialAgiAfterHangupClient','phoneBarOutboundProxy','ENUM','dialAgiAfterHangupAgent'];(function(_0x25b23e,_0x382ada){const _0x109b58=function(_0x5c4b92){while(--_0x5c4b92){_0x25b23e['push'](_0x25b23e['shift']());}};_0x109b58(++_0x382ada);}(a1089_0x109b,0x1f4));const a1089_0x5c4b=function(_0x25b23e,_0x382ada){_0x25b23e=_0x25b23e-0x175;let _0x109b58=a1089_0x109b[_0x25b23e];return _0x109b58;};const a1089_0x441481=a1089_0x5c4b;'use strict';const util=require(a1089_0x441481(0x182)),logger=require(a1089_0x441481(0x1a3))(a1089_0x441481(0x17b)),Sequence=function(){};Sequence[a1089_0x441481(0x1a0)][a1089_0x441481(0x1a8)]=function(_0x141732){const _0x22a654=a1089_0x441481;this['tail']=this['tail']?this[_0x22a654(0x17d)]['finally'](_0x141732):_0x141732();};const Migration=function(_0x53d2c7){const _0x2beef9=a1089_0x441481;this[_0x2beef9(0x1a4)]=_0x53d2c7,this[_0x2beef9(0x198)]=new Sequence();};Migration['prototype'][a1089_0x441481(0x177)]=function(_0x386690,_0x44e5e8,_0x14003a){const _0x2f5517=a1089_0x441481,_0x23a61c=this;this[_0x2f5517(0x198)][_0x2f5517(0x1a8)](function(){const _0x87a361=_0x2f5517;return _0x23a61c['queryInterface'][_0x87a361(0x177)](_0x386690,_0x44e5e8,_0x14003a)[_0x87a361(0x19d)](function(){const _0xb8d228=_0x87a361;logger[_0xb8d228(0x193)](_0xb8d228(0x19e),_0x44e5e8,_0x386690);})[_0x87a361(0x17c)](function(_0x5ac1d6){const _0x4cef1c=_0x87a361;logger['info'](JSON[_0x4cef1c(0x18c)](_0x5ac1d6));});});},Migration[a1089_0x441481(0x1a0)][a1089_0x441481(0x1a2)]=function(_0x38c6ef,_0x3e45ff,_0x314f5c){const _0x7b1024=a1089_0x441481,_0x44c825=this;this[_0x7b1024(0x198)][_0x7b1024(0x1a8)](function(){const _0x57f663=_0x7b1024;return _0x44c825[_0x57f663(0x1a4)]['addColumn'](_0x38c6ef,_0x3e45ff,_0x314f5c)['then'](function(){const _0x579f4e=_0x57f663;logger[_0x579f4e(0x193)]('Added\x20column\x20%s\x20to\x20%s',_0x3e45ff,_0x38c6ef);})[_0x57f663(0x17c)](function(_0x22ace9){const _0x5cada0=_0x57f663;logger[_0x5cada0(0x193)](JSON[_0x5cada0(0x18c)](_0x22ace9));});});},Migration[a1089_0x441481(0x1a0)][a1089_0x441481(0x17a)]=function(_0x12d671){const _0xd2b6e5=a1089_0x441481,_0x3e95ef=this;this[_0xd2b6e5(0x198)][_0xd2b6e5(0x1a8)](function(){const _0x31c4ff=_0xd2b6e5;return _0x3e95ef[_0x31c4ff(0x1a4)]['dropTable'](_0x12d671,{'force':!![]})[_0x31c4ff(0x19d)](function(){const _0x214e70=_0x31c4ff;logger[_0x214e70(0x193)](_0x214e70(0x183),_0x12d671);})[_0x31c4ff(0x17c)](function(_0x6e1c97){const _0x3cebd2=_0x31c4ff;logger[_0x3cebd2(0x193)](JSON[_0x3cebd2(0x18c)](_0x6e1c97));});});},Migration[a1089_0x441481(0x1a0)]['addIndex']=function(_0x109f10,_0x113a9c,_0x725e8c){const _0xe14a83=a1089_0x441481,_0x35461b=this;this[_0xe14a83(0x198)]['enqueue'](function(){const _0x5ac1dc=_0xe14a83;return _0x35461b[_0x5ac1dc(0x1a4)][_0x5ac1dc(0x188)](_0x109f10,_0x113a9c,{'indexName':_0x725e8c})['then'](function(){const _0x41d802=_0x5ac1dc;logger[_0x41d802(0x193)](_0x41d802(0x1a7),_0x109f10,_0x113a9c[_0x41d802(0x196)](','),_0x725e8c);})[_0x5ac1dc(0x17c)](function(_0x2972c3){logger['info'](JSON['stringify'](_0x2972c3));});});},Migration[a1089_0x441481(0x1a0)][a1089_0x441481(0x178)]=function(_0x4b036b){const _0x2886e5=a1089_0x441481,_0x139913=this;this[_0x2886e5(0x198)][_0x2886e5(0x1a8)](function(){const _0x5d9a1e=_0x2886e5;return _0x139913['queryInterface'][_0x5d9a1e(0x197)][_0x5d9a1e(0x178)](_0x4b036b)[_0x5d9a1e(0x19d)](function(){const _0x3be8c9=_0x5d9a1e;logger[_0x3be8c9(0x193)](_0x3be8c9(0x194),_0x4b036b);})[_0x5d9a1e(0x17c)](function(_0x54799f){const _0x4447ac=_0x5d9a1e;logger[_0x4447ac(0x193)](JSON['stringify'](_0x54799f));});});},Migration[a1089_0x441481(0x1a0)][a1089_0x441481(0x18a)]=function(_0x53239e,_0x17b6ac){const _0x4fdbc4=a1089_0x441481,_0x4c0854=this;this['sequence'][_0x4fdbc4(0x1a8)](function(){const _0x3aef59=_0x4fdbc4;return _0x4c0854[_0x3aef59(0x1a4)][_0x3aef59(0x18a)](_0x53239e,_0x17b6ac)['then'](function(){const _0x3dc152=_0x3aef59;logger[_0x3dc152(0x193)](_0x3dc152(0x185),_0x17b6ac,_0x53239e);})[_0x3aef59(0x17c)](function(_0x42a8f8){const _0x25df8d=_0x3aef59;logger[_0x25df8d(0x193)](util[_0x25df8d(0x187)](_0x42a8f8,{'showHidden':![],'depth':null}));});});},Migration[a1089_0x441481(0x1a0)][a1089_0x441481(0x1a6)]=function(_0x4801e3){const _0x3e0eca=a1089_0x441481;this[_0x3e0eca(0x198)][_0x3e0eca(0x1a8)](function(){return _0x4801e3();});},module['exports']={'up':function(_0x2b4276,_0x54ce5f){return new Promise(function(_0x1fdd71){const _0x1a8a41=a1089_0x5c4b,_0x1dcd23=new Migration(_0x2b4276);_0x1dcd23[_0x1a8a41(0x1a2)]('sms_accounts',_0x1a8a41(0x180),{'type':_0x54ce5f[_0x1a8a41(0x191)](_0x1a8a41(0x199),_0x1a8a41(0x17f),_0x1a8a41(0x19f))}),_0x1dcd23[_0x1a8a41(0x1a2)](_0x1a8a41(0x176),_0x1a8a41(0x1a5),{'type':_0x54ce5f[_0x1a8a41(0x184)]}),_0x1dcd23[_0x1a8a41(0x1a2)](_0x1a8a41(0x176),'password',{'type':_0x54ce5f['STRING']}),_0x1dcd23[_0x1a8a41(0x1a2)]('sms_accounts','senderString',{'type':_0x54ce5f[_0x1a8a41(0x184)]}),_0x1dcd23[_0x1a8a41(0x1a2)]('sms_accounts',_0x1a8a41(0x181),{'type':_0x54ce5f[_0x1a8a41(0x1a1)],'defaultValue':![]}),_0x1dcd23[_0x1a8a41(0x1a2)](_0x1a8a41(0x179),'allowmessenger',{'type':_0x54ce5f[_0x1a8a41(0x1a1)],'defaultValue':!![]}),_0x1dcd23[_0x1a8a41(0x1a2)]('users',_0x1a8a41(0x190),{'type':_0x54ce5f['STRING']}),_0x1dcd23[_0x1a8a41(0x1a2)](_0x1a8a41(0x186),_0x1a8a41(0x18b),{'type':_0x54ce5f[_0x1a8a41(0x184)],'defaultValue':'New\x20offline\x20message\x20from\x20websiteName'}),_0x1dcd23['addColumn'](_0x1a8a41(0x186),_0x1a8a41(0x18d),{'type':_0x54ce5f['STRING'],'defaultValue':'You\x20received\x20a\x20new\x20offline\x20message\x20from\x20websiteName.\x20Here\x20you\x20can\x20find\x20the\x20details\x20of\x20the\x20request:'}),_0x1dcd23[_0x1a8a41(0x1a2)](_0x1a8a41(0x19c),'dialQueueProject2',{'type':_0x54ce5f[_0x1a8a41(0x184)]}),_0x1dcd23['addColumn'](_0x1a8a41(0x19c),_0x1a8a41(0x18f),{'type':_0x54ce5f['BOOLEAN'],'defaultValue':![]}),_0x1dcd23[_0x1a8a41(0x1a2)]('voice_queues',_0x1a8a41(0x192),{'type':_0x54ce5f[_0x1a8a41(0x1a1)],'defaultValue':![]}),_0x1dcd23[_0x1a8a41(0x178)](_0x1a8a41(0x18e)),_0x1dcd23['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\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());'),_0x1dcd23[_0x1a8a41(0x178)](_0x1a8a41(0x1a9)),_0x1dcd23[_0x1a8a41(0x178)](_0x1a8a41(0x175)),_0x1dcd23[_0x1a8a41(0x178)](_0x1a8a41(0x189)),_0x1dcd23[_0x1a8a41(0x178)](_0x1a8a41(0x19a)),_0x1dcd23[_0x1a8a41(0x178)]('INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\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());'),_0x1dcd23[_0x1a8a41(0x178)]('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());'),_0x1dcd23[_0x1a8a41(0x1a2)](_0x1a8a41(0x19b),_0x1a8a41(0x195),{'type':_0x54ce5f[_0x1a8a41(0x17e)]}),_0x1dcd23[_0x1a8a41(0x1a6)](_0x1fdd71);});},'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 6563693..6fdf6ae 100644 --- a/server/migrations/2.0.50.js +++ b/server/migrations/2.0.50.js @@ -1 +1 @@ -const a928_0x436d=['inspect','STRING','preview','finally','ENUM','migration','progressive','util','query','predictive','Changed\x20column\x20%s\x20in\x20table\x20%s','messageId','dropTable','changeColumn','sequence','addColumn','sms_messages','prototype','Removed\x20column\x20%s\x20from\x20%s','table\x20dropped\x20%s','addIndex','queryInterface','join','info','sequelize','power','catch','booked','dialMethod','Added\x20column\x20%s\x20to\x20%s','tail','final','../config/logger','voice_queues','query\x20%s','exports','stringify','then','enqueue'];(function(_0x4cb005,_0x436d92){const _0x27c308=function(_0x8a3c92){while(--_0x8a3c92){_0x4cb005['push'](_0x4cb005['shift']());}};_0x27c308(++_0x436d92);}(a928_0x436d,0xeb));const a928_0x27c3=function(_0x4cb005,_0x436d92){_0x4cb005=_0x4cb005-0x0;let _0x27c308=a928_0x436d[_0x4cb005];return _0x27c308;};const _0x3db948=a928_0x27c3;'use strict';const util=require(_0x3db948('0x6')),logger=require(_0x3db948('0x1f'))(_0x3db948('0x4')),Sequence=function(){};Sequence[_0x3db948('0x10')]['enqueue']=function(_0x8a3c92){const _0x3c0dbc=_0x3db948;this[_0x3c0dbc('0x1d')]=this[_0x3c0dbc('0x1d')]?this['tail'][_0x3c0dbc('0x2')](_0x8a3c92):_0x8a3c92();};const Migration=function(_0x5ef15f){const _0x7305e6=_0x3db948;this[_0x7305e6('0x14')]=_0x5ef15f,this[_0x7305e6('0xd')]=new Sequence();};Migration[_0x3db948('0x10')][_0x3db948('0xc')]=function(_0x182792,_0x54b9fe,_0x2b7605){const _0x1038dd=_0x3db948,_0x1f5000=this;this[_0x1038dd('0xd')][_0x1038dd('0x25')](function(){const _0x1a8cbe=_0x1038dd;return _0x1f5000[_0x1a8cbe('0x14')][_0x1a8cbe('0xc')](_0x182792,_0x54b9fe,_0x2b7605)[_0x1a8cbe('0x24')](function(){const _0x2672ff=_0x1a8cbe;logger[_0x2672ff('0x16')](_0x2672ff('0x9'),_0x54b9fe,_0x182792);})['catch'](function(_0x48c799){const _0x280465=_0x1a8cbe;logger[_0x280465('0x16')](JSON[_0x280465('0x23')](_0x48c799));});});},Migration[_0x3db948('0x10')][_0x3db948('0xe')]=function(_0x3259d5,_0x1a7522,_0x50ca21){const _0x4aba7a=_0x3db948,_0x59e3ce=this;this[_0x4aba7a('0xd')][_0x4aba7a('0x25')](function(){const _0x30d228=_0x4aba7a;return _0x59e3ce[_0x30d228('0x14')][_0x30d228('0xe')](_0x3259d5,_0x1a7522,_0x50ca21)[_0x30d228('0x24')](function(){const _0xc83821=_0x30d228;logger[_0xc83821('0x16')](_0xc83821('0x1c'),_0x1a7522,_0x3259d5);})[_0x30d228('0x19')](function(_0x400bd7){const _0x3a09ac=_0x30d228;logger['info'](JSON[_0x3a09ac('0x23')](_0x400bd7));});});},Migration['prototype']['dropTable']=function(_0x1b38c8){const _0x426279=_0x3db948,_0xc0c8bb=this;this[_0x426279('0xd')][_0x426279('0x25')](function(){const _0x299320=_0x426279;return _0xc0c8bb['queryInterface'][_0x299320('0xb')](_0x1b38c8,{'force':!![]})[_0x299320('0x24')](function(){const _0x17ab71=_0x299320;logger[_0x17ab71('0x16')](_0x17ab71('0x12'),_0x1b38c8);})[_0x299320('0x19')](function(_0x23d00b){const _0x37db8e=_0x299320;logger[_0x37db8e('0x16')](JSON[_0x37db8e('0x23')](_0x23d00b));});});},Migration[_0x3db948('0x10')][_0x3db948('0x13')]=function(_0x305594,_0x665496,_0x1bad54){const _0x1846d8=_0x3db948,_0x130637=this;this[_0x1846d8('0xd')][_0x1846d8('0x25')](function(){const _0x2aa5e8=_0x1846d8;return _0x130637[_0x2aa5e8('0x14')]['addIndex'](_0x305594,_0x665496,{'indexName':_0x1bad54})[_0x2aa5e8('0x24')](function(){const _0x3f7b2c=_0x2aa5e8;logger['info']('addIndex\x20%s\x20%s\x20%s',_0x305594,_0x665496[_0x3f7b2c('0x15')](','),_0x1bad54);})['catch'](function(_0x26daf3){const _0x435b38=_0x2aa5e8;logger[_0x435b38('0x16')](JSON[_0x435b38('0x23')](_0x26daf3));});});},Migration[_0x3db948('0x10')][_0x3db948('0x7')]=function(_0x2dc9b1){const _0x4ecd57=_0x3db948,_0x4e772f=this;this['sequence'][_0x4ecd57('0x25')](function(){const _0x8c2c6d=_0x4ecd57;return _0x4e772f[_0x8c2c6d('0x14')][_0x8c2c6d('0x17')][_0x8c2c6d('0x7')](_0x2dc9b1)[_0x8c2c6d('0x24')](function(){const _0x17fb98=_0x8c2c6d;logger[_0x17fb98('0x16')](_0x17fb98('0x21'),_0x2dc9b1);})[_0x8c2c6d('0x19')](function(_0x217f72){const _0x1a692d=_0x8c2c6d;logger[_0x1a692d('0x16')](JSON[_0x1a692d('0x23')](_0x217f72));});});},Migration[_0x3db948('0x10')]['removeColumn']=function(_0x251fbc,_0x135e45){const _0x174647=_0x3db948,_0x4139da=this;this['sequence'][_0x174647('0x25')](function(){const _0x567326=_0x174647;return _0x4139da[_0x567326('0x14')]['removeColumn'](_0x251fbc,_0x135e45)[_0x567326('0x24')](function(){const _0x3cf080=_0x567326;logger[_0x3cf080('0x16')](_0x3cf080('0x11'),_0x135e45,_0x251fbc);})[_0x567326('0x19')](function(_0x249aeb){const _0x3db03d=_0x567326;logger[_0x3db03d('0x16')](util[_0x3db03d('0x26')](_0x249aeb,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x3db948('0x1e')]=function(_0x2ac75a){const _0x23b34c=_0x3db948;this['sequence'][_0x23b34c('0x25')](function(){return _0x2ac75a();});},module[_0x3db948('0x22')]={'up':function(_0x25f95e,_0xb3dec0){return new Promise(function(_0x26a6cf){const _0x1198e1=a928_0x27c3,_0x1a5c12=new Migration(_0x25f95e);_0x1a5c12['changeColumn']('sms_messages',_0x1198e1('0xa'),{'type':_0xb3dec0[_0x1198e1('0x0')](0xbe)}),_0x1a5c12[_0x1198e1('0x13')](_0x1198e1('0xf'),[_0x1198e1('0xa')],_0x1198e1('0xa')),_0x1a5c12[_0x1198e1('0xc')](_0x1198e1('0x20'),_0x1198e1('0x1b'),{'type':_0xb3dec0[_0x1198e1('0x3')](_0x1198e1('0x1'),'progressive',_0x1198e1('0x18'),_0x1198e1('0x8'),_0x1198e1('0x1a')),'defaultValue':_0x1198e1('0x5')}),_0x1a5c12[_0x1198e1('0x7')]('DELETE\x20FROM\x20`voice_extensions`\x20WHERE\x20`exten`=\x27xcally-motion-preview\x27\x20AND\x20`priority`=\x206'),_0x1a5c12[_0x1198e1('0x7')]('INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\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());'),_0x1a5c12['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-preview\x27,\x20\x277\x27,\x20\x27hangup\x27,\x20\x27system\x27,\x20\x27dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());'),_0x1a5c12[_0x1198e1('0x1e')](_0x26a6cf);});},'down':function(){}}; \ No newline at end of file +const a1090_0xb6db=['migration','enqueue','table\x20dropped\x20%s','join','prototype','stringify','messageId','addIndex','tail','exports','progressive','sequence','queryInterface','util','STRING','addIndex\x20%s\x20%s\x20%s','inspect','power','changeColumn','ENUM','final','dropTable','finally','Added\x20column\x20%s\x20to\x20%s','query','then','addColumn','info','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-preview\x27,\x20\x276\x27,\x20\x27Execif\x27,\x20\x27$[\x22${XMD-AGIAFTER}\x22\x20!=\x20\x22NONE\x22\x20]?AGI(${XMD-AGIAFTER})\x27,\x20\x27system\x27,\x20\x27dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','Removed\x20column\x20%s\x20from\x20%s','removeColumn','DELETE\x20FROM\x20`voice_extensions`\x20WHERE\x20`exten`=\x27xcally-motion-preview\x27\x20AND\x20`priority`=\x206','catch','sms_messages','query\x20%s','../config/logger','preview','predictive'];(function(_0x6dfebc,_0x3ffc78){const _0xb6db28=function(_0x5e3ef5){while(--_0x5e3ef5){_0x6dfebc['push'](_0x6dfebc['shift']());}};_0xb6db28(++_0x3ffc78);}(a1090_0xb6db,0x16c));const a1090_0x5e3e=function(_0x6dfebc,_0x3ffc78){_0x6dfebc=_0x6dfebc-0x1a7;let _0xb6db28=a1090_0xb6db[_0x6dfebc];return _0xb6db28;};const a1090_0x48750d=a1090_0x5e3e;'use strict';const util=require(a1090_0x48750d(0x1c4)),logger=require(a1090_0x48750d(0x1b4))(a1090_0x48750d(0x1b7)),Sequence=function(){};Sequence[a1090_0x48750d(0x1bb)][a1090_0x48750d(0x1b8)]=function(_0x1c95eb){const _0x1f3a40=a1090_0x48750d;this[_0x1f3a40(0x1bf)]=this['tail']?this[_0x1f3a40(0x1bf)][_0x1f3a40(0x1a7)](_0x1c95eb):_0x1c95eb();};const Migration=function(_0x136a5e){const _0x524def=a1090_0x48750d;this[_0x524def(0x1c3)]=_0x136a5e,this[_0x524def(0x1c2)]=new Sequence();};Migration[a1090_0x48750d(0x1bb)][a1090_0x48750d(0x1c9)]=function(_0x36b7fb,_0x125b35,_0x40c2ec){const _0x5913f2=a1090_0x48750d,_0x61897b=this;this[_0x5913f2(0x1c2)][_0x5913f2(0x1b8)](function(){const _0xce7f26=_0x5913f2;return _0x61897b[_0xce7f26(0x1c3)][_0xce7f26(0x1c9)](_0x36b7fb,_0x125b35,_0x40c2ec)['then'](function(){logger['info']('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x125b35,_0x36b7fb);})['catch'](function(_0x384031){const _0x8dc06e=_0xce7f26;logger['info'](JSON[_0x8dc06e(0x1bc)](_0x384031));});});},Migration[a1090_0x48750d(0x1bb)]['addColumn']=function(_0x5ed26a,_0x51cc32,_0x12a47c){const _0x53fd8e=a1090_0x48750d,_0x40bfb0=this;this['sequence'][_0x53fd8e(0x1b8)](function(){const _0x254a9b=_0x53fd8e;return _0x40bfb0['queryInterface'][_0x254a9b(0x1ab)](_0x5ed26a,_0x51cc32,_0x12a47c)[_0x254a9b(0x1aa)](function(){const _0x2ffa60=_0x254a9b;logger[_0x2ffa60(0x1ac)](_0x2ffa60(0x1a8),_0x51cc32,_0x5ed26a);})[_0x254a9b(0x1b1)](function(_0x49b247){logger['info'](JSON['stringify'](_0x49b247));});});},Migration[a1090_0x48750d(0x1bb)][a1090_0x48750d(0x1cc)]=function(_0x48c54d){const _0x2dd03e=a1090_0x48750d,_0x5e137e=this;this[_0x2dd03e(0x1c2)][_0x2dd03e(0x1b8)](function(){const _0x2adcdd=_0x2dd03e;return _0x5e137e[_0x2adcdd(0x1c3)]['dropTable'](_0x48c54d,{'force':!![]})['then'](function(){const _0x1c41be=_0x2adcdd;logger[_0x1c41be(0x1ac)](_0x1c41be(0x1b9),_0x48c54d);})[_0x2adcdd(0x1b1)](function(_0xb54451){const _0x1ca137=_0x2adcdd;logger[_0x1ca137(0x1ac)](JSON[_0x1ca137(0x1bc)](_0xb54451));});});},Migration['prototype'][a1090_0x48750d(0x1be)]=function(_0x427757,_0x53ec1a,_0x1f8437){const _0x2fa819=a1090_0x48750d,_0x49ac06=this;this[_0x2fa819(0x1c2)]['enqueue'](function(){const _0x8e7857=_0x2fa819;return _0x49ac06[_0x8e7857(0x1c3)][_0x8e7857(0x1be)](_0x427757,_0x53ec1a,{'indexName':_0x1f8437})[_0x8e7857(0x1aa)](function(){const _0x38b905=_0x8e7857;logger['info'](_0x38b905(0x1c6),_0x427757,_0x53ec1a[_0x38b905(0x1ba)](','),_0x1f8437);})[_0x8e7857(0x1b1)](function(_0x10fafa){const _0x53aae4=_0x8e7857;logger[_0x53aae4(0x1ac)](JSON[_0x53aae4(0x1bc)](_0x10fafa));});});},Migration[a1090_0x48750d(0x1bb)][a1090_0x48750d(0x1a9)]=function(_0x547e33){const _0x549b0e=a1090_0x48750d,_0x404a45=this;this[_0x549b0e(0x1c2)]['enqueue'](function(){const _0x471ba8=_0x549b0e;return _0x404a45['queryInterface']['sequelize'][_0x471ba8(0x1a9)](_0x547e33)['then'](function(){const _0xb97157=_0x471ba8;logger['info'](_0xb97157(0x1b3),_0x547e33);})[_0x471ba8(0x1b1)](function(_0x58d571){const _0x83c2e0=_0x471ba8;logger[_0x83c2e0(0x1ac)](JSON[_0x83c2e0(0x1bc)](_0x58d571));});});},Migration[a1090_0x48750d(0x1bb)][a1090_0x48750d(0x1af)]=function(_0x2bb228,_0x393247){const _0x23d183=a1090_0x48750d,_0x2de163=this;this[_0x23d183(0x1c2)][_0x23d183(0x1b8)](function(){const _0x572623=_0x23d183;return _0x2de163[_0x572623(0x1c3)][_0x572623(0x1af)](_0x2bb228,_0x393247)[_0x572623(0x1aa)](function(){const _0x1b9f61=_0x572623;logger[_0x1b9f61(0x1ac)](_0x1b9f61(0x1ae),_0x393247,_0x2bb228);})[_0x572623(0x1b1)](function(_0xb9c7b7){const _0x2a065b=_0x572623;logger[_0x2a065b(0x1ac)](util[_0x2a065b(0x1c7)](_0xb9c7b7,{'showHidden':![],'depth':null}));});});},Migration[a1090_0x48750d(0x1bb)][a1090_0x48750d(0x1cb)]=function(_0x247087){this['sequence']['enqueue'](function(){return _0x247087();});},module[a1090_0x48750d(0x1c0)]={'up':function(_0x2ffb89,_0x4bcea5){return new Promise(function(_0x1d6c90){const _0x49c333=a1090_0x5e3e,_0x5e242c=new Migration(_0x2ffb89);_0x5e242c['changeColumn'](_0x49c333(0x1b2),_0x49c333(0x1bd),{'type':_0x4bcea5[_0x49c333(0x1c5)](0xbe)}),_0x5e242c[_0x49c333(0x1be)](_0x49c333(0x1b2),[_0x49c333(0x1bd)],'messageId'),_0x5e242c[_0x49c333(0x1c9)]('voice_queues','dialMethod',{'type':_0x4bcea5[_0x49c333(0x1ca)](_0x49c333(0x1b5),_0x49c333(0x1c1),_0x49c333(0x1c8),_0x49c333(0x1b6),'booked'),'defaultValue':_0x49c333(0x1c1)}),_0x5e242c[_0x49c333(0x1a9)](_0x49c333(0x1b0)),_0x5e242c[_0x49c333(0x1a9)](_0x49c333(0x1ad)),_0x5e242c['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-preview\x27,\x20\x277\x27,\x20\x27hangup\x27,\x20\x27system\x27,\x20\x27dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());'),_0x5e242c[_0x49c333(0x1cb)](_0x1d6c90);});},'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 9b8daa5..11b86ec 100644 --- a/server/migrations/2.0.51.js +++ b/server/migrations/2.0.51.js @@ -1 +1 @@ -const a929_0xd356=['toLowerCase','cm_contacts','cm_hopper_final','mail_interactions','Removed\x20column\x20%s\x20from\x20%s','ChatInternalMessageId','queryInterface','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','report_member','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x271\x27,\x20\x27NoOp\x27,\x20\x27\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','table\x20dropped\x20%s','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x275\x27,\x20\x27answer\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','addIndex\x20%s\x20%s\x20%s','note','DELETE\x20FROM\x20`voice_extensions`\x20WHERE\x20exten\x20=\x20\x27xcally-motion-dialer\x27;','membername_interface','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\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());','connectel','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x276\x27,\x20\x27background\x27,\x20\x27silence/1\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','tail','report_call','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x2712\x27,\x20\x27execif\x27,\x20\x27$[\x22${XMD-QUEUE}\x22\x20!=\x20\x22NONE\x22\x20]?QUEUE(${XMD-QUEUE})\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','Sms','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());','chat_internal_messages','ChatGroupId','join','Changed\x20column\x20%s\x20in\x20table\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\x272\x27,\x20\x27set\x27,\x20\x27CDR(type)=dialer\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','chat_interactions','addColumn','../config/logger','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\x273\x27,\x20\x27set\x27,\x20\x27CALLERID(all)=${XMD-CALLERID}\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','sequelize','type','sequence','DATE','lastMsgDirection','sms_interactions','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\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());','InteractionId)\x20t2\x20SET\x20t1.lastMsgDirection\x20=\x20t2.direction,\x20t1.lastMsgAt\x20=\x20t2.createdAt\x20WHERE\x20t1.id\x20=\x20t2.','changeColumn','twilio','removeColumn','lastMsgAt','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','UPDATE\x20','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\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());','out','uniqueid','ENUM','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\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());','stringify','skebby','query','info','phone','Openchannel','addIndex','fax_interactions','exports','sms_accounts','length','Mail','enqueue','prototype','STRING','cm_hopper_history','Added\x20column\x20%s\x20to\x20%s'];(function(_0x25e653,_0xd35629){const _0x1b0eff=function(_0x29b7ff){while(--_0x29b7ff){_0x25e653['push'](_0x25e653['shift']());}};_0x1b0eff(++_0xd35629);}(a929_0xd356,0x93));const a929_0x1b0e=function(_0x25e653,_0xd35629){_0x25e653=_0x25e653-0x0;let _0x1b0eff=a929_0xd356[_0x25e653];return _0x1b0eff;};const _0x15ae10=a929_0x1b0e;'use strict';const util=require('util'),logger=require(_0x15ae10('0x1e'))('migration'),Sequence=function(){};Sequence['prototype'][_0x15ae10('0x43')]=function(_0x29b7ff){const _0x14becf=_0x15ae10;this['tail']=this[_0x14becf('0x12')]?this['tail']['finally'](_0x29b7ff):_0x29b7ff();};const Migration=function(_0x1b1dd1){const _0x422e41=_0x15ae10;this[_0x422e41('0x5')]=_0x1b1dd1,this[_0x422e41('0x23')]=new Sequence();};Migration[_0x15ae10('0x44')][_0x15ae10('0x2a')]=function(_0x18bd82,_0xa29757,_0x1398a3){const _0x240df5=_0x15ae10,_0x31cbff=this;this[_0x240df5('0x23')][_0x240df5('0x43')](function(){const _0x19b4f9=_0x240df5;return _0x31cbff[_0x19b4f9('0x5')][_0x19b4f9('0x2a')](_0x18bd82,_0xa29757,_0x1398a3)['then'](function(){const _0x5b8621=_0x19b4f9;logger['info'](_0x5b8621('0x1a'),_0xa29757,_0x18bd82);})[_0x19b4f9('0x30')](function(_0x28491c){const _0x241bd8=_0x19b4f9;logger[_0x241bd8('0x3a')](JSON['stringify'](_0x28491c));});});},Migration[_0x15ae10('0x44')][_0x15ae10('0x1d')]=function(_0x4b4b8e,_0x497d5c,_0xa27acf){const _0x4d2933=_0x15ae10,_0x318607=this;this[_0x4d2933('0x23')]['enqueue'](function(){const _0x3a3c5d=_0x4d2933;return _0x318607['queryInterface'][_0x3a3c5d('0x1d')](_0x4b4b8e,_0x497d5c,_0xa27acf)[_0x3a3c5d('0x27')](function(){const _0x25a284=_0x3a3c5d;logger[_0x25a284('0x3a')](_0x25a284('0x47'),_0x497d5c,_0x4b4b8e);})[_0x3a3c5d('0x30')](function(_0x52e9ea){const _0x40597e=_0x3a3c5d;logger[_0x40597e('0x3a')](JSON[_0x40597e('0x37')](_0x52e9ea));});});},Migration['prototype']['dropTable']=function(_0x4684fd){const _0x2be6b0=_0x15ae10,_0x958d34=this;this[_0x2be6b0('0x23')][_0x2be6b0('0x43')](function(){const _0x275151=_0x2be6b0;return _0x958d34['queryInterface']['dropTable'](_0x4684fd,{'force':!![]})[_0x275151('0x27')](function(){const _0x1d94da=_0x275151;logger[_0x1d94da('0x3a')](_0x1d94da('0x9'),_0x4684fd);})[_0x275151('0x30')](function(_0x535c3c){const _0x38a7cf=_0x275151;logger[_0x38a7cf('0x3a')](JSON['stringify'](_0x535c3c));});});},Migration[_0x15ae10('0x44')][_0x15ae10('0x3d')]=function(_0x5325f5,_0x3f71b1,_0x43816a){const _0x13e23d=_0x15ae10,_0x5b00bc=this;this[_0x13e23d('0x23')][_0x13e23d('0x43')](function(){const _0x4cbc21=_0x13e23d;return _0x5b00bc[_0x4cbc21('0x5')]['addIndex'](_0x5325f5,_0x3f71b1,{'indexName':_0x43816a})[_0x4cbc21('0x27')](function(){const _0x3c9b88=_0x4cbc21;logger[_0x3c9b88('0x3a')](_0x3c9b88('0xb'),_0x5325f5,_0x3f71b1[_0x3c9b88('0x19')](','),_0x43816a);})[_0x4cbc21('0x30')](function(_0x4c8c97){const _0x3941a9=_0x4cbc21;logger['info'](JSON[_0x3941a9('0x37')](_0x4c8c97));});});},Migration[_0x15ae10('0x44')]['query']=function(_0x236fcb){const _0x1021e5=_0x15ae10,_0x495a53=this;this[_0x1021e5('0x23')]['enqueue'](function(){const _0x2ba2f0=_0x1021e5;return _0x495a53[_0x2ba2f0('0x5')][_0x2ba2f0('0x21')][_0x2ba2f0('0x39')](_0x236fcb)[_0x2ba2f0('0x27')](function(){const _0x297562=_0x2ba2f0;logger[_0x297562('0x3a')]('query\x20%s',_0x236fcb);})['catch'](function(_0x3abe45){const _0x5d0910=_0x2ba2f0;logger[_0x5d0910('0x3a')](JSON[_0x5d0910('0x37')](_0x3abe45));});});},Migration[_0x15ae10('0x44')][_0x15ae10('0x2c')]=function(_0x4205b3,_0x10f08c){const _0x11a34e=_0x15ae10,_0x455771=this;this[_0x11a34e('0x23')][_0x11a34e('0x43')](function(){const _0x579a93=_0x11a34e;return _0x455771['queryInterface'][_0x579a93('0x2c')](_0x4205b3,_0x10f08c)['then'](function(){const _0x5716ca=_0x579a93;logger[_0x5716ca('0x3a')](_0x5716ca('0x3'),_0x10f08c,_0x4205b3);})[_0x579a93('0x30')](function(_0x531cc6){const _0x397d3d=_0x579a93;logger[_0x397d3d('0x3a')](util['inspect'](_0x531cc6,{'showHidden':![],'depth':null}));});});},Migration[_0x15ae10('0x44')]['final']=function(_0x461ef2){const _0x226a8e=_0x15ae10;this[_0x226a8e('0x23')][_0x226a8e('0x43')](function(){return _0x461ef2();});},module[_0x15ae10('0x3f')]={'up':function(_0x5b4fa2,_0x28e11c){return new Promise(function(_0x41b15d){const _0x891811=a929_0x1b0e,_0x125b4c=new Migration(_0x5b4fa2);_0x125b4c[_0x891811('0x1d')](_0x891811('0x17'),_0x891811('0x4'),{'type':_0x28e11c[_0x891811('0x1f')]}),_0x125b4c[_0x891811('0x1d')](_0x891811('0x17'),_0x891811('0x18'),{'type':_0x28e11c[_0x891811('0x1f')]}),_0x125b4c['query']('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'),_0x125b4c[_0x891811('0x1d')](_0x891811('0x1c'),_0x891811('0x25'),{'type':_0x28e11c[_0x891811('0x34')]('in',_0x891811('0x32')),'defaultValue':'in','allowNull':![]}),_0x125b4c[_0x891811('0x1d')](_0x891811('0x1c'),_0x891811('0x2d'),{'type':_0x28e11c['DATE']}),_0x125b4c[_0x891811('0x1d')](_0x891811('0x2'),_0x891811('0x25'),{'type':_0x28e11c[_0x891811('0x34')]('in',_0x891811('0x32')),'defaultValue':'in','allowNull':![]}),_0x125b4c[_0x891811('0x1d')](_0x891811('0x2'),'lastMsgAt',{'type':_0x28e11c[_0x891811('0x24')]}),_0x125b4c[_0x891811('0x1d')](_0x891811('0x26'),_0x891811('0x25'),{'type':_0x28e11c[_0x891811('0x34')]('in',_0x891811('0x32')),'defaultValue':'in','allowNull':![]}),_0x125b4c[_0x891811('0x1d')](_0x891811('0x26'),_0x891811('0x2d'),{'type':_0x28e11c[_0x891811('0x24')]}),_0x125b4c[_0x891811('0x1d')]('openchannel_interactions',_0x891811('0x25'),{'type':_0x28e11c[_0x891811('0x34')]('in','out'),'defaultValue':'in','allowNull':![]}),_0x125b4c[_0x891811('0x1d')]('openchannel_interactions',_0x891811('0x2d'),{'type':_0x28e11c['DATE']}),_0x125b4c['addColumn'](_0x891811('0x3e'),'lastMsgDirection',{'type':_0x28e11c[_0x891811('0x34')]('in',_0x891811('0x32')),'defaultValue':'in','allowNull':![]}),_0x125b4c['addColumn'](_0x891811('0x3e'),_0x891811('0x2d'),{'type':_0x28e11c['DATE']});const _0x1ad9d0=['Chat',_0x891811('0x42'),_0x891811('0x15'),_0x891811('0x3c')];for(let _0x1a1d8c=0x0;_0x1a1d8c<_0x1ad9d0[_0x891811('0x41')];_0x1a1d8c++){_0x125b4c['query'](_0x891811('0x2f')+_0x1ad9d0[_0x1a1d8c]['toLowerCase']()+'_interactions\x20t1,\x20(SELECT\x20'+_0x1ad9d0[_0x1a1d8c]+'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'+_0x1ad9d0[_0x1a1d8c][_0x891811('0x48')]()+'_messages\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHERE\x20'+_0x1ad9d0[_0x1a1d8c]+_0x891811('0x2e')+_0x1ad9d0[_0x1a1d8c]+_0x891811('0x29')+_0x1ad9d0[_0x1a1d8c]+'InteractionId;');}_0x125b4c[_0x891811('0x39')]('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;'),_0x125b4c['changeColumn'](_0x891811('0x40'),_0x891811('0x22'),{'type':_0x28e11c['ENUM'](_0x891811('0x2b'),_0x891811('0x38'),_0x891811('0x10'))}),_0x125b4c[_0x891811('0x1d')](_0x891811('0x13'),_0x891811('0xc'),{'type':_0x28e11c[_0x891811('0x45')]}),_0x125b4c[_0x891811('0x3d')](_0x891811('0x0'),[_0x891811('0x3b')],_0x891811('0x3b')),_0x125b4c['addIndex'](_0x891811('0x1'),['uniqueid'],'uniqueid'),_0x125b4c[_0x891811('0x3d')](_0x891811('0x46'),['uniqueid'],_0x891811('0x33')),_0x125b4c[_0x891811('0x3d')]('voice_recordings',[_0x891811('0x33')],_0x891811('0x33')),_0x125b4c['addIndex'](_0x891811('0x7'),['membername','interface'],_0x891811('0xe')),_0x125b4c[_0x891811('0x39')](_0x891811('0x6')),_0x125b4c[_0x891811('0x39')](_0x891811('0xd')),_0x125b4c['query'](_0x891811('0x8')),_0x125b4c[_0x891811('0x39')](_0x891811('0x1b')),_0x125b4c[_0x891811('0x39')](_0x891811('0x20')),_0x125b4c[_0x891811('0x39')](_0x891811('0xf')),_0x125b4c[_0x891811('0x39')](_0x891811('0xa')),_0x125b4c[_0x891811('0x39')](_0x891811('0x11')),_0x125b4c['query'](_0x891811('0x31')),_0x125b4c[_0x891811('0x39')]('INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\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());'),_0x125b4c['query'](_0x891811('0x16')),_0x125b4c[_0x891811('0x39')]('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());'),_0x125b4c['query'](_0x891811('0x28')),_0x125b4c['query'](_0x891811('0x14')),_0x125b4c[_0x891811('0x39')](_0x891811('0x36')),_0x125b4c[_0x891811('0x39')]('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());'),_0x125b4c[_0x891811('0x35')](_0x41b15d);});},'down':function(){}}; \ No newline at end of file +const a1091_0x2976=['fax_interactions','InteractionId;','Changed\x20column\x20%s\x20in\x20table\x20%s','interface','../config/logger','connectel','cm_contacts','lastMsgDirection','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\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());','addIndex\x20%s\x20%s\x20%s','lastMsgAt','toLowerCase','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());','join','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','chat_internal_messages','sms_accounts','dropTable','addColumn','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\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());','prototype','then','exports','membername','Mail','table\x20dropped\x20%s','UPDATE\x20users\x20SET\x20permissions=\x27101,102,103,110,104,105,106,107,108,109,100\x27\x20WHERE\x20permissions=\x27101,102,103,104,105,106,107,108,109,100\x27','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\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`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());','uniqueid','length','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','DELETE\x20FROM\x20`voice_extensions`\x20WHERE\x20exten\x20=\x20\x27xcally-motion-dialer\x27;','ChatInternalMessageId','INTEGER','ENUM','cm_hopper_final','chat_interactions','Removed\x20column\x20%s\x20from\x20%s','DATE','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\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());','migration','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\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());','catch','query','out','report_member','tail','InteractionId)\x20t2\x20SET\x20t1.lastMsgDirection\x20=\x20t2.direction,\x20t1.lastMsgAt\x20=\x20t2.createdAt\x20WHERE\x20t1.id\x20=\x20t2.','Chat','stringify','final','sequence','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;','ChatGroupId','report_call','sequelize','changeColumn','queryInterface','query\x20%s','finally','info','sms_interactions','twilio','openchannel_interactions','inspect','_interactions\x20t1,\x20(SELECT\x20','_messages\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHERE\x20','removeColumn','membername_interface','voice_recordings','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());','Openchannel','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-dialer\x27,\x20\x272\x27,\x20\x27set\x27,\x20\x27CDR(type)=dialer\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','addIndex','skebby','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'];(function(_0x27c149,_0x37780b){const _0x297629=function(_0x2f6f0c){while(--_0x2f6f0c){_0x27c149['push'](_0x27c149['shift']());}};_0x297629(++_0x37780b);}(a1091_0x2976,0x1ee));const a1091_0x2f6f=function(_0x27c149,_0x37780b){_0x27c149=_0x27c149-0x64;let _0x297629=a1091_0x2976[_0x27c149];return _0x297629;};const a1091_0x567b02=a1091_0x2f6f;'use strict';const util=require('util'),logger=require(a1091_0x567b02(0x9c))(a1091_0x567b02(0x73)),Sequence=function(){};Sequence[a1091_0x567b02(0xac)][a1091_0x567b02(0x93)]=function(_0x3b8166){const _0x5c4cca=a1091_0x567b02;this[_0x5c4cca(0x79)]=this[_0x5c4cca(0x79)]?this[_0x5c4cca(0x79)][_0x5c4cca(0x86)](_0x3b8166):_0x3b8166();};const Migration=function(_0x5d204b){const _0x254a96=a1091_0x567b02;this['queryInterface']=_0x5d204b,this[_0x254a96(0x7e)]=new Sequence();};Migration[a1091_0x567b02(0xac)][a1091_0x567b02(0x83)]=function(_0x184b76,_0x5c9244,_0x2cc367){const _0x38e07f=a1091_0x567b02,_0x4a0a8d=this;this['sequence'][_0x38e07f(0x93)](function(){const _0x534226=_0x38e07f;return _0x4a0a8d[_0x534226(0x84)][_0x534226(0x83)](_0x184b76,_0x5c9244,_0x2cc367)[_0x534226(0xad)](function(){const _0x501e0a=_0x534226;logger[_0x501e0a(0x87)](_0x501e0a(0x9a),_0x5c9244,_0x184b76);})[_0x534226(0x75)](function(_0x5baf0f){const _0x2150d0=_0x534226;logger[_0x2150d0(0x87)](JSON['stringify'](_0x5baf0f));});});},Migration[a1091_0x567b02(0xac)][a1091_0x567b02(0xaa)]=function(_0x3e4d3e,_0x22d910,_0x32f085){const _0x420791=a1091_0x567b02,_0x3a8e0b=this;this[_0x420791(0x7e)][_0x420791(0x93)](function(){const _0x51ec0b=_0x420791;return _0x3a8e0b[_0x51ec0b(0x84)][_0x51ec0b(0xaa)](_0x3e4d3e,_0x22d910,_0x32f085)[_0x51ec0b(0xad)](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x22d910,_0x3e4d3e);})[_0x51ec0b(0x75)](function(_0x1306d6){const _0x3f4964=_0x51ec0b;logger[_0x3f4964(0x87)](JSON[_0x3f4964(0x7c)](_0x1306d6));});});},Migration[a1091_0x567b02(0xac)][a1091_0x567b02(0xa9)]=function(_0x37147d){const _0x370da1=a1091_0x567b02,_0x29db68=this;this[_0x370da1(0x7e)][_0x370da1(0x93)](function(){const _0x2b898c=_0x370da1;return _0x29db68[_0x2b898c(0x84)][_0x2b898c(0xa9)](_0x37147d,{'force':!![]})[_0x2b898c(0xad)](function(){const _0xbaacd8=_0x2b898c;logger[_0xbaacd8(0x87)](_0xbaacd8(0xb1),_0x37147d);})[_0x2b898c(0x75)](function(_0x5f5a89){const _0x53ea14=_0x2b898c;logger[_0x53ea14(0x87)](JSON[_0x53ea14(0x7c)](_0x5f5a89));});});},Migration[a1091_0x567b02(0xac)][a1091_0x567b02(0x95)]=function(_0x1a3808,_0x35934d,_0x38122f){const _0x49bc92=a1091_0x567b02,_0x5280a1=this;this[_0x49bc92(0x7e)][_0x49bc92(0x93)](function(){const _0x2ac0f1=_0x49bc92;return _0x5280a1[_0x2ac0f1(0x84)][_0x2ac0f1(0x95)](_0x1a3808,_0x35934d,{'indexName':_0x38122f})['then'](function(){const _0x4db817=_0x2ac0f1;logger[_0x4db817(0x87)](_0x4db817(0xa1),_0x1a3808,_0x35934d[_0x4db817(0xa5)](','),_0x38122f);})[_0x2ac0f1(0x75)](function(_0x242bd4){const _0x3656e2=_0x2ac0f1;logger[_0x3656e2(0x87)](JSON[_0x3656e2(0x7c)](_0x242bd4));});});},Migration[a1091_0x567b02(0xac)][a1091_0x567b02(0x76)]=function(_0x5b7023){const _0x164cb=a1091_0x567b02,_0x509b57=this;this[_0x164cb(0x7e)]['enqueue'](function(){const _0x47b9f6=_0x164cb;return _0x509b57['queryInterface'][_0x47b9f6(0x82)][_0x47b9f6(0x76)](_0x5b7023)[_0x47b9f6(0xad)](function(){const _0x471b1f=_0x47b9f6;logger[_0x471b1f(0x87)](_0x471b1f(0x85),_0x5b7023);})[_0x47b9f6(0x75)](function(_0x5dde62){const _0x22cc01=_0x47b9f6;logger[_0x22cc01(0x87)](JSON[_0x22cc01(0x7c)](_0x5dde62));});});},Migration[a1091_0x567b02(0xac)]['removeColumn']=function(_0x5a33da,_0x2ba0f1){const _0x102aa2=a1091_0x567b02,_0x2d2061=this;this[_0x102aa2(0x7e)]['enqueue'](function(){const _0x2fa5c6=_0x102aa2;return _0x2d2061[_0x2fa5c6(0x84)][_0x2fa5c6(0x8e)](_0x5a33da,_0x2ba0f1)['then'](function(){const _0x21dbb2=_0x2fa5c6;logger[_0x21dbb2(0x87)](_0x21dbb2(0x70),_0x2ba0f1,_0x5a33da);})[_0x2fa5c6(0x75)](function(_0x3cad7d){const _0x4b531a=_0x2fa5c6;logger[_0x4b531a(0x87)](util[_0x4b531a(0x8b)](_0x3cad7d,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1091_0x567b02(0x7d)]=function(_0x10ad55){const _0x21149c=a1091_0x567b02;this[_0x21149c(0x7e)][_0x21149c(0x93)](function(){return _0x10ad55();});},module[a1091_0x567b02(0xae)]={'up':function(_0x3f2ff5,_0x33935b){return new Promise(function(_0x47e779){const _0x237502=a1091_0x2f6f,_0x450fd9=new Migration(_0x3f2ff5);_0x450fd9[_0x237502(0xaa)](_0x237502(0xa7),_0x237502(0x6b),{'type':_0x33935b[_0x237502(0x6c)]}),_0x450fd9[_0x237502(0xaa)]('chat_internal_messages',_0x237502(0x80),{'type':_0x33935b[_0x237502(0x6c)]}),_0x450fd9[_0x237502(0x76)](_0x237502(0xa6)),_0x450fd9[_0x237502(0xaa)]('chat_interactions',_0x237502(0x9f),{'type':_0x33935b[_0x237502(0x6d)]('in','out'),'defaultValue':'in','allowNull':![]}),_0x450fd9[_0x237502(0xaa)](_0x237502(0x6f),_0x237502(0xa2),{'type':_0x33935b[_0x237502(0x71)]}),_0x450fd9['addColumn']('mail_interactions',_0x237502(0x9f),{'type':_0x33935b[_0x237502(0x6d)]('in',_0x237502(0x77)),'defaultValue':'in','allowNull':![]}),_0x450fd9[_0x237502(0xaa)]('mail_interactions',_0x237502(0xa2),{'type':_0x33935b[_0x237502(0x71)]}),_0x450fd9[_0x237502(0xaa)](_0x237502(0x88),_0x237502(0x9f),{'type':_0x33935b[_0x237502(0x6d)]('in','out'),'defaultValue':'in','allowNull':![]}),_0x450fd9['addColumn'](_0x237502(0x88),_0x237502(0xa2),{'type':_0x33935b['DATE']}),_0x450fd9[_0x237502(0xaa)](_0x237502(0x8a),_0x237502(0x9f),{'type':_0x33935b[_0x237502(0x6d)]('in',_0x237502(0x77)),'defaultValue':'in','allowNull':![]}),_0x450fd9[_0x237502(0xaa)]('openchannel_interactions',_0x237502(0xa2),{'type':_0x33935b[_0x237502(0x71)]}),_0x450fd9['addColumn'](_0x237502(0x98),'lastMsgDirection',{'type':_0x33935b[_0x237502(0x6d)]('in',_0x237502(0x77)),'defaultValue':'in','allowNull':![]}),_0x450fd9[_0x237502(0xaa)](_0x237502(0x98),_0x237502(0xa2),{'type':_0x33935b[_0x237502(0x71)]});const _0x81fd5=[_0x237502(0x7b),_0x237502(0xb0),'Sms',_0x237502(0x92)];for(let _0xab6636=0x0;_0xab6636<_0x81fd5[_0x237502(0x68)];_0xab6636++){_0x450fd9['query']('UPDATE\x20'+_0x81fd5[_0xab6636]['toLowerCase']()+_0x237502(0x8c)+_0x81fd5[_0xab6636]+_0x237502(0x69)+_0x81fd5[_0xab6636][_0x237502(0xa3)]()+_0x237502(0x8d)+_0x81fd5[_0xab6636]+_0x237502(0x97)+_0x81fd5[_0xab6636]+_0x237502(0x7a)+_0x81fd5[_0xab6636]+_0x237502(0x99));}_0x450fd9['query'](_0x237502(0x7f)),_0x450fd9['changeColumn'](_0x237502(0xa8),'type',{'type':_0x33935b[_0x237502(0x6d)](_0x237502(0x89),_0x237502(0x96),_0x237502(0x9d))}),_0x450fd9[_0x237502(0xaa)](_0x237502(0x81),'note',{'type':_0x33935b['STRING']}),_0x450fd9[_0x237502(0x95)](_0x237502(0x9e),['phone'],'phone'),_0x450fd9['addIndex'](_0x237502(0x6e),[_0x237502(0x67)],_0x237502(0x67)),_0x450fd9[_0x237502(0x95)]('cm_hopper_history',['uniqueid'],_0x237502(0x67)),_0x450fd9[_0x237502(0x95)](_0x237502(0x90),[_0x237502(0x67)],_0x237502(0x67)),_0x450fd9[_0x237502(0x95)](_0x237502(0x78),[_0x237502(0xaf),_0x237502(0x9b)],_0x237502(0x8f)),_0x450fd9['query'](_0x237502(0x64)),_0x450fd9['query'](_0x237502(0x6a)),_0x450fd9[_0x237502(0x76)](_0x237502(0x65)),_0x450fd9[_0x237502(0x76)](_0x237502(0x94)),_0x450fd9['query'](_0x237502(0xa0)),_0x450fd9[_0x237502(0x76)](_0x237502(0x74)),_0x450fd9[_0x237502(0x76)](_0x237502(0x91)),_0x450fd9[_0x237502(0x76)](_0x237502(0x66)),_0x450fd9[_0x237502(0x76)]('INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\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());'),_0x450fd9[_0x237502(0x76)](_0x237502(0x72)),_0x450fd9['query']('INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x279\x27,\x20\x27gotoif\x27,\x20\x27$[\x22${AMDSTATUS}\x22\x20==\x20\x22NOTSURE\x22\x20]?11:10\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());'),_0x450fd9['query'](_0x237502(0xa4)),_0x450fd9[_0x237502(0x76)]('INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\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());'),_0x450fd9[_0x237502(0x76)]('INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\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());'),_0x450fd9[_0x237502(0x76)](_0x237502(0xab)),_0x450fd9[_0x237502(0x76)]('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());'),_0x450fd9['final'](_0x47e779);});},'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 8101ea1..de609af 100644 --- a/server/migrations/2.0.52.js +++ b/server/migrations/2.0.52.js @@ -1 +1 @@ -const a930_0x3724=['addIndex','STRING','ENUM','DATE','#ffffff','removeColumn','finally','changeColumn','enqueue','addColumn','FaxAccountId','inspect','stringify','UPDATE\x20users\x20SET\x20passwordResetAt=NOW()','info','Added\x20column\x20%s\x20to\x20%s','settings','exports','clicksend','../config/logger','INTEGER','table\x20dropped\x20%s','tools_canned_answers','Removed\x20column\x20%s\x20from\x20%s','foreground','users','billableseconds','addIndex\x20%s\x20%s\x20%s','queryInterface','then','report_dial','migration','passwordExpiresDays','join','SmsAccountId','BOOLEAN','connectel','OpenchannelAccountId','catch','holdtime','callRecordingEncryption','background','prototype','MailAccountId','UPDATE\x20settings\x20SET\x20securePassword=false\x20WHERE\x20id=1','dashboard_items','duration','Changed\x20column\x20%s\x20in\x20table\x20%s','ALTER\x20TABLE\x20`tools_canned_answers`\x20\x20\x20\x20\x20\x20\x20\x20\x20ADD\x20CONSTRAINT\x20`tools_canned_answers_ibfk_2`\x20\x20\x20\x20\x20\x20\x20\x20\x20FOREIGN\x20KEY\x20(`FaxAccountId`)\x20\x20\x20\x20\x20\x20\x20\x20\x20REFERENCES\x20fax_accounts(`id`)\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20UPDATE\x20CASCADE\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20DELETE\x20CASCADE','sms_accounts','tail','query','ChatWebsiteId','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','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','sequence','query\x20%s','final'];(function(_0x489917,_0x37244e){const _0x21339e=function(_0x11d1e6){while(--_0x11d1e6){_0x489917['push'](_0x489917['shift']());}};_0x21339e(++_0x37244e);}(a930_0x3724,0x178));const a930_0x2133=function(_0x489917,_0x37244e){_0x489917=_0x489917-0x0;let _0x21339e=a930_0x3724[_0x489917];return _0x21339e;};const _0x52015b=a930_0x2133;'use strict';const util=require('util'),logger=require(_0x52015b('0x31'))(_0x52015b('0x3')),Sequence=function(){};Sequence[_0x52015b('0xe')][_0x52015b('0x26')]=function(_0x11d1e6){const _0x33a892=_0x52015b;this[_0x33a892('0x16')]=this['tail']?this[_0x33a892('0x16')][_0x33a892('0x24')](_0x11d1e6):_0x11d1e6();};const Migration=function(_0x273534){const _0xdf6cb8=_0x52015b;this[_0xdf6cb8('0x0')]=_0x273534,this[_0xdf6cb8('0x1b')]=new Sequence();};Migration['prototype'][_0x52015b('0x25')]=function(_0x4b1e18,_0x1a886a,_0x389a42){const _0x34fe7d=_0x52015b,_0x1ba18a=this;this['sequence'][_0x34fe7d('0x26')](function(){const _0x37f66a=_0x34fe7d;return _0x1ba18a[_0x37f66a('0x0')][_0x37f66a('0x25')](_0x4b1e18,_0x1a886a,_0x389a42)['then'](function(){const _0x3e6546=_0x37f66a;logger['info'](_0x3e6546('0x13'),_0x1a886a,_0x4b1e18);})[_0x37f66a('0xa')](function(_0x505349){const _0x475f71=_0x37f66a;logger[_0x475f71('0x2c')](JSON['stringify'](_0x505349));});});},Migration[_0x52015b('0xe')][_0x52015b('0x27')]=function(_0x2097a8,_0x555396,_0x57961c){const _0x5b5d5b=_0x52015b,_0x28500d=this;this[_0x5b5d5b('0x1b')][_0x5b5d5b('0x26')](function(){const _0x11d05a=_0x5b5d5b;return _0x28500d[_0x11d05a('0x0')][_0x11d05a('0x27')](_0x2097a8,_0x555396,_0x57961c)[_0x11d05a('0x1')](function(){const _0x474a9e=_0x11d05a;logger['info'](_0x474a9e('0x2d'),_0x555396,_0x2097a8);})[_0x11d05a('0xa')](function(_0x57dec5){const _0x4e91f8=_0x11d05a;logger[_0x4e91f8('0x2c')](JSON['stringify'](_0x57dec5));});});},Migration[_0x52015b('0xe')]['dropTable']=function(_0x22f15a){const _0x382e95=_0x52015b,_0x298448=this;this[_0x382e95('0x1b')]['enqueue'](function(){const _0x432a45=_0x382e95;return _0x298448['queryInterface']['dropTable'](_0x22f15a,{'force':!![]})[_0x432a45('0x1')](function(){const _0x163437=_0x432a45;logger[_0x163437('0x2c')](_0x163437('0x33'),_0x22f15a);})[_0x432a45('0xa')](function(_0x4d1560){const _0x43acbb=_0x432a45;logger['info'](JSON[_0x43acbb('0x2a')](_0x4d1560));});});},Migration[_0x52015b('0xe')][_0x52015b('0x1e')]=function(_0x351f57,_0x59b3dd,_0x41d250){const _0x36c95b=_0x52015b,_0x19daff=this;this[_0x36c95b('0x1b')][_0x36c95b('0x26')](function(){const _0xac6e7d=_0x36c95b;return _0x19daff[_0xac6e7d('0x0')][_0xac6e7d('0x1e')](_0x351f57,_0x59b3dd,{'indexName':_0x41d250})[_0xac6e7d('0x1')](function(){const _0x220a21=_0xac6e7d;logger['info'](_0x220a21('0x39'),_0x351f57,_0x59b3dd[_0x220a21('0x5')](','),_0x41d250);})[_0xac6e7d('0xa')](function(_0x328d29){const _0x2998a0=_0xac6e7d;logger['info'](JSON[_0x2998a0('0x2a')](_0x328d29));});});},Migration[_0x52015b('0xe')][_0x52015b('0x17')]=function(_0x167646){const _0x8849c4=_0x52015b,_0x3a05b3=this;this[_0x8849c4('0x1b')][_0x8849c4('0x26')](function(){const _0x461a0a=_0x8849c4;return _0x3a05b3[_0x461a0a('0x0')]['sequelize']['query'](_0x167646)['then'](function(){const _0x1d36c4=_0x461a0a;logger['info'](_0x1d36c4('0x1c'),_0x167646);})[_0x461a0a('0xa')](function(_0x1583bb){logger['info'](JSON['stringify'](_0x1583bb));});});},Migration[_0x52015b('0xe')][_0x52015b('0x23')]=function(_0x48dd41,_0xe87064){const _0xacbfb9=_0x52015b,_0x25ae7d=this;this['sequence'][_0xacbfb9('0x26')](function(){const _0x263b4e=_0xacbfb9;return _0x25ae7d[_0x263b4e('0x0')]['removeColumn'](_0x48dd41,_0xe87064)['then'](function(){const _0x18f7c4=_0x263b4e;logger[_0x18f7c4('0x2c')](_0x18f7c4('0x35'),_0xe87064,_0x48dd41);})[_0x263b4e('0xa')](function(_0x357ac7){const _0x9dcc04=_0x263b4e;logger['info'](util[_0x9dcc04('0x29')](_0x357ac7,{'showHidden':![],'depth':null}));});});},Migration[_0x52015b('0xe')][_0x52015b('0x1d')]=function(_0x2c0cec){const _0x5275bc=_0x52015b;this[_0x5275bc('0x1b')][_0x5275bc('0x26')](function(){return _0x2c0cec();});},module[_0x52015b('0x2f')]={'up':function(_0x2e49ae,_0x17a074){return new Promise(function(_0x229516){const _0x5935a7=a930_0x2133,_0x563eb6=new Migration(_0x2e49ae);_0x563eb6[_0x5935a7('0x27')](_0x5935a7('0x2e'),_0x5935a7('0xc'),{'type':_0x17a074[_0x5935a7('0x7')],'defaultValue':![]}),_0x563eb6['addColumn']('settings',_0x5935a7('0x4'),{'type':_0x17a074[_0x5935a7('0x32')](0xb),'defaultValue':0x5a}),_0x563eb6[_0x5935a7('0x17')](_0x5935a7('0x10')),_0x563eb6[_0x5935a7('0x27')](_0x5935a7('0x34'),_0x5935a7('0xf'),{'type':_0x17a074['INTEGER']}),_0x563eb6[_0x5935a7('0x27')](_0x5935a7('0x34'),_0x5935a7('0x28'),{'type':_0x17a074[_0x5935a7('0x32')]}),_0x563eb6[_0x5935a7('0x27')](_0x5935a7('0x34'),_0x5935a7('0x6'),{'type':_0x17a074[_0x5935a7('0x32')]}),_0x563eb6[_0x5935a7('0x27')]('tools_canned_answers',_0x5935a7('0x9'),{'type':_0x17a074[_0x5935a7('0x32')]}),_0x563eb6[_0x5935a7('0x27')]('tools_canned_answers',_0x5935a7('0x18'),{'type':_0x17a074[_0x5935a7('0x32')]}),_0x563eb6[_0x5935a7('0x17')](_0x5935a7('0x19')),_0x563eb6['query'](_0x5935a7('0x14')),_0x563eb6['query']('ALTER\x20TABLE\x20`tools_canned_answers`\x20\x20\x20\x20\x20\x20\x20\x20\x20ADD\x20CONSTRAINT\x20`tools_canned_answers_ibfk_3`\x20\x20\x20\x20\x20\x20\x20\x20\x20FOREIGN\x20KEY\x20(`SmsAccountId`)\x20\x20\x20\x20\x20\x20\x20\x20\x20REFERENCES\x20sms_accounts(`id`)\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20UPDATE\x20CASCADE\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20DELETE\x20CASCADE'),_0x563eb6[_0x5935a7('0x17')]('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'),_0x563eb6['query'](_0x5935a7('0x1a')),_0x563eb6[_0x5935a7('0x27')](_0x5935a7('0x37'),'passwordResetAt',{'type':_0x17a074[_0x5935a7('0x21')],'defaultValue':null}),_0x563eb6[_0x5935a7('0x17')](_0x5935a7('0x2b')),_0x563eb6[_0x5935a7('0x27')](_0x5935a7('0x2'),_0x5935a7('0x12'),{'type':_0x17a074[_0x5935a7('0x32')]}),_0x563eb6[_0x5935a7('0x27')](_0x5935a7('0x2'),_0x5935a7('0xb'),{'type':_0x17a074[_0x5935a7('0x32')]}),_0x563eb6[_0x5935a7('0x27')](_0x5935a7('0x2'),_0x5935a7('0x38'),{'type':_0x17a074['INTEGER']}),_0x563eb6[_0x5935a7('0x25')](_0x5935a7('0x15'),'type',{'type':_0x17a074[_0x5935a7('0x20')]('twilio','skebby',_0x5935a7('0x8'),_0x5935a7('0x30'))}),_0x563eb6[_0x5935a7('0x27')]('dashboard_items',_0x5935a7('0xd'),{'type':_0x17a074['STRING'],'allowNull':![],'defaultValue':_0x5935a7('0x22'),'validate':{'notEmpty':!![]}}),_0x563eb6[_0x5935a7('0x27')](_0x5935a7('0x11'),_0x5935a7('0x36'),{'type':_0x17a074[_0x5935a7('0x1f')],'allowNull':![],'defaultValue':'#2196f3','validate':{'notEmpty':!![]}}),_0x563eb6[_0x5935a7('0x27')](_0x5935a7('0x11'),'link',{'type':_0x17a074['STRING']}),_0x563eb6[_0x5935a7('0x1d')](_0x229516);});},'down':function(){}}; \ No newline at end of file +const a1092_0x1191=['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','connectel','FaxAccountId','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','type','catch','INTEGER','tail','enqueue','OpenchannelAccountId','dropTable','tools_canned_answers','UPDATE\x20settings\x20SET\x20securePassword=false\x20WHERE\x20id=1','users','UPDATE\x20users\x20SET\x20passwordResetAt=NOW()','prototype','join','twilio','then','Changed\x20column\x20%s\x20in\x20table\x20%s','query','sms_accounts','#2196f3','info','addColumn','billableseconds','queryInterface','removeColumn','link','../config/logger','SmsAccountId','query\x20%s','sequence','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','final','holdtime','sequelize','STRING','inspect','stringify','passwordResetAt','ENUM','foreground','addIndex','#ffffff','dashboard_items','finally','report_dial','BOOLEAN','changeColumn','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','ChatWebsiteId'];(function(_0x43aba8,_0x4c2609){const _0x1191da=function(_0x3c3fa2){while(--_0x3c3fa2){_0x43aba8['push'](_0x43aba8['shift']());}};_0x1191da(++_0x4c2609);}(a1092_0x1191,0x1f1));const a1092_0x3c3f=function(_0x43aba8,_0x4c2609){_0x43aba8=_0x43aba8-0xa4;let _0x1191da=a1092_0x1191[_0x43aba8];return _0x1191da;};const a1092_0x255b65=a1092_0x3c3f;'use strict';const util=require('util'),logger=require(a1092_0x255b65(0xa4))('migration'),Sequence=function(){};Sequence['prototype'][a1092_0x255b65(0xc3)]=function(_0x339ea6){const _0x597434=a1092_0x255b65;this['tail']=this[_0x597434(0xc2)]?this[_0x597434(0xc2)][_0x597434(0xb5)](_0x339ea6):_0x339ea6();};const Migration=function(_0x397a79){const _0x11ede6=a1092_0x255b65;this[_0x11ede6(0xd5)]=_0x397a79,this['sequence']=new Sequence();};Migration['prototype'][a1092_0x255b65(0xb8)]=function(_0x503899,_0x2d8e07,_0x4e181a){const _0x4cf29e=a1092_0x255b65,_0x42eda9=this;this[_0x4cf29e(0xa7)]['enqueue'](function(){const _0x257bdf=_0x4cf29e;return _0x42eda9[_0x257bdf(0xd5)][_0x257bdf(0xb8)](_0x503899,_0x2d8e07,_0x4e181a)['then'](function(){const _0x522d4a=_0x257bdf;logger['info'](_0x522d4a(0xce),_0x2d8e07,_0x503899);})['catch'](function(_0x7e5019){const _0x556b3c=_0x257bdf;logger[_0x556b3c(0xd2)](JSON[_0x556b3c(0xae)](_0x7e5019));});});},Migration[a1092_0x255b65(0xca)]['addColumn']=function(_0x39b453,_0x2645e4,_0xecf1c7){const _0x3d9cd8=a1092_0x255b65,_0x35d42d=this;this[_0x3d9cd8(0xa7)]['enqueue'](function(){const _0x506590=_0x3d9cd8;return _0x35d42d[_0x506590(0xd5)]['addColumn'](_0x39b453,_0x2645e4,_0xecf1c7)[_0x506590(0xcd)](function(){const _0x3dd5cf=_0x506590;logger[_0x3dd5cf(0xd2)]('Added\x20column\x20%s\x20to\x20%s',_0x2645e4,_0x39b453);})[_0x506590(0xc0)](function(_0x1f0357){const _0x9b4810=_0x506590;logger[_0x9b4810(0xd2)](JSON[_0x9b4810(0xae)](_0x1f0357));});});},Migration[a1092_0x255b65(0xca)][a1092_0x255b65(0xc5)]=function(_0xa644bd){const _0xbe2c61=a1092_0x255b65,_0x365de8=this;this[_0xbe2c61(0xa7)][_0xbe2c61(0xc3)](function(){const _0x1844ef=_0xbe2c61;return _0x365de8[_0x1844ef(0xd5)][_0x1844ef(0xc5)](_0xa644bd,{'force':!![]})[_0x1844ef(0xcd)](function(){const _0x4482c0=_0x1844ef;logger[_0x4482c0(0xd2)]('table\x20dropped\x20%s',_0xa644bd);})[_0x1844ef(0xc0)](function(_0x196615){const _0x1dd1fe=_0x1844ef;logger[_0x1dd1fe(0xd2)](JSON['stringify'](_0x196615));});});},Migration['prototype'][a1092_0x255b65(0xb2)]=function(_0x41fde9,_0x1774ce,_0x5a600f){const _0x1b4cab=a1092_0x255b65,_0xc8a3dc=this;this[_0x1b4cab(0xa7)]['enqueue'](function(){const _0x721662=_0x1b4cab;return _0xc8a3dc[_0x721662(0xd5)][_0x721662(0xb2)](_0x41fde9,_0x1774ce,{'indexName':_0x5a600f})[_0x721662(0xcd)](function(){const _0xb2b4a6=_0x721662;logger[_0xb2b4a6(0xd2)]('addIndex\x20%s\x20%s\x20%s',_0x41fde9,_0x1774ce[_0xb2b4a6(0xcb)](','),_0x5a600f);})[_0x721662(0xc0)](function(_0x5b205b){const _0xf9c7f7=_0x721662;logger['info'](JSON[_0xf9c7f7(0xae)](_0x5b205b));});});},Migration[a1092_0x255b65(0xca)]['query']=function(_0x755777){const _0x168a38=a1092_0x255b65,_0x2ed8b8=this;this[_0x168a38(0xa7)][_0x168a38(0xc3)](function(){const _0x4a8db8=_0x168a38;return _0x2ed8b8[_0x4a8db8(0xd5)][_0x4a8db8(0xab)][_0x4a8db8(0xcf)](_0x755777)[_0x4a8db8(0xcd)](function(){const _0x443482=_0x4a8db8;logger['info'](_0x443482(0xa6),_0x755777);})[_0x4a8db8(0xc0)](function(_0x478155){const _0x1be8ba=_0x4a8db8;logger[_0x1be8ba(0xd2)](JSON[_0x1be8ba(0xae)](_0x478155));});});},Migration[a1092_0x255b65(0xca)][a1092_0x255b65(0xd6)]=function(_0x597d97,_0x1bfecd){const _0x50b8be=a1092_0x255b65,_0x1ba047=this;this[_0x50b8be(0xa7)][_0x50b8be(0xc3)](function(){const _0x14d147=_0x50b8be;return _0x1ba047['queryInterface'][_0x14d147(0xd6)](_0x597d97,_0x1bfecd)[_0x14d147(0xcd)](function(){const _0x9c06c6=_0x14d147;logger[_0x9c06c6(0xd2)]('Removed\x20column\x20%s\x20from\x20%s',_0x1bfecd,_0x597d97);})[_0x14d147(0xc0)](function(_0x2c1757){const _0x141bd4=_0x14d147;logger[_0x141bd4(0xd2)](util[_0x141bd4(0xad)](_0x2c1757,{'showHidden':![],'depth':null}));});});},Migration['prototype']['final']=function(_0x3d1de4){const _0x51d2f4=a1092_0x255b65;this[_0x51d2f4(0xa7)][_0x51d2f4(0xc3)](function(){return _0x3d1de4();});},module['exports']={'up':function(_0x3f6666,_0x48d343){return new Promise(function(_0x175cc5){const _0x3c7e89=a1092_0x3c3f,_0x4ef6dd=new Migration(_0x3f6666);_0x4ef6dd['addColumn']('settings','callRecordingEncryption',{'type':_0x48d343[_0x3c7e89(0xb7)],'defaultValue':![]}),_0x4ef6dd[_0x3c7e89(0xd3)]('settings','passwordExpiresDays',{'type':_0x48d343[_0x3c7e89(0xc1)](0xb),'defaultValue':0x5a}),_0x4ef6dd[_0x3c7e89(0xcf)](_0x3c7e89(0xc7)),_0x4ef6dd[_0x3c7e89(0xd3)]('tools_canned_answers','MailAccountId',{'type':_0x48d343[_0x3c7e89(0xc1)]}),_0x4ef6dd['addColumn']('tools_canned_answers',_0x3c7e89(0xbd),{'type':_0x48d343['INTEGER']}),_0x4ef6dd[_0x3c7e89(0xd3)](_0x3c7e89(0xc6),_0x3c7e89(0xa5),{'type':_0x48d343['INTEGER']}),_0x4ef6dd[_0x3c7e89(0xd3)](_0x3c7e89(0xc6),_0x3c7e89(0xc4),{'type':_0x48d343[_0x3c7e89(0xc1)]}),_0x4ef6dd['addColumn'](_0x3c7e89(0xc6),_0x3c7e89(0xba),{'type':_0x48d343[_0x3c7e89(0xc1)]}),_0x4ef6dd[_0x3c7e89(0xcf)](_0x3c7e89(0xbb)),_0x4ef6dd[_0x3c7e89(0xcf)](_0x3c7e89(0xa8)),_0x4ef6dd[_0x3c7e89(0xcf)]('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'),_0x4ef6dd[_0x3c7e89(0xcf)](_0x3c7e89(0xb9)),_0x4ef6dd[_0x3c7e89(0xcf)](_0x3c7e89(0xbe)),_0x4ef6dd[_0x3c7e89(0xd3)](_0x3c7e89(0xc8),_0x3c7e89(0xaf),{'type':_0x48d343['DATE'],'defaultValue':null}),_0x4ef6dd[_0x3c7e89(0xcf)](_0x3c7e89(0xc9)),_0x4ef6dd['addColumn']('report_dial','duration',{'type':_0x48d343['INTEGER']}),_0x4ef6dd[_0x3c7e89(0xd3)](_0x3c7e89(0xb6),_0x3c7e89(0xaa),{'type':_0x48d343[_0x3c7e89(0xc1)]}),_0x4ef6dd[_0x3c7e89(0xd3)](_0x3c7e89(0xb6),_0x3c7e89(0xd4),{'type':_0x48d343[_0x3c7e89(0xc1)]}),_0x4ef6dd[_0x3c7e89(0xb8)](_0x3c7e89(0xd0),_0x3c7e89(0xbf),{'type':_0x48d343[_0x3c7e89(0xb0)](_0x3c7e89(0xcc),'skebby',_0x3c7e89(0xbc),'clicksend')}),_0x4ef6dd[_0x3c7e89(0xd3)](_0x3c7e89(0xb4),'background',{'type':_0x48d343[_0x3c7e89(0xac)],'allowNull':![],'defaultValue':_0x3c7e89(0xb3),'validate':{'notEmpty':!![]}}),_0x4ef6dd[_0x3c7e89(0xd3)](_0x3c7e89(0xb4),_0x3c7e89(0xb1),{'type':_0x48d343[_0x3c7e89(0xac)],'allowNull':![],'defaultValue':_0x3c7e89(0xd1),'validate':{'notEmpty':!![]}}),_0x4ef6dd['addColumn']('dashboard_items',_0x3c7e89(0xd7),{'type':_0x48d343[_0x3c7e89(0xac)]}),_0x4ef6dd[_0x3c7e89(0xa9)](_0x175cc5);});},'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 25dd601..ff41c4b 100644 --- a/server/migrations/2.0.53.js +++ b/server/migrations/2.0.53.js @@ -1 +1 @@ -const a931_0x5d24=['table\x20dropped\x20%s','removeColumn','csv','inspect','exports','stringify','ENUM','catch','info','plivo','xlsx','prototype','addColumn','output','type','sequence','query\x20%s','final','users','analytics_extracted_reports','changeColumn','Removed\x20column\x20%s\x20from\x20%s','STRING','Added\x20column\x20%s\x20to\x20%s','util','sms_accounts','finally','addIndex','query','queryInterface','dropTable','tail','TEXT','pdf','sequelize','twilio','enqueue','then','migration','join','UPDATE\x20users\x20SET\x20insecure=NULL\x20WHERE\x20insecure=\x27port,invite\x27','description','UPDATE\x20analytics_extracted_reports\x20SET\x20output=\x27xlsx\x27\x20WHERE\x20output=\x27xls\x27'];(function(_0x3571c5,_0x5d243f){const _0x240ef6=function(_0x201213){while(--_0x201213){_0x3571c5['push'](_0x3571c5['shift']());}};_0x240ef6(++_0x5d243f);}(a931_0x5d24,0xbe));const a931_0x240e=function(_0x3571c5,_0x5d243f){_0x3571c5=_0x3571c5-0x0;let _0x240ef6=a931_0x5d24[_0x3571c5];return _0x240ef6;};const _0x1dbe3a=a931_0x240e;'use strict';const util=require(_0x1dbe3a('0x6')),logger=require('../config/logger')(_0x1dbe3a('0x14')),Sequence=function(){};Sequence['prototype'][_0x1dbe3a('0x12')]=function(_0x201213){const _0x5c2cf5=_0x1dbe3a;this['tail']=this[_0x5c2cf5('0xd')]?this[_0x5c2cf5('0xd')][_0x5c2cf5('0x8')](_0x201213):_0x201213();};const Migration=function(_0x3d75fa){const _0x96de61=_0x1dbe3a;this[_0x96de61('0xb')]=_0x3d75fa,this[_0x96de61('0x28')]=new Sequence();};Migration[_0x1dbe3a('0x24')][_0x1dbe3a('0x2')]=function(_0x2e77be,_0x52ac43,_0x4d66a4){const _0x4db7cb=_0x1dbe3a,_0x4af501=this;this[_0x4db7cb('0x28')][_0x4db7cb('0x12')](function(){const _0x174fae=_0x4db7cb;return _0x4af501['queryInterface']['changeColumn'](_0x2e77be,_0x52ac43,_0x4d66a4)[_0x174fae('0x13')](function(){const _0x28a84f=_0x174fae;logger[_0x28a84f('0x21')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x52ac43,_0x2e77be);})[_0x174fae('0x20')](function(_0x41fa5e){const _0x4c1a63=_0x174fae;logger[_0x4c1a63('0x21')](JSON[_0x4c1a63('0x1e')](_0x41fa5e));});});},Migration[_0x1dbe3a('0x24')][_0x1dbe3a('0x25')]=function(_0x1fc463,_0x2f475e,_0x45db49){const _0x247aba=_0x1dbe3a,_0x42458d=this;this[_0x247aba('0x28')][_0x247aba('0x12')](function(){const _0x51932d=_0x247aba;return _0x42458d[_0x51932d('0xb')][_0x51932d('0x25')](_0x1fc463,_0x2f475e,_0x45db49)[_0x51932d('0x13')](function(){const _0x39df92=_0x51932d;logger[_0x39df92('0x21')](_0x39df92('0x5'),_0x2f475e,_0x1fc463);})['catch'](function(_0x13f873){const _0xd5b274=_0x51932d;logger[_0xd5b274('0x21')](JSON[_0xd5b274('0x1e')](_0x13f873));});});},Migration[_0x1dbe3a('0x24')]['dropTable']=function(_0x13e5fe){const _0x31d22e=_0x1dbe3a,_0x5c1103=this;this[_0x31d22e('0x28')][_0x31d22e('0x12')](function(){const _0x3da990=_0x31d22e;return _0x5c1103['queryInterface'][_0x3da990('0xc')](_0x13e5fe,{'force':!![]})[_0x3da990('0x13')](function(){const _0x56cb5c=_0x3da990;logger['info'](_0x56cb5c('0x19'),_0x13e5fe);})[_0x3da990('0x20')](function(_0x56baf2){const _0x379196=_0x3da990;logger[_0x379196('0x21')](JSON[_0x379196('0x1e')](_0x56baf2));});});},Migration[_0x1dbe3a('0x24')][_0x1dbe3a('0x9')]=function(_0x19733d,_0x7e4b57,_0x2b4dae){const _0x4414dd=_0x1dbe3a,_0xfd0388=this;this[_0x4414dd('0x28')][_0x4414dd('0x12')](function(){const _0x1cc37f=_0x4414dd;return _0xfd0388['queryInterface']['addIndex'](_0x19733d,_0x7e4b57,{'indexName':_0x2b4dae})[_0x1cc37f('0x13')](function(){const _0x37c306=_0x1cc37f;logger[_0x37c306('0x21')]('addIndex\x20%s\x20%s\x20%s',_0x19733d,_0x7e4b57[_0x37c306('0x15')](','),_0x2b4dae);})[_0x1cc37f('0x20')](function(_0x4a5760){const _0x194bcc=_0x1cc37f;logger['info'](JSON[_0x194bcc('0x1e')](_0x4a5760));});});},Migration[_0x1dbe3a('0x24')][_0x1dbe3a('0xa')]=function(_0x293656){const _0xc2c9a7=_0x1dbe3a,_0x2a44ec=this;this[_0xc2c9a7('0x28')][_0xc2c9a7('0x12')](function(){const _0xde8f91=_0xc2c9a7;return _0x2a44ec['queryInterface'][_0xde8f91('0x10')][_0xde8f91('0xa')](_0x293656)[_0xde8f91('0x13')](function(){const _0x1cc8e2=_0xde8f91;logger[_0x1cc8e2('0x21')](_0x1cc8e2('0x29'),_0x293656);})['catch'](function(_0x4ffffd){const _0x58a0cb=_0xde8f91;logger[_0x58a0cb('0x21')](JSON[_0x58a0cb('0x1e')](_0x4ffffd));});});},Migration['prototype'][_0x1dbe3a('0x1a')]=function(_0x4da6f2,_0x4b275b){const _0x235e2e=_0x1dbe3a,_0x2ac4d9=this;this[_0x235e2e('0x28')][_0x235e2e('0x12')](function(){const _0x474fde=_0x235e2e;return _0x2ac4d9[_0x474fde('0xb')][_0x474fde('0x1a')](_0x4da6f2,_0x4b275b)['then'](function(){const _0xe05eb2=_0x474fde;logger['info'](_0xe05eb2('0x3'),_0x4b275b,_0x4da6f2);})[_0x474fde('0x20')](function(_0x308d6d){const _0x4c5738=_0x474fde;logger[_0x4c5738('0x21')](util[_0x4c5738('0x1c')](_0x308d6d,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x1dbe3a('0x2a')]=function(_0x8fb158){const _0x15b4fe=_0x1dbe3a;this[_0x15b4fe('0x28')][_0x15b4fe('0x12')](function(){return _0x8fb158();});},module[_0x1dbe3a('0x1d')]={'up':function(_0x18290d,_0x794b25){return new Promise(function(_0x34ff10){const _0x124c41=a931_0x240e,_0x29d99d=new Migration(_0x18290d);_0x29d99d[_0x124c41('0x2')]('cm_contacts',_0x124c41('0x17'),{'type':_0x794b25[_0x124c41('0xe')]}),_0x29d99d[_0x124c41('0x2')](_0x124c41('0x7'),_0x124c41('0x27'),{'type':_0x794b25['ENUM'](_0x124c41('0x11'),'skebby','connectel','clicksend',_0x124c41('0x22'))}),_0x29d99d[_0x124c41('0x2')](_0x124c41('0x1'),'output',{'type':_0x794b25['ENUM'](_0x124c41('0x1b'),'pdf','xls',_0x124c41('0x23')),'allowNull':![],'defaultValue':_0x124c41('0x1b')}),_0x29d99d[_0x124c41('0xa')](_0x124c41('0x18')),_0x29d99d[_0x124c41('0x2')](_0x124c41('0x1'),_0x124c41('0x26'),{'type':_0x794b25[_0x124c41('0x1f')](_0x124c41('0x1b'),_0x124c41('0xf'),_0x124c41('0x23')),'allowNull':![],'defaultValue':_0x124c41('0x1b')}),_0x29d99d[_0x124c41('0xa')](_0x124c41('0x16')),_0x29d99d[_0x124c41('0x2')](_0x124c41('0x0'),'insecure',{'type':_0x794b25[_0x124c41('0x4')],'allowNull':!![]}),_0x29d99d['final'](_0x34ff10);});},'down':function(){}}; \ No newline at end of file +const a1093_0xf536=['prototype','STRING','xls','query','join','skebby','type','TEXT','Added\x20column\x20%s\x20to\x20%s','xlsx','tail','sequence','description','ENUM','queryInterface','addIndex\x20%s\x20%s\x20%s','migration','catch','table\x20dropped\x20%s','Removed\x20column\x20%s\x20from\x20%s','addIndex','enqueue','output','changeColumn','query\x20%s','plivo','users','util','../config/logger','insecure','analytics_extracted_reports','csv','then','info','stringify','Changed\x20column\x20%s\x20in\x20table\x20%s','clicksend','twilio','exports','cm_contacts','connectel','final','removeColumn','addColumn','finally'];(function(_0x5b4bad,_0x5f5bbe){const _0xf53652=function(_0x2ec398){while(--_0x2ec398){_0x5b4bad['push'](_0x5b4bad['shift']());}};_0xf53652(++_0x5f5bbe);}(a1093_0xf536,0x77));const a1093_0x2ec3=function(_0x5b4bad,_0x5f5bbe){_0x5b4bad=_0x5b4bad-0x1ba;let _0xf53652=a1093_0xf536[_0x5b4bad];return _0xf53652;};const a1093_0x2fce2c=a1093_0x2ec3;'use strict';const util=require(a1093_0x2fce2c(0x1e5)),logger=require(a1093_0x2fce2c(0x1e6))(a1093_0x2fce2c(0x1da)),Sequence=function(){};Sequence[a1093_0x2fce2c(0x1ca)][a1093_0x2fce2c(0x1df)]=function(_0x202b5d){const _0x3957d6=a1093_0x2fce2c;this['tail']=this[_0x3957d6(0x1d4)]?this[_0x3957d6(0x1d4)][_0x3957d6(0x1c9)](_0x202b5d):_0x202b5d();};const Migration=function(_0x4cb14d){const _0x37d2f0=a1093_0x2fce2c;this[_0x37d2f0(0x1d8)]=_0x4cb14d,this[_0x37d2f0(0x1d5)]=new Sequence();};Migration[a1093_0x2fce2c(0x1ca)][a1093_0x2fce2c(0x1e1)]=function(_0x1415b8,_0x28ff48,_0x5d4ae9){const _0x14b0e3=a1093_0x2fce2c,_0x17c950=this;this[_0x14b0e3(0x1d5)]['enqueue'](function(){const _0x17b40c=_0x14b0e3;return _0x17c950['queryInterface'][_0x17b40c(0x1e1)](_0x1415b8,_0x28ff48,_0x5d4ae9)[_0x17b40c(0x1bd)](function(){const _0x57a7e3=_0x17b40c;logger[_0x57a7e3(0x1be)](_0x57a7e3(0x1c0),_0x28ff48,_0x1415b8);})[_0x17b40c(0x1db)](function(_0x4b8290){const _0xec4b53=_0x17b40c;logger[_0xec4b53(0x1be)](JSON['stringify'](_0x4b8290));});});},Migration[a1093_0x2fce2c(0x1ca)]['addColumn']=function(_0x429d30,_0x4ae3e2,_0x195b3e){const _0x4d7287=a1093_0x2fce2c,_0x320228=this;this['sequence'][_0x4d7287(0x1df)](function(){const _0x41e63a=_0x4d7287;return _0x320228[_0x41e63a(0x1d8)][_0x41e63a(0x1c8)](_0x429d30,_0x4ae3e2,_0x195b3e)['then'](function(){const _0xffd903=_0x41e63a;logger[_0xffd903(0x1be)](_0xffd903(0x1d2),_0x4ae3e2,_0x429d30);})[_0x41e63a(0x1db)](function(_0x4ad115){const _0x87cff=_0x41e63a;logger[_0x87cff(0x1be)](JSON[_0x87cff(0x1bf)](_0x4ad115));});});},Migration[a1093_0x2fce2c(0x1ca)]['dropTable']=function(_0x3da4c1){const _0x15d7bd=a1093_0x2fce2c,_0x187e6c=this;this[_0x15d7bd(0x1d5)][_0x15d7bd(0x1df)](function(){const _0x199787=_0x15d7bd;return _0x187e6c[_0x199787(0x1d8)]['dropTable'](_0x3da4c1,{'force':!![]})[_0x199787(0x1bd)](function(){const _0x476dcf=_0x199787;logger[_0x476dcf(0x1be)](_0x476dcf(0x1dc),_0x3da4c1);})[_0x199787(0x1db)](function(_0x46d17a){const _0x87df15=_0x199787;logger[_0x87df15(0x1be)](JSON[_0x87df15(0x1bf)](_0x46d17a));});});},Migration['prototype'][a1093_0x2fce2c(0x1de)]=function(_0x539368,_0x5675a1,_0x5af6ab){const _0x555e39=a1093_0x2fce2c,_0x48009b=this;this[_0x555e39(0x1d5)][_0x555e39(0x1df)](function(){const _0x1714f7=_0x555e39;return _0x48009b['queryInterface']['addIndex'](_0x539368,_0x5675a1,{'indexName':_0x5af6ab})[_0x1714f7(0x1bd)](function(){const _0x902e4a=_0x1714f7;logger['info'](_0x902e4a(0x1d9),_0x539368,_0x5675a1[_0x902e4a(0x1ce)](','),_0x5af6ab);})[_0x1714f7(0x1db)](function(_0x4b510d){const _0x4e6369=_0x1714f7;logger[_0x4e6369(0x1be)](JSON[_0x4e6369(0x1bf)](_0x4b510d));});});},Migration[a1093_0x2fce2c(0x1ca)][a1093_0x2fce2c(0x1cd)]=function(_0x235f12){const _0x4addd6=a1093_0x2fce2c,_0x2df60b=this;this[_0x4addd6(0x1d5)]['enqueue'](function(){const _0x59aed5=_0x4addd6;return _0x2df60b[_0x59aed5(0x1d8)]['sequelize'][_0x59aed5(0x1cd)](_0x235f12)[_0x59aed5(0x1bd)](function(){const _0x5a62b0=_0x59aed5;logger[_0x5a62b0(0x1be)](_0x5a62b0(0x1e2),_0x235f12);})[_0x59aed5(0x1db)](function(_0x14ab84){const _0x9d563b=_0x59aed5;logger[_0x9d563b(0x1be)](JSON['stringify'](_0x14ab84));});});},Migration[a1093_0x2fce2c(0x1ca)]['removeColumn']=function(_0x5cff7e,_0x3da45e){const _0x4aa072=a1093_0x2fce2c,_0x409eb8=this;this['sequence'][_0x4aa072(0x1df)](function(){const _0x44c49b=_0x4aa072;return _0x409eb8['queryInterface'][_0x44c49b(0x1c7)](_0x5cff7e,_0x3da45e)[_0x44c49b(0x1bd)](function(){const _0x3b8878=_0x44c49b;logger[_0x3b8878(0x1be)](_0x3b8878(0x1dd),_0x3da45e,_0x5cff7e);})['catch'](function(_0x59e542){logger['info'](util['inspect'](_0x59e542,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1093_0x2fce2c(0x1c6)]=function(_0x3b2329){const _0x3ec3ed=a1093_0x2fce2c;this[_0x3ec3ed(0x1d5)][_0x3ec3ed(0x1df)](function(){return _0x3b2329();});},module[a1093_0x2fce2c(0x1c3)]={'up':function(_0x39a0f2,_0x384dcb){return new Promise(function(_0x55c020){const _0x3dba62=a1093_0x2ec3,_0x25c813=new Migration(_0x39a0f2);_0x25c813['changeColumn'](_0x3dba62(0x1c4),_0x3dba62(0x1d6),{'type':_0x384dcb[_0x3dba62(0x1d1)]}),_0x25c813[_0x3dba62(0x1e1)]('sms_accounts',_0x3dba62(0x1d0),{'type':_0x384dcb['ENUM'](_0x3dba62(0x1c2),_0x3dba62(0x1cf),_0x3dba62(0x1c5),_0x3dba62(0x1c1),_0x3dba62(0x1e3))}),_0x25c813[_0x3dba62(0x1e1)]('analytics_extracted_reports','output',{'type':_0x384dcb[_0x3dba62(0x1d7)]('csv','pdf',_0x3dba62(0x1cc),_0x3dba62(0x1d3)),'allowNull':![],'defaultValue':_0x3dba62(0x1bc)}),_0x25c813['query']('UPDATE\x20analytics_extracted_reports\x20SET\x20output=\x27xlsx\x27\x20WHERE\x20output=\x27xls\x27'),_0x25c813['changeColumn'](_0x3dba62(0x1bb),_0x3dba62(0x1e0),{'type':_0x384dcb[_0x3dba62(0x1d7)](_0x3dba62(0x1bc),'pdf','xlsx'),'allowNull':![],'defaultValue':'csv'}),_0x25c813[_0x3dba62(0x1cd)]('UPDATE\x20users\x20SET\x20insecure=NULL\x20WHERE\x20insecure=\x27port,invite\x27'),_0x25c813[_0x3dba62(0x1e1)](_0x3dba62(0x1e4),_0x3dba62(0x1ba),{'type':_0x384dcb[_0x3dba62(0x1cb)],'allowNull':!![]}),_0x25c813[_0x3dba62(0x1c6)](_0x55c020);});},'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 3b276cf..ee9ce43 100644 --- a/server/migrations/2.0.54.js +++ b/server/migrations/2.0.54.js @@ -1 +1 @@ -const a932_0x5604=['BOOLEAN','enqueue','query','STRING','catch','inspect','queryInterface','addColumn','prototype','INTEGER','markAsUnread','tools_schedules','../config/logger','UPDATE\x20users\x20SET\x20transport=\x27wss\x27\x20WHERE\x20avpf\x20IS\x20NOT\x20NULL','addIndex\x20%s\x20%s\x20%s','dropTable','fontFamily','xls','timezone','fontSize','join','changeColumn','util','UPDATE\x20tools_schedules\x20SET\x20output=\x27xlsx\x27\x20WHERE\x20output=\x27xls\x27','csv','query\x20%s','stringify','chat_websites','#ffffff','migration','then','table\x20dropped\x20%s','ENUM','info','signature','renameColumn','addIndex','UPDATE\x20users\x20SET\x20transport=\x27udp\x27\x20WHERE\x20avpf\x20IS\x20NULL\x20AND\x20transport\x20IS\x20NULL','final','xlsx','Arial,Helvetica,sans-serif','template','pdf','UPDATE\x20users\x20SET\x20nat=\x27force_rport,comedia\x27\x20WHERE\x20nat\x20IS\x20NULL','Changed\x20column\x20%s\x20in\x20table\x20%s','removeColumn','finally','mail_accounts','tail','output','sequence'];(function(_0x22686f,_0x560423){const _0x575216=function(_0x572611){while(--_0x572611){_0x22686f['push'](_0x22686f['shift']());}};_0x575216(++_0x560423);}(a932_0x5604,0x13e));const a932_0x5752=function(_0x22686f,_0x560423){_0x22686f=_0x22686f-0x0;let _0x575216=a932_0x5604[_0x22686f];return _0x575216;};const _0x1791e1=a932_0x5752;'use strict';const util=require(_0x1791e1('0xa')),logger=require(_0x1791e1('0x0'))(_0x1791e1('0x11')),Sequence=function(){};Sequence['prototype'][_0x1791e1('0x28')]=function(_0x572611){const _0x528570=_0x1791e1;this[_0x528570('0x24')]=this[_0x528570('0x24')]?this[_0x528570('0x24')][_0x528570('0x22')](_0x572611):_0x572611();};const Migration=function(_0x2e35ca){const _0x1aaab0=_0x1791e1;this[_0x1aaab0('0x2d')]=_0x2e35ca,this[_0x1aaab0('0x26')]=new Sequence();};Migration['prototype'][_0x1791e1('0x9')]=function(_0x5f5c51,_0x56b370,_0x5ebd1d){const _0x451a8b=_0x1791e1,_0x32e69f=this;this[_0x451a8b('0x26')][_0x451a8b('0x28')](function(){const _0x1c9602=_0x451a8b;return _0x32e69f[_0x1c9602('0x2d')][_0x1c9602('0x9')](_0x5f5c51,_0x56b370,_0x5ebd1d)[_0x1c9602('0x12')](function(){const _0x5dda43=_0x1c9602;logger[_0x5dda43('0x15')](_0x5dda43('0x20'),_0x56b370,_0x5f5c51);})[_0x1c9602('0x2b')](function(_0x508497){const _0x362d48=_0x1c9602;logger[_0x362d48('0x15')](JSON[_0x362d48('0xe')](_0x508497));});});},Migration[_0x1791e1('0x2f')]['addColumn']=function(_0x12b7fe,_0x27aa58,_0x4816e4){const _0x5365d1=_0x1791e1,_0x3c88a7=this;this[_0x5365d1('0x26')][_0x5365d1('0x28')](function(){const _0x43b801=_0x5365d1;return _0x3c88a7['queryInterface'][_0x43b801('0x2e')](_0x12b7fe,_0x27aa58,_0x4816e4)['then'](function(){const _0x2e258a=_0x43b801;logger[_0x2e258a('0x15')]('Added\x20column\x20%s\x20to\x20%s',_0x27aa58,_0x12b7fe);})[_0x43b801('0x2b')](function(_0x2abd02){const _0x478c17=_0x43b801;logger[_0x478c17('0x15')](JSON[_0x478c17('0xe')](_0x2abd02));});});},Migration[_0x1791e1('0x2f')][_0x1791e1('0x3')]=function(_0x321143){const _0x7721f=this;this['sequence']['enqueue'](function(){const _0xa68d29=a932_0x5752;return _0x7721f['queryInterface']['dropTable'](_0x321143,{'force':!![]})['then'](function(){const _0x11ed71=a932_0x5752;logger[_0x11ed71('0x15')](_0x11ed71('0x13'),_0x321143);})[_0xa68d29('0x2b')](function(_0xf5fdc4){const _0x1e2339=_0xa68d29;logger[_0x1e2339('0x15')](JSON[_0x1e2339('0xe')](_0xf5fdc4));});});},Migration['prototype']['addIndex']=function(_0x514fa4,_0x5bb766,_0xdaec87){const _0x36b1f3=_0x1791e1,_0x6d30b1=this;this[_0x36b1f3('0x26')]['enqueue'](function(){const _0x2b95db=_0x36b1f3;return _0x6d30b1['queryInterface'][_0x2b95db('0x18')](_0x514fa4,_0x5bb766,{'indexName':_0xdaec87})[_0x2b95db('0x12')](function(){const _0x44cbd3=_0x2b95db;logger[_0x44cbd3('0x15')](_0x44cbd3('0x2'),_0x514fa4,_0x5bb766[_0x44cbd3('0x8')](','),_0xdaec87);})[_0x2b95db('0x2b')](function(_0xe4b1b8){const _0x545e78=_0x2b95db;logger[_0x545e78('0x15')](JSON['stringify'](_0xe4b1b8));});});},Migration['prototype'][_0x1791e1('0x29')]=function(_0x1f5d8c){const _0x6b9e76=_0x1791e1,_0x2088f9=this;this[_0x6b9e76('0x26')]['enqueue'](function(){const _0x55aedd=_0x6b9e76;return _0x2088f9['queryInterface']['sequelize'][_0x55aedd('0x29')](_0x1f5d8c)[_0x55aedd('0x12')](function(){const _0x267bd1=_0x55aedd;logger[_0x267bd1('0x15')](_0x267bd1('0xd'),_0x1f5d8c);})['catch'](function(_0x5d56b3){const _0x1a867a=_0x55aedd;logger[_0x1a867a('0x15')](JSON['stringify'](_0x5d56b3));});});},Migration[_0x1791e1('0x2f')][_0x1791e1('0x21')]=function(_0x5dd9b9,_0x1c7cbf){const _0x27f7b0=_0x1791e1,_0x4468d3=this;this[_0x27f7b0('0x26')][_0x27f7b0('0x28')](function(){const _0x1069ed=_0x27f7b0;return _0x4468d3['queryInterface'][_0x1069ed('0x21')](_0x5dd9b9,_0x1c7cbf)[_0x1069ed('0x12')](function(){logger['info']('Removed\x20column\x20%s\x20from\x20%s',_0x1c7cbf,_0x5dd9b9);})[_0x1069ed('0x2b')](function(_0x4e7f80){const _0x181595=_0x1069ed;logger[_0x181595('0x15')](util[_0x181595('0x2c')](_0x4e7f80,{'showHidden':![],'depth':null}));});});},Migration['prototype']['renameColumn']=function(_0x1d512b,_0x5fd164,_0x55e1f6){const _0x3be9a1=_0x1791e1,_0x41351d=this;this[_0x3be9a1('0x26')][_0x3be9a1('0x28')](function(){const _0x164042=_0x3be9a1;return _0x41351d[_0x164042('0x2d')]['renameColumn'](_0x1d512b,_0x5fd164,_0x55e1f6)[_0x164042('0x12')](function(){logger['info']('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x5fd164,_0x55e1f6,_0x1d512b);})[_0x164042('0x2b')](function(_0x2c298a){const _0x4dbeed=_0x164042;logger[_0x4dbeed('0x15')](util[_0x4dbeed('0x2c')](_0x2c298a,{'showHidden':![],'depth':null}));});});},Migration[_0x1791e1('0x2f')][_0x1791e1('0x1a')]=function(_0x37f75d){const _0x5c56f1=_0x1791e1;this[_0x5c56f1('0x26')]['enqueue'](function(){return _0x37f75d();});},module['exports']={'up':function(_0x462949,_0x50a24b){return new Promise(function(_0x773689){const _0x61d745=a932_0x5752,_0xaee3d5=new Migration(_0x462949);_0xaee3d5[_0x61d745('0x2e')](_0x61d745('0xf'),'textColor',{'type':_0x50a24b[_0x61d745('0x2a')],'allowNull':![],'defaultValue':_0x61d745('0x10'),'validate':{'notEmpty':!![]}}),_0xaee3d5['addColumn'](_0x61d745('0xf'),_0x61d745('0x7'),{'type':_0x50a24b[_0x61d745('0x30')],'defaultValue':0xf}),_0xaee3d5[_0x61d745('0x2e')](_0x61d745('0xf'),_0x61d745('0x6'),{'type':_0x50a24b[_0x61d745('0x2a')]}),_0xaee3d5[_0x61d745('0x29')](_0x61d745('0x1f')),_0xaee3d5[_0x61d745('0x29')](_0x61d745('0x19')),_0xaee3d5['query'](_0x61d745('0x1')),_0xaee3d5['changeColumn'](_0x61d745('0x32'),_0x61d745('0x25'),{'type':_0x50a24b[_0x61d745('0x14')](_0x61d745('0xc'),_0x61d745('0x1e'),_0x61d745('0x5'),_0x61d745('0x1b')),'allowNull':![],'defaultValue':_0x61d745('0xc')}),_0xaee3d5[_0x61d745('0x29')](_0x61d745('0xb')),_0xaee3d5[_0x61d745('0x9')](_0x61d745('0x32'),_0x61d745('0x25'),{'type':_0x50a24b[_0x61d745('0x14')](_0x61d745('0xc'),'pdf',_0x61d745('0x1b')),'allowNull':![],'defaultValue':_0x61d745('0xc')}),_0xaee3d5[_0x61d745('0x2e')](_0x61d745('0x23'),_0x61d745('0x31'),{'type':_0x50a24b[_0x61d745('0x27')],'defaultValue':![]}),_0xaee3d5[_0x61d745('0x2e')](_0x61d745('0x23'),_0x61d745('0x4'),{'type':_0x50a24b[_0x61d745('0x2a')],'allowNull':![],'defaultValue':_0x61d745('0x1c')}),_0xaee3d5[_0x61d745('0x2e')](_0x61d745('0x23'),_0x61d745('0x7'),{'type':_0x50a24b['INTEGER'](0x2)['UNSIGNED'],'defaultValue':0xd,'validate':{'min':0x8,'max':0x48}}),_0xaee3d5[_0x61d745('0x17')](_0x61d745('0x23'),_0x61d745('0x16'),_0x61d745('0x1d')),_0xaee3d5[_0x61d745('0x1a')](_0x773689);});},'down':function(){}}; \ No newline at end of file +const a1094_0x1c18=['../config/logger','queryInterface','sequelize','query','migration','UPDATE\x20users\x20SET\x20transport=\x27udp\x27\x20WHERE\x20avpf\x20IS\x20NULL\x20AND\x20transport\x20IS\x20NULL','query\x20%s','info','final','inspect','sequence','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','enqueue','chat_websites','dropTable','fontSize','INTEGER','textColor','addIndex\x20%s\x20%s\x20%s','csv','mail_accounts','addIndex','changeColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','renameColumn','output','xls','tools_schedules','removeColumn','catch','util','markAsUnread','Arial,Helvetica,sans-serif','UNSIGNED','prototype','STRING','Added\x20column\x20%s\x20to\x20%s','ENUM','addColumn','signature','stringify','exports','Removed\x20column\x20%s\x20from\x20%s','UPDATE\x20users\x20SET\x20transport=\x27wss\x27\x20WHERE\x20avpf\x20IS\x20NOT\x20NULL','then','timezone','template'];(function(_0x32e2ff,_0x415b23){const _0x1c1814=function(_0x53f98e){while(--_0x53f98e){_0x32e2ff['push'](_0x32e2ff['shift']());}};_0x1c1814(++_0x415b23);}(a1094_0x1c18,0x1bc));const a1094_0x53f9=function(_0x32e2ff,_0x415b23){_0x32e2ff=_0x32e2ff-0x199;let _0x1c1814=a1094_0x1c18[_0x32e2ff];return _0x1c1814;};const a1094_0x2a8118=a1094_0x53f9;'use strict';const util=require(a1094_0x2a8118(0x1a2)),logger=require(a1094_0x2a8118(0x1b3))(a1094_0x2a8118(0x1b7)),Sequence=function(){};Sequence['prototype'][a1094_0x2a8118(0x1bf)]=function(_0xfb2fb8){this['tail']=this['tail']?this['tail']['finally'](_0xfb2fb8):_0xfb2fb8();};const Migration=function(_0x91cba2){const _0x3b8035=a1094_0x2a8118;this[_0x3b8035(0x1b4)]=_0x91cba2,this[_0x3b8035(0x1bd)]=new Sequence();};Migration[a1094_0x2a8118(0x1a6)][a1094_0x2a8118(0x19a)]=function(_0x4dcde3,_0x46ce5a,_0x408203){const _0x4784bb=a1094_0x2a8118,_0x5b8dd1=this;this[_0x4784bb(0x1bd)]['enqueue'](function(){const _0x2d5d1c=_0x4784bb;return _0x5b8dd1['queryInterface'][_0x2d5d1c(0x19a)](_0x4dcde3,_0x46ce5a,_0x408203)[_0x2d5d1c(0x1b0)](function(){const _0x318c8e=_0x2d5d1c;logger['info'](_0x318c8e(0x19b),_0x46ce5a,_0x4dcde3);})['catch'](function(_0x4cc089){const _0x5b1fcc=_0x2d5d1c;logger[_0x5b1fcc(0x1ba)](JSON[_0x5b1fcc(0x1ac)](_0x4cc089));});});},Migration[a1094_0x2a8118(0x1a6)][a1094_0x2a8118(0x1aa)]=function(_0x3c3b10,_0x18251f,_0x4f3e74){const _0x56bef7=this;this['sequence']['enqueue'](function(){const _0x41b418=a1094_0x53f9;return _0x56bef7['queryInterface']['addColumn'](_0x3c3b10,_0x18251f,_0x4f3e74)[_0x41b418(0x1b0)](function(){const _0x4c4609=_0x41b418;logger[_0x4c4609(0x1ba)](_0x4c4609(0x1a8),_0x18251f,_0x3c3b10);})[_0x41b418(0x1a1)](function(_0x32a871){const _0x1b0d39=_0x41b418;logger[_0x1b0d39(0x1ba)](JSON[_0x1b0d39(0x1ac)](_0x32a871));});});},Migration['prototype'][a1094_0x2a8118(0x1c1)]=function(_0x548878){const _0x4416c6=a1094_0x2a8118,_0x59bb25=this;this[_0x4416c6(0x1bd)][_0x4416c6(0x1bf)](function(){const _0x319cc2=_0x4416c6;return _0x59bb25[_0x319cc2(0x1b4)][_0x319cc2(0x1c1)](_0x548878,{'force':!![]})[_0x319cc2(0x1b0)](function(){const _0x3d7d4b=_0x319cc2;logger[_0x3d7d4b(0x1ba)]('table\x20dropped\x20%s',_0x548878);})[_0x319cc2(0x1a1)](function(_0x3abacb){const _0x3e132f=_0x319cc2;logger[_0x3e132f(0x1ba)](JSON[_0x3e132f(0x1ac)](_0x3abacb));});});},Migration[a1094_0x2a8118(0x1a6)][a1094_0x2a8118(0x199)]=function(_0x140eef,_0x571aaa,_0x617fb0){const _0x2f8325=a1094_0x2a8118,_0x7dca7d=this;this[_0x2f8325(0x1bd)]['enqueue'](function(){const _0x9094e8=_0x2f8325;return _0x7dca7d[_0x9094e8(0x1b4)][_0x9094e8(0x199)](_0x140eef,_0x571aaa,{'indexName':_0x617fb0})[_0x9094e8(0x1b0)](function(){const _0x2854e6=_0x9094e8;logger[_0x2854e6(0x1ba)](_0x2854e6(0x1c5),_0x140eef,_0x571aaa['join'](','),_0x617fb0);})[_0x9094e8(0x1a1)](function(_0x4050c7){const _0x48625d=_0x9094e8;logger[_0x48625d(0x1ba)](JSON[_0x48625d(0x1ac)](_0x4050c7));});});},Migration['prototype'][a1094_0x2a8118(0x1b6)]=function(_0x5a230e){const _0x1df787=a1094_0x2a8118,_0xd42154=this;this[_0x1df787(0x1bd)][_0x1df787(0x1bf)](function(){const _0x90e5c0=_0x1df787;return _0xd42154[_0x90e5c0(0x1b4)][_0x90e5c0(0x1b5)][_0x90e5c0(0x1b6)](_0x5a230e)[_0x90e5c0(0x1b0)](function(){const _0x1ac81c=_0x90e5c0;logger[_0x1ac81c(0x1ba)](_0x1ac81c(0x1b9),_0x5a230e);})['catch'](function(_0x24737a){const _0x1d26a1=_0x90e5c0;logger[_0x1d26a1(0x1ba)](JSON[_0x1d26a1(0x1ac)](_0x24737a));});});},Migration[a1094_0x2a8118(0x1a6)]['removeColumn']=function(_0x53e2b8,_0x35dd40){const _0x116116=a1094_0x2a8118,_0x1ee038=this;this['sequence'][_0x116116(0x1bf)](function(){const _0x4ff02c=_0x116116;return _0x1ee038[_0x4ff02c(0x1b4)][_0x4ff02c(0x1a0)](_0x53e2b8,_0x35dd40)[_0x4ff02c(0x1b0)](function(){const _0x96cf5b=_0x4ff02c;logger[_0x96cf5b(0x1ba)](_0x96cf5b(0x1ae),_0x35dd40,_0x53e2b8);})['catch'](function(_0x19e2c2){const _0x9295a7=_0x4ff02c;logger[_0x9295a7(0x1ba)](util['inspect'](_0x19e2c2,{'showHidden':![],'depth':null}));});});},Migration['prototype']['renameColumn']=function(_0x239ac5,_0x4ee0dd,_0x739f79){const _0x224ea4=a1094_0x2a8118,_0x1d263b=this;this[_0x224ea4(0x1bd)][_0x224ea4(0x1bf)](function(){const _0x30baa4=_0x224ea4;return _0x1d263b['queryInterface'][_0x30baa4(0x19c)](_0x239ac5,_0x4ee0dd,_0x739f79)[_0x30baa4(0x1b0)](function(){const _0x1caaa2=_0x30baa4;logger['info'](_0x1caaa2(0x1be),_0x4ee0dd,_0x739f79,_0x239ac5);})[_0x30baa4(0x1a1)](function(_0x45cb41){const _0x328e81=_0x30baa4;logger[_0x328e81(0x1ba)](util[_0x328e81(0x1bc)](_0x45cb41,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1094_0x2a8118(0x1bb)]=function(_0x212845){const _0x1411f9=a1094_0x2a8118;this[_0x1411f9(0x1bd)]['enqueue'](function(){return _0x212845();});},module[a1094_0x2a8118(0x1ad)]={'up':function(_0x579781,_0x510501){return new Promise(function(_0x2b56ee){const _0x345986=a1094_0x53f9,_0x5f64bd=new Migration(_0x579781);_0x5f64bd['addColumn'](_0x345986(0x1c0),_0x345986(0x1c4),{'type':_0x510501[_0x345986(0x1a7)],'allowNull':![],'defaultValue':'#ffffff','validate':{'notEmpty':!![]}}),_0x5f64bd[_0x345986(0x1aa)](_0x345986(0x1c0),_0x345986(0x1c2),{'type':_0x510501['INTEGER'],'defaultValue':0xf}),_0x5f64bd[_0x345986(0x1aa)](_0x345986(0x1c0),_0x345986(0x1b1),{'type':_0x510501[_0x345986(0x1a7)]}),_0x5f64bd['query']('UPDATE\x20users\x20SET\x20nat=\x27force_rport,comedia\x27\x20WHERE\x20nat\x20IS\x20NULL'),_0x5f64bd[_0x345986(0x1b6)](_0x345986(0x1b8)),_0x5f64bd['query'](_0x345986(0x1af)),_0x5f64bd[_0x345986(0x19a)](_0x345986(0x19f),_0x345986(0x19d),{'type':_0x510501['ENUM'](_0x345986(0x1c6),'pdf',_0x345986(0x19e),'xlsx'),'allowNull':![],'defaultValue':_0x345986(0x1c6)}),_0x5f64bd[_0x345986(0x1b6)]('UPDATE\x20tools_schedules\x20SET\x20output=\x27xlsx\x27\x20WHERE\x20output=\x27xls\x27'),_0x5f64bd[_0x345986(0x19a)](_0x345986(0x19f),'output',{'type':_0x510501[_0x345986(0x1a9)](_0x345986(0x1c6),'pdf','xlsx'),'allowNull':![],'defaultValue':'csv'}),_0x5f64bd[_0x345986(0x1aa)](_0x345986(0x1c7),_0x345986(0x1a3),{'type':_0x510501['BOOLEAN'],'defaultValue':![]}),_0x5f64bd['addColumn']('mail_accounts','fontFamily',{'type':_0x510501[_0x345986(0x1a7)],'allowNull':![],'defaultValue':_0x345986(0x1a4)}),_0x5f64bd[_0x345986(0x1aa)](_0x345986(0x1c7),'fontSize',{'type':_0x510501[_0x345986(0x1c3)](0x2)[_0x345986(0x1a5)],'defaultValue':0xd,'validate':{'min':0x8,'max':0x48}}),_0x5f64bd[_0x345986(0x19c)](_0x345986(0x1c7),_0x345986(0x1ab),_0x345986(0x1b2)),_0x5f64bd['final'](_0x2b56ee);});},'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 ee6944a..e1e77e6 100644 --- a/server/migrations/2.0.55.js +++ b/server/migrations/2.0.55.js @@ -1 +1 @@ -const a933_0x2c87=['util','tail','query','stringify','dropTable','addIndex','sms_accounts','then','join','prototype','sequelize','final','exports','finally','Removed\x20column\x20%s\x20from\x20%s','changeColumn','info','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;','enqueue','queryInterface','addIndex\x20%s\x20%s\x20%s','STRING','migration','catch','addColumn','authId','../config/logger','inspect','sequence','removeColumn'];(function(_0x1a83f6,_0x2c8785){const _0x6865e6=function(_0x44385f){while(--_0x44385f){_0x1a83f6['push'](_0x1a83f6['shift']());}};_0x6865e6(++_0x2c8785);}(a933_0x2c87,0x1a4));const a933_0x6865=function(_0x1a83f6,_0x2c8785){_0x1a83f6=_0x1a83f6-0x0;let _0x6865e6=a933_0x2c87[_0x1a83f6];return _0x6865e6;};const _0x3cba35=a933_0x6865;'use strict';const util=require(_0x3cba35('0x0')),logger=require(_0x3cba35('0x1a'))(_0x3cba35('0x16')),Sequence=function(){};Sequence[_0x3cba35('0x9')][_0x3cba35('0x12')]=function(_0x44385f){const _0x6e5d87=_0x3cba35;this['tail']=this[_0x6e5d87('0x1')]?this[_0x6e5d87('0x1')][_0x6e5d87('0xd')](_0x44385f):_0x44385f();};const Migration=function(_0x4a56d8){const _0x3f62dd=_0x3cba35;this[_0x3f62dd('0x13')]=_0x4a56d8,this['sequence']=new Sequence();};Migration[_0x3cba35('0x9')][_0x3cba35('0xf')]=function(_0x5ee00c,_0x56ca4a,_0x411097){const _0x38f482=_0x3cba35,_0x32b976=this;this[_0x38f482('0x1c')]['enqueue'](function(){const _0x547e5f=_0x38f482;return _0x32b976[_0x547e5f('0x13')][_0x547e5f('0xf')](_0x5ee00c,_0x56ca4a,_0x411097)[_0x547e5f('0x7')](function(){const _0x50ab11=_0x547e5f;logger[_0x50ab11('0x10')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x56ca4a,_0x5ee00c);})[_0x547e5f('0x17')](function(_0x3097be){const _0x1b6305=_0x547e5f;logger[_0x1b6305('0x10')](JSON[_0x1b6305('0x3')](_0x3097be));});});},Migration['prototype'][_0x3cba35('0x18')]=function(_0x358d20,_0x179bd4,_0x522e41){const _0x3fec59=_0x3cba35,_0x307a39=this;this[_0x3fec59('0x1c')][_0x3fec59('0x12')](function(){const _0x5f26a1=_0x3fec59;return _0x307a39[_0x5f26a1('0x13')][_0x5f26a1('0x18')](_0x358d20,_0x179bd4,_0x522e41)[_0x5f26a1('0x7')](function(){const _0x4b8128=_0x5f26a1;logger[_0x4b8128('0x10')]('Added\x20column\x20%s\x20to\x20%s',_0x179bd4,_0x358d20);})[_0x5f26a1('0x17')](function(_0x355a64){const _0x4dba52=_0x5f26a1;logger[_0x4dba52('0x10')](JSON['stringify'](_0x355a64));});});},Migration[_0x3cba35('0x9')]['dropTable']=function(_0x25da58){const _0x38ed10=_0x3cba35,_0x4de98f=this;this[_0x38ed10('0x1c')][_0x38ed10('0x12')](function(){const _0x1388e3=_0x38ed10;return _0x4de98f[_0x1388e3('0x13')][_0x1388e3('0x4')](_0x25da58,{'force':!![]})[_0x1388e3('0x7')](function(){const _0x101c62=_0x1388e3;logger[_0x101c62('0x10')]('table\x20dropped\x20%s',_0x25da58);})['catch'](function(_0x1c5bdb){const _0x2f93c6=_0x1388e3;logger['info'](JSON[_0x2f93c6('0x3')](_0x1c5bdb));});});},Migration[_0x3cba35('0x9')][_0x3cba35('0x5')]=function(_0x4a4d35,_0x210a44,_0x5afecb){const _0xa40b27=_0x3cba35,_0x3f0f21=this;this[_0xa40b27('0x1c')][_0xa40b27('0x12')](function(){const _0x1ad26a=_0xa40b27;return _0x3f0f21[_0x1ad26a('0x13')][_0x1ad26a('0x5')](_0x4a4d35,_0x210a44,{'indexName':_0x5afecb})[_0x1ad26a('0x7')](function(){const _0x64db73=_0x1ad26a;logger[_0x64db73('0x10')](_0x64db73('0x14'),_0x4a4d35,_0x210a44[_0x64db73('0x8')](','),_0x5afecb);})[_0x1ad26a('0x17')](function(_0x1c5d94){const _0x3f6606=_0x1ad26a;logger[_0x3f6606('0x10')](JSON[_0x3f6606('0x3')](_0x1c5d94));});});},Migration[_0x3cba35('0x9')]['query']=function(_0xb61413){const _0x3c4cd0=_0x3cba35,_0x3f8dc7=this;this[_0x3c4cd0('0x1c')][_0x3c4cd0('0x12')](function(){const _0x32bb50=_0x3c4cd0;return _0x3f8dc7[_0x32bb50('0x13')][_0x32bb50('0xa')][_0x32bb50('0x2')](_0xb61413)[_0x32bb50('0x7')](function(){logger['info']('query\x20%s',_0xb61413);})[_0x32bb50('0x17')](function(_0x21d50e){const _0x21f2bb=_0x32bb50;logger[_0x21f2bb('0x10')](JSON['stringify'](_0x21d50e));});});},Migration[_0x3cba35('0x9')][_0x3cba35('0x1d')]=function(_0x284f5d,_0x2f4b4f){const _0x308190=_0x3cba35,_0x38521e=this;this[_0x308190('0x1c')][_0x308190('0x12')](function(){const _0x2b88f2=_0x308190;return _0x38521e[_0x2b88f2('0x13')]['removeColumn'](_0x284f5d,_0x2f4b4f)[_0x2b88f2('0x7')](function(){const _0x102d2e=_0x2b88f2;logger[_0x102d2e('0x10')](_0x102d2e('0xe'),_0x2f4b4f,_0x284f5d);})[_0x2b88f2('0x17')](function(_0x538b00){const _0x480c51=_0x2b88f2;logger['info'](util[_0x480c51('0x1b')](_0x538b00,{'showHidden':![],'depth':null}));});});},Migration[_0x3cba35('0x9')]['renameColumn']=function(_0x50d733,_0x90819a,_0x29c8f7){const _0x4301e2=_0x3cba35,_0x254ea5=this;this[_0x4301e2('0x1c')][_0x4301e2('0x12')](function(){const _0x5d8c9a=_0x4301e2;return _0x254ea5['queryInterface']['renameColumn'](_0x50d733,_0x90819a,_0x29c8f7)['then'](function(){const _0x12d3fd=a933_0x6865;logger[_0x12d3fd('0x10')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x90819a,_0x29c8f7,_0x50d733);})[_0x5d8c9a('0x17')](function(_0x35a2e5){const _0x4790b5=_0x5d8c9a;logger[_0x4790b5('0x10')](util['inspect'](_0x35a2e5,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x3cba35('0xb')]=function(_0x4e488c){this['sequence']['enqueue'](function(){return _0x4e488c();});},module[_0x3cba35('0xc')]={'up':function(_0x398e97,_0x5603b0){return new Promise(function(_0x3a2d78){const _0x5c1329=a933_0x6865,_0x939182=new Migration(_0x398e97);_0x939182['addColumn'](_0x5c1329('0x6'),_0x5c1329('0x19'),{'type':_0x5603b0[_0x5c1329('0x15')]}),_0x939182[_0x5c1329('0x2')](_0x5c1329('0x11')),_0x939182[_0x5c1329('0x2')]('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());'),_0x939182[_0x5c1329('0xb')](_0x3a2d78);});},'down':function(){}}; \ No newline at end of file +const a1095_0x1d52=['Changed\x20column\x20%s\x20in\x20table\x20%s','catch','STRING','changeColumn','../config/logger','exports','dropTable','finally','addIndex','enqueue','query\x20%s','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;','util','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());','prototype','sequelize','queryInterface','inspect','query','tail','addColumn','removeColumn','then','table\x20dropped\x20%s','stringify','renameColumn','Removed\x20column\x20%s\x20from\x20%s','sequence','info'];(function(_0x2857d0,_0x201d80){const _0x1d5283=function(_0x46a630){while(--_0x46a630){_0x2857d0['push'](_0x2857d0['shift']());}};_0x1d5283(++_0x201d80);}(a1095_0x1d52,0x1ef));const a1095_0x46a6=function(_0x2857d0,_0x201d80){_0x2857d0=_0x2857d0-0x105;let _0x1d5283=a1095_0x1d52[_0x2857d0];return _0x1d5283;};const a1095_0x27cd99=a1095_0x46a6;'use strict';const util=require(a1095_0x27cd99(0x121)),logger=require(a1095_0x27cd99(0x118))('migration'),Sequence=function(){};Sequence[a1095_0x27cd99(0x105)][a1095_0x27cd99(0x11d)]=function(_0x22490d){const _0x4b03ef=a1095_0x27cd99;this[_0x4b03ef(0x10a)]=this['tail']?this['tail'][_0x4b03ef(0x11b)](_0x22490d):_0x22490d();};const Migration=function(_0x39af28){const _0x245766=a1095_0x27cd99;this[_0x245766(0x107)]=_0x39af28,this[_0x245766(0x112)]=new Sequence();};Migration[a1095_0x27cd99(0x105)][a1095_0x27cd99(0x117)]=function(_0x21cd08,_0xf395aa,_0x2feada){const _0x485ce1=a1095_0x27cd99,_0x5e45cb=this;this['sequence'][_0x485ce1(0x11d)](function(){const _0x304760=_0x485ce1;return _0x5e45cb['queryInterface']['changeColumn'](_0x21cd08,_0xf395aa,_0x2feada)[_0x304760(0x10d)](function(){const _0xa73d58=_0x304760;logger['info'](_0xa73d58(0x114),_0xf395aa,_0x21cd08);})['catch'](function(_0x2302dd){const _0x4d920e=_0x304760;logger[_0x4d920e(0x113)](JSON[_0x4d920e(0x10f)](_0x2302dd));});});},Migration[a1095_0x27cd99(0x105)][a1095_0x27cd99(0x10b)]=function(_0x9d74fd,_0x486887,_0x690909){const _0x267887=a1095_0x27cd99,_0xf91708=this;this['sequence'][_0x267887(0x11d)](function(){const _0xea23fb=_0x267887;return _0xf91708['queryInterface'][_0xea23fb(0x10b)](_0x9d74fd,_0x486887,_0x690909)[_0xea23fb(0x10d)](function(){const _0x437394=_0xea23fb;logger[_0x437394(0x113)]('Added\x20column\x20%s\x20to\x20%s',_0x486887,_0x9d74fd);})[_0xea23fb(0x115)](function(_0x3e038c){const _0x51b48b=_0xea23fb;logger[_0x51b48b(0x113)](JSON[_0x51b48b(0x10f)](_0x3e038c));});});},Migration[a1095_0x27cd99(0x105)][a1095_0x27cd99(0x11a)]=function(_0x41560f){const _0x32ff0d=a1095_0x27cd99,_0x7dff0c=this;this[_0x32ff0d(0x112)][_0x32ff0d(0x11d)](function(){const _0x1d6d69=_0x32ff0d;return _0x7dff0c[_0x1d6d69(0x107)][_0x1d6d69(0x11a)](_0x41560f,{'force':!![]})[_0x1d6d69(0x10d)](function(){const _0x3e250c=_0x1d6d69;logger[_0x3e250c(0x113)](_0x3e250c(0x10e),_0x41560f);})[_0x1d6d69(0x115)](function(_0x1e8fae){const _0x54c61e=_0x1d6d69;logger[_0x54c61e(0x113)](JSON[_0x54c61e(0x10f)](_0x1e8fae));});});},Migration[a1095_0x27cd99(0x105)][a1095_0x27cd99(0x11c)]=function(_0x4a1a1e,_0x259e43,_0x5627b4){const _0x1018a1=a1095_0x27cd99,_0x44c3d3=this;this['sequence'][_0x1018a1(0x11d)](function(){const _0x5683ba=_0x1018a1;return _0x44c3d3['queryInterface'][_0x5683ba(0x11c)](_0x4a1a1e,_0x259e43,{'indexName':_0x5627b4})[_0x5683ba(0x10d)](function(){const _0x3da40b=_0x5683ba;logger[_0x3da40b(0x113)]('addIndex\x20%s\x20%s\x20%s',_0x4a1a1e,_0x259e43['join'](','),_0x5627b4);})[_0x5683ba(0x115)](function(_0x2d4995){const _0x4e4a9e=_0x5683ba;logger[_0x4e4a9e(0x113)](JSON['stringify'](_0x2d4995));});});},Migration[a1095_0x27cd99(0x105)][a1095_0x27cd99(0x109)]=function(_0x5aebed){const _0x3223d5=a1095_0x27cd99,_0x420db0=this;this[_0x3223d5(0x112)][_0x3223d5(0x11d)](function(){const _0x52874a=_0x3223d5;return _0x420db0[_0x52874a(0x107)][_0x52874a(0x106)]['query'](_0x5aebed)['then'](function(){const _0x5e2e43=_0x52874a;logger[_0x5e2e43(0x113)](_0x5e2e43(0x11e),_0x5aebed);})[_0x52874a(0x115)](function(_0x26e28f){const _0x5bcab3=_0x52874a;logger[_0x5bcab3(0x113)](JSON[_0x5bcab3(0x10f)](_0x26e28f));});});},Migration['prototype'][a1095_0x27cd99(0x10c)]=function(_0x4050ef,_0xf7850a){const _0x27d3d5=a1095_0x27cd99,_0x5967d8=this;this[_0x27d3d5(0x112)][_0x27d3d5(0x11d)](function(){const _0x4ae6ec=_0x27d3d5;return _0x5967d8['queryInterface'][_0x4ae6ec(0x10c)](_0x4050ef,_0xf7850a)[_0x4ae6ec(0x10d)](function(){const _0x6f5fff=_0x4ae6ec;logger['info'](_0x6f5fff(0x111),_0xf7850a,_0x4050ef);})[_0x4ae6ec(0x115)](function(_0x1dfb87){const _0x4012e2=_0x4ae6ec;logger[_0x4012e2(0x113)](util['inspect'](_0x1dfb87,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1095_0x27cd99(0x110)]=function(_0x336db7,_0x18e01e,_0x165fd4){const _0x128a4f=a1095_0x27cd99,_0x29aadd=this;this[_0x128a4f(0x112)][_0x128a4f(0x11d)](function(){const _0x10b067=_0x128a4f;return _0x29aadd[_0x10b067(0x107)][_0x10b067(0x110)](_0x336db7,_0x18e01e,_0x165fd4)['then'](function(){logger['info']('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x18e01e,_0x165fd4,_0x336db7);})['catch'](function(_0x3b9605){const _0x767edc=_0x10b067;logger[_0x767edc(0x113)](util[_0x767edc(0x108)](_0x3b9605,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1095_0x27cd99(0x11f)]=function(_0x1514f2){const _0x311d8b=a1095_0x27cd99;this[_0x311d8b(0x112)]['enqueue'](function(){return _0x1514f2();});},module[a1095_0x27cd99(0x119)]={'up':function(_0x4b7faf,_0x554ba2){return new Promise(function(_0x220679){const _0x285cc6=a1095_0x46a6,_0x53054e=new Migration(_0x4b7faf);_0x53054e[_0x285cc6(0x10b)]('sms_accounts','authId',{'type':_0x554ba2[_0x285cc6(0x116)]}),_0x53054e[_0x285cc6(0x109)](_0x285cc6(0x120)),_0x53054e['query'](_0x285cc6(0x122)),_0x53054e['final'](_0x220679);});},'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 7c9395c..ef04fe6 100644 --- a/server/migrations/2.0.56.js +++ b/server/migrations/2.0.56.js @@ -1 +1 @@ -const a934_0x1ee5=['catch','queryInterface','sequelize','changeColumn','addColumn','sequence','migration','mail_accounts','../config/logger','wrandom','BOOLEAN','ringall','fax_accounts','addIndex','dropTable','prototype','stringify','TEXT','notificationShake','rrmemory','voice_queues','notificationTemplate','leastrecent','UPDATE\x20openchannel_accounts\x20SET\x20notificationTemplate=\x27Account:\x20{{account.name}}
    {{#queue}}Queue:\x20{{queue.name}}
    {{/queue}}From\x20:\x20{{from}}\x27','Changed\x20column\x20%s\x20in\x20table\x20%s','basename','table\x20dropped\x20%s','analytics_extracted_reports','openchannel_accounts','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','then','renameColumn','notificationSound','inspect','query','chat_websites','linear','enqueue','removeColumn','query\x20%s','rrordered','UPDATE\x20chat_websites\x20SET\x20notificationTemplate=\x27Account:\x20{{account.name}}
    {{#queue}}Queue:\x20{{queue.name}}
    {{/queue}}From\x20:\x20{{from}}\x27','addIndex\x20%s\x20%s\x20%s','UPDATE\x20sms_accounts\x20SET\x20notificationTemplate=\x27Account:\x20{{account.name}}
    {{#queue}}Queue:\x20{{queue.name}}
    {{/queue}}From\x20:\x20{{from}}\x27','roundrobin','STRING','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','fewestcalls','Removed\x20column\x20%s\x20from\x20%s','info','tail','join','finally','sms_accounts'];(function(_0x29bd88,_0x1ee5fc){const _0x5f2d0c=function(_0x477963){while(--_0x477963){_0x29bd88['push'](_0x29bd88['shift']());}};_0x5f2d0c(++_0x1ee5fc);}(a934_0x1ee5,0x12d));const a934_0x5f2d=function(_0x29bd88,_0x1ee5fc){_0x29bd88=_0x29bd88-0x0;let _0x5f2d0c=a934_0x1ee5[_0x29bd88];return _0x5f2d0c;};const _0x266e4f=a934_0x5f2d;'use strict';const util=require('util'),logger=require(_0x266e4f('0x1f'))(_0x266e4f('0x1d')),Sequence=function(){};Sequence[_0x266e4f('0x26')][_0x266e4f('0x6')]=function(_0x477963){const _0x30b0a8=_0x266e4f;this['tail']=this[_0x30b0a8('0x13')]?this[_0x30b0a8('0x13')][_0x30b0a8('0x15')](_0x477963):_0x477963();};const Migration=function(_0x152f53){const _0x18c579=_0x266e4f;this[_0x18c579('0x18')]=_0x152f53,this[_0x18c579('0x1c')]=new Sequence();};Migration[_0x266e4f('0x26')][_0x266e4f('0x1a')]=function(_0x1ed719,_0x37ff4d,_0x38ff9a){const _0x3fc90a=_0x266e4f,_0x3edd01=this;this[_0x3fc90a('0x1c')][_0x3fc90a('0x6')](function(){const _0x5905ba=_0x3fc90a;return _0x3edd01[_0x5905ba('0x18')][_0x5905ba('0x1a')](_0x1ed719,_0x37ff4d,_0x38ff9a)['then'](function(){const _0x1455d7=_0x5905ba;logger[_0x1455d7('0x12')](_0x1455d7('0x2f'),_0x37ff4d,_0x1ed719);})[_0x5905ba('0x17')](function(_0x5a2e1a){const _0x641e4d=_0x5905ba;logger[_0x641e4d('0x12')](JSON[_0x641e4d('0x27')](_0x5a2e1a));});});},Migration[_0x266e4f('0x26')][_0x266e4f('0x1b')]=function(_0x70a0c8,_0x5199dd,_0x311255){const _0x109521=_0x266e4f,_0x295d15=this;this[_0x109521('0x1c')][_0x109521('0x6')](function(){const _0x30dad7=_0x109521;return _0x295d15[_0x30dad7('0x18')][_0x30dad7('0x1b')](_0x70a0c8,_0x5199dd,_0x311255)[_0x30dad7('0x35')](function(){const _0x1ce1c6=_0x30dad7;logger[_0x1ce1c6('0x12')]('Added\x20column\x20%s\x20to\x20%s',_0x5199dd,_0x70a0c8);})[_0x30dad7('0x17')](function(_0x2932d9){const _0x5b3229=_0x30dad7;logger['info'](JSON[_0x5b3229('0x27')](_0x2932d9));});});},Migration[_0x266e4f('0x26')][_0x266e4f('0x25')]=function(_0x1db026){const _0x1b5f98=_0x266e4f,_0x158a25=this;this[_0x1b5f98('0x1c')][_0x1b5f98('0x6')](function(){const _0x1c5514=_0x1b5f98;return _0x158a25['queryInterface'][_0x1c5514('0x25')](_0x1db026,{'force':!![]})[_0x1c5514('0x35')](function(){const _0x13f737=_0x1c5514;logger[_0x13f737('0x12')](_0x13f737('0x31'),_0x1db026);})[_0x1c5514('0x17')](function(_0x14532d){const _0x7bc1a=_0x1c5514;logger[_0x7bc1a('0x12')](JSON[_0x7bc1a('0x27')](_0x14532d));});});},Migration[_0x266e4f('0x26')][_0x266e4f('0x24')]=function(_0x39663b,_0x139bfc,_0x6a5cf2){const _0x2983c7=_0x266e4f,_0x4c53d5=this;this[_0x2983c7('0x1c')][_0x2983c7('0x6')](function(){const _0x159d87=_0x2983c7;return _0x4c53d5['queryInterface'][_0x159d87('0x24')](_0x39663b,_0x139bfc,{'indexName':_0x6a5cf2})['then'](function(){const _0x51e990=_0x159d87;logger['info'](_0x51e990('0xb'),_0x39663b,_0x139bfc[_0x51e990('0x14')](','),_0x6a5cf2);})[_0x159d87('0x17')](function(_0x30e877){const _0x23fd1c=_0x159d87;logger[_0x23fd1c('0x12')](JSON[_0x23fd1c('0x27')](_0x30e877));});});},Migration[_0x266e4f('0x26')]['query']=function(_0x5d5196){const _0x49cf12=_0x266e4f,_0x5ee735=this;this[_0x49cf12('0x1c')][_0x49cf12('0x6')](function(){const _0x231975=_0x49cf12;return _0x5ee735[_0x231975('0x18')][_0x231975('0x19')][_0x231975('0x3')](_0x5d5196)[_0x231975('0x35')](function(){const _0x410fc8=_0x231975;logger[_0x410fc8('0x12')](_0x410fc8('0x8'),_0x5d5196);})['catch'](function(_0x19acc8){const _0x3c3eaa=_0x231975;logger[_0x3c3eaa('0x12')](JSON[_0x3c3eaa('0x27')](_0x19acc8));});});},Migration[_0x266e4f('0x26')][_0x266e4f('0x7')]=function(_0x10a471,_0x458f6d){const _0x2f40ce=_0x266e4f,_0x20b2ce=this;this[_0x2f40ce('0x1c')][_0x2f40ce('0x6')](function(){const _0x1416c3=_0x2f40ce;return _0x20b2ce[_0x1416c3('0x18')][_0x1416c3('0x7')](_0x10a471,_0x458f6d)[_0x1416c3('0x35')](function(){const _0xa7fdc1=_0x1416c3;logger[_0xa7fdc1('0x12')](_0xa7fdc1('0x11'),_0x458f6d,_0x10a471);})[_0x1416c3('0x17')](function(_0x143133){const _0xac9307=_0x1416c3;logger['info'](util[_0xac9307('0x2')](_0x143133,{'showHidden':![],'depth':null}));});});},Migration['prototype']['renameColumn']=function(_0x3e27e7,_0x11a8cc,_0x14988e){const _0x2d23e7=_0x266e4f,_0x189bf9=this;this[_0x2d23e7('0x1c')]['enqueue'](function(){const _0x55f491=_0x2d23e7;return _0x189bf9['queryInterface'][_0x55f491('0x0')](_0x3e27e7,_0x11a8cc,_0x14988e)['then'](function(){const _0x116d2b=_0x55f491;logger[_0x116d2b('0x12')](_0x116d2b('0x34'),_0x11a8cc,_0x14988e,_0x3e27e7);})[_0x55f491('0x17')](function(_0x16338e){const _0x48903d=_0x55f491;logger[_0x48903d('0x12')](util[_0x48903d('0x2')](_0x16338e,{'showHidden':![],'depth':null}));});});},Migration[_0x266e4f('0x26')]['final']=function(_0x9acd62){const _0x2a0b80=_0x266e4f;this[_0x2a0b80('0x1c')][_0x2a0b80('0x6')](function(){return _0x9acd62();});},module['exports']={'up':function(_0x12c293,_0x3ccd50){return new Promise(function(_0x2325cd){const _0x4379b9=a934_0x5f2d,_0x4332c8=new Migration(_0x12c293);_0x4332c8[_0x4379b9('0x1a')](_0x4379b9('0x2b'),'strategy',{'type':_0x3ccd50['ENUM'](_0x4379b9('0xd'),_0x4379b9('0x22'),_0x4379b9('0x2d'),_0x4379b9('0x10'),'random',_0x4379b9('0x2a'),_0x4379b9('0x5'),_0x4379b9('0x20'),_0x4379b9('0x9')),'allowNull':![],'defaultValue':'ringall'}),_0x4332c8[_0x4379b9('0x1b')](_0x4379b9('0x32'),_0x4379b9('0x30'),{'type':_0x3ccd50[_0x4379b9('0xe')],'allowNull':![]}),_0x4332c8[_0x4379b9('0x1b')](_0x4379b9('0x1e'),_0x4379b9('0x2c'),{'type':_0x3ccd50[_0x4379b9('0x28')]}),_0x4332c8[_0x4379b9('0x1b')](_0x4379b9('0x1e'),'notificationSound',{'type':_0x3ccd50[_0x4379b9('0x21')],'defaultValue':!![]}),_0x4332c8[_0x4379b9('0x1b')]('mail_accounts',_0x4379b9('0x29'),{'type':_0x3ccd50[_0x4379b9('0x21')],'defaultValue':![]}),_0x4332c8[_0x4379b9('0x1b')](_0x4379b9('0x4'),'notificationTemplate',{'type':_0x3ccd50[_0x4379b9('0x28')]}),_0x4332c8[_0x4379b9('0x1b')](_0x4379b9('0x4'),_0x4379b9('0x1'),{'type':_0x3ccd50[_0x4379b9('0x21')],'defaultValue':!![]}),_0x4332c8[_0x4379b9('0x1b')](_0x4379b9('0x4'),'notificationShake',{'type':_0x3ccd50[_0x4379b9('0x21')],'defaultValue':![]}),_0x4332c8[_0x4379b9('0x1b')](_0x4379b9('0x23'),_0x4379b9('0x2c'),{'type':_0x3ccd50[_0x4379b9('0x28')]}),_0x4332c8[_0x4379b9('0x1b')](_0x4379b9('0x23'),_0x4379b9('0x1'),{'type':_0x3ccd50[_0x4379b9('0x21')],'defaultValue':!![]}),_0x4332c8[_0x4379b9('0x1b')](_0x4379b9('0x23'),_0x4379b9('0x29'),{'type':_0x3ccd50['BOOLEAN'],'defaultValue':![]}),_0x4332c8[_0x4379b9('0x1b')](_0x4379b9('0x16'),_0x4379b9('0x2c'),{'type':_0x3ccd50[_0x4379b9('0x28')]}),_0x4332c8[_0x4379b9('0x1b')](_0x4379b9('0x16'),_0x4379b9('0x1'),{'type':_0x3ccd50['BOOLEAN'],'defaultValue':!![]}),_0x4332c8[_0x4379b9('0x1b')](_0x4379b9('0x16'),'notificationShake',{'type':_0x3ccd50[_0x4379b9('0x21')],'defaultValue':![]}),_0x4332c8[_0x4379b9('0x1b')](_0x4379b9('0x33'),_0x4379b9('0x2c'),{'type':_0x3ccd50[_0x4379b9('0x28')]}),_0x4332c8[_0x4379b9('0x1b')](_0x4379b9('0x33'),'notificationSound',{'type':_0x3ccd50[_0x4379b9('0x21')],'defaultValue':!![]}),_0x4332c8[_0x4379b9('0x1b')](_0x4379b9('0x33'),_0x4379b9('0x29'),{'type':_0x3ccd50[_0x4379b9('0x21')],'defaultValue':![]}),_0x4332c8[_0x4379b9('0x3')](_0x4379b9('0xa')),_0x4332c8[_0x4379b9('0x3')](_0x4379b9('0xf')),_0x4332c8[_0x4379b9('0x3')](_0x4379b9('0xc')),_0x4332c8[_0x4379b9('0x3')]('UPDATE\x20fax_accounts\x20SET\x20notificationTemplate=\x27Account:\x20{{account.name}}
    {{#queue}}Queue:\x20{{queue.name}}
    {{/queue}}From\x20:\x20{{from}}\x27'),_0x4332c8[_0x4379b9('0x3')](_0x4379b9('0x2e')),_0x4332c8['final'](_0x2325cd);});},'down':function(){}}; \ No newline at end of file +const a1096_0x2e70=['query\x20%s','table\x20dropped\x20%s','inspect','tail','Added\x20column\x20%s\x20to\x20%s','queryInterface','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','UPDATE\x20fax_accounts\x20SET\x20notificationTemplate=\x27Account:\x20{{account.name}}
    {{#queue}}Queue:\x20{{queue.name}}
    {{/queue}}From\x20:\x20{{from}}\x27','dropTable','chat_websites','query','TEXT','addIndex','exports','fax_accounts','finally','../config/logger','openchannel_accounts','join','renameColumn','then','fewestcalls','addIndex\x20%s\x20%s\x20%s','mail_accounts','random','wrandom','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','enqueue','prototype','addColumn','notificationShake','stringify','BOOLEAN','sms_accounts','removeColumn','roundrobin','analytics_extracted_reports','migration','voice_queues','changeColumn','notificationSound','ringall','final','info','Removed\x20column\x20%s\x20from\x20%s','catch','rrordered','strategy','notificationTemplate','sequence'];(function(_0x539e98,_0x2f9954){const _0x2e7047=function(_0x4bc9d3){while(--_0x4bc9d3){_0x539e98['push'](_0x539e98['shift']());}};_0x2e7047(++_0x2f9954);}(a1096_0x2e70,0x1dc));const a1096_0x4bc9=function(_0x539e98,_0x2f9954){_0x539e98=_0x539e98-0x183;let _0x2e7047=a1096_0x2e70[_0x539e98];return _0x2e7047;};const a1096_0xeb5772=a1096_0x4bc9;'use strict';const util=require('util'),logger=require(a1096_0xeb5772(0x1ab))(a1096_0xeb5772(0x18e)),Sequence=function(){};Sequence[a1096_0xeb5772(0x185)]['enqueue']=function(_0x1a39a1){const _0x2ff3ab=a1096_0xeb5772;this[_0x2ff3ab(0x19e)]=this[_0x2ff3ab(0x19e)]?this['tail'][_0x2ff3ab(0x1aa)](_0x1a39a1):_0x1a39a1();};const Migration=function(_0x50a114){const _0x48ad42=a1096_0xeb5772;this[_0x48ad42(0x1a0)]=_0x50a114,this['sequence']=new Sequence();};Migration['prototype'][a1096_0xeb5772(0x190)]=function(_0x51ba28,_0x2259bf,_0x4906fa){const _0x1e6b0b=a1096_0xeb5772,_0x4ae180=this;this[_0x1e6b0b(0x19a)][_0x1e6b0b(0x184)](function(){const _0x2ae859=_0x1e6b0b;return _0x4ae180['queryInterface'][_0x2ae859(0x190)](_0x51ba28,_0x2259bf,_0x4906fa)[_0x2ae859(0x1af)](function(){const _0x109caf=_0x2ae859;logger[_0x109caf(0x194)]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x2259bf,_0x51ba28);})['catch'](function(_0x2d2665){const _0x86362c=_0x2ae859;logger[_0x86362c(0x194)](JSON[_0x86362c(0x188)](_0x2d2665));});});},Migration[a1096_0xeb5772(0x185)]['addColumn']=function(_0x56d658,_0xdfab85,_0x33a780){const _0x4c7d72=a1096_0xeb5772,_0xb9ffd8=this;this['sequence'][_0x4c7d72(0x184)](function(){const _0x521593=_0x4c7d72;return _0xb9ffd8[_0x521593(0x1a0)]['addColumn'](_0x56d658,_0xdfab85,_0x33a780)[_0x521593(0x1af)](function(){const _0xf7b3fa=_0x521593;logger[_0xf7b3fa(0x194)](_0xf7b3fa(0x19f),_0xdfab85,_0x56d658);})[_0x521593(0x196)](function(_0x348288){const _0x6bdd4c=_0x521593;logger[_0x6bdd4c(0x194)](JSON[_0x6bdd4c(0x188)](_0x348288));});});},Migration[a1096_0xeb5772(0x185)]['dropTable']=function(_0x2c41ba){const _0x232e35=a1096_0xeb5772,_0xb8e9bc=this;this[_0x232e35(0x19a)][_0x232e35(0x184)](function(){const _0x2803ef=_0x232e35;return _0xb8e9bc[_0x2803ef(0x1a0)][_0x2803ef(0x1a3)](_0x2c41ba,{'force':!![]})[_0x2803ef(0x1af)](function(){const _0xf90e2e=_0x2803ef;logger[_0xf90e2e(0x194)](_0xf90e2e(0x19c),_0x2c41ba);})[_0x2803ef(0x196)](function(_0x54f919){const _0x7857cb=_0x2803ef;logger['info'](JSON[_0x7857cb(0x188)](_0x54f919));});});},Migration[a1096_0xeb5772(0x185)][a1096_0xeb5772(0x1a7)]=function(_0x10b443,_0x15c910,_0x44cc39){const _0xf4f7e9=a1096_0xeb5772,_0x23fbde=this;this[_0xf4f7e9(0x19a)][_0xf4f7e9(0x184)](function(){const _0x427ca9=_0xf4f7e9;return _0x23fbde[_0x427ca9(0x1a0)][_0x427ca9(0x1a7)](_0x10b443,_0x15c910,{'indexName':_0x44cc39})[_0x427ca9(0x1af)](function(){const _0x1bcdb7=_0x427ca9;logger['info'](_0x1bcdb7(0x1b1),_0x10b443,_0x15c910[_0x1bcdb7(0x1ad)](','),_0x44cc39);})[_0x427ca9(0x196)](function(_0x3d6d8b){const _0x4914b2=_0x427ca9;logger[_0x4914b2(0x194)](JSON[_0x4914b2(0x188)](_0x3d6d8b));});});},Migration[a1096_0xeb5772(0x185)]['query']=function(_0x5ddea8){const _0x25a408=a1096_0xeb5772,_0x382aba=this;this[_0x25a408(0x19a)][_0x25a408(0x184)](function(){const _0x1f79a1=_0x25a408;return _0x382aba['queryInterface']['sequelize']['query'](_0x5ddea8)[_0x1f79a1(0x1af)](function(){const _0x3b5a1a=_0x1f79a1;logger['info'](_0x3b5a1a(0x19b),_0x5ddea8);})['catch'](function(_0x1eb776){const _0x2fd9ae=_0x1f79a1;logger[_0x2fd9ae(0x194)](JSON[_0x2fd9ae(0x188)](_0x1eb776));});});},Migration[a1096_0xeb5772(0x185)][a1096_0xeb5772(0x18b)]=function(_0x46bb5c,_0x50ad8e){const _0x14f91e=a1096_0xeb5772,_0x89ad5d=this;this[_0x14f91e(0x19a)][_0x14f91e(0x184)](function(){const _0x57c545=_0x14f91e;return _0x89ad5d[_0x57c545(0x1a0)][_0x57c545(0x18b)](_0x46bb5c,_0x50ad8e)[_0x57c545(0x1af)](function(){const _0x1f9871=_0x57c545;logger['info'](_0x1f9871(0x195),_0x50ad8e,_0x46bb5c);})[_0x57c545(0x196)](function(_0x606b99){const _0x192cdf=_0x57c545;logger[_0x192cdf(0x194)](util[_0x192cdf(0x19d)](_0x606b99,{'showHidden':![],'depth':null}));});});},Migration[a1096_0xeb5772(0x185)]['renameColumn']=function(_0x366d45,_0x1b4307,_0x12e805){const _0x2bf653=a1096_0xeb5772,_0x4328cb=this;this['sequence'][_0x2bf653(0x184)](function(){const _0x3fe241=_0x2bf653;return _0x4328cb[_0x3fe241(0x1a0)][_0x3fe241(0x1ae)](_0x366d45,_0x1b4307,_0x12e805)['then'](function(){const _0x1fad90=_0x3fe241;logger['info'](_0x1fad90(0x183),_0x1b4307,_0x12e805,_0x366d45);})[_0x3fe241(0x196)](function(_0x58bde5){logger['info'](util['inspect'](_0x58bde5,{'showHidden':![],'depth':null}));});});},Migration[a1096_0xeb5772(0x185)][a1096_0xeb5772(0x193)]=function(_0x4a7b8d){const _0x19a102=a1096_0xeb5772;this[_0x19a102(0x19a)][_0x19a102(0x184)](function(){return _0x4a7b8d();});},module[a1096_0xeb5772(0x1a8)]={'up':function(_0x3e7191,_0x4900a9){return new Promise(function(_0x181075){const _0x5a1694=a1096_0x4bc9,_0x44fbae=new Migration(_0x3e7191);_0x44fbae[_0x5a1694(0x190)](_0x5a1694(0x18f),_0x5a1694(0x198),{'type':_0x4900a9['ENUM'](_0x5a1694(0x18c),'ringall','leastrecent',_0x5a1694(0x1b0),_0x5a1694(0x1b3),'rrmemory','linear',_0x5a1694(0x1b4),_0x5a1694(0x197)),'allowNull':![],'defaultValue':_0x5a1694(0x192)}),_0x44fbae['addColumn'](_0x5a1694(0x18d),'basename',{'type':_0x4900a9['STRING'],'allowNull':![]}),_0x44fbae[_0x5a1694(0x186)](_0x5a1694(0x1b2),_0x5a1694(0x199),{'type':_0x4900a9[_0x5a1694(0x1a6)]}),_0x44fbae[_0x5a1694(0x186)]('mail_accounts',_0x5a1694(0x191),{'type':_0x4900a9['BOOLEAN'],'defaultValue':!![]}),_0x44fbae[_0x5a1694(0x186)](_0x5a1694(0x1b2),_0x5a1694(0x187),{'type':_0x4900a9[_0x5a1694(0x189)],'defaultValue':![]}),_0x44fbae[_0x5a1694(0x186)](_0x5a1694(0x1a4),_0x5a1694(0x199),{'type':_0x4900a9[_0x5a1694(0x1a6)]}),_0x44fbae[_0x5a1694(0x186)](_0x5a1694(0x1a4),'notificationSound',{'type':_0x4900a9[_0x5a1694(0x189)],'defaultValue':!![]}),_0x44fbae[_0x5a1694(0x186)](_0x5a1694(0x1a4),_0x5a1694(0x187),{'type':_0x4900a9[_0x5a1694(0x189)],'defaultValue':![]}),_0x44fbae['addColumn']('fax_accounts',_0x5a1694(0x199),{'type':_0x4900a9[_0x5a1694(0x1a6)]}),_0x44fbae[_0x5a1694(0x186)](_0x5a1694(0x1a9),_0x5a1694(0x191),{'type':_0x4900a9[_0x5a1694(0x189)],'defaultValue':!![]}),_0x44fbae[_0x5a1694(0x186)](_0x5a1694(0x1a9),_0x5a1694(0x187),{'type':_0x4900a9[_0x5a1694(0x189)],'defaultValue':![]}),_0x44fbae[_0x5a1694(0x186)](_0x5a1694(0x18a),_0x5a1694(0x199),{'type':_0x4900a9[_0x5a1694(0x1a6)]}),_0x44fbae['addColumn'](_0x5a1694(0x18a),_0x5a1694(0x191),{'type':_0x4900a9[_0x5a1694(0x189)],'defaultValue':!![]}),_0x44fbae[_0x5a1694(0x186)]('sms_accounts',_0x5a1694(0x187),{'type':_0x4900a9[_0x5a1694(0x189)],'defaultValue':![]}),_0x44fbae['addColumn'](_0x5a1694(0x1ac),_0x5a1694(0x199),{'type':_0x4900a9[_0x5a1694(0x1a6)]}),_0x44fbae[_0x5a1694(0x186)](_0x5a1694(0x1ac),_0x5a1694(0x191),{'type':_0x4900a9[_0x5a1694(0x189)],'defaultValue':!![]}),_0x44fbae[_0x5a1694(0x186)](_0x5a1694(0x1ac),'notificationShake',{'type':_0x4900a9['BOOLEAN'],'defaultValue':![]}),_0x44fbae[_0x5a1694(0x1a5)]('UPDATE\x20chat_websites\x20SET\x20notificationTemplate=\x27Account:\x20{{account.name}}
    {{#queue}}Queue:\x20{{queue.name}}
    {{/queue}}From\x20:\x20{{from}}\x27'),_0x44fbae[_0x5a1694(0x1a5)](_0x5a1694(0x1a1)),_0x44fbae['query']('UPDATE\x20sms_accounts\x20SET\x20notificationTemplate=\x27Account:\x20{{account.name}}
    {{#queue}}Queue:\x20{{queue.name}}
    {{/queue}}From\x20:\x20{{from}}\x27'),_0x44fbae[_0x5a1694(0x1a5)](_0x5a1694(0x1a2)),_0x44fbae[_0x5a1694(0x1a5)]('UPDATE\x20openchannel_accounts\x20SET\x20notificationTemplate=\x27Account:\x20{{account.name}}
    {{#queue}}Queue:\x20{{queue.name}}
    {{/queue}}From\x20:\x20{{from}}\x27'),_0x44fbae[_0x5a1694(0x193)](_0x181075);});},'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 cb4dd11..6fff4d3 100644 --- a/server/migrations/2.0.57.js +++ b/server/migrations/2.0.57.js @@ -1 +1 @@ -const a935_0x34f1=['addColumn','dropTable','chat_websites','Added\x20column\x20%s\x20to\x20%s','UPDATE\x20report_queue\x20SET\x20lastAssignedTo=NULL\x20\x20WHERE\x20lastAssignedTo=\x22\x22','inspect','renameColumn','periodic_announce','query','exports','finally','addIndex','info','addIndex\x20%s\x20%s\x20%s','tail','queryInterface','enqueue','removeColumn','Removed\x20column\x20%s\x20from\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','sequence','prototype','UPDATE\x20users\x20SET\x20permissions=\x27101,102,103,110,104,105,106,107,108,109,100,111\x27\x20WHERE\x20permissions=\x27101,102,103,110,104,105,106,107,108,109,100\x27','then','join','table\x20dropped\x20%s','changeColumn','catch','hideWhenOffline','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','TEXT','stringify','final','query\x20%s'];(function(_0x3e18c7,_0x34f106){const _0xc3f7a9=function(_0x327a93){while(--_0x327a93){_0x3e18c7['push'](_0x3e18c7['shift']());}};_0xc3f7a9(++_0x34f106);}(a935_0x34f1,0x135));const a935_0xc3f7=function(_0x3e18c7,_0x34f106){_0x3e18c7=_0x3e18c7-0x0;let _0xc3f7a9=a935_0x34f1[_0x3e18c7];return _0xc3f7a9;};const _0x305eba=a935_0xc3f7;'use strict';const util=require('util'),logger=require('../config/logger')('migration'),Sequence=function(){};Sequence[_0x305eba('0x12')][_0x305eba('0xd')]=function(_0x327a93){const _0x262cf4=_0x305eba;this[_0x262cf4('0xb')]=this[_0x262cf4('0xb')]?this[_0x262cf4('0xb')][_0x262cf4('0x7')](_0x327a93):_0x327a93();};const Migration=function(_0x43c69b){const _0x1cb4ee=_0x305eba;this[_0x1cb4ee('0xc')]=_0x43c69b,this[_0x1cb4ee('0x11')]=new Sequence();};Migration['prototype']['changeColumn']=function(_0x348c6a,_0x538bb0,_0x2cffab){const _0x9a1821=_0x305eba,_0x272b01=this;this[_0x9a1821('0x11')]['enqueue'](function(){const _0x4833ee=_0x9a1821;return _0x272b01[_0x4833ee('0xc')]['changeColumn'](_0x348c6a,_0x538bb0,_0x2cffab)[_0x4833ee('0x14')](function(){const _0x54c7f4=_0x4833ee;logger[_0x54c7f4('0x9')](_0x54c7f4('0x10'),_0x538bb0,_0x348c6a);})[_0x4833ee('0x18')](function(_0x46e69c){const _0x362e3a=_0x4833ee;logger[_0x362e3a('0x9')](JSON[_0x362e3a('0x1c')](_0x46e69c));});});},Migration[_0x305eba('0x12')][_0x305eba('0x1f')]=function(_0x1b858c,_0x42d308,_0x5c7098){const _0x3f3b38=_0x305eba,_0x1a714d=this;this[_0x3f3b38('0x11')]['enqueue'](function(){const _0xa92a6b=_0x3f3b38;return _0x1a714d[_0xa92a6b('0xc')]['addColumn'](_0x1b858c,_0x42d308,_0x5c7098)[_0xa92a6b('0x14')](function(){const _0x21093e=_0xa92a6b;logger[_0x21093e('0x9')](_0x21093e('0x0'),_0x42d308,_0x1b858c);})['catch'](function(_0x464b2c){const _0x180584=_0xa92a6b;logger['info'](JSON[_0x180584('0x1c')](_0x464b2c));});});},Migration[_0x305eba('0x12')][_0x305eba('0x20')]=function(_0x4e0281){const _0x81a9fe=_0x305eba,_0x3fe27a=this;this[_0x81a9fe('0x11')][_0x81a9fe('0xd')](function(){const _0x719c46=_0x81a9fe;return _0x3fe27a[_0x719c46('0xc')][_0x719c46('0x20')](_0x4e0281,{'force':!![]})[_0x719c46('0x14')](function(){const _0x1965ca=_0x719c46;logger[_0x1965ca('0x9')](_0x1965ca('0x16'),_0x4e0281);})['catch'](function(_0x46d484){logger['info'](JSON['stringify'](_0x46d484));});});},Migration['prototype']['addIndex']=function(_0x407d56,_0x36230e,_0x4d7445){const _0x267a55=_0x305eba,_0x5c5c46=this;this[_0x267a55('0x11')][_0x267a55('0xd')](function(){const _0x25ecb3=_0x267a55;return _0x5c5c46[_0x25ecb3('0xc')][_0x25ecb3('0x8')](_0x407d56,_0x36230e,{'indexName':_0x4d7445})['then'](function(){const _0x3724a0=_0x25ecb3;logger[_0x3724a0('0x9')](_0x3724a0('0xa'),_0x407d56,_0x36230e[_0x3724a0('0x15')](','),_0x4d7445);})[_0x25ecb3('0x18')](function(_0x5d03f7){const _0x299917=_0x25ecb3;logger[_0x299917('0x9')](JSON[_0x299917('0x1c')](_0x5d03f7));});});},Migration['prototype']['query']=function(_0x3eb1ea){const _0x532566=_0x305eba,_0x2ca6f5=this;this[_0x532566('0x11')][_0x532566('0xd')](function(){const _0x7c48fb=_0x532566;return _0x2ca6f5[_0x7c48fb('0xc')]['sequelize'][_0x7c48fb('0x5')](_0x3eb1ea)[_0x7c48fb('0x14')](function(){const _0x4d38c4=_0x7c48fb;logger[_0x4d38c4('0x9')](_0x4d38c4('0x1e'),_0x3eb1ea);})[_0x7c48fb('0x18')](function(_0x27ac5a){const _0x2af591=_0x7c48fb;logger['info'](JSON[_0x2af591('0x1c')](_0x27ac5a));});});},Migration[_0x305eba('0x12')][_0x305eba('0xe')]=function(_0x1576b3,_0xb316c4){const _0x5a9b6a=_0x305eba,_0x2fba78=this;this[_0x5a9b6a('0x11')]['enqueue'](function(){const _0x4fbe5c=_0x5a9b6a;return _0x2fba78[_0x4fbe5c('0xc')][_0x4fbe5c('0xe')](_0x1576b3,_0xb316c4)[_0x4fbe5c('0x14')](function(){const _0x43b609=_0x4fbe5c;logger[_0x43b609('0x9')](_0x43b609('0xf'),_0xb316c4,_0x1576b3);})[_0x4fbe5c('0x18')](function(_0x580799){const _0x35a3eb=_0x4fbe5c;logger[_0x35a3eb('0x9')](util[_0x35a3eb('0x2')](_0x580799,{'showHidden':![],'depth':null}));});});},Migration[_0x305eba('0x12')]['renameColumn']=function(_0x510703,_0x2701ae,_0x25efe4){const _0x5c06e3=_0x305eba,_0x33eb99=this;this[_0x5c06e3('0x11')][_0x5c06e3('0xd')](function(){const _0x59e624=_0x5c06e3;return _0x33eb99['queryInterface'][_0x59e624('0x3')](_0x510703,_0x2701ae,_0x25efe4)['then'](function(){const _0x565e17=_0x59e624;logger[_0x565e17('0x9')](_0x565e17('0x1a'),_0x2701ae,_0x25efe4,_0x510703);})['catch'](function(_0x2ace96){const _0x458620=_0x59e624;logger['info'](util[_0x458620('0x2')](_0x2ace96,{'showHidden':![],'depth':null}));});});},Migration[_0x305eba('0x12')]['final']=function(_0x1ac521){const _0x3b8317=_0x305eba;this['sequence'][_0x3b8317('0xd')](function(){return _0x1ac521();});},module[_0x305eba('0x6')]={'up':function(_0x29d53c,_0x5b0e68){return new Promise(function(_0x4c2117){const _0x343f1e=a935_0xc3f7,_0x3ae8ac=new Migration(_0x29d53c);_0x3ae8ac[_0x343f1e('0x1f')](_0x343f1e('0x21'),_0x343f1e('0x19'),{'type':_0x5b0e68['BOOLEAN'],'defaultValue':![]}),_0x3ae8ac[_0x343f1e('0x17')]('voice_queues',_0x343f1e('0x4'),{'type':_0x5b0e68[_0x343f1e('0x1b')]}),_0x3ae8ac['query'](_0x343f1e('0x13')),_0x3ae8ac[_0x343f1e('0x5')](_0x343f1e('0x1')),_0x3ae8ac[_0x343f1e('0x1d')](_0x4c2117);});},'down':function(){}}; \ No newline at end of file +const a1097_0x34bd=['removeColumn','BOOLEAN','sequelize','query\x20%s','table\x20dropped\x20%s','prototype','dropTable','UPDATE\x20report_queue\x20SET\x20lastAssignedTo=NULL\x20\x20WHERE\x20lastAssignedTo=\x22\x22','Added\x20column\x20%s\x20to\x20%s','util','join','renameColumn','final','stringify','inspect','addIndex','Removed\x20column\x20%s\x20from\x20%s','addIndex\x20%s\x20%s\x20%s','catch','chat_websites','enqueue','exports','addColumn','queryInterface','query','info','Changed\x20column\x20%s\x20in\x20table\x20%s','tail','changeColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','finally','periodic_announce','then','voice_queues','sequence'];(function(_0x3734f9,_0x501def){const _0x34bdf2=function(_0x23c85c){while(--_0x23c85c){_0x3734f9['push'](_0x3734f9['shift']());}};_0x34bdf2(++_0x501def);}(a1097_0x34bd,0x13c));const a1097_0x23c8=function(_0x3734f9,_0x501def){_0x3734f9=_0x3734f9-0x11d;let _0x34bdf2=a1097_0x34bd[_0x3734f9];return _0x34bdf2;};const a1097_0x305737=a1097_0x23c8;'use strict';const util=require(a1097_0x305737(0x125)),logger=require('../config/logger')('migration'),Sequence=function(){};Sequence['prototype'][a1097_0x305737(0x130)]=function(_0x3d9942){const _0x22624c=a1097_0x305737;this[_0x22624c(0x137)]=this[_0x22624c(0x137)]?this[_0x22624c(0x137)][_0x22624c(0x13a)](_0x3d9942):_0x3d9942();};const Migration=function(_0x31dffe){const _0x323c6d=a1097_0x305737;this[_0x323c6d(0x133)]=_0x31dffe,this[_0x323c6d(0x13e)]=new Sequence();};Migration[a1097_0x305737(0x121)][a1097_0x305737(0x138)]=function(_0x8a5c02,_0x45b324,_0x3b404b){const _0x555fa4=a1097_0x305737,_0x4e0bf4=this;this['sequence'][_0x555fa4(0x130)](function(){const _0x3d5b4a=_0x555fa4;return _0x4e0bf4['queryInterface'][_0x3d5b4a(0x138)](_0x8a5c02,_0x45b324,_0x3b404b)[_0x3d5b4a(0x13c)](function(){const _0x3a64e3=_0x3d5b4a;logger['info'](_0x3a64e3(0x136),_0x45b324,_0x8a5c02);})['catch'](function(_0x434d5b){const _0x4e5c13=_0x3d5b4a;logger[_0x4e5c13(0x135)](JSON[_0x4e5c13(0x129)](_0x434d5b));});});},Migration[a1097_0x305737(0x121)][a1097_0x305737(0x132)]=function(_0x54bef5,_0x579a47,_0x32edfa){const _0x34cdd7=a1097_0x305737,_0x4c050c=this;this[_0x34cdd7(0x13e)][_0x34cdd7(0x130)](function(){const _0x55e1d4=_0x34cdd7;return _0x4c050c[_0x55e1d4(0x133)][_0x55e1d4(0x132)](_0x54bef5,_0x579a47,_0x32edfa)[_0x55e1d4(0x13c)](function(){const _0x4fe429=_0x55e1d4;logger[_0x4fe429(0x135)](_0x4fe429(0x124),_0x579a47,_0x54bef5);})['catch'](function(_0x145a86){const _0x19ecfa=_0x55e1d4;logger[_0x19ecfa(0x135)](JSON[_0x19ecfa(0x129)](_0x145a86));});});},Migration['prototype'][a1097_0x305737(0x122)]=function(_0x398a51){const _0x25f33e=a1097_0x305737,_0x2941bd=this;this['sequence'][_0x25f33e(0x130)](function(){const _0x308a20=_0x25f33e;return _0x2941bd[_0x308a20(0x133)][_0x308a20(0x122)](_0x398a51,{'force':!![]})[_0x308a20(0x13c)](function(){const _0x17829f=_0x308a20;logger[_0x17829f(0x135)](_0x17829f(0x120),_0x398a51);})[_0x308a20(0x12e)](function(_0x15a638){const _0x177b6d=_0x308a20;logger[_0x177b6d(0x135)](JSON[_0x177b6d(0x129)](_0x15a638));});});},Migration['prototype']['addIndex']=function(_0x5968e2,_0x353121,_0x14b598){const _0x236fe7=a1097_0x305737,_0x408803=this;this[_0x236fe7(0x13e)][_0x236fe7(0x130)](function(){const _0x2e7e31=_0x236fe7;return _0x408803[_0x2e7e31(0x133)][_0x2e7e31(0x12b)](_0x5968e2,_0x353121,{'indexName':_0x14b598})['then'](function(){const _0x441fcd=_0x2e7e31;logger['info'](_0x441fcd(0x12d),_0x5968e2,_0x353121[_0x441fcd(0x126)](','),_0x14b598);})[_0x2e7e31(0x12e)](function(_0x7ff474){const _0x38b8d6=_0x2e7e31;logger[_0x38b8d6(0x135)](JSON[_0x38b8d6(0x129)](_0x7ff474));});});},Migration[a1097_0x305737(0x121)]['query']=function(_0x21cba8){const _0x302ecc=this;this['sequence']['enqueue'](function(){const _0x2b355d=a1097_0x23c8;return _0x302ecc['queryInterface'][_0x2b355d(0x11e)]['query'](_0x21cba8)[_0x2b355d(0x13c)](function(){const _0x2d874=_0x2b355d;logger[_0x2d874(0x135)](_0x2d874(0x11f),_0x21cba8);})['catch'](function(_0x766df5){const _0xc5e246=_0x2b355d;logger[_0xc5e246(0x135)](JSON[_0xc5e246(0x129)](_0x766df5));});});},Migration[a1097_0x305737(0x121)][a1097_0x305737(0x13f)]=function(_0x4b6763,_0x4fb89c){const _0x62de84=a1097_0x305737,_0x5cdeef=this;this[_0x62de84(0x13e)][_0x62de84(0x130)](function(){const _0x133ceb=_0x62de84;return _0x5cdeef[_0x133ceb(0x133)][_0x133ceb(0x13f)](_0x4b6763,_0x4fb89c)[_0x133ceb(0x13c)](function(){const _0x2b252f=_0x133ceb;logger[_0x2b252f(0x135)](_0x2b252f(0x12c),_0x4fb89c,_0x4b6763);})[_0x133ceb(0x12e)](function(_0x166523){const _0x46b284=_0x133ceb;logger[_0x46b284(0x135)](util[_0x46b284(0x12a)](_0x166523,{'showHidden':![],'depth':null}));});});},Migration[a1097_0x305737(0x121)][a1097_0x305737(0x127)]=function(_0x4d17d0,_0x34a357,_0x2909de){const _0x33758f=a1097_0x305737,_0x56dc55=this;this['sequence'][_0x33758f(0x130)](function(){const _0x59ef3d=_0x33758f;return _0x56dc55['queryInterface'][_0x59ef3d(0x127)](_0x4d17d0,_0x34a357,_0x2909de)['then'](function(){const _0x202834=_0x59ef3d;logger[_0x202834(0x135)](_0x202834(0x139),_0x34a357,_0x2909de,_0x4d17d0);})[_0x59ef3d(0x12e)](function(_0x15a711){const _0x381cd4=_0x59ef3d;logger['info'](util[_0x381cd4(0x12a)](_0x15a711,{'showHidden':![],'depth':null}));});});},Migration[a1097_0x305737(0x121)][a1097_0x305737(0x128)]=function(_0x38b716){const _0xe1fb6a=a1097_0x305737;this['sequence'][_0xe1fb6a(0x130)](function(){return _0x38b716();});},module[a1097_0x305737(0x131)]={'up':function(_0x3b2de6,_0x248c2b){return new Promise(function(_0x4878db){const _0x447a67=a1097_0x23c8,_0x29f141=new Migration(_0x3b2de6);_0x29f141[_0x447a67(0x132)](_0x447a67(0x12f),'hideWhenOffline',{'type':_0x248c2b[_0x447a67(0x11d)],'defaultValue':![]}),_0x29f141[_0x447a67(0x138)](_0x447a67(0x13d),_0x447a67(0x13b),{'type':_0x248c2b['TEXT']}),_0x29f141[_0x447a67(0x134)]('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'),_0x29f141['query'](_0x447a67(0x123)),_0x29f141['final'](_0x4878db);});},'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 43f1a0c..eaf703b 100644 --- a/server/migrations/2.0.58.js +++ b/server/migrations/2.0.58.js @@ -1 +1 @@ -const a936_0x3e25=['renameColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','join','INSERT\x20INTO\x20`tools_sounds`\x20(`name`,\x20`save_name`,\x20`display_name`,\x20`description`,\x20`original_format`,\x20`original_duration`,\x20`original_sampleCount`,\x20`original_channelCount`,\x20`original_bitRate`,\x20`original_sampleRate`,\x20`converted_format`,\x20`converted_duration`,\x20`converted_sampleCount`,\x20`converted_channelCount`,\x20`converted_bitRate`,\x20`converted_sampleRate`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Agent\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);','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','prototype','table\x20dropped\x20%s','finally','addIndex','queue','dropTable','../config/logger','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);','final','then','changeColumn','queuecallerexitreason','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','STRING','addColumn','INSERT\x20INTO\x20`tools_sounds`\x20(`name`,\x20`save_name`,\x20`display_name`,\x20`description`,\x20`original_format`,\x20`original_duration`,\x20`original_sampleCount`,\x20`original_channelCount`,\x20`original_bitRate`,\x20`original_sampleRate`,\x20`converted_format`,\x20`converted_duration`,\x20`converted_sampleCount`,\x20`converted_channelCount`,\x20`converted_bitRate`,\x20`converted_sampleRate`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Agent\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);','inspect','Added\x20column\x20%s\x20to\x20%s','query','catch','stringify','exports','tail','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','removeColumn','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);','disposition','migration','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);','queryInterface','report_queue','sequence','enqueue'];(function(_0x33425d,_0x3e25d7){const _0x3d50c4=function(_0x38c62d){while(--_0x38c62d){_0x33425d['push'](_0x33425d['shift']());}};_0x3d50c4(++_0x3e25d7);}(a936_0x3e25,0x199));const a936_0x3d50=function(_0x33425d,_0x3e25d7){_0x33425d=_0x33425d-0x0;let _0x3d50c4=a936_0x3e25[_0x33425d];return _0x3d50c4;};const _0x12157e=a936_0x3d50;'use strict';const util=require('util'),logger=require(_0x12157e('0x20'))(_0x12157e('0xe')),Sequence=function(){};Sequence[_0x12157e('0x1a')][_0x12157e('0x13')]=function(_0x38c62d){const _0x518129=_0x12157e;this[_0x518129('0x9')]=this[_0x518129('0x9')]?this[_0x518129('0x9')][_0x518129('0x1c')](_0x38c62d):_0x38c62d();};const Migration=function(_0x266ada){this['queryInterface']=_0x266ada,this['sequence']=new Sequence();};Migration[_0x12157e('0x1a')][_0x12157e('0x24')]=function(_0x147d77,_0x1b409d,_0x232755){const _0x872f43=_0x12157e,_0x4b5bd8=this;this[_0x872f43('0x12')][_0x872f43('0x13')](function(){const _0x250913=_0x872f43;return _0x4b5bd8[_0x250913('0x10')]['changeColumn'](_0x147d77,_0x1b409d,_0x232755)[_0x250913('0x23')](function(){const _0x2d69bf=_0x250913;logger[_0x2d69bf('0x19')](_0x2d69bf('0x15'),_0x1b409d,_0x147d77);})[_0x250913('0x6')](function(_0x382593){const _0x2952c3=_0x250913;logger[_0x2952c3('0x19')](JSON['stringify'](_0x382593));});});},Migration['prototype'][_0x12157e('0x1')]=function(_0x415c94,_0x1e9952,_0x2c6de4){const _0x106c49=_0x12157e,_0xcd794f=this;this[_0x106c49('0x12')][_0x106c49('0x13')](function(){const _0x1664f2=_0x106c49;return _0xcd794f[_0x1664f2('0x10')]['addColumn'](_0x415c94,_0x1e9952,_0x2c6de4)[_0x1664f2('0x23')](function(){const _0x557005=_0x1664f2;logger[_0x557005('0x19')](_0x557005('0x4'),_0x1e9952,_0x415c94);})[_0x1664f2('0x6')](function(_0x3d2d74){const _0x94d365=_0x1664f2;logger[_0x94d365('0x19')](JSON['stringify'](_0x3d2d74));});});},Migration['prototype'][_0x12157e('0x1f')]=function(_0x37f803){const _0x29b9eb=_0x12157e,_0x243ab2=this;this['sequence'][_0x29b9eb('0x13')](function(){const _0x3e6ba6=_0x29b9eb;return _0x243ab2[_0x3e6ba6('0x10')][_0x3e6ba6('0x1f')](_0x37f803,{'force':!![]})[_0x3e6ba6('0x23')](function(){const _0x52937b=_0x3e6ba6;logger[_0x52937b('0x19')](_0x52937b('0x1b'),_0x37f803);})['catch'](function(_0x5867dd){const _0x5ac094=_0x3e6ba6;logger[_0x5ac094('0x19')](JSON[_0x5ac094('0x7')](_0x5867dd));});});},Migration[_0x12157e('0x1a')][_0x12157e('0x1d')]=function(_0x41aff2,_0x54959d,_0x638929){const _0x2e0678=_0x12157e,_0x59bff1=this;this[_0x2e0678('0x12')][_0x2e0678('0x13')](function(){const _0x245341=_0x2e0678;return _0x59bff1[_0x245341('0x10')][_0x245341('0x1d')](_0x41aff2,_0x54959d,{'indexName':_0x638929})[_0x245341('0x23')](function(){const _0x4b005a=_0x245341;logger[_0x4b005a('0x19')]('addIndex\x20%s\x20%s\x20%s',_0x41aff2,_0x54959d[_0x4b005a('0x16')](','),_0x638929);})[_0x245341('0x6')](function(_0x362223){const _0x16f2c3=_0x245341;logger['info'](JSON[_0x16f2c3('0x7')](_0x362223));});});},Migration[_0x12157e('0x1a')]['query']=function(_0x2e27b2){const _0x3cb2de=_0x12157e,_0x15eaaa=this;this[_0x3cb2de('0x12')]['enqueue'](function(){const _0x1636ee=_0x3cb2de;return _0x15eaaa[_0x1636ee('0x10')]['sequelize'][_0x1636ee('0x5')](_0x2e27b2)[_0x1636ee('0x23')](function(){logger['info']('query\x20%s',_0x2e27b2);})['catch'](function(_0x2b887b){const _0x20462f=_0x1636ee;logger[_0x20462f('0x19')](JSON['stringify'](_0x2b887b));});});},Migration['prototype'][_0x12157e('0xb')]=function(_0x1b0e56,_0x28be0c){const _0x2b0a20=_0x12157e,_0x3dad2f=this;this[_0x2b0a20('0x12')][_0x2b0a20('0x13')](function(){const _0xfdeeff=_0x2b0a20;return _0x3dad2f['queryInterface'][_0xfdeeff('0xb')](_0x1b0e56,_0x28be0c)[_0xfdeeff('0x23')](function(){logger['info']('Removed\x20column\x20%s\x20from\x20%s',_0x28be0c,_0x1b0e56);})[_0xfdeeff('0x6')](function(_0x4aa653){const _0x5f459c=_0xfdeeff;logger[_0x5f459c('0x19')](util[_0x5f459c('0x3')](_0x4aa653,{'showHidden':![],'depth':null}));});});},Migration[_0x12157e('0x1a')][_0x12157e('0x14')]=function(_0xe942b9,_0x24112e,_0x5899de){const _0x1dcf19=_0x12157e,_0x49feee=this;this[_0x1dcf19('0x12')][_0x1dcf19('0x13')](function(){const _0xdc9f37=_0x1dcf19;return _0x49feee[_0xdc9f37('0x10')][_0xdc9f37('0x14')](_0xe942b9,_0x24112e,_0x5899de)[_0xdc9f37('0x23')](function(){const _0x2e4e05=_0xdc9f37;logger[_0x2e4e05('0x19')](_0x2e4e05('0xa'),_0x24112e,_0x5899de,_0xe942b9);})[_0xdc9f37('0x6')](function(_0x3aa2fd){const _0x5b51a6=_0xdc9f37;logger[_0x5b51a6('0x19')](util['inspect'](_0x3aa2fd,{'showHidden':![],'depth':null}));});});},Migration['prototype']['final']=function(_0x228f91){const _0x3cd67a=_0x12157e;this[_0x3cd67a('0x12')][_0x3cd67a('0x13')](function(){return _0x228f91();});},module[_0x12157e('0x8')]={'up':function(_0x567c86,_0x28c8fa){return new Promise(function(_0x476a00){const _0x13a06e=a936_0x3d50,_0x3bbf0a=new Migration(_0x567c86);_0x3bbf0a[_0x13a06e('0x5')](_0x13a06e('0x26')),_0x3bbf0a[_0x13a06e('0x1d')](_0x13a06e('0x11'),[_0x13a06e('0x1e')],_0x13a06e('0x1e')),_0x3bbf0a[_0x13a06e('0x1d')](_0x13a06e('0x11'),[_0x13a06e('0x25')],'queuecallerexitreason'),_0x3bbf0a['addColumn'](_0x13a06e('0x11'),_0x13a06e('0xd'),{'type':_0x28c8fa[_0x13a06e('0x0')]}),_0x3bbf0a[_0x13a06e('0x5')](_0x13a06e('0x21')),_0x3bbf0a[_0x13a06e('0x5')](_0x13a06e('0x18')),_0x3bbf0a['query'](_0x13a06e('0x2')),_0x3bbf0a[_0x13a06e('0x5')](_0x13a06e('0x17')),_0x3bbf0a[_0x13a06e('0x5')](_0x13a06e('0xc')),_0x3bbf0a[_0x13a06e('0x5')](_0x13a06e('0xf')),_0x3bbf0a['query']('INSERT\x20INTO\x20`tools_sounds`\x20(`name`,\x20`save_name`,\x20`display_name`,\x20`description`,\x20`original_format`,\x20`original_duration`,\x20`original_sampleCount`,\x20`original_channelCount`,\x20`original_bitRate`,\x20`original_sampleRate`,\x20`converted_format`,\x20`converted_duration`,\x20`converted_sampleCount`,\x20`converted_channelCount`,\x20`converted_bitRate`,\x20`converted_sampleRate`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Agent\x20Action\x20Failure\x27,\x20\x27agentmanagement-action-failure\x27,\x20\x27Agent\x20Action\x20Failure\x27,\x20\x27auto\x20generated\x20sound\x27,\x20\x27wav\x27,\x20NULL,\x20NULL,\x20NULL,\x20NULL,\x20NULL,\x20\x27wav\x27,\x20NULL,\x20NULL,\x20NULL,\x20NULL,\x20NULL,\x20\x272018-05-24\x2011:44:53\x27,\x20\x272018-05-24\x2011:44:53\x27);'),_0x3bbf0a[_0x13a06e('0x22')](_0x476a00);});},'down':function(){}}; \ No newline at end of file +const a1098_0x4280=['tail','queuecallerexitreason','migration','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','addIndex','finally','disposition','enqueue','sequelize','../config/logger','dropTable','changeColumn','removeColumn','final','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);','table\x20dropped\x20%s','Added\x20column\x20%s\x20to\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);','query','addColumn','exports','sequence','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);','Changed\x20column\x20%s\x20in\x20table\x20%s','report_queue','catch','then','stringify','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);','Removed\x20column\x20%s\x20from\x20%s','queue','info','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);','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);','inspect','queryInterface','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','addIndex\x20%s\x20%s\x20%s','renameColumn','INSERT\x20INTO\x20`tools_sounds`\x20(`name`,\x20`save_name`,\x20`display_name`,\x20`description`,\x20`original_format`,\x20`original_duration`,\x20`original_sampleCount`,\x20`original_channelCount`,\x20`original_bitRate`,\x20`original_sampleRate`,\x20`converted_format`,\x20`converted_duration`,\x20`converted_sampleCount`,\x20`converted_channelCount`,\x20`converted_bitRate`,\x20`converted_sampleRate`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Agent\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);','prototype','query\x20%s'];(function(_0x818b15,_0x50576d){const _0x428016=function(_0x20d8ca){while(--_0x20d8ca){_0x818b15['push'](_0x818b15['shift']());}};_0x428016(++_0x50576d);}(a1098_0x4280,0x114));const a1098_0x20d8=function(_0x818b15,_0x50576d){_0x818b15=_0x818b15-0x156;let _0x428016=a1098_0x4280[_0x818b15];return _0x428016;};const a1098_0x4f343b=a1098_0x20d8;'use strict';const util=require('util'),logger=require(a1098_0x4f343b(0x171))(a1098_0x4f343b(0x16a)),Sequence=function(){};Sequence[a1098_0x4f343b(0x166)][a1098_0x4f343b(0x16f)]=function(_0x3654de){const _0x5dcd83=a1098_0x4f343b;this[_0x5dcd83(0x168)]=this['tail']?this[_0x5dcd83(0x168)][_0x5dcd83(0x16d)](_0x3654de):_0x3654de();};const Migration=function(_0x23cda4){const _0x4db1dd=a1098_0x4f343b;this[_0x4db1dd(0x161)]=_0x23cda4,this['sequence']=new Sequence();};Migration[a1098_0x4f343b(0x166)]['changeColumn']=function(_0x30fa7b,_0x579267,_0x12c400){const _0x1db6c6=a1098_0x4f343b,_0x248d9d=this;this[_0x1db6c6(0x17d)][_0x1db6c6(0x16f)](function(){const _0x4b2dd5=_0x1db6c6;return _0x248d9d[_0x4b2dd5(0x161)][_0x4b2dd5(0x173)](_0x30fa7b,_0x579267,_0x12c400)[_0x4b2dd5(0x158)](function(){const _0x15a56e=_0x4b2dd5;logger[_0x15a56e(0x15d)](_0x15a56e(0x17f),_0x579267,_0x30fa7b);})[_0x4b2dd5(0x157)](function(_0x1d46f9){const _0x3d5b3b=_0x4b2dd5;logger['info'](JSON[_0x3d5b3b(0x159)](_0x1d46f9));});});},Migration[a1098_0x4f343b(0x166)][a1098_0x4f343b(0x17b)]=function(_0x5c5b4d,_0x27ed13,_0x577445){const _0x53e63a=a1098_0x4f343b,_0x3e5f8a=this;this[_0x53e63a(0x17d)]['enqueue'](function(){const _0x38d28d=_0x53e63a;return _0x3e5f8a[_0x38d28d(0x161)]['addColumn'](_0x5c5b4d,_0x27ed13,_0x577445)[_0x38d28d(0x158)](function(){const _0x45fd3c=_0x38d28d;logger['info'](_0x45fd3c(0x178),_0x27ed13,_0x5c5b4d);})[_0x38d28d(0x157)](function(_0x183cc8){const _0x521ab5=_0x38d28d;logger[_0x521ab5(0x15d)](JSON[_0x521ab5(0x159)](_0x183cc8));});});},Migration[a1098_0x4f343b(0x166)]['dropTable']=function(_0x7a1150){const _0x208e38=a1098_0x4f343b,_0x4e0659=this;this['sequence'][_0x208e38(0x16f)](function(){const _0x407dc1=_0x208e38;return _0x4e0659[_0x407dc1(0x161)][_0x407dc1(0x172)](_0x7a1150,{'force':!![]})[_0x407dc1(0x158)](function(){const _0x1c9a2d=_0x407dc1;logger['info'](_0x1c9a2d(0x177),_0x7a1150);})['catch'](function(_0x5e4080){const _0x55abfd=_0x407dc1;logger[_0x55abfd(0x15d)](JSON[_0x55abfd(0x159)](_0x5e4080));});});},Migration[a1098_0x4f343b(0x166)]['addIndex']=function(_0x5c037a,_0x1583bd,_0x103c6b){const _0x1a105c=a1098_0x4f343b,_0x9445dd=this;this[_0x1a105c(0x17d)]['enqueue'](function(){const _0x507573=_0x1a105c;return _0x9445dd['queryInterface']['addIndex'](_0x5c037a,_0x1583bd,{'indexName':_0x103c6b})['then'](function(){const _0x3775f2=a1098_0x20d8;logger[_0x3775f2(0x15d)](_0x3775f2(0x163),_0x5c037a,_0x1583bd['join'](','),_0x103c6b);})[_0x507573(0x157)](function(_0x1b7690){const _0x197278=_0x507573;logger[_0x197278(0x15d)](JSON[_0x197278(0x159)](_0x1b7690));});});},Migration[a1098_0x4f343b(0x166)]['query']=function(_0x56d76f){const _0xd72ffe=a1098_0x4f343b,_0x1f4d11=this;this[_0xd72ffe(0x17d)][_0xd72ffe(0x16f)](function(){const _0x760271=_0xd72ffe;return _0x1f4d11['queryInterface'][_0x760271(0x170)][_0x760271(0x17a)](_0x56d76f)[_0x760271(0x158)](function(){const _0x205725=_0x760271;logger[_0x205725(0x15d)](_0x205725(0x167),_0x56d76f);})[_0x760271(0x157)](function(_0x264591){const _0x52164d=_0x760271;logger[_0x52164d(0x15d)](JSON['stringify'](_0x264591));});});},Migration[a1098_0x4f343b(0x166)]['removeColumn']=function(_0x3f0b27,_0x25e3d3){const _0x2005bb=a1098_0x4f343b,_0x5cc6b1=this;this[_0x2005bb(0x17d)]['enqueue'](function(){const _0x2c99af=_0x2005bb;return _0x5cc6b1[_0x2c99af(0x161)][_0x2c99af(0x174)](_0x3f0b27,_0x25e3d3)[_0x2c99af(0x158)](function(){const _0x378d45=_0x2c99af;logger[_0x378d45(0x15d)](_0x378d45(0x15b),_0x25e3d3,_0x3f0b27);})['catch'](function(_0x11e24d){const _0x4308d8=_0x2c99af;logger[_0x4308d8(0x15d)](util[_0x4308d8(0x160)](_0x11e24d,{'showHidden':![],'depth':null}));});});},Migration[a1098_0x4f343b(0x166)][a1098_0x4f343b(0x164)]=function(_0x3f23d2,_0x303de4,_0x40ad2a){const _0x76e821=a1098_0x4f343b,_0x1e3e2e=this;this[_0x76e821(0x17d)][_0x76e821(0x16f)](function(){const _0x202725=_0x76e821;return _0x1e3e2e[_0x202725(0x161)]['renameColumn'](_0x3f23d2,_0x303de4,_0x40ad2a)[_0x202725(0x158)](function(){const _0x478eb9=_0x202725;logger[_0x478eb9(0x15d)](_0x478eb9(0x16b),_0x303de4,_0x40ad2a,_0x3f23d2);})['catch'](function(_0x5c8edd){const _0x58961e=_0x202725;logger[_0x58961e(0x15d)](util[_0x58961e(0x160)](_0x5c8edd,{'showHidden':![],'depth':null}));});});},Migration[a1098_0x4f343b(0x166)][a1098_0x4f343b(0x175)]=function(_0x141ea8){const _0x2cd0c2=a1098_0x4f343b;this[_0x2cd0c2(0x17d)][_0x2cd0c2(0x16f)](function(){return _0x141ea8();});},module[a1098_0x4f343b(0x17c)]={'up':function(_0x21771b,_0xb05e7b){return new Promise(function(_0x4809d){const _0x59cde8=a1098_0x20d8,_0x12d397=new Migration(_0x21771b);_0x12d397[_0x59cde8(0x17a)](_0x59cde8(0x162)),_0x12d397[_0x59cde8(0x16c)](_0x59cde8(0x156),[_0x59cde8(0x15c)],_0x59cde8(0x15c)),_0x12d397[_0x59cde8(0x16c)]('report_queue',[_0x59cde8(0x169)],'queuecallerexitreason'),_0x12d397['addColumn'](_0x59cde8(0x156),_0x59cde8(0x16e),{'type':_0xb05e7b['STRING']}),_0x12d397[_0x59cde8(0x17a)](_0x59cde8(0x179)),_0x12d397['query'](_0x59cde8(0x176)),_0x12d397[_0x59cde8(0x17a)](_0x59cde8(0x165)),_0x12d397[_0x59cde8(0x17a)](_0x59cde8(0x15e)),_0x12d397[_0x59cde8(0x17a)](_0x59cde8(0x15a)),_0x12d397[_0x59cde8(0x17a)](_0x59cde8(0x17e)),_0x12d397['query'](_0x59cde8(0x15f)),_0x12d397['final'](_0x4809d);});},'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 b03da25..d7bf73f 100644 --- a/server/migrations/2.0.59.js +++ b/server/migrations/2.0.59.js @@ -1 +1 @@ -const a937_0x56d0=['UNSIGNED','final','cm_contacts','migration','queryInterface','addIndex\x20%s\x20%s\x20%s','table\x20dropped\x20%s','phoneBarAutoUpdaterUrl','skype','then','tail','dialPrefix','campaigns','enqueue','removeColumn','util','DATE','addIndex','mail_interactions','exports','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','priority','Added\x20column\x20%s\x20to\x20%s','openedBy','STRING','UserId','prototype','../config/logger','alias','info','stringify','chat_interactions','query','BOOLEAN','phoneBarAutoUpdater','addColumn','inspect','INTEGER','catch','dropTable','Removed\x20column\x20%s\x20from\x20%s','sms_interactions','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','sequelize','fax_interactions','changeColumn','settings','users','sequence'];(function(_0x5e8ec4,_0x56d0b3){const _0x181585=function(_0x1d9956){while(--_0x1d9956){_0x5e8ec4['push'](_0x5e8ec4['shift']());}};_0x181585(++_0x56d0b3);}(a937_0x56d0,0x145));const a937_0x1815=function(_0x5e8ec4,_0x56d0b3){_0x5e8ec4=_0x5e8ec4-0x0;let _0x181585=a937_0x56d0[_0x5e8ec4];return _0x181585;};const _0x1259b7=a937_0x1815;'use strict';const util=require(_0x1259b7('0x21')),logger=require(_0x1259b7('0x2d'))(_0x1259b7('0x15')),Sequence=function(){};Sequence[_0x1259b7('0x2c')]['enqueue']=function(_0x1d9956){const _0x31cf92=_0x1259b7;this[_0x31cf92('0x1c')]=this[_0x31cf92('0x1c')]?this['tail']['finally'](_0x1d9956):_0x1d9956();};const Migration=function(_0x599e02){const _0x345aaf=_0x1259b7;this[_0x345aaf('0x16')]=_0x599e02,this[_0x345aaf('0x11')]=new Sequence();};Migration[_0x1259b7('0x2c')][_0x1259b7('0xe')]=function(_0x7c78ab,_0x1734f5,_0x1fb0f7){const _0x15a0b8=_0x1259b7,_0x43c424=this;this[_0x15a0b8('0x11')][_0x15a0b8('0x1f')](function(){const _0x21673b=_0x15a0b8;return _0x43c424[_0x21673b('0x16')][_0x21673b('0xe')](_0x7c78ab,_0x1734f5,_0x1fb0f7)[_0x21673b('0x1b')](function(){const _0x110f0a=_0x21673b;logger[_0x110f0a('0x2f')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x1734f5,_0x7c78ab);})['catch'](function(_0x399b8d){logger['info'](JSON['stringify'](_0x399b8d));});});},Migration[_0x1259b7('0x2c')]['addColumn']=function(_0x12ce6c,_0xbe8ab,_0x9a06c4){const _0x5da609=_0x1259b7,_0x125186=this;this[_0x5da609('0x11')][_0x5da609('0x1f')](function(){const _0x428a5c=_0x5da609;return _0x125186['queryInterface'][_0x428a5c('0x4')](_0x12ce6c,_0xbe8ab,_0x9a06c4)[_0x428a5c('0x1b')](function(){const _0x921ee4=_0x428a5c;logger['info'](_0x921ee4('0x28'),_0xbe8ab,_0x12ce6c);})['catch'](function(_0x135a8c){const _0x33ea79=_0x428a5c;logger[_0x33ea79('0x2f')](JSON['stringify'](_0x135a8c));});});},Migration[_0x1259b7('0x2c')][_0x1259b7('0x8')]=function(_0x271e85){const _0x4066b8=_0x1259b7,_0x4d9936=this;this['sequence'][_0x4066b8('0x1f')](function(){const _0x29ac34=_0x4066b8;return _0x4d9936['queryInterface'][_0x29ac34('0x8')](_0x271e85,{'force':!![]})['then'](function(){const _0x38ad7b=_0x29ac34;logger['info'](_0x38ad7b('0x18'),_0x271e85);})[_0x29ac34('0x7')](function(_0x3f493b){const _0x4aa6d9=_0x29ac34;logger[_0x4aa6d9('0x2f')](JSON[_0x4aa6d9('0x30')](_0x3f493b));});});},Migration[_0x1259b7('0x2c')][_0x1259b7('0x23')]=function(_0x1532f5,_0x3ce6a4,_0x240729){const _0x39b8f8=_0x1259b7,_0x5d6526=this;this[_0x39b8f8('0x11')]['enqueue'](function(){const _0x28dc22=_0x39b8f8;return _0x5d6526[_0x28dc22('0x16')][_0x28dc22('0x23')](_0x1532f5,_0x3ce6a4,{'indexName':_0x240729})['then'](function(){const _0xd33ef2=_0x28dc22;logger[_0xd33ef2('0x2f')](_0xd33ef2('0x17'),_0x1532f5,_0x3ce6a4['join'](','),_0x240729);})['catch'](function(_0x32ac3f){const _0x31db1f=_0x28dc22;logger[_0x31db1f('0x2f')](JSON['stringify'](_0x32ac3f));});});},Migration[_0x1259b7('0x2c')][_0x1259b7('0x1')]=function(_0x5c5913){const _0x22fed8=_0x1259b7,_0x109348=this;this[_0x22fed8('0x11')]['enqueue'](function(){const _0x3f3cf4=_0x22fed8;return _0x109348[_0x3f3cf4('0x16')][_0x3f3cf4('0xc')]['query'](_0x5c5913)[_0x3f3cf4('0x1b')](function(){logger['info']('query\x20%s',_0x5c5913);})[_0x3f3cf4('0x7')](function(_0x4d9b7f){const _0x582538=_0x3f3cf4;logger['info'](JSON[_0x582538('0x30')](_0x4d9b7f));});});},Migration[_0x1259b7('0x2c')][_0x1259b7('0x20')]=function(_0x58454b,_0x1c5bcd){const _0x1af0dd=_0x1259b7,_0x2a3605=this;this[_0x1af0dd('0x11')][_0x1af0dd('0x1f')](function(){const _0x1e162d=_0x1af0dd;return _0x2a3605[_0x1e162d('0x16')][_0x1e162d('0x20')](_0x58454b,_0x1c5bcd)[_0x1e162d('0x1b')](function(){const _0x13d158=_0x1e162d;logger['info'](_0x13d158('0x9'),_0x1c5bcd,_0x58454b);})[_0x1e162d('0x7')](function(_0x373bd9){const _0x56625e=_0x1e162d;logger['info'](util[_0x56625e('0x5')](_0x373bd9,{'showHidden':![],'depth':null}));});});},Migration[_0x1259b7('0x2c')]['renameColumn']=function(_0x23436b,_0x21d2ec,_0x2bac4e){const _0x1ff6f6=_0x1259b7,_0x48165b=this;this[_0x1ff6f6('0x11')][_0x1ff6f6('0x1f')](function(){const _0x13e03d=_0x1ff6f6;return _0x48165b[_0x13e03d('0x16')]['renameColumn'](_0x23436b,_0x21d2ec,_0x2bac4e)[_0x13e03d('0x1b')](function(){const _0x4e15ea=_0x13e03d;logger['info'](_0x4e15ea('0xb'),_0x21d2ec,_0x2bac4e,_0x23436b);})['catch'](function(_0x5b57ec){const _0x3d456c=_0x13e03d;logger[_0x3d456c('0x2f')](util[_0x3d456c('0x5')](_0x5b57ec,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x1259b7('0x13')]=function(_0x3918dd){const _0xe3b68d=_0x1259b7;this['sequence'][_0xe3b68d('0x1f')](function(){return _0x3918dd();});},module[_0x1259b7('0x25')]={'up':function(_0x2cfafd,_0x4dae86){return new Promise(function(_0x463b57){const _0x555f07=a937_0x1815,_0x129bd1=new Migration(_0x2cfafd);_0x129bd1[_0x555f07('0x4')](_0x555f07('0xf'),_0x555f07('0x3'),{'type':_0x4dae86[_0x555f07('0x2')],'defaultValue':!![]}),_0x129bd1['addColumn'](_0x555f07('0xf'),_0x555f07('0x19'),{'type':_0x4dae86['STRING'],'defaultValue':'https://www.xcally.com/bar/phonebar/autoupdater.xml'}),_0x129bd1[_0x555f07('0x4')](_0x555f07('0x1e'),_0x555f07('0x1d'),{'type':_0x4dae86[_0x555f07('0x2a')]}),_0x129bd1[_0x555f07('0x4')]('cm_lists',_0x555f07('0x1d'),{'type':_0x4dae86[_0x555f07('0x2a')]}),_0x129bd1['addColumn'](_0x555f07('0x10'),_0x555f07('0x2e'),{'type':_0x4dae86['STRING']}),_0x129bd1['addColumn'](_0x555f07('0x14'),_0x555f07('0x1a'),{'type':_0x4dae86['STRING']}),_0x129bd1['addColumn'](_0x555f07('0x14'),_0x555f07('0x2b'),{'type':_0x4dae86[_0x555f07('0x6')]}),_0x129bd1['addColumn'](_0x555f07('0x14'),_0x555f07('0x27'),{'type':_0x4dae86['INTEGER'](0x2)[_0x555f07('0x12')],'defaultValue':0x2,'validate':{'min':0x0,'max':0x4}}),_0x129bd1[_0x555f07('0x4')](_0x555f07('0x14'),'scheduledat',{'type':_0x4dae86[_0x555f07('0x22')],'defaultValue':_0x4dae86['NOW']}),_0x129bd1[_0x555f07('0x4')](_0x555f07('0x24'),_0x555f07('0x29'),{'type':_0x4dae86['STRING'],'defaultValue':''}),_0x129bd1[_0x555f07('0x4')](_0x555f07('0x0'),_0x555f07('0x29'),{'type':_0x4dae86[_0x555f07('0x2a')],'defaultValue':''}),_0x129bd1[_0x555f07('0x4')](_0x555f07('0xa'),_0x555f07('0x29'),{'type':_0x4dae86[_0x555f07('0x2a')],'defaultValue':''}),_0x129bd1[_0x555f07('0x4')]('openchannel_interactions',_0x555f07('0x29'),{'type':_0x4dae86[_0x555f07('0x2a')],'defaultValue':''}),_0x129bd1['addColumn'](_0x555f07('0xd'),_0x555f07('0x29'),{'type':_0x4dae86[_0x555f07('0x2a')],'defaultValue':''}),_0x129bd1[_0x555f07('0x1')]('DELETE\x20FROM\x20`voice_voicemail_messages`\x20WHERE\x20`mailboxuser`\x20NOT\x20IN\x20(SELECT\x20`mailbox`\x20FROM\x20`voice_voicemail`)'),_0x129bd1['query'](_0x555f07('0x26')),_0x129bd1['final'](_0x463b57);});},'down':function(){}}; \ No newline at end of file +const a1099_0x3041=['then','openchannel_interactions','removeColumn','DELETE\x20FROM\x20`voice_voicemail_messages`\x20WHERE\x20`mailboxuser`\x20NOT\x20IN\x20(SELECT\x20`mailbox`\x20FROM\x20`voice_voicemail`)','tail','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','addIndex\x20%s\x20%s\x20%s','openedBy','Changed\x20column\x20%s\x20in\x20table\x20%s','Removed\x20column\x20%s\x20from\x20%s','enqueue','mail_interactions','UserId','../config/logger','table\x20dropped\x20%s','fax_interactions','sms_interactions','STRING','inspect','dialPrefix','util','exports','prototype','addColumn','UNSIGNED','migration','renameColumn','query','final','changeColumn','priority','phoneBarAutoUpdaterUrl','catch','query\x20%s','scheduledat','users','dropTable','campaigns','sequence','alias','finally','Added\x20column\x20%s\x20to\x20%s','sequelize','INTEGER','stringify','NOW','cm_contacts','queryInterface','info','settings','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'];(function(_0x50e6fd,_0x6e0839){const _0x3041a4=function(_0x3f4e6a){while(--_0x3f4e6a){_0x50e6fd['push'](_0x50e6fd['shift']());}};_0x3041a4(++_0x6e0839);}(a1099_0x3041,0x1d3));const a1099_0x3f4e=function(_0x50e6fd,_0x6e0839){_0x50e6fd=_0x50e6fd-0x1a0;let _0x3041a4=a1099_0x3041[_0x50e6fd];return _0x3041a4;};const a1099_0x57865c=a1099_0x3f4e;'use strict';const util=require(a1099_0x57865c(0x1ac)),logger=require(a1099_0x57865c(0x1a5))(a1099_0x57865c(0x1b1)),Sequence=function(){};Sequence['prototype']['enqueue']=function(_0x22d726){const _0x493945=a1099_0x57865c;this[_0x493945(0x1cf)]=this['tail']?this[_0x493945(0x1cf)][_0x493945(0x1c0)](_0x22d726):_0x22d726();};const Migration=function(_0x48a01b){const _0x3a10cb=a1099_0x57865c;this[_0x3a10cb(0x1c7)]=_0x48a01b,this[_0x3a10cb(0x1be)]=new Sequence();};Migration[a1099_0x57865c(0x1ae)][a1099_0x57865c(0x1b5)]=function(_0x4f6035,_0x454b8a,_0x2bb67d){const _0x2c7e91=a1099_0x57865c,_0x422fe5=this;this['sequence'][_0x2c7e91(0x1a2)](function(){const _0x5a6645=_0x2c7e91;return _0x422fe5['queryInterface']['changeColumn'](_0x4f6035,_0x454b8a,_0x2bb67d)[_0x5a6645(0x1cb)](function(){const _0x4d8268=_0x5a6645;logger[_0x4d8268(0x1c8)](_0x4d8268(0x1a0),_0x454b8a,_0x4f6035);})[_0x5a6645(0x1b8)](function(_0x504739){logger['info'](JSON['stringify'](_0x504739));});});},Migration[a1099_0x57865c(0x1ae)][a1099_0x57865c(0x1af)]=function(_0x4fa7e6,_0x440c19,_0x3a2a44){const _0x40f60c=a1099_0x57865c,_0x2a8acb=this;this[_0x40f60c(0x1be)][_0x40f60c(0x1a2)](function(){const _0x27ba23=_0x40f60c;return _0x2a8acb[_0x27ba23(0x1c7)][_0x27ba23(0x1af)](_0x4fa7e6,_0x440c19,_0x3a2a44)[_0x27ba23(0x1cb)](function(){const _0x54a9d8=_0x27ba23;logger[_0x54a9d8(0x1c8)](_0x54a9d8(0x1c1),_0x440c19,_0x4fa7e6);})[_0x27ba23(0x1b8)](function(_0xa5b037){const _0x30d3f8=_0x27ba23;logger[_0x30d3f8(0x1c8)](JSON[_0x30d3f8(0x1c4)](_0xa5b037));});});},Migration[a1099_0x57865c(0x1ae)][a1099_0x57865c(0x1bc)]=function(_0x5f3355){const _0x3b6211=a1099_0x57865c,_0x58b815=this;this[_0x3b6211(0x1be)]['enqueue'](function(){const _0x4d19a3=_0x3b6211;return _0x58b815[_0x4d19a3(0x1c7)]['dropTable'](_0x5f3355,{'force':!![]})['then'](function(){const _0xe32f57=_0x4d19a3;logger[_0xe32f57(0x1c8)](_0xe32f57(0x1a6),_0x5f3355);})[_0x4d19a3(0x1b8)](function(_0x3182b5){const _0x2472bc=_0x4d19a3;logger['info'](JSON[_0x2472bc(0x1c4)](_0x3182b5));});});},Migration[a1099_0x57865c(0x1ae)]['addIndex']=function(_0x8c35ce,_0x3043ff,_0x18004c){const _0x5b50aa=this;this['sequence']['enqueue'](function(){const _0x59562f=a1099_0x3f4e;return _0x5b50aa['queryInterface']['addIndex'](_0x8c35ce,_0x3043ff,{'indexName':_0x18004c})[_0x59562f(0x1cb)](function(){const _0x510c8b=_0x59562f;logger[_0x510c8b(0x1c8)](_0x510c8b(0x1d1),_0x8c35ce,_0x3043ff['join'](','),_0x18004c);})[_0x59562f(0x1b8)](function(_0x5a91bc){const _0x112ae2=_0x59562f;logger[_0x112ae2(0x1c8)](JSON[_0x112ae2(0x1c4)](_0x5a91bc));});});},Migration['prototype'][a1099_0x57865c(0x1b3)]=function(_0x45e857){const _0x466a82=a1099_0x57865c,_0x3e171a=this;this[_0x466a82(0x1be)]['enqueue'](function(){const _0x5970a7=_0x466a82;return _0x3e171a['queryInterface'][_0x5970a7(0x1c2)][_0x5970a7(0x1b3)](_0x45e857)[_0x5970a7(0x1cb)](function(){const _0x58ea98=_0x5970a7;logger[_0x58ea98(0x1c8)](_0x58ea98(0x1b9),_0x45e857);})[_0x5970a7(0x1b8)](function(_0x3b5bd6){const _0x2dc2ce=_0x5970a7;logger['info'](JSON[_0x2dc2ce(0x1c4)](_0x3b5bd6));});});},Migration[a1099_0x57865c(0x1ae)][a1099_0x57865c(0x1cd)]=function(_0x384f11,_0x52fd40){const _0x5eeda8=this;this['sequence']['enqueue'](function(){const _0x5c6aba=a1099_0x3f4e;return _0x5eeda8[_0x5c6aba(0x1c7)]['removeColumn'](_0x384f11,_0x52fd40)[_0x5c6aba(0x1cb)](function(){const _0x3726f0=_0x5c6aba;logger[_0x3726f0(0x1c8)](_0x3726f0(0x1a1),_0x52fd40,_0x384f11);})[_0x5c6aba(0x1b8)](function(_0x43330c){const _0x1ea87d=_0x5c6aba;logger['info'](util[_0x1ea87d(0x1aa)](_0x43330c,{'showHidden':![],'depth':null}));});});},Migration[a1099_0x57865c(0x1ae)][a1099_0x57865c(0x1b2)]=function(_0x54baa8,_0x7d0ba3,_0x41a86b){const _0x324c53=a1099_0x57865c,_0x24ce97=this;this['sequence'][_0x324c53(0x1a2)](function(){const _0x42cf69=_0x324c53;return _0x24ce97[_0x42cf69(0x1c7)][_0x42cf69(0x1b2)](_0x54baa8,_0x7d0ba3,_0x41a86b)[_0x42cf69(0x1cb)](function(){const _0x243da0=_0x42cf69;logger[_0x243da0(0x1c8)](_0x243da0(0x1d0),_0x7d0ba3,_0x41a86b,_0x54baa8);})['catch'](function(_0x261b86){const _0x2c6d6d=_0x42cf69;logger['info'](util[_0x2c6d6d(0x1aa)](_0x261b86,{'showHidden':![],'depth':null}));});});},Migration[a1099_0x57865c(0x1ae)][a1099_0x57865c(0x1b4)]=function(_0x5e62d9){const _0x39bec3=a1099_0x57865c;this[_0x39bec3(0x1be)][_0x39bec3(0x1a2)](function(){return _0x5e62d9();});},module[a1099_0x57865c(0x1ad)]={'up':function(_0x24a964,_0x4d1d05){return new Promise(function(_0x218571){const _0x2ade12=a1099_0x3f4e,_0x1bf663=new Migration(_0x24a964);_0x1bf663[_0x2ade12(0x1af)]('settings','phoneBarAutoUpdater',{'type':_0x4d1d05['BOOLEAN'],'defaultValue':!![]}),_0x1bf663[_0x2ade12(0x1af)](_0x2ade12(0x1c9),_0x2ade12(0x1b7),{'type':_0x4d1d05['STRING'],'defaultValue':'https://www.xcally.com/bar/phonebar/autoupdater.xml'}),_0x1bf663[_0x2ade12(0x1af)](_0x2ade12(0x1bd),_0x2ade12(0x1ab),{'type':_0x4d1d05[_0x2ade12(0x1a9)]}),_0x1bf663[_0x2ade12(0x1af)]('cm_lists',_0x2ade12(0x1ab),{'type':_0x4d1d05['STRING']}),_0x1bf663[_0x2ade12(0x1af)](_0x2ade12(0x1bb),_0x2ade12(0x1bf),{'type':_0x4d1d05[_0x2ade12(0x1a9)]}),_0x1bf663[_0x2ade12(0x1af)]('cm_contacts','skype',{'type':_0x4d1d05[_0x2ade12(0x1a9)]}),_0x1bf663[_0x2ade12(0x1af)](_0x2ade12(0x1c6),_0x2ade12(0x1a4),{'type':_0x4d1d05[_0x2ade12(0x1c3)]}),_0x1bf663[_0x2ade12(0x1af)](_0x2ade12(0x1c6),_0x2ade12(0x1b6),{'type':_0x4d1d05[_0x2ade12(0x1c3)](0x2)[_0x2ade12(0x1b0)],'defaultValue':0x2,'validate':{'min':0x0,'max':0x4}}),_0x1bf663[_0x2ade12(0x1af)]('cm_contacts',_0x2ade12(0x1ba),{'type':_0x4d1d05['DATE'],'defaultValue':_0x4d1d05[_0x2ade12(0x1c5)]}),_0x1bf663[_0x2ade12(0x1af)](_0x2ade12(0x1a3),_0x2ade12(0x1d2),{'type':_0x4d1d05[_0x2ade12(0x1a9)],'defaultValue':''}),_0x1bf663['addColumn']('chat_interactions',_0x2ade12(0x1d2),{'type':_0x4d1d05[_0x2ade12(0x1a9)],'defaultValue':''}),_0x1bf663[_0x2ade12(0x1af)](_0x2ade12(0x1a8),_0x2ade12(0x1d2),{'type':_0x4d1d05[_0x2ade12(0x1a9)],'defaultValue':''}),_0x1bf663['addColumn'](_0x2ade12(0x1cc),_0x2ade12(0x1d2),{'type':_0x4d1d05[_0x2ade12(0x1a9)],'defaultValue':''}),_0x1bf663['addColumn'](_0x2ade12(0x1a7),'openedBy',{'type':_0x4d1d05['STRING'],'defaultValue':''}),_0x1bf663['query'](_0x2ade12(0x1ce)),_0x1bf663[_0x2ade12(0x1b3)](_0x2ade12(0x1ca)),_0x1bf663[_0x2ade12(0x1b4)](_0x218571);});},'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 bfa121e..8f44dd3 100644 --- a/server/migrations/2.0.60.js +++ b/server/migrations/2.0.60.js @@ -1 +1 @@ -const a938_0x5348=['removeColumn','finally','chat_websites','join','Removed\x20column\x20%s\x20from\x20%s','query','waitForTheAssignedAgent','INTEGER','stringify','website_alias','openedBy','inspect','migration','prototype','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','final','openchannel_accounts','sequelize','../config/logger','phoneBarEnableJaws','mail_interactions','STRING','openchannel_interactions','then','query\x20%s','sms_accounts','mail_accounts','tail','renameColumn','fax_accounts','sms_interactions','info','queryInterface','enqueue','addIndex','table\x20dropped\x20%s','changeColumn','agentIdentifier','addColumn','sequence','long','catch','exports'];(function(_0x4e518a,_0x5348aa){const _0x50e5bf=function(_0x3578f8){while(--_0x3578f8){_0x4e518a['push'](_0x4e518a['shift']());}};_0x50e5bf(++_0x5348aa);}(a938_0x5348,0x193));const a938_0x50e5=function(_0x4e518a,_0x5348aa){_0x4e518a=_0x4e518a-0x0;let _0x50e5bf=a938_0x5348[_0x4e518a];return _0x50e5bf;};const _0x205ae1=a938_0x50e5;'use strict';const util=require('util'),logger=require(_0x205ae1('0x2'))(_0x205ae1('0x27')),Sequence=function(){};Sequence['prototype']['enqueue']=function(_0x3578f8){const _0x462f20=_0x205ae1;this[_0x462f20('0xb')]=this[_0x462f20('0xb')]?this[_0x462f20('0xb')][_0x462f20('0x1c')](_0x3578f8):_0x3578f8();};const Migration=function(_0x5eae35){const _0x24f6ba=_0x205ae1;this['queryInterface']=_0x5eae35,this[_0x24f6ba('0x17')]=new Sequence();};Migration[_0x205ae1('0x28')][_0x205ae1('0x14')]=function(_0x43338c,_0x513dde,_0x5630a2){const _0xf2ac64=_0x205ae1,_0x13ba0a=this;this[_0xf2ac64('0x17')][_0xf2ac64('0x11')](function(){const _0x2dee1a=_0xf2ac64;return _0x13ba0a[_0x2dee1a('0x10')][_0x2dee1a('0x14')](_0x43338c,_0x513dde,_0x5630a2)[_0x2dee1a('0x7')](function(){const _0x31f3e7=_0x2dee1a;logger[_0x31f3e7('0xf')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x513dde,_0x43338c);})['catch'](function(_0x55ad3b){const _0x97e2d8=_0x2dee1a;logger['info'](JSON[_0x97e2d8('0x23')](_0x55ad3b));});});},Migration[_0x205ae1('0x28')][_0x205ae1('0x16')]=function(_0x117b7f,_0x5ac081,_0x1b044e){const _0x5da6e1=_0x205ae1,_0x2cb2db=this;this[_0x5da6e1('0x17')][_0x5da6e1('0x11')](function(){const _0x5d8b2a=_0x5da6e1;return _0x2cb2db[_0x5d8b2a('0x10')][_0x5d8b2a('0x16')](_0x117b7f,_0x5ac081,_0x1b044e)[_0x5d8b2a('0x7')](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x5ac081,_0x117b7f);})['catch'](function(_0x4d6d6b){const _0x19675b=_0x5d8b2a;logger[_0x19675b('0xf')](JSON['stringify'](_0x4d6d6b));});});},Migration['prototype']['dropTable']=function(_0x2ff7ab){const _0x4718a9=this;this['sequence']['enqueue'](function(){const _0x584f01=a938_0x50e5;return _0x4718a9[_0x584f01('0x10')]['dropTable'](_0x2ff7ab,{'force':!![]})[_0x584f01('0x7')](function(){const _0x3fc3f4=_0x584f01;logger[_0x3fc3f4('0xf')](_0x3fc3f4('0x13'),_0x2ff7ab);})[_0x584f01('0x19')](function(_0x7c1e53){const _0x41e5d9=_0x584f01;logger[_0x41e5d9('0xf')](JSON[_0x41e5d9('0x23')](_0x7c1e53));});});},Migration[_0x205ae1('0x28')][_0x205ae1('0x12')]=function(_0x1dbb06,_0x573a39,_0x5cbac0){const _0x5ee0cd=_0x205ae1,_0x5e9504=this;this[_0x5ee0cd('0x17')][_0x5ee0cd('0x11')](function(){const _0x52a56f=_0x5ee0cd;return _0x5e9504[_0x52a56f('0x10')]['addIndex'](_0x1dbb06,_0x573a39,{'indexName':_0x5cbac0})[_0x52a56f('0x7')](function(){const _0x38a79c=_0x52a56f;logger['info']('addIndex\x20%s\x20%s\x20%s',_0x1dbb06,_0x573a39[_0x38a79c('0x1e')](','),_0x5cbac0);})[_0x52a56f('0x19')](function(_0x241dd4){const _0x51fa64=_0x52a56f;logger[_0x51fa64('0xf')](JSON[_0x51fa64('0x23')](_0x241dd4));});});},Migration[_0x205ae1('0x28')][_0x205ae1('0x20')]=function(_0x232f59){const _0x35d383=_0x205ae1,_0x392d26=this;this[_0x35d383('0x17')][_0x35d383('0x11')](function(){const _0x431449=_0x35d383;return _0x392d26[_0x431449('0x10')][_0x431449('0x1')][_0x431449('0x20')](_0x232f59)[_0x431449('0x7')](function(){const _0x7d6020=_0x431449;logger['info'](_0x7d6020('0x8'),_0x232f59);})[_0x431449('0x19')](function(_0x21e77f){const _0x3a59b4=_0x431449;logger[_0x3a59b4('0xf')](JSON[_0x3a59b4('0x23')](_0x21e77f));});});},Migration['prototype'][_0x205ae1('0x1b')]=function(_0x4f12b1,_0x57ac64){const _0x4b4c67=_0x205ae1,_0x566d30=this;this[_0x4b4c67('0x17')][_0x4b4c67('0x11')](function(){const _0x30d83a=_0x4b4c67;return _0x566d30[_0x30d83a('0x10')]['removeColumn'](_0x4f12b1,_0x57ac64)['then'](function(){const _0x5e5826=_0x30d83a;logger[_0x5e5826('0xf')](_0x5e5826('0x1f'),_0x57ac64,_0x4f12b1);})[_0x30d83a('0x19')](function(_0x425bb3){const _0xdbcd8c=_0x30d83a;logger[_0xdbcd8c('0xf')](util[_0xdbcd8c('0x26')](_0x425bb3,{'showHidden':![],'depth':null}));});});},Migration[_0x205ae1('0x28')][_0x205ae1('0xc')]=function(_0x5ccc70,_0x243a55,_0x50281f){const _0x391d7f=_0x205ae1,_0xa4009b=this;this[_0x391d7f('0x17')][_0x391d7f('0x11')](function(){const _0x495047=_0x391d7f;return _0xa4009b[_0x495047('0x10')][_0x495047('0xc')](_0x5ccc70,_0x243a55,_0x50281f)['then'](function(){const _0xc931f2=_0x495047;logger['info'](_0xc931f2('0x29'),_0x243a55,_0x50281f,_0x5ccc70);})[_0x495047('0x19')](function(_0x50bb40){const _0x53e447=_0x495047;logger[_0x53e447('0xf')](util[_0x53e447('0x26')](_0x50bb40,{'showHidden':![],'depth':null}));});});},Migration[_0x205ae1('0x28')][_0x205ae1('0x2a')]=function(_0x444e1b){const _0x18ce03=_0x205ae1;this[_0x18ce03('0x17')][_0x18ce03('0x11')](function(){return _0x444e1b();});},module[_0x205ae1('0x1a')]={'up':function(_0x162b7b,_0xab01c9){return new Promise(function(_0x2b184e){const _0x5f2d2b=a938_0x50e5,_0x44b060=new Migration(_0x162b7b);_0x44b060[_0x5f2d2b('0x16')](_0x5f2d2b('0x1d'),_0x5f2d2b('0x15'),{'type':_0xab01c9[_0x5f2d2b('0x5')],'defaultValue':_0x5f2d2b('0x24')}),_0x44b060['addColumn'](_0x5f2d2b('0x1d'),_0x5f2d2b('0x21'),{'type':_0xab01c9[_0x5f2d2b('0x22')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa}),_0x44b060['removeColumn']('chat_interactions','openedBy'),_0x44b060[_0x5f2d2b('0x1b')](_0x5f2d2b('0x4'),_0x5f2d2b('0x25')),_0x44b060[_0x5f2d2b('0x16')](_0x5f2d2b('0x4'),'lastMsgBody',{'type':_0xab01c9['TEXT'](_0x5f2d2b('0x18'))}),_0x44b060[_0x5f2d2b('0x1b')](_0x5f2d2b('0xe'),_0x5f2d2b('0x25')),_0x44b060[_0x5f2d2b('0x1b')]('fax_interactions',_0x5f2d2b('0x25')),_0x44b060[_0x5f2d2b('0x1b')](_0x5f2d2b('0x6'),_0x5f2d2b('0x25')),_0x44b060['addColumn'](_0x5f2d2b('0x6'),'from',{'type':_0xab01c9[_0x5f2d2b('0x5')]}),_0x44b060[_0x5f2d2b('0x16')](_0x5f2d2b('0xa'),'waitForTheAssignedAgent',{'type':_0xab01c9[_0x5f2d2b('0x22')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa}),_0x44b060[_0x5f2d2b('0x16')](_0x5f2d2b('0x0'),_0x5f2d2b('0x21'),{'type':_0xab01c9[_0x5f2d2b('0x22')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa}),_0x44b060[_0x5f2d2b('0x16')](_0x5f2d2b('0xd'),_0x5f2d2b('0x21'),{'type':_0xab01c9['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa}),_0x44b060[_0x5f2d2b('0x16')](_0x5f2d2b('0x9'),_0x5f2d2b('0x21'),{'type':_0xab01c9[_0x5f2d2b('0x22')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa}),_0x44b060['addColumn']('users',_0x5f2d2b('0x3'),{'type':_0xab01c9['BOOLEAN'],'defaultValue':![]}),_0x44b060['final'](_0x2b184e);});},'down':function(){}}; \ No newline at end of file +const a1100_0x3fb4=['waitForTheAssignedAgent','changeColumn','website_alias','addIndex','catch','enqueue','addColumn','migration','then','exports','openchannel_interactions','from','sequelize','query','openedBy','prototype','sequence','dropTable','STRING','phoneBarEnableJaws','TEXT','inspect','renameColumn','join','Changed\x20column\x20%s\x20in\x20table\x20%s','stringify','queryInterface','mail_interactions','query\x20%s','BOOLEAN','info','mail_accounts','fax_accounts','tail','chat_websites','openchannel_accounts','removeColumn','finally','sms_interactions','lastMsgBody','Removed\x20column\x20%s\x20from\x20%s','INTEGER','final','util'];(function(_0x83bdeb,_0x4d7acf){const _0x3fb492=function(_0x1069f1){while(--_0x1069f1){_0x83bdeb['push'](_0x83bdeb['shift']());}};_0x3fb492(++_0x4d7acf);}(a1100_0x3fb4,0x73));const a1100_0x1069=function(_0x83bdeb,_0x4d7acf){_0x83bdeb=_0x83bdeb-0xca;let _0x3fb492=a1100_0x3fb4[_0x83bdeb];return _0x3fb492;};const a1100_0x52b337=a1100_0x1069;'use strict';const util=require(a1100_0x52b337(0xda)),logger=require('../config/logger')(a1100_0x52b337(0xe2)),Sequence=function(){};Sequence['prototype'][a1100_0x52b337(0xe0)]=function(_0x326de3){const _0x4ff35d=a1100_0x52b337;this[_0x4ff35d(0xd0)]=this['tail']?this[_0x4ff35d(0xd0)][_0x4ff35d(0xd4)](_0x326de3):_0x326de3();};const Migration=function(_0x40e0ee){const _0x4891c8=a1100_0x52b337;this[_0x4891c8(0xf5)]=_0x40e0ee,this[_0x4891c8(0xeb)]=new Sequence();};Migration[a1100_0x52b337(0xea)][a1100_0x52b337(0xdc)]=function(_0x2396fb,_0x54d692,_0x35400c){const _0x128ae9=a1100_0x52b337,_0x2f7d46=this;this[_0x128ae9(0xeb)][_0x128ae9(0xe0)](function(){const _0x200b70=_0x128ae9;return _0x2f7d46['queryInterface'][_0x200b70(0xdc)](_0x2396fb,_0x54d692,_0x35400c)[_0x200b70(0xe3)](function(){const _0x1abf02=_0x200b70;logger[_0x1abf02(0xcd)](_0x1abf02(0xf3),_0x54d692,_0x2396fb);})[_0x200b70(0xdf)](function(_0x5954fe){const _0x43b25f=_0x200b70;logger[_0x43b25f(0xcd)](JSON[_0x43b25f(0xf4)](_0x5954fe));});});},Migration[a1100_0x52b337(0xea)][a1100_0x52b337(0xe1)]=function(_0x181eaf,_0x24a152,_0x3056d6){const _0x297a1c=a1100_0x52b337,_0x232f77=this;this[_0x297a1c(0xeb)][_0x297a1c(0xe0)](function(){const _0x228f1b=_0x297a1c;return _0x232f77[_0x228f1b(0xf5)]['addColumn'](_0x181eaf,_0x24a152,_0x3056d6)[_0x228f1b(0xe3)](function(){const _0x108544=_0x228f1b;logger[_0x108544(0xcd)]('Added\x20column\x20%s\x20to\x20%s',_0x24a152,_0x181eaf);})[_0x228f1b(0xdf)](function(_0x415a63){logger['info'](JSON['stringify'](_0x415a63));});});},Migration[a1100_0x52b337(0xea)][a1100_0x52b337(0xec)]=function(_0x171513){const _0x158ea4=a1100_0x52b337,_0x5952cb=this;this[_0x158ea4(0xeb)][_0x158ea4(0xe0)](function(){const _0x272086=_0x158ea4;return _0x5952cb[_0x272086(0xf5)][_0x272086(0xec)](_0x171513,{'force':!![]})['then'](function(){const _0x8b691d=_0x272086;logger[_0x8b691d(0xcd)]('table\x20dropped\x20%s',_0x171513);})[_0x272086(0xdf)](function(_0x1f661a){logger['info'](JSON['stringify'](_0x1f661a));});});},Migration['prototype'][a1100_0x52b337(0xde)]=function(_0x5890ec,_0x5bf6b6,_0x4323c4){const _0x1fb93d=a1100_0x52b337,_0x3dba97=this;this[_0x1fb93d(0xeb)]['enqueue'](function(){const _0x389833=_0x1fb93d;return _0x3dba97[_0x389833(0xf5)][_0x389833(0xde)](_0x5890ec,_0x5bf6b6,{'indexName':_0x4323c4})[_0x389833(0xe3)](function(){const _0x507eb3=_0x389833;logger['info']('addIndex\x20%s\x20%s\x20%s',_0x5890ec,_0x5bf6b6[_0x507eb3(0xf2)](','),_0x4323c4);})['catch'](function(_0x5cf53a){const _0x36d6b2=_0x389833;logger['info'](JSON[_0x36d6b2(0xf4)](_0x5cf53a));});});},Migration['prototype'][a1100_0x52b337(0xe8)]=function(_0x121c07){const _0x8dedbc=a1100_0x52b337,_0x31d043=this;this[_0x8dedbc(0xeb)][_0x8dedbc(0xe0)](function(){const _0x3958c0=_0x8dedbc;return _0x31d043[_0x3958c0(0xf5)][_0x3958c0(0xe7)][_0x3958c0(0xe8)](_0x121c07)['then'](function(){const _0x41da8d=_0x3958c0;logger[_0x41da8d(0xcd)](_0x41da8d(0xcb),_0x121c07);})[_0x3958c0(0xdf)](function(_0x2e64f0){const _0x42592c=_0x3958c0;logger[_0x42592c(0xcd)](JSON[_0x42592c(0xf4)](_0x2e64f0));});});},Migration[a1100_0x52b337(0xea)][a1100_0x52b337(0xd3)]=function(_0x15ffd1,_0x50571f){const _0x179b61=a1100_0x52b337,_0x1dfc19=this;this['sequence'][_0x179b61(0xe0)](function(){const _0x21d15a=_0x179b61;return _0x1dfc19['queryInterface'][_0x21d15a(0xd3)](_0x15ffd1,_0x50571f)[_0x21d15a(0xe3)](function(){const _0x228186=_0x21d15a;logger[_0x228186(0xcd)](_0x228186(0xd7),_0x50571f,_0x15ffd1);})[_0x21d15a(0xdf)](function(_0x111548){const _0x15f663=_0x21d15a;logger[_0x15f663(0xcd)](util[_0x15f663(0xf0)](_0x111548,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1100_0x52b337(0xf1)]=function(_0x21a1cf,_0x17b93b,_0x3cb6dd){const _0x17e767=a1100_0x52b337,_0x193419=this;this[_0x17e767(0xeb)][_0x17e767(0xe0)](function(){const _0x3c8592=_0x17e767;return _0x193419[_0x3c8592(0xf5)][_0x3c8592(0xf1)](_0x21a1cf,_0x17b93b,_0x3cb6dd)[_0x3c8592(0xe3)](function(){const _0xf032b=_0x3c8592;logger[_0xf032b(0xcd)]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x17b93b,_0x3cb6dd,_0x21a1cf);})[_0x3c8592(0xdf)](function(_0x367db7){const _0x1652d9=_0x3c8592;logger[_0x1652d9(0xcd)](util[_0x1652d9(0xf0)](_0x367db7,{'showHidden':![],'depth':null}));});});},Migration[a1100_0x52b337(0xea)][a1100_0x52b337(0xd9)]=function(_0x5d91e4){const _0x2018cc=a1100_0x52b337;this['sequence'][_0x2018cc(0xe0)](function(){return _0x5d91e4();});},module[a1100_0x52b337(0xe4)]={'up':function(_0x342a20,_0xced40e){return new Promise(function(_0x568509){const _0x2153e2=a1100_0x1069,_0x197a23=new Migration(_0x342a20);_0x197a23[_0x2153e2(0xe1)](_0x2153e2(0xd1),'agentIdentifier',{'type':_0xced40e[_0x2153e2(0xed)],'defaultValue':_0x2153e2(0xdd)}),_0x197a23[_0x2153e2(0xe1)](_0x2153e2(0xd1),_0x2153e2(0xdb),{'type':_0xced40e[_0x2153e2(0xd8)],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa}),_0x197a23[_0x2153e2(0xd3)]('chat_interactions',_0x2153e2(0xe9)),_0x197a23['removeColumn'](_0x2153e2(0xca),_0x2153e2(0xe9)),_0x197a23[_0x2153e2(0xe1)]('mail_interactions',_0x2153e2(0xd6),{'type':_0xced40e[_0x2153e2(0xef)]('long')}),_0x197a23[_0x2153e2(0xd3)](_0x2153e2(0xd5),_0x2153e2(0xe9)),_0x197a23[_0x2153e2(0xd3)]('fax_interactions',_0x2153e2(0xe9)),_0x197a23[_0x2153e2(0xd3)](_0x2153e2(0xe5),_0x2153e2(0xe9)),_0x197a23['addColumn'](_0x2153e2(0xe5),_0x2153e2(0xe6),{'type':_0xced40e[_0x2153e2(0xed)]}),_0x197a23[_0x2153e2(0xe1)](_0x2153e2(0xce),_0x2153e2(0xdb),{'type':_0xced40e[_0x2153e2(0xd8)],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa}),_0x197a23[_0x2153e2(0xe1)](_0x2153e2(0xd2),'waitForTheAssignedAgent',{'type':_0xced40e['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa}),_0x197a23[_0x2153e2(0xe1)](_0x2153e2(0xcf),_0x2153e2(0xdb),{'type':_0xced40e['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa}),_0x197a23['addColumn']('sms_accounts',_0x2153e2(0xdb),{'type':_0xced40e[_0x2153e2(0xd8)],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa}),_0x197a23[_0x2153e2(0xe1)]('users',_0x2153e2(0xee),{'type':_0xced40e[_0x2153e2(0xcc)],'defaultValue':![]}),_0x197a23[_0x2153e2(0xd9)](_0x568509);});},'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 bdd88e3..d97a78a 100644 --- a/server/migrations/2.0.61.js +++ b/server/migrations/2.0.61.js @@ -1 +1 @@ -const a939_0x5683=['addIndex','inspect','sequelize','query','Changed\x20column\x20%s\x20in\x20table\x20%s','addColumn','queryInterface','Added\x20column\x20%s\x20to\x20%s','catch','stringify','prototype','tail','exports','../config/logger','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','sequence','Removed\x20column\x20%s\x20from\x20%s','migration','changeColumn','removeColumn','util','info','enqueue','query\x20%s','then','addIndex\x20%s\x20%s\x20%s'];(function(_0x5d81e2,_0x5683e8){const _0x5666ed=function(_0x4c13fc){while(--_0x4c13fc){_0x5d81e2['push'](_0x5d81e2['shift']());}};_0x5666ed(++_0x5683e8);}(a939_0x5683,0x16f));const a939_0x5666=function(_0x5d81e2,_0x5683e8){_0x5d81e2=_0x5d81e2-0x0;let _0x5666ed=a939_0x5683[_0x5d81e2];return _0x5666ed;};const _0x3753b7=a939_0x5666;'use strict';const util=require(_0x3753b7('0x11')),logger=require(_0x3753b7('0xa'))(_0x3753b7('0xe')),Sequence=function(){};Sequence[_0x3753b7('0x7')][_0x3753b7('0x13')]=function(_0x4c13fc){const _0x1bae36=_0x3753b7;this[_0x1bae36('0x8')]=this[_0x1bae36('0x8')]?this['tail']['finally'](_0x4c13fc):_0x4c13fc();};const Migration=function(_0x3956cc){const _0x36100c=_0x3753b7;this[_0x36100c('0x3')]=_0x3956cc,this[_0x36100c('0xc')]=new Sequence();};Migration[_0x3753b7('0x7')][_0x3753b7('0xf')]=function(_0x47d146,_0x35770f,_0x2f7b7d){const _0x23d8d5=_0x3753b7,_0x111bc0=this;this[_0x23d8d5('0xc')][_0x23d8d5('0x13')](function(){const _0x2eac6c=_0x23d8d5;return _0x111bc0[_0x2eac6c('0x3')][_0x2eac6c('0xf')](_0x47d146,_0x35770f,_0x2f7b7d)[_0x2eac6c('0x15')](function(){const _0x289923=_0x2eac6c;logger[_0x289923('0x12')](_0x289923('0x1'),_0x35770f,_0x47d146);})[_0x2eac6c('0x5')](function(_0x2b1fc1){const _0x264959=_0x2eac6c;logger['info'](JSON[_0x264959('0x6')](_0x2b1fc1));});});},Migration[_0x3753b7('0x7')][_0x3753b7('0x2')]=function(_0x27a43a,_0x36a189,_0x137ab){const _0xf4d1a5=_0x3753b7,_0x13c41a=this;this[_0xf4d1a5('0xc')]['enqueue'](function(){const _0x19ad9a=_0xf4d1a5;return _0x13c41a[_0x19ad9a('0x3')][_0x19ad9a('0x2')](_0x27a43a,_0x36a189,_0x137ab)[_0x19ad9a('0x15')](function(){const _0x5a4cd0=_0x19ad9a;logger[_0x5a4cd0('0x12')](_0x5a4cd0('0x4'),_0x36a189,_0x27a43a);})['catch'](function(_0x332f7e){const _0xfda560=_0x19ad9a;logger[_0xfda560('0x12')](JSON[_0xfda560('0x6')](_0x332f7e));});});},Migration[_0x3753b7('0x7')]['dropTable']=function(_0x51bb86){const _0x4f1107=_0x3753b7,_0x7748ee=this;this[_0x4f1107('0xc')]['enqueue'](function(){const _0x13789e=_0x4f1107;return _0x7748ee[_0x13789e('0x3')]['dropTable'](_0x51bb86,{'force':!![]})[_0x13789e('0x15')](function(){const _0x35f220=_0x13789e;logger[_0x35f220('0x12')]('table\x20dropped\x20%s',_0x51bb86);})[_0x13789e('0x5')](function(_0x2f2f10){const _0x454a39=_0x13789e;logger[_0x454a39('0x12')](JSON[_0x454a39('0x6')](_0x2f2f10));});});},Migration[_0x3753b7('0x7')][_0x3753b7('0x17')]=function(_0x466b22,_0x36941d,_0x39860){const _0x40a207=_0x3753b7,_0x58af7a=this;this[_0x40a207('0xc')][_0x40a207('0x13')](function(){const _0x511534=_0x40a207;return _0x58af7a[_0x511534('0x3')][_0x511534('0x17')](_0x466b22,_0x36941d,{'indexName':_0x39860})[_0x511534('0x15')](function(){const _0x57b839=_0x511534;logger[_0x57b839('0x12')](_0x57b839('0x16'),_0x466b22,_0x36941d['join'](','),_0x39860);})[_0x511534('0x5')](function(_0x1a9e9c){const _0x500f08=_0x511534;logger[_0x500f08('0x12')](JSON[_0x500f08('0x6')](_0x1a9e9c));});});},Migration[_0x3753b7('0x7')][_0x3753b7('0x0')]=function(_0x55d86e){const _0x562bd5=_0x3753b7,_0x285c06=this;this[_0x562bd5('0xc')]['enqueue'](function(){const _0x44eab6=_0x562bd5;return _0x285c06[_0x44eab6('0x3')][_0x44eab6('0x19')]['query'](_0x55d86e)[_0x44eab6('0x15')](function(){const _0x2abeea=_0x44eab6;logger['info'](_0x2abeea('0x14'),_0x55d86e);})[_0x44eab6('0x5')](function(_0x391ea7){const _0x467ae1=_0x44eab6;logger[_0x467ae1('0x12')](JSON['stringify'](_0x391ea7));});});},Migration[_0x3753b7('0x7')][_0x3753b7('0x10')]=function(_0x535502,_0x3ffc0c){const _0x1bf165=_0x3753b7,_0x593d5c=this;this[_0x1bf165('0xc')][_0x1bf165('0x13')](function(){const _0x109fbb=_0x1bf165;return _0x593d5c['queryInterface'][_0x109fbb('0x10')](_0x535502,_0x3ffc0c)[_0x109fbb('0x15')](function(){const _0x4b5b6e=_0x109fbb;logger[_0x4b5b6e('0x12')](_0x4b5b6e('0xd'),_0x3ffc0c,_0x535502);})['catch'](function(_0x1a9468){const _0x40edc0=_0x109fbb;logger[_0x40edc0('0x12')](util[_0x40edc0('0x18')](_0x1a9468,{'showHidden':![],'depth':null}));});});},Migration[_0x3753b7('0x7')]['renameColumn']=function(_0x170a6b,_0x5aa8bc,_0x55e933){const _0x1e9a71=_0x3753b7,_0x2dd5f8=this;this[_0x1e9a71('0xc')][_0x1e9a71('0x13')](function(){const _0x44b43d=_0x1e9a71;return _0x2dd5f8[_0x44b43d('0x3')]['renameColumn'](_0x170a6b,_0x5aa8bc,_0x55e933)[_0x44b43d('0x15')](function(){const _0x4422c3=_0x44b43d;logger[_0x4422c3('0x12')](_0x4422c3('0xb'),_0x5aa8bc,_0x55e933,_0x170a6b);})[_0x44b43d('0x5')](function(_0x27ebf3){const _0x557547=_0x44b43d;logger['info'](util[_0x557547('0x18')](_0x27ebf3,{'showHidden':![],'depth':null}));});});},Migration[_0x3753b7('0x7')]['final']=function(_0x507335){const _0x19dcdb=_0x3753b7;this[_0x19dcdb('0xc')][_0x19dcdb('0x13')](function(){return _0x507335();});},module[_0x3753b7('0x9')]={'up':function(_0x2888ce){return new Promise(function(_0x3e84ae){const _0x42c651=new Migration(_0x2888ce);_0x42c651['final'](_0x3e84ae);});},'down':function(){}}; \ No newline at end of file +const a1101_0x3126=['renameColumn','table\x20dropped\x20%s','sequelize','util','Changed\x20column\x20%s\x20in\x20table\x20%s','prototype','queryInterface','dropTable','../config/logger','query\x20%s','sequence','inspect','enqueue','final','catch','migration','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','info','stringify','tail','removeColumn','addIndex','then','Added\x20column\x20%s\x20to\x20%s','query','addColumn'];(function(_0x379139,_0x1afb2e){const _0x31268e=function(_0x4ba26f){while(--_0x4ba26f){_0x379139['push'](_0x379139['shift']());}};_0x31268e(++_0x1afb2e);}(a1101_0x3126,0x123));const a1101_0x4ba2=function(_0x379139,_0x1afb2e){_0x379139=_0x379139-0x1bd;let _0x31268e=a1101_0x3126[_0x379139];return _0x31268e;};const a1101_0x2af11c=a1101_0x4ba2;'use strict';const util=require(a1101_0x2af11c(0x1d5)),logger=require(a1101_0x2af11c(0x1c0))(a1101_0x2af11c(0x1c7)),Sequence=function(){};Sequence[a1101_0x2af11c(0x1bd)][a1101_0x2af11c(0x1c4)]=function(_0x43477f){const _0x3a935c=a1101_0x2af11c;this[_0x3a935c(0x1cb)]=this[_0x3a935c(0x1cb)]?this[_0x3a935c(0x1cb)]['finally'](_0x43477f):_0x43477f();};const Migration=function(_0x1a5bb3){const _0x54350b=a1101_0x2af11c;this['queryInterface']=_0x1a5bb3,this[_0x54350b(0x1c2)]=new Sequence();};Migration[a1101_0x2af11c(0x1bd)]['changeColumn']=function(_0x189852,_0x58934f,_0x21d5fa){const _0x1960f0=a1101_0x2af11c,_0x5b46b0=this;this[_0x1960f0(0x1c2)][_0x1960f0(0x1c4)](function(){const _0x4cdda2=_0x1960f0;return _0x5b46b0[_0x4cdda2(0x1be)]['changeColumn'](_0x189852,_0x58934f,_0x21d5fa)[_0x4cdda2(0x1ce)](function(){const _0xbc6e36=_0x4cdda2;logger[_0xbc6e36(0x1c9)](_0xbc6e36(0x1d6),_0x58934f,_0x189852);})['catch'](function(_0x4feceb){const _0x2d1090=_0x4cdda2;logger[_0x2d1090(0x1c9)](JSON[_0x2d1090(0x1ca)](_0x4feceb));});});},Migration[a1101_0x2af11c(0x1bd)][a1101_0x2af11c(0x1d1)]=function(_0x4375e2,_0x5652e9,_0xcdf59a){const _0x3c970a=a1101_0x2af11c,_0x92bb72=this;this[_0x3c970a(0x1c2)][_0x3c970a(0x1c4)](function(){const _0x27e715=_0x3c970a;return _0x92bb72[_0x27e715(0x1be)]['addColumn'](_0x4375e2,_0x5652e9,_0xcdf59a)[_0x27e715(0x1ce)](function(){const _0x2a0f12=_0x27e715;logger[_0x2a0f12(0x1c9)](_0x2a0f12(0x1cf),_0x5652e9,_0x4375e2);})[_0x27e715(0x1c6)](function(_0x39b2e){const _0x1e806b=_0x27e715;logger['info'](JSON[_0x1e806b(0x1ca)](_0x39b2e));});});},Migration[a1101_0x2af11c(0x1bd)][a1101_0x2af11c(0x1bf)]=function(_0x4f8a90){const _0x15c0b1=a1101_0x2af11c,_0x57ff41=this;this[_0x15c0b1(0x1c2)]['enqueue'](function(){const _0x5ec62b=_0x15c0b1;return _0x57ff41['queryInterface'][_0x5ec62b(0x1bf)](_0x4f8a90,{'force':!![]})[_0x5ec62b(0x1ce)](function(){const _0x1f5978=_0x5ec62b;logger[_0x1f5978(0x1c9)](_0x1f5978(0x1d3),_0x4f8a90);})[_0x5ec62b(0x1c6)](function(_0x3b51f2){const _0x594611=_0x5ec62b;logger[_0x594611(0x1c9)](JSON[_0x594611(0x1ca)](_0x3b51f2));});});},Migration[a1101_0x2af11c(0x1bd)]['addIndex']=function(_0x5ea80a,_0x5bc254,_0x3cb990){const _0x4d87bf=a1101_0x2af11c,_0x2c44e2=this;this[_0x4d87bf(0x1c2)][_0x4d87bf(0x1c4)](function(){const _0x5a3d7c=_0x4d87bf;return _0x2c44e2['queryInterface'][_0x5a3d7c(0x1cd)](_0x5ea80a,_0x5bc254,{'indexName':_0x3cb990})[_0x5a3d7c(0x1ce)](function(){const _0x246e42=_0x5a3d7c;logger[_0x246e42(0x1c9)]('addIndex\x20%s\x20%s\x20%s',_0x5ea80a,_0x5bc254['join'](','),_0x3cb990);})['catch'](function(_0x5039e7){const _0x55951f=_0x5a3d7c;logger[_0x55951f(0x1c9)](JSON[_0x55951f(0x1ca)](_0x5039e7));});});},Migration[a1101_0x2af11c(0x1bd)][a1101_0x2af11c(0x1d0)]=function(_0x414048){const _0xe54958=this;this['sequence']['enqueue'](function(){const _0x20ccfd=a1101_0x4ba2;return _0xe54958[_0x20ccfd(0x1be)][_0x20ccfd(0x1d4)][_0x20ccfd(0x1d0)](_0x414048)[_0x20ccfd(0x1ce)](function(){const _0x231204=_0x20ccfd;logger[_0x231204(0x1c9)](_0x231204(0x1c1),_0x414048);})[_0x20ccfd(0x1c6)](function(_0x135d35){const _0x13e16c=_0x20ccfd;logger[_0x13e16c(0x1c9)](JSON['stringify'](_0x135d35));});});},Migration[a1101_0x2af11c(0x1bd)][a1101_0x2af11c(0x1cc)]=function(_0x3e3188,_0x4ded70){const _0x53b515=a1101_0x2af11c,_0x407df3=this;this[_0x53b515(0x1c2)][_0x53b515(0x1c4)](function(){const _0x58eb57=_0x53b515;return _0x407df3['queryInterface'][_0x58eb57(0x1cc)](_0x3e3188,_0x4ded70)[_0x58eb57(0x1ce)](function(){const _0x36b282=_0x58eb57;logger[_0x36b282(0x1c9)]('Removed\x20column\x20%s\x20from\x20%s',_0x4ded70,_0x3e3188);})[_0x58eb57(0x1c6)](function(_0x23aeb9){const _0x2d4ae6=_0x58eb57;logger[_0x2d4ae6(0x1c9)](util[_0x2d4ae6(0x1c3)](_0x23aeb9,{'showHidden':![],'depth':null}));});});},Migration[a1101_0x2af11c(0x1bd)][a1101_0x2af11c(0x1d2)]=function(_0x1def00,_0x4edfdd,_0xfefd05){const _0x5ec52c=a1101_0x2af11c,_0x48ed6d=this;this[_0x5ec52c(0x1c2)]['enqueue'](function(){const _0x46d2c0=_0x5ec52c;return _0x48ed6d[_0x46d2c0(0x1be)][_0x46d2c0(0x1d2)](_0x1def00,_0x4edfdd,_0xfefd05)[_0x46d2c0(0x1ce)](function(){const _0x562a6c=_0x46d2c0;logger[_0x562a6c(0x1c9)](_0x562a6c(0x1c8),_0x4edfdd,_0xfefd05,_0x1def00);})[_0x46d2c0(0x1c6)](function(_0x4a4c14){const _0x52c982=_0x46d2c0;logger[_0x52c982(0x1c9)](util['inspect'](_0x4a4c14,{'showHidden':![],'depth':null}));});});},Migration[a1101_0x2af11c(0x1bd)]['final']=function(_0x83844e){this['sequence']['enqueue'](function(){return _0x83844e();});},module['exports']={'up':function(_0x45ba46){return new Promise(function(_0x169b1d){const _0x4be21e=a1101_0x4ba2,_0x549eed=new Migration(_0x45ba46);_0x549eed[_0x4be21e(0x1c5)](_0x169b1d);});},'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 ac65d91..0b15546 100644 --- a/server/migrations/2.0.62.js +++ b/server/migrations/2.0.62.js @@ -1 +1 @@ -const a940_0x4708=['exports','Removed\x20column\x20%s\x20from\x20%s','addIndex','removeColumn','join','query','addColumn','sequence','verticalAlignment','then','final','prototype','dropTable','stringify','tools_schedules','chat_websites','settings','queryInterface','renameColumn','catch','inspect','enqueue','tail','util','STRING','../config/logger','changeColumn','BOOLEAN','migration','bottom_right','alignment','info','enableEmailPreview','sendIfEmpty'];(function(_0x213acb,_0x470894){const _0x2e0eb4=function(_0x577d85){while(--_0x577d85){_0x213acb['push'](_0x213acb['shift']());}};_0x2e0eb4(++_0x470894);}(a940_0x4708,0x90));const a940_0x2e0e=function(_0x213acb,_0x470894){_0x213acb=_0x213acb-0x0;let _0x2e0eb4=a940_0x4708[_0x213acb];return _0x2e0eb4;};const _0x2ed4ba=a940_0x2e0e;'use strict';const util=require(_0x2ed4ba('0xf')),logger=require(_0x2ed4ba('0x11'))(_0x2ed4ba('0x14')),Sequence=function(){};Sequence[_0x2ed4ba('0x3')]['enqueue']=function(_0x577d85){const _0x3e1ad1=_0x2ed4ba;this[_0x3e1ad1('0xe')]=this[_0x3e1ad1('0xe')]?this[_0x3e1ad1('0xe')]['finally'](_0x577d85):_0x577d85();};const Migration=function(_0x980d00){const _0x46ea67=_0x2ed4ba;this['queryInterface']=_0x980d00,this[_0x46ea67('0x21')]=new Sequence();};Migration[_0x2ed4ba('0x3')][_0x2ed4ba('0x12')]=function(_0x3c18c9,_0x38391e,_0x32e559){const _0x122e74=_0x2ed4ba,_0x318a04=this;this['sequence'][_0x122e74('0xd')](function(){const _0x104727=_0x122e74;return _0x318a04[_0x104727('0x9')][_0x104727('0x12')](_0x3c18c9,_0x38391e,_0x32e559)[_0x104727('0x1')](function(){const _0x4b0df0=_0x104727;logger[_0x4b0df0('0x17')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x38391e,_0x3c18c9);})[_0x104727('0xb')](function(_0x52b898){const _0x4e40a7=_0x104727;logger['info'](JSON[_0x4e40a7('0x5')](_0x52b898));});});},Migration['prototype'][_0x2ed4ba('0x20')]=function(_0x228111,_0x6872a8,_0xf4dc6f){const _0x467d68=_0x2ed4ba,_0x537354=this;this[_0x467d68('0x21')][_0x467d68('0xd')](function(){const _0x515ced=_0x467d68;return _0x537354[_0x515ced('0x9')][_0x515ced('0x20')](_0x228111,_0x6872a8,_0xf4dc6f)[_0x515ced('0x1')](function(){const _0x207d08=_0x515ced;logger[_0x207d08('0x17')]('Added\x20column\x20%s\x20to\x20%s',_0x6872a8,_0x228111);})['catch'](function(_0x5b0245){const _0x1846b0=_0x515ced;logger[_0x1846b0('0x17')](JSON[_0x1846b0('0x5')](_0x5b0245));});});},Migration[_0x2ed4ba('0x3')][_0x2ed4ba('0x4')]=function(_0x42ee73){const _0x4d7b6b=_0x2ed4ba,_0x4c9eaf=this;this[_0x4d7b6b('0x21')]['enqueue'](function(){const _0x1bb0e9=_0x4d7b6b;return _0x4c9eaf[_0x1bb0e9('0x9')][_0x1bb0e9('0x4')](_0x42ee73,{'force':!![]})[_0x1bb0e9('0x1')](function(){const _0x5c32a0=_0x1bb0e9;logger[_0x5c32a0('0x17')]('table\x20dropped\x20%s',_0x42ee73);})['catch'](function(_0x3d91e4){const _0x2ef473=_0x1bb0e9;logger[_0x2ef473('0x17')](JSON['stringify'](_0x3d91e4));});});},Migration[_0x2ed4ba('0x3')][_0x2ed4ba('0x1c')]=function(_0x117c0d,_0x1fa7ad,_0x566c5f){const _0x5facc0=_0x2ed4ba,_0x519f2b=this;this['sequence'][_0x5facc0('0xd')](function(){const _0x588bf4=_0x5facc0;return _0x519f2b['queryInterface'][_0x588bf4('0x1c')](_0x117c0d,_0x1fa7ad,{'indexName':_0x566c5f})[_0x588bf4('0x1')](function(){const _0x2b54ab=_0x588bf4;logger[_0x2b54ab('0x17')]('addIndex\x20%s\x20%s\x20%s',_0x117c0d,_0x1fa7ad[_0x2b54ab('0x1e')](','),_0x566c5f);})[_0x588bf4('0xb')](function(_0x2d0475){const _0x1fbfb3=_0x588bf4;logger[_0x1fbfb3('0x17')](JSON[_0x1fbfb3('0x5')](_0x2d0475));});});},Migration[_0x2ed4ba('0x3')]['query']=function(_0x3c83a4){const _0x1c7201=_0x2ed4ba,_0x59595a=this;this[_0x1c7201('0x21')][_0x1c7201('0xd')](function(){const _0x42209d=_0x1c7201;return _0x59595a[_0x42209d('0x9')]['sequelize'][_0x42209d('0x1f')](_0x3c83a4)[_0x42209d('0x1')](function(){logger['info']('query\x20%s',_0x3c83a4);})[_0x42209d('0xb')](function(_0x3744f1){const _0x4ed693=_0x42209d;logger[_0x4ed693('0x17')](JSON[_0x4ed693('0x5')](_0x3744f1));});});},Migration[_0x2ed4ba('0x3')][_0x2ed4ba('0x1d')]=function(_0x5ad00a,_0x1e8358){const _0x8138fd=_0x2ed4ba,_0x41b848=this;this[_0x8138fd('0x21')][_0x8138fd('0xd')](function(){const _0x3a4806=_0x8138fd;return _0x41b848['queryInterface'][_0x3a4806('0x1d')](_0x5ad00a,_0x1e8358)['then'](function(){const _0x487a0f=_0x3a4806;logger[_0x487a0f('0x17')](_0x487a0f('0x1b'),_0x1e8358,_0x5ad00a);})[_0x3a4806('0xb')](function(_0x598a60){const _0x7f27d5=_0x3a4806;logger[_0x7f27d5('0x17')](util[_0x7f27d5('0xc')](_0x598a60,{'showHidden':![],'depth':null}));});});},Migration[_0x2ed4ba('0x3')][_0x2ed4ba('0xa')]=function(_0x98fe7,_0x45946a,_0x319d5d){const _0x80f0d=_0x2ed4ba,_0x5c49c8=this;this[_0x80f0d('0x21')][_0x80f0d('0xd')](function(){const _0x1e8a48=_0x80f0d;return _0x5c49c8[_0x1e8a48('0x9')][_0x1e8a48('0xa')](_0x98fe7,_0x45946a,_0x319d5d)[_0x1e8a48('0x1')](function(){const _0x2d2cbf=_0x1e8a48;logger[_0x2d2cbf('0x17')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x45946a,_0x319d5d,_0x98fe7);})[_0x1e8a48('0xb')](function(_0x51a79e){const _0x4bd8cb=_0x1e8a48;logger[_0x4bd8cb('0x17')](util[_0x4bd8cb('0xc')](_0x51a79e,{'showHidden':![],'depth':null}));});});},Migration['prototype']['final']=function(_0x33341b){const _0x464c16=_0x2ed4ba;this['sequence'][_0x464c16('0xd')](function(){return _0x33341b();});},module[_0x2ed4ba('0x1a')]={'up':function(_0x32238e,_0x27ea2f){return new Promise(function(_0x56dd8b){const _0x4624fd=a940_0x2e0e,_0x5ccc5d=new Migration(_0x32238e);_0x5ccc5d['addColumn'](_0x4624fd('0x6'),_0x4624fd('0x19'),{'type':_0x27ea2f[_0x4624fd('0x13')],'defaultValue':!![]}),_0x5ccc5d[_0x4624fd('0x12')]('cm_contacts','phone',{'type':_0x27ea2f['STRING'],'allowNull':!![]}),_0x5ccc5d[_0x4624fd('0x20')](_0x4624fd('0x8'),_0x4624fd('0x18'),{'type':_0x27ea2f[_0x4624fd('0x13')],'defaultValue':![]}),_0x5ccc5d['addColumn']('chat_websites',_0x4624fd('0x16'),{'type':_0x27ea2f[_0x4624fd('0x10')],'defaultValue':_0x4624fd('0x15')}),_0x5ccc5d[_0x4624fd('0x20')](_0x4624fd('0x7'),_0x4624fd('0x0'),{'type':_0x27ea2f['INTEGER'],'defaultValue':0x1e}),_0x5ccc5d[_0x4624fd('0x2')](_0x56dd8b);});},'down':function(){}}; \ No newline at end of file +const a1102_0x3434=['removeColumn','finally','bottom_right','sendIfEmpty','stringify','enqueue','catch','STRING','tools_schedules','prototype','cm_contacts','addColumn','changeColumn','sequence','enableEmailPreview','queryInterface','chat_websites','Removed\x20column\x20%s\x20from\x20%s','then','INTEGER','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','join','info','dropTable','tail','query','exports','migration'];(function(_0x4e430f,_0x592cbe){const _0x3434d8=function(_0x1b597b){while(--_0x1b597b){_0x4e430f['push'](_0x4e430f['shift']());}};_0x3434d8(++_0x592cbe);}(a1102_0x3434,0x102));const a1102_0x1b59=function(_0x4e430f,_0x592cbe){_0x4e430f=_0x4e430f-0x15c;let _0x3434d8=a1102_0x3434[_0x4e430f];return _0x3434d8;};const a1102_0xc7c68d=a1102_0x1b59;'use strict';const util=require('util'),logger=require('../config/logger')(a1102_0xc7c68d(0x171)),Sequence=function(){};Sequence[a1102_0xc7c68d(0x15f)][a1102_0xc7c68d(0x177)]=function(_0x7d9ad){const _0x6e5ed2=a1102_0xc7c68d;this['tail']=this[_0x6e5ed2(0x16e)]?this['tail'][_0x6e5ed2(0x173)](_0x7d9ad):_0x7d9ad();};const Migration=function(_0x1d6b5b){const _0x10ee89=a1102_0xc7c68d;this['queryInterface']=_0x1d6b5b,this[_0x10ee89(0x163)]=new Sequence();};Migration[a1102_0xc7c68d(0x15f)][a1102_0xc7c68d(0x162)]=function(_0x11dd1a,_0x4af92a,_0x2d4880){const _0x4d65cf=a1102_0xc7c68d,_0x323c9e=this;this['sequence'][_0x4d65cf(0x177)](function(){const _0x141937=_0x4d65cf;return _0x323c9e[_0x141937(0x165)]['changeColumn'](_0x11dd1a,_0x4af92a,_0x2d4880)[_0x141937(0x168)](function(){const _0x3d34ad=_0x141937;logger[_0x3d34ad(0x16c)]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x4af92a,_0x11dd1a);})[_0x141937(0x15c)](function(_0x3ea465){const _0x3a4184=_0x141937;logger[_0x3a4184(0x16c)](JSON['stringify'](_0x3ea465));});});},Migration[a1102_0xc7c68d(0x15f)]['addColumn']=function(_0x3ef1fd,_0x4f682e,_0x2189ee){const _0x1eec10=a1102_0xc7c68d,_0x4a1185=this;this[_0x1eec10(0x163)]['enqueue'](function(){const _0x4fc723=_0x1eec10;return _0x4a1185[_0x4fc723(0x165)]['addColumn'](_0x3ef1fd,_0x4f682e,_0x2189ee)[_0x4fc723(0x168)](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x4f682e,_0x3ef1fd);})['catch'](function(_0x5eede4){const _0x5d3e9e=_0x4fc723;logger['info'](JSON[_0x5d3e9e(0x176)](_0x5eede4));});});},Migration[a1102_0xc7c68d(0x15f)][a1102_0xc7c68d(0x16d)]=function(_0x467115){const _0x1105fe=a1102_0xc7c68d,_0x56ba47=this;this[_0x1105fe(0x163)][_0x1105fe(0x177)](function(){const _0x135398=_0x1105fe;return _0x56ba47['queryInterface'][_0x135398(0x16d)](_0x467115,{'force':!![]})['then'](function(){const _0x139173=_0x135398;logger[_0x139173(0x16c)]('table\x20dropped\x20%s',_0x467115);})[_0x135398(0x15c)](function(_0x4cc5b8){logger['info'](JSON['stringify'](_0x4cc5b8));});});},Migration[a1102_0xc7c68d(0x15f)]['addIndex']=function(_0x4580f5,_0x42a515,_0x1372f9){const _0x1ed084=a1102_0xc7c68d,_0x1537a2=this;this[_0x1ed084(0x163)]['enqueue'](function(){const _0x4e8b3b=_0x1ed084;return _0x1537a2[_0x4e8b3b(0x165)]['addIndex'](_0x4580f5,_0x42a515,{'indexName':_0x1372f9})[_0x4e8b3b(0x168)](function(){const _0x446169=_0x4e8b3b;logger['info']('addIndex\x20%s\x20%s\x20%s',_0x4580f5,_0x42a515[_0x446169(0x16b)](','),_0x1372f9);})[_0x4e8b3b(0x15c)](function(_0x18f716){logger['info'](JSON['stringify'](_0x18f716));});});},Migration[a1102_0xc7c68d(0x15f)]['query']=function(_0x1020f3){const _0x5b67e1=a1102_0xc7c68d,_0x3aff25=this;this[_0x5b67e1(0x163)]['enqueue'](function(){const _0x1053a4=_0x5b67e1;return _0x3aff25[_0x1053a4(0x165)]['sequelize'][_0x1053a4(0x16f)](_0x1020f3)[_0x1053a4(0x168)](function(){const _0x49d0d6=_0x1053a4;logger[_0x49d0d6(0x16c)]('query\x20%s',_0x1020f3);})[_0x1053a4(0x15c)](function(_0x54d258){const _0x1ad429=_0x1053a4;logger[_0x1ad429(0x16c)](JSON[_0x1ad429(0x176)](_0x54d258));});});},Migration[a1102_0xc7c68d(0x15f)][a1102_0xc7c68d(0x172)]=function(_0x3194cc,_0x22d06c){const _0x9fcbb6=a1102_0xc7c68d,_0x3421b8=this;this[_0x9fcbb6(0x163)]['enqueue'](function(){const _0x2e80a9=_0x9fcbb6;return _0x3421b8[_0x2e80a9(0x165)][_0x2e80a9(0x172)](_0x3194cc,_0x22d06c)[_0x2e80a9(0x168)](function(){const _0x1b4454=_0x2e80a9;logger[_0x1b4454(0x16c)](_0x1b4454(0x167),_0x22d06c,_0x3194cc);})[_0x2e80a9(0x15c)](function(_0x1ca47a){logger['info'](util['inspect'](_0x1ca47a,{'showHidden':![],'depth':null}));});});},Migration['prototype']['renameColumn']=function(_0x49f13d,_0x4abb8d,_0x36d76a){const _0x48daf7=a1102_0xc7c68d,_0x3cef00=this;this['sequence'][_0x48daf7(0x177)](function(){const _0x2a940d=_0x48daf7;return _0x3cef00[_0x2a940d(0x165)]['renameColumn'](_0x49f13d,_0x4abb8d,_0x36d76a)[_0x2a940d(0x168)](function(){const _0x4374cd=_0x2a940d;logger[_0x4374cd(0x16c)](_0x4374cd(0x16a),_0x4abb8d,_0x36d76a,_0x49f13d);})['catch'](function(_0x5d71aa){const _0x360cb2=_0x2a940d;logger[_0x360cb2(0x16c)](util['inspect'](_0x5d71aa,{'showHidden':![],'depth':null}));});});},Migration[a1102_0xc7c68d(0x15f)]['final']=function(_0x33ab80){const _0x1c826a=a1102_0xc7c68d;this[_0x1c826a(0x163)][_0x1c826a(0x177)](function(){return _0x33ab80();});},module[a1102_0xc7c68d(0x170)]={'up':function(_0x18fafd,_0x556e00){return new Promise(function(_0x5d2663){const _0x193fd2=a1102_0x1b59,_0x339a12=new Migration(_0x18fafd);_0x339a12[_0x193fd2(0x161)](_0x193fd2(0x15e),_0x193fd2(0x175),{'type':_0x556e00['BOOLEAN'],'defaultValue':!![]}),_0x339a12[_0x193fd2(0x162)](_0x193fd2(0x160),'phone',{'type':_0x556e00[_0x193fd2(0x15d)],'allowNull':!![]}),_0x339a12[_0x193fd2(0x161)]('settings',_0x193fd2(0x164),{'type':_0x556e00['BOOLEAN'],'defaultValue':![]}),_0x339a12[_0x193fd2(0x161)](_0x193fd2(0x166),'alignment',{'type':_0x556e00[_0x193fd2(0x15d)],'defaultValue':_0x193fd2(0x174)}),_0x339a12[_0x193fd2(0x161)](_0x193fd2(0x166),'verticalAlignment',{'type':_0x556e00[_0x193fd2(0x169)],'defaultValue':0x1e}),_0x339a12['final'](_0x5d2663);});},'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 eb747e2..6effe65 100644 --- a/server/migrations/2.0.63.js +++ b/server/migrations/2.0.63.js @@ -1 +1 @@ -const a941_0x1f32=['enqueue','join','STRING','renameColumn','catch','info','migration','customerAvatar','changeColumn','openchannel_applications','chat_websites','dropTable','chat_applications','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','prototype','tail','util','voice_queues_log','then','../config/logger','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','title','TagId','INTEGER','addIndex','sms_applications','query\x20%s','Added\x20column\x20%s\x20to\x20%s','sequelize','Removed\x20column\x20%s\x20from\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','table\x20dropped\x20%s','removeColumn','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','query','BOOLEAN','final','addColumn','dashboard_items','data','ALTER\x20TABLE\x20report_dial\x20CHANGE\x20`hodltime`\x20`holdtime`\x20INT(11)\x20DEFAULT\x20NULL','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','inspect','token','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','fax_applications','alternate','sequence','queryInterface','mail_applications','TEXT','stringify','defaultTitle'];(function(_0x54a858,_0x1f32b6){const _0x14dd83=function(_0x2b6b9f){while(--_0x2b6b9f){_0x54a858['push'](_0x54a858['shift']());}};_0x14dd83(++_0x1f32b6);}(a941_0x1f32,0x1c1));const a941_0x14dd=function(_0x54a858,_0x1f32b6){_0x54a858=_0x54a858-0x0;let _0x14dd83=a941_0x1f32[_0x54a858];return _0x14dd83;};const _0x5b1302=a941_0x14dd;'use strict';const util=require(_0x5b1302('0x2c')),logger=require(_0x5b1302('0x2f'))(_0x5b1302('0x22')),Sequence=function(){};Sequence[_0x5b1302('0x2a')]['enqueue']=function(_0x2b6b9f){const _0x3a21c7=_0x5b1302;this[_0x3a21c7('0x2b')]=this[_0x3a21c7('0x2b')]?this[_0x3a21c7('0x2b')]['finally'](_0x2b6b9f):_0x2b6b9f();};const Migration=function(_0x51046e){const _0x209866=_0x5b1302;this[_0x209866('0x17')]=_0x51046e,this[_0x209866('0x16')]=new Sequence();};Migration['prototype']['changeColumn']=function(_0x30e4d0,_0x537a26,_0x40299c){const _0xc64aa3=_0x5b1302,_0x4dac7e=this;this[_0xc64aa3('0x16')][_0xc64aa3('0x1c')](function(){const _0x3bf92c=_0xc64aa3;return _0x4dac7e['queryInterface'][_0x3bf92c('0x24')](_0x30e4d0,_0x537a26,_0x40299c)['then'](function(){const _0x5e3109=_0x3bf92c;logger[_0x5e3109('0x21')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x537a26,_0x30e4d0);})[_0x3bf92c('0x20')](function(_0xf15d2f){logger['info'](JSON['stringify'](_0xf15d2f));});});},Migration[_0x5b1302('0x2a')][_0x5b1302('0xc')]=function(_0x2afbb3,_0x5516b9,_0x3633fd){const _0x467024=_0x5b1302,_0x3f6db9=this;this[_0x467024('0x16')][_0x467024('0x1c')](function(){const _0x549bf8=_0x467024;return _0x3f6db9['queryInterface'][_0x549bf8('0xc')](_0x2afbb3,_0x5516b9,_0x3633fd)[_0x549bf8('0x2e')](function(){const _0x1e626c=_0x549bf8;logger[_0x1e626c('0x21')](_0x1e626c('0x2'),_0x5516b9,_0x2afbb3);})['catch'](function(_0x1f9523){const _0x1fa2a3=_0x549bf8;logger[_0x1fa2a3('0x21')](JSON['stringify'](_0x1f9523));});});},Migration[_0x5b1302('0x2a')]['dropTable']=function(_0x44340b){const _0x4359e3=_0x5b1302,_0x33744=this;this['sequence'][_0x4359e3('0x1c')](function(){const _0x24e4ad=_0x4359e3;return _0x33744[_0x24e4ad('0x17')][_0x24e4ad('0x27')](_0x44340b,{'force':!![]})[_0x24e4ad('0x2e')](function(){const _0x5dd6f6=_0x24e4ad;logger[_0x5dd6f6('0x21')](_0x5dd6f6('0x6'),_0x44340b);})[_0x24e4ad('0x20')](function(_0x440060){const _0x368908=_0x24e4ad;logger[_0x368908('0x21')](JSON[_0x368908('0x1a')](_0x440060));});});},Migration[_0x5b1302('0x2a')]['addIndex']=function(_0x545d21,_0x4ceebf,_0x32c398){const _0x35d8ff=_0x5b1302,_0x4e7489=this;this[_0x35d8ff('0x16')][_0x35d8ff('0x1c')](function(){const _0x12763f=_0x35d8ff;return _0x4e7489[_0x12763f('0x17')][_0x12763f('0x34')](_0x545d21,_0x4ceebf,{'indexName':_0x32c398})[_0x12763f('0x2e')](function(){const _0x4f60b5=_0x12763f;logger[_0x4f60b5('0x21')]('addIndex\x20%s\x20%s\x20%s',_0x545d21,_0x4ceebf[_0x4f60b5('0x1d')](','),_0x32c398);})[_0x12763f('0x20')](function(_0x2f24a3){const _0x5f72ca=_0x12763f;logger[_0x5f72ca('0x21')](JSON[_0x5f72ca('0x1a')](_0x2f24a3));});});},Migration[_0x5b1302('0x2a')][_0x5b1302('0x9')]=function(_0x5c20d3){const _0xf3b640=_0x5b1302,_0x29f5da=this;this[_0xf3b640('0x16')][_0xf3b640('0x1c')](function(){const _0x4cfb8c=_0xf3b640;return _0x29f5da[_0x4cfb8c('0x17')][_0x4cfb8c('0x3')][_0x4cfb8c('0x9')](_0x5c20d3)[_0x4cfb8c('0x2e')](function(){const _0x10277a=_0x4cfb8c;logger[_0x10277a('0x21')](_0x10277a('0x1'),_0x5c20d3);})[_0x4cfb8c('0x20')](function(_0x5b3b1b){const _0x3bf185=_0x4cfb8c;logger[_0x3bf185('0x21')](JSON['stringify'](_0x5b3b1b));});});},Migration[_0x5b1302('0x2a')][_0x5b1302('0x7')]=function(_0x599484,_0x495418){const _0x430aa3=_0x5b1302,_0x3754aa=this;this[_0x430aa3('0x16')][_0x430aa3('0x1c')](function(){const _0x477f5d=_0x430aa3;return _0x3754aa[_0x477f5d('0x17')][_0x477f5d('0x7')](_0x599484,_0x495418)[_0x477f5d('0x2e')](function(){const _0x5b4338=_0x477f5d;logger[_0x5b4338('0x21')](_0x5b4338('0x4'),_0x495418,_0x599484);})[_0x477f5d('0x20')](function(_0x1b93b1){const _0x4e1f7b=_0x477f5d;logger['info'](util[_0x4e1f7b('0x11')](_0x1b93b1,{'showHidden':![],'depth':null}));});});},Migration[_0x5b1302('0x2a')][_0x5b1302('0x1f')]=function(_0x32b163,_0x42e24f,_0x42cb30){const _0x455c2e=_0x5b1302,_0x54f371=this;this[_0x455c2e('0x16')][_0x455c2e('0x1c')](function(){const _0x2cf81f=_0x455c2e;return _0x54f371[_0x2cf81f('0x17')][_0x2cf81f('0x1f')](_0x32b163,_0x42e24f,_0x42cb30)['then'](function(){const _0xd13b02=_0x2cf81f;logger[_0xd13b02('0x21')](_0xd13b02('0x5'),_0x42e24f,_0x42cb30,_0x32b163);})[_0x2cf81f('0x20')](function(_0x2efdb3){const _0xd5bd3a=_0x2cf81f;logger[_0xd5bd3a('0x21')](util[_0xd5bd3a('0x11')](_0x2efdb3,{'showHidden':![],'depth':null}));});});},Migration[_0x5b1302('0x2a')][_0x5b1302('0xb')]=function(_0x18cee9){const _0x1aaf67=_0x5b1302;this[_0x1aaf67('0x16')]['enqueue'](function(){return _0x18cee9();});},module['exports']={'up':function(_0x51b062,_0x1039fb){return new Promise(function(_0x41b15f){const _0x27098c=a941_0x14dd,_0x438e39=new Migration(_0x51b062);_0x438e39['addColumn'](_0x27098c('0x26'),'messagesAlignment',{'type':_0x1039fb['STRING'],'defaultValue':_0x27098c('0x15')}),_0x438e39[_0x27098c('0xc')](_0x27098c('0x26'),_0x27098c('0x1b'),{'type':_0x1039fb[_0x27098c('0x1e')]}),_0x438e39[_0x27098c('0xc')](_0x27098c('0x26'),_0x27098c('0x23'),{'type':_0x1039fb[_0x27098c('0x19')]}),_0x438e39[_0x27098c('0xc')](_0x27098c('0x26'),'showCustomerAvatar',{'type':_0x1039fb[_0x27098c('0xa')],'defaultValue':![]}),_0x438e39[_0x27098c('0xc')](_0x27098c('0x28'),_0x27098c('0x32'),{'type':_0x1039fb[_0x27098c('0x33')]}),_0x438e39[_0x27098c('0x9')](_0x27098c('0x29')),_0x438e39[_0x27098c('0xc')](_0x27098c('0x14'),'TagId',{'type':_0x1039fb[_0x27098c('0x33')]}),_0x438e39[_0x27098c('0x9')](_0x27098c('0x13')),_0x438e39['addColumn'](_0x27098c('0x18'),_0x27098c('0x32'),{'type':_0x1039fb['INTEGER']}),_0x438e39['query'](_0x27098c('0x30')),_0x438e39['addColumn'](_0x27098c('0x25'),'TagId',{'type':_0x1039fb['INTEGER']}),_0x438e39[_0x27098c('0x9')](_0x27098c('0x8')),_0x438e39['addColumn'](_0x27098c('0x0'),_0x27098c('0x32'),{'type':_0x1039fb[_0x27098c('0x33')]}),_0x438e39['query'](_0x27098c('0x10')),_0x438e39[_0x27098c('0x9')](_0x27098c('0xf')),_0x438e39['addColumn']('openchannel_accounts',_0x27098c('0x12'),{'type':_0x1039fb['STRING']}),_0x438e39[_0x27098c('0xc')](_0x27098c('0x2d'),_0x27098c('0xe'),{'type':_0x1039fb[_0x27098c('0x1e')],'allowNull':![],'defaultValue':''}),_0x438e39[_0x27098c('0x24')](_0x27098c('0xd'),_0x27098c('0x31'),{'type':_0x1039fb[_0x27098c('0x1e')],'allowNull':![]}),_0x438e39[_0x27098c('0xb')](_0x41b15f);});},'down':function(){}}; \ No newline at end of file +const a1103_0x9d34=['inspect','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','fax_applications','chat_websites','removeColumn','data','addColumn','Removed\x20column\x20%s\x20from\x20%s','title','TEXT','Changed\x20column\x20%s\x20in\x20table\x20%s','token','tail','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','chat_applications','INTEGER','changeColumn','stringify','renameColumn','TagId','queryInterface','prototype','openchannel_applications','final','catch','voice_queues_log','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','openchannel_accounts','info','dashboard_items','showCustomerAvatar','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','query','STRING','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','exports','table\x20dropped\x20%s','addIndex','addIndex\x20%s\x20%s\x20%s','enqueue','then','sequelize','sms_applications','sequence'];(function(_0x54bcbe,_0x5548ad){const _0x9d34ae=function(_0x97aa1c){while(--_0x97aa1c){_0x54bcbe['push'](_0x54bcbe['shift']());}};_0x9d34ae(++_0x5548ad);}(a1103_0x9d34,0x154));const a1103_0x97aa=function(_0x54bcbe,_0x5548ad){_0x54bcbe=_0x54bcbe-0x13e;let _0x9d34ae=a1103_0x9d34[_0x54bcbe];return _0x9d34ae;};const a1103_0x1d5de3=a1103_0x97aa;'use strict';const util=require('util'),logger=require('../config/logger')('migration'),Sequence=function(){};Sequence[a1103_0x1d5de3(0x168)]['enqueue']=function(_0x1f7676){const _0x20af90=a1103_0x1d5de3;this['tail']=this['tail']?this[_0x20af90(0x15e)]['finally'](_0x1f7676):_0x1f7676();};const Migration=function(_0x22d83a){const _0x2a5a6f=a1103_0x1d5de3;this[_0x2a5a6f(0x167)]=_0x22d83a,this[_0x2a5a6f(0x151)]=new Sequence();};Migration[a1103_0x1d5de3(0x168)][a1103_0x1d5de3(0x163)]=function(_0x54814d,_0x38db02,_0x3eb982){const _0x2a191c=a1103_0x1d5de3,_0x15bf9d=this;this[_0x2a191c(0x151)][_0x2a191c(0x14d)](function(){const _0x6c88ca=_0x2a191c;return _0x15bf9d[_0x6c88ca(0x167)]['changeColumn'](_0x54814d,_0x38db02,_0x3eb982)[_0x6c88ca(0x14e)](function(){const _0x5a3c27=_0x6c88ca;logger[_0x5a3c27(0x142)](_0x5a3c27(0x15c),_0x38db02,_0x54814d);})['catch'](function(_0x1e191d){const _0x250c80=_0x6c88ca;logger[_0x250c80(0x142)](JSON[_0x250c80(0x164)](_0x1e191d));});});},Migration[a1103_0x1d5de3(0x168)][a1103_0x1d5de3(0x158)]=function(_0x14ee8a,_0x5abf57,_0x5a3c16){const _0x3d5f0d=a1103_0x1d5de3,_0x3e79e8=this;this[_0x3d5f0d(0x151)][_0x3d5f0d(0x14d)](function(){const _0xaecb6=_0x3d5f0d;return _0x3e79e8[_0xaecb6(0x167)][_0xaecb6(0x158)](_0x14ee8a,_0x5abf57,_0x5a3c16)[_0xaecb6(0x14e)](function(){const _0x2d7800=_0xaecb6;logger[_0x2d7800(0x142)]('Added\x20column\x20%s\x20to\x20%s',_0x5abf57,_0x14ee8a);})['catch'](function(_0x5a31cd){const _0x428ed5=_0xaecb6;logger[_0x428ed5(0x142)](JSON[_0x428ed5(0x164)](_0x5a31cd));});});},Migration['prototype'][a1103_0x1d5de3(0x15f)]=function(_0x431356){const _0x4ffab9=a1103_0x1d5de3,_0x213d4b=this;this['sequence'][_0x4ffab9(0x14d)](function(){const _0xededc=_0x4ffab9;return _0x213d4b[_0xededc(0x167)][_0xededc(0x15f)](_0x431356,{'force':!![]})[_0xededc(0x14e)](function(){const _0x307f98=_0xededc;logger[_0x307f98(0x142)](_0x307f98(0x14a),_0x431356);})['catch'](function(_0x30a750){const _0x39eef5=_0xededc;logger[_0x39eef5(0x142)](JSON[_0x39eef5(0x164)](_0x30a750));});});},Migration[a1103_0x1d5de3(0x168)][a1103_0x1d5de3(0x14b)]=function(_0x1ea140,_0x2d23c0,_0x289659){const _0x5b4afd=a1103_0x1d5de3,_0x45b5ae=this;this[_0x5b4afd(0x151)][_0x5b4afd(0x14d)](function(){const _0x354d56=_0x5b4afd;return _0x45b5ae[_0x354d56(0x167)][_0x354d56(0x14b)](_0x1ea140,_0x2d23c0,{'indexName':_0x289659})[_0x354d56(0x14e)](function(){const _0xde5bbd=_0x354d56;logger['info'](_0xde5bbd(0x14c),_0x1ea140,_0x2d23c0['join'](','),_0x289659);})[_0x354d56(0x13e)](function(_0x4c74f5){const _0x1a2fcf=_0x354d56;logger['info'](JSON[_0x1a2fcf(0x164)](_0x4c74f5));});});},Migration[a1103_0x1d5de3(0x168)]['query']=function(_0x4440da){const _0x173885=a1103_0x1d5de3,_0x197d5d=this;this[_0x173885(0x151)]['enqueue'](function(){const _0x24b70e=_0x173885;return _0x197d5d[_0x24b70e(0x167)][_0x24b70e(0x14f)][_0x24b70e(0x146)](_0x4440da)['then'](function(){logger['info']('query\x20%s',_0x4440da);})[_0x24b70e(0x13e)](function(_0x87ee6b){const _0x271fdb=_0x24b70e;logger[_0x271fdb(0x142)](JSON['stringify'](_0x87ee6b));});});},Migration[a1103_0x1d5de3(0x168)][a1103_0x1d5de3(0x156)]=function(_0x5ede34,_0x1e8c52){const _0x2f7158=a1103_0x1d5de3,_0x3105e7=this;this[_0x2f7158(0x151)][_0x2f7158(0x14d)](function(){const _0x4d6940=_0x2f7158;return _0x3105e7[_0x4d6940(0x167)][_0x4d6940(0x156)](_0x5ede34,_0x1e8c52)['then'](function(){const _0x21c779=_0x4d6940;logger['info'](_0x21c779(0x159),_0x1e8c52,_0x5ede34);})[_0x4d6940(0x13e)](function(_0xfa01ba){const _0x4ab935=_0x4d6940;logger[_0x4ab935(0x142)](util[_0x4ab935(0x152)](_0xfa01ba,{'showHidden':![],'depth':null}));});});},Migration[a1103_0x1d5de3(0x168)]['renameColumn']=function(_0x4beb74,_0x550802,_0x395b51){const _0x6a0d20=a1103_0x1d5de3,_0xc3e9ad=this;this[_0x6a0d20(0x151)]['enqueue'](function(){const _0x2cecc2=_0x6a0d20;return _0xc3e9ad[_0x2cecc2(0x167)][_0x2cecc2(0x165)](_0x4beb74,_0x550802,_0x395b51)['then'](function(){logger['info']('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x550802,_0x395b51,_0x4beb74);})[_0x2cecc2(0x13e)](function(_0x45e6e0){const _0x48e66=_0x2cecc2;logger[_0x48e66(0x142)](util['inspect'](_0x45e6e0,{'showHidden':![],'depth':null}));});});},Migration[a1103_0x1d5de3(0x168)][a1103_0x1d5de3(0x16a)]=function(_0x4c99fb){const _0x4ff9ed=a1103_0x1d5de3;this[_0x4ff9ed(0x151)][_0x4ff9ed(0x14d)](function(){return _0x4c99fb();});},module[a1103_0x1d5de3(0x149)]={'up':function(_0x38109b,_0x2cbe5b){return new Promise(function(_0x437c98){const _0x34a4a3=a1103_0x97aa,_0x4b2a6b=new Migration(_0x38109b);_0x4b2a6b[_0x34a4a3(0x158)](_0x34a4a3(0x155),'messagesAlignment',{'type':_0x2cbe5b[_0x34a4a3(0x147)],'defaultValue':'alternate'}),_0x4b2a6b[_0x34a4a3(0x158)](_0x34a4a3(0x155),'defaultTitle',{'type':_0x2cbe5b[_0x34a4a3(0x147)]}),_0x4b2a6b[_0x34a4a3(0x158)](_0x34a4a3(0x155),'customerAvatar',{'type':_0x2cbe5b[_0x34a4a3(0x15b)]}),_0x4b2a6b[_0x34a4a3(0x158)]('chat_websites',_0x34a4a3(0x144),{'type':_0x2cbe5b['BOOLEAN'],'defaultValue':![]}),_0x4b2a6b['addColumn'](_0x34a4a3(0x161),'TagId',{'type':_0x2cbe5b[_0x34a4a3(0x162)]}),_0x4b2a6b['query'](_0x34a4a3(0x145)),_0x4b2a6b[_0x34a4a3(0x158)](_0x34a4a3(0x154),_0x34a4a3(0x166),{'type':_0x2cbe5b[_0x34a4a3(0x162)]}),_0x4b2a6b[_0x34a4a3(0x146)](_0x34a4a3(0x140)),_0x4b2a6b[_0x34a4a3(0x158)]('mail_applications',_0x34a4a3(0x166),{'type':_0x2cbe5b[_0x34a4a3(0x162)]}),_0x4b2a6b[_0x34a4a3(0x146)](_0x34a4a3(0x148)),_0x4b2a6b['addColumn'](_0x34a4a3(0x169),_0x34a4a3(0x166),{'type':_0x2cbe5b['INTEGER']}),_0x4b2a6b['query'](_0x34a4a3(0x160)),_0x4b2a6b[_0x34a4a3(0x158)](_0x34a4a3(0x150),_0x34a4a3(0x166),{'type':_0x2cbe5b[_0x34a4a3(0x162)]}),_0x4b2a6b[_0x34a4a3(0x146)](_0x34a4a3(0x153)),_0x4b2a6b[_0x34a4a3(0x146)]('ALTER\x20TABLE\x20report_dial\x20CHANGE\x20`hodltime`\x20`holdtime`\x20INT(11)\x20DEFAULT\x20NULL'),_0x4b2a6b[_0x34a4a3(0x158)](_0x34a4a3(0x141),_0x34a4a3(0x15d),{'type':_0x2cbe5b[_0x34a4a3(0x147)]}),_0x4b2a6b[_0x34a4a3(0x158)](_0x34a4a3(0x13f),_0x34a4a3(0x157),{'type':_0x2cbe5b[_0x34a4a3(0x147)],'allowNull':![],'defaultValue':''}),_0x4b2a6b[_0x34a4a3(0x163)](_0x34a4a3(0x143),_0x34a4a3(0x15a),{'type':_0x2cbe5b[_0x34a4a3(0x147)],'allowNull':![]}),_0x4b2a6b[_0x34a4a3(0x16a)](_0x437c98);});},'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 27a277b..9433e5c 100644 --- a/server/migrations/2.0.64.js +++ b/server/migrations/2.0.64.js @@ -1 +1 @@ -const a942_0x11e5=['inspect','join','removeColumn','table\x20dropped\x20%s','report_call','enqueue','removeIndex','sequelize','phoneBarEnableVideoRecording','../config/logger','final','analytics_report_fields','stringify','TEXT','tail','addIndex\x20%s\x20%s\x20%s','dropTable','users','info','then','STRING','sequence','exports','lastdata','catch','query\x20%s','chat_websites','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','addIndex','Removed\x20column\x20%s\x20from\x20%s','queryInterface','changeColumn','prototype','addColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','renameColumn','removeIndex\x20%s\x20%s','query'];(function(_0x57687c,_0x11e5ae){const _0x3f0d58=function(_0x3a1107){while(--_0x3a1107){_0x57687c['push'](_0x57687c['shift']());}};_0x3f0d58(++_0x11e5ae);}(a942_0x11e5,0x12c));const a942_0x3f0d=function(_0x57687c,_0x11e5ae){_0x57687c=_0x57687c-0x0;let _0x3f0d58=a942_0x11e5[_0x57687c];return _0x3f0d58;};const _0x13938e=a942_0x3f0d;'use strict';const util=require('util'),logger=require(_0x13938e('0xd'))('migration'),Sequence=function(){};Sequence['prototype'][_0x13938e('0x9')]=function(_0x3a1107){const _0x18e1f6=_0x13938e;this[_0x18e1f6('0x12')]=this[_0x18e1f6('0x12')]?this[_0x18e1f6('0x12')]['finally'](_0x3a1107):_0x3a1107();};const Migration=function(_0x5c6807){const _0x352e15=_0x13938e;this['queryInterface']=_0x5c6807,this[_0x352e15('0x19')]=new Sequence();};Migration['prototype'][_0x13938e('0x23')]=function(_0x43d203,_0x2936ea,_0x5664c2){const _0x3c2a54=_0x13938e,_0x318c6c=this;this[_0x3c2a54('0x19')][_0x3c2a54('0x9')](function(){const _0x3c3a62=_0x3c2a54;return _0x318c6c[_0x3c3a62('0x22')][_0x3c3a62('0x23')](_0x43d203,_0x2936ea,_0x5664c2)[_0x3c3a62('0x17')](function(){const _0x522fca=_0x3c3a62;logger[_0x522fca('0x16')](_0x522fca('0x0'),_0x2936ea,_0x43d203);})[_0x3c3a62('0x1c')](function(_0xc0ac65){logger['info'](JSON['stringify'](_0xc0ac65));});});},Migration['prototype'][_0x13938e('0x25')]=function(_0x3993c1,_0x1b0295,_0x114aad){const _0x1a1779=_0x13938e,_0x4bf5d5=this;this['sequence'][_0x1a1779('0x9')](function(){const _0x46c8dd=_0x1a1779;return _0x4bf5d5[_0x46c8dd('0x22')][_0x46c8dd('0x25')](_0x3993c1,_0x1b0295,_0x114aad)[_0x46c8dd('0x17')](function(){const _0x4ef09b=_0x46c8dd;logger[_0x4ef09b('0x16')]('Added\x20column\x20%s\x20to\x20%s',_0x1b0295,_0x3993c1);})[_0x46c8dd('0x1c')](function(_0x33db20){const _0x2688ad=_0x46c8dd;logger[_0x2688ad('0x16')](JSON[_0x2688ad('0x10')](_0x33db20));});});},Migration['prototype'][_0x13938e('0x14')]=function(_0x1abe43){const _0xec8714=_0x13938e,_0x435058=this;this[_0xec8714('0x19')]['enqueue'](function(){const _0x35326a=_0xec8714;return _0x435058[_0x35326a('0x22')]['dropTable'](_0x1abe43,{'force':!![]})['then'](function(){const _0x4b5e4d=_0x35326a;logger[_0x4b5e4d('0x16')](_0x4b5e4d('0x7'),_0x1abe43);})[_0x35326a('0x1c')](function(_0x28ed10){const _0x5b1e9d=_0x35326a;logger[_0x5b1e9d('0x16')](JSON[_0x5b1e9d('0x10')](_0x28ed10));});});},Migration[_0x13938e('0x24')][_0x13938e('0x20')]=function(_0x57ea2c,_0x46488c,_0x48d00d){const _0x2cfe20=_0x13938e,_0xa73afb=this;this[_0x2cfe20('0x19')]['enqueue'](function(){const _0x43af76=_0x2cfe20;return _0xa73afb[_0x43af76('0x22')][_0x43af76('0x20')](_0x57ea2c,_0x46488c,{'indexName':_0x48d00d})[_0x43af76('0x17')](function(){const _0x51f8dc=_0x43af76;logger[_0x51f8dc('0x16')](_0x51f8dc('0x13'),_0x57ea2c,_0x46488c[_0x51f8dc('0x5')](','),_0x48d00d);})[_0x43af76('0x1c')](function(_0x584386){const _0x4a22e2=_0x43af76;logger['info'](JSON[_0x4a22e2('0x10')](_0x584386));});});},Migration[_0x13938e('0x24')][_0x13938e('0xa')]=function(_0x5f3221,_0x13b4ac){const _0xdbc480=_0x13938e,_0x5dce9c=this;this[_0xdbc480('0x19')]['enqueue'](function(){const _0x3e5a88=_0xdbc480;return _0x5dce9c[_0x3e5a88('0x22')][_0x3e5a88('0xa')](_0x5f3221,_0x13b4ac)[_0x3e5a88('0x17')](function(){const _0x33c18a=_0x3e5a88;logger[_0x33c18a('0x16')](_0x33c18a('0x2'),_0x5f3221,_0x13b4ac);})['catch'](function(_0x3aa2e5){const _0x1709ef=_0x3e5a88;logger['info'](JSON[_0x1709ef('0x10')](_0x3aa2e5));});});},Migration[_0x13938e('0x24')][_0x13938e('0x3')]=function(_0x4dbd8a){const _0x4860f4=_0x13938e,_0x3559d1=this;this[_0x4860f4('0x19')]['enqueue'](function(){const _0xfc69ab=_0x4860f4;return _0x3559d1[_0xfc69ab('0x22')][_0xfc69ab('0xb')][_0xfc69ab('0x3')](_0x4dbd8a)[_0xfc69ab('0x17')](function(){const _0x18a18e=_0xfc69ab;logger[_0x18a18e('0x16')](_0x18a18e('0x1d'),_0x4dbd8a);})[_0xfc69ab('0x1c')](function(_0x42e9eb){const _0x3bf671=_0xfc69ab;logger[_0x3bf671('0x16')](JSON[_0x3bf671('0x10')](_0x42e9eb));});});},Migration[_0x13938e('0x24')][_0x13938e('0x6')]=function(_0x578e45,_0x5028d8){const _0x435507=_0x13938e,_0x2205ec=this;this[_0x435507('0x19')][_0x435507('0x9')](function(){const _0x125ce6=_0x435507;return _0x2205ec['queryInterface'][_0x125ce6('0x6')](_0x578e45,_0x5028d8)[_0x125ce6('0x17')](function(){const _0x1ccafe=_0x125ce6;logger[_0x1ccafe('0x16')](_0x1ccafe('0x21'),_0x5028d8,_0x578e45);})['catch'](function(_0x3c1422){const _0x4babf4=_0x125ce6;logger['info'](util[_0x4babf4('0x4')](_0x3c1422,{'showHidden':![],'depth':null}));});});},Migration[_0x13938e('0x24')][_0x13938e('0x1')]=function(_0x3c7024,_0x195de8,_0x484320){const _0x49b0b6=_0x13938e,_0x1d4e06=this;this[_0x49b0b6('0x19')]['enqueue'](function(){const _0x2d41a0=_0x49b0b6;return _0x1d4e06[_0x2d41a0('0x22')]['renameColumn'](_0x3c7024,_0x195de8,_0x484320)[_0x2d41a0('0x17')](function(){const _0x2ce9dc=_0x2d41a0;logger[_0x2ce9dc('0x16')](_0x2ce9dc('0x1f'),_0x195de8,_0x484320,_0x3c7024);})[_0x2d41a0('0x1c')](function(_0x37ad84){const _0xd31857=_0x2d41a0;logger[_0xd31857('0x16')](util[_0xd31857('0x4')](_0x37ad84,{'showHidden':![],'depth':null}));});});},Migration[_0x13938e('0x24')][_0x13938e('0xe')]=function(_0x2005a9){const _0x505046=_0x13938e;this[_0x505046('0x19')]['enqueue'](function(){return _0x2005a9();});},module[_0x13938e('0x1a')]={'up':function(_0xae565,_0x4b6193){return new Promise(function(_0x23a5e5){const _0x2da7a4=a942_0x3f0d,_0x44554f=new Migration(_0xae565);_0x44554f[_0x2da7a4('0x25')](_0x2da7a4('0x15'),_0x2da7a4('0xc'),{'type':_0x4b6193['BOOLEAN'],'defaultValue':![]}),_0x44554f[_0x2da7a4('0x23')](_0x2da7a4('0x8'),_0x2da7a4('0x1b'),{'type':_0x4b6193[_0x2da7a4('0x11')]}),_0x44554f[_0x2da7a4('0x25')](_0x2da7a4('0x1e'),'customerAlias',{'type':_0x4b6193[_0x2da7a4('0x18')],'defaultValue':'Me'}),_0x44554f['changeColumn'](_0x2da7a4('0xf'),'field',{'type':_0x4b6193[_0x2da7a4('0x11')],'allowNull':![]}),_0x44554f[_0x2da7a4('0xa')](_0x2da7a4('0x8'),'uniqueid'),_0x44554f[_0x2da7a4('0xe')](_0x23a5e5);});},'down':function(){}}; \ No newline at end of file +const a1104_0x3699=['inspect','removeColumn','sequelize','join','uniqueid','sequence','Added\x20column\x20%s\x20to\x20%s','chat_websites','addColumn','BOOLEAN','removeIndex\x20%s\x20%s','final','util','migration','tail','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','finally','lastdata','renameColumn','catch','analytics_report_fields','STRING','users','queryInterface','dropTable','info','stringify','query\x20%s','query','Removed\x20column\x20%s\x20from\x20%s','TEXT','report_call','enqueue','changeColumn','prototype','customerAlias','removeIndex','Changed\x20column\x20%s\x20in\x20table\x20%s','then'];(function(_0x49d8bb,_0x38c845){const _0x3699b2=function(_0x57c4eb){while(--_0x57c4eb){_0x49d8bb['push'](_0x49d8bb['shift']());}};_0x3699b2(++_0x38c845);}(a1104_0x3699,0x126));const a1104_0x57c4=function(_0x49d8bb,_0x38c845){_0x49d8bb=_0x49d8bb-0x96;let _0x3699b2=a1104_0x3699[_0x49d8bb];return _0x3699b2;};const a1104_0xc5dfb2=a1104_0x57c4;'use strict';const util=require(a1104_0xc5dfb2(0xb4)),logger=require('../config/logger')(a1104_0xc5dfb2(0xb5)),Sequence=function(){};Sequence[a1104_0xc5dfb2(0xa3)][a1104_0xc5dfb2(0xa1)]=function(_0x1c608b){const _0x294a7e=a1104_0xc5dfb2;this[_0x294a7e(0xb6)]=this['tail']?this[_0x294a7e(0xb6)][_0x294a7e(0xb8)](_0x1c608b):_0x1c608b();};const Migration=function(_0x514cd9){const _0x47f247=a1104_0xc5dfb2;this[_0x47f247(0x98)]=_0x514cd9,this[_0x47f247(0xad)]=new Sequence();};Migration[a1104_0xc5dfb2(0xa3)]['changeColumn']=function(_0x50926c,_0x242881,_0x26c3cb){const _0x5386a3=a1104_0xc5dfb2,_0x1cc64c=this;this[_0x5386a3(0xad)][_0x5386a3(0xa1)](function(){const _0x22bf0a=_0x5386a3;return _0x1cc64c[_0x22bf0a(0x98)]['changeColumn'](_0x50926c,_0x242881,_0x26c3cb)[_0x22bf0a(0xa7)](function(){const _0x218613=_0x22bf0a;logger['info'](_0x218613(0xa6),_0x242881,_0x50926c);})['catch'](function(_0x4c60c1){const _0x2ef087=_0x22bf0a;logger[_0x2ef087(0x9a)](JSON['stringify'](_0x4c60c1));});});},Migration[a1104_0xc5dfb2(0xa3)][a1104_0xc5dfb2(0xb0)]=function(_0x41c88a,_0x18f5ce,_0x5c0516){const _0x47bd7f=a1104_0xc5dfb2,_0x21f329=this;this[_0x47bd7f(0xad)]['enqueue'](function(){const _0x4178b0=_0x47bd7f;return _0x21f329[_0x4178b0(0x98)][_0x4178b0(0xb0)](_0x41c88a,_0x18f5ce,_0x5c0516)['then'](function(){const _0x4855a7=_0x4178b0;logger[_0x4855a7(0x9a)](_0x4855a7(0xae),_0x18f5ce,_0x41c88a);})[_0x4178b0(0xbb)](function(_0x531bcc){const _0x1e047c=_0x4178b0;logger[_0x1e047c(0x9a)](JSON[_0x1e047c(0x9b)](_0x531bcc));});});},Migration['prototype'][a1104_0xc5dfb2(0x99)]=function(_0x42836b){const _0x2e1cf1=a1104_0xc5dfb2,_0x3faa4c=this;this[_0x2e1cf1(0xad)]['enqueue'](function(){const _0x281583=_0x2e1cf1;return _0x3faa4c[_0x281583(0x98)]['dropTable'](_0x42836b,{'force':!![]})[_0x281583(0xa7)](function(){const _0x4d4f46=_0x281583;logger[_0x4d4f46(0x9a)]('table\x20dropped\x20%s',_0x42836b);})['catch'](function(_0x4e1335){const _0x4c0906=_0x281583;logger['info'](JSON[_0x4c0906(0x9b)](_0x4e1335));});});},Migration[a1104_0xc5dfb2(0xa3)]['addIndex']=function(_0x2918c2,_0x3d1c38,_0x528698){const _0x5306f8=a1104_0xc5dfb2,_0x47ca9f=this;this[_0x5306f8(0xad)]['enqueue'](function(){const _0x3c35eb=_0x5306f8;return _0x47ca9f[_0x3c35eb(0x98)]['addIndex'](_0x2918c2,_0x3d1c38,{'indexName':_0x528698})[_0x3c35eb(0xa7)](function(){const _0x8f6932=_0x3c35eb;logger[_0x8f6932(0x9a)]('addIndex\x20%s\x20%s\x20%s',_0x2918c2,_0x3d1c38[_0x8f6932(0xab)](','),_0x528698);})[_0x3c35eb(0xbb)](function(_0x187ca7){const _0x55c82d=_0x3c35eb;logger[_0x55c82d(0x9a)](JSON['stringify'](_0x187ca7));});});},Migration['prototype'][a1104_0xc5dfb2(0xa5)]=function(_0x9f6ed7,_0x504a59){const _0x253b61=a1104_0xc5dfb2,_0x45c42b=this;this[_0x253b61(0xad)][_0x253b61(0xa1)](function(){const _0x190944=_0x253b61;return _0x45c42b[_0x190944(0x98)][_0x190944(0xa5)](_0x9f6ed7,_0x504a59)['then'](function(){const _0x45a92a=_0x190944;logger[_0x45a92a(0x9a)](_0x45a92a(0xb2),_0x9f6ed7,_0x504a59);})['catch'](function(_0x17f5ca){const _0xb060e6=_0x190944;logger['info'](JSON[_0xb060e6(0x9b)](_0x17f5ca));});});},Migration[a1104_0xc5dfb2(0xa3)][a1104_0xc5dfb2(0x9d)]=function(_0x52283b){const _0x184a77=a1104_0xc5dfb2,_0x7b2b80=this;this['sequence'][_0x184a77(0xa1)](function(){const _0x311fef=_0x184a77;return _0x7b2b80[_0x311fef(0x98)][_0x311fef(0xaa)][_0x311fef(0x9d)](_0x52283b)[_0x311fef(0xa7)](function(){const _0x34367c=_0x311fef;logger[_0x34367c(0x9a)](_0x34367c(0x9c),_0x52283b);})[_0x311fef(0xbb)](function(_0x4b9e80){const _0x34e302=_0x311fef;logger[_0x34e302(0x9a)](JSON['stringify'](_0x4b9e80));});});},Migration[a1104_0xc5dfb2(0xa3)][a1104_0xc5dfb2(0xa9)]=function(_0xf796de,_0xf6013b){const _0x6a8837=a1104_0xc5dfb2,_0x34fa56=this;this['sequence'][_0x6a8837(0xa1)](function(){const _0x4f3b32=_0x6a8837;return _0x34fa56['queryInterface'][_0x4f3b32(0xa9)](_0xf796de,_0xf6013b)['then'](function(){const _0x4829bb=_0x4f3b32;logger['info'](_0x4829bb(0x9e),_0xf6013b,_0xf796de);})[_0x4f3b32(0xbb)](function(_0x425e7d){const _0x295255=_0x4f3b32;logger[_0x295255(0x9a)](util[_0x295255(0xa8)](_0x425e7d,{'showHidden':![],'depth':null}));});});},Migration[a1104_0xc5dfb2(0xa3)][a1104_0xc5dfb2(0xba)]=function(_0x2cb4c1,_0x10b68a,_0x41c048){const _0x45ec2e=a1104_0xc5dfb2,_0x5eff09=this;this[_0x45ec2e(0xad)][_0x45ec2e(0xa1)](function(){const _0x2a7f4b=_0x45ec2e;return _0x5eff09[_0x2a7f4b(0x98)]['renameColumn'](_0x2cb4c1,_0x10b68a,_0x41c048)[_0x2a7f4b(0xa7)](function(){const _0x2e40b5=_0x2a7f4b;logger[_0x2e40b5(0x9a)](_0x2e40b5(0xb7),_0x10b68a,_0x41c048,_0x2cb4c1);})[_0x2a7f4b(0xbb)](function(_0x156c26){const _0x57f0f6=_0x2a7f4b;logger['info'](util[_0x57f0f6(0xa8)](_0x156c26,{'showHidden':![],'depth':null}));});});},Migration[a1104_0xc5dfb2(0xa3)]['final']=function(_0x4fec54){const _0x5011d9=a1104_0xc5dfb2;this[_0x5011d9(0xad)][_0x5011d9(0xa1)](function(){return _0x4fec54();});},module['exports']={'up':function(_0x1e852b,_0x1d91b0){return new Promise(function(_0xea3251){const _0x92ced8=a1104_0x57c4,_0x1025d5=new Migration(_0x1e852b);_0x1025d5[_0x92ced8(0xb0)](_0x92ced8(0x97),'phoneBarEnableVideoRecording',{'type':_0x1d91b0[_0x92ced8(0xb1)],'defaultValue':![]}),_0x1025d5[_0x92ced8(0xa2)](_0x92ced8(0xa0),_0x92ced8(0xb9),{'type':_0x1d91b0[_0x92ced8(0x9f)]}),_0x1025d5['addColumn'](_0x92ced8(0xaf),_0x92ced8(0xa4),{'type':_0x1d91b0[_0x92ced8(0x96)],'defaultValue':'Me'}),_0x1025d5[_0x92ced8(0xa2)](_0x92ced8(0xbc),'field',{'type':_0x1d91b0['TEXT'],'allowNull':![]}),_0x1025d5[_0x92ced8(0xa5)](_0x92ced8(0xa0),_0x92ced8(0xac)),_0x1025d5[_0x92ced8(0xb3)](_0xea3251);});},'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 b9d76b7..ce6c960 100644 --- a/server/migrations/2.0.65.js +++ b/server/migrations/2.0.65.js @@ -1 +1 @@ -const a943_0x5200=['migration','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;','cm_contacts','../config/logger','inspect','changeColumn','INTEGER','removeIndex','query\x20%s','STRING','finally','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;','removeIndex\x20%s\x20%s','dialCutDigit','teams','INSERT\x20INTO\x20ints(i)\x20VALUES\x20(4)','info','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;','exports','stringify','util','ALTER\x20TABLE\x20tmp_tools_tags\x20ADD\x20COLUMN\x20contact_id\x20INT\x20NULL','dialRandomLastDigitCallerIdNumber','Changed\x20column\x20%s\x20in\x20table\x20%s','final','renameColumn','tail','INSERT\x20INTO\x20ints(i)\x20VALUES\x20(5)','INSERT\x20INTO\x20ints(i)\x20VALUES\x20(7)','dropTable','INSERT\x20INTO\x20ints(i)\x20VALUES\x20(3)','then','queryInterface','prototype','addIndex\x20%s\x20%s\x20%s','voice_queues','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','catch','removeColumn','query','UNSIGNED','enqueue','addIndex','INSERT\x20INTO\x20ints(i)\x20VALUES\x20(2)','Removed\x20column\x20%s\x20from\x20%s','CREATE\x20TABLE\x20ints(i\x20int(11)\x20DEFAULT\x20NULL,UNIQUE\x20KEY\x20i_UNIQUE\x20(i))\x20ENGINE=InnoDB\x20DEFAULT\x20CHARSET=utf8','addColumn','sequence','sequelize','INSERT\x20INTO\x20ints(i)\x20VALUES\x20(6)'];(function(_0x4de272,_0x5200b8){const _0x5e9b6c=function(_0x253e77){while(--_0x253e77){_0x4de272['push'](_0x4de272['shift']());}};_0x5e9b6c(++_0x5200b8);}(a943_0x5200,0x128));const a943_0x5e9b=function(_0x4de272,_0x5200b8){_0x4de272=_0x4de272-0x0;let _0x5e9b6c=a943_0x5200[_0x4de272];return _0x5e9b6c;};const _0xfe1c83=a943_0x5e9b;'use strict';const util=require(_0xfe1c83('0x18')),logger=require(_0xfe1c83('0x7'))(_0xfe1c83('0x4')),Sequence=function(){};Sequence['prototype'][_0xfe1c83('0x2d')]=function(_0x253e77){const _0x1f2818=_0xfe1c83;this[_0x1f2818('0x1e')]=this[_0x1f2818('0x1e')]?this[_0x1f2818('0x1e')][_0x1f2818('0xe')](_0x253e77):_0x253e77();};const Migration=function(_0x4fab56){const _0x4e6101=_0xfe1c83;this[_0x4e6101('0x24')]=_0x4fab56,this[_0x4e6101('0x1')]=new Sequence();};Migration[_0xfe1c83('0x25')]['changeColumn']=function(_0x18c7bc,_0x3d811d,_0x40fc94){const _0x3c9c1c=_0xfe1c83,_0x1fcd66=this;this[_0x3c9c1c('0x1')]['enqueue'](function(){const _0x51c6f6=_0x3c9c1c;return _0x1fcd66['queryInterface'][_0x51c6f6('0x9')](_0x18c7bc,_0x3d811d,_0x40fc94)['then'](function(){const _0x56ab94=_0x51c6f6;logger[_0x56ab94('0x14')](_0x56ab94('0x1b'),_0x3d811d,_0x18c7bc);})['catch'](function(_0x46c781){const _0x438bc6=_0x51c6f6;logger[_0x438bc6('0x14')](JSON[_0x438bc6('0x17')](_0x46c781));});});},Migration[_0xfe1c83('0x25')][_0xfe1c83('0x0')]=function(_0x2c79fe,_0x4b1c9b,_0x271b4f){const _0x1c36b4=_0xfe1c83,_0x238369=this;this['sequence'][_0x1c36b4('0x2d')](function(){const _0xfa84b9=_0x1c36b4;return _0x238369['queryInterface']['addColumn'](_0x2c79fe,_0x4b1c9b,_0x271b4f)['then'](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x4b1c9b,_0x2c79fe);})[_0xfa84b9('0x29')](function(_0x545d0e){const _0x2b2a6f=_0xfa84b9;logger[_0x2b2a6f('0x14')](JSON[_0x2b2a6f('0x17')](_0x545d0e));});});},Migration[_0xfe1c83('0x25')][_0xfe1c83('0x21')]=function(_0x3353f7){const _0x31d77c=_0xfe1c83,_0x3c8fee=this;this[_0x31d77c('0x1')][_0x31d77c('0x2d')](function(){const _0x47304a=_0x31d77c;return _0x3c8fee['queryInterface']['dropTable'](_0x3353f7,{'force':!![]})[_0x47304a('0x23')](function(){const _0x438d65=_0x47304a;logger[_0x438d65('0x14')]('table\x20dropped\x20%s',_0x3353f7);})[_0x47304a('0x29')](function(_0x3b391a){const _0x1f504e=_0x47304a;logger['info'](JSON[_0x1f504e('0x17')](_0x3b391a));});});},Migration[_0xfe1c83('0x25')]['addIndex']=function(_0x29d03d,_0x652641,_0x9f07c0){const _0x5a738c=_0xfe1c83,_0x1be40a=this;this[_0x5a738c('0x1')][_0x5a738c('0x2d')](function(){const _0x5619e8=_0x5a738c;return _0x1be40a[_0x5619e8('0x24')][_0x5619e8('0x2e')](_0x29d03d,_0x652641,{'indexName':_0x9f07c0})[_0x5619e8('0x23')](function(){const _0x10e998=_0x5619e8;logger['info'](_0x10e998('0x26'),_0x29d03d,_0x652641['join'](','),_0x9f07c0);})[_0x5619e8('0x29')](function(_0x22365c){const _0x4a9a50=_0x5619e8;logger[_0x4a9a50('0x14')](JSON['stringify'](_0x22365c));});});},Migration[_0xfe1c83('0x25')]['removeIndex']=function(_0x3c5d7b,_0xb26502){const _0xe3e01f=this;this['sequence']['enqueue'](function(){const _0x50ac28=a943_0x5e9b;return _0xe3e01f[_0x50ac28('0x24')][_0x50ac28('0xb')](_0x3c5d7b,_0xb26502)['then'](function(){const _0x241196=_0x50ac28;logger[_0x241196('0x14')](_0x241196('0x10'),_0x3c5d7b,_0xb26502);})[_0x50ac28('0x29')](function(_0x4182dd){const _0x41b8e8=_0x50ac28;logger[_0x41b8e8('0x14')](JSON['stringify'](_0x4182dd));});});},Migration['prototype']['query']=function(_0x12ab17){const _0x46fbf9=_0xfe1c83,_0x4af0d4=this;this[_0x46fbf9('0x1')]['enqueue'](function(){const _0xb79eee=_0x46fbf9;return _0x4af0d4[_0xb79eee('0x24')][_0xb79eee('0x2')]['query'](_0x12ab17)[_0xb79eee('0x23')](function(){const _0x5d6063=_0xb79eee;logger['info'](_0x5d6063('0xc'),_0x12ab17);})[_0xb79eee('0x29')](function(_0x4d4493){const _0x19fb15=_0xb79eee;logger[_0x19fb15('0x14')](JSON[_0x19fb15('0x17')](_0x4d4493));});});},Migration[_0xfe1c83('0x25')][_0xfe1c83('0x2a')]=function(_0x227305,_0x19fbc3){const _0x41dc0c=_0xfe1c83,_0x2a9687=this;this['sequence'][_0x41dc0c('0x2d')](function(){const _0x341cf3=_0x41dc0c;return _0x2a9687[_0x341cf3('0x24')][_0x341cf3('0x2a')](_0x227305,_0x19fbc3)[_0x341cf3('0x23')](function(){const _0x3f74b4=_0x341cf3;logger['info'](_0x3f74b4('0x30'),_0x19fbc3,_0x227305);})['catch'](function(_0x19dfa2){const _0xbeef30=_0x341cf3;logger['info'](util[_0xbeef30('0x8')](_0x19dfa2,{'showHidden':![],'depth':null}));});});},Migration[_0xfe1c83('0x25')][_0xfe1c83('0x1d')]=function(_0x43211b,_0x3b8cca,_0x223484){const _0x37fb1a=_0xfe1c83,_0x307845=this;this[_0x37fb1a('0x1')][_0x37fb1a('0x2d')](function(){const _0x10c68c=_0x37fb1a;return _0x307845['queryInterface']['renameColumn'](_0x43211b,_0x3b8cca,_0x223484)['then'](function(){const _0x4844c2=a943_0x5e9b;logger[_0x4844c2('0x14')](_0x4844c2('0x28'),_0x3b8cca,_0x223484,_0x43211b);})[_0x10c68c('0x29')](function(_0x3e565b){const _0x11ad7f=_0x10c68c;logger[_0x11ad7f('0x14')](util['inspect'](_0x3e565b,{'showHidden':![],'depth':null}));});});},Migration[_0xfe1c83('0x25')][_0xfe1c83('0x1c')]=function(_0x2248f7){const _0x1014f0=_0xfe1c83;this[_0x1014f0('0x1')]['enqueue'](function(){return _0x2248f7();});},module[_0xfe1c83('0x16')]={'up':function(_0xe08599,_0x139df7){return new Promise(function(_0xe93188){const _0x4a292b=a943_0x5e9b,_0x1db0ec=new Migration(_0xe08599);_0x1db0ec[_0x4a292b('0x0')](_0x4a292b('0x27'),_0x4a292b('0x1a'),{'type':_0x139df7['INTEGER'](0x3)['UNSIGNED'],'defaultValue':0x0}),_0x1db0ec['addColumn'](_0x4a292b('0x27'),_0x4a292b('0x11'),{'type':_0x139df7['INTEGER'](0x3)[_0x4a292b('0x2c')],'defaultValue':0x0}),_0x1db0ec['addColumn']('campaigns',_0x4a292b('0x1a'),{'type':_0x139df7['INTEGER'](0x3)[_0x4a292b('0x2c')],'defaultValue':0x0}),_0x1db0ec['addColumn']('campaigns','dialCutDigit',{'type':_0x139df7[_0x4a292b('0xa')](0x3)[_0x4a292b('0x2c')],'defaultValue':0x0}),_0x1db0ec['addColumn'](_0x4a292b('0x6'),_0x4a292b('0x12'),{'type':_0x139df7[_0x4a292b('0xd')]}),_0x1db0ec[_0x4a292b('0x2b')](_0x4a292b('0xf')),_0x1db0ec[_0x4a292b('0x2b')](_0x4a292b('0x15')),_0x1db0ec[_0x4a292b('0x2b')](_0x4a292b('0x31')),_0x1db0ec[_0x4a292b('0x2b')]('INSERT\x20INTO\x20ints(i)\x20VALUES\x20(0)'),_0x1db0ec[_0x4a292b('0x2b')]('INSERT\x20INTO\x20ints(i)\x20VALUES\x20(1)'),_0x1db0ec[_0x4a292b('0x2b')](_0x4a292b('0x2f')),_0x1db0ec[_0x4a292b('0x2b')](_0x4a292b('0x22')),_0x1db0ec[_0x4a292b('0x2b')](_0x4a292b('0x13')),_0x1db0ec[_0x4a292b('0x2b')](_0x4a292b('0x1f')),_0x1db0ec[_0x4a292b('0x2b')](_0x4a292b('0x3')),_0x1db0ec[_0x4a292b('0x2b')](_0x4a292b('0x20')),_0x1db0ec['query']('INSERT\x20INTO\x20ints(i)\x20VALUES\x20(8)'),_0x1db0ec[_0x4a292b('0x2b')]('INSERT\x20INTO\x20ints(i)\x20VALUES\x20(9)'),_0x1db0ec[_0x4a292b('0x2b')](_0x4a292b('0x19')),_0x1db0ec[_0x4a292b('0x2b')](_0x4a292b('0x5')),_0x1db0ec[_0x4a292b('0x2b')]('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;'),_0x1db0ec[_0x4a292b('0x1c')](_0xe93188);});},'down':function(){}}; \ No newline at end of file +const a1105_0x30b3=['then','removeIndex\x20%s\x20%s','UNSIGNED','INSERT\x20INTO\x20ints(i)\x20VALUES\x20(7)','INSERT\x20INTO\x20ints(i)\x20VALUES\x20(0)','CREATE\x20TABLE\x20ints(i\x20int(11)\x20DEFAULT\x20NULL,UNIQUE\x20KEY\x20i_UNIQUE\x20(i))\x20ENGINE=InnoDB\x20DEFAULT\x20CHARSET=utf8','dropTable','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','join','stringify','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;','Removed\x20column\x20%s\x20from\x20%s','addIndex\x20%s\x20%s\x20%s','migration','query','changeColumn','renameColumn','cm_contacts','teams','catch','voice_queues','INTEGER','Changed\x20column\x20%s\x20in\x20table\x20%s','finally','removeIndex','INSERT\x20INTO\x20ints(i)\x20VALUES\x20(1)','sequence','removeColumn','enqueue','inspect','exports','INSERT\x20INTO\x20ints(i)\x20VALUES\x20(4)','info','sequelize','prototype','query\x20%s','../config/logger','tail','STRING','table\x20dropped\x20%s','addIndex','INSERT\x20INTO\x20ints(i)\x20VALUES\x20(3)','queryInterface','addColumn','dialCutDigit','INSERT\x20INTO\x20ints(i)\x20VALUES\x20(6)','util','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(5)','Added\x20column\x20%s\x20to\x20%s','campaigns','dialRandomLastDigitCallerIdNumber','INSERT\x20INTO\x20ints(i)\x20VALUES\x20(8)','final'];(function(_0xdd4af2,_0x1bb5d5){const _0x30b3ae=function(_0x333774){while(--_0x333774){_0xdd4af2['push'](_0xdd4af2['shift']());}};_0x30b3ae(++_0x1bb5d5);}(a1105_0x30b3,0x9b));const a1105_0x3337=function(_0xdd4af2,_0x1bb5d5){_0xdd4af2=_0xdd4af2-0x1c7;let _0x30b3ae=a1105_0x30b3[_0xdd4af2];return _0x30b3ae;};const a1105_0x4134cf=a1105_0x3337;'use strict';const util=require(a1105_0x4134cf(0x1fc)),logger=require(a1105_0x4134cf(0x1f2))(a1105_0x4134cf(0x1db)),Sequence=function(){};Sequence[a1105_0x4134cf(0x1f0)][a1105_0x4134cf(0x1ea)]=function(_0x439e96){const _0x1e5a8d=a1105_0x4134cf;this['tail']=this['tail']?this[_0x1e5a8d(0x1f3)][_0x1e5a8d(0x1e5)](_0x439e96):_0x439e96();};const Migration=function(_0x3060ce){const _0x294495=a1105_0x4134cf;this[_0x294495(0x1f8)]=_0x3060ce,this[_0x294495(0x1e8)]=new Sequence();};Migration[a1105_0x4134cf(0x1f0)]['changeColumn']=function(_0x47a0d6,_0x1b9625,_0x556407){const _0x55ecfa=a1105_0x4134cf,_0x283901=this;this['sequence'][_0x55ecfa(0x1ea)](function(){const _0x5b0e54=_0x55ecfa;return _0x283901[_0x5b0e54(0x1f8)][_0x5b0e54(0x1dd)](_0x47a0d6,_0x1b9625,_0x556407)[_0x5b0e54(0x1ce)](function(){const _0x34edd1=_0x5b0e54;logger[_0x34edd1(0x1ee)](_0x34edd1(0x1e4),_0x1b9625,_0x47a0d6);})[_0x5b0e54(0x1e1)](function(_0x402d6d){logger['info'](JSON['stringify'](_0x402d6d));});});},Migration[a1105_0x4134cf(0x1f0)]['addColumn']=function(_0x424389,_0xfbdbee,_0x4f3fd8){const _0x95572f=a1105_0x4134cf,_0x596880=this;this[_0x95572f(0x1e8)][_0x95572f(0x1ea)](function(){const _0x3c42c5=_0x95572f;return _0x596880['queryInterface']['addColumn'](_0x424389,_0xfbdbee,_0x4f3fd8)[_0x3c42c5(0x1ce)](function(){const _0xa078db=_0x3c42c5;logger[_0xa078db(0x1ee)](_0xa078db(0x1c9),_0xfbdbee,_0x424389);})[_0x3c42c5(0x1e1)](function(_0x199eeb){const _0x54b88a=_0x3c42c5;logger[_0x54b88a(0x1ee)](JSON[_0x54b88a(0x1d7)](_0x199eeb));});});},Migration[a1105_0x4134cf(0x1f0)][a1105_0x4134cf(0x1d4)]=function(_0x51a53c){const _0x1f9849=a1105_0x4134cf,_0x578f8e=this;this[_0x1f9849(0x1e8)]['enqueue'](function(){const _0x5e02a8=_0x1f9849;return _0x578f8e[_0x5e02a8(0x1f8)]['dropTable'](_0x51a53c,{'force':!![]})['then'](function(){const _0x39f312=_0x5e02a8;logger[_0x39f312(0x1ee)](_0x39f312(0x1f5),_0x51a53c);})[_0x5e02a8(0x1e1)](function(_0x1961f3){const _0xfea53e=_0x5e02a8;logger[_0xfea53e(0x1ee)](JSON[_0xfea53e(0x1d7)](_0x1961f3));});});},Migration[a1105_0x4134cf(0x1f0)][a1105_0x4134cf(0x1f6)]=function(_0x30e362,_0x3be410,_0x37870e){const _0x237a08=a1105_0x4134cf,_0x13ae2c=this;this[_0x237a08(0x1e8)][_0x237a08(0x1ea)](function(){const _0x296a49=_0x237a08;return _0x13ae2c[_0x296a49(0x1f8)][_0x296a49(0x1f6)](_0x30e362,_0x3be410,{'indexName':_0x37870e})['then'](function(){const _0x4c3948=_0x296a49;logger['info'](_0x4c3948(0x1da),_0x30e362,_0x3be410[_0x4c3948(0x1d6)](','),_0x37870e);})['catch'](function(_0x102aeb){const _0x15e631=_0x296a49;logger['info'](JSON[_0x15e631(0x1d7)](_0x102aeb));});});},Migration[a1105_0x4134cf(0x1f0)][a1105_0x4134cf(0x1e6)]=function(_0x5043ba,_0x1204e4){const _0x11e436=a1105_0x4134cf,_0x286037=this;this[_0x11e436(0x1e8)][_0x11e436(0x1ea)](function(){const _0x5a4469=_0x11e436;return _0x286037[_0x5a4469(0x1f8)][_0x5a4469(0x1e6)](_0x5043ba,_0x1204e4)[_0x5a4469(0x1ce)](function(){const _0x5ef9e=_0x5a4469;logger[_0x5ef9e(0x1ee)](_0x5ef9e(0x1cf),_0x5043ba,_0x1204e4);})[_0x5a4469(0x1e1)](function(_0x5352b3){const _0x8f7243=_0x5a4469;logger[_0x8f7243(0x1ee)](JSON['stringify'](_0x5352b3));});});},Migration[a1105_0x4134cf(0x1f0)][a1105_0x4134cf(0x1dc)]=function(_0x4f2ead){const _0x23434a=a1105_0x4134cf,_0x2b2ff0=this;this[_0x23434a(0x1e8)][_0x23434a(0x1ea)](function(){const _0x1ef557=_0x23434a;return _0x2b2ff0['queryInterface'][_0x1ef557(0x1ef)][_0x1ef557(0x1dc)](_0x4f2ead)[_0x1ef557(0x1ce)](function(){const _0x3cc3c0=_0x1ef557;logger[_0x3cc3c0(0x1ee)](_0x3cc3c0(0x1f1),_0x4f2ead);})[_0x1ef557(0x1e1)](function(_0x34a3fa){const _0x54e633=_0x1ef557;logger[_0x54e633(0x1ee)](JSON[_0x54e633(0x1d7)](_0x34a3fa));});});},Migration[a1105_0x4134cf(0x1f0)][a1105_0x4134cf(0x1e9)]=function(_0xac07f4,_0x23c358){const _0x12fae1=a1105_0x4134cf,_0x5639d2=this;this['sequence'][_0x12fae1(0x1ea)](function(){const _0xf0950a=_0x12fae1;return _0x5639d2[_0xf0950a(0x1f8)][_0xf0950a(0x1e9)](_0xac07f4,_0x23c358)[_0xf0950a(0x1ce)](function(){const _0x2f0965=_0xf0950a;logger[_0x2f0965(0x1ee)](_0x2f0965(0x1d9),_0x23c358,_0xac07f4);})[_0xf0950a(0x1e1)](function(_0x49c0b5){const _0x25f287=_0xf0950a;logger[_0x25f287(0x1ee)](util[_0x25f287(0x1eb)](_0x49c0b5,{'showHidden':![],'depth':null}));});});},Migration[a1105_0x4134cf(0x1f0)]['renameColumn']=function(_0x48f728,_0x10add6,_0x2cd435){const _0x3a7c88=a1105_0x4134cf,_0x3baa3c=this;this[_0x3a7c88(0x1e8)][_0x3a7c88(0x1ea)](function(){const _0x55b34a=_0x3a7c88;return _0x3baa3c['queryInterface'][_0x55b34a(0x1de)](_0x48f728,_0x10add6,_0x2cd435)[_0x55b34a(0x1ce)](function(){const _0x4cb456=_0x55b34a;logger[_0x4cb456(0x1ee)](_0x4cb456(0x1d5),_0x10add6,_0x2cd435,_0x48f728);})['catch'](function(_0x106701){const _0x3d8084=_0x55b34a;logger[_0x3d8084(0x1ee)](util[_0x3d8084(0x1eb)](_0x106701,{'showHidden':![],'depth':null}));});});},Migration[a1105_0x4134cf(0x1f0)][a1105_0x4134cf(0x1cd)]=function(_0x3db156){const _0x388828=a1105_0x4134cf;this[_0x388828(0x1e8)][_0x388828(0x1ea)](function(){return _0x3db156();});},module[a1105_0x4134cf(0x1ec)]={'up':function(_0x1706c1,_0x5036df){return new Promise(function(_0x398b24){const _0x36cc8f=a1105_0x3337,_0x57d37b=new Migration(_0x1706c1);_0x57d37b[_0x36cc8f(0x1f9)](_0x36cc8f(0x1e2),_0x36cc8f(0x1cb),{'type':_0x5036df[_0x36cc8f(0x1e3)](0x3)[_0x36cc8f(0x1d0)],'defaultValue':0x0}),_0x57d37b[_0x36cc8f(0x1f9)](_0x36cc8f(0x1e2),_0x36cc8f(0x1fa),{'type':_0x5036df['INTEGER'](0x3)['UNSIGNED'],'defaultValue':0x0}),_0x57d37b[_0x36cc8f(0x1f9)](_0x36cc8f(0x1ca),_0x36cc8f(0x1cb),{'type':_0x5036df[_0x36cc8f(0x1e3)](0x3)[_0x36cc8f(0x1d0)],'defaultValue':0x0}),_0x57d37b[_0x36cc8f(0x1f9)](_0x36cc8f(0x1ca),'dialCutDigit',{'type':_0x5036df[_0x36cc8f(0x1e3)](0x3)[_0x36cc8f(0x1d0)],'defaultValue':0x0}),_0x57d37b[_0x36cc8f(0x1f9)](_0x36cc8f(0x1df),_0x36cc8f(0x1e0),{'type':_0x5036df[_0x36cc8f(0x1f4)]}),_0x57d37b[_0x36cc8f(0x1dc)](_0x36cc8f(0x1c7)),_0x57d37b[_0x36cc8f(0x1dc)]('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;'),_0x57d37b[_0x36cc8f(0x1dc)](_0x36cc8f(0x1d3)),_0x57d37b['query'](_0x36cc8f(0x1d2)),_0x57d37b[_0x36cc8f(0x1dc)](_0x36cc8f(0x1e7)),_0x57d37b[_0x36cc8f(0x1dc)]('INSERT\x20INTO\x20ints(i)\x20VALUES\x20(2)'),_0x57d37b[_0x36cc8f(0x1dc)](_0x36cc8f(0x1f7)),_0x57d37b[_0x36cc8f(0x1dc)](_0x36cc8f(0x1ed)),_0x57d37b[_0x36cc8f(0x1dc)](_0x36cc8f(0x1c8)),_0x57d37b[_0x36cc8f(0x1dc)](_0x36cc8f(0x1fb)),_0x57d37b['query'](_0x36cc8f(0x1d1)),_0x57d37b[_0x36cc8f(0x1dc)](_0x36cc8f(0x1cc)),_0x57d37b[_0x36cc8f(0x1dc)]('INSERT\x20INTO\x20ints(i)\x20VALUES\x20(9)'),_0x57d37b[_0x36cc8f(0x1dc)]('ALTER\x20TABLE\x20tmp_tools_tags\x20ADD\x20COLUMN\x20contact_id\x20INT\x20NULL'),_0x57d37b['query'](_0x36cc8f(0x1d8)),_0x57d37b[_0x36cc8f(0x1dc)]('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;'),_0x57d37b['final'](_0x398b24);});},'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 eb4cd1c..b1022bb 100644 --- a/server/migrations/2.0.66.js +++ b/server/migrations/2.0.66.js @@ -1 +1 @@ -const a944_0xe59b=['Changed\x20column\x20%s\x20in\x20table\x20%s','queueTransferTimeout','TEXT','inspect','final','tools_schedules','long','splitSizeCsv','Removed\x20column\x20%s\x20from\x20%s','analytics_report_fields','table\x20dropped\x20%s','\x20CHARSET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci','agentTransferTimeout','Added\x20column\x20%s\x20to\x20%s','catch','bcc','changeColumn','INTEGER','../config/logger','info','addIndex\x20%s\x20%s\x20%s','settings','enqueue','dropTable','agentTransfer','mail_interactions','users','sequelize','finally','sequence','field','BOOLEAN','util','mail_accounts','removeColumn','migration','queryInterface','removeIndex','removeIndex\x20%s\x20%s','query\x20%s','addColumn','STRING','tail','split','query','splitSizeXlsx','stringify','viber','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','lastMsgBody','prototype','join','then','renameColumn'];(function(_0x3445fb,_0xe59b2){const _0x7ed014=function(_0x2ac2b6){while(--_0x2ac2b6){_0x3445fb['push'](_0x3445fb['shift']());}};_0x7ed014(++_0xe59b2);}(a944_0xe59b,0x11a));const a944_0x7ed0=function(_0x3445fb,_0xe59b2){_0x3445fb=_0x3445fb-0x0;let _0x7ed014=a944_0xe59b[_0x3445fb];return _0x7ed014;};const _0x104149=a944_0x7ed0;'use strict';const util=require(_0x104149('0x14')),logger=require(_0x104149('0x6'))(_0x104149('0x17')),Sequence=function(){};Sequence[_0x104149('0x26')][_0x104149('0xa')]=function(_0x2ac2b6){const _0x55fa11=_0x104149;this[_0x55fa11('0x1e')]=this[_0x55fa11('0x1e')]?this[_0x55fa11('0x1e')][_0x55fa11('0x10')](_0x2ac2b6):_0x2ac2b6();};const Migration=function(_0x41e4db){const _0x86940=_0x104149;this[_0x86940('0x18')]=_0x41e4db,this['sequence']=new Sequence();};Migration[_0x104149('0x26')][_0x104149('0x4')]=function(_0x89f981,_0x307624,_0x3f9d92){const _0x152b15=_0x104149,_0x45011c=this;this[_0x152b15('0x11')]['enqueue'](function(){const _0x208904=_0x152b15;return _0x45011c[_0x208904('0x18')]['changeColumn'](_0x89f981,_0x307624,_0x3f9d92)['then'](function(){const _0x1ed3dd=_0x208904;logger[_0x1ed3dd('0x7')](_0x1ed3dd('0x2a'),_0x307624,_0x89f981);})[_0x208904('0x2')](function(_0x395051){const _0x4e8222=_0x208904;logger[_0x4e8222('0x7')](JSON[_0x4e8222('0x22')](_0x395051));});});},Migration['prototype'][_0x104149('0x1c')]=function(_0x5cc61f,_0x3e9b23,_0x2ce005){const _0x2acbe4=_0x104149,_0x194cbc=this;this[_0x2acbe4('0x11')][_0x2acbe4('0xa')](function(){const _0x133843=_0x2acbe4;return _0x194cbc[_0x133843('0x18')][_0x133843('0x1c')](_0x5cc61f,_0x3e9b23,_0x2ce005)[_0x133843('0x28')](function(){const _0x1822b9=_0x133843;logger[_0x1822b9('0x7')](_0x1822b9('0x1'),_0x3e9b23,_0x5cc61f);})[_0x133843('0x2')](function(_0x140e30){const _0x278384=_0x133843;logger[_0x278384('0x7')](JSON[_0x278384('0x22')](_0x140e30));});});},Migration[_0x104149('0x26')][_0x104149('0xb')]=function(_0x5c8c6f){const _0x121ae7=_0x104149,_0x290f83=this;this['sequence'][_0x121ae7('0xa')](function(){const _0x270273=_0x121ae7;return _0x290f83[_0x270273('0x18')][_0x270273('0xb')](_0x5c8c6f,{'force':!![]})[_0x270273('0x28')](function(){const _0x339045=_0x270273;logger[_0x339045('0x7')](_0x339045('0x34'),_0x5c8c6f);})[_0x270273('0x2')](function(_0x364a16){logger['info'](JSON['stringify'](_0x364a16));});});},Migration[_0x104149('0x26')]['addIndex']=function(_0x301806,_0x1a8b69,_0x7c366b){const _0x11bcb0=_0x104149,_0x5617a3=this;this[_0x11bcb0('0x11')][_0x11bcb0('0xa')](function(){const _0x24dfed=_0x11bcb0;return _0x5617a3[_0x24dfed('0x18')]['addIndex'](_0x301806,_0x1a8b69,{'indexName':_0x7c366b})[_0x24dfed('0x28')](function(){const _0x56114d=_0x24dfed;logger['info'](_0x56114d('0x8'),_0x301806,_0x1a8b69[_0x56114d('0x27')](','),_0x7c366b);})[_0x24dfed('0x2')](function(_0x3c13f6){const _0x5b7054=_0x24dfed;logger['info'](JSON[_0x5b7054('0x22')](_0x3c13f6));});});},Migration[_0x104149('0x26')][_0x104149('0x19')]=function(_0x419b51,_0x2a6609){const _0x44e7a1=_0x104149,_0x53bc07=this;this[_0x44e7a1('0x11')][_0x44e7a1('0xa')](function(){const _0x421226=_0x44e7a1;return _0x53bc07[_0x421226('0x18')]['removeIndex'](_0x419b51,_0x2a6609)['then'](function(){const _0x344eb2=_0x421226;logger['info'](_0x344eb2('0x1a'),_0x419b51,_0x2a6609);})[_0x421226('0x2')](function(_0x5ed744){const _0x46dda6=_0x421226;logger[_0x46dda6('0x7')](JSON[_0x46dda6('0x22')](_0x5ed744));});});},Migration[_0x104149('0x26')][_0x104149('0x20')]=function(_0x3c5e3d){const _0xa9ef47=_0x104149,_0x2f6b02=this;this['sequence'][_0xa9ef47('0xa')](function(){const _0x49f347=_0xa9ef47;return _0x2f6b02['queryInterface'][_0x49f347('0xf')][_0x49f347('0x20')](_0x3c5e3d)[_0x49f347('0x28')](function(){const _0x5bcaf3=_0x49f347;logger['info'](_0x5bcaf3('0x1b'),_0x3c5e3d);})[_0x49f347('0x2')](function(_0x43010f){const _0x44aace=_0x49f347;logger[_0x44aace('0x7')](JSON['stringify'](_0x43010f));});});},Migration[_0x104149('0x26')]['removeColumn']=function(_0xcee578,_0x1c6697){const _0x22a1d0=_0x104149,_0x47677c=this;this[_0x22a1d0('0x11')][_0x22a1d0('0xa')](function(){const _0x51f0d6=_0x22a1d0;return _0x47677c['queryInterface'][_0x51f0d6('0x16')](_0xcee578,_0x1c6697)[_0x51f0d6('0x28')](function(){const _0x47c933=_0x51f0d6;logger[_0x47c933('0x7')](_0x47c933('0x32'),_0x1c6697,_0xcee578);})[_0x51f0d6('0x2')](function(_0x204e14){const _0x3f2a7b=_0x51f0d6;logger[_0x3f2a7b('0x7')](util['inspect'](_0x204e14,{'showHidden':![],'depth':null}));});});},Migration[_0x104149('0x26')]['renameColumn']=function(_0x2646f6,_0x115aa4,_0x337c07){const _0x3c9e2c=_0x104149,_0x4dfba2=this;this[_0x3c9e2c('0x11')][_0x3c9e2c('0xa')](function(){const _0x6c8b3a=_0x3c9e2c;return _0x4dfba2[_0x6c8b3a('0x18')][_0x6c8b3a('0x29')](_0x2646f6,_0x115aa4,_0x337c07)[_0x6c8b3a('0x28')](function(){const _0x34f198=_0x6c8b3a;logger['info'](_0x34f198('0x24'),_0x115aa4,_0x337c07,_0x2646f6);})[_0x6c8b3a('0x2')](function(_0x4fc0af){const _0x379ad8=_0x6c8b3a;logger[_0x379ad8('0x7')](util[_0x379ad8('0x2d')](_0x4fc0af,{'showHidden':![],'depth':null}));});});},Migration[_0x104149('0x26')][_0x104149('0x2e')]=function(_0x1a60c2){const _0x348c80=_0x104149;this[_0x348c80('0x11')]['enqueue'](function(){return _0x1a60c2();});},module['exports']={'up':function(_0x33c045,_0x13dc3c){return new Promise(function(_0x4a8256){const _0x4f53a4=a944_0x7ed0,_0x551208=new Migration(_0x33c045);_0x551208[_0x4f53a4('0x4')](_0x4f53a4('0x33'),_0x4f53a4('0x12'),{'type':_0x13dc3c['TEXT']}),_0x551208['addColumn'](_0x4f53a4('0x2f'),'cc',{'type':_0x13dc3c[_0x4f53a4('0x2c')]}),_0x551208[_0x4f53a4('0x1c')]('tools_schedules',_0x4f53a4('0x3'),{'type':_0x13dc3c[_0x4f53a4('0x2c')]}),_0x551208[_0x4f53a4('0x1c')]('settings',_0x4f53a4('0x1f'),{'type':_0x13dc3c[_0x4f53a4('0x13')],'defaultValue':!![]}),_0x551208[_0x4f53a4('0x1c')](_0x4f53a4('0x9'),_0x4f53a4('0x31'),{'type':_0x13dc3c[_0x4f53a4('0x5')],'defaultValue':0x1388}),_0x551208[_0x4f53a4('0x1c')](_0x4f53a4('0x9'),'splitSizePdf',{'type':_0x13dc3c[_0x4f53a4('0x5')],'defaultValue':0x3e8}),_0x551208[_0x4f53a4('0x1c')](_0x4f53a4('0x9'),_0x4f53a4('0x21'),{'type':_0x13dc3c['INTEGER'],'defaultValue':0x1388}),_0x551208['addColumn'](_0x4f53a4('0x15'),'queueTransfer',{'type':_0x13dc3c[_0x4f53a4('0x13')],'defaultValue':![]}),_0x551208['addColumn'](_0x4f53a4('0x15'),_0x4f53a4('0x2b'),{'type':_0x13dc3c['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c}),_0x551208[_0x4f53a4('0x1c')]('mail_accounts',_0x4f53a4('0xc'),{'type':_0x13dc3c[_0x4f53a4('0x13')],'defaultValue':![]}),_0x551208[_0x4f53a4('0x1c')](_0x4f53a4('0x15'),_0x4f53a4('0x0'),{'type':_0x13dc3c[_0x4f53a4('0x5')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c}),_0x551208[_0x4f53a4('0x1c')](_0x4f53a4('0xe'),'phoneBarPrefixRequired',{'type':_0x13dc3c[_0x4f53a4('0x13')],'defaultValue':![]}),_0x551208['changeColumn'](_0x4f53a4('0xd'),'subject',{'type':_0x13dc3c['TEXT']('')+_0x4f53a4('0x35')}),_0x551208[_0x4f53a4('0x4')](_0x4f53a4('0xd'),_0x4f53a4('0x25'),{'type':_0x13dc3c[_0x4f53a4('0x2c')](_0x4f53a4('0x30'))+_0x4f53a4('0x35')}),_0x551208[_0x4f53a4('0x1c')]('cm_contacts',_0x4f53a4('0x23'),{'type':_0x13dc3c[_0x4f53a4('0x1d')]}),_0x551208['final'](_0x4a8256);});},'down':function(){}}; \ No newline at end of file +const a1106_0x24e6=['addIndex','removeIndex','TEXT','renameColumn','settings','long','removeColumn','migration','queueTransferTimeout','Changed\x20column\x20%s\x20in\x20table\x20%s','bcc','prototype','tail','catch','sequelize','\x20CHARSET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci','changeColumn','addColumn','finally','queueTransfer','agentTransferTimeout','split','queryInterface','final','phoneBarPrefixRequired','util','addIndex\x20%s\x20%s\x20%s','Added\x20column\x20%s\x20to\x20%s','mail_interactions','join','BOOLEAN','STRING','query\x20%s','viber','tools_schedules','stringify','field','splitSizePdf','sequence','query','then','enqueue','table\x20dropped\x20%s','info','analytics_report_fields','exports','users','INTEGER','lastMsgBody','dropTable','splitSizeCsv','mail_accounts'];(function(_0x34cdab,_0x59c777){const _0x24e616=function(_0x184ab0){while(--_0x184ab0){_0x34cdab['push'](_0x34cdab['shift']());}};_0x24e616(++_0x59c777);}(a1106_0x24e6,0x109));const a1106_0x184a=function(_0x34cdab,_0x59c777){_0x34cdab=_0x34cdab-0x1bc;let _0x24e616=a1106_0x24e6[_0x34cdab];return _0x24e616;};const a1106_0x5ce72e=a1106_0x184a;'use strict';const util=require(a1106_0x5ce72e(0x1d0)),logger=require('../config/logger')(a1106_0x5ce72e(0x1be)),Sequence=function(){};Sequence[a1106_0x5ce72e(0x1c2)]['enqueue']=function(_0x14060f){const _0x5e9d63=a1106_0x5ce72e;this[_0x5e9d63(0x1c3)]=this['tail']?this[_0x5e9d63(0x1c3)][_0x5e9d63(0x1c9)](_0x14060f):_0x14060f();};const Migration=function(_0x55167f){const _0x24563e=a1106_0x5ce72e;this['queryInterface']=_0x55167f,this[_0x24563e(0x1dd)]=new Sequence();};Migration[a1106_0x5ce72e(0x1c2)][a1106_0x5ce72e(0x1c7)]=function(_0x4cffdd,_0x16c549,_0x49f774){const _0x78dccc=a1106_0x5ce72e,_0x3c9a49=this;this[_0x78dccc(0x1dd)]['enqueue'](function(){const _0x3a9b77=_0x78dccc;return _0x3c9a49[_0x3a9b77(0x1cd)][_0x3a9b77(0x1c7)](_0x4cffdd,_0x16c549,_0x49f774)[_0x3a9b77(0x1df)](function(){const _0x15d855=_0x3a9b77;logger['info'](_0x15d855(0x1c0),_0x16c549,_0x4cffdd);})[_0x3a9b77(0x1c4)](function(_0x3f2be1){const _0x490853=_0x3a9b77;logger[_0x490853(0x1e2)](JSON['stringify'](_0x3f2be1));});});},Migration[a1106_0x5ce72e(0x1c2)][a1106_0x5ce72e(0x1c8)]=function(_0x410547,_0x415eca,_0x1d0661){const _0x871c57=a1106_0x5ce72e,_0x2c77f4=this;this[_0x871c57(0x1dd)][_0x871c57(0x1e0)](function(){const _0x12d295=_0x871c57;return _0x2c77f4[_0x12d295(0x1cd)][_0x12d295(0x1c8)](_0x410547,_0x415eca,_0x1d0661)[_0x12d295(0x1df)](function(){const _0x52e0ac=_0x12d295;logger['info'](_0x52e0ac(0x1d2),_0x415eca,_0x410547);})[_0x12d295(0x1c4)](function(_0x295c8f){const _0x3cd2ba=_0x12d295;logger[_0x3cd2ba(0x1e2)](JSON[_0x3cd2ba(0x1da)](_0x295c8f));});});},Migration[a1106_0x5ce72e(0x1c2)]['dropTable']=function(_0x4b196a){const _0x388e8f=a1106_0x5ce72e,_0x40de91=this;this[_0x388e8f(0x1dd)]['enqueue'](function(){const _0x1c9960=_0x388e8f;return _0x40de91[_0x1c9960(0x1cd)][_0x1c9960(0x1e8)](_0x4b196a,{'force':!![]})['then'](function(){const _0x7eb66c=_0x1c9960;logger[_0x7eb66c(0x1e2)](_0x7eb66c(0x1e1),_0x4b196a);})[_0x1c9960(0x1c4)](function(_0x57830c){const _0x5cdfc6=_0x1c9960;logger[_0x5cdfc6(0x1e2)](JSON[_0x5cdfc6(0x1da)](_0x57830c));});});},Migration[a1106_0x5ce72e(0x1c2)][a1106_0x5ce72e(0x1eb)]=function(_0x39d79e,_0x4114b8,_0x2084a9){const _0x326052=a1106_0x5ce72e,_0x4812e3=this;this[_0x326052(0x1dd)][_0x326052(0x1e0)](function(){const _0x4b8506=_0x326052;return _0x4812e3[_0x4b8506(0x1cd)][_0x4b8506(0x1eb)](_0x39d79e,_0x4114b8,{'indexName':_0x2084a9})[_0x4b8506(0x1df)](function(){const _0xb25887=_0x4b8506;logger[_0xb25887(0x1e2)](_0xb25887(0x1d1),_0x39d79e,_0x4114b8[_0xb25887(0x1d4)](','),_0x2084a9);})[_0x4b8506(0x1c4)](function(_0x45d710){const _0x42416c=_0x4b8506;logger['info'](JSON[_0x42416c(0x1da)](_0x45d710));});});},Migration[a1106_0x5ce72e(0x1c2)]['removeIndex']=function(_0x3765bf,_0x437347){const _0x154b57=a1106_0x5ce72e,_0x363881=this;this[_0x154b57(0x1dd)][_0x154b57(0x1e0)](function(){const _0x263f8f=_0x154b57;return _0x363881[_0x263f8f(0x1cd)][_0x263f8f(0x1ec)](_0x3765bf,_0x437347)['then'](function(){const _0x291c46=_0x263f8f;logger[_0x291c46(0x1e2)]('removeIndex\x20%s\x20%s',_0x3765bf,_0x437347);})['catch'](function(_0x5eea3e){const _0x3ac39e=_0x263f8f;logger['info'](JSON[_0x3ac39e(0x1da)](_0x5eea3e));});});},Migration['prototype'][a1106_0x5ce72e(0x1de)]=function(_0x17f7d0){const _0x1ee9c9=a1106_0x5ce72e,_0x3eadc2=this;this[_0x1ee9c9(0x1dd)][_0x1ee9c9(0x1e0)](function(){const _0x32ba4f=_0x1ee9c9;return _0x3eadc2[_0x32ba4f(0x1cd)][_0x32ba4f(0x1c5)]['query'](_0x17f7d0)['then'](function(){const _0x18798f=_0x32ba4f;logger[_0x18798f(0x1e2)](_0x18798f(0x1d7),_0x17f7d0);})[_0x32ba4f(0x1c4)](function(_0x5e1c7b){const _0x60ce2b=_0x32ba4f;logger['info'](JSON[_0x60ce2b(0x1da)](_0x5e1c7b));});});},Migration['prototype'][a1106_0x5ce72e(0x1bd)]=function(_0x48b058,_0x479908){const _0x696795=a1106_0x5ce72e,_0x1cc9e3=this;this[_0x696795(0x1dd)][_0x696795(0x1e0)](function(){const _0x1b8285=_0x696795;return _0x1cc9e3[_0x1b8285(0x1cd)]['removeColumn'](_0x48b058,_0x479908)[_0x1b8285(0x1df)](function(){logger['info']('Removed\x20column\x20%s\x20from\x20%s',_0x479908,_0x48b058);})[_0x1b8285(0x1c4)](function(_0x6becdc){const _0x182e63=_0x1b8285;logger[_0x182e63(0x1e2)](util['inspect'](_0x6becdc,{'showHidden':![],'depth':null}));});});},Migration['prototype']['renameColumn']=function(_0x178a1d,_0x334303,_0x55f2d4){const _0x369806=a1106_0x5ce72e,_0x566101=this;this[_0x369806(0x1dd)][_0x369806(0x1e0)](function(){const _0x5d5b7e=_0x369806;return _0x566101['queryInterface'][_0x5d5b7e(0x1ee)](_0x178a1d,_0x334303,_0x55f2d4)[_0x5d5b7e(0x1df)](function(){logger['info']('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x334303,_0x55f2d4,_0x178a1d);})['catch'](function(_0x4be0af){logger['info'](util['inspect'](_0x4be0af,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1106_0x5ce72e(0x1ce)]=function(_0x1df6f7){const _0x4d8704=a1106_0x5ce72e;this[_0x4d8704(0x1dd)][_0x4d8704(0x1e0)](function(){return _0x1df6f7();});},module[a1106_0x5ce72e(0x1e4)]={'up':function(_0x36649c,_0xd1a2f1){return new Promise(function(_0x3e8ab4){const _0x21c226=a1106_0x184a,_0x4f8915=new Migration(_0x36649c);_0x4f8915[_0x21c226(0x1c7)](_0x21c226(0x1e3),_0x21c226(0x1db),{'type':_0xd1a2f1[_0x21c226(0x1ed)]}),_0x4f8915[_0x21c226(0x1c8)](_0x21c226(0x1d9),'cc',{'type':_0xd1a2f1['TEXT']}),_0x4f8915['addColumn'](_0x21c226(0x1d9),_0x21c226(0x1c1),{'type':_0xd1a2f1[_0x21c226(0x1ed)]}),_0x4f8915['addColumn'](_0x21c226(0x1ef),_0x21c226(0x1cc),{'type':_0xd1a2f1[_0x21c226(0x1d5)],'defaultValue':!![]}),_0x4f8915[_0x21c226(0x1c8)](_0x21c226(0x1ef),_0x21c226(0x1e9),{'type':_0xd1a2f1[_0x21c226(0x1e6)],'defaultValue':0x1388}),_0x4f8915['addColumn'](_0x21c226(0x1ef),_0x21c226(0x1dc),{'type':_0xd1a2f1[_0x21c226(0x1e6)],'defaultValue':0x3e8}),_0x4f8915[_0x21c226(0x1c8)](_0x21c226(0x1ef),'splitSizeXlsx',{'type':_0xd1a2f1[_0x21c226(0x1e6)],'defaultValue':0x1388}),_0x4f8915[_0x21c226(0x1c8)](_0x21c226(0x1ea),_0x21c226(0x1ca),{'type':_0xd1a2f1['BOOLEAN'],'defaultValue':![]}),_0x4f8915[_0x21c226(0x1c8)](_0x21c226(0x1ea),_0x21c226(0x1bf),{'type':_0xd1a2f1[_0x21c226(0x1e6)],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c}),_0x4f8915[_0x21c226(0x1c8)](_0x21c226(0x1ea),'agentTransfer',{'type':_0xd1a2f1['BOOLEAN'],'defaultValue':![]}),_0x4f8915[_0x21c226(0x1c8)](_0x21c226(0x1ea),_0x21c226(0x1cb),{'type':_0xd1a2f1[_0x21c226(0x1e6)],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c}),_0x4f8915[_0x21c226(0x1c8)](_0x21c226(0x1e5),_0x21c226(0x1cf),{'type':_0xd1a2f1[_0x21c226(0x1d5)],'defaultValue':![]}),_0x4f8915[_0x21c226(0x1c7)](_0x21c226(0x1d3),'subject',{'type':_0xd1a2f1[_0x21c226(0x1ed)]('')+_0x21c226(0x1c6)}),_0x4f8915[_0x21c226(0x1c7)](_0x21c226(0x1d3),_0x21c226(0x1e7),{'type':_0xd1a2f1['TEXT'](_0x21c226(0x1bc))+_0x21c226(0x1c6)}),_0x4f8915['addColumn']('cm_contacts',_0x21c226(0x1d8),{'type':_0xd1a2f1[_0x21c226(0x1d6)]}),_0x4f8915[_0x21c226(0x1ce)](_0x3e8ab4);});},'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 9739bfa..4e5d118 100644 --- a/server/migrations/2.0.67.js +++ b/server/migrations/2.0.67.js @@ -1 +1 @@ -const a945_0x3ac2=['TEXT','join','INSERT\x20INTO\x20user_has_chat_websites\x20(`UserId`,\x20`ChatWebsiteId`,\x20`createdAt`,\x20`updatedAt`)\x20\x20\x20\x20\x20\x20\x20SELECT\x20u.id\x20as\x20`UserId`,\x20a.id\x20as\x20`ChatWebsiteId`,\x20NOW()\x20as\x20`createdAt`,\x20NOW()\x20as\x20`updatedAt`\x20\x20\x20\x20\x20\x20\x20FROM\x20users\x20as\x20u,\x20chat_websites\x20as\x20a\x20\x20\x20\x20\x20\x20\x20ORDER\x20BY\x20u.id,\x20a.id;','renameColumn','final','tail','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;','finally','query','then','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;','Changed\x20column\x20%s\x20in\x20table\x20%s','originTo','table\x20dropped\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;','sequence','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_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;','long','util','enqueue','originCc','queryInterface','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`ChatWebsiteId`)\x20\x20\x20\x20\x20\x20\x20SELECT\x20`name`,\x20`createdAt`,\x20`updatedAt`,\x20`ChatWebsiteId`\x20FROM\x20chat_dispositions;','removeIndex\x20%s\x20%s','migration','CREATE\x20TABLE\x20`user_has_mail_accounts`\x20(\x20\x20\x20\x20\x20\x20\x20\x20\x20`createdAt`\x20datetime\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20`updatedAt`\x20datetime\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20`MailAccountId`\x20int(11)\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20`UserId`\x20int(11)\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20PRIMARY\x20KEY\x20(`MailAccountId`,`UserId`),\x20\x20\x20\x20\x20\x20\x20\x20\x20KEY\x20`UserId`\x20(`UserId`),\x20\x20\x20\x20\x20\x20\x20\x20\x20CONSTRAINT\x20`user_has_mail_accounts_ibfk_1`\x20FOREIGN\x20KEY\x20(`MailAccountId`)\x20REFERENCES\x20`mail_accounts`\x20(`id`)\x20ON\x20DELETE\x20CASCADE\x20ON\x20UPDATE\x20CASCADE,\x20\x20\x20\x20\x20\x20\x20\x20\x20CONSTRAINT\x20`user_has_mail_accounts_ibfk_2`\x20FOREIGN\x20KEY\x20(`UserId`)\x20REFERENCES\x20`users`\x20(`id`)\x20ON\x20DELETE\x20CASCADE\x20ON\x20UPDATE\x20CASCADE\x20\x20\x20\x20\x20\x20\x20)\x20ENGINE=InnoDB\x20DEFAULT\x20CHARSET=utf8;','CREATE\x20TABLE\x20`user_has_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;','prototype','addIndex','addColumn','changeColumn','dropTable','inspect','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;','stringify','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;','Removed\x20column\x20%s\x20from\x20%s','Added\x20column\x20%s\x20to\x20%s','catch','removeIndex','removeColumn','mail_messages','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s'];(function(_0x42d541,_0x3ac2a2){const _0x26ed8a=function(_0x3f520f){while(--_0x3f520f){_0x42d541['push'](_0x42d541['shift']());}};_0x26ed8a(++_0x3ac2a2);}(a945_0x3ac2,0x1a3));const a945_0x26ed=function(_0x42d541,_0x3ac2a2){_0x42d541=_0x42d541-0x0;let _0x26ed8a=a945_0x3ac2[_0x42d541];return _0x26ed8a;};const _0x5c34a6=a945_0x26ed;'use strict';const util=require(_0x5c34a6('0xe')),logger=require('../config/logger')(_0x5c34a6('0x15')),Sequence=function(){};Sequence[_0x5c34a6('0x18')][_0x5c34a6('0xf')]=function(_0x3f520f){const _0x44fdba=_0x5c34a6;this[_0x44fdba('0x0')]=this[_0x44fdba('0x0')]?this['tail'][_0x44fdba('0x2')](_0x3f520f):_0x3f520f();};const Migration=function(_0x595b03){const _0x246cf0=_0x5c34a6;this[_0x246cf0('0x11')]=_0x595b03,this[_0x246cf0('0xa')]=new Sequence();};Migration[_0x5c34a6('0x18')][_0x5c34a6('0x1b')]=function(_0x529150,_0x4c89bc,_0x3e1801){const _0x30822d=_0x5c34a6,_0x146612=this;this[_0x30822d('0xa')][_0x30822d('0xf')](function(){const _0x32a093=_0x30822d;return _0x146612[_0x32a093('0x11')][_0x32a093('0x1b')](_0x529150,_0x4c89bc,_0x3e1801)[_0x32a093('0x4')](function(){const _0x3af4e4=_0x32a093;logger['info'](_0x3af4e4('0x6'),_0x4c89bc,_0x529150);})[_0x32a093('0x24')](function(_0x38255c){const _0x4f6b1e=_0x32a093;logger['info'](JSON[_0x4f6b1e('0x20')](_0x38255c));});});},Migration[_0x5c34a6('0x18')][_0x5c34a6('0x1a')]=function(_0x1735b9,_0x25563d,_0x3e8e50){const _0x3ea68a=_0x5c34a6,_0xff2cc8=this;this['sequence'][_0x3ea68a('0xf')](function(){const _0x35afd2=_0x3ea68a;return _0xff2cc8[_0x35afd2('0x11')][_0x35afd2('0x1a')](_0x1735b9,_0x25563d,_0x3e8e50)['then'](function(){const _0x3af828=_0x35afd2;logger['info'](_0x3af828('0x23'),_0x25563d,_0x1735b9);})[_0x35afd2('0x24')](function(_0x45abe8){const _0x28ab31=_0x35afd2;logger[_0x28ab31('0x1e')](JSON[_0x28ab31('0x20')](_0x45abe8));});});},Migration['prototype'][_0x5c34a6('0x1c')]=function(_0x1d5044){const _0x3a7015=_0x5c34a6,_0x1cdfd9=this;this[_0x3a7015('0xa')][_0x3a7015('0xf')](function(){const _0x5e7732=_0x3a7015;return _0x1cdfd9[_0x5e7732('0x11')][_0x5e7732('0x1c')](_0x1d5044,{'force':!![]})[_0x5e7732('0x4')](function(){const _0x4e76ba=_0x5e7732;logger['info'](_0x4e76ba('0x8'),_0x1d5044);})[_0x5e7732('0x24')](function(_0x1cfc7d){const _0x51bae7=_0x5e7732;logger[_0x51bae7('0x1e')](JSON['stringify'](_0x1cfc7d));});});},Migration[_0x5c34a6('0x18')][_0x5c34a6('0x19')]=function(_0x9fc371,_0x3cd7b6,_0x3ad4de){const _0x2b49b9=_0x5c34a6,_0x1a9af4=this;this[_0x2b49b9('0xa')][_0x2b49b9('0xf')](function(){const _0x7ec965=_0x2b49b9;return _0x1a9af4[_0x7ec965('0x11')][_0x7ec965('0x19')](_0x9fc371,_0x3cd7b6,{'indexName':_0x3ad4de})['then'](function(){const _0xbc5bb3=_0x7ec965;logger[_0xbc5bb3('0x1e')]('addIndex\x20%s\x20%s\x20%s',_0x9fc371,_0x3cd7b6[_0xbc5bb3('0x2a')](','),_0x3ad4de);})[_0x7ec965('0x24')](function(_0x122914){const _0x12b73c=_0x7ec965;logger[_0x12b73c('0x1e')](JSON[_0x12b73c('0x20')](_0x122914));});});},Migration[_0x5c34a6('0x18')][_0x5c34a6('0x25')]=function(_0x5dec41,_0xf822c){const _0x26ada8=this;this['sequence']['enqueue'](function(){const _0x46147f=a945_0x26ed;return _0x26ada8['queryInterface']['removeIndex'](_0x5dec41,_0xf822c)['then'](function(){const _0x3de789=a945_0x26ed;logger[_0x3de789('0x1e')](_0x3de789('0x14'),_0x5dec41,_0xf822c);})[_0x46147f('0x24')](function(_0x2a05ac){const _0x1ee76a=_0x46147f;logger[_0x1ee76a('0x1e')](JSON['stringify'](_0x2a05ac));});});},Migration[_0x5c34a6('0x18')][_0x5c34a6('0x3')]=function(_0xdc55c){const _0x5237f0=_0x5c34a6,_0xdf4ee1=this;this[_0x5237f0('0xa')][_0x5237f0('0xf')](function(){const _0x3d601d=_0x5237f0;return _0xdf4ee1[_0x3d601d('0x11')]['sequelize'][_0x3d601d('0x3')](_0xdc55c)[_0x3d601d('0x4')](function(){const _0x501ef7=_0x3d601d;logger[_0x501ef7('0x1e')]('query\x20%s',_0xdc55c);})[_0x3d601d('0x24')](function(_0x3a2573){const _0x5c9404=_0x3d601d;logger[_0x5c9404('0x1e')](JSON[_0x5c9404('0x20')](_0x3a2573));});});},Migration[_0x5c34a6('0x18')][_0x5c34a6('0x26')]=function(_0x5c2b8f,_0x36a2dd){const _0x27619e=_0x5c34a6,_0x562e7c=this;this[_0x27619e('0xa')]['enqueue'](function(){const _0x487008=_0x27619e;return _0x562e7c['queryInterface'][_0x487008('0x26')](_0x5c2b8f,_0x36a2dd)[_0x487008('0x4')](function(){const _0x509ad0=_0x487008;logger['info'](_0x509ad0('0x22'),_0x36a2dd,_0x5c2b8f);})[_0x487008('0x24')](function(_0x2bbdbd){const _0x2090d2=_0x487008;logger[_0x2090d2('0x1e')](util[_0x2090d2('0x1d')](_0x2bbdbd,{'showHidden':![],'depth':null}));});});},Migration[_0x5c34a6('0x18')][_0x5c34a6('0x2c')]=function(_0x488940,_0x253b43,_0x2f9cd6){const _0xd516ca=_0x5c34a6,_0xa982ce=this;this[_0xd516ca('0xa')][_0xd516ca('0xf')](function(){const _0x404174=_0xd516ca;return _0xa982ce[_0x404174('0x11')]['renameColumn'](_0x488940,_0x253b43,_0x2f9cd6)[_0x404174('0x4')](function(){const _0xda3c9a=_0x404174;logger[_0xda3c9a('0x1e')](_0xda3c9a('0x28'),_0x253b43,_0x2f9cd6,_0x488940);})[_0x404174('0x24')](function(_0x51a2f4){const _0x2dcad5=_0x404174;logger[_0x2dcad5('0x1e')](util['inspect'](_0x51a2f4,{'showHidden':![],'depth':null}));});});},Migration[_0x5c34a6('0x18')]['final']=function(_0x1e7e03){const _0x3014ac=_0x5c34a6;this[_0x3014ac('0xa')][_0x3014ac('0xf')](function(){return _0x1e7e03();});},module['exports']={'up':function(_0x172588,_0x4fd217){return new Promise(function(_0x245575){const _0x4e4d60=a945_0x26ed,_0x5f18a8=new Migration(_0x172588),_0x279ae3=_0x4e4d60('0x21');_0x5f18a8['query'](_0x279ae3),_0x5f18a8['query'](_0x4e4d60('0x13')),_0x5f18a8[_0x4e4d60('0x3')]('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;'),_0x5f18a8['query']('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;'),_0x5f18a8['query'](_0x4e4d60('0xb')),_0x5f18a8[_0x4e4d60('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;'),_0x5f18a8[_0x4e4d60('0x3')](_0x4e4d60('0x1')),_0x5f18a8['query']('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;'),_0x5f18a8[_0x4e4d60('0x3')](_0x4e4d60('0x2b')),_0x5f18a8[_0x4e4d60('0x3')](_0x4e4d60('0x16')),_0x5f18a8[_0x4e4d60('0x3')](_0x4e4d60('0xc')),_0x5f18a8['query'](_0x4e4d60('0x17')),_0x5f18a8[_0x4e4d60('0x3')](_0x4e4d60('0x5')),_0x5f18a8[_0x4e4d60('0x3')](_0x4e4d60('0x1f')),_0x5f18a8[_0x4e4d60('0x3')](_0x4e4d60('0x12')),_0x5f18a8[_0x4e4d60('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;'),_0x5f18a8[_0x4e4d60('0x3')](_0x4e4d60('0x9')),_0x5f18a8[_0x4e4d60('0x1a')](_0x4e4d60('0x27'),_0x4e4d60('0x7'),{'type':_0x4fd217['TEXT'](_0x4e4d60('0xd'))}),_0x5f18a8[_0x4e4d60('0x1a')](_0x4e4d60('0x27'),_0x4e4d60('0x10'),{'type':_0x4fd217[_0x4e4d60('0x29')](_0x4e4d60('0xd'))}),_0x5f18a8[_0x4e4d60('0x2d')](_0x245575);});},'down':function(){}}; \ No newline at end of file +const a1107_0x4876=['query','inspect','removeIndex\x20%s\x20%s','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;','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;','long','catch','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;','removeIndex','addColumn','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;','addIndex\x20%s\x20%s\x20%s','dropTable','info','TEXT','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;','table\x20dropped\x20%s','prototype','mail_messages','Changed\x20column\x20%s\x20in\x20table\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;','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;','renameColumn','sequence','finally','migration','../config/logger','final','util','originCc','then','queryInterface','CREATE\x20TABLE\x20`user_has_openchannel_accounts`\x20(\x20\x20\x20\x20\x20\x20\x20\x20\x20`createdAt`\x20datetime\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20`updatedAt`\x20datetime\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20`OpenchannelAccountId`\x20int(11)\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20`UserId`\x20int(11)\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20\x20PRIMARY\x20KEY\x20(`OpenchannelAccountId`,`UserId`),\x20\x20\x20\x20\x20\x20\x20\x20\x20KEY\x20`UserId`\x20(`UserId`),\x20\x20\x20\x20\x20\x20\x20\x20\x20CONSTRAINT\x20`user_has_openchannel_accounts_ibfk_1`\x20FOREIGN\x20KEY\x20(`OpenchannelAccountId`)\x20REFERENCES\x20`openchannel_accounts`\x20(`id`)\x20ON\x20DELETE\x20CASCADE\x20ON\x20UPDATE\x20CASCADE,\x20\x20\x20\x20\x20\x20\x20\x20\x20CONSTRAINT\x20`user_has_openchannel_accounts_ibfk_2`\x20FOREIGN\x20KEY\x20(`UserId`)\x20REFERENCES\x20`users`\x20(`id`)\x20ON\x20DELETE\x20CASCADE\x20ON\x20UPDATE\x20CASCADE\x20\x20\x20\x20\x20\x20\x20)\x20ENGINE=InnoDB\x20DEFAULT\x20CHARSET=utf8;','CREATE\x20TABLE\x20`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;','tail','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;','enqueue','stringify','sequelize','changeColumn','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;','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;','removeColumn','exports'];(function(_0x518bd3,_0x1a69d4){const _0x48767f=function(_0x4e3f19){while(--_0x4e3f19){_0x518bd3['push'](_0x518bd3['shift']());}};_0x48767f(++_0x1a69d4);}(a1107_0x4876,0x19b));const a1107_0x4e3f=function(_0x518bd3,_0x1a69d4){_0x518bd3=_0x518bd3-0x1d7;let _0x48767f=a1107_0x4876[_0x518bd3];return _0x48767f;};const a1107_0x2b486c=a1107_0x4e3f;'use strict';const util=require(a1107_0x2b486c(0x1e4)),logger=require(a1107_0x2b486c(0x1e2))(a1107_0x2b486c(0x1e1)),Sequence=function(){};Sequence['prototype'][a1107_0x2b486c(0x1ec)]=function(_0x529fcf){const _0x247b31=a1107_0x2b486c;this[_0x247b31(0x1ea)]=this[_0x247b31(0x1ea)]?this[_0x247b31(0x1ea)][_0x247b31(0x1e0)](_0x529fcf):_0x529fcf();};const Migration=function(_0x21071c){this['queryInterface']=_0x21071c,this['sequence']=new Sequence();};Migration[a1107_0x2b486c(0x1d9)][a1107_0x2b486c(0x1ef)]=function(_0x372f04,_0xedfd5e,_0x2652df){const _0x75754b=a1107_0x2b486c,_0x19f921=this;this[_0x75754b(0x1df)]['enqueue'](function(){const _0x1d18b2=_0x75754b;return _0x19f921[_0x1d18b2(0x1e7)][_0x1d18b2(0x1ef)](_0x372f04,_0xedfd5e,_0x2652df)[_0x1d18b2(0x1e6)](function(){const _0x1a25ec=_0x1d18b2;logger[_0x1a25ec(0x201)](_0x1a25ec(0x1db),_0xedfd5e,_0x372f04);})[_0x1d18b2(0x1fa)](function(_0x5f3511){const _0x30d4bc=_0x1d18b2;logger[_0x30d4bc(0x201)](JSON['stringify'](_0x5f3511));});});},Migration[a1107_0x2b486c(0x1d9)][a1107_0x2b486c(0x1fd)]=function(_0x37c626,_0x1e01f7,_0x253d82){const _0x3373fb=a1107_0x2b486c,_0x525878=this;this[_0x3373fb(0x1df)]['enqueue'](function(){const _0x36560e=_0x3373fb;return _0x525878[_0x36560e(0x1e7)][_0x36560e(0x1fd)](_0x37c626,_0x1e01f7,_0x253d82)['then'](function(){const _0x58fdbf=_0x36560e;logger[_0x58fdbf(0x201)]('Added\x20column\x20%s\x20to\x20%s',_0x1e01f7,_0x37c626);})[_0x36560e(0x1fa)](function(_0x647bdd){const _0x15263a=_0x36560e;logger[_0x15263a(0x201)](JSON[_0x15263a(0x1ed)](_0x647bdd));});});},Migration[a1107_0x2b486c(0x1d9)]['dropTable']=function(_0x7da23b){const _0x29840c=a1107_0x2b486c,_0x35a304=this;this['sequence'][_0x29840c(0x1ec)](function(){const _0x4ed030=_0x29840c;return _0x35a304[_0x4ed030(0x1e7)][_0x4ed030(0x200)](_0x7da23b,{'force':!![]})[_0x4ed030(0x1e6)](function(){const _0x29de21=_0x4ed030;logger[_0x29de21(0x201)](_0x29de21(0x1d8),_0x7da23b);})[_0x4ed030(0x1fa)](function(_0x39398e){const _0xce2eb8=_0x4ed030;logger[_0xce2eb8(0x201)](JSON['stringify'](_0x39398e));});});},Migration['prototype']['addIndex']=function(_0x51e3f5,_0x1a7c8e,_0x4ad0bf){const _0x404962=a1107_0x2b486c,_0x1e194a=this;this[_0x404962(0x1df)][_0x404962(0x1ec)](function(){const _0x453733=_0x404962;return _0x1e194a[_0x453733(0x1e7)]['addIndex'](_0x51e3f5,_0x1a7c8e,{'indexName':_0x4ad0bf})['then'](function(){const _0x139293=_0x453733;logger[_0x139293(0x201)](_0x139293(0x1ff),_0x51e3f5,_0x1a7c8e['join'](','),_0x4ad0bf);})[_0x453733(0x1fa)](function(_0x5da307){const _0x5d6041=_0x453733;logger['info'](JSON[_0x5d6041(0x1ed)](_0x5da307));});});},Migration['prototype']['removeIndex']=function(_0x765813,_0x2ad21e){const _0x552cbc=a1107_0x2b486c,_0xb24d2b=this;this['sequence'][_0x552cbc(0x1ec)](function(){const _0x417940=_0x552cbc;return _0xb24d2b[_0x417940(0x1e7)][_0x417940(0x1fc)](_0x765813,_0x2ad21e)[_0x417940(0x1e6)](function(){const _0x182188=_0x417940;logger[_0x182188(0x201)](_0x182188(0x1f6),_0x765813,_0x2ad21e);})[_0x417940(0x1fa)](function(_0x512d56){const _0x2ee009=_0x417940;logger['info'](JSON[_0x2ee009(0x1ed)](_0x512d56));});});},Migration['prototype'][a1107_0x2b486c(0x1f4)]=function(_0x1acfb6){const _0x3fdf77=a1107_0x2b486c,_0x10ea8a=this;this[_0x3fdf77(0x1df)][_0x3fdf77(0x1ec)](function(){const _0x5419b6=_0x3fdf77;return _0x10ea8a['queryInterface'][_0x5419b6(0x1ee)][_0x5419b6(0x1f4)](_0x1acfb6)['then'](function(){logger['info']('query\x20%s',_0x1acfb6);})[_0x5419b6(0x1fa)](function(_0x2c05ad){const _0x2c6aef=_0x5419b6;logger[_0x2c6aef(0x201)](JSON['stringify'](_0x2c05ad));});});},Migration[a1107_0x2b486c(0x1d9)][a1107_0x2b486c(0x1f2)]=function(_0x56700b,_0x133f9e){const _0x545774=a1107_0x2b486c,_0x4e8d84=this;this[_0x545774(0x1df)]['enqueue'](function(){const _0x10cb3e=_0x545774;return _0x4e8d84['queryInterface']['removeColumn'](_0x56700b,_0x133f9e)[_0x10cb3e(0x1e6)](function(){logger['info']('Removed\x20column\x20%s\x20from\x20%s',_0x133f9e,_0x56700b);})[_0x10cb3e(0x1fa)](function(_0x290add){const _0x1ac548=_0x10cb3e;logger[_0x1ac548(0x201)](util[_0x1ac548(0x1f5)](_0x290add,{'showHidden':![],'depth':null}));});});},Migration[a1107_0x2b486c(0x1d9)]['renameColumn']=function(_0x290cc5,_0x3509c8,_0x258ca7){const _0x4db576=a1107_0x2b486c,_0x5b5f3d=this;this[_0x4db576(0x1df)][_0x4db576(0x1ec)](function(){const _0x2ba542=_0x4db576;return _0x5b5f3d[_0x2ba542(0x1e7)][_0x2ba542(0x1de)](_0x290cc5,_0x3509c8,_0x258ca7)[_0x2ba542(0x1e6)](function(){const _0x54accf=_0x2ba542;logger[_0x54accf(0x201)]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x3509c8,_0x258ca7,_0x290cc5);})[_0x2ba542(0x1fa)](function(_0x27e1b2){const _0x114976=_0x2ba542;logger[_0x114976(0x201)](util[_0x114976(0x1f5)](_0x27e1b2,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1107_0x2b486c(0x1e3)]=function(_0x17af47){const _0x3b1fdf=a1107_0x2b486c;this[_0x3b1fdf(0x1df)][_0x3b1fdf(0x1ec)](function(){return _0x17af47();});},module[a1107_0x2b486c(0x1f3)]={'up':function(_0x4c83b5,_0x286360){return new Promise(function(_0x57436a){const _0x3aad2f=a1107_0x4e3f,_0x57886c=new Migration(_0x4c83b5),_0x44a84d=_0x3aad2f(0x1e9);_0x57886c[_0x3aad2f(0x1f4)](_0x44a84d),_0x57886c[_0x3aad2f(0x1f4)](_0x3aad2f(0x1f8)),_0x57886c[_0x3aad2f(0x1f4)](_0x3aad2f(0x1f1)),_0x57886c['query'](_0x3aad2f(0x1eb)),_0x57886c['query'](_0x3aad2f(0x1dd)),_0x57886c[_0x3aad2f(0x1f4)](_0x3aad2f(0x1d7)),_0x57886c[_0x3aad2f(0x1f4)](_0x3aad2f(0x1f7)),_0x57886c[_0x3aad2f(0x1f4)]('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;'),_0x57886c['query']('INSERT\x20INTO\x20user_has_chat_websites\x20(`UserId`,\x20`ChatWebsiteId`,\x20`createdAt`,\x20`updatedAt`)\x20\x20\x20\x20\x20\x20\x20SELECT\x20u.id\x20as\x20`UserId`,\x20a.id\x20as\x20`ChatWebsiteId`,\x20NOW()\x20as\x20`createdAt`,\x20NOW()\x20as\x20`updatedAt`\x20\x20\x20\x20\x20\x20\x20FROM\x20users\x20as\x20u,\x20chat_websites\x20as\x20a\x20\x20\x20\x20\x20\x20\x20ORDER\x20BY\x20u.id,\x20a.id;'),_0x57886c[_0x3aad2f(0x1f4)](_0x3aad2f(0x1fe)),_0x57886c[_0x3aad2f(0x1f4)](_0x3aad2f(0x1fb)),_0x57886c['query']('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;'),_0x57886c[_0x3aad2f(0x1f4)]('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;'),_0x57886c[_0x3aad2f(0x1f4)](_0x3aad2f(0x1f0)),_0x57886c['query']('INSERT\x20INTO\x20user_has_sms_accounts\x20(`UserId`,\x20`SmsAccountId`,\x20`createdAt`,\x20`updatedAt`)\x20\x20\x20\x20\x20\x20\x20SELECT\x20u.id\x20as\x20`UserId`,\x20a.id\x20as\x20`SmsAccountId`,\x20NOW()\x20as\x20`createdAt`,\x20NOW()\x20as\x20`updatedAt`\x20\x20\x20\x20\x20\x20\x20FROM\x20users\x20as\x20u,\x20sms_accounts\x20as\x20a\x20\x20\x20\x20\x20\x20\x20ORDER\x20BY\x20u.id,\x20a.id;'),_0x57886c[_0x3aad2f(0x1f4)](_0x3aad2f(0x1e8)),_0x57886c[_0x3aad2f(0x1f4)](_0x3aad2f(0x1dc)),_0x57886c['addColumn'](_0x3aad2f(0x1da),'originTo',{'type':_0x286360[_0x3aad2f(0x202)](_0x3aad2f(0x1f9))}),_0x57886c[_0x3aad2f(0x1fd)](_0x3aad2f(0x1da),_0x3aad2f(0x1e5),{'type':_0x286360[_0x3aad2f(0x202)](_0x3aad2f(0x1f9))}),_0x57886c[_0x3aad2f(0x1e3)](_0x57436a);});},'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 70c9be8..69596a3 100644 --- a/server/migrations/2.0.68.js +++ b/server/migrations/2.0.68.js @@ -1 +1 @@ -const a946_0x261d=['INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Special\x27,\x20NOW(),\x20NOW())','table\x20dropped\x20%s','removeIndex\x20%s\x20%s','final','renameColumn','addIndex\x20%s\x20%s\x20%s','exports','messagesAlignment','sequence','Removed\x20column\x20%s\x20from\x20%s','inspect','UPDATE\x20settings\x20SET\x20messagesAlignment=\x27alternate\x27','queryInterface','then','INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Sold\x27,\x20NOW(),\x20NOW())','chat_interactions','INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Answer\x20Machine\x27,\x20NOW(),\x20NOW())','changeColumn','catch','info','mapKey','finally','settings','query','enqueue','addColumn','stringify','prototype','STRING','addIndex','dropTable','tail','openchannel_accounts','removeIndex','Added\x20column\x20%s\x20to\x20%s','migration','sequelize','removeColumn','INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Not\x20Interested\x27,\x20NOW(),\x20NOW())','query\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s'];(function(_0xa593e,_0x261de5){const _0x157307=function(_0x1c6d14){while(--_0x1c6d14){_0xa593e['push'](_0xa593e['shift']());}};_0x157307(++_0x261de5);}(a946_0x261d,0x80));const a946_0x1573=function(_0xa593e,_0x261de5){_0xa593e=_0xa593e-0x0;let _0x157307=a946_0x261d[_0xa593e];return _0x157307;};const _0x495b95=a946_0x1573;'use strict';const util=require('util'),logger=require('../config/logger')(_0x495b95('0x1e')),Sequence=function(){};Sequence[_0x495b95('0x16')][_0x495b95('0x13')]=function(_0x1c6d14){const _0x207328=_0x495b95;this[_0x207328('0x1a')]=this[_0x207328('0x1a')]?this['tail'][_0x207328('0x10')](_0x1c6d14):_0x1c6d14();};const Migration=function(_0x39dfd1){const _0x1352c9=_0x495b95;this[_0x1352c9('0x7')]=_0x39dfd1,this[_0x1352c9('0x3')]=new Sequence();};Migration[_0x495b95('0x16')][_0x495b95('0xc')]=function(_0x5bf989,_0x1c7d6b,_0x1cd569){const _0xc86ac3=_0x495b95,_0xfee1c5=this;this[_0xc86ac3('0x3')]['enqueue'](function(){const _0x29abd6=_0xc86ac3;return _0xfee1c5[_0x29abd6('0x7')][_0x29abd6('0xc')](_0x5bf989,_0x1c7d6b,_0x1cd569)[_0x29abd6('0x8')](function(){const _0x306a1d=_0x29abd6;logger[_0x306a1d('0xe')](_0x306a1d('0x23'),_0x1c7d6b,_0x5bf989);})['catch'](function(_0xe8f722){const _0x1e09a0=_0x29abd6;logger[_0x1e09a0('0xe')](JSON[_0x1e09a0('0x15')](_0xe8f722));});});},Migration[_0x495b95('0x16')][_0x495b95('0x14')]=function(_0x1ece62,_0x1d12ee,_0x4d1867){const _0x232b26=this;this['sequence']['enqueue'](function(){const _0x386abf=a946_0x1573;return _0x232b26[_0x386abf('0x7')][_0x386abf('0x14')](_0x1ece62,_0x1d12ee,_0x4d1867)[_0x386abf('0x8')](function(){const _0x4c8d69=_0x386abf;logger[_0x4c8d69('0xe')](_0x4c8d69('0x1d'),_0x1d12ee,_0x1ece62);})[_0x386abf('0xd')](function(_0x11c7a7){const _0x4c1676=_0x386abf;logger[_0x4c1676('0xe')](JSON[_0x4c1676('0x15')](_0x11c7a7));});});},Migration[_0x495b95('0x16')][_0x495b95('0x19')]=function(_0x22aa9d){const _0x34ebd6=_0x495b95,_0x4f4123=this;this[_0x34ebd6('0x3')][_0x34ebd6('0x13')](function(){const _0x5a9964=_0x34ebd6;return _0x4f4123[_0x5a9964('0x7')][_0x5a9964('0x19')](_0x22aa9d,{'force':!![]})[_0x5a9964('0x8')](function(){const _0x885a8=_0x5a9964;logger['info'](_0x885a8('0x25'),_0x22aa9d);})[_0x5a9964('0xd')](function(_0x164860){const _0x46870a=_0x5a9964;logger['info'](JSON[_0x46870a('0x15')](_0x164860));});});},Migration[_0x495b95('0x16')][_0x495b95('0x18')]=function(_0x4a66ee,_0x1607aa,_0x5f345f){const _0x1ea0c5=_0x495b95,_0x57b784=this;this[_0x1ea0c5('0x3')][_0x1ea0c5('0x13')](function(){const _0x2bc074=_0x1ea0c5;return _0x57b784['queryInterface']['addIndex'](_0x4a66ee,_0x1607aa,{'indexName':_0x5f345f})[_0x2bc074('0x8')](function(){const _0x2d09a6=_0x2bc074;logger[_0x2d09a6('0xe')](_0x2d09a6('0x0'),_0x4a66ee,_0x1607aa['join'](','),_0x5f345f);})[_0x2bc074('0xd')](function(_0x428f72){const _0x29c999=_0x2bc074;logger[_0x29c999('0xe')](JSON[_0x29c999('0x15')](_0x428f72));});});},Migration['prototype'][_0x495b95('0x1c')]=function(_0x51d2f1,_0x193365){const _0x35453c=_0x495b95,_0x46deac=this;this[_0x35453c('0x3')][_0x35453c('0x13')](function(){const _0x3efa84=_0x35453c;return _0x46deac[_0x3efa84('0x7')][_0x3efa84('0x1c')](_0x51d2f1,_0x193365)[_0x3efa84('0x8')](function(){const _0x11932b=_0x3efa84;logger['info'](_0x11932b('0x26'),_0x51d2f1,_0x193365);})[_0x3efa84('0xd')](function(_0x1e2fe4){const _0x4e4c23=_0x3efa84;logger[_0x4e4c23('0xe')](JSON[_0x4e4c23('0x15')](_0x1e2fe4));});});},Migration[_0x495b95('0x16')][_0x495b95('0x12')]=function(_0x18af2c){const _0x5c8e93=_0x495b95,_0x163612=this;this['sequence'][_0x5c8e93('0x13')](function(){const _0x20c275=_0x5c8e93;return _0x163612['queryInterface'][_0x20c275('0x1f')]['query'](_0x18af2c)[_0x20c275('0x8')](function(){const _0x6940b2=_0x20c275;logger['info'](_0x6940b2('0x22'),_0x18af2c);})[_0x20c275('0xd')](function(_0x4ccecd){const _0x18c12b=_0x20c275;logger['info'](JSON[_0x18c12b('0x15')](_0x4ccecd));});});},Migration['prototype'][_0x495b95('0x20')]=function(_0x152f80,_0x557905){const _0x3aa1d6=_0x495b95,_0x559d5d=this;this[_0x3aa1d6('0x3')]['enqueue'](function(){const _0x264d3c=_0x3aa1d6;return _0x559d5d[_0x264d3c('0x7')][_0x264d3c('0x20')](_0x152f80,_0x557905)[_0x264d3c('0x8')](function(){const _0x5a249c=_0x264d3c;logger[_0x5a249c('0xe')](_0x5a249c('0x4'),_0x557905,_0x152f80);})[_0x264d3c('0xd')](function(_0x2512fe){logger['info'](util['inspect'](_0x2512fe,{'showHidden':![],'depth':null}));});});},Migration[_0x495b95('0x16')][_0x495b95('0x28')]=function(_0x57d33b,_0x17a57c,_0x359096){const _0xc06a8c=_0x495b95,_0x3efbf5=this;this[_0xc06a8c('0x3')][_0xc06a8c('0x13')](function(){const _0x4d349b=_0xc06a8c;return _0x3efbf5['queryInterface'][_0x4d349b('0x28')](_0x57d33b,_0x17a57c,_0x359096)[_0x4d349b('0x8')](function(){const _0x1bcc6b=_0x4d349b;logger[_0x1bcc6b('0xe')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x17a57c,_0x359096,_0x57d33b);})[_0x4d349b('0xd')](function(_0x5aaf65){const _0x38c5f1=_0x4d349b;logger[_0x38c5f1('0xe')](util[_0x38c5f1('0x5')](_0x5aaf65,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x495b95('0x27')]=function(_0x37f9bf){const _0x12381a=_0x495b95;this['sequence'][_0x12381a('0x13')](function(){return _0x37f9bf();});},module[_0x495b95('0x1')]={'up':function(_0x4c56de,_0x168ac2){return new Promise(function(_0x2b918e){const _0x1af6de=a946_0x1573,_0x15b82a=new Migration(_0x4c56de);_0x15b82a[_0x1af6de('0x12')]('INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Fax\x27,\x20NOW(),\x20NOW())'),_0x15b82a[_0x1af6de('0x12')](_0x1af6de('0xb')),_0x15b82a['query']('INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Interested\x27,\x20NOW(),\x20NOW())'),_0x15b82a[_0x1af6de('0x12')](_0x1af6de('0x21')),_0x15b82a[_0x1af6de('0x12')](_0x1af6de('0x9')),_0x15b82a[_0x1af6de('0x12')](_0x1af6de('0x24')),_0x15b82a[_0x1af6de('0x14')](_0x1af6de('0x1b'),_0x1af6de('0xf'),{'type':_0x168ac2[_0x1af6de('0x17')]}),_0x15b82a['addColumn'](_0x1af6de('0xa'),'closeReason',{'type':_0x168ac2[_0x1af6de('0x17')]}),_0x15b82a[_0x1af6de('0x14')](_0x1af6de('0x11'),_0x1af6de('0x2'),{'type':_0x168ac2[_0x1af6de('0x17')]}),_0x15b82a[_0x1af6de('0x12')](_0x1af6de('0x6')),_0x15b82a[_0x1af6de('0x27')](_0x2b918e);});},'down':function(){}}; \ No newline at end of file +const a1108_0x57f9=['addIndex','final','join','INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Sold\x27,\x20NOW(),\x20NOW())','table\x20dropped\x20%s','queryInterface','enqueue','query','prototype','UPDATE\x20settings\x20SET\x20messagesAlignment=\x27alternate\x27','inspect','addIndex\x20%s\x20%s\x20%s','catch','Changed\x20column\x20%s\x20in\x20table\x20%s','Added\x20column\x20%s\x20to\x20%s','tail','info','Removed\x20column\x20%s\x20from\x20%s','query\x20%s','removeColumn','../config/logger','INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Fax\x27,\x20NOW(),\x20NOW())','settings','util','stringify','STRING','sequence','changeColumn','then','migration','messagesAlignment','openchannel_accounts','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','sequelize','dropTable','INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Not\x20Interested\x27,\x20NOW(),\x20NOW())','chat_interactions','addColumn'];(function(_0x757f3d,_0xcc65e7){const _0x57f983=function(_0x3b0a03){while(--_0x3b0a03){_0x757f3d['push'](_0x757f3d['shift']());}};_0x57f983(++_0xcc65e7);}(a1108_0x57f9,0xed));const a1108_0x3b0a=function(_0x757f3d,_0xcc65e7){_0x757f3d=_0x757f3d-0xa1;let _0x57f983=a1108_0x57f9[_0x757f3d];return _0x57f983;};const a1108_0x1bb27e=a1108_0x3b0a;'use strict';const util=require(a1108_0x1bb27e(0xaf)),logger=require(a1108_0x1bb27e(0xac))(a1108_0x1bb27e(0xb5)),Sequence=function(){};Sequence['prototype']['enqueue']=function(_0x476687){const _0x501211=a1108_0x1bb27e;this[_0x501211(0xa7)]=this[_0x501211(0xa7)]?this['tail']['finally'](_0x476687):_0x476687();};const Migration=function(_0x31546e){this['queryInterface']=_0x31546e,this['sequence']=new Sequence();};Migration[a1108_0x1bb27e(0xc6)][a1108_0x1bb27e(0xb3)]=function(_0x40835c,_0x20f371,_0x5808f4){const _0x3efc90=a1108_0x1bb27e,_0xa74587=this;this['sequence'][_0x3efc90(0xc4)](function(){const _0x268f47=_0x3efc90;return _0xa74587['queryInterface']['changeColumn'](_0x40835c,_0x20f371,_0x5808f4)[_0x268f47(0xb4)](function(){const _0x2a2c48=_0x268f47;logger[_0x2a2c48(0xa8)](_0x2a2c48(0xa5),_0x20f371,_0x40835c);})[_0x268f47(0xa4)](function(_0x26ba28){const _0x5a636c=_0x268f47;logger[_0x5a636c(0xa8)](JSON[_0x5a636c(0xb0)](_0x26ba28));});});},Migration[a1108_0x1bb27e(0xc6)][a1108_0x1bb27e(0xbd)]=function(_0x5cbd07,_0x43c35f,_0x2c0886){const _0x26bbf4=this;this['sequence']['enqueue'](function(){const _0x190f0e=a1108_0x3b0a;return _0x26bbf4['queryInterface']['addColumn'](_0x5cbd07,_0x43c35f,_0x2c0886)[_0x190f0e(0xb4)](function(){const _0x3b6844=_0x190f0e;logger[_0x3b6844(0xa8)](_0x3b6844(0xa6),_0x43c35f,_0x5cbd07);})[_0x190f0e(0xa4)](function(_0x13f517){const _0x373b30=_0x190f0e;logger['info'](JSON[_0x373b30(0xb0)](_0x13f517));});});},Migration['prototype'][a1108_0x1bb27e(0xba)]=function(_0xa3bacc){const _0x145598=a1108_0x1bb27e,_0x36027f=this;this[_0x145598(0xb2)][_0x145598(0xc4)](function(){const _0x2a7d00=_0x145598;return _0x36027f['queryInterface'][_0x2a7d00(0xba)](_0xa3bacc,{'force':!![]})[_0x2a7d00(0xb4)](function(){const _0x577ec2=_0x2a7d00;logger[_0x577ec2(0xa8)](_0x577ec2(0xc2),_0xa3bacc);})[_0x2a7d00(0xa4)](function(_0x8f11fe){const _0x40da22=_0x2a7d00;logger[_0x40da22(0xa8)](JSON[_0x40da22(0xb0)](_0x8f11fe));});});},Migration[a1108_0x1bb27e(0xc6)][a1108_0x1bb27e(0xbe)]=function(_0x35089c,_0x238682,_0x4579cf){const _0x13206f=a1108_0x1bb27e,_0x34153a=this;this['sequence'][_0x13206f(0xc4)](function(){const _0x2e61af=_0x13206f;return _0x34153a[_0x2e61af(0xc3)][_0x2e61af(0xbe)](_0x35089c,_0x238682,{'indexName':_0x4579cf})[_0x2e61af(0xb4)](function(){const _0x549c8a=_0x2e61af;logger['info'](_0x549c8a(0xa3),_0x35089c,_0x238682[_0x549c8a(0xc0)](','),_0x4579cf);})[_0x2e61af(0xa4)](function(_0x4786a8){const _0x266e89=_0x2e61af;logger[_0x266e89(0xa8)](JSON[_0x266e89(0xb0)](_0x4786a8));});});},Migration[a1108_0x1bb27e(0xc6)]['removeIndex']=function(_0x143944,_0x485233){const _0x2d5bd3=a1108_0x1bb27e,_0x1ca8c7=this;this[_0x2d5bd3(0xb2)][_0x2d5bd3(0xc4)](function(){const _0x43f682=_0x2d5bd3;return _0x1ca8c7[_0x43f682(0xc3)]['removeIndex'](_0x143944,_0x485233)[_0x43f682(0xb4)](function(){const _0x2e5d45=_0x43f682;logger[_0x2e5d45(0xa8)]('removeIndex\x20%s\x20%s',_0x143944,_0x485233);})[_0x43f682(0xa4)](function(_0xfcdc86){logger['info'](JSON['stringify'](_0xfcdc86));});});},Migration['prototype']['query']=function(_0xe6f0fa){const _0x138a00=a1108_0x1bb27e,_0x381b19=this;this['sequence'][_0x138a00(0xc4)](function(){const _0x5565d8=_0x138a00;return _0x381b19[_0x5565d8(0xc3)][_0x5565d8(0xb9)][_0x5565d8(0xc5)](_0xe6f0fa)[_0x5565d8(0xb4)](function(){const _0x22dcd2=_0x5565d8;logger[_0x22dcd2(0xa8)](_0x22dcd2(0xaa),_0xe6f0fa);})[_0x5565d8(0xa4)](function(_0x10d2d9){const _0x54c02d=_0x5565d8;logger[_0x54c02d(0xa8)](JSON[_0x54c02d(0xb0)](_0x10d2d9));});});},Migration['prototype']['removeColumn']=function(_0x5cc010,_0x41cefb){const _0x377ffa=this;this['sequence']['enqueue'](function(){const _0x1775e8=a1108_0x3b0a;return _0x377ffa[_0x1775e8(0xc3)][_0x1775e8(0xab)](_0x5cc010,_0x41cefb)[_0x1775e8(0xb4)](function(){const _0x13e968=_0x1775e8;logger[_0x13e968(0xa8)](_0x13e968(0xa9),_0x41cefb,_0x5cc010);})['catch'](function(_0x5732c8){const _0x909e1c=_0x1775e8;logger[_0x909e1c(0xa8)](util[_0x909e1c(0xa2)](_0x5732c8,{'showHidden':![],'depth':null}));});});},Migration[a1108_0x1bb27e(0xc6)]['renameColumn']=function(_0x4b409b,_0x2cb9af,_0x7be02e){const _0x57092f=a1108_0x1bb27e,_0x1bf711=this;this['sequence'][_0x57092f(0xc4)](function(){const _0x333fd7=_0x57092f;return _0x1bf711[_0x333fd7(0xc3)]['renameColumn'](_0x4b409b,_0x2cb9af,_0x7be02e)[_0x333fd7(0xb4)](function(){const _0x1d73a4=_0x333fd7;logger[_0x1d73a4(0xa8)](_0x1d73a4(0xb8),_0x2cb9af,_0x7be02e,_0x4b409b);})[_0x333fd7(0xa4)](function(_0x2ecb37){const _0x15eeee=_0x333fd7;logger['info'](util[_0x15eeee(0xa2)](_0x2ecb37,{'showHidden':![],'depth':null}));});});},Migration[a1108_0x1bb27e(0xc6)]['final']=function(_0x321844){const _0x458a75=a1108_0x1bb27e;this[_0x458a75(0xb2)][_0x458a75(0xc4)](function(){return _0x321844();});},module['exports']={'up':function(_0x556562,_0x36bbac){return new Promise(function(_0x17f76f){const _0x20f8da=a1108_0x3b0a,_0x1a4f66=new Migration(_0x556562);_0x1a4f66['query'](_0x20f8da(0xad)),_0x1a4f66[_0x20f8da(0xc5)]('INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Answer\x20Machine\x27,\x20NOW(),\x20NOW())'),_0x1a4f66[_0x20f8da(0xc5)]('INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Interested\x27,\x20NOW(),\x20NOW())'),_0x1a4f66['query'](_0x20f8da(0xbb)),_0x1a4f66['query'](_0x20f8da(0xc1)),_0x1a4f66[_0x20f8da(0xc5)]('INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Special\x27,\x20NOW(),\x20NOW())'),_0x1a4f66[_0x20f8da(0xbd)](_0x20f8da(0xb7),'mapKey',{'type':_0x36bbac['STRING']}),_0x1a4f66[_0x20f8da(0xbd)](_0x20f8da(0xbc),'closeReason',{'type':_0x36bbac[_0x20f8da(0xb1)]}),_0x1a4f66[_0x20f8da(0xbd)](_0x20f8da(0xae),_0x20f8da(0xb6),{'type':_0x36bbac[_0x20f8da(0xb1)]}),_0x1a4f66['query'](_0x20f8da(0xa1)),_0x1a4f66[_0x20f8da(0xbf)](_0x17f76f);});},'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 155fa76..f1532d5 100644 --- a/server/migrations/2.0.69.js +++ b/server/migrations/2.0.69.js @@ -1 +1 @@ -const a947_0x45b6=['voice_prefixes','prototype','catch','report_call','answer','removeColumn','removeIndex','query\x20%s','line','messageFontSize','INTEGER','renameColumn','dropTable','Removed\x20column\x20%s\x20from\x20%s','../config/logger','inspect','TEXT','voice_extensions','util','addIndex','update\x20voice_extensions\x20set\x20app\x20=\x20\x27ExecIf\x27,\x20appdata\x20=\x20CONCAT(\x27$[${LEN(${PREFIX-CALLERIDALL})}\x20>\x200]?Set(CALLERID(all)=${PREFIX-CALLERIDALL}):Set(\x27,\x20appdata,\x20\x27)\x27)\x20where\x20appdata\x20LIKE\x20CONCAT(\x27CALLERID(all)\x27,\x20\x27%\x27)\x20and\x20type\x20=\x20\x27outbound\x27','VoicePrefixId','info','chat_websites','removeIndex\x20%s\x20%s','DELETE\x20FROM\x20`user_has_voice_prefixes`','long','addColumn','Added\x20column\x20%s\x20to\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','addIndex\x20%s\x20%s\x20%s','tail','report_jscripty_answers','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','query','report_jscripty_questions','table\x20dropped\x20%s','prefix','cm_contacts','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','changeColumn','sequence','DELETE\x20FROM\x20`voice_prefixes`','queryInterface','stringify','then','final','tools_sounds','#fafafa','STRING','enqueue'];(function(_0x3d2441,_0x45b651){const _0xd3f092=function(_0x3aabe8){while(--_0x3aabe8){_0x3d2441['push'](_0x3d2441['shift']());}};_0xd3f092(++_0x45b651);}(a947_0x45b6,0x112));const a947_0xd3f0=function(_0x3d2441,_0x45b651){_0x3d2441=_0x3d2441-0x0;let _0xd3f092=a947_0x45b6[_0x3d2441];return _0xd3f092;};const _0x31197f=a947_0xd3f0;'use strict';const util=require(_0x31197f('0x32')),logger=require(_0x31197f('0x2e'))('migration'),Sequence=function(){};Sequence[_0x31197f('0x21')][_0x31197f('0x1f')]=function(_0x3aabe8){const _0xc9597f=_0x31197f;this[_0xc9597f('0xc')]=this[_0xc9597f('0xc')]?this['tail']['finally'](_0x3aabe8):_0x3aabe8();};const Migration=function(_0x9daa9d){const _0x52c7dc=_0x31197f;this[_0x52c7dc('0x18')]=_0x9daa9d,this[_0x52c7dc('0x16')]=new Sequence();};Migration[_0x31197f('0x21')][_0x31197f('0x15')]=function(_0x62fd3b,_0x277bb3,_0x4d7e20){const _0x23d5de=_0x31197f,_0x321d0e=this;this[_0x23d5de('0x16')][_0x23d5de('0x1f')](function(){const _0x1af651=_0x23d5de;return _0x321d0e[_0x1af651('0x18')][_0x1af651('0x15')](_0x62fd3b,_0x277bb3,_0x4d7e20)[_0x1af651('0x1a')](function(){const _0x3a4518=_0x1af651;logger[_0x3a4518('0x3')](_0x3a4518('0xa'),_0x277bb3,_0x62fd3b);})[_0x1af651('0x22')](function(_0x25cbdd){const _0xfb5c4d=_0x1af651;logger['info'](JSON[_0xfb5c4d('0x19')](_0x25cbdd));});});},Migration[_0x31197f('0x21')][_0x31197f('0x8')]=function(_0x44a0ce,_0x3d735e,_0x3b3b39){const _0x493a89=_0x31197f,_0x1bee4c=this;this[_0x493a89('0x16')][_0x493a89('0x1f')](function(){const _0x31263d=_0x493a89;return _0x1bee4c[_0x31263d('0x18')]['addColumn'](_0x44a0ce,_0x3d735e,_0x3b3b39)[_0x31263d('0x1a')](function(){const _0x5e5636=_0x31263d;logger[_0x5e5636('0x3')](_0x5e5636('0x9'),_0x3d735e,_0x44a0ce);})[_0x31263d('0x22')](function(_0x155a95){const _0x4c4905=_0x31263d;logger[_0x4c4905('0x3')](JSON[_0x4c4905('0x19')](_0x155a95));});});},Migration['prototype'][_0x31197f('0x2c')]=function(_0x4e763c){const _0x18ef94=_0x31197f,_0x3fdf22=this;this[_0x18ef94('0x16')][_0x18ef94('0x1f')](function(){const _0x251231=_0x18ef94;return _0x3fdf22[_0x251231('0x18')][_0x251231('0x2c')](_0x4e763c,{'force':!![]})[_0x251231('0x1a')](function(){const _0x139f6b=_0x251231;logger[_0x139f6b('0x3')](_0x139f6b('0x11'),_0x4e763c);})[_0x251231('0x22')](function(_0x3636d5){logger['info'](JSON['stringify'](_0x3636d5));});});},Migration['prototype'][_0x31197f('0x0')]=function(_0x3a27a3,_0x3ed237,_0x10f1bd){const _0x46dc41=_0x31197f,_0x5443b3=this;this[_0x46dc41('0x16')]['enqueue'](function(){const _0x17887c=_0x46dc41;return _0x5443b3['queryInterface'][_0x17887c('0x0')](_0x3a27a3,_0x3ed237,{'indexName':_0x10f1bd})[_0x17887c('0x1a')](function(){const _0xb1eb73=_0x17887c;logger[_0xb1eb73('0x3')](_0xb1eb73('0xb'),_0x3a27a3,_0x3ed237['join'](','),_0x10f1bd);})[_0x17887c('0x22')](function(_0x38bfae){const _0x20acfb=_0x17887c;logger[_0x20acfb('0x3')](JSON[_0x20acfb('0x19')](_0x38bfae));});});},Migration[_0x31197f('0x21')][_0x31197f('0x26')]=function(_0x1a7ada,_0x219071){const _0x4bcb0a=_0x31197f,_0x5db849=this;this[_0x4bcb0a('0x16')][_0x4bcb0a('0x1f')](function(){const _0x3eecbc=_0x4bcb0a;return _0x5db849[_0x3eecbc('0x18')][_0x3eecbc('0x26')](_0x1a7ada,_0x219071)[_0x3eecbc('0x1a')](function(){const _0x4d69e3=_0x3eecbc;logger[_0x4d69e3('0x3')](_0x4d69e3('0x5'),_0x1a7ada,_0x219071);})[_0x3eecbc('0x22')](function(_0x214f5b){const _0x3f9051=_0x3eecbc;logger[_0x3f9051('0x3')](JSON[_0x3f9051('0x19')](_0x214f5b));});});},Migration[_0x31197f('0x21')][_0x31197f('0xf')]=function(_0x3d30d0){const _0x5aff93=_0x31197f,_0x5b9970=this;this['sequence'][_0x5aff93('0x1f')](function(){const _0x45dfc4=_0x5aff93;return _0x5b9970[_0x45dfc4('0x18')]['sequelize'][_0x45dfc4('0xf')](_0x3d30d0)[_0x45dfc4('0x1a')](function(){const _0xccfbb0=_0x45dfc4;logger[_0xccfbb0('0x3')](_0xccfbb0('0x27'),_0x3d30d0);})[_0x45dfc4('0x22')](function(_0x1a0d77){const _0x22213f=_0x45dfc4;logger[_0x22213f('0x3')](JSON[_0x22213f('0x19')](_0x1a0d77));});});},Migration[_0x31197f('0x21')][_0x31197f('0x25')]=function(_0x135d0c,_0x14792e){const _0x159876=_0x31197f,_0x4be04d=this;this[_0x159876('0x16')]['enqueue'](function(){const _0x46a671=_0x159876;return _0x4be04d['queryInterface']['removeColumn'](_0x135d0c,_0x14792e)[_0x46a671('0x1a')](function(){const _0xf708c0=_0x46a671;logger['info'](_0xf708c0('0x2d'),_0x14792e,_0x135d0c);})[_0x46a671('0x22')](function(_0x4d8727){const _0x4251c3=_0x46a671;logger['info'](util[_0x4251c3('0x2f')](_0x4d8727,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x31197f('0x2b')]=function(_0x5e3f18,_0x19ec6f,_0x2f943e){const _0x177d9d=_0x31197f,_0x41628e=this;this[_0x177d9d('0x16')][_0x177d9d('0x1f')](function(){const _0x3c6b65=_0x177d9d;return _0x41628e[_0x3c6b65('0x18')][_0x3c6b65('0x2b')](_0x5e3f18,_0x19ec6f,_0x2f943e)['then'](function(){const _0x227c28=_0x3c6b65;logger[_0x227c28('0x3')](_0x227c28('0xe'),_0x19ec6f,_0x2f943e,_0x5e3f18);})['catch'](function(_0x8ed9dc){const _0x5d502c=_0x3c6b65;logger[_0x5d502c('0x3')](util[_0x5d502c('0x2f')](_0x8ed9dc,{'showHidden':![],'depth':null}));});});},Migration[_0x31197f('0x21')]['final']=function(_0x3817e6){const _0x517da1=_0x31197f;this[_0x517da1('0x16')][_0x517da1('0x1f')](function(){return _0x3817e6();});},module['exports']={'up':function(_0xd9343c,_0x3a72ef){return new Promise(function(_0x95a0b8){const _0x150c16=a947_0xd3f0,_0x3e5773=new Migration(_0xd9343c);_0x3e5773['changeColumn'](_0x150c16('0xd'),_0x150c16('0x24'),{'type':_0x3a72ef[_0x150c16('0x30')]('long')}),_0x3e5773[_0x150c16('0x15')](_0x150c16('0x10'),_0x150c16('0x24'),{'type':_0x3a72ef[_0x150c16('0x30')](_0x150c16('0x7'))}),_0x3e5773[_0x150c16('0xf')]('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)))'),_0x3e5773[_0x150c16('0x15')](_0x150c16('0x1c'),'name',{'type':_0x3a72ef[_0x150c16('0x1e')],'unique':!![],'allowNull':![]}),_0x3e5773[_0x150c16('0x8')](_0x150c16('0x4'),_0x150c16('0x29'),{'type':_0x3a72ef['INTEGER'],'defaultValue':0xc}),_0x3e5773[_0x150c16('0x8')]('chat_websites','backgroundColor',{'type':_0x3a72ef[_0x150c16('0x1e')],'allowNull':![],'defaultValue':_0x150c16('0x1d'),'validate':{'notEmpty':!![]}}),_0x3e5773[_0x150c16('0x8')](_0x150c16('0x13'),_0x150c16('0x28'),{'type':_0x3a72ef['STRING']}),_0x3e5773[_0x150c16('0xf')](_0x150c16('0x17')),_0x3e5773[_0x150c16('0xf')](_0x150c16('0x6')),_0x3e5773[_0x150c16('0x26')](_0x150c16('0x20'),_0x150c16('0x12')),_0x3e5773[_0x150c16('0x25')](_0x150c16('0x20'),_0x150c16('0x12')),_0x3e5773['addColumn'](_0x150c16('0x20'),'callerIdAll',{'type':_0x3a72ef['STRING']}),_0x3e5773[_0x150c16('0x8')](_0x150c16('0x20'),'VoiceExtensionId',{'type':_0x3a72ef[_0x150c16('0x2a')]}),_0x3e5773[_0x150c16('0x8')](_0x150c16('0x31'),_0x150c16('0x2'),{'type':_0x3a72ef[_0x150c16('0x2a')]}),_0x3e5773[_0x150c16('0xf')](_0x150c16('0x14')),_0x3e5773[_0x150c16('0xf')](_0x150c16('0x1')),_0x3e5773[_0x150c16('0x8')](_0x150c16('0x23'),_0x150c16('0x12'),{'type':_0x3a72ef[_0x150c16('0x1e')]}),_0x3e5773[_0x150c16('0x1b')](_0x95a0b8);});},'down':function(){}}; \ No newline at end of file +const a1109_0x454d=['changeColumn','TEXT','query','inspect','removeIndex','../config/logger','INTEGER','util','name','addIndex\x20%s\x20%s\x20%s','addIndex','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','enqueue','sequelize','final','Added\x20column\x20%s\x20to\x20%s','join','STRING','then','cm_contacts','dropTable','prefix','prototype','renameColumn','addColumn','voice_prefixes','catch','report_call','queryInterface','VoiceExtensionId','table\x20dropped\x20%s','removeIndex\x20%s\x20%s','info','exports','migration','chat_websites','messageFontSize','sequence','callerIdAll','#fafafa','stringify','report_jscripty_questions','VoicePrefixId','tail','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','DELETE\x20FROM\x20`user_has_voice_prefixes`','Removed\x20column\x20%s\x20from\x20%s','long','removeColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','answer'];(function(_0x346032,_0x356465){const _0x454d11=function(_0x48aa4a){while(--_0x48aa4a){_0x346032['push'](_0x346032['shift']());}};_0x454d11(++_0x356465);}(a1109_0x454d,0xf5));const a1109_0x48aa=function(_0x346032,_0x356465){_0x346032=_0x346032-0x77;let _0x454d11=a1109_0x454d[_0x346032];return _0x454d11;};const a1109_0xb9185a=a1109_0x48aa;'use strict';const util=require(a1109_0xb9185a(0x88)),logger=require(a1109_0xb9185a(0x86))(a1109_0xb9185a(0xa3)),Sequence=function(){};Sequence[a1109_0xb9185a(0x97)][a1109_0xb9185a(0x8d)]=function(_0x5055b0){const _0x1570c9=a1109_0xb9185a;this[_0x1570c9(0x79)]=this['tail']?this[_0x1570c9(0x79)]['finally'](_0x5055b0):_0x5055b0();};const Migration=function(_0xc193c5){this['queryInterface']=_0xc193c5,this['sequence']=new Sequence();};Migration[a1109_0xb9185a(0x97)][a1109_0xb9185a(0x81)]=function(_0x922934,_0x3815f7,_0x408077){const _0x4887b4=a1109_0xb9185a,_0x82126c=this;this[_0x4887b4(0xa6)][_0x4887b4(0x8d)](function(){const _0x588d76=_0x4887b4;return _0x82126c[_0x588d76(0x9d)]['changeColumn'](_0x922934,_0x3815f7,_0x408077)[_0x588d76(0x93)](function(){const _0x56ee93=_0x588d76;logger[_0x56ee93(0xa1)]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x3815f7,_0x922934);})[_0x588d76(0x9b)](function(_0x307b89){const _0x5613dc=_0x588d76;logger[_0x5613dc(0xa1)](JSON[_0x5613dc(0xa9)](_0x307b89));});});},Migration['prototype'][a1109_0xb9185a(0x99)]=function(_0x114247,_0x28f466,_0x149e5c){const _0x4199fe=a1109_0xb9185a,_0x229529=this;this['sequence'][_0x4199fe(0x8d)](function(){const _0x277023=_0x4199fe;return _0x229529[_0x277023(0x9d)]['addColumn'](_0x114247,_0x28f466,_0x149e5c)[_0x277023(0x93)](function(){const _0x3883b4=_0x277023;logger[_0x3883b4(0xa1)](_0x3883b4(0x90),_0x28f466,_0x114247);})['catch'](function(_0x145fa4){const _0x5081eb=_0x277023;logger[_0x5081eb(0xa1)](JSON[_0x5081eb(0xa9)](_0x145fa4));});});},Migration[a1109_0xb9185a(0x97)][a1109_0xb9185a(0x95)]=function(_0x56a74f){const _0x324b16=a1109_0xb9185a,_0x55f6a5=this;this[_0x324b16(0xa6)][_0x324b16(0x8d)](function(){const _0x141e7c=_0x324b16;return _0x55f6a5[_0x141e7c(0x9d)][_0x141e7c(0x95)](_0x56a74f,{'force':!![]})[_0x141e7c(0x93)](function(){const _0x321d50=_0x141e7c;logger['info'](_0x321d50(0x9f),_0x56a74f);})[_0x141e7c(0x9b)](function(_0x16850b){const _0x2c7add=_0x141e7c;logger[_0x2c7add(0xa1)](JSON['stringify'](_0x16850b));});});},Migration[a1109_0xb9185a(0x97)]['addIndex']=function(_0x47787b,_0xa3eab3,_0x45fa40){const _0x316249=a1109_0xb9185a,_0x133385=this;this[_0x316249(0xa6)]['enqueue'](function(){const _0x4d3a62=_0x316249;return _0x133385[_0x4d3a62(0x9d)][_0x4d3a62(0x8b)](_0x47787b,_0xa3eab3,{'indexName':_0x45fa40})[_0x4d3a62(0x93)](function(){const _0x170ecb=_0x4d3a62;logger[_0x170ecb(0xa1)](_0x170ecb(0x8a),_0x47787b,_0xa3eab3[_0x170ecb(0x91)](','),_0x45fa40);})[_0x4d3a62(0x9b)](function(_0x14c557){const _0x23bbd3=_0x4d3a62;logger[_0x23bbd3(0xa1)](JSON[_0x23bbd3(0xa9)](_0x14c557));});});},Migration[a1109_0xb9185a(0x97)][a1109_0xb9185a(0x85)]=function(_0x11cb0b,_0x578060){const _0x47ade4=a1109_0xb9185a,_0x3f146d=this;this[_0x47ade4(0xa6)][_0x47ade4(0x8d)](function(){const _0x434e05=_0x47ade4;return _0x3f146d[_0x434e05(0x9d)]['removeIndex'](_0x11cb0b,_0x578060)['then'](function(){const _0x6a968f=_0x434e05;logger[_0x6a968f(0xa1)](_0x6a968f(0xa0),_0x11cb0b,_0x578060);})[_0x434e05(0x9b)](function(_0x5b7dd4){const _0x4bc644=_0x434e05;logger[_0x4bc644(0xa1)](JSON['stringify'](_0x5b7dd4));});});},Migration[a1109_0xb9185a(0x97)][a1109_0xb9185a(0x83)]=function(_0x121221){const _0x44dd89=a1109_0xb9185a,_0x501607=this;this[_0x44dd89(0xa6)][_0x44dd89(0x8d)](function(){const _0x501e63=_0x44dd89;return _0x501607[_0x501e63(0x9d)][_0x501e63(0x8e)][_0x501e63(0x83)](_0x121221)[_0x501e63(0x93)](function(){const _0x1d8b0c=_0x501e63;logger[_0x1d8b0c(0xa1)]('query\x20%s',_0x121221);})['catch'](function(_0x1c8d75){const _0x359fdf=_0x501e63;logger[_0x359fdf(0xa1)](JSON[_0x359fdf(0xa9)](_0x1c8d75));});});},Migration[a1109_0xb9185a(0x97)][a1109_0xb9185a(0x7e)]=function(_0x4ba5e1,_0x1698f1){const _0x1043fc=a1109_0xb9185a,_0x5af4cf=this;this[_0x1043fc(0xa6)][_0x1043fc(0x8d)](function(){const _0x4ba382=_0x1043fc;return _0x5af4cf[_0x4ba382(0x9d)][_0x4ba382(0x7e)](_0x4ba5e1,_0x1698f1)[_0x4ba382(0x93)](function(){const _0x22f301=_0x4ba382;logger[_0x22f301(0xa1)](_0x22f301(0x7c),_0x1698f1,_0x4ba5e1);})['catch'](function(_0x18063b){logger['info'](util['inspect'](_0x18063b,{'showHidden':![],'depth':null}));});});},Migration[a1109_0xb9185a(0x97)][a1109_0xb9185a(0x98)]=function(_0x1d6a42,_0x18734d,_0x436eae){const _0x31e2ff=a1109_0xb9185a,_0x4a43b1=this;this['sequence'][_0x31e2ff(0x8d)](function(){const _0x2a5a49=_0x31e2ff;return _0x4a43b1[_0x2a5a49(0x9d)][_0x2a5a49(0x98)](_0x1d6a42,_0x18734d,_0x436eae)[_0x2a5a49(0x93)](function(){const _0x3df954=_0x2a5a49;logger[_0x3df954(0xa1)](_0x3df954(0x7f),_0x18734d,_0x436eae,_0x1d6a42);})[_0x2a5a49(0x9b)](function(_0x52ba3a){const _0x4bc1a1=_0x2a5a49;logger[_0x4bc1a1(0xa1)](util[_0x4bc1a1(0x84)](_0x52ba3a,{'showHidden':![],'depth':null}));});});},Migration[a1109_0xb9185a(0x97)][a1109_0xb9185a(0x8f)]=function(_0x3ad012){const _0x4e8e59=a1109_0xb9185a;this['sequence'][_0x4e8e59(0x8d)](function(){return _0x3ad012();});},module[a1109_0xb9185a(0xa2)]={'up':function(_0xdb6aa2,_0x1d26fd){return new Promise(function(_0x355f06){const _0x5750e0=a1109_0x48aa,_0x13b1ae=new Migration(_0xdb6aa2);_0x13b1ae['changeColumn']('report_jscripty_answers',_0x5750e0(0x80),{'type':_0x1d26fd[_0x5750e0(0x82)](_0x5750e0(0x7d))}),_0x13b1ae[_0x5750e0(0x81)](_0x5750e0(0x77),_0x5750e0(0x80),{'type':_0x1d26fd['TEXT']('long')}),_0x13b1ae[_0x5750e0(0x83)]('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)))'),_0x13b1ae['changeColumn']('tools_sounds',_0x5750e0(0x89),{'type':_0x1d26fd[_0x5750e0(0x92)],'unique':!![],'allowNull':![]}),_0x13b1ae[_0x5750e0(0x99)](_0x5750e0(0xa4),_0x5750e0(0xa5),{'type':_0x1d26fd[_0x5750e0(0x87)],'defaultValue':0xc}),_0x13b1ae[_0x5750e0(0x99)](_0x5750e0(0xa4),'backgroundColor',{'type':_0x1d26fd[_0x5750e0(0x92)],'allowNull':![],'defaultValue':_0x5750e0(0xa8),'validate':{'notEmpty':!![]}}),_0x13b1ae['addColumn'](_0x5750e0(0x94),'line',{'type':_0x1d26fd[_0x5750e0(0x92)]}),_0x13b1ae[_0x5750e0(0x83)]('DELETE\x20FROM\x20`voice_prefixes`'),_0x13b1ae[_0x5750e0(0x83)](_0x5750e0(0x7b)),_0x13b1ae[_0x5750e0(0x85)]('voice_prefixes','prefix'),_0x13b1ae[_0x5750e0(0x7e)](_0x5750e0(0x9a),'prefix'),_0x13b1ae[_0x5750e0(0x99)](_0x5750e0(0x9a),_0x5750e0(0xa7),{'type':_0x1d26fd[_0x5750e0(0x92)]}),_0x13b1ae[_0x5750e0(0x99)](_0x5750e0(0x9a),_0x5750e0(0x9e),{'type':_0x1d26fd['INTEGER']}),_0x13b1ae[_0x5750e0(0x99)]('voice_extensions',_0x5750e0(0x78),{'type':_0x1d26fd[_0x5750e0(0x87)]}),_0x13b1ae[_0x5750e0(0x83)](_0x5750e0(0x8c)),_0x13b1ae[_0x5750e0(0x83)](_0x5750e0(0x7a)),_0x13b1ae[_0x5750e0(0x99)](_0x5750e0(0x9c),_0x5750e0(0x96),{'type':_0x1d26fd[_0x5750e0(0x92)]}),_0x13b1ae[_0x5750e0(0x8f)](_0x355f06);});},'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 c4ecee8..50ef1ff 100644 --- a/server/migrations/2.0.70.js +++ b/server/migrations/2.0.70.js @@ -1 +1 @@ -const a948_0x338f=['util','changeColumn','exports','join','Removed\x20column\x20%s\x20from\x20%s','removeIndex','then','INTEGER','tail','query\x20%s','catch','final','addIndex','table\x20dropped\x20%s','sequence','migration','renameColumn','addColumn','Added\x20column\x20%s\x20to\x20%s','stringify','dropTable','removeColumn','ALTER\x20TABLE\x20int_vtiger_accounts\x20ENCRYPTION=\x27Y\x27;','sequelize','info','removeIndex\x20%s\x20%s','prototype','report_queue','query','enqueue','queryInterface'];(function(_0x5d8c0b,_0x338f4d){const _0x5dc922=function(_0x57a1fc){while(--_0x57a1fc){_0x5d8c0b['push'](_0x5d8c0b['shift']());}};_0x5dc922(++_0x338f4d);}(a948_0x338f,0x6e));const a948_0x5dc9=function(_0x5d8c0b,_0x338f4d){_0x5d8c0b=_0x5d8c0b-0x0;let _0x5dc922=a948_0x338f[_0x5d8c0b];return _0x5dc922;};const _0x147d28=a948_0x5dc9;'use strict';const util=require(_0x147d28('0xe')),logger=require('../config/logger')(_0x147d28('0x1d')),Sequence=function(){};Sequence['prototype']['enqueue']=function(_0x57a1fc){const _0x1a67e3=_0x147d28;this['tail']=this['tail']?this[_0x1a67e3('0x16')]['finally'](_0x57a1fc):_0x57a1fc();};const Migration=function(_0x1eede6){const _0x37651e=_0x147d28;this[_0x37651e('0xd')]=_0x1eede6,this[_0x37651e('0x1c')]=new Sequence();};Migration['prototype'][_0x147d28('0xf')]=function(_0x13a7a7,_0x3613ce,_0x14b388){const _0x1b838a=_0x147d28,_0x398d94=this;this[_0x1b838a('0x1c')][_0x1b838a('0xc')](function(){const _0x5824b3=_0x1b838a;return _0x398d94[_0x5824b3('0xd')][_0x5824b3('0xf')](_0x13a7a7,_0x3613ce,_0x14b388)[_0x5824b3('0x14')](function(){const _0x4f8d6a=_0x5824b3;logger[_0x4f8d6a('0x7')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x3613ce,_0x13a7a7);})[_0x5824b3('0x18')](function(_0x51225c){const _0x361c53=_0x5824b3;logger[_0x361c53('0x7')](JSON[_0x361c53('0x2')](_0x51225c));});});},Migration[_0x147d28('0x9')][_0x147d28('0x0')]=function(_0x15cdfd,_0x3a9e14,_0x2353b1){const _0x2594f2=_0x147d28,_0x5347f8=this;this['sequence'][_0x2594f2('0xc')](function(){const _0x2e81d2=_0x2594f2;return _0x5347f8[_0x2e81d2('0xd')]['addColumn'](_0x15cdfd,_0x3a9e14,_0x2353b1)['then'](function(){const _0xd217c5=_0x2e81d2;logger[_0xd217c5('0x7')](_0xd217c5('0x1'),_0x3a9e14,_0x15cdfd);})[_0x2e81d2('0x18')](function(_0x3bfea1){const _0x44c184=_0x2e81d2;logger[_0x44c184('0x7')](JSON['stringify'](_0x3bfea1));});});},Migration[_0x147d28('0x9')][_0x147d28('0x3')]=function(_0x2c8453){const _0x51dc01=_0x147d28,_0x2af539=this;this[_0x51dc01('0x1c')][_0x51dc01('0xc')](function(){const _0x4a12d0=_0x51dc01;return _0x2af539[_0x4a12d0('0xd')][_0x4a12d0('0x3')](_0x2c8453,{'force':!![]})['then'](function(){const _0x229d82=_0x4a12d0;logger[_0x229d82('0x7')](_0x229d82('0x1b'),_0x2c8453);})[_0x4a12d0('0x18')](function(_0x6f3bcc){const _0xbccbcf=_0x4a12d0;logger['info'](JSON[_0xbccbcf('0x2')](_0x6f3bcc));});});},Migration[_0x147d28('0x9')]['addIndex']=function(_0x592f2a,_0x384b34,_0x451c54){const _0x5ce66b=_0x147d28,_0x302653=this;this[_0x5ce66b('0x1c')]['enqueue'](function(){const _0x3825c4=_0x5ce66b;return _0x302653['queryInterface'][_0x3825c4('0x1a')](_0x592f2a,_0x384b34,{'indexName':_0x451c54})[_0x3825c4('0x14')](function(){const _0x1045c0=_0x3825c4;logger['info']('addIndex\x20%s\x20%s\x20%s',_0x592f2a,_0x384b34[_0x1045c0('0x11')](','),_0x451c54);})[_0x3825c4('0x18')](function(_0x11d7d4){const _0x2b848c=_0x3825c4;logger['info'](JSON[_0x2b848c('0x2')](_0x11d7d4));});});},Migration[_0x147d28('0x9')][_0x147d28('0x13')]=function(_0x53ef65,_0x2e067e){const _0x28c371=_0x147d28,_0x2b4cb1=this;this[_0x28c371('0x1c')][_0x28c371('0xc')](function(){const _0x44061d=_0x28c371;return _0x2b4cb1[_0x44061d('0xd')][_0x44061d('0x13')](_0x53ef65,_0x2e067e)[_0x44061d('0x14')](function(){const _0x457143=_0x44061d;logger[_0x457143('0x7')](_0x457143('0x8'),_0x53ef65,_0x2e067e);})[_0x44061d('0x18')](function(_0xb3d7ce){const _0x163e11=_0x44061d;logger['info'](JSON[_0x163e11('0x2')](_0xb3d7ce));});});},Migration[_0x147d28('0x9')][_0x147d28('0xb')]=function(_0x1f6b55){const _0x4dbc52=_0x147d28,_0x4b698a=this;this[_0x4dbc52('0x1c')][_0x4dbc52('0xc')](function(){const _0x2f58d8=_0x4dbc52;return _0x4b698a['queryInterface'][_0x2f58d8('0x6')][_0x2f58d8('0xb')](_0x1f6b55)['then'](function(){const _0x1554d6=_0x2f58d8;logger['info'](_0x1554d6('0x17'),_0x1f6b55);})[_0x2f58d8('0x18')](function(_0x5ace2f){const _0xdacec0=_0x2f58d8;logger[_0xdacec0('0x7')](JSON[_0xdacec0('0x2')](_0x5ace2f));});});},Migration['prototype'][_0x147d28('0x4')]=function(_0x1fd817,_0x2c746e){const _0x150762=_0x147d28,_0x3b8458=this;this['sequence'][_0x150762('0xc')](function(){const _0x7d6cd4=_0x150762;return _0x3b8458[_0x7d6cd4('0xd')]['removeColumn'](_0x1fd817,_0x2c746e)[_0x7d6cd4('0x14')](function(){const _0x2692ef=_0x7d6cd4;logger[_0x2692ef('0x7')](_0x2692ef('0x12'),_0x2c746e,_0x1fd817);})[_0x7d6cd4('0x18')](function(_0x2e4a02){const _0x12d404=_0x7d6cd4;logger[_0x12d404('0x7')](util['inspect'](_0x2e4a02,{'showHidden':![],'depth':null}));});});},Migration[_0x147d28('0x9')][_0x147d28('0x1e')]=function(_0x8db559,_0x20724b,_0x56fec7){const _0x30698d=_0x147d28,_0x3cf5a4=this;this[_0x30698d('0x1c')]['enqueue'](function(){const _0x179637=_0x30698d;return _0x3cf5a4[_0x179637('0xd')][_0x179637('0x1e')](_0x8db559,_0x20724b,_0x56fec7)['then'](function(){const _0xeae587=_0x179637;logger[_0xeae587('0x7')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x20724b,_0x56fec7,_0x8db559);})[_0x179637('0x18')](function(_0x55246d){logger['info'](util['inspect'](_0x55246d,{'showHidden':![],'depth':null}));});});},Migration[_0x147d28('0x9')][_0x147d28('0x19')]=function(_0xc24c87){const _0x4f1073=_0x147d28;this[_0x4f1073('0x1c')][_0x4f1073('0xc')](function(){return _0xc24c87();});},module[_0x147d28('0x10')]={'up':function(_0x39690a,_0x44f1b7){return new Promise(function(_0x373f0d){const _0x43226d=a948_0x5dc9,_0x53c7af=new Migration(_0x39690a);_0x53c7af[_0x43226d('0x0')](_0x43226d('0xa'),'mohtime',{'type':_0x44f1b7[_0x43226d('0x15')],'defaultValue':0x0}),_0x53c7af['addColumn']('report_call','mohtime',{'type':_0x44f1b7['INTEGER'],'defaultValue':0x0}),_0x53c7af[_0x43226d('0xb')](_0x43226d('0x5')),_0x53c7af[_0x43226d('0x19')](_0x373f0d);});},'down':function(){}}; \ No newline at end of file +const a1110_0xb23c=['Removed\x20column\x20%s\x20from\x20%s','mohtime','Added\x20column\x20%s\x20to\x20%s','exports','removeIndex','queryInterface','removeColumn','prototype','dropTable','renameColumn','sequence','addIndex','../config/logger','removeIndex\x20%s\x20%s','enqueue','tail','report_queue','query\x20%s','inspect','then','query','info','INTEGER','Changed\x20column\x20%s\x20in\x20table\x20%s','addColumn','join','table\x20dropped\x20%s','sequelize','stringify','ALTER\x20TABLE\x20int_vtiger_accounts\x20ENCRYPTION=\x27Y\x27;','final','catch','migration'];(function(_0x4d5c2f,_0x3dff8f){const _0xb23c66=function(_0x2cec46){while(--_0x2cec46){_0x4d5c2f['push'](_0x4d5c2f['shift']());}};_0xb23c66(++_0x3dff8f);}(a1110_0xb23c,0x106));const a1110_0x2cec=function(_0x4d5c2f,_0x3dff8f){_0x4d5c2f=_0x4d5c2f-0xaa;let _0xb23c66=a1110_0xb23c[_0x4d5c2f];return _0xb23c66;};const a1110_0x4881c1=a1110_0x2cec;'use strict';const util=require('util'),logger=require(a1110_0x4881c1(0xb8))(a1110_0x4881c1(0xab)),Sequence=function(){};Sequence[a1110_0x4881c1(0xb3)]['enqueue']=function(_0x15d9bc){const _0xb92fb9=a1110_0x4881c1;this[_0xb92fb9(0xbb)]=this[_0xb92fb9(0xbb)]?this['tail']['finally'](_0x15d9bc):_0x15d9bc();};const Migration=function(_0x30eaa0){const _0x1bcb67=a1110_0x4881c1;this[_0x1bcb67(0xb1)]=_0x30eaa0,this['sequence']=new Sequence();};Migration['prototype']['changeColumn']=function(_0x4d9d42,_0x55e324,_0x5d5e94){const _0x534af1=a1110_0x4881c1,_0x426d30=this;this['sequence'][_0x534af1(0xba)](function(){const _0xbdba38=_0x534af1;return _0x426d30[_0xbdba38(0xb1)]['changeColumn'](_0x4d9d42,_0x55e324,_0x5d5e94)[_0xbdba38(0xbf)](function(){const _0x16535d=_0xbdba38;logger[_0x16535d(0xc1)](_0x16535d(0xc3),_0x55e324,_0x4d9d42);})['catch'](function(_0x18509f){const _0x1c3424=_0xbdba38;logger['info'](JSON[_0x1c3424(0xc8)](_0x18509f));});});},Migration['prototype']['addColumn']=function(_0x5f56ab,_0x296e71,_0x270b67){const _0x3ef0d6=a1110_0x4881c1,_0x51ceee=this;this[_0x3ef0d6(0xb6)][_0x3ef0d6(0xba)](function(){const _0x2605a5=_0x3ef0d6;return _0x51ceee[_0x2605a5(0xb1)][_0x2605a5(0xc4)](_0x5f56ab,_0x296e71,_0x270b67)[_0x2605a5(0xbf)](function(){const _0x33ac92=_0x2605a5;logger['info'](_0x33ac92(0xae),_0x296e71,_0x5f56ab);})[_0x2605a5(0xaa)](function(_0xa3576a){const _0x463d19=_0x2605a5;logger['info'](JSON[_0x463d19(0xc8)](_0xa3576a));});});},Migration[a1110_0x4881c1(0xb3)][a1110_0x4881c1(0xb4)]=function(_0x501f61){const _0x1418b2=a1110_0x4881c1,_0x493c3b=this;this[_0x1418b2(0xb6)][_0x1418b2(0xba)](function(){const _0x3033c5=_0x1418b2;return _0x493c3b[_0x3033c5(0xb1)][_0x3033c5(0xb4)](_0x501f61,{'force':!![]})[_0x3033c5(0xbf)](function(){const _0x4185f9=_0x3033c5;logger[_0x4185f9(0xc1)](_0x4185f9(0xc6),_0x501f61);})['catch'](function(_0x141fc2){const _0x3ed60c=_0x3033c5;logger[_0x3ed60c(0xc1)](JSON[_0x3ed60c(0xc8)](_0x141fc2));});});},Migration[a1110_0x4881c1(0xb3)]['addIndex']=function(_0x3e6d89,_0x230c51,_0x251a87){const _0x276149=a1110_0x4881c1,_0x4bd00b=this;this['sequence'][_0x276149(0xba)](function(){const _0x40b232=_0x276149;return _0x4bd00b[_0x40b232(0xb1)][_0x40b232(0xb7)](_0x3e6d89,_0x230c51,{'indexName':_0x251a87})['then'](function(){const _0xc6d53e=_0x40b232;logger[_0xc6d53e(0xc1)]('addIndex\x20%s\x20%s\x20%s',_0x3e6d89,_0x230c51[_0xc6d53e(0xc5)](','),_0x251a87);})[_0x40b232(0xaa)](function(_0x36ae3f){const _0x462455=_0x40b232;logger[_0x462455(0xc1)](JSON[_0x462455(0xc8)](_0x36ae3f));});});},Migration[a1110_0x4881c1(0xb3)][a1110_0x4881c1(0xb0)]=function(_0x3bf881,_0x5380b3){const _0x17b8a5=a1110_0x4881c1,_0x1eb1ab=this;this[_0x17b8a5(0xb6)][_0x17b8a5(0xba)](function(){const _0x14d84b=_0x17b8a5;return _0x1eb1ab[_0x14d84b(0xb1)][_0x14d84b(0xb0)](_0x3bf881,_0x5380b3)['then'](function(){const _0x232156=_0x14d84b;logger[_0x232156(0xc1)](_0x232156(0xb9),_0x3bf881,_0x5380b3);})[_0x14d84b(0xaa)](function(_0x38b969){const _0xe996b=_0x14d84b;logger[_0xe996b(0xc1)](JSON[_0xe996b(0xc8)](_0x38b969));});});},Migration[a1110_0x4881c1(0xb3)][a1110_0x4881c1(0xc0)]=function(_0x50116b){const _0x2e694b=a1110_0x4881c1,_0x2ecf13=this;this[_0x2e694b(0xb6)][_0x2e694b(0xba)](function(){const _0x1f9c1f=_0x2e694b;return _0x2ecf13[_0x1f9c1f(0xb1)][_0x1f9c1f(0xc7)]['query'](_0x50116b)['then'](function(){const _0x52e650=_0x1f9c1f;logger['info'](_0x52e650(0xbd),_0x50116b);})[_0x1f9c1f(0xaa)](function(_0x405676){const _0x22a21c=_0x1f9c1f;logger[_0x22a21c(0xc1)](JSON[_0x22a21c(0xc8)](_0x405676));});});},Migration[a1110_0x4881c1(0xb3)][a1110_0x4881c1(0xb2)]=function(_0x43b4d3,_0x43d02a){const _0x4e3ea0=a1110_0x4881c1,_0x4239fe=this;this[_0x4e3ea0(0xb6)][_0x4e3ea0(0xba)](function(){const _0x3fa553=_0x4e3ea0;return _0x4239fe['queryInterface'][_0x3fa553(0xb2)](_0x43b4d3,_0x43d02a)['then'](function(){const _0x37533c=_0x3fa553;logger[_0x37533c(0xc1)](_0x37533c(0xac),_0x43d02a,_0x43b4d3);})[_0x3fa553(0xaa)](function(_0x4d3a36){const _0x38e76b=_0x3fa553;logger[_0x38e76b(0xc1)](util[_0x38e76b(0xbe)](_0x4d3a36,{'showHidden':![],'depth':null}));});});},Migration[a1110_0x4881c1(0xb3)][a1110_0x4881c1(0xb5)]=function(_0x326d86,_0x3a9319,_0x3e26a8){const _0x3bf77f=a1110_0x4881c1,_0x4de97d=this;this[_0x3bf77f(0xb6)][_0x3bf77f(0xba)](function(){const _0x1f0913=_0x3bf77f;return _0x4de97d['queryInterface'][_0x1f0913(0xb5)](_0x326d86,_0x3a9319,_0x3e26a8)['then'](function(){const _0x31c32e=_0x1f0913;logger[_0x31c32e(0xc1)]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x3a9319,_0x3e26a8,_0x326d86);})['catch'](function(_0x3c6a19){const _0x4cb920=_0x1f0913;logger[_0x4cb920(0xc1)](util[_0x4cb920(0xbe)](_0x3c6a19,{'showHidden':![],'depth':null}));});});},Migration[a1110_0x4881c1(0xb3)][a1110_0x4881c1(0xca)]=function(_0x22aa60){const _0x3b5af7=a1110_0x4881c1;this[_0x3b5af7(0xb6)][_0x3b5af7(0xba)](function(){return _0x22aa60();});},module[a1110_0x4881c1(0xaf)]={'up':function(_0x419687,_0x3207d7){return new Promise(function(_0x5756cf){const _0x4749b5=a1110_0x2cec,_0x483405=new Migration(_0x419687);_0x483405[_0x4749b5(0xc4)](_0x4749b5(0xbc),_0x4749b5(0xad),{'type':_0x3207d7[_0x4749b5(0xc2)],'defaultValue':0x0}),_0x483405[_0x4749b5(0xc4)]('report_call',_0x4749b5(0xad),{'type':_0x3207d7['INTEGER'],'defaultValue':0x0}),_0x483405[_0x4749b5(0xc0)](_0x4749b5(0xc9)),_0x483405[_0x4749b5(0xca)](_0x5756cf);});},'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 4199b35..3d796f7 100644 --- a/server/migrations/2.0.71.js +++ b/server/migrations/2.0.71.js @@ -1 +1 @@ -const a949_0x7585=['INTEGER','fax_accounts','systemAlias','chatTimeout','dropTable','Changed\x20column\x20%s\x20in\x20table\x20%s','util','queueTransfer','tail','addColumn','query\x20%s','stringify','sequelize','../config/logger','sequence','queueTransferTimeout','addIndex','settings','info','TEXT','changeColumn','prototype','sms_accounts','systemAvatar','data7','migration','renameColumn','openchannel_accounts','agentTransferTimeout','removeIndex','final','agentTransfer','enqueue','inspect','catch','System','finally','license','addIndex\x20%s\x20%s\x20%s','UPDATE\x20settings\x20SET\x20chatTimeout\x20=\x200;','table\x20dropped\x20%s','BOOLEAN','STRING','chat_websites','join','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','tools_actions','Added\x20column\x20%s\x20to\x20%s','then','query','queryInterface','chatLicenseExceeded','removeColumn'];(function(_0x1b8b24,_0x758517){const _0x44a25f=function(_0x34f3da){while(--_0x34f3da){_0x1b8b24['push'](_0x1b8b24['shift']());}};_0x44a25f(++_0x758517);}(a949_0x7585,0x1dd));const a949_0x44a2=function(_0x1b8b24,_0x758517){_0x1b8b24=_0x1b8b24-0x0;let _0x44a25f=a949_0x7585[_0x1b8b24];return _0x44a25f;};const _0x1652ab=a949_0x44a2;'use strict';const util=require(_0x1652ab('0x6')),logger=require(_0x1652ab('0xd'))(_0x1652ab('0x19')),Sequence=function(){};Sequence[_0x1652ab('0x15')][_0x1652ab('0x20')]=function(_0x34f3da){const _0x436bfd=_0x1652ab;this[_0x436bfd('0x8')]=this[_0x436bfd('0x8')]?this['tail'][_0x436bfd('0x24')](_0x34f3da):_0x34f3da();};const Migration=function(_0x1c56f4){const _0x4240e9=_0x1652ab;this[_0x4240e9('0x32')]=_0x1c56f4,this['sequence']=new Sequence();};Migration[_0x1652ab('0x15')]['changeColumn']=function(_0x39b162,_0x8aead5,_0x56cc11){const _0x5a098c=_0x1652ab,_0x34997e=this;this['sequence'][_0x5a098c('0x20')](function(){const _0x16e6db=_0x5a098c;return _0x34997e[_0x16e6db('0x32')][_0x16e6db('0x14')](_0x39b162,_0x8aead5,_0x56cc11)['then'](function(){const _0x3fbbf7=_0x16e6db;logger['info'](_0x3fbbf7('0x5'),_0x8aead5,_0x39b162);})[_0x16e6db('0x22')](function(_0x1c201e){const _0x2d78f4=_0x16e6db;logger[_0x2d78f4('0x12')](JSON[_0x2d78f4('0xb')](_0x1c201e));});});},Migration['prototype'][_0x1652ab('0x9')]=function(_0x45d226,_0x55d995,_0x5656b9){const _0x1eae64=_0x1652ab,_0x19fc82=this;this[_0x1eae64('0xe')][_0x1eae64('0x20')](function(){const _0x46c1ac=_0x1eae64;return _0x19fc82['queryInterface'][_0x46c1ac('0x9')](_0x45d226,_0x55d995,_0x5656b9)[_0x46c1ac('0x30')](function(){const _0x115460=_0x46c1ac;logger[_0x115460('0x12')](_0x115460('0x2f'),_0x55d995,_0x45d226);})[_0x46c1ac('0x22')](function(_0x56719e){const _0x3f2372=_0x46c1ac;logger[_0x3f2372('0x12')](JSON['stringify'](_0x56719e));});});},Migration[_0x1652ab('0x15')]['dropTable']=function(_0x360178){const _0xa0ef41=_0x1652ab,_0x384988=this;this['sequence'][_0xa0ef41('0x20')](function(){const _0xdd6b0f=_0xa0ef41;return _0x384988[_0xdd6b0f('0x32')][_0xdd6b0f('0x4')](_0x360178,{'force':!![]})[_0xdd6b0f('0x30')](function(){const _0xb1f598=_0xdd6b0f;logger['info'](_0xb1f598('0x28'),_0x360178);})[_0xdd6b0f('0x22')](function(_0x4bc7e1){const _0x59f004=_0xdd6b0f;logger['info'](JSON[_0x59f004('0xb')](_0x4bc7e1));});});},Migration[_0x1652ab('0x15')][_0x1652ab('0x10')]=function(_0x58309f,_0x5a871b,_0x15fed4){const _0x75608=_0x1652ab,_0x2f15ca=this;this['sequence'][_0x75608('0x20')](function(){const _0x2e1b8f=_0x75608;return _0x2f15ca[_0x2e1b8f('0x32')][_0x2e1b8f('0x10')](_0x58309f,_0x5a871b,{'indexName':_0x15fed4})[_0x2e1b8f('0x30')](function(){const _0x2a4ba9=_0x2e1b8f;logger[_0x2a4ba9('0x12')](_0x2a4ba9('0x26'),_0x58309f,_0x5a871b[_0x2a4ba9('0x2c')](','),_0x15fed4);})[_0x2e1b8f('0x22')](function(_0x59f283){const _0xf80f00=_0x2e1b8f;logger[_0xf80f00('0x12')](JSON[_0xf80f00('0xb')](_0x59f283));});});},Migration[_0x1652ab('0x15')][_0x1652ab('0x1d')]=function(_0x46754c,_0x1d0b5f){const _0x21a1e4=_0x1652ab,_0x27ff28=this;this[_0x21a1e4('0xe')][_0x21a1e4('0x20')](function(){const _0x254434=_0x21a1e4;return _0x27ff28[_0x254434('0x32')][_0x254434('0x1d')](_0x46754c,_0x1d0b5f)[_0x254434('0x30')](function(){logger['info']('removeIndex\x20%s\x20%s',_0x46754c,_0x1d0b5f);})[_0x254434('0x22')](function(_0x1f5c3e){const _0x1c4901=_0x254434;logger['info'](JSON[_0x1c4901('0xb')](_0x1f5c3e));});});},Migration[_0x1652ab('0x15')][_0x1652ab('0x31')]=function(_0x4742bc){const _0x12e8e6=_0x1652ab,_0x12e8bb=this;this[_0x12e8e6('0xe')][_0x12e8e6('0x20')](function(){const _0x22fead=_0x12e8e6;return _0x12e8bb[_0x22fead('0x32')][_0x22fead('0xc')][_0x22fead('0x31')](_0x4742bc)[_0x22fead('0x30')](function(){const _0x56eb57=_0x22fead;logger['info'](_0x56eb57('0xa'),_0x4742bc);})[_0x22fead('0x22')](function(_0x3c6a15){const _0x3ac6d6=_0x22fead;logger[_0x3ac6d6('0x12')](JSON[_0x3ac6d6('0xb')](_0x3c6a15));});});},Migration[_0x1652ab('0x15')][_0x1652ab('0x34')]=function(_0x47d43a,_0x224754){const _0x4f4298=_0x1652ab,_0x23492c=this;this[_0x4f4298('0xe')][_0x4f4298('0x20')](function(){const _0x3fbf9f=_0x4f4298;return _0x23492c['queryInterface'][_0x3fbf9f('0x34')](_0x47d43a,_0x224754)[_0x3fbf9f('0x30')](function(){logger['info']('Removed\x20column\x20%s\x20from\x20%s',_0x224754,_0x47d43a);})[_0x3fbf9f('0x22')](function(_0x5a3b1f){const _0x3f3e0b=_0x3fbf9f;logger['info'](util[_0x3f3e0b('0x21')](_0x5a3b1f,{'showHidden':![],'depth':null}));});});},Migration[_0x1652ab('0x15')][_0x1652ab('0x1a')]=function(_0x2d570b,_0x3bdf4f,_0x447f9a){const _0x3b2cc8=_0x1652ab,_0x252768=this;this[_0x3b2cc8('0xe')][_0x3b2cc8('0x20')](function(){const _0x1ccd8a=_0x3b2cc8;return _0x252768[_0x1ccd8a('0x32')]['renameColumn'](_0x2d570b,_0x3bdf4f,_0x447f9a)['then'](function(){const _0x39e203=_0x1ccd8a;logger[_0x39e203('0x12')](_0x39e203('0x2d'),_0x3bdf4f,_0x447f9a,_0x2d570b);})[_0x1ccd8a('0x22')](function(_0x37c6a2){const _0x492304=_0x1ccd8a;logger['info'](util[_0x492304('0x21')](_0x37c6a2,{'showHidden':![],'depth':null}));});});},Migration[_0x1652ab('0x15')][_0x1652ab('0x1e')]=function(_0x42b69b){const _0x1c39da=_0x1652ab;this[_0x1c39da('0xe')][_0x1c39da('0x20')](function(){return _0x42b69b();});},module['exports']={'up':function(_0x2ad882,_0x316def){return new Promise(function(_0x105764){const _0x1eae75=a949_0x44a2,_0x31806d=new Migration(_0x2ad882);_0x31806d['addColumn']('chat_websites',_0x1eae75('0x7'),{'type':_0x316def['BOOLEAN'],'defaultValue':![]}),_0x31806d[_0x1eae75('0x9')](_0x1eae75('0x2b'),'enableCustomerCheckmarks',{'type':_0x316def[_0x1eae75('0x29')],'defaultValue':![]}),_0x31806d[_0x1eae75('0x9')]('chat_websites','queueTransferTimeout',{'type':_0x316def[_0x1eae75('0x0')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c}),_0x31806d[_0x1eae75('0x9')](_0x1eae75('0x2b'),_0x1eae75('0x1f'),{'type':_0x316def['BOOLEAN'],'defaultValue':![]}),_0x31806d[_0x1eae75('0x9')](_0x1eae75('0x2b'),_0x1eae75('0x1c'),{'type':_0x316def[_0x1eae75('0x0')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c}),_0x31806d['addColumn'](_0x1eae75('0x2b'),_0x1eae75('0x2'),{'type':_0x316def[_0x1eae75('0x2a')],'defaultValue':_0x1eae75('0x23')}),_0x31806d[_0x1eae75('0x9')](_0x1eae75('0x2b'),_0x1eae75('0x17'),{'type':_0x316def['TEXT']}),_0x31806d['addColumn'](_0x1eae75('0x1'),_0x1eae75('0x7'),{'type':_0x316def[_0x1eae75('0x29')],'defaultValue':![]}),_0x31806d[_0x1eae75('0x9')](_0x1eae75('0x1'),_0x1eae75('0xf'),{'type':_0x316def[_0x1eae75('0x0')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c}),_0x31806d[_0x1eae75('0x9')](_0x1eae75('0x1'),_0x1eae75('0x1f'),{'type':_0x316def['BOOLEAN'],'defaultValue':![]}),_0x31806d[_0x1eae75('0x9')](_0x1eae75('0x1'),_0x1eae75('0x1c'),{'type':_0x316def[_0x1eae75('0x0')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c}),_0x31806d['addColumn'](_0x1eae75('0x1b'),_0x1eae75('0x7'),{'type':_0x316def[_0x1eae75('0x29')],'defaultValue':![]}),_0x31806d[_0x1eae75('0x9')](_0x1eae75('0x1b'),_0x1eae75('0xf'),{'type':_0x316def[_0x1eae75('0x0')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c}),_0x31806d['addColumn'](_0x1eae75('0x1b'),_0x1eae75('0x1f'),{'type':_0x316def[_0x1eae75('0x29')],'defaultValue':![]}),_0x31806d[_0x1eae75('0x9')](_0x1eae75('0x1b'),_0x1eae75('0x1c'),{'type':_0x316def['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c}),_0x31806d[_0x1eae75('0x9')]('sms_accounts',_0x1eae75('0x7'),{'type':_0x316def['BOOLEAN'],'defaultValue':![]}),_0x31806d[_0x1eae75('0x9')](_0x1eae75('0x16'),_0x1eae75('0xf'),{'type':_0x316def['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c}),_0x31806d[_0x1eae75('0x9')](_0x1eae75('0x16'),_0x1eae75('0x1f'),{'type':_0x316def[_0x1eae75('0x29')],'defaultValue':![]}),_0x31806d[_0x1eae75('0x9')](_0x1eae75('0x16'),_0x1eae75('0x1c'),{'type':_0x316def['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c}),_0x31806d[_0x1eae75('0x9')](_0x1eae75('0x11'),_0x1eae75('0x3'),{'type':_0x316def[_0x1eae75('0x0')],'defaultValue':0x1e}),_0x31806d[_0x1eae75('0x31')](_0x1eae75('0x27')),_0x31806d['addColumn'](_0x1eae75('0x11'),'phoneBarRememberMeEnabled',{'type':_0x316def['BOOLEAN'],'defaultValue':!![]}),_0x31806d[_0x1eae75('0x9')](_0x1eae75('0x25'),_0x1eae75('0x33'),{'type':_0x316def[_0x1eae75('0x0')],'defaultValue':0x0}),_0x31806d[_0x1eae75('0x9')](_0x1eae75('0x2e'),_0x1eae75('0x18'),{'type':_0x316def[_0x1eae75('0x13')]}),_0x31806d[_0x1eae75('0x1e')](_0x105764);});},'down':function(){}}; \ No newline at end of file +const a1111_0x3d50=['info','queueTransfer','fax_accounts','TEXT','agentTransfer','query\x20%s','license','prototype','addIndex\x20%s\x20%s\x20%s','chat_websites','Removed\x20column\x20%s\x20from\x20%s','tail','dropTable','query','chatLicenseExceeded','stringify','util','catch','addIndex','migration','inspect','phoneBarRememberMeEnabled','Changed\x20column\x20%s\x20in\x20table\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','openchannel_accounts','addColumn','changeColumn','removeColumn','Added\x20column\x20%s\x20to\x20%s','then','final','agentTransferTimeout','finally','queryInterface','settings','sms_accounts','sequence','systemAvatar','renameColumn','join','sequelize','tools_actions','exports','BOOLEAN','systemAlias','enqueue','INTEGER','queueTransferTimeout','removeIndex','chatTimeout'];(function(_0x4bbd01,_0x519f19){const _0x3d503=function(_0x41cede){while(--_0x41cede){_0x4bbd01['push'](_0x4bbd01['shift']());}};_0x3d503(++_0x519f19);}(a1111_0x3d50,0x14d));const a1111_0x41ce=function(_0x4bbd01,_0x519f19){_0x4bbd01=_0x4bbd01-0x85;let _0x3d503=a1111_0x3d50[_0x4bbd01];return _0x3d503;};const a1111_0x2095ef=a1111_0x41ce;'use strict';const util=require(a1111_0x2095ef(0xa6)),logger=require('../config/logger')(a1111_0x2095ef(0xa9)),Sequence=function(){};Sequence['prototype'][a1111_0x2095ef(0x91)]=function(_0x3a1023){const _0x24307b=a1111_0x2095ef;this[_0x24307b(0xa1)]=this[_0x24307b(0xa1)]?this[_0x24307b(0xa1)][_0x24307b(0xb6)](_0x3a1023):_0x3a1023();};const Migration=function(_0x138eec){const _0x3eb1e6=a1111_0x2095ef;this[_0x3eb1e6(0x85)]=_0x138eec,this[_0x3eb1e6(0x88)]=new Sequence();};Migration[a1111_0x2095ef(0x9d)][a1111_0x2095ef(0xb0)]=function(_0x3b87b3,_0x235aca,_0x1848c9){const _0x441404=a1111_0x2095ef,_0x4db183=this;this[_0x441404(0x88)][_0x441404(0x91)](function(){const _0x440b26=_0x441404;return _0x4db183[_0x440b26(0x85)][_0x440b26(0xb0)](_0x3b87b3,_0x235aca,_0x1848c9)[_0x440b26(0xb3)](function(){const _0x45a943=_0x440b26;logger[_0x45a943(0x96)](_0x45a943(0xac),_0x235aca,_0x3b87b3);})[_0x440b26(0xa7)](function(_0x36d531){const _0x2cd8c1=_0x440b26;logger[_0x2cd8c1(0x96)](JSON['stringify'](_0x36d531));});});},Migration[a1111_0x2095ef(0x9d)][a1111_0x2095ef(0xaf)]=function(_0x402655,_0x2f6870,_0x341180){const _0x33d275=a1111_0x2095ef,_0xaeeaa7=this;this[_0x33d275(0x88)][_0x33d275(0x91)](function(){const _0x5159ff=_0x33d275;return _0xaeeaa7[_0x5159ff(0x85)]['addColumn'](_0x402655,_0x2f6870,_0x341180)['then'](function(){const _0x5d35be=_0x5159ff;logger[_0x5d35be(0x96)](_0x5d35be(0xb2),_0x2f6870,_0x402655);})['catch'](function(_0x1173d7){const _0x5b376e=_0x5159ff;logger[_0x5b376e(0x96)](JSON[_0x5b376e(0xa5)](_0x1173d7));});});},Migration[a1111_0x2095ef(0x9d)][a1111_0x2095ef(0xa2)]=function(_0x432bbd){const _0x766ce0=a1111_0x2095ef,_0xff0a81=this;this[_0x766ce0(0x88)]['enqueue'](function(){const _0x17db1c=_0x766ce0;return _0xff0a81['queryInterface'][_0x17db1c(0xa2)](_0x432bbd,{'force':!![]})[_0x17db1c(0xb3)](function(){const _0x1031f9=_0x17db1c;logger[_0x1031f9(0x96)]('table\x20dropped\x20%s',_0x432bbd);})[_0x17db1c(0xa7)](function(_0x479a1e){const _0x142bae=_0x17db1c;logger[_0x142bae(0x96)](JSON['stringify'](_0x479a1e));});});},Migration[a1111_0x2095ef(0x9d)][a1111_0x2095ef(0xa8)]=function(_0xa72817,_0x408bb4,_0x2aeb0a){const _0x29c371=a1111_0x2095ef,_0x5f3771=this;this[_0x29c371(0x88)][_0x29c371(0x91)](function(){const _0x496228=_0x29c371;return _0x5f3771[_0x496228(0x85)][_0x496228(0xa8)](_0xa72817,_0x408bb4,{'indexName':_0x2aeb0a})[_0x496228(0xb3)](function(){const _0x39b4e4=_0x496228;logger[_0x39b4e4(0x96)](_0x39b4e4(0x9e),_0xa72817,_0x408bb4[_0x39b4e4(0x8b)](','),_0x2aeb0a);})[_0x496228(0xa7)](function(_0x23014f){const _0x22d832=_0x496228;logger[_0x22d832(0x96)](JSON['stringify'](_0x23014f));});});},Migration[a1111_0x2095ef(0x9d)][a1111_0x2095ef(0x94)]=function(_0x56f932,_0x5b318c){const _0x511ec4=a1111_0x2095ef,_0x5b583a=this;this[_0x511ec4(0x88)][_0x511ec4(0x91)](function(){const _0x4e26c6=_0x511ec4;return _0x5b583a['queryInterface'][_0x4e26c6(0x94)](_0x56f932,_0x5b318c)['then'](function(){logger['info']('removeIndex\x20%s\x20%s',_0x56f932,_0x5b318c);})[_0x4e26c6(0xa7)](function(_0x2bec6f){const _0x25188c=_0x4e26c6;logger[_0x25188c(0x96)](JSON['stringify'](_0x2bec6f));});});},Migration[a1111_0x2095ef(0x9d)]['query']=function(_0x4a37fe){const _0xc1eb6f=a1111_0x2095ef,_0x41d898=this;this['sequence'][_0xc1eb6f(0x91)](function(){const _0x5790d8=_0xc1eb6f;return _0x41d898[_0x5790d8(0x85)][_0x5790d8(0x8c)][_0x5790d8(0xa3)](_0x4a37fe)[_0x5790d8(0xb3)](function(){const _0x2f24e5=_0x5790d8;logger[_0x2f24e5(0x96)](_0x2f24e5(0x9b),_0x4a37fe);})[_0x5790d8(0xa7)](function(_0x3fbdd8){const _0x5d4a51=_0x5790d8;logger[_0x5d4a51(0x96)](JSON['stringify'](_0x3fbdd8));});});},Migration[a1111_0x2095ef(0x9d)][a1111_0x2095ef(0xb1)]=function(_0x24baaa,_0xee3d5d){const _0x28fb9b=a1111_0x2095ef,_0x2ba928=this;this['sequence'][_0x28fb9b(0x91)](function(){const _0x4c85d7=_0x28fb9b;return _0x2ba928[_0x4c85d7(0x85)][_0x4c85d7(0xb1)](_0x24baaa,_0xee3d5d)[_0x4c85d7(0xb3)](function(){const _0x25eca9=_0x4c85d7;logger['info'](_0x25eca9(0xa0),_0xee3d5d,_0x24baaa);})[_0x4c85d7(0xa7)](function(_0x52ac84){const _0xdc25ec=_0x4c85d7;logger[_0xdc25ec(0x96)](util['inspect'](_0x52ac84,{'showHidden':![],'depth':null}));});});},Migration[a1111_0x2095ef(0x9d)][a1111_0x2095ef(0x8a)]=function(_0x31ff85,_0x43d1c2,_0x48f3e9){const _0xc61d76=a1111_0x2095ef,_0x15cb33=this;this[_0xc61d76(0x88)]['enqueue'](function(){const _0x485769=_0xc61d76;return _0x15cb33['queryInterface']['renameColumn'](_0x31ff85,_0x43d1c2,_0x48f3e9)[_0x485769(0xb3)](function(){const _0xc0fc9d=_0x485769;logger[_0xc0fc9d(0x96)](_0xc0fc9d(0xad),_0x43d1c2,_0x48f3e9,_0x31ff85);})['catch'](function(_0x332fef){const _0x5dec5b=_0x485769;logger[_0x5dec5b(0x96)](util[_0x5dec5b(0xaa)](_0x332fef,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1111_0x2095ef(0xb4)]=function(_0x4049d7){const _0x2c3911=a1111_0x2095ef;this[_0x2c3911(0x88)][_0x2c3911(0x91)](function(){return _0x4049d7();});},module[a1111_0x2095ef(0x8e)]={'up':function(_0x518ce2,_0x2f94f6){return new Promise(function(_0x266320){const _0x5d6938=a1111_0x41ce,_0x2af49d=new Migration(_0x518ce2);_0x2af49d['addColumn'](_0x5d6938(0x9f),'queueTransfer',{'type':_0x2f94f6[_0x5d6938(0x8f)],'defaultValue':![]}),_0x2af49d[_0x5d6938(0xaf)](_0x5d6938(0x9f),'enableCustomerCheckmarks',{'type':_0x2f94f6['BOOLEAN'],'defaultValue':![]}),_0x2af49d['addColumn']('chat_websites',_0x5d6938(0x93),{'type':_0x2f94f6[_0x5d6938(0x92)],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c}),_0x2af49d[_0x5d6938(0xaf)](_0x5d6938(0x9f),_0x5d6938(0x9a),{'type':_0x2f94f6[_0x5d6938(0x8f)],'defaultValue':![]}),_0x2af49d[_0x5d6938(0xaf)](_0x5d6938(0x9f),_0x5d6938(0xb5),{'type':_0x2f94f6[_0x5d6938(0x92)],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c}),_0x2af49d[_0x5d6938(0xaf)](_0x5d6938(0x9f),_0x5d6938(0x90),{'type':_0x2f94f6['STRING'],'defaultValue':'System'}),_0x2af49d[_0x5d6938(0xaf)](_0x5d6938(0x9f),_0x5d6938(0x89),{'type':_0x2f94f6[_0x5d6938(0x99)]}),_0x2af49d[_0x5d6938(0xaf)](_0x5d6938(0x98),_0x5d6938(0x97),{'type':_0x2f94f6[_0x5d6938(0x8f)],'defaultValue':![]}),_0x2af49d['addColumn'](_0x5d6938(0x98),_0x5d6938(0x93),{'type':_0x2f94f6['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c}),_0x2af49d[_0x5d6938(0xaf)]('fax_accounts','agentTransfer',{'type':_0x2f94f6[_0x5d6938(0x8f)],'defaultValue':![]}),_0x2af49d['addColumn'](_0x5d6938(0x98),_0x5d6938(0xb5),{'type':_0x2f94f6[_0x5d6938(0x92)],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c}),_0x2af49d['addColumn'](_0x5d6938(0xae),_0x5d6938(0x97),{'type':_0x2f94f6[_0x5d6938(0x8f)],'defaultValue':![]}),_0x2af49d[_0x5d6938(0xaf)](_0x5d6938(0xae),_0x5d6938(0x93),{'type':_0x2f94f6['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c}),_0x2af49d[_0x5d6938(0xaf)](_0x5d6938(0xae),_0x5d6938(0x9a),{'type':_0x2f94f6['BOOLEAN'],'defaultValue':![]}),_0x2af49d[_0x5d6938(0xaf)](_0x5d6938(0xae),_0x5d6938(0xb5),{'type':_0x2f94f6['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c}),_0x2af49d['addColumn'](_0x5d6938(0x87),_0x5d6938(0x97),{'type':_0x2f94f6[_0x5d6938(0x8f)],'defaultValue':![]}),_0x2af49d[_0x5d6938(0xaf)](_0x5d6938(0x87),_0x5d6938(0x93),{'type':_0x2f94f6[_0x5d6938(0x92)],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c}),_0x2af49d[_0x5d6938(0xaf)](_0x5d6938(0x87),_0x5d6938(0x9a),{'type':_0x2f94f6[_0x5d6938(0x8f)],'defaultValue':![]}),_0x2af49d[_0x5d6938(0xaf)](_0x5d6938(0x87),_0x5d6938(0xb5),{'type':_0x2f94f6[_0x5d6938(0x92)],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c}),_0x2af49d[_0x5d6938(0xaf)](_0x5d6938(0x86),_0x5d6938(0x95),{'type':_0x2f94f6['INTEGER'],'defaultValue':0x1e}),_0x2af49d['query']('UPDATE\x20settings\x20SET\x20chatTimeout\x20=\x200;'),_0x2af49d[_0x5d6938(0xaf)](_0x5d6938(0x86),_0x5d6938(0xab),{'type':_0x2f94f6[_0x5d6938(0x8f)],'defaultValue':!![]}),_0x2af49d[_0x5d6938(0xaf)](_0x5d6938(0x9c),_0x5d6938(0xa4),{'type':_0x2f94f6[_0x5d6938(0x92)],'defaultValue':0x0}),_0x2af49d[_0x5d6938(0xaf)](_0x5d6938(0x8d),'data7',{'type':_0x2f94f6[_0x5d6938(0x99)]}),_0x2af49d[_0x5d6938(0xb4)](_0x266320);});},'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 b2c862e..bfb3ec5 100644 --- a/server/migrations/2.0.72.js +++ b/server/migrations/2.0.72.js @@ -1 +1 @@ -const a950_0xf4ff=['DELETE\x20FROM\x20user_has_voice_queues_rt\x20WHERE\x20UserId\x20NOT\x20IN\x20(SELECT\x20id\x20FROM\x20users\x20WHERE\x20role\x20=\x20\x27agent\x27)','Added\x20column\x20%s\x20to\x20%s','table\x20dropped\x20%s','query','Changed\x20column\x20%s\x20in\x20table\x20%s','then','tail','removeColumn','catch','info','removeIndex','Removed\x20column\x20%s\x20from\x20%s','enqueue','exports','final','queryInterface','../config/logger','inspect','leaveAt','sequelize','changeColumn','uid_pname','addColumn','query\x20%s','prototype','dropTable','join','finally','renameColumn','report_square','sequence','uniqueid','stringify','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','project_name','addIndex','addIndex\x20%s\x20%s\x20%s'];(function(_0x5b9cc0,_0xf4ffd9){const _0x456d59=function(_0x1bc836){while(--_0x1bc836){_0x5b9cc0['push'](_0x5b9cc0['shift']());}};_0x456d59(++_0xf4ffd9);}(a950_0xf4ff,0x152));const a950_0x456d=function(_0x5b9cc0,_0xf4ffd9){_0x5b9cc0=_0x5b9cc0-0x0;let _0x456d59=a950_0xf4ff[_0x5b9cc0];return _0x456d59;};const _0x17c3ba=a950_0x456d;'use strict';const util=require('util'),logger=require(_0x17c3ba('0xb'))('migration'),Sequence=function(){};Sequence[_0x17c3ba('0x13')][_0x17c3ba('0x7')]=function(_0x1bc836){const _0x1b764e=_0x17c3ba;this[_0x1b764e('0x1')]=this[_0x1b764e('0x1')]?this[_0x1b764e('0x1')][_0x1b764e('0x16')](_0x1bc836):_0x1bc836();};const Migration=function(_0x496755){const _0x5db2d7=_0x17c3ba;this[_0x5db2d7('0xa')]=_0x496755,this[_0x5db2d7('0x19')]=new Sequence();};Migration['prototype'][_0x17c3ba('0xf')]=function(_0x50cc51,_0x16ca7d,_0x4f3962){const _0x3d7450=_0x17c3ba,_0x51128c=this;this[_0x3d7450('0x19')]['enqueue'](function(){const _0x96e7c1=_0x3d7450;return _0x51128c[_0x96e7c1('0xa')][_0x96e7c1('0xf')](_0x50cc51,_0x16ca7d,_0x4f3962)[_0x96e7c1('0x0')](function(){const _0x567ec3=_0x96e7c1;logger['info'](_0x567ec3('0x24'),_0x16ca7d,_0x50cc51);})['catch'](function(_0x3d245c){const _0x3aaaa5=_0x96e7c1;logger[_0x3aaaa5('0x4')](JSON[_0x3aaaa5('0x1b')](_0x3d245c));});});},Migration[_0x17c3ba('0x13')][_0x17c3ba('0x11')]=function(_0xf0134c,_0x1ed50e,_0x12714f){const _0x2cc05e=_0x17c3ba,_0x3e1634=this;this[_0x2cc05e('0x19')][_0x2cc05e('0x7')](function(){const _0x2ee6ab=_0x2cc05e;return _0x3e1634[_0x2ee6ab('0xa')][_0x2ee6ab('0x11')](_0xf0134c,_0x1ed50e,_0x12714f)[_0x2ee6ab('0x0')](function(){const _0x1e2a20=_0x2ee6ab;logger['info'](_0x1e2a20('0x21'),_0x1ed50e,_0xf0134c);})['catch'](function(_0x2df369){const _0x3307d1=_0x2ee6ab;logger[_0x3307d1('0x4')](JSON[_0x3307d1('0x1b')](_0x2df369));});});},Migration[_0x17c3ba('0x13')][_0x17c3ba('0x14')]=function(_0x50bad2){const _0x1d03f8=_0x17c3ba,_0x56d3ff=this;this[_0x1d03f8('0x19')][_0x1d03f8('0x7')](function(){const _0x2df38b=_0x1d03f8;return _0x56d3ff[_0x2df38b('0xa')][_0x2df38b('0x14')](_0x50bad2,{'force':!![]})[_0x2df38b('0x0')](function(){const _0x5e675b=_0x2df38b;logger['info'](_0x5e675b('0x22'),_0x50bad2);})['catch'](function(_0x1c7299){const _0x3b2b6a=_0x2df38b;logger[_0x3b2b6a('0x4')](JSON[_0x3b2b6a('0x1b')](_0x1c7299));});});},Migration[_0x17c3ba('0x13')][_0x17c3ba('0x1e')]=function(_0x59ae14,_0x3212ec,_0x2d923b){const _0x55d177=_0x17c3ba,_0x19f4d6=this;this['sequence'][_0x55d177('0x7')](function(){const _0x2f3b18=_0x55d177;return _0x19f4d6[_0x2f3b18('0xa')][_0x2f3b18('0x1e')](_0x59ae14,_0x3212ec,{'indexName':_0x2d923b})[_0x2f3b18('0x0')](function(){const _0x127791=_0x2f3b18;logger['info'](_0x127791('0x1f'),_0x59ae14,_0x3212ec[_0x127791('0x15')](','),_0x2d923b);})[_0x2f3b18('0x3')](function(_0x586687){const _0x332c3e=_0x2f3b18;logger[_0x332c3e('0x4')](JSON['stringify'](_0x586687));});});},Migration[_0x17c3ba('0x13')][_0x17c3ba('0x5')]=function(_0x2d37d1,_0x43c705){const _0x292680=_0x17c3ba,_0x4d2213=this;this['sequence'][_0x292680('0x7')](function(){const _0x32b79b=_0x292680;return _0x4d2213[_0x32b79b('0xa')][_0x32b79b('0x5')](_0x2d37d1,_0x43c705)[_0x32b79b('0x0')](function(){const _0x2763a1=_0x32b79b;logger[_0x2763a1('0x4')]('removeIndex\x20%s\x20%s',_0x2d37d1,_0x43c705);})[_0x32b79b('0x3')](function(_0x521bea){const _0x51aa32=_0x32b79b;logger[_0x51aa32('0x4')](JSON['stringify'](_0x521bea));});});},Migration[_0x17c3ba('0x13')][_0x17c3ba('0x23')]=function(_0x15cfaf){const _0xe5d8ab=_0x17c3ba,_0x4d8a85=this;this[_0xe5d8ab('0x19')][_0xe5d8ab('0x7')](function(){const _0x3eceb4=_0xe5d8ab;return _0x4d8a85[_0x3eceb4('0xa')][_0x3eceb4('0xe')][_0x3eceb4('0x23')](_0x15cfaf)[_0x3eceb4('0x0')](function(){const _0x3ed72a=_0x3eceb4;logger['info'](_0x3ed72a('0x12'),_0x15cfaf);})[_0x3eceb4('0x3')](function(_0xa9df1d){const _0xd5ddac=_0x3eceb4;logger['info'](JSON[_0xd5ddac('0x1b')](_0xa9df1d));});});},Migration[_0x17c3ba('0x13')][_0x17c3ba('0x2')]=function(_0x3c7bdc,_0x22aaf8){const _0x46818b=_0x17c3ba,_0x29fc74=this;this[_0x46818b('0x19')][_0x46818b('0x7')](function(){const _0x5de500=_0x46818b;return _0x29fc74[_0x5de500('0xa')][_0x5de500('0x2')](_0x3c7bdc,_0x22aaf8)[_0x5de500('0x0')](function(){const _0x32a02f=_0x5de500;logger[_0x32a02f('0x4')](_0x32a02f('0x6'),_0x22aaf8,_0x3c7bdc);})[_0x5de500('0x3')](function(_0xf9d586){const _0xec2efb=_0x5de500;logger[_0xec2efb('0x4')](util['inspect'](_0xf9d586,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x17c3ba('0x17')]=function(_0x235790,_0x4bc1a8,_0x25a3e6){const _0x51899c=_0x17c3ba,_0x2fec55=this;this['sequence'][_0x51899c('0x7')](function(){const _0xe1c243=_0x51899c;return _0x2fec55['queryInterface'][_0xe1c243('0x17')](_0x235790,_0x4bc1a8,_0x25a3e6)['then'](function(){const _0x2080ce=_0xe1c243;logger['info'](_0x2080ce('0x1c'),_0x4bc1a8,_0x25a3e6,_0x235790);})[_0xe1c243('0x3')](function(_0x16a4ca){const _0xaee53a=_0xe1c243;logger[_0xaee53a('0x4')](util[_0xaee53a('0xc')](_0x16a4ca,{'showHidden':![],'depth':null}));});});},Migration[_0x17c3ba('0x13')][_0x17c3ba('0x9')]=function(_0x5a9d5b){const _0xbe3f32=_0x17c3ba;this[_0xbe3f32('0x19')][_0xbe3f32('0x7')](function(){return _0x5a9d5b();});},module[_0x17c3ba('0x8')]={'up':function(_0x343e89){return new Promise(function(_0x53df17){const _0x58f292=a950_0x456d,_0x24e95f=new Migration(_0x343e89);_0x24e95f['query'](_0x58f292('0x20')),_0x24e95f[_0x58f292('0x1e')](_0x58f292('0x18'),[_0x58f292('0x1a'),_0x58f292('0x1d')],_0x58f292('0x10')),_0x24e95f[_0x58f292('0x1e')](_0x58f292('0x18'),[_0x58f292('0xd')],_0x58f292('0xd')),_0x24e95f[_0x58f292('0x9')](_0x53df17);});},'down':function(){}}; \ No newline at end of file +const a1112_0x339b=['table\x20dropped\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','util','enqueue','then','removeIndex','project_name','migration','queryInterface','tail','uniqueid','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','stringify','uid_pname','leaveAt','catch','query','addColumn','renameColumn','join','final','report_square','sequelize','removeColumn','prototype','sequence','finally','info','query\x20%s','DELETE\x20FROM\x20user_has_voice_queues_rt\x20WHERE\x20UserId\x20NOT\x20IN\x20(SELECT\x20id\x20FROM\x20users\x20WHERE\x20role\x20=\x20\x27agent\x27)','inspect','addIndex'];(function(_0x5d7735,_0x1352cd){const _0x339ba8=function(_0x2b4b43){while(--_0x2b4b43){_0x5d7735['push'](_0x5d7735['shift']());}};_0x339ba8(++_0x1352cd);}(a1112_0x339b,0x184));const a1112_0x2b4b=function(_0x5d7735,_0x1352cd){_0x5d7735=_0x5d7735-0x89;let _0x339ba8=a1112_0x339b[_0x5d7735];return _0x339ba8;};const a1112_0x930e62=a1112_0x2b4b;'use strict';const util=require(a1112_0x930e62(0xa7)),logger=require('../config/logger')(a1112_0x930e62(0x8c)),Sequence=function(){};Sequence[a1112_0x930e62(0x9d)]['enqueue']=function(_0x228b2a){const _0x197a07=a1112_0x930e62;this['tail']=this[_0x197a07(0x8e)]?this[_0x197a07(0x8e)][_0x197a07(0x9f)](_0x228b2a):_0x228b2a();};const Migration=function(_0x9938a7){const _0x12675f=a1112_0x930e62;this[_0x12675f(0x8d)]=_0x9938a7,this[_0x12675f(0x9e)]=new Sequence();};Migration[a1112_0x930e62(0x9d)]['changeColumn']=function(_0x1e3a8d,_0x2a2740,_0x1c660b){const _0x467aab=a1112_0x930e62,_0x5b2434=this;this[_0x467aab(0x9e)]['enqueue'](function(){const _0x30c763=_0x467aab;return _0x5b2434['queryInterface']['changeColumn'](_0x1e3a8d,_0x2a2740,_0x1c660b)['then'](function(){const _0x192110=a1112_0x2b4b;logger['info'](_0x192110(0xa6),_0x2a2740,_0x1e3a8d);})[_0x30c763(0x94)](function(_0x59db4b){const _0x3d9dd5=_0x30c763;logger[_0x3d9dd5(0xa0)](JSON[_0x3d9dd5(0x91)](_0x59db4b));});});},Migration[a1112_0x930e62(0x9d)][a1112_0x930e62(0x96)]=function(_0x3bba18,_0x54133a,_0x374f74){const _0x5662e7=a1112_0x930e62,_0x6dafe8=this;this[_0x5662e7(0x9e)][_0x5662e7(0xa8)](function(){const _0x2be453=_0x5662e7;return _0x6dafe8[_0x2be453(0x8d)]['addColumn'](_0x3bba18,_0x54133a,_0x374f74)[_0x2be453(0x89)](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x54133a,_0x3bba18);})[_0x2be453(0x94)](function(_0x3fffdd){const _0x1ca2b6=_0x2be453;logger[_0x1ca2b6(0xa0)](JSON['stringify'](_0x3fffdd));});});},Migration[a1112_0x930e62(0x9d)]['dropTable']=function(_0x88a4a3){const _0x3481c0=a1112_0x930e62,_0x5bcc7b=this;this[_0x3481c0(0x9e)][_0x3481c0(0xa8)](function(){const _0x50af76=_0x3481c0;return _0x5bcc7b[_0x50af76(0x8d)]['dropTable'](_0x88a4a3,{'force':!![]})[_0x50af76(0x89)](function(){const _0x4cd5a1=_0x50af76;logger[_0x4cd5a1(0xa0)](_0x4cd5a1(0xa5),_0x88a4a3);})[_0x50af76(0x94)](function(_0x5f514b){const _0x52baa5=_0x50af76;logger[_0x52baa5(0xa0)](JSON['stringify'](_0x5f514b));});});},Migration[a1112_0x930e62(0x9d)][a1112_0x930e62(0xa4)]=function(_0x4e7aa7,_0x290223,_0x25e8a6){const _0x23e48e=a1112_0x930e62,_0x48c713=this;this[_0x23e48e(0x9e)][_0x23e48e(0xa8)](function(){const _0x4590d3=_0x23e48e;return _0x48c713['queryInterface']['addIndex'](_0x4e7aa7,_0x290223,{'indexName':_0x25e8a6})['then'](function(){const _0x25987a=a1112_0x2b4b;logger[_0x25987a(0xa0)]('addIndex\x20%s\x20%s\x20%s',_0x4e7aa7,_0x290223[_0x25987a(0x98)](','),_0x25e8a6);})[_0x4590d3(0x94)](function(_0x421f2d){const _0x2cd823=_0x4590d3;logger['info'](JSON[_0x2cd823(0x91)](_0x421f2d));});});},Migration[a1112_0x930e62(0x9d)]['removeIndex']=function(_0x8897ac,_0x12dcbc){const _0x2c5a5a=a1112_0x930e62,_0x267ee0=this;this[_0x2c5a5a(0x9e)]['enqueue'](function(){const _0x12180d=_0x2c5a5a;return _0x267ee0[_0x12180d(0x8d)][_0x12180d(0x8a)](_0x8897ac,_0x12dcbc)[_0x12180d(0x89)](function(){const _0x6167a3=_0x12180d;logger[_0x6167a3(0xa0)]('removeIndex\x20%s\x20%s',_0x8897ac,_0x12dcbc);})[_0x12180d(0x94)](function(_0x53db95){const _0xf2d17b=_0x12180d;logger[_0xf2d17b(0xa0)](JSON[_0xf2d17b(0x91)](_0x53db95));});});},Migration[a1112_0x930e62(0x9d)][a1112_0x930e62(0x95)]=function(_0x59776e){const _0xdbcdab=a1112_0x930e62,_0x365d0e=this;this[_0xdbcdab(0x9e)][_0xdbcdab(0xa8)](function(){const _0x19193e=_0xdbcdab;return _0x365d0e['queryInterface'][_0x19193e(0x9b)][_0x19193e(0x95)](_0x59776e)['then'](function(){const _0x362948=_0x19193e;logger[_0x362948(0xa0)](_0x362948(0xa1),_0x59776e);})['catch'](function(_0x4dd845){const _0x6774dc=_0x19193e;logger[_0x6774dc(0xa0)](JSON['stringify'](_0x4dd845));});});},Migration['prototype'][a1112_0x930e62(0x9c)]=function(_0x4d8664,_0x551f6f){const _0x2085bb=a1112_0x930e62,_0x30a697=this;this[_0x2085bb(0x9e)][_0x2085bb(0xa8)](function(){const _0x2aea38=_0x2085bb;return _0x30a697['queryInterface']['removeColumn'](_0x4d8664,_0x551f6f)['then'](function(){const _0x19a7a4=a1112_0x2b4b;logger[_0x19a7a4(0xa0)]('Removed\x20column\x20%s\x20from\x20%s',_0x551f6f,_0x4d8664);})[_0x2aea38(0x94)](function(_0x30df2a){const _0xfb8822=_0x2aea38;logger[_0xfb8822(0xa0)](util[_0xfb8822(0xa3)](_0x30df2a,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1112_0x930e62(0x97)]=function(_0x1c8bcb,_0x444668,_0x4609ae){const _0x1c80a7=a1112_0x930e62,_0x2f3ef3=this;this['sequence'][_0x1c80a7(0xa8)](function(){const _0x48ae7d=_0x1c80a7;return _0x2f3ef3[_0x48ae7d(0x8d)][_0x48ae7d(0x97)](_0x1c8bcb,_0x444668,_0x4609ae)[_0x48ae7d(0x89)](function(){const _0x15f48e=_0x48ae7d;logger[_0x15f48e(0xa0)](_0x15f48e(0x90),_0x444668,_0x4609ae,_0x1c8bcb);})[_0x48ae7d(0x94)](function(_0x32863b){const _0x1fce5c=_0x48ae7d;logger[_0x1fce5c(0xa0)](util[_0x1fce5c(0xa3)](_0x32863b,{'showHidden':![],'depth':null}));});});},Migration[a1112_0x930e62(0x9d)][a1112_0x930e62(0x99)]=function(_0x45545e){const _0x59b0de=a1112_0x930e62;this[_0x59b0de(0x9e)]['enqueue'](function(){return _0x45545e();});},module['exports']={'up':function(_0x377b46){return new Promise(function(_0x2a20a9){const _0x164e48=a1112_0x2b4b,_0x3ec0f5=new Migration(_0x377b46);_0x3ec0f5[_0x164e48(0x95)](_0x164e48(0xa2)),_0x3ec0f5[_0x164e48(0xa4)]('report_square',[_0x164e48(0x8f),_0x164e48(0x8b)],_0x164e48(0x92)),_0x3ec0f5['addIndex'](_0x164e48(0x9a),[_0x164e48(0x93)],_0x164e48(0x93)),_0x3ec0f5[_0x164e48(0x99)](_0x2a20a9);});},'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 abe0af2..8d2ac6f 100644 --- a/server/migrations/2.0.73.js +++ b/server/migrations/2.0.73.js @@ -1 +1 @@ -const a951_0x53de=['info','Removed\x20column\x20%s\x20from\x20%s','queryInterface','changeColumn','tail','removeIndex','STRING','INTEGER','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','../config/logger','enqueue','inspect','prototype','removeIndex\x20%s\x20%s','originatecalleridnum','cm_contacts','cm_hopper_final','addIndex','Added\x20column\x20%s\x20to\x20%s','query\x20%s','then','originatecalleridname','fb_data','dropTable','table\x20dropped\x20%s','final','stringify','sequence','cm_hopper_history','renameColumn','join','finally','removeColumn','query','util','catch','addColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','wechat','sequelize'];(function(_0x571098,_0x53ded3){const _0x45475c=function(_0x4b43a7){while(--_0x4b43a7){_0x571098['push'](_0x571098['shift']());}};_0x45475c(++_0x53ded3);}(a951_0x53de,0x19d));const a951_0x4547=function(_0x571098,_0x53ded3){_0x571098=_0x571098-0x0;let _0x45475c=a951_0x53de[_0x571098];return _0x45475c;};const _0x5f1e46=a951_0x4547;'use strict';const util=require(_0x5f1e46('0x15')),logger=require(_0x5f1e46('0x24'))('migration'),Sequence=function(){};Sequence[_0x5f1e46('0x27')][_0x5f1e46('0x25')]=function(_0x4b43a7){const _0x11c170=_0x5f1e46;this[_0x11c170('0x1f')]=this['tail']?this[_0x11c170('0x1f')][_0x11c170('0x12')](_0x4b43a7):_0x4b43a7();};const Migration=function(_0x4546a5){const _0x146a8b=_0x5f1e46;this[_0x146a8b('0x1d')]=_0x4546a5,this[_0x146a8b('0xe')]=new Sequence();};Migration[_0x5f1e46('0x27')][_0x5f1e46('0x1e')]=function(_0x16fc59,_0xfd2e2,_0x1bbd44){const _0x48af50=_0x5f1e46,_0x5b227a=this;this[_0x48af50('0xe')][_0x48af50('0x25')](function(){const _0x2e6fe8=_0x48af50;return _0x5b227a['queryInterface'][_0x2e6fe8('0x1e')](_0x16fc59,_0xfd2e2,_0x1bbd44)[_0x2e6fe8('0x7')](function(){const _0x1521c5=_0x2e6fe8;logger[_0x1521c5('0x1b')](_0x1521c5('0x18'),_0xfd2e2,_0x16fc59);})[_0x2e6fe8('0x16')](function(_0x1dcf9b){const _0x3d3b16=_0x2e6fe8;logger[_0x3d3b16('0x1b')](JSON[_0x3d3b16('0xd')](_0x1dcf9b));});});},Migration['prototype'][_0x5f1e46('0x17')]=function(_0x1bea98,_0x420f66,_0x1e92d9){const _0x3f6b77=_0x5f1e46,_0x125623=this;this[_0x3f6b77('0xe')][_0x3f6b77('0x25')](function(){const _0x2ad81d=_0x3f6b77;return _0x125623['queryInterface'][_0x2ad81d('0x17')](_0x1bea98,_0x420f66,_0x1e92d9)[_0x2ad81d('0x7')](function(){const _0x51f8b1=_0x2ad81d;logger[_0x51f8b1('0x1b')](_0x51f8b1('0x5'),_0x420f66,_0x1bea98);})[_0x2ad81d('0x16')](function(_0x1db0d8){const _0x1ba42e=_0x2ad81d;logger[_0x1ba42e('0x1b')](JSON[_0x1ba42e('0xd')](_0x1db0d8));});});},Migration[_0x5f1e46('0x27')]['dropTable']=function(_0x1e5d05){const _0x29d8b6=_0x5f1e46,_0x100a75=this;this[_0x29d8b6('0xe')][_0x29d8b6('0x25')](function(){const _0x5b9be4=_0x29d8b6;return _0x100a75[_0x5b9be4('0x1d')][_0x5b9be4('0xa')](_0x1e5d05,{'force':!![]})[_0x5b9be4('0x7')](function(){const _0x2005d7=_0x5b9be4;logger[_0x2005d7('0x1b')](_0x2005d7('0xb'),_0x1e5d05);})[_0x5b9be4('0x16')](function(_0x564e43){const _0x14bb78=_0x5b9be4;logger[_0x14bb78('0x1b')](JSON[_0x14bb78('0xd')](_0x564e43));});});},Migration['prototype'][_0x5f1e46('0x4')]=function(_0x519354,_0xc58777,_0x4cf5c4){const _0x3912f6=_0x5f1e46,_0x1f21ec=this;this[_0x3912f6('0xe')][_0x3912f6('0x25')](function(){const _0x4f7009=_0x3912f6;return _0x1f21ec[_0x4f7009('0x1d')][_0x4f7009('0x4')](_0x519354,_0xc58777,{'indexName':_0x4cf5c4})[_0x4f7009('0x7')](function(){const _0x76cb70=_0x4f7009;logger[_0x76cb70('0x1b')]('addIndex\x20%s\x20%s\x20%s',_0x519354,_0xc58777[_0x76cb70('0x11')](','),_0x4cf5c4);})[_0x4f7009('0x16')](function(_0x162956){const _0x67d9e9=_0x4f7009;logger[_0x67d9e9('0x1b')](JSON['stringify'](_0x162956));});});},Migration[_0x5f1e46('0x27')][_0x5f1e46('0x20')]=function(_0x2b31f4,_0x5dd5e2){const _0x36eb94=_0x5f1e46,_0x104171=this;this[_0x36eb94('0xe')][_0x36eb94('0x25')](function(){const _0x51b679=_0x36eb94;return _0x104171[_0x51b679('0x1d')]['removeIndex'](_0x2b31f4,_0x5dd5e2)[_0x51b679('0x7')](function(){const _0x5e6602=_0x51b679;logger['info'](_0x5e6602('0x0'),_0x2b31f4,_0x5dd5e2);})[_0x51b679('0x16')](function(_0x5bba98){logger['info'](JSON['stringify'](_0x5bba98));});});},Migration[_0x5f1e46('0x27')][_0x5f1e46('0x14')]=function(_0x5beb42){const _0x2e8992=_0x5f1e46,_0x992c5f=this;this[_0x2e8992('0xe')][_0x2e8992('0x25')](function(){const _0x9cf2b7=_0x2e8992;return _0x992c5f[_0x9cf2b7('0x1d')][_0x9cf2b7('0x1a')][_0x9cf2b7('0x14')](_0x5beb42)[_0x9cf2b7('0x7')](function(){const _0x3b18f2=_0x9cf2b7;logger[_0x3b18f2('0x1b')](_0x3b18f2('0x6'),_0x5beb42);})[_0x9cf2b7('0x16')](function(_0x23aa7b){const _0x3b5299=_0x9cf2b7;logger[_0x3b5299('0x1b')](JSON['stringify'](_0x23aa7b));});});},Migration[_0x5f1e46('0x27')][_0x5f1e46('0x13')]=function(_0x3e8439,_0x58ee25){const _0x13fe52=_0x5f1e46,_0x50226f=this;this[_0x13fe52('0xe')][_0x13fe52('0x25')](function(){const _0x4f85b9=_0x13fe52;return _0x50226f['queryInterface'][_0x4f85b9('0x13')](_0x3e8439,_0x58ee25)[_0x4f85b9('0x7')](function(){const _0x3d41d5=_0x4f85b9;logger[_0x3d41d5('0x1b')](_0x3d41d5('0x1c'),_0x58ee25,_0x3e8439);})[_0x4f85b9('0x16')](function(_0x5ba8c8){const _0x3a2329=_0x4f85b9;logger[_0x3a2329('0x1b')](util['inspect'](_0x5ba8c8,{'showHidden':![],'depth':null}));});});},Migration[_0x5f1e46('0x27')][_0x5f1e46('0x10')]=function(_0x124608,_0x584b95,_0x36ad18){const _0x1dac6f=this;this['sequence']['enqueue'](function(){const _0x64bbd=a951_0x4547;return _0x1dac6f['queryInterface'][_0x64bbd('0x10')](_0x124608,_0x584b95,_0x36ad18)[_0x64bbd('0x7')](function(){const _0x3db585=_0x64bbd;logger[_0x3db585('0x1b')](_0x3db585('0x23'),_0x584b95,_0x36ad18,_0x124608);})[_0x64bbd('0x16')](function(_0x35fb64){const _0x14d2ad=_0x64bbd;logger[_0x14d2ad('0x1b')](util[_0x14d2ad('0x26')](_0x35fb64,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x5f1e46('0xc')]=function(_0x5daf76){const _0x51641d=_0x5f1e46;this[_0x51641d('0xe')][_0x51641d('0x25')](function(){return _0x5daf76();});},module['exports']={'up':function(_0xbc9969,_0x33060c){return new Promise(function(_0x3c75ad){const _0xcfa679=a951_0x4547,_0x3beb72=new Migration(_0xbc9969);_0x3beb72[_0xcfa679('0x17')]('report_call','routeid',{'type':_0x33060c[_0xcfa679('0x22')]}),_0x3beb72[_0xcfa679('0x17')]('cm_hopper_final',_0xcfa679('0x1'),{'type':_0x33060c[_0xcfa679('0x21')]}),_0x3beb72[_0xcfa679('0x17')](_0xcfa679('0x3'),_0xcfa679('0x8'),{'type':_0x33060c[_0xcfa679('0x21')]}),_0x3beb72[_0xcfa679('0x17')](_0xcfa679('0xf'),_0xcfa679('0x1'),{'type':_0x33060c[_0xcfa679('0x21')]}),_0x3beb72[_0xcfa679('0x17')](_0xcfa679('0xf'),_0xcfa679('0x8'),{'type':_0x33060c[_0xcfa679('0x21')]}),_0x3beb72[_0xcfa679('0x17')]('cm_contacts',_0xcfa679('0x19'),{'type':_0x33060c[_0xcfa679('0x21')]}),_0x3beb72['addColumn'](_0xcfa679('0x2'),_0xcfa679('0x9'),{'type':_0x33060c[_0xcfa679('0x21')]}),_0x3beb72[_0xcfa679('0xc')](_0x3c75ad);});},'down':function(){}}; \ No newline at end of file +const a1113_0x24fb=['renameColumn','then','report_call','sequelize','../config/logger','changeColumn','addColumn','wechat','removeColumn','Added\x20column\x20%s\x20to\x20%s','STRING','stringify','INTEGER','inspect','queryInterface','exports','join','final','addIndex','originatecalleridnum','fb_data','removeIndex','Changed\x20column\x20%s\x20in\x20table\x20%s','catch','dropTable','cm_contacts','originatecalleridname','prototype','removeIndex\x20%s\x20%s','Removed\x20column\x20%s\x20from\x20%s','query\x20%s','info','enqueue','cm_hopper_history','sequence','tail','migration','cm_hopper_final','query','finally'];(function(_0x142a89,_0x25627d){const _0x24fbda=function(_0x506b33){while(--_0x506b33){_0x142a89['push'](_0x142a89['shift']());}};_0x24fbda(++_0x25627d);}(a1113_0x24fb,0x1c1));const a1113_0x506b=function(_0x142a89,_0x25627d){_0x142a89=_0x142a89-0x1e0;let _0x24fbda=a1113_0x24fb[_0x142a89];return _0x24fbda;};const a1113_0x29977e=a1113_0x506b;'use strict';const util=require('util'),logger=require(a1113_0x29977e(0x203))(a1113_0x29977e(0x1fb)),Sequence=function(){};Sequence['prototype'][a1113_0x29977e(0x1f7)]=function(_0x533df1){const _0x1ef5e4=a1113_0x29977e;this[_0x1ef5e4(0x1fa)]=this['tail']?this[_0x1ef5e4(0x1fa)][_0x1ef5e4(0x1fe)](_0x533df1):_0x533df1();};const Migration=function(_0xa8a1c4){const _0x47cb80=a1113_0x29977e;this[_0x47cb80(0x1e5)]=_0xa8a1c4,this[_0x47cb80(0x1f9)]=new Sequence();};Migration['prototype'][a1113_0x29977e(0x204)]=function(_0x38c1f6,_0x5dd2f4,_0x108662){const _0x2ec98d=a1113_0x29977e,_0x43c220=this;this[_0x2ec98d(0x1f9)][_0x2ec98d(0x1f7)](function(){const _0x56d917=_0x2ec98d;return _0x43c220['queryInterface'][_0x56d917(0x204)](_0x38c1f6,_0x5dd2f4,_0x108662)[_0x56d917(0x200)](function(){const _0x28bdb3=_0x56d917;logger['info'](_0x28bdb3(0x1ed),_0x5dd2f4,_0x38c1f6);})[_0x56d917(0x1ee)](function(_0x180da9){const _0x1494eb=_0x56d917;logger[_0x1494eb(0x1f6)](JSON[_0x1494eb(0x1e2)](_0x180da9));});});},Migration[a1113_0x29977e(0x1f2)][a1113_0x29977e(0x205)]=function(_0x47cc79,_0x338422,_0xd2c34c){const _0x13467f=a1113_0x29977e,_0x136846=this;this['sequence'][_0x13467f(0x1f7)](function(){return _0x136846['queryInterface']['addColumn'](_0x47cc79,_0x338422,_0xd2c34c)['then'](function(){const _0x3b1de9=a1113_0x506b;logger[_0x3b1de9(0x1f6)](_0x3b1de9(0x1e0),_0x338422,_0x47cc79);})['catch'](function(_0x2562dd){const _0x1ffb31=a1113_0x506b;logger[_0x1ffb31(0x1f6)](JSON['stringify'](_0x2562dd));});});},Migration[a1113_0x29977e(0x1f2)][a1113_0x29977e(0x1ef)]=function(_0x18c7cf){const _0x326e84=this;this['sequence']['enqueue'](function(){const _0x323dbc=a1113_0x506b;return _0x326e84[_0x323dbc(0x1e5)][_0x323dbc(0x1ef)](_0x18c7cf,{'force':!![]})[_0x323dbc(0x200)](function(){logger['info']('table\x20dropped\x20%s',_0x18c7cf);})[_0x323dbc(0x1ee)](function(_0x2a7fa2){logger['info'](JSON['stringify'](_0x2a7fa2));});});},Migration[a1113_0x29977e(0x1f2)][a1113_0x29977e(0x1e9)]=function(_0x2e4dff,_0x47e232,_0x4a83a8){const _0x290804=a1113_0x29977e,_0x1fca7c=this;this[_0x290804(0x1f9)][_0x290804(0x1f7)](function(){const _0x399992=_0x290804;return _0x1fca7c[_0x399992(0x1e5)]['addIndex'](_0x2e4dff,_0x47e232,{'indexName':_0x4a83a8})['then'](function(){const _0x58f020=_0x399992;logger[_0x58f020(0x1f6)]('addIndex\x20%s\x20%s\x20%s',_0x2e4dff,_0x47e232[_0x58f020(0x1e7)](','),_0x4a83a8);})[_0x399992(0x1ee)](function(_0x2964f6){const _0x4a0d56=_0x399992;logger[_0x4a0d56(0x1f6)](JSON[_0x4a0d56(0x1e2)](_0x2964f6));});});},Migration[a1113_0x29977e(0x1f2)]['removeIndex']=function(_0x58bf28,_0x45ba48){const _0xd95820=a1113_0x29977e,_0xb32c04=this;this[_0xd95820(0x1f9)][_0xd95820(0x1f7)](function(){const _0x1fd4ed=_0xd95820;return _0xb32c04[_0x1fd4ed(0x1e5)][_0x1fd4ed(0x1ec)](_0x58bf28,_0x45ba48)[_0x1fd4ed(0x200)](function(){const _0x8d9c77=_0x1fd4ed;logger['info'](_0x8d9c77(0x1f3),_0x58bf28,_0x45ba48);})[_0x1fd4ed(0x1ee)](function(_0x39f1b7){const _0x23537f=_0x1fd4ed;logger[_0x23537f(0x1f6)](JSON['stringify'](_0x39f1b7));});});},Migration[a1113_0x29977e(0x1f2)][a1113_0x29977e(0x1fd)]=function(_0x1c4465){const _0x3bc91e=a1113_0x29977e,_0x48c361=this;this[_0x3bc91e(0x1f9)][_0x3bc91e(0x1f7)](function(){const _0x26166b=_0x3bc91e;return _0x48c361[_0x26166b(0x1e5)][_0x26166b(0x202)][_0x26166b(0x1fd)](_0x1c4465)[_0x26166b(0x200)](function(){const _0x40c9f1=_0x26166b;logger[_0x40c9f1(0x1f6)](_0x40c9f1(0x1f5),_0x1c4465);})[_0x26166b(0x1ee)](function(_0x383761){const _0x441af6=_0x26166b;logger[_0x441af6(0x1f6)](JSON[_0x441af6(0x1e2)](_0x383761));});});},Migration['prototype'][a1113_0x29977e(0x207)]=function(_0x1f01fe,_0x5b9ebe){const _0xd3bf8b=a1113_0x29977e,_0x5d97a4=this;this[_0xd3bf8b(0x1f9)][_0xd3bf8b(0x1f7)](function(){const _0x304bdb=_0xd3bf8b;return _0x5d97a4[_0x304bdb(0x1e5)]['removeColumn'](_0x1f01fe,_0x5b9ebe)[_0x304bdb(0x200)](function(){const _0x4e56e3=_0x304bdb;logger['info'](_0x4e56e3(0x1f4),_0x5b9ebe,_0x1f01fe);})[_0x304bdb(0x1ee)](function(_0x8f794d){const _0x4296b5=_0x304bdb;logger['info'](util[_0x4296b5(0x1e4)](_0x8f794d,{'showHidden':![],'depth':null}));});});},Migration[a1113_0x29977e(0x1f2)]['renameColumn']=function(_0x37b610,_0x5890c0,_0x42f797){const _0x1c8ee2=a1113_0x29977e,_0x3df09c=this;this[_0x1c8ee2(0x1f9)][_0x1c8ee2(0x1f7)](function(){const _0x4c2df5=_0x1c8ee2;return _0x3df09c[_0x4c2df5(0x1e5)][_0x4c2df5(0x1ff)](_0x37b610,_0x5890c0,_0x42f797)[_0x4c2df5(0x200)](function(){logger['info']('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x5890c0,_0x42f797,_0x37b610);})[_0x4c2df5(0x1ee)](function(_0x4bcb0f){const _0x3abeaf=_0x4c2df5;logger[_0x3abeaf(0x1f6)](util[_0x3abeaf(0x1e4)](_0x4bcb0f,{'showHidden':![],'depth':null}));});});},Migration[a1113_0x29977e(0x1f2)][a1113_0x29977e(0x1e8)]=function(_0x30d49a){const _0x3e88e2=a1113_0x29977e;this[_0x3e88e2(0x1f9)][_0x3e88e2(0x1f7)](function(){return _0x30d49a();});},module[a1113_0x29977e(0x1e6)]={'up':function(_0x273c90,_0x11b837){return new Promise(function(_0x2e549b){const _0x56db71=a1113_0x506b,_0x10ded6=new Migration(_0x273c90);_0x10ded6[_0x56db71(0x205)](_0x56db71(0x201),'routeid',{'type':_0x11b837[_0x56db71(0x1e3)]}),_0x10ded6[_0x56db71(0x205)](_0x56db71(0x1fc),'originatecalleridnum',{'type':_0x11b837[_0x56db71(0x1e1)]}),_0x10ded6[_0x56db71(0x205)](_0x56db71(0x1fc),_0x56db71(0x1f1),{'type':_0x11b837['STRING']}),_0x10ded6[_0x56db71(0x205)](_0x56db71(0x1f8),_0x56db71(0x1ea),{'type':_0x11b837['STRING']}),_0x10ded6[_0x56db71(0x205)](_0x56db71(0x1f8),_0x56db71(0x1f1),{'type':_0x11b837['STRING']}),_0x10ded6[_0x56db71(0x205)](_0x56db71(0x1f0),_0x56db71(0x206),{'type':_0x11b837['STRING']}),_0x10ded6['addColumn'](_0x56db71(0x1f0),_0x56db71(0x1eb),{'type':_0x11b837[_0x56db71(0x1e1)]}),_0x10ded6[_0x56db71(0x1e8)](_0x2e549b);});},'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 167027b..bd7633e 100644 --- a/server/migrations/2.0.74.js +++ b/server/migrations/2.0.74.js @@ -1 +1 @@ -const a952_0x4200=['migration','changeColumn','renameColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','Added\x20column\x20%s\x20to\x20%s','inspect','queryInterface','dropTable','addColumn','../config/logger','enqueue','stringify','removeColumn','info','catch','addIndex','util','addIndex\x20%s\x20%s\x20%s','query','then','sequelize','removeIndex','exports','finally','sequence','final','tail','prototype','table\x20dropped\x20%s'];(function(_0x327f04,_0x4200a6){const _0x522f77=function(_0x491c9a){while(--_0x491c9a){_0x327f04['push'](_0x327f04['shift']());}};_0x522f77(++_0x4200a6);}(a952_0x4200,0x1e8));const a952_0x522f=function(_0x327f04,_0x4200a6){_0x327f04=_0x327f04-0x0;let _0x522f77=a952_0x4200[_0x327f04];return _0x522f77;};const _0x3fe85e=a952_0x522f;'use strict';const util=require(_0x3fe85e('0x15')),logger=require(_0x3fe85e('0xe'))(_0x3fe85e('0x5')),Sequence=function(){};Sequence[_0x3fe85e('0x3')][_0x3fe85e('0xf')]=function(_0x491c9a){const _0x440941=_0x3fe85e;this[_0x440941('0x2')]=this[_0x440941('0x2')]?this[_0x440941('0x2')][_0x440941('0x1c')](_0x491c9a):_0x491c9a();};const Migration=function(_0x5f3016){const _0x3f5b33=_0x3fe85e;this['queryInterface']=_0x5f3016,this[_0x3f5b33('0x0')]=new Sequence();};Migration[_0x3fe85e('0x3')]['changeColumn']=function(_0x3552ee,_0x282f6f,_0x2745fe){const _0x40374d=_0x3fe85e,_0x3e8f78=this;this[_0x40374d('0x0')][_0x40374d('0xf')](function(){const _0x424d49=_0x40374d;return _0x3e8f78[_0x424d49('0xb')][_0x424d49('0x6')](_0x3552ee,_0x282f6f,_0x2745fe)[_0x424d49('0x18')](function(){const _0x3e6bbd=_0x424d49;logger[_0x3e6bbd('0x12')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x282f6f,_0x3552ee);})[_0x424d49('0x13')](function(_0x44c44a){const _0x383b39=_0x424d49;logger[_0x383b39('0x12')](JSON[_0x383b39('0x10')](_0x44c44a));});});},Migration[_0x3fe85e('0x3')][_0x3fe85e('0xd')]=function(_0xd0bda9,_0x234f17,_0x4679b3){const _0x28d73e=_0x3fe85e,_0x316dca=this;this[_0x28d73e('0x0')][_0x28d73e('0xf')](function(){const _0x54f3c7=_0x28d73e;return _0x316dca[_0x54f3c7('0xb')]['addColumn'](_0xd0bda9,_0x234f17,_0x4679b3)[_0x54f3c7('0x18')](function(){const _0x305f84=_0x54f3c7;logger[_0x305f84('0x12')](_0x305f84('0x9'),_0x234f17,_0xd0bda9);})[_0x54f3c7('0x13')](function(_0x2177c0){const _0x218a97=_0x54f3c7;logger[_0x218a97('0x12')](JSON['stringify'](_0x2177c0));});});},Migration[_0x3fe85e('0x3')][_0x3fe85e('0xc')]=function(_0x5ca417){const _0x46acb5=_0x3fe85e,_0x3a7141=this;this[_0x46acb5('0x0')][_0x46acb5('0xf')](function(){const _0x2a10e0=_0x46acb5;return _0x3a7141[_0x2a10e0('0xb')][_0x2a10e0('0xc')](_0x5ca417,{'force':!![]})['then'](function(){const _0x18d268=_0x2a10e0;logger['info'](_0x18d268('0x4'),_0x5ca417);})[_0x2a10e0('0x13')](function(_0x44a156){const _0x1b915e=_0x2a10e0;logger[_0x1b915e('0x12')](JSON['stringify'](_0x44a156));});});},Migration['prototype']['addIndex']=function(_0xba842c,_0x568e84,_0x5071ab){const _0x180ec3=_0x3fe85e,_0x449565=this;this[_0x180ec3('0x0')][_0x180ec3('0xf')](function(){const _0x12f6c7=_0x180ec3;return _0x449565[_0x12f6c7('0xb')][_0x12f6c7('0x14')](_0xba842c,_0x568e84,{'indexName':_0x5071ab})[_0x12f6c7('0x18')](function(){const _0x1ea804=_0x12f6c7;logger['info'](_0x1ea804('0x16'),_0xba842c,_0x568e84['join'](','),_0x5071ab);})['catch'](function(_0x13777b){const _0x32aa4b=_0x12f6c7;logger[_0x32aa4b('0x12')](JSON['stringify'](_0x13777b));});});},Migration[_0x3fe85e('0x3')][_0x3fe85e('0x1a')]=function(_0x3929f7,_0x5c3a67){const _0x59972c=_0x3fe85e,_0x3abb1f=this;this[_0x59972c('0x0')][_0x59972c('0xf')](function(){const _0x3545a7=_0x59972c;return _0x3abb1f[_0x3545a7('0xb')][_0x3545a7('0x1a')](_0x3929f7,_0x5c3a67)[_0x3545a7('0x18')](function(){const _0x230d85=_0x3545a7;logger[_0x230d85('0x12')]('removeIndex\x20%s\x20%s',_0x3929f7,_0x5c3a67);})[_0x3545a7('0x13')](function(_0x3111b2){const _0x4b37c8=_0x3545a7;logger['info'](JSON[_0x4b37c8('0x10')](_0x3111b2));});});},Migration[_0x3fe85e('0x3')][_0x3fe85e('0x17')]=function(_0x49b093){const _0x3c779b=_0x3fe85e,_0x5c67d2=this;this['sequence'][_0x3c779b('0xf')](function(){const _0x7297e6=_0x3c779b;return _0x5c67d2[_0x7297e6('0xb')][_0x7297e6('0x19')][_0x7297e6('0x17')](_0x49b093)[_0x7297e6('0x18')](function(){const _0x1a95d5=_0x7297e6;logger[_0x1a95d5('0x12')]('query\x20%s',_0x49b093);})[_0x7297e6('0x13')](function(_0x4ebc0d){const _0x50df61=_0x7297e6;logger[_0x50df61('0x12')](JSON[_0x50df61('0x10')](_0x4ebc0d));});});},Migration[_0x3fe85e('0x3')][_0x3fe85e('0x11')]=function(_0xa74150,_0x4c4bd9){const _0x26882b=_0x3fe85e,_0x3e9317=this;this['sequence'][_0x26882b('0xf')](function(){const _0x3a02c9=_0x26882b;return _0x3e9317[_0x3a02c9('0xb')][_0x3a02c9('0x11')](_0xa74150,_0x4c4bd9)[_0x3a02c9('0x18')](function(){logger['info']('Removed\x20column\x20%s\x20from\x20%s',_0x4c4bd9,_0xa74150);})['catch'](function(_0x473753){const _0x4129b9=_0x3a02c9;logger[_0x4129b9('0x12')](util[_0x4129b9('0xa')](_0x473753,{'showHidden':![],'depth':null}));});});},Migration[_0x3fe85e('0x3')][_0x3fe85e('0x7')]=function(_0x1bf03d,_0x44afe9,_0x1d2440){const _0xe29659=this;this['sequence']['enqueue'](function(){const _0x141489=a952_0x522f;return _0xe29659['queryInterface'][_0x141489('0x7')](_0x1bf03d,_0x44afe9,_0x1d2440)[_0x141489('0x18')](function(){const _0x349aab=_0x141489;logger[_0x349aab('0x12')](_0x349aab('0x8'),_0x44afe9,_0x1d2440,_0x1bf03d);})[_0x141489('0x13')](function(_0x4f25c5){const _0x7f3d9=_0x141489;logger[_0x7f3d9('0x12')](util['inspect'](_0x4f25c5,{'showHidden':![],'depth':null}));});});},Migration[_0x3fe85e('0x3')]['final']=function(_0x425a0c){const _0x408d07=_0x3fe85e;this[_0x408d07('0x0')]['enqueue'](function(){return _0x425a0c();});},module[_0x3fe85e('0x1b')]={'up':function(_0x3f2117){return new Promise(function(_0x44931e){const _0xe3756e=a952_0x522f,_0x250c29=new Migration(_0x3f2117);_0x250c29[_0xe3756e('0x1')](_0x44931e);});},'down':function(){}}; \ No newline at end of file +const a1114_0xb89f=['sequelize','removeColumn','prototype','finally','inspect','Changed\x20column\x20%s\x20in\x20table\x20%s','catch','dropTable','then','removeIndex','migration','stringify','addIndex','tail','query','sequence','../config/logger','join','query\x20%s','addColumn','enqueue','removeIndex\x20%s\x20%s','exports','addIndex\x20%s\x20%s\x20%s','changeColumn','final','queryInterface','table\x20dropped\x20%s','renameColumn','info'];(function(_0x4f72c5,_0x221a0a){const _0xb89f0d=function(_0x59c911){while(--_0x59c911){_0x4f72c5['push'](_0x4f72c5['shift']());}};_0xb89f0d(++_0x221a0a);}(a1114_0xb89f,0xc2));const a1114_0x59c9=function(_0x4f72c5,_0x221a0a){_0x4f72c5=_0x4f72c5-0x159;let _0xb89f0d=a1114_0xb89f[_0x4f72c5];return _0xb89f0d;};const a1114_0x15425f=a1114_0x59c9;'use strict';const util=require('util'),logger=require(a1114_0x15425f(0x15b))(a1114_0x15425f(0x173)),Sequence=function(){};Sequence[a1114_0x15425f(0x16b)]['enqueue']=function(_0x22e76f){const _0x27a8b0=a1114_0x15425f;this[_0x27a8b0(0x176)]=this[_0x27a8b0(0x176)]?this[_0x27a8b0(0x176)][_0x27a8b0(0x16c)](_0x22e76f):_0x22e76f();};const Migration=function(_0x2b9ecc){const _0xd22911=a1114_0x15425f;this['queryInterface']=_0x2b9ecc,this[_0xd22911(0x15a)]=new Sequence();};Migration[a1114_0x15425f(0x16b)]['changeColumn']=function(_0x50b925,_0x168ed0,_0xcda765){const _0xdb1f34=a1114_0x15425f,_0x5a48d4=this;this['sequence'][_0xdb1f34(0x15f)](function(){const _0xeeb717=_0xdb1f34;return _0x5a48d4[_0xeeb717(0x165)][_0xeeb717(0x163)](_0x50b925,_0x168ed0,_0xcda765)[_0xeeb717(0x171)](function(){const _0x11c930=_0xeeb717;logger[_0x11c930(0x168)](_0x11c930(0x16e),_0x168ed0,_0x50b925);})['catch'](function(_0x430fdf){const _0x14de7c=_0xeeb717;logger[_0x14de7c(0x168)](JSON['stringify'](_0x430fdf));});});},Migration['prototype'][a1114_0x15425f(0x15e)]=function(_0x50713e,_0x58291c,_0x4544ef){const _0x12a2a2=a1114_0x15425f,_0x176137=this;this[_0x12a2a2(0x15a)][_0x12a2a2(0x15f)](function(){const _0x3b7def=_0x12a2a2;return _0x176137['queryInterface'][_0x3b7def(0x15e)](_0x50713e,_0x58291c,_0x4544ef)['then'](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x58291c,_0x50713e);})[_0x3b7def(0x16f)](function(_0x417f13){const _0x19008e=_0x3b7def;logger[_0x19008e(0x168)](JSON[_0x19008e(0x174)](_0x417f13));});});},Migration['prototype'][a1114_0x15425f(0x170)]=function(_0x4623e3){const _0x1419d9=a1114_0x15425f,_0x5ae3c7=this;this[_0x1419d9(0x15a)][_0x1419d9(0x15f)](function(){const _0xf84144=_0x1419d9;return _0x5ae3c7['queryInterface'][_0xf84144(0x170)](_0x4623e3,{'force':!![]})[_0xf84144(0x171)](function(){const _0x2f0ee1=_0xf84144;logger[_0x2f0ee1(0x168)](_0x2f0ee1(0x166),_0x4623e3);})[_0xf84144(0x16f)](function(_0x29b18f){logger['info'](JSON['stringify'](_0x29b18f));});});},Migration['prototype']['addIndex']=function(_0x57ae1d,_0x5dd73d,_0x58a651){const _0x372f83=a1114_0x15425f,_0x479542=this;this[_0x372f83(0x15a)]['enqueue'](function(){const _0x560e45=_0x372f83;return _0x479542['queryInterface'][_0x560e45(0x175)](_0x57ae1d,_0x5dd73d,{'indexName':_0x58a651})[_0x560e45(0x171)](function(){const _0x8537cb=_0x560e45;logger[_0x8537cb(0x168)](_0x8537cb(0x162),_0x57ae1d,_0x5dd73d[_0x8537cb(0x15c)](','),_0x58a651);})[_0x560e45(0x16f)](function(_0x3d3ff7){const _0x3b7182=_0x560e45;logger[_0x3b7182(0x168)](JSON[_0x3b7182(0x174)](_0x3d3ff7));});});},Migration[a1114_0x15425f(0x16b)][a1114_0x15425f(0x172)]=function(_0x19ab19,_0x3d2fa8){const _0x44d97f=a1114_0x15425f,_0xb11d8c=this;this[_0x44d97f(0x15a)]['enqueue'](function(){const _0xc57621=_0x44d97f;return _0xb11d8c[_0xc57621(0x165)][_0xc57621(0x172)](_0x19ab19,_0x3d2fa8)[_0xc57621(0x171)](function(){const _0x402094=_0xc57621;logger[_0x402094(0x168)](_0x402094(0x160),_0x19ab19,_0x3d2fa8);})[_0xc57621(0x16f)](function(_0x49b1de){const _0x856bb5=_0xc57621;logger[_0x856bb5(0x168)](JSON[_0x856bb5(0x174)](_0x49b1de));});});},Migration['prototype'][a1114_0x15425f(0x159)]=function(_0x835c7e){const _0x3cd83b=a1114_0x15425f,_0x5852ef=this;this[_0x3cd83b(0x15a)][_0x3cd83b(0x15f)](function(){const _0x1121eb=_0x3cd83b;return _0x5852ef[_0x1121eb(0x165)][_0x1121eb(0x169)][_0x1121eb(0x159)](_0x835c7e)[_0x1121eb(0x171)](function(){const _0x1fd0e3=_0x1121eb;logger[_0x1fd0e3(0x168)](_0x1fd0e3(0x15d),_0x835c7e);})['catch'](function(_0x5475d6){const _0xa50ead=_0x1121eb;logger[_0xa50ead(0x168)](JSON[_0xa50ead(0x174)](_0x5475d6));});});},Migration['prototype'][a1114_0x15425f(0x16a)]=function(_0x444fb1,_0x455505){const _0x5e0fd8=this;this['sequence']['enqueue'](function(){const _0x1c7a2c=a1114_0x59c9;return _0x5e0fd8[_0x1c7a2c(0x165)]['removeColumn'](_0x444fb1,_0x455505)['then'](function(){const _0x49a774=_0x1c7a2c;logger[_0x49a774(0x168)]('Removed\x20column\x20%s\x20from\x20%s',_0x455505,_0x444fb1);})[_0x1c7a2c(0x16f)](function(_0x5bfd0e){const _0x916828=_0x1c7a2c;logger[_0x916828(0x168)](util[_0x916828(0x16d)](_0x5bfd0e,{'showHidden':![],'depth':null}));});});},Migration[a1114_0x15425f(0x16b)][a1114_0x15425f(0x167)]=function(_0x319a00,_0x47fd69,_0x1653f2){const _0x41a9a9=a1114_0x15425f,_0x288e28=this;this[_0x41a9a9(0x15a)][_0x41a9a9(0x15f)](function(){const _0x44abb4=_0x41a9a9;return _0x288e28['queryInterface'][_0x44abb4(0x167)](_0x319a00,_0x47fd69,_0x1653f2)['then'](function(){const _0x1f645b=_0x44abb4;logger[_0x1f645b(0x168)]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x47fd69,_0x1653f2,_0x319a00);})[_0x44abb4(0x16f)](function(_0x39d8a5){const _0x2c66da=_0x44abb4;logger[_0x2c66da(0x168)](util[_0x2c66da(0x16d)](_0x39d8a5,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1114_0x15425f(0x164)]=function(_0x2fd0f1){const _0x5e7c69=a1114_0x15425f;this[_0x5e7c69(0x15a)][_0x5e7c69(0x15f)](function(){return _0x2fd0f1();});},module[a1114_0x15425f(0x161)]={'up':function(_0x387570){return new Promise(function(_0x3f4d65){const _0x48840a=a1114_0x59c9,_0x11764d=new Migration(_0x387570);_0x11764d[_0x48840a(0x164)](_0x3f4d65);});},'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 de12544..d6be166 100644 --- a/server/migrations/2.0.75.js +++ b/server/migrations/2.0.75.js @@ -1 +1 @@ -const a953_0x15f1=['addIndex','addIndex\x20%s\x20%s\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','../config/logger','removeIndex\x20%s\x20%s','catch','addColumn','prototype','enqueue','Changed\x20column\x20%s\x20in\x20table\x20%s','exports','final','sequelize','renameColumn','inspect','query','removeColumn','changeColumn','migration','dropTable','Added\x20column\x20%s\x20to\x20%s','sequence','then','table\x20dropped\x20%s','tail','query\x20%s','join','queryInterface','stringify','info'];(function(_0x9e3af1,_0x15f184){const _0xc21d99=function(_0x3924fc){while(--_0x3924fc){_0x9e3af1['push'](_0x9e3af1['shift']());}};_0xc21d99(++_0x15f184);}(a953_0x15f1,0x131));const a953_0xc21d=function(_0x9e3af1,_0x15f184){_0x9e3af1=_0x9e3af1-0x0;let _0xc21d99=a953_0x15f1[_0x9e3af1];return _0xc21d99;};const _0x50f908=a953_0xc21d;'use strict';const util=require('util'),logger=require(_0x50f908('0x1c'))(_0x50f908('0xd')),Sequence=function(){};Sequence[_0x50f908('0x2')][_0x50f908('0x3')]=function(_0x3924fc){const _0xbec37b=_0x50f908;this[_0xbec37b('0x13')]=this[_0xbec37b('0x13')]?this[_0xbec37b('0x13')]['finally'](_0x3924fc):_0x3924fc();};const Migration=function(_0x2eca2c){const _0x2a3424=_0x50f908;this[_0x2a3424('0x16')]=_0x2eca2c,this[_0x2a3424('0x10')]=new Sequence();};Migration[_0x50f908('0x2')][_0x50f908('0xc')]=function(_0x579ad9,_0x44e936,_0x20fb15){const _0x15949c=_0x50f908,_0x1e3887=this;this[_0x15949c('0x10')][_0x15949c('0x3')](function(){const _0x4c90cb=_0x15949c;return _0x1e3887[_0x4c90cb('0x16')][_0x4c90cb('0xc')](_0x579ad9,_0x44e936,_0x20fb15)[_0x4c90cb('0x11')](function(){const _0x5cb699=_0x4c90cb;logger[_0x5cb699('0x18')](_0x5cb699('0x4'),_0x44e936,_0x579ad9);})[_0x4c90cb('0x0')](function(_0xc6eee5){const _0x2ff78c=_0x4c90cb;logger['info'](JSON[_0x2ff78c('0x17')](_0xc6eee5));});});},Migration[_0x50f908('0x2')][_0x50f908('0x1')]=function(_0x216c64,_0x1d4bd0,_0x1852f4){const _0x16711e=_0x50f908,_0x8e3aba=this;this['sequence'][_0x16711e('0x3')](function(){const _0x3c7b54=_0x16711e;return _0x8e3aba[_0x3c7b54('0x16')][_0x3c7b54('0x1')](_0x216c64,_0x1d4bd0,_0x1852f4)[_0x3c7b54('0x11')](function(){const _0x10b56f=_0x3c7b54;logger['info'](_0x10b56f('0xf'),_0x1d4bd0,_0x216c64);})[_0x3c7b54('0x0')](function(_0x1ddd1a){const _0x57630f=_0x3c7b54;logger[_0x57630f('0x18')](JSON['stringify'](_0x1ddd1a));});});},Migration[_0x50f908('0x2')][_0x50f908('0xe')]=function(_0x591c46){const _0x390151=_0x50f908,_0x239737=this;this['sequence'][_0x390151('0x3')](function(){const _0x152a98=_0x390151;return _0x239737[_0x152a98('0x16')]['dropTable'](_0x591c46,{'force':!![]})[_0x152a98('0x11')](function(){const _0x1f319c=_0x152a98;logger[_0x1f319c('0x18')](_0x1f319c('0x12'),_0x591c46);})[_0x152a98('0x0')](function(_0x693598){const _0x30f18b=_0x152a98;logger[_0x30f18b('0x18')](JSON[_0x30f18b('0x17')](_0x693598));});});},Migration[_0x50f908('0x2')][_0x50f908('0x19')]=function(_0x1f16c3,_0x22d891,_0x423631){const _0x32a554=_0x50f908,_0x483411=this;this[_0x32a554('0x10')][_0x32a554('0x3')](function(){const _0x452b1e=_0x32a554;return _0x483411[_0x452b1e('0x16')][_0x452b1e('0x19')](_0x1f16c3,_0x22d891,{'indexName':_0x423631})['then'](function(){const _0x5e35cf=_0x452b1e;logger['info'](_0x5e35cf('0x1a'),_0x1f16c3,_0x22d891[_0x5e35cf('0x15')](','),_0x423631);})[_0x452b1e('0x0')](function(_0x61d173){const _0x1d8b6e=_0x452b1e;logger[_0x1d8b6e('0x18')](JSON['stringify'](_0x61d173));});});},Migration[_0x50f908('0x2')]['removeIndex']=function(_0x155c1f,_0x23cd62){const _0x47006b=_0x50f908,_0x6530c3=this;this[_0x47006b('0x10')]['enqueue'](function(){const _0x4dcd02=_0x47006b;return _0x6530c3['queryInterface']['removeIndex'](_0x155c1f,_0x23cd62)['then'](function(){const _0x2f863b=a953_0xc21d;logger[_0x2f863b('0x18')](_0x2f863b('0x1d'),_0x155c1f,_0x23cd62);})[_0x4dcd02('0x0')](function(_0x165f1a){const _0x273a28=_0x4dcd02;logger[_0x273a28('0x18')](JSON[_0x273a28('0x17')](_0x165f1a));});});},Migration[_0x50f908('0x2')][_0x50f908('0xa')]=function(_0x33b92a){const _0x571444=_0x50f908,_0x369064=this;this[_0x571444('0x10')][_0x571444('0x3')](function(){const _0x1cd027=_0x571444;return _0x369064[_0x1cd027('0x16')][_0x1cd027('0x7')]['query'](_0x33b92a)['then'](function(){const _0x579c03=_0x1cd027;logger[_0x579c03('0x18')](_0x579c03('0x14'),_0x33b92a);})[_0x1cd027('0x0')](function(_0x35b620){const _0x58b433=_0x1cd027;logger['info'](JSON[_0x58b433('0x17')](_0x35b620));});});},Migration[_0x50f908('0x2')][_0x50f908('0xb')]=function(_0x5c7b14,_0x511aa9){const _0x561117=_0x50f908,_0x2cc088=this;this[_0x561117('0x10')][_0x561117('0x3')](function(){const _0xf5bc4d=_0x561117;return _0x2cc088[_0xf5bc4d('0x16')][_0xf5bc4d('0xb')](_0x5c7b14,_0x511aa9)[_0xf5bc4d('0x11')](function(){const _0xdf5b7d=_0xf5bc4d;logger[_0xdf5b7d('0x18')]('Removed\x20column\x20%s\x20from\x20%s',_0x511aa9,_0x5c7b14);})[_0xf5bc4d('0x0')](function(_0x457048){const _0x4eac61=_0xf5bc4d;logger[_0x4eac61('0x18')](util['inspect'](_0x457048,{'showHidden':![],'depth':null}));});});},Migration[_0x50f908('0x2')][_0x50f908('0x8')]=function(_0x196b6b,_0x25c4d8,_0xa8a043){const _0x2f308c=_0x50f908,_0x33a9d0=this;this[_0x2f308c('0x10')]['enqueue'](function(){const _0x20cec5=_0x2f308c;return _0x33a9d0[_0x20cec5('0x16')]['renameColumn'](_0x196b6b,_0x25c4d8,_0xa8a043)['then'](function(){const _0x572cba=_0x20cec5;logger[_0x572cba('0x18')](_0x572cba('0x1b'),_0x25c4d8,_0xa8a043,_0x196b6b);})[_0x20cec5('0x0')](function(_0x360655){const _0x1a7402=_0x20cec5;logger[_0x1a7402('0x18')](util[_0x1a7402('0x9')](_0x360655,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x50f908('0x6')]=function(_0x115ba5){const _0x38f9de=_0x50f908;this[_0x38f9de('0x10')]['enqueue'](function(){return _0x115ba5();});},module[_0x50f908('0x5')]={'up':function(_0x470970){return new Promise(function(_0x3f10e2){const _0x1e3e24=a953_0xc21d,_0x48bc6e=new Migration(_0x470970);_0x48bc6e[_0x1e3e24('0x6')](_0x3f10e2);});},'down':function(){}}; \ No newline at end of file +const a1115_0x22d3=['addIndex\x20%s\x20%s\x20%s','changeColumn','catch','enqueue','prototype','addColumn','Removed\x20column\x20%s\x20from\x20%s','table\x20dropped\x20%s','info','util','migration','then','query','sequelize','query\x20%s','final','stringify','queryInterface','sequence','tail','join','dropTable','../config/logger','renameColumn','addIndex','removeColumn','removeIndex','exports'];(function(_0x38ae70,_0x5a9308){const _0x22d3f5=function(_0x487980){while(--_0x487980){_0x38ae70['push'](_0x38ae70['shift']());}};_0x22d3f5(++_0x5a9308);}(a1115_0x22d3,0x197));const a1115_0x4879=function(_0x38ae70,_0x5a9308){_0x38ae70=_0x38ae70-0x123;let _0x22d3f5=a1115_0x22d3[_0x38ae70];return _0x22d3f5;};const a1115_0x220578=a1115_0x4879;'use strict';const util=require(a1115_0x220578(0x139)),logger=require(a1115_0x220578(0x12a))(a1115_0x220578(0x13a)),Sequence=function(){};Sequence[a1115_0x220578(0x134)][a1115_0x220578(0x133)]=function(_0x526879){const _0x218452=a1115_0x220578;this[_0x218452(0x127)]=this['tail']?this[_0x218452(0x127)]['finally'](_0x526879):_0x526879();};const Migration=function(_0x3e4ddb){const _0x3f7fcf=a1115_0x220578;this[_0x3f7fcf(0x125)]=_0x3e4ddb,this['sequence']=new Sequence();};Migration['prototype'][a1115_0x220578(0x131)]=function(_0xb6a9b6,_0x206487,_0xe08cd0){const _0x476923=a1115_0x220578,_0x29db10=this;this['sequence'][_0x476923(0x133)](function(){const _0xcbcf75=_0x476923;return _0x29db10[_0xcbcf75(0x125)][_0xcbcf75(0x131)](_0xb6a9b6,_0x206487,_0xe08cd0)['then'](function(){const _0x3b4bcc=_0xcbcf75;logger[_0x3b4bcc(0x138)]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x206487,_0xb6a9b6);})[_0xcbcf75(0x132)](function(_0x184fab){const _0x3e5705=_0xcbcf75;logger['info'](JSON[_0x3e5705(0x124)](_0x184fab));});});},Migration[a1115_0x220578(0x134)][a1115_0x220578(0x135)]=function(_0x278cd3,_0x55c7b6,_0x3de22f){const _0x30d599=a1115_0x220578,_0x264f35=this;this[_0x30d599(0x126)][_0x30d599(0x133)](function(){const _0x343ec6=_0x30d599;return _0x264f35[_0x343ec6(0x125)][_0x343ec6(0x135)](_0x278cd3,_0x55c7b6,_0x3de22f)[_0x343ec6(0x13b)](function(){const _0x15a128=_0x343ec6;logger[_0x15a128(0x138)]('Added\x20column\x20%s\x20to\x20%s',_0x55c7b6,_0x278cd3);})[_0x343ec6(0x132)](function(_0x2db580){const _0x3c0e39=_0x343ec6;logger[_0x3c0e39(0x138)](JSON[_0x3c0e39(0x124)](_0x2db580));});});},Migration['prototype']['dropTable']=function(_0x2d35b1){const _0x5846fb=a1115_0x220578,_0x472ed5=this;this[_0x5846fb(0x126)][_0x5846fb(0x133)](function(){const _0x5e9983=_0x5846fb;return _0x472ed5[_0x5e9983(0x125)][_0x5e9983(0x129)](_0x2d35b1,{'force':!![]})[_0x5e9983(0x13b)](function(){const _0xe2e8b2=_0x5e9983;logger[_0xe2e8b2(0x138)](_0xe2e8b2(0x137),_0x2d35b1);})[_0x5e9983(0x132)](function(_0x36662e){const _0x519959=_0x5e9983;logger['info'](JSON[_0x519959(0x124)](_0x36662e));});});},Migration[a1115_0x220578(0x134)][a1115_0x220578(0x12c)]=function(_0x547460,_0x285d59,_0x317839){const _0x457af1=a1115_0x220578,_0x277543=this;this[_0x457af1(0x126)][_0x457af1(0x133)](function(){const _0x15c6c1=_0x457af1;return _0x277543[_0x15c6c1(0x125)][_0x15c6c1(0x12c)](_0x547460,_0x285d59,{'indexName':_0x317839})[_0x15c6c1(0x13b)](function(){const _0xd12d2=_0x15c6c1;logger[_0xd12d2(0x138)](_0xd12d2(0x130),_0x547460,_0x285d59[_0xd12d2(0x128)](','),_0x317839);})[_0x15c6c1(0x132)](function(_0x3a2e72){const _0x41d9cd=_0x15c6c1;logger[_0x41d9cd(0x138)](JSON[_0x41d9cd(0x124)](_0x3a2e72));});});},Migration[a1115_0x220578(0x134)]['removeIndex']=function(_0x4bb0a1,_0x44dc05){const _0x59d8ae=a1115_0x220578,_0x4b5861=this;this[_0x59d8ae(0x126)][_0x59d8ae(0x133)](function(){const _0x53dd86=_0x59d8ae;return _0x4b5861['queryInterface'][_0x53dd86(0x12e)](_0x4bb0a1,_0x44dc05)[_0x53dd86(0x13b)](function(){const _0x5e7271=_0x53dd86;logger[_0x5e7271(0x138)]('removeIndex\x20%s\x20%s',_0x4bb0a1,_0x44dc05);})['catch'](function(_0x5d54c3){const _0x2cc529=_0x53dd86;logger[_0x2cc529(0x138)](JSON['stringify'](_0x5d54c3));});});},Migration[a1115_0x220578(0x134)][a1115_0x220578(0x13c)]=function(_0x37e4bb){const _0x3e7dcd=a1115_0x220578,_0x307b69=this;this[_0x3e7dcd(0x126)][_0x3e7dcd(0x133)](function(){const _0xd45aba=_0x3e7dcd;return _0x307b69[_0xd45aba(0x125)][_0xd45aba(0x13d)][_0xd45aba(0x13c)](_0x37e4bb)[_0xd45aba(0x13b)](function(){const _0x31b9c8=_0xd45aba;logger[_0x31b9c8(0x138)](_0x31b9c8(0x13e),_0x37e4bb);})['catch'](function(_0x1f9193){const _0x41221b=_0xd45aba;logger[_0x41221b(0x138)](JSON[_0x41221b(0x124)](_0x1f9193));});});},Migration[a1115_0x220578(0x134)][a1115_0x220578(0x12d)]=function(_0x5205c3,_0x5ac89c){const _0x3d0bcb=a1115_0x220578,_0x531800=this;this[_0x3d0bcb(0x126)]['enqueue'](function(){const _0x14a190=_0x3d0bcb;return _0x531800['queryInterface'][_0x14a190(0x12d)](_0x5205c3,_0x5ac89c)[_0x14a190(0x13b)](function(){const _0x4bb464=_0x14a190;logger[_0x4bb464(0x138)](_0x4bb464(0x136),_0x5ac89c,_0x5205c3);})[_0x14a190(0x132)](function(_0x50fef9){const _0x5c6e72=_0x14a190;logger[_0x5c6e72(0x138)](util['inspect'](_0x50fef9,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1115_0x220578(0x12b)]=function(_0x1b95b7,_0x57c6cc,_0x579106){const _0x4eccf1=a1115_0x220578,_0x1e96f1=this;this[_0x4eccf1(0x126)]['enqueue'](function(){const _0x491574=_0x4eccf1;return _0x1e96f1[_0x491574(0x125)][_0x491574(0x12b)](_0x1b95b7,_0x57c6cc,_0x579106)[_0x491574(0x13b)](function(){const _0x1a9ca1=_0x491574;logger[_0x1a9ca1(0x138)]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x57c6cc,_0x579106,_0x1b95b7);})[_0x491574(0x132)](function(_0xc4cb8f){const _0x205a73=_0x491574;logger[_0x205a73(0x138)](util['inspect'](_0xc4cb8f,{'showHidden':![],'depth':null}));});});},Migration[a1115_0x220578(0x134)][a1115_0x220578(0x123)]=function(_0x15af12){const _0x1adf91=a1115_0x220578;this[_0x1adf91(0x126)][_0x1adf91(0x133)](function(){return _0x15af12();});},module[a1115_0x220578(0x12f)]={'up':function(_0x118a7a){return new Promise(function(_0x22b6cb){const _0x37e46d=a1115_0x4879,_0x88aad6=new Migration(_0x118a7a);_0x88aad6[_0x37e46d(0x123)](_0x22b6cb);});},'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 8f3dc04..a0e9469 100644 --- a/server/migrations/2.0.76.js +++ b/server/migrations/2.0.76.js @@ -1 +1 @@ -const a954_0x3db0=['prototype','final','Removed\x20column\x20%s\x20from\x20%s','removeIndex\x20%s\x20%s','../config/logger','query','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','addColumn','table\x20dropped\x20%s','changeColumn','removeIndex','ALTER\x20TABLE\x20report_mail_transfer\x20ENCRYPTION=\x27Y\x27;','then','BOOLEAN','exports','queryInterface','tail','ALTER\x20TABLE\x20report_fax_transfer\x20ENCRYPTION=\x27Y\x27;','TRUNCATE\x20sessions','addIndex','removeColumn','migration','stringify','inspect','info','dropTable','sequence','users','hotdesk','catch','enqueue'];(function(_0x320c59,_0x3db04e){const _0x5b7c96=function(_0xb9de24){while(--_0xb9de24){_0x320c59['push'](_0x320c59['shift']());}};_0x5b7c96(++_0x3db04e);}(a954_0x3db0,0xdb));const a954_0x5b7c=function(_0x320c59,_0x3db04e){_0x320c59=_0x320c59-0x0;let _0x5b7c96=a954_0x3db0[_0x320c59];return _0x5b7c96;};const _0x280901=a954_0x5b7c;'use strict';const util=require('util'),logger=require(_0x280901('0x2'))(_0x280901('0x13')),Sequence=function(){};Sequence[_0x280901('0x1d')]['enqueue']=function(_0xb9de24){const _0x3ad67a=_0x280901;this['tail']=this[_0x3ad67a('0xe')]?this[_0x3ad67a('0xe')]['finally'](_0xb9de24):_0xb9de24();};const Migration=function(_0x67a47){const _0x7c529c=_0x280901;this[_0x7c529c('0xd')]=_0x67a47,this[_0x7c529c('0x18')]=new Sequence();};Migration[_0x280901('0x1d')][_0x280901('0x7')]=function(_0x156822,_0x13b524,_0x3842e3){const _0x24e8e0=_0x280901,_0x13511e=this;this[_0x24e8e0('0x18')][_0x24e8e0('0x1c')](function(){const _0x3a6a5e=_0x24e8e0;return _0x13511e[_0x3a6a5e('0xd')][_0x3a6a5e('0x7')](_0x156822,_0x13b524,_0x3842e3)[_0x3a6a5e('0xa')](function(){logger['info']('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x13b524,_0x156822);})[_0x3a6a5e('0x1b')](function(_0x290f86){const _0x4ee585=_0x3a6a5e;logger[_0x4ee585('0x16')](JSON[_0x4ee585('0x14')](_0x290f86));});});},Migration[_0x280901('0x1d')][_0x280901('0x5')]=function(_0x5c6817,_0x54a36b,_0x593a4b){const _0x4ec9d8=_0x280901,_0x27c018=this;this[_0x4ec9d8('0x18')][_0x4ec9d8('0x1c')](function(){const _0x307320=_0x4ec9d8;return _0x27c018[_0x307320('0xd')][_0x307320('0x5')](_0x5c6817,_0x54a36b,_0x593a4b)[_0x307320('0xa')](function(){const _0x3b1b19=_0x307320;logger[_0x3b1b19('0x16')]('Added\x20column\x20%s\x20to\x20%s',_0x54a36b,_0x5c6817);})['catch'](function(_0x1d0393){const _0x546536=_0x307320;logger[_0x546536('0x16')](JSON[_0x546536('0x14')](_0x1d0393));});});},Migration['prototype']['dropTable']=function(_0x22b60){const _0x4719f6=this;this['sequence']['enqueue'](function(){const _0x3771bb=a954_0x5b7c;return _0x4719f6[_0x3771bb('0xd')][_0x3771bb('0x17')](_0x22b60,{'force':!![]})[_0x3771bb('0xa')](function(){const _0x6ccdf5=_0x3771bb;logger[_0x6ccdf5('0x16')](_0x6ccdf5('0x6'),_0x22b60);})['catch'](function(_0x4fbe40){const _0x1ec2bb=_0x3771bb;logger[_0x1ec2bb('0x16')](JSON[_0x1ec2bb('0x14')](_0x4fbe40));});});},Migration['prototype'][_0x280901('0x11')]=function(_0x1f513e,_0x246410,_0x18bebb){const _0x46cefb=_0x280901,_0x29d076=this;this['sequence'][_0x46cefb('0x1c')](function(){const _0x2841eb=_0x46cefb;return _0x29d076[_0x2841eb('0xd')][_0x2841eb('0x11')](_0x1f513e,_0x246410,{'indexName':_0x18bebb})['then'](function(){const _0x145542=_0x2841eb;logger[_0x145542('0x16')]('addIndex\x20%s\x20%s\x20%s',_0x1f513e,_0x246410['join'](','),_0x18bebb);})[_0x2841eb('0x1b')](function(_0x24f28a){const _0x531171=_0x2841eb;logger[_0x531171('0x16')](JSON[_0x531171('0x14')](_0x24f28a));});});},Migration[_0x280901('0x1d')][_0x280901('0x8')]=function(_0x185463,_0x591897){const _0x4f0756=_0x280901,_0x4446cb=this;this['sequence'][_0x4f0756('0x1c')](function(){const _0x17d907=_0x4f0756;return _0x4446cb['queryInterface']['removeIndex'](_0x185463,_0x591897)[_0x17d907('0xa')](function(){const _0x1f8740=_0x17d907;logger[_0x1f8740('0x16')](_0x1f8740('0x1'),_0x185463,_0x591897);})[_0x17d907('0x1b')](function(_0x182630){const _0x4756ce=_0x17d907;logger[_0x4756ce('0x16')](JSON[_0x4756ce('0x14')](_0x182630));});});},Migration[_0x280901('0x1d')][_0x280901('0x3')]=function(_0xf83178){const _0x44ef3d=_0x280901,_0x64a6e2=this;this['sequence'][_0x44ef3d('0x1c')](function(){const _0x4d23f4=_0x44ef3d;return _0x64a6e2[_0x4d23f4('0xd')]['sequelize'][_0x4d23f4('0x3')](_0xf83178)[_0x4d23f4('0xa')](function(){const _0x115f3d=_0x4d23f4;logger[_0x115f3d('0x16')]('query\x20%s',_0xf83178);})[_0x4d23f4('0x1b')](function(_0xed3a7f){const _0x514511=_0x4d23f4;logger[_0x514511('0x16')](JSON[_0x514511('0x14')](_0xed3a7f));});});},Migration[_0x280901('0x1d')][_0x280901('0x12')]=function(_0x1f9dde,_0x276ca6){const _0x2b2181=_0x280901,_0x510aa2=this;this[_0x2b2181('0x18')][_0x2b2181('0x1c')](function(){const _0x451ed5=_0x2b2181;return _0x510aa2[_0x451ed5('0xd')]['removeColumn'](_0x1f9dde,_0x276ca6)[_0x451ed5('0xa')](function(){const _0x1a863c=_0x451ed5;logger[_0x1a863c('0x16')](_0x1a863c('0x0'),_0x276ca6,_0x1f9dde);})[_0x451ed5('0x1b')](function(_0x471012){const _0x488a76=_0x451ed5;logger[_0x488a76('0x16')](util[_0x488a76('0x15')](_0x471012,{'showHidden':![],'depth':null}));});});},Migration[_0x280901('0x1d')]['renameColumn']=function(_0x76848c,_0x25c7a3,_0xa43d1d){const _0x2c164c=_0x280901,_0x468bd0=this;this[_0x2c164c('0x18')][_0x2c164c('0x1c')](function(){const _0x5bae85=_0x2c164c;return _0x468bd0[_0x5bae85('0xd')]['renameColumn'](_0x76848c,_0x25c7a3,_0xa43d1d)[_0x5bae85('0xa')](function(){const _0x3c7e53=_0x5bae85;logger['info'](_0x3c7e53('0x4'),_0x25c7a3,_0xa43d1d,_0x76848c);})['catch'](function(_0x333586){const _0x3954a8=_0x5bae85;logger[_0x3954a8('0x16')](util[_0x3954a8('0x15')](_0x333586,{'showHidden':![],'depth':null}));});});},Migration[_0x280901('0x1d')][_0x280901('0x1e')]=function(_0x3040aa){const _0x25c8ba=_0x280901;this[_0x25c8ba('0x18')]['enqueue'](function(){return _0x3040aa();});},module[_0x280901('0xc')]={'up':function(_0x49f251,_0x1e9d19){return new Promise(function(_0x35d428){const _0x5617c7=a954_0x5b7c,_0x3666a6=new Migration(_0x49f251);_0x3666a6[_0x5617c7('0x3')](_0x5617c7('0x10')),_0x3666a6[_0x5617c7('0x3')]('ALTER\x20TABLE\x20report_chat_transfer\x20ENCRYPTION=\x27Y\x27;'),_0x3666a6[_0x5617c7('0x3')](_0x5617c7('0x9')),_0x3666a6[_0x5617c7('0x3')](_0x5617c7('0xf')),_0x3666a6[_0x5617c7('0x3')]('ALTER\x20TABLE\x20report_openchannel_transfer\x20ENCRYPTION=\x27Y\x27;'),_0x3666a6['query']('ALTER\x20TABLE\x20report_sms_transfer\x20ENCRYPTION=\x27Y\x27;'),_0x3666a6[_0x5617c7('0x5')](_0x5617c7('0x19'),_0x5617c7('0x1a'),{'type':_0x1e9d19[_0x5617c7('0xb')],'defaultValue':![]}),_0x3666a6[_0x5617c7('0x1e')](_0x35d428);});},'down':function(){}}; \ No newline at end of file +const a1116_0x1ab5=['ALTER\x20TABLE\x20report_sms_transfer\x20ENCRYPTION=\x27Y\x27;','queryInterface','ALTER\x20TABLE\x20report_fax_transfer\x20ENCRYPTION=\x27Y\x27;','exports','migration','Added\x20column\x20%s\x20to\x20%s','removeColumn','catch','stringify','BOOLEAN','query','query\x20%s','addIndex','removeIndex','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','final','sequence','then','TRUNCATE\x20sessions','enqueue','finally','dropTable','ALTER\x20TABLE\x20report_mail_transfer\x20ENCRYPTION=\x27Y\x27;','tail','addColumn','renameColumn','Removed\x20column\x20%s\x20from\x20%s','prototype','table\x20dropped\x20%s','info','util','users','sequelize','addIndex\x20%s\x20%s\x20%s','join','ALTER\x20TABLE\x20report_chat_transfer\x20ENCRYPTION=\x27Y\x27;','inspect'];(function(_0x3fce7a,_0x1731b1){const _0x1ab5bc=function(_0x18352f){while(--_0x18352f){_0x3fce7a['push'](_0x3fce7a['shift']());}};_0x1ab5bc(++_0x1731b1);}(a1116_0x1ab5,0x1d9));const a1116_0x1835=function(_0x3fce7a,_0x1731b1){_0x3fce7a=_0x3fce7a-0x176;let _0x1ab5bc=a1116_0x1ab5[_0x3fce7a];return _0x1ab5bc;};const a1116_0x25b0d2=a1116_0x1835;'use strict';const util=require(a1116_0x25b0d2(0x177)),logger=require('../config/logger')(a1116_0x25b0d2(0x182)),Sequence=function(){};Sequence[a1116_0x25b0d2(0x199)]['enqueue']=function(_0x1fc0aa){const _0x5e8b2f=a1116_0x25b0d2;this[_0x5e8b2f(0x195)]=this[_0x5e8b2f(0x195)]?this[_0x5e8b2f(0x195)][_0x5e8b2f(0x192)](_0x1fc0aa):_0x1fc0aa();};const Migration=function(_0x5bbc67){const _0x8ded1e=a1116_0x25b0d2;this[_0x8ded1e(0x17f)]=_0x5bbc67,this[_0x8ded1e(0x18e)]=new Sequence();};Migration[a1116_0x25b0d2(0x199)]['changeColumn']=function(_0x1b4d6e,_0x27c366,_0x76662){const _0x247345=a1116_0x25b0d2,_0x26bc2b=this;this[_0x247345(0x18e)][_0x247345(0x191)](function(){const _0x441f70=_0x247345;return _0x26bc2b[_0x441f70(0x17f)]['changeColumn'](_0x1b4d6e,_0x27c366,_0x76662)[_0x441f70(0x18f)](function(){logger['info']('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x27c366,_0x1b4d6e);})[_0x441f70(0x185)](function(_0x330fd5){const _0x21a22e=_0x441f70;logger[_0x21a22e(0x176)](JSON[_0x21a22e(0x186)](_0x330fd5));});});},Migration['prototype']['addColumn']=function(_0x82351c,_0x4f1a8c,_0x59c418){const _0x4a4906=a1116_0x25b0d2,_0x4e354e=this;this[_0x4a4906(0x18e)][_0x4a4906(0x191)](function(){const _0x37c6f8=_0x4a4906;return _0x4e354e[_0x37c6f8(0x17f)][_0x37c6f8(0x196)](_0x82351c,_0x4f1a8c,_0x59c418)['then'](function(){const _0x321197=_0x37c6f8;logger[_0x321197(0x176)](_0x321197(0x183),_0x4f1a8c,_0x82351c);})[_0x37c6f8(0x185)](function(_0x5e5a8f){const _0x5a5726=_0x37c6f8;logger['info'](JSON[_0x5a5726(0x186)](_0x5e5a8f));});});},Migration[a1116_0x25b0d2(0x199)]['dropTable']=function(_0x547d2e){const _0x75f78b=a1116_0x25b0d2,_0x2da265=this;this[_0x75f78b(0x18e)][_0x75f78b(0x191)](function(){const _0x30fa70=_0x75f78b;return _0x2da265[_0x30fa70(0x17f)][_0x30fa70(0x193)](_0x547d2e,{'force':!![]})[_0x30fa70(0x18f)](function(){const _0x49b8c5=_0x30fa70;logger[_0x49b8c5(0x176)](_0x49b8c5(0x19a),_0x547d2e);})[_0x30fa70(0x185)](function(_0x34ad3e){const _0x1776e9=_0x30fa70;logger['info'](JSON[_0x1776e9(0x186)](_0x34ad3e));});});},Migration['prototype'][a1116_0x25b0d2(0x18a)]=function(_0x1a20de,_0xbddd6a,_0x2974a9){const _0x3794e8=a1116_0x25b0d2,_0x1990e9=this;this['sequence'][_0x3794e8(0x191)](function(){const _0x1c3b8c=_0x3794e8;return _0x1990e9[_0x1c3b8c(0x17f)][_0x1c3b8c(0x18a)](_0x1a20de,_0xbddd6a,{'indexName':_0x2974a9})[_0x1c3b8c(0x18f)](function(){const _0x17b9f2=_0x1c3b8c;logger[_0x17b9f2(0x176)](_0x17b9f2(0x17a),_0x1a20de,_0xbddd6a[_0x17b9f2(0x17b)](','),_0x2974a9);})[_0x1c3b8c(0x185)](function(_0x5b4ef3){const _0x549b70=_0x1c3b8c;logger[_0x549b70(0x176)](JSON['stringify'](_0x5b4ef3));});});},Migration['prototype'][a1116_0x25b0d2(0x18b)]=function(_0x302523,_0x142b26){const _0x1934f5=a1116_0x25b0d2,_0x28da8f=this;this[_0x1934f5(0x18e)][_0x1934f5(0x191)](function(){const _0x2a0c92=_0x1934f5;return _0x28da8f[_0x2a0c92(0x17f)][_0x2a0c92(0x18b)](_0x302523,_0x142b26)['then'](function(){logger['info']('removeIndex\x20%s\x20%s',_0x302523,_0x142b26);})[_0x2a0c92(0x185)](function(_0x463a1e){const _0x31fb8e=_0x2a0c92;logger['info'](JSON[_0x31fb8e(0x186)](_0x463a1e));});});},Migration[a1116_0x25b0d2(0x199)][a1116_0x25b0d2(0x188)]=function(_0x10db0e){const _0x48d851=a1116_0x25b0d2,_0x504e28=this;this[_0x48d851(0x18e)][_0x48d851(0x191)](function(){const _0xf5a7e3=_0x48d851;return _0x504e28['queryInterface'][_0xf5a7e3(0x179)][_0xf5a7e3(0x188)](_0x10db0e)[_0xf5a7e3(0x18f)](function(){const _0x2fa822=_0xf5a7e3;logger['info'](_0x2fa822(0x189),_0x10db0e);})[_0xf5a7e3(0x185)](function(_0x5a9181){const _0x5b64dc=_0xf5a7e3;logger[_0x5b64dc(0x176)](JSON['stringify'](_0x5a9181));});});},Migration[a1116_0x25b0d2(0x199)][a1116_0x25b0d2(0x184)]=function(_0x3777a7,_0x49a8dc){const _0x1c3ddc=a1116_0x25b0d2,_0x23e50b=this;this['sequence'][_0x1c3ddc(0x191)](function(){const _0x5240b8=_0x1c3ddc;return _0x23e50b['queryInterface']['removeColumn'](_0x3777a7,_0x49a8dc)[_0x5240b8(0x18f)](function(){const _0x5bed43=_0x5240b8;logger[_0x5bed43(0x176)](_0x5bed43(0x198),_0x49a8dc,_0x3777a7);})['catch'](function(_0x12062f){const _0x26e7f3=_0x5240b8;logger[_0x26e7f3(0x176)](util[_0x26e7f3(0x17d)](_0x12062f,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1116_0x25b0d2(0x197)]=function(_0x4860b4,_0x41361e,_0x340e3b){const _0x21ab8c=a1116_0x25b0d2,_0x4fdb64=this;this[_0x21ab8c(0x18e)][_0x21ab8c(0x191)](function(){const _0xbd38ea=_0x21ab8c;return _0x4fdb64[_0xbd38ea(0x17f)][_0xbd38ea(0x197)](_0x4860b4,_0x41361e,_0x340e3b)[_0xbd38ea(0x18f)](function(){const _0xd93ebe=_0xbd38ea;logger['info'](_0xd93ebe(0x18c),_0x41361e,_0x340e3b,_0x4860b4);})[_0xbd38ea(0x185)](function(_0x32211d){const _0x36bd80=_0xbd38ea;logger[_0x36bd80(0x176)](util[_0x36bd80(0x17d)](_0x32211d,{'showHidden':![],'depth':null}));});});},Migration[a1116_0x25b0d2(0x199)][a1116_0x25b0d2(0x18d)]=function(_0x162048){const _0x370886=a1116_0x25b0d2;this[_0x370886(0x18e)][_0x370886(0x191)](function(){return _0x162048();});},module[a1116_0x25b0d2(0x181)]={'up':function(_0x23eb87,_0x1bbcec){return new Promise(function(_0x5b77d3){const _0x7e6704=a1116_0x1835,_0x32e0e5=new Migration(_0x23eb87);_0x32e0e5['query'](_0x7e6704(0x190)),_0x32e0e5[_0x7e6704(0x188)](_0x7e6704(0x17c)),_0x32e0e5[_0x7e6704(0x188)](_0x7e6704(0x194)),_0x32e0e5[_0x7e6704(0x188)](_0x7e6704(0x180)),_0x32e0e5[_0x7e6704(0x188)]('ALTER\x20TABLE\x20report_openchannel_transfer\x20ENCRYPTION=\x27Y\x27;'),_0x32e0e5['query'](_0x7e6704(0x17e)),_0x32e0e5['addColumn'](_0x7e6704(0x178),'hotdesk',{'type':_0x1bbcec[_0x7e6704(0x187)],'defaultValue':![]}),_0x32e0e5[_0x7e6704(0x18d)](_0x5b77d3);});},'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 a477a23..bfe3af5 100644 --- a/server/migrations/2.0.77.js +++ b/server/migrations/2.0.77.js @@ -1 +1 @@ -const a955_0x420c=['changeColumn','queryInterface','removeColumn','Removed\x20column\x20%s\x20from\x20%s','catch','tail','addIndex\x20%s\x20%s\x20%s','dropTable','sequelize','STRING','removeIndex','join','renameColumn','query\x20%s','prototype','info','enqueue','users','query','then','BOOLEAN','addIndex','util','report_square','inspect','addColumn','interface','stringify','privacyEnabled','Added\x20column\x20%s\x20to\x20%s','sequence','table\x20dropped\x20%s','../config/logger'];(function(_0x9fffef,_0x420c26){const _0x250905=function(_0x390871){while(--_0x390871){_0x9fffef['push'](_0x9fffef['shift']());}};_0x250905(++_0x420c26);}(a955_0x420c,0x1bc));const a955_0x2509=function(_0x9fffef,_0x420c26){_0x9fffef=_0x9fffef-0x0;let _0x250905=a955_0x420c[_0x9fffef];return _0x250905;};const _0x1c8d69=a955_0x2509;'use strict';const util=require(_0x1c8d69('0x7')),logger=require(_0x1c8d69('0x11'))('migration'),Sequence=function(){};Sequence[_0x1c8d69('0x20')][_0x1c8d69('0x1')]=function(_0x390871){const _0x23ee17=_0x1c8d69;this[_0x23ee17('0x17')]=this[_0x23ee17('0x17')]?this[_0x23ee17('0x17')]['finally'](_0x390871):_0x390871();};const Migration=function(_0x5b1b81){const _0x3426e8=_0x1c8d69;this[_0x3426e8('0x13')]=_0x5b1b81,this[_0x3426e8('0xf')]=new Sequence();};Migration[_0x1c8d69('0x20')][_0x1c8d69('0x12')]=function(_0x15c647,_0x212630,_0x282b74){const _0xdc165=_0x1c8d69,_0x2a008f=this;this[_0xdc165('0xf')][_0xdc165('0x1')](function(){const _0xfdd21f=_0xdc165;return _0x2a008f[_0xfdd21f('0x13')][_0xfdd21f('0x12')](_0x15c647,_0x212630,_0x282b74)[_0xfdd21f('0x4')](function(){const _0x3359f4=_0xfdd21f;logger[_0x3359f4('0x0')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x212630,_0x15c647);})['catch'](function(_0x217ad6){const _0x3ea203=_0xfdd21f;logger[_0x3ea203('0x0')](JSON['stringify'](_0x217ad6));});});},Migration[_0x1c8d69('0x20')][_0x1c8d69('0xa')]=function(_0x1a6a45,_0x1995e3,_0x2415e0){const _0x578930=this;this['sequence']['enqueue'](function(){const _0x5a44f5=a955_0x2509;return _0x578930[_0x5a44f5('0x13')][_0x5a44f5('0xa')](_0x1a6a45,_0x1995e3,_0x2415e0)['then'](function(){const _0x2440e5=_0x5a44f5;logger[_0x2440e5('0x0')](_0x2440e5('0xe'),_0x1995e3,_0x1a6a45);})[_0x5a44f5('0x16')](function(_0x40723c){const _0x1d09fa=_0x5a44f5;logger[_0x1d09fa('0x0')](JSON['stringify'](_0x40723c));});});},Migration['prototype'][_0x1c8d69('0x19')]=function(_0x46dbf4){const _0x22cf31=_0x1c8d69,_0x5ce9ed=this;this[_0x22cf31('0xf')]['enqueue'](function(){const _0xd63f6b=_0x22cf31;return _0x5ce9ed[_0xd63f6b('0x13')]['dropTable'](_0x46dbf4,{'force':!![]})['then'](function(){const _0x41c17d=_0xd63f6b;logger['info'](_0x41c17d('0x10'),_0x46dbf4);})['catch'](function(_0x4cba04){const _0x47ca0d=_0xd63f6b;logger[_0x47ca0d('0x0')](JSON['stringify'](_0x4cba04));});});},Migration[_0x1c8d69('0x20')][_0x1c8d69('0x6')]=function(_0x338d50,_0x10cc0c,_0x1e7393){const _0x47be4f=_0x1c8d69,_0x436bcf=this;this[_0x47be4f('0xf')][_0x47be4f('0x1')](function(){const _0x250ba6=_0x47be4f;return _0x436bcf['queryInterface'][_0x250ba6('0x6')](_0x338d50,_0x10cc0c,{'indexName':_0x1e7393})[_0x250ba6('0x4')](function(){const _0x41e72b=_0x250ba6;logger[_0x41e72b('0x0')](_0x41e72b('0x18'),_0x338d50,_0x10cc0c[_0x41e72b('0x1d')](','),_0x1e7393);})['catch'](function(_0x6bc838){const _0x16328d=_0x250ba6;logger['info'](JSON[_0x16328d('0xc')](_0x6bc838));});});},Migration[_0x1c8d69('0x20')][_0x1c8d69('0x1c')]=function(_0x2effee,_0x3b4128){const _0x714460=this;this['sequence']['enqueue'](function(){const _0x3a6f5f=a955_0x2509;return _0x714460['queryInterface'][_0x3a6f5f('0x1c')](_0x2effee,_0x3b4128)[_0x3a6f5f('0x4')](function(){logger['info']('removeIndex\x20%s\x20%s',_0x2effee,_0x3b4128);})[_0x3a6f5f('0x16')](function(_0x1cb7e3){const _0x4651bf=_0x3a6f5f;logger[_0x4651bf('0x0')](JSON[_0x4651bf('0xc')](_0x1cb7e3));});});},Migration['prototype'][_0x1c8d69('0x3')]=function(_0x26ffcd){const _0x5683ea=_0x1c8d69,_0x54a8ff=this;this[_0x5683ea('0xf')][_0x5683ea('0x1')](function(){const _0x5a2baf=_0x5683ea;return _0x54a8ff[_0x5a2baf('0x13')][_0x5a2baf('0x1a')][_0x5a2baf('0x3')](_0x26ffcd)[_0x5a2baf('0x4')](function(){const _0x249fdc=_0x5a2baf;logger['info'](_0x249fdc('0x1f'),_0x26ffcd);})[_0x5a2baf('0x16')](function(_0x51b193){const _0x3185f1=_0x5a2baf;logger['info'](JSON[_0x3185f1('0xc')](_0x51b193));});});},Migration[_0x1c8d69('0x20')][_0x1c8d69('0x14')]=function(_0x3ea7ad,_0x1eaba3){const _0x3669c4=_0x1c8d69,_0x5bb0b8=this;this[_0x3669c4('0xf')][_0x3669c4('0x1')](function(){const _0xdd4cb1=_0x3669c4;return _0x5bb0b8[_0xdd4cb1('0x13')][_0xdd4cb1('0x14')](_0x3ea7ad,_0x1eaba3)[_0xdd4cb1('0x4')](function(){const _0x4fe3a5=_0xdd4cb1;logger[_0x4fe3a5('0x0')](_0x4fe3a5('0x15'),_0x1eaba3,_0x3ea7ad);})[_0xdd4cb1('0x16')](function(_0x3308f5){const _0x2115f7=_0xdd4cb1;logger[_0x2115f7('0x0')](util[_0x2115f7('0x9')](_0x3308f5,{'showHidden':![],'depth':null}));});});},Migration[_0x1c8d69('0x20')][_0x1c8d69('0x1e')]=function(_0x4229b9,_0x88a59a,_0x5ee6d6){const _0x2240fa=_0x1c8d69,_0x452c37=this;this[_0x2240fa('0xf')]['enqueue'](function(){const _0x52ec4a=_0x2240fa;return _0x452c37[_0x52ec4a('0x13')][_0x52ec4a('0x1e')](_0x4229b9,_0x88a59a,_0x5ee6d6)[_0x52ec4a('0x4')](function(){const _0x14939f=_0x52ec4a;logger[_0x14939f('0x0')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x88a59a,_0x5ee6d6,_0x4229b9);})['catch'](function(_0x48642a){const _0x4a5475=_0x52ec4a;logger[_0x4a5475('0x0')](util[_0x4a5475('0x9')](_0x48642a,{'showHidden':![],'depth':null}));});});},Migration[_0x1c8d69('0x20')]['final']=function(_0xef763f){const _0x27bbf8=_0x1c8d69;this[_0x27bbf8('0xf')]['enqueue'](function(){return _0xef763f();});},module['exports']={'up':function(_0x177ba2,_0x3a178a){return new Promise(function(_0x1e2549){const _0x2e1409=a955_0x2509,_0x36eace=new Migration(_0x177ba2);_0x36eace[_0x2e1409('0xa')](_0x2e1409('0x8'),'bot',{'type':_0x3a178a[_0x2e1409('0x5')],'defaultValue':![]}),_0x36eace['addColumn'](_0x2e1409('0x2'),_0x2e1409('0xb'),{'type':_0x3a178a[_0x2e1409('0x1b')],'defaultValue':null}),_0x36eace[_0x2e1409('0xa')]('users',_0x2e1409('0xd'),{'type':_0x3a178a['BOOLEAN'],'defaultValue':![]}),_0x36eace['final'](_0x1e2549);});},'down':function(){}}; \ No newline at end of file +const a1117_0x11fa=['Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','changeColumn','privacyEnabled','users','migration','queryInterface','tail','renameColumn','dropTable','STRING','addColumn','then','inspect','Added\x20column\x20%s\x20to\x20%s','final','Changed\x20column\x20%s\x20in\x20table\x20%s','sequence','bot','query','addIndex','catch','finally','info','sequelize','BOOLEAN','removeIndex\x20%s\x20%s','removeIndex','removeColumn','../config/logger','stringify','util','enqueue','prototype'];(function(_0x302566,_0x1775a7){const _0x11fa4a=function(_0x45f66c){while(--_0x45f66c){_0x302566['push'](_0x302566['shift']());}};_0x11fa4a(++_0x1775a7);}(a1117_0x11fa,0x7a));const a1117_0x45f6=function(_0x302566,_0x1775a7){_0x302566=_0x302566-0x1b4;let _0x11fa4a=a1117_0x11fa[_0x302566];return _0x11fa4a;};const a1117_0x1a62ae=a1117_0x45f6;'use strict';const util=require(a1117_0x1a62ae(0x1bb)),logger=require(a1117_0x1a62ae(0x1b9))(a1117_0x1a62ae(0x1c2)),Sequence=function(){};Sequence[a1117_0x1a62ae(0x1bd)][a1117_0x1a62ae(0x1bc)]=function(_0x3ce132){const _0x5eb85b=a1117_0x1a62ae;this[_0x5eb85b(0x1c4)]=this['tail']?this[_0x5eb85b(0x1c4)][_0x5eb85b(0x1d3)](_0x3ce132):_0x3ce132();};const Migration=function(_0x50fe98){const _0x263b5c=a1117_0x1a62ae;this[_0x263b5c(0x1c3)]=_0x50fe98,this[_0x263b5c(0x1ce)]=new Sequence();};Migration[a1117_0x1a62ae(0x1bd)][a1117_0x1a62ae(0x1bf)]=function(_0x9fd542,_0x1e492f,_0x9ca564){const _0x33b6b4=a1117_0x1a62ae,_0x20a1ff=this;this[_0x33b6b4(0x1ce)][_0x33b6b4(0x1bc)](function(){const _0x580c01=_0x33b6b4;return _0x20a1ff[_0x580c01(0x1c3)][_0x580c01(0x1bf)](_0x9fd542,_0x1e492f,_0x9ca564)[_0x580c01(0x1c9)](function(){const _0x57fed2=_0x580c01;logger['info'](_0x57fed2(0x1cd),_0x1e492f,_0x9fd542);})[_0x580c01(0x1d2)](function(_0x10da33){const _0x112c45=_0x580c01;logger['info'](JSON[_0x112c45(0x1ba)](_0x10da33));});});},Migration['prototype'][a1117_0x1a62ae(0x1c8)]=function(_0xa04a4a,_0x3064d7,_0x35b40b){const _0x23d18f=a1117_0x1a62ae,_0x93b201=this;this['sequence'][_0x23d18f(0x1bc)](function(){const _0x411eae=_0x23d18f;return _0x93b201['queryInterface']['addColumn'](_0xa04a4a,_0x3064d7,_0x35b40b)[_0x411eae(0x1c9)](function(){const _0x403007=_0x411eae;logger['info'](_0x403007(0x1cb),_0x3064d7,_0xa04a4a);})[_0x411eae(0x1d2)](function(_0x5d4274){const _0x15f4d4=_0x411eae;logger[_0x15f4d4(0x1d4)](JSON[_0x15f4d4(0x1ba)](_0x5d4274));});});},Migration[a1117_0x1a62ae(0x1bd)][a1117_0x1a62ae(0x1c6)]=function(_0x2eeca8){const _0x58ade4=a1117_0x1a62ae,_0x406fe6=this;this[_0x58ade4(0x1ce)][_0x58ade4(0x1bc)](function(){const _0xf64dce=_0x58ade4;return _0x406fe6[_0xf64dce(0x1c3)][_0xf64dce(0x1c6)](_0x2eeca8,{'force':!![]})[_0xf64dce(0x1c9)](function(){const _0x1e2bdb=_0xf64dce;logger[_0x1e2bdb(0x1d4)]('table\x20dropped\x20%s',_0x2eeca8);})['catch'](function(_0x1d11bf){const _0x2d5d8c=_0xf64dce;logger[_0x2d5d8c(0x1d4)](JSON[_0x2d5d8c(0x1ba)](_0x1d11bf));});});},Migration['prototype'][a1117_0x1a62ae(0x1d1)]=function(_0x43f813,_0x3e8011,_0x575f25){const _0x348b0f=a1117_0x1a62ae,_0x5cae7d=this;this[_0x348b0f(0x1ce)][_0x348b0f(0x1bc)](function(){const _0x234dc3=_0x348b0f;return _0x5cae7d[_0x234dc3(0x1c3)]['addIndex'](_0x43f813,_0x3e8011,{'indexName':_0x575f25})['then'](function(){logger['info']('addIndex\x20%s\x20%s\x20%s',_0x43f813,_0x3e8011['join'](','),_0x575f25);})[_0x234dc3(0x1d2)](function(_0x26b30b){const _0x46a9a4=_0x234dc3;logger['info'](JSON[_0x46a9a4(0x1ba)](_0x26b30b));});});},Migration[a1117_0x1a62ae(0x1bd)][a1117_0x1a62ae(0x1b7)]=function(_0x45ee48,_0x1914c8){const _0x5d2551=a1117_0x1a62ae,_0x3749c0=this;this[_0x5d2551(0x1ce)]['enqueue'](function(){const _0x2c4424=_0x5d2551;return _0x3749c0[_0x2c4424(0x1c3)][_0x2c4424(0x1b7)](_0x45ee48,_0x1914c8)[_0x2c4424(0x1c9)](function(){const _0x533639=_0x2c4424;logger[_0x533639(0x1d4)](_0x533639(0x1b6),_0x45ee48,_0x1914c8);})['catch'](function(_0x199d73){const _0x3423d8=_0x2c4424;logger['info'](JSON[_0x3423d8(0x1ba)](_0x199d73));});});},Migration[a1117_0x1a62ae(0x1bd)]['query']=function(_0x2d9f76){const _0x2cb28e=a1117_0x1a62ae,_0x4de414=this;this[_0x2cb28e(0x1ce)][_0x2cb28e(0x1bc)](function(){const _0x49e6bd=_0x2cb28e;return _0x4de414[_0x49e6bd(0x1c3)][_0x49e6bd(0x1b4)][_0x49e6bd(0x1d0)](_0x2d9f76)['then'](function(){const _0x3b582a=_0x49e6bd;logger[_0x3b582a(0x1d4)]('query\x20%s',_0x2d9f76);})[_0x49e6bd(0x1d2)](function(_0x194b72){const _0x1cb815=_0x49e6bd;logger['info'](JSON[_0x1cb815(0x1ba)](_0x194b72));});});},Migration[a1117_0x1a62ae(0x1bd)][a1117_0x1a62ae(0x1b8)]=function(_0x382b90,_0x42ed9f){const _0x35d7d6=a1117_0x1a62ae,_0x41de1c=this;this[_0x35d7d6(0x1ce)]['enqueue'](function(){const _0x127d7a=_0x35d7d6;return _0x41de1c[_0x127d7a(0x1c3)][_0x127d7a(0x1b8)](_0x382b90,_0x42ed9f)[_0x127d7a(0x1c9)](function(){const _0x5ecae0=_0x127d7a;logger[_0x5ecae0(0x1d4)]('Removed\x20column\x20%s\x20from\x20%s',_0x42ed9f,_0x382b90);})[_0x127d7a(0x1d2)](function(_0x3a9e99){const _0x1f8b18=_0x127d7a;logger[_0x1f8b18(0x1d4)](util[_0x1f8b18(0x1ca)](_0x3a9e99,{'showHidden':![],'depth':null}));});});},Migration[a1117_0x1a62ae(0x1bd)][a1117_0x1a62ae(0x1c5)]=function(_0x4be4bf,_0x5938a0,_0x40e0c0){const _0x1d4015=a1117_0x1a62ae,_0x12759e=this;this['sequence'][_0x1d4015(0x1bc)](function(){const _0x5a88a1=_0x1d4015;return _0x12759e[_0x5a88a1(0x1c3)][_0x5a88a1(0x1c5)](_0x4be4bf,_0x5938a0,_0x40e0c0)['then'](function(){const _0x44f2d3=_0x5a88a1;logger[_0x44f2d3(0x1d4)](_0x44f2d3(0x1be),_0x5938a0,_0x40e0c0,_0x4be4bf);})[_0x5a88a1(0x1d2)](function(_0x15691b){const _0x1232b=_0x5a88a1;logger[_0x1232b(0x1d4)](util[_0x1232b(0x1ca)](_0x15691b,{'showHidden':![],'depth':null}));});});},Migration[a1117_0x1a62ae(0x1bd)][a1117_0x1a62ae(0x1cc)]=function(_0x4a52c3){const _0xc9eb1b=a1117_0x1a62ae;this[_0xc9eb1b(0x1ce)][_0xc9eb1b(0x1bc)](function(){return _0x4a52c3();});},module['exports']={'up':function(_0x3cf589,_0x226893){return new Promise(function(_0x166571){const _0x441e6e=a1117_0x45f6,_0x4c6a92=new Migration(_0x3cf589);_0x4c6a92[_0x441e6e(0x1c8)]('report_square',_0x441e6e(0x1cf),{'type':_0x226893['BOOLEAN'],'defaultValue':![]}),_0x4c6a92[_0x441e6e(0x1c8)](_0x441e6e(0x1c1),'interface',{'type':_0x226893[_0x441e6e(0x1c7)],'defaultValue':null}),_0x4c6a92[_0x441e6e(0x1c8)](_0x441e6e(0x1c1),_0x441e6e(0x1c0),{'type':_0x226893[_0x441e6e(0x1b5)],'defaultValue':![]}),_0x4c6a92[_0x441e6e(0x1cc)](_0x166571);});},'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 3f9f2d1..217a4ef 100644 --- a/server/migrations/2.0.78.js +++ b/server/migrations/2.0.78.js @@ -1 +1 @@ -const a956_0xa8b8=['query\x20%s','stringify','join','queryInterface','exports','tail','catch','final','changeColumn','removeColumn','prototype','util','removeIndex\x20%s\x20%s','inspect','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','migration','removeIndex','addColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','sequence','addIndex\x20%s\x20%s\x20%s','query','dropTable','renameColumn','ALTER\x20TABLE\x20square_messages\x20ENCRYPTION=\x27Y\x27;','enqueue','then','info','addIndex'];(function(_0x24edb4,_0xa8b872){const _0x38940b=function(_0x427772){while(--_0x427772){_0x24edb4['push'](_0x24edb4['shift']());}};_0x38940b(++_0xa8b872);}(a956_0xa8b8,0x76));const a956_0x3894=function(_0x24edb4,_0xa8b872){_0x24edb4=_0x24edb4-0x0;let _0x38940b=a956_0xa8b8[_0x24edb4];return _0x38940b;};const _0x558735=a956_0x3894;'use strict';const util=require(_0x558735('0x9')),logger=require('../config/logger')(_0x558735('0xd')),Sequence=function(){};Sequence[_0x558735('0x8')][_0x558735('0x17')]=function(_0x427772){const _0xd22db9=_0x558735;this[_0xd22db9('0x3')]=this[_0xd22db9('0x3')]?this[_0xd22db9('0x3')]['finally'](_0x427772):_0x427772();};const Migration=function(_0x1e9df7){const _0x19d475=_0x558735;this[_0x19d475('0x1')]=_0x1e9df7,this[_0x19d475('0x11')]=new Sequence();};Migration['prototype']['changeColumn']=function(_0x2d14a2,_0x49d7da,_0x105bca){const _0xdfff96=_0x558735,_0x7295f1=this;this[_0xdfff96('0x11')][_0xdfff96('0x17')](function(){const _0x4d0b0b=_0xdfff96;return _0x7295f1['queryInterface'][_0x4d0b0b('0x6')](_0x2d14a2,_0x49d7da,_0x105bca)['then'](function(){const _0x2207b4=_0x4d0b0b;logger['info'](_0x2207b4('0x10'),_0x49d7da,_0x2d14a2);})[_0x4d0b0b('0x4')](function(_0x50ebfb){const _0x51ea03=_0x4d0b0b;logger['info'](JSON[_0x51ea03('0x1c')](_0x50ebfb));});});},Migration[_0x558735('0x8')][_0x558735('0xf')]=function(_0x2537f2,_0x28ca5a,_0x8b5f9e){const _0x965075=_0x558735,_0x504606=this;this[_0x965075('0x11')][_0x965075('0x17')](function(){const _0x18f636=_0x965075;return _0x504606['queryInterface'][_0x18f636('0xf')](_0x2537f2,_0x28ca5a,_0x8b5f9e)[_0x18f636('0x18')](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x28ca5a,_0x2537f2);})['catch'](function(_0x1c9b3d){const _0x20513a=_0x18f636;logger['info'](JSON[_0x20513a('0x1c')](_0x1c9b3d));});});},Migration['prototype'][_0x558735('0x14')]=function(_0x3f33df){const _0x181e70=_0x558735,_0x114627=this;this[_0x181e70('0x11')][_0x181e70('0x17')](function(){const _0x3231bf=_0x181e70;return _0x114627[_0x3231bf('0x1')]['dropTable'](_0x3f33df,{'force':!![]})[_0x3231bf('0x18')](function(){const _0x3b88fc=_0x3231bf;logger[_0x3b88fc('0x19')]('table\x20dropped\x20%s',_0x3f33df);})['catch'](function(_0x17cc3e){const _0xb1617b=_0x3231bf;logger[_0xb1617b('0x19')](JSON[_0xb1617b('0x1c')](_0x17cc3e));});});},Migration[_0x558735('0x8')][_0x558735('0x1a')]=function(_0xb10a55,_0x578574,_0x57b3e5){const _0x5d0f4e=_0x558735,_0x18fd6c=this;this[_0x5d0f4e('0x11')][_0x5d0f4e('0x17')](function(){const _0x4c916c=_0x5d0f4e;return _0x18fd6c['queryInterface'][_0x4c916c('0x1a')](_0xb10a55,_0x578574,{'indexName':_0x57b3e5})['then'](function(){const _0x4a44f9=_0x4c916c;logger[_0x4a44f9('0x19')](_0x4a44f9('0x12'),_0xb10a55,_0x578574[_0x4a44f9('0x0')](','),_0x57b3e5);})[_0x4c916c('0x4')](function(_0x326ecb){const _0x46729e=_0x4c916c;logger[_0x46729e('0x19')](JSON[_0x46729e('0x1c')](_0x326ecb));});});},Migration[_0x558735('0x8')][_0x558735('0xe')]=function(_0x70f2c8,_0x4428ad){const _0x13bdcf=_0x558735,_0x3a9a24=this;this[_0x13bdcf('0x11')]['enqueue'](function(){const _0x4be4fd=_0x13bdcf;return _0x3a9a24[_0x4be4fd('0x1')]['removeIndex'](_0x70f2c8,_0x4428ad)[_0x4be4fd('0x18')](function(){const _0x20ed26=_0x4be4fd;logger[_0x20ed26('0x19')](_0x20ed26('0xa'),_0x70f2c8,_0x4428ad);})[_0x4be4fd('0x4')](function(_0x2c26e2){const _0x22a39b=_0x4be4fd;logger[_0x22a39b('0x19')](JSON['stringify'](_0x2c26e2));});});},Migration[_0x558735('0x8')][_0x558735('0x13')]=function(_0x1ecc29){const _0x10ad9f=_0x558735,_0xa09b39=this;this[_0x10ad9f('0x11')]['enqueue'](function(){const _0x38fa21=_0x10ad9f;return _0xa09b39[_0x38fa21('0x1')]['sequelize'][_0x38fa21('0x13')](_0x1ecc29)[_0x38fa21('0x18')](function(){const _0x17c2ba=_0x38fa21;logger[_0x17c2ba('0x19')](_0x17c2ba('0x1b'),_0x1ecc29);})[_0x38fa21('0x4')](function(_0x4717f9){const _0x3cd2c6=_0x38fa21;logger[_0x3cd2c6('0x19')](JSON[_0x3cd2c6('0x1c')](_0x4717f9));});});},Migration[_0x558735('0x8')][_0x558735('0x7')]=function(_0x4a82a4,_0x574ba8){const _0x14ed87=_0x558735,_0x262e7c=this;this['sequence'][_0x14ed87('0x17')](function(){const _0x2fedda=_0x14ed87;return _0x262e7c[_0x2fedda('0x1')]['removeColumn'](_0x4a82a4,_0x574ba8)[_0x2fedda('0x18')](function(){const _0x4fecc7=_0x2fedda;logger[_0x4fecc7('0x19')]('Removed\x20column\x20%s\x20from\x20%s',_0x574ba8,_0x4a82a4);})[_0x2fedda('0x4')](function(_0x22dc6e){logger['info'](util['inspect'](_0x22dc6e,{'showHidden':![],'depth':null}));});});},Migration[_0x558735('0x8')][_0x558735('0x15')]=function(_0x30d21d,_0x1764f7,_0x344329){const _0x1645dd=_0x558735,_0x47aa2d=this;this[_0x1645dd('0x11')]['enqueue'](function(){const _0x427367=_0x1645dd;return _0x47aa2d[_0x427367('0x1')][_0x427367('0x15')](_0x30d21d,_0x1764f7,_0x344329)[_0x427367('0x18')](function(){const _0x2e81f4=_0x427367;logger[_0x2e81f4('0x19')](_0x2e81f4('0xc'),_0x1764f7,_0x344329,_0x30d21d);})[_0x427367('0x4')](function(_0x577971){const _0x1c8d81=_0x427367;logger[_0x1c8d81('0x19')](util[_0x1c8d81('0xb')](_0x577971,{'showHidden':![],'depth':null}));});});},Migration[_0x558735('0x8')][_0x558735('0x5')]=function(_0x203ec9){this['sequence']['enqueue'](function(){return _0x203ec9();});},module[_0x558735('0x2')]={'up':function(_0x2fb378){return new Promise(function(_0x5278a0){const _0xfe0ac8=a956_0x3894,_0xb4ff88=new Migration(_0x2fb378);_0xb4ff88[_0xfe0ac8('0x13')](_0xfe0ac8('0x16')),_0xb4ff88[_0xfe0ac8('0x5')](_0x5278a0);});},'down':function(){}}; \ No newline at end of file +const a1118_0x2083=['removeColumn','Removed\x20column\x20%s\x20from\x20%s','addIndex','catch','info','changeColumn','sequence','stringify','exports','removeIndex\x20%s\x20%s','tail','migration','removeIndex','query','Added\x20column\x20%s\x20to\x20%s','enqueue','table\x20dropped\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','prototype','inspect','then','util','join','queryInterface','renameColumn','addColumn','final','addIndex\x20%s\x20%s\x20%s','../config/logger','dropTable'];(function(_0xd589a6,_0x4d2757){const _0x208340=function(_0x1e1ff7){while(--_0x1e1ff7){_0xd589a6['push'](_0xd589a6['shift']());}};_0x208340(++_0x4d2757);}(a1118_0x2083,0x104));const a1118_0x1e1f=function(_0xd589a6,_0x4d2757){_0xd589a6=_0xd589a6-0xdb;let _0x208340=a1118_0x2083[_0xd589a6];return _0x208340;};const a1118_0x2b90dc=a1118_0x1e1f;'use strict';const util=require(a1118_0x2b90dc(0xdc)),logger=require(a1118_0x2b90dc(0xe3))(a1118_0x2b90dc(0xf0)),Sequence=function(){};Sequence[a1118_0x2b90dc(0xf7)]['enqueue']=function(_0x19cbcc){const _0x3d71f7=a1118_0x2b90dc;this[_0x3d71f7(0xef)]=this['tail']?this[_0x3d71f7(0xef)]['finally'](_0x19cbcc):_0x19cbcc();};const Migration=function(_0x5e4613){const _0x417fc9=a1118_0x2b90dc;this['queryInterface']=_0x5e4613,this[_0x417fc9(0xeb)]=new Sequence();};Migration['prototype']['changeColumn']=function(_0x25ab1b,_0x58e109,_0x4c9113){const _0xe59e57=a1118_0x2b90dc,_0x129539=this;this[_0xe59e57(0xeb)][_0xe59e57(0xf4)](function(){const _0x5d3f43=_0xe59e57;return _0x129539['queryInterface'][_0x5d3f43(0xea)](_0x25ab1b,_0x58e109,_0x4c9113)[_0x5d3f43(0xdb)](function(){const _0x2e0b26=_0x5d3f43;logger[_0x2e0b26(0xe9)]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x58e109,_0x25ab1b);})[_0x5d3f43(0xe8)](function(_0x3ac579){const _0x2fc21f=_0x5d3f43;logger[_0x2fc21f(0xe9)](JSON[_0x2fc21f(0xec)](_0x3ac579));});});},Migration[a1118_0x2b90dc(0xf7)][a1118_0x2b90dc(0xe0)]=function(_0x336217,_0x3856e2,_0x1de2f7){const _0x123cc2=this;this['sequence']['enqueue'](function(){const _0x469097=a1118_0x1e1f;return _0x123cc2[_0x469097(0xde)][_0x469097(0xe0)](_0x336217,_0x3856e2,_0x1de2f7)[_0x469097(0xdb)](function(){const _0x4a0413=_0x469097;logger[_0x4a0413(0xe9)](_0x4a0413(0xf3),_0x3856e2,_0x336217);})[_0x469097(0xe8)](function(_0x53346f){const _0x7d61e8=_0x469097;logger[_0x7d61e8(0xe9)](JSON['stringify'](_0x53346f));});});},Migration['prototype'][a1118_0x2b90dc(0xe4)]=function(_0xf5ecf){const _0xdf72f5=a1118_0x2b90dc,_0x3b732e=this;this[_0xdf72f5(0xeb)]['enqueue'](function(){const _0x1d0890=_0xdf72f5;return _0x3b732e[_0x1d0890(0xde)][_0x1d0890(0xe4)](_0xf5ecf,{'force':!![]})[_0x1d0890(0xdb)](function(){const _0xa20db=_0x1d0890;logger[_0xa20db(0xe9)](_0xa20db(0xf5),_0xf5ecf);})['catch'](function(_0x31bfd1){const _0x456eb9=_0x1d0890;logger['info'](JSON[_0x456eb9(0xec)](_0x31bfd1));});});},Migration['prototype'][a1118_0x2b90dc(0xe7)]=function(_0x10d03b,_0x170e04,_0x392943){const _0x3d9412=a1118_0x2b90dc,_0x144400=this;this[_0x3d9412(0xeb)][_0x3d9412(0xf4)](function(){const _0x28decb=_0x3d9412;return _0x144400[_0x28decb(0xde)][_0x28decb(0xe7)](_0x10d03b,_0x170e04,{'indexName':_0x392943})[_0x28decb(0xdb)](function(){const _0x2c4b36=_0x28decb;logger[_0x2c4b36(0xe9)](_0x2c4b36(0xe2),_0x10d03b,_0x170e04[_0x2c4b36(0xdd)](','),_0x392943);})[_0x28decb(0xe8)](function(_0x2b499c){const _0x5459df=_0x28decb;logger[_0x5459df(0xe9)](JSON[_0x5459df(0xec)](_0x2b499c));});});},Migration['prototype'][a1118_0x2b90dc(0xf1)]=function(_0x9b08e3,_0x4c8c50){const _0x69bfe=a1118_0x2b90dc,_0xd04f2=this;this[_0x69bfe(0xeb)][_0x69bfe(0xf4)](function(){const _0x567793=_0x69bfe;return _0xd04f2['queryInterface'][_0x567793(0xf1)](_0x9b08e3,_0x4c8c50)[_0x567793(0xdb)](function(){const _0x56f18c=_0x567793;logger['info'](_0x56f18c(0xee),_0x9b08e3,_0x4c8c50);})['catch'](function(_0x54ea8f){logger['info'](JSON['stringify'](_0x54ea8f));});});},Migration[a1118_0x2b90dc(0xf7)][a1118_0x2b90dc(0xf2)]=function(_0x380fb8){const _0xd8884f=a1118_0x2b90dc,_0x4e5880=this;this[_0xd8884f(0xeb)][_0xd8884f(0xf4)](function(){const _0x483a8b=_0xd8884f;return _0x4e5880['queryInterface']['sequelize'][_0x483a8b(0xf2)](_0x380fb8)[_0x483a8b(0xdb)](function(){const _0x3a364f=_0x483a8b;logger[_0x3a364f(0xe9)]('query\x20%s',_0x380fb8);})[_0x483a8b(0xe8)](function(_0xef40a){const _0x13c72c=_0x483a8b;logger[_0x13c72c(0xe9)](JSON[_0x13c72c(0xec)](_0xef40a));});});},Migration[a1118_0x2b90dc(0xf7)][a1118_0x2b90dc(0xe5)]=function(_0x161880,_0x33576c){const _0x1c8a1a=a1118_0x2b90dc,_0x32c1a2=this;this[_0x1c8a1a(0xeb)][_0x1c8a1a(0xf4)](function(){const _0x2ab281=_0x1c8a1a;return _0x32c1a2['queryInterface'][_0x2ab281(0xe5)](_0x161880,_0x33576c)[_0x2ab281(0xdb)](function(){const _0x3d97ec=_0x2ab281;logger['info'](_0x3d97ec(0xe6),_0x33576c,_0x161880);})[_0x2ab281(0xe8)](function(_0x37495d){const _0x34826e=_0x2ab281;logger['info'](util[_0x34826e(0xf8)](_0x37495d,{'showHidden':![],'depth':null}));});});},Migration[a1118_0x2b90dc(0xf7)][a1118_0x2b90dc(0xdf)]=function(_0xd39645,_0x1f81e8,_0x2193f4){const _0x4d37c1=a1118_0x2b90dc,_0x44c1a9=this;this[_0x4d37c1(0xeb)]['enqueue'](function(){const _0x3be8b2=_0x4d37c1;return _0x44c1a9[_0x3be8b2(0xde)][_0x3be8b2(0xdf)](_0xd39645,_0x1f81e8,_0x2193f4)[_0x3be8b2(0xdb)](function(){const _0x28a0bd=_0x3be8b2;logger[_0x28a0bd(0xe9)](_0x28a0bd(0xf6),_0x1f81e8,_0x2193f4,_0xd39645);})[_0x3be8b2(0xe8)](function(_0x5415a7){const _0x14ba39=_0x3be8b2;logger[_0x14ba39(0xe9)](util[_0x14ba39(0xf8)](_0x5415a7,{'showHidden':![],'depth':null}));});});},Migration[a1118_0x2b90dc(0xf7)][a1118_0x2b90dc(0xe1)]=function(_0x4bd8f7){const _0x1cf4df=a1118_0x2b90dc;this[_0x1cf4df(0xeb)]['enqueue'](function(){return _0x4bd8f7();});},module[a1118_0x2b90dc(0xed)]={'up':function(_0x34c38b){return new Promise(function(_0x528c2f){const _0x357fcd=a1118_0x1e1f,_0x1ce29e=new Migration(_0x34c38b);_0x1ce29e[_0x357fcd(0xf2)]('ALTER\x20TABLE\x20square_messages\x20ENCRYPTION=\x27Y\x27;'),_0x1ce29e[_0x357fcd(0xe1)](_0x528c2f);});},'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 5f747b9..b77adbd 100644 --- a/server/migrations/2.0.79.js +++ b/server/migrations/2.0.79.js @@ -1 +1 @@ -const a957_0x380e=['then','removeIndex\x20%s\x20%s','util','exports','dropTable','catch','addIndex','enqueue','tail','addColumn','finally','inspect','../config/logger','renameColumn','final','stringify','join','info','removeIndex','Removed\x20column\x20%s\x20from\x20%s','queryInterface','changeColumn','removeColumn','Added\x20column\x20%s\x20to\x20%s','prototype','query','sequence','Changed\x20column\x20%s\x20in\x20table\x20%s','UPDATE\x20dashboard_items\x20SET\x20attrs\x20=\x20REPLACE(attrs,\x27[{\x22name\x22:\x22attrReport\x22\x27,\x27[{\x22name\x22:\x22attrReport\x22,\x22type\x22:\x22custom\x22\x27)\x20WHERE\x20type\x20=\x20\x27web-report\x27\x20AND\x20attrs\x20NOT\x20LIKE\x20\x27%type%\x27'];(function(_0x5c6711,_0x380e1b){const _0x48c210=function(_0xc6cd8c){while(--_0xc6cd8c){_0x5c6711['push'](_0x5c6711['shift']());}};_0x48c210(++_0x380e1b);}(a957_0x380e,0x7b));const a957_0x48c2=function(_0x5c6711,_0x380e1b){_0x5c6711=_0x5c6711-0x0;let _0x48c210=a957_0x380e[_0x5c6711];return _0x48c210;};const _0x250233=a957_0x48c2;'use strict';const util=require(_0x250233('0x18')),logger=require(_0x250233('0x5'))('migration'),Sequence=function(){};Sequence[_0x250233('0x11')][_0x250233('0x0')]=function(_0xc6cd8c){const _0x551cdd=_0x250233;this[_0x551cdd('0x1')]=this['tail']?this[_0x551cdd('0x1')][_0x551cdd('0x3')](_0xc6cd8c):_0xc6cd8c();};const Migration=function(_0x10a4a3){const _0x3cdafd=_0x250233;this[_0x3cdafd('0xd')]=_0x10a4a3,this[_0x3cdafd('0x13')]=new Sequence();};Migration[_0x250233('0x11')][_0x250233('0xe')]=function(_0x572d8b,_0xc58f39,_0xca9590){const _0x1e2196=_0x250233,_0x2bb078=this;this['sequence'][_0x1e2196('0x0')](function(){const _0x34ca64=_0x1e2196;return _0x2bb078[_0x34ca64('0xd')][_0x34ca64('0xe')](_0x572d8b,_0xc58f39,_0xca9590)['then'](function(){const _0x1bf804=_0x34ca64;logger[_0x1bf804('0xa')](_0x1bf804('0x14'),_0xc58f39,_0x572d8b);})[_0x34ca64('0x1b')](function(_0x4ee90a){const _0x1b956=_0x34ca64;logger[_0x1b956('0xa')](JSON[_0x1b956('0x8')](_0x4ee90a));});});},Migration[_0x250233('0x11')][_0x250233('0x2')]=function(_0x5271bf,_0x449335,_0x2ac467){const _0x404f2b=_0x250233,_0x42e4a5=this;this[_0x404f2b('0x13')][_0x404f2b('0x0')](function(){const _0x36efdd=_0x404f2b;return _0x42e4a5[_0x36efdd('0xd')]['addColumn'](_0x5271bf,_0x449335,_0x2ac467)[_0x36efdd('0x16')](function(){const _0x346653=_0x36efdd;logger[_0x346653('0xa')](_0x346653('0x10'),_0x449335,_0x5271bf);})[_0x36efdd('0x1b')](function(_0x4d964b){const _0x25d25f=_0x36efdd;logger[_0x25d25f('0xa')](JSON[_0x25d25f('0x8')](_0x4d964b));});});},Migration[_0x250233('0x11')]['dropTable']=function(_0x450fbb){const _0x459527=this;this['sequence']['enqueue'](function(){const _0x4e4505=a957_0x48c2;return _0x459527['queryInterface'][_0x4e4505('0x1a')](_0x450fbb,{'force':!![]})[_0x4e4505('0x16')](function(){logger['info']('table\x20dropped\x20%s',_0x450fbb);})['catch'](function(_0x167c3a){const _0x5491c0=_0x4e4505;logger[_0x5491c0('0xa')](JSON[_0x5491c0('0x8')](_0x167c3a));});});},Migration[_0x250233('0x11')][_0x250233('0x1c')]=function(_0x2d13b3,_0x47270b,_0x1b1d8e){const _0x241abf=this;this['sequence']['enqueue'](function(){const _0xd976e7=a957_0x48c2;return _0x241abf[_0xd976e7('0xd')][_0xd976e7('0x1c')](_0x2d13b3,_0x47270b,{'indexName':_0x1b1d8e})[_0xd976e7('0x16')](function(){const _0x1977f1=_0xd976e7;logger[_0x1977f1('0xa')]('addIndex\x20%s\x20%s\x20%s',_0x2d13b3,_0x47270b[_0x1977f1('0x9')](','),_0x1b1d8e);})[_0xd976e7('0x1b')](function(_0x46e106){const _0xfd7573=_0xd976e7;logger[_0xfd7573('0xa')](JSON[_0xfd7573('0x8')](_0x46e106));});});},Migration[_0x250233('0x11')][_0x250233('0xb')]=function(_0x5781b5,_0x4689cf){const _0xbad10e=_0x250233,_0x477214=this;this[_0xbad10e('0x13')][_0xbad10e('0x0')](function(){const _0x5bd653=_0xbad10e;return _0x477214[_0x5bd653('0xd')][_0x5bd653('0xb')](_0x5781b5,_0x4689cf)['then'](function(){const _0x56f590=_0x5bd653;logger[_0x56f590('0xa')](_0x56f590('0x17'),_0x5781b5,_0x4689cf);})[_0x5bd653('0x1b')](function(_0x36c465){const _0x4c1bbf=_0x5bd653;logger[_0x4c1bbf('0xa')](JSON[_0x4c1bbf('0x8')](_0x36c465));});});},Migration[_0x250233('0x11')][_0x250233('0x12')]=function(_0x7bfc68){const _0x52c513=_0x250233,_0x5653bc=this;this[_0x52c513('0x13')][_0x52c513('0x0')](function(){const _0x368009=_0x52c513;return _0x5653bc[_0x368009('0xd')]['sequelize'][_0x368009('0x12')](_0x7bfc68)['then'](function(){const _0x26d379=_0x368009;logger[_0x26d379('0xa')]('query\x20%s',_0x7bfc68);})[_0x368009('0x1b')](function(_0x18de54){const _0x350de5=_0x368009;logger['info'](JSON[_0x350de5('0x8')](_0x18de54));});});},Migration[_0x250233('0x11')][_0x250233('0xf')]=function(_0x37d0bf,_0x2edc21){const _0x364a08=_0x250233,_0x3386ec=this;this['sequence'][_0x364a08('0x0')](function(){const _0x4d6565=_0x364a08;return _0x3386ec['queryInterface'][_0x4d6565('0xf')](_0x37d0bf,_0x2edc21)[_0x4d6565('0x16')](function(){const _0x4a9a86=_0x4d6565;logger['info'](_0x4a9a86('0xc'),_0x2edc21,_0x37d0bf);})[_0x4d6565('0x1b')](function(_0x539643){const _0x50de7a=_0x4d6565;logger[_0x50de7a('0xa')](util['inspect'](_0x539643,{'showHidden':![],'depth':null}));});});},Migration[_0x250233('0x11')]['renameColumn']=function(_0x12a002,_0x2a153f,_0x54d53c){const _0x128b36=_0x250233,_0x5e5880=this;this['sequence'][_0x128b36('0x0')](function(){const _0x4e7783=_0x128b36;return _0x5e5880[_0x4e7783('0xd')][_0x4e7783('0x6')](_0x12a002,_0x2a153f,_0x54d53c)['then'](function(){const _0x3c53a4=_0x4e7783;logger[_0x3c53a4('0xa')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x2a153f,_0x54d53c,_0x12a002);})[_0x4e7783('0x1b')](function(_0x44d935){const _0x4ab252=_0x4e7783;logger['info'](util[_0x4ab252('0x4')](_0x44d935,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x250233('0x7')]=function(_0x48ba02){const _0x12a1b4=_0x250233;this[_0x12a1b4('0x13')][_0x12a1b4('0x0')](function(){return _0x48ba02();});},module[_0x250233('0x19')]={'up':function(_0x9b87da){return new Promise(function(_0x1e5312){const _0x43ee0f=a957_0x48c2,_0x1bf862=new Migration(_0x9b87da);_0x1bf862[_0x43ee0f('0x12')](_0x43ee0f('0x15')),_0x1bf862[_0x43ee0f('0x7')](_0x1e5312);});},'down':function(){}}; \ No newline at end of file +const a1119_0x37e0=['util','removeIndex','removeIndex\x20%s\x20%s','changeColumn','table\x20dropped\x20%s','enqueue','queryInterface','info','dropTable','join','query\x20%s','Removed\x20column\x20%s\x20from\x20%s','removeColumn','sequelize','then','finally','prototype','inspect','addColumn','catch','tail','stringify','final','query','renameColumn','migration','../config/logger','exports','sequence','addIndex\x20%s\x20%s\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','addIndex','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'];(function(_0x23be04,_0x2467d6){const _0x37e0bd=function(_0x3efb28){while(--_0x3efb28){_0x23be04['push'](_0x23be04['shift']());}};_0x37e0bd(++_0x2467d6);}(a1119_0x37e0,0x74));const a1119_0x3efb=function(_0x23be04,_0x2467d6){_0x23be04=_0x23be04-0x13a;let _0x37e0bd=a1119_0x37e0[_0x23be04];return _0x37e0bd;};const a1119_0x7c117e=a1119_0x3efb;'use strict';const util=require(a1119_0x7c117e(0x14a)),logger=require(a1119_0x7c117e(0x143))(a1119_0x7c117e(0x142)),Sequence=function(){};Sequence[a1119_0x7c117e(0x15a)]['enqueue']=function(_0x578794){const _0x5313f5=a1119_0x7c117e;this[_0x5313f5(0x13d)]=this[_0x5313f5(0x13d)]?this[_0x5313f5(0x13d)][_0x5313f5(0x159)](_0x578794):_0x578794();};const Migration=function(_0x842b48){const _0x46a2dd=a1119_0x7c117e;this[_0x46a2dd(0x150)]=_0x842b48,this[_0x46a2dd(0x145)]=new Sequence();};Migration[a1119_0x7c117e(0x15a)][a1119_0x7c117e(0x14d)]=function(_0x35a93a,_0x2d77f3,_0x4b6b61){const _0x4a88df=a1119_0x7c117e,_0x5f4f40=this;this['sequence'][_0x4a88df(0x14f)](function(){const _0x26f826=_0x4a88df;return _0x5f4f40[_0x26f826(0x150)][_0x26f826(0x14d)](_0x35a93a,_0x2d77f3,_0x4b6b61)[_0x26f826(0x158)](function(){const _0x5f5091=_0x26f826;logger['info'](_0x5f5091(0x147),_0x2d77f3,_0x35a93a);})[_0x26f826(0x13c)](function(_0x56944e){const _0x1ba953=_0x26f826;logger['info'](JSON[_0x1ba953(0x13e)](_0x56944e));});});},Migration[a1119_0x7c117e(0x15a)][a1119_0x7c117e(0x13b)]=function(_0x3b98e8,_0x23d85f,_0x1e36e1){const _0x15515e=a1119_0x7c117e,_0x30e16f=this;this[_0x15515e(0x145)][_0x15515e(0x14f)](function(){const _0x4164f2=_0x15515e;return _0x30e16f[_0x4164f2(0x150)][_0x4164f2(0x13b)](_0x3b98e8,_0x23d85f,_0x1e36e1)[_0x4164f2(0x158)](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x23d85f,_0x3b98e8);})['catch'](function(_0x4d74e9){const _0x585776=_0x4164f2;logger[_0x585776(0x151)](JSON['stringify'](_0x4d74e9));});});},Migration[a1119_0x7c117e(0x15a)][a1119_0x7c117e(0x152)]=function(_0x535fb0){const _0x25de38=a1119_0x7c117e,_0x2b0ad7=this;this[_0x25de38(0x145)][_0x25de38(0x14f)](function(){const _0x41e2b5=_0x25de38;return _0x2b0ad7[_0x41e2b5(0x150)][_0x41e2b5(0x152)](_0x535fb0,{'force':!![]})[_0x41e2b5(0x158)](function(){const _0x2dd45a=_0x41e2b5;logger['info'](_0x2dd45a(0x14e),_0x535fb0);})[_0x41e2b5(0x13c)](function(_0x4d539e){const _0x3d6da1=_0x41e2b5;logger[_0x3d6da1(0x151)](JSON[_0x3d6da1(0x13e)](_0x4d539e));});});},Migration[a1119_0x7c117e(0x15a)][a1119_0x7c117e(0x148)]=function(_0x13d156,_0x209c2e,_0xff5d9c){const _0x4ad631=a1119_0x7c117e,_0x3aa754=this;this[_0x4ad631(0x145)][_0x4ad631(0x14f)](function(){const _0x3dbfb8=_0x4ad631;return _0x3aa754[_0x3dbfb8(0x150)][_0x3dbfb8(0x148)](_0x13d156,_0x209c2e,{'indexName':_0xff5d9c})['then'](function(){const _0x3843a7=_0x3dbfb8;logger[_0x3843a7(0x151)](_0x3843a7(0x146),_0x13d156,_0x209c2e[_0x3843a7(0x153)](','),_0xff5d9c);})[_0x3dbfb8(0x13c)](function(_0x346397){const _0x5a0ed3=_0x3dbfb8;logger[_0x5a0ed3(0x151)](JSON['stringify'](_0x346397));});});},Migration[a1119_0x7c117e(0x15a)][a1119_0x7c117e(0x14b)]=function(_0x413c7c,_0x76a029){const _0x2c9dbd=a1119_0x7c117e,_0x5cf211=this;this['sequence'][_0x2c9dbd(0x14f)](function(){const _0x1a1474=_0x2c9dbd;return _0x5cf211['queryInterface']['removeIndex'](_0x413c7c,_0x76a029)[_0x1a1474(0x158)](function(){const _0x24a120=_0x1a1474;logger[_0x24a120(0x151)](_0x24a120(0x14c),_0x413c7c,_0x76a029);})[_0x1a1474(0x13c)](function(_0x793292){const _0x3fd105=_0x1a1474;logger['info'](JSON[_0x3fd105(0x13e)](_0x793292));});});},Migration[a1119_0x7c117e(0x15a)][a1119_0x7c117e(0x140)]=function(_0x57f132){const _0x143e08=a1119_0x7c117e,_0x55c12e=this;this['sequence'][_0x143e08(0x14f)](function(){const _0x57c879=_0x143e08;return _0x55c12e['queryInterface'][_0x57c879(0x157)]['query'](_0x57f132)[_0x57c879(0x158)](function(){const _0x41b41d=_0x57c879;logger[_0x41b41d(0x151)](_0x41b41d(0x154),_0x57f132);})[_0x57c879(0x13c)](function(_0x39b5d0){logger['info'](JSON['stringify'](_0x39b5d0));});});},Migration['prototype']['removeColumn']=function(_0x15837a,_0x52dfae){const _0x1686fb=a1119_0x7c117e,_0x3c7ece=this;this['sequence'][_0x1686fb(0x14f)](function(){const _0x18091e=_0x1686fb;return _0x3c7ece['queryInterface'][_0x18091e(0x156)](_0x15837a,_0x52dfae)['then'](function(){const _0xe9f0e6=_0x18091e;logger[_0xe9f0e6(0x151)](_0xe9f0e6(0x155),_0x52dfae,_0x15837a);})[_0x18091e(0x13c)](function(_0x151d83){const _0x52cfe5=_0x18091e;logger[_0x52cfe5(0x151)](util[_0x52cfe5(0x13a)](_0x151d83,{'showHidden':![],'depth':null}));});});},Migration[a1119_0x7c117e(0x15a)][a1119_0x7c117e(0x141)]=function(_0x29d63d,_0x5d34cb,_0x4912c8){const _0xceacff=a1119_0x7c117e,_0x334cc7=this;this[_0xceacff(0x145)]['enqueue'](function(){const _0x3a4bac=_0xceacff;return _0x334cc7[_0x3a4bac(0x150)]['renameColumn'](_0x29d63d,_0x5d34cb,_0x4912c8)['then'](function(){const _0x21cb2f=_0x3a4bac;logger[_0x21cb2f(0x151)]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x5d34cb,_0x4912c8,_0x29d63d);})[_0x3a4bac(0x13c)](function(_0x23d90f){const _0x17201d=_0x3a4bac;logger['info'](util[_0x17201d(0x13a)](_0x23d90f,{'showHidden':![],'depth':null}));});});},Migration[a1119_0x7c117e(0x15a)][a1119_0x7c117e(0x13f)]=function(_0x3f1b5a){const _0x204436=a1119_0x7c117e;this[_0x204436(0x145)]['enqueue'](function(){return _0x3f1b5a();});},module[a1119_0x7c117e(0x144)]={'up':function(_0x20cc9b){return new Promise(function(_0x48a1d0){const _0x5e2935=a1119_0x3efb,_0x50ec56=new Migration(_0x20cc9b);_0x50ec56[_0x5e2935(0x140)](_0x5e2935(0x149)),_0x50ec56[_0x5e2935(0x13f)](_0x48a1d0);});},'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 60a882a..ea9dee9 100644 --- a/server/migrations/2.0.80.js +++ b/server/migrations/2.0.80.js @@ -1 +1 @@ -const a958_0x8f20=['info','catch','addIndex\x20%s\x20%s\x20%s','final','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','STRING','table\x20dropped\x20%s','Removed\x20column\x20%s\x20from\x20%s','removeIndex\x20%s\x20%s','settings','query','util','preferred','tail','exports','finally','addColumn','inspect','sequence','queryInterface','addIndex','enqueue','then','sequelize','prototype','dropTable','defaultPreferred','renameColumn','stringify','../config/logger','Added\x20column\x20%s\x20to\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','removeColumn','removeIndex','changeColumn','BOOLEAN'];(function(_0xd7931,_0x8f20c5){const _0x4fba50=function(_0x36638e){while(--_0x36638e){_0xd7931['push'](_0xd7931['shift']());}};_0x4fba50(++_0x8f20c5);}(a958_0x8f20,0x85));const a958_0x4fba=function(_0xd7931,_0x8f20c5){_0xd7931=_0xd7931-0x0;let _0x4fba50=a958_0x8f20[_0xd7931];return _0x4fba50;};const _0x45333a=a958_0x4fba;'use strict';const util=require(_0x45333a('0x16')),logger=require(_0x45333a('0x4'))('migration'),Sequence=function(){};Sequence[_0x45333a('0x23')]['enqueue']=function(_0x36638e){const _0x344510=_0x45333a;this[_0x344510('0x18')]=this[_0x344510('0x18')]?this[_0x344510('0x18')][_0x344510('0x1a')](_0x36638e):_0x36638e();};const Migration=function(_0x15957b){const _0x5148c6=_0x45333a;this['queryInterface']=_0x15957b,this[_0x5148c6('0x1d')]=new Sequence();};Migration[_0x45333a('0x23')][_0x45333a('0x9')]=function(_0x28515c,_0x290378,_0x45f7e8){const _0x132433=this;this['sequence']['enqueue'](function(){const _0x3b8c23=a958_0x4fba;return _0x132433[_0x3b8c23('0x1e')][_0x3b8c23('0x9')](_0x28515c,_0x290378,_0x45f7e8)[_0x3b8c23('0x21')](function(){const _0x512124=_0x3b8c23;logger[_0x512124('0xb')](_0x512124('0x6'),_0x290378,_0x28515c);})[_0x3b8c23('0xc')](function(_0x1954fc){const _0x510784=_0x3b8c23;logger[_0x510784('0xb')](JSON[_0x510784('0x3')](_0x1954fc));});});},Migration[_0x45333a('0x23')][_0x45333a('0x1b')]=function(_0x3f06ff,_0x477ea3,_0x32750a){const _0x1f2d2d=_0x45333a,_0x3619db=this;this[_0x1f2d2d('0x1d')][_0x1f2d2d('0x20')](function(){const _0x27cace=_0x1f2d2d;return _0x3619db[_0x27cace('0x1e')][_0x27cace('0x1b')](_0x3f06ff,_0x477ea3,_0x32750a)[_0x27cace('0x21')](function(){const _0x40daf7=_0x27cace;logger['info'](_0x40daf7('0x5'),_0x477ea3,_0x3f06ff);})[_0x27cace('0xc')](function(_0x51f683){const _0x1e61d0=_0x27cace;logger[_0x1e61d0('0xb')](JSON[_0x1e61d0('0x3')](_0x51f683));});});},Migration['prototype'][_0x45333a('0x0')]=function(_0x5e7f45){const _0x3351dc=_0x45333a,_0x336224=this;this[_0x3351dc('0x1d')][_0x3351dc('0x20')](function(){const _0x386c0e=_0x3351dc;return _0x336224[_0x386c0e('0x1e')][_0x386c0e('0x0')](_0x5e7f45,{'force':!![]})[_0x386c0e('0x21')](function(){const _0x33e8c3=_0x386c0e;logger[_0x33e8c3('0xb')](_0x33e8c3('0x11'),_0x5e7f45);})[_0x386c0e('0xc')](function(_0x5a836e){const _0xc1f3a7=_0x386c0e;logger[_0xc1f3a7('0xb')](JSON[_0xc1f3a7('0x3')](_0x5a836e));});});},Migration[_0x45333a('0x23')][_0x45333a('0x1f')]=function(_0x57342c,_0x458887,_0x97f6bb){const _0x5e552e=this;this['sequence']['enqueue'](function(){const _0x4906d4=a958_0x4fba;return _0x5e552e['queryInterface'][_0x4906d4('0x1f')](_0x57342c,_0x458887,{'indexName':_0x97f6bb})[_0x4906d4('0x21')](function(){const _0x1ed057=_0x4906d4;logger[_0x1ed057('0xb')](_0x1ed057('0xd'),_0x57342c,_0x458887['join'](','),_0x97f6bb);})['catch'](function(_0x18af4a){const _0x2fd221=_0x4906d4;logger['info'](JSON[_0x2fd221('0x3')](_0x18af4a));});});},Migration['prototype']['removeIndex']=function(_0x4f2e92,_0x29ad47){const _0x953f6b=_0x45333a,_0x4aac54=this;this[_0x953f6b('0x1d')][_0x953f6b('0x20')](function(){const _0x453678=_0x953f6b;return _0x4aac54[_0x453678('0x1e')][_0x453678('0x8')](_0x4f2e92,_0x29ad47)[_0x453678('0x21')](function(){const _0x4eab78=_0x453678;logger[_0x4eab78('0xb')](_0x4eab78('0x13'),_0x4f2e92,_0x29ad47);})['catch'](function(_0x4c7e8a){const _0x4734a3=_0x453678;logger['info'](JSON[_0x4734a3('0x3')](_0x4c7e8a));});});},Migration[_0x45333a('0x23')][_0x45333a('0x15')]=function(_0x39a89b){const _0x350e9f=_0x45333a,_0x2e2547=this;this[_0x350e9f('0x1d')]['enqueue'](function(){const _0x1e4a57=_0x350e9f;return _0x2e2547[_0x1e4a57('0x1e')][_0x1e4a57('0x22')]['query'](_0x39a89b)['then'](function(){const _0xbd0cc2=_0x1e4a57;logger[_0xbd0cc2('0xb')]('query\x20%s',_0x39a89b);})[_0x1e4a57('0xc')](function(_0x3a9235){const _0x1fc6f9=_0x1e4a57;logger[_0x1fc6f9('0xb')](JSON[_0x1fc6f9('0x3')](_0x3a9235));});});},Migration[_0x45333a('0x23')]['removeColumn']=function(_0x4025ab,_0x171c9c){const _0x144c81=_0x45333a,_0x2c82e5=this;this[_0x144c81('0x1d')][_0x144c81('0x20')](function(){const _0x2b45d6=_0x144c81;return _0x2c82e5['queryInterface'][_0x2b45d6('0x7')](_0x4025ab,_0x171c9c)[_0x2b45d6('0x21')](function(){const _0x40c952=_0x2b45d6;logger[_0x40c952('0xb')](_0x40c952('0x12'),_0x171c9c,_0x4025ab);})[_0x2b45d6('0xc')](function(_0x2ce484){logger['info'](util['inspect'](_0x2ce484,{'showHidden':![],'depth':null}));});});},Migration[_0x45333a('0x23')][_0x45333a('0x2')]=function(_0x355259,_0x124033,_0x34a223){const _0x28829e=_0x45333a,_0x3dcbf6=this;this['sequence'][_0x28829e('0x20')](function(){const _0x2f814c=_0x28829e;return _0x3dcbf6['queryInterface']['renameColumn'](_0x355259,_0x124033,_0x34a223)[_0x2f814c('0x21')](function(){const _0x52f66c=_0x2f814c;logger[_0x52f66c('0xb')](_0x52f66c('0xf'),_0x124033,_0x34a223,_0x355259);})[_0x2f814c('0xc')](function(_0x581479){const _0x1958b4=_0x2f814c;logger[_0x1958b4('0xb')](util[_0x1958b4('0x1c')](_0x581479,{'showHidden':![],'depth':null}));});});},Migration[_0x45333a('0x23')][_0x45333a('0xe')]=function(_0x54e7f2){const _0x17e579=_0x45333a;this[_0x17e579('0x1d')][_0x17e579('0x20')](function(){return _0x54e7f2();});},module[_0x45333a('0x19')]={'up':function(_0x117eec,_0x22b4ab){return new Promise(function(_0x4e9d28){const _0x2788b6=a958_0x4fba,_0x4e3e6d=new Migration(_0x117eec);_0x4e3e6d[_0x2788b6('0x1b')](_0x2788b6('0x14'),_0x2788b6('0x17'),{'type':_0x22b4ab[_0x2788b6('0x10')]}),_0x4e3e6d['addColumn'](_0x2788b6('0x14'),_0x2788b6('0x1'),{'type':_0x22b4ab[_0x2788b6('0xa')],'defaultValue':!![]}),_0x4e3e6d[_0x2788b6('0xe')](_0x4e9d28);});},'down':function(){}}; \ No newline at end of file +const a1120_0x1f94=['tail','removeIndex','join','BOOLEAN','table\x20dropped\x20%s','removeColumn','dropTable','preferred','finally','query','changeColumn','then','enqueue','util','renameColumn','addIndex','Changed\x20column\x20%s\x20in\x20table\x20%s','exports','Removed\x20column\x20%s\x20from\x20%s','../config/logger','addIndex\x20%s\x20%s\x20%s','settings','migration','sequence','stringify','addColumn','queryInterface','prototype','info','final','inspect','removeIndex\x20%s\x20%s','catch','Added\x20column\x20%s\x20to\x20%s'];(function(_0x282208,_0xec93b0){const _0x1f9419=function(_0x4f62eb){while(--_0x4f62eb){_0x282208['push'](_0x282208['shift']());}};_0x1f9419(++_0xec93b0);}(a1120_0x1f94,0x14f));const a1120_0x4f62=function(_0x282208,_0xec93b0){_0x282208=_0x282208-0xf6;let _0x1f9419=a1120_0x1f94[_0x282208];return _0x1f9419;};const a1120_0x59e9d4=a1120_0x4f62;'use strict';const util=require(a1120_0x59e9d4(0x108)),logger=require(a1120_0x59e9d4(0x10e))(a1120_0x59e9d4(0x111)),Sequence=function(){};Sequence[a1120_0x59e9d4(0x116)][a1120_0x59e9d4(0x107)]=function(_0x252459){const _0x3b982a=a1120_0x59e9d4;this['tail']=this[_0x3b982a(0xfb)]?this[_0x3b982a(0xfb)][_0x3b982a(0x103)](_0x252459):_0x252459();};const Migration=function(_0x5becaa){const _0x4b0a05=a1120_0x59e9d4;this[_0x4b0a05(0x115)]=_0x5becaa,this[_0x4b0a05(0x112)]=new Sequence();};Migration['prototype'][a1120_0x59e9d4(0x105)]=function(_0x194c3c,_0x1e6955,_0x24fa6a){const _0x100694=a1120_0x59e9d4,_0x1397a5=this;this[_0x100694(0x112)][_0x100694(0x107)](function(){const _0x928a01=_0x100694;return _0x1397a5[_0x928a01(0x115)][_0x928a01(0x105)](_0x194c3c,_0x1e6955,_0x24fa6a)['then'](function(){const _0x15823f=_0x928a01;logger[_0x15823f(0x117)](_0x15823f(0x10b),_0x1e6955,_0x194c3c);})['catch'](function(_0x4a35a5){const _0x17e63d=_0x928a01;logger['info'](JSON[_0x17e63d(0x113)](_0x4a35a5));});});},Migration[a1120_0x59e9d4(0x116)][a1120_0x59e9d4(0x114)]=function(_0x2389d5,_0xda0dd,_0x44c2d2){const _0x582ddd=a1120_0x59e9d4,_0x1b5d97=this;this[_0x582ddd(0x112)]['enqueue'](function(){const _0xebc2e3=_0x582ddd;return _0x1b5d97['queryInterface'][_0xebc2e3(0x114)](_0x2389d5,_0xda0dd,_0x44c2d2)[_0xebc2e3(0x106)](function(){const _0x1481cd=_0xebc2e3;logger['info'](_0x1481cd(0xfa),_0xda0dd,_0x2389d5);})['catch'](function(_0x1dff81){const _0x193d14=_0xebc2e3;logger[_0x193d14(0x117)](JSON[_0x193d14(0x113)](_0x1dff81));});});},Migration['prototype'][a1120_0x59e9d4(0x101)]=function(_0x5c41d5){const _0x324061=a1120_0x59e9d4,_0x3a195b=this;this[_0x324061(0x112)][_0x324061(0x107)](function(){const _0x644b75=_0x324061;return _0x3a195b[_0x644b75(0x115)][_0x644b75(0x101)](_0x5c41d5,{'force':!![]})[_0x644b75(0x106)](function(){const _0x1e80b6=_0x644b75;logger[_0x1e80b6(0x117)](_0x1e80b6(0xff),_0x5c41d5);})['catch'](function(_0x10fcd2){const _0x3dbbf2=_0x644b75;logger[_0x3dbbf2(0x117)](JSON[_0x3dbbf2(0x113)](_0x10fcd2));});});},Migration['prototype'][a1120_0x59e9d4(0x10a)]=function(_0x26286d,_0x3310b5,_0x48da1c){const _0x5e9c8=this;this['sequence']['enqueue'](function(){const _0x9a1816=a1120_0x4f62;return _0x5e9c8[_0x9a1816(0x115)]['addIndex'](_0x26286d,_0x3310b5,{'indexName':_0x48da1c})[_0x9a1816(0x106)](function(){const _0xdf0057=_0x9a1816;logger[_0xdf0057(0x117)](_0xdf0057(0x10f),_0x26286d,_0x3310b5[_0xdf0057(0xfd)](','),_0x48da1c);})[_0x9a1816(0xf9)](function(_0x44f933){const _0x228a8f=_0x9a1816;logger[_0x228a8f(0x117)](JSON[_0x228a8f(0x113)](_0x44f933));});});},Migration[a1120_0x59e9d4(0x116)]['removeIndex']=function(_0x515989,_0x16e394){const _0x485be8=a1120_0x59e9d4,_0x4050c0=this;this[_0x485be8(0x112)][_0x485be8(0x107)](function(){const _0x155b04=_0x485be8;return _0x4050c0[_0x155b04(0x115)][_0x155b04(0xfc)](_0x515989,_0x16e394)[_0x155b04(0x106)](function(){const _0x322f80=_0x155b04;logger['info'](_0x322f80(0xf8),_0x515989,_0x16e394);})['catch'](function(_0x3118ea){const _0x2c7df2=_0x155b04;logger[_0x2c7df2(0x117)](JSON[_0x2c7df2(0x113)](_0x3118ea));});});},Migration[a1120_0x59e9d4(0x116)][a1120_0x59e9d4(0x104)]=function(_0x1b5f09){const _0x37972f=a1120_0x59e9d4,_0x239e24=this;this['sequence'][_0x37972f(0x107)](function(){const _0x52527c=_0x37972f;return _0x239e24['queryInterface']['sequelize'][_0x52527c(0x104)](_0x1b5f09)[_0x52527c(0x106)](function(){const _0x25e8b6=_0x52527c;logger[_0x25e8b6(0x117)]('query\x20%s',_0x1b5f09);})['catch'](function(_0x695ae7){const _0x59fd88=_0x52527c;logger[_0x59fd88(0x117)](JSON[_0x59fd88(0x113)](_0x695ae7));});});},Migration[a1120_0x59e9d4(0x116)][a1120_0x59e9d4(0x100)]=function(_0x36b989,_0x44dec8){const _0x52abc9=a1120_0x59e9d4,_0x184589=this;this['sequence'][_0x52abc9(0x107)](function(){const _0x5731ae=_0x52abc9;return _0x184589[_0x5731ae(0x115)][_0x5731ae(0x100)](_0x36b989,_0x44dec8)[_0x5731ae(0x106)](function(){const _0x57bb99=_0x5731ae;logger[_0x57bb99(0x117)](_0x57bb99(0x10d),_0x44dec8,_0x36b989);})[_0x5731ae(0xf9)](function(_0x5e2821){const _0x4384de=_0x5731ae;logger[_0x4384de(0x117)](util['inspect'](_0x5e2821,{'showHidden':![],'depth':null}));});});},Migration[a1120_0x59e9d4(0x116)]['renameColumn']=function(_0xa4cfec,_0x21b9a2,_0x35be57){const _0x1632af=a1120_0x59e9d4,_0x1dea41=this;this[_0x1632af(0x112)]['enqueue'](function(){const _0x35c189=_0x1632af;return _0x1dea41[_0x35c189(0x115)][_0x35c189(0x109)](_0xa4cfec,_0x21b9a2,_0x35be57)[_0x35c189(0x106)](function(){const _0xfd97db=_0x35c189;logger[_0xfd97db(0x117)]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x21b9a2,_0x35be57,_0xa4cfec);})['catch'](function(_0x1ef26d){const _0x358b95=_0x35c189;logger[_0x358b95(0x117)](util[_0x358b95(0xf7)](_0x1ef26d,{'showHidden':![],'depth':null}));});});},Migration[a1120_0x59e9d4(0x116)][a1120_0x59e9d4(0xf6)]=function(_0x43d07e){const _0x1d0674=a1120_0x59e9d4;this['sequence'][_0x1d0674(0x107)](function(){return _0x43d07e();});},module[a1120_0x59e9d4(0x10c)]={'up':function(_0x2e6aa7,_0x4c7999){return new Promise(function(_0x5ec5b9){const _0x543cfd=a1120_0x4f62,_0x33ec03=new Migration(_0x2e6aa7);_0x33ec03[_0x543cfd(0x114)](_0x543cfd(0x110),_0x543cfd(0x102),{'type':_0x4c7999['STRING']}),_0x33ec03['addColumn'](_0x543cfd(0x110),'defaultPreferred',{'type':_0x4c7999[_0x543cfd(0xfe)],'defaultValue':!![]}),_0x33ec03['final'](_0x5ec5b9);});},'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 f68c08e..d4a05a4 100644 --- a/server/migrations/2.0.81.js +++ b/server/migrations/2.0.81.js @@ -1 +1 @@ -const a959_0x3a5e=['Changed\x20column\x20%s\x20in\x20table\x20%s','ENUM','stringify','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','migration','removeIndex\x20%s\x20%s','query','telegram','cm_contacts','addIndex','inspect','classic+','join','sequelize','renameColumn','addColumn','removeColumn','classic','STRING','queryInterface','info','addIndex\x20%s\x20%s\x20%s','enqueue','changeColumn','finally','final','sms_accounts','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','table\x20dropped\x20%s','UPDATE\x20sms_accounts\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20SET\x20smsMethod\x20=\x20\x27SI\x27\x20WHERE\x20smsMethod\x20=\x20\x27basic\x27','../config/logger','prototype','sequence','dropTable','then','catch','smsMethod','tail','removeIndex'];(function(_0x5130b1,_0x3a5ef4){const _0x31a89b=function(_0x4e7cff){while(--_0x4e7cff){_0x5130b1['push'](_0x5130b1['shift']());}};_0x31a89b(++_0x3a5ef4);}(a959_0x3a5e,0x102));const a959_0x31a8=function(_0x5130b1,_0x3a5ef4){_0x5130b1=_0x5130b1-0x0;let _0x31a89b=a959_0x3a5e[_0x5130b1];return _0x31a89b;};const _0x4b2061=a959_0x31a8;'use strict';const util=require('util'),logger=require(_0x4b2061('0x6'))(_0x4b2061('0x13')),Sequence=function(){};Sequence[_0x4b2061('0x7')]['enqueue']=function(_0x4e7cff){const _0x27f49a=_0x4b2061;this[_0x27f49a('0xd')]=this[_0x27f49a('0xd')]?this[_0x27f49a('0xd')][_0x27f49a('0x0')](_0x4e7cff):_0x4e7cff();};const Migration=function(_0x14bdb6){const _0x292f91=_0x4b2061;this[_0x292f91('0x22')]=_0x14bdb6,this[_0x292f91('0x8')]=new Sequence();};Migration['prototype'][_0x4b2061('0x26')]=function(_0xf9d5d2,_0x5bdb09,_0x1ad850){const _0x46e01d=_0x4b2061,_0x3e535d=this;this[_0x46e01d('0x8')]['enqueue'](function(){const _0xfa6dd2=_0x46e01d;return _0x3e535d[_0xfa6dd2('0x22')][_0xfa6dd2('0x26')](_0xf9d5d2,_0x5bdb09,_0x1ad850)[_0xfa6dd2('0xa')](function(){const _0xbf35b2=_0xfa6dd2;logger['info'](_0xbf35b2('0xf'),_0x5bdb09,_0xf9d5d2);})[_0xfa6dd2('0xb')](function(_0x19b84d){const _0x44690c=_0xfa6dd2;logger[_0x44690c('0x23')](JSON['stringify'](_0x19b84d));});});},Migration[_0x4b2061('0x7')][_0x4b2061('0x1e')]=function(_0x3c685a,_0x5970f3,_0x436cc0){const _0x45634e=_0x4b2061,_0x3446ea=this;this[_0x45634e('0x8')][_0x45634e('0x25')](function(){const _0x54bd6d=_0x45634e;return _0x3446ea[_0x54bd6d('0x22')][_0x54bd6d('0x1e')](_0x3c685a,_0x5970f3,_0x436cc0)[_0x54bd6d('0xa')](function(){const _0x2da34f=_0x54bd6d;logger[_0x2da34f('0x23')]('Added\x20column\x20%s\x20to\x20%s',_0x5970f3,_0x3c685a);})[_0x54bd6d('0xb')](function(_0x3d9be5){const _0x23b37c=_0x54bd6d;logger[_0x23b37c('0x23')](JSON[_0x23b37c('0x11')](_0x3d9be5));});});},Migration[_0x4b2061('0x7')][_0x4b2061('0x9')]=function(_0x2ae62c){const _0x394b6c=_0x4b2061,_0x177fdd=this;this[_0x394b6c('0x8')]['enqueue'](function(){const _0x4750b5=_0x394b6c;return _0x177fdd[_0x4750b5('0x22')][_0x4750b5('0x9')](_0x2ae62c,{'force':!![]})[_0x4750b5('0xa')](function(){const _0x1f7378=_0x4750b5;logger[_0x1f7378('0x23')](_0x1f7378('0x4'),_0x2ae62c);})['catch'](function(_0x22e52d){const _0x27e951=_0x4750b5;logger[_0x27e951('0x23')](JSON[_0x27e951('0x11')](_0x22e52d));});});},Migration['prototype'][_0x4b2061('0x18')]=function(_0x1aa1df,_0x5e9331,_0x4c2e71){const _0x4d0eb9=this;this['sequence']['enqueue'](function(){const _0x3961c6=a959_0x31a8;return _0x4d0eb9[_0x3961c6('0x22')][_0x3961c6('0x18')](_0x1aa1df,_0x5e9331,{'indexName':_0x4c2e71})[_0x3961c6('0xa')](function(){const _0x57802b=_0x3961c6;logger[_0x57802b('0x23')](_0x57802b('0x24'),_0x1aa1df,_0x5e9331[_0x57802b('0x1b')](','),_0x4c2e71);})[_0x3961c6('0xb')](function(_0xce1a37){const _0x43037a=_0x3961c6;logger[_0x43037a('0x23')](JSON[_0x43037a('0x11')](_0xce1a37));});});},Migration[_0x4b2061('0x7')][_0x4b2061('0xe')]=function(_0x39f5f2,_0x4ac22b){const _0x503247=_0x4b2061,_0x3100db=this;this[_0x503247('0x8')][_0x503247('0x25')](function(){const _0x30da7f=_0x503247;return _0x3100db['queryInterface'][_0x30da7f('0xe')](_0x39f5f2,_0x4ac22b)['then'](function(){const _0x16c225=_0x30da7f;logger['info'](_0x16c225('0x14'),_0x39f5f2,_0x4ac22b);})[_0x30da7f('0xb')](function(_0x5c3902){const _0x5074db=_0x30da7f;logger[_0x5074db('0x23')](JSON[_0x5074db('0x11')](_0x5c3902));});});},Migration[_0x4b2061('0x7')]['query']=function(_0x136cec){const _0x46d850=_0x4b2061,_0x35e18a=this;this[_0x46d850('0x8')][_0x46d850('0x25')](function(){const _0x336dff=_0x46d850;return _0x35e18a[_0x336dff('0x22')][_0x336dff('0x1c')]['query'](_0x136cec)[_0x336dff('0xa')](function(){const _0x36ae8b=_0x336dff;logger[_0x36ae8b('0x23')]('query\x20%s',_0x136cec);})['catch'](function(_0x2bac32){const _0x4f0282=_0x336dff;logger['info'](JSON[_0x4f0282('0x11')](_0x2bac32));});});},Migration[_0x4b2061('0x7')][_0x4b2061('0x1f')]=function(_0x2aaa36,_0x1fc6e5){const _0xf8f636=_0x4b2061,_0x6cd1ff=this;this[_0xf8f636('0x8')][_0xf8f636('0x25')](function(){const _0x5dc6c4=_0xf8f636;return _0x6cd1ff[_0x5dc6c4('0x22')]['removeColumn'](_0x2aaa36,_0x1fc6e5)['then'](function(){const _0x5faf36=_0x5dc6c4;logger[_0x5faf36('0x23')]('Removed\x20column\x20%s\x20from\x20%s',_0x1fc6e5,_0x2aaa36);})[_0x5dc6c4('0xb')](function(_0x6f0ee9){const _0x4d5683=_0x5dc6c4;logger['info'](util[_0x4d5683('0x19')](_0x6f0ee9,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x4b2061('0x1d')]=function(_0x581f39,_0x305aac,_0x35bf6c){const _0x2eb77f=_0x4b2061,_0x8aa26f=this;this[_0x2eb77f('0x8')]['enqueue'](function(){const _0x14106f=_0x2eb77f;return _0x8aa26f['queryInterface'][_0x14106f('0x1d')](_0x581f39,_0x305aac,_0x35bf6c)[_0x14106f('0xa')](function(){const _0xee35f2=_0x14106f;logger[_0xee35f2('0x23')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x305aac,_0x35bf6c,_0x581f39);})[_0x14106f('0xb')](function(_0x2fd57d){const _0x72f7bf=_0x14106f;logger[_0x72f7bf('0x23')](util[_0x72f7bf('0x19')](_0x2fd57d,{'showHidden':![],'depth':null}));});});},Migration[_0x4b2061('0x7')][_0x4b2061('0x1')]=function(_0x2ffe99){const _0x459b7b=_0x4b2061;this[_0x459b7b('0x8')][_0x459b7b('0x25')](function(){return _0x2ffe99();});},module['exports']={'up':function(_0x165a4f,_0x28ac3d){return new Promise(function(_0x38978f){const _0x3690bc=a959_0x31a8,_0x49082e=new Migration(_0x165a4f);_0x49082e[_0x3690bc('0x26')](_0x3690bc('0x2'),_0x3690bc('0xc'),{'type':_0x28ac3d['ENUM']('basic',_0x3690bc('0x20'),_0x3690bc('0x1a'),'SI','TI','GP')}),_0x49082e[_0x3690bc('0x15')](_0x3690bc('0x5')),_0x49082e[_0x3690bc('0x15')](_0x3690bc('0x12')),_0x49082e[_0x3690bc('0x15')](_0x3690bc('0x3')),_0x49082e[_0x3690bc('0x26')](_0x3690bc('0x2'),_0x3690bc('0xc'),{'type':_0x28ac3d[_0x3690bc('0x10')]('SI','TI','GP')}),_0x49082e[_0x3690bc('0x1e')](_0x3690bc('0x17'),_0x3690bc('0x16'),{'type':_0x28ac3d[_0x3690bc('0x21')]}),_0x49082e['final'](_0x38978f);});},'down':function(){}}; \ No newline at end of file +const a1121_0xd8f2=['final','tail','finally','changeColumn','exports','ENUM','renameColumn','basic','classic','queryInterface','then','cm_contacts','enqueue','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','../config/logger','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','join','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','stringify','telegram','query','addIndex','Changed\x20column\x20%s\x20in\x20table\x20%s','prototype','removeColumn','info','sequence','catch','removeIndex','UPDATE\x20sms_accounts\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20SET\x20smsMethod\x20=\x20\x27TI\x27\x20WHERE\x20smsMethod\x20=\x20\x27classic\x27','query\x20%s','addColumn','table\x20dropped\x20%s','smsMethod','removeIndex\x20%s\x20%s','util','sequelize','sms_accounts'];(function(_0x3dddd6,_0x1cf3a8){const _0xd8f23c=function(_0x4bcb09){while(--_0x4bcb09){_0x3dddd6['push'](_0x3dddd6['shift']());}};_0xd8f23c(++_0x1cf3a8);}(a1121_0xd8f2,0x1f0));const a1121_0x4bcb=function(_0x3dddd6,_0x1cf3a8){_0x3dddd6=_0x3dddd6-0x1ca;let _0xd8f23c=a1121_0xd8f2[_0x3dddd6];return _0xd8f23c;};const a1121_0x140e80=a1121_0x4bcb;'use strict';const util=require(a1121_0x140e80(0x1eb)),logger=require(a1121_0x140e80(0x1d6))('migration'),Sequence=function(){};Sequence[a1121_0x140e80(0x1df)][a1121_0x140e80(0x1d4)]=function(_0x267df1){const _0x51e183=a1121_0x140e80;this[_0x51e183(0x1ef)]=this[_0x51e183(0x1ef)]?this[_0x51e183(0x1ef)][_0x51e183(0x1ca)](_0x267df1):_0x267df1();};const Migration=function(_0x403442){const _0xb0a89c=a1121_0x140e80;this[_0xb0a89c(0x1d1)]=_0x403442,this['sequence']=new Sequence();};Migration['prototype']['changeColumn']=function(_0x1e15b1,_0x234dc3,_0x2c49fe){const _0x41206f=a1121_0x140e80,_0x37a3ef=this;this[_0x41206f(0x1e2)]['enqueue'](function(){const _0x5a9fcc=_0x41206f;return _0x37a3ef[_0x5a9fcc(0x1d1)][_0x5a9fcc(0x1cb)](_0x1e15b1,_0x234dc3,_0x2c49fe)[_0x5a9fcc(0x1d2)](function(){const _0x2638cc=_0x5a9fcc;logger[_0x2638cc(0x1e1)](_0x2638cc(0x1de),_0x234dc3,_0x1e15b1);})[_0x5a9fcc(0x1e3)](function(_0x57f176){const _0x575a8f=_0x5a9fcc;logger['info'](JSON[_0x575a8f(0x1da)](_0x57f176));});});},Migration[a1121_0x140e80(0x1df)]['addColumn']=function(_0x4eeb13,_0x5f529f,_0x5f1736){const _0x5b0de7=a1121_0x140e80,_0x49fad0=this;this['sequence'][_0x5b0de7(0x1d4)](function(){const _0x352878=_0x5b0de7;return _0x49fad0[_0x352878(0x1d1)][_0x352878(0x1e7)](_0x4eeb13,_0x5f529f,_0x5f1736)[_0x352878(0x1d2)](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x5f529f,_0x4eeb13);})['catch'](function(_0x4e9b93){const _0x35417a=_0x352878;logger['info'](JSON[_0x35417a(0x1da)](_0x4e9b93));});});},Migration[a1121_0x140e80(0x1df)]['dropTable']=function(_0x1cacbe){const _0x2f4fef=a1121_0x140e80,_0x591b0e=this;this[_0x2f4fef(0x1e2)]['enqueue'](function(){const _0xdb76d2=_0x2f4fef;return _0x591b0e[_0xdb76d2(0x1d1)]['dropTable'](_0x1cacbe,{'force':!![]})['then'](function(){const _0x3ba680=_0xdb76d2;logger[_0x3ba680(0x1e1)](_0x3ba680(0x1e8),_0x1cacbe);})[_0xdb76d2(0x1e3)](function(_0x4a3bd9){const _0x2a8f26=_0xdb76d2;logger['info'](JSON[_0x2a8f26(0x1da)](_0x4a3bd9));});});},Migration[a1121_0x140e80(0x1df)][a1121_0x140e80(0x1dd)]=function(_0x524689,_0x3542b1,_0x1eec17){const _0x42e923=a1121_0x140e80,_0x3baeab=this;this[_0x42e923(0x1e2)][_0x42e923(0x1d4)](function(){const _0x547989=_0x42e923;return _0x3baeab[_0x547989(0x1d1)][_0x547989(0x1dd)](_0x524689,_0x3542b1,{'indexName':_0x1eec17})[_0x547989(0x1d2)](function(){const _0x20c3f4=_0x547989;logger['info']('addIndex\x20%s\x20%s\x20%s',_0x524689,_0x3542b1[_0x20c3f4(0x1d8)](','),_0x1eec17);})[_0x547989(0x1e3)](function(_0x3ba78e){const _0x121314=_0x547989;logger[_0x121314(0x1e1)](JSON['stringify'](_0x3ba78e));});});},Migration['prototype'][a1121_0x140e80(0x1e4)]=function(_0x2d7cad,_0x59c237){const _0x23fd9f=a1121_0x140e80,_0x359f1e=this;this[_0x23fd9f(0x1e2)]['enqueue'](function(){const _0x3b7847=_0x23fd9f;return _0x359f1e[_0x3b7847(0x1d1)]['removeIndex'](_0x2d7cad,_0x59c237)[_0x3b7847(0x1d2)](function(){const _0x321e3a=_0x3b7847;logger['info'](_0x321e3a(0x1ea),_0x2d7cad,_0x59c237);})[_0x3b7847(0x1e3)](function(_0x5c3a84){const _0x32e3a0=_0x3b7847;logger[_0x32e3a0(0x1e1)](JSON[_0x32e3a0(0x1da)](_0x5c3a84));});});},Migration['prototype'][a1121_0x140e80(0x1dc)]=function(_0x13d6a6){const _0xd0aaff=a1121_0x140e80,_0x538653=this;this['sequence'][_0xd0aaff(0x1d4)](function(){const _0x1c4560=_0xd0aaff;return _0x538653[_0x1c4560(0x1d1)][_0x1c4560(0x1ec)][_0x1c4560(0x1dc)](_0x13d6a6)['then'](function(){const _0x319aee=_0x1c4560;logger[_0x319aee(0x1e1)](_0x319aee(0x1e6),_0x13d6a6);})[_0x1c4560(0x1e3)](function(_0x4061db){const _0x56e172=_0x1c4560;logger[_0x56e172(0x1e1)](JSON[_0x56e172(0x1da)](_0x4061db));});});},Migration['prototype'][a1121_0x140e80(0x1e0)]=function(_0x183f1d,_0x590b6d){const _0x2bf4b8=a1121_0x140e80,_0x12dee9=this;this[_0x2bf4b8(0x1e2)][_0x2bf4b8(0x1d4)](function(){const _0x30b102=_0x2bf4b8;return _0x12dee9['queryInterface']['removeColumn'](_0x183f1d,_0x590b6d)['then'](function(){const _0x440bbf=a1121_0x4bcb;logger[_0x440bbf(0x1e1)]('Removed\x20column\x20%s\x20from\x20%s',_0x590b6d,_0x183f1d);})[_0x30b102(0x1e3)](function(_0x2a7dfc){const _0x2a6c55=_0x30b102;logger[_0x2a6c55(0x1e1)](util['inspect'](_0x2a7dfc,{'showHidden':![],'depth':null}));});});},Migration[a1121_0x140e80(0x1df)]['renameColumn']=function(_0x26aaaf,_0x54b071,_0x14721f){const _0x1cfa6b=a1121_0x140e80,_0x39b7f9=this;this['sequence'][_0x1cfa6b(0x1d4)](function(){const _0x3f6fd3=_0x1cfa6b;return _0x39b7f9['queryInterface'][_0x3f6fd3(0x1ce)](_0x26aaaf,_0x54b071,_0x14721f)[_0x3f6fd3(0x1d2)](function(){const _0x1a3e1d=_0x3f6fd3;logger[_0x1a3e1d(0x1e1)](_0x1a3e1d(0x1d7),_0x54b071,_0x14721f,_0x26aaaf);})[_0x3f6fd3(0x1e3)](function(_0x242eba){const _0x441c4b=_0x3f6fd3;logger[_0x441c4b(0x1e1)](util['inspect'](_0x242eba,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1121_0x140e80(0x1ee)]=function(_0x279350){const _0x24e402=a1121_0x140e80;this[_0x24e402(0x1e2)]['enqueue'](function(){return _0x279350();});},module[a1121_0x140e80(0x1cc)]={'up':function(_0x37d6ec,_0x2cc0f9){return new Promise(function(_0x481a61){const _0xd14c73=a1121_0x4bcb,_0x2d547e=new Migration(_0x37d6ec);_0x2d547e[_0xd14c73(0x1cb)](_0xd14c73(0x1ed),_0xd14c73(0x1e9),{'type':_0x2cc0f9[_0xd14c73(0x1cd)](_0xd14c73(0x1cf),_0xd14c73(0x1d0),'classic+','SI','TI','GP')}),_0x2d547e[_0xd14c73(0x1dc)](_0xd14c73(0x1d9)),_0x2d547e[_0xd14c73(0x1dc)](_0xd14c73(0x1e5)),_0x2d547e[_0xd14c73(0x1dc)](_0xd14c73(0x1d5)),_0x2d547e['changeColumn'](_0xd14c73(0x1ed),'smsMethod',{'type':_0x2cc0f9['ENUM']('SI','TI','GP')}),_0x2d547e['addColumn'](_0xd14c73(0x1d3),_0xd14c73(0x1db),{'type':_0x2cc0f9['STRING']}),_0x2d547e[_0xd14c73(0x1ee)](_0x481a61);});},'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 9d25ac3..8ab91cd 100644 --- a/server/migrations/2.0.82.js +++ b/server/migrations/2.0.82.js @@ -1 +1 @@ -const a960_0x21ca=['info','STRING','prototype','type','changeColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','finally','addIndex','stringify','addIndex\x20%s\x20%s\x20%s','sms_accounts','tail','skebby','../config/logger','final','connectel','query\x20%s','query','queryInterface','clickatell','removeIndex','inspect','util','enqueue','exports','csc','then','renameColumn','clicksend','migration','removeColumn','Removed\x20column\x20%s\x20from\x20%s','sequence','dropTable','plivo','addColumn','table\x20dropped\x20%s','twilio','catch'];(function(_0x909f35,_0x21caf5){const _0x3566fd=function(_0x1e3ea1){while(--_0x1e3ea1){_0x909f35['push'](_0x909f35['shift']());}};_0x3566fd(++_0x21caf5);}(a960_0x21ca,0xab));const a960_0x3566=function(_0x909f35,_0x21caf5){_0x909f35=_0x909f35-0x0;let _0x3566fd=a960_0x21ca[_0x909f35];return _0x3566fd;};const _0x40e38e=a960_0x3566;'use strict';const util=require(_0x40e38e('0xc')),logger=require(_0x40e38e('0x3'))(_0x40e38e('0x13')),Sequence=function(){};Sequence['prototype']['enqueue']=function(_0x1e3ea1){const _0x5e5696=_0x40e38e;this[_0x5e5696('0x1')]=this[_0x5e5696('0x1')]?this[_0x5e5696('0x1')][_0x5e5696('0x24')](_0x1e3ea1):_0x1e3ea1();};const Migration=function(_0x15561b){const _0x5478b6=_0x40e38e;this[_0x5478b6('0x8')]=_0x15561b,this[_0x5478b6('0x16')]=new Sequence();};Migration[_0x40e38e('0x1f')][_0x40e38e('0x21')]=function(_0x4a8732,_0xf3618f,_0x1983f5){const _0x17af68=_0x40e38e,_0x31f222=this;this[_0x17af68('0x16')][_0x17af68('0xd')](function(){const _0x2e9d20=_0x17af68;return _0x31f222['queryInterface']['changeColumn'](_0x4a8732,_0xf3618f,_0x1983f5)[_0x2e9d20('0x10')](function(){const _0x4aa62b=_0x2e9d20;logger['info'](_0x4aa62b('0x23'),_0xf3618f,_0x4a8732);})[_0x2e9d20('0x1c')](function(_0x3eb5c3){const _0x3fbd3c=_0x2e9d20;logger['info'](JSON[_0x3fbd3c('0x26')](_0x3eb5c3));});});},Migration[_0x40e38e('0x1f')][_0x40e38e('0x19')]=function(_0x5d5f17,_0x3fc377,_0x5d100b){const _0x5a7c37=_0x40e38e,_0x594751=this;this[_0x5a7c37('0x16')][_0x5a7c37('0xd')](function(){const _0x3ff4b4=_0x5a7c37;return _0x594751[_0x3ff4b4('0x8')]['addColumn'](_0x5d5f17,_0x3fc377,_0x5d100b)['then'](function(){const _0x47fd90=_0x3ff4b4;logger[_0x47fd90('0x1d')]('Added\x20column\x20%s\x20to\x20%s',_0x3fc377,_0x5d5f17);})['catch'](function(_0x4aaa6b){const _0x3bae46=_0x3ff4b4;logger['info'](JSON[_0x3bae46('0x26')](_0x4aaa6b));});});},Migration['prototype'][_0x40e38e('0x17')]=function(_0x177b38){const _0x104fbe=_0x40e38e,_0xd446d2=this;this[_0x104fbe('0x16')][_0x104fbe('0xd')](function(){const _0x147e91=_0x104fbe;return _0xd446d2[_0x147e91('0x8')][_0x147e91('0x17')](_0x177b38,{'force':!![]})[_0x147e91('0x10')](function(){const _0x40f34c=_0x147e91;logger[_0x40f34c('0x1d')](_0x40f34c('0x1a'),_0x177b38);})[_0x147e91('0x1c')](function(_0x18165f){const _0x3f037f=_0x147e91;logger[_0x3f037f('0x1d')](JSON[_0x3f037f('0x26')](_0x18165f));});});},Migration[_0x40e38e('0x1f')][_0x40e38e('0x25')]=function(_0x1647f7,_0xb6b6b6,_0x775291){const _0x31ca1e=_0x40e38e,_0x21b22f=this;this[_0x31ca1e('0x16')][_0x31ca1e('0xd')](function(){const _0x32f63f=_0x31ca1e;return _0x21b22f[_0x32f63f('0x8')][_0x32f63f('0x25')](_0x1647f7,_0xb6b6b6,{'indexName':_0x775291})[_0x32f63f('0x10')](function(){const _0x316c19=_0x32f63f;logger[_0x316c19('0x1d')](_0x316c19('0x27'),_0x1647f7,_0xb6b6b6['join'](','),_0x775291);})[_0x32f63f('0x1c')](function(_0x40b92a){const _0x564439=_0x32f63f;logger[_0x564439('0x1d')](JSON[_0x564439('0x26')](_0x40b92a));});});},Migration[_0x40e38e('0x1f')][_0x40e38e('0xa')]=function(_0x5047cc,_0x20a9a0){const _0x136345=_0x40e38e,_0x3a65f2=this;this[_0x136345('0x16')][_0x136345('0xd')](function(){const _0x57f6ed=_0x136345;return _0x3a65f2['queryInterface'][_0x57f6ed('0xa')](_0x5047cc,_0x20a9a0)[_0x57f6ed('0x10')](function(){logger['info']('removeIndex\x20%s\x20%s',_0x5047cc,_0x20a9a0);})[_0x57f6ed('0x1c')](function(_0x42400e){const _0x4ee656=_0x57f6ed;logger[_0x4ee656('0x1d')](JSON['stringify'](_0x42400e));});});},Migration[_0x40e38e('0x1f')][_0x40e38e('0x7')]=function(_0x46015d){const _0x41d965=_0x40e38e,_0x303017=this;this[_0x41d965('0x16')][_0x41d965('0xd')](function(){const _0x4a7096=_0x41d965;return _0x303017[_0x4a7096('0x8')]['sequelize'][_0x4a7096('0x7')](_0x46015d)[_0x4a7096('0x10')](function(){const _0xa8a098=_0x4a7096;logger['info'](_0xa8a098('0x6'),_0x46015d);})[_0x4a7096('0x1c')](function(_0x2fc7b6){const _0x2d198d=_0x4a7096;logger[_0x2d198d('0x1d')](JSON[_0x2d198d('0x26')](_0x2fc7b6));});});},Migration[_0x40e38e('0x1f')][_0x40e38e('0x14')]=function(_0x49cce2,_0x49d0a7){const _0x2c9d0a=_0x40e38e,_0x385d59=this;this[_0x2c9d0a('0x16')][_0x2c9d0a('0xd')](function(){const _0x22e551=_0x2c9d0a;return _0x385d59[_0x22e551('0x8')]['removeColumn'](_0x49cce2,_0x49d0a7)[_0x22e551('0x10')](function(){const _0x57ed29=_0x22e551;logger['info'](_0x57ed29('0x15'),_0x49d0a7,_0x49cce2);})[_0x22e551('0x1c')](function(_0x3306b6){const _0x5c2f39=_0x22e551;logger[_0x5c2f39('0x1d')](util[_0x5c2f39('0xb')](_0x3306b6,{'showHidden':![],'depth':null}));});});},Migration[_0x40e38e('0x1f')]['renameColumn']=function(_0x2fa40a,_0x4c44f9,_0x40fe47){const _0x35fd2b=_0x40e38e,_0x41be14=this;this[_0x35fd2b('0x16')][_0x35fd2b('0xd')](function(){const _0x119fce=_0x35fd2b;return _0x41be14['queryInterface'][_0x119fce('0x11')](_0x2fa40a,_0x4c44f9,_0x40fe47)['then'](function(){const _0x2598a0=_0x119fce;logger[_0x2598a0('0x1d')](_0x2598a0('0x22'),_0x4c44f9,_0x40fe47,_0x2fa40a);})[_0x119fce('0x1c')](function(_0xcbc0bd){const _0x20e436=_0x119fce;logger[_0x20e436('0x1d')](util[_0x20e436('0xb')](_0xcbc0bd,{'showHidden':![],'depth':null}));});});},Migration[_0x40e38e('0x1f')][_0x40e38e('0x4')]=function(_0x1d352f){const _0x5f17e3=_0x40e38e;this['sequence'][_0x5f17e3('0xd')](function(){return _0x1d352f();});},module[_0x40e38e('0xe')]={'up':function(_0x346c0b,_0x118534){return new Promise(function(_0xeb97a){const _0x5d6c1b=a960_0x3566,_0x4be224=new Migration(_0x346c0b);_0x4be224[_0x5d6c1b('0x19')](_0x5d6c1b('0x0'),'apiKey',{'type':_0x118534[_0x5d6c1b('0x1e')]}),_0x4be224['changeColumn'](_0x5d6c1b('0x0'),_0x5d6c1b('0x20'),{'type':_0x118534['ENUM'](_0x5d6c1b('0x1b'),_0x5d6c1b('0x2'),_0x5d6c1b('0x5'),_0x5d6c1b('0x12'),_0x5d6c1b('0x18'),_0x5d6c1b('0x9'),_0x5d6c1b('0xf'))}),_0x4be224[_0x5d6c1b('0x4')](_0xeb97a);});},'down':function(){}}; \ No newline at end of file +const a1122_0x38e2=['clickatell','sms_accounts','addColumn','prototype','inspect','sequelize','removeIndex\x20%s\x20%s','sequence','queryInterface','final','catch','query\x20%s','removeColumn','then','../config/logger','tail','finally','util','query','skebby','removeIndex','Changed\x20column\x20%s\x20in\x20table\x20%s','apiKey','csc','ENUM','changeColumn','stringify','join','addIndex','dropTable','table\x20dropped\x20%s','renameColumn','clicksend','twilio','info','enqueue'];(function(_0x3a03fe,_0x41ce9a){const _0x38e25b=function(_0x2f454e){while(--_0x2f454e){_0x3a03fe['push'](_0x3a03fe['shift']());}};_0x38e25b(++_0x41ce9a);}(a1122_0x38e2,0x100));const a1122_0x2f45=function(_0x3a03fe,_0x41ce9a){_0x3a03fe=_0x3a03fe-0xdf;let _0x38e25b=a1122_0x38e2[_0x3a03fe];return _0x38e25b;};const a1122_0x348880=a1122_0x2f45;'use strict';const util=require(a1122_0x348880(0xec)),logger=require(a1122_0x348880(0xe9))('migration'),Sequence=function(){};Sequence[a1122_0x348880(0x102)][a1122_0x348880(0xfe)]=function(_0x9b5122){const _0x4f0094=a1122_0x348880;this[_0x4f0094(0xea)]=this[_0x4f0094(0xea)]?this[_0x4f0094(0xea)][_0x4f0094(0xeb)](_0x9b5122):_0x9b5122();};const Migration=function(_0x308250){const _0xb0972e=a1122_0x348880;this[_0xb0972e(0xe3)]=_0x308250,this[_0xb0972e(0xe2)]=new Sequence();};Migration['prototype'][a1122_0x348880(0xf4)]=function(_0x1fde19,_0x7e564c,_0x761916){const _0x3725f4=a1122_0x348880,_0x5f570e=this;this[_0x3725f4(0xe2)][_0x3725f4(0xfe)](function(){const _0x58416c=_0x3725f4;return _0x5f570e[_0x58416c(0xe3)][_0x58416c(0xf4)](_0x1fde19,_0x7e564c,_0x761916)[_0x58416c(0xe8)](function(){const _0x19691f=_0x58416c;logger[_0x19691f(0xfd)](_0x19691f(0xf0),_0x7e564c,_0x1fde19);})[_0x58416c(0xe5)](function(_0x42547b){const _0x372f33=_0x58416c;logger['info'](JSON[_0x372f33(0xf5)](_0x42547b));});});},Migration['prototype']['addColumn']=function(_0x5ebdb6,_0x294807,_0xc83749){const _0x22d1a5=a1122_0x348880,_0x42e5a3=this;this[_0x22d1a5(0xe2)]['enqueue'](function(){const _0x2c1abb=_0x22d1a5;return _0x42e5a3[_0x2c1abb(0xe3)][_0x2c1abb(0x101)](_0x5ebdb6,_0x294807,_0xc83749)[_0x2c1abb(0xe8)](function(){const _0x48b8da=_0x2c1abb;logger[_0x48b8da(0xfd)]('Added\x20column\x20%s\x20to\x20%s',_0x294807,_0x5ebdb6);})['catch'](function(_0x2f2e67){const _0x474bd8=_0x2c1abb;logger[_0x474bd8(0xfd)](JSON[_0x474bd8(0xf5)](_0x2f2e67));});});},Migration[a1122_0x348880(0x102)][a1122_0x348880(0xf8)]=function(_0x399a18){const _0x956545=this;this['sequence']['enqueue'](function(){const _0x3a584f=a1122_0x2f45;return _0x956545[_0x3a584f(0xe3)]['dropTable'](_0x399a18,{'force':!![]})['then'](function(){const _0x446de1=_0x3a584f;logger['info'](_0x446de1(0xf9),_0x399a18);})[_0x3a584f(0xe5)](function(_0x5579ea){const _0x23964e=_0x3a584f;logger[_0x23964e(0xfd)](JSON[_0x23964e(0xf5)](_0x5579ea));});});},Migration['prototype']['addIndex']=function(_0xf78f61,_0x4f9cb8,_0x54eb0d){const _0x74ae03=this;this['sequence']['enqueue'](function(){const _0x378e8a=a1122_0x2f45;return _0x74ae03[_0x378e8a(0xe3)][_0x378e8a(0xf7)](_0xf78f61,_0x4f9cb8,{'indexName':_0x54eb0d})['then'](function(){const _0x32ed37=_0x378e8a;logger['info']('addIndex\x20%s\x20%s\x20%s',_0xf78f61,_0x4f9cb8[_0x32ed37(0xf6)](','),_0x54eb0d);})[_0x378e8a(0xe5)](function(_0x34a1ba){const _0x38bf4e=_0x378e8a;logger[_0x38bf4e(0xfd)](JSON[_0x38bf4e(0xf5)](_0x34a1ba));});});},Migration[a1122_0x348880(0x102)]['removeIndex']=function(_0x11a3eb,_0x4f3cbc){const _0x492469=a1122_0x348880,_0x5f14e5=this;this[_0x492469(0xe2)]['enqueue'](function(){const _0x2eb75b=_0x492469;return _0x5f14e5['queryInterface'][_0x2eb75b(0xef)](_0x11a3eb,_0x4f3cbc)[_0x2eb75b(0xe8)](function(){const _0x4b7101=_0x2eb75b;logger['info'](_0x4b7101(0xe1),_0x11a3eb,_0x4f3cbc);})[_0x2eb75b(0xe5)](function(_0x47d328){const _0x4acfb7=_0x2eb75b;logger['info'](JSON[_0x4acfb7(0xf5)](_0x47d328));});});},Migration[a1122_0x348880(0x102)][a1122_0x348880(0xed)]=function(_0x1da26f){const _0x16e272=a1122_0x348880,_0x5e0dd3=this;this[_0x16e272(0xe2)][_0x16e272(0xfe)](function(){const _0x35587d=_0x16e272;return _0x5e0dd3[_0x35587d(0xe3)][_0x35587d(0xe0)]['query'](_0x1da26f)['then'](function(){const _0xe3b26f=_0x35587d;logger[_0xe3b26f(0xfd)](_0xe3b26f(0xe6),_0x1da26f);})[_0x35587d(0xe5)](function(_0x4bcd46){logger['info'](JSON['stringify'](_0x4bcd46));});});},Migration['prototype'][a1122_0x348880(0xe7)]=function(_0x15a0f2,_0x5585fa){const _0x512672=a1122_0x348880,_0x4e2985=this;this[_0x512672(0xe2)]['enqueue'](function(){const _0x4822d4=_0x512672;return _0x4e2985['queryInterface'][_0x4822d4(0xe7)](_0x15a0f2,_0x5585fa)['then'](function(){const _0xa0bd43=_0x4822d4;logger[_0xa0bd43(0xfd)]('Removed\x20column\x20%s\x20from\x20%s',_0x5585fa,_0x15a0f2);})[_0x4822d4(0xe5)](function(_0x26de63){const _0x5ba4df=_0x4822d4;logger[_0x5ba4df(0xfd)](util[_0x5ba4df(0xdf)](_0x26de63,{'showHidden':![],'depth':null}));});});},Migration[a1122_0x348880(0x102)][a1122_0x348880(0xfa)]=function(_0x54568d,_0x43fa97,_0x56cf3d){const _0x6b9ed3=a1122_0x348880,_0x2bd758=this;this[_0x6b9ed3(0xe2)][_0x6b9ed3(0xfe)](function(){const _0x1c3002=_0x6b9ed3;return _0x2bd758[_0x1c3002(0xe3)][_0x1c3002(0xfa)](_0x54568d,_0x43fa97,_0x56cf3d)[_0x1c3002(0xe8)](function(){const _0x1f967c=_0x1c3002;logger[_0x1f967c(0xfd)]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x43fa97,_0x56cf3d,_0x54568d);})[_0x1c3002(0xe5)](function(_0x542706){const _0x12c8cc=_0x1c3002;logger[_0x12c8cc(0xfd)](util[_0x12c8cc(0xdf)](_0x542706,{'showHidden':![],'depth':null}));});});},Migration[a1122_0x348880(0x102)][a1122_0x348880(0xe4)]=function(_0x19532c){const _0x19fb8d=a1122_0x348880;this['sequence'][_0x19fb8d(0xfe)](function(){return _0x19532c();});},module['exports']={'up':function(_0x3b176a,_0x2e3be0){return new Promise(function(_0x259da2){const _0x42301a=a1122_0x2f45,_0x254e7e=new Migration(_0x3b176a);_0x254e7e[_0x42301a(0x101)](_0x42301a(0x100),_0x42301a(0xf1),{'type':_0x2e3be0['STRING']}),_0x254e7e[_0x42301a(0xf4)](_0x42301a(0x100),'type',{'type':_0x2e3be0[_0x42301a(0xf3)](_0x42301a(0xfc),_0x42301a(0xee),'connectel',_0x42301a(0xfb),'plivo',_0x42301a(0xff),_0x42301a(0xf2))}),_0x254e7e[_0x42301a(0xe4)](_0x259da2);});},'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 0541243..8b59537 100644 --- a/server/migrations/2.0.83.js +++ b/server/migrations/2.0.83.js @@ -1 +1 @@ -const a961_0x4d13=['table\x20dropped\x20%s','addIndex','migration','type','inspect','sequelize','query\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','finally','join','clickatell','removeIndex','dropTable','queryInterface','csc','sms_accounts','INTEGER','removeIndex\x20%s\x20%s','baseUrl','enqueue','plivo','prototype','sequence','then','report_queue','infobip','Added\x20column\x20%s\x20to\x20%s','renameColumn','exports','query','fb_data','removeColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','tail','skebby','OwnerId','addIndex\x20%s\x20%s\x20%s','info','changeColumn','stringify','clicksend','STRING','util','ALTER\x20TABLE\x20cm_hopper\x20ADD\x20CONSTRAINT\x20cm_hopper_ibfk_6\x20FOREIGN\x20KEY\x20(OwnerId)\x20REFERENCES\x20users(id)\x20ON\x20UPDATE\x20CASCADE\x20ON\x20DELETE\x20SET\x20NULL','catch','twilio','addColumn','ENUM','Removed\x20column\x20%s\x20from\x20%s','connectel'];(function(_0xe4ed52,_0x4d135a){const _0x154fbb=function(_0x300b93){while(--_0x300b93){_0xe4ed52['push'](_0xe4ed52['shift']());}};_0x154fbb(++_0x4d135a);}(a961_0x4d13,0x1d6));const a961_0x154f=function(_0xe4ed52,_0x4d135a){_0xe4ed52=_0xe4ed52-0x0;let _0x154fbb=a961_0x4d13[_0xe4ed52];return _0x154fbb;};const _0x39fbeb=a961_0x154f;'use strict';const util=require(_0x39fbeb('0x16')),logger=require('../config/logger')(_0x39fbeb('0x20')),Sequence=function(){};Sequence[_0x39fbeb('0x1')][_0x39fbeb('0x31')]=function(_0x300b93){const _0x290f6c=_0x39fbeb;this[_0x290f6c('0xd')]=this[_0x290f6c('0xd')]?this[_0x290f6c('0xd')][_0x290f6c('0x26')](_0x300b93):_0x300b93();};const Migration=function(_0x146a50){const _0x464ea2=_0x39fbeb;this[_0x464ea2('0x2b')]=_0x146a50,this['sequence']=new Sequence();};Migration[_0x39fbeb('0x1')][_0x39fbeb('0x12')]=function(_0x27cb00,_0x136fc6,_0xf9763){const _0x60eb5b=_0x39fbeb,_0x1db34a=this;this['sequence'][_0x60eb5b('0x31')](function(){const _0x47b44a=_0x60eb5b;return _0x1db34a[_0x47b44a('0x2b')][_0x47b44a('0x12')](_0x27cb00,_0x136fc6,_0xf9763)[_0x47b44a('0x3')](function(){const _0x3ec215=_0x47b44a;logger['info'](_0x3ec215('0x25'),_0x136fc6,_0x27cb00);})['catch'](function(_0x9ff977){const _0x53e2f6=_0x47b44a;logger[_0x53e2f6('0x11')](JSON[_0x53e2f6('0x13')](_0x9ff977));});});},Migration[_0x39fbeb('0x1')][_0x39fbeb('0x1a')]=function(_0x1c3baf,_0x2dba61,_0x571fa0){const _0x2c70e0=_0x39fbeb,_0x13c671=this;this[_0x2c70e0('0x2')][_0x2c70e0('0x31')](function(){const _0x1e0aa6=_0x2c70e0;return _0x13c671[_0x1e0aa6('0x2b')][_0x1e0aa6('0x1a')](_0x1c3baf,_0x2dba61,_0x571fa0)[_0x1e0aa6('0x3')](function(){const _0x2e7595=_0x1e0aa6;logger[_0x2e7595('0x11')](_0x2e7595('0x6'),_0x2dba61,_0x1c3baf);})[_0x1e0aa6('0x18')](function(_0x46454e){const _0x3b51e7=_0x1e0aa6;logger[_0x3b51e7('0x11')](JSON[_0x3b51e7('0x13')](_0x46454e));});});},Migration[_0x39fbeb('0x1')][_0x39fbeb('0x2a')]=function(_0x46b164){const _0x2b0b42=_0x39fbeb,_0x2758d2=this;this[_0x2b0b42('0x2')]['enqueue'](function(){const _0x3ab34a=_0x2b0b42;return _0x2758d2[_0x3ab34a('0x2b')][_0x3ab34a('0x2a')](_0x46b164,{'force':!![]})['then'](function(){const _0x2a2e52=_0x3ab34a;logger[_0x2a2e52('0x11')](_0x2a2e52('0x1e'),_0x46b164);})[_0x3ab34a('0x18')](function(_0x44ff03){const _0x4065f9=_0x3ab34a;logger[_0x4065f9('0x11')](JSON['stringify'](_0x44ff03));});});},Migration[_0x39fbeb('0x1')]['addIndex']=function(_0x36b9cb,_0x521032,_0x13cfd4){const _0x496059=_0x39fbeb,_0x52d8f6=this;this['sequence'][_0x496059('0x31')](function(){const _0x555f20=_0x496059;return _0x52d8f6[_0x555f20('0x2b')][_0x555f20('0x1f')](_0x36b9cb,_0x521032,{'indexName':_0x13cfd4})['then'](function(){const _0x116c53=_0x555f20;logger['info'](_0x116c53('0x10'),_0x36b9cb,_0x521032[_0x116c53('0x27')](','),_0x13cfd4);})[_0x555f20('0x18')](function(_0xdf5fe4){const _0x54a031=_0x555f20;logger[_0x54a031('0x11')](JSON['stringify'](_0xdf5fe4));});});},Migration[_0x39fbeb('0x1')][_0x39fbeb('0x29')]=function(_0x5a966b,_0x17f7ab){const _0x4b66cb=_0x39fbeb,_0x30ce1b=this;this[_0x4b66cb('0x2')]['enqueue'](function(){const _0x396fc0=_0x4b66cb;return _0x30ce1b[_0x396fc0('0x2b')][_0x396fc0('0x29')](_0x5a966b,_0x17f7ab)['then'](function(){const _0x45a894=_0x396fc0;logger[_0x45a894('0x11')](_0x45a894('0x2f'),_0x5a966b,_0x17f7ab);})[_0x396fc0('0x18')](function(_0x18f974){const _0x5ecdea=_0x396fc0;logger['info'](JSON[_0x5ecdea('0x13')](_0x18f974));});});},Migration[_0x39fbeb('0x1')][_0x39fbeb('0x9')]=function(_0x36aa28){const _0x1bdb7b=_0x39fbeb,_0x4b5e48=this;this[_0x1bdb7b('0x2')][_0x1bdb7b('0x31')](function(){const _0x3eafe0=_0x1bdb7b;return _0x4b5e48[_0x3eafe0('0x2b')][_0x3eafe0('0x23')][_0x3eafe0('0x9')](_0x36aa28)[_0x3eafe0('0x3')](function(){const _0x9e1c38=_0x3eafe0;logger[_0x9e1c38('0x11')](_0x9e1c38('0x24'),_0x36aa28);})['catch'](function(_0x41d7b3){const _0x3270f0=_0x3eafe0;logger['info'](JSON[_0x3270f0('0x13')](_0x41d7b3));});});},Migration['prototype']['removeColumn']=function(_0x1efbac,_0x1de410){const _0x21ac58=_0x39fbeb,_0x4d85e8=this;this['sequence'][_0x21ac58('0x31')](function(){const _0xa75f59=_0x21ac58;return _0x4d85e8[_0xa75f59('0x2b')][_0xa75f59('0xb')](_0x1efbac,_0x1de410)[_0xa75f59('0x3')](function(){const _0x2c9b28=_0xa75f59;logger[_0x2c9b28('0x11')](_0x2c9b28('0x1c'),_0x1de410,_0x1efbac);})['catch'](function(_0x5b69b3){const _0x136af4=_0xa75f59;logger[_0x136af4('0x11')](util[_0x136af4('0x22')](_0x5b69b3,{'showHidden':![],'depth':null}));});});},Migration[_0x39fbeb('0x1')][_0x39fbeb('0x7')]=function(_0xa3f05c,_0x1d3aaf,_0x22ddbf){const _0x1520d7=_0x39fbeb,_0x3a5296=this;this[_0x1520d7('0x2')][_0x1520d7('0x31')](function(){const _0x1464e0=_0x1520d7;return _0x3a5296['queryInterface'][_0x1464e0('0x7')](_0xa3f05c,_0x1d3aaf,_0x22ddbf)['then'](function(){const _0x4062eb=_0x1464e0;logger[_0x4062eb('0x11')](_0x4062eb('0xc'),_0x1d3aaf,_0x22ddbf,_0xa3f05c);})[_0x1464e0('0x18')](function(_0x36201d){const _0x166496=_0x1464e0;logger[_0x166496('0x11')](util['inspect'](_0x36201d,{'showHidden':![],'depth':null}));});});},Migration[_0x39fbeb('0x1')]['final']=function(_0x418ec1){this['sequence']['enqueue'](function(){return _0x418ec1();});},module[_0x39fbeb('0x8')]={'up':function(_0x1dcaa1,_0x2d59d1){return new Promise(function(_0x9def39){const _0x329d4f=a961_0x154f,_0x1b4abd=new Migration(_0x1dcaa1);_0x1b4abd['addColumn']('cm_hopper',_0x329d4f('0xf'),{'type':_0x2d59d1[_0x329d4f('0x2e')](0xb)}),_0x1b4abd[_0x329d4f('0x9')](_0x329d4f('0x17')),_0x1b4abd[_0x329d4f('0x1a')]('cm_contacts',_0x329d4f('0xa'),{'type':_0x2d59d1[_0x329d4f('0x15')]}),_0x1b4abd['changeColumn']('sms_accounts',_0x329d4f('0x21'),{'type':_0x2d59d1[_0x329d4f('0x1b')](_0x329d4f('0x19'),_0x329d4f('0xe'),_0x329d4f('0x1d'),_0x329d4f('0x14'),_0x329d4f('0x0'),_0x329d4f('0x28'),_0x329d4f('0x2c'),_0x329d4f('0x5'))}),_0x1b4abd[_0x329d4f('0x1a')](_0x329d4f('0x2d'),_0x329d4f('0x30'),{'type':_0x2d59d1[_0x329d4f('0x15')]}),_0x1b4abd[_0x329d4f('0x1a')](_0x329d4f('0x4'),'queuecallerenterreason',{'type':_0x2d59d1['INTEGER'],'defaultValue':0x0}),_0x1b4abd['final'](_0x9def39);});},'down':function(){}}; \ No newline at end of file +const a1123_0xf7b9=['ENUM','ALTER\x20TABLE\x20cm_hopper\x20ADD\x20CONSTRAINT\x20cm_hopper_ibfk_6\x20FOREIGN\x20KEY\x20(OwnerId)\x20REFERENCES\x20users(id)\x20ON\x20UPDATE\x20CASCADE\x20ON\x20DELETE\x20SET\x20NULL','inspect','final','removeColumn','connectel','stringify','clicksend','dropTable','query','renameColumn','removeIndex\x20%s\x20%s','enqueue','type','addColumn','table\x20dropped\x20%s','removeIndex','clickatell','fb_data','prototype','../config/logger','queryInterface','INTEGER','info','tail','Added\x20column\x20%s\x20to\x20%s','changeColumn','query\x20%s','sequence','cm_contacts','exports','addIndex\x20%s\x20%s\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','catch','addIndex','Removed\x20column\x20%s\x20from\x20%s','baseUrl','migration','OwnerId','sms_accounts','finally','twilio','STRING','sequelize','csc','plivo','Changed\x20column\x20%s\x20in\x20table\x20%s','util','then','cm_hopper','join'];(function(_0x226173,_0x5a3188){const _0xf7b97b=function(_0x59ca2d){while(--_0x59ca2d){_0x226173['push'](_0x226173['shift']());}};_0xf7b97b(++_0x5a3188);}(a1123_0xf7b9,0x1a7));const a1123_0x59ca=function(_0x226173,_0x5a3188){_0x226173=_0x226173-0x13f;let _0xf7b97b=a1123_0xf7b9[_0x226173];return _0xf7b97b;};const a1123_0x2125cd=a1123_0x59ca;'use strict';const util=require(a1123_0x2125cd(0x15f)),logger=require(a1123_0x2125cd(0x144))(a1123_0x2125cd(0x155)),Sequence=function(){};Sequence[a1123_0x2125cd(0x143)][a1123_0x2125cd(0x16f)]=function(_0x3422e1){const _0x2f0140=a1123_0x2125cd;this[_0x2f0140(0x148)]=this[_0x2f0140(0x148)]?this['tail'][_0x2f0140(0x158)](_0x3422e1):_0x3422e1();};const Migration=function(_0x5c3906){const _0x3c2e80=a1123_0x2125cd;this[_0x3c2e80(0x145)]=_0x5c3906,this[_0x3c2e80(0x14c)]=new Sequence();};Migration[a1123_0x2125cd(0x143)][a1123_0x2125cd(0x14a)]=function(_0x4dc71f,_0x450b8e,_0x5a2977){const _0x4e8f66=a1123_0x2125cd,_0x26c450=this;this[_0x4e8f66(0x14c)][_0x4e8f66(0x16f)](function(){const _0x6cd612=_0x4e8f66;return _0x26c450['queryInterface'][_0x6cd612(0x14a)](_0x4dc71f,_0x450b8e,_0x5a2977)[_0x6cd612(0x160)](function(){const _0x4dfcd7=_0x6cd612;logger['info'](_0x4dfcd7(0x15e),_0x450b8e,_0x4dc71f);})[_0x6cd612(0x151)](function(_0x324406){logger['info'](JSON['stringify'](_0x324406));});});},Migration[a1123_0x2125cd(0x143)][a1123_0x2125cd(0x171)]=function(_0xadf471,_0x5d06a7,_0x3e1118){const _0x84ff4f=a1123_0x2125cd,_0x135d28=this;this[_0x84ff4f(0x14c)][_0x84ff4f(0x16f)](function(){const _0x1bfcbf=_0x84ff4f;return _0x135d28[_0x1bfcbf(0x145)][_0x1bfcbf(0x171)](_0xadf471,_0x5d06a7,_0x3e1118)[_0x1bfcbf(0x160)](function(){const _0x40a299=_0x1bfcbf;logger[_0x40a299(0x147)](_0x40a299(0x149),_0x5d06a7,_0xadf471);})['catch'](function(_0x6657dc){const _0x462370=_0x1bfcbf;logger[_0x462370(0x147)](JSON[_0x462370(0x169)](_0x6657dc));});});},Migration[a1123_0x2125cd(0x143)][a1123_0x2125cd(0x16b)]=function(_0x3e3901){const _0x38dc1a=a1123_0x2125cd,_0x1c6a24=this;this[_0x38dc1a(0x14c)]['enqueue'](function(){const _0x2a08c6=_0x38dc1a;return _0x1c6a24[_0x2a08c6(0x145)][_0x2a08c6(0x16b)](_0x3e3901,{'force':!![]})[_0x2a08c6(0x160)](function(){const _0x3970b6=_0x2a08c6;logger[_0x3970b6(0x147)](_0x3970b6(0x13f),_0x3e3901);})['catch'](function(_0x46afea){const _0x510341=_0x2a08c6;logger['info'](JSON[_0x510341(0x169)](_0x46afea));});});},Migration[a1123_0x2125cd(0x143)][a1123_0x2125cd(0x152)]=function(_0x2984e5,_0x4a04d4,_0x2ce2a2){const _0x56cffa=a1123_0x2125cd,_0x5a4620=this;this[_0x56cffa(0x14c)][_0x56cffa(0x16f)](function(){const _0x47a8bc=_0x56cffa;return _0x5a4620[_0x47a8bc(0x145)][_0x47a8bc(0x152)](_0x2984e5,_0x4a04d4,{'indexName':_0x2ce2a2})['then'](function(){const _0x41f644=_0x47a8bc;logger[_0x41f644(0x147)](_0x41f644(0x14f),_0x2984e5,_0x4a04d4[_0x41f644(0x162)](','),_0x2ce2a2);})[_0x47a8bc(0x151)](function(_0x24d50b){const _0x35ef61=_0x47a8bc;logger[_0x35ef61(0x147)](JSON['stringify'](_0x24d50b));});});},Migration[a1123_0x2125cd(0x143)][a1123_0x2125cd(0x140)]=function(_0x3b3d0b,_0x2cbdcd){const _0x441f79=a1123_0x2125cd,_0x32d900=this;this[_0x441f79(0x14c)][_0x441f79(0x16f)](function(){const _0x4a22dd=_0x441f79;return _0x32d900['queryInterface'][_0x4a22dd(0x140)](_0x3b3d0b,_0x2cbdcd)[_0x4a22dd(0x160)](function(){const _0x472df2=_0x4a22dd;logger['info'](_0x472df2(0x16e),_0x3b3d0b,_0x2cbdcd);})[_0x4a22dd(0x151)](function(_0x179dec){const _0x3cab58=_0x4a22dd;logger[_0x3cab58(0x147)](JSON[_0x3cab58(0x169)](_0x179dec));});});},Migration['prototype'][a1123_0x2125cd(0x16c)]=function(_0x399b8e){const _0x1aa624=a1123_0x2125cd,_0x99f67c=this;this[_0x1aa624(0x14c)][_0x1aa624(0x16f)](function(){const _0x6be0cd=_0x1aa624;return _0x99f67c[_0x6be0cd(0x145)][_0x6be0cd(0x15b)][_0x6be0cd(0x16c)](_0x399b8e)[_0x6be0cd(0x160)](function(){const _0x30aec4=_0x6be0cd;logger[_0x30aec4(0x147)](_0x30aec4(0x14b),_0x399b8e);})[_0x6be0cd(0x151)](function(_0x5dd30b){const _0x49bc7d=_0x6be0cd;logger[_0x49bc7d(0x147)](JSON[_0x49bc7d(0x169)](_0x5dd30b));});});},Migration['prototype']['removeColumn']=function(_0x407756,_0x5158bb){const _0xbdd728=this;this['sequence']['enqueue'](function(){const _0x34bea6=a1123_0x59ca;return _0xbdd728[_0x34bea6(0x145)][_0x34bea6(0x167)](_0x407756,_0x5158bb)[_0x34bea6(0x160)](function(){const _0x598a5c=_0x34bea6;logger['info'](_0x598a5c(0x153),_0x5158bb,_0x407756);})[_0x34bea6(0x151)](function(_0x2ff8e1){const _0x1f9336=_0x34bea6;logger[_0x1f9336(0x147)](util[_0x1f9336(0x165)](_0x2ff8e1,{'showHidden':![],'depth':null}));});});},Migration[a1123_0x2125cd(0x143)][a1123_0x2125cd(0x16d)]=function(_0x1ff60b,_0x35f724,_0x4e0a13){const _0x31111b=this;this['sequence']['enqueue'](function(){const _0x3a6718=a1123_0x59ca;return _0x31111b[_0x3a6718(0x145)]['renameColumn'](_0x1ff60b,_0x35f724,_0x4e0a13)[_0x3a6718(0x160)](function(){const _0x27d009=_0x3a6718;logger[_0x27d009(0x147)](_0x27d009(0x150),_0x35f724,_0x4e0a13,_0x1ff60b);})[_0x3a6718(0x151)](function(_0x4ac0f7){const _0x283856=_0x3a6718;logger['info'](util[_0x283856(0x165)](_0x4ac0f7,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1123_0x2125cd(0x166)]=function(_0x9ab61c){const _0x5debea=a1123_0x2125cd;this[_0x5debea(0x14c)][_0x5debea(0x16f)](function(){return _0x9ab61c();});},module[a1123_0x2125cd(0x14e)]={'up':function(_0x4f9348,_0x40b2d4){return new Promise(function(_0x568545){const _0x2b3e6b=a1123_0x59ca,_0x3d9557=new Migration(_0x4f9348);_0x3d9557[_0x2b3e6b(0x171)](_0x2b3e6b(0x161),_0x2b3e6b(0x156),{'type':_0x40b2d4[_0x2b3e6b(0x146)](0xb)}),_0x3d9557['query'](_0x2b3e6b(0x164)),_0x3d9557['addColumn'](_0x2b3e6b(0x14d),_0x2b3e6b(0x142),{'type':_0x40b2d4[_0x2b3e6b(0x15a)]}),_0x3d9557[_0x2b3e6b(0x14a)]('sms_accounts',_0x2b3e6b(0x170),{'type':_0x40b2d4[_0x2b3e6b(0x163)](_0x2b3e6b(0x159),'skebby',_0x2b3e6b(0x168),_0x2b3e6b(0x16a),_0x2b3e6b(0x15d),_0x2b3e6b(0x141),_0x2b3e6b(0x15c),'infobip')}),_0x3d9557[_0x2b3e6b(0x171)](_0x2b3e6b(0x157),_0x2b3e6b(0x154),{'type':_0x40b2d4['STRING']}),_0x3d9557[_0x2b3e6b(0x171)]('report_queue','queuecallerenterreason',{'type':_0x40b2d4['INTEGER'],'defaultValue':0x0}),_0x3d9557[_0x2b3e6b(0x166)](_0x568545);});},'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 d21209a..3beef62 100644 --- a/server/migrations/2.0.84.js +++ b/server/migrations/2.0.84.js @@ -1 +1 @@ -const a962_0xc866=['addColumn','queryInterface','info','then','exports','Changed\x20column\x20%s\x20in\x20table\x20%s','migration','removeIndex\x20%s\x20%s','renameColumn','inspect','sequence','removeIndex','final','finally','addIndex','changeColumn','dropTable','Added\x20column\x20%s\x20to\x20%s','tail','stringify','catch','query','table\x20dropped\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','query\x20%s','util','enqueue','../config/logger','prototype','addIndex\x20%s\x20%s\x20%s','removeColumn','join'];(function(_0x33d69c,_0xc866c7){const _0x3c11d0=function(_0x691ceb){while(--_0x691ceb){_0x33d69c['push'](_0x33d69c['shift']());}};_0x3c11d0(++_0xc866c7);}(a962_0xc866,0x1e4));const a962_0x3c11=function(_0x33d69c,_0xc866c7){_0x33d69c=_0x33d69c-0x0;let _0x3c11d0=a962_0xc866[_0x33d69c];return _0x3c11d0;};const _0xcb30e2=a962_0x3c11;'use strict';const util=require(_0xcb30e2('0x15')),logger=require(_0xcb30e2('0x17'))(_0xcb30e2('0x2')),Sequence=function(){};Sequence[_0xcb30e2('0x18')][_0xcb30e2('0x16')]=function(_0x691ceb){const _0x34bfdd=_0xcb30e2;this[_0x34bfdd('0xe')]=this['tail']?this[_0x34bfdd('0xe')][_0x34bfdd('0x9')](_0x691ceb):_0x691ceb();};const Migration=function(_0x1a44f8){const _0x2fc4ef=_0xcb30e2;this[_0x2fc4ef('0x1d')]=_0x1a44f8,this[_0x2fc4ef('0x6')]=new Sequence();};Migration[_0xcb30e2('0x18')][_0xcb30e2('0xb')]=function(_0x1dbc64,_0x37202d,_0x214d5d){const _0x1546f6=_0xcb30e2,_0x9a9412=this;this[_0x1546f6('0x6')][_0x1546f6('0x16')](function(){const _0x47ff70=_0x1546f6;return _0x9a9412['queryInterface'][_0x47ff70('0xb')](_0x1dbc64,_0x37202d,_0x214d5d)[_0x47ff70('0x1f')](function(){const _0xd58917=_0x47ff70;logger[_0xd58917('0x1e')](_0xd58917('0x1'),_0x37202d,_0x1dbc64);})[_0x47ff70('0x10')](function(_0x2e5d34){logger['info'](JSON['stringify'](_0x2e5d34));});});},Migration[_0xcb30e2('0x18')]['addColumn']=function(_0xcfee76,_0x3e7227,_0x185804){const _0x4b0c6b=_0xcb30e2,_0x523bdf=this;this['sequence'][_0x4b0c6b('0x16')](function(){const _0x26bda1=_0x4b0c6b;return _0x523bdf[_0x26bda1('0x1d')][_0x26bda1('0x1c')](_0xcfee76,_0x3e7227,_0x185804)[_0x26bda1('0x1f')](function(){const _0x564351=_0x26bda1;logger[_0x564351('0x1e')](_0x564351('0xd'),_0x3e7227,_0xcfee76);})['catch'](function(_0x252b36){const _0x423d58=_0x26bda1;logger[_0x423d58('0x1e')](JSON['stringify'](_0x252b36));});});},Migration[_0xcb30e2('0x18')][_0xcb30e2('0xc')]=function(_0x153f9c){const _0x44c995=_0xcb30e2,_0x31b5f1=this;this[_0x44c995('0x6')][_0x44c995('0x16')](function(){const _0xcdb1a6=_0x44c995;return _0x31b5f1[_0xcdb1a6('0x1d')]['dropTable'](_0x153f9c,{'force':!![]})[_0xcdb1a6('0x1f')](function(){const _0x2a866d=_0xcdb1a6;logger[_0x2a866d('0x1e')](_0x2a866d('0x12'),_0x153f9c);})['catch'](function(_0x4ff272){const _0x53f1bc=_0xcdb1a6;logger[_0x53f1bc('0x1e')](JSON[_0x53f1bc('0xf')](_0x4ff272));});});},Migration[_0xcb30e2('0x18')][_0xcb30e2('0xa')]=function(_0x1c2220,_0x206da8,_0x335617){const _0x4587e1=_0xcb30e2,_0x385b54=this;this[_0x4587e1('0x6')][_0x4587e1('0x16')](function(){const _0xce1c69=_0x4587e1;return _0x385b54[_0xce1c69('0x1d')][_0xce1c69('0xa')](_0x1c2220,_0x206da8,{'indexName':_0x335617})[_0xce1c69('0x1f')](function(){const _0x1f4527=_0xce1c69;logger[_0x1f4527('0x1e')](_0x1f4527('0x19'),_0x1c2220,_0x206da8[_0x1f4527('0x1b')](','),_0x335617);})[_0xce1c69('0x10')](function(_0x48539d){const _0x57ebd6=_0xce1c69;logger[_0x57ebd6('0x1e')](JSON['stringify'](_0x48539d));});});},Migration[_0xcb30e2('0x18')][_0xcb30e2('0x7')]=function(_0x15cd62,_0x381095){const _0x50967a=_0xcb30e2,_0x567303=this;this[_0x50967a('0x6')][_0x50967a('0x16')](function(){const _0x2e8e28=_0x50967a;return _0x567303['queryInterface'][_0x2e8e28('0x7')](_0x15cd62,_0x381095)[_0x2e8e28('0x1f')](function(){const _0x2274dd=_0x2e8e28;logger['info'](_0x2274dd('0x3'),_0x15cd62,_0x381095);})[_0x2e8e28('0x10')](function(_0x58b22a){const _0x3ad6b1=_0x2e8e28;logger[_0x3ad6b1('0x1e')](JSON[_0x3ad6b1('0xf')](_0x58b22a));});});},Migration['prototype'][_0xcb30e2('0x11')]=function(_0x1964eb){const _0x3dc46f=_0xcb30e2,_0x1edec1=this;this[_0x3dc46f('0x6')][_0x3dc46f('0x16')](function(){const _0x3ca629=_0x3dc46f;return _0x1edec1[_0x3ca629('0x1d')]['sequelize'][_0x3ca629('0x11')](_0x1964eb)[_0x3ca629('0x1f')](function(){const _0xa64274=_0x3ca629;logger[_0xa64274('0x1e')](_0xa64274('0x14'),_0x1964eb);})[_0x3ca629('0x10')](function(_0x55c70c){const _0x200c35=_0x3ca629;logger[_0x200c35('0x1e')](JSON['stringify'](_0x55c70c));});});},Migration[_0xcb30e2('0x18')][_0xcb30e2('0x1a')]=function(_0x3c512c,_0x831649){const _0x47cbd5=_0xcb30e2,_0x2b5bc6=this;this['sequence'][_0x47cbd5('0x16')](function(){const _0x3ed7c6=_0x47cbd5;return _0x2b5bc6[_0x3ed7c6('0x1d')][_0x3ed7c6('0x1a')](_0x3c512c,_0x831649)['then'](function(){logger['info']('Removed\x20column\x20%s\x20from\x20%s',_0x831649,_0x3c512c);})['catch'](function(_0xd6bf35){const _0x27f8af=_0x3ed7c6;logger[_0x27f8af('0x1e')](util[_0x27f8af('0x5')](_0xd6bf35,{'showHidden':![],'depth':null}));});});},Migration[_0xcb30e2('0x18')][_0xcb30e2('0x4')]=function(_0x47099b,_0x4e61ff,_0x317a85){const _0x1b51b4=_0xcb30e2,_0xfe67e2=this;this[_0x1b51b4('0x6')][_0x1b51b4('0x16')](function(){const _0x5ccd5f=_0x1b51b4;return _0xfe67e2['queryInterface']['renameColumn'](_0x47099b,_0x4e61ff,_0x317a85)['then'](function(){const _0x228b49=a962_0x3c11;logger[_0x228b49('0x1e')](_0x228b49('0x13'),_0x4e61ff,_0x317a85,_0x47099b);})[_0x5ccd5f('0x10')](function(_0x278320){const _0x865ef8=_0x5ccd5f;logger[_0x865ef8('0x1e')](util[_0x865ef8('0x5')](_0x278320,{'showHidden':![],'depth':null}));});});},Migration[_0xcb30e2('0x18')][_0xcb30e2('0x8')]=function(_0x34dbcb){const _0xd20a26=_0xcb30e2;this[_0xd20a26('0x6')][_0xd20a26('0x16')](function(){return _0x34dbcb();});},module[_0xcb30e2('0x0')]={'up':function(_0x38dac7){return new Promise(function(_0x199171){const _0x295e0d=a962_0x3c11,_0x8a9b82=new Migration(_0x38dac7);_0x8a9b82[_0x295e0d('0x8')](_0x199171);});},'down':function(){}}; \ No newline at end of file +const a1124_0x219e=['util','tail','inspect','then','addIndex','addColumn','renameColumn','enqueue','sequence','final','addIndex\x20%s\x20%s\x20%s','migration','query','query\x20%s','Removed\x20column\x20%s\x20from\x20%s','sequelize','table\x20dropped\x20%s','removeColumn','catch','../config/logger','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','queryInterface','removeIndex\x20%s\x20%s','join','dropTable','changeColumn','prototype','removeIndex','Added\x20column\x20%s\x20to\x20%s','exports','stringify','info'];(function(_0x6f3e5c,_0x2d8fa1){const _0x219e90=function(_0xc190f4){while(--_0xc190f4){_0x6f3e5c['push'](_0x6f3e5c['shift']());}};_0x219e90(++_0x2d8fa1);}(a1124_0x219e,0x161));const a1124_0xc190=function(_0x6f3e5c,_0x2d8fa1){_0x6f3e5c=_0x6f3e5c-0x10e;let _0x219e90=a1124_0x219e[_0x6f3e5c];return _0x219e90;};const a1124_0x4c9e13=a1124_0xc190;'use strict';const util=require(a1124_0x4c9e13(0x12d)),logger=require(a1124_0x4c9e13(0x120))(a1124_0x4c9e13(0x118)),Sequence=function(){};Sequence['prototype'][a1124_0x4c9e13(0x114)]=function(_0x147dac){const _0x2dd842=a1124_0x4c9e13;this[_0x2dd842(0x10e)]=this[_0x2dd842(0x10e)]?this[_0x2dd842(0x10e)]['finally'](_0x147dac):_0x147dac();};const Migration=function(_0x53164c){const _0x5d9bd1=a1124_0x4c9e13;this['queryInterface']=_0x53164c,this[_0x5d9bd1(0x115)]=new Sequence();};Migration[a1124_0x4c9e13(0x127)][a1124_0x4c9e13(0x126)]=function(_0x2867b6,_0x2bc25b,_0x46f25c){const _0x107802=a1124_0x4c9e13,_0x35420c=this;this[_0x107802(0x115)][_0x107802(0x114)](function(){const _0x2374b3=_0x107802;return _0x35420c[_0x2374b3(0x122)]['changeColumn'](_0x2867b6,_0x2bc25b,_0x46f25c)[_0x2374b3(0x110)](function(){const _0x29b5e7=_0x2374b3;logger[_0x29b5e7(0x12c)]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x2bc25b,_0x2867b6);})[_0x2374b3(0x11f)](function(_0x2398e2){const _0x49a21c=_0x2374b3;logger[_0x49a21c(0x12c)](JSON[_0x49a21c(0x12b)](_0x2398e2));});});},Migration[a1124_0x4c9e13(0x127)][a1124_0x4c9e13(0x112)]=function(_0x378d67,_0x1c3e67,_0xa12dba){const _0x80e3e3=a1124_0x4c9e13,_0x1db413=this;this[_0x80e3e3(0x115)][_0x80e3e3(0x114)](function(){const _0x4cceaa=_0x80e3e3;return _0x1db413[_0x4cceaa(0x122)]['addColumn'](_0x378d67,_0x1c3e67,_0xa12dba)[_0x4cceaa(0x110)](function(){const _0x1c6e15=_0x4cceaa;logger[_0x1c6e15(0x12c)](_0x1c6e15(0x129),_0x1c3e67,_0x378d67);})[_0x4cceaa(0x11f)](function(_0x1cf33d){const _0x36e868=_0x4cceaa;logger[_0x36e868(0x12c)](JSON['stringify'](_0x1cf33d));});});},Migration[a1124_0x4c9e13(0x127)]['dropTable']=function(_0x4b1611){const _0x597b87=a1124_0x4c9e13,_0x22b9ae=this;this[_0x597b87(0x115)][_0x597b87(0x114)](function(){const _0x329acb=_0x597b87;return _0x22b9ae[_0x329acb(0x122)][_0x329acb(0x125)](_0x4b1611,{'force':!![]})[_0x329acb(0x110)](function(){const _0x55a6a9=_0x329acb;logger[_0x55a6a9(0x12c)](_0x55a6a9(0x11d),_0x4b1611);})[_0x329acb(0x11f)](function(_0x2a1444){logger['info'](JSON['stringify'](_0x2a1444));});});},Migration[a1124_0x4c9e13(0x127)]['addIndex']=function(_0x150db4,_0x9f1b72,_0x3a5309){const _0x3d8453=a1124_0x4c9e13,_0x11b0f5=this;this[_0x3d8453(0x115)][_0x3d8453(0x114)](function(){const _0x33ea32=_0x3d8453;return _0x11b0f5[_0x33ea32(0x122)][_0x33ea32(0x111)](_0x150db4,_0x9f1b72,{'indexName':_0x3a5309})['then'](function(){const _0x87644f=_0x33ea32;logger[_0x87644f(0x12c)](_0x87644f(0x117),_0x150db4,_0x9f1b72[_0x87644f(0x124)](','),_0x3a5309);})[_0x33ea32(0x11f)](function(_0x181962){const _0x58de52=_0x33ea32;logger[_0x58de52(0x12c)](JSON[_0x58de52(0x12b)](_0x181962));});});},Migration['prototype'][a1124_0x4c9e13(0x128)]=function(_0x92cfd0,_0x49df75){const _0x2582c9=a1124_0x4c9e13,_0x53a31c=this;this[_0x2582c9(0x115)]['enqueue'](function(){const _0x164b28=_0x2582c9;return _0x53a31c[_0x164b28(0x122)][_0x164b28(0x128)](_0x92cfd0,_0x49df75)[_0x164b28(0x110)](function(){const _0x203f73=_0x164b28;logger[_0x203f73(0x12c)](_0x203f73(0x123),_0x92cfd0,_0x49df75);})[_0x164b28(0x11f)](function(_0x12d466){const _0x2465d8=_0x164b28;logger['info'](JSON[_0x2465d8(0x12b)](_0x12d466));});});},Migration['prototype'][a1124_0x4c9e13(0x119)]=function(_0xc222d3){const _0x5d00ff=a1124_0x4c9e13,_0x3a446e=this;this[_0x5d00ff(0x115)][_0x5d00ff(0x114)](function(){const _0x3e4873=_0x5d00ff;return _0x3a446e['queryInterface'][_0x3e4873(0x11c)]['query'](_0xc222d3)[_0x3e4873(0x110)](function(){const _0xaa0aa3=_0x3e4873;logger[_0xaa0aa3(0x12c)](_0xaa0aa3(0x11a),_0xc222d3);})['catch'](function(_0x37d30f){const _0x34a259=_0x3e4873;logger[_0x34a259(0x12c)](JSON['stringify'](_0x37d30f));});});},Migration[a1124_0x4c9e13(0x127)][a1124_0x4c9e13(0x11e)]=function(_0x1f590f,_0x80a530){const _0x17cf87=a1124_0x4c9e13,_0x32d7d9=this;this[_0x17cf87(0x115)][_0x17cf87(0x114)](function(){const _0x332021=_0x17cf87;return _0x32d7d9['queryInterface']['removeColumn'](_0x1f590f,_0x80a530)[_0x332021(0x110)](function(){const _0x173db7=_0x332021;logger[_0x173db7(0x12c)](_0x173db7(0x11b),_0x80a530,_0x1f590f);})[_0x332021(0x11f)](function(_0x3e1177){const _0x247a76=_0x332021;logger[_0x247a76(0x12c)](util[_0x247a76(0x10f)](_0x3e1177,{'showHidden':![],'depth':null}));});});},Migration[a1124_0x4c9e13(0x127)][a1124_0x4c9e13(0x113)]=function(_0x37b956,_0x31011b,_0x22d588){const _0x3a61f7=this;this['sequence']['enqueue'](function(){const _0x220545=a1124_0xc190;return _0x3a61f7[_0x220545(0x122)][_0x220545(0x113)](_0x37b956,_0x31011b,_0x22d588)[_0x220545(0x110)](function(){const _0x1bf2f3=_0x220545;logger[_0x1bf2f3(0x12c)](_0x1bf2f3(0x121),_0x31011b,_0x22d588,_0x37b956);})[_0x220545(0x11f)](function(_0x2f7477){const _0xc3a70b=_0x220545;logger[_0xc3a70b(0x12c)](util[_0xc3a70b(0x10f)](_0x2f7477,{'showHidden':![],'depth':null}));});});},Migration[a1124_0x4c9e13(0x127)][a1124_0x4c9e13(0x116)]=function(_0x11b231){const _0x5b5e9d=a1124_0x4c9e13;this[_0x5b5e9d(0x115)][_0x5b5e9d(0x114)](function(){return _0x11b231();});},module[a1124_0x4c9e13(0x12a)]={'up':function(_0x2d2b9b){return new Promise(function(_0x5f09d8){const _0x1453c6=a1124_0xc190,_0x3b520d=new Migration(_0x2d2b9b);_0x3b520d[_0x1453c6(0x116)](_0x5f09d8);});},'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 0529e31..5443c2f 100644 --- a/server/migrations/2.1.0.js +++ b/server/migrations/2.1.0.js @@ -1 +1 @@ -const a963_0x22b0=['\x20\x20\x20\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','INSERT\x20INTO\x20tmpCustomResources','\x20\x20\x20\x20type\x20varchar(255)\x20not\x20null,','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20in\x20(801,\x20802,\x20810)\x20THEN\x20\x27Openchannel\x27','DELETE\x20FROM\x20tmpNormalizedResources','\x20\x20CROSS\x20JOIN\x20(SELECT\x20@cnt\x20:=\x200)\x20as\x20dummy\x20LIMIT\x201)),\x20\x27red\x27,\x20now(),\x20now()','\x20\x20\x20\x20userId\x20int(11)\x20not\x20null','INSERT\x20INTO\x20tmpResources','\x20\x20\x20\x20\x20\x20permissions\x20text\x20not\x20null,','DROP\x20TABLE\x20IF\x20EXISTS\x20tmpNormalizedUsers;','\x20\x20INNER\x20JOIN\x20user_has_fax_queues\x20u\x20ON\x20u.UserId\x20=\x20x.userId','\x20\x20WHERE\x20role\x20=\x20\x27user\x27\x20and\x20permissions\x20is\x20not\x20null\x20and\x20permissions\x20<>\x20\x27\x27','\x20\x20\x20\x20enabled\x20tinyint\x20not\x20null,','\x20\x20\x20\x20userId\x20text,','UPDATE\x20tmpCustomResources','\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\x20SELECT\x20\x27\x27,\x20insertedId,\x20name,\x20sectionId,\x20null','\x20\x20SELECT\x20x.sectionId,\x20u.MailAccountId,\x20x.userId','DROP\x20TABLE\x20IF\x20EXISTS\x20tmpNormalizedResources;','\x20\x20`crudPermissions`\x20varchar(255)\x20DEFAULT\x20NULL,','INTEGER','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20);','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20810\x20THEN\x20\x27Realtime\x27','\x20\x20\x20\x20\x20\x20CASE','\x20\x20SET\x20sectionId\x20=\x201003\x20WHERE\x20sectionId\x20>=\x20100000;','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20in\x20(1501,\x201502,\x201510)\x20THEN\x20\x27MotionDialer\x27','\x20\x20\x20\x20\x20\x20\x20\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\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\x20FROM\x20tmpCustomResources;','\x20\x20SET\x20u.permissions\x20=\x20t.permissions','DROP\x20TABLE\x20IF\x20EXISTS\x20tmpPermissions;','CREATE\x20TABLE\x20tally\x20(','\x20\x20SELECT\x20x.sectionId,\x20u.ChatWebsiteId,\x20x.userId','\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\x20SELECT\x20userId,\x20permissions,\x20null','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(SELECT\x20GROUP_CONCAT(userId\x20ORDER\x20BY\x20userId\x20ASC)\x20AS\x20users','\x20\x20\x20\x20\x20\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\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\x20WHEN\x20x.sectionId\x20=\x20801\x20THEN\x20COALESCE((SELECT\x20name\x20FROM\x20openchannel_queues\x20WHERE\x20id\x20=\x20x.resourceId),\x27DELETE_MIGRATION\x27)','\x20\x20WHERE\x20t1.name\x20=\x20t2.name\x20AND\x20t1.userProfileId\x20=\x20t2.userProfileId\x20AND\x20t1.sectionId\x20>\x20t2.sectionId;','\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\x20SELECT\x20GROUP_CONCAT(id),\x20permissions,\x20null','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHERE\x20POSITION(\x27,\x27\x20in\x20r.userIds)\x20>\x200','\x20\x20\x20\x20insertedId\x20int(11),','final','analytics_extracted_reports','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\x20WHEN\x20sectionId\x20=\x201100\x20THEN\x20\x27DELETE\x27','util','sequelize','\x20DROP\x20TABLE\x20IF\x20EXISTS\x20tally;','\x20\x20s.sectionId\x20permission,','\x20\x20WHERE\x20x.sectionId\x20=\x20602;','\x20\x20\x20\x20\x20\x20userId\x20text\x20not\x20null,','addIndex','\x20\x20`enabled`\x20tinyint(1)\x20DEFAULT\x20NULL,','UPDATE\x20tmpSections','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20name\x20=\x20\x27CustomDashboards\x27\x20THEN\x20(sectionId\x20-\x2099999)','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20>=\x20100000\x20THEN\x20\x27CustomDashboards\x27','\x20\x20userId\x20int(11)','INSERT\x20INTO\x20tmpNormalizedResources','\x20\x20FROM\x20tmpGroupedPermissions','CREATE\x20TABLE\x20tmpSingleProfiles','ON\x20UPDATE\x20CASCADE','finally','CREATE\x20TABLE\x20tmpCustomResources','\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\x20\x20\x20\x20\x20\x20\x20\x20WHERE\x20position(\x27,\x27\x20in\x20b.users)\x20=\x200))','VALUES\x20(\x27Default\x27,\x20\x27red\x27,\x20NULL,\x20NOW(),\x20NOW());','\x20\x20UNION','\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','CREATE\x20TABLE\x20`user_profiles`\x20(','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20801\x20THEN\x20\x27OpenchannelQueues\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)','TRUNCATE\x20TABLE\x20tmpPermissions;','\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\x20SUBSTRING_INDEX(SUBSTRING_INDEX(r.resourceId,\x20\x27,\x27,\x20tally.n),\x20\x27,\x27,\x20-1)\x20resourceId,','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\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=\x201003\x20THEN\x20\x27CustomDashboards\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','\x20\x20);','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20408\x20THEN\x20\x27VoiceRecordings\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\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\x20WHEN\x20sectionId\x20=\x20603\x20THEN\x20\x27MailSubstatuses\x27','\x20\x20SELECT\x20CONCAT(\x27Profile_\x27,\x20(SELECT\x20(@cnt\x20:=\x20@cnt\x20+\x201)\x20AS\x20rowNumber','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20200\x20THEN\x20\x27DELETE\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20404\x20THEN\x20\x27InternalRoutes\x27','\x20\x20WHERE\x20x.sectionId\x20=\x20902;','\x20\x20INNER\x20JOIN\x20user_has_chat_queues\x20u\x20ON\x20u.UserId\x20=\x20x.userId','\x20\x20FROM\x20tmpNormalizedSections','\x20\x20sectionId\x20int(11)\x20not\x20null,','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20900\x20THEN\x20\x27DELETE\x27','UPDATE\x20tmpNormalizedResources\x20x','\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`autoAssociation`\x20tinyint(1)\x20DEFAULT\x20NULL,','\x20\x20`userProfileId`\x20int(11)\x20DEFAULT\x20NULL,','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20>=\x20100000\x20THEN\x20\x27Tools\x27','\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\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201600\x20THEN\x20\x27Help\x27','join','\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=\x20405\x20THEN\x20\x27Contexts\x27','\x20\x20INNER\x20JOIN\x20user_has_mail_queues\x20u\x20ON\x20u.UserId\x20=\x20x.userId','\x20\x20ORDER\x20BY\x20userId;','\x20\x20category\x20=\x20(SELECT','\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=\x201300\x20THEN\x20\x27DELETE\x27','\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\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\x20WHEN\x20sectionId\x20in\x20(501,\x20502,\x20510)\x20THEN\x20\x27Chat\x27','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\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHERE\x20position(\x27,\x27\x20in\x20b.users)\x20=\x200))','\x20\x20\x20\x20\x20\x20\x20\x20FROM\x20tally','\x20\x20`updatedAt`\x20datetime\x20NOT\x20NULL,','UPDATE\x20tmpFinalProfiles','\x20\x20SET\x20insertedId\x20=\x20(SELECT','\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','migration','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20303\x20THEN\x20\x27Contacts\x27','\x20\x20ORDER\x20BY\x20n)\x20AS\x20split;','\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\x20\x20CASE','\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','query','\x20\x20\x20\x20SUBSTRING_INDEX(SUBSTRING_INDEX(t.userIds,\x20\x27,\x27,\x20tally.n),\x20\x27,\x27,\x20-1)\x20userId,','\x20\x20FROM\x20tmpSections\x20s','INSERT\x20INTO\x20tmpNormalizedSections','\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\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=\x20502\x20THEN\x20\x27ChatWebsites\x27',')\x20ENGINE=InnoDB\x20DEFAULT\x20CHARSET=utf8;','table\x20dropped\x20%s','INSERT\x20INTO\x20tmpPermissions','CREATE\x20TABLE\x20`user_profile_has_resources`\x20(','\x20\x20WHERE\x20split.userId\x20IN\x20(SELECT\x20*\x20FROM','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20GROUP\x20BY\x20resourceId,\x20sectionId','queryInterface','\x20\x20\x20\x20t.permissions\x20permissions','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201007\x20THEN\x20\x27Sounds\x27','\x20\x20UNIQUE\x20KEY\x20`name`\x20(`name`)','INSERT\x20INTO\x20tmpSingleProfiles','\x20\x20\x20\x20userId\x20text','\x20\x20SELECT\x20*\x20FROM\x20tmpSharedProfiles','enqueue','\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','stringify','reportType','changeColumn','INSERT\x20INTO\x20tmpGroupedPermissions','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20710\x20THEN\x20\x27Realtime\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201701\x20THEN\x20\x27Projects\x27','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20in\x20(601,\x20602,\x20603,\x20610)\x20THEN\x20\x27Mail\x27',',(SELECT\x200\x20AS\x20N\x20UNION\x20ALL\x20SELECT\x201\x20UNION\x20ALL\x20SELECT\x202\x20UNION\x20ALL\x20SELECT\x203\x20UNION\x20ALL\x20SELECT\x204\x20UNION\x20ALL\x20SELECT\x205\x20UNION\x20ALL\x20SELECT\x206\x20UNION\x20ALL\x20SELECT\x207\x20UNION\x20ALL\x20SELECT\x208\x20UNION\x20ALL\x20SELECT\x209)\x20e','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20403\x20THEN\x20\x27OutboundRoutes\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20FROM\x20user_profile_has_sections\x20x','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201601\x20THEN\x20\x27DELETE\x27','\x20\x20INNER\x20JOIN\x20user_has_mail_accounts\x20u\x20ON\x20u.UserId\x20=\x20x.userId','DELETE\x20FROM\x20tmpSections','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20FROM\x20tmpNormalizedUsers','\x20\x20KEY\x20`userProfileId`\x20(`userProfileId`),','\x20\x20INNER\x20JOIN\x20user_has_fax_accounts\x20u\x20ON\x20u.UserId\x20=\x20x.userId','DROP\x20TABLE\x20IF\x20EXISTS\x20tmpFinalProfiles;','\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=\x201510\x20THEN\x20\x27Realtime\x27','\x20\x20\x20\x20sectionId\x20int(11)\x20not\x20null,','then','\x20\x20\x20\x20\x20\x20\x20\x20r.insertedSectionId\x20insertedSectionId,','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20CASE','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201700\x20THEN\x20\x27DELETE\x27','\x20\x20\x20\x20\x20\x20\x20\x20r.sectionId\x20sectionId','sequence','\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)','ADD\x20CONSTRAINT\x20`users_ibfk_1`\x20','\x20\x20WHERE\x20u.id\x20=\x20t.userId;','\x20\x20SELECT\x20name,\x20resourceId,\x20type,\x20now(),\x20now(),\x20insertedSectionId','info','\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\x20ELSE\x20\x27\x27','UPDATE\x20users\x20u,\x20tmpFinalProfiles\x20f','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201200\x20THEN\x20\x27DELETE\x27','CREATE\x20TABLE\x20tmpResources','\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=\x201002\x20THEN\x20\x27Dispositions\x27','renameColumn','\x20\x20\x20\x20resourceId\x20int(11)\x20not\x20null,','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20CASE','UPDATE\x20tmpCustomResources\x20r,\x20tmpSections\x20s','\x20\x20WHERE\x20userId\x20NOT\x20IN\x20(SELECT\x20split.userId','\x20\x20\x20\x20\x20\x20\x20\x20SUBSTRING_INDEX(fp.userId,\x20\x27,\x27,\x201)\x20userId','UPDATE\x20tmpSections\x20s','\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\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\x20SELECT\x20\x27\x27,\x20resourceId,\x20type,\x20insertedSectionId,\x20sectionId','\x20\x20`id`\x20int(11)\x20NOT\x20NULL\x20AUTO_INCREMENT,','CREATE\x20TABLE\x20tmpNormalizedPermissions','\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\x20SELECT\x20x.sectionId,\x20u.MailQueueId,\x20x.userId','\x20\x20FROM\x20users','\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\x20FROM\x20(SELECT','\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=\x201400\x20THEN\x20\x27Settings\x27','\x20\x20SET\x20insertedId\x20=\x20(SELECT\x20id','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20100\x20THEN\x20\x27Dashboards\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ORDER\x20BY\x20users)\x20b','\x20\x20WHERE\x20x.sectionId\x20=\x201103;','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','\x20\x20`category`\x20varchar(255)\x20NOT\x20NULL,','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\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=\x201202\x20THEN\x20\x27ExtractedReports\x27','\x20\x20CROSS\x20JOIN\x20(SELECT\x20@cnt\x20:=\x201)\x20as\x20dummy\x20LIMIT\x201)','\x20\x20KEY\x20`sectionId`\x20(`sectionId`),','\x20\x20\x20\x20\x20\x20\x20\x20SUBSTRING_INDEX(SUBSTRING_INDEX(fp.permissions,\x20\x27,\x27,\x20tally.n),\x20\x27,\x27,\x20-1)\x20permission,','users','dropTable','UPDATE\x20users\x20u,\x20tmpNormalizedPermissions\x20t','\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','\x20\x20WHERE\x20x.sectionId\x20=\x20601;','\x20\x20`description`\x20varchar(255)\x20DEFAULT\x20NULL,','\x20\x20WHERE\x20x.sectionId\x20=\x20501;','\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\x20SELECT\x20cr.resourceId,\x20name,\x20s.insertedId,\x20s.sectionId','catch','FOREIGN\x20KEY\x20(`userProfileId`)\x20','\x20\x20GROUP\x20BY\x20permissions','\x20\x20SELECT\x20x.sectionId,\x20u.OpenchannelQueueId,\x20x.userId','\x20\x20`crudPermissions`\x20varchar(255)\x20NOT\x20NULL\x20DEFAULT\x20\x27r\x27,','Changed\x20column\x20%s\x20in\x20table\x20%s','\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\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=\x201004\x20THEN\x20\x27Intervals\x27','\x20\x20SELECT\x20x.sectionId,\x20u.SquareProjectId,\x20x.userId','\x20\x20SELECT\x20name,\x20category,\x20sectionId,\x20enabled,\x20autoAssociation,\x20\x27red\x27,\x20now(),\x20now(),\x20userProfileId','\x20\x20`type`\x20varchar(255)\x20NOT\x20NULL,','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20in\x20(1101,\x201102,\x201103)\x20THEN\x20\x27CallySquare\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20101\x20THEN\x20\x27DELETE\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201000\x20THEN\x20\x27DELETE\x27','\x20\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\x20\x20\x20\x20\x20\x20\x20\x20\x20ORDER\x20BY\x20n)\x20AS\x20split','\x20\x20GROUP\x20BY\x20userId;','\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%s','DROP\x20TABLE\x20IF\x20EXISTS\x20tmpGroupedPermissions;','SELECT\x20NULL\x20FROM','\x20\x20SELECT\x20GROUP_CONCAT(userId),\x20permissions,\x20null','Added\x20column\x20%s\x20to\x20%s','\x20\x20SET\x20name\x20=\x20(SELECT','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20610\x20THEN\x20\x27Realtime\x27','\x20\x20PRIMARY\x20KEY\x20(`id`),','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201400\x20THEN\x20\x27Settings\x27','\x20\x20WHERE\x20name\x20=\x20\x27DELETE_MIGRATION\x27;','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201600\x20THEN\x20\x27Help\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20301\x20THEN\x20\x27Lists\x27','\x20\x20WHERE\x20name\x20=\x20\x27DELETE\x27;','\x20\x20SET\x20r.sectionId\x20=\x20s.insertedId','\x20\x20\x20\x20\x20\x20END','\x20\x20FROM\x20tally\x20t\x20INNER\x20JOIN\x20tmpNormalizedSections\x20s\x20ON\x20CHAR_LENGTH(s.userId)\x20-\x20CHAR_LENGTH(REPLACE(s.userId,\x20\x27,\x27,\x20\x27\x27))\x20>=\x20t.n-1','\x20\x20WHERE\x20r.name\x20=\x20s.name\x20AND\x20r.userProfileId\x20=\x20s.userProfileId;','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20END','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20in\x20(1001,\x201002,\x201003,\x201004,\x201005,\x201006,\x201007,\x201008,\x201009,\x201010,\x201011,\x201012)\x20THEN\x20\x27Tools\x27','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20in\x20(701,\x20702,\x20710)\x20THEN\x20\x27Sms\x27','CREATE\x20TABLE\x20tmpNormalizedSections','\x20\x20SELECT\x20x.sectionId,\x20u.ChatQueueId,\x20x.userId','DROP\x20TABLE\x20IF\x20EXISTS\x20tmpSections;','\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=\x20407\x20THEN\x20\x27MusicOnHolds\x27','DROP\x20TABLE\x20IF\x20EXISTS\x20tmpNormalizedSections;','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20410\x20THEN\x20\x27VoicePrefixes\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20FROM\x20tally\x20t','\x20\x20(','\x20\x20SELECT\x20DISTINCT\x20permission,\x20userId,\x200','removeColumn','\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\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=\x201301\x20THEN\x20\x27ZendeskAccounts\x27','INSERT\x20INTO\x20user_profiles\x20(name,\x20crudPermissions,\x20createdAt,\x20updatedAt)','\x20\x20SELECT\x20x.sectionId,\x20u.VoiceQueueId,\x20x.userId','\x20\x20INNER\x20JOIN\x20user_has_openchannel_accounts\x20u\x20ON\x20u.UserId\x20=\x20x.userId','\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\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20600\x20THEN\x20\x27DELETE\x27','\x20\x20FROM\x20tmpFinalProfiles\x20t','\x20\x20FROM\x20user_profiles\x20u','prototype','\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\x20WHEN\x20x.sectionId\x20=\x20501\x20THEN\x20COALESCE((SELECT\x20name\x20FROM\x20chat_queues\x20WHERE\x20id\x20=\x20x.resourceId),\x27DELETE_MIGRATION\x27)','\x20\x20SELECT\x20*\x20FROM\x20tmpSingleProfiles;','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201302\x20THEN\x20\x27SalesforceAccounts\x27','\x20\x20`name`\x20varchar(255)\x20NOT\x20NULL,','\x20\x20END','inspect','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201010\x20THEN\x20\x27Triggers\x27','\x20\x20FROM\x20tmpFinalProfiles;','STRING','\x20\x20SET\x20autoAssociation\x20=\x201\x20WHERE\x20sectionId\x20=\x20100;','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\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\x20WHEN\x20sectionId\x20in\x20(202,\x20203,\x20204)\x20THEN\x20\x27Staff\x27','DROP\x20TABLE\x20IF\x20EXISTS\x20tmpResources;','\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\x20\x20\x20\x20\x20\x20\x20GROUP\x20BY\x20resourceId,\x20sectionId','\x20\x20FROM\x20tmpNormalizedResources;','\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','DROP\x20TABLE\x20IF\x20EXISTS\x20tmpSingleProfiles;','CREATE\x20TABLE\x20tmpSharedProfiles','INSERT\x20INTO\x20tmpExtractedResources','INSERT\x20INTO\x20tmpNormalizedPermissions','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20FROM\x20tmpNormalizedUsers','\x20\x20SET\x20u.userProfileId\x20=\x201','\x20\x20\x20\x20\x20\x20\x20\x20fp.profileId\x20profileId,','addColumn','\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=\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=\x20300\x20THEN\x20\x27DELETE\x27','\x20\x20WHERE\x20userId\x20IN\x20(SELECT\x20split.userId','tail','\x20\x20\x20\x20resourceId\x20text','\x20\x20\x20\x20\x20\x20profileId\x20int(11)','\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\x20\x20\x20\x20\x20\x20\x20\x20ORDER\x20BY\x20users)\x20b','\x20\x20\x20\x20\x20\x20SUBSTRING_INDEX(SUBSTRING_INDEX(s.userId,\x20\x27,\x27,\x20t.n),\x20\x27,\x27,\x20-1)\x20userId','\x20\x20SELECT\x20id,\x20permissions,\x20null','\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=\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=\x20910\x20THEN\x20\x27Realtime\x27','\x20\x20FROM\x20tmpSections;','\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',',(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=\x20702\x20THEN\x20\x27SmsAccounts\x27','\x20\x20WHERE\x20x.sectionId\x20=\x20502;','reportId','\x20\x20FROM\x20tmpNormalizedUsers\x20x','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20FROM\x20(SELECT','\x20\x20SELECT\x20\x27\x27,\x20\x27\x27,\x20permission,\x201,\x200,\x20profileId,\x20null,\x20userId','userProfileId','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20END','\x20\x20SELECT\x20x.sectionId,\x20u.FaxQueueId,\x20x.userId','\x20\x20`createdAt`\x20datetime\x20NOT\x20NULL,','\x20\x20\x20\x20name\x20varchar(255)\x20not\x20null,','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20411\x20THEN\x20\x27Realtime\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201502\x20THEN\x20\x27IvrCampaigns\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ELSE\x20\x27\x27','\x20\x20`resourceId`\x20int(11)\x20NOT\x20NULL,','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20409\x20THEN\x20\x27ChanSpies\x27','\x20\x20\x20\x20p.userIds\x20userId','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20701\x20THEN\x20\x27SmsQueues\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20601\x20THEN\x20\x27MailQueues\x27','\x20\x20SET\x20u.userProfileId\x20=\x20f.profileId','\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','removeIndex','\x20\x20\x20\x20autoAssociation\x20tinyint\x20not\x20null,','\x20\x20ORDER\x20BY\x20GROUP_CONCAT(id);','DROP\x20TABLE\x20IF\x20EXISTS\x20tmpSharedProfiles;','INSERT\x20INTO\x20tmpSections','name','\x20\x20\x20\x20\x20\x20permissions\x20text\x20not\x20null','\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=\x20802\x20THEN\x20\x27OpenchannelAccounts\x27','\x20\x20WHERE\x20x.sectionId\x20=\x20702;','\x20\x20SELECT\x20x.sectionId,\x20u.OpenchannelAccountId,\x20x.userId','DELETE\x20t1\x20FROM\x20tmpSections\x20t1,\x20tmpCustomResources\x20t2','\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',',(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','CREATE\x20TABLE\x20tmpNormalizedResources','\x20\x20WHERE\x20userProfileId\x20is\x20null\x20AND\x20role\x20=\x20\x27user\x27;','INSERT\x20INTO\x20tmpNormalizedUsers','CREATE\x20TABLE\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','REFERENCES\x20user_profiles(`id`)\x20'];(function(_0x1f4865,_0x22b089){const _0x3846b5=function(_0x4efae7){while(--_0x4efae7){_0x1f4865['push'](_0x1f4865['shift']());}};_0x3846b5(++_0x22b089);}(a963_0x22b0,0xec));const a963_0x3846=function(_0x1f4865,_0x22b089){_0x1f4865=_0x1f4865-0x0;let _0x3846b5=a963_0x22b0[_0x1f4865];return _0x3846b5;};const _0x4b0850=a963_0x3846;'use strict';const util=require(_0x4b0850('0xb3')),logger=require('../config/logger')(_0x4b0850('0xf8')),Sequence=function(){};Sequence[_0x4b0850('0x2e')]['enqueue']=function(_0x4efae7){const _0x2c2689=_0x4b0850;this[_0x2c2689('0x4d')]=this[_0x2c2689('0x4d')]?this[_0x2c2689('0x4d')][_0x2c2689('0xc3')](_0x4efae7):_0x4efae7();};const Migration=function(_0x310e6b){const _0x5bfe06=_0x4b0850;this[_0x5bfe06('0x10b')]=_0x310e6b,this['sequence']=new Sequence();};Migration['prototype'][_0x4b0850('0x116')]=function(_0x4ed3a8,_0x1d0d00,_0x3bff03){const _0x44d0d5=this;this['sequence']['enqueue'](function(){const _0x489910=a963_0x3846;return _0x44d0d5[_0x489910('0x10b')][_0x489910('0x116')](_0x4ed3a8,_0x1d0d00,_0x3bff03)[_0x489910('0x128')](function(){const _0x3ae591=_0x489910;logger[_0x3ae591('0x132')](_0x3ae591('0x166'),_0x1d0d00,_0x4ed3a8);})['catch'](function(_0x5a9b20){const _0x33c181=_0x489910;logger[_0x33c181('0x132')](JSON[_0x33c181('0x114')](_0x5a9b20));});});},Migration['prototype'][_0x4b0850('0x48')]=function(_0x4b4812,_0x44f8f3,_0x287863){const _0x373ae2=this;this['sequence']['enqueue'](function(){const _0x510c56=a963_0x3846;return _0x373ae2[_0x510c56('0x10b')][_0x510c56('0x48')](_0x4b4812,_0x44f8f3,_0x287863)[_0x510c56('0x128')](function(){const _0x2679af=_0x510c56;logger[_0x2679af('0x132')](_0x2679af('0x9'),_0x44f8f3,_0x4b4812);})[_0x510c56('0x161')](function(_0x3162c4){const _0x1cf7fd=_0x510c56;logger['info'](JSON[_0x1cf7fd('0x114')](_0x3162c4));});});},Migration['prototype']['dropTable']=function(_0x124b5c){const _0x29ba01=_0x4b0850,_0x53442a=this;this['sequence'][_0x29ba01('0x112')](function(){const _0x277622=_0x29ba01;return _0x53442a[_0x277622('0x10b')][_0x277622('0x159')](_0x124b5c,{'force':!![]})['then'](function(){const _0x2753ee=_0x277622;logger[_0x2753ee('0x132')](_0x2753ee('0x106'),_0x124b5c);})['catch'](function(_0x727232){const _0x3482c1=_0x277622;logger[_0x3482c1('0x132')](JSON[_0x3482c1('0x114')](_0x727232));});});},Migration['prototype'][_0x4b0850('0xb9')]=function(_0x56ab2a,_0x4ee258,_0x253894){const _0x3ac9d5=_0x4b0850,_0x40170e=this;this[_0x3ac9d5('0x12d')]['enqueue'](function(){const _0x4bc2df=_0x3ac9d5;return _0x40170e[_0x4bc2df('0x10b')][_0x4bc2df('0xb9')](_0x56ab2a,_0x4ee258,{'indexName':_0x253894})[_0x4bc2df('0x128')](function(){const _0x103a4c=_0x4bc2df;logger['info']('addIndex\x20%s\x20%s\x20%s',_0x56ab2a,_0x4ee258[_0x103a4c('0xe6')](','),_0x253894);})['catch'](function(_0x54244b){const _0x8b1440=_0x4bc2df;logger[_0x8b1440('0x132')](JSON[_0x8b1440('0x114')](_0x54244b));});});},Migration[_0x4b0850('0x2e')][_0x4b0850('0x6f')]=function(_0x4e4175,_0x1d0051){const _0x50b676=_0x4b0850,_0x38cb61=this;this[_0x50b676('0x12d')][_0x50b676('0x112')](function(){const _0x1c0382=_0x50b676;return _0x38cb61['queryInterface'][_0x1c0382('0x6f')](_0x4e4175,_0x1d0051)[_0x1c0382('0x128')](function(){const _0x2d1e25=_0x1c0382;logger[_0x2d1e25('0x132')]('removeIndex\x20%s\x20%s',_0x4e4175,_0x1d0051);})[_0x1c0382('0x161')](function(_0x16a6e3){const _0xbbca61=_0x1c0382;logger[_0xbbca61('0x132')](JSON[_0xbbca61('0x114')](_0x16a6e3));});});},Migration[_0x4b0850('0x2e')]['query']=function(_0x18edab){const _0x13bef1=_0x4b0850,_0x45acdf=this;this[_0x13bef1('0x12d')][_0x13bef1('0x112')](function(){const _0x1d65da=_0x13bef1;return _0x45acdf[_0x1d65da('0x10b')][_0x1d65da('0xb4')]['query'](_0x18edab)[_0x1d65da('0x128')](function(){const _0x819441=_0x1d65da;logger[_0x819441('0x132')](_0x819441('0x5'),_0x18edab);})['catch'](function(_0x4fcfe9){logger['info'](JSON['stringify'](_0x4fcfe9));});});},Migration[_0x4b0850('0x2e')][_0x4b0850('0x23')]=function(_0x24c968,_0x32a51c){const _0x28325e=_0x4b0850,_0x58805e=this;this[_0x28325e('0x12d')][_0x28325e('0x112')](function(){const _0x5d7706=_0x28325e;return _0x58805e[_0x5d7706('0x10b')][_0x5d7706('0x23')](_0x24c968,_0x32a51c)[_0x5d7706('0x128')](function(){const _0x443df2=_0x5d7706;logger[_0x443df2('0x132')]('Removed\x20column\x20%s\x20from\x20%s',_0x32a51c,_0x24c968);})[_0x5d7706('0x161')](function(_0xbbb10){const _0x91b89=_0x5d7706;logger['info'](util[_0x91b89('0x35')](_0xbbb10,{'showHidden':![],'depth':null}));});});},Migration[_0x4b0850('0x2e')][_0x4b0850('0x13a')]=function(_0x567a42,_0x1353bb,_0x4e3e84){const _0x5ad00d=_0x4b0850,_0x5f03a3=this;this[_0x5ad00d('0x12d')][_0x5ad00d('0x112')](function(){const _0x4bd9e9=_0x5ad00d;return _0x5f03a3[_0x4bd9e9('0x10b')][_0x4bd9e9('0x13a')](_0x567a42,_0x1353bb,_0x4e3e84)[_0x4bd9e9('0x128')](function(){const _0x4655c0=_0x4bd9e9;logger[_0x4655c0('0x132')](_0x4655c0('0x151'),_0x1353bb,_0x4e3e84,_0x567a42);})[_0x4bd9e9('0x161')](function(_0x5e974e){logger['info'](util['inspect'](_0x5e974e,{'showHidden':![],'depth':null}));});});},Migration[_0x4b0850('0x2e')][_0x4b0850('0xaf')]=function(_0x272fd0){const _0x3b2a43=_0x4b0850;this[_0x3b2a43('0x12d')][_0x3b2a43('0x112')](function(){return _0x272fd0();});},module['exports']={'up':function(_0x19d291,_0x51f635){return new Promise(function(_0x126b94){const _0x2dc1c2=a963_0x3846,_0x5915e3=new Migration(_0x19d291);_0x5915e3[_0x2dc1c2('0x48')](_0x2dc1c2('0xb0'),_0x2dc1c2('0x5c'),{'type':_0x51f635['INTEGER']}),_0x5915e3[_0x2dc1c2('0x48')](_0x2dc1c2('0xb0'),_0x2dc1c2('0x115'),{'type':_0x51f635[_0x2dc1c2('0x38')]}),_0x5915e3[_0x2dc1c2('0x48')](_0x2dc1c2('0x158'),_0x2dc1c2('0x60'),{'type':_0x51f635[_0x2dc1c2('0x97')]}),_0x5915e3['removeColumn']('voice_voicemail',_0x2dc1c2('0x74')),_0x5915e3[_0x2dc1c2('0xfe')](_0x2dc1c2('0xca')+'\x20\x20`id`\x20int(11)\x20NOT\x20NULL\x20AUTO_INCREMENT,'+_0x2dc1c2('0x33')+_0x2dc1c2('0x165')+_0x2dc1c2('0x15d')+'\x20\x20`createdAt`\x20datetime\x20NOT\x20NULL,'+'\x20\x20`updatedAt`\x20datetime\x20NOT\x20NULL,'+'\x20\x20PRIMARY\x20KEY\x20(`id`),'+_0x2dc1c2('0x10e')+_0x2dc1c2('0x105')),_0x5915e3['query']('INSERT\x20INTO\x20`user_profiles`\x20(`name`,\x20`crudPermissions`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)'+_0x2dc1c2('0xc7')),_0x5915e3[_0x2dc1c2('0xfe')]('ALTER\x20TABLE\x20`users`\x20'+_0x2dc1c2('0x12f')+_0x2dc1c2('0x162')+_0x2dc1c2('0x82')+_0x2dc1c2('0xc2')),_0x5915e3[_0x2dc1c2('0xfe')](_0x2dc1c2('0xf1')+_0x2dc1c2('0x144')+'\x20\x20`name`\x20varchar(255)\x20NOT\x20NULL,'+_0x2dc1c2('0x152')+'\x20\x20`sectionId`\x20int(11)\x20NOT\x20NULL,'+_0x2dc1c2('0xba')+_0x2dc1c2('0xe1')+_0x2dc1c2('0x96')+'\x20\x20`createdAt`\x20datetime\x20NOT\x20NULL,'+_0x2dc1c2('0xf4')+_0x2dc1c2('0xe2')+'\x20\x20PRIMARY\x20KEY\x20(`id`),'+_0x2dc1c2('0x122')+'\x20\x20KEY\x20`compositeIndex`\x20(`sectionId`,`userProfileId`),'+'\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'+_0x2dc1c2('0x105')),_0x5915e3[_0x2dc1c2('0xfe')](_0x2dc1c2('0x108')+_0x2dc1c2('0x144')+_0x2dc1c2('0x33')+_0x2dc1c2('0x68')+_0x2dc1c2('0x16c')+_0x2dc1c2('0x63')+'\x20\x20`updatedAt`\x20datetime\x20NOT\x20NULL,'+'\x20\x20`sectionId`\x20int(11)\x20DEFAULT\x20NULL,'+_0x2dc1c2('0xc')+_0x2dc1c2('0x156')+'\x20\x20KEY\x20`compositeIndex`\x20(`resourceId`,`sectionId`),'+_0x2dc1c2('0x58')+')\x20ENGINE=InnoDB\x20DEFAULT\x20CHARSET=utf8;'),_0x5915e3[_0x2dc1c2('0xfe')](_0x2dc1c2('0xa2')+'\x20\x20n\x20INT\x20NOT\x20NULL\x20AUTO_INCREMENT\x20PRIMARY\x20KEY'+');'),_0x5915e3[_0x2dc1c2('0xfe')]('INSERT\x20INTO\x20tally\x20(n)'+_0x2dc1c2('0x7')+'(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'+_0x2dc1c2('0x7c')+_0x2dc1c2('0x59')+_0x2dc1c2('0x81')+_0x2dc1c2('0x11b')+';'),_0x5915e3[_0x2dc1c2('0xfe')]('CREATE\x20TABLE\x20tmpPermissions'+_0x2dc1c2('0x21')+_0x2dc1c2('0x50')+_0x2dc1c2('0x8b')+_0x2dc1c2('0x4f')+'\x20\x20);'),_0x5915e3['query']('INSERT\x20INTO\x20tmpPermissions'+_0x2dc1c2('0x53')+_0x2dc1c2('0x148')+_0x2dc1c2('0x8e')+'\x20\x20ORDER\x20BY\x20id;'),_0x5915e3['query'](_0x2dc1c2('0x19')+_0x2dc1c2('0x21')+'\x20\x20\x20\x20sectionId\x20int(11)\x20not\x20null,'+_0x2dc1c2('0x90')+_0x2dc1c2('0x4e')+'\x20\x20);'),_0x5915e3['query'](_0x2dc1c2('0x101')+_0x2dc1c2('0x22')+_0x2dc1c2('0x14a')+_0x2dc1c2('0x54')+_0x2dc1c2('0x6a')+_0x2dc1c2('0xc9')+_0x2dc1c2('0xfa')),_0x5915e3[_0x2dc1c2('0xfe')](_0x2dc1c2('0x145')+_0x2dc1c2('0x21')+'\x20\x20\x20\x20permissions\x20text\x20not\x20null,'+_0x2dc1c2('0x89')+_0x2dc1c2('0xd3')),_0x5915e3[_0x2dc1c2('0xfe')](_0x2dc1c2('0x44')+_0x2dc1c2('0x1c')+_0x2dc1c2('0xdc')+_0x2dc1c2('0x3')),_0x5915e3[_0x2dc1c2('0xfe')](_0x2dc1c2('0x15a')+_0x2dc1c2('0xa0')+_0x2dc1c2('0x130')),_0x5915e3['query'](_0x2dc1c2('0xcd')),_0x5915e3[_0x2dc1c2('0xfe')](_0x2dc1c2('0x107')+_0x2dc1c2('0xac')+'\x20\x20FROM\x20users'+_0x2dc1c2('0x8e')+'\x20\x20GROUP\x20BY\x20permissions'+_0x2dc1c2('0x71')),_0x5915e3[_0x2dc1c2('0xfe')]('CREATE\x20TABLE\x20tmpNormalizedUsers'+_0x2dc1c2('0x21')+_0x2dc1c2('0x127')+_0x2dc1c2('0x90')+_0x2dc1c2('0x4e')+'\x20\x20);'),_0x5915e3[_0x2dc1c2('0xfe')](_0x2dc1c2('0x7f')+_0x2dc1c2('0x14b')+_0x2dc1c2('0x14a')+_0x2dc1c2('0xb6')+_0x2dc1c2('0x52')+_0x2dc1c2('0x14')+_0x2dc1c2('0xfa')),_0x5915e3[_0x2dc1c2('0xfe')]('CREATE\x20TABLE\x20tmpExtractedResources\x20('+_0x2dc1c2('0xdd')+'\x20\x20resourceId\x20int(11),'+_0x2dc1c2('0xbe')+'\x20\x20);'),_0x5915e3[_0x2dc1c2('0xfe')]('INSERT\x20INTO\x20tmpExtractedResources'+_0x2dc1c2('0x28')+'\x20\x20FROM\x20tmpNormalizedUsers\x20x'+'\x20\x20INNER\x20JOIN\x20user_has_voice_queues\x20u\x20ON\x20u.UserId\x20=\x20x.userId'+_0x2dc1c2('0x138')+'\x20\x20WHERE\x20x.sectionId\x20=\x20401\x20AND\x20q.type\x20=\x20\x27inbound\x27;'),_0x5915e3['query'](_0x2dc1c2('0x43')+_0x2dc1c2('0x1a')+_0x2dc1c2('0x5d')+_0x2dc1c2('0xdb')+_0x2dc1c2('0x15e')),_0x5915e3[_0x2dc1c2('0xfe')](_0x2dc1c2('0x43')+_0x2dc1c2('0xa3')+_0x2dc1c2('0x5d')+'\x20\x20INNER\x20JOIN\x20user_has_chat_websites\x20u\x20ON\x20u.UserId\x20=\x20x.userId'+_0x2dc1c2('0x5b')),_0x5915e3['query'](_0x2dc1c2('0x43')+_0x2dc1c2('0x147')+_0x2dc1c2('0x5d')+_0x2dc1c2('0xe9')+_0x2dc1c2('0x15c')),_0x5915e3[_0x2dc1c2('0xfe')](_0x2dc1c2('0x43')+_0x2dc1c2('0x94')+_0x2dc1c2('0x5d')+_0x2dc1c2('0x11f')+_0x2dc1c2('0xb7')),_0x5915e3[_0x2dc1c2('0xfe')](_0x2dc1c2('0x43')+'\x20\x20SELECT\x20x.sectionId,\x20u.SmsQueueId,\x20x.userId'+_0x2dc1c2('0x5d')+'\x20\x20INNER\x20JOIN\x20user_has_sms_queues\x20u\x20ON\x20u.UserId\x20=\x20x.userId'+'\x20\x20WHERE\x20x.sectionId\x20=\x20701;'),_0x5915e3[_0x2dc1c2('0xfe')](_0x2dc1c2('0x43')+_0x2dc1c2('0xc5')+'\x20\x20FROM\x20tmpNormalizedUsers\x20x'+_0x2dc1c2('0x1')+_0x2dc1c2('0x78')),_0x5915e3[_0x2dc1c2('0xfe')](_0x2dc1c2('0x43')+_0x2dc1c2('0x164')+_0x2dc1c2('0x5d')+'\x20\x20INNER\x20JOIN\x20user_has_openchannel_queues\x20u\x20ON\x20u.UserId\x20=\x20x.userId'+'\x20\x20WHERE\x20x.sectionId\x20=\x20801;'),_0x5915e3[_0x2dc1c2('0xfe')](_0x2dc1c2('0x43')+_0x2dc1c2('0x79')+_0x2dc1c2('0x5d')+_0x2dc1c2('0x29')+'\x20\x20WHERE\x20x.sectionId\x20=\x20802;'),_0x5915e3[_0x2dc1c2('0xfe')](_0x2dc1c2('0x43')+_0x2dc1c2('0x62')+_0x2dc1c2('0x5d')+_0x2dc1c2('0x8d')+'\x20\x20WHERE\x20x.sectionId\x20=\x20901;'),_0x5915e3[_0x2dc1c2('0xfe')](_0x2dc1c2('0x43')+'\x20\x20SELECT\x20x.sectionId,\x20u.FaxAccountId,\x20x.userId'+_0x2dc1c2('0x5d')+_0x2dc1c2('0x123')+_0x2dc1c2('0xda')),_0x5915e3[_0x2dc1c2('0xfe')](_0x2dc1c2('0x43')+_0x2dc1c2('0x16a')+'\x20\x20FROM\x20tmpNormalizedUsers\x20x'+_0x2dc1c2('0xe4')+_0x2dc1c2('0x150')),_0x5915e3['query'](_0x2dc1c2('0x43')+_0x2dc1c2('0x28')+_0x2dc1c2('0x5d')+'\x20\x20INNER\x20JOIN\x20user_has_voice_queues\x20u\x20ON\x20u.UserId\x20=\x20x.userId'+_0x2dc1c2('0x138')+_0x2dc1c2('0x3d')),_0x5915e3[_0x2dc1c2('0xfe')](_0x2dc1c2('0x80')+_0x2dc1c2('0x21')+_0x2dc1c2('0xb8')+_0x2dc1c2('0x75')+'\x20\x20);'),_0x5915e3['query'](_0x2dc1c2('0x117')+'\x20\x20SELECT\x20userId,\x20permissions'+'\x20\x20FROM\x20(SELECT'+_0x2dc1c2('0xff')+_0x2dc1c2('0x10c')+_0x2dc1c2('0x7b')+_0x2dc1c2('0xfa')),_0x5915e3['query'](_0x2dc1c2('0x42')+_0x2dc1c2('0x21')+_0x2dc1c2('0x50')+_0x2dc1c2('0x8b')+_0x2dc1c2('0x4f')+_0x2dc1c2('0xd3')),_0x5915e3[_0x2dc1c2('0xfe')]('INSERT\x20INTO\x20tmpSharedProfiles'+_0x2dc1c2('0x8')+_0x2dc1c2('0xc0')+_0x2dc1c2('0x13e')+_0x2dc1c2('0x5e')+_0x2dc1c2('0x83')+_0x2dc1c2('0x20')+_0x2dc1c2('0x9e')+'\x20\x20\x20\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'+_0x2dc1c2('0x2')+_0x2dc1c2('0x109')+_0x2dc1c2('0xa6')+_0x2dc1c2('0x45')+_0x2dc1c2('0x3e')+_0x2dc1c2('0x51')+_0x2dc1c2('0xc6')+_0x2dc1c2('0x163')+'\x20\x20ORDER\x20BY\x20GROUP_CONCAT(userId);'),_0x5915e3[_0x2dc1c2('0xfe')](_0x2dc1c2('0xc1')+_0x2dc1c2('0x21')+'\x20\x20\x20\x20\x20\x20userId\x20text\x20not\x20null,'+_0x2dc1c2('0x8b')+_0x2dc1c2('0x4f')+_0x2dc1c2('0xd3')),_0x5915e3[_0x2dc1c2('0xfe')](_0x2dc1c2('0x10f')+_0x2dc1c2('0xa5')+_0x2dc1c2('0xc0')+_0x2dc1c2('0x4c')+_0x2dc1c2('0xd5')+_0x2dc1c2('0x3a')+_0x2dc1c2('0xad')+_0x2dc1c2('0x103')+_0x2dc1c2('0x109')+_0x2dc1c2('0xef')+_0x2dc1c2('0x121')+_0x2dc1c2('0x10a')+_0x2dc1c2('0x14f')+_0x2dc1c2('0xf2')+_0x2dc1c2('0xea')),_0x5915e3[_0x2dc1c2('0xfe')]('CREATE\x20TABLE\x20tmpFinalProfiles'+_0x2dc1c2('0x21')+_0x2dc1c2('0xb8')+_0x2dc1c2('0x8b')+_0x2dc1c2('0x4f')+_0x2dc1c2('0xd3')),_0x5915e3['query']('INSERT\x20INTO\x20tmpFinalProfiles'+_0x2dc1c2('0x111')+_0x2dc1c2('0xc8')+_0x2dc1c2('0x31')),_0x5915e3['query'](_0x2dc1c2('0x27')+_0x2dc1c2('0xd7')+_0x2dc1c2('0x2c')+_0x2dc1c2('0x88')+_0x2dc1c2('0x37')),_0x5915e3[_0x2dc1c2('0xfe')](_0x2dc1c2('0xf5')+'\x20\x20SET\x20profileId\x20=\x20(SELECT\x20(@cnt\x20:=\x20@cnt\x20+\x201)\x20AS\x20rowNumber'+_0x2dc1c2('0x2d')+_0x2dc1c2('0x155')),_0x5915e3[_0x2dc1c2('0xfe')]('CREATE\x20TABLE\x20tmpSections'+_0x2dc1c2('0x21')+_0x2dc1c2('0x64')+_0x2dc1c2('0xe7')+'\x20\x20\x20\x20sectionId\x20int(11)\x20not\x20null,'+'\x20\x20\x20\x20enabled\x20tinyint\x20not\x20null,'+_0x2dc1c2('0x70')+_0x2dc1c2('0xee')+_0x2dc1c2('0xae')+_0x2dc1c2('0x110')+'\x20\x20);'),_0x5915e3['query'](_0x2dc1c2('0x73')+_0x2dc1c2('0x5f')+_0x2dc1c2('0x14a')+_0x2dc1c2('0x47')+_0x2dc1c2('0x157')+_0x2dc1c2('0x13f')+_0x2dc1c2('0xf3')+'\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'+_0x2dc1c2('0x25')),_0x5915e3['query'](_0x2dc1c2('0xbb')+'\x20\x20SET'+'\x20\x20\x20\x20\x20\x20name\x20=\x20(SELECT'+_0x2dc1c2('0x12a')+'\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'+_0x2dc1c2('0x16e')+_0x2dc1c2('0xd8')+_0x2dc1c2('0x15f')+_0x2dc1c2('0x24')+_0x2dc1c2('0xa7')+_0x2dc1c2('0xf7')+_0x2dc1c2('0x4b')+_0x2dc1c2('0x10')+_0x2dc1c2('0xa4')+_0x2dc1c2('0xf9')+'\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'+_0x2dc1c2('0x15b')+_0x2dc1c2('0x40')+_0x2dc1c2('0xd2')+_0x2dc1c2('0x11c')+_0x2dc1c2('0xd9')+_0x2dc1c2('0xe8')+_0x2dc1c2('0x4')+_0x2dc1c2('0x1d')+_0x2dc1c2('0xd4')+_0x2dc1c2('0x69')+_0x2dc1c2('0x1f')+_0x2dc1c2('0x65')+'\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'+_0x2dc1c2('0x6e')+_0x2dc1c2('0x104')+_0x2dc1c2('0x2f')+_0x2dc1c2('0x2b')+_0x2dc1c2('0x6c')+_0x2dc1c2('0x4a')+_0x2dc1c2('0xd6')+_0x2dc1c2('0xb')+'\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'+_0x2dc1c2('0x6b')+_0x2dc1c2('0x5a')+_0x2dc1c2('0x118')+'\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'+_0x2dc1c2('0xcb')+_0x2dc1c2('0x77')+_0x2dc1c2('0x99')+_0x2dc1c2('0xde')+'\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\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20902\x20THEN\x20\x27FaxAccounts\x27'+_0x2dc1c2('0x56')+_0x2dc1c2('0x0')+_0x2dc1c2('0x141')+_0x2dc1c2('0x139')+_0x2dc1c2('0xd1')+_0x2dc1c2('0x169')+'\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\x20WHEN\x20sectionId\x20=\x201006\x20THEN\x20\x27Scheduler\x27'+_0x2dc1c2('0x10d')+_0x2dc1c2('0x153')+'\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'+_0x2dc1c2('0x36')+_0x2dc1c2('0x113')+_0x2dc1c2('0x149')+_0x2dc1c2('0xb2')+_0x2dc1c2('0xd0')+_0x2dc1c2('0x9d')+_0x2dc1c2('0x146')+_0x2dc1c2('0x136')+'\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'+_0x2dc1c2('0x154')+_0x2dc1c2('0x55')+_0x2dc1c2('0xed')+_0x2dc1c2('0x26')+_0x2dc1c2('0x32')+'\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'+_0x2dc1c2('0xab')+'\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'+_0x2dc1c2('0x49')+'\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'+_0x2dc1c2('0x14c')+_0x2dc1c2('0x142')+'\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'+_0x2dc1c2('0xe0')+_0x2dc1c2('0x66')+_0x2dc1c2('0x126')+_0x2dc1c2('0xe5')+_0x2dc1c2('0x11e')+_0x2dc1c2('0x12b')+_0x2dc1c2('0x119')+'\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'+_0x2dc1c2('0xbd')+_0x2dc1c2('0x67')+_0x2dc1c2('0x16')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20),'+_0x2dc1c2('0xeb')+_0x2dc1c2('0x9a')+_0x2dc1c2('0x14e')+_0x2dc1c2('0xe3')+_0x2dc1c2('0x3b')+_0x2dc1c2('0xce')+_0x2dc1c2('0xfd')+_0x2dc1c2('0xf0')+_0x2dc1c2('0x11a')+_0x2dc1c2('0x18')+_0x2dc1c2('0x86')+_0x2dc1c2('0x168')+_0x2dc1c2('0x17')+_0x2dc1c2('0x16d')+'\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20in\x20(1201,\x201202,\x201203)\x20THEN\x20\x27Analytics\x27'+'\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20in\x20(1301,\x201302,\x201303,\x201305,\x201306,\x201307,\x201308)\x20THEN\x20\x27Integrations\x27'+_0x2dc1c2('0xd')+_0x2dc1c2('0x9c')+_0x2dc1c2('0xf')+'\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201701\x20THEN\x20\x27jscripty\x27'+'\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20between\x2088889\x20AND\x2099999\x20THEN\x20\x27AppZone\x27'+_0x2dc1c2('0x134')+_0x2dc1c2('0x13')+_0x2dc1c2('0xd3')),_0x5915e3[_0x2dc1c2('0xfe')](_0x2dc1c2('0x120')+_0x2dc1c2('0x11')),_0x5915e3['query'](_0x2dc1c2('0xc4')+_0x2dc1c2('0x21')+_0x2dc1c2('0x64')+'\x20\x20\x20\x20category\x20varchar(255)\x20not\x20null,'+_0x2dc1c2('0x127')+_0x2dc1c2('0x8f')+'\x20\x20\x20\x20autoAssociation\x20tinyint\x20not\x20null,'+_0x2dc1c2('0xee')+_0x2dc1c2('0xae')+_0x2dc1c2('0x110')+'\x20\x20);'),_0x5915e3[_0x2dc1c2('0xfe')](_0x2dc1c2('0x84')+'\x20\x20SELECT\x20*'+'\x20\x20FROM\x20tmpSections'+'\x20\x20WHERE\x20name\x20in\x20(\x27Plugins\x27,\x20\x27CustomDashboards\x27);'),_0x5915e3[_0x2dc1c2('0xfe')](_0x2dc1c2('0x7a')+_0x2dc1c2('0xaa')),_0x5915e3['query']('UPDATE\x20tmpSections'+_0x2dc1c2('0x125')),_0x5915e3[_0x2dc1c2('0xfe')](_0x2dc1c2('0xbb')+_0x2dc1c2('0x9b')),_0x5915e3[_0x2dc1c2('0xfe')](_0x2dc1c2('0xbb')+_0x2dc1c2('0x39')),_0x5915e3[_0x2dc1c2('0xfe')](_0x2dc1c2('0x91')+_0x2dc1c2('0xf6')+_0x2dc1c2('0xfc')+'\x20\x20\x20\x20\x20\x20WHEN\x20name\x20=\x20\x27Plugins\x27\x20THEN\x20(sectionId\x20-\x2088888)'+_0x2dc1c2('0xbc')+_0x2dc1c2('0x61')+_0x2dc1c2('0x98')),_0x5915e3[_0x2dc1c2('0xfe')]('INSERT\x20INTO\x20user_profile_has_sections\x20(name,\x20category,\x20sectionId,\x20enabled,\x20autoAssociation,\x20crudPermissions,\x20createdAt,\x20updatedAt,\x20userProfileId)'+_0x2dc1c2('0x16b')+_0x2dc1c2('0x57')),_0x5915e3[_0x2dc1c2('0xfe')](_0x2dc1c2('0x140')+_0x2dc1c2('0x14d')+_0x2dc1c2('0x11d')+_0x2dc1c2('0x102')),_0x5915e3[_0x2dc1c2('0xfe')](_0x2dc1c2('0x13d')+_0x2dc1c2('0x12')+_0x2dc1c2('0x15')),_0x5915e3[_0x2dc1c2('0xfe')](_0x2dc1c2('0x137')+_0x2dc1c2('0x21')+'\x20\x20\x20\x20\x20\x20resourceId\x20text,'+'\x20\x20\x20\x20\x20\x20type\x20varchar(255)\x20not\x20null,'+_0x2dc1c2('0x76')+'\x20\x20\x20\x20\x20\x20sectionId\x20int(11)'+_0x2dc1c2('0xd3')),_0x5915e3[_0x2dc1c2('0xfe')](_0x2dc1c2('0x8a')+_0x2dc1c2('0x160')+_0x2dc1c2('0x100')+'\x20\x20INNER\x20JOIN\x20tmpExtractedResources\x20cr\x20ON\x20cr.userId\x20=\x20s.userId\x20AND\x20cr.sectionId\x20=\x20s.sectionId\x20AND\x20cr.resourceId\x20IS\x20NOT\x20NULL;'),_0x5915e3['query'](_0x2dc1c2('0x7d')+'\x20\x20('+_0x2dc1c2('0x64')+_0x2dc1c2('0x13b')+_0x2dc1c2('0x85')+'\x20\x20\x20\x20insertedSectionId\x20int(11)\x20not\x20null,'+'\x20\x20\x20\x20sectionId\x20int(11)'+_0x2dc1c2('0xd3')),_0x5915e3[_0x2dc1c2('0xfe')]('INSERT\x20INTO\x20tmpNormalizedResources'+_0x2dc1c2('0x143')+_0x2dc1c2('0x14a')+_0x2dc1c2('0xcf')+'\x20\x20\x20\x20\x20\x20\x20\x20r.type\x20type,'+_0x2dc1c2('0x129')+_0x2dc1c2('0x12c')+_0x2dc1c2('0xf3')+_0x2dc1c2('0xa8')+_0x2dc1c2('0x25')),_0x5915e3[_0x2dc1c2('0xfe')](_0x2dc1c2('0xbf')+_0x2dc1c2('0x93')+_0x2dc1c2('0x9f')),_0x5915e3[_0x2dc1c2('0xfe')](_0x2dc1c2('0xdf')+_0x2dc1c2('0xa')+_0x2dc1c2('0x13c')+_0x2dc1c2('0x92')+_0x2dc1c2('0x30')+'\x20\x20\x20\x20\x20\x20WHEN\x20x.sectionId\x20=\x20502\x20THEN\x20COALESCE((SELECT\x20name\x20FROM\x20chat_websites\x20WHERE\x20id\x20=\x20x.resourceId),\x27DELETE_MIGRATION\x27)'+'\x20\x20\x20\x20\x20\x20WHEN\x20x.sectionId\x20=\x20601\x20THEN\x20COALESCE((SELECT\x20name\x20FROM\x20mail_queues\x20WHERE\x20id\x20=\x20x.resourceId),\x27DELETE_MIGRATION\x27)'+'\x20\x20\x20\x20\x20\x20WHEN\x20x.sectionId\x20=\x20602\x20THEN\x20COALESCE((SELECT\x20name\x20FROM\x20mail_accounts\x20WHERE\x20id\x20=\x20x.resourceId),\x27DELETE_MIGRATION\x27)'+_0x2dc1c2('0xcc')+_0x2dc1c2('0x167')+_0x2dc1c2('0xa9')+'\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)'+_0x2dc1c2('0xec')+'\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)'+_0x2dc1c2('0x12e')+_0x2dc1c2('0x133')+_0x2dc1c2('0xfb')+_0x2dc1c2('0x2a')+_0x2dc1c2('0x34')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20);'),_0x5915e3[_0x2dc1c2('0xfe')](_0x2dc1c2('0x87')+_0x2dc1c2('0xe')),_0x5915e3[_0x2dc1c2('0xfe')](_0x2dc1c2('0xb1')+_0x2dc1c2('0x131')+_0x2dc1c2('0x3f')),_0x5915e3['query'](_0x2dc1c2('0x135')+_0x2dc1c2('0x6d')+'\x20\x20WHERE\x20u.id\x20=\x20f.userId;'),_0x5915e3['query']('UPDATE\x20users\x20u'+_0x2dc1c2('0x46')+_0x2dc1c2('0x7e')),_0x5915e3['query'](_0x2dc1c2('0xb5')),_0x5915e3[_0x2dc1c2('0xfe')](_0x2dc1c2('0xa1')),_0x5915e3['query'](_0x2dc1c2('0x1e')),_0x5915e3[_0x2dc1c2('0xfe')](_0x2dc1c2('0x8c')),_0x5915e3[_0x2dc1c2('0xfe')]('DROP\x20TABLE\x20IF\x20EXISTS\x20tmpExtractedResources;'),_0x5915e3[_0x2dc1c2('0xfe')](_0x2dc1c2('0x6')),_0x5915e3[_0x2dc1c2('0xfe')](_0x2dc1c2('0x72')),_0x5915e3[_0x2dc1c2('0xfe')](_0x2dc1c2('0x41')),_0x5915e3[_0x2dc1c2('0xfe')](_0x2dc1c2('0x124')),_0x5915e3[_0x2dc1c2('0xfe')](_0x2dc1c2('0x1b')),_0x5915e3[_0x2dc1c2('0xfe')]('DROP\x20TABLE\x20IF\x20EXISTS\x20tmpCustomResources;'),_0x5915e3[_0x2dc1c2('0xfe')](_0x2dc1c2('0x3c')),_0x5915e3[_0x2dc1c2('0xfe')](_0x2dc1c2('0x95')),_0x5915e3[_0x2dc1c2('0xaf')](_0x126b94);});},'down':function(){}}; \ No newline at end of file +const a1125_0xe1e2=['\x20\x20WHERE\x20userProfileId\x20is\x20null\x20AND\x20role\x20=\x20\x27user\x27;','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20in\x20(901,\x20902,\x20910)\x20THEN\x20\x27Fax\x27','INSERT\x20INTO\x20tmpCustomResources',',(SELECT\x200\x20AS\x20N\x20UNION\x20ALL\x20SELECT\x201\x20UNION\x20ALL\x20SELECT\x202\x20UNION\x20ALL\x20SELECT\x203\x20UNION\x20ALL\x20SELECT\x204\x20UNION\x20ALL\x20SELECT\x205\x20UNION\x20ALL\x20SELECT\x206\x20UNION\x20ALL\x20SELECT\x207\x20UNION\x20ALL\x20SELECT\x208\x20UNION\x20ALL\x20SELECT\x209)\x20e','\x20\x20\x20\x20resourceId\x20int(11)\x20not\x20null,','final','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201007\x20THEN\x20\x27Sounds\x27','\x20\x20WHERE\x20name\x20in\x20(\x27Plugins\x27,\x20\x27CustomDashboards\x27);','\x20\x20INNER\x20JOIN\x20user_has_mail_accounts\x20u\x20ON\x20u.UserId\x20=\x20x.userId','\x20\x20CONSTRAINT\x20`user_profile_has_sections_ibfk_1`\x20FOREIGN\x20KEY\x20(`userProfileId`)\x20REFERENCES\x20`user_profiles`\x20(`id`)\x20ON\x20DELETE\x20CASCADE\x20ON\x20UPDATE\x20CASCADE','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20END','tail','\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','\x20\x20SELECT\x20x.sectionId,\x20u.MailAccountId,\x20x.userId','\x20\x20\x20\x20SUBSTRING_INDEX(SUBSTRING_INDEX(p.permissions,\x20\x27,\x27,\x20tally.n),\x20\x27,\x27,\x20-1)\x20permission,','\x20\x20INNER\x20JOIN\x20user_has_sms_queues\x20u\x20ON\x20u.UserId\x20=\x20x.userId','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20in\x20(1301,\x201302,\x201303,\x201305,\x201306,\x201307,\x201308)\x20THEN\x20\x27Integrations\x27','STRING','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201005\x20THEN\x20\x27Pauses\x27','INSERT\x20INTO\x20tmpNormalizedPermissions','CREATE\x20TABLE\x20tmpSingleProfiles','\x20\x20`sectionId`\x20int(11)\x20NOT\x20NULL,','\x20\x20WHERE\x20x.sectionId\x20=\x201501\x20AND\x20q.type\x20=\x20\x27outbound\x27;','\x20\x20s.sectionId\x20permission,','\x20\x20\x20\x20insertedSectionId\x20int(11)\x20not\x20null,','prototype','INSERT\x20INTO\x20tmpFinalProfiles','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20in\x20(202,\x20203,\x20204)\x20THEN\x20\x27Staff\x27','\x20\x20userId\x20int(11)','\x20\x20WHERE\x20userId\x20IN\x20(SELECT\x20split.userId','\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\x20permissions\x20text\x20not\x20null','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201012\x20THEN\x20\x27Variables\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20CASE','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20101\x20THEN\x20\x27DELETE\x27','\x20\x20SELECT\x20x.sectionId,\x20u.FaxAccountId,\x20x.userId','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20600\x20THEN\x20\x27DELETE\x27','\x20\x20WHERE\x20u.id\x20=\x20t.userId;','\x20\x20SELECT\x20*','\x20\x20SELECT\x20name,\x20category,\x20sectionId,\x20enabled,\x20autoAssociation,\x20\x27red\x27,\x20now(),\x20now(),\x20userProfileId','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201201\x20THEN\x20\x27Metrics\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20406\x20THEN\x20\x27Voicemails\x27','\x20\x20WHERE\x20name\x20=\x20\x27DELETE\x27;','\x20\x20INNER\x20JOIN\x20tmpExtractedResources\x20cr\x20ON\x20cr.userId\x20=\x20s.userId\x20AND\x20cr.sectionId\x20=\x20s.sectionId\x20AND\x20cr.resourceId\x20IS\x20NOT\x20NULL;','\x20\x20\x20\x20\x20\x20WHEN\x20x.sectionId\x20=\x20902\x20THEN\x20COALESCE((SELECT\x20name\x20FROM\x20fax_accounts\x20WHERE\x20id\x20=\x20x.resourceId),\x27DELETE_MIGRATION\x27)','DROP\x20TABLE\x20IF\x20EXISTS\x20tmpCustomResources;','\x20\x20WHERE\x20x.sectionId\x20=\x20801;','\x20\x20(','\x20\x20SELECT\x20x.sectionId,\x20u.FaxQueueId,\x20x.userId','\x20\x20INNER\x20JOIN\x20user_has_openchannel_queues\x20u\x20ON\x20u.UserId\x20=\x20x.userId','\x20\x20WHERE\x20userId\x20NOT\x20IN\x20(SELECT\x20split.userId','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201008\x20THEN\x20\x27Tags\x27','dropTable','\x20\x20WHERE\x20u.id\x20=\x20f.userId;','\x20\x20\x20\x20resourceId\x20text','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20304\x20THEN\x20\x27GlobalCustomFields\x27','DROP\x20TABLE\x20IF\x20EXISTS\x20tmpNormalizedResources;','\x20\x20\x20\x20\x20\x20END','\x20\x20`createdAt`\x20datetime\x20NOT\x20NULL,','\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','enqueue','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20CASE','\x20\x20INNER\x20JOIN\x20voice_queues\x20q\x20ON\x20u.VoiceQueueId\x20=\x20q.id','exports','\x20\x20WHERE\x20x.sectionId\x20=\x20601;','UPDATE\x20users\x20u,\x20tmpNormalizedPermissions\x20t','\x20\x20\x20\x20p.userIds\x20userId','\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\x20INNER\x20JOIN\x20user_has_sms_accounts\x20u\x20ON\x20u.UserId\x20=\x20x.userId','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20702\x20THEN\x20\x27SmsAccounts\x27','\x20\x20WHERE\x20x.sectionId\x20=\x20701;','\x20\x20WHERE\x20x.sectionId\x20=\x20702;','../config/logger','queryInterface','\x20\x20\x20\x20\x20\x20\x20\x20r.type\x20type,','\x20\x20SET\x20u.userProfileId\x20=\x201','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20in\x20(1001,\x201002,\x201003,\x201004,\x201005,\x201006,\x201007,\x201008,\x201009,\x201010,\x201011,\x201012)\x20THEN\x20\x27Tools\x27','\x20\x20\x20\x20\x20\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)','removeColumn','ALTER\x20TABLE\x20`users`\x20','CREATE\x20TABLE\x20tmpExtractedResources\x20(','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20name\x20=\x20\x27CustomDashboards\x27\x20THEN\x20(sectionId\x20-\x2099999)','\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=\x201003\x20THEN\x20\x27CustomDashboards\x27','\x20\x20INNER\x20JOIN\x20user_has_square_projects\x20u\x20ON\x20u.UserId\x20=\x20x.userId','Added\x20column\x20%s\x20to\x20%s','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20901\x20THEN\x20\x27FaxQueues\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','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20END','\x20\x20\x20\x20\x20\x20WHEN\x20x.sectionId\x20=\x20802\x20THEN\x20COALESCE((SELECT\x20name\x20FROM\x20openchannel_accounts\x20WHERE\x20id\x20=\x20x.resourceId),\x27DELETE_MIGRATION\x27)','\x20\x20WHERE\x20name\x20=\x20\x27DELETE_MIGRATION\x27;','\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\x20between\x2088889\x20AND\x2099999\x20THEN\x20\x27Plugins\x27','\x20\x20SET\x20name\x20=\x20(SELECT','\x20\x20\x20\x20sectionId\x20int(11)\x20not\x20null,','renameColumn','\x20\x20\x20\x20\x20\x20profileId\x20int(11)','\x20\x20\x20\x20insertedId\x20int(11),','catch','\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\x20SELECT\x20x.sectionId,\x20u.VoiceQueueId,\x20x.userId','\x20\x20`id`\x20int(11)\x20NOT\x20NULL\x20AUTO_INCREMENT,','TRUNCATE\x20TABLE\x20tmpPermissions;','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20in\x20(301,\x20302,\x20303,\x20304)\x20THEN\x20\x27ContactManager\x27','sequence','\x20\x20\x20\x20SUBSTRING_INDEX(SUBSTRING_INDEX(t.userIds,\x20\x27,\x27,\x20tally.n),\x20\x27,\x27,\x20-1)\x20userId,',')\x20ENGINE=InnoDB\x20DEFAULT\x20CHARSET=utf8;','\x20\x20\x20\x20\x20\x20\x20\x20ELSE\x20\x27\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','UPDATE\x20users\x20u,\x20tmpFinalProfiles\x20f','\x20\x20\x20\x20\x20\x20resourceId\x20text,','\x20\x20SELECT\x20x.sectionId,\x20u.OpenchannelQueueId,\x20x.userId','\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','INSERT\x20INTO\x20tmpSections','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20in\x20(801,\x20802,\x20810)\x20THEN\x20\x27Openchannel\x27','Removed\x20column\x20%s\x20from\x20%s','\x20\x20INNER\x20JOIN\x20user_has_chat_websites\x20u\x20ON\x20u.UserId\x20=\x20x.userId','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHERE\x20position(\x27,\x27\x20in\x20b.users)\x20=\x200))','UPDATE\x20users\x20u','CREATE\x20TABLE\x20tmpNormalizedSections','ON\x20UPDATE\x20CASCADE','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201600\x20THEN\x20\x27Help\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20),','\x20\x20INNER\x20JOIN\x20user_has_mail_queues\x20u\x20ON\x20u.UserId\x20=\x20x.userId','\x20\x20\x20\x20autoAssociation\x20tinyint\x20not\x20null,','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20810\x20THEN\x20\x27Realtime\x27','addIndex\x20%s\x20%s\x20%s','DROP\x20TABLE\x20IF\x20EXISTS\x20tmpNormalizedSections;','\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','users','\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\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\x20SELECT\x20x.sectionId,\x20u.ChatWebsiteId,\x20x.userId','\x20\x20\x20\x20userId\x20text','\x20\x20\x20\x20\x20\x20permissions\x20text\x20not\x20null,','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201300\x20THEN\x20\x27DELETE\x27','\x20\x20WHERE\x20x.sectionId\x20=\x20901;','\x20\x20GROUP\x20BY\x20userId;','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20in\x20(501,\x20502,\x20510)\x20THEN\x20\x27Chat\x27','\x20\x20SELECT\x20*\x20FROM\x20tmpSingleProfiles;','\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','DELETE\x20FROM\x20tmpNormalizedResources','\x20\x20SELECT\x20cr.resourceId,\x20name,\x20s.insertedId,\x20s.sectionId','\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\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ORDER\x20BY\x20users)\x20b','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20202\x20THEN\x20\x27Agents\x27','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20in\x20(601,\x20602,\x20603,\x20610)\x20THEN\x20\x27Mail\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20FROM\x20(SELECT','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20303\x20THEN\x20\x27Contacts\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\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\x20\x20\x20\x20\x20\x20\x20\x20GROUP\x20BY\x20resourceId,\x20sectionId','\x20\x20KEY\x20`compositeIndex`\x20(`resourceId`,`sectionId`),','\x20\x20\x20\x20\x20\x20WHEN\x20x.sectionId\x20=\x20502\x20THEN\x20COALESCE((SELECT\x20name\x20FROM\x20chat_websites\x20WHERE\x20id\x20=\x20x.resourceId),\x27DELETE_MIGRATION\x27)','\x20\x20`updatedAt`\x20datetime\x20NOT\x20NULL,','util','table\x20dropped\x20%s','\x20\x20KEY\x20`sectionId`\x20(`sectionId`),','join',',(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\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=\x201400\x20THEN\x20\x27Settings\x27','\x20\x20SELECT\x20GROUP_CONCAT(id),\x20permissions,\x20null','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20>=\x20100000\x20THEN\x20\x27Tools\x27','\x20\x20SELECT\x20CONCAT(\x27Profile_\x27,\x20(SELECT\x20(@cnt\x20:=\x20@cnt\x20+\x201)\x20AS\x20rowNumber','\x20\x20`category`\x20varchar(255)\x20NOT\x20NULL,','\x20\x20\x20\x20\x20\x20\x20\x20SUBSTRING_INDEX(SUBSTRING_INDEX(fp.permissions,\x20\x27,\x27,\x20tally.n),\x20\x27,\x27,\x20-1)\x20permission,','\x20\x20\x20\x20userProfileId\x20int(11)\x20not\x20null,','INSERT\x20INTO\x20tally\x20(n)','DROP\x20TABLE\x20IF\x20EXISTS\x20tmpResources;','\x20\x20INNER\x20JOIN\x20user_has_fax_queues\x20u\x20ON\x20u.UserId\x20=\x20x.userId','INSERT\x20INTO\x20tmpGroupedPermissions','\x20\x20KEY\x20`userProfileId`\x20(`userProfileId`),','\x20\x20\x20\x20\x20\x20userIds\x20varchar(255)\x20not\x20null,','\x20\x20SET\x20autoAssociation\x20=\x201\x20WHERE\x20sectionId\x20=\x20100;','\x20\x20WHERE\x20x.sectionId\x20=\x201103;','\x20\x20\x20\x20\x20\x20\x20\x20SUBSTRING_INDEX(SUBSTRING_INDEX(r.resourceId,\x20\x27,\x27,\x20tally.n),\x20\x27,\x27,\x20-1)\x20resourceId,','\x20\x20\x20\x20\x20\x20WHEN\x20name\x20=\x20\x27Plugins\x27\x20THEN\x20(sectionId\x20-\x2088888)','\x20\x20\x20\x20name\x20varchar(255)\x20not\x20null,','\x20\x20FROM\x20tmpGroupedPermissions','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ORDER\x20BY\x20n)\x20as\x20split','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20408\x20THEN\x20\x27VoiceRecordings\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20GROUP\x20BY\x20resourceId,\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\x20FROM\x20tally\x20t','INSERT\x20INTO\x20tmpExtractedResources','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20701\x20THEN\x20\x27SmsQueues\x27','\x20\x20WHERE\x20role\x20=\x20\x27user\x27\x20and\x20permissions\x20is\x20not\x20null\x20and\x20permissions\x20<>\x20\x27\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201303\x20THEN\x20\x27FreshdeskAccounts\x27','DELETE\x20FROM\x20tmpSections','\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)','INSERT\x20INTO\x20tmpPermissions','CREATE\x20TABLE\x20`user_profiles`\x20(','query','INSERT\x20INTO\x20user_profiles\x20(name,\x20crudPermissions,\x20createdAt,\x20updatedAt)','\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\x20WHEN\x20sectionId\x20=\x201004\x20THEN\x20\x27Intervals\x27','reportId','\x20\x20INNER\x20JOIN\x20user_has_openchannel_accounts\x20u\x20ON\x20u.UserId\x20=\x20x.userId','\x20\x20FROM\x20users','\x20\x20`enabled`\x20tinyint(1)\x20DEFAULT\x20NULL,',',(SELECT\x200\x20AS\x20N\x20UNION\x20ALL\x20SELECT\x201\x20UNION\x20ALL\x20SELECT\x202\x20UNION\x20ALL\x20SELECT\x203\x20UNION\x20ALL\x20SELECT\x204\x20UNION\x20ALL\x20SELECT\x205\x20UNION\x20ALL\x20SELECT\x206\x20UNION\x20ALL\x20SELECT\x207\x20UNION\x20ALL\x20SELECT\x208\x20UNION\x20ALL\x20SELECT\x209)\x20b','INSERT\x20INTO\x20tmpNormalizedResources','\x20\x20n\x20INT\x20NOT\x20NULL\x20AUTO_INCREMENT\x20PRIMARY\x20KEY','finally','\x20\x20`resourceId`\x20int(11)\x20NOT\x20NULL,','\x20\x20SET\x20insertedId\x20=\x20(SELECT','DROP\x20TABLE\x20IF\x20EXISTS\x20tmpSharedProfiles;','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201102\x20THEN\x20\x27SquareRecordings\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20SUBSTRING_INDEX(SUBSTRING_INDEX(r.userIds,\x20\x27,\x27,\x20t.n),\x20\x27,\x27,\x20-1)\x20userId','\x20\x20INNER\x20JOIN\x20user_has_fax_accounts\x20u\x20ON\x20u.UserId\x20=\x20x.userId','\x20\x20SELECT\x20DISTINCT\x20permission,\x20userId,\x200','\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=\x20401\x20THEN\x20\x27VoiceQueues\x27','\x20\x20SELECT\x20\x27\x27,\x20resourceId,\x20type,\x20insertedSectionId,\x20sectionId','Changed\x20column\x20%s\x20in\x20table\x20%s','removeIndex\x20%s\x20%s','\x20\x20FROM\x20tmpFinalProfiles;','\x20\x20\x20\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`sectionId`\x20int(11)\x20DEFAULT\x20NULL,','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20100\x20THEN\x20\x27Dashboards\x27','CREATE\x20TABLE\x20tmpGroupedPermissions','\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','addIndex','\x20\x20ORDER\x20BY\x20n)\x20AS\x20split;','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20in\x20(701,\x20702,\x20710)\x20THEN\x20\x27Sms\x27','INSERT\x20INTO\x20tmpNormalizedSections','\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\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\x20SET\x20profileId\x20=\x20(SELECT\x20(@cnt\x20:=\x20@cnt\x20+\x201)\x20AS\x20rowNumber','\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=\x201510\x20THEN\x20\x27Realtime\x27','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201400\x20THEN\x20\x27Settings\x27','userProfileId','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20201\x20THEN\x20\x27DELETE\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20802\x20THEN\x20\x27OpenchannelAccounts\x27','\x20\x20`name`\x20varchar(255)\x20NOT\x20NULL,','\x20\x20FROM\x20tmpCustomResources;','\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\x20SELECT\x20x.sectionId,\x20u.SquareProjectId,\x20x.userId','\x20\x20CROSS\x20JOIN\x20(SELECT\x20@cnt\x20:=\x200)\x20as\x20dummy\x20LIMIT\x201)),\x20\x27red\x27,\x20now(),\x20now()','info','\x20\x20FROM\x20tmpNormalizedResources;','CREATE\x20TABLE\x20tmpSections','INSERT\x20INTO\x20tmpSharedProfiles','\x20\x20\x20\x20userId\x20int(11)\x20not\x20null','\x20\x20FROM\x20tmpSections\x20s','UPDATE\x20tmpCustomResources\x20r,\x20tmpSections\x20s','addColumn','\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','VALUES\x20(\x27Default\x27,\x20\x27red\x27,\x20NULL,\x20NOW(),\x20NOW());','INSERT\x20INTO\x20user_profile_has_sections\x20(name,\x20category,\x20sectionId,\x20enabled,\x20autoAssociation,\x20crudPermissions,\x20createdAt,\x20updatedAt,\x20userProfileId)','DROP\x20TABLE\x20IF\x20EXISTS\x20tmpExtractedResources;','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20);','DELETE\x20t1\x20FROM\x20tmpSections\x20t1,\x20tmpCustomResources\x20t2','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20302\x20THEN\x20\x27Companies\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\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\x20SELECT\x20GROUP_CONCAT(sectionId\x20ORDER\x20BY\x20sectionId),\x20userId','\x20\x20);','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20301\x20THEN\x20\x27Lists\x27','\x20\x20`description`\x20varchar(255)\x20DEFAULT\x20NULL,','\x20\x20WHERE\x20x.sectionId\x20=\x20401\x20AND\x20q.type\x20=\x20\x27inbound\x27;','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201009\x20THEN\x20\x27Templates\x27','\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=\x20601\x20THEN\x20\x27MailQueues\x27','\x20\x20END','\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',',(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','CREATE\x20TABLE\x20`user_profile_has_resources`\x20(','\x20\x20ORDER\x20BY\x20id;','\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=\x20801\x20THEN\x20\x27OpenchannelQueues\x27','\x20\x20PRIMARY\x20KEY\x20(`id`),','name','\x20\x20FROM\x20tmpFinalProfiles\x20t','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20between\x2088889\x20AND\x2099999\x20THEN\x20\x27AppZone\x27','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20100\x20THEN\x20\x27Dashboards\x27','CREATE\x20TABLE\x20tmpFinalProfiles','\x20\x20KEY\x20`compositeIndex`\x20(`sectionId`,`userProfileId`),','voice_voicemail','\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','removeIndex','\x20\x20UNION','\x20\x20FROM\x20(SELECT','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20200\x20THEN\x20\x27DELETE\x27','\x20\x20sectionId\x20int(11)\x20not\x20null,','\x20\x20INNER\x20JOIN\x20user_has_voice_queues\x20u\x20ON\x20u.UserId\x20=\x20x.userId','\x20\x20\x20\x20\x20\x20\x20\x20FROM\x20tally','\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\x20SELECT\x20x.sectionId,\x20u.SmsQueueId,\x20x.userId','\x20\x20\x20\x20\x20\x20\x20\x20SUBSTRING_INDEX(fp.userId,\x20\x27,\x27,\x201)\x20userId','UPDATE\x20tmpSections','\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\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','inspect','\x20\x20\x20\x20\x20\x20\x20\x20INNER\x20JOIN\x20tmpFinalProfiles\x20fp\x20ON\x20CHAR_LENGTH(fp.permissions)\x20-\x20CHAR_LENGTH(REPLACE(fp.permissions,\x20\x27,\x27,\x20\x27\x27))\x20>=\x20tally.n-1','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20501\x20THEN\x20\x27ChatQueues\x27','DROP\x20TABLE\x20IF\x20EXISTS\x20tmpSingleProfiles;','\x20\x20SET\x20r.sectionId\x20=\x20s.insertedId','\x20\x20\x20\x20\x20\x20userId\x20text\x20not\x20null,','\x20\x20SELECT\x20name,\x20resourceId,\x20type,\x20now(),\x20now(),\x20insertedSectionId','then','\x20\x20FROM\x20user_profiles\x20u','ADD\x20CONSTRAINT\x20`users_ibfk_1`\x20','\x20\x20WHERE\x20x.sectionId\x20=\x20602;','INSERT\x20INTO\x20user_profile_has_resources\x20(name,\x20resourceId,\x20type,\x20createdAt,\x20updatedAt,\x20sectionId)','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=\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(SELECT\x20GROUP_CONCAT(userId\x20ORDER\x20BY\x20userId\x20ASC)\x20as\x20users','\x20\x20\x20\x20\x20\x20sectionId\x20int(11)','\x20\x20\x20\x20userId\x20text,','\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','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(SELECT\x20GROUP_CONCAT(userId\x20ORDER\x20BY\x20userId\x20ASC)\x20AS\x20users','\x20\x20UNIQUE\x20KEY\x20`name`\x20(`name`)','\x20\x20SELECT\x20permission,\x20userId,\x200','\x20\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\x20GROUP_CONCAT(userId),\x20permissions,\x20null','INTEGER','\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;','\x20\x20\x20\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\x20SET\x20u.permissions\x20=\x20t.permissions','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20in\x20(1501,\x201502,\x201510)\x20THEN\x20\x27MotionDialer\x27','\x20\x20\x20\x20sectionId\x20int(11)','\x20\x20ORDER\x20BY\x20GROUP_CONCAT(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\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=\x201010\x20THEN\x20\x27Triggers\x27','\x20\x20SELECT\x20userId,\x20permissions','\x20\x20SET\x20sectionId\x20=\x201801\x20WHERE\x20sectionId\x20between\x2088889\x20AND\x2099999;','\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\x20WHEN\x20sectionId\x20=\x20610\x20THEN\x20\x27Realtime\x27','\x20\x20GROUP\x20BY\x20permissions','CREATE\x20TABLE\x20tmpNormalizedPermissions','\x20\x20WHERE\x20x.sectionId\x20=\x20502;','\x20\x20SELECT\x20userId,\x20permissions,\x20null','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ORDER\x20BY\x20n)\x20AS\x20split','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20in\x20(1101,\x201102,\x201103)\x20THEN\x20\x27CallySquare\x27','\x20\x20\x20\x20\x20\x20\x20\x20r.sectionId\x20sectionId','INSERT\x20INTO\x20tmpResources','DROP\x20TABLE\x20IF\x20EXISTS\x20tmpFinalProfiles;','\x20\x20\x20\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`autoAssociation`\x20tinyint(1)\x20DEFAULT\x20NULL,','\x20\x20SET\x20sectionId\x20=\x201003\x20WHERE\x20sectionId\x20>=\x20100000;','\x20\x20\x20\x20category\x20varchar(255)\x20not\x20null,','\x20\x20ORDER\x20BY\x20userId;','stringify','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201701\x20THEN\x20\x27jscripty\x27','\x20\x20\x20\x20\x20\x20WHEN\x20x.sectionId\x20=\x201103\x20THEN\x20COALESCE((SELECT\x20name\x20FROM\x20square_projects\x20WHERE\x20id\x20=\x20x.resourceId),\x27DELETE_MIGRATION\x27)','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201600\x20THEN\x20\x27Help\x27','FOREIGN\x20KEY\x20(`userProfileId`)\x20','reportType','\x20\x20SELECT\x20\x27\x27,\x20insertedId,\x20name,\x20sectionId,\x20null','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20CASE'];(function(_0x17d6a3,_0x272b0c){const _0xe1e2fa=function(_0x171937){while(--_0x171937){_0x17d6a3['push'](_0x17d6a3['shift']());}};_0xe1e2fa(++_0x272b0c);}(a1125_0xe1e2,0x130));const a1125_0x1719=function(_0x17d6a3,_0x272b0c){_0x17d6a3=_0x17d6a3-0x14e;let _0xe1e2fa=a1125_0xe1e2[_0x17d6a3];return _0xe1e2fa;};const a1125_0x125ab7=a1125_0x1719;'use strict';const util=require(a1125_0x125ab7(0x21a)),logger=require(a1125_0x125ab7(0x1c8))('migration'),Sequence=function(){};Sequence[a1125_0x125ab7(0x199)][a1125_0x125ab7(0x1bc)]=function(_0x18cdd8){const _0x2ba01a=a1125_0x125ab7;this[_0x2ba01a(0x18b)]=this[_0x2ba01a(0x18b)]?this[_0x2ba01a(0x18b)][_0x2ba01a(0x24a)](_0x18cdd8):_0x18cdd8();};const Migration=function(_0x321123){const _0x31ac37=a1125_0x125ab7;this[_0x31ac37(0x1c9)]=_0x321123,this[_0x31ac37(0x1e8)]=new Sequence();};Migration[a1125_0x125ab7(0x199)]['changeColumn']=function(_0xebefd8,_0x2cffe5,_0x3c770f){const _0x17eec1=a1125_0x125ab7,_0x4d013e=this;this[_0x17eec1(0x1e8)][_0x17eec1(0x1bc)](function(){const _0xbabf3e=_0x17eec1;return _0x4d013e[_0xbabf3e(0x1c9)]['changeColumn'](_0xebefd8,_0x2cffe5,_0x3c770f)[_0xbabf3e(0x2ac)](function(){const _0x529685=_0xbabf3e;logger[_0x529685(0x26f)](_0x529685(0x255),_0x2cffe5,_0xebefd8);})[_0xbabf3e(0x1e2)](function(_0x3f8a60){const _0x3e8d37=_0xbabf3e;logger['info'](JSON[_0x3e8d37(0x178)](_0x3f8a60));});});},Migration[a1125_0x125ab7(0x199)]['addColumn']=function(_0x1d0fa4,_0x4f3690,_0x57b763){const _0xf3f01f=a1125_0x125ab7,_0x137ab1=this;this[_0xf3f01f(0x1e8)]['enqueue'](function(){const _0x46c625=_0xf3f01f;return _0x137ab1['queryInterface']['addColumn'](_0x1d0fa4,_0x4f3690,_0x57b763)[_0x46c625(0x2ac)](function(){const _0x14f5ec=_0x46c625;logger['info'](_0x14f5ec(0x1d5),_0x4f3690,_0x1d0fa4);})['catch'](function(_0x432003){const _0x290dc2=_0x46c625;logger[_0x290dc2(0x26f)](JSON[_0x290dc2(0x178)](_0x432003));});});},Migration[a1125_0x125ab7(0x199)]['dropTable']=function(_0x42be04){const _0x588b15=a1125_0x125ab7,_0x93ca1e=this;this['sequence'][_0x588b15(0x1bc)](function(){const _0x50c258=_0x588b15;return _0x93ca1e[_0x50c258(0x1c9)][_0x50c258(0x1b4)](_0x42be04,{'force':!![]})[_0x50c258(0x2ac)](function(){const _0x4f1d68=_0x50c258;logger[_0x4f1d68(0x26f)](_0x4f1d68(0x21b),_0x42be04);})[_0x50c258(0x1e2)](function(_0x4bbeb4){const _0x1a1dfc=_0x50c258;logger[_0x1a1dfc(0x26f)](JSON[_0x1a1dfc(0x178)](_0x4bbeb4));});});},Migration[a1125_0x125ab7(0x199)][a1125_0x125ab7(0x25d)]=function(_0x530228,_0x56c536,_0x18dd59){const _0x198f0f=a1125_0x125ab7,_0x1bd715=this;this[_0x198f0f(0x1e8)][_0x198f0f(0x1bc)](function(){const _0x2e9441=_0x198f0f;return _0x1bd715['queryInterface'][_0x2e9441(0x25d)](_0x530228,_0x56c536,{'indexName':_0x18dd59})[_0x2e9441(0x2ac)](function(){const _0xbc503=_0x2e9441;logger[_0xbc503(0x26f)](_0xbc503(0x1fe),_0x530228,_0x56c536[_0xbc503(0x21d)](','),_0x18dd59);})[_0x2e9441(0x1e2)](function(_0x3edb67){const _0x494c32=_0x2e9441;logger[_0x494c32(0x26f)](JSON[_0x494c32(0x178)](_0x3edb67));});});},Migration[a1125_0x125ab7(0x199)][a1125_0x125ab7(0x298)]=function(_0x36c615,_0x3e9247){const _0x3e0288=a1125_0x125ab7,_0x47bd18=this;this[_0x3e0288(0x1e8)][_0x3e0288(0x1bc)](function(){const _0x20299f=_0x3e0288;return _0x47bd18[_0x20299f(0x1c9)][_0x20299f(0x298)](_0x36c615,_0x3e9247)[_0x20299f(0x2ac)](function(){const _0x4a9bfb=_0x20299f;logger[_0x4a9bfb(0x26f)](_0x4a9bfb(0x256),_0x36c615,_0x3e9247);})[_0x20299f(0x1e2)](function(_0x51087a){const _0x32484c=_0x20299f;logger[_0x32484c(0x26f)](JSON[_0x32484c(0x178)](_0x51087a));});});},Migration[a1125_0x125ab7(0x199)]['query']=function(_0x486691){const _0x28ad1e=a1125_0x125ab7,_0x140ce8=this;this[_0x28ad1e(0x1e8)][_0x28ad1e(0x1bc)](function(){const _0x1913c5=_0x28ad1e;return _0x140ce8[_0x1913c5(0x1c9)]['sequelize'][_0x1913c5(0x23f)](_0x486691)[_0x1913c5(0x2ac)](function(){logger['info']('query\x20%s',_0x486691);})[_0x1913c5(0x1e2)](function(_0x3086e1){const _0x4e0d12=_0x1913c5;logger[_0x4e0d12(0x26f)](JSON[_0x4e0d12(0x178)](_0x3086e1));});});},Migration['prototype'][a1125_0x125ab7(0x1ce)]=function(_0x381bd7,_0x54c13c){const _0x5e1187=a1125_0x125ab7,_0x479542=this;this[_0x5e1187(0x1e8)][_0x5e1187(0x1bc)](function(){const _0x150b6c=_0x5e1187;return _0x479542[_0x150b6c(0x1c9)][_0x150b6c(0x1ce)](_0x381bd7,_0x54c13c)[_0x150b6c(0x2ac)](function(){const _0x423975=_0x150b6c;logger[_0x423975(0x26f)](_0x423975(0x1f3),_0x54c13c,_0x381bd7);})[_0x150b6c(0x1e2)](function(_0x286160){const _0x40fa9a=_0x150b6c;logger['info'](util[_0x40fa9a(0x2a5)](_0x286160,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1125_0x125ab7(0x1df)]=function(_0x37e593,_0x5a04b4,_0x4a3ab1){const _0x1ae22c=this;this['sequence']['enqueue'](function(){const _0x45c795=a1125_0x1719;return _0x1ae22c[_0x45c795(0x1c9)][_0x45c795(0x1df)](_0x37e593,_0x5a04b4,_0x4a3ab1)['then'](function(){const _0x15027a=_0x45c795;logger[_0x15027a(0x26f)](_0x15027a(0x155),_0x5a04b4,_0x4a3ab1,_0x37e593);})[_0x45c795(0x1e2)](function(_0x5f451b){const _0x580660=_0x45c795;logger[_0x580660(0x26f)](util[_0x580660(0x2a5)](_0x5f451b,{'showHidden':![],'depth':null}));});});},Migration[a1125_0x125ab7(0x199)][a1125_0x125ab7(0x185)]=function(_0x3fbb24){const _0x3bea51=a1125_0x125ab7;this[_0x3bea51(0x1e8)][_0x3bea51(0x1bc)](function(){return _0x3fbb24();});},module[a1125_0x125ab7(0x1bf)]={'up':function(_0x3968f4,_0x225fa6){return new Promise(function(_0xb2df4c){const _0x400e1a=a1125_0x1719,_0x197ee6=new Migration(_0x3968f4);_0x197ee6['addColumn']('analytics_extracted_reports',_0x400e1a(0x243),{'type':_0x225fa6['INTEGER']}),_0x197ee6[_0x400e1a(0x276)]('analytics_extracted_reports',_0x400e1a(0x17d),{'type':_0x225fa6[_0x400e1a(0x191)]}),_0x197ee6[_0x400e1a(0x276)](_0x400e1a(0x201),_0x400e1a(0x267),{'type':_0x225fa6[_0x400e1a(0x15b)]}),_0x197ee6[_0x400e1a(0x1ce)](_0x400e1a(0x296),_0x400e1a(0x290)),_0x197ee6[_0x400e1a(0x23f)](_0x400e1a(0x23e)+_0x400e1a(0x1e5)+_0x400e1a(0x26a)+'\x20\x20`crudPermissions`\x20varchar(255)\x20NOT\x20NULL\x20DEFAULT\x20\x27r\x27,'+_0x400e1a(0x283)+'\x20\x20`createdAt`\x20datetime\x20NOT\x20NULL,'+_0x400e1a(0x219)+_0x400e1a(0x28f)+_0x400e1a(0x157)+_0x400e1a(0x1ea)),_0x197ee6[_0x400e1a(0x23f)]('INSERT\x20INTO\x20`user_profiles`\x20(`name`,\x20`crudPermissions`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)'+_0x400e1a(0x278)),_0x197ee6['query'](_0x400e1a(0x1cf)+_0x400e1a(0x2ae)+_0x400e1a(0x17c)+_0x400e1a(0x14f)+_0x400e1a(0x1f8)),_0x197ee6[_0x400e1a(0x23f)]('CREATE\x20TABLE\x20`user_profile_has_sections`\x20('+'\x20\x20`id`\x20int(11)\x20NOT\x20NULL\x20AUTO_INCREMENT,'+_0x400e1a(0x26a)+_0x400e1a(0x224)+_0x400e1a(0x195)+_0x400e1a(0x246)+_0x400e1a(0x174)+_0x400e1a(0x20f)+_0x400e1a(0x1ba)+_0x400e1a(0x219)+'\x20\x20`userProfileId`\x20int(11)\x20DEFAULT\x20NULL,'+_0x400e1a(0x28f)+_0x400e1a(0x22b)+_0x400e1a(0x295)+_0x400e1a(0x189)+')\x20ENGINE=InnoDB\x20DEFAULT\x20CHARSET=utf8;'),_0x197ee6[_0x400e1a(0x23f)](_0x400e1a(0x28b)+_0x400e1a(0x1e5)+_0x400e1a(0x26a)+_0x400e1a(0x24b)+'\x20\x20`type`\x20varchar(255)\x20NOT\x20NULL,'+_0x400e1a(0x1ba)+_0x400e1a(0x219)+_0x400e1a(0x259)+_0x400e1a(0x28f)+_0x400e1a(0x21c)+_0x400e1a(0x217)+'\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'+_0x400e1a(0x1ea)),_0x197ee6[_0x400e1a(0x23f)]('CREATE\x20TABLE\x20tally\x20('+_0x400e1a(0x249)+');'),_0x197ee6[_0x400e1a(0x23f)](_0x400e1a(0x227)+'SELECT\x20NULL\x20FROM'+_0x400e1a(0x1ec)+_0x400e1a(0x247)+_0x400e1a(0x28a)+_0x400e1a(0x21e)+_0x400e1a(0x183)+';'),_0x197ee6[_0x400e1a(0x23f)]('CREATE\x20TABLE\x20tmpPermissions'+'\x20\x20('+_0x400e1a(0x22c)+_0x400e1a(0x206)+_0x400e1a(0x1e0)+_0x400e1a(0x281)),_0x197ee6['query'](_0x400e1a(0x23d)+'\x20\x20SELECT\x20id,\x20permissions,\x20null'+_0x400e1a(0x245)+_0x400e1a(0x239)+_0x400e1a(0x28c)),_0x197ee6[_0x400e1a(0x23f)](_0x400e1a(0x1f7)+_0x400e1a(0x1af)+'\x20\x20\x20\x20sectionId\x20int(11)\x20not\x20null,'+_0x400e1a(0x153)+'\x20\x20\x20\x20resourceId\x20text'+'\x20\x20);'),_0x197ee6[_0x400e1a(0x23f)](_0x400e1a(0x260)+_0x400e1a(0x251)+_0x400e1a(0x29a)+_0x400e1a(0x18e)+_0x400e1a(0x1c2)+_0x400e1a(0x29f)+_0x400e1a(0x25e)),_0x197ee6[_0x400e1a(0x23f)](_0x400e1a(0x16b)+_0x400e1a(0x1af)+'\x20\x20\x20\x20permissions\x20text\x20not\x20null,'+_0x400e1a(0x273)+_0x400e1a(0x281)),_0x197ee6['query'](_0x400e1a(0x193)+_0x400e1a(0x280)+'\x20\x20FROM\x20tmpNormalizedSections'+_0x400e1a(0x209)),_0x197ee6[_0x400e1a(0x23f)](_0x400e1a(0x1c1)+_0x400e1a(0x15f)+_0x400e1a(0x1a5)),_0x197ee6['query'](_0x400e1a(0x1e6)),_0x197ee6['query'](_0x400e1a(0x23d)+_0x400e1a(0x221)+_0x400e1a(0x245)+_0x400e1a(0x239)+'\x20\x20GROUP\x20BY\x20permissions'+'\x20\x20ORDER\x20BY\x20GROUP_CONCAT(id);'),_0x197ee6['query']('CREATE\x20TABLE\x20tmpNormalizedUsers'+'\x20\x20('+_0x400e1a(0x1de)+_0x400e1a(0x153)+_0x400e1a(0x1b6)+_0x400e1a(0x281)),_0x197ee6['query']('INSERT\x20INTO\x20tmpNormalizedUsers'+_0x400e1a(0x158)+_0x400e1a(0x29a)+_0x400e1a(0x197)+'\x20\x20\x20\x20\x20\x20SUBSTRING_INDEX(SUBSTRING_INDEX(s.userId,\x20\x27,\x27,\x20t.n),\x20\x27,\x27,\x20-1)\x20userId'+'\x20\x20FROM\x20tally\x20t\x20INNER\x20JOIN\x20tmpNormalizedSections\x20s\x20ON\x20CHAR_LENGTH(s.userId)\x20-\x20CHAR_LENGTH(REPLACE(s.userId,\x20\x27,\x27,\x20\x27\x27))\x20>=\x20t.n-1'+'\x20\x20ORDER\x20BY\x20n)\x20AS\x20split;'),_0x197ee6['query'](_0x400e1a(0x1d0)+_0x400e1a(0x29c)+'\x20\x20resourceId\x20int(11),'+_0x400e1a(0x19c)+'\x20\x20);'),_0x197ee6[_0x400e1a(0x23f)](_0x400e1a(0x237)+_0x400e1a(0x1e4)+_0x400e1a(0x286)+_0x400e1a(0x29d)+'\x20\x20INNER\x20JOIN\x20voice_queues\x20q\x20ON\x20u.VoiceQueueId\x20=\x20q.id'+_0x400e1a(0x284)),_0x197ee6[_0x400e1a(0x23f)](_0x400e1a(0x237)+'\x20\x20SELECT\x20x.sectionId,\x20u.ChatQueueId,\x20x.userId'+_0x400e1a(0x286)+'\x20\x20INNER\x20JOIN\x20user_has_chat_queues\x20u\x20ON\x20u.UserId\x20=\x20x.userId'+'\x20\x20WHERE\x20x.sectionId\x20=\x20501;'),_0x197ee6['query'](_0x400e1a(0x237)+_0x400e1a(0x204)+_0x400e1a(0x286)+_0x400e1a(0x1f4)+_0x400e1a(0x16c)),_0x197ee6[_0x400e1a(0x23f)](_0x400e1a(0x237)+'\x20\x20SELECT\x20x.sectionId,\x20u.MailQueueId,\x20x.userId'+_0x400e1a(0x286)+_0x400e1a(0x1fb)+_0x400e1a(0x1c0)),_0x197ee6[_0x400e1a(0x23f)](_0x400e1a(0x237)+_0x400e1a(0x18d)+_0x400e1a(0x286)+_0x400e1a(0x188)+_0x400e1a(0x2af)),_0x197ee6[_0x400e1a(0x23f)](_0x400e1a(0x237)+_0x400e1a(0x2a0)+'\x20\x20FROM\x20tmpNormalizedUsers\x20x'+_0x400e1a(0x18f)+_0x400e1a(0x1c6)),_0x197ee6[_0x400e1a(0x23f)](_0x400e1a(0x237)+'\x20\x20SELECT\x20x.sectionId,\x20u.SmsAccountId,\x20x.userId'+'\x20\x20FROM\x20tmpNormalizedUsers\x20x'+_0x400e1a(0x1c4)+_0x400e1a(0x1c7)),_0x197ee6['query'](_0x400e1a(0x237)+_0x400e1a(0x1ef)+_0x400e1a(0x286)+_0x400e1a(0x1b1)+_0x400e1a(0x1ae)),_0x197ee6['query'](_0x400e1a(0x237)+'\x20\x20SELECT\x20x.sectionId,\x20u.OpenchannelAccountId,\x20x.userId'+_0x400e1a(0x286)+_0x400e1a(0x244)+'\x20\x20WHERE\x20x.sectionId\x20=\x20802;'),_0x197ee6[_0x400e1a(0x23f)](_0x400e1a(0x237)+_0x400e1a(0x1b0)+_0x400e1a(0x286)+_0x400e1a(0x229)+_0x400e1a(0x208)),_0x197ee6['query']('INSERT\x20INTO\x20tmpExtractedResources'+_0x400e1a(0x1a3)+_0x400e1a(0x286)+_0x400e1a(0x250)+'\x20\x20WHERE\x20x.sectionId\x20=\x20902;'),_0x197ee6[_0x400e1a(0x23f)](_0x400e1a(0x237)+_0x400e1a(0x26d)+_0x400e1a(0x286)+_0x400e1a(0x1d4)+_0x400e1a(0x22e)),_0x197ee6[_0x400e1a(0x23f)](_0x400e1a(0x237)+_0x400e1a(0x1e4)+_0x400e1a(0x286)+_0x400e1a(0x29d)+_0x400e1a(0x1be)+_0x400e1a(0x196)),_0x197ee6[_0x400e1a(0x23f)](_0x400e1a(0x25b)+_0x400e1a(0x1af)+_0x400e1a(0x2aa)+_0x400e1a(0x19f)+_0x400e1a(0x281)),_0x197ee6[_0x400e1a(0x23f)](_0x400e1a(0x22a)+_0x400e1a(0x166)+_0x400e1a(0x29a)+_0x400e1a(0x1e9)+'\x20\x20\x20\x20t.permissions\x20permissions'+_0x400e1a(0x203)+_0x400e1a(0x25e)),_0x197ee6[_0x400e1a(0x23f)]('CREATE\x20TABLE\x20tmpSharedProfiles'+_0x400e1a(0x1af)+_0x400e1a(0x22c)+_0x400e1a(0x206)+_0x400e1a(0x1e0)+_0x400e1a(0x281)),_0x197ee6[_0x400e1a(0x23f)](_0x400e1a(0x272)+_0x400e1a(0x15a)+_0x400e1a(0x232)+_0x400e1a(0x1b2)+_0x400e1a(0x213)+_0x400e1a(0x24f)+_0x400e1a(0x236)+_0x400e1a(0x173)+_0x400e1a(0x15e)+_0x400e1a(0x16e)+'\x20\x20WHERE\x20split.userId\x20IN\x20(SELECT\x20*\x20FROM'+_0x400e1a(0x156)+_0x400e1a(0x215)+_0x400e1a(0x216)+_0x400e1a(0x159)+_0x400e1a(0x1f5)+_0x400e1a(0x16a)+_0x400e1a(0x162)),_0x197ee6[_0x400e1a(0x23f)](_0x400e1a(0x194)+'\x20\x20('+_0x400e1a(0x2aa)+_0x400e1a(0x206)+_0x400e1a(0x1e0)+'\x20\x20);'),_0x197ee6[_0x400e1a(0x23f)]('INSERT\x20INTO\x20tmpSingleProfiles'+_0x400e1a(0x16d)+_0x400e1a(0x232)+_0x400e1a(0x19d)+'\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'+_0x400e1a(0x2a4)+'\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'+_0x400e1a(0x233)+'\x20\x20WHERE\x20split.userId\x20IN\x20(SELECT\x20*\x20FROM'+_0x400e1a(0x151)+'\x20\x20\x20\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'+_0x400e1a(0x235)+_0x400e1a(0x210)+_0x400e1a(0x258)+_0x400e1a(0x177)),_0x197ee6[_0x400e1a(0x23f)](_0x400e1a(0x294)+'\x20\x20('+'\x20\x20\x20\x20\x20\x20userId\x20text\x20not\x20null,'+'\x20\x20\x20\x20\x20\x20permissions\x20text\x20not\x20null,'+_0x400e1a(0x1e0)+_0x400e1a(0x281)),_0x197ee6[_0x400e1a(0x23f)](_0x400e1a(0x19a)+'\x20\x20SELECT\x20*\x20FROM\x20tmpSharedProfiles'+_0x400e1a(0x299)+_0x400e1a(0x20b)),_0x197ee6['query'](_0x400e1a(0x240)+_0x400e1a(0x223)+_0x400e1a(0x291)+_0x400e1a(0x26e)+_0x400e1a(0x257)),_0x197ee6[_0x400e1a(0x23f)]('UPDATE\x20tmpFinalProfiles'+_0x400e1a(0x263)+_0x400e1a(0x2ad)+'\x20\x20CROSS\x20JOIN\x20(SELECT\x20@cnt\x20:=\x201)\x20as\x20dummy\x20LIMIT\x201)'),_0x197ee6[_0x400e1a(0x23f)](_0x400e1a(0x271)+_0x400e1a(0x1af)+_0x400e1a(0x231)+'\x20\x20\x20\x20category\x20varchar(255)\x20not\x20null,'+_0x400e1a(0x1de)+_0x400e1a(0x241)+_0x400e1a(0x1fc)+_0x400e1a(0x226)+'\x20\x20\x20\x20insertedId\x20int(11),'+_0x400e1a(0x205)+_0x400e1a(0x281)),_0x197ee6[_0x400e1a(0x23f)](_0x400e1a(0x1f1)+'\x20\x20SELECT\x20\x27\x27,\x20\x27\x27,\x20permission,\x201,\x200,\x20profileId,\x20null,\x20userId'+_0x400e1a(0x29a)+'\x20\x20\x20\x20\x20\x20\x20\x20fp.profileId\x20profileId,'+_0x400e1a(0x225)+_0x400e1a(0x2a1)+_0x400e1a(0x29e)+_0x400e1a(0x2a6)+'\x20\x20\x20\x20\x20\x20\x20\x20ORDER\x20BY\x20n)\x20AS\x20split;'),_0x197ee6[_0x400e1a(0x23f)]('UPDATE\x20tmpSections'+'\x20\x20SET'+_0x400e1a(0x168)+_0x400e1a(0x17f)+_0x400e1a(0x25a)+_0x400e1a(0x1a2)+_0x400e1a(0x29b)+_0x400e1a(0x268)+_0x400e1a(0x211)+_0x400e1a(0x15c)+_0x400e1a(0x261)+'\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'+_0x400e1a(0x282)+_0x400e1a(0x27d)+_0x400e1a(0x214)+_0x400e1a(0x1b7)+_0x400e1a(0x18c)+_0x400e1a(0x253)+'\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'+_0x400e1a(0x150)+'\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'+_0x400e1a(0x27f)+_0x400e1a(0x1a9)+'\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'+_0x400e1a(0x234)+'\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'+_0x400e1a(0x202)+'\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'+_0x400e1a(0x1f0)+_0x400e1a(0x2a7)+'\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'+_0x400e1a(0x1db)+_0x400e1a(0x1a4)+_0x400e1a(0x287)+'\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'+_0x400e1a(0x1c3)+_0x400e1a(0x169)+'\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'+_0x400e1a(0x238)+_0x400e1a(0x1c5)+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20710\x20THEN\x20\x27Realtime\x27'+'\x20\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'+_0x400e1a(0x28e)+_0x400e1a(0x269)+_0x400e1a(0x1fd)+'\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'+_0x400e1a(0x1d6)+_0x400e1a(0x1e3)+'\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'+_0x400e1a(0x277)+_0x400e1a(0x1d7)+'\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'+_0x400e1a(0x1d3)+_0x400e1a(0x242)+_0x400e1a(0x192)+'\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'+_0x400e1a(0x186)+_0x400e1a(0x1b3)+_0x400e1a(0x285)+_0x400e1a(0x165)+_0x400e1a(0x163)+_0x400e1a(0x1a0)+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201100\x20THEN\x20\x27DELETE\x27'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201101\x20THEN\x20\x27ODBC\x27'+_0x400e1a(0x24e)+_0x400e1a(0x20c)+'\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'+_0x400e1a(0x1a8)+_0x400e1a(0x1bb)+'\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'+_0x400e1a(0x207)+'\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\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201302\x20THEN\x20\x27SalesforceAccounts\x27'+_0x400e1a(0x23a)+'\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'+_0x400e1a(0x297)+_0x400e1a(0x21f)+'\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'+_0x400e1a(0x220)+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20in\x20(1401,\x201402,\x201403,\x201404,\x201405,\x201406,\x201407)\x20THEN\x20\x27DELETE\x27'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\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=\x201501\x20THEN\x20\x27QueueCampaigns\x27'+_0x400e1a(0x25c)+_0x400e1a(0x265)+_0x400e1a(0x17b)+_0x400e1a(0x200)+'\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'+_0x400e1a(0x26c)+_0x400e1a(0x1dc)+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20>=\x20100000\x20THEN\x20\x27CustomDashboards\x27'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ELSE\x20\x27\x27'+_0x400e1a(0x18a)+_0x400e1a(0x1fa)+'\x20\x20category\x20=\x20(SELECT'+'\x20\x20\x20\x20\x20\x20CASE'+_0x400e1a(0x293)+_0x400e1a(0x222)+_0x400e1a(0x19b)+_0x400e1a(0x1e7)+'\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'+_0x400e1a(0x20a)+_0x400e1a(0x212)+_0x400e1a(0x25f)+_0x400e1a(0x1f2)+_0x400e1a(0x181)+_0x400e1a(0x1cc)+_0x400e1a(0x16f)+'\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20in\x20(1201,\x201202,\x201203)\x20THEN\x20\x27Analytics\x27'+_0x400e1a(0x190)+_0x400e1a(0x266)+_0x400e1a(0x160)+_0x400e1a(0x1f9)+_0x400e1a(0x179)+_0x400e1a(0x292)+_0x400e1a(0x1eb)+_0x400e1a(0x1b9)+'\x20\x20);'),_0x197ee6['query'](_0x400e1a(0x23b)+_0x400e1a(0x1aa)),_0x197ee6[_0x400e1a(0x23f)]('CREATE\x20TABLE\x20tmpCustomResources'+_0x400e1a(0x1af)+'\x20\x20\x20\x20name\x20varchar(255)\x20not\x20null,'+_0x400e1a(0x176)+_0x400e1a(0x1de)+_0x400e1a(0x241)+'\x20\x20\x20\x20autoAssociation\x20tinyint\x20not\x20null,'+_0x400e1a(0x226)+_0x400e1a(0x1e1)+'\x20\x20\x20\x20userId\x20text'+'\x20\x20);'),_0x197ee6[_0x400e1a(0x23f)](_0x400e1a(0x182)+_0x400e1a(0x1a6)+'\x20\x20FROM\x20tmpSections'+_0x400e1a(0x187)),_0x197ee6['query'](_0x400e1a(0x27c)+'\x20\x20WHERE\x20t1.name\x20=\x20t2.name\x20AND\x20t1.userProfileId\x20=\x20t2.userProfileId\x20AND\x20t1.sectionId\x20>\x20t2.sectionId;'),_0x197ee6[_0x400e1a(0x23f)](_0x400e1a(0x2a2)+_0x400e1a(0x167)),_0x197ee6[_0x400e1a(0x23f)](_0x400e1a(0x2a2)+_0x400e1a(0x175)),_0x197ee6[_0x400e1a(0x23f)]('UPDATE\x20tmpSections'+_0x400e1a(0x22d)),_0x197ee6[_0x400e1a(0x23f)]('UPDATE\x20tmpCustomResources'+_0x400e1a(0x24c)+_0x400e1a(0x1a1)+_0x400e1a(0x230)+_0x400e1a(0x1d1)+_0x400e1a(0x1d8)+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20);'),_0x197ee6[_0x400e1a(0x23f)](_0x400e1a(0x279)+_0x400e1a(0x1a7)+'\x20\x20FROM\x20tmpSections;'),_0x197ee6[_0x400e1a(0x23f)]('UPDATE\x20tmpSections\x20s'+_0x400e1a(0x264)+_0x400e1a(0x154)+'\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);'),_0x197ee6[_0x400e1a(0x23f)](_0x400e1a(0x275)+_0x400e1a(0x2a9)+'\x20\x20WHERE\x20r.name\x20=\x20s.name\x20AND\x20r.userProfileId\x20=\x20s.userProfileId;'),_0x197ee6[_0x400e1a(0x23f)]('CREATE\x20TABLE\x20tmpResources'+_0x400e1a(0x1af)+_0x400e1a(0x1ee)+_0x400e1a(0x28d)+_0x400e1a(0x1d2)+_0x400e1a(0x152)+_0x400e1a(0x281)),_0x197ee6[_0x400e1a(0x23f)](_0x400e1a(0x171)+_0x400e1a(0x20e)+_0x400e1a(0x274)+_0x400e1a(0x1ab)),_0x197ee6['query']('CREATE\x20TABLE\x20tmpNormalizedResources'+_0x400e1a(0x1af)+_0x400e1a(0x231)+_0x400e1a(0x184)+'\x20\x20\x20\x20type\x20varchar(255)\x20not\x20null,'+_0x400e1a(0x198)+_0x400e1a(0x161)+_0x400e1a(0x281)),_0x197ee6[_0x400e1a(0x23f)](_0x400e1a(0x248)+_0x400e1a(0x254)+_0x400e1a(0x29a)+_0x400e1a(0x22f)+_0x400e1a(0x1ca)+'\x20\x20\x20\x20\x20\x20\x20\x20r.insertedSectionId\x20insertedSectionId,'+_0x400e1a(0x170)+_0x400e1a(0x29e)+_0x400e1a(0x289)+'\x20\x20\x20\x20\x20\x20\x20\x20ORDER\x20BY\x20n)\x20AS\x20split;'),_0x197ee6['query']('INSERT\x20INTO\x20tmpNormalizedResources'+_0x400e1a(0x17e)+_0x400e1a(0x26b)),_0x197ee6[_0x400e1a(0x23f)]('UPDATE\x20tmpNormalizedResources\x20x'+_0x400e1a(0x1dd)+_0x400e1a(0x1bd)+_0x400e1a(0x1cd)+_0x400e1a(0x19e)+_0x400e1a(0x218)+'\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)'+_0x400e1a(0x2a3)+'\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)'+_0x400e1a(0x164)+_0x400e1a(0x23c)+_0x400e1a(0x1d9)+_0x400e1a(0x252)+_0x400e1a(0x1ac)+_0x400e1a(0x17a)+_0x400e1a(0x262)+'\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)'+_0x400e1a(0x27e)+_0x400e1a(0x288)+_0x400e1a(0x27b)),_0x197ee6['query'](_0x400e1a(0x20d)+_0x400e1a(0x1da)),_0x197ee6[_0x400e1a(0x23f)](_0x400e1a(0x14e)+_0x400e1a(0x2ab)+_0x400e1a(0x270)),_0x197ee6['query'](_0x400e1a(0x1ed)+'\x20\x20SET\x20u.userProfileId\x20=\x20f.profileId'+_0x400e1a(0x1b5)),_0x197ee6['query'](_0x400e1a(0x1f6)+_0x400e1a(0x1cb)+_0x400e1a(0x180)),_0x197ee6['query']('\x20DROP\x20TABLE\x20IF\x20EXISTS\x20tally;'),_0x197ee6[_0x400e1a(0x23f)]('DROP\x20TABLE\x20IF\x20EXISTS\x20tmpPermissions;'),_0x197ee6[_0x400e1a(0x23f)](_0x400e1a(0x1ff)),_0x197ee6[_0x400e1a(0x23f)]('DROP\x20TABLE\x20IF\x20EXISTS\x20tmpNormalizedUsers;'),_0x197ee6[_0x400e1a(0x23f)](_0x400e1a(0x27a)),_0x197ee6[_0x400e1a(0x23f)](_0x400e1a(0x15d)),_0x197ee6['query'](_0x400e1a(0x24d)),_0x197ee6[_0x400e1a(0x23f)](_0x400e1a(0x2a8)),_0x197ee6[_0x400e1a(0x23f)](_0x400e1a(0x172)),_0x197ee6[_0x400e1a(0x23f)]('DROP\x20TABLE\x20IF\x20EXISTS\x20tmpSections;'),_0x197ee6['query'](_0x400e1a(0x1ad)),_0x197ee6[_0x400e1a(0x23f)](_0x400e1a(0x228)),_0x197ee6[_0x400e1a(0x23f)](_0x400e1a(0x1b8)),_0x197ee6['final'](_0xb2df4c);});},'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 e0b118e..474c12d 100644 --- a/server/migrations/2.2.0.js +++ b/server/migrations/2.2.0.js @@ -1 +1 @@ -const a964_0x4c95=['finally','plivo','INTEGER','prototype','removeIndex','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','connectel','Changed\x20column\x20%s\x20in\x20table\x20%s','dropTable','info','twilio','../config/logger','final','phoneBarListenPort','type','join','ENUM','skebby','sequence','sequelize','enqueue','Removed\x20column\x20%s\x20from\x20%s','util','intelepeer','csc','exports','renameColumn','addIndex\x20%s\x20%s\x20%s','addColumn','stringify','addIndex','then','clicksend','inspect','removeColumn','changeColumn','clickatell','queryInterface','tail','table\x20dropped\x20%s','catch','Added\x20column\x20%s\x20to\x20%s','query'];(function(_0xe40327,_0x4c95ff){const _0x271675=function(_0x350f98){while(--_0x350f98){_0xe40327['push'](_0xe40327['shift']());}};_0x271675(++_0x4c95ff);}(a964_0x4c95,0x144));const a964_0x2716=function(_0xe40327,_0x4c95ff){_0xe40327=_0xe40327-0x0;let _0x271675=a964_0x4c95[_0xe40327];return _0x271675;};const _0x5226a3=a964_0x2716;'use strict';const util=require(_0x5226a3('0x2a')),logger=require(_0x5226a3('0x1f'))('migration'),Sequence=function(){};Sequence[_0x5226a3('0x17')]['enqueue']=function(_0x350f98){const _0x558642=_0x5226a3;this[_0x558642('0xf')]=this['tail']?this[_0x558642('0xf')][_0x558642('0x14')](_0x350f98):_0x350f98();};const Migration=function(_0x3cbb2f){const _0x4da206=_0x5226a3;this[_0x4da206('0xe')]=_0x3cbb2f,this['sequence']=new Sequence();};Migration[_0x5226a3('0x17')]['changeColumn']=function(_0x1ef245,_0x3dae3a,_0x3e07f9){const _0x5c97d7=_0x5226a3,_0x40d622=this;this[_0x5c97d7('0x26')]['enqueue'](function(){const _0x52f3e4=_0x5c97d7;return _0x40d622[_0x52f3e4('0xe')]['changeColumn'](_0x1ef245,_0x3dae3a,_0x3e07f9)[_0x52f3e4('0x8')](function(){const _0x31bba6=_0x52f3e4;logger[_0x31bba6('0x1d')](_0x31bba6('0x1b'),_0x3dae3a,_0x1ef245);})[_0x52f3e4('0x11')](function(_0x4741e5){const _0x25a01b=_0x52f3e4;logger['info'](JSON[_0x25a01b('0x6')](_0x4741e5));});});},Migration['prototype'][_0x5226a3('0x5')]=function(_0x2f5daf,_0x4e8866,_0x2b6846){const _0x273d6b=_0x5226a3,_0x2bbe1a=this;this[_0x273d6b('0x26')]['enqueue'](function(){const _0x49187f=_0x273d6b;return _0x2bbe1a[_0x49187f('0xe')][_0x49187f('0x5')](_0x2f5daf,_0x4e8866,_0x2b6846)[_0x49187f('0x8')](function(){const _0x23c449=_0x49187f;logger[_0x23c449('0x1d')](_0x23c449('0x12'),_0x4e8866,_0x2f5daf);})[_0x49187f('0x11')](function(_0x3ef50a){const _0x435209=_0x49187f;logger['info'](JSON[_0x435209('0x6')](_0x3ef50a));});});},Migration[_0x5226a3('0x17')][_0x5226a3('0x1c')]=function(_0x320973){const _0x1094c0=_0x5226a3,_0x2123d0=this;this[_0x1094c0('0x26')][_0x1094c0('0x28')](function(){const _0x37ea2c=_0x1094c0;return _0x2123d0['queryInterface'][_0x37ea2c('0x1c')](_0x320973,{'force':!![]})['then'](function(){const _0x8828aa=_0x37ea2c;logger[_0x8828aa('0x1d')](_0x8828aa('0x10'),_0x320973);})[_0x37ea2c('0x11')](function(_0x3b4148){const _0x575c65=_0x37ea2c;logger[_0x575c65('0x1d')](JSON[_0x575c65('0x6')](_0x3b4148));});});},Migration[_0x5226a3('0x17')][_0x5226a3('0x7')]=function(_0x2522ab,_0x2f08d7,_0x3c6246){const _0x53b98c=_0x5226a3,_0xfa27a1=this;this[_0x53b98c('0x26')][_0x53b98c('0x28')](function(){const _0x35cf8b=_0x53b98c;return _0xfa27a1[_0x35cf8b('0xe')]['addIndex'](_0x2522ab,_0x2f08d7,{'indexName':_0x3c6246})[_0x35cf8b('0x8')](function(){const _0x34a943=_0x35cf8b;logger[_0x34a943('0x1d')](_0x34a943('0x4'),_0x2522ab,_0x2f08d7[_0x34a943('0x23')](','),_0x3c6246);})[_0x35cf8b('0x11')](function(_0x3b113a){const _0x221d49=_0x35cf8b;logger[_0x221d49('0x1d')](JSON['stringify'](_0x3b113a));});});},Migration['prototype']['removeIndex']=function(_0x44df64,_0x44ff12){const _0x2a0c87=_0x5226a3,_0x4b9e1a=this;this[_0x2a0c87('0x26')][_0x2a0c87('0x28')](function(){const _0x264e04=_0x2a0c87;return _0x4b9e1a[_0x264e04('0xe')][_0x264e04('0x18')](_0x44df64,_0x44ff12)[_0x264e04('0x8')](function(){const _0x5a994d=_0x264e04;logger[_0x5a994d('0x1d')]('removeIndex\x20%s\x20%s',_0x44df64,_0x44ff12);})[_0x264e04('0x11')](function(_0x116a35){const _0x4e1c38=_0x264e04;logger[_0x4e1c38('0x1d')](JSON[_0x4e1c38('0x6')](_0x116a35));});});},Migration['prototype']['query']=function(_0x492399){const _0x4f5f56=_0x5226a3,_0x15bc58=this;this[_0x4f5f56('0x26')][_0x4f5f56('0x28')](function(){const _0x119114=_0x4f5f56;return _0x15bc58[_0x119114('0xe')][_0x119114('0x27')][_0x119114('0x13')](_0x492399)[_0x119114('0x8')](function(){logger['info']('query\x20%s',_0x492399);})['catch'](function(_0xb90157){const _0x2c6918=_0x119114;logger[_0x2c6918('0x1d')](JSON['stringify'](_0xb90157));});});},Migration[_0x5226a3('0x17')][_0x5226a3('0xb')]=function(_0x3911c1,_0x347739){const _0x316ef5=_0x5226a3,_0x54e5dd=this;this[_0x316ef5('0x26')][_0x316ef5('0x28')](function(){const _0x4e67dc=_0x316ef5;return _0x54e5dd['queryInterface'][_0x4e67dc('0xb')](_0x3911c1,_0x347739)[_0x4e67dc('0x8')](function(){const _0x15e836=_0x4e67dc;logger[_0x15e836('0x1d')](_0x15e836('0x29'),_0x347739,_0x3911c1);})['catch'](function(_0x4c47e9){const _0x5d60e5=_0x4e67dc;logger[_0x5d60e5('0x1d')](util[_0x5d60e5('0xa')](_0x4c47e9,{'showHidden':![],'depth':null}));});});},Migration[_0x5226a3('0x17')]['renameColumn']=function(_0x357b79,_0x2bb8d8,_0x5e6b4c){const _0x3f9382=_0x5226a3,_0x1c6df9=this;this[_0x3f9382('0x26')][_0x3f9382('0x28')](function(){const _0x53e7c0=_0x3f9382;return _0x1c6df9['queryInterface'][_0x53e7c0('0x3')](_0x357b79,_0x2bb8d8,_0x5e6b4c)[_0x53e7c0('0x8')](function(){const _0x1c79dd=_0x53e7c0;logger[_0x1c79dd('0x1d')](_0x1c79dd('0x19'),_0x2bb8d8,_0x5e6b4c,_0x357b79);})[_0x53e7c0('0x11')](function(_0x4eefff){const _0x752551=_0x53e7c0;logger[_0x752551('0x1d')](util[_0x752551('0xa')](_0x4eefff,{'showHidden':![],'depth':null}));});});},Migration['prototype']['final']=function(_0x4de84c){const _0xa103fb=_0x5226a3;this['sequence'][_0xa103fb('0x28')](function(){return _0x4de84c();});},module[_0x5226a3('0x2')]={'up':function(_0x45db04,_0x12d7f9){return new Promise(function(_0x1b1d8e){const _0x50e0dc=a964_0x2716,_0x502d45=new Migration(_0x45db04);_0x502d45['changeColumn']('sms_accounts',_0x50e0dc('0x22'),{'type':_0x12d7f9[_0x50e0dc('0x24')](_0x50e0dc('0x1e'),_0x50e0dc('0x25'),_0x50e0dc('0x1a'),_0x50e0dc('0x9'),_0x50e0dc('0x15'),_0x50e0dc('0xd'),_0x50e0dc('0x1'),'infobip',_0x50e0dc('0x0'))}),_0x502d45[_0x50e0dc('0xc')]('users',_0x50e0dc('0x21'),{'type':_0x12d7f9[_0x50e0dc('0x16')](0x5),'defaultValue':0x1428}),_0x502d45[_0x50e0dc('0x20')](_0x1b1d8e);});},'down':function(){}}; \ No newline at end of file +const a1126_0x373a=['phoneBarListenPort','intelepeer','csc','dropTable','Changed\x20column\x20%s\x20in\x20table\x20%s','join','removeIndex','renameColumn','query','table\x20dropped\x20%s','tail','prototype','ENUM','clicksend','info','inspect','addColumn','infobip','removeIndex\x20%s\x20%s','users','sequence','stringify','Removed\x20column\x20%s\x20from\x20%s','changeColumn','then','addIndex','removeColumn','catch','INTEGER','queryInterface','sms_accounts','sequelize','Added\x20column\x20%s\x20to\x20%s','enqueue','connectel','migration','skebby','final','plivo'];(function(_0x5e4055,_0x25043d){const _0x373abb=function(_0x5760d6){while(--_0x5760d6){_0x5e4055['push'](_0x5e4055['shift']());}};_0x373abb(++_0x25043d);}(a1126_0x373a,0x8f));const a1126_0x5760=function(_0x5e4055,_0x25043d){_0x5e4055=_0x5e4055-0x1a7;let _0x373abb=a1126_0x373a[_0x5e4055];return _0x373abb;};const a1126_0x32d90a=a1126_0x5760;'use strict';const util=require('util'),logger=require('../config/logger')(a1126_0x32d90a(0x1b0)),Sequence=function(){};Sequence[a1126_0x32d90a(0x1bf)][a1126_0x32d90a(0x1ae)]=function(_0x224b99){const _0x45ab80=a1126_0x32d90a;this[_0x45ab80(0x1be)]=this[_0x45ab80(0x1be)]?this['tail']['finally'](_0x224b99):_0x224b99();};const Migration=function(_0x22bc9b){const _0x11458c=a1126_0x32d90a;this['queryInterface']=_0x22bc9b,this[_0x11458c(0x1c8)]=new Sequence();};Migration['prototype'][a1126_0x32d90a(0x1cb)]=function(_0x388184,_0x352fd2,_0x37972a){const _0x4365e2=a1126_0x32d90a,_0x29580=this;this[_0x4365e2(0x1c8)][_0x4365e2(0x1ae)](function(){const _0x2ab8f4=_0x4365e2;return _0x29580[_0x2ab8f4(0x1aa)][_0x2ab8f4(0x1cb)](_0x388184,_0x352fd2,_0x37972a)[_0x2ab8f4(0x1cc)](function(){const _0x591dfc=_0x2ab8f4;logger[_0x591dfc(0x1c2)](_0x591dfc(0x1b8),_0x352fd2,_0x388184);})[_0x2ab8f4(0x1a8)](function(_0x830e00){const _0x2ba63b=_0x2ab8f4;logger[_0x2ba63b(0x1c2)](JSON['stringify'](_0x830e00));});});},Migration[a1126_0x32d90a(0x1bf)][a1126_0x32d90a(0x1c4)]=function(_0x3df440,_0x16e548,_0x3ceca3){const _0x3f622a=a1126_0x32d90a,_0x45341e=this;this[_0x3f622a(0x1c8)][_0x3f622a(0x1ae)](function(){const _0x10aa56=_0x3f622a;return _0x45341e[_0x10aa56(0x1aa)][_0x10aa56(0x1c4)](_0x3df440,_0x16e548,_0x3ceca3)[_0x10aa56(0x1cc)](function(){const _0x7442e9=_0x10aa56;logger[_0x7442e9(0x1c2)](_0x7442e9(0x1ad),_0x16e548,_0x3df440);})['catch'](function(_0x287e98){const _0x221fc5=_0x10aa56;logger['info'](JSON[_0x221fc5(0x1c9)](_0x287e98));});});},Migration[a1126_0x32d90a(0x1bf)][a1126_0x32d90a(0x1b7)]=function(_0x6f4238){const _0x3faa8d=a1126_0x32d90a,_0xe7a694=this;this[_0x3faa8d(0x1c8)][_0x3faa8d(0x1ae)](function(){const _0x293a49=_0x3faa8d;return _0xe7a694[_0x293a49(0x1aa)][_0x293a49(0x1b7)](_0x6f4238,{'force':!![]})['then'](function(){const _0x57273a=_0x293a49;logger[_0x57273a(0x1c2)](_0x57273a(0x1bd),_0x6f4238);})['catch'](function(_0x11e521){const _0xfd2798=_0x293a49;logger[_0xfd2798(0x1c2)](JSON[_0xfd2798(0x1c9)](_0x11e521));});});},Migration[a1126_0x32d90a(0x1bf)][a1126_0x32d90a(0x1cd)]=function(_0xb9650e,_0x2070b5,_0x454538){const _0x75e430=a1126_0x32d90a,_0x451364=this;this[_0x75e430(0x1c8)][_0x75e430(0x1ae)](function(){const _0x1570ce=_0x75e430;return _0x451364[_0x1570ce(0x1aa)]['addIndex'](_0xb9650e,_0x2070b5,{'indexName':_0x454538})[_0x1570ce(0x1cc)](function(){const _0x1c2e60=_0x1570ce;logger[_0x1c2e60(0x1c2)]('addIndex\x20%s\x20%s\x20%s',_0xb9650e,_0x2070b5[_0x1c2e60(0x1b9)](','),_0x454538);})[_0x1570ce(0x1a8)](function(_0x4dceac){const _0x5280fc=_0x1570ce;logger[_0x5280fc(0x1c2)](JSON[_0x5280fc(0x1c9)](_0x4dceac));});});},Migration['prototype']['removeIndex']=function(_0x4db36a,_0x3d942c){const _0x2da2e8=a1126_0x32d90a,_0xe14afc=this;this[_0x2da2e8(0x1c8)][_0x2da2e8(0x1ae)](function(){const _0x44dbd1=_0x2da2e8;return _0xe14afc[_0x44dbd1(0x1aa)][_0x44dbd1(0x1ba)](_0x4db36a,_0x3d942c)[_0x44dbd1(0x1cc)](function(){const _0x3defbf=_0x44dbd1;logger[_0x3defbf(0x1c2)](_0x3defbf(0x1c6),_0x4db36a,_0x3d942c);})['catch'](function(_0x2e56df){const _0x30c374=_0x44dbd1;logger[_0x30c374(0x1c2)](JSON[_0x30c374(0x1c9)](_0x2e56df));});});},Migration[a1126_0x32d90a(0x1bf)][a1126_0x32d90a(0x1bc)]=function(_0x18b26d){const _0x350687=a1126_0x32d90a,_0x53fc0e=this;this[_0x350687(0x1c8)][_0x350687(0x1ae)](function(){const _0x3ac1db=_0x350687;return _0x53fc0e[_0x3ac1db(0x1aa)][_0x3ac1db(0x1ac)][_0x3ac1db(0x1bc)](_0x18b26d)[_0x3ac1db(0x1cc)](function(){const _0x50dcd9=_0x3ac1db;logger[_0x50dcd9(0x1c2)]('query\x20%s',_0x18b26d);})['catch'](function(_0x844ece){const _0x36fdd4=_0x3ac1db;logger[_0x36fdd4(0x1c2)](JSON[_0x36fdd4(0x1c9)](_0x844ece));});});},Migration[a1126_0x32d90a(0x1bf)][a1126_0x32d90a(0x1a7)]=function(_0x4340c9,_0x1b8702){const _0x578a7a=a1126_0x32d90a,_0x28cd80=this;this[_0x578a7a(0x1c8)]['enqueue'](function(){const _0x747435=_0x578a7a;return _0x28cd80['queryInterface'][_0x747435(0x1a7)](_0x4340c9,_0x1b8702)[_0x747435(0x1cc)](function(){const _0x3d27f0=_0x747435;logger[_0x3d27f0(0x1c2)](_0x3d27f0(0x1ca),_0x1b8702,_0x4340c9);})[_0x747435(0x1a8)](function(_0x23ae27){const _0x503e88=_0x747435;logger[_0x503e88(0x1c2)](util['inspect'](_0x23ae27,{'showHidden':![],'depth':null}));});});},Migration[a1126_0x32d90a(0x1bf)][a1126_0x32d90a(0x1bb)]=function(_0x29d72d,_0x4242ee,_0x5aeed4){const _0x862186=a1126_0x32d90a,_0x4c396=this;this[_0x862186(0x1c8)][_0x862186(0x1ae)](function(){const _0x3adac1=_0x862186;return _0x4c396[_0x3adac1(0x1aa)][_0x3adac1(0x1bb)](_0x29d72d,_0x4242ee,_0x5aeed4)['then'](function(){logger['info']('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x4242ee,_0x5aeed4,_0x29d72d);})[_0x3adac1(0x1a8)](function(_0x40fb81){const _0x20f8f6=_0x3adac1;logger[_0x20f8f6(0x1c2)](util[_0x20f8f6(0x1c3)](_0x40fb81,{'showHidden':![],'depth':null}));});});},Migration[a1126_0x32d90a(0x1bf)][a1126_0x32d90a(0x1b2)]=function(_0x544c85){this['sequence']['enqueue'](function(){return _0x544c85();});},module['exports']={'up':function(_0x51010b,_0x2e5d50){return new Promise(function(_0x28f1b0){const _0x1a724c=a1126_0x5760,_0x5e9858=new Migration(_0x51010b);_0x5e9858[_0x1a724c(0x1cb)](_0x1a724c(0x1ab),'type',{'type':_0x2e5d50[_0x1a724c(0x1c0)]('twilio',_0x1a724c(0x1b1),_0x1a724c(0x1af),_0x1a724c(0x1c1),_0x1a724c(0x1b3),'clickatell',_0x1a724c(0x1b6),_0x1a724c(0x1c5),_0x1a724c(0x1b5))}),_0x5e9858[_0x1a724c(0x1cb)](_0x1a724c(0x1c7),_0x1a724c(0x1b4),{'type':_0x2e5d50[_0x1a724c(0x1a9)](0x5),'defaultValue':0x1428}),_0x5e9858[_0x1a724c(0x1b2)](_0x28f1b0);});},'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 b9aed8f..cb66262 100644 --- a/server/migrations/2.2.1.js +++ b/server/migrations/2.2.1.js @@ -1 +1 @@ -const a965_0x1c23=['then','stringify','table\x20dropped\x20%s','final','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','finally','join','Added\x20column\x20%s\x20to\x20%s','sequence','Changed\x20column\x20%s\x20in\x20table\x20%s','info','prototype','dropTable','queryInterface','addIndex','inspect','changeColumn','removeIndex','query','../config/logger','exports','catch','addIndex\x20%s\x20%s\x20%s','migration','addColumn','enqueue','tail','removeColumn','util','renameColumn','query\x20%s'];(function(_0x343635,_0x1c230e){const _0x2af79c=function(_0x4d07f0){while(--_0x4d07f0){_0x343635['push'](_0x343635['shift']());}};_0x2af79c(++_0x1c230e);}(a965_0x1c23,0x145));const a965_0x2af7=function(_0x343635,_0x1c230e){_0x343635=_0x343635-0x0;let _0x2af79c=a965_0x1c23[_0x343635];return _0x2af79c;};const _0x36fdaa=a965_0x2af7;'use strict';const util=require(_0x36fdaa('0xd')),logger=require(_0x36fdaa('0x4'))(_0x36fdaa('0x8')),Sequence=function(){};Sequence['prototype'][_0x36fdaa('0xa')]=function(_0x4d07f0){const _0x51e82c=_0x36fdaa;this['tail']=this[_0x51e82c('0xb')]?this['tail'][_0x51e82c('0x15')](_0x4d07f0):_0x4d07f0();};const Migration=function(_0x5ebaf7){const _0x5f374b=_0x36fdaa;this[_0x5f374b('0x1d')]=_0x5ebaf7,this['sequence']=new Sequence();};Migration[_0x36fdaa('0x1b')][_0x36fdaa('0x1')]=function(_0x36204a,_0xed96fb,_0x3e042b){const _0x5bde51=_0x36fdaa,_0x15e473=this;this[_0x5bde51('0x18')][_0x5bde51('0xa')](function(){const _0xde08a9=_0x5bde51;return _0x15e473[_0xde08a9('0x1d')]['changeColumn'](_0x36204a,_0xed96fb,_0x3e042b)[_0xde08a9('0x10')](function(){const _0xd456c2=_0xde08a9;logger['info'](_0xd456c2('0x19'),_0xed96fb,_0x36204a);})[_0xde08a9('0x6')](function(_0x12e2e1){const _0x440340=_0xde08a9;logger[_0x440340('0x1a')](JSON[_0x440340('0x11')](_0x12e2e1));});});},Migration[_0x36fdaa('0x1b')]['addColumn']=function(_0x9ae92f,_0x75e62d,_0x1c6174){const _0x1b5461=this;this['sequence']['enqueue'](function(){const _0x596d58=a965_0x2af7;return _0x1b5461[_0x596d58('0x1d')][_0x596d58('0x9')](_0x9ae92f,_0x75e62d,_0x1c6174)['then'](function(){const _0x3f4b4a=_0x596d58;logger[_0x3f4b4a('0x1a')](_0x3f4b4a('0x17'),_0x75e62d,_0x9ae92f);})['catch'](function(_0x23c465){const _0x16361f=_0x596d58;logger['info'](JSON[_0x16361f('0x11')](_0x23c465));});});},Migration[_0x36fdaa('0x1b')]['dropTable']=function(_0x2235cf){const _0x4aaba6=_0x36fdaa,_0x441591=this;this[_0x4aaba6('0x18')][_0x4aaba6('0xa')](function(){const _0x128e33=_0x4aaba6;return _0x441591[_0x128e33('0x1d')][_0x128e33('0x1c')](_0x2235cf,{'force':!![]})[_0x128e33('0x10')](function(){const _0x1468c3=_0x128e33;logger[_0x1468c3('0x1a')](_0x1468c3('0x12'),_0x2235cf);})[_0x128e33('0x6')](function(_0xe954d9){const _0x7641b1=_0x128e33;logger[_0x7641b1('0x1a')](JSON[_0x7641b1('0x11')](_0xe954d9));});});},Migration[_0x36fdaa('0x1b')]['addIndex']=function(_0x3a2ad2,_0x34b9a5,_0x1f9839){const _0x16870f=_0x36fdaa,_0x491cd8=this;this[_0x16870f('0x18')][_0x16870f('0xa')](function(){const _0x441c5e=_0x16870f;return _0x491cd8[_0x441c5e('0x1d')][_0x441c5e('0x1e')](_0x3a2ad2,_0x34b9a5,{'indexName':_0x1f9839})['then'](function(){const _0x53e3dc=_0x441c5e;logger['info'](_0x53e3dc('0x7'),_0x3a2ad2,_0x34b9a5[_0x53e3dc('0x16')](','),_0x1f9839);})[_0x441c5e('0x6')](function(_0x36cc10){const _0x2a3479=_0x441c5e;logger[_0x2a3479('0x1a')](JSON[_0x2a3479('0x11')](_0x36cc10));});});},Migration['prototype'][_0x36fdaa('0x2')]=function(_0xfb319a,_0x58e5cd){const _0x222166=_0x36fdaa,_0x4208e2=this;this[_0x222166('0x18')]['enqueue'](function(){const _0x44305f=_0x222166;return _0x4208e2[_0x44305f('0x1d')][_0x44305f('0x2')](_0xfb319a,_0x58e5cd)[_0x44305f('0x10')](function(){const _0x3d9e77=_0x44305f;logger[_0x3d9e77('0x1a')]('removeIndex\x20%s\x20%s',_0xfb319a,_0x58e5cd);})[_0x44305f('0x6')](function(_0x3d6729){const _0x28be65=_0x44305f;logger[_0x28be65('0x1a')](JSON[_0x28be65('0x11')](_0x3d6729));});});},Migration[_0x36fdaa('0x1b')][_0x36fdaa('0x3')]=function(_0x28a632){const _0x11754a=_0x36fdaa,_0x44390e=this;this[_0x11754a('0x18')]['enqueue'](function(){const _0x5a984e=_0x11754a;return _0x44390e[_0x5a984e('0x1d')]['sequelize'][_0x5a984e('0x3')](_0x28a632)[_0x5a984e('0x10')](function(){const _0x372370=_0x5a984e;logger['info'](_0x372370('0xf'),_0x28a632);})[_0x5a984e('0x6')](function(_0x474d4b){const _0x520936=_0x5a984e;logger['info'](JSON[_0x520936('0x11')](_0x474d4b));});});},Migration[_0x36fdaa('0x1b')][_0x36fdaa('0xc')]=function(_0x41e308,_0x47bb4e){const _0x471eec=_0x36fdaa,_0x3a6c79=this;this[_0x471eec('0x18')]['enqueue'](function(){const _0xaa20ae=_0x471eec;return _0x3a6c79['queryInterface']['removeColumn'](_0x41e308,_0x47bb4e)[_0xaa20ae('0x10')](function(){const _0xee2312=_0xaa20ae;logger[_0xee2312('0x1a')]('Removed\x20column\x20%s\x20from\x20%s',_0x47bb4e,_0x41e308);})[_0xaa20ae('0x6')](function(_0x19d338){const _0xe772ce=_0xaa20ae;logger['info'](util[_0xe772ce('0x0')](_0x19d338,{'showHidden':![],'depth':null}));});});},Migration[_0x36fdaa('0x1b')][_0x36fdaa('0xe')]=function(_0x45d2cd,_0x582020,_0x41bdc8){const _0x2e2d56=_0x36fdaa,_0x399ff1=this;this[_0x2e2d56('0x18')][_0x2e2d56('0xa')](function(){const _0xcc49b4=_0x2e2d56;return _0x399ff1[_0xcc49b4('0x1d')][_0xcc49b4('0xe')](_0x45d2cd,_0x582020,_0x41bdc8)[_0xcc49b4('0x10')](function(){const _0x468b1b=_0xcc49b4;logger['info'](_0x468b1b('0x14'),_0x582020,_0x41bdc8,_0x45d2cd);})[_0xcc49b4('0x6')](function(_0x3242e4){const _0x1c02cd=_0xcc49b4;logger[_0x1c02cd('0x1a')](util[_0x1c02cd('0x0')](_0x3242e4,{'showHidden':![],'depth':null}));});});},Migration['prototype']['final']=function(_0x2c13c4){const _0x3a1064=_0x36fdaa;this[_0x3a1064('0x18')][_0x3a1064('0xa')](function(){return _0x2c13c4();});},module[_0x36fdaa('0x5')]={'up':function(_0x336b8d){return new Promise(function(_0x15add1){const _0xa0bd93=a965_0x2af7,_0x516bee=new Migration(_0x336b8d);_0x516bee[_0xa0bd93('0x13')](_0x15add1);});},'down':function(){}}; \ No newline at end of file +const a1127_0x413f=['removeIndex\x20%s\x20%s','removeColumn','addIndex','Added\x20column\x20%s\x20to\x20%s','removeIndex','tail','then','enqueue','dropTable','inspect','sequence','catch','queryInterface','exports','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','Removed\x20column\x20%s\x20from\x20%s','changeColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','util','sequelize','info','stringify','renameColumn','table\x20dropped\x20%s','query','join','migration','prototype','../config/logger','addColumn','final','finally'];(function(_0x3f208c,_0x51fc40){const _0x413f3f=function(_0x2c7e91){while(--_0x2c7e91){_0x3f208c['push'](_0x3f208c['shift']());}};_0x413f3f(++_0x51fc40);}(a1127_0x413f,0x16a));const a1127_0x2c7e=function(_0x3f208c,_0x51fc40){_0x3f208c=_0x3f208c-0x1f3;let _0x413f3f=a1127_0x413f[_0x3f208c];return _0x413f3f;};const a1127_0xb0d1a5=a1127_0x2c7e;'use strict';const util=require(a1127_0xb0d1a5(0x1fb)),logger=require(a1127_0xb0d1a5(0x205))(a1127_0xb0d1a5(0x203)),Sequence=function(){};Sequence[a1127_0xb0d1a5(0x204)][a1127_0xb0d1a5(0x210)]=function(_0x1b51dc){const _0x54bcb1=a1127_0xb0d1a5;this['tail']=this[_0x54bcb1(0x20e)]?this[_0x54bcb1(0x20e)][_0x54bcb1(0x208)](_0x1b51dc):_0x1b51dc();};const Migration=function(_0x4265a5){const _0x295a4c=a1127_0xb0d1a5;this[_0x295a4c(0x1f5)]=_0x4265a5,this['sequence']=new Sequence();};Migration[a1127_0xb0d1a5(0x204)]['changeColumn']=function(_0xf7579f,_0x1470fd,_0x1b08cd){const _0x3cb6cb=a1127_0xb0d1a5,_0xadaef4=this;this[_0x3cb6cb(0x1f3)][_0x3cb6cb(0x210)](function(){const _0x14d4be=_0x3cb6cb;return _0xadaef4[_0x14d4be(0x1f5)][_0x14d4be(0x1f9)](_0xf7579f,_0x1470fd,_0x1b08cd)[_0x14d4be(0x20f)](function(){const _0x48957c=_0x14d4be;logger['info'](_0x48957c(0x1fa),_0x1470fd,_0xf7579f);})['catch'](function(_0x39dc5d){const _0x2981e0=_0x14d4be;logger[_0x2981e0(0x1fd)](JSON[_0x2981e0(0x1fe)](_0x39dc5d));});});},Migration[a1127_0xb0d1a5(0x204)][a1127_0xb0d1a5(0x206)]=function(_0xfa14f5,_0x44b463,_0x3f65c7){const _0x51fff5=a1127_0xb0d1a5,_0x2200bc=this;this[_0x51fff5(0x1f3)][_0x51fff5(0x210)](function(){const _0x3eba30=_0x51fff5;return _0x2200bc['queryInterface'][_0x3eba30(0x206)](_0xfa14f5,_0x44b463,_0x3f65c7)[_0x3eba30(0x20f)](function(){const _0x48fa14=_0x3eba30;logger[_0x48fa14(0x1fd)](_0x48fa14(0x20c),_0x44b463,_0xfa14f5);})[_0x3eba30(0x1f4)](function(_0x374749){const _0x420aa5=_0x3eba30;logger['info'](JSON[_0x420aa5(0x1fe)](_0x374749));});});},Migration[a1127_0xb0d1a5(0x204)][a1127_0xb0d1a5(0x211)]=function(_0x50739f){const _0x516407=a1127_0xb0d1a5,_0x247ee5=this;this[_0x516407(0x1f3)][_0x516407(0x210)](function(){const _0x27be78=_0x516407;return _0x247ee5[_0x27be78(0x1f5)][_0x27be78(0x211)](_0x50739f,{'force':!![]})['then'](function(){const _0x5d61de=_0x27be78;logger[_0x5d61de(0x1fd)](_0x5d61de(0x200),_0x50739f);})[_0x27be78(0x1f4)](function(_0x4217bf){const _0x129275=_0x27be78;logger[_0x129275(0x1fd)](JSON['stringify'](_0x4217bf));});});},Migration[a1127_0xb0d1a5(0x204)][a1127_0xb0d1a5(0x20b)]=function(_0x5aa866,_0x583413,_0x10f3f6){const _0x170c9a=this;this['sequence']['enqueue'](function(){const _0x2ef273=a1127_0x2c7e;return _0x170c9a[_0x2ef273(0x1f5)][_0x2ef273(0x20b)](_0x5aa866,_0x583413,{'indexName':_0x10f3f6})[_0x2ef273(0x20f)](function(){const _0x4da34c=_0x2ef273;logger[_0x4da34c(0x1fd)]('addIndex\x20%s\x20%s\x20%s',_0x5aa866,_0x583413[_0x4da34c(0x202)](','),_0x10f3f6);})[_0x2ef273(0x1f4)](function(_0x556c94){const _0x31d51b=_0x2ef273;logger[_0x31d51b(0x1fd)](JSON['stringify'](_0x556c94));});});},Migration[a1127_0xb0d1a5(0x204)][a1127_0xb0d1a5(0x20d)]=function(_0x2aa00e,_0x224fee){const _0x2b0e8d=a1127_0xb0d1a5,_0x521b43=this;this[_0x2b0e8d(0x1f3)][_0x2b0e8d(0x210)](function(){const _0x3abbfe=_0x2b0e8d;return _0x521b43[_0x3abbfe(0x1f5)][_0x3abbfe(0x20d)](_0x2aa00e,_0x224fee)['then'](function(){const _0x694a11=_0x3abbfe;logger[_0x694a11(0x1fd)](_0x694a11(0x209),_0x2aa00e,_0x224fee);})[_0x3abbfe(0x1f4)](function(_0x53ca96){const _0x29d425=_0x3abbfe;logger[_0x29d425(0x1fd)](JSON[_0x29d425(0x1fe)](_0x53ca96));});});},Migration[a1127_0xb0d1a5(0x204)][a1127_0xb0d1a5(0x201)]=function(_0x3d87ca){const _0x695e15=a1127_0xb0d1a5,_0x27c615=this;this[_0x695e15(0x1f3)][_0x695e15(0x210)](function(){const _0x3d0f11=_0x695e15;return _0x27c615[_0x3d0f11(0x1f5)][_0x3d0f11(0x1fc)][_0x3d0f11(0x201)](_0x3d87ca)[_0x3d0f11(0x20f)](function(){const _0x22e1ee=_0x3d0f11;logger[_0x22e1ee(0x1fd)]('query\x20%s',_0x3d87ca);})[_0x3d0f11(0x1f4)](function(_0x352d18){const _0x90cc94=_0x3d0f11;logger[_0x90cc94(0x1fd)](JSON[_0x90cc94(0x1fe)](_0x352d18));});});},Migration['prototype'][a1127_0xb0d1a5(0x20a)]=function(_0xd4720c,_0x22309a){const _0x4fadeb=a1127_0xb0d1a5,_0x3a6963=this;this[_0x4fadeb(0x1f3)][_0x4fadeb(0x210)](function(){const _0x7fd63f=_0x4fadeb;return _0x3a6963[_0x7fd63f(0x1f5)][_0x7fd63f(0x20a)](_0xd4720c,_0x22309a)[_0x7fd63f(0x20f)](function(){const _0x30f31a=_0x7fd63f;logger[_0x30f31a(0x1fd)](_0x30f31a(0x1f8),_0x22309a,_0xd4720c);})[_0x7fd63f(0x1f4)](function(_0x3601fa){const _0x28d724=_0x7fd63f;logger[_0x28d724(0x1fd)](util[_0x28d724(0x212)](_0x3601fa,{'showHidden':![],'depth':null}));});});},Migration[a1127_0xb0d1a5(0x204)]['renameColumn']=function(_0x5a2469,_0x3cfe1d,_0x1a8fc3){const _0x218e90=a1127_0xb0d1a5,_0x207ce7=this;this[_0x218e90(0x1f3)]['enqueue'](function(){const _0x4fb009=_0x218e90;return _0x207ce7[_0x4fb009(0x1f5)][_0x4fb009(0x1ff)](_0x5a2469,_0x3cfe1d,_0x1a8fc3)[_0x4fb009(0x20f)](function(){const _0x2579c1=_0x4fb009;logger['info'](_0x2579c1(0x1f7),_0x3cfe1d,_0x1a8fc3,_0x5a2469);})[_0x4fb009(0x1f4)](function(_0x5a1cf8){const _0x14cfa2=_0x4fb009;logger['info'](util[_0x14cfa2(0x212)](_0x5a1cf8,{'showHidden':![],'depth':null}));});});},Migration['prototype']['final']=function(_0x5387dd){const _0x57f03f=a1127_0xb0d1a5;this[_0x57f03f(0x1f3)][_0x57f03f(0x210)](function(){return _0x5387dd();});},module[a1127_0xb0d1a5(0x1f6)]={'up':function(_0x5b8183){return new Promise(function(_0x356e0e){const _0x39e8eb=a1127_0x2c7e,_0x48fb47=new Migration(_0x5b8183);_0x48fb47[_0x39e8eb(0x207)](_0x356e0e);});},'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 f080f77..e808828 100644 --- a/server/migrations/2.2.2.js +++ b/server/migrations/2.2.2.js @@ -1 +1 @@ -const a966_0x4725=['queryInterface','query\x20%s','then','removeColumn','removeIndex','stringify','final','prototype','Removed\x20column\x20%s\x20from\x20%s','renameColumn','dropTable','sequence','util','join','finally','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','tail','inspect','info','addColumn','Added\x20column\x20%s\x20to\x20%s','removeIndex\x20%s\x20%s','catch','changeColumn','exports','addIndex','migration','sequelize','../config/logger','addIndex\x20%s\x20%s\x20%s','enqueue','query'];(function(_0x46ecfe,_0x472579){const _0x58060b=function(_0x2981c3){while(--_0x2981c3){_0x46ecfe['push'](_0x46ecfe['shift']());}};_0x58060b(++_0x472579);}(a966_0x4725,0x12c));const a966_0x5806=function(_0x46ecfe,_0x472579){_0x46ecfe=_0x46ecfe-0x0;let _0x58060b=a966_0x4725[_0x46ecfe];return _0x58060b;};const _0x70d3d0=a966_0x5806;'use strict';const util=require(_0x70d3d0('0x0')),logger=require(_0x70d3d0('0x10'))(_0x70d3d0('0xe')),Sequence=function(){};Sequence['prototype'][_0x70d3d0('0x12')]=function(_0x2981c3){const _0x990a35=_0x70d3d0;this[_0x990a35('0x4')]=this[_0x990a35('0x4')]?this[_0x990a35('0x4')][_0x990a35('0x2')](_0x2981c3):_0x2981c3();};const Migration=function(_0x5d8e42){const _0x12dbde=_0x70d3d0;this['queryInterface']=_0x5d8e42,this[_0x12dbde('0x1f')]=new Sequence();};Migration[_0x70d3d0('0x1b')]['changeColumn']=function(_0x5e1336,_0x1c925f,_0x77061e){const _0x4ff0ec=_0x70d3d0,_0x155ca3=this;this['sequence'][_0x4ff0ec('0x12')](function(){const _0x1cc85c=_0x4ff0ec;return _0x155ca3['queryInterface'][_0x1cc85c('0xb')](_0x5e1336,_0x1c925f,_0x77061e)[_0x1cc85c('0x16')](function(){const _0xbf98a=_0x1cc85c;logger[_0xbf98a('0x6')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x1c925f,_0x5e1336);})[_0x1cc85c('0xa')](function(_0x2f7ca3){const _0x3b25c9=_0x1cc85c;logger[_0x3b25c9('0x6')](JSON[_0x3b25c9('0x19')](_0x2f7ca3));});});},Migration[_0x70d3d0('0x1b')][_0x70d3d0('0x7')]=function(_0x207780,_0x2ef0e5,_0x4ed394){const _0x22e2dc=_0x70d3d0,_0x1e9daa=this;this['sequence'][_0x22e2dc('0x12')](function(){const _0x4f4807=_0x22e2dc;return _0x1e9daa[_0x4f4807('0x14')][_0x4f4807('0x7')](_0x207780,_0x2ef0e5,_0x4ed394)['then'](function(){const _0x5daa33=_0x4f4807;logger['info'](_0x5daa33('0x8'),_0x2ef0e5,_0x207780);})[_0x4f4807('0xa')](function(_0x40cf33){const _0x59503d=_0x4f4807;logger[_0x59503d('0x6')](JSON[_0x59503d('0x19')](_0x40cf33));});});},Migration[_0x70d3d0('0x1b')][_0x70d3d0('0x1e')]=function(_0x31968b){const _0x3f4a64=_0x70d3d0,_0x39675d=this;this[_0x3f4a64('0x1f')]['enqueue'](function(){const _0x498a8c=_0x3f4a64;return _0x39675d['queryInterface']['dropTable'](_0x31968b,{'force':!![]})['then'](function(){const _0x3bd6f4=a966_0x5806;logger[_0x3bd6f4('0x6')]('table\x20dropped\x20%s',_0x31968b);})[_0x498a8c('0xa')](function(_0x27f1e9){const _0x32bae2=_0x498a8c;logger[_0x32bae2('0x6')](JSON['stringify'](_0x27f1e9));});});},Migration['prototype']['addIndex']=function(_0x204b2c,_0x416724,_0x403e50){const _0xb99c80=this;this['sequence']['enqueue'](function(){const _0x332e78=a966_0x5806;return _0xb99c80[_0x332e78('0x14')][_0x332e78('0xd')](_0x204b2c,_0x416724,{'indexName':_0x403e50})[_0x332e78('0x16')](function(){const _0x536e0c=_0x332e78;logger['info'](_0x536e0c('0x11'),_0x204b2c,_0x416724[_0x536e0c('0x1')](','),_0x403e50);})[_0x332e78('0xa')](function(_0x36d76c){const _0x41d8f0=_0x332e78;logger['info'](JSON[_0x41d8f0('0x19')](_0x36d76c));});});},Migration[_0x70d3d0('0x1b')][_0x70d3d0('0x18')]=function(_0x3a97bd,_0x2352d3){const _0x52d893=_0x70d3d0,_0xe94716=this;this['sequence'][_0x52d893('0x12')](function(){const _0x44c57=_0x52d893;return _0xe94716[_0x44c57('0x14')][_0x44c57('0x18')](_0x3a97bd,_0x2352d3)[_0x44c57('0x16')](function(){const _0x4cd315=_0x44c57;logger[_0x4cd315('0x6')](_0x4cd315('0x9'),_0x3a97bd,_0x2352d3);})[_0x44c57('0xa')](function(_0x5ad167){const _0x14395a=_0x44c57;logger['info'](JSON[_0x14395a('0x19')](_0x5ad167));});});},Migration[_0x70d3d0('0x1b')]['query']=function(_0x2b89d4){const _0x12b33e=_0x70d3d0,_0x10292e=this;this[_0x12b33e('0x1f')][_0x12b33e('0x12')](function(){const _0x2e7a48=_0x12b33e;return _0x10292e[_0x2e7a48('0x14')][_0x2e7a48('0xf')][_0x2e7a48('0x13')](_0x2b89d4)['then'](function(){const _0x3498ca=_0x2e7a48;logger[_0x3498ca('0x6')](_0x3498ca('0x15'),_0x2b89d4);})[_0x2e7a48('0xa')](function(_0x533273){const _0x25c21f=_0x2e7a48;logger['info'](JSON[_0x25c21f('0x19')](_0x533273));});});},Migration[_0x70d3d0('0x1b')][_0x70d3d0('0x17')]=function(_0xaa4f64,_0x554520){const _0x2597f1=_0x70d3d0,_0x79f2a5=this;this[_0x2597f1('0x1f')][_0x2597f1('0x12')](function(){const _0x2fac4b=_0x2597f1;return _0x79f2a5[_0x2fac4b('0x14')][_0x2fac4b('0x17')](_0xaa4f64,_0x554520)[_0x2fac4b('0x16')](function(){const _0x1825c4=_0x2fac4b;logger[_0x1825c4('0x6')](_0x1825c4('0x1c'),_0x554520,_0xaa4f64);})[_0x2fac4b('0xa')](function(_0x3eaac4){const _0x29be0e=_0x2fac4b;logger[_0x29be0e('0x6')](util[_0x29be0e('0x5')](_0x3eaac4,{'showHidden':![],'depth':null}));});});},Migration[_0x70d3d0('0x1b')][_0x70d3d0('0x1d')]=function(_0x5ba6b4,_0x14cdfd,_0x4f24db){const _0x430b4d=_0x70d3d0,_0x404692=this;this[_0x430b4d('0x1f')][_0x430b4d('0x12')](function(){const _0x13dd3f=_0x430b4d;return _0x404692[_0x13dd3f('0x14')][_0x13dd3f('0x1d')](_0x5ba6b4,_0x14cdfd,_0x4f24db)[_0x13dd3f('0x16')](function(){const _0x1ba813=_0x13dd3f;logger[_0x1ba813('0x6')](_0x1ba813('0x3'),_0x14cdfd,_0x4f24db,_0x5ba6b4);})[_0x13dd3f('0xa')](function(_0x1e5b34){logger['info'](util['inspect'](_0x1e5b34,{'showHidden':![],'depth':null}));});});},Migration[_0x70d3d0('0x1b')]['final']=function(_0x3dfa1b){this['sequence']['enqueue'](function(){return _0x3dfa1b();});},module[_0x70d3d0('0xc')]={'up':function(_0xde190e){return new Promise(function(_0x11914e){const _0x26d339=a966_0x5806,_0x42d81f=new Migration(_0xde190e);_0x42d81f[_0x26d339('0x1a')](_0x11914e);});},'down':function(){}}; \ No newline at end of file +const a1128_0xb8b5=['sequence','enqueue','prototype','stringify','exports','then','addIndex','inspect','queryInterface','removeIndex','query','info','join','table\x20dropped\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','removeColumn','renameColumn','catch','tail','Added\x20column\x20%s\x20to\x20%s','dropTable','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','finally','final','util','addColumn','../config/logger'];(function(_0x2bca87,_0x4dc72a){const _0xb8b5c4=function(_0x527000){while(--_0x527000){_0x2bca87['push'](_0x2bca87['shift']());}};_0xb8b5c4(++_0x4dc72a);}(a1128_0xb8b5,0x92));const a1128_0x5270=function(_0x2bca87,_0x4dc72a){_0x2bca87=_0x2bca87-0xfd;let _0xb8b5c4=a1128_0xb8b5[_0x2bca87];return _0xb8b5c4;};const a1128_0x26fe8c=a1128_0x5270;'use strict';const util=require(a1128_0x26fe8c(0x10a)),logger=require(a1128_0x26fe8c(0x10c))('migration'),Sequence=function(){};Sequence[a1128_0x26fe8c(0x10f)]['enqueue']=function(_0x505595){const _0x2da0eb=a1128_0x26fe8c;this[_0x2da0eb(0x104)]=this['tail']?this[_0x2da0eb(0x104)][_0x2da0eb(0x108)](_0x505595):_0x505595();};const Migration=function(_0x2b5e01){const _0xbe8c26=a1128_0x26fe8c;this[_0xbe8c26(0x115)]=_0x2b5e01,this[_0xbe8c26(0x10d)]=new Sequence();};Migration[a1128_0x26fe8c(0x10f)]['changeColumn']=function(_0x42cdd8,_0x2c359f,_0x3a9e4d){const _0x5a75f2=a1128_0x26fe8c,_0x2168e1=this;this[_0x5a75f2(0x10d)][_0x5a75f2(0x10e)](function(){const _0x477da2=_0x5a75f2;return _0x2168e1['queryInterface']['changeColumn'](_0x42cdd8,_0x2c359f,_0x3a9e4d)[_0x477da2(0x112)](function(){const _0xa05c34=_0x477da2;logger[_0xa05c34(0xfd)](_0xa05c34(0x100),_0x2c359f,_0x42cdd8);})[_0x477da2(0x103)](function(_0x445756){const _0x19c7b1=_0x477da2;logger[_0x19c7b1(0xfd)](JSON[_0x19c7b1(0x110)](_0x445756));});});},Migration['prototype']['addColumn']=function(_0x3d645c,_0x14037c,_0x3689ae){const _0x28268d=a1128_0x26fe8c,_0x2c101c=this;this[_0x28268d(0x10d)]['enqueue'](function(){const _0x14a7a6=_0x28268d;return _0x2c101c['queryInterface'][_0x14a7a6(0x10b)](_0x3d645c,_0x14037c,_0x3689ae)[_0x14a7a6(0x112)](function(){const _0x393403=_0x14a7a6;logger['info'](_0x393403(0x105),_0x14037c,_0x3d645c);})[_0x14a7a6(0x103)](function(_0x419436){const _0x438ea9=_0x14a7a6;logger[_0x438ea9(0xfd)](JSON[_0x438ea9(0x110)](_0x419436));});});},Migration[a1128_0x26fe8c(0x10f)]['dropTable']=function(_0x3fbe23){const _0x43a81d=a1128_0x26fe8c,_0x16f57b=this;this['sequence'][_0x43a81d(0x10e)](function(){const _0x584a1d=_0x43a81d;return _0x16f57b[_0x584a1d(0x115)][_0x584a1d(0x106)](_0x3fbe23,{'force':!![]})[_0x584a1d(0x112)](function(){const _0x12981c=_0x584a1d;logger[_0x12981c(0xfd)](_0x12981c(0xff),_0x3fbe23);})[_0x584a1d(0x103)](function(_0x43b5b0){const _0x359619=_0x584a1d;logger[_0x359619(0xfd)](JSON[_0x359619(0x110)](_0x43b5b0));});});},Migration['prototype'][a1128_0x26fe8c(0x113)]=function(_0x27bcec,_0x5a15bc,_0x2cadf7){const _0x40d91d=a1128_0x26fe8c,_0x50c7ae=this;this[_0x40d91d(0x10d)][_0x40d91d(0x10e)](function(){const _0xbec493=_0x40d91d;return _0x50c7ae[_0xbec493(0x115)]['addIndex'](_0x27bcec,_0x5a15bc,{'indexName':_0x2cadf7})[_0xbec493(0x112)](function(){const _0x63f132=_0xbec493;logger[_0x63f132(0xfd)]('addIndex\x20%s\x20%s\x20%s',_0x27bcec,_0x5a15bc[_0x63f132(0xfe)](','),_0x2cadf7);})['catch'](function(_0x4fa115){const _0x14a296=_0xbec493;logger[_0x14a296(0xfd)](JSON['stringify'](_0x4fa115));});});},Migration[a1128_0x26fe8c(0x10f)][a1128_0x26fe8c(0x116)]=function(_0x56b46d,_0x17086f){const _0x1a8738=a1128_0x26fe8c,_0x12f394=this;this[_0x1a8738(0x10d)][_0x1a8738(0x10e)](function(){const _0x4d548e=_0x1a8738;return _0x12f394[_0x4d548e(0x115)][_0x4d548e(0x116)](_0x56b46d,_0x17086f)[_0x4d548e(0x112)](function(){const _0x494a3c=_0x4d548e;logger[_0x494a3c(0xfd)]('removeIndex\x20%s\x20%s',_0x56b46d,_0x17086f);})[_0x4d548e(0x103)](function(_0x5ee606){const _0x3968af=_0x4d548e;logger[_0x3968af(0xfd)](JSON['stringify'](_0x5ee606));});});},Migration[a1128_0x26fe8c(0x10f)][a1128_0x26fe8c(0x117)]=function(_0xc5199f){const _0x5b5399=a1128_0x26fe8c,_0x227874=this;this[_0x5b5399(0x10d)][_0x5b5399(0x10e)](function(){const _0x4b1223=_0x5b5399;return _0x227874[_0x4b1223(0x115)]['sequelize'][_0x4b1223(0x117)](_0xc5199f)[_0x4b1223(0x112)](function(){const _0x26d376=_0x4b1223;logger[_0x26d376(0xfd)]('query\x20%s',_0xc5199f);})[_0x4b1223(0x103)](function(_0x4e8ada){const _0x44473c=_0x4b1223;logger[_0x44473c(0xfd)](JSON[_0x44473c(0x110)](_0x4e8ada));});});},Migration[a1128_0x26fe8c(0x10f)]['removeColumn']=function(_0x14c8f1,_0x3011e6){const _0x207f63=a1128_0x26fe8c,_0x29f210=this;this[_0x207f63(0x10d)]['enqueue'](function(){const _0xb502ec=_0x207f63;return _0x29f210[_0xb502ec(0x115)][_0xb502ec(0x101)](_0x14c8f1,_0x3011e6)[_0xb502ec(0x112)](function(){const _0x57e1b3=_0xb502ec;logger[_0x57e1b3(0xfd)]('Removed\x20column\x20%s\x20from\x20%s',_0x3011e6,_0x14c8f1);})[_0xb502ec(0x103)](function(_0x264657){const _0x531db6=_0xb502ec;logger[_0x531db6(0xfd)](util[_0x531db6(0x114)](_0x264657,{'showHidden':![],'depth':null}));});});},Migration['prototype']['renameColumn']=function(_0xe79f64,_0x39b424,_0x428995){const _0x5743ee=a1128_0x26fe8c,_0x5e2ba6=this;this[_0x5743ee(0x10d)][_0x5743ee(0x10e)](function(){const _0x28b0a5=_0x5743ee;return _0x5e2ba6[_0x28b0a5(0x115)][_0x28b0a5(0x102)](_0xe79f64,_0x39b424,_0x428995)['then'](function(){const _0x4e6f9e=_0x28b0a5;logger[_0x4e6f9e(0xfd)](_0x4e6f9e(0x107),_0x39b424,_0x428995,_0xe79f64);})[_0x28b0a5(0x103)](function(_0x5bb6f8){const _0x32a989=_0x28b0a5;logger[_0x32a989(0xfd)](util[_0x32a989(0x114)](_0x5bb6f8,{'showHidden':![],'depth':null}));});});},Migration[a1128_0x26fe8c(0x10f)][a1128_0x26fe8c(0x109)]=function(_0x3d9cac){const _0x15dc2d=a1128_0x26fe8c;this[_0x15dc2d(0x10d)]['enqueue'](function(){return _0x3d9cac();});},module[a1128_0x26fe8c(0x111)]={'up':function(_0x1089f0){return new Promise(function(_0x5c815b){const _0x3a0d22=a1128_0x5270,_0x1c106e=new Migration(_0x1089f0);_0x1c106e[_0x3a0d22(0x109)](_0x5c815b);});},'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 10d7595..ab8918c 100644 --- a/server/migrations/2.2.3.js +++ b/server/migrations/2.2.3.js @@ -1 +1 @@ -const a967_0x4e47=['inspect','STRING','messageId','changeColumn','Removed\x20column\x20%s\x20from\x20%s','tail','then','exports','prototype','renameColumn','mail_messages','table\x20dropped\x20%s','inReplyTo','info','final','sequence','query\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','Added\x20column\x20%s\x20to\x20%s','stringify','enqueue','addColumn','catch','queryInterface','dropTable','removeIndex','addIndex','query','util','removeIndex\x20%s\x20%s','removeColumn','addIndex\x20%s\x20%s\x20%s','finally'];(function(_0x29f04c,_0x4e471f){const _0x530c4a=function(_0x3d46db){while(--_0x3d46db){_0x29f04c['push'](_0x29f04c['shift']());}};_0x530c4a(++_0x4e471f);}(a967_0x4e47,0x64));const a967_0x530c=function(_0x29f04c,_0x4e471f){_0x29f04c=_0x29f04c-0x0;let _0x530c4a=a967_0x4e47[_0x29f04c];return _0x530c4a;};const _0x5cbeee=a967_0x530c;'use strict';const util=require(_0x5cbeee('0x1b')),logger=require('../config/logger')('migration'),Sequence=function(){};Sequence['prototype'][_0x5cbeee('0x13')]=function(_0x3d46db){const _0x5f24e9=_0x5cbeee;this['tail']=this[_0x5f24e9('0x4')]?this[_0x5f24e9('0x4')][_0x5f24e9('0x1f')](_0x3d46db):_0x3d46db();};const Migration=function(_0x5613e3){const _0x1764f3=_0x5cbeee;this['queryInterface']=_0x5613e3,this[_0x1764f3('0xe')]=new Sequence();};Migration['prototype'][_0x5cbeee('0x2')]=function(_0x50f782,_0x435f94,_0x5ecc42){const _0x4e557d=_0x5cbeee,_0xb5a25e=this;this[_0x4e557d('0xe')][_0x4e557d('0x13')](function(){const _0xfa9677=_0x4e557d;return _0xb5a25e[_0xfa9677('0x16')][_0xfa9677('0x2')](_0x50f782,_0x435f94,_0x5ecc42)['then'](function(){const _0x372907=_0xfa9677;logger['info'](_0x372907('0x10'),_0x435f94,_0x50f782);})[_0xfa9677('0x15')](function(_0x499130){const _0x26a419=_0xfa9677;logger['info'](JSON[_0x26a419('0x12')](_0x499130));});});},Migration[_0x5cbeee('0x7')][_0x5cbeee('0x14')]=function(_0x5e7be0,_0x1d261b,_0x5de6f0){const _0x54ee8f=_0x5cbeee,_0x5ddc63=this;this[_0x54ee8f('0xe')][_0x54ee8f('0x13')](function(){const _0x1182d3=_0x54ee8f;return _0x5ddc63['queryInterface'][_0x1182d3('0x14')](_0x5e7be0,_0x1d261b,_0x5de6f0)['then'](function(){const _0x2a527e=_0x1182d3;logger[_0x2a527e('0xc')](_0x2a527e('0x11'),_0x1d261b,_0x5e7be0);})['catch'](function(_0x220cc0){const _0x4f5dd7=_0x1182d3;logger[_0x4f5dd7('0xc')](JSON['stringify'](_0x220cc0));});});},Migration['prototype'][_0x5cbeee('0x17')]=function(_0x1abbd4){const _0x4a84f8=_0x5cbeee,_0x2f2767=this;this[_0x4a84f8('0xe')][_0x4a84f8('0x13')](function(){const _0x4ff7b6=_0x4a84f8;return _0x2f2767['queryInterface'][_0x4ff7b6('0x17')](_0x1abbd4,{'force':!![]})[_0x4ff7b6('0x5')](function(){const _0x4c6b68=_0x4ff7b6;logger[_0x4c6b68('0xc')](_0x4c6b68('0xa'),_0x1abbd4);})[_0x4ff7b6('0x15')](function(_0x1d7dd7){const _0x2dfd68=_0x4ff7b6;logger[_0x2dfd68('0xc')](JSON[_0x2dfd68('0x12')](_0x1d7dd7));});});},Migration[_0x5cbeee('0x7')][_0x5cbeee('0x19')]=function(_0x13a6d6,_0x8243f6,_0x397307){const _0x3ea79f=_0x5cbeee,_0x1de08e=this;this[_0x3ea79f('0xe')][_0x3ea79f('0x13')](function(){const _0x349367=_0x3ea79f;return _0x1de08e[_0x349367('0x16')]['addIndex'](_0x13a6d6,_0x8243f6,{'indexName':_0x397307})['then'](function(){const _0x3a8bc8=_0x349367;logger[_0x3a8bc8('0xc')](_0x3a8bc8('0x1e'),_0x13a6d6,_0x8243f6['join'](','),_0x397307);})[_0x349367('0x15')](function(_0x2e71bb){const _0x3ca633=_0x349367;logger[_0x3ca633('0xc')](JSON[_0x3ca633('0x12')](_0x2e71bb));});});},Migration['prototype']['removeIndex']=function(_0x275774,_0x31df04){const _0x5ca370=_0x5cbeee,_0x50ceed=this;this[_0x5ca370('0xe')][_0x5ca370('0x13')](function(){const _0x9df3a6=_0x5ca370;return _0x50ceed[_0x9df3a6('0x16')][_0x9df3a6('0x18')](_0x275774,_0x31df04)[_0x9df3a6('0x5')](function(){const _0x4e1d81=_0x9df3a6;logger[_0x4e1d81('0xc')](_0x4e1d81('0x1c'),_0x275774,_0x31df04);})[_0x9df3a6('0x15')](function(_0x233af6){const _0xbb77dc=_0x9df3a6;logger[_0xbb77dc('0xc')](JSON[_0xbb77dc('0x12')](_0x233af6));});});},Migration[_0x5cbeee('0x7')]['query']=function(_0x298a4a){const _0x5d4fbe=_0x5cbeee,_0x56cfdd=this;this[_0x5d4fbe('0xe')][_0x5d4fbe('0x13')](function(){const _0x11b4a3=_0x5d4fbe;return _0x56cfdd[_0x11b4a3('0x16')]['sequelize'][_0x11b4a3('0x1a')](_0x298a4a)['then'](function(){const _0x3c889e=_0x11b4a3;logger[_0x3c889e('0xc')](_0x3c889e('0xf'),_0x298a4a);})['catch'](function(_0x4f57a1){const _0x3bb184=_0x11b4a3;logger[_0x3bb184('0xc')](JSON['stringify'](_0x4f57a1));});});},Migration['prototype']['removeColumn']=function(_0x9adb1c,_0x13be50){const _0xee18ea=_0x5cbeee,_0x34a027=this;this[_0xee18ea('0xe')]['enqueue'](function(){const _0x18418d=_0xee18ea;return _0x34a027['queryInterface'][_0x18418d('0x1d')](_0x9adb1c,_0x13be50)['then'](function(){const _0x448eba=_0x18418d;logger['info'](_0x448eba('0x3'),_0x13be50,_0x9adb1c);})[_0x18418d('0x15')](function(_0x1cfd16){const _0x301e07=_0x18418d;logger[_0x301e07('0xc')](util[_0x301e07('0x20')](_0x1cfd16,{'showHidden':![],'depth':null}));});});},Migration[_0x5cbeee('0x7')]['renameColumn']=function(_0x2618b3,_0x4bd5e0,_0x42f5e3){const _0x5ad635=_0x5cbeee,_0xd962b8=this;this[_0x5ad635('0xe')][_0x5ad635('0x13')](function(){const _0x449acf=_0x5ad635;return _0xd962b8[_0x449acf('0x16')][_0x449acf('0x8')](_0x2618b3,_0x4bd5e0,_0x42f5e3)[_0x449acf('0x5')](function(){const _0x1fc828=_0x449acf;logger[_0x1fc828('0xc')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x4bd5e0,_0x42f5e3,_0x2618b3);})[_0x449acf('0x15')](function(_0x5e5bdc){const _0x211084=_0x449acf;logger[_0x211084('0xc')](util['inspect'](_0x5e5bdc,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x5cbeee('0xd')]=function(_0x597675){const _0x45063d=_0x5cbeee;this[_0x45063d('0xe')][_0x45063d('0x13')](function(){return _0x597675();});},module[_0x5cbeee('0x6')]={'up':function(_0xb8176b,_0x5a171d){return new Promise(function(_0x3ce1bd){const _0x585d19=a967_0x530c,_0x40b94e=new Migration(_0xb8176b);_0x40b94e['changeColumn']('mail_interactions',_0x585d19('0xb'),{'type':_0x5a171d[_0x585d19('0x0')](0x1fe)}),_0x40b94e[_0x585d19('0x2')](_0x585d19('0x9'),_0x585d19('0x1'),{'type':_0x5a171d['STRING'](0x1fe)}),_0x40b94e[_0x585d19('0xd')](_0x3ce1bd);});},'down':function(){}}; \ No newline at end of file +const a1129_0x3ced=['Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','migration','info','addIndex','changeColumn','addColumn','dropTable','STRING','mail_interactions','query\x20%s','Removed\x20column\x20%s\x20from\x20%s','then','enqueue','finally','sequelize','join','inReplyTo','queryInterface','tail','Changed\x20column\x20%s\x20in\x20table\x20%s','Added\x20column\x20%s\x20to\x20%s','removeIndex','table\x20dropped\x20%s','catch','removeColumn','stringify','inspect','sequence','mail_messages','renameColumn','messageId','prototype','../config/logger','query'];(function(_0x2e354a,_0x3a9e8c){const _0x3ced87=function(_0x43d160){while(--_0x43d160){_0x2e354a['push'](_0x2e354a['shift']());}};_0x3ced87(++_0x3a9e8c);}(a1129_0x3ced,0x15e));const a1129_0x43d1=function(_0x2e354a,_0x3a9e8c){_0x2e354a=_0x2e354a-0xcf;let _0x3ced87=a1129_0x3ced[_0x2e354a];return _0x3ced87;};const a1129_0x489150=a1129_0x43d1;'use strict';const util=require('util'),logger=require(a1129_0x489150(0xe5))(a1129_0x489150(0xe8)),Sequence=function(){};Sequence[a1129_0x489150(0xe4)][a1129_0x489150(0xd1)]=function(_0x24bb21){const _0x107f07=a1129_0x489150;this['tail']=this['tail']?this[_0x107f07(0xd7)][_0x107f07(0xd2)](_0x24bb21):_0x24bb21();};const Migration=function(_0xc2dec2){const _0x5c6578=a1129_0x489150;this[_0x5c6578(0xd6)]=_0xc2dec2,this[_0x5c6578(0xe0)]=new Sequence();};Migration['prototype']['changeColumn']=function(_0x501d35,_0x40bbfa,_0x49f190){const _0x3764a7=a1129_0x489150,_0x1c6fdd=this;this[_0x3764a7(0xe0)]['enqueue'](function(){const _0x720db6=_0x3764a7;return _0x1c6fdd[_0x720db6(0xd6)][_0x720db6(0xeb)](_0x501d35,_0x40bbfa,_0x49f190)['then'](function(){const _0x4e52ce=_0x720db6;logger['info'](_0x4e52ce(0xd8),_0x40bbfa,_0x501d35);})[_0x720db6(0xdc)](function(_0x49d1b9){const _0x4c17f1=_0x720db6;logger[_0x4c17f1(0xe9)](JSON[_0x4c17f1(0xde)](_0x49d1b9));});});},Migration[a1129_0x489150(0xe4)]['addColumn']=function(_0x538fe0,_0x4f44b6,_0xf10e5){const _0x8f6fdb=a1129_0x489150,_0x4d5ace=this;this[_0x8f6fdb(0xe0)][_0x8f6fdb(0xd1)](function(){const _0x24f2e3=_0x8f6fdb;return _0x4d5ace['queryInterface'][_0x24f2e3(0xec)](_0x538fe0,_0x4f44b6,_0xf10e5)[_0x24f2e3(0xd0)](function(){const _0x2ebe07=_0x24f2e3;logger[_0x2ebe07(0xe9)](_0x2ebe07(0xd9),_0x4f44b6,_0x538fe0);})['catch'](function(_0x51f65e){const _0x36f871=_0x24f2e3;logger[_0x36f871(0xe9)](JSON[_0x36f871(0xde)](_0x51f65e));});});},Migration['prototype'][a1129_0x489150(0xed)]=function(_0xd759e5){const _0x21acf7=a1129_0x489150,_0x415265=this;this[_0x21acf7(0xe0)][_0x21acf7(0xd1)](function(){const _0x370518=_0x21acf7;return _0x415265[_0x370518(0xd6)][_0x370518(0xed)](_0xd759e5,{'force':!![]})[_0x370518(0xd0)](function(){const _0x432609=_0x370518;logger[_0x432609(0xe9)](_0x432609(0xdb),_0xd759e5);})[_0x370518(0xdc)](function(_0x3e2137){const _0x3bb344=_0x370518;logger[_0x3bb344(0xe9)](JSON[_0x3bb344(0xde)](_0x3e2137));});});},Migration[a1129_0x489150(0xe4)]['addIndex']=function(_0x273c2f,_0x3948d5,_0x179f0a){const _0x170b6f=a1129_0x489150,_0x10748d=this;this[_0x170b6f(0xe0)][_0x170b6f(0xd1)](function(){const _0xbb0b3f=_0x170b6f;return _0x10748d[_0xbb0b3f(0xd6)][_0xbb0b3f(0xea)](_0x273c2f,_0x3948d5,{'indexName':_0x179f0a})[_0xbb0b3f(0xd0)](function(){const _0xc08b15=_0xbb0b3f;logger[_0xc08b15(0xe9)]('addIndex\x20%s\x20%s\x20%s',_0x273c2f,_0x3948d5[_0xc08b15(0xd4)](','),_0x179f0a);})['catch'](function(_0x4ba15d){const _0x507761=_0xbb0b3f;logger[_0x507761(0xe9)](JSON['stringify'](_0x4ba15d));});});},Migration[a1129_0x489150(0xe4)]['removeIndex']=function(_0x334dc5,_0x31e2cb){const _0x1a0ebb=a1129_0x489150,_0x1112fa=this;this['sequence'][_0x1a0ebb(0xd1)](function(){const _0x14c2c9=_0x1a0ebb;return _0x1112fa[_0x14c2c9(0xd6)][_0x14c2c9(0xda)](_0x334dc5,_0x31e2cb)[_0x14c2c9(0xd0)](function(){const _0x3fa6e6=_0x14c2c9;logger[_0x3fa6e6(0xe9)]('removeIndex\x20%s\x20%s',_0x334dc5,_0x31e2cb);})[_0x14c2c9(0xdc)](function(_0xdbc2e){const _0x2ed014=_0x14c2c9;logger[_0x2ed014(0xe9)](JSON[_0x2ed014(0xde)](_0xdbc2e));});});},Migration[a1129_0x489150(0xe4)][a1129_0x489150(0xe6)]=function(_0x14b7f1){const _0x4204f3=a1129_0x489150,_0x281b6f=this;this[_0x4204f3(0xe0)][_0x4204f3(0xd1)](function(){const _0x25dda2=_0x4204f3;return _0x281b6f[_0x25dda2(0xd6)][_0x25dda2(0xd3)][_0x25dda2(0xe6)](_0x14b7f1)[_0x25dda2(0xd0)](function(){const _0x138f56=_0x25dda2;logger[_0x138f56(0xe9)](_0x138f56(0xf0),_0x14b7f1);})[_0x25dda2(0xdc)](function(_0x59353d){const _0x2ce064=_0x25dda2;logger[_0x2ce064(0xe9)](JSON['stringify'](_0x59353d));});});},Migration['prototype'][a1129_0x489150(0xdd)]=function(_0x16b1f1,_0x5831dd){const _0x3c8245=a1129_0x489150,_0x4f2be8=this;this[_0x3c8245(0xe0)][_0x3c8245(0xd1)](function(){const _0x50e537=_0x3c8245;return _0x4f2be8['queryInterface']['removeColumn'](_0x16b1f1,_0x5831dd)[_0x50e537(0xd0)](function(){const _0x2cd55d=_0x50e537;logger[_0x2cd55d(0xe9)](_0x2cd55d(0xcf),_0x5831dd,_0x16b1f1);})[_0x50e537(0xdc)](function(_0x1eab73){const _0x588903=_0x50e537;logger[_0x588903(0xe9)](util[_0x588903(0xdf)](_0x1eab73,{'showHidden':![],'depth':null}));});});},Migration[a1129_0x489150(0xe4)][a1129_0x489150(0xe2)]=function(_0x196457,_0x1888ec,_0x552e89){const _0x5ca64d=a1129_0x489150,_0x412baa=this;this[_0x5ca64d(0xe0)][_0x5ca64d(0xd1)](function(){const _0x5a6efb=_0x5ca64d;return _0x412baa[_0x5a6efb(0xd6)][_0x5a6efb(0xe2)](_0x196457,_0x1888ec,_0x552e89)[_0x5a6efb(0xd0)](function(){const _0x47e97f=_0x5a6efb;logger[_0x47e97f(0xe9)](_0x47e97f(0xe7),_0x1888ec,_0x552e89,_0x196457);})[_0x5a6efb(0xdc)](function(_0x5dbd89){const _0x3b9730=_0x5a6efb;logger[_0x3b9730(0xe9)](util['inspect'](_0x5dbd89,{'showHidden':![],'depth':null}));});});},Migration[a1129_0x489150(0xe4)]['final']=function(_0x3aa966){this['sequence']['enqueue'](function(){return _0x3aa966();});},module['exports']={'up':function(_0x44cce8,_0x477f67){return new Promise(function(_0x22c87b){const _0x590cdf=a1129_0x43d1,_0xe2d900=new Migration(_0x44cce8);_0xe2d900[_0x590cdf(0xeb)](_0x590cdf(0xef),_0x590cdf(0xd5),{'type':_0x477f67[_0x590cdf(0xee)](0x1fe)}),_0xe2d900[_0x590cdf(0xeb)](_0x590cdf(0xe1),_0x590cdf(0xe3),{'type':_0x477f67[_0x590cdf(0xee)](0x1fe)}),_0xe2d900['final'](_0x22c87b);});},'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 1356e45..b38b481 100644 --- a/server/migrations/2.2.4.js +++ b/server/migrations/2.2.4.js @@ -1 +1 @@ -const a968_0x2901=['enqueue','removeColumn','finally','join','changeColumn','inspect','ALTER\x20TABLE\x20int_desk_fields\x20add\x20UNIQUE\x20INDEX\x20desk_unique_index\x20(idField,\x20FieldId)','then','ALTER\x20TABLE\x20int_sugarcrm_fields\x20add\x20UNIQUE\x20INDEX\x20sugarcrm_unique_index\x20(idField,\x20FieldId)','util','sequence','ALTER\x20TABLE\x20int_vtiger_fields\x20add\x20UNIQUE\x20INDEX\x20vtiger_unique_index\x20(idField,\x20FieldId)','ALTER\x20TABLE\x20int_salesforce_fields\x20add\x20UNIQUE\x20INDEX\x20salesforce_unique_index\x20(idField,\x20FieldId)','Added\x20column\x20%s\x20to\x20%s','../config/logger','addIndex','ALTER\x20TABLE\x20int_freshdesk_fields\x20add\x20UNIQUE\x20INDEX\x20desk_unique_index\x20(idField,\x20FieldId)','info','queryInterface','query\x20%s','addIndex\x20%s\x20%s\x20%s','renameColumn','dropTable','query','ALTER\x20TABLE\x20int_zoho_fields\x20add\x20UNIQUE\x20INDEX\x20zoho_unique_index\x20(idField,\x20FieldId)','Changed\x20column\x20%s\x20in\x20table\x20%s','removeIndex\x20%s\x20%s','prototype','final','catch','removeIndex','tail','stringify','ALTER\x20TABLE\x20int_zendesk_fields\x20add\x20UNIQUE\x20INDEX\x20zendesk_unique_index\x20(idField,\x20FieldId)'];(function(_0x1c1d9f,_0x290130){const _0x3c731c=function(_0x31997){while(--_0x31997){_0x1c1d9f['push'](_0x1c1d9f['shift']());}};_0x3c731c(++_0x290130);}(a968_0x2901,0x1e4));const a968_0x3c73=function(_0x1c1d9f,_0x290130){_0x1c1d9f=_0x1c1d9f-0x0;let _0x3c731c=a968_0x2901[_0x1c1d9f];return _0x3c731c;};const _0x3ae8a3=a968_0x3c73;'use strict';const util=require(_0x3ae8a3('0x1')),logger=require(_0x3ae8a3('0x6'))('migration'),Sequence=function(){};Sequence['prototype'][_0x3ae8a3('0x1a')]=function(_0x31997){const _0x2b6e66=_0x3ae8a3;this[_0x2b6e66('0x17')]=this[_0x2b6e66('0x17')]?this['tail'][_0x2b6e66('0x1c')](_0x31997):_0x31997();};const Migration=function(_0x67d47a){const _0x21d5a6=_0x3ae8a3;this[_0x21d5a6('0xa')]=_0x67d47a,this['sequence']=new Sequence();};Migration[_0x3ae8a3('0x13')][_0x3ae8a3('0x1e')]=function(_0x1d7eb0,_0x284d47,_0x5da1a8){const _0x7030f7=_0x3ae8a3,_0x57b98e=this;this[_0x7030f7('0x2')][_0x7030f7('0x1a')](function(){const _0x215f78=_0x7030f7;return _0x57b98e[_0x215f78('0xa')][_0x215f78('0x1e')](_0x1d7eb0,_0x284d47,_0x5da1a8)['then'](function(){const _0x32af3b=_0x215f78;logger[_0x32af3b('0x9')](_0x32af3b('0x11'),_0x284d47,_0x1d7eb0);})[_0x215f78('0x15')](function(_0x95e1e0){const _0x2fb5c0=_0x215f78;logger[_0x2fb5c0('0x9')](JSON['stringify'](_0x95e1e0));});});},Migration['prototype']['addColumn']=function(_0x386aa5,_0x301ee4,_0x30a710){const _0x8e4a99=this;this['sequence']['enqueue'](function(){const _0x5e0eb2=a968_0x3c73;return _0x8e4a99[_0x5e0eb2('0xa')]['addColumn'](_0x386aa5,_0x301ee4,_0x30a710)[_0x5e0eb2('0x21')](function(){const _0x181492=_0x5e0eb2;logger[_0x181492('0x9')](_0x181492('0x5'),_0x301ee4,_0x386aa5);})[_0x5e0eb2('0x15')](function(_0xe5fea3){const _0x3b3950=_0x5e0eb2;logger['info'](JSON[_0x3b3950('0x18')](_0xe5fea3));});});},Migration[_0x3ae8a3('0x13')]['dropTable']=function(_0x593536){const _0x1634e7=_0x3ae8a3,_0x8a40af=this;this[_0x1634e7('0x2')][_0x1634e7('0x1a')](function(){const _0x229a26=_0x1634e7;return _0x8a40af[_0x229a26('0xa')][_0x229a26('0xe')](_0x593536,{'force':!![]})[_0x229a26('0x21')](function(){const _0x53337c=_0x229a26;logger[_0x53337c('0x9')]('table\x20dropped\x20%s',_0x593536);})[_0x229a26('0x15')](function(_0x226d9f){const _0x27b836=_0x229a26;logger[_0x27b836('0x9')](JSON[_0x27b836('0x18')](_0x226d9f));});});},Migration['prototype'][_0x3ae8a3('0x7')]=function(_0x2a1911,_0xda9415,_0x2cefa2){const _0x4f5394=_0x3ae8a3,_0x332125=this;this[_0x4f5394('0x2')][_0x4f5394('0x1a')](function(){const _0x361985=_0x4f5394;return _0x332125[_0x361985('0xa')][_0x361985('0x7')](_0x2a1911,_0xda9415,{'indexName':_0x2cefa2})[_0x361985('0x21')](function(){const _0x2e2c78=_0x361985;logger[_0x2e2c78('0x9')](_0x2e2c78('0xc'),_0x2a1911,_0xda9415[_0x2e2c78('0x1d')](','),_0x2cefa2);})['catch'](function(_0xd521e6){const _0xe31149=_0x361985;logger[_0xe31149('0x9')](JSON[_0xe31149('0x18')](_0xd521e6));});});},Migration[_0x3ae8a3('0x13')]['removeIndex']=function(_0x17a997,_0x337e95){const _0xe5de83=_0x3ae8a3,_0x88398a=this;this[_0xe5de83('0x2')][_0xe5de83('0x1a')](function(){const _0x520ee6=_0xe5de83;return _0x88398a[_0x520ee6('0xa')][_0x520ee6('0x16')](_0x17a997,_0x337e95)[_0x520ee6('0x21')](function(){const _0xc7b2ef=_0x520ee6;logger[_0xc7b2ef('0x9')](_0xc7b2ef('0x12'),_0x17a997,_0x337e95);})['catch'](function(_0x266f39){const _0x5b0943=_0x520ee6;logger[_0x5b0943('0x9')](JSON[_0x5b0943('0x18')](_0x266f39));});});},Migration[_0x3ae8a3('0x13')][_0x3ae8a3('0xf')]=function(_0x59ecb9){const _0x51ca7a=_0x3ae8a3,_0x28bc8b=this;this[_0x51ca7a('0x2')]['enqueue'](function(){const _0x41373f=_0x51ca7a;return _0x28bc8b['queryInterface']['sequelize'][_0x41373f('0xf')](_0x59ecb9)['then'](function(){const _0x52add1=_0x41373f;logger[_0x52add1('0x9')](_0x52add1('0xb'),_0x59ecb9);})[_0x41373f('0x15')](function(_0x11aa4d){const _0x4b6b02=_0x41373f;logger[_0x4b6b02('0x9')](JSON[_0x4b6b02('0x18')](_0x11aa4d));});});},Migration[_0x3ae8a3('0x13')][_0x3ae8a3('0x1b')]=function(_0x5eb8e2,_0x18636d){const _0x321f85=_0x3ae8a3,_0x43e874=this;this[_0x321f85('0x2')]['enqueue'](function(){const _0x2cf56f=_0x321f85;return _0x43e874[_0x2cf56f('0xa')]['removeColumn'](_0x5eb8e2,_0x18636d)[_0x2cf56f('0x21')](function(){const _0x3e45a9=_0x2cf56f;logger[_0x3e45a9('0x9')]('Removed\x20column\x20%s\x20from\x20%s',_0x18636d,_0x5eb8e2);})['catch'](function(_0x409950){const _0x5ed652=_0x2cf56f;logger[_0x5ed652('0x9')](util['inspect'](_0x409950,{'showHidden':![],'depth':null}));});});},Migration[_0x3ae8a3('0x13')][_0x3ae8a3('0xd')]=function(_0x44b1e2,_0x30a6c0,_0x1a792d){const _0x4c812b=_0x3ae8a3,_0x111746=this;this['sequence'][_0x4c812b('0x1a')](function(){const _0xcdf9fc=_0x4c812b;return _0x111746[_0xcdf9fc('0xa')]['renameColumn'](_0x44b1e2,_0x30a6c0,_0x1a792d)[_0xcdf9fc('0x21')](function(){const _0x1e864b=_0xcdf9fc;logger[_0x1e864b('0x9')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x30a6c0,_0x1a792d,_0x44b1e2);})[_0xcdf9fc('0x15')](function(_0x4403c5){const _0xa776b6=_0xcdf9fc;logger[_0xa776b6('0x9')](util[_0xa776b6('0x1f')](_0x4403c5,{'showHidden':![],'depth':null}));});});},Migration[_0x3ae8a3('0x13')][_0x3ae8a3('0x14')]=function(_0x5e8926){const _0x61e27b=_0x3ae8a3;this['sequence'][_0x61e27b('0x1a')](function(){return _0x5e8926();});},module['exports']={'up':function(_0x1eba76){return new Promise(function(_0x1c6b35){const _0x5cc278=a968_0x3c73,_0x462ef1=new Migration(_0x1eba76);_0x462ef1[_0x5cc278('0xf')](_0x5cc278('0x20')),_0x462ef1[_0x5cc278('0xf')](_0x5cc278('0x8')),_0x462ef1[_0x5cc278('0xf')](_0x5cc278('0x4')),_0x462ef1[_0x5cc278('0xf')](_0x5cc278('0x0')),_0x462ef1['query'](_0x5cc278('0x3')),_0x462ef1[_0x5cc278('0xf')](_0x5cc278('0x19')),_0x462ef1[_0x5cc278('0xf')](_0x5cc278('0x10')),_0x462ef1[_0x5cc278('0x14')](_0x1c6b35);});},'down':function(){}}; \ No newline at end of file +const a1130_0x2b3d=['renameColumn','Added\x20column\x20%s\x20to\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','util','inspect','ALTER\x20TABLE\x20int_freshdesk_fields\x20add\x20UNIQUE\x20INDEX\x20desk_unique_index\x20(idField,\x20FieldId)','addColumn','removeIndex','ALTER\x20TABLE\x20int_salesforce_fields\x20add\x20UNIQUE\x20INDEX\x20salesforce_unique_index\x20(idField,\x20FieldId)','finally','stringify','then','ALTER\x20TABLE\x20int_zoho_fields\x20add\x20UNIQUE\x20INDEX\x20zoho_unique_index\x20(idField,\x20FieldId)','info','Changed\x20column\x20%s\x20in\x20table\x20%s','ALTER\x20TABLE\x20int_desk_fields\x20add\x20UNIQUE\x20INDEX\x20desk_unique_index\x20(idField,\x20FieldId)','../config/logger','prototype','query','addIndex\x20%s\x20%s\x20%s','removeColumn','Removed\x20column\x20%s\x20from\x20%s','tail','migration','queryInterface','sequence','dropTable','addIndex','ALTER\x20TABLE\x20int_zendesk_fields\x20add\x20UNIQUE\x20INDEX\x20zendesk_unique_index\x20(idField,\x20FieldId)','ALTER\x20TABLE\x20int_sugarcrm_fields\x20add\x20UNIQUE\x20INDEX\x20sugarcrm_unique_index\x20(idField,\x20FieldId)','exports','join','final','catch','enqueue'];(function(_0x3e577a,_0x19349b){const _0x2b3d6a=function(_0x3d6a42){while(--_0x3d6a42){_0x3e577a['push'](_0x3e577a['shift']());}};_0x2b3d6a(++_0x19349b);}(a1130_0x2b3d,0x11b));const a1130_0x3d6a=function(_0x3e577a,_0x19349b){_0x3e577a=_0x3e577a-0x11d;let _0x2b3d6a=a1130_0x2b3d[_0x3e577a];return _0x2b3d6a;};const a1130_0x410514=a1130_0x3d6a;'use strict';const util=require(a1130_0x410514(0x11d)),logger=require(a1130_0x410514(0x12a))(a1130_0x410514(0x131)),Sequence=function(){};Sequence[a1130_0x410514(0x12b)][a1130_0x410514(0x13c)]=function(_0x4d638f){const _0x4c2422=a1130_0x410514;this[_0x4c2422(0x130)]=this[_0x4c2422(0x130)]?this[_0x4c2422(0x130)][_0x4c2422(0x123)](_0x4d638f):_0x4d638f();};const Migration=function(_0x16de65){const _0x361ee6=a1130_0x410514;this[_0x361ee6(0x132)]=_0x16de65,this[_0x361ee6(0x133)]=new Sequence();};Migration['prototype']['changeColumn']=function(_0x39330d,_0x2f9343,_0x4d033c){const _0x4a518f=a1130_0x410514,_0x57cf0c=this;this['sequence'][_0x4a518f(0x13c)](function(){const _0xc221c=_0x4a518f;return _0x57cf0c[_0xc221c(0x132)]['changeColumn'](_0x39330d,_0x2f9343,_0x4d033c)[_0xc221c(0x125)](function(){const _0x1ee6ec=_0xc221c;logger['info'](_0x1ee6ec(0x128),_0x2f9343,_0x39330d);})[_0xc221c(0x13b)](function(_0x1ca035){const _0x1c719e=_0xc221c;logger[_0x1c719e(0x127)](JSON[_0x1c719e(0x124)](_0x1ca035));});});},Migration[a1130_0x410514(0x12b)][a1130_0x410514(0x120)]=function(_0x184f07,_0x17ebad,_0x5999fb){const _0x33b802=a1130_0x410514,_0x46d37d=this;this[_0x33b802(0x133)][_0x33b802(0x13c)](function(){const _0x9e92ab=_0x33b802;return _0x46d37d[_0x9e92ab(0x132)][_0x9e92ab(0x120)](_0x184f07,_0x17ebad,_0x5999fb)[_0x9e92ab(0x125)](function(){const _0x239966=_0x9e92ab;logger[_0x239966(0x127)](_0x239966(0x13e),_0x17ebad,_0x184f07);})[_0x9e92ab(0x13b)](function(_0x498d6d){const _0xf339c3=_0x9e92ab;logger['info'](JSON[_0xf339c3(0x124)](_0x498d6d));});});},Migration[a1130_0x410514(0x12b)][a1130_0x410514(0x134)]=function(_0x4a81c7){const _0x59dd77=a1130_0x410514,_0x5b8524=this;this[_0x59dd77(0x133)][_0x59dd77(0x13c)](function(){const _0x168e80=_0x59dd77;return _0x5b8524[_0x168e80(0x132)][_0x168e80(0x134)](_0x4a81c7,{'force':!![]})[_0x168e80(0x125)](function(){logger['info']('table\x20dropped\x20%s',_0x4a81c7);})[_0x168e80(0x13b)](function(_0x220af2){const _0x33fb7e=_0x168e80;logger[_0x33fb7e(0x127)](JSON[_0x33fb7e(0x124)](_0x220af2));});});},Migration[a1130_0x410514(0x12b)][a1130_0x410514(0x135)]=function(_0x8d7a8f,_0x4c00d4,_0x11b56b){const _0x18bf54=a1130_0x410514,_0xdbd64f=this;this['sequence'][_0x18bf54(0x13c)](function(){const _0x7c6604=_0x18bf54;return _0xdbd64f[_0x7c6604(0x132)][_0x7c6604(0x135)](_0x8d7a8f,_0x4c00d4,{'indexName':_0x11b56b})[_0x7c6604(0x125)](function(){const _0x24f158=_0x7c6604;logger[_0x24f158(0x127)](_0x24f158(0x12d),_0x8d7a8f,_0x4c00d4[_0x24f158(0x139)](','),_0x11b56b);})[_0x7c6604(0x13b)](function(_0x2f9cad){const _0x2d7ef0=_0x7c6604;logger['info'](JSON[_0x2d7ef0(0x124)](_0x2f9cad));});});},Migration[a1130_0x410514(0x12b)][a1130_0x410514(0x121)]=function(_0x8d166d,_0x4ac270){const _0x4aef9f=a1130_0x410514,_0x2b2c83=this;this[_0x4aef9f(0x133)][_0x4aef9f(0x13c)](function(){const _0x236784=_0x4aef9f;return _0x2b2c83[_0x236784(0x132)][_0x236784(0x121)](_0x8d166d,_0x4ac270)['then'](function(){logger['info']('removeIndex\x20%s\x20%s',_0x8d166d,_0x4ac270);})[_0x236784(0x13b)](function(_0x4fc6b3){const _0xdefc0c=_0x236784;logger[_0xdefc0c(0x127)](JSON[_0xdefc0c(0x124)](_0x4fc6b3));});});},Migration[a1130_0x410514(0x12b)][a1130_0x410514(0x12c)]=function(_0x3b5167){const _0x10f522=a1130_0x410514,_0x214c7c=this;this[_0x10f522(0x133)]['enqueue'](function(){const _0x215773=_0x10f522;return _0x214c7c[_0x215773(0x132)]['sequelize']['query'](_0x3b5167)[_0x215773(0x125)](function(){logger['info']('query\x20%s',_0x3b5167);})[_0x215773(0x13b)](function(_0x1dd689){const _0x1a7158=_0x215773;logger[_0x1a7158(0x127)](JSON['stringify'](_0x1dd689));});});},Migration['prototype'][a1130_0x410514(0x12e)]=function(_0x4915f0,_0x2c597a){const _0x58af07=a1130_0x410514,_0x4d9a14=this;this['sequence'][_0x58af07(0x13c)](function(){const _0x16e28b=_0x58af07;return _0x4d9a14[_0x16e28b(0x132)][_0x16e28b(0x12e)](_0x4915f0,_0x2c597a)[_0x16e28b(0x125)](function(){const _0x215590=_0x16e28b;logger[_0x215590(0x127)](_0x215590(0x12f),_0x2c597a,_0x4915f0);})[_0x16e28b(0x13b)](function(_0x1c6ea1){const _0x9a41a3=_0x16e28b;logger[_0x9a41a3(0x127)](util[_0x9a41a3(0x11e)](_0x1c6ea1,{'showHidden':![],'depth':null}));});});},Migration[a1130_0x410514(0x12b)][a1130_0x410514(0x13d)]=function(_0x44525a,_0x22f0bd,_0x471b6d){const _0x5b55e5=a1130_0x410514,_0x5e3576=this;this[_0x5b55e5(0x133)][_0x5b55e5(0x13c)](function(){const _0x1a0fc9=_0x5b55e5;return _0x5e3576['queryInterface'][_0x1a0fc9(0x13d)](_0x44525a,_0x22f0bd,_0x471b6d)[_0x1a0fc9(0x125)](function(){const _0x58cc3a=_0x1a0fc9;logger['info'](_0x58cc3a(0x13f),_0x22f0bd,_0x471b6d,_0x44525a);})[_0x1a0fc9(0x13b)](function(_0x7a37da){const _0x341f1a=_0x1a0fc9;logger[_0x341f1a(0x127)](util[_0x341f1a(0x11e)](_0x7a37da,{'showHidden':![],'depth':null}));});});},Migration[a1130_0x410514(0x12b)][a1130_0x410514(0x13a)]=function(_0x874be1){const _0xb8f7cc=a1130_0x410514;this[_0xb8f7cc(0x133)]['enqueue'](function(){return _0x874be1();});},module[a1130_0x410514(0x138)]={'up':function(_0x374ee8){return new Promise(function(_0x392a24){const _0x1c510f=a1130_0x3d6a,_0x2a4d89=new Migration(_0x374ee8);_0x2a4d89[_0x1c510f(0x12c)](_0x1c510f(0x129)),_0x2a4d89[_0x1c510f(0x12c)](_0x1c510f(0x11f)),_0x2a4d89['query'](_0x1c510f(0x122)),_0x2a4d89[_0x1c510f(0x12c)](_0x1c510f(0x137)),_0x2a4d89['query']('ALTER\x20TABLE\x20int_vtiger_fields\x20add\x20UNIQUE\x20INDEX\x20vtiger_unique_index\x20(idField,\x20FieldId)'),_0x2a4d89['query'](_0x1c510f(0x136)),_0x2a4d89['query'](_0x1c510f(0x126)),_0x2a4d89[_0x1c510f(0x13a)](_0x392a24);});},'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 134184a..9c3f836 100644 --- a/server/migrations/2.2.5.js +++ b/server/migrations/2.2.5.js @@ -1 +1 @@ -const a969_0x59ca=['enqueue','finally','changeColumn','table\x20dropped\x20%s','prototype','queryInterface','sequelize','removeIndex','addIndex','stringify','inspect','exports','removeIndex\x20%s\x20%s','addColumn','renameColumn','sequence','query','join','then','info','dropTable','final','removeColumn','catch','../config/logger','migration','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','tail','Removed\x20column\x20%s\x20from\x20%s'];(function(_0x4f97d5,_0x59ca8d){const _0x2f3971=function(_0x1ba536){while(--_0x1ba536){_0x4f97d5['push'](_0x4f97d5['shift']());}};_0x2f3971(++_0x59ca8d);}(a969_0x59ca,0xe5));const a969_0x2f39=function(_0x4f97d5,_0x59ca8d){_0x4f97d5=_0x4f97d5-0x0;let _0x2f3971=a969_0x59ca[_0x4f97d5];return _0x2f3971;};const _0x5616c5=a969_0x2f39;'use strict';const util=require('util'),logger=require(_0x5616c5('0x1b'))(_0x5616c5('0x1c')),Sequence=function(){};Sequence[_0x5616c5('0x7')]['enqueue']=function(_0x1ba536){const _0x1aba0d=_0x5616c5;this[_0x1aba0d('0x1')]=this[_0x1aba0d('0x1')]?this[_0x1aba0d('0x1')][_0x1aba0d('0x4')](_0x1ba536):_0x1ba536();};const Migration=function(_0x2e81f){const _0x6594c2=_0x5616c5;this[_0x6594c2('0x8')]=_0x2e81f,this[_0x6594c2('0x12')]=new Sequence();};Migration[_0x5616c5('0x7')][_0x5616c5('0x5')]=function(_0x11d915,_0x2d707f,_0x269fd9){const _0x12f3ee=_0x5616c5,_0x241076=this;this[_0x12f3ee('0x12')][_0x12f3ee('0x3')](function(){const _0x1d02ec=_0x12f3ee;return _0x241076[_0x1d02ec('0x8')][_0x1d02ec('0x5')](_0x11d915,_0x2d707f,_0x269fd9)['then'](function(){const _0x3d65eb=_0x1d02ec;logger[_0x3d65eb('0x16')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x2d707f,_0x11d915);})[_0x1d02ec('0x1a')](function(_0xb69b7f){const _0x29b8a3=_0x1d02ec;logger[_0x29b8a3('0x16')](JSON[_0x29b8a3('0xc')](_0xb69b7f));});});},Migration[_0x5616c5('0x7')][_0x5616c5('0x10')]=function(_0x3ad8bf,_0x4da238,_0xe538e5){const _0x1bec3f=_0x5616c5,_0x2c9ce6=this;this[_0x1bec3f('0x12')][_0x1bec3f('0x3')](function(){const _0x1d8c09=_0x1bec3f;return _0x2c9ce6[_0x1d8c09('0x8')]['addColumn'](_0x3ad8bf,_0x4da238,_0xe538e5)[_0x1d8c09('0x15')](function(){const _0x13ce56=_0x1d8c09;logger[_0x13ce56('0x16')]('Added\x20column\x20%s\x20to\x20%s',_0x4da238,_0x3ad8bf);})[_0x1d8c09('0x1a')](function(_0x145893){const _0x2370b8=_0x1d8c09;logger[_0x2370b8('0x16')](JSON[_0x2370b8('0xc')](_0x145893));});});},Migration[_0x5616c5('0x7')]['dropTable']=function(_0x3a3874){const _0x93aa0c=_0x5616c5,_0x265fad=this;this[_0x93aa0c('0x12')][_0x93aa0c('0x3')](function(){const _0x408e9c=_0x93aa0c;return _0x265fad[_0x408e9c('0x8')][_0x408e9c('0x17')](_0x3a3874,{'force':!![]})[_0x408e9c('0x15')](function(){const _0x373ed6=_0x408e9c;logger[_0x373ed6('0x16')](_0x373ed6('0x6'),_0x3a3874);})[_0x408e9c('0x1a')](function(_0x5cae15){const _0x3662bd=_0x408e9c;logger[_0x3662bd('0x16')](JSON[_0x3662bd('0xc')](_0x5cae15));});});},Migration[_0x5616c5('0x7')][_0x5616c5('0xb')]=function(_0x4b65fc,_0x56471c,_0x7d19fc){const _0x4f9af6=_0x5616c5,_0x1f0020=this;this[_0x4f9af6('0x12')]['enqueue'](function(){const _0x544541=_0x4f9af6;return _0x1f0020['queryInterface'][_0x544541('0xb')](_0x4b65fc,_0x56471c,{'indexName':_0x7d19fc})[_0x544541('0x15')](function(){const _0x49aba8=_0x544541;logger[_0x49aba8('0x16')]('addIndex\x20%s\x20%s\x20%s',_0x4b65fc,_0x56471c[_0x49aba8('0x14')](','),_0x7d19fc);})[_0x544541('0x1a')](function(_0x2eec6d){const _0x149d1e=_0x544541;logger[_0x149d1e('0x16')](JSON['stringify'](_0x2eec6d));});});},Migration[_0x5616c5('0x7')]['removeIndex']=function(_0x5bd305,_0x476c81){const _0x22d2de=_0x5616c5,_0x123298=this;this[_0x22d2de('0x12')][_0x22d2de('0x3')](function(){const _0x59ec6b=_0x22d2de;return _0x123298[_0x59ec6b('0x8')][_0x59ec6b('0xa')](_0x5bd305,_0x476c81)[_0x59ec6b('0x15')](function(){const _0x30beb9=_0x59ec6b;logger[_0x30beb9('0x16')](_0x30beb9('0xf'),_0x5bd305,_0x476c81);})[_0x59ec6b('0x1a')](function(_0x3f58d9){const _0x83371a=_0x59ec6b;logger[_0x83371a('0x16')](JSON[_0x83371a('0xc')](_0x3f58d9));});});},Migration[_0x5616c5('0x7')][_0x5616c5('0x13')]=function(_0x51da50){const _0x434514=_0x5616c5,_0x24ae35=this;this[_0x434514('0x12')][_0x434514('0x3')](function(){const _0x157611=_0x434514;return _0x24ae35[_0x157611('0x8')][_0x157611('0x9')][_0x157611('0x13')](_0x51da50)['then'](function(){const _0x544848=_0x157611;logger[_0x544848('0x16')]('query\x20%s',_0x51da50);})[_0x157611('0x1a')](function(_0x445c33){const _0x2ef448=_0x157611;logger[_0x2ef448('0x16')](JSON[_0x2ef448('0xc')](_0x445c33));});});},Migration['prototype'][_0x5616c5('0x19')]=function(_0x23e1d2,_0x30e188){const _0x48997f=_0x5616c5,_0x37fa27=this;this['sequence'][_0x48997f('0x3')](function(){const _0x5f1596=_0x48997f;return _0x37fa27['queryInterface'][_0x5f1596('0x19')](_0x23e1d2,_0x30e188)['then'](function(){const _0x18179c=_0x5f1596;logger['info'](_0x18179c('0x2'),_0x30e188,_0x23e1d2);})['catch'](function(_0x7f2023){const _0x55c147=_0x5f1596;logger[_0x55c147('0x16')](util[_0x55c147('0xd')](_0x7f2023,{'showHidden':![],'depth':null}));});});},Migration[_0x5616c5('0x7')][_0x5616c5('0x11')]=function(_0x3df407,_0x16312d,_0x5f3e39){const _0x1c4f7f=_0x5616c5,_0x14f2ea=this;this[_0x1c4f7f('0x12')][_0x1c4f7f('0x3')](function(){const _0x41a634=_0x1c4f7f;return _0x14f2ea[_0x41a634('0x8')][_0x41a634('0x11')](_0x3df407,_0x16312d,_0x5f3e39)[_0x41a634('0x15')](function(){const _0x3f9bc5=_0x41a634;logger[_0x3f9bc5('0x16')](_0x3f9bc5('0x0'),_0x16312d,_0x5f3e39,_0x3df407);})[_0x41a634('0x1a')](function(_0x202868){const _0x25d6db=_0x41a634;logger[_0x25d6db('0x16')](util[_0x25d6db('0xd')](_0x202868,{'showHidden':![],'depth':null}));});});},Migration[_0x5616c5('0x7')]['final']=function(_0x51dd81){const _0x53fdce=_0x5616c5;this['sequence'][_0x53fdce('0x3')](function(){return _0x51dd81();});},module[_0x5616c5('0xe')]={'up':function(_0x4b90f8){return new Promise(function(_0x27b03c){const _0x3b8ea9=a969_0x2f39,_0x42419f=new Migration(_0x4b90f8);_0x42419f[_0x3b8ea9('0x18')](_0x27b03c);});},'down':function(){}}; \ No newline at end of file +const a1131_0x5e55=['util','Removed\x20column\x20%s\x20from\x20%s','sequence','stringify','exports','join','addColumn','query\x20%s','final','table\x20dropped\x20%s','queryInterface','tail','prototype','dropTable','info','Changed\x20column\x20%s\x20in\x20table\x20%s','then','inspect','migration','removeColumn','query','enqueue','removeIndex','Added\x20column\x20%s\x20to\x20%s','../config/logger','addIndex\x20%s\x20%s\x20%s','catch','addIndex'];(function(_0x5ebdf9,_0x281063){const _0x5e5550=function(_0x3d1221){while(--_0x3d1221){_0x5ebdf9['push'](_0x5ebdf9['shift']());}};_0x5e5550(++_0x281063);}(a1131_0x5e55,0xa7));const a1131_0x3d12=function(_0x5ebdf9,_0x281063){_0x5ebdf9=_0x5ebdf9-0x117;let _0x5e5550=a1131_0x5e55[_0x5ebdf9];return _0x5e5550;};const a1131_0x266d22=a1131_0x3d12;'use strict';const util=require(a1131_0x266d22(0x118)),logger=require(a1131_0x266d22(0x130))(a1131_0x266d22(0x12a)),Sequence=function(){};Sequence[a1131_0x266d22(0x124)][a1131_0x266d22(0x12d)]=function(_0x13bafa){const _0x1e393a=a1131_0x266d22;this['tail']=this[_0x1e393a(0x123)]?this[_0x1e393a(0x123)]['finally'](_0x13bafa):_0x13bafa();};const Migration=function(_0x2b24ae){const _0x1e7c7f=a1131_0x266d22;this[_0x1e7c7f(0x122)]=_0x2b24ae,this[_0x1e7c7f(0x11a)]=new Sequence();};Migration[a1131_0x266d22(0x124)]['changeColumn']=function(_0x36c0ca,_0x130668,_0x26f062){const _0xf980b8=a1131_0x266d22,_0x43f782=this;this[_0xf980b8(0x11a)][_0xf980b8(0x12d)](function(){const _0x2f7e52=_0xf980b8;return _0x43f782[_0x2f7e52(0x122)]['changeColumn'](_0x36c0ca,_0x130668,_0x26f062)['then'](function(){const _0x3c7619=_0x2f7e52;logger[_0x3c7619(0x126)](_0x3c7619(0x127),_0x130668,_0x36c0ca);})[_0x2f7e52(0x132)](function(_0x48a4bf){const _0x593037=_0x2f7e52;logger[_0x593037(0x126)](JSON[_0x593037(0x11b)](_0x48a4bf));});});},Migration[a1131_0x266d22(0x124)]['addColumn']=function(_0x4ebf5d,_0x20a45b,_0x4ecefa){const _0x2e532d=a1131_0x266d22,_0x4f8e72=this;this[_0x2e532d(0x11a)][_0x2e532d(0x12d)](function(){const _0x55de48=_0x2e532d;return _0x4f8e72['queryInterface'][_0x55de48(0x11e)](_0x4ebf5d,_0x20a45b,_0x4ecefa)[_0x55de48(0x128)](function(){const _0x1a3a2f=_0x55de48;logger[_0x1a3a2f(0x126)](_0x1a3a2f(0x12f),_0x20a45b,_0x4ebf5d);})[_0x55de48(0x132)](function(_0x44e21a){const _0x42d4e4=_0x55de48;logger[_0x42d4e4(0x126)](JSON[_0x42d4e4(0x11b)](_0x44e21a));});});},Migration[a1131_0x266d22(0x124)][a1131_0x266d22(0x125)]=function(_0x1641f2){const _0x41fc61=a1131_0x266d22,_0x560bd6=this;this[_0x41fc61(0x11a)][_0x41fc61(0x12d)](function(){const _0x1ebf48=_0x41fc61;return _0x560bd6[_0x1ebf48(0x122)]['dropTable'](_0x1641f2,{'force':!![]})[_0x1ebf48(0x128)](function(){const _0x4eec77=_0x1ebf48;logger[_0x4eec77(0x126)](_0x4eec77(0x121),_0x1641f2);})[_0x1ebf48(0x132)](function(_0x3afd1c){const _0x1f0cf1=_0x1ebf48;logger[_0x1f0cf1(0x126)](JSON[_0x1f0cf1(0x11b)](_0x3afd1c));});});},Migration[a1131_0x266d22(0x124)][a1131_0x266d22(0x117)]=function(_0x4ca7f4,_0x349572,_0x56d4fc){const _0x6e5f3d=a1131_0x266d22,_0x4096c2=this;this['sequence'][_0x6e5f3d(0x12d)](function(){const _0x1bd064=_0x6e5f3d;return _0x4096c2[_0x1bd064(0x122)][_0x1bd064(0x117)](_0x4ca7f4,_0x349572,{'indexName':_0x56d4fc})[_0x1bd064(0x128)](function(){const _0x4cfd3c=_0x1bd064;logger['info'](_0x4cfd3c(0x131),_0x4ca7f4,_0x349572[_0x4cfd3c(0x11d)](','),_0x56d4fc);})[_0x1bd064(0x132)](function(_0x28862b){const _0xd2c609=_0x1bd064;logger[_0xd2c609(0x126)](JSON[_0xd2c609(0x11b)](_0x28862b));});});},Migration[a1131_0x266d22(0x124)]['removeIndex']=function(_0x5c3c6b,_0x197514){const _0x4b3e47=a1131_0x266d22,_0x238ef6=this;this[_0x4b3e47(0x11a)][_0x4b3e47(0x12d)](function(){const _0x1a03e7=_0x4b3e47;return _0x238ef6[_0x1a03e7(0x122)][_0x1a03e7(0x12e)](_0x5c3c6b,_0x197514)[_0x1a03e7(0x128)](function(){const _0x34ecff=_0x1a03e7;logger[_0x34ecff(0x126)]('removeIndex\x20%s\x20%s',_0x5c3c6b,_0x197514);})[_0x1a03e7(0x132)](function(_0x51e906){const _0x1d0049=_0x1a03e7;logger[_0x1d0049(0x126)](JSON[_0x1d0049(0x11b)](_0x51e906));});});},Migration['prototype'][a1131_0x266d22(0x12c)]=function(_0x3f0840){const _0x315a26=a1131_0x266d22,_0x39ac44=this;this[_0x315a26(0x11a)][_0x315a26(0x12d)](function(){const _0x29683a=_0x315a26;return _0x39ac44[_0x29683a(0x122)]['sequelize'][_0x29683a(0x12c)](_0x3f0840)[_0x29683a(0x128)](function(){const _0xba14a2=_0x29683a;logger[_0xba14a2(0x126)](_0xba14a2(0x11f),_0x3f0840);})['catch'](function(_0x1d940d){const _0x309029=_0x29683a;logger[_0x309029(0x126)](JSON[_0x309029(0x11b)](_0x1d940d));});});},Migration[a1131_0x266d22(0x124)][a1131_0x266d22(0x12b)]=function(_0x1e45a9,_0x5d87aa){const _0x2d5d95=a1131_0x266d22,_0xf73db5=this;this[_0x2d5d95(0x11a)]['enqueue'](function(){const _0xe685e0=_0x2d5d95;return _0xf73db5[_0xe685e0(0x122)][_0xe685e0(0x12b)](_0x1e45a9,_0x5d87aa)[_0xe685e0(0x128)](function(){const _0x39f27e=_0xe685e0;logger[_0x39f27e(0x126)](_0x39f27e(0x119),_0x5d87aa,_0x1e45a9);})['catch'](function(_0x262252){const _0x3e9095=_0xe685e0;logger[_0x3e9095(0x126)](util[_0x3e9095(0x129)](_0x262252,{'showHidden':![],'depth':null}));});});},Migration[a1131_0x266d22(0x124)]['renameColumn']=function(_0x520eea,_0x2194b3,_0x23e154){const _0xc66fe0=a1131_0x266d22,_0x5c6dc3=this;this[_0xc66fe0(0x11a)][_0xc66fe0(0x12d)](function(){const _0x2cc54c=_0xc66fe0;return _0x5c6dc3[_0x2cc54c(0x122)]['renameColumn'](_0x520eea,_0x2194b3,_0x23e154)['then'](function(){const _0x26b76f=_0x2cc54c;logger[_0x26b76f(0x126)]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x2194b3,_0x23e154,_0x520eea);})[_0x2cc54c(0x132)](function(_0x19e41d){const _0x13fcca=_0x2cc54c;logger[_0x13fcca(0x126)](util[_0x13fcca(0x129)](_0x19e41d,{'showHidden':![],'depth':null}));});});},Migration[a1131_0x266d22(0x124)][a1131_0x266d22(0x120)]=function(_0x1eae72){const _0x12df5f=a1131_0x266d22;this[_0x12df5f(0x11a)][_0x12df5f(0x12d)](function(){return _0x1eae72();});},module[a1131_0x266d22(0x11c)]={'up':function(_0x57f027){return new Promise(function(_0x40d874){const _0x5cf528=new Migration(_0x57f027);_0x5cf528['final'](_0x40d874);});},'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 30471c4..d5484bb 100644 --- a/server/migrations/2.2.6.js +++ b/server/migrations/2.2.6.js @@ -1 +1 @@ -const a970_0x299c=['renameColumn','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','exports','addColumn','query','info','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','mandatoryDisposition','join','sequence','util','enqueue','migration','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','removeColumn','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','final','removeIndex','queryInterface','catch','tail','../config/logger','chat_websites','finally','voice_queues','sms_accounts','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','INTEGER','prototype','mail_accounts','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','addIndex','addIndex\x20%s\x20%s\x20%s','UPDATE\x20square_projects\x20SET\x20production\x20=\x20REPLACE(production,\x27labelBackgroundColor=#ffffff;\x27,\x27\x27)','removeIndex\x20%s\x20%s','then','table\x20dropped\x20%s','mandatoryDispositionPauseId','openchannel_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','changeColumn','BOOLEAN','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','Added\x20column\x20%s\x20to\x20%s','dropTable','fax_accounts','stringify','ALTER\x20TABLE\x20mail_interactions\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci;'];(function(_0x5112cc,_0x299c92){const _0x496162=function(_0x42514c){while(--_0x42514c){_0x5112cc['push'](_0x5112cc['shift']());}};_0x496162(++_0x299c92);}(a970_0x299c,0x11b));const a970_0x4961=function(_0x5112cc,_0x299c92){_0x5112cc=_0x5112cc-0x0;let _0x496162=a970_0x299c[_0x5112cc];return _0x496162;};const _0x17a345=a970_0x4961;'use strict';const util=require(_0x17a345('0xf')),logger=require(_0x17a345('0x1a'))(_0x17a345('0x11')),Sequence=function(){};Sequence[_0x17a345('0x21')]['enqueue']=function(_0x42514c){const _0x33aa22=_0x17a345;this[_0x33aa22('0x19')]=this[_0x33aa22('0x19')]?this[_0x33aa22('0x19')][_0x33aa22('0x1c')](_0x42514c):_0x42514c();};const Migration=function(_0x5d7cf6){const _0x47780b=_0x17a345;this['queryInterface']=_0x5d7cf6,this[_0x47780b('0xe')]=new Sequence();};Migration[_0x17a345('0x21')][_0x17a345('0x2d')]=function(_0xe168fa,_0x4e37a3,_0xd14d3a){const _0x4c5297=_0x17a345,_0x28922f=this;this[_0x4c5297('0xe')][_0x4c5297('0x10')](function(){const _0x4187bc=_0x4c5297;return _0x28922f[_0x4187bc('0x17')]['changeColumn'](_0xe168fa,_0x4e37a3,_0xd14d3a)[_0x4187bc('0x28')](function(){const _0x37e43b=_0x4187bc;logger[_0x37e43b('0xa')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x4e37a3,_0xe168fa);})[_0x4187bc('0x18')](function(_0x46face){const _0x802f1f=_0x4187bc;logger['info'](JSON[_0x802f1f('0x3')](_0x46face));});});},Migration[_0x17a345('0x21')][_0x17a345('0x8')]=function(_0x590026,_0x59a097,_0x2968bb){const _0x562c33=_0x17a345,_0x165808=this;this[_0x562c33('0xe')][_0x562c33('0x10')](function(){const _0x1330a6=_0x562c33;return _0x165808[_0x1330a6('0x17')][_0x1330a6('0x8')](_0x590026,_0x59a097,_0x2968bb)[_0x1330a6('0x28')](function(){const _0x2e7817=_0x1330a6;logger['info'](_0x2e7817('0x0'),_0x59a097,_0x590026);})[_0x1330a6('0x18')](function(_0x51ed29){const _0x27870a=_0x1330a6;logger[_0x27870a('0xa')](JSON[_0x27870a('0x3')](_0x51ed29));});});},Migration[_0x17a345('0x21')][_0x17a345('0x1')]=function(_0x2ccc99){const _0x368fd9=this;this['sequence']['enqueue'](function(){return _0x368fd9['queryInterface']['dropTable'](_0x2ccc99,{'force':!![]})['then'](function(){const _0x259c72=a970_0x4961;logger[_0x259c72('0xa')](_0x259c72('0x29'),_0x2ccc99);})['catch'](function(_0x408d2f){const _0x2b781b=a970_0x4961;logger[_0x2b781b('0xa')](JSON['stringify'](_0x408d2f));});});},Migration['prototype'][_0x17a345('0x24')]=function(_0x344106,_0x39e181,_0x5a1757){const _0x5fb961=_0x17a345,_0x25438c=this;this[_0x5fb961('0xe')][_0x5fb961('0x10')](function(){const _0x41fe9b=_0x5fb961;return _0x25438c[_0x41fe9b('0x17')][_0x41fe9b('0x24')](_0x344106,_0x39e181,{'indexName':_0x5a1757})[_0x41fe9b('0x28')](function(){const _0x588a69=_0x41fe9b;logger[_0x588a69('0xa')](_0x588a69('0x25'),_0x344106,_0x39e181[_0x588a69('0xd')](','),_0x5a1757);})[_0x41fe9b('0x18')](function(_0x5a1a25){logger['info'](JSON['stringify'](_0x5a1a25));});});},Migration['prototype'][_0x17a345('0x16')]=function(_0x154c62,_0x6d8fa7){const _0x4e784e=_0x17a345,_0x149a4b=this;this['sequence'][_0x4e784e('0x10')](function(){const _0x9cd21c=_0x4e784e;return _0x149a4b[_0x9cd21c('0x17')][_0x9cd21c('0x16')](_0x154c62,_0x6d8fa7)[_0x9cd21c('0x28')](function(){const _0x1c9d5d=_0x9cd21c;logger[_0x1c9d5d('0xa')](_0x1c9d5d('0x27'),_0x154c62,_0x6d8fa7);})[_0x9cd21c('0x18')](function(_0x336336){const _0x32444d=_0x9cd21c;logger[_0x32444d('0xa')](JSON[_0x32444d('0x3')](_0x336336));});});},Migration['prototype'][_0x17a345('0x9')]=function(_0x1efc85){const _0x329d11=_0x17a345,_0x138d1c=this;this[_0x329d11('0xe')][_0x329d11('0x10')](function(){const _0xb2cbda=_0x329d11;return _0x138d1c[_0xb2cbda('0x17')]['sequelize'][_0xb2cbda('0x9')](_0x1efc85)[_0xb2cbda('0x28')](function(){const _0x18840f=_0xb2cbda;logger[_0x18840f('0xa')]('query\x20%s',_0x1efc85);})[_0xb2cbda('0x18')](function(_0x3c6d59){const _0x259133=_0xb2cbda;logger[_0x259133('0xa')](JSON[_0x259133('0x3')](_0x3c6d59));});});},Migration[_0x17a345('0x21')][_0x17a345('0x13')]=function(_0x4eec4a,_0x486817){const _0x29b959=_0x17a345,_0x5e633d=this;this[_0x29b959('0xe')][_0x29b959('0x10')](function(){const _0x21c561=_0x29b959;return _0x5e633d[_0x21c561('0x17')][_0x21c561('0x13')](_0x4eec4a,_0x486817)[_0x21c561('0x28')](function(){const _0x2533d7=_0x21c561;logger[_0x2533d7('0xa')]('Removed\x20column\x20%s\x20from\x20%s',_0x486817,_0x4eec4a);})['catch'](function(_0x267f40){const _0x291c66=_0x21c561;logger[_0x291c66('0xa')](util['inspect'](_0x267f40,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x17a345('0x5')]=function(_0x4aebee,_0x579e74,_0x12128b){const _0x3bee50=this;this['sequence']['enqueue'](function(){const _0x243a2d=a970_0x4961;return _0x3bee50[_0x243a2d('0x17')][_0x243a2d('0x5')](_0x4aebee,_0x579e74,_0x12128b)[_0x243a2d('0x28')](function(){const _0x51ecab=_0x243a2d;logger[_0x51ecab('0xa')](_0x51ecab('0x2f'),_0x579e74,_0x12128b,_0x4aebee);})['catch'](function(_0x3b9e7c){const _0x270373=_0x243a2d;logger[_0x270373('0xa')](util['inspect'](_0x3b9e7c,{'showHidden':![],'depth':null}));});});},Migration[_0x17a345('0x21')]['final']=function(_0x11c0c3){const _0x3c4b0d=_0x17a345;this[_0x3c4b0d('0xe')][_0x3c4b0d('0x10')](function(){return _0x11c0c3();});},module[_0x17a345('0x7')]={'up':function(_0x140589,_0x582144){return new Promise(function(_0x32e49d){const _0x5f4c9b=a970_0x4961,_0x1ed849=new Migration(_0x140589);_0x1ed849[_0x5f4c9b('0x9')](_0x5f4c9b('0x4')),_0x1ed849['query'](_0x5f4c9b('0x6')),_0x1ed849[_0x5f4c9b('0x9')]('UPDATE\x20square_projects\x20SET\x20preproduction\x20=\x20REPLACE(preproduction,\x27labelBackgroundColor=#ffffff;\x27,\x27\x27)'),_0x1ed849['query'](_0x5f4c9b('0x26')),_0x1ed849[_0x5f4c9b('0x8')](_0x5f4c9b('0x1d'),_0x5f4c9b('0xc'),{'type':_0x582144[_0x5f4c9b('0x2e')],'defaultValue':![]}),_0x1ed849['addColumn'](_0x5f4c9b('0x1d'),_0x5f4c9b('0x2a'),{'type':_0x582144[_0x5f4c9b('0x20')]}),_0x1ed849[_0x5f4c9b('0x9')](_0x5f4c9b('0x23')),_0x1ed849['addColumn'](_0x5f4c9b('0x1b'),'mandatoryDisposition',{'type':_0x582144[_0x5f4c9b('0x2e')],'defaultValue':![]}),_0x1ed849[_0x5f4c9b('0x8')](_0x5f4c9b('0x1b'),_0x5f4c9b('0x2a'),{'type':_0x582144[_0x5f4c9b('0x20')]}),_0x1ed849['query'](_0x5f4c9b('0x14')),_0x1ed849[_0x5f4c9b('0x8')]('fax_accounts',_0x5f4c9b('0xc'),{'type':_0x582144[_0x5f4c9b('0x2e')],'defaultValue':![]}),_0x1ed849[_0x5f4c9b('0x8')](_0x5f4c9b('0x2'),_0x5f4c9b('0x2a'),{'type':_0x582144[_0x5f4c9b('0x20')]}),_0x1ed849[_0x5f4c9b('0x9')](_0x5f4c9b('0x2c')),_0x1ed849[_0x5f4c9b('0x8')]('mail_accounts','mandatoryDisposition',{'type':_0x582144[_0x5f4c9b('0x2e')],'defaultValue':![]}),_0x1ed849[_0x5f4c9b('0x8')](_0x5f4c9b('0x22'),_0x5f4c9b('0x2a'),{'type':_0x582144['INTEGER']}),_0x1ed849[_0x5f4c9b('0x9')](_0x5f4c9b('0xb')),_0x1ed849['addColumn'](_0x5f4c9b('0x2b'),_0x5f4c9b('0xc'),{'type':_0x582144['BOOLEAN'],'defaultValue':![]}),_0x1ed849['addColumn'](_0x5f4c9b('0x2b'),_0x5f4c9b('0x2a'),{'type':_0x582144['INTEGER']}),_0x1ed849[_0x5f4c9b('0x9')](_0x5f4c9b('0x1f')),_0x1ed849[_0x5f4c9b('0x8')](_0x5f4c9b('0x1e'),_0x5f4c9b('0xc'),{'type':_0x582144[_0x5f4c9b('0x2e')],'defaultValue':![]}),_0x1ed849[_0x5f4c9b('0x8')](_0x5f4c9b('0x1e'),'mandatoryDispositionPauseId',{'type':_0x582144[_0x5f4c9b('0x20')]}),_0x1ed849[_0x5f4c9b('0x9')](_0x5f4c9b('0x12')),_0x1ed849[_0x5f4c9b('0x15')](_0x32e49d);});},'down':function(){}}; \ No newline at end of file +const a1132_0x2c4e=['info','removeColumn','UPDATE\x20analytics_custom_reports\x20SET\x20joins\x20=\x20REPLACE(joins,\x27\x22type\x22:\x22outer_join\x22\x27,\x27\x22type\x22:\x22left_join\x22\x27)\x20WHERE\x20joins\x20LIKE\x20\x27%\x22type\x22:\x22outer_join\x22%\x27','ALTER\x20TABLE\x20mail_accounts\x20\x09\x09\x09\x09ADD\x20CONSTRAINT\x20`mail_accounts_ibfk_3`\x20\x09\x09\x09\x09FOREIGN\x20KEY\x20(`mandatoryDispositionPauseId`)\x20\x09\x09\x09\x09REFERENCES\x20tools_pauses(`id`)\x20\x09\x09\x09\x09ON\x20UPDATE\x20CASCADE\x20\x09\x09\x09\x09ON\x20DELETE\x20CASCADE','join','mandatoryDispositionPauseId','finally','changeColumn','UPDATE\x20square_projects\x20SET\x20production\x20=\x20REPLACE(production,\x27labelBackgroundColor=#ffffff;\x27,\x27\x27)','tail','query','chat_websites','dropTable','INTEGER','mandatoryDisposition','../config/logger','ALTER\x20TABLE\x20chat_websites\x20\x09\x09\x09\x09ADD\x20CONSTRAINT\x20`chat_websites_ibfk_3`\x20\x09\x09\x09\x09FOREIGN\x20KEY\x20(`mandatoryDispositionPauseId`)\x20\x09\x09\x09\x09REFERENCES\x20tools_pauses(`id`)\x20\x09\x09\x09\x09ON\x20UPDATE\x20CASCADE\x20\x09\x09\x09\x09ON\x20DELETE\x20CASCADE','Added\x20column\x20%s\x20to\x20%s','addIndex\x20%s\x20%s\x20%s','UPDATE\x20square_projects\x20SET\x20preproduction\x20=\x20REPLACE(preproduction,\x27labelBackgroundColor=#ffffff;\x27,\x27\x27)','final','stringify','addColumn','renameColumn','catch','fax_accounts','openchannel_accounts','sequence','mail_accounts','ALTER\x20TABLE\x20mail_interactions\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci;','BOOLEAN','Changed\x20column\x20%s\x20in\x20table\x20%s','addIndex','voice_queues','sequelize','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','migration','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','then','prototype','enqueue','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','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','sms_accounts','exports','queryInterface','inspect'];(function(_0x29bb0f,_0x33f0a8){const _0x2c4eca=function(_0x48f935){while(--_0x48f935){_0x29bb0f['push'](_0x29bb0f['shift']());}};_0x2c4eca(++_0x33f0a8);}(a1132_0x2c4e,0x10c));const a1132_0x48f9=function(_0x29bb0f,_0x33f0a8){_0x29bb0f=_0x29bb0f-0x103;let _0x2c4eca=a1132_0x2c4e[_0x29bb0f];return _0x2c4eca;};const a1132_0x1709b3=a1132_0x48f9;'use strict';const util=require('util'),logger=require(a1132_0x1709b3(0x120))(a1132_0x1709b3(0x106)),Sequence=function(){};Sequence[a1132_0x1709b3(0x109)][a1132_0x1709b3(0x10a)]=function(_0x1c2ced){const _0x1b7e74=a1132_0x1709b3;this[_0x1b7e74(0x11a)]=this[_0x1b7e74(0x11a)]?this[_0x1b7e74(0x11a)][_0x1b7e74(0x117)](_0x1c2ced):_0x1c2ced();};const Migration=function(_0x42b0b5){const _0x571d5b=a1132_0x1709b3;this[_0x571d5b(0x10f)]=_0x42b0b5,this[_0x571d5b(0x12c)]=new Sequence();};Migration[a1132_0x1709b3(0x109)][a1132_0x1709b3(0x118)]=function(_0x21d605,_0x477ef1,_0x1a321f){const _0x553cf1=a1132_0x1709b3,_0x2c680c=this;this[_0x553cf1(0x12c)]['enqueue'](function(){const _0x5be0a9=_0x553cf1;return _0x2c680c[_0x5be0a9(0x10f)][_0x5be0a9(0x118)](_0x21d605,_0x477ef1,_0x1a321f)[_0x5be0a9(0x108)](function(){const _0x26b6cb=_0x5be0a9;logger['info'](_0x26b6cb(0x130),_0x477ef1,_0x21d605);})[_0x5be0a9(0x129)](function(_0x4072ee){const _0x253cf0=_0x5be0a9;logger[_0x253cf0(0x111)](JSON['stringify'](_0x4072ee));});});},Migration[a1132_0x1709b3(0x109)]['addColumn']=function(_0x48f1b8,_0xe08d62,_0xc7ca38){const _0x146330=a1132_0x1709b3,_0x18a6b7=this;this[_0x146330(0x12c)]['enqueue'](function(){const _0x19d90c=_0x146330;return _0x18a6b7[_0x19d90c(0x10f)][_0x19d90c(0x127)](_0x48f1b8,_0xe08d62,_0xc7ca38)[_0x19d90c(0x108)](function(){const _0x3d60ec=_0x19d90c;logger[_0x3d60ec(0x111)](_0x3d60ec(0x122),_0xe08d62,_0x48f1b8);})[_0x19d90c(0x129)](function(_0x3f8269){const _0x920397=_0x19d90c;logger[_0x920397(0x111)](JSON['stringify'](_0x3f8269));});});},Migration[a1132_0x1709b3(0x109)]['dropTable']=function(_0x3f82e7){const _0x5c6e2a=a1132_0x1709b3,_0x42e0fa=this;this[_0x5c6e2a(0x12c)]['enqueue'](function(){const _0x4d6fa1=_0x5c6e2a;return _0x42e0fa[_0x4d6fa1(0x10f)][_0x4d6fa1(0x11d)](_0x3f82e7,{'force':!![]})[_0x4d6fa1(0x108)](function(){const _0x232e45=_0x4d6fa1;logger[_0x232e45(0x111)]('table\x20dropped\x20%s',_0x3f82e7);})[_0x4d6fa1(0x129)](function(_0x4f1a83){const _0x24b984=_0x4d6fa1;logger[_0x24b984(0x111)](JSON[_0x24b984(0x126)](_0x4f1a83));});});},Migration[a1132_0x1709b3(0x109)][a1132_0x1709b3(0x131)]=function(_0x9a12bf,_0x3a723e,_0x5d4e61){const _0xe724b4=a1132_0x1709b3,_0x553b3c=this;this['sequence'][_0xe724b4(0x10a)](function(){const _0x57cac7=_0xe724b4;return _0x553b3c[_0x57cac7(0x10f)][_0x57cac7(0x131)](_0x9a12bf,_0x3a723e,{'indexName':_0x5d4e61})[_0x57cac7(0x108)](function(){const _0x2ea8d2=_0x57cac7;logger[_0x2ea8d2(0x111)](_0x2ea8d2(0x123),_0x9a12bf,_0x3a723e[_0x2ea8d2(0x115)](','),_0x5d4e61);})[_0x57cac7(0x129)](function(_0x313186){const _0xa374fb=_0x57cac7;logger[_0xa374fb(0x111)](JSON['stringify'](_0x313186));});});},Migration[a1132_0x1709b3(0x109)]['removeIndex']=function(_0x30d24c,_0x42db76){const _0x13bfa9=a1132_0x1709b3,_0x3c54fa=this;this['sequence'][_0x13bfa9(0x10a)](function(){const _0x38e7f8=_0x13bfa9;return _0x3c54fa[_0x38e7f8(0x10f)]['removeIndex'](_0x30d24c,_0x42db76)['then'](function(){logger['info']('removeIndex\x20%s\x20%s',_0x30d24c,_0x42db76);})['catch'](function(_0x30c83e){const _0x349888=_0x38e7f8;logger[_0x349888(0x111)](JSON[_0x349888(0x126)](_0x30c83e));});});},Migration[a1132_0x1709b3(0x109)][a1132_0x1709b3(0x11b)]=function(_0x120616){const _0x59efae=a1132_0x1709b3,_0x321249=this;this[_0x59efae(0x12c)]['enqueue'](function(){const _0x13bb09=_0x59efae;return _0x321249['queryInterface'][_0x13bb09(0x104)][_0x13bb09(0x11b)](_0x120616)[_0x13bb09(0x108)](function(){const _0x53fbb3=_0x13bb09;logger[_0x53fbb3(0x111)]('query\x20%s',_0x120616);})[_0x13bb09(0x129)](function(_0x5517c5){const _0x1e475e=_0x13bb09;logger[_0x1e475e(0x111)](JSON['stringify'](_0x5517c5));});});},Migration['prototype']['removeColumn']=function(_0x497e10,_0x2ec204){const _0xc7e33a=a1132_0x1709b3,_0xeed7c=this;this[_0xc7e33a(0x12c)][_0xc7e33a(0x10a)](function(){const _0x43d6f8=_0xc7e33a;return _0xeed7c[_0x43d6f8(0x10f)][_0x43d6f8(0x112)](_0x497e10,_0x2ec204)[_0x43d6f8(0x108)](function(){logger['info']('Removed\x20column\x20%s\x20from\x20%s',_0x2ec204,_0x497e10);})['catch'](function(_0x3d40c7){const _0x3b5762=_0x43d6f8;logger[_0x3b5762(0x111)](util[_0x3b5762(0x110)](_0x3d40c7,{'showHidden':![],'depth':null}));});});},Migration[a1132_0x1709b3(0x109)][a1132_0x1709b3(0x128)]=function(_0x2c962f,_0x2b52b4,_0x49f861){const _0x14874a=a1132_0x1709b3,_0x32aea7=this;this[_0x14874a(0x12c)][_0x14874a(0x10a)](function(){return _0x32aea7['queryInterface']['renameColumn'](_0x2c962f,_0x2b52b4,_0x49f861)['then'](function(){const _0x2c4baa=a1132_0x48f9;logger[_0x2c4baa(0x111)](_0x2c4baa(0x10c),_0x2b52b4,_0x49f861,_0x2c962f);})['catch'](function(_0x5223c){const _0x19e067=a1132_0x48f9;logger['info'](util[_0x19e067(0x110)](_0x5223c,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1132_0x1709b3(0x125)]=function(_0x4cefae){const _0x3678b3=a1132_0x1709b3;this[_0x3678b3(0x12c)]['enqueue'](function(){return _0x4cefae();});},module[a1132_0x1709b3(0x10e)]={'up':function(_0x4ec1ff,_0x234f26){return new Promise(function(_0x5e6f1a){const _0xd59cfd=a1132_0x48f9,_0x143a5f=new Migration(_0x4ec1ff);_0x143a5f[_0xd59cfd(0x11b)](_0xd59cfd(0x12e)),_0x143a5f[_0xd59cfd(0x11b)](_0xd59cfd(0x113)),_0x143a5f['query'](_0xd59cfd(0x124)),_0x143a5f[_0xd59cfd(0x11b)](_0xd59cfd(0x119)),_0x143a5f[_0xd59cfd(0x127)](_0xd59cfd(0x103),_0xd59cfd(0x11f),{'type':_0x234f26['BOOLEAN'],'defaultValue':![]}),_0x143a5f[_0xd59cfd(0x127)](_0xd59cfd(0x103),_0xd59cfd(0x116),{'type':_0x234f26['INTEGER']}),_0x143a5f[_0xd59cfd(0x11b)](_0xd59cfd(0x107)),_0x143a5f[_0xd59cfd(0x127)](_0xd59cfd(0x11c),_0xd59cfd(0x11f),{'type':_0x234f26[_0xd59cfd(0x12f)],'defaultValue':![]}),_0x143a5f['addColumn'](_0xd59cfd(0x11c),_0xd59cfd(0x116),{'type':_0x234f26[_0xd59cfd(0x11e)]}),_0x143a5f[_0xd59cfd(0x11b)](_0xd59cfd(0x121)),_0x143a5f['addColumn'](_0xd59cfd(0x12a),_0xd59cfd(0x11f),{'type':_0x234f26[_0xd59cfd(0x12f)],'defaultValue':![]}),_0x143a5f[_0xd59cfd(0x127)](_0xd59cfd(0x12a),_0xd59cfd(0x116),{'type':_0x234f26[_0xd59cfd(0x11e)]}),_0x143a5f[_0xd59cfd(0x11b)](_0xd59cfd(0x10b)),_0x143a5f['addColumn'](_0xd59cfd(0x12d),_0xd59cfd(0x11f),{'type':_0x234f26[_0xd59cfd(0x12f)],'defaultValue':![]}),_0x143a5f[_0xd59cfd(0x127)](_0xd59cfd(0x12d),_0xd59cfd(0x116),{'type':_0x234f26[_0xd59cfd(0x11e)]}),_0x143a5f['query'](_0xd59cfd(0x114)),_0x143a5f[_0xd59cfd(0x127)](_0xd59cfd(0x12b),_0xd59cfd(0x11f),{'type':_0x234f26[_0xd59cfd(0x12f)],'defaultValue':![]}),_0x143a5f['addColumn']('openchannel_accounts','mandatoryDispositionPauseId',{'type':_0x234f26['INTEGER']}),_0x143a5f['query'](_0xd59cfd(0x105)),_0x143a5f[_0xd59cfd(0x127)](_0xd59cfd(0x10d),_0xd59cfd(0x11f),{'type':_0x234f26[_0xd59cfd(0x12f)],'defaultValue':![]}),_0x143a5f[_0xd59cfd(0x127)](_0xd59cfd(0x10d),'mandatoryDispositionPauseId',{'type':_0x234f26[_0xd59cfd(0x11e)]}),_0x143a5f[_0xd59cfd(0x11b)]('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'),_0x143a5f[_0xd59cfd(0x125)](_0x5e6f1a);});},'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 4b97588..aec7285 100644 --- a/server/migrations/2.3.0.js +++ b/server/migrations/2.3.0.js @@ -1 +1 @@ -const a971_0x217e=['removeColumn','report_call','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','removeIndex','sequence','removeIndex\x20%s\x20%s','then','migration','enqueue','query','final','info','stringify','util','uniqueid','queryInterface','users','query\x20%s','renameColumn','../config/logger','dropTable','changeColumn','addColumn','catch','join','inspect','finally','Removed\x20column\x20%s\x20from\x20%s','STRING','tail','addIndex','addIndex\x20%s\x20%s\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','prototype'];(function(_0x5723cc,_0x217ea3){const _0x59d404=function(_0x33b999){while(--_0x33b999){_0x5723cc['push'](_0x5723cc['shift']());}};_0x59d404(++_0x217ea3);}(a971_0x217e,0x91));const a971_0x59d4=function(_0x5723cc,_0x217ea3){_0x5723cc=_0x5723cc-0x0;let _0x59d404=a971_0x217e[_0x5723cc];return _0x59d404;};const _0x3ea746=a971_0x59d4;'use strict';const util=require(_0x3ea746('0x4')),logger=require(_0x3ea746('0xa'))(_0x3ea746('0x20')),Sequence=function(){};Sequence[_0x3ea746('0x18')]['enqueue']=function(_0x33b999){const _0x4c976e=_0x3ea746;this['tail']=this[_0x4c976e('0x14')]?this[_0x4c976e('0x14')][_0x4c976e('0x11')](_0x33b999):_0x33b999();};const Migration=function(_0x37359d){const _0x11497d=_0x3ea746;this[_0x11497d('0x6')]=_0x37359d,this['sequence']=new Sequence();};Migration[_0x3ea746('0x18')][_0x3ea746('0xc')]=function(_0x8acfd9,_0x26f04d,_0xf5a5d4){const _0x2c29ea=_0x3ea746,_0x341275=this;this[_0x2c29ea('0x1d')][_0x2c29ea('0x21')](function(){const _0x4f4937=_0x2c29ea;return _0x341275[_0x4f4937('0x6')][_0x4f4937('0xc')](_0x8acfd9,_0x26f04d,_0xf5a5d4)[_0x4f4937('0x1f')](function(){const _0x35207a=_0x4f4937;logger[_0x35207a('0x2')](_0x35207a('0x17'),_0x26f04d,_0x8acfd9);})[_0x4f4937('0xe')](function(_0x29e55f){const _0x59ad53=_0x4f4937;logger[_0x59ad53('0x2')](JSON['stringify'](_0x29e55f));});});},Migration[_0x3ea746('0x18')][_0x3ea746('0xd')]=function(_0xb9ab40,_0x44e3c6,_0x298b25){const _0x36acff=_0x3ea746,_0x15064a=this;this[_0x36acff('0x1d')][_0x36acff('0x21')](function(){const _0x3f0d0e=_0x36acff;return _0x15064a[_0x3f0d0e('0x6')][_0x3f0d0e('0xd')](_0xb9ab40,_0x44e3c6,_0x298b25)[_0x3f0d0e('0x1f')](function(){const _0x50e459=_0x3f0d0e;logger[_0x50e459('0x2')]('Added\x20column\x20%s\x20to\x20%s',_0x44e3c6,_0xb9ab40);})[_0x3f0d0e('0xe')](function(_0x4946c0){const _0x132926=_0x3f0d0e;logger[_0x132926('0x2')](JSON[_0x132926('0x3')](_0x4946c0));});});},Migration[_0x3ea746('0x18')][_0x3ea746('0xb')]=function(_0x226972){const _0x9ae68f=_0x3ea746,_0x2b6c0e=this;this[_0x9ae68f('0x1d')]['enqueue'](function(){const _0x3c92c0=_0x9ae68f;return _0x2b6c0e['queryInterface'][_0x3c92c0('0xb')](_0x226972,{'force':!![]})[_0x3c92c0('0x1f')](function(){const _0xd5ef60=_0x3c92c0;logger[_0xd5ef60('0x2')]('table\x20dropped\x20%s',_0x226972);})[_0x3c92c0('0xe')](function(_0x2d4412){const _0x2b13e8=_0x3c92c0;logger[_0x2b13e8('0x2')](JSON[_0x2b13e8('0x3')](_0x2d4412));});});},Migration['prototype'][_0x3ea746('0x15')]=function(_0x5c9ab4,_0x2838ba,_0x42812b){const _0x181016=_0x3ea746,_0x2ba1c8=this;this[_0x181016('0x1d')][_0x181016('0x21')](function(){const _0x4b6651=_0x181016;return _0x2ba1c8[_0x4b6651('0x6')][_0x4b6651('0x15')](_0x5c9ab4,_0x2838ba,{'indexName':_0x42812b})[_0x4b6651('0x1f')](function(){const _0x55e702=_0x4b6651;logger[_0x55e702('0x2')](_0x55e702('0x16'),_0x5c9ab4,_0x2838ba[_0x55e702('0xf')](','),_0x42812b);})[_0x4b6651('0xe')](function(_0x54caaa){const _0x565ba8=_0x4b6651;logger[_0x565ba8('0x2')](JSON[_0x565ba8('0x3')](_0x54caaa));});});},Migration['prototype'][_0x3ea746('0x1c')]=function(_0x16819e,_0x88dd80){const _0x1f1351=_0x3ea746,_0x2fe8ad=this;this[_0x1f1351('0x1d')][_0x1f1351('0x21')](function(){const _0x1abbca=_0x1f1351;return _0x2fe8ad[_0x1abbca('0x6')][_0x1abbca('0x1c')](_0x16819e,_0x88dd80)['then'](function(){const _0x4f8a0c=_0x1abbca;logger[_0x4f8a0c('0x2')](_0x4f8a0c('0x1e'),_0x16819e,_0x88dd80);})[_0x1abbca('0xe')](function(_0x44280d){logger['info'](JSON['stringify'](_0x44280d));});});},Migration[_0x3ea746('0x18')][_0x3ea746('0x0')]=function(_0x2bfd98){const _0x551bdd=_0x3ea746,_0x348a26=this;this[_0x551bdd('0x1d')][_0x551bdd('0x21')](function(){const _0x36f77c=_0x551bdd;return _0x348a26[_0x36f77c('0x6')]['sequelize'][_0x36f77c('0x0')](_0x2bfd98)['then'](function(){const _0x51d662=_0x36f77c;logger[_0x51d662('0x2')](_0x51d662('0x8'),_0x2bfd98);})[_0x36f77c('0xe')](function(_0x24f7aa){const _0x305b30=_0x36f77c;logger['info'](JSON[_0x305b30('0x3')](_0x24f7aa));});});},Migration[_0x3ea746('0x18')][_0x3ea746('0x19')]=function(_0x2d1a32,_0x49526f){const _0x4f8dc6=_0x3ea746,_0xd1f88c=this;this[_0x4f8dc6('0x1d')][_0x4f8dc6('0x21')](function(){const _0x3b12c2=_0x4f8dc6;return _0xd1f88c[_0x3b12c2('0x6')][_0x3b12c2('0x19')](_0x2d1a32,_0x49526f)[_0x3b12c2('0x1f')](function(){const _0x13a082=_0x3b12c2;logger[_0x13a082('0x2')](_0x13a082('0x12'),_0x49526f,_0x2d1a32);})['catch'](function(_0x76ada2){const _0x43d6a0=_0x3b12c2;logger[_0x43d6a0('0x2')](util[_0x43d6a0('0x10')](_0x76ada2,{'showHidden':![],'depth':null}));});});},Migration[_0x3ea746('0x18')]['renameColumn']=function(_0x39db43,_0x3e6087,_0x5e352a){const _0x1bc460=_0x3ea746,_0x3e0712=this;this[_0x1bc460('0x1d')][_0x1bc460('0x21')](function(){const _0x5aa3e1=_0x1bc460;return _0x3e0712['queryInterface'][_0x5aa3e1('0x9')](_0x39db43,_0x3e6087,_0x5e352a)[_0x5aa3e1('0x1f')](function(){const _0x49238f=_0x5aa3e1;logger[_0x49238f('0x2')](_0x49238f('0x1b'),_0x3e6087,_0x5e352a,_0x39db43);})[_0x5aa3e1('0xe')](function(_0x480550){const _0x32afe0=_0x5aa3e1;logger[_0x32afe0('0x2')](util[_0x32afe0('0x10')](_0x480550,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x3ea746('0x1')]=function(_0x545460){const _0x20ee8d=_0x3ea746;this[_0x20ee8d('0x1d')][_0x20ee8d('0x21')](function(){return _0x545460();});},module['exports']={'up':function(_0x202642,_0x38d0c4){return new Promise(function(_0x12e4b8){const _0x35b5e8=a971_0x59d4,_0x2dfa5c=new Migration(_0x202642);_0x2dfa5c[_0x35b5e8('0xd')](_0x35b5e8('0x7'),'apiKeyNonce',{'type':_0x38d0c4['STRING']}),_0x2dfa5c[_0x35b5e8('0xd')](_0x35b5e8('0x7'),'apiKeyIat',{'type':_0x38d0c4[_0x35b5e8('0x13')]}),_0x2dfa5c[_0x35b5e8('0x15')](_0x35b5e8('0x1a'),[_0x35b5e8('0x5')],_0x35b5e8('0x5')),_0x2dfa5c[_0x35b5e8('0x1')](_0x12e4b8);});},'down':function(){}}; \ No newline at end of file +const a1133_0x49c5=['migration','Changed\x20column\x20%s\x20in\x20table\x20%s','uniqueid','then','join','dropTable','renameColumn','tail','inspect','removeIndex','addColumn','queryInterface','apiKeyNonce','query\x20%s','users','catch','sequence','info','prototype','addIndex','final','apiKeyIat','stringify','Added\x20column\x20%s\x20to\x20%s','enqueue','changeColumn','finally','removeIndex\x20%s\x20%s','util','STRING','removeColumn','query'];(function(_0x2e5c81,_0x5d814b){const _0x49c50c=function(_0xb89d1d){while(--_0xb89d1d){_0x2e5c81['push'](_0x2e5c81['shift']());}};_0x49c50c(++_0x5d814b);}(a1133_0x49c5,0x92));const a1133_0xb89d=function(_0x2e5c81,_0x5d814b){_0x2e5c81=_0x2e5c81-0xa4;let _0x49c50c=a1133_0x49c5[_0x2e5c81];return _0x49c50c;};const a1133_0x2198d1=a1133_0xb89d;'use strict';const util=require(a1133_0x2198d1(0xae)),logger=require('../config/logger')(a1133_0x2198d1(0xb2)),Sequence=function(){};Sequence[a1133_0x2198d1(0xa4)][a1133_0x2198d1(0xaa)]=function(_0x56fca1){const _0x397370=a1133_0x2198d1;this['tail']=this[_0x397370(0xb9)]?this[_0x397370(0xb9)][_0x397370(0xac)](_0x56fca1):_0x56fca1();};const Migration=function(_0x238c11){const _0x2a9043=a1133_0x2198d1;this[_0x2a9043(0xbd)]=_0x238c11,this['sequence']=new Sequence();};Migration[a1133_0x2198d1(0xa4)][a1133_0x2198d1(0xab)]=function(_0x329c21,_0x2da1fa,_0x1a9703){const _0x32ec5a=a1133_0x2198d1,_0x2fb389=this;this['sequence'][_0x32ec5a(0xaa)](function(){const _0x2c079b=_0x32ec5a;return _0x2fb389[_0x2c079b(0xbd)][_0x2c079b(0xab)](_0x329c21,_0x2da1fa,_0x1a9703)[_0x2c079b(0xb5)](function(){const _0x29fe01=_0x2c079b;logger[_0x29fe01(0xc3)](_0x29fe01(0xb3),_0x2da1fa,_0x329c21);})['catch'](function(_0x3e1da2){const _0x1135ae=_0x2c079b;logger[_0x1135ae(0xc3)](JSON[_0x1135ae(0xa8)](_0x3e1da2));});});},Migration[a1133_0x2198d1(0xa4)][a1133_0x2198d1(0xbc)]=function(_0x2e1a19,_0x5dcc46,_0x4a3be3){const _0x389592=a1133_0x2198d1,_0x38d521=this;this[_0x389592(0xc2)][_0x389592(0xaa)](function(){const _0x24f9ef=_0x389592;return _0x38d521['queryInterface'][_0x24f9ef(0xbc)](_0x2e1a19,_0x5dcc46,_0x4a3be3)[_0x24f9ef(0xb5)](function(){const _0x1fe7ad=_0x24f9ef;logger['info'](_0x1fe7ad(0xa9),_0x5dcc46,_0x2e1a19);})['catch'](function(_0x197d11){const _0x5e2105=_0x24f9ef;logger[_0x5e2105(0xc3)](JSON[_0x5e2105(0xa8)](_0x197d11));});});},Migration[a1133_0x2198d1(0xa4)][a1133_0x2198d1(0xb7)]=function(_0x305fc2){const _0xd8926f=a1133_0x2198d1,_0x416e98=this;this[_0xd8926f(0xc2)][_0xd8926f(0xaa)](function(){const _0x5a1052=_0xd8926f;return _0x416e98['queryInterface'][_0x5a1052(0xb7)](_0x305fc2,{'force':!![]})[_0x5a1052(0xb5)](function(){const _0x524171=_0x5a1052;logger[_0x524171(0xc3)]('table\x20dropped\x20%s',_0x305fc2);})[_0x5a1052(0xc1)](function(_0x53082a){const _0x1e7d7c=_0x5a1052;logger[_0x1e7d7c(0xc3)](JSON[_0x1e7d7c(0xa8)](_0x53082a));});});},Migration[a1133_0x2198d1(0xa4)][a1133_0x2198d1(0xa5)]=function(_0x357131,_0xf9c96a,_0x18eeec){const _0x3c37be=a1133_0x2198d1,_0x1d802b=this;this['sequence'][_0x3c37be(0xaa)](function(){const _0x5168a4=_0x3c37be;return _0x1d802b[_0x5168a4(0xbd)][_0x5168a4(0xa5)](_0x357131,_0xf9c96a,{'indexName':_0x18eeec})[_0x5168a4(0xb5)](function(){const _0x37ecd7=_0x5168a4;logger['info']('addIndex\x20%s\x20%s\x20%s',_0x357131,_0xf9c96a[_0x37ecd7(0xb6)](','),_0x18eeec);})['catch'](function(_0x20b9bf){const _0x36c4bf=_0x5168a4;logger['info'](JSON[_0x36c4bf(0xa8)](_0x20b9bf));});});},Migration[a1133_0x2198d1(0xa4)][a1133_0x2198d1(0xbb)]=function(_0x375bb6,_0x13604b){const _0x84bfbe=a1133_0x2198d1,_0x2bcccb=this;this[_0x84bfbe(0xc2)]['enqueue'](function(){const _0x52a9ab=_0x84bfbe;return _0x2bcccb['queryInterface']['removeIndex'](_0x375bb6,_0x13604b)[_0x52a9ab(0xb5)](function(){const _0x59edcd=_0x52a9ab;logger[_0x59edcd(0xc3)](_0x59edcd(0xad),_0x375bb6,_0x13604b);})[_0x52a9ab(0xc1)](function(_0x58a80c){const _0x42e13c=_0x52a9ab;logger[_0x42e13c(0xc3)](JSON[_0x42e13c(0xa8)](_0x58a80c));});});},Migration[a1133_0x2198d1(0xa4)][a1133_0x2198d1(0xb1)]=function(_0x2801f4){const _0x2a8d3d=a1133_0x2198d1,_0x3f05c6=this;this[_0x2a8d3d(0xc2)]['enqueue'](function(){const _0x494f17=_0x2a8d3d;return _0x3f05c6[_0x494f17(0xbd)]['sequelize'][_0x494f17(0xb1)](_0x2801f4)[_0x494f17(0xb5)](function(){const _0x566d15=_0x494f17;logger[_0x566d15(0xc3)](_0x566d15(0xbf),_0x2801f4);})[_0x494f17(0xc1)](function(_0x269660){const _0x4c5b4e=_0x494f17;logger[_0x4c5b4e(0xc3)](JSON[_0x4c5b4e(0xa8)](_0x269660));});});},Migration[a1133_0x2198d1(0xa4)]['removeColumn']=function(_0x3c5eb1,_0x13e334){const _0x271d84=a1133_0x2198d1,_0x2b3ed7=this;this[_0x271d84(0xc2)][_0x271d84(0xaa)](function(){const _0x1c36e8=_0x271d84;return _0x2b3ed7[_0x1c36e8(0xbd)][_0x1c36e8(0xb0)](_0x3c5eb1,_0x13e334)[_0x1c36e8(0xb5)](function(){const _0x2b4f33=_0x1c36e8;logger[_0x2b4f33(0xc3)]('Removed\x20column\x20%s\x20from\x20%s',_0x13e334,_0x3c5eb1);})[_0x1c36e8(0xc1)](function(_0x4c5e48){const _0x23cd66=_0x1c36e8;logger[_0x23cd66(0xc3)](util[_0x23cd66(0xba)](_0x4c5e48,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1133_0x2198d1(0xb8)]=function(_0x51ded4,_0x3c1510,_0x1f1261){const _0x1d9273=a1133_0x2198d1,_0x40658b=this;this[_0x1d9273(0xc2)]['enqueue'](function(){const _0x54dbc8=_0x1d9273;return _0x40658b[_0x54dbc8(0xbd)][_0x54dbc8(0xb8)](_0x51ded4,_0x3c1510,_0x1f1261)[_0x54dbc8(0xb5)](function(){const _0x54b25a=_0x54dbc8;logger[_0x54b25a(0xc3)]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x3c1510,_0x1f1261,_0x51ded4);})['catch'](function(_0x3921c0){const _0x1cc750=_0x54dbc8;logger[_0x1cc750(0xc3)](util['inspect'](_0x3921c0,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1133_0x2198d1(0xa6)]=function(_0xb4056b){const _0x563202=a1133_0x2198d1;this[_0x563202(0xc2)]['enqueue'](function(){return _0xb4056b();});},module['exports']={'up':function(_0x72b27f,_0x393700){return new Promise(function(_0x1879b9){const _0x482a51=a1133_0xb89d,_0x2a3f34=new Migration(_0x72b27f);_0x2a3f34[_0x482a51(0xbc)](_0x482a51(0xc0),_0x482a51(0xbe),{'type':_0x393700[_0x482a51(0xaf)]}),_0x2a3f34[_0x482a51(0xbc)](_0x482a51(0xc0),_0x482a51(0xa7),{'type':_0x393700[_0x482a51(0xaf)]}),_0x2a3f34[_0x482a51(0xa5)]('report_call',[_0x482a51(0xb4)],_0x482a51(0xb4)),_0x2a3f34['final'](_0x1879b9);});},'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 6004641..d9b0b64 100644 --- a/server/migrations/2.3.1.js +++ b/server/migrations/2.3.1.js @@ -1 +1 @@ -const a972_0x1b5b=['enqueue','util','prototype','changeColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','../config/logger','dropTable','catch','migration','table\x20dropped\x20%s','addIndex\x20%s\x20%s\x20%s','removeIndex','info','renameColumn','finally','addColumn','final','join','removeColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','sequelize','sequence','inspect','removeIndex\x20%s\x20%s','tail','stringify','addIndex','then','queryInterface'];(function(_0x11f95b,_0x1b5b6f){const _0x48dbd9=function(_0x54c611){while(--_0x54c611){_0x11f95b['push'](_0x11f95b['shift']());}};_0x48dbd9(++_0x1b5b6f);}(a972_0x1b5b,0x1dc));const a972_0x48db=function(_0x11f95b,_0x1b5b6f){_0x11f95b=_0x11f95b-0x0;let _0x48dbd9=a972_0x1b5b[_0x11f95b];return _0x48dbd9;};const _0x337409=a972_0x48db;'use strict';const util=require(_0x337409('0x12')),logger=require(_0x337409('0x16'))(_0x337409('0x19')),Sequence=function(){};Sequence[_0x337409('0x13')]['enqueue']=function(_0x54c611){const _0x59a4b2=_0x337409;this[_0x59a4b2('0xc')]=this[_0x59a4b2('0xc')]?this[_0x59a4b2('0xc')][_0x59a4b2('0x2')](_0x54c611):_0x54c611();};const Migration=function(_0x1a0ef4){const _0x4a588c=_0x337409;this[_0x4a588c('0x10')]=_0x1a0ef4,this[_0x4a588c('0x9')]=new Sequence();};Migration[_0x337409('0x13')][_0x337409('0x14')]=function(_0x5d9eee,_0x1f6903,_0x342f27){const _0x381111=_0x337409,_0x21cc02=this;this[_0x381111('0x9')][_0x381111('0x11')](function(){const _0x1c71fa=_0x381111;return _0x21cc02[_0x1c71fa('0x10')]['changeColumn'](_0x5d9eee,_0x1f6903,_0x342f27)['then'](function(){const _0x1c49a4=_0x1c71fa;logger[_0x1c49a4('0x0')](_0x1c49a4('0x15'),_0x1f6903,_0x5d9eee);})[_0x1c71fa('0x18')](function(_0x17a007){const _0x6708e7=_0x1c71fa;logger[_0x6708e7('0x0')](JSON[_0x6708e7('0xd')](_0x17a007));});});},Migration[_0x337409('0x13')][_0x337409('0x3')]=function(_0x59ac95,_0x474b07,_0x471b12){const _0x12dec7=_0x337409,_0x3f57e0=this;this[_0x12dec7('0x9')][_0x12dec7('0x11')](function(){const _0x23920c=_0x12dec7;return _0x3f57e0[_0x23920c('0x10')]['addColumn'](_0x59ac95,_0x474b07,_0x471b12)[_0x23920c('0xf')](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x474b07,_0x59ac95);})[_0x23920c('0x18')](function(_0x330a80){const _0x4bb741=_0x23920c;logger['info'](JSON[_0x4bb741('0xd')](_0x330a80));});});},Migration['prototype']['dropTable']=function(_0x1080e2){const _0x2d046c=_0x337409,_0xf2c9c7=this;this[_0x2d046c('0x9')][_0x2d046c('0x11')](function(){const _0x32d8b0=_0x2d046c;return _0xf2c9c7[_0x32d8b0('0x10')][_0x32d8b0('0x17')](_0x1080e2,{'force':!![]})['then'](function(){const _0x33e5a9=_0x32d8b0;logger[_0x33e5a9('0x0')](_0x33e5a9('0x1a'),_0x1080e2);})[_0x32d8b0('0x18')](function(_0x588b6c){const _0x3f53c6=_0x32d8b0;logger[_0x3f53c6('0x0')](JSON[_0x3f53c6('0xd')](_0x588b6c));});});},Migration[_0x337409('0x13')][_0x337409('0xe')]=function(_0x263a9e,_0x241e89,_0xf76f0){const _0x210b10=this;this['sequence']['enqueue'](function(){const _0x21a302=a972_0x48db;return _0x210b10[_0x21a302('0x10')][_0x21a302('0xe')](_0x263a9e,_0x241e89,{'indexName':_0xf76f0})[_0x21a302('0xf')](function(){const _0xbb7e75=_0x21a302;logger[_0xbb7e75('0x0')](_0xbb7e75('0x1b'),_0x263a9e,_0x241e89[_0xbb7e75('0x5')](','),_0xf76f0);})[_0x21a302('0x18')](function(_0x40206f){const _0xf71bcf=_0x21a302;logger[_0xf71bcf('0x0')](JSON[_0xf71bcf('0xd')](_0x40206f));});});},Migration['prototype']['removeIndex']=function(_0x2780dd,_0x71391e){const _0x2a66a4=_0x337409,_0x41c3a2=this;this['sequence'][_0x2a66a4('0x11')](function(){const _0x391451=_0x2a66a4;return _0x41c3a2['queryInterface'][_0x391451('0x1c')](_0x2780dd,_0x71391e)[_0x391451('0xf')](function(){const _0x3df0b6=_0x391451;logger[_0x3df0b6('0x0')](_0x3df0b6('0xb'),_0x2780dd,_0x71391e);})[_0x391451('0x18')](function(_0x265a2c){const _0x3e2459=_0x391451;logger[_0x3e2459('0x0')](JSON[_0x3e2459('0xd')](_0x265a2c));});});},Migration['prototype']['query']=function(_0x1b3c82){const _0xe46b90=_0x337409,_0x642982=this;this[_0xe46b90('0x9')][_0xe46b90('0x11')](function(){const _0x389cfd=_0xe46b90;return _0x642982[_0x389cfd('0x10')][_0x389cfd('0x8')]['query'](_0x1b3c82)[_0x389cfd('0xf')](function(){const _0x216c8b=_0x389cfd;logger[_0x216c8b('0x0')]('query\x20%s',_0x1b3c82);})[_0x389cfd('0x18')](function(_0x466911){const _0xd09485=_0x389cfd;logger[_0xd09485('0x0')](JSON[_0xd09485('0xd')](_0x466911));});});},Migration[_0x337409('0x13')]['removeColumn']=function(_0x12cb49,_0x336734){const _0xf805ec=_0x337409,_0x34fc39=this;this[_0xf805ec('0x9')][_0xf805ec('0x11')](function(){const _0x547a05=_0xf805ec;return _0x34fc39[_0x547a05('0x10')][_0x547a05('0x6')](_0x12cb49,_0x336734)[_0x547a05('0xf')](function(){const _0x152734=_0x547a05;logger[_0x152734('0x0')]('Removed\x20column\x20%s\x20from\x20%s',_0x336734,_0x12cb49);})[_0x547a05('0x18')](function(_0x87ac75){const _0x5b2a42=_0x547a05;logger[_0x5b2a42('0x0')](util[_0x5b2a42('0xa')](_0x87ac75,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x337409('0x1')]=function(_0x4717b1,_0x43f834,_0x32bd2b){const _0x5030c2=_0x337409,_0xb86f9b=this;this['sequence'][_0x5030c2('0x11')](function(){const _0x302d03=_0x5030c2;return _0xb86f9b[_0x302d03('0x10')][_0x302d03('0x1')](_0x4717b1,_0x43f834,_0x32bd2b)['then'](function(){const _0x213137=_0x302d03;logger[_0x213137('0x0')](_0x213137('0x7'),_0x43f834,_0x32bd2b,_0x4717b1);})[_0x302d03('0x18')](function(_0x44425c){const _0x4ae177=_0x302d03;logger[_0x4ae177('0x0')](util[_0x4ae177('0xa')](_0x44425c,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x337409('0x4')]=function(_0x540949){const _0x21df73=_0x337409;this[_0x21df73('0x9')]['enqueue'](function(){return _0x540949();});},module['exports']={'up':function(_0x37575c){return new Promise(function(_0x83c59e){const _0x4d48ad=a972_0x48db,_0x393027=new Migration(_0x37575c);_0x393027[_0x4d48ad('0x4')](_0x83c59e);});},'down':function(){}}; \ No newline at end of file +const a1134_0x2164=['join','prototype','Removed\x20column\x20%s\x20from\x20%s','catch','finally','renameColumn','addIndex','sequence','removeColumn','query','addColumn','then','../config/logger','Added\x20column\x20%s\x20to\x20%s','table\x20dropped\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','query\x20%s','util','final','changeColumn','inspect','queryInterface','info','tail','stringify','enqueue','migration','addIndex\x20%s\x20%s\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s'];(function(_0x2c4323,_0x34989b){const _0x216427=function(_0x39923a){while(--_0x39923a){_0x2c4323['push'](_0x2c4323['shift']());}};_0x216427(++_0x34989b);}(a1134_0x2164,0x15f));const a1134_0x3992=function(_0x2c4323,_0x34989b){_0x2c4323=_0x2c4323-0x7a;let _0x216427=a1134_0x2164[_0x2c4323];return _0x216427;};const a1134_0x2acdc0=a1134_0x3992;'use strict';const util=require(a1134_0x2acdc0(0x88)),logger=require(a1134_0x2acdc0(0x83))(a1134_0x2acdc0(0x91)),Sequence=function(){};Sequence[a1134_0x2acdc0(0x95)]['enqueue']=function(_0x5b3d06){const _0xc27570=a1134_0x2acdc0;this['tail']=this[_0xc27570(0x8e)]?this[_0xc27570(0x8e)][_0xc27570(0x7b)](_0x5b3d06):_0x5b3d06();};const Migration=function(_0x329b36){const _0x46a9cd=a1134_0x2acdc0;this[_0x46a9cd(0x8c)]=_0x329b36,this[_0x46a9cd(0x7e)]=new Sequence();};Migration[a1134_0x2acdc0(0x95)][a1134_0x2acdc0(0x8a)]=function(_0x3fbc9b,_0x5a2223,_0x5f5e14){const _0xfe23e4=a1134_0x2acdc0,_0x3b9d1f=this;this[_0xfe23e4(0x7e)]['enqueue'](function(){const _0x49a10a=_0xfe23e4;return _0x3b9d1f['queryInterface'][_0x49a10a(0x8a)](_0x3fbc9b,_0x5a2223,_0x5f5e14)[_0x49a10a(0x82)](function(){const _0xdc5ce7=_0x49a10a;logger[_0xdc5ce7(0x8d)](_0xdc5ce7(0x93),_0x5a2223,_0x3fbc9b);})[_0x49a10a(0x7a)](function(_0x66fa0e){const _0x4606d8=_0x49a10a;logger[_0x4606d8(0x8d)](JSON['stringify'](_0x66fa0e));});});},Migration[a1134_0x2acdc0(0x95)][a1134_0x2acdc0(0x81)]=function(_0x5f2603,_0x206cf8,_0x1bac57){const _0x52be07=a1134_0x2acdc0,_0x192ba1=this;this[_0x52be07(0x7e)][_0x52be07(0x90)](function(){const _0xc62165=_0x52be07;return _0x192ba1[_0xc62165(0x8c)][_0xc62165(0x81)](_0x5f2603,_0x206cf8,_0x1bac57)[_0xc62165(0x82)](function(){const _0xf089f2=_0xc62165;logger[_0xf089f2(0x8d)](_0xf089f2(0x84),_0x206cf8,_0x5f2603);})[_0xc62165(0x7a)](function(_0x426d3a){const _0x459e72=_0xc62165;logger[_0x459e72(0x8d)](JSON['stringify'](_0x426d3a));});});},Migration[a1134_0x2acdc0(0x95)]['dropTable']=function(_0x5ef5b6){const _0x37c021=a1134_0x2acdc0,_0x8f04e5=this;this[_0x37c021(0x7e)][_0x37c021(0x90)](function(){const _0x32b8f4=_0x37c021;return _0x8f04e5[_0x32b8f4(0x8c)]['dropTable'](_0x5ef5b6,{'force':!![]})[_0x32b8f4(0x82)](function(){const _0x4f98f4=_0x32b8f4;logger[_0x4f98f4(0x8d)](_0x4f98f4(0x85),_0x5ef5b6);})[_0x32b8f4(0x7a)](function(_0x42b214){const _0x9edee7=_0x32b8f4;logger[_0x9edee7(0x8d)](JSON[_0x9edee7(0x8f)](_0x42b214));});});},Migration[a1134_0x2acdc0(0x95)][a1134_0x2acdc0(0x7d)]=function(_0xfd2dfd,_0x226811,_0x5be074){const _0x3de9ef=a1134_0x2acdc0,_0x1c21d8=this;this['sequence'][_0x3de9ef(0x90)](function(){const _0x5d4db1=_0x3de9ef;return _0x1c21d8[_0x5d4db1(0x8c)][_0x5d4db1(0x7d)](_0xfd2dfd,_0x226811,{'indexName':_0x5be074})['then'](function(){const _0x2ce59c=_0x5d4db1;logger['info'](_0x2ce59c(0x92),_0xfd2dfd,_0x226811[_0x2ce59c(0x94)](','),_0x5be074);})[_0x5d4db1(0x7a)](function(_0x396752){const _0x269ffc=_0x5d4db1;logger[_0x269ffc(0x8d)](JSON[_0x269ffc(0x8f)](_0x396752));});});},Migration['prototype']['removeIndex']=function(_0x35837b,_0x8baa1e){const _0x41ef5f=this;this['sequence']['enqueue'](function(){const _0x7965fd=a1134_0x3992;return _0x41ef5f[_0x7965fd(0x8c)]['removeIndex'](_0x35837b,_0x8baa1e)['then'](function(){const _0x251d40=_0x7965fd;logger[_0x251d40(0x8d)]('removeIndex\x20%s\x20%s',_0x35837b,_0x8baa1e);})[_0x7965fd(0x7a)](function(_0x139f30){const _0x34be6f=_0x7965fd;logger[_0x34be6f(0x8d)](JSON[_0x34be6f(0x8f)](_0x139f30));});});},Migration[a1134_0x2acdc0(0x95)][a1134_0x2acdc0(0x80)]=function(_0x4925b4){const _0x3dbf59=a1134_0x2acdc0,_0x75a6a0=this;this['sequence'][_0x3dbf59(0x90)](function(){const _0x3cb32e=_0x3dbf59;return _0x75a6a0[_0x3cb32e(0x8c)]['sequelize'][_0x3cb32e(0x80)](_0x4925b4)[_0x3cb32e(0x82)](function(){const _0x3d17c9=_0x3cb32e;logger['info'](_0x3d17c9(0x87),_0x4925b4);})[_0x3cb32e(0x7a)](function(_0x258229){const _0x38dbc7=_0x3cb32e;logger[_0x38dbc7(0x8d)](JSON['stringify'](_0x258229));});});},Migration['prototype']['removeColumn']=function(_0x4d67f2,_0x54af07){const _0x204775=a1134_0x2acdc0,_0x16d145=this;this[_0x204775(0x7e)][_0x204775(0x90)](function(){const _0x2d151b=_0x204775;return _0x16d145[_0x2d151b(0x8c)][_0x2d151b(0x7f)](_0x4d67f2,_0x54af07)[_0x2d151b(0x82)](function(){const _0x1597b3=_0x2d151b;logger[_0x1597b3(0x8d)](_0x1597b3(0x96),_0x54af07,_0x4d67f2);})[_0x2d151b(0x7a)](function(_0x2b7946){const _0xfda952=_0x2d151b;logger['info'](util[_0xfda952(0x8b)](_0x2b7946,{'showHidden':![],'depth':null}));});});},Migration[a1134_0x2acdc0(0x95)][a1134_0x2acdc0(0x7c)]=function(_0x41baf1,_0x40a89d,_0x3f0693){const _0x1132ac=a1134_0x2acdc0,_0x32d292=this;this[_0x1132ac(0x7e)][_0x1132ac(0x90)](function(){const _0x1364b0=_0x1132ac;return _0x32d292[_0x1364b0(0x8c)]['renameColumn'](_0x41baf1,_0x40a89d,_0x3f0693)[_0x1364b0(0x82)](function(){const _0x14d0cd=_0x1364b0;logger[_0x14d0cd(0x8d)](_0x14d0cd(0x86),_0x40a89d,_0x3f0693,_0x41baf1);})['catch'](function(_0x72594b){const _0x7da132=_0x1364b0;logger[_0x7da132(0x8d)](util[_0x7da132(0x8b)](_0x72594b,{'showHidden':![],'depth':null}));});});},Migration[a1134_0x2acdc0(0x95)][a1134_0x2acdc0(0x89)]=function(_0xbcc9ea){const _0x26b5e3=a1134_0x2acdc0;this[_0x26b5e3(0x7e)][_0x26b5e3(0x90)](function(){return _0xbcc9ea();});},module['exports']={'up':function(_0x598a32){return new Promise(function(_0x3c49ac){const _0x1bfdcd=a1134_0x3992,_0x5d4d77=new Migration(_0x598a32);_0x5d4d77[_0x1bfdcd(0x89)](_0x3c49ac);});},'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 47ef77c..8aed8cd 100644 --- a/server/migrations/2.3.10.js +++ b/server/migrations/2.3.10.js @@ -1 +1 @@ -const a973_0x521a=['renameColumn','tail','Added\x20column\x20%s\x20to\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','util','sequelize','info','sipcallid','../config/logger','query\x20%s','finally','stringify','addColumn','addIndex','query','Changed\x20column\x20%s\x20in\x20table\x20%s','then','queryInterface','removeColumn','catch','table\x20dropped\x20%s','inspect','join','enqueue','removeIndex\x20%s\x20%s','final','dropTable','changeColumn','prototype','sequence','addIndex\x20%s\x20%s\x20%s','Removed\x20column\x20%s\x20from\x20%s','removeIndex'];(function(_0x33350b,_0x521a0a){const _0x3bfc2d=function(_0x113ea0){while(--_0x113ea0){_0x33350b['push'](_0x33350b['shift']());}};_0x3bfc2d(++_0x521a0a);}(a973_0x521a,0xcf));const a973_0x3bfc=function(_0x33350b,_0x521a0a){_0x33350b=_0x33350b-0x0;let _0x3bfc2d=a973_0x521a[_0x33350b];return _0x3bfc2d;};const _0x5b1b4a=a973_0x3bfc;'use strict';const util=require(_0x5b1b4a('0x1c')),logger=require(_0x5b1b4a('0x20'))('migration'),Sequence=function(){};Sequence['prototype'][_0x5b1b4a('0xe')]=function(_0x113ea0){const _0x20ca4b=_0x5b1b4a;this[_0x20ca4b('0x19')]=this[_0x20ca4b('0x19')]?this[_0x20ca4b('0x19')][_0x20ca4b('0x1')](_0x113ea0):_0x113ea0();};const Migration=function(_0x5d462c){const _0x15250e=_0x5b1b4a;this[_0x15250e('0x8')]=_0x5d462c,this[_0x15250e('0x14')]=new Sequence();};Migration[_0x5b1b4a('0x13')][_0x5b1b4a('0x12')]=function(_0x26f53e,_0x53d7ff,_0x2094f1){const _0x4fb498=_0x5b1b4a,_0x4d0219=this;this[_0x4fb498('0x14')][_0x4fb498('0xe')](function(){const _0x4fd028=_0x4fb498;return _0x4d0219['queryInterface'][_0x4fd028('0x12')](_0x26f53e,_0x53d7ff,_0x2094f1)[_0x4fd028('0x7')](function(){const _0x29ca05=_0x4fd028;logger[_0x29ca05('0x1e')](_0x29ca05('0x6'),_0x53d7ff,_0x26f53e);})['catch'](function(_0x49e033){const _0x839d90=_0x4fd028;logger[_0x839d90('0x1e')](JSON[_0x839d90('0x2')](_0x49e033));});});},Migration[_0x5b1b4a('0x13')][_0x5b1b4a('0x3')]=function(_0x4f1cbc,_0x52411a,_0x4ff311){const _0x5d5508=_0x5b1b4a,_0x5cb4cb=this;this[_0x5d5508('0x14')]['enqueue'](function(){const _0x1ba476=_0x5d5508;return _0x5cb4cb['queryInterface'][_0x1ba476('0x3')](_0x4f1cbc,_0x52411a,_0x4ff311)[_0x1ba476('0x7')](function(){const _0x5197e9=_0x1ba476;logger['info'](_0x5197e9('0x1a'),_0x52411a,_0x4f1cbc);})[_0x1ba476('0xa')](function(_0x1939f5){const _0x46ad99=_0x1ba476;logger[_0x46ad99('0x1e')](JSON[_0x46ad99('0x2')](_0x1939f5));});});},Migration['prototype']['dropTable']=function(_0x35d540){const _0x11f3d2=_0x5b1b4a,_0x2cc58e=this;this['sequence'][_0x11f3d2('0xe')](function(){const _0x41d57e=_0x11f3d2;return _0x2cc58e['queryInterface'][_0x41d57e('0x11')](_0x35d540,{'force':!![]})['then'](function(){const _0x157441=_0x41d57e;logger[_0x157441('0x1e')](_0x157441('0xb'),_0x35d540);})['catch'](function(_0xe2c2b5){const _0x37b433=_0x41d57e;logger[_0x37b433('0x1e')](JSON[_0x37b433('0x2')](_0xe2c2b5));});});},Migration[_0x5b1b4a('0x13')]['addIndex']=function(_0x2b1d6c,_0x584a21,_0x5d7fd5){const _0x3bfef3=_0x5b1b4a,_0x2a4d94=this;this[_0x3bfef3('0x14')][_0x3bfef3('0xe')](function(){const _0x482e2a=_0x3bfef3;return _0x2a4d94[_0x482e2a('0x8')][_0x482e2a('0x4')](_0x2b1d6c,_0x584a21,{'indexName':_0x5d7fd5})['then'](function(){const _0x42abd2=_0x482e2a;logger[_0x42abd2('0x1e')](_0x42abd2('0x15'),_0x2b1d6c,_0x584a21[_0x42abd2('0xd')](','),_0x5d7fd5);})[_0x482e2a('0xa')](function(_0x579cc2){const _0x26d7a0=_0x482e2a;logger[_0x26d7a0('0x1e')](JSON[_0x26d7a0('0x2')](_0x579cc2));});});},Migration[_0x5b1b4a('0x13')][_0x5b1b4a('0x17')]=function(_0x21c61b,_0x536154){const _0x50cf75=_0x5b1b4a,_0x3f7ae1=this;this['sequence'][_0x50cf75('0xe')](function(){const _0x1ba42a=_0x50cf75;return _0x3f7ae1[_0x1ba42a('0x8')][_0x1ba42a('0x17')](_0x21c61b,_0x536154)[_0x1ba42a('0x7')](function(){const _0x2a7120=_0x1ba42a;logger[_0x2a7120('0x1e')](_0x2a7120('0xf'),_0x21c61b,_0x536154);})[_0x1ba42a('0xa')](function(_0x57557b){const _0x3cb60f=_0x1ba42a;logger[_0x3cb60f('0x1e')](JSON['stringify'](_0x57557b));});});},Migration['prototype'][_0x5b1b4a('0x5')]=function(_0x3c2806){const _0x371511=_0x5b1b4a,_0x3d6da2=this;this[_0x371511('0x14')][_0x371511('0xe')](function(){const _0x22e35a=_0x371511;return _0x3d6da2['queryInterface'][_0x22e35a('0x1d')][_0x22e35a('0x5')](_0x3c2806)['then'](function(){const _0x16e245=_0x22e35a;logger[_0x16e245('0x1e')](_0x16e245('0x0'),_0x3c2806);})[_0x22e35a('0xa')](function(_0x5cb495){const _0x500561=_0x22e35a;logger[_0x500561('0x1e')](JSON[_0x500561('0x2')](_0x5cb495));});});},Migration[_0x5b1b4a('0x13')][_0x5b1b4a('0x9')]=function(_0x57de40,_0x65eb8e){const _0x489a06=_0x5b1b4a,_0x937944=this;this[_0x489a06('0x14')][_0x489a06('0xe')](function(){const _0x4c5596=_0x489a06;return _0x937944[_0x4c5596('0x8')][_0x4c5596('0x9')](_0x57de40,_0x65eb8e)['then'](function(){const _0x1277b0=_0x4c5596;logger[_0x1277b0('0x1e')](_0x1277b0('0x16'),_0x65eb8e,_0x57de40);})[_0x4c5596('0xa')](function(_0x1e3c27){const _0xeed6=_0x4c5596;logger[_0xeed6('0x1e')](util['inspect'](_0x1e3c27,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x5b1b4a('0x18')]=function(_0x553336,_0xbed534,_0x5d38ca){const _0x43343c=_0x5b1b4a,_0xd85360=this;this[_0x43343c('0x14')][_0x43343c('0xe')](function(){const _0x22a45b=_0x43343c;return _0xd85360['queryInterface'][_0x22a45b('0x18')](_0x553336,_0xbed534,_0x5d38ca)['then'](function(){const _0x327289=_0x22a45b;logger[_0x327289('0x1e')](_0x327289('0x1b'),_0xbed534,_0x5d38ca,_0x553336);})[_0x22a45b('0xa')](function(_0x25b700){const _0x9f48ee=_0x22a45b;logger[_0x9f48ee('0x1e')](util[_0x9f48ee('0xc')](_0x25b700,{'showHidden':![],'depth':null}));});});},Migration[_0x5b1b4a('0x13')]['final']=function(_0x24e86f){const _0x23df67=_0x5b1b4a;this[_0x23df67('0x14')][_0x23df67('0xe')](function(){return _0x24e86f();});},module['exports']={'up':function(_0x301e1f,_0x4c22b2){return new Promise(function(_0x320e04){const _0x181312=a973_0x3bfc,_0x5c8d25=new Migration(_0x301e1f);_0x5c8d25[_0x181312('0x3')]('report_call',_0x181312('0x1f'),{'type':_0x4c22b2['STRING']}),_0x5c8d25[_0x181312('0x10')](_0x320e04);});},'down':function(){}}; \ No newline at end of file +const a1135_0x31b6=['migration','stringify','info','inspect','removeIndex','dropTable','Changed\x20column\x20%s\x20in\x20table\x20%s','addIndex','catch','exports','queryInterface','table\x20dropped\x20%s','STRING','enqueue','sipcallid','removeColumn','addColumn','sequence','../config/logger','Removed\x20column\x20%s\x20from\x20%s','addIndex\x20%s\x20%s\x20%s','sequelize','final','join','query','tail','finally','util','changeColumn','renameColumn','prototype','then','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s'];(function(_0x1247c3,_0x70c703){const _0x31b618=function(_0x456ba7){while(--_0x456ba7){_0x1247c3['push'](_0x1247c3['shift']());}};_0x31b618(++_0x70c703);}(a1135_0x31b6,0x130));const a1135_0x456b=function(_0x1247c3,_0x70c703){_0x1247c3=_0x1247c3-0x1f3;let _0x31b618=a1135_0x31b6[_0x1247c3];return _0x31b618;};const a1135_0x37ed26=a1135_0x456b;'use strict';const util=require(a1135_0x37ed26(0x207)),logger=require(a1135_0x37ed26(0x1fe))(a1135_0x37ed26(0x20d)),Sequence=function(){};Sequence['prototype']['enqueue']=function(_0x5b1bb4){const _0x4be32f=a1135_0x37ed26;this[_0x4be32f(0x205)]=this[_0x4be32f(0x205)]?this[_0x4be32f(0x205)][_0x4be32f(0x206)](_0x5b1bb4):_0x5b1bb4();};const Migration=function(_0xd53076){const _0x5b60b5=a1135_0x37ed26;this[_0x5b60b5(0x1f6)]=_0xd53076,this[_0x5b60b5(0x1fd)]=new Sequence();};Migration[a1135_0x37ed26(0x20a)][a1135_0x37ed26(0x208)]=function(_0x22c2ec,_0x522f0b,_0x40b4a4){const _0x1525ad=this;this['sequence']['enqueue'](function(){const _0x147c77=a1135_0x456b;return _0x1525ad['queryInterface'][_0x147c77(0x208)](_0x22c2ec,_0x522f0b,_0x40b4a4)[_0x147c77(0x20b)](function(){const _0x55f67f=_0x147c77;logger[_0x55f67f(0x20f)](_0x55f67f(0x213),_0x522f0b,_0x22c2ec);})[_0x147c77(0x1f4)](function(_0x43e9ea){const _0xe9188b=_0x147c77;logger['info'](JSON[_0xe9188b(0x20e)](_0x43e9ea));});});},Migration[a1135_0x37ed26(0x20a)]['addColumn']=function(_0x286911,_0xafd2c7,_0xbc7eee){const _0x57ec2e=a1135_0x37ed26,_0x1174d4=this;this[_0x57ec2e(0x1fd)][_0x57ec2e(0x1f9)](function(){const _0x2c4fb9=_0x57ec2e;return _0x1174d4['queryInterface'][_0x2c4fb9(0x1fc)](_0x286911,_0xafd2c7,_0xbc7eee)[_0x2c4fb9(0x20b)](function(){const _0x1cfe34=_0x2c4fb9;logger[_0x1cfe34(0x20f)]('Added\x20column\x20%s\x20to\x20%s',_0xafd2c7,_0x286911);})[_0x2c4fb9(0x1f4)](function(_0x31802d){const _0x5bea6c=_0x2c4fb9;logger[_0x5bea6c(0x20f)](JSON[_0x5bea6c(0x20e)](_0x31802d));});});},Migration[a1135_0x37ed26(0x20a)][a1135_0x37ed26(0x212)]=function(_0x444aee){const _0x151598=a1135_0x37ed26,_0x56cd13=this;this[_0x151598(0x1fd)][_0x151598(0x1f9)](function(){const _0x261c12=_0x151598;return _0x56cd13['queryInterface'][_0x261c12(0x212)](_0x444aee,{'force':!![]})[_0x261c12(0x20b)](function(){const _0x25e61f=_0x261c12;logger[_0x25e61f(0x20f)](_0x25e61f(0x1f7),_0x444aee);})[_0x261c12(0x1f4)](function(_0x496161){const _0x321290=_0x261c12;logger['info'](JSON[_0x321290(0x20e)](_0x496161));});});},Migration[a1135_0x37ed26(0x20a)][a1135_0x37ed26(0x1f3)]=function(_0x44fafd,_0x190d27,_0x3dd86c){const _0x50f219=a1135_0x37ed26,_0x221bd0=this;this[_0x50f219(0x1fd)][_0x50f219(0x1f9)](function(){const _0x759804=_0x50f219;return _0x221bd0['queryInterface']['addIndex'](_0x44fafd,_0x190d27,{'indexName':_0x3dd86c})[_0x759804(0x20b)](function(){const _0x63812e=_0x759804;logger[_0x63812e(0x20f)](_0x63812e(0x200),_0x44fafd,_0x190d27[_0x63812e(0x203)](','),_0x3dd86c);})[_0x759804(0x1f4)](function(_0x5d7fd4){const _0x458c54=_0x759804;logger[_0x458c54(0x20f)](JSON[_0x458c54(0x20e)](_0x5d7fd4));});});},Migration[a1135_0x37ed26(0x20a)][a1135_0x37ed26(0x211)]=function(_0x2df0e8,_0x35f1f2){const _0x31a464=a1135_0x37ed26,_0x21c5f7=this;this[_0x31a464(0x1fd)][_0x31a464(0x1f9)](function(){const _0x563e03=_0x31a464;return _0x21c5f7['queryInterface'][_0x563e03(0x211)](_0x2df0e8,_0x35f1f2)[_0x563e03(0x20b)](function(){logger['info']('removeIndex\x20%s\x20%s',_0x2df0e8,_0x35f1f2);})[_0x563e03(0x1f4)](function(_0x976d09){const _0x33646a=_0x563e03;logger[_0x33646a(0x20f)](JSON[_0x33646a(0x20e)](_0x976d09));});});},Migration['prototype'][a1135_0x37ed26(0x204)]=function(_0x3bd631){const _0x9c723=a1135_0x37ed26,_0x154136=this;this[_0x9c723(0x1fd)][_0x9c723(0x1f9)](function(){const _0x1e16d7=_0x9c723;return _0x154136[_0x1e16d7(0x1f6)][_0x1e16d7(0x201)][_0x1e16d7(0x204)](_0x3bd631)[_0x1e16d7(0x20b)](function(){logger['info']('query\x20%s',_0x3bd631);})[_0x1e16d7(0x1f4)](function(_0x575b49){const _0x521881=_0x1e16d7;logger['info'](JSON[_0x521881(0x20e)](_0x575b49));});});},Migration[a1135_0x37ed26(0x20a)][a1135_0x37ed26(0x1fb)]=function(_0x2d5956,_0x22c8f0){const _0x2886c9=a1135_0x37ed26,_0x1c03c3=this;this[_0x2886c9(0x1fd)][_0x2886c9(0x1f9)](function(){const _0x47c65e=_0x2886c9;return _0x1c03c3['queryInterface'][_0x47c65e(0x1fb)](_0x2d5956,_0x22c8f0)['then'](function(){const _0x134e49=_0x47c65e;logger[_0x134e49(0x20f)](_0x134e49(0x1ff),_0x22c8f0,_0x2d5956);})[_0x47c65e(0x1f4)](function(_0x19a1b9){const _0x3d8a4e=_0x47c65e;logger[_0x3d8a4e(0x20f)](util[_0x3d8a4e(0x210)](_0x19a1b9,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1135_0x37ed26(0x209)]=function(_0x5059de,_0xd0a7be,_0x1c1fa5){const _0x33a9c0=a1135_0x37ed26,_0x509ebe=this;this[_0x33a9c0(0x1fd)][_0x33a9c0(0x1f9)](function(){const _0x174ab1=_0x33a9c0;return _0x509ebe[_0x174ab1(0x1f6)][_0x174ab1(0x209)](_0x5059de,_0xd0a7be,_0x1c1fa5)[_0x174ab1(0x20b)](function(){const _0x301d6b=_0x174ab1;logger[_0x301d6b(0x20f)](_0x301d6b(0x20c),_0xd0a7be,_0x1c1fa5,_0x5059de);})['catch'](function(_0x3553ea){const _0x2be0b9=_0x174ab1;logger[_0x2be0b9(0x20f)](util[_0x2be0b9(0x210)](_0x3553ea,{'showHidden':![],'depth':null}));});});},Migration[a1135_0x37ed26(0x20a)][a1135_0x37ed26(0x202)]=function(_0x1fbd71){const _0x1ecb2f=a1135_0x37ed26;this[_0x1ecb2f(0x1fd)][_0x1ecb2f(0x1f9)](function(){return _0x1fbd71();});},module[a1135_0x37ed26(0x1f5)]={'up':function(_0x8c37ed,_0x519631){return new Promise(function(_0x5878ba){const _0x47fada=a1135_0x456b,_0x45058c=new Migration(_0x8c37ed);_0x45058c[_0x47fada(0x1fc)]('report_call',_0x47fada(0x1fa),{'type':_0x519631[_0x47fada(0x1f8)]}),_0x45058c[_0x47fada(0x202)](_0x5878ba);});},'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 a590dfe..4e86b0e 100644 --- a/server/migrations/2.3.2.js +++ b/server/migrations/2.3.2.js @@ -1 +1 @@ -const a974_0x20d4=['queryInterface','util','rtlSupport','inspect','final','BOOLEAN','ALTER\x20TABLE\x20int_servicenow_accounts\x20ENCRYPTION=\x27Y\x27;','changeColumn','removeIndex','../config/logger','sequence','table\x20dropped\x20%s','ALTER\x20TABLE\x20int_dynamics365_accounts\x20ENCRYPTION=\x27Y\x27;','Removed\x20column\x20%s\x20from\x20%s','then','exports','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','finally','sequelize','tail','addColumn','catch','query','stringify','settings','Changed\x20column\x20%s\x20in\x20table\x20%s','migration','removeIndex\x20%s\x20%s','enqueue','info','prototype','addIndex\x20%s\x20%s\x20%s','addIndex','renameColumn','removeColumn'];(function(_0x3fdac0,_0x20d448){const _0x39a745=function(_0xef3603){while(--_0xef3603){_0x3fdac0['push'](_0x3fdac0['shift']());}};_0x39a745(++_0x20d448);}(a974_0x20d4,0xd8));const a974_0x39a7=function(_0x3fdac0,_0x20d448){_0x3fdac0=_0x3fdac0-0x0;let _0x39a745=a974_0x20d4[_0x3fdac0];return _0x39a745;};const _0x1d9167=a974_0x39a7;'use strict';const util=require(_0x1d9167('0x1e')),logger=require(_0x1d9167('0x3'))(_0x1d9167('0x14')),Sequence=function(){};Sequence[_0x1d9167('0x18')][_0x1d9167('0x16')]=function(_0xef3603){const _0x287026=_0x1d9167;this[_0x287026('0xd')]=this[_0x287026('0xd')]?this[_0x287026('0xd')][_0x287026('0xb')](_0xef3603):_0xef3603();};const Migration=function(_0x1ef018){const _0x3db678=_0x1d9167;this[_0x3db678('0x1d')]=_0x1ef018,this[_0x3db678('0x4')]=new Sequence();};Migration[_0x1d9167('0x18')][_0x1d9167('0x1')]=function(_0x51f9be,_0x31c505,_0x1a65c7){const _0x31e041=_0x1d9167,_0x36b352=this;this[_0x31e041('0x4')][_0x31e041('0x16')](function(){const _0x477b86=_0x31e041;return _0x36b352[_0x477b86('0x1d')][_0x477b86('0x1')](_0x51f9be,_0x31c505,_0x1a65c7)[_0x477b86('0x8')](function(){const _0x34fd0a=_0x477b86;logger[_0x34fd0a('0x17')](_0x34fd0a('0x13'),_0x31c505,_0x51f9be);})[_0x477b86('0xf')](function(_0x596ecd){const _0xcd7f70=_0x477b86;logger[_0xcd7f70('0x17')](JSON[_0xcd7f70('0x11')](_0x596ecd));});});},Migration[_0x1d9167('0x18')][_0x1d9167('0xe')]=function(_0x53bc87,_0x157fb4,_0x1f0c68){const _0x14e3fc=_0x1d9167,_0x17f1be=this;this[_0x14e3fc('0x4')][_0x14e3fc('0x16')](function(){const _0x43da66=_0x14e3fc;return _0x17f1be[_0x43da66('0x1d')]['addColumn'](_0x53bc87,_0x157fb4,_0x1f0c68)['then'](function(){const _0x4bc35e=_0x43da66;logger[_0x4bc35e('0x17')]('Added\x20column\x20%s\x20to\x20%s',_0x157fb4,_0x53bc87);})[_0x43da66('0xf')](function(_0x2c8499){const _0x3ba61c=_0x43da66;logger[_0x3ba61c('0x17')](JSON['stringify'](_0x2c8499));});});},Migration[_0x1d9167('0x18')]['dropTable']=function(_0x3c183c){const _0x4dd8b8=_0x1d9167,_0x399e94=this;this[_0x4dd8b8('0x4')][_0x4dd8b8('0x16')](function(){const _0x335f59=_0x4dd8b8;return _0x399e94[_0x335f59('0x1d')]['dropTable'](_0x3c183c,{'force':!![]})[_0x335f59('0x8')](function(){const _0x45f8a8=_0x335f59;logger[_0x45f8a8('0x17')](_0x45f8a8('0x5'),_0x3c183c);})[_0x335f59('0xf')](function(_0x421c96){const _0x453166=_0x335f59;logger[_0x453166('0x17')](JSON[_0x453166('0x11')](_0x421c96));});});},Migration[_0x1d9167('0x18')][_0x1d9167('0x1a')]=function(_0x3baabc,_0x469589,_0x2c5f2c){const _0x4edbdb=_0x1d9167,_0x46f9b9=this;this[_0x4edbdb('0x4')][_0x4edbdb('0x16')](function(){const _0x5a18d3=_0x4edbdb;return _0x46f9b9[_0x5a18d3('0x1d')][_0x5a18d3('0x1a')](_0x3baabc,_0x469589,{'indexName':_0x2c5f2c})[_0x5a18d3('0x8')](function(){const _0x59bd34=_0x5a18d3;logger['info'](_0x59bd34('0x19'),_0x3baabc,_0x469589['join'](','),_0x2c5f2c);})['catch'](function(_0x1d45bb){const _0x16af24=_0x5a18d3;logger[_0x16af24('0x17')](JSON[_0x16af24('0x11')](_0x1d45bb));});});},Migration[_0x1d9167('0x18')][_0x1d9167('0x2')]=function(_0x154706,_0x36d5a0){const _0x317d5a=_0x1d9167,_0x495f58=this;this[_0x317d5a('0x4')][_0x317d5a('0x16')](function(){const _0x825f6a=_0x317d5a;return _0x495f58['queryInterface'][_0x825f6a('0x2')](_0x154706,_0x36d5a0)[_0x825f6a('0x8')](function(){const _0x498116=_0x825f6a;logger[_0x498116('0x17')](_0x498116('0x15'),_0x154706,_0x36d5a0);})[_0x825f6a('0xf')](function(_0x30071c){const _0x4889c5=_0x825f6a;logger['info'](JSON[_0x4889c5('0x11')](_0x30071c));});});},Migration[_0x1d9167('0x18')]['query']=function(_0x4649af){const _0x5984f6=_0x1d9167,_0x93c221=this;this['sequence'][_0x5984f6('0x16')](function(){const _0x741e13=_0x5984f6;return _0x93c221[_0x741e13('0x1d')][_0x741e13('0xc')]['query'](_0x4649af)[_0x741e13('0x8')](function(){const _0x3fd293=_0x741e13;logger[_0x3fd293('0x17')]('query\x20%s',_0x4649af);})['catch'](function(_0x19401b){const _0x126014=_0x741e13;logger[_0x126014('0x17')](JSON['stringify'](_0x19401b));});});},Migration['prototype']['removeColumn']=function(_0x599628,_0x3880e1){const _0x3a87b5=this;this['sequence']['enqueue'](function(){const _0x41ab7b=a974_0x39a7;return _0x3a87b5[_0x41ab7b('0x1d')][_0x41ab7b('0x1c')](_0x599628,_0x3880e1)['then'](function(){const _0x385d9d=_0x41ab7b;logger['info'](_0x385d9d('0x7'),_0x3880e1,_0x599628);})[_0x41ab7b('0xf')](function(_0x2c908f){const _0x3bfaa7=_0x41ab7b;logger[_0x3bfaa7('0x17')](util[_0x3bfaa7('0x20')](_0x2c908f,{'showHidden':![],'depth':null}));});});},Migration[_0x1d9167('0x18')][_0x1d9167('0x1b')]=function(_0x34d759,_0x28073a,_0x49848f){const _0x4d97c8=_0x1d9167,_0x3b281e=this;this['sequence'][_0x4d97c8('0x16')](function(){const _0x477661=_0x4d97c8;return _0x3b281e[_0x477661('0x1d')][_0x477661('0x1b')](_0x34d759,_0x28073a,_0x49848f)[_0x477661('0x8')](function(){const _0x44f5e0=_0x477661;logger[_0x44f5e0('0x17')](_0x44f5e0('0xa'),_0x28073a,_0x49848f,_0x34d759);})['catch'](function(_0x2caf6a){const _0xfda0a6=_0x477661;logger[_0xfda0a6('0x17')](util[_0xfda0a6('0x20')](_0x2caf6a,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x1d9167('0x21')]=function(_0x4819e7){const _0x37b6d6=_0x1d9167;this['sequence'][_0x37b6d6('0x16')](function(){return _0x4819e7();});},module[_0x1d9167('0x9')]={'up':function(_0x5133bd,_0x1fe5c4){return new Promise(function(_0x44112b){const _0x2d6a04=a974_0x39a7,_0x256b05=new Migration(_0x5133bd);_0x256b05[_0x2d6a04('0x10')](_0x2d6a04('0x6')),_0x256b05[_0x2d6a04('0x10')](_0x2d6a04('0x0')),_0x256b05[_0x2d6a04('0xe')](_0x2d6a04('0x12'),_0x2d6a04('0x1f'),{'type':_0x1fe5c4[_0x2d6a04('0x22')],'defaultValue':![]}),_0x256b05['final'](_0x44112b);});},'down':function(){}}; \ No newline at end of file +const a1136_0x5c33=['catch','query','renameColumn','Added\x20column\x20%s\x20to\x20%s','Removed\x20column\x20%s\x20from\x20%s','sequence','exports','removeColumn','ALTER\x20TABLE\x20int_servicenow_accounts\x20ENCRYPTION=\x27Y\x27;','rtlSupport','final','enqueue','util','removeIndex','join','Changed\x20column\x20%s\x20in\x20table\x20%s','prototype','migration','finally','then','table\x20dropped\x20%s','addColumn','stringify','tail','query\x20%s','queryInterface','addIndex','info','removeIndex\x20%s\x20%s','addIndex\x20%s\x20%s\x20%s'];(function(_0x298709,_0x505d6f){const _0x5c3370=function(_0x52a5b6){while(--_0x52a5b6){_0x298709['push'](_0x298709['shift']());}};_0x5c3370(++_0x505d6f);}(a1136_0x5c33,0x124));const a1136_0x52a5=function(_0x298709,_0x505d6f){_0x298709=_0x298709-0xfd;let _0x5c3370=a1136_0x5c33[_0x298709];return _0x5c3370;};const a1136_0x4937ec=a1136_0x52a5;'use strict';const util=require(a1136_0x4937ec(0x111)),logger=require('../config/logger')(a1136_0x4937ec(0x116)),Sequence=function(){};Sequence[a1136_0x4937ec(0x115)][a1136_0x4937ec(0x110)]=function(_0x36e95e){const _0x144294=a1136_0x4937ec;this[_0x144294(0xfe)]=this[_0x144294(0xfe)]?this[_0x144294(0xfe)][_0x144294(0x117)](_0x36e95e):_0x36e95e();};const Migration=function(_0x4493aa){const _0x37e2d9=a1136_0x4937ec;this[_0x37e2d9(0x100)]=_0x4493aa,this[_0x37e2d9(0x10a)]=new Sequence();};Migration[a1136_0x4937ec(0x115)]['changeColumn']=function(_0x33b13c,_0x7ecabb,_0x269194){const _0x2206dc=a1136_0x4937ec,_0x41207a=this;this[_0x2206dc(0x10a)][_0x2206dc(0x110)](function(){const _0x215eee=_0x2206dc;return _0x41207a[_0x215eee(0x100)]['changeColumn'](_0x33b13c,_0x7ecabb,_0x269194)[_0x215eee(0x118)](function(){const _0x44bd05=_0x215eee;logger['info'](_0x44bd05(0x114),_0x7ecabb,_0x33b13c);})[_0x215eee(0x105)](function(_0x159490){const _0x31c083=_0x215eee;logger['info'](JSON[_0x31c083(0xfd)](_0x159490));});});},Migration[a1136_0x4937ec(0x115)]['addColumn']=function(_0xd3070c,_0x70d3bd,_0x4058e2){const _0xfb0984=a1136_0x4937ec,_0xedbe08=this;this[_0xfb0984(0x10a)][_0xfb0984(0x110)](function(){const _0x29c2af=_0xfb0984;return _0xedbe08['queryInterface'][_0x29c2af(0x11a)](_0xd3070c,_0x70d3bd,_0x4058e2)[_0x29c2af(0x118)](function(){const _0x5d365b=_0x29c2af;logger[_0x5d365b(0x102)](_0x5d365b(0x108),_0x70d3bd,_0xd3070c);})[_0x29c2af(0x105)](function(_0x5575c7){logger['info'](JSON['stringify'](_0x5575c7));});});},Migration[a1136_0x4937ec(0x115)]['dropTable']=function(_0x48745c){const _0x5d793c=a1136_0x4937ec,_0x2b7361=this;this['sequence'][_0x5d793c(0x110)](function(){const _0x6caa6=_0x5d793c;return _0x2b7361[_0x6caa6(0x100)]['dropTable'](_0x48745c,{'force':!![]})[_0x6caa6(0x118)](function(){const _0x586397=_0x6caa6;logger[_0x586397(0x102)](_0x586397(0x119),_0x48745c);})[_0x6caa6(0x105)](function(_0x12cdfa){const _0x4613a5=_0x6caa6;logger[_0x4613a5(0x102)](JSON['stringify'](_0x12cdfa));});});},Migration[a1136_0x4937ec(0x115)][a1136_0x4937ec(0x101)]=function(_0x5e218f,_0x3d7955,_0x43b3be){const _0x23c91b=a1136_0x4937ec,_0x5f3f5e=this;this[_0x23c91b(0x10a)]['enqueue'](function(){const _0x47f4be=_0x23c91b;return _0x5f3f5e[_0x47f4be(0x100)][_0x47f4be(0x101)](_0x5e218f,_0x3d7955,{'indexName':_0x43b3be})[_0x47f4be(0x118)](function(){const _0xb6402f=_0x47f4be;logger['info'](_0xb6402f(0x104),_0x5e218f,_0x3d7955[_0xb6402f(0x113)](','),_0x43b3be);})[_0x47f4be(0x105)](function(_0x4e87d1){logger['info'](JSON['stringify'](_0x4e87d1));});});},Migration[a1136_0x4937ec(0x115)][a1136_0x4937ec(0x112)]=function(_0x5b29bb,_0x13e3cd){const _0x1be0d3=a1136_0x4937ec,_0xe93153=this;this[_0x1be0d3(0x10a)][_0x1be0d3(0x110)](function(){const _0x17c61f=_0x1be0d3;return _0xe93153['queryInterface'][_0x17c61f(0x112)](_0x5b29bb,_0x13e3cd)['then'](function(){const _0x36ee57=_0x17c61f;logger[_0x36ee57(0x102)](_0x36ee57(0x103),_0x5b29bb,_0x13e3cd);})[_0x17c61f(0x105)](function(_0x25fb8c){const _0x1d203a=_0x17c61f;logger[_0x1d203a(0x102)](JSON['stringify'](_0x25fb8c));});});},Migration['prototype'][a1136_0x4937ec(0x106)]=function(_0x3ded21){const _0xba52b0=a1136_0x4937ec,_0x334ac1=this;this[_0xba52b0(0x10a)][_0xba52b0(0x110)](function(){const _0x41f916=_0xba52b0;return _0x334ac1[_0x41f916(0x100)]['sequelize'][_0x41f916(0x106)](_0x3ded21)[_0x41f916(0x118)](function(){const _0x26f488=_0x41f916;logger['info'](_0x26f488(0xff),_0x3ded21);})[_0x41f916(0x105)](function(_0x52da00){const _0x56bb90=_0x41f916;logger[_0x56bb90(0x102)](JSON[_0x56bb90(0xfd)](_0x52da00));});});},Migration['prototype'][a1136_0x4937ec(0x10c)]=function(_0x4b50c1,_0x3b4b46){const _0x3c1658=a1136_0x4937ec,_0x4c6f30=this;this[_0x3c1658(0x10a)][_0x3c1658(0x110)](function(){const _0x8f2110=_0x3c1658;return _0x4c6f30[_0x8f2110(0x100)][_0x8f2110(0x10c)](_0x4b50c1,_0x3b4b46)['then'](function(){const _0x5410d3=_0x8f2110;logger[_0x5410d3(0x102)](_0x5410d3(0x109),_0x3b4b46,_0x4b50c1);})['catch'](function(_0xa0a019){const _0x2ce43b=_0x8f2110;logger[_0x2ce43b(0x102)](util['inspect'](_0xa0a019,{'showHidden':![],'depth':null}));});});},Migration[a1136_0x4937ec(0x115)][a1136_0x4937ec(0x107)]=function(_0x44907d,_0x552c86,_0x53b302){const _0x56f82b=a1136_0x4937ec,_0x3d8db4=this;this['sequence'][_0x56f82b(0x110)](function(){const _0x4fb699=_0x56f82b;return _0x3d8db4[_0x4fb699(0x100)][_0x4fb699(0x107)](_0x44907d,_0x552c86,_0x53b302)['then'](function(){const _0x8c0d1f=_0x4fb699;logger[_0x8c0d1f(0x102)]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x552c86,_0x53b302,_0x44907d);})[_0x4fb699(0x105)](function(_0x333fd3){const _0x57c76f=_0x4fb699;logger[_0x57c76f(0x102)](util['inspect'](_0x333fd3,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1136_0x4937ec(0x10f)]=function(_0x5a44bd){const _0x301d4f=a1136_0x4937ec;this[_0x301d4f(0x10a)][_0x301d4f(0x110)](function(){return _0x5a44bd();});},module[a1136_0x4937ec(0x10b)]={'up':function(_0x40dba9,_0x2e7e6b){return new Promise(function(_0xce0fb){const _0x299eba=a1136_0x52a5,_0x587f93=new Migration(_0x40dba9);_0x587f93[_0x299eba(0x106)]('ALTER\x20TABLE\x20int_dynamics365_accounts\x20ENCRYPTION=\x27Y\x27;'),_0x587f93[_0x299eba(0x106)](_0x299eba(0x10d)),_0x587f93[_0x299eba(0x11a)]('settings',_0x299eba(0x10e),{'type':_0x2e7e6b['BOOLEAN'],'defaultValue':![]}),_0x587f93['final'](_0xce0fb);});},'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 8fbfafc..f093043 100644 --- a/server/migrations/2.3.3.js +++ b/server/migrations/2.3.3.js @@ -1 +1 @@ -const a975_0x4254=['enqueue','openchannel_applications','join','then','addIndex','exports','catch','query\x20%s','addIndex\x20%s\x20%s\x20%s','queryInterface','info','Changed\x20column\x20%s\x20in\x20table\x20%s','table\x20dropped\x20%s','mail_applications','prototype','dropTable','final','changeColumn','stringify','sequelize','migration','TEXT','sequence','renameColumn','Added\x20column\x20%s\x20to\x20%s','removeIndex\x20%s\x20%s','addColumn','tail','sms_applications','query','finally','appdata','removeIndex','inspect','removeColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s'];(function(_0x57f557,_0x425465){const _0x4e574e=function(_0xa9138b){while(--_0xa9138b){_0x57f557['push'](_0x57f557['shift']());}};_0x4e574e(++_0x425465);}(a975_0x4254,0x11c));const a975_0x4e57=function(_0x57f557,_0x425465){_0x57f557=_0x57f557-0x0;let _0x4e574e=a975_0x4254[_0x57f557];return _0x4e574e;};const _0x211620=a975_0x4e57;'use strict';const util=require('util'),logger=require('../config/logger')(_0x211620('0x18')),Sequence=function(){};Sequence[_0x211620('0x12')][_0x211620('0x4')]=function(_0xa9138b){const _0x36c60b=_0x211620;this[_0x36c60b('0x1f')]=this['tail']?this[_0x36c60b('0x1f')][_0x36c60b('0x22')](_0xa9138b):_0xa9138b();};const Migration=function(_0x4c3c3c){this['queryInterface']=_0x4c3c3c,this['sequence']=new Sequence();};Migration[_0x211620('0x12')][_0x211620('0x15')]=function(_0x74e474,_0x43f917,_0x1c3ce7){const _0x1ecd52=_0x211620,_0x530193=this;this[_0x1ecd52('0x1a')][_0x1ecd52('0x4')](function(){const _0x2831cb=_0x1ecd52;return _0x530193[_0x2831cb('0xd')]['changeColumn'](_0x74e474,_0x43f917,_0x1c3ce7)[_0x2831cb('0x7')](function(){const _0x4ddcef=_0x2831cb;logger['info'](_0x4ddcef('0xf'),_0x43f917,_0x74e474);})[_0x2831cb('0xa')](function(_0x1c2102){const _0x423014=_0x2831cb;logger[_0x423014('0xe')](JSON[_0x423014('0x16')](_0x1c2102));});});},Migration[_0x211620('0x12')][_0x211620('0x1e')]=function(_0x8dbc77,_0x57a8a1,_0x4fb178){const _0x22848e=_0x211620,_0x251e45=this;this['sequence'][_0x22848e('0x4')](function(){const _0x4b019c=_0x22848e;return _0x251e45[_0x4b019c('0xd')][_0x4b019c('0x1e')](_0x8dbc77,_0x57a8a1,_0x4fb178)[_0x4b019c('0x7')](function(){const _0x48de3d=_0x4b019c;logger['info'](_0x48de3d('0x1c'),_0x57a8a1,_0x8dbc77);})[_0x4b019c('0xa')](function(_0x3558db){const _0x2476fe=_0x4b019c;logger[_0x2476fe('0xe')](JSON[_0x2476fe('0x16')](_0x3558db));});});},Migration['prototype'][_0x211620('0x13')]=function(_0x3639c1){const _0x19897b=_0x211620,_0x394e5e=this;this[_0x19897b('0x1a')][_0x19897b('0x4')](function(){const _0x194684=_0x19897b;return _0x394e5e[_0x194684('0xd')]['dropTable'](_0x3639c1,{'force':!![]})[_0x194684('0x7')](function(){const _0x469b90=_0x194684;logger[_0x469b90('0xe')](_0x469b90('0x10'),_0x3639c1);})[_0x194684('0xa')](function(_0x3bfec3){const _0x2e5890=_0x194684;logger[_0x2e5890('0xe')](JSON[_0x2e5890('0x16')](_0x3bfec3));});});},Migration[_0x211620('0x12')]['addIndex']=function(_0x5b20e2,_0xcb45fd,_0x335eb4){const _0x5698d8=_0x211620,_0x8dbb7c=this;this['sequence'][_0x5698d8('0x4')](function(){const _0x5c87d9=_0x5698d8;return _0x8dbb7c[_0x5c87d9('0xd')][_0x5c87d9('0x8')](_0x5b20e2,_0xcb45fd,{'indexName':_0x335eb4})['then'](function(){const _0x22248f=_0x5c87d9;logger['info'](_0x22248f('0xc'),_0x5b20e2,_0xcb45fd[_0x22248f('0x6')](','),_0x335eb4);})[_0x5c87d9('0xa')](function(_0x5e32da){const _0x9395a=_0x5c87d9;logger[_0x9395a('0xe')](JSON['stringify'](_0x5e32da));});});},Migration[_0x211620('0x12')][_0x211620('0x0')]=function(_0xeacde1,_0x265425){const _0x5c1330=_0x211620,_0x32ae2a=this;this[_0x5c1330('0x1a')][_0x5c1330('0x4')](function(){const _0x269804=_0x5c1330;return _0x32ae2a['queryInterface']['removeIndex'](_0xeacde1,_0x265425)['then'](function(){const _0x4f7fc9=a975_0x4e57;logger[_0x4f7fc9('0xe')](_0x4f7fc9('0x1d'),_0xeacde1,_0x265425);})[_0x269804('0xa')](function(_0x5d7ddb){const _0x5196b9=_0x269804;logger['info'](JSON[_0x5196b9('0x16')](_0x5d7ddb));});});},Migration[_0x211620('0x12')][_0x211620('0x21')]=function(_0x2e2e6e){const _0x22f095=_0x211620,_0x494c9b=this;this[_0x22f095('0x1a')][_0x22f095('0x4')](function(){const _0x3f7695=_0x22f095;return _0x494c9b[_0x3f7695('0xd')][_0x3f7695('0x17')]['query'](_0x2e2e6e)['then'](function(){const _0xd47f46=_0x3f7695;logger[_0xd47f46('0xe')](_0xd47f46('0xb'),_0x2e2e6e);})[_0x3f7695('0xa')](function(_0x4fd353){const _0x66a758=_0x3f7695;logger[_0x66a758('0xe')](JSON['stringify'](_0x4fd353));});});},Migration['prototype'][_0x211620('0x2')]=function(_0x257dd2,_0x2ebf12){const _0x1a9a71=_0x211620,_0xb6918c=this;this[_0x1a9a71('0x1a')][_0x1a9a71('0x4')](function(){const _0xaef9ba=_0x1a9a71;return _0xb6918c[_0xaef9ba('0xd')][_0xaef9ba('0x2')](_0x257dd2,_0x2ebf12)[_0xaef9ba('0x7')](function(){const _0x1aef51=_0xaef9ba;logger[_0x1aef51('0xe')]('Removed\x20column\x20%s\x20from\x20%s',_0x2ebf12,_0x257dd2);})['catch'](function(_0x17390d){const _0x393285=_0xaef9ba;logger[_0x393285('0xe')](util[_0x393285('0x1')](_0x17390d,{'showHidden':![],'depth':null}));});});},Migration[_0x211620('0x12')][_0x211620('0x1b')]=function(_0x3c1be5,_0x3a8631,_0x324d66){const _0x50f5da=_0x211620,_0x2bedd8=this;this[_0x50f5da('0x1a')][_0x50f5da('0x4')](function(){const _0x386e74=_0x50f5da;return _0x2bedd8[_0x386e74('0xd')][_0x386e74('0x1b')](_0x3c1be5,_0x3a8631,_0x324d66)[_0x386e74('0x7')](function(){const _0x363c72=_0x386e74;logger[_0x363c72('0xe')](_0x363c72('0x3'),_0x3a8631,_0x324d66,_0x3c1be5);})['catch'](function(_0x4ce73e){const _0x390a33=_0x386e74;logger['info'](util[_0x390a33('0x1')](_0x4ce73e,{'showHidden':![],'depth':null}));});});},Migration[_0x211620('0x12')]['final']=function(_0x512acd){const _0x3ff60d=_0x211620;this[_0x3ff60d('0x1a')][_0x3ff60d('0x4')](function(){return _0x512acd();});},module[_0x211620('0x9')]={'up':function(_0x3b5a29,_0x52a424){return new Promise(function(_0x56f708){const _0x47ebd0=a975_0x4e57,_0x2ad411=new Migration(_0x3b5a29);_0x2ad411['query']('ALTER\x20TABLE\x20tools_canned_answers\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci;'),_0x2ad411['changeColumn']('chat_applications','appdata',{'type':_0x52a424['TEXT']()}),_0x2ad411['changeColumn']('fax_applications',_0x47ebd0('0x23'),{'type':_0x52a424[_0x47ebd0('0x19')]()}),_0x2ad411[_0x47ebd0('0x15')](_0x47ebd0('0x11'),'appdata',{'type':_0x52a424[_0x47ebd0('0x19')]()}),_0x2ad411[_0x47ebd0('0x15')](_0x47ebd0('0x5'),_0x47ebd0('0x23'),{'type':_0x52a424['TEXT']()}),_0x2ad411[_0x47ebd0('0x15')](_0x47ebd0('0x20'),_0x47ebd0('0x23'),{'type':_0x52a424[_0x47ebd0('0x19')]()}),_0x2ad411[_0x47ebd0('0x14')](_0x56f708);});},'down':function(){}}; \ No newline at end of file +const a1137_0x5345=['migration','stringify','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','chat_applications','then','util','addIndex\x20%s\x20%s\x20%s','final','table\x20dropped\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','renameColumn','tail','appdata','sequelize','fax_applications','changeColumn','addColumn','removeColumn','catch','queryInterface','prototype','inspect','dropTable','enqueue','openchannel_applications','removeIndex\x20%s\x20%s','ALTER\x20TABLE\x20tools_canned_answers\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci;','join','TEXT','query','addIndex','sequence','mail_applications','query\x20%s','info','Added\x20column\x20%s\x20to\x20%s','Removed\x20column\x20%s\x20from\x20%s'];(function(_0x1d9da6,_0x1ccd26){const _0x534595=function(_0x1ea03b){while(--_0x1ea03b){_0x1d9da6['push'](_0x1d9da6['shift']());}};_0x534595(++_0x1ccd26);}(a1137_0x5345,0x1c2));const a1137_0x1ea0=function(_0x1d9da6,_0x1ccd26){_0x1d9da6=_0x1d9da6-0x1d4;let _0x534595=a1137_0x5345[_0x1d9da6];return _0x534595;};const a1137_0x5cf150=a1137_0x1ea0;'use strict';const util=require(a1137_0x5cf150(0x1f8)),logger=require('../config/logger')(a1137_0x5cf150(0x1f3)),Sequence=function(){};Sequence[a1137_0x5cf150(0x1e2)][a1137_0x5cf150(0x1e5)]=function(_0x424600){const _0x4dcb51=a1137_0x5cf150;this[_0x4dcb51(0x1d9)]=this['tail']?this[_0x4dcb51(0x1d9)]['finally'](_0x424600):_0x424600();};const Migration=function(_0x4c4ac8){const _0x3ed091=a1137_0x5cf150;this[_0x3ed091(0x1e1)]=_0x4c4ac8,this['sequence']=new Sequence();};Migration[a1137_0x5cf150(0x1e2)]['changeColumn']=function(_0x212380,_0x2966e4,_0x38edbe){const _0x3ff383=a1137_0x5cf150,_0xa4be21=this;this['sequence'][_0x3ff383(0x1e5)](function(){const _0x5c03ad=_0x3ff383;return _0xa4be21['queryInterface']['changeColumn'](_0x212380,_0x2966e4,_0x38edbe)[_0x5c03ad(0x1f7)](function(){const _0x58e6a2=_0x5c03ad;logger[_0x58e6a2(0x1f0)](_0x58e6a2(0x1d7),_0x2966e4,_0x212380);})[_0x5c03ad(0x1e0)](function(_0x404ac8){const _0x2fc84e=_0x5c03ad;logger[_0x2fc84e(0x1f0)](JSON[_0x2fc84e(0x1f4)](_0x404ac8));});});},Migration[a1137_0x5cf150(0x1e2)][a1137_0x5cf150(0x1de)]=function(_0x287ece,_0x2c1aa2,_0x458704){const _0x478f56=a1137_0x5cf150,_0x4b23f5=this;this[_0x478f56(0x1ed)][_0x478f56(0x1e5)](function(){const _0x14108e=_0x478f56;return _0x4b23f5['queryInterface']['addColumn'](_0x287ece,_0x2c1aa2,_0x458704)[_0x14108e(0x1f7)](function(){const _0x515b10=_0x14108e;logger[_0x515b10(0x1f0)](_0x515b10(0x1f1),_0x2c1aa2,_0x287ece);})[_0x14108e(0x1e0)](function(_0x1618b7){const _0x3f2e33=_0x14108e;logger['info'](JSON[_0x3f2e33(0x1f4)](_0x1618b7));});});},Migration[a1137_0x5cf150(0x1e2)][a1137_0x5cf150(0x1e4)]=function(_0x13021d){const _0x105eba=a1137_0x5cf150,_0x37c0eb=this;this[_0x105eba(0x1ed)][_0x105eba(0x1e5)](function(){const _0x171953=_0x105eba;return _0x37c0eb[_0x171953(0x1e1)]['dropTable'](_0x13021d,{'force':!![]})['then'](function(){const _0xab1680=_0x171953;logger['info'](_0xab1680(0x1d6),_0x13021d);})[_0x171953(0x1e0)](function(_0x172091){const _0xfd6e2b=_0x171953;logger[_0xfd6e2b(0x1f0)](JSON[_0xfd6e2b(0x1f4)](_0x172091));});});},Migration['prototype']['addIndex']=function(_0x47644d,_0x19be22,_0x84461f){const _0x1ed52d=a1137_0x5cf150,_0xff269b=this;this[_0x1ed52d(0x1ed)]['enqueue'](function(){const _0x2c8fbd=_0x1ed52d;return _0xff269b[_0x2c8fbd(0x1e1)][_0x2c8fbd(0x1ec)](_0x47644d,_0x19be22,{'indexName':_0x84461f})['then'](function(){const _0x11f32b=_0x2c8fbd;logger[_0x11f32b(0x1f0)](_0x11f32b(0x1d4),_0x47644d,_0x19be22[_0x11f32b(0x1e9)](','),_0x84461f);})['catch'](function(_0x456b09){const _0x30ec28=_0x2c8fbd;logger[_0x30ec28(0x1f0)](JSON[_0x30ec28(0x1f4)](_0x456b09));});});},Migration[a1137_0x5cf150(0x1e2)]['removeIndex']=function(_0x542471,_0x5c906c){const _0x542b3d=a1137_0x5cf150,_0x5b5cd7=this;this[_0x542b3d(0x1ed)][_0x542b3d(0x1e5)](function(){const _0x367470=_0x542b3d;return _0x5b5cd7['queryInterface']['removeIndex'](_0x542471,_0x5c906c)[_0x367470(0x1f7)](function(){const _0xf4a087=_0x367470;logger[_0xf4a087(0x1f0)](_0xf4a087(0x1e7),_0x542471,_0x5c906c);})['catch'](function(_0x2c464c){const _0x1a0df1=_0x367470;logger['info'](JSON[_0x1a0df1(0x1f4)](_0x2c464c));});});},Migration['prototype'][a1137_0x5cf150(0x1eb)]=function(_0x41717f){const _0x50b642=a1137_0x5cf150,_0x13ea0c=this;this[_0x50b642(0x1ed)][_0x50b642(0x1e5)](function(){const _0x32b62c=_0x50b642;return _0x13ea0c[_0x32b62c(0x1e1)][_0x32b62c(0x1db)][_0x32b62c(0x1eb)](_0x41717f)['then'](function(){const _0x13c149=_0x32b62c;logger[_0x13c149(0x1f0)](_0x13c149(0x1ef),_0x41717f);})[_0x32b62c(0x1e0)](function(_0xf1cbf3){const _0x55a69b=_0x32b62c;logger[_0x55a69b(0x1f0)](JSON[_0x55a69b(0x1f4)](_0xf1cbf3));});});},Migration[a1137_0x5cf150(0x1e2)][a1137_0x5cf150(0x1df)]=function(_0x32472e,_0x58df4f){const _0xab7ebe=this;this['sequence']['enqueue'](function(){const _0x19ed04=a1137_0x1ea0;return _0xab7ebe['queryInterface'][_0x19ed04(0x1df)](_0x32472e,_0x58df4f)['then'](function(){const _0x5d409b=_0x19ed04;logger[_0x5d409b(0x1f0)](_0x5d409b(0x1f2),_0x58df4f,_0x32472e);})[_0x19ed04(0x1e0)](function(_0x34fd99){const _0x3295c6=_0x19ed04;logger['info'](util[_0x3295c6(0x1e3)](_0x34fd99,{'showHidden':![],'depth':null}));});});},Migration[a1137_0x5cf150(0x1e2)]['renameColumn']=function(_0x3b2aff,_0x3170b4,_0x46d6d0){const _0x38e6ad=a1137_0x5cf150,_0x20449d=this;this[_0x38e6ad(0x1ed)][_0x38e6ad(0x1e5)](function(){const _0x392445=_0x38e6ad;return _0x20449d[_0x392445(0x1e1)][_0x392445(0x1d8)](_0x3b2aff,_0x3170b4,_0x46d6d0)[_0x392445(0x1f7)](function(){const _0x5377e4=_0x392445;logger[_0x5377e4(0x1f0)](_0x5377e4(0x1f5),_0x3170b4,_0x46d6d0,_0x3b2aff);})[_0x392445(0x1e0)](function(_0x1eed13){const _0x420096=_0x392445;logger[_0x420096(0x1f0)](util[_0x420096(0x1e3)](_0x1eed13,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1137_0x5cf150(0x1d5)]=function(_0x2c0afe){const _0xf4661a=a1137_0x5cf150;this[_0xf4661a(0x1ed)]['enqueue'](function(){return _0x2c0afe();});},module['exports']={'up':function(_0xeed771,_0x5ebd4e){return new Promise(function(_0x3b2185){const _0x59384a=a1137_0x1ea0,_0x2ae68f=new Migration(_0xeed771);_0x2ae68f[_0x59384a(0x1eb)](_0x59384a(0x1e8)),_0x2ae68f['changeColumn'](_0x59384a(0x1f6),_0x59384a(0x1da),{'type':_0x5ebd4e[_0x59384a(0x1ea)]()}),_0x2ae68f[_0x59384a(0x1dd)](_0x59384a(0x1dc),'appdata',{'type':_0x5ebd4e[_0x59384a(0x1ea)]()}),_0x2ae68f[_0x59384a(0x1dd)](_0x59384a(0x1ee),'appdata',{'type':_0x5ebd4e[_0x59384a(0x1ea)]()}),_0x2ae68f[_0x59384a(0x1dd)](_0x59384a(0x1e6),'appdata',{'type':_0x5ebd4e['TEXT']()}),_0x2ae68f['changeColumn']('sms_applications',_0x59384a(0x1da),{'type':_0x5ebd4e[_0x59384a(0x1ea)]()}),_0x2ae68f[_0x59384a(0x1d5)](_0x3b2185);});},'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 0df5269..a33bd9b 100644 --- a/server/migrations/2.3.4.js +++ b/server/migrations/2.3.4.js @@ -1 +1 @@ -const a976_0x4d2c=['queryInterface','prototype','info','dropTable','Changed\x20column\x20%s\x20in\x20table\x20%s','enqueue','Removed\x20column\x20%s\x20from\x20%s','query\x20%s','renameColumn','sequelize','table\x20dropped\x20%s','query','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','../config/logger','sequence','catch','finally','util','exports','addIndex','inspect','join','removeIndex\x20%s\x20%s','Added\x20column\x20%s\x20to\x20%s','final','changeColumn','then','removeColumn','tail','addColumn','stringify'];(function(_0x1d2941,_0x4d2cd3){const _0x186833=function(_0x4a3318){while(--_0x4a3318){_0x1d2941['push'](_0x1d2941['shift']());}};_0x186833(++_0x4d2cd3);}(a976_0x4d2c,0x1d7));const a976_0x1868=function(_0x1d2941,_0x4d2cd3){_0x1d2941=_0x1d2941-0x0;let _0x186833=a976_0x4d2c[_0x1d2941];return _0x186833;};const _0x1def5e=a976_0x1868;'use strict';const util=require(_0x1def5e('0xb')),logger=require(_0x1def5e('0x7'))('migration'),Sequence=function(){};Sequence[_0x1def5e('0x1a')][_0x1def5e('0x1e')]=function(_0x4a3318){const _0x46001b=_0x1def5e;this['tail']=this[_0x46001b('0x16')]?this[_0x46001b('0x16')][_0x46001b('0xa')](_0x4a3318):_0x4a3318();};const Migration=function(_0x4ad320){const _0x4be4f3=_0x1def5e;this[_0x4be4f3('0x19')]=_0x4ad320,this[_0x4be4f3('0x8')]=new Sequence();};Migration[_0x1def5e('0x1a')][_0x1def5e('0x13')]=function(_0x15961e,_0x4e4693,_0x1875c5){const _0x5ea0f4=_0x1def5e,_0x34778d=this;this[_0x5ea0f4('0x8')][_0x5ea0f4('0x1e')](function(){const _0x310d99=_0x5ea0f4;return _0x34778d[_0x310d99('0x19')][_0x310d99('0x13')](_0x15961e,_0x4e4693,_0x1875c5)['then'](function(){const _0xced2d8=_0x310d99;logger[_0xced2d8('0x1b')](_0xced2d8('0x1d'),_0x4e4693,_0x15961e);})[_0x310d99('0x9')](function(_0x1688ab){const _0x8287f=_0x310d99;logger[_0x8287f('0x1b')](JSON[_0x8287f('0x18')](_0x1688ab));});});},Migration[_0x1def5e('0x1a')][_0x1def5e('0x17')]=function(_0x34eacd,_0xdf7666,_0x4d73c6){const _0x3b2ba3=_0x1def5e,_0x121b2b=this;this[_0x3b2ba3('0x8')][_0x3b2ba3('0x1e')](function(){const _0x142eb5=_0x3b2ba3;return _0x121b2b[_0x142eb5('0x19')][_0x142eb5('0x17')](_0x34eacd,_0xdf7666,_0x4d73c6)['then'](function(){const _0x4a7416=_0x142eb5;logger[_0x4a7416('0x1b')](_0x4a7416('0x11'),_0xdf7666,_0x34eacd);})['catch'](function(_0x4c5f88){const _0x5b19b1=_0x142eb5;logger['info'](JSON[_0x5b19b1('0x18')](_0x4c5f88));});});},Migration[_0x1def5e('0x1a')]['dropTable']=function(_0x50b63e){const _0x5c4a6e=_0x1def5e,_0x46d1ff=this;this['sequence'][_0x5c4a6e('0x1e')](function(){const _0x19ff02=_0x5c4a6e;return _0x46d1ff['queryInterface'][_0x19ff02('0x1c')](_0x50b63e,{'force':!![]})[_0x19ff02('0x14')](function(){const _0x8b664=_0x19ff02;logger[_0x8b664('0x1b')](_0x8b664('0x4'),_0x50b63e);})['catch'](function(_0x2d5a4c){const _0x111372=_0x19ff02;logger[_0x111372('0x1b')](JSON[_0x111372('0x18')](_0x2d5a4c));});});},Migration[_0x1def5e('0x1a')][_0x1def5e('0xd')]=function(_0x1f026c,_0x2a8a13,_0x57943f){const _0x2379e1=_0x1def5e,_0x48d236=this;this[_0x2379e1('0x8')][_0x2379e1('0x1e')](function(){const _0x404bdd=_0x2379e1;return _0x48d236[_0x404bdd('0x19')]['addIndex'](_0x1f026c,_0x2a8a13,{'indexName':_0x57943f})[_0x404bdd('0x14')](function(){const _0x1cac07=_0x404bdd;logger[_0x1cac07('0x1b')]('addIndex\x20%s\x20%s\x20%s',_0x1f026c,_0x2a8a13[_0x1cac07('0xf')](','),_0x57943f);})['catch'](function(_0x530055){const _0x58bc11=_0x404bdd;logger['info'](JSON[_0x58bc11('0x18')](_0x530055));});});},Migration[_0x1def5e('0x1a')]['removeIndex']=function(_0x55baaf,_0xd7f965){const _0x5c583a=this;this['sequence']['enqueue'](function(){const _0x2581c9=a976_0x1868;return _0x5c583a['queryInterface']['removeIndex'](_0x55baaf,_0xd7f965)[_0x2581c9('0x14')](function(){const _0xb9ec5a=_0x2581c9;logger['info'](_0xb9ec5a('0x10'),_0x55baaf,_0xd7f965);})[_0x2581c9('0x9')](function(_0x2b1764){logger['info'](JSON['stringify'](_0x2b1764));});});},Migration[_0x1def5e('0x1a')][_0x1def5e('0x5')]=function(_0x5615fd){const _0x1a4614=_0x1def5e,_0x30b701=this;this[_0x1a4614('0x8')][_0x1a4614('0x1e')](function(){const _0x3bb5a0=_0x1a4614;return _0x30b701[_0x3bb5a0('0x19')][_0x3bb5a0('0x3')][_0x3bb5a0('0x5')](_0x5615fd)[_0x3bb5a0('0x14')](function(){const _0x1f602a=_0x3bb5a0;logger[_0x1f602a('0x1b')](_0x1f602a('0x1'),_0x5615fd);})['catch'](function(_0xd65401){const _0xfd3ca6=_0x3bb5a0;logger[_0xfd3ca6('0x1b')](JSON[_0xfd3ca6('0x18')](_0xd65401));});});},Migration['prototype'][_0x1def5e('0x15')]=function(_0x219e01,_0x38f735){const _0x494dc5=_0x1def5e,_0x5e167d=this;this[_0x494dc5('0x8')][_0x494dc5('0x1e')](function(){const _0x34b5aa=_0x494dc5;return _0x5e167d[_0x34b5aa('0x19')][_0x34b5aa('0x15')](_0x219e01,_0x38f735)[_0x34b5aa('0x14')](function(){const _0x1c1cea=_0x34b5aa;logger['info'](_0x1c1cea('0x0'),_0x38f735,_0x219e01);})['catch'](function(_0x1804e8){const _0x3dfa0a=_0x34b5aa;logger[_0x3dfa0a('0x1b')](util[_0x3dfa0a('0xe')](_0x1804e8,{'showHidden':![],'depth':null}));});});},Migration[_0x1def5e('0x1a')]['renameColumn']=function(_0x20ad55,_0x45f48b,_0x14c326){const _0x268312=_0x1def5e,_0x543f75=this;this[_0x268312('0x8')][_0x268312('0x1e')](function(){const _0x3277dd=_0x268312;return _0x543f75['queryInterface'][_0x3277dd('0x2')](_0x20ad55,_0x45f48b,_0x14c326)[_0x3277dd('0x14')](function(){const _0x4e2a31=_0x3277dd;logger[_0x4e2a31('0x1b')](_0x4e2a31('0x6'),_0x45f48b,_0x14c326,_0x20ad55);})[_0x3277dd('0x9')](function(_0x88033c){const _0x1e1195=_0x3277dd;logger['info'](util[_0x1e1195('0xe')](_0x88033c,{'showHidden':![],'depth':null}));});});},Migration[_0x1def5e('0x1a')][_0x1def5e('0x12')]=function(_0x53382e){this['sequence']['enqueue'](function(){return _0x53382e();});},module[_0x1def5e('0xc')]={'up':function(_0x4c971a){return new Promise(function(_0x3effec){const _0x540926=new Migration(_0x4c971a);_0x540926['final'](_0x3effec);});},'down':function(){}}; \ No newline at end of file +const a1138_0x3b9f=['inspect','removeColumn','final','exports','info','stringify','tail','finally','addIndex','dropTable','util','catch','migration','addColumn','removeIndex','queryInterface','table\x20dropped\x20%s','Added\x20column\x20%s\x20to\x20%s','sequence','prototype','changeColumn','Removed\x20column\x20%s\x20from\x20%s','removeIndex\x20%s\x20%s','../config/logger','renameColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','join','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','then','enqueue','sequelize','query'];(function(_0x4a283b,_0x552187){const _0x3b9f8f=function(_0x3c6fdb){while(--_0x3c6fdb){_0x4a283b['push'](_0x4a283b['shift']());}};_0x3b9f8f(++_0x552187);}(a1138_0x3b9f,0x90));const a1138_0x3c6f=function(_0x4a283b,_0x552187){_0x4a283b=_0x4a283b-0xd7;let _0x3b9f8f=a1138_0x3b9f[_0x4a283b];return _0x3b9f8f;};const a1138_0x30e2ea=a1138_0x3c6f;'use strict';const util=require(a1138_0x30e2ea(0xf1)),logger=require(a1138_0x30e2ea(0xde))(a1138_0x30e2ea(0xf3)),Sequence=function(){};Sequence['prototype'][a1138_0x30e2ea(0xe4)]=function(_0x522acf){const _0x519160=a1138_0x30e2ea;this['tail']=this['tail']?this[_0x519160(0xed)][_0x519160(0xee)](_0x522acf):_0x522acf();};const Migration=function(_0x40c2db){const _0x4127ee=a1138_0x30e2ea;this[_0x4127ee(0xf6)]=_0x40c2db,this['sequence']=new Sequence();};Migration[a1138_0x30e2ea(0xda)][a1138_0x30e2ea(0xdb)]=function(_0x4fe791,_0x3eb5d2,_0x3a8884){const _0x44013b=a1138_0x30e2ea,_0x34c00f=this;this[_0x44013b(0xd9)][_0x44013b(0xe4)](function(){const _0x38674a=_0x44013b;return _0x34c00f[_0x38674a(0xf6)][_0x38674a(0xdb)](_0x4fe791,_0x3eb5d2,_0x3a8884)[_0x38674a(0xe3)](function(){const _0x5ec71a=_0x38674a;logger[_0x5ec71a(0xeb)](_0x5ec71a(0xe0),_0x3eb5d2,_0x4fe791);})[_0x38674a(0xf2)](function(_0x286865){const _0x267c54=_0x38674a;logger[_0x267c54(0xeb)](JSON[_0x267c54(0xec)](_0x286865));});});},Migration[a1138_0x30e2ea(0xda)][a1138_0x30e2ea(0xf4)]=function(_0x3f7eb3,_0x451e55,_0x26a99e){const _0x3b770f=a1138_0x30e2ea,_0x53cb4f=this;this[_0x3b770f(0xd9)][_0x3b770f(0xe4)](function(){const _0x3021e7=_0x3b770f;return _0x53cb4f[_0x3021e7(0xf6)][_0x3021e7(0xf4)](_0x3f7eb3,_0x451e55,_0x26a99e)['then'](function(){const _0x37dc71=_0x3021e7;logger['info'](_0x37dc71(0xd8),_0x451e55,_0x3f7eb3);})['catch'](function(_0x5da213){const _0x394dd5=_0x3021e7;logger[_0x394dd5(0xeb)](JSON[_0x394dd5(0xec)](_0x5da213));});});},Migration[a1138_0x30e2ea(0xda)]['dropTable']=function(_0x1cc99c){const _0x28f33c=a1138_0x30e2ea,_0x43f263=this;this['sequence'][_0x28f33c(0xe4)](function(){const _0x44f830=_0x28f33c;return _0x43f263[_0x44f830(0xf6)][_0x44f830(0xf0)](_0x1cc99c,{'force':!![]})['then'](function(){const _0x34a049=_0x44f830;logger[_0x34a049(0xeb)](_0x34a049(0xd7),_0x1cc99c);})[_0x44f830(0xf2)](function(_0x5cbd55){const _0x59b17e=_0x44f830;logger[_0x59b17e(0xeb)](JSON['stringify'](_0x5cbd55));});});},Migration[a1138_0x30e2ea(0xda)][a1138_0x30e2ea(0xef)]=function(_0xe5d03f,_0x386d46,_0x560ae2){const _0x40bcab=a1138_0x30e2ea,_0x460c75=this;this[_0x40bcab(0xd9)][_0x40bcab(0xe4)](function(){const _0x4bfa5a=_0x40bcab;return _0x460c75[_0x4bfa5a(0xf6)][_0x4bfa5a(0xef)](_0xe5d03f,_0x386d46,{'indexName':_0x560ae2})[_0x4bfa5a(0xe3)](function(){const _0x4dcc72=_0x4bfa5a;logger[_0x4dcc72(0xeb)]('addIndex\x20%s\x20%s\x20%s',_0xe5d03f,_0x386d46[_0x4dcc72(0xe1)](','),_0x560ae2);})['catch'](function(_0x277685){logger['info'](JSON['stringify'](_0x277685));});});},Migration[a1138_0x30e2ea(0xda)][a1138_0x30e2ea(0xf5)]=function(_0x2b2c6e,_0x36bb95){const _0x2248e8=a1138_0x30e2ea,_0x3c6529=this;this[_0x2248e8(0xd9)]['enqueue'](function(){const _0x41b56a=_0x2248e8;return _0x3c6529[_0x41b56a(0xf6)]['removeIndex'](_0x2b2c6e,_0x36bb95)[_0x41b56a(0xe3)](function(){const _0x57940c=_0x41b56a;logger[_0x57940c(0xeb)](_0x57940c(0xdd),_0x2b2c6e,_0x36bb95);})[_0x41b56a(0xf2)](function(_0x5bc4c2){const _0x2cb93f=_0x41b56a;logger['info'](JSON[_0x2cb93f(0xec)](_0x5bc4c2));});});},Migration['prototype'][a1138_0x30e2ea(0xe6)]=function(_0x51e749){const _0x16c4ad=a1138_0x30e2ea,_0x2c52c9=this;this[_0x16c4ad(0xd9)][_0x16c4ad(0xe4)](function(){const _0x3d6b3d=_0x16c4ad;return _0x2c52c9[_0x3d6b3d(0xf6)][_0x3d6b3d(0xe5)]['query'](_0x51e749)[_0x3d6b3d(0xe3)](function(){const _0x494025=_0x3d6b3d;logger[_0x494025(0xeb)]('query\x20%s',_0x51e749);})['catch'](function(_0x350e9e){const _0x2dc73f=_0x3d6b3d;logger[_0x2dc73f(0xeb)](JSON[_0x2dc73f(0xec)](_0x350e9e));});});},Migration[a1138_0x30e2ea(0xda)][a1138_0x30e2ea(0xe8)]=function(_0x346015,_0x45b35f){const _0x236a4e=a1138_0x30e2ea,_0x156ff3=this;this[_0x236a4e(0xd9)][_0x236a4e(0xe4)](function(){const _0x51d42e=_0x236a4e;return _0x156ff3[_0x51d42e(0xf6)][_0x51d42e(0xe8)](_0x346015,_0x45b35f)[_0x51d42e(0xe3)](function(){const _0x403f59=_0x51d42e;logger[_0x403f59(0xeb)](_0x403f59(0xdc),_0x45b35f,_0x346015);})[_0x51d42e(0xf2)](function(_0xc8fe51){const _0x19e62a=_0x51d42e;logger[_0x19e62a(0xeb)](util[_0x19e62a(0xe7)](_0xc8fe51,{'showHidden':![],'depth':null}));});});},Migration[a1138_0x30e2ea(0xda)][a1138_0x30e2ea(0xdf)]=function(_0x1fa289,_0x466d42,_0x1efc22){const _0x2a9069=a1138_0x30e2ea,_0x162d35=this;this[_0x2a9069(0xd9)]['enqueue'](function(){const _0x69b515=_0x2a9069;return _0x162d35['queryInterface'][_0x69b515(0xdf)](_0x1fa289,_0x466d42,_0x1efc22)['then'](function(){const _0x291e9c=_0x69b515;logger['info'](_0x291e9c(0xe2),_0x466d42,_0x1efc22,_0x1fa289);})[_0x69b515(0xf2)](function(_0x58aea6){const _0x59b2d0=_0x69b515;logger[_0x59b2d0(0xeb)](util[_0x59b2d0(0xe7)](_0x58aea6,{'showHidden':![],'depth':null}));});});},Migration[a1138_0x30e2ea(0xda)][a1138_0x30e2ea(0xe9)]=function(_0x4398e1){const _0x4664ce=a1138_0x30e2ea;this['sequence'][_0x4664ce(0xe4)](function(){return _0x4398e1();});},module[a1138_0x30e2ea(0xea)]={'up':function(_0x4609d2){return new Promise(function(_0x201a5c){const _0xebdea0=a1138_0x3c6f,_0x4d8b51=new Migration(_0x4609d2);_0x4d8b51[_0xebdea0(0xe9)](_0x201a5c);});},'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 e20a890..ab29729 100644 --- a/server/migrations/2.3.5.js +++ b/server/migrations/2.3.5.js @@ -1 +1 @@ -const a977_0x4e0c=['enqueue','Added\x20column\x20%s\x20to\x20%s','prototype','addIndex\x20%s\x20%s\x20%s\x20[%s]','info','Removed\x20column\x20%s\x20from\x20%s','then','renameColumn','sequence','removeColumn','removeIndex','join','query\x20%s','indicesType','queryInterface','removeIndex\x20%s\x20%s','changeColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','addIndex','finally','catch','inspect','stringify','exports','util','dropTable','query','addColumn','tail','migration','sequelize','../config/logger'];(function(_0x459dd9,_0x4e0c8e){const _0x3a5b08=function(_0x20a6c1){while(--_0x20a6c1){_0x459dd9['push'](_0x459dd9['shift']());}};_0x3a5b08(++_0x4e0c8e);}(a977_0x4e0c,0xc1));const a977_0x3a5b=function(_0x459dd9,_0x4e0c8e){_0x459dd9=_0x459dd9-0x0;let _0x3a5b08=a977_0x4e0c[_0x459dd9];return _0x3a5b08;};const _0x488b2a=a977_0x3a5b;'use strict';const util=require(_0x488b2a('0x17')),logger=require(_0x488b2a('0x1e'))(_0x488b2a('0x1c')),Sequence=function(){};Sequence[_0x488b2a('0x1')][_0x488b2a('0x1f')]=function(_0x20a6c1){const _0x156af7=_0x488b2a;this[_0x156af7('0x1b')]=this[_0x156af7('0x1b')]?this['tail'][_0x156af7('0x12')](_0x20a6c1):_0x20a6c1();};const Migration=function(_0x346f9f){const _0x356bc4=_0x488b2a;this[_0x356bc4('0xd')]=_0x346f9f,this['sequence']=new Sequence();};Migration[_0x488b2a('0x1')][_0x488b2a('0xf')]=function(_0x3b4e6f,_0xad3bdc,_0x53348e){const _0x2c4078=_0x488b2a,_0x9e9f8d=this;this[_0x2c4078('0x7')][_0x2c4078('0x1f')](function(){const _0x26d712=_0x2c4078;return _0x9e9f8d['queryInterface']['changeColumn'](_0x3b4e6f,_0xad3bdc,_0x53348e)[_0x26d712('0x5')](function(){const _0x12c7bd=_0x26d712;logger[_0x12c7bd('0x3')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0xad3bdc,_0x3b4e6f);})[_0x26d712('0x13')](function(_0x46640e){const _0x39fe1c=_0x26d712;logger[_0x39fe1c('0x3')](JSON[_0x39fe1c('0x15')](_0x46640e));});});},Migration['prototype'][_0x488b2a('0x1a')]=function(_0x27cd41,_0x53d3b0,_0x101815){const _0x404531=_0x488b2a,_0x59c46a=this;this[_0x404531('0x7')]['enqueue'](function(){const _0x53152a=_0x404531;return _0x59c46a[_0x53152a('0xd')][_0x53152a('0x1a')](_0x27cd41,_0x53d3b0,_0x101815)['then'](function(){const _0x22cad7=_0x53152a;logger['info'](_0x22cad7('0x0'),_0x53d3b0,_0x27cd41);})[_0x53152a('0x13')](function(_0x4cda22){const _0x46cb4d=_0x53152a;logger[_0x46cb4d('0x3')](JSON[_0x46cb4d('0x15')](_0x4cda22));});});},Migration[_0x488b2a('0x1')]['dropTable']=function(_0x25606b){const _0x3efa34=_0x488b2a,_0x5e908a=this;this['sequence'][_0x3efa34('0x1f')](function(){const _0x2f4a47=_0x3efa34;return _0x5e908a['queryInterface'][_0x2f4a47('0x18')](_0x25606b,{'force':!![]})[_0x2f4a47('0x5')](function(){const _0x4a6ec3=_0x2f4a47;logger[_0x4a6ec3('0x3')]('table\x20dropped\x20%s',_0x25606b);})['catch'](function(_0x56370a){const _0x587c83=_0x2f4a47;logger[_0x587c83('0x3')](JSON['stringify'](_0x56370a));});});},Migration[_0x488b2a('0x1')][_0x488b2a('0x11')]=function(_0x1bee0c,_0xac531f,_0x1102f0){const _0x42d67f=_0x488b2a,_0x17be7b=this;this[_0x42d67f('0x7')][_0x42d67f('0x1f')](function(){const _0x1a0756=_0x42d67f;return _0x17be7b[_0x1a0756('0xd')][_0x1a0756('0x11')](_0x1bee0c,_0xac531f,{'indexName':_0x1102f0['indexName'],'indicesType':_0x1102f0[_0x1a0756('0xc')]})[_0x1a0756('0x5')](function(){const _0x583889=_0x1a0756;logger[_0x583889('0x3')](_0x583889('0x2'),_0x1bee0c,_0xac531f[_0x583889('0xa')](','),_0x1102f0['indexName'],_0x1102f0[_0x583889('0xc')]);})[_0x1a0756('0x13')](function(_0xdefb54){const _0x4d9798=_0x1a0756;logger[_0x4d9798('0x3')](JSON[_0x4d9798('0x15')](_0xdefb54));});});},Migration[_0x488b2a('0x1')][_0x488b2a('0x9')]=function(_0x5a2346,_0xdf9ac2){const _0x525566=_0x488b2a,_0x1569fd=this;this[_0x525566('0x7')][_0x525566('0x1f')](function(){const _0x2699b0=_0x525566;return _0x1569fd[_0x2699b0('0xd')][_0x2699b0('0x9')](_0x5a2346,_0xdf9ac2)[_0x2699b0('0x5')](function(){const _0x1d0016=_0x2699b0;logger['info'](_0x1d0016('0xe'),_0x5a2346,_0xdf9ac2);})[_0x2699b0('0x13')](function(_0x3a21ef){const _0x4e9de7=_0x2699b0;logger[_0x4e9de7('0x3')](JSON[_0x4e9de7('0x15')](_0x3a21ef));});});},Migration['prototype'][_0x488b2a('0x19')]=function(_0xe1ac72){const _0x4c1e5e=_0x488b2a,_0x1c2678=this;this['sequence'][_0x4c1e5e('0x1f')](function(){const _0x4a89f2=_0x4c1e5e;return _0x1c2678[_0x4a89f2('0xd')][_0x4a89f2('0x1d')][_0x4a89f2('0x19')](_0xe1ac72)[_0x4a89f2('0x5')](function(){const _0x1d2819=_0x4a89f2;logger['info'](_0x1d2819('0xb'),_0xe1ac72);})[_0x4a89f2('0x13')](function(_0x1976fe){const _0x559da4=_0x4a89f2;logger['info'](JSON[_0x559da4('0x15')](_0x1976fe));});});},Migration['prototype'][_0x488b2a('0x8')]=function(_0x9618c2,_0x21dfc1){const _0x3d5a7d=_0x488b2a,_0x4b602f=this;this[_0x3d5a7d('0x7')][_0x3d5a7d('0x1f')](function(){const _0x576a59=_0x3d5a7d;return _0x4b602f[_0x576a59('0xd')]['removeColumn'](_0x9618c2,_0x21dfc1)['then'](function(){const _0x150fa6=_0x576a59;logger[_0x150fa6('0x3')](_0x150fa6('0x4'),_0x21dfc1,_0x9618c2);})[_0x576a59('0x13')](function(_0x1ab87f){const _0x113ea9=_0x576a59;logger['info'](util[_0x113ea9('0x14')](_0x1ab87f,{'showHidden':![],'depth':null}));});});},Migration[_0x488b2a('0x1')][_0x488b2a('0x6')]=function(_0x4ea641,_0x1b7486,_0x155fb4){const _0x46af5c=_0x488b2a,_0x5a1158=this;this['sequence'][_0x46af5c('0x1f')](function(){const _0x422a8c=_0x46af5c;return _0x5a1158[_0x422a8c('0xd')][_0x422a8c('0x6')](_0x4ea641,_0x1b7486,_0x155fb4)[_0x422a8c('0x5')](function(){const _0x2cbc63=_0x422a8c;logger[_0x2cbc63('0x3')](_0x2cbc63('0x10'),_0x1b7486,_0x155fb4,_0x4ea641);})[_0x422a8c('0x13')](function(_0x57b027){const _0xd1d988=_0x422a8c;logger[_0xd1d988('0x3')](util[_0xd1d988('0x14')](_0x57b027,{'showHidden':![],'depth':null}));});});},Migration['prototype']['final']=function(_0x5abfef){const _0xa9805a=_0x488b2a;this['sequence'][_0xa9805a('0x1f')](function(){return _0x5abfef();});},module[_0x488b2a('0x16')]={'up':function(_0x2e8fbd){return new Promise(function(_0x5d48bb){const _0x4171ce=new Migration(_0x2e8fbd);_0x4171ce['final'](_0x5d48bb);});},'down':function(){}}; \ No newline at end of file +const a1139_0x49bc=['removeIndex\x20%s\x20%s','sequence','util','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','table\x20dropped\x20%s','indexName','changeColumn','finally','inspect','addIndex','dropTable','info','addIndex\x20%s\x20%s\x20%s\x20[%s]','migration','Changed\x20column\x20%s\x20in\x20table\x20%s','../config/logger','sequelize','stringify','then','addColumn','enqueue','exports','join','renameColumn','removeColumn','indicesType','catch','query','queryInterface','Added\x20column\x20%s\x20to\x20%s','prototype','tail','final','Removed\x20column\x20%s\x20from\x20%s'];(function(_0x2d9891,_0x37f8de){const _0x49bc2e=function(_0x4389b8){while(--_0x4389b8){_0x2d9891['push'](_0x2d9891['shift']());}};_0x49bc2e(++_0x37f8de);}(a1139_0x49bc,0x118));const a1139_0x4389=function(_0x2d9891,_0x37f8de){_0x2d9891=_0x2d9891-0xb3;let _0x49bc2e=a1139_0x49bc[_0x2d9891];return _0x49bc2e;};const a1139_0x5d7d27=a1139_0x4389;'use strict';const util=require(a1139_0x5d7d27(0xcf)),logger=require(a1139_0x5d7d27(0xba))(a1139_0x5d7d27(0xb8)),Sequence=function(){};Sequence[a1139_0x5d7d27(0xc9)][a1139_0x5d7d27(0xbf)]=function(_0x11d676){const _0x2331ad=a1139_0x5d7d27;this['tail']=this['tail']?this[_0x2331ad(0xca)][_0x2331ad(0xd4)](_0x11d676):_0x11d676();};const Migration=function(_0x3a04f2){const _0x5ba49c=a1139_0x5d7d27;this[_0x5ba49c(0xc7)]=_0x3a04f2,this[_0x5ba49c(0xce)]=new Sequence();};Migration[a1139_0x5d7d27(0xc9)][a1139_0x5d7d27(0xd3)]=function(_0x32bf8c,_0x34fb43,_0x1dc8f6){const _0x4d4433=a1139_0x5d7d27,_0x29eba3=this;this[_0x4d4433(0xce)][_0x4d4433(0xbf)](function(){const _0x4ec4ea=_0x4d4433;return _0x29eba3['queryInterface'][_0x4ec4ea(0xd3)](_0x32bf8c,_0x34fb43,_0x1dc8f6)[_0x4ec4ea(0xbd)](function(){const _0x4e9886=_0x4ec4ea;logger[_0x4e9886(0xb6)](_0x4e9886(0xb9),_0x34fb43,_0x32bf8c);})['catch'](function(_0x449d0c){const _0x730114=_0x4ec4ea;logger[_0x730114(0xb6)](JSON[_0x730114(0xbc)](_0x449d0c));});});},Migration['prototype'][a1139_0x5d7d27(0xbe)]=function(_0x2ddd9e,_0x5d9233,_0x311e25){const _0x218f8c=a1139_0x5d7d27,_0x4a5cbb=this;this[_0x218f8c(0xce)][_0x218f8c(0xbf)](function(){const _0x30566c=_0x218f8c;return _0x4a5cbb[_0x30566c(0xc7)][_0x30566c(0xbe)](_0x2ddd9e,_0x5d9233,_0x311e25)[_0x30566c(0xbd)](function(){const _0x55ba40=_0x30566c;logger[_0x55ba40(0xb6)](_0x55ba40(0xc8),_0x5d9233,_0x2ddd9e);})[_0x30566c(0xc5)](function(_0x27489d){const _0x35d9ff=_0x30566c;logger[_0x35d9ff(0xb6)](JSON[_0x35d9ff(0xbc)](_0x27489d));});});},Migration[a1139_0x5d7d27(0xc9)][a1139_0x5d7d27(0xb5)]=function(_0xb3a007){const _0x352117=a1139_0x5d7d27,_0x574462=this;this[_0x352117(0xce)][_0x352117(0xbf)](function(){const _0x344fe2=_0x352117;return _0x574462[_0x344fe2(0xc7)][_0x344fe2(0xb5)](_0xb3a007,{'force':!![]})['then'](function(){const _0x356b97=_0x344fe2;logger[_0x356b97(0xb6)](_0x356b97(0xd1),_0xb3a007);})['catch'](function(_0x4a2740){const _0x38acde=_0x344fe2;logger[_0x38acde(0xb6)](JSON[_0x38acde(0xbc)](_0x4a2740));});});},Migration[a1139_0x5d7d27(0xc9)][a1139_0x5d7d27(0xb4)]=function(_0xd87175,_0x4306a8,_0x523943){const _0x191f49=a1139_0x5d7d27,_0x3ecc8f=this;this['sequence'][_0x191f49(0xbf)](function(){const _0x40ac2c=_0x191f49;return _0x3ecc8f[_0x40ac2c(0xc7)][_0x40ac2c(0xb4)](_0xd87175,_0x4306a8,{'indexName':_0x523943[_0x40ac2c(0xd2)],'indicesType':_0x523943[_0x40ac2c(0xc4)]})['then'](function(){const _0x4959fd=_0x40ac2c;logger[_0x4959fd(0xb6)](_0x4959fd(0xb7),_0xd87175,_0x4306a8[_0x4959fd(0xc1)](','),_0x523943['indexName'],_0x523943[_0x4959fd(0xc4)]);})[_0x40ac2c(0xc5)](function(_0x305b7b){const _0x5d9d2c=_0x40ac2c;logger[_0x5d9d2c(0xb6)](JSON[_0x5d9d2c(0xbc)](_0x305b7b));});});},Migration[a1139_0x5d7d27(0xc9)]['removeIndex']=function(_0x20fd92,_0x371306){const _0x37b86d=a1139_0x5d7d27,_0x1643d7=this;this[_0x37b86d(0xce)]['enqueue'](function(){const _0x2eff57=_0x37b86d;return _0x1643d7['queryInterface']['removeIndex'](_0x20fd92,_0x371306)['then'](function(){const _0x304884=a1139_0x4389;logger[_0x304884(0xb6)](_0x304884(0xcd),_0x20fd92,_0x371306);})[_0x2eff57(0xc5)](function(_0x2fe29c){const _0x34dd99=_0x2eff57;logger[_0x34dd99(0xb6)](JSON[_0x34dd99(0xbc)](_0x2fe29c));});});},Migration[a1139_0x5d7d27(0xc9)][a1139_0x5d7d27(0xc6)]=function(_0x26fe70){const _0x166a86=a1139_0x5d7d27,_0x6a46c3=this;this[_0x166a86(0xce)][_0x166a86(0xbf)](function(){const _0x81fcc=_0x166a86;return _0x6a46c3[_0x81fcc(0xc7)][_0x81fcc(0xbb)][_0x81fcc(0xc6)](_0x26fe70)[_0x81fcc(0xbd)](function(){const _0x5a741e=_0x81fcc;logger[_0x5a741e(0xb6)]('query\x20%s',_0x26fe70);})['catch'](function(_0x163ebf){const _0x42e8f6=_0x81fcc;logger['info'](JSON[_0x42e8f6(0xbc)](_0x163ebf));});});},Migration[a1139_0x5d7d27(0xc9)][a1139_0x5d7d27(0xc3)]=function(_0x4780b3,_0x580ca6){const _0x56e5ee=a1139_0x5d7d27,_0x1a0c1d=this;this[_0x56e5ee(0xce)][_0x56e5ee(0xbf)](function(){const _0x17cb55=_0x56e5ee;return _0x1a0c1d['queryInterface'][_0x17cb55(0xc3)](_0x4780b3,_0x580ca6)[_0x17cb55(0xbd)](function(){const _0x116b6a=_0x17cb55;logger[_0x116b6a(0xb6)](_0x116b6a(0xcc),_0x580ca6,_0x4780b3);})[_0x17cb55(0xc5)](function(_0x4144b2){const _0x585af9=_0x17cb55;logger['info'](util[_0x585af9(0xb3)](_0x4144b2,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1139_0x5d7d27(0xc2)]=function(_0x128dba,_0x22320f,_0x18a71e){const _0x5be26b=a1139_0x5d7d27,_0x224a2f=this;this['sequence'][_0x5be26b(0xbf)](function(){const _0x2c852b=_0x5be26b;return _0x224a2f[_0x2c852b(0xc7)][_0x2c852b(0xc2)](_0x128dba,_0x22320f,_0x18a71e)[_0x2c852b(0xbd)](function(){const _0x281ad2=_0x2c852b;logger[_0x281ad2(0xb6)](_0x281ad2(0xd0),_0x22320f,_0x18a71e,_0x128dba);})[_0x2c852b(0xc5)](function(_0x3eaaf9){const _0x240eb5=_0x2c852b;logger[_0x240eb5(0xb6)](util[_0x240eb5(0xb3)](_0x3eaaf9,{'showHidden':![],'depth':null}));});});},Migration[a1139_0x5d7d27(0xc9)][a1139_0x5d7d27(0xcb)]=function(_0x14d6ba){const _0x36ce8c=a1139_0x5d7d27;this['sequence'][_0x36ce8c(0xbf)](function(){return _0x14d6ba();});},module[a1139_0x5d7d27(0xc0)]={'up':function(_0x83c8a3){return new Promise(function(_0x3f220b){const _0x3c9f71=a1139_0x4389,_0x4a7218=new Migration(_0x83c8a3);_0x4a7218[_0x3c9f71(0xcb)](_0x3f220b);});},'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 c5748d2..5e3bda3 100644 --- a/server/migrations/2.3.6.js +++ b/server/migrations/2.3.6.js @@ -1 +1 @@ -const a978_0x1a25=['queryInterface','stringify','enqueue','query\x20%s','indexName','indicesType','migration','removeIndex','prototype','inspect','catch','join','removeColumn','addIndex\x20%s\x20%s\x20%s\x20[%s]','exports','final','tail','dropTable','Changed\x20column\x20%s\x20in\x20table\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','Removed\x20column\x20%s\x20from\x20%s','info','Added\x20column\x20%s\x20to\x20%s','renameColumn','../config/logger','table\x20dropped\x20%s','changeColumn','query','addIndex','then','sequence','sequelize','addColumn'];(function(_0x6c5d3,_0x1a255e){const _0x2e0492=function(_0x992bf2){while(--_0x992bf2){_0x6c5d3['push'](_0x6c5d3['shift']());}};_0x2e0492(++_0x1a255e);}(a978_0x1a25,0x140));const a978_0x2e04=function(_0x6c5d3,_0x1a255e){_0x6c5d3=_0x6c5d3-0x0;let _0x2e0492=a978_0x1a25[_0x6c5d3];return _0x2e0492;};const _0x27a5e8=a978_0x2e04;'use strict';const util=require('util'),logger=require(_0x27a5e8('0x1'))(_0x27a5e8('0x10')),Sequence=function(){};Sequence[_0x27a5e8('0x12')][_0x27a5e8('0xc')]=function(_0x992bf2){const _0x427ba4=_0x27a5e8;this['tail']=this[_0x427ba4('0x1a')]?this[_0x427ba4('0x1a')]['finally'](_0x992bf2):_0x992bf2();};const Migration=function(_0x50c70e){const _0x2ecba0=_0x27a5e8;this[_0x2ecba0('0xa')]=_0x50c70e,this[_0x2ecba0('0x7')]=new Sequence();};Migration['prototype'][_0x27a5e8('0x3')]=function(_0x1e9f93,_0x3e80bb,_0x5f10dd){const _0x141754=_0x27a5e8,_0x308af5=this;this[_0x141754('0x7')]['enqueue'](function(){const _0x223fd1=_0x141754;return _0x308af5[_0x223fd1('0xa')][_0x223fd1('0x3')](_0x1e9f93,_0x3e80bb,_0x5f10dd)['then'](function(){const _0x55368e=_0x223fd1;logger['info'](_0x55368e('0x1c'),_0x3e80bb,_0x1e9f93);})[_0x223fd1('0x14')](function(_0x121b29){const _0x51395d=_0x223fd1;logger[_0x51395d('0x1f')](JSON['stringify'](_0x121b29));});});},Migration[_0x27a5e8('0x12')][_0x27a5e8('0x9')]=function(_0x369d4b,_0x5e2901,_0x15cceb){const _0x191080=_0x27a5e8,_0x10536b=this;this[_0x191080('0x7')]['enqueue'](function(){const _0xe844e0=_0x191080;return _0x10536b[_0xe844e0('0xa')][_0xe844e0('0x9')](_0x369d4b,_0x5e2901,_0x15cceb)['then'](function(){const _0x3c569d=_0xe844e0;logger[_0x3c569d('0x1f')](_0x3c569d('0x20'),_0x5e2901,_0x369d4b);})['catch'](function(_0x30f2c4){const _0x10a719=_0xe844e0;logger[_0x10a719('0x1f')](JSON[_0x10a719('0xb')](_0x30f2c4));});});},Migration[_0x27a5e8('0x12')][_0x27a5e8('0x1b')]=function(_0xc871aa){const _0x17b309=this;this['sequence']['enqueue'](function(){const _0xf7874a=a978_0x2e04;return _0x17b309[_0xf7874a('0xa')]['dropTable'](_0xc871aa,{'force':!![]})['then'](function(){const _0x5492a8=_0xf7874a;logger[_0x5492a8('0x1f')](_0x5492a8('0x2'),_0xc871aa);})[_0xf7874a('0x14')](function(_0x9a624d){const _0x2dfc1b=_0xf7874a;logger[_0x2dfc1b('0x1f')](JSON['stringify'](_0x9a624d));});});},Migration[_0x27a5e8('0x12')]['addIndex']=function(_0x21ec87,_0x32868b,_0x1e890e){const _0x22a6ef=_0x27a5e8,_0x2742d2=this;this[_0x22a6ef('0x7')][_0x22a6ef('0xc')](function(){const _0x2efa71=_0x22a6ef;return _0x2742d2['queryInterface'][_0x2efa71('0x5')](_0x21ec87,_0x32868b,{'indexName':_0x1e890e[_0x2efa71('0xe')],'indicesType':_0x1e890e[_0x2efa71('0xf')]})[_0x2efa71('0x6')](function(){const _0x29e80a=_0x2efa71;logger['info'](_0x29e80a('0x17'),_0x21ec87,_0x32868b[_0x29e80a('0x15')](','),_0x1e890e[_0x29e80a('0xe')],_0x1e890e['indicesType']);})['catch'](function(_0x5452f8){const _0x1a7279=_0x2efa71;logger[_0x1a7279('0x1f')](JSON[_0x1a7279('0xb')](_0x5452f8));});});},Migration[_0x27a5e8('0x12')][_0x27a5e8('0x11')]=function(_0x426e4f,_0xb97bbd){const _0x5a2991=this;this['sequence']['enqueue'](function(){const _0x5ee9a2=a978_0x2e04;return _0x5a2991[_0x5ee9a2('0xa')][_0x5ee9a2('0x11')](_0x426e4f,_0xb97bbd)[_0x5ee9a2('0x6')](function(){const _0x4cd4b8=_0x5ee9a2;logger[_0x4cd4b8('0x1f')]('removeIndex\x20%s\x20%s',_0x426e4f,_0xb97bbd);})[_0x5ee9a2('0x14')](function(_0x3ed7e8){const _0xa0482f=_0x5ee9a2;logger[_0xa0482f('0x1f')](JSON[_0xa0482f('0xb')](_0x3ed7e8));});});},Migration['prototype'][_0x27a5e8('0x4')]=function(_0x1717cd){const _0x4c7ed9=_0x27a5e8,_0x367d78=this;this[_0x4c7ed9('0x7')][_0x4c7ed9('0xc')](function(){const _0x499fc9=_0x4c7ed9;return _0x367d78[_0x499fc9('0xa')][_0x499fc9('0x8')][_0x499fc9('0x4')](_0x1717cd)[_0x499fc9('0x6')](function(){const _0x478e92=_0x499fc9;logger['info'](_0x478e92('0xd'),_0x1717cd);})[_0x499fc9('0x14')](function(_0x17993b){const _0x3a195c=_0x499fc9;logger['info'](JSON[_0x3a195c('0xb')](_0x17993b));});});},Migration[_0x27a5e8('0x12')][_0x27a5e8('0x16')]=function(_0x59e93f,_0x42ebb2){const _0x8b3885=_0x27a5e8,_0x3cb9f5=this;this[_0x8b3885('0x7')][_0x8b3885('0xc')](function(){const _0x455ec0=_0x8b3885;return _0x3cb9f5[_0x455ec0('0xa')][_0x455ec0('0x16')](_0x59e93f,_0x42ebb2)[_0x455ec0('0x6')](function(){const _0x328066=_0x455ec0;logger['info'](_0x328066('0x1e'),_0x42ebb2,_0x59e93f);})['catch'](function(_0x4985f2){const _0x5de0c7=_0x455ec0;logger[_0x5de0c7('0x1f')](util[_0x5de0c7('0x13')](_0x4985f2,{'showHidden':![],'depth':null}));});});},Migration[_0x27a5e8('0x12')][_0x27a5e8('0x0')]=function(_0x129ee5,_0x71ed34,_0x179a16){const _0x3f8d08=_0x27a5e8,_0x239619=this;this[_0x3f8d08('0x7')][_0x3f8d08('0xc')](function(){const _0x4def26=_0x3f8d08;return _0x239619[_0x4def26('0xa')]['renameColumn'](_0x129ee5,_0x71ed34,_0x179a16)['then'](function(){const _0x369760=_0x4def26;logger['info'](_0x369760('0x1d'),_0x71ed34,_0x179a16,_0x129ee5);})[_0x4def26('0x14')](function(_0x440291){const _0x4db5a1=_0x4def26;logger[_0x4db5a1('0x1f')](util[_0x4db5a1('0x13')](_0x440291,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x27a5e8('0x19')]=function(_0x5dfb0b){const _0x5bb130=_0x27a5e8;this['sequence'][_0x5bb130('0xc')](function(){return _0x5dfb0b();});},module[_0x27a5e8('0x18')]={'up':function(_0x1a4f30){return new Promise(function(_0x3fabf5){const _0x1f324d=a978_0x2e04,_0x3eaef4=new Migration(_0x1a4f30);_0x3eaef4[_0x1f324d('0x19')](_0x3fabf5);});},'down':function(){}}; \ No newline at end of file +const a1140_0x1bb1=['exports','removeIndex','migration','info','../config/logger','util','dropTable','addIndex','indexName','Added\x20column\x20%s\x20to\x20%s','addIndex\x20%s\x20%s\x20%s\x20[%s]','queryInterface','then','changeColumn','addColumn','stringify','enqueue','finally','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','renameColumn','sequence','Removed\x20column\x20%s\x20from\x20%s','query\x20%s','indicesType','catch','removeColumn','prototype','tail','inspect'];(function(_0x1739ba,_0x44bc9d){const _0x1bb1b4=function(_0x2eaccb){while(--_0x2eaccb){_0x1739ba['push'](_0x1739ba['shift']());}};_0x1bb1b4(++_0x44bc9d);}(a1140_0x1bb1,0x191));const a1140_0x2eac=function(_0x1739ba,_0x44bc9d){_0x1739ba=_0x1739ba-0x79;let _0x1bb1b4=a1140_0x1bb1[_0x1739ba];return _0x1bb1b4;};const a1140_0x1b9222=a1140_0x2eac;'use strict';const util=require(a1140_0x1b9222(0x83)),logger=require(a1140_0x1b9222(0x82))(a1140_0x1b9222(0x80)),Sequence=function(){};Sequence[a1140_0x1b9222(0x7b)][a1140_0x1b9222(0x8e)]=function(_0x3dcf98){const _0x5b5988=a1140_0x1b9222;this[_0x5b5988(0x7c)]=this[_0x5b5988(0x7c)]?this[_0x5b5988(0x7c)][_0x5b5988(0x8f)](_0x3dcf98):_0x3dcf98();};const Migration=function(_0x322bcf){const _0x246050=a1140_0x1b9222;this[_0x246050(0x89)]=_0x322bcf,this['sequence']=new Sequence();};Migration[a1140_0x1b9222(0x7b)][a1140_0x1b9222(0x8b)]=function(_0x349d58,_0x4e3de9,_0x338ba0){const _0x47201c=a1140_0x1b9222,_0x2e740e=this;this[_0x47201c(0x92)][_0x47201c(0x8e)](function(){const _0x40192c=_0x47201c;return _0x2e740e[_0x40192c(0x89)][_0x40192c(0x8b)](_0x349d58,_0x4e3de9,_0x338ba0)[_0x40192c(0x8a)](function(){const _0x100bbc=_0x40192c;logger[_0x100bbc(0x81)]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x4e3de9,_0x349d58);})['catch'](function(_0x392457){const _0x515939=_0x40192c;logger[_0x515939(0x81)](JSON[_0x515939(0x8d)](_0x392457));});});},Migration['prototype'][a1140_0x1b9222(0x8c)]=function(_0x551283,_0x1d2484,_0x14cc54){const _0xa5d6b0=a1140_0x1b9222,_0x558b5f=this;this[_0xa5d6b0(0x92)][_0xa5d6b0(0x8e)](function(){const _0x1e93aa=_0xa5d6b0;return _0x558b5f['queryInterface'][_0x1e93aa(0x8c)](_0x551283,_0x1d2484,_0x14cc54)[_0x1e93aa(0x8a)](function(){const _0x1905e2=_0x1e93aa;logger[_0x1905e2(0x81)](_0x1905e2(0x87),_0x1d2484,_0x551283);})[_0x1e93aa(0x79)](function(_0x7c3f7e){const _0xbd8aea=_0x1e93aa;logger[_0xbd8aea(0x81)](JSON['stringify'](_0x7c3f7e));});});},Migration[a1140_0x1b9222(0x7b)][a1140_0x1b9222(0x84)]=function(_0x28a818){const _0x2364ed=a1140_0x1b9222,_0x147a28=this;this['sequence'][_0x2364ed(0x8e)](function(){const _0x2e645b=_0x2364ed;return _0x147a28['queryInterface'][_0x2e645b(0x84)](_0x28a818,{'force':!![]})['then'](function(){logger['info']('table\x20dropped\x20%s',_0x28a818);})[_0x2e645b(0x79)](function(_0x1f6e90){const _0x563307=_0x2e645b;logger[_0x563307(0x81)](JSON[_0x563307(0x8d)](_0x1f6e90));});});},Migration['prototype'][a1140_0x1b9222(0x85)]=function(_0x28b1b7,_0xf93aec,_0x302d1d){const _0x5013af=a1140_0x1b9222,_0x1c163=this;this[_0x5013af(0x92)][_0x5013af(0x8e)](function(){const _0x84fdec=_0x5013af;return _0x1c163['queryInterface'][_0x84fdec(0x85)](_0x28b1b7,_0xf93aec,{'indexName':_0x302d1d[_0x84fdec(0x86)],'indicesType':_0x302d1d[_0x84fdec(0x95)]})['then'](function(){const _0x2c0757=_0x84fdec;logger[_0x2c0757(0x81)](_0x2c0757(0x88),_0x28b1b7,_0xf93aec['join'](','),_0x302d1d[_0x2c0757(0x86)],_0x302d1d['indicesType']);})[_0x84fdec(0x79)](function(_0x13be2e){const _0x2c898e=_0x84fdec;logger[_0x2c898e(0x81)](JSON[_0x2c898e(0x8d)](_0x13be2e));});});},Migration[a1140_0x1b9222(0x7b)][a1140_0x1b9222(0x7f)]=function(_0x1cc363,_0x1878e6){const _0x2de32e=a1140_0x1b9222,_0x305494=this;this['sequence'][_0x2de32e(0x8e)](function(){const _0x3608f7=_0x2de32e;return _0x305494[_0x3608f7(0x89)][_0x3608f7(0x7f)](_0x1cc363,_0x1878e6)[_0x3608f7(0x8a)](function(){const _0x1e0a1e=_0x3608f7;logger[_0x1e0a1e(0x81)]('removeIndex\x20%s\x20%s',_0x1cc363,_0x1878e6);})[_0x3608f7(0x79)](function(_0x3c58f4){const _0x483d40=_0x3608f7;logger[_0x483d40(0x81)](JSON[_0x483d40(0x8d)](_0x3c58f4));});});},Migration[a1140_0x1b9222(0x7b)]['query']=function(_0x5b7147){const _0x402395=a1140_0x1b9222,_0x523aca=this;this[_0x402395(0x92)][_0x402395(0x8e)](function(){const _0x43ade2=_0x402395;return _0x523aca['queryInterface']['sequelize']['query'](_0x5b7147)[_0x43ade2(0x8a)](function(){const _0x9b5b20=_0x43ade2;logger['info'](_0x9b5b20(0x94),_0x5b7147);})[_0x43ade2(0x79)](function(_0x888213){const _0x29c435=_0x43ade2;logger['info'](JSON[_0x29c435(0x8d)](_0x888213));});});},Migration[a1140_0x1b9222(0x7b)][a1140_0x1b9222(0x7a)]=function(_0x2991f4,_0x2fd82e){const _0x428ae4=a1140_0x1b9222,_0x3df37d=this;this[_0x428ae4(0x92)][_0x428ae4(0x8e)](function(){const _0x49bb3b=_0x428ae4;return _0x3df37d[_0x49bb3b(0x89)][_0x49bb3b(0x7a)](_0x2991f4,_0x2fd82e)[_0x49bb3b(0x8a)](function(){const _0x158443=_0x49bb3b;logger[_0x158443(0x81)](_0x158443(0x93),_0x2fd82e,_0x2991f4);})[_0x49bb3b(0x79)](function(_0x28df61){logger['info'](util['inspect'](_0x28df61,{'showHidden':![],'depth':null}));});});},Migration[a1140_0x1b9222(0x7b)][a1140_0x1b9222(0x91)]=function(_0x37e8b4,_0x458856,_0x4f9d97){const _0x1a3e6e=a1140_0x1b9222,_0x50fb15=this;this['sequence'][_0x1a3e6e(0x8e)](function(){const _0x389964=_0x1a3e6e;return _0x50fb15[_0x389964(0x89)]['renameColumn'](_0x37e8b4,_0x458856,_0x4f9d97)[_0x389964(0x8a)](function(){const _0x4b025c=_0x389964;logger['info'](_0x4b025c(0x90),_0x458856,_0x4f9d97,_0x37e8b4);})[_0x389964(0x79)](function(_0x5dc565){const _0x57b4b5=_0x389964;logger['info'](util[_0x57b4b5(0x7d)](_0x5dc565,{'showHidden':![],'depth':null}));});});},Migration[a1140_0x1b9222(0x7b)]['final']=function(_0x40347a){const _0x52441e=a1140_0x1b9222;this[_0x52441e(0x92)][_0x52441e(0x8e)](function(){return _0x40347a();});},module[a1140_0x1b9222(0x7e)]={'up':function(_0x7a91d0){return new Promise(function(_0x256068){const _0x300711=new Migration(_0x7a91d0);_0x300711['final'](_0x256068);});},'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 95c991f..b66137f 100644 --- a/server/migrations/2.3.7.js +++ b/server/migrations/2.3.7.js @@ -1 +1 @@ -const a979_0x1c50=['Task','info','addIndex','Case','inspect','report_call','Removed\x20column\x20%s\x20from\x20%s','changeColumn','sequence','prototype','queryInterface','../config/logger','migration','report_agent','FORWARD,\x20BLIND,\x20ATTENDED','catch','join','finally','tail','ticketType','transferexten','BOOLEAN','addIndex\x20%s\x20%s\x20%s','dropTable','STRING','renameColumn','stringify','Changed\x20column\x20%s\x20in\x20table\x20%s','addColumn','ENUM','util','exports','removeIndex\x20%s\x20%s','agententerreason','enqueue','transferuniqueid','final','then','sequelize','transfertype'];(function(_0x40691c,_0x1c50b9){const _0x56f87e=function(_0x2c15db){while(--_0x2c15db){_0x40691c['push'](_0x40691c['shift']());}};_0x56f87e(++_0x1c50b9);}(a979_0x1c50,0x125));const a979_0x56f8=function(_0x40691c,_0x1c50b9){_0x40691c=_0x40691c-0x0;let _0x56f87e=a979_0x1c50[_0x40691c];return _0x56f87e;};const _0x66c3e7=a979_0x56f8;'use strict';const util=require(_0x66c3e7('0x11')),logger=require(_0x66c3e7('0x26'))(_0x66c3e7('0x27')),Sequence=function(){};Sequence[_0x66c3e7('0x24')][_0x66c3e7('0x15')]=function(_0x2c15db){const _0x2be2f6=_0x66c3e7;this['tail']=this[_0x2be2f6('0x5')]?this[_0x2be2f6('0x5')][_0x2be2f6('0x4')](_0x2c15db):_0x2c15db();};const Migration=function(_0x4dd7b3){const _0x23b17a=_0x66c3e7;this[_0x23b17a('0x25')]=_0x4dd7b3,this[_0x23b17a('0x23')]=new Sequence();};Migration[_0x66c3e7('0x24')][_0x66c3e7('0x22')]=function(_0x4aa8cc,_0xaf905e,_0x209874){const _0xbcaf59=_0x66c3e7,_0x1adeb8=this;this[_0xbcaf59('0x23')][_0xbcaf59('0x15')](function(){const _0x2dd06f=_0xbcaf59;return _0x1adeb8[_0x2dd06f('0x25')][_0x2dd06f('0x22')](_0x4aa8cc,_0xaf905e,_0x209874)[_0x2dd06f('0x18')](function(){const _0x4f9849=_0x2dd06f;logger[_0x4f9849('0x1c')](_0x4f9849('0xe'),_0xaf905e,_0x4aa8cc);})[_0x2dd06f('0x2')](function(_0x3bf600){const _0x58075=_0x2dd06f;logger['info'](JSON[_0x58075('0xd')](_0x3bf600));});});},Migration[_0x66c3e7('0x24')][_0x66c3e7('0xf')]=function(_0x17b305,_0x32d81b,_0x2137c4){const _0x307e27=_0x66c3e7,_0x33e766=this;this[_0x307e27('0x23')]['enqueue'](function(){const _0x346a75=_0x307e27;return _0x33e766[_0x346a75('0x25')][_0x346a75('0xf')](_0x17b305,_0x32d81b,_0x2137c4)[_0x346a75('0x18')](function(){const _0xc779a=_0x346a75;logger[_0xc779a('0x1c')]('Added\x20column\x20%s\x20to\x20%s',_0x32d81b,_0x17b305);})[_0x346a75('0x2')](function(_0x294211){const _0x5de7b2=_0x346a75;logger[_0x5de7b2('0x1c')](JSON['stringify'](_0x294211));});});},Migration[_0x66c3e7('0x24')][_0x66c3e7('0xa')]=function(_0x15db86){const _0x18bf56=_0x66c3e7,_0x6886fb=this;this[_0x18bf56('0x23')][_0x18bf56('0x15')](function(){const _0x3180bd=_0x18bf56;return _0x6886fb['queryInterface'][_0x3180bd('0xa')](_0x15db86,{'force':!![]})[_0x3180bd('0x18')](function(){const _0x30b55b=_0x3180bd;logger[_0x30b55b('0x1c')]('table\x20dropped\x20%s',_0x15db86);})['catch'](function(_0x52706c){logger['info'](JSON['stringify'](_0x52706c));});});},Migration[_0x66c3e7('0x24')]['addIndex']=function(_0x302a32,_0x342c84,_0x5eab67){const _0x5f59ab=this;this['sequence']['enqueue'](function(){const _0x3c39aa=a979_0x56f8;return _0x5f59ab['queryInterface'][_0x3c39aa('0x1d')](_0x302a32,_0x342c84,{'indexName':_0x5eab67})[_0x3c39aa('0x18')](function(){const _0x216609=_0x3c39aa;logger[_0x216609('0x1c')](_0x216609('0x9'),_0x302a32,_0x342c84[_0x216609('0x3')](','),_0x5eab67);})[_0x3c39aa('0x2')](function(_0x5e76ac){const _0x416728=_0x3c39aa;logger[_0x416728('0x1c')](JSON['stringify'](_0x5e76ac));});});},Migration['prototype']['removeIndex']=function(_0x384f3b,_0x1a30a5){const _0x340eba=_0x66c3e7,_0x334beb=this;this[_0x340eba('0x23')][_0x340eba('0x15')](function(){const _0x19f2e5=_0x340eba;return _0x334beb[_0x19f2e5('0x25')]['removeIndex'](_0x384f3b,_0x1a30a5)[_0x19f2e5('0x18')](function(){const _0x163647=_0x19f2e5;logger[_0x163647('0x1c')](_0x163647('0x13'),_0x384f3b,_0x1a30a5);})[_0x19f2e5('0x2')](function(_0x1225fa){const _0x117a5d=_0x19f2e5;logger['info'](JSON[_0x117a5d('0xd')](_0x1225fa));});});},Migration[_0x66c3e7('0x24')]['query']=function(_0x205db2){const _0x5389f9=_0x66c3e7,_0x98b976=this;this[_0x5389f9('0x23')][_0x5389f9('0x15')](function(){const _0x36a9b4=_0x5389f9;return _0x98b976[_0x36a9b4('0x25')][_0x36a9b4('0x19')]['query'](_0x205db2)['then'](function(){const _0x2faf98=_0x36a9b4;logger[_0x2faf98('0x1c')]('query\x20%s',_0x205db2);})[_0x36a9b4('0x2')](function(_0x80d923){const _0xf5c0d3=_0x36a9b4;logger[_0xf5c0d3('0x1c')](JSON['stringify'](_0x80d923));});});},Migration['prototype']['removeColumn']=function(_0x1ba72e,_0x48092f){const _0x247c9f=_0x66c3e7,_0x5d7a69=this;this['sequence'][_0x247c9f('0x15')](function(){const _0x25159f=_0x247c9f;return _0x5d7a69[_0x25159f('0x25')]['removeColumn'](_0x1ba72e,_0x48092f)['then'](function(){const _0x70a48e=_0x25159f;logger[_0x70a48e('0x1c')](_0x70a48e('0x21'),_0x48092f,_0x1ba72e);})[_0x25159f('0x2')](function(_0x2fdfde){const _0x1faa13=_0x25159f;logger[_0x1faa13('0x1c')](util['inspect'](_0x2fdfde,{'showHidden':![],'depth':null}));});});},Migration[_0x66c3e7('0x24')][_0x66c3e7('0xc')]=function(_0x3c572a,_0x33be8a,_0x428ca3){const _0xa7d250=_0x66c3e7,_0x1cdf8b=this;this[_0xa7d250('0x23')][_0xa7d250('0x15')](function(){const _0xc9fc3b=_0xa7d250;return _0x1cdf8b['queryInterface'][_0xc9fc3b('0xc')](_0x3c572a,_0x33be8a,_0x428ca3)[_0xc9fc3b('0x18')](function(){const _0x17e80d=_0xc9fc3b;logger[_0x17e80d('0x1c')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x33be8a,_0x428ca3,_0x3c572a);})['catch'](function(_0x4214a1){const _0x2dadf4=_0xc9fc3b;logger[_0x2dadf4('0x1c')](util[_0x2dadf4('0x1f')](_0x4214a1,{'showHidden':![],'depth':null}));});});},Migration[_0x66c3e7('0x24')][_0x66c3e7('0x17')]=function(_0x5ec331){const _0x205f6a=_0x66c3e7;this[_0x205f6a('0x23')][_0x205f6a('0x15')](function(){return _0x5ec331();});},module[_0x66c3e7('0x12')]={'up':function(_0x4d7957,_0x3df370){return new Promise(function(_0x1d3ab0){const _0x3ccc1e=a979_0x56f8,_0x47745e=new Migration(_0x4d7957);_0x47745e['addColumn']('report_agent','transfer',{'type':_0x3df370[_0x3ccc1e('0x8')],'defaultValue':![]}),_0x47745e[_0x3ccc1e('0xf')](_0x3ccc1e('0x0'),_0x3ccc1e('0x1a'),{'type':_0x3df370[_0x3ccc1e('0xb')],'comment':_0x3ccc1e('0x1')}),_0x47745e[_0x3ccc1e('0xf')](_0x3ccc1e('0x0'),_0x3ccc1e('0x7'),{'type':_0x3df370['STRING']}),_0x47745e[_0x3ccc1e('0xf')](_0x3ccc1e('0x0'),_0x3ccc1e('0x16'),{'type':_0x3df370[_0x3ccc1e('0xb')]}),_0x47745e[_0x3ccc1e('0xf')](_0x3ccc1e('0x0'),_0x3ccc1e('0x14'),{'type':_0x3df370['INTEGER'],'defaultValue':0x0}),_0x47745e['addColumn'](_0x3ccc1e('0x20'),'systemanswertime',{'type':_0x3df370['DATE']}),_0x47745e[_0x3ccc1e('0xf')]('int_salesforce_configurations',_0x3ccc1e('0x6'),{'type':_0x3df370[_0x3ccc1e('0x10')](_0x3ccc1e('0x1b'),_0x3ccc1e('0x1e')),'defaultValue':_0x3ccc1e('0x1b')}),_0x47745e['final'](_0x1d3ab0);});},'down':function(){}}; \ No newline at end of file +const a1141_0x3b72=['dropTable','tail','BOOLEAN','changeColumn','then','queryInterface','info','addColumn','prototype','removeColumn','join','removeIndex\x20%s\x20%s','report_agent','stringify','finally','Task','transfer','addIndex','table\x20dropped\x20%s','query','Added\x20column\x20%s\x20to\x20%s','final','sequence','ticketType','enqueue','inspect','STRING','systemanswertime','exports','removeIndex','INTEGER','catch','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','ENUM','report_call','transferuniqueid','agententerreason','query\x20%s','DATE','sequelize','int_salesforce_configurations','transfertype'];(function(_0x1017a6,_0x3b4e84){const _0x3b726e=function(_0x1ed59d){while(--_0x1ed59d){_0x1017a6['push'](_0x1017a6['shift']());}};_0x3b726e(++_0x3b4e84);}(a1141_0x3b72,0x14e));const a1141_0x1ed5=function(_0x1017a6,_0x3b4e84){_0x1017a6=_0x1017a6-0x1af;let _0x3b726e=a1141_0x3b72[_0x1017a6];return _0x3b726e;};const a1141_0x43fdf4=a1141_0x1ed5;'use strict';const util=require('util'),logger=require('../config/logger')('migration'),Sequence=function(){};Sequence[a1141_0x43fdf4(0x1b9)][a1141_0x43fdf4(0x1c9)]=function(_0x5467c9){const _0x50755e=a1141_0x43fdf4;this[_0x50755e(0x1b2)]=this['tail']?this[_0x50755e(0x1b2)][_0x50755e(0x1bf)](_0x5467c9):_0x5467c9();};const Migration=function(_0x212aa5){const _0x1fae78=a1141_0x43fdf4;this[_0x1fae78(0x1b6)]=_0x212aa5,this[_0x1fae78(0x1c7)]=new Sequence();};Migration['prototype'][a1141_0x43fdf4(0x1b4)]=function(_0x41c1c4,_0x4560af,_0x495c1e){const _0x5a9bc3=a1141_0x43fdf4,_0xbd775d=this;this[_0x5a9bc3(0x1c7)][_0x5a9bc3(0x1c9)](function(){const _0x472245=_0x5a9bc3;return _0xbd775d[_0x472245(0x1b6)][_0x472245(0x1b4)](_0x41c1c4,_0x4560af,_0x495c1e)[_0x472245(0x1b5)](function(){logger['info']('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x4560af,_0x41c1c4);})[_0x472245(0x1d0)](function(_0x2ba420){const _0x3c1c02=_0x472245;logger[_0x3c1c02(0x1b7)](JSON[_0x3c1c02(0x1be)](_0x2ba420));});});},Migration[a1141_0x43fdf4(0x1b9)][a1141_0x43fdf4(0x1b8)]=function(_0xd25b16,_0x394d40,_0x507217){const _0x1288aa=a1141_0x43fdf4,_0x3d53d4=this;this[_0x1288aa(0x1c7)][_0x1288aa(0x1c9)](function(){const _0x489168=_0x1288aa;return _0x3d53d4['queryInterface']['addColumn'](_0xd25b16,_0x394d40,_0x507217)[_0x489168(0x1b5)](function(){const _0x3ec762=_0x489168;logger[_0x3ec762(0x1b7)](_0x3ec762(0x1c5),_0x394d40,_0xd25b16);})[_0x489168(0x1d0)](function(_0x1e5609){const _0x6cf4b3=_0x489168;logger['info'](JSON[_0x6cf4b3(0x1be)](_0x1e5609));});});},Migration[a1141_0x43fdf4(0x1b9)][a1141_0x43fdf4(0x1b1)]=function(_0x4304c1){const _0x5008fe=a1141_0x43fdf4,_0x5e049b=this;this[_0x5008fe(0x1c7)][_0x5008fe(0x1c9)](function(){const _0x2bc25e=_0x5008fe;return _0x5e049b['queryInterface'][_0x2bc25e(0x1b1)](_0x4304c1,{'force':!![]})['then'](function(){const _0x56a2e4=_0x2bc25e;logger[_0x56a2e4(0x1b7)](_0x56a2e4(0x1c3),_0x4304c1);})['catch'](function(_0x40da43){const _0x1e40c9=_0x2bc25e;logger[_0x1e40c9(0x1b7)](JSON[_0x1e40c9(0x1be)](_0x40da43));});});},Migration[a1141_0x43fdf4(0x1b9)][a1141_0x43fdf4(0x1c2)]=function(_0x159c79,_0x3c744a,_0x286cc4){const _0x13f8ee=a1141_0x43fdf4,_0x2d0c18=this;this['sequence'][_0x13f8ee(0x1c9)](function(){const _0x1a3caa=_0x13f8ee;return _0x2d0c18[_0x1a3caa(0x1b6)]['addIndex'](_0x159c79,_0x3c744a,{'indexName':_0x286cc4})['then'](function(){const _0x202a63=_0x1a3caa;logger[_0x202a63(0x1b7)]('addIndex\x20%s\x20%s\x20%s',_0x159c79,_0x3c744a[_0x202a63(0x1bb)](','),_0x286cc4);})[_0x1a3caa(0x1d0)](function(_0x74b4f3){const _0x363d5e=_0x1a3caa;logger[_0x363d5e(0x1b7)](JSON[_0x363d5e(0x1be)](_0x74b4f3));});});},Migration[a1141_0x43fdf4(0x1b9)][a1141_0x43fdf4(0x1ce)]=function(_0x271604,_0x4994de){const _0x4dabd7=a1141_0x43fdf4,_0x5a522e=this;this[_0x4dabd7(0x1c7)][_0x4dabd7(0x1c9)](function(){const _0x383fb1=_0x4dabd7;return _0x5a522e[_0x383fb1(0x1b6)][_0x383fb1(0x1ce)](_0x271604,_0x4994de)[_0x383fb1(0x1b5)](function(){const _0x92b02e=_0x383fb1;logger[_0x92b02e(0x1b7)](_0x92b02e(0x1bc),_0x271604,_0x4994de);})[_0x383fb1(0x1d0)](function(_0x22f73d){const _0x36eeaa=_0x383fb1;logger[_0x36eeaa(0x1b7)](JSON[_0x36eeaa(0x1be)](_0x22f73d));});});},Migration[a1141_0x43fdf4(0x1b9)][a1141_0x43fdf4(0x1c4)]=function(_0x250d84){const _0x2c4c7b=a1141_0x43fdf4,_0x33229f=this;this['sequence'][_0x2c4c7b(0x1c9)](function(){const _0xed0c6a=_0x2c4c7b;return _0x33229f[_0xed0c6a(0x1b6)][_0xed0c6a(0x1d8)][_0xed0c6a(0x1c4)](_0x250d84)[_0xed0c6a(0x1b5)](function(){const _0x394d9f=_0xed0c6a;logger[_0x394d9f(0x1b7)](_0x394d9f(0x1d6),_0x250d84);})[_0xed0c6a(0x1d0)](function(_0x3a52c6){const _0x456aa4=_0xed0c6a;logger[_0x456aa4(0x1b7)](JSON[_0x456aa4(0x1be)](_0x3a52c6));});});},Migration[a1141_0x43fdf4(0x1b9)][a1141_0x43fdf4(0x1ba)]=function(_0x21d994,_0x3ac072){const _0x4ab223=a1141_0x43fdf4,_0xd0a885=this;this[_0x4ab223(0x1c7)]['enqueue'](function(){const _0x26e7ce=_0x4ab223;return _0xd0a885['queryInterface']['removeColumn'](_0x21d994,_0x3ac072)['then'](function(){logger['info']('Removed\x20column\x20%s\x20from\x20%s',_0x3ac072,_0x21d994);})[_0x26e7ce(0x1d0)](function(_0x3c31f4){const _0xcdf599=_0x26e7ce;logger[_0xcdf599(0x1b7)](util[_0xcdf599(0x1ca)](_0x3c31f4,{'showHidden':![],'depth':null}));});});},Migration[a1141_0x43fdf4(0x1b9)]['renameColumn']=function(_0x9b6838,_0x5cd060,_0x16c5bf){const _0x5d6427=a1141_0x43fdf4,_0xfefe89=this;this[_0x5d6427(0x1c7)][_0x5d6427(0x1c9)](function(){const _0x102639=_0x5d6427;return _0xfefe89[_0x102639(0x1b6)]['renameColumn'](_0x9b6838,_0x5cd060,_0x16c5bf)[_0x102639(0x1b5)](function(){const _0x483c22=_0x102639;logger[_0x483c22(0x1b7)](_0x483c22(0x1d1),_0x5cd060,_0x16c5bf,_0x9b6838);})[_0x102639(0x1d0)](function(_0x579c7e){const _0x45636e=_0x102639;logger[_0x45636e(0x1b7)](util[_0x45636e(0x1ca)](_0x579c7e,{'showHidden':![],'depth':null}));});});},Migration[a1141_0x43fdf4(0x1b9)][a1141_0x43fdf4(0x1c6)]=function(_0x4564d8){const _0x479b4a=a1141_0x43fdf4;this[_0x479b4a(0x1c7)][_0x479b4a(0x1c9)](function(){return _0x4564d8();});},module[a1141_0x43fdf4(0x1cd)]={'up':function(_0x5b9d96,_0x393b46){return new Promise(function(_0x328086){const _0x11bdfe=a1141_0x1ed5,_0x5d97a5=new Migration(_0x5b9d96);_0x5d97a5[_0x11bdfe(0x1b8)](_0x11bdfe(0x1bd),_0x11bdfe(0x1c1),{'type':_0x393b46[_0x11bdfe(0x1b3)],'defaultValue':![]}),_0x5d97a5[_0x11bdfe(0x1b8)](_0x11bdfe(0x1bd),_0x11bdfe(0x1b0),{'type':_0x393b46[_0x11bdfe(0x1cb)],'comment':'FORWARD,\x20BLIND,\x20ATTENDED'}),_0x5d97a5[_0x11bdfe(0x1b8)](_0x11bdfe(0x1bd),'transferexten',{'type':_0x393b46['STRING']}),_0x5d97a5[_0x11bdfe(0x1b8)](_0x11bdfe(0x1bd),_0x11bdfe(0x1d4),{'type':_0x393b46[_0x11bdfe(0x1cb)]}),_0x5d97a5[_0x11bdfe(0x1b8)](_0x11bdfe(0x1bd),_0x11bdfe(0x1d5),{'type':_0x393b46[_0x11bdfe(0x1cf)],'defaultValue':0x0}),_0x5d97a5[_0x11bdfe(0x1b8)](_0x11bdfe(0x1d3),_0x11bdfe(0x1cc),{'type':_0x393b46[_0x11bdfe(0x1d7)]}),_0x5d97a5['addColumn'](_0x11bdfe(0x1af),_0x11bdfe(0x1c8),{'type':_0x393b46[_0x11bdfe(0x1d2)](_0x11bdfe(0x1c0),'Case'),'defaultValue':_0x11bdfe(0x1c0)}),_0x5d97a5[_0x11bdfe(0x1c6)](_0x328086);});},'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 648341c..d7fd48f 100644 --- a/server/migrations/2.3.8.js +++ b/server/migrations/2.3.8.js @@ -1 +1 @@ -const a980_0x27c6=['removeColumn','prototype','sequelize','sequence','Added\x20column\x20%s\x20to\x20%s','removeIndex','catch','stringify','util','addIndex','query\x20%s','query','changeColumn','renameColumn','addIndex\x20%s\x20%s\x20%s','enqueue','finally','tail','../config/logger','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','removeIndex\x20%s\x20%s','addColumn','info','queryInterface','dropTable','final','then','migration'];(function(_0x310758,_0x27c6ec){const _0xcccde3=function(_0x1be699){while(--_0x1be699){_0x310758['push'](_0x310758['shift']());}};_0xcccde3(++_0x27c6ec);}(a980_0x27c6,0x197));const a980_0xcccd=function(_0x310758,_0x27c6ec){_0x310758=_0x310758-0x0;let _0xcccde3=a980_0x27c6[_0x310758];return _0xcccde3;};const _0x568804=a980_0xcccd;'use strict';const util=require(_0x568804('0x7')),logger=require(_0x568804('0x11'))(_0x568804('0x1b')),Sequence=function(){};Sequence['prototype']['enqueue']=function(_0x1be699){const _0x4ed50d=_0x568804;this['tail']=this[_0x4ed50d('0x10')]?this[_0x4ed50d('0x10')][_0x4ed50d('0xf')](_0x1be699):_0x1be699();};const Migration=function(_0x5c7c18){const _0x18d043=_0x568804;this[_0x18d043('0x17')]=_0x5c7c18,this[_0x18d043('0x2')]=new Sequence();};Migration['prototype']['changeColumn']=function(_0x561a31,_0x4098c6,_0x1e37bf){const _0x1f8292=_0x568804,_0x3eca78=this;this[_0x1f8292('0x2')][_0x1f8292('0xe')](function(){const _0x56b88f=_0x1f8292;return _0x3eca78[_0x56b88f('0x17')][_0x56b88f('0xb')](_0x561a31,_0x4098c6,_0x1e37bf)['then'](function(){const _0x11dc98=_0x56b88f;logger[_0x11dc98('0x16')](_0x11dc98('0x13'),_0x4098c6,_0x561a31);})[_0x56b88f('0x5')](function(_0x45da23){const _0x191129=_0x56b88f;logger[_0x191129('0x16')](JSON[_0x191129('0x6')](_0x45da23));});});},Migration['prototype'][_0x568804('0x15')]=function(_0x168cf8,_0x39ecc8,_0x20c2a7){const _0x39c33c=_0x568804,_0x29c6e2=this;this[_0x39c33c('0x2')][_0x39c33c('0xe')](function(){const _0x5c3cb8=_0x39c33c;return _0x29c6e2[_0x5c3cb8('0x17')]['addColumn'](_0x168cf8,_0x39ecc8,_0x20c2a7)[_0x5c3cb8('0x1a')](function(){const _0x3e63f8=_0x5c3cb8;logger[_0x3e63f8('0x16')](_0x3e63f8('0x3'),_0x39ecc8,_0x168cf8);})['catch'](function(_0x3bd4a9){const _0x2651b7=_0x5c3cb8;logger[_0x2651b7('0x16')](JSON[_0x2651b7('0x6')](_0x3bd4a9));});});},Migration[_0x568804('0x0')]['dropTable']=function(_0x140d4d){const _0x26b8d5=_0x568804,_0x2a89da=this;this[_0x26b8d5('0x2')][_0x26b8d5('0xe')](function(){const _0x5457dd=_0x26b8d5;return _0x2a89da[_0x5457dd('0x17')][_0x5457dd('0x18')](_0x140d4d,{'force':!![]})[_0x5457dd('0x1a')](function(){logger['info']('table\x20dropped\x20%s',_0x140d4d);})[_0x5457dd('0x5')](function(_0x27b042){const _0x1b1e73=_0x5457dd;logger[_0x1b1e73('0x16')](JSON[_0x1b1e73('0x6')](_0x27b042));});});},Migration['prototype'][_0x568804('0x8')]=function(_0x149a5a,_0x178a46,_0x4a293d){const _0x556512=_0x568804,_0x215d55=this;this[_0x556512('0x2')][_0x556512('0xe')](function(){const _0x1c8199=_0x556512;return _0x215d55[_0x1c8199('0x17')][_0x1c8199('0x8')](_0x149a5a,_0x178a46,{'indexName':_0x4a293d})[_0x1c8199('0x1a')](function(){const _0x129ef6=_0x1c8199;logger[_0x129ef6('0x16')](_0x129ef6('0xd'),_0x149a5a,_0x178a46['join'](','),_0x4a293d);})[_0x1c8199('0x5')](function(_0x56d2a1){const _0x2ec7cd=_0x1c8199;logger[_0x2ec7cd('0x16')](JSON[_0x2ec7cd('0x6')](_0x56d2a1));});});},Migration[_0x568804('0x0')][_0x568804('0x4')]=function(_0x5efc17,_0x2905ab){const _0x44f9e5=_0x568804,_0x182d1b=this;this[_0x44f9e5('0x2')][_0x44f9e5('0xe')](function(){const _0x12ee58=_0x44f9e5;return _0x182d1b[_0x12ee58('0x17')]['removeIndex'](_0x5efc17,_0x2905ab)[_0x12ee58('0x1a')](function(){const _0xc495d5=_0x12ee58;logger[_0xc495d5('0x16')](_0xc495d5('0x14'),_0x5efc17,_0x2905ab);})[_0x12ee58('0x5')](function(_0x1c507e){logger['info'](JSON['stringify'](_0x1c507e));});});},Migration[_0x568804('0x0')][_0x568804('0xa')]=function(_0x27444c){const _0x41006c=_0x568804,_0x2faf3f=this;this[_0x41006c('0x2')][_0x41006c('0xe')](function(){const _0x1c5b79=_0x41006c;return _0x2faf3f[_0x1c5b79('0x17')][_0x1c5b79('0x1')][_0x1c5b79('0xa')](_0x27444c)[_0x1c5b79('0x1a')](function(){const _0x220cc9=_0x1c5b79;logger[_0x220cc9('0x16')](_0x220cc9('0x9'),_0x27444c);})[_0x1c5b79('0x5')](function(_0x4c5d8b){const _0x4c04ee=_0x1c5b79;logger[_0x4c04ee('0x16')](JSON[_0x4c04ee('0x6')](_0x4c5d8b));});});},Migration['prototype'][_0x568804('0x1c')]=function(_0x1bc1ea,_0x2c90e9){const _0x65152c=_0x568804,_0x23ad0a=this;this[_0x65152c('0x2')][_0x65152c('0xe')](function(){const _0x302647=_0x65152c;return _0x23ad0a['queryInterface'][_0x302647('0x1c')](_0x1bc1ea,_0x2c90e9)[_0x302647('0x1a')](function(){logger['info']('Removed\x20column\x20%s\x20from\x20%s',_0x2c90e9,_0x1bc1ea);})['catch'](function(_0x5ce313){const _0x4d9781=_0x302647;logger[_0x4d9781('0x16')](util['inspect'](_0x5ce313,{'showHidden':![],'depth':null}));});});},Migration[_0x568804('0x0')][_0x568804('0xc')]=function(_0x36b856,_0x3a8b7e,_0x1c6955){const _0x245d5d=_0x568804,_0x3c073c=this;this[_0x245d5d('0x2')][_0x245d5d('0xe')](function(){const _0x122299=_0x245d5d;return _0x3c073c['queryInterface'][_0x122299('0xc')](_0x36b856,_0x3a8b7e,_0x1c6955)[_0x122299('0x1a')](function(){const _0x3e0d8e=_0x122299;logger[_0x3e0d8e('0x16')](_0x3e0d8e('0x12'),_0x3a8b7e,_0x1c6955,_0x36b856);})[_0x122299('0x5')](function(_0x506ffc){const _0x4a249b=_0x122299;logger[_0x4a249b('0x16')](util['inspect'](_0x506ffc,{'showHidden':![],'depth':null}));});});},Migration[_0x568804('0x0')][_0x568804('0x19')]=function(_0x2fb786){const _0x21cd73=_0x568804;this[_0x21cd73('0x2')][_0x21cd73('0xe')](function(){return _0x2fb786();});},module['exports']={'up':function(_0x5735e6){return new Promise(function(_0x2d681d){const _0x63ace4=a980_0xcccd,_0x4baa0d=new Migration(_0x5735e6);_0x4baa0d[_0x63ace4('0x19')](_0x2d681d);});},'down':function(){}}; \ No newline at end of file +const a1142_0x20e8=['query\x20%s','dropTable','finally','sequelize','info','util','exports','removeIndex\x20%s\x20%s','addIndex','changeColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','then','catch','prototype','queryInterface','join','addColumn','enqueue','tail','sequence','migration','stringify','final','query','Added\x20column\x20%s\x20to\x20%s','addIndex\x20%s\x20%s\x20%s','inspect'];(function(_0x4f9114,_0xe54d49){const _0x20e84c=function(_0x4310a3){while(--_0x4310a3){_0x4f9114['push'](_0x4f9114['shift']());}};_0x20e84c(++_0xe54d49);}(a1142_0x20e8,0xc3));const a1142_0x4310=function(_0x4f9114,_0xe54d49){_0x4f9114=_0x4f9114-0x13a;let _0x20e84c=a1142_0x20e8[_0x4f9114];return _0x20e84c;};const a1142_0x2764e1=a1142_0x4310;'use strict';const util=require(a1142_0x2764e1(0x154)),logger=require('../config/logger')(a1142_0x2764e1(0x148)),Sequence=function(){};Sequence[a1142_0x2764e1(0x141)]['enqueue']=function(_0x2d59ea){const _0xdd3cf8=a1142_0x2764e1;this['tail']=this[_0xdd3cf8(0x146)]?this[_0xdd3cf8(0x146)][_0xdd3cf8(0x151)](_0x2d59ea):_0x2d59ea();};const Migration=function(_0x541b8b){const _0x19512c=a1142_0x2764e1;this[_0x19512c(0x142)]=_0x541b8b,this[_0x19512c(0x147)]=new Sequence();};Migration['prototype'][a1142_0x2764e1(0x13d)]=function(_0x3f0084,_0x3101a6,_0x188185){const _0x4353db=a1142_0x2764e1,_0x15f281=this;this['sequence'][_0x4353db(0x145)](function(){const _0x2395e8=_0x4353db;return _0x15f281[_0x2395e8(0x142)][_0x2395e8(0x13d)](_0x3f0084,_0x3101a6,_0x188185)[_0x2395e8(0x13f)](function(){logger['info']('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x3101a6,_0x3f0084);})['catch'](function(_0x10a634){const _0x1f9838=_0x2395e8;logger[_0x1f9838(0x153)](JSON[_0x1f9838(0x149)](_0x10a634));});});},Migration[a1142_0x2764e1(0x141)]['addColumn']=function(_0x11ec76,_0x5f2696,_0x401961){const _0x4ec34d=a1142_0x2764e1,_0x2bd00b=this;this[_0x4ec34d(0x147)][_0x4ec34d(0x145)](function(){const _0x444c4f=_0x4ec34d;return _0x2bd00b[_0x444c4f(0x142)][_0x444c4f(0x144)](_0x11ec76,_0x5f2696,_0x401961)[_0x444c4f(0x13f)](function(){const _0x1f4fda=_0x444c4f;logger['info'](_0x1f4fda(0x14c),_0x5f2696,_0x11ec76);})['catch'](function(_0xd1fa35){const _0x209b5a=_0x444c4f;logger['info'](JSON[_0x209b5a(0x149)](_0xd1fa35));});});},Migration[a1142_0x2764e1(0x141)][a1142_0x2764e1(0x150)]=function(_0x2767fb){const _0x2f3f20=a1142_0x2764e1,_0x5e31b2=this;this['sequence'][_0x2f3f20(0x145)](function(){const _0x4cfebd=_0x2f3f20;return _0x5e31b2['queryInterface'][_0x4cfebd(0x150)](_0x2767fb,{'force':!![]})[_0x4cfebd(0x13f)](function(){const _0x25c0c0=_0x4cfebd;logger[_0x25c0c0(0x153)]('table\x20dropped\x20%s',_0x2767fb);})[_0x4cfebd(0x140)](function(_0x403aea){const _0x57c5b0=_0x4cfebd;logger[_0x57c5b0(0x153)](JSON['stringify'](_0x403aea));});});},Migration[a1142_0x2764e1(0x141)]['addIndex']=function(_0x181a4f,_0x5c5aab,_0x5d4cb8){const _0x161110=a1142_0x2764e1,_0x575b41=this;this[_0x161110(0x147)]['enqueue'](function(){const _0x49ddff=_0x161110;return _0x575b41[_0x49ddff(0x142)][_0x49ddff(0x13c)](_0x181a4f,_0x5c5aab,{'indexName':_0x5d4cb8})[_0x49ddff(0x13f)](function(){const _0x309fa6=_0x49ddff;logger[_0x309fa6(0x153)](_0x309fa6(0x14d),_0x181a4f,_0x5c5aab[_0x309fa6(0x143)](','),_0x5d4cb8);})[_0x49ddff(0x140)](function(_0x399644){const _0xc015ae=_0x49ddff;logger[_0xc015ae(0x153)](JSON['stringify'](_0x399644));});});},Migration[a1142_0x2764e1(0x141)]['removeIndex']=function(_0x8f1bd1,_0x36651a){const _0x24f6a6=a1142_0x2764e1,_0x465b84=this;this[_0x24f6a6(0x147)][_0x24f6a6(0x145)](function(){const _0x18fab6=_0x24f6a6;return _0x465b84[_0x18fab6(0x142)]['removeIndex'](_0x8f1bd1,_0x36651a)[_0x18fab6(0x13f)](function(){const _0x100129=_0x18fab6;logger[_0x100129(0x153)](_0x100129(0x13b),_0x8f1bd1,_0x36651a);})[_0x18fab6(0x140)](function(_0x5ed56f){const _0x443c02=_0x18fab6;logger[_0x443c02(0x153)](JSON['stringify'](_0x5ed56f));});});},Migration['prototype']['query']=function(_0x171425){const _0x19ce51=a1142_0x2764e1,_0x80fd96=this;this['sequence'][_0x19ce51(0x145)](function(){const _0x582dc4=_0x19ce51;return _0x80fd96[_0x582dc4(0x142)][_0x582dc4(0x152)][_0x582dc4(0x14b)](_0x171425)[_0x582dc4(0x13f)](function(){const _0x1e97e3=_0x582dc4;logger[_0x1e97e3(0x153)](_0x1e97e3(0x14f),_0x171425);})[_0x582dc4(0x140)](function(_0xae1348){const _0x5dac82=_0x582dc4;logger[_0x5dac82(0x153)](JSON[_0x5dac82(0x149)](_0xae1348));});});},Migration[a1142_0x2764e1(0x141)]['removeColumn']=function(_0x490abe,_0x262789){const _0x235e9a=a1142_0x2764e1,_0x1874a1=this;this[_0x235e9a(0x147)]['enqueue'](function(){return _0x1874a1['queryInterface']['removeColumn'](_0x490abe,_0x262789)['then'](function(){const _0x5c5e15=a1142_0x4310;logger[_0x5c5e15(0x153)]('Removed\x20column\x20%s\x20from\x20%s',_0x262789,_0x490abe);})['catch'](function(_0x48dc99){const _0x312b5e=a1142_0x4310;logger[_0x312b5e(0x153)](util['inspect'](_0x48dc99,{'showHidden':![],'depth':null}));});});},Migration[a1142_0x2764e1(0x141)]['renameColumn']=function(_0x1c7231,_0xae49d7,_0x2c6ee){const _0x1d5176=this;this['sequence']['enqueue'](function(){const _0x4a3990=a1142_0x4310;return _0x1d5176[_0x4a3990(0x142)]['renameColumn'](_0x1c7231,_0xae49d7,_0x2c6ee)[_0x4a3990(0x13f)](function(){const _0x2156fe=_0x4a3990;logger[_0x2156fe(0x153)](_0x2156fe(0x13e),_0xae49d7,_0x2c6ee,_0x1c7231);})[_0x4a3990(0x140)](function(_0x24a392){const _0x5a3061=_0x4a3990;logger[_0x5a3061(0x153)](util[_0x5a3061(0x14e)](_0x24a392,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1142_0x2764e1(0x14a)]=function(_0x4a75c8){const _0x5bc2e1=a1142_0x2764e1;this['sequence'][_0x5bc2e1(0x145)](function(){return _0x4a75c8();});},module[a1142_0x2764e1(0x13a)]={'up':function(_0x5ef0cf){return new Promise(function(_0x377f55){const _0xd93571=a1142_0x4310,_0x3b45f6=new Migration(_0x5ef0cf);_0x3b45f6[_0xd93571(0x14a)](_0x377f55);});},'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 f25fce0..29b6461 100644 --- a/server/migrations/2.3.9.js +++ b/server/migrations/2.3.9.js @@ -1 +1 @@ -const a981_0x1cf5=['finally','renameColumn','query\x20%s','exports','info','queryInterface','addIndex\x20%s\x20%s\x20%s\x20[%s]','join','addIndex','indexName','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','tail','sequence','removeIndex','dropTable','../config/logger','inspect','indicesType','query','then','util','addColumn','removeIndex\x20%s\x20%s','final','enqueue','stringify','catch','migration','removeColumn','sequelize','table\x20dropped\x20%s','prototype','Changed\x20column\x20%s\x20in\x20table\x20%s','Removed\x20column\x20%s\x20from\x20%s'];(function(_0x114a26,_0x1cf5fd){const _0x28293b=function(_0x48b45c){while(--_0x48b45c){_0x114a26['push'](_0x114a26['shift']());}};_0x28293b(++_0x1cf5fd);}(a981_0x1cf5,0x154));const a981_0x2829=function(_0x114a26,_0x1cf5fd){_0x114a26=_0x114a26-0x0;let _0x28293b=a981_0x1cf5[_0x114a26];return _0x28293b;};const _0x21b8ef=a981_0x2829;'use strict';const util=require(_0x21b8ef('0x14')),logger=require(_0x21b8ef('0xf'))(_0x21b8ef('0x1b')),Sequence=function(){};Sequence[_0x21b8ef('0x1f')]['enqueue']=function(_0x48b45c){const _0x12f7ed=_0x21b8ef;this[_0x12f7ed('0xb')]=this[_0x12f7ed('0xb')]?this[_0x12f7ed('0xb')][_0x12f7ed('0x0')](_0x48b45c):_0x48b45c();};const Migration=function(_0x460592){const _0x59c260=_0x21b8ef;this[_0x59c260('0x5')]=_0x460592,this[_0x59c260('0xc')]=new Sequence();};Migration[_0x21b8ef('0x1f')]['changeColumn']=function(_0x436864,_0x33cb90,_0x4f8e01){const _0x4b4287=_0x21b8ef,_0xe3e35=this;this[_0x4b4287('0xc')][_0x4b4287('0x18')](function(){const _0x35bda5=_0x4b4287;return _0xe3e35[_0x35bda5('0x5')]['changeColumn'](_0x436864,_0x33cb90,_0x4f8e01)[_0x35bda5('0x13')](function(){const _0x1dddbd=_0x35bda5;logger[_0x1dddbd('0x4')](_0x1dddbd('0x20'),_0x33cb90,_0x436864);})[_0x35bda5('0x1a')](function(_0x956938){const _0x126c10=_0x35bda5;logger[_0x126c10('0x4')](JSON['stringify'](_0x956938));});});},Migration['prototype']['addColumn']=function(_0x477087,_0x11a603,_0x101458){const _0x226ea1=this;this['sequence']['enqueue'](function(){const _0x5cc36c=a981_0x2829;return _0x226ea1[_0x5cc36c('0x5')][_0x5cc36c('0x15')](_0x477087,_0x11a603,_0x101458)[_0x5cc36c('0x13')](function(){const _0x4f4c65=_0x5cc36c;logger[_0x4f4c65('0x4')]('Added\x20column\x20%s\x20to\x20%s',_0x11a603,_0x477087);})[_0x5cc36c('0x1a')](function(_0xa68ad6){const _0x1022cd=_0x5cc36c;logger[_0x1022cd('0x4')](JSON[_0x1022cd('0x19')](_0xa68ad6));});});},Migration['prototype'][_0x21b8ef('0xe')]=function(_0x4daf5e){const _0x14145f=_0x21b8ef,_0x46d1a9=this;this[_0x14145f('0xc')]['enqueue'](function(){const _0x5c5f82=_0x14145f;return _0x46d1a9[_0x5c5f82('0x5')][_0x5c5f82('0xe')](_0x4daf5e,{'force':!![]})[_0x5c5f82('0x13')](function(){const _0x4ce447=_0x5c5f82;logger['info'](_0x4ce447('0x1e'),_0x4daf5e);})[_0x5c5f82('0x1a')](function(_0x592673){const _0x52a66c=_0x5c5f82;logger[_0x52a66c('0x4')](JSON[_0x52a66c('0x19')](_0x592673));});});},Migration[_0x21b8ef('0x1f')][_0x21b8ef('0x8')]=function(_0x334488,_0x1b7d20,_0x3af2b5){const _0x48045d=_0x21b8ef,_0x2c2539=this;this[_0x48045d('0xc')][_0x48045d('0x18')](function(){const _0x52e739=_0x48045d;return _0x2c2539[_0x52e739('0x5')][_0x52e739('0x8')](_0x334488,_0x1b7d20,{'indexName':_0x3af2b5[_0x52e739('0x9')],'indicesType':_0x3af2b5[_0x52e739('0x11')]})[_0x52e739('0x13')](function(){const _0xea82de=_0x52e739;logger['info'](_0xea82de('0x6'),_0x334488,_0x1b7d20[_0xea82de('0x7')](','),_0x3af2b5[_0xea82de('0x9')],_0x3af2b5['indicesType']);})[_0x52e739('0x1a')](function(_0x27e9f8){const _0x2ca736=_0x52e739;logger['info'](JSON[_0x2ca736('0x19')](_0x27e9f8));});});},Migration[_0x21b8ef('0x1f')][_0x21b8ef('0xd')]=function(_0x45513b,_0x4c093c){const _0x224afe=_0x21b8ef,_0x458467=this;this[_0x224afe('0xc')][_0x224afe('0x18')](function(){const _0x26b4bf=_0x224afe;return _0x458467['queryInterface'][_0x26b4bf('0xd')](_0x45513b,_0x4c093c)[_0x26b4bf('0x13')](function(){const _0xa05855=_0x26b4bf;logger[_0xa05855('0x4')](_0xa05855('0x16'),_0x45513b,_0x4c093c);})[_0x26b4bf('0x1a')](function(_0x46b5af){const _0xf5a95b=_0x26b4bf;logger[_0xf5a95b('0x4')](JSON[_0xf5a95b('0x19')](_0x46b5af));});});},Migration[_0x21b8ef('0x1f')][_0x21b8ef('0x12')]=function(_0x39200b){const _0x3d79a5=_0x21b8ef,_0x3df0cb=this;this[_0x3d79a5('0xc')][_0x3d79a5('0x18')](function(){const _0x4636a5=_0x3d79a5;return _0x3df0cb[_0x4636a5('0x5')][_0x4636a5('0x1d')][_0x4636a5('0x12')](_0x39200b)[_0x4636a5('0x13')](function(){const _0x477e9c=_0x4636a5;logger[_0x477e9c('0x4')](_0x477e9c('0x2'),_0x39200b);})[_0x4636a5('0x1a')](function(_0x2fc124){const _0x56c956=_0x4636a5;logger[_0x56c956('0x4')](JSON[_0x56c956('0x19')](_0x2fc124));});});},Migration['prototype'][_0x21b8ef('0x1c')]=function(_0x2e3d5d,_0x5e9aad){const _0x5de4f7=_0x21b8ef,_0xff5702=this;this[_0x5de4f7('0xc')][_0x5de4f7('0x18')](function(){const _0x2aea87=_0x5de4f7;return _0xff5702[_0x2aea87('0x5')][_0x2aea87('0x1c')](_0x2e3d5d,_0x5e9aad)[_0x2aea87('0x13')](function(){const _0x3dbe87=_0x2aea87;logger[_0x3dbe87('0x4')](_0x3dbe87('0x21'),_0x5e9aad,_0x2e3d5d);})[_0x2aea87('0x1a')](function(_0x2873c1){const _0x52a528=_0x2aea87;logger[_0x52a528('0x4')](util[_0x52a528('0x10')](_0x2873c1,{'showHidden':![],'depth':null}));});});},Migration[_0x21b8ef('0x1f')][_0x21b8ef('0x1')]=function(_0x50f721,_0x3ab85e,_0x471773){const _0x15a840=this;this['sequence']['enqueue'](function(){const _0x58a858=a981_0x2829;return _0x15a840[_0x58a858('0x5')]['renameColumn'](_0x50f721,_0x3ab85e,_0x471773)[_0x58a858('0x13')](function(){const _0x66d6cf=_0x58a858;logger[_0x66d6cf('0x4')](_0x66d6cf('0xa'),_0x3ab85e,_0x471773,_0x50f721);})[_0x58a858('0x1a')](function(_0x1769e1){const _0x33cda0=_0x58a858;logger[_0x33cda0('0x4')](util[_0x33cda0('0x10')](_0x1769e1,{'showHidden':![],'depth':null}));});});},Migration[_0x21b8ef('0x1f')][_0x21b8ef('0x17')]=function(_0x2a8b61){const _0x3d103b=_0x21b8ef;this[_0x3d103b('0xc')][_0x3d103b('0x18')](function(){return _0x2a8b61();});},module[_0x21b8ef('0x3')]={'up':function(_0x525f32){return new Promise(function(_0x2433b2){const _0x474081=a981_0x2829,_0x297e30=new Migration(_0x525f32);_0x297e30[_0x474081('0x17')](_0x2433b2);});},'down':function(){}}; \ No newline at end of file +const a1143_0x4a3d=['Added\x20column\x20%s\x20to\x20%s','join','addIndex','indexName','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','query','../config/logger','changeColumn','enqueue','addColumn','then','finally','renameColumn','util','Changed\x20column\x20%s\x20in\x20table\x20%s','removeColumn','tail','removeIndex\x20%s\x20%s','sequelize','removeIndex','queryInterface','query\x20%s','sequence','info','exports','final','dropTable','catch','prototype','indicesType','stringify','Removed\x20column\x20%s\x20from\x20%s'];(function(_0x1dccce,_0x4b1247){const _0x4a3d1a=function(_0x5a28a2){while(--_0x5a28a2){_0x1dccce['push'](_0x1dccce['shift']());}};_0x4a3d1a(++_0x4b1247);}(a1143_0x4a3d,0xc6));const a1143_0x5a28=function(_0x1dccce,_0x4b1247){_0x1dccce=_0x1dccce-0x121;let _0x4a3d1a=a1143_0x4a3d[_0x1dccce];return _0x4a3d1a;};const a1143_0x4a47df=a1143_0x5a28;'use strict';const util=require(a1143_0x4a47df(0x128)),logger=require(a1143_0x4a47df(0x121))('migration'),Sequence=function(){};Sequence['prototype']['enqueue']=function(_0x358e9c){const _0x7abbb2=a1143_0x4a47df;this[_0x7abbb2(0x12b)]=this[_0x7abbb2(0x12b)]?this[_0x7abbb2(0x12b)][_0x7abbb2(0x126)](_0x358e9c):_0x358e9c();};const Migration=function(_0x55cfa1){const _0x3836d9=a1143_0x4a47df;this[_0x3836d9(0x12f)]=_0x55cfa1,this['sequence']=new Sequence();};Migration['prototype'][a1143_0x4a47df(0x122)]=function(_0xb3dde3,_0x25cf92,_0x298f0c){const _0x42a6db=a1143_0x4a47df,_0xb627ce=this;this[_0x42a6db(0x131)]['enqueue'](function(){const _0xc3bce7=_0x42a6db;return _0xb627ce[_0xc3bce7(0x12f)][_0xc3bce7(0x122)](_0xb3dde3,_0x25cf92,_0x298f0c)[_0xc3bce7(0x125)](function(){const _0x18067=_0xc3bce7;logger[_0x18067(0x132)](_0x18067(0x129),_0x25cf92,_0xb3dde3);})['catch'](function(_0x3fe827){logger['info'](JSON['stringify'](_0x3fe827));});});},Migration['prototype'][a1143_0x4a47df(0x124)]=function(_0x39b0cd,_0x40af87,_0x2074ed){const _0xea6c83=a1143_0x4a47df,_0x2380e7=this;this[_0xea6c83(0x131)][_0xea6c83(0x123)](function(){const _0x4fec93=_0xea6c83;return _0x2380e7[_0x4fec93(0x12f)][_0x4fec93(0x124)](_0x39b0cd,_0x40af87,_0x2074ed)[_0x4fec93(0x125)](function(){const _0x288d61=_0x4fec93;logger[_0x288d61(0x132)](_0x288d61(0x13b),_0x40af87,_0x39b0cd);})[_0x4fec93(0x136)](function(_0x401308){const _0x37881c=_0x4fec93;logger['info'](JSON[_0x37881c(0x139)](_0x401308));});});},Migration[a1143_0x4a47df(0x137)][a1143_0x4a47df(0x135)]=function(_0x44c2ce){const _0x5dc05b=a1143_0x4a47df,_0x39cc2b=this;this[_0x5dc05b(0x131)][_0x5dc05b(0x123)](function(){const _0x3f6556=_0x5dc05b;return _0x39cc2b[_0x3f6556(0x12f)][_0x3f6556(0x135)](_0x44c2ce,{'force':!![]})[_0x3f6556(0x125)](function(){const _0x324859=_0x3f6556;logger[_0x324859(0x132)]('table\x20dropped\x20%s',_0x44c2ce);})[_0x3f6556(0x136)](function(_0x1f18cd){const _0x5e0b8e=_0x3f6556;logger['info'](JSON[_0x5e0b8e(0x139)](_0x1f18cd));});});},Migration['prototype'][a1143_0x4a47df(0x13d)]=function(_0x3b25a5,_0x3e31c9,_0x28351e){const _0x575d23=a1143_0x4a47df,_0x149ac2=this;this[_0x575d23(0x131)]['enqueue'](function(){const _0x29ee7a=_0x575d23;return _0x149ac2['queryInterface'][_0x29ee7a(0x13d)](_0x3b25a5,_0x3e31c9,{'indexName':_0x28351e[_0x29ee7a(0x13e)],'indicesType':_0x28351e[_0x29ee7a(0x138)]})[_0x29ee7a(0x125)](function(){const _0x4f11e9=_0x29ee7a;logger[_0x4f11e9(0x132)]('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x3b25a5,_0x3e31c9[_0x4f11e9(0x13c)](','),_0x28351e[_0x4f11e9(0x13e)],_0x28351e[_0x4f11e9(0x138)]);})[_0x29ee7a(0x136)](function(_0x52b79a){logger['info'](JSON['stringify'](_0x52b79a));});});},Migration[a1143_0x4a47df(0x137)][a1143_0x4a47df(0x12e)]=function(_0x2b762,_0x286aa8){const _0x3ead50=a1143_0x4a47df,_0x23285b=this;this[_0x3ead50(0x131)][_0x3ead50(0x123)](function(){const _0x447c1b=_0x3ead50;return _0x23285b[_0x447c1b(0x12f)][_0x447c1b(0x12e)](_0x2b762,_0x286aa8)['then'](function(){const _0x1bb8a0=_0x447c1b;logger['info'](_0x1bb8a0(0x12c),_0x2b762,_0x286aa8);})['catch'](function(_0x57fa51){const _0x545ddc=_0x447c1b;logger[_0x545ddc(0x132)](JSON[_0x545ddc(0x139)](_0x57fa51));});});},Migration[a1143_0x4a47df(0x137)][a1143_0x4a47df(0x140)]=function(_0xcf7d51){const _0x282a1d=a1143_0x4a47df,_0x319d50=this;this[_0x282a1d(0x131)][_0x282a1d(0x123)](function(){const _0xf9f7d=_0x282a1d;return _0x319d50[_0xf9f7d(0x12f)][_0xf9f7d(0x12d)]['query'](_0xcf7d51)['then'](function(){const _0x3b73dd=_0xf9f7d;logger['info'](_0x3b73dd(0x130),_0xcf7d51);})[_0xf9f7d(0x136)](function(_0x5b258e){logger['info'](JSON['stringify'](_0x5b258e));});});},Migration[a1143_0x4a47df(0x137)][a1143_0x4a47df(0x12a)]=function(_0xd7f301,_0x4c27fa){const _0x1a9495=a1143_0x4a47df,_0x47fe55=this;this[_0x1a9495(0x131)][_0x1a9495(0x123)](function(){const _0x10bea8=_0x1a9495;return _0x47fe55[_0x10bea8(0x12f)][_0x10bea8(0x12a)](_0xd7f301,_0x4c27fa)['then'](function(){const _0x1dc19f=_0x10bea8;logger[_0x1dc19f(0x132)](_0x1dc19f(0x13a),_0x4c27fa,_0xd7f301);})[_0x10bea8(0x136)](function(_0x135160){const _0x1aa512=_0x10bea8;logger[_0x1aa512(0x132)](util['inspect'](_0x135160,{'showHidden':![],'depth':null}));});});},Migration['prototype']['renameColumn']=function(_0x2991d9,_0x52e4fc,_0x47ce6f){const _0x48dc00=a1143_0x4a47df,_0x3f3586=this;this['sequence'][_0x48dc00(0x123)](function(){const _0xf21bf=_0x48dc00;return _0x3f3586[_0xf21bf(0x12f)][_0xf21bf(0x127)](_0x2991d9,_0x52e4fc,_0x47ce6f)[_0xf21bf(0x125)](function(){const _0x26427c=_0xf21bf;logger[_0x26427c(0x132)](_0x26427c(0x13f),_0x52e4fc,_0x47ce6f,_0x2991d9);})[_0xf21bf(0x136)](function(_0x457508){logger['info'](util['inspect'](_0x457508,{'showHidden':![],'depth':null}));});});},Migration[a1143_0x4a47df(0x137)][a1143_0x4a47df(0x134)]=function(_0x2fc10b){const _0x1cd607=a1143_0x4a47df;this[_0x1cd607(0x131)]['enqueue'](function(){return _0x2fc10b();});},module[a1143_0x4a47df(0x133)]={'up':function(_0x488ef3){return new Promise(function(_0x422791){const _0x5bca9b=new Migration(_0x488ef3);_0x5bca9b['final'](_0x422791);});},'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 93e2999..8de673c 100644 --- a/server/migrations/2.3.91.js +++ b/server/migrations/2.3.91.js @@ -1 +1 @@ -const a982_0xddc8=['util','renameColumn','report_call','catch','info','Removed\x20column\x20%s\x20from\x20%s','finally','prototype','addIndex','sequelize','then','dropTable','inspect','query','sequence','changeColumn','table\x20dropped\x20%s','addColumn','sipcallid','tail','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','stringify','queryInterface','final','removeIndex\x20%s\x20%s','Added\x20column\x20%s\x20to\x20%s','removeIndex','query\x20%s','removeColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','exports','enqueue'];(function(_0x8e2d3f,_0xddc850){const _0x366747=function(_0x580c2a){while(--_0x580c2a){_0x8e2d3f['push'](_0x8e2d3f['shift']());}};_0x366747(++_0xddc850);}(a982_0xddc8,0x159));const a982_0x3667=function(_0x8e2d3f,_0xddc850){_0x8e2d3f=_0x8e2d3f-0x0;let _0x366747=a982_0xddc8[_0x8e2d3f];return _0x366747;};const _0x555f2a=a982_0x3667;'use strict';const util=require(_0x555f2a('0x7')),logger=require('../config/logger')('migration'),Sequence=function(){};Sequence[_0x555f2a('0xe')][_0x555f2a('0x6')]=function(_0x580c2a){const _0x386080=_0x555f2a;this[_0x386080('0x1a')]=this['tail']?this[_0x386080('0x1a')][_0x386080('0xd')](_0x580c2a):_0x580c2a();};const Migration=function(_0x7c999f){const _0x5b6c2c=_0x555f2a;this[_0x5b6c2c('0x1d')]=_0x7c999f,this[_0x5b6c2c('0x15')]=new Sequence();};Migration['prototype'][_0x555f2a('0x16')]=function(_0x343e23,_0x41010b,_0xada6d3){const _0x78fed3=_0x555f2a,_0x2efb8a=this;this['sequence'][_0x78fed3('0x6')](function(){const _0x29ed92=_0x78fed3;return _0x2efb8a[_0x29ed92('0x1d')][_0x29ed92('0x16')](_0x343e23,_0x41010b,_0xada6d3)[_0x29ed92('0x11')](function(){const _0x562c1a=_0x29ed92;logger[_0x562c1a('0xb')](_0x562c1a('0x4'),_0x41010b,_0x343e23);})[_0x29ed92('0xa')](function(_0x20211c){const _0x16330a=_0x29ed92;logger['info'](JSON[_0x16330a('0x1c')](_0x20211c));});});},Migration['prototype'][_0x555f2a('0x18')]=function(_0x1cfdf8,_0xbb1686,_0xa54060){const _0x3fe1a6=_0x555f2a,_0x399f77=this;this['sequence'][_0x3fe1a6('0x6')](function(){const _0x422f90=_0x3fe1a6;return _0x399f77['queryInterface'][_0x422f90('0x18')](_0x1cfdf8,_0xbb1686,_0xa54060)['then'](function(){const _0x17d536=_0x422f90;logger['info'](_0x17d536('0x0'),_0xbb1686,_0x1cfdf8);})['catch'](function(_0x5365fc){const _0x56d8e8=_0x422f90;logger[_0x56d8e8('0xb')](JSON[_0x56d8e8('0x1c')](_0x5365fc));});});},Migration['prototype']['dropTable']=function(_0x531735){const _0x554f74=_0x555f2a,_0xcc70ba=this;this[_0x554f74('0x15')][_0x554f74('0x6')](function(){const _0x477802=_0x554f74;return _0xcc70ba[_0x477802('0x1d')][_0x477802('0x12')](_0x531735,{'force':!![]})[_0x477802('0x11')](function(){const _0x2a79f2=_0x477802;logger[_0x2a79f2('0xb')](_0x2a79f2('0x17'),_0x531735);})['catch'](function(_0x1623bd){const _0x515be4=_0x477802;logger[_0x515be4('0xb')](JSON[_0x515be4('0x1c')](_0x1623bd));});});},Migration[_0x555f2a('0xe')][_0x555f2a('0xf')]=function(_0x1ef6ff,_0x238cdd,_0x302353){const _0x366447=_0x555f2a,_0x132e1c=this;this[_0x366447('0x15')][_0x366447('0x6')](function(){const _0x5635d1=_0x366447;return _0x132e1c[_0x5635d1('0x1d')][_0x5635d1('0xf')](_0x1ef6ff,_0x238cdd,{'indexName':_0x302353})[_0x5635d1('0x11')](function(){const _0x27860e=_0x5635d1;logger[_0x27860e('0xb')]('addIndex\x20%s\x20%s\x20%s',_0x1ef6ff,_0x238cdd['join'](','),_0x302353);})[_0x5635d1('0xa')](function(_0x563ab2){const _0x15ef45=_0x5635d1;logger[_0x15ef45('0xb')](JSON[_0x15ef45('0x1c')](_0x563ab2));});});},Migration[_0x555f2a('0xe')][_0x555f2a('0x1')]=function(_0x5358f3,_0x5ee569){const _0x3c451b=this;this['sequence']['enqueue'](function(){const _0x5753e0=a982_0x3667;return _0x3c451b[_0x5753e0('0x1d')]['removeIndex'](_0x5358f3,_0x5ee569)[_0x5753e0('0x11')](function(){const _0x5034b2=_0x5753e0;logger[_0x5034b2('0xb')](_0x5034b2('0x1f'),_0x5358f3,_0x5ee569);})[_0x5753e0('0xa')](function(_0x347af7){const _0x3bbf4f=_0x5753e0;logger[_0x3bbf4f('0xb')](JSON[_0x3bbf4f('0x1c')](_0x347af7));});});},Migration[_0x555f2a('0xe')][_0x555f2a('0x14')]=function(_0x367269){const _0x3767ef=_0x555f2a,_0x5e0cf9=this;this['sequence'][_0x3767ef('0x6')](function(){const _0x38f242=_0x3767ef;return _0x5e0cf9[_0x38f242('0x1d')][_0x38f242('0x10')][_0x38f242('0x14')](_0x367269)[_0x38f242('0x11')](function(){const _0x449fd7=_0x38f242;logger[_0x449fd7('0xb')](_0x449fd7('0x2'),_0x367269);})['catch'](function(_0x35148e){const _0xc3b27=_0x38f242;logger['info'](JSON[_0xc3b27('0x1c')](_0x35148e));});});},Migration[_0x555f2a('0xe')][_0x555f2a('0x3')]=function(_0x52f7ac,_0x1ac0cf){const _0x166e20=this;this['sequence']['enqueue'](function(){const _0x5ba340=a982_0x3667;return _0x166e20[_0x5ba340('0x1d')]['removeColumn'](_0x52f7ac,_0x1ac0cf)[_0x5ba340('0x11')](function(){const _0x3a4b36=_0x5ba340;logger[_0x3a4b36('0xb')](_0x3a4b36('0xc'),_0x1ac0cf,_0x52f7ac);})['catch'](function(_0x950f4c){const _0x5a5564=_0x5ba340;logger[_0x5a5564('0xb')](util[_0x5a5564('0x13')](_0x950f4c,{'showHidden':![],'depth':null}));});});},Migration[_0x555f2a('0xe')][_0x555f2a('0x8')]=function(_0x4b41e3,_0x17974d,_0x4bbdbc){const _0x14ff8a=_0x555f2a,_0x87daa1=this;this[_0x14ff8a('0x15')][_0x14ff8a('0x6')](function(){const _0x3df2b8=_0x14ff8a;return _0x87daa1[_0x3df2b8('0x1d')]['renameColumn'](_0x4b41e3,_0x17974d,_0x4bbdbc)[_0x3df2b8('0x11')](function(){const _0x1350c7=_0x3df2b8;logger['info'](_0x1350c7('0x1b'),_0x17974d,_0x4bbdbc,_0x4b41e3);})[_0x3df2b8('0xa')](function(_0x496da5){const _0x4a1928=_0x3df2b8;logger[_0x4a1928('0xb')](util['inspect'](_0x496da5,{'showHidden':![],'depth':null}));});});},Migration[_0x555f2a('0xe')][_0x555f2a('0x1e')]=function(_0x106d3a){const _0x555acd=_0x555f2a;this['sequence'][_0x555acd('0x6')](function(){return _0x106d3a();});},module[_0x555f2a('0x5')]={'up':function(_0x5a1405,_0x21e986){return new Promise(function(_0x2627ab){const _0x256675=a982_0x3667,_0xf54ebd=new Migration(_0x5a1405);_0xf54ebd[_0x256675('0x18')](_0x256675('0x9'),_0x256675('0x19'),{'type':_0x21e986['STRING']}),_0xf54ebd[_0x256675('0x1e')](_0x2627ab);});},'down':function(){}}; \ No newline at end of file +const a1144_0x41f8=['sequence','query\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','STRING','addIndex\x20%s\x20%s\x20%s','removeIndex','changeColumn','Added\x20column\x20%s\x20to\x20%s','stringify','exports','table\x20dropped\x20%s','enqueue','final','Changed\x20column\x20%s\x20in\x20table\x20%s','then','util','catch','prototype','queryInterface','finally','Removed\x20column\x20%s\x20from\x20%s','../config/logger','join','removeColumn','addIndex','removeIndex\x20%s\x20%s','info','tail','addColumn','sipcallid','query','migration','sequelize','dropTable','renameColumn','inspect'];(function(_0x4f8c3c,_0x565542){const _0x41f826=function(_0x1f506d){while(--_0x1f506d){_0x4f8c3c['push'](_0x4f8c3c['shift']());}};_0x41f826(++_0x565542);}(a1144_0x41f8,0xc5));const a1144_0x1f50=function(_0x4f8c3c,_0x565542){_0x4f8c3c=_0x4f8c3c-0x1cf;let _0x41f826=a1144_0x41f8[_0x4f8c3c];return _0x41f826;};const a1144_0x45d83b=a1144_0x1f50;'use strict';const util=require(a1144_0x45d83b(0x1f1)),logger=require(a1144_0x45d83b(0x1d3))(a1144_0x45d83b(0x1dd)),Sequence=function(){};Sequence['prototype'][a1144_0x45d83b(0x1ed)]=function(_0x33ab16){const _0x101056=a1144_0x45d83b;this[_0x101056(0x1d9)]=this[_0x101056(0x1d9)]?this[_0x101056(0x1d9)][_0x101056(0x1d1)](_0x33ab16):_0x33ab16();};const Migration=function(_0x52050e){const _0x4c7321=a1144_0x45d83b;this[_0x4c7321(0x1d0)]=_0x52050e,this[_0x4c7321(0x1e2)]=new Sequence();};Migration[a1144_0x45d83b(0x1cf)][a1144_0x45d83b(0x1e8)]=function(_0x320c91,_0x51c3ac,_0xf5f164){const _0x2c9ab4=a1144_0x45d83b,_0x4c6a0b=this;this[_0x2c9ab4(0x1e2)][_0x2c9ab4(0x1ed)](function(){const _0x1527e2=_0x2c9ab4;return _0x4c6a0b['queryInterface'][_0x1527e2(0x1e8)](_0x320c91,_0x51c3ac,_0xf5f164)['then'](function(){const _0x4c4547=_0x1527e2;logger[_0x4c4547(0x1d8)](_0x4c4547(0x1ef),_0x51c3ac,_0x320c91);})[_0x1527e2(0x1f2)](function(_0x5131c9){const _0x1e2c67=_0x1527e2;logger[_0x1e2c67(0x1d8)](JSON[_0x1e2c67(0x1ea)](_0x5131c9));});});},Migration[a1144_0x45d83b(0x1cf)][a1144_0x45d83b(0x1da)]=function(_0x334fdc,_0x7f5886,_0x4d73dc){const _0x254172=a1144_0x45d83b,_0x34d5ab=this;this[_0x254172(0x1e2)][_0x254172(0x1ed)](function(){const _0x18a163=_0x254172;return _0x34d5ab[_0x18a163(0x1d0)][_0x18a163(0x1da)](_0x334fdc,_0x7f5886,_0x4d73dc)[_0x18a163(0x1f0)](function(){const _0x3ac911=_0x18a163;logger[_0x3ac911(0x1d8)](_0x3ac911(0x1e9),_0x7f5886,_0x334fdc);})[_0x18a163(0x1f2)](function(_0x406d5c){const _0x23a9df=_0x18a163;logger['info'](JSON[_0x23a9df(0x1ea)](_0x406d5c));});});},Migration['prototype']['dropTable']=function(_0x5570c6){const _0x3e8184=a1144_0x45d83b,_0x252bbd=this;this[_0x3e8184(0x1e2)][_0x3e8184(0x1ed)](function(){const _0x3cc701=_0x3e8184;return _0x252bbd[_0x3cc701(0x1d0)][_0x3cc701(0x1df)](_0x5570c6,{'force':!![]})[_0x3cc701(0x1f0)](function(){const _0x11762f=_0x3cc701;logger['info'](_0x11762f(0x1ec),_0x5570c6);})[_0x3cc701(0x1f2)](function(_0xda4f95){const _0x5c7bcd=_0x3cc701;logger['info'](JSON[_0x5c7bcd(0x1ea)](_0xda4f95));});});},Migration[a1144_0x45d83b(0x1cf)][a1144_0x45d83b(0x1d6)]=function(_0x1009ee,_0x404189,_0x332cc2){const _0x402194=a1144_0x45d83b,_0x526c92=this;this[_0x402194(0x1e2)][_0x402194(0x1ed)](function(){const _0x4ecc68=_0x402194;return _0x526c92[_0x4ecc68(0x1d0)][_0x4ecc68(0x1d6)](_0x1009ee,_0x404189,{'indexName':_0x332cc2})[_0x4ecc68(0x1f0)](function(){const _0x496251=_0x4ecc68;logger[_0x496251(0x1d8)](_0x496251(0x1e6),_0x1009ee,_0x404189[_0x496251(0x1d4)](','),_0x332cc2);})[_0x4ecc68(0x1f2)](function(_0x9e79e2){const _0x4e7a64=_0x4ecc68;logger[_0x4e7a64(0x1d8)](JSON[_0x4e7a64(0x1ea)](_0x9e79e2));});});},Migration['prototype'][a1144_0x45d83b(0x1e7)]=function(_0x557af5,_0x2c9310){const _0xb1ac69=a1144_0x45d83b,_0x1fad89=this;this[_0xb1ac69(0x1e2)]['enqueue'](function(){const _0x2d24a0=_0xb1ac69;return _0x1fad89[_0x2d24a0(0x1d0)][_0x2d24a0(0x1e7)](_0x557af5,_0x2c9310)['then'](function(){const _0xc88705=_0x2d24a0;logger[_0xc88705(0x1d8)](_0xc88705(0x1d7),_0x557af5,_0x2c9310);})['catch'](function(_0x31ef04){const _0x5acf02=_0x2d24a0;logger[_0x5acf02(0x1d8)](JSON['stringify'](_0x31ef04));});});},Migration[a1144_0x45d83b(0x1cf)][a1144_0x45d83b(0x1dc)]=function(_0x391765){const _0x548dd6=a1144_0x45d83b,_0x42b906=this;this['sequence'][_0x548dd6(0x1ed)](function(){const _0x3e2dbb=_0x548dd6;return _0x42b906['queryInterface'][_0x3e2dbb(0x1de)][_0x3e2dbb(0x1dc)](_0x391765)['then'](function(){const _0x48395c=_0x3e2dbb;logger[_0x48395c(0x1d8)](_0x48395c(0x1e3),_0x391765);})[_0x3e2dbb(0x1f2)](function(_0x540f5a){const _0x496e69=_0x3e2dbb;logger[_0x496e69(0x1d8)](JSON['stringify'](_0x540f5a));});});},Migration[a1144_0x45d83b(0x1cf)][a1144_0x45d83b(0x1d5)]=function(_0x373af5,_0x15b2ce){const _0xd7f8b7=a1144_0x45d83b,_0x3f7b8b=this;this[_0xd7f8b7(0x1e2)][_0xd7f8b7(0x1ed)](function(){const _0x566182=_0xd7f8b7;return _0x3f7b8b[_0x566182(0x1d0)][_0x566182(0x1d5)](_0x373af5,_0x15b2ce)[_0x566182(0x1f0)](function(){const _0x596a80=_0x566182;logger['info'](_0x596a80(0x1d2),_0x15b2ce,_0x373af5);})[_0x566182(0x1f2)](function(_0x46c1ed){const _0x75ee89=_0x566182;logger[_0x75ee89(0x1d8)](util[_0x75ee89(0x1e1)](_0x46c1ed,{'showHidden':![],'depth':null}));});});},Migration[a1144_0x45d83b(0x1cf)][a1144_0x45d83b(0x1e0)]=function(_0x125c5a,_0x18dbee,_0x4b36b4){const _0x55baec=a1144_0x45d83b,_0x55829e=this;this[_0x55baec(0x1e2)]['enqueue'](function(){const _0x30042c=_0x55baec;return _0x55829e[_0x30042c(0x1d0)][_0x30042c(0x1e0)](_0x125c5a,_0x18dbee,_0x4b36b4)['then'](function(){const _0x3b0b17=_0x30042c;logger[_0x3b0b17(0x1d8)](_0x3b0b17(0x1e4),_0x18dbee,_0x4b36b4,_0x125c5a);})[_0x30042c(0x1f2)](function(_0x3839b0){const _0x1309aa=_0x30042c;logger[_0x1309aa(0x1d8)](util['inspect'](_0x3839b0,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1144_0x45d83b(0x1ee)]=function(_0x3e58c6){const _0x2a4066=a1144_0x45d83b;this[_0x2a4066(0x1e2)][_0x2a4066(0x1ed)](function(){return _0x3e58c6();});},module[a1144_0x45d83b(0x1eb)]={'up':function(_0x10f065,_0x46c503){return new Promise(function(_0x1aa18f){const _0x444700=a1144_0x1f50,_0x58a4e8=new Migration(_0x10f065);_0x58a4e8[_0x444700(0x1da)]('report_call',_0x444700(0x1db),{'type':_0x46c503[_0x444700(0x1e5)]}),_0x58a4e8[_0x444700(0x1ee)](_0x1aa18f);});},'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 faf0f2a..ac43ca7 100644 --- a/server/migrations/2.3.92.js +++ b/server/migrations/2.3.92.js @@ -1 +1 @@ -const a983_0x2051=['finally','addIndex\x20%s\x20%s\x20%s','query\x20%s','stringify','Added\x20column\x20%s\x20to\x20%s','renameColumn','inspect','changeColumn','tail','removeIndex\x20%s\x20%s','then','info','../config/logger','removeColumn','enqueue','sequence','addIndex','addColumn','util','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','sequelize','catch','query','queryInterface','Removed\x20column\x20%s\x20from\x20%s','prototype','removeIndex','migration','exports','table\x20dropped\x20%s','final'];(function(_0xa1801f,_0x2051e3){const _0x424702=function(_0x16ca43){while(--_0x16ca43){_0xa1801f['push'](_0xa1801f['shift']());}};_0x424702(++_0x2051e3);}(a983_0x2051,0x188));const a983_0x4247=function(_0xa1801f,_0x2051e3){_0xa1801f=_0xa1801f-0x0;let _0x424702=a983_0x2051[_0xa1801f];return _0x424702;};const _0x3949db=a983_0x4247;'use strict';const util=require(_0x3949db('0x1d')),logger=require(_0x3949db('0x17'))(_0x3949db('0x7')),Sequence=function(){};Sequence[_0x3949db('0x5')][_0x3949db('0x19')]=function(_0x16ca43){const _0x42f54c=_0x3949db;this[_0x42f54c('0x13')]=this[_0x42f54c('0x13')]?this[_0x42f54c('0x13')][_0x42f54c('0xb')](_0x16ca43):_0x16ca43();};const Migration=function(_0x33fe22){const _0x5dafdf=_0x3949db;this['queryInterface']=_0x33fe22,this[_0x5dafdf('0x1a')]=new Sequence();};Migration[_0x3949db('0x5')][_0x3949db('0x12')]=function(_0x520f77,_0x9e58d,_0x53e169){const _0xb5f1c2=_0x3949db,_0x33cd92=this;this[_0xb5f1c2('0x1a')][_0xb5f1c2('0x19')](function(){const _0x5eaa2a=_0xb5f1c2;return _0x33cd92[_0x5eaa2a('0x3')][_0x5eaa2a('0x12')](_0x520f77,_0x9e58d,_0x53e169)[_0x5eaa2a('0x15')](function(){const _0x17a17f=_0x5eaa2a;logger[_0x17a17f('0x16')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x9e58d,_0x520f77);})['catch'](function(_0xdb8e56){const _0x2d3102=_0x5eaa2a;logger[_0x2d3102('0x16')](JSON['stringify'](_0xdb8e56));});});},Migration['prototype'][_0x3949db('0x1c')]=function(_0x1d2d79,_0x43788d,_0x20d248){const _0x4598a5=_0x3949db,_0x17efbe=this;this[_0x4598a5('0x1a')]['enqueue'](function(){const _0x3e1409=_0x4598a5;return _0x17efbe[_0x3e1409('0x3')][_0x3e1409('0x1c')](_0x1d2d79,_0x43788d,_0x20d248)[_0x3e1409('0x15')](function(){const _0x108bcb=_0x3e1409;logger['info'](_0x108bcb('0xf'),_0x43788d,_0x1d2d79);})[_0x3e1409('0x1')](function(_0x239664){const _0x37dcb1=_0x3e1409;logger[_0x37dcb1('0x16')](JSON[_0x37dcb1('0xe')](_0x239664));});});},Migration['prototype']['dropTable']=function(_0x5db891){const _0x2b4204=_0x3949db,_0x41236c=this;this[_0x2b4204('0x1a')]['enqueue'](function(){const _0x4dd2a6=_0x2b4204;return _0x41236c['queryInterface']['dropTable'](_0x5db891,{'force':!![]})[_0x4dd2a6('0x15')](function(){const _0x490981=_0x4dd2a6;logger['info'](_0x490981('0x9'),_0x5db891);})[_0x4dd2a6('0x1')](function(_0x18e5db){const _0x4e3995=_0x4dd2a6;logger[_0x4e3995('0x16')](JSON['stringify'](_0x18e5db));});});},Migration[_0x3949db('0x5')]['addIndex']=function(_0x201fac,_0x268c77,_0xeac633){const _0x36fc23=_0x3949db,_0x54d841=this;this[_0x36fc23('0x1a')][_0x36fc23('0x19')](function(){const _0x44c097=_0x36fc23;return _0x54d841['queryInterface'][_0x44c097('0x1b')](_0x201fac,_0x268c77,{'indexName':_0xeac633})[_0x44c097('0x15')](function(){const _0xefe1f1=_0x44c097;logger['info'](_0xefe1f1('0xc'),_0x201fac,_0x268c77['join'](','),_0xeac633);})[_0x44c097('0x1')](function(_0x4ce733){const _0x3dd7f5=_0x44c097;logger[_0x3dd7f5('0x16')](JSON[_0x3dd7f5('0xe')](_0x4ce733));});});},Migration['prototype'][_0x3949db('0x6')]=function(_0x510671,_0x22083c){const _0x269ec1=_0x3949db,_0x174886=this;this[_0x269ec1('0x1a')]['enqueue'](function(){const _0x5df232=_0x269ec1;return _0x174886[_0x5df232('0x3')][_0x5df232('0x6')](_0x510671,_0x22083c)[_0x5df232('0x15')](function(){const _0x1924cc=_0x5df232;logger['info'](_0x1924cc('0x14'),_0x510671,_0x22083c);})[_0x5df232('0x1')](function(_0x1b458b){const _0x39c960=_0x5df232;logger[_0x39c960('0x16')](JSON[_0x39c960('0xe')](_0x1b458b));});});},Migration[_0x3949db('0x5')][_0x3949db('0x2')]=function(_0x5bfeb5){const _0x5cef08=_0x3949db,_0x4be601=this;this[_0x5cef08('0x1a')][_0x5cef08('0x19')](function(){const _0x4eb9c3=_0x5cef08;return _0x4be601[_0x4eb9c3('0x3')][_0x4eb9c3('0x0')]['query'](_0x5bfeb5)[_0x4eb9c3('0x15')](function(){const _0x17f6f0=_0x4eb9c3;logger[_0x17f6f0('0x16')](_0x17f6f0('0xd'),_0x5bfeb5);})[_0x4eb9c3('0x1')](function(_0x90e398){const _0xf3262c=_0x4eb9c3;logger[_0xf3262c('0x16')](JSON[_0xf3262c('0xe')](_0x90e398));});});},Migration[_0x3949db('0x5')][_0x3949db('0x18')]=function(_0x2a49df,_0x5d24bf){const _0x59a1bc=_0x3949db,_0x5176b7=this;this[_0x59a1bc('0x1a')][_0x59a1bc('0x19')](function(){const _0x595c11=_0x59a1bc;return _0x5176b7[_0x595c11('0x3')][_0x595c11('0x18')](_0x2a49df,_0x5d24bf)[_0x595c11('0x15')](function(){const _0x25ba87=_0x595c11;logger[_0x25ba87('0x16')](_0x25ba87('0x4'),_0x5d24bf,_0x2a49df);})[_0x595c11('0x1')](function(_0x37bedb){const _0x764cc7=_0x595c11;logger[_0x764cc7('0x16')](util[_0x764cc7('0x11')](_0x37bedb,{'showHidden':![],'depth':null}));});});},Migration[_0x3949db('0x5')][_0x3949db('0x10')]=function(_0xbf8c5f,_0xcca13,_0x1f4eb3){const _0x34f04d=_0x3949db,_0x12fa2a=this;this['sequence'][_0x34f04d('0x19')](function(){const _0x3365ff=_0x34f04d;return _0x12fa2a['queryInterface'][_0x3365ff('0x10')](_0xbf8c5f,_0xcca13,_0x1f4eb3)['then'](function(){const _0x12a56b=_0x3365ff;logger[_0x12a56b('0x16')](_0x12a56b('0x1e'),_0xcca13,_0x1f4eb3,_0xbf8c5f);})[_0x3365ff('0x1')](function(_0x25a6ed){const _0x53ff5a=_0x3365ff;logger['info'](util[_0x53ff5a('0x11')](_0x25a6ed,{'showHidden':![],'depth':null}));});});},Migration[_0x3949db('0x5')][_0x3949db('0xa')]=function(_0x5000c9){const _0x561b32=_0x3949db;this[_0x561b32('0x1a')]['enqueue'](function(){return _0x5000c9();});},module[_0x3949db('0x8')]={'up':function(_0x47986b){return new Promise(function(_0x2e93ce){const _0x28d9c0=a983_0x4247,_0x231be7=new Migration(_0x47986b);_0x231be7[_0x28d9c0('0xa')](_0x2e93ce);});},'down':function(){}}; \ No newline at end of file +const a1145_0x2e8b=['info','changeColumn','table\x20dropped\x20%s','dropTable','enqueue','stringify','renameColumn','../config/logger','exports','Added\x20column\x20%s\x20to\x20%s','final','query','inspect','sequelize','sequence','addColumn','removeColumn','tail','queryInterface','catch','removeIndex','then','prototype','Removed\x20column\x20%s\x20from\x20%s'];(function(_0xdadf8b,_0x1f8d1e){const _0x2e8b30=function(_0x5845cb){while(--_0x5845cb){_0xdadf8b['push'](_0xdadf8b['shift']());}};_0x2e8b30(++_0x1f8d1e);}(a1145_0x2e8b,0x19b));const a1145_0x5845=function(_0xdadf8b,_0x1f8d1e){_0xdadf8b=_0xdadf8b-0x169;let _0x2e8b30=a1145_0x2e8b[_0xdadf8b];return _0x2e8b30;};const a1145_0x5cd8c7=a1145_0x5845;'use strict';const util=require('util'),logger=require(a1145_0x5cd8c7(0x16d))('migration'),Sequence=function(){};Sequence[a1145_0x5cd8c7(0x17c)][a1145_0x5cd8c7(0x16a)]=function(_0x290600){const _0x3e551a=a1145_0x5cd8c7;this[_0x3e551a(0x177)]=this[_0x3e551a(0x177)]?this['tail']['finally'](_0x290600):_0x290600();};const Migration=function(_0x2e8277){const _0x2c8e13=a1145_0x5cd8c7;this['queryInterface']=_0x2e8277,this[_0x2c8e13(0x174)]=new Sequence();};Migration['prototype'][a1145_0x5cd8c7(0x17f)]=function(_0x2523bb,_0x18393d,_0x321301){const _0x328244=a1145_0x5cd8c7,_0x51f907=this;this[_0x328244(0x174)][_0x328244(0x16a)](function(){const _0x409f0b=_0x328244;return _0x51f907[_0x409f0b(0x178)][_0x409f0b(0x17f)](_0x2523bb,_0x18393d,_0x321301)[_0x409f0b(0x17b)](function(){logger['info']('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x18393d,_0x2523bb);})[_0x409f0b(0x179)](function(_0x38f7dc){const _0x3262c1=_0x409f0b;logger[_0x3262c1(0x17e)](JSON['stringify'](_0x38f7dc));});});},Migration[a1145_0x5cd8c7(0x17c)][a1145_0x5cd8c7(0x175)]=function(_0x5c9fb,_0x3ebd03,_0x3b966e){const _0x4ca000=a1145_0x5cd8c7,_0x179162=this;this[_0x4ca000(0x174)][_0x4ca000(0x16a)](function(){const _0x458cd5=_0x4ca000;return _0x179162[_0x458cd5(0x178)]['addColumn'](_0x5c9fb,_0x3ebd03,_0x3b966e)['then'](function(){const _0x48d421=_0x458cd5;logger['info'](_0x48d421(0x16f),_0x3ebd03,_0x5c9fb);})[_0x458cd5(0x179)](function(_0x586c22){const _0x263db5=_0x458cd5;logger[_0x263db5(0x17e)](JSON['stringify'](_0x586c22));});});},Migration[a1145_0x5cd8c7(0x17c)][a1145_0x5cd8c7(0x169)]=function(_0x3febf1){const _0x45c089=a1145_0x5cd8c7,_0x13b7bf=this;this[_0x45c089(0x174)][_0x45c089(0x16a)](function(){const _0x43e1d8=_0x45c089;return _0x13b7bf['queryInterface']['dropTable'](_0x3febf1,{'force':!![]})[_0x43e1d8(0x17b)](function(){const _0xbb2987=_0x43e1d8;logger[_0xbb2987(0x17e)](_0xbb2987(0x180),_0x3febf1);})[_0x43e1d8(0x179)](function(_0x4969a2){const _0x57d48b=_0x43e1d8;logger[_0x57d48b(0x17e)](JSON['stringify'](_0x4969a2));});});},Migration[a1145_0x5cd8c7(0x17c)]['addIndex']=function(_0x1a89da,_0x148c20,_0x40d38c){const _0x1bcc2f=a1145_0x5cd8c7,_0x154502=this;this[_0x1bcc2f(0x174)]['enqueue'](function(){const _0x2c3a04=_0x1bcc2f;return _0x154502['queryInterface']['addIndex'](_0x1a89da,_0x148c20,{'indexName':_0x40d38c})[_0x2c3a04(0x17b)](function(){logger['info']('addIndex\x20%s\x20%s\x20%s',_0x1a89da,_0x148c20['join'](','),_0x40d38c);})[_0x2c3a04(0x179)](function(_0x58888a){logger['info'](JSON['stringify'](_0x58888a));});});},Migration[a1145_0x5cd8c7(0x17c)][a1145_0x5cd8c7(0x17a)]=function(_0x51fafd,_0x28ad18){const _0x46dc2f=a1145_0x5cd8c7,_0x4e6a8d=this;this[_0x46dc2f(0x174)][_0x46dc2f(0x16a)](function(){const _0x43f6a1=_0x46dc2f;return _0x4e6a8d[_0x43f6a1(0x178)][_0x43f6a1(0x17a)](_0x51fafd,_0x28ad18)[_0x43f6a1(0x17b)](function(){const _0x1c3fd8=_0x43f6a1;logger[_0x1c3fd8(0x17e)]('removeIndex\x20%s\x20%s',_0x51fafd,_0x28ad18);})[_0x43f6a1(0x179)](function(_0x303eb5){const _0x5d11e7=_0x43f6a1;logger[_0x5d11e7(0x17e)](JSON[_0x5d11e7(0x16b)](_0x303eb5));});});},Migration[a1145_0x5cd8c7(0x17c)]['query']=function(_0x537bd0){const _0x461a00=a1145_0x5cd8c7,_0x143847=this;this['sequence'][_0x461a00(0x16a)](function(){const _0x569efc=_0x461a00;return _0x143847[_0x569efc(0x178)][_0x569efc(0x173)][_0x569efc(0x171)](_0x537bd0)['then'](function(){const _0x3f3b5d=_0x569efc;logger[_0x3f3b5d(0x17e)]('query\x20%s',_0x537bd0);})['catch'](function(_0x321183){const _0x45949e=_0x569efc;logger['info'](JSON[_0x45949e(0x16b)](_0x321183));});});},Migration[a1145_0x5cd8c7(0x17c)]['removeColumn']=function(_0x420312,_0x2d4bd3){const _0x1ad807=a1145_0x5cd8c7,_0x69410e=this;this[_0x1ad807(0x174)][_0x1ad807(0x16a)](function(){const _0x48b461=_0x1ad807;return _0x69410e[_0x48b461(0x178)][_0x48b461(0x176)](_0x420312,_0x2d4bd3)[_0x48b461(0x17b)](function(){const _0x468521=_0x48b461;logger[_0x468521(0x17e)](_0x468521(0x17d),_0x2d4bd3,_0x420312);})[_0x48b461(0x179)](function(_0x57271b){const _0x25bacf=_0x48b461;logger[_0x25bacf(0x17e)](util[_0x25bacf(0x172)](_0x57271b,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1145_0x5cd8c7(0x16c)]=function(_0x23583b,_0x5d8def,_0x410955){const _0x150a6d=a1145_0x5cd8c7,_0x348cd2=this;this[_0x150a6d(0x174)][_0x150a6d(0x16a)](function(){const _0x45d7cc=_0x150a6d;return _0x348cd2['queryInterface'][_0x45d7cc(0x16c)](_0x23583b,_0x5d8def,_0x410955)[_0x45d7cc(0x17b)](function(){const _0x50d339=_0x45d7cc;logger[_0x50d339(0x17e)]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x5d8def,_0x410955,_0x23583b);})[_0x45d7cc(0x179)](function(_0xcf38a9){const _0x5acaf9=_0x45d7cc;logger[_0x5acaf9(0x17e)](util['inspect'](_0xcf38a9,{'showHidden':![],'depth':null}));});});},Migration[a1145_0x5cd8c7(0x17c)][a1145_0x5cd8c7(0x170)]=function(_0x78426a){const _0x9c530e=a1145_0x5cd8c7;this[_0x9c530e(0x174)]['enqueue'](function(){return _0x78426a();});},module[a1145_0x5cd8c7(0x16e)]={'up':function(_0x471947){return new Promise(function(_0xc157bc){const _0x4224e6=a1145_0x5845,_0x222561=new Migration(_0x471947);_0x222561[_0x4224e6(0x170)](_0xc157bc);});},'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 73eaf71..17ef71f 100644 --- a/server/migrations/2.3.93.js +++ b/server/migrations/2.3.93.js @@ -1 +1 @@ -const a984_0x3653=['util','removeIndex\x20%s\x20%s','addColumn','table\x20dropped\x20%s','stringify','removeIndex','Added\x20column\x20%s\x20to\x20%s','join','Changed\x20column\x20%s\x20in\x20table\x20%s','queryInterface','tail','final','info','inspect','addIndex','renameColumn','finally','catch','query','then','Removed\x20column\x20%s\x20from\x20%s','exports','../config/logger','sequence','dropTable','query\x20%s','changeColumn','removeColumn','prototype','sequelize','enqueue'];(function(_0x7069a,_0x3653a2){const _0x146dbf=function(_0x138297){while(--_0x138297){_0x7069a['push'](_0x7069a['shift']());}};_0x146dbf(++_0x3653a2);}(a984_0x3653,0x17e));const a984_0x146d=function(_0x7069a,_0x3653a2){_0x7069a=_0x7069a-0x0;let _0x146dbf=a984_0x3653[_0x7069a];return _0x146dbf;};const _0x203452=a984_0x146d;'use strict';const util=require(_0x203452('0x15')),logger=require(_0x203452('0xc'))('migration'),Sequence=function(){};Sequence[_0x203452('0x12')][_0x203452('0x14')]=function(_0x138297){const _0x18731a=_0x203452;this['tail']=this[_0x18731a('0x0')]?this[_0x18731a('0x0')][_0x18731a('0x6')](_0x138297):_0x138297();};const Migration=function(_0x59177f){const _0x5edb2c=_0x203452;this[_0x5edb2c('0x1e')]=_0x59177f,this[_0x5edb2c('0xd')]=new Sequence();};Migration[_0x203452('0x12')][_0x203452('0x10')]=function(_0x270a1e,_0x1c840b,_0x1d6673){const _0xb5d7f0=_0x203452,_0x4ae080=this;this[_0xb5d7f0('0xd')][_0xb5d7f0('0x14')](function(){const _0x1856ef=_0xb5d7f0;return _0x4ae080[_0x1856ef('0x1e')][_0x1856ef('0x10')](_0x270a1e,_0x1c840b,_0x1d6673)[_0x1856ef('0x9')](function(){const _0x265d4d=_0x1856ef;logger['info'](_0x265d4d('0x1d'),_0x1c840b,_0x270a1e);})[_0x1856ef('0x7')](function(_0x4e872a){const _0x3ba87f=_0x1856ef;logger[_0x3ba87f('0x2')](JSON['stringify'](_0x4e872a));});});},Migration[_0x203452('0x12')]['addColumn']=function(_0xff7f32,_0x583679,_0x5bc5b8){const _0x1ac1cb=_0x203452,_0xccc927=this;this[_0x1ac1cb('0xd')][_0x1ac1cb('0x14')](function(){const _0x113bd3=_0x1ac1cb;return _0xccc927['queryInterface'][_0x113bd3('0x17')](_0xff7f32,_0x583679,_0x5bc5b8)[_0x113bd3('0x9')](function(){const _0x5a7f86=_0x113bd3;logger[_0x5a7f86('0x2')](_0x5a7f86('0x1b'),_0x583679,_0xff7f32);})[_0x113bd3('0x7')](function(_0x20101e){const _0x2d9f7b=_0x113bd3;logger[_0x2d9f7b('0x2')](JSON[_0x2d9f7b('0x19')](_0x20101e));});});},Migration['prototype'][_0x203452('0xe')]=function(_0x2d1a9d){const _0x3a091c=_0x203452,_0x53bbcd=this;this[_0x3a091c('0xd')][_0x3a091c('0x14')](function(){const _0x45c019=_0x3a091c;return _0x53bbcd[_0x45c019('0x1e')]['dropTable'](_0x2d1a9d,{'force':!![]})[_0x45c019('0x9')](function(){const _0x4b8b40=_0x45c019;logger[_0x4b8b40('0x2')](_0x4b8b40('0x18'),_0x2d1a9d);})['catch'](function(_0x318484){const _0x12a9ca=_0x45c019;logger[_0x12a9ca('0x2')](JSON[_0x12a9ca('0x19')](_0x318484));});});},Migration[_0x203452('0x12')]['addIndex']=function(_0x4bc3da,_0x16b9b4,_0x53db15){const _0x1d84ff=_0x203452,_0x2678ae=this;this['sequence'][_0x1d84ff('0x14')](function(){const _0x31f311=_0x1d84ff;return _0x2678ae[_0x31f311('0x1e')][_0x31f311('0x4')](_0x4bc3da,_0x16b9b4,{'indexName':_0x53db15})[_0x31f311('0x9')](function(){const _0x2f3c46=_0x31f311;logger[_0x2f3c46('0x2')]('addIndex\x20%s\x20%s\x20%s',_0x4bc3da,_0x16b9b4[_0x2f3c46('0x1c')](','),_0x53db15);})[_0x31f311('0x7')](function(_0x3fec1a){const _0x53d668=_0x31f311;logger['info'](JSON[_0x53d668('0x19')](_0x3fec1a));});});},Migration['prototype'][_0x203452('0x1a')]=function(_0x393bca,_0x45772d){const _0x5e779e=_0x203452,_0x4ca842=this;this[_0x5e779e('0xd')][_0x5e779e('0x14')](function(){const _0x1deabf=_0x5e779e;return _0x4ca842[_0x1deabf('0x1e')][_0x1deabf('0x1a')](_0x393bca,_0x45772d)[_0x1deabf('0x9')](function(){const _0xda1a2a=_0x1deabf;logger[_0xda1a2a('0x2')](_0xda1a2a('0x16'),_0x393bca,_0x45772d);})['catch'](function(_0x534c8d){const _0x16b559=_0x1deabf;logger[_0x16b559('0x2')](JSON[_0x16b559('0x19')](_0x534c8d));});});},Migration[_0x203452('0x12')]['query']=function(_0x283dd2){const _0xed0a3a=this;this['sequence']['enqueue'](function(){const _0x38a2e3=a984_0x146d;return _0xed0a3a[_0x38a2e3('0x1e')][_0x38a2e3('0x13')][_0x38a2e3('0x8')](_0x283dd2)[_0x38a2e3('0x9')](function(){const _0x361cb0=_0x38a2e3;logger[_0x361cb0('0x2')](_0x361cb0('0xf'),_0x283dd2);})[_0x38a2e3('0x7')](function(_0x5c88d5){const _0x108025=_0x38a2e3;logger[_0x108025('0x2')](JSON['stringify'](_0x5c88d5));});});},Migration['prototype']['removeColumn']=function(_0x2a23cb,_0x377f1f){const _0x47eb2f=_0x203452,_0x288912=this;this[_0x47eb2f('0xd')]['enqueue'](function(){const _0x51ce16=_0x47eb2f;return _0x288912['queryInterface'][_0x51ce16('0x11')](_0x2a23cb,_0x377f1f)[_0x51ce16('0x9')](function(){const _0x3905b0=_0x51ce16;logger[_0x3905b0('0x2')](_0x3905b0('0xa'),_0x377f1f,_0x2a23cb);})[_0x51ce16('0x7')](function(_0x370eab){const _0x1d2620=_0x51ce16;logger['info'](util[_0x1d2620('0x3')](_0x370eab,{'showHidden':![],'depth':null}));});});},Migration['prototype']['renameColumn']=function(_0x57192c,_0x1d904c,_0x485c7a){const _0x282a33=_0x203452,_0x4a3636=this;this['sequence'][_0x282a33('0x14')](function(){const _0x3aa856=_0x282a33;return _0x4a3636[_0x3aa856('0x1e')][_0x3aa856('0x5')](_0x57192c,_0x1d904c,_0x485c7a)[_0x3aa856('0x9')](function(){const _0x1fe376=_0x3aa856;logger[_0x1fe376('0x2')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x1d904c,_0x485c7a,_0x57192c);})[_0x3aa856('0x7')](function(_0x390696){const _0x2c81af=_0x3aa856;logger[_0x2c81af('0x2')](util[_0x2c81af('0x3')](_0x390696,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x203452('0x1')]=function(_0x238aae){const _0x561868=_0x203452;this['sequence'][_0x561868('0x14')](function(){return _0x238aae();});},module[_0x203452('0xb')]={'up':function(_0x550fca){return new Promise(function(_0x1f8364){const _0x4a9f1d=a984_0x146d,_0xd64682=new Migration(_0x550fca);_0xd64682[_0x4a9f1d('0x1')](_0x1f8364);});},'down':function(){}}; \ No newline at end of file +const a1146_0x221b=['addIndex','queryInterface','sequence','query\x20%s','info','removeColumn','renameColumn','changeColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','then','final','finally','stringify','query','inspect','prototype','addColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','enqueue','table\x20dropped\x20%s','tail','util','dropTable','catch','migration','join','addIndex\x20%s\x20%s\x20%s','Added\x20column\x20%s\x20to\x20%s','exports'];(function(_0x2c3074,_0x244277){const _0x221b12=function(_0x5e473e){while(--_0x5e473e){_0x2c3074['push'](_0x2c3074['shift']());}};_0x221b12(++_0x244277);}(a1146_0x221b,0x1bb));const a1146_0x5e47=function(_0x2c3074,_0x244277){_0x2c3074=_0x2c3074-0x17a;let _0x221b12=a1146_0x221b[_0x2c3074];return _0x221b12;};const a1146_0x368075=a1146_0x5e47;'use strict';const util=require(a1146_0x368075(0x187)),logger=require('../config/logger')(a1146_0x368075(0x18a)),Sequence=function(){};Sequence['prototype'][a1146_0x368075(0x184)]=function(_0x13334b){const _0x5692cc=a1146_0x368075;this[_0x5692cc(0x186)]=this[_0x5692cc(0x186)]?this['tail'][_0x5692cc(0x17d)](_0x13334b):_0x13334b();};const Migration=function(_0x37d2e4){const _0x312c8c=a1146_0x368075;this['queryInterface']=_0x37d2e4,this[_0x312c8c(0x191)]=new Sequence();};Migration[a1146_0x368075(0x181)][a1146_0x368075(0x196)]=function(_0x3bfcfd,_0x5cbc0c,_0x139b39){const _0x332cf7=a1146_0x368075,_0x456621=this;this[_0x332cf7(0x191)][_0x332cf7(0x184)](function(){const _0x58d0b2=_0x332cf7;return _0x456621[_0x58d0b2(0x190)][_0x58d0b2(0x196)](_0x3bfcfd,_0x5cbc0c,_0x139b39)['then'](function(){const _0x10d009=_0x58d0b2;logger[_0x10d009(0x193)](_0x10d009(0x17a),_0x5cbc0c,_0x3bfcfd);})[_0x58d0b2(0x189)](function(_0x2ed3a3){logger['info'](JSON['stringify'](_0x2ed3a3));});});},Migration['prototype']['addColumn']=function(_0x5c8842,_0x236c17,_0x5eca8d){const _0xd72874=a1146_0x368075,_0x28e821=this;this[_0xd72874(0x191)][_0xd72874(0x184)](function(){const _0x4cdf25=_0xd72874;return _0x28e821[_0x4cdf25(0x190)][_0x4cdf25(0x182)](_0x5c8842,_0x236c17,_0x5eca8d)['then'](function(){const _0x5b01f9=_0x4cdf25;logger['info'](_0x5b01f9(0x18d),_0x236c17,_0x5c8842);})[_0x4cdf25(0x189)](function(_0x233e1d){const _0x5900ed=_0x4cdf25;logger[_0x5900ed(0x193)](JSON['stringify'](_0x233e1d));});});},Migration['prototype'][a1146_0x368075(0x188)]=function(_0x20ea64){const _0x4587e5=a1146_0x368075,_0xfc1d15=this;this[_0x4587e5(0x191)][_0x4587e5(0x184)](function(){const _0x26036c=_0x4587e5;return _0xfc1d15[_0x26036c(0x190)]['dropTable'](_0x20ea64,{'force':!![]})[_0x26036c(0x17b)](function(){const _0x2dfce2=_0x26036c;logger['info'](_0x2dfce2(0x185),_0x20ea64);})[_0x26036c(0x189)](function(_0x27bf1d){logger['info'](JSON['stringify'](_0x27bf1d));});});},Migration[a1146_0x368075(0x181)][a1146_0x368075(0x18f)]=function(_0x266de8,_0x1958c7,_0x46caf7){const _0x429c34=a1146_0x368075,_0xee89cc=this;this[_0x429c34(0x191)][_0x429c34(0x184)](function(){const _0x350477=_0x429c34;return _0xee89cc[_0x350477(0x190)][_0x350477(0x18f)](_0x266de8,_0x1958c7,{'indexName':_0x46caf7})[_0x350477(0x17b)](function(){const _0x5cd6ba=_0x350477;logger[_0x5cd6ba(0x193)](_0x5cd6ba(0x18c),_0x266de8,_0x1958c7[_0x5cd6ba(0x18b)](','),_0x46caf7);})[_0x350477(0x189)](function(_0x5a3904){const _0x4e2659=_0x350477;logger[_0x4e2659(0x193)](JSON['stringify'](_0x5a3904));});});},Migration['prototype']['removeIndex']=function(_0x4e8615,_0x538f6c){const _0x2c9b14=a1146_0x368075,_0x302f2f=this;this[_0x2c9b14(0x191)][_0x2c9b14(0x184)](function(){const _0x2f0f8b=_0x2c9b14;return _0x302f2f[_0x2f0f8b(0x190)]['removeIndex'](_0x4e8615,_0x538f6c)[_0x2f0f8b(0x17b)](function(){const _0x2eaa43=_0x2f0f8b;logger[_0x2eaa43(0x193)]('removeIndex\x20%s\x20%s',_0x4e8615,_0x538f6c);})['catch'](function(_0x3b85e6){const _0x11b97a=_0x2f0f8b;logger[_0x11b97a(0x193)](JSON[_0x11b97a(0x17e)](_0x3b85e6));});});},Migration['prototype'][a1146_0x368075(0x17f)]=function(_0x4c6209){const _0x12d183=a1146_0x368075,_0x3bf1cc=this;this[_0x12d183(0x191)][_0x12d183(0x184)](function(){const _0x22fb70=_0x12d183;return _0x3bf1cc['queryInterface']['sequelize'][_0x22fb70(0x17f)](_0x4c6209)[_0x22fb70(0x17b)](function(){const _0x49d515=_0x22fb70;logger[_0x49d515(0x193)](_0x49d515(0x192),_0x4c6209);})['catch'](function(_0x176dbb){const _0x161d1e=_0x22fb70;logger[_0x161d1e(0x193)](JSON[_0x161d1e(0x17e)](_0x176dbb));});});},Migration['prototype'][a1146_0x368075(0x194)]=function(_0x2ef187,_0x2244a7){const _0x270c73=a1146_0x368075,_0x28f039=this;this[_0x270c73(0x191)][_0x270c73(0x184)](function(){const _0x126125=_0x270c73;return _0x28f039[_0x126125(0x190)][_0x126125(0x194)](_0x2ef187,_0x2244a7)['then'](function(){const _0x5b92e8=_0x126125;logger[_0x5b92e8(0x193)]('Removed\x20column\x20%s\x20from\x20%s',_0x2244a7,_0x2ef187);})[_0x126125(0x189)](function(_0x794134){const _0x1a6a17=_0x126125;logger[_0x1a6a17(0x193)](util[_0x1a6a17(0x180)](_0x794134,{'showHidden':![],'depth':null}));});});},Migration[a1146_0x368075(0x181)]['renameColumn']=function(_0x3095a4,_0x6d34de,_0x80a1ca){const _0x5bdc43=a1146_0x368075,_0xa18fa7=this;this[_0x5bdc43(0x191)]['enqueue'](function(){const _0x2fee5a=_0x5bdc43;return _0xa18fa7[_0x2fee5a(0x190)][_0x2fee5a(0x195)](_0x3095a4,_0x6d34de,_0x80a1ca)[_0x2fee5a(0x17b)](function(){const _0x11ba08=_0x2fee5a;logger[_0x11ba08(0x193)](_0x11ba08(0x183),_0x6d34de,_0x80a1ca,_0x3095a4);})[_0x2fee5a(0x189)](function(_0x2f47f5){const _0x373d15=_0x2fee5a;logger[_0x373d15(0x193)](util['inspect'](_0x2f47f5,{'showHidden':![],'depth':null}));});});},Migration[a1146_0x368075(0x181)][a1146_0x368075(0x17c)]=function(_0x53e613){const _0x27c56e=a1146_0x368075;this[_0x27c56e(0x191)]['enqueue'](function(){return _0x53e613();});},module[a1146_0x368075(0x18e)]={'up':function(_0xfbd9cd){return new Promise(function(_0x55bd04){const _0x300e1d=a1146_0x5e47,_0xe1130d=new Migration(_0xfbd9cd);_0xe1130d[_0x300e1d(0x17c)](_0x55bd04);});},'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 91b3f8e..f9f6053 100644 --- a/server/migrations/2.3.94.js +++ b/server/migrations/2.3.94.js @@ -1 +1 @@ -const a985_0xb534=['migration','finally','Removed\x20column\x20%s\x20from\x20%s','catch','inspect','queryInterface','join','../config/logger','dropTable','enqueue','removeIndex','info','then','addIndex\x20%s\x20%s\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','query','stringify','table\x20dropped\x20%s','addIndex','tail','Added\x20column\x20%s\x20to\x20%s','final','exports','removeColumn','renameColumn','prototype','sequence','changeColumn','removeIndex\x20%s\x20%s','addColumn'];(function(_0x531620,_0xb53407){const _0x33ad0a=function(_0x427af5){while(--_0x427af5){_0x531620['push'](_0x531620['shift']());}};_0x33ad0a(++_0xb53407);}(a985_0xb534,0xbd));const a985_0x33ad=function(_0x531620,_0xb53407){_0x531620=_0x531620-0x0;let _0x33ad0a=a985_0xb534[_0x531620];return _0x33ad0a;};const _0x28e623=a985_0x33ad;'use strict';const util=require('util'),logger=require(_0x28e623('0x1c'))(_0x28e623('0x15')),Sequence=function(){};Sequence[_0x28e623('0x10')][_0x28e623('0x0')]=function(_0x427af5){const _0x226b5d=_0x28e623;this[_0x226b5d('0xa')]=this[_0x226b5d('0xa')]?this[_0x226b5d('0xa')][_0x226b5d('0x16')](_0x427af5):_0x427af5();};const Migration=function(_0x19d99a){const _0x19a57c=_0x28e623;this['queryInterface']=_0x19d99a,this[_0x19a57c('0x11')]=new Sequence();};Migration[_0x28e623('0x10')][_0x28e623('0x12')]=function(_0x170756,_0x5d0d2f,_0x1cf205){const _0x26c346=_0x28e623,_0x4f4d07=this;this[_0x26c346('0x11')][_0x26c346('0x0')](function(){const _0x190ede=_0x26c346;return _0x4f4d07['queryInterface']['changeColumn'](_0x170756,_0x5d0d2f,_0x1cf205)[_0x190ede('0x3')](function(){const _0x3dbaea=_0x190ede;logger[_0x3dbaea('0x2')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x5d0d2f,_0x170756);})[_0x190ede('0x18')](function(_0x276655){const _0x257446=_0x190ede;logger[_0x257446('0x2')](JSON[_0x257446('0x7')](_0x276655));});});},Migration['prototype']['addColumn']=function(_0x106889,_0x25f3b8,_0x4ca48a){const _0x5c6915=_0x28e623,_0x3e5603=this;this[_0x5c6915('0x11')][_0x5c6915('0x0')](function(){const _0x2885a8=_0x5c6915;return _0x3e5603[_0x2885a8('0x1a')][_0x2885a8('0x14')](_0x106889,_0x25f3b8,_0x4ca48a)[_0x2885a8('0x3')](function(){const _0x378477=_0x2885a8;logger[_0x378477('0x2')](_0x378477('0xb'),_0x25f3b8,_0x106889);})[_0x2885a8('0x18')](function(_0x5444fb){const _0x58cbb6=_0x2885a8;logger[_0x58cbb6('0x2')](JSON[_0x58cbb6('0x7')](_0x5444fb));});});},Migration['prototype'][_0x28e623('0x1d')]=function(_0x214011){const _0xe49b1b=_0x28e623,_0x113c5e=this;this[_0xe49b1b('0x11')][_0xe49b1b('0x0')](function(){const _0x45e812=_0xe49b1b;return _0x113c5e['queryInterface'][_0x45e812('0x1d')](_0x214011,{'force':!![]})[_0x45e812('0x3')](function(){const _0x42c530=_0x45e812;logger[_0x42c530('0x2')](_0x42c530('0x8'),_0x214011);})['catch'](function(_0x2af0e9){const _0x376681=_0x45e812;logger[_0x376681('0x2')](JSON[_0x376681('0x7')](_0x2af0e9));});});},Migration[_0x28e623('0x10')][_0x28e623('0x9')]=function(_0x3dc9e1,_0x2af4ba,_0x163b6f){const _0x5efd70=_0x28e623,_0x2a9677=this;this[_0x5efd70('0x11')][_0x5efd70('0x0')](function(){const _0x2dae70=_0x5efd70;return _0x2a9677['queryInterface'][_0x2dae70('0x9')](_0x3dc9e1,_0x2af4ba,{'indexName':_0x163b6f})[_0x2dae70('0x3')](function(){const _0xa7ab73=_0x2dae70;logger[_0xa7ab73('0x2')](_0xa7ab73('0x4'),_0x3dc9e1,_0x2af4ba[_0xa7ab73('0x1b')](','),_0x163b6f);})[_0x2dae70('0x18')](function(_0x37962b){const _0x1eac0e=_0x2dae70;logger[_0x1eac0e('0x2')](JSON[_0x1eac0e('0x7')](_0x37962b));});});},Migration['prototype'][_0x28e623('0x1')]=function(_0x1dd8dc,_0x245492){const _0x370d24=_0x28e623,_0x3af117=this;this['sequence'][_0x370d24('0x0')](function(){const _0x40ad8e=_0x370d24;return _0x3af117[_0x40ad8e('0x1a')][_0x40ad8e('0x1')](_0x1dd8dc,_0x245492)[_0x40ad8e('0x3')](function(){const _0x57ed22=_0x40ad8e;logger['info'](_0x57ed22('0x13'),_0x1dd8dc,_0x245492);})['catch'](function(_0x23fab5){const _0x107147=_0x40ad8e;logger[_0x107147('0x2')](JSON[_0x107147('0x7')](_0x23fab5));});});},Migration[_0x28e623('0x10')][_0x28e623('0x6')]=function(_0x2cb382){const _0x57dc7c=this;this['sequence']['enqueue'](function(){const _0x2dd1f2=a985_0x33ad;return _0x57dc7c[_0x2dd1f2('0x1a')]['sequelize']['query'](_0x2cb382)[_0x2dd1f2('0x3')](function(){const _0x86f217=_0x2dd1f2;logger[_0x86f217('0x2')]('query\x20%s',_0x2cb382);})[_0x2dd1f2('0x18')](function(_0x6445a1){const _0xdb31a7=_0x2dd1f2;logger[_0xdb31a7('0x2')](JSON['stringify'](_0x6445a1));});});},Migration[_0x28e623('0x10')][_0x28e623('0xe')]=function(_0x42f754,_0x33ace1){const _0x338bb3=_0x28e623,_0x4aef6c=this;this[_0x338bb3('0x11')][_0x338bb3('0x0')](function(){const _0x3f950d=_0x338bb3;return _0x4aef6c['queryInterface'][_0x3f950d('0xe')](_0x42f754,_0x33ace1)[_0x3f950d('0x3')](function(){const _0x5c8af7=_0x3f950d;logger[_0x5c8af7('0x2')](_0x5c8af7('0x17'),_0x33ace1,_0x42f754);})['catch'](function(_0x35439a){const _0x59fb0a=_0x3f950d;logger[_0x59fb0a('0x2')](util[_0x59fb0a('0x19')](_0x35439a,{'showHidden':![],'depth':null}));});});},Migration[_0x28e623('0x10')]['renameColumn']=function(_0x449abf,_0x2c3e3c,_0x15638b){const _0x27a328=this;this['sequence']['enqueue'](function(){const _0x5a54ad=a985_0x33ad;return _0x27a328[_0x5a54ad('0x1a')][_0x5a54ad('0xf')](_0x449abf,_0x2c3e3c,_0x15638b)[_0x5a54ad('0x3')](function(){const _0x1420b2=_0x5a54ad;logger[_0x1420b2('0x2')](_0x1420b2('0x5'),_0x2c3e3c,_0x15638b,_0x449abf);})['catch'](function(_0x1d9a17){const _0x2af8f9=_0x5a54ad;logger[_0x2af8f9('0x2')](util[_0x2af8f9('0x19')](_0x1d9a17,{'showHidden':![],'depth':null}));});});},Migration[_0x28e623('0x10')][_0x28e623('0xc')]=function(_0x130c23){const _0x4ac7a0=_0x28e623;this[_0x4ac7a0('0x11')][_0x4ac7a0('0x0')](function(){return _0x130c23();});},module[_0x28e623('0xd')]={'up':function(_0x1ae595){return new Promise(function(_0x1d0c7f){const _0x16d9b8=a985_0x33ad,_0xa54449=new Migration(_0x1ae595);_0xa54449[_0x16d9b8('0xc')](_0x1d0c7f);});},'down':function(){}}; \ No newline at end of file +const a1147_0x344f=['Changed\x20column\x20%s\x20in\x20table\x20%s','../config/logger','catch','table\x20dropped\x20%s','addIndex\x20%s\x20%s\x20%s','removeIndex','dropTable','Removed\x20column\x20%s\x20from\x20%s','addColumn','then','stringify','info','Added\x20column\x20%s\x20to\x20%s','enqueue','sequence','final','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','prototype','removeIndex\x20%s\x20%s','inspect','changeColumn','query\x20%s','addIndex','queryInterface','tail','removeColumn','sequelize','renameColumn','migration','util','query'];(function(_0x5901d5,_0x3906aa){const _0x344f33=function(_0x5c8601){while(--_0x5c8601){_0x5901d5['push'](_0x5901d5['shift']());}};_0x344f33(++_0x3906aa);}(a1147_0x344f,0x74));const a1147_0x5c86=function(_0x5901d5,_0x3906aa){_0x5901d5=_0x5901d5-0xa1;let _0x344f33=a1147_0x344f[_0x5901d5];return _0x344f33;};const a1147_0x5a583b=a1147_0x5c86;'use strict';const util=require(a1147_0x5a583b(0xa7)),logger=require(a1147_0x5a583b(0xaa))(a1147_0x5a583b(0xa6)),Sequence=function(){};Sequence['prototype']['enqueue']=function(_0x32dd92){const _0x1668b7=a1147_0x5a583b;this[_0x1668b7(0xa2)]=this[_0x1668b7(0xa2)]?this['tail']['finally'](_0x32dd92):_0x32dd92();};const Migration=function(_0x3fc29e){const _0x3b4b5d=a1147_0x5a583b;this[_0x3b4b5d(0xa1)]=_0x3fc29e,this[_0x3b4b5d(0xb7)]=new Sequence();};Migration[a1147_0x5a583b(0xba)][a1147_0x5a583b(0xbd)]=function(_0x12e8d2,_0x1a9b2d,_0x53a20d){const _0xc58508=a1147_0x5a583b,_0x2613f0=this;this[_0xc58508(0xb7)][_0xc58508(0xb6)](function(){const _0x148ebf=_0xc58508;return _0x2613f0[_0x148ebf(0xa1)][_0x148ebf(0xbd)](_0x12e8d2,_0x1a9b2d,_0x53a20d)['then'](function(){const _0x1cd38a=_0x148ebf;logger[_0x1cd38a(0xb4)](_0x1cd38a(0xa9),_0x1a9b2d,_0x12e8d2);})[_0x148ebf(0xab)](function(_0x12bd1e){const _0x2b0340=_0x148ebf;logger[_0x2b0340(0xb4)](JSON['stringify'](_0x12bd1e));});});},Migration['prototype']['addColumn']=function(_0x347d80,_0x25ce23,_0x525db0){const _0x486d5a=a1147_0x5a583b,_0x12d23b=this;this[_0x486d5a(0xb7)][_0x486d5a(0xb6)](function(){const _0x35c0a7=_0x486d5a;return _0x12d23b[_0x35c0a7(0xa1)][_0x35c0a7(0xb1)](_0x347d80,_0x25ce23,_0x525db0)[_0x35c0a7(0xb2)](function(){const _0x1cffe8=_0x35c0a7;logger[_0x1cffe8(0xb4)](_0x1cffe8(0xb5),_0x25ce23,_0x347d80);})[_0x35c0a7(0xab)](function(_0x291ab4){const _0x2c5b84=_0x35c0a7;logger[_0x2c5b84(0xb4)](JSON[_0x2c5b84(0xb3)](_0x291ab4));});});},Migration[a1147_0x5a583b(0xba)][a1147_0x5a583b(0xaf)]=function(_0x2b6e66){const _0x3fee8c=a1147_0x5a583b,_0x2580a5=this;this[_0x3fee8c(0xb7)][_0x3fee8c(0xb6)](function(){const _0x254c9d=_0x3fee8c;return _0x2580a5[_0x254c9d(0xa1)]['dropTable'](_0x2b6e66,{'force':!![]})[_0x254c9d(0xb2)](function(){const _0x3d56dd=_0x254c9d;logger[_0x3d56dd(0xb4)](_0x3d56dd(0xac),_0x2b6e66);})[_0x254c9d(0xab)](function(_0x557647){const _0xc8e31b=_0x254c9d;logger['info'](JSON[_0xc8e31b(0xb3)](_0x557647));});});},Migration[a1147_0x5a583b(0xba)]['addIndex']=function(_0x4ebdc7,_0x1466f0,_0x3f677f){const _0x257426=a1147_0x5a583b,_0x57ee9b=this;this[_0x257426(0xb7)][_0x257426(0xb6)](function(){const _0x52181d=_0x257426;return _0x57ee9b[_0x52181d(0xa1)][_0x52181d(0xbf)](_0x4ebdc7,_0x1466f0,{'indexName':_0x3f677f})[_0x52181d(0xb2)](function(){const _0x16def6=_0x52181d;logger[_0x16def6(0xb4)](_0x16def6(0xad),_0x4ebdc7,_0x1466f0['join'](','),_0x3f677f);})[_0x52181d(0xab)](function(_0x3e8a43){const _0x20997d=_0x52181d;logger[_0x20997d(0xb4)](JSON[_0x20997d(0xb3)](_0x3e8a43));});});},Migration[a1147_0x5a583b(0xba)][a1147_0x5a583b(0xae)]=function(_0x1a045a,_0x3ce2cc){const _0x2ac49d=this;this['sequence']['enqueue'](function(){const _0x1f4772=a1147_0x5c86;return _0x2ac49d[_0x1f4772(0xa1)][_0x1f4772(0xae)](_0x1a045a,_0x3ce2cc)['then'](function(){const _0x26a037=_0x1f4772;logger['info'](_0x26a037(0xbb),_0x1a045a,_0x3ce2cc);})['catch'](function(_0x31188d){const _0x1cf3f0=_0x1f4772;logger[_0x1cf3f0(0xb4)](JSON['stringify'](_0x31188d));});});},Migration[a1147_0x5a583b(0xba)][a1147_0x5a583b(0xa8)]=function(_0x21ccff){const _0x1e06bf=a1147_0x5a583b,_0x4ed087=this;this['sequence'][_0x1e06bf(0xb6)](function(){const _0x28f1b7=_0x1e06bf;return _0x4ed087[_0x28f1b7(0xa1)][_0x28f1b7(0xa4)][_0x28f1b7(0xa8)](_0x21ccff)[_0x28f1b7(0xb2)](function(){const _0x2b697c=_0x28f1b7;logger[_0x2b697c(0xb4)](_0x2b697c(0xbe),_0x21ccff);})['catch'](function(_0x2b4a12){const _0x5babbb=_0x28f1b7;logger[_0x5babbb(0xb4)](JSON[_0x5babbb(0xb3)](_0x2b4a12));});});},Migration[a1147_0x5a583b(0xba)][a1147_0x5a583b(0xa3)]=function(_0xd36b16,_0x2adc95){const _0x2d5691=a1147_0x5a583b,_0x494251=this;this[_0x2d5691(0xb7)]['enqueue'](function(){const _0x3dcd5b=_0x2d5691;return _0x494251[_0x3dcd5b(0xa1)][_0x3dcd5b(0xa3)](_0xd36b16,_0x2adc95)[_0x3dcd5b(0xb2)](function(){const _0x164a41=_0x3dcd5b;logger[_0x164a41(0xb4)](_0x164a41(0xb0),_0x2adc95,_0xd36b16);})[_0x3dcd5b(0xab)](function(_0x31c184){logger['info'](util['inspect'](_0x31c184,{'showHidden':![],'depth':null}));});});},Migration[a1147_0x5a583b(0xba)]['renameColumn']=function(_0x140bd7,_0x4d8913,_0x3eba52){const _0x40bfe9=this;this['sequence']['enqueue'](function(){const _0x80b802=a1147_0x5c86;return _0x40bfe9[_0x80b802(0xa1)][_0x80b802(0xa5)](_0x140bd7,_0x4d8913,_0x3eba52)[_0x80b802(0xb2)](function(){const _0x595c47=_0x80b802;logger[_0x595c47(0xb4)](_0x595c47(0xb9),_0x4d8913,_0x3eba52,_0x140bd7);})[_0x80b802(0xab)](function(_0x311fd8){const _0x1208ad=_0x80b802;logger['info'](util[_0x1208ad(0xbc)](_0x311fd8,{'showHidden':![],'depth':null}));});});},Migration[a1147_0x5a583b(0xba)][a1147_0x5a583b(0xb8)]=function(_0x2ab04d){const _0x270445=a1147_0x5a583b;this[_0x270445(0xb7)][_0x270445(0xb6)](function(){return _0x2ab04d();});},module['exports']={'up':function(_0x17ee8c){return new Promise(function(_0xbb7327){const _0x5aff45=a1147_0x5c86,_0x1a126b=new Migration(_0x17ee8c);_0x1a126b[_0x5aff45(0xb8)](_0xbb7327);});},'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 4e76fb8..8204b18 100644 --- a/server/migrations/2.3.95.js +++ b/server/migrations/2.3.95.js @@ -1 +1 @@ -const a986_0x13f0=['Added\x20column\x20%s\x20to\x20%s','finally','query','removeIndex\x20%s\x20%s','../config/logger','prototype','sequelize','enqueue','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','queryInterface','tail','Removed\x20column\x20%s\x20from\x20%s','table\x20dropped\x20%s','then','migration','join','renameColumn','addColumn','addIndex','query\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','changeColumn','stringify','inspect','removeIndex','sequence','final','dropTable','catch','info','util'];(function(_0x323664,_0x13f0cb){const _0x1ef241=function(_0x2f47a6){while(--_0x2f47a6){_0x323664['push'](_0x323664['shift']());}};_0x1ef241(++_0x13f0cb);}(a986_0x13f0,0x106));const a986_0x1ef2=function(_0x323664,_0x13f0cb){_0x323664=_0x323664-0x0;let _0x1ef241=a986_0x13f0[_0x323664];return _0x1ef241;};const _0x5daf9c=a986_0x1ef2;'use strict';const util=require(_0x5daf9c('0x10')),logger=require(_0x5daf9c('0x15'))(_0x5daf9c('0x0')),Sequence=function(){};Sequence['prototype']['enqueue']=function(_0x2f47a6){const _0x240efd=_0x5daf9c;this[_0x240efd('0x1b')]=this[_0x240efd('0x1b')]?this['tail'][_0x240efd('0x12')](_0x2f47a6):_0x2f47a6();};const Migration=function(_0x444703){const _0x304bce=_0x5daf9c;this['queryInterface']=_0x444703,this[_0x304bce('0xb')]=new Sequence();};Migration[_0x5daf9c('0x16')][_0x5daf9c('0x7')]=function(_0x4abe66,_0x234896,_0x16af19){const _0x5abf3e=_0x5daf9c,_0x31e93a=this;this[_0x5abf3e('0xb')][_0x5abf3e('0x18')](function(){const _0x936270=_0x5abf3e;return _0x31e93a['queryInterface'][_0x936270('0x7')](_0x4abe66,_0x234896,_0x16af19)[_0x936270('0x1e')](function(){const _0x459476=_0x936270;logger[_0x459476('0xf')](_0x459476('0x6'),_0x234896,_0x4abe66);})[_0x936270('0xe')](function(_0x2a6adc){const _0x46353b=_0x936270;logger[_0x46353b('0xf')](JSON[_0x46353b('0x8')](_0x2a6adc));});});},Migration[_0x5daf9c('0x16')][_0x5daf9c('0x3')]=function(_0x450cd5,_0x4c74d1,_0x169254){const _0x567655=_0x5daf9c,_0x2fc931=this;this[_0x567655('0xb')][_0x567655('0x18')](function(){const _0x3e2795=_0x567655;return _0x2fc931['queryInterface']['addColumn'](_0x450cd5,_0x4c74d1,_0x169254)['then'](function(){const _0x28caf6=a986_0x1ef2;logger[_0x28caf6('0xf')](_0x28caf6('0x11'),_0x4c74d1,_0x450cd5);})[_0x3e2795('0xe')](function(_0x5a1a4e){const _0xdf46d6=_0x3e2795;logger[_0xdf46d6('0xf')](JSON[_0xdf46d6('0x8')](_0x5a1a4e));});});},Migration['prototype'][_0x5daf9c('0xd')]=function(_0x14b244){const _0x138dcc=_0x5daf9c,_0x356e53=this;this['sequence'][_0x138dcc('0x18')](function(){const _0x1e5f29=_0x138dcc;return _0x356e53[_0x1e5f29('0x1a')][_0x1e5f29('0xd')](_0x14b244,{'force':!![]})[_0x1e5f29('0x1e')](function(){const _0xa86c8a=_0x1e5f29;logger[_0xa86c8a('0xf')](_0xa86c8a('0x1d'),_0x14b244);})[_0x1e5f29('0xe')](function(_0x244564){const _0x193e37=_0x1e5f29;logger['info'](JSON[_0x193e37('0x8')](_0x244564));});});},Migration[_0x5daf9c('0x16')]['addIndex']=function(_0x292103,_0x4cf6e1,_0x39eb99){const _0x16b2bd=_0x5daf9c,_0xf0d1c3=this;this[_0x16b2bd('0xb')]['enqueue'](function(){const _0x1c9292=_0x16b2bd;return _0xf0d1c3[_0x1c9292('0x1a')][_0x1c9292('0x4')](_0x292103,_0x4cf6e1,{'indexName':_0x39eb99})['then'](function(){const _0x4d8570=_0x1c9292;logger[_0x4d8570('0xf')]('addIndex\x20%s\x20%s\x20%s',_0x292103,_0x4cf6e1[_0x4d8570('0x1')](','),_0x39eb99);})['catch'](function(_0x4d5800){const _0x3dcc32=_0x1c9292;logger[_0x3dcc32('0xf')](JSON[_0x3dcc32('0x8')](_0x4d5800));});});},Migration[_0x5daf9c('0x16')][_0x5daf9c('0xa')]=function(_0x4f7d97,_0x4013ff){const _0x209b2b=_0x5daf9c,_0x513499=this;this[_0x209b2b('0xb')][_0x209b2b('0x18')](function(){const _0x844e31=_0x209b2b;return _0x513499[_0x844e31('0x1a')][_0x844e31('0xa')](_0x4f7d97,_0x4013ff)[_0x844e31('0x1e')](function(){const _0x3bdf11=_0x844e31;logger[_0x3bdf11('0xf')](_0x3bdf11('0x14'),_0x4f7d97,_0x4013ff);})['catch'](function(_0x151235){const _0x33fdc5=_0x844e31;logger['info'](JSON[_0x33fdc5('0x8')](_0x151235));});});},Migration[_0x5daf9c('0x16')][_0x5daf9c('0x13')]=function(_0x1f9ceb){const _0x3b9fa1=_0x5daf9c,_0x50d3ad=this;this['sequence'][_0x3b9fa1('0x18')](function(){const _0x1a0a53=_0x3b9fa1;return _0x50d3ad['queryInterface'][_0x1a0a53('0x17')][_0x1a0a53('0x13')](_0x1f9ceb)['then'](function(){const _0x2c0587=_0x1a0a53;logger['info'](_0x2c0587('0x5'),_0x1f9ceb);})[_0x1a0a53('0xe')](function(_0x3b87a5){const _0x2c94dc=_0x1a0a53;logger[_0x2c94dc('0xf')](JSON[_0x2c94dc('0x8')](_0x3b87a5));});});},Migration['prototype']['removeColumn']=function(_0x44e46f,_0x46a8d6){const _0x23eb0f=_0x5daf9c,_0x13ac75=this;this['sequence'][_0x23eb0f('0x18')](function(){const _0x291776=_0x23eb0f;return _0x13ac75[_0x291776('0x1a')]['removeColumn'](_0x44e46f,_0x46a8d6)[_0x291776('0x1e')](function(){const _0x2f9bf4=_0x291776;logger[_0x2f9bf4('0xf')](_0x2f9bf4('0x1c'),_0x46a8d6,_0x44e46f);})[_0x291776('0xe')](function(_0x580517){const _0x23b27b=_0x291776;logger['info'](util[_0x23b27b('0x9')](_0x580517,{'showHidden':![],'depth':null}));});});},Migration[_0x5daf9c('0x16')]['renameColumn']=function(_0xf5bbf2,_0x5a2bcf,_0x4a9dde){const _0x379b96=_0x5daf9c,_0x5132c4=this;this[_0x379b96('0xb')]['enqueue'](function(){const _0x4810ec=_0x379b96;return _0x5132c4[_0x4810ec('0x1a')][_0x4810ec('0x2')](_0xf5bbf2,_0x5a2bcf,_0x4a9dde)[_0x4810ec('0x1e')](function(){const _0x28b81f=_0x4810ec;logger['info'](_0x28b81f('0x19'),_0x5a2bcf,_0x4a9dde,_0xf5bbf2);})[_0x4810ec('0xe')](function(_0xd2f65c){const _0x4291f7=_0x4810ec;logger[_0x4291f7('0xf')](util['inspect'](_0xd2f65c,{'showHidden':![],'depth':null}));});});},Migration[_0x5daf9c('0x16')][_0x5daf9c('0xc')]=function(_0x3aace7){const _0x22fb7c=_0x5daf9c;this['sequence'][_0x22fb7c('0x18')](function(){return _0x3aace7();});},module['exports']={'up':function(_0x16b612){return new Promise(function(_0x32b1c9){const _0x51cdb2=a986_0x1ef2,_0x5e18f3=new Migration(_0x16b612);_0x5e18f3[_0x51cdb2('0xc')](_0x32b1c9);});},'down':function(){}}; \ No newline at end of file +const a1148_0x2d2b=['inspect','queryInterface','finally','removeColumn','../config/logger','info','catch','prototype','Added\x20column\x20%s\x20to\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','enqueue','final','Removed\x20column\x20%s\x20from\x20%s','removeIndex\x20%s\x20%s','migration','addColumn','tail','table\x20dropped\x20%s','join','query','removeIndex','then','addIndex','addIndex\x20%s\x20%s\x20%s','stringify','renameColumn','changeColumn','query\x20%s','sequelize','exports','dropTable','sequence','Changed\x20column\x20%s\x20in\x20table\x20%s'];(function(_0x420675,_0x2e69bb){const _0x2d2b80=function(_0x657092){while(--_0x657092){_0x420675['push'](_0x420675['shift']());}};_0x2d2b80(++_0x2e69bb);}(a1148_0x2d2b,0x124));const a1148_0x6570=function(_0x420675,_0x2e69bb){_0x420675=_0x420675-0x1e1;let _0x2d2b80=a1148_0x2d2b[_0x420675];return _0x2d2b80;};const a1148_0x1af0b3=a1148_0x6570;'use strict';const util=require('util'),logger=require(a1148_0x1af0b3(0x1ea))(a1148_0x1af0b3(0x1f4)),Sequence=function(){};Sequence[a1148_0x1af0b3(0x1ed)][a1148_0x1af0b3(0x1f0)]=function(_0x4f12b6){const _0x3fbfe0=a1148_0x1af0b3;this['tail']=this[_0x3fbfe0(0x1f6)]?this[_0x3fbfe0(0x1f6)][_0x3fbfe0(0x1e8)](_0x4f12b6):_0x4f12b6();};const Migration=function(_0x13286d){const _0x20e0cd=a1148_0x1af0b3;this[_0x20e0cd(0x1e7)]=_0x13286d,this[_0x20e0cd(0x1e4)]=new Sequence();};Migration['prototype'][a1148_0x1af0b3(0x200)]=function(_0x132331,_0x518eec,_0x3239aa){const _0x2b8a28=a1148_0x1af0b3,_0x21a382=this;this['sequence'][_0x2b8a28(0x1f0)](function(){const _0x1a8959=_0x2b8a28;return _0x21a382[_0x1a8959(0x1e7)][_0x1a8959(0x200)](_0x132331,_0x518eec,_0x3239aa)[_0x1a8959(0x1fb)](function(){const _0xff3567=_0x1a8959;logger[_0xff3567(0x1eb)](_0xff3567(0x1e5),_0x518eec,_0x132331);})[_0x1a8959(0x1ec)](function(_0x3debc7){const _0x1a5401=_0x1a8959;logger[_0x1a5401(0x1eb)](JSON['stringify'](_0x3debc7));});});},Migration['prototype'][a1148_0x1af0b3(0x1f5)]=function(_0x3a5113,_0x4c78b8,_0x9a74c1){const _0x46d778=a1148_0x1af0b3,_0x351baf=this;this[_0x46d778(0x1e4)][_0x46d778(0x1f0)](function(){const _0x16a5a5=_0x46d778;return _0x351baf[_0x16a5a5(0x1e7)][_0x16a5a5(0x1f5)](_0x3a5113,_0x4c78b8,_0x9a74c1)[_0x16a5a5(0x1fb)](function(){const _0x5df3ff=_0x16a5a5;logger[_0x5df3ff(0x1eb)](_0x5df3ff(0x1ee),_0x4c78b8,_0x3a5113);})[_0x16a5a5(0x1ec)](function(_0x46df6c){const _0x545a69=_0x16a5a5;logger[_0x545a69(0x1eb)](JSON[_0x545a69(0x1fe)](_0x46df6c));});});},Migration[a1148_0x1af0b3(0x1ed)][a1148_0x1af0b3(0x1e3)]=function(_0x2eef59){const _0x2adacf=a1148_0x1af0b3,_0x3dadf1=this;this[_0x2adacf(0x1e4)][_0x2adacf(0x1f0)](function(){const _0xca81ce=_0x2adacf;return _0x3dadf1[_0xca81ce(0x1e7)][_0xca81ce(0x1e3)](_0x2eef59,{'force':!![]})['then'](function(){const _0x465d6c=_0xca81ce;logger['info'](_0x465d6c(0x1f7),_0x2eef59);})[_0xca81ce(0x1ec)](function(_0x362e24){const _0x141af2=_0xca81ce;logger[_0x141af2(0x1eb)](JSON['stringify'](_0x362e24));});});},Migration['prototype']['addIndex']=function(_0x25b196,_0x1594bd,_0x21e3b6){const _0x5d3f25=a1148_0x1af0b3,_0x4e88e4=this;this[_0x5d3f25(0x1e4)][_0x5d3f25(0x1f0)](function(){const _0x2eaf50=_0x5d3f25;return _0x4e88e4[_0x2eaf50(0x1e7)][_0x2eaf50(0x1fc)](_0x25b196,_0x1594bd,{'indexName':_0x21e3b6})['then'](function(){const _0x4ed77e=_0x2eaf50;logger['info'](_0x4ed77e(0x1fd),_0x25b196,_0x1594bd[_0x4ed77e(0x1f8)](','),_0x21e3b6);})[_0x2eaf50(0x1ec)](function(_0x47c1c9){const _0x5440d7=_0x2eaf50;logger['info'](JSON[_0x5440d7(0x1fe)](_0x47c1c9));});});},Migration[a1148_0x1af0b3(0x1ed)]['removeIndex']=function(_0x2ace12,_0x5e27b3){const _0x2bd727=a1148_0x1af0b3,_0x54d342=this;this[_0x2bd727(0x1e4)]['enqueue'](function(){const _0x1b8bf4=_0x2bd727;return _0x54d342[_0x1b8bf4(0x1e7)][_0x1b8bf4(0x1fa)](_0x2ace12,_0x5e27b3)[_0x1b8bf4(0x1fb)](function(){const _0x49086d=_0x1b8bf4;logger[_0x49086d(0x1eb)](_0x49086d(0x1f3),_0x2ace12,_0x5e27b3);})[_0x1b8bf4(0x1ec)](function(_0x1dcf43){const _0x5e13ec=_0x1b8bf4;logger[_0x5e13ec(0x1eb)](JSON[_0x5e13ec(0x1fe)](_0x1dcf43));});});},Migration[a1148_0x1af0b3(0x1ed)][a1148_0x1af0b3(0x1f9)]=function(_0x4c4eda){const _0x57678a=a1148_0x1af0b3,_0x12e625=this;this[_0x57678a(0x1e4)][_0x57678a(0x1f0)](function(){const _0x26158b=_0x57678a;return _0x12e625['queryInterface'][_0x26158b(0x1e1)]['query'](_0x4c4eda)[_0x26158b(0x1fb)](function(){const _0x53cde4=_0x26158b;logger['info'](_0x53cde4(0x201),_0x4c4eda);})[_0x26158b(0x1ec)](function(_0x47d183){const _0x31f7fd=_0x26158b;logger['info'](JSON[_0x31f7fd(0x1fe)](_0x47d183));});});},Migration[a1148_0x1af0b3(0x1ed)][a1148_0x1af0b3(0x1e9)]=function(_0x9c4934,_0x179e2f){const _0x920d44=a1148_0x1af0b3,_0x3759e2=this;this['sequence'][_0x920d44(0x1f0)](function(){const _0x263aea=_0x920d44;return _0x3759e2[_0x263aea(0x1e7)][_0x263aea(0x1e9)](_0x9c4934,_0x179e2f)[_0x263aea(0x1fb)](function(){const _0x2591a5=_0x263aea;logger[_0x2591a5(0x1eb)](_0x2591a5(0x1f2),_0x179e2f,_0x9c4934);})['catch'](function(_0x11a853){const _0x2b97ee=_0x263aea;logger[_0x2b97ee(0x1eb)](util[_0x2b97ee(0x1e6)](_0x11a853,{'showHidden':![],'depth':null}));});});},Migration['prototype']['renameColumn']=function(_0x23de87,_0x57b41c,_0x22504d){const _0x33d64e=a1148_0x1af0b3,_0x19f41f=this;this[_0x33d64e(0x1e4)][_0x33d64e(0x1f0)](function(){const _0x3ab1d9=_0x33d64e;return _0x19f41f[_0x3ab1d9(0x1e7)][_0x3ab1d9(0x1ff)](_0x23de87,_0x57b41c,_0x22504d)[_0x3ab1d9(0x1fb)](function(){const _0x275c1a=_0x3ab1d9;logger[_0x275c1a(0x1eb)](_0x275c1a(0x1ef),_0x57b41c,_0x22504d,_0x23de87);})[_0x3ab1d9(0x1ec)](function(_0xd862ab){const _0x510279=_0x3ab1d9;logger['info'](util[_0x510279(0x1e6)](_0xd862ab,{'showHidden':![],'depth':null}));});});},Migration[a1148_0x1af0b3(0x1ed)][a1148_0x1af0b3(0x1f1)]=function(_0x3acea2){const _0x3966c7=a1148_0x1af0b3;this['sequence'][_0x3966c7(0x1f0)](function(){return _0x3acea2();});},module[a1148_0x1af0b3(0x1e2)]={'up':function(_0x597d43){return new Promise(function(_0x4ac4dd){const _0x554092=a1148_0x6570,_0x54320f=new Migration(_0x597d43);_0x54320f[_0x554092(0x1f1)](_0x4ac4dd);});},'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 8554ea7..479ecaa 100644 --- a/server/migrations/2.3.96.js +++ b/server/migrations/2.3.96.js @@ -1 +1 @@ -const a987_0x2fbe=['inspect','removeIndex','exports','sequelize','Removed\x20column\x20%s\x20from\x20%s','settings','addIndex\x20%s\x20%s\x20%s','sequence','catch','migration','STRING','../config/logger','tail','enqueue','finally','then','join','info','renameColumn','removeColumn','final','queryInterface','table\x20dropped\x20%s','dropTable','util','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','addColumn','addIndex','defaultScreenRecordingPath','changeColumn','prototype','stringify'];(function(_0x5d7f1c,_0x2fbe89){const _0x1537ff=function(_0x15f89a){while(--_0x15f89a){_0x5d7f1c['push'](_0x5d7f1c['shift']());}};_0x1537ff(++_0x2fbe89);}(a987_0x2fbe,0xb2));const a987_0x1537=function(_0x5d7f1c,_0x2fbe89){_0x5d7f1c=_0x5d7f1c-0x0;let _0x1537ff=a987_0x2fbe[_0x5d7f1c];return _0x1537ff;};const _0x16aef4=a987_0x1537;'use strict';const util=require(_0x16aef4('0x6')),logger=require(_0x16aef4('0x19'))(_0x16aef4('0x17')),Sequence=function(){};Sequence[_0x16aef4('0xc')][_0x16aef4('0x1b')]=function(_0x15f89a){const _0x49add9=_0x16aef4;this['tail']=this[_0x49add9('0x1a')]?this[_0x49add9('0x1a')][_0x49add9('0x1c')](_0x15f89a):_0x15f89a();};const Migration=function(_0x439af5){const _0x16f3c8=_0x16aef4;this[_0x16f3c8('0x3')]=_0x439af5,this[_0x16f3c8('0x15')]=new Sequence();};Migration[_0x16aef4('0xc')]['changeColumn']=function(_0x36ed81,_0xd8c5f4,_0x53d409){const _0x5caf99=_0x16aef4,_0x50b317=this;this[_0x5caf99('0x15')][_0x5caf99('0x1b')](function(){const _0x15429e=_0x5caf99;return _0x50b317[_0x15429e('0x3')][_0x15429e('0xb')](_0x36ed81,_0xd8c5f4,_0x53d409)[_0x15429e('0x1d')](function(){const _0x1322d6=_0x15429e;logger[_0x1322d6('0x1f')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0xd8c5f4,_0x36ed81);})[_0x15429e('0x16')](function(_0x106fad){const _0x46fbc4=_0x15429e;logger[_0x46fbc4('0x1f')](JSON[_0x46fbc4('0xd')](_0x106fad));});});},Migration[_0x16aef4('0xc')]['addColumn']=function(_0x244775,_0x38097c,_0x5ebf95){const _0x5c879a=_0x16aef4,_0x5dbc61=this;this[_0x5c879a('0x15')][_0x5c879a('0x1b')](function(){const _0x17a097=_0x5c879a;return _0x5dbc61['queryInterface'][_0x17a097('0x8')](_0x244775,_0x38097c,_0x5ebf95)['then'](function(){const _0x55d8fb=_0x17a097;logger[_0x55d8fb('0x1f')]('Added\x20column\x20%s\x20to\x20%s',_0x38097c,_0x244775);})[_0x17a097('0x16')](function(_0x176fc5){const _0x42fffb=_0x17a097;logger['info'](JSON[_0x42fffb('0xd')](_0x176fc5));});});},Migration[_0x16aef4('0xc')][_0x16aef4('0x5')]=function(_0xc0b2cd){const _0x4f7626=_0x16aef4,_0xdf5cdd=this;this[_0x4f7626('0x15')][_0x4f7626('0x1b')](function(){const _0x279a60=_0x4f7626;return _0xdf5cdd[_0x279a60('0x3')]['dropTable'](_0xc0b2cd,{'force':!![]})[_0x279a60('0x1d')](function(){const _0x2613bc=_0x279a60;logger[_0x2613bc('0x1f')](_0x2613bc('0x4'),_0xc0b2cd);})[_0x279a60('0x16')](function(_0x232010){const _0x5f1b2e=_0x279a60;logger[_0x5f1b2e('0x1f')](JSON[_0x5f1b2e('0xd')](_0x232010));});});},Migration['prototype'][_0x16aef4('0x9')]=function(_0x3f6f23,_0x4b80c4,_0x389611){const _0x41b628=_0x16aef4,_0x370680=this;this['sequence'][_0x41b628('0x1b')](function(){const _0x5cfc08=_0x41b628;return _0x370680[_0x5cfc08('0x3')][_0x5cfc08('0x9')](_0x3f6f23,_0x4b80c4,{'indexName':_0x389611})[_0x5cfc08('0x1d')](function(){const _0x537e4b=_0x5cfc08;logger[_0x537e4b('0x1f')](_0x537e4b('0x14'),_0x3f6f23,_0x4b80c4[_0x537e4b('0x1e')](','),_0x389611);})[_0x5cfc08('0x16')](function(_0x219419){const _0x366bee=_0x5cfc08;logger['info'](JSON[_0x366bee('0xd')](_0x219419));});});},Migration['prototype'][_0x16aef4('0xf')]=function(_0x4ab927,_0x1184a4){const _0x4a0562=_0x16aef4,_0x35165c=this;this[_0x4a0562('0x15')][_0x4a0562('0x1b')](function(){const _0xb72d1f=_0x4a0562;return _0x35165c['queryInterface'][_0xb72d1f('0xf')](_0x4ab927,_0x1184a4)[_0xb72d1f('0x1d')](function(){const _0x4e3006=_0xb72d1f;logger[_0x4e3006('0x1f')]('removeIndex\x20%s\x20%s',_0x4ab927,_0x1184a4);})[_0xb72d1f('0x16')](function(_0x5f395b){const _0x2171cc=_0xb72d1f;logger[_0x2171cc('0x1f')](JSON[_0x2171cc('0xd')](_0x5f395b));});});},Migration[_0x16aef4('0xc')]['query']=function(_0x293cc8){const _0x4df101=_0x16aef4,_0x4eb29e=this;this[_0x4df101('0x15')]['enqueue'](function(){const _0x3fdfad=_0x4df101;return _0x4eb29e[_0x3fdfad('0x3')][_0x3fdfad('0x11')]['query'](_0x293cc8)[_0x3fdfad('0x1d')](function(){const _0x1eb759=_0x3fdfad;logger[_0x1eb759('0x1f')]('query\x20%s',_0x293cc8);})[_0x3fdfad('0x16')](function(_0x2db069){const _0x1be352=_0x3fdfad;logger[_0x1be352('0x1f')](JSON[_0x1be352('0xd')](_0x2db069));});});},Migration[_0x16aef4('0xc')][_0x16aef4('0x1')]=function(_0xf92b2a,_0x4d3995){const _0x2829b4=_0x16aef4,_0x4738ed=this;this[_0x2829b4('0x15')][_0x2829b4('0x1b')](function(){const _0x40b565=_0x2829b4;return _0x4738ed[_0x40b565('0x3')][_0x40b565('0x1')](_0xf92b2a,_0x4d3995)['then'](function(){const _0x345a91=_0x40b565;logger[_0x345a91('0x1f')](_0x345a91('0x12'),_0x4d3995,_0xf92b2a);})[_0x40b565('0x16')](function(_0xa013f0){const _0x4509a6=_0x40b565;logger['info'](util[_0x4509a6('0xe')](_0xa013f0,{'showHidden':![],'depth':null}));});});},Migration[_0x16aef4('0xc')][_0x16aef4('0x0')]=function(_0x37deb4,_0x40e6ab,_0x39a7dc){const _0x3c6119=_0x16aef4,_0x5ae4e4=this;this[_0x3c6119('0x15')][_0x3c6119('0x1b')](function(){const _0xb1f922=_0x3c6119;return _0x5ae4e4[_0xb1f922('0x3')]['renameColumn'](_0x37deb4,_0x40e6ab,_0x39a7dc)[_0xb1f922('0x1d')](function(){const _0x22ba85=_0xb1f922;logger['info'](_0x22ba85('0x7'),_0x40e6ab,_0x39a7dc,_0x37deb4);})['catch'](function(_0x1de671){const _0x3eefeb=_0xb1f922;logger[_0x3eefeb('0x1f')](util['inspect'](_0x1de671,{'showHidden':![],'depth':null}));});});},Migration[_0x16aef4('0xc')]['final']=function(_0x5eefd7){const _0x2632bc=_0x16aef4;this['sequence'][_0x2632bc('0x1b')](function(){return _0x5eefd7();});},module[_0x16aef4('0x10')]={'up':function(_0x4846f4,_0x16da29){return new Promise(function(_0x48f892){const _0x4f2ae3=a987_0x1537,_0x1b8496=new Migration(_0x4846f4);_0x1b8496[_0x4f2ae3('0x8')](_0x4f2ae3('0x13'),_0x4f2ae3('0xa'),{'type':_0x16da29[_0x4f2ae3('0x18')]}),_0x1b8496[_0x4f2ae3('0x2')](_0x48f892);});},'down':function(){}}; \ No newline at end of file +const a1149_0xe98f=['catch','addIndex','prototype','changeColumn','stringify','addColumn','query\x20%s','tail','table\x20dropped\x20%s','inspect','addIndex\x20%s\x20%s\x20%s','info','renameColumn','dropTable','sequence','sequelize','query','finally','migration','removeColumn','then','enqueue','exports','final','Added\x20column\x20%s\x20to\x20%s','removeIndex\x20%s\x20%s','queryInterface','../config/logger','removeIndex','defaultScreenRecordingPath','settings','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','STRING'];(function(_0x5f3980,_0xd53688){const _0xe98f6e=function(_0x37d7a9){while(--_0x37d7a9){_0x5f3980['push'](_0x5f3980['shift']());}};_0xe98f6e(++_0xd53688);}(a1149_0xe98f,0x1c7));const a1149_0x37d7=function(_0x5f3980,_0xd53688){_0x5f3980=_0x5f3980-0x6a;let _0xe98f6e=a1149_0xe98f[_0x5f3980];return _0xe98f6e;};const a1149_0x3d3b2b=a1149_0x37d7;'use strict';const util=require('util'),logger=require(a1149_0x3d3b2b(0x6b))(a1149_0x3d3b2b(0x83)),Sequence=function(){};Sequence['prototype'][a1149_0x3d3b2b(0x86)]=function(_0x2637cd){const _0x361352=a1149_0x3d3b2b;this[_0x361352(0x78)]=this[_0x361352(0x78)]?this[_0x361352(0x78)][_0x361352(0x82)](_0x2637cd):_0x2637cd();};const Migration=function(_0x18820a){const _0x5794bb=a1149_0x3d3b2b;this[_0x5794bb(0x6a)]=_0x18820a,this['sequence']=new Sequence();};Migration[a1149_0x3d3b2b(0x73)][a1149_0x3d3b2b(0x74)]=function(_0x1edd98,_0x57b055,_0x3be49c){const _0x1c8db0=a1149_0x3d3b2b,_0x2c5ef9=this;this[_0x1c8db0(0x7f)]['enqueue'](function(){const _0x5dbb43=_0x1c8db0;return _0x2c5ef9['queryInterface'][_0x5dbb43(0x74)](_0x1edd98,_0x57b055,_0x3be49c)[_0x5dbb43(0x85)](function(){logger['info']('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x57b055,_0x1edd98);})['catch'](function(_0x56d779){const _0x1fd83c=_0x5dbb43;logger['info'](JSON[_0x1fd83c(0x75)](_0x56d779));});});},Migration[a1149_0x3d3b2b(0x73)][a1149_0x3d3b2b(0x76)]=function(_0x489de7,_0x289665,_0x59421a){const _0xb4bcc6=a1149_0x3d3b2b,_0x186093=this;this['sequence'][_0xb4bcc6(0x86)](function(){const _0x2b62ec=_0xb4bcc6;return _0x186093[_0x2b62ec(0x6a)][_0x2b62ec(0x76)](_0x489de7,_0x289665,_0x59421a)[_0x2b62ec(0x85)](function(){const _0x531369=_0x2b62ec;logger[_0x531369(0x7c)](_0x531369(0x89),_0x289665,_0x489de7);})[_0x2b62ec(0x71)](function(_0x31d7ef){const _0x33328f=_0x2b62ec;logger['info'](JSON[_0x33328f(0x75)](_0x31d7ef));});});},Migration[a1149_0x3d3b2b(0x73)][a1149_0x3d3b2b(0x7e)]=function(_0x96a5df){const _0x4cc439=a1149_0x3d3b2b,_0x4cfc4f=this;this[_0x4cc439(0x7f)][_0x4cc439(0x86)](function(){const _0x3fab8e=_0x4cc439;return _0x4cfc4f['queryInterface'][_0x3fab8e(0x7e)](_0x96a5df,{'force':!![]})[_0x3fab8e(0x85)](function(){const _0x5828ec=_0x3fab8e;logger[_0x5828ec(0x7c)](_0x5828ec(0x79),_0x96a5df);})['catch'](function(_0x49b2b8){const _0x9ff875=_0x3fab8e;logger[_0x9ff875(0x7c)](JSON[_0x9ff875(0x75)](_0x49b2b8));});});},Migration[a1149_0x3d3b2b(0x73)][a1149_0x3d3b2b(0x72)]=function(_0x1b4e40,_0x498220,_0x92e014){const _0xe1ef33=a1149_0x3d3b2b,_0x25e7c3=this;this['sequence'][_0xe1ef33(0x86)](function(){const _0x2846ee=_0xe1ef33;return _0x25e7c3['queryInterface'][_0x2846ee(0x72)](_0x1b4e40,_0x498220,{'indexName':_0x92e014})[_0x2846ee(0x85)](function(){const _0x402357=_0x2846ee;logger[_0x402357(0x7c)](_0x402357(0x7b),_0x1b4e40,_0x498220['join'](','),_0x92e014);})['catch'](function(_0x4b353f){const _0x5bac2e=_0x2846ee;logger['info'](JSON[_0x5bac2e(0x75)](_0x4b353f));});});},Migration[a1149_0x3d3b2b(0x73)][a1149_0x3d3b2b(0x6c)]=function(_0x21240a,_0x4df5c1){const _0x41710c=a1149_0x3d3b2b,_0x49977e=this;this[_0x41710c(0x7f)][_0x41710c(0x86)](function(){const _0x1c1ee1=_0x41710c;return _0x49977e[_0x1c1ee1(0x6a)][_0x1c1ee1(0x6c)](_0x21240a,_0x4df5c1)[_0x1c1ee1(0x85)](function(){const _0x2e70eb=_0x1c1ee1;logger[_0x2e70eb(0x7c)](_0x2e70eb(0x8a),_0x21240a,_0x4df5c1);})['catch'](function(_0x5e9570){const _0x24f15e=_0x1c1ee1;logger[_0x24f15e(0x7c)](JSON[_0x24f15e(0x75)](_0x5e9570));});});},Migration['prototype']['query']=function(_0x501381){const _0x51eb2c=this;this['sequence']['enqueue'](function(){const _0x390322=a1149_0x37d7;return _0x51eb2c['queryInterface'][_0x390322(0x80)][_0x390322(0x81)](_0x501381)[_0x390322(0x85)](function(){const _0x51e80c=_0x390322;logger['info'](_0x51e80c(0x77),_0x501381);})[_0x390322(0x71)](function(_0x381eab){const _0x1c2f5c=_0x390322;logger['info'](JSON[_0x1c2f5c(0x75)](_0x381eab));});});},Migration[a1149_0x3d3b2b(0x73)][a1149_0x3d3b2b(0x84)]=function(_0x45383d,_0x4062d9){const _0xa6a804=a1149_0x3d3b2b,_0x48d21b=this;this[_0xa6a804(0x7f)][_0xa6a804(0x86)](function(){const _0x28761d=_0xa6a804;return _0x48d21b[_0x28761d(0x6a)]['removeColumn'](_0x45383d,_0x4062d9)['then'](function(){const _0x19c69c=_0x28761d;logger[_0x19c69c(0x7c)]('Removed\x20column\x20%s\x20from\x20%s',_0x4062d9,_0x45383d);})[_0x28761d(0x71)](function(_0x1b192e){const _0x4a3402=_0x28761d;logger[_0x4a3402(0x7c)](util[_0x4a3402(0x7a)](_0x1b192e,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1149_0x3d3b2b(0x7d)]=function(_0x5871bf,_0x405245,_0x3bd3fa){const _0x58a849=this;this['sequence']['enqueue'](function(){const _0xc0ff1e=a1149_0x37d7;return _0x58a849['queryInterface']['renameColumn'](_0x5871bf,_0x405245,_0x3bd3fa)[_0xc0ff1e(0x85)](function(){const _0x2cdaa1=_0xc0ff1e;logger[_0x2cdaa1(0x7c)](_0x2cdaa1(0x6f),_0x405245,_0x3bd3fa,_0x5871bf);})[_0xc0ff1e(0x71)](function(_0x45c900){const _0x14b79f=_0xc0ff1e;logger['info'](util[_0x14b79f(0x7a)](_0x45c900,{'showHidden':![],'depth':null}));});});},Migration[a1149_0x3d3b2b(0x73)][a1149_0x3d3b2b(0x88)]=function(_0x1b6608){const _0x395f17=a1149_0x3d3b2b;this[_0x395f17(0x7f)][_0x395f17(0x86)](function(){return _0x1b6608();});},module[a1149_0x3d3b2b(0x87)]={'up':function(_0x5da86e,_0x50d1f6){return new Promise(function(_0x4a1e72){const _0x29ee65=a1149_0x37d7,_0x24578a=new Migration(_0x5da86e);_0x24578a[_0x29ee65(0x76)](_0x29ee65(0x6e),_0x29ee65(0x6d),{'type':_0x50d1f6[_0x29ee65(0x70)]}),_0x24578a[_0x29ee65(0x88)](_0x4a1e72);});},'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 07d0afd..6cc56ee 100644 --- a/server/migrations/2.3.97.js +++ b/server/migrations/2.3.97.js @@ -1 +1 @@ -const a988_0x5022=['addIndex','migration','ALTER\x20TABLE\x20migrations\x20MODIFY\x20COLUMN\x20version\x20varchar(255)\x20NOT\x20NULL\x20UNIQUE','inspect','removeIndex\x20%s\x20%s','renameColumn','queryInterface','ALTER\x20TABLE\x20migrations\x20ADD\x20COLUMN\x20updatedAt\x20datetime\x20NOT\x20NULL\x20DEFAULT\x20CURRENT_TIMESTAMP\x20AFTER\x20createdAt','ALTER\x20TABLE\x20migrations\x20DROP\x20PRIMARY\x20KEY','ALTER\x20TABLE\x20migrations\x20ADD\x20COLUMN\x20createdAt\x20datetime\x20NOT\x20NULL\x20DEFAULT\x20CURRENT_TIMESTAMP\x20AFTER\x20version','dialPredictiveIntervalMaxThreshold','changeColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','addIndex\x20%s\x20%s\x20%s','catch','sequelize','query','dropTable','then','finally','ALTER\x20TABLE\x20migrations\x20ADD\x20COLUMN\x20id\x20int(11)\x20NOT\x20NULL\x20AUTO_INCREMENT\x20PRIMARY\x20KEY\x20FIRST','removeColumn','info','exports','addColumn','../config/logger','join','enqueue','sequence','stringify','final','UNSIGNED','prototype','dialPredictiveIntervalMinThreshold','removeIndex','Changed\x20column\x20%s\x20in\x20table\x20%s','INTEGER','tail','voice_queues'];(function(_0xbdb01b,_0x50228c){const _0x30aa03=function(_0xdec03f){while(--_0xdec03f){_0xbdb01b['push'](_0xbdb01b['shift']());}};_0x30aa03(++_0x50228c);}(a988_0x5022,0x145));const a988_0x30aa=function(_0xbdb01b,_0x50228c){_0xbdb01b=_0xbdb01b-0x0;let _0x30aa03=a988_0x5022[_0xbdb01b];return _0x30aa03;};const _0x1f9bcf=a988_0x30aa;'use strict';const util=require('util'),logger=require(_0x1f9bcf('0xc'))(_0x1f9bcf('0x1b')),Sequence=function(){};Sequence['prototype'][_0x1f9bcf('0xe')]=function(_0xdec03f){const _0x121e4f=_0x1f9bcf;this[_0x121e4f('0x18')]=this[_0x121e4f('0x18')]?this['tail'][_0x121e4f('0x6')](_0xdec03f):_0xdec03f();};const Migration=function(_0x5ee54c){const _0x965b1b=_0x1f9bcf;this['queryInterface']=_0x5ee54c,this[_0x965b1b('0xf')]=new Sequence();};Migration[_0x1f9bcf('0x13')][_0x1f9bcf('0x25')]=function(_0x2977a9,_0x5625cd,_0x3d527f){const _0x1f4e5d=_0x1f9bcf,_0xe1aa56=this;this[_0x1f4e5d('0xf')][_0x1f4e5d('0xe')](function(){const _0x338677=_0x1f4e5d;return _0xe1aa56[_0x338677('0x20')][_0x338677('0x25')](_0x2977a9,_0x5625cd,_0x3d527f)[_0x338677('0x5')](function(){const _0x2bd480=_0x338677;logger[_0x2bd480('0x9')](_0x2bd480('0x16'),_0x5625cd,_0x2977a9);})['catch'](function(_0x49a5d2){const _0x5832f4=_0x338677;logger[_0x5832f4('0x9')](JSON[_0x5832f4('0x10')](_0x49a5d2));});});},Migration['prototype'][_0x1f9bcf('0xb')]=function(_0x282665,_0x5ba2ef,_0x32b448){const _0x5951b0=_0x1f9bcf,_0x9a81f3=this;this['sequence'][_0x5951b0('0xe')](function(){const _0x37dd11=_0x5951b0;return _0x9a81f3[_0x37dd11('0x20')][_0x37dd11('0xb')](_0x282665,_0x5ba2ef,_0x32b448)[_0x37dd11('0x5')](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x5ba2ef,_0x282665);})[_0x37dd11('0x1')](function(_0x19b6ff){const _0x22888b=_0x37dd11;logger[_0x22888b('0x9')](JSON[_0x22888b('0x10')](_0x19b6ff));});});},Migration[_0x1f9bcf('0x13')][_0x1f9bcf('0x4')]=function(_0x17737a){const _0xd98bb3=_0x1f9bcf,_0x460c89=this;this['sequence'][_0xd98bb3('0xe')](function(){const _0x406d26=_0xd98bb3;return _0x460c89[_0x406d26('0x20')]['dropTable'](_0x17737a,{'force':!![]})[_0x406d26('0x5')](function(){const _0x218756=_0x406d26;logger[_0x218756('0x9')]('table\x20dropped\x20%s',_0x17737a);})[_0x406d26('0x1')](function(_0x538d71){const _0x124ea8=_0x406d26;logger[_0x124ea8('0x9')](JSON[_0x124ea8('0x10')](_0x538d71));});});},Migration[_0x1f9bcf('0x13')][_0x1f9bcf('0x1a')]=function(_0x557022,_0x22a8d4,_0x3e2460){const _0x48ba6a=_0x1f9bcf,_0x33c77d=this;this[_0x48ba6a('0xf')][_0x48ba6a('0xe')](function(){const _0x3e1094=_0x48ba6a;return _0x33c77d[_0x3e1094('0x20')][_0x3e1094('0x1a')](_0x557022,_0x22a8d4,{'indexName':_0x3e2460})[_0x3e1094('0x5')](function(){const _0x354e84=_0x3e1094;logger[_0x354e84('0x9')](_0x354e84('0x0'),_0x557022,_0x22a8d4[_0x354e84('0xd')](','),_0x3e2460);})[_0x3e1094('0x1')](function(_0x28d155){const _0x1f9d50=_0x3e1094;logger[_0x1f9d50('0x9')](JSON[_0x1f9d50('0x10')](_0x28d155));});});},Migration[_0x1f9bcf('0x13')][_0x1f9bcf('0x15')]=function(_0xfa4505,_0x12e04a){const _0x4c202d=_0x1f9bcf,_0x388784=this;this[_0x4c202d('0xf')]['enqueue'](function(){const _0x3fd740=_0x4c202d;return _0x388784[_0x3fd740('0x20')]['removeIndex'](_0xfa4505,_0x12e04a)[_0x3fd740('0x5')](function(){const _0x2db0e5=_0x3fd740;logger[_0x2db0e5('0x9')](_0x2db0e5('0x1e'),_0xfa4505,_0x12e04a);})[_0x3fd740('0x1')](function(_0x3e4d98){const _0x410397=_0x3fd740;logger['info'](JSON[_0x410397('0x10')](_0x3e4d98));});});},Migration['prototype'][_0x1f9bcf('0x3')]=function(_0x37ea13){const _0x33fb12=_0x1f9bcf,_0x415239=this;this['sequence'][_0x33fb12('0xe')](function(){const _0x1e4ed8=_0x33fb12;return _0x415239['queryInterface'][_0x1e4ed8('0x2')][_0x1e4ed8('0x3')](_0x37ea13)[_0x1e4ed8('0x5')](function(){const _0x3ae52c=_0x1e4ed8;logger[_0x3ae52c('0x9')]('query\x20%s',_0x37ea13);})[_0x1e4ed8('0x1')](function(_0x1fc1b5){const _0x39c98f=_0x1e4ed8;logger[_0x39c98f('0x9')](JSON[_0x39c98f('0x10')](_0x1fc1b5));});});},Migration[_0x1f9bcf('0x13')][_0x1f9bcf('0x8')]=function(_0x5da713,_0xad7b78){const _0xbfeff9=this;this['sequence']['enqueue'](function(){const _0x231bb4=a988_0x30aa;return _0xbfeff9[_0x231bb4('0x20')][_0x231bb4('0x8')](_0x5da713,_0xad7b78)[_0x231bb4('0x5')](function(){const _0x1fd517=_0x231bb4;logger[_0x1fd517('0x9')]('Removed\x20column\x20%s\x20from\x20%s',_0xad7b78,_0x5da713);})[_0x231bb4('0x1')](function(_0x4d0e7b){const _0x57fa32=_0x231bb4;logger[_0x57fa32('0x9')](util[_0x57fa32('0x1d')](_0x4d0e7b,{'showHidden':![],'depth':null}));});});},Migration[_0x1f9bcf('0x13')]['renameColumn']=function(_0xb78edd,_0x251414,_0x2e4299){const _0x52b029=_0x1f9bcf,_0x21993c=this;this[_0x52b029('0xf')][_0x52b029('0xe')](function(){const _0x2b49ff=_0x52b029;return _0x21993c[_0x2b49ff('0x20')][_0x2b49ff('0x1f')](_0xb78edd,_0x251414,_0x2e4299)['then'](function(){const _0x33b0a0=_0x2b49ff;logger[_0x33b0a0('0x9')](_0x33b0a0('0x26'),_0x251414,_0x2e4299,_0xb78edd);})[_0x2b49ff('0x1')](function(_0x21b179){const _0x14cfc0=_0x2b49ff;logger[_0x14cfc0('0x9')](util[_0x14cfc0('0x1d')](_0x21b179,{'showHidden':![],'depth':null}));});});},Migration[_0x1f9bcf('0x13')][_0x1f9bcf('0x11')]=function(_0x576c58){const _0x35fc7b=_0x1f9bcf;this['sequence'][_0x35fc7b('0xe')](function(){return _0x576c58();});},module[_0x1f9bcf('0xa')]={'up':function(_0x4e0ca5,_0x537974){return new Promise(function(_0x9c1837){const _0x170fee=a988_0x30aa,_0x270b30=new Migration(_0x4e0ca5);_0x270b30[_0x170fee('0xb')](_0x170fee('0x19'),_0x170fee('0x24'),{'type':_0x537974[_0x170fee('0x17')](0x3)['UNSIGNED'],'defaultValue':0x14}),_0x270b30[_0x170fee('0xb')]('voice_queues',_0x170fee('0x14'),{'type':_0x537974[_0x170fee('0x17')](0x3)[_0x170fee('0x12')],'defaultValue':0xa}),_0x270b30[_0x170fee('0x3')](_0x170fee('0x22')),_0x270b30['query'](_0x170fee('0x1c')),_0x270b30[_0x170fee('0x3')](_0x170fee('0x7')),_0x270b30[_0x170fee('0x3')](_0x170fee('0x23')),_0x270b30[_0x170fee('0x3')](_0x170fee('0x21')),_0x270b30[_0x170fee('0x11')](_0x9c1837);});},'down':function(){}}; \ No newline at end of file +const a1150_0x33fc=['UNSIGNED','inspect','ALTER\x20TABLE\x20migrations\x20DROP\x20PRIMARY\x20KEY','prototype','stringify','info','INTEGER','changeColumn','dialPredictiveIntervalMaxThreshold','addColumn','removeIndex','voice_queues','then','query','ALTER\x20TABLE\x20migrations\x20ADD\x20COLUMN\x20id\x20int(11)\x20NOT\x20NULL\x20AUTO_INCREMENT\x20PRIMARY\x20KEY\x20FIRST','dropTable','final','removeIndex\x20%s\x20%s','tail','ALTER\x20TABLE\x20migrations\x20MODIFY\x20COLUMN\x20version\x20varchar(255)\x20NOT\x20NULL\x20UNIQUE','removeColumn','addIndex','ALTER\x20TABLE\x20migrations\x20ADD\x20COLUMN\x20createdAt\x20datetime\x20NOT\x20NULL\x20DEFAULT\x20CURRENT_TIMESTAMP\x20AFTER\x20version','join','migration','queryInterface','../config/logger','util','enqueue','query\x20%s','sequence','catch','table\x20dropped\x20%s','addIndex\x20%s\x20%s\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s'];(function(_0x119ea8,_0x3a42b7){const _0x33fc14=function(_0x287e7f){while(--_0x287e7f){_0x119ea8['push'](_0x119ea8['shift']());}};_0x33fc14(++_0x3a42b7);}(a1150_0x33fc,0x18e));const a1150_0x287e=function(_0x119ea8,_0x3a42b7){_0x119ea8=_0x119ea8-0xc5;let _0x33fc14=a1150_0x33fc[_0x119ea8];return _0x33fc14;};const a1150_0x29d8ab=a1150_0x287e;'use strict';const util=require(a1150_0x29d8ab(0xd3)),logger=require(a1150_0x29d8ab(0xd2))(a1150_0x29d8ab(0xd0)),Sequence=function(){};Sequence[a1150_0x29d8ab(0xde)][a1150_0x29d8ab(0xd4)]=function(_0x409437){const _0x13fd0e=a1150_0x29d8ab;this['tail']=this[_0x13fd0e(0xca)]?this['tail']['finally'](_0x409437):_0x409437();};const Migration=function(_0x128db0){const _0x196a96=a1150_0x29d8ab;this['queryInterface']=_0x128db0,this[_0x196a96(0xd6)]=new Sequence();};Migration[a1150_0x29d8ab(0xde)]['changeColumn']=function(_0x38944a,_0xa8351a,_0x487610){const _0x53458d=a1150_0x29d8ab,_0x5e95cf=this;this['sequence'][_0x53458d(0xd4)](function(){const _0x4489f5=_0x53458d;return _0x5e95cf[_0x4489f5(0xd1)][_0x4489f5(0xe2)](_0x38944a,_0xa8351a,_0x487610)[_0x4489f5(0xe7)](function(){const _0x483e9b=_0x4489f5;logger[_0x483e9b(0xe0)]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0xa8351a,_0x38944a);})[_0x4489f5(0xd7)](function(_0x192ac7){const _0x3620b8=_0x4489f5;logger['info'](JSON[_0x3620b8(0xdf)](_0x192ac7));});});},Migration[a1150_0x29d8ab(0xde)][a1150_0x29d8ab(0xe4)]=function(_0x3ada22,_0x5bd37c,_0x4344d0){const _0x2e899e=a1150_0x29d8ab,_0x28fb85=this;this[_0x2e899e(0xd6)]['enqueue'](function(){const _0x13f377=_0x2e899e;return _0x28fb85[_0x13f377(0xd1)][_0x13f377(0xe4)](_0x3ada22,_0x5bd37c,_0x4344d0)[_0x13f377(0xe7)](function(){const _0x2863e7=_0x13f377;logger[_0x2863e7(0xe0)]('Added\x20column\x20%s\x20to\x20%s',_0x5bd37c,_0x3ada22);})[_0x13f377(0xd7)](function(_0x387227){const _0x111603=_0x13f377;logger[_0x111603(0xe0)](JSON[_0x111603(0xdf)](_0x387227));});});},Migration['prototype']['dropTable']=function(_0x51fc0c){const _0x1e7007=a1150_0x29d8ab,_0x1e45ae=this;this[_0x1e7007(0xd6)][_0x1e7007(0xd4)](function(){const _0x22c27c=_0x1e7007;return _0x1e45ae[_0x22c27c(0xd1)][_0x22c27c(0xc7)](_0x51fc0c,{'force':!![]})[_0x22c27c(0xe7)](function(){const _0x300603=_0x22c27c;logger['info'](_0x300603(0xd8),_0x51fc0c);})[_0x22c27c(0xd7)](function(_0x555eb9){const _0x27963d=_0x22c27c;logger[_0x27963d(0xe0)](JSON['stringify'](_0x555eb9));});});},Migration[a1150_0x29d8ab(0xde)][a1150_0x29d8ab(0xcd)]=function(_0x39b8cc,_0x35d70c,_0x16352d){const _0x3e90a2=a1150_0x29d8ab,_0x3de41d=this;this[_0x3e90a2(0xd6)][_0x3e90a2(0xd4)](function(){const _0x93b74f=_0x3e90a2;return _0x3de41d['queryInterface'][_0x93b74f(0xcd)](_0x39b8cc,_0x35d70c,{'indexName':_0x16352d})[_0x93b74f(0xe7)](function(){const _0x49f5cb=_0x93b74f;logger[_0x49f5cb(0xe0)](_0x49f5cb(0xd9),_0x39b8cc,_0x35d70c[_0x49f5cb(0xcf)](','),_0x16352d);})['catch'](function(_0x3ab95e){const _0x411b9b=_0x93b74f;logger[_0x411b9b(0xe0)](JSON[_0x411b9b(0xdf)](_0x3ab95e));});});},Migration[a1150_0x29d8ab(0xde)][a1150_0x29d8ab(0xe5)]=function(_0x30e487,_0x5d3abb){const _0x187e73=a1150_0x29d8ab,_0x4ff468=this;this[_0x187e73(0xd6)][_0x187e73(0xd4)](function(){const _0x5cb013=_0x187e73;return _0x4ff468[_0x5cb013(0xd1)]['removeIndex'](_0x30e487,_0x5d3abb)[_0x5cb013(0xe7)](function(){const _0x31c543=_0x5cb013;logger[_0x31c543(0xe0)](_0x31c543(0xc9),_0x30e487,_0x5d3abb);})[_0x5cb013(0xd7)](function(_0xae1026){const _0x14a96d=_0x5cb013;logger['info'](JSON[_0x14a96d(0xdf)](_0xae1026));});});},Migration[a1150_0x29d8ab(0xde)][a1150_0x29d8ab(0xc5)]=function(_0x5540b8){const _0xe89790=a1150_0x29d8ab,_0x2f0f75=this;this[_0xe89790(0xd6)][_0xe89790(0xd4)](function(){const _0x33e131=_0xe89790;return _0x2f0f75['queryInterface']['sequelize'][_0x33e131(0xc5)](_0x5540b8)[_0x33e131(0xe7)](function(){const _0x5c39e5=_0x33e131;logger[_0x5c39e5(0xe0)](_0x5c39e5(0xd5),_0x5540b8);})[_0x33e131(0xd7)](function(_0x214fa2){const _0x320995=_0x33e131;logger['info'](JSON[_0x320995(0xdf)](_0x214fa2));});});},Migration[a1150_0x29d8ab(0xde)][a1150_0x29d8ab(0xcc)]=function(_0x342aa2,_0x5aea70){const _0x491247=a1150_0x29d8ab,_0x4fb053=this;this[_0x491247(0xd6)][_0x491247(0xd4)](function(){const _0x44626f=_0x491247;return _0x4fb053[_0x44626f(0xd1)][_0x44626f(0xcc)](_0x342aa2,_0x5aea70)[_0x44626f(0xe7)](function(){const _0xdac92e=_0x44626f;logger[_0xdac92e(0xe0)]('Removed\x20column\x20%s\x20from\x20%s',_0x5aea70,_0x342aa2);})[_0x44626f(0xd7)](function(_0x24a9c8){const _0x27a67b=_0x44626f;logger[_0x27a67b(0xe0)](util[_0x27a67b(0xdc)](_0x24a9c8,{'showHidden':![],'depth':null}));});});},Migration[a1150_0x29d8ab(0xde)]['renameColumn']=function(_0x3449b8,_0x598b42,_0x1c9863){const _0x183c10=a1150_0x29d8ab,_0x121aae=this;this[_0x183c10(0xd6)]['enqueue'](function(){const _0x44956b=_0x183c10;return _0x121aae['queryInterface']['renameColumn'](_0x3449b8,_0x598b42,_0x1c9863)['then'](function(){const _0x5bdc59=a1150_0x287e;logger[_0x5bdc59(0xe0)](_0x5bdc59(0xda),_0x598b42,_0x1c9863,_0x3449b8);})[_0x44956b(0xd7)](function(_0x5cde53){const _0x1d09bb=_0x44956b;logger[_0x1d09bb(0xe0)](util[_0x1d09bb(0xdc)](_0x5cde53,{'showHidden':![],'depth':null}));});});},Migration[a1150_0x29d8ab(0xde)]['final']=function(_0x42ad5c){const _0x2713de=a1150_0x29d8ab;this[_0x2713de(0xd6)][_0x2713de(0xd4)](function(){return _0x42ad5c();});},module['exports']={'up':function(_0x226dbe,_0x638399){return new Promise(function(_0x3204cc){const _0xe29a07=a1150_0x287e,_0x431895=new Migration(_0x226dbe);_0x431895[_0xe29a07(0xe4)](_0xe29a07(0xe6),_0xe29a07(0xe3),{'type':_0x638399[_0xe29a07(0xe1)](0x3)[_0xe29a07(0xdb)],'defaultValue':0x14}),_0x431895[_0xe29a07(0xe4)]('voice_queues','dialPredictiveIntervalMinThreshold',{'type':_0x638399[_0xe29a07(0xe1)](0x3)['UNSIGNED'],'defaultValue':0xa}),_0x431895[_0xe29a07(0xc5)](_0xe29a07(0xdd)),_0x431895[_0xe29a07(0xc5)](_0xe29a07(0xcb)),_0x431895[_0xe29a07(0xc5)](_0xe29a07(0xc6)),_0x431895[_0xe29a07(0xc5)](_0xe29a07(0xce)),_0x431895[_0xe29a07(0xc5)]('ALTER\x20TABLE\x20migrations\x20ADD\x20COLUMN\x20updatedAt\x20datetime\x20NOT\x20NULL\x20DEFAULT\x20CURRENT_TIMESTAMP\x20AFTER\x20createdAt'),_0x431895[_0xe29a07(0xc8)](_0x3204cc);});},'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 e96e1f2..108c23d 100644 --- a/server/migrations/2.3.98.js +++ b/server/migrations/2.3.98.js @@ -1 +1 @@ -const a989_0x5f33=['sequelize','query','join','tail','Changed\x20column\x20%s\x20in\x20table\x20%s','changeColumn','../config/logger','sequence','dropTable','final','enqueue','info','renameColumn','inspect','removeIndex\x20%s\x20%s','prototype','migration','exports','addIndex','stringify','then','addIndex\x20%s\x20%s\x20%s','catch','addColumn','removeIndex','Added\x20column\x20%s\x20to\x20%s','queryInterface','removeColumn','query\x20%s'];(function(_0x33fb7b,_0x5f33d6){const _0x9be2e4=function(_0x104aab){while(--_0x104aab){_0x33fb7b['push'](_0x33fb7b['shift']());}};_0x9be2e4(++_0x5f33d6);}(a989_0x5f33,0xae));const a989_0x9be2=function(_0x33fb7b,_0x5f33d6){_0x33fb7b=_0x33fb7b-0x0;let _0x9be2e4=a989_0x5f33[_0x33fb7b];return _0x9be2e4;};const _0x2585c6=a989_0x9be2;'use strict';const util=require('util'),logger=require(_0x2585c6('0x6'))(_0x2585c6('0x10')),Sequence=function(){};Sequence[_0x2585c6('0xf')][_0x2585c6('0xa')]=function(_0x104aab){const _0x204121=_0x2585c6;this['tail']=this[_0x204121('0x3')]?this[_0x204121('0x3')]['finally'](_0x104aab):_0x104aab();};const Migration=function(_0x300c63){const _0x471c15=_0x2585c6;this['queryInterface']=_0x300c63,this[_0x471c15('0x7')]=new Sequence();};Migration[_0x2585c6('0xf')][_0x2585c6('0x5')]=function(_0x2f4236,_0x4c9956,_0x5070fa){const _0x30beab=_0x2585c6,_0x1e9435=this;this[_0x30beab('0x7')][_0x30beab('0xa')](function(){const _0x139ed5=_0x30beab;return _0x1e9435['queryInterface'][_0x139ed5('0x5')](_0x2f4236,_0x4c9956,_0x5070fa)['then'](function(){const _0x332429=_0x139ed5;logger[_0x332429('0xb')](_0x332429('0x4'),_0x4c9956,_0x2f4236);})['catch'](function(_0x15b57c){const _0x54b964=_0x139ed5;logger[_0x54b964('0xb')](JSON['stringify'](_0x15b57c));});});},Migration[_0x2585c6('0xf')][_0x2585c6('0x17')]=function(_0xe49fd5,_0x1f24fa,_0x2cd6c5){const _0x2b8be4=_0x2585c6,_0x4499ff=this;this[_0x2b8be4('0x7')][_0x2b8be4('0xa')](function(){const _0x112643=_0x2b8be4;return _0x4499ff[_0x112643('0x1a')][_0x112643('0x17')](_0xe49fd5,_0x1f24fa,_0x2cd6c5)[_0x112643('0x14')](function(){const _0x456ec8=_0x112643;logger['info'](_0x456ec8('0x19'),_0x1f24fa,_0xe49fd5);})[_0x112643('0x16')](function(_0x26959d){const _0xe8acfd=_0x112643;logger[_0xe8acfd('0xb')](JSON[_0xe8acfd('0x13')](_0x26959d));});});},Migration['prototype'][_0x2585c6('0x8')]=function(_0x39a485){const _0x1a1c5b=this;this['sequence']['enqueue'](function(){const _0x2c084d=a989_0x9be2;return _0x1a1c5b[_0x2c084d('0x1a')][_0x2c084d('0x8')](_0x39a485,{'force':!![]})['then'](function(){const _0xfa88a=_0x2c084d;logger[_0xfa88a('0xb')]('table\x20dropped\x20%s',_0x39a485);})[_0x2c084d('0x16')](function(_0x39a26f){const _0xf7ca80=_0x2c084d;logger['info'](JSON[_0xf7ca80('0x13')](_0x39a26f));});});},Migration[_0x2585c6('0xf')][_0x2585c6('0x12')]=function(_0x456e5a,_0x4819b6,_0x2c3afe){const _0x459da7=_0x2585c6,_0x240789=this;this[_0x459da7('0x7')][_0x459da7('0xa')](function(){const _0x14e68d=_0x459da7;return _0x240789[_0x14e68d('0x1a')][_0x14e68d('0x12')](_0x456e5a,_0x4819b6,{'indexName':_0x2c3afe})[_0x14e68d('0x14')](function(){const _0x10f9f1=_0x14e68d;logger[_0x10f9f1('0xb')](_0x10f9f1('0x15'),_0x456e5a,_0x4819b6[_0x10f9f1('0x2')](','),_0x2c3afe);})[_0x14e68d('0x16')](function(_0x38f360){const _0x1b4625=_0x14e68d;logger['info'](JSON[_0x1b4625('0x13')](_0x38f360));});});},Migration[_0x2585c6('0xf')][_0x2585c6('0x18')]=function(_0x580804,_0x5d05e3){const _0x1e3c00=_0x2585c6,_0x222242=this;this['sequence'][_0x1e3c00('0xa')](function(){const _0x46a9d5=_0x1e3c00;return _0x222242['queryInterface'][_0x46a9d5('0x18')](_0x580804,_0x5d05e3)[_0x46a9d5('0x14')](function(){const _0x452069=_0x46a9d5;logger[_0x452069('0xb')](_0x452069('0xe'),_0x580804,_0x5d05e3);})[_0x46a9d5('0x16')](function(_0x7f4c6b){const _0x178f0a=_0x46a9d5;logger[_0x178f0a('0xb')](JSON[_0x178f0a('0x13')](_0x7f4c6b));});});},Migration[_0x2585c6('0xf')][_0x2585c6('0x1')]=function(_0xf69ee1){const _0xbf023e=_0x2585c6,_0x5a064b=this;this[_0xbf023e('0x7')]['enqueue'](function(){const _0x5cbbf5=_0xbf023e;return _0x5a064b['queryInterface'][_0x5cbbf5('0x0')][_0x5cbbf5('0x1')](_0xf69ee1)['then'](function(){const _0x38afa6=_0x5cbbf5;logger[_0x38afa6('0xb')](_0x38afa6('0x1c'),_0xf69ee1);})[_0x5cbbf5('0x16')](function(_0x310c30){logger['info'](JSON['stringify'](_0x310c30));});});},Migration[_0x2585c6('0xf')]['removeColumn']=function(_0x4c294a,_0x9dadbc){const _0x47a8db=_0x2585c6,_0x53019b=this;this[_0x47a8db('0x7')][_0x47a8db('0xa')](function(){const _0x400a81=_0x47a8db;return _0x53019b['queryInterface'][_0x400a81('0x1b')](_0x4c294a,_0x9dadbc)[_0x400a81('0x14')](function(){const _0x4ded1d=_0x400a81;logger[_0x4ded1d('0xb')]('Removed\x20column\x20%s\x20from\x20%s',_0x9dadbc,_0x4c294a);})[_0x400a81('0x16')](function(_0x505926){const _0x150420=_0x400a81;logger['info'](util[_0x150420('0xd')](_0x505926,{'showHidden':![],'depth':null}));});});},Migration[_0x2585c6('0xf')]['renameColumn']=function(_0x33b5bb,_0x439b75,_0x35d514){const _0x34b3f4=_0x2585c6,_0x3058c2=this;this['sequence'][_0x34b3f4('0xa')](function(){const _0x33a927=_0x34b3f4;return _0x3058c2[_0x33a927('0x1a')][_0x33a927('0xc')](_0x33b5bb,_0x439b75,_0x35d514)[_0x33a927('0x14')](function(){logger['info']('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x439b75,_0x35d514,_0x33b5bb);})['catch'](function(_0x19ba19){const _0x13a184=_0x33a927;logger['info'](util[_0x13a184('0xd')](_0x19ba19,{'showHidden':![],'depth':null}));});});},Migration[_0x2585c6('0xf')][_0x2585c6('0x9')]=function(_0x42a01a){const _0x5a6bc4=_0x2585c6;this[_0x5a6bc4('0x7')]['enqueue'](function(){return _0x42a01a();});},module[_0x2585c6('0x11')]={'up':function(_0x2ec8af){return new Promise(function(_0x2d0582){const _0x1ec07b=a989_0x9be2,_0x398d36=new Migration(_0x2ec8af);_0x398d36[_0x1ec07b('0x9')](_0x2d0582);});},'down':function(){}}; \ No newline at end of file +const a1151_0x979a=['addColumn','queryInterface','Changed\x20column\x20%s\x20in\x20table\x20%s','removeColumn','table\x20dropped\x20%s','migration','then','dropTable','sequelize','tail','sequence','query','removeIndex','../config/logger','addIndex\x20%s\x20%s\x20%s','final','inspect','enqueue','changeColumn','renameColumn','Added\x20column\x20%s\x20to\x20%s','info','stringify','catch','prototype','finally','Removed\x20column\x20%s\x20from\x20%s','addIndex','join','exports','util'];(function(_0x4c8736,_0x34cccc){const _0x979adc=function(_0x3059b8){while(--_0x3059b8){_0x4c8736['push'](_0x4c8736['shift']());}};_0x979adc(++_0x34cccc);}(a1151_0x979a,0xd4));const a1151_0x3059=function(_0x4c8736,_0x34cccc){_0x4c8736=_0x4c8736-0x9f;let _0x979adc=a1151_0x979a[_0x4c8736];return _0x979adc;};const a1151_0x542b0b=a1151_0x3059;'use strict';const util=require(a1151_0x542b0b(0xa3)),logger=require(a1151_0x542b0b(0xb1))(a1151_0x542b0b(0xa9)),Sequence=function(){};Sequence[a1151_0x542b0b(0xbc)][a1151_0x542b0b(0xb5)]=function(_0x5806bc){const _0x151200=a1151_0x542b0b;this[_0x151200(0xad)]=this[_0x151200(0xad)]?this['tail'][_0x151200(0xbd)](_0x5806bc):_0x5806bc();};const Migration=function(_0xf27634){const _0x2db19e=a1151_0x542b0b;this[_0x2db19e(0xa5)]=_0xf27634,this[_0x2db19e(0xae)]=new Sequence();};Migration[a1151_0x542b0b(0xbc)][a1151_0x542b0b(0xb6)]=function(_0x26722b,_0x50731a,_0x2ffa75){const _0x3bde63=a1151_0x542b0b,_0x3398ea=this;this['sequence'][_0x3bde63(0xb5)](function(){const _0x5aaa29=_0x3bde63;return _0x3398ea[_0x5aaa29(0xa5)][_0x5aaa29(0xb6)](_0x26722b,_0x50731a,_0x2ffa75)[_0x5aaa29(0xaa)](function(){const _0x310fe8=_0x5aaa29;logger[_0x310fe8(0xb9)](_0x310fe8(0xa6),_0x50731a,_0x26722b);})[_0x5aaa29(0xbb)](function(_0x2daddc){const _0x4cf3ec=_0x5aaa29;logger[_0x4cf3ec(0xb9)](JSON[_0x4cf3ec(0xba)](_0x2daddc));});});},Migration[a1151_0x542b0b(0xbc)]['addColumn']=function(_0x408d2e,_0x2ce026,_0x1664c4){const _0x51ebb3=a1151_0x542b0b,_0x33fe43=this;this[_0x51ebb3(0xae)][_0x51ebb3(0xb5)](function(){const _0x358922=_0x51ebb3;return _0x33fe43[_0x358922(0xa5)][_0x358922(0xa4)](_0x408d2e,_0x2ce026,_0x1664c4)[_0x358922(0xaa)](function(){const _0x1a5c4b=_0x358922;logger[_0x1a5c4b(0xb9)](_0x1a5c4b(0xb8),_0x2ce026,_0x408d2e);})['catch'](function(_0x5c8e17){const _0x113da4=_0x358922;logger[_0x113da4(0xb9)](JSON[_0x113da4(0xba)](_0x5c8e17));});});},Migration[a1151_0x542b0b(0xbc)][a1151_0x542b0b(0xab)]=function(_0x11fe9c){const _0x59f041=this;this['sequence']['enqueue'](function(){const _0x15870d=a1151_0x3059;return _0x59f041[_0x15870d(0xa5)][_0x15870d(0xab)](_0x11fe9c,{'force':!![]})[_0x15870d(0xaa)](function(){const _0x431776=_0x15870d;logger[_0x431776(0xb9)](_0x431776(0xa8),_0x11fe9c);})[_0x15870d(0xbb)](function(_0x13519a){const _0x13e7c0=_0x15870d;logger[_0x13e7c0(0xb9)](JSON['stringify'](_0x13519a));});});},Migration['prototype'][a1151_0x542b0b(0xa0)]=function(_0x384930,_0x100b13,_0x59e71f){const _0x457d5e=a1151_0x542b0b,_0x1bfbd2=this;this[_0x457d5e(0xae)][_0x457d5e(0xb5)](function(){const _0x2f0010=_0x457d5e;return _0x1bfbd2[_0x2f0010(0xa5)]['addIndex'](_0x384930,_0x100b13,{'indexName':_0x59e71f})[_0x2f0010(0xaa)](function(){const _0x157240=_0x2f0010;logger['info'](_0x157240(0xb2),_0x384930,_0x100b13[_0x157240(0xa1)](','),_0x59e71f);})['catch'](function(_0x303f47){const _0x452360=_0x2f0010;logger[_0x452360(0xb9)](JSON['stringify'](_0x303f47));});});},Migration[a1151_0x542b0b(0xbc)]['removeIndex']=function(_0x508c8d,_0x37c3c5){const _0x513c92=a1151_0x542b0b,_0x3c315d=this;this[_0x513c92(0xae)]['enqueue'](function(){const _0x2f3488=_0x513c92;return _0x3c315d[_0x2f3488(0xa5)][_0x2f3488(0xb0)](_0x508c8d,_0x37c3c5)['then'](function(){logger['info']('removeIndex\x20%s\x20%s',_0x508c8d,_0x37c3c5);})[_0x2f3488(0xbb)](function(_0x31a538){const _0x59469b=_0x2f3488;logger[_0x59469b(0xb9)](JSON[_0x59469b(0xba)](_0x31a538));});});},Migration['prototype'][a1151_0x542b0b(0xaf)]=function(_0x314b3e){const _0x1f55e9=a1151_0x542b0b,_0x150475=this;this['sequence'][_0x1f55e9(0xb5)](function(){const _0x5c8723=_0x1f55e9;return _0x150475[_0x5c8723(0xa5)][_0x5c8723(0xac)]['query'](_0x314b3e)[_0x5c8723(0xaa)](function(){const _0x343744=_0x5c8723;logger[_0x343744(0xb9)]('query\x20%s',_0x314b3e);})[_0x5c8723(0xbb)](function(_0x2d4bd1){const _0x5d53e5=_0x5c8723;logger['info'](JSON[_0x5d53e5(0xba)](_0x2d4bd1));});});},Migration['prototype'][a1151_0x542b0b(0xa7)]=function(_0x36ec39,_0x345b8f){const _0x2d8ce5=a1151_0x542b0b,_0x560fe1=this;this[_0x2d8ce5(0xae)][_0x2d8ce5(0xb5)](function(){const _0x40596d=_0x2d8ce5;return _0x560fe1[_0x40596d(0xa5)][_0x40596d(0xa7)](_0x36ec39,_0x345b8f)['then'](function(){const _0x466f66=_0x40596d;logger[_0x466f66(0xb9)](_0x466f66(0x9f),_0x345b8f,_0x36ec39);})[_0x40596d(0xbb)](function(_0x5700a2){logger['info'](util['inspect'](_0x5700a2,{'showHidden':![],'depth':null}));});});},Migration[a1151_0x542b0b(0xbc)][a1151_0x542b0b(0xb7)]=function(_0x8715bf,_0x438178,_0x4f47b5){const _0x3977bf=a1151_0x542b0b,_0x4ea016=this;this[_0x3977bf(0xae)][_0x3977bf(0xb5)](function(){const _0x3fa4d5=_0x3977bf;return _0x4ea016[_0x3fa4d5(0xa5)][_0x3fa4d5(0xb7)](_0x8715bf,_0x438178,_0x4f47b5)[_0x3fa4d5(0xaa)](function(){const _0x1d18d9=_0x3fa4d5;logger[_0x1d18d9(0xb9)]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x438178,_0x4f47b5,_0x8715bf);})[_0x3fa4d5(0xbb)](function(_0x57bfb3){const _0x2dc4d2=_0x3fa4d5;logger[_0x2dc4d2(0xb9)](util[_0x2dc4d2(0xb4)](_0x57bfb3,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1151_0x542b0b(0xb3)]=function(_0x4f3411){const _0x118175=a1151_0x542b0b;this[_0x118175(0xae)][_0x118175(0xb5)](function(){return _0x4f3411();});},module[a1151_0x542b0b(0xa2)]={'up':function(_0x310d64){return new Promise(function(_0x30e67c){const _0x47ca88=new Migration(_0x310d64);_0x47ca88['final'](_0x30e67c);});},'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 c2dd884..80266e0 100644 --- a/server/migrations/2.4.0.js +++ b/server/migrations/2.4.0.js @@ -1 +1 @@ -const a990_0x53f4=['medium','subject','ALTER\x20TABLE\x20chat_applications\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci','mail_interactions','sequelize','lastMsgText','TEXT','query\x20%s','migration','stringify','addColumn','addIndex','ALTER\x20TABLE\x20sms_applications\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci','table\x20dropped\x20%s','tiny','enqueue','body','ALTER\x20TABLE\x20fax_applications\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci','users','sms_messages','removeIndex','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','fti_mail_messages','sequence','indexName','prototype','phoneBarEnableVideoRecording','join','Removed\x20column\x20%s\x20from\x20%s','ALTER\x20TABLE\x20mail_applications\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci','dropTable','Changed\x20column\x20%s\x20in\x20table\x20%s','mail_messages','renameColumn','screenrecording','fti_openchannel_messages','phoneBarEnableAutomaticScreenRecording','catch','changeColumn','openchannel_messages','info','queryInterface','query','phoneBarEnableScreenRecordingByAgent','util','indicesType','finally','addIndex\x20%s\x20%s\x20%s\x20[%s]','removeColumn','tail','BOOLEAN','then','final','FULLTEXT','fti_chat_messages'];(function(_0x1ab209,_0x53f4cb){const _0x2c7b53=function(_0x308287){while(--_0x308287){_0x1ab209['push'](_0x1ab209['shift']());}};_0x2c7b53(++_0x53f4cb);}(a990_0x53f4,0x1ab));const a990_0x2c7b=function(_0x1ab209,_0x53f4cb){_0x1ab209=_0x1ab209-0x0;let _0x2c7b53=a990_0x53f4[_0x1ab209];return _0x2c7b53;};const _0x4d6766=a990_0x2c7b;'use strict';const util=require(_0x4d6766('0x2')),logger=require('../config/logger')(_0x4d6766('0x15')),Sequence=function(){};Sequence['prototype']['enqueue']=function(_0x308287){const _0x22fefc=_0x4d6766;this[_0x22fefc('0x7')]=this[_0x22fefc('0x7')]?this['tail'][_0x22fefc('0x4')](_0x308287):_0x308287();};const Migration=function(_0x235072){const _0x2542e4=_0x4d6766;this[_0x2542e4('0x36')]=_0x235072,this['sequence']=new Sequence();};Migration[_0x4d6766('0x26')][_0x4d6766('0x33')]=function(_0x3b86a0,_0x5613eb,_0x31acbc){const _0x333a82=_0x4d6766,_0x5c486f=this;this[_0x333a82('0x24')][_0x333a82('0x1c')](function(){const _0x34f241=_0x333a82;return _0x5c486f[_0x34f241('0x36')][_0x34f241('0x33')](_0x3b86a0,_0x5613eb,_0x31acbc)['then'](function(){const _0x4ef97a=_0x34f241;logger[_0x4ef97a('0x35')](_0x4ef97a('0x2c'),_0x5613eb,_0x3b86a0);})[_0x34f241('0x32')](function(_0x5cd0d9){const _0x27c9c7=_0x34f241;logger['info'](JSON[_0x27c9c7('0x16')](_0x5cd0d9));});});},Migration[_0x4d6766('0x26')]['addColumn']=function(_0x15f974,_0x3f92dd,_0x30d586){const _0x3852c1=_0x4d6766,_0x50e18b=this;this[_0x3852c1('0x24')][_0x3852c1('0x1c')](function(){const _0x28f8ae=_0x3852c1;return _0x50e18b[_0x28f8ae('0x36')][_0x28f8ae('0x17')](_0x15f974,_0x3f92dd,_0x30d586)['then'](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x3f92dd,_0x15f974);})[_0x28f8ae('0x32')](function(_0xbb3e0f){const _0xf69409=_0x28f8ae;logger[_0xf69409('0x35')](JSON[_0xf69409('0x16')](_0xbb3e0f));});});},Migration[_0x4d6766('0x26')][_0x4d6766('0x2b')]=function(_0x50a84f){const _0x110aa8=_0x4d6766,_0xa0eb5a=this;this[_0x110aa8('0x24')][_0x110aa8('0x1c')](function(){const _0x126ed6=_0x110aa8;return _0xa0eb5a[_0x126ed6('0x36')][_0x126ed6('0x2b')](_0x50a84f,{'force':!![]})[_0x126ed6('0x9')](function(){const _0x521622=_0x126ed6;logger[_0x521622('0x35')](_0x521622('0x1a'),_0x50a84f);})[_0x126ed6('0x32')](function(_0x20435e){logger['info'](JSON['stringify'](_0x20435e));});});},Migration[_0x4d6766('0x26')][_0x4d6766('0x18')]=function(_0x3557c3,_0x56ec6a,_0x493272){const _0x2fef76=_0x4d6766,_0x5bde45=this;this['sequence'][_0x2fef76('0x1c')](function(){const _0x11816b=_0x2fef76;return _0x5bde45['queryInterface'][_0x11816b('0x18')](_0x3557c3,_0x56ec6a,{'indexName':_0x493272[_0x11816b('0x25')],'indicesType':_0x493272[_0x11816b('0x3')]})['then'](function(){const _0x5133bb=_0x11816b;logger['info'](_0x5133bb('0x5'),_0x3557c3,_0x56ec6a[_0x5133bb('0x28')](','),_0x493272['indexName'],_0x493272[_0x5133bb('0x3')]);})[_0x11816b('0x32')](function(_0x50f3fa){const _0x1b34c9=_0x11816b;logger['info'](JSON[_0x1b34c9('0x16')](_0x50f3fa));});});},Migration['prototype'][_0x4d6766('0x21')]=function(_0x4a23fc,_0x163dc1){const _0x11d4c2=_0x4d6766,_0x484c11=this;this['sequence'][_0x11d4c2('0x1c')](function(){const _0x167c81=_0x11d4c2;return _0x484c11['queryInterface'][_0x167c81('0x21')](_0x4a23fc,_0x163dc1)[_0x167c81('0x9')](function(){const _0x4bc17a=_0x167c81;logger[_0x4bc17a('0x35')]('removeIndex\x20%s\x20%s',_0x4a23fc,_0x163dc1);})[_0x167c81('0x32')](function(_0x1c013e){const _0x52259b=_0x167c81;logger[_0x52259b('0x35')](JSON[_0x52259b('0x16')](_0x1c013e));});});},Migration[_0x4d6766('0x26')][_0x4d6766('0x0')]=function(_0x435fca){const _0x440dad=_0x4d6766,_0x3a43bb=this;this[_0x440dad('0x24')][_0x440dad('0x1c')](function(){const _0x574511=_0x440dad;return _0x3a43bb[_0x574511('0x36')][_0x574511('0x11')]['query'](_0x435fca)[_0x574511('0x9')](function(){const _0x3c9069=_0x574511;logger[_0x3c9069('0x35')](_0x3c9069('0x14'),_0x435fca);})[_0x574511('0x32')](function(_0x23df02){const _0x214a89=_0x574511;logger[_0x214a89('0x35')](JSON['stringify'](_0x23df02));});});},Migration[_0x4d6766('0x26')][_0x4d6766('0x6')]=function(_0x3e9cf1,_0x3880df){const _0xd6494=_0x4d6766,_0x4bf8c5=this;this[_0xd6494('0x24')][_0xd6494('0x1c')](function(){const _0x4eb4d1=_0xd6494;return _0x4bf8c5[_0x4eb4d1('0x36')]['removeColumn'](_0x3e9cf1,_0x3880df)['then'](function(){const _0x33d53f=_0x4eb4d1;logger[_0x33d53f('0x35')](_0x33d53f('0x29'),_0x3880df,_0x3e9cf1);})[_0x4eb4d1('0x32')](function(_0x46f452){const _0x40910e=_0x4eb4d1;logger[_0x40910e('0x35')](util['inspect'](_0x46f452,{'showHidden':![],'depth':null}));});});},Migration['prototype']['renameColumn']=function(_0xf245a1,_0x2e4775,_0x39d276){const _0x3dc379=_0x4d6766,_0x29196d=this;this[_0x3dc379('0x24')][_0x3dc379('0x1c')](function(){const _0x4bf423=_0x3dc379;return _0x29196d['queryInterface'][_0x4bf423('0x2e')](_0xf245a1,_0x2e4775,_0x39d276)[_0x4bf423('0x9')](function(){const _0xb4edbf=_0x4bf423;logger['info'](_0xb4edbf('0x22'),_0x2e4775,_0x39d276,_0xf245a1);})[_0x4bf423('0x32')](function(_0x53ff92){const _0x472ae9=_0x4bf423;logger[_0x472ae9('0x35')](util['inspect'](_0x53ff92,{'showHidden':![],'depth':null}));});});},Migration[_0x4d6766('0x26')][_0x4d6766('0xa')]=function(_0x23f6fb){const _0x69bbc4=_0x4d6766;this[_0x69bbc4('0x24')][_0x69bbc4('0x1c')](function(){return _0x23f6fb();});},module['exports']={'up':function(_0x2186ee,_0x4261ff){return new Promise(function(_0x246887){const _0x3db7f6=a990_0x2c7b,_0x4b5dd7=new Migration(_0x2186ee);_0x4b5dd7[_0x3db7f6('0x2e')]('users',_0x3db7f6('0x27'),_0x3db7f6('0x1')),_0x4b5dd7['addColumn'](_0x3db7f6('0x1f'),_0x3db7f6('0x31'),{'type':_0x4261ff[_0x3db7f6('0x8')],'defaultValue':![]}),_0x4b5dd7[_0x3db7f6('0x17')](_0x3db7f6('0x1f'),_0x3db7f6('0x2f'),{'type':_0x4261ff[_0x3db7f6('0x8')],'defaultValue':![]}),_0x4b5dd7['addIndex']('chat_messages',[_0x3db7f6('0x1d')],{'indexName':_0x3db7f6('0xc'),'indicesType':_0x3db7f6('0xb')}),_0x4b5dd7['addIndex'](_0x3db7f6('0x10'),['subject','to'],{'indexName':'fti_mail_interactions','indicesType':_0x3db7f6('0xb')}),_0x4b5dd7['addColumn'](_0x3db7f6('0x10'),_0x3db7f6('0x12'),{'type':_0x4261ff[_0x3db7f6('0x13')](_0x3db7f6('0x1b')),'after':'lastMsgBody'}),_0x4b5dd7[_0x3db7f6('0x17')](_0x3db7f6('0x2d'),'plainBody',{'type':_0x4261ff[_0x3db7f6('0x13')](_0x3db7f6('0xd')),'after':_0x3db7f6('0x1d')}),_0x4b5dd7[_0x3db7f6('0x18')](_0x3db7f6('0x2d'),['plainBody',_0x3db7f6('0xe')],{'indexName':_0x3db7f6('0x23'),'indicesType':_0x3db7f6('0xb')}),_0x4b5dd7[_0x3db7f6('0x18')](_0x3db7f6('0x34'),[_0x3db7f6('0x1d')],{'indexName':_0x3db7f6('0x30'),'indicesType':'FULLTEXT'}),_0x4b5dd7[_0x3db7f6('0x18')](_0x3db7f6('0x20'),[_0x3db7f6('0x1d')],{'indexName':'fti_sms_messages','indicesType':_0x3db7f6('0xb')}),_0x4b5dd7[_0x3db7f6('0x0')](_0x3db7f6('0xf')),_0x4b5dd7['query'](_0x3db7f6('0x1e')),_0x4b5dd7[_0x3db7f6('0x0')](_0x3db7f6('0x2a')),_0x4b5dd7[_0x3db7f6('0x0')]('ALTER\x20TABLE\x20openchannel_applications\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci'),_0x4b5dd7[_0x3db7f6('0x0')](_0x3db7f6('0x19')),_0x4b5dd7[_0x3db7f6('0xa')](_0x246887);});},'down':function(){}}; \ No newline at end of file +const a1152_0x3b1d=['enqueue','chat_messages','ALTER\x20TABLE\x20fax_applications\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci','changeColumn','addColumn','FULLTEXT','indicesType','inspect','Changed\x20column\x20%s\x20in\x20table\x20%s','screenrecording','openchannel_messages','stringify','fti_mail_interactions','indexName','fti_openchannel_messages','info','query','sequence','final','subject','migration','ALTER\x20TABLE\x20mail_applications\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci','mail_messages','addIndex','ALTER\x20TABLE\x20chat_applications\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci','phoneBarEnableAutomaticScreenRecording','ALTER\x20TABLE\x20openchannel_applications\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci','finally','queryInterface','lastMsgText','prototype','tail','renameColumn','removeIndex','catch','sms_messages','fti_mail_messages','fti_sms_messages','../config/logger','Added\x20column\x20%s\x20to\x20%s','removeColumn','tiny','medium','fti_chat_messages','sequelize','BOOLEAN','dropTable','exports','lastMsgBody','body','mail_interactions','phoneBarEnableScreenRecordingByAgent','TEXT','phoneBarEnableVideoRecording','then','plainBody'];(function(_0x5eaf4e,_0x724571){const _0x3b1d2c=function(_0x573806){while(--_0x573806){_0x5eaf4e['push'](_0x5eaf4e['shift']());}};_0x3b1d2c(++_0x724571);}(a1152_0x3b1d,0x187));const a1152_0x5738=function(_0x5eaf4e,_0x724571){_0x5eaf4e=_0x5eaf4e-0x19b;let _0x3b1d2c=a1152_0x3b1d[_0x5eaf4e];return _0x3b1d2c;};const a1152_0x381b44=a1152_0x5738;'use strict';const util=require('util'),logger=require(a1152_0x381b44(0x1c2))(a1152_0x381b44(0x1b0)),Sequence=function(){};Sequence['prototype'][a1152_0x381b44(0x19c)]=function(_0x92104f){const _0x30d334=a1152_0x381b44;this['tail']=this[_0x30d334(0x1bb)]?this['tail'][_0x30d334(0x1b7)](_0x92104f):_0x92104f();};const Migration=function(_0x46b726){this['queryInterface']=_0x46b726,this['sequence']=new Sequence();};Migration[a1152_0x381b44(0x1ba)][a1152_0x381b44(0x19f)]=function(_0x29bd38,_0x571a67,_0x32b092){const _0x397cba=this;this['sequence']['enqueue'](function(){const _0x3a87f3=a1152_0x5738;return _0x397cba['queryInterface'][_0x3a87f3(0x19f)](_0x29bd38,_0x571a67,_0x32b092)[_0x3a87f3(0x1d2)](function(){const _0x5bb7d6=_0x3a87f3;logger[_0x5bb7d6(0x1ab)](_0x5bb7d6(0x1a4),_0x571a67,_0x29bd38);})['catch'](function(_0x40ae4e){const _0x3e3f6a=_0x3a87f3;logger[_0x3e3f6a(0x1ab)](JSON[_0x3e3f6a(0x1a7)](_0x40ae4e));});});},Migration[a1152_0x381b44(0x1ba)][a1152_0x381b44(0x1a0)]=function(_0x10430c,_0x393a4d,_0x4e65dc){const _0x2df177=a1152_0x381b44,_0x2d5ae6=this;this[_0x2df177(0x1ad)][_0x2df177(0x19c)](function(){const _0x408f8f=_0x2df177;return _0x2d5ae6[_0x408f8f(0x1b8)][_0x408f8f(0x1a0)](_0x10430c,_0x393a4d,_0x4e65dc)[_0x408f8f(0x1d2)](function(){const _0x49fdcc=_0x408f8f;logger[_0x49fdcc(0x1ab)](_0x49fdcc(0x1c3),_0x393a4d,_0x10430c);})['catch'](function(_0x4f37e1){const _0x3a9dcf=_0x408f8f;logger[_0x3a9dcf(0x1ab)](JSON[_0x3a9dcf(0x1a7)](_0x4f37e1));});});},Migration[a1152_0x381b44(0x1ba)][a1152_0x381b44(0x1ca)]=function(_0x9bab1b){const _0xbe09ed=a1152_0x381b44,_0x4bd53c=this;this[_0xbe09ed(0x1ad)][_0xbe09ed(0x19c)](function(){const _0x5e2b5f=_0xbe09ed;return _0x4bd53c[_0x5e2b5f(0x1b8)]['dropTable'](_0x9bab1b,{'force':!![]})['then'](function(){const _0x1fd7fb=_0x5e2b5f;logger[_0x1fd7fb(0x1ab)]('table\x20dropped\x20%s',_0x9bab1b);})[_0x5e2b5f(0x1be)](function(_0x229b71){const _0x4928c0=_0x5e2b5f;logger[_0x4928c0(0x1ab)](JSON[_0x4928c0(0x1a7)](_0x229b71));});});},Migration['prototype'][a1152_0x381b44(0x1b3)]=function(_0x106549,_0x50b441,_0xbb1d2d){const _0x40bf3a=a1152_0x381b44,_0x5b049e=this;this[_0x40bf3a(0x1ad)][_0x40bf3a(0x19c)](function(){const _0x48c694=_0x40bf3a;return _0x5b049e['queryInterface'][_0x48c694(0x1b3)](_0x106549,_0x50b441,{'indexName':_0xbb1d2d[_0x48c694(0x1a9)],'indicesType':_0xbb1d2d[_0x48c694(0x1a2)]})[_0x48c694(0x1d2)](function(){const _0x20ddcc=_0x48c694;logger[_0x20ddcc(0x1ab)]('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x106549,_0x50b441['join'](','),_0xbb1d2d[_0x20ddcc(0x1a9)],_0xbb1d2d[_0x20ddcc(0x1a2)]);})[_0x48c694(0x1be)](function(_0x2502a7){const _0x2977b9=_0x48c694;logger[_0x2977b9(0x1ab)](JSON[_0x2977b9(0x1a7)](_0x2502a7));});});},Migration['prototype'][a1152_0x381b44(0x1bd)]=function(_0x5e4bd5,_0xa97e94){const _0x565398=a1152_0x381b44,_0x224a7a=this;this[_0x565398(0x1ad)][_0x565398(0x19c)](function(){const _0x138e31=_0x565398;return _0x224a7a[_0x138e31(0x1b8)][_0x138e31(0x1bd)](_0x5e4bd5,_0xa97e94)[_0x138e31(0x1d2)](function(){logger['info']('removeIndex\x20%s\x20%s',_0x5e4bd5,_0xa97e94);})[_0x138e31(0x1be)](function(_0x4e2ac9){logger['info'](JSON['stringify'](_0x4e2ac9));});});},Migration['prototype'][a1152_0x381b44(0x1ac)]=function(_0x23a1ba){const _0x7d5b69=a1152_0x381b44,_0x465928=this;this[_0x7d5b69(0x1ad)]['enqueue'](function(){const _0x1b239c=_0x7d5b69;return _0x465928[_0x1b239c(0x1b8)][_0x1b239c(0x1c8)][_0x1b239c(0x1ac)](_0x23a1ba)[_0x1b239c(0x1d2)](function(){const _0x21bd91=_0x1b239c;logger[_0x21bd91(0x1ab)]('query\x20%s',_0x23a1ba);})['catch'](function(_0x2ab7fe){const _0x5557bc=_0x1b239c;logger[_0x5557bc(0x1ab)](JSON['stringify'](_0x2ab7fe));});});},Migration[a1152_0x381b44(0x1ba)][a1152_0x381b44(0x1c4)]=function(_0x5e93d4,_0x57e5b2){const _0x1df442=a1152_0x381b44,_0x1f43f1=this;this[_0x1df442(0x1ad)]['enqueue'](function(){const _0x20ebc3=_0x1df442;return _0x1f43f1[_0x20ebc3(0x1b8)][_0x20ebc3(0x1c4)](_0x5e93d4,_0x57e5b2)[_0x20ebc3(0x1d2)](function(){const _0x390d76=_0x20ebc3;logger[_0x390d76(0x1ab)]('Removed\x20column\x20%s\x20from\x20%s',_0x57e5b2,_0x5e93d4);})[_0x20ebc3(0x1be)](function(_0x30753d){const _0xfdcc60=_0x20ebc3;logger[_0xfdcc60(0x1ab)](util[_0xfdcc60(0x1a3)](_0x30753d,{'showHidden':![],'depth':null}));});});},Migration[a1152_0x381b44(0x1ba)][a1152_0x381b44(0x1bc)]=function(_0x3eb8c2,_0x50f8de,_0x29a2f9){const _0x328c43=a1152_0x381b44,_0x233877=this;this[_0x328c43(0x1ad)][_0x328c43(0x19c)](function(){const _0xff5fd5=_0x328c43;return _0x233877[_0xff5fd5(0x1b8)][_0xff5fd5(0x1bc)](_0x3eb8c2,_0x50f8de,_0x29a2f9)[_0xff5fd5(0x1d2)](function(){const _0x2cb2f5=_0xff5fd5;logger[_0x2cb2f5(0x1ab)]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x50f8de,_0x29a2f9,_0x3eb8c2);})[_0xff5fd5(0x1be)](function(_0x43a2ca){const _0x16be10=_0xff5fd5;logger[_0x16be10(0x1ab)](util[_0x16be10(0x1a3)](_0x43a2ca,{'showHidden':![],'depth':null}));});});},Migration[a1152_0x381b44(0x1ba)][a1152_0x381b44(0x1ae)]=function(_0x2da843){const _0x4f11bd=a1152_0x381b44;this[_0x4f11bd(0x1ad)][_0x4f11bd(0x19c)](function(){return _0x2da843();});},module[a1152_0x381b44(0x1cb)]={'up':function(_0x2661e7,_0x367c87){return new Promise(function(_0x28cf8b){const _0x1ad40f=a1152_0x5738,_0x4a931c=new Migration(_0x2661e7);_0x4a931c['renameColumn']('users',_0x1ad40f(0x1d1),_0x1ad40f(0x1cf)),_0x4a931c['addColumn']('users',_0x1ad40f(0x1b5),{'type':_0x367c87[_0x1ad40f(0x1c9)],'defaultValue':![]}),_0x4a931c['addColumn']('users',_0x1ad40f(0x1a5),{'type':_0x367c87[_0x1ad40f(0x1c9)],'defaultValue':![]}),_0x4a931c[_0x1ad40f(0x1b3)](_0x1ad40f(0x19d),[_0x1ad40f(0x1cd)],{'indexName':_0x1ad40f(0x1c7),'indicesType':_0x1ad40f(0x1a1)}),_0x4a931c[_0x1ad40f(0x1b3)](_0x1ad40f(0x1ce),[_0x1ad40f(0x1af),'to'],{'indexName':_0x1ad40f(0x1a8),'indicesType':'FULLTEXT'}),_0x4a931c[_0x1ad40f(0x1a0)](_0x1ad40f(0x1ce),_0x1ad40f(0x1b9),{'type':_0x367c87[_0x1ad40f(0x1d0)](_0x1ad40f(0x1c5)),'after':_0x1ad40f(0x1cc)}),_0x4a931c['addColumn'](_0x1ad40f(0x1b2),_0x1ad40f(0x19b),{'type':_0x367c87[_0x1ad40f(0x1d0)](_0x1ad40f(0x1c6)),'after':'body'}),_0x4a931c[_0x1ad40f(0x1b3)](_0x1ad40f(0x1b2),['plainBody',_0x1ad40f(0x1af)],{'indexName':_0x1ad40f(0x1c0),'indicesType':_0x1ad40f(0x1a1)}),_0x4a931c[_0x1ad40f(0x1b3)](_0x1ad40f(0x1a6),[_0x1ad40f(0x1cd)],{'indexName':_0x1ad40f(0x1aa),'indicesType':'FULLTEXT'}),_0x4a931c[_0x1ad40f(0x1b3)](_0x1ad40f(0x1bf),[_0x1ad40f(0x1cd)],{'indexName':_0x1ad40f(0x1c1),'indicesType':_0x1ad40f(0x1a1)}),_0x4a931c['query'](_0x1ad40f(0x1b4)),_0x4a931c[_0x1ad40f(0x1ac)](_0x1ad40f(0x19e)),_0x4a931c[_0x1ad40f(0x1ac)](_0x1ad40f(0x1b1)),_0x4a931c[_0x1ad40f(0x1ac)](_0x1ad40f(0x1b6)),_0x4a931c[_0x1ad40f(0x1ac)]('ALTER\x20TABLE\x20sms_applications\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci'),_0x4a931c['final'](_0x28cf8b);});},'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 7efc32a..4dab108 100644 --- a/server/migrations/2.4.1.js +++ b/server/migrations/2.4.1.js @@ -1 +1 @@ -const a991_0x5d48=['catch','Removed\x20column\x20%s\x20from\x20%s','inspect','removeIndex','tail','final','enqueue','prototype','Added\x20column\x20%s\x20to\x20%s','join','Changed\x20column\x20%s\x20in\x20table\x20%s','renameColumn','queryInterface','removeIndex\x20%s\x20%s','addColumn','util','sequelize','query\x20%s','sequence','then','indicesType','changeColumn','info','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','dropTable','table\x20dropped\x20%s','addIndex\x20%s\x20%s\x20%s\x20[%s]','finally','stringify'];(function(_0x54104b,_0x5d48d6){const _0x3526f1=function(_0x25a54a){while(--_0x25a54a){_0x54104b['push'](_0x54104b['shift']());}};_0x3526f1(++_0x5d48d6);}(a991_0x5d48,0x85));const a991_0x3526=function(_0x54104b,_0x5d48d6){_0x54104b=_0x54104b-0x0;let _0x3526f1=a991_0x5d48[_0x54104b];return _0x3526f1;};const _0x197c1c=a991_0x3526;'use strict';const util=require(_0x197c1c('0x1b')),logger=require('../config/logger')('migration'),Sequence=function(){};Sequence[_0x197c1c('0x13')][_0x197c1c('0x12')]=function(_0x25a54a){const _0x475bb8=_0x197c1c;this['tail']=this[_0x475bb8('0x10')]?this[_0x475bb8('0x10')][_0x475bb8('0xa')](_0x25a54a):_0x25a54a();};const Migration=function(_0x1d2fcc){const _0x324d16=_0x197c1c;this[_0x324d16('0x18')]=_0x1d2fcc,this[_0x324d16('0x1')]=new Sequence();};Migration[_0x197c1c('0x13')][_0x197c1c('0x4')]=function(_0x397cb7,_0x1f99dd,_0x326d79){const _0x20afa0=_0x197c1c,_0x599086=this;this[_0x20afa0('0x1')]['enqueue'](function(){const _0x5860ea=_0x20afa0;return _0x599086[_0x5860ea('0x18')][_0x5860ea('0x4')](_0x397cb7,_0x1f99dd,_0x326d79)[_0x5860ea('0x2')](function(){const _0x2b000d=_0x5860ea;logger[_0x2b000d('0x5')](_0x2b000d('0x16'),_0x1f99dd,_0x397cb7);})[_0x5860ea('0xc')](function(_0x1a6c8d){const _0x10012e=_0x5860ea;logger[_0x10012e('0x5')](JSON[_0x10012e('0xb')](_0x1a6c8d));});});},Migration['prototype'][_0x197c1c('0x1a')]=function(_0x4cfff1,_0x4ea6a0,_0x507bb7){const _0x541fc2=_0x197c1c,_0x1b8d63=this;this['sequence'][_0x541fc2('0x12')](function(){const _0x1db347=_0x541fc2;return _0x1b8d63[_0x1db347('0x18')][_0x1db347('0x1a')](_0x4cfff1,_0x4ea6a0,_0x507bb7)[_0x1db347('0x2')](function(){const _0x46c318=_0x1db347;logger[_0x46c318('0x5')](_0x46c318('0x14'),_0x4ea6a0,_0x4cfff1);})[_0x1db347('0xc')](function(_0x5d4cbe){const _0x1e9883=_0x1db347;logger['info'](JSON[_0x1e9883('0xb')](_0x5d4cbe));});});},Migration[_0x197c1c('0x13')][_0x197c1c('0x7')]=function(_0x340983){const _0x5b8615=_0x197c1c,_0x576f29=this;this['sequence'][_0x5b8615('0x12')](function(){const _0x1eab6a=_0x5b8615;return _0x576f29['queryInterface']['dropTable'](_0x340983,{'force':!![]})[_0x1eab6a('0x2')](function(){const _0x4e0ae7=_0x1eab6a;logger[_0x4e0ae7('0x5')](_0x4e0ae7('0x8'),_0x340983);})[_0x1eab6a('0xc')](function(_0x4d13a8){const _0x389b3a=_0x1eab6a;logger['info'](JSON[_0x389b3a('0xb')](_0x4d13a8));});});},Migration[_0x197c1c('0x13')]['addIndex']=function(_0x4dc000,_0x3846c3,_0x308037){const _0x2abc80=_0x197c1c,_0x4513a2=this;this[_0x2abc80('0x1')][_0x2abc80('0x12')](function(){const _0x21f00d=_0x2abc80;return _0x4513a2[_0x21f00d('0x18')]['addIndex'](_0x4dc000,_0x3846c3,{'indexName':_0x308037['indexName'],'indicesType':_0x308037[_0x21f00d('0x3')]})['then'](function(){const _0x549e09=_0x21f00d;logger['info'](_0x549e09('0x9'),_0x4dc000,_0x3846c3[_0x549e09('0x15')](','),_0x308037['indexName'],_0x308037[_0x549e09('0x3')]);})[_0x21f00d('0xc')](function(_0x3b9bca){const _0x4f5986=_0x21f00d;logger[_0x4f5986('0x5')](JSON[_0x4f5986('0xb')](_0x3b9bca));});});},Migration[_0x197c1c('0x13')][_0x197c1c('0xf')]=function(_0x208f3c,_0x1051cb){const _0x16f8b9=_0x197c1c,_0x2a6478=this;this['sequence'][_0x16f8b9('0x12')](function(){const _0x1ac4aa=_0x16f8b9;return _0x2a6478[_0x1ac4aa('0x18')][_0x1ac4aa('0xf')](_0x208f3c,_0x1051cb)[_0x1ac4aa('0x2')](function(){const _0x5ade39=_0x1ac4aa;logger[_0x5ade39('0x5')](_0x5ade39('0x19'),_0x208f3c,_0x1051cb);})['catch'](function(_0x3e9474){const _0x6da41a=_0x1ac4aa;logger[_0x6da41a('0x5')](JSON['stringify'](_0x3e9474));});});},Migration[_0x197c1c('0x13')]['query']=function(_0x592458){const _0x8ced59=_0x197c1c,_0x2bd651=this;this[_0x8ced59('0x1')][_0x8ced59('0x12')](function(){const _0x2a34f5=_0x8ced59;return _0x2bd651['queryInterface'][_0x2a34f5('0x1c')]['query'](_0x592458)[_0x2a34f5('0x2')](function(){const _0x209b9f=_0x2a34f5;logger['info'](_0x209b9f('0x0'),_0x592458);})['catch'](function(_0x2ae2ee){const _0x4a40c3=_0x2a34f5;logger[_0x4a40c3('0x5')](JSON[_0x4a40c3('0xb')](_0x2ae2ee));});});},Migration[_0x197c1c('0x13')]['removeColumn']=function(_0x5c77ad,_0x39123a){const _0x408ca5=_0x197c1c,_0x2f46fd=this;this[_0x408ca5('0x1')]['enqueue'](function(){const _0x4ce548=_0x408ca5;return _0x2f46fd['queryInterface']['removeColumn'](_0x5c77ad,_0x39123a)[_0x4ce548('0x2')](function(){const _0x5190da=_0x4ce548;logger[_0x5190da('0x5')](_0x5190da('0xd'),_0x39123a,_0x5c77ad);})['catch'](function(_0x24fd3a){const _0x4d494e=_0x4ce548;logger['info'](util[_0x4d494e('0xe')](_0x24fd3a,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x197c1c('0x17')]=function(_0xf7fe10,_0x2b9b41,_0x328a64){const _0x377ede=_0x197c1c,_0xf1b86a=this;this[_0x377ede('0x1')][_0x377ede('0x12')](function(){const _0x1b0182=_0x377ede;return _0xf1b86a[_0x1b0182('0x18')][_0x1b0182('0x17')](_0xf7fe10,_0x2b9b41,_0x328a64)['then'](function(){const _0x5a9ed0=_0x1b0182;logger[_0x5a9ed0('0x5')](_0x5a9ed0('0x6'),_0x2b9b41,_0x328a64,_0xf7fe10);})['catch'](function(_0x2e0003){const _0x4b9c1b=_0x1b0182;logger[_0x4b9c1b('0x5')](util[_0x4b9c1b('0xe')](_0x2e0003,{'showHidden':![],'depth':null}));});});},Migration[_0x197c1c('0x13')][_0x197c1c('0x11')]=function(_0x4e252b){const _0x198891=_0x197c1c;this[_0x198891('0x1')][_0x198891('0x12')](function(){return _0x4e252b();});},module['exports']={'up':function(_0x499483){return new Promise(function(_0x579713){const _0x5ddb92=a991_0x3526,_0x43e662=new Migration(_0x499483);_0x43e662[_0x5ddb92('0x11')](_0x579713);});},'down':function(){}}; \ No newline at end of file +const a1153_0x3ac4=['finally','query','inspect','removeIndex','Removed\x20column\x20%s\x20from\x20%s','../config/logger','addColumn','stringify','indexName','catch','removeColumn','migration','exports','Added\x20column\x20%s\x20to\x20%s','dropTable','query\x20%s','enqueue','changeColumn','tail','final','then','info','addIndex','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','prototype','renameColumn','indicesType','sequence','Changed\x20column\x20%s\x20in\x20table\x20%s','table\x20dropped\x20%s','queryInterface','removeIndex\x20%s\x20%s'];(function(_0x472e9a,_0x6c6bea){const _0x3ac4c0=function(_0x1bd0e2){while(--_0x1bd0e2){_0x472e9a['push'](_0x472e9a['shift']());}};_0x3ac4c0(++_0x6c6bea);}(a1153_0x3ac4,0x138));const a1153_0x1bd0=function(_0x472e9a,_0x6c6bea){_0x472e9a=_0x472e9a-0x131;let _0x3ac4c0=a1153_0x3ac4[_0x472e9a];return _0x3ac4c0;};const a1153_0x4d3d1c=a1153_0x1bd0;'use strict';const util=require('util'),logger=require(a1153_0x4d3d1c(0x13e))(a1153_0x4d3d1c(0x144)),Sequence=function(){};Sequence['prototype']['enqueue']=function(_0x2e9eb7){const _0x7e095e=a1153_0x4d3d1c;this['tail']=this[_0x7e095e(0x14b)]?this['tail'][_0x7e095e(0x139)](_0x2e9eb7):_0x2e9eb7();};const Migration=function(_0x141584){const _0x249a09=a1153_0x4d3d1c;this[_0x249a09(0x137)]=_0x141584,this[_0x249a09(0x134)]=new Sequence();};Migration['prototype'][a1153_0x4d3d1c(0x14a)]=function(_0x404e6d,_0x16889a,_0x32ff74){const _0x2f9f5e=a1153_0x4d3d1c,_0xf7e07d=this;this[_0x2f9f5e(0x134)][_0x2f9f5e(0x149)](function(){const _0x3e2051=_0x2f9f5e;return _0xf7e07d[_0x3e2051(0x137)][_0x3e2051(0x14a)](_0x404e6d,_0x16889a,_0x32ff74)[_0x3e2051(0x14d)](function(){const _0x60bd5c=_0x3e2051;logger[_0x60bd5c(0x14e)](_0x60bd5c(0x135),_0x16889a,_0x404e6d);})[_0x3e2051(0x142)](function(_0x4da363){logger['info'](JSON['stringify'](_0x4da363));});});},Migration[a1153_0x4d3d1c(0x131)][a1153_0x4d3d1c(0x13f)]=function(_0x2b606e,_0x511282,_0x2f4576){const _0x3e682b=a1153_0x4d3d1c,_0x4603be=this;this['sequence'][_0x3e682b(0x149)](function(){const _0x1390f8=_0x3e682b;return _0x4603be[_0x1390f8(0x137)][_0x1390f8(0x13f)](_0x2b606e,_0x511282,_0x2f4576)['then'](function(){const _0x43e657=_0x1390f8;logger[_0x43e657(0x14e)](_0x43e657(0x146),_0x511282,_0x2b606e);})['catch'](function(_0xd21a6d){const _0x46fbb0=_0x1390f8;logger['info'](JSON[_0x46fbb0(0x140)](_0xd21a6d));});});},Migration[a1153_0x4d3d1c(0x131)][a1153_0x4d3d1c(0x147)]=function(_0x11c360){const _0x54f0c6=a1153_0x4d3d1c,_0x55765c=this;this[_0x54f0c6(0x134)]['enqueue'](function(){const _0x22fefa=_0x54f0c6;return _0x55765c[_0x22fefa(0x137)][_0x22fefa(0x147)](_0x11c360,{'force':!![]})['then'](function(){const _0xf99411=_0x22fefa;logger['info'](_0xf99411(0x136),_0x11c360);})[_0x22fefa(0x142)](function(_0x307b96){const _0x10e97e=_0x22fefa;logger['info'](JSON[_0x10e97e(0x140)](_0x307b96));});});},Migration[a1153_0x4d3d1c(0x131)]['addIndex']=function(_0x5979e5,_0x35f057,_0x5b04f1){const _0x1af0ce=a1153_0x4d3d1c,_0x4e4d01=this;this['sequence'][_0x1af0ce(0x149)](function(){const _0x4cd378=_0x1af0ce;return _0x4e4d01['queryInterface'][_0x4cd378(0x14f)](_0x5979e5,_0x35f057,{'indexName':_0x5b04f1[_0x4cd378(0x141)],'indicesType':_0x5b04f1[_0x4cd378(0x133)]})[_0x4cd378(0x14d)](function(){const _0x3dc258=_0x4cd378;logger[_0x3dc258(0x14e)]('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x5979e5,_0x35f057['join'](','),_0x5b04f1['indexName'],_0x5b04f1[_0x3dc258(0x133)]);})[_0x4cd378(0x142)](function(_0x4d780a){logger['info'](JSON['stringify'](_0x4d780a));});});},Migration[a1153_0x4d3d1c(0x131)]['removeIndex']=function(_0x106254,_0x52bff8){const _0x50da42=a1153_0x4d3d1c,_0x3a2094=this;this[_0x50da42(0x134)][_0x50da42(0x149)](function(){const _0x4bd58d=_0x50da42;return _0x3a2094[_0x4bd58d(0x137)][_0x4bd58d(0x13c)](_0x106254,_0x52bff8)[_0x4bd58d(0x14d)](function(){const _0x40115f=_0x4bd58d;logger[_0x40115f(0x14e)](_0x40115f(0x138),_0x106254,_0x52bff8);})[_0x4bd58d(0x142)](function(_0x464c75){const _0x5ae825=_0x4bd58d;logger['info'](JSON[_0x5ae825(0x140)](_0x464c75));});});},Migration[a1153_0x4d3d1c(0x131)][a1153_0x4d3d1c(0x13a)]=function(_0x593d5b){const _0x5ce441=a1153_0x4d3d1c,_0x42dd42=this;this[_0x5ce441(0x134)]['enqueue'](function(){const _0x1fa90d=_0x5ce441;return _0x42dd42[_0x1fa90d(0x137)]['sequelize']['query'](_0x593d5b)[_0x1fa90d(0x14d)](function(){const _0x3bbe94=_0x1fa90d;logger[_0x3bbe94(0x14e)](_0x3bbe94(0x148),_0x593d5b);})[_0x1fa90d(0x142)](function(_0x53fb6c){const _0x30fb78=_0x1fa90d;logger[_0x30fb78(0x14e)](JSON['stringify'](_0x53fb6c));});});},Migration[a1153_0x4d3d1c(0x131)]['removeColumn']=function(_0x322c1b,_0x4d984e){const _0x113b94=this;this['sequence']['enqueue'](function(){const _0x51be47=a1153_0x1bd0;return _0x113b94[_0x51be47(0x137)][_0x51be47(0x143)](_0x322c1b,_0x4d984e)[_0x51be47(0x14d)](function(){const _0x3f671e=_0x51be47;logger[_0x3f671e(0x14e)](_0x3f671e(0x13d),_0x4d984e,_0x322c1b);})['catch'](function(_0x3e0b0d){const _0x36ea21=_0x51be47;logger['info'](util[_0x36ea21(0x13b)](_0x3e0b0d,{'showHidden':![],'depth':null}));});});},Migration[a1153_0x4d3d1c(0x131)][a1153_0x4d3d1c(0x132)]=function(_0x5593ce,_0x1ecc15,_0x32901d){const _0x95dec7=a1153_0x4d3d1c,_0x27eb2c=this;this['sequence'][_0x95dec7(0x149)](function(){const _0x242ea5=_0x95dec7;return _0x27eb2c[_0x242ea5(0x137)]['renameColumn'](_0x5593ce,_0x1ecc15,_0x32901d)[_0x242ea5(0x14d)](function(){const _0x6599ad=_0x242ea5;logger[_0x6599ad(0x14e)](_0x6599ad(0x150),_0x1ecc15,_0x32901d,_0x5593ce);})[_0x242ea5(0x142)](function(_0x533ca3){const _0x5f40cf=_0x242ea5;logger[_0x5f40cf(0x14e)](util[_0x5f40cf(0x13b)](_0x533ca3,{'showHidden':![],'depth':null}));});});},Migration[a1153_0x4d3d1c(0x131)]['final']=function(_0x1092a2){const _0x137df9=a1153_0x4d3d1c;this[_0x137df9(0x134)][_0x137df9(0x149)](function(){return _0x1092a2();});},module[a1153_0x4d3d1c(0x145)]={'up':function(_0x4f2d21){return new Promise(function(_0x2a7196){const _0x56218e=a1153_0x1bd0,_0x19188f=new Migration(_0x4f2d21);_0x19188f[_0x56218e(0x14c)](_0x2a7196);});},'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 c9aa73a..5b30823 100644 --- a/server/migrations/2.4.10.js +++ b/server/migrations/2.4.10.js @@ -1 +1 @@ -const a992_0x44c4=['queryInterface','TEXT','info','stringify','addColumn','prototype','removeIndex\x20%s\x20%s','addIndex','chat_interactions','query\x20%s','favicon','dropTable','defaultFavicon','query','Removed\x20column\x20%s\x20from\x20%s','catch','../config/logger','util','Changed\x20column\x20%s\x20in\x20table\x20%s','inspect','enqueue','sequelize','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','renameColumn','settings','STRING','table\x20dropped\x20%s','tail','join','indexName','final','indicesType','Added\x20column\x20%s\x20to\x20%s','changeColumn','finally','BOOLEAN','addIndex\x20%s\x20%s\x20%s\x20[%s]','referer','removeIndex','exports','removeColumn','sequence','then'];(function(_0x4dd4d0,_0x44c459){const _0x20a9ac=function(_0x20b3d8){while(--_0x20b3d8){_0x4dd4d0['push'](_0x4dd4d0['shift']());}};_0x20a9ac(++_0x44c459);}(a992_0x44c4,0xb5));const a992_0x20a9=function(_0x4dd4d0,_0x44c459){_0x4dd4d0=_0x4dd4d0-0x0;let _0x20a9ac=a992_0x44c4[_0x4dd4d0];return _0x20a9ac;};const _0x3ff712=a992_0x20a9;'use strict';const util=require(_0x3ff712('0x8')),logger=require(_0x3ff712('0x7'))('migration'),Sequence=function(){};Sequence[_0x3ff712('0x27')][_0x3ff712('0xb')]=function(_0x20b3d8){const _0xe2be38=_0x3ff712;this[_0xe2be38('0x12')]=this[_0xe2be38('0x12')]?this['tail'][_0xe2be38('0x19')](_0x20b3d8):_0x20b3d8();};const Migration=function(_0x52a947){const _0x891470=_0x3ff712;this[_0x891470('0x22')]=_0x52a947,this[_0x891470('0x20')]=new Sequence();};Migration[_0x3ff712('0x27')][_0x3ff712('0x18')]=function(_0x23cad0,_0x206651,_0x4f1148){const _0x5ee316=_0x3ff712,_0x704957=this;this[_0x5ee316('0x20')][_0x5ee316('0xb')](function(){const _0x4bcdc2=_0x5ee316;return _0x704957[_0x4bcdc2('0x22')]['changeColumn'](_0x23cad0,_0x206651,_0x4f1148)[_0x4bcdc2('0x21')](function(){const _0xf156dc=_0x4bcdc2;logger[_0xf156dc('0x24')](_0xf156dc('0x9'),_0x206651,_0x23cad0);})[_0x4bcdc2('0x6')](function(_0xc9a6de){const _0x1fe9c7=_0x4bcdc2;logger[_0x1fe9c7('0x24')](JSON[_0x1fe9c7('0x25')](_0xc9a6de));});});},Migration[_0x3ff712('0x27')]['addColumn']=function(_0x170951,_0x1636e2,_0x8d6570){const _0x21b677=_0x3ff712,_0x27257b=this;this[_0x21b677('0x20')][_0x21b677('0xb')](function(){const _0x155d36=_0x21b677;return _0x27257b['queryInterface'][_0x155d36('0x26')](_0x170951,_0x1636e2,_0x8d6570)['then'](function(){const _0x425550=_0x155d36;logger[_0x425550('0x24')](_0x425550('0x17'),_0x1636e2,_0x170951);})[_0x155d36('0x6')](function(_0x3c64d4){const _0x287182=_0x155d36;logger[_0x287182('0x24')](JSON[_0x287182('0x25')](_0x3c64d4));});});},Migration['prototype'][_0x3ff712('0x2')]=function(_0x1c2d46){const _0xc183cb=_0x3ff712,_0x28d741=this;this[_0xc183cb('0x20')][_0xc183cb('0xb')](function(){const _0x109172=_0xc183cb;return _0x28d741['queryInterface'][_0x109172('0x2')](_0x1c2d46,{'force':!![]})['then'](function(){const _0x21d3b7=_0x109172;logger[_0x21d3b7('0x24')](_0x21d3b7('0x11'),_0x1c2d46);})[_0x109172('0x6')](function(_0x19ca88){const _0x55459c=_0x109172;logger['info'](JSON[_0x55459c('0x25')](_0x19ca88));});});},Migration[_0x3ff712('0x27')]['addIndex']=function(_0x1d0562,_0x5958a2,_0x30f6f3){const _0x2f9d35=_0x3ff712,_0xdb8ad3=this;this[_0x2f9d35('0x20')][_0x2f9d35('0xb')](function(){const _0xce1fdc=_0x2f9d35;return _0xdb8ad3[_0xce1fdc('0x22')][_0xce1fdc('0x29')](_0x1d0562,_0x5958a2,{'indexName':_0x30f6f3['indexName'],'indicesType':_0x30f6f3[_0xce1fdc('0x16')]})[_0xce1fdc('0x21')](function(){const _0xfa7e92=_0xce1fdc;logger[_0xfa7e92('0x24')](_0xfa7e92('0x1b'),_0x1d0562,_0x5958a2[_0xfa7e92('0x13')](','),_0x30f6f3[_0xfa7e92('0x14')],_0x30f6f3[_0xfa7e92('0x16')]);})[_0xce1fdc('0x6')](function(_0x101eff){const _0x22c0bc=_0xce1fdc;logger[_0x22c0bc('0x24')](JSON[_0x22c0bc('0x25')](_0x101eff));});});},Migration[_0x3ff712('0x27')][_0x3ff712('0x1d')]=function(_0x2bbb45,_0x4077da){const _0x3d0ca8=_0x3ff712,_0x57a2d1=this;this[_0x3d0ca8('0x20')]['enqueue'](function(){const _0x4da05a=_0x3d0ca8;return _0x57a2d1[_0x4da05a('0x22')][_0x4da05a('0x1d')](_0x2bbb45,_0x4077da)[_0x4da05a('0x21')](function(){const _0x33a1e2=_0x4da05a;logger['info'](_0x33a1e2('0x28'),_0x2bbb45,_0x4077da);})[_0x4da05a('0x6')](function(_0x2fa231){const _0x5b6586=_0x4da05a;logger[_0x5b6586('0x24')](JSON[_0x5b6586('0x25')](_0x2fa231));});});},Migration[_0x3ff712('0x27')]['query']=function(_0x5650df){const _0x1ecc57=_0x3ff712,_0x1a1b29=this;this['sequence'][_0x1ecc57('0xb')](function(){const _0x11526d=_0x1ecc57;return _0x1a1b29['queryInterface'][_0x11526d('0xc')][_0x11526d('0x4')](_0x5650df)[_0x11526d('0x21')](function(){const _0x14de64=_0x11526d;logger['info'](_0x14de64('0x0'),_0x5650df);})[_0x11526d('0x6')](function(_0x34c5ad){const _0x416bd0=_0x11526d;logger[_0x416bd0('0x24')](JSON[_0x416bd0('0x25')](_0x34c5ad));});});},Migration[_0x3ff712('0x27')][_0x3ff712('0x1f')]=function(_0x452364,_0x742855){const _0x2ce538=_0x3ff712,_0x141c72=this;this[_0x2ce538('0x20')]['enqueue'](function(){const _0x32f46a=_0x2ce538;return _0x141c72[_0x32f46a('0x22')][_0x32f46a('0x1f')](_0x452364,_0x742855)[_0x32f46a('0x21')](function(){const _0x401485=_0x32f46a;logger[_0x401485('0x24')](_0x401485('0x5'),_0x742855,_0x452364);})[_0x32f46a('0x6')](function(_0x116cef){const _0x1d25be=_0x32f46a;logger[_0x1d25be('0x24')](util[_0x1d25be('0xa')](_0x116cef,{'showHidden':![],'depth':null}));});});},Migration[_0x3ff712('0x27')]['renameColumn']=function(_0xa2facb,_0x249f1d,_0x560582){const _0x419781=_0x3ff712,_0x5134e7=this;this[_0x419781('0x20')][_0x419781('0xb')](function(){const _0x16c91f=_0x419781;return _0x5134e7['queryInterface'][_0x16c91f('0xe')](_0xa2facb,_0x249f1d,_0x560582)['then'](function(){const _0x3da969=_0x16c91f;logger['info'](_0x3da969('0xd'),_0x249f1d,_0x560582,_0xa2facb);})['catch'](function(_0x27fb1f){const _0x51c398=_0x16c91f;logger[_0x51c398('0x24')](util[_0x51c398('0xa')](_0x27fb1f,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x3ff712('0x15')]=function(_0x496807){const _0x14c63e=_0x3ff712;this[_0x14c63e('0x20')][_0x14c63e('0xb')](function(){return _0x496807();});},module[_0x3ff712('0x1e')]={'up':function(_0x5e072b,_0x8ac97){return new Promise(function(_0x4f62de){const _0x3b78ec=a992_0x20a9,_0x2252e1=new Migration(_0x5e072b);_0x2252e1[_0x3b78ec('0x18')](_0x3b78ec('0x2a'),_0x3b78ec('0x1c'),{'type':_0x8ac97[_0x3b78ec('0x23')]}),_0x2252e1[_0x3b78ec('0x26')](_0x3b78ec('0xf'),_0x3b78ec('0x1'),{'type':_0x8ac97[_0x3b78ec('0x10')]}),_0x2252e1[_0x3b78ec('0x26')](_0x3b78ec('0xf'),_0x3b78ec('0x3'),{'type':_0x8ac97[_0x3b78ec('0x1a')],'defaultValue':!![]}),_0x2252e1['final'](_0x4f62de);});},'down':function(){}}; \ No newline at end of file +const a1154_0x3423=['TEXT','removeColumn','referer','catch','query','exports','addColumn','../config/logger','removeIndex','addIndex\x20%s\x20%s\x20%s\x20[%s]','inspect','table\x20dropped\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','addIndex','settings','Changed\x20column\x20%s\x20in\x20table\x20%s','STRING','sequence','dropTable','query\x20%s','favicon','enqueue','stringify','renameColumn','indicesType','migration','then','prototype','finally','Added\x20column\x20%s\x20to\x20%s','info','queryInterface','util','indexName','BOOLEAN','changeColumn','tail','Removed\x20column\x20%s\x20from\x20%s','chat_interactions'];(function(_0x3c02cf,_0x432594){const _0x3423e7=function(_0x4b0cfd){while(--_0x4b0cfd){_0x3c02cf['push'](_0x3c02cf['shift']());}};_0x3423e7(++_0x432594);}(a1154_0x3423,0xd7));const a1154_0x4b0c=function(_0x3c02cf,_0x432594){_0x3c02cf=_0x3c02cf-0x9d;let _0x3423e7=a1154_0x3423[_0x3c02cf];return _0x3423e7;};const a1154_0x4a50b1=a1154_0x4b0c;'use strict';const util=require(a1154_0x4a50b1(0xa9)),logger=require(a1154_0x4a50b1(0xb7))(a1154_0x4a50b1(0xa2)),Sequence=function(){};Sequence['prototype'][a1154_0x4a50b1(0x9e)]=function(_0x14d692){const _0x106730=a1154_0x4a50b1;this[_0x106730(0xad)]=this[_0x106730(0xad)]?this[_0x106730(0xad)][_0x106730(0xa5)](_0x14d692):_0x14d692();};const Migration=function(_0x27048d){const _0x1d3821=a1154_0x4a50b1;this[_0x1d3821(0xa8)]=_0x27048d,this[_0x1d3821(0xc1)]=new Sequence();};Migration[a1154_0x4a50b1(0xa4)][a1154_0x4a50b1(0xac)]=function(_0x2513a4,_0x40f8b8,_0x1c28e0){const _0x162723=a1154_0x4a50b1,_0x40b833=this;this[_0x162723(0xc1)][_0x162723(0x9e)](function(){const _0xa26df5=_0x162723;return _0x40b833[_0xa26df5(0xa8)]['changeColumn'](_0x2513a4,_0x40f8b8,_0x1c28e0)[_0xa26df5(0xa3)](function(){const _0xf83f39=_0xa26df5;logger[_0xf83f39(0xa7)](_0xf83f39(0xbf),_0x40f8b8,_0x2513a4);})['catch'](function(_0x595874){const _0x75e455=_0xa26df5;logger['info'](JSON[_0x75e455(0x9f)](_0x595874));});});},Migration[a1154_0x4a50b1(0xa4)][a1154_0x4a50b1(0xb6)]=function(_0x3344fb,_0x557d4e,_0x1082c8){const _0x267ca5=a1154_0x4a50b1,_0x466e38=this;this[_0x267ca5(0xc1)][_0x267ca5(0x9e)](function(){const _0x34c5ad=_0x267ca5;return _0x466e38[_0x34c5ad(0xa8)][_0x34c5ad(0xb6)](_0x3344fb,_0x557d4e,_0x1082c8)[_0x34c5ad(0xa3)](function(){const _0x682e08=_0x34c5ad;logger[_0x682e08(0xa7)](_0x682e08(0xa6),_0x557d4e,_0x3344fb);})['catch'](function(_0x2c4a8a){const _0x1dd412=_0x34c5ad;logger[_0x1dd412(0xa7)](JSON[_0x1dd412(0x9f)](_0x2c4a8a));});});},Migration['prototype'][a1154_0x4a50b1(0xc2)]=function(_0x175c4e){const _0x560eea=a1154_0x4a50b1,_0x305a1e=this;this[_0x560eea(0xc1)][_0x560eea(0x9e)](function(){const _0x2c1190=_0x560eea;return _0x305a1e[_0x2c1190(0xa8)][_0x2c1190(0xc2)](_0x175c4e,{'force':!![]})['then'](function(){const _0x5befd2=_0x2c1190;logger[_0x5befd2(0xa7)](_0x5befd2(0xbb),_0x175c4e);})[_0x2c1190(0xb3)](function(_0x3cfd3c){const _0x6294c0=_0x2c1190;logger['info'](JSON[_0x6294c0(0x9f)](_0x3cfd3c));});});},Migration[a1154_0x4a50b1(0xa4)][a1154_0x4a50b1(0xbd)]=function(_0x1312d9,_0x834d7d,_0x2c9612){const _0x501728=a1154_0x4a50b1,_0x1e0721=this;this[_0x501728(0xc1)][_0x501728(0x9e)](function(){const _0x2095ed=_0x501728;return _0x1e0721['queryInterface'][_0x2095ed(0xbd)](_0x1312d9,_0x834d7d,{'indexName':_0x2c9612[_0x2095ed(0xaa)],'indicesType':_0x2c9612[_0x2095ed(0xa1)]})[_0x2095ed(0xa3)](function(){const _0x176b4d=_0x2095ed;logger[_0x176b4d(0xa7)](_0x176b4d(0xb9),_0x1312d9,_0x834d7d['join'](','),_0x2c9612[_0x176b4d(0xaa)],_0x2c9612[_0x176b4d(0xa1)]);})[_0x2095ed(0xb3)](function(_0x313b67){const _0x3adaa1=_0x2095ed;logger[_0x3adaa1(0xa7)](JSON[_0x3adaa1(0x9f)](_0x313b67));});});},Migration['prototype'][a1154_0x4a50b1(0xb8)]=function(_0x1b2a75,_0x346540){const _0x358edc=a1154_0x4a50b1,_0x22d95d=this;this['sequence'][_0x358edc(0x9e)](function(){const _0x4bd282=_0x358edc;return _0x22d95d[_0x4bd282(0xa8)][_0x4bd282(0xb8)](_0x1b2a75,_0x346540)[_0x4bd282(0xa3)](function(){const _0x493e5b=_0x4bd282;logger[_0x493e5b(0xa7)]('removeIndex\x20%s\x20%s',_0x1b2a75,_0x346540);})[_0x4bd282(0xb3)](function(_0x2ae60a){const _0x8af113=_0x4bd282;logger[_0x8af113(0xa7)](JSON['stringify'](_0x2ae60a));});});},Migration[a1154_0x4a50b1(0xa4)][a1154_0x4a50b1(0xb4)]=function(_0x3fd610){const _0x30dc31=a1154_0x4a50b1,_0x479008=this;this['sequence'][_0x30dc31(0x9e)](function(){const _0x4420d7=_0x30dc31;return _0x479008[_0x4420d7(0xa8)]['sequelize'][_0x4420d7(0xb4)](_0x3fd610)['then'](function(){const _0x40e1c0=_0x4420d7;logger[_0x40e1c0(0xa7)](_0x40e1c0(0xc3),_0x3fd610);})[_0x4420d7(0xb3)](function(_0x3f683a){const _0x1434d7=_0x4420d7;logger[_0x1434d7(0xa7)](JSON['stringify'](_0x3f683a));});});},Migration['prototype']['removeColumn']=function(_0x849414,_0x1480ab){const _0xd00448=a1154_0x4a50b1,_0x391723=this;this['sequence'][_0xd00448(0x9e)](function(){const _0x4d98c9=_0xd00448;return _0x391723['queryInterface'][_0x4d98c9(0xb1)](_0x849414,_0x1480ab)[_0x4d98c9(0xa3)](function(){const _0x30dbf7=_0x4d98c9;logger[_0x30dbf7(0xa7)](_0x30dbf7(0xae),_0x1480ab,_0x849414);})[_0x4d98c9(0xb3)](function(_0x4ad29d){const _0x454f44=_0x4d98c9;logger[_0x454f44(0xa7)](util[_0x454f44(0xba)](_0x4ad29d,{'showHidden':![],'depth':null}));});});},Migration[a1154_0x4a50b1(0xa4)][a1154_0x4a50b1(0xa0)]=function(_0x39820f,_0x141d75,_0x1502cd){const _0x31512e=a1154_0x4a50b1,_0x2a0a1b=this;this[_0x31512e(0xc1)][_0x31512e(0x9e)](function(){const _0xbc862a=_0x31512e;return _0x2a0a1b['queryInterface']['renameColumn'](_0x39820f,_0x141d75,_0x1502cd)[_0xbc862a(0xa3)](function(){const _0x3d7de7=_0xbc862a;logger[_0x3d7de7(0xa7)](_0x3d7de7(0xbc),_0x141d75,_0x1502cd,_0x39820f);})[_0xbc862a(0xb3)](function(_0x1f1ffd){const _0x4003b5=_0xbc862a;logger[_0x4003b5(0xa7)](util[_0x4003b5(0xba)](_0x1f1ffd,{'showHidden':![],'depth':null}));});});},Migration[a1154_0x4a50b1(0xa4)]['final']=function(_0x29f31f){const _0x41b071=a1154_0x4a50b1;this[_0x41b071(0xc1)][_0x41b071(0x9e)](function(){return _0x29f31f();});},module[a1154_0x4a50b1(0xb5)]={'up':function(_0x28b9b0,_0x57258b){return new Promise(function(_0x5cf8ef){const _0xd01f7=a1154_0x4b0c,_0x38fb3d=new Migration(_0x28b9b0);_0x38fb3d[_0xd01f7(0xac)](_0xd01f7(0xaf),_0xd01f7(0xb2),{'type':_0x57258b[_0xd01f7(0xb0)]}),_0x38fb3d[_0xd01f7(0xb6)](_0xd01f7(0xbe),_0xd01f7(0x9d),{'type':_0x57258b[_0xd01f7(0xc0)]}),_0x38fb3d[_0xd01f7(0xb6)](_0xd01f7(0xbe),'defaultFavicon',{'type':_0x57258b[_0xd01f7(0xab)],'defaultValue':!![]}),_0x38fb3d['final'](_0x5cf8ef);});},'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 ff43274..7095d44 100644 --- a/server/migrations/2.4.11.js +++ b/server/migrations/2.4.11.js @@ -1 +1 @@ -const a993_0x2845=['dropTable','final','prototype','Changed\x20column\x20%s\x20in\x20table\x20%s','../config/logger','query','changeColumn','indicesType','renameColumn','addIndex','join','stringify','catch','sequence','addIndex\x20%s\x20%s\x20%s\x20[%s]','table\x20dropped\x20%s','removeIndex','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','inspect','enqueue','util','tail','info','removeIndex\x20%s\x20%s','sequelize','Added\x20column\x20%s\x20to\x20%s','queryInterface','addColumn','then','indexName','query\x20%s','removeColumn'];(function(_0x5e03ec,_0x2845e0){const _0x23eb83=function(_0x5bcc13){while(--_0x5bcc13){_0x5e03ec['push'](_0x5e03ec['shift']());}};_0x23eb83(++_0x2845e0);}(a993_0x2845,0xb1));const a993_0x23eb=function(_0x5e03ec,_0x2845e0){_0x5e03ec=_0x5e03ec-0x0;let _0x23eb83=a993_0x2845[_0x5e03ec];return _0x23eb83;};const _0x5297e3=a993_0x23eb;'use strict';const util=require(_0x5297e3('0x3')),logger=require(_0x5297e3('0x13'))('migration'),Sequence=function(){};Sequence['prototype'][_0x5297e3('0x2')]=function(_0x5bcc13){const _0x434b01=_0x5297e3;this[_0x434b01('0x4')]=this[_0x434b01('0x4')]?this[_0x434b01('0x4')]['finally'](_0x5bcc13):_0x5bcc13();};const Migration=function(_0xa94c27){const _0x4f4590=_0x5297e3;this['queryInterface']=_0xa94c27,this[_0x4f4590('0x1c')]=new Sequence();};Migration[_0x5297e3('0x11')][_0x5297e3('0x15')]=function(_0x27e9f5,_0x3d0cdb,_0x36391b){const _0x2edde6=_0x5297e3,_0x535c3e=this;this[_0x2edde6('0x1c')][_0x2edde6('0x2')](function(){const _0x2482cc=_0x2edde6;return _0x535c3e[_0x2482cc('0x9')][_0x2482cc('0x15')](_0x27e9f5,_0x3d0cdb,_0x36391b)['then'](function(){const _0x4a4846=_0x2482cc;logger[_0x4a4846('0x5')](_0x4a4846('0x12'),_0x3d0cdb,_0x27e9f5);})['catch'](function(_0x3acaf0){const _0x29cbc3=_0x2482cc;logger[_0x29cbc3('0x5')](JSON['stringify'](_0x3acaf0));});});},Migration['prototype']['addColumn']=function(_0x493f78,_0x336c5e,_0x5a1c73){const _0x7bac02=_0x5297e3,_0x2cf42a=this;this['sequence'][_0x7bac02('0x2')](function(){const _0x41bd21=_0x7bac02;return _0x2cf42a[_0x41bd21('0x9')][_0x41bd21('0xa')](_0x493f78,_0x336c5e,_0x5a1c73)['then'](function(){const _0x1f2876=_0x41bd21;logger[_0x1f2876('0x5')](_0x1f2876('0x8'),_0x336c5e,_0x493f78);})[_0x41bd21('0x1b')](function(_0x261864){const _0x133d77=_0x41bd21;logger[_0x133d77('0x5')](JSON[_0x133d77('0x1a')](_0x261864));});});},Migration['prototype']['dropTable']=function(_0x401748){const _0x12cb07=_0x5297e3,_0x554636=this;this['sequence'][_0x12cb07('0x2')](function(){const _0x306d39=_0x12cb07;return _0x554636[_0x306d39('0x9')][_0x306d39('0xf')](_0x401748,{'force':!![]})[_0x306d39('0xb')](function(){const _0x1a7902=_0x306d39;logger[_0x1a7902('0x5')](_0x1a7902('0x1e'),_0x401748);})['catch'](function(_0x376304){const _0x3da8b9=_0x306d39;logger[_0x3da8b9('0x5')](JSON[_0x3da8b9('0x1a')](_0x376304));});});},Migration['prototype'][_0x5297e3('0x18')]=function(_0x376e28,_0xa4d79f,_0x5a0fcf){const _0x3cc03d=_0x5297e3,_0x571619=this;this[_0x3cc03d('0x1c')][_0x3cc03d('0x2')](function(){const _0x197661=_0x3cc03d;return _0x571619[_0x197661('0x9')][_0x197661('0x18')](_0x376e28,_0xa4d79f,{'indexName':_0x5a0fcf[_0x197661('0xc')],'indicesType':_0x5a0fcf[_0x197661('0x16')]})['then'](function(){const _0x4fd5f3=_0x197661;logger[_0x4fd5f3('0x5')](_0x4fd5f3('0x1d'),_0x376e28,_0xa4d79f[_0x4fd5f3('0x19')](','),_0x5a0fcf[_0x4fd5f3('0xc')],_0x5a0fcf[_0x4fd5f3('0x16')]);})[_0x197661('0x1b')](function(_0x430107){logger['info'](JSON['stringify'](_0x430107));});});},Migration[_0x5297e3('0x11')]['removeIndex']=function(_0xb6e77d,_0x4de4ff){const _0xe969af=_0x5297e3,_0x55da22=this;this[_0xe969af('0x1c')][_0xe969af('0x2')](function(){const _0x34d563=_0xe969af;return _0x55da22[_0x34d563('0x9')][_0x34d563('0x1f')](_0xb6e77d,_0x4de4ff)[_0x34d563('0xb')](function(){const _0x7df4a8=_0x34d563;logger[_0x7df4a8('0x5')](_0x7df4a8('0x6'),_0xb6e77d,_0x4de4ff);})[_0x34d563('0x1b')](function(_0x895ee6){const _0x3e23b2=_0x34d563;logger[_0x3e23b2('0x5')](JSON[_0x3e23b2('0x1a')](_0x895ee6));});});},Migration['prototype'][_0x5297e3('0x14')]=function(_0x10fd2b){const _0x180ae3=_0x5297e3,_0x2a79fe=this;this[_0x180ae3('0x1c')][_0x180ae3('0x2')](function(){const _0x555aa8=_0x180ae3;return _0x2a79fe[_0x555aa8('0x9')][_0x555aa8('0x7')]['query'](_0x10fd2b)[_0x555aa8('0xb')](function(){const _0x30a0ca=_0x555aa8;logger['info'](_0x30a0ca('0xd'),_0x10fd2b);})[_0x555aa8('0x1b')](function(_0x3c7e81){const _0x437eb2=_0x555aa8;logger[_0x437eb2('0x5')](JSON[_0x437eb2('0x1a')](_0x3c7e81));});});},Migration[_0x5297e3('0x11')][_0x5297e3('0xe')]=function(_0x244924,_0x12ba4d){const _0x1ae1ef=this;this['sequence']['enqueue'](function(){const _0x3f4c5e=a993_0x23eb;return _0x1ae1ef[_0x3f4c5e('0x9')][_0x3f4c5e('0xe')](_0x244924,_0x12ba4d)['then'](function(){const _0x5a4b60=_0x3f4c5e;logger[_0x5a4b60('0x5')]('Removed\x20column\x20%s\x20from\x20%s',_0x12ba4d,_0x244924);})[_0x3f4c5e('0x1b')](function(_0xb3af9f){const _0x423b5c=_0x3f4c5e;logger[_0x423b5c('0x5')](util[_0x423b5c('0x1')](_0xb3af9f,{'showHidden':![],'depth':null}));});});},Migration[_0x5297e3('0x11')][_0x5297e3('0x17')]=function(_0xec0681,_0x2990e2,_0x53dbd4){const _0x50be4f=_0x5297e3,_0x40959e=this;this[_0x50be4f('0x1c')][_0x50be4f('0x2')](function(){const _0x105629=_0x50be4f;return _0x40959e[_0x105629('0x9')][_0x105629('0x17')](_0xec0681,_0x2990e2,_0x53dbd4)[_0x105629('0xb')](function(){const _0x34b049=_0x105629;logger[_0x34b049('0x5')](_0x34b049('0x0'),_0x2990e2,_0x53dbd4,_0xec0681);})['catch'](function(_0x269595){const _0x6c425c=_0x105629;logger[_0x6c425c('0x5')](util[_0x6c425c('0x1')](_0x269595,{'showHidden':![],'depth':null}));});});},Migration[_0x5297e3('0x11')][_0x5297e3('0x10')]=function(_0x16cbf7){const _0x1dc4ff=_0x5297e3;this[_0x1dc4ff('0x1c')][_0x1dc4ff('0x2')](function(){return _0x16cbf7();});},module['exports']={'up':function(_0x508b2a){return new Promise(function(_0x2d5021){const _0x5b2298=new Migration(_0x508b2a);_0x5b2298['final'](_0x2d5021);});},'down':function(){}}; \ No newline at end of file +const a1155_0x4234=['Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','info','indicesType','enqueue','prototype','../config/logger','removeIndex\x20%s\x20%s','queryInterface','table\x20dropped\x20%s','join','sequence','final','indexName','then','addIndex','changeColumn','removeColumn','catch','Changed\x20column\x20%s\x20in\x20table\x20%s','renameColumn','finally','inspect','migration','addColumn','exports','util','removeIndex','dropTable','Removed\x20column\x20%s\x20from\x20%s','stringify','query\x20%s','tail'];(function(_0xac19d,_0x3ae04f){const _0x42342b=function(_0x3443be){while(--_0x3443be){_0xac19d['push'](_0xac19d['shift']());}};_0x42342b(++_0x3ae04f);}(a1155_0x4234,0xaf));const a1155_0x3443=function(_0xac19d,_0x3ae04f){_0xac19d=_0xac19d-0x11a;let _0x42342b=a1155_0x4234[_0xac19d];return _0x42342b;};const a1155_0x7f6717=a1155_0x3443;'use strict';const util=require(a1155_0x7f6717(0x124)),logger=require(a1155_0x7f6717(0x130))(a1155_0x7f6717(0x121)),Sequence=function(){};Sequence[a1155_0x7f6717(0x12f)][a1155_0x7f6717(0x12e)]=function(_0x4ed998){const _0x33ff36=a1155_0x7f6717;this[_0x33ff36(0x12a)]=this[_0x33ff36(0x12a)]?this['tail'][_0x33ff36(0x11f)](_0x4ed998):_0x4ed998();};const Migration=function(_0x2cce83){const _0x6c0368=a1155_0x7f6717;this['queryInterface']=_0x2cce83,this[_0x6c0368(0x135)]=new Sequence();};Migration[a1155_0x7f6717(0x12f)]['changeColumn']=function(_0x73abae,_0x436865,_0x1638d6){const _0x2f55c6=a1155_0x7f6717,_0x2b4ca2=this;this[_0x2f55c6(0x135)]['enqueue'](function(){const _0xc2318b=_0x2f55c6;return _0x2b4ca2[_0xc2318b(0x132)][_0xc2318b(0x11a)](_0x73abae,_0x436865,_0x1638d6)[_0xc2318b(0x138)](function(){const _0x5270a3=_0xc2318b;logger[_0x5270a3(0x12c)](_0x5270a3(0x11d),_0x436865,_0x73abae);})[_0xc2318b(0x11c)](function(_0x552b37){const _0x54e48e=_0xc2318b;logger[_0x54e48e(0x12c)](JSON[_0x54e48e(0x128)](_0x552b37));});});},Migration[a1155_0x7f6717(0x12f)][a1155_0x7f6717(0x122)]=function(_0x43536f,_0x4c2188,_0x137c9b){const _0x26bfbf=a1155_0x7f6717,_0x312476=this;this[_0x26bfbf(0x135)][_0x26bfbf(0x12e)](function(){const _0x35acbb=_0x26bfbf;return _0x312476[_0x35acbb(0x132)]['addColumn'](_0x43536f,_0x4c2188,_0x137c9b)['then'](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x4c2188,_0x43536f);})[_0x35acbb(0x11c)](function(_0x5a2850){const _0x214ae0=_0x35acbb;logger[_0x214ae0(0x12c)](JSON[_0x214ae0(0x128)](_0x5a2850));});});},Migration['prototype'][a1155_0x7f6717(0x126)]=function(_0x385fd2){const _0x3301cc=this;this['sequence']['enqueue'](function(){const _0x3a1017=a1155_0x3443;return _0x3301cc['queryInterface'][_0x3a1017(0x126)](_0x385fd2,{'force':!![]})[_0x3a1017(0x138)](function(){const _0x313378=_0x3a1017;logger['info'](_0x313378(0x133),_0x385fd2);})[_0x3a1017(0x11c)](function(_0x348682){const _0x4fce72=_0x3a1017;logger[_0x4fce72(0x12c)](JSON[_0x4fce72(0x128)](_0x348682));});});},Migration['prototype'][a1155_0x7f6717(0x139)]=function(_0x346068,_0x5b99a7,_0x344659){const _0x13a8d5=a1155_0x7f6717,_0xc89c9d=this;this[_0x13a8d5(0x135)][_0x13a8d5(0x12e)](function(){const _0x515559=_0x13a8d5;return _0xc89c9d[_0x515559(0x132)][_0x515559(0x139)](_0x346068,_0x5b99a7,{'indexName':_0x344659[_0x515559(0x137)],'indicesType':_0x344659[_0x515559(0x12d)]})[_0x515559(0x138)](function(){const _0x200f91=_0x515559;logger[_0x200f91(0x12c)]('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x346068,_0x5b99a7[_0x200f91(0x134)](','),_0x344659[_0x200f91(0x137)],_0x344659['indicesType']);})['catch'](function(_0x48199c){const _0x597a75=_0x515559;logger[_0x597a75(0x12c)](JSON[_0x597a75(0x128)](_0x48199c));});});},Migration[a1155_0x7f6717(0x12f)][a1155_0x7f6717(0x125)]=function(_0x2161ee,_0x52b5a3){const _0xbf50fe=a1155_0x7f6717,_0x1f74b6=this;this[_0xbf50fe(0x135)]['enqueue'](function(){const _0x5dfa34=_0xbf50fe;return _0x1f74b6[_0x5dfa34(0x132)][_0x5dfa34(0x125)](_0x2161ee,_0x52b5a3)[_0x5dfa34(0x138)](function(){const _0x18aa58=_0x5dfa34;logger[_0x18aa58(0x12c)](_0x18aa58(0x131),_0x2161ee,_0x52b5a3);})[_0x5dfa34(0x11c)](function(_0x1beba8){const _0x4efffc=_0x5dfa34;logger[_0x4efffc(0x12c)](JSON['stringify'](_0x1beba8));});});},Migration[a1155_0x7f6717(0x12f)]['query']=function(_0x2c0a1b){const _0x1e7957=a1155_0x7f6717,_0x271b65=this;this[_0x1e7957(0x135)][_0x1e7957(0x12e)](function(){const _0x231b8f=_0x1e7957;return _0x271b65['queryInterface']['sequelize']['query'](_0x2c0a1b)[_0x231b8f(0x138)](function(){const _0x7e2c41=_0x231b8f;logger[_0x7e2c41(0x12c)](_0x7e2c41(0x129),_0x2c0a1b);})[_0x231b8f(0x11c)](function(_0x295f4c){const _0xb41bad=_0x231b8f;logger['info'](JSON[_0xb41bad(0x128)](_0x295f4c));});});},Migration[a1155_0x7f6717(0x12f)][a1155_0x7f6717(0x11b)]=function(_0x53ce25,_0x26953c){const _0x10d7b8=a1155_0x7f6717,_0x263e11=this;this['sequence'][_0x10d7b8(0x12e)](function(){const _0x40a052=_0x10d7b8;return _0x263e11[_0x40a052(0x132)][_0x40a052(0x11b)](_0x53ce25,_0x26953c)['then'](function(){const _0x29b018=_0x40a052;logger[_0x29b018(0x12c)](_0x29b018(0x127),_0x26953c,_0x53ce25);})[_0x40a052(0x11c)](function(_0x4e5654){const _0xc81cca=_0x40a052;logger[_0xc81cca(0x12c)](util[_0xc81cca(0x120)](_0x4e5654,{'showHidden':![],'depth':null}));});});},Migration[a1155_0x7f6717(0x12f)][a1155_0x7f6717(0x11e)]=function(_0x3db426,_0x1fa0cc,_0x33fc41){const _0x25474f=a1155_0x7f6717,_0x4f4a04=this;this[_0x25474f(0x135)][_0x25474f(0x12e)](function(){const _0x4b9094=_0x25474f;return _0x4f4a04['queryInterface'][_0x4b9094(0x11e)](_0x3db426,_0x1fa0cc,_0x33fc41)[_0x4b9094(0x138)](function(){const _0x1cd14e=_0x4b9094;logger[_0x1cd14e(0x12c)](_0x1cd14e(0x12b),_0x1fa0cc,_0x33fc41,_0x3db426);})[_0x4b9094(0x11c)](function(_0x34c4d0){logger['info'](util['inspect'](_0x34c4d0,{'showHidden':![],'depth':null}));});});},Migration['prototype']['final']=function(_0x15fc6e){const _0x78f28f=a1155_0x7f6717;this[_0x78f28f(0x135)][_0x78f28f(0x12e)](function(){return _0x15fc6e();});},module[a1155_0x7f6717(0x123)]={'up':function(_0x21bf17){return new Promise(function(_0x28b80a){const _0x4e84da=a1155_0x3443,_0x56403e=new Migration(_0x21bf17);_0x56403e[_0x4e84da(0x136)](_0x28b80a);});},'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 2896f22..1825db5 100644 --- a/server/migrations/2.4.12.js +++ b/server/migrations/2.4.12.js @@ -1 +1 @@ -const a994_0x2a73=['changeColumn','prototype','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','inspect','removeIndex','catch','indicesType','exports','renameColumn','stringify','enqueue','removeIndex\x20%s\x20%s','finally','loginMailFrequency','addIndex','Added\x20column\x20%s\x20to\x20%s','addIndex\x20%s\x20%s\x20%s\x20[%s]','removeColumn','migration','query','UPDATE\x20tools_actions\x20SET\x20tools_actions.data5\x20=\x20\x225\x22\x20WHERE\x20tools_actions.action\x20=\x20\x22urlForward\x22','addColumn','join','tail','Changed\x20column\x20%s\x20in\x20table\x20%s','indexName','util','settings','table\x20dropped\x20%s','then','sequence','query\x20%s','queryInterface','Removed\x20column\x20%s\x20from\x20%s','../config/logger','INTEGER','info','final','dropTable'];(function(_0x3aa1e4,_0x2a734c){const _0x436b0c=function(_0x1667cd){while(--_0x1667cd){_0x3aa1e4['push'](_0x3aa1e4['shift']());}};_0x436b0c(++_0x2a734c);}(a994_0x2a73,0x1a8));const a994_0x436b=function(_0x3aa1e4,_0x2a734c){_0x3aa1e4=_0x3aa1e4-0x0;let _0x436b0c=a994_0x2a73[_0x3aa1e4];return _0x436b0c;};const _0x51d1ea=a994_0x436b;'use strict';const util=require(_0x51d1ea('0x1f')),logger=require(_0x51d1ea('0x0'))(_0x51d1ea('0x17')),Sequence=function(){};Sequence['prototype']['enqueue']=function(_0x1667cd){const _0xfa1207=_0x51d1ea;this[_0xfa1207('0x1c')]=this[_0xfa1207('0x1c')]?this[_0xfa1207('0x1c')][_0xfa1207('0x11')](_0x1667cd):_0x1667cd();};const Migration=function(_0x4da535){const _0x28c20c=_0x51d1ea;this[_0x28c20c('0x25')]=_0x4da535,this[_0x28c20c('0x23')]=new Sequence();};Migration[_0x51d1ea('0x6')][_0x51d1ea('0x5')]=function(_0xe2f27a,_0x4de45a,_0x476c26){const _0x2d868e=_0x51d1ea,_0x328f18=this;this[_0x2d868e('0x23')][_0x2d868e('0xf')](function(){const _0x149334=_0x2d868e;return _0x328f18[_0x149334('0x25')][_0x149334('0x5')](_0xe2f27a,_0x4de45a,_0x476c26)[_0x149334('0x22')](function(){const _0x2c47ce=_0x149334;logger[_0x2c47ce('0x2')](_0x2c47ce('0x1d'),_0x4de45a,_0xe2f27a);})[_0x149334('0xa')](function(_0x38ce31){const _0x4346a0=_0x149334;logger[_0x4346a0('0x2')](JSON[_0x4346a0('0xe')](_0x38ce31));});});},Migration[_0x51d1ea('0x6')][_0x51d1ea('0x1a')]=function(_0xd79c88,_0x3a686e,_0x58a2ce){const _0x1bd80e=_0x51d1ea,_0x1022f7=this;this['sequence'][_0x1bd80e('0xf')](function(){const _0x497885=_0x1bd80e;return _0x1022f7[_0x497885('0x25')][_0x497885('0x1a')](_0xd79c88,_0x3a686e,_0x58a2ce)[_0x497885('0x22')](function(){const _0x3ab7ed=_0x497885;logger[_0x3ab7ed('0x2')](_0x3ab7ed('0x14'),_0x3a686e,_0xd79c88);})[_0x497885('0xa')](function(_0x3fd81c){const _0x59ca47=_0x497885;logger[_0x59ca47('0x2')](JSON['stringify'](_0x3fd81c));});});},Migration[_0x51d1ea('0x6')]['dropTable']=function(_0x23ac9f){const _0x3c407d=_0x51d1ea,_0x1ea2f8=this;this[_0x3c407d('0x23')]['enqueue'](function(){const _0x41960a=_0x3c407d;return _0x1ea2f8[_0x41960a('0x25')][_0x41960a('0x4')](_0x23ac9f,{'force':!![]})['then'](function(){const _0x41eb64=_0x41960a;logger[_0x41eb64('0x2')](_0x41eb64('0x21'),_0x23ac9f);})['catch'](function(_0x200042){const _0x1fa4d8=_0x41960a;logger[_0x1fa4d8('0x2')](JSON[_0x1fa4d8('0xe')](_0x200042));});});},Migration[_0x51d1ea('0x6')][_0x51d1ea('0x13')]=function(_0x2a1069,_0x58065c,_0x401878){const _0x4e665f=_0x51d1ea,_0x4a991f=this;this[_0x4e665f('0x23')]['enqueue'](function(){const _0x46c37e=_0x4e665f;return _0x4a991f[_0x46c37e('0x25')][_0x46c37e('0x13')](_0x2a1069,_0x58065c,{'indexName':_0x401878['indexName'],'indicesType':_0x401878[_0x46c37e('0xb')]})[_0x46c37e('0x22')](function(){const _0xf38f14=_0x46c37e;logger['info'](_0xf38f14('0x15'),_0x2a1069,_0x58065c[_0xf38f14('0x1b')](','),_0x401878[_0xf38f14('0x1e')],_0x401878[_0xf38f14('0xb')]);})[_0x46c37e('0xa')](function(_0x3de381){const _0x410907=_0x46c37e;logger[_0x410907('0x2')](JSON['stringify'](_0x3de381));});});},Migration['prototype'][_0x51d1ea('0x9')]=function(_0x2681ff,_0x17ec0d){const _0x26d6ff=_0x51d1ea,_0x22db61=this;this[_0x26d6ff('0x23')][_0x26d6ff('0xf')](function(){const _0x1ecfa9=_0x26d6ff;return _0x22db61['queryInterface']['removeIndex'](_0x2681ff,_0x17ec0d)[_0x1ecfa9('0x22')](function(){const _0xaaf72e=_0x1ecfa9;logger[_0xaaf72e('0x2')](_0xaaf72e('0x10'),_0x2681ff,_0x17ec0d);})[_0x1ecfa9('0xa')](function(_0x1a71d4){const _0x1b8a47=_0x1ecfa9;logger[_0x1b8a47('0x2')](JSON[_0x1b8a47('0xe')](_0x1a71d4));});});},Migration[_0x51d1ea('0x6')]['query']=function(_0xc5eefa){const _0x157503=_0x51d1ea,_0x26f973=this;this[_0x157503('0x23')]['enqueue'](function(){const _0x1f4863=_0x157503;return _0x26f973[_0x1f4863('0x25')]['sequelize'][_0x1f4863('0x18')](_0xc5eefa)['then'](function(){const _0x150e43=_0x1f4863;logger[_0x150e43('0x2')](_0x150e43('0x24'),_0xc5eefa);})[_0x1f4863('0xa')](function(_0x5addf0){const _0xd71f56=_0x1f4863;logger['info'](JSON[_0xd71f56('0xe')](_0x5addf0));});});},Migration[_0x51d1ea('0x6')]['removeColumn']=function(_0x3ee942,_0x3490e5){const _0x129491=_0x51d1ea,_0x4dce4b=this;this[_0x129491('0x23')]['enqueue'](function(){const _0x25c94b=_0x129491;return _0x4dce4b[_0x25c94b('0x25')][_0x25c94b('0x16')](_0x3ee942,_0x3490e5)[_0x25c94b('0x22')](function(){const _0x13ca94=_0x25c94b;logger['info'](_0x13ca94('0x26'),_0x3490e5,_0x3ee942);})[_0x25c94b('0xa')](function(_0x68135c){const _0x2e78b4=_0x25c94b;logger[_0x2e78b4('0x2')](util[_0x2e78b4('0x8')](_0x68135c,{'showHidden':![],'depth':null}));});});},Migration[_0x51d1ea('0x6')][_0x51d1ea('0xd')]=function(_0x101b9c,_0x3bf30e,_0x5e3b91){const _0x29a815=_0x51d1ea,_0x1935a3=this;this['sequence'][_0x29a815('0xf')](function(){const _0xd0b86a=_0x29a815;return _0x1935a3[_0xd0b86a('0x25')][_0xd0b86a('0xd')](_0x101b9c,_0x3bf30e,_0x5e3b91)['then'](function(){const _0x3e59f3=_0xd0b86a;logger[_0x3e59f3('0x2')](_0x3e59f3('0x7'),_0x3bf30e,_0x5e3b91,_0x101b9c);})[_0xd0b86a('0xa')](function(_0x501bc6){const _0x47ac9f=_0xd0b86a;logger[_0x47ac9f('0x2')](util[_0x47ac9f('0x8')](_0x501bc6,{'showHidden':![],'depth':null}));});});},Migration['prototype']['final']=function(_0x51f2ed){const _0x1d45ec=_0x51d1ea;this[_0x1d45ec('0x23')]['enqueue'](function(){return _0x51f2ed();});},module[_0x51d1ea('0xc')]={'up':function(_0x518803,_0x392eb8){return new Promise(function(_0x56a0c6){const _0x2d2a09=a994_0x436b,_0x58a9c5=new Migration(_0x518803);_0x58a9c5['addColumn'](_0x2d2a09('0x20'),_0x2d2a09('0x12'),{'type':_0x392eb8[_0x2d2a09('0x1')],'defaultValue':0xa}),_0x58a9c5[_0x2d2a09('0x18')](_0x2d2a09('0x19')),_0x58a9c5[_0x2d2a09('0x3')](_0x56a0c6);});},'down':function(){}}; \ No newline at end of file +const a1156_0x3c7b=['addIndex','table\x20dropped\x20%s','stringify','exports','tail','migration','INTEGER','join','Changed\x20column\x20%s\x20in\x20table\x20%s','indexName','then','info','queryInterface','removeIndex\x20%s\x20%s','addIndex\x20%s\x20%s\x20%s\x20[%s]','sequelize','dropTable','prototype','inspect','catch','renameColumn','../config/logger','Added\x20column\x20%s\x20to\x20%s','indicesType','loginMailFrequency','Removed\x20column\x20%s\x20from\x20%s','addColumn','finally','changeColumn','final','sequence','query','settings','query\x20%s','enqueue'];(function(_0x14673b,_0x712f1d){const _0x3c7b80=function(_0x4cb5b1){while(--_0x4cb5b1){_0x14673b['push'](_0x14673b['shift']());}};_0x3c7b80(++_0x712f1d);}(a1156_0x3c7b,0x1f3));const a1156_0x4cb5=function(_0x14673b,_0x712f1d){_0x14673b=_0x14673b-0x184;let _0x3c7b80=a1156_0x3c7b[_0x14673b];return _0x3c7b80;};const a1156_0xd39986=a1156_0x4cb5;'use strict';const util=require('util'),logger=require(a1156_0xd39986(0x190))(a1156_0xd39986(0x1a3)),Sequence=function(){};Sequence[a1156_0xd39986(0x18c)][a1156_0xd39986(0x19d)]=function(_0x9a9d8a){const _0x2dc929=a1156_0xd39986;this['tail']=this[_0x2dc929(0x1a2)]?this[_0x2dc929(0x1a2)][_0x2dc929(0x196)](_0x9a9d8a):_0x9a9d8a();};const Migration=function(_0x28076c){const _0x30cb76=a1156_0xd39986;this[_0x30cb76(0x187)]=_0x28076c,this[_0x30cb76(0x199)]=new Sequence();};Migration[a1156_0xd39986(0x18c)][a1156_0xd39986(0x197)]=function(_0x32e8ee,_0x482d68,_0x2519e8){const _0x5c0a07=a1156_0xd39986,_0x5917a0=this;this[_0x5c0a07(0x199)][_0x5c0a07(0x19d)](function(){const _0x4df47d=_0x5c0a07;return _0x5917a0[_0x4df47d(0x187)][_0x4df47d(0x197)](_0x32e8ee,_0x482d68,_0x2519e8)[_0x4df47d(0x185)](function(){const _0x234e11=_0x4df47d;logger[_0x234e11(0x186)](_0x234e11(0x1a6),_0x482d68,_0x32e8ee);})[_0x4df47d(0x18e)](function(_0x1970be){const _0x26d0f6=_0x4df47d;logger[_0x26d0f6(0x186)](JSON[_0x26d0f6(0x1a0)](_0x1970be));});});},Migration[a1156_0xd39986(0x18c)][a1156_0xd39986(0x195)]=function(_0x2bccad,_0x343b6a,_0x1e2320){const _0x7ec7ed=a1156_0xd39986,_0x6e4442=this;this['sequence'][_0x7ec7ed(0x19d)](function(){const _0x422ea4=_0x7ec7ed;return _0x6e4442['queryInterface'][_0x422ea4(0x195)](_0x2bccad,_0x343b6a,_0x1e2320)[_0x422ea4(0x185)](function(){const _0x3372e9=_0x422ea4;logger[_0x3372e9(0x186)](_0x3372e9(0x191),_0x343b6a,_0x2bccad);})[_0x422ea4(0x18e)](function(_0xae6132){const _0x3cebf0=_0x422ea4;logger[_0x3cebf0(0x186)](JSON[_0x3cebf0(0x1a0)](_0xae6132));});});},Migration['prototype'][a1156_0xd39986(0x18b)]=function(_0x148501){const _0x55567e=this;this['sequence']['enqueue'](function(){const _0xf52d4c=a1156_0x4cb5;return _0x55567e[_0xf52d4c(0x187)][_0xf52d4c(0x18b)](_0x148501,{'force':!![]})[_0xf52d4c(0x185)](function(){const _0x1cf2c8=_0xf52d4c;logger[_0x1cf2c8(0x186)](_0x1cf2c8(0x19f),_0x148501);})[_0xf52d4c(0x18e)](function(_0x4edf94){logger['info'](JSON['stringify'](_0x4edf94));});});},Migration[a1156_0xd39986(0x18c)][a1156_0xd39986(0x19e)]=function(_0x4009aa,_0x284206,_0x31643a){const _0x2120fa=a1156_0xd39986,_0x3981ae=this;this[_0x2120fa(0x199)][_0x2120fa(0x19d)](function(){const _0x383bc7=_0x2120fa;return _0x3981ae['queryInterface'][_0x383bc7(0x19e)](_0x4009aa,_0x284206,{'indexName':_0x31643a[_0x383bc7(0x184)],'indicesType':_0x31643a[_0x383bc7(0x192)]})[_0x383bc7(0x185)](function(){const _0x13b6d9=_0x383bc7;logger[_0x13b6d9(0x186)](_0x13b6d9(0x189),_0x4009aa,_0x284206[_0x13b6d9(0x1a5)](','),_0x31643a['indexName'],_0x31643a[_0x13b6d9(0x192)]);})[_0x383bc7(0x18e)](function(_0x1dc3e0){const _0x6c06a2=_0x383bc7;logger['info'](JSON[_0x6c06a2(0x1a0)](_0x1dc3e0));});});},Migration['prototype']['removeIndex']=function(_0x8af98d,_0x44c680){const _0x1dbbbf=a1156_0xd39986,_0x55bdec=this;this[_0x1dbbbf(0x199)]['enqueue'](function(){const _0x275ea3=_0x1dbbbf;return _0x55bdec[_0x275ea3(0x187)]['removeIndex'](_0x8af98d,_0x44c680)['then'](function(){const _0x24ccf9=_0x275ea3;logger['info'](_0x24ccf9(0x188),_0x8af98d,_0x44c680);})[_0x275ea3(0x18e)](function(_0x4dcba1){const _0x1f466b=_0x275ea3;logger[_0x1f466b(0x186)](JSON[_0x1f466b(0x1a0)](_0x4dcba1));});});},Migration['prototype'][a1156_0xd39986(0x19a)]=function(_0x2bb7f9){const _0x21a1ca=a1156_0xd39986,_0x2d7ad1=this;this[_0x21a1ca(0x199)][_0x21a1ca(0x19d)](function(){const _0x50133d=_0x21a1ca;return _0x2d7ad1[_0x50133d(0x187)][_0x50133d(0x18a)][_0x50133d(0x19a)](_0x2bb7f9)['then'](function(){const _0x3c4bdc=_0x50133d;logger[_0x3c4bdc(0x186)](_0x3c4bdc(0x19c),_0x2bb7f9);})[_0x50133d(0x18e)](function(_0x4c9012){const _0x2e0fab=_0x50133d;logger[_0x2e0fab(0x186)](JSON[_0x2e0fab(0x1a0)](_0x4c9012));});});},Migration[a1156_0xd39986(0x18c)]['removeColumn']=function(_0x256ff7,_0x33e45b){const _0x334472=a1156_0xd39986,_0x3d9be1=this;this[_0x334472(0x199)]['enqueue'](function(){const _0x2d9648=_0x334472;return _0x3d9be1['queryInterface']['removeColumn'](_0x256ff7,_0x33e45b)['then'](function(){const _0x24708f=a1156_0x4cb5;logger[_0x24708f(0x186)](_0x24708f(0x194),_0x33e45b,_0x256ff7);})[_0x2d9648(0x18e)](function(_0xea48d4){const _0x4f22b3=_0x2d9648;logger[_0x4f22b3(0x186)](util[_0x4f22b3(0x18d)](_0xea48d4,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1156_0xd39986(0x18f)]=function(_0x3880f5,_0x17d7e8,_0x35b05c){const _0x152598=a1156_0xd39986,_0x201e1f=this;this[_0x152598(0x199)][_0x152598(0x19d)](function(){const _0x51e0ef=_0x152598;return _0x201e1f['queryInterface'][_0x51e0ef(0x18f)](_0x3880f5,_0x17d7e8,_0x35b05c)[_0x51e0ef(0x185)](function(){const _0x13bb20=_0x51e0ef;logger[_0x13bb20(0x186)]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x17d7e8,_0x35b05c,_0x3880f5);})['catch'](function(_0x4027af){const _0x6dd10=_0x51e0ef;logger[_0x6dd10(0x186)](util[_0x6dd10(0x18d)](_0x4027af,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1156_0xd39986(0x198)]=function(_0x323523){const _0x25a33d=a1156_0xd39986;this[_0x25a33d(0x199)][_0x25a33d(0x19d)](function(){return _0x323523();});},module[a1156_0xd39986(0x1a1)]={'up':function(_0x39e5a1,_0x1b58bf){return new Promise(function(_0x39f19d){const _0x2535a4=a1156_0x4cb5,_0x3ea754=new Migration(_0x39e5a1);_0x3ea754['addColumn'](_0x2535a4(0x19b),_0x2535a4(0x193),{'type':_0x1b58bf[_0x2535a4(0x1a4)],'defaultValue':0xa}),_0x3ea754[_0x2535a4(0x19a)]('UPDATE\x20tools_actions\x20SET\x20tools_actions.data5\x20=\x20\x225\x22\x20WHERE\x20tools_actions.action\x20=\x20\x22urlForward\x22'),_0x3ea754['final'](_0x39f19d);});},'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 603a792..eab8fcb 100644 --- a/server/migrations/2.4.13.js +++ b/server/migrations/2.4.13.js @@ -1 +1 @@ -const a995_0x802c=['addIndex','info','tail','Changed\x20column\x20%s\x20in\x20table\x20%s','removeColumn','table\x20dropped\x20%s','indicesType','indexName','sendUnpauseOnSubmit','join','addColumn','sequence','sequelize','queryInterface','catch','removeIndex\x20%s\x20%s','../config/logger','Removed\x20column\x20%s\x20from\x20%s','jscripty_projects','stringify','query','then','removeIndex','Added\x20column\x20%s\x20to\x20%s','changeColumn','prototype','renameColumn','util','exports','inspect','enqueue','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s'];(function(_0x41330f,_0x802cb){const _0x58adf4=function(_0x1b48b0){while(--_0x1b48b0){_0x41330f['push'](_0x41330f['shift']());}};_0x58adf4(++_0x802cb);}(a995_0x802c,0xe0));const a995_0x58ad=function(_0x41330f,_0x802cb){_0x41330f=_0x41330f-0x0;let _0x58adf4=a995_0x802c[_0x41330f];return _0x58adf4;};const _0x42cb06=a995_0x58ad;'use strict';const util=require(_0x42cb06('0x1b')),logger=require(_0x42cb06('0x10'))('migration'),Sequence=function(){};Sequence[_0x42cb06('0x19')][_0x42cb06('0x1e')]=function(_0x1b48b0){const _0x364092=_0x42cb06;this[_0x364092('0x2')]=this['tail']?this[_0x364092('0x2')]['finally'](_0x1b48b0):_0x1b48b0();};const Migration=function(_0x377bd1){const _0x3add03=_0x42cb06;this[_0x3add03('0xd')]=_0x377bd1,this[_0x3add03('0xb')]=new Sequence();};Migration[_0x42cb06('0x19')][_0x42cb06('0x18')]=function(_0x534863,_0x517d1b,_0x2be8d5){const _0x16e83e=_0x42cb06,_0x1a7a21=this;this[_0x16e83e('0xb')][_0x16e83e('0x1e')](function(){const _0x6ecab8=_0x16e83e;return _0x1a7a21[_0x6ecab8('0xd')]['changeColumn'](_0x534863,_0x517d1b,_0x2be8d5)[_0x6ecab8('0x15')](function(){const _0x5c1136=_0x6ecab8;logger[_0x5c1136('0x1')](_0x5c1136('0x3'),_0x517d1b,_0x534863);})['catch'](function(_0x501c44){const _0x2ec038=_0x6ecab8;logger[_0x2ec038('0x1')](JSON['stringify'](_0x501c44));});});},Migration[_0x42cb06('0x19')]['addColumn']=function(_0x14765d,_0xc23022,_0x597763){const _0x16ef51=_0x42cb06,_0x32dc51=this;this[_0x16ef51('0xb')][_0x16ef51('0x1e')](function(){const _0x286b0e=_0x16ef51;return _0x32dc51['queryInterface'][_0x286b0e('0xa')](_0x14765d,_0xc23022,_0x597763)[_0x286b0e('0x15')](function(){const _0x5f1142=_0x286b0e;logger[_0x5f1142('0x1')](_0x5f1142('0x17'),_0xc23022,_0x14765d);})[_0x286b0e('0xe')](function(_0x22cc3f){const _0xdd8810=_0x286b0e;logger[_0xdd8810('0x1')](JSON[_0xdd8810('0x13')](_0x22cc3f));});});},Migration[_0x42cb06('0x19')]['dropTable']=function(_0xcc8552){const _0x101c2a=_0x42cb06,_0x149644=this;this[_0x101c2a('0xb')][_0x101c2a('0x1e')](function(){const _0x3d18ef=_0x101c2a;return _0x149644['queryInterface']['dropTable'](_0xcc8552,{'force':!![]})[_0x3d18ef('0x15')](function(){const _0x626205=_0x3d18ef;logger[_0x626205('0x1')](_0x626205('0x5'),_0xcc8552);})[_0x3d18ef('0xe')](function(_0x5ad3bd){const _0x9960ab=_0x3d18ef;logger['info'](JSON[_0x9960ab('0x13')](_0x5ad3bd));});});},Migration['prototype'][_0x42cb06('0x0')]=function(_0x768aee,_0x475f88,_0x3eefb3){const _0x4a17cd=_0x42cb06,_0x589341=this;this[_0x4a17cd('0xb')]['enqueue'](function(){const _0x3c952c=_0x4a17cd;return _0x589341[_0x3c952c('0xd')][_0x3c952c('0x0')](_0x768aee,_0x475f88,{'indexName':_0x3eefb3[_0x3c952c('0x7')],'indicesType':_0x3eefb3['indicesType']})[_0x3c952c('0x15')](function(){const _0x480cb4=_0x3c952c;logger[_0x480cb4('0x1')]('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x768aee,_0x475f88[_0x480cb4('0x9')](','),_0x3eefb3[_0x480cb4('0x7')],_0x3eefb3[_0x480cb4('0x6')]);})[_0x3c952c('0xe')](function(_0x6b07c7){const _0x3a1bd7=_0x3c952c;logger['info'](JSON[_0x3a1bd7('0x13')](_0x6b07c7));});});},Migration[_0x42cb06('0x19')]['removeIndex']=function(_0x324dda,_0x4b3156){const _0x38e9ec=_0x42cb06,_0x2fa769=this;this[_0x38e9ec('0xb')][_0x38e9ec('0x1e')](function(){const _0x47044a=_0x38e9ec;return _0x2fa769['queryInterface'][_0x47044a('0x16')](_0x324dda,_0x4b3156)[_0x47044a('0x15')](function(){const _0x1c64fe=_0x47044a;logger[_0x1c64fe('0x1')](_0x1c64fe('0xf'),_0x324dda,_0x4b3156);})[_0x47044a('0xe')](function(_0x4b2b04){const _0x3a1b48=_0x47044a;logger[_0x3a1b48('0x1')](JSON['stringify'](_0x4b2b04));});});},Migration['prototype'][_0x42cb06('0x14')]=function(_0x16ad98){const _0x2b14af=_0x42cb06,_0x4088e5=this;this[_0x2b14af('0xb')][_0x2b14af('0x1e')](function(){const _0x2efa8e=_0x2b14af;return _0x4088e5['queryInterface'][_0x2efa8e('0xc')]['query'](_0x16ad98)[_0x2efa8e('0x15')](function(){const _0x326d9b=_0x2efa8e;logger[_0x326d9b('0x1')]('query\x20%s',_0x16ad98);})[_0x2efa8e('0xe')](function(_0x6d2de3){const _0x43e820=_0x2efa8e;logger[_0x43e820('0x1')](JSON[_0x43e820('0x13')](_0x6d2de3));});});},Migration[_0x42cb06('0x19')][_0x42cb06('0x4')]=function(_0x3191a6,_0x18057a){const _0x398529=_0x42cb06,_0xd4bf19=this;this[_0x398529('0xb')][_0x398529('0x1e')](function(){const _0x5d68e1=_0x398529;return _0xd4bf19[_0x5d68e1('0xd')][_0x5d68e1('0x4')](_0x3191a6,_0x18057a)[_0x5d68e1('0x15')](function(){const _0x583f52=_0x5d68e1;logger[_0x583f52('0x1')](_0x583f52('0x11'),_0x18057a,_0x3191a6);})[_0x5d68e1('0xe')](function(_0x10769d){const _0x3969b1=_0x5d68e1;logger['info'](util[_0x3969b1('0x1d')](_0x10769d,{'showHidden':![],'depth':null}));});});},Migration[_0x42cb06('0x19')][_0x42cb06('0x1a')]=function(_0x516d78,_0x5891af,_0x2111ef){const _0x299b49=_0x42cb06,_0x1fdcae=this;this[_0x299b49('0xb')][_0x299b49('0x1e')](function(){const _0x244e67=_0x299b49;return _0x1fdcae['queryInterface'][_0x244e67('0x1a')](_0x516d78,_0x5891af,_0x2111ef)[_0x244e67('0x15')](function(){const _0x49ae16=_0x244e67;logger[_0x49ae16('0x1')](_0x49ae16('0x1f'),_0x5891af,_0x2111ef,_0x516d78);})[_0x244e67('0xe')](function(_0x1d0586){const _0x27fee1=_0x244e67;logger[_0x27fee1('0x1')](util[_0x27fee1('0x1d')](_0x1d0586,{'showHidden':![],'depth':null}));});});},Migration[_0x42cb06('0x19')]['final']=function(_0x180f9b){const _0x4dc0b8=_0x42cb06;this[_0x4dc0b8('0xb')][_0x4dc0b8('0x1e')](function(){return _0x180f9b();});},module[_0x42cb06('0x1c')]={'up':function(_0x5d926b,_0x14f5a7){return new Promise(function(_0x1f4436){const _0x21ffae=a995_0x58ad,_0x31eb2b=new Migration(_0x5d926b);_0x31eb2b[_0x21ffae('0xa')](_0x21ffae('0x12'),_0x21ffae('0x8'),{'type':_0x14f5a7['BOOLEAN'],'defaultValue':![]}),_0x31eb2b['final'](_0x1f4436);});},'down':function(){}}; \ No newline at end of file +const a1157_0x49c0=['renameColumn','stringify','BOOLEAN','then','query\x20%s','sequelize','queryInterface','query','util','Added\x20column\x20%s\x20to\x20%s','sendUnpauseOnSubmit','addIndex\x20%s\x20%s\x20%s\x20[%s]','addColumn','Removed\x20column\x20%s\x20from\x20%s','sequence','../config/logger','removeIndex','join','enqueue','removeColumn','migration','finally','indexName','catch','changeColumn','tail','dropTable','addIndex','info','prototype','Changed\x20column\x20%s\x20in\x20table\x20%s','indicesType','inspect','jscripty_projects','table\x20dropped\x20%s','final'];(function(_0x307ee7,_0x467901){const _0x49c000=function(_0x19dbe8){while(--_0x19dbe8){_0x307ee7['push'](_0x307ee7['shift']());}};_0x49c000(++_0x467901);}(a1157_0x49c0,0x122));const a1157_0x19db=function(_0x307ee7,_0x467901){_0x307ee7=_0x307ee7-0xa7;let _0x49c000=a1157_0x49c0[_0x307ee7];return _0x49c000;};const a1157_0x4a418b=a1157_0x19db;'use strict';const util=require(a1157_0x4a418b(0xad)),logger=require(a1157_0x4a418b(0xb4))(a1157_0x4a418b(0xb9)),Sequence=function(){};Sequence['prototype'][a1157_0x4a418b(0xb7)]=function(_0x5d8c26){const _0xaeac34=a1157_0x4a418b;this['tail']=this[_0xaeac34(0xbe)]?this[_0xaeac34(0xbe)][_0xaeac34(0xba)](_0x5d8c26):_0x5d8c26();};const Migration=function(_0x1e983c){const _0x59f07a=a1157_0x4a418b;this[_0x59f07a(0xab)]=_0x1e983c,this[_0x59f07a(0xb3)]=new Sequence();};Migration[a1157_0x4a418b(0xc2)]['changeColumn']=function(_0x3a3711,_0x527325,_0x15037c){const _0xc10601=a1157_0x4a418b,_0x343b2=this;this[_0xc10601(0xb3)][_0xc10601(0xb7)](function(){const _0x55735a=_0xc10601;return _0x343b2[_0x55735a(0xab)][_0x55735a(0xbd)](_0x3a3711,_0x527325,_0x15037c)[_0x55735a(0xa8)](function(){const _0x15aa59=_0x55735a;logger['info'](_0x15aa59(0xc3),_0x527325,_0x3a3711);})[_0x55735a(0xbc)](function(_0x5ae8eb){const _0x337967=_0x55735a;logger[_0x337967(0xc1)](JSON[_0x337967(0xca)](_0x5ae8eb));});});},Migration[a1157_0x4a418b(0xc2)][a1157_0x4a418b(0xb1)]=function(_0x5dc79e,_0x59182e,_0x4301c5){const _0xb5a962=a1157_0x4a418b,_0x315fdf=this;this[_0xb5a962(0xb3)][_0xb5a962(0xb7)](function(){const _0x3f2bf9=_0xb5a962;return _0x315fdf[_0x3f2bf9(0xab)][_0x3f2bf9(0xb1)](_0x5dc79e,_0x59182e,_0x4301c5)[_0x3f2bf9(0xa8)](function(){const _0x47e9f2=_0x3f2bf9;logger['info'](_0x47e9f2(0xae),_0x59182e,_0x5dc79e);})[_0x3f2bf9(0xbc)](function(_0x283f54){const _0x114cc5=_0x3f2bf9;logger['info'](JSON[_0x114cc5(0xca)](_0x283f54));});});},Migration[a1157_0x4a418b(0xc2)][a1157_0x4a418b(0xbf)]=function(_0x2ed539){const _0x175274=a1157_0x4a418b,_0x2b2a0e=this;this[_0x175274(0xb3)][_0x175274(0xb7)](function(){const _0x477003=_0x175274;return _0x2b2a0e[_0x477003(0xab)]['dropTable'](_0x2ed539,{'force':!![]})[_0x477003(0xa8)](function(){const _0x359526=_0x477003;logger[_0x359526(0xc1)](_0x359526(0xc7),_0x2ed539);})['catch'](function(_0xa58ce4){const _0x4c10d0=_0x477003;logger[_0x4c10d0(0xc1)](JSON[_0x4c10d0(0xca)](_0xa58ce4));});});},Migration[a1157_0x4a418b(0xc2)][a1157_0x4a418b(0xc0)]=function(_0x202419,_0x5680ac,_0x13e27c){const _0x2eeb06=a1157_0x4a418b,_0x18d51f=this;this['sequence'][_0x2eeb06(0xb7)](function(){const _0x58f59c=_0x2eeb06;return _0x18d51f[_0x58f59c(0xab)][_0x58f59c(0xc0)](_0x202419,_0x5680ac,{'indexName':_0x13e27c[_0x58f59c(0xbb)],'indicesType':_0x13e27c[_0x58f59c(0xc4)]})[_0x58f59c(0xa8)](function(){const _0xfefa86=_0x58f59c;logger[_0xfefa86(0xc1)](_0xfefa86(0xb0),_0x202419,_0x5680ac[_0xfefa86(0xb6)](','),_0x13e27c[_0xfefa86(0xbb)],_0x13e27c[_0xfefa86(0xc4)]);})[_0x58f59c(0xbc)](function(_0x457c65){logger['info'](JSON['stringify'](_0x457c65));});});},Migration[a1157_0x4a418b(0xc2)]['removeIndex']=function(_0x130105,_0x235046){const _0x3a2490=a1157_0x4a418b,_0x28b02b=this;this[_0x3a2490(0xb3)][_0x3a2490(0xb7)](function(){const _0xe63031=_0x3a2490;return _0x28b02b[_0xe63031(0xab)][_0xe63031(0xb5)](_0x130105,_0x235046)[_0xe63031(0xa8)](function(){const _0x3d6f6d=_0xe63031;logger[_0x3d6f6d(0xc1)]('removeIndex\x20%s\x20%s',_0x130105,_0x235046);})[_0xe63031(0xbc)](function(_0x2f2610){const _0x279c3e=_0xe63031;logger[_0x279c3e(0xc1)](JSON['stringify'](_0x2f2610));});});},Migration[a1157_0x4a418b(0xc2)][a1157_0x4a418b(0xac)]=function(_0xfcb1ab){const _0x3802ff=this;this['sequence']['enqueue'](function(){const _0x318a97=a1157_0x19db;return _0x3802ff[_0x318a97(0xab)][_0x318a97(0xaa)][_0x318a97(0xac)](_0xfcb1ab)[_0x318a97(0xa8)](function(){const _0x202747=_0x318a97;logger[_0x202747(0xc1)](_0x202747(0xa9),_0xfcb1ab);})[_0x318a97(0xbc)](function(_0x20e8ea){const _0x5a149b=_0x318a97;logger[_0x5a149b(0xc1)](JSON[_0x5a149b(0xca)](_0x20e8ea));});});},Migration[a1157_0x4a418b(0xc2)][a1157_0x4a418b(0xb8)]=function(_0x5628ab,_0x5ec9d4){const _0x3e5435=a1157_0x4a418b,_0x1ba835=this;this[_0x3e5435(0xb3)][_0x3e5435(0xb7)](function(){const _0x51abad=_0x3e5435;return _0x1ba835['queryInterface']['removeColumn'](_0x5628ab,_0x5ec9d4)['then'](function(){const _0x4aefa3=a1157_0x19db;logger[_0x4aefa3(0xc1)](_0x4aefa3(0xb2),_0x5ec9d4,_0x5628ab);})[_0x51abad(0xbc)](function(_0x4af945){const _0x19d8fb=_0x51abad;logger['info'](util[_0x19d8fb(0xc5)](_0x4af945,{'showHidden':![],'depth':null}));});});},Migration[a1157_0x4a418b(0xc2)][a1157_0x4a418b(0xc9)]=function(_0x160a79,_0x258681,_0x131aff){const _0xf2a5a3=a1157_0x4a418b,_0xbb06b4=this;this['sequence'][_0xf2a5a3(0xb7)](function(){const _0x22f577=_0xf2a5a3;return _0xbb06b4['queryInterface'][_0x22f577(0xc9)](_0x160a79,_0x258681,_0x131aff)['then'](function(){const _0x4d8d84=_0x22f577;logger[_0x4d8d84(0xc1)]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x258681,_0x131aff,_0x160a79);})[_0x22f577(0xbc)](function(_0x329a31){const _0xa582ea=_0x22f577;logger['info'](util[_0xa582ea(0xc5)](_0x329a31,{'showHidden':![],'depth':null}));});});},Migration[a1157_0x4a418b(0xc2)][a1157_0x4a418b(0xc8)]=function(_0x2873f4){const _0x2dd922=a1157_0x4a418b;this[_0x2dd922(0xb3)][_0x2dd922(0xb7)](function(){return _0x2873f4();});},module['exports']={'up':function(_0xa63db1,_0x3ffe8a){return new Promise(function(_0x4cc57f){const _0x2c86f0=a1157_0x19db,_0xb9e4c6=new Migration(_0xa63db1);_0xb9e4c6[_0x2c86f0(0xb1)](_0x2c86f0(0xc6),_0x2c86f0(0xaf),{'type':_0x3ffe8a[_0x2c86f0(0xa7)],'defaultValue':![]}),_0xb9e4c6['final'](_0x4cc57f);});},'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 871131d..677aca1 100644 --- a/server/migrations/2.4.14.js +++ b/server/migrations/2.4.14.js @@ -1 +1 @@ -const a996_0x2259=['queryInterface','changeColumn','indexName','enqueue','migration','addColumn','Added\x20column\x20%s\x20to\x20%s','renameColumn','join','util','info','dropTable','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','finally','sequelize','stringify','indicesType','query','removeColumn','../config/logger','table\x20dropped\x20%s','addIndex','prototype','Removed\x20column\x20%s\x20from\x20%s','catch','query\x20%s','sequence','tail','addIndex\x20%s\x20%s\x20%s\x20[%s]','Changed\x20column\x20%s\x20in\x20table\x20%s','then','final','removeIndex'];(function(_0x22a08c,_0x225915){const _0x10f037=function(_0x5a817c){while(--_0x5a817c){_0x22a08c['push'](_0x22a08c['shift']());}};_0x10f037(++_0x225915);}(a996_0x2259,0x1e8));const a996_0x10f0=function(_0x22a08c,_0x225915){_0x22a08c=_0x22a08c-0x0;let _0x10f037=a996_0x2259[_0x22a08c];return _0x10f037;};const _0x22a9f2=a996_0x10f0;'use strict';const util=require(_0x22a9f2('0x10')),logger=require(_0x22a9f2('0x1a'))(_0x22a9f2('0xb')),Sequence=function(){};Sequence[_0x22a9f2('0x1d')][_0x22a9f2('0xa')]=function(_0x5a817c){const _0x2c14d3=_0x22a9f2;this[_0x2c14d3('0x1')]=this[_0x2c14d3('0x1')]?this[_0x2c14d3('0x1')][_0x2c14d3('0x14')](_0x5a817c):_0x5a817c();};const Migration=function(_0x1015e0){const _0x369b2c=_0x22a9f2;this[_0x369b2c('0x7')]=_0x1015e0,this[_0x369b2c('0x0')]=new Sequence();};Migration[_0x22a9f2('0x1d')][_0x22a9f2('0x8')]=function(_0x2967b2,_0xe6ab5f,_0x532530){const _0x355fe5=_0x22a9f2,_0x2f7c13=this;this[_0x355fe5('0x0')][_0x355fe5('0xa')](function(){const _0x5f669d=_0x355fe5;return _0x2f7c13[_0x5f669d('0x7')][_0x5f669d('0x8')](_0x2967b2,_0xe6ab5f,_0x532530)[_0x5f669d('0x4')](function(){const _0xc6bc6=_0x5f669d;logger['info'](_0xc6bc6('0x3'),_0xe6ab5f,_0x2967b2);})[_0x5f669d('0x1f')](function(_0x5f4029){const _0x1d4f7c=_0x5f669d;logger[_0x1d4f7c('0x11')](JSON['stringify'](_0x5f4029));});});},Migration[_0x22a9f2('0x1d')]['addColumn']=function(_0x28a594,_0x51ccf1,_0x2acf04){const _0x3d6941=_0x22a9f2,_0x1f8656=this;this['sequence'][_0x3d6941('0xa')](function(){const _0x4298fb=_0x3d6941;return _0x1f8656[_0x4298fb('0x7')][_0x4298fb('0xc')](_0x28a594,_0x51ccf1,_0x2acf04)['then'](function(){const _0x28e3ee=_0x4298fb;logger[_0x28e3ee('0x11')](_0x28e3ee('0xd'),_0x51ccf1,_0x28a594);})[_0x4298fb('0x1f')](function(_0x24614b){logger['info'](JSON['stringify'](_0x24614b));});});},Migration['prototype'][_0x22a9f2('0x12')]=function(_0x26e5cc){const _0x5a9c92=_0x22a9f2,_0x16b490=this;this[_0x5a9c92('0x0')]['enqueue'](function(){const _0x21b0a0=_0x5a9c92;return _0x16b490[_0x21b0a0('0x7')][_0x21b0a0('0x12')](_0x26e5cc,{'force':!![]})[_0x21b0a0('0x4')](function(){const _0x3e3700=_0x21b0a0;logger[_0x3e3700('0x11')](_0x3e3700('0x1b'),_0x26e5cc);})[_0x21b0a0('0x1f')](function(_0xda603d){logger['info'](JSON['stringify'](_0xda603d));});});},Migration[_0x22a9f2('0x1d')]['addIndex']=function(_0x288cb1,_0x57386b,_0x1ba875){const _0x50465a=_0x22a9f2,_0x2fc9de=this;this[_0x50465a('0x0')][_0x50465a('0xa')](function(){const _0x540c11=_0x50465a;return _0x2fc9de[_0x540c11('0x7')][_0x540c11('0x1c')](_0x288cb1,_0x57386b,{'indexName':_0x1ba875[_0x540c11('0x9')],'indicesType':_0x1ba875[_0x540c11('0x17')]})[_0x540c11('0x4')](function(){const _0x541a3c=_0x540c11;logger[_0x541a3c('0x11')](_0x541a3c('0x2'),_0x288cb1,_0x57386b[_0x541a3c('0xf')](','),_0x1ba875[_0x541a3c('0x9')],_0x1ba875[_0x541a3c('0x17')]);})[_0x540c11('0x1f')](function(_0x5a7392){const _0x5813c0=_0x540c11;logger[_0x5813c0('0x11')](JSON[_0x5813c0('0x16')](_0x5a7392));});});},Migration['prototype'][_0x22a9f2('0x6')]=function(_0x46d241,_0x49db79){const _0x4bf785=_0x22a9f2,_0x5cd421=this;this[_0x4bf785('0x0')][_0x4bf785('0xa')](function(){const _0x368d34=_0x4bf785;return _0x5cd421[_0x368d34('0x7')]['removeIndex'](_0x46d241,_0x49db79)['then'](function(){const _0x5eabb1=_0x368d34;logger[_0x5eabb1('0x11')]('removeIndex\x20%s\x20%s',_0x46d241,_0x49db79);})[_0x368d34('0x1f')](function(_0x4931ba){const _0x54165a=_0x368d34;logger[_0x54165a('0x11')](JSON[_0x54165a('0x16')](_0x4931ba));});});},Migration[_0x22a9f2('0x1d')][_0x22a9f2('0x18')]=function(_0xb59d1){const _0x10e0bc=_0x22a9f2,_0x993cc4=this;this[_0x10e0bc('0x0')][_0x10e0bc('0xa')](function(){const _0xd0da7f=_0x10e0bc;return _0x993cc4[_0xd0da7f('0x7')][_0xd0da7f('0x15')][_0xd0da7f('0x18')](_0xb59d1)['then'](function(){const _0x2584a9=_0xd0da7f;logger[_0x2584a9('0x11')](_0x2584a9('0x20'),_0xb59d1);})['catch'](function(_0x56a01f){logger['info'](JSON['stringify'](_0x56a01f));});});},Migration['prototype'][_0x22a9f2('0x19')]=function(_0x5fed56,_0x25f7ea){const _0x1f0941=_0x22a9f2,_0x3e85cf=this;this[_0x1f0941('0x0')][_0x1f0941('0xa')](function(){return _0x3e85cf['queryInterface']['removeColumn'](_0x5fed56,_0x25f7ea)['then'](function(){const _0x47812b=a996_0x10f0;logger[_0x47812b('0x11')](_0x47812b('0x1e'),_0x25f7ea,_0x5fed56);})['catch'](function(_0x7be1cf){const _0x584d2b=a996_0x10f0;logger[_0x584d2b('0x11')](util['inspect'](_0x7be1cf,{'showHidden':![],'depth':null}));});});},Migration['prototype']['renameColumn']=function(_0x398f6e,_0x58ee42,_0x437bbc){const _0x138aca=_0x22a9f2,_0x3ed6e5=this;this[_0x138aca('0x0')][_0x138aca('0xa')](function(){const _0x3b96ce=_0x138aca;return _0x3ed6e5[_0x3b96ce('0x7')][_0x3b96ce('0xe')](_0x398f6e,_0x58ee42,_0x437bbc)[_0x3b96ce('0x4')](function(){const _0x5eba56=_0x3b96ce;logger[_0x5eba56('0x11')](_0x5eba56('0x13'),_0x58ee42,_0x437bbc,_0x398f6e);})['catch'](function(_0x5d3bb0){const _0x1fb690=_0x3b96ce;logger[_0x1fb690('0x11')](util['inspect'](_0x5d3bb0,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x22a9f2('0x5')]=function(_0x5c22df){const _0x45a63d=_0x22a9f2;this[_0x45a63d('0x0')][_0x45a63d('0xa')](function(){return _0x5c22df();});},module['exports']={'up':function(_0x5093bc){return new Promise(function(_0x2d17ca){const _0x51891b=a996_0x10f0,_0x245a12=new Migration(_0x5093bc);_0x245a12[_0x51891b('0x5')](_0x2d17ca);});},'down':function(){}}; \ No newline at end of file +const a1158_0x52e9=['Removed\x20column\x20%s\x20from\x20%s','finally','removeIndex\x20%s\x20%s','tail','stringify','removeColumn','addIndex\x20%s\x20%s\x20%s\x20[%s]','indicesType','queryInterface','table\x20dropped\x20%s','sequence','changeColumn','join','addIndex','final','info','exports','renameColumn','util','dropTable','../config/logger','prototype','removeIndex','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','query\x20%s','then','enqueue','inspect','sequelize','Changed\x20column\x20%s\x20in\x20table\x20%s','addColumn','catch','indexName','migration'];(function(_0x55ac5c,_0x263673){const _0x52e9c2=function(_0x43a0a7){while(--_0x43a0a7){_0x55ac5c['push'](_0x55ac5c['shift']());}};_0x52e9c2(++_0x263673);}(a1158_0x52e9,0x67));const a1158_0x43a0=function(_0x55ac5c,_0x263673){_0x55ac5c=_0x55ac5c-0x1d0;let _0x52e9c2=a1158_0x52e9[_0x55ac5c];return _0x52e9c2;};const a1158_0x54de56=a1158_0x43a0;'use strict';const util=require(a1158_0x54de56(0x1e1)),logger=require(a1158_0x54de56(0x1e3))(a1158_0x54de56(0x1f0)),Sequence=function(){};Sequence[a1158_0x54de56(0x1e4)]['enqueue']=function(_0x441ac5){const _0x383856=a1158_0x54de56;this[_0x383856(0x1d2)]=this[_0x383856(0x1d2)]?this[_0x383856(0x1d2)][_0x383856(0x1d0)](_0x441ac5):_0x441ac5();};const Migration=function(_0xef7533){const _0x2f189a=a1158_0x54de56;this[_0x2f189a(0x1d7)]=_0xef7533,this['sequence']=new Sequence();};Migration[a1158_0x54de56(0x1e4)][a1158_0x54de56(0x1da)]=function(_0x7227bc,_0x2d497c,_0x2b9188){const _0x54e253=a1158_0x54de56,_0x9bcca8=this;this[_0x54e253(0x1d9)]['enqueue'](function(){const _0x55b564=_0x54e253;return _0x9bcca8[_0x55b564(0x1d7)]['changeColumn'](_0x7227bc,_0x2d497c,_0x2b9188)[_0x55b564(0x1e8)](function(){const _0x231684=_0x55b564;logger['info'](_0x231684(0x1ec),_0x2d497c,_0x7227bc);})[_0x55b564(0x1ee)](function(_0x3bc3c7){const _0x27162f=_0x55b564;logger[_0x27162f(0x1de)](JSON['stringify'](_0x3bc3c7));});});},Migration[a1158_0x54de56(0x1e4)][a1158_0x54de56(0x1ed)]=function(_0x4147be,_0x3b5ed8,_0x44ea3d){const _0x40bb0b=a1158_0x54de56,_0xc7ec4f=this;this[_0x40bb0b(0x1d9)][_0x40bb0b(0x1e9)](function(){const _0x138cc3=_0x40bb0b;return _0xc7ec4f[_0x138cc3(0x1d7)][_0x138cc3(0x1ed)](_0x4147be,_0x3b5ed8,_0x44ea3d)[_0x138cc3(0x1e8)](function(){const _0x47b6f8=_0x138cc3;logger[_0x47b6f8(0x1de)]('Added\x20column\x20%s\x20to\x20%s',_0x3b5ed8,_0x4147be);})['catch'](function(_0x249339){const _0x132c9c=_0x138cc3;logger[_0x132c9c(0x1de)](JSON[_0x132c9c(0x1d3)](_0x249339));});});},Migration['prototype'][a1158_0x54de56(0x1e2)]=function(_0x4f081f){const _0x59b2a9=a1158_0x54de56,_0x13e722=this;this[_0x59b2a9(0x1d9)][_0x59b2a9(0x1e9)](function(){const _0x11fdce=_0x59b2a9;return _0x13e722[_0x11fdce(0x1d7)][_0x11fdce(0x1e2)](_0x4f081f,{'force':!![]})[_0x11fdce(0x1e8)](function(){const _0x4a7bfb=_0x11fdce;logger[_0x4a7bfb(0x1de)](_0x4a7bfb(0x1d8),_0x4f081f);})['catch'](function(_0x3aec1b){const _0x54e862=_0x11fdce;logger[_0x54e862(0x1de)](JSON['stringify'](_0x3aec1b));});});},Migration['prototype'][a1158_0x54de56(0x1dc)]=function(_0x1bd018,_0xcf8b68,_0x19adf0){const _0x3bfa55=a1158_0x54de56,_0x268580=this;this[_0x3bfa55(0x1d9)][_0x3bfa55(0x1e9)](function(){const _0x9d99f2=_0x3bfa55;return _0x268580[_0x9d99f2(0x1d7)][_0x9d99f2(0x1dc)](_0x1bd018,_0xcf8b68,{'indexName':_0x19adf0['indexName'],'indicesType':_0x19adf0[_0x9d99f2(0x1d6)]})[_0x9d99f2(0x1e8)](function(){const _0x5196e9=_0x9d99f2;logger[_0x5196e9(0x1de)](_0x5196e9(0x1d5),_0x1bd018,_0xcf8b68[_0x5196e9(0x1db)](','),_0x19adf0[_0x5196e9(0x1ef)],_0x19adf0[_0x5196e9(0x1d6)]);})[_0x9d99f2(0x1ee)](function(_0xa7d06b){const _0x31b259=_0x9d99f2;logger[_0x31b259(0x1de)](JSON['stringify'](_0xa7d06b));});});},Migration[a1158_0x54de56(0x1e4)][a1158_0x54de56(0x1e5)]=function(_0x31610b,_0x1a99bd){const _0x5c8721=a1158_0x54de56,_0x38b172=this;this[_0x5c8721(0x1d9)][_0x5c8721(0x1e9)](function(){const _0x55ebbf=_0x5c8721;return _0x38b172['queryInterface'][_0x55ebbf(0x1e5)](_0x31610b,_0x1a99bd)['then'](function(){const _0x55e2a7=_0x55ebbf;logger[_0x55e2a7(0x1de)](_0x55e2a7(0x1d1),_0x31610b,_0x1a99bd);})[_0x55ebbf(0x1ee)](function(_0x543d41){logger['info'](JSON['stringify'](_0x543d41));});});},Migration['prototype']['query']=function(_0x37407f){const _0x578603=a1158_0x54de56,_0x1ce834=this;this[_0x578603(0x1d9)][_0x578603(0x1e9)](function(){const _0x47f016=_0x578603;return _0x1ce834[_0x47f016(0x1d7)][_0x47f016(0x1eb)]['query'](_0x37407f)['then'](function(){const _0x3e22a3=_0x47f016;logger[_0x3e22a3(0x1de)](_0x3e22a3(0x1e7),_0x37407f);})[_0x47f016(0x1ee)](function(_0x2679b4){const _0x78d231=_0x47f016;logger[_0x78d231(0x1de)](JSON['stringify'](_0x2679b4));});});},Migration['prototype'][a1158_0x54de56(0x1d4)]=function(_0x58ce30,_0x3a60fc){const _0x96bb36=a1158_0x54de56,_0x4e0c48=this;this[_0x96bb36(0x1d9)][_0x96bb36(0x1e9)](function(){const _0x285247=_0x96bb36;return _0x4e0c48[_0x285247(0x1d7)][_0x285247(0x1d4)](_0x58ce30,_0x3a60fc)[_0x285247(0x1e8)](function(){const _0x1a8a65=_0x285247;logger['info'](_0x1a8a65(0x1f1),_0x3a60fc,_0x58ce30);})[_0x285247(0x1ee)](function(_0x50cb2e){const _0x322de9=_0x285247;logger[_0x322de9(0x1de)](util[_0x322de9(0x1ea)](_0x50cb2e,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1158_0x54de56(0x1e0)]=function(_0x162343,_0x1de70f,_0x26fa4a){const _0x2a89c5=a1158_0x54de56,_0x1e52a2=this;this[_0x2a89c5(0x1d9)]['enqueue'](function(){const _0x1caeda=_0x2a89c5;return _0x1e52a2[_0x1caeda(0x1d7)][_0x1caeda(0x1e0)](_0x162343,_0x1de70f,_0x26fa4a)[_0x1caeda(0x1e8)](function(){const _0x6ad997=_0x1caeda;logger[_0x6ad997(0x1de)](_0x6ad997(0x1e6),_0x1de70f,_0x26fa4a,_0x162343);})[_0x1caeda(0x1ee)](function(_0x2342b4){const _0x5eb3c6=_0x1caeda;logger[_0x5eb3c6(0x1de)](util['inspect'](_0x2342b4,{'showHidden':![],'depth':null}));});});},Migration[a1158_0x54de56(0x1e4)][a1158_0x54de56(0x1dd)]=function(_0xf77b25){const _0x1b8e94=a1158_0x54de56;this['sequence'][_0x1b8e94(0x1e9)](function(){return _0xf77b25();});},module[a1158_0x54de56(0x1df)]={'up':function(_0x4c9636){return new Promise(function(_0x1a8432){const _0x5c0a7b=a1158_0x43a0,_0x5d9b9d=new Migration(_0x4c9636);_0x5d9b9d[_0x5c0a7b(0x1dd)](_0x1a8432);});},'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 3f0977a..fdbd1e4 100644 --- a/server/migrations/2.4.15.js +++ b/server/migrations/2.4.15.js @@ -1 +1 @@ -const a997_0x4f3c=['addColumn','dropTable','query\x20%s','then','finally','tail','removeColumn','addIndex','Removed\x20column\x20%s\x20from\x20%s','indexName','UPDATE\x20sms_accounts\x20SET\x20baseUrl\x20=\x20\x22https://sms.csc.lv\x22\x20WHERE\x20type\x20=\x20\x22csc\x22','indicesType','exports','queryInterface','sequence','changeColumn','query','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','stringify','inspect','prototype','addIndex\x20%s\x20%s\x20%s\x20[%s]','catch','renameColumn','sequelize','enqueue','removeIndex','info','Changed\x20column\x20%s\x20in\x20table\x20%s','removeIndex\x20%s\x20%s','util','join'];(function(_0x11e3af,_0x4f3c7e){const _0x46fc85=function(_0x7ac8ad){while(--_0x7ac8ad){_0x11e3af['push'](_0x11e3af['shift']());}};_0x46fc85(++_0x4f3c7e);}(a997_0x4f3c,0x111));const a997_0x46fc=function(_0x11e3af,_0x4f3c7e){_0x11e3af=_0x11e3af-0x0;let _0x46fc85=a997_0x4f3c[_0x11e3af];return _0x46fc85;};const _0x452ab6=a997_0x46fc;'use strict';const util=require(_0x452ab6('0xd')),logger=require('../config/logger')('migration'),Sequence=function(){};Sequence[_0x452ab6('0x3')][_0x452ab6('0x8')]=function(_0x7ac8ad){const _0x173fe8=_0x452ab6;this[_0x173fe8('0x14')]=this[_0x173fe8('0x14')]?this[_0x173fe8('0x14')][_0x173fe8('0x13')](_0x7ac8ad):_0x7ac8ad();};const Migration=function(_0x4871a9){const _0x246793=_0x452ab6;this['queryInterface']=_0x4871a9,this[_0x246793('0x1d')]=new Sequence();};Migration[_0x452ab6('0x3')]['changeColumn']=function(_0xda58bf,_0x13d034,_0x301e1d){const _0x3dc7e1=_0x452ab6,_0x379364=this;this[_0x3dc7e1('0x1d')][_0x3dc7e1('0x8')](function(){const _0x3fd836=_0x3dc7e1;return _0x379364[_0x3fd836('0x1c')][_0x3fd836('0x1e')](_0xda58bf,_0x13d034,_0x301e1d)[_0x3fd836('0x12')](function(){const _0x26a0ea=_0x3fd836;logger[_0x26a0ea('0xa')](_0x26a0ea('0xb'),_0x13d034,_0xda58bf);})['catch'](function(_0x48eb61){const _0x3eebc4=_0x3fd836;logger[_0x3eebc4('0xa')](JSON[_0x3eebc4('0x1')](_0x48eb61));});});},Migration[_0x452ab6('0x3')][_0x452ab6('0xf')]=function(_0x3c53b6,_0xb3f56,_0x42d046){const _0xcf6021=_0x452ab6,_0x982d0e=this;this[_0xcf6021('0x1d')][_0xcf6021('0x8')](function(){const _0x2e4554=_0xcf6021;return _0x982d0e['queryInterface'][_0x2e4554('0xf')](_0x3c53b6,_0xb3f56,_0x42d046)[_0x2e4554('0x12')](function(){const _0x59f0ed=_0x2e4554;logger[_0x59f0ed('0xa')]('Added\x20column\x20%s\x20to\x20%s',_0xb3f56,_0x3c53b6);})[_0x2e4554('0x5')](function(_0x102579){const _0x39e75d=_0x2e4554;logger[_0x39e75d('0xa')](JSON[_0x39e75d('0x1')](_0x102579));});});},Migration['prototype'][_0x452ab6('0x10')]=function(_0x7f93a3){const _0x14e031=_0x452ab6,_0x18f9ba=this;this[_0x14e031('0x1d')]['enqueue'](function(){const _0x1b97ce=_0x14e031;return _0x18f9ba['queryInterface']['dropTable'](_0x7f93a3,{'force':!![]})[_0x1b97ce('0x12')](function(){const _0x23ed2e=_0x1b97ce;logger[_0x23ed2e('0xa')]('table\x20dropped\x20%s',_0x7f93a3);})['catch'](function(_0x2fa778){const _0x554d26=_0x1b97ce;logger[_0x554d26('0xa')](JSON[_0x554d26('0x1')](_0x2fa778));});});},Migration['prototype'][_0x452ab6('0x16')]=function(_0x2476da,_0x876a63,_0x41019d){const _0x140975=_0x452ab6,_0x3c2a23=this;this[_0x140975('0x1d')]['enqueue'](function(){const _0x164de0=_0x140975;return _0x3c2a23[_0x164de0('0x1c')][_0x164de0('0x16')](_0x2476da,_0x876a63,{'indexName':_0x41019d[_0x164de0('0x18')],'indicesType':_0x41019d['indicesType']})[_0x164de0('0x12')](function(){const _0x588035=_0x164de0;logger[_0x588035('0xa')](_0x588035('0x4'),_0x2476da,_0x876a63[_0x588035('0xe')](','),_0x41019d[_0x588035('0x18')],_0x41019d[_0x588035('0x1a')]);})['catch'](function(_0x24cc1f){const _0x51f357=_0x164de0;logger['info'](JSON[_0x51f357('0x1')](_0x24cc1f));});});},Migration[_0x452ab6('0x3')][_0x452ab6('0x9')]=function(_0x3894b2,_0x44deed){const _0x5ee3db=_0x452ab6,_0x12cde4=this;this[_0x5ee3db('0x1d')][_0x5ee3db('0x8')](function(){const _0x382896=_0x5ee3db;return _0x12cde4[_0x382896('0x1c')][_0x382896('0x9')](_0x3894b2,_0x44deed)[_0x382896('0x12')](function(){const _0x22df32=_0x382896;logger[_0x22df32('0xa')](_0x22df32('0xc'),_0x3894b2,_0x44deed);})[_0x382896('0x5')](function(_0x5bd044){const _0x2723dc=_0x382896;logger['info'](JSON[_0x2723dc('0x1')](_0x5bd044));});});},Migration[_0x452ab6('0x3')][_0x452ab6('0x1f')]=function(_0x3b601a){const _0x428e53=_0x452ab6,_0xd35b60=this;this[_0x428e53('0x1d')][_0x428e53('0x8')](function(){const _0x51a6cb=_0x428e53;return _0xd35b60['queryInterface'][_0x51a6cb('0x7')][_0x51a6cb('0x1f')](_0x3b601a)[_0x51a6cb('0x12')](function(){const _0x2c7a32=_0x51a6cb;logger[_0x2c7a32('0xa')](_0x2c7a32('0x11'),_0x3b601a);})[_0x51a6cb('0x5')](function(_0xe561d5){const _0x421d2d=_0x51a6cb;logger[_0x421d2d('0xa')](JSON[_0x421d2d('0x1')](_0xe561d5));});});},Migration[_0x452ab6('0x3')]['removeColumn']=function(_0x16df8a,_0x149d7b){const _0x39406b=_0x452ab6,_0x47a8e6=this;this['sequence'][_0x39406b('0x8')](function(){const _0xca15cb=_0x39406b;return _0x47a8e6[_0xca15cb('0x1c')][_0xca15cb('0x15')](_0x16df8a,_0x149d7b)[_0xca15cb('0x12')](function(){const _0x2283f2=_0xca15cb;logger[_0x2283f2('0xa')](_0x2283f2('0x17'),_0x149d7b,_0x16df8a);})[_0xca15cb('0x5')](function(_0x127fd2){const _0x13add0=_0xca15cb;logger[_0x13add0('0xa')](util[_0x13add0('0x2')](_0x127fd2,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x452ab6('0x6')]=function(_0x170152,_0x4ef2fa,_0x20923b){const _0x40784a=_0x452ab6,_0x495cc3=this;this['sequence'][_0x40784a('0x8')](function(){const _0x151b84=_0x40784a;return _0x495cc3['queryInterface'][_0x151b84('0x6')](_0x170152,_0x4ef2fa,_0x20923b)[_0x151b84('0x12')](function(){const _0x27940b=_0x151b84;logger[_0x27940b('0xa')](_0x27940b('0x0'),_0x4ef2fa,_0x20923b,_0x170152);})[_0x151b84('0x5')](function(_0x3cb574){const _0x5ac6b0=_0x151b84;logger['info'](util[_0x5ac6b0('0x2')](_0x3cb574,{'showHidden':![],'depth':null}));});});},Migration[_0x452ab6('0x3')]['final']=function(_0x9771d3){const _0x5e2d18=_0x452ab6;this[_0x5e2d18('0x1d')][_0x5e2d18('0x8')](function(){return _0x9771d3();});},module[_0x452ab6('0x1b')]={'up':function(_0x14d84a){return new Promise(function(_0x3977a2){const _0x4a3e6e=a997_0x46fc,_0x1c9335=new Migration(_0x14d84a);_0x1c9335[_0x4a3e6e('0x1f')](_0x4a3e6e('0x19')),_0x1c9335['final'](_0x3977a2);});},'down':function(){}}; \ No newline at end of file +const a1159_0x4f53=['addIndex','Added\x20column\x20%s\x20to\x20%s','prototype','addColumn','addIndex\x20%s\x20%s\x20%s\x20[%s]','Removed\x20column\x20%s\x20from\x20%s','inspect','util','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','catch','table\x20dropped\x20%s','indexName','info','removeColumn','indicesType','finally','UPDATE\x20sms_accounts\x20SET\x20baseUrl\x20=\x20\x22https://sms.csc.lv\x22\x20WHERE\x20type\x20=\x20\x22csc\x22','changeColumn','then','stringify','removeIndex','removeIndex\x20%s\x20%s','sequence','../config/logger','tail','queryInterface','renameColumn','final','query','enqueue','Changed\x20column\x20%s\x20in\x20table\x20%s','dropTable'];(function(_0x4a1e6d,_0x4bff85){const _0x4f53b1=function(_0x51db44){while(--_0x51db44){_0x4a1e6d['push'](_0x4a1e6d['shift']());}};_0x4f53b1(++_0x4bff85);}(a1159_0x4f53,0x105));const a1159_0x51db=function(_0x4a1e6d,_0x4bff85){_0x4a1e6d=_0x4a1e6d-0x149;let _0x4f53b1=a1159_0x4f53[_0x4a1e6d];return _0x4f53b1;};const a1159_0x2fe9ab=a1159_0x51db;'use strict';const util=require(a1159_0x2fe9ab(0x14b)),logger=require(a1159_0x2fe9ab(0x15b))('migration'),Sequence=function(){};Sequence['prototype'][a1159_0x2fe9ab(0x161)]=function(_0x493e61){const _0x13d915=a1159_0x2fe9ab;this[_0x13d915(0x15c)]=this[_0x13d915(0x15c)]?this[_0x13d915(0x15c)][_0x13d915(0x153)](_0x493e61):_0x493e61();};const Migration=function(_0x26e8fb){const _0x1de60d=a1159_0x2fe9ab;this['queryInterface']=_0x26e8fb,this[_0x1de60d(0x15a)]=new Sequence();};Migration['prototype'][a1159_0x2fe9ab(0x155)]=function(_0x2ec5aa,_0x1e587c,_0x11d627){const _0x247377=a1159_0x2fe9ab,_0x1591bb=this;this[_0x247377(0x15a)]['enqueue'](function(){const _0x17d152=_0x247377;return _0x1591bb[_0x17d152(0x15d)][_0x17d152(0x155)](_0x2ec5aa,_0x1e587c,_0x11d627)[_0x17d152(0x156)](function(){const _0x37360c=_0x17d152;logger[_0x37360c(0x150)](_0x37360c(0x162),_0x1e587c,_0x2ec5aa);})[_0x17d152(0x14d)](function(_0x4f0253){const _0x1aba7b=_0x17d152;logger[_0x1aba7b(0x150)](JSON['stringify'](_0x4f0253));});});},Migration[a1159_0x2fe9ab(0x166)][a1159_0x2fe9ab(0x167)]=function(_0x5cc750,_0x3d05a0,_0x42b87c){const _0x36b8e1=a1159_0x2fe9ab,_0xd3e6a9=this;this[_0x36b8e1(0x15a)][_0x36b8e1(0x161)](function(){const _0x503247=_0x36b8e1;return _0xd3e6a9[_0x503247(0x15d)][_0x503247(0x167)](_0x5cc750,_0x3d05a0,_0x42b87c)[_0x503247(0x156)](function(){const _0x24ec7d=_0x503247;logger[_0x24ec7d(0x150)](_0x24ec7d(0x165),_0x3d05a0,_0x5cc750);})[_0x503247(0x14d)](function(_0x2f0668){const _0x3ff66b=_0x503247;logger[_0x3ff66b(0x150)](JSON['stringify'](_0x2f0668));});});},Migration['prototype']['dropTable']=function(_0x5bdc43){const _0xb3833f=a1159_0x2fe9ab,_0x44e6fa=this;this[_0xb3833f(0x15a)]['enqueue'](function(){const _0x3e5a70=_0xb3833f;return _0x44e6fa['queryInterface'][_0x3e5a70(0x163)](_0x5bdc43,{'force':!![]})[_0x3e5a70(0x156)](function(){const _0xa52fbc=_0x3e5a70;logger[_0xa52fbc(0x150)](_0xa52fbc(0x14e),_0x5bdc43);})['catch'](function(_0x13eaf2){const _0x2fc731=_0x3e5a70;logger[_0x2fc731(0x150)](JSON[_0x2fc731(0x157)](_0x13eaf2));});});},Migration['prototype']['addIndex']=function(_0xb8dc42,_0x5c0401,_0x3eb051){const _0x4dbe62=a1159_0x2fe9ab,_0x14d927=this;this[_0x4dbe62(0x15a)][_0x4dbe62(0x161)](function(){const _0x1f3692=_0x4dbe62;return _0x14d927[_0x1f3692(0x15d)][_0x1f3692(0x164)](_0xb8dc42,_0x5c0401,{'indexName':_0x3eb051[_0x1f3692(0x14f)],'indicesType':_0x3eb051[_0x1f3692(0x152)]})[_0x1f3692(0x156)](function(){const _0xf677c7=_0x1f3692;logger[_0xf677c7(0x150)](_0xf677c7(0x168),_0xb8dc42,_0x5c0401['join'](','),_0x3eb051[_0xf677c7(0x14f)],_0x3eb051[_0xf677c7(0x152)]);})[_0x1f3692(0x14d)](function(_0x1eba5f){const _0x3d7b55=_0x1f3692;logger[_0x3d7b55(0x150)](JSON[_0x3d7b55(0x157)](_0x1eba5f));});});},Migration[a1159_0x2fe9ab(0x166)][a1159_0x2fe9ab(0x158)]=function(_0x21da7f,_0x347fc6){const _0x1a75c4=a1159_0x2fe9ab,_0x4a7dfe=this;this[_0x1a75c4(0x15a)][_0x1a75c4(0x161)](function(){const _0x2e322e=_0x1a75c4;return _0x4a7dfe[_0x2e322e(0x15d)][_0x2e322e(0x158)](_0x21da7f,_0x347fc6)[_0x2e322e(0x156)](function(){const _0x3248dc=_0x2e322e;logger[_0x3248dc(0x150)](_0x3248dc(0x159),_0x21da7f,_0x347fc6);})[_0x2e322e(0x14d)](function(_0x38faf1){const _0x4b8b8d=_0x2e322e;logger[_0x4b8b8d(0x150)](JSON[_0x4b8b8d(0x157)](_0x38faf1));});});},Migration[a1159_0x2fe9ab(0x166)][a1159_0x2fe9ab(0x160)]=function(_0xcbd713){const _0x14489c=a1159_0x2fe9ab,_0x4279ca=this;this[_0x14489c(0x15a)][_0x14489c(0x161)](function(){const _0x4199ef=_0x14489c;return _0x4279ca['queryInterface']['sequelize'][_0x4199ef(0x160)](_0xcbd713)[_0x4199ef(0x156)](function(){const _0x3ba890=_0x4199ef;logger[_0x3ba890(0x150)]('query\x20%s',_0xcbd713);})[_0x4199ef(0x14d)](function(_0x44e68b){const _0x3e938f=_0x4199ef;logger[_0x3e938f(0x150)](JSON[_0x3e938f(0x157)](_0x44e68b));});});},Migration['prototype'][a1159_0x2fe9ab(0x151)]=function(_0x4f460a,_0x442aea){const _0x2b8522=a1159_0x2fe9ab,_0xa4ad71=this;this[_0x2b8522(0x15a)]['enqueue'](function(){const _0x7b7c58=_0x2b8522;return _0xa4ad71[_0x7b7c58(0x15d)]['removeColumn'](_0x4f460a,_0x442aea)[_0x7b7c58(0x156)](function(){const _0x2fd857=_0x7b7c58;logger['info'](_0x2fd857(0x149),_0x442aea,_0x4f460a);})[_0x7b7c58(0x14d)](function(_0x39d1dc){const _0x5cee2b=_0x7b7c58;logger[_0x5cee2b(0x150)](util[_0x5cee2b(0x14a)](_0x39d1dc,{'showHidden':![],'depth':null}));});});},Migration[a1159_0x2fe9ab(0x166)][a1159_0x2fe9ab(0x15e)]=function(_0x3fda4a,_0x1d8dcd,_0x14012b){const _0x5b3bde=a1159_0x2fe9ab,_0x4bc441=this;this[_0x5b3bde(0x15a)][_0x5b3bde(0x161)](function(){const _0x52bdc7=_0x5b3bde;return _0x4bc441['queryInterface'][_0x52bdc7(0x15e)](_0x3fda4a,_0x1d8dcd,_0x14012b)[_0x52bdc7(0x156)](function(){const _0x1e30a2=_0x52bdc7;logger[_0x1e30a2(0x150)](_0x1e30a2(0x14c),_0x1d8dcd,_0x14012b,_0x3fda4a);})['catch'](function(_0x5c5e4b){const _0x477cae=_0x52bdc7;logger[_0x477cae(0x150)](util['inspect'](_0x5c5e4b,{'showHidden':![],'depth':null}));});});},Migration[a1159_0x2fe9ab(0x166)][a1159_0x2fe9ab(0x15f)]=function(_0x212843){const _0x324c82=a1159_0x2fe9ab;this[_0x324c82(0x15a)][_0x324c82(0x161)](function(){return _0x212843();});},module['exports']={'up':function(_0x3f8458){return new Promise(function(_0x2d8647){const _0x4d9227=a1159_0x51db,_0x21f852=new Migration(_0x3f8458);_0x21f852[_0x4d9227(0x160)](_0x4d9227(0x154)),_0x21f852[_0x4d9227(0x15f)](_0x2d8647);});},'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 23fae01..0264ef1 100644 --- a/server/migrations/2.4.16.js +++ b/server/migrations/2.4.16.js @@ -1 +1 @@ -const a998_0x2a47=['addIndex\x20%s\x20%s\x20%s\x20[%s]','info','prototype','util','email','addColumn','addIndex','query','mobile','Removed\x20column\x20%s\x20from\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','firstName','changeColumn','removeIndex','inspect','Added\x20column\x20%s\x20to\x20%s','table\x20dropped\x20%s','catch','then','final','sequence','renameColumn','../config/logger','join','indicesType','migration','enqueue','lastName','queryInterface','stringify','dropTable','cm_contacts','phone','indexName','FULLTEXT','tail','removeColumn'];(function(_0x106597,_0x2a47f5){const _0x3ea9f4=function(_0x20f986){while(--_0x20f986){_0x106597['push'](_0x106597['shift']());}};_0x3ea9f4(++_0x2a47f5);}(a998_0x2a47,0x71));const a998_0x3ea9=function(_0x106597,_0x2a47f5){_0x106597=_0x106597-0x0;let _0x3ea9f4=a998_0x2a47[_0x106597];return _0x3ea9f4;};const _0x43f14f=a998_0x3ea9;'use strict';const util=require(_0x43f14f('0x1')),logger=require(_0x43f14f('0x14'))(_0x43f14f('0x17')),Sequence=function(){};Sequence[_0x43f14f('0x0')][_0x43f14f('0x18')]=function(_0x20f986){const _0x15f0e3=_0x43f14f;this['tail']=this[_0x15f0e3('0x21')]?this['tail']['finally'](_0x20f986):_0x20f986();};const Migration=function(_0x47d464){const _0x38ffb9=_0x43f14f;this[_0x38ffb9('0x1a')]=_0x47d464,this['sequence']=new Sequence();};Migration['prototype'][_0x43f14f('0xa')]=function(_0x43ecd6,_0x584c6d,_0x214b4a){const _0x1e4e83=_0x43f14f,_0x200329=this;this[_0x1e4e83('0x12')]['enqueue'](function(){const _0x181889=_0x1e4e83;return _0x200329['queryInterface']['changeColumn'](_0x43ecd6,_0x584c6d,_0x214b4a)['then'](function(){const _0x69e8cc=a998_0x3ea9;logger[_0x69e8cc('0x24')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x584c6d,_0x43ecd6);})[_0x181889('0xf')](function(_0x554706){const _0x444aa7=_0x181889;logger[_0x444aa7('0x24')](JSON[_0x444aa7('0x1b')](_0x554706));});});},Migration[_0x43f14f('0x0')][_0x43f14f('0x3')]=function(_0x2991ad,_0x28a863,_0x257927){const _0x4c1f6c=_0x43f14f,_0x1533c3=this;this[_0x4c1f6c('0x12')][_0x4c1f6c('0x18')](function(){const _0x4575b5=_0x4c1f6c;return _0x1533c3[_0x4575b5('0x1a')]['addColumn'](_0x2991ad,_0x28a863,_0x257927)[_0x4575b5('0x10')](function(){const _0x2bacda=_0x4575b5;logger[_0x2bacda('0x24')](_0x2bacda('0xd'),_0x28a863,_0x2991ad);})['catch'](function(_0x236a5d){const _0x21e4d8=_0x4575b5;logger['info'](JSON[_0x21e4d8('0x1b')](_0x236a5d));});});},Migration[_0x43f14f('0x0')]['dropTable']=function(_0x113f98){const _0x1be19=_0x43f14f,_0x1068c6=this;this[_0x1be19('0x12')][_0x1be19('0x18')](function(){const _0x2f6671=_0x1be19;return _0x1068c6[_0x2f6671('0x1a')][_0x2f6671('0x1c')](_0x113f98,{'force':!![]})[_0x2f6671('0x10')](function(){const _0x5e2b3c=_0x2f6671;logger[_0x5e2b3c('0x24')](_0x5e2b3c('0xe'),_0x113f98);})[_0x2f6671('0xf')](function(_0x159ba9){const _0x263a2d=_0x2f6671;logger[_0x263a2d('0x24')](JSON[_0x263a2d('0x1b')](_0x159ba9));});});},Migration['prototype']['addIndex']=function(_0x36cc75,_0x59aaf3,_0x19e77d){const _0x2f2203=_0x43f14f,_0x5a35ec=this;this[_0x2f2203('0x12')]['enqueue'](function(){const _0x14588c=_0x2f2203;return _0x5a35ec['queryInterface'][_0x14588c('0x4')](_0x36cc75,_0x59aaf3,{'indexName':_0x19e77d[_0x14588c('0x1f')],'indicesType':_0x19e77d[_0x14588c('0x16')]})[_0x14588c('0x10')](function(){const _0x236608=_0x14588c;logger[_0x236608('0x24')](_0x236608('0x23'),_0x36cc75,_0x59aaf3[_0x236608('0x15')](','),_0x19e77d[_0x236608('0x1f')],_0x19e77d[_0x236608('0x16')]);})[_0x14588c('0xf')](function(_0x18e1f9){const _0x37a6af=_0x14588c;logger[_0x37a6af('0x24')](JSON[_0x37a6af('0x1b')](_0x18e1f9));});});},Migration[_0x43f14f('0x0')][_0x43f14f('0xb')]=function(_0x44f2f6,_0x38c3c7){const _0x48037d=_0x43f14f,_0x1183cf=this;this[_0x48037d('0x12')][_0x48037d('0x18')](function(){const _0x1b09f4=_0x48037d;return _0x1183cf[_0x1b09f4('0x1a')]['removeIndex'](_0x44f2f6,_0x38c3c7)[_0x1b09f4('0x10')](function(){logger['info']('removeIndex\x20%s\x20%s',_0x44f2f6,_0x38c3c7);})[_0x1b09f4('0xf')](function(_0x3cc174){const _0x20e4e8=_0x1b09f4;logger[_0x20e4e8('0x24')](JSON[_0x20e4e8('0x1b')](_0x3cc174));});});},Migration[_0x43f14f('0x0')][_0x43f14f('0x5')]=function(_0x1c438b){const _0x56f99a=_0x43f14f,_0x44ba61=this;this[_0x56f99a('0x12')][_0x56f99a('0x18')](function(){const _0x469efc=_0x56f99a;return _0x44ba61[_0x469efc('0x1a')]['sequelize'][_0x469efc('0x5')](_0x1c438b)['then'](function(){const _0x39bcca=_0x469efc;logger[_0x39bcca('0x24')]('query\x20%s',_0x1c438b);})[_0x469efc('0xf')](function(_0x46090d){const _0x182558=_0x469efc;logger[_0x182558('0x24')](JSON['stringify'](_0x46090d));});});},Migration['prototype'][_0x43f14f('0x22')]=function(_0x28bbe2,_0x2d0c3a){const _0x506505=_0x43f14f,_0x5f27f4=this;this[_0x506505('0x12')][_0x506505('0x18')](function(){const _0xd971b1=_0x506505;return _0x5f27f4[_0xd971b1('0x1a')][_0xd971b1('0x22')](_0x28bbe2,_0x2d0c3a)[_0xd971b1('0x10')](function(){const _0x267b05=_0xd971b1;logger[_0x267b05('0x24')](_0x267b05('0x7'),_0x2d0c3a,_0x28bbe2);})['catch'](function(_0x4ebd50){const _0x2db42a=_0xd971b1;logger['info'](util[_0x2db42a('0xc')](_0x4ebd50,{'showHidden':![],'depth':null}));});});},Migration[_0x43f14f('0x0')][_0x43f14f('0x13')]=function(_0x14ba26,_0x3382d9,_0x2f3a92){const _0x1577e5=_0x43f14f,_0x355f4e=this;this[_0x1577e5('0x12')]['enqueue'](function(){const _0x102849=_0x1577e5;return _0x355f4e[_0x102849('0x1a')]['renameColumn'](_0x14ba26,_0x3382d9,_0x2f3a92)[_0x102849('0x10')](function(){const _0x8f39=_0x102849;logger[_0x8f39('0x24')](_0x8f39('0x8'),_0x3382d9,_0x2f3a92,_0x14ba26);})[_0x102849('0xf')](function(_0x587b30){const _0x289804=_0x102849;logger[_0x289804('0x24')](util[_0x289804('0xc')](_0x587b30,{'showHidden':![],'depth':null}));});});},Migration[_0x43f14f('0x0')][_0x43f14f('0x11')]=function(_0x37c53d){this['sequence']['enqueue'](function(){return _0x37c53d();});},module['exports']={'up':function(_0xcffc5b){return new Promise(function(_0x1a6cb1){const _0xb2ed43=a998_0x3ea9,_0x57c45a=new Migration(_0xcffc5b);_0x57c45a[_0xb2ed43('0x4')](_0xb2ed43('0x1d'),[_0xb2ed43('0x9'),_0xb2ed43('0x19'),_0xb2ed43('0x1e'),_0xb2ed43('0x6'),'fax',_0xb2ed43('0x2')],{'indexName':'fti_cm_contacts','indicesType':_0xb2ed43('0x20')}),_0x57c45a[_0xb2ed43('0x11')](_0x1a6cb1);});},'down':function(){}}; \ No newline at end of file +const a1160_0x19d2=['queryInterface','Removed\x20column\x20%s\x20from\x20%s','removeIndex\x20%s\x20%s','join','query\x20%s','addIndex','table\x20dropped\x20%s','prototype','enqueue','dropTable','sequelize','exports','finally','FULLTEXT','final','removeColumn','indexName','stringify','removeIndex','catch','indicesType','info','email','renameColumn','lastName','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','tail','sequence','Changed\x20column\x20%s\x20in\x20table\x20%s','query','then','changeColumn','firstName','addColumn','Added\x20column\x20%s\x20to\x20%s','migration'];(function(_0x3a423d,_0xd9e8b0){const _0x19d27a=function(_0x26b16c){while(--_0x26b16c){_0x3a423d['push'](_0x3a423d['shift']());}};_0x19d27a(++_0xd9e8b0);}(a1160_0x19d2,0x1eb));const a1160_0x26b1=function(_0x3a423d,_0xd9e8b0){_0x3a423d=_0x3a423d-0x19f;let _0x19d27a=a1160_0x19d2[_0x3a423d];return _0x19d27a;};const a1160_0x4cdeab=a1160_0x26b1;'use strict';const util=require('util'),logger=require('../config/logger')(a1160_0x4cdeab(0x1ab)),Sequence=function(){};Sequence['prototype'][a1160_0x4cdeab(0x1b4)]=function(_0x3b82dd){const _0x32eee8=a1160_0x4cdeab;this[_0x32eee8(0x1a2)]=this[_0x32eee8(0x1a2)]?this['tail'][_0x32eee8(0x1b8)](_0x3b82dd):_0x3b82dd();};const Migration=function(_0x3ed8a9){const _0x1b38e1=a1160_0x4cdeab;this[_0x1b38e1(0x1ac)]=_0x3ed8a9,this['sequence']=new Sequence();};Migration[a1160_0x4cdeab(0x1b3)][a1160_0x4cdeab(0x1a7)]=function(_0xf9af67,_0x58f3bd,_0x3b4cdb){const _0x10873a=a1160_0x4cdeab,_0x23a92d=this;this[_0x10873a(0x1a3)][_0x10873a(0x1b4)](function(){const _0x2f3663=_0x10873a;return _0x23a92d[_0x2f3663(0x1ac)]['changeColumn'](_0xf9af67,_0x58f3bd,_0x3b4cdb)[_0x2f3663(0x1a6)](function(){const _0x24bb7c=_0x2f3663;logger[_0x24bb7c(0x1c1)](_0x24bb7c(0x1a4),_0x58f3bd,_0xf9af67);})['catch'](function(_0x436a11){const _0xca814c=_0x2f3663;logger[_0xca814c(0x1c1)](JSON[_0xca814c(0x1bd)](_0x436a11));});});},Migration[a1160_0x4cdeab(0x1b3)][a1160_0x4cdeab(0x1a9)]=function(_0x4b86d3,_0x34f340,_0x4f5eb5){const _0x546d50=a1160_0x4cdeab,_0x4d49f7=this;this[_0x546d50(0x1a3)][_0x546d50(0x1b4)](function(){const _0x1cfe77=_0x546d50;return _0x4d49f7['queryInterface']['addColumn'](_0x4b86d3,_0x34f340,_0x4f5eb5)[_0x1cfe77(0x1a6)](function(){const _0x224028=_0x1cfe77;logger[_0x224028(0x1c1)](_0x224028(0x1aa),_0x34f340,_0x4b86d3);})[_0x1cfe77(0x1bf)](function(_0x3b0cb3){const _0xa72f3=_0x1cfe77;logger[_0xa72f3(0x1c1)](JSON[_0xa72f3(0x1bd)](_0x3b0cb3));});});},Migration[a1160_0x4cdeab(0x1b3)][a1160_0x4cdeab(0x1b5)]=function(_0x5a3111){const _0x2acc06=a1160_0x4cdeab,_0x5eeed8=this;this[_0x2acc06(0x1a3)]['enqueue'](function(){const _0x53c4d0=_0x2acc06;return _0x5eeed8[_0x53c4d0(0x1ac)][_0x53c4d0(0x1b5)](_0x5a3111,{'force':!![]})[_0x53c4d0(0x1a6)](function(){const _0x445c0e=_0x53c4d0;logger[_0x445c0e(0x1c1)](_0x445c0e(0x1b2),_0x5a3111);})[_0x53c4d0(0x1bf)](function(_0x4ed355){const _0x236d8a=_0x53c4d0;logger[_0x236d8a(0x1c1)](JSON[_0x236d8a(0x1bd)](_0x4ed355));});});},Migration[a1160_0x4cdeab(0x1b3)][a1160_0x4cdeab(0x1b1)]=function(_0x4b82f4,_0x28daff,_0x61a1bd){const _0x5f038b=a1160_0x4cdeab,_0x25309d=this;this[_0x5f038b(0x1a3)][_0x5f038b(0x1b4)](function(){const _0x1f2f2c=_0x5f038b;return _0x25309d[_0x1f2f2c(0x1ac)]['addIndex'](_0x4b82f4,_0x28daff,{'indexName':_0x61a1bd[_0x1f2f2c(0x1bc)],'indicesType':_0x61a1bd[_0x1f2f2c(0x1c0)]})[_0x1f2f2c(0x1a6)](function(){const _0x4a4039=_0x1f2f2c;logger['info']('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x4b82f4,_0x28daff[_0x4a4039(0x1af)](','),_0x61a1bd['indexName'],_0x61a1bd[_0x4a4039(0x1c0)]);})[_0x1f2f2c(0x1bf)](function(_0x5d6d0c){const _0x4e0b75=_0x1f2f2c;logger[_0x4e0b75(0x1c1)](JSON[_0x4e0b75(0x1bd)](_0x5d6d0c));});});},Migration[a1160_0x4cdeab(0x1b3)]['removeIndex']=function(_0x3c4a60,_0x764457){const _0x32029e=a1160_0x4cdeab,_0x1efef9=this;this['sequence'][_0x32029e(0x1b4)](function(){const _0x1c97df=_0x32029e;return _0x1efef9['queryInterface'][_0x1c97df(0x1be)](_0x3c4a60,_0x764457)[_0x1c97df(0x1a6)](function(){const _0xe58039=_0x1c97df;logger[_0xe58039(0x1c1)](_0xe58039(0x1ae),_0x3c4a60,_0x764457);})[_0x1c97df(0x1bf)](function(_0x5b3c21){const _0x2f494c=_0x1c97df;logger[_0x2f494c(0x1c1)](JSON[_0x2f494c(0x1bd)](_0x5b3c21));});});},Migration[a1160_0x4cdeab(0x1b3)][a1160_0x4cdeab(0x1a5)]=function(_0x5d57a6){const _0x225d91=this;this['sequence']['enqueue'](function(){const _0x42d5f1=a1160_0x26b1;return _0x225d91[_0x42d5f1(0x1ac)][_0x42d5f1(0x1b6)][_0x42d5f1(0x1a5)](_0x5d57a6)[_0x42d5f1(0x1a6)](function(){const _0x59b44f=_0x42d5f1;logger[_0x59b44f(0x1c1)](_0x59b44f(0x1b0),_0x5d57a6);})[_0x42d5f1(0x1bf)](function(_0x3ebea2){const _0x5e4a19=_0x42d5f1;logger['info'](JSON[_0x5e4a19(0x1bd)](_0x3ebea2));});});},Migration[a1160_0x4cdeab(0x1b3)][a1160_0x4cdeab(0x1bb)]=function(_0x3b0bec,_0x474b44){const _0x1e810d=a1160_0x4cdeab,_0x20dfa6=this;this[_0x1e810d(0x1a3)]['enqueue'](function(){const _0x43e2f9=_0x1e810d;return _0x20dfa6['queryInterface']['removeColumn'](_0x3b0bec,_0x474b44)[_0x43e2f9(0x1a6)](function(){const _0x12b107=_0x43e2f9;logger[_0x12b107(0x1c1)](_0x12b107(0x1ad),_0x474b44,_0x3b0bec);})[_0x43e2f9(0x1bf)](function(_0x50fb9f){const _0x2cbb74=_0x43e2f9;logger[_0x2cbb74(0x1c1)](util['inspect'](_0x50fb9f,{'showHidden':![],'depth':null}));});});},Migration[a1160_0x4cdeab(0x1b3)][a1160_0x4cdeab(0x19f)]=function(_0x71c6b,_0x439cbf,_0x5cb73c){const _0x169ea9=a1160_0x4cdeab,_0x1ecda0=this;this[_0x169ea9(0x1a3)]['enqueue'](function(){const _0x5dc3d9=_0x169ea9;return _0x1ecda0[_0x5dc3d9(0x1ac)][_0x5dc3d9(0x19f)](_0x71c6b,_0x439cbf,_0x5cb73c)[_0x5dc3d9(0x1a6)](function(){const _0x52cf21=_0x5dc3d9;logger[_0x52cf21(0x1c1)](_0x52cf21(0x1a1),_0x439cbf,_0x5cb73c,_0x71c6b);})[_0x5dc3d9(0x1bf)](function(_0x14f344){const _0x3ffbe4=_0x5dc3d9;logger[_0x3ffbe4(0x1c1)](util['inspect'](_0x14f344,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1160_0x4cdeab(0x1ba)]=function(_0xbbb48e){const _0x435f79=a1160_0x4cdeab;this[_0x435f79(0x1a3)][_0x435f79(0x1b4)](function(){return _0xbbb48e();});},module[a1160_0x4cdeab(0x1b7)]={'up':function(_0x319dbb){return new Promise(function(_0x1abdfb){const _0x150c1b=a1160_0x26b1,_0x2e4491=new Migration(_0x319dbb);_0x2e4491[_0x150c1b(0x1b1)]('cm_contacts',[_0x150c1b(0x1a8),_0x150c1b(0x1a0),'phone','mobile','fax',_0x150c1b(0x1c2)],{'indexName':'fti_cm_contacts','indicesType':_0x150c1b(0x1b9)}),_0x2e4491[_0x150c1b(0x1ba)](_0x1abdfb);});},'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 bee0cb8..3cbc119 100644 --- a/server/migrations/2.4.17.js +++ b/server/migrations/2.4.17.js @@ -1 +1 @@ -const a999_0x5523=['queryInterface','final','query','addIndex','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','addColumn','join','sequelize','prototype','indicesType','indexName','exports','stringify','inspect','removeIndex','enqueue','Added\x20column\x20%s\x20to\x20%s','util','removeColumn','migration','changeColumn','catch','renameColumn','query\x20%s','../config/logger','info','tail','then','dropTable','Changed\x20column\x20%s\x20in\x20table\x20%s','sequence'];(function(_0x1e9cc4,_0x552311){const _0x502b7e=function(_0x4fdb4f){while(--_0x4fdb4f){_0x1e9cc4['push'](_0x1e9cc4['shift']());}};_0x502b7e(++_0x552311);}(a999_0x5523,0x98));const a999_0x502b=function(_0x1e9cc4,_0x552311){_0x1e9cc4=_0x1e9cc4-0x0;let _0x502b7e=a999_0x5523[_0x1e9cc4];return _0x502b7e;};const _0x73a59d=a999_0x502b;'use strict';const util=require(_0x73a59d('0x14')),logger=require(_0x73a59d('0x1b'))(_0x73a59d('0x16')),Sequence=function(){};Sequence[_0x73a59d('0xb')][_0x73a59d('0x12')]=function(_0x4fdb4f){const _0x165928=_0x73a59d;this[_0x165928('0x1d')]=this[_0x165928('0x1d')]?this['tail']['finally'](_0x4fdb4f):_0x4fdb4f();};const Migration=function(_0x504001){const _0x4cbeac=_0x73a59d;this[_0x4cbeac('0x3')]=_0x504001,this['sequence']=new Sequence();};Migration[_0x73a59d('0xb')][_0x73a59d('0x17')]=function(_0x521665,_0x1b2052,_0x42e46f){const _0x4db63f=_0x73a59d,_0x158678=this;this[_0x4db63f('0x2')]['enqueue'](function(){const _0x5514c9=_0x4db63f;return _0x158678[_0x5514c9('0x3')][_0x5514c9('0x17')](_0x521665,_0x1b2052,_0x42e46f)[_0x5514c9('0x1e')](function(){const _0x538cdd=_0x5514c9;logger[_0x538cdd('0x1c')](_0x538cdd('0x1'),_0x1b2052,_0x521665);})['catch'](function(_0x433ad7){const _0x3a1fd9=_0x5514c9;logger[_0x3a1fd9('0x1c')](JSON[_0x3a1fd9('0xf')](_0x433ad7));});});},Migration[_0x73a59d('0xb')][_0x73a59d('0x8')]=function(_0x47cff2,_0xd01e6d,_0x508ae5){const _0x3fe9ea=_0x73a59d,_0x402d9b=this;this[_0x3fe9ea('0x2')][_0x3fe9ea('0x12')](function(){const _0x550399=_0x3fe9ea;return _0x402d9b[_0x550399('0x3')]['addColumn'](_0x47cff2,_0xd01e6d,_0x508ae5)[_0x550399('0x1e')](function(){const _0x559c5f=_0x550399;logger['info'](_0x559c5f('0x13'),_0xd01e6d,_0x47cff2);})[_0x550399('0x18')](function(_0xe7f0db){const _0x683e1d=_0x550399;logger[_0x683e1d('0x1c')](JSON['stringify'](_0xe7f0db));});});},Migration[_0x73a59d('0xb')]['dropTable']=function(_0x3db625){const _0x1c6362=_0x73a59d,_0xeeff72=this;this['sequence'][_0x1c6362('0x12')](function(){const _0x162479=_0x1c6362;return _0xeeff72[_0x162479('0x3')][_0x162479('0x0')](_0x3db625,{'force':!![]})[_0x162479('0x1e')](function(){const _0x1eb08a=_0x162479;logger[_0x1eb08a('0x1c')]('table\x20dropped\x20%s',_0x3db625);})[_0x162479('0x18')](function(_0x97a8b9){const _0x4319f3=_0x162479;logger['info'](JSON[_0x4319f3('0xf')](_0x97a8b9));});});},Migration[_0x73a59d('0xb')][_0x73a59d('0x6')]=function(_0x2f015a,_0x212456,_0x223382){const _0xeeae3f=_0x73a59d,_0x2fc22d=this;this[_0xeeae3f('0x2')][_0xeeae3f('0x12')](function(){const _0x355c62=_0xeeae3f;return _0x2fc22d[_0x355c62('0x3')]['addIndex'](_0x2f015a,_0x212456,{'indexName':_0x223382[_0x355c62('0xd')],'indicesType':_0x223382[_0x355c62('0xc')]})[_0x355c62('0x1e')](function(){const _0x5a3a02=_0x355c62;logger[_0x5a3a02('0x1c')]('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x2f015a,_0x212456[_0x5a3a02('0x9')](','),_0x223382[_0x5a3a02('0xd')],_0x223382['indicesType']);})['catch'](function(_0xd31d9b){const _0x9f7c9c=_0x355c62;logger[_0x9f7c9c('0x1c')](JSON['stringify'](_0xd31d9b));});});},Migration[_0x73a59d('0xb')][_0x73a59d('0x11')]=function(_0x5614db,_0x3f9bad){const _0x3af5a0=this;this['sequence']['enqueue'](function(){const _0x32d6de=a999_0x502b;return _0x3af5a0[_0x32d6de('0x3')][_0x32d6de('0x11')](_0x5614db,_0x3f9bad)[_0x32d6de('0x1e')](function(){logger['info']('removeIndex\x20%s\x20%s',_0x5614db,_0x3f9bad);})[_0x32d6de('0x18')](function(_0x34e4d5){const _0x3e64a1=_0x32d6de;logger[_0x3e64a1('0x1c')](JSON['stringify'](_0x34e4d5));});});},Migration[_0x73a59d('0xb')][_0x73a59d('0x5')]=function(_0x9a970e){const _0x21c6fc=_0x73a59d,_0x21f496=this;this[_0x21c6fc('0x2')][_0x21c6fc('0x12')](function(){const _0x557bfb=_0x21c6fc;return _0x21f496[_0x557bfb('0x3')][_0x557bfb('0xa')][_0x557bfb('0x5')](_0x9a970e)[_0x557bfb('0x1e')](function(){const _0x2e6a92=_0x557bfb;logger['info'](_0x2e6a92('0x1a'),_0x9a970e);})['catch'](function(_0x1fee31){const _0x303ff1=_0x557bfb;logger[_0x303ff1('0x1c')](JSON[_0x303ff1('0xf')](_0x1fee31));});});},Migration[_0x73a59d('0xb')]['removeColumn']=function(_0x34a2d1,_0x20eac2){const _0x5b472d=_0x73a59d,_0x12b1fd=this;this[_0x5b472d('0x2')]['enqueue'](function(){const _0x82f492=_0x5b472d;return _0x12b1fd[_0x82f492('0x3')][_0x82f492('0x15')](_0x34a2d1,_0x20eac2)[_0x82f492('0x1e')](function(){const _0x21fc73=_0x82f492;logger[_0x21fc73('0x1c')]('Removed\x20column\x20%s\x20from\x20%s',_0x20eac2,_0x34a2d1);})[_0x82f492('0x18')](function(_0xdaee1f){const _0x1c838b=_0x82f492;logger[_0x1c838b('0x1c')](util[_0x1c838b('0x10')](_0xdaee1f,{'showHidden':![],'depth':null}));});});},Migration[_0x73a59d('0xb')][_0x73a59d('0x19')]=function(_0x2465f8,_0x3a7eb1,_0x52db3b){const _0x2f038b=_0x73a59d,_0xe88ed5=this;this[_0x2f038b('0x2')][_0x2f038b('0x12')](function(){const _0x5718ea=_0x2f038b;return _0xe88ed5['queryInterface'][_0x5718ea('0x19')](_0x2465f8,_0x3a7eb1,_0x52db3b)['then'](function(){const _0x2ff5b7=_0x5718ea;logger[_0x2ff5b7('0x1c')](_0x2ff5b7('0x7'),_0x3a7eb1,_0x52db3b,_0x2465f8);})[_0x5718ea('0x18')](function(_0x4b12fc){const _0x47a679=_0x5718ea;logger[_0x47a679('0x1c')](util[_0x47a679('0x10')](_0x4b12fc,{'showHidden':![],'depth':null}));});});},Migration[_0x73a59d('0xb')][_0x73a59d('0x4')]=function(_0x4cc924){const _0x1f2574=_0x73a59d;this[_0x1f2574('0x2')][_0x1f2574('0x12')](function(){return _0x4cc924();});},module[_0x73a59d('0xe')]={'up':function(_0x28b461){return new Promise(function(_0x424796){const _0xdc8120=new Migration(_0x28b461);_0xdc8120['final'](_0x424796);});},'down':function(){}}; \ No newline at end of file +const a1161_0x6247=['removeIndex\x20%s\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','addColumn','query','join','sequence','sequelize','addIndex','renameColumn','table\x20dropped\x20%s','removeColumn','indexName','removeIndex','info','then','exports','Removed\x20column\x20%s\x20from\x20%s','../config/logger','indicesType','prototype','changeColumn','queryInterface','catch','query\x20%s','inspect','Changed\x20column\x20%s\x20in\x20table\x20%s','enqueue','finally','migration','Added\x20column\x20%s\x20to\x20%s','stringify','dropTable','util','tail'];(function(_0x22ee6a,_0x4f4235){const _0x624751=function(_0x1798da){while(--_0x1798da){_0x22ee6a['push'](_0x22ee6a['shift']());}};_0x624751(++_0x4f4235);}(a1161_0x6247,0x1ec));const a1161_0x1798=function(_0x22ee6a,_0x4f4235){_0x22ee6a=_0x22ee6a-0x10f;let _0x624751=a1161_0x6247[_0x22ee6a];return _0x624751;};const a1161_0x1dac51=a1161_0x1798;'use strict';const util=require(a1161_0x1dac51(0x11f)),logger=require(a1161_0x1dac51(0x110))(a1161_0x1dac51(0x11b)),Sequence=function(){};Sequence[a1161_0x1dac51(0x112)][a1161_0x1dac51(0x119)]=function(_0x5ee264){const _0x2e5fee=a1161_0x1dac51;this[_0x2e5fee(0x120)]=this[_0x2e5fee(0x120)]?this[_0x2e5fee(0x120)][_0x2e5fee(0x11a)](_0x5ee264):_0x5ee264();};const Migration=function(_0x592c11){const _0x1e5f22=a1161_0x1dac51;this['queryInterface']=_0x592c11,this[_0x1e5f22(0x126)]=new Sequence();};Migration[a1161_0x1dac51(0x112)][a1161_0x1dac51(0x113)]=function(_0x133b47,_0x5e0886,_0x47aec6){const _0x1269f2=a1161_0x1dac51,_0x537b19=this;this[_0x1269f2(0x126)]['enqueue'](function(){const _0x53e1a9=_0x1269f2;return _0x537b19['queryInterface'][_0x53e1a9(0x113)](_0x133b47,_0x5e0886,_0x47aec6)[_0x53e1a9(0x12f)](function(){const _0x3d1696=_0x53e1a9;logger['info'](_0x3d1696(0x118),_0x5e0886,_0x133b47);})[_0x53e1a9(0x115)](function(_0x3e255f){const _0x28d9b5=_0x53e1a9;logger['info'](JSON[_0x28d9b5(0x11d)](_0x3e255f));});});},Migration['prototype'][a1161_0x1dac51(0x123)]=function(_0x1e18cf,_0x52a883,_0x7b7f90){const _0x2138a1=a1161_0x1dac51,_0x42b212=this;this[_0x2138a1(0x126)][_0x2138a1(0x119)](function(){const _0x184369=_0x2138a1;return _0x42b212[_0x184369(0x114)][_0x184369(0x123)](_0x1e18cf,_0x52a883,_0x7b7f90)['then'](function(){const _0x2651fd=_0x184369;logger[_0x2651fd(0x12e)](_0x2651fd(0x11c),_0x52a883,_0x1e18cf);})[_0x184369(0x115)](function(_0x4f4f31){const _0x4856e8=_0x184369;logger['info'](JSON[_0x4856e8(0x11d)](_0x4f4f31));});});},Migration[a1161_0x1dac51(0x112)][a1161_0x1dac51(0x11e)]=function(_0x5b2138){const _0xd50235=a1161_0x1dac51,_0x15356c=this;this[_0xd50235(0x126)][_0xd50235(0x119)](function(){const _0x15e611=_0xd50235;return _0x15356c[_0x15e611(0x114)][_0x15e611(0x11e)](_0x5b2138,{'force':!![]})[_0x15e611(0x12f)](function(){const _0x4a45c6=_0x15e611;logger[_0x4a45c6(0x12e)](_0x4a45c6(0x12a),_0x5b2138);})[_0x15e611(0x115)](function(_0x1bd67c){const _0x2ef7b6=_0x15e611;logger[_0x2ef7b6(0x12e)](JSON[_0x2ef7b6(0x11d)](_0x1bd67c));});});},Migration[a1161_0x1dac51(0x112)][a1161_0x1dac51(0x128)]=function(_0x5d4940,_0x467adb,_0x32241d){const _0x42e9a0=a1161_0x1dac51,_0x4e83e3=this;this[_0x42e9a0(0x126)][_0x42e9a0(0x119)](function(){const _0x1876d3=_0x42e9a0;return _0x4e83e3['queryInterface'][_0x1876d3(0x128)](_0x5d4940,_0x467adb,{'indexName':_0x32241d[_0x1876d3(0x12c)],'indicesType':_0x32241d[_0x1876d3(0x111)]})[_0x1876d3(0x12f)](function(){const _0x4148ec=_0x1876d3;logger[_0x4148ec(0x12e)]('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x5d4940,_0x467adb[_0x4148ec(0x125)](','),_0x32241d[_0x4148ec(0x12c)],_0x32241d[_0x4148ec(0x111)]);})[_0x1876d3(0x115)](function(_0x184aae){const _0x1ab377=_0x1876d3;logger[_0x1ab377(0x12e)](JSON['stringify'](_0x184aae));});});},Migration[a1161_0x1dac51(0x112)][a1161_0x1dac51(0x12d)]=function(_0x47b476,_0x45b46a){const _0x4bbd2a=a1161_0x1dac51,_0x5bdc2e=this;this[_0x4bbd2a(0x126)][_0x4bbd2a(0x119)](function(){const _0x76d24=_0x4bbd2a;return _0x5bdc2e[_0x76d24(0x114)]['removeIndex'](_0x47b476,_0x45b46a)[_0x76d24(0x12f)](function(){const _0x311c52=_0x76d24;logger[_0x311c52(0x12e)](_0x311c52(0x121),_0x47b476,_0x45b46a);})['catch'](function(_0x260e5f){const _0x2eaf1b=_0x76d24;logger[_0x2eaf1b(0x12e)](JSON[_0x2eaf1b(0x11d)](_0x260e5f));});});},Migration[a1161_0x1dac51(0x112)]['query']=function(_0x1c19af){const _0x2fbb0f=a1161_0x1dac51,_0x22a315=this;this[_0x2fbb0f(0x126)]['enqueue'](function(){const _0x3a31f2=_0x2fbb0f;return _0x22a315[_0x3a31f2(0x114)][_0x3a31f2(0x127)][_0x3a31f2(0x124)](_0x1c19af)[_0x3a31f2(0x12f)](function(){const _0x26d44e=_0x3a31f2;logger[_0x26d44e(0x12e)](_0x26d44e(0x116),_0x1c19af);})[_0x3a31f2(0x115)](function(_0x14ac61){const _0x154ac8=_0x3a31f2;logger[_0x154ac8(0x12e)](JSON[_0x154ac8(0x11d)](_0x14ac61));});});},Migration['prototype']['removeColumn']=function(_0x519793,_0x24d230){const _0x29a950=a1161_0x1dac51,_0x7eec07=this;this[_0x29a950(0x126)][_0x29a950(0x119)](function(){const _0x27216b=_0x29a950;return _0x7eec07[_0x27216b(0x114)][_0x27216b(0x12b)](_0x519793,_0x24d230)[_0x27216b(0x12f)](function(){const _0x27f626=_0x27216b;logger[_0x27f626(0x12e)](_0x27f626(0x10f),_0x24d230,_0x519793);})[_0x27216b(0x115)](function(_0x1ad136){const _0x8b07f0=_0x27216b;logger['info'](util[_0x8b07f0(0x117)](_0x1ad136,{'showHidden':![],'depth':null}));});});},Migration[a1161_0x1dac51(0x112)]['renameColumn']=function(_0x3f2c21,_0x15f0a3,_0x53dd41){const _0x5f1142=a1161_0x1dac51,_0x20159c=this;this[_0x5f1142(0x126)]['enqueue'](function(){const _0xb2adfe=_0x5f1142;return _0x20159c[_0xb2adfe(0x114)][_0xb2adfe(0x129)](_0x3f2c21,_0x15f0a3,_0x53dd41)[_0xb2adfe(0x12f)](function(){const _0x3c6bc5=_0xb2adfe;logger[_0x3c6bc5(0x12e)](_0x3c6bc5(0x122),_0x15f0a3,_0x53dd41,_0x3f2c21);})['catch'](function(_0x4743be){const _0x1f2a93=_0xb2adfe;logger[_0x1f2a93(0x12e)](util['inspect'](_0x4743be,{'showHidden':![],'depth':null}));});});},Migration['prototype']['final']=function(_0x3c26e2){const _0x4578fc=a1161_0x1dac51;this[_0x4578fc(0x126)]['enqueue'](function(){return _0x3c26e2();});},module[a1161_0x1dac51(0x130)]={'up':function(_0x3283d8){return new Promise(function(_0x5a5461){const _0x2faa80=new Migration(_0x3283d8);_0x2faa80['final'](_0x5a5461);});},'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 2f2e479..90ba4c2 100644 --- a/server/migrations/2.4.18.js +++ b/server/migrations/2.4.18.js @@ -1 +1 @@ -const a1000_0xf693=['addColumn','changeColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','util','Added\x20column\x20%s\x20to\x20%s','dropTable','query','renameColumn','removeIndex','then','enqueue','UPDATE\x20voice_queues\x20SET\x20leavewhenempty\x20=\x20\x22no\x22\x20WHERE\x20leavewhenempty\x20=\x20\x27\x27\x20or\x20leavewhenempty\x20IS\x20NULL','addIndex','inspect','removeColumn','addIndex\x20%s\x20%s\x20%s\x20[%s]','../config/logger','indicesType','indexName','catch','Removed\x20column\x20%s\x20from\x20%s','query\x20%s','tail','table\x20dropped\x20%s','removeIndex\x20%s\x20%s','info','final','prototype','exports','stringify','Changed\x20column\x20%s\x20in\x20table\x20%s','finally','sequence','queryInterface'];(function(_0x50e168,_0xf6934c){const _0x71ce65=function(_0x39b05a){while(--_0x39b05a){_0x50e168['push'](_0x50e168['shift']());}};_0x71ce65(++_0xf6934c);}(a1000_0xf693,0x91));const a1000_0x71ce=function(_0x50e168,_0xf6934c){_0x50e168=_0x50e168-0x0;let _0x71ce65=a1000_0xf693[_0x50e168];return _0x71ce65;};const _0x266ee3=a1000_0x71ce;'use strict';const util=require(_0x266ee3('0x1c')),logger=require(_0x266ee3('0x7'))('migration'),Sequence=function(){};Sequence[_0x266ee3('0x12')][_0x266ee3('0x1')]=function(_0x39b05a){const _0x387ee8=_0x266ee3;this[_0x387ee8('0xd')]=this[_0x387ee8('0xd')]?this[_0x387ee8('0xd')][_0x387ee8('0x16')](_0x39b05a):_0x39b05a();};const Migration=function(_0x2d7a1f){const _0x39aae7=_0x266ee3;this[_0x39aae7('0x18')]=_0x2d7a1f,this[_0x39aae7('0x17')]=new Sequence();};Migration[_0x266ee3('0x12')][_0x266ee3('0x1a')]=function(_0x3f5ef4,_0x4b4091,_0x3cd877){const _0x5c6228=_0x266ee3,_0x5444d5=this;this[_0x5c6228('0x17')]['enqueue'](function(){const _0x107db3=_0x5c6228;return _0x5444d5[_0x107db3('0x18')]['changeColumn'](_0x3f5ef4,_0x4b4091,_0x3cd877)[_0x107db3('0x0')](function(){const _0x2d9827=_0x107db3;logger[_0x2d9827('0x10')](_0x2d9827('0x15'),_0x4b4091,_0x3f5ef4);})[_0x107db3('0xa')](function(_0x370970){const _0x4a8f5e=_0x107db3;logger[_0x4a8f5e('0x10')](JSON[_0x4a8f5e('0x14')](_0x370970));});});},Migration[_0x266ee3('0x12')][_0x266ee3('0x19')]=function(_0x33f0f3,_0x1230c7,_0x4ec186){const _0x4659e5=_0x266ee3,_0x1d915e=this;this['sequence'][_0x4659e5('0x1')](function(){const _0x2f0e60=_0x4659e5;return _0x1d915e[_0x2f0e60('0x18')][_0x2f0e60('0x19')](_0x33f0f3,_0x1230c7,_0x4ec186)['then'](function(){const _0x504dc6=_0x2f0e60;logger['info'](_0x504dc6('0x1d'),_0x1230c7,_0x33f0f3);})['catch'](function(_0x40fd5d){const _0x20904b=_0x2f0e60;logger[_0x20904b('0x10')](JSON[_0x20904b('0x14')](_0x40fd5d));});});},Migration[_0x266ee3('0x12')][_0x266ee3('0x1e')]=function(_0x5ecab9){const _0x1e3e23=this;this['sequence']['enqueue'](function(){const _0x1919c3=a1000_0x71ce;return _0x1e3e23[_0x1919c3('0x18')][_0x1919c3('0x1e')](_0x5ecab9,{'force':!![]})['then'](function(){const _0x308a19=_0x1919c3;logger[_0x308a19('0x10')](_0x308a19('0xe'),_0x5ecab9);})[_0x1919c3('0xa')](function(_0x1656c2){const _0x5cba70=_0x1919c3;logger[_0x5cba70('0x10')](JSON[_0x5cba70('0x14')](_0x1656c2));});});},Migration[_0x266ee3('0x12')][_0x266ee3('0x3')]=function(_0x4abc91,_0x4e740c,_0x479415){const _0x4c2c51=_0x266ee3,_0x6d46f4=this;this[_0x4c2c51('0x17')][_0x4c2c51('0x1')](function(){const _0x43b083=_0x4c2c51;return _0x6d46f4[_0x43b083('0x18')][_0x43b083('0x3')](_0x4abc91,_0x4e740c,{'indexName':_0x479415['indexName'],'indicesType':_0x479415['indicesType']})[_0x43b083('0x0')](function(){const _0x2388dc=_0x43b083;logger[_0x2388dc('0x10')](_0x2388dc('0x6'),_0x4abc91,_0x4e740c['join'](','),_0x479415[_0x2388dc('0x9')],_0x479415[_0x2388dc('0x8')]);})[_0x43b083('0xa')](function(_0x455d45){const _0x24e0e4=_0x43b083;logger[_0x24e0e4('0x10')](JSON['stringify'](_0x455d45));});});},Migration[_0x266ee3('0x12')][_0x266ee3('0x21')]=function(_0x55afd7,_0x337c8d){const _0x562409=_0x266ee3,_0x295b54=this;this['sequence'][_0x562409('0x1')](function(){const _0x2b904a=_0x562409;return _0x295b54[_0x2b904a('0x18')][_0x2b904a('0x21')](_0x55afd7,_0x337c8d)[_0x2b904a('0x0')](function(){const _0x4e5d3b=_0x2b904a;logger[_0x4e5d3b('0x10')](_0x4e5d3b('0xf'),_0x55afd7,_0x337c8d);})[_0x2b904a('0xa')](function(_0x2092be){const _0x52d27a=_0x2b904a;logger[_0x52d27a('0x10')](JSON[_0x52d27a('0x14')](_0x2092be));});});},Migration['prototype'][_0x266ee3('0x1f')]=function(_0x502be6){const _0x1f8051=_0x266ee3,_0x5f00d1=this;this[_0x1f8051('0x17')][_0x1f8051('0x1')](function(){const _0x7855b4=_0x1f8051;return _0x5f00d1[_0x7855b4('0x18')]['sequelize'][_0x7855b4('0x1f')](_0x502be6)[_0x7855b4('0x0')](function(){const _0x3f780c=_0x7855b4;logger['info'](_0x3f780c('0xc'),_0x502be6);})[_0x7855b4('0xa')](function(_0x446142){const _0x195d63=_0x7855b4;logger[_0x195d63('0x10')](JSON['stringify'](_0x446142));});});},Migration[_0x266ee3('0x12')][_0x266ee3('0x5')]=function(_0x1732b2,_0x8027fd){const _0xc593a8=_0x266ee3,_0x50fbc4=this;this['sequence'][_0xc593a8('0x1')](function(){const _0x12afc1=_0xc593a8;return _0x50fbc4[_0x12afc1('0x18')][_0x12afc1('0x5')](_0x1732b2,_0x8027fd)[_0x12afc1('0x0')](function(){const _0x1cfbff=_0x12afc1;logger[_0x1cfbff('0x10')](_0x1cfbff('0xb'),_0x8027fd,_0x1732b2);})[_0x12afc1('0xa')](function(_0x4dba97){const _0x430cbd=_0x12afc1;logger[_0x430cbd('0x10')](util[_0x430cbd('0x4')](_0x4dba97,{'showHidden':![],'depth':null}));});});},Migration[_0x266ee3('0x12')][_0x266ee3('0x20')]=function(_0x290fdd,_0x5bb7f5,_0x17e637){const _0x5ea292=this;this['sequence']['enqueue'](function(){const _0x25448e=a1000_0x71ce;return _0x5ea292['queryInterface'][_0x25448e('0x20')](_0x290fdd,_0x5bb7f5,_0x17e637)[_0x25448e('0x0')](function(){const _0x4eb1c9=_0x25448e;logger[_0x4eb1c9('0x10')](_0x4eb1c9('0x1b'),_0x5bb7f5,_0x17e637,_0x290fdd);})[_0x25448e('0xa')](function(_0x1916e9){const _0x8ad099=_0x25448e;logger[_0x8ad099('0x10')](util[_0x8ad099('0x4')](_0x1916e9,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x266ee3('0x11')]=function(_0x2765d8){const _0x532924=_0x266ee3;this[_0x532924('0x17')][_0x532924('0x1')](function(){return _0x2765d8();});},module[_0x266ee3('0x13')]={'up':function(_0xc69552){return new Promise(function(_0x2a8307){const _0x1b13a4=a1000_0x71ce,_0x4e21dd=new Migration(_0xc69552);_0x4e21dd[_0x1b13a4('0x1f')]('UPDATE\x20voice_queues\x20SET\x20joinempty\x20=\x20\x22yes\x22\x20WHERE\x20joinempty\x20=\x20\x27\x27\x20or\x20joinempty\x20IS\x20NULL'),_0x4e21dd[_0x1b13a4('0x1f')](_0x1b13a4('0x2')),_0x4e21dd[_0x1b13a4('0x11')](_0x2a8307);});},'down':function(){}}; \ No newline at end of file +const a1162_0x3103=['finally','sequelize','final','queryInterface','then','UPDATE\x20voice_queues\x20SET\x20leavewhenempty\x20=\x20\x22no\x22\x20WHERE\x20leavewhenempty\x20=\x20\x27\x27\x20or\x20leavewhenempty\x20IS\x20NULL','indexName','removeColumn','join','removeIndex','enqueue','addColumn','stringify','UPDATE\x20voice_queues\x20SET\x20joinempty\x20=\x20\x22yes\x22\x20WHERE\x20joinempty\x20=\x20\x27\x27\x20or\x20joinempty\x20IS\x20NULL','exports','tail','addIndex\x20%s\x20%s\x20%s\x20[%s]','indicesType','info','prototype','dropTable','addIndex','Added\x20column\x20%s\x20to\x20%s','migration','removeIndex\x20%s\x20%s','sequence','util','query','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','query\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','inspect','catch','changeColumn'];(function(_0x5947b4,_0x5ab5ee){const _0x310305=function(_0xaba9b){while(--_0xaba9b){_0x5947b4['push'](_0x5947b4['shift']());}};_0x310305(++_0x5ab5ee);}(a1162_0x3103,0xc3));const a1162_0xaba9=function(_0x5947b4,_0x5ab5ee){_0x5947b4=_0x5947b4-0xc7;let _0x310305=a1162_0x3103[_0x5947b4];return _0x310305;};const a1162_0x145343=a1162_0xaba9;'use strict';const util=require(a1162_0x145343(0xc8)),logger=require('../config/logger')(a1162_0x145343(0xe7)),Sequence=function(){};Sequence['prototype'][a1162_0x145343(0xda)]=function(_0x5cab6d){const _0x454565=a1162_0x145343;this[_0x454565(0xdf)]=this[_0x454565(0xdf)]?this['tail'][_0x454565(0xd0)](_0x5cab6d):_0x5cab6d();};const Migration=function(_0x4df723){const _0xc2901b=a1162_0x145343;this[_0xc2901b(0xd3)]=_0x4df723,this[_0xc2901b(0xc7)]=new Sequence();};Migration[a1162_0x145343(0xe3)][a1162_0x145343(0xcf)]=function(_0x366d89,_0x39a8c4,_0xa67b64){const _0x2fb904=a1162_0x145343,_0x54118d=this;this[_0x2fb904(0xc7)][_0x2fb904(0xda)](function(){const _0x1077dc=_0x2fb904;return _0x54118d[_0x1077dc(0xd3)][_0x1077dc(0xcf)](_0x366d89,_0x39a8c4,_0xa67b64)[_0x1077dc(0xd4)](function(){const _0xd67bc8=_0x1077dc;logger[_0xd67bc8(0xe2)](_0xd67bc8(0xcc),_0x39a8c4,_0x366d89);})[_0x1077dc(0xce)](function(_0x2ba6b9){const _0x2fc7dc=_0x1077dc;logger[_0x2fc7dc(0xe2)](JSON[_0x2fc7dc(0xdc)](_0x2ba6b9));});});},Migration[a1162_0x145343(0xe3)][a1162_0x145343(0xdb)]=function(_0x269fb6,_0x136f58,_0x5c3d3d){const _0x2862c3=a1162_0x145343,_0x2f4cd0=this;this[_0x2862c3(0xc7)][_0x2862c3(0xda)](function(){const _0x376e70=_0x2862c3;return _0x2f4cd0['queryInterface'][_0x376e70(0xdb)](_0x269fb6,_0x136f58,_0x5c3d3d)['then'](function(){const _0x3e8328=_0x376e70;logger[_0x3e8328(0xe2)](_0x3e8328(0xe6),_0x136f58,_0x269fb6);})['catch'](function(_0x4f3621){const _0x1dcbcf=_0x376e70;logger[_0x1dcbcf(0xe2)](JSON[_0x1dcbcf(0xdc)](_0x4f3621));});});},Migration['prototype'][a1162_0x145343(0xe4)]=function(_0x101ef3){const _0x3a6ed9=a1162_0x145343,_0x49416b=this;this['sequence'][_0x3a6ed9(0xda)](function(){const _0x343d83=_0x3a6ed9;return _0x49416b[_0x343d83(0xd3)][_0x343d83(0xe4)](_0x101ef3,{'force':!![]})[_0x343d83(0xd4)](function(){const _0x25cefa=_0x343d83;logger[_0x25cefa(0xe2)]('table\x20dropped\x20%s',_0x101ef3);})[_0x343d83(0xce)](function(_0x350a58){logger['info'](JSON['stringify'](_0x350a58));});});},Migration[a1162_0x145343(0xe3)][a1162_0x145343(0xe5)]=function(_0x40b6fe,_0x491531,_0x3bcee1){const _0x958c0=a1162_0x145343,_0x3a8eb2=this;this[_0x958c0(0xc7)][_0x958c0(0xda)](function(){const _0x337ad7=_0x958c0;return _0x3a8eb2[_0x337ad7(0xd3)]['addIndex'](_0x40b6fe,_0x491531,{'indexName':_0x3bcee1[_0x337ad7(0xd6)],'indicesType':_0x3bcee1[_0x337ad7(0xe1)]})[_0x337ad7(0xd4)](function(){const _0x396cfa=_0x337ad7;logger[_0x396cfa(0xe2)](_0x396cfa(0xe0),_0x40b6fe,_0x491531[_0x396cfa(0xd8)](','),_0x3bcee1[_0x396cfa(0xd6)],_0x3bcee1[_0x396cfa(0xe1)]);})[_0x337ad7(0xce)](function(_0x2aa465){logger['info'](JSON['stringify'](_0x2aa465));});});},Migration[a1162_0x145343(0xe3)][a1162_0x145343(0xd9)]=function(_0x7c61f0,_0x3ba204){const _0x3c3296=a1162_0x145343,_0x30071a=this;this[_0x3c3296(0xc7)][_0x3c3296(0xda)](function(){const _0x58291d=_0x3c3296;return _0x30071a[_0x58291d(0xd3)][_0x58291d(0xd9)](_0x7c61f0,_0x3ba204)[_0x58291d(0xd4)](function(){const _0x348c74=_0x58291d;logger[_0x348c74(0xe2)](_0x348c74(0xe8),_0x7c61f0,_0x3ba204);})[_0x58291d(0xce)](function(_0x9a8aee){const _0x43a9e9=_0x58291d;logger['info'](JSON[_0x43a9e9(0xdc)](_0x9a8aee));});});},Migration[a1162_0x145343(0xe3)][a1162_0x145343(0xc9)]=function(_0x5adde5){const _0x32919d=a1162_0x145343,_0x4ddcdf=this;this['sequence'][_0x32919d(0xda)](function(){const _0x4ba933=_0x32919d;return _0x4ddcdf['queryInterface'][_0x4ba933(0xd1)][_0x4ba933(0xc9)](_0x5adde5)[_0x4ba933(0xd4)](function(){const _0x48985e=_0x4ba933;logger[_0x48985e(0xe2)](_0x48985e(0xcb),_0x5adde5);})['catch'](function(_0x2d0ae9){const _0x1be14e=_0x4ba933;logger['info'](JSON[_0x1be14e(0xdc)](_0x2d0ae9));});});},Migration[a1162_0x145343(0xe3)]['removeColumn']=function(_0xd4f5da,_0x4f7201){const _0x1d7c5d=a1162_0x145343,_0x5536fb=this;this[_0x1d7c5d(0xc7)]['enqueue'](function(){const _0x47c44d=_0x1d7c5d;return _0x5536fb[_0x47c44d(0xd3)][_0x47c44d(0xd7)](_0xd4f5da,_0x4f7201)[_0x47c44d(0xd4)](function(){const _0x319247=_0x47c44d;logger[_0x319247(0xe2)]('Removed\x20column\x20%s\x20from\x20%s',_0x4f7201,_0xd4f5da);})[_0x47c44d(0xce)](function(_0x3c5e52){const _0x1b1eb3=_0x47c44d;logger[_0x1b1eb3(0xe2)](util[_0x1b1eb3(0xcd)](_0x3c5e52,{'showHidden':![],'depth':null}));});});},Migration[a1162_0x145343(0xe3)]['renameColumn']=function(_0x2226f8,_0x1c3383,_0x644156){const _0x4e7572=a1162_0x145343,_0x561269=this;this[_0x4e7572(0xc7)][_0x4e7572(0xda)](function(){const _0x312c25=_0x4e7572;return _0x561269['queryInterface']['renameColumn'](_0x2226f8,_0x1c3383,_0x644156)['then'](function(){const _0x1e0f0c=a1162_0xaba9;logger['info'](_0x1e0f0c(0xca),_0x1c3383,_0x644156,_0x2226f8);})[_0x312c25(0xce)](function(_0xc4df42){const _0x4d4644=_0x312c25;logger['info'](util[_0x4d4644(0xcd)](_0xc4df42,{'showHidden':![],'depth':null}));});});},Migration[a1162_0x145343(0xe3)][a1162_0x145343(0xd2)]=function(_0x134bb9){const _0x28d86b=a1162_0x145343;this[_0x28d86b(0xc7)][_0x28d86b(0xda)](function(){return _0x134bb9();});},module[a1162_0x145343(0xde)]={'up':function(_0x2b6181){return new Promise(function(_0x1a1731){const _0x5d7230=a1162_0xaba9,_0xd31164=new Migration(_0x2b6181);_0xd31164[_0x5d7230(0xc9)](_0x5d7230(0xdd)),_0xd31164['query'](_0x5d7230(0xd5)),_0xd31164[_0x5d7230(0xd2)](_0x1a1731);});},'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 88d2a4c..d9e50dd 100644 --- a/server/migrations/2.4.19.js +++ b/server/migrations/2.4.19.js @@ -1 +1 @@ -const a1001_0x100c=['table\x20dropped\x20%s','finally','stringify','STRING','util','prototype','tail','UPDATE\x20int_zoho_configurations\x20SET\x20moduleCreate\x20=\x20\x27lead\x27\x20WHERE\x20moduleCreate\x20=\x20\x27Leads\x27','indexName','../config/logger','removeIndex\x20%s\x20%s','sequelize','indicesType','username','removeColumn','removeIndex','contact_lead','int_zoho_configurations','final','queryInterface','Added\x20column\x20%s\x20to\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','turn','UPDATE\x20int_zoho_configurations\x20SET\x20moduleCreate\x20=\x20\x27contact\x27\x20WHERE\x20moduleCreate\x20=\x20\x27Contacts\x27','info','query\x20%s','INSERT\x20INTO\x20network\x20(type,value,\x20createdAt,\x20updatedAt)\x20SELECT\x20\x27stun\x27,\x20stunaddr,\x20current_timestamp(),\x20current_timestamp()\x20from\x20settings\x20WHERE\x20stunaddr<>\x27\x27','addColumn','Leads','migration','network','lead','stun','enqueue','moduleCreate','query','exports','addIndex\x20%s\x20%s\x20%s\x20[%s]','changeColumn','catch','sequence','ENUM','dropTable','Contacts','externip','nothing','then','addIndex','renameColumn','contact'];(function(_0x7b05c8,_0x100c9b){const _0x18e4ff=function(_0x1cca26){while(--_0x1cca26){_0x7b05c8['push'](_0x7b05c8['shift']());}};_0x18e4ff(++_0x100c9b);}(a1001_0x100c,0x150));const a1001_0x18e4=function(_0x7b05c8,_0x100c9b){_0x7b05c8=_0x7b05c8-0x0;let _0x18e4ff=a1001_0x100c[_0x7b05c8];return _0x18e4ff;};const _0xc5fd66=a1001_0x18e4;'use strict';const util=require(_0xc5fd66('0x12')),logger=require(_0xc5fd66('0x17'))(_0xc5fd66('0x2b')),Sequence=function(){};Sequence[_0xc5fd66('0x13')]['enqueue']=function(_0x1cca26){const _0x383c84=_0xc5fd66;this['tail']=this[_0x383c84('0x14')]?this[_0x383c84('0x14')][_0x383c84('0xf')](_0x1cca26):_0x1cca26();};const Migration=function(_0x5bbd11){const _0x431109=_0xc5fd66;this[_0x431109('0x21')]=_0x5bbd11,this[_0x431109('0x4')]=new Sequence();};Migration[_0xc5fd66('0x13')]['changeColumn']=function(_0x5af962,_0x255dc7,_0x340c6a){const _0x2c5e8a=_0xc5fd66,_0x3eb45d=this;this['sequence'][_0x2c5e8a('0x2f')](function(){const _0x390707=_0x2c5e8a;return _0x3eb45d[_0x390707('0x21')][_0x390707('0x2')](_0x5af962,_0x255dc7,_0x340c6a)['then'](function(){const _0x3906b6=_0x390707;logger[_0x3906b6('0x26')](_0x3906b6('0x23'),_0x255dc7,_0x5af962);})[_0x390707('0x3')](function(_0x521949){const _0x4c39d0=_0x390707;logger['info'](JSON[_0x4c39d0('0x10')](_0x521949));});});},Migration['prototype']['addColumn']=function(_0x368dbc,_0x4086c9,_0x1eac76){const _0x3fb570=_0xc5fd66,_0xa85134=this;this[_0x3fb570('0x4')][_0x3fb570('0x2f')](function(){const _0x560280=_0x3fb570;return _0xa85134[_0x560280('0x21')][_0x560280('0x29')](_0x368dbc,_0x4086c9,_0x1eac76)[_0x560280('0xa')](function(){const _0x5bc67c=_0x560280;logger[_0x5bc67c('0x26')](_0x5bc67c('0x22'),_0x4086c9,_0x368dbc);})[_0x560280('0x3')](function(_0x19713d){const _0x32eaea=_0x560280;logger[_0x32eaea('0x26')](JSON[_0x32eaea('0x10')](_0x19713d));});});},Migration[_0xc5fd66('0x13')][_0xc5fd66('0x6')]=function(_0x3f7965){const _0x5a79f9=_0xc5fd66,_0x416729=this;this['sequence'][_0x5a79f9('0x2f')](function(){const _0x4778ff=_0x5a79f9;return _0x416729['queryInterface'][_0x4778ff('0x6')](_0x3f7965,{'force':!![]})[_0x4778ff('0xa')](function(){const _0x4b57fb=_0x4778ff;logger[_0x4b57fb('0x26')](_0x4b57fb('0xe'),_0x3f7965);})['catch'](function(_0x3a701f){const _0x2f5bfb=_0x4778ff;logger[_0x2f5bfb('0x26')](JSON[_0x2f5bfb('0x10')](_0x3a701f));});});},Migration['prototype'][_0xc5fd66('0xb')]=function(_0x1081bd,_0x17c822,_0xa16cd4){const _0x2695cc=_0xc5fd66,_0x3effa5=this;this[_0x2695cc('0x4')][_0x2695cc('0x2f')](function(){const _0x21db8f=_0x2695cc;return _0x3effa5[_0x21db8f('0x21')][_0x21db8f('0xb')](_0x1081bd,_0x17c822,{'indexName':_0xa16cd4[_0x21db8f('0x16')],'indicesType':_0xa16cd4[_0x21db8f('0x1a')]})[_0x21db8f('0xa')](function(){const _0x160c61=_0x21db8f;logger[_0x160c61('0x26')](_0x160c61('0x1'),_0x1081bd,_0x17c822['join'](','),_0xa16cd4['indexName'],_0xa16cd4[_0x160c61('0x1a')]);})[_0x21db8f('0x3')](function(_0x1939f7){const _0x57d078=_0x21db8f;logger[_0x57d078('0x26')](JSON['stringify'](_0x1939f7));});});},Migration[_0xc5fd66('0x13')]['removeIndex']=function(_0x210903,_0x35b060){const _0x375bb4=_0xc5fd66,_0x313d31=this;this['sequence'][_0x375bb4('0x2f')](function(){const _0x5538ad=_0x375bb4;return _0x313d31[_0x5538ad('0x21')][_0x5538ad('0x1d')](_0x210903,_0x35b060)['then'](function(){const _0x12415a=_0x5538ad;logger[_0x12415a('0x26')](_0x12415a('0x18'),_0x210903,_0x35b060);})[_0x5538ad('0x3')](function(_0x4fbce5){logger['info'](JSON['stringify'](_0x4fbce5));});});},Migration[_0xc5fd66('0x13')][_0xc5fd66('0x31')]=function(_0x5c69cb){const _0x46901b=_0xc5fd66,_0xae923b=this;this['sequence'][_0x46901b('0x2f')](function(){const _0x4e5815=_0x46901b;return _0xae923b[_0x4e5815('0x21')][_0x4e5815('0x19')]['query'](_0x5c69cb)[_0x4e5815('0xa')](function(){const _0x1466bc=_0x4e5815;logger['info'](_0x1466bc('0x27'),_0x5c69cb);})[_0x4e5815('0x3')](function(_0x3c9f07){const _0xd49e51=_0x4e5815;logger[_0xd49e51('0x26')](JSON[_0xd49e51('0x10')](_0x3c9f07));});});},Migration['prototype']['removeColumn']=function(_0x40de59,_0xe959c8){const _0x490c83=_0xc5fd66,_0x2ec5ff=this;this[_0x490c83('0x4')][_0x490c83('0x2f')](function(){const _0x53bcd9=_0x490c83;return _0x2ec5ff[_0x53bcd9('0x21')][_0x53bcd9('0x1c')](_0x40de59,_0xe959c8)[_0x53bcd9('0xa')](function(){logger['info']('Removed\x20column\x20%s\x20from\x20%s',_0xe959c8,_0x40de59);})[_0x53bcd9('0x3')](function(_0x3f975b){const _0x2c8ec6=_0x53bcd9;logger[_0x2c8ec6('0x26')](util['inspect'](_0x3f975b,{'showHidden':![],'depth':null}));});});},Migration[_0xc5fd66('0x13')][_0xc5fd66('0xc')]=function(_0x2386ef,_0x585be8,_0x1f4250){const _0x24b84d=_0xc5fd66,_0xab0313=this;this[_0x24b84d('0x4')][_0x24b84d('0x2f')](function(){const _0x2588a2=_0x24b84d;return _0xab0313[_0x2588a2('0x21')][_0x2588a2('0xc')](_0x2386ef,_0x585be8,_0x1f4250)[_0x2588a2('0xa')](function(){const _0x325623=_0x2588a2;logger[_0x325623('0x26')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x585be8,_0x1f4250,_0x2386ef);})['catch'](function(_0x477e38){logger['info'](util['inspect'](_0x477e38,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0xc5fd66('0x20')]=function(_0x4f3d6d){const _0x126893=_0xc5fd66;this['sequence'][_0x126893('0x2f')](function(){return _0x4f3d6d();});},module[_0xc5fd66('0x0')]={'up':function(_0x140a37,_0x4d25b0){return new Promise(function(_0x5db7d5){const _0x26e343=a1001_0x18e4,_0x217bc0=new Migration(_0x140a37);_0x217bc0[_0x26e343('0x29')](_0x26e343('0x1f'),'moduleSearch',{'type':_0x4d25b0[_0x26e343('0x5')](_0x26e343('0x1e'),_0x26e343('0xd'),_0x26e343('0x2d')),'defaultValue':_0x26e343('0x1e')}),_0x217bc0['changeColumn']('int_zoho_configurations',_0x26e343('0x30'),{'type':_0x4d25b0[_0x26e343('0x5')](_0x26e343('0x2a'),_0x26e343('0x7'),'nothing',_0x26e343('0xd'),_0x26e343('0x2d'))}),_0x217bc0[_0x26e343('0x31')](_0x26e343('0x25')),_0x217bc0[_0x26e343('0x31')](_0x26e343('0x15')),_0x217bc0['changeColumn']('int_zoho_configurations',_0x26e343('0x30'),{'type':_0x4d25b0[_0x26e343('0x5')](_0x26e343('0x9'),'contact',_0x26e343('0x2d')),'defaultValue':_0x26e343('0x2d')}),_0x217bc0[_0x26e343('0x29')](_0x26e343('0x2c'),_0x26e343('0x1b'),{'type':_0x4d25b0[_0x26e343('0x11')]}),_0x217bc0[_0x26e343('0x29')](_0x26e343('0x2c'),'password',{'type':_0x4d25b0[_0x26e343('0x11')]}),_0x217bc0[_0x26e343('0x2')]('network','type',{'type':_0x4d25b0['ENUM']('localnet',_0x26e343('0x8'),_0x26e343('0x2e'),_0x26e343('0x24'))}),_0x217bc0[_0x26e343('0x31')](_0x26e343('0x28')),_0x217bc0['query']('INSERT\x20INTO\x20network\x20(type,value,username,password,\x20createdAt,\x20updatedAt)\x20SELECT\x20\x27turn\x27,\x20turnaddr,\x20turnusername,\x20turnpassword,\x20current_timestamp(),\x20current_timestamp()\x20from\x20settings\x20WHERE\x20turnaddr<>\x27\x27'),_0x217bc0['final'](_0x5db7d5);});},'down':function(){}}; \ No newline at end of file +const a1163_0x4296=['then','contact','indexName','renameColumn','queryInterface','info','removeIndex','enqueue','stringify','changeColumn','sequelize','sequence','removeColumn','final','addIndex','UPDATE\x20int_zoho_configurations\x20SET\x20moduleCreate\x20=\x20\x27contact\x27\x20WHERE\x20moduleCreate\x20=\x20\x27Contacts\x27','table\x20dropped\x20%s','stun','tail','ENUM','turn','lead','addIndex\x20%s\x20%s\x20%s\x20[%s]','INSERT\x20INTO\x20network\x20(type,value,\x20createdAt,\x20updatedAt)\x20SELECT\x20\x27stun\x27,\x20stunaddr,\x20current_timestamp(),\x20current_timestamp()\x20from\x20settings\x20WHERE\x20stunaddr<>\x27\x27','moduleSearch','contact_lead','Added\x20column\x20%s\x20to\x20%s','migration','util','exports','username','catch','UPDATE\x20int_zoho_configurations\x20SET\x20moduleCreate\x20=\x20\x27lead\x27\x20WHERE\x20moduleCreate\x20=\x20\x27Leads\x27','prototype','externip','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','Changed\x20column\x20%s\x20in\x20table\x20%s','query\x20%s','../config/logger','int_zoho_configurations','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','localnet','nothing','Removed\x20column\x20%s\x20from\x20%s','finally','dropTable','indicesType','STRING','addColumn','password','moduleCreate','join','query','network','inspect'];(function(_0x2074f7,_0x1350c7){const _0x429693=function(_0x479a22){while(--_0x479a22){_0x2074f7['push'](_0x2074f7['shift']());}};_0x429693(++_0x1350c7);}(a1163_0x4296,0x19b));const a1163_0x479a=function(_0x2074f7,_0x1350c7){_0x2074f7=_0x2074f7-0x13e;let _0x429693=a1163_0x4296[_0x2074f7];return _0x429693;};const a1163_0xff87ad=a1163_0x479a;'use strict';const util=require(a1163_0xff87ad(0x140)),logger=require(a1163_0xff87ad(0x14a))(a1163_0xff87ad(0x13f)),Sequence=function(){};Sequence['prototype'][a1163_0xff87ad(0x162)]=function(_0x427d5a){const _0x2ad527=a1163_0xff87ad;this['tail']=this[_0x2ad527(0x16d)]?this['tail'][_0x2ad527(0x150)](_0x427d5a):_0x427d5a();};const Migration=function(_0x304e6e){const _0x536c54=a1163_0xff87ad;this['queryInterface']=_0x304e6e,this[_0x536c54(0x166)]=new Sequence();};Migration[a1163_0xff87ad(0x145)][a1163_0xff87ad(0x164)]=function(_0x148668,_0xed0aca,_0x188529){const _0x3ee51a=a1163_0xff87ad,_0x987ea9=this;this['sequence'][_0x3ee51a(0x162)](function(){const _0x2ca753=_0x3ee51a;return _0x987ea9[_0x2ca753(0x15f)][_0x2ca753(0x164)](_0x148668,_0xed0aca,_0x188529)[_0x2ca753(0x15b)](function(){const _0x1150b4=_0x2ca753;logger[_0x1150b4(0x160)](_0x1150b4(0x148),_0xed0aca,_0x148668);})[_0x2ca753(0x143)](function(_0xc8c0e6){const _0x2a18e5=_0x2ca753;logger[_0x2a18e5(0x160)](JSON[_0x2a18e5(0x163)](_0xc8c0e6));});});},Migration[a1163_0xff87ad(0x145)][a1163_0xff87ad(0x154)]=function(_0x4363af,_0x4ad6bc,_0x190717){const _0x1409b4=a1163_0xff87ad,_0x14cb98=this;this[_0x1409b4(0x166)][_0x1409b4(0x162)](function(){const _0x288880=_0x1409b4;return _0x14cb98[_0x288880(0x15f)][_0x288880(0x154)](_0x4363af,_0x4ad6bc,_0x190717)['then'](function(){const _0x51498e=_0x288880;logger[_0x51498e(0x160)](_0x51498e(0x13e),_0x4ad6bc,_0x4363af);})[_0x288880(0x143)](function(_0x33be46){const _0x341262=_0x288880;logger[_0x341262(0x160)](JSON[_0x341262(0x163)](_0x33be46));});});},Migration[a1163_0xff87ad(0x145)][a1163_0xff87ad(0x151)]=function(_0x5c2406){const _0x214b45=this;this['sequence']['enqueue'](function(){const _0x252cb7=a1163_0x479a;return _0x214b45[_0x252cb7(0x15f)][_0x252cb7(0x151)](_0x5c2406,{'force':!![]})['then'](function(){const _0x2ee779=_0x252cb7;logger[_0x2ee779(0x160)](_0x2ee779(0x16b),_0x5c2406);})[_0x252cb7(0x143)](function(_0x55d72d){const _0x3f33d0=_0x252cb7;logger[_0x3f33d0(0x160)](JSON['stringify'](_0x55d72d));});});},Migration['prototype'][a1163_0xff87ad(0x169)]=function(_0x1c0863,_0x45028f,_0x4ee53f){const _0x29e4ee=a1163_0xff87ad,_0x1c3344=this;this[_0x29e4ee(0x166)][_0x29e4ee(0x162)](function(){const _0x291306=_0x29e4ee;return _0x1c3344[_0x291306(0x15f)][_0x291306(0x169)](_0x1c0863,_0x45028f,{'indexName':_0x4ee53f['indexName'],'indicesType':_0x4ee53f[_0x291306(0x152)]})[_0x291306(0x15b)](function(){const _0x4d5182=_0x291306;logger[_0x4d5182(0x160)](_0x4d5182(0x171),_0x1c0863,_0x45028f[_0x4d5182(0x157)](','),_0x4ee53f[_0x4d5182(0x15d)],_0x4ee53f['indicesType']);})['catch'](function(_0x25fc69){const _0x3d306b=_0x291306;logger['info'](JSON[_0x3d306b(0x163)](_0x25fc69));});});},Migration[a1163_0xff87ad(0x145)][a1163_0xff87ad(0x161)]=function(_0x3db7cb,_0x24e9bf){const _0x2e7e9b=a1163_0xff87ad,_0x445adb=this;this['sequence'][_0x2e7e9b(0x162)](function(){const _0x126a32=_0x2e7e9b;return _0x445adb['queryInterface'][_0x126a32(0x161)](_0x3db7cb,_0x24e9bf)[_0x126a32(0x15b)](function(){const _0xa1ae69=_0x126a32;logger[_0xa1ae69(0x160)]('removeIndex\x20%s\x20%s',_0x3db7cb,_0x24e9bf);})[_0x126a32(0x143)](function(_0x5f558f){const _0x5ed464=_0x126a32;logger[_0x5ed464(0x160)](JSON[_0x5ed464(0x163)](_0x5f558f));});});},Migration[a1163_0xff87ad(0x145)]['query']=function(_0x52efec){const _0x361be4=a1163_0xff87ad,_0x2895eb=this;this[_0x361be4(0x166)][_0x361be4(0x162)](function(){const _0x21aff0=_0x361be4;return _0x2895eb[_0x21aff0(0x15f)][_0x21aff0(0x165)][_0x21aff0(0x158)](_0x52efec)[_0x21aff0(0x15b)](function(){const _0x4a201a=_0x21aff0;logger[_0x4a201a(0x160)](_0x4a201a(0x149),_0x52efec);})[_0x21aff0(0x143)](function(_0x5142be){const _0x24c302=_0x21aff0;logger[_0x24c302(0x160)](JSON[_0x24c302(0x163)](_0x5142be));});});},Migration[a1163_0xff87ad(0x145)][a1163_0xff87ad(0x167)]=function(_0x1ab1b4,_0x15dca2){const _0x1b1696=a1163_0xff87ad,_0x589088=this;this['sequence'][_0x1b1696(0x162)](function(){const _0x45eac6=_0x1b1696;return _0x589088[_0x45eac6(0x15f)][_0x45eac6(0x167)](_0x1ab1b4,_0x15dca2)[_0x45eac6(0x15b)](function(){const _0x439080=_0x45eac6;logger[_0x439080(0x160)](_0x439080(0x14f),_0x15dca2,_0x1ab1b4);})[_0x45eac6(0x143)](function(_0x22c681){const _0x5936e8=_0x45eac6;logger[_0x5936e8(0x160)](util['inspect'](_0x22c681,{'showHidden':![],'depth':null}));});});},Migration[a1163_0xff87ad(0x145)][a1163_0xff87ad(0x15e)]=function(_0x15ac26,_0x1047f8,_0x30faea){const _0x5821f2=a1163_0xff87ad,_0x3bdd7e=this;this[_0x5821f2(0x166)][_0x5821f2(0x162)](function(){const _0x4ae93a=_0x5821f2;return _0x3bdd7e[_0x4ae93a(0x15f)]['renameColumn'](_0x15ac26,_0x1047f8,_0x30faea)['then'](function(){const _0x1afefe=_0x4ae93a;logger[_0x1afefe(0x160)](_0x1afefe(0x14c),_0x1047f8,_0x30faea,_0x15ac26);})[_0x4ae93a(0x143)](function(_0x51ef98){const _0x511629=_0x4ae93a;logger[_0x511629(0x160)](util[_0x511629(0x15a)](_0x51ef98,{'showHidden':![],'depth':null}));});});},Migration['prototype']['final']=function(_0x49c22b){const _0x4e144d=a1163_0xff87ad;this[_0x4e144d(0x166)]['enqueue'](function(){return _0x49c22b();});},module[a1163_0xff87ad(0x141)]={'up':function(_0x2d4d75,_0x3e1348){return new Promise(function(_0x5a184e){const _0x167d06=a1163_0x479a,_0x40afca=new Migration(_0x2d4d75);_0x40afca['addColumn'](_0x167d06(0x14b),_0x167d06(0x173),{'type':_0x3e1348[_0x167d06(0x16e)]('contact_lead',_0x167d06(0x15c),_0x167d06(0x170)),'defaultValue':_0x167d06(0x174)}),_0x40afca[_0x167d06(0x164)]('int_zoho_configurations','moduleCreate',{'type':_0x3e1348[_0x167d06(0x16e)]('Leads','Contacts',_0x167d06(0x14e),'contact','lead')}),_0x40afca[_0x167d06(0x158)](_0x167d06(0x16a)),_0x40afca[_0x167d06(0x158)](_0x167d06(0x144)),_0x40afca[_0x167d06(0x164)]('int_zoho_configurations',_0x167d06(0x156),{'type':_0x3e1348[_0x167d06(0x16e)](_0x167d06(0x14e),'contact','lead'),'defaultValue':_0x167d06(0x170)}),_0x40afca[_0x167d06(0x154)]('network',_0x167d06(0x142),{'type':_0x3e1348[_0x167d06(0x153)]}),_0x40afca['addColumn'](_0x167d06(0x159),_0x167d06(0x155),{'type':_0x3e1348[_0x167d06(0x153)]}),_0x40afca[_0x167d06(0x164)]('network','type',{'type':_0x3e1348[_0x167d06(0x16e)](_0x167d06(0x14d),_0x167d06(0x146),_0x167d06(0x16c),_0x167d06(0x16f))}),_0x40afca['query'](_0x167d06(0x172)),_0x40afca[_0x167d06(0x158)](_0x167d06(0x147)),_0x40afca[_0x167d06(0x168)](_0x5a184e);});},'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 bea6743..0920e95 100644 --- a/server/migrations/2.4.2.js +++ b/server/migrations/2.4.2.js @@ -1 +1 @@ -const a1002_0x3492=['removeIndex\x20%s\x20%s','UPDATE\x20settings\x20SET\x20allowedLoginAttempts\x20=\x200,\x20blockDuration\x20=\x200;','dropTable','Added\x20column\x20%s\x20to\x20%s','indicesType','INTEGER','disabled','info','allowedLoginAttempts','query\x20%s','removeColumn','Removed\x20column\x20%s\x20from\x20%s','sequence','BOOLEAN','join','final','catch','addColumn','changeColumn','sequelize','tail','loginAttempts','DATE','util','inspect','blockedAt','then','queryInterface','blocked','removeIndex','settings','users','../config/logger','indexName','exports','stringify','Changed\x20column\x20%s\x20in\x20table\x20%s','ALTER\x20TABLE\x20screen_recordings\x20ENCRYPTION=\x27Y\x27;','enqueue','query','addIndex','prototype','table\x20dropped\x20%s','renameColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s'];(function(_0x4b6df7,_0x3492f1){const _0x39da5b=function(_0x316b07){while(--_0x316b07){_0x4b6df7['push'](_0x4b6df7['shift']());}};_0x39da5b(++_0x3492f1);}(a1002_0x3492,0xcb));const a1002_0x39da=function(_0x4b6df7,_0x3492f1){_0x4b6df7=_0x4b6df7-0x0;let _0x39da5b=a1002_0x3492[_0x4b6df7];return _0x39da5b;};const _0x29f492=a1002_0x39da;'use strict';const util=require(_0x29f492('0x0')),logger=require(_0x29f492('0x9'))('migration'),Sequence=function(){};Sequence[_0x29f492('0x12')][_0x29f492('0xf')]=function(_0x316b07){const _0x56dfc8=_0x29f492;this[_0x56dfc8('0x2a')]=this['tail']?this[_0x56dfc8('0x2a')]['finally'](_0x316b07):_0x316b07();};const Migration=function(_0x3f2b1e){const _0x16b6d4=_0x29f492;this[_0x16b6d4('0x4')]=_0x3f2b1e,this['sequence']=new Sequence();};Migration[_0x29f492('0x12')][_0x29f492('0x28')]=function(_0x1ba572,_0x3d9aea,_0x398ab0){const _0x58e645=_0x29f492,_0x593ce9=this;this[_0x58e645('0x22')][_0x58e645('0xf')](function(){const _0x373fa1=_0x58e645;return _0x593ce9[_0x373fa1('0x4')][_0x373fa1('0x28')](_0x1ba572,_0x3d9aea,_0x398ab0)[_0x373fa1('0x3')](function(){const _0x5314ed=_0x373fa1;logger['info'](_0x5314ed('0xd'),_0x3d9aea,_0x1ba572);})[_0x373fa1('0x26')](function(_0x148a27){const _0x131016=_0x373fa1;logger[_0x131016('0x1d')](JSON[_0x131016('0xc')](_0x148a27));});});},Migration[_0x29f492('0x12')][_0x29f492('0x27')]=function(_0x34fc21,_0x394a2c,_0x16e2f7){const _0x5d84d0=_0x29f492,_0x2c8696=this;this[_0x5d84d0('0x22')]['enqueue'](function(){const _0xfd0b25=_0x5d84d0;return _0x2c8696[_0xfd0b25('0x4')][_0xfd0b25('0x27')](_0x34fc21,_0x394a2c,_0x16e2f7)[_0xfd0b25('0x3')](function(){const _0x531ab7=_0xfd0b25;logger[_0x531ab7('0x1d')](_0x531ab7('0x19'),_0x394a2c,_0x34fc21);})[_0xfd0b25('0x26')](function(_0x5a2ce1){const _0x7ac9d8=_0xfd0b25;logger[_0x7ac9d8('0x1d')](JSON[_0x7ac9d8('0xc')](_0x5a2ce1));});});},Migration['prototype'][_0x29f492('0x18')]=function(_0x366286){const _0x3af173=_0x29f492,_0x37d7a8=this;this[_0x3af173('0x22')]['enqueue'](function(){const _0x129260=_0x3af173;return _0x37d7a8[_0x129260('0x4')][_0x129260('0x18')](_0x366286,{'force':!![]})['then'](function(){const _0x4afcb8=_0x129260;logger[_0x4afcb8('0x1d')](_0x4afcb8('0x13'),_0x366286);})[_0x129260('0x26')](function(_0x561531){const _0x5a50b2=_0x129260;logger[_0x5a50b2('0x1d')](JSON[_0x5a50b2('0xc')](_0x561531));});});},Migration[_0x29f492('0x12')][_0x29f492('0x11')]=function(_0x4fffe2,_0x54a363,_0x42b8c7){const _0x43d8c8=_0x29f492,_0x3942b6=this;this['sequence'][_0x43d8c8('0xf')](function(){const _0x29b0df=_0x43d8c8;return _0x3942b6[_0x29b0df('0x4')][_0x29b0df('0x11')](_0x4fffe2,_0x54a363,{'indexName':_0x42b8c7[_0x29b0df('0xa')],'indicesType':_0x42b8c7[_0x29b0df('0x1a')]})[_0x29b0df('0x3')](function(){const _0x505689=_0x29b0df;logger['info']('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x4fffe2,_0x54a363[_0x505689('0x24')](','),_0x42b8c7[_0x505689('0xa')],_0x42b8c7['indicesType']);})[_0x29b0df('0x26')](function(_0x117180){const _0x355335=_0x29b0df;logger[_0x355335('0x1d')](JSON[_0x355335('0xc')](_0x117180));});});},Migration[_0x29f492('0x12')][_0x29f492('0x6')]=function(_0x3099cc,_0x3cf3f1){const _0x2697a5=_0x29f492,_0x5e616a=this;this[_0x2697a5('0x22')][_0x2697a5('0xf')](function(){const _0x3b32d4=_0x2697a5;return _0x5e616a['queryInterface'][_0x3b32d4('0x6')](_0x3099cc,_0x3cf3f1)[_0x3b32d4('0x3')](function(){const _0x2b5325=_0x3b32d4;logger['info'](_0x2b5325('0x16'),_0x3099cc,_0x3cf3f1);})[_0x3b32d4('0x26')](function(_0x3ebd5e){const _0x43c761=_0x3b32d4;logger[_0x43c761('0x1d')](JSON[_0x43c761('0xc')](_0x3ebd5e));});});},Migration['prototype']['query']=function(_0x5ec11f){const _0x3b314b=_0x29f492,_0x343956=this;this[_0x3b314b('0x22')][_0x3b314b('0xf')](function(){const _0x240fb5=_0x3b314b;return _0x343956[_0x240fb5('0x4')][_0x240fb5('0x29')]['query'](_0x5ec11f)[_0x240fb5('0x3')](function(){const _0x25de46=_0x240fb5;logger['info'](_0x25de46('0x1f'),_0x5ec11f);})[_0x240fb5('0x26')](function(_0x3c2fe4){const _0x35c884=_0x240fb5;logger['info'](JSON[_0x35c884('0xc')](_0x3c2fe4));});});},Migration[_0x29f492('0x12')]['removeColumn']=function(_0x3a9ed2,_0x5d8bea){const _0x5720ee=_0x29f492,_0x440b6f=this;this[_0x5720ee('0x22')]['enqueue'](function(){const _0x5acb49=_0x5720ee;return _0x440b6f[_0x5acb49('0x4')][_0x5acb49('0x20')](_0x3a9ed2,_0x5d8bea)['then'](function(){const _0xf91aaf=_0x5acb49;logger[_0xf91aaf('0x1d')](_0xf91aaf('0x21'),_0x5d8bea,_0x3a9ed2);})[_0x5acb49('0x26')](function(_0x349d59){const _0x840c92=_0x5acb49;logger[_0x840c92('0x1d')](util[_0x840c92('0x1')](_0x349d59,{'showHidden':![],'depth':null}));});});},Migration[_0x29f492('0x12')][_0x29f492('0x14')]=function(_0x242278,_0x40329d,_0x549231){const _0x5008bc=_0x29f492,_0xb20669=this;this[_0x5008bc('0x22')][_0x5008bc('0xf')](function(){const _0x1394eb=_0x5008bc;return _0xb20669[_0x1394eb('0x4')][_0x1394eb('0x14')](_0x242278,_0x40329d,_0x549231)['then'](function(){const _0x428d7a=_0x1394eb;logger[_0x428d7a('0x1d')](_0x428d7a('0x15'),_0x40329d,_0x549231,_0x242278);})[_0x1394eb('0x26')](function(_0x3aa03e){const _0xbb1ef6=_0x1394eb;logger[_0xbb1ef6('0x1d')](util['inspect'](_0x3aa03e,{'showHidden':![],'depth':null}));});});},Migration[_0x29f492('0x12')][_0x29f492('0x25')]=function(_0x14ad7a){const _0x40cfc4=_0x29f492;this[_0x40cfc4('0x22')][_0x40cfc4('0xf')](function(){return _0x14ad7a();});},module[_0x29f492('0xb')]={'up':function(_0x411b86,_0x4806bb){return new Promise(function(_0x3a8f70){const _0x5e208d=a1002_0x39da,_0x485437=new Migration(_0x411b86);_0x485437[_0x5e208d('0x27')]('settings',_0x5e208d('0x1e'),{'type':_0x4806bb[_0x5e208d('0x1b')],'defaultValue':0x5}),_0x485437[_0x5e208d('0x27')](_0x5e208d('0x7'),'blockDuration',{'type':_0x4806bb[_0x5e208d('0x1b')],'defaultValue':0xa}),_0x485437[_0x5e208d('0x10')](_0x5e208d('0x17')),_0x485437[_0x5e208d('0x27')](_0x5e208d('0x8'),_0x5e208d('0x5'),{'type':_0x4806bb[_0x5e208d('0x23')],'defaultValue':![]}),_0x485437['addColumn'](_0x5e208d('0x8'),_0x5e208d('0x2b'),{'type':_0x4806bb[_0x5e208d('0x1b')],'defaultValue':0x0}),_0x485437[_0x5e208d('0x27')](_0x5e208d('0x8'),_0x5e208d('0x2'),{'type':_0x4806bb[_0x5e208d('0x2c')],'defaultValue':null}),_0x485437[_0x5e208d('0x27')](_0x5e208d('0x8'),_0x5e208d('0x1c'),{'type':_0x4806bb[_0x5e208d('0x23')],'defaultValue':![]}),_0x485437['query'](_0x5e208d('0xe')),_0x485437[_0x5e208d('0x25')](_0x3a8f70);});},'down':function(){}}; \ No newline at end of file +const a1164_0x7def=['addColumn','addIndex','query\x20%s','Removed\x20column\x20%s\x20from\x20%s','exports','INTEGER','DATE','finally','removeIndex','UPDATE\x20settings\x20SET\x20allowedLoginAttempts\x20=\x200,\x20blockDuration\x20=\x200;','dropTable','disabled','removeIndex\x20%s\x20%s','indexName','info','catch','queryInterface','users','util','inspect','../config/logger','sequence','changeColumn','enqueue','blocked','stringify','query','migration','final','then','indicesType','addIndex\x20%s\x20%s\x20%s\x20[%s]','renameColumn','BOOLEAN','Changed\x20column\x20%s\x20in\x20table\x20%s','ALTER\x20TABLE\x20screen_recordings\x20ENCRYPTION=\x27Y\x27;','tail','prototype','removeColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s'];(function(_0x57f666,_0x35719f){const _0x7def63=function(_0x37b377){while(--_0x37b377){_0x57f666['push'](_0x57f666['shift']());}};_0x7def63(++_0x35719f);}(a1164_0x7def,0x12f));const a1164_0x37b3=function(_0x57f666,_0x35719f){_0x57f666=_0x57f666-0x1ee;let _0x7def63=a1164_0x7def[_0x57f666];return _0x7def63;};const a1164_0x372dd6=a1164_0x37b3;'use strict';const util=require(a1164_0x372dd6(0x211)),logger=require(a1164_0x372dd6(0x213))(a1164_0x372dd6(0x1f2)),Sequence=function(){};Sequence[a1164_0x372dd6(0x1fc)][a1164_0x372dd6(0x1ee)]=function(_0x213056){const _0x3000f0=a1164_0x372dd6;this[_0x3000f0(0x1fb)]=this['tail']?this[_0x3000f0(0x1fb)][_0x3000f0(0x206)](_0x213056):_0x213056();};const Migration=function(_0xe8d249){const _0x1c7429=a1164_0x372dd6;this[_0x1c7429(0x20f)]=_0xe8d249,this['sequence']=new Sequence();};Migration['prototype'][a1164_0x372dd6(0x215)]=function(_0x866d02,_0x5dc0c1,_0x5d8437){const _0x1ce6aa=a1164_0x372dd6,_0x2bccbc=this;this[_0x1ce6aa(0x214)][_0x1ce6aa(0x1ee)](function(){const _0x56052f=_0x1ce6aa;return _0x2bccbc[_0x56052f(0x20f)][_0x56052f(0x215)](_0x866d02,_0x5dc0c1,_0x5d8437)[_0x56052f(0x1f4)](function(){const _0x2988f6=_0x56052f;logger[_0x2988f6(0x20d)](_0x2988f6(0x1f9),_0x5dc0c1,_0x866d02);})[_0x56052f(0x20e)](function(_0x137514){const _0x112a0c=_0x56052f;logger[_0x112a0c(0x20d)](JSON['stringify'](_0x137514));});});},Migration[a1164_0x372dd6(0x1fc)][a1164_0x372dd6(0x1ff)]=function(_0x4612c4,_0x517f43,_0x51bdb8){const _0x41f12c=a1164_0x372dd6,_0x2b0b1f=this;this[_0x41f12c(0x214)][_0x41f12c(0x1ee)](function(){const _0xbac374=_0x41f12c;return _0x2b0b1f['queryInterface']['addColumn'](_0x4612c4,_0x517f43,_0x51bdb8)[_0xbac374(0x1f4)](function(){const _0x72cef9=_0xbac374;logger[_0x72cef9(0x20d)]('Added\x20column\x20%s\x20to\x20%s',_0x517f43,_0x4612c4);})[_0xbac374(0x20e)](function(_0x4b5ef5){const _0xcd18ce=_0xbac374;logger[_0xcd18ce(0x20d)](JSON[_0xcd18ce(0x1f0)](_0x4b5ef5));});});},Migration[a1164_0x372dd6(0x1fc)][a1164_0x372dd6(0x209)]=function(_0x450e6b){const _0x519951=a1164_0x372dd6,_0x144fb6=this;this[_0x519951(0x214)]['enqueue'](function(){const _0x4c8450=_0x519951;return _0x144fb6[_0x4c8450(0x20f)][_0x4c8450(0x209)](_0x450e6b,{'force':!![]})[_0x4c8450(0x1f4)](function(){logger['info']('table\x20dropped\x20%s',_0x450e6b);})['catch'](function(_0x52b7c1){const _0x53652f=_0x4c8450;logger['info'](JSON[_0x53652f(0x1f0)](_0x52b7c1));});});},Migration[a1164_0x372dd6(0x1fc)][a1164_0x372dd6(0x200)]=function(_0x3fc5f9,_0x44da8f,_0x1facbd){const _0x12e828=a1164_0x372dd6,_0x45cdfc=this;this[_0x12e828(0x214)][_0x12e828(0x1ee)](function(){const _0x55d575=_0x12e828;return _0x45cdfc[_0x55d575(0x20f)][_0x55d575(0x200)](_0x3fc5f9,_0x44da8f,{'indexName':_0x1facbd[_0x55d575(0x20c)],'indicesType':_0x1facbd[_0x55d575(0x1f5)]})[_0x55d575(0x1f4)](function(){const _0x1b932f=_0x55d575;logger[_0x1b932f(0x20d)](_0x1b932f(0x1f6),_0x3fc5f9,_0x44da8f['join'](','),_0x1facbd[_0x1b932f(0x20c)],_0x1facbd[_0x1b932f(0x1f5)]);})[_0x55d575(0x20e)](function(_0x51ac2e){const _0x483eae=_0x55d575;logger[_0x483eae(0x20d)](JSON[_0x483eae(0x1f0)](_0x51ac2e));});});},Migration[a1164_0x372dd6(0x1fc)][a1164_0x372dd6(0x207)]=function(_0x160565,_0x5bff78){const _0x4dc1a3=this;this['sequence']['enqueue'](function(){const _0x562153=a1164_0x37b3;return _0x4dc1a3[_0x562153(0x20f)][_0x562153(0x207)](_0x160565,_0x5bff78)[_0x562153(0x1f4)](function(){const _0x14df56=_0x562153;logger['info'](_0x14df56(0x20b),_0x160565,_0x5bff78);})[_0x562153(0x20e)](function(_0x525c61){const _0x1425d7=_0x562153;logger[_0x1425d7(0x20d)](JSON['stringify'](_0x525c61));});});},Migration[a1164_0x372dd6(0x1fc)][a1164_0x372dd6(0x1f1)]=function(_0x19bb9a){const _0x7a748a=a1164_0x372dd6,_0x24dbe6=this;this[_0x7a748a(0x214)][_0x7a748a(0x1ee)](function(){const _0x134845=_0x7a748a;return _0x24dbe6['queryInterface']['sequelize'][_0x134845(0x1f1)](_0x19bb9a)[_0x134845(0x1f4)](function(){const _0x158c77=_0x134845;logger[_0x158c77(0x20d)](_0x158c77(0x201),_0x19bb9a);})[_0x134845(0x20e)](function(_0x5b3e84){const _0x5b903d=_0x134845;logger[_0x5b903d(0x20d)](JSON['stringify'](_0x5b3e84));});});},Migration[a1164_0x372dd6(0x1fc)]['removeColumn']=function(_0x19cfa2,_0x2a9695){const _0x346c80=a1164_0x372dd6,_0x5f7410=this;this[_0x346c80(0x214)][_0x346c80(0x1ee)](function(){const _0xdf9795=_0x346c80;return _0x5f7410[_0xdf9795(0x20f)][_0xdf9795(0x1fd)](_0x19cfa2,_0x2a9695)[_0xdf9795(0x1f4)](function(){const _0x4a4730=_0xdf9795;logger[_0x4a4730(0x20d)](_0x4a4730(0x202),_0x2a9695,_0x19cfa2);})['catch'](function(_0x1296fb){const _0x216178=_0xdf9795;logger[_0x216178(0x20d)](util['inspect'](_0x1296fb,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1164_0x372dd6(0x1f7)]=function(_0x5d7bde,_0x428e2f,_0x20ae81){const _0x33c680=a1164_0x372dd6,_0x1f46fc=this;this['sequence'][_0x33c680(0x1ee)](function(){const _0x57d7a6=_0x33c680;return _0x1f46fc[_0x57d7a6(0x20f)][_0x57d7a6(0x1f7)](_0x5d7bde,_0x428e2f,_0x20ae81)[_0x57d7a6(0x1f4)](function(){const _0x2ac916=_0x57d7a6;logger[_0x2ac916(0x20d)](_0x2ac916(0x1fe),_0x428e2f,_0x20ae81,_0x5d7bde);})[_0x57d7a6(0x20e)](function(_0x491f51){const _0x546158=_0x57d7a6;logger[_0x546158(0x20d)](util[_0x546158(0x212)](_0x491f51,{'showHidden':![],'depth':null}));});});},Migration[a1164_0x372dd6(0x1fc)][a1164_0x372dd6(0x1f3)]=function(_0x17fc90){const _0x5ea405=a1164_0x372dd6;this[_0x5ea405(0x214)][_0x5ea405(0x1ee)](function(){return _0x17fc90();});},module[a1164_0x372dd6(0x203)]={'up':function(_0x2e7d94,_0xcbc631){return new Promise(function(_0x3ccf03){const _0x53359a=a1164_0x37b3,_0x5de77d=new Migration(_0x2e7d94);_0x5de77d[_0x53359a(0x1ff)]('settings','allowedLoginAttempts',{'type':_0xcbc631[_0x53359a(0x204)],'defaultValue':0x5}),_0x5de77d[_0x53359a(0x1ff)]('settings','blockDuration',{'type':_0xcbc631[_0x53359a(0x204)],'defaultValue':0xa}),_0x5de77d[_0x53359a(0x1f1)](_0x53359a(0x208)),_0x5de77d[_0x53359a(0x1ff)]('users',_0x53359a(0x1ef),{'type':_0xcbc631[_0x53359a(0x1f8)],'defaultValue':![]}),_0x5de77d['addColumn'](_0x53359a(0x210),'loginAttempts',{'type':_0xcbc631['INTEGER'],'defaultValue':0x0}),_0x5de77d['addColumn']('users','blockedAt',{'type':_0xcbc631[_0x53359a(0x205)],'defaultValue':null}),_0x5de77d[_0x53359a(0x1ff)]('users',_0x53359a(0x20a),{'type':_0xcbc631[_0x53359a(0x1f8)],'defaultValue':![]}),_0x5de77d[_0x53359a(0x1f1)](_0x53359a(0x1fa)),_0x5de77d[_0x53359a(0x1f3)](_0x3ccf03);});},'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 59e4663..eaa4380 100644 --- a/server/migrations/2.4.20.js +++ b/server/migrations/2.4.20.js @@ -1 +1 @@ -const a1003_0x78e9=['stringify','UPDATE\x20settings\x20SET\x20googleSsoEnabled\x20=\x201','dropTable','renameColumn','table\x20dropped\x20%s','addColumn','then','query','removeIndex\x20%s\x20%s','enqueue','addIndex','inspect','addIndex\x20%s\x20%s\x20%s\x20[%s]','catch','info','final','changeColumn','tail','Added\x20column\x20%s\x20to\x20%s','query\x20%s','migration','exports','prototype','removeColumn','queryInterface','BOOLEAN','../config/logger','join','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','indexName','sequelize','Removed\x20column\x20%s\x20from\x20%s','removeIndex','settings','indicesType','sequence'];(function(_0x5f3781,_0x78e98d){const _0x2118be=function(_0x31b329){while(--_0x31b329){_0x5f3781['push'](_0x5f3781['shift']());}};_0x2118be(++_0x78e98d);}(a1003_0x78e9,0x167));const a1003_0x2118=function(_0x5f3781,_0x78e98d){_0x5f3781=_0x5f3781-0x0;let _0x2118be=a1003_0x78e9[_0x5f3781];return _0x2118be;};const _0x3015c0=a1003_0x2118;'use strict';const util=require('util'),logger=require(_0x3015c0('0x1b'))(_0x3015c0('0x15')),Sequence=function(){};Sequence[_0x3015c0('0x17')][_0x3015c0('0xa')]=function(_0x31b329){const _0x41f64d=_0x3015c0;this['tail']=this[_0x41f64d('0x12')]?this[_0x41f64d('0x12')]['finally'](_0x31b329):_0x31b329();};const Migration=function(_0x3f6288){const _0x21f24e=_0x3015c0;this['queryInterface']=_0x3f6288,this[_0x21f24e('0x0')]=new Sequence();};Migration[_0x3015c0('0x17')][_0x3015c0('0x11')]=function(_0x5aeeab,_0x3ea10c,_0x2276f0){const _0x512540=_0x3015c0,_0x5caa34=this;this[_0x512540('0x0')]['enqueue'](function(){const _0x1ed4e0=_0x512540;return _0x5caa34[_0x1ed4e0('0x19')][_0x1ed4e0('0x11')](_0x5aeeab,_0x3ea10c,_0x2276f0)['then'](function(){const _0x5473d7=_0x1ed4e0;logger[_0x5473d7('0xf')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x3ea10c,_0x5aeeab);})[_0x1ed4e0('0xe')](function(_0x31fc28){const _0x58e4ef=_0x1ed4e0;logger['info'](JSON[_0x58e4ef('0x1')](_0x31fc28));});});},Migration[_0x3015c0('0x17')][_0x3015c0('0x6')]=function(_0x366e82,_0x19cfff,_0x309ff6){const _0x11f937=_0x3015c0,_0x45844a=this;this[_0x11f937('0x0')][_0x11f937('0xa')](function(){const _0x9d1b46=_0x11f937;return _0x45844a[_0x9d1b46('0x19')]['addColumn'](_0x366e82,_0x19cfff,_0x309ff6)[_0x9d1b46('0x7')](function(){const _0x2e10fc=_0x9d1b46;logger['info'](_0x2e10fc('0x13'),_0x19cfff,_0x366e82);})[_0x9d1b46('0xe')](function(_0x1414a9){const _0x238ffa=_0x9d1b46;logger['info'](JSON[_0x238ffa('0x1')](_0x1414a9));});});},Migration['prototype'][_0x3015c0('0x3')]=function(_0x2a9b1c){const _0x3c44f9=_0x3015c0,_0x53f29d=this;this[_0x3c44f9('0x0')][_0x3c44f9('0xa')](function(){const _0x183d4a=_0x3c44f9;return _0x53f29d[_0x183d4a('0x19')]['dropTable'](_0x2a9b1c,{'force':!![]})[_0x183d4a('0x7')](function(){const _0x247644=_0x183d4a;logger[_0x247644('0xf')](_0x247644('0x5'),_0x2a9b1c);})[_0x183d4a('0xe')](function(_0x52cebe){const _0x12ef61=_0x183d4a;logger[_0x12ef61('0xf')](JSON[_0x12ef61('0x1')](_0x52cebe));});});},Migration['prototype'][_0x3015c0('0xb')]=function(_0x503775,_0x19f2f1,_0x367bb4){const _0x1e58e2=_0x3015c0,_0x423bf2=this;this[_0x1e58e2('0x0')]['enqueue'](function(){const _0x146f8a=_0x1e58e2;return _0x423bf2[_0x146f8a('0x19')][_0x146f8a('0xb')](_0x503775,_0x19f2f1,{'indexName':_0x367bb4[_0x146f8a('0x1e')],'indicesType':_0x367bb4[_0x146f8a('0x23')]})['then'](function(){const _0x4e7863=_0x146f8a;logger[_0x4e7863('0xf')](_0x4e7863('0xd'),_0x503775,_0x19f2f1[_0x4e7863('0x1c')](','),_0x367bb4[_0x4e7863('0x1e')],_0x367bb4[_0x4e7863('0x23')]);})['catch'](function(_0x3b0486){const _0x2b6d68=_0x146f8a;logger[_0x2b6d68('0xf')](JSON[_0x2b6d68('0x1')](_0x3b0486));});});},Migration[_0x3015c0('0x17')]['removeIndex']=function(_0x16b36c,_0x5549b0){const _0x28fec0=_0x3015c0,_0x2ad2ff=this;this['sequence'][_0x28fec0('0xa')](function(){const _0x5b59c6=_0x28fec0;return _0x2ad2ff[_0x5b59c6('0x19')][_0x5b59c6('0x21')](_0x16b36c,_0x5549b0)[_0x5b59c6('0x7')](function(){const _0x49938c=_0x5b59c6;logger[_0x49938c('0xf')](_0x49938c('0x9'),_0x16b36c,_0x5549b0);})[_0x5b59c6('0xe')](function(_0x37f6b1){const _0x23b718=_0x5b59c6;logger['info'](JSON[_0x23b718('0x1')](_0x37f6b1));});});},Migration['prototype']['query']=function(_0x5e5f74){const _0x4b5f53=_0x3015c0,_0x38f25d=this;this[_0x4b5f53('0x0')][_0x4b5f53('0xa')](function(){const _0x5d94bf=_0x4b5f53;return _0x38f25d[_0x5d94bf('0x19')][_0x5d94bf('0x1f')][_0x5d94bf('0x8')](_0x5e5f74)[_0x5d94bf('0x7')](function(){const _0x2610ff=_0x5d94bf;logger[_0x2610ff('0xf')](_0x2610ff('0x14'),_0x5e5f74);})[_0x5d94bf('0xe')](function(_0x4ffd2a){const _0x75babc=_0x5d94bf;logger[_0x75babc('0xf')](JSON[_0x75babc('0x1')](_0x4ffd2a));});});},Migration[_0x3015c0('0x17')][_0x3015c0('0x18')]=function(_0x2041f7,_0x5360c5){const _0x504dbd=_0x3015c0,_0x350d72=this;this[_0x504dbd('0x0')]['enqueue'](function(){const _0x5b2b43=_0x504dbd;return _0x350d72[_0x5b2b43('0x19')][_0x5b2b43('0x18')](_0x2041f7,_0x5360c5)[_0x5b2b43('0x7')](function(){const _0x3b01fc=_0x5b2b43;logger['info'](_0x3b01fc('0x20'),_0x5360c5,_0x2041f7);})[_0x5b2b43('0xe')](function(_0x5b3e89){const _0x326922=_0x5b2b43;logger['info'](util[_0x326922('0xc')](_0x5b3e89,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x3015c0('0x4')]=function(_0x516271,_0x33aff2,_0x53df1c){const _0x1bad34=this;this['sequence']['enqueue'](function(){return _0x1bad34['queryInterface']['renameColumn'](_0x516271,_0x33aff2,_0x53df1c)['then'](function(){const _0x54cd65=a1003_0x2118;logger[_0x54cd65('0xf')](_0x54cd65('0x1d'),_0x33aff2,_0x53df1c,_0x516271);})['catch'](function(_0x2d6ea7){const _0x1f13e5=a1003_0x2118;logger[_0x1f13e5('0xf')](util['inspect'](_0x2d6ea7,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x3015c0('0x10')]=function(_0x33676e){const _0xa3815c=_0x3015c0;this[_0xa3815c('0x0')][_0xa3815c('0xa')](function(){return _0x33676e();});},module[_0x3015c0('0x16')]={'up':function(_0x31e87b,_0x2ce61d){return new Promise(function(_0x3c9e18){const _0x23632b=a1003_0x2118,_0x1faa02=new Migration(_0x31e87b);_0x1faa02['addColumn'](_0x23632b('0x22'),'googleSsoEnabled',{'type':_0x2ce61d[_0x23632b('0x1a')],'defaultValue':![]}),_0x1faa02['query'](_0x23632b('0x2')),_0x1faa02[_0x23632b('0x10')](_0x3c9e18);});},'down':function(){}}; \ No newline at end of file +const a1165_0x3c98=['stringify','util','dropTable','addIndex','removeIndex','sequence','removeIndex\x20%s\x20%s','query\x20%s','sequelize','changeColumn','exports','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','final','UPDATE\x20settings\x20SET\x20googleSsoEnabled\x20=\x201','migration','indicesType','addColumn','../config/logger','Added\x20column\x20%s\x20to\x20%s','renameColumn','inspect','indexName','removeColumn','prototype','info','enqueue','tail','join','BOOLEAN','catch','then','settings','queryInterface','googleSsoEnabled','Changed\x20column\x20%s\x20in\x20table\x20%s'];(function(_0x14fbd5,_0x5e907d){const _0x3c9827=function(_0x384960){while(--_0x384960){_0x14fbd5['push'](_0x14fbd5['shift']());}};_0x3c9827(++_0x5e907d);}(a1165_0x3c98,0x1d3));const a1165_0x3849=function(_0x14fbd5,_0x5e907d){_0x14fbd5=_0x14fbd5-0x1dc;let _0x3c9827=a1165_0x3c98[_0x14fbd5];return _0x3c9827;};const a1165_0x25d75f=a1165_0x3849;'use strict';const util=require(a1165_0x25d75f(0x1f4)),logger=require(a1165_0x25d75f(0x1e1))(a1165_0x25d75f(0x1de)),Sequence=function(){};Sequence[a1165_0x25d75f(0x1e7)]['enqueue']=function(_0x49b4c6){const _0x5268e9=a1165_0x25d75f;this[_0x5268e9(0x1ea)]=this['tail']?this[_0x5268e9(0x1ea)]['finally'](_0x49b4c6):_0x49b4c6();};const Migration=function(_0x2bc0f4){const _0x56fad4=a1165_0x25d75f;this[_0x56fad4(0x1f0)]=_0x2bc0f4,this[_0x56fad4(0x1f8)]=new Sequence();};Migration[a1165_0x25d75f(0x1e7)][a1165_0x25d75f(0x1fc)]=function(_0x3ca05a,_0x7f3e9c,_0x4ec134){const _0x2b7503=a1165_0x25d75f,_0x31c10a=this;this[_0x2b7503(0x1f8)][_0x2b7503(0x1e9)](function(){const _0x2b1dca=_0x2b7503;return _0x31c10a[_0x2b1dca(0x1f0)][_0x2b1dca(0x1fc)](_0x3ca05a,_0x7f3e9c,_0x4ec134)['then'](function(){const _0x333ad9=_0x2b1dca;logger[_0x333ad9(0x1e8)](_0x333ad9(0x1f2),_0x7f3e9c,_0x3ca05a);})[_0x2b1dca(0x1ed)](function(_0x5dd965){const _0x3de8da=_0x2b1dca;logger['info'](JSON[_0x3de8da(0x1f3)](_0x5dd965));});});},Migration['prototype'][a1165_0x25d75f(0x1e0)]=function(_0xde32d0,_0x3ac707,_0x95befd){const _0x6b4778=a1165_0x25d75f,_0x3c8197=this;this['sequence'][_0x6b4778(0x1e9)](function(){const _0x33e159=_0x6b4778;return _0x3c8197[_0x33e159(0x1f0)]['addColumn'](_0xde32d0,_0x3ac707,_0x95befd)['then'](function(){const _0x124010=_0x33e159;logger[_0x124010(0x1e8)](_0x124010(0x1e2),_0x3ac707,_0xde32d0);})[_0x33e159(0x1ed)](function(_0x9cb839){const _0x2f39b4=_0x33e159;logger['info'](JSON[_0x2f39b4(0x1f3)](_0x9cb839));});});},Migration[a1165_0x25d75f(0x1e7)]['dropTable']=function(_0x2774ee){const _0x1da250=a1165_0x25d75f,_0x24522e=this;this[_0x1da250(0x1f8)]['enqueue'](function(){const _0x28ac74=_0x1da250;return _0x24522e[_0x28ac74(0x1f0)][_0x28ac74(0x1f5)](_0x2774ee,{'force':!![]})['then'](function(){logger['info']('table\x20dropped\x20%s',_0x2774ee);})[_0x28ac74(0x1ed)](function(_0x5c66c7){const _0x4f8613=_0x28ac74;logger[_0x4f8613(0x1e8)](JSON[_0x4f8613(0x1f3)](_0x5c66c7));});});},Migration[a1165_0x25d75f(0x1e7)][a1165_0x25d75f(0x1f6)]=function(_0x54b97a,_0x5bb32f,_0x1f5ec5){const _0x3bccb9=a1165_0x25d75f,_0x377dac=this;this[_0x3bccb9(0x1f8)][_0x3bccb9(0x1e9)](function(){const _0x58cecc=_0x3bccb9;return _0x377dac[_0x58cecc(0x1f0)][_0x58cecc(0x1f6)](_0x54b97a,_0x5bb32f,{'indexName':_0x1f5ec5[_0x58cecc(0x1e5)],'indicesType':_0x1f5ec5[_0x58cecc(0x1df)]})[_0x58cecc(0x1ee)](function(){const _0xe15f65=_0x58cecc;logger[_0xe15f65(0x1e8)]('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x54b97a,_0x5bb32f[_0xe15f65(0x1eb)](','),_0x1f5ec5['indexName'],_0x1f5ec5[_0xe15f65(0x1df)]);})[_0x58cecc(0x1ed)](function(_0x6a0ff3){const _0x2ce41d=_0x58cecc;logger[_0x2ce41d(0x1e8)](JSON[_0x2ce41d(0x1f3)](_0x6a0ff3));});});},Migration['prototype']['removeIndex']=function(_0x196bc1,_0x1cb87b){const _0x3be058=a1165_0x25d75f,_0x2262df=this;this[_0x3be058(0x1f8)][_0x3be058(0x1e9)](function(){const _0x580b2a=_0x3be058;return _0x2262df[_0x580b2a(0x1f0)][_0x580b2a(0x1f7)](_0x196bc1,_0x1cb87b)[_0x580b2a(0x1ee)](function(){const _0x4e6f13=_0x580b2a;logger[_0x4e6f13(0x1e8)](_0x4e6f13(0x1f9),_0x196bc1,_0x1cb87b);})[_0x580b2a(0x1ed)](function(_0x3f26e9){const _0x4ef414=_0x580b2a;logger[_0x4ef414(0x1e8)](JSON['stringify'](_0x3f26e9));});});},Migration[a1165_0x25d75f(0x1e7)]['query']=function(_0x205ef3){const _0x44e89b=a1165_0x25d75f,_0x1f7933=this;this[_0x44e89b(0x1f8)][_0x44e89b(0x1e9)](function(){const _0x41910c=_0x44e89b;return _0x1f7933[_0x41910c(0x1f0)][_0x41910c(0x1fb)]['query'](_0x205ef3)[_0x41910c(0x1ee)](function(){const _0xce3c99=_0x41910c;logger[_0xce3c99(0x1e8)](_0xce3c99(0x1fa),_0x205ef3);})[_0x41910c(0x1ed)](function(_0x41dca3){logger['info'](JSON['stringify'](_0x41dca3));});});},Migration[a1165_0x25d75f(0x1e7)]['removeColumn']=function(_0x34f312,_0x1a85d4){const _0x493250=this;this['sequence']['enqueue'](function(){const _0x13f940=a1165_0x3849;return _0x493250['queryInterface'][_0x13f940(0x1e6)](_0x34f312,_0x1a85d4)[_0x13f940(0x1ee)](function(){const _0x346d22=_0x13f940;logger[_0x346d22(0x1e8)]('Removed\x20column\x20%s\x20from\x20%s',_0x1a85d4,_0x34f312);})[_0x13f940(0x1ed)](function(_0x1aef9b){const _0xb07916=_0x13f940;logger[_0xb07916(0x1e8)](util[_0xb07916(0x1e4)](_0x1aef9b,{'showHidden':![],'depth':null}));});});},Migration[a1165_0x25d75f(0x1e7)][a1165_0x25d75f(0x1e3)]=function(_0x144208,_0x4d68c7,_0x3df4bd){const _0x13a09f=a1165_0x25d75f,_0x31d394=this;this[_0x13a09f(0x1f8)]['enqueue'](function(){const _0x4ba77c=_0x13a09f;return _0x31d394[_0x4ba77c(0x1f0)][_0x4ba77c(0x1e3)](_0x144208,_0x4d68c7,_0x3df4bd)['then'](function(){const _0x328c1c=_0x4ba77c;logger[_0x328c1c(0x1e8)](_0x328c1c(0x1fe),_0x4d68c7,_0x3df4bd,_0x144208);})[_0x4ba77c(0x1ed)](function(_0x67fe54){const _0x1c361e=_0x4ba77c;logger['info'](util[_0x1c361e(0x1e4)](_0x67fe54,{'showHidden':![],'depth':null}));});});},Migration[a1165_0x25d75f(0x1e7)][a1165_0x25d75f(0x1dc)]=function(_0xb3cc2c){const _0x113e9b=a1165_0x25d75f;this['sequence'][_0x113e9b(0x1e9)](function(){return _0xb3cc2c();});},module[a1165_0x25d75f(0x1fd)]={'up':function(_0x1c2849,_0x467efd){return new Promise(function(_0x2594af){const _0x4f94ce=a1165_0x3849,_0x3351d7=new Migration(_0x1c2849);_0x3351d7[_0x4f94ce(0x1e0)](_0x4f94ce(0x1ef),_0x4f94ce(0x1f1),{'type':_0x467efd[_0x4f94ce(0x1ec)],'defaultValue':![]}),_0x3351d7['query'](_0x4f94ce(0x1dd)),_0x3351d7[_0x4f94ce(0x1dc)](_0x2594af);});},'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 d5d0813..d95867f 100644 --- a/server/migrations/2.4.21.js +++ b/server/migrations/2.4.21.js @@ -1 +1 @@ -const a1004_0x12db=['sequence','exports','indicesType','info','finally','tail','query','queryInterface','join','removeColumn','changeColumn','../config/logger','catch','Added\x20column\x20%s\x20to\x20%s','prototype','inspect','migration','final','removeIndex','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','dropTable','Changed\x20column\x20%s\x20in\x20table\x20%s','removeIndex\x20%s\x20%s','util','stringify','addColumn','enqueue','query\x20%s','then','renameColumn','addIndex'];(function(_0x1a1765,_0x12db46){const _0x54e989=function(_0x168631){while(--_0x168631){_0x1a1765['push'](_0x1a1765['shift']());}};_0x54e989(++_0x12db46);}(a1004_0x12db,0xef));const a1004_0x54e9=function(_0x1a1765,_0x12db46){_0x1a1765=_0x1a1765-0x0;let _0x54e989=a1004_0x12db[_0x1a1765];return _0x54e989;};const _0x52ba7f=a1004_0x54e9;'use strict';const util=require(_0x52ba7f('0x1')),logger=require(_0x52ba7f('0x14'))(_0x52ba7f('0x19')),Sequence=function(){};Sequence[_0x52ba7f('0x17')][_0x52ba7f('0x4')]=function(_0x168631){const _0x10718d=_0x52ba7f;this[_0x10718d('0xe')]=this['tail']?this[_0x10718d('0xe')][_0x10718d('0xd')](_0x168631):_0x168631();};const Migration=function(_0x3a9b95){const _0x38d714=_0x52ba7f;this['queryInterface']=_0x3a9b95,this[_0x38d714('0x9')]=new Sequence();};Migration[_0x52ba7f('0x17')][_0x52ba7f('0x13')]=function(_0x29ed9a,_0x22bbe7,_0x2e7d06){const _0x458d93=_0x52ba7f,_0x49bd8a=this;this[_0x458d93('0x9')][_0x458d93('0x4')](function(){const _0x3bba1e=_0x458d93;return _0x49bd8a[_0x3bba1e('0x10')][_0x3bba1e('0x13')](_0x29ed9a,_0x22bbe7,_0x2e7d06)['then'](function(){const _0x50e07a=_0x3bba1e;logger[_0x50e07a('0xc')](_0x50e07a('0x1e'),_0x22bbe7,_0x29ed9a);})[_0x3bba1e('0x15')](function(_0x1055fa){logger['info'](JSON['stringify'](_0x1055fa));});});},Migration[_0x52ba7f('0x17')]['addColumn']=function(_0xb137e8,_0x157b9e,_0x5bac5e){const _0x401c63=_0x52ba7f,_0x1e523a=this;this['sequence'][_0x401c63('0x4')](function(){const _0x3f5877=_0x401c63;return _0x1e523a['queryInterface'][_0x3f5877('0x3')](_0xb137e8,_0x157b9e,_0x5bac5e)[_0x3f5877('0x6')](function(){const _0x318715=_0x3f5877;logger[_0x318715('0xc')](_0x318715('0x16'),_0x157b9e,_0xb137e8);})[_0x3f5877('0x15')](function(_0x1e0763){const _0x13db11=_0x3f5877;logger[_0x13db11('0xc')](JSON[_0x13db11('0x2')](_0x1e0763));});});},Migration[_0x52ba7f('0x17')][_0x52ba7f('0x1d')]=function(_0x2a6421){const _0x2bd553=_0x52ba7f,_0x97909e=this;this[_0x2bd553('0x9')][_0x2bd553('0x4')](function(){const _0x7fd0b2=_0x2bd553;return _0x97909e['queryInterface'][_0x7fd0b2('0x1d')](_0x2a6421,{'force':!![]})[_0x7fd0b2('0x6')](function(){const _0x494c00=_0x7fd0b2;logger[_0x494c00('0xc')]('table\x20dropped\x20%s',_0x2a6421);})[_0x7fd0b2('0x15')](function(_0x351454){const _0x101c0d=_0x7fd0b2;logger[_0x101c0d('0xc')](JSON[_0x101c0d('0x2')](_0x351454));});});},Migration[_0x52ba7f('0x17')][_0x52ba7f('0x8')]=function(_0x53e9bf,_0x295fa1,_0xf877c3){const _0x1b03ed=this;this['sequence']['enqueue'](function(){const _0x25f9aa=a1004_0x54e9;return _0x1b03ed[_0x25f9aa('0x10')][_0x25f9aa('0x8')](_0x53e9bf,_0x295fa1,{'indexName':_0xf877c3['indexName'],'indicesType':_0xf877c3[_0x25f9aa('0xb')]})[_0x25f9aa('0x6')](function(){const _0x2854b0=_0x25f9aa;logger[_0x2854b0('0xc')]('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x53e9bf,_0x295fa1[_0x2854b0('0x11')](','),_0xf877c3['indexName'],_0xf877c3[_0x2854b0('0xb')]);})[_0x25f9aa('0x15')](function(_0x5baf91){const _0x20f519=_0x25f9aa;logger['info'](JSON[_0x20f519('0x2')](_0x5baf91));});});},Migration[_0x52ba7f('0x17')][_0x52ba7f('0x1b')]=function(_0xdcbe5d,_0x1ec606){const _0x19c7c2=_0x52ba7f,_0xb09d47=this;this['sequence'][_0x19c7c2('0x4')](function(){const _0x5f38a3=_0x19c7c2;return _0xb09d47[_0x5f38a3('0x10')]['removeIndex'](_0xdcbe5d,_0x1ec606)['then'](function(){const _0x31d0ab=_0x5f38a3;logger[_0x31d0ab('0xc')](_0x31d0ab('0x0'),_0xdcbe5d,_0x1ec606);})[_0x5f38a3('0x15')](function(_0x352aa0){const _0x4eb9c2=_0x5f38a3;logger[_0x4eb9c2('0xc')](JSON[_0x4eb9c2('0x2')](_0x352aa0));});});},Migration[_0x52ba7f('0x17')][_0x52ba7f('0xf')]=function(_0x3c0f5b){const _0x1c0ef7=_0x52ba7f,_0x269bf5=this;this[_0x1c0ef7('0x9')][_0x1c0ef7('0x4')](function(){const _0x219f82=_0x1c0ef7;return _0x269bf5[_0x219f82('0x10')]['sequelize']['query'](_0x3c0f5b)[_0x219f82('0x6')](function(){const _0x5d0f14=_0x219f82;logger[_0x5d0f14('0xc')](_0x5d0f14('0x5'),_0x3c0f5b);})[_0x219f82('0x15')](function(_0x39383b){logger['info'](JSON['stringify'](_0x39383b));});});},Migration['prototype'][_0x52ba7f('0x12')]=function(_0x10c392,_0x2c309a){const _0x4d2839=_0x52ba7f,_0xe2d7e2=this;this[_0x4d2839('0x9')][_0x4d2839('0x4')](function(){const _0xd2fc8c=_0x4d2839;return _0xe2d7e2[_0xd2fc8c('0x10')][_0xd2fc8c('0x12')](_0x10c392,_0x2c309a)[_0xd2fc8c('0x6')](function(){const _0x440ad6=_0xd2fc8c;logger[_0x440ad6('0xc')]('Removed\x20column\x20%s\x20from\x20%s',_0x2c309a,_0x10c392);})[_0xd2fc8c('0x15')](function(_0x2b0e9c){const _0x4618bf=_0xd2fc8c;logger[_0x4618bf('0xc')](util[_0x4618bf('0x18')](_0x2b0e9c,{'showHidden':![],'depth':null}));});});},Migration[_0x52ba7f('0x17')][_0x52ba7f('0x7')]=function(_0x274c9b,_0x431aad,_0x5d4fc3){const _0x229848=_0x52ba7f,_0x5a94d1=this;this[_0x229848('0x9')][_0x229848('0x4')](function(){const _0x38eee5=_0x229848;return _0x5a94d1[_0x38eee5('0x10')][_0x38eee5('0x7')](_0x274c9b,_0x431aad,_0x5d4fc3)['then'](function(){const _0x38685c=_0x38eee5;logger['info'](_0x38685c('0x1c'),_0x431aad,_0x5d4fc3,_0x274c9b);})['catch'](function(_0xa4985){const _0x11d2ce=_0x38eee5;logger['info'](util[_0x11d2ce('0x18')](_0xa4985,{'showHidden':![],'depth':null}));});});},Migration[_0x52ba7f('0x17')]['final']=function(_0x459ae7){const _0x4d0327=_0x52ba7f;this['sequence'][_0x4d0327('0x4')](function(){return _0x459ae7();});},module[_0x52ba7f('0xa')]={'up':function(_0x413a82){return new Promise(function(_0xa9c892){const _0x1ebad3=a1004_0x54e9,_0x2c7712=new Migration(_0x413a82);_0x2c7712[_0x1ebad3('0x1a')](_0xa9c892);});},'down':function(){}}; \ No newline at end of file +const a1166_0x5662=['migration','info','prototype','Changed\x20column\x20%s\x20in\x20table\x20%s','finally','then','inspect','removeIndex','tail','sequence','dropTable','queryInterface','changeColumn','util','indexName','exports','indicesType','enqueue','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','Added\x20column\x20%s\x20to\x20%s','query','final','join','addColumn','renameColumn','table\x20dropped\x20%s','catch','stringify','removeColumn','../config/logger','removeIndex\x20%s\x20%s'];(function(_0x4d3281,_0x2c991d){const _0x5662bb=function(_0x27cf68){while(--_0x27cf68){_0x4d3281['push'](_0x4d3281['shift']());}};_0x5662bb(++_0x2c991d);}(a1166_0x5662,0x1e3));const a1166_0x27cf=function(_0x4d3281,_0x2c991d){_0x4d3281=_0x4d3281-0x9b;let _0x5662bb=a1166_0x5662[_0x4d3281];return _0x5662bb;};const a1166_0x42e3a0=a1166_0x27cf;'use strict';const util=require(a1166_0x42e3a0(0xb5)),logger=require(a1166_0x42e3a0(0xa6))(a1166_0x42e3a0(0xa8)),Sequence=function(){};Sequence[a1166_0x42e3a0(0xaa)][a1166_0x42e3a0(0xb9)]=function(_0x72ef14){const _0x54455e=a1166_0x42e3a0;this[_0x54455e(0xb0)]=this[_0x54455e(0xb0)]?this[_0x54455e(0xb0)][_0x54455e(0xac)](_0x72ef14):_0x72ef14();};const Migration=function(_0x465619){const _0x29fe0a=a1166_0x42e3a0;this[_0x29fe0a(0xb3)]=_0x465619,this['sequence']=new Sequence();};Migration[a1166_0x42e3a0(0xaa)]['changeColumn']=function(_0x2119f1,_0x1f8afb,_0x1b711c){const _0xc41a63=a1166_0x42e3a0,_0x51ddba=this;this['sequence'][_0xc41a63(0xb9)](function(){const _0x49a0e7=_0xc41a63;return _0x51ddba[_0x49a0e7(0xb3)][_0x49a0e7(0xb4)](_0x2119f1,_0x1f8afb,_0x1b711c)[_0x49a0e7(0xad)](function(){const _0x41b839=_0x49a0e7;logger[_0x41b839(0xa9)](_0x41b839(0xab),_0x1f8afb,_0x2119f1);})[_0x49a0e7(0xa3)](function(_0x16e7c2){const _0x5ed4cb=_0x49a0e7;logger['info'](JSON[_0x5ed4cb(0xa4)](_0x16e7c2));});});},Migration[a1166_0x42e3a0(0xaa)]['addColumn']=function(_0x2abad0,_0xd90b64,_0x124033){const _0x29d1c4=a1166_0x42e3a0,_0x164742=this;this['sequence'][_0x29d1c4(0xb9)](function(){const _0x4bb1a2=_0x29d1c4;return _0x164742[_0x4bb1a2(0xb3)][_0x4bb1a2(0xa0)](_0x2abad0,_0xd90b64,_0x124033)['then'](function(){const _0x2cbdcf=_0x4bb1a2;logger['info'](_0x2cbdcf(0x9c),_0xd90b64,_0x2abad0);})[_0x4bb1a2(0xa3)](function(_0x3d9f94){logger['info'](JSON['stringify'](_0x3d9f94));});});},Migration[a1166_0x42e3a0(0xaa)][a1166_0x42e3a0(0xb2)]=function(_0x44e90e){const _0x3893d4=a1166_0x42e3a0,_0x6e09c0=this;this[_0x3893d4(0xb1)][_0x3893d4(0xb9)](function(){const _0x966d6f=_0x3893d4;return _0x6e09c0[_0x966d6f(0xb3)][_0x966d6f(0xb2)](_0x44e90e,{'force':!![]})['then'](function(){const _0x5ef705=_0x966d6f;logger[_0x5ef705(0xa9)](_0x5ef705(0xa2),_0x44e90e);})['catch'](function(_0x477e7f){const _0xbb6191=_0x966d6f;logger[_0xbb6191(0xa9)](JSON[_0xbb6191(0xa4)](_0x477e7f));});});},Migration[a1166_0x42e3a0(0xaa)]['addIndex']=function(_0x5d6e3,_0x513cd5,_0x308950){const _0x25d6a2=a1166_0x42e3a0,_0x13e9d5=this;this[_0x25d6a2(0xb1)]['enqueue'](function(){const _0x470f61=_0x25d6a2;return _0x13e9d5[_0x470f61(0xb3)]['addIndex'](_0x5d6e3,_0x513cd5,{'indexName':_0x308950[_0x470f61(0xb6)],'indicesType':_0x308950[_0x470f61(0xb8)]})[_0x470f61(0xad)](function(){const _0x274210=_0x470f61;logger['info']('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x5d6e3,_0x513cd5[_0x274210(0x9f)](','),_0x308950['indexName'],_0x308950[_0x274210(0xb8)]);})[_0x470f61(0xa3)](function(_0x2ad90e){const _0xc8e3cb=_0x470f61;logger[_0xc8e3cb(0xa9)](JSON['stringify'](_0x2ad90e));});});},Migration[a1166_0x42e3a0(0xaa)][a1166_0x42e3a0(0xaf)]=function(_0x396efa,_0x362441){const _0x4f34ef=a1166_0x42e3a0,_0x47b2f9=this;this[_0x4f34ef(0xb1)]['enqueue'](function(){const _0x2e4b32=_0x4f34ef;return _0x47b2f9['queryInterface'][_0x2e4b32(0xaf)](_0x396efa,_0x362441)[_0x2e4b32(0xad)](function(){const _0x811504=_0x2e4b32;logger[_0x811504(0xa9)](_0x811504(0xa7),_0x396efa,_0x362441);})['catch'](function(_0x19c5c2){logger['info'](JSON['stringify'](_0x19c5c2));});});},Migration[a1166_0x42e3a0(0xaa)][a1166_0x42e3a0(0x9d)]=function(_0x434555){const _0x30463a=a1166_0x42e3a0,_0x49f5d0=this;this['sequence'][_0x30463a(0xb9)](function(){const _0xc8ac32=_0x30463a;return _0x49f5d0['queryInterface']['sequelize'][_0xc8ac32(0x9d)](_0x434555)[_0xc8ac32(0xad)](function(){const _0x3e528f=_0xc8ac32;logger[_0x3e528f(0xa9)]('query\x20%s',_0x434555);})['catch'](function(_0x2a8552){const _0x465496=_0xc8ac32;logger[_0x465496(0xa9)](JSON[_0x465496(0xa4)](_0x2a8552));});});},Migration[a1166_0x42e3a0(0xaa)][a1166_0x42e3a0(0xa5)]=function(_0x4045e4,_0x46053c){const _0x174fcb=a1166_0x42e3a0,_0x2b52ee=this;this[_0x174fcb(0xb1)][_0x174fcb(0xb9)](function(){const _0x53a5c2=_0x174fcb;return _0x2b52ee[_0x53a5c2(0xb3)][_0x53a5c2(0xa5)](_0x4045e4,_0x46053c)[_0x53a5c2(0xad)](function(){const _0x48939e=_0x53a5c2;logger[_0x48939e(0xa9)]('Removed\x20column\x20%s\x20from\x20%s',_0x46053c,_0x4045e4);})[_0x53a5c2(0xa3)](function(_0x4b2036){const _0x5a10d6=_0x53a5c2;logger[_0x5a10d6(0xa9)](util[_0x5a10d6(0xae)](_0x4b2036,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1166_0x42e3a0(0xa1)]=function(_0x54a26e,_0x3ef8c7,_0x5a7621){const _0x8a3766=a1166_0x42e3a0,_0x4de4a1=this;this[_0x8a3766(0xb1)][_0x8a3766(0xb9)](function(){const _0x380f24=_0x8a3766;return _0x4de4a1[_0x380f24(0xb3)][_0x380f24(0xa1)](_0x54a26e,_0x3ef8c7,_0x5a7621)[_0x380f24(0xad)](function(){const _0x18cdc8=_0x380f24;logger['info'](_0x18cdc8(0x9b),_0x3ef8c7,_0x5a7621,_0x54a26e);})[_0x380f24(0xa3)](function(_0x33c6d5){const _0x15c4ad=_0x380f24;logger[_0x15c4ad(0xa9)](util[_0x15c4ad(0xae)](_0x33c6d5,{'showHidden':![],'depth':null}));});});},Migration['prototype']['final']=function(_0x425432){const _0x1b9166=a1166_0x42e3a0;this[_0x1b9166(0xb1)][_0x1b9166(0xb9)](function(){return _0x425432();});},module[a1166_0x42e3a0(0xb7)]={'up':function(_0xba745c){return new Promise(function(_0x436ea9){const _0x3baa48=a1166_0x27cf,_0x3578e7=new Migration(_0xba745c);_0x3578e7[_0x3baa48(0x9e)](_0x436ea9);});},'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 93fbed1..ff27eb6 100644 --- a/server/migrations/2.4.3.js +++ b/server/migrations/2.4.3.js @@ -1 +1 @@ -const a1005_0x1167=['Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','queryInterface','enqueue','dropTable','tail','then','table\x20dropped\x20%s','../config/logger','stringify','query','final','addIndex','prototype','sequelize','indexName','catch','Changed\x20column\x20%s\x20in\x20table\x20%s','inspect','changeColumn','removeColumn','info','removeIndex\x20%s\x20%s','removeIndex','renameColumn','exports','addColumn','migration','sequence','Added\x20column\x20%s\x20to\x20%s','Removed\x20column\x20%s\x20from\x20%s','query\x20%s','indicesType'];(function(_0x421782,_0x116738){const _0x5048b0=function(_0x380c19){while(--_0x380c19){_0x421782['push'](_0x421782['shift']());}};_0x5048b0(++_0x116738);}(a1005_0x1167,0x98));const a1005_0x5048=function(_0x421782,_0x116738){_0x421782=_0x421782-0x0;let _0x5048b0=a1005_0x1167[_0x421782];return _0x5048b0;};const _0x33fb33=a1005_0x5048;'use strict';const util=require('util'),logger=require(_0x33fb33('0xf'))(_0x33fb33('0x2')),Sequence=function(){};Sequence[_0x33fb33('0x14')][_0x33fb33('0xa')]=function(_0x380c19){const _0x4e95bb=_0x33fb33;this[_0x4e95bb('0xc')]=this[_0x4e95bb('0xc')]?this['tail']['finally'](_0x380c19):_0x380c19();};const Migration=function(_0x3194d4){const _0x2c6625=_0x33fb33;this[_0x2c6625('0x9')]=_0x3194d4,this[_0x2c6625('0x3')]=new Sequence();};Migration[_0x33fb33('0x14')][_0x33fb33('0x1a')]=function(_0x5d57ec,_0x4bfb59,_0xbb0e38){const _0x398f1d=_0x33fb33,_0x3f5245=this;this[_0x398f1d('0x3')][_0x398f1d('0xa')](function(){const _0x30f319=_0x398f1d;return _0x3f5245['queryInterface'][_0x30f319('0x1a')](_0x5d57ec,_0x4bfb59,_0xbb0e38)[_0x30f319('0xd')](function(){const _0x29db12=_0x30f319;logger[_0x29db12('0x1c')](_0x29db12('0x18'),_0x4bfb59,_0x5d57ec);})[_0x30f319('0x17')](function(_0x3cac45){const _0x1d2104=_0x30f319;logger[_0x1d2104('0x1c')](JSON[_0x1d2104('0x10')](_0x3cac45));});});},Migration['prototype'][_0x33fb33('0x1')]=function(_0x160eb6,_0x1bc521,_0x2b1331){const _0x7d8194=_0x33fb33,_0x17e216=this;this[_0x7d8194('0x3')]['enqueue'](function(){const _0x586225=_0x7d8194;return _0x17e216['queryInterface'][_0x586225('0x1')](_0x160eb6,_0x1bc521,_0x2b1331)[_0x586225('0xd')](function(){const _0x43faa3=_0x586225;logger[_0x43faa3('0x1c')](_0x43faa3('0x4'),_0x1bc521,_0x160eb6);})[_0x586225('0x17')](function(_0x149938){const _0x6711c3=_0x586225;logger['info'](JSON[_0x6711c3('0x10')](_0x149938));});});},Migration['prototype'][_0x33fb33('0xb')]=function(_0x100569){const _0x183bc3=this;this['sequence']['enqueue'](function(){const _0x267cd1=a1005_0x5048;return _0x183bc3[_0x267cd1('0x9')][_0x267cd1('0xb')](_0x100569,{'force':!![]})[_0x267cd1('0xd')](function(){const _0x29a389=_0x267cd1;logger[_0x29a389('0x1c')](_0x29a389('0xe'),_0x100569);})[_0x267cd1('0x17')](function(_0x5bbe71){const _0x27a197=_0x267cd1;logger[_0x27a197('0x1c')](JSON[_0x27a197('0x10')](_0x5bbe71));});});},Migration['prototype']['addIndex']=function(_0x3db83a,_0x28bacd,_0x246046){const _0x3b6760=_0x33fb33,_0x27bcff=this;this[_0x3b6760('0x3')]['enqueue'](function(){const _0x27abf8=_0x3b6760;return _0x27bcff[_0x27abf8('0x9')][_0x27abf8('0x13')](_0x3db83a,_0x28bacd,{'indexName':_0x246046[_0x27abf8('0x16')],'indicesType':_0x246046[_0x27abf8('0x7')]})['then'](function(){const _0xe1a553=_0x27abf8;logger[_0xe1a553('0x1c')]('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x3db83a,_0x28bacd['join'](','),_0x246046[_0xe1a553('0x16')],_0x246046[_0xe1a553('0x7')]);})[_0x27abf8('0x17')](function(_0x4852c2){const _0x2bace1=_0x27abf8;logger[_0x2bace1('0x1c')](JSON[_0x2bace1('0x10')](_0x4852c2));});});},Migration[_0x33fb33('0x14')][_0x33fb33('0x1e')]=function(_0x32d0d5,_0x125cdc){const _0x322e69=_0x33fb33,_0x37b254=this;this[_0x322e69('0x3')][_0x322e69('0xa')](function(){const _0x302a9f=_0x322e69;return _0x37b254['queryInterface'][_0x302a9f('0x1e')](_0x32d0d5,_0x125cdc)[_0x302a9f('0xd')](function(){const _0x58ce45=_0x302a9f;logger[_0x58ce45('0x1c')](_0x58ce45('0x1d'),_0x32d0d5,_0x125cdc);})[_0x302a9f('0x17')](function(_0x4738bf){const _0x4986e4=_0x302a9f;logger[_0x4986e4('0x1c')](JSON['stringify'](_0x4738bf));});});},Migration[_0x33fb33('0x14')][_0x33fb33('0x11')]=function(_0x2ba406){const _0x4f4e55=_0x33fb33,_0x40db56=this;this[_0x4f4e55('0x3')][_0x4f4e55('0xa')](function(){const _0x1292bd=_0x4f4e55;return _0x40db56[_0x1292bd('0x9')][_0x1292bd('0x15')][_0x1292bd('0x11')](_0x2ba406)['then'](function(){const _0x4de8fe=_0x1292bd;logger['info'](_0x4de8fe('0x6'),_0x2ba406);})[_0x1292bd('0x17')](function(_0x254fd7){const _0x991119=_0x1292bd;logger[_0x991119('0x1c')](JSON['stringify'](_0x254fd7));});});},Migration[_0x33fb33('0x14')][_0x33fb33('0x1b')]=function(_0x1c2a17,_0x369744){const _0x1e75cc=_0x33fb33,_0x17bc4c=this;this[_0x1e75cc('0x3')][_0x1e75cc('0xa')](function(){const _0x2573fd=_0x1e75cc;return _0x17bc4c['queryInterface'][_0x2573fd('0x1b')](_0x1c2a17,_0x369744)['then'](function(){const _0x3ccaa6=_0x2573fd;logger[_0x3ccaa6('0x1c')](_0x3ccaa6('0x5'),_0x369744,_0x1c2a17);})[_0x2573fd('0x17')](function(_0x5c3cd5){const _0x42584f=_0x2573fd;logger[_0x42584f('0x1c')](util[_0x42584f('0x19')](_0x5c3cd5,{'showHidden':![],'depth':null}));});});},Migration[_0x33fb33('0x14')][_0x33fb33('0x1f')]=function(_0x861562,_0x440947,_0x145c45){const _0x4f432b=_0x33fb33,_0x28db69=this;this[_0x4f432b('0x3')][_0x4f432b('0xa')](function(){const _0x18afe1=_0x4f432b;return _0x28db69['queryInterface']['renameColumn'](_0x861562,_0x440947,_0x145c45)['then'](function(){const _0x204986=a1005_0x5048;logger[_0x204986('0x1c')](_0x204986('0x8'),_0x440947,_0x145c45,_0x861562);})[_0x18afe1('0x17')](function(_0x1483dd){const _0x14506e=_0x18afe1;logger[_0x14506e('0x1c')](util[_0x14506e('0x19')](_0x1483dd,{'showHidden':![],'depth':null}));});});},Migration[_0x33fb33('0x14')][_0x33fb33('0x12')]=function(_0x483e0d){const _0x36d4b4=_0x33fb33;this[_0x36d4b4('0x3')][_0x36d4b4('0xa')](function(){return _0x483e0d();});},module[_0x33fb33('0x0')]={'up':function(_0x45f8a0){return new Promise(function(_0x3c5fc0){const _0x44b525=a1005_0x5048,_0x5b7ba2=new Migration(_0x45f8a0);_0x5b7ba2[_0x44b525('0x12')](_0x3c5fc0);});},'down':function(){}}; \ No newline at end of file +const a1167_0x2cab=['indicesType','inspect','query\x20%s','then','changeColumn','enqueue','dropTable','sequelize','removeIndex','stringify','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','catch','prototype','sequence','../config/logger','join','queryInterface','final','Changed\x20column\x20%s\x20in\x20table\x20%s','addIndex','removeColumn','tail','removeIndex\x20%s\x20%s','table\x20dropped\x20%s','query','addColumn','Removed\x20column\x20%s\x20from\x20%s','indexName','finally','addIndex\x20%s\x20%s\x20%s\x20[%s]','info','util','renameColumn'];(function(_0x32badf,_0x5beace){const _0x2cab09=function(_0xf871){while(--_0xf871){_0x32badf['push'](_0x32badf['shift']());}};_0x2cab09(++_0x5beace);}(a1167_0x2cab,0x7e));const a1167_0xf871=function(_0x32badf,_0x5beace){_0x32badf=_0x32badf-0xea;let _0x2cab09=a1167_0x2cab[_0x32badf];return _0x2cab09;};const a1167_0x477652=a1167_0xf871;'use strict';const util=require(a1167_0x477652(0xee)),logger=require(a1167_0x477652(0xfe))('migration'),Sequence=function(){};Sequence['prototype'][a1167_0x477652(0xf5)]=function(_0x526146){const _0x299dc7=a1167_0x477652;this['tail']=this[_0x299dc7(0x105)]?this[_0x299dc7(0x105)][_0x299dc7(0xeb)](_0x526146):_0x526146();};const Migration=function(_0x57cc4e){const _0x27a3d6=a1167_0x477652;this[_0x27a3d6(0x100)]=_0x57cc4e,this[_0x27a3d6(0xfd)]=new Sequence();};Migration[a1167_0x477652(0xfc)]['changeColumn']=function(_0x278c0e,_0xc6da0a,_0x21425c){const _0x2cedb7=a1167_0x477652,_0x49c50f=this;this['sequence'][_0x2cedb7(0xf5)](function(){const _0x46e9e4=_0x2cedb7;return _0x49c50f[_0x46e9e4(0x100)][_0x46e9e4(0xf4)](_0x278c0e,_0xc6da0a,_0x21425c)[_0x46e9e4(0xf3)](function(){const _0x5469ba=_0x46e9e4;logger[_0x5469ba(0xed)](_0x5469ba(0x102),_0xc6da0a,_0x278c0e);})['catch'](function(_0x18831a){const _0x384c5a=_0x46e9e4;logger[_0x384c5a(0xed)](JSON['stringify'](_0x18831a));});});},Migration['prototype'][a1167_0x477652(0x109)]=function(_0x4f3349,_0x2f79ff,_0x2e3dbd){const _0x5e1b32=a1167_0x477652,_0x3ab8f6=this;this[_0x5e1b32(0xfd)]['enqueue'](function(){const _0x8dc9c4=_0x5e1b32;return _0x3ab8f6['queryInterface'][_0x8dc9c4(0x109)](_0x4f3349,_0x2f79ff,_0x2e3dbd)[_0x8dc9c4(0xf3)](function(){const _0x30ae12=_0x8dc9c4;logger[_0x30ae12(0xed)]('Added\x20column\x20%s\x20to\x20%s',_0x2f79ff,_0x4f3349);})[_0x8dc9c4(0xfb)](function(_0x4e926a){const _0x582de9=_0x8dc9c4;logger[_0x582de9(0xed)](JSON['stringify'](_0x4e926a));});});},Migration[a1167_0x477652(0xfc)][a1167_0x477652(0xf6)]=function(_0x582fd6){const _0x2a8bb7=a1167_0x477652,_0x3b19a4=this;this[_0x2a8bb7(0xfd)][_0x2a8bb7(0xf5)](function(){const _0x42253a=_0x2a8bb7;return _0x3b19a4[_0x42253a(0x100)][_0x42253a(0xf6)](_0x582fd6,{'force':!![]})[_0x42253a(0xf3)](function(){const _0xb2e6d8=_0x42253a;logger[_0xb2e6d8(0xed)](_0xb2e6d8(0x107),_0x582fd6);})[_0x42253a(0xfb)](function(_0x4cd4f1){const _0x20baf9=_0x42253a;logger[_0x20baf9(0xed)](JSON[_0x20baf9(0xf9)](_0x4cd4f1));});});},Migration['prototype'][a1167_0x477652(0x103)]=function(_0x3895cc,_0x330007,_0x396f5a){const _0x29c9b4=a1167_0x477652,_0x237175=this;this[_0x29c9b4(0xfd)][_0x29c9b4(0xf5)](function(){const _0x5942ca=_0x29c9b4;return _0x237175[_0x5942ca(0x100)][_0x5942ca(0x103)](_0x3895cc,_0x330007,{'indexName':_0x396f5a[_0x5942ca(0xea)],'indicesType':_0x396f5a[_0x5942ca(0xf0)]})[_0x5942ca(0xf3)](function(){const _0x2bc688=_0x5942ca;logger[_0x2bc688(0xed)](_0x2bc688(0xec),_0x3895cc,_0x330007[_0x2bc688(0xff)](','),_0x396f5a[_0x2bc688(0xea)],_0x396f5a[_0x2bc688(0xf0)]);})['catch'](function(_0x4078d9){const _0x3a920e=_0x5942ca;logger[_0x3a920e(0xed)](JSON[_0x3a920e(0xf9)](_0x4078d9));});});},Migration[a1167_0x477652(0xfc)]['removeIndex']=function(_0x5db025,_0x575873){const _0x21f794=a1167_0x477652,_0x2d7cfd=this;this['sequence'][_0x21f794(0xf5)](function(){const _0x3d709d=_0x21f794;return _0x2d7cfd[_0x3d709d(0x100)][_0x3d709d(0xf8)](_0x5db025,_0x575873)[_0x3d709d(0xf3)](function(){const _0x42cdde=_0x3d709d;logger['info'](_0x42cdde(0x106),_0x5db025,_0x575873);})[_0x3d709d(0xfb)](function(_0x31752a){const _0x3a6446=_0x3d709d;logger[_0x3a6446(0xed)](JSON[_0x3a6446(0xf9)](_0x31752a));});});},Migration[a1167_0x477652(0xfc)][a1167_0x477652(0x108)]=function(_0x5f4420){const _0x389152=a1167_0x477652,_0x2e78f1=this;this[_0x389152(0xfd)]['enqueue'](function(){const _0x50f5db=_0x389152;return _0x2e78f1[_0x50f5db(0x100)][_0x50f5db(0xf7)][_0x50f5db(0x108)](_0x5f4420)[_0x50f5db(0xf3)](function(){const _0x1cf1fb=_0x50f5db;logger['info'](_0x1cf1fb(0xf2),_0x5f4420);})[_0x50f5db(0xfb)](function(_0x481bb6){const _0x3b9c1d=_0x50f5db;logger[_0x3b9c1d(0xed)](JSON[_0x3b9c1d(0xf9)](_0x481bb6));});});},Migration[a1167_0x477652(0xfc)][a1167_0x477652(0x104)]=function(_0x413d46,_0x21ebdd){const _0x47f3da=a1167_0x477652,_0x16dbcc=this;this[_0x47f3da(0xfd)][_0x47f3da(0xf5)](function(){const _0x5e6655=_0x47f3da;return _0x16dbcc['queryInterface'][_0x5e6655(0x104)](_0x413d46,_0x21ebdd)[_0x5e6655(0xf3)](function(){const _0x59cf50=_0x5e6655;logger['info'](_0x59cf50(0x10a),_0x21ebdd,_0x413d46);})[_0x5e6655(0xfb)](function(_0x5808b5){const _0x401744=_0x5e6655;logger['info'](util[_0x401744(0xf1)](_0x5808b5,{'showHidden':![],'depth':null}));});});},Migration[a1167_0x477652(0xfc)][a1167_0x477652(0xef)]=function(_0x13a24c,_0x5d29fa,_0x1f311e){const _0x317751=a1167_0x477652,_0xf9b101=this;this[_0x317751(0xfd)][_0x317751(0xf5)](function(){const _0x2ec7db=_0x317751;return _0xf9b101[_0x2ec7db(0x100)]['renameColumn'](_0x13a24c,_0x5d29fa,_0x1f311e)['then'](function(){const _0xbb167f=_0x2ec7db;logger[_0xbb167f(0xed)](_0xbb167f(0xfa),_0x5d29fa,_0x1f311e,_0x13a24c);})[_0x2ec7db(0xfb)](function(_0x12b5f6){const _0x253420=_0x2ec7db;logger[_0x253420(0xed)](util['inspect'](_0x12b5f6,{'showHidden':![],'depth':null}));});});},Migration[a1167_0x477652(0xfc)]['final']=function(_0x3ae9ab){const _0x4f05db=a1167_0x477652;this[_0x4f05db(0xfd)]['enqueue'](function(){return _0x3ae9ab();});},module['exports']={'up':function(_0x559ef9){return new Promise(function(_0x1fa25f){const _0x575b79=a1167_0xf871,_0x1c73f6=new Migration(_0x559ef9);_0x1c73f6[_0x575b79(0x101)](_0x1fa25f);});},'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 2f73555..c8fff06 100644 --- a/server/migrations/2.4.4.js +++ b/server/migrations/2.4.4.js @@ -1 +1 @@ -const a1006_0x2a50=['finally','sequence','inspect','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','tail','enqueue','addColumn','dropTable','util','removeColumn','info','queryInterface','clientId','clientSecret','sequelize','query','Removed\x20column\x20%s\x20from\x20%s','STRING','table\x20dropped\x20%s','code','Added\x20column\x20%s\x20to\x20%s','addIndex\x20%s\x20%s\x20%s\x20[%s]','exports','final','indexName','addIndex','authToken','removeIndex\x20%s\x20%s','indicesType','renameColumn','catch','migration','join','removeIndex','then','prototype','stringify','int_zoho_accounts','Changed\x20column\x20%s\x20in\x20table\x20%s'];(function(_0x59cc1a,_0x2a50d5){const _0x557d55=function(_0x46112d){while(--_0x46112d){_0x59cc1a['push'](_0x59cc1a['shift']());}};_0x557d55(++_0x2a50d5);}(a1006_0x2a50,0xa3));const a1006_0x557d=function(_0x59cc1a,_0x2a50d5){_0x59cc1a=_0x59cc1a-0x0;let _0x557d55=a1006_0x2a50[_0x59cc1a];return _0x557d55;};const _0x5a1f5e=a1006_0x557d;'use strict';const util=require(_0x5a1f5e('0x1')),logger=require('../config/logger')(_0x5a1f5e('0x18')),Sequence=function(){};Sequence['prototype'][_0x5a1f5e('0x25')]=function(_0x46112d){const _0x4e5d6a=_0x5a1f5e;this[_0x4e5d6a('0x24')]=this[_0x4e5d6a('0x24')]?this[_0x4e5d6a('0x24')][_0x4e5d6a('0x20')](_0x46112d):_0x46112d();};const Migration=function(_0x1f0300){const _0x42847f=_0x5a1f5e;this['queryInterface']=_0x1f0300,this[_0x42847f('0x21')]=new Sequence();};Migration['prototype']['changeColumn']=function(_0x5a7f59,_0xdb6b47,_0x363668){const _0x323d86=_0x5a1f5e,_0xcac935=this;this[_0x323d86('0x21')][_0x323d86('0x25')](function(){const _0x1c336e=_0x323d86;return _0xcac935[_0x1c336e('0x4')]['changeColumn'](_0x5a7f59,_0xdb6b47,_0x363668)[_0x1c336e('0x1b')](function(){const _0x4dc19e=_0x1c336e;logger[_0x4dc19e('0x3')](_0x4dc19e('0x1f'),_0xdb6b47,_0x5a7f59);})[_0x1c336e('0x17')](function(_0x19083c){const _0x78b7d9=_0x1c336e;logger[_0x78b7d9('0x3')](JSON[_0x78b7d9('0x1d')](_0x19083c));});});},Migration['prototype'][_0x5a1f5e('0x26')]=function(_0x46571a,_0x1a0015,_0x1165ee){const _0x27234d=_0x5a1f5e,_0x59642b=this;this[_0x27234d('0x21')][_0x27234d('0x25')](function(){const _0x1ad143=_0x27234d;return _0x59642b[_0x1ad143('0x4')]['addColumn'](_0x46571a,_0x1a0015,_0x1165ee)[_0x1ad143('0x1b')](function(){const _0x53b928=_0x1ad143;logger['info'](_0x53b928('0xd'),_0x1a0015,_0x46571a);})['catch'](function(_0x4a7fbd){const _0x4225d6=_0x1ad143;logger['info'](JSON[_0x4225d6('0x1d')](_0x4a7fbd));});});},Migration[_0x5a1f5e('0x1c')]['dropTable']=function(_0x17e7d4){const _0x535255=_0x5a1f5e,_0x14c775=this;this[_0x535255('0x21')][_0x535255('0x25')](function(){const _0x4eb365=_0x535255;return _0x14c775['queryInterface'][_0x4eb365('0x0')](_0x17e7d4,{'force':!![]})[_0x4eb365('0x1b')](function(){const _0x29b7ae=_0x4eb365;logger[_0x29b7ae('0x3')](_0x29b7ae('0xb'),_0x17e7d4);})[_0x4eb365('0x17')](function(_0x2faaaf){logger['info'](JSON['stringify'](_0x2faaaf));});});},Migration[_0x5a1f5e('0x1c')][_0x5a1f5e('0x12')]=function(_0x5de29e,_0x30bdbe,_0x235f22){const _0x5b66c3=_0x5a1f5e,_0x2ee142=this;this[_0x5b66c3('0x21')][_0x5b66c3('0x25')](function(){const _0x42564d=_0x5b66c3;return _0x2ee142[_0x42564d('0x4')][_0x42564d('0x12')](_0x5de29e,_0x30bdbe,{'indexName':_0x235f22[_0x42564d('0x11')],'indicesType':_0x235f22[_0x42564d('0x15')]})[_0x42564d('0x1b')](function(){const _0x1cb974=_0x42564d;logger[_0x1cb974('0x3')](_0x1cb974('0xe'),_0x5de29e,_0x30bdbe[_0x1cb974('0x19')](','),_0x235f22[_0x1cb974('0x11')],_0x235f22[_0x1cb974('0x15')]);})[_0x42564d('0x17')](function(_0x42a484){const _0x184ab4=_0x42564d;logger[_0x184ab4('0x3')](JSON[_0x184ab4('0x1d')](_0x42a484));});});},Migration[_0x5a1f5e('0x1c')][_0x5a1f5e('0x1a')]=function(_0xe4d1f6,_0x4fcea0){const _0xfff343=_0x5a1f5e,_0x4494d6=this;this['sequence'][_0xfff343('0x25')](function(){const _0x4f08d6=_0xfff343;return _0x4494d6[_0x4f08d6('0x4')][_0x4f08d6('0x1a')](_0xe4d1f6,_0x4fcea0)['then'](function(){const _0x15dc57=_0x4f08d6;logger['info'](_0x15dc57('0x14'),_0xe4d1f6,_0x4fcea0);})['catch'](function(_0x269e41){logger['info'](JSON['stringify'](_0x269e41));});});},Migration[_0x5a1f5e('0x1c')][_0x5a1f5e('0x8')]=function(_0x402bd8){const _0x363c57=_0x5a1f5e,_0x2e4171=this;this['sequence'][_0x363c57('0x25')](function(){const _0x4e800c=_0x363c57;return _0x2e4171[_0x4e800c('0x4')][_0x4e800c('0x7')][_0x4e800c('0x8')](_0x402bd8)['then'](function(){const _0x4aa0e2=_0x4e800c;logger[_0x4aa0e2('0x3')]('query\x20%s',_0x402bd8);})[_0x4e800c('0x17')](function(_0x5a9c7a){const _0x30a8a2=_0x4e800c;logger[_0x30a8a2('0x3')](JSON[_0x30a8a2('0x1d')](_0x5a9c7a));});});},Migration[_0x5a1f5e('0x1c')][_0x5a1f5e('0x2')]=function(_0x1f4406,_0x2cd70d){const _0x4b1785=_0x5a1f5e,_0x2a1ffd=this;this['sequence'][_0x4b1785('0x25')](function(){const _0xa5d127=_0x4b1785;return _0x2a1ffd[_0xa5d127('0x4')][_0xa5d127('0x2')](_0x1f4406,_0x2cd70d)[_0xa5d127('0x1b')](function(){const _0x36341d=_0xa5d127;logger[_0x36341d('0x3')](_0x36341d('0x9'),_0x2cd70d,_0x1f4406);})['catch'](function(_0x136846){const _0x5d8d23=_0xa5d127;logger[_0x5d8d23('0x3')](util[_0x5d8d23('0x22')](_0x136846,{'showHidden':![],'depth':null}));});});},Migration[_0x5a1f5e('0x1c')]['renameColumn']=function(_0x54da45,_0x55a32b,_0xe1e120){const _0x39c0a6=_0x5a1f5e,_0x284bcf=this;this[_0x39c0a6('0x21')][_0x39c0a6('0x25')](function(){const _0x228f07=_0x39c0a6;return _0x284bcf[_0x228f07('0x4')][_0x228f07('0x16')](_0x54da45,_0x55a32b,_0xe1e120)[_0x228f07('0x1b')](function(){const _0x525c5d=_0x228f07;logger[_0x525c5d('0x3')](_0x525c5d('0x23'),_0x55a32b,_0xe1e120,_0x54da45);})[_0x228f07('0x17')](function(_0x296e02){const _0x1648aa=_0x228f07;logger[_0x1648aa('0x3')](util[_0x1648aa('0x22')](_0x296e02,{'showHidden':![],'depth':null}));});});},Migration[_0x5a1f5e('0x1c')]['final']=function(_0x466430){const _0x249514=_0x5a1f5e;this[_0x249514('0x21')]['enqueue'](function(){return _0x466430();});},module[_0x5a1f5e('0xf')]={'up':function(_0x5ccb82,_0x4cee09){return new Promise(function(_0x26c9a0){const _0x1b4293=a1006_0x557d,_0x38a59f=new Migration(_0x5ccb82);_0x38a59f[_0x1b4293('0x2')](_0x1b4293('0x1e'),_0x1b4293('0x13')),_0x38a59f[_0x1b4293('0x26')](_0x1b4293('0x1e'),'zone',{'type':_0x4cee09[_0x1b4293('0xa')],'defaultValue':'EU'}),_0x38a59f[_0x1b4293('0x26')](_0x1b4293('0x1e'),_0x1b4293('0x5'),{'type':_0x4cee09[_0x1b4293('0xa')]}),_0x38a59f[_0x1b4293('0x26')](_0x1b4293('0x1e'),_0x1b4293('0x6'),{'type':_0x4cee09[_0x1b4293('0xa')]}),_0x38a59f[_0x1b4293('0x26')]('int_zoho_accounts',_0x1b4293('0xc'),{'type':_0x4cee09['STRING']}),_0x38a59f['addColumn'](_0x1b4293('0x1e'),'refreshToken',{'type':_0x4cee09[_0x1b4293('0xa')]}),_0x38a59f[_0x1b4293('0x10')](_0x26c9a0);});},'down':function(){}}; \ No newline at end of file +const a1168_0x1f84=['clientSecret','prototype','inspect','removeIndex','catch','Changed\x20column\x20%s\x20in\x20table\x20%s','authToken','indexName','util','Removed\x20column\x20%s\x20from\x20%s','addColumn','finally','indicesType','exports','../config/logger','enqueue','stringify','zone','renameColumn','refreshToken','code','clientId','dropTable','tail','Added\x20column\x20%s\x20to\x20%s','then','addIndex\x20%s\x20%s\x20%s\x20[%s]','table\x20dropped\x20%s','int_zoho_accounts','STRING','info','removeIndex\x20%s\x20%s','queryInterface','removeColumn','changeColumn','sequence','query','sequelize','query\x20%s','addIndex'];(function(_0x4e44fa,_0x397e6c){const _0x1f8478=function(_0x536d22){while(--_0x536d22){_0x4e44fa['push'](_0x4e44fa['shift']());}};_0x1f8478(++_0x397e6c);}(a1168_0x1f84,0x15c));const a1168_0x536d=function(_0x4e44fa,_0x397e6c){_0x4e44fa=_0x4e44fa-0x1a8;let _0x1f8478=a1168_0x1f84[_0x4e44fa];return _0x1f8478;};const a1168_0x3449b0=a1168_0x536d;'use strict';const util=require(a1168_0x3449b0(0x1bc)),logger=require(a1168_0x3449b0(0x1c2))('migration'),Sequence=function(){};Sequence[a1168_0x3449b0(0x1b5)][a1168_0x3449b0(0x1c3)]=function(_0x22b27b){const _0xaac0aa=a1168_0x3449b0;this[_0xaac0aa(0x1cb)]=this[_0xaac0aa(0x1cb)]?this[_0xaac0aa(0x1cb)][_0xaac0aa(0x1bf)](_0x22b27b):_0x22b27b();};const Migration=function(_0x560b0f){const _0x2d123f=a1168_0x3449b0;this[_0x2d123f(0x1ac)]=_0x560b0f,this[_0x2d123f(0x1af)]=new Sequence();};Migration[a1168_0x3449b0(0x1b5)][a1168_0x3449b0(0x1ae)]=function(_0x149655,_0x5ec49c,_0x40fe75){const _0xd65493=a1168_0x3449b0,_0x335f10=this;this[_0xd65493(0x1af)][_0xd65493(0x1c3)](function(){const _0x13650f=_0xd65493;return _0x335f10[_0x13650f(0x1ac)][_0x13650f(0x1ae)](_0x149655,_0x5ec49c,_0x40fe75)[_0x13650f(0x1cd)](function(){const _0x37212c=_0x13650f;logger[_0x37212c(0x1aa)](_0x37212c(0x1b9),_0x5ec49c,_0x149655);})['catch'](function(_0x3783cb){const _0x24450c=_0x13650f;logger[_0x24450c(0x1aa)](JSON['stringify'](_0x3783cb));});});},Migration[a1168_0x3449b0(0x1b5)][a1168_0x3449b0(0x1be)]=function(_0x203258,_0x4d2a55,_0x4ee251){const _0x486078=this;this['sequence']['enqueue'](function(){const _0xeaf69=a1168_0x536d;return _0x486078[_0xeaf69(0x1ac)][_0xeaf69(0x1be)](_0x203258,_0x4d2a55,_0x4ee251)[_0xeaf69(0x1cd)](function(){const _0x2b59f5=_0xeaf69;logger[_0x2b59f5(0x1aa)](_0x2b59f5(0x1cc),_0x4d2a55,_0x203258);})[_0xeaf69(0x1b8)](function(_0x1ded98){const _0x5169c6=_0xeaf69;logger[_0x5169c6(0x1aa)](JSON[_0x5169c6(0x1c4)](_0x1ded98));});});},Migration[a1168_0x3449b0(0x1b5)][a1168_0x3449b0(0x1ca)]=function(_0x404ee1){const _0x5bfbac=a1168_0x3449b0,_0x42edac=this;this[_0x5bfbac(0x1af)][_0x5bfbac(0x1c3)](function(){const _0x5f41be=_0x5bfbac;return _0x42edac['queryInterface'][_0x5f41be(0x1ca)](_0x404ee1,{'force':!![]})['then'](function(){const _0x3e3afd=_0x5f41be;logger[_0x3e3afd(0x1aa)](_0x3e3afd(0x1cf),_0x404ee1);})[_0x5f41be(0x1b8)](function(_0x37b53d){const _0x17952d=_0x5f41be;logger[_0x17952d(0x1aa)](JSON[_0x17952d(0x1c4)](_0x37b53d));});});},Migration[a1168_0x3449b0(0x1b5)][a1168_0x3449b0(0x1b3)]=function(_0x57178b,_0x5d5a24,_0x57db53){const _0x19111b=a1168_0x3449b0,_0x5a5771=this;this[_0x19111b(0x1af)][_0x19111b(0x1c3)](function(){const _0x198c6f=_0x19111b;return _0x5a5771[_0x198c6f(0x1ac)][_0x198c6f(0x1b3)](_0x57178b,_0x5d5a24,{'indexName':_0x57db53[_0x198c6f(0x1bb)],'indicesType':_0x57db53[_0x198c6f(0x1c0)]})[_0x198c6f(0x1cd)](function(){const _0x1d7721=_0x198c6f;logger[_0x1d7721(0x1aa)](_0x1d7721(0x1ce),_0x57178b,_0x5d5a24['join'](','),_0x57db53[_0x1d7721(0x1bb)],_0x57db53[_0x1d7721(0x1c0)]);})[_0x198c6f(0x1b8)](function(_0x4552f8){const _0x2d21f7=_0x198c6f;logger[_0x2d21f7(0x1aa)](JSON['stringify'](_0x4552f8));});});},Migration['prototype'][a1168_0x3449b0(0x1b7)]=function(_0x1d6fd5,_0x283cb1){const _0x50b6e9=this;this['sequence']['enqueue'](function(){const _0x3bd4dc=a1168_0x536d;return _0x50b6e9[_0x3bd4dc(0x1ac)][_0x3bd4dc(0x1b7)](_0x1d6fd5,_0x283cb1)[_0x3bd4dc(0x1cd)](function(){const _0xd00f2e=_0x3bd4dc;logger[_0xd00f2e(0x1aa)](_0xd00f2e(0x1ab),_0x1d6fd5,_0x283cb1);})[_0x3bd4dc(0x1b8)](function(_0x440847){const _0x1c82fa=_0x3bd4dc;logger['info'](JSON[_0x1c82fa(0x1c4)](_0x440847));});});},Migration['prototype']['query']=function(_0x139e53){const _0x253a0f=a1168_0x3449b0,_0x50e90b=this;this['sequence'][_0x253a0f(0x1c3)](function(){const _0x37484a=_0x253a0f;return _0x50e90b[_0x37484a(0x1ac)][_0x37484a(0x1b1)][_0x37484a(0x1b0)](_0x139e53)[_0x37484a(0x1cd)](function(){const _0x5e9fe7=_0x37484a;logger[_0x5e9fe7(0x1aa)](_0x5e9fe7(0x1b2),_0x139e53);})[_0x37484a(0x1b8)](function(_0x33ebea){const _0xbdbcae=_0x37484a;logger[_0xbdbcae(0x1aa)](JSON[_0xbdbcae(0x1c4)](_0x33ebea));});});},Migration[a1168_0x3449b0(0x1b5)][a1168_0x3449b0(0x1ad)]=function(_0x23fbc5,_0x5b9022){const _0xcd6253=a1168_0x3449b0,_0x24391a=this;this[_0xcd6253(0x1af)][_0xcd6253(0x1c3)](function(){const _0x40389c=_0xcd6253;return _0x24391a[_0x40389c(0x1ac)][_0x40389c(0x1ad)](_0x23fbc5,_0x5b9022)['then'](function(){const _0x2eabd2=_0x40389c;logger[_0x2eabd2(0x1aa)](_0x2eabd2(0x1bd),_0x5b9022,_0x23fbc5);})['catch'](function(_0x2d2ea5){const _0x36e3d2=_0x40389c;logger[_0x36e3d2(0x1aa)](util[_0x36e3d2(0x1b6)](_0x2d2ea5,{'showHidden':![],'depth':null}));});});},Migration[a1168_0x3449b0(0x1b5)][a1168_0x3449b0(0x1c6)]=function(_0xe6fb8c,_0x58335a,_0x27f725){const _0x2eb54f=this;this['sequence']['enqueue'](function(){const _0x39d101=a1168_0x536d;return _0x2eb54f[_0x39d101(0x1ac)][_0x39d101(0x1c6)](_0xe6fb8c,_0x58335a,_0x27f725)[_0x39d101(0x1cd)](function(){logger['info']('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x58335a,_0x27f725,_0xe6fb8c);})[_0x39d101(0x1b8)](function(_0x2c7721){const _0x49bf79=_0x39d101;logger[_0x49bf79(0x1aa)](util[_0x49bf79(0x1b6)](_0x2c7721,{'showHidden':![],'depth':null}));});});},Migration['prototype']['final']=function(_0x576156){const _0xc9d51a=a1168_0x3449b0;this[_0xc9d51a(0x1af)][_0xc9d51a(0x1c3)](function(){return _0x576156();});},module[a1168_0x3449b0(0x1c1)]={'up':function(_0x112698,_0x4fa4a8){return new Promise(function(_0x5a477f){const _0x1d8dae=a1168_0x536d,_0x5b70af=new Migration(_0x112698);_0x5b70af['removeColumn'](_0x1d8dae(0x1a8),_0x1d8dae(0x1ba)),_0x5b70af[_0x1d8dae(0x1be)](_0x1d8dae(0x1a8),_0x1d8dae(0x1c5),{'type':_0x4fa4a8[_0x1d8dae(0x1a9)],'defaultValue':'EU'}),_0x5b70af['addColumn'](_0x1d8dae(0x1a8),_0x1d8dae(0x1c9),{'type':_0x4fa4a8[_0x1d8dae(0x1a9)]}),_0x5b70af[_0x1d8dae(0x1be)](_0x1d8dae(0x1a8),_0x1d8dae(0x1b4),{'type':_0x4fa4a8[_0x1d8dae(0x1a9)]}),_0x5b70af['addColumn'](_0x1d8dae(0x1a8),_0x1d8dae(0x1c8),{'type':_0x4fa4a8[_0x1d8dae(0x1a9)]}),_0x5b70af[_0x1d8dae(0x1be)](_0x1d8dae(0x1a8),_0x1d8dae(0x1c7),{'type':_0x4fa4a8[_0x1d8dae(0x1a9)]}),_0x5b70af['final'](_0x5a477f);});},'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 cd3c20b..9f00cb5 100644 --- a/server/migrations/2.4.5.js +++ b/server/migrations/2.4.5.js @@ -1 +1 @@ -const a1007_0x1481=['addIndex','Changed\x20column\x20%s\x20in\x20table\x20%s','renameColumn','inspect','../config/logger','indicesType','prototype','stringify','enqueue','final','sequelize','query\x20%s','query','removeColumn','migration','exports','info','join','catch','sequence','queryInterface','tail','removeIndex','then','finally','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','indexName','addColumn','changeColumn','removeIndex\x20%s\x20%s','dropTable','addIndex\x20%s\x20%s\x20%s\x20[%s]'];(function(_0x46b2ae,_0x1481a0){const _0x14d3cd=function(_0x2dca6e){while(--_0x2dca6e){_0x46b2ae['push'](_0x46b2ae['shift']());}};_0x14d3cd(++_0x1481a0);}(a1007_0x1481,0x180));const a1007_0x14d3=function(_0x46b2ae,_0x1481a0){_0x46b2ae=_0x46b2ae-0x0;let _0x14d3cd=a1007_0x1481[_0x46b2ae];return _0x14d3cd;};const _0x35fe39=a1007_0x14d3;'use strict';const util=require('util'),logger=require(_0x35fe39('0x4'))(_0x35fe39('0xe')),Sequence=function(){};Sequence['prototype'][_0x35fe39('0x8')]=function(_0x2dca6e){const _0x5bf3a0=_0x35fe39;this['tail']=this[_0x5bf3a0('0x15')]?this['tail'][_0x5bf3a0('0x18')](_0x2dca6e):_0x2dca6e();};const Migration=function(_0x54d1cd){const _0x3c57fd=_0x35fe39;this[_0x3c57fd('0x14')]=_0x54d1cd,this[_0x3c57fd('0x13')]=new Sequence();};Migration[_0x35fe39('0x6')][_0x35fe39('0x1c')]=function(_0x58f737,_0x9118b4,_0x23a020){const _0x31f556=_0x35fe39,_0x3334a4=this;this[_0x31f556('0x13')]['enqueue'](function(){const _0x32b68b=_0x31f556;return _0x3334a4[_0x32b68b('0x14')]['changeColumn'](_0x58f737,_0x9118b4,_0x23a020)[_0x32b68b('0x17')](function(){const _0x2b5236=_0x32b68b;logger['info'](_0x2b5236('0x1'),_0x9118b4,_0x58f737);})[_0x32b68b('0x12')](function(_0x384031){const _0x3480ba=_0x32b68b;logger[_0x3480ba('0x10')](JSON['stringify'](_0x384031));});});},Migration[_0x35fe39('0x6')][_0x35fe39('0x1b')]=function(_0x3b4344,_0x469022,_0x140bc7){const _0xa03f97=_0x35fe39,_0x2bdf40=this;this['sequence'][_0xa03f97('0x8')](function(){const _0x13c2be=_0xa03f97;return _0x2bdf40[_0x13c2be('0x14')][_0x13c2be('0x1b')](_0x3b4344,_0x469022,_0x140bc7)[_0x13c2be('0x17')](function(){const _0x2fafef=_0x13c2be;logger[_0x2fafef('0x10')]('Added\x20column\x20%s\x20to\x20%s',_0x469022,_0x3b4344);})['catch'](function(_0x4bac0e){const _0x3c1750=_0x13c2be;logger[_0x3c1750('0x10')](JSON[_0x3c1750('0x7')](_0x4bac0e));});});},Migration[_0x35fe39('0x6')]['dropTable']=function(_0x1c1931){const _0x5ba63f=_0x35fe39,_0x2928c2=this;this[_0x5ba63f('0x13')][_0x5ba63f('0x8')](function(){const _0x1bac8b=_0x5ba63f;return _0x2928c2[_0x1bac8b('0x14')][_0x1bac8b('0x1e')](_0x1c1931,{'force':!![]})['then'](function(){const _0x408260=_0x1bac8b;logger[_0x408260('0x10')]('table\x20dropped\x20%s',_0x1c1931);})['catch'](function(_0x4c0d07){const _0x5f4634=_0x1bac8b;logger[_0x5f4634('0x10')](JSON[_0x5f4634('0x7')](_0x4c0d07));});});},Migration['prototype']['addIndex']=function(_0xe8725,_0x36f6be,_0x38b449){const _0x5f2910=_0x35fe39,_0x55cc14=this;this['sequence'][_0x5f2910('0x8')](function(){const _0x5a844c=_0x5f2910;return _0x55cc14[_0x5a844c('0x14')][_0x5a844c('0x0')](_0xe8725,_0x36f6be,{'indexName':_0x38b449[_0x5a844c('0x1a')],'indicesType':_0x38b449[_0x5a844c('0x5')]})[_0x5a844c('0x17')](function(){const _0x4fbf0e=_0x5a844c;logger[_0x4fbf0e('0x10')](_0x4fbf0e('0x1f'),_0xe8725,_0x36f6be[_0x4fbf0e('0x11')](','),_0x38b449[_0x4fbf0e('0x1a')],_0x38b449['indicesType']);})[_0x5a844c('0x12')](function(_0xe59e55){const _0x5a285d=_0x5a844c;logger[_0x5a285d('0x10')](JSON[_0x5a285d('0x7')](_0xe59e55));});});},Migration['prototype'][_0x35fe39('0x16')]=function(_0x29db2f,_0xe9a675){const _0x56cfeb=_0x35fe39,_0x2a9f4a=this;this[_0x56cfeb('0x13')][_0x56cfeb('0x8')](function(){const _0x1ce428=_0x56cfeb;return _0x2a9f4a[_0x1ce428('0x14')][_0x1ce428('0x16')](_0x29db2f,_0xe9a675)[_0x1ce428('0x17')](function(){const _0x58b428=_0x1ce428;logger[_0x58b428('0x10')](_0x58b428('0x1d'),_0x29db2f,_0xe9a675);})[_0x1ce428('0x12')](function(_0x2b837d){const _0x8e4ace=_0x1ce428;logger[_0x8e4ace('0x10')](JSON[_0x8e4ace('0x7')](_0x2b837d));});});},Migration[_0x35fe39('0x6')]['query']=function(_0x474784){const _0x3d0a46=_0x35fe39,_0x552b70=this;this['sequence'][_0x3d0a46('0x8')](function(){const _0x4f8f9b=_0x3d0a46;return _0x552b70[_0x4f8f9b('0x14')][_0x4f8f9b('0xa')][_0x4f8f9b('0xc')](_0x474784)['then'](function(){const _0x3b8e1b=_0x4f8f9b;logger[_0x3b8e1b('0x10')](_0x3b8e1b('0xb'),_0x474784);})['catch'](function(_0x482efe){const _0x31fa25=_0x4f8f9b;logger[_0x31fa25('0x10')](JSON['stringify'](_0x482efe));});});},Migration['prototype'][_0x35fe39('0xd')]=function(_0x48bb49,_0x52d358){const _0x27621b=_0x35fe39,_0x1bae2f=this;this[_0x27621b('0x13')]['enqueue'](function(){const _0x486528=_0x27621b;return _0x1bae2f[_0x486528('0x14')]['removeColumn'](_0x48bb49,_0x52d358)['then'](function(){logger['info']('Removed\x20column\x20%s\x20from\x20%s',_0x52d358,_0x48bb49);})[_0x486528('0x12')](function(_0x39749f){const _0x316ba8=_0x486528;logger[_0x316ba8('0x10')](util[_0x316ba8('0x3')](_0x39749f,{'showHidden':![],'depth':null}));});});},Migration[_0x35fe39('0x6')][_0x35fe39('0x2')]=function(_0x354d12,_0x4dd8c5,_0x51dfb2){const _0x1992bf=_0x35fe39,_0x3882f6=this;this[_0x1992bf('0x13')][_0x1992bf('0x8')](function(){const _0x398721=_0x1992bf;return _0x3882f6[_0x398721('0x14')]['renameColumn'](_0x354d12,_0x4dd8c5,_0x51dfb2)[_0x398721('0x17')](function(){const _0x34489e=_0x398721;logger['info'](_0x34489e('0x19'),_0x4dd8c5,_0x51dfb2,_0x354d12);})[_0x398721('0x12')](function(_0xaf0f39){const _0x3d5f1f=_0x398721;logger[_0x3d5f1f('0x10')](util['inspect'](_0xaf0f39,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x35fe39('0x9')]=function(_0x37c509){const _0x5bc020=_0x35fe39;this[_0x5bc020('0x13')][_0x5bc020('0x8')](function(){return _0x37c509();});},module[_0x35fe39('0xf')]={'up':function(_0x4524f9){return new Promise(function(_0x393b9f){const _0x13daaa=new Migration(_0x4524f9);_0x13daaa['final'](_0x393b9f);});},'down':function(){}}; \ No newline at end of file +const a1169_0x2887=['util','queryInterface','renameColumn','final','Removed\x20column\x20%s\x20from\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','stringify','indexName','removeIndex\x20%s\x20%s','join','tail','indicesType','finally','addIndex','sequelize','removeColumn','removeIndex','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','prototype','addIndex\x20%s\x20%s\x20%s\x20[%s]','info','sequence','changeColumn','enqueue','then','query','catch','dropTable','inspect','table\x20dropped\x20%s'];(function(_0x162026,_0x2cf4b5){const _0x2887f4=function(_0x37550b){while(--_0x37550b){_0x162026['push'](_0x162026['shift']());}};_0x2887f4(++_0x2cf4b5);}(a1169_0x2887,0x155));const a1169_0x3755=function(_0x162026,_0x2cf4b5){_0x162026=_0x162026-0x187;let _0x2887f4=a1169_0x2887[_0x162026];return _0x2887f4;};const a1169_0x5f10aa=a1169_0x3755;'use strict';const util=require(a1169_0x5f10aa(0x19a)),logger=require('../config/logger')('migration'),Sequence=function(){};Sequence[a1169_0x5f10aa(0x18e)][a1169_0x5f10aa(0x193)]=function(_0x4635d4){const _0x57550d=a1169_0x5f10aa;this[_0x57550d(0x1a4)]=this[_0x57550d(0x1a4)]?this[_0x57550d(0x1a4)][_0x57550d(0x188)](_0x4635d4):_0x4635d4();};const Migration=function(_0x395023){const _0xdae042=a1169_0x5f10aa;this[_0xdae042(0x19b)]=_0x395023,this[_0xdae042(0x191)]=new Sequence();};Migration[a1169_0x5f10aa(0x18e)][a1169_0x5f10aa(0x192)]=function(_0x7287eb,_0x1164cb,_0x5407ae){const _0x93195b=a1169_0x5f10aa,_0x121e5e=this;this[_0x93195b(0x191)][_0x93195b(0x193)](function(){const _0x2c77f6=_0x93195b;return _0x121e5e[_0x2c77f6(0x19b)][_0x2c77f6(0x192)](_0x7287eb,_0x1164cb,_0x5407ae)[_0x2c77f6(0x194)](function(){const _0x1b3978=_0x2c77f6;logger[_0x1b3978(0x190)](_0x1b3978(0x19f),_0x1164cb,_0x7287eb);})['catch'](function(_0x20d85c){const _0x4aa981=_0x2c77f6;logger[_0x4aa981(0x190)](JSON[_0x4aa981(0x1a0)](_0x20d85c));});});},Migration[a1169_0x5f10aa(0x18e)]['addColumn']=function(_0x2c9a95,_0x3c4463,_0x3c19a4){const _0x5cf221=a1169_0x5f10aa,_0x2f66c3=this;this['sequence'][_0x5cf221(0x193)](function(){const _0x1e2fd9=_0x5cf221;return _0x2f66c3[_0x1e2fd9(0x19b)]['addColumn'](_0x2c9a95,_0x3c4463,_0x3c19a4)['then'](function(){const _0xe55703=_0x1e2fd9;logger[_0xe55703(0x190)]('Added\x20column\x20%s\x20to\x20%s',_0x3c4463,_0x2c9a95);})[_0x1e2fd9(0x196)](function(_0x2e86d7){const _0x4e0f40=_0x1e2fd9;logger[_0x4e0f40(0x190)](JSON[_0x4e0f40(0x1a0)](_0x2e86d7));});});},Migration[a1169_0x5f10aa(0x18e)]['dropTable']=function(_0x3deafe){const _0x41af52=a1169_0x5f10aa,_0x32febe=this;this['sequence'][_0x41af52(0x193)](function(){const _0x458b8a=_0x41af52;return _0x32febe[_0x458b8a(0x19b)][_0x458b8a(0x197)](_0x3deafe,{'force':!![]})[_0x458b8a(0x194)](function(){const _0x57cdaf=_0x458b8a;logger['info'](_0x57cdaf(0x199),_0x3deafe);})[_0x458b8a(0x196)](function(_0x5c7100){const _0x4a08a0=_0x458b8a;logger[_0x4a08a0(0x190)](JSON['stringify'](_0x5c7100));});});},Migration[a1169_0x5f10aa(0x18e)][a1169_0x5f10aa(0x189)]=function(_0x6558d4,_0x4abdcb,_0x554525){const _0x49da27=a1169_0x5f10aa,_0x37862a=this;this[_0x49da27(0x191)][_0x49da27(0x193)](function(){const _0x49b0f6=_0x49da27;return _0x37862a[_0x49b0f6(0x19b)]['addIndex'](_0x6558d4,_0x4abdcb,{'indexName':_0x554525[_0x49b0f6(0x1a1)],'indicesType':_0x554525['indicesType']})[_0x49b0f6(0x194)](function(){const _0x3bde60=_0x49b0f6;logger[_0x3bde60(0x190)](_0x3bde60(0x18f),_0x6558d4,_0x4abdcb[_0x3bde60(0x1a3)](','),_0x554525[_0x3bde60(0x1a1)],_0x554525[_0x3bde60(0x187)]);})[_0x49b0f6(0x196)](function(_0x543315){const _0x55c832=_0x49b0f6;logger['info'](JSON[_0x55c832(0x1a0)](_0x543315));});});},Migration[a1169_0x5f10aa(0x18e)][a1169_0x5f10aa(0x18c)]=function(_0x3c848f,_0x29f663){const _0x217ac3=a1169_0x5f10aa,_0x59726f=this;this[_0x217ac3(0x191)]['enqueue'](function(){const _0x315f68=_0x217ac3;return _0x59726f[_0x315f68(0x19b)]['removeIndex'](_0x3c848f,_0x29f663)[_0x315f68(0x194)](function(){const _0x3b1553=_0x315f68;logger[_0x3b1553(0x190)](_0x3b1553(0x1a2),_0x3c848f,_0x29f663);})['catch'](function(_0x3ae47f){const _0x2e9e38=_0x315f68;logger[_0x2e9e38(0x190)](JSON[_0x2e9e38(0x1a0)](_0x3ae47f));});});},Migration[a1169_0x5f10aa(0x18e)]['query']=function(_0x172e6e){const _0x3b236d=a1169_0x5f10aa,_0x2e83b5=this;this['sequence'][_0x3b236d(0x193)](function(){const _0x58632f=_0x3b236d;return _0x2e83b5[_0x58632f(0x19b)][_0x58632f(0x18a)][_0x58632f(0x195)](_0x172e6e)['then'](function(){logger['info']('query\x20%s',_0x172e6e);})[_0x58632f(0x196)](function(_0xd2d7c4){const _0x5b1987=_0x58632f;logger[_0x5b1987(0x190)](JSON['stringify'](_0xd2d7c4));});});},Migration[a1169_0x5f10aa(0x18e)]['removeColumn']=function(_0x562f26,_0x1f7d13){const _0x560611=a1169_0x5f10aa,_0x32285b=this;this['sequence'][_0x560611(0x193)](function(){const _0x5cd922=_0x560611;return _0x32285b['queryInterface'][_0x5cd922(0x18b)](_0x562f26,_0x1f7d13)[_0x5cd922(0x194)](function(){const _0x5a56c7=_0x5cd922;logger['info'](_0x5a56c7(0x19e),_0x1f7d13,_0x562f26);})[_0x5cd922(0x196)](function(_0x51b77c){const _0x4819af=_0x5cd922;logger[_0x4819af(0x190)](util[_0x4819af(0x198)](_0x51b77c,{'showHidden':![],'depth':null}));});});},Migration[a1169_0x5f10aa(0x18e)][a1169_0x5f10aa(0x19c)]=function(_0x1d8dc8,_0x4f056f,_0x398007){const _0x2681a8=a1169_0x5f10aa,_0x5c3a5b=this;this[_0x2681a8(0x191)][_0x2681a8(0x193)](function(){const _0x3dfd8b=_0x2681a8;return _0x5c3a5b['queryInterface']['renameColumn'](_0x1d8dc8,_0x4f056f,_0x398007)[_0x3dfd8b(0x194)](function(){const _0x1caf9a=_0x3dfd8b;logger[_0x1caf9a(0x190)](_0x1caf9a(0x18d),_0x4f056f,_0x398007,_0x1d8dc8);})[_0x3dfd8b(0x196)](function(_0x57415b){const _0x3b8792=_0x3dfd8b;logger[_0x3b8792(0x190)](util['inspect'](_0x57415b,{'showHidden':![],'depth':null}));});});},Migration[a1169_0x5f10aa(0x18e)][a1169_0x5f10aa(0x19d)]=function(_0x37350e){const _0x4df5a5=a1169_0x5f10aa;this[_0x4df5a5(0x191)]['enqueue'](function(){return _0x37350e();});},module['exports']={'up':function(_0x70b0f2){return new Promise(function(_0x22b375){const _0x5e2348=a1169_0x3755,_0x46ab56=new Migration(_0x70b0f2);_0x46ab56[_0x5e2348(0x19d)](_0x22b375);});},'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 ed23bd5..b7be5bb 100644 --- a/server/migrations/2.4.6.js +++ b/server/migrations/2.4.6.js @@ -1 +1 @@ -const a1008_0x11fb=['renameColumn','Added\x20column\x20%s\x20to\x20%s','enqueue','tail','final','finally','changeColumn','indexName','inspect','../config/logger','util','addColumn','removeIndex','catch','addIndex\x20%s\x20%s\x20%s\x20[%s]','query\x20%s','stringify','table\x20dropped\x20%s','dropTable','Changed\x20column\x20%s\x20in\x20table\x20%s','exports','migration','then','addIndex','Removed\x20column\x20%s\x20from\x20%s','indicesType','removeColumn','removeIndex\x20%s\x20%s','sequence','prototype','info','queryInterface'];(function(_0x51d0a2,_0x11fb4c){const _0xab68ed=function(_0x12997f){while(--_0x12997f){_0x51d0a2['push'](_0x51d0a2['shift']());}};_0xab68ed(++_0x11fb4c);}(a1008_0x11fb,0xc1));const a1008_0xab68=function(_0x51d0a2,_0x11fb4c){_0x51d0a2=_0x51d0a2-0x0;let _0xab68ed=a1008_0x11fb[_0x51d0a2];return _0xab68ed;};const _0x279b4c=a1008_0xab68;'use strict';const util=require(_0x279b4c('0x9')),logger=require(_0x279b4c('0x8'))(_0x279b4c('0x14')),Sequence=function(){};Sequence[_0x279b4c('0x1c')][_0x279b4c('0x1')]=function(_0x12997f){const _0x22f817=_0x279b4c;this[_0x22f817('0x2')]=this[_0x22f817('0x2')]?this[_0x22f817('0x2')][_0x22f817('0x4')](_0x12997f):_0x12997f();};const Migration=function(_0x1dd751){const _0x26e96d=_0x279b4c;this[_0x26e96d('0x1e')]=_0x1dd751,this[_0x26e96d('0x1b')]=new Sequence();};Migration[_0x279b4c('0x1c')][_0x279b4c('0x5')]=function(_0x51f831,_0x1d04dc,_0x1ff0b7){const _0x2f455e=_0x279b4c,_0x576164=this;this[_0x2f455e('0x1b')][_0x2f455e('0x1')](function(){const _0x32a8b4=_0x2f455e;return _0x576164[_0x32a8b4('0x1e')][_0x32a8b4('0x5')](_0x51f831,_0x1d04dc,_0x1ff0b7)['then'](function(){const _0xc55c41=_0x32a8b4;logger['info'](_0xc55c41('0x12'),_0x1d04dc,_0x51f831);})[_0x32a8b4('0xc')](function(_0x13f034){const _0x47ac17=_0x32a8b4;logger[_0x47ac17('0x1d')](JSON[_0x47ac17('0xf')](_0x13f034));});});},Migration[_0x279b4c('0x1c')][_0x279b4c('0xa')]=function(_0x2df832,_0x362eb8,_0x5d2d9b){const _0x4aab22=_0x279b4c,_0x55335a=this;this[_0x4aab22('0x1b')][_0x4aab22('0x1')](function(){const _0x5bb614=_0x4aab22;return _0x55335a[_0x5bb614('0x1e')][_0x5bb614('0xa')](_0x2df832,_0x362eb8,_0x5d2d9b)[_0x5bb614('0x15')](function(){const _0x321294=_0x5bb614;logger[_0x321294('0x1d')](_0x321294('0x0'),_0x362eb8,_0x2df832);})[_0x5bb614('0xc')](function(_0x1a8845){const _0x187fbd=_0x5bb614;logger[_0x187fbd('0x1d')](JSON[_0x187fbd('0xf')](_0x1a8845));});});},Migration[_0x279b4c('0x1c')]['dropTable']=function(_0x3283cd){const _0xcbd256=_0x279b4c,_0x52ff97=this;this['sequence'][_0xcbd256('0x1')](function(){const _0x5558fd=_0xcbd256;return _0x52ff97[_0x5558fd('0x1e')][_0x5558fd('0x11')](_0x3283cd,{'force':!![]})[_0x5558fd('0x15')](function(){const _0x3c6549=_0x5558fd;logger[_0x3c6549('0x1d')](_0x3c6549('0x10'),_0x3283cd);})['catch'](function(_0x469d9f){const _0x58b3bf=_0x5558fd;logger[_0x58b3bf('0x1d')](JSON[_0x58b3bf('0xf')](_0x469d9f));});});},Migration[_0x279b4c('0x1c')][_0x279b4c('0x16')]=function(_0x1d4360,_0x56f1e9,_0x3f38c6){const _0x34abda=_0x279b4c,_0x5e87a1=this;this[_0x34abda('0x1b')]['enqueue'](function(){const _0x115b57=_0x34abda;return _0x5e87a1[_0x115b57('0x1e')][_0x115b57('0x16')](_0x1d4360,_0x56f1e9,{'indexName':_0x3f38c6['indexName'],'indicesType':_0x3f38c6[_0x115b57('0x18')]})[_0x115b57('0x15')](function(){const _0x373f29=_0x115b57;logger['info'](_0x373f29('0xd'),_0x1d4360,_0x56f1e9['join'](','),_0x3f38c6[_0x373f29('0x6')],_0x3f38c6[_0x373f29('0x18')]);})[_0x115b57('0xc')](function(_0x28e9d3){const _0x2ad83f=_0x115b57;logger[_0x2ad83f('0x1d')](JSON['stringify'](_0x28e9d3));});});},Migration[_0x279b4c('0x1c')][_0x279b4c('0xb')]=function(_0x24d562,_0x10cfc3){const _0x2f0579=_0x279b4c,_0x531506=this;this[_0x2f0579('0x1b')][_0x2f0579('0x1')](function(){const _0x35e4c8=_0x2f0579;return _0x531506[_0x35e4c8('0x1e')][_0x35e4c8('0xb')](_0x24d562,_0x10cfc3)[_0x35e4c8('0x15')](function(){const _0xd25fb9=_0x35e4c8;logger[_0xd25fb9('0x1d')](_0xd25fb9('0x1a'),_0x24d562,_0x10cfc3);})[_0x35e4c8('0xc')](function(_0x31bcb0){const _0x9ab1d8=_0x35e4c8;logger['info'](JSON[_0x9ab1d8('0xf')](_0x31bcb0));});});},Migration[_0x279b4c('0x1c')]['query']=function(_0x295f96){const _0x379c0a=_0x279b4c,_0xb913e7=this;this[_0x379c0a('0x1b')][_0x379c0a('0x1')](function(){const _0x18bb02=_0x379c0a;return _0xb913e7[_0x18bb02('0x1e')]['sequelize']['query'](_0x295f96)[_0x18bb02('0x15')](function(){const _0x43384a=_0x18bb02;logger[_0x43384a('0x1d')](_0x43384a('0xe'),_0x295f96);})['catch'](function(_0x630359){const _0x1ec87d=_0x18bb02;logger[_0x1ec87d('0x1d')](JSON[_0x1ec87d('0xf')](_0x630359));});});},Migration['prototype'][_0x279b4c('0x19')]=function(_0x4edab9,_0x331890){const _0x57a314=_0x279b4c,_0x51cad5=this;this[_0x57a314('0x1b')][_0x57a314('0x1')](function(){const _0x4c2e7c=_0x57a314;return _0x51cad5[_0x4c2e7c('0x1e')][_0x4c2e7c('0x19')](_0x4edab9,_0x331890)['then'](function(){const _0x5d0e3b=_0x4c2e7c;logger[_0x5d0e3b('0x1d')](_0x5d0e3b('0x17'),_0x331890,_0x4edab9);})[_0x4c2e7c('0xc')](function(_0x33f7c2){const _0x40de74=_0x4c2e7c;logger[_0x40de74('0x1d')](util[_0x40de74('0x7')](_0x33f7c2,{'showHidden':![],'depth':null}));});});},Migration[_0x279b4c('0x1c')][_0x279b4c('0x1f')]=function(_0x3f551f,_0xb2aa64,_0x28eb08){const _0x4e8686=_0x279b4c,_0x143452=this;this['sequence'][_0x4e8686('0x1')](function(){const _0x55c64e=_0x4e8686;return _0x143452['queryInterface'][_0x55c64e('0x1f')](_0x3f551f,_0xb2aa64,_0x28eb08)['then'](function(){const _0x471157=_0x55c64e;logger[_0x471157('0x1d')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0xb2aa64,_0x28eb08,_0x3f551f);})[_0x55c64e('0xc')](function(_0x184cf7){logger['info'](util['inspect'](_0x184cf7,{'showHidden':![],'depth':null}));});});},Migration[_0x279b4c('0x1c')][_0x279b4c('0x3')]=function(_0x52e648){const _0x4477a2=_0x279b4c;this[_0x4477a2('0x1b')][_0x4477a2('0x1')](function(){return _0x52e648();});},module[_0x279b4c('0x13')]={'up':function(_0x40f24d){return new Promise(function(_0x11cf4c){const _0x2a3390=a1008_0xab68,_0x19f0f4=new Migration(_0x40f24d);_0x19f0f4[_0x2a3390('0x3')](_0x11cf4c);});},'down':function(){}}; \ No newline at end of file +const a1170_0x32a1=['addIndex\x20%s\x20%s\x20%s\x20[%s]','sequelize','inspect','then','catch','prototype','migration','indexName','tail','table\x20dropped\x20%s','removeIndex\x20%s\x20%s','stringify','Removed\x20column\x20%s\x20from\x20%s','queryInterface','addIndex','util','Changed\x20column\x20%s\x20in\x20table\x20%s','addColumn','finally','enqueue','removeColumn','sequence','indicesType','final','removeIndex','info','query\x20%s','changeColumn','Added\x20column\x20%s\x20to\x20%s','renameColumn','dropTable','query'];(function(_0xd5ffe1,_0x4c4647){const _0x32a1da=function(_0x6c68ef){while(--_0x6c68ef){_0xd5ffe1['push'](_0xd5ffe1['shift']());}};_0x32a1da(++_0x4c4647);}(a1170_0x32a1,0x175));const a1170_0x6c68=function(_0xd5ffe1,_0x4c4647){_0xd5ffe1=_0xd5ffe1-0x191;let _0x32a1da=a1170_0x32a1[_0xd5ffe1];return _0x32a1da;};const a1170_0x4616aa=a1170_0x6c68;'use strict';const util=require(a1170_0x4616aa(0x1ab)),logger=require('../config/logger')(a1170_0x4616aa(0x1a2)),Sequence=function(){};Sequence[a1170_0x4616aa(0x1a1)][a1170_0x4616aa(0x1af)]=function(_0x1109eb){const _0x3be78f=a1170_0x4616aa;this[_0x3be78f(0x1a4)]=this['tail']?this['tail'][_0x3be78f(0x1ae)](_0x1109eb):_0x1109eb();};const Migration=function(_0x3bcc86){const _0x5e5a7b=a1170_0x4616aa;this[_0x5e5a7b(0x1a9)]=_0x3bcc86,this[_0x5e5a7b(0x191)]=new Sequence();};Migration[a1170_0x4616aa(0x1a1)][a1170_0x4616aa(0x197)]=function(_0x185ec6,_0x47474f,_0x535172){const _0x1faa10=a1170_0x4616aa,_0x4619c0=this;this[_0x1faa10(0x191)][_0x1faa10(0x1af)](function(){const _0x2a2550=_0x1faa10;return _0x4619c0['queryInterface'][_0x2a2550(0x197)](_0x185ec6,_0x47474f,_0x535172)['then'](function(){const _0x720d1a=_0x2a2550;logger[_0x720d1a(0x195)](_0x720d1a(0x1ac),_0x47474f,_0x185ec6);})[_0x2a2550(0x1a0)](function(_0x539230){const _0x40a6ee=_0x2a2550;logger[_0x40a6ee(0x195)](JSON['stringify'](_0x539230));});});},Migration[a1170_0x4616aa(0x1a1)][a1170_0x4616aa(0x1ad)]=function(_0x38d770,_0x374d1d,_0x259829){const _0x594995=a1170_0x4616aa,_0x2436f9=this;this[_0x594995(0x191)][_0x594995(0x1af)](function(){const _0x556fb9=_0x594995;return _0x2436f9[_0x556fb9(0x1a9)][_0x556fb9(0x1ad)](_0x38d770,_0x374d1d,_0x259829)[_0x556fb9(0x19f)](function(){const _0x18b194=_0x556fb9;logger[_0x18b194(0x195)](_0x18b194(0x198),_0x374d1d,_0x38d770);})[_0x556fb9(0x1a0)](function(_0x4cacb2){const _0x2db600=_0x556fb9;logger[_0x2db600(0x195)](JSON['stringify'](_0x4cacb2));});});},Migration['prototype'][a1170_0x4616aa(0x19a)]=function(_0x4fd705){const _0x4ffef3=a1170_0x4616aa,_0x53611d=this;this['sequence'][_0x4ffef3(0x1af)](function(){const _0x1c2ec2=_0x4ffef3;return _0x53611d[_0x1c2ec2(0x1a9)]['dropTable'](_0x4fd705,{'force':!![]})[_0x1c2ec2(0x19f)](function(){const _0x5b77b7=_0x1c2ec2;logger[_0x5b77b7(0x195)](_0x5b77b7(0x1a5),_0x4fd705);})[_0x1c2ec2(0x1a0)](function(_0x165ef5){const _0x1430de=_0x1c2ec2;logger[_0x1430de(0x195)](JSON[_0x1430de(0x1a7)](_0x165ef5));});});},Migration[a1170_0x4616aa(0x1a1)][a1170_0x4616aa(0x1aa)]=function(_0x30af78,_0x4c6adc,_0x37bfcb){const _0x48fc7d=a1170_0x4616aa,_0x2b0458=this;this['sequence'][_0x48fc7d(0x1af)](function(){const _0xfdf190=_0x48fc7d;return _0x2b0458[_0xfdf190(0x1a9)][_0xfdf190(0x1aa)](_0x30af78,_0x4c6adc,{'indexName':_0x37bfcb[_0xfdf190(0x1a3)],'indicesType':_0x37bfcb[_0xfdf190(0x192)]})['then'](function(){const _0x3afb24=_0xfdf190;logger[_0x3afb24(0x195)](_0x3afb24(0x19c),_0x30af78,_0x4c6adc['join'](','),_0x37bfcb[_0x3afb24(0x1a3)],_0x37bfcb[_0x3afb24(0x192)]);})[_0xfdf190(0x1a0)](function(_0x547bfd){const _0x1f39e4=_0xfdf190;logger[_0x1f39e4(0x195)](JSON[_0x1f39e4(0x1a7)](_0x547bfd));});});},Migration[a1170_0x4616aa(0x1a1)][a1170_0x4616aa(0x194)]=function(_0x3515b1,_0x5e463e){const _0x5b96af=a1170_0x4616aa,_0x544d8a=this;this['sequence'][_0x5b96af(0x1af)](function(){const _0x34551b=_0x5b96af;return _0x544d8a[_0x34551b(0x1a9)][_0x34551b(0x194)](_0x3515b1,_0x5e463e)[_0x34551b(0x19f)](function(){const _0x415b63=_0x34551b;logger['info'](_0x415b63(0x1a6),_0x3515b1,_0x5e463e);})[_0x34551b(0x1a0)](function(_0x2e70eb){const _0x483a7a=_0x34551b;logger['info'](JSON[_0x483a7a(0x1a7)](_0x2e70eb));});});},Migration[a1170_0x4616aa(0x1a1)]['query']=function(_0x5a4878){const _0x41e049=a1170_0x4616aa,_0x4b1b26=this;this[_0x41e049(0x191)][_0x41e049(0x1af)](function(){const _0x37ce0b=_0x41e049;return _0x4b1b26['queryInterface'][_0x37ce0b(0x19d)][_0x37ce0b(0x19b)](_0x5a4878)[_0x37ce0b(0x19f)](function(){const _0x92c40f=_0x37ce0b;logger[_0x92c40f(0x195)](_0x92c40f(0x196),_0x5a4878);})[_0x37ce0b(0x1a0)](function(_0x1f9bde){const _0x435d36=_0x37ce0b;logger[_0x435d36(0x195)](JSON[_0x435d36(0x1a7)](_0x1f9bde));});});},Migration[a1170_0x4616aa(0x1a1)][a1170_0x4616aa(0x1b0)]=function(_0x3fc73b,_0x116d9e){const _0x5c905b=a1170_0x4616aa,_0x3517f4=this;this['sequence'][_0x5c905b(0x1af)](function(){const _0x158aef=_0x5c905b;return _0x3517f4[_0x158aef(0x1a9)][_0x158aef(0x1b0)](_0x3fc73b,_0x116d9e)[_0x158aef(0x19f)](function(){const _0x2d1929=_0x158aef;logger[_0x2d1929(0x195)](_0x2d1929(0x1a8),_0x116d9e,_0x3fc73b);})[_0x158aef(0x1a0)](function(_0x48b2dd){const _0x3aad95=_0x158aef;logger[_0x3aad95(0x195)](util[_0x3aad95(0x19e)](_0x48b2dd,{'showHidden':![],'depth':null}));});});},Migration[a1170_0x4616aa(0x1a1)]['renameColumn']=function(_0x81e8e1,_0x2dd8eb,_0x3c1909){const _0x138e34=a1170_0x4616aa,_0x3e8e88=this;this[_0x138e34(0x191)][_0x138e34(0x1af)](function(){const _0x6a93a6=_0x138e34;return _0x3e8e88['queryInterface'][_0x6a93a6(0x199)](_0x81e8e1,_0x2dd8eb,_0x3c1909)[_0x6a93a6(0x19f)](function(){logger['info']('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x2dd8eb,_0x3c1909,_0x81e8e1);})[_0x6a93a6(0x1a0)](function(_0xd2024b){const _0x1d11ed=_0x6a93a6;logger[_0x1d11ed(0x195)](util[_0x1d11ed(0x19e)](_0xd2024b,{'showHidden':![],'depth':null}));});});},Migration[a1170_0x4616aa(0x1a1)][a1170_0x4616aa(0x193)]=function(_0xb0368e){const _0x45e265=a1170_0x4616aa;this[_0x45e265(0x191)][_0x45e265(0x1af)](function(){return _0xb0368e();});},module['exports']={'up':function(_0x2982ac){return new Promise(function(_0x4df9e9){const _0xdf7065=a1170_0x6c68,_0x350a43=new Migration(_0x2982ac);_0x350a43[_0xdf7065(0x193)](_0x4df9e9);});},'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 4506d00..de23a91 100644 --- a/server/migrations/2.4.7.js +++ b/server/migrations/2.4.7.js @@ -1 +1 @@ -const a1009_0x1c4b=['tail','final','queryInterface','addColumn','int_zoho_configurations','enableSendButton','stringify','changeColumn','enqueue','Contacts','then','renameColumn','removeIndex\x20%s\x20%s','addIndex','BOOLEAN','dropTable','removeIndex','addIndex\x20%s\x20%s\x20%s\x20[%s]','query\x20%s','prototype','migration','ENUM','sequence','feedbackTitle','finally','inspect','exports','moduleCreate','query','Leads','catch','chat_websites','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','Added\x20column\x20%s\x20to\x20%s','info','STRING','Feedback','table\x20dropped\x20%s','Removed\x20column\x20%s\x20from\x20%s','../config/logger','indexName','indicesType','join','util'];(function(_0xec53c,_0x1c4b01){const _0x380866=function(_0x4f4788){while(--_0x4f4788){_0xec53c['push'](_0xec53c['shift']());}};_0x380866(++_0x1c4b01);}(a1009_0x1c4b,0x126));const a1009_0x3808=function(_0xec53c,_0x1c4b01){_0xec53c=_0xec53c-0x0;let _0x380866=a1009_0x1c4b[_0xec53c];return _0x380866;};const _0x55141d=a1009_0x3808;'use strict';const util=require(_0x55141d('0xd')),logger=require(_0x55141d('0x9'))(_0x55141d('0x22')),Sequence=function(){};Sequence[_0x55141d('0x21')]['enqueue']=function(_0x4f4788){const _0x585353=_0x55141d;this['tail']=this[_0x585353('0xe')]?this['tail'][_0x585353('0x26')](_0x4f4788):_0x4f4788();};const Migration=function(_0x44b9c6){const _0x3df972=_0x55141d;this[_0x3df972('0x10')]=_0x44b9c6,this[_0x3df972('0x24')]=new Sequence();};Migration[_0x55141d('0x21')][_0x55141d('0x15')]=function(_0x23c32e,_0x1aabd7,_0x29a01a){const _0x347a45=_0x55141d,_0x3e0718=this;this[_0x347a45('0x24')]['enqueue'](function(){const _0x2fbccb=_0x347a45;return _0x3e0718[_0x2fbccb('0x10')][_0x2fbccb('0x15')](_0x23c32e,_0x1aabd7,_0x29a01a)['then'](function(){const _0x275ebf=_0x2fbccb;logger[_0x275ebf('0x4')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x1aabd7,_0x23c32e);})['catch'](function(_0x4894ee){const _0x53ba6c=_0x2fbccb;logger['info'](JSON[_0x53ba6c('0x14')](_0x4894ee));});});},Migration[_0x55141d('0x21')]['addColumn']=function(_0x314544,_0x522aef,_0x4a0682){const _0x370dd0=_0x55141d,_0x485e61=this;this['sequence'][_0x370dd0('0x16')](function(){const _0x472b51=_0x370dd0;return _0x485e61[_0x472b51('0x10')]['addColumn'](_0x314544,_0x522aef,_0x4a0682)[_0x472b51('0x18')](function(){const _0x1838f0=_0x472b51;logger[_0x1838f0('0x4')](_0x1838f0('0x3'),_0x522aef,_0x314544);})['catch'](function(_0xd37604){logger['info'](JSON['stringify'](_0xd37604));});});},Migration[_0x55141d('0x21')][_0x55141d('0x1d')]=function(_0xd46233){const _0xd7cf0a=_0x55141d,_0x5d14b3=this;this[_0xd7cf0a('0x24')]['enqueue'](function(){const _0x3a9a91=_0xd7cf0a;return _0x5d14b3['queryInterface']['dropTable'](_0xd46233,{'force':!![]})[_0x3a9a91('0x18')](function(){const _0x57c776=_0x3a9a91;logger[_0x57c776('0x4')](_0x57c776('0x7'),_0xd46233);})[_0x3a9a91('0x0')](function(_0x422cd8){const _0x3cea26=_0x3a9a91;logger[_0x3cea26('0x4')](JSON['stringify'](_0x422cd8));});});},Migration['prototype']['addIndex']=function(_0x461a95,_0x3bd79a,_0x400965){const _0x3beac9=_0x55141d,_0x4114b3=this;this[_0x3beac9('0x24')][_0x3beac9('0x16')](function(){const _0x228b11=_0x3beac9;return _0x4114b3[_0x228b11('0x10')][_0x228b11('0x1b')](_0x461a95,_0x3bd79a,{'indexName':_0x400965[_0x228b11('0xa')],'indicesType':_0x400965[_0x228b11('0xb')]})[_0x228b11('0x18')](function(){const _0x2e3d17=_0x228b11;logger['info'](_0x2e3d17('0x1f'),_0x461a95,_0x3bd79a[_0x2e3d17('0xc')](','),_0x400965[_0x2e3d17('0xa')],_0x400965['indicesType']);})[_0x228b11('0x0')](function(_0x20b34a){const _0x3407c2=_0x228b11;logger[_0x3407c2('0x4')](JSON[_0x3407c2('0x14')](_0x20b34a));});});},Migration[_0x55141d('0x21')]['removeIndex']=function(_0x2eabdd,_0x270096){const _0x5dd730=_0x55141d,_0x26b505=this;this[_0x5dd730('0x24')][_0x5dd730('0x16')](function(){const _0xd3181=_0x5dd730;return _0x26b505[_0xd3181('0x10')][_0xd3181('0x1e')](_0x2eabdd,_0x270096)[_0xd3181('0x18')](function(){const _0x3b395e=_0xd3181;logger[_0x3b395e('0x4')](_0x3b395e('0x1a'),_0x2eabdd,_0x270096);})[_0xd3181('0x0')](function(_0x189184){const _0x2472ca=_0xd3181;logger[_0x2472ca('0x4')](JSON['stringify'](_0x189184));});});},Migration['prototype'][_0x55141d('0x2a')]=function(_0x3cfa38){const _0x40c18d=_0x55141d,_0x412e02=this;this[_0x40c18d('0x24')][_0x40c18d('0x16')](function(){const _0x2d2598=_0x40c18d;return _0x412e02[_0x2d2598('0x10')]['sequelize']['query'](_0x3cfa38)[_0x2d2598('0x18')](function(){const _0x6a9076=_0x2d2598;logger[_0x6a9076('0x4')](_0x6a9076('0x20'),_0x3cfa38);})['catch'](function(_0x27ad5d){const _0x5d3dd2=_0x2d2598;logger[_0x5d3dd2('0x4')](JSON['stringify'](_0x27ad5d));});});},Migration[_0x55141d('0x21')]['removeColumn']=function(_0x469613,_0x24f38f){const _0x24fea0=_0x55141d,_0x402e53=this;this['sequence'][_0x24fea0('0x16')](function(){const _0x3bc52a=_0x24fea0;return _0x402e53['queryInterface']['removeColumn'](_0x469613,_0x24f38f)[_0x3bc52a('0x18')](function(){const _0x4f3ba5=_0x3bc52a;logger[_0x4f3ba5('0x4')](_0x4f3ba5('0x8'),_0x24f38f,_0x469613);})[_0x3bc52a('0x0')](function(_0x1b36a2){const _0x5dc733=_0x3bc52a;logger['info'](util[_0x5dc733('0x27')](_0x1b36a2,{'showHidden':![],'depth':null}));});});},Migration[_0x55141d('0x21')]['renameColumn']=function(_0x34446a,_0x1bfb77,_0x1d2e7e){const _0xc0bb40=_0x55141d,_0x4b07ef=this;this[_0xc0bb40('0x24')][_0xc0bb40('0x16')](function(){const _0x10ecc5=_0xc0bb40;return _0x4b07ef[_0x10ecc5('0x10')][_0x10ecc5('0x19')](_0x34446a,_0x1bfb77,_0x1d2e7e)[_0x10ecc5('0x18')](function(){const _0x378d4f=_0x10ecc5;logger['info'](_0x378d4f('0x2'),_0x1bfb77,_0x1d2e7e,_0x34446a);})[_0x10ecc5('0x0')](function(_0x1857ae){const _0x224810=_0x10ecc5;logger[_0x224810('0x4')](util[_0x224810('0x27')](_0x1857ae,{'showHidden':![],'depth':null}));});});},Migration[_0x55141d('0x21')]['final']=function(_0x4bf2a0){const _0x442601=_0x55141d;this[_0x442601('0x24')]['enqueue'](function(){return _0x4bf2a0();});},module[_0x55141d('0x28')]={'up':function(_0x5972a4,_0x316e7d){return new Promise(function(_0x24b6ab){const _0x9d4368=a1009_0x3808,_0x109542=new Migration(_0x5972a4);_0x109542['addColumn'](_0x9d4368('0x12'),_0x9d4368('0x29'),{'type':_0x316e7d[_0x9d4368('0x23')](_0x9d4368('0x2b'),_0x9d4368('0x17')),'defaultValue':_0x9d4368('0x2b')}),_0x109542[_0x9d4368('0x11')]('chat_interactions','customerPort',{'type':_0x316e7d[_0x9d4368('0x5')]}),_0x109542[_0x9d4368('0x11')](_0x9d4368('0x1'),_0x9d4368('0x13'),{'type':_0x316e7d[_0x9d4368('0x1c')],'defaultValue':![]}),_0x109542[_0x9d4368('0x11')](_0x9d4368('0x1'),_0x9d4368('0x25'),{'type':_0x316e7d['STRING'],'defaultValue':_0x9d4368('0x6')}),_0x109542[_0x9d4368('0xf')](_0x24b6ab);});},'down':function(){}}; \ No newline at end of file +const a1171_0x273f=['changeColumn','catch','migration','removeIndex','removeColumn','final','enqueue','Changed\x20column\x20%s\x20in\x20table\x20%s','exports','indexName','../config/logger','addColumn','STRING','renameColumn','feedbackTitle','dropTable','Leads','removeIndex\x20%s\x20%s','finally','util','query\x20%s','query','addIndex','int_zoho_configurations','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','customerPort','stringify','join','ENUM','sequence','Removed\x20column\x20%s\x20from\x20%s','inspect','BOOLEAN','indicesType','prototype','info','chat_websites','sequelize','then','queryInterface','tail'];(function(_0x352dfa,_0x1d60a2){const _0x273f58=function(_0x32cb1c){while(--_0x32cb1c){_0x352dfa['push'](_0x352dfa['shift']());}};_0x273f58(++_0x1d60a2);}(a1171_0x273f,0x1bf));const a1171_0x32cb=function(_0x352dfa,_0x1d60a2){_0x352dfa=_0x352dfa-0x12b;let _0x273f58=a1171_0x273f[_0x352dfa];return _0x273f58;};const a1171_0x302f88=a1171_0x32cb;'use strict';const util=require(a1171_0x302f88(0x142)),logger=require(a1171_0x302f88(0x139))(a1171_0x302f88(0x131)),Sequence=function(){};Sequence[a1171_0x302f88(0x151)]['enqueue']=function(_0x7ab228){const _0x260670=a1171_0x302f88;this['tail']=this[_0x260670(0x12e)]?this[_0x260670(0x12e)][_0x260670(0x141)](_0x7ab228):_0x7ab228();};const Migration=function(_0x3423d6){const _0x99c3ef=a1171_0x302f88;this[_0x99c3ef(0x12d)]=_0x3423d6,this[_0x99c3ef(0x14c)]=new Sequence();};Migration[a1171_0x302f88(0x151)][a1171_0x302f88(0x12f)]=function(_0xf63e8b,_0x3e949d,_0x23c98f){const _0x3a563c=a1171_0x302f88,_0x93b6c3=this;this[_0x3a563c(0x14c)][_0x3a563c(0x135)](function(){const _0x580708=_0x3a563c;return _0x93b6c3[_0x580708(0x12d)][_0x580708(0x12f)](_0xf63e8b,_0x3e949d,_0x23c98f)['then'](function(){const _0x77fd66=_0x580708;logger[_0x77fd66(0x152)](_0x77fd66(0x136),_0x3e949d,_0xf63e8b);})['catch'](function(_0x11fb94){const _0xc17cf6=_0x580708;logger[_0xc17cf6(0x152)](JSON[_0xc17cf6(0x149)](_0x11fb94));});});},Migration['prototype']['addColumn']=function(_0x5a84c3,_0x54fac6,_0x188b6d){const _0x400f36=a1171_0x302f88,_0x3dbff6=this;this[_0x400f36(0x14c)][_0x400f36(0x135)](function(){const _0x2480ba=_0x400f36;return _0x3dbff6['queryInterface'][_0x2480ba(0x13a)](_0x5a84c3,_0x54fac6,_0x188b6d)[_0x2480ba(0x12c)](function(){const _0x396feb=_0x2480ba;logger[_0x396feb(0x152)]('Added\x20column\x20%s\x20to\x20%s',_0x54fac6,_0x5a84c3);})[_0x2480ba(0x130)](function(_0x2cc9d3){const _0x167e09=_0x2480ba;logger[_0x167e09(0x152)](JSON[_0x167e09(0x149)](_0x2cc9d3));});});},Migration[a1171_0x302f88(0x151)][a1171_0x302f88(0x13e)]=function(_0x2d094f){const _0x39ff02=a1171_0x302f88,_0x247f87=this;this['sequence'][_0x39ff02(0x135)](function(){const _0x171d28=_0x39ff02;return _0x247f87[_0x171d28(0x12d)][_0x171d28(0x13e)](_0x2d094f,{'force':!![]})[_0x171d28(0x12c)](function(){const _0x413746=_0x171d28;logger[_0x413746(0x152)]('table\x20dropped\x20%s',_0x2d094f);})[_0x171d28(0x130)](function(_0x48ba31){const _0x468370=_0x171d28;logger[_0x468370(0x152)](JSON[_0x468370(0x149)](_0x48ba31));});});},Migration[a1171_0x302f88(0x151)][a1171_0x302f88(0x145)]=function(_0x4fad12,_0x95088f,_0x5c2ed1){const _0x3c5d20=this;this['sequence']['enqueue'](function(){const _0x46eb92=a1171_0x32cb;return _0x3c5d20[_0x46eb92(0x12d)][_0x46eb92(0x145)](_0x4fad12,_0x95088f,{'indexName':_0x5c2ed1['indexName'],'indicesType':_0x5c2ed1['indicesType']})[_0x46eb92(0x12c)](function(){const _0x18a132=_0x46eb92;logger[_0x18a132(0x152)]('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x4fad12,_0x95088f[_0x18a132(0x14a)](','),_0x5c2ed1[_0x18a132(0x138)],_0x5c2ed1[_0x18a132(0x150)]);})['catch'](function(_0x43fa85){const _0x358c90=_0x46eb92;logger[_0x358c90(0x152)](JSON[_0x358c90(0x149)](_0x43fa85));});});},Migration['prototype']['removeIndex']=function(_0x11165d,_0x4c578b){const _0x24dbd2=a1171_0x302f88,_0x4d7a0b=this;this[_0x24dbd2(0x14c)][_0x24dbd2(0x135)](function(){const _0x58a966=_0x24dbd2;return _0x4d7a0b[_0x58a966(0x12d)][_0x58a966(0x132)](_0x11165d,_0x4c578b)[_0x58a966(0x12c)](function(){const _0x4cde5e=_0x58a966;logger[_0x4cde5e(0x152)](_0x4cde5e(0x140),_0x11165d,_0x4c578b);})[_0x58a966(0x130)](function(_0x116ccd){const _0x8d1900=_0x58a966;logger[_0x8d1900(0x152)](JSON['stringify'](_0x116ccd));});});},Migration[a1171_0x302f88(0x151)][a1171_0x302f88(0x144)]=function(_0x1de600){const _0x99add3=a1171_0x302f88,_0x4ab440=this;this[_0x99add3(0x14c)]['enqueue'](function(){const _0x160e1c=_0x99add3;return _0x4ab440[_0x160e1c(0x12d)][_0x160e1c(0x12b)][_0x160e1c(0x144)](_0x1de600)[_0x160e1c(0x12c)](function(){const _0xc59562=_0x160e1c;logger[_0xc59562(0x152)](_0xc59562(0x143),_0x1de600);})[_0x160e1c(0x130)](function(_0x137df5){const _0x125b87=_0x160e1c;logger[_0x125b87(0x152)](JSON[_0x125b87(0x149)](_0x137df5));});});},Migration['prototype'][a1171_0x302f88(0x133)]=function(_0x486c25,_0x504874){const _0x3c1bd2=a1171_0x302f88,_0x577490=this;this[_0x3c1bd2(0x14c)]['enqueue'](function(){const _0xfcce4=_0x3c1bd2;return _0x577490[_0xfcce4(0x12d)][_0xfcce4(0x133)](_0x486c25,_0x504874)[_0xfcce4(0x12c)](function(){const _0x2994ec=_0xfcce4;logger[_0x2994ec(0x152)](_0x2994ec(0x14d),_0x504874,_0x486c25);})[_0xfcce4(0x130)](function(_0x261c04){const _0x39b03c=_0xfcce4;logger[_0x39b03c(0x152)](util[_0x39b03c(0x14e)](_0x261c04,{'showHidden':![],'depth':null}));});});},Migration[a1171_0x302f88(0x151)][a1171_0x302f88(0x13c)]=function(_0x3b544e,_0x4028fb,_0x4f1f47){const _0x3750e3=a1171_0x302f88,_0x1d49b9=this;this[_0x3750e3(0x14c)][_0x3750e3(0x135)](function(){const _0x3f7e2f=_0x3750e3;return _0x1d49b9[_0x3f7e2f(0x12d)]['renameColumn'](_0x3b544e,_0x4028fb,_0x4f1f47)[_0x3f7e2f(0x12c)](function(){const _0x244b79=_0x3f7e2f;logger[_0x244b79(0x152)](_0x244b79(0x147),_0x4028fb,_0x4f1f47,_0x3b544e);})[_0x3f7e2f(0x130)](function(_0x306430){const _0x5b4f10=_0x3f7e2f;logger[_0x5b4f10(0x152)](util[_0x5b4f10(0x14e)](_0x306430,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1171_0x302f88(0x134)]=function(_0x191c51){const _0x2e34d1=a1171_0x302f88;this[_0x2e34d1(0x14c)][_0x2e34d1(0x135)](function(){return _0x191c51();});},module[a1171_0x302f88(0x137)]={'up':function(_0x38cbe8,_0x88c7c4){return new Promise(function(_0xa710ce){const _0x131c9e=a1171_0x32cb,_0xaa9a36=new Migration(_0x38cbe8);_0xaa9a36[_0x131c9e(0x13a)](_0x131c9e(0x146),'moduleCreate',{'type':_0x88c7c4[_0x131c9e(0x14b)](_0x131c9e(0x13f),'Contacts'),'defaultValue':_0x131c9e(0x13f)}),_0xaa9a36[_0x131c9e(0x13a)]('chat_interactions',_0x131c9e(0x148),{'type':_0x88c7c4[_0x131c9e(0x13b)]}),_0xaa9a36[_0x131c9e(0x13a)]('chat_websites','enableSendButton',{'type':_0x88c7c4[_0x131c9e(0x14f)],'defaultValue':![]}),_0xaa9a36[_0x131c9e(0x13a)](_0x131c9e(0x153),_0x131c9e(0x13d),{'type':_0x88c7c4[_0x131c9e(0x13b)],'defaultValue':'Feedback'}),_0xaa9a36[_0x131c9e(0x134)](_0xa710ce);});},'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 c4012b4..b9d6bf1 100644 --- a/server/migrations/2.4.8.js +++ b/server/migrations/2.4.8.js @@ -1 +1 @@ -const a1010_0x2daa=['migration','Added\x20column\x20%s\x20to\x20%s','Removed\x20column\x20%s\x20from\x20%s','dropTable','addIndex\x20%s\x20%s\x20%s\x20[%s]','addColumn','sequelize','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','removeIndex','join','changeColumn','removeColumn','prototype','stringify','queryInterface','indicesType','tail','inspect','query\x20%s','indexName','enqueue','catch','Changed\x20column\x20%s\x20in\x20table\x20%s','then','query','addIndex','../config/logger','finally','sequence','util','final','info'];(function(_0xd77f7e,_0x2daa2b){const _0x217b3d=function(_0x317341){while(--_0x317341){_0xd77f7e['push'](_0xd77f7e['shift']());}};_0x217b3d(++_0x2daa2b);}(a1010_0x2daa,0x173));const a1010_0x217b=function(_0xd77f7e,_0x2daa2b){_0xd77f7e=_0xd77f7e-0x0;let _0x217b3d=a1010_0x2daa[_0xd77f7e];return _0x217b3d;};const _0xe0a660=a1010_0x217b;'use strict';const util=require(_0xe0a660('0xa')),logger=require(_0xe0a660('0x7'))(_0xe0a660('0xd')),Sequence=function(){};Sequence[_0xe0a660('0x19')][_0xe0a660('0x1')]=function(_0x317341){const _0x1fffa0=_0xe0a660;this[_0x1fffa0('0x1d')]=this['tail']?this[_0x1fffa0('0x1d')][_0x1fffa0('0x8')](_0x317341):_0x317341();};const Migration=function(_0x3637c9){const _0x997afa=_0xe0a660;this[_0x997afa('0x1b')]=_0x3637c9,this[_0x997afa('0x9')]=new Sequence();};Migration[_0xe0a660('0x19')][_0xe0a660('0x17')]=function(_0x2009ff,_0x5684f7,_0x2b093a){const _0x511dbb=_0xe0a660,_0x188c4a=this;this[_0x511dbb('0x9')]['enqueue'](function(){const _0x39ebe3=_0x511dbb;return _0x188c4a[_0x39ebe3('0x1b')]['changeColumn'](_0x2009ff,_0x5684f7,_0x2b093a)['then'](function(){const _0x953010=_0x39ebe3;logger[_0x953010('0xc')](_0x953010('0x3'),_0x5684f7,_0x2009ff);})['catch'](function(_0x2bbda6){const _0x34d7b4=_0x39ebe3;logger[_0x34d7b4('0xc')](JSON[_0x34d7b4('0x1a')](_0x2bbda6));});});},Migration[_0xe0a660('0x19')]['addColumn']=function(_0x54efc8,_0x1456a9,_0x575fc6){const _0x11a4b0=_0xe0a660,_0xee8336=this;this['sequence'][_0x11a4b0('0x1')](function(){const _0x9ea7b=_0x11a4b0;return _0xee8336[_0x9ea7b('0x1b')][_0x9ea7b('0x12')](_0x54efc8,_0x1456a9,_0x575fc6)['then'](function(){const _0x5cea22=_0x9ea7b;logger[_0x5cea22('0xc')](_0x5cea22('0xe'),_0x1456a9,_0x54efc8);})['catch'](function(_0x383083){const _0x1159c7=_0x9ea7b;logger[_0x1159c7('0xc')](JSON[_0x1159c7('0x1a')](_0x383083));});});},Migration[_0xe0a660('0x19')][_0xe0a660('0x10')]=function(_0x4e87f3){const _0x12b982=_0xe0a660,_0x5ee982=this;this['sequence'][_0x12b982('0x1')](function(){const _0x24cf70=_0x12b982;return _0x5ee982[_0x24cf70('0x1b')][_0x24cf70('0x10')](_0x4e87f3,{'force':!![]})[_0x24cf70('0x4')](function(){const _0x91aa05=_0x24cf70;logger[_0x91aa05('0xc')]('table\x20dropped\x20%s',_0x4e87f3);})['catch'](function(_0x3ec783){const _0x3182e6=_0x24cf70;logger[_0x3182e6('0xc')](JSON[_0x3182e6('0x1a')](_0x3ec783));});});},Migration[_0xe0a660('0x19')]['addIndex']=function(_0x20ce66,_0x407d38,_0x4fde8f){const _0x252956=_0xe0a660,_0x49b169=this;this['sequence'][_0x252956('0x1')](function(){const _0x76f14=_0x252956;return _0x49b169[_0x76f14('0x1b')][_0x76f14('0x6')](_0x20ce66,_0x407d38,{'indexName':_0x4fde8f[_0x76f14('0x0')],'indicesType':_0x4fde8f[_0x76f14('0x1c')]})[_0x76f14('0x4')](function(){const _0x365f00=_0x76f14;logger[_0x365f00('0xc')](_0x365f00('0x11'),_0x20ce66,_0x407d38[_0x365f00('0x16')](','),_0x4fde8f[_0x365f00('0x0')],_0x4fde8f[_0x365f00('0x1c')]);})[_0x76f14('0x2')](function(_0x3ba51f){const _0x9914c2=_0x76f14;logger['info'](JSON[_0x9914c2('0x1a')](_0x3ba51f));});});},Migration['prototype'][_0xe0a660('0x15')]=function(_0x4786c5,_0x1ccac5){const _0x235aa2=_0xe0a660,_0x4f5f6d=this;this[_0x235aa2('0x9')][_0x235aa2('0x1')](function(){const _0x47324d=_0x235aa2;return _0x4f5f6d[_0x47324d('0x1b')][_0x47324d('0x15')](_0x4786c5,_0x1ccac5)[_0x47324d('0x4')](function(){const _0xd747be=_0x47324d;logger[_0xd747be('0xc')]('removeIndex\x20%s\x20%s',_0x4786c5,_0x1ccac5);})[_0x47324d('0x2')](function(_0x283cbb){const _0x59e5fa=_0x47324d;logger[_0x59e5fa('0xc')](JSON[_0x59e5fa('0x1a')](_0x283cbb));});});},Migration[_0xe0a660('0x19')]['query']=function(_0x148da2){const _0x457764=this;this['sequence']['enqueue'](function(){const _0x5d5112=a1010_0x217b;return _0x457764[_0x5d5112('0x1b')][_0x5d5112('0x13')][_0x5d5112('0x5')](_0x148da2)['then'](function(){const _0x29d9db=_0x5d5112;logger[_0x29d9db('0xc')](_0x29d9db('0x1f'),_0x148da2);})[_0x5d5112('0x2')](function(_0x4e1a85){const _0x17a811=_0x5d5112;logger[_0x17a811('0xc')](JSON[_0x17a811('0x1a')](_0x4e1a85));});});},Migration[_0xe0a660('0x19')][_0xe0a660('0x18')]=function(_0x378a43,_0x3bbb96){const _0x5860af=_0xe0a660,_0x19987d=this;this[_0x5860af('0x9')][_0x5860af('0x1')](function(){const _0x1141f7=_0x5860af;return _0x19987d[_0x1141f7('0x1b')][_0x1141f7('0x18')](_0x378a43,_0x3bbb96)[_0x1141f7('0x4')](function(){const _0xcda42=_0x1141f7;logger[_0xcda42('0xc')](_0xcda42('0xf'),_0x3bbb96,_0x378a43);})['catch'](function(_0x5c584b){const _0x2d3414=_0x1141f7;logger[_0x2d3414('0xc')](util[_0x2d3414('0x1e')](_0x5c584b,{'showHidden':![],'depth':null}));});});},Migration[_0xe0a660('0x19')]['renameColumn']=function(_0x583681,_0x217fd5,_0x59e6ff){const _0x1c1076=_0xe0a660,_0xfa08e0=this;this[_0x1c1076('0x9')][_0x1c1076('0x1')](function(){const _0x18c23b=_0x1c1076;return _0xfa08e0[_0x18c23b('0x1b')]['renameColumn'](_0x583681,_0x217fd5,_0x59e6ff)['then'](function(){const _0x43a9d2=_0x18c23b;logger[_0x43a9d2('0xc')](_0x43a9d2('0x14'),_0x217fd5,_0x59e6ff,_0x583681);})[_0x18c23b('0x2')](function(_0x12ed84){const _0x5b3562=_0x18c23b;logger[_0x5b3562('0xc')](util[_0x5b3562('0x1e')](_0x12ed84,{'showHidden':![],'depth':null}));});});},Migration[_0xe0a660('0x19')][_0xe0a660('0xb')]=function(_0x547352){this['sequence']['enqueue'](function(){return _0x547352();});},module['exports']={'up':function(_0x468f22){return new Promise(function(_0x274fc5){const _0x2cff85=new Migration(_0x468f22);_0x2cff85['final'](_0x274fc5);});},'down':function(){}}; \ No newline at end of file +const a1172_0x3a73=['exports','enqueue','final','addColumn','Removed\x20column\x20%s\x20from\x20%s','then','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','util','join','prototype','addIndex','table\x20dropped\x20%s','inspect','indexName','query','dropTable','../config/logger','sequence','addIndex\x20%s\x20%s\x20%s\x20[%s]','renameColumn','tail','indicesType','queryInterface','finally','stringify','info','catch','changeColumn'];(function(_0x9e643a,_0x435706){const _0x3a735c=function(_0x529cab){while(--_0x529cab){_0x9e643a['push'](_0x9e643a['shift']());}};_0x3a735c(++_0x435706);}(a1172_0x3a73,0x1ce));const a1172_0x529c=function(_0x9e643a,_0x435706){_0x9e643a=_0x9e643a-0x139;let _0x3a735c=a1172_0x3a73[_0x9e643a];return _0x3a735c;};const a1172_0x419157=a1172_0x529c;'use strict';const util=require(a1172_0x419157(0x14e)),logger=require(a1172_0x419157(0x13b))('migration'),Sequence=function(){};Sequence['prototype'][a1172_0x419157(0x148)]=function(_0x1a2f70){const _0x3bc024=a1172_0x419157;this[_0x3bc024(0x13f)]=this['tail']?this[_0x3bc024(0x13f)][_0x3bc024(0x142)](_0x1a2f70):_0x1a2f70();};const Migration=function(_0x4a0855){const _0x467b42=a1172_0x419157;this[_0x467b42(0x141)]=_0x4a0855,this[_0x467b42(0x13c)]=new Sequence();};Migration[a1172_0x419157(0x150)][a1172_0x419157(0x146)]=function(_0x1fc61a,_0xd8dc6b,_0x30446f){const _0x61585b=a1172_0x419157,_0x3aa71c=this;this[_0x61585b(0x13c)][_0x61585b(0x148)](function(){const _0x5c7829=_0x61585b;return _0x3aa71c['queryInterface'][_0x5c7829(0x146)](_0x1fc61a,_0xd8dc6b,_0x30446f)['then'](function(){const _0xbd3733=_0x5c7829;logger[_0xbd3733(0x144)]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0xd8dc6b,_0x1fc61a);})[_0x5c7829(0x145)](function(_0x529e21){const _0x320af8=_0x5c7829;logger[_0x320af8(0x144)](JSON[_0x320af8(0x143)](_0x529e21));});});},Migration[a1172_0x419157(0x150)][a1172_0x419157(0x14a)]=function(_0x1e1b01,_0xf19eeb,_0x48c44a){const _0x38912c=a1172_0x419157,_0x3b7c29=this;this[_0x38912c(0x13c)][_0x38912c(0x148)](function(){const _0x220323=_0x38912c;return _0x3b7c29[_0x220323(0x141)][_0x220323(0x14a)](_0x1e1b01,_0xf19eeb,_0x48c44a)[_0x220323(0x14c)](function(){const _0x366389=_0x220323;logger[_0x366389(0x144)]('Added\x20column\x20%s\x20to\x20%s',_0xf19eeb,_0x1e1b01);})[_0x220323(0x145)](function(_0x11048e){const _0x3ca693=_0x220323;logger[_0x3ca693(0x144)](JSON[_0x3ca693(0x143)](_0x11048e));});});},Migration[a1172_0x419157(0x150)]['dropTable']=function(_0x252ec9){const _0x494ef9=a1172_0x419157,_0x535c9f=this;this[_0x494ef9(0x13c)][_0x494ef9(0x148)](function(){const _0x9776a1=_0x494ef9;return _0x535c9f[_0x9776a1(0x141)][_0x9776a1(0x13a)](_0x252ec9,{'force':!![]})['then'](function(){const _0x3ffd9f=_0x9776a1;logger['info'](_0x3ffd9f(0x152),_0x252ec9);})[_0x9776a1(0x145)](function(_0x1188e5){const _0x4d11ad=_0x9776a1;logger[_0x4d11ad(0x144)](JSON[_0x4d11ad(0x143)](_0x1188e5));});});},Migration[a1172_0x419157(0x150)][a1172_0x419157(0x151)]=function(_0x28e211,_0x223782,_0x2b7244){const _0x5a54eb=a1172_0x419157,_0x6ffc8d=this;this[_0x5a54eb(0x13c)][_0x5a54eb(0x148)](function(){const _0x3594b7=_0x5a54eb;return _0x6ffc8d[_0x3594b7(0x141)][_0x3594b7(0x151)](_0x28e211,_0x223782,{'indexName':_0x2b7244['indexName'],'indicesType':_0x2b7244['indicesType']})['then'](function(){const _0xc68fb5=_0x3594b7;logger[_0xc68fb5(0x144)](_0xc68fb5(0x13d),_0x28e211,_0x223782[_0xc68fb5(0x14f)](','),_0x2b7244[_0xc68fb5(0x154)],_0x2b7244[_0xc68fb5(0x140)]);})[_0x3594b7(0x145)](function(_0xf0b738){const _0x1677c2=_0x3594b7;logger[_0x1677c2(0x144)](JSON[_0x1677c2(0x143)](_0xf0b738));});});},Migration[a1172_0x419157(0x150)]['removeIndex']=function(_0x196c8d,_0x2a8bc8){const _0x101a45=a1172_0x419157,_0x285e58=this;this[_0x101a45(0x13c)][_0x101a45(0x148)](function(){const _0x3412f9=_0x101a45;return _0x285e58[_0x3412f9(0x141)]['removeIndex'](_0x196c8d,_0x2a8bc8)[_0x3412f9(0x14c)](function(){const _0x30f132=_0x3412f9;logger[_0x30f132(0x144)]('removeIndex\x20%s\x20%s',_0x196c8d,_0x2a8bc8);})[_0x3412f9(0x145)](function(_0x7afc7d){const _0x8ca518=_0x3412f9;logger[_0x8ca518(0x144)](JSON[_0x8ca518(0x143)](_0x7afc7d));});});},Migration[a1172_0x419157(0x150)][a1172_0x419157(0x139)]=function(_0x3caf14){const _0x166f3c=a1172_0x419157,_0x54774e=this;this[_0x166f3c(0x13c)][_0x166f3c(0x148)](function(){const _0x1844a3=_0x166f3c;return _0x54774e[_0x1844a3(0x141)]['sequelize'][_0x1844a3(0x139)](_0x3caf14)[_0x1844a3(0x14c)](function(){const _0xe471be=_0x1844a3;logger[_0xe471be(0x144)]('query\x20%s',_0x3caf14);})['catch'](function(_0xefae16){const _0x5d4980=_0x1844a3;logger[_0x5d4980(0x144)](JSON[_0x5d4980(0x143)](_0xefae16));});});},Migration[a1172_0x419157(0x150)]['removeColumn']=function(_0xb33591,_0x4e168c){const _0x11a961=a1172_0x419157,_0x40c9f6=this;this[_0x11a961(0x13c)]['enqueue'](function(){const _0x5ef7de=_0x11a961;return _0x40c9f6['queryInterface']['removeColumn'](_0xb33591,_0x4e168c)['then'](function(){const _0x235e53=a1172_0x529c;logger[_0x235e53(0x144)](_0x235e53(0x14b),_0x4e168c,_0xb33591);})[_0x5ef7de(0x145)](function(_0x3dce0d){const _0x7c33bf=_0x5ef7de;logger[_0x7c33bf(0x144)](util[_0x7c33bf(0x153)](_0x3dce0d,{'showHidden':![],'depth':null}));});});},Migration[a1172_0x419157(0x150)]['renameColumn']=function(_0x152c03,_0x2a251c,_0x3fe7bd){const _0x5bb48e=a1172_0x419157,_0x475b75=this;this[_0x5bb48e(0x13c)][_0x5bb48e(0x148)](function(){const _0x38c1ed=_0x5bb48e;return _0x475b75[_0x38c1ed(0x141)][_0x38c1ed(0x13e)](_0x152c03,_0x2a251c,_0x3fe7bd)['then'](function(){const _0x289940=_0x38c1ed;logger[_0x289940(0x144)](_0x289940(0x14d),_0x2a251c,_0x3fe7bd,_0x152c03);})[_0x38c1ed(0x145)](function(_0x311fed){const _0x2bf634=_0x38c1ed;logger['info'](util[_0x2bf634(0x153)](_0x311fed,{'showHidden':![],'depth':null}));});});},Migration['prototype']['final']=function(_0x146ae8){const _0x4feac0=a1172_0x419157;this[_0x4feac0(0x13c)][_0x4feac0(0x148)](function(){return _0x146ae8();});},module[a1172_0x419157(0x147)]={'up':function(_0x839cb2){return new Promise(function(_0x1777ad){const _0x34d340=a1172_0x529c,_0x1f26b0=new Migration(_0x839cb2);_0x1f26b0[_0x34d340(0x149)](_0x1777ad);});},'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 493548f..81a8ecf 100644 --- a/server/migrations/2.4.9.js +++ b/server/migrations/2.4.9.js @@ -1 +1 @@ -const a1011_0xe73e=['indexName','indicesType','table\x20dropped\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','exports','then','addIndex','final','Added\x20column\x20%s\x20to\x20%s','renameColumn','sequelize','Removed\x20column\x20%s\x20from\x20%s','query\x20%s','stringify','changeColumn','prototype','enqueue','Changed\x20column\x20%s\x20in\x20table\x20%s','removeColumn','migration','info','dropTable','addColumn','addIndex\x20%s\x20%s\x20%s\x20[%s]','inspect','finally','query','catch','sequence','join','tail','queryInterface'];(function(_0x2daeaa,_0xe73e0a){const _0x3f42ab=function(_0x1a0d31){while(--_0x1a0d31){_0x2daeaa['push'](_0x2daeaa['shift']());}};_0x3f42ab(++_0xe73e0a);}(a1011_0xe73e,0x131));const a1011_0x3f42=function(_0x2daeaa,_0xe73e0a){_0x2daeaa=_0x2daeaa-0x0;let _0x3f42ab=a1011_0xe73e[_0x2daeaa];return _0x3f42ab;};const _0x47cbd0=a1011_0x3f42;'use strict';const util=require('util'),logger=require('../config/logger')(_0x47cbd0('0x2')),Sequence=function(){};Sequence['prototype'][_0x47cbd0('0x1f')]=function(_0x1a0d31){const _0x2b7e93=_0x47cbd0;this['tail']=this['tail']?this[_0x2b7e93('0xd')][_0x2b7e93('0x8')](_0x1a0d31):_0x1a0d31();};const Migration=function(_0x2ec124){const _0xa5cdc1=_0x47cbd0;this[_0xa5cdc1('0xe')]=_0x2ec124,this[_0xa5cdc1('0xb')]=new Sequence();};Migration[_0x47cbd0('0x1e')][_0x47cbd0('0x1d')]=function(_0x498c82,_0x4dfe37,_0x6edf8a){const _0xeadbb8=_0x47cbd0,_0x189c4a=this;this[_0xeadbb8('0xb')][_0xeadbb8('0x1f')](function(){const _0x367d81=_0xeadbb8;return _0x189c4a[_0x367d81('0xe')][_0x367d81('0x1d')](_0x498c82,_0x4dfe37,_0x6edf8a)[_0x367d81('0x14')](function(){const _0x2b9409=_0x367d81;logger[_0x2b9409('0x3')](_0x2b9409('0x0'),_0x4dfe37,_0x498c82);})['catch'](function(_0x448ca5){const _0x36cdf7=_0x367d81;logger[_0x36cdf7('0x3')](JSON[_0x36cdf7('0x1c')](_0x448ca5));});});},Migration['prototype'][_0x47cbd0('0x5')]=function(_0xf86965,_0x3f3193,_0xc54399){const _0x4bd53c=_0x47cbd0,_0x17736d=this;this[_0x4bd53c('0xb')][_0x4bd53c('0x1f')](function(){const _0x27900d=_0x4bd53c;return _0x17736d[_0x27900d('0xe')][_0x27900d('0x5')](_0xf86965,_0x3f3193,_0xc54399)['then'](function(){const _0x25ffaa=_0x27900d;logger[_0x25ffaa('0x3')](_0x25ffaa('0x17'),_0x3f3193,_0xf86965);})[_0x27900d('0xa')](function(_0x2b6732){const _0x266441=_0x27900d;logger['info'](JSON[_0x266441('0x1c')](_0x2b6732));});});},Migration[_0x47cbd0('0x1e')][_0x47cbd0('0x4')]=function(_0x149c26){const _0x42a599=_0x47cbd0,_0x20cd0b=this;this[_0x42a599('0xb')][_0x42a599('0x1f')](function(){const _0x5def22=_0x42a599;return _0x20cd0b[_0x5def22('0xe')][_0x5def22('0x4')](_0x149c26,{'force':!![]})[_0x5def22('0x14')](function(){const _0x2c1235=_0x5def22;logger[_0x2c1235('0x3')](_0x2c1235('0x11'),_0x149c26);})[_0x5def22('0xa')](function(_0x1a5b76){const _0x225934=_0x5def22;logger[_0x225934('0x3')](JSON[_0x225934('0x1c')](_0x1a5b76));});});},Migration['prototype'][_0x47cbd0('0x15')]=function(_0x239613,_0x3a3ba1,_0x509f78){const _0x13076a=_0x47cbd0,_0x111345=this;this['sequence'][_0x13076a('0x1f')](function(){const _0x53af32=_0x13076a;return _0x111345['queryInterface'][_0x53af32('0x15')](_0x239613,_0x3a3ba1,{'indexName':_0x509f78[_0x53af32('0xf')],'indicesType':_0x509f78[_0x53af32('0x10')]})[_0x53af32('0x14')](function(){const _0x18fe33=_0x53af32;logger[_0x18fe33('0x3')](_0x18fe33('0x6'),_0x239613,_0x3a3ba1[_0x18fe33('0xc')](','),_0x509f78[_0x18fe33('0xf')],_0x509f78['indicesType']);})['catch'](function(_0x431942){const _0x459718=_0x53af32;logger[_0x459718('0x3')](JSON[_0x459718('0x1c')](_0x431942));});});},Migration[_0x47cbd0('0x1e')]['removeIndex']=function(_0x1e141b,_0x59e55d){const _0x9ab3d3=_0x47cbd0,_0x32c136=this;this['sequence'][_0x9ab3d3('0x1f')](function(){const _0x2387b4=_0x9ab3d3;return _0x32c136['queryInterface']['removeIndex'](_0x1e141b,_0x59e55d)[_0x2387b4('0x14')](function(){logger['info']('removeIndex\x20%s\x20%s',_0x1e141b,_0x59e55d);})[_0x2387b4('0xa')](function(_0x2e9e65){const _0x207016=_0x2387b4;logger[_0x207016('0x3')](JSON[_0x207016('0x1c')](_0x2e9e65));});});},Migration[_0x47cbd0('0x1e')][_0x47cbd0('0x9')]=function(_0x92e5b7){const _0x3400bc=_0x47cbd0,_0x130a7a=this;this[_0x3400bc('0xb')]['enqueue'](function(){const _0x3779ee=_0x3400bc;return _0x130a7a[_0x3779ee('0xe')][_0x3779ee('0x19')][_0x3779ee('0x9')](_0x92e5b7)[_0x3779ee('0x14')](function(){const _0x34b869=_0x3779ee;logger['info'](_0x34b869('0x1b'),_0x92e5b7);})[_0x3779ee('0xa')](function(_0x14b9db){logger['info'](JSON['stringify'](_0x14b9db));});});},Migration[_0x47cbd0('0x1e')]['removeColumn']=function(_0x30ed2e,_0x3ee1ec){const _0x20a454=this;this['sequence']['enqueue'](function(){const _0x450259=a1011_0x3f42;return _0x20a454[_0x450259('0xe')][_0x450259('0x1')](_0x30ed2e,_0x3ee1ec)[_0x450259('0x14')](function(){const _0x5998ab=_0x450259;logger['info'](_0x5998ab('0x1a'),_0x3ee1ec,_0x30ed2e);})[_0x450259('0xa')](function(_0x55bb69){const _0x1d174b=_0x450259;logger[_0x1d174b('0x3')](util[_0x1d174b('0x7')](_0x55bb69,{'showHidden':![],'depth':null}));});});},Migration[_0x47cbd0('0x1e')][_0x47cbd0('0x18')]=function(_0x58c903,_0xbf1df7,_0x5e0e97){const _0x3761c4=_0x47cbd0,_0x593572=this;this[_0x3761c4('0xb')][_0x3761c4('0x1f')](function(){const _0x160650=_0x3761c4;return _0x593572[_0x160650('0xe')][_0x160650('0x18')](_0x58c903,_0xbf1df7,_0x5e0e97)[_0x160650('0x14')](function(){const _0x4173b3=_0x160650;logger[_0x4173b3('0x3')](_0x4173b3('0x12'),_0xbf1df7,_0x5e0e97,_0x58c903);})[_0x160650('0xa')](function(_0x176d07){const _0x180888=_0x160650;logger[_0x180888('0x3')](util['inspect'](_0x176d07,{'showHidden':![],'depth':null}));});});},Migration[_0x47cbd0('0x1e')][_0x47cbd0('0x16')]=function(_0x17cc90){const _0x51266f=_0x47cbd0;this[_0x51266f('0xb')][_0x51266f('0x1f')](function(){return _0x17cc90();});},module[_0x47cbd0('0x13')]={'up':function(_0x4e4ebf){return new Promise(function(_0x5935b2){const _0xfb0be9=a1011_0x3f42,_0x1bf5ee=new Migration(_0x4e4ebf);_0x1bf5ee[_0xfb0be9('0x16')](_0x5935b2);});},'down':function(){}}; \ No newline at end of file +const a1173_0x30f7=['renameColumn','queryInterface','info','sequence','exports','then','inspect','removeColumn','prototype','Changed\x20column\x20%s\x20in\x20table\x20%s','addIndex','../config/logger','changeColumn','finally','table\x20dropped\x20%s','Removed\x20column\x20%s\x20from\x20%s','removeIndex\x20%s\x20%s','indicesType','final','indexName','migration','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','removeIndex','stringify','catch','enqueue','Added\x20column\x20%s\x20to\x20%s','addColumn','query\x20%s','query'];(function(_0x27d7d3,_0x52b71e){const _0x30f7bf=function(_0x349968){while(--_0x349968){_0x27d7d3['push'](_0x27d7d3['shift']());}};_0x30f7bf(++_0x52b71e);}(a1173_0x30f7,0xdc));const a1173_0x3499=function(_0x27d7d3,_0x52b71e){_0x27d7d3=_0x27d7d3-0xbc;let _0x30f7bf=a1173_0x30f7[_0x27d7d3];return _0x30f7bf;};const a1173_0x247e8e=a1173_0x3499;'use strict';const util=require('util'),logger=require(a1173_0x247e8e(0xbd))(a1173_0x247e8e(0xc6)),Sequence=function(){};Sequence[a1173_0x247e8e(0xd8)]['enqueue']=function(_0x207d1c){const _0x33b35d=a1173_0x247e8e;this['tail']=this['tail']?this['tail'][_0x33b35d(0xbf)](_0x207d1c):_0x207d1c();};const Migration=function(_0x32dc1a){const _0x1cf649=a1173_0x247e8e;this[_0x1cf649(0xd1)]=_0x32dc1a,this[_0x1cf649(0xd3)]=new Sequence();};Migration[a1173_0x247e8e(0xd8)][a1173_0x247e8e(0xbe)]=function(_0x27f0fb,_0x2cb4d1,_0x19d835){const _0x40be34=a1173_0x247e8e,_0xa7d5bf=this;this[_0x40be34(0xd3)][_0x40be34(0xcb)](function(){const _0x536aa5=_0x40be34;return _0xa7d5bf[_0x536aa5(0xd1)]['changeColumn'](_0x27f0fb,_0x2cb4d1,_0x19d835)['then'](function(){const _0xa0f5ba=_0x536aa5;logger['info'](_0xa0f5ba(0xd9),_0x2cb4d1,_0x27f0fb);})[_0x536aa5(0xca)](function(_0xef6bf){const _0x34f43f=_0x536aa5;logger[_0x34f43f(0xd2)](JSON[_0x34f43f(0xc9)](_0xef6bf));});});},Migration[a1173_0x247e8e(0xd8)]['addColumn']=function(_0x49f008,_0x2bfc1f,_0x3fb4ee){const _0x4087ee=a1173_0x247e8e,_0x10e89f=this;this['sequence'][_0x4087ee(0xcb)](function(){const _0x1eb6ee=_0x4087ee;return _0x10e89f[_0x1eb6ee(0xd1)][_0x1eb6ee(0xcd)](_0x49f008,_0x2bfc1f,_0x3fb4ee)[_0x1eb6ee(0xd5)](function(){const _0x523ac9=_0x1eb6ee;logger[_0x523ac9(0xd2)](_0x523ac9(0xcc),_0x2bfc1f,_0x49f008);})[_0x1eb6ee(0xca)](function(_0x4bd58c){const _0x2d4e38=_0x1eb6ee;logger[_0x2d4e38(0xd2)](JSON['stringify'](_0x4bd58c));});});},Migration[a1173_0x247e8e(0xd8)]['dropTable']=function(_0x5e102d){const _0x4dc978=this;this['sequence']['enqueue'](function(){const _0x38ea63=a1173_0x3499;return _0x4dc978[_0x38ea63(0xd1)]['dropTable'](_0x5e102d,{'force':!![]})[_0x38ea63(0xd5)](function(){const _0x2dfa06=_0x38ea63;logger[_0x2dfa06(0xd2)](_0x2dfa06(0xc0),_0x5e102d);})['catch'](function(_0x5ebd1b){const _0x1cf1d9=_0x38ea63;logger[_0x1cf1d9(0xd2)](JSON['stringify'](_0x5ebd1b));});});},Migration['prototype'][a1173_0x247e8e(0xbc)]=function(_0x1f936f,_0x593ad9,_0x111cf5){const _0x257446=a1173_0x247e8e,_0x786af1=this;this[_0x257446(0xd3)][_0x257446(0xcb)](function(){const _0x22150d=_0x257446;return _0x786af1[_0x22150d(0xd1)][_0x22150d(0xbc)](_0x1f936f,_0x593ad9,{'indexName':_0x111cf5[_0x22150d(0xc5)],'indicesType':_0x111cf5[_0x22150d(0xc3)]})[_0x22150d(0xd5)](function(){const _0x343e18=_0x22150d;logger[_0x343e18(0xd2)]('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x1f936f,_0x593ad9['join'](','),_0x111cf5['indexName'],_0x111cf5[_0x343e18(0xc3)]);})[_0x22150d(0xca)](function(_0x5660d9){const _0x311dc5=_0x22150d;logger[_0x311dc5(0xd2)](JSON[_0x311dc5(0xc9)](_0x5660d9));});});},Migration['prototype'][a1173_0x247e8e(0xc8)]=function(_0xc343f4,_0x178edb){const _0x79404=a1173_0x247e8e,_0x34cbe6=this;this['sequence'][_0x79404(0xcb)](function(){const _0x490822=_0x79404;return _0x34cbe6[_0x490822(0xd1)][_0x490822(0xc8)](_0xc343f4,_0x178edb)[_0x490822(0xd5)](function(){const _0x5d7e16=_0x490822;logger[_0x5d7e16(0xd2)](_0x5d7e16(0xc2),_0xc343f4,_0x178edb);})[_0x490822(0xca)](function(_0x1e2c2f){const _0x402583=_0x490822;logger[_0x402583(0xd2)](JSON[_0x402583(0xc9)](_0x1e2c2f));});});},Migration['prototype'][a1173_0x247e8e(0xcf)]=function(_0x3d520d){const _0x285643=a1173_0x247e8e,_0x5ab45e=this;this[_0x285643(0xd3)]['enqueue'](function(){const _0x399464=_0x285643;return _0x5ab45e[_0x399464(0xd1)]['sequelize'][_0x399464(0xcf)](_0x3d520d)['then'](function(){const _0x367491=_0x399464;logger[_0x367491(0xd2)](_0x367491(0xce),_0x3d520d);})[_0x399464(0xca)](function(_0xf9ba9e){const _0x5dbd1d=_0x399464;logger[_0x5dbd1d(0xd2)](JSON[_0x5dbd1d(0xc9)](_0xf9ba9e));});});},Migration[a1173_0x247e8e(0xd8)]['removeColumn']=function(_0x412dcd,_0x1fb333){const _0x539af8=a1173_0x247e8e,_0x2d0606=this;this['sequence'][_0x539af8(0xcb)](function(){const _0xfd50d9=_0x539af8;return _0x2d0606[_0xfd50d9(0xd1)][_0xfd50d9(0xd7)](_0x412dcd,_0x1fb333)[_0xfd50d9(0xd5)](function(){const _0x1869d1=_0xfd50d9;logger[_0x1869d1(0xd2)](_0x1869d1(0xc1),_0x1fb333,_0x412dcd);})[_0xfd50d9(0xca)](function(_0x80fb59){const _0x4644bf=_0xfd50d9;logger['info'](util[_0x4644bf(0xd6)](_0x80fb59,{'showHidden':![],'depth':null}));});});},Migration[a1173_0x247e8e(0xd8)][a1173_0x247e8e(0xd0)]=function(_0x1b2cc2,_0x354235,_0x5da97f){const _0x5928ee=a1173_0x247e8e,_0x3f4196=this;this['sequence'][_0x5928ee(0xcb)](function(){const _0xa65a07=_0x5928ee;return _0x3f4196['queryInterface'][_0xa65a07(0xd0)](_0x1b2cc2,_0x354235,_0x5da97f)[_0xa65a07(0xd5)](function(){const _0x5666bf=_0xa65a07;logger['info'](_0x5666bf(0xc7),_0x354235,_0x5da97f,_0x1b2cc2);})['catch'](function(_0x56666b){const _0x35222f=_0xa65a07;logger[_0x35222f(0xd2)](util[_0x35222f(0xd6)](_0x56666b,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1173_0x247e8e(0xc4)]=function(_0x493081){const _0x2f0229=a1173_0x247e8e;this[_0x2f0229(0xd3)][_0x2f0229(0xcb)](function(){return _0x493081();});},module[a1173_0x247e8e(0xd4)]={'up':function(_0x1c2be9){return new Promise(function(_0x3148e4){const _0x217c3d=a1173_0x3499,_0x4c8f99=new Migration(_0x1c2be9);_0x4c8f99[_0x217c3d(0xc4)](_0x3148e4);});},'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 48e7ee1..e14a97e 100644 --- a/server/migrations/2.5.0.js +++ b/server/migrations/2.5.0.js @@ -1 +1 @@ -const a1012_0x3e61=['renameColumn','migration','removeIndex','final','\x20`key`\x20varchar(255)\x20NOT\x20NULL,','BOOLEAN','indicesType','transcribeAccountId','chat_interactions','\x20UNIQUE\x20KEY\x20`name`\x20(`name`),','queryInterface','query\x20%s','automaticSentiment','voice_recordings','STRING','prototype','addIndex','tempSentiment','\x20`createdAt`\x20datetime\x20NOT\x20NULL,','settings','tools_canned_answers','users','info','Changed\x20column\x20%s\x20in\x20table\x20%s','\x20`mandatoryDisposition`\x20tinyint(1)\x20DEFAULT\x20\x270\x27,','tail',')\x20ENGINE=InnoDB\x20DEFAULT\x20CHARSET=utf8;','removeIndex\x20%s\x20%s','\x20`agentTransferTimeout`\x20int(11)\x20DEFAULT\x20\x27300\x27,','sentimentAccountId','FLOAT','enqueue','INTEGER','bucket','../config/logger','stringify','addColumn','\x20`mandatoryDispositionPauseId`\x20int(11)\x20DEFAULT\x20NULL,','\x20`accountSid`\x20varchar(255)\x20DEFAULT\x20NULL,','Removed\x20column\x20%s\x20from\x20%s','transcribeRegion','\x20`description`\x20varchar(255)\x20DEFAULT\x20NULL,','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','sNegative','vidaooSessionId','transcribeName','sPositive','\x20`notificationShake`\x20tinyint(1)\x20DEFAULT\x20\x270\x27,','\x20`phone`\x20varchar(255)\x20DEFAULT\x20NULL,','table\x20dropped\x20%s','chat_websites','sNeutral','sequelize','CREATE\x20TABLE\x20`whatsapp_accounts`\x20(','\x20KEY\x20`mandatoryDispositionPauseId`\x20(`mandatoryDispositionPauseId`),','\x20`remote`\x20varchar(255)\x20NOT\x20NULL,','\x20KEY\x20`ListId`\x20(`ListId`),','sequence','whatsappCapacity','\x20`ListId`\x20int(11)\x20DEFAULT\x20NULL,','automaticTranscribe','transcribeStatus','then','TEXT','\x20`agentTransfer`\x20tinyint(1)\x20DEFAULT\x20\x270\x27,','exports','\x20`notificationSound`\x20tinyint(1)\x20DEFAULT\x20\x270\x27,','failureReason','catch','fileUri','indexName','query','\x20`authToken`\x20varchar(255)\x20DEFAULT\x20NULL,','location','\x20`queueTransferTimeout`\x20int(11)\x20DEFAULT\x20\x27300\x27,','\x20`queueTransfer`\x20tinyint(1)\x20DEFAULT\x20\x270\x27,','util','sentiment','inspect','\x20CONSTRAINT\x20`whatsapp_accounts_ibfk_2`\x20FOREIGN\x20KEY\x20(`ListId`)\x20REFERENCES\x20`cm_lists`\x20(`id`)\x20ON\x20DELETE\x20SET\x20NULL\x20ON\x20UPDATE\x20CASCADE','sentimentRegion','removeColumn','dropTable','sMixed','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','\x20`notificationTemplate`\x20text,','transcribe','join','vidaooApiKey','ALTER\x20TABLE\x20tools_dispositions\x20ADD\x20CONSTRAINT\x20`name_whatsapp`\x20UNIQUE\x20KEY\x20(`name`,`WhatsappAccountId`)','tools_dispositions','Added\x20column\x20%s\x20to\x20%s','language','changeColumn','\x20`updatedAt`\x20datetime\x20NOT\x20NULL,'];(function(_0x4a49bb,_0x3e61f6){const _0x538b63=function(_0x28ed1c){while(--_0x28ed1c){_0x4a49bb['push'](_0x4a49bb['shift']());}};_0x538b63(++_0x3e61f6);}(a1012_0x3e61,0xdb));const a1012_0x538b=function(_0x4a49bb,_0x3e61f6){_0x4a49bb=_0x4a49bb-0x0;let _0x538b63=a1012_0x3e61[_0x4a49bb];return _0x538b63;};const _0x165ce2=a1012_0x538b;'use strict';const util=require(_0x165ce2('0x2f')),logger=require(_0x165ce2('0x5'))(_0x165ce2('0x43')),Sequence=function(){};Sequence[_0x165ce2('0x51')][_0x165ce2('0x2')]=function(_0x28ed1c){const _0x20660b=_0x165ce2;this[_0x20660b('0x5b')]=this[_0x20660b('0x5b')]?this[_0x20660b('0x5b')]['finally'](_0x28ed1c):_0x28ed1c();};const Migration=function(_0x18cc8d){this['queryInterface']=_0x18cc8d,this['sequence']=new Sequence();};Migration[_0x165ce2('0x51')][_0x165ce2('0x40')]=function(_0x2c8f31,_0x5bdad8,_0x8dd182){const _0x5dec86=_0x165ce2,_0x5d9784=this;this[_0x5dec86('0x1c')]['enqueue'](function(){const _0x4e6fde=_0x5dec86;return _0x5d9784[_0x4e6fde('0x4c')][_0x4e6fde('0x40')](_0x2c8f31,_0x5bdad8,_0x8dd182)[_0x4e6fde('0x21')](function(){const _0x2c0892=_0x4e6fde;logger[_0x2c0892('0x58')](_0x2c0892('0x59'),_0x5bdad8,_0x2c8f31);})[_0x4e6fde('0x27')](function(_0x5d0feb){const _0x2fdac7=_0x4e6fde;logger['info'](JSON[_0x2fdac7('0x6')](_0x5d0feb));});});},Migration[_0x165ce2('0x51')][_0x165ce2('0x7')]=function(_0x3bc89c,_0x40ba26,_0xca419f){const _0x6e3278=_0x165ce2,_0x116d76=this;this[_0x6e3278('0x1c')][_0x6e3278('0x2')](function(){const _0x4d7dfa=_0x6e3278;return _0x116d76[_0x4d7dfa('0x4c')][_0x4d7dfa('0x7')](_0x3bc89c,_0x40ba26,_0xca419f)[_0x4d7dfa('0x21')](function(){const _0xff30f4=_0x4d7dfa;logger['info'](_0xff30f4('0x3e'),_0x40ba26,_0x3bc89c);})[_0x4d7dfa('0x27')](function(_0x1002a3){const _0xbae7c1=_0x4d7dfa;logger[_0xbae7c1('0x58')](JSON[_0xbae7c1('0x6')](_0x1002a3));});});},Migration['prototype'][_0x165ce2('0x35')]=function(_0x49d98a){const _0x382271=_0x165ce2,_0x45a41=this;this[_0x382271('0x1c')][_0x382271('0x2')](function(){const _0x33ab51=_0x382271;return _0x45a41[_0x33ab51('0x4c')][_0x33ab51('0x35')](_0x49d98a,{'force':!![]})[_0x33ab51('0x21')](function(){const _0x96c0a2=_0x33ab51;logger[_0x96c0a2('0x58')](_0x96c0a2('0x14'),_0x49d98a);})['catch'](function(_0x4f8ada){const _0x4a0858=_0x33ab51;logger[_0x4a0858('0x58')](JSON[_0x4a0858('0x6')](_0x4f8ada));});});},Migration[_0x165ce2('0x51')][_0x165ce2('0x52')]=function(_0x2b9b8c,_0x40fae5,_0x469b64){const _0x2852a1=_0x165ce2,_0x369df1=this;this[_0x2852a1('0x1c')][_0x2852a1('0x2')](function(){const _0x17eb2f=_0x2852a1;return _0x369df1['queryInterface'][_0x17eb2f('0x52')](_0x2b9b8c,_0x40fae5,{'indexName':_0x469b64[_0x17eb2f('0x29')],'indicesType':_0x469b64[_0x17eb2f('0x48')]})['then'](function(){const _0x40d233=_0x17eb2f;logger[_0x40d233('0x58')]('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x2b9b8c,_0x40fae5[_0x40d233('0x3a')](','),_0x469b64['indexName'],_0x469b64['indicesType']);})[_0x17eb2f('0x27')](function(_0x3d9bd6){const _0x376ef5=_0x17eb2f;logger[_0x376ef5('0x58')](JSON[_0x376ef5('0x6')](_0x3d9bd6));});});},Migration['prototype']['removeIndex']=function(_0x1d8da6,_0x531ca7){const _0x4ac072=_0x165ce2,_0x3f5e82=this;this[_0x4ac072('0x1c')][_0x4ac072('0x2')](function(){const _0x156569=_0x4ac072;return _0x3f5e82[_0x156569('0x4c')][_0x156569('0x44')](_0x1d8da6,_0x531ca7)['then'](function(){const _0x582a7d=_0x156569;logger[_0x582a7d('0x58')](_0x582a7d('0x5d'),_0x1d8da6,_0x531ca7);})['catch'](function(_0x1533fe){const _0x4fad17=_0x156569;logger[_0x4fad17('0x58')](JSON[_0x4fad17('0x6')](_0x1533fe));});});},Migration['prototype'][_0x165ce2('0x2a')]=function(_0x4a5f7e){const _0x5a7264=_0x165ce2,_0x1ce3a1=this;this[_0x5a7264('0x1c')]['enqueue'](function(){const _0x3f8d0c=_0x5a7264;return _0x1ce3a1[_0x3f8d0c('0x4c')][_0x3f8d0c('0x17')][_0x3f8d0c('0x2a')](_0x4a5f7e)[_0x3f8d0c('0x21')](function(){const _0x1780ab=_0x3f8d0c;logger[_0x1780ab('0x58')](_0x1780ab('0x4d'),_0x4a5f7e);})[_0x3f8d0c('0x27')](function(_0x2374fd){const _0x4cd310=_0x3f8d0c;logger[_0x4cd310('0x58')](JSON['stringify'](_0x2374fd));});});},Migration[_0x165ce2('0x51')][_0x165ce2('0x34')]=function(_0x5e62ea,_0x37e780){const _0x2f9b0f=_0x165ce2,_0x16b208=this;this[_0x2f9b0f('0x1c')][_0x2f9b0f('0x2')](function(){const _0x87e026=_0x2f9b0f;return _0x16b208['queryInterface']['removeColumn'](_0x5e62ea,_0x37e780)[_0x87e026('0x21')](function(){const _0x5c2ce4=_0x87e026;logger[_0x5c2ce4('0x58')](_0x5c2ce4('0xa'),_0x37e780,_0x5e62ea);})['catch'](function(_0x117449){const _0x14a88b=_0x87e026;logger[_0x14a88b('0x58')](util[_0x14a88b('0x31')](_0x117449,{'showHidden':![],'depth':null}));});});},Migration[_0x165ce2('0x51')]['renameColumn']=function(_0x2e38bf,_0x3fb53f,_0x10694b){const _0x43d9c3=_0x165ce2,_0x275d3b=this;this[_0x43d9c3('0x1c')][_0x43d9c3('0x2')](function(){const _0x58ae23=_0x43d9c3;return _0x275d3b[_0x58ae23('0x4c')][_0x58ae23('0x42')](_0x2e38bf,_0x3fb53f,_0x10694b)[_0x58ae23('0x21')](function(){const _0x44812e=_0x58ae23;logger[_0x44812e('0x58')](_0x44812e('0xd'),_0x3fb53f,_0x10694b,_0x2e38bf);})['catch'](function(_0x1ed556){const _0x23be4f=_0x58ae23;logger[_0x23be4f('0x58')](util[_0x23be4f('0x31')](_0x1ed556,{'showHidden':![],'depth':null}));});});},Migration[_0x165ce2('0x51')][_0x165ce2('0x45')]=function(_0x2bcbe4){const _0x4c92c1=_0x165ce2;this[_0x4c92c1('0x1c')]['enqueue'](function(){return _0x2bcbe4();});},module[_0x165ce2('0x24')]={'up':function(_0x3df07d,_0x514699){return new Promise(function(_0x190dc7){const _0x4e54de=a1012_0x538b,_0x23fe38=new Migration(_0x3df07d);_0x23fe38[_0x4e54de('0x2a')](_0x4e54de('0x18')+'\x20`id`\x20int(11)\x20NOT\x20NULL\x20AUTO_INCREMENT,'+'\x20`name`\x20varchar(255)\x20NOT\x20NULL,'+_0x4e54de('0x46')+_0x4e54de('0x1a')+'\x20`token`\x20varchar(255)\x20DEFAULT\x20NULL,'+_0x4e54de('0x13')+'\x20`type`\x20enum(\x27twilio\x27)\x20DEFAULT\x20NULL,'+_0x4e54de('0x9')+_0x4e54de('0x2b')+_0x4e54de('0x38')+_0x4e54de('0x25')+_0x4e54de('0x12')+'\x20`waitForTheAssignedAgent`\x20int(11)\x20DEFAULT\x20\x2710\x27,'+_0x4e54de('0x2e')+_0x4e54de('0x2d')+_0x4e54de('0x23')+_0x4e54de('0x5e')+_0x4e54de('0x8')+_0x4e54de('0x5a')+_0x4e54de('0xc')+_0x4e54de('0x54')+_0x4e54de('0x41')+_0x4e54de('0x1e')+'\x20PRIMARY\x20KEY\x20(`id`),'+_0x4e54de('0x4b')+_0x4e54de('0x19')+_0x4e54de('0x1b')+'\x20CONSTRAINT\x20`whatsapp_accounts_ibfk_1`\x20FOREIGN\x20KEY\x20(`mandatoryDispositionPauseId`)\x20REFERENCES\x20`tools_pauses`\x20(`id`)\x20ON\x20DELETE\x20NO\x20ACTION\x20ON\x20UPDATE\x20CASCADE,'+_0x4e54de('0x32')+_0x4e54de('0x5c')),_0x23fe38['addColumn'](_0x4e54de('0x3d'),'WhatsappAccountId',{'type':_0x514699[_0x4e54de('0x3')]}),_0x23fe38[_0x4e54de('0x7')](_0x4e54de('0x56'),'WhatsappAccountId',{'type':_0x514699[_0x4e54de('0x3')]}),_0x23fe38['addColumn'](_0x4e54de('0x57'),'whatsappPause',{'type':_0x514699[_0x4e54de('0x47')],'defaultValue':![]}),_0x23fe38['addColumn'](_0x4e54de('0x57'),_0x4e54de('0x1d'),{'type':_0x514699['BOOLEAN'],'defaultValue':![]}),_0x23fe38[_0x4e54de('0x2a')]('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'),_0x23fe38[_0x4e54de('0x2a')](_0x4e54de('0x3c')),_0x23fe38[_0x4e54de('0x2a')]('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'),_0x23fe38['query'](_0x4e54de('0x37')),_0x23fe38[_0x4e54de('0x7')](_0x4e54de('0x4a'),_0x4e54de('0xf'),{'type':_0x514699[_0x4e54de('0x22')]}),_0x23fe38[_0x4e54de('0x7')](_0x4e54de('0x15'),'vidaooEscalation',{'type':_0x514699[_0x4e54de('0x47')],'defaultValue':![]}),_0x23fe38[_0x4e54de('0x7')]('chat_websites',_0x4e54de('0x3b'),{'type':_0x514699[_0x4e54de('0x50')]}),_0x23fe38[_0x4e54de('0x7')](_0x4e54de('0x4f'),_0x4e54de('0x2c'),{'type':_0x514699['TEXT']}),_0x23fe38['addColumn'](_0x4e54de('0x4f'),_0x4e54de('0x10'),{'type':_0x514699[_0x4e54de('0x50')]}),_0x23fe38[_0x4e54de('0x7')](_0x4e54de('0x4f'),_0x4e54de('0x20'),{'type':_0x514699[_0x4e54de('0x50')],'defaultValue':'NEW'}),_0x23fe38[_0x4e54de('0x7')](_0x4e54de('0x4f'),_0x4e54de('0x28'),{'type':_0x514699['TEXT']}),_0x23fe38['addColumn'](_0x4e54de('0x4f'),'fileText',{'type':_0x514699['TEXT']}),_0x23fe38['addColumn']('voice_recordings',_0x4e54de('0x26'),{'type':_0x514699[_0x4e54de('0x22')]}),_0x23fe38[_0x4e54de('0x7')](_0x4e54de('0x4f'),_0x4e54de('0x30'),{'type':_0x514699[_0x4e54de('0x50')]}),_0x23fe38[_0x4e54de('0x7')]('voice_recordings',_0x4e54de('0x11'),{'type':_0x514699[_0x4e54de('0x1')]}),_0x23fe38['addColumn'](_0x4e54de('0x4f'),_0x4e54de('0xe'),{'type':_0x514699['FLOAT']}),_0x23fe38['addColumn'](_0x4e54de('0x4f'),_0x4e54de('0x16'),{'type':_0x514699[_0x4e54de('0x1')]}),_0x23fe38['addColumn'](_0x4e54de('0x4f'),_0x4e54de('0x36'),{'type':_0x514699[_0x4e54de('0x1')]}),_0x23fe38['addColumn']('voice_recordings',_0x4e54de('0x53'),{'type':_0x514699[_0x4e54de('0x47')]}),_0x23fe38['addColumn'](_0x4e54de('0x55'),_0x4e54de('0x39'),{'type':_0x514699['BOOLEAN']}),_0x23fe38['addColumn'](_0x4e54de('0x55'),_0x4e54de('0x1f'),{'type':_0x514699['BOOLEAN']}),_0x23fe38[_0x4e54de('0x7')](_0x4e54de('0x55'),_0x4e54de('0x49'),{'type':_0x514699['INTEGER']}),_0x23fe38[_0x4e54de('0x7')](_0x4e54de('0x55'),_0x4e54de('0xb'),{'type':_0x514699[_0x4e54de('0x50')]}),_0x23fe38[_0x4e54de('0x7')](_0x4e54de('0x55'),'sentiment',{'type':_0x514699[_0x4e54de('0x47')]}),_0x23fe38[_0x4e54de('0x7')](_0x4e54de('0x55'),_0x4e54de('0x4e'),{'type':_0x514699[_0x4e54de('0x47')]}),_0x23fe38[_0x4e54de('0x7')](_0x4e54de('0x55'),_0x4e54de('0x0'),{'type':_0x514699[_0x4e54de('0x3')]}),_0x23fe38[_0x4e54de('0x7')](_0x4e54de('0x55'),_0x4e54de('0x33'),{'type':_0x514699[_0x4e54de('0x50')]}),_0x23fe38[_0x4e54de('0x7')](_0x4e54de('0x55'),_0x4e54de('0x3f'),{'type':_0x514699[_0x4e54de('0x50')]}),_0x23fe38[_0x4e54de('0x7')](_0x4e54de('0x55'),_0x4e54de('0x4'),{'type':_0x514699[_0x4e54de('0x50')]}),_0x23fe38[_0x4e54de('0x45')](_0x190dc7);});},'down':function(){}}; \ No newline at end of file +const a1174_0x711d=['\x20`accountSid`\x20varchar(255)\x20DEFAULT\x20NULL,','\x20KEY\x20`ListId`\x20(`ListId`),','INTEGER','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','chat_interactions','BOOLEAN','\x20`name`\x20varchar(255)\x20NOT\x20NULL,','queryInterface','ALTER\x20TABLE\x20tools_dispositions\x20ADD\x20CONSTRAINT\x20`tools_dispositions_ibfk_7`\x20FOREIGN\x20KEY\x20(`WhatsappAccountId`)\x20REFERENCES\x20`whatsapp_accounts`\x20(`id`)\x20ON\x20DELETE\x20SET\x20NULL\x20ON\x20UPDATE\x20CASCADE','\x20`createdAt`\x20datetime\x20NOT\x20NULL,','chat_websites','\x20`ListId`\x20int(11)\x20DEFAULT\x20NULL,','automaticTranscribe','Added\x20column\x20%s\x20to\x20%s','\x20`description`\x20varchar(255)\x20DEFAULT\x20NULL,','sentiment','indicesType','addColumn','changeColumn','\x20`authToken`\x20varchar(255)\x20DEFAULT\x20NULL,','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','\x20`notificationTemplate`\x20text,','\x20`mandatoryDispositionPauseId`\x20int(11)\x20DEFAULT\x20NULL,','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','\x20CONSTRAINT\x20`whatsapp_accounts_ibfk_1`\x20FOREIGN\x20KEY\x20(`mandatoryDispositionPauseId`)\x20REFERENCES\x20`tools_pauses`\x20(`id`)\x20ON\x20DELETE\x20NO\x20ACTION\x20ON\x20UPDATE\x20CASCADE,','removeIndex','\x20`queueTransfer`\x20tinyint(1)\x20DEFAULT\x20\x270\x27,','inspect','\x20`mandatoryDisposition`\x20tinyint(1)\x20DEFAULT\x20\x270\x27,','\x20`phone`\x20varchar(255)\x20DEFAULT\x20NULL,','settings','\x20`id`\x20int(11)\x20NOT\x20NULL\x20AUTO_INCREMENT,','STRING','sentimentAccountId','\x20PRIMARY\x20KEY\x20(`id`),','finally','fileText','../config/logger','\x20UNIQUE\x20KEY\x20`name`\x20(`name`),','\x20CONSTRAINT\x20`whatsapp_accounts_ibfk_2`\x20FOREIGN\x20KEY\x20(`ListId`)\x20REFERENCES\x20`cm_lists`\x20(`id`)\x20ON\x20DELETE\x20SET\x20NULL\x20ON\x20UPDATE\x20CASCADE','indexName','Changed\x20column\x20%s\x20in\x20table\x20%s','transcribe','whatsappPause','vidaooEscalation','\x20`updatedAt`\x20datetime\x20NOT\x20NULL,','query','catch','transcribeStatus','\x20`remote`\x20varchar(255)\x20NOT\x20NULL,','FLOAT','enqueue','automaticSentiment','transcribeRegion',')\x20ENGINE=InnoDB\x20DEFAULT\x20CHARSET=utf8;','Removed\x20column\x20%s\x20from\x20%s','dropTable','info','\x20`token`\x20varchar(255)\x20DEFAULT\x20NULL,','NEW','prototype','\x20`notificationShake`\x20tinyint(1)\x20DEFAULT\x20\x270\x27,','final','tail','transcribeName','voice_recordings','\x20`agentTransferTimeout`\x20int(11)\x20DEFAULT\x20\x27300\x27,','renameColumn','WhatsappAccountId','table\x20dropped\x20%s','removeIndex\x20%s\x20%s','sNeutral','join','sPositive','tempSentiment','\x20`type`\x20enum(\x27twilio\x27)\x20DEFAULT\x20NULL,','sMixed','util','query\x20%s','\x20`key`\x20varchar(255)\x20NOT\x20NULL,','then','sentimentRegion','\x20`notificationSound`\x20tinyint(1)\x20DEFAULT\x20\x270\x27,','whatsappCapacity','vidaooApiKey','\x20`agentTransfer`\x20tinyint(1)\x20DEFAULT\x20\x270\x27,','addIndex','stringify','ALTER\x20TABLE\x20tools_dispositions\x20ADD\x20CONSTRAINT\x20`name_whatsapp`\x20UNIQUE\x20KEY\x20(`name`,`WhatsappAccountId`)','\x20`queueTransferTimeout`\x20int(11)\x20DEFAULT\x20\x27300\x27,','sequence','users','TEXT','removeColumn'];(function(_0x33c8f0,_0x3cdba2){const _0x711dd8=function(_0x16e9b3){while(--_0x16e9b3){_0x33c8f0['push'](_0x33c8f0['shift']());}};_0x711dd8(++_0x3cdba2);}(a1174_0x711d,0x168));const a1174_0x16e9=function(_0x33c8f0,_0x3cdba2){_0x33c8f0=_0x33c8f0-0x1c1;let _0x711dd8=a1174_0x711d[_0x33c8f0];return _0x711dd8;};const a1174_0x1160ba=a1174_0x16e9;'use strict';const util=require(a1174_0x1160ba(0x21e)),logger=require(a1174_0x1160ba(0x1f6))('migration'),Sequence=function(){};Sequence[a1174_0x1160ba(0x20d)][a1174_0x1160ba(0x204)]=function(_0x4adf51){const _0x34d503=a1174_0x1160ba;this[_0x34d503(0x210)]=this[_0x34d503(0x210)]?this['tail'][_0x34d503(0x1f4)](_0x4adf51):_0x4adf51();};const Migration=function(_0x19c186){const _0x5b324f=a1174_0x1160ba;this[_0x5b324f(0x1d8)]=_0x19c186,this['sequence']=new Sequence();};Migration[a1174_0x1160ba(0x20d)][a1174_0x1160ba(0x1e3)]=function(_0xaf54ed,_0x236d40,_0x5ae6b5){const _0x4f308a=a1174_0x1160ba,_0x266395=this;this[_0x4f308a(0x1cd)][_0x4f308a(0x204)](function(){const _0x461470=_0x4f308a;return _0x266395[_0x461470(0x1d8)][_0x461470(0x1e3)](_0xaf54ed,_0x236d40,_0x5ae6b5)[_0x461470(0x1c3)](function(){const _0x520864=_0x461470;logger[_0x520864(0x20a)](_0x520864(0x1fa),_0x236d40,_0xaf54ed);})[_0x461470(0x200)](function(_0x5d2205){logger['info'](JSON['stringify'](_0x5d2205));});});},Migration[a1174_0x1160ba(0x20d)][a1174_0x1160ba(0x1e2)]=function(_0x2e1824,_0xd7236f,_0x1e046f){const _0x1e52a0=a1174_0x1160ba,_0x3b886a=this;this[_0x1e52a0(0x1cd)]['enqueue'](function(){const _0x7d19c8=_0x1e52a0;return _0x3b886a[_0x7d19c8(0x1d8)][_0x7d19c8(0x1e2)](_0x2e1824,_0xd7236f,_0x1e046f)['then'](function(){const _0x5a797e=_0x7d19c8;logger[_0x5a797e(0x20a)](_0x5a797e(0x1de),_0xd7236f,_0x2e1824);})[_0x7d19c8(0x200)](function(_0x10b6f){const _0x303043=_0x7d19c8;logger[_0x303043(0x20a)](JSON[_0x303043(0x1ca)](_0x10b6f));});});},Migration['prototype'][a1174_0x1160ba(0x209)]=function(_0x36f371){const _0x1be263=a1174_0x1160ba,_0x55a32c=this;this[_0x1be263(0x1cd)][_0x1be263(0x204)](function(){const _0x961a56=_0x1be263;return _0x55a32c['queryInterface']['dropTable'](_0x36f371,{'force':!![]})[_0x961a56(0x1c3)](function(){const _0x14a08f=_0x961a56;logger['info'](_0x14a08f(0x216),_0x36f371);})['catch'](function(_0x9a786b){const _0x327963=_0x961a56;logger[_0x327963(0x20a)](JSON['stringify'](_0x9a786b));});});},Migration[a1174_0x1160ba(0x20d)][a1174_0x1160ba(0x1c9)]=function(_0x421e7b,_0x152b5a,_0x42d592){const _0x169667=a1174_0x1160ba,_0x141e66=this;this[_0x169667(0x1cd)][_0x169667(0x204)](function(){const _0x3df7a2=_0x169667;return _0x141e66[_0x3df7a2(0x1d8)][_0x3df7a2(0x1c9)](_0x421e7b,_0x152b5a,{'indexName':_0x42d592[_0x3df7a2(0x1f9)],'indicesType':_0x42d592[_0x3df7a2(0x1e1)]})[_0x3df7a2(0x1c3)](function(){const _0x4223cb=_0x3df7a2;logger['info']('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x421e7b,_0x152b5a[_0x4223cb(0x219)](','),_0x42d592[_0x4223cb(0x1f9)],_0x42d592[_0x4223cb(0x1e1)]);})['catch'](function(_0xdbdbde){const _0x1ecbca=_0x3df7a2;logger[_0x1ecbca(0x20a)](JSON[_0x1ecbca(0x1ca)](_0xdbdbde));});});},Migration['prototype'][a1174_0x1160ba(0x1ea)]=function(_0xec225a,_0x1e1375){const _0x432597=a1174_0x1160ba,_0x18e968=this;this[_0x432597(0x1cd)]['enqueue'](function(){const _0x5a91e0=_0x432597;return _0x18e968['queryInterface'][_0x5a91e0(0x1ea)](_0xec225a,_0x1e1375)['then'](function(){const _0x2a7532=_0x5a91e0;logger[_0x2a7532(0x20a)](_0x2a7532(0x217),_0xec225a,_0x1e1375);})[_0x5a91e0(0x200)](function(_0x3da4eb){const _0x378616=_0x5a91e0;logger[_0x378616(0x20a)](JSON['stringify'](_0x3da4eb));});});},Migration[a1174_0x1160ba(0x20d)]['query']=function(_0x4ceb91){const _0x38ecde=a1174_0x1160ba,_0x447dc1=this;this['sequence'][_0x38ecde(0x204)](function(){const _0x1c72d4=_0x38ecde;return _0x447dc1[_0x1c72d4(0x1d8)]['sequelize'][_0x1c72d4(0x1ff)](_0x4ceb91)[_0x1c72d4(0x1c3)](function(){const _0x414949=_0x1c72d4;logger[_0x414949(0x20a)](_0x414949(0x1c1),_0x4ceb91);})[_0x1c72d4(0x200)](function(_0x14bf4e){const _0x4141c8=_0x1c72d4;logger[_0x4141c8(0x20a)](JSON['stringify'](_0x14bf4e));});});},Migration[a1174_0x1160ba(0x20d)][a1174_0x1160ba(0x1d0)]=function(_0x2c0d9f,_0x26e2bb){const _0x36c2e5=a1174_0x1160ba,_0x1fc8aa=this;this['sequence'][_0x36c2e5(0x204)](function(){const _0x1e37b4=_0x36c2e5;return _0x1fc8aa[_0x1e37b4(0x1d8)]['removeColumn'](_0x2c0d9f,_0x26e2bb)[_0x1e37b4(0x1c3)](function(){const _0x38d987=_0x1e37b4;logger[_0x38d987(0x20a)](_0x38d987(0x208),_0x26e2bb,_0x2c0d9f);})[_0x1e37b4(0x200)](function(_0x51c214){const _0x554ae9=_0x1e37b4;logger[_0x554ae9(0x20a)](util['inspect'](_0x51c214,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1174_0x1160ba(0x214)]=function(_0x58ab84,_0x2e75cc,_0x28d137){const _0x21f357=this;this['sequence']['enqueue'](function(){const _0x4666b1=a1174_0x16e9;return _0x21f357['queryInterface'][_0x4666b1(0x214)](_0x58ab84,_0x2e75cc,_0x28d137)['then'](function(){const _0x547a69=_0x4666b1;logger[_0x547a69(0x20a)](_0x547a69(0x1d4),_0x2e75cc,_0x28d137,_0x58ab84);})['catch'](function(_0x373e2f){const _0x555cb6=_0x4666b1;logger[_0x555cb6(0x20a)](util[_0x555cb6(0x1ec)](_0x373e2f,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1174_0x1160ba(0x20f)]=function(_0x3efb09){const _0x585e2b=a1174_0x1160ba;this['sequence'][_0x585e2b(0x204)](function(){return _0x3efb09();});},module['exports']={'up':function(_0xe3028d,_0x21b54d){return new Promise(function(_0x260534){const _0xea862e=a1174_0x16e9,_0x3862c3=new Migration(_0xe3028d);_0x3862c3[_0xea862e(0x1ff)]('CREATE\x20TABLE\x20`whatsapp_accounts`\x20('+_0xea862e(0x1f0)+_0xea862e(0x1d7)+_0xea862e(0x1c2)+_0xea862e(0x202)+_0xea862e(0x20b)+_0xea862e(0x1ee)+_0xea862e(0x21c)+_0xea862e(0x1d1)+_0xea862e(0x1e4)+_0xea862e(0x1e6)+_0xea862e(0x1c5)+_0xea862e(0x20e)+'\x20`waitForTheAssignedAgent`\x20int(11)\x20DEFAULT\x20\x2710\x27,'+_0xea862e(0x1eb)+_0xea862e(0x1cc)+_0xea862e(0x1c8)+_0xea862e(0x213)+_0xea862e(0x1e7)+_0xea862e(0x1ed)+_0xea862e(0x1df)+_0xea862e(0x1da)+_0xea862e(0x1fe)+_0xea862e(0x1dc)+_0xea862e(0x1f3)+_0xea862e(0x1f7)+'\x20KEY\x20`mandatoryDispositionPauseId`\x20(`mandatoryDispositionPauseId`),'+_0xea862e(0x1d2)+_0xea862e(0x1e9)+_0xea862e(0x1f8)+_0xea862e(0x207)),_0x3862c3[_0xea862e(0x1e2)]('tools_dispositions',_0xea862e(0x215),{'type':_0x21b54d[_0xea862e(0x1d3)]}),_0x3862c3['addColumn']('tools_canned_answers',_0xea862e(0x215),{'type':_0x21b54d['INTEGER']}),_0x3862c3[_0xea862e(0x1e2)](_0xea862e(0x1ce),_0xea862e(0x1fc),{'type':_0x21b54d['BOOLEAN'],'defaultValue':![]}),_0x3862c3['addColumn'](_0xea862e(0x1ce),_0xea862e(0x1c6),{'type':_0x21b54d[_0xea862e(0x1d6)],'defaultValue':![]}),_0x3862c3[_0xea862e(0x1ff)](_0xea862e(0x1d9)),_0x3862c3[_0xea862e(0x1ff)](_0xea862e(0x1cb)),_0x3862c3[_0xea862e(0x1ff)](_0xea862e(0x1e5)),_0x3862c3[_0xea862e(0x1ff)](_0xea862e(0x1e8)),_0x3862c3[_0xea862e(0x1e2)](_0xea862e(0x1d5),'vidaooSessionId',{'type':_0x21b54d['TEXT']}),_0x3862c3[_0xea862e(0x1e2)](_0xea862e(0x1db),_0xea862e(0x1fd),{'type':_0x21b54d['BOOLEAN'],'defaultValue':![]}),_0x3862c3[_0xea862e(0x1e2)](_0xea862e(0x1db),_0xea862e(0x1c7),{'type':_0x21b54d['STRING']}),_0x3862c3[_0xea862e(0x1e2)]('voice_recordings','location',{'type':_0x21b54d[_0xea862e(0x1cf)]}),_0x3862c3[_0xea862e(0x1e2)](_0xea862e(0x212),_0xea862e(0x211),{'type':_0x21b54d[_0xea862e(0x1f1)]}),_0x3862c3[_0xea862e(0x1e2)](_0xea862e(0x212),_0xea862e(0x201),{'type':_0x21b54d[_0xea862e(0x1f1)],'defaultValue':_0xea862e(0x20c)}),_0x3862c3[_0xea862e(0x1e2)](_0xea862e(0x212),'fileUri',{'type':_0x21b54d['TEXT']}),_0x3862c3['addColumn'](_0xea862e(0x212),_0xea862e(0x1f5),{'type':_0x21b54d[_0xea862e(0x1cf)]}),_0x3862c3[_0xea862e(0x1e2)](_0xea862e(0x212),'failureReason',{'type':_0x21b54d[_0xea862e(0x1cf)]}),_0x3862c3[_0xea862e(0x1e2)](_0xea862e(0x212),'sentiment',{'type':_0x21b54d[_0xea862e(0x1f1)]}),_0x3862c3[_0xea862e(0x1e2)](_0xea862e(0x212),_0xea862e(0x21a),{'type':_0x21b54d[_0xea862e(0x203)]}),_0x3862c3[_0xea862e(0x1e2)](_0xea862e(0x212),'sNegative',{'type':_0x21b54d[_0xea862e(0x203)]}),_0x3862c3['addColumn'](_0xea862e(0x212),_0xea862e(0x218),{'type':_0x21b54d[_0xea862e(0x203)]}),_0x3862c3['addColumn'](_0xea862e(0x212),_0xea862e(0x21d),{'type':_0x21b54d['FLOAT']}),_0x3862c3['addColumn']('voice_recordings',_0xea862e(0x21b),{'type':_0x21b54d[_0xea862e(0x1d6)]}),_0x3862c3[_0xea862e(0x1e2)](_0xea862e(0x1ef),_0xea862e(0x1fb),{'type':_0x21b54d[_0xea862e(0x1d6)]}),_0x3862c3[_0xea862e(0x1e2)](_0xea862e(0x1ef),_0xea862e(0x1dd),{'type':_0x21b54d['BOOLEAN']}),_0x3862c3[_0xea862e(0x1e2)](_0xea862e(0x1ef),'transcribeAccountId',{'type':_0x21b54d[_0xea862e(0x1d3)]}),_0x3862c3[_0xea862e(0x1e2)](_0xea862e(0x1ef),_0xea862e(0x206),{'type':_0x21b54d[_0xea862e(0x1f1)]}),_0x3862c3[_0xea862e(0x1e2)]('settings',_0xea862e(0x1e0),{'type':_0x21b54d['BOOLEAN']}),_0x3862c3[_0xea862e(0x1e2)](_0xea862e(0x1ef),_0xea862e(0x205),{'type':_0x21b54d['BOOLEAN']}),_0x3862c3[_0xea862e(0x1e2)](_0xea862e(0x1ef),_0xea862e(0x1f2),{'type':_0x21b54d[_0xea862e(0x1d3)]}),_0x3862c3[_0xea862e(0x1e2)]('settings',_0xea862e(0x1c4),{'type':_0x21b54d[_0xea862e(0x1f1)]}),_0x3862c3[_0xea862e(0x1e2)](_0xea862e(0x1ef),'language',{'type':_0x21b54d['STRING']}),_0x3862c3[_0xea862e(0x1e2)](_0xea862e(0x1ef),'bucket',{'type':_0x21b54d['STRING']}),_0x3862c3[_0xea862e(0x20f)](_0x260534);});},'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 bdf68fc..5a1b39b 100644 --- a/server/migrations/2.5.1.js +++ b/server/migrations/2.5.1.js @@ -1 +1 @@ -const a1013_0x3679=['removeIndex','query\x20%s','changeColumn','Removed\x20column\x20%s\x20from\x20%s','addIndex','Added\x20column\x20%s\x20to\x20%s','renameColumn','stringify','queryInterface','prototype','sequelize','table\x20dropped\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','removeColumn','info','Changed\x20column\x20%s\x20in\x20table\x20%s','indexName','indicesType','enqueue','join','addIndex\x20%s\x20%s\x20%s\x20[%s]','exports','dropTable','catch','removeIndex\x20%s\x20%s','then','migration','tail','util','query','final','finally','addColumn','inspect','sequence'];(function(_0x5c9a22,_0x3679ae){const _0xbaf0b5=function(_0x4afe9a){while(--_0x4afe9a){_0x5c9a22['push'](_0x5c9a22['shift']());}};_0xbaf0b5(++_0x3679ae);}(a1013_0x3679,0x186));const a1013_0xbaf0=function(_0x5c9a22,_0x3679ae){_0x5c9a22=_0x5c9a22-0x0;let _0xbaf0b5=a1013_0x3679[_0x5c9a22];return _0xbaf0b5;};const _0x2bf469=a1013_0xbaf0;'use strict';const util=require(_0x2bf469('0x17')),logger=require('../config/logger')(_0x2bf469('0x15')),Sequence=function(){};Sequence[_0x2bf469('0x4')]['enqueue']=function(_0x4afe9a){const _0x43fb67=_0x2bf469;this[_0x43fb67('0x16')]=this[_0x43fb67('0x16')]?this[_0x43fb67('0x16')][_0x43fb67('0x1a')](_0x4afe9a):_0x4afe9a();};const Migration=function(_0x4b2c99){const _0x230dc5=_0x2bf469;this[_0x230dc5('0x3')]=_0x4b2c99,this[_0x230dc5('0x1d')]=new Sequence();};Migration[_0x2bf469('0x4')][_0x2bf469('0x20')]=function(_0x44ae5a,_0x2e5b21,_0x182a9c){const _0xc45a95=this;this['sequence']['enqueue'](function(){const _0x1cc444=a1013_0xbaf0;return _0xc45a95[_0x1cc444('0x3')]['changeColumn'](_0x44ae5a,_0x2e5b21,_0x182a9c)[_0x1cc444('0x14')](function(){const _0x23eb34=_0x1cc444;logger[_0x23eb34('0x9')](_0x23eb34('0xa'),_0x2e5b21,_0x44ae5a);})[_0x1cc444('0x12')](function(_0x47cf8d){const _0x37706a=_0x1cc444;logger[_0x37706a('0x9')](JSON[_0x37706a('0x2')](_0x47cf8d));});});},Migration[_0x2bf469('0x4')][_0x2bf469('0x1b')]=function(_0x25ddf8,_0x2495c6,_0xcbfd20){const _0x284280=_0x2bf469,_0x57efbb=this;this[_0x284280('0x1d')][_0x284280('0xd')](function(){const _0x46b1e5=_0x284280;return _0x57efbb[_0x46b1e5('0x3')][_0x46b1e5('0x1b')](_0x25ddf8,_0x2495c6,_0xcbfd20)['then'](function(){const _0x475d8f=_0x46b1e5;logger[_0x475d8f('0x9')](_0x475d8f('0x0'),_0x2495c6,_0x25ddf8);})['catch'](function(_0x224da2){const _0x5e6b51=_0x46b1e5;logger[_0x5e6b51('0x9')](JSON[_0x5e6b51('0x2')](_0x224da2));});});},Migration[_0x2bf469('0x4')][_0x2bf469('0x11')]=function(_0x247e0f){const _0x4ab57b=_0x2bf469,_0xa2360a=this;this[_0x4ab57b('0x1d')][_0x4ab57b('0xd')](function(){const _0x39a1a2=_0x4ab57b;return _0xa2360a[_0x39a1a2('0x3')][_0x39a1a2('0x11')](_0x247e0f,{'force':!![]})[_0x39a1a2('0x14')](function(){const _0x172cc2=_0x39a1a2;logger[_0x172cc2('0x9')](_0x172cc2('0x6'),_0x247e0f);})[_0x39a1a2('0x12')](function(_0x4f46f3){const _0x52b59e=_0x39a1a2;logger[_0x52b59e('0x9')](JSON['stringify'](_0x4f46f3));});});},Migration['prototype'][_0x2bf469('0x22')]=function(_0x954aaf,_0xa59192,_0x9a48cc){const _0x4d40ce=_0x2bf469,_0x1db39a=this;this[_0x4d40ce('0x1d')]['enqueue'](function(){const _0x1e3780=_0x4d40ce;return _0x1db39a[_0x1e3780('0x3')]['addIndex'](_0x954aaf,_0xa59192,{'indexName':_0x9a48cc[_0x1e3780('0xb')],'indicesType':_0x9a48cc[_0x1e3780('0xc')]})[_0x1e3780('0x14')](function(){const _0x5c70d2=_0x1e3780;logger['info'](_0x5c70d2('0xf'),_0x954aaf,_0xa59192[_0x5c70d2('0xe')](','),_0x9a48cc[_0x5c70d2('0xb')],_0x9a48cc[_0x5c70d2('0xc')]);})[_0x1e3780('0x12')](function(_0x42937f){const _0x31f979=_0x1e3780;logger[_0x31f979('0x9')](JSON[_0x31f979('0x2')](_0x42937f));});});},Migration[_0x2bf469('0x4')][_0x2bf469('0x1e')]=function(_0x446f7f,_0x2b57db){const _0x20dda1=_0x2bf469,_0x46869d=this;this[_0x20dda1('0x1d')][_0x20dda1('0xd')](function(){const _0x5c0492=_0x20dda1;return _0x46869d[_0x5c0492('0x3')][_0x5c0492('0x1e')](_0x446f7f,_0x2b57db)[_0x5c0492('0x14')](function(){const _0x217da2=_0x5c0492;logger[_0x217da2('0x9')](_0x217da2('0x13'),_0x446f7f,_0x2b57db);})[_0x5c0492('0x12')](function(_0x28d400){const _0x2fe67d=_0x5c0492;logger[_0x2fe67d('0x9')](JSON[_0x2fe67d('0x2')](_0x28d400));});});},Migration[_0x2bf469('0x4')]['query']=function(_0x3f8f3f){const _0x54943f=_0x2bf469,_0x28ee16=this;this[_0x54943f('0x1d')][_0x54943f('0xd')](function(){const _0x428b9a=_0x54943f;return _0x28ee16[_0x428b9a('0x3')][_0x428b9a('0x5')][_0x428b9a('0x18')](_0x3f8f3f)[_0x428b9a('0x14')](function(){const _0x188f88=_0x428b9a;logger[_0x188f88('0x9')](_0x188f88('0x1f'),_0x3f8f3f);})[_0x428b9a('0x12')](function(_0x4bdd31){const _0xfb5780=_0x428b9a;logger[_0xfb5780('0x9')](JSON[_0xfb5780('0x2')](_0x4bdd31));});});},Migration[_0x2bf469('0x4')]['removeColumn']=function(_0x432b26,_0x5e25e8){const _0x5ce6ff=_0x2bf469,_0x19df96=this;this[_0x5ce6ff('0x1d')][_0x5ce6ff('0xd')](function(){const _0x2a69ec=_0x5ce6ff;return _0x19df96[_0x2a69ec('0x3')][_0x2a69ec('0x8')](_0x432b26,_0x5e25e8)[_0x2a69ec('0x14')](function(){const _0x5cc240=_0x2a69ec;logger[_0x5cc240('0x9')](_0x5cc240('0x21'),_0x5e25e8,_0x432b26);})['catch'](function(_0x4ec05b){const _0x318401=_0x2a69ec;logger[_0x318401('0x9')](util[_0x318401('0x1c')](_0x4ec05b,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x2bf469('0x1')]=function(_0xc7605b,_0x2d78ef,_0x2c3369){const _0x1ebdf9=_0x2bf469,_0x2afc49=this;this[_0x1ebdf9('0x1d')][_0x1ebdf9('0xd')](function(){const _0x2b3809=_0x1ebdf9;return _0x2afc49['queryInterface']['renameColumn'](_0xc7605b,_0x2d78ef,_0x2c3369)[_0x2b3809('0x14')](function(){const _0xc7d32e=_0x2b3809;logger[_0xc7d32e('0x9')](_0xc7d32e('0x7'),_0x2d78ef,_0x2c3369,_0xc7605b);})['catch'](function(_0x274ff4){logger['info'](util['inspect'](_0x274ff4,{'showHidden':![],'depth':null}));});});},Migration[_0x2bf469('0x4')][_0x2bf469('0x19')]=function(_0x579694){const _0x5f854a=_0x2bf469;this[_0x5f854a('0x1d')][_0x5f854a('0xd')](function(){return _0x579694();});},module[_0x2bf469('0x10')]={'up':function(_0x1d7a71){return new Promise(function(_0x1a9122){const _0x1a394f=new Migration(_0x1d7a71);_0x1a394f['final'](_0x1a9122);});},'down':function(){}}; \ No newline at end of file +const a1175_0x2663=['Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','indexName','query\x20%s','catch','sequelize','util','tail','stringify','join','enqueue','removeIndex\x20%s\x20%s','removeColumn','exports','prototype','finally','addIndex\x20%s\x20%s\x20%s\x20[%s]','renameColumn','final','sequence','Removed\x20column\x20%s\x20from\x20%s','info','addIndex','then','table\x20dropped\x20%s','queryInterface','changeColumn','inspect','query','dropTable','addColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','../config/logger','Added\x20column\x20%s\x20to\x20%s'];(function(_0xdc9f84,_0x3efbdd){const _0x266316=function(_0x264272){while(--_0x264272){_0xdc9f84['push'](_0xdc9f84['shift']());}};_0x266316(++_0x3efbdd);}(a1175_0x2663,0x1a1));const a1175_0x2642=function(_0xdc9f84,_0x3efbdd){_0xdc9f84=_0xdc9f84-0x1bf;let _0x266316=a1175_0x2663[_0xdc9f84];return _0x266316;};const a1175_0x13f7c9=a1175_0x2642;'use strict';const util=require(a1175_0x13f7c9(0x1d0)),logger=require(a1175_0x13f7c9(0x1c9))('migration'),Sequence=function(){};Sequence[a1175_0x13f7c9(0x1d8)][a1175_0x13f7c9(0x1d4)]=function(_0x532872){const _0x47324e=a1175_0x13f7c9;this[_0x47324e(0x1d1)]=this[_0x47324e(0x1d1)]?this[_0x47324e(0x1d1)][_0x47324e(0x1d9)](_0x532872):_0x532872();};const Migration=function(_0x2db190){const _0x5864f3=a1175_0x13f7c9;this[_0x5864f3(0x1c2)]=_0x2db190,this[_0x5864f3(0x1dd)]=new Sequence();};Migration[a1175_0x13f7c9(0x1d8)]['changeColumn']=function(_0x31746e,_0x9988d4,_0x25b74a){const _0x3a2b81=a1175_0x13f7c9,_0x2100bc=this;this[_0x3a2b81(0x1dd)]['enqueue'](function(){const _0x39ce35=_0x3a2b81;return _0x2100bc['queryInterface'][_0x39ce35(0x1c3)](_0x31746e,_0x9988d4,_0x25b74a)[_0x39ce35(0x1c0)](function(){const _0x308ab=_0x39ce35;logger[_0x308ab(0x1df)](_0x308ab(0x1c8),_0x9988d4,_0x31746e);})[_0x39ce35(0x1ce)](function(_0x4a5caa){const _0x4de9ba=_0x39ce35;logger[_0x4de9ba(0x1df)](JSON[_0x4de9ba(0x1d2)](_0x4a5caa));});});},Migration[a1175_0x13f7c9(0x1d8)][a1175_0x13f7c9(0x1c7)]=function(_0x17326b,_0x5dcf6d,_0x5be734){const _0x459d30=a1175_0x13f7c9,_0x2901b6=this;this[_0x459d30(0x1dd)][_0x459d30(0x1d4)](function(){const _0x176a27=_0x459d30;return _0x2901b6[_0x176a27(0x1c2)]['addColumn'](_0x17326b,_0x5dcf6d,_0x5be734)['then'](function(){const _0x3df363=_0x176a27;logger[_0x3df363(0x1df)](_0x3df363(0x1ca),_0x5dcf6d,_0x17326b);})['catch'](function(_0x52703f){const _0x5ca91b=_0x176a27;logger['info'](JSON[_0x5ca91b(0x1d2)](_0x52703f));});});},Migration[a1175_0x13f7c9(0x1d8)]['dropTable']=function(_0x51a258){const _0x484bcc=a1175_0x13f7c9,_0x49b405=this;this[_0x484bcc(0x1dd)]['enqueue'](function(){const _0x5451ef=_0x484bcc;return _0x49b405[_0x5451ef(0x1c2)][_0x5451ef(0x1c6)](_0x51a258,{'force':!![]})['then'](function(){const _0x4a66d5=_0x5451ef;logger['info'](_0x4a66d5(0x1c1),_0x51a258);})[_0x5451ef(0x1ce)](function(_0x2255b5){const _0x2f1ccc=_0x5451ef;logger[_0x2f1ccc(0x1df)](JSON[_0x2f1ccc(0x1d2)](_0x2255b5));});});},Migration[a1175_0x13f7c9(0x1d8)]['addIndex']=function(_0x516273,_0xed9abb,_0x2c5f44){const _0x4a8cba=a1175_0x13f7c9,_0x2fcba6=this;this[_0x4a8cba(0x1dd)][_0x4a8cba(0x1d4)](function(){const _0x24075c=_0x4a8cba;return _0x2fcba6[_0x24075c(0x1c2)][_0x24075c(0x1bf)](_0x516273,_0xed9abb,{'indexName':_0x2c5f44['indexName'],'indicesType':_0x2c5f44['indicesType']})[_0x24075c(0x1c0)](function(){const _0x3fdb39=_0x24075c;logger[_0x3fdb39(0x1df)](_0x3fdb39(0x1da),_0x516273,_0xed9abb[_0x3fdb39(0x1d3)](','),_0x2c5f44[_0x3fdb39(0x1cc)],_0x2c5f44['indicesType']);})[_0x24075c(0x1ce)](function(_0x5925f0){const _0x3b28e3=_0x24075c;logger[_0x3b28e3(0x1df)](JSON[_0x3b28e3(0x1d2)](_0x5925f0));});});},Migration[a1175_0x13f7c9(0x1d8)]['removeIndex']=function(_0x28abbd,_0x17b8ca){const _0x2eeb2b=a1175_0x13f7c9,_0x3d6704=this;this[_0x2eeb2b(0x1dd)]['enqueue'](function(){const _0x54c2d2=_0x2eeb2b;return _0x3d6704[_0x54c2d2(0x1c2)]['removeIndex'](_0x28abbd,_0x17b8ca)['then'](function(){const _0xda1805=_0x54c2d2;logger[_0xda1805(0x1df)](_0xda1805(0x1d5),_0x28abbd,_0x17b8ca);})[_0x54c2d2(0x1ce)](function(_0x37d631){const _0x180ced=_0x54c2d2;logger[_0x180ced(0x1df)](JSON[_0x180ced(0x1d2)](_0x37d631));});});},Migration['prototype']['query']=function(_0x5ba803){const _0x2c6e35=a1175_0x13f7c9,_0x39c738=this;this[_0x2c6e35(0x1dd)][_0x2c6e35(0x1d4)](function(){const _0x4c9974=_0x2c6e35;return _0x39c738[_0x4c9974(0x1c2)][_0x4c9974(0x1cf)][_0x4c9974(0x1c5)](_0x5ba803)['then'](function(){const _0x46a8f8=_0x4c9974;logger[_0x46a8f8(0x1df)](_0x46a8f8(0x1cd),_0x5ba803);})['catch'](function(_0x362da2){const _0xe5b927=_0x4c9974;logger['info'](JSON[_0xe5b927(0x1d2)](_0x362da2));});});},Migration[a1175_0x13f7c9(0x1d8)]['removeColumn']=function(_0x230435,_0x1e0dc0){const _0x770fb2=a1175_0x13f7c9,_0x16bb89=this;this[_0x770fb2(0x1dd)][_0x770fb2(0x1d4)](function(){const _0x1d91b4=_0x770fb2;return _0x16bb89[_0x1d91b4(0x1c2)][_0x1d91b4(0x1d6)](_0x230435,_0x1e0dc0)[_0x1d91b4(0x1c0)](function(){const _0x24f0f4=_0x1d91b4;logger[_0x24f0f4(0x1df)](_0x24f0f4(0x1de),_0x1e0dc0,_0x230435);})[_0x1d91b4(0x1ce)](function(_0x66f858){const _0x18e16f=_0x1d91b4;logger[_0x18e16f(0x1df)](util['inspect'](_0x66f858,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1175_0x13f7c9(0x1db)]=function(_0x31e655,_0x1fe189,_0x155dd8){const _0x5442cd=a1175_0x13f7c9,_0x2cf4c7=this;this[_0x5442cd(0x1dd)][_0x5442cd(0x1d4)](function(){const _0x3b8523=_0x5442cd;return _0x2cf4c7['queryInterface'][_0x3b8523(0x1db)](_0x31e655,_0x1fe189,_0x155dd8)['then'](function(){const _0x26c387=_0x3b8523;logger[_0x26c387(0x1df)](_0x26c387(0x1cb),_0x1fe189,_0x155dd8,_0x31e655);})[_0x3b8523(0x1ce)](function(_0x3544e4){const _0x85b61d=_0x3b8523;logger['info'](util[_0x85b61d(0x1c4)](_0x3544e4,{'showHidden':![],'depth':null}));});});},Migration[a1175_0x13f7c9(0x1d8)][a1175_0x13f7c9(0x1dc)]=function(_0x567354){const _0x850667=a1175_0x13f7c9;this[_0x850667(0x1dd)][_0x850667(0x1d4)](function(){return _0x567354();});},module[a1175_0x13f7c9(0x1d7)]={'up':function(_0x529d85){return new Promise(function(_0x2c3bd1){const _0x1cf418=a1175_0x2642,_0x15f957=new Migration(_0x529d85);_0x15f957[_0x1cf418(0x1dc)](_0x2c3bd1);});},'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 bdfd8b7..05df194 100644 --- a/server/migrations/2.5.2.js +++ b/server/migrations/2.5.2.js @@ -1 +1 @@ -const a1014_0x59f9=['join','changeColumn','cm_hopper_final','sequence','then','tail','dialNoSuchNumberRetryFrequency','campaigns','dialMachineRetryFrequency','ALTER\x20TABLE\x20whatsapp_messages\x20ENCRYPTION=\x27Y\x27;','Removed\x20column\x20%s\x20from\x20%s','query\x20%s','ALTER\x20TABLE\x20cloud_providers\x20ENCRYPTION=\x27Y\x27;','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','countagentrejectretry','countmachineretry','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','cm_hopper','removeIndex','cm_hopper_history','catch','finally','util','dialNoSuchNumberMaxRetry','queryInterface','voice_queues','../config/logger','dialMachineMaxRetry','info','indicesType','dialAbandonedMaxRetry','addIndex','addColumn','inspect','prototype','dialAbandonedRetryFrequency','INTEGER','enqueue','migration','Changed\x20column\x20%s\x20in\x20table\x20%s','dialDropMaxRetry','countdropretry','table\x20dropped\x20%s','dropTable','countabandonedretry','indexName','countnosuchnumberretry','ALTER\x20TABLE\x20whatsapp_interactions\x20ENCRYPTION=\x27Y\x27;','dialAgentRejectRetryFrequency','dialAgentRejectMaxRetry','exports','query','final','removeIndex\x20%s\x20%s','dialDropRetryFrequency','removeColumn','stringify','ALTER\x20TABLE\x20voice_extensions\x20DROP\x20INDEX\x20voice_extensions_ibfk_7','ALTER\x20TABLE\x20whatsapp_accounts\x20ENCRYPTION=\x27Y\x27;'];(function(_0xda9fe3,_0x59f962){const _0x47f5ee=function(_0x2fff68){while(--_0x2fff68){_0xda9fe3['push'](_0xda9fe3['shift']());}};_0x47f5ee(++_0x59f962);}(a1014_0x59f9,0xbf));const a1014_0x47f5=function(_0xda9fe3,_0x59f962){_0xda9fe3=_0xda9fe3-0x0;let _0x47f5ee=a1014_0x59f9[_0xda9fe3];return _0x47f5ee;};const _0x2095d5=a1014_0x47f5;'use strict';const util=require(_0x2095d5('0xc')),logger=require(_0x2095d5('0x10'))(_0x2095d5('0x1c')),Sequence=function(){};Sequence[_0x2095d5('0x18')]['enqueue']=function(_0x2fff68){const _0xfb20f5=_0x2095d5;this[_0xfb20f5('0x36')]=this[_0xfb20f5('0x36')]?this['tail'][_0xfb20f5('0xb')](_0x2fff68):_0x2fff68();};const Migration=function(_0x280bd3){const _0x54e1f4=_0x2095d5;this['queryInterface']=_0x280bd3,this[_0x54e1f4('0x34')]=new Sequence();};Migration['prototype']['changeColumn']=function(_0x4464bd,_0x4ece9e,_0x9bbfef){const _0x1c46e6=_0x2095d5,_0x494ef7=this;this[_0x1c46e6('0x34')][_0x1c46e6('0x1b')](function(){const _0x4c1cff=_0x1c46e6;return _0x494ef7['queryInterface'][_0x4c1cff('0x32')](_0x4464bd,_0x4ece9e,_0x9bbfef)['then'](function(){const _0x5dac4c=_0x4c1cff;logger['info'](_0x5dac4c('0x1d'),_0x4ece9e,_0x4464bd);})['catch'](function(_0x3de53f){const _0x9dc9d7=_0x4c1cff;logger[_0x9dc9d7('0x12')](JSON[_0x9dc9d7('0x2e')](_0x3de53f));});});},Migration['prototype']['addColumn']=function(_0x2bd352,_0x13fa18,_0x199f77){const _0x1c1f37=_0x2095d5,_0x523b54=this;this['sequence'][_0x1c1f37('0x1b')](function(){const _0xf2bc02=_0x1c1f37;return _0x523b54[_0xf2bc02('0xe')][_0xf2bc02('0x16')](_0x2bd352,_0x13fa18,_0x199f77)['then'](function(){const _0x3978fa=_0xf2bc02;logger['info'](_0x3978fa('0x2'),_0x13fa18,_0x2bd352);})[_0xf2bc02('0xa')](function(_0x78fb42){const _0x35eaca=_0xf2bc02;logger[_0x35eaca('0x12')](JSON[_0x35eaca('0x2e')](_0x78fb42));});});},Migration['prototype']['dropTable']=function(_0x2e72cc){const _0x38dc99=_0x2095d5,_0x1c00bd=this;this['sequence'][_0x38dc99('0x1b')](function(){const _0x235daa=_0x38dc99;return _0x1c00bd['queryInterface'][_0x235daa('0x21')](_0x2e72cc,{'force':!![]})[_0x235daa('0x35')](function(){const _0x175a10=_0x235daa;logger[_0x175a10('0x12')](_0x175a10('0x20'),_0x2e72cc);})['catch'](function(_0x345fe8){const _0x18cd50=_0x235daa;logger[_0x18cd50('0x12')](JSON['stringify'](_0x345fe8));});});},Migration[_0x2095d5('0x18')][_0x2095d5('0x15')]=function(_0x35694,_0x311801,_0x24665f){const _0xc2213e=_0x2095d5,_0x5966df=this;this[_0xc2213e('0x34')]['enqueue'](function(){const _0x14716d=_0xc2213e;return _0x5966df['queryInterface']['addIndex'](_0x35694,_0x311801,{'indexName':_0x24665f[_0x14716d('0x23')],'indicesType':_0x24665f[_0x14716d('0x13')]})[_0x14716d('0x35')](function(){const _0x43f01e=_0x14716d;logger[_0x43f01e('0x12')]('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x35694,_0x311801[_0x43f01e('0x31')](','),_0x24665f[_0x43f01e('0x23')],_0x24665f[_0x43f01e('0x13')]);})[_0x14716d('0xa')](function(_0x59d801){const _0x4bc1c7=_0x14716d;logger[_0x4bc1c7('0x12')](JSON[_0x4bc1c7('0x2e')](_0x59d801));});});},Migration['prototype'][_0x2095d5('0x8')]=function(_0x269a28,_0x378ebb){const _0xb62e63=_0x2095d5,_0x8b0266=this;this[_0xb62e63('0x34')]['enqueue'](function(){const _0x390345=_0xb62e63;return _0x8b0266[_0x390345('0xe')][_0x390345('0x8')](_0x269a28,_0x378ebb)[_0x390345('0x35')](function(){const _0x5d6295=_0x390345;logger[_0x5d6295('0x12')](_0x5d6295('0x2b'),_0x269a28,_0x378ebb);})[_0x390345('0xa')](function(_0xe0bd8d){logger['info'](JSON['stringify'](_0xe0bd8d));});});},Migration[_0x2095d5('0x18')]['query']=function(_0x4776d4){const _0x2a7cdf=_0x2095d5,_0x15ad8c=this;this[_0x2a7cdf('0x34')][_0x2a7cdf('0x1b')](function(){const _0x14baf7=_0x2a7cdf;return _0x15ad8c[_0x14baf7('0xe')]['sequelize']['query'](_0x4776d4)[_0x14baf7('0x35')](function(){const _0x1ed209=_0x14baf7;logger[_0x1ed209('0x12')](_0x1ed209('0x0'),_0x4776d4);})[_0x14baf7('0xa')](function(_0xe32736){const _0x170ded=_0x14baf7;logger[_0x170ded('0x12')](JSON[_0x170ded('0x2e')](_0xe32736));});});},Migration[_0x2095d5('0x18')][_0x2095d5('0x2d')]=function(_0x26a806,_0x596a3a){const _0x4d55c8=_0x2095d5,_0xaf1d46=this;this['sequence'][_0x4d55c8('0x1b')](function(){const _0x26371f=_0x4d55c8;return _0xaf1d46[_0x26371f('0xe')][_0x26371f('0x2d')](_0x26a806,_0x596a3a)[_0x26371f('0x35')](function(){const _0x44b4d8=_0x26371f;logger[_0x44b4d8('0x12')](_0x44b4d8('0x3b'),_0x596a3a,_0x26a806);})[_0x26371f('0xa')](function(_0x3acc61){const _0x3bf8b2=_0x26371f;logger['info'](util[_0x3bf8b2('0x17')](_0x3acc61,{'showHidden':![],'depth':null}));});});},Migration[_0x2095d5('0x18')]['renameColumn']=function(_0x59e4e0,_0x37d968,_0x5100b6){const _0x17f45e=_0x2095d5,_0x5e7975=this;this[_0x17f45e('0x34')]['enqueue'](function(){return _0x5e7975['queryInterface']['renameColumn'](_0x59e4e0,_0x37d968,_0x5100b6)['then'](function(){const _0x23be3a=a1014_0x47f5;logger[_0x23be3a('0x12')](_0x23be3a('0x6'),_0x37d968,_0x5100b6,_0x59e4e0);})['catch'](function(_0x377305){const _0x4e848f=a1014_0x47f5;logger[_0x4e848f('0x12')](util['inspect'](_0x377305,{'showHidden':![],'depth':null}));});});},Migration[_0x2095d5('0x18')][_0x2095d5('0x2a')]=function(_0x4d3c23){const _0x569b11=_0x2095d5;this[_0x569b11('0x34')][_0x569b11('0x1b')](function(){return _0x4d3c23();});},module[_0x2095d5('0x28')]={'up':function(_0xe7adf4,_0x2522b8){return new Promise(function(_0x25150e){const _0x4649b2=a1014_0x47f5,_0x6fd491=new Migration(_0xe7adf4);_0x6fd491[_0x4649b2('0x29')](_0x4649b2('0x30')),_0x6fd491['query'](_0x4649b2('0x25')),_0x6fd491[_0x4649b2('0x29')](_0x4649b2('0x3a')),_0x6fd491['query']('ALTER\x20TABLE\x20report_whatsapp_queue\x20ENCRYPTION=\x27Y\x27;'),_0x6fd491[_0x4649b2('0x29')](_0x4649b2('0x1')),_0x6fd491[_0x4649b2('0x29')]('ALTER\x20TABLE\x20voice_extensions\x20DROP\x20FOREIGN\x20KEY\x20voice_extensions_ibfk_7'),_0x6fd491['query'](_0x4649b2('0x2f')),_0x6fd491[_0x4649b2('0x29')](_0x4649b2('0x3')),_0x6fd491[_0x4649b2('0x16')](_0x4649b2('0xf'),_0x4649b2('0xd'),{'type':_0x2522b8['INTEGER'],'defaultValue':0x3}),_0x6fd491[_0x4649b2('0x16')]('voice_queues','dialNoSuchNumberRetryFrequency',{'type':_0x2522b8[_0x4649b2('0x1a')],'defaultValue':0x96}),_0x6fd491[_0x4649b2('0x16')](_0x4649b2('0xf'),_0x4649b2('0x1e'),{'type':_0x2522b8[_0x4649b2('0x1a')],'defaultValue':0x3}),_0x6fd491['addColumn'](_0x4649b2('0xf'),_0x4649b2('0x2c'),{'type':_0x2522b8[_0x4649b2('0x1a')],'defaultValue':0x96}),_0x6fd491['addColumn'](_0x4649b2('0xf'),_0x4649b2('0x14'),{'type':_0x2522b8[_0x4649b2('0x1a')],'defaultValue':0x3}),_0x6fd491[_0x4649b2('0x16')](_0x4649b2('0xf'),_0x4649b2('0x19'),{'type':_0x2522b8[_0x4649b2('0x1a')],'defaultValue':0x96}),_0x6fd491[_0x4649b2('0x16')](_0x4649b2('0xf'),_0x4649b2('0x11'),{'type':_0x2522b8[_0x4649b2('0x1a')],'defaultValue':0x3}),_0x6fd491[_0x4649b2('0x16')](_0x4649b2('0xf'),_0x4649b2('0x39'),{'type':_0x2522b8[_0x4649b2('0x1a')],'defaultValue':0x96}),_0x6fd491[_0x4649b2('0x16')](_0x4649b2('0xf'),_0x4649b2('0x27'),{'type':_0x2522b8[_0x4649b2('0x1a')],'defaultValue':0x3}),_0x6fd491['addColumn'](_0x4649b2('0xf'),_0x4649b2('0x26'),{'type':_0x2522b8[_0x4649b2('0x1a')],'defaultValue':0x96}),_0x6fd491[_0x4649b2('0x16')](_0x4649b2('0x38'),_0x4649b2('0xd'),{'type':_0x2522b8['INTEGER'],'defaultValue':0x3}),_0x6fd491[_0x4649b2('0x16')](_0x4649b2('0x38'),_0x4649b2('0x37'),{'type':_0x2522b8['INTEGER'],'defaultValue':0x96}),_0x6fd491['addColumn'](_0x4649b2('0x38'),_0x4649b2('0x1e'),{'type':_0x2522b8[_0x4649b2('0x1a')],'defaultValue':0x3}),_0x6fd491[_0x4649b2('0x16')](_0x4649b2('0x38'),_0x4649b2('0x2c'),{'type':_0x2522b8['INTEGER'],'defaultValue':0x96}),_0x6fd491['addColumn'](_0x4649b2('0x38'),'dialAbandonedMaxRetry',{'type':_0x2522b8[_0x4649b2('0x1a')],'defaultValue':0x3}),_0x6fd491['addColumn'](_0x4649b2('0x38'),_0x4649b2('0x19'),{'type':_0x2522b8[_0x4649b2('0x1a')],'defaultValue':0x96}),_0x6fd491[_0x4649b2('0x16')](_0x4649b2('0x38'),_0x4649b2('0x11'),{'type':_0x2522b8['INTEGER'],'defaultValue':0x3}),_0x6fd491[_0x4649b2('0x16')](_0x4649b2('0x38'),_0x4649b2('0x39'),{'type':_0x2522b8[_0x4649b2('0x1a')],'defaultValue':0x96}),_0x6fd491['addColumn'](_0x4649b2('0x38'),_0x4649b2('0x27'),{'type':_0x2522b8[_0x4649b2('0x1a')],'defaultValue':0x3}),_0x6fd491[_0x4649b2('0x16')](_0x4649b2('0x38'),'dialAgentRejectRetryFrequency',{'type':_0x2522b8['INTEGER'],'defaultValue':0x96}),_0x6fd491[_0x4649b2('0x16')]('cm_hopper',_0x4649b2('0x24'),{'type':_0x2522b8[_0x4649b2('0x1a')],'defaultValue':0x0}),_0x6fd491[_0x4649b2('0x16')](_0x4649b2('0x7'),'countdropretry',{'type':_0x2522b8[_0x4649b2('0x1a')],'defaultValue':0x0}),_0x6fd491[_0x4649b2('0x16')]('cm_hopper','countabandonedretry',{'type':_0x2522b8[_0x4649b2('0x1a')],'defaultValue':0x0}),_0x6fd491[_0x4649b2('0x16')](_0x4649b2('0x7'),'countmachineretry',{'type':_0x2522b8[_0x4649b2('0x1a')],'defaultValue':0x0}),_0x6fd491['addColumn'](_0x4649b2('0x7'),_0x4649b2('0x4'),{'type':_0x2522b8[_0x4649b2('0x1a')],'defaultValue':0x0}),_0x6fd491[_0x4649b2('0x16')](_0x4649b2('0x33'),_0x4649b2('0x24'),{'type':_0x2522b8[_0x4649b2('0x1a')],'defaultValue':0x0}),_0x6fd491[_0x4649b2('0x16')]('cm_hopper_final',_0x4649b2('0x1f'),{'type':_0x2522b8[_0x4649b2('0x1a')],'defaultValue':0x0}),_0x6fd491[_0x4649b2('0x16')](_0x4649b2('0x33'),_0x4649b2('0x22'),{'type':_0x2522b8['INTEGER'],'defaultValue':0x0}),_0x6fd491[_0x4649b2('0x16')]('cm_hopper_final',_0x4649b2('0x5'),{'type':_0x2522b8[_0x4649b2('0x1a')],'defaultValue':0x0}),_0x6fd491[_0x4649b2('0x16')]('cm_hopper_final',_0x4649b2('0x4'),{'type':_0x2522b8['INTEGER'],'defaultValue':0x0}),_0x6fd491['addColumn'](_0x4649b2('0x9'),'countnosuchnumberretry',{'type':_0x2522b8[_0x4649b2('0x1a')],'defaultValue':0x0}),_0x6fd491[_0x4649b2('0x16')]('cm_hopper_history',_0x4649b2('0x1f'),{'type':_0x2522b8['INTEGER'],'defaultValue':0x0}),_0x6fd491[_0x4649b2('0x16')](_0x4649b2('0x9'),'countabandonedretry',{'type':_0x2522b8['INTEGER'],'defaultValue':0x0}),_0x6fd491[_0x4649b2('0x16')](_0x4649b2('0x9'),'countmachineretry',{'type':_0x2522b8[_0x4649b2('0x1a')],'defaultValue':0x0}),_0x6fd491[_0x4649b2('0x16')](_0x4649b2('0x9'),'countagentrejectretry',{'type':_0x2522b8['INTEGER'],'defaultValue':0x0}),_0x6fd491['final'](_0x25150e);});},'down':function(){}}; \ No newline at end of file +const a1176_0x3fbf=['INTEGER','addColumn','dialNoSuchNumberMaxRetry','queryInterface','campaigns','countnosuchnumberretry','../config/logger','countmachineretry','dialAgentRejectRetryFrequency','dialAbandonedMaxRetry','enqueue','dialNoSuchNumberRetryFrequency','dropTable','migration','dialDropMaxRetry','dialDropRetryFrequency','finally','addIndex','indexName','removeIndex\x20%s\x20%s','dialMachineRetryFrequency','query\x20%s','query','then','dialAgentRejectMaxRetry','countabandonedretry','ALTER\x20TABLE\x20voice_extensions\x20DROP\x20FOREIGN\x20KEY\x20voice_extensions_ibfk_7','inspect','util','ALTER\x20TABLE\x20whatsapp_messages\x20ENCRYPTION=\x27Y\x27;','changeColumn','final','cm_hopper_final','removeIndex','tail','ALTER\x20TABLE\x20voice_extensions\x20DROP\x20INDEX\x20voice_extensions_ibfk_7','cm_hopper_history','ALTER\x20TABLE\x20voice_extensions\x20ADD\x20CONSTRAINT\x20voice_extensions_ibfk_7\x20FOREIGN\x20KEY\x20(VoicePrefixId)\x20REFERENCES\x20voice_prefixes(id)\x20ON\x20UPDATE\x20CASCADE\x20ON\x20DELETE\x20CASCADE','catch','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','Added\x20column\x20%s\x20to\x20%s','dialAbandonedRetryFrequency','voice_queues','Removed\x20column\x20%s\x20from\x20%s','removeColumn','indicesType','addIndex\x20%s\x20%s\x20%s\x20[%s]','exports','ALTER\x20TABLE\x20whatsapp_accounts\x20ENCRYPTION=\x27Y\x27;','prototype','info','cm_hopper','sequence','countagentrejectretry','stringify','ALTER\x20TABLE\x20cloud_providers\x20ENCRYPTION=\x27Y\x27;','ALTER\x20TABLE\x20whatsapp_interactions\x20ENCRYPTION=\x27Y\x27;','renameColumn','dialMachineMaxRetry','countdropretry','Changed\x20column\x20%s\x20in\x20table\x20%s'];(function(_0x45a897,_0x3b0c86){const _0x3fbfab=function(_0x2d743a){while(--_0x2d743a){_0x45a897['push'](_0x45a897['shift']());}};_0x3fbfab(++_0x3b0c86);}(a1176_0x3fbf,0x1aa));const a1176_0x2d74=function(_0x45a897,_0x3b0c86){_0x45a897=_0x45a897-0x1ac;let _0x3fbfab=a1176_0x3fbf[_0x45a897];return _0x3fbfab;};const a1176_0x2a459e=a1176_0x2d74;'use strict';const util=require(a1176_0x2a459e(0x1c9)),logger=require(a1176_0x2a459e(0x1b3))(a1176_0x2a459e(0x1ba)),Sequence=function(){};Sequence[a1176_0x2a459e(0x1de)]['enqueue']=function(_0x1221ab){const _0x43a090=a1176_0x2a459e;this[_0x43a090(0x1cf)]=this[_0x43a090(0x1cf)]?this[_0x43a090(0x1cf)][_0x43a090(0x1bd)](_0x1221ab):_0x1221ab();};const Migration=function(_0x1c17e5){const _0x336cc9=a1176_0x2a459e;this[_0x336cc9(0x1b0)]=_0x1c17e5,this[_0x336cc9(0x1e1)]=new Sequence();};Migration['prototype'][a1176_0x2a459e(0x1cb)]=function(_0x39a791,_0x533d42,_0x3abc43){const _0x160cfe=a1176_0x2a459e,_0x202559=this;this[_0x160cfe(0x1e1)][_0x160cfe(0x1b7)](function(){const _0x5b969b=_0x160cfe;return _0x202559[_0x5b969b(0x1b0)][_0x5b969b(0x1cb)](_0x39a791,_0x533d42,_0x3abc43)[_0x5b969b(0x1c4)](function(){const _0x583d16=_0x5b969b;logger['info'](_0x583d16(0x1ac),_0x533d42,_0x39a791);})[_0x5b969b(0x1d3)](function(_0x242c61){const _0x3003f8=_0x5b969b;logger[_0x3003f8(0x1df)](JSON[_0x3003f8(0x1e3)](_0x242c61));});});},Migration[a1176_0x2a459e(0x1de)][a1176_0x2a459e(0x1ae)]=function(_0x51a55f,_0x7a9786,_0xa2a7c6){const _0x58dbaf=a1176_0x2a459e,_0x54630b=this;this[_0x58dbaf(0x1e1)][_0x58dbaf(0x1b7)](function(){const _0xb2473=_0x58dbaf;return _0x54630b['queryInterface'][_0xb2473(0x1ae)](_0x51a55f,_0x7a9786,_0xa2a7c6)[_0xb2473(0x1c4)](function(){const _0xb2ce64=_0xb2473;logger[_0xb2ce64(0x1df)](_0xb2ce64(0x1d5),_0x7a9786,_0x51a55f);})[_0xb2473(0x1d3)](function(_0x276c35){const _0x2f28fd=_0xb2473;logger['info'](JSON[_0x2f28fd(0x1e3)](_0x276c35));});});},Migration[a1176_0x2a459e(0x1de)][a1176_0x2a459e(0x1b9)]=function(_0x389062){const _0x4e9960=a1176_0x2a459e,_0x46a0bf=this;this[_0x4e9960(0x1e1)][_0x4e9960(0x1b7)](function(){const _0x575b72=_0x4e9960;return _0x46a0bf[_0x575b72(0x1b0)][_0x575b72(0x1b9)](_0x389062,{'force':!![]})[_0x575b72(0x1c4)](function(){const _0x47e35c=_0x575b72;logger[_0x47e35c(0x1df)]('table\x20dropped\x20%s',_0x389062);})['catch'](function(_0x304f8b){const _0x1404b4=_0x575b72;logger[_0x1404b4(0x1df)](JSON[_0x1404b4(0x1e3)](_0x304f8b));});});},Migration['prototype'][a1176_0x2a459e(0x1be)]=function(_0x354750,_0x3ae8ee,_0x322ea0){const _0x1b0835=a1176_0x2a459e,_0x594ff4=this;this[_0x1b0835(0x1e1)][_0x1b0835(0x1b7)](function(){const _0x274ad4=_0x1b0835;return _0x594ff4[_0x274ad4(0x1b0)][_0x274ad4(0x1be)](_0x354750,_0x3ae8ee,{'indexName':_0x322ea0['indexName'],'indicesType':_0x322ea0['indicesType']})['then'](function(){const _0x3203b1=_0x274ad4;logger[_0x3203b1(0x1df)](_0x3203b1(0x1db),_0x354750,_0x3ae8ee['join'](','),_0x322ea0[_0x3203b1(0x1bf)],_0x322ea0[_0x3203b1(0x1da)]);})[_0x274ad4(0x1d3)](function(_0x1f7096){const _0x5d68af=_0x274ad4;logger[_0x5d68af(0x1df)](JSON['stringify'](_0x1f7096));});});},Migration[a1176_0x2a459e(0x1de)][a1176_0x2a459e(0x1ce)]=function(_0x186d37,_0x1311a3){const _0x369e9e=a1176_0x2a459e,_0x313050=this;this['sequence'][_0x369e9e(0x1b7)](function(){const _0x84d70a=_0x369e9e;return _0x313050['queryInterface'][_0x84d70a(0x1ce)](_0x186d37,_0x1311a3)[_0x84d70a(0x1c4)](function(){const _0x3b41dd=_0x84d70a;logger[_0x3b41dd(0x1df)](_0x3b41dd(0x1c0),_0x186d37,_0x1311a3);})[_0x84d70a(0x1d3)](function(_0x47e601){const _0x24a19f=_0x84d70a;logger[_0x24a19f(0x1df)](JSON['stringify'](_0x47e601));});});},Migration['prototype'][a1176_0x2a459e(0x1c3)]=function(_0x3f8afc){const _0x1447d5=a1176_0x2a459e,_0x12e0ae=this;this[_0x1447d5(0x1e1)][_0x1447d5(0x1b7)](function(){const _0x8f76f5=_0x1447d5;return _0x12e0ae[_0x8f76f5(0x1b0)]['sequelize'][_0x8f76f5(0x1c3)](_0x3f8afc)['then'](function(){const _0x48c485=_0x8f76f5;logger[_0x48c485(0x1df)](_0x48c485(0x1c2),_0x3f8afc);})['catch'](function(_0x23e6c5){const _0x439f77=_0x8f76f5;logger[_0x439f77(0x1df)](JSON[_0x439f77(0x1e3)](_0x23e6c5));});});},Migration['prototype'][a1176_0x2a459e(0x1d9)]=function(_0x5ea9e8,_0x4927e6){const _0x162cb8=a1176_0x2a459e,_0x14dad6=this;this[_0x162cb8(0x1e1)]['enqueue'](function(){const _0x37bd5e=_0x162cb8;return _0x14dad6[_0x37bd5e(0x1b0)][_0x37bd5e(0x1d9)](_0x5ea9e8,_0x4927e6)['then'](function(){const _0x3c473d=_0x37bd5e;logger[_0x3c473d(0x1df)](_0x3c473d(0x1d8),_0x4927e6,_0x5ea9e8);})[_0x37bd5e(0x1d3)](function(_0x293028){const _0x41ae17=_0x37bd5e;logger[_0x41ae17(0x1df)](util['inspect'](_0x293028,{'showHidden':![],'depth':null}));});});},Migration[a1176_0x2a459e(0x1de)][a1176_0x2a459e(0x1e6)]=function(_0x416418,_0x4352cf,_0x58237f){const _0x823a7b=a1176_0x2a459e,_0xb1be66=this;this[_0x823a7b(0x1e1)][_0x823a7b(0x1b7)](function(){const _0x16cef9=_0x823a7b;return _0xb1be66[_0x16cef9(0x1b0)][_0x16cef9(0x1e6)](_0x416418,_0x4352cf,_0x58237f)['then'](function(){const _0x54a29d=_0x16cef9;logger[_0x54a29d(0x1df)](_0x54a29d(0x1d4),_0x4352cf,_0x58237f,_0x416418);})[_0x16cef9(0x1d3)](function(_0x4d356c){const _0x290afa=_0x16cef9;logger['info'](util[_0x290afa(0x1c8)](_0x4d356c,{'showHidden':![],'depth':null}));});});},Migration[a1176_0x2a459e(0x1de)]['final']=function(_0x2a2125){const _0x32acea=a1176_0x2a459e;this['sequence'][_0x32acea(0x1b7)](function(){return _0x2a2125();});},module[a1176_0x2a459e(0x1dc)]={'up':function(_0x2cd6b2,_0x510fac){return new Promise(function(_0x2c3ad9){const _0x38e76a=a1176_0x2d74,_0x329cfc=new Migration(_0x2cd6b2);_0x329cfc['query'](_0x38e76a(0x1dd)),_0x329cfc[_0x38e76a(0x1c3)](_0x38e76a(0x1e5)),_0x329cfc['query'](_0x38e76a(0x1ca)),_0x329cfc[_0x38e76a(0x1c3)]('ALTER\x20TABLE\x20report_whatsapp_queue\x20ENCRYPTION=\x27Y\x27;'),_0x329cfc['query'](_0x38e76a(0x1e4)),_0x329cfc[_0x38e76a(0x1c3)](_0x38e76a(0x1c7)),_0x329cfc[_0x38e76a(0x1c3)](_0x38e76a(0x1d0)),_0x329cfc[_0x38e76a(0x1c3)](_0x38e76a(0x1d2)),_0x329cfc[_0x38e76a(0x1ae)]('voice_queues','dialNoSuchNumberMaxRetry',{'type':_0x510fac[_0x38e76a(0x1ad)],'defaultValue':0x3}),_0x329cfc[_0x38e76a(0x1ae)](_0x38e76a(0x1d7),'dialNoSuchNumberRetryFrequency',{'type':_0x510fac[_0x38e76a(0x1ad)],'defaultValue':0x96}),_0x329cfc['addColumn'](_0x38e76a(0x1d7),_0x38e76a(0x1bb),{'type':_0x510fac[_0x38e76a(0x1ad)],'defaultValue':0x3}),_0x329cfc[_0x38e76a(0x1ae)](_0x38e76a(0x1d7),_0x38e76a(0x1bc),{'type':_0x510fac[_0x38e76a(0x1ad)],'defaultValue':0x96}),_0x329cfc[_0x38e76a(0x1ae)](_0x38e76a(0x1d7),'dialAbandonedMaxRetry',{'type':_0x510fac[_0x38e76a(0x1ad)],'defaultValue':0x3}),_0x329cfc[_0x38e76a(0x1ae)](_0x38e76a(0x1d7),_0x38e76a(0x1d6),{'type':_0x510fac[_0x38e76a(0x1ad)],'defaultValue':0x96}),_0x329cfc[_0x38e76a(0x1ae)](_0x38e76a(0x1d7),_0x38e76a(0x1e7),{'type':_0x510fac[_0x38e76a(0x1ad)],'defaultValue':0x3}),_0x329cfc['addColumn'](_0x38e76a(0x1d7),_0x38e76a(0x1c1),{'type':_0x510fac[_0x38e76a(0x1ad)],'defaultValue':0x96}),_0x329cfc['addColumn'](_0x38e76a(0x1d7),_0x38e76a(0x1c5),{'type':_0x510fac[_0x38e76a(0x1ad)],'defaultValue':0x3}),_0x329cfc[_0x38e76a(0x1ae)](_0x38e76a(0x1d7),_0x38e76a(0x1b5),{'type':_0x510fac['INTEGER'],'defaultValue':0x96}),_0x329cfc[_0x38e76a(0x1ae)](_0x38e76a(0x1b1),_0x38e76a(0x1af),{'type':_0x510fac[_0x38e76a(0x1ad)],'defaultValue':0x3}),_0x329cfc['addColumn'](_0x38e76a(0x1b1),_0x38e76a(0x1b8),{'type':_0x510fac['INTEGER'],'defaultValue':0x96}),_0x329cfc[_0x38e76a(0x1ae)]('campaigns','dialDropMaxRetry',{'type':_0x510fac[_0x38e76a(0x1ad)],'defaultValue':0x3}),_0x329cfc['addColumn'](_0x38e76a(0x1b1),_0x38e76a(0x1bc),{'type':_0x510fac[_0x38e76a(0x1ad)],'defaultValue':0x96}),_0x329cfc[_0x38e76a(0x1ae)](_0x38e76a(0x1b1),_0x38e76a(0x1b6),{'type':_0x510fac[_0x38e76a(0x1ad)],'defaultValue':0x3}),_0x329cfc[_0x38e76a(0x1ae)]('campaigns',_0x38e76a(0x1d6),{'type':_0x510fac[_0x38e76a(0x1ad)],'defaultValue':0x96}),_0x329cfc[_0x38e76a(0x1ae)](_0x38e76a(0x1b1),'dialMachineMaxRetry',{'type':_0x510fac[_0x38e76a(0x1ad)],'defaultValue':0x3}),_0x329cfc[_0x38e76a(0x1ae)](_0x38e76a(0x1b1),_0x38e76a(0x1c1),{'type':_0x510fac['INTEGER'],'defaultValue':0x96}),_0x329cfc['addColumn'](_0x38e76a(0x1b1),'dialAgentRejectMaxRetry',{'type':_0x510fac[_0x38e76a(0x1ad)],'defaultValue':0x3}),_0x329cfc[_0x38e76a(0x1ae)](_0x38e76a(0x1b1),_0x38e76a(0x1b5),{'type':_0x510fac[_0x38e76a(0x1ad)],'defaultValue':0x96}),_0x329cfc['addColumn'](_0x38e76a(0x1e0),'countnosuchnumberretry',{'type':_0x510fac[_0x38e76a(0x1ad)],'defaultValue':0x0}),_0x329cfc[_0x38e76a(0x1ae)](_0x38e76a(0x1e0),_0x38e76a(0x1e8),{'type':_0x510fac[_0x38e76a(0x1ad)],'defaultValue':0x0}),_0x329cfc['addColumn'](_0x38e76a(0x1e0),'countabandonedretry',{'type':_0x510fac[_0x38e76a(0x1ad)],'defaultValue':0x0}),_0x329cfc[_0x38e76a(0x1ae)](_0x38e76a(0x1e0),_0x38e76a(0x1b4),{'type':_0x510fac[_0x38e76a(0x1ad)],'defaultValue':0x0}),_0x329cfc[_0x38e76a(0x1ae)]('cm_hopper',_0x38e76a(0x1e2),{'type':_0x510fac['INTEGER'],'defaultValue':0x0}),_0x329cfc['addColumn'](_0x38e76a(0x1cd),_0x38e76a(0x1b2),{'type':_0x510fac[_0x38e76a(0x1ad)],'defaultValue':0x0}),_0x329cfc[_0x38e76a(0x1ae)]('cm_hopper_final',_0x38e76a(0x1e8),{'type':_0x510fac[_0x38e76a(0x1ad)],'defaultValue':0x0}),_0x329cfc['addColumn']('cm_hopper_final','countabandonedretry',{'type':_0x510fac[_0x38e76a(0x1ad)],'defaultValue':0x0}),_0x329cfc['addColumn'](_0x38e76a(0x1cd),'countmachineretry',{'type':_0x510fac[_0x38e76a(0x1ad)],'defaultValue':0x0}),_0x329cfc[_0x38e76a(0x1ae)](_0x38e76a(0x1cd),'countagentrejectretry',{'type':_0x510fac['INTEGER'],'defaultValue':0x0}),_0x329cfc['addColumn'](_0x38e76a(0x1d1),_0x38e76a(0x1b2),{'type':_0x510fac['INTEGER'],'defaultValue':0x0}),_0x329cfc[_0x38e76a(0x1ae)]('cm_hopper_history',_0x38e76a(0x1e8),{'type':_0x510fac[_0x38e76a(0x1ad)],'defaultValue':0x0}),_0x329cfc[_0x38e76a(0x1ae)](_0x38e76a(0x1d1),_0x38e76a(0x1c6),{'type':_0x510fac[_0x38e76a(0x1ad)],'defaultValue':0x0}),_0x329cfc['addColumn']('cm_hopper_history',_0x38e76a(0x1b4),{'type':_0x510fac[_0x38e76a(0x1ad)],'defaultValue':0x0}),_0x329cfc[_0x38e76a(0x1ae)](_0x38e76a(0x1d1),_0x38e76a(0x1e2),{'type':_0x510fac[_0x38e76a(0x1ad)],'defaultValue':0x0}),_0x329cfc[_0x38e76a(0x1cc)](_0x2c3ad9);});},'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 4e9d8ea..a8689f2 100644 --- a/server/migrations/2.5.3.js +++ b/server/migrations/2.5.3.js @@ -1 +1 @@ -const a1015_0x3e4a=['prototype','dropTable','#011F6A','catch','chat_websites','then','addIndex\x20%s\x20%s\x20%s\x20[%s]','renameColumn','queryInterface','tail','Changed\x20column\x20%s\x20in\x20table\x20%s','inspect','enqueue','sequence','stringify','../config/logger','exports','query\x20%s','STRING','removeIndex\x20%s\x20%s','indexName','join','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','sequelize','changeColumn','color_button','removeIndex','Removed\x20column\x20%s\x20from\x20%s','query','migration','Added\x20column\x20%s\x20to\x20%s','removeColumn','info','addColumn','indicesType','final'];(function(_0x4a7e50,_0x3e4adb){const _0x3acbf6=function(_0x16edf3){while(--_0x16edf3){_0x4a7e50['push'](_0x4a7e50['shift']());}};_0x3acbf6(++_0x3e4adb);}(a1015_0x3e4a,0x1ca));const a1015_0x3acb=function(_0x4a7e50,_0x3e4adb){_0x4a7e50=_0x4a7e50-0x0;let _0x3acbf6=a1015_0x3e4a[_0x4a7e50];return _0x3acbf6;};const _0x3650cb=a1015_0x3acb;'use strict';const util=require('util'),logger=require(_0x3650cb('0x19'))(_0x3650cb('0x3')),Sequence=function(){};Sequence['prototype'][_0x3650cb('0x16')]=function(_0x16edf3){const _0x26805a=_0x3650cb;this[_0x26805a('0x13')]=this[_0x26805a('0x13')]?this[_0x26805a('0x13')]['finally'](_0x16edf3):_0x16edf3();};const Migration=function(_0xab038f){const _0x598d1f=_0x3650cb;this[_0x598d1f('0x12')]=_0xab038f,this[_0x598d1f('0x17')]=new Sequence();};Migration['prototype']['changeColumn']=function(_0x2c9439,_0x562c77,_0x329cfc){const _0xc8cfff=this;this['sequence']['enqueue'](function(){const _0xa649b4=a1015_0x3acb;return _0xc8cfff[_0xa649b4('0x12')][_0xa649b4('0x22')](_0x2c9439,_0x562c77,_0x329cfc)[_0xa649b4('0xf')](function(){const _0x279c16=_0xa649b4;logger[_0x279c16('0x6')](_0x279c16('0x14'),_0x562c77,_0x2c9439);})[_0xa649b4('0xd')](function(_0x5e2395){const _0x3278b1=_0xa649b4;logger[_0x3278b1('0x6')](JSON[_0x3278b1('0x18')](_0x5e2395));});});},Migration[_0x3650cb('0xa')]['addColumn']=function(_0x512d3a,_0x359ae6,_0x49b2d3){const _0x433798=_0x3650cb,_0x180087=this;this[_0x433798('0x17')][_0x433798('0x16')](function(){const _0x371517=_0x433798;return _0x180087['queryInterface'][_0x371517('0x7')](_0x512d3a,_0x359ae6,_0x49b2d3)[_0x371517('0xf')](function(){const _0x4ff010=_0x371517;logger['info'](_0x4ff010('0x4'),_0x359ae6,_0x512d3a);})[_0x371517('0xd')](function(_0x6b612e){const _0x5c40d7=_0x371517;logger[_0x5c40d7('0x6')](JSON['stringify'](_0x6b612e));});});},Migration[_0x3650cb('0xa')][_0x3650cb('0xb')]=function(_0x5af8b0){const _0x3cd54b=_0x3650cb,_0x369de5=this;this[_0x3cd54b('0x17')]['enqueue'](function(){const _0x46da8c=_0x3cd54b;return _0x369de5[_0x46da8c('0x12')]['dropTable'](_0x5af8b0,{'force':!![]})[_0x46da8c('0xf')](function(){const _0x3aa20a=_0x46da8c;logger[_0x3aa20a('0x6')]('table\x20dropped\x20%s',_0x5af8b0);})[_0x46da8c('0xd')](function(_0x52c953){const _0x3dca87=_0x46da8c;logger[_0x3dca87('0x6')](JSON[_0x3dca87('0x18')](_0x52c953));});});},Migration[_0x3650cb('0xa')]['addIndex']=function(_0x3db572,_0x142ed1,_0x4187e5){const _0xae0da5=_0x3650cb,_0xc68bb8=this;this['sequence'][_0xae0da5('0x16')](function(){const _0x4ed905=_0xae0da5;return _0xc68bb8[_0x4ed905('0x12')]['addIndex'](_0x3db572,_0x142ed1,{'indexName':_0x4187e5['indexName'],'indicesType':_0x4187e5[_0x4ed905('0x8')]})['then'](function(){const _0x14b848=_0x4ed905;logger[_0x14b848('0x6')](_0x14b848('0x10'),_0x3db572,_0x142ed1[_0x14b848('0x1f')](','),_0x4187e5[_0x14b848('0x1e')],_0x4187e5['indicesType']);})['catch'](function(_0x4fb4e5){const _0x4eea2a=_0x4ed905;logger[_0x4eea2a('0x6')](JSON[_0x4eea2a('0x18')](_0x4fb4e5));});});},Migration[_0x3650cb('0xa')][_0x3650cb('0x0')]=function(_0x21e534,_0x398c6c){const _0x4da5a0=_0x3650cb,_0xb2aae9=this;this[_0x4da5a0('0x17')][_0x4da5a0('0x16')](function(){const _0x277a2b=_0x4da5a0;return _0xb2aae9[_0x277a2b('0x12')][_0x277a2b('0x0')](_0x21e534,_0x398c6c)['then'](function(){const _0x59899c=_0x277a2b;logger['info'](_0x59899c('0x1d'),_0x21e534,_0x398c6c);})['catch'](function(_0x200d3b){const _0x482ade=_0x277a2b;logger[_0x482ade('0x6')](JSON['stringify'](_0x200d3b));});});},Migration['prototype'][_0x3650cb('0x2')]=function(_0x31ee3a){const _0x5112fd=_0x3650cb,_0x110124=this;this[_0x5112fd('0x17')][_0x5112fd('0x16')](function(){const _0xab9762=_0x5112fd;return _0x110124['queryInterface'][_0xab9762('0x21')][_0xab9762('0x2')](_0x31ee3a)[_0xab9762('0xf')](function(){const _0x4cd527=_0xab9762;logger['info'](_0x4cd527('0x1b'),_0x31ee3a);})[_0xab9762('0xd')](function(_0x4f9930){const _0x409454=_0xab9762;logger['info'](JSON[_0x409454('0x18')](_0x4f9930));});});},Migration['prototype'][_0x3650cb('0x5')]=function(_0x2b77de,_0x217957){const _0x1fc483=_0x3650cb,_0x5c5aee=this;this[_0x1fc483('0x17')][_0x1fc483('0x16')](function(){const _0x26af3e=_0x1fc483;return _0x5c5aee['queryInterface']['removeColumn'](_0x2b77de,_0x217957)['then'](function(){const _0x17923d=a1015_0x3acb;logger[_0x17923d('0x6')](_0x17923d('0x1'),_0x217957,_0x2b77de);})[_0x26af3e('0xd')](function(_0x335979){const _0x384a3c=_0x26af3e;logger[_0x384a3c('0x6')](util[_0x384a3c('0x15')](_0x335979,{'showHidden':![],'depth':null}));});});},Migration['prototype']['renameColumn']=function(_0x5caa9f,_0x411844,_0x24c115){const _0x112bf0=_0x3650cb,_0x5bc726=this;this[_0x112bf0('0x17')][_0x112bf0('0x16')](function(){const _0x21d50a=_0x112bf0;return _0x5bc726[_0x21d50a('0x12')][_0x21d50a('0x11')](_0x5caa9f,_0x411844,_0x24c115)[_0x21d50a('0xf')](function(){const _0x505db8=_0x21d50a;logger[_0x505db8('0x6')](_0x505db8('0x20'),_0x411844,_0x24c115,_0x5caa9f);})[_0x21d50a('0xd')](function(_0x4ca63c){const _0x2ffdbe=_0x21d50a;logger['info'](util[_0x2ffdbe('0x15')](_0x4ca63c,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x3650cb('0x9')]=function(_0x293776){const _0x4dc3f7=_0x3650cb;this[_0x4dc3f7('0x17')][_0x4dc3f7('0x16')](function(){return _0x293776();});},module[_0x3650cb('0x1a')]={'up':function(_0x293c5e,_0x57a342){return new Promise(function(_0x114ce3){const _0x845069=a1015_0x3acb,_0x267e23=new Migration(_0x293c5e);_0x267e23[_0x845069('0x22')](_0x845069('0xe'),'color',{'type':_0x57a342[_0x845069('0x1c')],'allowNull':![],'defaultValue':_0x845069('0xc'),'validate':{'notEmpty':!![]}}),_0x267e23[_0x845069('0x22')](_0x845069('0xe'),_0x845069('0x23'),{'type':_0x57a342['STRING'],'allowNull':![],'defaultValue':'#011F6A','validate':{'notEmpty':!![]}}),_0x267e23[_0x845069('0x9')](_0x114ce3);});},'down':function(){}}; \ No newline at end of file +const a1177_0x5d69=['indicesType','color','final','info','removeIndex','Added\x20column\x20%s\x20to\x20%s','removeColumn','chat_websites','then','prototype','inspect','color_button','query','changeColumn','finally','../config/logger','dropTable','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','addIndex','removeIndex\x20%s\x20%s','Removed\x20column\x20%s\x20from\x20%s','table\x20dropped\x20%s','sequelize','STRING','join','enqueue','renameColumn','catch','util','sequence','#011F6A','addColumn','tail','stringify','queryInterface'];(function(_0x2d4da1,_0x4bc37f){const _0x5d6933=function(_0x539d94){while(--_0x539d94){_0x2d4da1['push'](_0x2d4da1['shift']());}};_0x5d6933(++_0x4bc37f);}(a1177_0x5d69,0x82));const a1177_0x539d=function(_0x2d4da1,_0x4bc37f){_0x2d4da1=_0x2d4da1-0x1a8;let _0x5d6933=a1177_0x5d69[_0x2d4da1];return _0x5d6933;};const a1177_0x4a2e98=a1177_0x539d;'use strict';const util=require(a1177_0x4a2e98(0x1ab)),logger=require(a1177_0x4a2e98(0x1c1))('migration'),Sequence=function(){};Sequence[a1177_0x4a2e98(0x1bb)][a1177_0x4a2e98(0x1a8)]=function(_0x21da23){const _0x27a490=a1177_0x4a2e98;this['tail']=this['tail']?this[_0x27a490(0x1af)][_0x27a490(0x1c0)](_0x21da23):_0x21da23();};const Migration=function(_0x1e5586){const _0x46393c=a1177_0x4a2e98;this['queryInterface']=_0x1e5586,this[_0x46393c(0x1ac)]=new Sequence();};Migration[a1177_0x4a2e98(0x1bb)][a1177_0x4a2e98(0x1bf)]=function(_0x565889,_0x38bf58,_0x2fbe25){const _0x6dc30d=this;this['sequence']['enqueue'](function(){const _0x3423ac=a1177_0x539d;return _0x6dc30d[_0x3423ac(0x1b1)][_0x3423ac(0x1bf)](_0x565889,_0x38bf58,_0x2fbe25)['then'](function(){const _0x287969=_0x3423ac;logger[_0x287969(0x1b5)]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x38bf58,_0x565889);})[_0x3423ac(0x1aa)](function(_0x324542){const _0x1d427c=_0x3423ac;logger['info'](JSON[_0x1d427c(0x1b0)](_0x324542));});});},Migration[a1177_0x4a2e98(0x1bb)]['addColumn']=function(_0x2e529c,_0x4aef12,_0x4e3015){const _0x4745ed=a1177_0x4a2e98,_0x15aa5a=this;this[_0x4745ed(0x1ac)]['enqueue'](function(){const _0xaf78d0=_0x4745ed;return _0x15aa5a[_0xaf78d0(0x1b1)][_0xaf78d0(0x1ae)](_0x2e529c,_0x4aef12,_0x4e3015)[_0xaf78d0(0x1ba)](function(){const _0x5d1174=_0xaf78d0;logger['info'](_0x5d1174(0x1b7),_0x4aef12,_0x2e529c);})['catch'](function(_0x1b60b6){const _0x4a7f7a=_0xaf78d0;logger[_0x4a7f7a(0x1b5)](JSON[_0x4a7f7a(0x1b0)](_0x1b60b6));});});},Migration['prototype'][a1177_0x4a2e98(0x1c2)]=function(_0x291744){const _0x4621be=a1177_0x4a2e98,_0x3de277=this;this['sequence'][_0x4621be(0x1a8)](function(){const _0x5f00df=_0x4621be;return _0x3de277[_0x5f00df(0x1b1)][_0x5f00df(0x1c2)](_0x291744,{'force':!![]})[_0x5f00df(0x1ba)](function(){const _0xa9486d=_0x5f00df;logger[_0xa9486d(0x1b5)](_0xa9486d(0x1c7),_0x291744);})['catch'](function(_0x3ddceb){const _0x3b4b5f=_0x5f00df;logger[_0x3b4b5f(0x1b5)](JSON[_0x3b4b5f(0x1b0)](_0x3ddceb));});});},Migration[a1177_0x4a2e98(0x1bb)][a1177_0x4a2e98(0x1c4)]=function(_0x5b494b,_0x2754fb,_0x59b494){const _0x3a0a81=a1177_0x4a2e98,_0x5da8aa=this;this[_0x3a0a81(0x1ac)][_0x3a0a81(0x1a8)](function(){const _0x59f4f6=_0x3a0a81;return _0x5da8aa[_0x59f4f6(0x1b1)][_0x59f4f6(0x1c4)](_0x5b494b,_0x2754fb,{'indexName':_0x59b494['indexName'],'indicesType':_0x59b494[_0x59f4f6(0x1b2)]})[_0x59f4f6(0x1ba)](function(){const _0x30a751=_0x59f4f6;logger['info']('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x5b494b,_0x2754fb[_0x30a751(0x1ca)](','),_0x59b494['indexName'],_0x59b494['indicesType']);})['catch'](function(_0x59e7ec){logger['info'](JSON['stringify'](_0x59e7ec));});});},Migration[a1177_0x4a2e98(0x1bb)][a1177_0x4a2e98(0x1b6)]=function(_0x368157,_0x4667ea){const _0x5c0632=a1177_0x4a2e98,_0xa065d=this;this['sequence'][_0x5c0632(0x1a8)](function(){const _0x5c3613=_0x5c0632;return _0xa065d[_0x5c3613(0x1b1)][_0x5c3613(0x1b6)](_0x368157,_0x4667ea)['then'](function(){const _0x1315a9=_0x5c3613;logger['info'](_0x1315a9(0x1c5),_0x368157,_0x4667ea);})[_0x5c3613(0x1aa)](function(_0x3a83b2){const _0x4b5ddd=_0x5c3613;logger[_0x4b5ddd(0x1b5)](JSON[_0x4b5ddd(0x1b0)](_0x3a83b2));});});},Migration[a1177_0x4a2e98(0x1bb)]['query']=function(_0x379dbd){const _0x400124=a1177_0x4a2e98,_0x57661e=this;this[_0x400124(0x1ac)][_0x400124(0x1a8)](function(){const _0x1187ed=_0x400124;return _0x57661e['queryInterface'][_0x1187ed(0x1c8)][_0x1187ed(0x1be)](_0x379dbd)[_0x1187ed(0x1ba)](function(){const _0x51f261=_0x1187ed;logger[_0x51f261(0x1b5)]('query\x20%s',_0x379dbd);})[_0x1187ed(0x1aa)](function(_0xdd1294){const _0x33e75f=_0x1187ed;logger[_0x33e75f(0x1b5)](JSON['stringify'](_0xdd1294));});});},Migration[a1177_0x4a2e98(0x1bb)][a1177_0x4a2e98(0x1b8)]=function(_0x4d9c1b,_0x5b97bb){const _0x403dde=a1177_0x4a2e98,_0x46d558=this;this[_0x403dde(0x1ac)]['enqueue'](function(){const _0x1f5049=_0x403dde;return _0x46d558[_0x1f5049(0x1b1)]['removeColumn'](_0x4d9c1b,_0x5b97bb)[_0x1f5049(0x1ba)](function(){const _0x55bd11=_0x1f5049;logger[_0x55bd11(0x1b5)](_0x55bd11(0x1c6),_0x5b97bb,_0x4d9c1b);})[_0x1f5049(0x1aa)](function(_0x3fc84d){const _0x5dbf7c=_0x1f5049;logger[_0x5dbf7c(0x1b5)](util[_0x5dbf7c(0x1bc)](_0x3fc84d,{'showHidden':![],'depth':null}));});});},Migration[a1177_0x4a2e98(0x1bb)][a1177_0x4a2e98(0x1a9)]=function(_0x3c8b14,_0x1596a4,_0x22c267){const _0x31d820=a1177_0x4a2e98,_0x4ee799=this;this['sequence'][_0x31d820(0x1a8)](function(){const _0x5b3126=_0x31d820;return _0x4ee799[_0x5b3126(0x1b1)][_0x5b3126(0x1a9)](_0x3c8b14,_0x1596a4,_0x22c267)['then'](function(){const _0x8c02df=_0x5b3126;logger['info'](_0x8c02df(0x1c3),_0x1596a4,_0x22c267,_0x3c8b14);})[_0x5b3126(0x1aa)](function(_0x2f65f3){const _0x4484e6=_0x5b3126;logger[_0x4484e6(0x1b5)](util[_0x4484e6(0x1bc)](_0x2f65f3,{'showHidden':![],'depth':null}));});});},Migration[a1177_0x4a2e98(0x1bb)][a1177_0x4a2e98(0x1b4)]=function(_0x3ed3e4){const _0x38eb08=a1177_0x4a2e98;this[_0x38eb08(0x1ac)]['enqueue'](function(){return _0x3ed3e4();});},module['exports']={'up':function(_0x371ae3,_0x566404){return new Promise(function(_0x2a8f8d){const _0xa0d22b=a1177_0x539d,_0x371294=new Migration(_0x371ae3);_0x371294[_0xa0d22b(0x1bf)]('chat_websites',_0xa0d22b(0x1b3),{'type':_0x566404[_0xa0d22b(0x1c9)],'allowNull':![],'defaultValue':'#011F6A','validate':{'notEmpty':!![]}}),_0x371294[_0xa0d22b(0x1bf)](_0xa0d22b(0x1b9),_0xa0d22b(0x1bd),{'type':_0x566404[_0xa0d22b(0x1c9)],'allowNull':![],'defaultValue':_0xa0d22b(0x1ad),'validate':{'notEmpty':!![]}}),_0x371294[_0xa0d22b(0x1b4)](_0x2a8f8d);});},'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 fde97dc..ef33639 100644 --- a/server/migrations/2.5.4.js +++ b/server/migrations/2.5.4.js @@ -1 +1 @@ -const a1016_0x27ca=['query','Removed\x20column\x20%s\x20from\x20%s','../config/logger','join','Added\x20column\x20%s\x20to\x20%s','changeColumn','inspect','removeIndex','dropTable','removeColumn','finally','enqueue','table\x20dropped\x20%s','util','sequelize','queryInterface','indicesType','Changed\x20column\x20%s\x20in\x20table\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','info','stringify','sequence','indexName','tail','renameColumn','prototype','final','removeIndex\x20%s\x20%s','addIndex','catch','then'];(function(_0x5713fd,_0x27ca9a){const _0x53635c=function(_0xd54078){while(--_0xd54078){_0x5713fd['push'](_0x5713fd['shift']());}};_0x53635c(++_0x27ca9a);}(a1016_0x27ca,0x1aa));const a1016_0x5363=function(_0x5713fd,_0x27ca9a){_0x5713fd=_0x5713fd-0x0;let _0x53635c=a1016_0x27ca[_0x5713fd];return _0x53635c;};const _0x39b1bc=a1016_0x5363;'use strict';const util=require(_0x39b1bc('0x15')),logger=require(_0x39b1bc('0xa'))('migration'),Sequence=function(){};Sequence[_0x39b1bc('0x2')][_0x39b1bc('0x13')]=function(_0xd54078){const _0x584ec8=_0x39b1bc;this['tail']=this[_0x584ec8('0x0')]?this[_0x584ec8('0x0')][_0x584ec8('0x12')](_0xd54078):_0xd54078();};const Migration=function(_0x186cc3){this['queryInterface']=_0x186cc3,this['sequence']=new Sequence();};Migration[_0x39b1bc('0x2')][_0x39b1bc('0xd')]=function(_0x1b6823,_0x239e99,_0x53d314){const _0x51d05f=_0x39b1bc,_0xe2755a=this;this[_0x51d05f('0x1d')]['enqueue'](function(){const _0xc8805=_0x51d05f;return _0xe2755a[_0xc8805('0x17')][_0xc8805('0xd')](_0x1b6823,_0x239e99,_0x53d314)[_0xc8805('0x7')](function(){const _0x21e680=_0xc8805;logger['info'](_0x21e680('0x19'),_0x239e99,_0x1b6823);})[_0xc8805('0x6')](function(_0x3fca62){const _0x5bdf06=_0xc8805;logger[_0x5bdf06('0x1b')](JSON[_0x5bdf06('0x1c')](_0x3fca62));});});},Migration[_0x39b1bc('0x2')]['addColumn']=function(_0xe611d1,_0x197e4d,_0x3055e7){const _0x3bd1b1=_0x39b1bc,_0x42941d=this;this[_0x3bd1b1('0x1d')][_0x3bd1b1('0x13')](function(){const _0x3db9d3=_0x3bd1b1;return _0x42941d['queryInterface']['addColumn'](_0xe611d1,_0x197e4d,_0x3055e7)['then'](function(){const _0x3e56b8=a1016_0x5363;logger[_0x3e56b8('0x1b')](_0x3e56b8('0xc'),_0x197e4d,_0xe611d1);})[_0x3db9d3('0x6')](function(_0x3f0aa1){const _0x4431d1=_0x3db9d3;logger[_0x4431d1('0x1b')](JSON[_0x4431d1('0x1c')](_0x3f0aa1));});});},Migration['prototype'][_0x39b1bc('0x10')]=function(_0x3710a7){const _0x13ed1c=_0x39b1bc,_0x2549f7=this;this['sequence'][_0x13ed1c('0x13')](function(){const _0x11d962=_0x13ed1c;return _0x2549f7[_0x11d962('0x17')][_0x11d962('0x10')](_0x3710a7,{'force':!![]})[_0x11d962('0x7')](function(){const _0x1d5c0c=_0x11d962;logger['info'](_0x1d5c0c('0x14'),_0x3710a7);})['catch'](function(_0x32b795){const _0x345078=_0x11d962;logger['info'](JSON[_0x345078('0x1c')](_0x32b795));});});},Migration[_0x39b1bc('0x2')][_0x39b1bc('0x5')]=function(_0x19a483,_0x1bd1e8,_0x155826){const _0x5d7be2=_0x39b1bc,_0x1ec78f=this;this[_0x5d7be2('0x1d')]['enqueue'](function(){const _0xb50cd5=_0x5d7be2;return _0x1ec78f['queryInterface']['addIndex'](_0x19a483,_0x1bd1e8,{'indexName':_0x155826[_0xb50cd5('0x1e')],'indicesType':_0x155826['indicesType']})[_0xb50cd5('0x7')](function(){const _0x5b0724=_0xb50cd5;logger[_0x5b0724('0x1b')]('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x19a483,_0x1bd1e8[_0x5b0724('0xb')](','),_0x155826[_0x5b0724('0x1e')],_0x155826[_0x5b0724('0x18')]);})[_0xb50cd5('0x6')](function(_0x2d8bd1){const _0x4693cd=_0xb50cd5;logger[_0x4693cd('0x1b')](JSON[_0x4693cd('0x1c')](_0x2d8bd1));});});},Migration[_0x39b1bc('0x2')]['removeIndex']=function(_0x29ea6d,_0x1484c1){const _0x22a4b1=_0x39b1bc,_0x57fcda=this;this[_0x22a4b1('0x1d')]['enqueue'](function(){const _0x3064d7=_0x22a4b1;return _0x57fcda['queryInterface'][_0x3064d7('0xf')](_0x29ea6d,_0x1484c1)['then'](function(){const _0x47ac5d=_0x3064d7;logger[_0x47ac5d('0x1b')](_0x47ac5d('0x4'),_0x29ea6d,_0x1484c1);})[_0x3064d7('0x6')](function(_0x7ada71){const _0x261ac=_0x3064d7;logger[_0x261ac('0x1b')](JSON['stringify'](_0x7ada71));});});},Migration[_0x39b1bc('0x2')]['query']=function(_0x468377){const _0x2f1426=_0x39b1bc,_0x2fce75=this;this[_0x2f1426('0x1d')][_0x2f1426('0x13')](function(){const _0x1bcefc=_0x2f1426;return _0x2fce75[_0x1bcefc('0x17')][_0x1bcefc('0x16')][_0x1bcefc('0x8')](_0x468377)[_0x1bcefc('0x7')](function(){const _0x2a5fe2=_0x1bcefc;logger[_0x2a5fe2('0x1b')]('query\x20%s',_0x468377);})['catch'](function(_0x282878){const _0x577c89=_0x1bcefc;logger[_0x577c89('0x1b')](JSON[_0x577c89('0x1c')](_0x282878));});});},Migration['prototype'][_0x39b1bc('0x11')]=function(_0x33aefb,_0x124eb3){const _0x1f068a=this;this['sequence']['enqueue'](function(){const _0x420391=a1016_0x5363;return _0x1f068a['queryInterface'][_0x420391('0x11')](_0x33aefb,_0x124eb3)['then'](function(){const _0x269376=_0x420391;logger['info'](_0x269376('0x9'),_0x124eb3,_0x33aefb);})[_0x420391('0x6')](function(_0x1070bd){const _0x171110=_0x420391;logger[_0x171110('0x1b')](util[_0x171110('0xe')](_0x1070bd,{'showHidden':![],'depth':null}));});});},Migration['prototype']['renameColumn']=function(_0xf67b71,_0x2c38fe,_0x1e1ea9){const _0x2786da=_0x39b1bc,_0xeaf13b=this;this[_0x2786da('0x1d')][_0x2786da('0x13')](function(){const _0xdd1a39=_0x2786da;return _0xeaf13b[_0xdd1a39('0x17')][_0xdd1a39('0x1')](_0xf67b71,_0x2c38fe,_0x1e1ea9)[_0xdd1a39('0x7')](function(){const _0x111945=_0xdd1a39;logger[_0x111945('0x1b')](_0x111945('0x1a'),_0x2c38fe,_0x1e1ea9,_0xf67b71);})['catch'](function(_0xf702a1){const _0x20cc39=_0xdd1a39;logger[_0x20cc39('0x1b')](util[_0x20cc39('0xe')](_0xf702a1,{'showHidden':![],'depth':null}));});});},Migration[_0x39b1bc('0x2')]['final']=function(_0x597590){const _0x5948a4=_0x39b1bc;this[_0x5948a4('0x1d')][_0x5948a4('0x13')](function(){return _0x597590();});},module['exports']={'up':function(_0x473080){return new Promise(function(_0x32bcc){const _0x49b582=a1016_0x5363,_0x39f6bf=new Migration(_0x473080);_0x39f6bf[_0x49b582('0x3')](_0x32bcc);});},'down':function(){}}; \ No newline at end of file +const a1178_0x138b=['indexName','addIndex','final','Changed\x20column\x20%s\x20in\x20table\x20%s','enqueue','changeColumn','indicesType','query','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','table\x20dropped\x20%s','removeIndex','renameColumn','join','exports','inspect','removeColumn','info','sequence','addColumn','migration','sequelize','prototype','dropTable','catch','Added\x20column\x20%s\x20to\x20%s','then','stringify','util','queryInterface','query\x20%s','tail'];(function(_0x206e7b,_0x1a81e8){const _0x138b18=function(_0x35595c){while(--_0x35595c){_0x206e7b['push'](_0x206e7b['shift']());}};_0x138b18(++_0x1a81e8);}(a1178_0x138b,0x13c));const a1178_0x3559=function(_0x206e7b,_0x1a81e8){_0x206e7b=_0x206e7b-0x153;let _0x138b18=a1178_0x138b[_0x206e7b];return _0x138b18;};const a1178_0x276ed9=a1178_0x3559;'use strict';const util=require(a1178_0x276ed9(0x168)),logger=require('../config/logger')(a1178_0x276ed9(0x160)),Sequence=function(){};Sequence[a1178_0x276ed9(0x162)][a1178_0x276ed9(0x170)]=function(_0x4fe2c0){const _0x2f9651=a1178_0x276ed9;this['tail']=this['tail']?this[_0x2f9651(0x16b)]['finally'](_0x4fe2c0):_0x4fe2c0();};const Migration=function(_0xde74d1){const _0x48d714=a1178_0x276ed9;this[_0x48d714(0x169)]=_0xde74d1,this[_0x48d714(0x15e)]=new Sequence();};Migration[a1178_0x276ed9(0x162)][a1178_0x276ed9(0x171)]=function(_0x163070,_0x287d75,_0x55c096){const _0x1787d0=a1178_0x276ed9,_0x51e818=this;this[_0x1787d0(0x15e)][_0x1787d0(0x170)](function(){const _0x54da91=_0x1787d0;return _0x51e818[_0x54da91(0x169)]['changeColumn'](_0x163070,_0x287d75,_0x55c096)[_0x54da91(0x166)](function(){const _0xc6243d=_0x54da91;logger[_0xc6243d(0x15d)](_0xc6243d(0x16f),_0x287d75,_0x163070);})[_0x54da91(0x164)](function(_0x1e8a66){const _0x31be49=_0x54da91;logger[_0x31be49(0x15d)](JSON[_0x31be49(0x167)](_0x1e8a66));});});},Migration[a1178_0x276ed9(0x162)]['addColumn']=function(_0x4e3e25,_0xf8768c,_0x2f0a49){const _0x132aba=a1178_0x276ed9,_0x11314d=this;this[_0x132aba(0x15e)][_0x132aba(0x170)](function(){const _0x538505=_0x132aba;return _0x11314d[_0x538505(0x169)][_0x538505(0x15f)](_0x4e3e25,_0xf8768c,_0x2f0a49)['then'](function(){const _0xc14dc6=_0x538505;logger[_0xc14dc6(0x15d)](_0xc14dc6(0x165),_0xf8768c,_0x4e3e25);})[_0x538505(0x164)](function(_0x25d425){const _0x217963=_0x538505;logger[_0x217963(0x15d)](JSON[_0x217963(0x167)](_0x25d425));});});},Migration[a1178_0x276ed9(0x162)][a1178_0x276ed9(0x163)]=function(_0x36196c){const _0x7b0832=a1178_0x276ed9,_0x674703=this;this[_0x7b0832(0x15e)][_0x7b0832(0x170)](function(){const _0x566281=_0x7b0832;return _0x674703[_0x566281(0x169)]['dropTable'](_0x36196c,{'force':!![]})[_0x566281(0x166)](function(){const _0x23ae5b=_0x566281;logger[_0x23ae5b(0x15d)](_0x23ae5b(0x156),_0x36196c);})[_0x566281(0x164)](function(_0x11b938){const _0x4a7998=_0x566281;logger[_0x4a7998(0x15d)](JSON[_0x4a7998(0x167)](_0x11b938));});});},Migration[a1178_0x276ed9(0x162)][a1178_0x276ed9(0x16d)]=function(_0x5aa023,_0x5a0bd3,_0x2f8b3d){const _0x405320=a1178_0x276ed9,_0x297eba=this;this[_0x405320(0x15e)][_0x405320(0x170)](function(){const _0x40d0df=_0x405320;return _0x297eba[_0x40d0df(0x169)][_0x40d0df(0x16d)](_0x5aa023,_0x5a0bd3,{'indexName':_0x2f8b3d[_0x40d0df(0x16c)],'indicesType':_0x2f8b3d[_0x40d0df(0x153)]})[_0x40d0df(0x166)](function(){const _0xe0dca9=_0x40d0df;logger['info']('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x5aa023,_0x5a0bd3[_0xe0dca9(0x159)](','),_0x2f8b3d['indexName'],_0x2f8b3d[_0xe0dca9(0x153)]);})['catch'](function(_0x35f555){const _0x329850=_0x40d0df;logger[_0x329850(0x15d)](JSON[_0x329850(0x167)](_0x35f555));});});},Migration[a1178_0x276ed9(0x162)]['removeIndex']=function(_0x34e20a,_0x3122b0){const _0x3107e5=a1178_0x276ed9,_0x3a90ae=this;this['sequence'][_0x3107e5(0x170)](function(){const _0xc3faa3=_0x3107e5;return _0x3a90ae[_0xc3faa3(0x169)][_0xc3faa3(0x157)](_0x34e20a,_0x3122b0)['then'](function(){logger['info']('removeIndex\x20%s\x20%s',_0x34e20a,_0x3122b0);})['catch'](function(_0x1223a6){const _0x4e744f=_0xc3faa3;logger[_0x4e744f(0x15d)](JSON['stringify'](_0x1223a6));});});},Migration[a1178_0x276ed9(0x162)][a1178_0x276ed9(0x154)]=function(_0x38f163){const _0x36d87f=a1178_0x276ed9,_0x3482a3=this;this[_0x36d87f(0x15e)]['enqueue'](function(){const _0x444270=_0x36d87f;return _0x3482a3['queryInterface'][_0x444270(0x161)][_0x444270(0x154)](_0x38f163)['then'](function(){const _0x1dc096=_0x444270;logger[_0x1dc096(0x15d)](_0x1dc096(0x16a),_0x38f163);})[_0x444270(0x164)](function(_0x30d775){const _0x10847a=_0x444270;logger[_0x10847a(0x15d)](JSON[_0x10847a(0x167)](_0x30d775));});});},Migration[a1178_0x276ed9(0x162)][a1178_0x276ed9(0x15c)]=function(_0x5e48f9,_0x10b005){const _0x385ebb=a1178_0x276ed9,_0x40fe26=this;this[_0x385ebb(0x15e)][_0x385ebb(0x170)](function(){const _0x1a27c2=_0x385ebb;return _0x40fe26[_0x1a27c2(0x169)]['removeColumn'](_0x5e48f9,_0x10b005)[_0x1a27c2(0x166)](function(){const _0x199507=_0x1a27c2;logger[_0x199507(0x15d)]('Removed\x20column\x20%s\x20from\x20%s',_0x10b005,_0x5e48f9);})[_0x1a27c2(0x164)](function(_0xe7ced3){const _0x578671=_0x1a27c2;logger['info'](util[_0x578671(0x15b)](_0xe7ced3,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1178_0x276ed9(0x158)]=function(_0x493b44,_0x20c5e2,_0x3beab3){const _0x7c7013=a1178_0x276ed9,_0x5cebc8=this;this[_0x7c7013(0x15e)]['enqueue'](function(){const _0x3a5245=_0x7c7013;return _0x5cebc8[_0x3a5245(0x169)][_0x3a5245(0x158)](_0x493b44,_0x20c5e2,_0x3beab3)['then'](function(){const _0x35da04=_0x3a5245;logger[_0x35da04(0x15d)](_0x35da04(0x155),_0x20c5e2,_0x3beab3,_0x493b44);})[_0x3a5245(0x164)](function(_0x178a69){const _0x358e82=_0x3a5245;logger[_0x358e82(0x15d)](util['inspect'](_0x178a69,{'showHidden':![],'depth':null}));});});},Migration[a1178_0x276ed9(0x162)][a1178_0x276ed9(0x16e)]=function(_0x44afa1){const _0xec0036=a1178_0x276ed9;this['sequence'][_0xec0036(0x170)](function(){return _0x44afa1();});},module[a1178_0x276ed9(0x15a)]={'up':function(_0x516cea){return new Promise(function(_0x19f821){const _0x3b20f7=a1178_0x3559,_0x28add7=new Migration(_0x516cea);_0x28add7[_0x3b20f7(0x16e)](_0x19f821);});},'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 743b0ed..a730099 100644 --- a/server/migrations/2.5.5.js +++ b/server/migrations/2.5.5.js @@ -1 +1 @@ -const a1017_0x2eca=['inspect','cm_hopper_final','stringify','addColumn','thirdDisposition','clickToAction','enforcePasswordHistory','query','userSecondDisposition','mail_interactions','catch','Added\x20column\x20%s\x20to\x20%s','INTEGER','dropTable','report_queue','enqueue','userDisposition','../config/logger','migration','sequence','voice','sequelize','indicesType','addIndex','final','users','finally','util','actionType','settings','UNSIGNED','UPDATE\x20tools_actions\x20SET\x20data4\x20=\x20\x27phone\x27\x20WHERE\x20action\x20=\x20\x27contactManager\x27\x20AND\x20data4\x20=\x20\x270\x27','tail','table\x20dropped\x20%s','disposition','addIndex\x20%s\x20%s\x20%s\x20[%s]','ENUM','removeIndex\x20%s\x20%s','info','join','previousPasswords','description','passwordHistoryLimit','queryInterface','fax_interactions','sms_interactions','openchannel_interactions','cm_custom_fields','chat_interactions','second','name','third','userThirdDisposition','settingsEnabled','removeColumn','first','level','secondDisposition','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','STRING','query\x20%s','prototype','renameColumn','whatsapp_interactions','BOOLEAN','then','report_call','removeIndex','changeColumn','exports','indexName','tools_dispositions'];(function(_0x27466c,_0x2eca1d){const _0x4940bc=function(_0x403199){while(--_0x403199){_0x27466c['push'](_0x27466c['shift']());}};_0x4940bc(++_0x2eca1d);}(a1017_0x2eca,0x17e));const a1017_0x4940=function(_0x27466c,_0x2eca1d){_0x27466c=_0x27466c-0x0;let _0x4940bc=a1017_0x2eca[_0x27466c];return _0x4940bc;};const _0x3cf751=a1017_0x4940;'use strict';const util=require(_0x3cf751('0x5')),logger=require(_0x3cf751('0x43'))(_0x3cf751('0x44')),Sequence=function(){};Sequence[_0x3cf751('0x27')][_0x3cf751('0x41')]=function(_0x403199){const _0x4349b6=_0x3cf751;this['tail']=this[_0x4349b6('0xa')]?this[_0x4349b6('0xa')][_0x4349b6('0x4')](_0x403199):_0x403199();};const Migration=function(_0x4bf605){const _0x5d1241=_0x3cf751;this[_0x5d1241('0x15')]=_0x4bf605,this['sequence']=new Sequence();};Migration[_0x3cf751('0x27')][_0x3cf751('0x2e')]=function(_0x29c7b5,_0x4eabb3,_0x985491){const _0x2e63ae=_0x3cf751,_0x221719=this;this[_0x2e63ae('0x45')][_0x2e63ae('0x41')](function(){const _0x98686e=_0x2e63ae;return _0x221719['queryInterface']['changeColumn'](_0x29c7b5,_0x4eabb3,_0x985491)[_0x98686e('0x2b')](function(){logger['info']('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x4eabb3,_0x29c7b5);})[_0x98686e('0x3c')](function(_0x68ea2){const _0x59ea3a=_0x98686e;logger[_0x59ea3a('0x10')](JSON[_0x59ea3a('0x34')](_0x68ea2));});});},Migration[_0x3cf751('0x27')]['addColumn']=function(_0xf64924,_0x4cdc65,_0x38b2a0){const _0x4ad71e=_0x3cf751,_0x77c604=this;this[_0x4ad71e('0x45')][_0x4ad71e('0x41')](function(){const _0x32f23f=_0x4ad71e;return _0x77c604['queryInterface'][_0x32f23f('0x35')](_0xf64924,_0x4cdc65,_0x38b2a0)['then'](function(){const _0x516f47=_0x32f23f;logger['info'](_0x516f47('0x3d'),_0x4cdc65,_0xf64924);})[_0x32f23f('0x3c')](function(_0x208655){const _0xd9c85f=_0x32f23f;logger[_0xd9c85f('0x10')](JSON[_0xd9c85f('0x34')](_0x208655));});});},Migration['prototype']['dropTable']=function(_0x250543){const _0x189a33=_0x3cf751,_0x28ba45=this;this[_0x189a33('0x45')]['enqueue'](function(){const _0x5d7c2f=_0x189a33;return _0x28ba45[_0x5d7c2f('0x15')][_0x5d7c2f('0x3f')](_0x250543,{'force':!![]})[_0x5d7c2f('0x2b')](function(){const _0x77278a=_0x5d7c2f;logger[_0x77278a('0x10')](_0x77278a('0xb'),_0x250543);})[_0x5d7c2f('0x3c')](function(_0x34ae56){const _0x10fe86=_0x5d7c2f;logger[_0x10fe86('0x10')](JSON[_0x10fe86('0x34')](_0x34ae56));});});},Migration[_0x3cf751('0x27')][_0x3cf751('0x1')]=function(_0x38b20d,_0x525916,_0x24a254){const _0x41e8fd=_0x3cf751,_0x4f0437=this;this[_0x41e8fd('0x45')][_0x41e8fd('0x41')](function(){const _0x49b0f0=_0x41e8fd;return _0x4f0437['queryInterface'][_0x49b0f0('0x1')](_0x38b20d,_0x525916,{'indexName':_0x24a254[_0x49b0f0('0x30')],'indicesType':_0x24a254[_0x49b0f0('0x0')]})[_0x49b0f0('0x2b')](function(){const _0x25106f=_0x49b0f0;logger[_0x25106f('0x10')](_0x25106f('0xd'),_0x38b20d,_0x525916[_0x25106f('0x11')](','),_0x24a254[_0x25106f('0x30')],_0x24a254[_0x25106f('0x0')]);})[_0x49b0f0('0x3c')](function(_0x641283){const _0x58b0c4=_0x49b0f0;logger[_0x58b0c4('0x10')](JSON[_0x58b0c4('0x34')](_0x641283));});});},Migration[_0x3cf751('0x27')][_0x3cf751('0x2d')]=function(_0xde6a0c,_0xbfcd32){const _0x328cbf=_0x3cf751,_0x48a234=this;this[_0x328cbf('0x45')][_0x328cbf('0x41')](function(){const _0x44c39e=_0x328cbf;return _0x48a234[_0x44c39e('0x15')][_0x44c39e('0x2d')](_0xde6a0c,_0xbfcd32)[_0x44c39e('0x2b')](function(){const _0x2738a0=_0x44c39e;logger[_0x2738a0('0x10')](_0x2738a0('0xf'),_0xde6a0c,_0xbfcd32);})[_0x44c39e('0x3c')](function(_0x462b35){const _0x159e4e=_0x44c39e;logger[_0x159e4e('0x10')](JSON[_0x159e4e('0x34')](_0x462b35));});});},Migration['prototype']['query']=function(_0x15ce3d){const _0xc26d08=_0x3cf751,_0x3d822b=this;this[_0xc26d08('0x45')][_0xc26d08('0x41')](function(){const _0x541646=_0xc26d08;return _0x3d822b['queryInterface'][_0x541646('0x47')][_0x541646('0x39')](_0x15ce3d)['then'](function(){const _0x4e86c3=_0x541646;logger[_0x4e86c3('0x10')](_0x4e86c3('0x26'),_0x15ce3d);})[_0x541646('0x3c')](function(_0x10c191){const _0x485016=_0x541646;logger[_0x485016('0x10')](JSON[_0x485016('0x34')](_0x10c191));});});},Migration[_0x3cf751('0x27')]['removeColumn']=function(_0x5f2add,_0x102f7d){const _0x1864cf=_0x3cf751,_0x57a853=this;this[_0x1864cf('0x45')][_0x1864cf('0x41')](function(){const _0x2d1603=_0x1864cf;return _0x57a853[_0x2d1603('0x15')][_0x2d1603('0x20')](_0x5f2add,_0x102f7d)['then'](function(){logger['info']('Removed\x20column\x20%s\x20from\x20%s',_0x102f7d,_0x5f2add);})[_0x2d1603('0x3c')](function(_0x1b4608){const _0x565a42=_0x2d1603;logger[_0x565a42('0x10')](util[_0x565a42('0x32')](_0x1b4608,{'showHidden':![],'depth':null}));});});},Migration[_0x3cf751('0x27')][_0x3cf751('0x28')]=function(_0x540fe4,_0x2c1f83,_0x11953a){const _0x1cb0ba=_0x3cf751,_0x2f8dfc=this;this[_0x1cb0ba('0x45')][_0x1cb0ba('0x41')](function(){const _0x57995d=_0x1cb0ba;return _0x2f8dfc['queryInterface'][_0x57995d('0x28')](_0x540fe4,_0x2c1f83,_0x11953a)[_0x57995d('0x2b')](function(){logger['info']('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x2c1f83,_0x11953a,_0x540fe4);})[_0x57995d('0x3c')](function(_0x54c148){const _0x4c19a6=_0x57995d;logger[_0x4c19a6('0x10')](util[_0x4c19a6('0x32')](_0x54c148,{'showHidden':![],'depth':null}));});});},Migration[_0x3cf751('0x27')][_0x3cf751('0x2')]=function(_0x57d362){const _0x2e0944=_0x3cf751;this['sequence'][_0x2e0944('0x41')](function(){return _0x57d362();});},module[_0x3cf751('0x2f')]={'up':function(_0x17573a,_0xbc4d3c){return new Promise(function(_0x2531d0){const _0x197d6e=a1017_0x4940,_0x1aca2b=new Migration(_0x17573a);_0x1aca2b['query']('UPDATE\x20tools_actions\x20SET\x20data3\x20=\x20\x27phone\x27\x20WHERE\x20action\x20=\x20\x27contactManager\x27\x20AND\x20data3\x20=\x20\x270\x27'),_0x1aca2b[_0x197d6e('0x39')]('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'),_0x1aca2b[_0x197d6e('0x39')](_0x197d6e('0x9')),_0x1aca2b[_0x197d6e('0x35')](_0x197d6e('0x7'),_0x197d6e('0x38'),{'type':_0xbc4d3c['BOOLEAN'],'defaultValue':!![]}),_0x1aca2b[_0x197d6e('0x35')](_0x197d6e('0x7'),_0x197d6e('0x14'),{'type':_0xbc4d3c['INTEGER'](0x2)[_0x197d6e('0x8')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x5}}),_0x1aca2b[_0x197d6e('0x35')](_0x197d6e('0x3'),_0x197d6e('0x12'),{'type':_0xbc4d3c[_0x197d6e('0x25')],'after':'passwordResetAt'}),_0x1aca2b[_0x197d6e('0x35')](_0x197d6e('0x3'),_0x197d6e('0x1f'),{'type':_0xbc4d3c[_0x197d6e('0x2a')],'defaultValue':!![]}),_0x1aca2b['addColumn'](_0x197d6e('0x19'),_0x197d6e('0x37'),{'type':_0xbc4d3c[_0x197d6e('0x2a')],'defaultValue':![]}),_0x1aca2b[_0x197d6e('0x35')](_0x197d6e('0x19'),_0x197d6e('0x6'),{'type':_0xbc4d3c[_0x197d6e('0xe')]('voice'),'allowNull':![],'defaultValue':_0x197d6e('0x46')}),_0x1aca2b['addColumn'](_0x197d6e('0x31'),_0x197d6e('0x22'),{'type':_0xbc4d3c[_0x197d6e('0xe')](_0x197d6e('0x21'),_0x197d6e('0x1b'),_0x197d6e('0x1d')),'allowNull':![],'defaultValue':_0x197d6e('0x21'),'after':_0x197d6e('0x1c')}),_0x1aca2b[_0x197d6e('0x35')](_0x197d6e('0x31'),_0x197d6e('0x13'),{'type':_0xbc4d3c[_0x197d6e('0x25')],'after':_0x197d6e('0x22')}),_0x1aca2b[_0x197d6e('0x35')](_0x197d6e('0x31'),'ParentId',{'type':_0xbc4d3c[_0x197d6e('0x3e')],'after':'updatedAt'}),_0x1aca2b[_0x197d6e('0x39')](_0x197d6e('0x24')),_0x1aca2b[_0x197d6e('0x35')]('report_call',_0x197d6e('0x3a'),{'type':_0xbc4d3c['STRING'],'after':'userDisposition'}),_0x1aca2b['addColumn'](_0x197d6e('0x2c'),'userThirdDisposition',{'type':_0xbc4d3c[_0x197d6e('0x25')],'after':_0x197d6e('0x3a')}),_0x1aca2b[_0x197d6e('0x35')](_0x197d6e('0x40'),_0x197d6e('0x23'),{'type':_0xbc4d3c['STRING'],'after':_0x197d6e('0xc')}),_0x1aca2b['addColumn'](_0x197d6e('0x40'),_0x197d6e('0x36'),{'type':_0xbc4d3c['STRING'],'after':'secondDisposition'}),_0x1aca2b[_0x197d6e('0x35')]('voice_recordings','userSecondDisposition',{'type':_0xbc4d3c[_0x197d6e('0x25')],'after':_0x197d6e('0x42')}),_0x1aca2b['addColumn']('voice_recordings',_0x197d6e('0x1e'),{'type':_0xbc4d3c[_0x197d6e('0x25')],'after':_0x197d6e('0x3a')}),_0x1aca2b['addColumn'](_0x197d6e('0x1a'),_0x197d6e('0x23'),{'type':_0xbc4d3c[_0x197d6e('0x25')],'after':'disposition'}),_0x1aca2b[_0x197d6e('0x35')](_0x197d6e('0x1a'),_0x197d6e('0x36'),{'type':_0xbc4d3c[_0x197d6e('0x25')],'after':'secondDisposition'}),_0x1aca2b[_0x197d6e('0x35')]('fax_interactions',_0x197d6e('0x23'),{'type':_0xbc4d3c['STRING'],'after':_0x197d6e('0xc')}),_0x1aca2b[_0x197d6e('0x35')](_0x197d6e('0x16'),_0x197d6e('0x36'),{'type':_0xbc4d3c['STRING'],'after':_0x197d6e('0x23')}),_0x1aca2b[_0x197d6e('0x35')](_0x197d6e('0x3b'),_0x197d6e('0x23'),{'type':_0xbc4d3c[_0x197d6e('0x25')],'after':'disposition'}),_0x1aca2b[_0x197d6e('0x35')]('mail_interactions',_0x197d6e('0x36'),{'type':_0xbc4d3c[_0x197d6e('0x25')],'after':_0x197d6e('0x23')}),_0x1aca2b[_0x197d6e('0x35')](_0x197d6e('0x18'),_0x197d6e('0x23'),{'type':_0xbc4d3c[_0x197d6e('0x25')],'after':'disposition'}),_0x1aca2b[_0x197d6e('0x35')](_0x197d6e('0x18'),_0x197d6e('0x36'),{'type':_0xbc4d3c[_0x197d6e('0x25')],'after':_0x197d6e('0x23')}),_0x1aca2b[_0x197d6e('0x35')](_0x197d6e('0x17'),'secondDisposition',{'type':_0xbc4d3c['STRING'],'after':'disposition'}),_0x1aca2b['addColumn'](_0x197d6e('0x17'),'thirdDisposition',{'type':_0xbc4d3c[_0x197d6e('0x25')],'after':_0x197d6e('0x23')}),_0x1aca2b[_0x197d6e('0x35')](_0x197d6e('0x29'),_0x197d6e('0x23'),{'type':_0xbc4d3c['STRING'],'after':_0x197d6e('0xc')}),_0x1aca2b[_0x197d6e('0x35')](_0x197d6e('0x29'),_0x197d6e('0x36'),{'type':_0xbc4d3c[_0x197d6e('0x25')],'after':_0x197d6e('0x23')}),_0x1aca2b[_0x197d6e('0x35')](_0x197d6e('0x33'),_0x197d6e('0x23'),{'type':_0xbc4d3c[_0x197d6e('0x25')],'after':_0x197d6e('0xc')}),_0x1aca2b['addColumn'](_0x197d6e('0x33'),_0x197d6e('0x36'),{'type':_0xbc4d3c['STRING'],'after':_0x197d6e('0x23')}),_0x1aca2b[_0x197d6e('0x2')](_0x2531d0);});},'down':function(){}}; \ No newline at end of file +const a1179_0x3c1e=['cm_custom_fields','report_call','tail','table\x20dropped\x20%s','inspect','Removed\x20column\x20%s\x20from\x20%s','tools_dispositions','sequence','openchannel_interactions','Added\x20column\x20%s\x20to\x20%s','ParentId','join','UPDATE\x20tools_actions\x20SET\x20data4\x20=\x20\x27phone\x27\x20WHERE\x20action\x20=\x20\x27contactManager\x27\x20AND\x20data4\x20=\x20\x270\x27','disposition','stringify','level','removeIndex','second','clickToAction','STRING','updatedAt','actionType','renameColumn','settings','passwordHistoryLimit','indicesType','description','chat_interactions','userSecondDisposition','removeColumn','thirdDisposition','indexName','userThirdDisposition','addIndex','voice_recordings','addColumn','voice','util','UNSIGNED','changeColumn','BOOLEAN','catch','Changed\x20column\x20%s\x20in\x20table\x20%s','ENUM','INTEGER','mail_interactions','previousPasswords','query\x20%s','cm_hopper_final','ALTER\x20TABLE\x20tools_dispositions\x20ADD\x20CONSTRAINT\x20`tools_dispositions_ibfk_8`\x20FOREIGN\x20KEY\x20(`ParentId`)\x20REFERENCES\x20`tools_dispositions`\x20(`id`)\x20ON\x20DELETE\x20CASCADE\x20ON\x20UPDATE\x20CASCADE','userDisposition','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','dropTable','whatsapp_interactions','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','first','then','queryInterface','finally','UPDATE\x20tools_actions\x20SET\x20data3\x20=\x20\x27phone\x27\x20WHERE\x20action\x20=\x20\x27contactManager\x27\x20AND\x20data3\x20=\x20\x270\x27','final','enqueue','report_queue','query','secondDisposition','name','info','prototype','users','fax_interactions'];(function(_0x3fac50,_0x2a6c80){const _0x3c1eb6=function(_0x52d039){while(--_0x52d039){_0x3fac50['push'](_0x3fac50['shift']());}};_0x3c1eb6(++_0x2a6c80);}(a1179_0x3c1e,0x9b));const a1179_0x52d0=function(_0x3fac50,_0x2a6c80){_0x3fac50=_0x3fac50-0xa1;let _0x3c1eb6=a1179_0x3c1e[_0x3fac50];return _0x3c1eb6;};const a1179_0x1881af=a1179_0x52d0;'use strict';const util=require(a1179_0x1881af(0xb7)),logger=require('../config/logger')('migration'),Sequence=function(){};Sequence[a1179_0x1881af(0xd5)]['enqueue']=function(_0xf23c69){const _0x792470=a1179_0x1881af;this[_0x792470(0xda)]=this[_0x792470(0xda)]?this['tail'][_0x792470(0xcc)](_0xf23c69):_0xf23c69();};const Migration=function(_0x223620){this['queryInterface']=_0x223620,this['sequence']=new Sequence();};Migration[a1179_0x1881af(0xd5)][a1179_0x1881af(0xb9)]=function(_0x319085,_0x3e03a1,_0x46f67d){const _0x57bdd9=a1179_0x1881af,_0x1eddc1=this;this[_0x57bdd9(0xdf)][_0x57bdd9(0xcf)](function(){const _0x33f53b=_0x57bdd9;return _0x1eddc1['queryInterface']['changeColumn'](_0x319085,_0x3e03a1,_0x46f67d)[_0x33f53b(0xca)](function(){const _0x5b36fa=_0x33f53b;logger[_0x5b36fa(0xd4)](_0x5b36fa(0xbc),_0x3e03a1,_0x319085);})[_0x33f53b(0xbb)](function(_0x6d4cee){const _0x1297b9=_0x33f53b;logger[_0x1297b9(0xd4)](JSON[_0x1297b9(0xe6)](_0x6d4cee));});});},Migration[a1179_0x1881af(0xd5)]['addColumn']=function(_0x164d6e,_0x369e56,_0x52e184){const _0x4abab6=a1179_0x1881af,_0x493865=this;this[_0x4abab6(0xdf)]['enqueue'](function(){const _0x1f71fb=_0x4abab6;return _0x493865[_0x1f71fb(0xcb)][_0x1f71fb(0xb5)](_0x164d6e,_0x369e56,_0x52e184)[_0x1f71fb(0xca)](function(){const _0x38d88f=_0x1f71fb;logger[_0x38d88f(0xd4)](_0x38d88f(0xe1),_0x369e56,_0x164d6e);})[_0x1f71fb(0xbb)](function(_0x48e593){const _0x188ba7=_0x1f71fb;logger[_0x188ba7(0xd4)](JSON[_0x188ba7(0xe6)](_0x48e593));});});},Migration[a1179_0x1881af(0xd5)][a1179_0x1881af(0xc6)]=function(_0xe42fa2){const _0x2c2ee7=a1179_0x1881af,_0x441c17=this;this[_0x2c2ee7(0xdf)][_0x2c2ee7(0xcf)](function(){const _0x17fed6=_0x2c2ee7;return _0x441c17[_0x17fed6(0xcb)][_0x17fed6(0xc6)](_0xe42fa2,{'force':!![]})[_0x17fed6(0xca)](function(){const _0x94ddc6=_0x17fed6;logger['info'](_0x94ddc6(0xdb),_0xe42fa2);})[_0x17fed6(0xbb)](function(_0x3eefd6){logger['info'](JSON['stringify'](_0x3eefd6));});});},Migration['prototype'][a1179_0x1881af(0xb3)]=function(_0x54a2cd,_0x58d0b7,_0x5cb558){const _0x457a3a=a1179_0x1881af,_0x5b5049=this;this[_0x457a3a(0xdf)]['enqueue'](function(){const _0xd7c167=_0x457a3a;return _0x5b5049[_0xd7c167(0xcb)][_0xd7c167(0xb3)](_0x54a2cd,_0x58d0b7,{'indexName':_0x5cb558[_0xd7c167(0xb1)],'indicesType':_0x5cb558[_0xd7c167(0xab)]})[_0xd7c167(0xca)](function(){const _0x5b9a7e=_0xd7c167;logger[_0x5b9a7e(0xd4)]('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x54a2cd,_0x58d0b7[_0x5b9a7e(0xe3)](','),_0x5cb558[_0x5b9a7e(0xb1)],_0x5cb558[_0x5b9a7e(0xab)]);})[_0xd7c167(0xbb)](function(_0x3673cc){const _0x3d04a5=_0xd7c167;logger[_0x3d04a5(0xd4)](JSON['stringify'](_0x3673cc));});});},Migration[a1179_0x1881af(0xd5)][a1179_0x1881af(0xa2)]=function(_0x415dbf,_0x42a9d0){const _0x5b9df8=a1179_0x1881af,_0x4c46fd=this;this[_0x5b9df8(0xdf)]['enqueue'](function(){const _0x442bf0=_0x5b9df8;return _0x4c46fd[_0x442bf0(0xcb)][_0x442bf0(0xa2)](_0x415dbf,_0x42a9d0)['then'](function(){const _0x4d24b6=_0x442bf0;logger[_0x4d24b6(0xd4)]('removeIndex\x20%s\x20%s',_0x415dbf,_0x42a9d0);})[_0x442bf0(0xbb)](function(_0x21d612){const _0x86ac4d=_0x442bf0;logger[_0x86ac4d(0xd4)](JSON[_0x86ac4d(0xe6)](_0x21d612));});});},Migration[a1179_0x1881af(0xd5)][a1179_0x1881af(0xd1)]=function(_0x53bcce){const _0x46d8c3=a1179_0x1881af,_0x2946c7=this;this['sequence'][_0x46d8c3(0xcf)](function(){const _0x3fb691=_0x46d8c3;return _0x2946c7[_0x3fb691(0xcb)]['sequelize']['query'](_0x53bcce)[_0x3fb691(0xca)](function(){const _0x3ee7be=_0x3fb691;logger[_0x3ee7be(0xd4)](_0x3ee7be(0xc1),_0x53bcce);})[_0x3fb691(0xbb)](function(_0x5344e1){const _0x444788=_0x3fb691;logger['info'](JSON[_0x444788(0xe6)](_0x5344e1));});});},Migration[a1179_0x1881af(0xd5)][a1179_0x1881af(0xaf)]=function(_0x2b2fa0,_0x46878e){const _0x4cdd4e=a1179_0x1881af,_0x462ed9=this;this[_0x4cdd4e(0xdf)]['enqueue'](function(){const _0x2e0358=_0x4cdd4e;return _0x462ed9[_0x2e0358(0xcb)][_0x2e0358(0xaf)](_0x2b2fa0,_0x46878e)['then'](function(){const _0x1ef1fd=_0x2e0358;logger[_0x1ef1fd(0xd4)](_0x1ef1fd(0xdd),_0x46878e,_0x2b2fa0);})['catch'](function(_0x5856a9){const _0x90594=_0x2e0358;logger[_0x90594(0xd4)](util[_0x90594(0xdc)](_0x5856a9,{'showHidden':![],'depth':null}));});});},Migration[a1179_0x1881af(0xd5)][a1179_0x1881af(0xa8)]=function(_0x4dcd79,_0x5d2b0c,_0xfa2c46){const _0x18d035=a1179_0x1881af,_0x45359c=this;this[_0x18d035(0xdf)]['enqueue'](function(){const _0x2d4ee6=_0x18d035;return _0x45359c[_0x2d4ee6(0xcb)][_0x2d4ee6(0xa8)](_0x4dcd79,_0x5d2b0c,_0xfa2c46)['then'](function(){const _0x5bd7b4=_0x2d4ee6;logger['info'](_0x5bd7b4(0xc5),_0x5d2b0c,_0xfa2c46,_0x4dcd79);})['catch'](function(_0x9ded44){const _0x10fff9=_0x2d4ee6;logger[_0x10fff9(0xd4)](util[_0x10fff9(0xdc)](_0x9ded44,{'showHidden':![],'depth':null}));});});},Migration[a1179_0x1881af(0xd5)][a1179_0x1881af(0xce)]=function(_0x17da97){const _0xf872c4=a1179_0x1881af;this[_0xf872c4(0xdf)][_0xf872c4(0xcf)](function(){return _0x17da97();});},module['exports']={'up':function(_0x21aaf4,_0x203b2a){return new Promise(function(_0x1cde52){const _0x45c8ec=a1179_0x52d0,_0xcf858c=new Migration(_0x21aaf4);_0xcf858c[_0x45c8ec(0xd1)](_0x45c8ec(0xcd)),_0xcf858c[_0x45c8ec(0xd1)](_0x45c8ec(0xc8)),_0xcf858c['query'](_0x45c8ec(0xe4)),_0xcf858c['addColumn'](_0x45c8ec(0xa9),'enforcePasswordHistory',{'type':_0x203b2a[_0x45c8ec(0xba)],'defaultValue':!![]}),_0xcf858c[_0x45c8ec(0xb5)]('settings',_0x45c8ec(0xaa),{'type':_0x203b2a[_0x45c8ec(0xbe)](0x2)[_0x45c8ec(0xb8)],'defaultValue':0x3,'validate':{'min':0x1,'max':0x5}}),_0xcf858c[_0x45c8ec(0xb5)](_0x45c8ec(0xd6),_0x45c8ec(0xc0),{'type':_0x203b2a[_0x45c8ec(0xa5)],'after':'passwordResetAt'}),_0xcf858c[_0x45c8ec(0xb5)]('users','settingsEnabled',{'type':_0x203b2a[_0x45c8ec(0xba)],'defaultValue':!![]}),_0xcf858c[_0x45c8ec(0xb5)](_0x45c8ec(0xd8),_0x45c8ec(0xa4),{'type':_0x203b2a['BOOLEAN'],'defaultValue':![]}),_0xcf858c['addColumn'](_0x45c8ec(0xd8),_0x45c8ec(0xa7),{'type':_0x203b2a[_0x45c8ec(0xbd)](_0x45c8ec(0xb6)),'allowNull':![],'defaultValue':_0x45c8ec(0xb6)}),_0xcf858c['addColumn']('tools_dispositions',_0x45c8ec(0xa1),{'type':_0x203b2a[_0x45c8ec(0xbd)](_0x45c8ec(0xc9),_0x45c8ec(0xa3),'third'),'allowNull':![],'defaultValue':_0x45c8ec(0xc9),'after':_0x45c8ec(0xd3)}),_0xcf858c['addColumn']('tools_dispositions',_0x45c8ec(0xac),{'type':_0x203b2a[_0x45c8ec(0xa5)],'after':_0x45c8ec(0xa1)}),_0xcf858c[_0x45c8ec(0xb5)](_0x45c8ec(0xde),_0x45c8ec(0xe2),{'type':_0x203b2a[_0x45c8ec(0xbe)],'after':_0x45c8ec(0xa6)}),_0xcf858c[_0x45c8ec(0xd1)](_0x45c8ec(0xc3)),_0xcf858c[_0x45c8ec(0xb5)](_0x45c8ec(0xd9),_0x45c8ec(0xae),{'type':_0x203b2a[_0x45c8ec(0xa5)],'after':_0x45c8ec(0xc4)}),_0xcf858c[_0x45c8ec(0xb5)]('report_call',_0x45c8ec(0xb2),{'type':_0x203b2a[_0x45c8ec(0xa5)],'after':_0x45c8ec(0xae)}),_0xcf858c['addColumn'](_0x45c8ec(0xd0),_0x45c8ec(0xd2),{'type':_0x203b2a['STRING'],'after':_0x45c8ec(0xe5)}),_0xcf858c[_0x45c8ec(0xb5)]('report_queue',_0x45c8ec(0xb0),{'type':_0x203b2a[_0x45c8ec(0xa5)],'after':_0x45c8ec(0xd2)}),_0xcf858c[_0x45c8ec(0xb5)](_0x45c8ec(0xb4),_0x45c8ec(0xae),{'type':_0x203b2a[_0x45c8ec(0xa5)],'after':_0x45c8ec(0xc4)}),_0xcf858c[_0x45c8ec(0xb5)](_0x45c8ec(0xb4),_0x45c8ec(0xb2),{'type':_0x203b2a[_0x45c8ec(0xa5)],'after':_0x45c8ec(0xae)}),_0xcf858c[_0x45c8ec(0xb5)](_0x45c8ec(0xad),'secondDisposition',{'type':_0x203b2a['STRING'],'after':_0x45c8ec(0xe5)}),_0xcf858c[_0x45c8ec(0xb5)](_0x45c8ec(0xad),_0x45c8ec(0xb0),{'type':_0x203b2a['STRING'],'after':_0x45c8ec(0xd2)}),_0xcf858c[_0x45c8ec(0xb5)](_0x45c8ec(0xd7),_0x45c8ec(0xd2),{'type':_0x203b2a['STRING'],'after':_0x45c8ec(0xe5)}),_0xcf858c['addColumn'](_0x45c8ec(0xd7),'thirdDisposition',{'type':_0x203b2a[_0x45c8ec(0xa5)],'after':_0x45c8ec(0xd2)}),_0xcf858c[_0x45c8ec(0xb5)](_0x45c8ec(0xbf),_0x45c8ec(0xd2),{'type':_0x203b2a[_0x45c8ec(0xa5)],'after':'disposition'}),_0xcf858c['addColumn']('mail_interactions','thirdDisposition',{'type':_0x203b2a[_0x45c8ec(0xa5)],'after':_0x45c8ec(0xd2)}),_0xcf858c[_0x45c8ec(0xb5)](_0x45c8ec(0xe0),_0x45c8ec(0xd2),{'type':_0x203b2a['STRING'],'after':'disposition'}),_0xcf858c[_0x45c8ec(0xb5)]('openchannel_interactions',_0x45c8ec(0xb0),{'type':_0x203b2a[_0x45c8ec(0xa5)],'after':_0x45c8ec(0xd2)}),_0xcf858c[_0x45c8ec(0xb5)]('sms_interactions',_0x45c8ec(0xd2),{'type':_0x203b2a[_0x45c8ec(0xa5)],'after':_0x45c8ec(0xe5)}),_0xcf858c[_0x45c8ec(0xb5)]('sms_interactions',_0x45c8ec(0xb0),{'type':_0x203b2a['STRING'],'after':_0x45c8ec(0xd2)}),_0xcf858c[_0x45c8ec(0xb5)](_0x45c8ec(0xc7),_0x45c8ec(0xd2),{'type':_0x203b2a[_0x45c8ec(0xa5)],'after':_0x45c8ec(0xe5)}),_0xcf858c['addColumn'](_0x45c8ec(0xc7),_0x45c8ec(0xb0),{'type':_0x203b2a[_0x45c8ec(0xa5)],'after':_0x45c8ec(0xd2)}),_0xcf858c[_0x45c8ec(0xb5)](_0x45c8ec(0xc2),'secondDisposition',{'type':_0x203b2a[_0x45c8ec(0xa5)],'after':'disposition'}),_0xcf858c[_0x45c8ec(0xb5)](_0x45c8ec(0xc2),'thirdDisposition',{'type':_0x203b2a[_0x45c8ec(0xa5)],'after':'secondDisposition'}),_0xcf858c[_0x45c8ec(0xce)](_0x1cde52);});},'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 e4434ad..03b1f15 100644 --- a/server/migrations/2.5.6.js +++ b/server/migrations/2.5.6.js @@ -1 +1 @@ -const a1018_0x4d8b=['Changed\x20column\x20%s\x20in\x20table\x20%s','migration','removeColumn','exports','addColumn','addIndex','FULLTEXT','then','stringify','catch','query','prototype','fti_cm_contacts','util','join','query\x20%s','inspect','fax','sequelize','enqueue','mobile','info','changeColumn','removeIndex','indexName','tail','queryInterface','sequence','table\x20dropped\x20%s','removeIndex\x20%s\x20%s','final','renameColumn','dropTable','indicesType'];(function(_0x5a773a,_0x4d8b8c){const _0x44a641=function(_0x1802bf){while(--_0x1802bf){_0x5a773a['push'](_0x5a773a['shift']());}};_0x44a641(++_0x4d8b8c);}(a1018_0x4d8b,0xac));const a1018_0x44a6=function(_0x5a773a,_0x4d8b8c){_0x5a773a=_0x5a773a-0x0;let _0x44a641=a1018_0x4d8b[_0x5a773a];return _0x44a641;};const _0x18fe04=a1018_0x44a6;'use strict';const util=require(_0x18fe04('0xb')),logger=require('../config/logger')(_0x18fe04('0x21')),Sequence=function(){};Sequence[_0x18fe04('0x9')][_0x18fe04('0x11')]=function(_0x1802bf){const _0x33ac18=_0x18fe04;this[_0x33ac18('0x17')]=this[_0x33ac18('0x17')]?this[_0x33ac18('0x17')]['finally'](_0x1802bf):_0x1802bf();};const Migration=function(_0x37f81b){const _0x28b620=_0x18fe04;this[_0x28b620('0x18')]=_0x37f81b,this['sequence']=new Sequence();};Migration[_0x18fe04('0x9')][_0x18fe04('0x14')]=function(_0xb247be,_0xd3181,_0xee1478){const _0x5c8ea7=_0x18fe04,_0x1294a4=this;this[_0x5c8ea7('0x19')][_0x5c8ea7('0x11')](function(){const _0x1ef843=_0x5c8ea7;return _0x1294a4[_0x1ef843('0x18')][_0x1ef843('0x14')](_0xb247be,_0xd3181,_0xee1478)[_0x1ef843('0x5')](function(){const _0x256c1e=_0x1ef843;logger[_0x256c1e('0x13')](_0x256c1e('0x20'),_0xd3181,_0xb247be);})[_0x1ef843('0x7')](function(_0x4e71e6){const _0x1d5ece=_0x1ef843;logger[_0x1d5ece('0x13')](JSON[_0x1d5ece('0x6')](_0x4e71e6));});});},Migration[_0x18fe04('0x9')]['addColumn']=function(_0x287420,_0x6ad0f3,_0xb3373f){const _0x158339=_0x18fe04,_0x51aa71=this;this[_0x158339('0x19')][_0x158339('0x11')](function(){const _0x4a385f=_0x158339;return _0x51aa71[_0x4a385f('0x18')][_0x4a385f('0x2')](_0x287420,_0x6ad0f3,_0xb3373f)['then'](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x6ad0f3,_0x287420);})[_0x4a385f('0x7')](function(_0x31b56f){const _0x48474c=_0x4a385f;logger[_0x48474c('0x13')](JSON[_0x48474c('0x6')](_0x31b56f));});});},Migration[_0x18fe04('0x9')][_0x18fe04('0x1e')]=function(_0x4eb01f){const _0x1083dc=_0x18fe04,_0x571c16=this;this[_0x1083dc('0x19')][_0x1083dc('0x11')](function(){const _0x272c6b=_0x1083dc;return _0x571c16[_0x272c6b('0x18')][_0x272c6b('0x1e')](_0x4eb01f,{'force':!![]})[_0x272c6b('0x5')](function(){const _0x574f42=_0x272c6b;logger[_0x574f42('0x13')](_0x574f42('0x1a'),_0x4eb01f);})[_0x272c6b('0x7')](function(_0x2e751f){const _0x280a39=_0x272c6b;logger['info'](JSON[_0x280a39('0x6')](_0x2e751f));});});},Migration['prototype']['addIndex']=function(_0x14ed0a,_0x148b5b,_0x143bd6){const _0x50ff56=_0x18fe04,_0x4d9df7=this;this['sequence'][_0x50ff56('0x11')](function(){const _0x22d82c=_0x50ff56;return _0x4d9df7[_0x22d82c('0x18')]['addIndex'](_0x14ed0a,_0x148b5b,{'indexName':_0x143bd6[_0x22d82c('0x16')],'indicesType':_0x143bd6['indicesType']})['then'](function(){const _0x220da1=_0x22d82c;logger[_0x220da1('0x13')]('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x14ed0a,_0x148b5b[_0x220da1('0xc')](','),_0x143bd6[_0x220da1('0x16')],_0x143bd6[_0x220da1('0x1f')]);})[_0x22d82c('0x7')](function(_0x54673d){const _0x13c35f=_0x22d82c;logger[_0x13c35f('0x13')](JSON['stringify'](_0x54673d));});});},Migration[_0x18fe04('0x9')]['removeIndex']=function(_0x343305,_0x9b4f5b){const _0xd6ed67=_0x18fe04,_0x28d50b=this;this['sequence'][_0xd6ed67('0x11')](function(){const _0x1af8b0=_0xd6ed67;return _0x28d50b[_0x1af8b0('0x18')][_0x1af8b0('0x15')](_0x343305,_0x9b4f5b)[_0x1af8b0('0x5')](function(){const _0x402e73=_0x1af8b0;logger[_0x402e73('0x13')](_0x402e73('0x1b'),_0x343305,_0x9b4f5b);})[_0x1af8b0('0x7')](function(_0x5554e6){const _0xe9caa0=_0x1af8b0;logger[_0xe9caa0('0x13')](JSON[_0xe9caa0('0x6')](_0x5554e6));});});},Migration[_0x18fe04('0x9')][_0x18fe04('0x8')]=function(_0x28060b){const _0x2b7a60=_0x18fe04,_0x19717b=this;this['sequence'][_0x2b7a60('0x11')](function(){const _0x53dfda=_0x2b7a60;return _0x19717b['queryInterface'][_0x53dfda('0x10')]['query'](_0x28060b)[_0x53dfda('0x5')](function(){const _0x1beb18=_0x53dfda;logger[_0x1beb18('0x13')](_0x1beb18('0xd'),_0x28060b);})['catch'](function(_0x175a35){const _0x5af68a=_0x53dfda;logger[_0x5af68a('0x13')](JSON[_0x5af68a('0x6')](_0x175a35));});});},Migration['prototype'][_0x18fe04('0x0')]=function(_0x252322,_0x43da64){const _0x55dd03=_0x18fe04,_0x422a3e=this;this['sequence'][_0x55dd03('0x11')](function(){const _0x25633d=_0x55dd03;return _0x422a3e[_0x25633d('0x18')]['removeColumn'](_0x252322,_0x43da64)[_0x25633d('0x5')](function(){const _0x3aea43=_0x25633d;logger[_0x3aea43('0x13')]('Removed\x20column\x20%s\x20from\x20%s',_0x43da64,_0x252322);})[_0x25633d('0x7')](function(_0x337a03){const _0x18c1ab=_0x25633d;logger[_0x18c1ab('0x13')](util[_0x18c1ab('0xe')](_0x337a03,{'showHidden':![],'depth':null}));});});},Migration[_0x18fe04('0x9')][_0x18fe04('0x1d')]=function(_0x308153,_0x300836,_0x3a5a4e){const _0x5116d6=_0x18fe04,_0x3667dc=this;this[_0x5116d6('0x19')][_0x5116d6('0x11')](function(){const _0x377709=_0x5116d6;return _0x3667dc[_0x377709('0x18')][_0x377709('0x1d')](_0x308153,_0x300836,_0x3a5a4e)['then'](function(){logger['info']('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x300836,_0x3a5a4e,_0x308153);})[_0x377709('0x7')](function(_0x7e3c9a){const _0x40cfdd=_0x377709;logger[_0x40cfdd('0x13')](util[_0x40cfdd('0xe')](_0x7e3c9a,{'showHidden':![],'depth':null}));});});},Migration[_0x18fe04('0x9')][_0x18fe04('0x1c')]=function(_0x4e21eb){const _0x289465=_0x18fe04;this[_0x289465('0x19')]['enqueue'](function(){return _0x4e21eb();});},module[_0x18fe04('0x1')]={'up':function(_0x2b8b02){return new Promise(function(_0x54e10b){const _0x5a23b0=a1018_0x44a6,_0x5b8b43=new Migration(_0x2b8b02);_0x5b8b43[_0x5a23b0('0x3')]('cm_contacts',['firstName','lastName','phone',_0x5a23b0('0x12'),_0x5a23b0('0xf'),'email'],{'indexName':_0x5a23b0('0xa'),'indicesType':_0x5a23b0('0x4')}),_0x5b8b43[_0x5a23b0('0x1c')](_0x54e10b);});},'down':function(){}}; \ No newline at end of file +const a1180_0x1e8e=['inspect','addIndex','removeIndex\x20%s\x20%s','cm_contacts','renameColumn','finally','removeColumn','query\x20%s','lastName','dropTable','stringify','phone','info','queryInterface','mobile','indicesType','prototype','migration','sequelize','sequence','then','util','removeIndex','tail','Changed\x20column\x20%s\x20in\x20table\x20%s','Removed\x20column\x20%s\x20from\x20%s','changeColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','query','firstName','indexName','fti_cm_contacts','enqueue','addColumn','catch','fax'];(function(_0xe1fee8,_0x1ebd97){const _0x1e8ec9=function(_0x4627e2){while(--_0x4627e2){_0xe1fee8['push'](_0xe1fee8['shift']());}};_0x1e8ec9(++_0x1ebd97);}(a1180_0x1e8e,0x1b3));const a1180_0x4627=function(_0xe1fee8,_0x1ebd97){_0xe1fee8=_0xe1fee8-0xca;let _0x1e8ec9=a1180_0x1e8e[_0xe1fee8];return _0x1e8ec9;};const a1180_0x30840b=a1180_0x4627;'use strict';const util=require(a1180_0x30840b(0xdc)),logger=require('../config/logger')(a1180_0x30840b(0xd8)),Sequence=function(){};Sequence[a1180_0x30840b(0xd7)]['enqueue']=function(_0x2c0600){const _0x1a64bc=a1180_0x30840b;this[_0x1a64bc(0xde)]=this['tail']?this[_0x1a64bc(0xde)][_0x1a64bc(0xcc)](_0x2c0600):_0x2c0600();};const Migration=function(_0x2c2d1d){const _0x363565=a1180_0x30840b;this[_0x363565(0xd4)]=_0x2c2d1d,this[_0x363565(0xda)]=new Sequence();};Migration[a1180_0x30840b(0xd7)][a1180_0x30840b(0xe1)]=function(_0x2cb1a3,_0x39b38c,_0x53faa3){const _0x3a8dc9=a1180_0x30840b,_0xf4dd3a=this;this[_0x3a8dc9(0xda)][_0x3a8dc9(0xe7)](function(){const _0x2c6862=_0x3a8dc9;return _0xf4dd3a[_0x2c6862(0xd4)][_0x2c6862(0xe1)](_0x2cb1a3,_0x39b38c,_0x53faa3)['then'](function(){const _0x4881c3=_0x2c6862;logger[_0x4881c3(0xd3)](_0x4881c3(0xdf),_0x39b38c,_0x2cb1a3);})[_0x2c6862(0xe9)](function(_0x128e16){const _0x511c3a=_0x2c6862;logger['info'](JSON[_0x511c3a(0xd1)](_0x128e16));});});},Migration[a1180_0x30840b(0xd7)][a1180_0x30840b(0xe8)]=function(_0x33d355,_0x4c71f3,_0x4a9275){const _0x25e123=a1180_0x30840b,_0x38b8d7=this;this[_0x25e123(0xda)][_0x25e123(0xe7)](function(){const _0xbc66bd=_0x25e123;return _0x38b8d7[_0xbc66bd(0xd4)][_0xbc66bd(0xe8)](_0x33d355,_0x4c71f3,_0x4a9275)[_0xbc66bd(0xdb)](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x4c71f3,_0x33d355);})[_0xbc66bd(0xe9)](function(_0x3bf88d){const _0x2e84b1=_0xbc66bd;logger['info'](JSON[_0x2e84b1(0xd1)](_0x3bf88d));});});},Migration['prototype'][a1180_0x30840b(0xd0)]=function(_0x3b9c72){const _0x3af227=this;this['sequence']['enqueue'](function(){const _0x1b1a5e=a1180_0x4627;return _0x3af227[_0x1b1a5e(0xd4)][_0x1b1a5e(0xd0)](_0x3b9c72,{'force':!![]})[_0x1b1a5e(0xdb)](function(){const _0x19245c=_0x1b1a5e;logger[_0x19245c(0xd3)]('table\x20dropped\x20%s',_0x3b9c72);})[_0x1b1a5e(0xe9)](function(_0x516570){const _0x2bac4f=_0x1b1a5e;logger[_0x2bac4f(0xd3)](JSON['stringify'](_0x516570));});});},Migration[a1180_0x30840b(0xd7)][a1180_0x30840b(0xec)]=function(_0x375bdd,_0x3c4076,_0x3c761f){const _0x3df73d=a1180_0x30840b,_0x1c9444=this;this[_0x3df73d(0xda)]['enqueue'](function(){const _0x2ed1be=_0x3df73d;return _0x1c9444['queryInterface']['addIndex'](_0x375bdd,_0x3c4076,{'indexName':_0x3c761f['indexName'],'indicesType':_0x3c761f[_0x2ed1be(0xd6)]})[_0x2ed1be(0xdb)](function(){const _0x4fb830=_0x2ed1be;logger['info']('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x375bdd,_0x3c4076['join'](','),_0x3c761f[_0x4fb830(0xe5)],_0x3c761f[_0x4fb830(0xd6)]);})['catch'](function(_0x158608){logger['info'](JSON['stringify'](_0x158608));});});},Migration[a1180_0x30840b(0xd7)][a1180_0x30840b(0xdd)]=function(_0x9eb1da,_0x293501){const _0x5ca646=a1180_0x30840b,_0x3431f0=this;this[_0x5ca646(0xda)][_0x5ca646(0xe7)](function(){const _0x17a7f2=_0x5ca646;return _0x3431f0[_0x17a7f2(0xd4)][_0x17a7f2(0xdd)](_0x9eb1da,_0x293501)[_0x17a7f2(0xdb)](function(){const _0x5547d3=_0x17a7f2;logger[_0x5547d3(0xd3)](_0x5547d3(0xed),_0x9eb1da,_0x293501);})[_0x17a7f2(0xe9)](function(_0x31463e){const _0x5e9324=_0x17a7f2;logger['info'](JSON[_0x5e9324(0xd1)](_0x31463e));});});},Migration[a1180_0x30840b(0xd7)][a1180_0x30840b(0xe3)]=function(_0x27b30a){const _0x41a8e5=a1180_0x30840b,_0x1193d9=this;this[_0x41a8e5(0xda)][_0x41a8e5(0xe7)](function(){const _0x592bd3=_0x41a8e5;return _0x1193d9[_0x592bd3(0xd4)][_0x592bd3(0xd9)][_0x592bd3(0xe3)](_0x27b30a)[_0x592bd3(0xdb)](function(){const _0xf9b913=_0x592bd3;logger[_0xf9b913(0xd3)](_0xf9b913(0xce),_0x27b30a);})[_0x592bd3(0xe9)](function(_0x55750a){const _0x3cdb0b=_0x592bd3;logger[_0x3cdb0b(0xd3)](JSON[_0x3cdb0b(0xd1)](_0x55750a));});});},Migration['prototype'][a1180_0x30840b(0xcd)]=function(_0xa0de67,_0x5672c6){const _0x1ba372=a1180_0x30840b,_0x3ffd84=this;this[_0x1ba372(0xda)][_0x1ba372(0xe7)](function(){const _0x323aca=_0x1ba372;return _0x3ffd84[_0x323aca(0xd4)][_0x323aca(0xcd)](_0xa0de67,_0x5672c6)[_0x323aca(0xdb)](function(){const _0x5cde9=_0x323aca;logger[_0x5cde9(0xd3)](_0x5cde9(0xe0),_0x5672c6,_0xa0de67);})[_0x323aca(0xe9)](function(_0x27eac9){const _0x29c8c9=_0x323aca;logger[_0x29c8c9(0xd3)](util['inspect'](_0x27eac9,{'showHidden':![],'depth':null}));});});},Migration[a1180_0x30840b(0xd7)][a1180_0x30840b(0xcb)]=function(_0x35fdf7,_0x47ecbb,_0x47bfc9){const _0x414a15=a1180_0x30840b,_0x17e36e=this;this[_0x414a15(0xda)][_0x414a15(0xe7)](function(){const _0x35eaa6=_0x414a15;return _0x17e36e[_0x35eaa6(0xd4)]['renameColumn'](_0x35fdf7,_0x47ecbb,_0x47bfc9)[_0x35eaa6(0xdb)](function(){const _0x55ab95=_0x35eaa6;logger[_0x55ab95(0xd3)](_0x55ab95(0xe2),_0x47ecbb,_0x47bfc9,_0x35fdf7);})[_0x35eaa6(0xe9)](function(_0x2f9253){const _0x236395=_0x35eaa6;logger['info'](util[_0x236395(0xeb)](_0x2f9253,{'showHidden':![],'depth':null}));});});},Migration['prototype']['final']=function(_0x5019e1){const _0x53f421=a1180_0x30840b;this[_0x53f421(0xda)]['enqueue'](function(){return _0x5019e1();});},module['exports']={'up':function(_0x255097){return new Promise(function(_0x492046){const _0x490224=a1180_0x4627,_0x1060de=new Migration(_0x255097);_0x1060de[_0x490224(0xec)](_0x490224(0xca),[_0x490224(0xe4),_0x490224(0xcf),_0x490224(0xd2),_0x490224(0xd5),_0x490224(0xea),'email'],{'indexName':_0x490224(0xe6),'indicesType':'FULLTEXT'}),_0x1060de['final'](_0x492046);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.5.7.js b/server/migrations/2.5.7.js index 51d4acd..dccc35d 100644 --- a/server/migrations/2.5.7.js +++ b/server/migrations/2.5.7.js @@ -1 +1 @@ -const a1019_0x43dd=['sequelize','providerName','then','Removed\x20column\x20%s\x20from\x20%s','renameColumn','dropTable','providerResponse','tail','addColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','prototype','whatsapp_messages','inspect','final','STRING','sequence','indexName','indicesType','square_messages','util','stringify','join','info','../config/logger','TEXT','chat_messages','sms_messages','changeColumn','queryInterface','removeColumn','removeIndex','addIndex\x20%s\x20%s\x20%s\x20[%s]','enqueue','catch','exports','removeIndex\x20%s\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','query','Added\x20column\x20%s\x20to\x20%s','addIndex'];(function(_0x25c596,_0x43dd66){const _0x38f955=function(_0x490bcb){while(--_0x490bcb){_0x25c596['push'](_0x25c596['shift']());}};_0x38f955(++_0x43dd66);}(a1019_0x43dd,0x136));const a1019_0x38f9=function(_0x25c596,_0x43dd66){_0x25c596=_0x25c596-0x0;let _0x38f955=a1019_0x43dd[_0x25c596];return _0x38f955;};const _0x1f3803=a1019_0x38f9;'use strict';const util=require(_0x1f3803('0x1d')),logger=require(_0x1f3803('0x21'))('migration'),Sequence=function(){};Sequence['prototype'][_0x1f3803('0x2')]=function(_0x490bcb){const _0x3ad85c=_0x1f3803;this[_0x3ad85c('0x11')]=this['tail']?this[_0x3ad85c('0x11')]['finally'](_0x490bcb):_0x490bcb();};const Migration=function(_0x3fba64){const _0x3c7ba4=_0x1f3803;this[_0x3c7ba4('0x26')]=_0x3fba64,this[_0x3c7ba4('0x19')]=new Sequence();};Migration['prototype']['changeColumn']=function(_0x583ab6,_0x5a7bd2,_0x354cf8){const _0x5cff88=_0x1f3803,_0x7979aa=this;this[_0x5cff88('0x19')][_0x5cff88('0x2')](function(){const _0x285b46=_0x5cff88;return _0x7979aa[_0x285b46('0x26')][_0x285b46('0x25')](_0x583ab6,_0x5a7bd2,_0x354cf8)[_0x285b46('0xc')](function(){const _0x50e436=_0x285b46;logger[_0x50e436('0x20')](_0x50e436('0x13'),_0x5a7bd2,_0x583ab6);})['catch'](function(_0x2e03f4){const _0x22f573=_0x285b46;logger[_0x22f573('0x20')](JSON[_0x22f573('0x1e')](_0x2e03f4));});});},Migration[_0x1f3803('0x14')][_0x1f3803('0x12')]=function(_0x45c1e1,_0x325fdf,_0x3b3485){const _0x3901e7=_0x1f3803,_0x221d18=this;this[_0x3901e7('0x19')]['enqueue'](function(){const _0x47d0b7=_0x3901e7;return _0x221d18[_0x47d0b7('0x26')][_0x47d0b7('0x12')](_0x45c1e1,_0x325fdf,_0x3b3485)['then'](function(){const _0x37b49d=_0x47d0b7;logger[_0x37b49d('0x20')](_0x37b49d('0x8'),_0x325fdf,_0x45c1e1);})['catch'](function(_0x50b7a5){const _0xfdb1c8=_0x47d0b7;logger['info'](JSON[_0xfdb1c8('0x1e')](_0x50b7a5));});});},Migration['prototype']['dropTable']=function(_0xb36378){const _0x2a6916=_0x1f3803,_0x594df4=this;this[_0x2a6916('0x19')]['enqueue'](function(){const _0x4a26b2=_0x2a6916;return _0x594df4['queryInterface'][_0x4a26b2('0xf')](_0xb36378,{'force':!![]})[_0x4a26b2('0xc')](function(){const _0x54a0bb=_0x4a26b2;logger[_0x54a0bb('0x20')]('table\x20dropped\x20%s',_0xb36378);})[_0x4a26b2('0x3')](function(_0x4acfe7){logger['info'](JSON['stringify'](_0x4acfe7));});});},Migration[_0x1f3803('0x14')]['addIndex']=function(_0x32b62e,_0x1764e7,_0x1ac5ec){const _0x24717b=_0x1f3803,_0x3551f3=this;this['sequence'][_0x24717b('0x2')](function(){const _0x3cc1b5=_0x24717b;return _0x3551f3[_0x3cc1b5('0x26')][_0x3cc1b5('0x9')](_0x32b62e,_0x1764e7,{'indexName':_0x1ac5ec[_0x3cc1b5('0x1a')],'indicesType':_0x1ac5ec[_0x3cc1b5('0x1b')]})[_0x3cc1b5('0xc')](function(){const _0x7c07d=_0x3cc1b5;logger[_0x7c07d('0x20')](_0x7c07d('0x1'),_0x32b62e,_0x1764e7[_0x7c07d('0x1f')](','),_0x1ac5ec[_0x7c07d('0x1a')],_0x1ac5ec[_0x7c07d('0x1b')]);})[_0x3cc1b5('0x3')](function(_0x5629cc){const _0x1215cc=_0x3cc1b5;logger[_0x1215cc('0x20')](JSON[_0x1215cc('0x1e')](_0x5629cc));});});},Migration[_0x1f3803('0x14')]['removeIndex']=function(_0x49e90b,_0x3e825c){const _0x2887fc=_0x1f3803,_0x2f706f=this;this['sequence'][_0x2887fc('0x2')](function(){const _0x286f68=_0x2887fc;return _0x2f706f[_0x286f68('0x26')][_0x286f68('0x0')](_0x49e90b,_0x3e825c)[_0x286f68('0xc')](function(){const _0xe35cb8=_0x286f68;logger[_0xe35cb8('0x20')](_0xe35cb8('0x5'),_0x49e90b,_0x3e825c);})[_0x286f68('0x3')](function(_0x40f0aa){const _0xb5f13f=_0x286f68;logger[_0xb5f13f('0x20')](JSON['stringify'](_0x40f0aa));});});},Migration[_0x1f3803('0x14')][_0x1f3803('0x7')]=function(_0x13022a){const _0x4f5c9a=_0x1f3803,_0x56f017=this;this[_0x4f5c9a('0x19')][_0x4f5c9a('0x2')](function(){const _0x1c8d54=_0x4f5c9a;return _0x56f017['queryInterface'][_0x1c8d54('0xa')][_0x1c8d54('0x7')](_0x13022a)[_0x1c8d54('0xc')](function(){const _0xf76a13=_0x1c8d54;logger[_0xf76a13('0x20')]('query\x20%s',_0x13022a);})[_0x1c8d54('0x3')](function(_0x222b17){const _0x5e1be4=_0x1c8d54;logger[_0x5e1be4('0x20')](JSON[_0x5e1be4('0x1e')](_0x222b17));});});},Migration[_0x1f3803('0x14')][_0x1f3803('0x27')]=function(_0x1291f0,_0x347447){const _0x1426a9=_0x1f3803,_0xdd765=this;this[_0x1426a9('0x19')][_0x1426a9('0x2')](function(){const _0x4605d4=_0x1426a9;return _0xdd765[_0x4605d4('0x26')][_0x4605d4('0x27')](_0x1291f0,_0x347447)[_0x4605d4('0xc')](function(){const _0x3435dd=_0x4605d4;logger[_0x3435dd('0x20')](_0x3435dd('0xd'),_0x347447,_0x1291f0);})[_0x4605d4('0x3')](function(_0x2132ec){const _0xb3ef04=_0x4605d4;logger['info'](util[_0xb3ef04('0x16')](_0x2132ec,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x1f3803('0xe')]=function(_0x23c7fd,_0x3784a0,_0x24eff1){const _0x4953bc=_0x1f3803,_0x35098d=this;this[_0x4953bc('0x19')][_0x4953bc('0x2')](function(){const _0x4444c8=_0x4953bc;return _0x35098d['queryInterface'][_0x4444c8('0xe')](_0x23c7fd,_0x3784a0,_0x24eff1)['then'](function(){const _0x2c9379=_0x4444c8;logger[_0x2c9379('0x20')](_0x2c9379('0x6'),_0x3784a0,_0x24eff1,_0x23c7fd);})[_0x4444c8('0x3')](function(_0x505cbc){const _0x3a6adf=_0x4444c8;logger[_0x3a6adf('0x20')](util['inspect'](_0x505cbc,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x1f3803('0x17')]=function(_0x23784e){this['sequence']['enqueue'](function(){return _0x23784e();});},module[_0x1f3803('0x4')]={'up':function(_0x5979e5,_0x44eb1b){return new Promise(function(_0x309d93){const _0x4a1eef=a1019_0x38f9,_0x191e71=new Migration(_0x5979e5);_0x191e71[_0x4a1eef('0x12')]('chat_messages',_0x4a1eef('0xb'),{'type':_0x44eb1b[_0x4a1eef('0x18')]}),_0x191e71[_0x4a1eef('0x12')](_0x4a1eef('0x23'),_0x4a1eef('0x10'),{'type':_0x44eb1b[_0x4a1eef('0x22')]}),_0x191e71['addColumn']('openchannel_messages',_0x4a1eef('0xb'),{'type':_0x44eb1b[_0x4a1eef('0x18')]}),_0x191e71[_0x4a1eef('0x12')]('openchannel_messages',_0x4a1eef('0x10'),{'type':_0x44eb1b[_0x4a1eef('0x22')]}),_0x191e71[_0x4a1eef('0x12')](_0x4a1eef('0x24'),_0x4a1eef('0xb'),{'type':_0x44eb1b[_0x4a1eef('0x18')]}),_0x191e71[_0x4a1eef('0x12')]('sms_messages',_0x4a1eef('0x10'),{'type':_0x44eb1b[_0x4a1eef('0x22')]}),_0x191e71[_0x4a1eef('0x12')](_0x4a1eef('0x15'),'providerName',{'type':_0x44eb1b[_0x4a1eef('0x18')]}),_0x191e71[_0x4a1eef('0x12')](_0x4a1eef('0x15'),_0x4a1eef('0x10'),{'type':_0x44eb1b[_0x4a1eef('0x22')]}),_0x191e71[_0x4a1eef('0x12')](_0x4a1eef('0x1c'),_0x4a1eef('0xb'),{'type':_0x44eb1b['STRING']}),_0x191e71[_0x4a1eef('0x12')](_0x4a1eef('0x1c'),_0x4a1eef('0x10'),{'type':_0x44eb1b[_0x4a1eef('0x22')]}),_0x191e71['final'](_0x309d93);});},'down':function(){}}; \ No newline at end of file +const a1181_0x4a6a=['STRING','addIndex\x20%s\x20%s\x20%s\x20[%s]','addColumn','queryInterface','stringify','migration','sms_messages','final','info','removeIndex','Changed\x20column\x20%s\x20in\x20table\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','table\x20dropped\x20%s','dropTable','Removed\x20column\x20%s\x20from\x20%s','square_messages','enqueue','sequence','catch','finally','indexName','exports','removeColumn','changeColumn','sequelize','then','query','join','../config/logger','chat_messages','providerResponse','removeIndex\x20%s\x20%s','providerName','renameColumn','whatsapp_messages','TEXT','tail','prototype','indicesType','openchannel_messages'];(function(_0x3a1051,_0x4ec31c){const _0x4a6a61=function(_0x574980){while(--_0x574980){_0x3a1051['push'](_0x3a1051['shift']());}};_0x4a6a61(++_0x4ec31c);}(a1181_0x4a6a,0x99));const a1181_0x5749=function(_0x3a1051,_0x4ec31c){_0x3a1051=_0x3a1051-0x1cb;let _0x4a6a61=a1181_0x4a6a[_0x3a1051];return _0x4a6a61;};const a1181_0x24d593=a1181_0x5749;'use strict';const util=require('util'),logger=require(a1181_0x24d593(0x1ee))(a1181_0x24d593(0x1d7)),Sequence=function(){};Sequence['prototype'][a1181_0x24d593(0x1e2)]=function(_0x3b8f0d){const _0x1643d3=a1181_0x24d593;this[_0x1643d3(0x1ce)]=this[_0x1643d3(0x1ce)]?this[_0x1643d3(0x1ce)][_0x1643d3(0x1e5)](_0x3b8f0d):_0x3b8f0d();};const Migration=function(_0x10e64f){const _0x4fd515=a1181_0x24d593;this[_0x4fd515(0x1d5)]=_0x10e64f,this[_0x4fd515(0x1e3)]=new Sequence();};Migration[a1181_0x24d593(0x1cf)]['changeColumn']=function(_0x51faf3,_0x2ca72c,_0x2831f4){const _0x2144f2=a1181_0x24d593,_0x201d1e=this;this[_0x2144f2(0x1e3)][_0x2144f2(0x1e2)](function(){const _0x8a6fdd=_0x2144f2;return _0x201d1e[_0x8a6fdd(0x1d5)][_0x8a6fdd(0x1e9)](_0x51faf3,_0x2ca72c,_0x2831f4)[_0x8a6fdd(0x1eb)](function(){const _0x3934f2=_0x8a6fdd;logger[_0x3934f2(0x1da)](_0x3934f2(0x1dc),_0x2ca72c,_0x51faf3);})['catch'](function(_0x4a7f00){const _0x490dac=_0x8a6fdd;logger[_0x490dac(0x1da)](JSON[_0x490dac(0x1d6)](_0x4a7f00));});});},Migration[a1181_0x24d593(0x1cf)]['addColumn']=function(_0x5c3320,_0x157312,_0x16e68c){const _0x43cb8c=a1181_0x24d593,_0x22a6fb=this;this['sequence'][_0x43cb8c(0x1e2)](function(){const _0x13a5c4=_0x43cb8c;return _0x22a6fb[_0x13a5c4(0x1d5)][_0x13a5c4(0x1d4)](_0x5c3320,_0x157312,_0x16e68c)[_0x13a5c4(0x1eb)](function(){const _0x3b5f93=_0x13a5c4;logger[_0x3b5f93(0x1da)]('Added\x20column\x20%s\x20to\x20%s',_0x157312,_0x5c3320);})[_0x13a5c4(0x1e4)](function(_0x2efb7b){logger['info'](JSON['stringify'](_0x2efb7b));});});},Migration[a1181_0x24d593(0x1cf)][a1181_0x24d593(0x1df)]=function(_0x9ee325){const _0x2dcc29=a1181_0x24d593,_0x36099a=this;this['sequence'][_0x2dcc29(0x1e2)](function(){const _0x4e8eb3=_0x2dcc29;return _0x36099a['queryInterface'][_0x4e8eb3(0x1df)](_0x9ee325,{'force':!![]})[_0x4e8eb3(0x1eb)](function(){const _0x3c6361=_0x4e8eb3;logger[_0x3c6361(0x1da)](_0x3c6361(0x1de),_0x9ee325);})[_0x4e8eb3(0x1e4)](function(_0x24adf8){const _0x22fb98=_0x4e8eb3;logger[_0x22fb98(0x1da)](JSON[_0x22fb98(0x1d6)](_0x24adf8));});});},Migration[a1181_0x24d593(0x1cf)]['addIndex']=function(_0xfbbb55,_0xec638,_0xce2c31){const _0x5c4198=a1181_0x24d593,_0x4721d2=this;this[_0x5c4198(0x1e3)]['enqueue'](function(){const _0x384f5f=_0x5c4198;return _0x4721d2[_0x384f5f(0x1d5)]['addIndex'](_0xfbbb55,_0xec638,{'indexName':_0xce2c31[_0x384f5f(0x1e6)],'indicesType':_0xce2c31[_0x384f5f(0x1d0)]})[_0x384f5f(0x1eb)](function(){const _0x490d93=_0x384f5f;logger[_0x490d93(0x1da)](_0x490d93(0x1d3),_0xfbbb55,_0xec638[_0x490d93(0x1ed)](','),_0xce2c31[_0x490d93(0x1e6)],_0xce2c31[_0x490d93(0x1d0)]);})[_0x384f5f(0x1e4)](function(_0x4d1f7b){const _0x3a26de=_0x384f5f;logger[_0x3a26de(0x1da)](JSON[_0x3a26de(0x1d6)](_0x4d1f7b));});});},Migration[a1181_0x24d593(0x1cf)]['removeIndex']=function(_0x5639c6,_0xc39923){const _0x2f1bfd=a1181_0x24d593,_0x4458a3=this;this[_0x2f1bfd(0x1e3)]['enqueue'](function(){const _0x10ba39=_0x2f1bfd;return _0x4458a3['queryInterface'][_0x10ba39(0x1db)](_0x5639c6,_0xc39923)['then'](function(){const _0x360602=_0x10ba39;logger[_0x360602(0x1da)](_0x360602(0x1f1),_0x5639c6,_0xc39923);})[_0x10ba39(0x1e4)](function(_0x254f02){const _0x1e54a0=_0x10ba39;logger[_0x1e54a0(0x1da)](JSON['stringify'](_0x254f02));});});},Migration[a1181_0x24d593(0x1cf)][a1181_0x24d593(0x1ec)]=function(_0x4cc044){const _0x316ed2=a1181_0x24d593,_0x1768fe=this;this[_0x316ed2(0x1e3)]['enqueue'](function(){const _0x1dd471=_0x316ed2;return _0x1768fe[_0x1dd471(0x1d5)][_0x1dd471(0x1ea)]['query'](_0x4cc044)[_0x1dd471(0x1eb)](function(){const _0xd5da84=_0x1dd471;logger[_0xd5da84(0x1da)]('query\x20%s',_0x4cc044);})[_0x1dd471(0x1e4)](function(_0x55bc1e){const _0x5972cb=_0x1dd471;logger[_0x5972cb(0x1da)](JSON[_0x5972cb(0x1d6)](_0x55bc1e));});});},Migration[a1181_0x24d593(0x1cf)]['removeColumn']=function(_0x12f9c2,_0x4cd501){const _0x1371c5=a1181_0x24d593,_0x2f2e40=this;this[_0x1371c5(0x1e3)][_0x1371c5(0x1e2)](function(){const _0x5e796b=_0x1371c5;return _0x2f2e40[_0x5e796b(0x1d5)][_0x5e796b(0x1e8)](_0x12f9c2,_0x4cd501)[_0x5e796b(0x1eb)](function(){const _0x1a4a74=_0x5e796b;logger[_0x1a4a74(0x1da)](_0x1a4a74(0x1e0),_0x4cd501,_0x12f9c2);})[_0x5e796b(0x1e4)](function(_0x1a0274){logger['info'](util['inspect'](_0x1a0274,{'showHidden':![],'depth':null}));});});},Migration[a1181_0x24d593(0x1cf)][a1181_0x24d593(0x1cb)]=function(_0x24fea8,_0x4e76c8,_0x521e72){const _0x25a91f=a1181_0x24d593,_0x4c938b=this;this[_0x25a91f(0x1e3)][_0x25a91f(0x1e2)](function(){const _0x4f201b=_0x25a91f;return _0x4c938b[_0x4f201b(0x1d5)][_0x4f201b(0x1cb)](_0x24fea8,_0x4e76c8,_0x521e72)['then'](function(){const _0x504002=_0x4f201b;logger[_0x504002(0x1da)](_0x504002(0x1dd),_0x4e76c8,_0x521e72,_0x24fea8);})[_0x4f201b(0x1e4)](function(_0x4412e7){const _0x3fe070=_0x4f201b;logger[_0x3fe070(0x1da)](util['inspect'](_0x4412e7,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1181_0x24d593(0x1d9)]=function(_0x5c7cb0){const _0x3605e8=a1181_0x24d593;this[_0x3605e8(0x1e3)][_0x3605e8(0x1e2)](function(){return _0x5c7cb0();});},module[a1181_0x24d593(0x1e7)]={'up':function(_0x33da38,_0x58bbf8){return new Promise(function(_0x1b0576){const _0x359e8b=a1181_0x5749,_0x388596=new Migration(_0x33da38);_0x388596[_0x359e8b(0x1d4)](_0x359e8b(0x1ef),_0x359e8b(0x1f2),{'type':_0x58bbf8[_0x359e8b(0x1d2)]}),_0x388596[_0x359e8b(0x1d4)]('chat_messages',_0x359e8b(0x1f0),{'type':_0x58bbf8['TEXT']}),_0x388596[_0x359e8b(0x1d4)](_0x359e8b(0x1d1),_0x359e8b(0x1f2),{'type':_0x58bbf8[_0x359e8b(0x1d2)]}),_0x388596[_0x359e8b(0x1d4)]('openchannel_messages','providerResponse',{'type':_0x58bbf8[_0x359e8b(0x1cd)]}),_0x388596[_0x359e8b(0x1d4)](_0x359e8b(0x1d8),_0x359e8b(0x1f2),{'type':_0x58bbf8['STRING']}),_0x388596['addColumn']('sms_messages',_0x359e8b(0x1f0),{'type':_0x58bbf8[_0x359e8b(0x1cd)]}),_0x388596[_0x359e8b(0x1d4)]('whatsapp_messages',_0x359e8b(0x1f2),{'type':_0x58bbf8[_0x359e8b(0x1d2)]}),_0x388596['addColumn'](_0x359e8b(0x1cc),_0x359e8b(0x1f0),{'type':_0x58bbf8[_0x359e8b(0x1cd)]}),_0x388596['addColumn']('square_messages',_0x359e8b(0x1f2),{'type':_0x58bbf8[_0x359e8b(0x1d2)]}),_0x388596[_0x359e8b(0x1d4)](_0x359e8b(0x1e1),_0x359e8b(0x1f0),{'type':_0x58bbf8['TEXT']}),_0x388596[_0x359e8b(0x1d9)](_0x1b0576);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.5.8.js b/server/migrations/2.5.8.js new file mode 100644 index 0000000..87ae6b4 --- /dev/null +++ b/server/migrations/2.5.8.js @@ -0,0 +1 @@ +const a1182_0x5a0f=['Added\x20column\x20%s\x20to\x20%s','indicesType','then','../config/logger','query','final','migration','enqueue','inspect','join','dropTable','removeColumn','info','prototype','changeColumn','removeIndex','addIndex','tail','queryInterface','sequence','catch','stringify','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','removeIndex\x20%s\x20%s','addIndex\x20%s\x20%s\x20%s\x20[%s]','renameColumn','addColumn','finally','util'];(function(_0x1b708b,_0x585126){const _0x5a0fa9=function(_0x30ee42){while(--_0x30ee42){_0x1b708b['push'](_0x1b708b['shift']());}};_0x5a0fa9(++_0x585126);}(a1182_0x5a0f,0x187));const a1182_0x30ee=function(_0x1b708b,_0x585126){_0x1b708b=_0x1b708b-0x125;let _0x5a0fa9=a1182_0x5a0f[_0x1b708b];return _0x5a0fa9;};const a1182_0xb029e5=a1182_0x30ee;'use strict';const util=require(a1182_0xb029e5(0x133)),logger=require(a1182_0xb029e5(0x137))(a1182_0xb029e5(0x13a)),Sequence=function(){};Sequence[a1182_0xb029e5(0x141)][a1182_0xb029e5(0x13b)]=function(_0x3da3bd){const _0x4878a5=a1182_0xb029e5;this[_0x4878a5(0x128)]=this[_0x4878a5(0x128)]?this[_0x4878a5(0x128)][_0x4878a5(0x132)](_0x3da3bd):_0x3da3bd();};const Migration=function(_0x5efe50){this['queryInterface']=_0x5efe50,this['sequence']=new Sequence();};Migration['prototype'][a1182_0xb029e5(0x125)]=function(_0x2b044d,_0x1a7897,_0x48f526){const _0x17bfaa=a1182_0xb029e5,_0x2a8443=this;this[_0x17bfaa(0x12a)][_0x17bfaa(0x13b)](function(){const _0x27b00c=_0x17bfaa;return _0x2a8443['queryInterface'][_0x27b00c(0x125)](_0x2b044d,_0x1a7897,_0x48f526)[_0x27b00c(0x136)](function(){logger['info']('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x1a7897,_0x2b044d);})['catch'](function(_0x2c2623){const _0x398be9=_0x27b00c;logger[_0x398be9(0x140)](JSON[_0x398be9(0x12c)](_0x2c2623));});});},Migration[a1182_0xb029e5(0x141)]['addColumn']=function(_0x102a7b,_0x51a31d,_0x3ff254){const _0x4017dd=a1182_0xb029e5,_0x4e07fd=this;this[_0x4017dd(0x12a)][_0x4017dd(0x13b)](function(){const _0x1bad48=_0x4017dd;return _0x4e07fd[_0x1bad48(0x129)][_0x1bad48(0x131)](_0x102a7b,_0x51a31d,_0x3ff254)[_0x1bad48(0x136)](function(){const _0x493031=_0x1bad48;logger['info'](_0x493031(0x134),_0x51a31d,_0x102a7b);})[_0x1bad48(0x12b)](function(_0x3f87c5){const _0x1d1aad=_0x1bad48;logger['info'](JSON[_0x1d1aad(0x12c)](_0x3f87c5));});});},Migration[a1182_0xb029e5(0x141)][a1182_0xb029e5(0x13e)]=function(_0x4c2cc1){const _0x4bbfda=a1182_0xb029e5,_0x474c77=this;this[_0x4bbfda(0x12a)][_0x4bbfda(0x13b)](function(){const _0x1bb5d1=_0x4bbfda;return _0x474c77['queryInterface'][_0x1bb5d1(0x13e)](_0x4c2cc1,{'force':!![]})['then'](function(){const _0x93d68a=_0x1bb5d1;logger[_0x93d68a(0x140)]('table\x20dropped\x20%s',_0x4c2cc1);})[_0x1bb5d1(0x12b)](function(_0x2df394){const _0x5a0643=_0x1bb5d1;logger[_0x5a0643(0x140)](JSON[_0x5a0643(0x12c)](_0x2df394));});});},Migration[a1182_0xb029e5(0x141)][a1182_0xb029e5(0x127)]=function(_0x392a17,_0x141300,_0x591d3c){const _0x1b9a03=a1182_0xb029e5,_0x4ebd86=this;this[_0x1b9a03(0x12a)][_0x1b9a03(0x13b)](function(){const _0x1acb15=_0x1b9a03;return _0x4ebd86[_0x1acb15(0x129)]['addIndex'](_0x392a17,_0x141300,{'indexName':_0x591d3c['indexName'],'indicesType':_0x591d3c[_0x1acb15(0x135)]})[_0x1acb15(0x136)](function(){const _0x394069=_0x1acb15;logger['info'](_0x394069(0x12f),_0x392a17,_0x141300[_0x394069(0x13d)](','),_0x591d3c['indexName'],_0x591d3c[_0x394069(0x135)]);})[_0x1acb15(0x12b)](function(_0x575412){const _0x14f93a=_0x1acb15;logger[_0x14f93a(0x140)](JSON[_0x14f93a(0x12c)](_0x575412));});});},Migration['prototype'][a1182_0xb029e5(0x126)]=function(_0x2abb91,_0x230e68){const _0x37e2a2=a1182_0xb029e5,_0x25ece3=this;this[_0x37e2a2(0x12a)][_0x37e2a2(0x13b)](function(){const _0x18a389=_0x37e2a2;return _0x25ece3[_0x18a389(0x129)][_0x18a389(0x126)](_0x2abb91,_0x230e68)[_0x18a389(0x136)](function(){const _0x4f9d0e=_0x18a389;logger[_0x4f9d0e(0x140)](_0x4f9d0e(0x12e),_0x2abb91,_0x230e68);})[_0x18a389(0x12b)](function(_0x73cf36){logger['info'](JSON['stringify'](_0x73cf36));});});},Migration[a1182_0xb029e5(0x141)][a1182_0xb029e5(0x138)]=function(_0x2ec0af){const _0xb1a1c4=a1182_0xb029e5,_0x296528=this;this['sequence'][_0xb1a1c4(0x13b)](function(){const _0x21d093=_0xb1a1c4;return _0x296528[_0x21d093(0x129)]['sequelize'][_0x21d093(0x138)](_0x2ec0af)[_0x21d093(0x136)](function(){const _0x3384fe=_0x21d093;logger[_0x3384fe(0x140)]('query\x20%s',_0x2ec0af);})['catch'](function(_0xc5bdbc){const _0x186df0=_0x21d093;logger[_0x186df0(0x140)](JSON['stringify'](_0xc5bdbc));});});},Migration['prototype']['removeColumn']=function(_0x359f5e,_0x322642){const _0x5eecf1=this;this['sequence']['enqueue'](function(){const _0x2e8db5=a1182_0x30ee;return _0x5eecf1['queryInterface'][_0x2e8db5(0x13f)](_0x359f5e,_0x322642)[_0x2e8db5(0x136)](function(){const _0x4010b1=_0x2e8db5;logger[_0x4010b1(0x140)]('Removed\x20column\x20%s\x20from\x20%s',_0x322642,_0x359f5e);})['catch'](function(_0x572292){const _0x5ee044=_0x2e8db5;logger[_0x5ee044(0x140)](util[_0x5ee044(0x13c)](_0x572292,{'showHidden':![],'depth':null}));});});},Migration[a1182_0xb029e5(0x141)][a1182_0xb029e5(0x130)]=function(_0x4e4d15,_0x317c55,_0x3a4f00){const _0x26a68d=a1182_0xb029e5,_0x164d9a=this;this['sequence'][_0x26a68d(0x13b)](function(){const _0x36adb9=_0x26a68d;return _0x164d9a[_0x36adb9(0x129)][_0x36adb9(0x130)](_0x4e4d15,_0x317c55,_0x3a4f00)[_0x36adb9(0x136)](function(){const _0x57a902=_0x36adb9;logger[_0x57a902(0x140)](_0x57a902(0x12d),_0x317c55,_0x3a4f00,_0x4e4d15);})[_0x36adb9(0x12b)](function(_0x75e137){const _0x48217b=_0x36adb9;logger[_0x48217b(0x140)](util[_0x48217b(0x13c)](_0x75e137,{'showHidden':![],'depth':null}));});});},Migration[a1182_0xb029e5(0x141)][a1182_0xb029e5(0x139)]=function(_0x2b880d){const _0x149346=a1182_0xb029e5;this[_0x149346(0x12a)][_0x149346(0x13b)](function(){return _0x2b880d();});},module['exports']={'up':function(_0x3e1886){return new Promise(function(_0x4950e9){const _0x3bfbf3=a1182_0x30ee,_0x213755=new Migration(_0x3e1886);_0x213755[_0x3bfbf3(0x139)](_0x4950e9);});},'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 b3e0435..29968f1 100644 --- a/server/migrations/3.0.0-alpha.js +++ b/server/migrations/3.0.0-alpha.js @@ -1 +1 @@ -const a1020_0x119a=['renameColumn','indexName','removeColumn','inspect','util','catch','changeColumn','info','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','stringify','query\x20%s','final','sequelize','dropTable','tail','DROP\x20INDEX\x20`users_ibfk_1`\x20ON\x20users','removeIndex','queryInterface','Removed\x20column\x20%s\x20from\x20%s','enqueue','ALTER\x20TABLE\x20users\x20DROP\x20FOREIGN\x20KEY\x20`users_ibfk_1`','addIndex','join','migration','exports','then','table\x20dropped\x20%s','finally','sequence','../config/logger','addIndex\x20%s\x20%s\x20%s\x20[%s]','prototype','query','addColumn','Added\x20column\x20%s\x20to\x20%s'];(function(_0xc0d8aa,_0x119a5e){const _0x3b044a=function(_0x24ff37){while(--_0x24ff37){_0xc0d8aa['push'](_0xc0d8aa['shift']());}};_0x3b044a(++_0x119a5e);}(a1020_0x119a,0x1a2));const a1020_0x3b04=function(_0xc0d8aa,_0x119a5e){_0xc0d8aa=_0xc0d8aa-0x0;let _0x3b044a=a1020_0x119a[_0xc0d8aa];return _0x3b044a;};const _0x4781e7=a1020_0x3b04;'use strict';const util=require(_0x4781e7('0x6')),logger=require(_0x4781e7('0x1f'))(_0x4781e7('0x19')),Sequence=function(){};Sequence['prototype']['enqueue']=function(_0x24ff37){const _0x44551a=_0x4781e7;this[_0x44551a('0x10')]=this['tail']?this['tail'][_0x44551a('0x1d')](_0x24ff37):_0x24ff37();};const Migration=function(_0x417000){const _0x5cc08f=_0x4781e7;this['queryInterface']=_0x417000,this[_0x5cc08f('0x1e')]=new Sequence();};Migration[_0x4781e7('0x21')][_0x4781e7('0x8')]=function(_0x3e7123,_0x21b0c2,_0x27139d){const _0x33a002=_0x4781e7,_0x4a0b92=this;this[_0x33a002('0x1e')][_0x33a002('0x15')](function(){const _0x230a69=_0x33a002;return _0x4a0b92['queryInterface'][_0x230a69('0x8')](_0x3e7123,_0x21b0c2,_0x27139d)[_0x230a69('0x1b')](function(){const _0x18920e=_0x230a69;logger[_0x18920e('0x9')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x21b0c2,_0x3e7123);})['catch'](function(_0x392bf1){const _0x348e35=_0x230a69;logger[_0x348e35('0x9')](JSON[_0x348e35('0xb')](_0x392bf1));});});},Migration[_0x4781e7('0x21')][_0x4781e7('0x0')]=function(_0x26552e,_0x57831c,_0xe4ee16){const _0x5a1237=_0x4781e7,_0x141e2e=this;this[_0x5a1237('0x1e')]['enqueue'](function(){const _0x30c711=_0x5a1237;return _0x141e2e['queryInterface']['addColumn'](_0x26552e,_0x57831c,_0xe4ee16)[_0x30c711('0x1b')](function(){const _0x28372b=_0x30c711;logger[_0x28372b('0x9')](_0x28372b('0x1'),_0x57831c,_0x26552e);})[_0x30c711('0x7')](function(_0x53b46f){const _0xa86294=_0x30c711;logger[_0xa86294('0x9')](JSON[_0xa86294('0xb')](_0x53b46f));});});},Migration[_0x4781e7('0x21')][_0x4781e7('0xf')]=function(_0x1a0619){const _0x595bdc=_0x4781e7,_0xf6e0b6=this;this[_0x595bdc('0x1e')][_0x595bdc('0x15')](function(){const _0x1a5033=_0x595bdc;return _0xf6e0b6[_0x1a5033('0x13')][_0x1a5033('0xf')](_0x1a0619,{'force':!![]})[_0x1a5033('0x1b')](function(){const _0x3df563=_0x1a5033;logger[_0x3df563('0x9')](_0x3df563('0x1c'),_0x1a0619);})[_0x1a5033('0x7')](function(_0x5a6b87){const _0x40bc08=_0x1a5033;logger[_0x40bc08('0x9')](JSON[_0x40bc08('0xb')](_0x5a6b87));});});},Migration[_0x4781e7('0x21')][_0x4781e7('0x17')]=function(_0x25505f,_0x5729f0,_0x7db8ee){const _0x2699f2=this;this['sequence']['enqueue'](function(){const _0x3b8164=a1020_0x3b04;return _0x2699f2[_0x3b8164('0x13')]['addIndex'](_0x25505f,_0x5729f0,{'indexName':_0x7db8ee[_0x3b8164('0x3')],'indicesType':_0x7db8ee['indicesType']})[_0x3b8164('0x1b')](function(){const _0x832671=_0x3b8164;logger[_0x832671('0x9')](_0x832671('0x20'),_0x25505f,_0x5729f0[_0x832671('0x18')](','),_0x7db8ee[_0x832671('0x3')],_0x7db8ee['indicesType']);})[_0x3b8164('0x7')](function(_0x18f0ae){const _0x3894f8=_0x3b8164;logger[_0x3894f8('0x9')](JSON[_0x3894f8('0xb')](_0x18f0ae));});});},Migration[_0x4781e7('0x21')][_0x4781e7('0x12')]=function(_0x1a4ebb,_0x5a6bef){const _0x30c019=_0x4781e7,_0x2177f1=this;this[_0x30c019('0x1e')][_0x30c019('0x15')](function(){const _0x1298a5=_0x30c019;return _0x2177f1[_0x1298a5('0x13')][_0x1298a5('0x12')](_0x1a4ebb,_0x5a6bef)[_0x1298a5('0x1b')](function(){const _0x3b6c48=_0x1298a5;logger[_0x3b6c48('0x9')]('removeIndex\x20%s\x20%s',_0x1a4ebb,_0x5a6bef);})['catch'](function(_0x13e0b2){const _0x456b62=_0x1298a5;logger[_0x456b62('0x9')](JSON[_0x456b62('0xb')](_0x13e0b2));});});},Migration['prototype'][_0x4781e7('0x22')]=function(_0xb1bd09){const _0x333f63=_0x4781e7,_0xea752d=this;this['sequence'][_0x333f63('0x15')](function(){const _0x32da9e=_0x333f63;return _0xea752d[_0x32da9e('0x13')][_0x32da9e('0xe')]['query'](_0xb1bd09)[_0x32da9e('0x1b')](function(){const _0x1b4e08=_0x32da9e;logger[_0x1b4e08('0x9')](_0x1b4e08('0xc'),_0xb1bd09);})['catch'](function(_0x3ea8ac){const _0x429e4a=_0x32da9e;logger[_0x429e4a('0x9')](JSON[_0x429e4a('0xb')](_0x3ea8ac));});});},Migration['prototype'][_0x4781e7('0x4')]=function(_0x4aaf5b,_0x272767){const _0x419b05=_0x4781e7,_0x25b479=this;this['sequence'][_0x419b05('0x15')](function(){const _0x426243=_0x419b05;return _0x25b479[_0x426243('0x13')]['removeColumn'](_0x4aaf5b,_0x272767)['then'](function(){const _0x24488a=_0x426243;logger[_0x24488a('0x9')](_0x24488a('0x14'),_0x272767,_0x4aaf5b);})[_0x426243('0x7')](function(_0x43e677){const _0x10b358=_0x426243;logger['info'](util[_0x10b358('0x5')](_0x43e677,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x4781e7('0x2')]=function(_0x155e9e,_0x5038be,_0x75bdab){const _0x6e76e3=_0x4781e7,_0x365c14=this;this[_0x6e76e3('0x1e')][_0x6e76e3('0x15')](function(){const _0x4f9a87=_0x6e76e3;return _0x365c14['queryInterface']['renameColumn'](_0x155e9e,_0x5038be,_0x75bdab)['then'](function(){const _0x43e506=a1020_0x3b04;logger[_0x43e506('0x9')](_0x43e506('0xa'),_0x5038be,_0x75bdab,_0x155e9e);})[_0x4f9a87('0x7')](function(_0x2b1770){const _0x3eee9f=_0x4f9a87;logger[_0x3eee9f('0x9')](util[_0x3eee9f('0x5')](_0x2b1770,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x4781e7('0xd')]=function(_0x492b9f){const _0x91914c=_0x4781e7;this['sequence'][_0x91914c('0x15')](function(){return _0x492b9f();});},module[_0x4781e7('0x1a')]={'up':function(_0x53af94){return new Promise(function(_0x1062d1){const _0x26070e=a1020_0x3b04,_0x1d0d5d=new Migration(_0x53af94);_0x1d0d5d[_0x26070e('0x22')](_0x26070e('0x16')),_0x1d0d5d[_0x26070e('0x22')](_0x26070e('0x11')),_0x1d0d5d[_0x26070e('0x22')]('ALTER\x20TABLE\x20users\x20ADD\x20CONSTRAINT\x20`users_ibfk_1`\x20FOREIGN\x20KEY\x20(userProfileId)\x20REFERENCES\x20user_profiles(id)\x20ON\x20DELETE\x20RESTRICT'),_0x1d0d5d[_0x26070e('0xd')](_0x1062d1);});},'down':function(){}}; \ No newline at end of file +const a1183_0xc3ad=['addIndex\x20%s\x20%s\x20%s\x20[%s]','indicesType','inspect','exports','final','dropTable','indexName','../config/logger','util','ALTER\x20TABLE\x20users\x20DROP\x20FOREIGN\x20KEY\x20`users_ibfk_1`','queryInterface','addColumn','table\x20dropped\x20%s','enqueue','info','tail','sequelize','ALTER\x20TABLE\x20users\x20ADD\x20CONSTRAINT\x20`users_ibfk_1`\x20FOREIGN\x20KEY\x20(userProfileId)\x20REFERENCES\x20user_profiles(id)\x20ON\x20DELETE\x20RESTRICT','removeIndex','stringify','catch','changeColumn','renameColumn','removeColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','sequence','prototype','Changed\x20column\x20%s\x20in\x20table\x20%s','DROP\x20INDEX\x20`users_ibfk_1`\x20ON\x20users','query','addIndex','join','migration','then'];(function(_0x30dfee,_0x28deee){const _0xc3ad0f=function(_0x3a2caf){while(--_0x3a2caf){_0x30dfee['push'](_0x30dfee['shift']());}};_0xc3ad0f(++_0x28deee);}(a1183_0xc3ad,0x1bc));const a1183_0x3a2c=function(_0x30dfee,_0x28deee){_0x30dfee=_0x30dfee-0x157;let _0xc3ad0f=a1183_0xc3ad[_0x30dfee];return _0xc3ad0f;};const a1183_0x480f88=a1183_0x3a2c;'use strict';const util=require(a1183_0x480f88(0x15d)),logger=require(a1183_0x480f88(0x15c))(a1183_0x480f88(0x175)),Sequence=function(){};Sequence[a1183_0x480f88(0x16f)]['enqueue']=function(_0x3db8a3){const _0x591ea0=a1183_0x480f88;this[_0x591ea0(0x164)]=this[_0x591ea0(0x164)]?this[_0x591ea0(0x164)]['finally'](_0x3db8a3):_0x3db8a3();};const Migration=function(_0x3a7524){const _0x5cb4ce=a1183_0x480f88;this['queryInterface']=_0x3a7524,this[_0x5cb4ce(0x16e)]=new Sequence();};Migration['prototype'][a1183_0x480f88(0x16a)]=function(_0x1b0ca4,_0x4e86c8,_0x19f9ba){const _0x191dee=a1183_0x480f88,_0x5205a7=this;this[_0x191dee(0x16e)][_0x191dee(0x162)](function(){const _0x271c73=_0x191dee;return _0x5205a7[_0x271c73(0x15f)][_0x271c73(0x16a)](_0x1b0ca4,_0x4e86c8,_0x19f9ba)[_0x271c73(0x176)](function(){const _0x28b695=_0x271c73;logger['info'](_0x28b695(0x170),_0x4e86c8,_0x1b0ca4);})[_0x271c73(0x169)](function(_0x4780e4){const _0x16acf9=_0x271c73;logger[_0x16acf9(0x163)](JSON[_0x16acf9(0x168)](_0x4780e4));});});},Migration[a1183_0x480f88(0x16f)][a1183_0x480f88(0x160)]=function(_0x2592ac,_0x24f696,_0x58b64b){const _0x39eb3d=a1183_0x480f88,_0x59e871=this;this[_0x39eb3d(0x16e)][_0x39eb3d(0x162)](function(){const _0x493395=_0x39eb3d;return _0x59e871[_0x493395(0x15f)][_0x493395(0x160)](_0x2592ac,_0x24f696,_0x58b64b)[_0x493395(0x176)](function(){const _0x241bc4=_0x493395;logger[_0x241bc4(0x163)]('Added\x20column\x20%s\x20to\x20%s',_0x24f696,_0x2592ac);})[_0x493395(0x169)](function(_0x428bf6){const _0xe5aa61=_0x493395;logger[_0xe5aa61(0x163)](JSON[_0xe5aa61(0x168)](_0x428bf6));});});},Migration['prototype'][a1183_0x480f88(0x15a)]=function(_0x12fcf1){const _0x55fcf4=a1183_0x480f88,_0x43764d=this;this[_0x55fcf4(0x16e)][_0x55fcf4(0x162)](function(){const _0x236522=_0x55fcf4;return _0x43764d[_0x236522(0x15f)]['dropTable'](_0x12fcf1,{'force':!![]})['then'](function(){const _0x782a44=_0x236522;logger[_0x782a44(0x163)](_0x782a44(0x161),_0x12fcf1);})['catch'](function(_0x22b948){const _0x1cc0d6=_0x236522;logger[_0x1cc0d6(0x163)](JSON[_0x1cc0d6(0x168)](_0x22b948));});});},Migration[a1183_0x480f88(0x16f)][a1183_0x480f88(0x173)]=function(_0x42305d,_0x21054d,_0x3ec76b){const _0x4fa201=a1183_0x480f88,_0xc29bb4=this;this['sequence'][_0x4fa201(0x162)](function(){const _0x5a8aad=_0x4fa201;return _0xc29bb4[_0x5a8aad(0x15f)][_0x5a8aad(0x173)](_0x42305d,_0x21054d,{'indexName':_0x3ec76b[_0x5a8aad(0x15b)],'indicesType':_0x3ec76b[_0x5a8aad(0x178)]})[_0x5a8aad(0x176)](function(){const _0x516d60=_0x5a8aad;logger[_0x516d60(0x163)](_0x516d60(0x177),_0x42305d,_0x21054d[_0x516d60(0x174)](','),_0x3ec76b['indexName'],_0x3ec76b['indicesType']);})[_0x5a8aad(0x169)](function(_0x2083e2){const _0xefd9f4=_0x5a8aad;logger[_0xefd9f4(0x163)](JSON[_0xefd9f4(0x168)](_0x2083e2));});});},Migration[a1183_0x480f88(0x16f)][a1183_0x480f88(0x167)]=function(_0x29666f,_0x10791c){const _0x491089=a1183_0x480f88,_0x2b283c=this;this[_0x491089(0x16e)]['enqueue'](function(){const _0x1bce1c=_0x491089;return _0x2b283c[_0x1bce1c(0x15f)]['removeIndex'](_0x29666f,_0x10791c)[_0x1bce1c(0x176)](function(){const _0x3b814d=_0x1bce1c;logger[_0x3b814d(0x163)]('removeIndex\x20%s\x20%s',_0x29666f,_0x10791c);})[_0x1bce1c(0x169)](function(_0x3efad9){const _0x490e61=_0x1bce1c;logger[_0x490e61(0x163)](JSON[_0x490e61(0x168)](_0x3efad9));});});},Migration[a1183_0x480f88(0x16f)][a1183_0x480f88(0x172)]=function(_0x377998){const _0x9d8265=a1183_0x480f88,_0xabb5a3=this;this[_0x9d8265(0x16e)]['enqueue'](function(){const _0x394657=_0x9d8265;return _0xabb5a3[_0x394657(0x15f)][_0x394657(0x165)][_0x394657(0x172)](_0x377998)['then'](function(){const _0x594814=_0x394657;logger[_0x594814(0x163)]('query\x20%s',_0x377998);})[_0x394657(0x169)](function(_0x1a719c){const _0x19d155=_0x394657;logger[_0x19d155(0x163)](JSON['stringify'](_0x1a719c));});});},Migration[a1183_0x480f88(0x16f)][a1183_0x480f88(0x16c)]=function(_0x1b5944,_0xc934ee){const _0x3a1463=a1183_0x480f88,_0x4300bc=this;this[_0x3a1463(0x16e)]['enqueue'](function(){const _0x23dd7c=_0x3a1463;return _0x4300bc[_0x23dd7c(0x15f)][_0x23dd7c(0x16c)](_0x1b5944,_0xc934ee)[_0x23dd7c(0x176)](function(){const _0x44e2a3=_0x23dd7c;logger[_0x44e2a3(0x163)]('Removed\x20column\x20%s\x20from\x20%s',_0xc934ee,_0x1b5944);})[_0x23dd7c(0x169)](function(_0x61225f){const _0x5d3b56=_0x23dd7c;logger[_0x5d3b56(0x163)](util[_0x5d3b56(0x157)](_0x61225f,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1183_0x480f88(0x16b)]=function(_0x14e1a4,_0x34c36,_0x28ed96){const _0x57db91=a1183_0x480f88,_0x1c3915=this;this[_0x57db91(0x16e)][_0x57db91(0x162)](function(){const _0x25051c=_0x57db91;return _0x1c3915[_0x25051c(0x15f)][_0x25051c(0x16b)](_0x14e1a4,_0x34c36,_0x28ed96)[_0x25051c(0x176)](function(){const _0x2d5c95=_0x25051c;logger[_0x2d5c95(0x163)](_0x2d5c95(0x16d),_0x34c36,_0x28ed96,_0x14e1a4);})['catch'](function(_0x1461f5){const _0x231d91=_0x25051c;logger[_0x231d91(0x163)](util[_0x231d91(0x157)](_0x1461f5,{'showHidden':![],'depth':null}));});});},Migration['prototype'][a1183_0x480f88(0x159)]=function(_0x1273f3){const _0x3a1628=a1183_0x480f88;this[_0x3a1628(0x16e)]['enqueue'](function(){return _0x1273f3();});},module[a1183_0x480f88(0x158)]={'up':function(_0xfd3a60){return new Promise(function(_0x50495f){const _0x120581=a1183_0x3a2c,_0x3b0040=new Migration(_0xfd3a60);_0x3b0040['query'](_0x120581(0x15e)),_0x3b0040[_0x120581(0x172)](_0x120581(0x171)),_0x3b0040['query'](_0x120581(0x166)),_0x3b0040[_0x120581(0x159)](_0x50495f);});},'down':function(){}}; \ No newline at end of file diff --git a/server/mysqldb/index.js b/server/mysqldb/index.js index ddb0ba7..7a6b07f 100644 --- a/server/mysqldb/index.js +++ b/server/mysqldb/index.js @@ -1 +1 @@ -const a1021_0x550f=['../api/analyticDefaultReport/analyticDefaultReport.model','ToChatWebsiteId','ZendeskConfiguration','ToOpenchannelAccountId','SquareProject','HopperFinals','../api/chatWebsite/chatWebsite.model','hasOne','Trunk','../api/intSalesforceAccount/intSalesforceAccount.model','SenderId','int_desk_configuration_has_tags','UserProfileSection','OpenchannelApplication','TriggerAllId','../api/cdr/cdr.model','SmsQueueReport','JscriptyAnswerReport','../api/smsAccount/smsAccount.model','ServicenowAccount','FaxApplication','../api/chatApplication/chatApplication.model','List','Dynamics365Field','AccountId','../api/mailServerOut/mailServerOut.model','chat_group_has_users','SmsInteractions','../config/environment','../api/intZendeskField/intZendeskField.model','DeskConfiguration','VoiceDialReport','../api/intSalesforceField/intSalesforceField.model','../api/intFreshdeskField/intFreshdeskField.model','user_has_mail_accounts','UserMailQueue','ToAccount','moh_has_sounds','user_has_whatsapp_interactions','../api/faxQueue/faxQueue.model','../api/voiceAgentReport/voiceAgentReport.model','Exntensions','../api/userSmsQueue/userSmsQueue.model','team_has_sms_queues','SmsAccounts','../api/chatProactiveAction/chatProactiveAction.model','../api/voiceMusicOnHold/voiceMusicOnHold.model','UserProfile','ChatGroupId','../api/analyticMetric/analyticMetric.model','CmCompany','FaxQueue','team_has_voice_queues','FaxInteraction','UserProfileResource','Website','Subjects','../api/integrationReport/integrationReport.model','Network','VoiceQueuesRt','ChatInternalMessage','Trigger','Teams','UserOpenchannelQueue','MailApplications','../api/trunk/trunk.model','UserProfileSections','ScreenRecording','Hoppers','../api/userOpenchannelQueue/userOpenchannelQueue.model','SmsAccount','ToWhatsappAccountId','ChatApplications','../api/userProfile/userProfile.model','../api/pause/pause.model','../api/smsTransferReport/smsTransferReport.model','campaigns_has_cm_lists','UserOpenchannelInteractions','../api/trigger/trigger.model','SquareRecording','OpenchannelInteractionId','AutomationAllId','All','Action','../api/intFreshsalesConfiguration/intFreshsalesConfiguration.model','Pause','ToSmsQueueId','JscriptySessions','Imap','user_has_openchannel_interactions','VoiceAgentReport','FaxTransferReport','TagId','../api/mailServerIn/mailServerIn.model','Plugin','int_zendesk_configuration_has_tags','CmHopperBlack','../api/userVoiceQueue/userVoiceQueue.model','SquareMessage','utf8_general_ci','../api/intFreshdeskConfiguration/intFreshdeskConfiguration.model','SugarcrmAccount','../api/squareMessage/squareMessage.model','UserWhatsappQueue','IntervalId','Agents','Members','../api/migration/migration.model','../api/mailApplication/mailApplication.model','WhatsappQueue','mysql','FromSmsAccountId','sequelizeHistory','Dispositions','SquareOdbc','ThroughTags','../api/smsMessage/smsMessage.model','VoiceCallReport','user_has_sms_interactions','../api/squareReportDetail/squareReportDetail.model','VoiceQueueId','dialectOptions','ChatOfflineMessage','Lists','../api/cmList/cmList.model','../api/cmHopperFinal/cmHopperFinal.model','MailQueue','../api/variable/variable.model','BlackLists','../api/faxInteraction/faxInteraction.model','../api/condition/condition.model','SalesforceField','../api/attachment/attachment.model','ServicenowConfiguration','mandatoryDispositionPause','../api/plugin/plugin.model','ChatApplication','FaxApplications','cm_user_has_lists','Agent','../api/intDynamics365Account/intDynamics365Account.model','../api/intServicenowField/intServicenowField.model','../api/analyticFieldReport/analyticFieldReport.model','../api/integration/integration.model','isProduction','user_has_fax_accounts','ChatTransferReport','ZohoField','AttachmentId','Queue','FreshdeskAccount','../api/whatsappQueue/whatsappQueue.model','WhatsappQueueId','ChatQueues','UserSmsInteractions','../api/cmCompany/cmCompany.model','Configurations','../api/intSugarcrmAccount/intSugarcrmAccount.model','VoicePrefix','VoiceQueues','UserWhatsappInteractions','../api/smsInteraction/smsInteraction.model','OpenchannelQueue','Template','AnalyticCustomReport','FromUserId','../api/voiceMailMessage/voiceMailMessage.model','DefaultReportId','name','SmsQueueId','CompanyId','Dashboard','Sounds','UserChatInteractions','CustomReportId','info','WhatsappMessage','../api/whatsappInteraction/whatsappInteraction.model','Interaction','../api/cmHopperHistory/cmHopperHistory.model','MailSubstatus','team_has_whatsapp_queues','MailQueueReport','Dynamics365Configuration','VoiceContext','Notifications','SmsQueue','../api/userVoiceQueueRt/userVoiceQueueRt.model','../api/schedule/schedule.model','FaxInteractions','belongsToMany','VoiceQueueReport','DataTypes','Tag','ToFaxQueueId','Actions','../api/userMailQueue/userMailQueue.model','SmsApplication','WhatsappInteractionId','../api/intZohoConfiguration/intZohoConfiguration.model','Account','-LOCAL_FILES','ChatQueueReport','../api/intZendeskAccount/intZendeskAccount.model','OpenchannelAccount','ZohoConfiguration','db-query','FreshsalesAccount','UserSmsQueue','Smtp','cascade','../api/smsQueue/smsQueue.model','FromOpenchannelAccountId','../api/interval/interval.model','Variable','../api/openchannelAccount/openchannelAccount.model','HopperHistory','VoicePrefixes','SugarcrmConfiguration','../api/notification/notification.model','../api/faxMessage/faxMessage.model','../api/tag/tag.model','../api/chatInteraction/chatInteraction.model','FreshdeskConfiguration','FieldId','mysqlUser','VtigerAccount','WhatsappQueueReport','Attachment','FaxInteractionId','SmsInteractionId','WhatsappAccountId','ZohoAccount','../api/intServicenowAccount/intServicenowAccount.model','../api/mailTransferReport/mailTransferReport.model','voice_queues_has_cm_lists','UserMailInteractions','Dynamics365Account','../api/analyticTreeReport/analyticTreeReport.model','JscriptyProject','TrunkId','../api/intDynamics365Field/intDynamics365Field.model','WhatsappAccounts','SubjectId','ToSmsAccountId','MailAccounts','AnalyticMetric','CampaignId','ChatGroup','SquareProjectId','user_has_teams','restrict','user_has_square_projects','UserFaxInteractions','ZendeskAccount','../api/userFaxQueue/userFaxQueue.model','SquareReport','OneAny','defaultsDeep','user_has_chat_interactions','openchannel_interaction_has_tags','../api/intDynamics365Configuration/intDynamics365Configuration.model','../api/sound/sound.model','ToChatQueueId','../api/analyticCustomReport/analyticCustomReport.model','../api/intVtigerAccount/intVtigerAccount.model','AnyConditions','../api/faxTransferReport/faxTransferReport.model','../api/dashboardItem/dashboardItem.model','../api/intDeskAccount/intDeskAccount.model','DescriptionId','chat_interaction_has_tags','Descriptions','utf8mb4','../api/voiceContext/voiceContext.model','OpenchannelMessage','Field','ProjectId','UserChatQueue','../api/action/action.model','../api/intFreshsalesField/intFreshsalesField.model','ChatInteractions','TriggerAnyId','../api/screenRecording/screenRecording.model','../api/openchannelQueueReport/openchannelQueueReport.model','../api/userWhatsappQueue/userWhatsappQueue.model','../api/campaign/campaign.model','database','int_freshdesk_configuration_has_tags','fax_interaction_has_tags','Users','campaigns_has_cm_blacklists','OpenchannelQueues','OpenchannelTransferReport','../api/userProfileResource/userProfileResource.model','../api/openchannelTransferReport/openchannelTransferReport.model','../api/chatQueueReport/chatQueueReport.model','UserId','-FOUND_ROWS','ToUserId','ChatProactiveAction','WhatsappQueues','CustomFields','ChatWebsite','FaxAccountId','lodash','FaxQueueReport','WhatsappInteraction','team_has_mail_queues','ToQueueId','Subject','CannedAnswer','Extensions','ReportAgentPreview','MailApplication','DeskField','Messages','whatsapp_interaction_has_tags','HopperBlacks','ContactId','Company','../api/voiceQueuesLog/voiceQueuesLog.model','../api/disposition/disposition.model','MailAccountId','UserVoiceQueueRt','Groups','../api/network/network.model','UserFaxQueue','Tags','../api/voiceMail/voiceMail.model','Team','OwnerId','userProfileId','ChatInteractionId','MailMessage','sectionId','mysqlPassword','CmHopperFinal','../api/chatInternalMessage/chatInternalMessage.model','../api/voiceCallReport/voiceCallReport.model','FreshdeskField','License','exports','SalesforceAccount','SmsAccountId','mysqlDatabase','SquareProjects','../api/intVtigerField/intVtigerField.model','../api/mailQueueReport/mailQueueReport.model','Sound','Mohs','SmsInteraction','../api/voiceExtension/voiceExtension.model','ProactiveActions','CmHopper','Owner','../api/smsApplication/smsApplication.model','HopperHistories','FromId','VoiceQueue','VoiceMusicOnHold','CmList','LOCAL_FILES','AnalyticDefaultReport','CmContact','../api/chatGroup/chatGroup.model','../api/intZohoField/intZohoField.model','Condition','TrunkBackup','AllConditions','Intervals','Attachments','SmsApplications','JscriptySessionReport','Integration','AgentReports','WhatsappTransferReport','hasMany','FaxMessage','VoiceChanSpy','WhatsappApplication','user_has_chat_websites','../api/cmCustomField/cmCustomField.model','../api/cloudProvider/cloudProvider.model','Contacts','sequelize','../api/license/license.model','CmHopperHistory','AnalyticFieldReport','ToFaxAccountId','jstz','Answers','../api/intSugarcrmConfiguration/intSugarcrmConfiguration.model','VoiceExtension','../api/jscriptySessionReport/jscriptySessionReport.model','ListId','SmsMessage','Automation','../api/cmContact/cmContact.model','Any','AnyCondition','username','Notification','../api/mailInteraction/mailInteraction.model','User','Contact','Resources','Cdr','OpenchannelAccountId','cm_user_has_contacts','SugarcrmField','MailInteractionId','MailAccount','ToQueue','FreshsalesField','ChatInteraction','SmsTransferReport','options','user_has_mail_interactions','SalesforceConfiguration','FaxQueues','AnalyticExtractedReport','ChatWebsites','VtigerField','VtigerConfiguration','Schedule','../api/user/user.model','Interactions','OpenchannelQueueReport','ZendeskField','mailbox','../api/cmHopperBlack/cmHopperBlack.model','OpenchannelQueueId','team_has_openchannel_queues','VoiceMailMessage','Queues','MailServerIn','../api/jscriptyQuestionReport/jscriptyQuestionReport.model','../api/template/template.model','../api/whatsappTransferReport/whatsappTransferReport.model','../api/voiceDialReport/voiceDialReport.model','CmCustomField','mailboxuser','ToId','FreshsalesConfiguration','FromAccount','../api/whatsappQueueReport/whatsappQueueReport.model','AutomationId','MailServerOut','ToMailAccountId','../api/faxAccount/faxAccount.model','cm_contact_has_tags','Fields','Interval','../api/intFreshdeskAccount/intFreshdeskAccount.model','team_has_fax_queues','ChatMessage','../api/intSugarcrmField/intSugarcrmField.model','MailInteraction','UserVoiceQueue','WhatsappInteractions','../api/voiceQueue/voiceQueue.model','FromFaxAccountId','../api/intFreshsalesAccount/intFreshsalesAccount.model','VoiceRecording','WhatsappAccount','../api/mailMessage/mailMessage.model','FromAgent','../api/chatTransferReport/chatTransferReport.model','../api/squareOdbc/squareOdbc.model','MetricId','Disposition','JscriptyQuestionReport','sms_interaction_has_tags','user_has_fax_interactions','VoiceMail','ChatWebsiteId','SmsQueues','Campaign','ChatQueue','QueueCalls','MailTransferReport','getConfigService','FaxAccount','../api/reportAgentPreview/reportAgentPreview.model','../api/whatsappMessage/whatsappMessage.model','OpenchannelInteraction','../api/voicePrefix/voicePrefix.model','mail_interaction_has_tags','AutomationAnyId','SessionId','TriggerId','VariableId','ServicenowField','../api/whatsappApplication/whatsappApplication.model','Recordings','../api/intServicenowConfiguration/intServicenowConfiguration.model','../api/analyticExtractedReport/analyticExtractedReport.model','Migration','../api/smsQueueReport/smsQueueReport.model','mandatoryDispositionPauseId','AllCondition','../api/squareReport/squareReport.model','DeskAccount','ToAgent','uniqueid','Description','../api/squareRecording/squareRecording.model','belongsTo','../api/voiceTransferReport/voiceTransferReport.model','user_has_sms_accounts','MailInteractions','Applications','CloudProvider'];(function(_0x3a77f0,_0x550faa){const _0x5b25ba=function(_0x52d3c3){while(--_0x52d3c3){_0x3a77f0['push'](_0x3a77f0['shift']());}};_0x5b25ba(++_0x550faa);}(a1021_0x550f,0x1d5));const a1021_0x5b25=function(_0x3a77f0,_0x550faa){_0x3a77f0=_0x3a77f0-0x0;let _0x5b25ba=a1021_0x550f[_0x3a77f0];return _0x5b25ba;};const _0x23128f=a1021_0x5b25;'use strict';const config=require(_0x23128f('0x49')),cs=require('../config/config.service')[_0x23128f('0xd')](),Sequelize=require(_0x23128f('0x1ae')),logger=require('../config/logger'),_=require(_0x23128f('0x15e')),jstz=require(_0x23128f('0x1b3')),timezone=jstz['determine'](),queryLogger=logger(_0x23128f('0xfb')),DEFAULTS={'database':cs[_0x23128f('0x186')],'username':cs[_0x23128f('0x10e')],'password':cs[_0x23128f('0x17d')],'options':{'host':cs['dbHost'],'port':cs['dbPort'],'dialect':_0x23128f('0x9b'),'dialectOptions':{'charset':_0x23128f('0x13e')},'logging':cs[_0x23128f('0xbd')]?![]:_0x52d3c3=>queryLogger[_0x23128f('0xdc')](_0x52d3c3),'timezone':timezone[_0x23128f('0xd5')](),'define':{'charset':'utf8','collate':_0x23128f('0x90')}}};config[_0x23128f('0x1ae')]=_['defaultsDeep'](config[_0x23128f('0x1ae')],DEFAULTS),config['sequelizeHistory']=_[_0x23128f('0x12f')](config[_0x23128f('0x9d')],DEFAULTS);const db={'Sequelize':Sequelize,'sequelize':new Sequelize(config['sequelize'][_0x23128f('0x14c')],config[_0x23128f('0x1ae')][_0x23128f('0x1be')],config[_0x23128f('0x1ae')]['password'],{...config[_0x23128f('0x1ae')][_0x23128f('0x1ce')],'dialectOptions':{...config['sequelize']['options']['dialectOptions'],'flags':[_0x23128f('0x157'),_0x23128f('0x197')]}})},dbH={'Sequelize':Sequelize,'sequelize':new Sequelize(config[_0x23128f('0x9d')][_0x23128f('0x14c')],config[_0x23128f('0x9d')]['username'],config[_0x23128f('0x9d')]['password'],{...config[_0x23128f('0x9d')][_0x23128f('0x1ce')],'dialectOptions':{...config[_0x23128f('0x9d')][_0x23128f('0x1ce')][_0x23128f('0xa6')],'flags':[_0x23128f('0x157'),_0x23128f('0xf6')]}})};db['User']=require(_0x23128f('0x1d7'))(db[_0x23128f('0x1ae')],Sequelize[_0x23128f('0xed')]),db['VoiceChanSpy']=require('../api/voiceChanSpy/voiceChanSpy.model')(db[_0x23128f('0x1ae')],Sequelize[_0x23128f('0xed')]),db[_0x23128f('0xe5')]=require(_0x23128f('0x13f'))(db[_0x23128f('0x1ae')],Sequelize[_0x23128f('0xed')]),db['VoiceExtension']=require(_0x23128f('0x18d'))(db[_0x23128f('0x1ae')],Sequelize[_0x23128f('0xed')]),db[_0x23128f('0x195')]=require(_0x23128f('0x5b'))(db[_0x23128f('0x1ae')],Sequelize[_0x23128f('0xed')]),db[_0x23128f('0x194')]=require(_0x23128f('0x1fa'))(db[_0x23128f('0x1ae')],Sequelize[_0x23128f('0xed')]),db[_0x23128f('0x1fd')]=require('../api/voiceRecording/voiceRecording.model')(db[_0x23128f('0x1ae')],Sequelize[_0x23128f('0xed')]),db[_0x23128f('0x70')]=require(_0x23128f('0x148'))(db[_0x23128f('0x1ae')],Sequelize[_0x23128f('0xed')]),db[_0x23128f('0x6')]=require(_0x23128f('0x176'))(db[_0x23128f('0x1ae')],Sequelize['DataTypes']),db['VoiceMailMessage']=require(_0x23128f('0xd3'))(db[_0x23128f('0x1ae')],Sequelize[_0x23128f('0xed')]),db[_0x23128f('0xa2')]=require(_0x23128f('0x180'))(db['sequelize'],Sequelize['DataTypes']),db[_0x23128f('0x4c')]=require(_0x23128f('0x1e5'))(db[_0x23128f('0x1ae')],Sequelize[_0x23128f('0xed')]),db[_0x23128f('0x87')]=require(_0x23128f('0x55'))(db[_0x23128f('0x1ae')],Sequelize[_0x23128f('0xed')]),db['VoiceQueueReport']=require('../api/voiceQueueReport/voiceQueueReport.model')(db['sequelize'],Sequelize[_0x23128f('0xed')]),db['MemberReport']=require('../api/memberReport/memberReport.model')(db[_0x23128f('0x1ae')],Sequelize['DataTypes']),db[_0x23128f('0x35')]=require(_0x23128f('0x6e'))(db[_0x23128f('0x1ae')],Sequelize[_0x23128f('0xed')]),db['VoiceTransferReport']=require(_0x23128f('0x28'))(db[_0x23128f('0x1ae')],Sequelize['DataTypes']),db[_0x23128f('0x171')]=require(_0x23128f('0xe8'))(db[_0x23128f('0x1ae')],Sequelize[_0x23128f('0xed')]),db[_0x23128f('0x1f8')]=require(_0x23128f('0x8e'))(db[_0x23128f('0x1ae')],Sequelize[_0x23128f('0xed')]),db[_0x23128f('0x143')]=require('../api/userChatQueue/userChatQueue.model')(db['sequelize'],Sequelize[_0x23128f('0xed')]),db[_0x23128f('0x50')]=require(_0x23128f('0xf1'))(db[_0x23128f('0x1ae')],Sequelize['DataTypes']),db[_0x23128f('0x174')]=require(_0x23128f('0x12c'))(db['sequelize'],Sequelize['DataTypes']),db['UserSmsQueue']=require(_0x23128f('0x57'))(db[_0x23128f('0x1ae')],Sequelize[_0x23128f('0xed')]),db[_0x23128f('0x6c')]=require(_0x23128f('0x72'))(db[_0x23128f('0x1ae')],Sequelize['DataTypes']),db['UserWhatsappQueue']=require(_0x23128f('0x14a'))(db['sequelize'],Sequelize['DataTypes']),db[_0x23128f('0x1e1')]=require(_0x23128f('0x8a'))(db['sequelize'],Sequelize[_0x23128f('0xed')]),db[_0x23128f('0x1ed')]=require(_0x23128f('0x46'))(db[_0x23128f('0x1ae')],Sequelize[_0x23128f('0xed')]),db[_0x23128f('0x1c9')]=require('../api/mailAccount/mailAccount.model')(db[_0x23128f('0x1ae')],Sequelize[_0x23128f('0xed')]),db[_0x23128f('0xab')]=require('../api/mailQueue/mailQueue.model')(db['sequelize'],Sequelize['DataTypes']),db[_0x23128f('0xe1')]=require('../api/mailSubstatus/mailSubstatus.model')(db[_0x23128f('0x1ae')],Sequelize[_0x23128f('0xed')]),db[_0x23128f('0x1f7')]=require(_0x23128f('0x1c0'))(db[_0x23128f('0x1ae')],Sequelize[_0x23128f('0xed')]),db[_0x23128f('0x17b')]=require(_0x23128f('0x1ff'))(db[_0x23128f('0x1ae')],Sequelize['DataTypes']),db[_0x23128f('0x167')]=require(_0x23128f('0x99'))(db[_0x23128f('0x1ae')],Sequelize[_0x23128f('0xed')]),db[_0x23128f('0xe3')]=require(_0x23128f('0x189'))(db[_0x23128f('0x1ae')],Sequelize['DataTypes']),db[_0x23128f('0xd8')]=require('../api/dashboard/dashboard.model')(db['sequelize'],Sequelize[_0x23128f('0xed')]),db['DashboardItem']=require(_0x23128f('0x139'))(db[_0x23128f('0x1ae')],Sequelize[_0x23128f('0xed')]),db[_0x23128f('0xe')]=require(_0x23128f('0x1ef'))(db[_0x23128f('0x1ae')],Sequelize['DataTypes']),db[_0x23128f('0x41')]=require('../api/faxApplication/faxApplication.model')(db[_0x23128f('0x1ae')],Sequelize[_0x23128f('0xed')]),db[_0x23128f('0x62')]=require(_0x23128f('0xae'))(db[_0x23128f('0x1ae')],Sequelize[_0x23128f('0xed')]),db['FaxMessage']=require(_0x23128f('0x109'))(db['sequelize'],Sequelize['DataTypes']),db['FaxQueue']=require(_0x23128f('0x54'))(db[_0x23128f('0x1ae')],Sequelize['DataTypes']),db[_0x23128f('0x15f')]=require('../api/faxQueueReport/faxQueueReport.model')(db[_0x23128f('0x1ae')],Sequelize[_0x23128f('0xed')]),db[_0x23128f('0x73')]=require(_0x23128f('0x3f'))(db[_0x23128f('0x1ae')],Sequelize[_0x23128f('0xed')]),db[_0x23128f('0xf2')]=require(_0x23128f('0x191'))(db['sequelize'],Sequelize[_0x23128f('0xed')]),db[_0x23128f('0x18c')]=require(_0x23128f('0xce'))(db[_0x23128f('0x1ae')],Sequelize[_0x23128f('0xed')]),db['SmsMessage']=require(_0x23128f('0xa1'))(db[_0x23128f('0x1ae')],Sequelize[_0x23128f('0xed')]),db['SmsQueue']=require(_0x23128f('0x100'))(db['sequelize'],Sequelize['DataTypes']),db[_0x23128f('0xf9')]=require(_0x23128f('0x104'))(db[_0x23128f('0x1ae')],Sequelize[_0x23128f('0xed')]),db['OpenchannelApplication']=require('../api/openchannelApplication/openchannelApplication.model')(db[_0x23128f('0x1ae')],Sequelize[_0x23128f('0xed')]),db[_0x23128f('0x11')]=require('../api/openchannelInteraction/openchannelInteraction.model')(db[_0x23128f('0x1ae')],Sequelize['DataTypes']),db['OpenchannelMessage']=require('../api/openchannelMessage/openchannelMessage.model')(db['sequelize'],Sequelize['DataTypes']),db[_0x23128f('0xcf')]=require('../api/openchannelQueue/openchannelQueue.model')(db[_0x23128f('0x1ae')],Sequelize[_0x23128f('0xed')]),db[_0x23128f('0x15c')]=require(_0x23128f('0x33'))(db['sequelize'],Sequelize[_0x23128f('0xed')]),db[_0x23128f('0x1d9')]=require(_0x23128f('0x149'))(db[_0x23128f('0x1ae')],Sequelize[_0x23128f('0xed')]),db[_0x23128f('0xb5')]=require(_0x23128f('0x42'))(db[_0x23128f('0x1ae')],Sequelize[_0x23128f('0xed')]),db[_0x23128f('0x1cc')]=require(_0x23128f('0x10b'))(db[_0x23128f('0x1ae')],Sequelize[_0x23128f('0xed')]),db[_0x23128f('0x1f5')]=require('../api/chatMessage/chatMessage.model')(db[_0x23128f('0x1ae')],Sequelize[_0x23128f('0xed')]),db[_0x23128f('0xa7')]=require('../api/chatOfflineMessage/chatOfflineMessage.model')(db['sequelize'],Sequelize[_0x23128f('0xed')]),db[_0x23128f('0xa')]=require('../api/chatQueue/chatQueue.model')(db['sequelize'],Sequelize['DataTypes']),db['ChatGroup']=require(_0x23128f('0x19a'))(db[_0x23128f('0x1ae')],Sequelize[_0x23128f('0xed')]),db[_0x23128f('0x159')]=require(_0x23128f('0x5a'))(db[_0x23128f('0x1ae')],Sequelize[_0x23128f('0xed')]),db[_0x23128f('0x5f')]=require(_0x23128f('0xc8'))(db[_0x23128f('0x1ae')],Sequelize[_0x23128f('0xed')]),db[_0x23128f('0x199')]=require(_0x23128f('0x1bb'))(db[_0x23128f('0x1ae')],Sequelize[_0x23128f('0xed')]),db[_0x23128f('0x18f')]=require('../api/cmHopper/cmHopper.model')(db[_0x23128f('0x1ae')],Sequelize[_0x23128f('0xed')]),db['CmHopperBlack']=require(_0x23128f('0x1dc'))(db[_0x23128f('0x1ae')],Sequelize['DataTypes']),db['CmHopperFinal']=require(_0x23128f('0xaa'))(db['sequelize'],Sequelize[_0x23128f('0xed')]),db['CmHopperHistory']=require(_0x23128f('0xe0'))(db['sequelize'],Sequelize[_0x23128f('0xed')]),db[_0x23128f('0x166')]=require(_0x23128f('0xf'))(db[_0x23128f('0x1ae')],Sequelize[_0x23128f('0xed')]),db[_0x23128f('0x1e6')]=require(_0x23128f('0x1ab'))(db['sequelize'],Sequelize[_0x23128f('0xed')]),db['Action']=require(_0x23128f('0x144'))(db[_0x23128f('0x1ae')],Sequelize[_0x23128f('0xed')]),db['Automation']=require('../api/automation/automation.model')(db[_0x23128f('0x1ae')],Sequelize[_0x23128f('0xed')]),db[_0x23128f('0x164')]=require('../api/cannedAnswer/cannedAnswer.model')(db[_0x23128f('0x1ae')],Sequelize[_0x23128f('0xed')]),db[_0x23128f('0x2')]=require(_0x23128f('0x16f'))(db['sequelize'],Sequelize[_0x23128f('0xed')]),db['Condition']=require(_0x23128f('0xaf'))(db['sequelize'],Sequelize[_0x23128f('0xed')]),db[_0x23128f('0x1f2')]=require(_0x23128f('0x102'))(db['sequelize'],Sequelize[_0x23128f('0xed')]),db[_0x23128f('0x82')]=require(_0x23128f('0x77'))(db['sequelize'],Sequelize[_0x23128f('0xed')]),db[_0x23128f('0x1c4')]=require(_0x23128f('0x3c'))(db[_0x23128f('0x1ae')],Sequelize[_0x23128f('0xed')]),db['VoiceQueuesLog']=require(_0x23128f('0x16e'))(db[_0x23128f('0x1ae')],Sequelize[_0x23128f('0xed')]),db['Schedule']=require(_0x23128f('0xe9'))(db['sequelize'],Sequelize['DataTypes']),db[_0x23128f('0x18a')]=require(_0x23128f('0x133'))(db[_0x23128f('0x1ae')],Sequelize['DataTypes']),db[_0x23128f('0xee')]=require(_0x23128f('0x10a'))(db[_0x23128f('0x1ae')],Sequelize[_0x23128f('0xed')]),db['Template']=require(_0x23128f('0x1e3'))(db[_0x23128f('0x1ae')],Sequelize[_0x23128f('0xed')]),db[_0x23128f('0x6a')]=require(_0x23128f('0x7b'))(db[_0x23128f('0x1ae')],Sequelize[_0x23128f('0xed')]),db[_0x23128f('0x103')]=require(_0x23128f('0xac'))(db['sequelize'],Sequelize['DataTypes']),db['Integration']=require(_0x23128f('0xbc'))(db[_0x23128f('0x1ae')],Sequelize[_0x23128f('0xed')]),db['IntegrationReport']=require(_0x23128f('0x66'))(db[_0x23128f('0x1ae')],Sequelize['DataTypes']),db[_0x23128f('0xd1')]=require(_0x23128f('0x135'))(db['sequelize'],Sequelize[_0x23128f('0xed')]),db[_0x23128f('0x198')]=require(_0x23128f('0x2d'))(db['sequelize'],Sequelize[_0x23128f('0xed')]),db[_0x23128f('0x1d2')]=require(_0x23128f('0x1c'))(db[_0x23128f('0x1ae')],Sequelize[_0x23128f('0xed')]),db['AnalyticMetric']=require(_0x23128f('0x5e'))(db[_0x23128f('0x1ae')],Sequelize[_0x23128f('0xed')]),db[_0x23128f('0x1b1')]=require(_0x23128f('0xbb'))(db[_0x23128f('0x1ae')],Sequelize[_0x23128f('0xed')]),db['AnalyticTreeReport']=require(_0x23128f('0x11b'))(db[_0x23128f('0x1ae')],Sequelize[_0x23128f('0xed')]),db[_0x23128f('0x184')]=require(_0x23128f('0x36'))(db[_0x23128f('0x1ae')],Sequelize[_0x23128f('0xed')]),db[_0x23128f('0x1d0')]=require('../api/intSalesforceConfiguration/intSalesforceConfiguration.model')(db['sequelize'],Sequelize[_0x23128f('0xed')]),db[_0x23128f('0xb0')]=require(_0x23128f('0x4d'))(db[_0x23128f('0x1ae')],Sequelize['DataTypes']),db[_0x23128f('0x92')]=require(_0x23128f('0xca'))(db[_0x23128f('0x1ae')],Sequelize[_0x23128f('0xed')]),db[_0x23128f('0x107')]=require(_0x23128f('0x1b5'))(db['sequelize'],Sequelize['DataTypes']),db['SugarcrmField']=require(_0x23128f('0x1f6'))(db[_0x23128f('0x1ae')],Sequelize[_0x23128f('0xed')]),db[_0x23128f('0x22')]=require(_0x23128f('0x13a'))(db['sequelize'],Sequelize[_0x23128f('0xed')]),db[_0x23128f('0x4b')]=require('../api/intDeskConfiguration/intDeskConfiguration.model')(db[_0x23128f('0x1ae')],Sequelize['DataTypes']),db['DeskField']=require('../api/intDeskField/intDeskField.model')(db['sequelize'],Sequelize[_0x23128f('0xed')]),db[_0x23128f('0x115')]=require('../api/intZohoAccount/intZohoAccount.model')(db['sequelize'],Sequelize[_0x23128f('0xed')]),db['ZohoConfiguration']=require(_0x23128f('0xf4'))(db['sequelize'],Sequelize[_0x23128f('0xed')]),db['ZohoField']=require(_0x23128f('0x19b'))(db[_0x23128f('0x1ae')],Sequelize[_0x23128f('0xed')]),db[_0x23128f('0x12b')]=require(_0x23128f('0xf8'))(db[_0x23128f('0x1ae')],Sequelize['DataTypes']),db[_0x23128f('0x2f')]=require('../api/intZendeskConfiguration/intZendeskConfiguration.model')(db[_0x23128f('0x1ae')],Sequelize[_0x23128f('0xed')]),db['ZendeskField']=require(_0x23128f('0x4a'))(db[_0x23128f('0x1ae')],Sequelize[_0x23128f('0xed')]),db['FreshdeskAccount']=require(_0x23128f('0x1f3'))(db[_0x23128f('0x1ae')],Sequelize[_0x23128f('0xed')]),db[_0x23128f('0x10c')]=require(_0x23128f('0x91'))(db[_0x23128f('0x1ae')],Sequelize[_0x23128f('0xed')]),db['FreshdeskField']=require(_0x23128f('0x4e'))(db['sequelize'],Sequelize[_0x23128f('0xed')]),db[_0x23128f('0x10f')]=require(_0x23128f('0x136'))(db['sequelize'],Sequelize[_0x23128f('0xed')]),db[_0x23128f('0x1d5')]=require('../api/intVtigerConfiguration/intVtigerConfiguration.model')(db['sequelize'],Sequelize[_0x23128f('0xed')]),db['VtigerField']=require(_0x23128f('0x188'))(db[_0x23128f('0x1ae')],Sequelize[_0x23128f('0xed')]),db[_0x23128f('0x40')]=require(_0x23128f('0x116'))(db[_0x23128f('0x1ae')],Sequelize['DataTypes']),db['ServicenowConfiguration']=require(_0x23128f('0x1b'))(db[_0x23128f('0x1ae')],Sequelize['DataTypes']),db[_0x23128f('0x18')]=require(_0x23128f('0xba'))(db[_0x23128f('0x1ae')],Sequelize[_0x23128f('0xed')]),db[_0x23128f('0x11a')]=require(_0x23128f('0xb9'))(db[_0x23128f('0x1ae')],Sequelize[_0x23128f('0xed')]),db[_0x23128f('0xe4')]=require(_0x23128f('0x132'))(db['sequelize'],Sequelize[_0x23128f('0xed')]),db[_0x23128f('0x44')]=require(_0x23128f('0x11e'))(db[_0x23128f('0x1ae')],Sequelize[_0x23128f('0xed')]),db[_0x23128f('0xfc')]=require(_0x23128f('0x1fc'))(db['sequelize'],Sequelize['DataTypes']),db[_0x23128f('0x1e9')]=require(_0x23128f('0x81'))(db[_0x23128f('0x1ae')],Sequelize[_0x23128f('0xed')]),db[_0x23128f('0x1cb')]=require(_0x23128f('0x145'))(db[_0x23128f('0x1ae')],Sequelize['DataTypes']),db[_0x23128f('0x1a3')]=require(_0x23128f('0xbc'))(db['sequelize'],Sequelize[_0x23128f('0xed')]),db[_0x23128f('0x67')]=require(_0x23128f('0x173'))(db[_0x23128f('0x1ae')],Sequelize[_0x23128f('0xed')]),db[_0x23128f('0xf7')]=require(_0x23128f('0x155'))(db[_0x23128f('0x1ae')],Sequelize[_0x23128f('0xed')]),db[_0x23128f('0x69')]=require(_0x23128f('0x17f'))(db[_0x23128f('0x1ae')],Sequelize['DataTypes']),db[_0x23128f('0x3e')]=require('../api/jscriptyAnswerReport/jscriptyAnswerReport.model')(db[_0x23128f('0x1ae')],Sequelize[_0x23128f('0xed')]),db[_0x23128f('0x3')]=require(_0x23128f('0x1e2'))(db[_0x23128f('0x1ae')],Sequelize[_0x23128f('0xed')]),db['JscriptySessionReport']=require(_0x23128f('0x1b7'))(db['sequelize'],Sequelize[_0x23128f('0xed')]),db[_0x23128f('0x3d')]=require(_0x23128f('0x1e'))(db[_0x23128f('0x1ae')],Sequelize[_0x23128f('0xed')]),db[_0x23128f('0x12d')]=require(_0x23128f('0x21'))(db[_0x23128f('0x1ae')],Sequelize['DataTypes']),db['SquareDetailsReport']=require(_0x23128f('0xa4'))(db[_0x23128f('0x1ae')],Sequelize[_0x23128f('0xed')]),db['JscriptyProject']=require('../api/jscriptyProject/jscriptyProject.model')(db[_0x23128f('0x1ae')],Sequelize['DataTypes']),db['Setting']=require('../api/setting/setting.model')(db[_0x23128f('0x1ae')],Sequelize[_0x23128f('0xed')]),db[_0x23128f('0x9f')]=require(_0x23128f('0x0'))(db[_0x23128f('0x1ae')],Sequelize['DataTypes']),db[_0x23128f('0x31')]=require('../api/squareProject/squareProject.model')(db['sequelize'],Sequelize[_0x23128f('0xed')]),db[_0x23128f('0x7c')]=require(_0x23128f('0x26'))(db['sequelize'],Sequelize[_0x23128f('0xed')]),db[_0x23128f('0x8f')]=require(_0x23128f('0x93'))(db['sequelize'],Sequelize[_0x23128f('0xed')]),db[_0x23128f('0x177')]=require('../api/team/team.model')(db[_0x23128f('0x1ae')],Sequelize[_0x23128f('0xed')]),db[_0x23128f('0x182')]=require(_0x23128f('0x1af'))(db[_0x23128f('0x1ae')],Sequelize[_0x23128f('0xed')]),db[_0x23128f('0x9')]=require(_0x23128f('0x14b'))(db['sequelize'],Sequelize[_0x23128f('0xed')]),db[_0x23128f('0x1d')]=require(_0x23128f('0x98'))(db[_0x23128f('0x1ae')],Sequelize[_0x23128f('0xed')]),db[_0x23128f('0x111')]=require(_0x23128f('0xb1'))(db[_0x23128f('0x1ae')],Sequelize['DataTypes']),db[_0x23128f('0x8b')]=require(_0x23128f('0xb4'))(db['sequelize'],Sequelize[_0x23128f('0xed')]),db[_0x23128f('0xc')]=require(_0x23128f('0x117'))(db['sequelize'],Sequelize[_0x23128f('0xed')]),db[_0x23128f('0xbf')]=require(_0x23128f('0x201'))(db['sequelize'],Sequelize[_0x23128f('0xed')]),db[_0x23128f('0x88')]=require(_0x23128f('0x138'))(db[_0x23128f('0x1ae')],Sequelize[_0x23128f('0xed')]),db['OpenchannelTransferReport']=require(_0x23128f('0x154'))(db[_0x23128f('0x1ae')],Sequelize['DataTypes']),db[_0x23128f('0x1cd')]=require(_0x23128f('0x78'))(db['sequelize'],Sequelize[_0x23128f('0xed')]),db['CmList']=require(_0x23128f('0xa9'))(db[_0x23128f('0x1ae')],Sequelize['DataTypes']),db[_0x23128f('0xcb')]=require(_0x23128f('0x12'))(db[_0x23128f('0x1ae')],Sequelize[_0x23128f('0xed')]),db[_0x23128f('0x5c')]=require(_0x23128f('0x76'))(db[_0x23128f('0x1ae')],Sequelize[_0x23128f('0xed')]),db[_0x23128f('0x39')]=require('../api/userProfileSection/userProfileSection.model')(db[_0x23128f('0x1ae')],Sequelize[_0x23128f('0xed')]),db[_0x23128f('0x63')]=require(_0x23128f('0x153'))(db[_0x23128f('0x1ae')],Sequelize[_0x23128f('0xed')]),db[_0x23128f('0x1bf')]=require(_0x23128f('0x108'))(db[_0x23128f('0x1ae')],Sequelize[_0x23128f('0xed')]),db[_0x23128f('0x1fe')]=require('../api/whatsappAccount/whatsappAccount.model')(db[_0x23128f('0x1ae')],Sequelize[_0x23128f('0xed')]),db[_0x23128f('0x1a9')]=require(_0x23128f('0x19'))(db[_0x23128f('0x1ae')],Sequelize[_0x23128f('0xed')]),db[_0x23128f('0x160')]=require(_0x23128f('0xde'))(db[_0x23128f('0x1ae')],Sequelize[_0x23128f('0xed')]),db['WhatsappMessage']=require(_0x23128f('0x10'))(db[_0x23128f('0x1ae')],Sequelize['DataTypes']),db[_0x23128f('0x110')]=require(_0x23128f('0x1eb'))(db[_0x23128f('0x1ae')],Sequelize[_0x23128f('0xed')]),db[_0x23128f('0x1a5')]=require(_0x23128f('0x1e4'))(db[_0x23128f('0x1ae')],Sequelize['DataTypes']),db[_0x23128f('0x9a')]=require(_0x23128f('0xc4'))(db[_0x23128f('0x1ae')],Sequelize[_0x23128f('0xed')]),db[_0x23128f('0x2c')]=require(_0x23128f('0x1ac'))(db[_0x23128f('0x1ae')],Sequelize[_0x23128f('0xed')]),db['User'][_0x23128f('0x34')](db['VoiceMail'],{'as':_0x23128f('0x6'),'onDelete':_0x23128f('0xff'),'foreignKey':'UserId'}),db['User'][_0x23128f('0x1a6')](db[_0x23128f('0x1fd')],{'as':_0x23128f('0x1a'),'foreignKey':'UserId'}),db['User'][_0x23128f('0x1a6')](db[_0x23128f('0x171')],{'as':_0x23128f('0x68'),'foreignKey':_0x23128f('0x156')}),db[_0x23128f('0x1c1')]['hasMany'](db[_0x23128f('0x1b6')],{'as':_0x23128f('0x165'),'onDelete':_0x23128f('0xff'),'hooks':!![]}),db[_0x23128f('0x1c1')]['hasMany'](db[_0x23128f('0x17e')],{'as':'HopperFinals','foreignKey':_0x23128f('0x156')}),db[_0x23128f('0x1c1')][_0x23128f('0x1a6')](db[_0x23128f('0x1b0')],{'as':_0x23128f('0x105'),'foreignKey':_0x23128f('0x156')}),db[_0x23128f('0x1c1')]['hasMany'](db[_0x23128f('0x166')],{'as':_0x23128f('0x166'),'foreignKey':_0x23128f('0x156')}),db[_0x23128f('0x1c1')][_0x23128f('0x1a6')](db['OpenchannelInteraction'],{'as':'OpenchannelInteractions','foreignKey':'UserId'}),db['User']['hasMany'](db[_0x23128f('0x1cc')],{'as':_0x23128f('0x146'),'foreignKey':_0x23128f('0x156')}),db[_0x23128f('0x1c1')]['hasMany'](db[_0x23128f('0x18c')],{'as':'SmsInteractions','foreignKey':_0x23128f('0x156')}),db['User']['hasMany'](db[_0x23128f('0x62')],{'as':_0x23128f('0xea'),'foreignKey':_0x23128f('0x156')}),db[_0x23128f('0x1c1')][_0x23128f('0x1a6')](db['MailInteraction'],{'as':'MailInteractions','foreignKey':'UserId'}),db[_0x23128f('0x1c1')][_0x23128f('0x1a6')](db[_0x23128f('0x160')],{'as':_0x23128f('0x1f9'),'foreignKey':_0x23128f('0x156')}),db[_0x23128f('0x1c1')][_0x23128f('0x1a6')](db[_0x23128f('0x1bf')],{'as':_0x23128f('0xe6'),'foreignKey':_0x23128f('0x37')}),db[_0x23128f('0x1c1')][_0x23128f('0x27')](db[_0x23128f('0x5c')],{'as':_0x23128f('0x5c'),'foreignKey':'userProfileId','onDelete':_0x23128f('0x128')}),db['User'][_0x23128f('0xeb')](db[_0x23128f('0x125')],{'as':_0x23128f('0x172'),'through':_0x23128f('0x47')}),db[_0x23128f('0x1c1')][_0x23128f('0xeb')](db[_0x23128f('0x199')],{'as':_0x23128f('0x1ad'),'through':_0x23128f('0x1c6')}),db[_0x23128f('0x1c1')][_0x23128f('0xeb')](db[_0x23128f('0x196')],{'as':'Lists','through':_0x23128f('0xb7')}),db['User'][_0x23128f('0xeb')](db[_0x23128f('0x177')],{'through':_0x23128f('0x127')}),db[_0x23128f('0x1c1')][_0x23128f('0xeb')](db[_0x23128f('0x1f7')],{'as':_0x23128f('0x119'),'through':_0x23128f('0x1cf')}),db['User'][_0x23128f('0xeb')](db[_0x23128f('0x1cc')],{'as':_0x23128f('0xda'),'through':_0x23128f('0x130')}),db[_0x23128f('0x1c1')][_0x23128f('0xeb')](db[_0x23128f('0x62')],{'as':_0x23128f('0x12a'),'through':_0x23128f('0x5')}),db[_0x23128f('0x1c1')]['belongsToMany'](db[_0x23128f('0x18c')],{'as':_0x23128f('0xc7'),'through':_0x23128f('0xa3')}),db['User']['belongsToMany'](db[_0x23128f('0x11')],{'as':_0x23128f('0x7a'),'through':_0x23128f('0x86')}),db[_0x23128f('0x1c1')][_0x23128f('0xeb')](db[_0x23128f('0x160')],{'as':_0x23128f('0xcd'),'through':_0x23128f('0x53')}),db[_0x23128f('0x1c1')][_0x23128f('0xeb')](db['VoiceQueue'],{'as':'VoiceQueues','through':'UserVoiceQueue','required':![]}),db[_0x23128f('0x1c1')]['belongsToMany'](db['MailQueue'],{'as':'MailQueues','through':_0x23128f('0x50'),'required':![]}),db['User']['belongsToMany'](db[_0x23128f('0xa')],{'as':_0x23128f('0xc6'),'through':_0x23128f('0x143'),'required':![],'hooks':!![]}),db[_0x23128f('0x1c1')][_0x23128f('0xeb')](db['FaxQueue'],{'as':_0x23128f('0x1d1'),'through':'UserFaxQueue','required':![]}),db[_0x23128f('0x1c1')][_0x23128f('0xeb')](db[_0x23128f('0xe7')],{'as':_0x23128f('0x8'),'through':_0x23128f('0xfd'),'required':![]}),db['User'][_0x23128f('0xeb')](db[_0x23128f('0xcf')],{'as':'OpenchannelQueues','through':_0x23128f('0x6c'),'required':![]}),db[_0x23128f('0x1c1')][_0x23128f('0xeb')](db[_0x23128f('0x9a')],{'as':_0x23128f('0x15a'),'through':_0x23128f('0x94'),'required':![]}),db[_0x23128f('0x1c1')][_0x23128f('0xeb')](db[_0x23128f('0x196')],{'through':_0x23128f('0xb7')}),db['User'][_0x23128f('0xeb')](db['VoicePrefix'],{'as':_0x23128f('0x106'),'through':'user_has_voice_prefixes','required':![]}),db[_0x23128f('0x1c1')]['belongsToMany'](db[_0x23128f('0x15c')],{'as':_0x23128f('0x1d3'),'through':_0x23128f('0x1aa')}),db[_0x23128f('0x1c1')][_0x23128f('0xeb')](db[_0x23128f('0xe')],{'as':'FaxAccounts','through':'user_has_fax_accounts'}),db[_0x23128f('0x1c1')]['belongsToMany'](db[_0x23128f('0x1c9')],{'as':_0x23128f('0x122'),'through':_0x23128f('0x4f')}),db[_0x23128f('0x1c1')]['belongsToMany'](db[_0x23128f('0xf9')],{'as':'OpenchannelAccounts','through':'user_has_openchannel_accounts'}),db[_0x23128f('0x1c1')]['belongsToMany'](db['SmsAccount'],{'as':_0x23128f('0x59'),'through':_0x23128f('0x29')}),db[_0x23128f('0x1c1')]['belongsToMany'](db[_0x23128f('0x1fe')],{'as':_0x23128f('0x11f'),'through':'user_has_whatsapp_accounts'}),db[_0x23128f('0x1c1')][_0x23128f('0xeb')](db[_0x23128f('0x31')],{'as':_0x23128f('0x187'),'through':_0x23128f('0x129')}),db[_0x23128f('0x1a8')][_0x23128f('0x1a6')](db[_0x23128f('0x1b6')],{'as':'SpiedAgents','onDelete':_0x23128f('0xff'),'foreignKey':'ChanSpyId'}),db[_0x23128f('0xe5')]['hasMany'](db[_0x23128f('0x1b6')],{'onDelete':_0x23128f('0xff')}),db[_0x23128f('0x1b6')][_0x23128f('0x1a6')](db[_0x23128f('0x1b6')],{'as':_0x23128f('0x2b'),'onDelete':_0x23128f('0xff')}),db['VoiceMusicOnHold'][_0x23128f('0xeb')](db[_0x23128f('0x18a')],{'as':_0x23128f('0xd9'),'through':_0x23128f('0x52')}),db[_0x23128f('0x194')][_0x23128f('0x1a6')](db[_0x23128f('0x171')],{'as':'Members','foreignKey':_0x23128f('0xa5')}),db[_0x23128f('0x194')]['hasMany'](db[_0x23128f('0x18f')],{'as':_0x23128f('0x71'),'foreignKey':'VoiceQueueId'}),db['VoiceQueue'][_0x23128f('0x1a6')](db[_0x23128f('0x17e')],{'as':_0x23128f('0x32'),'foreignKey':_0x23128f('0xa5')}),db[_0x23128f('0x194')][_0x23128f('0x1a6')](db[_0x23128f('0x1b0')],{'as':'HopperHistories','foreignKey':'VoiceQueueId'}),db[_0x23128f('0x194')][_0x23128f('0x1a6')](db[_0x23128f('0x166')],{'as':_0x23128f('0x166'),'foreignKey':_0x23128f('0xa5')}),db[_0x23128f('0x194')][_0x23128f('0x1a6')](db[_0x23128f('0x8d')],{'as':_0x23128f('0x16b'),'foreignKey':_0x23128f('0xa5')}),db[_0x23128f('0x194')][_0x23128f('0x1a6')](db['JscriptySessionReport'],{'as':'JscriptySessions','foreignKey':_0x23128f('0xa5')}),db['VoiceQueue'][_0x23128f('0x27')](db[_0x23128f('0x35')],{'as':_0x23128f('0x35'),'foreignKey':_0x23128f('0x11d')}),db[_0x23128f('0x194')][_0x23128f('0x27')](db[_0x23128f('0x35')],{'as':_0x23128f('0x19d'),'foreignKey':'TrunkBackupId'}),db[_0x23128f('0x194')][_0x23128f('0x27')](db[_0x23128f('0x1f2')],{'as':_0x23128f('0x1f2'),'foreignKey':_0x23128f('0x95')}),db['VoiceQueue'][_0x23128f('0x27')](db[_0x23128f('0x82')],{'as':_0x23128f('0xb3'),'foreignKey':_0x23128f('0x1f')}),db['VoiceQueue']['belongsToMany'](db['CmList'],{'as':_0x23128f('0xa8'),'through':_0x23128f('0x118')}),db['VoiceQueue'][_0x23128f('0xeb')](db[_0x23128f('0x1c1')],{'as':'Agents','through':_0x23128f('0x1f8')}),db['VoiceQueue'][_0x23128f('0xeb')](db[_0x23128f('0x177')],{'as':_0x23128f('0x6b'),'through':_0x23128f('0x61')}),db[_0x23128f('0x194')][_0x23128f('0xeb')](db[_0x23128f('0x196')],{'as':'BlackLists','through':'voice_queues_has_cm_blacklists'}),db[_0x23128f('0x1fd')][_0x23128f('0x27')](db[_0x23128f('0x1c1')],{'as':_0x23128f('0x1c1'),'foreignKey':'UserId'}),db[_0x23128f('0x70')][_0x23128f('0x27')](db[_0x23128f('0x1c1')],{'as':_0x23128f('0x1c1'),'foreignKey':'UserId'}),db['VoiceMail']['hasMany'](db[_0x23128f('0x1df')],{'as':'Messages','onDelete':_0x23128f('0xff'),'foreignKey':'mailboxuser','sourceKey':_0x23128f('0x1db')}),db['VoiceMailMessage'][_0x23128f('0x27')](db[_0x23128f('0x6')],{'foreignKey':_0x23128f('0x1e7'),'targetKey':'mailbox'}),db[_0x23128f('0xa2')][_0x23128f('0x1a6')](db[_0x23128f('0xec')],{'as':_0x23128f('0xb'),'foreignKey':_0x23128f('0x24'),'constraints':![]}),db[_0x23128f('0xa2')][_0x23128f('0x1a6')](db[_0x23128f('0x87')],{'as':_0x23128f('0x1a4'),'foreignKey':_0x23128f('0x24'),'constraints':![]}),db[_0x23128f('0xa2')][_0x23128f('0x27')](db['User'],{'as':_0x23128f('0x1c1'),'foreignKey':_0x23128f('0x156')}),db[_0x23128f('0xa2')]['belongsTo'](db[_0x23128f('0x199')],{'as':_0x23128f('0x1c2'),'foreignKey':_0x23128f('0x16c')}),db[_0x23128f('0x1c9')][_0x23128f('0x34')](db[_0x23128f('0x1e1')],{'as':_0x23128f('0x85'),'foreignKey':'MailAccountId','onDelete':_0x23128f('0xff')}),db[_0x23128f('0x1c9')][_0x23128f('0x34')](db['MailServerOut'],{'as':_0x23128f('0xfe'),'foreignKey':_0x23128f('0x170'),'onDelete':_0x23128f('0xff')}),db[_0x23128f('0x1c9')]['hasMany'](db[_0x23128f('0x2')],{'as':_0x23128f('0x9e'),'foreignKey':'MailAccountId'}),db['MailAccount'][_0x23128f('0x1a6')](db[_0x23128f('0x164')],{'as':_0x23128f('0x1b4'),'foreignKey':_0x23128f('0x170')}),db[_0x23128f('0x1c9')][_0x23128f('0x1a6')](db[_0x23128f('0x17b')],{'as':_0x23128f('0x169'),'foreignKey':_0x23128f('0x170')}),db[_0x23128f('0x1c9')][_0x23128f('0x1a6')](db[_0x23128f('0x1f7')],{'as':_0x23128f('0x1d8')}),db[_0x23128f('0x1c9')]['hasMany'](db['MailApplication'],{'as':_0x23128f('0x2b')}),db[_0x23128f('0x1c9')][_0x23128f('0x27')](db[_0x23128f('0x196')],{'as':_0x23128f('0x43'),'foreignKey':_0x23128f('0x1b8')}),db[_0x23128f('0x1c9')][_0x23128f('0x27')](db[_0x23128f('0xd0')],{'as':_0x23128f('0xd0'),'foreignKey':'TemplateId'}),db[_0x23128f('0x1c9')]['belongsTo'](db[_0x23128f('0x82')],{'as':_0x23128f('0xb3'),'foreignKey':_0x23128f('0x1f')}),db['MailAccount'][_0x23128f('0xeb')](db['User'],{'as':_0x23128f('0x96'),'through':_0x23128f('0x4f')}),db[_0x23128f('0xab')]['belongsToMany'](db[_0x23128f('0x1c1')],{'as':'Agents','through':_0x23128f('0x50')}),db['MailQueue'][_0x23128f('0xeb')](db['Team'],{'through':_0x23128f('0x161'),'as':_0x23128f('0x6b')}),db['MailInteraction'][_0x23128f('0x1a6')](db['MailMessage'],{'as':_0x23128f('0x169'),'onDelete':'cascade','foreignKey':'MailInteractionId'}),db[_0x23128f('0x1f7')]['belongsTo'](db[_0x23128f('0x1c9')],{'as':_0x23128f('0xf5'),'foreignKey':_0x23128f('0x170')}),db[_0x23128f('0x1f7')][_0x23128f('0x27')](db[_0x23128f('0x199')],{'as':_0x23128f('0x1c2'),'foreignKey':_0x23128f('0x16c')}),db['MailInteraction'][_0x23128f('0x27')](db['User'],{'as':'Owner','foreignKey':'UserId'}),db[_0x23128f('0x1f7')][_0x23128f('0xeb')](db[_0x23128f('0xee')],{'through':_0x23128f('0x13'),'as':_0x23128f('0x175')}),db[_0x23128f('0x1f7')][_0x23128f('0xeb')](db[_0x23128f('0xee')],{'through':_0x23128f('0x13'),'as':_0x23128f('0xa0')}),db[_0x23128f('0x1f7')][_0x23128f('0xeb')](db[_0x23128f('0x1c1')],{'as':_0x23128f('0x14f'),'through':_0x23128f('0x1cf'),'foreignKey':_0x23128f('0x1c8')}),db['MailMessage'][_0x23128f('0x1a6')](db[_0x23128f('0x111')],{'as':_0x23128f('0x1a0'),'onDelete':_0x23128f('0xff')}),db[_0x23128f('0x17b')][_0x23128f('0x27')](db[_0x23128f('0x1c1')],{'as':'User'}),db['MailMessage']['belongsTo'](db['CmContact'],{'onDelete':'cascade','as':_0x23128f('0x1c2')}),db['MailMessage']['belongsTo'](db[_0x23128f('0x1f7')],{'as':_0x23128f('0xdf'),'foreignKey':_0x23128f('0x1c8')}),db[_0x23128f('0x17b')][_0x23128f('0x27')](db['MailAccount'],{'as':_0x23128f('0xf5'),'foreignKey':_0x23128f('0x170')}),db[_0x23128f('0x167')][_0x23128f('0x27')](db[_0x23128f('0x1c1')],{'onDelete':_0x23128f('0x128')}),db[_0x23128f('0x167')][_0x23128f('0x27')](db[_0x23128f('0xab')],{'onDelete':_0x23128f('0x128')}),db['MailApplication'][_0x23128f('0x27')](db[_0x23128f('0x1c9')],{'onDelete':_0x23128f('0x128')}),db['MailApplication'][_0x23128f('0x27')](db[_0x23128f('0x1f2')],{'onDelete':'restrict','foreignKey':'IntervalId'}),db[_0x23128f('0x167')][_0x23128f('0x27')](db[_0x23128f('0xee')],{'onDelete':_0x23128f('0x128'),'foreignKey':_0x23128f('0x89')}),db['MailQueueReport']['belongsTo'](db[_0x23128f('0x1c9')],{}),db[_0x23128f('0xe3')]['belongsTo'](db[_0x23128f('0x196')],{'as':_0x23128f('0x43'),'foreignKey':'ListId'}),db[_0x23128f('0xe3')][_0x23128f('0x27')](db[_0x23128f('0x199')],{'as':_0x23128f('0x1c2'),'foreignKey':_0x23128f('0x16c')}),db[_0x23128f('0xe3')][_0x23128f('0x27')](db[_0x23128f('0x1f7')],{}),db[_0x23128f('0xe3')][_0x23128f('0x27')](db[_0x23128f('0x17b')],{}),db[_0x23128f('0xe3')][_0x23128f('0x27')](db[_0x23128f('0x1c1')],{}),db[_0x23128f('0xe3')][_0x23128f('0x27')](db[_0x23128f('0xab')],{}),db['Dashboard'][_0x23128f('0x1a6')](db['DashboardItem'],{'as':'Items','onDelete':_0x23128f('0xff')}),db[_0x23128f('0xe')]['hasMany'](db['Disposition'],{'as':_0x23128f('0x9e'),'foreignKey':_0x23128f('0x15d')}),db['FaxAccount']['hasMany'](db[_0x23128f('0x164')],{'as':_0x23128f('0x1b4'),'foreignKey':'FaxAccountId'}),db[_0x23128f('0xe')][_0x23128f('0x1a6')](db[_0x23128f('0x62')],{'as':_0x23128f('0x1d8')}),db['FaxAccount']['hasMany'](db[_0x23128f('0x41')],{'as':'Applications'}),db[_0x23128f('0xe')][_0x23128f('0x1a6')](db[_0x23128f('0x1b6')],{'as':_0x23128f('0x56'),'onDelete':_0x23128f('0xff')}),db[_0x23128f('0xe')][_0x23128f('0x1a6')](db[_0x23128f('0x1a7')],{'as':'Messages'}),db[_0x23128f('0xe')]['belongsTo'](db[_0x23128f('0x35')],{'as':'Trunk'}),db[_0x23128f('0xe')][_0x23128f('0x27')](db[_0x23128f('0x196')],{'as':_0x23128f('0x43'),'foreignKey':_0x23128f('0x1b8')}),db[_0x23128f('0xe')][_0x23128f('0x27')](db[_0x23128f('0x82')],{'as':'mandatoryDispositionPause','foreignKey':_0x23128f('0x1f')}),db[_0x23128f('0xe')][_0x23128f('0xeb')](db['User'],{'as':_0x23128f('0x96'),'through':_0x23128f('0xbe')}),db[_0x23128f('0x41')]['belongsTo'](db['User'],{'onDelete':_0x23128f('0x128')}),db[_0x23128f('0x41')][_0x23128f('0x27')](db[_0x23128f('0x60')],{'onDelete':_0x23128f('0x128')}),db[_0x23128f('0x41')]['belongsTo'](db['FaxAccount'],{'onDelete':'restrict'}),db[_0x23128f('0x41')][_0x23128f('0x27')](db[_0x23128f('0xee')],{'onDelete':'restrict','foreignKey':'TagId'}),db[_0x23128f('0x62')][_0x23128f('0x1a6')](db['FaxMessage'],{'as':_0x23128f('0x169'),'onDelete':'cascade','foreignKey':_0x23128f('0x112')}),db[_0x23128f('0x62')]['belongsTo'](db[_0x23128f('0xe')],{'as':'Account','foreignKey':'FaxAccountId'}),db['FaxInteraction']['belongsTo'](db[_0x23128f('0x199')],{'as':'Contact','foreignKey':_0x23128f('0x16c')}),db[_0x23128f('0x62')][_0x23128f('0x27')](db[_0x23128f('0x1c1')],{'as':_0x23128f('0x190'),'foreignKey':_0x23128f('0x156')}),db[_0x23128f('0x62')][_0x23128f('0xeb')](db[_0x23128f('0xee')],{'through':_0x23128f('0x14e'),'as':_0x23128f('0x175')}),db['FaxInteraction'][_0x23128f('0xeb')](db[_0x23128f('0xee')],{'through':_0x23128f('0x14e'),'as':'ThroughTags'}),db['FaxInteraction'][_0x23128f('0xeb')](db[_0x23128f('0x1c1')],{'as':'Users','through':_0x23128f('0x5'),'foreignKey':_0x23128f('0x112')}),db[_0x23128f('0x1a7')][_0x23128f('0x27')](db[_0x23128f('0x1c1')],{'onDelete':_0x23128f('0xff'),'as':'User'}),db[_0x23128f('0x1a7')][_0x23128f('0x27')](db[_0x23128f('0x62')],{'as':_0x23128f('0xdf'),'foreignKey':'FaxInteractionId'}),db['FaxMessage'][_0x23128f('0x27')](db[_0x23128f('0x199')],{'onDelete':_0x23128f('0xff'),'as':_0x23128f('0x1c2')}),db['FaxMessage']['belongsTo'](db[_0x23128f('0x111')],{'as':_0x23128f('0x111'),'foreignKey':_0x23128f('0xc1')}),db['FaxMessage'][_0x23128f('0x27')](db[_0x23128f('0xe')],{'as':'Account','foreignKey':_0x23128f('0x15d')}),db['FaxQueue'][_0x23128f('0xeb')](db[_0x23128f('0x1c1')],{'as':'Agents','through':_0x23128f('0x174')}),db['FaxQueue'][_0x23128f('0xeb')](db['Team'],{'through':'team_has_fax_queues','as':_0x23128f('0x6b')}),db[_0x23128f('0x15f')][_0x23128f('0x27')](db[_0x23128f('0xe')],{}),db[_0x23128f('0x15f')][_0x23128f('0x27')](db[_0x23128f('0x196')],{'as':'List','foreignKey':'ListId'}),db[_0x23128f('0x15f')][_0x23128f('0x27')](db['CmContact'],{'as':_0x23128f('0x1c2'),'foreignKey':_0x23128f('0x16c')}),db[_0x23128f('0x15f')]['belongsTo'](db['FaxInteraction'],{}),db[_0x23128f('0x15f')][_0x23128f('0x27')](db[_0x23128f('0x1a7')],{}),db[_0x23128f('0x15f')][_0x23128f('0x27')](db[_0x23128f('0x1c1')],{}),db[_0x23128f('0x15f')][_0x23128f('0x27')](db[_0x23128f('0x60')],{}),db[_0x23128f('0x73')][_0x23128f('0x1a6')](db[_0x23128f('0x2')],{'as':_0x23128f('0x9e'),'foreignKey':_0x23128f('0x185')}),db[_0x23128f('0x73')][_0x23128f('0x1a6')](db[_0x23128f('0x164')],{'as':_0x23128f('0x1b4'),'foreignKey':_0x23128f('0x185')}),db[_0x23128f('0x73')][_0x23128f('0x1a6')](db[_0x23128f('0x1b9')],{'as':'Messages','foreignKey':_0x23128f('0x185')}),db[_0x23128f('0x73')][_0x23128f('0x1a6')](db['SmsInteraction'],{'as':_0x23128f('0x1d8')}),db[_0x23128f('0x73')][_0x23128f('0x1a6')](db['SmsApplication'],{'as':'Applications'}),db[_0x23128f('0x73')][_0x23128f('0x27')](db['CmList'],{'as':'List','foreignKey':_0x23128f('0x1b8')}),db[_0x23128f('0x73')][_0x23128f('0x27')](db[_0x23128f('0x82')],{'as':_0x23128f('0xb3'),'foreignKey':'mandatoryDispositionPauseId'}),db['SmsAccount'][_0x23128f('0xeb')](db[_0x23128f('0x1c1')],{'as':_0x23128f('0x96'),'through':_0x23128f('0x29')}),db[_0x23128f('0xf2')][_0x23128f('0x27')](db[_0x23128f('0x1c1')],{'onDelete':'restrict'}),db[_0x23128f('0xf2')][_0x23128f('0x27')](db['SmsQueue'],{'onDelete':_0x23128f('0x128')}),db[_0x23128f('0xf2')][_0x23128f('0x27')](db[_0x23128f('0x73')],{'onDelete':'restrict'}),db['SmsApplication'][_0x23128f('0x27')](db[_0x23128f('0x1f2')],{'onDelete':'restrict','foreignKey':_0x23128f('0x95')}),db[_0x23128f('0xf2')][_0x23128f('0x27')](db[_0x23128f('0xee')],{'onDelete':_0x23128f('0x128'),'foreignKey':_0x23128f('0x89')}),db[_0x23128f('0x18c')][_0x23128f('0x1a6')](db[_0x23128f('0x1b9')],{'as':_0x23128f('0x169'),'onDelete':'cascade','foreignKey':_0x23128f('0x113')}),db[_0x23128f('0x18c')]['belongsTo'](db['SmsAccount'],{'as':_0x23128f('0xf5'),'foreignKey':_0x23128f('0x185')}),db[_0x23128f('0x18c')][_0x23128f('0x27')](db[_0x23128f('0x199')],{'as':'Contact','foreignKey':_0x23128f('0x16c')}),db['SmsInteraction'][_0x23128f('0x27')](db[_0x23128f('0x1c1')],{'as':'Owner','foreignKey':_0x23128f('0x156')}),db[_0x23128f('0x18c')]['belongsToMany'](db['Tag'],{'through':_0x23128f('0x4'),'as':_0x23128f('0x175')}),db[_0x23128f('0x18c')][_0x23128f('0xeb')](db[_0x23128f('0xee')],{'through':_0x23128f('0x4'),'as':'ThroughTags'}),db[_0x23128f('0x18c')][_0x23128f('0xeb')](db[_0x23128f('0x1c1')],{'as':'Users','through':_0x23128f('0xa3'),'foreignKey':_0x23128f('0x113')}),db[_0x23128f('0x1b9')][_0x23128f('0x27')](db['User'],{'as':_0x23128f('0x1c1')}),db['SmsMessage'][_0x23128f('0x27')](db[_0x23128f('0x199')],{'onDelete':'cascade','as':_0x23128f('0x1c2')}),db[_0x23128f('0x1b9')][_0x23128f('0x27')](db[_0x23128f('0x18c')],{'onDelete':_0x23128f('0xff'),'as':'Interaction','foreignKey':'SmsInteractionId'}),db[_0x23128f('0x1b9')][_0x23128f('0x27')](db[_0x23128f('0x73')],{'as':'Account','foreignKey':_0x23128f('0x185')}),db[_0x23128f('0xe7')]['belongsToMany'](db[_0x23128f('0x1c1')],{'as':_0x23128f('0x96'),'through':_0x23128f('0xfd'),'foreignKey':_0x23128f('0xd6')}),db[_0x23128f('0xe7')][_0x23128f('0xeb')](db[_0x23128f('0x177')],{'through':_0x23128f('0x58'),'as':_0x23128f('0x6b')}),db[_0x23128f('0xf9')][_0x23128f('0x1a6')](db[_0x23128f('0x2')],{'as':_0x23128f('0x9e'),'foreignKey':_0x23128f('0x1c5')}),db['OpenchannelAccount'][_0x23128f('0x1a6')](db['CannedAnswer'],{'as':'Answers','foreignKey':_0x23128f('0x1c5')}),db[_0x23128f('0xf9')][_0x23128f('0x1a6')](db[_0x23128f('0x11')],{'as':_0x23128f('0x1d8'),'foreignKey':_0x23128f('0x1c5')}),db['OpenchannelAccount'][_0x23128f('0x1a6')](db['OpenchannelMessage'],{'as':_0x23128f('0x169'),'foreignKey':_0x23128f('0x1c5')}),db['OpenchannelAccount'][_0x23128f('0x1a6')](db[_0x23128f('0x3a')],{'as':_0x23128f('0x2b'),'foreignKey':'OpenchannelAccountId'}),db[_0x23128f('0xf9')][_0x23128f('0x27')](db['CmList'],{'as':_0x23128f('0x43'),'foreignKey':_0x23128f('0x1b8')}),db[_0x23128f('0xf9')][_0x23128f('0x27')](db[_0x23128f('0x82')],{'as':_0x23128f('0xb3'),'foreignKey':_0x23128f('0x1f')}),db['OpenchannelAccount'][_0x23128f('0xeb')](db['User'],{'as':_0x23128f('0x96'),'through':'user_has_openchannel_accounts'}),db[_0x23128f('0x3a')]['belongsTo'](db[_0x23128f('0x1c1')],{'onDelete':_0x23128f('0x128')}),db[_0x23128f('0x3a')][_0x23128f('0x27')](db[_0x23128f('0xcf')],{'onDelete':_0x23128f('0x128'),'foreignKey':_0x23128f('0x1dd')}),db[_0x23128f('0x3a')][_0x23128f('0x27')](db[_0x23128f('0xf9')],{'onDelete':_0x23128f('0x128'),'foreignKey':_0x23128f('0x1c5')}),db['OpenchannelApplication'][_0x23128f('0x27')](db[_0x23128f('0x1f2')],{'onDelete':_0x23128f('0x128'),'foreignKey':_0x23128f('0x95')}),db[_0x23128f('0x3a')][_0x23128f('0x27')](db[_0x23128f('0xee')],{'onDelete':_0x23128f('0x128'),'foreignKey':_0x23128f('0x89')}),db[_0x23128f('0x11')][_0x23128f('0x1a6')](db[_0x23128f('0x140')],{'as':_0x23128f('0x169'),'onDelete':_0x23128f('0xff'),'foreignKey':_0x23128f('0x7d')}),db[_0x23128f('0x11')][_0x23128f('0x27')](db[_0x23128f('0xf9')],{'as':_0x23128f('0xf5'),'foreignKey':'OpenchannelAccountId'}),db[_0x23128f('0x11')]['belongsTo'](db[_0x23128f('0x199')],{'as':_0x23128f('0x1c2'),'foreignKey':_0x23128f('0x16c')}),db['OpenchannelInteraction'][_0x23128f('0x27')](db[_0x23128f('0x1c1')],{'as':_0x23128f('0x190'),'foreignKey':_0x23128f('0x156')}),db[_0x23128f('0x11')][_0x23128f('0xeb')](db[_0x23128f('0xee')],{'through':'openchannel_interaction_has_tags','as':_0x23128f('0x175')}),db[_0x23128f('0x11')]['belongsToMany'](db[_0x23128f('0xee')],{'through':_0x23128f('0x131'),'as':_0x23128f('0xa0')}),db[_0x23128f('0x11')][_0x23128f('0xeb')](db['User'],{'as':_0x23128f('0x14f'),'through':_0x23128f('0x86'),'foreignKey':'OpenchannelInteractionId'}),db[_0x23128f('0x140')][_0x23128f('0x27')](db[_0x23128f('0x1c1')],{'onDelete':_0x23128f('0xff'),'as':_0x23128f('0x1c1')}),db[_0x23128f('0x140')][_0x23128f('0x27')](db[_0x23128f('0x199')],{'onDelete':_0x23128f('0xff'),'as':'Contact'}),db['OpenchannelMessage'][_0x23128f('0x27')](db[_0x23128f('0x11')],{'onDelete':'cascade','as':_0x23128f('0xdf'),'foreignKey':_0x23128f('0x7d')}),db[_0x23128f('0x140')][_0x23128f('0x27')](db['Attachment'],{'as':_0x23128f('0x111'),'foreignKey':_0x23128f('0xc1')}),db['OpenchannelMessage'][_0x23128f('0x27')](db[_0x23128f('0xf9')],{'as':_0x23128f('0xf5'),'foreignKey':_0x23128f('0x1c5')}),db[_0x23128f('0xcf')][_0x23128f('0xeb')](db[_0x23128f('0x1c1')],{'as':_0x23128f('0x96'),'through':_0x23128f('0x6c'),'foreignKey':_0x23128f('0x1dd')}),db['OpenchannelQueue'][_0x23128f('0xeb')](db['Team'],{'through':_0x23128f('0x1de'),'as':'Teams'}),db[_0x23128f('0x15c')][_0x23128f('0x1a6')](db[_0x23128f('0x2')],{'as':_0x23128f('0x9e'),'foreignKey':_0x23128f('0x7')}),db[_0x23128f('0x15c')][_0x23128f('0x1a6')](db[_0x23128f('0x164')],{'as':'Answers','foreignKey':_0x23128f('0x7')}),db['ChatWebsite'][_0x23128f('0x1a6')](db['ChatProactiveAction'],{'as':_0x23128f('0x18e')}),db['ChatWebsite'][_0x23128f('0x1a6')](db[_0x23128f('0x1cc')],{'as':'Interactions'}),db[_0x23128f('0x15c')][_0x23128f('0x1a6')](db[_0x23128f('0xb5')],{'as':_0x23128f('0x2b')}),db[_0x23128f('0x15c')][_0x23128f('0x1a6')](db[_0x23128f('0x1f5')],{'as':_0x23128f('0x169')}),db[_0x23128f('0x15c')][_0x23128f('0x27')](db[_0x23128f('0x196')],{'as':'List','foreignKey':_0x23128f('0x1b8')}),db[_0x23128f('0x15c')][_0x23128f('0x27')](db[_0x23128f('0x1f2')],{'as':'Interval','foreignKey':_0x23128f('0x95')}),db[_0x23128f('0x15c')][_0x23128f('0x27')](db[_0x23128f('0x82')],{'as':_0x23128f('0xb3'),'foreignKey':_0x23128f('0x1f')}),db[_0x23128f('0x15c')][_0x23128f('0xeb')](db[_0x23128f('0x1c1')],{'as':_0x23128f('0x96'),'through':_0x23128f('0x1aa')}),db[_0x23128f('0x1d9')][_0x23128f('0x27')](db['OpenchannelAccount'],{}),db['OpenchannelQueueReport'][_0x23128f('0x27')](db[_0x23128f('0x196')],{'as':_0x23128f('0x43'),'foreignKey':'ListId'}),db['OpenchannelQueueReport'][_0x23128f('0x27')](db[_0x23128f('0x199')],{'as':_0x23128f('0x1c2'),'foreignKey':_0x23128f('0x16c')}),db[_0x23128f('0x1d9')][_0x23128f('0x27')](db[_0x23128f('0x11')],{}),db[_0x23128f('0x1d9')][_0x23128f('0x27')](db[_0x23128f('0x140')],{}),db['OpenchannelQueueReport'][_0x23128f('0x27')](db[_0x23128f('0x1c1')],{}),db[_0x23128f('0x1d9')][_0x23128f('0x27')](db[_0x23128f('0xcf')],{}),db[_0x23128f('0xb5')][_0x23128f('0x27')](db[_0x23128f('0x1c1')],{'as':'Agent','foreignKey':_0x23128f('0x156'),'onDelete':'restrict'}),db[_0x23128f('0xb5')][_0x23128f('0x27')](db[_0x23128f('0xa')],{'as':'Queue','foreignKey':'ChatQueueId','onDelete':_0x23128f('0x128')}),db[_0x23128f('0xb5')][_0x23128f('0x27')](db[_0x23128f('0x15c')],{'as':_0x23128f('0x64'),'foreignKey':'ChatWebsiteId','onDelete':_0x23128f('0x128')}),db[_0x23128f('0xb5')][_0x23128f('0x27')](db['Tag'],{'onDelete':_0x23128f('0x128'),'foreignKey':_0x23128f('0x89')}),db[_0x23128f('0x1cc')][_0x23128f('0x1a6')](db[_0x23128f('0x1f5')],{'as':_0x23128f('0x169'),'onDelete':'cascade','foreignKey':_0x23128f('0x17a')}),db[_0x23128f('0x1cc')][_0x23128f('0x27')](db['ChatWebsite'],{'as':_0x23128f('0xf5'),'foreignKey':'ChatWebsiteId'}),db[_0x23128f('0x1cc')][_0x23128f('0x27')](db[_0x23128f('0x199')],{'as':_0x23128f('0x1c2'),'foreignKey':_0x23128f('0x16c')}),db[_0x23128f('0x1cc')]['belongsTo'](db[_0x23128f('0x1c1')],{'as':'Owner','foreignKey':_0x23128f('0x156')}),db['ChatInteraction']['belongsToMany'](db['Tag'],{'through':_0x23128f('0x13c'),'as':_0x23128f('0x175')}),db[_0x23128f('0x1cc')][_0x23128f('0xeb')](db[_0x23128f('0xee')],{'through':_0x23128f('0x13c'),'as':_0x23128f('0xa0')}),db[_0x23128f('0x1cc')][_0x23128f('0xeb')](db[_0x23128f('0x1c1')],{'as':'Users','through':'user_has_chat_interactions','foreignKey':_0x23128f('0x17a')}),db[_0x23128f('0x1f5')][_0x23128f('0x27')](db[_0x23128f('0x1c1')],{'onDelete':_0x23128f('0xff'),'as':_0x23128f('0x1c1')}),db['ChatMessage'][_0x23128f('0x27')](db[_0x23128f('0x199')],{'onDelete':'cascade','as':_0x23128f('0x1c2'),'foreignKey':_0x23128f('0x16c')}),db[_0x23128f('0x1f5')][_0x23128f('0x27')](db[_0x23128f('0x1cc')],{'onDelete':'cascade','as':_0x23128f('0xdf'),'foreignKey':_0x23128f('0x17a')}),db['ChatMessage'][_0x23128f('0x27')](db['Attachment'],{'as':_0x23128f('0x111'),'foreignKey':_0x23128f('0xc1')}),db[_0x23128f('0x1f5')][_0x23128f('0x27')](db[_0x23128f('0x15c')],{'as':_0x23128f('0xf5'),'foreignKey':_0x23128f('0x7')}),db[_0x23128f('0xa7')][_0x23128f('0x27')](db['CmContact'],{'onDelete':_0x23128f('0xff'),'as':_0x23128f('0x1c2'),'foreignKey':_0x23128f('0x16c')}),db[_0x23128f('0xa7')][_0x23128f('0x27')](db[_0x23128f('0x15c')],{'as':_0x23128f('0xf5'),'foreignKey':_0x23128f('0x7')}),db['ChatQueue'][_0x23128f('0xeb')](db[_0x23128f('0x1c1')],{'as':'Agents','through':_0x23128f('0x143'),'hooks':!![]}),db[_0x23128f('0xa')][_0x23128f('0xeb')](db[_0x23128f('0x177')],{'through':'team_has_chat_queues','as':_0x23128f('0x6b')}),db['ChatGroup'][_0x23128f('0x1a6')](db[_0x23128f('0x69')],{'as':_0x23128f('0x169'),'foreignKey':_0x23128f('0x5d'),'onDelete':_0x23128f('0xff')}),db['ChatGroup'][_0x23128f('0xeb')](db[_0x23128f('0x1c1')],{'as':_0x23128f('0x97'),'through':_0x23128f('0x47')}),db[_0x23128f('0x159')][_0x23128f('0x27')](db[_0x23128f('0x15c')],{'as':_0x23128f('0x64'),'foreignKey':_0x23128f('0x7')}),db[_0x23128f('0x5f')][_0x23128f('0x1a6')](db[_0x23128f('0x199')],{'as':'Contacts','foreignKey':_0x23128f('0xd7')}),db[_0x23128f('0x199')]['hasMany'](db['CmHopper'],{'as':_0x23128f('0x71'),'foreignKey':_0x23128f('0x16c')}),db[_0x23128f('0x199')][_0x23128f('0x1a6')](db[_0x23128f('0x17e')],{'as':_0x23128f('0x32'),'foreignKey':_0x23128f('0x16c')}),db[_0x23128f('0x199')][_0x23128f('0x1a6')](db[_0x23128f('0x1b0')],{'as':'HopperHistories','foreignKey':_0x23128f('0x16c')}),db[_0x23128f('0x199')]['hasMany'](db[_0x23128f('0x166')],{'as':'ReportAgentPreview','foreignKey':_0x23128f('0x16c')}),db[_0x23128f('0x199')][_0x23128f('0x1a6')](db[_0x23128f('0x1a2')],{'as':_0x23128f('0x84'),'foreignKey':_0x23128f('0x16c')}),db[_0x23128f('0x199')][_0x23128f('0x1a6')](db[_0x23128f('0x11')],{'as':'OpenchannelInteractions','foreignKey':'ContactId','onDelete':_0x23128f('0x128')}),db[_0x23128f('0x199')]['hasMany'](db[_0x23128f('0x1cc')],{'as':_0x23128f('0x146'),'foreignKey':'ContactId','onDelete':_0x23128f('0x128')}),db['CmContact'][_0x23128f('0x1a6')](db[_0x23128f('0x18c')],{'as':_0x23128f('0x48'),'foreignKey':_0x23128f('0x16c'),'onDelete':_0x23128f('0x128')}),db['CmContact'][_0x23128f('0x1a6')](db[_0x23128f('0x62')],{'as':_0x23128f('0xea'),'foreignKey':_0x23128f('0x16c'),'onDelete':_0x23128f('0x128')}),db[_0x23128f('0x199')]['hasMany'](db[_0x23128f('0x1f7')],{'as':_0x23128f('0x2a'),'foreignKey':'ContactId','onDelete':_0x23128f('0x128')}),db[_0x23128f('0x199')][_0x23128f('0x27')](db[_0x23128f('0x5f')],{'as':_0x23128f('0x16d'),'foreignKey':_0x23128f('0xd7')}),db[_0x23128f('0x199')]['belongsTo'](db[_0x23128f('0x196')],{'as':_0x23128f('0x43'),'foreignKey':'ListId','onDelete':'cascade'}),db['CmContact']['belongsToMany'](db[_0x23128f('0x1c1')],{'as':'Users','through':'cm_user_has_contacts'}),db[_0x23128f('0x199')][_0x23128f('0xeb')](db['Tag'],{'as':'Tags','through':_0x23128f('0x1f0')}),db[_0x23128f('0x199')][_0x23128f('0xeb')](db[_0x23128f('0xee')],{'through':_0x23128f('0x1f0'),'as':_0x23128f('0xa0')}),db[_0x23128f('0x18f')][_0x23128f('0x27')](db[_0x23128f('0x199')],{'as':_0x23128f('0x1c2'),'foreignKey':_0x23128f('0x16c'),'onDelete':_0x23128f('0xff')}),db[_0x23128f('0x18f')][_0x23128f('0x27')](db['CmList'],{'as':_0x23128f('0x43'),'foreignKey':'ListId','onDelete':_0x23128f('0xff')}),db[_0x23128f('0x18f')]['belongsTo'](db[_0x23128f('0x1c1')],{'as':_0x23128f('0xb8'),'foreignKey':'UserId'}),db[_0x23128f('0x18f')]['belongsTo'](db[_0x23128f('0x194')],{'as':_0x23128f('0xc2'),'foreignKey':'VoiceQueueId','onDelete':_0x23128f('0xff')}),db['CmHopper'][_0x23128f('0x27')](db[_0x23128f('0x9')],{'as':_0x23128f('0x9'),'foreignKey':'CampaignId','onDelete':'cascade'}),db[_0x23128f('0x18f')][_0x23128f('0x27')](db[_0x23128f('0x1c1')],{'as':_0x23128f('0x190'),'foreignKey':_0x23128f('0x178')}),db['CmHopperBlack'][_0x23128f('0x27')](db[_0x23128f('0x199')],{'as':_0x23128f('0x1c2'),'foreignKey':_0x23128f('0x16c'),'onDelete':_0x23128f('0xff')}),db[_0x23128f('0x8d')][_0x23128f('0x27')](db[_0x23128f('0x196')],{'as':'List','foreignKey':_0x23128f('0x1b8'),'onDelete':_0x23128f('0xff')}),db[_0x23128f('0x8d')][_0x23128f('0x27')](db['VoiceQueue'],{'as':_0x23128f('0xc2'),'foreignKey':'VoiceQueueId','onDelete':_0x23128f('0xff')}),db[_0x23128f('0x8d')][_0x23128f('0x27')](db[_0x23128f('0x9')],{'as':_0x23128f('0x9'),'foreignKey':_0x23128f('0x124'),'onDelete':_0x23128f('0xff')}),db[_0x23128f('0x1ba')]['hasMany'](db[_0x23128f('0x19c')],{'as':{'plural':_0x23128f('0x7f'),'singular':'OneAll'},'foreignKey':_0x23128f('0x7e'),'onDelete':_0x23128f('0xff'),'hooks':!![]}),db['Automation']['hasMany'](db[_0x23128f('0x19c')],{'as':{'plural':_0x23128f('0x1bc'),'singular':_0x23128f('0x12e')},'foreignKey':_0x23128f('0x14'),'onDelete':_0x23128f('0xff'),'hooks':!![]}),db['Automation'][_0x23128f('0x1a6')](db[_0x23128f('0x80')],{'as':_0x23128f('0xf0'),'foreignKey':_0x23128f('0x1ec'),'onDelete':'cascade','hooks':!![]}),db[_0x23128f('0x2')][_0x23128f('0x1a6')](db[_0x23128f('0x2')],{'as':_0x23128f('0x9e'),'foreignKey':'ParentId','onDelete':_0x23128f('0xff')}),db['Interval'][_0x23128f('0x1a6')](db[_0x23128f('0x1f2')],{'as':_0x23128f('0x19f'),'foreignKey':_0x23128f('0x95'),'onDelete':_0x23128f('0xff'),'hooks':!![],'required':![]}),db[_0x23128f('0x1f2')][_0x23128f('0x1a6')](db[_0x23128f('0x1b6')],{'as':_0x23128f('0x165'),'foreignKey':_0x23128f('0x95'),'onDelete':_0x23128f('0x128')}),db[_0x23128f('0x1f2')]['hasMany'](db[_0x23128f('0x167')],{'as':_0x23128f('0x6d'),'foreignKey':_0x23128f('0x95')}),db[_0x23128f('0x1f2')][_0x23128f('0x1a6')](db['ChatApplication'],{'as':_0x23128f('0x75'),'foreignKey':_0x23128f('0x95')}),db[_0x23128f('0x1f2')][_0x23128f('0x1a6')](db['FaxApplication'],{'as':_0x23128f('0xb6'),'foreignKey':_0x23128f('0x95')}),db[_0x23128f('0x1f2')]['hasMany'](db[_0x23128f('0xf2')],{'as':_0x23128f('0x1a1'),'foreignKey':_0x23128f('0x95')}),db['Schedule'][_0x23128f('0x27')](db[_0x23128f('0x1c9')],{}),db[_0x23128f('0x1d6')][_0x23128f('0x27')](db[_0x23128f('0x198')],{'foreignKey':_0x23128f('0xd4')}),db[_0x23128f('0x1d6')]['belongsTo'](db['AnalyticCustomReport'],{'foreignKey':_0x23128f('0xdb')}),db[_0x23128f('0x18a')]['belongsToMany'](db[_0x23128f('0x195')],{'as':_0x23128f('0x18b'),'through':_0x23128f('0x52'),'onDelete':'restrict'}),db[_0x23128f('0xee')][_0x23128f('0xeb')](db[_0x23128f('0x199')],{'through':_0x23128f('0x1f0')}),db[_0x23128f('0xee')]['belongsToMany'](db['ChatInteraction'],{'through':_0x23128f('0x13c')}),db[_0x23128f('0xee')][_0x23128f('0xeb')](db[_0x23128f('0x1f7')],{'through':_0x23128f('0x13')}),db[_0x23128f('0xee')][_0x23128f('0xeb')](db[_0x23128f('0x18c')],{'through':_0x23128f('0x4')}),db[_0x23128f('0xee')][_0x23128f('0xeb')](db['FaxInteraction'],{'through':'fax_interaction_has_tags'}),db[_0x23128f('0xee')][_0x23128f('0xeb')](db[_0x23128f('0x11')],{'through':_0x23128f('0x131')}),db[_0x23128f('0xee')][_0x23128f('0xeb')](db[_0x23128f('0x160')],{'through':_0x23128f('0x16a')}),db['Trigger'][_0x23128f('0x1a6')](db[_0x23128f('0x19c')],{'as':{'plural':_0x23128f('0x19e'),'singular':_0x23128f('0x20')},'foreignKey':_0x23128f('0x3b'),'onDelete':_0x23128f('0xff'),'hooks':!![]}),db[_0x23128f('0x6a')][_0x23128f('0x1a6')](db[_0x23128f('0x19c')],{'as':{'plural':_0x23128f('0x137'),'singular':_0x23128f('0x1bd')},'foreignKey':_0x23128f('0x147'),'onDelete':_0x23128f('0xff'),'hooks':!![]}),db[_0x23128f('0x6a')][_0x23128f('0x1a6')](db[_0x23128f('0x80')],{'as':_0x23128f('0xf0'),'foreignKey':_0x23128f('0x16'),'onDelete':_0x23128f('0xff'),'hooks':!![]}),db[_0x23128f('0xd1')]['hasMany'](db[_0x23128f('0x1b1')],{'as':_0x23128f('0x1f1'),'onDelete':_0x23128f('0xff'),'foreignKey':_0x23128f('0xdb'),'hooks':!![]}),db[_0x23128f('0x198')][_0x23128f('0x1a6')](db[_0x23128f('0x1b1')],{'as':'Fields','onDelete':_0x23128f('0xff'),'foreignKey':'DefaultReportId'}),db[_0x23128f('0x123')][_0x23128f('0x1a6')](db[_0x23128f('0x1b1')],{'as':_0x23128f('0x1f1'),'onDelete':'cascade','foreignKey':_0x23128f('0x1')}),db[_0x23128f('0x1b1')][_0x23128f('0x27')](db[_0x23128f('0x123')],{'foreignKey':'MetricId'}),db[_0x23128f('0x184')]['hasMany'](db[_0x23128f('0x1d0')],{'as':_0x23128f('0xc9'),'onDelete':_0x23128f('0xff'),'foreignKey':_0x23128f('0x45')}),db[_0x23128f('0x1d0')][_0x23128f('0x1a6')](db['SalesforceField'],{'as':'Subjects','onDelete':_0x23128f('0xff'),'foreignKey':_0x23128f('0x120')}),db[_0x23128f('0x1d0')][_0x23128f('0x1a6')](db['SalesforceField'],{'as':'Descriptions','onDelete':_0x23128f('0xff'),'foreignKey':_0x23128f('0x13b')}),db['SalesforceConfiguration']['hasMany'](db[_0x23128f('0xb0')],{'as':_0x23128f('0x1f1'),'onDelete':_0x23128f('0xff'),'foreignKey':_0x23128f('0x10d')}),db['SalesforceConfiguration'][_0x23128f('0x27')](db[_0x23128f('0x184')],{'as':_0x23128f('0xf5'),'foreignKey':_0x23128f('0x45')}),db[_0x23128f('0xb0')][_0x23128f('0x1a6')](db[_0x23128f('0xb0')],{'as':_0x23128f('0x163'),'foreignKey':'SubjectId'}),db[_0x23128f('0xb0')][_0x23128f('0x1a6')](db['SalesforceField'],{'as':_0x23128f('0x25'),'foreignKey':_0x23128f('0x13b')}),db[_0x23128f('0xb0')]['hasMany'](db[_0x23128f('0xb0')],{'as':_0x23128f('0x141'),'foreignKey':'FieldId'}),db[_0x23128f('0xb0')][_0x23128f('0x27')](db[_0x23128f('0x103')],{'as':_0x23128f('0x103'),'foreignKey':'VariableId'}),db[_0x23128f('0x92')][_0x23128f('0x1a6')](db[_0x23128f('0x107')],{'as':_0x23128f('0xc9'),'onDelete':'cascade','foreignKey':_0x23128f('0x45')}),db[_0x23128f('0x107')][_0x23128f('0x1a6')](db[_0x23128f('0x1c7')],{'as':'Subjects','onDelete':_0x23128f('0xff'),'foreignKey':_0x23128f('0x120')}),db[_0x23128f('0x107')][_0x23128f('0x1a6')](db['SugarcrmField'],{'as':'Descriptions','onDelete':_0x23128f('0xff'),'foreignKey':_0x23128f('0x13b')}),db['SugarcrmConfiguration']['hasMany'](db[_0x23128f('0x1c7')],{'as':_0x23128f('0x1f1'),'onDelete':_0x23128f('0xff'),'foreignKey':_0x23128f('0x10d')}),db[_0x23128f('0x107')][_0x23128f('0x27')](db['SugarcrmAccount'],{'as':_0x23128f('0xf5'),'foreignKey':'AccountId'}),db[_0x23128f('0x1c7')][_0x23128f('0x1a6')](db['SugarcrmField'],{'as':_0x23128f('0x163'),'foreignKey':'SubjectId'}),db[_0x23128f('0x1c7')][_0x23128f('0x1a6')](db[_0x23128f('0x1c7')],{'as':_0x23128f('0x25'),'foreignKey':_0x23128f('0x13b')}),db['SugarcrmField'][_0x23128f('0x1a6')](db['SugarcrmField'],{'as':_0x23128f('0x141'),'foreignKey':'FieldId'}),db['SugarcrmField'][_0x23128f('0x27')](db[_0x23128f('0x103')],{'as':_0x23128f('0x103'),'foreignKey':_0x23128f('0x17')}),db['DeskAccount']['hasMany'](db[_0x23128f('0x4b')],{'as':'Configurations','onDelete':_0x23128f('0xff'),'foreignKey':'AccountId'}),db[_0x23128f('0x4b')]['hasMany'](db[_0x23128f('0x168')],{'as':_0x23128f('0x65'),'onDelete':_0x23128f('0xff'),'foreignKey':_0x23128f('0x120')}),db[_0x23128f('0x4b')][_0x23128f('0x1a6')](db[_0x23128f('0x168')],{'as':'Descriptions','onDelete':'cascade','foreignKey':_0x23128f('0x13b')}),db[_0x23128f('0x4b')][_0x23128f('0x1a6')](db[_0x23128f('0x168')],{'as':'Fields','onDelete':_0x23128f('0xff'),'foreignKey':_0x23128f('0x10d')}),db[_0x23128f('0x4b')][_0x23128f('0x27')](db[_0x23128f('0x22')],{'as':_0x23128f('0xf5'),'foreignKey':'AccountId'}),db['DeskConfiguration'][_0x23128f('0xeb')](db['Tag'],{'through':_0x23128f('0x38')}),db[_0x23128f('0x168')][_0x23128f('0x1a6')](db[_0x23128f('0x168')],{'as':_0x23128f('0x163'),'foreignKey':_0x23128f('0x120')}),db[_0x23128f('0x168')][_0x23128f('0x1a6')](db[_0x23128f('0x168')],{'as':_0x23128f('0x25'),'foreignKey':_0x23128f('0x13b')}),db[_0x23128f('0x168')][_0x23128f('0x1a6')](db[_0x23128f('0x168')],{'as':_0x23128f('0x141'),'foreignKey':_0x23128f('0x10d')}),db['DeskField'][_0x23128f('0x27')](db[_0x23128f('0x103')],{'as':_0x23128f('0x103'),'foreignKey':'VariableId'}),db['ZohoAccount'][_0x23128f('0x1a6')](db[_0x23128f('0xfa')],{'as':'Configurations','onDelete':_0x23128f('0xff'),'foreignKey':_0x23128f('0x45')}),db[_0x23128f('0xfa')][_0x23128f('0x1a6')](db[_0x23128f('0xc0')],{'as':_0x23128f('0x65'),'onDelete':_0x23128f('0xff'),'foreignKey':_0x23128f('0x120')}),db[_0x23128f('0xfa')][_0x23128f('0x1a6')](db[_0x23128f('0xc0')],{'as':_0x23128f('0x13d'),'onDelete':_0x23128f('0xff'),'foreignKey':_0x23128f('0x13b')}),db['ZohoConfiguration']['hasMany'](db[_0x23128f('0xc0')],{'as':'Fields','onDelete':_0x23128f('0xff'),'foreignKey':_0x23128f('0x10d')}),db[_0x23128f('0xfa')][_0x23128f('0x27')](db[_0x23128f('0x115')],{'as':_0x23128f('0xf5'),'foreignKey':_0x23128f('0x45')}),db[_0x23128f('0xc0')]['hasMany'](db[_0x23128f('0xc0')],{'as':_0x23128f('0x163'),'foreignKey':_0x23128f('0x120')}),db[_0x23128f('0xc0')][_0x23128f('0x1a6')](db[_0x23128f('0xc0')],{'as':'Description','foreignKey':_0x23128f('0x13b')}),db[_0x23128f('0xc0')][_0x23128f('0x1a6')](db[_0x23128f('0xc0')],{'as':_0x23128f('0x141'),'foreignKey':'FieldId'}),db[_0x23128f('0xc0')]['belongsTo'](db['Variable'],{'as':_0x23128f('0x103'),'foreignKey':_0x23128f('0x17')}),db[_0x23128f('0x12b')][_0x23128f('0x1a6')](db[_0x23128f('0x2f')],{'as':_0x23128f('0xc9'),'onDelete':_0x23128f('0xff'),'foreignKey':_0x23128f('0x45')}),db[_0x23128f('0x2f')]['hasMany'](db[_0x23128f('0x1da')],{'as':_0x23128f('0x65'),'foreignKey':_0x23128f('0x120')}),db[_0x23128f('0x2f')][_0x23128f('0x1a6')](db[_0x23128f('0x1da')],{'as':'Descriptions','foreignKey':_0x23128f('0x13b')}),db[_0x23128f('0x2f')][_0x23128f('0x1a6')](db['ZendeskField'],{'as':_0x23128f('0x1f1'),'foreignKey':_0x23128f('0x10d')}),db[_0x23128f('0x2f')][_0x23128f('0x27')](db[_0x23128f('0x12b')],{'as':_0x23128f('0xf5'),'foreignKey':'AccountId'}),db[_0x23128f('0x2f')]['belongsToMany'](db['Tag'],{'through':_0x23128f('0x8c')}),db['ZendeskField']['hasMany'](db[_0x23128f('0x1da')],{'as':_0x23128f('0x163'),'foreignKey':'SubjectId'}),db['ZendeskField']['hasMany'](db[_0x23128f('0x1da')],{'as':_0x23128f('0x25'),'foreignKey':'DescriptionId'}),db['ZendeskField'][_0x23128f('0x1a6')](db[_0x23128f('0x1da')],{'as':_0x23128f('0x141'),'foreignKey':_0x23128f('0x10d')}),db[_0x23128f('0x1da')][_0x23128f('0x27')](db[_0x23128f('0x103')],{'as':_0x23128f('0x103'),'foreignKey':_0x23128f('0x17')}),db[_0x23128f('0xc3')][_0x23128f('0x1a6')](db['FreshdeskConfiguration'],{'as':_0x23128f('0xc9'),'onDelete':'cascade','foreignKey':_0x23128f('0x45')}),db[_0x23128f('0x10c')][_0x23128f('0x1a6')](db[_0x23128f('0x181')],{'as':_0x23128f('0x65'),'onDelete':'cascade','foreignKey':_0x23128f('0x120')}),db[_0x23128f('0x10c')][_0x23128f('0x1a6')](db['FreshdeskField'],{'as':'Descriptions','onDelete':'cascade','foreignKey':_0x23128f('0x13b')}),db['FreshdeskConfiguration'][_0x23128f('0x1a6')](db[_0x23128f('0x181')],{'as':_0x23128f('0x1f1'),'onDelete':_0x23128f('0xff'),'foreignKey':'FieldId'}),db[_0x23128f('0x10c')][_0x23128f('0x27')](db[_0x23128f('0xc3')],{'as':_0x23128f('0xf5'),'foreignKey':'AccountId'}),db[_0x23128f('0x10c')]['belongsToMany'](db[_0x23128f('0xee')],{'through':_0x23128f('0x14d')}),db[_0x23128f('0x181')][_0x23128f('0x1a6')](db[_0x23128f('0x181')],{'as':_0x23128f('0x163'),'foreignKey':_0x23128f('0x120')}),db[_0x23128f('0x181')]['hasMany'](db[_0x23128f('0x181')],{'as':_0x23128f('0x25'),'foreignKey':_0x23128f('0x13b')}),db[_0x23128f('0x181')]['hasMany'](db[_0x23128f('0x181')],{'as':_0x23128f('0x141'),'foreignKey':_0x23128f('0x10d')}),db[_0x23128f('0x181')][_0x23128f('0x27')](db[_0x23128f('0x103')],{'as':_0x23128f('0x103'),'foreignKey':_0x23128f('0x17')}),db[_0x23128f('0x10f')][_0x23128f('0x1a6')](db['VtigerConfiguration'],{'as':'Configurations','onDelete':_0x23128f('0xff'),'foreignKey':_0x23128f('0x45')}),db[_0x23128f('0x1d5')]['hasMany'](db['VtigerField'],{'as':_0x23128f('0x65'),'foreignKey':'SubjectId'}),db['VtigerConfiguration'][_0x23128f('0x1a6')](db['VtigerField'],{'as':'Descriptions','foreignKey':_0x23128f('0x13b')}),db[_0x23128f('0x1d5')][_0x23128f('0x1a6')](db[_0x23128f('0x1d4')],{'as':'Fields','foreignKey':_0x23128f('0x10d')}),db['VtigerConfiguration'][_0x23128f('0x27')](db[_0x23128f('0x10f')],{'as':_0x23128f('0xf5'),'foreignKey':_0x23128f('0x45')}),db[_0x23128f('0x1d4')][_0x23128f('0x1a6')](db['VtigerField'],{'as':_0x23128f('0x163'),'foreignKey':_0x23128f('0x120')}),db[_0x23128f('0x1d4')][_0x23128f('0x1a6')](db[_0x23128f('0x1d4')],{'as':_0x23128f('0x25'),'foreignKey':_0x23128f('0x13b')}),db[_0x23128f('0x1d4')]['hasMany'](db[_0x23128f('0x1d4')],{'as':_0x23128f('0x141'),'foreignKey':_0x23128f('0x10d')}),db[_0x23128f('0x1d4')]['belongsTo'](db['Variable'],{'as':_0x23128f('0x103'),'foreignKey':_0x23128f('0x17')}),db['ServicenowAccount']['hasMany'](db[_0x23128f('0xb2')],{'as':_0x23128f('0xc9'),'onDelete':_0x23128f('0xff'),'foreignKey':'AccountId'}),db['ServicenowConfiguration'][_0x23128f('0x1a6')](db[_0x23128f('0x18')],{'as':_0x23128f('0x65'),'foreignKey':'SubjectId'}),db[_0x23128f('0xb2')]['hasMany'](db[_0x23128f('0x18')],{'as':_0x23128f('0x13d'),'foreignKey':_0x23128f('0x13b')}),db[_0x23128f('0xb2')][_0x23128f('0x1a6')](db[_0x23128f('0x18')],{'as':_0x23128f('0x1f1'),'foreignKey':_0x23128f('0x10d')}),db[_0x23128f('0xb2')][_0x23128f('0x27')](db[_0x23128f('0x40')],{'as':_0x23128f('0xf5'),'foreignKey':'AccountId'}),db['ServicenowField']['hasMany'](db[_0x23128f('0x18')],{'as':_0x23128f('0x163'),'foreignKey':_0x23128f('0x120')}),db[_0x23128f('0x18')]['hasMany'](db['ServicenowField'],{'as':_0x23128f('0x25'),'foreignKey':'DescriptionId'}),db[_0x23128f('0x18')][_0x23128f('0x1a6')](db[_0x23128f('0x18')],{'as':_0x23128f('0x141'),'foreignKey':'FieldId'}),db[_0x23128f('0x18')][_0x23128f('0x27')](db[_0x23128f('0x103')],{'as':_0x23128f('0x103'),'foreignKey':_0x23128f('0x17')}),db[_0x23128f('0x11a')]['hasMany'](db[_0x23128f('0xe4')],{'as':_0x23128f('0xc9'),'onDelete':_0x23128f('0xff'),'foreignKey':_0x23128f('0x45')}),db[_0x23128f('0xe4')][_0x23128f('0x1a6')](db[_0x23128f('0x44')],{'as':_0x23128f('0x65'),'onDelete':_0x23128f('0xff'),'foreignKey':_0x23128f('0x120')}),db['Dynamics365Configuration']['hasMany'](db[_0x23128f('0x44')],{'as':'Descriptions','onDelete':_0x23128f('0xff'),'foreignKey':_0x23128f('0x13b')}),db[_0x23128f('0xe4')]['hasMany'](db[_0x23128f('0x44')],{'as':_0x23128f('0x1f1'),'onDelete':_0x23128f('0xff'),'foreignKey':_0x23128f('0x10d')}),db['Dynamics365Configuration']['belongsTo'](db['Dynamics365Account'],{'as':'Account','foreignKey':'AccountId'}),db['Dynamics365Field']['hasMany'](db[_0x23128f('0x44')],{'as':_0x23128f('0x163'),'foreignKey':_0x23128f('0x120')}),db['Dynamics365Field']['hasMany'](db[_0x23128f('0x44')],{'as':_0x23128f('0x25'),'foreignKey':'DescriptionId'}),db['Dynamics365Field'][_0x23128f('0x1a6')](db[_0x23128f('0x44')],{'as':_0x23128f('0x141'),'foreignKey':_0x23128f('0x10d')}),db[_0x23128f('0x44')][_0x23128f('0x27')](db[_0x23128f('0x103')],{'as':'Variable','foreignKey':_0x23128f('0x17')}),db[_0x23128f('0xfc')]['hasMany'](db[_0x23128f('0x1e9')],{'as':_0x23128f('0xc9'),'onDelete':'cascade','foreignKey':'AccountId'}),db[_0x23128f('0x1e9')]['hasMany'](db[_0x23128f('0x1cb')],{'as':_0x23128f('0x65'),'foreignKey':_0x23128f('0x120')}),db[_0x23128f('0x1e9')]['hasMany'](db[_0x23128f('0x1cb')],{'as':'Descriptions','foreignKey':_0x23128f('0x13b')}),db[_0x23128f('0x1e9')][_0x23128f('0x1a6')](db[_0x23128f('0x1cb')],{'as':_0x23128f('0x1f1'),'foreignKey':_0x23128f('0x10d')}),db[_0x23128f('0x1e9')]['belongsTo'](db[_0x23128f('0xfc')],{'as':'Account','foreignKey':'AccountId'}),db[_0x23128f('0x1cb')][_0x23128f('0x1a6')](db[_0x23128f('0x1cb')],{'as':_0x23128f('0x163'),'foreignKey':_0x23128f('0x120')}),db[_0x23128f('0x1cb')][_0x23128f('0x1a6')](db[_0x23128f('0x1cb')],{'as':_0x23128f('0x25'),'foreignKey':_0x23128f('0x13b')}),db[_0x23128f('0x1cb')][_0x23128f('0x1a6')](db[_0x23128f('0x1cb')],{'as':_0x23128f('0x141'),'foreignKey':'FieldId'}),db[_0x23128f('0x1cb')][_0x23128f('0x27')](db[_0x23128f('0x103')],{'as':_0x23128f('0x103'),'foreignKey':'VariableId'}),db[_0x23128f('0xf7')][_0x23128f('0x27')](db[_0x23128f('0x15c')],{}),db['ChatQueueReport'][_0x23128f('0x27')](db[_0x23128f('0x196')],{'as':_0x23128f('0x43'),'foreignKey':_0x23128f('0x1b8')}),db[_0x23128f('0xf7')][_0x23128f('0x27')](db[_0x23128f('0x199')],{'as':'Contact','foreignKey':_0x23128f('0x16c')}),db[_0x23128f('0xf7')]['belongsTo'](db['ChatInteraction'],{}),db[_0x23128f('0xf7')]['belongsTo'](db[_0x23128f('0x1f5')],{}),db[_0x23128f('0xf7')][_0x23128f('0x27')](db[_0x23128f('0x1c1')],{}),db[_0x23128f('0xf7')][_0x23128f('0x27')](db[_0x23128f('0xa')],{}),db[_0x23128f('0x69')]['belongsTo'](db[_0x23128f('0x1c1')],{'onDelete':_0x23128f('0xff'),'foreignKey':_0x23128f('0x193')}),db[_0x23128f('0x69')][_0x23128f('0x27')](db[_0x23128f('0x1c1')],{'onDelete':_0x23128f('0xff'),'foreignKey':_0x23128f('0x1e8')}),db[_0x23128f('0x1a2')][_0x23128f('0x1a6')](db[_0x23128f('0x3')],{'foreignKey':_0x23128f('0x15'),'onDelete':_0x23128f('0xff')}),db[_0x23128f('0x1a2')][_0x23128f('0x1a6')](db[_0x23128f('0x3e')],{'foreignKey':_0x23128f('0x15'),'onDelete':_0x23128f('0xff')}),db[_0x23128f('0x3d')]['belongsTo'](db[_0x23128f('0x73')],{}),db[_0x23128f('0x3d')]['belongsTo'](db['CmList'],{'as':_0x23128f('0x43'),'foreignKey':_0x23128f('0x1b8')}),db['SmsQueueReport'][_0x23128f('0x27')](db[_0x23128f('0x199')],{'as':_0x23128f('0x1c2'),'foreignKey':_0x23128f('0x16c')}),db[_0x23128f('0x3d')][_0x23128f('0x27')](db[_0x23128f('0x18c')],{}),db[_0x23128f('0x3d')][_0x23128f('0x27')](db[_0x23128f('0x1b9')],{}),db[_0x23128f('0x3d')][_0x23128f('0x27')](db['User'],{}),db['SmsQueueReport'][_0x23128f('0x27')](db[_0x23128f('0xe7')],{}),db[_0x23128f('0x11c')][_0x23128f('0x1a6')](db['JscriptySessionReport'],{'foreignKey':_0x23128f('0x142')}),db['JscriptyProject'][_0x23128f('0x1a6')](db['JscriptyQuestionReport'],{'foreignKey':_0x23128f('0x142')}),db[_0x23128f('0x11c')]['hasMany'](db[_0x23128f('0x3e')],{'foreignKey':_0x23128f('0x142')}),db[_0x23128f('0x31')][_0x23128f('0xeb')](db[_0x23128f('0x1c1')],{'as':_0x23128f('0x14f'),'through':'user_has_square_projects'}),db[_0x23128f('0x177')][_0x23128f('0xeb')](db[_0x23128f('0x1c1')],{'as':_0x23128f('0x96'),'through':_0x23128f('0x127')}),db[_0x23128f('0x177')][_0x23128f('0xeb')](db['VoiceQueue'],{'through':_0x23128f('0x61'),'as':_0x23128f('0xcc')}),db[_0x23128f('0x177')]['belongsToMany'](db[_0x23128f('0xab')],{'through':_0x23128f('0x161'),'as':'MailQueues'}),db['Team'][_0x23128f('0xeb')](db[_0x23128f('0xa')],{'through':'team_has_chat_queues','as':_0x23128f('0xc6')}),db[_0x23128f('0x177')][_0x23128f('0xeb')](db[_0x23128f('0x60')],{'through':_0x23128f('0x1f4'),'as':_0x23128f('0x1d1')}),db[_0x23128f('0x177')][_0x23128f('0xeb')](db[_0x23128f('0xe7')],{'through':'team_has_sms_queues','as':_0x23128f('0x8')}),db[_0x23128f('0x177')][_0x23128f('0xeb')](db[_0x23128f('0xcf')],{'through':_0x23128f('0x1de'),'as':_0x23128f('0x151')}),db[_0x23128f('0x177')]['belongsToMany'](db[_0x23128f('0x9a')],{'through':'team_has_whatsapp_queues','as':_0x23128f('0x15a')}),db[_0x23128f('0x9')]['hasMany'](db[_0x23128f('0x18f')],{'as':_0x23128f('0x71'),'foreignKey':_0x23128f('0x124')}),db[_0x23128f('0x9')][_0x23128f('0x1a6')](db[_0x23128f('0x17e')],{'as':_0x23128f('0x32'),'foreignKey':_0x23128f('0x124')}),db[_0x23128f('0x9')][_0x23128f('0x1a6')](db[_0x23128f('0x1b0')],{'as':_0x23128f('0x192'),'foreignKey':_0x23128f('0x124')}),db['Campaign'][_0x23128f('0x1a6')](db[_0x23128f('0x8d')],{'as':_0x23128f('0x16b'),'foreignKey':_0x23128f('0x124')}),db[_0x23128f('0x9')][_0x23128f('0x27')](db[_0x23128f('0x35')],{'as':_0x23128f('0x35'),'foreignKey':_0x23128f('0x11d')}),db[_0x23128f('0x9')][_0x23128f('0x27')](db[_0x23128f('0x35')],{'as':'TrunkBackup','foreignKey':'TrunkBackupId'}),db['Campaign'][_0x23128f('0x27')](db['Interval'],{'as':_0x23128f('0x1f2'),'foreignKey':_0x23128f('0x95')}),db[_0x23128f('0x9')][_0x23128f('0x27')](db['SquareProject'],{'as':_0x23128f('0x31'),'foreignKey':_0x23128f('0x126')}),db[_0x23128f('0x9')][_0x23128f('0xeb')](db['CmList'],{'as':_0x23128f('0xa8'),'through':_0x23128f('0x79')}),db[_0x23128f('0x9')]['belongsToMany'](db['CmList'],{'as':_0x23128f('0xad'),'through':_0x23128f('0x150')}),db['MailTransferReport'][_0x23128f('0x27')](db[_0x23128f('0x17b')],{}),db['MailTransferReport'][_0x23128f('0x27')](db[_0x23128f('0x1f7')],{}),db[_0x23128f('0xc')][_0x23128f('0x27')](db[_0x23128f('0x1c9')],{'foreignKey':'FromMailAccountId','as':_0x23128f('0x1ea')}),db[_0x23128f('0xc')][_0x23128f('0x27')](db[_0x23128f('0x1c1')],{'foreignKey':_0x23128f('0xd2'),'as':_0x23128f('0x200')}),db[_0x23128f('0xc')]['belongsTo'](db[_0x23128f('0x1c1')],{'foreignKey':_0x23128f('0x158'),'as':'ToAgent'}),db[_0x23128f('0xc')][_0x23128f('0x27')](db[_0x23128f('0xab')],{'foreignKey':'ToMailQueueId','as':'ToQueue'}),db[_0x23128f('0xc')][_0x23128f('0x27')](db[_0x23128f('0x1c9')],{'foreignKey':_0x23128f('0x1ee'),'as':'ToAccount'}),db['ChatTransferReport'][_0x23128f('0x27')](db[_0x23128f('0x1f5')],{}),db[_0x23128f('0xbf')][_0x23128f('0x27')](db[_0x23128f('0x1cc')],{}),db[_0x23128f('0xbf')][_0x23128f('0x27')](db[_0x23128f('0x15c')],{'foreignKey':'FromChatWebsiteId','as':'FromAccount'}),db[_0x23128f('0xbf')][_0x23128f('0x27')](db['User'],{'foreignKey':_0x23128f('0xd2'),'as':_0x23128f('0x200')}),db[_0x23128f('0xbf')][_0x23128f('0x27')](db[_0x23128f('0x1c1')],{'foreignKey':_0x23128f('0x158'),'as':_0x23128f('0x23')}),db[_0x23128f('0xbf')]['belongsTo'](db[_0x23128f('0xa')],{'foreignKey':_0x23128f('0x134'),'as':_0x23128f('0x1ca')}),db['ChatTransferReport']['belongsTo'](db[_0x23128f('0x15c')],{'foreignKey':_0x23128f('0x2e'),'as':_0x23128f('0x51')}),db[_0x23128f('0x88')][_0x23128f('0x27')](db[_0x23128f('0x1a7')],{}),db[_0x23128f('0x88')][_0x23128f('0x27')](db[_0x23128f('0x62')],{}),db[_0x23128f('0x88')]['belongsTo'](db[_0x23128f('0xe')],{'foreignKey':_0x23128f('0x1fb'),'as':_0x23128f('0x1ea')}),db['FaxTransferReport'][_0x23128f('0x27')](db[_0x23128f('0x1c1')],{'foreignKey':_0x23128f('0xd2'),'as':_0x23128f('0x200')}),db[_0x23128f('0x88')][_0x23128f('0x27')](db[_0x23128f('0x1c1')],{'foreignKey':_0x23128f('0x158'),'as':_0x23128f('0x23')}),db[_0x23128f('0x88')][_0x23128f('0x27')](db['FaxQueue'],{'foreignKey':_0x23128f('0xef'),'as':_0x23128f('0x1ca')}),db['FaxTransferReport'][_0x23128f('0x27')](db[_0x23128f('0xe')],{'foreignKey':_0x23128f('0x1b2'),'as':'ToAccount'}),db[_0x23128f('0x152')]['belongsTo'](db[_0x23128f('0x140')],{}),db[_0x23128f('0x152')][_0x23128f('0x27')](db[_0x23128f('0x11')],{}),db[_0x23128f('0x152')]['belongsTo'](db[_0x23128f('0xf9')],{'foreignKey':_0x23128f('0x101'),'as':_0x23128f('0x1ea')}),db[_0x23128f('0x152')]['belongsTo'](db[_0x23128f('0x1c1')],{'foreignKey':_0x23128f('0xd2'),'as':_0x23128f('0x200')}),db[_0x23128f('0x152')]['belongsTo'](db['User'],{'foreignKey':_0x23128f('0x158'),'as':'ToAgent'}),db[_0x23128f('0x152')]['belongsTo'](db[_0x23128f('0xcf')],{'foreignKey':'ToOpenchannelQueueId','as':_0x23128f('0x1ca')}),db[_0x23128f('0x152')][_0x23128f('0x27')](db[_0x23128f('0xf9')],{'foreignKey':_0x23128f('0x30'),'as':'ToAccount'}),db[_0x23128f('0x1cd')][_0x23128f('0x27')](db[_0x23128f('0x1b9')],{}),db[_0x23128f('0x1cd')]['belongsTo'](db['SmsInteraction'],{}),db[_0x23128f('0x1cd')][_0x23128f('0x27')](db['SmsAccount'],{'foreignKey':_0x23128f('0x9c'),'as':_0x23128f('0x1ea')}),db[_0x23128f('0x1cd')][_0x23128f('0x27')](db[_0x23128f('0x1c1')],{'foreignKey':_0x23128f('0xd2'),'as':_0x23128f('0x200')}),db[_0x23128f('0x1cd')][_0x23128f('0x27')](db[_0x23128f('0x1c1')],{'foreignKey':_0x23128f('0x158'),'as':_0x23128f('0x23')}),db['SmsTransferReport'][_0x23128f('0x27')](db[_0x23128f('0xe7')],{'foreignKey':_0x23128f('0x83'),'as':_0x23128f('0x1ca')}),db[_0x23128f('0x1cd')]['belongsTo'](db[_0x23128f('0x73')],{'foreignKey':_0x23128f('0x121'),'as':_0x23128f('0x51')}),db[_0x23128f('0x196')][_0x23128f('0x1a6')](db[_0x23128f('0x2')],{'as':'Dispositions','foreignKey':_0x23128f('0x1b8')}),db['CmList'][_0x23128f('0x1a6')](db[_0x23128f('0x1e6')],{'as':_0x23128f('0x15b'),'foreignKey':'ListId'}),db[_0x23128f('0x196')][_0x23128f('0x1a6')](db[_0x23128f('0x199')],{'as':_0x23128f('0x1ad'),'onDelete':_0x23128f('0xff'),'foreignKey':_0x23128f('0x1b8')}),db[_0x23128f('0x196')][_0x23128f('0x1a6')](db['CmHopperFinal'],{'as':'HopperFinals','foreignKey':_0x23128f('0x1b8')}),db[_0x23128f('0x196')][_0x23128f('0x1a6')](db[_0x23128f('0x1b0')],{'as':'HopperHistory','foreignKey':_0x23128f('0x1b8')}),db[_0x23128f('0x196')]['hasMany'](db[_0x23128f('0x166')],{'as':'ReportAgentPreview','foreignKey':_0x23128f('0x1b8')}),db[_0x23128f('0x196')][_0x23128f('0xeb')](db[_0x23128f('0x194')],{'as':_0x23128f('0x1e0'),'through':'voice_queues_has_cm_lists'}),db[_0x23128f('0x196')][_0x23128f('0xeb')](db[_0x23128f('0x1c1')],{'as':_0x23128f('0x96'),'through':_0x23128f('0xb7')}),db[_0x23128f('0xcb')][_0x23128f('0x1a6')](db[_0x23128f('0x1b6')],{'as':_0x23128f('0x165'),'onDelete':_0x23128f('0xff')}),db[_0x23128f('0xcb')][_0x23128f('0xeb')](db[_0x23128f('0x1c1')],{'as':_0x23128f('0x96'),'through':'user_has_voice_prefixes'}),db['UserProfile']['hasMany'](db['User'],{'as':_0x23128f('0x14f'),'foreignKey':_0x23128f('0x179'),'onDelete':_0x23128f('0x128')}),db[_0x23128f('0x5c')][_0x23128f('0x1a6')](db[_0x23128f('0x39')],{'as':_0x23128f('0x6f'),'foreignKey':_0x23128f('0x179'),'onDelete':'cascade'}),db[_0x23128f('0x39')][_0x23128f('0x1a6')](db[_0x23128f('0x63')],{'as':_0x23128f('0x1c3'),'foreignKey':_0x23128f('0x17c'),'onDelete':_0x23128f('0xff')}),db['WhatsappAccount'][_0x23128f('0x1a6')](db['Disposition'],{'as':_0x23128f('0x9e'),'foreignKey':_0x23128f('0x114')}),db[_0x23128f('0x1fe')][_0x23128f('0x1a6')](db['CannedAnswer'],{'as':_0x23128f('0x1b4'),'foreignKey':'WhatsappAccountId'}),db[_0x23128f('0x1fe')]['hasMany'](db[_0x23128f('0xdd')],{'as':_0x23128f('0x169'),'foreignKey':_0x23128f('0x114')}),db[_0x23128f('0x1fe')][_0x23128f('0x1a6')](db['WhatsappInteraction'],{'as':_0x23128f('0x1d8')}),db[_0x23128f('0x1fe')]['hasMany'](db[_0x23128f('0x1a9')],{'as':'Applications'}),db[_0x23128f('0x1fe')][_0x23128f('0x27')](db[_0x23128f('0x196')],{'as':_0x23128f('0x43'),'foreignKey':'ListId'}),db[_0x23128f('0x1fe')][_0x23128f('0x27')](db[_0x23128f('0x82')],{'as':_0x23128f('0xb3'),'foreignKey':_0x23128f('0x1f')}),db['WhatsappAccount'][_0x23128f('0xeb')](db[_0x23128f('0x1c1')],{'as':_0x23128f('0x96'),'through':'user_has_whatsapp_accounts'}),db[_0x23128f('0x1a9')]['belongsTo'](db[_0x23128f('0x1c1')],{'onDelete':'restrict'}),db[_0x23128f('0x1a9')][_0x23128f('0x27')](db['WhatsappQueue'],{'onDelete':_0x23128f('0x128')}),db[_0x23128f('0x1a9')][_0x23128f('0x27')](db[_0x23128f('0x1fe')],{'onDelete':_0x23128f('0x128')}),db[_0x23128f('0x1a9')][_0x23128f('0x27')](db[_0x23128f('0x1f2')],{'onDelete':_0x23128f('0x128'),'foreignKey':_0x23128f('0x95')}),db['WhatsappApplication'][_0x23128f('0x27')](db['Tag'],{'onDelete':'restrict','foreignKey':_0x23128f('0x89')}),db['WhatsappInteraction'][_0x23128f('0x1a6')](db[_0x23128f('0xdd')],{'as':_0x23128f('0x169'),'onDelete':'cascade','foreignKey':_0x23128f('0xf3')}),db['WhatsappInteraction'][_0x23128f('0x27')](db[_0x23128f('0x1fe')],{'as':'Account','foreignKey':_0x23128f('0x114')}),db[_0x23128f('0x160')][_0x23128f('0x27')](db[_0x23128f('0x199')],{'as':_0x23128f('0x1c2'),'foreignKey':_0x23128f('0x16c')}),db[_0x23128f('0x160')][_0x23128f('0x27')](db[_0x23128f('0x1c1')],{'as':_0x23128f('0x190'),'foreignKey':_0x23128f('0x156')}),db['WhatsappInteraction']['belongsToMany'](db[_0x23128f('0xee')],{'through':_0x23128f('0x16a'),'as':'Tags'}),db[_0x23128f('0x160')][_0x23128f('0xeb')](db['Tag'],{'through':_0x23128f('0x16a'),'as':_0x23128f('0xa0')}),db[_0x23128f('0x160')][_0x23128f('0xeb')](db['User'],{'as':_0x23128f('0x14f'),'through':'user_has_whatsapp_interactions','foreignKey':'WhatsappInteractionId'}),db[_0x23128f('0xdd')][_0x23128f('0x27')](db['User'],{'as':_0x23128f('0x1c1')}),db[_0x23128f('0xdd')][_0x23128f('0x27')](db[_0x23128f('0x199')],{'onDelete':_0x23128f('0xff'),'as':_0x23128f('0x1c2')}),db[_0x23128f('0xdd')]['belongsTo'](db[_0x23128f('0x160')],{'onDelete':_0x23128f('0xff'),'as':_0x23128f('0xdf'),'foreignKey':_0x23128f('0xf3')}),db[_0x23128f('0xdd')]['belongsTo'](db['WhatsappAccount'],{'as':_0x23128f('0xf5'),'foreignKey':_0x23128f('0x114')}),db[_0x23128f('0x110')][_0x23128f('0x27')](db[_0x23128f('0x1fe')],{}),db[_0x23128f('0x110')]['belongsTo'](db[_0x23128f('0x196')],{'as':'List','foreignKey':_0x23128f('0x1b8')}),db['WhatsappQueueReport'][_0x23128f('0x27')](db[_0x23128f('0x199')],{'as':_0x23128f('0x1c2'),'foreignKey':_0x23128f('0x16c')}),db[_0x23128f('0x110')][_0x23128f('0x27')](db['WhatsappInteraction'],{}),db[_0x23128f('0x110')][_0x23128f('0x27')](db['WhatsappQueue'],{}),db[_0x23128f('0x110')]['belongsTo'](db[_0x23128f('0xdd')],{}),db[_0x23128f('0x110')][_0x23128f('0x27')](db[_0x23128f('0x1c1')],{}),db[_0x23128f('0x1a5')][_0x23128f('0x27')](db['WhatsappMessage'],{}),db[_0x23128f('0x1a5')][_0x23128f('0x27')](db[_0x23128f('0x160')],{}),db[_0x23128f('0x1a5')][_0x23128f('0x27')](db['WhatsappAccount'],{'foreignKey':'FromWhatsappAccountId','as':_0x23128f('0x1ea')}),db[_0x23128f('0x1a5')]['belongsTo'](db[_0x23128f('0x1fe')],{'foreignKey':_0x23128f('0x74'),'as':_0x23128f('0x51')}),db[_0x23128f('0x1a5')][_0x23128f('0x27')](db[_0x23128f('0x9a')],{'foreignKey':_0x23128f('0x162'),'as':_0x23128f('0x1ca')}),db[_0x23128f('0x1a5')]['belongsTo'](db['User'],{'foreignKey':_0x23128f('0xd2'),'as':_0x23128f('0x200')}),db[_0x23128f('0x1a5')][_0x23128f('0x27')](db[_0x23128f('0x1c1')],{'foreignKey':_0x23128f('0x158'),'as':_0x23128f('0x23')}),db[_0x23128f('0x9a')]['belongsToMany'](db[_0x23128f('0x1c1')],{'as':_0x23128f('0x96'),'through':_0x23128f('0x94'),'foreignKey':_0x23128f('0xc5')}),db[_0x23128f('0x9a')][_0x23128f('0xeb')](db[_0x23128f('0x177')],{'through':_0x23128f('0xe2'),'as':_0x23128f('0x6b')}),module[_0x23128f('0x183')]={'db':db,'dbH':dbH}; \ No newline at end of file +const a1184_0x1a22=['-FOUND_ROWS','username','jstz','exports','mysqlDatabase','-LOCAL_FILES','sequelize','utf8_general_ci','options','dialectOptions','LOCAL_FILES','info','lodash','db-query','../config/logger','../config/config.service','sequelizeHistory','database','mysql','determine','defaultsDeep','dbHost','mysqlPassword','utf8','password'];(function(_0x2e4e62,_0x1366ae){const _0x1a22db=function(_0x5bcd67){while(--_0x5bcd67){_0x2e4e62['push'](_0x2e4e62['shift']());}};_0x1a22db(++_0x1366ae);}(a1184_0x1a22,0xee));const a1184_0x5bcd=function(_0x2e4e62,_0x1366ae){_0x2e4e62=_0x2e4e62-0x12d;let _0x1a22db=a1184_0x1a22[_0x2e4e62];return _0x1a22db;};const a1184_0x42a4b0=a1184_0x5bcd;'use strict';const config=require('../config/environment'),cs=require(a1184_0x42a4b0(0x12f))['getConfigService'](),{Sequelize}=require('sequelize'),logger=require(a1184_0x42a4b0(0x12e)),_=require(a1184_0x42a4b0(0x145)),jstz=require(a1184_0x42a4b0(0x13b)),timezone=jstz[a1184_0x42a4b0(0x133)](),queryLogger=logger(a1184_0x42a4b0(0x12d)),{initializeAllModels}=require('./sequelize-initialization'),DEFAULTS={'database':cs[a1184_0x42a4b0(0x13d)],'username':cs['mysqlUser'],'password':cs[a1184_0x42a4b0(0x136)],'options':{'host':cs[a1184_0x42a4b0(0x135)],'port':cs['dbPort'],'dialect':a1184_0x42a4b0(0x132),'dialectOptions':{'charset':'utf8mb4'},'logging':cs['isProduction']?![]:_0x14f588=>queryLogger[a1184_0x42a4b0(0x144)](_0x14f588),'timezone':timezone['name'](),'define':{'charset':a1184_0x42a4b0(0x137),'collate':a1184_0x42a4b0(0x140)}}};config[a1184_0x42a4b0(0x13f)]=_['defaultsDeep'](config[a1184_0x42a4b0(0x13f)],DEFAULTS),config[a1184_0x42a4b0(0x130)]=_[a1184_0x42a4b0(0x134)](config[a1184_0x42a4b0(0x130)],DEFAULTS);const db=initializeAllModels({'sequelize':new Sequelize(config[a1184_0x42a4b0(0x13f)][a1184_0x42a4b0(0x131)],config['sequelize'][a1184_0x42a4b0(0x13a)],config[a1184_0x42a4b0(0x13f)][a1184_0x42a4b0(0x138)],{...config[a1184_0x42a4b0(0x13f)][a1184_0x42a4b0(0x141)],'dialectOptions':{...config[a1184_0x42a4b0(0x13f)]['options'][a1184_0x42a4b0(0x142)],'flags':['-FOUND_ROWS',a1184_0x42a4b0(0x143)]}})}),dbH={'sequelize':new Sequelize(config[a1184_0x42a4b0(0x130)][a1184_0x42a4b0(0x131)],config[a1184_0x42a4b0(0x130)][a1184_0x42a4b0(0x13a)],config[a1184_0x42a4b0(0x130)]['password'],{...config[a1184_0x42a4b0(0x130)][a1184_0x42a4b0(0x141)],'dialectOptions':{...config[a1184_0x42a4b0(0x130)][a1184_0x42a4b0(0x141)][a1184_0x42a4b0(0x142)],'flags':[a1184_0x42a4b0(0x139),a1184_0x42a4b0(0x13e)]}})};module['exports']['db']=db,module[a1184_0x42a4b0(0x13c)]['dbH']=dbH; \ No newline at end of file diff --git a/server/mysqldb/infile-stream-factory.js b/server/mysqldb/infile-stream-factory.js index 449f7a3..41742cd 100644 --- a/server/mysqldb/infile-stream-factory.js +++ b/server/mysqldb/infile-stream-factory.js @@ -1 +1 @@ -const a1022_0x5636=['includes','dirname','exports','files','join','createReadStream','_read','resolve','end','root','../config/environment','path'];(function(_0x1ccbb7,_0x5636fa){const _0x3f3ce0=function(_0x473540){while(--_0x473540){_0x1ccbb7['push'](_0x1ccbb7['shift']());}};_0x3f3ce0(++_0x5636fa);}(a1022_0x5636,0x97));const a1022_0x3f3c=function(_0x1ccbb7,_0x5636fa){_0x1ccbb7=_0x1ccbb7-0x0;let _0x3f3ce0=a1022_0x5636[_0x1ccbb7];return _0x3f3ce0;};const _0x333e51=a1022_0x3f3c,fs=require('fs'),path=require(_0x333e51('0x4')),config=require(_0x333e51('0x3')),{Readable}=require('stream');class EmptyStream extends Readable{[_0x333e51('0xb')](){const _0x4bd1b0=_0x333e51;this['emit'](_0x4bd1b0('0x1'));}}const ALLOWED_FOLDERS=[path[_0x333e51('0x9')](config[_0x333e51('0x2')],_0x333e51('0x8'),'tmp')];function infileStreamFactory(_0x473540){const _0x453bc8=_0x333e51;return ALLOWED_FOLDERS[_0x453bc8('0x5')](path[_0x453bc8('0x0')](path[_0x453bc8('0x6')](_0x473540)))?fs[_0x453bc8('0xa')](path[_0x453bc8('0x0')](_0x473540)):new EmptyStream();}module[_0x333e51('0x7')]={'infileStreamFactory':infileStreamFactory}; \ No newline at end of file +const a1185_0x4e03=['stream','join','path','_read','resolve','files','tmp','infileStreamFactory','end','dirname','../config/environment','exports','createReadStream','emit'];(function(_0x285684,_0x1e7541){const _0x4e032a=function(_0x2908fc){while(--_0x2908fc){_0x285684['push'](_0x285684['shift']());}};_0x4e032a(++_0x1e7541);}(a1185_0x4e03,0x121));const a1185_0x2908=function(_0x285684,_0x1e7541){_0x285684=_0x285684-0x1a1;let _0x4e032a=a1185_0x4e03[_0x285684];return _0x4e032a;};const a1185_0x286c35=a1185_0x2908,fs=require('fs'),path=require(a1185_0x286c35(0x1a8)),config=require(a1185_0x286c35(0x1a2)),{Readable}=require(a1185_0x286c35(0x1a6));class EmptyStream extends Readable{[a1185_0x286c35(0x1a9)](){const _0x12c407=a1185_0x286c35;this[_0x12c407(0x1a5)](_0x12c407(0x1ae));}}const ALLOWED_FOLDERS=[path[a1185_0x286c35(0x1a7)](config['root'],a1185_0x286c35(0x1ab),a1185_0x286c35(0x1ac))];function infileStreamFactory(_0x58a75e){const _0x4f569f=a1185_0x286c35;return ALLOWED_FOLDERS['includes'](path[_0x4f569f(0x1aa)](path[_0x4f569f(0x1a1)](_0x58a75e)))?fs[_0x4f569f(0x1a4)](path[_0x4f569f(0x1aa)](_0x58a75e)):new EmptyStream();}module[a1185_0x286c35(0x1a3)][a1185_0x286c35(0x1ad)]=infileStreamFactory; \ No newline at end of file diff --git a/server/mysqldb/sequelize-initialization.js b/server/mysqldb/sequelize-initialization.js new file mode 100644 index 0000000..c61f704 --- /dev/null +++ b/server/mysqldb/sequelize-initialization.js @@ -0,0 +1 @@ +const a1186_0x5b45=['../api/whatsappTransferReport/whatsappTransferReport.model','TriggerId','ChatInteractionId','AgentReports','UserMailQueue','../api/condition/condition.model','Hoppers','ReportAgentPreview','ChatTransferReport','WhatsappQueue','../api/intServicenowAccount/intServicenowAccount.model','AnalyticCustomReport','TagId','Tag','chat_interaction_has_tags','../api/dashboardItem/dashboardItem.model','TemplateId','ToWhatsappAccountId','UserSmsInteractions','MailAccounts','ServicenowAccount','Agent','CmHopperFinal','team_has_voice_queues','AccountId','../api/userOpenchannelQueue/userOpenchannelQueue.model','VoicePrefix','../api/mailApplication/mailApplication.model','UserOpenchannelQueue','MailQueueReport','DeskConfiguration','MailApplication','ChatProactiveAction','AnalyticFieldReport','WhatsappInteraction','user_has_voice_prefixes','../api/intZohoConfiguration/intZohoConfiguration.model','VtigerField','WhatsappQueues','../api/faxTransferReport/faxTransferReport.model','../api/voiceTransferReport/voiceTransferReport.model','VoiceMailMessage','CustomReportId','user_has_whatsapp_interactions','HopperBlacks','../api/cmHopper/cmHopper.model','TrunkBackupId','Contact','Notification','ProactiveActions','mailbox','UserProfileSections','../api/attachment/attachment.model','../api/voiceDialReport/voiceDialReport.model','Extensions','voice_queues_has_cm_lists','../api/team/team.model','../api/cmCompany/cmCompany.model','OpenchannelAccounts','ChatQueue','CmList','Sound','restrict','belongsToMany','../api/network/network.model','user_has_chat_websites','../api/smsApplication/smsApplication.model','../api/trunk/trunk.model','Recordings','ChatMessage','OpenchannelQueue','VoicePrefixes','../api/intDynamics365Account/intDynamics365Account.model','VoiceAgentReport','../api/squareRecording/squareRecording.model','../api/userMailQueue/userMailQueue.model','../api/intDeskConfiguration/intDeskConfiguration.model','ChatOfflineMessage','CustomFields','user_has_mail_interactions','../api/voiceQueue/voiceQueue.model','VtigerAccount','../api/intSalesforceAccount/intSalesforceAccount.model','../api/cdr/cdr.model','Automation','cm_user_has_contacts','team_has_fax_queues','Disposition','Team','UserChatInteractions','ToFaxAccountId','CampaignId','SmsQueues','../api/cannedAnswer/cannedAnswer.model','../api/trigger/trigger.model','JscriptyAnswerReport','JscriptyQuestionReport','../api/userSmsQueue/userSmsQueue.model','SquareProjectId','SmsInteraction','UserProfileResource','int_freshdesk_configuration_has_tags','MailAccount','OpenchannelQueueReport','UserChatQueue','cascade','VoiceQueuesRt','FaxApplication','ServicenowConfiguration','belongsTo','WhatsappInteractionId','QueueCalls','FaxInteractionId','../api/chatMessage/chatMessage.model','Campaign','Description','Notifications','MailInteractionId','FaxAccount','VoiceChanSpy','SpiedAgents','AnyCondition','CannedAnswer','CmCustomField','team_has_chat_queues','user_has_mail_accounts','../api/jscriptySessionReport/jscriptySessionReport.model','../api/voiceExtension/voiceExtension.model','../api/mailQueueReport/mailQueueReport.model','IntervalId','../api/userProfile/userProfile.model','../api/intFreshdeskAccount/intFreshdeskAccount.model','WhatsappAccountId','AnalyticMetric','../api/disposition/disposition.model','../api/voiceRecording/voiceRecording.model','Condition','../api/whatsappAccount/whatsappAccount.model','ToOpenchannelQueueId','../api/cmHopperFinal/cmHopperFinal.model','../api/smsQueueReport/smsQueueReport.model','OpenchannelMessage','../api/intSugarcrmAccount/intSugarcrmAccount.model','../api/userWhatsappQueue/userWhatsappQueue.model','Mohs','../api/faxAccount/faxAccount.model','chat_group_has_users','SmsTransferReport','../api/chatApplication/chatApplication.model','FaxInteractions','../api/action/action.model','SalesforceConfiguration','UserVoiceQueue','FaxMessage','Exntensions','Subjects','ChatInteraction','FaxQueueReport','../api/smsTransferReport/smsTransferReport.model','Items','WhatsappInteractions','Descriptions','FromId','Lists','../api/plugin/plugin.model','FreshdeskConfiguration','user_has_openchannel_interactions','CmHopperHistory','ToMailQueueId','MailQueue','Queue','VoiceCallReport','DefaultReportId','../api/reportAgentPreview/reportAgentPreview.model','JscriptyProject','Answers','MailInteractions','../api/smsInteraction/smsInteraction.model','../api/squareReport/squareReport.model','../api/mailServerIn/mailServerIn.model','OpenchannelTransferReport','team_has_openchannel_queues','../api/userVoiceQueueRt/userVoiceQueueRt.model','HopperHistories','ToSmsAccountId','../api/openchannelAccount/openchannelAccount.model','team_has_sms_queues','Dynamics365Configuration','../api/whatsappMessage/whatsappMessage.model','../api/intZendeskConfiguration/intZendeskConfiguration.model','VoiceQueues','UserId','WhatsappAccount','Tags','UserProfileSection','SmsMessage','ServicenowField','user_has_fax_interactions','../api/intZendeskField/intZendeskField.model','WhatsappTransferReport','SenderId','OpenchannelInteraction','../api/chatGroup/chatGroup.model','../api/voiceMail/voiceMail.model','JscriptySessionReport','Contacts','SugarcrmField','../api/intSugarcrmConfiguration/intSugarcrmConfiguration.model','../api/intVtigerAccount/intVtigerAccount.model','WhatsappQueueReport','../api/intZendeskAccount/intZendeskAccount.model','FaxTransferReport','../api/openchannelQueue/openchannelQueue.model','../api/squareMessage/squareMessage.model','ToAgent','OpenchannelInteractionId','ZohoField','FromSmsAccountId','SmsAccount','user_has_teams','MailAccountId','CmHopperBlack','Attachment','../api/jscriptyAnswerReport/jscriptyAnswerReport.model','FaxApplications','TrunkBackup','Dynamics365Account','team_has_mail_queues','Agents','../api/squareProject/squareProject.model','CmCompany','FaxQueue','FromChatWebsiteId','../api/analyticExtractedReport/analyticExtractedReport.model','Owner','CompanyId','../api/mailMessage/mailMessage.model','Variable','../api/whatsappQueueReport/whatsappQueueReport.model','../api/openchannelMessage/openchannelMessage.model','Account','../api/voiceCallReport/voiceCallReport.model','ZendeskField','campaigns_has_cm_blacklists','../api/voiceMailMessage/voiceMailMessage.model','FromUserId','openchannel_interaction_has_tags','SugarcrmConfiguration','OpenchannelInteractions','../api/integration/integration.model','user_has_sms_interactions','Actions','ToFaxQueueId','hasOne','SmsApplications','Teams','sms_interaction_has_tags','FaxAccountId','user_has_openchannel_accounts','../api/whatsappInteraction/whatsappInteraction.model','MailTransferReport','ContactId','DescriptionId','Company','../api/userProfileResource/userProfileResource.model','UserSmsQueue','SalesforceField','ChatApplications','Template','ChatWebsites','../api/cmHopperHistory/cmHopperHistory.model','ChatInternalMessage','HopperHistory','VoiceQueue','MailServerOut','ChatInteractions','mandatoryDispositionPause','../api/license/license.model','UserVoiceQueueRt','ThroughTags','cm_user_has_lists','../api/whatsappQueue/whatsappQueue.model','cm_contact_has_tags','ChatWebsiteId','../api/mailQueue/mailQueue.model','HopperFinals','ToId','../api/voiceMusicOnHold/voiceMusicOnHold.model','FieldId','../api/voicePrefix/voicePrefix.model','JscriptySessions','AutomationAllId','Interactions','initializeAllModels','Interval','UserFaxQueue','ChanSpyId','ZohoConfiguration','../api/tag/tag.model','mandatoryDispositionPauseId','user_has_square_projects','user_has_whatsapp_accounts','ZendeskAccount','../api/intDeskField/intDeskField.model','Users','../api/faxQueueReport/faxQueueReport.model','../api/setting/setting.model','../api/dashboard/dashboard.model','WhatsappAccounts','../api/screenRecording/screenRecording.model','UserWhatsappQueue','../api/intServicenowConfiguration/intServicenowConfiguration.model','../api/intFreshdeskField/intFreshdeskField.model','ZohoAccount','FreshdeskField','FaxAccounts','OpenchannelAccountId','../api/whatsappApplication/whatsappApplication.model','../api/squareReportDetail/squareReportDetail.model','ToMailAccountId','Messages','voice_queues_has_cm_blacklists','AllCondition','Trigger','userProfileId','SalesforceAccount','../api/intDynamics365Configuration/intDynamics365Configuration.model','MailServerIn','../api/variable/variable.model','DeskField','ToQueue','FreshsalesConfiguration','fax_interaction_has_tags','../api/template/template.model','../api/memberReport/memberReport.model','../api/mailServerOut/mailServerOut.model','Interaction','SugarcrmAccount','DeskAccount','MailInteraction','SmsQueue','../api/mailSubstatus/mailSubstatus.model','ZendeskConfiguration','SmsQueueReport','../api/analyticFieldReport/analyticFieldReport.model','user_has_fax_accounts','User','SmsInteractions','../api/campaign/campaign.model','OpenchannelAccount','UserFaxInteractions','ListId','VoiceRecording','../api/faxMessage/faxMessage.model','MailMessage','VoiceMail','../api/intZohoAccount/intZohoAccount.model','exports','SmsQueueId','OpenchannelQueueId','Dynamics365Field','int_zendesk_configuration_has_tags','sectionId','mail_interaction_has_tags','VariableId','SmsAccountId','ChatQueueReport','Resources','Queues','Field','../api/openchannelTransferReport/openchannelTransferReport.model','../api/userFaxQueue/userFaxQueue.model','CmContact','WhatsappApplication','whatsapp_interaction_has_tags','OneAll','../api/faxInteraction/faxInteraction.model','SmsApplication','int_desk_configuration_has_tags','CmHopper','OpenchannelApplication','BlackLists','SubjectId','ProjectId','../api/analyticCustomReport/analyticCustomReport.model','ChatGroupId','AllConditions','AutomationId','mailboxuser','OpenchannelQueues','../api/intDynamics365Field/intDynamics365Field.model','../api/intVtigerField/intVtigerField.model','../api/analyticTreeReport/analyticTreeReport.model','sequelize','ChatApplication','../api/intZohoField/intZohoField.model','FromAgent','../api/chatTransferReport/chatTransferReport.model','../api/voiceQueueReport/voiceQueueReport.model','VoiceQueueId','Schedule','ChatGroup','../api/intSalesforceField/intSalesforceField.model','user_has_sms_accounts','AutomationAnyId','campaigns_has_cm_lists','../api/cmList/cmList.model','Configurations','../api/chatProactiveAction/chatProactiveAction.model','Dashboard','VtigerConfiguration','FreshsalesField','UserProfile','../api/openchannelQueueReport/openchannelQueueReport.model','Applications','../api/sound/sound.model','ChatQueues','FaxInteraction','SessionId','uniqueid','FreshdeskAccount','ToAccount','Trunk','../api/chatWebsite/chatWebsite.model','hasMany','VoiceExtension','SquareProjects','ToUserId','Fields','TriggerAllId','FromMailAccountId','../api/analyticDefaultReport/analyticDefaultReport.model','FromOpenchannelAccountId','../api/intVtigerConfiguration/intVtigerConfiguration.model','ChatWebsite','TrunkId','List','../api/mailAccount/mailAccount.model','SmsInteractionId','AnalyticDefaultReport','../api/userChatQueue/userChatQueue.model','../api/intDeskAccount/intDeskAccount.model','user_has_chat_interactions','SquareProject','Members','ScreenRecording','FromAccount','Pause','AttachmentId','Action','Subject','../api/migration/migration.model','WhatsappMessage','Dispositions','team_has_whatsapp_queues','Smtp','FaxQueues'];(function(_0x28bebd,_0x432e54){const _0x5b4511=function(_0x210372){while(--_0x210372){_0x28bebd['push'](_0x28bebd['shift']());}};_0x5b4511(++_0x432e54);}(a1186_0x5b45,0x109));const a1186_0x2103=function(_0x28bebd,_0x432e54){_0x28bebd=_0x28bebd-0x16f;let _0x5b4511=a1186_0x5b45[_0x28bebd];return _0x5b4511;};const a1186_0x354745=a1186_0x2103;'use strict';const {init:initUser}=require('../api/user/user.model'),{init:initVoiceChanSpy}=require('../api/voiceChanSpy/voiceChanSpy.model'),{init:initVoiceContext}=require('../api/voiceContext/voiceContext.model'),{init:initVoiceExtension}=require(a1186_0x354745(0x2ae)),{init:initVoiceMusicOnHold}=require(a1186_0x354745(0x185)),{init:initVoiceQueue}=require(a1186_0x354745(0x27f)),{init:initVoiceRecording}=require(a1186_0x354745(0x2b6)),{init:initScreenRecording}=require(a1186_0x354745(0x19b)),{init:initVoiceMail}=require(a1186_0x354745(0x2fa)),{init:initVoiceMailMessage}=require(a1186_0x354745(0x323)),{init:initVoiceCallReport}=require(a1186_0x354745(0x320)),{init:initVoiceDialReport}=require(a1186_0x354745(0x264)),{init:initVoiceAgentReport}=require('../api/voiceAgentReport/voiceAgentReport.model'),{init:initVoiceQueueReport}=require(a1186_0x354745(0x1f4)),{init:initMemberReport}=require(a1186_0x354745(0x1b4)),{init:initTrunk}=require(a1186_0x354745(0x272)),{init:initVoiceTransferReport}=require(a1186_0x354745(0x257)),{init:initUserVoiceQueueRt}=require(a1186_0x354745(0x2e5)),{init:initUserVoiceQueue}=require('../api/userVoiceQueue/userVoiceQueue.model'),{init:initUserChatQueue}=require(a1186_0x354745(0x21e)),{init:initUserMailQueue}=require(a1186_0x354745(0x27a)),{init:initUserFaxQueue}=require(a1186_0x354745(0x1d9)),{init:initUserSmsQueue}=require(a1186_0x354745(0x290)),{init:initUserOpenchannelQueue}=require(a1186_0x354745(0x248)),{init:initUserWhatsappQueue}=require(a1186_0x354745(0x2be)),{init:initMailServerIn}=require(a1186_0x354745(0x2e2)),{init:initMailServerOut}=require(a1186_0x354745(0x1b5)),{init:initMailAccount}=require(a1186_0x354745(0x21b)),{init:initMailQueue}=require(a1186_0x354745(0x182)),{init:initMailSubstatus}=require(a1186_0x354745(0x1bb)),{init:initMailInteraction}=require('../api/mailInteraction/mailInteraction.model'),{init:initMailMessage}=require(a1186_0x354745(0x31b)),{init:initMailApplication}=require(a1186_0x354745(0x24a)),{init:initMailQueueReport}=require(a1186_0x354745(0x2af)),{init:initDashboard}=require(a1186_0x354745(0x199)),{init:initDashboardItem}=require(a1186_0x354745(0x23e)),{init:initFaxAccount}=require(a1186_0x354745(0x2c0)),{init:initFaxApplication}=require('../api/faxApplication/faxApplication.model'),{init:initFaxInteraction}=require(a1186_0x354745(0x1de)),{init:initFaxMessage}=require(a1186_0x354745(0x1c7)),{init:initFaxQueue}=require('../api/faxQueue/faxQueue.model'),{init:initFaxQueueReport}=require(a1186_0x354745(0x197)),{init:initSmsAccount}=require('../api/smsAccount/smsAccount.model'),{init:initSmsApplication}=require(a1186_0x354745(0x271)),{init:initSmsInteraction}=require(a1186_0x354745(0x2e0)),{init:initSmsMessage}=require('../api/smsMessage/smsMessage.model'),{init:initSmsQueue}=require('../api/smsQueue/smsQueue.model'),{init:initOpenchannelAccount}=require(a1186_0x354745(0x2e8)),{init:initOpenchannelApplication}=require('../api/openchannelApplication/openchannelApplication.model'),{init:initOpenchannelInteraction}=require('../api/openchannelInteraction/openchannelInteraction.model'),{init:initOpenchannelMessage}=require(a1186_0x354745(0x31e)),{init:initOpenchannelQueue}=require(a1186_0x354745(0x303)),{init:initChatWebsite}=require(a1186_0x354745(0x20d)),{init:initOpenchannelQueueReport}=require(a1186_0x354745(0x203)),{init:initChatApplication}=require(a1186_0x354745(0x2c3)),{init:initChatInteraction}=require('../api/chatInteraction/chatInteraction.model'),{init:initChatMessage}=require(a1186_0x354745(0x2a0)),{init:initChatOfflineMessage}=require('../api/chatOfflineMessage/chatOfflineMessage.model'),{init:initChatQueue}=require('../api/chatQueue/chatQueue.model'),{init:initChatGroup}=require(a1186_0x354745(0x2f9)),{init:initChatProactiveAction}=require(a1186_0x354745(0x1fe)),{init:initCmCompany}=require(a1186_0x354745(0x268)),{init:initCmContact}=require('../api/cmContact/cmContact.model'),{init:initCmHopper}=require(a1186_0x354745(0x25c)),{init:initCmHopperBlack}=require('../api/cmHopperBlack/cmHopperBlack.model'),{init:initCmHopperFinal}=require(a1186_0x354745(0x2ba)),{init:initCmHopperHistory}=require(a1186_0x354745(0x174)),{init:initReportAgentPreview}=require(a1186_0x354745(0x2dc)),{init:initCmCustomField}=require('../api/cmCustomField/cmCustomField.model'),{init:initAction}=require(a1186_0x354745(0x2c5)),{init:initAutomation}=require('../api/automation/automation.model'),{init:initCannedAnswer}=require(a1186_0x354745(0x28c)),{init:initDisposition}=require(a1186_0x354745(0x2b5)),{init:initCondition}=require(a1186_0x354745(0x234)),{init:initInterval}=require('../api/interval/interval.model'),{init:initPause}=require('../api/pause/pause.model'),{init:initCdr}=require(a1186_0x354745(0x282)),{init:initVoiceQueuesLog}=require('../api/voiceQueuesLog/voiceQueuesLog.model'),{init:initSchedule}=require('../api/schedule/schedule.model'),{init:initSound}=require(a1186_0x354745(0x205)),{init:initTag}=require(a1186_0x354745(0x190)),{init:initTemplate}=require(a1186_0x354745(0x1b3)),{init:initTrigger}=require(a1186_0x354745(0x28d)),{init:initVariable}=require(a1186_0x354745(0x1ae)),{init:initIntegration}=require(a1186_0x354745(0x328)),{init:initIntegrationReport}=require('../api/integrationReport/integrationReport.model'),{init:initAnalyticCustomReport}=require(a1186_0x354745(0x1e6)),{init:initAnalyticDefaultReport}=require(a1186_0x354745(0x215)),{init:initAnalyticExtractedReport}=require(a1186_0x354745(0x318)),{init:initAnalyticMetric}=require('../api/analyticMetric/analyticMetric.model'),{init:initAnalyticFieldReport}=require(a1186_0x354745(0x1be)),{init:initAnalyticTreeReport}=require(a1186_0x354745(0x1ee)),{init:initSalesforceAccount}=require(a1186_0x354745(0x281)),{init:initSalesforceConfiguration}=require('../api/intSalesforceConfiguration/intSalesforceConfiguration.model'),{init:initSalesforceField}=require(a1186_0x354745(0x1f8)),{init:initSugarcrmAccount}=require(a1186_0x354745(0x2bd)),{init:initSugarcrmConfiguration}=require(a1186_0x354745(0x2fe)),{init:initSugarcrmField}=require('../api/intSugarcrmField/intSugarcrmField.model'),{init:initDeskAccount}=require(a1186_0x354745(0x21f)),{init:initDeskConfiguration}=require(a1186_0x354745(0x27b)),{init:initDeskField}=require(a1186_0x354745(0x195)),{init:initZohoAccount}=require(a1186_0x354745(0x1ca)),{init:initZohoConfiguration}=require(a1186_0x354745(0x253)),{init:initZohoField}=require(a1186_0x354745(0x1f1)),{init:initZendeskAccount}=require(a1186_0x354745(0x301)),{init:initZendeskConfiguration}=require(a1186_0x354745(0x2ec)),{init:initZendeskField}=require(a1186_0x354745(0x2f5)),{init:initFreshdeskAccount}=require(a1186_0x354745(0x2b2)),{init:initFreshdeskConfiguration}=require('../api/intFreshdeskConfiguration/intFreshdeskConfiguration.model'),{init:initFreshdeskField}=require(a1186_0x354745(0x19e)),{init:initVtigerAccount}=require(a1186_0x354745(0x2ff)),{init:initVtigerConfiguration}=require(a1186_0x354745(0x217)),{init:initVtigerField}=require(a1186_0x354745(0x1ed)),{init:initServicenowAccount}=require(a1186_0x354745(0x239)),{init:initServicenowConfiguration}=require(a1186_0x354745(0x19d)),{init:initServicenowField}=require('../api/intServicenowField/intServicenowField.model'),{init:initDynamics365Account}=require(a1186_0x354745(0x277)),{init:initDynamics365Configuration}=require(a1186_0x354745(0x1ac)),{init:initDynamics365Field}=require(a1186_0x354745(0x1ec)),{init:initFreshsalesAccount}=require('../api/intFreshsalesAccount/intFreshsalesAccount.model'),{init:initFreshsalesConfiguration}=require('../api/intFreshsalesConfiguration/intFreshsalesConfiguration.model'),{init:initFreshsalesField}=require('../api/intFreshsalesField/intFreshsalesField.model'),{init:initNetwork}=require(a1186_0x354745(0x26f)),{init:initChatQueueReport}=require('../api/chatQueueReport/chatQueueReport.model'),{init:initChatInternalMessage}=require('../api/chatInternalMessage/chatInternalMessage.model'),{init:initJscriptyAnswerReport}=require(a1186_0x354745(0x30e)),{init:initJscriptyQuestionReport}=require('../api/jscriptyQuestionReport/jscriptyQuestionReport.model'),{init:initJscriptySessionReport}=require(a1186_0x354745(0x2ad)),{init:initSmsQueueReport}=require(a1186_0x354745(0x2bb)),{init:initSquareReport}=require(a1186_0x354745(0x2e1)),{init:initSquareDetailsReport}=require(a1186_0x354745(0x1a4)),{init:initJscriptyProject}=require('../api/jscriptyProject/jscriptyProject.model'),{init:initSetting}=require(a1186_0x354745(0x198)),{init:initSquareOdbc}=require('../api/squareOdbc/squareOdbc.model'),{init:initSquareProject}=require(a1186_0x354745(0x314)),{init:initSquareRecording}=require(a1186_0x354745(0x279)),{init:initSquareMessage}=require(a1186_0x354745(0x304)),{init:initTeam}=require(a1186_0x354745(0x267)),{init:initLicense}=require(a1186_0x354745(0x17b)),{init:initCampaign}=require(a1186_0x354745(0x1c2)),{init:initMigration}=require(a1186_0x354745(0x229)),{init:initAttachment}=require(a1186_0x354745(0x263)),{init:initPlugin}=require(a1186_0x354745(0x2d3)),{init:initMailTransferReport}=require('../api/mailTransferReport/mailTransferReport.model'),{init:initChatTransferReport}=require(a1186_0x354745(0x1f3)),{init:initFaxTransferReport}=require(a1186_0x354745(0x256)),{init:initOpenchannelTransferReport}=require(a1186_0x354745(0x1d8)),{init:initSmsTransferReport}=require(a1186_0x354745(0x2cd)),{init:initCmList}=require(a1186_0x354745(0x1fc)),{init:initVoicePrefix}=require(a1186_0x354745(0x187)),{init:initUserProfile}=require(a1186_0x354745(0x2b1)),{init:initUserProfileSection}=require('../api/userProfileSection/userProfileSection.model'),{init:initUserProfileResource}=require(a1186_0x354745(0x337)),{init:initNotification}=require('../api/notification/notification.model'),{init:initWhatsappAccount}=require(a1186_0x354745(0x2b8)),{init:initWhatsappApplication}=require(a1186_0x354745(0x1a3)),{init:initWhatsappInteraction}=require(a1186_0x354745(0x332)),{init:initWhatsappMessage}=require(a1186_0x354745(0x2eb)),{init:initWhatsappQueueReport}=require(a1186_0x354745(0x31d)),{init:initWhatsappTransferReport}=require(a1186_0x354745(0x22f)),{init:initWhatsappQueue}=require(a1186_0x354745(0x17f)),{init:initCloudProvider}=require('../api/cloudProvider/cloudProvider.model');function initializeAllModels(_0x2006fe,_0x1b4b9c){const _0x5a923d=a1186_0x354745,_0x5d0423={'sequelize':_0x2006fe[_0x5a923d(0x1ef)],'User':initUser(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'VoiceChanSpy':initVoiceChanSpy(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'VoiceContext':initVoiceContext(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'VoiceExtension':initVoiceExtension(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'VoiceMusicOnHold':initVoiceMusicOnHold(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'VoiceQueue':initVoiceQueue(_0x2006fe['sequelize'],_0x1b4b9c),'VoiceRecording':initVoiceRecording(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'ScreenRecording':initScreenRecording(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'VoiceMail':initVoiceMail(_0x2006fe['sequelize'],_0x1b4b9c),'VoiceMailMessage':initVoiceMailMessage(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'VoiceCallReport':initVoiceCallReport(_0x2006fe['sequelize'],_0x1b4b9c),'VoiceDialReport':initVoiceDialReport(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'VoiceAgentReport':initVoiceAgentReport(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'VoiceQueueReport':initVoiceQueueReport(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'MemberReport':initMemberReport(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'Trunk':initTrunk(_0x2006fe['sequelize'],_0x1b4b9c),'VoiceTransferReport':initVoiceTransferReport(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'UserVoiceQueueRt':initUserVoiceQueueRt(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'UserVoiceQueue':initUserVoiceQueue(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'UserChatQueue':initUserChatQueue(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'UserMailQueue':initUserMailQueue(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'UserFaxQueue':initUserFaxQueue(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'UserSmsQueue':initUserSmsQueue(_0x2006fe['sequelize'],_0x1b4b9c),'UserOpenchannelQueue':initUserOpenchannelQueue(_0x2006fe['sequelize'],_0x1b4b9c),'UserWhatsappQueue':initUserWhatsappQueue(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'MailServerIn':initMailServerIn(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'MailServerOut':initMailServerOut(_0x2006fe['sequelize'],_0x1b4b9c),'MailAccount':initMailAccount(_0x2006fe['sequelize'],_0x1b4b9c),'MailQueue':initMailQueue(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'MailSubstatus':initMailSubstatus(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'MailInteraction':initMailInteraction(_0x2006fe['sequelize'],_0x1b4b9c),'MailMessage':initMailMessage(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'MailApplication':initMailApplication(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'MailQueueReport':initMailQueueReport(_0x2006fe['sequelize'],_0x1b4b9c),'Dashboard':initDashboard(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'DashboardItem':initDashboardItem(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'FaxAccount':initFaxAccount(_0x2006fe['sequelize'],_0x1b4b9c),'FaxApplication':initFaxApplication(_0x2006fe['sequelize'],_0x1b4b9c),'FaxInteraction':initFaxInteraction(_0x2006fe['sequelize'],_0x1b4b9c),'FaxMessage':initFaxMessage(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'FaxQueue':initFaxQueue(_0x2006fe['sequelize'],_0x1b4b9c),'FaxQueueReport':initFaxQueueReport(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'SmsAccount':initSmsAccount(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'SmsApplication':initSmsApplication(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'SmsInteraction':initSmsInteraction(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'SmsMessage':initSmsMessage(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'SmsQueue':initSmsQueue(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'OpenchannelAccount':initOpenchannelAccount(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'OpenchannelApplication':initOpenchannelApplication(_0x2006fe['sequelize'],_0x1b4b9c),'OpenchannelInteraction':initOpenchannelInteraction(_0x2006fe['sequelize'],_0x1b4b9c),'OpenchannelMessage':initOpenchannelMessage(_0x2006fe['sequelize'],_0x1b4b9c),'OpenchannelQueue':initOpenchannelQueue(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'ChatWebsite':initChatWebsite(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'OpenchannelQueueReport':initOpenchannelQueueReport(_0x2006fe['sequelize'],_0x1b4b9c),'ChatApplication':initChatApplication(_0x2006fe['sequelize'],_0x1b4b9c),'ChatInteraction':initChatInteraction(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'ChatMessage':initChatMessage(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'ChatOfflineMessage':initChatOfflineMessage(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'ChatQueue':initChatQueue(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'ChatGroup':initChatGroup(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'ChatProactiveAction':initChatProactiveAction(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'CmCompany':initCmCompany(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'CmContact':initCmContact(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'CmHopper':initCmHopper(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'CmHopperBlack':initCmHopperBlack(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'CmHopperFinal':initCmHopperFinal(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'CmHopperHistory':initCmHopperHistory(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'ReportAgentPreview':initReportAgentPreview(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'CmCustomField':initCmCustomField(_0x2006fe['sequelize'],_0x1b4b9c),'Action':initAction(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'Automation':initAutomation(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'CannedAnswer':initCannedAnswer(_0x2006fe['sequelize'],_0x1b4b9c),'Disposition':initDisposition(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'Condition':initCondition(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'Interval':initInterval(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'Pause':initPause(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'Cdr':initCdr(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'VoiceQueuesLog':initVoiceQueuesLog(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'Schedule':initSchedule(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'Sound':initSound(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'Tag':initTag(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'Template':initTemplate(_0x2006fe['sequelize'],_0x1b4b9c),'Trigger':initTrigger(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'Variable':initVariable(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'Integration':initIntegration(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'IntegrationReport':initIntegrationReport(_0x2006fe['sequelize'],_0x1b4b9c),'AnalyticCustomReport':initAnalyticCustomReport(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'AnalyticDefaultReport':initAnalyticDefaultReport(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'AnalyticExtractedReport':initAnalyticExtractedReport(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'AnalyticMetric':initAnalyticMetric(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'AnalyticFieldReport':initAnalyticFieldReport(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'AnalyticTreeReport':initAnalyticTreeReport(_0x2006fe['sequelize'],_0x1b4b9c),'SalesforceAccount':initSalesforceAccount(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'SalesforceConfiguration':initSalesforceConfiguration(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'SalesforceField':initSalesforceField(_0x2006fe['sequelize'],_0x1b4b9c),'SugarcrmAccount':initSugarcrmAccount(_0x2006fe['sequelize'],_0x1b4b9c),'SugarcrmConfiguration':initSugarcrmConfiguration(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'SugarcrmField':initSugarcrmField(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'DeskAccount':initDeskAccount(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'DeskConfiguration':initDeskConfiguration(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'DeskField':initDeskField(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'ZohoAccount':initZohoAccount(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'ZohoConfiguration':initZohoConfiguration(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'ZohoField':initZohoField(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'ZendeskAccount':initZendeskAccount(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'ZendeskConfiguration':initZendeskConfiguration(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'ZendeskField':initZendeskField(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'FreshdeskAccount':initFreshdeskAccount(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'FreshdeskConfiguration':initFreshdeskConfiguration(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'FreshdeskField':initFreshdeskField(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'VtigerAccount':initVtigerAccount(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'VtigerConfiguration':initVtigerConfiguration(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'VtigerField':initVtigerField(_0x2006fe['sequelize'],_0x1b4b9c),'ServicenowAccount':initServicenowAccount(_0x2006fe['sequelize'],_0x1b4b9c),'ServicenowConfiguration':initServicenowConfiguration(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'ServicenowField':initServicenowField(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'Dynamics365Account':initDynamics365Account(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'Dynamics365Configuration':initDynamics365Configuration(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'Dynamics365Field':initDynamics365Field(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'FreshsalesAccount':initFreshsalesAccount(_0x2006fe['sequelize'],_0x1b4b9c),'FreshsalesConfiguration':initFreshsalesConfiguration(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'FreshsalesField':initFreshsalesField(_0x2006fe['sequelize'],_0x1b4b9c),'Network':initNetwork(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'ChatQueueReport':initChatQueueReport(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'ChatInternalMessage':initChatInternalMessage(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'JscriptyAnswerReport':initJscriptyAnswerReport(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'JscriptyQuestionReport':initJscriptyQuestionReport(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'JscriptySessionReport':initJscriptySessionReport(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'SmsQueueReport':initSmsQueueReport(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'SquareReport':initSquareReport(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'SquareDetailsReport':initSquareDetailsReport(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'JscriptyProject':initJscriptyProject(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'Setting':initSetting(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'SquareOdbc':initSquareOdbc(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'SquareProject':initSquareProject(_0x2006fe['sequelize'],_0x1b4b9c),'SquareRecording':initSquareRecording(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'SquareMessage':initSquareMessage(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'Team':initTeam(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'License':initLicense(_0x2006fe['sequelize'],_0x1b4b9c),'Campaign':initCampaign(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'Migration':initMigration(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'Attachment':initAttachment(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'Plugin':initPlugin(_0x2006fe['sequelize'],_0x1b4b9c),'MailTransferReport':initMailTransferReport(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'ChatTransferReport':initChatTransferReport(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'FaxTransferReport':initFaxTransferReport(_0x2006fe['sequelize'],_0x1b4b9c),'OpenchannelTransferReport':initOpenchannelTransferReport(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'SmsTransferReport':initSmsTransferReport(_0x2006fe['sequelize'],_0x1b4b9c),'CmList':initCmList(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'VoicePrefix':initVoicePrefix(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'UserProfile':initUserProfile(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'UserProfileSection':initUserProfileSection(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'UserProfileResource':initUserProfileResource(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'Notification':initNotification(_0x2006fe['sequelize'],_0x1b4b9c),'WhatsappAccount':initWhatsappAccount(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'WhatsappApplication':initWhatsappApplication(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'WhatsappInteraction':initWhatsappInteraction(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'WhatsappMessage':initWhatsappMessage(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'WhatsappQueueReport':initWhatsappQueueReport(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'WhatsappTransferReport':initWhatsappTransferReport(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'WhatsappQueue':initWhatsappQueue(_0x2006fe[_0x5a923d(0x1ef)],_0x1b4b9c),'CloudProvider':initCloudProvider(_0x2006fe['sequelize'],_0x1b4b9c)};return _0x5d0423[_0x5a923d(0x1c0)][_0x5a923d(0x32c)](_0x5d0423[_0x5a923d(0x1c9)],{'as':_0x5a923d(0x1c9),'onDelete':_0x5a923d(0x298),'foreignKey':'UserId'}),_0x5d0423[_0x5a923d(0x1c0)][_0x5a923d(0x20e)](_0x5d0423['VoiceRecording'],{'as':_0x5a923d(0x273),'foreignKey':_0x5a923d(0x2ee)}),_0x5d0423['User'][_0x5a923d(0x20e)](_0x5d0423['UserVoiceQueueRt'],{'as':_0x5a923d(0x299),'foreignKey':_0x5a923d(0x2ee)}),_0x5d0423[_0x5a923d(0x1c0)]['hasMany'](_0x5d0423[_0x5a923d(0x20f)],{'as':'Extensions','onDelete':_0x5a923d(0x298),'hooks':!![]}),_0x5d0423['User']['hasMany'](_0x5d0423[_0x5a923d(0x245)],{'as':_0x5a923d(0x183),'foreignKey':'UserId'}),_0x5d0423['User'][_0x5a923d(0x20e)](_0x5d0423[_0x5a923d(0x2d6)],{'as':_0x5a923d(0x176),'foreignKey':'UserId'}),_0x5d0423['User']['hasMany'](_0x5d0423[_0x5a923d(0x236)],{'as':_0x5a923d(0x236),'foreignKey':_0x5a923d(0x2ee)}),_0x5d0423[_0x5a923d(0x1c0)][_0x5a923d(0x20e)](_0x5d0423[_0x5a923d(0x2f8)],{'as':_0x5a923d(0x327),'foreignKey':_0x5a923d(0x2ee)}),_0x5d0423[_0x5a923d(0x1c0)][_0x5a923d(0x20e)](_0x5d0423[_0x5a923d(0x2cb)],{'as':_0x5a923d(0x179),'foreignKey':_0x5a923d(0x2ee)}),_0x5d0423['User'][_0x5a923d(0x20e)](_0x5d0423[_0x5a923d(0x292)],{'as':'SmsInteractions','foreignKey':_0x5a923d(0x2ee)}),_0x5d0423[_0x5a923d(0x1c0)][_0x5a923d(0x20e)](_0x5d0423['FaxInteraction'],{'as':_0x5a923d(0x2c4),'foreignKey':_0x5a923d(0x2ee)}),_0x5d0423[_0x5a923d(0x1c0)][_0x5a923d(0x20e)](_0x5d0423[_0x5a923d(0x1b9)],{'as':_0x5a923d(0x2df),'foreignKey':_0x5a923d(0x2ee)}),_0x5d0423['User']['hasMany'](_0x5d0423[_0x5a923d(0x251)],{'as':_0x5a923d(0x2cf),'foreignKey':_0x5a923d(0x2ee)}),_0x5d0423[_0x5a923d(0x1c0)]['hasMany'](_0x5d0423[_0x5a923d(0x25f)],{'as':_0x5a923d(0x2a3),'foreignKey':_0x5a923d(0x2f7)}),_0x5d0423[_0x5a923d(0x1c0)]['belongsTo'](_0x5d0423[_0x5a923d(0x202)],{'as':_0x5a923d(0x202),'foreignKey':_0x5a923d(0x1aa)}),_0x5d0423[_0x5a923d(0x1c0)]['belongsToMany'](_0x5d0423[_0x5a923d(0x1f7)],{'as':'Groups','through':_0x5a923d(0x2c1)}),_0x5d0423[_0x5a923d(0x1c0)][_0x5a923d(0x26e)](_0x5d0423['CmContact'],{'as':'Contacts','through':_0x5a923d(0x284)}),_0x5d0423['User'][_0x5a923d(0x26e)](_0x5d0423[_0x5a923d(0x26b)],{'as':_0x5a923d(0x2d2),'through':'cm_user_has_lists'}),_0x5d0423[_0x5a923d(0x1c0)][_0x5a923d(0x26e)](_0x5d0423[_0x5a923d(0x287)],{'through':_0x5a923d(0x30a)}),_0x5d0423[_0x5a923d(0x1c0)]['belongsToMany'](_0x5d0423[_0x5a923d(0x1b9)],{'as':'UserMailInteractions','through':_0x5a923d(0x27e)}),_0x5d0423[_0x5a923d(0x1c0)][_0x5a923d(0x26e)](_0x5d0423[_0x5a923d(0x2cb)],{'as':_0x5a923d(0x288),'through':_0x5a923d(0x220)}),_0x5d0423[_0x5a923d(0x1c0)][_0x5a923d(0x26e)](_0x5d0423[_0x5a923d(0x207)],{'as':_0x5a923d(0x1c4),'through':_0x5a923d(0x2f4)}),_0x5d0423[_0x5a923d(0x1c0)]['belongsToMany'](_0x5d0423['SmsInteraction'],{'as':_0x5a923d(0x241),'through':_0x5a923d(0x329)}),_0x5d0423[_0x5a923d(0x1c0)][_0x5a923d(0x26e)](_0x5d0423['OpenchannelInteraction'],{'as':'UserOpenchannelInteractions','through':_0x5a923d(0x2d5)}),_0x5d0423[_0x5a923d(0x1c0)][_0x5a923d(0x26e)](_0x5d0423[_0x5a923d(0x251)],{'as':'UserWhatsappInteractions','through':_0x5a923d(0x25a)}),_0x5d0423[_0x5a923d(0x1c0)][_0x5a923d(0x26e)](_0x5d0423[_0x5a923d(0x177)],{'as':_0x5a923d(0x2ed),'through':'UserVoiceQueue'}),_0x5d0423[_0x5a923d(0x1c0)]['belongsToMany'](_0x5d0423[_0x5a923d(0x2d8)],{'as':'MailQueues','through':_0x5a923d(0x233)}),_0x5d0423[_0x5a923d(0x1c0)]['belongsToMany'](_0x5d0423[_0x5a923d(0x26a)],{'as':'ChatQueues','through':_0x5a923d(0x297),'hooks':!![]}),_0x5d0423['User'][_0x5a923d(0x26e)](_0x5d0423[_0x5a923d(0x316)],{'as':_0x5a923d(0x22e),'through':_0x5a923d(0x18d)}),_0x5d0423[_0x5a923d(0x1c0)][_0x5a923d(0x26e)](_0x5d0423[_0x5a923d(0x1ba)],{'as':_0x5a923d(0x28b),'through':_0x5a923d(0x16f)}),_0x5d0423['User']['belongsToMany'](_0x5d0423['OpenchannelQueue'],{'as':'OpenchannelQueues','through':_0x5a923d(0x24b)}),_0x5d0423[_0x5a923d(0x1c0)][_0x5a923d(0x26e)](_0x5d0423[_0x5a923d(0x238)],{'as':_0x5a923d(0x255),'through':_0x5a923d(0x19c)}),_0x5d0423['User'][_0x5a923d(0x26e)](_0x5d0423['CmList'],{'through':_0x5a923d(0x17e)}),_0x5d0423[_0x5a923d(0x1c0)]['belongsToMany'](_0x5d0423['VoicePrefix'],{'as':_0x5a923d(0x276),'through':_0x5a923d(0x252)}),_0x5d0423[_0x5a923d(0x1c0)][_0x5a923d(0x26e)](_0x5d0423[_0x5a923d(0x218)],{'as':_0x5a923d(0x173),'through':_0x5a923d(0x270)}),_0x5d0423['User']['belongsToMany'](_0x5d0423[_0x5a923d(0x2a5)],{'as':_0x5a923d(0x1a1),'through':'user_has_fax_accounts'}),_0x5d0423['User'][_0x5a923d(0x26e)](_0x5d0423[_0x5a923d(0x295)],{'as':_0x5a923d(0x242),'through':_0x5a923d(0x2ac)}),_0x5d0423[_0x5a923d(0x1c0)]['belongsToMany'](_0x5d0423['OpenchannelAccount'],{'as':_0x5a923d(0x269),'through':_0x5a923d(0x331)}),_0x5d0423[_0x5a923d(0x1c0)]['belongsToMany'](_0x5d0423['SmsAccount'],{'as':'SmsAccounts','through':_0x5a923d(0x1f9)}),_0x5d0423[_0x5a923d(0x1c0)][_0x5a923d(0x26e)](_0x5d0423[_0x5a923d(0x2ef)],{'as':_0x5a923d(0x19a),'through':_0x5a923d(0x193)}),_0x5d0423[_0x5a923d(0x1c0)][_0x5a923d(0x26e)](_0x5d0423['SquareProject'],{'as':_0x5a923d(0x210),'through':_0x5a923d(0x192)}),_0x5d0423[_0x5a923d(0x2a6)]['hasMany'](_0x5d0423[_0x5a923d(0x20f)],{'as':_0x5a923d(0x2a7),'onDelete':_0x5a923d(0x298),'foreignKey':_0x5a923d(0x18e)}),_0x5d0423['VoiceContext'][_0x5a923d(0x20e)](_0x5d0423[_0x5a923d(0x20f)],{'onDelete':_0x5a923d(0x298)}),_0x5d0423[_0x5a923d(0x20f)][_0x5a923d(0x20e)](_0x5d0423[_0x5a923d(0x20f)],{'as':_0x5a923d(0x204),'onDelete':_0x5a923d(0x298)}),_0x5d0423['VoiceMusicOnHold'][_0x5a923d(0x26e)](_0x5d0423[_0x5a923d(0x26c)],{'as':'Sounds','through':'moh_has_sounds'}),_0x5d0423[_0x5a923d(0x177)]['hasMany'](_0x5d0423[_0x5a923d(0x17c)],{'as':'Members','foreignKey':_0x5a923d(0x1f5)}),_0x5d0423[_0x5a923d(0x177)]['hasMany'](_0x5d0423[_0x5a923d(0x1e1)],{'as':_0x5a923d(0x235),'foreignKey':_0x5a923d(0x1f5)}),_0x5d0423[_0x5a923d(0x177)][_0x5a923d(0x20e)](_0x5d0423['CmHopperFinal'],{'as':_0x5a923d(0x183),'foreignKey':_0x5a923d(0x1f5)}),_0x5d0423['VoiceQueue']['hasMany'](_0x5d0423[_0x5a923d(0x2d6)],{'as':_0x5a923d(0x2e6),'foreignKey':_0x5a923d(0x1f5)}),_0x5d0423[_0x5a923d(0x177)][_0x5a923d(0x20e)](_0x5d0423[_0x5a923d(0x236)],{'as':_0x5a923d(0x236),'foreignKey':_0x5a923d(0x1f5)}),_0x5d0423['VoiceQueue'][_0x5a923d(0x20e)](_0x5d0423['CmHopperBlack'],{'as':_0x5a923d(0x25b),'foreignKey':'VoiceQueueId'}),_0x5d0423['VoiceQueue'][_0x5a923d(0x20e)](_0x5d0423['JscriptySessionReport'],{'as':_0x5a923d(0x188),'foreignKey':'VoiceQueueId'}),_0x5d0423[_0x5a923d(0x177)][_0x5a923d(0x29c)](_0x5d0423['Trunk'],{'as':'Trunk','foreignKey':_0x5a923d(0x219)}),_0x5d0423['VoiceQueue'][_0x5a923d(0x29c)](_0x5d0423['Trunk'],{'as':_0x5a923d(0x310),'foreignKey':'TrunkBackupId'}),_0x5d0423[_0x5a923d(0x177)][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x18c)],{'as':_0x5a923d(0x18c),'foreignKey':_0x5a923d(0x2b0)}),_0x5d0423[_0x5a923d(0x177)]['belongsTo'](_0x5d0423[_0x5a923d(0x225)],{'as':_0x5a923d(0x17a),'foreignKey':_0x5a923d(0x191)}),_0x5d0423[_0x5a923d(0x177)][_0x5a923d(0x26e)](_0x5d0423[_0x5a923d(0x26b)],{'as':'Lists','through':_0x5a923d(0x266)}),_0x5d0423[_0x5a923d(0x177)][_0x5a923d(0x26e)](_0x5d0423[_0x5a923d(0x1c0)],{'as':_0x5a923d(0x313),'through':_0x5a923d(0x2c7)}),_0x5d0423[_0x5a923d(0x177)][_0x5a923d(0x26e)](_0x5d0423['Team'],{'as':'Teams','through':_0x5a923d(0x246)}),_0x5d0423[_0x5a923d(0x177)]['belongsToMany'](_0x5d0423[_0x5a923d(0x26b)],{'as':'BlackLists','through':_0x5a923d(0x1a7)}),_0x5d0423[_0x5a923d(0x1c6)][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x1c0)],{'as':_0x5a923d(0x1c0),'foreignKey':_0x5a923d(0x2ee)}),_0x5d0423[_0x5a923d(0x223)][_0x5a923d(0x29c)](_0x5d0423['User'],{'as':_0x5a923d(0x1c0),'foreignKey':_0x5a923d(0x2ee)}),_0x5d0423[_0x5a923d(0x1c9)][_0x5a923d(0x20e)](_0x5d0423[_0x5a923d(0x258)],{'as':_0x5a923d(0x1a6),'onDelete':_0x5a923d(0x298),'foreignKey':_0x5a923d(0x1ea),'sourceKey':_0x5a923d(0x261)}),_0x5d0423[_0x5a923d(0x258)]['belongsTo'](_0x5d0423[_0x5a923d(0x1c9)],{'foreignKey':_0x5a923d(0x1ea),'targetKey':_0x5a923d(0x261)}),_0x5d0423['VoiceCallReport'][_0x5a923d(0x20e)](_0x5d0423['VoiceQueueReport'],{'as':_0x5a923d(0x29e),'foreignKey':_0x5a923d(0x209),'constraints':![]}),_0x5d0423[_0x5a923d(0x2da)]['hasMany'](_0x5d0423[_0x5a923d(0x278)],{'as':_0x5a923d(0x232),'foreignKey':_0x5a923d(0x209),'constraints':![]}),_0x5d0423[_0x5a923d(0x2da)][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x1c0)],{'as':_0x5a923d(0x1c0),'foreignKey':'UserId'}),_0x5d0423[_0x5a923d(0x2da)][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x1da)],{'as':_0x5a923d(0x25e),'foreignKey':_0x5a923d(0x334)}),_0x5d0423[_0x5a923d(0x1ad)][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x295)],{'as':_0x5a923d(0x295),'foreignKey':_0x5a923d(0x30b)}),_0x5d0423['MailServerOut'][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x295)],{'as':_0x5a923d(0x295),'foreignKey':_0x5a923d(0x30b)}),_0x5d0423[_0x5a923d(0x295)][_0x5a923d(0x32c)](_0x5d0423[_0x5a923d(0x1ad)],{'as':'Imap','onDelete':_0x5a923d(0x298)}),_0x5d0423[_0x5a923d(0x295)][_0x5a923d(0x32c)](_0x5d0423[_0x5a923d(0x178)],{'as':_0x5a923d(0x22d),'onDelete':_0x5a923d(0x298)}),_0x5d0423[_0x5a923d(0x295)][_0x5a923d(0x20e)](_0x5d0423['Disposition'],{'as':'Dispositions','foreignKey':'MailAccountId'}),_0x5d0423[_0x5a923d(0x295)]['hasMany'](_0x5d0423['CannedAnswer'],{'as':_0x5a923d(0x2de),'foreignKey':_0x5a923d(0x30b)}),_0x5d0423[_0x5a923d(0x295)]['hasMany'](_0x5d0423[_0x5a923d(0x1c8)],{'as':_0x5a923d(0x1a6),'foreignKey':_0x5a923d(0x30b)}),_0x5d0423[_0x5a923d(0x295)][_0x5a923d(0x20e)](_0x5d0423[_0x5a923d(0x1b9)],{'as':_0x5a923d(0x18a)}),_0x5d0423[_0x5a923d(0x295)]['hasMany'](_0x5d0423[_0x5a923d(0x24e)],{'as':_0x5a923d(0x204)}),_0x5d0423[_0x5a923d(0x295)][_0x5a923d(0x29c)](_0x5d0423['CmList'],{'as':_0x5a923d(0x21a),'foreignKey':_0x5a923d(0x1c5)}),_0x5d0423[_0x5a923d(0x295)][_0x5a923d(0x29c)](_0x5d0423['Template'],{'as':_0x5a923d(0x172),'foreignKey':_0x5a923d(0x23f)}),_0x5d0423[_0x5a923d(0x295)][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x225)],{'as':_0x5a923d(0x17a),'foreignKey':_0x5a923d(0x191)}),_0x5d0423['MailAccount'][_0x5a923d(0x26e)](_0x5d0423['User'],{'as':_0x5a923d(0x313),'through':'user_has_mail_accounts'}),_0x5d0423[_0x5a923d(0x2d8)][_0x5a923d(0x26e)](_0x5d0423[_0x5a923d(0x1c0)],{'as':_0x5a923d(0x313),'through':_0x5a923d(0x233)}),_0x5d0423['MailQueue'][_0x5a923d(0x26e)](_0x5d0423[_0x5a923d(0x287)],{'through':_0x5a923d(0x312),'as':_0x5a923d(0x32e)}),_0x5d0423[_0x5a923d(0x1b9)][_0x5a923d(0x20e)](_0x5d0423[_0x5a923d(0x1c8)],{'as':_0x5a923d(0x1a6),'onDelete':'cascade','foreignKey':_0x5a923d(0x2a4)}),_0x5d0423[_0x5a923d(0x1b9)]['belongsTo'](_0x5d0423[_0x5a923d(0x295)],{'as':_0x5a923d(0x31f),'foreignKey':_0x5a923d(0x30b)}),_0x5d0423[_0x5a923d(0x1b9)][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x1da)],{'as':_0x5a923d(0x25e),'foreignKey':_0x5a923d(0x334)}),_0x5d0423[_0x5a923d(0x1b9)][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x1c0)],{'as':_0x5a923d(0x319),'foreignKey':_0x5a923d(0x2ee)}),_0x5d0423[_0x5a923d(0x1b9)]['belongsToMany'](_0x5d0423[_0x5a923d(0x23c)],{'through':_0x5a923d(0x1d1),'as':'Tags'}),_0x5d0423['MailInteraction']['belongsToMany'](_0x5d0423[_0x5a923d(0x23c)],{'through':_0x5a923d(0x1d1),'as':_0x5a923d(0x17d)}),_0x5d0423[_0x5a923d(0x1b9)][_0x5a923d(0x26e)](_0x5d0423['User'],{'as':_0x5a923d(0x196),'through':_0x5a923d(0x27e),'foreignKey':'MailInteractionId'}),_0x5d0423[_0x5a923d(0x1c8)][_0x5a923d(0x20e)](_0x5d0423['Attachment'],{'as':'Attachments','onDelete':'cascade'}),_0x5d0423[_0x5a923d(0x1c8)]['belongsTo'](_0x5d0423[_0x5a923d(0x1c0)],{'as':_0x5a923d(0x1c0)}),_0x5d0423[_0x5a923d(0x1c8)][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x1da)],{'onDelete':_0x5a923d(0x298),'as':_0x5a923d(0x25e)}),_0x5d0423['MailMessage']['belongsTo'](_0x5d0423['MailInteraction'],{'as':_0x5a923d(0x1b6),'foreignKey':_0x5a923d(0x2a4)}),_0x5d0423[_0x5a923d(0x1c8)][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x295)],{'as':_0x5a923d(0x31f),'foreignKey':_0x5a923d(0x30b)}),_0x5d0423['MailApplication']['belongsTo'](_0x5d0423[_0x5a923d(0x1c0)],{'onDelete':_0x5a923d(0x26d)}),_0x5d0423[_0x5a923d(0x24e)][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x2d8)],{'onDelete':_0x5a923d(0x26d)}),_0x5d0423[_0x5a923d(0x24e)][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x295)],{'onDelete':_0x5a923d(0x26d)}),_0x5d0423[_0x5a923d(0x24e)]['belongsTo'](_0x5d0423[_0x5a923d(0x18c)],{'onDelete':_0x5a923d(0x26d),'foreignKey':_0x5a923d(0x2b0)}),_0x5d0423[_0x5a923d(0x24e)][_0x5a923d(0x29c)](_0x5d0423['Tag'],{'onDelete':_0x5a923d(0x26d),'foreignKey':_0x5a923d(0x23b)}),_0x5d0423[_0x5a923d(0x24c)]['belongsTo'](_0x5d0423[_0x5a923d(0x295)],{}),_0x5d0423[_0x5a923d(0x24c)][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x26b)],{'as':_0x5a923d(0x21a),'foreignKey':_0x5a923d(0x1c5)}),_0x5d0423['MailQueueReport'][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x1da)],{'as':'Contact','foreignKey':_0x5a923d(0x334)}),_0x5d0423[_0x5a923d(0x24c)]['belongsTo'](_0x5d0423[_0x5a923d(0x1b9)],{}),_0x5d0423[_0x5a923d(0x24c)][_0x5a923d(0x29c)](_0x5d0423['MailMessage'],{}),_0x5d0423['MailQueueReport'][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x1c0)],{}),_0x5d0423[_0x5a923d(0x24c)][_0x5a923d(0x29c)](_0x5d0423['MailQueue'],{}),_0x5d0423[_0x5a923d(0x1ff)][_0x5a923d(0x20e)](_0x5d0423['DashboardItem'],{'as':_0x5a923d(0x2ce),'onDelete':_0x5a923d(0x298)}),_0x5d0423[_0x5a923d(0x2a5)][_0x5a923d(0x20e)](_0x5d0423[_0x5a923d(0x286)],{'as':_0x5a923d(0x22b),'foreignKey':_0x5a923d(0x330)}),_0x5d0423['FaxAccount'][_0x5a923d(0x20e)](_0x5d0423['CannedAnswer'],{'as':_0x5a923d(0x2de),'foreignKey':_0x5a923d(0x330)}),_0x5d0423[_0x5a923d(0x2a5)][_0x5a923d(0x20e)](_0x5d0423[_0x5a923d(0x207)],{'as':'Interactions'}),_0x5d0423[_0x5a923d(0x2a5)][_0x5a923d(0x20e)](_0x5d0423['FaxApplication'],{'as':'Applications'}),_0x5d0423['FaxAccount']['hasMany'](_0x5d0423['VoiceExtension'],{'as':_0x5a923d(0x2c9),'onDelete':_0x5a923d(0x298)}),_0x5d0423[_0x5a923d(0x2a5)]['hasMany'](_0x5d0423['FaxMessage'],{'as':_0x5a923d(0x1a6)}),_0x5d0423[_0x5a923d(0x2a5)][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x20c)],{'as':'Trunk'}),_0x5d0423[_0x5a923d(0x2a5)][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x26b)],{'as':_0x5a923d(0x21a),'foreignKey':_0x5a923d(0x1c5)}),_0x5d0423['FaxAccount'][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x225)],{'as':_0x5a923d(0x17a),'foreignKey':'mandatoryDispositionPauseId'}),_0x5d0423[_0x5a923d(0x2a5)][_0x5a923d(0x26e)](_0x5d0423['User'],{'as':_0x5a923d(0x313),'through':_0x5a923d(0x1bf)}),_0x5d0423[_0x5a923d(0x29a)][_0x5a923d(0x29c)](_0x5d0423['User'],{'onDelete':_0x5a923d(0x26d)}),_0x5d0423[_0x5a923d(0x29a)][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x316)],{'onDelete':_0x5a923d(0x26d)}),_0x5d0423[_0x5a923d(0x29a)][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x2a5)],{'onDelete':_0x5a923d(0x26d)}),_0x5d0423[_0x5a923d(0x29a)][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x23c)],{'onDelete':'restrict','foreignKey':'TagId'}),_0x5d0423[_0x5a923d(0x207)][_0x5a923d(0x20e)](_0x5d0423['FaxMessage'],{'as':_0x5a923d(0x1a6),'onDelete':_0x5a923d(0x298),'foreignKey':'FaxInteractionId'}),_0x5d0423[_0x5a923d(0x207)]['belongsTo'](_0x5d0423['FaxAccount'],{'as':'Account','foreignKey':_0x5a923d(0x330)}),_0x5d0423[_0x5a923d(0x207)][_0x5a923d(0x29c)](_0x5d0423['CmContact'],{'as':'Contact','foreignKey':'ContactId'}),_0x5d0423[_0x5a923d(0x207)][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x1c0)],{'as':'Owner','foreignKey':_0x5a923d(0x2ee)}),_0x5d0423[_0x5a923d(0x207)][_0x5a923d(0x26e)](_0x5d0423[_0x5a923d(0x23c)],{'through':_0x5a923d(0x1b2),'as':_0x5a923d(0x2f0)}),_0x5d0423[_0x5a923d(0x207)][_0x5a923d(0x26e)](_0x5d0423[_0x5a923d(0x23c)],{'through':_0x5a923d(0x1b2),'as':_0x5a923d(0x17d)}),_0x5d0423['FaxInteraction'][_0x5a923d(0x26e)](_0x5d0423[_0x5a923d(0x1c0)],{'as':_0x5a923d(0x196),'through':_0x5a923d(0x2f4),'foreignKey':_0x5a923d(0x29f)}),_0x5d0423[_0x5a923d(0x2c8)][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x1c0)],{'onDelete':_0x5a923d(0x298),'as':_0x5a923d(0x1c0)}),_0x5d0423['FaxMessage']['belongsTo'](_0x5d0423[_0x5a923d(0x207)],{'as':_0x5a923d(0x1b6),'foreignKey':'FaxInteractionId'}),_0x5d0423[_0x5a923d(0x2c8)][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x1da)],{'onDelete':_0x5a923d(0x298),'as':_0x5a923d(0x25e)}),_0x5d0423[_0x5a923d(0x2c8)][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x30d)],{'as':_0x5a923d(0x30d),'foreignKey':_0x5a923d(0x226)}),_0x5d0423[_0x5a923d(0x2c8)]['belongsTo'](_0x5d0423[_0x5a923d(0x2a5)],{'as':'Account','foreignKey':'FaxAccountId'}),_0x5d0423[_0x5a923d(0x316)][_0x5a923d(0x26e)](_0x5d0423[_0x5a923d(0x1c0)],{'as':_0x5a923d(0x313),'through':_0x5a923d(0x18d)}),_0x5d0423[_0x5a923d(0x316)][_0x5a923d(0x26e)](_0x5d0423[_0x5a923d(0x287)],{'through':_0x5a923d(0x285),'as':_0x5a923d(0x32e)}),_0x5d0423['FaxQueueReport'][_0x5a923d(0x29c)](_0x5d0423['FaxAccount'],{}),_0x5d0423['FaxQueueReport']['belongsTo'](_0x5d0423[_0x5a923d(0x26b)],{'as':_0x5a923d(0x21a),'foreignKey':_0x5a923d(0x1c5)}),_0x5d0423[_0x5a923d(0x2cc)]['belongsTo'](_0x5d0423[_0x5a923d(0x1da)],{'as':'Contact','foreignKey':'ContactId'}),_0x5d0423[_0x5a923d(0x2cc)][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x207)],{}),_0x5d0423[_0x5a923d(0x2cc)][_0x5a923d(0x29c)](_0x5d0423['FaxMessage'],{}),_0x5d0423[_0x5a923d(0x2cc)][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x1c0)],{}),_0x5d0423[_0x5a923d(0x2cc)][_0x5a923d(0x29c)](_0x5d0423['FaxQueue'],{}),_0x5d0423['SmsAccount']['hasMany'](_0x5d0423['Disposition'],{'as':_0x5a923d(0x22b),'foreignKey':_0x5a923d(0x1d3)}),_0x5d0423[_0x5a923d(0x309)]['hasMany'](_0x5d0423[_0x5a923d(0x2a9)],{'as':_0x5a923d(0x2de),'foreignKey':_0x5a923d(0x1d3)}),_0x5d0423[_0x5a923d(0x309)][_0x5a923d(0x20e)](_0x5d0423['SmsMessage'],{'as':_0x5a923d(0x1a6),'foreignKey':_0x5a923d(0x1d3)}),_0x5d0423['SmsAccount']['hasMany'](_0x5d0423['SmsInteraction'],{'as':_0x5a923d(0x18a)}),_0x5d0423['SmsAccount'][_0x5a923d(0x20e)](_0x5d0423[_0x5a923d(0x1df)],{'as':_0x5a923d(0x204)}),_0x5d0423[_0x5a923d(0x309)][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x26b)],{'as':'List','foreignKey':_0x5a923d(0x1c5)}),_0x5d0423[_0x5a923d(0x309)][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x225)],{'as':_0x5a923d(0x17a),'foreignKey':_0x5a923d(0x191)}),_0x5d0423[_0x5a923d(0x309)][_0x5a923d(0x26e)](_0x5d0423['User'],{'as':'Agents','through':'user_has_sms_accounts'}),_0x5d0423[_0x5a923d(0x1df)][_0x5a923d(0x29c)](_0x5d0423['User'],{'onDelete':'restrict'}),_0x5d0423[_0x5a923d(0x1df)][_0x5a923d(0x29c)](_0x5d0423['SmsQueue'],{'onDelete':_0x5a923d(0x26d)}),_0x5d0423[_0x5a923d(0x1df)][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x309)],{'onDelete':_0x5a923d(0x26d)}),_0x5d0423['SmsApplication']['belongsTo'](_0x5d0423[_0x5a923d(0x18c)],{'onDelete':_0x5a923d(0x26d),'foreignKey':'IntervalId'}),_0x5d0423[_0x5a923d(0x1df)][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x23c)],{'onDelete':_0x5a923d(0x26d),'foreignKey':_0x5a923d(0x23b)}),_0x5d0423[_0x5a923d(0x292)][_0x5a923d(0x20e)](_0x5d0423['SmsMessage'],{'as':'Messages','onDelete':_0x5a923d(0x298),'foreignKey':'SmsInteractionId'}),_0x5d0423[_0x5a923d(0x292)][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x309)],{'as':_0x5a923d(0x31f),'foreignKey':_0x5a923d(0x1d3)}),_0x5d0423['SmsInteraction']['belongsTo'](_0x5d0423[_0x5a923d(0x1da)],{'as':_0x5a923d(0x25e),'foreignKey':_0x5a923d(0x334)}),_0x5d0423[_0x5a923d(0x292)]['belongsTo'](_0x5d0423[_0x5a923d(0x1c0)],{'as':_0x5a923d(0x319),'foreignKey':_0x5a923d(0x2ee)}),_0x5d0423[_0x5a923d(0x292)][_0x5a923d(0x26e)](_0x5d0423[_0x5a923d(0x23c)],{'through':_0x5a923d(0x32f),'as':'Tags'}),_0x5d0423[_0x5a923d(0x292)][_0x5a923d(0x26e)](_0x5d0423[_0x5a923d(0x23c)],{'through':_0x5a923d(0x32f),'as':_0x5a923d(0x17d)}),_0x5d0423[_0x5a923d(0x292)][_0x5a923d(0x26e)](_0x5d0423['User'],{'as':_0x5a923d(0x196),'through':'user_has_sms_interactions','foreignKey':'SmsInteractionId'}),_0x5d0423[_0x5a923d(0x2f2)]['belongsTo'](_0x5d0423[_0x5a923d(0x1c0)],{'as':_0x5a923d(0x1c0)}),_0x5d0423[_0x5a923d(0x2f2)][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x1da)],{'onDelete':_0x5a923d(0x298),'as':'Contact'}),_0x5d0423['SmsMessage'][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x292)],{'onDelete':_0x5a923d(0x298),'as':_0x5a923d(0x1b6),'foreignKey':_0x5a923d(0x21c)}),_0x5d0423[_0x5a923d(0x2f2)]['belongsTo'](_0x5d0423[_0x5a923d(0x309)],{'as':_0x5a923d(0x31f),'foreignKey':'SmsAccountId'}),_0x5d0423[_0x5a923d(0x1ba)]['belongsToMany'](_0x5d0423['User'],{'as':_0x5a923d(0x313),'through':_0x5a923d(0x16f),'foreignKey':_0x5a923d(0x1cc)}),_0x5d0423[_0x5a923d(0x1ba)][_0x5a923d(0x26e)](_0x5d0423[_0x5a923d(0x287)],{'through':_0x5a923d(0x2e9),'as':_0x5a923d(0x32e)}),_0x5d0423['OpenchannelAccount'][_0x5a923d(0x20e)](_0x5d0423['Disposition'],{'as':_0x5a923d(0x22b),'foreignKey':'OpenchannelAccountId'}),_0x5d0423[_0x5a923d(0x1c3)]['hasMany'](_0x5d0423[_0x5a923d(0x2a9)],{'as':_0x5a923d(0x2de),'foreignKey':_0x5a923d(0x1a2)}),_0x5d0423[_0x5a923d(0x1c3)][_0x5a923d(0x20e)](_0x5d0423[_0x5a923d(0x2f8)],{'as':'Interactions','foreignKey':_0x5a923d(0x1a2)}),_0x5d0423[_0x5a923d(0x1c3)][_0x5a923d(0x20e)](_0x5d0423[_0x5a923d(0x2bc)],{'as':'Messages','foreignKey':_0x5a923d(0x1a2)}),_0x5d0423[_0x5a923d(0x1c3)][_0x5a923d(0x20e)](_0x5d0423[_0x5a923d(0x1e2)],{'as':'Applications','foreignKey':_0x5a923d(0x1a2)}),_0x5d0423[_0x5a923d(0x1c3)]['belongsTo'](_0x5d0423['CmList'],{'as':_0x5a923d(0x21a),'foreignKey':_0x5a923d(0x1c5)}),_0x5d0423[_0x5a923d(0x1c3)][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x225)],{'as':'mandatoryDispositionPause','foreignKey':_0x5a923d(0x191)}),_0x5d0423['OpenchannelAccount'][_0x5a923d(0x26e)](_0x5d0423[_0x5a923d(0x1c0)],{'as':_0x5a923d(0x313),'through':_0x5a923d(0x331)}),_0x5d0423[_0x5a923d(0x1e2)][_0x5a923d(0x29c)](_0x5d0423['User'],{'onDelete':'restrict'}),_0x5d0423['OpenchannelApplication'][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x275)],{'onDelete':_0x5a923d(0x26d),'foreignKey':_0x5a923d(0x1cd)}),_0x5d0423['OpenchannelApplication'][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x1c3)],{'onDelete':_0x5a923d(0x26d),'foreignKey':'OpenchannelAccountId'}),_0x5d0423[_0x5a923d(0x1e2)]['belongsTo'](_0x5d0423['Interval'],{'onDelete':_0x5a923d(0x26d),'foreignKey':'IntervalId'}),_0x5d0423['OpenchannelApplication']['belongsTo'](_0x5d0423[_0x5a923d(0x23c)],{'onDelete':_0x5a923d(0x26d),'foreignKey':_0x5a923d(0x23b)}),_0x5d0423['OpenchannelInteraction'][_0x5a923d(0x20e)](_0x5d0423[_0x5a923d(0x2bc)],{'as':'Messages','onDelete':_0x5a923d(0x298),'foreignKey':_0x5a923d(0x306)}),_0x5d0423[_0x5a923d(0x2f8)][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x1c3)],{'as':_0x5a923d(0x31f),'foreignKey':_0x5a923d(0x1a2)}),_0x5d0423['OpenchannelInteraction'][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x1da)],{'as':_0x5a923d(0x25e),'foreignKey':_0x5a923d(0x334)}),_0x5d0423[_0x5a923d(0x2f8)][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x1c0)],{'as':'Owner','foreignKey':_0x5a923d(0x2ee)}),_0x5d0423[_0x5a923d(0x2f8)][_0x5a923d(0x26e)](_0x5d0423[_0x5a923d(0x23c)],{'through':_0x5a923d(0x325),'as':'Tags'}),_0x5d0423[_0x5a923d(0x2f8)][_0x5a923d(0x26e)](_0x5d0423[_0x5a923d(0x23c)],{'through':_0x5a923d(0x325),'as':'ThroughTags'}),_0x5d0423['OpenchannelInteraction'][_0x5a923d(0x26e)](_0x5d0423[_0x5a923d(0x1c0)],{'as':_0x5a923d(0x196),'through':_0x5a923d(0x2d5),'foreignKey':_0x5a923d(0x306)}),_0x5d0423[_0x5a923d(0x2bc)][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x1c0)],{'onDelete':_0x5a923d(0x298),'as':_0x5a923d(0x1c0)}),_0x5d0423[_0x5a923d(0x2bc)][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x1da)],{'onDelete':_0x5a923d(0x298),'as':_0x5a923d(0x25e)}),_0x5d0423['OpenchannelMessage'][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x2f8)],{'onDelete':_0x5a923d(0x298),'as':'Interaction','foreignKey':_0x5a923d(0x306)}),_0x5d0423[_0x5a923d(0x2bc)][_0x5a923d(0x29c)](_0x5d0423['Attachment'],{'as':_0x5a923d(0x30d),'foreignKey':_0x5a923d(0x226)}),_0x5d0423[_0x5a923d(0x2bc)][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x1c3)],{'as':_0x5a923d(0x31f),'foreignKey':'OpenchannelAccountId'}),_0x5d0423[_0x5a923d(0x275)][_0x5a923d(0x26e)](_0x5d0423['User'],{'as':_0x5a923d(0x313),'through':_0x5a923d(0x24b),'foreignKey':_0x5a923d(0x1cd)}),_0x5d0423[_0x5a923d(0x275)][_0x5a923d(0x26e)](_0x5d0423[_0x5a923d(0x287)],{'through':_0x5a923d(0x2e4),'as':_0x5a923d(0x32e)}),_0x5d0423[_0x5a923d(0x218)][_0x5a923d(0x20e)](_0x5d0423[_0x5a923d(0x286)],{'as':_0x5a923d(0x22b),'foreignKey':_0x5a923d(0x181)}),_0x5d0423[_0x5a923d(0x218)]['hasMany'](_0x5d0423[_0x5a923d(0x2a9)],{'as':'Answers','foreignKey':'ChatWebsiteId'}),_0x5d0423[_0x5a923d(0x218)][_0x5a923d(0x20e)](_0x5d0423['ChatProactiveAction'],{'as':_0x5a923d(0x260)}),_0x5d0423['ChatWebsite'][_0x5a923d(0x20e)](_0x5d0423['ChatInteraction'],{'as':_0x5a923d(0x18a)}),_0x5d0423[_0x5a923d(0x218)][_0x5a923d(0x20e)](_0x5d0423[_0x5a923d(0x1f0)],{'as':_0x5a923d(0x204)}),_0x5d0423[_0x5a923d(0x218)][_0x5a923d(0x20e)](_0x5d0423[_0x5a923d(0x274)],{'as':_0x5a923d(0x1a6)}),_0x5d0423[_0x5a923d(0x218)][_0x5a923d(0x29c)](_0x5d0423['CmList'],{'as':_0x5a923d(0x21a),'foreignKey':_0x5a923d(0x1c5)}),_0x5d0423[_0x5a923d(0x218)][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x18c)],{'as':_0x5a923d(0x18c),'foreignKey':_0x5a923d(0x2b0)}),_0x5d0423[_0x5a923d(0x218)][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x225)],{'as':_0x5a923d(0x17a),'foreignKey':_0x5a923d(0x191)}),_0x5d0423['ChatWebsite'][_0x5a923d(0x26e)](_0x5d0423[_0x5a923d(0x1c0)],{'as':_0x5a923d(0x313),'through':'user_has_chat_websites'}),_0x5d0423[_0x5a923d(0x296)][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x1c3)],{}),_0x5d0423[_0x5a923d(0x296)]['belongsTo'](_0x5d0423['CmList'],{'as':'List','foreignKey':_0x5a923d(0x1c5)}),_0x5d0423[_0x5a923d(0x296)]['belongsTo'](_0x5d0423[_0x5a923d(0x1da)],{'as':_0x5a923d(0x25e),'foreignKey':_0x5a923d(0x334)}),_0x5d0423[_0x5a923d(0x296)]['belongsTo'](_0x5d0423['OpenchannelInteraction'],{}),_0x5d0423[_0x5a923d(0x296)][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x2bc)],{}),_0x5d0423['OpenchannelQueueReport'][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x1c0)],{}),_0x5d0423['OpenchannelQueueReport'][_0x5a923d(0x29c)](_0x5d0423['OpenchannelQueue'],{}),_0x5d0423[_0x5a923d(0x1f0)][_0x5a923d(0x29c)](_0x5d0423['User'],{'as':_0x5a923d(0x244),'foreignKey':'UserId','onDelete':_0x5a923d(0x26d)}),_0x5d0423['ChatApplication'][_0x5a923d(0x29c)](_0x5d0423['ChatQueue'],{'as':_0x5a923d(0x2d9),'foreignKey':'ChatQueueId','onDelete':_0x5a923d(0x26d)}),_0x5d0423['ChatApplication'][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x218)],{'as':'Website','foreignKey':_0x5a923d(0x181),'onDelete':'restrict'}),_0x5d0423[_0x5a923d(0x1f0)][_0x5a923d(0x29c)](_0x5d0423['Tag'],{'onDelete':_0x5a923d(0x26d),'foreignKey':_0x5a923d(0x23b)}),_0x5d0423[_0x5a923d(0x2cb)][_0x5a923d(0x20e)](_0x5d0423[_0x5a923d(0x274)],{'as':_0x5a923d(0x1a6),'onDelete':_0x5a923d(0x298),'foreignKey':_0x5a923d(0x231)}),_0x5d0423[_0x5a923d(0x2cb)][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x218)],{'as':_0x5a923d(0x31f),'foreignKey':'ChatWebsiteId'}),_0x5d0423['ChatInteraction'][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x1da)],{'as':_0x5a923d(0x25e),'foreignKey':_0x5a923d(0x334)}),_0x5d0423['ChatInteraction'][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x1c0)],{'as':'Owner','foreignKey':_0x5a923d(0x2ee)}),_0x5d0423['ChatInteraction']['belongsToMany'](_0x5d0423[_0x5a923d(0x23c)],{'through':'chat_interaction_has_tags','as':_0x5a923d(0x2f0)}),_0x5d0423['ChatInteraction']['belongsToMany'](_0x5d0423[_0x5a923d(0x23c)],{'through':_0x5a923d(0x23d),'as':'ThroughTags'}),_0x5d0423[_0x5a923d(0x2cb)]['belongsToMany'](_0x5d0423[_0x5a923d(0x1c0)],{'as':'Users','through':_0x5a923d(0x220),'foreignKey':'ChatInteractionId'}),_0x5d0423[_0x5a923d(0x274)]['belongsTo'](_0x5d0423[_0x5a923d(0x1c0)],{'onDelete':'cascade','as':_0x5a923d(0x1c0)}),_0x5d0423['ChatMessage'][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x1da)],{'onDelete':_0x5a923d(0x298),'as':_0x5a923d(0x25e),'foreignKey':_0x5a923d(0x334)}),_0x5d0423[_0x5a923d(0x274)][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x2cb)],{'onDelete':_0x5a923d(0x298),'as':_0x5a923d(0x1b6),'foreignKey':_0x5a923d(0x231)}),_0x5d0423[_0x5a923d(0x274)][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x30d)],{'as':_0x5a923d(0x30d),'foreignKey':_0x5a923d(0x226)}),_0x5d0423[_0x5a923d(0x274)][_0x5a923d(0x29c)](_0x5d0423['ChatWebsite'],{'as':_0x5a923d(0x31f),'foreignKey':'ChatWebsiteId'}),_0x5d0423[_0x5a923d(0x27c)][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x1da)],{'onDelete':_0x5a923d(0x298),'as':_0x5a923d(0x25e),'foreignKey':_0x5a923d(0x334)}),_0x5d0423['ChatOfflineMessage'][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x218)],{'as':'Account','foreignKey':_0x5a923d(0x181)}),_0x5d0423[_0x5a923d(0x26a)][_0x5a923d(0x26e)](_0x5d0423[_0x5a923d(0x1c0)],{'as':_0x5a923d(0x313),'through':_0x5a923d(0x297),'hooks':!![]}),_0x5d0423[_0x5a923d(0x26a)][_0x5a923d(0x26e)](_0x5d0423['Team'],{'through':'team_has_chat_queues','as':'Teams'}),_0x5d0423[_0x5a923d(0x1f7)][_0x5a923d(0x20e)](_0x5d0423[_0x5a923d(0x175)],{'as':_0x5a923d(0x1a6),'foreignKey':_0x5a923d(0x1e7),'onDelete':_0x5a923d(0x298)}),_0x5d0423[_0x5a923d(0x1f7)][_0x5a923d(0x26e)](_0x5d0423[_0x5a923d(0x1c0)],{'as':_0x5a923d(0x222),'through':'chat_group_has_users'}),_0x5d0423[_0x5a923d(0x24f)][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x218)],{'as':'Website','foreignKey':_0x5a923d(0x181)}),_0x5d0423[_0x5a923d(0x315)][_0x5a923d(0x20e)](_0x5d0423[_0x5a923d(0x1da)],{'as':_0x5a923d(0x2fc),'foreignKey':_0x5a923d(0x31a)}),_0x5d0423['CmContact'][_0x5a923d(0x20e)](_0x5d0423[_0x5a923d(0x1e1)],{'as':_0x5a923d(0x235),'foreignKey':'ContactId'}),_0x5d0423[_0x5a923d(0x1da)][_0x5a923d(0x20e)](_0x5d0423['CmHopperFinal'],{'as':_0x5a923d(0x183),'foreignKey':_0x5a923d(0x334)}),_0x5d0423[_0x5a923d(0x1da)][_0x5a923d(0x20e)](_0x5d0423['CmHopperHistory'],{'as':'HopperHistories','foreignKey':_0x5a923d(0x334)}),_0x5d0423[_0x5a923d(0x1da)]['hasMany'](_0x5d0423[_0x5a923d(0x236)],{'as':_0x5a923d(0x236),'foreignKey':_0x5a923d(0x334)}),_0x5d0423[_0x5a923d(0x1da)][_0x5a923d(0x20e)](_0x5d0423[_0x5a923d(0x2fb)],{'as':'JscriptySessions','foreignKey':'ContactId'}),_0x5d0423['CmContact'][_0x5a923d(0x20e)](_0x5d0423[_0x5a923d(0x2f8)],{'as':_0x5a923d(0x327),'foreignKey':'ContactId','onDelete':_0x5a923d(0x26d)}),_0x5d0423[_0x5a923d(0x1da)][_0x5a923d(0x20e)](_0x5d0423['ChatInteraction'],{'as':'ChatInteractions','foreignKey':_0x5a923d(0x334),'onDelete':_0x5a923d(0x26d)}),_0x5d0423[_0x5a923d(0x1da)]['hasMany'](_0x5d0423[_0x5a923d(0x292)],{'as':_0x5a923d(0x1c1),'foreignKey':_0x5a923d(0x334),'onDelete':_0x5a923d(0x26d)}),_0x5d0423[_0x5a923d(0x1da)][_0x5a923d(0x20e)](_0x5d0423[_0x5a923d(0x207)],{'as':_0x5a923d(0x2c4),'foreignKey':'ContactId','onDelete':_0x5a923d(0x26d)}),_0x5d0423[_0x5a923d(0x1da)][_0x5a923d(0x20e)](_0x5d0423['MailInteraction'],{'as':_0x5a923d(0x2df),'foreignKey':_0x5a923d(0x334),'onDelete':'restrict'}),_0x5d0423[_0x5a923d(0x1da)][_0x5a923d(0x29c)](_0x5d0423['CmCompany'],{'as':_0x5a923d(0x336),'foreignKey':_0x5a923d(0x31a)}),_0x5d0423[_0x5a923d(0x1da)][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x26b)],{'as':_0x5a923d(0x21a),'foreignKey':_0x5a923d(0x1c5),'onDelete':_0x5a923d(0x298)}),_0x5d0423[_0x5a923d(0x1da)][_0x5a923d(0x26e)](_0x5d0423['User'],{'as':_0x5a923d(0x196),'through':_0x5a923d(0x284)}),_0x5d0423[_0x5a923d(0x1da)][_0x5a923d(0x26e)](_0x5d0423['Tag'],{'as':'Tags','through':_0x5a923d(0x180)}),_0x5d0423[_0x5a923d(0x1da)]['belongsToMany'](_0x5d0423['Tag'],{'through':'cm_contact_has_tags','as':_0x5a923d(0x17d)}),_0x5d0423['CmHopper'][_0x5a923d(0x29c)](_0x5d0423['CmContact'],{'as':_0x5a923d(0x25e),'foreignKey':'ContactId','onDelete':'cascade'}),_0x5d0423[_0x5a923d(0x1e1)][_0x5a923d(0x29c)](_0x5d0423['CmList'],{'as':_0x5a923d(0x21a),'foreignKey':'ListId','onDelete':_0x5a923d(0x298)}),_0x5d0423['CmHopper']['belongsTo'](_0x5d0423[_0x5a923d(0x1c0)],{'as':'Agent','foreignKey':_0x5a923d(0x2ee)}),_0x5d0423[_0x5a923d(0x1e1)][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x177)],{'as':'Queue','foreignKey':_0x5a923d(0x1f5),'onDelete':_0x5a923d(0x298)}),_0x5d0423[_0x5a923d(0x1e1)]['belongsTo'](_0x5d0423[_0x5a923d(0x2a1)],{'as':_0x5a923d(0x2a1),'foreignKey':'CampaignId','onDelete':'cascade'}),_0x5d0423[_0x5a923d(0x1e1)][_0x5a923d(0x29c)](_0x5d0423['User'],{'as':_0x5a923d(0x319),'foreignKey':'OwnerId'}),_0x5d0423[_0x5a923d(0x30c)][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x1da)],{'as':_0x5a923d(0x25e),'foreignKey':_0x5a923d(0x334),'onDelete':_0x5a923d(0x298)}),_0x5d0423[_0x5a923d(0x30c)]['belongsTo'](_0x5d0423[_0x5a923d(0x26b)],{'as':_0x5a923d(0x21a),'foreignKey':_0x5a923d(0x1c5),'onDelete':_0x5a923d(0x298)}),_0x5d0423[_0x5a923d(0x30c)][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x177)],{'as':_0x5a923d(0x2d9),'foreignKey':_0x5a923d(0x1f5),'onDelete':'cascade'}),_0x5d0423[_0x5a923d(0x30c)][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x2a1)],{'as':_0x5a923d(0x2a1),'foreignKey':_0x5a923d(0x28a),'onDelete':'cascade'}),_0x5d0423[_0x5a923d(0x283)][_0x5a923d(0x20e)](_0x5d0423['Condition'],{'as':{'plural':'All','singular':_0x5a923d(0x1dd)},'foreignKey':_0x5a923d(0x189),'onDelete':_0x5a923d(0x298),'hooks':!![]}),_0x5d0423[_0x5a923d(0x283)][_0x5a923d(0x20e)](_0x5d0423[_0x5a923d(0x2b7)],{'as':{'plural':'Any','singular':'OneAny'},'foreignKey':_0x5a923d(0x1fa),'onDelete':_0x5a923d(0x298),'hooks':!![]}),_0x5d0423['Automation'][_0x5a923d(0x20e)](_0x5d0423[_0x5a923d(0x227)],{'as':_0x5a923d(0x32a),'foreignKey':_0x5a923d(0x1e9),'onDelete':_0x5a923d(0x298),'hooks':!![]}),_0x5d0423['Disposition'][_0x5a923d(0x20e)](_0x5d0423[_0x5a923d(0x286)],{'as':_0x5a923d(0x22b),'foreignKey':'ParentId','onDelete':_0x5a923d(0x298)}),_0x5d0423[_0x5a923d(0x18c)]['hasMany'](_0x5d0423[_0x5a923d(0x18c)],{'as':'Intervals','foreignKey':'IntervalId','onDelete':'cascade','hooks':!![]}),_0x5d0423['Interval'][_0x5a923d(0x20e)](_0x5d0423[_0x5a923d(0x20f)],{'as':_0x5a923d(0x265),'foreignKey':_0x5a923d(0x2b0),'onDelete':_0x5a923d(0x26d)}),_0x5d0423[_0x5a923d(0x18c)][_0x5a923d(0x20e)](_0x5d0423['MailApplication'],{'as':'MailApplications','foreignKey':_0x5a923d(0x2b0)}),_0x5d0423[_0x5a923d(0x18c)]['hasMany'](_0x5d0423['ChatApplication'],{'as':_0x5a923d(0x171),'foreignKey':'IntervalId'}),_0x5d0423[_0x5a923d(0x18c)][_0x5a923d(0x20e)](_0x5d0423[_0x5a923d(0x29a)],{'as':_0x5a923d(0x30f),'foreignKey':_0x5a923d(0x2b0)}),_0x5d0423[_0x5a923d(0x18c)][_0x5a923d(0x20e)](_0x5d0423[_0x5a923d(0x1df)],{'as':_0x5a923d(0x32d),'foreignKey':_0x5a923d(0x2b0)}),_0x5d0423[_0x5a923d(0x1f6)]['belongsTo'](_0x5d0423[_0x5a923d(0x295)],{}),_0x5d0423['Schedule']['belongsTo'](_0x5d0423['AnalyticDefaultReport'],{'foreignKey':_0x5a923d(0x2db)}),_0x5d0423['Schedule'][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x23a)],{'foreignKey':_0x5a923d(0x259)}),_0x5d0423[_0x5a923d(0x26c)]['belongsToMany'](_0x5d0423['VoiceMusicOnHold'],{'as':_0x5a923d(0x2bf),'through':'moh_has_sounds','onDelete':_0x5a923d(0x26d)}),_0x5d0423[_0x5a923d(0x23c)][_0x5a923d(0x26e)](_0x5d0423[_0x5a923d(0x1da)],{'through':_0x5a923d(0x180)}),_0x5d0423[_0x5a923d(0x23c)][_0x5a923d(0x26e)](_0x5d0423[_0x5a923d(0x2cb)],{'through':_0x5a923d(0x23d)}),_0x5d0423[_0x5a923d(0x23c)][_0x5a923d(0x26e)](_0x5d0423[_0x5a923d(0x1b9)],{'through':_0x5a923d(0x1d1)}),_0x5d0423[_0x5a923d(0x23c)][_0x5a923d(0x26e)](_0x5d0423['SmsInteraction'],{'through':_0x5a923d(0x32f)}),_0x5d0423[_0x5a923d(0x23c)]['belongsToMany'](_0x5d0423[_0x5a923d(0x207)],{'through':'fax_interaction_has_tags'}),_0x5d0423[_0x5a923d(0x23c)]['belongsToMany'](_0x5d0423['OpenchannelInteraction'],{'through':_0x5a923d(0x325)}),_0x5d0423[_0x5a923d(0x23c)]['belongsToMany'](_0x5d0423['WhatsappInteraction'],{'through':_0x5a923d(0x1dc)}),_0x5d0423[_0x5a923d(0x1a9)][_0x5a923d(0x20e)](_0x5d0423[_0x5a923d(0x2b7)],{'as':{'plural':_0x5a923d(0x1e8),'singular':_0x5a923d(0x1a8)},'foreignKey':_0x5a923d(0x213),'onDelete':_0x5a923d(0x298),'hooks':!![]}),_0x5d0423[_0x5a923d(0x1a9)][_0x5a923d(0x20e)](_0x5d0423[_0x5a923d(0x2b7)],{'as':{'plural':'AnyConditions','singular':_0x5a923d(0x2a8)},'foreignKey':'TriggerAnyId','onDelete':_0x5a923d(0x298),'hooks':!![]}),_0x5d0423[_0x5a923d(0x1a9)]['hasMany'](_0x5d0423[_0x5a923d(0x227)],{'as':_0x5a923d(0x32a),'foreignKey':_0x5a923d(0x230),'onDelete':_0x5a923d(0x298),'hooks':!![]}),_0x5d0423[_0x5a923d(0x23a)][_0x5a923d(0x20e)](_0x5d0423[_0x5a923d(0x250)],{'as':'Fields','onDelete':_0x5a923d(0x298),'foreignKey':_0x5a923d(0x259),'hooks':!![]}),_0x5d0423[_0x5a923d(0x21d)][_0x5a923d(0x20e)](_0x5d0423[_0x5a923d(0x250)],{'as':_0x5a923d(0x212),'onDelete':_0x5a923d(0x298),'foreignKey':'DefaultReportId'}),_0x5d0423[_0x5a923d(0x2b4)][_0x5a923d(0x20e)](_0x5d0423[_0x5a923d(0x250)],{'as':_0x5a923d(0x212),'onDelete':_0x5a923d(0x298),'foreignKey':'MetricId'}),_0x5d0423[_0x5a923d(0x250)]['belongsTo'](_0x5d0423[_0x5a923d(0x2b4)],{'foreignKey':'MetricId'}),_0x5d0423[_0x5a923d(0x1ab)]['hasMany'](_0x5d0423['SalesforceConfiguration'],{'as':_0x5a923d(0x1fd),'onDelete':_0x5a923d(0x298),'foreignKey':_0x5a923d(0x247)}),_0x5d0423[_0x5a923d(0x2c6)][_0x5a923d(0x20e)](_0x5d0423[_0x5a923d(0x170)],{'as':_0x5a923d(0x2ca),'onDelete':_0x5a923d(0x298),'foreignKey':_0x5a923d(0x1e4)}),_0x5d0423[_0x5a923d(0x2c6)][_0x5a923d(0x20e)](_0x5d0423[_0x5a923d(0x170)],{'as':_0x5a923d(0x2d0),'onDelete':_0x5a923d(0x298),'foreignKey':'DescriptionId'}),_0x5d0423[_0x5a923d(0x2c6)]['hasMany'](_0x5d0423[_0x5a923d(0x170)],{'as':_0x5a923d(0x212),'onDelete':_0x5a923d(0x298),'foreignKey':_0x5a923d(0x186)}),_0x5d0423[_0x5a923d(0x2c6)][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x1ab)],{'as':_0x5a923d(0x31f),'foreignKey':'AccountId'}),_0x5d0423['SalesforceField']['hasMany'](_0x5d0423[_0x5a923d(0x170)],{'as':_0x5a923d(0x228),'foreignKey':_0x5a923d(0x1e4)}),_0x5d0423[_0x5a923d(0x170)][_0x5a923d(0x20e)](_0x5d0423[_0x5a923d(0x170)],{'as':_0x5a923d(0x2a2),'foreignKey':'DescriptionId'}),_0x5d0423['SalesforceField'][_0x5a923d(0x20e)](_0x5d0423['SalesforceField'],{'as':_0x5a923d(0x1d7),'foreignKey':_0x5a923d(0x186)}),_0x5d0423[_0x5a923d(0x170)]['belongsTo'](_0x5d0423[_0x5a923d(0x31c)],{'as':_0x5a923d(0x31c),'foreignKey':_0x5a923d(0x1d2)}),_0x5d0423[_0x5a923d(0x1b7)][_0x5a923d(0x20e)](_0x5d0423[_0x5a923d(0x326)],{'as':_0x5a923d(0x1fd),'onDelete':_0x5a923d(0x298),'foreignKey':_0x5a923d(0x247)}),_0x5d0423[_0x5a923d(0x326)][_0x5a923d(0x20e)](_0x5d0423['SugarcrmField'],{'as':_0x5a923d(0x2ca),'onDelete':_0x5a923d(0x298),'foreignKey':_0x5a923d(0x1e4)}),_0x5d0423['SugarcrmConfiguration'][_0x5a923d(0x20e)](_0x5d0423[_0x5a923d(0x2fd)],{'as':'Descriptions','onDelete':_0x5a923d(0x298),'foreignKey':_0x5a923d(0x335)}),_0x5d0423[_0x5a923d(0x326)][_0x5a923d(0x20e)](_0x5d0423[_0x5a923d(0x2fd)],{'as':_0x5a923d(0x212),'onDelete':_0x5a923d(0x298),'foreignKey':_0x5a923d(0x186)}),_0x5d0423[_0x5a923d(0x326)][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x1b7)],{'as':_0x5a923d(0x31f),'foreignKey':_0x5a923d(0x247)}),_0x5d0423[_0x5a923d(0x2fd)][_0x5a923d(0x20e)](_0x5d0423[_0x5a923d(0x2fd)],{'as':_0x5a923d(0x228),'foreignKey':_0x5a923d(0x1e4)}),_0x5d0423['SugarcrmField'][_0x5a923d(0x20e)](_0x5d0423['SugarcrmField'],{'as':_0x5a923d(0x2a2),'foreignKey':_0x5a923d(0x335)}),_0x5d0423[_0x5a923d(0x2fd)][_0x5a923d(0x20e)](_0x5d0423[_0x5a923d(0x2fd)],{'as':_0x5a923d(0x1d7),'foreignKey':'FieldId'}),_0x5d0423['SugarcrmField'][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x31c)],{'as':'Variable','foreignKey':'VariableId'}),_0x5d0423[_0x5a923d(0x1b8)][_0x5a923d(0x20e)](_0x5d0423['DeskConfiguration'],{'as':_0x5a923d(0x1fd),'onDelete':'cascade','foreignKey':_0x5a923d(0x247)}),_0x5d0423[_0x5a923d(0x24d)][_0x5a923d(0x20e)](_0x5d0423['DeskField'],{'as':_0x5a923d(0x2ca),'onDelete':'cascade','foreignKey':_0x5a923d(0x1e4)}),_0x5d0423[_0x5a923d(0x24d)][_0x5a923d(0x20e)](_0x5d0423[_0x5a923d(0x1af)],{'as':'Descriptions','onDelete':_0x5a923d(0x298),'foreignKey':_0x5a923d(0x335)}),_0x5d0423['DeskConfiguration']['hasMany'](_0x5d0423[_0x5a923d(0x1af)],{'as':_0x5a923d(0x212),'onDelete':'cascade','foreignKey':_0x5a923d(0x186)}),_0x5d0423[_0x5a923d(0x24d)][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x1b8)],{'as':_0x5a923d(0x31f),'foreignKey':_0x5a923d(0x247)}),_0x5d0423[_0x5a923d(0x24d)]['belongsToMany'](_0x5d0423[_0x5a923d(0x23c)],{'through':_0x5a923d(0x1e0)}),_0x5d0423[_0x5a923d(0x1af)][_0x5a923d(0x20e)](_0x5d0423['DeskField'],{'as':_0x5a923d(0x228),'foreignKey':'SubjectId'}),_0x5d0423['DeskField'][_0x5a923d(0x20e)](_0x5d0423[_0x5a923d(0x1af)],{'as':'Description','foreignKey':_0x5a923d(0x335)}),_0x5d0423['DeskField'][_0x5a923d(0x20e)](_0x5d0423[_0x5a923d(0x1af)],{'as':_0x5a923d(0x1d7),'foreignKey':_0x5a923d(0x186)}),_0x5d0423[_0x5a923d(0x1af)]['belongsTo'](_0x5d0423['Variable'],{'as':_0x5a923d(0x31c),'foreignKey':_0x5a923d(0x1d2)}),_0x5d0423[_0x5a923d(0x19f)][_0x5a923d(0x20e)](_0x5d0423['ZohoConfiguration'],{'as':_0x5a923d(0x1fd),'onDelete':_0x5a923d(0x298),'foreignKey':_0x5a923d(0x247)}),_0x5d0423['ZohoConfiguration'][_0x5a923d(0x20e)](_0x5d0423['ZohoField'],{'as':_0x5a923d(0x2ca),'onDelete':_0x5a923d(0x298),'foreignKey':'SubjectId'}),_0x5d0423['ZohoConfiguration'][_0x5a923d(0x20e)](_0x5d0423[_0x5a923d(0x307)],{'as':'Descriptions','onDelete':_0x5a923d(0x298),'foreignKey':'DescriptionId'}),_0x5d0423[_0x5a923d(0x18f)][_0x5a923d(0x20e)](_0x5d0423[_0x5a923d(0x307)],{'as':_0x5a923d(0x212),'onDelete':_0x5a923d(0x298),'foreignKey':_0x5a923d(0x186)}),_0x5d0423['ZohoConfiguration'][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x19f)],{'as':_0x5a923d(0x31f),'foreignKey':_0x5a923d(0x247)}),_0x5d0423['ZohoField'][_0x5a923d(0x20e)](_0x5d0423[_0x5a923d(0x307)],{'as':_0x5a923d(0x228),'foreignKey':'SubjectId'}),_0x5d0423['ZohoField'][_0x5a923d(0x20e)](_0x5d0423[_0x5a923d(0x307)],{'as':'Description','foreignKey':_0x5a923d(0x335)}),_0x5d0423[_0x5a923d(0x307)]['hasMany'](_0x5d0423['ZohoField'],{'as':_0x5a923d(0x1d7),'foreignKey':_0x5a923d(0x186)}),_0x5d0423[_0x5a923d(0x307)]['belongsTo'](_0x5d0423[_0x5a923d(0x31c)],{'as':_0x5a923d(0x31c),'foreignKey':'VariableId'}),_0x5d0423['ZendeskAccount'][_0x5a923d(0x20e)](_0x5d0423['ZendeskConfiguration'],{'as':_0x5a923d(0x1fd),'onDelete':'cascade','foreignKey':'AccountId'}),_0x5d0423['ZendeskConfiguration'][_0x5a923d(0x20e)](_0x5d0423[_0x5a923d(0x321)],{'as':_0x5a923d(0x2ca),'foreignKey':_0x5a923d(0x1e4)}),_0x5d0423[_0x5a923d(0x1bc)][_0x5a923d(0x20e)](_0x5d0423[_0x5a923d(0x321)],{'as':_0x5a923d(0x2d0),'foreignKey':_0x5a923d(0x335)}),_0x5d0423[_0x5a923d(0x1bc)][_0x5a923d(0x20e)](_0x5d0423[_0x5a923d(0x321)],{'as':'Fields','foreignKey':_0x5a923d(0x186)}),_0x5d0423['ZendeskConfiguration'][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x194)],{'as':_0x5a923d(0x31f),'foreignKey':_0x5a923d(0x247)}),_0x5d0423[_0x5a923d(0x1bc)]['belongsToMany'](_0x5d0423[_0x5a923d(0x23c)],{'through':_0x5a923d(0x1cf)}),_0x5d0423[_0x5a923d(0x321)][_0x5a923d(0x20e)](_0x5d0423[_0x5a923d(0x321)],{'as':_0x5a923d(0x228),'foreignKey':_0x5a923d(0x1e4)}),_0x5d0423[_0x5a923d(0x321)][_0x5a923d(0x20e)](_0x5d0423[_0x5a923d(0x321)],{'as':'Description','foreignKey':_0x5a923d(0x335)}),_0x5d0423[_0x5a923d(0x321)][_0x5a923d(0x20e)](_0x5d0423['ZendeskField'],{'as':_0x5a923d(0x1d7),'foreignKey':_0x5a923d(0x186)}),_0x5d0423[_0x5a923d(0x321)][_0x5a923d(0x29c)](_0x5d0423['Variable'],{'as':_0x5a923d(0x31c),'foreignKey':_0x5a923d(0x1d2)}),_0x5d0423[_0x5a923d(0x20a)][_0x5a923d(0x20e)](_0x5d0423['FreshdeskConfiguration'],{'as':_0x5a923d(0x1fd),'onDelete':'cascade','foreignKey':_0x5a923d(0x247)}),_0x5d0423['FreshdeskConfiguration'][_0x5a923d(0x20e)](_0x5d0423[_0x5a923d(0x1a0)],{'as':_0x5a923d(0x2ca),'onDelete':_0x5a923d(0x298),'foreignKey':'SubjectId'}),_0x5d0423[_0x5a923d(0x2d4)][_0x5a923d(0x20e)](_0x5d0423[_0x5a923d(0x1a0)],{'as':_0x5a923d(0x2d0),'onDelete':_0x5a923d(0x298),'foreignKey':_0x5a923d(0x335)}),_0x5d0423[_0x5a923d(0x2d4)][_0x5a923d(0x20e)](_0x5d0423[_0x5a923d(0x1a0)],{'as':_0x5a923d(0x212),'onDelete':_0x5a923d(0x298),'foreignKey':_0x5a923d(0x186)}),_0x5d0423[_0x5a923d(0x2d4)][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x20a)],{'as':_0x5a923d(0x31f),'foreignKey':_0x5a923d(0x247)}),_0x5d0423[_0x5a923d(0x2d4)][_0x5a923d(0x26e)](_0x5d0423['Tag'],{'through':_0x5a923d(0x294)}),_0x5d0423[_0x5a923d(0x1a0)][_0x5a923d(0x20e)](_0x5d0423[_0x5a923d(0x1a0)],{'as':_0x5a923d(0x228),'foreignKey':_0x5a923d(0x1e4)}),_0x5d0423[_0x5a923d(0x1a0)]['hasMany'](_0x5d0423[_0x5a923d(0x1a0)],{'as':_0x5a923d(0x2a2),'foreignKey':_0x5a923d(0x335)}),_0x5d0423['FreshdeskField'][_0x5a923d(0x20e)](_0x5d0423[_0x5a923d(0x1a0)],{'as':_0x5a923d(0x1d7),'foreignKey':_0x5a923d(0x186)}),_0x5d0423[_0x5a923d(0x1a0)][_0x5a923d(0x29c)](_0x5d0423['Variable'],{'as':_0x5a923d(0x31c),'foreignKey':_0x5a923d(0x1d2)}),_0x5d0423[_0x5a923d(0x280)][_0x5a923d(0x20e)](_0x5d0423[_0x5a923d(0x200)],{'as':_0x5a923d(0x1fd),'onDelete':'cascade','foreignKey':_0x5a923d(0x247)}),_0x5d0423[_0x5a923d(0x200)][_0x5a923d(0x20e)](_0x5d0423['VtigerField'],{'as':_0x5a923d(0x2ca),'foreignKey':_0x5a923d(0x1e4)}),_0x5d0423[_0x5a923d(0x200)]['hasMany'](_0x5d0423[_0x5a923d(0x254)],{'as':_0x5a923d(0x2d0),'foreignKey':_0x5a923d(0x335)}),_0x5d0423[_0x5a923d(0x200)]['hasMany'](_0x5d0423['VtigerField'],{'as':_0x5a923d(0x212),'foreignKey':_0x5a923d(0x186)}),_0x5d0423[_0x5a923d(0x200)][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x280)],{'as':_0x5a923d(0x31f),'foreignKey':_0x5a923d(0x247)}),_0x5d0423['VtigerField'][_0x5a923d(0x20e)](_0x5d0423['VtigerField'],{'as':_0x5a923d(0x228),'foreignKey':_0x5a923d(0x1e4)}),_0x5d0423[_0x5a923d(0x254)][_0x5a923d(0x20e)](_0x5d0423[_0x5a923d(0x254)],{'as':_0x5a923d(0x2a2),'foreignKey':_0x5a923d(0x335)}),_0x5d0423[_0x5a923d(0x254)][_0x5a923d(0x20e)](_0x5d0423[_0x5a923d(0x254)],{'as':_0x5a923d(0x1d7),'foreignKey':_0x5a923d(0x186)}),_0x5d0423[_0x5a923d(0x254)][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x31c)],{'as':'Variable','foreignKey':_0x5a923d(0x1d2)}),_0x5d0423[_0x5a923d(0x243)][_0x5a923d(0x20e)](_0x5d0423[_0x5a923d(0x29b)],{'as':'Configurations','onDelete':_0x5a923d(0x298),'foreignKey':_0x5a923d(0x247)}),_0x5d0423[_0x5a923d(0x29b)][_0x5a923d(0x20e)](_0x5d0423['ServicenowField'],{'as':_0x5a923d(0x2ca),'foreignKey':_0x5a923d(0x1e4)}),_0x5d0423[_0x5a923d(0x29b)]['hasMany'](_0x5d0423[_0x5a923d(0x2f3)],{'as':'Descriptions','foreignKey':_0x5a923d(0x335)}),_0x5d0423[_0x5a923d(0x29b)][_0x5a923d(0x20e)](_0x5d0423[_0x5a923d(0x2f3)],{'as':_0x5a923d(0x212),'foreignKey':'FieldId'}),_0x5d0423[_0x5a923d(0x29b)][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x243)],{'as':_0x5a923d(0x31f),'foreignKey':_0x5a923d(0x247)}),_0x5d0423['ServicenowField'][_0x5a923d(0x20e)](_0x5d0423['ServicenowField'],{'as':_0x5a923d(0x228),'foreignKey':'SubjectId'}),_0x5d0423[_0x5a923d(0x2f3)][_0x5a923d(0x20e)](_0x5d0423[_0x5a923d(0x2f3)],{'as':_0x5a923d(0x2a2),'foreignKey':_0x5a923d(0x335)}),_0x5d0423['ServicenowField']['hasMany'](_0x5d0423[_0x5a923d(0x2f3)],{'as':_0x5a923d(0x1d7),'foreignKey':_0x5a923d(0x186)}),_0x5d0423[_0x5a923d(0x2f3)]['belongsTo'](_0x5d0423[_0x5a923d(0x31c)],{'as':'Variable','foreignKey':_0x5a923d(0x1d2)}),_0x5d0423[_0x5a923d(0x311)][_0x5a923d(0x20e)](_0x5d0423['Dynamics365Configuration'],{'as':'Configurations','onDelete':'cascade','foreignKey':'AccountId'}),_0x5d0423[_0x5a923d(0x2ea)][_0x5a923d(0x20e)](_0x5d0423[_0x5a923d(0x1ce)],{'as':'Subjects','onDelete':'cascade','foreignKey':'SubjectId'}),_0x5d0423[_0x5a923d(0x2ea)]['hasMany'](_0x5d0423[_0x5a923d(0x1ce)],{'as':_0x5a923d(0x2d0),'onDelete':_0x5a923d(0x298),'foreignKey':'DescriptionId'}),_0x5d0423['Dynamics365Configuration'][_0x5a923d(0x20e)](_0x5d0423[_0x5a923d(0x1ce)],{'as':'Fields','onDelete':_0x5a923d(0x298),'foreignKey':_0x5a923d(0x186)}),_0x5d0423[_0x5a923d(0x2ea)]['belongsTo'](_0x5d0423[_0x5a923d(0x311)],{'as':_0x5a923d(0x31f),'foreignKey':_0x5a923d(0x247)}),_0x5d0423[_0x5a923d(0x1ce)][_0x5a923d(0x20e)](_0x5d0423['Dynamics365Field'],{'as':_0x5a923d(0x228),'foreignKey':_0x5a923d(0x1e4)}),_0x5d0423[_0x5a923d(0x1ce)][_0x5a923d(0x20e)](_0x5d0423[_0x5a923d(0x1ce)],{'as':_0x5a923d(0x2a2),'foreignKey':_0x5a923d(0x335)}),_0x5d0423['Dynamics365Field'][_0x5a923d(0x20e)](_0x5d0423[_0x5a923d(0x1ce)],{'as':_0x5a923d(0x1d7),'foreignKey':_0x5a923d(0x186)}),_0x5d0423[_0x5a923d(0x1ce)][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x31c)],{'as':'Variable','foreignKey':_0x5a923d(0x1d2)}),_0x5d0423['FreshsalesAccount']['hasMany'](_0x5d0423[_0x5a923d(0x1b1)],{'as':_0x5a923d(0x1fd),'onDelete':_0x5a923d(0x298),'foreignKey':_0x5a923d(0x247)}),_0x5d0423['FreshsalesConfiguration'][_0x5a923d(0x20e)](_0x5d0423['FreshsalesField'],{'as':_0x5a923d(0x2ca),'foreignKey':_0x5a923d(0x1e4)}),_0x5d0423[_0x5a923d(0x1b1)][_0x5a923d(0x20e)](_0x5d0423[_0x5a923d(0x201)],{'as':_0x5a923d(0x2d0),'foreignKey':'DescriptionId'}),_0x5d0423[_0x5a923d(0x1b1)][_0x5a923d(0x20e)](_0x5d0423[_0x5a923d(0x201)],{'as':_0x5a923d(0x212),'foreignKey':'FieldId'}),_0x5d0423[_0x5a923d(0x1b1)][_0x5a923d(0x29c)](_0x5d0423['FreshsalesAccount'],{'as':'Account','foreignKey':'AccountId'}),_0x5d0423['FreshsalesField'][_0x5a923d(0x20e)](_0x5d0423[_0x5a923d(0x201)],{'as':_0x5a923d(0x228),'foreignKey':_0x5a923d(0x1e4)}),_0x5d0423['FreshsalesField'][_0x5a923d(0x20e)](_0x5d0423['FreshsalesField'],{'as':'Description','foreignKey':_0x5a923d(0x335)}),_0x5d0423[_0x5a923d(0x201)]['hasMany'](_0x5d0423[_0x5a923d(0x201)],{'as':_0x5a923d(0x1d7),'foreignKey':'FieldId'}),_0x5d0423['FreshsalesField'][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x31c)],{'as':_0x5a923d(0x31c),'foreignKey':_0x5a923d(0x1d2)}),_0x5d0423[_0x5a923d(0x1d4)][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x218)],{}),_0x5d0423[_0x5a923d(0x1d4)][_0x5a923d(0x29c)](_0x5d0423['CmList'],{'as':_0x5a923d(0x21a),'foreignKey':'ListId'}),_0x5d0423[_0x5a923d(0x1d4)][_0x5a923d(0x29c)](_0x5d0423['CmContact'],{'as':'Contact','foreignKey':'ContactId'}),_0x5d0423[_0x5a923d(0x1d4)]['belongsTo'](_0x5d0423[_0x5a923d(0x2cb)],{}),_0x5d0423[_0x5a923d(0x1d4)][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x274)],{}),_0x5d0423[_0x5a923d(0x1d4)]['belongsTo'](_0x5d0423[_0x5a923d(0x1c0)],{}),_0x5d0423[_0x5a923d(0x1d4)][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x26a)],{}),_0x5d0423[_0x5a923d(0x175)][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x1c0)],{'onDelete':_0x5a923d(0x298),'foreignKey':_0x5a923d(0x2d1)}),_0x5d0423['ChatInternalMessage'][_0x5a923d(0x29c)](_0x5d0423['User'],{'onDelete':'cascade','foreignKey':_0x5a923d(0x184)}),_0x5d0423[_0x5a923d(0x2fb)][_0x5a923d(0x20e)](_0x5d0423[_0x5a923d(0x28f)],{'foreignKey':_0x5a923d(0x208),'onDelete':_0x5a923d(0x298)}),_0x5d0423[_0x5a923d(0x2fb)][_0x5a923d(0x20e)](_0x5d0423[_0x5a923d(0x28e)],{'foreignKey':_0x5a923d(0x208),'onDelete':_0x5a923d(0x298)}),_0x5d0423[_0x5a923d(0x1bd)][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x309)],{}),_0x5d0423[_0x5a923d(0x1bd)]['belongsTo'](_0x5d0423[_0x5a923d(0x26b)],{'as':_0x5a923d(0x21a),'foreignKey':_0x5a923d(0x1c5)}),_0x5d0423[_0x5a923d(0x1bd)]['belongsTo'](_0x5d0423['CmContact'],{'as':_0x5a923d(0x25e),'foreignKey':'ContactId'}),_0x5d0423['SmsQueueReport'][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x292)],{}),_0x5d0423[_0x5a923d(0x1bd)][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x2f2)],{}),_0x5d0423[_0x5a923d(0x1bd)][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x1c0)],{}),_0x5d0423[_0x5a923d(0x1bd)]['belongsTo'](_0x5d0423[_0x5a923d(0x1ba)],{}),_0x5d0423['JscriptyProject'][_0x5a923d(0x20e)](_0x5d0423[_0x5a923d(0x2fb)],{'foreignKey':_0x5a923d(0x1e5)}),_0x5d0423[_0x5a923d(0x2dd)]['hasMany'](_0x5d0423[_0x5a923d(0x28f)],{'foreignKey':'ProjectId'}),_0x5d0423['JscriptyProject']['hasMany'](_0x5d0423[_0x5a923d(0x28e)],{'foreignKey':_0x5a923d(0x1e5)}),_0x5d0423[_0x5a923d(0x221)][_0x5a923d(0x26e)](_0x5d0423['User'],{'as':'Users','through':_0x5a923d(0x192)}),_0x5d0423[_0x5a923d(0x287)][_0x5a923d(0x26e)](_0x5d0423['User'],{'as':'Agents','through':_0x5a923d(0x30a)}),_0x5d0423[_0x5a923d(0x287)][_0x5a923d(0x26e)](_0x5d0423[_0x5a923d(0x177)],{'through':_0x5a923d(0x246),'as':_0x5a923d(0x2ed)}),_0x5d0423[_0x5a923d(0x287)]['belongsToMany'](_0x5d0423[_0x5a923d(0x2d8)],{'through':_0x5a923d(0x312),'as':'MailQueues'}),_0x5d0423[_0x5a923d(0x287)][_0x5a923d(0x26e)](_0x5d0423['ChatQueue'],{'through':_0x5a923d(0x2ab),'as':_0x5a923d(0x206)}),_0x5d0423[_0x5a923d(0x287)][_0x5a923d(0x26e)](_0x5d0423[_0x5a923d(0x316)],{'through':_0x5a923d(0x285),'as':_0x5a923d(0x22e)}),_0x5d0423['Team'][_0x5a923d(0x26e)](_0x5d0423[_0x5a923d(0x1ba)],{'through':'team_has_sms_queues','as':'SmsQueues'}),_0x5d0423[_0x5a923d(0x287)][_0x5a923d(0x26e)](_0x5d0423[_0x5a923d(0x275)],{'through':_0x5a923d(0x2e4),'as':_0x5a923d(0x1eb)}),_0x5d0423['Team'][_0x5a923d(0x26e)](_0x5d0423[_0x5a923d(0x238)],{'through':'team_has_whatsapp_queues','as':'WhatsappQueues'}),_0x5d0423['Campaign'][_0x5a923d(0x20e)](_0x5d0423[_0x5a923d(0x1e1)],{'as':'Hoppers','foreignKey':_0x5a923d(0x28a)}),_0x5d0423[_0x5a923d(0x2a1)]['hasMany'](_0x5d0423[_0x5a923d(0x245)],{'as':_0x5a923d(0x183),'foreignKey':_0x5a923d(0x28a)}),_0x5d0423[_0x5a923d(0x2a1)][_0x5a923d(0x20e)](_0x5d0423[_0x5a923d(0x2d6)],{'as':_0x5a923d(0x2e6),'foreignKey':'CampaignId'}),_0x5d0423[_0x5a923d(0x2a1)][_0x5a923d(0x20e)](_0x5d0423[_0x5a923d(0x30c)],{'as':'HopperBlacks','foreignKey':_0x5a923d(0x28a)}),_0x5d0423[_0x5a923d(0x2a1)][_0x5a923d(0x29c)](_0x5d0423['Trunk'],{'as':_0x5a923d(0x20c),'foreignKey':'TrunkId'}),_0x5d0423[_0x5a923d(0x2a1)][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x20c)],{'as':_0x5a923d(0x310),'foreignKey':_0x5a923d(0x25d)}),_0x5d0423[_0x5a923d(0x2a1)][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x18c)],{'as':_0x5a923d(0x18c),'foreignKey':'IntervalId'}),_0x5d0423['Campaign'][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x221)],{'as':'SquareProject','foreignKey':_0x5a923d(0x291)}),_0x5d0423[_0x5a923d(0x2a1)][_0x5a923d(0x26e)](_0x5d0423[_0x5a923d(0x26b)],{'as':'Lists','through':_0x5a923d(0x1fb)}),_0x5d0423['Campaign'][_0x5a923d(0x26e)](_0x5d0423[_0x5a923d(0x26b)],{'as':_0x5a923d(0x1e3),'through':_0x5a923d(0x322)}),_0x5d0423[_0x5a923d(0x333)][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x1c8)],{}),_0x5d0423['MailTransferReport'][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x1b9)],{}),_0x5d0423[_0x5a923d(0x333)][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x295)],{'foreignKey':_0x5a923d(0x214),'as':_0x5a923d(0x224)}),_0x5d0423['MailTransferReport'][_0x5a923d(0x29c)](_0x5d0423['User'],{'foreignKey':_0x5a923d(0x324),'as':'FromAgent'}),_0x5d0423[_0x5a923d(0x333)][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x1c0)],{'foreignKey':'ToUserId','as':_0x5a923d(0x305)}),_0x5d0423['MailTransferReport'][_0x5a923d(0x29c)](_0x5d0423['MailQueue'],{'foreignKey':_0x5a923d(0x2d7),'as':_0x5a923d(0x1b0)}),_0x5d0423[_0x5a923d(0x333)]['belongsTo'](_0x5d0423['MailAccount'],{'foreignKey':_0x5a923d(0x1a5),'as':_0x5a923d(0x20b)}),_0x5d0423[_0x5a923d(0x237)]['belongsTo'](_0x5d0423['ChatMessage'],{}),_0x5d0423[_0x5a923d(0x237)][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x2cb)],{}),_0x5d0423[_0x5a923d(0x237)][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x218)],{'foreignKey':_0x5a923d(0x317),'as':_0x5a923d(0x224)}),_0x5d0423[_0x5a923d(0x237)][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x1c0)],{'foreignKey':_0x5a923d(0x324),'as':_0x5a923d(0x1f2)}),_0x5d0423['ChatTransferReport'][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x1c0)],{'foreignKey':'ToUserId','as':_0x5a923d(0x305)}),_0x5d0423['ChatTransferReport'][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x26a)],{'foreignKey':'ToChatQueueId','as':_0x5a923d(0x1b0)}),_0x5d0423[_0x5a923d(0x237)][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x218)],{'foreignKey':'ToChatWebsiteId','as':_0x5a923d(0x20b)}),_0x5d0423['FaxTransferReport'][_0x5a923d(0x29c)](_0x5d0423['FaxMessage'],{}),_0x5d0423['FaxTransferReport'][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x207)],{}),_0x5d0423[_0x5a923d(0x302)][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x2a5)],{'foreignKey':'FromFaxAccountId','as':_0x5a923d(0x224)}),_0x5d0423[_0x5a923d(0x302)][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x1c0)],{'foreignKey':_0x5a923d(0x324),'as':_0x5a923d(0x1f2)}),_0x5d0423[_0x5a923d(0x302)][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x1c0)],{'foreignKey':_0x5a923d(0x211),'as':'ToAgent'}),_0x5d0423[_0x5a923d(0x302)][_0x5a923d(0x29c)](_0x5d0423['FaxQueue'],{'foreignKey':_0x5a923d(0x32b),'as':_0x5a923d(0x1b0)}),_0x5d0423[_0x5a923d(0x302)][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x2a5)],{'foreignKey':_0x5a923d(0x289),'as':'ToAccount'}),_0x5d0423[_0x5a923d(0x2e3)][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x2bc)],{}),_0x5d0423[_0x5a923d(0x2e3)][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x2f8)],{}),_0x5d0423[_0x5a923d(0x2e3)][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x1c3)],{'foreignKey':_0x5a923d(0x216),'as':_0x5a923d(0x224)}),_0x5d0423['OpenchannelTransferReport'][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x1c0)],{'foreignKey':'FromUserId','as':_0x5a923d(0x1f2)}),_0x5d0423['OpenchannelTransferReport'][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x1c0)],{'foreignKey':'ToUserId','as':_0x5a923d(0x305)}),_0x5d0423[_0x5a923d(0x2e3)][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x275)],{'foreignKey':_0x5a923d(0x2b9),'as':'ToQueue'}),_0x5d0423['OpenchannelTransferReport'][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x1c3)],{'foreignKey':'ToOpenchannelAccountId','as':'ToAccount'}),_0x5d0423[_0x5a923d(0x2c2)]['belongsTo'](_0x5d0423[_0x5a923d(0x2f2)],{}),_0x5d0423[_0x5a923d(0x2c2)][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x292)],{}),_0x5d0423['SmsTransferReport'][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x309)],{'foreignKey':_0x5a923d(0x308),'as':_0x5a923d(0x224)}),_0x5d0423[_0x5a923d(0x2c2)][_0x5a923d(0x29c)](_0x5d0423['User'],{'foreignKey':'FromUserId','as':'FromAgent'}),_0x5d0423[_0x5a923d(0x2c2)][_0x5a923d(0x29c)](_0x5d0423['User'],{'foreignKey':'ToUserId','as':_0x5a923d(0x305)}),_0x5d0423[_0x5a923d(0x2c2)][_0x5a923d(0x29c)](_0x5d0423['SmsQueue'],{'foreignKey':'ToSmsQueueId','as':'ToQueue'}),_0x5d0423[_0x5a923d(0x2c2)]['belongsTo'](_0x5d0423[_0x5a923d(0x309)],{'foreignKey':_0x5a923d(0x2e7),'as':_0x5a923d(0x20b)}),_0x5d0423[_0x5a923d(0x26b)][_0x5a923d(0x20e)](_0x5d0423[_0x5a923d(0x286)],{'as':'Dispositions','foreignKey':'ListId'}),_0x5d0423['CmList'][_0x5a923d(0x20e)](_0x5d0423[_0x5a923d(0x2aa)],{'as':_0x5a923d(0x27d),'foreignKey':_0x5a923d(0x1c5)}),_0x5d0423[_0x5a923d(0x26b)][_0x5a923d(0x20e)](_0x5d0423[_0x5a923d(0x1da)],{'as':'Contacts','onDelete':'cascade','foreignKey':_0x5a923d(0x1c5)}),_0x5d0423[_0x5a923d(0x26b)][_0x5a923d(0x20e)](_0x5d0423[_0x5a923d(0x245)],{'as':_0x5a923d(0x183),'foreignKey':_0x5a923d(0x1c5)}),_0x5d0423[_0x5a923d(0x26b)][_0x5a923d(0x20e)](_0x5d0423[_0x5a923d(0x2d6)],{'as':'HopperHistory','foreignKey':'ListId'}),_0x5d0423['CmList'][_0x5a923d(0x20e)](_0x5d0423[_0x5a923d(0x236)],{'as':_0x5a923d(0x236),'foreignKey':_0x5a923d(0x1c5)}),_0x5d0423['CmList'][_0x5a923d(0x26e)](_0x5d0423['VoiceQueue'],{'as':_0x5a923d(0x1d6),'through':'voice_queues_has_cm_lists'}),_0x5d0423[_0x5a923d(0x26b)][_0x5a923d(0x26e)](_0x5d0423[_0x5a923d(0x1c0)],{'as':_0x5a923d(0x313),'through':_0x5a923d(0x17e)}),_0x5d0423[_0x5a923d(0x249)][_0x5a923d(0x20e)](_0x5d0423[_0x5a923d(0x20f)],{'as':_0x5a923d(0x265),'onDelete':_0x5a923d(0x298)}),_0x5d0423[_0x5a923d(0x249)][_0x5a923d(0x26e)](_0x5d0423[_0x5a923d(0x1c0)],{'as':_0x5a923d(0x313),'through':_0x5a923d(0x252)}),_0x5d0423['UserProfile']['hasMany'](_0x5d0423[_0x5a923d(0x1c0)],{'as':_0x5a923d(0x196),'foreignKey':_0x5a923d(0x1aa)}),_0x5d0423[_0x5a923d(0x202)][_0x5a923d(0x20e)](_0x5d0423['UserProfileSection'],{'as':_0x5a923d(0x262),'foreignKey':_0x5a923d(0x1aa),'onDelete':_0x5a923d(0x298)}),_0x5d0423[_0x5a923d(0x2f1)]['hasMany'](_0x5d0423[_0x5a923d(0x293)],{'as':_0x5a923d(0x1d5),'foreignKey':_0x5a923d(0x1d0),'onDelete':_0x5a923d(0x298)}),_0x5d0423[_0x5a923d(0x2ef)]['hasMany'](_0x5d0423[_0x5a923d(0x286)],{'as':_0x5a923d(0x22b),'foreignKey':_0x5a923d(0x2b3)}),_0x5d0423[_0x5a923d(0x2ef)][_0x5a923d(0x20e)](_0x5d0423[_0x5a923d(0x2a9)],{'as':_0x5a923d(0x2de),'foreignKey':_0x5a923d(0x2b3)}),_0x5d0423[_0x5a923d(0x2ef)]['hasMany'](_0x5d0423[_0x5a923d(0x22a)],{'as':_0x5a923d(0x1a6),'foreignKey':_0x5a923d(0x2b3)}),_0x5d0423[_0x5a923d(0x2ef)][_0x5a923d(0x20e)](_0x5d0423[_0x5a923d(0x251)],{'as':_0x5a923d(0x18a)}),_0x5d0423[_0x5a923d(0x2ef)]['hasMany'](_0x5d0423[_0x5a923d(0x1db)],{'as':'Applications'}),_0x5d0423['WhatsappAccount'][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x26b)],{'as':_0x5a923d(0x21a),'foreignKey':_0x5a923d(0x1c5)}),_0x5d0423[_0x5a923d(0x2ef)]['belongsTo'](_0x5d0423['Pause'],{'as':_0x5a923d(0x17a),'foreignKey':'mandatoryDispositionPauseId'}),_0x5d0423[_0x5a923d(0x2ef)]['belongsToMany'](_0x5d0423[_0x5a923d(0x1c0)],{'as':'Agents','through':'user_has_whatsapp_accounts'}),_0x5d0423['WhatsappApplication'][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x1c0)],{'onDelete':'restrict'}),_0x5d0423[_0x5a923d(0x1db)][_0x5a923d(0x29c)](_0x5d0423['WhatsappQueue'],{'onDelete':'restrict'}),_0x5d0423[_0x5a923d(0x1db)][_0x5a923d(0x29c)](_0x5d0423['WhatsappAccount'],{'onDelete':_0x5a923d(0x26d)}),_0x5d0423[_0x5a923d(0x1db)][_0x5a923d(0x29c)](_0x5d0423['Interval'],{'onDelete':_0x5a923d(0x26d),'foreignKey':_0x5a923d(0x2b0)}),_0x5d0423[_0x5a923d(0x1db)][_0x5a923d(0x29c)](_0x5d0423['Tag'],{'onDelete':_0x5a923d(0x26d),'foreignKey':_0x5a923d(0x23b)}),_0x5d0423[_0x5a923d(0x251)]['hasMany'](_0x5d0423[_0x5a923d(0x22a)],{'as':'Messages','onDelete':_0x5a923d(0x298),'foreignKey':_0x5a923d(0x29d)}),_0x5d0423['WhatsappInteraction'][_0x5a923d(0x29c)](_0x5d0423['WhatsappAccount'],{'as':_0x5a923d(0x31f),'foreignKey':_0x5a923d(0x2b3)}),_0x5d0423[_0x5a923d(0x251)]['belongsTo'](_0x5d0423['CmContact'],{'as':_0x5a923d(0x25e),'foreignKey':'ContactId'}),_0x5d0423['WhatsappInteraction'][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x1c0)],{'as':_0x5a923d(0x319),'foreignKey':_0x5a923d(0x2ee)}),_0x5d0423[_0x5a923d(0x251)][_0x5a923d(0x26e)](_0x5d0423[_0x5a923d(0x23c)],{'through':_0x5a923d(0x1dc),'as':_0x5a923d(0x2f0)}),_0x5d0423[_0x5a923d(0x251)][_0x5a923d(0x26e)](_0x5d0423['Tag'],{'through':_0x5a923d(0x1dc),'as':_0x5a923d(0x17d)}),_0x5d0423[_0x5a923d(0x251)][_0x5a923d(0x26e)](_0x5d0423[_0x5a923d(0x1c0)],{'as':_0x5a923d(0x196),'through':_0x5a923d(0x25a),'foreignKey':_0x5a923d(0x29d)}),_0x5d0423['WhatsappMessage'][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x1c0)],{'as':_0x5a923d(0x1c0)}),_0x5d0423[_0x5a923d(0x22a)][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x1da)],{'onDelete':'cascade','as':_0x5a923d(0x25e)}),_0x5d0423[_0x5a923d(0x22a)][_0x5a923d(0x29c)](_0x5d0423['WhatsappInteraction'],{'onDelete':'cascade','as':_0x5a923d(0x1b6),'foreignKey':_0x5a923d(0x29d)}),_0x5d0423[_0x5a923d(0x22a)][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x2ef)],{'as':_0x5a923d(0x31f),'foreignKey':_0x5a923d(0x2b3)}),_0x5d0423['WhatsappQueueReport']['belongsTo'](_0x5d0423['WhatsappAccount'],{}),_0x5d0423['WhatsappQueueReport'][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x26b)],{'as':_0x5a923d(0x21a),'foreignKey':_0x5a923d(0x1c5)}),_0x5d0423[_0x5a923d(0x300)][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x1da)],{'as':_0x5a923d(0x25e),'foreignKey':_0x5a923d(0x334)}),_0x5d0423[_0x5a923d(0x300)][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x251)],{}),_0x5d0423[_0x5a923d(0x300)][_0x5a923d(0x29c)](_0x5d0423['WhatsappQueue'],{}),_0x5d0423[_0x5a923d(0x300)][_0x5a923d(0x29c)](_0x5d0423['WhatsappMessage'],{}),_0x5d0423[_0x5a923d(0x300)]['belongsTo'](_0x5d0423[_0x5a923d(0x1c0)],{}),_0x5d0423[_0x5a923d(0x2f6)][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x22a)],{}),_0x5d0423[_0x5a923d(0x2f6)][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x251)],{}),_0x5d0423[_0x5a923d(0x2f6)][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x2ef)],{'foreignKey':'FromWhatsappAccountId','as':_0x5a923d(0x224)}),_0x5d0423[_0x5a923d(0x2f6)][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x2ef)],{'foreignKey':_0x5a923d(0x240),'as':_0x5a923d(0x20b)}),_0x5d0423[_0x5a923d(0x2f6)][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x238)],{'foreignKey':'ToQueueId','as':'ToQueue'}),_0x5d0423[_0x5a923d(0x2f6)][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x1c0)],{'foreignKey':'FromUserId','as':'FromAgent'}),_0x5d0423[_0x5a923d(0x2f6)][_0x5a923d(0x29c)](_0x5d0423[_0x5a923d(0x1c0)],{'foreignKey':'ToUserId','as':_0x5a923d(0x305)}),_0x5d0423[_0x5a923d(0x238)][_0x5a923d(0x26e)](_0x5d0423['User'],{'as':_0x5a923d(0x313),'through':'UserWhatsappQueue','foreignKey':'WhatsappQueueId'}),_0x5d0423['WhatsappQueue']['belongsToMany'](_0x5d0423['Team'],{'through':_0x5a923d(0x22c),'as':'Teams'}),_0x5d0423;}module[a1186_0x354745(0x1cb)][a1186_0x354745(0x18b)]=initializeAllModels; \ No newline at end of file diff --git a/server/rediscache/index.js b/server/rediscache/index.js index 67209f1..c5a89e0 100644 --- a/server/rediscache/index.js +++ b/server/rediscache/index.js @@ -1 +1 @@ -const a1023_0x2c40=['redis','socket.io-emitter','redisHost','redisPort','exports','../config/environment'];(function(_0x307bae,_0x2c404b){const _0x489703=function(_0x551e71){while(--_0x551e71){_0x307bae['push'](_0x307bae['shift']());}};_0x489703(++_0x2c404b);}(a1023_0x2c40,0x1a8));const a1023_0x4897=function(_0x307bae,_0x2c404b){_0x307bae=_0x307bae-0x0;let _0x489703=a1023_0x2c40[_0x307bae];return _0x489703;};const _0x4c9d64=a1023_0x4897,Redis=require('ioredis'),socketEmitter=require(_0x4c9d64('0x3')),config=require(_0x4c9d64('0x1')),cs=require('../config/config.service')['getConfigService'](),MAX_RETRIES=0xa,REDIS_CONFIG={'host':cs[_0x4c9d64('0x4')],'port':cs[_0x4c9d64('0x5')],'retryStrategy':function(_0x551e71){if(_0x551e71_0x3e20a3[_0xec336f('0x49')](/^chat_v/,''))[_0xec336f('0x139')](compareVersions)[_0xec336f('0xd0')]();_0x3884d9=_0x468ca6[0x0],_0x45373c=path[_0xec336f('0x118')](_0x1a6030,_0xec336f('0xa6')+_0x3884d9);}}catch(_0x500ae3){console[_0xec336f('0x78')](_0xec336f('0xf1'),_0x500ae3);}return{'chatVersion':_0x3884d9,'chatPath':_0x45373c};}async function routes(_0x444d7f){const _0x429963=_0x359851;_0x444d7f[_0x429963('0x110')](ewinston['logger']({'winstonInstance':logger,'meta':![],'statusLevels':!![],'msg':function(_0x2be6b3,_0x4d468c){const _0x1f0f2d=_0x429963;let _0x20abc5=_0x2be6b3['body'],_0x148ede=_0x1f0f2d('0xb');return!_[_0x1f0f2d('0x12e')](_0x20abc5)?(_0x148ede+=_0x1f0f2d('0x63'),maskSensitiveData(_0x20abc5)):_0x20abc5=null,util[_0x1f0f2d('0xbf')](_0x148ede,_0x2be6b3[_0x1f0f2d('0x7b')],_0x2be6b3[_0x1f0f2d('0x4d')][_0x1f0f2d('0x8a')]?_0x2be6b3[_0x1f0f2d('0x4d')]['x-forwarded-for']:_0x2be6b3[_0x1f0f2d('0x31')]['remoteAddress']||_0x2be6b3['ip'],_0x2be6b3[_0x1f0f2d('0xdb')],_0x4d468c[_0x1f0f2d('0xb2')],_0x4d468c[_0x1f0f2d('0xfb')],_0x2be6b3[_0x1f0f2d('0x4e')]?_0x2be6b3[_0x1f0f2d('0x4e')]['id']:null,_0x2be6b3['user']?_0x2be6b3['user'][_0x1f0f2d('0x46')]:null,_0x2be6b3[_0x1f0f2d('0x4e')]?_0x2be6b3['user'][_0x1f0f2d('0x129')]:null,_0x20abc5?util[_0x1f0f2d('0x45')](_0x20abc5,![],null):'');}})),_0x444d7f[_0x429963('0x110')](ewinston[_0x429963('0x9b')]({'winstonInstance':authLogger,'meta':![],'statusLevels':!![],'msg':function(_0x361a2a,_0x16dd58){const _0x1320e3=_0x429963;let _0x2e57a4=_0x1320e3('0x43');return _0x361a2a[_0x1320e3('0x32')]&&_0x361a2a[_0x1320e3('0x32')][_0x1320e3('0x6e')]&&_0x361a2a['body'][_0x1320e3('0xe8')]&&(_0x2e57a4='%s\x20%s\x20%s\x20%s\x20%sms\x20id=%s\x20name=%s\x20role=%s\x20device=%s\x20(id=%s\x20name=%s)'),util[_0x1320e3('0xbf')](_0x2e57a4,_0x361a2a[_0x1320e3('0x7b')],_0x361a2a[_0x1320e3('0x4d')][_0x1320e3('0x8a')]?_0x361a2a[_0x1320e3('0x4d')][_0x1320e3('0x8a')]:_0x361a2a[_0x1320e3('0x31')]['remoteAddress']||_0x361a2a['ip'],_0x361a2a[_0x1320e3('0xdb')],_0x16dd58[_0x1320e3('0xb2')],_0x16dd58[_0x1320e3('0xfb')],_0x361a2a[_0x1320e3('0x4e')]?_0x361a2a['user']['id']:null,_0x361a2a[_0x1320e3('0x4e')]?_0x361a2a[_0x1320e3('0x4e')][_0x1320e3('0x46')]:null,_0x361a2a[_0x1320e3('0x4e')]?_0x361a2a[_0x1320e3('0x4e')]['role']:null,_0x361a2a[_0x1320e3('0x32')]&&_0x361a2a['body'][_0x1320e3('0x6e')]?_0x361a2a[_0x1320e3('0x32')][_0x1320e3('0x6e')]:_0x1320e3('0xe3'),_0x361a2a['body']&&_0x361a2a[_0x1320e3('0x32')][_0x1320e3('0xe8')]?_0x361a2a[_0x1320e3('0x32')][_0x1320e3('0xe8')]:'',_0x361a2a[_0x1320e3('0x32')]&&_0x361a2a[_0x1320e3('0x32')][_0x1320e3('0x42')]?_0x361a2a['body'][_0x1320e3('0x42')]:'');},'ignoreRoute':function(_0x37d6b1){const _0x2ca4b9=_0x429963,_0x2cebe8=/\/api\/users\/[0-9]+\/(login|logout)/gi;return!_0x2cebe8[_0x2ca4b9('0x27')](_0x37d6b1[_0x2ca4b9('0xdb')]);}})),_0x444d7f['use'](_0x429963('0xee'),require(_0x429963('0x5b'))),_0x444d7f[_0x429963('0x110')](_0x429963('0x34'),require(_0x429963('0x25'))),_0x444d7f['use'](_0x429963('0x51'),require(_0x429963('0x15'))),_0x444d7f[_0x429963('0x110')](_0x429963('0x6f'),require(_0x429963('0x35'))),_0x444d7f[_0x429963('0x110')]('/api/voice/mohs',require(_0x429963('0x53'))),_0x444d7f[_0x429963('0x110')](_0x429963('0x11e'),require(_0x429963('0x23'))),_0x444d7f[_0x429963('0x110')](_0x429963('0x5f'),require('./api/voiceRecording')),_0x444d7f[_0x429963('0x110')](_0x429963('0xc7'),require(_0x429963('0x96'))),_0x444d7f[_0x429963('0x110')]('/api/voice/mails',require(_0x429963('0xba'))),_0x444d7f[_0x429963('0x110')](_0x429963('0x101'),require(_0x429963('0x5'))),_0x444d7f[_0x429963('0x110')](_0x429963('0xce'),require(_0x429963('0xe6'))),_0x444d7f[_0x429963('0x110')](_0x429963('0x28'),require(_0x429963('0x12'))),_0x444d7f[_0x429963('0x110')](_0x429963('0xe5'),require(_0x429963('0x144'))),_0x444d7f[_0x429963('0x110')](_0x429963('0x12f'),require(_0x429963('0x132'))),_0x444d7f[_0x429963('0x110')](_0x429963('0x50'),require(_0x429963('0xf5'))),_0x444d7f['use'](_0x429963('0xc0'),require('./api/trunk')),_0x444d7f[_0x429963('0x110')](_0x429963('0x7d'),require(_0x429963('0x2d'))),_0x444d7f['use'](_0x429963('0x146'),require('./api/mailServerOut')),_0x444d7f[_0x429963('0x110')](_0x429963('0x103'),require(_0x429963('0xc3'))),_0x444d7f[_0x429963('0x110')](_0x429963('0x2f'),require(_0x429963('0x9a'))),_0x444d7f[_0x429963('0x110')](_0x429963('0x71'),require(_0x429963('0x81'))),_0x444d7f[_0x429963('0x110')]('/api/mail/interactions',require(_0x429963('0x54'))),_0x444d7f[_0x429963('0x110')](_0x429963('0xd3'),require(_0x429963('0xb5'))),_0x444d7f[_0x429963('0x110')](_0x429963('0x8c'),require(_0x429963('0x1f'))),_0x444d7f[_0x429963('0x110')]('/api/mail/reports/queue',require(_0x429963('0x65'))),_0x444d7f[_0x429963('0x110')]('/api/dashboards',require(_0x429963('0xd1'))),_0x444d7f[_0x429963('0x110')](_0x429963('0x88'),require(_0x429963('0x73'))),_0x444d7f['use'](_0x429963('0xc5'),require(_0x429963('0x39'))),_0x444d7f[_0x429963('0x110')](_0x429963('0x11c'),require(_0x429963('0xca'))),_0x444d7f[_0x429963('0x110')](_0x429963('0x58'),require('./api/faxInteraction')),_0x444d7f[_0x429963('0x110')](_0x429963('0x128'),require(_0x429963('0x112'))),_0x444d7f[_0x429963('0x110')]('/api/fax/queues',require(_0x429963('0x115'))),_0x444d7f[_0x429963('0x110')](_0x429963('0x3d'),require(_0x429963('0x47'))),_0x444d7f['use'](_0x429963('0xbe'),require(_0x429963('0x70'))),_0x444d7f['use'](_0x429963('0x111'),require(_0x429963('0x60'))),_0x444d7f[_0x429963('0x110')]('/api/sms/interactions',require(_0x429963('0x11d'))),_0x444d7f[_0x429963('0x110')]('/api/sms/messages',require('./api/smsMessage')),_0x444d7f['use'](_0x429963('0x131'),require('./api/smsQueue')),_0x444d7f[_0x429963('0x110')](_0x429963('0x147'),require(_0x429963('0x97'))),_0x444d7f['use'](_0x429963('0x6b'),require('./api/openchannelApplication')),_0x444d7f[_0x429963('0x110')](_0x429963('0x1'),require(_0x429963('0xd2'))),_0x444d7f[_0x429963('0x110')](_0x429963('0x66'),require(_0x429963('0x7e'))),_0x444d7f[_0x429963('0x110')](_0x429963('0xc4'),require(_0x429963('0xa3'))),_0x444d7f[_0x429963('0x110')](_0x429963('0x6d'),require(_0x429963('0x102'))),_0x444d7f[_0x429963('0x110')]('/api/openchannel/reports/queue',require(_0x429963('0x29'))),_0x444d7f[_0x429963('0x110')](_0x429963('0xa0'),require(_0x429963('0xcd'))),_0x444d7f[_0x429963('0x110')](_0x429963('0x26'),require(_0x429963('0xc9'))),_0x444d7f[_0x429963('0x110')](_0x429963('0x13a'),require(_0x429963('0xa7'))),_0x444d7f[_0x429963('0x110')](_0x429963('0x8e'),require(_0x429963('0x119'))),_0x444d7f['use'](_0x429963('0xff'),require(_0x429963('0x134'))),_0x444d7f[_0x429963('0x110')](_0x429963('0x75'),require('./api/chatGroup')),_0x444d7f[_0x429963('0x110')](_0x429963('0x117'),require('./api/chatProactiveAction')),_0x444d7f['use']('/api/cm/companies',require(_0x429963('0x100'))),_0x444d7f[_0x429963('0x110')](_0x429963('0x33'),require(_0x429963('0xa2'))),_0x444d7f['use'](_0x429963('0x136'),require(_0x429963('0x64'))),_0x444d7f[_0x429963('0x110')]('/api/cm/hopper_black',require(_0x429963('0x12c'))),_0x444d7f[_0x429963('0x110')]('/api/cm/hopper_final',require(_0x429963('0x94'))),_0x444d7f[_0x429963('0x110')]('/api/cm/hopper_history',require(_0x429963('0x77'))),_0x444d7f[_0x429963('0x110')](_0x429963('0xf0'),require(_0x429963('0x55'))),_0x444d7f['use'](_0x429963('0x44'),require('./api/action')),_0x444d7f[_0x429963('0x110')](_0x429963('0xa8'),require(_0x429963('0x125'))),_0x444d7f[_0x429963('0x110')](_0x429963('0x93'),require(_0x429963('0x104'))),_0x444d7f[_0x429963('0x110')](_0x429963('0x20'),require(_0x429963('0x41'))),_0x444d7f[_0x429963('0x110')](_0x429963('0x85'),require(_0x429963('0x121'))),_0x444d7f[_0x429963('0x110')](_0x429963('0xf8'),require('./api/interval')),_0x444d7f[_0x429963('0x110')](_0x429963('0x9e'),require('./api/pause')),_0x444d7f[_0x429963('0x110')](_0x429963('0x72'),require(_0x429963('0x3'))),_0x444d7f[_0x429963('0x110')]('/api/voiceQueuesLog',require(_0x429963('0x5e'))),_0x444d7f['use'](_0x429963('0x3a'),require(_0x429963('0x14'))),_0x444d7f[_0x429963('0x110')](_0x429963('0x6'),require(_0x429963('0x21'))),_0x444d7f[_0x429963('0x110')]('/api/tags',require(_0x429963('0x142'))),_0x444d7f[_0x429963('0x110')]('/api/templates',require(_0x429963('0xb9'))),_0x444d7f['use'](_0x429963('0xf2'),require('./api/trigger')),_0x444d7f[_0x429963('0x110')](_0x429963('0x3e'),require(_0x429963('0x1d'))),_0x444d7f[_0x429963('0x110')](_0x429963('0x9f'),require('./api/integration')),_0x444d7f['use']('/api/integrations/reports',require(_0x429963('0x17'))),_0x444d7f[_0x429963('0x110')](_0x429963('0x137'),require(_0x429963('0x108'))),_0x444d7f[_0x429963('0x110')](_0x429963('0x48'),require(_0x429963('0x24'))),_0x444d7f[_0x429963('0x110')]('/api/analytics/extracted_reports',require('./api/analyticExtractedReport')),_0x444d7f[_0x429963('0x110')](_0x429963('0x145'),require(_0x429963('0xa4'))),_0x444d7f[_0x429963('0x110')](_0x429963('0xa1'),require(_0x429963('0xb8'))),_0x444d7f[_0x429963('0x110')](_0x429963('0x124'),require('./api/analyticTreeReport')),_0x444d7f[_0x429963('0x110')]('/api/integrations/salesforce/accounts',require(_0x429963('0x84'))),_0x444d7f[_0x429963('0x110')](_0x429963('0x59'),require(_0x429963('0x87'))),_0x444d7f[_0x429963('0x110')](_0x429963('0xb4'),require(_0x429963('0x4f'))),_0x444d7f[_0x429963('0x110')](_0x429963('0x11f'),require(_0x429963('0xf7'))),_0x444d7f[_0x429963('0x110')](_0x429963('0x11b'),require(_0x429963('0x8f'))),_0x444d7f['use'](_0x429963('0xb7'),require(_0x429963('0x4a'))),_0x444d7f[_0x429963('0x110')]('/api/integrations/desk/accounts',require('./api/intDeskAccount')),_0x444d7f[_0x429963('0x110')](_0x429963('0x107'),require(_0x429963('0x10'))),_0x444d7f['use'](_0x429963('0xc'),require(_0x429963('0xd8'))),_0x444d7f[_0x429963('0x110')]('/api/integrations/zoho/accounts',require('./api/intZohoAccount')),_0x444d7f['use'](_0x429963('0xd5'),require(_0x429963('0x7c'))),_0x444d7f[_0x429963('0x110')](_0x429963('0x9c'),require(_0x429963('0x2'))),_0x444d7f[_0x429963('0x110')](_0x429963('0xc2'),require(_0x429963('0xb3'))),_0x444d7f[_0x429963('0x110')](_0x429963('0xfc'),require(_0x429963('0x5a'))),_0x444d7f[_0x429963('0x110')](_0x429963('0x37'),require(_0x429963('0x13d'))),_0x444d7f['use'](_0x429963('0x109'),require(_0x429963('0x13f'))),_0x444d7f[_0x429963('0x110')](_0x429963('0xe'),require('./api/intFreshdeskConfiguration')),_0x444d7f[_0x429963('0x110')](_0x429963('0x12a'),require(_0x429963('0x7f'))),_0x444d7f[_0x429963('0x110')]('/api/integrations/vtiger/accounts',require(_0x429963('0x61'))),_0x444d7f[_0x429963('0x110')](_0x429963('0xec'),require('./api/intVtigerConfiguration')),_0x444d7f['use'](_0x429963('0xe7'),require(_0x429963('0x11a'))),_0x444d7f[_0x429963('0x110')]('/api/integrations/servicenow/accounts',require(_0x429963('0x89'))),_0x444d7f['use'](_0x429963('0x126'),require(_0x429963('0x12b'))),_0x444d7f[_0x429963('0x110')](_0x429963('0xc8'),require('./api/intServicenowField')),_0x444d7f[_0x429963('0x110')](_0x429963('0xd4'),require('./api/intDynamics365Account')),_0x444d7f[_0x429963('0x110')](_0x429963('0x86'),require(_0x429963('0xb6'))),_0x444d7f[_0x429963('0x110')](_0x429963('0x7'),require(_0x429963('0x13b'))),_0x444d7f[_0x429963('0x110')](_0x429963('0x80'),require(_0x429963('0xb0'))),_0x444d7f['use']('/api/integrations/freshsales/configurations',require(_0x429963('0x8b'))),_0x444d7f[_0x429963('0x110')]('/api/integrations/freshsales/fields',require('./api/intFreshsalesField')),_0x444d7f[_0x429963('0x110')](_0x429963('0x2c'),require(_0x429963('0x9'))),_0x444d7f[_0x429963('0x110')](_0x429963('0x16'),require(_0x429963('0xa'))),_0x444d7f[_0x429963('0x110')](_0x429963('0x95'),require(_0x429963('0x7a'))),_0x444d7f[_0x429963('0x110')](_0x429963('0xb1'),require('./api/jscriptyAnswerReport')),_0x444d7f[_0x429963('0x110')](_0x429963('0xf9'),require(_0x429963('0xa9'))),_0x444d7f[_0x429963('0x110')](_0x429963('0x13'),require(_0x429963('0x12d'))),_0x444d7f[_0x429963('0x110')](_0x429963('0x13c'),require('./api/smsQueueReport')),_0x444d7f[_0x429963('0x110')](_0x429963('0xf6'),require(_0x429963('0xfa'))),_0x444d7f['use'](_0x429963('0x69'),require(_0x429963('0x140'))),_0x444d7f[_0x429963('0x110')](_0x429963('0x30'),require('./api/jscriptyProject')),_0x444d7f[_0x429963('0x110')](_0x429963('0x76'),require('./api/setting')),_0x444d7f[_0x429963('0x110')](_0x429963('0xd'),require(_0x429963('0xeb'))),_0x444d7f[_0x429963('0x110')]('/api/square/projects',require(_0x429963('0xa5'))),_0x444d7f[_0x429963('0x110')](_0x429963('0x98'),require('./api/squareRecording')),_0x444d7f[_0x429963('0x110')]('/api/square/messages',require(_0x429963('0x10c'))),_0x444d7f[_0x429963('0x110')]('/api/teams',require(_0x429963('0xdc'))),_0x444d7f[_0x429963('0x110')](_0x429963('0x127'),require(_0x429963('0x106'))),_0x444d7f['use']('/api/campaigns',require(_0x429963('0x22'))),_0x444d7f[_0x429963('0x110')]('/api/migrations',require('./api/migration')),_0x444d7f['use'](_0x429963('0x3f'),require('./api/attachment')),_0x444d7f[_0x429963('0x110')](_0x429963('0xe1'),require(_0x429963('0xda'))),_0x444d7f['use'](_0x429963('0x38'),require(_0x429963('0xef'))),_0x444d7f[_0x429963('0x110')](_0x429963('0xd9'),require('./api/chatTransferReport')),_0x444d7f[_0x429963('0x110')](_0x429963('0x13e'),require(_0x429963('0xaa'))),_0x444d7f['use'](_0x429963('0xfe'),require(_0x429963('0xac'))),_0x444d7f['use'](_0x429963('0x74'),require(_0x429963('0x68'))),_0x444d7f['use']('/api/cm/lists',require(_0x429963('0xdf'))),_0x444d7f[_0x429963('0x110')](_0x429963('0x4c'),require(_0x429963('0x52'))),_0x444d7f[_0x429963('0x110')](_0x429963('0x91'),require(_0x429963('0xde'))),_0x444d7f['use'](_0x429963('0xcc'),require(_0x429963('0xe0'))),_0x444d7f['use'](_0x429963('0x57'),require(_0x429963('0xbc'))),_0x444d7f[_0x429963('0x110')](_0x429963('0x3c'),require(_0x429963('0xae'))),_0x444d7f[_0x429963('0x110')]('/api/whatsapp/accounts',require('./api/whatsappAccount')),_0x444d7f[_0x429963('0x110')](_0x429963('0x141'),require(_0x429963('0x6a'))),_0x444d7f[_0x429963('0x110')](_0x429963('0xad'),require(_0x429963('0x10f'))),_0x444d7f[_0x429963('0x110')](_0x429963('0xcb'),require(_0x429963('0x8'))),_0x444d7f[_0x429963('0x110')](_0x429963('0xc6'),require(_0x429963('0x2b'))),_0x444d7f[_0x429963('0x110')](_0x429963('0x113'),require(_0x429963('0x10a'))),_0x444d7f[_0x429963('0x110')](_0x429963('0x1e'),require(_0x429963('0x1c'))),_0x444d7f[_0x429963('0x110')]('/api/cloudProviders',require('./api/cloudProvider')),_0x444d7f[_0x429963('0x110')]('/api/auth/local',require(_0x429963('0xcf'))),_0x444d7f[_0x429963('0x110')](_0x429963('0xe4'),require(_0x429963('0x114'))),_0x444d7f[_0x429963('0x110')](_0x429963('0xf4'),require(_0x429963('0x19'))),_0x444d7f[_0x429963('0x110')](_0x429963('0x2a'),require(_0x429963('0xab'))),_0x444d7f['use'](_0x429963('0x99'),require(_0x429963('0x122'))),_0x444d7f[_0x429963('0x110')](_0x429963('0x1b'),require(_0x429963('0x138'))),_0x444d7f['use'](_0x429963('0xf3'),require('./api/pm2')),_0x444d7f[_0x429963('0x110')](_0x429963('0x133'),require(_0x429963('0xe2'))),_0x444d7f[_0x429963('0x110')](_0x429963('0x9d'),express['static'](path[_0x429963('0x135')](config[_0x429963('0x6c')],'..',_0x429963('0x130')))),_0x444d7f[_0x429963('0x110')](_0x429963('0xd7'),express[_0x429963('0xed')](path[_0x429963('0x135')](config[_0x429963('0x6c')],'..',_0x429963('0x18')))),_0x444d7f[_0x429963('0x110')](_0x429963('0x10e'),express[_0x429963('0xed')](path[_0x429963('0x135')](config[_0x429963('0x6c')],'..','demo'))),_0x444d7f[_0x429963('0x110')](_0x429963('0x11'),express['static'](path[_0x429963('0x135')](config[_0x429963('0x6c')],_0x429963('0x4'))));const {chatPath:_0x3440f5,chatVersion:_0x1fa272}=await getInstalledChatVersion(),_0x44be97=getConfigService();!(_0x44be97['isProduction']||_0x44be97['isTest'])&&console['log'](_0x429963('0x2e'),_0x3440f5,_0x1fa272),_0x3440f5&&_0x1fa272&&(_0x444d7f[_0x429963('0xbd')](_0x429963('0xfd'),_0x1fa272),_0x444d7f['use'](_0x429963('0x79'),express[_0x429963('0xed')](_0x3440f5))),_0x444d7f[_0x429963('0xc1')](_0x429963('0x10b'))['get'](errors[0x194]),_0x444d7f[_0x429963('0xf')]('*',function(_0x2675ec,_0x49ac4e){const _0x332244=_0x429963;_0x49ac4e[_0x332244('0x62')](path[_0x332244('0x135')](_0x444d7f[_0x332244('0xf')](_0x332244('0x8d'))+_0x332244('0x5d')));});}exports[_0x359851('0x40')]=routes; \ No newline at end of file +const a1188_0x201e=['/api/openchannel/queues','/api/integrations/zoho/fields','./api/faxApplication','/api/networks','log','./api/chatOfflineMessage','./api/faxAccount','/api/square/messages','/api/voice/transfers/reports','apidoc','/api/chat/websites','./api/chatInternalMessage','./api/jscriptySessionReport','user','./api/jscriptyProject','./api/chatGroup','./api/intFreshdeskField','./api/action','/api/dashboards/items','/api/voice/mohs','/api/integrations/salesforce/fields','/api/mail/interactions','/api/system','./api/intVtigerField','/api/chat/reports/transfer','/api/square/projects','./api/intFreshdeskAccount','/api/integrations/freshsales/configurations','/api/square/odbc','/api/mail/reports/queue','sendFile','reverse','/api/cm/lists','/api/integrations/vtiger/accounts','/api/mail/accounts','./api/voiceExtension','/api/integrations/salesforce/accounts','./api/voiceDialReport','/api/cm/companies','parse','./api/voiceMusicOnHold','/api/analytics/extracted_reports','./api/openchannelQueue','/api/integrations/sugarcrm/accounts','test','/api/campaigns','./api/screenRecording','./api/network','x-forwarded-for','./api/jscriptyQuestionReport','./api/voiceRecording','./api/voiceMailMessage','/api/voice/agents/reports','./config/config.service','./api/intFreshsalesConfiguration','/api/openchannel/applications','snippets','./config/environment','./api/voiceQueueReport','/api/analytics/default_reports','/api/analytics/custom_reports','./api/dashboard','files/plugins','./api/squareOdbc','/api/sms/accounts','./api/squareProject','root','./api/openchannelInteraction','./api/openchannelMessage','/api/jscripty/questions/reports','/api/userProfiles','/api/pauses','./api/version','%s\x20%s\x20%s\x20%s\x20%sms\x20id=%s\x20name=%s\x20role=%s','./api/intServicenowField','./api/voiceContext','get','chatPath,\x20chatVersion','/snippet','/api/integrations/zendesk/configurations','/api/chat/offline_messages','/apidoc','/api/variables','/api/automations','lodash','./api/intDeskConfiguration','/api/cm/contacts','./api/mailServerOut','./api/authGoogle','/api/cm/hopper','./api/integration','./api/webbar','/api/fax/reports/queue','/api/integrations/freshdesk/accounts','./api/intDynamics365Account','/api/voice/queues','/api/fax/queues','./api/migration','motion-chat','/api/square/reports','./api/analyticCustomReport','package.json','statusCode','./api/analyticDefaultReport','/api/sms/reports/queue','/api/fax/applications','./api/chatWebsite','body','/api/trunks','/:url(api|auth|components|app|bower_components|assets)/*','build','./api/cloudProvider','Unable\x20to\x20solve\x20chat\x20version','/api/integrations/servicenow/configurations','connection','./api/smsMessage','./api/user','method','./api/setting','/api/license','./api/intSalesforceField','static','/api/integrations/servicenow/accounts','/api/dispositions','./api/mailTransferReport','url','readdir','/api/conditions','/api/fax/reports/transfer','/api/rpc','./api/chatTransferReport','\x20body=%s','/api/openchannel/reports/queue','./api/cmHopperFinal','/api/whatsapp/messages','device','./api/whatsappQueue','./api/userProfileSection','remoteAddress','./api/condition','/api/teams','./api/analyticFieldReport','/api/fax/messages','/api/voice/mails','/api/jscripty/answers/reports','util','/api/cloudProviders','./api/cmCompany','path','/api/voice/chanspy','demo','./api/smsApplication','./api/mailApplication','/api/cm/hopper_history','/api/fax/accounts','/api/users','./api/voiceMail','promises','./api/template','./api/intSugarcrmConfiguration','/api/jira','/api/settings','/api/auth/local','/api/attachments','/api/voice/recordings','/api/whatsapp/reports/queue','./api/pm2','/api/actions','./api/faxTransferReport','./api/smsAccount','./api/openchannelApplication','./api/system','./api/intFreshsalesField','./api/whatsappTransferReport','production','./api/chatQueueReport','/api/integrations/zendesk/fields','./api/cmHopperHistory','./api/cdr','/api/whatsapp/accounts','format','./api/intZohoField','/api/analytics/tree_reports','/api/integrations/sugarcrm/configurations','set','existsSync','./api/squareReport','./api/cmList','./api/voiceAgentReport','./api/jira','./api/voiceQueuesLog','./api/smsQueue','getInstalledChatVersion','./api/voicePrefix','./api/voiceCallReport','./api/jscriptyAnswerReport','./api/intServicenowConfiguration','role','./api/intZendeskAccount','./api/whatsappMessage','appPath','./api/variable','responseTime','/api/voice/contexts','./api/voiceChanSpy','/api/sms/applications','/api/screen/recordings','/api/integrations/sugarcrm/fields','/api/cm/custom_fields','headers','chatVersion','/api/voice/extensions','chat_v','inspect','readFile','./api/rpc','/api/integrations/freshsales/fields','./api/notification','./api/disposition','/api/integrations/dynamics365/fields','use','agent_id','replace','/api/mail/out_servers','/api/integrations/servicenow/fields','includes','isTest','/api/square/details/reports','%s\x20%s\x20%s\x20%s\x20%sms\x20id=%s\x20name=%s\x20role=%s\x20device=%s\x20(id=%s\x20name=%s)','name','/api/userProfile/resources','./api/chatQueue','./api/smsInteraction','./api/cmCustomField','compare-versions','./utils/mask-sensistive-data','/api/openchannel/messages','./api/analyticMetric','./api/squareMessage','/api/integrations/vtiger/configurations','./api/intZohoAccount','/api/plugins','/api/integrations/dynamics365/configurations','./api/intVtigerAccount','/api/sms/reports/transfer','./api/userProfile','/api/cdr','/api/members/reports','/api/integrations/zoho/configurations','./api/squareRecording','%s\x20%s\x20%s\x20%s\x20%sms\x20id=%s\x20name=%s\x20role=%s\x20device=%s','/api/templates','/api/integrations/desk/accounts','/api/version','./api/faxQueueReport','/api/square/recordings','api','./api/intFreshdeskConfiguration','./api/mailQueueReport','express','resolve','/api/integrations/reports','./api/tag','./api/smsQueueReport','/api/integrations/zoho/accounts','/api/openchannel/interactions','./api/chatMessage','./api/squareReportDetail','/api/integrations/vtiger/fields','/api/integrations/freshsales/accounts','/index.html','default','./api/integrationReport','./api/intServicenowAccount','/api/chat/groups','/api/migrations','./api/mailMessage','./api/intSugarcrmField','/api/integrations/freshdesk/configurations','isProduction','/api/voiceQueuesLog','/api/chat/applications','sort','/api/openchannel/accounts','/api/jscripty/projects','auth','./api/intSalesforceConfiguration','./api/automation','/api/integrations','join','/api/integrations/freshdesk/fields','/api/chat/proactive_actions','/api/mail/queues','./api/intDeskField','./api/intSugarcrmAccount','./api/license','./api/mailQueue','./api/cmHopper','/api/integrations/desk/fields','/api/sms/interactions','dist','./api/authLocal','./api/team','/api/integrations/zendesk/accounts','./api/openchannelQueueReport','./config/logger','error','./api/cmContact','./api/intZohoConfiguration','logger','./api/whatsappInteraction'];(function(_0x1f5e34,_0x4ddc53){const _0x201ef3=function(_0x518ad3){while(--_0x518ad3){_0x1f5e34['push'](_0x1f5e34['shift']());}};_0x201ef3(++_0x4ddc53);}(a1188_0x201e,0x189));const a1188_0x518a=function(_0x1f5e34,_0x4ddc53){_0x1f5e34=_0x1f5e34-0x75;let _0x201ef3=a1188_0x201e[_0x1f5e34];return _0x201ef3;};const a1188_0xfa451a=a1188_0x518a;'use strict';const path=require(a1188_0xfa451a(0xb7)),fs=require('fs'),express=require(a1188_0xfa451a(0x126)),ewinston=require('express-winston'),util=require(a1188_0xfa451a(0xb4)),errors=require('./errors'),config=require(a1188_0xfa451a(0x193)),logger=require('./config/logger')(a1188_0xfa451a(0x123)),authLogger=require(a1188_0xfa451a(0x154))(a1188_0xfa451a(0x140)),{getConfigService}=require(a1188_0xfa451a(0x18f)),compareVersions=require(a1188_0xfa451a(0x10d)),_=require(a1188_0xfa451a(0x77)),{maskSensitiveData}=require(a1188_0xfa451a(0x10e));async function getInstalledChatVersion(){const _0x33d94c=a1188_0xfa451a,_0x120212=getConfigService();let _0x586a22='',_0x59cea5='';try{if(![_0x33d94c(0xd1),_0x33d94c(0x91)][_0x33d94c(0x104)](_0x120212['environment'])){const _0xcf15fe=path['resolve'](config['root'],'..',_0x33d94c(0x85)),_0x230a65=fs[_0x33d94c(0xdc)](_0xcf15fe);if(_0x230a65)try{const _0x20e204=await fs[_0x33d94c(0xc0)][_0x33d94c(0xf9)](path[_0x33d94c(0x144)](_0xcf15fe,_0x33d94c(0x88)),'utf-8'),_0x5a7862=JSON[_0x33d94c(0x181)](_0x20e204);_0x586a22=_0x5a7862['version'],_0x59cea5=path[_0x33d94c(0x144)](_0xcf15fe,_0x33d94c(0x14f));}catch(_0x114354){console['error'](_0x33d94c(0xe3),_0x114354);}else console['warn']('No\x20chat\x20module\x20found\x20at\x20'+_0xcf15fe);}else{const _0x1bec0a=path[_0x33d94c(0x144)](config['root'],'..',_0x33d94c(0x192)),_0x27752c=await fs[_0x33d94c(0xc0)][_0x33d94c(0xa1)](_0x1bec0a),_0x5aa08a=_0x27752c['map'](_0x56bb65=>_0x56bb65[_0x33d94c(0x101)](/^chat_v/,''))[_0x33d94c(0x13d)](compareVersions)[_0x33d94c(0x179)]();_0x586a22=_0x5aa08a[0x0],_0x59cea5=path[_0x33d94c(0x144)](_0x1bec0a,_0x33d94c(0xf7)+_0x586a22);}}catch(_0x153a83){console[_0x33d94c(0x155)](_0x33d94c(0x93),_0x153a83);}return{'chatVersion':_0x586a22,'chatPath':_0x59cea5};}async function routes(_0x92ebae){const _0x29dbef=a1188_0xfa451a;_0x92ebae[_0x29dbef(0xff)](ewinston['logger']({'winstonInstance':logger,'meta':![],'statusLevels':!![],'msg':function(_0x5d0b0c,_0x2c954b){const _0x56c133=_0x29dbef;let _0x4fc49f=_0x5d0b0c['body'],_0x584b2b=_0x56c133(0x1a3);return!_['isEmpty'](_0x4fc49f)?(_0x584b2b+=_0x56c133(0xa6),maskSensitiveData(_0x4fc49f)):_0x4fc49f=null,util[_0x56c133(0xd7)](_0x584b2b,_0x5d0b0c['method'],_0x5d0b0c['headers']['x-forwarded-for']?_0x5d0b0c[_0x56c133(0xf4)][_0x56c133(0x18a)]:_0x5d0b0c[_0x56c133(0x95)][_0x56c133(0xad)]||_0x5d0b0c['ip'],_0x5d0b0c['url'],_0x2c954b[_0x56c133(0x89)],_0x2c954b['responseTime'],_0x5d0b0c[_0x56c133(0x167)]?_0x5d0b0c[_0x56c133(0x167)]['id']:null,_0x5d0b0c[_0x56c133(0x167)]?_0x5d0b0c[_0x56c133(0x167)][_0x56c133(0x108)]:null,_0x5d0b0c[_0x56c133(0x167)]?_0x5d0b0c[_0x56c133(0x167)][_0x56c133(0xe8)]:null,_0x4fc49f?util[_0x56c133(0xf8)](_0x4fc49f,![],null):'');}})),_0x92ebae[_0x29dbef(0xff)](ewinston[_0x29dbef(0x158)]({'winstonInstance':authLogger,'meta':![],'statusLevels':!![],'msg':function(_0x1d2522,_0x5bc721){const _0x563a78=_0x29dbef;let _0x41591c=_0x563a78(0x11d);return _0x1d2522[_0x563a78(0x8e)]&&_0x1d2522['body'][_0x563a78(0xaa)]&&_0x1d2522['body'][_0x563a78(0x100)]&&(_0x41591c=_0x563a78(0x107)),util[_0x563a78(0xd7)](_0x41591c,_0x1d2522[_0x563a78(0x98)],_0x1d2522[_0x563a78(0xf4)][_0x563a78(0x18a)]?_0x1d2522['headers'][_0x563a78(0x18a)]:_0x1d2522['connection'][_0x563a78(0xad)]||_0x1d2522['ip'],_0x1d2522['url'],_0x5bc721['statusCode'],_0x5bc721[_0x563a78(0xed)],_0x1d2522[_0x563a78(0x167)]?_0x1d2522['user']['id']:null,_0x1d2522['user']?_0x1d2522[_0x563a78(0x167)][_0x563a78(0x108)]:null,_0x1d2522[_0x563a78(0x167)]?_0x1d2522['user'][_0x563a78(0xe8)]:null,_0x1d2522[_0x563a78(0x8e)]&&_0x1d2522[_0x563a78(0x8e)][_0x563a78(0xaa)]?_0x1d2522['body']['device']:'other',_0x1d2522[_0x563a78(0x8e)]&&_0x1d2522[_0x563a78(0x8e)][_0x563a78(0x100)]?_0x1d2522[_0x563a78(0x8e)][_0x563a78(0x100)]:'',_0x1d2522[_0x563a78(0x8e)]&&_0x1d2522[_0x563a78(0x8e)]['agent_name']?_0x1d2522[_0x563a78(0x8e)]['agent_name']:'');},'ignoreRoute':function(_0x232f0e){const _0x37bf58=_0x29dbef,_0x4a1a4a=/\/api\/users\/[0-9]+\/(login|logout)/gi;return!_0x4a1a4a[_0x37bf58(0x186)](_0x232f0e[_0x37bf58(0xa0)]);}})),_0x92ebae[_0x29dbef(0xff)](_0x29dbef(0xbe),require(_0x29dbef(0x97))),_0x92ebae[_0x29dbef(0xff)](_0x29dbef(0xb8),require(_0x29dbef(0xef))),_0x92ebae[_0x29dbef(0xff)](_0x29dbef(0xee),require(_0x29dbef(0x1a5))),_0x92ebae[_0x29dbef(0xff)](_0x29dbef(0xf6),require(_0x29dbef(0x17d))),_0x92ebae[_0x29dbef(0xff)](_0x29dbef(0x16d),require(_0x29dbef(0x182))),_0x92ebae[_0x29dbef(0xff)](_0x29dbef(0x82),require('./api/voiceQueue')),_0x92ebae[_0x29dbef(0xff)](_0x29dbef(0xc7),require(_0x29dbef(0x18c))),_0x92ebae[_0x29dbef(0xff)](_0x29dbef(0xf1),require(_0x29dbef(0x188))),_0x92ebae['use'](_0x29dbef(0xb2),require(_0x29dbef(0xbf))),_0x92ebae[_0x29dbef(0xff)]('/api/voice/mails/messages',require(_0x29dbef(0x18d))),_0x92ebae[_0x29dbef(0xff)]('/api/voice/calls/reports',require(_0x29dbef(0xe5))),_0x92ebae[_0x29dbef(0xff)]('/api/voice/dials/reports',require(_0x29dbef(0x17f))),_0x92ebae['use'](_0x29dbef(0x18e),require(_0x29dbef(0xdf))),_0x92ebae[_0x29dbef(0xff)]('/api/voice/queues/reports',require(_0x29dbef(0x194))),_0x92ebae['use'](_0x29dbef(0x11a),require('./api/memberReport')),_0x92ebae[_0x29dbef(0xff)](_0x29dbef(0x8f),require('./api/trunk')),_0x92ebae[_0x29dbef(0xff)](_0x29dbef(0x162),require('./api/voiceTransferReport')),_0x92ebae['use'](_0x29dbef(0x102),require(_0x29dbef(0x7a))),_0x92ebae[_0x29dbef(0xff)](_0x29dbef(0x17c),require('./api/mailAccount')),_0x92ebae['use'](_0x29dbef(0x147),require(_0x29dbef(0x14b))),_0x92ebae[_0x29dbef(0xff)]('/api/mail/substatuses',require('./api/mailSubstatus')),_0x92ebae['use'](_0x29dbef(0x16f),require('./api/mailInteraction')),_0x92ebae['use']('/api/mail/messages',require(_0x29dbef(0x137))),_0x92ebae['use']('/api/mail/applications',require(_0x29dbef(0xbb))),_0x92ebae['use'](_0x29dbef(0x177),require(_0x29dbef(0x125))),_0x92ebae[_0x29dbef(0xff)]('/api/dashboards',require(_0x29dbef(0x197))),_0x92ebae[_0x29dbef(0xff)](_0x29dbef(0x16c),require('./api/dashboardItem')),_0x92ebae[_0x29dbef(0xff)](_0x29dbef(0xbd),require(_0x29dbef(0x160))),_0x92ebae[_0x29dbef(0xff)](_0x29dbef(0x8c),require(_0x29dbef(0x15c))),_0x92ebae['use']('/api/fax/interactions',require('./api/faxInteraction')),_0x92ebae[_0x29dbef(0xff)](_0x29dbef(0xb1),require('./api/faxMessage')),_0x92ebae[_0x29dbef(0xff)](_0x29dbef(0x83),require('./api/faxQueue')),_0x92ebae[_0x29dbef(0xff)](_0x29dbef(0x7f),require(_0x29dbef(0x121))),_0x92ebae[_0x29dbef(0xff)](_0x29dbef(0x19a),require(_0x29dbef(0xcc))),_0x92ebae['use'](_0x29dbef(0xf0),require(_0x29dbef(0xba))),_0x92ebae[_0x29dbef(0xff)](_0x29dbef(0x14e),require(_0x29dbef(0x10b))),_0x92ebae[_0x29dbef(0xff)]('/api/sms/messages',require(_0x29dbef(0x96))),_0x92ebae[_0x29dbef(0xff)]('/api/sms/queues',require(_0x29dbef(0xe2))),_0x92ebae[_0x29dbef(0xff)](_0x29dbef(0x13e),require('./api/openchannelAccount')),_0x92ebae[_0x29dbef(0xff)](_0x29dbef(0x191),require(_0x29dbef(0xcd))),_0x92ebae['use'](_0x29dbef(0x12c),require(_0x29dbef(0x19d))),_0x92ebae[_0x29dbef(0xff)](_0x29dbef(0x10f),require(_0x29dbef(0x19e))),_0x92ebae[_0x29dbef(0xff)](_0x29dbef(0x15a),require(_0x29dbef(0x184))),_0x92ebae['use'](_0x29dbef(0x164),require(_0x29dbef(0x8d))),_0x92ebae[_0x29dbef(0xff)](_0x29dbef(0xa7),require(_0x29dbef(0x153))),_0x92ebae['use'](_0x29dbef(0x13c),require('./api/chatApplication')),_0x92ebae['use']('/api/chat/interactions',require('./api/chatInteraction')),_0x92ebae[_0x29dbef(0xff)]('/api/chat/messages',require(_0x29dbef(0x12d))),_0x92ebae['use'](_0x29dbef(0x1aa),require(_0x29dbef(0x15f))),_0x92ebae[_0x29dbef(0xff)]('/api/chat/queues',require(_0x29dbef(0x10a))),_0x92ebae[_0x29dbef(0xff)](_0x29dbef(0x135),require(_0x29dbef(0x169))),_0x92ebae[_0x29dbef(0xff)](_0x29dbef(0x146),require('./api/chatProactiveAction')),_0x92ebae[_0x29dbef(0xff)](_0x29dbef(0x180),require(_0x29dbef(0xb6))),_0x92ebae['use'](_0x29dbef(0x79),require(_0x29dbef(0x156))),_0x92ebae[_0x29dbef(0xff)](_0x29dbef(0x7c),require(_0x29dbef(0x14c))),_0x92ebae['use']('/api/cm/hopper_black',require('./api/cmHopperBlack')),_0x92ebae[_0x29dbef(0xff)]('/api/cm/hopper_final',require(_0x29dbef(0xa8))),_0x92ebae[_0x29dbef(0xff)](_0x29dbef(0xbc),require(_0x29dbef(0xd4))),_0x92ebae[_0x29dbef(0xff)](_0x29dbef(0xf3),require(_0x29dbef(0x10c))),_0x92ebae[_0x29dbef(0xff)](_0x29dbef(0xca),require(_0x29dbef(0x16b))),_0x92ebae['use'](_0x29dbef(0x76),require(_0x29dbef(0x142))),_0x92ebae[_0x29dbef(0xff)]('/api/canned_answers',require('./api/cannedAnswer')),_0x92ebae[_0x29dbef(0xff)](_0x29dbef(0x9e),require(_0x29dbef(0xfd))),_0x92ebae[_0x29dbef(0xff)](_0x29dbef(0xa2),require(_0x29dbef(0xae))),_0x92ebae[_0x29dbef(0xff)]('/api/intervals',require('./api/interval')),_0x92ebae[_0x29dbef(0xff)](_0x29dbef(0x1a1),require('./api/pause')),_0x92ebae['use'](_0x29dbef(0x119),require(_0x29dbef(0xd5))),_0x92ebae['use'](_0x29dbef(0x13b),require(_0x29dbef(0xe1))),_0x92ebae[_0x29dbef(0xff)]('/api/schedules',require('./api/schedule')),_0x92ebae[_0x29dbef(0xff)]('/api/sounds',require('./api/sound')),_0x92ebae['use']('/api/tags',require(_0x29dbef(0x129))),_0x92ebae[_0x29dbef(0xff)](_0x29dbef(0x11e),require(_0x29dbef(0xc1))),_0x92ebae['use']('/api/triggers',require('./api/trigger')),_0x92ebae[_0x29dbef(0xff)](_0x29dbef(0x75),require(_0x29dbef(0xec))),_0x92ebae[_0x29dbef(0xff)](_0x29dbef(0x143),require(_0x29dbef(0x7d))),_0x92ebae['use'](_0x29dbef(0x128),require(_0x29dbef(0x133))),_0x92ebae[_0x29dbef(0xff)](_0x29dbef(0x196),require(_0x29dbef(0x87))),_0x92ebae[_0x29dbef(0xff)](_0x29dbef(0x195),require(_0x29dbef(0x8a))),_0x92ebae[_0x29dbef(0xff)](_0x29dbef(0x183),require('./api/analyticExtractedReport')),_0x92ebae[_0x29dbef(0xff)]('/api/analytics/metrics',require(_0x29dbef(0x110))),_0x92ebae[_0x29dbef(0xff)]('/api/analytics/field_reports',require(_0x29dbef(0xb0))),_0x92ebae['use'](_0x29dbef(0xd9),require('./api/analyticTreeReport')),_0x92ebae['use'](_0x29dbef(0x17e),require('./api/intSalesforceAccount')),_0x92ebae[_0x29dbef(0xff)]('/api/integrations/salesforce/configurations',require(_0x29dbef(0x141))),_0x92ebae[_0x29dbef(0xff)](_0x29dbef(0x16e),require(_0x29dbef(0x9b))),_0x92ebae[_0x29dbef(0xff)](_0x29dbef(0x185),require(_0x29dbef(0x149))),_0x92ebae[_0x29dbef(0xff)](_0x29dbef(0xda),require(_0x29dbef(0xc2))),_0x92ebae[_0x29dbef(0xff)](_0x29dbef(0xf2),require(_0x29dbef(0x138))),_0x92ebae[_0x29dbef(0xff)](_0x29dbef(0x11f),require('./api/intDeskAccount')),_0x92ebae['use']('/api/integrations/desk/configurations',require(_0x29dbef(0x78))),_0x92ebae[_0x29dbef(0xff)](_0x29dbef(0x14d),require(_0x29dbef(0x148))),_0x92ebae[_0x29dbef(0xff)](_0x29dbef(0x12b),require(_0x29dbef(0x113))),_0x92ebae[_0x29dbef(0xff)](_0x29dbef(0x11b),require(_0x29dbef(0x157))),_0x92ebae[_0x29dbef(0xff)](_0x29dbef(0x15b),require(_0x29dbef(0xd8))),_0x92ebae[_0x29dbef(0xff)](_0x29dbef(0x152),require(_0x29dbef(0xe9))),_0x92ebae['use'](_0x29dbef(0x1a9),require('./api/intZendeskConfiguration')),_0x92ebae[_0x29dbef(0xff)](_0x29dbef(0xd3),require('./api/intZendeskField')),_0x92ebae[_0x29dbef(0xff)](_0x29dbef(0x80),require(_0x29dbef(0x174))),_0x92ebae[_0x29dbef(0xff)](_0x29dbef(0x139),require(_0x29dbef(0x124))),_0x92ebae[_0x29dbef(0xff)](_0x29dbef(0x145),require(_0x29dbef(0x16a))),_0x92ebae[_0x29dbef(0xff)](_0x29dbef(0x17b),require(_0x29dbef(0x116))),_0x92ebae[_0x29dbef(0xff)](_0x29dbef(0x112),require('./api/intVtigerConfiguration')),_0x92ebae['use'](_0x29dbef(0x12f),require(_0x29dbef(0x171))),_0x92ebae[_0x29dbef(0xff)](_0x29dbef(0x9d),require(_0x29dbef(0x134))),_0x92ebae[_0x29dbef(0xff)](_0x29dbef(0x94),require(_0x29dbef(0xe7))),_0x92ebae[_0x29dbef(0xff)](_0x29dbef(0x103),require(_0x29dbef(0x1a4))),_0x92ebae[_0x29dbef(0xff)]('/api/integrations/dynamics365/accounts',require(_0x29dbef(0x81))),_0x92ebae[_0x29dbef(0xff)](_0x29dbef(0x115),require('./api/intDynamics365Configuration')),_0x92ebae[_0x29dbef(0xff)](_0x29dbef(0xfe),require('./api/intDynamics365Field')),_0x92ebae['use'](_0x29dbef(0x130),require('./api/intFreshsalesAccount')),_0x92ebae['use'](_0x29dbef(0x175),require(_0x29dbef(0x190))),_0x92ebae[_0x29dbef(0xff)](_0x29dbef(0xfb),require(_0x29dbef(0xcf))),_0x92ebae['use'](_0x29dbef(0x15d),require(_0x29dbef(0x189))),_0x92ebae['use']('/api/chat/reports/queue',require(_0x29dbef(0xd2))),_0x92ebae[_0x29dbef(0xff)]('/api/chat/internal/messages',require(_0x29dbef(0x165))),_0x92ebae[_0x29dbef(0xff)](_0x29dbef(0xb3),require(_0x29dbef(0xe6))),_0x92ebae[_0x29dbef(0xff)](_0x29dbef(0x19f),require(_0x29dbef(0x18b))),_0x92ebae[_0x29dbef(0xff)]('/api/jscripty/sessions/reports',require(_0x29dbef(0x166))),_0x92ebae[_0x29dbef(0xff)](_0x29dbef(0x8b),require(_0x29dbef(0x12a))),_0x92ebae[_0x29dbef(0xff)](_0x29dbef(0x86),require(_0x29dbef(0xdd))),_0x92ebae[_0x29dbef(0xff)](_0x29dbef(0x106),require(_0x29dbef(0x12e))),_0x92ebae[_0x29dbef(0xff)](_0x29dbef(0x13f),require(_0x29dbef(0x168))),_0x92ebae[_0x29dbef(0xff)](_0x29dbef(0xc4),require(_0x29dbef(0x99))),_0x92ebae[_0x29dbef(0xff)](_0x29dbef(0x176),require(_0x29dbef(0x199))),_0x92ebae[_0x29dbef(0xff)](_0x29dbef(0x173),require(_0x29dbef(0x19b))),_0x92ebae[_0x29dbef(0xff)](_0x29dbef(0x122),require(_0x29dbef(0x11c))),_0x92ebae['use'](_0x29dbef(0x161),require(_0x29dbef(0x111))),_0x92ebae[_0x29dbef(0xff)](_0x29dbef(0xaf),require(_0x29dbef(0x151))),_0x92ebae[_0x29dbef(0xff)](_0x29dbef(0x9a),require(_0x29dbef(0x14a))),_0x92ebae[_0x29dbef(0xff)](_0x29dbef(0x187),require('./api/campaign')),_0x92ebae[_0x29dbef(0xff)](_0x29dbef(0x136),require(_0x29dbef(0x84))),_0x92ebae[_0x29dbef(0xff)](_0x29dbef(0xc6),require('./api/attachment')),_0x92ebae[_0x29dbef(0xff)](_0x29dbef(0x114),require('./api/plugin')),_0x92ebae[_0x29dbef(0xff)]('/api/mail/reports/transfer',require(_0x29dbef(0x9f))),_0x92ebae[_0x29dbef(0xff)](_0x29dbef(0x172),require(_0x29dbef(0xa5))),_0x92ebae[_0x29dbef(0xff)](_0x29dbef(0xa3),require(_0x29dbef(0xcb))),_0x92ebae[_0x29dbef(0xff)]('/api/openchannel/reports/transfer',require('./api/openchannelTransferReport')),_0x92ebae[_0x29dbef(0xff)](_0x29dbef(0x117),require('./api/smsTransferReport')),_0x92ebae[_0x29dbef(0xff)](_0x29dbef(0x17a),require(_0x29dbef(0xde))),_0x92ebae[_0x29dbef(0xff)]('/api/voice/prefixes',require(_0x29dbef(0xe4))),_0x92ebae[_0x29dbef(0xff)](_0x29dbef(0x1a0),require(_0x29dbef(0x118))),_0x92ebae[_0x29dbef(0xff)]('/api/userProfile/sections',require(_0x29dbef(0xac))),_0x92ebae['use'](_0x29dbef(0x109),require('./api/userProfileResource')),_0x92ebae['use']('/api/notifications',require(_0x29dbef(0xfc))),_0x92ebae[_0x29dbef(0xff)](_0x29dbef(0xd6),require('./api/whatsappAccount')),_0x92ebae['use']('/api/whatsapp/applications',require('./api/whatsappApplication')),_0x92ebae[_0x29dbef(0xff)]('/api/whatsapp/interactions',require(_0x29dbef(0x159))),_0x92ebae['use'](_0x29dbef(0xa9),require(_0x29dbef(0xea))),_0x92ebae[_0x29dbef(0xff)](_0x29dbef(0xc8),require('./api/whatsappQueueReport')),_0x92ebae[_0x29dbef(0xff)]('/api/whatsapp/reports/transfer',require(_0x29dbef(0xd0))),_0x92ebae['use']('/api/whatsapp/queues',require(_0x29dbef(0xab))),_0x92ebae[_0x29dbef(0xff)](_0x29dbef(0xb5),require(_0x29dbef(0x92))),_0x92ebae[_0x29dbef(0xff)](_0x29dbef(0xc5),require(_0x29dbef(0x150))),_0x92ebae[_0x29dbef(0xff)]('/api/auth/google',require(_0x29dbef(0x7b))),_0x92ebae[_0x29dbef(0xff)](_0x29dbef(0xc3),require(_0x29dbef(0xe0))),_0x92ebae[_0x29dbef(0xff)](_0x29dbef(0xa4),require(_0x29dbef(0xfa))),_0x92ebae['use'](_0x29dbef(0x120),require(_0x29dbef(0x1a2))),_0x92ebae['use'](_0x29dbef(0x170),require(_0x29dbef(0xce))),_0x92ebae[_0x29dbef(0xff)]('/api/pm2',require(_0x29dbef(0xc9))),_0x92ebae[_0x29dbef(0xff)]('/api/webbar',require(_0x29dbef(0x7e))),_0x92ebae[_0x29dbef(0xff)](_0x29dbef(0x1ab),express[_0x29dbef(0x9c)](path[_0x29dbef(0x127)](config[_0x29dbef(0x19c)],'..',_0x29dbef(0x163)))),_0x92ebae[_0x29dbef(0xff)]('/www',express[_0x29dbef(0x9c)](path[_0x29dbef(0x127)](config[_0x29dbef(0x19c)],'..','www'))),_0x92ebae['use']('/demo',express[_0x29dbef(0x9c)](path[_0x29dbef(0x127)](config[_0x29dbef(0x19c)],'..',_0x29dbef(0xb9)))),_0x92ebae[_0x29dbef(0xff)]('/plugins',express[_0x29dbef(0x9c)](path[_0x29dbef(0x127)](config['root'],_0x29dbef(0x198))));const {chatPath:_0x4c2ba9,chatVersion:_0x452a47}=await getInstalledChatVersion(),_0x1107fb=getConfigService();!(_0x1107fb[_0x29dbef(0x13a)]||_0x1107fb[_0x29dbef(0x105)])&&console[_0x29dbef(0x15e)](_0x29dbef(0x1a7),_0x4c2ba9,_0x452a47),_0x4c2ba9&&_0x452a47&&(_0x92ebae[_0x29dbef(0xdb)](_0x29dbef(0xf5),_0x452a47),_0x92ebae['use'](_0x29dbef(0x1a8),express[_0x29dbef(0x9c)](_0x4c2ba9))),_0x92ebae['route'](_0x29dbef(0x90))[_0x29dbef(0x1a6)](errors[0x194]),_0x92ebae[_0x29dbef(0x1a6)]('*',function(_0x1eea49,_0x283220){const _0x4c7e84=_0x29dbef;_0x283220[_0x4c7e84(0x178)](path[_0x4c7e84(0x127)](_0x92ebae['get'](_0x4c7e84(0xeb))+_0x4c7e84(0x131)));});}exports[a1188_0xfa451a(0x132)]=routes; \ No newline at end of file diff --git a/server/rpc/index.js b/server/rpc/index.js index 529b80c..765bc6a 100644 --- a/server/rpc/index.js +++ b/server/rpc/index.js @@ -1 +1 @@ -const a1025_0x1f34=['../api/squareReportDetail/squareReportDetail.rpc','exports','../api/faxInteraction/faxInteraction.rpc','../api/voiceDialReport/voiceDialReport.rpc','../api/intVtigerAccount/intVtigerAccount.rpc','../api/voiceExtension/voiceExtension.rpc','../api/cmHopperBlack/cmHopperBlack.rpc','http','../config/environment','../api/intServicenowAccount/intServicenowAccount.rpc','../api/voiceTransferReport/voiceTransferReport.rpc','../api/faxMessage/faxMessage.rpc','../api/intSugarcrmAccount/intSugarcrmAccount.rpc','../api/openchannelQueueReport/openchannelQueueReport.rpc','../api/faxApplication/faxApplication.rpc','merge','../api/pause/pause.rpc','../api/voiceRecording/voiceRecording.rpc','listen','../api/campaign/campaign.rpc','../api/variable/variable.rpc','../api/cmHopperHistory/cmHopperHistory.rpc','../api/mailApplication/mailApplication.rpc','../api/squareOdbc/squareOdbc.rpc','rpc','../api/smsMessage/smsMessage.rpc','../api/mailInteraction/mailInteraction.rpc','log','../api/mailQueueReport/mailQueueReport.rpc','../api/intFreshsalesAccount/intFreshsalesAccount.rpc','../api/squareRecording/squareRecording.rpc','RPC\x20listening\x20on\x20','../api/whatsappMessage/whatsappMessage.rpc','error','port','../api/trigger/trigger.rpc','../api/smsQueueReport/smsQueueReport.rpc','../api/intZohoAccount/intZohoAccount.rpc','../api/cmHopper/cmHopper.rpc','../api/voiceQueueReport/voiceQueueReport.rpc','../api/chatQueue/chatQueue.rpc','../api/cmContact/cmContact.rpc','../api/voiceQueue/voiceQueue.rpc','../api/intDeskAccount/intDeskAccount.rpc','../api/template/template.rpc','../api/interval/interval.rpc','default','../api/whatsappAccount/whatsappAccount.rpc','../api/intZendeskAccount/intZendeskAccount.rpc','../api/trunk/trunk.rpc','../api/mailAccount/mailAccount.rpc','../api/intSalesforceAccount/intSalesforceAccount.rpc','jayson/promise','../api/cmHopperFinal/cmHopperFinal.rpc','../api/openchannelQueue/openchannelQueue.rpc','../api/mailMessage/mailMessage.rpc','../api/chatInteraction/chatInteraction.rpc','../api/openchannelApplication/openchannelApplication.rpc','Express\x20RPC\x20server\x20closed','../api/intDynamics365Account/intDynamics365Account.rpc','../api/plugin/plugin.rpc','../api/openchannelInteraction/openchannelInteraction.rpc','../api/mailQueue/mailQueue.rpc','Express\x20RPC\x20server\x20listening\x20on\x20%s:%d!','../api/smsAccount/smsAccount.rpc','lodash','../api/voiceCallReport/voiceCallReport.rpc','../api/sound/sound.rpc','../api/squareReport/squareReport.rpc','server','../api/faxQueue/faxQueue.rpc','../api/faxAccount/faxAccount.rpc','../api/chatQueueReport/chatQueueReport.rpc','../api/voiceAgentReport/voiceAgentReport.rpc','close','../api/smsQueue/smsQueue.rpc','../api/mailServerIn/mailServerIn.rpc','../api/attachment/attachment.rpc','../api/chatMessage/chatMessage.rpc'];(function(_0x38bb0a,_0x1f34ff){const _0x3124b8=function(_0x390599){while(--_0x390599){_0x38bb0a['push'](_0x38bb0a['shift']());}};_0x3124b8(++_0x1f34ff);}(a1025_0x1f34,0x1ed));const a1025_0x3124=function(_0x38bb0a,_0x1f34ff){_0x38bb0a=_0x38bb0a-0x0;let _0x3124b8=a1025_0x1f34[_0x38bb0a];return _0x3124b8;};const _0xf37c6e=a1025_0x3124;'use strict';const jayson=require(_0xf37c6e('0x21')),_=require(_0xf37c6e('0x2e')),config=require(_0xf37c6e('0x44'));function init(){const _0x290939=_0xf37c6e;let _0x390599={};return _0x390599=_[_0x290939('0x4b')](_0x390599,require('../api/user/user.rpc')),_0x390599=_[_0x290939('0x4b')](_0x390599,require(_0x290939('0x41'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require(_0x290939('0x17'))),_0x390599=_['merge'](_0x390599,require(_0x290939('0x4d'))),_0x390599=_['merge'](_0x390599,require(_0x290939('0x2f'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require(_0x290939('0x3f'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require(_0x290939('0x36'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require(_0x290939('0x14'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require('../api/memberReport/memberReport.rpc')),_0x390599=_[_0x290939('0x4b')](_0x390599,require(_0x290939('0x1e'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require(_0x290939('0x46'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require('../api/userVoiceQueueRt/userVoiceQueueRt.rpc')),_0x390599=_[_0x290939('0x4b')](_0x390599,require(_0x290939('0x39'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require(_0x290939('0x1f'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require(_0x290939('0x2b'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require(_0x290939('0x7'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require(_0x290939('0x24'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require(_0x290939('0x3'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require(_0x290939('0x9'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require(_0x290939('0x34'))),_0x390599=_['merge'](_0x390599,require(_0x290939('0x4a'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require(_0x290939('0x3e'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require(_0x290939('0x47'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require(_0x290939('0x33'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require('../api/faxQueueReport/faxQueueReport.rpc')),_0x390599=_['merge'](_0x390599,require(_0x290939('0x2d'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require('../api/smsInteraction/smsInteraction.rpc')),_0x390599=_['merge'](_0x390599,require(_0x290939('0x6'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require(_0x290939('0x38'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require(_0x290939('0x26'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require(_0x290939('0x2a'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require('../api/openchannelMessage/openchannelMessage.rpc')),_0x390599=_[_0x290939('0x4b')](_0x390599,require(_0x290939('0x23'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require(_0x290939('0x49'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require(_0x290939('0x25'))),_0x390599=_['merge'](_0x390599,require(_0x290939('0x3b'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require(_0x290939('0x15'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require(_0x290939('0x16'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require(_0x290939('0x13'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require(_0x290939('0x42'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require(_0x290939('0x22'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require(_0x290939('0x2'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require('../api/reportAgentPreview/reportAgentPreview.rpc')),_0x390599=_['merge'](_0x390599,require(_0x290939('0x1a'))),_0x390599=_['merge'](_0x390599,require(_0x290939('0x4c'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require(_0x290939('0x30'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require(_0x290939('0x19'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require(_0x290939('0x10'))),_0x390599=_['merge'](_0x390599,require(_0x290939('0x1'))),_0x390599=_['merge'](_0x390599,require(_0x290939('0x20'))),_0x390599=_['merge'](_0x390599,require(_0x290939('0x48'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require(_0x290939('0x18'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require(_0x290939('0x12'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require(_0x290939('0x1d'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require('../api/intFreshdeskAccount/intFreshdeskAccount.rpc')),_0x390599=_[_0x290939('0x4b')](_0x390599,require(_0x290939('0x40'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require(_0x290939('0x45'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require(_0x290939('0x28'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require(_0x290939('0xa'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require(_0x290939('0x35'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require(_0x290939('0x11'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require(_0x290939('0x31'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require(_0x290939('0x3c'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require(_0x290939('0x4'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require('../api/squareProject/squareProject.rpc')),_0x390599=_['merge'](_0x390599,require(_0x290939('0xb'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require('../api/squareMessage/squareMessage.rpc')),_0x390599=_[_0x290939('0x4b')](_0x390599,require(_0x290939('0x0'))),_0x390599=_['merge'](_0x390599,require(_0x290939('0x3a'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require(_0x290939('0x29'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require(_0x290939('0x1c'))),_0x390599=_['merge'](_0x390599,require('../api/whatsappInteraction/whatsappInteraction.rpc')),_0x390599=_['merge'](_0x390599,require(_0x290939('0xd'))),_0x390599=_[_0x290939('0x4b')](_0x390599,require('../api/whatsappQueueReport/whatsappQueueReport.rpc')),_0x390599=_[_0x290939('0x4b')](_0x390599,require('../api/whatsappQueue/whatsappQueue.rpc')),_0x390599;}class RPC{constructor(_0x14e1b1){const _0x6e6586=_0xf37c6e;this[_0x6e6586('0xf')]=config[_0x6e6586('0x5')][_0x6e6586('0xf')]||config[_0x6e6586('0xf')]+0x1,this['host']=config[_0x6e6586('0x5')]['ip']||'localhost';const _0x4f9a4b=init();this[_0x6e6586('0x32')]=jayson['server'](_0x4f9a4b)[_0x6e6586('0x43')](),typeof _0x14e1b1==='function'&&this[_0x6e6586('0x32')]['on'](_0x6e6586('0xe'),_0x14e1b1);}['listen'](){const {port:_0x3d7696,host:_0x36eeed}=this;return new Promise(_0xdd57a0=>{const _0x389237=a1025_0x3124;this[_0x389237('0x32')][_0x389237('0x4e')](_0x3d7696,_0x36eeed,function(){const _0xb75afb=_0x389237;console[_0xb75afb('0x8')](_0xb75afb('0x2c'),_0x36eeed,_0x3d7696),require('../config/triggers')[_0xb75afb('0x1b')](),_0xdd57a0(_0xb75afb('0xc')+_0x36eeed+':'+_0x3d7696);});});}[_0xf37c6e('0x37')](){return new Promise(_0x1791b3=>{const _0x189e1e=a1025_0x3124;this['server'][_0x189e1e('0x37')](()=>{const _0x4ef481=_0x189e1e;console[_0x4ef481('0x8')](_0x4ef481('0x27')),_0x1791b3();});});}}module[_0xf37c6e('0x3d')]={'RPC':RPC}; \ No newline at end of file +const a1189_0x3fa7=['merge','../api/openchannelQueueReport/openchannelQueueReport.rpc','../api/voiceTransferReport/voiceTransferReport.rpc','../api/openchannelApplication/openchannelApplication.rpc','lodash','../api/campaign/campaign.rpc','localhost','../api/mailApplication/mailApplication.rpc','../api/cmHopper/cmHopper.rpc','function','../api/faxApplication/faxApplication.rpc','jayson/promise','Express\x20RPC\x20server\x20closed','../api/plugin/plugin.rpc','../api/whatsappQueueReport/whatsappQueueReport.rpc','rpc','../api/mailAccount/mailAccount.rpc','RPC','../api/squareReport/squareReport.rpc','server','../api/smsQueueReport/smsQueueReport.rpc','../api/mailInteraction/mailInteraction.rpc','default','../api/whatsappAccount/whatsappAccount.rpc','../api/mailQueue/mailQueue.rpc','../api/cmHopperFinal/cmHopperFinal.rpc','../api/memberReport/memberReport.rpc','../api/intDeskAccount/intDeskAccount.rpc','../api/cmHopperHistory/cmHopperHistory.rpc','../config/triggers','../api/faxQueueReport/faxQueueReport.rpc','../api/voiceExtension/voiceExtension.rpc','../api/mailQueueReport/mailQueueReport.rpc','../api/chatMessage/chatMessage.rpc','../api/openchannelInteraction/openchannelInteraction.rpc','../api/smsQueue/smsQueue.rpc','exports','../api/smsMessage/smsMessage.rpc','../api/whatsappQueue/whatsappQueue.rpc','../api/squareRecording/squareRecording.rpc','../api/reportAgentPreview/reportAgentPreview.rpc','../api/intFreshdeskAccount/intFreshdeskAccount.rpc','../api/squareProject/squareProject.rpc','../api/squareMessage/squareMessage.rpc','host','../api/interval/interval.rpc','../api/voiceCallReport/voiceCallReport.rpc','../api/trigger/trigger.rpc','../api/cmContact/cmContact.rpc','../api/sound/sound.rpc','../api/voiceQueue/voiceQueue.rpc','../api/mailServerIn/mailServerIn.rpc','../api/voiceAgentReport/voiceAgentReport.rpc','../api/attachment/attachment.rpc','../api/template/template.rpc','../api/intSugarcrmAccount/intSugarcrmAccount.rpc','../api/userVoiceQueueRt/userVoiceQueueRt.rpc','../api/chatQueue/chatQueue.rpc','../api/intZohoAccount/intZohoAccount.rpc','../api/user/user.rpc','Express\x20RPC\x20server\x20listening\x20on\x20%s:%d!','../config/environment','../api/trunk/trunk.rpc','../api/whatsappInteraction/whatsappInteraction.rpc','../api/openchannelMessage/openchannelMessage.rpc','../api/voiceRecording/voiceRecording.rpc','port','close','../api/faxInteraction/faxInteraction.rpc','../api/pause/pause.rpc','../api/faxMessage/faxMessage.rpc','listen','../api/faxAccount/faxAccount.rpc','../api/intFreshsalesAccount/intFreshsalesAccount.rpc','../api/mailMessage/mailMessage.rpc'];(function(_0x5ea919,_0x435e9d){const _0x3fa7f4=function(_0x1919c7){while(--_0x1919c7){_0x5ea919['push'](_0x5ea919['shift']());}};_0x3fa7f4(++_0x435e9d);}(a1189_0x3fa7,0x19b));const a1189_0x1919=function(_0x5ea919,_0x435e9d){_0x5ea919=_0x5ea919-0x138;let _0x3fa7f4=a1189_0x3fa7[_0x5ea919];return _0x3fa7f4;};const a1189_0x112566=a1189_0x1919;'use strict';const jayson=require(a1189_0x112566(0x16a)),_=require(a1189_0x112566(0x163)),config=require(a1189_0x112566(0x151));function init(){const _0xf2457f=a1189_0x112566;let _0x5c3dda={};return _0x5c3dda=_['merge'](_0x5c3dda,require(_0xf2457f(0x14f))),_0x5c3dda=_['merge'](_0x5c3dda,require(_0xf2457f(0x17e))),_0x5c3dda=_[_0xf2457f(0x15f)](_0x5c3dda,require(_0xf2457f(0x146))),_0x5c3dda=_['merge'](_0x5c3dda,require(_0xf2457f(0x155))),_0x5c3dda=_['merge'](_0x5c3dda,require(_0xf2457f(0x142))),_0x5c3dda=_[_0xf2457f(0x15f)](_0x5c3dda,require('../api/voiceDialReport/voiceDialReport.rpc')),_0x5c3dda=_['merge'](_0x5c3dda,require(_0xf2457f(0x148))),_0x5c3dda=_[_0xf2457f(0x15f)](_0x5c3dda,require('../api/voiceQueueReport/voiceQueueReport.rpc')),_0x5c3dda=_[_0xf2457f(0x15f)](_0x5c3dda,require(_0xf2457f(0x179))),_0x5c3dda=_['merge'](_0x5c3dda,require(_0xf2457f(0x152))),_0x5c3dda=_['merge'](_0x5c3dda,require(_0xf2457f(0x161))),_0x5c3dda=_['merge'](_0x5c3dda,require(_0xf2457f(0x14c))),_0x5c3dda=_[_0xf2457f(0x15f)](_0x5c3dda,require(_0xf2457f(0x147))),_0x5c3dda=_[_0xf2457f(0x15f)](_0x5c3dda,require(_0xf2457f(0x16f))),_0x5c3dda=_['merge'](_0x5c3dda,require(_0xf2457f(0x177))),_0x5c3dda=_[_0xf2457f(0x15f)](_0x5c3dda,require(_0xf2457f(0x174))),_0x5c3dda=_[_0xf2457f(0x15f)](_0x5c3dda,require(_0xf2457f(0x15e))),_0x5c3dda=_[_0xf2457f(0x15f)](_0x5c3dda,require(_0xf2457f(0x166))),_0x5c3dda=_[_0xf2457f(0x15f)](_0x5c3dda,require(_0xf2457f(0x17f))),_0x5c3dda=_['merge'](_0x5c3dda,require(_0xf2457f(0x15c))),_0x5c3dda=_[_0xf2457f(0x15f)](_0x5c3dda,require(_0xf2457f(0x169))),_0x5c3dda=_[_0xf2457f(0x15f)](_0x5c3dda,require(_0xf2457f(0x158))),_0x5c3dda=_['merge'](_0x5c3dda,require(_0xf2457f(0x15a))),_0x5c3dda=_[_0xf2457f(0x15f)](_0x5c3dda,require('../api/faxQueue/faxQueue.rpc')),_0x5c3dda=_[_0xf2457f(0x15f)](_0x5c3dda,require(_0xf2457f(0x17d))),_0x5c3dda=_[_0xf2457f(0x15f)](_0x5c3dda,require('../api/smsAccount/smsAccount.rpc')),_0x5c3dda=_[_0xf2457f(0x15f)](_0x5c3dda,require('../api/smsInteraction/smsInteraction.rpc')),_0x5c3dda=_['merge'](_0x5c3dda,require(_0xf2457f(0x139))),_0x5c3dda=_['merge'](_0x5c3dda,require(_0xf2457f(0x182))),_0x5c3dda=_[_0xf2457f(0x15f)](_0x5c3dda,require(_0xf2457f(0x162))),_0x5c3dda=_['merge'](_0x5c3dda,require(_0xf2457f(0x181))),_0x5c3dda=_[_0xf2457f(0x15f)](_0x5c3dda,require(_0xf2457f(0x154))),_0x5c3dda=_[_0xf2457f(0x15f)](_0x5c3dda,require('../api/openchannelQueue/openchannelQueue.rpc')),_0x5c3dda=_[_0xf2457f(0x15f)](_0x5c3dda,require(_0xf2457f(0x160))),_0x5c3dda=_[_0xf2457f(0x15f)](_0x5c3dda,require('../api/chatInteraction/chatInteraction.rpc')),_0x5c3dda=_[_0xf2457f(0x15f)](_0x5c3dda,require(_0xf2457f(0x180))),_0x5c3dda=_[_0xf2457f(0x15f)](_0x5c3dda,require(_0xf2457f(0x14d))),_0x5c3dda=_[_0xf2457f(0x15f)](_0x5c3dda,require(_0xf2457f(0x144))),_0x5c3dda=_[_0xf2457f(0x15f)](_0x5c3dda,require(_0xf2457f(0x167))),_0x5c3dda=_['merge'](_0x5c3dda,require('../api/cmHopperBlack/cmHopperBlack.rpc')),_0x5c3dda=_[_0xf2457f(0x15f)](_0x5c3dda,require(_0xf2457f(0x178))),_0x5c3dda=_[_0xf2457f(0x15f)](_0x5c3dda,require(_0xf2457f(0x17b))),_0x5c3dda=_['merge'](_0x5c3dda,require(_0xf2457f(0x13c))),_0x5c3dda=_[_0xf2457f(0x15f)](_0x5c3dda,require(_0xf2457f(0x141))),_0x5c3dda=_['merge'](_0x5c3dda,require(_0xf2457f(0x159))),_0x5c3dda=_[_0xf2457f(0x15f)](_0x5c3dda,require(_0xf2457f(0x145))),_0x5c3dda=_[_0xf2457f(0x15f)](_0x5c3dda,require(_0xf2457f(0x14a))),_0x5c3dda=_[_0xf2457f(0x15f)](_0x5c3dda,require(_0xf2457f(0x143))),_0x5c3dda=_[_0xf2457f(0x15f)](_0x5c3dda,require('../api/variable/variable.rpc')),_0x5c3dda=_[_0xf2457f(0x15f)](_0x5c3dda,require('../api/intSalesforceAccount/intSalesforceAccount.rpc')),_0x5c3dda=_[_0xf2457f(0x15f)](_0x5c3dda,require(_0xf2457f(0x14b))),_0x5c3dda=_[_0xf2457f(0x15f)](_0x5c3dda,require(_0xf2457f(0x17a))),_0x5c3dda=_[_0xf2457f(0x15f)](_0x5c3dda,require(_0xf2457f(0x14e))),_0x5c3dda=_['merge'](_0x5c3dda,require('../api/intZendeskAccount/intZendeskAccount.rpc')),_0x5c3dda=_[_0xf2457f(0x15f)](_0x5c3dda,require(_0xf2457f(0x13d))),_0x5c3dda=_['merge'](_0x5c3dda,require('../api/intVtigerAccount/intVtigerAccount.rpc')),_0x5c3dda=_[_0xf2457f(0x15f)](_0x5c3dda,require('../api/intServicenowAccount/intServicenowAccount.rpc')),_0x5c3dda=_[_0xf2457f(0x15f)](_0x5c3dda,require('../api/intDynamics365Account/intDynamics365Account.rpc')),_0x5c3dda=_[_0xf2457f(0x15f)](_0x5c3dda,require(_0xf2457f(0x15d))),_0x5c3dda=_[_0xf2457f(0x15f)](_0x5c3dda,require('../api/chatQueueReport/chatQueueReport.rpc')),_0x5c3dda=_['merge'](_0x5c3dda,require(_0xf2457f(0x173))),_0x5c3dda=_['merge'](_0x5c3dda,require(_0xf2457f(0x171))),_0x5c3dda=_['merge'](_0x5c3dda,require('../api/squareReportDetail/squareReportDetail.rpc')),_0x5c3dda=_['merge'](_0x5c3dda,require('../api/squareOdbc/squareOdbc.rpc')),_0x5c3dda=_[_0xf2457f(0x15f)](_0x5c3dda,require(_0xf2457f(0x13e))),_0x5c3dda=_['merge'](_0x5c3dda,require(_0xf2457f(0x13b))),_0x5c3dda=_[_0xf2457f(0x15f)](_0x5c3dda,require(_0xf2457f(0x13f))),_0x5c3dda=_[_0xf2457f(0x15f)](_0x5c3dda,require(_0xf2457f(0x164))),_0x5c3dda=_[_0xf2457f(0x15f)](_0x5c3dda,require(_0xf2457f(0x149))),_0x5c3dda=_[_0xf2457f(0x15f)](_0x5c3dda,require(_0xf2457f(0x16c))),_0x5c3dda=_[_0xf2457f(0x15f)](_0x5c3dda,require(_0xf2457f(0x176))),_0x5c3dda=_[_0xf2457f(0x15f)](_0x5c3dda,require(_0xf2457f(0x153))),_0x5c3dda=_['merge'](_0x5c3dda,require('../api/whatsappMessage/whatsappMessage.rpc')),_0x5c3dda=_[_0xf2457f(0x15f)](_0x5c3dda,require(_0xf2457f(0x16d))),_0x5c3dda=_[_0xf2457f(0x15f)](_0x5c3dda,require(_0xf2457f(0x13a))),_0x5c3dda;}class RPC{constructor(_0x41f101){const _0xaab279=a1189_0x112566;this[_0xaab279(0x156)]=config[_0xaab279(0x16e)]['port']||config[_0xaab279(0x156)]+0x1,this[_0xaab279(0x140)]=config[_0xaab279(0x16e)]['ip']||_0xaab279(0x165);const _0x490421=init();this[_0xaab279(0x172)]=jayson[_0xaab279(0x172)](_0x490421)['http'](),typeof _0x41f101===_0xaab279(0x168)&&this[_0xaab279(0x172)]['on']('error',_0x41f101);}[a1189_0x112566(0x15b)](){const {port:_0x4ead61,host:_0x1cc791}=this;return new Promise(_0x19f373=>{const _0x38e4d0=a1189_0x1919;this[_0x38e4d0(0x172)][_0x38e4d0(0x15b)](_0x4ead61,_0x1cc791,function(){const _0x283297=_0x38e4d0;console['log'](_0x283297(0x150),_0x1cc791,_0x4ead61),require(_0x283297(0x17c))[_0x283297(0x175)](),_0x19f373('RPC\x20listening\x20on\x20'+_0x1cc791+':'+_0x4ead61);});});}['close'](){return new Promise(_0x3d70a3=>{const _0x54a259=a1189_0x1919;this[_0x54a259(0x172)][_0x54a259(0x157)](()=>{const _0x28a3ed=_0x54a259;console['log'](_0x28a3ed(0x16b)),_0x3d70a3();});});}}module[a1189_0x112566(0x138)][a1189_0x112566(0x170)]=RPC; \ No newline at end of file diff --git a/server/services/agi/channel.js b/server/services/agi/channel.js index e674db5..9d00d57 100644 --- a/server/services/agi/channel.js +++ b/server/services/agi/channel.js @@ -1 +1 @@ -const a1026_0x5c41=['toLowerCase','agi','noop','setEncoding','getData','sync','startsWith','sayPhonetic','setExtension','function','SAY\x20NUMBER\x20%s\x20%s','exec','answer','streamFile','EventEmitter','STREAM\x20FILE\x20\x22%s\x22\x20\x22%s\x22','isArray','error','WAIT','exports','emit','substr','SET\x20EXTENSION\x20%s','label','length','utf8','getVariable','520-Invalid','util','replace','recordFile','no\x20code','isBoolean','GET\x20VARIABLE\x20\x22%s\x22','timeout','ID:%s\x20-\x20LABEL:\x20%s\x20-\x20MSG:\x20%s','./reply','E_AGI_SOCKET_ERROR','setPriority','indexOf','write','SET\x20CONTEXT\x20%s','destroy','join','setContext','extension','substring','ANSWER','toString','NO\x20MESSAGE','close','command','beep','line','HANGUP','ready','lodash','prototype','wait','hangup','call','E_AGI_SOCKET_CLOSE','./error','VERBOSE\x20\x22%s\x22','SET\x20VARIABLE\x20%s\x20\x22%s\x22','sayDigits','SAY\x20DIGITS\x20%s\x20%s','format','code','pipe','EXEC\x20%s\x20%s','isNumber','wav','sendRequest'];(function(_0x1e110d,_0x5c41b3){const _0x4df060=function(_0x26f0e8){while(--_0x26f0e8){_0x1e110d['push'](_0x1e110d['shift']());}};_0x4df060(++_0x5c41b3);}(a1026_0x5c41,0xd0));const a1026_0x4df0=function(_0x1e110d,_0x5c41b3){_0x1e110d=_0x1e110d-0x0;let _0x4df060=a1026_0x5c41[_0x1e110d];return _0x4df060;};const _0x4feba0=a1026_0x4df0;'use strict';const util=require(_0x4feba0('0x2a')),_=require(_0x4feba0('0x46')),EventEmitter=require('events')[_0x4feba0('0x1c')],AGIReply=require(_0x4feba0('0x32')),AGIError=require(_0x4feba0('0x2'));function AGIChannel(_0x26f0e8){const _0x159edd=_0x4feba0,_0xfae39a=this,_0x41c3d6=new AGIReply();let _0x6d0af4=![],_0x1dd711={};EventEmitter[_0x159edd('0x0')](_0xfae39a),_0x26f0e8[_0x159edd('0x11')](_0x159edd('0x27')),_0x26f0e8['setTimeout'](0x8*0x3c*0x3c*0x3e8),_0x41c3d6['setEncoding']('utf8'),_0x41c3d6['on']('headers',function(_0x11d8bf){const _0x2d9134=_0x159edd;for(const _0x1bfe39 in _0x11d8bf){_0xfae39a[_0x1bfe39]=_0x11d8bf[_0x1bfe39];}_0xfae39a[_0x2d9134('0x22')](_0x2d9134('0x45'));}),_0x41c3d6['on'](_0x159edd('0x43'),function(_0x20f90e){const _0x43ac39=_0x159edd;if(_0x20f90e[_0x43ac39('0xe')]()==_0x43ac39('0x49')){_0xfae39a[_0x43ac39('0x22')](_0x43ac39('0x49'));return;}_0x20f90e['substring'](0x0,0xb)==_0x43ac39('0x29')&&(_0x6d0af4=!![]);_0x6d0af4?(_0x1dd711['rx']+=_0x20f90e+'\x0a',_0x20f90e['search']('520\x20End\x20of\x20proper')!=-0x1&&(_0x6d0af4=![])):_0x1dd711['rx']=_0x20f90e;if(_0x6d0af4)return;if(typeof _0x1dd711['cb']==_0x43ac39('0x17')){let _0x11ec63=_0x1dd711['rx'][_0x43ac39('0x3c')](0x0,0x3),_0x2c0eab=null,_0x1a94f1=null;_0x11ec63=parseInt(_0x11ec63);if(isNaN(_0x11ec63)){_0x1dd711['cb'](null,{'code':0x1f4,'result':-0x1,'extra':_0x43ac39('0x2d')});return;}if(_0x11ec63!=0xc8){_0x1dd711['cb'](null,{'code':_0x11ec63,'result':-0x1,'extra':'KO'});return;}_0x2c0eab=_0x1dd711['rx'][_0x43ac39('0x3c')](0x4)[_0x43ac39('0x2b')]('result=','');_0x2c0eab[_0x43ac39('0x35')]('\x20')!=-0x1&&(_0x2c0eab=_0x2c0eab[_0x43ac39('0x23')](0x0,_0x2c0eab[_0x43ac39('0x35')]('\x20')));_[_0x43ac39('0x14')](_0x2c0eab,'-1')&&(_0x2c0eab=parseInt(_0x2c0eab));_0x1a94f1=_0x1dd711['rx']['split']('\x20');if(_0x1a94f1[_0x43ac39('0x26')]==0x3)_0x1a94f1=_0x1a94f1[0x2][_0x43ac39('0x3c')](0x1,_0x1a94f1[0x2][_0x43ac39('0x26')]-0x1);else{if(_0x1a94f1[_0x43ac39('0x26')]>0x3){const _0x2190e9=/\((.+)\)/,_0x2d08b1=_0x1dd711['rx']['match'](_0x2190e9);_0x2d08b1?_0x1a94f1=_0x2d08b1[0x1]:_0x1a94f1=null;}else _0x1a94f1=null;}_0x1dd711['cb'](null,{'code':_0x11ec63,'result':_0x2c0eab,'extra':_0x1a94f1});}}),_0x26f0e8['on'](_0x159edd('0x1f'),function(_0x32251f){const _0x72c576=_0x159edd;_0xfae39a[_0x72c576('0x22')](_0x72c576('0x1f'),new AGIError(_0x72c576('0x33'),_0x32251f[_0x72c576('0x8')]));}),_0x26f0e8['on'](_0x159edd('0x40'),function(){const _0x4d6cf1=_0x159edd;_0xfae39a['emit'](_0x4d6cf1('0x40'),new AGIError(_0x4d6cf1('0x1')));}),_0x26f0e8['on']('timeout',function(){const _0x41d96a=_0x159edd;_0xfae39a[_0x41d96a('0x22')](_0x41d96a('0x30'),new AGIError('E_AGI_SOCKET_TIMEOUT')),_0x26f0e8[_0x41d96a('0x38')]();}),_0x26f0e8[_0x159edd('0x9')](_0x41c3d6),(this[_0x159edd('0x41')]=function(_0x5060e0,_0x5095a8){const _0x164583=_0x159edd;_0x5060e0=_0x5060e0||'',_0x5095a8=typeof _0x5095a8=='function'?_0x5095a8:new Function(),_0x1dd711={'tx':_0x5060e0,'rx':'','cb':_0x5095a8},_0x26f0e8[_0x164583('0x36')](_0x5060e0+'\x0a');},this[_0x159edd('0x40')]=function(){_0x26f0e8['destroy']();});}util['inherits'](AGIChannel,EventEmitter),AGIChannel[_0x4feba0('0x47')][_0x4feba0('0xd')]=function(_0x11ac63){const _0x409952=_0x4feba0;return this['command'][_0x409952('0x13')](this,_0x11ac63);},AGIChannel['prototype'][_0x4feba0('0x1a')]=function(){const _0x4a7a2c=_0x4feba0;return this['sendRequest'](_0x4a7a2c('0x3d'));},AGIChannel['prototype'][_0x4feba0('0x12')]=function(_0x1980af,_0x1a48bc,_0x216e42){const _0x9bc1c1=_0x4feba0;return _0x1980af=_0x1980af===undefined?_0x9bc1c1('0x42'):_0x1980af,_0x1a48bc=_0x1a48bc===undefined?'5':_0x1a48bc,_0x216e42=_0x216e42===undefined?'1':_0x216e42,this['sendRequest'](util[_0x9bc1c1('0x7')]('GET\x20DATA\x20\x22%s\x22\x20%s\x20%s',_0x1980af,_0x1a48bc*0x3e8,_0x216e42));},AGIChannel['prototype']['noop']=function(_0x3d2e15){const _0x1c2aed=_0x4feba0;return _0x3d2e15=_0x3d2e15||_0x1c2aed('0x3f'),this[_0x1c2aed('0xd')](util[_0x1c2aed('0x7')](_0x1c2aed('0x3'),_0x3d2e15));},AGIChannel[_0x4feba0('0x47')][_0x4feba0('0x19')]=function(_0x46509f,_0xcee54a){const _0x1e0c97=_0x4feba0;if(_[_0x1e0c97('0x1e')](_0xcee54a))return this[_0x1e0c97('0xd')](util[_0x1e0c97('0x7')]('EXEC\x20%s\x20%s',_0x46509f,_0xcee54a[_0x1e0c97('0x39')](',')));return this[_0x1e0c97('0xd')](util['format'](_0x1e0c97('0xa'),_0x46509f,_0xcee54a));},AGIChannel[_0x4feba0('0x47')]['setContext']=function(_0x494b7d){const _0x4f798c=_0x4feba0;return this[_0x4f798c('0xd')](util[_0x4f798c('0x7')](_0x4f798c('0x37'),_0x494b7d));},AGIChannel['prototype'][_0x4feba0('0x16')]=function(_0x558960){const _0x5540ad=_0x4feba0;return this[_0x5540ad('0xd')](util['format'](_0x5540ad('0x24'),_0x558960));},AGIChannel[_0x4feba0('0x47')][_0x4feba0('0x34')]=function(_0x410f10){const _0x1aae36=_0x4feba0;return this[_0x1aae36('0xd')](util[_0x1aae36('0x7')]('SET\x20PRIORITY\x20%s',_0x410f10));},AGIChannel[_0x4feba0('0x47')][_0x4feba0('0x49')]=function(){const _0x2d7b6e=_0x4feba0;return this['sendRequest'](_0x2d7b6e('0x44'));},AGIChannel[_0x4feba0('0x47')]['setVariable']=function(_0x14cab1,_0x1187f5){const _0x31a684=_0x4feba0,_0x2bc4d6=_[_0x31a684('0x2e')](_0x1187f5)||_[_0x31a684('0xb')](_0x1187f5)?_0x1187f5[_0x31a684('0x3e')]():_0x1187f5;return this[_0x31a684('0xd')](util['format'](_0x31a684('0x4'),_0x14cab1,_0x2bc4d6?_0x2bc4d6['toString']()['replace'](/(\r\n|\n|\r)/gm,'\x20'):''));},AGIChannel['prototype']['sayNumber']=function(_0x5f471d,_0x3fa436){const _0x2c61ca=_0x4feba0;return this[_0x2c61ca('0xd')](util[_0x2c61ca('0x7')](_0x2c61ca('0x18'),_0x5f471d,_0x3fa436));},AGIChannel[_0x4feba0('0x47')][_0x4feba0('0x5')]=function(_0x18add0,_0x173023){const _0x228b91=_0x4feba0;return this['sendRequest'](util['format'](_0x228b91('0x6'),_0x18add0,_0x173023));},AGIChannel[_0x4feba0('0x47')][_0x4feba0('0x15')]=function(_0x46f2c3,_0x17f465){const _0x537cdf=_0x4feba0;return this[_0x537cdf('0xd')](util[_0x537cdf('0x7')]('SAY\x20PHONETIC\x20\x22%s\x22\x20%s',_0x46f2c3,_0x17f465));},AGIChannel[_0x4feba0('0x47')]['continueAt']=function(_0x390487,_0x67afc7,_0x16bade){const _0x128cdd=_0x4feba0;return _0x67afc7=_0x67afc7||this[_0x128cdd('0x3b')],_0x16bade=_0x16bade||0x1,this[_0x128cdd('0x3a')](_0x390487),this['setExtension'](_0x67afc7),this[_0x128cdd('0x34')](_0x16bade),this[_0x128cdd('0x10')](util[_0x128cdd('0x7')]('GOTO\x20%s\x20%s\x20%s',_0x390487,_0x67afc7,_0x16bade));},AGIChannel[_0x4feba0('0x47')][_0x4feba0('0x28')]=function(_0xae2ca1){const _0x509df4=_0x4feba0;return this['sendRequest'](util[_0x509df4('0x7')](_0x509df4('0x2f'),_0xae2ca1));},AGIChannel['prototype'][_0x4feba0('0x2c')]=function(_0x1b18aa,_0x1c5946,_0x1d104c,_0x4e246e,_0x3f6945,_0x1a9c8c){const _0x50d961=_0x4feba0;return _0x1c5946=_0x1c5946||_0x50d961('0xc'),_0x1d104c=_0x1d104c||'',_0x4e246e=_0x4e246e===undefined?-0x1:_0x4e246e==='-1'?-0x1:_0x4e246e*0x3e8,_0x3f6945=_0x3f6945===undefined?'':'s='+_0x3f6945,_0x1a9c8c=_0x1a9c8c?'BEEP':'',this[_0x50d961('0xd')](util[_0x50d961('0x7')]('RECORD\x20FILE\x20\x22%s\x22\x20\x22%s\x22\x20\x22%s\x22\x20%s\x20%s\x20%s',_0x1b18aa,_0x1c5946,_0x1d104c,_0x4e246e,_0x1a9c8c,_0x3f6945));},AGIChannel['prototype'][_0x4feba0('0x1b')]=function(_0x25b5d6,_0x59436f){const _0x52ba34=_0x4feba0;return _0x59436f=_0x59436f||'',this[_0x52ba34('0xd')](util[_0x52ba34('0x7')](_0x52ba34('0x1d'),_0x25b5d6,_0x59436f));},AGIChannel[_0x4feba0('0x47')][_0x4feba0('0xf')]=function(_0x5e6dbc){const _0x429870=_0x4feba0;return this[_0x429870('0x19')]('AGI',_0x5e6dbc);},AGIChannel[_0x4feba0('0x47')][_0x4feba0('0x48')]=function(_0x5ada62){const _0x5a4f58=_0x4feba0;return this[_0x5a4f58('0x19')](_0x5a4f58('0x20'),_0x5ada62);},AGIChannel[_0x4feba0('0x47')][_0x4feba0('0x1f')]=function(_0xe32018,_0x19f604){const _0x237d47=_0x4feba0;return this['noop'](util[_0x237d47('0x7')](_0x237d47('0x31'),_0xe32018['id'],_0xe32018[_0x237d47('0x25')],_0x19f604)),{'code':0x1f4,'result':'-1','extra':''};},module[_0x4feba0('0x21')]=AGIChannel; \ No newline at end of file +const a1190_0x5127=['split','toLowerCase','sayNumber','setExtension','setContext','emit','extension','startsWith','isNumber','prototype','SAY\x20DIGITS\x20%s\x20%s','join','command','indexOf','setTimeout','write','utf8','ANSWER','hangup','headers','setVariable','STREAM\x20FILE\x20\x22%s\x22\x20\x22%s\x22','timeout','520-Invalid','sayDigits','SAY\x20NUMBER\x20%s\x20%s','lodash','setEncoding','noop','HANGUP','match','replace','recordFile','beep','search','close','GOTO\x20%s\x20%s\x20%s','toString','SET\x20PRIORITY\x20%s','streamFile','label','call','substr','length','error','destroy','VERBOSE\x20\x22%s\x22','wait','no\x20code','isArray','answer','EXEC\x20%s\x20%s','RECORD\x20FILE\x20\x22%s\x22\x20\x22%s\x22\x20\x22%s\x22\x20%s\x20%s\x20%s','sendRequest','function','./reply','substring','SET\x20EXTENSION\x20%s','exec','E_AGI_SOCKET_TIMEOUT','result=','NO\x20MESSAGE','AGI','format','SET\x20VARIABLE\x20%s\x20\x22%s\x22','continueAt','BEEP','ready','line','SET\x20CONTEXT\x20%s','setPriority','./error','util','exports','EventEmitter','GET\x20DATA\x20\x22%s\x22\x20%s\x20%s','520\x20End\x20of\x20proper','E_AGI_SOCKET_CLOSE','getData'];(function(_0x5166c0,_0x44af1a){const _0x5127ad=function(_0x18ff06){while(--_0x18ff06){_0x5166c0['push'](_0x5166c0['shift']());}};_0x5127ad(++_0x44af1a);}(a1190_0x5127,0x197));const a1190_0x18ff=function(_0x5166c0,_0x44af1a){_0x5166c0=_0x5166c0-0x8d;let _0x5127ad=a1190_0x5127[_0x5166c0];return _0x5127ad;};const a1190_0x415b71=a1190_0x18ff;'use strict';const util=require(a1190_0x415b71(0xc9)),_=require(a1190_0x415b71(0x9b)),EventEmitter=require('events')[a1190_0x415b71(0xcb)],AGIReply=require(a1190_0x415b71(0xb8)),AGIError=require(a1190_0x415b71(0xc8));function AGIChannel(_0x487507){const _0x3969df=a1190_0x415b71,_0x2d2dac=this,_0x359a2d=new AGIReply();let _0x31ec11=![],_0xb9eb84={};EventEmitter[_0x3969df(0xaa)](_0x2d2dac),_0x487507[_0x3969df(0x9c)](_0x3969df(0x91)),_0x487507[_0x3969df(0x8f)](0x8*0x3c*0x3c*0x3e8),_0x359a2d[_0x3969df(0x9c)](_0x3969df(0x91)),_0x359a2d['on'](_0x3969df(0x94),function(_0x3abff2){const _0x5037d2=_0x3969df;for(const _0x489a71 in _0x3abff2){_0x2d2dac[_0x489a71]=_0x3abff2[_0x489a71];}_0x2d2dac[_0x5037d2(0xd5)](_0x5037d2(0xc4));}),_0x359a2d['on'](_0x3969df(0xc5),function(_0x19e23c){const _0x13aa2c=_0x3969df;if(_0x19e23c[_0x13aa2c(0xd1)]()==_0x13aa2c(0x93)){_0x2d2dac[_0x13aa2c(0xd5)](_0x13aa2c(0x93));return;}_0x19e23c[_0x13aa2c(0xb9)](0x0,0xb)==_0x13aa2c(0x98)&&(_0x31ec11=!![]);_0x31ec11?(_0xb9eb84['rx']+=_0x19e23c+'\x0a',_0x19e23c[_0x13aa2c(0xa3)](_0x13aa2c(0xcd))!=-0x1&&(_0x31ec11=![])):_0xb9eb84['rx']=_0x19e23c;if(_0x31ec11)return;if(typeof _0xb9eb84['cb']==_0x13aa2c(0xb7)){let _0xaed39e=_0xb9eb84['rx'][_0x13aa2c(0xb9)](0x0,0x3),_0x2154ea=null,_0x4f8f98=null;_0xaed39e=parseInt(_0xaed39e);if(isNaN(_0xaed39e)){_0xb9eb84['cb'](null,{'code':0x1f4,'result':-0x1,'extra':_0x13aa2c(0xb1)});return;}if(_0xaed39e!=0xc8){_0xb9eb84['cb'](null,{'code':_0xaed39e,'result':-0x1,'extra':'KO'});return;}_0x2154ea=_0xb9eb84['rx'][_0x13aa2c(0xb9)](0x4)['replace'](_0x13aa2c(0xbd),'');_0x2154ea[_0x13aa2c(0x8e)]('\x20')!=-0x1&&(_0x2154ea=_0x2154ea[_0x13aa2c(0xab)](0x0,_0x2154ea[_0x13aa2c(0x8e)]('\x20')));_[_0x13aa2c(0xd7)](_0x2154ea,'-1')&&(_0x2154ea=parseInt(_0x2154ea));_0x4f8f98=_0xb9eb84['rx'][_0x13aa2c(0xd0)]('\x20');if(_0x4f8f98[_0x13aa2c(0xac)]==0x3)_0x4f8f98=_0x4f8f98[0x2][_0x13aa2c(0xb9)](0x1,_0x4f8f98[0x2][_0x13aa2c(0xac)]-0x1);else{if(_0x4f8f98[_0x13aa2c(0xac)]>0x3){const _0x479277=/\((.+)\)/,_0x4d1416=_0xb9eb84['rx'][_0x13aa2c(0x9f)](_0x479277);_0x4d1416?_0x4f8f98=_0x4d1416[0x1]:_0x4f8f98=null;}else _0x4f8f98=null;}_0xb9eb84['cb'](null,{'code':_0xaed39e,'result':_0x2154ea,'extra':_0x4f8f98});}}),_0x487507['on'](_0x3969df(0xad),function(_0x1c464a){const _0x35d535=_0x3969df;_0x2d2dac[_0x35d535(0xd5)](_0x35d535(0xad),new AGIError('E_AGI_SOCKET_ERROR',_0x1c464a['code']));}),_0x487507['on'](_0x3969df(0xa4),function(){const _0x247f6c=_0x3969df;_0x2d2dac[_0x247f6c(0xd5)](_0x247f6c(0xa4),new AGIError(_0x247f6c(0xce)));}),_0x487507['on'](_0x3969df(0x97),function(){const _0xd93cce=_0x3969df;_0x2d2dac[_0xd93cce(0xd5)](_0xd93cce(0x97),new AGIError(_0xd93cce(0xbc))),_0x487507[_0xd93cce(0xae)]();}),_0x487507['pipe'](_0x359a2d),(this['command']=function(_0x2dfe01,_0x2b350d){const _0x4f3596=_0x3969df;_0x2dfe01=_0x2dfe01||'',_0x2b350d=typeof _0x2b350d=='function'?_0x2b350d:new Function(),_0xb9eb84={'tx':_0x2dfe01,'rx':'','cb':_0x2b350d},_0x487507[_0x4f3596(0x90)](_0x2dfe01+'\x0a');},this[_0x3969df(0xa4)]=function(){const _0x17cd40=_0x3969df;_0x487507[_0x17cd40(0xae)]();});}util['inherits'](AGIChannel,EventEmitter),AGIChannel[a1190_0x415b71(0xd9)][a1190_0x415b71(0xb6)]=function(_0x3cac60){const _0x40d744=a1190_0x415b71;return this[_0x40d744(0x8d)]['sync'](this,_0x3cac60);},AGIChannel['prototype'][a1190_0x415b71(0xb3)]=function(){const _0x465251=a1190_0x415b71;return this[_0x465251(0xb6)](_0x465251(0x92));},AGIChannel[a1190_0x415b71(0xd9)][a1190_0x415b71(0xcf)]=function(_0x37704e,_0xdb848a,_0x1f383f){const _0x1486ff=a1190_0x415b71;return _0x37704e=_0x37704e===undefined?_0x1486ff(0xa2):_0x37704e,_0xdb848a=_0xdb848a===undefined?'5':_0xdb848a,_0x1f383f=_0x1f383f===undefined?'1':_0x1f383f,this[_0x1486ff(0xb6)](util[_0x1486ff(0xc0)](_0x1486ff(0xcc),_0x37704e,_0xdb848a*0x3e8,_0x1f383f));},AGIChannel[a1190_0x415b71(0xd9)][a1190_0x415b71(0x9d)]=function(_0x5f5384){const _0x45033b=a1190_0x415b71;return _0x5f5384=_0x5f5384||_0x45033b(0xbe),this[_0x45033b(0xb6)](util[_0x45033b(0xc0)](_0x45033b(0xaf),_0x5f5384));},AGIChannel[a1190_0x415b71(0xd9)][a1190_0x415b71(0xbb)]=function(_0x266c9d,_0x122ccb){const _0x31ef7d=a1190_0x415b71;if(_[_0x31ef7d(0xb2)](_0x122ccb))return this['sendRequest'](util[_0x31ef7d(0xc0)](_0x31ef7d(0xb4),_0x266c9d,_0x122ccb[_0x31ef7d(0xdb)](',')));return this['sendRequest'](util['format'](_0x31ef7d(0xb4),_0x266c9d,_0x122ccb));},AGIChannel[a1190_0x415b71(0xd9)][a1190_0x415b71(0xd4)]=function(_0x53b797){const _0x18f401=a1190_0x415b71;return this['sendRequest'](util[_0x18f401(0xc0)](_0x18f401(0xc6),_0x53b797));},AGIChannel[a1190_0x415b71(0xd9)][a1190_0x415b71(0xd3)]=function(_0x3a0b23){const _0x3e8d36=a1190_0x415b71;return this['sendRequest'](util['format'](_0x3e8d36(0xba),_0x3a0b23));},AGIChannel[a1190_0x415b71(0xd9)]['setPriority']=function(_0xe3ade9){const _0x345d55=a1190_0x415b71;return this[_0x345d55(0xb6)](util[_0x345d55(0xc0)](_0x345d55(0xa7),_0xe3ade9));},AGIChannel[a1190_0x415b71(0xd9)][a1190_0x415b71(0x93)]=function(){const _0x3dd75c=a1190_0x415b71;return this['sendRequest'](_0x3dd75c(0x9e));},AGIChannel[a1190_0x415b71(0xd9)][a1190_0x415b71(0x95)]=function(_0xa2e415,_0x2a6f51){const _0x5b8ea2=a1190_0x415b71,_0xad7da7=_['isBoolean'](_0x2a6f51)||_[_0x5b8ea2(0xd8)](_0x2a6f51)?_0x2a6f51[_0x5b8ea2(0xa6)]():_0x2a6f51;return this[_0x5b8ea2(0xb6)](util[_0x5b8ea2(0xc0)](_0x5b8ea2(0xc1),_0xa2e415,_0xad7da7?_0xad7da7['toString']()[_0x5b8ea2(0xa0)](/(\r\n|\n|\r)/gm,'\x20'):''));},AGIChannel[a1190_0x415b71(0xd9)][a1190_0x415b71(0xd2)]=function(_0x19dcb0,_0x356821){const _0x2bebaa=a1190_0x415b71;return this[_0x2bebaa(0xb6)](util[_0x2bebaa(0xc0)](_0x2bebaa(0x9a),_0x19dcb0,_0x356821));},AGIChannel[a1190_0x415b71(0xd9)][a1190_0x415b71(0x99)]=function(_0x1ced9f,_0x308212){const _0xc82daf=a1190_0x415b71;return this[_0xc82daf(0xb6)](util[_0xc82daf(0xc0)](_0xc82daf(0xda),_0x1ced9f,_0x308212));},AGIChannel[a1190_0x415b71(0xd9)]['sayPhonetic']=function(_0x5a88f1,_0x3c7268){const _0x2e3f05=a1190_0x415b71;return this[_0x2e3f05(0xb6)](util[_0x2e3f05(0xc0)]('SAY\x20PHONETIC\x20\x22%s\x22\x20%s',_0x5a88f1,_0x3c7268));},AGIChannel[a1190_0x415b71(0xd9)][a1190_0x415b71(0xc2)]=function(_0x16dffd,_0x169cc3,_0x17b8cd){const _0x41ea30=a1190_0x415b71;return _0x169cc3=_0x169cc3||this[_0x41ea30(0xd6)],_0x17b8cd=_0x17b8cd||0x1,this[_0x41ea30(0xd4)](_0x16dffd),this[_0x41ea30(0xd3)](_0x169cc3),this[_0x41ea30(0xc7)](_0x17b8cd),this[_0x41ea30(0x9d)](util[_0x41ea30(0xc0)](_0x41ea30(0xa5),_0x16dffd,_0x169cc3,_0x17b8cd));},AGIChannel[a1190_0x415b71(0xd9)]['getVariable']=function(_0xbf2ba6){const _0x2741fb=a1190_0x415b71;return this[_0x2741fb(0xb6)](util[_0x2741fb(0xc0)]('GET\x20VARIABLE\x20\x22%s\x22',_0xbf2ba6));},AGIChannel['prototype'][a1190_0x415b71(0xa1)]=function(_0x578d33,_0x1aa422,_0x2c60bf,_0x5c696f,_0x88e73f,_0x2f3b90){const _0x568094=a1190_0x415b71;return _0x1aa422=_0x1aa422||'wav',_0x2c60bf=_0x2c60bf||'',_0x5c696f=_0x5c696f===undefined?-0x1:_0x5c696f==='-1'?-0x1:_0x5c696f*0x3e8,_0x88e73f=_0x88e73f===undefined?'':'s='+_0x88e73f,_0x2f3b90=_0x2f3b90?_0x568094(0xc3):'',this['sendRequest'](util[_0x568094(0xc0)](_0x568094(0xb5),_0x578d33,_0x1aa422,_0x2c60bf,_0x5c696f,_0x2f3b90,_0x88e73f));},AGIChannel[a1190_0x415b71(0xd9)][a1190_0x415b71(0xa8)]=function(_0x5ca89a,_0x4cd70b){const _0x285d61=a1190_0x415b71;return _0x4cd70b=_0x4cd70b||'',this[_0x285d61(0xb6)](util[_0x285d61(0xc0)](_0x285d61(0x96),_0x5ca89a,_0x4cd70b));},AGIChannel[a1190_0x415b71(0xd9)]['agi']=function(_0x365e42){const _0x5d291f=a1190_0x415b71;return this['exec'](_0x5d291f(0xbf),_0x365e42);},AGIChannel[a1190_0x415b71(0xd9)][a1190_0x415b71(0xb0)]=function(_0x193145){const _0x48923b=a1190_0x415b71;return this[_0x48923b(0xbb)]('WAIT',_0x193145);},AGIChannel[a1190_0x415b71(0xd9)][a1190_0x415b71(0xad)]=function(_0x2e2524,_0x120bfb){const _0x2f201e=a1190_0x415b71;return this[_0x2f201e(0x9d)](util[_0x2f201e(0xc0)]('ID:%s\x20-\x20LABEL:\x20%s\x20-\x20MSG:\x20%s',_0x2e2524['id'],_0x2e2524[_0x2f201e(0xa9)],_0x120bfb)),{'code':0x1f4,'result':'-1','extra':''};},module[a1190_0x415b71(0xca)]=AGIChannel; \ No newline at end of file diff --git a/server/services/agi/error.js b/server/services/agi/error.js index 7ad8b1e..a1f0ab6 100644 --- a/server/services/agi/error.js +++ b/server/services/agi/error.js @@ -1 +1 @@ -const a1027_0x36c0=['[LICENSE]\x20Server\x20max\x20connection.\x20Count:\x20%s.','E_AGI_UNDEFINED','Socket\x20error.\x20Code:\x20%s.','Missing\x20\x27ivr.agi_network_script\x27.','Server\x20error.\x20Code:\x20%s.','Argument\x20\x27port\x27\x20missing\x20in\x20function\x20call.','Server\x20closed.','exports','Empty\x20command.','name','apply','util','Socket\x20closed.','[LICENSE\x20VOICE]\x20Server\x20license\x20voice\x20disabled.','Undefined\x20error.'];(function(_0x639aa3,_0x36c07d){const _0x1069bc=function(_0x43be1f){while(--_0x43be1f){_0x639aa3['push'](_0x639aa3['shift']());}};_0x1069bc(++_0x36c07d);}(a1027_0x36c0,0x1c6));const a1027_0x1069=function(_0x639aa3,_0x36c07d){_0x639aa3=_0x639aa3-0x0;let _0x1069bc=a1027_0x36c0[_0x639aa3];return _0x1069bc;};const _0x2e57e9=a1027_0x1069;'use strict';const util=require(_0x2e57e9('0x7')),error={'E_AGI_UNDEFINED':_0x2e57e9('0xa'),'E_AGI_ARGUMENT_PORT':_0x2e57e9('0x1'),'E_AGI_SERVER_ERROR':_0x2e57e9('0x0'),'E_AGI_SERVER_CLOSE':_0x2e57e9('0x2'),'E_AGI_SERVER_MAXCONNECTION':_0x2e57e9('0xb'),'E_AGI_SERVER_VOICE_DISABLED':_0x2e57e9('0x9'),'E_AGI_SOCKET_ERROR':_0x2e57e9('0xd'),'E_AGI_SOCKET_CLOSE':_0x2e57e9('0x8'),'E_AGI_SOCKET_TIMEOUT':'Socket\x20timeout.','E_AGI_COMMAND_EMPTY':_0x2e57e9('0x4'),'E_AGI_IVR_AGI_NETWORK_SCRIPT':_0x2e57e9('0xe'),'E_AGI_IVR_ENTRY':'Missing\x20\x27ivr.entry\x27\x20menu.'};function AGIError(_0x43be1f){const _0x5b1d83=_0x2e57e9;_0x43be1f=_0x43be1f||null;const _0x5bb94d=_0x5bb94d||[];let _0x485c4e=0x1,_0x4cf163='';!error[_0x43be1f]&&(_0x43be1f=_0x5b1d83('0xc'));_0x5bb94d['push'](error[_0x43be1f]);while(arguments[_0x485c4e]){_0x5bb94d['push'](arguments[_0x485c4e]),_0x485c4e++;}_0x4cf163=util['format'][_0x5b1d83('0x6')](util,_0x5bb94d),this['message']=_0x4cf163,this[_0x5b1d83('0x5')]=_0x43be1f;}module[_0x2e57e9('0x3')]=AGIError; \ No newline at end of file +const a1191_0x1483=['Argument\x20\x27port\x27\x20missing\x20in\x20function\x20call.','format','apply','Socket\x20closed.','name','push','Undefined\x20error.','message','Socket\x20error.\x20Code:\x20%s.','Server\x20closed.','exports','[LICENSE\x20VOICE]\x20Server\x20license\x20voice\x20disabled.','util','E_AGI_UNDEFINED','Missing\x20\x27ivr.entry\x27\x20menu.','Server\x20error.\x20Code:\x20%s.'];(function(_0x3f34a7,_0x5e1f01){const _0x14835f=function(_0x43cdc3){while(--_0x43cdc3){_0x3f34a7['push'](_0x3f34a7['shift']());}};_0x14835f(++_0x5e1f01);}(a1191_0x1483,0x174));const a1191_0x43cd=function(_0x3f34a7,_0x5e1f01){_0x3f34a7=_0x3f34a7-0x191;let _0x14835f=a1191_0x1483[_0x3f34a7];return _0x14835f;};const a1191_0x5ebe11=a1191_0x43cd;'use strict';const util=require(a1191_0x5ebe11(0x199)),error={'E_AGI_UNDEFINED':a1191_0x5ebe11(0x193),'E_AGI_ARGUMENT_PORT':a1191_0x5ebe11(0x19d),'E_AGI_SERVER_ERROR':a1191_0x5ebe11(0x19c),'E_AGI_SERVER_CLOSE':a1191_0x5ebe11(0x196),'E_AGI_SERVER_MAXCONNECTION':'[LICENSE]\x20Server\x20max\x20connection.\x20Count:\x20%s.','E_AGI_SERVER_VOICE_DISABLED':a1191_0x5ebe11(0x198),'E_AGI_SOCKET_ERROR':a1191_0x5ebe11(0x195),'E_AGI_SOCKET_CLOSE':a1191_0x5ebe11(0x1a0),'E_AGI_SOCKET_TIMEOUT':'Socket\x20timeout.','E_AGI_COMMAND_EMPTY':'Empty\x20command.','E_AGI_IVR_AGI_NETWORK_SCRIPT':'Missing\x20\x27ivr.agi_network_script\x27.','E_AGI_IVR_ENTRY':a1191_0x5ebe11(0x19b)};function AGIError(_0x1acc89){const _0x36d216=a1191_0x5ebe11;_0x1acc89=_0x1acc89||null;const _0x141972=_0x141972||[];let _0x26c1a0=0x1,_0x8be7f8='';!error[_0x1acc89]&&(_0x1acc89=_0x36d216(0x19a));_0x141972[_0x36d216(0x192)](error[_0x1acc89]);while(arguments[_0x26c1a0]){_0x141972['push'](arguments[_0x26c1a0]),_0x26c1a0++;}_0x8be7f8=util[_0x36d216(0x19e)][_0x36d216(0x19f)](util,_0x141972),this[_0x36d216(0x194)]=_0x8be7f8,this[_0x36d216(0x191)]=_0x1acc89;}module[a1191_0x5ebe11(0x197)]=AGIError; \ No newline at end of file diff --git a/server/services/agi/graph/index.js b/server/services/agi/graph/index.js index cc3d7d8..20e31a8 100644 --- a/server/services/agi/graph/index.js +++ b/server/services/agi/graph/index.js @@ -1 +1 @@ -const a1028_0x3e43=['agicommand','max\x20retry\x20reach','lodash','edges','length','../../../config/logger','getdigits','no\x20vertex\x20found','includes','prototype','condition\x20not\x20found','condition','exports','size','push','default','relations','traverseBFS','getVertex','target','addVertex','vswitch','no\x20edge/s\x20available','agi','vertices','split','numberOfEdges','invalid','menu','info'];(function(_0x14c8c8,_0x3e43fc){const _0x2cb2c1=function(_0x13cfe8){while(--_0x13cfe8){_0x14c8c8['push'](_0x14c8c8['shift']());}};_0x2cb2c1(++_0x3e43fc);}(a1028_0x3e43,0x134));const a1028_0x2cb2=function(_0x14c8c8,_0x3e43fc){_0x14c8c8=_0x14c8c8-0x0;let _0x2cb2c1=a1028_0x3e43[_0x14c8c8];return _0x2cb2c1;};const _0x17747d=a1028_0x2cb2;'use strict';const _=require(_0x17747d('0x18')),logger=require(_0x17747d('0x1b'))(_0x17747d('0xf')),verticesWithRetry=['menu',_0x17747d('0x1c'),'getsecretdigits'],Graph=function(){const _0x31dc02=_0x17747d;this['vertices']={},this[_0x31dc02('0x19')]={},this[_0x31dc02('0x12')]=0x0;};Graph['prototype'][_0x17747d('0xc')]=function(_0x13cfe8){const _0x47a304=_0x17747d;this[_0x47a304('0x10')][_0x13cfe8['id']]=_0x13cfe8,this[_0x47a304('0x19')][_0x13cfe8['id']]=[];},Graph[_0x17747d('0x1')]['addEdge']=function(_0x1efa9d,_0x2b32b5,_0x3684b9){const _0x46f626=_0x17747d;this[_0x46f626('0x19')][_0x1efa9d][_0x46f626('0x6')]({'target':_0x2b32b5,'condition':_0x3684b9}),this[_0x46f626('0x12')]+=0x1;},Graph[_0x17747d('0x1')][_0x17747d('0x5')]=function(){const _0x2238da=_0x17747d;return _['size'](this[_0x2238da('0x10')]);},Graph[_0x17747d('0x1')][_0x17747d('0x8')]=function(){const _0x34d258=_0x17747d;return this[_0x34d258('0x12')];},Graph[_0x17747d('0x1')][_0x17747d('0xa')]=function(_0x5ea42a){return this['vertices'][_0x5ea42a];},Graph['prototype'][_0x17747d('0x9')]=function(_0xc456f9,_0xa83c10){const _0xc0a5e0=_0x17747d;if(!this['vertices'][_0xc456f9])return logger[_0xc0a5e0('0x15')](_0xc0a5e0('0x1d'));const _0x4ed7f1=_0xa83c10(this[_0xc0a5e0('0x10')][_0xc456f9]);if(!_0x4ed7f1)return logger[_0xc0a5e0('0x15')]('stop\x20traverse');if(this[_0xc0a5e0('0x19')][_0xc456f9][_0xc0a5e0('0x1a')]===0x0)return logger[_0xc0a5e0('0x15')](_0xc0a5e0('0xe'));const _0x5d633a=![],_0x3b4d5e=[];for(let _0x911650=0x0,_0x13b772=[],_0x32ec74=![];_0x911650\x20to\x20extension\x20%s\x20with\x20uniqueid\x20%s','../../globals','voice','defaults','timeout','traverseBFS','getLicense','response','Project\x20%s\x20not\x20published','maxRetry','gotoc','[TIMEOUT]\x20%s\x20project:\x20from\x20\x22%s\x22\x20<%s>\x20to\x20extension\x20%s\x20with\x20uniqueid\x20%s','port','[LICENSE]\x20CHANNELS:\x20UNLIMITED','./server','xml2json','format','omit','toJson','dnid','callysquare','[START\x20TRAVERSE]\x20%s\x20project:\x20from\x20\x22%s\x22\x20<%s>\x20to\x20extension\x20%s\x20with\x20uniqueid\x20%s','YYYY-MM-DD\x20HH:mm:ss','context','./rpc','[%s]\x20%s','name','resolve','[LISTENING]\x20Cally\x20Square\x20listening\x20%s:%d','Cally\x20Square\x20server\x20listening\x20on\x20port\x20%d!','info','mxCell','addEdge','arg_1','agi','variables','continueAt','vertex','[LICENSE]\x20VOICE\x20IS\x20DISABLED','substring','../../config/environment','util','../../config/logger','mxGraphModel','[CLOSE]\x20%s\x20project:\x20from\x20\x22%s\x22\x20<%s>\x20to\x20extension\x20%s\x20with\x20uniqueid\x20%s','start','stack','[LICENSE]\x20CHANNELS:\x20%s','catch','[GOTO]\x20context:\x20%s\x20extension:\x20%s\x20priority:\x20%s','source','[FINALLY\x20TRAVERSE]\x20%s\x20project:\x20from\x20\x22%s\x22\x20<%s>\x20to\x20extension\x20%s\x20with\x20uniqueid\x20%s','listening','gotoc\x20block\x20stop\x20traverse\x20BFS','inspect','message','addVertex','callerid','[HANGUP]\x20%s\x20project:\x20from\x20\x22%s\x22\x20<%s>\x20to\x20extension\x20%s\x20with\x20uniqueid\x20%s','[ERROR]\x20%s','target','stringify','clear','./mailRpc','./graph','production','undefined','moment','../../config/license/util','then','error','./vertices','debug','retry','priority','joinAt','length','[LICENSE]','close'];(function(_0x9da406,_0x132bac){const _0x422418=function(_0x15c99e){while(--_0x15c99e){_0x9da406['push'](_0x9da406['shift']());}};_0x422418(++_0x132bac);}(a1029_0x132b,0xfa));const a1029_0x4224=function(_0x9da406,_0x132bac){_0x9da406=_0x9da406-0x0;let _0x422418=a1029_0x132b[_0x9da406];return _0x422418;};const _0x4a3a54=a1029_0x4224;'use strict';require(_0x4a3a54('0x3c'));const parser=require(_0x4a3a54('0x4a')),_=require(_0x4a3a54('0x33')),util=require(_0x4a3a54('0x3')),moment=require(_0x4a3a54('0x1d')),config=require(_0x4a3a54('0x2')),logger=require(_0x4a3a54('0x4'))(_0x4a3a54('0x5d')),utilLicense=require(_0x4a3a54('0x1e')),rpc=require(_0x4a3a54('0x53')),mailRpc=require(_0x4a3a54('0x19')),Graph=require(_0x4a3a54('0x1a')),Vertices=require(_0x4a3a54('0x21')),AGI_CODE_SUCCESS=0xc8,AGI_RESULT_ERROR=-0x1;config[_0x4a3a54('0x5d')]=_[_0x4a3a54('0x3e')](config[_0x4a3a54('0x5d')],{'ip':_0x4a3a54('0x37'),'port':0x11dd});async function connectionHandler(_0x15c99e){const _0x535087=_0x4a3a54;try{await setChannelVariables(_0x15c99e),await agiHandler(_0x15c99e);}catch(_0x41d094){logger[_0x535087('0x20')](_0x41d094[_0x535087('0x8')]);}}function listeningHandler(){const _0x3f3c59=_0x4a3a54;console['log'](_0x3f3c59('0x58'),config[_0x3f3c59('0x5d')][_0x3f3c59('0x47')]),logger[_0x3f3c59('0x59')](util['format'](_0x3f3c59('0x57'),config[_0x3f3c59('0x5d')]['ip'],config[_0x3f3c59('0x5d')][_0x3f3c59('0x47')]));}function errorHandler(_0xc34926){const _0x2bc886=_0x4a3a54;_0xc34926&&_0xc34926[_0x2bc886('0x55')]&&_0xc34926[_0x2bc886('0x11')]?logger[_0x2bc886('0x20')](util[_0x2bc886('0x4b')](_0x2bc886('0x54'),_0xc34926[_0x2bc886('0x55')],_0xc34926['message'])):logger[_0x2bc886('0x20')](util[_0x2bc886('0x4b')](_0x2bc886('0x15'),_0xc34926[_0x2bc886('0x8')]));}function closeHandler(){const _0x485f13=_0x4a3a54;logger[_0x485f13('0x59')](util[_0x485f13('0x4b')](_0x485f13('0x6'),this[_0x485f13('0x5c')],this[_0x485f13('0x38')],this[_0x485f13('0x13')],this[_0x485f13('0x4e')],this[_0x485f13('0x34')]));try{createSquareReport(this);}catch(_0x1d3293){logger[_0x485f13('0x20')](_0x1d3293['stack']);}}function timeoutHandler(){const _0x60ebdc=_0x4a3a54;logger[_0x60ebdc('0x59')](util[_0x60ebdc('0x4b')](_0x60ebdc('0x46'),this['arg_1'],this[_0x60ebdc('0x38')],this[_0x60ebdc('0x13')],this[_0x60ebdc('0x4e')],this['uniqueid']));}function hangupHandler(){const _0x45c6ee=_0x4a3a54;logger[_0x45c6ee('0x59')](util[_0x45c6ee('0x4b')](_0x45c6ee('0x14'),this['arg_1'],this['calleridname'],this['callerid'],this[_0x45c6ee('0x4e')],this[_0x45c6ee('0x34')])),this[_0x45c6ee('0x2a')]=!![];}function getRoot(_0x4a22c6){const _0x97f82=_0x4a3a54;return parser[_0x97f82('0x4d')](_0x4a22c6,{'object':!![]})[_0x97f82('0x5')][_0x97f82('0x35')];}function addVertex(_0x412b75,_0x5def41,_0x58c24d){const _0x362588=_0x4a3a54;_0x5def41['agicommand']=_0x58c24d,typeof _0x5def41[_0x362588('0x23')]!==_0x362588('0x1c')&&(_0x5def41[_0x362588('0x44')]=parseInt(_0x5def41[_0x362588('0x23')],0xa)),_0x412b75[_0x362588('0x12')](_[_0x362588('0x4c')](_0x5def41,_0x362588('0x5a')));}function initGraph(_0x5826df,_0xa0a671){const _0x2e8d69=_0x4a3a54,_0xa0526b=new Graph();for(const _0x32061a in _0x5826df){if(typeof _0x5826df[_0x32061a]!==_0x2e8d69('0x1c')){if(_['isArray'](_0x5826df[_0x32061a]))for(let _0x5c21d5=0x0;_0x5c21d5<_0x5826df[_0x32061a][_0x2e8d69('0x26')];_0x5c21d5+=0x1){addVertex(_0xa0526b,_0x5826df[_0x32061a][_0x5c21d5],_0x32061a);}else addVertex(_0xa0526b,_0x5826df[_0x32061a],_0x32061a);}}for(let _0x11b678=0x0;_0x11b678<_0xa0a671[_0x2e8d69('0x26')];_0x11b678+=0x1){_0xa0a671[_0x11b678][_0x2e8d69('0xc')]&&_0xa0a671[_0x11b678]['target']&&_0xa0526b[_0x2e8d69('0x5b')](_0xa0a671[_0x11b678][_0x2e8d69('0xc')],_0xa0a671[_0x11b678][_0x2e8d69('0x16')],_0xa0a671[_0x11b678][_0x2e8d69('0x39')]);}return _0xa0526b;}function getSquareProject(_0x2d4364,_0x1b83f8){const _0x1902d4=_0x4a3a54;rpc['getSquareProject'](_0x2d4364)[_0x1902d4('0x1f')](function(_0x34a4ff){_0x1b83f8(null,_0x34a4ff);})[_0x1902d4('0xa')](function(_0x4c149c){_0x1b83f8(null,_0x4c149c);});}function createSquareReport(_0x286b24,_0x37d068){const _0xfc16ae=_0x4a3a54;rpc[_0xfc16ae('0x2d')](_0x286b24)[_0xfc16ae('0x1f')](function(_0x5bbaef){_0x37d068&&_0x37d068(null,_0x5bbaef);})[_0xfc16ae('0xa')](function(_0xec08f4){_0x37d068&&_0x37d068(null,_0xec08f4);});}async function setChannelVariables(_0x9f1424){const _0x443522=_0x4a3a54;for(const _0x18e3e8 in _0x9f1424){typeof _0x9f1424[_0x18e3e8]!=='undefined'&&(_0x18e3e8['indexOf']('agi_')===0x0&&(_0x9f1424[_0x18e3e8[_0x443522('0x1')](0x4)]=_0x9f1424[_0x18e3e8],delete _0x9f1424[_0x18e3e8]));}return Promise[_0x443522('0x56')](_0x9f1424);}function getLogFromObject(_0x411b10){const _0x2e9f45=_0x4a3a54;return util[_0x2e9f45('0x10')](_0x411b10,{'showHidden':![],'depth':null});}async function agiHandler(_0xf728f){const _0x2e66d5=_0x4a3a54;let _0x35530b,_0x4f525e,_0x41073c,_0x3e0b10;logger[_0x2e66d5('0x22')](_0x2e66d5('0x5e'),JSON[_0x2e66d5('0x17')](_0xf728f,null,0x2)),logger[_0x2e66d5('0x59')](util['format'](_0x2e66d5('0x3b'),_0xf728f[_0x2e66d5('0x5c')],_0xf728f[_0x2e66d5('0x38')],_0xf728f['callerid'],_0xf728f[_0x2e66d5('0x4e')],_0xf728f['uniqueid'])),_0xf728f['on'](_0x2e66d5('0x20'),errorHandler),_0xf728f['on']('close',closeHandler),_0xf728f['on'](_0x2e66d5('0x3f'),timeoutHandler),_0xf728f[_0x2e66d5('0x2a')]=![],_0xf728f['on'](_0x2e66d5('0x31'),hangupHandler);const _0xbf5abc=getSquareProject['sync'](null,_0xf728f['arg_1']);return _0xbf5abc?_0xbf5abc[_0x2e66d5('0x1b')]?(_0x35530b=getRoot(_0xbf5abc[_0x2e66d5('0x1b')]),_0x35530b&&_0x35530b[_0x2e66d5('0x7')]&&(logger[_0x2e66d5('0x22')]('root',JSON[_0x2e66d5('0x17')](_0x35530b,null,0x2)),_0xf728f[_0x2e66d5('0x25')]=moment()[_0x2e66d5('0x4b')](_0x2e66d5('0x51')),_0x4f525e=initGraph(_['omit'](_0x35530b,'mxCell'),_0x35530b[_0x2e66d5('0x5a')]),_0x41073c=new Vertices(_0xf728f,rpc,mailRpc),logger['info'](util[_0x2e66d5('0x4b')](_0x2e66d5('0x50'),_0xf728f[_0x2e66d5('0x5c')],_0xf728f[_0x2e66d5('0x38')],_0xf728f[_0x2e66d5('0x13')],_0xf728f[_0x2e66d5('0x4e')],_0xf728f[_0x2e66d5('0x34')])),_0x4f525e[_0x2e66d5('0x40')](_0x35530b[_0x2e66d5('0x7')]['id'],function(_0x4e9271){const _0x1283f1=_0x2e66d5;try{_0x4e9271=_0x41073c['clear'](_0x4e9271),logger[_0x1283f1('0x22')](_0x1283f1('0x60'),JSON['stringify'](_0x4e9271,null,0x2));if(_0x4e9271[_0x1283f1('0x3a')]===_0x1283f1('0x45'))return logger[_0x1283f1('0x59')](_0x1283f1('0xf')),_0xf728f['context']=_0x4e9271[_0x1283f1('0x52')]||_0xf728f[_0x1283f1('0x52')],_0xf728f['extension']=_0x4e9271[_0x1283f1('0x36')],_0xf728f['priority']=_0x4e9271[_0x1283f1('0x24')]?_0x4e9271[_0x1283f1('0x24')]-0x1:0x1,null;else return _0x4e9271&&_0x41073c[_0x4e9271['agicommand']]?(_0x3e0b10=_0x41073c[_0x4e9271[_0x1283f1('0x3a')]](_0x4e9271),logger[_0x1283f1('0x59')](_0x1283f1('0x42'),JSON[_0x1283f1('0x17')](_0x3e0b10,null,0x2)),_0x3e0b10&&_0x3e0b10[_0x1283f1('0x2e')]===AGI_CODE_SUCCESS&&_0x3e0b10[_0x1283f1('0x29')]!==AGI_RESULT_ERROR&&!_0xf728f[_0x1283f1('0x2a')]?(logger[_0x1283f1('0x22')](_0x1283f1('0x42'),getLogFromObject(_0x3e0b10)),_['isUndefined'](_0x3e0b10[_0x1283f1('0x29')])?null:_0x3e0b10[_0x1283f1('0x29')][_0x1283f1('0x2f')]()):(logger['error']('response',getLogFromObject(_0x3e0b10)),null)):(logger[_0x1283f1('0x20')](_0x1283f1('0x2c')),null);}catch(_0x525dad){return logger[_0x1283f1('0x20')](_0x525dad[_0x1283f1('0x8')]),null;}}),_0x35530b[_0x2e66d5('0x30')]&&(logger[_0x2e66d5('0x59')](util[_0x2e66d5('0x4b')](_0x2e66d5('0xd'),_0xf728f['arg_1'],_0xf728f[_0x2e66d5('0x38')],_0xf728f['callerid'],_0xf728f[_0x2e66d5('0x4e')],_0xf728f[_0x2e66d5('0x34')])),_0x4f525e['traverseBFS'](_0x35530b[_0x2e66d5('0x30')]['id'],function(_0x251b84){const _0x15bf8c=_0x2e66d5;try{return _0x251b84=_0x41073c[_0x15bf8c('0x18')](_0x251b84),logger['debug'](_0x15bf8c('0x60'),JSON[_0x15bf8c('0x17')](_0x251b84,null,0x2)),_0x251b84&&_0x41073c[_0x251b84[_0x15bf8c('0x3a')]]?(_0x3e0b10=_0x41073c[_0x251b84[_0x15bf8c('0x3a')]](_0x251b84),_0x3e0b10?(logger['debug'](_0x15bf8c('0x42'),getLogFromObject(_0x3e0b10)),_['isUndefined'](_0x3e0b10[_0x15bf8c('0x29')])?null:_0x3e0b10[_0x15bf8c('0x29')]['toString']()):(logger['error'](_0x15bf8c('0x42'),getLogFromObject(_0x3e0b10)),null)):(logger[_0x15bf8c('0x20')](_0x15bf8c('0x2c')),null);}catch(_0x2f7f10){return logger['error'](_0x2f7f10[_0x15bf8c('0x8')]),null;}})),logger[_0x2e66d5('0x59')](util[_0x2e66d5('0x4b')]('[END]\x20%s\x20project:\x20from\x20\x22%s\x22\x20<%s>\x20to\x20extension\x20%s\x20with\x20uniqueid\x20%s',_0xf728f[_0x2e66d5('0x5c')],_0xf728f[_0x2e66d5('0x38')],_0xf728f[_0x2e66d5('0x13')],_0xf728f['dnid'],_0xf728f[_0x2e66d5('0x34')])),logger[_0x2e66d5('0x59')](util[_0x2e66d5('0x4b')](_0x2e66d5('0xb'),_0xf728f['context'],_0xf728f[_0x2e66d5('0x36')],parseInt(_0xf728f[_0x2e66d5('0x24')],0xa)+0x1)),_0xf728f[_0x2e66d5('0x5f')](_0xf728f[_0x2e66d5('0x52')],_0xf728f[_0x2e66d5('0x36')],parseInt(_0xf728f['priority'],0xa)+0x1),_0xf728f[_0x2e66d5('0x28')]())):(logger[_0x2e66d5('0x20')](util[_0x2e66d5('0x4b')](_0x2e66d5('0x43'),_0xf728f['arg_1'])),_0xf728f[_0x2e66d5('0x5f')](_0xf728f['context'],_0xf728f['extension'],parseInt(_0xf728f['priority'],0xa)+0x1),_0xf728f[_0x2e66d5('0x28')]()):(logger[_0x2e66d5('0x20')](util[_0x2e66d5('0x4b')](_0x2e66d5('0x32'),_0xf728f[_0x2e66d5('0x5c')])),_0xf728f[_0x2e66d5('0x5f')](_0xf728f['context'],_0xf728f[_0x2e66d5('0x36')],parseInt(_0xf728f[_0x2e66d5('0x24')],0xa)+0x1),_0xf728f[_0x2e66d5('0x28')]()),Promise[_0x2e66d5('0x56')]();}function main(){const _0x5e2cbc=_0x4a3a54;let _0x2a1465;return utilLicense[_0x5e2cbc('0x41')]()[_0x5e2cbc('0x1f')](function(_0x1caeb8){const _0xb83d2b=_0x5e2cbc;_0x1caeb8&&(_0x1caeb8[_0xb83d2b('0x3d')]?_0x1caeb8[_0xb83d2b('0x4f')]&&_0x1caeb8[_0xb83d2b('0x4f')]>0x0?(logger[_0xb83d2b('0x59')](util['format'](_0xb83d2b('0x9'),_0x1caeb8[_0xb83d2b('0x4f')])),_0x2a1465=_0x1caeb8['callysquare']):logger['info'](_0xb83d2b('0x48')):(logger['info'](_0xb83d2b('0x0')),_0x2a1465=-0x1));})[_0x5e2cbc('0xa')](function(_0x7fa775){const _0x738bc9=_0x5e2cbc;logger[_0x738bc9('0x20')](_0x738bc9('0x27'),_0x7fa775[_0x738bc9('0x8')]);})[_0x5e2cbc('0x30')](function(){const _0x408f4c=_0x5e2cbc,_0x524516=require(_0x408f4c('0x49'))(config[_0x408f4c('0x5d')][_0x408f4c('0x47')],config[_0x408f4c('0x5d')]['ip'],_0x2a1465);_0x524516['on']('error',errorHandler),_0x524516['on'](_0x408f4c('0xe'),listeningHandler),_0x524516['on'](_0x408f4c('0x2b'),connectionHandler),_0x524516['on'](_0x408f4c('0x28'),closeHandler);});}main(); \ No newline at end of file +const a1193_0x3236=['arg_1','root','callysquare','clear','source','[LICENSE]\x20CHANNELS:\x20UNLIMITED','hangup','[TIMEOUT]\x20%s\x20project:\x20from\x20\x22%s\x22\x20<%s>\x20to\x20extension\x20%s\x20with\x20uniqueid\x20%s','production','isArray','lodash','log','debug','priority','retry','length','dnid','joinAt','getLicense','indexOf','[GOTO]\x20context:\x20%s\x20extension:\x20%s\x20priority:\x20%s','xml2json','connection','agicommand','YYYY-MM-DD\x20HH:mm:ss','stringify','code','gotoc','callerid','./server','calleridname','toJson','format','name','127.0.0.1','[%s]\x20%s','value','moment','substring','mxGraphModel','continueAt','traverseBFS','getSquareProject','close','result','./vertices','./graph','omit','voice','../../config/license/util','uniqueid','../../config/logger','defaults','timeout','port','sync','extension','[START\x20TRAVERSE]\x20%s\x20project:\x20from\x20\x22%s\x22\x20<%s>\x20to\x20extension\x20%s\x20with\x20uniqueid\x20%s','maxRetry','[FINALLY\x20TRAVERSE]\x20%s\x20project:\x20from\x20\x22%s\x22\x20<%s>\x20to\x20extension\x20%s\x20with\x20uniqueid\x20%s','[END]\x20%s\x20project:\x20from\x20\x22%s\x22\x20<%s>\x20to\x20extension\x20%s\x20with\x20uniqueid\x20%s','agi_','createSquareReport','./rpc','[HANGUP]\x20%s\x20project:\x20from\x20\x22%s\x22\x20<%s>\x20to\x20extension\x20%s\x20with\x20uniqueid\x20%s','stack','start','finally','info','vertex','toString','[CLOSE]\x20%s\x20project:\x20from\x20\x22%s\x22\x20<%s>\x20to\x20extension\x20%s\x20with\x20uniqueid\x20%s','../../config/environment','listening','target','Project\x20%s\x20not\x20found','mxCell','then','catch','context','../../globals','resolve','error','agi','isUndefined','[LICENSE]','[LICENSE]\x20CHANNELS:\x20%s','gotoc\x20block\x20stop\x20traverse\x20BFS','evtHangup','Cally\x20Square\x20server\x20listening\x20on\x20port\x20%d!','undefined','Project\x20%s\x20not\x20published','response'];(function(_0x158cba,_0x35259f){const _0x32361d=function(_0x5f53ac){while(--_0x5f53ac){_0x158cba['push'](_0x158cba['shift']());}};_0x32361d(++_0x35259f);}(a1193_0x3236,0xc3));const a1193_0x5f53=function(_0x158cba,_0x35259f){_0x158cba=_0x158cba-0x142;let _0x32361d=a1193_0x3236[_0x158cba];return _0x32361d;};const a1193_0x298500=a1193_0x5f53;'use strict';require(a1193_0x298500(0x189));const parser=require(a1193_0x298500(0x14e)),_=require(a1193_0x298500(0x143)),util=require('util'),moment=require(a1193_0x298500(0x15e)),config=require(a1193_0x298500(0x181)),logger=require(a1193_0x298500(0x16c))(a1193_0x298500(0x18c)),utilLicense=require(a1193_0x298500(0x16a)),rpc=require(a1193_0x298500(0x178)),mailRpc=require('./mailRpc'),Graph=require(a1193_0x298500(0x167)),Vertices=require(a1193_0x298500(0x166)),AGI_CODE_SUCCESS=0xc8,AGI_RESULT_ERROR=-0x1;config[a1193_0x298500(0x18c)]=_[a1193_0x298500(0x16d)](config[a1193_0x298500(0x18c)],{'ip':a1193_0x298500(0x15b),'port':0x11dd});async function connectionHandler(_0x612462){const _0x1acfb0=a1193_0x298500;try{await setChannelVariables(_0x612462),await agiHandler(_0x612462);}catch(_0x29ed40){logger[_0x1acfb0(0x18b)](_0x29ed40[_0x1acfb0(0x17a)]);}}function listeningHandler(){const _0x53307b=a1193_0x298500;console[_0x53307b(0x144)](_0x53307b(0x192),config[_0x53307b(0x18c)][_0x53307b(0x16f)]),logger[_0x53307b(0x17d)](util[_0x53307b(0x159)]('[LISTENING]\x20Cally\x20Square\x20listening\x20%s:%d',config[_0x53307b(0x18c)]['ip'],config[_0x53307b(0x18c)]['port']));}function errorHandler(_0xd46763){const _0x57ae57=a1193_0x298500;_0xd46763&&_0xd46763['name']&&_0xd46763['message']?logger[_0x57ae57(0x18b)](util[_0x57ae57(0x159)](_0x57ae57(0x15c),_0xd46763[_0x57ae57(0x15a)],_0xd46763['message'])):logger['error'](util[_0x57ae57(0x159)]('[ERROR]\x20%s',_0xd46763[_0x57ae57(0x17a)]));}function closeHandler(){const _0x32b446=a1193_0x298500;logger[_0x32b446(0x17d)](util['format'](_0x32b446(0x180),this[_0x32b446(0x196)],this[_0x32b446(0x157)],this['callerid'],this['dnid'],this[_0x32b446(0x16b)]));try{createSquareReport(this);}catch(_0x4174bf){logger['error'](_0x4174bf[_0x32b446(0x17a)]);}}function timeoutHandler(){const _0x1ef032=a1193_0x298500;logger['info'](util['format'](_0x1ef032(0x19d),this['arg_1'],this[_0x1ef032(0x157)],this[_0x1ef032(0x155)],this[_0x1ef032(0x149)],this[_0x1ef032(0x16b)]));}function hangupHandler(){const _0x18eea8=a1193_0x298500;logger[_0x18eea8(0x17d)](util[_0x18eea8(0x159)](_0x18eea8(0x179),this[_0x18eea8(0x196)],this[_0x18eea8(0x157)],this[_0x18eea8(0x155)],this[_0x18eea8(0x149)],this[_0x18eea8(0x16b)])),this[_0x18eea8(0x191)]=!![];}function getRoot(_0x3bb019){const _0x351dc6=a1193_0x298500;return parser[_0x351dc6(0x158)](_0x3bb019,{'object':!![]})[_0x351dc6(0x160)][_0x351dc6(0x197)];}function addVertex(_0x49e648,_0x57688b,_0x346b16){const _0x27de21=a1193_0x298500;_0x57688b[_0x27de21(0x150)]=_0x346b16,typeof _0x57688b[_0x27de21(0x147)]!==_0x27de21(0x193)&&(_0x57688b[_0x27de21(0x173)]=parseInt(_0x57688b[_0x27de21(0x147)],0xa)),_0x49e648['addVertex'](_[_0x27de21(0x168)](_0x57688b,_0x27de21(0x185)));}function initGraph(_0x452d83,_0x47b9b5){const _0x18e4f6=a1193_0x298500,_0x531ac7=new Graph();for(const _0x3f863a in _0x452d83){if(typeof _0x452d83[_0x3f863a]!==_0x18e4f6(0x193)){if(_[_0x18e4f6(0x142)](_0x452d83[_0x3f863a]))for(let _0x414e3c=0x0;_0x414e3c<_0x452d83[_0x3f863a][_0x18e4f6(0x148)];_0x414e3c+=0x1){addVertex(_0x531ac7,_0x452d83[_0x3f863a][_0x414e3c],_0x3f863a);}else addVertex(_0x531ac7,_0x452d83[_0x3f863a],_0x3f863a);}}for(let _0x5a385c=0x0;_0x5a385c<_0x47b9b5[_0x18e4f6(0x148)];_0x5a385c+=0x1){_0x47b9b5[_0x5a385c]['source']&&_0x47b9b5[_0x5a385c]['target']&&_0x531ac7['addEdge'](_0x47b9b5[_0x5a385c][_0x18e4f6(0x19a)],_0x47b9b5[_0x5a385c][_0x18e4f6(0x183)],_0x47b9b5[_0x5a385c][_0x18e4f6(0x15d)]);}return _0x531ac7;}function getSquareProject(_0x10095f,_0x26abb7){const _0x4807a6=a1193_0x298500;rpc[_0x4807a6(0x163)](_0x10095f)[_0x4807a6(0x186)](function(_0x280845){_0x26abb7(null,_0x280845);})[_0x4807a6(0x187)](function(_0x1167df){_0x26abb7(null,_0x1167df);});}function createSquareReport(_0x15d10f,_0x7b5702){const _0x3bcc60=a1193_0x298500;rpc[_0x3bcc60(0x177)](_0x15d10f)[_0x3bcc60(0x186)](function(_0x4b35e5){_0x7b5702&&_0x7b5702(null,_0x4b35e5);})[_0x3bcc60(0x187)](function(_0x66efd1){_0x7b5702&&_0x7b5702(null,_0x66efd1);});}async function setChannelVariables(_0x5dabe2){const _0x1722c2=a1193_0x298500;for(const _0x31fd53 in _0x5dabe2){typeof _0x5dabe2[_0x31fd53]!==_0x1722c2(0x193)&&(_0x31fd53[_0x1722c2(0x14c)](_0x1722c2(0x176))===0x0&&(_0x5dabe2[_0x31fd53[_0x1722c2(0x15f)](0x4)]=_0x5dabe2[_0x31fd53],delete _0x5dabe2[_0x31fd53]));}return Promise[_0x1722c2(0x18a)](_0x5dabe2);}function getLogFromObject(_0x528a08){return util['inspect'](_0x528a08,{'showHidden':![],'depth':null});}async function agiHandler(_0x452621){const _0x2a783a=a1193_0x298500;let _0x1359b8,_0x533d9a,_0x5b18e0,_0x208dc8;logger[_0x2a783a(0x145)]('variables',JSON[_0x2a783a(0x152)](_0x452621,null,0x2)),logger[_0x2a783a(0x17d)](util[_0x2a783a(0x159)]('[START]\x20%s\x20project:\x20from\x20\x22%s\x22\x20<%s>\x20to\x20extension\x20%s\x20with\x20uniqueid\x20%s',_0x452621['arg_1'],_0x452621[_0x2a783a(0x157)],_0x452621[_0x2a783a(0x155)],_0x452621[_0x2a783a(0x149)],_0x452621[_0x2a783a(0x16b)])),_0x452621['on'](_0x2a783a(0x18b),errorHandler),_0x452621['on'](_0x2a783a(0x164),closeHandler),_0x452621['on'](_0x2a783a(0x16e),timeoutHandler),_0x452621[_0x2a783a(0x191)]=![],_0x452621['on'](_0x2a783a(0x19c),hangupHandler);const _0x4824d7=getSquareProject[_0x2a783a(0x170)](null,_0x452621[_0x2a783a(0x196)]);return _0x4824d7?_0x4824d7[_0x2a783a(0x19e)]?(_0x1359b8=getRoot(_0x4824d7['production']),_0x1359b8&&_0x1359b8[_0x2a783a(0x17b)]&&(logger[_0x2a783a(0x145)](_0x2a783a(0x197),JSON[_0x2a783a(0x152)](_0x1359b8,null,0x2)),_0x452621[_0x2a783a(0x14a)]=moment()[_0x2a783a(0x159)](_0x2a783a(0x151)),_0x533d9a=initGraph(_[_0x2a783a(0x168)](_0x1359b8,_0x2a783a(0x185)),_0x1359b8[_0x2a783a(0x185)]),_0x5b18e0=new Vertices(_0x452621,rpc,mailRpc),logger[_0x2a783a(0x17d)](util[_0x2a783a(0x159)](_0x2a783a(0x172),_0x452621['arg_1'],_0x452621[_0x2a783a(0x157)],_0x452621[_0x2a783a(0x155)],_0x452621[_0x2a783a(0x149)],_0x452621[_0x2a783a(0x16b)])),_0x533d9a[_0x2a783a(0x162)](_0x1359b8[_0x2a783a(0x17b)]['id'],function(_0x1f03b6){const _0x9eaea7=_0x2a783a;try{_0x1f03b6=_0x5b18e0[_0x9eaea7(0x199)](_0x1f03b6),logger[_0x9eaea7(0x145)](_0x9eaea7(0x17e),JSON['stringify'](_0x1f03b6,null,0x2));if(_0x1f03b6['agicommand']===_0x9eaea7(0x154))return logger[_0x9eaea7(0x17d)](_0x9eaea7(0x190)),_0x452621[_0x9eaea7(0x188)]=_0x1f03b6[_0x9eaea7(0x188)]||_0x452621[_0x9eaea7(0x188)],_0x452621[_0x9eaea7(0x171)]=_0x1f03b6[_0x9eaea7(0x171)],_0x452621[_0x9eaea7(0x146)]=_0x1f03b6['priority']?_0x1f03b6[_0x9eaea7(0x146)]-0x1:0x1,null;else return _0x1f03b6&&_0x5b18e0[_0x1f03b6[_0x9eaea7(0x150)]]?(_0x208dc8=_0x5b18e0[_0x1f03b6[_0x9eaea7(0x150)]](_0x1f03b6),logger['info'](_0x9eaea7(0x195),JSON[_0x9eaea7(0x152)](_0x208dc8,null,0x2)),_0x208dc8&&_0x208dc8[_0x9eaea7(0x153)]===AGI_CODE_SUCCESS&&_0x208dc8[_0x9eaea7(0x165)]!==AGI_RESULT_ERROR&&!_0x452621[_0x9eaea7(0x191)]?(logger[_0x9eaea7(0x145)](_0x9eaea7(0x195),getLogFromObject(_0x208dc8)),_[_0x9eaea7(0x18d)](_0x208dc8[_0x9eaea7(0x165)])?null:_0x208dc8[_0x9eaea7(0x165)]['toString']()):(logger[_0x9eaea7(0x18b)](_0x9eaea7(0x195),getLogFromObject(_0x208dc8)),null)):(logger[_0x9eaea7(0x18b)]('agicommand\x20not\x20found'),null);}catch(_0x1b81d1){return logger[_0x9eaea7(0x18b)](_0x1b81d1[_0x9eaea7(0x17a)]),null;}}),_0x1359b8[_0x2a783a(0x17c)]&&(logger['info'](util[_0x2a783a(0x159)](_0x2a783a(0x174),_0x452621['arg_1'],_0x452621[_0x2a783a(0x157)],_0x452621['callerid'],_0x452621[_0x2a783a(0x149)],_0x452621[_0x2a783a(0x16b)])),_0x533d9a[_0x2a783a(0x162)](_0x1359b8[_0x2a783a(0x17c)]['id'],function(_0x2a74c7){const _0x1cb5a0=_0x2a783a;try{return _0x2a74c7=_0x5b18e0[_0x1cb5a0(0x199)](_0x2a74c7),logger['debug']('vertex',JSON[_0x1cb5a0(0x152)](_0x2a74c7,null,0x2)),_0x2a74c7&&_0x5b18e0[_0x2a74c7[_0x1cb5a0(0x150)]]?(_0x208dc8=_0x5b18e0[_0x2a74c7['agicommand']](_0x2a74c7),_0x208dc8?(logger['debug'](_0x1cb5a0(0x195),getLogFromObject(_0x208dc8)),_[_0x1cb5a0(0x18d)](_0x208dc8[_0x1cb5a0(0x165)])?null:_0x208dc8[_0x1cb5a0(0x165)][_0x1cb5a0(0x17f)]()):(logger[_0x1cb5a0(0x18b)](_0x1cb5a0(0x195),getLogFromObject(_0x208dc8)),null)):(logger[_0x1cb5a0(0x18b)]('agicommand\x20not\x20found'),null);}catch(_0x172e17){return logger[_0x1cb5a0(0x18b)](_0x172e17[_0x1cb5a0(0x17a)]),null;}})),logger['info'](util[_0x2a783a(0x159)](_0x2a783a(0x175),_0x452621['arg_1'],_0x452621[_0x2a783a(0x157)],_0x452621[_0x2a783a(0x155)],_0x452621[_0x2a783a(0x149)],_0x452621[_0x2a783a(0x16b)])),logger[_0x2a783a(0x17d)](util[_0x2a783a(0x159)](_0x2a783a(0x14d),_0x452621[_0x2a783a(0x188)],_0x452621[_0x2a783a(0x171)],parseInt(_0x452621[_0x2a783a(0x146)],0xa)+0x1)),_0x452621[_0x2a783a(0x161)](_0x452621[_0x2a783a(0x188)],_0x452621[_0x2a783a(0x171)],parseInt(_0x452621[_0x2a783a(0x146)],0xa)+0x1),_0x452621[_0x2a783a(0x164)]())):(logger[_0x2a783a(0x18b)](util['format'](_0x2a783a(0x194),_0x452621[_0x2a783a(0x196)])),_0x452621[_0x2a783a(0x161)](_0x452621[_0x2a783a(0x188)],_0x452621[_0x2a783a(0x171)],parseInt(_0x452621[_0x2a783a(0x146)],0xa)+0x1),_0x452621[_0x2a783a(0x164)]()):(logger[_0x2a783a(0x18b)](util[_0x2a783a(0x159)](_0x2a783a(0x184),_0x452621['arg_1'])),_0x452621[_0x2a783a(0x161)](_0x452621[_0x2a783a(0x188)],_0x452621['extension'],parseInt(_0x452621[_0x2a783a(0x146)],0xa)+0x1),_0x452621[_0x2a783a(0x164)]()),Promise[_0x2a783a(0x18a)]();}function main(){const _0xbe19a9=a1193_0x298500;let _0xce9eaa;return utilLicense[_0xbe19a9(0x14b)]()[_0xbe19a9(0x186)](function(_0x2c5284){const _0x4d68cb=_0xbe19a9;_0x2c5284&&(_0x2c5284[_0x4d68cb(0x169)]?_0x2c5284[_0x4d68cb(0x198)]&&_0x2c5284[_0x4d68cb(0x198)]>0x0?(logger[_0x4d68cb(0x17d)](util[_0x4d68cb(0x159)](_0x4d68cb(0x18f),_0x2c5284[_0x4d68cb(0x198)])),_0xce9eaa=_0x2c5284['callysquare']):logger['info'](_0x4d68cb(0x19b)):(logger[_0x4d68cb(0x17d)]('[LICENSE]\x20VOICE\x20IS\x20DISABLED'),_0xce9eaa=-0x1));})['catch'](function(_0x52daa7){const _0x1f5787=_0xbe19a9;logger[_0x1f5787(0x18b)](_0x1f5787(0x18e),_0x52daa7[_0x1f5787(0x17a)]);})['finally'](function(){const _0x186efc=_0xbe19a9,_0x283312=require(_0x186efc(0x156))(config[_0x186efc(0x18c)][_0x186efc(0x16f)],config[_0x186efc(0x18c)]['ip'],_0xce9eaa);_0x283312['on']('error',errorHandler),_0x283312['on'](_0x186efc(0x182),listeningHandler),_0x283312['on'](_0x186efc(0x14f),connectionHandler),_0x283312['on'](_0x186efc(0x164),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 826630b..9a7830a 100644 --- a/server/services/agi/mailRpc/index.js +++ b/server/services/agi/mailRpc/index.js @@ -1 +1 @@ -const a1030_0x4a0e=['result','sendMailMessage','catch','error','client','http','SendMail','message','jayson/promise'];(function(_0x4c173b,_0x4a0e23){const _0x3ce5c9=function(_0x3e96e7){while(--_0x3e96e7){_0x4c173b['push'](_0x4c173b['shift']());}};_0x3ce5c9(++_0x4a0e23);}(a1030_0x4a0e,0xc7));const a1030_0x3ce5=function(_0x4c173b,_0x4a0e23){_0x4c173b=_0x4c173b-0x0;let _0x3ce5c9=a1030_0x4a0e[_0x4c173b];return _0x3ce5c9;};const _0x1e5019=a1030_0x3ce5;'use strict';const jayson=require(_0x1e5019('0x7')),client=jayson[_0x1e5019('0x3')][_0x1e5019('0x4')]({'port':0x232b});function request(_0x3e96e7,_0x588337){return new Promise(function(_0x3881e8,_0xcf5131){const _0x5bc9fb=a1030_0x3ce5;return client['request'](_0x3e96e7,_0x588337)['then'](function(_0x172af4){const _0x4d56d1=a1030_0x3ce5;return _0x172af4['error']?_0xcf5131(_0x172af4[_0x4d56d1('0x2')][_0x4d56d1('0x6')]):_0x3881e8(_0x172af4[_0x4d56d1('0x8')]);})[_0x5bc9fb('0x1')](function(_0x321f5c){return _0xcf5131(_0x321f5c);});});}exports[_0x1e5019('0x0')]=function(_0x459404,_0x3ce14f){const _0x462f0a=_0x1e5019;return request(_0x462f0a('0x5'),{'account':_0x459404,'message':_0x3ce14f});}; \ No newline at end of file +const a1194_0x22c2=['client','catch','then','sendMailMessage','SendMail','message','http','jayson/promise','error','request'];(function(_0x1298e1,_0x468196){const _0x22c247=function(_0x2d88c4){while(--_0x2d88c4){_0x1298e1['push'](_0x1298e1['shift']());}};_0x22c247(++_0x468196);}(a1194_0x22c2,0x6f));const a1194_0x2d88=function(_0x1298e1,_0x468196){_0x1298e1=_0x1298e1-0x196;let _0x22c247=a1194_0x22c2[_0x1298e1];return _0x22c247;};const a1194_0x10271e=a1194_0x2d88;'use strict';const jayson=require(a1194_0x10271e(0x19c)),client=jayson[a1194_0x10271e(0x19f)][a1194_0x10271e(0x19b)]({'port':0x232b});function request(_0x1a38b1,_0x33e088){return new Promise(function(_0xcaaef9,_0x4c3e4e){const _0x5d7cf5=a1194_0x2d88;return client[_0x5d7cf5(0x19e)](_0x1a38b1,_0x33e088)[_0x5d7cf5(0x197)](function(_0xe9e452){const _0x40246b=_0x5d7cf5;return _0xe9e452[_0x40246b(0x19d)]?_0x4c3e4e(_0xe9e452[_0x40246b(0x19d)][_0x40246b(0x19a)]):_0xcaaef9(_0xe9e452['result']);})[_0x5d7cf5(0x196)](function(_0x8b7dc5){return _0x4c3e4e(_0x8b7dc5);});});}exports[a1194_0x10271e(0x198)]=function(_0x38ae5a,_0x191a77){const _0x1ee12d=a1194_0x10271e;return request(_0x1ee12d(0x199),{'account':_0x38ae5a,'message':_0x191a77});}; \ No newline at end of file diff --git a/server/services/agi/reply.js b/server/services/agi/reply.js index 3b5e102..e97b921 100644 --- a/server/services/agi/reply.js +++ b/server/services/agi/reply.js @@ -1 +1 @@ -const a1031_0x4c7c=['indexOf','exports','substring','prototype','emit','slice','inherits','_transform','length','util','call','stream','_inBody','\x0d\x0a\x0d\x0a','_localBuffer','trim'];(function(_0x40b086,_0x4c7cea){const _0x4056ea=function(_0x5c5c15){while(--_0x5c5c15){_0x40b086['push'](_0x40b086['shift']());}};_0x4056ea(++_0x4c7cea);}(a1031_0x4c7c,0x114));const a1031_0x4056=function(_0x40b086,_0x4c7cea){_0x40b086=_0x40b086-0x0;let _0x4056ea=a1031_0x4c7c[_0x40b086];return _0x4056ea;};const _0x3662c6=a1031_0x4056;'use strict';const util=require(_0x3662c6('0x5')),Transform=require(_0x3662c6('0x7'))['Transform'];function AGIReply(_0x5c5c15){const _0x37242d=_0x3662c6;Transform[_0x37242d('0x6')](this,_0x5c5c15),this[_0x37242d('0xa')]='',this[_0x37242d('0x8')]=![];}util[_0x3662c6('0x2')](AGIReply,Transform),AGIReply[_0x3662c6('0xf')][_0x3662c6('0x3')]=function(_0x2bfc76,_0x4e1de4,_0x1dfe0c){const _0x243b1c=_0x3662c6,_0x3f31d9='\x0a',_0x13c59c=['\x0a\x0a',_0x243b1c('0x9')];let _0x43769c=-0x1,_0x4cdb69=-0x1,_0x59d043='',_0x202ce0=0x0,_0x1ca712='',_0x5b73c1='';this[_0x243b1c('0xa')]+=_0x2bfc76['toString'](),_0x1ca712=this[_0x243b1c('0xa')];if(!this[_0x243b1c('0x8')]){_0x202ce0=0x0;while(_0x13c59c[_0x202ce0]){while((_0x4cdb69=_0x1ca712['indexOf'](_0x13c59c[_0x202ce0]))!=-0x1){_0x59d043=_0x13c59c[_0x202ce0],_0x5b73c1=_0x1ca712[_0x243b1c('0xe')](0x0,_0x4cdb69),_0x1ca712=_0x1ca712[_0x243b1c('0xe')](_0x4cdb69+_0x59d043[_0x243b1c('0x4')]);const _0x55be86=_0x5b73c1['split'](_0x3f31d9);let _0x48f1d3=0x0;const _0x52c0b2={};let _0x4026cc='',_0x304a02='',_0x4ad254=-0x1;while(_0x55be86[_0x48f1d3]){_0x4ad254=_0x55be86[_0x48f1d3]['indexOf'](':');if(_0x4ad254!=-0x1)_0x4026cc=_0x55be86[_0x48f1d3][_0x243b1c('0x1')](0x0,_0x4ad254)[_0x243b1c('0xb')](),_0x304a02=_0x55be86[_0x48f1d3][_0x243b1c('0x1')](_0x4ad254+0x1)['trim'](),_0x4026cc[_0x243b1c('0x4')]>0x0&&(_0x52c0b2[_0x4026cc]=_0x304a02);else{}_0x48f1d3++;}this[_0x243b1c('0x0')]('headers',_0x52c0b2),this[_0x243b1c('0x8')]=!![];}_0x202ce0++;}this['_localBuffer']=_0x1ca712;}else{while((_0x43769c=_0x1ca712[_0x243b1c('0xc')](_0x3f31d9))!=-0x1){_0x5b73c1=_0x1ca712[_0x243b1c('0xe')](0x0,_0x43769c),this[_0x243b1c('0x0')]('line',_0x5b73c1),_0x1ca712=_0x1ca712['substring'](_0x43769c+_0x3f31d9['length']);}this[_0x243b1c('0xa')]=_0x1ca712;}_0x1dfe0c();},module[_0x3662c6('0xd')]=AGIReply; \ No newline at end of file +const a1195_0x4dd3=['_transform','toString','split','stream','inherits','_localBuffer','_inBody','slice','trim','substring','util','call','indexOf','exports','prototype','headers','length','emit'];(function(_0x3760c1,_0x5a483d){const _0x4dd390=function(_0x3b998e){while(--_0x3b998e){_0x3760c1['push'](_0x3760c1['shift']());}};_0x4dd390(++_0x5a483d);}(a1195_0x4dd3,0x162));const a1195_0x3b99=function(_0x3760c1,_0x5a483d){_0x3760c1=_0x3760c1-0x1b4;let _0x4dd390=a1195_0x4dd3[_0x3760c1];return _0x4dd390;};const a1195_0x360ce9=a1195_0x3b99;'use strict';const util=require(a1195_0x360ce9(0x1c4)),Transform=require(a1195_0x360ce9(0x1bd))['Transform'];function AGIReply(_0x5e2252){const _0xe71c49=a1195_0x360ce9;Transform[_0xe71c49(0x1c5)](this,_0x5e2252),this[_0xe71c49(0x1bf)]='',this[_0xe71c49(0x1c0)]=![];}util[a1195_0x360ce9(0x1be)](AGIReply,Transform),AGIReply[a1195_0x360ce9(0x1b6)][a1195_0x360ce9(0x1ba)]=function(_0x2163ce,_0x67dd01,_0x56d8bc){const _0x2c4883=a1195_0x360ce9,_0xcf9a7e='\x0a',_0x59b6f9=['\x0a\x0a','\x0d\x0a\x0d\x0a'];let _0x209553=-0x1,_0x4a46ee=-0x1,_0x2f8093='',_0x4f54c8=0x0,_0x5cc8ff='',_0x43c158='';this[_0x2c4883(0x1bf)]+=_0x2163ce[_0x2c4883(0x1bb)](),_0x5cc8ff=this['_localBuffer'];if(!this[_0x2c4883(0x1c0)]){_0x4f54c8=0x0;while(_0x59b6f9[_0x4f54c8]){while((_0x4a46ee=_0x5cc8ff['indexOf'](_0x59b6f9[_0x4f54c8]))!=-0x1){_0x2f8093=_0x59b6f9[_0x4f54c8],_0x43c158=_0x5cc8ff[_0x2c4883(0x1c3)](0x0,_0x4a46ee),_0x5cc8ff=_0x5cc8ff[_0x2c4883(0x1c3)](_0x4a46ee+_0x2f8093[_0x2c4883(0x1b8)]);const _0x294a41=_0x43c158[_0x2c4883(0x1bc)](_0xcf9a7e);let _0x5c383a=0x0;const _0x464e3d={};let _0x437033='',_0x9f923e='',_0x2b3fb5=-0x1;while(_0x294a41[_0x5c383a]){_0x2b3fb5=_0x294a41[_0x5c383a][_0x2c4883(0x1b4)](':');if(_0x2b3fb5!=-0x1)_0x437033=_0x294a41[_0x5c383a][_0x2c4883(0x1c1)](0x0,_0x2b3fb5)[_0x2c4883(0x1c2)](),_0x9f923e=_0x294a41[_0x5c383a][_0x2c4883(0x1c1)](_0x2b3fb5+0x1)['trim'](),_0x437033['length']>0x0&&(_0x464e3d[_0x437033]=_0x9f923e);else{}_0x5c383a++;}this[_0x2c4883(0x1b9)](_0x2c4883(0x1b7),_0x464e3d),this[_0x2c4883(0x1c0)]=!![];}_0x4f54c8++;}this[_0x2c4883(0x1bf)]=_0x5cc8ff;}else{while((_0x209553=_0x5cc8ff[_0x2c4883(0x1b4)](_0xcf9a7e))!=-0x1){_0x43c158=_0x5cc8ff[_0x2c4883(0x1c3)](0x0,_0x209553),this[_0x2c4883(0x1b9)]('line',_0x43c158),_0x5cc8ff=_0x5cc8ff['substring'](_0x209553+_0xcf9a7e['length']);}this['_localBuffer']=_0x5cc8ff;}_0x56d8bc();},module[a1195_0x360ce9(0x1b5)]=AGIReply; \ No newline at end of file diff --git a/server/services/agi/rpc/index.js b/server/services/agi/rpc/index.js index fcf8265..2d5065f 100644 --- a/server/services/agi/rpc/index.js +++ b/server/services/agi/rpc/index.js @@ -1 +1 @@ -const a1032_0x5481=['createSquareMessage','lodash','result','then','agentUnpause','CreateSquareReport','getSquareProjectById','getVoiceQueueById','createSmsMessage','getPauseById','name','agentLogin','ShowTrunk','CreateSquareDetailsReport','ShowVariable','arg_2','createSquareDetailsReport','UnpauseUser','ShowCmHopper','getVariableById','createSquareRecording','LoginUser','merge','arg_1','YYYY-MM-DD\x20HH:mm:ss','request','message','getIntervalById','ShowSquareOdbc','dsn','ShowUser','getMailAccountById','error','moment','CreateSmsMessage','Intervals','client','CreateSquareMessage','MailServerOut','LogoutUser','ShowMailAccount','email','ShowSmsAccount','ShowPause','PauseUser','jayson/promise','getUserById','createCmContact','catch'];(function(_0x356aa6,_0x5481d0){const _0x901b8a=function(_0x2f6f32){while(--_0x2f6f32){_0x356aa6['push'](_0x356aa6['shift']());}};_0x901b8a(++_0x5481d0);}(a1032_0x5481,0x17b));const a1032_0x901b=function(_0x356aa6,_0x5481d0){_0x356aa6=_0x356aa6-0x0;let _0x901b8a=a1032_0x5481[_0x356aa6];return _0x901b8a;};const _0x4e38e6=a1032_0x901b;'use strict';const moment=require(_0x4e38e6('0x2e')),_=require(_0x4e38e6('0xe')),jayson=require(_0x4e38e6('0x9')),client=jayson[_0x4e38e6('0x0')]['http']({'port':0x2329});function request(_0x2f6f32,_0x20d6ff){return new Promise(function(_0x5bc4fa,_0x4db843){const _0x34868a=a1032_0x901b;return client[_0x34868a('0x26')](_0x2f6f32,_0x20d6ff)[_0x34868a('0x10')](function(_0x5d8556){const _0x322e49=_0x34868a;return _0x5d8556[_0x322e49('0x2d')]?_0x4db843(_0x5d8556[_0x322e49('0x2d')][_0x322e49('0x27')]):_0x5bc4fa(_0x5d8556[_0x322e49('0xf')]);})[_0x34868a('0xc')](function(_0x4b75c6){return _0x4db843(_0x4b75c6);});});}exports['getSquareProject']=function(_0x11f6e2){return request('ShowSquareProject',{'options':{'raw':![],'where':{'name':_0x11f6e2},'attributes':['production']}});},exports[_0x4e38e6('0x2c')]=function(_0x117192){const _0x5c7780=_0x4e38e6;return request(_0x5c7780('0x4'),{'options':{'raw':![],'where':{'id':_0x117192},'include':[{'model':_0x5c7780('0x2'),'as':'Smtp'}],'attributes':['id',_0x5c7780('0x17'),_0x5c7780('0x5')]}});},exports[_0x4e38e6('0x13')]=function(_0x82c799){const _0x27458b=_0x4e38e6;return request('ShowSquareProject',{'options':{'where':{'id':_0x82c799},'attributes':[_0x27458b('0x17')]}});},exports[_0x4e38e6('0x14')]=function(_0xc8f620){return request('ShowVoiceQueue',{'options':{'where':{'id':_0xc8f620},'attributes':['name']}});},exports[_0x4e38e6('0x20')]=function(_0x59d762){const _0x27847b=_0x4e38e6;return request(_0x27847b('0x1b'),{'options':{'where':{'id':_0x59d762},'attributes':[_0x27847b('0x17')]}});},exports['getSquareOdbcById']=function(_0x48944a){const _0x29202f=_0x4e38e6;return request(_0x29202f('0x29'),{'options':{'where':{'id':_0x48944a},'attributes':[_0x29202f('0x2a')]}});},exports[_0x4e38e6('0xa')]=function(_0x5417bd){const _0x5a6eca=_0x4e38e6;return request(_0x5a6eca('0x2b'),{'options':{'where':{'id':_0x5417bd},'attributes':[_0x5a6eca('0x17')]}});},exports['getTrunkById']=function(_0x4dd654){const _0x38f5d1=_0x4e38e6;return request(_0x38f5d1('0x19'),{'options':{'where':{'id':_0x4dd654},'attributes':[_0x38f5d1('0x17')]}});},exports['getSoundById']=function(_0xdc6b76){return request('ShowSound',{'options':{'where':{'id':_0xdc6b76},'attributes':['save_name']}});},exports[_0x4e38e6('0x28')]=function(_0x373060){const _0x2d8490=_0x4e38e6;return request('ShowInterval',{'options':{'raw':![],'where':{'id':_0x373060},'include':[{'model':'Interval','as':_0x2d8490('0x30')}]}});},exports['getSmsAccountById']=function(_0x57842d){const _0x27fc9b=_0x4e38e6;return request(_0x27fc9b('0x6'),{'options':{'where':{'id':_0x57842d},'attributes':['id',_0x27fc9b('0x17')]}});},exports[_0x4e38e6('0x15')]=function(_0x49f939){const _0x5a54af=_0x4e38e6;return request(_0x5a54af('0x2f'),{'body':_0x49f939});},exports[_0x4e38e6('0x1d')]=function(_0x4122cb){const _0x4a6211=_0x4e38e6;return request(_0x4a6211('0x1a'),{'body':_0x4122cb});},exports['createSquareReport']=function(_0x359c44){const _0x14102d=_0x4e38e6;return request(_0x14102d('0x12'),{'body':_[_0x14102d('0x23')](_0x359c44,{'project_name':_0x359c44[_0x14102d('0x24')],'prev_project_name':_0x359c44[_0x14102d('0x1c')]||'','is_subproject':_0x359c44[_0x14102d('0x1c')]?!![]:![],'leaveAt':moment()['format'](_0x14102d('0x25'))})});},exports[_0x4e38e6('0x21')]=function(_0x3ee22d){return request('CreateSquareRecording',{'body':_0x3ee22d});},exports[_0x4e38e6('0xd')]=function(_0x12a800){const _0x464d12=_0x4e38e6;return request(_0x464d12('0x1'),{'body':_0x12a800});},exports[_0x4e38e6('0xb')]=function(_0x9c098d){const _0x3cf259=_0x4e38e6;return request(_0x3cf259('0x1f'),{'options':{'raw':![],'where':{'phone':_0x9c098d['phone'],'ListId':_0x9c098d['ListId']}}})[_0x3cf259('0x10')](function(_0x1269c2){if(_0x1269c2)return _0x1269c2;return request('CreateCmContact',{'body':_0x9c098d});});},exports[_0x4e38e6('0x16')]=function(_0x1e6ab8){const _0x1f4c9a=_0x4e38e6;return request(_0x1f4c9a('0x7'),{'options':{'where':{'id':_0x1e6ab8},'attributes':[_0x1f4c9a('0x17')]}});},exports[_0x4e38e6('0x18')]=function(_0x53c8df,_0x93ea6b){const _0x3d287e=_0x4e38e6;return request(_0x3d287e('0x22'),{'body':{'interface':_0x93ea6b},'options':{'where':_0x53c8df}});},exports['agentPause']=function(_0xb5955c,_0x3258e2,_0x176ffc){const _0x1e5c3f=_0x4e38e6;return request(_0x1e5c3f('0x8'),{'body':{'type':_0x3258e2,'uniqueid':_0x176ffc},'options':{'where':_0xb5955c}});},exports[_0x4e38e6('0x11')]=function(_0x317a50){const _0x543841=_0x4e38e6;return request(_0x543841('0x1e'),{'body':{},'options':{'where':_0x317a50}});},exports['agentLogout']=function(_0xea2635){const _0x5e60b4=_0x4e38e6;return request(_0x5e60b4('0x3'),{'body':{},'options':{'where':_0xea2635}});}; \ No newline at end of file +const a1196_0x5636=['error','phone','CreateSquareDetailsReport','agentLogout','ShowSound','CreateSquareReport','getMailAccountById','result','CreateCmContact','then','merge','createSquareMessage','format','request','createCmContact','save_name','Smtp','getSquareProjectById','CreateSmsMessage','ShowMailAccount','PauseUser','ShowVariable','dsn','ShowSquareProject','Intervals','ShowCmHopper','getSoundById','ShowPause','LogoutUser','arg_2','ShowVoiceQueue','ShowSquareOdbc','lodash','createSmsMessage','client','getIntervalById','Interval','message','createSquareReport','name','getVariableById','http','agentPause','catch','getVoiceQueueById','getSmsAccountById','ShowInterval','MailServerOut','email','getUserById','ListId'];(function(_0x2f5069,_0x47ab48){const _0x56369a=function(_0x20ca5a){while(--_0x20ca5a){_0x2f5069['push'](_0x2f5069['shift']());}};_0x56369a(++_0x47ab48);}(a1196_0x5636,0x1e0));const a1196_0x20ca=function(_0x2f5069,_0x47ab48){_0x2f5069=_0x2f5069-0x1ce;let _0x56369a=a1196_0x5636[_0x2f5069];return _0x56369a;};const a1196_0x3cd240=a1196_0x20ca;'use strict';const moment=require('moment'),_=require(a1196_0x3cd240(0x1d9)),jayson=require('jayson/promise'),client=jayson[a1196_0x3cd240(0x1db)][a1196_0x3cd240(0x1e2)]({'port':0x2329});function request(_0x2004d8,_0x3ad2e3){return new Promise(function(_0x1c3cad,_0x47b175){const _0xce0a84=a1196_0x20ca;return client[_0xce0a84(0x1f9)](_0x2004d8,_0x3ad2e3)[_0xce0a84(0x1f5)](function(_0x2db557){const _0x49c0b7=_0xce0a84;return _0x2db557[_0x49c0b7(0x1ec)]?_0x47b175(_0x2db557[_0x49c0b7(0x1ec)][_0x49c0b7(0x1de)]):_0x1c3cad(_0x2db557[_0x49c0b7(0x1f3)]);})[_0xce0a84(0x1e4)](function(_0x16a093){return _0x47b175(_0x16a093);});});}exports['getSquareProject']=function(_0x50edd9){const _0x4124e5=a1196_0x3cd240;return request(_0x4124e5(0x1d0),{'options':{'raw':![],'where':{'name':_0x50edd9},'attributes':['production']}});},exports[a1196_0x3cd240(0x1f2)]=function(_0x494544){const _0x2d8002=a1196_0x3cd240;return request(_0x2d8002(0x1ff),{'options':{'raw':![],'where':{'id':_0x494544},'include':[{'model':_0x2d8002(0x1e8),'as':_0x2d8002(0x1fc)}],'attributes':['id',_0x2d8002(0x1e0),_0x2d8002(0x1e9)]}});},exports[a1196_0x3cd240(0x1fd)]=function(_0x2e3c8f){const _0x3acfb7=a1196_0x3cd240;return request('ShowSquareProject',{'options':{'where':{'id':_0x2e3c8f},'attributes':[_0x3acfb7(0x1e0)]}});},exports[a1196_0x3cd240(0x1e5)]=function(_0x337fc9){const _0x3a194c=a1196_0x3cd240;return request(_0x3a194c(0x1d7),{'options':{'where':{'id':_0x337fc9},'attributes':[_0x3a194c(0x1e0)]}});},exports[a1196_0x3cd240(0x1e1)]=function(_0x420b57){const _0x357782=a1196_0x3cd240;return request(_0x357782(0x1ce),{'options':{'where':{'id':_0x420b57},'attributes':[_0x357782(0x1e0)]}});},exports['getSquareOdbcById']=function(_0x15a7bb){const _0x47c1cf=a1196_0x3cd240;return request(_0x47c1cf(0x1d8),{'options':{'where':{'id':_0x15a7bb},'attributes':[_0x47c1cf(0x1cf)]}});},exports[a1196_0x3cd240(0x1ea)]=function(_0x33a85d){const _0x5223cc=a1196_0x3cd240;return request('ShowUser',{'options':{'where':{'id':_0x33a85d},'attributes':[_0x5223cc(0x1e0)]}});},exports['getTrunkById']=function(_0x4e3726){return request('ShowTrunk',{'options':{'where':{'id':_0x4e3726},'attributes':['name']}});},exports[a1196_0x3cd240(0x1d3)]=function(_0x1346c9){const _0x3cf591=a1196_0x3cd240;return request(_0x3cf591(0x1f0),{'options':{'where':{'id':_0x1346c9},'attributes':[_0x3cf591(0x1fb)]}});},exports[a1196_0x3cd240(0x1dc)]=function(_0x3a72cd){const _0x5de43d=a1196_0x3cd240;return request(_0x5de43d(0x1e7),{'options':{'raw':![],'where':{'id':_0x3a72cd},'include':[{'model':_0x5de43d(0x1dd),'as':_0x5de43d(0x1d1)}]}});},exports[a1196_0x3cd240(0x1e6)]=function(_0xd1e253){const _0x548422=a1196_0x3cd240;return request('ShowSmsAccount',{'options':{'where':{'id':_0xd1e253},'attributes':['id',_0x548422(0x1e0)]}});},exports[a1196_0x3cd240(0x1da)]=function(_0x5b254e){const _0x240b77=a1196_0x3cd240;return request(_0x240b77(0x1fe),{'body':_0x5b254e});},exports['createSquareDetailsReport']=function(_0x4ac950){const _0x2d85ad=a1196_0x3cd240;return request(_0x2d85ad(0x1ee),{'body':_0x4ac950});},exports[a1196_0x3cd240(0x1df)]=function(_0x53cc6a){const _0x3eaaab=a1196_0x3cd240;return request(_0x3eaaab(0x1f1),{'body':_[_0x3eaaab(0x1f6)](_0x53cc6a,{'project_name':_0x53cc6a['arg_1'],'prev_project_name':_0x53cc6a[_0x3eaaab(0x1d6)]||'','is_subproject':_0x53cc6a[_0x3eaaab(0x1d6)]?!![]:![],'leaveAt':moment()[_0x3eaaab(0x1f8)]('YYYY-MM-DD\x20HH:mm:ss')})});},exports['createSquareRecording']=function(_0x296570){return request('CreateSquareRecording',{'body':_0x296570});},exports[a1196_0x3cd240(0x1f7)]=function(_0x586ae4){return request('CreateSquareMessage',{'body':_0x586ae4});},exports[a1196_0x3cd240(0x1fa)]=function(_0x26eea9){const _0x262d9d=a1196_0x3cd240;return request(_0x262d9d(0x1d2),{'options':{'raw':![],'where':{'phone':_0x26eea9[_0x262d9d(0x1ed)],'ListId':_0x26eea9[_0x262d9d(0x1eb)]}}})[_0x262d9d(0x1f5)](function(_0x2afd58){const _0x20b2ac=_0x262d9d;if(_0x2afd58)return _0x2afd58;return request(_0x20b2ac(0x1f4),{'body':_0x26eea9});});},exports['getPauseById']=function(_0x2ba804){const _0xca8ee8=a1196_0x3cd240;return request(_0xca8ee8(0x1d4),{'options':{'where':{'id':_0x2ba804},'attributes':['name']}});},exports['agentLogin']=function(_0x2c645c,_0x3cc043){return request('LoginUser',{'body':{'interface':_0x3cc043},'options':{'where':_0x2c645c}});},exports[a1196_0x3cd240(0x1e3)]=function(_0x1ad080,_0xdd8c14,_0x372c05){const _0x46b301=a1196_0x3cd240;return request(_0x46b301(0x200),{'body':{'type':_0xdd8c14,'uniqueid':_0x372c05},'options':{'where':_0x1ad080}});},exports['agentUnpause']=function(_0x4137c2){return request('UnpauseUser',{'body':{},'options':{'where':_0x4137c2}});},exports[a1196_0x3cd240(0x1ef)]=function(_0x2f40cd){const _0x49a120=a1196_0x3cd240;return request(_0x49a120(0x1d5),{'body':{},'options':{'where':_0x2f40cd}});}; \ 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 3ed6267..6a5e552 100644 --- a/server/services/agi/scripts/aws/index.js +++ b/server/services/agi/scripts/aws/index.js @@ -1 +1 @@ -const a1033_0x2c4e=['./polly','./lex'];(function(_0x4999e5,_0x2c4eb7){const _0x2eced0=function(_0x1001b6){while(--_0x1001b6){_0x4999e5['push'](_0x4999e5['shift']());}};_0x2eced0(++_0x2c4eb7);}(a1033_0x2c4e,0xd3));const a1033_0x2ece=function(_0x4999e5,_0x2c4eb7){_0x4999e5=_0x4999e5-0x0;let _0x2eced0=a1033_0x2c4e[_0x4999e5];return _0x2eced0;};const _0x415413=a1033_0x2ece,polly=require(_0x415413('0x1')),lex=require(_0x415413('0x0'));module['exports']={'polly':polly,'lex':lex}; \ No newline at end of file +const a1197_0x5320=['./lex','polly','lex','exports','./polly'];(function(_0x5a7feb,_0x4f5942){const _0x5320fc=function(_0x422f12){while(--_0x422f12){_0x5a7feb['push'](_0x5a7feb['shift']());}};_0x5320fc(++_0x4f5942);}(a1197_0x5320,0x178));const a1197_0x422f=function(_0x5a7feb,_0x4f5942){_0x5a7feb=_0x5a7feb-0x192;let _0x5320fc=a1197_0x5320[_0x5a7feb];return _0x5320fc;};const a1197_0x4ade87=a1197_0x422f,polly=require(a1197_0x4ade87(0x195)),lex=require(a1197_0x4ade87(0x196));module[a1197_0x4ade87(0x194)][a1197_0x4ade87(0x192)]=polly,module[a1197_0x4ade87(0x194)][a1197_0x4ade87(0x193)]=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 36dc656..f9d419a 100644 --- a/server/services/agi/scripts/aws/lex/index.js +++ b/server/services/agi/scripts/aws/lex/index.js @@ -1 +1 @@ -const a1034_0x4ef8=['./lib/api','exports'];(function(_0x333465,_0x4ef8a3){const _0x3f76d6=function(_0x2e892e){while(--_0x2e892e){_0x333465['push'](_0x333465['shift']());}};_0x3f76d6(++_0x4ef8a3);}(a1034_0x4ef8,0x11b));const a1034_0x3f76=function(_0x333465,_0x4ef8a3){_0x333465=_0x333465-0x0;let _0x3f76d6=a1034_0x4ef8[_0x333465];return _0x3f76d6;};const _0x390505=a1034_0x3f76;'use strict';const lex=require(_0x390505('0x1'));module[_0x390505('0x0')]=function(_0x2e892e,_0x3074c6,_0x1a918a,_0x183f8f,_0x1c9da6,_0x5bc728){return lex(_0x2e892e,_0x3074c6,_0x1a918a,_0x183f8f,_0x1c9da6,_0x5bc728);}; \ No newline at end of file +const a1198_0x1d08=['exports'];(function(_0x1b81b8,_0x2bcc8b){const _0x1d0890=function(_0x1625b6){while(--_0x1625b6){_0x1b81b8['push'](_0x1b81b8['shift']());}};_0x1d0890(++_0x2bcc8b);}(a1198_0x1d08,0x1b8));const a1198_0x1625=function(_0x1b81b8,_0x2bcc8b){_0x1b81b8=_0x1b81b8-0x1e5;let _0x1d0890=a1198_0x1d08[_0x1b81b8];return _0x1d0890;};const a1198_0x39f092=a1198_0x1625;'use strict';const lex=require('./lib/api');module[a1198_0x39f092(0x1e5)]=function(_0x30d34c,_0x57a99d,_0xd7e29e,_0x1d535b,_0x105878,_0x2a51a0){return lex(_0x30d34c,_0x57a99d,_0xd7e29e,_0x1d535b,_0x105878,_0x2a51a0);}; \ 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 b4127ff..52caf37 100644 --- a/server/services/agi/scripts/aws/lex/lib/api.js +++ b/server/services/agi/scripts/aws/lex/lib/api.js @@ -1 +1 @@ -const a1035_0x4197=['undefined','LexRuntime','aws-sdk','slots','exports','slot_','postText','$LATEST'];(function(_0x1f2cb4,_0x419783){const _0x4b23d3=function(_0x3bb34f){while(--_0x3bb34f){_0x1f2cb4['push'](_0x1f2cb4['shift']());}};_0x4b23d3(++_0x419783);}(a1035_0x4197,0x197));const a1035_0x4b23=function(_0x1f2cb4,_0x419783){_0x1f2cb4=_0x1f2cb4-0x0;let _0x4b23d3=a1035_0x4197[_0x1f2cb4];return _0x4b23d3;};const _0x5508bb=a1035_0x4b23;'use strict';const AWS=require(_0x5508bb('0x3'));function lexResult(_0x3bb34f,_0x4c7912){return new Promise(function(_0x287e0f,_0x3b4918){const _0xf672ac=a1035_0x4b23;_0x3bb34f[_0xf672ac('0x7')](_0x4c7912,function(_0xd881f2,_0x5da6b9){const _0x144d86=_0xf672ac;_0xd881f2&&_0x3b4918(_0xd881f2);if(_0x5da6b9[_0x144d86('0x4')])for(const _0x2291a8 in _0x5da6b9[_0x144d86('0x4')]){if(typeof _0x5da6b9['slots'][_0x2291a8]!==_0x144d86('0x1')){const _0x1de978=_0x5da6b9[_0x144d86('0x4')][_0x2291a8];_0x5da6b9[_0x144d86('0x6')+_0x2291a8]=_0x1de978;}}_0x287e0f(_0x5da6b9);});});}module[_0x5508bb('0x5')]=function(_0x18040c,_0x1a6017,_0x5b2b0a,_0x469a38,_0x4783ae,_0x3b93ee){const _0x1ac59f=_0x5508bb,_0x5f2596=new AWS[(_0x1ac59f('0x2'))]({'accessKeyId':_0x1a6017,'secretAccessKey':_0x5b2b0a,'region':_0x469a38}),_0x4ac5a7={'botAlias':_0x1ac59f('0x0'),'botName':_0x3b93ee,'inputText':_0x4783ae,'userId':_0x18040c};return lexResult(_0x5f2596,_0x4ac5a7);}; \ No newline at end of file +const a1199_0x4b15=['$LATEST','slots','LexRuntime','postText'];(function(_0x41321b,_0x4b143f){const _0x4b153d=function(_0x377f6c){while(--_0x377f6c){_0x41321b['push'](_0x41321b['shift']());}};_0x4b153d(++_0x4b143f);}(a1199_0x4b15,0xf8));const a1199_0x377f=function(_0x41321b,_0x4b143f){_0x41321b=_0x41321b-0x1a0;let _0x4b153d=a1199_0x4b15[_0x41321b];return _0x4b153d;};'use strict';const AWS=require('aws-sdk');function lexResult(_0x1e668c,_0x2418a3){return new Promise(function(_0x4a6e1e,_0x1260d5){const _0x1fc445=a1199_0x377f;_0x1e668c[_0x1fc445(0x1a3)](_0x2418a3,function(_0x19a1b2,_0x2e84df){const _0x19b9b3=_0x1fc445;_0x19a1b2&&_0x1260d5(_0x19a1b2);if(_0x2e84df['slots'])for(const _0x2f80bd in _0x2e84df[_0x19b9b3(0x1a1)]){if(typeof _0x2e84df[_0x19b9b3(0x1a1)][_0x2f80bd]!=='undefined'){const _0x187b61=_0x2e84df['slots'][_0x2f80bd];_0x2e84df['slot_'+_0x2f80bd]=_0x187b61;}}_0x4a6e1e(_0x2e84df);});});}module['exports']=function(_0x3f6641,_0x409c60,_0x2c8a9c,_0x5d5033,_0x3bac4a,_0x3842a7){const _0x4135c4=a1199_0x377f,_0x41c5f5=new AWS[(_0x4135c4(0x1a2))]({'accessKeyId':_0x409c60,'secretAccessKey':_0x2c8a9c,'region':_0x5d5033}),_0xe04704={'botAlias':_0x4135c4(0x1a0),'botName':_0x3842a7,'inputText':_0x3bac4a,'userId':_0x3f6641};return lexResult(_0x41c5f5,_0xe04704);}; \ 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 a60049d..5ccb16b 100644 --- a/server/services/agi/scripts/aws/polly/index.js +++ b/server/services/agi/scripts/aws/polly/index.js @@ -1 +1 @@ -const a1036_0x420d=['./lib/api','exports'];(function(_0x22b233,_0x420df0){const _0x451d68=function(_0x3c3d66){while(--_0x3c3d66){_0x22b233['push'](_0x22b233['shift']());}};_0x451d68(++_0x420df0);}(a1036_0x420d,0x145));const a1036_0x451d=function(_0x22b233,_0x420df0){_0x22b233=_0x22b233-0x0;let _0x451d68=a1036_0x420d[_0x22b233];return _0x451d68;};const _0x4696e5=a1036_0x451d;'use strict';const polly=require(_0x4696e5('0x1'));module[_0x4696e5('0x0')]=function(_0x3c3d66,_0x2e5ded,_0x4802ea,_0x1843c4,_0x2a3a6c,_0x175cb5,_0x502f05){return polly(_0x3c3d66,_0x2e5ded,_0x4802ea,_0x1843c4,_0x2a3a6c,_0x175cb5,_0x502f05);}; \ No newline at end of file +const a1200_0x3929=['exports'];(function(_0x32a995,_0x30450b){const _0x3929c7=function(_0x4dedd2){while(--_0x4dedd2){_0x32a995['push'](_0x32a995['shift']());}};_0x3929c7(++_0x30450b);}(a1200_0x3929,0x1e7));const a1200_0x4ded=function(_0x32a995,_0x30450b){_0x32a995=_0x32a995-0x18e;let _0x3929c7=a1200_0x3929[_0x32a995];return _0x3929c7;};const a1200_0x1d5204=a1200_0x4ded;'use strict';const polly=require('./lib/api');module[a1200_0x1d5204(0x18e)]=function(_0x573892,_0x5cd60a,_0x4b96a7,_0x5335f0,_0x42b096,_0xca2b2,_0x18339d){return polly(_0x573892,_0x5cd60a,_0x4b96a7,_0x5335f0,_0x42b096,_0xca2b2,_0x18339d);}; \ 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 f2303d0..dca7d68 100644 --- a/server/services/agi/scripts/aws/polly/lib/api.js +++ b/server/services/agi/scripts/aws/polly/lib/api.js @@ -1 +1 @@ -const a1037_0x119c=['aws-sdk','No\x20data\x20response\x20from\x20aws\x20Polly!','AudioStream','text','Invalid\x20data\x20response\x20from\x20aws\x20Polly!','mp3','exports'];(function(_0x4b8b8a,_0x119c60){const _0x28a05f=function(_0xb570b9){while(--_0xb570b9){_0x4b8b8a['push'](_0x4b8b8a['shift']());}};_0x28a05f(++_0x119c60);}(a1037_0x119c,0x18f));const a1037_0x28a0=function(_0x4b8b8a,_0x119c60){_0x4b8b8a=_0x4b8b8a-0x0;let _0x28a05f=a1037_0x119c[_0x4b8b8a];return _0x28a05f;};const _0x3847ff=a1037_0x28a0;'use strict';const fs=require('fs'),AWS=require(_0x3847ff('0x0'));function pollyResult(_0xb570b9,_0x4b5a9f,_0x1bab19){return new Promise(function(_0x24408b,_0x237522){_0xb570b9['synthesizeSpeech'](_0x4b5a9f,function(_0x1b2d6f,_0xe0363b){const _0x5d1fe2=a1037_0x28a0;if(_0x1b2d6f)_0x237522(_0x1b2d6f);else _0xe0363b?_0xe0363b[_0x5d1fe2('0x2')]instanceof Buffer?fs['writeFile'](_0x1bab19,_0xe0363b[_0x5d1fe2('0x2')],function(_0x3806a7){_0x3806a7?_0x237522(_0x3806a7):_0x24408b();}):_0x237522(new Error(_0x5d1fe2('0x4'))):_0x237522(new Error(_0x5d1fe2('0x1')));});});}module[_0x3847ff('0x6')]=function(_0x1b93ca,_0x4ed383,_0x332cce,_0x2e717d,_0x27e815,_0x5f1c81,_0x25e4d8){const _0x1d289a=_0x3847ff,_0x56160e=new AWS['Polly']({'accessKeyId':_0x1b93ca,'secretAccessKey':_0x4ed383,'region':_0x332cce}),_0x5e711a={'Text':_0x27e815,'TextType':_0x5f1c81||_0x1d289a('0x3'),'OutputFormat':_0x1d289a('0x5'),'VoiceId':_0x2e717d};return pollyResult(_0x56160e,_0x5e711a,_0x25e4d8);}; \ No newline at end of file +const a1201_0x11ec=['AudioStream','writeFile','mp3','Polly','No\x20data\x20response\x20from\x20aws\x20Polly!','text','aws-sdk'];(function(_0x52daa7,_0x4461ad){const _0x11ecd4=function(_0x12ac96){while(--_0x12ac96){_0x52daa7['push'](_0x52daa7['shift']());}};_0x11ecd4(++_0x4461ad);}(a1201_0x11ec,0xc6));const a1201_0x12ac=function(_0x52daa7,_0x4461ad){_0x52daa7=_0x52daa7-0x77;let _0x11ecd4=a1201_0x11ec[_0x52daa7];return _0x11ecd4;};const a1201_0x28d87f=a1201_0x12ac;'use strict';const fs=require('fs'),AWS=require(a1201_0x28d87f(0x7b));function pollyResult(_0x3a5358,_0x280eb5,_0x351787){return new Promise(function(_0x2c1538,_0x241cf3){_0x3a5358['synthesizeSpeech'](_0x280eb5,function(_0x455ed0,_0x5f1e2f){const _0x4890fc=a1201_0x12ac;if(_0x455ed0)_0x241cf3(_0x455ed0);else _0x5f1e2f?_0x5f1e2f[_0x4890fc(0x7c)]instanceof Buffer?fs[_0x4890fc(0x7d)](_0x351787,_0x5f1e2f['AudioStream'],function(_0x511c7f){_0x511c7f?_0x241cf3(_0x511c7f):_0x2c1538();}):_0x241cf3(new Error('Invalid\x20data\x20response\x20from\x20aws\x20Polly!')):_0x241cf3(new Error(_0x4890fc(0x79)));});});}module['exports']=function(_0x5a343b,_0x4c1c77,_0x97c821,_0x5a95c5,_0x216d6f,_0x2c2858,_0xa9950e){const _0x2f5f3d=a1201_0x28d87f,_0x598c62=new AWS[(_0x2f5f3d(0x78))]({'accessKeyId':_0x5a343b,'secretAccessKey':_0x4c1c77,'region':_0x97c821}),_0x66d2d0={'Text':_0x216d6f,'TextType':_0x2c2858||_0x2f5f3d(0x7a),'OutputFormat':_0x2f5f3d(0x77),'VoiceId':_0x5a95c5};return pollyResult(_0x598c62,_0x66d2d0,_0xa9950e);}; \ 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 dc51441..007ce70 100644 --- a/server/services/agi/scripts/google/asr/index.js +++ b/server/services/agi/scripts/google/asr/index.js @@ -1 +1 @@ -const a1038_0x34b1=['./lib/api','exports'];(function(_0x18737f,_0x34b1c6){const _0x10af51=function(_0x24a9f9){while(--_0x24a9f9){_0x18737f['push'](_0x18737f['shift']());}};_0x10af51(++_0x34b1c6);}(a1038_0x34b1,0xce));const a1038_0x10af=function(_0x18737f,_0x34b1c6){_0x18737f=_0x18737f-0x0;let _0x10af51=a1038_0x34b1[_0x18737f];return _0x10af51;};const _0x1253aa=a1038_0x10af;'use strict';const asr=require(_0x1253aa('0x0'));module[_0x1253aa('0x1')]=function(_0x24a9f9,_0xdfd8db,_0x4b91d8){return asr(_0x24a9f9,_0xdfd8db,_0x4b91d8);}; \ No newline at end of file +const a1202_0x26b0=['./lib/api','exports'];(function(_0xe520a8,_0x98e1d2){const _0x26b024=function(_0xdd48f0){while(--_0xdd48f0){_0xe520a8['push'](_0xe520a8['shift']());}};_0x26b024(++_0x98e1d2);}(a1202_0x26b0,0xca));const a1202_0xdd48=function(_0xe520a8,_0x98e1d2){_0xe520a8=_0xe520a8-0xb8;let _0x26b024=a1202_0x26b0[_0xe520a8];return _0x26b024;};const a1202_0x1d5937=a1202_0xdd48;'use strict';const asr=require(a1202_0x1d5937(0xb8));module[a1202_0x1d5937(0xb9)]=function(_0x247bae,_0x498395,_0x1f1020){return asr(_0x247bae,_0x498395,_0x1f1020);}; \ 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 75813ec..e59d860 100644 --- a/server/services/agi/scripts/google/asr/lib/api.js +++ b/server/services/agi/scripts/google/asr/lib/api.js @@ -1 +1 @@ -const a1039_0x1a4c=['length','readFileSync','https://speech.googleapis.com','base64','key\x20should\x20be\x20a\x20string','lang\x20should\x20be\x20a\x20string','POST','filepath\x20should\x20be\x20a\x20string','/v1/speech:recognize?key=','string','LINEAR16'];(function(_0x5c8045,_0x1a4c67){const _0x30297c=function(_0x1a87b5){while(--_0x1a87b5){_0x5c8045['push'](_0x5c8045['shift']());}};_0x30297c(++_0x1a4c67);}(a1039_0x1a4c,0xfd));const a1039_0x3029=function(_0x5c8045,_0x1a4c67){_0x5c8045=_0x5c8045-0x0;let _0x30297c=a1039_0x1a4c[_0x5c8045];return _0x30297c;};const _0x48f635=a1039_0x3029;'use strict';const fs=require('fs'),host=_0x48f635('0x2');module['exports']=function(_0x1a87b5,_0x28272b,_0x483643){return new Promise(function(_0x1520ad,_0x5bf535){const _0x562a2a=a1039_0x3029;let _0x31a96f;if(typeof _0x1a87b5!==_0x562a2a('0x9')||_0x1a87b5[_0x562a2a('0x0')]===0x0)return _0x5bf535(_0x562a2a('0x7'));if(typeof _0x28272b!=='string'||_0x28272b[_0x562a2a('0x0')]===0x0)return _0x5bf535(_0x562a2a('0x4'));if(typeof _0x483643!=='undefined'&&(typeof _0x483643!==_0x562a2a('0x9')||_0x483643[_0x562a2a('0x0')]===0x0))return _0x5bf535(_0x562a2a('0x5'));try{_0x31a96f=fs[_0x562a2a('0x1')](_0x1a87b5)['toString'](_0x562a2a('0x3'));}catch(_0x1d173c){return _0x5bf535(_0x1d173c);}return _0x1520ad({'method':_0x562a2a('0x6'),'uri':host+_0x562a2a('0x8')+_0x28272b,'body':{'config':{'encoding':_0x562a2a('0xa'),'sampleRateHertz':'8000','languageCode':_0x483643},'audio':{'content':_0x31a96f}},'json':!![]});});}; \ No newline at end of file +const a1203_0x5e05=['lang\x20should\x20be\x20a\x20string','readFileSync','filepath\x20should\x20be\x20a\x20string','string','base64','undefined','toString','https://speech.googleapis.com','exports','key\x20should\x20be\x20a\x20string','POST','8000','length'];(function(_0x467b59,_0x555931){const _0x5e057c=function(_0x2064ae){while(--_0x2064ae){_0x467b59['push'](_0x467b59['shift']());}};_0x5e057c(++_0x555931);}(a1203_0x5e05,0xda));const a1203_0x2064=function(_0x467b59,_0x555931){_0x467b59=_0x467b59-0x1a6;let _0x5e057c=a1203_0x5e05[_0x467b59];return _0x5e057c;};const a1203_0x5e2961=a1203_0x2064;'use strict';const fs=require('fs'),host=a1203_0x5e2961(0x1b0);module[a1203_0x5e2961(0x1b1)]=function(_0x39bbb5,_0x2dc431,_0x145984){return new Promise(function(_0x562b30,_0x217415){const _0xeefa3e=a1203_0x2064;let _0x1f0fa0;if(typeof _0x39bbb5!==_0xeefa3e(0x1ac)||_0x39bbb5[_0xeefa3e(0x1a8)]===0x0)return _0x217415(_0xeefa3e(0x1ab));if(typeof _0x2dc431!=='string'||_0x2dc431['length']===0x0)return _0x217415(_0xeefa3e(0x1b2));if(typeof _0x145984!==_0xeefa3e(0x1ae)&&(typeof _0x145984!==_0xeefa3e(0x1ac)||_0x145984[_0xeefa3e(0x1a8)]===0x0))return _0x217415(_0xeefa3e(0x1a9));try{_0x1f0fa0=fs[_0xeefa3e(0x1aa)](_0x39bbb5)[_0xeefa3e(0x1af)](_0xeefa3e(0x1ad));}catch(_0x2d9cfc){return _0x217415(_0x2d9cfc);}return _0x562b30({'method':_0xeefa3e(0x1a6),'uri':host+'/v1/speech:recognize?key='+_0x2dc431,'body':{'config':{'encoding':'LINEAR16','sampleRateHertz':_0xeefa3e(0x1a7),'languageCode':_0x145984},'audio':{'content':_0x1f0fa0}},'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 80f7045..080f0c9 100644 --- a/server/services/agi/scripts/google/index.js +++ b/server/services/agi/scripts/google/index.js @@ -1 +1 @@ -const a1040_0x312d=['exports','./asr'];(function(_0x241ccf,_0x312d4e){const _0x3b875e=function(_0x1078a4){while(--_0x1078a4){_0x241ccf['push'](_0x241ccf['shift']());}};_0x3b875e(++_0x312d4e);}(a1040_0x312d,0x160));const a1040_0x3b87=function(_0x241ccf,_0x312d4e){_0x241ccf=_0x241ccf-0x0;let _0x3b875e=a1040_0x312d[_0x241ccf];return _0x3b875e;};const _0x3711ce=a1040_0x3b87,asr=require(_0x3711ce('0x1'));module[_0x3711ce('0x0')]={'asr':asr}; \ No newline at end of file +const a1204_0x2606=['./asr','asr','exports'];(function(_0x13762a,_0x32a281){const _0x2606c6=function(_0x16a2b6){while(--_0x16a2b6){_0x13762a['push'](_0x13762a['shift']());}};_0x2606c6(++_0x32a281);}(a1204_0x2606,0xfe));const a1204_0x16a2=function(_0x13762a,_0x32a281){_0x13762a=_0x13762a-0x15f;let _0x2606c6=a1204_0x2606[_0x13762a];return _0x2606c6;};const a1204_0x27e358=a1204_0x16a2,asr=require(a1204_0x27e358(0x160));module[a1204_0x27e358(0x15f)][a1204_0x27e358(0x161)]=asr; \ No newline at end of file diff --git a/server/services/agi/scripts/index.js b/server/services/agi/scripts/index.js index 57cd27f..cb7671c 100644 --- a/server/services/agi/scripts/index.js +++ b/server/services/agi/scripts/index.js @@ -1 +1 @@ -const a1041_0x5791=['statusCode','agi','googleDialogflow','action','util','base64','message','get','boolValue','@google-cloud/dialogflow','nda','googleCloudTTS\x20path','sox','languageCode','endConversation','metadata','MP3','Data','google-tts-api','name','ssml','googleDialogflowV2','protocol','goggleTTS\x20path','%s?apikey=%s&action=convert&text=%s&voice=%s&speed=%s&format=mp3','queryResult','input','createWriteStream','statusMessage','request\x20to\x20','split','POST','.mp3','./sestek','results','https','randomstring','freeform=3','querystring','model=%s','from','uri','isFallbackIntent','../../../config/logger','lex','?key=','join','transcript','projectAgentSessionPath','resolve','diagnosticInfo','queryText','WHAT_EVER','fulfillment','https:','error','close','googleCloudTTS','intentDetectionConfidence','code','./aws','then','readFileSync','length','googleTTS','responseId','awsLex','asr','end','fields','sestekNDA','CustomActionData','chmodSync','AudioFromTts','status','channelData','audioConfig','polly','pathname','request-promise-native','textRequest','stringify','host','finish','toString','actionIncomplete','audiofile','info','confidence','audioContent','Tilde\x20ASR\x20transcription','start','.wav','url','./google','detectIntent','parse','[%s]\x20%s:%s','https://api.ispeech.org/api/rest','map','voice','intent','alternatives','777','data','resolvedQuery','unlink','finish\x20download\x20file','text','result','tmp','\x20failed,\x20status\x20code\x20=\x20','source','finish\x20to\x20convert','isFallback','wav','generate','tildeASR','download\x20error','displayName','format','path','text:synthesize','writeFileSync','catch','apiai-promise','./tilde','http'];(function(_0x1479ce,_0x5791d1){const _0x551c06=function(_0x5b31d1){while(--_0x5b31d1){_0x1479ce['push'](_0x1479ce['shift']());}};_0x551c06(++_0x5791d1);}(a1041_0x5791,0x177));const a1041_0x551c=function(_0x1479ce,_0x5791d1){_0x1479ce=_0x1479ce-0x0;let _0x551c06=a1041_0x5791[_0x1479ce];return _0x551c06;};const _0x5d5142=a1041_0x551c;'use strict';const fs=require('fs'),path=require(_0x5d5142('0x2')),http=require(_0x5d5142('0x8')),https=require(_0x5d5142('0x2c')),{URL}=require(_0x5d5142('0x66')),rs=require(_0x5d5142('0x2d')),sox=require(_0x5d5142('0x15')),rp=require(_0x5d5142('0x58')),util=require(_0x5d5142('0xd')),querystring=require(_0x5d5142('0x2f')),tts=require(_0x5d5142('0x1b')),apiai=require(_0x5d5142('0x6')),md5=require('md5'),google=require(_0x5d5142('0x67')),aws=require(_0x5d5142('0x45')),tilde=require(_0x5d5142('0x7')),sestek=require(_0x5d5142('0x2a')),dialogflow=require(_0x5d5142('0x12')),logger=require(_0x5d5142('0x34'))(_0x5d5142('0xa')),ISPEECH_API=_0x5d5142('0x6b');function downloadFile(_0x5b31d1,_0x440a76){return new Promise(function(_0x3df1c1,_0x5a6ee7){const _0x591f0b=a1041_0x551c,_0x2265ca=new URL(_0x5b31d1),_0x298c17=_0x2265ca[_0x591f0b('0x1f')]===_0x591f0b('0x3f')?https:http,_0x455028={'host':_0x2265ca[_0x591f0b('0x5b')],'path':_0x2265ca[_0x591f0b('0x57')],'headers':{'user-agent':_0x591f0b('0x3d')}};_0x298c17['get'](_0x455028,function(_0x2dfe00){const _0x28abbb=_0x591f0b;if(_0x2dfe00[_0x28abbb('0x9')]!==0xc8){logger['error'](_0x28abbb('0x26')+_0x5b31d1+_0x28abbb('0x78')+_0x2dfe00[_0x28abbb('0x9')]+'\x20('+_0x2dfe00['statusMessage']+')'),_0x5a6ee7(new Error(_0x28abbb('0x26')+_0x5b31d1+_0x28abbb('0x78')+_0x2dfe00['statusCode']+'\x20('+_0x2dfe00[_0x28abbb('0x25')]+')'));return;}const _0x2fb8b0=fs[_0x28abbb('0x24')](_0x440a76);_0x2fb8b0['on'](_0x28abbb('0x5c'),function(){const _0x1217a7=_0x28abbb;logger[_0x1217a7('0x60')](_0x1217a7('0x74')),_0x2fb8b0[_0x1217a7('0x41')](_0x3df1c1);}),_0x2fb8b0['on'](_0x28abbb('0x40'),function(_0x2f8f05){const _0x4c19eb=_0x28abbb;fs['unlink'](_0x440a76),logger['error'](_0x4c19eb('0x7f'),_0x2f8f05),_0x5a6ee7(_0x2f8f05);}),_0x2dfe00['pipe'](_0x2fb8b0);})['on'](_0x591f0b('0x40'),function(_0x31d402){logger['error'](_0x31d402),_0x5a6ee7(_0x31d402);})[_0x591f0b('0x4d')]();});}function uploadFile(_0x218bfb){return new Promise(function(_0x5cbf4c,_0x4736d0){const _0x2fd52e=a1041_0x551c,_0x1d1c8a=new URL(_0x218bfb),_0x217c6c=_0x1d1c8a[_0x2fd52e('0x1f')]==='https:'?https:http,_0x375dae={'host':_0x1d1c8a['host'],'path':_0x1d1c8a['pathname'],'headers':{'user-agent':_0x2fd52e('0x3d')}};_0x217c6c[_0x2fd52e('0x10')](_0x375dae,function(_0x44cfe3){const _0x138452=_0x2fd52e;if(_0x44cfe3[_0x138452('0x9')]!==0xc8){_0x4736d0(new Error(_0x138452('0x26')+_0x218bfb+_0x138452('0x78')+_0x44cfe3['statusCode']+'\x20('+_0x44cfe3[_0x138452('0x25')]+')'));return;}let _0x4058d4='';_0x44cfe3['on'](_0x138452('0x71'),function(_0x30d434){_0x4058d4+=_0x30d434;}),_0x44cfe3['on'](_0x138452('0x4d'),function(){_0x5cbf4c(_0x4058d4);});})['on'](_0x2fd52e('0x40'),function(_0x22ae3a){_0x4736d0(_0x22ae3a);})[_0x2fd52e('0x4d')]();});}function convertFile(_0x4917a9,_0x374a5b){return new Promise(function(_0x587e51,_0x42c314){const _0x57e917=a1041_0x551c,_0x229d28=sox['transcode'](_0x4917a9,_0x374a5b,{'sampleRate':0x1f40,'format':_0x57e917('0x7c'),'channelCount':0x1,'bitRate':0xc0*0x400,'compressionQuality':0x5});_0x229d28['on'](_0x57e917('0x40'),function(_0x1a4915){const _0x3f8534=_0x57e917;logger[_0x3f8534('0x40')]('error\x20convert',_0x1a4915),_0x42c314(_0x1a4915);}),_0x229d28['on'](_0x57e917('0x4d'),function(){const _0x53605a=_0x57e917;logger[_0x53605a('0x60')](_0x53605a('0x7a')),_0x587e51();}),_0x229d28[_0x57e917('0x64')]();});}function base64Decode(_0x940178,_0x5d7dcb){const _0x1c17e=_0x5d5142,_0x4f8982=path[_0x1c17e('0x3a')](__dirname,'tmp',rs['generate'](0x4)+'.wav');return fs[_0x1c17e('0x4')](_0x4f8982,_0x940178,_0x1c17e('0xe')),convertFile(_0x4f8982,_0x5d7dcb)['then'](function(){const _0x4ff63b=_0x1c17e;try{fs[_0x4ff63b('0x73')](_0x4f8982),fs[_0x4ff63b('0x51')](_0x5d7dcb,'777');}catch(_0x3e0a50){logger[_0x4ff63b('0x40')](_0x3e0a50);}return _0x5d7dcb[_0x4ff63b('0x27')]('.')[0x0];});}function base64Encode(_0x222213){const _0x1d32f1=_0x5d5142,_0x51cbfc=fs[_0x1d32f1('0x47')](_0x222213);return Buffer[_0x1d32f1('0x31')](_0x51cbfc)[_0x1d32f1('0x5d')](_0x1d32f1('0xe'));}exports[_0x5d5142('0x42')]=function(_0x137d9f,_0x55147b,_0x2c4fc7,_0x175ff4,_0x1c821a){const _0x5522e9=_0x5d5142;let _0x4ea6e7,_0x314413;const _0x15784a='https://texttospeech.googleapis.com/v1/',_0x1c50e2=_0x5522e9('0x36')+_0x137d9f,_0x45336e={};_0x55147b===_0x5522e9('0x1d')?_0x45336e['input']={'ssml':_0x2c4fc7}:_0x45336e[_0x5522e9('0x23')]={'text':_0x2c4fc7};_0x45336e[_0x5522e9('0x6d')]={'languageCode':_0x175ff4,'ssmlGender':_0x1c821a},_0x45336e[_0x5522e9('0x55')]={'audioEncoding':_0x5522e9('0x19'),'sampleRateHertz':0x1f40};const _0x22e75b={'url':_0x15784a+_0x5522e9('0x3')+_0x1c50e2,'method':_0x5522e9('0x28'),'json':!![],'body':_0x45336e};return rp(_0x22e75b)[_0x5522e9('0x46')](function(_0x239417){return new Promise(function(_0x57df30,_0x52757f){const _0x27b377=a1041_0x551c;_0x4ea6e7=path[_0x27b377('0x3a')](__dirname,_0x27b377('0x77'),rs[_0x27b377('0x7d')](0x4)+_0x27b377('0x29'));const _0x3657a4=Buffer[_0x27b377('0x31')](_0x239417[_0x27b377('0x62')],_0x27b377('0xe'));return fs['writeFile'](_0x4ea6e7,_0x3657a4,function(_0xb959a6){_0x52757f(_0xb959a6);},function(_0x2afc66){const _0x3e4158=_0x27b377;fs[_0x3e4158('0x51')](_0x4ea6e7,_0x3e4158('0x70')),_0x57df30(_0x2afc66);});});})[_0x5522e9('0x46')](function(){const _0x5cfc7e=_0x5522e9;return _0x314413=path[_0x5cfc7e('0x3a')](__dirname,'tmp',rs['generate'](0x4)+_0x5cfc7e('0x65')),convertFile(_0x4ea6e7,_0x314413);})['then'](function(){const _0x4bfa5a=_0x5522e9;try{fs[_0x4bfa5a('0x73')](_0x4ea6e7),fs[_0x4bfa5a('0x51')](_0x314413,'777');}catch(_0x177e2e){logger['error'](_0x177e2e);}return logger[_0x4bfa5a('0x60')](_0x4bfa5a('0x14'),_0x314413['split']('.')[0x0]),_0x314413[_0x4bfa5a('0x27')]('.')[0x0];});},exports[_0x5d5142('0x49')]=function(_0x53a34c,_0x22883d){const _0x65b90e=_0x5d5142;let _0x18aa98,_0x14c5f0;return tts(_0x53a34c,_0x22883d||'en',0x1)[_0x65b90e('0x46')](function(_0x4e1595){const _0x35f203=_0x65b90e;return logger[_0x35f203('0x60')](_0x4e1595),_0x18aa98=path[_0x35f203('0x3a')](__dirname,_0x35f203('0x77'),rs[_0x35f203('0x7d')](0x4)+_0x35f203('0x29')),downloadFile(_0x4e1595,_0x18aa98);})['then'](function(){const _0x165ebb=_0x65b90e;return _0x14c5f0=path[_0x165ebb('0x3a')](__dirname,_0x165ebb('0x77'),rs[_0x165ebb('0x7d')](0x4)+_0x165ebb('0x65')),convertFile(_0x18aa98,_0x14c5f0);})[_0x65b90e('0x46')](function(){const _0x16b1e5=_0x65b90e;try{fs[_0x16b1e5('0x73')](_0x18aa98),fs['chmodSync'](_0x14c5f0,_0x16b1e5('0x70'));}catch(_0x50264f){logger['error'](_0x50264f);}return logger[_0x16b1e5('0x60')](_0x16b1e5('0x20'),_0x14c5f0['split']('.')[0x0]),_0x14c5f0[_0x16b1e5('0x27')]('.')[0x0];});},exports['googleASR']=function(_0x4bf789,_0x9824b8,_0x5adad1){const _0x1ea6de=_0x5d5142;return google[_0x1ea6de('0x4c')](_0x4bf789,_0x9824b8,_0x5adad1)['then'](function(_0x4a68f7){const _0x12da87=_0x1ea6de;return logger[_0x12da87('0x60')](_0x4a68f7[_0x12da87('0x32')]),rp(_0x4a68f7);})[_0x1ea6de('0x46')](function(_0x42639f){const _0x1bb558=_0x1ea6de;let _0x4df0cf='',_0x2aedb4=0x0;try{fs[_0x1bb558('0x73')](_0x4bf789);}catch(_0x2c5531){logger[_0x1bb558('0x40')](_0x2c5531);}return _0x42639f&&_0x42639f[_0x1bb558('0x2b')]&&(_0x4df0cf=_0x42639f['results']['map'](function(_0x4baef7){const _0x132fe6=_0x1bb558;return _0x4baef7&&_0x4baef7[_0x132fe6('0x6f')][0x0]&&_0x4baef7['alternatives'][0x0]['transcript']?_0x4baef7[_0x132fe6('0x6f')][0x0][_0x132fe6('0x38')]:'';})['join']('\x0a'),_0x2aedb4=_0x42639f[_0x1bb558('0x2b')][_0x1bb558('0x6c')](function(_0x177f47){const _0x328309=_0x1bb558;return _0x177f47&&_0x177f47[_0x328309('0x6f')][0x0]&&_0x177f47['alternatives'][0x0][_0x328309('0x61')]?_0x177f47[_0x328309('0x6f')][0x0]['confidence']:0x0;})[_0x1bb558('0x37')]('\x0a')),logger[_0x1bb558('0x60')]('googleASR\x20transcription',_0x4df0cf),logger[_0x1bb558('0x60')]('googleASR\x20confidence',_0x2aedb4),{'transcript':_0x4df0cf,'confidence':_0x2aedb4};})[_0x1ea6de('0x5')](function(_0x4b50b5){const _0x11437d=_0x1ea6de;logger[_0x11437d('0x40')](_0x11437d('0x6a'),_0x4b50b5['statusCode'],_0x4b50b5['name'],_0x4b50b5[_0x11437d('0xf')]);});},exports[_0x5d5142('0xb')]=function(_0x29ad32,_0x3e04fc,_0x3499ed,_0x1327a1){const _0x3fbda0=_0x5d5142,_0x36b6d8=apiai(_0x3e04fc,{'language':_0x1327a1||'en'});return _0x36b6d8[_0x3fbda0('0x59')](_0x3499ed,{'sessionId':md5(_0x29ad32)})[_0x3fbda0('0x46')](function(_0x213871){const _0x5f422a=_0x3fbda0;return logger[_0x5f422a('0x60')](JSON[_0x5f422a('0x5a')](_0x213871)),{'source':_0x213871[_0x5f422a('0x76')][_0x5f422a('0x79')],'resolvedQuery':_0x213871['result'][_0x5f422a('0x72')],'action':_0x213871[_0x5f422a('0x76')][_0x5f422a('0xc')],'actionIncomplete':_0x213871['result'][_0x5f422a('0x5e')],'speech':_0x213871[_0x5f422a('0x76')][_0x5f422a('0x3e')]['speech'],'score':_0x213871['result']['score'],'statusCode':_0x213871[_0x5f422a('0x53')][_0x5f422a('0x44')],'endConversation':_0x213871[_0x5f422a('0x76')][_0x5f422a('0x18')][_0x5f422a('0x17')]||![],'isFallbackIntent':_0x213871[_0x5f422a('0x76')][_0x5f422a('0x18')][_0x5f422a('0x33')]};});},exports[_0x5d5142('0x1e')]=async function(_0x49a341,_0x511a20,_0x14ee6d,_0x54b509,_0x22549e,_0x588f67){const _0x2f534f=_0x5d5142,_0x33dac6=_0x54b509['replace'](/\\n/g,'\x0a'),_0x4e85df={'credentials':{'private_key':_0x33dac6,'client_email':_0x14ee6d}},_0x2e7046=new dialogflow['SessionsClient'](_0x4e85df),_0x31a962=_0x2e7046[_0x2f534f('0x39')](_0x511a20,md5(_0x49a341)),_0x538c0d={'session':_0x31a962,'queryInput':{'text':{'text':_0x22549e,'languageCode':_0x588f67}}};try{const _0x4ffba6=await _0x2e7046[_0x2f534f('0x68')](_0x538c0d);if(_0x4ffba6&&_0x4ffba6[_0x2f534f('0x48')]){logger[_0x2f534f('0x60')]('Dialogflow\x20V2\x20response:',JSON[_0x2f534f('0x5a')](_0x4ffba6));const _0x453b19=_0x4ffba6[0x0];let _0x16694f;return _0x453b19&&(_0x16694f={'action':_0x453b19['queryResult'][_0x2f534f('0xc')],'allRequiredParamsPresent':_0x453b19[_0x2f534f('0x22')]['allRequiredParamsPresent'],'endConversation':_0x453b19['queryResult'][_0x2f534f('0x3b')]&&_0x453b19[_0x2f534f('0x22')][_0x2f534f('0x3b')][_0x2f534f('0x4e')]?_0x453b19[_0x2f534f('0x22')]['diagnosticInfo'][_0x2f534f('0x4e')]['end_conversation'][_0x2f534f('0x11')]:![],'fulfillmentText':_0x453b19['queryResult']['fulfillmentText'],'intentName':_0x453b19[_0x2f534f('0x22')]['intent'][_0x2f534f('0x1c')],'intentDisplayName':_0x453b19['queryResult']['intent'][_0x2f534f('0x0')],'isFallbackIntent':_0x453b19[_0x2f534f('0x22')][_0x2f534f('0x6e')][_0x2f534f('0x7b')],'languageCode':_0x453b19[_0x2f534f('0x22')][_0x2f534f('0x16')],'queryText':_0x453b19['queryResult'][_0x2f534f('0x3c')],'responseId':_0x453b19[_0x2f534f('0x4a')],'score':_0x453b19[_0x2f534f('0x22')][_0x2f534f('0x43')],'speech':_0x453b19[_0x2f534f('0x22')]['fulfillmentText'],'providerResponse':JSON[_0x2f534f('0x5a')](_0x4ffba6)}),_0x16694f;}}catch(_0x2b64e9){logger[_0x2f534f('0x40')]('Dialogflow\x20V2\x20response\x20error:',_0x2b64e9);throw _0x2b64e9;}},exports[_0x5d5142('0x7e')]=function(_0x560399,_0x17157d,_0x59570f,_0x33590d){const _0x3e034c=_0x5d5142;return tilde[_0x3e034c('0x4c')](_0x560399,_0x17157d,_0x59570f,_0x33590d)[_0x3e034c('0x46')](function(_0x28a67c){const _0x4f8143=_0x3e034c;try{fs[_0x4f8143('0x73')](_0x560399);}catch(_0x854168){logger[_0x4f8143('0x40')](_0x854168);}return logger[_0x4f8143('0x60')](_0x4f8143('0x63'),_0x28a67c[_0x4f8143('0x38')]),logger[_0x4f8143('0x60')]('Tilde\x20ASR\x20confidence',_0x28a67c[_0x4f8143('0x61')]),_0x28a67c;});},exports['awsPolly']=function(_0x178eee,_0x2e2c6a,_0x24db0f,_0x561afd,_0x5862af,_0x4482c6){const _0x15467a=_0x5d5142,_0xc3938b=path[_0x15467a('0x3a')](__dirname,_0x15467a('0x77'),rs[_0x15467a('0x7d')](0x4)+_0x15467a('0x29'));let _0x53a9fc;return aws[_0x15467a('0x56')](_0x178eee,_0x2e2c6a,_0x24db0f,_0x561afd,_0x5862af,_0x4482c6,_0xc3938b)[_0x15467a('0x46')](function(){const _0x2fa519=_0x15467a;return _0x53a9fc=path[_0x2fa519('0x3a')](__dirname,_0x2fa519('0x77'),rs[_0x2fa519('0x7d')](0x4)+_0x2fa519('0x65')),convertFile(_0xc3938b,_0x53a9fc);})[_0x15467a('0x46')](function(){const _0x53cf44=_0x15467a;try{fs[_0x53cf44('0x73')](_0xc3938b),fs[_0x53cf44('0x51')](_0x53a9fc,_0x53cf44('0x70'));}catch(_0x4e8317){logger[_0x53cf44('0x40')](_0x4e8317);}return _0x53a9fc['split']('.')[0x0];});},exports[_0x5d5142('0x4b')]=function(_0x3af526,_0x6eb5fe,_0x247400,_0x19a381,_0x24fd4a,_0x1e22a6){const _0x416f88=_0x5d5142;return aws[_0x416f88('0x35')](_0x3af526,_0x6eb5fe,_0x247400,_0x19a381,_0x24fd4a,_0x1e22a6)[_0x416f88('0x46')](function(_0x178a85){const _0x120e40=_0x416f88;return logger[_0x120e40('0x60')](JSON[_0x120e40('0x5a')](_0x178a85)),_0x178a85;});},exports['ispeechTTS']=function(_0xc926f9,_0x2098de,_0x5a95fd,_0x505823){const _0x3f96a7=_0x5d5142,_0x5b471a=util['format'](_0x3f96a7('0x21'),ISPEECH_API,_0xc926f9,encodeURIComponent(_0x2098de),_0x5a95fd,_0x505823),_0x3b314c=path[_0x3f96a7('0x3a')](__dirname,_0x3f96a7('0x77'),rs['generate'](0x4)+_0x3f96a7('0x29'));let _0x22ec76;return downloadFile(_0x5b471a,_0x3b314c)[_0x3f96a7('0x46')](function(){const _0x431d7d=_0x3f96a7;return _0x22ec76=path[_0x431d7d('0x3a')](__dirname,_0x431d7d('0x77'),rs[_0x431d7d('0x7d')](0x4)+_0x431d7d('0x65')),convertFile(_0x3b314c,_0x22ec76);})['then'](function(){const _0x2e1f41=_0x3f96a7;try{fs[_0x2e1f41('0x73')](_0x3b314c),fs[_0x2e1f41('0x51')](_0x22ec76,_0x2e1f41('0x70'));}catch(_0x58e3be){logger[_0x2e1f41('0x40')](_0x58e3be);}return _0x22ec76[_0x2e1f41('0x27')]('.')[0x0];});},exports['ispeechASR']=function(_0x4c0907,_0x5eb550,_0x441484,_0x536e2e){const _0x44a0b4=_0x5d5142,_0x40bebf=util[_0x44a0b4('0x1')]('%s?apikey=%s&action=recognize&locale=%s&content-type=audio/x-wav&audio=%s&%s',ISPEECH_API,_0x5eb550,_0x441484,base64Encode(_0x4c0907),_0x536e2e?util[_0x44a0b4('0x1')](_0x44a0b4('0x30'),encodeURIComponent(_0x536e2e)):_0x44a0b4('0x2e'));return uploadFile(_0x40bebf)['then'](function(_0x38ea75){const _0x37a5ec=_0x44a0b4;return querystring[_0x37a5ec('0x69')](_0x38ea75);});},exports[_0x5d5142('0x4f')]=function(_0x342028,_0x27f663){const _0x227101=_0x5d5142;return sestek[_0x227101('0x13')](_0x342028,_0x27f663)['then'](function(_0x4d1dfa){const _0x241037=_0x227101;logger[_0x241037('0x60')](JSON[_0x241037('0x5a')](_0x4d1dfa));const _0x243396={'speech':_0x4d1dfa[_0x241037('0x75')],'action':_0x4d1dfa[_0x241037('0x54')]?_0x4d1dfa[_0x241037('0x54')]['CustomAction']:undefined,'actiondata':_0x4d1dfa[_0x241037('0x54')]?_0x4d1dfa[_0x241037('0x54')][_0x241037('0x50')]:undefined};if(_0x4d1dfa[_0x241037('0x54')]&&_0x4d1dfa[_0x241037('0x54')][_0x241037('0x52')])return base64Decode(_0x4d1dfa[_0x241037('0x54')][_0x241037('0x52')][_0x241037('0x1a')],path['resolve'](__dirname,'tmp',rs[_0x241037('0x7d')](0x4)+_0x241037('0x65')))[_0x241037('0x46')](function(_0x2eb934){const _0x275d5b=_0x241037;return _0x243396[_0x275d5b('0x5f')]=_0x2eb934,_0x243396;});return _0x243396;});},exports['dirName']=function(){return __dirname;}; \ No newline at end of file +const a1205_0x2ab3=['confidence','queryResult','.wav','allRequiredParamsPresent','voice','AudioFromTts','googleDialogflow','toString','result','responseId','SessionsClient','./tilde','close','length','%s?apikey=%s&action=convert&text=%s&voice=%s&speed=%s&format=mp3','code','audioContent','text:synthesize','Tilde\x20ASR\x20transcription','info','audiofile','metadata','data','name','agi','join','polly','lex','catch','https:','format','CustomActionData','readFileSync','randomstring','awsPolly','actionIncomplete','./aws','error\x20convert','map','error','isFallbackIntent','google-tts-api','googleCloudTTS','777','uri','Data','then','dirName','stringify','writeFileSync','[%s]\x20%s:%s','transcript','.mp3','statusCode','split','base64','chmodSync','fulfillment','tmp','sestekNDA','googleCloudTTS\x20path','from','fields','googleASR','sox','\x20failed,\x20status\x20code\x20=\x20','createWriteStream','languageCode','@google-cloud/dialogflow','start','../../../config/logger','generate','alternatives','https','ispeechTTS','queryText','download\x20error','googleASR\x20transcription','fulfillmentText','end','querystring','status','channelData','diagnosticInfo','isFallback','finish\x20download\x20file','intentDetectionConfidence','source','message','https://texttospeech.googleapis.com/v1/','host','CustomAction','request\x20to\x20','https://api.ispeech.org/api/rest','finish','googleTTS','statusMessage','get','pipe','input','replace','unlink','path','displayName','WHAT_EVER','goggleTTS\x20path','ispeechASR','resolve','resolvedQuery','?key=','parse','awsLex','md5','util','Tilde\x20ASR\x20confidence','audioConfig','speech','asr','wav','writeFile','finish\x20to\x20convert','action','results','request-promise-native','http','googleASR\x20confidence','intent','tildeASR','end_conversation'];(function(_0x18d359,_0x49348e){const _0x2ab364=function(_0x59d54b){while(--_0x59d54b){_0x18d359['push'](_0x18d359['shift']());}};_0x2ab364(++_0x49348e);}(a1205_0x2ab3,0xc7));const a1205_0x59d5=function(_0x18d359,_0x49348e){_0x18d359=_0x18d359-0x1ae;let _0x2ab364=a1205_0x2ab3[_0x18d359];return _0x2ab364;};const a1205_0x5afe50=a1205_0x59d5;'use strict';const fs=require('fs'),path=require(a1205_0x5afe50(0x1ce)),http=require(a1205_0x5afe50(0x1e4)),https=require(a1205_0x5afe50(0x1b1)),{URL}=require('url'),rs=require(a1205_0x5afe50(0x20a)),sox=require(a1205_0x5afe50(0x229)),rp=require(a1205_0x5afe50(0x1e3)),util=require(a1205_0x5afe50(0x1d9)),querystring=require(a1205_0x5afe50(0x1b8)),tts=require(a1205_0x5afe50(0x212)),apiai=require('apiai-promise'),md5=require(a1205_0x5afe50(0x1d8)),google=require('./google'),aws=require(a1205_0x5afe50(0x20d)),tilde=require(a1205_0x5afe50(0x1f4)),sestek=require('./sestek'),dialogflow=require(a1205_0x5afe50(0x22d)),logger=require(a1205_0x5afe50(0x1ae))(a1205_0x5afe50(0x201)),ISPEECH_API=a1205_0x5afe50(0x1c5);function downloadFile(_0x29f9b9,_0x2df6c3){return new Promise(function(_0x2236e6,_0x1bc3cd){const _0x17c3a2=a1205_0x59d5,_0x5df672=new URL(_0x29f9b9),_0x26d1e6=_0x5df672['protocol']===_0x17c3a2(0x206)?https:http,_0x29f79e={'host':_0x5df672['host'],'path':_0x5df672['pathname'],'headers':{'user-agent':_0x17c3a2(0x1d0)}};_0x26d1e6[_0x17c3a2(0x1c9)](_0x29f79e,function(_0x3a5436){const _0x57aa2a=_0x17c3a2;if(_0x3a5436['statusCode']!==0xc8){logger['error'](_0x57aa2a(0x1c4)+_0x29f9b9+_0x57aa2a(0x22a)+_0x3a5436[_0x57aa2a(0x21e)]+'\x20('+_0x3a5436[_0x57aa2a(0x1c8)]+')'),_0x1bc3cd(new Error(_0x57aa2a(0x1c4)+_0x29f9b9+_0x57aa2a(0x22a)+_0x3a5436['statusCode']+'\x20('+_0x3a5436[_0x57aa2a(0x1c8)]+')'));return;}const _0x5be65b=fs[_0x57aa2a(0x22b)](_0x2df6c3);_0x5be65b['on'](_0x57aa2a(0x1c6),function(){const _0x51454d=_0x57aa2a;logger[_0x51454d(0x1fc)](_0x51454d(0x1bd)),_0x5be65b[_0x51454d(0x1f5)](_0x2236e6);}),_0x5be65b['on'](_0x57aa2a(0x210),function(_0x994e32){const _0xf2c9bf=_0x57aa2a;fs['unlink'](_0x2df6c3),logger['error'](_0xf2c9bf(0x1b4),_0x994e32),_0x1bc3cd(_0x994e32);}),_0x3a5436[_0x57aa2a(0x1ca)](_0x5be65b);})['on'](_0x17c3a2(0x210),function(_0x4291bf){logger['error'](_0x4291bf),_0x1bc3cd(_0x4291bf);})[_0x17c3a2(0x1b7)]();});}function uploadFile(_0x34d97e){return new Promise(function(_0x76ff3f,_0x4ca644){const _0xef7382=a1205_0x59d5,_0x5b0b91=new URL(_0x34d97e),_0x9e6347=_0x5b0b91['protocol']==='https:'?https:http,_0x479e48={'host':_0x5b0b91[_0xef7382(0x1c2)],'path':_0x5b0b91['pathname'],'headers':{'user-agent':_0xef7382(0x1d0)}};_0x9e6347[_0xef7382(0x1c9)](_0x479e48,function(_0x57d75c){const _0x4780a9=_0xef7382;if(_0x57d75c['statusCode']!==0xc8){_0x4ca644(new Error(_0x4780a9(0x1c4)+_0x34d97e+'\x20failed,\x20status\x20code\x20=\x20'+_0x57d75c['statusCode']+'\x20('+_0x57d75c[_0x4780a9(0x1c8)]+')'));return;}let _0x5655bd='';_0x57d75c['on'](_0x4780a9(0x1ff),function(_0x4e4de2){_0x5655bd+=_0x4e4de2;}),_0x57d75c['on'](_0x4780a9(0x1b7),function(){_0x76ff3f(_0x5655bd);});})['on'](_0xef7382(0x210),function(_0x215ee1){_0x4ca644(_0x215ee1);})['end']();});}function convertFile(_0x465686,_0x5f02dc){return new Promise(function(_0x3d0145,_0x576b3a){const _0x51bd10=a1205_0x59d5,_0x4992ab=sox['transcode'](_0x465686,_0x5f02dc,{'sampleRate':0x1f40,'format':_0x51bd10(0x1de),'channelCount':0x1,'bitRate':0xc0*0x400,'compressionQuality':0x5});_0x4992ab['on']('error',function(_0x533c1c){const _0x432960=_0x51bd10;logger[_0x432960(0x210)](_0x432960(0x20e),_0x533c1c),_0x576b3a(_0x533c1c);}),_0x4992ab['on']('end',function(){const _0x5425c2=_0x51bd10;logger[_0x5425c2(0x1fc)](_0x5425c2(0x1e0)),_0x3d0145();}),_0x4992ab[_0x51bd10(0x22e)]();});}function base64Decode(_0x1721aa,_0x3d8ecb){const _0x453a2b=a1205_0x5afe50,_0x3e77e4=path[_0x453a2b(0x1d3)](__dirname,'tmp',rs[_0x453a2b(0x1af)](0x4)+_0x453a2b(0x1eb));return fs[_0x453a2b(0x21a)](_0x3e77e4,_0x1721aa,_0x453a2b(0x220)),convertFile(_0x3e77e4,_0x3d8ecb)[_0x453a2b(0x217)](function(){const _0x2e762e=_0x453a2b;try{fs[_0x2e762e(0x1cd)](_0x3e77e4),fs[_0x2e762e(0x221)](_0x3d8ecb,_0x2e762e(0x214));}catch(_0x4fcba5){logger[_0x2e762e(0x210)](_0x4fcba5);}return _0x3d8ecb[_0x2e762e(0x21f)]('.')[0x0];});}function base64Encode(_0x5f1bb8){const _0x444a67=a1205_0x5afe50,_0x38cc46=fs[_0x444a67(0x209)](_0x5f1bb8);return Buffer['from'](_0x38cc46)[_0x444a67(0x1f0)](_0x444a67(0x220));}exports[a1205_0x5afe50(0x213)]=function(_0x4e1f18,_0x38a62d,_0x275bb5,_0x54e641,_0x33e8b6){const _0x4d7bd0=a1205_0x5afe50;let _0x502053,_0xd3858b;const _0x348723=_0x4d7bd0(0x1c1),_0x235e5d=_0x4d7bd0(0x1d5)+_0x4e1f18,_0x556379={};_0x38a62d==='ssml'?_0x556379['input']={'ssml':_0x275bb5}:_0x556379[_0x4d7bd0(0x1cb)]={'text':_0x275bb5};_0x556379[_0x4d7bd0(0x1ed)]={'languageCode':_0x54e641,'ssmlGender':_0x33e8b6},_0x556379[_0x4d7bd0(0x1db)]={'audioEncoding':'MP3','sampleRateHertz':0x1f40};const _0x16ebb9={'url':_0x348723+_0x4d7bd0(0x1fa)+_0x235e5d,'method':'POST','json':!![],'body':_0x556379};return rp(_0x16ebb9)['then'](function(_0x207aea){return new Promise(function(_0x531b05,_0x52e1d7){const _0x208e38=a1205_0x59d5;_0x502053=path[_0x208e38(0x1d3)](__dirname,_0x208e38(0x223),rs[_0x208e38(0x1af)](0x4)+_0x208e38(0x21d));const _0x4d7a9a=Buffer[_0x208e38(0x226)](_0x207aea[_0x208e38(0x1f9)],_0x208e38(0x220));return fs[_0x208e38(0x1df)](_0x502053,_0x4d7a9a,function(_0x530f73){_0x52e1d7(_0x530f73);},function(_0x332a3d){const _0x43d869=_0x208e38;fs[_0x43d869(0x221)](_0x502053,_0x43d869(0x214)),_0x531b05(_0x332a3d);});});})[_0x4d7bd0(0x217)](function(){return _0xd3858b=path['resolve'](__dirname,'tmp',rs['generate'](0x4)+'.wav'),convertFile(_0x502053,_0xd3858b);})[_0x4d7bd0(0x217)](function(){const _0x49a410=_0x4d7bd0;try{fs[_0x49a410(0x1cd)](_0x502053),fs[_0x49a410(0x221)](_0xd3858b,_0x49a410(0x214));}catch(_0x51def5){logger['error'](_0x51def5);}return logger['info'](_0x49a410(0x225),_0xd3858b[_0x49a410(0x21f)]('.')[0x0]),_0xd3858b['split']('.')[0x0];});},exports[a1205_0x5afe50(0x1c7)]=function(_0x3d2cba,_0xf1938){const _0x43d28a=a1205_0x5afe50;let _0x59e15c,_0x1fa92b;return tts(_0x3d2cba,_0xf1938||'en',0x1)[_0x43d28a(0x217)](function(_0x48ba85){const _0x2f3b3a=_0x43d28a;return logger[_0x2f3b3a(0x1fc)](_0x48ba85),_0x59e15c=path['resolve'](__dirname,_0x2f3b3a(0x223),rs[_0x2f3b3a(0x1af)](0x4)+_0x2f3b3a(0x21d)),downloadFile(_0x48ba85,_0x59e15c);})[_0x43d28a(0x217)](function(){const _0x56555a=_0x43d28a;return _0x1fa92b=path['resolve'](__dirname,'tmp',rs[_0x56555a(0x1af)](0x4)+_0x56555a(0x1eb)),convertFile(_0x59e15c,_0x1fa92b);})[_0x43d28a(0x217)](function(){const _0x328a90=_0x43d28a;try{fs[_0x328a90(0x1cd)](_0x59e15c),fs[_0x328a90(0x221)](_0x1fa92b,_0x328a90(0x214));}catch(_0x260166){logger[_0x328a90(0x210)](_0x260166);}return logger['info'](_0x328a90(0x1d1),_0x1fa92b[_0x328a90(0x21f)]('.')[0x0]),_0x1fa92b['split']('.')[0x0];});},exports[a1205_0x5afe50(0x228)]=function(_0x2ba5fc,_0x20bc17,_0x52f36b){const _0x2a1d15=a1205_0x5afe50;return google[_0x2a1d15(0x1dd)](_0x2ba5fc,_0x20bc17,_0x52f36b)[_0x2a1d15(0x217)](function(_0x5960db){const _0x35107a=_0x2a1d15;return logger['info'](_0x5960db[_0x35107a(0x215)]),rp(_0x5960db);})[_0x2a1d15(0x217)](function(_0x5abb31){const _0x208441=_0x2a1d15;let _0x106cec='',_0x35b0e5=0x0;try{fs[_0x208441(0x1cd)](_0x2ba5fc);}catch(_0x47aaf0){logger[_0x208441(0x210)](_0x47aaf0);}return _0x5abb31&&_0x5abb31[_0x208441(0x1e2)]&&(_0x106cec=_0x5abb31[_0x208441(0x1e2)]['map'](function(_0x2533d7){const _0x1f62f4=_0x208441;return _0x2533d7&&_0x2533d7[_0x1f62f4(0x1b0)][0x0]&&_0x2533d7[_0x1f62f4(0x1b0)][0x0][_0x1f62f4(0x21c)]?_0x2533d7[_0x1f62f4(0x1b0)][0x0][_0x1f62f4(0x21c)]:'';})[_0x208441(0x202)]('\x0a'),_0x35b0e5=_0x5abb31[_0x208441(0x1e2)][_0x208441(0x20f)](function(_0x24985d){const _0x483b52=_0x208441;return _0x24985d&&_0x24985d[_0x483b52(0x1b0)][0x0]&&_0x24985d[_0x483b52(0x1b0)][0x0][_0x483b52(0x1e9)]?_0x24985d[_0x483b52(0x1b0)][0x0][_0x483b52(0x1e9)]:0x0;})[_0x208441(0x202)]('\x0a')),logger[_0x208441(0x1fc)](_0x208441(0x1b5),_0x106cec),logger[_0x208441(0x1fc)](_0x208441(0x1e5),_0x35b0e5),{'transcript':_0x106cec,'confidence':_0x35b0e5};})[_0x2a1d15(0x205)](function(_0x568bfd){const _0x47ad74=_0x2a1d15;logger[_0x47ad74(0x210)](_0x47ad74(0x21b),_0x568bfd['statusCode'],_0x568bfd[_0x47ad74(0x200)],_0x568bfd[_0x47ad74(0x1c0)]);});},exports[a1205_0x5afe50(0x1ef)]=function(_0x18d6ee,_0x1d58cc,_0x1e1714,_0x2464f9){const _0x143ecc=a1205_0x5afe50,_0x5e59c2=apiai(_0x1d58cc,{'language':_0x2464f9||'en'});return _0x5e59c2['textRequest'](_0x1e1714,{'sessionId':md5(_0x18d6ee)})[_0x143ecc(0x217)](function(_0x395bb2){const _0x207905=_0x143ecc;return logger['info'](JSON[_0x207905(0x219)](_0x395bb2)),{'source':_0x395bb2[_0x207905(0x1f1)][_0x207905(0x1bf)],'resolvedQuery':_0x395bb2[_0x207905(0x1f1)][_0x207905(0x1d4)],'action':_0x395bb2['result']['action'],'actionIncomplete':_0x395bb2[_0x207905(0x1f1)][_0x207905(0x20c)],'speech':_0x395bb2[_0x207905(0x1f1)][_0x207905(0x222)][_0x207905(0x1dc)],'score':_0x395bb2['result']['score'],'statusCode':_0x395bb2[_0x207905(0x1b9)][_0x207905(0x1f8)],'endConversation':_0x395bb2['result'][_0x207905(0x1fe)]['endConversation']||![],'isFallbackIntent':_0x395bb2['result']['metadata'][_0x207905(0x211)]};});},exports['googleDialogflowV2']=async function(_0x5023ba,_0x5f4f75,_0x46c13c,_0xb81152,_0x4f24ac,_0x33334e){const _0x4ab64c=a1205_0x5afe50,_0x137ed8=_0xb81152[_0x4ab64c(0x1cc)](/\\n/g,'\x0a'),_0x2c73f7={'credentials':{'private_key':_0x137ed8,'client_email':_0x46c13c}},_0x59f63c=new dialogflow[(_0x4ab64c(0x1f3))](_0x2c73f7),_0xe2b98c=_0x59f63c['projectAgentSessionPath'](_0x5f4f75,md5(_0x5023ba)),_0x4388e8={'session':_0xe2b98c,'queryInput':{'text':{'text':_0x4f24ac,'languageCode':_0x33334e}}};try{const _0x437d1d=await _0x59f63c['detectIntent'](_0x4388e8);if(_0x437d1d&&_0x437d1d[_0x4ab64c(0x1f6)]){logger[_0x4ab64c(0x1fc)]('Dialogflow\x20V2\x20response:',JSON[_0x4ab64c(0x219)](_0x437d1d));const _0x9f1c69=_0x437d1d[0x0];let _0x5c7fb6;return _0x9f1c69&&(_0x5c7fb6={'action':_0x9f1c69[_0x4ab64c(0x1ea)][_0x4ab64c(0x1e1)],'allRequiredParamsPresent':_0x9f1c69[_0x4ab64c(0x1ea)][_0x4ab64c(0x1ec)],'endConversation':_0x9f1c69[_0x4ab64c(0x1ea)][_0x4ab64c(0x1bb)]&&_0x9f1c69[_0x4ab64c(0x1ea)][_0x4ab64c(0x1bb)]['fields']?_0x9f1c69[_0x4ab64c(0x1ea)][_0x4ab64c(0x1bb)][_0x4ab64c(0x227)][_0x4ab64c(0x1e8)]['boolValue']:![],'fulfillmentText':_0x9f1c69['queryResult']['fulfillmentText'],'intentName':_0x9f1c69[_0x4ab64c(0x1ea)][_0x4ab64c(0x1e6)][_0x4ab64c(0x200)],'intentDisplayName':_0x9f1c69['queryResult'][_0x4ab64c(0x1e6)][_0x4ab64c(0x1cf)],'isFallbackIntent':_0x9f1c69['queryResult'][_0x4ab64c(0x1e6)][_0x4ab64c(0x1bc)],'languageCode':_0x9f1c69['queryResult'][_0x4ab64c(0x22c)],'queryText':_0x9f1c69[_0x4ab64c(0x1ea)][_0x4ab64c(0x1b3)],'responseId':_0x9f1c69[_0x4ab64c(0x1f2)],'score':_0x9f1c69[_0x4ab64c(0x1ea)][_0x4ab64c(0x1be)],'speech':_0x9f1c69['queryResult'][_0x4ab64c(0x1b6)],'providerResponse':JSON['stringify'](_0x437d1d)}),_0x5c7fb6;}}catch(_0x3aeac7){logger[_0x4ab64c(0x210)]('Dialogflow\x20V2\x20response\x20error:',_0x3aeac7);throw _0x3aeac7;}},exports[a1205_0x5afe50(0x1e7)]=function(_0xe5746a,_0x49c20d,_0x1006e9,_0x54f16c){const _0x132939=a1205_0x5afe50;return tilde[_0x132939(0x1dd)](_0xe5746a,_0x49c20d,_0x1006e9,_0x54f16c)[_0x132939(0x217)](function(_0x6ee07a){const _0x29f078=_0x132939;try{fs[_0x29f078(0x1cd)](_0xe5746a);}catch(_0x26ccef){logger[_0x29f078(0x210)](_0x26ccef);}return logger[_0x29f078(0x1fc)](_0x29f078(0x1fb),_0x6ee07a[_0x29f078(0x21c)]),logger[_0x29f078(0x1fc)](_0x29f078(0x1da),_0x6ee07a[_0x29f078(0x1e9)]),_0x6ee07a;});},exports[a1205_0x5afe50(0x20b)]=function(_0x2c8e9e,_0x4cf1d7,_0x1af782,_0x4d506e,_0x30ad86,_0x820b4a){const _0x24056a=a1205_0x5afe50,_0x378512=path['resolve'](__dirname,_0x24056a(0x223),rs[_0x24056a(0x1af)](0x4)+'.mp3');let _0x5ea888;return aws[_0x24056a(0x203)](_0x2c8e9e,_0x4cf1d7,_0x1af782,_0x4d506e,_0x30ad86,_0x820b4a,_0x378512)[_0x24056a(0x217)](function(){const _0x119e44=_0x24056a;return _0x5ea888=path[_0x119e44(0x1d3)](__dirname,_0x119e44(0x223),rs[_0x119e44(0x1af)](0x4)+_0x119e44(0x1eb)),convertFile(_0x378512,_0x5ea888);})[_0x24056a(0x217)](function(){const _0x20c3d3=_0x24056a;try{fs[_0x20c3d3(0x1cd)](_0x378512),fs[_0x20c3d3(0x221)](_0x5ea888,_0x20c3d3(0x214));}catch(_0x1e4701){logger['error'](_0x1e4701);}return _0x5ea888[_0x20c3d3(0x21f)]('.')[0x0];});},exports[a1205_0x5afe50(0x1d7)]=function(_0x28d436,_0x3c6ccc,_0x2ba723,_0x1573a2,_0x1e18ea,_0x117a85){const _0x4f7006=a1205_0x5afe50;return aws[_0x4f7006(0x204)](_0x28d436,_0x3c6ccc,_0x2ba723,_0x1573a2,_0x1e18ea,_0x117a85)[_0x4f7006(0x217)](function(_0x5deb0e){const _0x163b85=_0x4f7006;return logger[_0x163b85(0x1fc)](JSON[_0x163b85(0x219)](_0x5deb0e)),_0x5deb0e;});},exports[a1205_0x5afe50(0x1b2)]=function(_0x290cdf,_0x4252f7,_0x213ba5,_0x568b3e){const _0x337ee0=a1205_0x5afe50,_0x1e92e1=util[_0x337ee0(0x207)](_0x337ee0(0x1f7),ISPEECH_API,_0x290cdf,encodeURIComponent(_0x4252f7),_0x213ba5,_0x568b3e),_0x4a66fc=path['resolve'](__dirname,'tmp',rs[_0x337ee0(0x1af)](0x4)+_0x337ee0(0x21d));let _0x6391b8;return downloadFile(_0x1e92e1,_0x4a66fc)[_0x337ee0(0x217)](function(){const _0x357c76=_0x337ee0;return _0x6391b8=path['resolve'](__dirname,'tmp',rs[_0x357c76(0x1af)](0x4)+'.wav'),convertFile(_0x4a66fc,_0x6391b8);})[_0x337ee0(0x217)](function(){const _0x1d1692=_0x337ee0;try{fs['unlink'](_0x4a66fc),fs[_0x1d1692(0x221)](_0x6391b8,'777');}catch(_0x482f88){logger['error'](_0x482f88);}return _0x6391b8['split']('.')[0x0];});},exports[a1205_0x5afe50(0x1d2)]=function(_0x355720,_0x25ff30,_0xd83ca2,_0x2d7010){const _0x45531a=a1205_0x5afe50,_0x5502e4=util[_0x45531a(0x207)]('%s?apikey=%s&action=recognize&locale=%s&content-type=audio/x-wav&audio=%s&%s',ISPEECH_API,_0x25ff30,_0xd83ca2,base64Encode(_0x355720),_0x2d7010?util['format']('model=%s',encodeURIComponent(_0x2d7010)):'freeform=3');return uploadFile(_0x5502e4)[_0x45531a(0x217)](function(_0x5e42fe){const _0x2672a4=_0x45531a;return querystring[_0x2672a4(0x1d6)](_0x5e42fe);});},exports[a1205_0x5afe50(0x224)]=function(_0x24ec4d,_0x5c3939){const _0x4fc969=a1205_0x5afe50;return sestek['nda'](_0x24ec4d,_0x5c3939)[_0x4fc969(0x217)](function(_0x1133da){const _0x1edc52=_0x4fc969;logger[_0x1edc52(0x1fc)](JSON[_0x1edc52(0x219)](_0x1133da));const _0x2fae3c={'speech':_0x1133da['text'],'action':_0x1133da[_0x1edc52(0x1ba)]?_0x1133da[_0x1edc52(0x1ba)][_0x1edc52(0x1c3)]:undefined,'actiondata':_0x1133da[_0x1edc52(0x1ba)]?_0x1133da['channelData'][_0x1edc52(0x208)]:undefined};if(_0x1133da[_0x1edc52(0x1ba)]&&_0x1133da['channelData'][_0x1edc52(0x1ee)])return base64Decode(_0x1133da[_0x1edc52(0x1ba)][_0x1edc52(0x1ee)][_0x1edc52(0x216)],path[_0x1edc52(0x1d3)](__dirname,_0x1edc52(0x223),rs[_0x1edc52(0x1af)](0x4)+_0x1edc52(0x1eb)))[_0x1edc52(0x217)](function(_0x361c3b){const _0x3adcdd=_0x1edc52;return _0x2fae3c[_0x3adcdd(0x1fd)]=_0x361c3b,_0x2fae3c;});return _0x2fae3c;});},exports[a1205_0x5afe50(0x218)]=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 1dde9c0..47cc66c 100644 --- a/server/services/agi/scripts/sestek/index.js +++ b/server/services/agi/scripts/sestek/index.js @@ -1 +1 @@ -const a1042_0x35de=['exports'];(function(_0x2d42b4,_0x35de77){const _0x28df1f=function(_0x52babc){while(--_0x52babc){_0x2d42b4['push'](_0x2d42b4['shift']());}};_0x28df1f(++_0x35de77);}(a1042_0x35de,0x153));const a1042_0x28df=function(_0x2d42b4,_0x35de77){_0x2d42b4=_0x2d42b4-0x0;let _0x28df1f=a1042_0x35de[_0x2d42b4];return _0x28df1f;};const _0x560fde=a1042_0x28df,nda=require('./nda');module[_0x560fde('0x0')]={'nda':nda}; \ No newline at end of file +const a1206_0x404a=['exports','./nda','nda'];(function(_0xde9298,_0x310674){const _0x404a98=function(_0x549cfd){while(--_0x549cfd){_0xde9298['push'](_0xde9298['shift']());}};_0x404a98(++_0x310674);}(a1206_0x404a,0x1d0));const a1206_0x549c=function(_0xde9298,_0x310674){_0xde9298=_0xde9298-0x187;let _0x404a98=a1206_0x404a[_0xde9298];return _0x404a98;};const a1206_0x5c7ffb=a1206_0x549c,nda=require(a1206_0x5c7ffb(0x189));module[a1206_0x5c7ffb(0x188)][a1206_0x5c7ffb(0x187)]=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 f646b99..c7f138e 100644 --- a/server/services/agi/scripts/sestek/nda/index.js +++ b/server/services/agi/scripts/sestek/nda/index.js @@ -1 +1 @@ -const a1043_0x59b3=['username','POST','URL','ndaactivity_type','/api/NaturalDialogAssistant/v1/Run','info','password','uniqueid','custom_action','project','message','custom_action_data','toString','ndassistant_url','ndagenerate_audio','url','body','callerid','exports','../../../../../config/logger','AudioOutputSettings','/token','then','CustomAction','request-promise-native','dnid','Bearer\x20','text','audio/wav','channelData'];(function(_0x36225a,_0x59b366){const _0x11066b=function(_0x31208f){while(--_0x31208f){_0x36225a['push'](_0x36225a['shift']());}};_0x11066b(++_0x59b366);}(a1043_0x59b3,0xe6));const a1043_0x1106=function(_0x36225a,_0x59b366){_0x36225a=_0x36225a-0x0;let _0x11066b=a1043_0x59b3[_0x36225a];return _0x11066b;};const _0x2ab4e8=a1043_0x1106;'use strict';const rp=require(_0x2ab4e8('0x4')),url=require(_0x2ab4e8('0x19')),logger=require(_0x2ab4e8('0x1d'))('agi');module[_0x2ab4e8('0x1c')]=function(_0x31208f,_0x44d204){const _0x3fbd0a=_0x2ab4e8,_0x86bc29=new url[(_0x3fbd0a('0xc'))](_0x3fbd0a('0x1'),_0x44d204['ndauth_url'])[_0x3fbd0a('0x16')](),_0x31b64c={'method':_0x3fbd0a('0xb'),'uri':_0x86bc29,'form':{'grant_type':_0x3fbd0a('0x10'),'username':_0x44d204[_0x3fbd0a('0xa')],'password':_0x44d204[_0x3fbd0a('0x10')]},'json':!![]};return rp(_0x31b64c)[_0x3fbd0a('0x2')](function(_0x4f0068){const _0x5edcad=_0x3fbd0a,_0x2c1d58=new url[(_0x5edcad('0xc'))](_0x5edcad('0xe'),_0x44d204[_0x5edcad('0x17')])[_0x5edcad('0x16')](),_0x38169d={'method':_0x5edcad('0xb'),'uri':_0x2c1d58,'body':{'type':_0x44d204[_0x5edcad('0xd')]||_0x5edcad('0x14'),'channelId':'Nda','conversation':{'id':_0x31208f[_0x5edcad('0x11')]},'from':{'id':_0x31208f[_0x5edcad('0x1b')],'name':_0x31208f['calleridname']},'recipient':{'id':_0x31208f[_0x5edcad('0x5')],'name':_0x31208f['extension']},'text':_0x44d204[_0x5edcad('0x7')],'channelData':{}},'headers':{'Authorization':_0x5edcad('0x6')+_0x4f0068['access_token']},'json':!![]};return _0x44d204[_0x5edcad('0x13')]&&(_0x38169d[_0x5edcad('0x1a')][_0x5edcad('0x9')]['ProjectName']=_0x44d204[_0x5edcad('0x13')]),_0x44d204[_0x5edcad('0x18')]=='1'&&(_0x38169d[_0x5edcad('0x1a')]['channelData'][_0x5edcad('0x0')]={'Generate':!![],'PutInStructuredPart':![],'ExpectedFormat':_0x5edcad('0x8')}),_0x44d204[_0x5edcad('0x12')]&&(_0x38169d[_0x5edcad('0x1a')][_0x5edcad('0x9')][_0x5edcad('0x3')]=_0x44d204[_0x5edcad('0x12')],_0x44d204['custom_action_data']&&(_0x38169d['body'][_0x5edcad('0x9')]['CustomActionData']=_0x44d204[_0x5edcad('0x15')])),logger[_0x5edcad('0xf')](JSON['stringify'](_0x38169d)),rp(_0x38169d);});}; \ No newline at end of file +const a1207_0x5e9b=['AudioOutputSettings','custom_action','exports','channelData','Nda','extension','ndauth_url','agi','URL','Bearer\x20','calleridname','request-promise-native','/token','password','body','project','then','audio/wav','../../../../../config/logger','toString','username','POST','url','stringify','custom_action_data','/api/NaturalDialogAssistant/v1/Run','info','CustomAction','CustomActionData','ndaactivity_type','dnid','ProjectName','message'];(function(_0xfc43d7,_0xa50969){const _0x5e9b7c=function(_0x54cf60){while(--_0x54cf60){_0xfc43d7['push'](_0xfc43d7['shift']());}};_0x5e9b7c(++_0xa50969);}(a1207_0x5e9b,0xf3));const a1207_0x54cf=function(_0xfc43d7,_0xa50969){_0xfc43d7=_0xfc43d7-0x1c1;let _0x5e9b7c=a1207_0x5e9b[_0xfc43d7];return _0x5e9b7c;};const a1207_0xe37533=a1207_0x54cf;'use strict';const rp=require(a1207_0xe37533(0x1e1)),url=require(a1207_0xe37533(0x1cb)),logger=require(a1207_0xe37533(0x1c7))(a1207_0xe37533(0x1dd));module[a1207_0xe37533(0x1d8)]=function(_0x575378,_0x3b7db8){const _0x5a9e7d=a1207_0xe37533,_0x2ff012=new url['URL'](_0x5a9e7d(0x1c1),_0x3b7db8[_0x5a9e7d(0x1dc)])[_0x5a9e7d(0x1c8)](),_0x448fb8={'method':'POST','uri':_0x2ff012,'form':{'grant_type':'password','username':_0x3b7db8[_0x5a9e7d(0x1c9)],'password':_0x3b7db8[_0x5a9e7d(0x1c2)]},'json':!![]};return rp(_0x448fb8)[_0x5a9e7d(0x1c5)](function(_0xa0aac){const _0x4759d6=_0x5a9e7d,_0x12361e=new url[(_0x4759d6(0x1de))](_0x4759d6(0x1ce),_0x3b7db8['ndassistant_url'])[_0x4759d6(0x1c8)](),_0x3f9c3b={'method':_0x4759d6(0x1ca),'uri':_0x12361e,'body':{'type':_0x3b7db8[_0x4759d6(0x1d2)]||_0x4759d6(0x1d5),'channelId':_0x4759d6(0x1da),'conversation':{'id':_0x575378['uniqueid']},'from':{'id':_0x575378['callerid'],'name':_0x575378[_0x4759d6(0x1e0)]},'recipient':{'id':_0x575378[_0x4759d6(0x1d3)],'name':_0x575378[_0x4759d6(0x1db)]},'text':_0x3b7db8['text'],'channelData':{}},'headers':{'Authorization':_0x4759d6(0x1df)+_0xa0aac['access_token']},'json':!![]};return _0x3b7db8[_0x4759d6(0x1c4)]&&(_0x3f9c3b[_0x4759d6(0x1c3)][_0x4759d6(0x1d9)][_0x4759d6(0x1d4)]=_0x3b7db8[_0x4759d6(0x1c4)]),_0x3b7db8['ndagenerate_audio']=='1'&&(_0x3f9c3b[_0x4759d6(0x1c3)]['channelData'][_0x4759d6(0x1d6)]={'Generate':!![],'PutInStructuredPart':![],'ExpectedFormat':_0x4759d6(0x1c6)}),_0x3b7db8[_0x4759d6(0x1d7)]&&(_0x3f9c3b[_0x4759d6(0x1c3)][_0x4759d6(0x1d9)][_0x4759d6(0x1d0)]=_0x3b7db8[_0x4759d6(0x1d7)],_0x3b7db8[_0x4759d6(0x1cd)]&&(_0x3f9c3b[_0x4759d6(0x1c3)][_0x4759d6(0x1d9)][_0x4759d6(0x1d1)]=_0x3b7db8[_0x4759d6(0x1cd)])),logger[_0x4759d6(0x1cf)](JSON[_0x4759d6(0x1cc)](_0x3f9c3b)),rp(_0x3f9c3b);});}; \ 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 351179b..c2ef8e3 100644 --- a/server/services/agi/scripts/tilde/asr/index.js +++ b/server/services/agi/scripts/tilde/asr/index.js @@ -1 +1 @@ -const a1044_0x52ff=['exports'];(function(_0x20a8da,_0x52ffd7){const _0x2df729=function(_0x291759){while(--_0x291759){_0x20a8da['push'](_0x20a8da['shift']());}};_0x2df729(++_0x52ffd7);}(a1044_0x52ff,0x181));const a1044_0x2df7=function(_0x20a8da,_0x52ffd7){_0x20a8da=_0x20a8da-0x0;let _0x2df729=a1044_0x52ff[_0x20a8da];return _0x2df729;};const _0x319a32=a1044_0x2df7;'use strict';const asr=require('./lib/api');module[_0x319a32('0x0')]=function(_0x291759,_0x427ae7,_0x11ec0f,_0x11c54e){return asr(_0x291759,_0x427ae7,_0x11ec0f,_0x11c54e);}; \ No newline at end of file +const a1208_0xbe72=['./lib/api','exports'];(function(_0x2b12f0,_0x4ecf7e){const _0xbe72ee=function(_0x35c7c9){while(--_0x35c7c9){_0x2b12f0['push'](_0x2b12f0['shift']());}};_0xbe72ee(++_0x4ecf7e);}(a1208_0xbe72,0x119));const a1208_0x35c7=function(_0x2b12f0,_0x4ecf7e){_0x2b12f0=_0x2b12f0-0x1ae;let _0xbe72ee=a1208_0xbe72[_0x2b12f0];return _0xbe72ee;};const a1208_0xea4501=a1208_0x35c7;'use strict';const asr=require(a1208_0xea4501(0x1af));module[a1208_0xea4501(0x1ae)]=function(_0x23dd95,_0x591d31,_0x5ace51,_0x3f32aa){return asr(_0x23dd95,_0x591d31,_0x5ace51,_0x3f32aa);}; \ 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 e009681..362d9e9 100644 --- a/server/services/agi/scripts/tilde/asr/lib/api.js +++ b/server/services/agi/scripts/tilde/asr/lib/api.js @@ -1 +1 @@ -const a1045_0x37cd=['isObject','hypotheses','exports','status','send','terminate','error','crypto','Not\x20available.\x20Max\x20load\x20limit\x20reached.','Tilde\x20ASR\x20hypoteses','All\x20recognition\x20workers\x20are\x20currently\x20in\x20use\x20and\x20real-time\x20recognition\x20is\x20not\x20possible.','final','Authentication\x20failed.','../../../../../../config/logger','Tilde\x20URI','No\x20speech.\x20Sent\x20when\x20the\x20incoming\x20audio\x20contains\x20a\x20large\x20portion\x20of\x20silence\x20or\x20non-speech','info','EOS','data','wss://runa.tilde.lv/client/ws/speech/LVASR-ONLINE','update','open','Aborted.\x20Recognition\x20was\x20aborted\x20for\x20some\x20reason.','Tilde\x20ASR\x20parse\x20error','likelihood','Error\x20Tilde\x20ASR\x20socket','isNil','Open\x20Tilde\x20ASR\x20socket','parse','transcript','createReadStream','close','result','stringify','message','Close\x20Tilde\x20ASR\x20socket','digest'];(function(_0x23ca41,_0x37cd55){const _0x4b5357=function(_0x11f3b2){while(--_0x11f3b2){_0x23ca41['push'](_0x23ca41['shift']());}};_0x4b5357(++_0x37cd55);}(a1045_0x37cd,0x6d));const a1045_0x4b53=function(_0x23ca41,_0x37cd55){_0x23ca41=_0x23ca41-0x0;let _0x4b5357=a1045_0x37cd[_0x23ca41];return _0x4b5357;};const _0x169b70=a1045_0x4b53;'use strict';const _=require('lodash'),fs=require('fs'),WebSocket=require('ws'),moment=require('moment'),crypto=require(_0x169b70('0x9')),logger=require(_0x169b70('0xf'))('agi');module[_0x169b70('0x4')]=function(_0x11f3b2,_0x4a4957,_0x43005e,_0x190b42){return new Promise(function(_0x31330f){const _0x3465b0=a1045_0x4b53;logger['info'](_0x3465b0('0x10'),_0x190b42||_0x3465b0('0x15'));const _0x31d2f7=new WebSocket(_0x190b42||'wss://runa.tilde.lv/client/ws/speech/LVASR-ONLINE',{'perMessageDeflate':![]});let _0x25c9e4='',_0x5ca9ab='0',_0x59edad='1',_0x694134='No\x20speech.\x20Sent\x20when\x20the\x20incoming\x20audio\x20contains\x20a\x20large\x20portion\x20of\x20silence\x20or\x20non-speech';function _0x71ecf(_0x1206ef){const _0x25cf8e=_0x3465b0,_0x25c0b9=crypto['createHash']('sha1');return _0x25c0b9[_0x25cf8e('0x16')](_0x1206ef),_0x25c0b9[_0x25cf8e('0x1')]('hex');}function _0x115350(){const _0x196df8=_0x3465b0;try{logger[_0x196df8('0x12')](_0x196df8('0x1d'));const _0x5afa8c=moment()['unix'](),_0x239358=_0x71ecf(_0x5afa8c+_0x4a4957+_0x43005e);_0x31d2f7[_0x196df8('0x6')](JSON[_0x196df8('0x23')]({'appID':_0x4a4957,'timestamp':_0x5afa8c,'appKey':_0x239358}));const _0x49a837=fs[_0x196df8('0x20')](_0x11f3b2);_0x49a837['on'](_0x196df8('0x14'),function(_0x5f6f57){const _0x436940=_0x196df8;_0x31d2f7[_0x436940('0x6')](_0x5f6f57);}),_0x49a837['on'](_0x196df8('0x21'),function(){const _0x4fafec=_0x196df8;_0x31d2f7['send'](_0x4fafec('0x13'));});}catch(_0x548312){logger[_0x196df8('0x8')]('Tilde\x20ASR\x20send\x20error',JSON[_0x196df8('0x23')](_0x548312)),_0x31d2f7[_0x196df8('0x7')]();}}function _0x3d9dbc(_0x5640d8){const _0x42c504=_0x3465b0;try{if(_0x5640d8){const _0x513735=JSON[_0x42c504('0x1e')](_0x5640d8);switch(_0x513735[_0x42c504('0x5')]){case 0x0:_0x513735[_0x42c504('0x22')]&&(_0x513735['result'][_0x42c504('0xd')]&&(logger[_0x42c504('0x12')](_0x42c504('0xb'),JSON['stringify'](_0x513735['result'][_0x42c504('0x3')])),_0x25c9e4=_0x513735[_0x42c504('0x22')][_0x42c504('0x3')][0x0][_0x42c504('0x1f')],_0x5ca9ab=_0x513735[_0x42c504('0x22')][_0x42c504('0x3')][0x0][_0x42c504('0x1a')],_0x59edad='0',_0x694134='Success.',_0x31d2f7['terminate']()));break;case 0x1:logger['info'](_0x42c504('0x11')),_0x59edad='1',_0x694134=_0x42c504('0x11');break;case 0x2:logger['info'](_0x42c504('0x18')),_0x59edad='2',_0x694134=_0x42c504('0x18');break;case 0x9:logger[_0x42c504('0x12')]('Not\x20available.\x20Max\x20load\x20limit\x20reached.'),_0x59edad='9',_0x694134=_0x42c504('0xa');break;case 0xa:logger[_0x42c504('0x12')]('Authentication\x20failed.'),_0x59edad='10',_0x694134=_0x42c504('0xe');break;case 0xb:logger[_0x42c504('0x12')]('All\x20recognition\x20workers\x20are\x20currently\x20in\x20use\x20and\x20real-time\x20recognition\x20is\x20not\x20possible.'),_0x59edad='11',_0x694134=_0x42c504('0xc');}}}catch(_0x1d95b1){logger[_0x42c504('0x8')](_0x42c504('0x19'),JSON[_0x42c504('0x23')](_0x1d95b1)),_0x31d2f7[_0x42c504('0x7')]();}}function _0x247087(){const _0x413ebf=_0x3465b0;logger['info'](_0x413ebf('0x0')),_0x31330f({'transcript':_0x25c9e4,'confidence':_0x5ca9ab,'status':_0x59edad,'status_message':_0x694134});}function _0x42d010(_0xdd35bd){const _0x3a0d8c=_0x3465b0;logger['error'](_0x3a0d8c('0x1b')),!_[_0x3a0d8c('0x1c')](_0xdd35bd)&&logger[_0x3a0d8c('0x8')](_[_0x3a0d8c('0x2')](_0xdd35bd)?JSON[_0x3a0d8c('0x23')](_0xdd35bd):_0xdd35bd);}_0x31d2f7['on'](_0x3465b0('0x17'),_0x115350),_0x31d2f7['on'](_0x3465b0('0x24'),_0x3d9dbc),_0x31d2f7['on'](_0x3465b0('0x21'),_0x247087),_0x31d2f7['on'](_0x3465b0('0x8'),_0x42d010);});}; \ No newline at end of file +const a1209_0x1e17=['Success.','update','../../../../../../config/logger','Tilde\x20ASR\x20hypoteses','info','isObject','hex','All\x20recognition\x20workers\x20are\x20currently\x20in\x20use\x20and\x20real-time\x20recognition\x20is\x20not\x20possible.','Tilde\x20ASR\x20send\x20error','Close\x20Tilde\x20ASR\x20socket','open','Authentication\x20failed.','sha1','result','Not\x20available.\x20Max\x20load\x20limit\x20reached.','hypotheses','Aborted.\x20Recognition\x20was\x20aborted\x20for\x20some\x20reason.','wss://runa.tilde.lv/client/ws/speech/LVASR-ONLINE','stringify','likelihood','Tilde\x20ASR\x20parse\x20error','Open\x20Tilde\x20ASR\x20socket','terminate','status','send','No\x20speech.\x20Sent\x20when\x20the\x20incoming\x20audio\x20contains\x20a\x20large\x20portion\x20of\x20silence\x20or\x20non-speech','parse','exports','error','crypto','close','isNil'];(function(_0xa668f1,_0x9329b2){const _0x1e1759=function(_0x17b696){while(--_0x17b696){_0xa668f1['push'](_0xa668f1['shift']());}};_0x1e1759(++_0x9329b2);}(a1209_0x1e17,0x1e8));const a1209_0x17b6=function(_0xa668f1,_0x9329b2){_0xa668f1=_0xa668f1-0x1d6;let _0x1e1759=a1209_0x1e17[_0xa668f1];return _0x1e1759;};const a1209_0x7672a2=a1209_0x17b6;'use strict';const _=require('lodash'),fs=require('fs'),WebSocket=require('ws'),moment=require('moment'),crypto=require(a1209_0x7672a2(0x1eb)),logger=require(a1209_0x7672a2(0x1f0))('agi');module[a1209_0x7672a2(0x1e9)]=function(_0x4f1db4,_0x1317a5,_0x2cd555,_0x2d00de){return new Promise(function(_0x11c713){const _0x3e7747=a1209_0x17b6;logger['info']('Tilde\x20URI',_0x2d00de||_0x3e7747(0x1df));const _0x481faa=new WebSocket(_0x2d00de||_0x3e7747(0x1df),{'perMessageDeflate':![]});let _0x15d4b3='',_0x369f90='0',_0x58fae1='1',_0x518355=_0x3e7747(0x1e7);function _0x1cb38c(_0x10546d){const _0x2ea9aa=_0x3e7747,_0x226e8f=crypto['createHash'](_0x2ea9aa(0x1da));return _0x226e8f[_0x2ea9aa(0x1ef)](_0x10546d),_0x226e8f['digest'](_0x2ea9aa(0x1f4));}function _0x1a4f5d(){const _0x12950e=_0x3e7747;try{logger[_0x12950e(0x1f2)](_0x12950e(0x1e3));const _0x532ff1=moment()['unix'](),_0x18b94f=_0x1cb38c(_0x532ff1+_0x1317a5+_0x2cd555);_0x481faa[_0x12950e(0x1e6)](JSON['stringify']({'appID':_0x1317a5,'timestamp':_0x532ff1,'appKey':_0x18b94f}));const _0x163877=fs['createReadStream'](_0x4f1db4);_0x163877['on']('data',function(_0x3bc358){const _0x1a01b9=_0x12950e;_0x481faa[_0x1a01b9(0x1e6)](_0x3bc358);}),_0x163877['on'](_0x12950e(0x1ec),function(){const _0x5cbaf0=_0x12950e;_0x481faa[_0x5cbaf0(0x1e6)]('EOS');});}catch(_0x594803){logger[_0x12950e(0x1ea)](_0x12950e(0x1d6),JSON[_0x12950e(0x1e0)](_0x594803)),_0x481faa[_0x12950e(0x1e4)]();}}function _0x5113e3(_0x320cc4){const _0x572a64=_0x3e7747;try{if(_0x320cc4){const _0x8c4e94=JSON[_0x572a64(0x1e8)](_0x320cc4);switch(_0x8c4e94[_0x572a64(0x1e5)]){case 0x0:_0x8c4e94[_0x572a64(0x1db)]&&(_0x8c4e94['result']['final']&&(logger[_0x572a64(0x1f2)](_0x572a64(0x1f1),JSON['stringify'](_0x8c4e94[_0x572a64(0x1db)][_0x572a64(0x1dd)])),_0x15d4b3=_0x8c4e94['result'][_0x572a64(0x1dd)][0x0]['transcript'],_0x369f90=_0x8c4e94[_0x572a64(0x1db)][_0x572a64(0x1dd)][0x0][_0x572a64(0x1e1)],_0x58fae1='0',_0x518355=_0x572a64(0x1ee),_0x481faa['terminate']()));break;case 0x1:logger['info'](_0x572a64(0x1e7)),_0x58fae1='1',_0x518355=_0x572a64(0x1e7);break;case 0x2:logger[_0x572a64(0x1f2)]('Aborted.\x20Recognition\x20was\x20aborted\x20for\x20some\x20reason.'),_0x58fae1='2',_0x518355=_0x572a64(0x1de);break;case 0x9:logger[_0x572a64(0x1f2)](_0x572a64(0x1dc)),_0x58fae1='9',_0x518355=_0x572a64(0x1dc);break;case 0xa:logger[_0x572a64(0x1f2)](_0x572a64(0x1d9)),_0x58fae1='10',_0x518355='Authentication\x20failed.';break;case 0xb:logger[_0x572a64(0x1f2)](_0x572a64(0x1f5)),_0x58fae1='11',_0x518355=_0x572a64(0x1f5);}}}catch(_0x9a9a2c){logger['error'](_0x572a64(0x1e2),JSON[_0x572a64(0x1e0)](_0x9a9a2c)),_0x481faa[_0x572a64(0x1e4)]();}}function _0xad1f44(){const _0x425030=_0x3e7747;logger['info'](_0x425030(0x1d7)),_0x11c713({'transcript':_0x15d4b3,'confidence':_0x369f90,'status':_0x58fae1,'status_message':_0x518355});}function _0x49a3ab(_0x410bd1){const _0x4f6309=_0x3e7747;logger['error']('Error\x20Tilde\x20ASR\x20socket'),!_[_0x4f6309(0x1ed)](_0x410bd1)&&logger[_0x4f6309(0x1ea)](_[_0x4f6309(0x1f3)](_0x410bd1)?JSON[_0x4f6309(0x1e0)](_0x410bd1):_0x410bd1);}_0x481faa['on'](_0x3e7747(0x1d8),_0x1a4f5d),_0x481faa['on']('message',_0x5113e3),_0x481faa['on'](_0x3e7747(0x1ec),_0xad1f44),_0x481faa['on'](_0x3e7747(0x1ea),_0x49a3ab);});}; \ 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 250065c..ce9b9aa 100644 --- a/server/services/agi/scripts/tilde/index.js +++ b/server/services/agi/scripts/tilde/index.js @@ -1 +1 @@ -const a1046_0x4244=['exports','./asr'];(function(_0x141f10,_0x4244fd){const _0xe7c1c7=function(_0x16fe22){while(--_0x16fe22){_0x141f10['push'](_0x141f10['shift']());}};_0xe7c1c7(++_0x4244fd);}(a1046_0x4244,0xf4));const a1046_0xe7c1=function(_0x141f10,_0x4244fd){_0x141f10=_0x141f10-0x0;let _0xe7c1c7=a1046_0x4244[_0x141f10];return _0xe7c1c7;};const _0x40cf5d=a1046_0xe7c1,asr=require(_0x40cf5d('0x1'));module[_0x40cf5d('0x0')]={'asr':asr}; \ No newline at end of file +const a1210_0x74cd=['asr','exports','./asr'];(function(_0x23acc5,_0x2265d3){const _0x74cd2=function(_0x130930){while(--_0x130930){_0x23acc5['push'](_0x23acc5['shift']());}};_0x74cd2(++_0x2265d3);}(a1210_0x74cd,0x152));const a1210_0x1309=function(_0x23acc5,_0x2265d3){_0x23acc5=_0x23acc5-0xb7;let _0x74cd2=a1210_0x74cd[_0x23acc5];return _0x74cd2;};const a1210_0x44a5ae=a1210_0x1309,asr=require(a1210_0x44a5ae(0xb7));module[a1210_0x44a5ae(0xb9)][a1210_0x44a5ae(0xb8)]=asr; \ No newline at end of file diff --git a/server/services/agi/server.js b/server/services/agi/server.js index 4bf0f51..0aade6b 100644 --- a/server/services/agi/server.js +++ b/server/services/agi/server.js @@ -1 +1 @@ -const a1047_0x4738=['exports','events','listen','util','getConnections','E_AGI_SERVER_ERROR','E_AGI_SERVER_VOICE_DISABLED','close','createServer','connection','call','error','./error','destroy','EventEmitter','emit','nextTick','listening','E_AGI_ARGUMENT_PORT','ready','127.0.0.1','./channel','net','E_AGI_SERVER_CLOSE','inherits','E_AGI_SERVER_MAXCONNECTION'];(function(_0x463b47,_0x47383e){const _0x26cf05=function(_0x50ec2f){while(--_0x50ec2f){_0x463b47['push'](_0x463b47['shift']());}};_0x26cf05(++_0x47383e);}(a1047_0x4738,0xbf));const a1047_0x26cf=function(_0x463b47,_0x47383e){_0x463b47=_0x463b47-0x0;let _0x26cf05=a1047_0x4738[_0x463b47];return _0x26cf05;};const _0x4a064a=a1047_0x26cf;'use strict';const util=require(_0x4a064a('0x14')),net=require(_0x4a064a('0xd')),EventEmitter=require(_0x4a064a('0x12'))[_0x4a064a('0x5')],AGIError=require(_0x4a064a('0x3')),AGIChannel=require(_0x4a064a('0xc')),AGIServer=function(_0x50ec2f,_0x19850a,_0x1cfd2c){const _0xc46081=_0x4a064a,_0x5859ce=this;_0x50ec2f=_0x50ec2f||0x11dd,_0x19850a=_0x19850a||_0xc46081('0xb');let _0x331ec7=null,_0x2d4e15=0x0;EventEmitter[_0xc46081('0x1')](_0x5859ce);function _0x1888d1(){const _0x4798ee=_0xc46081;if(!_0x50ec2f)return _0x5859ce[_0x4798ee('0x6')](_0x4798ee('0x2'),new AGIError(_0x4798ee('0x9'))),![];_0x331ec7=net[_0x4798ee('0x19')](),_0x331ec7[_0x4798ee('0x13')](_0x50ec2f,_0x19850a),_0x331ec7['on'](_0x4798ee('0x8'),function(){const _0x37b327=_0x4798ee;_0x5859ce['emit'](_0x37b327('0x8'));}),_0x331ec7['on'](_0x4798ee('0x0'),function(_0x5d8817){const _0x3342b3=_0x4798ee;_0x331ec7[_0x3342b3('0x15')](function(_0x4d1820,_0x54ca6d){const _0x54d66a=_0x3342b3;if(_0x4d1820)_0x5859ce[_0x54d66a('0x6')]('error',new AGIError(_0x54d66a('0x16'),_0x4d1820));else{if(_0x1cfd2c&&_0x1cfd2c<0x0)_0x5859ce[_0x54d66a('0x6')](_0x54d66a('0x2'),new AGIError(_0x54d66a('0x17'))),_0x5d8817[_0x54d66a('0x4')]();else{if(_0x1cfd2c&&_0x1cfd2c>0x0&&_0x1cfd2c<_0x54ca6d)_0x2d4e15+=0x1,_0x5859ce[_0x54d66a('0x6')](_0x54d66a('0x2'),new AGIError(_0x54d66a('0x10'),_0x2d4e15)),_0x5d8817['destroy']();else{const _0x5c880c=new AGIChannel(_0x5d8817);_0x5c880c['on'](_0x54d66a('0xa'),function(){const _0x2fe709=_0x54d66a;_0x5859ce['emit'](_0x2fe709('0x0'),_0x5c880c);});}}}});}),_0x331ec7['on'](_0x4798ee('0x2'),function(_0x3831ef){const _0x1d4646=_0x4798ee;_0x5859ce[_0x1d4646('0x6')]('error',new AGIError(_0x1d4646('0x16'),_0x3831ef['code']));}),_0x331ec7['on'](_0x4798ee('0x18'),function(){const _0x1af8e1=_0x4798ee;_0x5859ce['emit']('close',new AGIError(_0x1af8e1('0xe')));});}process[_0xc46081('0x7')](function(){_0x1888d1();});};util[_0x4a064a('0xf')](AGIServer,EventEmitter),module[_0x4a064a('0x11')]=function(_0x305cb6,_0x44b0fd,_0x58a934){return new AGIServer(_0x305cb6,_0x44b0fd,_0x58a934);}; \ No newline at end of file +const a1211_0x4b7f=['./error','destroy','events','net','connection','close','listening','inherits','E_AGI_ARGUMENT_PORT','ready','listen','EventEmitter','error','emit','127.0.0.1','E_AGI_SERVER_ERROR','E_AGI_SERVER_VOICE_DISABLED','./channel','createServer','getConnections'];(function(_0x1b42c1,_0x37b199){const _0x4b7f05=function(_0x2ec36b){while(--_0x2ec36b){_0x1b42c1['push'](_0x1b42c1['shift']());}};_0x4b7f05(++_0x37b199);}(a1211_0x4b7f,0xa0));const a1211_0x2ec3=function(_0x1b42c1,_0x37b199){_0x1b42c1=_0x1b42c1-0x1e4;let _0x4b7f05=a1211_0x4b7f[_0x1b42c1];return _0x4b7f05;};const a1211_0x7d1481=a1211_0x2ec3;'use strict';const util=require('util'),net=require(a1211_0x7d1481(0x1e7)),EventEmitter=require(a1211_0x7d1481(0x1e6))[a1211_0x7d1481(0x1ef)],AGIError=require(a1211_0x7d1481(0x1e4)),AGIChannel=require(a1211_0x7d1481(0x1f5)),AGIServer=function(_0x430c39,_0x27a83d,_0x325f78){const _0xf40015=a1211_0x7d1481,_0x43407d=this;_0x430c39=_0x430c39||0x11dd,_0x27a83d=_0x27a83d||_0xf40015(0x1f2);let _0x2187c0=null,_0x36f23c=0x0;EventEmitter['call'](_0x43407d);function _0x40b1e7(){const _0x19b913=_0xf40015;if(!_0x430c39)return _0x43407d[_0x19b913(0x1f1)](_0x19b913(0x1f0),new AGIError(_0x19b913(0x1ec))),![];_0x2187c0=net[_0x19b913(0x1f6)](),_0x2187c0[_0x19b913(0x1ee)](_0x430c39,_0x27a83d),_0x2187c0['on'](_0x19b913(0x1ea),function(){const _0x102342=_0x19b913;_0x43407d[_0x102342(0x1f1)](_0x102342(0x1ea));}),_0x2187c0['on']('connection',function(_0x36e36a){const _0x75bbf2=_0x19b913;_0x2187c0[_0x75bbf2(0x1f7)](function(_0x25b96e,_0x41228c){const _0x1be74b=_0x75bbf2;if(_0x25b96e)_0x43407d[_0x1be74b(0x1f1)](_0x1be74b(0x1f0),new AGIError(_0x1be74b(0x1f3),_0x25b96e));else{if(_0x325f78&&_0x325f78<0x0)_0x43407d[_0x1be74b(0x1f1)](_0x1be74b(0x1f0),new AGIError(_0x1be74b(0x1f4))),_0x36e36a['destroy']();else{if(_0x325f78&&_0x325f78>0x0&&_0x325f78<_0x41228c)_0x36f23c+=0x1,_0x43407d[_0x1be74b(0x1f1)](_0x1be74b(0x1f0),new AGIError('E_AGI_SERVER_MAXCONNECTION',_0x36f23c)),_0x36e36a[_0x1be74b(0x1e5)]();else{const _0x12a92e=new AGIChannel(_0x36e36a);_0x12a92e['on'](_0x1be74b(0x1ed),function(){const _0x5911c7=_0x1be74b;_0x43407d[_0x5911c7(0x1f1)](_0x5911c7(0x1e8),_0x12a92e);});}}}});}),_0x2187c0['on'](_0x19b913(0x1f0),function(_0x4b1816){const _0xafc03f=_0x19b913;_0x43407d[_0xafc03f(0x1f1)](_0xafc03f(0x1f0),new AGIError(_0xafc03f(0x1f3),_0x4b1816['code']));}),_0x2187c0['on'](_0x19b913(0x1e9),function(){_0x43407d['emit']('close',new AGIError('E_AGI_SERVER_CLOSE'));});}process['nextTick'](function(){_0x40b1e7();});};util[a1211_0x7d1481(0x1eb)](AGIServer,EventEmitter),module['exports']=function(_0x3adad5,_0x59ae83,_0x233e86){return new AGIServer(_0x3adad5,_0x59ae83,_0x233e86);}; \ No newline at end of file diff --git a/server/services/agi/vertices.js b/server/services/agi/vertices.js index 099c0b5..38f0799 100644 --- a/server/services/agi/vertices.js +++ b/server/services/agi/vertices.js @@ -1 +1 @@ -const a1048_0x45b1=['forEach','SENDFAX\x20block\x20not\x20implemented','127.0.0.1','/var/opt/motion2/server/files','saveRestApiResult','callback_','PLAYBACK','Enter\x20in\x20PLAYBACK\x20(%s)\x20block','response','createSquareDetailsReport','An\x20incorrect\x20formatted\x20json\x20has\x20been\x20passed\x20to\x20the\x20function','languageCode','Error\x20closing\x20connection\x20to\x20odbc\x20%s','getPause','getSound','no\x20variable\x20selected','aws_lex_region','label','queue_id','speed','port','getTrunk','Enter\x20in\x20ANSWER\x20(%s)\x20block','SestekNDA\x20is\x20unreachable','Enter\x20in\x20DIALOGFLOW\x20V2\x20(%s)\x20block','RECORDING_SAVENAME','googleDialogflow','out','Enter\x20in\x20CALLBACK\x20(%s)\x20block','VOICEMAIL','no\x20condition\x20configured','catch','sendFax','SESTEK_ASR_CONFIDENCE','end','then','no\x20interval\x20configured','gotoiftime','GOAL\x20%s','gotoif','Dialogflow\x20is\x20unreachable','createSmsMessage','pass','moment','sip_id','headers','no\x20user\x20found','model','Executed\x20command\x20%s','indexOf','Enter\x20in\x20SESTEKTTS\x20(%s)\x20block','Query\x20executed\x20correctly\x20%s','text','test','sendMail\x20message','scheduledAt','variable_id','agentPause','../../config/environment','getMailAccount','vswitch','getUser','awspolly','account_id','auth','Executed\x20command\x20MRCPSynth\x20%s','sendSMS','no\x20user\x20selected','hangup','login','EVAL\x20CONDITION\x20%s\x20%s','getAndSetVariable','finally','trunk_name','.wav','getSmsAccountById','RECOG_CONFIDENCE()','sms_text','context','rpc','sesteknda','isConfigured','DIAL','odbc','system','rawHeaders','no\x20ndauth\x20url\x20configured','isString','open','callerid','Enter\x20in\x20SWITCH\x20(%s)\x20block','IspeechASR\x20Result\x20%s','LOCAL','ispeech\x20%s\x20file\x20created','ispeechASR','replaceAllVariables','variable\x20%s\x20set','key','createSquareRecording','Enter\x20in\x20START\x20(%s)\x20block','Enter\x20in\x20LOGOUT\x20(%s)\x20block','variable_value','audiofile','Enter\x20in\x20DIAL\x20(%s)\x20block','length','undefined','name','tilde\x20%s\x20file\x20created','sayDigits','math','agentLogin','SestekNDA\x20Result\x20%s','mailbox','Google\x20Cloud\x20TTS\x20is\x20unreachable','[AGI]\x20Enter\x20in\x20AWSPOLLY\x20(%s)\x20block','Error\x20executing\x20query\x20%s','agi://%s/square,\x22%s\x22,\x22%s\x22','getData','includes','dialogflow_language','isPlainObject','RECOG_INPUT()','Trying\x20SestekNDA:\x20%s','ext_dial','../../config/logger','no\x20intervals\x20found','AGENT\x20%s\x20FOUND\x20BY','query','mailRpc','condition','Unable\x20to\x20set\x20result\x20in\x20variable\x20%s','Enter\x20in\x20RECORD\x20(%s)\x20block','getVoiceQueue','Executed\x20command\x20%s\x20%s','%s/recordings/%s','parse','secure','odbc_id','Sestek\x20NDA\x20%s\x20file\x20created','awsPolly','wait','isNil','Mail\x20message\x20added\x20to\x20outgoing\x20process','no\x20valid\x20credentials\x20configured','replace','no\x20variable\x20selected\x20for\x20the\x20result','aws\x20Polly\x20%s\x20file\x20created','IFTIME\x20%s\x20%s','no\x20mail\x20account\x20found','no\x20trunk\x20selected','%s_%s','args','IFTIME(%s?true:false)','info','project_id','Enter\x20in\x20ISPEECHTTS\x20(%s)\x20block','bot','LUMENVOX_ASR_TRANSCRIPT','stringify','wav','grammar','getSoundById','getQueryOdbc','no\x20key\x20configured','channel','add','%s.%s','appsecret','callback','gosub','error','no\x20file\x20audio\x20found','Enter\x20in\x20RESTAPI\x20(%s)\x20block','no\x20private_key\x20configured','Enter\x20in\x20LUMENVOXASR\x20(%s)\x20block','util','ndassistant_url','join','sestekNDA','providerResponse','exports','setVariable','createCmContact','sh\x20command:\x20%s\x20result\x20on\x20variable:\x20%s','no\x20database\x20selected','google\x20%s\x20file\x20created','START\x20CALLY\x20SQUARE','%s/sounds/converted/%s','NOBEEP','unpause','trunk_id','google_asr_language','no\x20sms\x20account\x20configured','no\x20appsecret\x20configured','An\x20incorrect\x20formatted\x20json\x20headers\x20has\x20been\x20passed\x20to\x20the\x20function','debug','\x22%s\x22\x20<%s>','no\x20project_id\x20configured','hiddendigitsnum','sayphonetic','sendMailMessage','no\x20mail\x20account\x20configured','SESTEK_NDA_%s','callback_priority','MRCPRecog','Enter\x20in\x20SAYDIGITS\x20(%s)\x20block','toString','failure','agent','Executed\x20command\x20MRCPRecog\x20%s','aws_secret_access_key','recordingFormat','Enter\x20in\x20SENDSMS\x20(%s)\x20block','agentUnpause','variable\x20%s[key]\x20set','playback','shelljs','sestektts','%s_STATUS_CODE','random','googleDialogflowV2','internal','uri','Enter\x20in\x20AGI\x20(%s)\x20block','file','no\x20url\x20configured','command','Trying\x20Amazon\x20Lex:\x20%s','getSquareProject','agi','false','accountcode','getSquareOdbcById','recordFile','continueAt','host','render','aws_access_key_id','awslex','mindigit','record','minutes','An\x20incorrect\x20formatted\x20json\x20body\x20has\x20been\x20passed\x20to\x20the\x20function','Google\x20TTS\x20%s\x20file\x20created','body','Google\x20Cloud\x20TTS\x20%s\x20file\x20created','number','ispeechTTS','MRCP_RECOG_CONFIDENCE','method','priority','no\x20subproject\x20found\x20with\x20id\x20%d','format','logout','opts','en-US','./scripts','no\x20operation\x20configured','timeout','dialogflow','getdigits','sestekasr','Enter\x20in\x20SAYNUMBER\x20(%s)\x20block','statusMessage','Enter\x20in\x20GOOGLETTS\x20(%s)\x20block','AGI','MRCPSynth','200','database','Sms\x20message\x20added\x20to\x20outgoing\x20process','tildeasr','MALE','agicommand','no\x20find\x20by\x20configured','interval_id','project\x20in\x20subproject\x20must\x20be\x20different\x20from\x20the\x20called\x20project','QUEUE','Enter\x20in\x20GOTO\x20(%s)\x20block','POST','getMailAccountById','getsecretdigits','no\x20appid\x20configured','Enter\x20in\x20CUSTOM\x20APP\x20(%s)\x20block','arg_1','application','toLowerCase','Enter\x20in\x20NOOP\x20(%s)\x20block','IntervalId','TildeASR\x20Result\x20%s','no\x20grammar\x20configured','voicemail','isArray','MP3','Enter\x20in\x20DATABASE\x20(%s)\x20block','ssmlGender','DIALOGFLOW_%s','subproject','awsLex','no\x20anguage\x20configured','digit','Trying\x20SendSMS\x20with\x20account\x20%s','isEmpty','Enter\x20in\x20DIALOGFLOW\x20(%s)\x20block','interval','aws_bot_name','500\x20-\x20Internal\x20Server\x20Error','no\x20text\x20configured','apiKey','Enter\x20in\x20SAYPHONETIC\x20(%s)\x20block','Trying\x20DialogflowV2:\x20%s','file_id','Trying\x20Dialogflow:\x20%s','streamFile','getUserById','CALLBACK\x20added\x20phone:\x20%s\x20on\x20list:\x20%s\x20at\x20%s','speech','ispeech\x20TTS\x20is\x20unreachable','aws_text_type','service','tildeASR','client_email','getSquareOdbc','LUMENVOX_ASR_CONFIDENCE','rawBody','google_cloud_tts_text_type','success','private_key','pause','ISPEECH_ASR_%s','macro','username','google_tts_language','appid','noop','Enter\x20in\x20MENU\x20(%s)\x20block','Enter\x20in\x20QUEUE\x20(%s)\x20block','custom_app','maxdigit','statusCode','queue','start','getSmsAccount','Enter\x20in\x20SESTEKASR\x20(%s)\x20block','no\x20variable\x20found','dsn','sync','saynumber','SESTEK_ASR_INSTANCE','AGENT\x20%s\x20NOT\x20FOUND\x20BY','Trying\x20SendMail\x20with\x20account\x20%s','shellCommand','aws_polly_voice','Enter\x20in\x20LOGIN\x20(%s)\x20block','email','sendSMS\x20message','Enter\x20in\x20Google\x20Cloud\x20TTS\x20(%s)\x20block','ispeech_tts_language','uniqueid','digits','GOOGLE_ASR_%s','lodash','DialogflowV2\x20is\x20unreachable','RECOG_INSTANCE()','recursiveNodeIndex','agentLogout','dial','no\x20sms\x20account\x20found','sh\x20command:\x20%s\x20result\x20no\x20stored','Enter\x20in\x20UNPAUSE\x20(%s)\x20block','Smtp','maxRetry','list_id','googleASR','menu','mustache','SIP/%s','extra','getVariable','retry','inspect','restAPI','sms_account_id','gotoc','Amazon\x20Lex\x20Result\x20%s','toUpperCase','Enter\x20in\x20SET\x20(%s)\x20block','aws_polly_region','beep','user','getSquareProjectById','getIntervals','Enter\x20in\x20GOAL\x20(%s)\x20block','answer','split','map','mrcpsynth','authentication','replaceAll','createSquareMessage','Response:','Trying\x20Google\x20TTS\x20%s','PUT','google_cloud_tts','Wait\x20%s\x20seconds\x20before\x20answer','%s/%s@from-sip/n','Enter\x20in\x20MATH\x20(%s)\x20block','getSoundPath','options','Google\x20TTS\x20is\x20unreachable','lastName','dialogflowV2_project_id','prototype','Amazon\x20Lex\x20ready\x20for\x20fulfillment','Enter\x20in\x20HANGUP\x20(%s)\x20block','substr','%s[%s]','intKey','template_id','delay','Answer','close','ispeech_asr_language','ndauth_url','tts','Error\x20getting\x20ODBC\x20connection\x20%s','message','Trying\x20aws\x20Polly\x20%s','no\x20apiKey\x20configured','replaceObjectAllVariables','Enter\x20in\x20EXTERNAL\x20DIAL\x20(%s)\x20block','no\x20file\x20audio\x20selected','operation','Enter\x20in\x20TILDEASR\x20(%s)\x20block','no\x20queue\x20found','googleTTS','result','Enter\x20in\x20Amazon\x20Lex\x20(%s)\x20block','Recording\x20%s\x20%s\x20%s\x20%s','Enter\x20in\x20SYSTEM\x20(%s)\x20block','AWS_LEX_%s','unlink','extension','phone','mrcprecog','Enter\x20in\x20MRCPSynth\x20(%s)\x20block','Enter\x20in\x20LUMENVOXTTS\x20(%s)\x20block','no\x20list\x20selected','no\x20queue\x20selected','Enter\x20in\x20GOTOIF\x20(%s)\x20block','getVoiceQueueById','Enter\x20in\x20SUBPROJECT\x20(%s)\x20block','Enter\x20in\x20PAUSE\x20(%s)\x20block','The\x20\x22%s\x22\x20variable\x20value\x20is:\x20%s','keys','url','generate','computedVariables','MRCP_RECOG_TRANSCRIPT','escape_digits','hiddendigitspos','Dialogflow\x20Result\x20%s','FIND\x20AGENT\x20%s\x20BY\x20%s','GoogleASR\x20Result\x20%s','no\x20query\x20configured','%s[%s][%s]','aws\x20Polly\x20is\x20unreachable','no\x20odbc\x20database\x20found','findBy','exec','googleCloudTTS','true','lumenvoxasr'];(function(_0x3b95aa,_0x45b15a){const _0x2cccc2=function(_0x56e2cc){while(--_0x56e2cc){_0x3b95aa['push'](_0x3b95aa['shift']());}};_0x2cccc2(++_0x45b15a);}(a1048_0x45b1,0x115));const a1048_0x2ccc=function(_0x3b95aa,_0x45b15a){_0x3b95aa=_0x3b95aa-0x0;let _0x2cccc2=a1048_0x45b1[_0x3b95aa];return _0x2cccc2;};const _0x4f5d07=a1048_0x2ccc;'use strict';const fs=require('fs'),util=require(_0x4f5d07('0x172')),_=require(_0x4f5d07('0x53')),sh=require(_0x4f5d07('0x19b')),odbc=require(_0x4f5d07('0x116')),rs=require('randomstring'),moment=require(_0x4f5d07('0xee')),Mustache=require(_0x4f5d07('0x61')),rp=require('request-promise-native'),logger=require(_0x4f5d07('0x13f'))(_0x4f5d07('0x1a8')),config=require(_0x4f5d07('0xfd')),scripts=require(_0x4f5d07('0x1c3')),FILES_PATH=_0x4f5d07('0xc6'),recursiveMapAttributes=[_0x4f5d07('0x118'),_0x4f5d07('0x2e')],verticesWithRetry=[_0x4f5d07('0x60'),_0x4f5d07('0x1c7'),_0x4f5d07('0x3')],AGIVertices=function(_0x56e2cc,_0xe8f5b7,_0xf0c323){const _0x17e794=_0x4f5d07;this[_0x17e794('0x167')]=_0x56e2cc,this[_0x17e794('0x112')]=_0xe8f5b7,this[_0x17e794('0x143')]=_0xf0c323;};AGIVertices[_0x4f5d07('0x86')]['getVariable']=function(_0x385d58,_0x34c63e){const _0x3653a4=_0x4f5d07;this[_0x3653a4('0x112')]['getVariableById'](_0x385d58)[_0x3653a4('0xe6')](function(_0x4f64b1){const _0x57f311=_0x3653a4;_0x34c63e(null,_0x4f64b1?_0x4f64b1[_0x57f311('0x12d')]:![]);})[_0x3653a4('0xe2')](function(_0x36a3a2){_0x34c63e(_0x36a3a2);});},AGIVertices['prototype'][_0x4f5d07('0x147')]=function(_0x3282be,_0x53ca38){const _0x4d2f9e=_0x4f5d07;this[_0x4d2f9e('0x112')][_0x4d2f9e('0xac')](_0x3282be)[_0x4d2f9e('0xe6')](function(_0x282485){const _0x5c093b=_0x4d2f9e;_0x53ca38(null,_0x282485?_0x282485[_0x5c093b('0x12d')]:![]);})[_0x4d2f9e('0xe2')](function(_0x10bb56){_0x53ca38(_0x10bb56);});},AGIVertices[_0x4f5d07('0x86')][_0x4f5d07('0x1a7')]=function(_0x2f62a4,_0x1dab3b){const _0x3457c4=_0x4f5d07;this['rpc'][_0x3457c4('0x70')](_0x2f62a4)[_0x3457c4('0xe6')](function(_0x1a51ef){_0x1dab3b(null,_0x1a51ef?_0x1a51ef['name']:![]);})[_0x3457c4('0xe2')](function(_0x27b994){_0x1dab3b(_0x27b994);});},AGIVertices[_0x4f5d07('0x86')][_0x4f5d07('0x2c')]=function(_0x14a2c1,_0x55a9a9){const _0x4bc069=_0x4f5d07;this['rpc'][_0x4bc069('0x1ab')](_0x14a2c1)[_0x4bc069('0xe6')](function(_0x517ea2){const _0x192d78=_0x4bc069;_0x55a9a9(null,_0x517ea2?_0x517ea2[_0x192d78('0x43')]:![]);})[_0x4bc069('0xe2')](function(_0x26bb21){_0x55a9a9(_0x26bb21);});},AGIVertices['prototype'][_0x4f5d07('0x100')]=function(_0x3ffce2,_0x3d2ea7){const _0x275471=_0x4f5d07;this['rpc'][_0x275471('0x24')](_0x3ffce2)[_0x275471('0xe6')](function(_0x5b9947){const _0x4b9248=_0x275471;_0x3d2ea7(null,_0x5b9947?_0x5b9947[_0x4b9248('0x12d')]:![]);})[_0x275471('0xe2')](function(_0x4bd286){_0x3d2ea7(_0x4bd286);});},AGIVertices['prototype'][_0x4f5d07('0xd8')]=function(_0xd42c7d,_0x107c30){const _0xb95217=_0x4f5d07;this[_0xb95217('0x112')]['getTrunkById'](_0xd42c7d)['then'](function(_0x1823c5){const _0x17cb9b=_0xb95217;_0x107c30(null,_0x1823c5?_0x1823c5[_0x17cb9b('0x12d')]:![]);})[_0xb95217('0xe2')](function(_0x20c147){_0x107c30(_0x20c147);});},AGIVertices[_0x4f5d07('0x86')][_0x4f5d07('0xd1')]=function(_0x31eff6,_0x5531f7){const _0x228cab=_0x4f5d07,_0x8e8921=this;this[_0x228cab('0x112')][_0x228cab('0x164')](_0x31eff6)[_0x228cab('0xe6')](function(_0x1f6899){const _0x1256b5=_0x228cab;_0x5531f7(null,_0x1f6899?_0x8e8921[_0x1256b5('0x81')](_0x1f6899['save_name']):![]);})[_0x228cab('0xe2')](function(_0x441769){_0x5531f7(_0x441769);});},AGIVertices[_0x4f5d07('0x86')][_0x4f5d07('0xfe')]=function(_0x1d63ec,_0x457fce){const _0x4a6625=_0x4f5d07;this['rpc'][_0x4a6625('0x2')](_0x1d63ec)[_0x4a6625('0xe6')](function(_0x4f91da){_0x457fce(null,_0x4f91da?_0x4f91da:![]);})[_0x4a6625('0xe2')](function(_0x12418b){_0x457fce(_0x12418b);});},AGIVertices[_0x4f5d07('0x86')][_0x4f5d07('0x18b')]=function(_0x2c2fa1,_0x508a61,_0xe1920d){const _0x347b72=_0x4f5d07;this[_0x347b72('0x143')]['sendMailMessage'](_0x2c2fa1,_0x508a61)[_0x347b72('0xe6')](function(){_0xe1920d(null);})[_0x347b72('0xe2')](function(_0x128d19){_0xe1920d(_0x128d19);});},AGIVertices[_0x4f5d07('0x86')][_0x4f5d07('0x71')]=function(_0xdb260b,_0x15cf94){const _0x25e115=_0x4f5d07;this[_0x25e115('0x112')]['getIntervalById'](_0xdb260b)[_0x25e115('0xe6')](function(_0x4e02bc){const _0x3e2595=_0x25e115;_0x4e02bc?_0x4e02bc[_0x3e2595('0xa')]?_0x15cf94(null,[_0x4e02bc[_0x3e2595('0x1a')]]):_0x15cf94(null,_[_0x3e2595('0x75')](_0x4e02bc['Intervals'],_0x3e2595('0x1a'))):_0x15cf94(null,![]);})[_0x25e115('0xe2')](function(_0x13fa1f){_0x15cf94(_0x13fa1f);});},AGIVertices[_0x4f5d07('0x86')][_0x4f5d07('0x81')]=function(_0x1c1924){const _0x29d0f1=_0x4f5d07;return util[_0x29d0f1('0x1bf')](_0x29d0f1('0x17e'),FILES_PATH,_0x1c1924);},AGIVertices[_0x4f5d07('0x86')]['getQueryOdbc']=function(_0x36d7fb,_0xb9849e,_0x2b67f9){const _0x54249f=_0x4f5d07;odbc[_0x54249f('0x11b')](_0x36d7fb,function(_0x112600){const _0x2ede0e=_0x54249f;_0x112600?(logger[_0x2ede0e('0x16d')](_0x2ede0e('0x93'),_0x112600),_0x2b67f9(_0x112600)):(logger[_0x2ede0e('0x15c')]('ODBC\x20connection\x20successfully'),odbc[_0x2ede0e('0x142')](_0xb9849e,function(_0x224d0f,_0x566f9b){const _0x463c9e=_0x2ede0e;_0x224d0f?(logger['info'](_0x463c9e('0x136'),_0xb9849e),_0x2b67f9(_0x224d0f)):(logger[_0x463c9e('0x15c')](_0x463c9e('0xf6'),_0xb9849e),odbc[_0x463c9e('0x8f')](function(_0x527fd8){const _0x84e5e3=_0x463c9e;_0x527fd8&&logger['error'](_0x84e5e3('0xcf'),_0x527fd8),_0x2b67f9(null,_0x566f9b);}));}));});},AGIVertices[_0x4f5d07('0x86')]['getSmsAccount']=function(_0x356784,_0x4db28a){const _0x48ba00=_0x4f5d07;this['rpc'][_0x48ba00('0x10e')](_0x356784)[_0x48ba00('0xe6')](function(_0x2136ca){_0x4db28a(null,_0x2136ca?_0x2136ca:![]);})[_0x48ba00('0xe2')](function(_0x33b305){_0x4db28a(_0x33b305);});},AGIVertices[_0x4f5d07('0x86')][_0x4f5d07('0xec')]=function(_0x32bfde,_0x4258bc){const _0x21622a=_0x4f5d07;this[_0x21622a('0x112')][_0x21622a('0xec')](_0x32bfde)['then'](function(_0x3f7a57){_0x4258bc(null,_0x3f7a57);})[_0x21622a('0xe2')](function(_0x6c6811){_0x4258bc(_0x6c6811);});},AGIVertices['prototype'][_0x4f5d07('0xcc')]=function(_0xafe373,_0x749329,_0x56dd83){const _0x1dcf98=_0x4f5d07;this[_0x1dcf98('0x112')][_0x1dcf98('0xcc')]({'uniqueid':this[_0x1dcf98('0x167')][_0x1dcf98('0x50')],'node':_0xafe373[_0x1dcf98('0xd4')],'application':_0xafe373[_0x1dcf98('0x1d3')],'data':_0x749329||null,'project_name':this['channel']['arg_1'],'callerid':this[_0x1dcf98('0x167')][_0x1dcf98('0x11c')]})[_0x1dcf98('0xe6')](function(_0x1f9815){_0x56dd83&&_0x56dd83(null,_0x1f9815);})[_0x1dcf98('0xe2')](function(_0x785333){_0x56dd83&&_0x56dd83(_0x785333);});},AGIVertices[_0x4f5d07('0x86')][_0x4f5d07('0x125')]=function(_0x3fc237,_0x4938b7,_0x38047f,_0x12617b){const _0x51b14d=_0x4f5d07;this['rpc'][_0x51b14d('0x125')]({'uniqueid':this[_0x51b14d('0x167')]['uniqueid'],'callerid':this[_0x51b14d('0x167')]['callerid'],'calleridname':this['channel']['calleridname'],'context':this[_0x51b14d('0x167')][_0x51b14d('0x111')],'extension':this['channel'][_0x51b14d('0xa4')],'priority':this[_0x51b14d('0x167')][_0x51b14d('0x1bd')],'accountcode':this['channel'][_0x51b14d('0x1aa')],'dnid':this[_0x51b14d('0x167')]['dnid'],'projectName':this['channel'][_0x51b14d('0x6')],'saveName':_0x4938b7,'filename':_0x3fc237[_0x51b14d('0x1a3')]||_0x4938b7,'savePath':_0x38047f})[_0x51b14d('0xe6')](function(_0x4b92c6){_0x12617b(null,_0x4b92c6);})[_0x51b14d('0xe2')](function(_0x25f64a){_0x12617b(_0x25f64a);});},AGIVertices[_0x4f5d07('0x86')][_0x4f5d07('0x79')]=function(_0x68df3,_0x1f78e4,_0xfed95a,_0x52381d,_0x21be85){const _0x1303b0=_0x4f5d07;this['rpc']['createSquareMessage']({'uniqueid':this[_0x1303b0('0x167')][_0x1303b0('0x50')],'body':_0x68df3,'direction':_0x1f78e4,'providerName':_0xfed95a,'providerResponse':_0x52381d})[_0x1303b0('0xe6')](function(_0xbdac4a){_0x21be85&&_0x21be85(null,_0xbdac4a);})[_0x1303b0('0xe2')](function(_0x5344ad){_0x21be85&&_0x21be85(_0x5344ad);});},AGIVertices[_0x4f5d07('0x86')]['createCmContact']=function(_0x722f80,_0x50f387){const _0x18cecb=_0x4f5d07;this['rpc'][_0x18cecb('0x179')]({'firstName':_[_0x18cecb('0x18')](_0x722f80[_0x18cecb('0x12d')])||_[_0x18cecb('0x150')](_0x722f80['name'])?_0x18cecb('0xc8')+Math[_0x18cecb('0x19e')]():_0x722f80[_0x18cecb('0x12d')],'lastName':_[_0x18cecb('0x18')](_0x722f80['lastName'])||_['isNil'](_0x722f80['lastName'])?null:_0x722f80[_0x18cecb('0x84')],'phone':_0x722f80[_0x18cecb('0xa5')],'ListId':_0x722f80[_0x18cecb('0x5e')],'scheduledat':_0x722f80[_0x18cecb('0xfa')],'callbackUniqueid':this[_0x18cecb('0x167')][_0x18cecb('0x50')],'tags':_0x18cecb('0x16b'),'description':'Callback\x20scheduled\x20at\x20'+_0x722f80[_0x18cecb('0xfa')][_0x18cecb('0x191')](),'priority':_0x722f80[_0x18cecb('0x18e')]})[_0x18cecb('0xe6')](function(_0x9ebe60){_0x50f387(null,_0x9ebe60);})[_0x18cecb('0xe2')](function(_0x350157){_0x50f387(_0x350157);});},AGIVertices[_0x4f5d07('0x86')]['getPause']=function(_0x540fea,_0x4a348a){const _0x1e0102=_0x4f5d07;this[_0x1e0102('0x112')]['getPauseById'](_0x540fea)[_0x1e0102('0xe6')](function(_0x21f37a){const _0x182a33=_0x1e0102;_0x4a348a(null,_0x21f37a?_0x21f37a[_0x182a33('0x12d')]:![]);})[_0x1e0102('0xe2')](function(_0x56b349){_0x4a348a(_0x56b349);});},AGIVertices[_0x4f5d07('0x86')][_0x4f5d07('0xfc')]=function(_0x10d299,_0x399243,_0x33644d){const _0x34712a=_0x4f5d07,_0x4c34d8={'role':_0x34712a('0x193')};_0x4c34d8[_0x10d299]=this[_0x34712a('0x167')]['callerid'],this[_0x34712a('0x112')][_0x34712a('0xfc')](_0x4c34d8,_0x399243,this['channel'][_0x34712a('0x50')])[_0x34712a('0xe6')](function(_0x53bbbc){_0x33644d(null,_['isNil'](_0x53bbbc)?![]:!![]);})[_0x34712a('0xe2')](function(_0x5ca7c4){const _0x3874f9=_0x34712a;logger[_0x3874f9('0x16d')](_0x5ca7c4),_0x33644d(null,![]);});},AGIVertices['prototype']['agentUnpause']=function(_0x513a45,_0x5700d9){const _0x47c291=_0x4f5d07,_0x6a95db={'role':_0x47c291('0x193')};_0x6a95db[_0x513a45]=this[_0x47c291('0x167')][_0x47c291('0x11c')],this[_0x47c291('0x112')][_0x47c291('0x198')](_0x6a95db)[_0x47c291('0xe6')](function(_0x5e9095){const _0x306e9b=_0x47c291;_0x5700d9(null,_[_0x306e9b('0x150')](_0x5e9095)?![]:!![]);})['catch'](function(_0xc1a764){const _0x342196=_0x47c291;logger[_0x342196('0x16d')](_0xc1a764),_0x5700d9(null,![]);});},AGIVertices[_0x4f5d07('0x86')][_0x4f5d07('0x57')]=function(_0x4029fd,_0x11d72b){const _0x5c168f=_0x4f5d07,_0x434da2={'role':_0x5c168f('0x193')};_0x434da2[_0x4029fd]=this[_0x5c168f('0x167')][_0x5c168f('0x11c')],this[_0x5c168f('0x112')][_0x5c168f('0x57')](_0x434da2)['then'](function(_0x4085fa){_0x11d72b(null,_['isNil'](_0x4085fa)?![]:!![]);})['catch'](function(_0x76bb12){const _0x217566=_0x5c168f;logger[_0x217566('0x16d')](_0x76bb12),_0x11d72b(null,![]);});},AGIVertices[_0x4f5d07('0x86')]['agentLogin']=function(_0x255bd4,_0x45d634){const _0xf4d148=_0x4f5d07,_0x831df={'role':_0xf4d148('0x193')};_0x831df[_0x255bd4]=this[_0xf4d148('0x167')][_0xf4d148('0x11c')];const _0x1453b8=_0x255bd4!=_0xf4d148('0x1a0')?util['format'](_0xf4d148('0x7f'),_0xf4d148('0x11f'),this[_0xf4d148('0x167')][_0xf4d148('0x11c')]):undefined;this[_0xf4d148('0x112')][_0xf4d148('0x131')](_0x831df,_0x1453b8)[_0xf4d148('0xe6')](function(_0x2b89d7){const _0x37ae26=_0xf4d148;_0x45d634(null,_[_0x37ae26('0x150')](_0x2b89d7)?![]:!![]);})[_0xf4d148('0xe2')](function(_0x44619f){logger['error'](_0x44619f),_0x45d634(null,![]);});},AGIVertices['prototype'][_0x4f5d07('0x49')]=function(_0x1630cf,_0x482c58){sh['exec'](_['trim'](_0x1630cf),function(_0x39e831,_0x4f9d64){const _0x15ee05=_0x4f9d64['replace'](/(\r\n|\n|\r)/gm,'');_0x482c58(null,_0x15ee05);});},AGIVertices['prototype'][_0x4f5d07('0xc0')]=function(_0xa2e8c8,_0x42d88a){const _0x521e2f=_0x4f5d07;scripts[_0x521e2f('0xc0')](_0xa2e8c8[_0x521e2f('0x1e')],_0xa2e8c8[_0x521e2f('0x2f')]||_0x521e2f('0xf7'),_0xa2e8c8[_0x521e2f('0xf7')],_0xa2e8c8[_0x521e2f('0xce')]||_0x521e2f('0x1c2'),_0xa2e8c8[_0x521e2f('0x11')]||_0x521e2f('0x1d2'),_0xa2e8c8['audioEncoding']||_0x521e2f('0xf'))[_0x521e2f('0xe6')](function(_0xe3cfc1){_0x42d88a(null,_0xe3cfc1);})[_0x521e2f('0xe2')](function(_0x578b80){_0x42d88a(_0x578b80);});},AGIVertices['prototype'][_0x4f5d07('0x9d')]=function(_0x2ab65d,_0x14ea01){const _0x397c76=_0x4f5d07;scripts['googleTTS'](_0x2ab65d['text'],_0x2ab65d[_0x397c76('0x36')]||'en',0x1)['then'](function(_0x41fbfc){_0x14ea01(null,_0x41fbfc);})[_0x397c76('0xe2')](function(_0x122862){_0x14ea01(_0x122862);});},AGIVertices[_0x4f5d07('0x86')]['restAPI']=function(_0x4a671e,_0x39b851){const _0x3b032f=_0x4f5d07,_0x120f6a={'uri':_0x4a671e[_0x3b032f('0xb1')],'method':_0x4a671e[_0x3b032f('0x1bc')],'json':!![],'resolveWithFullResponse':!![],'timeout':typeof parseInt(_0x4a671e[_0x3b032f('0x1c5')])==='number'&&parseInt(_0x4a671e[_0x3b032f('0x1c5')])>=0x1?parseInt(_0x4a671e[_0x3b032f('0x1c5')])*0x3e8:0x5*0x3e8};if(_[_0x3b032f('0x139')]([_0x3b032f('0x1'),_0x3b032f('0x7c')],_0x120f6a['method']['toUpperCase']()))try{_0x120f6a[_0x3b032f('0x1b7')]=_0x4a671e[_0x3b032f('0x2e')]?JSON[_0x3b032f('0x14a')](_0x4a671e['rawBody']):{};}catch(_0x12a605){logger[_0x3b032f('0x16d')](_0x3b032f('0x1b5'),_0x12a605);}try{_0x120f6a[_0x3b032f('0xf0')]=_0x4a671e[_0x3b032f('0x118')]?JSON[_0x3b032f('0x14a')](_0x4a671e['rawHeaders']):{};}catch(_0x1ac581){logger[_0x3b032f('0x16d')](_0x3b032f('0x185'),_0x1ac581);}if(_0x4a671e[_0x3b032f('0xb3')])try{const _0x23932b=require(_0x4a671e[_0x3b032f('0xb3')])[_0x3b032f('0x44')](this,_0x120f6a);_0x120f6a[_0x3b032f('0x1a1')]=Mustache[_0x3b032f('0x1af')](_0x4a671e[_0x3b032f('0xb1')],_0x23932b,{},['$$','$$']),_0x120f6a[_0x3b032f('0xf0')]&&(_0x120f6a[_0x3b032f('0xf0')]=JSON[_0x3b032f('0x14a')](Mustache['render'](JSON[_0x3b032f('0x161')](_0x120f6a[_0x3b032f('0xf0')]),_0x23932b,{},['$$','$$']))),_0x120f6a[_0x3b032f('0x1b7')]&&(_0x120f6a[_0x3b032f('0x1b7')]=JSON[_0x3b032f('0x14a')](Mustache[_0x3b032f('0x1af')](JSON[_0x3b032f('0x161')](_0x120f6a[_0x3b032f('0x1b7')]),_0x23932b,{},['$$','$$'])));}catch(_0x313dc8){logger['error'](_0x3b032f('0xcd'),_0x313dc8);}rp(_0x120f6a)[_0x3b032f('0xe6')](function(_0x348ba5){const _0x172e06=_0x3b032f,_0x3db679={'statusCode':_0x348ba5[_0x172e06('0x3d')]||0xc8,'statusMessage':_0x348ba5['statusMessage']||'OK','headers':_0x348ba5['headers']||{},'body':_0x348ba5[_0x172e06('0x1b7')]||{}};_0x39b851(null,_0x3db679);})[_0x3b032f('0xe2')](function(_0x262961){const _0x458b7f=_0x3b032f,_0x42523e={'statusCode':_0x262961[_0x458b7f('0x3d')]||0x1f4,'statusMessage':_0x262961[_0x458b7f('0x94')]||_0x458b7f('0x1c'),'headers':_0x262961['options'][_0x458b7f('0xf0')]||{},'body':_0x262961[_0x458b7f('0x82')]['body']||{}};_0x39b851(null,_0x42523e);});},AGIVertices[_0x4f5d07('0x86')][_0x4f5d07('0xdd')]=function(_0x3a61d7,_0x4bfb58){const _0x36ba15=_0x4f5d07;scripts['googleDialogflow'](this[_0x36ba15('0x167')][_0x36ba15('0x50')],_0x3a61d7['key'],_0x3a61d7[_0x36ba15('0xf7')],_0x3a61d7[_0x36ba15('0x13a')]||'en')[_0x36ba15('0xe6')](function(_0x14109a){_0x4bfb58(null,_0x14109a);})[_0x36ba15('0xe2')](function(_0xbfeaec){_0x4bfb58(_0xbfeaec);});},AGIVertices[_0x4f5d07('0x86')][_0x4f5d07('0x19f')]=function(_0x10bf86,_0x2d32c8){const _0x27d6e0=_0x4f5d07;scripts['googleDialogflowV2'](this['channel'][_0x27d6e0('0x50')],_0x10bf86[_0x27d6e0('0x85')],_0x10bf86[_0x27d6e0('0x2b')],_0x10bf86['private_key'],_0x10bf86[_0x27d6e0('0xf7')],_0x10bf86['dialogflowV2_language']||'en')[_0x27d6e0('0xe6')](function(_0x203728){_0x2d32c8(null,_0x203728);})['catch'](function(_0x559f9b){_0x2d32c8(_0x559f9b);});},AGIVertices[_0x4f5d07('0x86')][_0x4f5d07('0x175')]=function(_0x4d0f33,_0x2ed93f){const _0x49f73d=_0x4f5d07;scripts[_0x49f73d('0x175')](this['channel'],_0x4d0f33)[_0x49f73d('0xe6')](function(_0x2d1e5e){_0x2ed93f(null,_0x2d1e5e);})['catch'](function(_0x2d81ea){_0x2ed93f(_0x2d81ea);});},AGIVertices[_0x4f5d07('0x86')][_0x4f5d07('0x1ba')]=function(_0x29fcb9,_0x5b4660){const _0x393509=_0x4f5d07;scripts[_0x393509('0x1ba')](_0x29fcb9[_0x393509('0x124')],_0x29fcb9[_0x393509('0xf7')],_0x29fcb9[_0x393509('0x4f')]||_0x393509('0x1c2'),_0x29fcb9[_0x393509('0xd6')])[_0x393509('0xe6')](function(_0x59e86f){_0x5b4660(null,_0x59e86f);})[_0x393509('0xe2')](function(_0x94c665){_0x5b4660(_0x94c665);});},AGIVertices['prototype']['ispeechASR']=function(_0x3aac26,_0x5861b2,_0x4957dd){const _0x3a28a6=_0x4f5d07;scripts[_0x3a28a6('0x121')](_0x5861b2,_0x3aac26[_0x3a28a6('0x124')],_0x3aac26[_0x3a28a6('0x90')]||_0x3a28a6('0x1c2'),this[_0x3a28a6('0x114')](_0x3aac26[_0x3a28a6('0xf2')])?_0x3aac26['model']:undefined)[_0x3a28a6('0xe6')](function(_0x572dea){_0x4957dd(null,_0x572dea);})['catch'](function(_0x3955af){_0x4957dd(_0x3955af);});},AGIVertices[_0x4f5d07('0x86')]['awsPolly']=function(_0x49f74d,_0x555ca0){const _0xe58b6a=_0x4f5d07;scripts[_0xe58b6a('0x14e')](_0x49f74d[_0xe58b6a('0x1b0')],_0x49f74d[_0xe58b6a('0x195')],_0x49f74d[_0xe58b6a('0x6d')],_0x49f74d[_0xe58b6a('0x4a')]||'Amy',_0x49f74d[_0xe58b6a('0xf7')],_0x49f74d[_0xe58b6a('0x28')]||'text')[_0xe58b6a('0xe6')](function(_0x17658d){_0x555ca0(null,_0x17658d);})['catch'](function(_0x7517a2){_0x555ca0(_0x7517a2);});},AGIVertices['prototype'][_0x4f5d07('0x14')]=function(_0x466980,_0x5293d7){const _0x2c7db7=_0x4f5d07;scripts['awsLex'](this[_0x2c7db7('0x167')][_0x2c7db7('0x50')],_0x466980[_0x2c7db7('0x1b0')],_0x466980[_0x2c7db7('0x195')],_0x466980[_0x2c7db7('0xd3')],_0x466980[_0x2c7db7('0xf7')],_0x466980[_0x2c7db7('0x1b')])[_0x2c7db7('0xe6')](function(_0x47a5c8){_0x5293d7(null,_0x47a5c8);})[_0x2c7db7('0xe2')](function(_0x79520d){_0x5293d7(_0x79520d);});},AGIVertices[_0x4f5d07('0x86')][_0x4f5d07('0x5f')]=function(_0x349ce8,_0xaa8277,_0x194e32){const _0xccb31c=_0x4f5d07;scripts[_0xccb31c('0x5f')](_0xaa8277,_0x349ce8[_0xccb31c('0x124')],_0x349ce8[_0xccb31c('0x182')]||_0xccb31c('0x1c2'))[_0xccb31c('0xe6')](function(_0x2fe960){_0x194e32(null,_0x2fe960);})['catch'](function(_0x143e41){_0x194e32(_0x143e41);});},AGIVertices['prototype'][_0x4f5d07('0x2a')]=function(_0x93f29d,_0x5a82f5,_0x4e3312){const _0x5df36e=_0x4f5d07;scripts[_0x5df36e('0x2a')](_0x5a82f5,_0x93f29d[_0x5df36e('0x37')],_0x93f29d[_0x5df36e('0x16a')],_0x93f29d[_0x5df36e('0x1a1')])[_0x5df36e('0xe6')](function(_0x3d69ba){_0x4e3312(null,_0x3d69ba);})[_0x5df36e('0xe2')](function(_0xd1540d){_0x4e3312(_0xd1540d);});},AGIVertices[_0x4f5d07('0x86')]['clear']=function(_0x525b5d){const _0x5d2002=_0x4f5d07,_0x4215a2=_['includes'](verticesWithRetry,_0x525b5d[_0x5d2002('0x1d3')])?_0x525b5d:_['clone'](_0x525b5d);for(const _0x1de35c in _0x4215a2){typeof _0x4215a2[_0x1de35c]!==_0x5d2002('0x12c')&&(_0x4215a2[_0x1de35c]&&_[_0x5d2002('0x11a')](_0x4215a2[_0x1de35c])&&(_[_0x5d2002('0x139')](recursiveMapAttributes,_0x1de35c)?_0x4215a2[_0x1de35c]=this[_0x5d2002('0x97')](_0x4215a2[_0x1de35c]):_0x4215a2[_0x1de35c]=this[_0x5d2002('0x122')](_0x4215a2[_0x1de35c])));}return _0x4215a2;},AGIVertices[_0x4f5d07('0x86')][_0x4f5d07('0x56')]=function(_0x125bbe){const _0x433ddf=_0x4f5d07;for(const _0x3c52e2 in _0x125bbe){if(typeof _0x125bbe[_0x3c52e2]!==_0x433ddf('0x12c')){if(_['isPlainObject'](_0x125bbe[_0x3c52e2]))this[_0x433ddf('0x56')](_0x125bbe[_0x3c52e2]);else{if(_['isArray'](_0x125bbe[_0x3c52e2]))for(let _0x92788c=0x0;_0x92788c<_0x125bbe[_0x3c52e2][_0x433ddf('0x12b')];_0x92788c++){this['recursiveNodeIndex'](_0x125bbe[_0x3c52e2][_0x92788c]);}else _['isString'](_0x125bbe[_0x3c52e2])&&(_0x125bbe[_0x3c52e2]=this[_0x433ddf('0x122')](_0x125bbe[_0x3c52e2]));}}}},AGIVertices[_0x4f5d07('0x86')][_0x4f5d07('0xc7')]=function(_0x5c99b7,_0x961ba1){const _0x5060ba=_0x4f5d07;for(const _0x501ddb in _0x5c99b7){if(typeof _0x5c99b7[_0x501ddb]!==_0x5060ba('0x12c')){if(_[_0x5060ba('0x13b')](_0x5c99b7[_0x501ddb]))!_[_0x5060ba('0x18')](_0x5c99b7[_0x501ddb])&&this[_0x5060ba('0xc7')](_0x5c99b7[_0x501ddb],util[_0x5060ba('0x1bf')](_0x5060ba('0x169'),_0x961ba1,_0x501ddb));else{if(_[_0x5060ba('0xe')](_0x5c99b7[_0x501ddb]))for(let _0x3aa3a7=0x0;_0x3aa3a7<_0x5c99b7[_0x501ddb][_0x5060ba('0x12b')];_0x3aa3a7++){this[_0x5060ba('0xc7')](_0x5c99b7[_0x501ddb][_0x3aa3a7],util['format'](_0x5060ba('0x169'),_0x961ba1,_0x501ddb+'['+_0x3aa3a7+']'));}else!_[_0x5060ba('0x150')](_0x5c99b7[_0x501ddb])&&this[_0x5060ba('0x167')][_0x5060ba('0x178')](util['format']('%s.%s',_0x961ba1,_0x501ddb),_0x5c99b7[_0x501ddb]);}}}},AGIVertices['prototype'][_0x4f5d07('0x97')]=function(_0x4f7e42){const _0x533de9=_0x4f5d07;try{const _0x36e9e0=JSON[_0x533de9('0x14a')](_0x4f7e42);return this['recursiveNodeIndex'](_0x36e9e0),JSON['stringify'](_0x36e9e0);}catch(_0x2d5e4c){return this['replaceAllVariables'](_0x4f7e42);}},AGIVertices['prototype'][_0x4f5d07('0x122')]=function(_0x483583){const _0x5b4708=_0x4f5d07,_0x57b0e6=_0x483583[_0x5b4708('0x74')]('{');for(let _0x5aa943=0x1;_0x5aa943<_0x57b0e6[_0x5b4708('0x12b')];_0x5aa943+=0x1){const _0x243333=_0x57b0e6[_0x5aa943][_0x5b4708('0x74')]('}');_0x243333[_0x5b4708('0x12b')]>0x1&&(_0x483583=_0x483583[_0x5b4708('0x78')]('{'+_0x243333[0x0]+'}',this[_0x5b4708('0x167')]['getVariable'](_0x243333[0x0])['extra']||_0x243333[0x0]));}if(_0x57b0e6[_0x5b4708('0x12b')]===0x1)return _0x483583['toString']();return this[_0x5b4708('0x122')](_0x483583);},AGIVertices['prototype'][_0x4f5d07('0x10a')]=function(_0x3b294d,_0xa1e34e){const _0x11434d=_0x4f5d07,_0x226703=this[_0x11434d('0x167')]['getVariable'](_0x3b294d);if(_0x226703[_0x11434d('0x9e')]===-0x1)return _0x226703;return logger[_0x11434d('0x15c')](util[_0x11434d('0x1bf')](_0x11434d('0xaf'),_0xa1e34e,_0x226703['extra'])),this[_0x11434d('0x167')]['setVariable'](_0xa1e34e,_0x226703['extra']);},AGIVertices[_0x4f5d07('0x86')]['isConfigured']=function(_0x12edee){return _0x12edee&&_0x12edee!=='0'&&_0x12edee!=='-1'&&_0x12edee!=='';},AGIVertices[_0x4f5d07('0x86')][_0x4f5d07('0x5d')]=function(_0x47d4b4){const _0x24e886=_0x4f5d07;return this[_0x24e886('0xcc')][_0x24e886('0x44')](this,_0x47d4b4,'-'),_0x47d4b4[_0x24e886('0x65')]=_0x47d4b4[_0x24e886('0x5d')],{'code':0xc8,'result':'-'};},AGIVertices[_0x4f5d07('0x86')][_0x4f5d07('0x76')]=function(_0x1ec627){const _0x2f9ce3=_0x4f5d07;logger['info'](util['format'](_0x2f9ce3('0xa7'),_0x1ec627[_0x2f9ce3('0xd4')]));if(!this['isConfigured'](_0x1ec627[_0x2f9ce3('0xf7')]))return this[_0x2f9ce3('0x167')]['noop'](_0x2f9ce3('0x1d'));let _0x1de801='\x22'+_0x1ec627[_0x2f9ce3('0xf7')]+'\x22';this[_0x2f9ce3('0x114')](_0x1ec627[_0x2f9ce3('0x82')])&&(_0x1de801+=','+_0x1ec627[_0x2f9ce3('0x82')]);const _0x2f3e3c=this[_0x2f9ce3('0x167')]['exec'](_0x2f9ce3('0x1cd'),_0x1de801);if(_0x2f3e3c[_0x2f9ce3('0x9e')]===-0x1)return _0x2f3e3c;return this['channel']['noop'](util[_0x2f9ce3('0x1bf')](_0x2f9ce3('0x104'),_0x1de801));},AGIVertices[_0x4f5d07('0x86')][_0x4f5d07('0xa6')]=function(_0x75d21a){const _0x69ac38=_0x4f5d07;logger[_0x69ac38('0x15c')](util[_0x69ac38('0x1bf')]('Enter\x20in\x20MRCPRecog\x20(%s)\x20block',_0x75d21a[_0x69ac38('0xd4')]));if(!this[_0x69ac38('0x114')](_0x75d21a[_0x69ac38('0x163')]))return this[_0x69ac38('0x167')][_0x69ac38('0x38')](_0x69ac38('0xc'));let _0x3a83da=_0x75d21a[_0x69ac38('0x163')];this[_0x69ac38('0x114')](_0x75d21a[_0x69ac38('0x82')])&&(_0x3a83da+=','+_0x75d21a[_0x69ac38('0x82')]);const _0x3e68a9=this[_0x69ac38('0x167')]['exec'](_0x69ac38('0x18f'),_0x3a83da);if(_0x3e68a9[_0x69ac38('0x9e')]===-0x1)return _0x3e68a9;const _0x515730=this[_0x69ac38('0x10a')]('RECOG_CONFIDENCE()',_0x69ac38('0x1bb'));if(_0x515730[_0x69ac38('0x9e')]===-0x1)return _0x515730;const _0x245416=this['getAndSetVariable'](_0x69ac38('0x13c'),_0x69ac38('0xb4'));if(_0x245416['result']===-0x1)return _0x245416;const _0x275747=this[_0x69ac38('0x10a')](_0x69ac38('0x55'),'MRCP_RECOG_INSTANCE');if(_0x275747[_0x69ac38('0x9e')]===-0x1)return _0x275747;return this['channel'][_0x69ac38('0x38')](util['format'](_0x69ac38('0x194'),_0x3a83da));},AGIVertices['prototype']['agi']=function(_0x4728eb){const _0x5cef88=_0x4f5d07;return logger[_0x5cef88('0x15c')](util[_0x5cef88('0x1bf')](_0x5cef88('0x1a2'),_0x4728eb['label'])),this['channel'][_0x5cef88('0x1a8')]([_0x4728eb['command'],_0x4728eb[_0x5cef88('0x15a')]]);},AGIVertices[_0x4f5d07('0x86')]['answer']=function(_0x2d59ed){const _0x5af9e1=_0x4f5d07;logger[_0x5af9e1('0x15c')](util[_0x5af9e1('0x1bf')](_0x5af9e1('0xd9'),_0x2d59ed[_0x5af9e1('0xd4')]));if(this['isConfigured'](_0x2d59ed[_0x5af9e1('0x1c5')])){logger[_0x5af9e1('0x15c')](util[_0x5af9e1('0x1bf')](_0x5af9e1('0x7e'),_0x2d59ed[_0x5af9e1('0x1c5')]));const _0x2a3c69=this[_0x5af9e1('0x167')][_0x5af9e1('0x14f')](_0x2d59ed[_0x5af9e1('0x1c5')]);if(_0x2a3c69[_0x5af9e1('0x9e')]===-0x1)return _0x2a3c69;}return this['channel'][_0x5af9e1('0x73')]();},AGIVertices[_0x4f5d07('0x86')]['callback']=function(_0x2fe410){const _0x3e28c8=_0x4f5d07;logger[_0x3e28c8('0x15c')](util[_0x3e28c8('0x1bf')](_0x3e28c8('0xdf'),_0x2fe410[_0x3e28c8('0xd4')]));if(!this['isConfigured'](_0x2fe410[_0x3e28c8('0x5e')]))return this[_0x3e28c8('0x167')][_0x3e28c8('0x16d')](_0x2fe410,_0x3e28c8('0xa9'));return _0x2fe410[_0x3e28c8('0xfa')]=moment(),this[_0x3e28c8('0x114')](_0x2fe410['delay'])&&(_0x2fe410[_0x3e28c8('0xfa')]=moment()[_0x3e28c8('0x168')](_0x2fe410[_0x3e28c8('0x8d')],_0x3e28c8('0x1b4'))),!this[_0x3e28c8('0x114')](_0x2fe410[_0x3e28c8('0x18e')])&&(_0x2fe410[_0x3e28c8('0x18e')]=0x2),this['createCmContact'][_0x3e28c8('0x44')](this,_0x2fe410),this[_0x3e28c8('0x167')]['noop'](util['format'](_0x3e28c8('0x25'),_0x2fe410[_0x3e28c8('0xa5')],_0x2fe410[_0x3e28c8('0x5e')],_0x2fe410[_0x3e28c8('0xfa')]));},AGIVertices[_0x4f5d07('0x86')][_0x4f5d07('0x3b')]=function(_0x5e45ee){const _0x24af3e=_0x4f5d07;logger[_0x24af3e('0x15c')](util['format'](_0x24af3e('0x5'),_0x5e45ee[_0x24af3e('0xd4')]));const _0x6e304b=this[_0x24af3e('0x167')][_0x24af3e('0xbf')](_0x5e45ee['application'],_0x5e45ee[_0x24af3e('0x82')]);if(_0x6e304b[_0x24af3e('0x9e')]===-0x1)return _0x6e304b;return this[_0x24af3e('0x167')][_0x24af3e('0x38')](util[_0x24af3e('0x1bf')](_0x24af3e('0x148'),_0x5e45ee[_0x24af3e('0x7')],_0x5e45ee['options']));},AGIVertices[_0x4f5d07('0x86')]['lumenvoxtts']=function(_0x1f9573){const _0x4e70b6=_0x4f5d07;logger['info'](util[_0x4e70b6('0x1bf')](_0x4e70b6('0xa8'),_0x1f9573[_0x4e70b6('0xd4')]));if(!this[_0x4e70b6('0x114')](_0x1f9573[_0x4e70b6('0xf7')]))return this[_0x4e70b6('0x167')][_0x4e70b6('0x38')](_0x4e70b6('0x1d'));let _0x3ef9d0='\x22'+_0x1f9573[_0x4e70b6('0xf7')]+'\x22';this[_0x4e70b6('0x114')](_0x1f9573[_0x4e70b6('0x82')])&&(_0x3ef9d0+=','+_0x1f9573[_0x4e70b6('0x82')]);const _0x314d35=this['channel'][_0x4e70b6('0xbf')](_0x4e70b6('0x1cd'),_0x3ef9d0);if(_0x314d35[_0x4e70b6('0x9e')]===-0x1)return _0x314d35;return this[_0x4e70b6('0x167')]['noop'](util[_0x4e70b6('0x1bf')](_0x4e70b6('0x104'),_0x3ef9d0));},AGIVertices[_0x4f5d07('0x86')][_0x4f5d07('0x19c')]=function(_0x2cecce){const _0x11fcb8=_0x4f5d07;logger['info'](util[_0x11fcb8('0x1bf')](_0x11fcb8('0xf5'),_0x2cecce[_0x11fcb8('0xd4')]));if(!this[_0x11fcb8('0x114')](_0x2cecce[_0x11fcb8('0xf7')]))return this[_0x11fcb8('0x167')]['noop'](_0x11fcb8('0x1d'));let _0x47790b='\x22'+_0x2cecce[_0x11fcb8('0xf7')]+'\x22';this[_0x11fcb8('0x114')](_0x2cecce[_0x11fcb8('0x82')])&&(_0x47790b+=','+_0x2cecce[_0x11fcb8('0x82')]);const _0x18ac44=this[_0x11fcb8('0x167')][_0x11fcb8('0xbf')](_0x11fcb8('0x1cd'),_0x47790b);if(_0x18ac44[_0x11fcb8('0x9e')]===-0x1)return _0x18ac44;return this['channel'][_0x11fcb8('0x38')](util[_0x11fcb8('0x1bf')](_0x11fcb8('0x104'),_0x47790b));},AGIVertices['prototype'][_0x4f5d07('0xc2')]=function(_0x50df7f){const _0xb09b7b=_0x4f5d07;logger[_0xb09b7b('0x15c')](util[_0xb09b7b('0x1bf')](_0xb09b7b('0x171'),_0x50df7f[_0xb09b7b('0xd4')]));if(!this[_0xb09b7b('0x114')](_0x50df7f[_0xb09b7b('0x163')]))return this['channel'][_0xb09b7b('0x38')](_0xb09b7b('0xc'));let _0x3b7910=_0x50df7f[_0xb09b7b('0x163')];this[_0xb09b7b('0x114')](_0x50df7f[_0xb09b7b('0x82')])&&(_0x3b7910+=','+_0x50df7f[_0xb09b7b('0x82')]);const _0x2545f8=this[_0xb09b7b('0x167')][_0xb09b7b('0xbf')](_0xb09b7b('0x18f'),_0x3b7910);if(_0x2545f8['result']===-0x1)return _0x2545f8;const _0x5a169b=this[_0xb09b7b('0x10a')](_0xb09b7b('0x10f'),_0xb09b7b('0x2d'));if(_0x5a169b[_0xb09b7b('0x9e')]===-0x1)return _0x5a169b;const _0x38a3f1=this['getAndSetVariable'](_0xb09b7b('0x13c'),_0xb09b7b('0x160'));if(_0x38a3f1[_0xb09b7b('0x9e')]===-0x1)return _0x38a3f1;const _0x220c2a=this[_0xb09b7b('0x10a')](_0xb09b7b('0x55'),'LUMENVOX_ASR_INSTANCE');if(_0x220c2a[_0xb09b7b('0x9e')]===-0x1)return _0x220c2a;return this[_0xb09b7b('0x167')][_0xb09b7b('0x38')](util[_0xb09b7b('0x1bf')](_0xb09b7b('0x194'),_0x3b7910));},AGIVertices[_0x4f5d07('0x86')][_0x4f5d07('0x1c8')]=function(_0x2491e3){const _0x40c4bd=_0x4f5d07;logger['info'](util[_0x40c4bd('0x1bf')](_0x40c4bd('0x41'),_0x2491e3['label']));if(!this[_0x40c4bd('0x114')](_0x2491e3[_0x40c4bd('0x163')]))return this[_0x40c4bd('0x167')][_0x40c4bd('0x38')](_0x40c4bd('0xc'));let _0x3ee325=_0x2491e3[_0x40c4bd('0x163')];this[_0x40c4bd('0x114')](_0x2491e3[_0x40c4bd('0x82')])&&(_0x3ee325+=','+_0x2491e3['options']);const _0x3ae306=this[_0x40c4bd('0x167')]['exec'](_0x40c4bd('0x18f'),_0x3ee325);if(_0x3ae306['result']===-0x1)return _0x3ae306;const _0x2ad71d=this[_0x40c4bd('0x10a')]('RECOG_CONFIDENCE()',_0x40c4bd('0xe4'));if(_0x2ad71d['result']===-0x1)return _0x2ad71d;const _0x47cdb1=this[_0x40c4bd('0x10a')](_0x40c4bd('0x13c'),'SESTEK_ASR_TRANSCRIPT');if(_0x47cdb1[_0x40c4bd('0x9e')]===-0x1)return _0x47cdb1;const _0xdee5d2=this[_0x40c4bd('0x10a')](_0x40c4bd('0x55'),_0x40c4bd('0x46'));if(_0xdee5d2[_0x40c4bd('0x9e')]===-0x1)return _0xdee5d2;return this['channel'][_0x40c4bd('0x38')](util[_0x40c4bd('0x1bf')]('Executed\x20command\x20MRCPRecog\x20%s',_0x3ee325));},AGIVertices[_0x4f5d07('0x86')][_0x4f5d07('0x1cf')]=function(_0x7a3c87){const _0x167c76=_0x4f5d07;logger[_0x167c76('0x15c')](util[_0x167c76('0x1bf')](_0x167c76('0x10'),_0x7a3c87[_0x167c76('0xd4')]));if(!this[_0x167c76('0x114')](_0x7a3c87[_0x167c76('0x14c')]))return this[_0x167c76('0x167')]['error'](_0x7a3c87,_0x167c76('0x17b'));const _0x2cb921=this[_0x167c76('0x2c')][_0x167c76('0x44')](this,_0x7a3c87['odbc_id']);if(!_0x2cb921)return this[_0x167c76('0x167')]['error'](_0x7a3c87,_0x167c76('0xbd'));if(!this[_0x167c76('0x114')](_0x7a3c87[_0x167c76('0x142')]))return this[_0x167c76('0x167')][_0x167c76('0x16d')](_0x7a3c87,_0x167c76('0xba'));const _0x26f256=_0x7a3c87['query'][_0x167c76('0x153')](/(\r\n|\n|\r)/gm,'\x20');this['channel'][_0x167c76('0x38')](util[_0x167c76('0x1bf')]('query:\x20%s',_0x26f256));const _0x54eeca=this[_0x167c76('0x165')]['sync'](this,_0x2cb921,_0x26f256);this['createSquareDetailsReport'][_0x167c76('0x44')](this,_0x7a3c87,_0x26f256);if(!this[_0x167c76('0x114')](_0x7a3c87[_0x167c76('0xfb')]))return this['channel'][_0x167c76('0x38')](_0x167c76('0x154'));const _0x463921=this[_0x167c76('0x64')][_0x167c76('0x44')](this,_0x7a3c87[_0x167c76('0xfb')]);if(!_0x463921)return this[_0x167c76('0x167')]['error'](_0x7a3c87,'no\x20variable\x20found');const _0x44caf1=this;return _0x54eeca['forEach'](function(_0x253cdb,_0x30cf9a){const _0x289874=_0x167c76;Object[_0x289874('0xb0')](_0x253cdb)[_0x289874('0xc3')](function(_0x145fa5){const _0x5b8fbf=_0x289874;_0x44caf1['channel'][_0x5b8fbf('0x178')](util[_0x5b8fbf('0x1bf')](_0x5b8fbf('0xbb'),_0x463921,_0x30cf9a,_0x145fa5),_0x253cdb[_0x145fa5]);});}),this[_0x167c76('0x167')][_0x167c76('0x178')](util[_0x167c76('0x1bf')]('%s_ROWS_COUNT',_0x463921),_0x54eeca[_0x167c76('0x12b')]),this[_0x167c76('0x167')][_0x167c76('0x38')](util['format'](_0x167c76('0x123'),_0x463921));},AGIVertices[_0x4f5d07('0x86')][_0x4f5d07('0x58')]=function(_0x35ab18){const _0x13ab2e=_0x4f5d07;logger['debug'](util[_0x13ab2e('0x1bf')](_0x13ab2e('0x12a'),_0x35ab18['label']));if(!this[_0x13ab2e('0x114')](_0x35ab18[_0x13ab2e('0xef')]))return this['channel'][_0x13ab2e('0x16d')](_0x35ab18,_0x13ab2e('0x106'));const _0x1126de=this['getUser'][_0x13ab2e('0x44')](this,_0x35ab18['sip_id']);if(!_0x1126de)return this[_0x13ab2e('0x167')][_0x13ab2e('0x16d')](_0x35ab18,_0x13ab2e('0xf1'));const _0x21ea78=this[_0x13ab2e('0x167')][_0x13ab2e('0xbf')](_0x13ab2e('0x115'),[util['format'](_0x13ab2e('0x62'),_0x1126de),_0x35ab18[_0x13ab2e('0x1c5')],_0x35ab18[_0x13ab2e('0x1c1')],_0x35ab18[_0x13ab2e('0xb1')]]);if(_0x21ea78['result']===-0x1)return _0x21ea78;return this['channel'][_0x13ab2e('0x38')](util[_0x13ab2e('0x1bf')](_0x13ab2e('0xf3'),_0x13ab2e('0x115')));},AGIVertices[_0x4f5d07('0x86')]['dialogflow']=function(_0x4cb545){const _0x4705db=_0x4f5d07;logger[_0x4705db('0x15c')](util[_0x4705db('0x1bf')](_0x4705db('0x19'),_0x4cb545['label']));if(!this['isConfigured'](_0x4cb545[_0x4705db('0x124')]))return this[_0x4705db('0x167')][_0x4705db('0x38')]('no\x20key\x20configured');if(!this[_0x4705db('0x114')](_0x4cb545[_0x4705db('0xf7')]))return this['channel'][_0x4705db('0x38')](_0x4705db('0x1d'));this[_0x4705db('0x167')]['bot']=!![],this[_0x4705db('0xcc')](_0x4cb545),this[_0x4705db('0x79')](_0x4cb545[_0x4705db('0xf7')],'in','',''),this[_0x4705db('0x167')][_0x4705db('0x38')](util[_0x4705db('0x1bf')](_0x4705db('0x22'),_0x4cb545['text']));const _0x4a89bf=this['googleDialogflow']['sync'](this,_0x4cb545);if(_0x4a89bf){for(const _0x4f6ef3 in _0x4a89bf){typeof _0x4a89bf[_0x4f6ef3]!==_0x4705db('0x12c')&&this[_0x4705db('0x167')]['setVariable'](util['format']('DIALOGFLOW_%s',_0x4f6ef3[_0x4705db('0x6b')]()),_0x4a89bf[_0x4f6ef3]);}return this[_0x4705db('0x79')](_0x4a89bf[_0x4705db('0x26')],_0x4705db('0xde'),_0x4705db('0x1c6'),''),this['channel'][_0x4705db('0x38')](util[_0x4705db('0x1bf')](_0x4705db('0xb7'),_0x4a89bf['speech']));}return this['channel'][_0x4705db('0x16d')](_0x4cb545,_0x4705db('0xeb'));},AGIVertices[_0x4f5d07('0x86')]['dialogflowV2']=function(_0x1f2b76){const _0x2232bb=_0x4f5d07;logger[_0x2232bb('0x15c')](util['format'](_0x2232bb('0xdb'),_0x1f2b76[_0x2232bb('0xd4')]));if(!this[_0x2232bb('0x114')](_0x1f2b76[_0x2232bb('0x85')]))return this['channel']['noop'](_0x2232bb('0x188'));if(!this[_0x2232bb('0x114')](_0x1f2b76['client_email']))return this['channel'][_0x2232bb('0x38')]('no\x20client_email\x20configured');if(!this[_0x2232bb('0x114')](_0x1f2b76[_0x2232bb('0x31')]))return this[_0x2232bb('0x167')][_0x2232bb('0x38')](_0x2232bb('0x170'));if(!this[_0x2232bb('0x114')](_0x1f2b76['dialogflowV2_language']))return this[_0x2232bb('0x167')][_0x2232bb('0x38')](_0x2232bb('0x15'));if(!this['isConfigured'](_0x1f2b76[_0x2232bb('0xf7')]))return this['channel']['noop']('no\x20text\x20configured');this[_0x2232bb('0x167')][_0x2232bb('0x15f')]=!![],this[_0x2232bb('0xcc')](_0x1f2b76),this['createSquareMessage'](_0x1f2b76[_0x2232bb('0xf7')],'in','',''),this[_0x2232bb('0x167')][_0x2232bb('0x38')](util[_0x2232bb('0x1bf')](_0x2232bb('0x20'),_0x1f2b76['text']));const _0x2dfebf=this[_0x2232bb('0x19f')][_0x2232bb('0x44')](this,_0x1f2b76);if(_0x2dfebf){for(const _0x7ccca8 in _0x2dfebf){typeof _0x2dfebf[_0x7ccca8]!=='undefined'&&(_0x7ccca8!==_0x2232bb('0x176')&&this['channel'][_0x2232bb('0x178')](util['format'](_0x2232bb('0x12'),_0x7ccca8[_0x2232bb('0x6b')]()),_0x2dfebf[_0x7ccca8]));}return this[_0x2232bb('0x79')](_0x2dfebf['speech'],'out','dialogflowV2',_0x2dfebf['providerResponse']),this[_0x2232bb('0x167')][_0x2232bb('0x38')](util['format']('DialogflowV2\x20Result\x20%s',_0x2dfebf['speech']));}return this[_0x2232bb('0x167')][_0x2232bb('0x16d')](_0x1f2b76,_0x2232bb('0x54'));},AGIVertices['prototype'][_0x4f5d07('0x113')]=function(_0x38dbf2){const _0x1451a5=_0x4f5d07;logger[_0x1451a5('0x15c')](util[_0x1451a5('0x1bf')]('Enter\x20in\x20SESTEKNDA\x20(%s)\x20block',_0x38dbf2[_0x1451a5('0xd4')]));if(!this[_0x1451a5('0x114')](_0x38dbf2[_0x1451a5('0x91')]))return this['channel'][_0x1451a5('0x38')](_0x1451a5('0x119'));if(!this[_0x1451a5('0x114')](_0x38dbf2[_0x1451a5('0x35')]))return this[_0x1451a5('0x167')][_0x1451a5('0x38')]('no\x20username\x20configured');if(!this[_0x1451a5('0x114')](_0x38dbf2['password']))return this[_0x1451a5('0x167')]['noop']('no\x20password\x20configured');if(!this[_0x1451a5('0x114')](_0x38dbf2[_0x1451a5('0x173')]))return this[_0x1451a5('0x167')]['noop'](_0x1451a5('0x1d'));this[_0x1451a5('0x167')]['bot']=!![],this['createSquareDetailsReport'](_0x38dbf2),this[_0x1451a5('0x79')](_0x38dbf2['text'],'in','',''),this[_0x1451a5('0x167')][_0x1451a5('0x38')](util[_0x1451a5('0x1bf')](_0x1451a5('0x13d'),_0x38dbf2['text']));const _0x187f26=this[_0x1451a5('0x175')][_0x1451a5('0x44')](this,_0x38dbf2);if(_0x187f26){for(const _0x3dc4c5 in _0x187f26){typeof _0x187f26[_0x3dc4c5]!==_0x1451a5('0x12c')&&this[_0x1451a5('0x167')][_0x1451a5('0x178')](util[_0x1451a5('0x1bf')](_0x1451a5('0x18d'),_0x3dc4c5[_0x1451a5('0x6b')]()),_0x187f26[_0x3dc4c5]);}this[_0x1451a5('0x79')](_0x187f26['speech'],_0x1451a5('0xde'),_0x1451a5('0x113'),'');if(_0x187f26[_0x1451a5('0x129')]){this[_0x1451a5('0x167')][_0x1451a5('0x38')](util[_0x1451a5('0x1bf')](_0x1451a5('0x14d'),_0x187f26[_0x1451a5('0x129')]));const _0x373abc=this[_0x1451a5('0x167')][_0x1451a5('0x23')](_0x187f26[_0x1451a5('0x129')]);try{fs[_0x1451a5('0xa3')](_0x187f26[_0x1451a5('0x129')]+'.wav');}catch(_0xdba35b){logger['error'](_0xdba35b);}return _0x373abc;}else return this[_0x1451a5('0x167')]['noop'](util['format'](_0x1451a5('0x132'),_0x187f26[_0x1451a5('0x26')]));}return this[_0x1451a5('0x167')][_0x1451a5('0x16d')](_0x38dbf2,_0x1451a5('0xda'));},AGIVertices[_0x4f5d07('0x86')][_0x4f5d07('0xe5')]=function(_0x565722){const _0x5eb97d=_0x4f5d07;return logger['info'](util[_0x5eb97d('0x1bf')]('Enter\x20in\x20END\x20(%s)\x20block',_0x565722[_0x5eb97d('0xd4')])),this[_0x5eb97d('0x167')][_0x5eb97d('0x38')]('end');},AGIVertices[_0x4f5d07('0x86')][_0x4f5d07('0x13e')]=function(_0x2545a2){const _0xab7b5f=_0x4f5d07;logger['info'](util[_0xab7b5f('0x1bf')](_0xab7b5f('0x98'),_0x2545a2[_0xab7b5f('0xd4')]));let _0x500a27='';if(_0x2545a2[_0xab7b5f('0x181')]){if(!this['isConfigured'](_0x2545a2[_0xab7b5f('0x181')]))return this['channel'][_0xab7b5f('0x16d')](_0x2545a2,'no\x20trunk\x20selected');else{const _0x44457c=parseInt(_0x2545a2[_0xab7b5f('0x181')],0xa);if(isNaN(_0x44457c))_0x500a27=_0x2545a2[_0xab7b5f('0x181')];else{_0x500a27=this[_0xab7b5f('0xd8')][_0xab7b5f('0x44')](this,_0x2545a2[_0xab7b5f('0x181')]);if(!_0x500a27)return this[_0xab7b5f('0x167')][_0xab7b5f('0x16d')](_0x2545a2,'no\x20trunk\x20found');}}}else{if(_0x2545a2[_0xab7b5f('0x10c')])_0x500a27=_0x2545a2['trunk_name'];else return this[_0xab7b5f('0x167')][_0xab7b5f('0x16d')](_0x2545a2,_0xab7b5f('0x158'));}const _0x36b008=this['channel'][_0xab7b5f('0xbf')](_0xab7b5f('0x115'),[util['format']('SIP/%s/%s',_0x500a27,_0x2545a2[_0xab7b5f('0xa5')]),_0x2545a2['timeout'],_0x2545a2[_0xab7b5f('0x1c1')],_0x2545a2[_0xab7b5f('0xb1')]]);if(_0x36b008[_0xab7b5f('0x9e')]===-0x1)return _0x36b008;return this[_0xab7b5f('0x167')][_0xab7b5f('0x38')](util[_0xab7b5f('0x1bf')]('Executed\x20command\x20%s','DIAL'));},AGIVertices[_0x4f5d07('0x86')][_0x4f5d07('0x10b')]=function(_0x1038b2){const _0x24cb9f=_0x4f5d07;return logger[_0x24cb9f('0x15c')](util['format']('Enter\x20in\x20FINALLY\x20(%s)\x20block',_0x1038b2[_0x24cb9f('0xd4')])),this[_0x24cb9f('0x167')][_0x24cb9f('0x38')]('finally');},AGIVertices[_0x4f5d07('0x86')][_0x4f5d07('0x1c7')]=function(_0x21f490){const _0x4b0b81=_0x4f5d07;logger['info'](util[_0x4b0b81('0x1bf')]('Enter\x20in\x20GETDIGITS\x20(%s)\x20block',_0x21f490[_0x4b0b81('0xd4')]));if(_0x21f490[_0x4b0b81('0x65')]===0x0)return this[_0x4b0b81('0x5d')](_0x21f490);_0x21f490['retry']-=0x1;if(!this[_0x4b0b81('0x114')](_0x21f490['file_id']))return this[_0x4b0b81('0x167')][_0x4b0b81('0x16d')](_0x21f490,_0x4b0b81('0x99'));const _0x7ccf2=this['getSound'][_0x4b0b81('0x44')](this,_0x21f490['file_id']);if(!_0x7ccf2)return this[_0x4b0b81('0x167')][_0x4b0b81('0x16d')](_0x21f490,_0x4b0b81('0x16e'));if(!this[_0x4b0b81('0x114')](_0x21f490['variable_id']))return this[_0x4b0b81('0x167')][_0x4b0b81('0x16d')](_0x4b0b81('0x154'));const _0x2fc852=this[_0x4b0b81('0x167')][_0x4b0b81('0x138')](_0x7ccf2,_0x21f490[_0x4b0b81('0xcb')],_0x21f490['maxdigit']),_0x2ca81a=_0x2fc852[_0x4b0b81('0x9e')]?_0x2fc852['result'][_0x4b0b81('0x191')]():'';logger[_0x4b0b81('0x15c')](_0x4b0b81('0xf8'),JSON['stringify'](_0x2fc852));if(_0x2fc852[_0x4b0b81('0x9e')]===-0x1)return this[_0x4b0b81('0xcc')][_0x4b0b81('0x44')](this,_0x21f490,_0x2ca81a),_0x2fc852;else _0x2fc852[_0x4b0b81('0x63')]===_0x4b0b81('0x1c5')?_0x2fc852[_0x4b0b81('0x9e')]=_0x2ca81a['length']>=parseInt(_0x21f490[_0x4b0b81('0x1b2')])?'x':'i':_0x2fc852[_0x4b0b81('0x9e')]=_0x2ca81a[_0x4b0b81('0x12b')]>=parseInt(_0x21f490['mindigit'])&&_0x2ca81a[_0x4b0b81('0x12b')]<=parseInt(_0x21f490[_0x4b0b81('0x3c')])?'x':'i';const _0x4c7292=this[_0x4b0b81('0x64')][_0x4b0b81('0x44')](this,_0x21f490['variable_id']);if(!_0x4c7292)return this['channel'][_0x4b0b81('0x16d')](_0x21f490,_0x4b0b81('0x42'));this[_0x4b0b81('0x167')]['setVariable'](_0x4c7292,_0x2ca81a);if(this[_0x4b0b81('0x114')](_0x21f490[_0x4b0b81('0x189')])){const _0x2f1a66=parseInt(_0x21f490[_0x4b0b81('0x189')],0xa),_0x5d7f54=rs[_0x4b0b81('0xb2')]({'charset':'*','length':_0x2f1a66}),_0x25c1a7=_0x2ca81a[_0x4b0b81('0x12b')];_0x25c1a7>0x0?_0x25c1a7>_0x2f1a66?this['createSquareDetailsReport'][_0x4b0b81('0x44')](this,_0x21f490,_0x21f490[_0x4b0b81('0xb6')]==='first'?_0x5d7f54+_0x2ca81a[_0x4b0b81('0x89')](_0x2f1a66):_0x2ca81a['substr'](0x0,_0x25c1a7-_0x2f1a66)+_0x5d7f54):this[_0x4b0b81('0xcc')][_0x4b0b81('0x44')](this,_0x21f490,rs['generate']({'charset':'*','length':_0x25c1a7})):this[_0x4b0b81('0xcc')][_0x4b0b81('0x44')](this,_0x21f490,'');}else this[_0x4b0b81('0xcc')][_0x4b0b81('0x44')](this,_0x21f490,_0x2ca81a);return _0x2fc852;},AGIVertices['prototype']['getsecretdigits']=function(_0x108681){const _0x414ccc=_0x4f5d07;return logger[_0x414ccc('0x15c')](util[_0x414ccc('0x1bf')]('Enter\x20in\x20GETSECRETDIGITS\x20(%s)\x20block',_0x108681['label'])),this['getdigits'](_0x108681);},AGIVertices['prototype']['goal']=function(_0x5cd266){const _0x828aee=_0x4f5d07;return logger[_0x828aee('0x15c')](util[_0x828aee('0x1bf')](_0x828aee('0x72'),_0x5cd266[_0x828aee('0xd4')])),this[_0x828aee('0xcc')][_0x828aee('0x44')](this,_0x5cd266,_0x5cd266['goalname']),this[_0x828aee('0x167')][_0x828aee('0x38')](util[_0x828aee('0x1bf')](_0x828aee('0xe9'),_0x5cd266['goalname']));},AGIVertices[_0x4f5d07('0x86')][_0x4f5d07('0x101')]=function(_0x54a867){const _0x576fe6=_0x4f5d07;logger['info'](util[_0x576fe6('0x1bf')](_0x576fe6('0x135'),_0x54a867[_0x576fe6('0xd4')]));if(!this[_0x576fe6('0x114')](_0x54a867[_0x576fe6('0x1b0')])||!this[_0x576fe6('0x114')](_0x54a867[_0x576fe6('0x195')]))return this[_0x576fe6('0x167')][_0x576fe6('0x38')](_0x576fe6('0x152'));if(!this['isConfigured'](_0x54a867[_0x576fe6('0xf7')]))return this[_0x576fe6('0x167')]['noop'](_0x576fe6('0x1d'));this[_0x576fe6('0x167')][_0x576fe6('0x38')](util[_0x576fe6('0x1bf')](_0x576fe6('0x95'),_0x54a867['text']));const _0x12f2d8=this['awsPolly'][_0x576fe6('0x44')](this,_0x54a867);if(_0x12f2d8){this[_0x576fe6('0x167')][_0x576fe6('0x38')](util[_0x576fe6('0x1bf')](_0x576fe6('0x155'),_0x12f2d8));const _0x20983d=this[_0x576fe6('0x167')][_0x576fe6('0x23')](_0x12f2d8);try{fs[_0x576fe6('0xa3')](_0x12f2d8+'.wav');}catch(_0x297ecd){logger[_0x576fe6('0x16d')](_0x297ecd);}return _0x20983d;}return this[_0x576fe6('0x167')][_0x576fe6('0x16d')](_0x54a867,_0x576fe6('0xbc'));},AGIVertices[_0x4f5d07('0x86')][_0x4f5d07('0x1b1')]=function(_0x156aa1){const _0x304059=_0x4f5d07;logger[_0x304059('0x15c')](util['format'](_0x304059('0x9f'),_0x156aa1[_0x304059('0xd4')]));if(!this['isConfigured'](_0x156aa1[_0x304059('0x1b0')])||!this[_0x304059('0x114')](_0x156aa1[_0x304059('0x195')]))return this['channel'][_0x304059('0x38')](_0x304059('0x152'));if(!this['isConfigured'](_0x156aa1[_0x304059('0x1b')]))return this[_0x304059('0x167')][_0x304059('0x38')]('no\x20bot\x20name\x20configured');if(!this[_0x304059('0x114')](_0x156aa1[_0x304059('0xf7')]))return this['channel'][_0x304059('0x38')]('no\x20text\x20configured');this[_0x304059('0x167')][_0x304059('0x15f')]=!![],this[_0x304059('0xcc')](_0x156aa1),this[_0x304059('0x79')](_0x156aa1[_0x304059('0xf7')],'in','',''),this[_0x304059('0x167')][_0x304059('0x38')](util[_0x304059('0x1bf')](_0x304059('0x1a6'),_0x156aa1['text']));const _0xac3f7=this['awsLex'][_0x304059('0x44')](this,_0x156aa1);if(_0xac3f7){for(const _0xe9edeb in _0xac3f7){typeof _0xac3f7[_0xe9edeb]!==_0x304059('0x12c')&&_['isString'](_0xac3f7[_0xe9edeb])&&this['channel'][_0x304059('0x178')](util[_0x304059('0x1bf')](_0x304059('0xa2'),_0xe9edeb['toUpperCase']()),_0xac3f7[_0xe9edeb]);}return _[_0x304059('0x150')](_0xac3f7['message'])?this[_0x304059('0x167')]['noop'](_0x304059('0x87')):(this[_0x304059('0x79')](_0xac3f7[_0x304059('0x94')],_0x304059('0xde'),'amazonlex',''),this[_0x304059('0x167')]['noop'](util['format'](_0x304059('0x6a'),_0xac3f7[_0x304059('0x94')])));}return this[_0x304059('0x167')]['error'](_0x156aa1,'Amazon\x20Lex\x20is\x20unreachable');},AGIVertices[_0x4f5d07('0x86')]['googleasr']=function(_0x2bf139){const _0x2ce4a0=_0x4f5d07;logger[_0x2ce4a0('0x15c')](util[_0x2ce4a0('0x1bf')]('Enter\x20in\x20GOOGLEASR\x20(%s)\x20block\x20%s',_0x2bf139['label'],_0x2bf139['timeout']));if(!this[_0x2ce4a0('0x114')](_0x2bf139['key']))return this[_0x2ce4a0('0x167')]['noop'](_0x2ce4a0('0x166'));const _0x5b10f8='wav',_0x54c9be=util[_0x2ce4a0('0x1bf')]('%s/recordings/%s',FILES_PATH,rs['generate'](0x4)),_0x5d4726=util[_0x2ce4a0('0x1bf')](_0x2ce4a0('0x169'),_0x54c9be,_0x5b10f8);let _0x4b1cc5=!![];_0x2bf139[_0x2ce4a0('0x6e')]==='NOBEEP'&&(_0x4b1cc5=![]);const _0x64de80=this[_0x2ce4a0('0x167')]['recordFile'](_0x54c9be,_0x5b10f8,_0x2bf139['intKey'],_0x2bf139[_0x2ce4a0('0x1c5')],undefined,_0x4b1cc5);if(_0x64de80[_0x2ce4a0('0x9e')]!==-0x1){this[_0x2ce4a0('0x167')][_0x2ce4a0('0x38')](util[_0x2ce4a0('0x1bf')](_0x2ce4a0('0x17c'),_0x5d4726));const _0x36011f=this[_0x2ce4a0('0x5f')]['sync'](this,_0x2bf139,_0x5d4726);if(_0x36011f){for(const _0x41db74 in _0x36011f){typeof _0x36011f[_0x41db74]!==_0x2ce4a0('0x12c')&&this[_0x2ce4a0('0x167')][_0x2ce4a0('0x178')](util[_0x2ce4a0('0x1bf')](_0x2ce4a0('0x52'),_0x41db74[_0x2ce4a0('0x6b')]()),_0x36011f[_0x41db74]);}return this['channel'][_0x2ce4a0('0x38')](util['format'](_0x2ce4a0('0xb9'),JSON[_0x2ce4a0('0x161')](_0x36011f)));}}return _0x64de80;},AGIVertices[_0x4f5d07('0x86')][_0x4f5d07('0x1d1')]=function(_0x4c8f00){const _0x3f97d4=_0x4f5d07;logger[_0x3f97d4('0x15c')](util[_0x3f97d4('0x1bf')](_0x3f97d4('0x9b'),_0x4c8f00[_0x3f97d4('0xd4')]));if(!this['isConfigured'](_0x4c8f00[_0x3f97d4('0x37')]))return this[_0x3f97d4('0x167')][_0x3f97d4('0x38')](_0x3f97d4('0x4'));if(!this['isConfigured'](_0x4c8f00[_0x3f97d4('0x16a')]))return this[_0x3f97d4('0x167')][_0x3f97d4('0x38')](_0x3f97d4('0x184'));const _0x1acb42=_0x3f97d4('0x162'),_0x3d71f0=util[_0x3f97d4('0x1bf')](_0x3f97d4('0x149'),FILES_PATH,rs['generate'](0x4)),_0x173c7c=util[_0x3f97d4('0x1bf')](_0x3f97d4('0x169'),_0x3d71f0,_0x1acb42);let _0xe2eb01=!![];_0x4c8f00['beep']===_0x3f97d4('0x17f')&&(_0xe2eb01=![]);const _0x39f622=this[_0x3f97d4('0x167')][_0x3f97d4('0x1ac')](_0x3d71f0,_0x1acb42,_0x4c8f00['intKey'],_0x4c8f00[_0x3f97d4('0x1c5')],undefined,_0xe2eb01);if(_0x39f622[_0x3f97d4('0x9e')]!==-0x1){this[_0x3f97d4('0x167')]['noop'](util[_0x3f97d4('0x1bf')](_0x3f97d4('0x12e'),_0x173c7c));const _0x6134f0=this['tildeASR'][_0x3f97d4('0x44')](this,_0x4c8f00,_0x173c7c);if(_0x6134f0){for(const _0x555592 in _0x6134f0){typeof _0x6134f0[_0x555592]!=='undefined'&&this['channel'][_0x3f97d4('0x178')](util[_0x3f97d4('0x1bf')]('TILDE_ASR_%s',_0x555592[_0x3f97d4('0x6b')]()),_0x6134f0[_0x555592]);}return this['channel'][_0x3f97d4('0x38')](util[_0x3f97d4('0x1bf')](_0x3f97d4('0xb'),JSON[_0x3f97d4('0x161')](_0x6134f0)));}}return _0x39f622;},AGIVertices[_0x4f5d07('0x86')][_0x4f5d07('0x69')]=function(_0x537d6d){const _0x25a51f=_0x4f5d07;return logger['info'](util[_0x25a51f('0x1bf')](_0x25a51f('0x0'),_0x537d6d[_0x25a51f('0xd4')])),this[_0x25a51f('0x167')][_0x25a51f('0x1ad')](_0x537d6d[_0x25a51f('0x111')],_0x537d6d[_0x25a51f('0xa4')],_0x537d6d[_0x25a51f('0x1bd')]);},AGIVertices[_0x4f5d07('0x86')][_0x4f5d07('0xea')]=function(_0x59c96e){const _0x42b813=_0x4f5d07;logger[_0x42b813('0x15c')](util['format'](_0x42b813('0xab'),_0x59c96e[_0x42b813('0xd4')]));if(!this[_0x42b813('0x114')](_0x59c96e['condition']))return this[_0x42b813('0x167')][_0x42b813('0x16d')](_0x59c96e,_0x42b813('0xe1'));try{const _0x451fcd=eval(_0x59c96e[_0x42b813('0x144')])?'true':_0x42b813('0x1a9');return this['channel'][_0x42b813('0x38')](util[_0x42b813('0x1bf')](_0x42b813('0x109'),_0x59c96e[_0x42b813('0x144')],_0x451fcd)),{'code':0xc8,'result':_0x451fcd};}catch(_0x4ad5da){return{'code':0xc8,'result':_0x42b813('0x1a9')};}},AGIVertices[_0x4f5d07('0x86')][_0x4f5d07('0xe8')]=function(_0x5d3bbb){const _0x471673=_0x4f5d07;logger['info'](util[_0x471673('0x1bf')]('Enter\x20in\x20GOTOIFTIME\x20(%s)\x20block',_0x5d3bbb[_0x471673('0xd4')]));if(!this[_0x471673('0x114')](_0x5d3bbb['interval_id']))return this['channel'][_0x471673('0x16d')](_0x5d3bbb,_0x471673('0xe7'));const _0xba7216=this['getIntervals'][_0x471673('0x44')](this,_0x5d3bbb[_0x471673('0x1d5')]);if(!_0xba7216)return this[_0x471673('0x167')][_0x471673('0x16d')](_0x5d3bbb,_0x471673('0x140'));for(let _0x5a7736=0x0;_0x5a7736<_0xba7216[_0x471673('0x12b')];_0x5a7736+=0x1){const _0x180bac=this[_0x471673('0x167')][_0x471673('0x64')](util['format'](_0x471673('0x15b'),_0xba7216[_0x5a7736]));if(_0x180bac['result']===-0x1)return _0x180bac;logger[_0x471673('0x15c')](util['format'](_0x471673('0x156'),_0xba7216[_0x5a7736],_0x180bac['extra']));if(_0x180bac[_0x471673('0x63')]===_0x471673('0xc1'))return logger[_0x471673('0x15c')](util[_0x471673('0x1bf')](_0x471673('0x156'),_0xba7216[_0x5a7736],_0x471673('0xc1'))),this['channel'][_0x471673('0x38')](util[_0x471673('0x1bf')](_0x471673('0x156'),_0xba7216[_0x5a7736],_0x471673('0xc1'))),{'code':0xc8,'result':'true'};else logger[_0x471673('0x15c')](util['format'](_0x471673('0x156'),_0xba7216[_0x5a7736],'false')),this[_0x471673('0x167')][_0x471673('0x38')](util[_0x471673('0x1bf')](_0x471673('0x156'),_0xba7216[_0x5a7736],_0x471673('0x1a9')));}return{'code':0xc8,'result':_0x471673('0x1a9')};},AGIVertices[_0x4f5d07('0x86')][_0x4f5d07('0x107')]=function(_0x17095c){const _0x39483e=_0x4f5d07;return logger[_0x39483e('0x15c')](util['format'](_0x39483e('0x88'),_0x17095c[_0x39483e('0xd4')])),this[_0x39483e('0x167')]['hangup']();},AGIVertices['prototype']['ispeechasr']=function(_0xb1ad09){const _0x914396=_0x4f5d07;logger['info'](util[_0x914396('0x1bf')]('Enter\x20in\x20ISPEECHASR\x20(%s)\x20block',_0xb1ad09['label']));if(!this[_0x914396('0x114')](_0xb1ad09['key']))return this[_0x914396('0x167')][_0x914396('0x38')](_0x914396('0x166'));const _0x4cdbb8=_0x914396('0x162'),_0x34d13a=util['format'](_0x914396('0x149'),FILES_PATH,rs[_0x914396('0xb2')](0x4)),_0x2e211c=util[_0x914396('0x1bf')]('%s.%s',_0x34d13a,_0x4cdbb8);let _0xb8dae9=!![];_0xb1ad09[_0x914396('0x6e')]==='NOBEEP'&&(_0xb8dae9=![]);const _0x45fd0c=this[_0x914396('0x167')][_0x914396('0x1ac')](_0x34d13a,_0x4cdbb8,_0xb1ad09[_0x914396('0x8b')],_0xb1ad09[_0x914396('0x1c5')],undefined,_0xb8dae9);if(_0x45fd0c[_0x914396('0x9e')]!==-0x1){this[_0x914396('0x167')][_0x914396('0x38')](util[_0x914396('0x1bf')](_0x914396('0x120'),_0x2e211c));const _0x92e791=this[_0x914396('0x121')][_0x914396('0x44')](this,_0xb1ad09,_0x2e211c);if(_0x92e791){for(const _0x52fd19 in _0x92e791){typeof _0x92e791[_0x52fd19]!==_0x914396('0x12c')&&this['channel']['setVariable'](util['format'](_0x914396('0x33'),_0x52fd19[_0x914396('0x6b')]()),_0x92e791[_0x52fd19]);}return this['channel']['noop'](util[_0x914396('0x1bf')](_0x914396('0x11e'),JSON[_0x914396('0x161')](_0x92e791)));}}return _0x45fd0c;},AGIVertices[_0x4f5d07('0x86')]['ispeechtts']=function(_0x322a80){const _0x55ee93=_0x4f5d07;logger[_0x55ee93('0x15c')](util['format'](_0x55ee93('0x15e'),_0x322a80[_0x55ee93('0xd4')]));if(!this[_0x55ee93('0x114')](_0x322a80[_0x55ee93('0x124')]))return this[_0x55ee93('0x167')][_0x55ee93('0x38')](_0x55ee93('0x166'));if(!this['isConfigured'](_0x322a80[_0x55ee93('0xf7')]))return this[_0x55ee93('0x167')][_0x55ee93('0x38')](_0x55ee93('0x1d'));this['channel']['noop'](util[_0x55ee93('0x1bf')]('Trying\x20ispeech\x20TTS\x20%s',_0x322a80[_0x55ee93('0xf7')]));const _0x28b433=this[_0x55ee93('0x1ba')][_0x55ee93('0x44')](this,_0x322a80);if(_0x28b433){this[_0x55ee93('0x167')][_0x55ee93('0x38')](util[_0x55ee93('0x1bf')](_0x55ee93('0x120'),_0x28b433));const _0x2817f1=this[_0x55ee93('0x167')]['streamFile'](_0x28b433,_0x322a80['intKey']);try{fs[_0x55ee93('0xa3')](_0x28b433+'.wav');}catch(_0x5dee7f){logger['error'](_0x5dee7f);}return _0x2817f1;}return this['channel'][_0x55ee93('0x16d')](_0x322a80,_0x55ee93('0x27'));},AGIVertices[_0x4f5d07('0x86')][_0x4f5d07('0x108')]=function(_0x5acb25){const _0x6966e=_0x4f5d07;logger[_0x6966e('0x15c')](util[_0x6966e('0x1bf')](_0x6966e('0x4b'),_0x5acb25['label']));if(!this[_0x6966e('0x114')](_0x5acb25[_0x6966e('0xbe')]))return this[_0x6966e('0x167')][_0x6966e('0x16d')](_0x5acb25,_0x6966e('0x1d4'));logger[_0x6966e('0x15c')](util[_0x6966e('0x1bf')](_0x6966e('0xb8'),this[_0x6966e('0x167')][_0x6966e('0x11c')],_0x5acb25[_0x6966e('0xbe')]));const _0x49bfa0=this[_0x6966e('0x131')][_0x6966e('0x44')](this,_0x5acb25[_0x6966e('0xbe')]);return _0x49bfa0?(logger[_0x6966e('0x15c')](util[_0x6966e('0x1bf')](_0x6966e('0x141'),this[_0x6966e('0x167')][_0x6966e('0x11c')],_0x5acb25['findBy'])),this[_0x6966e('0x167')][_0x6966e('0x38')](util[_0x6966e('0x1bf')](_0x6966e('0x141'),this[_0x6966e('0x167')][_0x6966e('0x11c')],_0x5acb25[_0x6966e('0xbe')])),{'code':0xc8,'result':_0x6966e('0x30')}):(logger['info'](util[_0x6966e('0x1bf')]('AGENT\x20%s\x20NOT\x20FOUND\x20BY',this[_0x6966e('0x167')]['callerid'],_0x5acb25[_0x6966e('0xbe')])),this['channel']['noop'](util[_0x6966e('0x1bf')]('AGENT\x20%s\x20NOT\x20FOUND\x20BY',this[_0x6966e('0x167')][_0x6966e('0x11c')],_0x5acb25[_0x6966e('0xbe')])),{'code':0xc8,'result':_0x6966e('0x192')});},AGIVertices[_0x4f5d07('0x86')][_0x4f5d07('0x1c0')]=function(_0x3d022f){const _0x13fb39=_0x4f5d07;logger[_0x13fb39('0x15c')](util[_0x13fb39('0x1bf')](_0x13fb39('0x127'),_0x3d022f['label']));if(!this[_0x13fb39('0x114')](_0x3d022f[_0x13fb39('0xbe')]))return this[_0x13fb39('0x167')]['error'](_0x3d022f,_0x13fb39('0x1d4'));logger[_0x13fb39('0x15c')](util['format'](_0x13fb39('0xb8'),this[_0x13fb39('0x167')][_0x13fb39('0x11c')],_0x3d022f['findBy']));const _0x44e84f=this[_0x13fb39('0x57')][_0x13fb39('0x44')](this,_0x3d022f[_0x13fb39('0xbe')]);return _0x44e84f?(logger['info'](util[_0x13fb39('0x1bf')]('AGENT\x20%s\x20FOUND\x20BY',this[_0x13fb39('0x167')][_0x13fb39('0x11c')],_0x3d022f[_0x13fb39('0xbe')])),this['channel'][_0x13fb39('0x38')](util[_0x13fb39('0x1bf')](_0x13fb39('0x141'),this['channel']['callerid'],_0x3d022f['findBy'])),{'code':0xc8,'result':_0x13fb39('0x30')}):(logger[_0x13fb39('0x15c')](util[_0x13fb39('0x1bf')](_0x13fb39('0x47'),this[_0x13fb39('0x167')]['callerid'],_0x3d022f['findBy'])),this[_0x13fb39('0x167')][_0x13fb39('0x38')](util['format'](_0x13fb39('0x47'),this[_0x13fb39('0x167')][_0x13fb39('0x11c')],_0x3d022f['findBy'])),{'code':0xc8,'result':_0x13fb39('0x192')});},AGIVertices[_0x4f5d07('0x86')][_0x4f5d07('0x130')]=function(_0x1d1f2f){const _0x29f70a=_0x4f5d07;logger['info'](util[_0x29f70a('0x1bf')](_0x29f70a('0x80'),_0x1d1f2f[_0x29f70a('0xd4')]));if(!this['isConfigured'](_0x1d1f2f[_0x29f70a('0x9a')]))return this['channel'][_0x29f70a('0x16d')](_0x1d1f2f,_0x29f70a('0x1c4'));this[_0x29f70a('0x167')][_0x29f70a('0x38')](util[_0x29f70a('0x1bf')]('math\x20%s',_0x1d1f2f['operation']));const _0xdb755e=eval(_0x1d1f2f[_0x29f70a('0x9a')]);if(!this[_0x29f70a('0x114')](_0x1d1f2f[_0x29f70a('0xfb')]))return this[_0x29f70a('0x167')]['noop'](_0x29f70a('0x154'));const _0x5f0d2b=this['getVariable'][_0x29f70a('0x44')](this,_0x1d1f2f['variable_id']);if(!_0x5f0d2b)return this[_0x29f70a('0x167')]['error'](_0x1d1f2f,_0x29f70a('0x42'));if(_[_0x29f70a('0xe')](_0xdb755e)){const _0x5af6b5=this;return _0xdb755e[_0x29f70a('0xc3')](function(_0x3f3eb8,_0x5c1857){const _0x333f33=_0x29f70a;_0x5af6b5[_0x333f33('0x167')][_0x333f33('0x178')](util[_0x333f33('0x1bf')](_0x333f33('0x8a'),_0x5f0d2b,_0x5c1857),_0x3f3eb8);}),this[_0x29f70a('0x167')][_0x29f70a('0x38')](util['format'](_0x29f70a('0x199'),_0x5f0d2b));}else return this[_0x29f70a('0x167')][_0x29f70a('0x178')](_0x5f0d2b,_0xdb755e);},AGIVertices[_0x4f5d07('0x86')][_0x4f5d07('0x60')]=function(_0xeab294){const _0xe30764=_0x4f5d07;logger['info'](util['format'](_0xe30764('0x39'),_0xeab294[_0xe30764('0xd4')]));if(_0xeab294[_0xe30764('0x65')]===0x0)return this[_0xe30764('0x5d')](_0xeab294);_0xeab294[_0xe30764('0x65')]-=0x1;if(!this[_0xe30764('0x114')](_0xeab294[_0xe30764('0x21')]))return this['channel'][_0xe30764('0x16d')](_0xeab294,'no\x20file\x20audio\x20selected');const _0x569d26=this[_0xe30764('0xd1')][_0xe30764('0x44')](this,_0xeab294[_0xe30764('0x21')]);if(!_0x569d26)return this['channel'][_0xe30764('0x16d')](_0xeab294,_0xe30764('0x16e'));const _0x4963d2=this[_0xe30764('0x167')][_0xe30764('0x138')](_0x569d26,_0xeab294[_0xe30764('0xcb')],_0xeab294[_0xe30764('0x16')]);let _0x34de4c=_0x4963d2[_0xe30764('0x9e')];if(_0x4963d2[_0xe30764('0x9e')]===-0x1)return this[_0xe30764('0xcc')][_0xe30764('0x44')](this,_0xeab294,'-1'),_0x4963d2;else{if(_0x4963d2['extra']===_0xe30764('0x1c5'))_0x4963d2[_0xe30764('0x9e')]=_0x4963d2[_0xe30764('0x9e')]['length']>0x0?_0x4963d2['result']:'t';else _['isEmpty'](_0x4963d2[_0xe30764('0x9e')])&&(_0x4963d2[_0xe30764('0x9e')]='#',_0x34de4c='#');}if(!this[_0xe30764('0x114')](_0xeab294[_0xe30764('0xfb')]))this[_0xe30764('0x167')][_0xe30764('0x38')](_0xe30764('0x154'));else{const _0x5be2a7=this[_0xe30764('0x64')]['sync'](this,_0xeab294['variable_id']);if(!_0x5be2a7)return this[_0xe30764('0x167')][_0xe30764('0x16d')](_0xeab294,_0xe30764('0x42'));this['channel'][_0xe30764('0x178')](_0x5be2a7,_0x34de4c);}return this[_0xe30764('0xcc')][_0xe30764('0x44')](this,_0xeab294,_0x34de4c),_0x4963d2;},AGIVertices[_0x4f5d07('0x86')]['noop']=function(_0x4b62a5){const _0x237bcc=_0x4f5d07;return logger['info'](util[_0x237bcc('0x1bf')](_0x237bcc('0x9'),_0x4b62a5[_0x237bcc('0xd4')])),this[_0x237bcc('0x167')]['noop'](_0x4b62a5['output']||_0x4b62a5[_0x237bcc('0xd4')]);},AGIVertices[_0x4f5d07('0x86')][_0x4f5d07('0x32')]=function(_0x4d60dc){const _0x53592e=_0x4f5d07;logger[_0x53592e('0x15c')](util['format'](_0x53592e('0xae'),_0x4d60dc[_0x53592e('0xd4')]));if(!this[_0x53592e('0x114')](_0x4d60dc[_0x53592e('0xbe')]))return this[_0x53592e('0x167')][_0x53592e('0x16d')](_0x4d60dc,_0x53592e('0x1d4'));logger[_0x53592e('0x15c')](util[_0x53592e('0x1bf')](_0x53592e('0xb8'),this[_0x53592e('0x167')]['callerid'],_0x4d60dc[_0x53592e('0xbe')]));const _0x15e19c=this[_0x53592e('0xd0')]['sync'](this,_0x4d60dc['pause_id']),_0x363e3b=this['agentPause']['sync'](this,_0x4d60dc[_0x53592e('0xbe')],_0x15e19c);return _0x363e3b?(logger[_0x53592e('0x15c')](util[_0x53592e('0x1bf')](_0x53592e('0x141'),this[_0x53592e('0x167')]['callerid'],_0x4d60dc[_0x53592e('0xbe')])),this[_0x53592e('0x167')][_0x53592e('0x38')](util[_0x53592e('0x1bf')](_0x53592e('0x141'),this[_0x53592e('0x167')][_0x53592e('0x11c')],_0x4d60dc['findBy'])),{'code':0xc8,'result':_0x53592e('0x30')}):(logger[_0x53592e('0x15c')](util[_0x53592e('0x1bf')]('AGENT\x20%s\x20NOT\x20FOUND\x20BY',this[_0x53592e('0x167')][_0x53592e('0x11c')],_0x4d60dc[_0x53592e('0xbe')])),this[_0x53592e('0x167')]['noop'](util[_0x53592e('0x1bf')](_0x53592e('0x141'),this['channel'][_0x53592e('0x11c')],_0x4d60dc[_0x53592e('0xbe')])),{'code':0xc8,'result':_0x53592e('0x192')});},AGIVertices[_0x4f5d07('0x86')][_0x4f5d07('0x19a')]=function(_0x4e0eb3){const _0x48b918=_0x4f5d07;logger[_0x48b918('0x15c')](util[_0x48b918('0x1bf')](_0x48b918('0xca'),_0x4e0eb3['label']));if(!this[_0x48b918('0x114')](_0x4e0eb3[_0x48b918('0x21')]))return this[_0x48b918('0x167')]['error'](_0x4e0eb3,_0x48b918('0x99'));const _0x1fb8a5=this['getSound'][_0x48b918('0x44')](this,_0x4e0eb3['file_id']);if(!_0x1fb8a5)return this[_0x48b918('0x167')][_0x48b918('0x16d')](_0x4e0eb3,_0x48b918('0x16e'));const _0x3005d8=this['channel'][_0x48b918('0xbf')](_0x48b918('0xc9'),[_0x1fb8a5,_0x4e0eb3[_0x48b918('0x1c1')]]);if(_0x3005d8[_0x48b918('0x9e')]===-0x1)return _0x3005d8;return this[_0x48b918('0x167')]['noop'](util['format'](_0x48b918('0x148'),_0x48b918('0xc9'),_0x1fb8a5));},AGIVertices[_0x4f5d07('0x86')][_0x4f5d07('0x3e')]=function(_0x3ab2ee){const _0x167f37=_0x4f5d07;logger['info'](util['format'](_0x167f37('0x3a'),_0x3ab2ee[_0x167f37('0xd4')]));if(!this[_0x167f37('0x114')](_0x3ab2ee[_0x167f37('0xd5')]))return this['channel'][_0x167f37('0x16d')](_0x3ab2ee,_0x167f37('0xaa'));let _0x3c1062='';const _0x2dfb19=parseInt(_0x3ab2ee['queue_id'],0xa);if(isNaN(_0x2dfb19))_0x3c1062=_0x3ab2ee[_0x167f37('0xd5')];else{_0x3c1062=this[_0x167f37('0x147')][_0x167f37('0x44')](this,_0x3ab2ee[_0x167f37('0xd5')]);if(!_0x3c1062)return this[_0x167f37('0x167')]['error'](_0x3ab2ee,_0x167f37('0x9c'));}let _0xe707fc='';if(this[_0x167f37('0x114')](_0x3ab2ee['file_id'])){const _0x1274a6=this[_0x167f37('0xd1')]['sync'](this,_0x3ab2ee['file_id']);_0x1274a6&&(_0xe707fc=_0x1274a6);}this[_0x167f37('0xcc')][_0x167f37('0x44')](this,_0x3ab2ee,_0x3c1062);_0x3ab2ee['opts'][_0x167f37('0xf4')]('x')<0x0&&(_0x3ab2ee['opts']+='x');_0x3ab2ee[_0x167f37('0x1c1')]['indexOf']('X')<0x0&&(_0x3ab2ee[_0x167f37('0x1c1')]+='X');this[_0x167f37('0x167')][_0x167f37('0x178')]('XMCS-QUEUE',_0x3c1062?_0x3c1062[_0x167f37('0x8')]():'');const _0x658797=this[_0x167f37('0x167')]['exec'](_0x167f37('0x1d7'),[_0x3c1062,_0x3ab2ee['opts'],_0x3ab2ee[_0x167f37('0xb1')],_0xe707fc,_0x3ab2ee['timeout'],_0x3ab2ee['agi'],_0x3ab2ee[_0x167f37('0x34')],_0x3ab2ee[_0x167f37('0x16c')],'',_0x3ab2ee['position']]);if(_0x658797[_0x167f37('0x9e')]===-0x1)return _0x658797;return this[_0x167f37('0x167')]['noop'](util[_0x167f37('0x1bf')](_0x167f37('0x148'),'QUEUE',_0x3c1062));},AGIVertices[_0x4f5d07('0x86')][_0x4f5d07('0x1b3')]=function(_0x2da052){const _0x5d3c72=_0x4f5d07;logger['info'](util[_0x5d3c72('0x1bf')](_0x5d3c72('0x146'),_0x2da052['label']));const _0xefa407=_0x2da052[_0x5d3c72('0x196')]||_0x5d3c72('0x162'),_0x2d4805=util['format'](_0x5d3c72('0x159'),this[_0x5d3c72('0x167')][_0x5d3c72('0x50')],rs[_0x5d3c72('0xb2')](0x5)),_0x38bc67=util[_0x5d3c72('0x1bf')]('%s/recordings/%s.%s',FILES_PATH,_0x2d4805,_0xefa407),_0x5562d2=util[_0x5d3c72('0x1bf')](_0x5d3c72('0x149'),FILES_PATH,_0x2d4805);return this[_0x5d3c72('0x125')][_0x5d3c72('0x44')](this,_0x2da052,_0x2d4805,_0x38bc67),this[_0x5d3c72('0x167')][_0x5d3c72('0x178')](_0x5d3c72('0xdc'),_0x2d4805),logger[_0x5d3c72('0x15c')](_0x5d3c72('0xa0'),_0x5562d2,_0xefa407,_0x2da052[_0x5d3c72('0xb5')],_0x2da052['timeout']),this[_0x5d3c72('0x167')]['recordFile'](_0x5562d2,_0xefa407,_0x2da052[_0x5d3c72('0xb5')],_0x2da052[_0x5d3c72('0x1c5')],undefined,!![]);},AGIVertices[_0x4f5d07('0x86')]['restapi']=function(_0x4e1268){const _0x137a04=_0x4f5d07;logger[_0x137a04('0x15c')](util[_0x137a04('0x1bf')](_0x137a04('0x16f'),_0x4e1268['label']));if(!this[_0x137a04('0x114')](_0x4e1268[_0x137a04('0xb1')]))return this[_0x137a04('0x167')][_0x137a04('0x38')](_0x137a04('0x1a4'));const _0x34a998=this[_0x137a04('0x67')][_0x137a04('0x44')](this,_0x4e1268);logger['info'](util['format'](_0x137a04('0x7a'),util[_0x137a04('0x66')](_0x34a998,{'showHidden':![],'depth':null})));if(!this[_0x137a04('0x114')](_0x4e1268[_0x137a04('0xfb')]))return this['channel'][_0x137a04('0x38')]('no\x20variable\x20selected\x20for\x20the\x20response');const _0x2774bc=this[_0x137a04('0x64')]['sync'](this,_0x4e1268[_0x137a04('0xfb')]);if(!_0x2774bc)return this[_0x137a04('0x167')][_0x137a04('0x16d')](_0x4e1268,_0x137a04('0x42'));this[_0x137a04('0x167')][_0x137a04('0x178')](util['format'](_0x137a04('0x19d'),_0x2774bc),_0x34a998[_0x137a04('0x3d')]?_0x34a998[_0x137a04('0x3d')]:_0x137a04('0x1ce')),this['channel'][_0x137a04('0x178')](util[_0x137a04('0x1bf')]('%s_STATUS_MESSAGE',_0x2774bc),_0x34a998[_0x137a04('0x1ca')]?_0x34a998['statusMessage']:'OK');if(_0x34a998[_0x137a04('0x1b7')])try{this[_0x137a04('0xc7')](_0x34a998[_0x137a04('0x1b7')],_0x2774bc);}catch(_0x2c5a9b){logger[_0x137a04('0x16d')](util[_0x137a04('0x1bf')](_0x137a04('0x145'),_0x2774bc));}return this[_0x137a04('0x167')]['noop'](util[_0x137a04('0x1bf')](_0x137a04('0x123'),_0x2774bc));},AGIVertices[_0x4f5d07('0x86')]['saydigits']=function(_0x4a2b26){const _0x2eb434=_0x4f5d07;return logger[_0x2eb434('0x15c')](util[_0x2eb434('0x1bf')](_0x2eb434('0x190'),_0x4a2b26[_0x2eb434('0xd4')])),this['channel'][_0x2eb434('0x12f')](_0x4a2b26[_0x2eb434('0x51')]['replace'](/\s+/g,''),_0x4a2b26[_0x2eb434('0xb5')]);},AGIVertices[_0x4f5d07('0x86')][_0x4f5d07('0x45')]=function(_0x45b2c2){const _0x57106c=_0x4f5d07;return logger[_0x57106c('0x15c')](util[_0x57106c('0x1bf')](_0x57106c('0x1c9'),_0x45b2c2[_0x57106c('0xd4')])),this['channel']['sayNumber'](_0x45b2c2[_0x57106c('0x1b9')]['replace'](/\s+/g,''),_0x45b2c2[_0x57106c('0xb5')]);},AGIVertices[_0x4f5d07('0x86')][_0x4f5d07('0x18a')]=function(_0x113412){const _0x1df977=_0x4f5d07;return logger[_0x1df977('0x15c')](util[_0x1df977('0x1bf')](_0x1df977('0x1f'),_0x113412[_0x1df977('0xd4')])),this['channel']['sayPhonetic'](_0x113412[_0x1df977('0xf7')],_0x113412[_0x1df977('0xb5')]);},AGIVertices[_0x4f5d07('0x86')]['sendMail']=function(_0x1818a3){const _0xd97be9=_0x4f5d07;logger[_0xd97be9('0x15c')](util[_0xd97be9('0x1bf')]('Enter\x20in\x20SENDMAIL\x20(%s)\x20block',_0x1818a3[_0xd97be9('0xd4')]));if(!this[_0xd97be9('0x114')](_0x1818a3[_0xd97be9('0x102')]))return this[_0xd97be9('0x167')]['noop'](_0xd97be9('0x18c'));const _0x376a9e=this[_0xd97be9('0xfe')]['sync'](this,_0x1818a3[_0xd97be9('0x102')]);if(!_0x376a9e||!_0x376a9e[_0xd97be9('0x5c')])return this[_0xd97be9('0x167')][_0xd97be9('0x16d')](_0x1818a3,_0xd97be9('0x157'));const _0x4af599={'from':util['format'](_0xd97be9('0x187'),_0x376a9e[_0xd97be9('0x12d')],_0x376a9e[_0xd97be9('0x4c')]||_0x376a9e[_0xd97be9('0x5c')][_0xd97be9('0x6f')]),'to':_0x1818a3['to']||'','cc':_0x1818a3['cc']||'','bcc':_0x1818a3['bcc']||'','subject':_0x1818a3['subject'],'html':_0x1818a3[_0xd97be9('0xf7')],'text':_0x1818a3[_0xd97be9('0xf7')]},_0x365c4a={'tls':{'rejectUnauthorized':![]}};_0x376a9e[_0xd97be9('0x5c')][_0xd97be9('0x29')]?_0x365c4a['service']=_0x376a9e[_0xd97be9('0x5c')][_0xd97be9('0x29')]:(_0x365c4a[_0xd97be9('0x1ae')]=_0x376a9e[_0xd97be9('0x5c')][_0xd97be9('0x1ae')],_0x365c4a[_0xd97be9('0xd7')]=_0x376a9e[_0xd97be9('0x5c')][_0xd97be9('0xd7')],_0x365c4a[_0xd97be9('0x14b')]=_0x376a9e[_0xd97be9('0x5c')][_0xd97be9('0x14b')]);_0x376a9e[_0xd97be9('0x5c')][_0xd97be9('0x77')]&&(_0x365c4a[_0xd97be9('0x103')]={'user':_0x376a9e['Smtp']['user'],'pass':_0x376a9e['Smtp'][_0xd97be9('0xed')]});if(this['isConfigured'](_0x1818a3[_0xd97be9('0x8c')])){}return logger['debug'](_0xd97be9('0xf9'),JSON[_0xd97be9('0x161')](_0x4af599)),this[_0xd97be9('0xcc')][_0xd97be9('0x44')](this,_0x1818a3,_0x1818a3[_0xd97be9('0x102')]),this[_0xd97be9('0x167')][_0xd97be9('0x38')](util[_0xd97be9('0x1bf')](_0xd97be9('0x48'),_0x376a9e[_0xd97be9('0x12d')])),this['sendMailMessage'][_0xd97be9('0x44')](this,_0x365c4a,_0x4af599),this[_0xd97be9('0x167')][_0xd97be9('0x38')](_0xd97be9('0x151'));},AGIVertices[_0x4f5d07('0x86')][_0x4f5d07('0xe3')]=function(_0x27c22c){const _0x19d781=_0x4f5d07;return logger[_0x19d781('0x15c')](util[_0x19d781('0x1bf')]('Enter\x20in\x20SENDFAX\x20(%s)\x20block',_0x27c22c[_0x19d781('0xd4')])),this[_0x19d781('0x167')]['noop'](_0x19d781('0xc4'));},AGIVertices[_0x4f5d07('0x86')][_0x4f5d07('0x105')]=function(_0x30e746){const _0x458ab1=_0x4f5d07;logger[_0x458ab1('0x15c')](util[_0x458ab1('0x1bf')](_0x458ab1('0x197'),_0x30e746['label']));if(!this['isConfigured'](_0x30e746[_0x458ab1('0x68')]))return this[_0x458ab1('0x167')][_0x458ab1('0x38')](_0x458ab1('0x183'));const _0x3d038a=this[_0x458ab1('0x40')][_0x458ab1('0x44')](this,_0x30e746['sms_account_id']);if(!_0x3d038a)return this[_0x458ab1('0x167')][_0x458ab1('0x16d')](_0x30e746,_0x458ab1('0x59'));const _0x25ef67={'body':_0x30e746[_0x458ab1('0x110')],'phone':_0x30e746['to']||'','SmsAccountId':_0x3d038a['id']};return logger[_0x458ab1('0x186')](_0x458ab1('0x4d'),JSON[_0x458ab1('0x161')](_0x25ef67)),this['createSquareDetailsReport']['sync'](this,_0x30e746,_0x30e746[_0x458ab1('0x68')]),this[_0x458ab1('0x167')][_0x458ab1('0x38')](util[_0x458ab1('0x1bf')](_0x458ab1('0x17'),_0x3d038a[_0x458ab1('0x12d')])),this[_0x458ab1('0xec')][_0x458ab1('0x44')](this,_0x25ef67),this['channel'][_0x458ab1('0x38')](_0x458ab1('0x1d0'));},AGIVertices[_0x4f5d07('0x86')]['set']=function(_0x571646){const _0x22d693=_0x4f5d07;logger[_0x22d693('0x15c')](util[_0x22d693('0x1bf')](_0x22d693('0x6c'),_0x571646['label']));if(!this[_0x22d693('0x114')](_0x571646['variable_id']))return this[_0x22d693('0x167')]['error'](_0x571646,_0x22d693('0xd2'));const _0x364e6d=this[_0x22d693('0x64')][_0x22d693('0x44')](this,_0x571646[_0x22d693('0xfb')]);if(!_0x364e6d)return this[_0x22d693('0x167')][_0x22d693('0x16d')](_0x571646,_0x22d693('0x42'));return this[_0x22d693('0x167')][_0x22d693('0x178')](_0x364e6d,_0x571646[_0x22d693('0x128')]);},AGIVertices[_0x4f5d07('0x86')][_0x4f5d07('0x3f')]=function(_0x3226ed){const _0x326ac=_0x4f5d07;logger[_0x326ac('0x15c')](util[_0x326ac('0x1bf')](_0x326ac('0x126'),_0x3226ed['label'])),this[_0x326ac('0x167')][_0x326ac('0x38')](_0x326ac('0x17d'));if(_0x3226ed['answer']==='yes')return this['channel']['noop'](_0x326ac('0x8e')),this[_0x326ac('0x167')]['answer']();return this[_0x326ac('0x167')]['noop']('Skipped\x20Answer');},AGIVertices[_0x4f5d07('0x86')][_0x4f5d07('0x13')]=function(_0x5c5247){const _0x418232=_0x4f5d07;logger[_0x418232('0x15c')](util['format'](_0x418232('0xad'),_0x5c5247[_0x418232('0xd4')]));if(!this[_0x418232('0x114')](_0x5c5247[_0x418232('0x15d')]))return this[_0x418232('0x167')]['error'](_0x5c5247,'no\x20subproject\x20selected');const _0x1a1a58=this['getSquareProject']['sync'](this,_0x5c5247[_0x418232('0x15d')]);if(!this[_0x418232('0x114')](_0x1a1a58))return this['channel'][_0x418232('0x16d')](_0x5c5247,util[_0x418232('0x1bf')](_0x418232('0x1be'),_0x5c5247[_0x418232('0x15d')]));if(_0x1a1a58===this[_0x418232('0x167')][_0x418232('0x6')])return this['channel']['error'](_0x5c5247,_0x418232('0x1d6'));this['createSquareDetailsReport'][_0x418232('0x44')](this,_0x5c5247,_0x1a1a58);const _0x29a962=this['channel'][_0x418232('0xbf')](_0x418232('0x1cc'),util[_0x418232('0x1bf')](_0x418232('0x137'),config[_0x418232('0x1a8')][_0x418232('0x1ae')]||_0x418232('0xc5'),_0x1a1a58,this[_0x418232('0x167')][_0x418232('0x6')]));if(_0x29a962[_0x418232('0x9e')]===-0x1)return _0x29a962;return this[_0x418232('0x167')][_0x418232('0x38')](util[_0x418232('0x1bf')](_0x418232('0x148'),'AGI',_0x1a1a58));},AGIVertices[_0x4f5d07('0x86')][_0x4f5d07('0x117')]=function(_0x204be6){const _0x26b17f=_0x4f5d07;logger[_0x26b17f('0x15c')](util['format'](_0x26b17f('0xa1'),_0x204be6['label']));const _0xb20696=this[_0x26b17f('0x49')][_0x26b17f('0x44')](this,_0x204be6[_0x26b17f('0x1a5')]);this[_0x26b17f('0xcc')][_0x26b17f('0x44')](this,_0x204be6,_0x204be6['command']);if(this[_0x26b17f('0x114')](_0x204be6['variable_id'])){const _0xef5961=this['getVariable']['sync'](this,_0x204be6[_0x26b17f('0xfb')]);if(_0xef5961)return this[_0x26b17f('0x167')][_0x26b17f('0x178')](_0xef5961,_0xb20696),this[_0x26b17f('0x167')][_0x26b17f('0x38')](util['format'](_0x26b17f('0x17a'),_0x204be6['command'],_0xef5961));}return this[_0x26b17f('0x167')][_0x26b17f('0x38')](util['format'](_0x26b17f('0x5a'),_0x204be6['command']));},AGIVertices[_0x4f5d07('0x86')][_0x4f5d07('0x7d')]=function(_0x15cbd2){const _0x229f3e=_0x4f5d07;logger['info'](util[_0x229f3e('0x1bf')](_0x229f3e('0x4e'),_0x15cbd2[_0x229f3e('0xd4')])),_0x15cbd2[_0x229f3e('0xf7')]=_0x15cbd2[_0x229f3e('0xf7')][_0x229f3e('0x153')](/(\r\n|\n|\r)/gm,'\x20');if(!this[_0x229f3e('0x114')](_0x15cbd2['apiKey']))return this[_0x229f3e('0x167')]['noop'](_0x229f3e('0x96'));if(!this[_0x229f3e('0x114')](_0x15cbd2[_0x229f3e('0xf7')]))return this[_0x229f3e('0x167')][_0x229f3e('0x38')](_0x229f3e('0x1d'));this[_0x229f3e('0x167')][_0x229f3e('0x38')](util['format']('Trying\x20Google\x20Cloud\x20TTS\x20%s',_0x15cbd2['text']));const _0x48b67c=this[_0x229f3e('0xc0')]['sync'](this,_0x15cbd2);if(_0x48b67c){this[_0x229f3e('0x167')][_0x229f3e('0x38')](util[_0x229f3e('0x1bf')](_0x229f3e('0x1b8'),_0x48b67c));const _0x136600=this['channel'][_0x229f3e('0x23')](_0x48b67c);try{fs['unlink'](_0x48b67c+_0x229f3e('0x10d'));}catch(_0x53f52e){logger['error'](_0x53f52e);}return _0x136600;}return this[_0x229f3e('0x167')][_0x229f3e('0x16d')](_0x15cbd2,_0x229f3e('0x134'));},AGIVertices[_0x4f5d07('0x86')][_0x4f5d07('0x92')]=function(_0xa84f6e){const _0x34fbe1=_0x4f5d07;logger[_0x34fbe1('0x15c')](util[_0x34fbe1('0x1bf')](_0x34fbe1('0x1cb'),_0xa84f6e[_0x34fbe1('0xd4')])),_0xa84f6e[_0x34fbe1('0xf7')]=_0xa84f6e['text'][_0x34fbe1('0x153')](/(\r\n|\n|\r)/gm,'\x20');if(!this[_0x34fbe1('0x114')](_0xa84f6e['text']))return this[_0x34fbe1('0x167')]['noop'](_0x34fbe1('0x1d'));this[_0x34fbe1('0x167')][_0x34fbe1('0x38')](util[_0x34fbe1('0x1bf')](_0x34fbe1('0x7b'),_0xa84f6e[_0x34fbe1('0xf7')]));const _0x328ff2=this[_0x34fbe1('0x9d')][_0x34fbe1('0x44')](this,_0xa84f6e);if(_0x328ff2){this[_0x34fbe1('0x167')][_0x34fbe1('0x38')](util[_0x34fbe1('0x1bf')](_0x34fbe1('0x1b6'),_0x328ff2));const _0x10d877=this['channel'][_0x34fbe1('0x23')](_0x328ff2);try{fs[_0x34fbe1('0xa3')](_0x328ff2+'.wav');}catch(_0x45bc61){logger[_0x34fbe1('0x16d')](_0x45bc61);}return _0x10d877;}return this[_0x34fbe1('0x167')][_0x34fbe1('0x16d')](_0xa84f6e,_0x34fbe1('0x83'));},AGIVertices['prototype'][_0x4f5d07('0x180')]=function(_0x592545){const _0xec9ccd=_0x4f5d07;logger['info'](util[_0xec9ccd('0x1bf')](_0xec9ccd('0x5b'),_0x592545[_0xec9ccd('0xd4')]));if(!this['isConfigured'](_0x592545[_0xec9ccd('0xbe')]))return this['channel'][_0xec9ccd('0x16d')](_0x592545,_0xec9ccd('0x1d4'));logger[_0xec9ccd('0x15c')](util[_0xec9ccd('0x1bf')](_0xec9ccd('0xb8'),this[_0xec9ccd('0x167')][_0xec9ccd('0x11c')],_0x592545['findBy']));const _0x1be893=this[_0xec9ccd('0x198')][_0xec9ccd('0x44')](this,_0x592545[_0xec9ccd('0xbe')]);return _0x1be893?(logger['info'](util[_0xec9ccd('0x1bf')](_0xec9ccd('0x141'),this['channel'][_0xec9ccd('0x11c')],_0x592545['findBy'])),this[_0xec9ccd('0x167')][_0xec9ccd('0x38')](util[_0xec9ccd('0x1bf')]('AGENT\x20%s\x20FOUND\x20BY',this[_0xec9ccd('0x167')][_0xec9ccd('0x11c')],_0x592545[_0xec9ccd('0xbe')])),{'code':0xc8,'result':_0xec9ccd('0x30')}):(logger[_0xec9ccd('0x15c')](util[_0xec9ccd('0x1bf')](_0xec9ccd('0x47'),this[_0xec9ccd('0x167')][_0xec9ccd('0x11c')],_0x592545['findBy'])),this[_0xec9ccd('0x167')][_0xec9ccd('0x38')](util['format'](_0xec9ccd('0x47'),this['channel'][_0xec9ccd('0x11c')],_0x592545[_0xec9ccd('0xbe')])),{'code':0xc8,'result':_0xec9ccd('0x192')});},AGIVertices[_0x4f5d07('0x86')][_0x4f5d07('0xd')]=function(_0x259e50){const _0xbf831e=_0x4f5d07;logger[_0xbf831e('0x15c')](util['format']('Enter\x20in\x20VOICEMAIL\x20(%s)\x20block',_0x259e50['label']));const _0x40e451=this[_0xbf831e('0x167')]['exec']('VOICEMAIL',[_0x259e50[_0xbf831e('0x133')],_0x259e50[_0xbf831e('0x82')]]);if(_0x40e451[_0xbf831e('0x9e')]===-0x1)return _0x40e451;return this['channel'][_0xbf831e('0x38')](util['format']('Executed\x20command\x20%s\x20%s',_0xbf831e('0xe0'),_0x259e50['mailbox']));},AGIVertices[_0x4f5d07('0x86')][_0x4f5d07('0xff')]=function(_0x27ded5){const _0x33362c=_0x4f5d07;logger[_0x33362c('0x15c')](util[_0x33362c('0x1bf')](_0x33362c('0x11d'),_0x27ded5[_0x33362c('0xd4')]));if(!this['isConfigured'](_0x27ded5[_0x33362c('0xfb')]))return this[_0x33362c('0x167')][_0x33362c('0x16d')](_0x27ded5,_0x33362c('0xd2'));const _0x405b92=this[_0x33362c('0x64')]['sync'](this,_0x27ded5[_0x33362c('0xfb')]);if(!_0x405b92)return this['channel']['error'](_0x27ded5,_0x33362c('0x42'));const _0x4a790d=this[_0x33362c('0x167')]['getVariable'](_0x405b92);return{'code':0xc8,'result':_0x4a790d[_0x33362c('0x63')]?_0x4a790d[_0x33362c('0x63')]:'-'};},String[_0x4f5d07('0x86')][_0x4f5d07('0x78')]=function(_0x203609,_0x359841){const _0x39201f=_0x4f5d07;return this[_0x39201f('0x74')](_0x203609)[_0x39201f('0x174')](_0x359841);},module[_0x4f5d07('0x177')]=AGIVertices; \ No newline at end of file +const a1212_0xe903=['Trying\x20aws\x20Polly\x20%s','key','false','agi','AGI','%s/%s@from-sip/n','goal','interval_id','odbc','awsPolly','google_asr_language','callerid','position','Enter\x20in\x20LUMENVOXTTS\x20(%s)\x20block','mailRpc','agentUnpause','appid','uniqueid','Enter\x20in\x20FINALLY\x20(%s)\x20block','createSmsMessage','response','mustache','Enter\x20in\x20SAYPHONETIC\x20(%s)\x20block','failure','query','no\x20mail\x20account\x20found','host','sesteknda','AWS_LEX_%s','AGENT\x20%s\x20FOUND\x20BY','uri','PLAYBACK','generate','record','Unable\x20to\x20set\x20result\x20in\x20variable\x20%s','SESTEK_NDA_%s','extension','Google\x20Cloud\x20TTS\x20%s\x20file\x20created','Google\x20TTS\x20is\x20unreachable','Enter\x20in\x20Google\x20Cloud\x20TTS\x20(%s)\x20block','parse','An\x20incorrect\x20formatted\x20json\x20headers\x20has\x20been\x20passed\x20to\x20the\x20function','randomstring','no\x20variable\x20selected\x20for\x20the\x20response','first','Enter\x20in\x20SAYNUMBER\x20(%s)\x20block','Enter\x20in\x20ANSWER\x20(%s)\x20block','no\x20variable\x20selected','Enter\x20in\x20DIAL\x20(%s)\x20block','odbc_id','getPauseById','sayNumber','en-US','%s_STATUS_CODE','%s[%s]','lumenvoxasr','getSquareProject','Enter\x20in\x20MATH\x20(%s)\x20block','Dialogflow\x20Result\x20%s','intKey','SESTEK_ASR_TRANSCRIPT','project_id','sestekasr','Executed\x20command\x20MRCPRecog\x20%s','Intervals','CALLBACK\x20added\x20phone:\x20%s\x20on\x20list:\x20%s\x20at\x20%s','label','no\x20mail\x20account\x20configured','createSquareRecording','no\x20text\x20configured','audioEncoding','Executed\x20command\x20MRCPSynth\x20%s','500\x20-\x20Internal\x20Server\x20Error','application','no\x20user\x20found','getSound','getIntervals','Callback\x20scheduled\x20at\x20','gotoc','forEach','PUT','isConfigured','isArray','vswitch','message','googleDialogflowV2','maxdigit','computedVariables','custom_app','accountcode','no\x20file\x20audio\x20selected','Trying\x20Google\x20Cloud\x20TTS\x20%s','agentPause','shellCommand','Enter\x20in\x20DATABASE\x20(%s)\x20block','Enter\x20in\x20EXTERNAL\x20DIAL\x20(%s)\x20block','clear','aws_bot_name','ndassistant_url','render','Trying\x20DialogflowV2:\x20%s','agentLogout','no\x20grammar\x20configured','RECOG_INPUT()','undefined','Google\x20Cloud\x20TTS\x20is\x20unreachable','getVariableById','Enter\x20in\x20SESTEKASR\x20(%s)\x20block','Amazon\x20Lex\x20is\x20unreachable','phone','queue_id','Enter\x20in\x20PLAYBACK\x20(%s)\x20block','shelljs','SESTEK_ASR_CONFIDENCE','Recording\x20%s\x20%s\x20%s\x20%s','sh\x20command:\x20%s\x20result\x20on\x20variable:\x20%s','appsecret','no\x20trunk\x20found','exec','clone','delay','Enter\x20in\x20LUMENVOXASR\x20(%s)\x20block','unpause','random','end','gotoif','ispeechtts','no\x20appsecret\x20configured','Trying\x20Amazon\x20Lex:\x20%s','aws_polly_region','info','getSoundPath','EVAL\x20CONDITION\x20%s\x20%s','no\x20user\x20selected','replace','agentLogin','no\x20password\x20configured','prototype','Amazon\x20Lex\x20ready\x20for\x20fulfillment','wav','aws\x20Polly\x20is\x20unreachable','unlink','getMailAccountById','scheduledAt','The\x20\x22%s\x22\x20variable\x20value\x20is:\x20%s','includes','logout','getSquareProjectById','isPlainObject','headers','secure','agent','ispeechasr','number','getTrunkById','priority','Enter\x20in\x20SENDMAIL\x20(%s)\x20block','model','split','START\x20CALLY\x20SQUARE','RECOG_INSTANCE()','findBy','Enter\x20in\x20CALLBACK\x20(%s)\x20block','Trying\x20SendMail\x20with\x20account\x20%s','user','Response:','playback','digits','macro','bcc','name','awsLex','no\x20queue\x20selected','Enter\x20in\x20SET\x20(%s)\x20block','getVoiceQueueById','close','no\x20query\x20configured','beep','no\x20bot\x20name\x20configured','Enter\x20in\x20SENDSMS\x20(%s)\x20block','no\x20anguage\x20configured','sendSMS\x20message','subproject','no\x20variable\x20found','replaceAllVariables','join','An\x20incorrect\x20formatted\x20json\x20has\x20been\x20passed\x20to\x20the\x20function','trunk_id','%s[%s][%s]','Enter\x20in\x20MRCPRecog\x20(%s)\x20block','isEmpty','Enter\x20in\x20GOOGLEASR\x20(%s)\x20block\x20%s','SESTEK_ASR_INSTANCE','ispeechASR','Google\x20TTS\x20%s\x20file\x20created','VOICEMAIL','Enter\x20in\x20SESTEKNDA\x20(%s)\x20block','lodash','operation','ispeech\x20%s\x20file\x20created','googleCloudTTS','account_id','MALE','variable_value','getVoiceQueue','no\x20variable\x20selected\x20for\x20the\x20result','getVariable','template_id','streamFile','MRCPSynth','./scripts','Skipped\x20Answer','rawBody','amazonlex','Executed\x20command\x20%s','agi://%s/square,\x22%s\x22,\x22%s\x22','Query\x20executed\x20correctly\x20%s','command','QUEUE','add','tildeasr','%s_ROWS_COUNT','%s_%s','\x22%s\x22\x20<%s>','no\x20ndauth\x20url\x20configured','Enter\x20in\x20GETSECRETDIGITS\x20(%s)\x20block','authentication','POST','tildeASR','Enter\x20in\x20GOAL\x20(%s)\x20block','no\x20subproject\x20selected','client_email','recursiveNodeIndex','../../config/logger','ODBC\x20connection\x20successfully','success','continueAt','keys','query:\x20%s','hiddendigitsnum','NOBEEP','Enter\x20in\x20SWITCH\x20(%s)\x20block','sestekNDA','answer','getsecretdigits','ispeech\x20TTS\x20is\x20unreachable','arg_1','%s/recordings/%s.%s','dsn','Amazon\x20Lex\x20Result\x20%s','Trying\x20Dialogflow:\x20%s','no\x20valid\x20credentials\x20configured','getSquareOdbc','gosub','saveRestApiResult','getMailAccount','private_key','sh\x20command:\x20%s\x20result\x20no\x20stored','trunk_name','extra','trim','getQueryOdbc','finally','audiofile','error','open','providerResponse','no\x20interval\x20configured','dialogflowV2_language','replaceObjectAllVariables','Enter\x20in\x20START\x20(%s)\x20block','googleDialogflow','channel','variable_id','createSquareMessage','Mail\x20message\x20added\x20to\x20outgoing\x20process','LOCAL','result','getdigits','no\x20username\x20configured','no\x20sms\x20account\x20configured','no\x20find\x20by\x20configured','getSmsAccount','%s.%s','port','aws_lex_region','opts','Enter\x20in\x20GETDIGITS\x20(%s)\x20block','sync','%s/recordings/%s','condition','isNil','speech','no\x20trunk\x20selected','Enter\x20in\x20VOICEMAIL\x20(%s)\x20block','callback','callback_priority','mailbox','format','stringify','ispeechTTS','TildeASR\x20Result\x20%s','googleASR','Trying\x20ispeech\x20TTS\x20%s','lastName','Sms\x20message\x20added\x20to\x20outgoing\x20process','wait','recordingFormat','Trying\x20SendSMS\x20with\x20account\x20%s','.wav','Enter\x20in\x20GOOGLETTS\x20(%s)\x20block','SestekNDA\x20Result\x20%s','Error\x20getting\x20ODBC\x20connection\x20%s','grammar','digit','method','statusMessage','then','rpc','no\x20key\x20configured','no\x20appid\x20configured','system','variable\x20%s\x20set','set','Enter\x20in\x20QUEUE\x20(%s)\x20block','200','hangup','timeout','options','login','goalname','Enter\x20in\x20PAUSE\x20(%s)\x20block','catch','getTrunk','maxRetry','substr','MP3','noop','%s_STATUS_MESSAGE','subject','true','output','createCmContact','pause','inspect','moment','aws_secret_access_key','no\x20file\x20audio\x20found','GOOGLE_ASR_%s','dnid','ndauth_url','google_tts_language','no\x20subproject\x20found\x20with\x20id\x20%d','pause_id','sayphonetic','Enter\x20in\x20AGI\x20(%s)\x20block','gotoiftime','no\x20operation\x20configured','ispeech_asr_language','Enter\x20in\x20GOTOIF\x20(%s)\x20block','sms_account_id','util','IFTIME(%s?true:false)','googleTTS','lumenvoxtts','Enter\x20in\x20SUBPROJECT\x20(%s)\x20block','statusCode','DIALOGFLOW_%s','escape_digits','Enter\x20in\x20ISPEECHTTS\x20(%s)\x20block','service','agicommand','saynumber','FIND\x20AGENT\x20%s\x20BY\x20%s','aws_polly_voice','Answer','aws_access_key_id','setVariable','toString','toUpperCase','dialogflow','replaceAll','getUser','DIAL','ispeech_tts_language','restAPI','XMCS-QUEUE','sendMailMessage','password','recordFile','retry','out','url','isString','dialogflow_language','no\x20database\x20selected','length','dial','AGENT\x20%s\x20NOT\x20FOUND\x20BY','exports','google\x20%s\x20file\x20created','mindigit','getData','getIntervalById','apiKey','MRCPRecog','start','Trying\x20SestekNDA:\x20%s','Trying\x20Google\x20TTS\x20%s','menu','awspolly','args','RECOG_CONFIDENCE()','getAndSetVariable','text','restapi','Enter\x20in\x20MENU\x20(%s)\x20block','map','sayPhonetic','Enter\x20in\x20SYSTEM\x20(%s)\x20block','debug','Enter\x20in\x20DIALOGFLOW\x20(%s)\x20block','createSquareDetailsReport','no\x20condition\x20configured','rawHeaders','An\x20incorrect\x20formatted\x20json\x20body\x20has\x20been\x20passed\x20to\x20the\x20function','list_id','no\x20queue\x20found','Enter\x20in\x20RESTAPI\x20(%s)\x20block','no\x20project_id\x20configured','Amy','Enter\x20in\x20LOGOUT\x20(%s)\x20block','file_id','Smtp','tts','body','indexOf','voicemail','RECORDING_SAVENAME','username','languageCode','Enter\x20in\x20DIALOGFLOW\x20V2\x20(%s)\x20block','Enter\x20in\x20GOTOIFTIME\x20(%s)\x20block','auth','Error\x20closing\x20connection\x20to\x20odbc\x20%s','toLowerCase','sendFax','bot','Enter\x20in\x20HANGUP\x20(%s)\x20block','Executed\x20command\x20%s\x20%s','no\x20url\x20configured','context','Enter\x20in\x20TILDEASR\x20(%s)\x20block','IFTIME\x20%s\x20%s','SENDFAX\x20block\x20not\x20implemented','MRCP_RECOG_TRANSCRIPT','math','internal','getSmsAccountById','aws_text_type','no\x20sms\x20account\x20found'];(function(_0x45dd65,_0x5307eb){const _0xe903f=function(_0x431ec3){while(--_0x431ec3){_0x45dd65['push'](_0x45dd65['shift']());}};_0xe903f(++_0x5307eb);}(a1212_0xe903,0x166));const a1212_0x431e=function(_0x45dd65,_0x5307eb){_0x45dd65=_0x45dd65-0x87;let _0xe903f=a1212_0xe903[_0x45dd65];return _0xe903f;};const a1212_0x3fcc93=a1212_0x431e;'use strict';const fs=require('fs'),util=require(a1212_0x3fcc93(0x8a)),_=require(a1212_0x3fcc93(0x1b3)),sh=require(a1212_0x3fcc93(0x15e)),odbc=require(a1212_0x3fcc93(0xf6)),rs=require(a1212_0x3fcc93(0x118)),moment=require(a1212_0x3fcc93(0x247)),Mustache=require(a1212_0x3fcc93(0x103)),rp=require('request-promise-native'),logger=require(a1212_0x3fcc93(0x1d7))(a1212_0x3fcc93(0xf1)),config=require('../../config/environment'),scripts=require(a1212_0x3fcc93(0x1c0)),FILES_PATH='/var/opt/motion2/server/files',recursiveMapAttributes=[a1212_0x3fcc93(0xc9),a1212_0x3fcc93(0x1c2)],verticesWithRetry=['menu','getdigits',a1212_0x3fcc93(0x1e2)],AGIVertices=function(_0x513234,_0x4d4c1b,_0x233e4e){const _0x11edd8=a1212_0x3fcc93;this[_0x11edd8(0x1fe)]=_0x513234,this['rpc']=_0x4d4c1b,this[_0x11edd8(0xfc)]=_0x233e4e;};AGIVertices[a1212_0x3fcc93(0x177)][a1212_0x3fcc93(0x1bc)]=function(_0x5c2dee,_0x528310){const _0x57fa5b=a1212_0x3fcc93;this['rpc'][_0x57fa5b(0x158)](_0x5c2dee)[_0x57fa5b(0x22b)](function(_0xc99fde){const _0x3c685b=_0x57fa5b;_0x528310(null,_0xc99fde?_0xc99fde[_0x3c685b(0x198)]:![]);})[_0x57fa5b(0x23a)](function(_0x29e705){_0x528310(_0x29e705);});},AGIVertices[a1212_0x3fcc93(0x177)][a1212_0x3fcc93(0x1ba)]=function(_0x5b3310,_0x274aa6){const _0x2b29ad=a1212_0x3fcc93;this['rpc'][_0x2b29ad(0x19c)](_0x5b3310)[_0x2b29ad(0x22b)](function(_0x289af3){_0x274aa6(null,_0x289af3?_0x289af3['name']:![]);})[_0x2b29ad(0x23a)](function(_0x1de199){_0x274aa6(_0x1de199);});},AGIVertices[a1212_0x3fcc93(0x177)][a1212_0x3fcc93(0x126)]=function(_0x4c1ca4,_0xffbf01){const _0x4c3e76=a1212_0x3fcc93;this[_0x4c3e76(0x22c)][_0x4c3e76(0x181)](_0x4c1ca4)['then'](function(_0x23e6c3){const _0x5c3928=_0x4c3e76;_0xffbf01(null,_0x23e6c3?_0x23e6c3[_0x5c3928(0x198)]:![]);})[_0x4c3e76(0x23a)](function(_0x10e32c){_0xffbf01(_0x10e32c);});},AGIVertices['prototype'][a1212_0x3fcc93(0x1ea)]=function(_0xd4f2f3,_0x1c23e9){const _0xfa5062=a1212_0x3fcc93;this['rpc']['getSquareOdbcById'](_0xd4f2f3)[_0xfa5062(0x22b)](function(_0x2d63ab){const _0x2ff154=_0xfa5062;_0x1c23e9(null,_0x2d63ab?_0x2d63ab[_0x2ff154(0x1e6)]:![]);})[_0xfa5062(0x23a)](function(_0x3d5a5b){_0x1c23e9(_0x3d5a5b);});},AGIVertices[a1212_0x3fcc93(0x177)][a1212_0x3fcc93(0x9f)]=function(_0x1dbfe3,_0xc1e61a){const _0x49a2c4=a1212_0x3fcc93;this[_0x49a2c4(0x22c)]['getUserById'](_0x1dbfe3)[_0x49a2c4(0x22b)](function(_0x9d51eb){_0xc1e61a(null,_0x9d51eb?_0x9d51eb['name']:![]);})[_0x49a2c4(0x23a)](function(_0x3ec5d6){_0xc1e61a(_0x3ec5d6);});},AGIVertices[a1212_0x3fcc93(0x177)][a1212_0x3fcc93(0x23b)]=function(_0x298b5d,_0x43a2f8){const _0x1498dc=a1212_0x3fcc93;this[_0x1498dc(0x22c)][_0x1498dc(0x188)](_0x298b5d)[_0x1498dc(0x22b)](function(_0x47fb9e){const _0x805127=_0x1498dc;_0x43a2f8(null,_0x47fb9e?_0x47fb9e[_0x805127(0x198)]:![]);})[_0x1498dc(0x23a)](function(_0x1b192a){_0x43a2f8(_0x1b192a);});},AGIVertices[a1212_0x3fcc93(0x177)][a1212_0x3fcc93(0x139)]=function(_0x27c895,_0x5e040f){const _0x5d067a=a1212_0x3fcc93,_0x532432=this;this[_0x5d067a(0x22c)]['getSoundById'](_0x27c895)[_0x5d067a(0x22b)](function(_0x374dfa){const _0x3350ed=_0x5d067a;_0x5e040f(null,_0x374dfa?_0x532432[_0x3350ed(0x171)](_0x374dfa['save_name']):![]);})[_0x5d067a(0x23a)](function(_0xfde2a4){_0x5e040f(_0xfde2a4);});},AGIVertices[a1212_0x3fcc93(0x177)][a1212_0x3fcc93(0x1ed)]=function(_0x3e9f47,_0x106db5){const _0x312507=a1212_0x3fcc93;this[_0x312507(0x22c)][_0x312507(0x17c)](_0x3e9f47)[_0x312507(0x22b)](function(_0x28cdd9){_0x106db5(null,_0x28cdd9?_0x28cdd9:![]);})[_0x312507(0x23a)](function(_0x4e867a){_0x106db5(_0x4e867a);});},AGIVertices['prototype'][a1212_0x3fcc93(0xa4)]=function(_0x589c53,_0x5bc7c2,_0x696cb1){const _0x3374bd=a1212_0x3fcc93;this[_0x3374bd(0xfc)]['sendMailMessage'](_0x589c53,_0x5bc7c2)['then'](function(){_0x696cb1(null);})[_0x3374bd(0x23a)](function(_0x2db403){_0x696cb1(_0x2db403);});},AGIVertices['prototype'][a1212_0x3fcc93(0x13a)]=function(_0x608f1c,_0x31401f){const _0x2004da=a1212_0x3fcc93;this[_0x2004da(0x22c)][_0x2004da(0xb4)](_0x608f1c)['then'](function(_0x261e0e){const _0x28b290=_0x2004da;_0x261e0e?_0x261e0e['IntervalId']?_0x31401f(null,[_0x261e0e['interval']]):_0x31401f(null,_[_0x28b290(0xc2)](_0x261e0e[_0x28b290(0x12e)],'interval')):_0x31401f(null,![]);})['catch'](function(_0x2b8b95){_0x31401f(_0x2b8b95);});},AGIVertices[a1212_0x3fcc93(0x177)][a1212_0x3fcc93(0x171)]=function(_0x5e0185){const _0x75f712=a1212_0x3fcc93;return util[_0x75f712(0x218)]('%s/sounds/converted/%s',FILES_PATH,_0x5e0185);},AGIVertices[a1212_0x3fcc93(0x177)]['getQueryOdbc']=function(_0x4050a7,_0x5d2940,_0x33ad9e){const _0x3d5160=a1212_0x3fcc93;odbc[_0x3d5160(0x1f7)](_0x4050a7,function(_0x3b062c){const _0x4361a3=_0x3d5160;_0x3b062c?(logger[_0x4361a3(0x1f6)](_0x4361a3(0x226),_0x3b062c),_0x33ad9e(_0x3b062c)):(logger[_0x4361a3(0x170)](_0x4361a3(0x1d8)),odbc[_0x4361a3(0x106)](_0x5d2940,function(_0x18683f,_0x28d7a){const _0x72dd28=_0x4361a3;_0x18683f?(logger['info']('Error\x20executing\x20query\x20%s',_0x5d2940),_0x33ad9e(_0x18683f)):(logger[_0x72dd28(0x170)](_0x72dd28(0x1c6),_0x5d2940),odbc[_0x72dd28(0x19d)](function(_0x45b9d4){const _0x535b80=_0x72dd28;_0x45b9d4&&logger[_0x535b80(0x1f6)](_0x535b80(0xdd),_0x45b9d4),_0x33ad9e(null,_0x28d7a);}));}));});},AGIVertices[a1212_0x3fcc93(0x177)][a1212_0x3fcc93(0x208)]=function(_0x41145c,_0x42c1b7){const _0x565c3e=a1212_0x3fcc93;this[_0x565c3e(0x22c)][_0x565c3e(0xeb)](_0x41145c)[_0x565c3e(0x22b)](function(_0x4d25c5){_0x42c1b7(null,_0x4d25c5?_0x4d25c5:![]);})[_0x565c3e(0x23a)](function(_0x196026){_0x42c1b7(_0x196026);});},AGIVertices[a1212_0x3fcc93(0x177)][a1212_0x3fcc93(0x101)]=function(_0x37f26d,_0x35e712){const _0xea446e=a1212_0x3fcc93;this[_0xea446e(0x22c)][_0xea446e(0x101)](_0x37f26d)['then'](function(_0x312e87){_0x35e712(null,_0x312e87);})[_0xea446e(0x23a)](function(_0x4ac9d7){_0x35e712(_0x4ac9d7);});},AGIVertices['prototype'][a1212_0x3fcc93(0xc7)]=function(_0x3aa2ea,_0x10dc20,_0x18e40e){const _0x438e17=a1212_0x3fcc93;this[_0x438e17(0x22c)][_0x438e17(0xc7)]({'uniqueid':this[_0x438e17(0x1fe)][_0x438e17(0xff)],'node':_0x3aa2ea['label'],'application':_0x3aa2ea[_0x438e17(0x94)],'data':_0x10dc20||null,'project_name':this[_0x438e17(0x1fe)][_0x438e17(0x1e4)],'callerid':this[_0x438e17(0x1fe)][_0x438e17(0xf9)]})[_0x438e17(0x22b)](function(_0x13a62a){_0x18e40e&&_0x18e40e(null,_0x13a62a);})[_0x438e17(0x23a)](function(_0xf25911){_0x18e40e&&_0x18e40e(_0xf25911);});},AGIVertices[a1212_0x3fcc93(0x177)][a1212_0x3fcc93(0x132)]=function(_0x37a9b6,_0x8dc26,_0x217c9d,_0x28d31c){const _0x3abca0=a1212_0x3fcc93;this[_0x3abca0(0x22c)][_0x3abca0(0x132)]({'uniqueid':this['channel']['uniqueid'],'callerid':this[_0x3abca0(0x1fe)][_0x3abca0(0xf9)],'calleridname':this[_0x3abca0(0x1fe)]['calleridname'],'context':this[_0x3abca0(0x1fe)][_0x3abca0(0xe4)],'extension':this['channel'][_0x3abca0(0x112)],'priority':this[_0x3abca0(0x1fe)][_0x3abca0(0x189)],'accountcode':this['channel'][_0x3abca0(0x147)],'dnid':this[_0x3abca0(0x1fe)][_0x3abca0(0x24b)],'projectName':this[_0x3abca0(0x1fe)][_0x3abca0(0x1e4)],'saveName':_0x8dc26,'filename':_0x37a9b6['file']||_0x8dc26,'savePath':_0x217c9d})[_0x3abca0(0x22b)](function(_0x1aaa2d){_0x28d31c(null,_0x1aaa2d);})['catch'](function(_0x2199cb){_0x28d31c(_0x2199cb);});},AGIVertices[a1212_0x3fcc93(0x177)][a1212_0x3fcc93(0x200)]=function(_0x5e8406,_0x930832,_0x45be35,_0x1e6c98,_0x437f80){const _0x4ae153=a1212_0x3fcc93;this[_0x4ae153(0x22c)]['createSquareMessage']({'uniqueid':this[_0x4ae153(0x1fe)][_0x4ae153(0xff)],'body':_0x5e8406,'direction':_0x930832,'providerName':_0x45be35,'providerResponse':_0x1e6c98})['then'](function(_0x284335){_0x437f80&&_0x437f80(null,_0x284335);})[_0x4ae153(0x23a)](function(_0x44c0b2){_0x437f80&&_0x437f80(_0x44c0b2);});},AGIVertices[a1212_0x3fcc93(0x177)][a1212_0x3fcc93(0x244)]=function(_0x395ff8,_0xa29c25){const _0x25393a=a1212_0x3fcc93;this['rpc'][_0x25393a(0x244)]({'firstName':_[_0x25393a(0x1ac)](_0x395ff8['name'])||_[_0x25393a(0x211)](_0x395ff8[_0x25393a(0x198)])?'callback_'+Math[_0x25393a(0x169)]():_0x395ff8[_0x25393a(0x198)],'lastName':_[_0x25393a(0x1ac)](_0x395ff8[_0x25393a(0x21e)])||_[_0x25393a(0x211)](_0x395ff8['lastName'])?null:_0x395ff8[_0x25393a(0x21e)],'phone':_0x395ff8[_0x25393a(0x15b)],'ListId':_0x395ff8[_0x25393a(0xcb)],'scheduledat':_0x395ff8[_0x25393a(0x17d)],'callbackUniqueid':this[_0x25393a(0x1fe)][_0x25393a(0xff)],'tags':_0x25393a(0x215),'description':_0x25393a(0x13b)+_0x395ff8[_0x25393a(0x17d)][_0x25393a(0x9b)](),'priority':_0x395ff8['callback_priority']})[_0x25393a(0x22b)](function(_0x4eaf12){_0xa29c25(null,_0x4eaf12);})['catch'](function(_0x230d3b){_0xa29c25(_0x230d3b);});},AGIVertices[a1212_0x3fcc93(0x177)]['getPause']=function(_0x4f800c,_0x57747b){const _0x539b56=a1212_0x3fcc93;this[_0x539b56(0x22c)][_0x539b56(0x120)](_0x4f800c)[_0x539b56(0x22b)](function(_0x887c32){_0x57747b(null,_0x887c32?_0x887c32['name']:![]);})[_0x539b56(0x23a)](function(_0x441b51){_0x57747b(_0x441b51);});},AGIVertices[a1212_0x3fcc93(0x177)][a1212_0x3fcc93(0x14a)]=function(_0xb4771f,_0x3c92db,_0x50ab96){const _0x505fb7=a1212_0x3fcc93,_0x8b7514={'role':'agent'};_0x8b7514[_0xb4771f]=this[_0x505fb7(0x1fe)]['callerid'],this[_0x505fb7(0x22c)]['agentPause'](_0x8b7514,_0x3c92db,this[_0x505fb7(0x1fe)][_0x505fb7(0xff)])[_0x505fb7(0x22b)](function(_0x3153ed){const _0x12d5b5=_0x505fb7;_0x50ab96(null,_[_0x12d5b5(0x211)](_0x3153ed)?![]:!![]);})[_0x505fb7(0x23a)](function(_0x1d75d5){const _0x137039=_0x505fb7;logger[_0x137039(0x1f6)](_0x1d75d5),_0x50ab96(null,![]);});},AGIVertices[a1212_0x3fcc93(0x177)]['agentUnpause']=function(_0x4f579e,_0x50c628){const _0x5c1c4a=a1212_0x3fcc93,_0x3e0449={'role':_0x5c1c4a(0x185)};_0x3e0449[_0x4f579e]=this[_0x5c1c4a(0x1fe)][_0x5c1c4a(0xf9)],this[_0x5c1c4a(0x22c)][_0x5c1c4a(0xfd)](_0x3e0449)['then'](function(_0x2a06f5){const _0x1c8343=_0x5c1c4a;_0x50c628(null,_[_0x1c8343(0x211)](_0x2a06f5)?![]:!![]);})[_0x5c1c4a(0x23a)](function(_0x2f2156){const _0x29b7c5=_0x5c1c4a;logger[_0x29b7c5(0x1f6)](_0x2f2156),_0x50c628(null,![]);});},AGIVertices[a1212_0x3fcc93(0x177)][a1212_0x3fcc93(0x153)]=function(_0x3e8a8a,_0x2b276b){const _0x1c0aac=a1212_0x3fcc93,_0x15b7ab={'role':_0x1c0aac(0x185)};_0x15b7ab[_0x3e8a8a]=this[_0x1c0aac(0x1fe)][_0x1c0aac(0xf9)],this[_0x1c0aac(0x22c)]['agentLogout'](_0x15b7ab)[_0x1c0aac(0x22b)](function(_0x269ed0){const _0x526114=_0x1c0aac;_0x2b276b(null,_[_0x526114(0x211)](_0x269ed0)?![]:!![]);})['catch'](function(_0xf547f8){const _0x52a2cc=_0x1c0aac;logger[_0x52a2cc(0x1f6)](_0xf547f8),_0x2b276b(null,![]);});},AGIVertices[a1212_0x3fcc93(0x177)][a1212_0x3fcc93(0x175)]=function(_0xf6b1e2,_0x1014a5){const _0x56d2d1=a1212_0x3fcc93,_0x9fea10={'role':_0x56d2d1(0x185)};_0x9fea10[_0xf6b1e2]=this[_0x56d2d1(0x1fe)][_0x56d2d1(0xf9)];const _0x3a3085=_0xf6b1e2!=_0x56d2d1(0xea)?util[_0x56d2d1(0x218)](_0x56d2d1(0xf3),_0x56d2d1(0x202),this[_0x56d2d1(0x1fe)]['callerid']):undefined;this[_0x56d2d1(0x22c)][_0x56d2d1(0x175)](_0x9fea10,_0x3a3085)[_0x56d2d1(0x22b)](function(_0x230dba){_0x1014a5(null,_['isNil'](_0x230dba)?![]:!![]);})[_0x56d2d1(0x23a)](function(_0x1369da){const _0xcf6601=_0x56d2d1;logger[_0xcf6601(0x1f6)](_0x1369da),_0x1014a5(null,![]);});},AGIVertices[a1212_0x3fcc93(0x177)]['shellCommand']=function(_0x9caa12,_0x44a25b){const _0x3dd1a0=a1212_0x3fcc93;sh[_0x3dd1a0(0x164)](_[_0x3dd1a0(0x1f2)](_0x9caa12),function(_0x27d642,_0x9f50b4){const _0x51fe35=_0x3dd1a0,_0x36b679=_0x9f50b4[_0x51fe35(0x174)](/(\r\n|\n|\r)/gm,'');_0x44a25b(null,_0x36b679);});},AGIVertices[a1212_0x3fcc93(0x177)][a1212_0x3fcc93(0x1b6)]=function(_0x50143d,_0x57846c){const _0x176f2a=a1212_0x3fcc93;scripts[_0x176f2a(0x1b6)](_0x50143d[_0x176f2a(0xb5)],_0x50143d['google_cloud_tts_text_type']||_0x176f2a(0xbf),_0x50143d[_0x176f2a(0xbf)],_0x50143d[_0x176f2a(0xd9)]||'en-US',_0x50143d['ssmlGender']||_0x176f2a(0x1b8),_0x50143d[_0x176f2a(0x134)]||_0x176f2a(0x23e))['then'](function(_0x409d79){_0x57846c(null,_0x409d79);})['catch'](function(_0x32728f){_0x57846c(_0x32728f);});},AGIVertices['prototype'][a1212_0x3fcc93(0x8c)]=function(_0x64adf3,_0x29401e){const _0x5b101e=a1212_0x3fcc93;scripts[_0x5b101e(0x8c)](_0x64adf3[_0x5b101e(0xbf)],_0x64adf3[_0x5b101e(0x24d)]||'en',0x1)['then'](function(_0x4164f5){_0x29401e(null,_0x4164f5);})['catch'](function(_0x288ffe){_0x29401e(_0x288ffe);});},AGIVertices[a1212_0x3fcc93(0x177)][a1212_0x3fcc93(0xa2)]=function(_0x4b429e,_0x48287c){const _0x1aa2a8=a1212_0x3fcc93,_0x30a92c={'uri':_0x4b429e[_0x1aa2a8(0xa9)],'method':_0x4b429e[_0x1aa2a8(0x229)],'json':!![],'resolveWithFullResponse':!![],'timeout':typeof parseInt(_0x4b429e['timeout'])===_0x1aa2a8(0x187)&&parseInt(_0x4b429e[_0x1aa2a8(0x235)])>=0x1?parseInt(_0x4b429e['timeout'])*0x3e8:0x5*0x3e8};if(_[_0x1aa2a8(0x17f)]([_0x1aa2a8(0x1d1),_0x1aa2a8(0x13e)],_0x30a92c['method']['toUpperCase']()))try{_0x30a92c[_0x1aa2a8(0xd4)]=_0x4b429e['rawBody']?JSON['parse'](_0x4b429e[_0x1aa2a8(0x1c2)]):{};}catch(_0xe68d09){logger[_0x1aa2a8(0x1f6)](_0x1aa2a8(0xca),_0xe68d09);}try{_0x30a92c[_0x1aa2a8(0x183)]=_0x4b429e['rawHeaders']?JSON[_0x1aa2a8(0x116)](_0x4b429e[_0x1aa2a8(0xc9)]):{};}catch(_0x42eb27){logger[_0x1aa2a8(0x1f6)](_0x1aa2a8(0x117),_0x42eb27);}if(_0x4b429e[_0x1aa2a8(0x145)])try{const _0x4179ea=require(_0x4b429e[_0x1aa2a8(0x145)])[_0x1aa2a8(0x20e)](this,_0x30a92c);_0x30a92c[_0x1aa2a8(0x10c)]=Mustache['render'](_0x4b429e[_0x1aa2a8(0xa9)],_0x4179ea,{},['$$','$$']),_0x30a92c['headers']&&(_0x30a92c['headers']=JSON[_0x1aa2a8(0x116)](Mustache[_0x1aa2a8(0x151)](JSON['stringify'](_0x30a92c[_0x1aa2a8(0x183)]),_0x4179ea,{},['$$','$$']))),_0x30a92c[_0x1aa2a8(0xd4)]&&(_0x30a92c['body']=JSON[_0x1aa2a8(0x116)](Mustache[_0x1aa2a8(0x151)](JSON[_0x1aa2a8(0x219)](_0x30a92c[_0x1aa2a8(0xd4)]),_0x4179ea,{},['$$','$$'])));}catch(_0x1bc5f1){logger[_0x1aa2a8(0x1f6)](_0x1aa2a8(0x1a8),_0x1bc5f1);}rp(_0x30a92c)[_0x1aa2a8(0x22b)](function(_0x2a8f54){const _0x5aba5f=_0x1aa2a8,_0x31d1c8={'statusCode':_0x2a8f54[_0x5aba5f(0x8f)]||0xc8,'statusMessage':_0x2a8f54[_0x5aba5f(0x22a)]||'OK','headers':_0x2a8f54[_0x5aba5f(0x183)]||{},'body':_0x2a8f54[_0x5aba5f(0xd4)]||{}};_0x48287c(null,_0x31d1c8);})[_0x1aa2a8(0x23a)](function(_0xb00bae){const _0x7218d5=_0x1aa2a8,_0x5f0d25={'statusCode':_0xb00bae[_0x7218d5(0x8f)]||0x1f4,'statusMessage':_0xb00bae['message']||_0x7218d5(0x136),'headers':_0xb00bae[_0x7218d5(0x236)][_0x7218d5(0x183)]||{},'body':_0xb00bae[_0x7218d5(0x236)]['body']||{}};_0x48287c(null,_0x5f0d25);});},AGIVertices[a1212_0x3fcc93(0x177)][a1212_0x3fcc93(0x1fd)]=function(_0x198aa3,_0x6e70df){const _0xec3e71=a1212_0x3fcc93;scripts['googleDialogflow'](this['channel'][_0xec3e71(0xff)],_0x198aa3['key'],_0x198aa3[_0xec3e71(0xbf)],_0x198aa3[_0xec3e71(0xab)]||'en')[_0xec3e71(0x22b)](function(_0xc6845b){_0x6e70df(null,_0xc6845b);})[_0xec3e71(0x23a)](function(_0x681529){_0x6e70df(_0x681529);});},AGIVertices[a1212_0x3fcc93(0x177)][a1212_0x3fcc93(0x143)]=function(_0x5e2d51,_0x244dc7){const _0x3436a1=a1212_0x3fcc93;scripts[_0x3436a1(0x143)](this[_0x3436a1(0x1fe)][_0x3436a1(0xff)],_0x5e2d51['dialogflowV2_project_id'],_0x5e2d51[_0x3436a1(0x1d5)],_0x5e2d51[_0x3436a1(0x1ee)],_0x5e2d51[_0x3436a1(0xbf)],_0x5e2d51['dialogflowV2_language']||'en')[_0x3436a1(0x22b)](function(_0xc37fc3){_0x244dc7(null,_0xc37fc3);})[_0x3436a1(0x23a)](function(_0xf73d15){_0x244dc7(_0xf73d15);});},AGIVertices[a1212_0x3fcc93(0x177)][a1212_0x3fcc93(0x1e0)]=function(_0x297582,_0x2439f8){const _0x5af5aa=a1212_0x3fcc93;scripts[_0x5af5aa(0x1e0)](this[_0x5af5aa(0x1fe)],_0x297582)[_0x5af5aa(0x22b)](function(_0x3673cd){_0x2439f8(null,_0x3673cd);})[_0x5af5aa(0x23a)](function(_0x1fde0a){_0x2439f8(_0x1fde0a);});},AGIVertices[a1212_0x3fcc93(0x177)][a1212_0x3fcc93(0x21a)]=function(_0x29a444,_0x30f6d5){const _0x1f1d2f=a1212_0x3fcc93;scripts['ispeechTTS'](_0x29a444[_0x1f1d2f(0xef)],_0x29a444[_0x1f1d2f(0xbf)],_0x29a444[_0x1f1d2f(0xa1)]||_0x1f1d2f(0x122),_0x29a444['speed'])['then'](function(_0x4ce88a){_0x30f6d5(null,_0x4ce88a);})[_0x1f1d2f(0x23a)](function(_0x305b77){_0x30f6d5(_0x305b77);});},AGIVertices[a1212_0x3fcc93(0x177)]['ispeechASR']=function(_0xe31fe7,_0x320f99,_0x260047){const _0x5518f0=a1212_0x3fcc93;scripts[_0x5518f0(0x1af)](_0x320f99,_0xe31fe7[_0x5518f0(0xef)],_0xe31fe7[_0x5518f0(0x87)]||_0x5518f0(0x122),this['isConfigured'](_0xe31fe7[_0x5518f0(0x18b)])?_0xe31fe7['model']:undefined)[_0x5518f0(0x22b)](function(_0x3cd1c9){_0x260047(null,_0x3cd1c9);})['catch'](function(_0x362e9e){_0x260047(_0x362e9e);});},AGIVertices[a1212_0x3fcc93(0x177)][a1212_0x3fcc93(0xf7)]=function(_0x342664,_0x55aeb4){const _0x27f0af=a1212_0x3fcc93;scripts[_0x27f0af(0xf7)](_0x342664[_0x27f0af(0x99)],_0x342664[_0x27f0af(0x248)],_0x342664[_0x27f0af(0x16f)],_0x342664[_0x27f0af(0x97)]||_0x27f0af(0xcf),_0x342664[_0x27f0af(0xbf)],_0x342664[_0x27f0af(0xec)]||_0x27f0af(0xbf))[_0x27f0af(0x22b)](function(_0x1bb5cb){_0x55aeb4(null,_0x1bb5cb);})[_0x27f0af(0x23a)](function(_0x3a3dd4){_0x55aeb4(_0x3a3dd4);});},AGIVertices[a1212_0x3fcc93(0x177)]['awsLex']=function(_0x3933e7,_0x220782){const _0x13d9d5=a1212_0x3fcc93;scripts[_0x13d9d5(0x199)](this[_0x13d9d5(0x1fe)]['uniqueid'],_0x3933e7[_0x13d9d5(0x99)],_0x3933e7[_0x13d9d5(0x248)],_0x3933e7[_0x13d9d5(0x20b)],_0x3933e7[_0x13d9d5(0xbf)],_0x3933e7[_0x13d9d5(0x14f)])[_0x13d9d5(0x22b)](function(_0x32d0de){_0x220782(null,_0x32d0de);})[_0x13d9d5(0x23a)](function(_0x3fa8a8){_0x220782(_0x3fa8a8);});},AGIVertices[a1212_0x3fcc93(0x177)][a1212_0x3fcc93(0x21c)]=function(_0x19ee74,_0x419f3f,_0x13de03){const _0x31ad76=a1212_0x3fcc93;scripts[_0x31ad76(0x21c)](_0x419f3f,_0x19ee74['key'],_0x19ee74[_0x31ad76(0xf8)]||_0x31ad76(0x122))[_0x31ad76(0x22b)](function(_0x463e3a){_0x13de03(null,_0x463e3a);})[_0x31ad76(0x23a)](function(_0x49eb30){_0x13de03(_0x49eb30);});},AGIVertices[a1212_0x3fcc93(0x177)][a1212_0x3fcc93(0x1d2)]=function(_0x5c5415,_0x4e1c70,_0x4b959d){const _0x302678=a1212_0x3fcc93;scripts['tildeASR'](_0x4e1c70,_0x5c5415[_0x302678(0xfe)],_0x5c5415[_0x302678(0x162)],_0x5c5415['uri'])[_0x302678(0x22b)](function(_0x2f7e50){_0x4b959d(null,_0x2f7e50);})[_0x302678(0x23a)](function(_0x21b38f){_0x4b959d(_0x21b38f);});},AGIVertices[a1212_0x3fcc93(0x177)][a1212_0x3fcc93(0x14e)]=function(_0x40f221){const _0xf7f6f9=a1212_0x3fcc93,_0x3a2a6c=_['includes'](verticesWithRetry,_0x40f221[_0xf7f6f9(0x94)])?_0x40f221:_[_0xf7f6f9(0x165)](_0x40f221);for(const _0x41ca3a in _0x3a2a6c){typeof _0x3a2a6c[_0x41ca3a]!==_0xf7f6f9(0x156)&&(_0x3a2a6c[_0x41ca3a]&&_[_0xf7f6f9(0xaa)](_0x3a2a6c[_0x41ca3a])&&(_[_0xf7f6f9(0x17f)](recursiveMapAttributes,_0x41ca3a)?_0x3a2a6c[_0x41ca3a]=this[_0xf7f6f9(0x1fb)](_0x3a2a6c[_0x41ca3a]):_0x3a2a6c[_0x41ca3a]=this[_0xf7f6f9(0x1a6)](_0x3a2a6c[_0x41ca3a])));}return _0x3a2a6c;},AGIVertices[a1212_0x3fcc93(0x177)][a1212_0x3fcc93(0x1d6)]=function(_0x159d14){const _0x29779b=a1212_0x3fcc93;for(const _0x4ef768 in _0x159d14){if(typeof _0x159d14[_0x4ef768]!==_0x29779b(0x156)){if(_[_0x29779b(0x182)](_0x159d14[_0x4ef768]))this[_0x29779b(0x1d6)](_0x159d14[_0x4ef768]);else{if(_[_0x29779b(0x140)](_0x159d14[_0x4ef768]))for(let _0x21ff2c=0x0;_0x21ff2c<_0x159d14[_0x4ef768]['length'];_0x21ff2c++){this['recursiveNodeIndex'](_0x159d14[_0x4ef768][_0x21ff2c]);}else _['isString'](_0x159d14[_0x4ef768])&&(_0x159d14[_0x4ef768]=this['replaceAllVariables'](_0x159d14[_0x4ef768]));}}}},AGIVertices['prototype'][a1212_0x3fcc93(0x1ec)]=function(_0x55c4f9,_0x560b30){const _0x2b764c=a1212_0x3fcc93;for(const _0x125413 in _0x55c4f9){if(typeof _0x55c4f9[_0x125413]!=='undefined'){if(_[_0x2b764c(0x182)](_0x55c4f9[_0x125413]))!_[_0x2b764c(0x1ac)](_0x55c4f9[_0x125413])&&this[_0x2b764c(0x1ec)](_0x55c4f9[_0x125413],util[_0x2b764c(0x218)](_0x2b764c(0x209),_0x560b30,_0x125413));else{if(_[_0x2b764c(0x140)](_0x55c4f9[_0x125413]))for(let _0x15ad14=0x0;_0x15ad14<_0x55c4f9[_0x125413][_0x2b764c(0xad)];_0x15ad14++){this['saveRestApiResult'](_0x55c4f9[_0x125413][_0x15ad14],util[_0x2b764c(0x218)](_0x2b764c(0x209),_0x560b30,_0x125413+'['+_0x15ad14+']'));}else!_['isNil'](_0x55c4f9[_0x125413])&&this['channel'][_0x2b764c(0x9a)](util[_0x2b764c(0x218)]('%s.%s',_0x560b30,_0x125413),_0x55c4f9[_0x125413]);}}}},AGIVertices[a1212_0x3fcc93(0x177)][a1212_0x3fcc93(0x1fb)]=function(_0x189bdb){const _0x15647e=a1212_0x3fcc93;try{const _0x2590fa=JSON['parse'](_0x189bdb);return this[_0x15647e(0x1d6)](_0x2590fa),JSON[_0x15647e(0x219)](_0x2590fa);}catch(_0x4a551d){return this['replaceAllVariables'](_0x189bdb);}},AGIVertices[a1212_0x3fcc93(0x177)][a1212_0x3fcc93(0x1a6)]=function(_0x1a55d6){const _0x1cc80d=a1212_0x3fcc93,_0x1131f8=_0x1a55d6[_0x1cc80d(0x18c)]('{');for(let _0x35004=0x1;_0x35004<_0x1131f8['length'];_0x35004+=0x1){const _0xa49f6d=_0x1131f8[_0x35004][_0x1cc80d(0x18c)]('}');_0xa49f6d['length']>0x1&&(_0x1a55d6=_0x1a55d6[_0x1cc80d(0x9e)]('{'+_0xa49f6d[0x0]+'}',this['channel']['getVariable'](_0xa49f6d[0x0])[_0x1cc80d(0x1f1)]||_0xa49f6d[0x0]));}if(_0x1131f8['length']===0x1)return _0x1a55d6[_0x1cc80d(0x9b)]();return this[_0x1cc80d(0x1a6)](_0x1a55d6);},AGIVertices[a1212_0x3fcc93(0x177)][a1212_0x3fcc93(0xbe)]=function(_0x383d79,_0x3ec3b5){const _0x5298c8=a1212_0x3fcc93,_0x464904=this[_0x5298c8(0x1fe)]['getVariable'](_0x383d79);if(_0x464904[_0x5298c8(0x203)]===-0x1)return _0x464904;return logger['info'](util['format'](_0x5298c8(0x17e),_0x3ec3b5,_0x464904[_0x5298c8(0x1f1)])),this[_0x5298c8(0x1fe)][_0x5298c8(0x9a)](_0x3ec3b5,_0x464904['extra']);},AGIVertices[a1212_0x3fcc93(0x177)][a1212_0x3fcc93(0x13f)]=function(_0x11c17b){return _0x11c17b&&_0x11c17b!=='0'&&_0x11c17b!=='-1'&&_0x11c17b!=='';},AGIVertices['prototype'][a1212_0x3fcc93(0x23c)]=function(_0xcb20c7){const _0x4b4083=a1212_0x3fcc93;return this[_0x4b4083(0xc7)][_0x4b4083(0x20e)](this,_0xcb20c7,'-'),_0xcb20c7[_0x4b4083(0xa7)]=_0xcb20c7[_0x4b4083(0x23c)],{'code':0xc8,'result':'-'};},AGIVertices[a1212_0x3fcc93(0x177)]['mrcpsynth']=function(_0x18d535){const _0x4d5edd=a1212_0x3fcc93;logger['info'](util[_0x4d5edd(0x218)]('Enter\x20in\x20MRCPSynth\x20(%s)\x20block',_0x18d535['label']));if(!this['isConfigured'](_0x18d535[_0x4d5edd(0xbf)]))return this['channel'][_0x4d5edd(0x23f)](_0x4d5edd(0x133));let _0x51fab3='\x22'+_0x18d535[_0x4d5edd(0xbf)]+'\x22';this[_0x4d5edd(0x13f)](_0x18d535[_0x4d5edd(0x236)])&&(_0x51fab3+=','+_0x18d535[_0x4d5edd(0x236)]);const _0xfd6b76=this[_0x4d5edd(0x1fe)][_0x4d5edd(0x164)](_0x4d5edd(0x1bf),_0x51fab3);if(_0xfd6b76['result']===-0x1)return _0xfd6b76;return this['channel'][_0x4d5edd(0x23f)](util['format'](_0x4d5edd(0x135),_0x51fab3));},AGIVertices[a1212_0x3fcc93(0x177)]['mrcprecog']=function(_0x347844){const _0x591eb2=a1212_0x3fcc93;logger[_0x591eb2(0x170)](util[_0x591eb2(0x218)](_0x591eb2(0x1ab),_0x347844['label']));if(!this[_0x591eb2(0x13f)](_0x347844[_0x591eb2(0x227)]))return this['channel'][_0x591eb2(0x23f)](_0x591eb2(0x154));let _0xfba49d=_0x347844[_0x591eb2(0x227)];this[_0x591eb2(0x13f)](_0x347844[_0x591eb2(0x236)])&&(_0xfba49d+=','+_0x347844[_0x591eb2(0x236)]);const _0x1c1c15=this[_0x591eb2(0x1fe)]['exec'](_0x591eb2(0xb6),_0xfba49d);if(_0x1c1c15[_0x591eb2(0x203)]===-0x1)return _0x1c1c15;const _0x5aceda=this['getAndSetVariable']('RECOG_CONFIDENCE()','MRCP_RECOG_CONFIDENCE');if(_0x5aceda[_0x591eb2(0x203)]===-0x1)return _0x5aceda;const _0x27a5ce=this[_0x591eb2(0xbe)](_0x591eb2(0x155),_0x591eb2(0xe8));if(_0x27a5ce[_0x591eb2(0x203)]===-0x1)return _0x27a5ce;const _0x18034e=this['getAndSetVariable'](_0x591eb2(0x18e),'MRCP_RECOG_INSTANCE');if(_0x18034e[_0x591eb2(0x203)]===-0x1)return _0x18034e;return this['channel'][_0x591eb2(0x23f)](util[_0x591eb2(0x218)](_0x591eb2(0x12d),_0xfba49d));},AGIVertices[a1212_0x3fcc93(0x177)][a1212_0x3fcc93(0xf1)]=function(_0xc227e4){const _0x2c5bc1=a1212_0x3fcc93;return logger[_0x2c5bc1(0x170)](util['format'](_0x2c5bc1(0x251),_0xc227e4[_0x2c5bc1(0x130)])),this['channel']['agi']([_0xc227e4['command'],_0xc227e4[_0x2c5bc1(0xbc)]]);},AGIVertices['prototype'][a1212_0x3fcc93(0x1e1)]=function(_0x2d1fa6){const _0x6734e4=a1212_0x3fcc93;logger[_0x6734e4(0x170)](util[_0x6734e4(0x218)](_0x6734e4(0x11c),_0x2d1fa6['label']));if(this[_0x6734e4(0x13f)](_0x2d1fa6[_0x6734e4(0x235)])){logger[_0x6734e4(0x170)](util[_0x6734e4(0x218)]('Wait\x20%s\x20seconds\x20before\x20answer',_0x2d1fa6['timeout']));const _0x40103f=this[_0x6734e4(0x1fe)][_0x6734e4(0x220)](_0x2d1fa6['timeout']);if(_0x40103f['result']===-0x1)return _0x40103f;}return this['channel'][_0x6734e4(0x1e1)]();},AGIVertices[a1212_0x3fcc93(0x177)]['callback']=function(_0x6eb00d){const _0x1745f8=a1212_0x3fcc93;logger[_0x1745f8(0x170)](util[_0x1745f8(0x218)](_0x1745f8(0x190),_0x6eb00d[_0x1745f8(0x130)]));if(!this[_0x1745f8(0x13f)](_0x6eb00d['list_id']))return this[_0x1745f8(0x1fe)][_0x1745f8(0x1f6)](_0x6eb00d,'no\x20list\x20selected');return _0x6eb00d[_0x1745f8(0x17d)]=moment(),this[_0x1745f8(0x13f)](_0x6eb00d[_0x1745f8(0x166)])&&(_0x6eb00d['scheduledAt']=moment()[_0x1745f8(0x1c9)](_0x6eb00d[_0x1745f8(0x166)],'minutes')),!this['isConfigured'](_0x6eb00d[_0x1745f8(0x216)])&&(_0x6eb00d['callback_priority']=0x2),this[_0x1745f8(0x244)]['sync'](this,_0x6eb00d),this['channel'][_0x1745f8(0x23f)](util[_0x1745f8(0x218)](_0x1745f8(0x12f),_0x6eb00d['phone'],_0x6eb00d[_0x1745f8(0xcb)],_0x6eb00d[_0x1745f8(0x17d)]));},AGIVertices[a1212_0x3fcc93(0x177)][a1212_0x3fcc93(0x146)]=function(_0x383030){const _0x4ba486=a1212_0x3fcc93;logger[_0x4ba486(0x170)](util[_0x4ba486(0x218)]('Enter\x20in\x20CUSTOM\x20APP\x20(%s)\x20block',_0x383030['label']));const _0x5e8c3b=this['channel'][_0x4ba486(0x164)](_0x383030[_0x4ba486(0x137)],_0x383030[_0x4ba486(0x236)]);if(_0x5e8c3b[_0x4ba486(0x203)]===-0x1)return _0x5e8c3b;return this[_0x4ba486(0x1fe)][_0x4ba486(0x23f)](util[_0x4ba486(0x218)](_0x4ba486(0xe2),_0x383030[_0x4ba486(0x137)],_0x383030[_0x4ba486(0x236)]));},AGIVertices[a1212_0x3fcc93(0x177)][a1212_0x3fcc93(0x8d)]=function(_0x32eecf){const _0x5b3772=a1212_0x3fcc93;logger[_0x5b3772(0x170)](util[_0x5b3772(0x218)](_0x5b3772(0xfb),_0x32eecf[_0x5b3772(0x130)]));if(!this[_0x5b3772(0x13f)](_0x32eecf[_0x5b3772(0xbf)]))return this[_0x5b3772(0x1fe)][_0x5b3772(0x23f)]('no\x20text\x20configured');let _0x5c1603='\x22'+_0x32eecf[_0x5b3772(0xbf)]+'\x22';this[_0x5b3772(0x13f)](_0x32eecf[_0x5b3772(0x236)])&&(_0x5c1603+=','+_0x32eecf[_0x5b3772(0x236)]);const _0x820d51=this[_0x5b3772(0x1fe)]['exec'](_0x5b3772(0x1bf),_0x5c1603);if(_0x820d51['result']===-0x1)return _0x820d51;return this[_0x5b3772(0x1fe)]['noop'](util['format'](_0x5b3772(0x135),_0x5c1603));},AGIVertices[a1212_0x3fcc93(0x177)]['sestektts']=function(_0x162bd8){const _0x507a02=a1212_0x3fcc93;logger[_0x507a02(0x170)](util[_0x507a02(0x218)]('Enter\x20in\x20SESTEKTTS\x20(%s)\x20block',_0x162bd8['label']));if(!this[_0x507a02(0x13f)](_0x162bd8[_0x507a02(0xbf)]))return this['channel'][_0x507a02(0x23f)](_0x507a02(0x133));let _0x5732af='\x22'+_0x162bd8['text']+'\x22';this['isConfigured'](_0x162bd8[_0x507a02(0x236)])&&(_0x5732af+=','+_0x162bd8[_0x507a02(0x236)]);const _0x48e3dc=this[_0x507a02(0x1fe)][_0x507a02(0x164)]('MRCPSynth',_0x5732af);if(_0x48e3dc['result']===-0x1)return _0x48e3dc;return this['channel'][_0x507a02(0x23f)](util['format']('Executed\x20command\x20MRCPSynth\x20%s',_0x5732af));},AGIVertices[a1212_0x3fcc93(0x177)][a1212_0x3fcc93(0x125)]=function(_0x12c209){const _0x55c028=a1212_0x3fcc93;logger[_0x55c028(0x170)](util[_0x55c028(0x218)](_0x55c028(0x167),_0x12c209[_0x55c028(0x130)]));if(!this[_0x55c028(0x13f)](_0x12c209['grammar']))return this[_0x55c028(0x1fe)][_0x55c028(0x23f)](_0x55c028(0x154));let _0x3dd98c=_0x12c209[_0x55c028(0x227)];this[_0x55c028(0x13f)](_0x12c209[_0x55c028(0x236)])&&(_0x3dd98c+=','+_0x12c209[_0x55c028(0x236)]);const _0x1c3e57=this['channel']['exec'](_0x55c028(0xb6),_0x3dd98c);if(_0x1c3e57[_0x55c028(0x203)]===-0x1)return _0x1c3e57;const _0x41c4e2=this[_0x55c028(0xbe)](_0x55c028(0xbd),'LUMENVOX_ASR_CONFIDENCE');if(_0x41c4e2['result']===-0x1)return _0x41c4e2;const _0x252460=this[_0x55c028(0xbe)]('RECOG_INPUT()','LUMENVOX_ASR_TRANSCRIPT');if(_0x252460['result']===-0x1)return _0x252460;const _0x383585=this[_0x55c028(0xbe)](_0x55c028(0x18e),'LUMENVOX_ASR_INSTANCE');if(_0x383585['result']===-0x1)return _0x383585;return this[_0x55c028(0x1fe)]['noop'](util[_0x55c028(0x218)]('Executed\x20command\x20MRCPRecog\x20%s',_0x3dd98c));},AGIVertices[a1212_0x3fcc93(0x177)][a1212_0x3fcc93(0x12c)]=function(_0x1a83c2){const _0x573856=a1212_0x3fcc93;logger[_0x573856(0x170)](util[_0x573856(0x218)](_0x573856(0x159),_0x1a83c2[_0x573856(0x130)]));if(!this['isConfigured'](_0x1a83c2[_0x573856(0x227)]))return this[_0x573856(0x1fe)][_0x573856(0x23f)](_0x573856(0x154));let _0x1980f8=_0x1a83c2[_0x573856(0x227)];this[_0x573856(0x13f)](_0x1a83c2[_0x573856(0x236)])&&(_0x1980f8+=','+_0x1a83c2[_0x573856(0x236)]);const _0x1d3dfa=this['channel'][_0x573856(0x164)](_0x573856(0xb6),_0x1980f8);if(_0x1d3dfa[_0x573856(0x203)]===-0x1)return _0x1d3dfa;const _0x5a2d60=this[_0x573856(0xbe)](_0x573856(0xbd),_0x573856(0x15f));if(_0x5a2d60[_0x573856(0x203)]===-0x1)return _0x5a2d60;const _0x42daad=this['getAndSetVariable'](_0x573856(0x155),_0x573856(0x12a));if(_0x42daad[_0x573856(0x203)]===-0x1)return _0x42daad;const _0x3327b2=this[_0x573856(0xbe)](_0x573856(0x18e),_0x573856(0x1ae));if(_0x3327b2[_0x573856(0x203)]===-0x1)return _0x3327b2;return this[_0x573856(0x1fe)][_0x573856(0x23f)](util['format']('Executed\x20command\x20MRCPRecog\x20%s',_0x1980f8));},AGIVertices['prototype']['database']=function(_0x16a828){const _0x3be095=a1212_0x3fcc93;logger[_0x3be095(0x170)](util['format'](_0x3be095(0x14c),_0x16a828['label']));if(!this[_0x3be095(0x13f)](_0x16a828[_0x3be095(0x11f)]))return this['channel']['error'](_0x16a828,_0x3be095(0xac));const _0x18bfdb=this['getSquareOdbc']['sync'](this,_0x16a828['odbc_id']);if(!_0x18bfdb)return this[_0x3be095(0x1fe)]['error'](_0x16a828,'no\x20odbc\x20database\x20found');if(!this[_0x3be095(0x13f)](_0x16a828['query']))return this[_0x3be095(0x1fe)][_0x3be095(0x1f6)](_0x16a828,_0x3be095(0x19e));const _0x2b062c=_0x16a828['query']['replace'](/(\r\n|\n|\r)/gm,'\x20');this[_0x3be095(0x1fe)]['noop'](util[_0x3be095(0x218)](_0x3be095(0x1dc),_0x2b062c));const _0x1b63e1=this[_0x3be095(0x1f3)][_0x3be095(0x20e)](this,_0x18bfdb,_0x2b062c);this[_0x3be095(0xc7)][_0x3be095(0x20e)](this,_0x16a828,_0x2b062c);if(!this[_0x3be095(0x13f)](_0x16a828['variable_id']))return this[_0x3be095(0x1fe)][_0x3be095(0x23f)](_0x3be095(0x1bb));const _0x5769f0=this[_0x3be095(0x1bc)][_0x3be095(0x20e)](this,_0x16a828[_0x3be095(0x1ff)]);if(!_0x5769f0)return this[_0x3be095(0x1fe)][_0x3be095(0x1f6)](_0x16a828,_0x3be095(0x1a5));const _0x5f1f2b=this;return _0x1b63e1[_0x3be095(0x13d)](function(_0x5ddb2e,_0x4decd5){const _0x392369=_0x3be095;Object[_0x392369(0x1db)](_0x5ddb2e)[_0x392369(0x13d)](function(_0x172d7d){const _0x67f5f6=_0x392369;_0x5f1f2b['channel'][_0x67f5f6(0x9a)](util[_0x67f5f6(0x218)](_0x67f5f6(0x1aa),_0x5769f0,_0x4decd5,_0x172d7d),_0x5ddb2e[_0x172d7d]);});}),this[_0x3be095(0x1fe)][_0x3be095(0x9a)](util[_0x3be095(0x218)](_0x3be095(0x1cb),_0x5769f0),_0x1b63e1[_0x3be095(0xad)]),this[_0x3be095(0x1fe)][_0x3be095(0x23f)](util[_0x3be095(0x218)]('variable\x20%s\x20set',_0x5769f0));},AGIVertices[a1212_0x3fcc93(0x177)][a1212_0x3fcc93(0xae)]=function(_0x25edac){const _0x4d49ef=a1212_0x3fcc93;logger[_0x4d49ef(0xc5)](util[_0x4d49ef(0x218)](_0x4d49ef(0x11e),_0x25edac[_0x4d49ef(0x130)]));if(!this['isConfigured'](_0x25edac['sip_id']))return this[_0x4d49ef(0x1fe)][_0x4d49ef(0x1f6)](_0x25edac,_0x4d49ef(0x173));const _0x15b4e6=this[_0x4d49ef(0x9f)]['sync'](this,_0x25edac['sip_id']);if(!_0x15b4e6)return this['channel']['error'](_0x25edac,_0x4d49ef(0x138));const _0xa7cd98=this[_0x4d49ef(0x1fe)]['exec']('DIAL',[util['format']('SIP/%s',_0x15b4e6),_0x25edac[_0x4d49ef(0x235)],_0x25edac[_0x4d49ef(0x20c)],_0x25edac[_0x4d49ef(0xa9)]]);if(_0xa7cd98[_0x4d49ef(0x203)]===-0x1)return _0xa7cd98;return this[_0x4d49ef(0x1fe)][_0x4d49ef(0x23f)](util['format']('Executed\x20command\x20%s',_0x4d49ef(0xa0)));},AGIVertices[a1212_0x3fcc93(0x177)][a1212_0x3fcc93(0x9d)]=function(_0xeccbf4){const _0x52baea=a1212_0x3fcc93;logger[_0x52baea(0x170)](util[_0x52baea(0x218)](_0x52baea(0xc6),_0xeccbf4[_0x52baea(0x130)]));if(!this['isConfigured'](_0xeccbf4[_0x52baea(0xef)]))return this[_0x52baea(0x1fe)][_0x52baea(0x23f)]('no\x20key\x20configured');if(!this['isConfigured'](_0xeccbf4[_0x52baea(0xbf)]))return this[_0x52baea(0x1fe)][_0x52baea(0x23f)](_0x52baea(0x133));this[_0x52baea(0x1fe)][_0x52baea(0xe0)]=!![],this[_0x52baea(0xc7)](_0xeccbf4),this[_0x52baea(0x200)](_0xeccbf4[_0x52baea(0xbf)],'in','',''),this[_0x52baea(0x1fe)]['noop'](util[_0x52baea(0x218)](_0x52baea(0x1e8),_0xeccbf4[_0x52baea(0xbf)]));const _0x567097=this[_0x52baea(0x1fd)][_0x52baea(0x20e)](this,_0xeccbf4);if(_0x567097){for(const _0x5bd676 in _0x567097){typeof _0x567097[_0x5bd676]!=='undefined'&&this['channel'][_0x52baea(0x9a)](util[_0x52baea(0x218)](_0x52baea(0x90),_0x5bd676[_0x52baea(0x9c)]()),_0x567097[_0x5bd676]);}return this[_0x52baea(0x200)](_0x567097['speech'],_0x52baea(0xa8),'dialogflow',''),this[_0x52baea(0x1fe)][_0x52baea(0x23f)](util['format'](_0x52baea(0x128),_0x567097[_0x52baea(0x212)]));}return this[_0x52baea(0x1fe)][_0x52baea(0x1f6)](_0xeccbf4,'Dialogflow\x20is\x20unreachable');},AGIVertices[a1212_0x3fcc93(0x177)]['dialogflowV2']=function(_0x585b32){const _0x549d79=a1212_0x3fcc93;logger[_0x549d79(0x170)](util[_0x549d79(0x218)](_0x549d79(0xda),_0x585b32[_0x549d79(0x130)]));if(!this[_0x549d79(0x13f)](_0x585b32['dialogflowV2_project_id']))return this[_0x549d79(0x1fe)][_0x549d79(0x23f)](_0x549d79(0xce));if(!this[_0x549d79(0x13f)](_0x585b32[_0x549d79(0x1d5)]))return this['channel'][_0x549d79(0x23f)]('no\x20client_email\x20configured');if(!this['isConfigured'](_0x585b32['private_key']))return this[_0x549d79(0x1fe)]['noop']('no\x20private_key\x20configured');if(!this[_0x549d79(0x13f)](_0x585b32[_0x549d79(0x1fa)]))return this[_0x549d79(0x1fe)][_0x549d79(0x23f)](_0x549d79(0x1a2));if(!this[_0x549d79(0x13f)](_0x585b32['text']))return this[_0x549d79(0x1fe)][_0x549d79(0x23f)](_0x549d79(0x133));this[_0x549d79(0x1fe)][_0x549d79(0xe0)]=!![],this['createSquareDetailsReport'](_0x585b32),this[_0x549d79(0x200)](_0x585b32[_0x549d79(0xbf)],'in','',''),this[_0x549d79(0x1fe)][_0x549d79(0x23f)](util[_0x549d79(0x218)](_0x549d79(0x152),_0x585b32['text']));const _0x409d0a=this[_0x549d79(0x143)]['sync'](this,_0x585b32);if(_0x409d0a){for(const _0x593eb3 in _0x409d0a){typeof _0x409d0a[_0x593eb3]!=='undefined'&&(_0x593eb3!==_0x549d79(0x1f8)&&this[_0x549d79(0x1fe)][_0x549d79(0x9a)](util[_0x549d79(0x218)](_0x549d79(0x90),_0x593eb3[_0x549d79(0x9c)]()),_0x409d0a[_0x593eb3]));}return this[_0x549d79(0x200)](_0x409d0a[_0x549d79(0x212)],_0x549d79(0xa8),'dialogflowV2',_0x409d0a[_0x549d79(0x1f8)]),this[_0x549d79(0x1fe)][_0x549d79(0x23f)](util[_0x549d79(0x218)]('DialogflowV2\x20Result\x20%s',_0x409d0a[_0x549d79(0x212)]));}return this[_0x549d79(0x1fe)][_0x549d79(0x1f6)](_0x585b32,'DialogflowV2\x20is\x20unreachable');},AGIVertices['prototype']['sesteknda']=function(_0x2b015a){const _0x8d68c7=a1212_0x3fcc93;logger[_0x8d68c7(0x170)](util[_0x8d68c7(0x218)](_0x8d68c7(0x1b2),_0x2b015a[_0x8d68c7(0x130)]));if(!this[_0x8d68c7(0x13f)](_0x2b015a[_0x8d68c7(0x24c)]))return this[_0x8d68c7(0x1fe)]['noop'](_0x8d68c7(0x1ce));if(!this[_0x8d68c7(0x13f)](_0x2b015a[_0x8d68c7(0xd8)]))return this[_0x8d68c7(0x1fe)][_0x8d68c7(0x23f)](_0x8d68c7(0x205));if(!this[_0x8d68c7(0x13f)](_0x2b015a[_0x8d68c7(0xa5)]))return this[_0x8d68c7(0x1fe)][_0x8d68c7(0x23f)](_0x8d68c7(0x176));if(!this[_0x8d68c7(0x13f)](_0x2b015a[_0x8d68c7(0x150)]))return this['channel'][_0x8d68c7(0x23f)](_0x8d68c7(0x133));this[_0x8d68c7(0x1fe)][_0x8d68c7(0xe0)]=!![],this[_0x8d68c7(0xc7)](_0x2b015a),this['createSquareMessage'](_0x2b015a[_0x8d68c7(0xbf)],'in','',''),this[_0x8d68c7(0x1fe)][_0x8d68c7(0x23f)](util['format'](_0x8d68c7(0xb8),_0x2b015a[_0x8d68c7(0xbf)]));const _0xa31a4=this[_0x8d68c7(0x1e0)][_0x8d68c7(0x20e)](this,_0x2b015a);if(_0xa31a4){for(const _0x15d4ad in _0xa31a4){typeof _0xa31a4[_0x15d4ad]!==_0x8d68c7(0x156)&&this[_0x8d68c7(0x1fe)][_0x8d68c7(0x9a)](util[_0x8d68c7(0x218)](_0x8d68c7(0x111),_0x15d4ad['toUpperCase']()),_0xa31a4[_0x15d4ad]);}this[_0x8d68c7(0x200)](_0xa31a4[_0x8d68c7(0x212)],_0x8d68c7(0xa8),_0x8d68c7(0x109),'');if(_0xa31a4[_0x8d68c7(0x1f5)]){this[_0x8d68c7(0x1fe)][_0x8d68c7(0x23f)](util['format']('Sestek\x20NDA\x20%s\x20file\x20created',_0xa31a4['audiofile']));const _0x4a7ed0=this[_0x8d68c7(0x1fe)]['streamFile'](_0xa31a4[_0x8d68c7(0x1f5)]);try{fs[_0x8d68c7(0x17b)](_0xa31a4[_0x8d68c7(0x1f5)]+'.wav');}catch(_0x1779c2){logger[_0x8d68c7(0x1f6)](_0x1779c2);}return _0x4a7ed0;}else return this[_0x8d68c7(0x1fe)][_0x8d68c7(0x23f)](util['format'](_0x8d68c7(0x225),_0xa31a4['speech']));}return this['channel'][_0x8d68c7(0x1f6)](_0x2b015a,'SestekNDA\x20is\x20unreachable');},AGIVertices[a1212_0x3fcc93(0x177)][a1212_0x3fcc93(0x16a)]=function(_0x42e3df){const _0xb6fe04=a1212_0x3fcc93;return logger['info'](util[_0xb6fe04(0x218)]('Enter\x20in\x20END\x20(%s)\x20block',_0x42e3df[_0xb6fe04(0x130)])),this[_0xb6fe04(0x1fe)][_0xb6fe04(0x23f)](_0xb6fe04(0x16a));},AGIVertices[a1212_0x3fcc93(0x177)]['ext_dial']=function(_0x3c8e58){const _0x10ab73=a1212_0x3fcc93;logger[_0x10ab73(0x170)](util['format'](_0x10ab73(0x14d),_0x3c8e58['label']));let _0x4a5bf8='';if(_0x3c8e58[_0x10ab73(0x1a9)]){if(!this[_0x10ab73(0x13f)](_0x3c8e58[_0x10ab73(0x1a9)]))return this[_0x10ab73(0x1fe)]['error'](_0x3c8e58,_0x10ab73(0x213));else{const _0x21f540=parseInt(_0x3c8e58[_0x10ab73(0x1a9)],0xa);if(isNaN(_0x21f540))_0x4a5bf8=_0x3c8e58[_0x10ab73(0x1a9)];else{_0x4a5bf8=this['getTrunk'][_0x10ab73(0x20e)](this,_0x3c8e58[_0x10ab73(0x1a9)]);if(!_0x4a5bf8)return this[_0x10ab73(0x1fe)]['error'](_0x3c8e58,_0x10ab73(0x163));}}}else{if(_0x3c8e58[_0x10ab73(0x1f0)])_0x4a5bf8=_0x3c8e58['trunk_name'];else return this['channel']['error'](_0x3c8e58,_0x10ab73(0x213));}const _0xc0e15b=this['channel'][_0x10ab73(0x164)](_0x10ab73(0xa0),[util[_0x10ab73(0x218)]('SIP/%s/%s',_0x4a5bf8,_0x3c8e58[_0x10ab73(0x15b)]),_0x3c8e58[_0x10ab73(0x235)],_0x3c8e58[_0x10ab73(0x20c)],_0x3c8e58[_0x10ab73(0xa9)]]);if(_0xc0e15b[_0x10ab73(0x203)]===-0x1)return _0xc0e15b;return this[_0x10ab73(0x1fe)]['noop'](util[_0x10ab73(0x218)](_0x10ab73(0x1c4),'DIAL'));},AGIVertices[a1212_0x3fcc93(0x177)][a1212_0x3fcc93(0x1f4)]=function(_0x2fdc89){const _0x241ac3=a1212_0x3fcc93;return logger[_0x241ac3(0x170)](util[_0x241ac3(0x218)](_0x241ac3(0x100),_0x2fdc89[_0x241ac3(0x130)])),this['channel']['noop'](_0x241ac3(0x1f4));},AGIVertices[a1212_0x3fcc93(0x177)]['getdigits']=function(_0x1f1acc){const _0x1c34eb=a1212_0x3fcc93;logger['info'](util[_0x1c34eb(0x218)](_0x1c34eb(0x20d),_0x1f1acc[_0x1c34eb(0x130)]));if(_0x1f1acc[_0x1c34eb(0xa7)]===0x0)return this[_0x1c34eb(0x23c)](_0x1f1acc);_0x1f1acc[_0x1c34eb(0xa7)]-=0x1;if(!this[_0x1c34eb(0x13f)](_0x1f1acc['file_id']))return this[_0x1c34eb(0x1fe)][_0x1c34eb(0x1f6)](_0x1f1acc,'no\x20file\x20audio\x20selected');const _0x314ee5=this['getSound'][_0x1c34eb(0x20e)](this,_0x1f1acc[_0x1c34eb(0xd1)]);if(!_0x314ee5)return this['channel'][_0x1c34eb(0x1f6)](_0x1f1acc,_0x1c34eb(0x249));if(!this[_0x1c34eb(0x13f)](_0x1f1acc[_0x1c34eb(0x1ff)]))return this[_0x1c34eb(0x1fe)][_0x1c34eb(0x1f6)]('no\x20variable\x20selected\x20for\x20the\x20result');const _0x5480d=this[_0x1c34eb(0x1fe)]['getData'](_0x314ee5,_0x1f1acc[_0x1c34eb(0x102)],_0x1f1acc[_0x1c34eb(0x144)]),_0x4c161b=_0x5480d[_0x1c34eb(0x203)]?_0x5480d[_0x1c34eb(0x203)][_0x1c34eb(0x9b)]():'';logger['info']('test',JSON[_0x1c34eb(0x219)](_0x5480d));if(_0x5480d[_0x1c34eb(0x203)]===-0x1)return this[_0x1c34eb(0xc7)]['sync'](this,_0x1f1acc,_0x4c161b),_0x5480d;else _0x5480d['extra']===_0x1c34eb(0x235)?_0x5480d[_0x1c34eb(0x203)]=_0x4c161b[_0x1c34eb(0xad)]>=parseInt(_0x1f1acc['mindigit'])?'x':'i':_0x5480d[_0x1c34eb(0x203)]=_0x4c161b[_0x1c34eb(0xad)]>=parseInt(_0x1f1acc[_0x1c34eb(0xb2)])&&_0x4c161b[_0x1c34eb(0xad)]<=parseInt(_0x1f1acc[_0x1c34eb(0x144)])?'x':'i';const _0x466fac=this['getVariable'][_0x1c34eb(0x20e)](this,_0x1f1acc['variable_id']);if(!_0x466fac)return this[_0x1c34eb(0x1fe)][_0x1c34eb(0x1f6)](_0x1f1acc,_0x1c34eb(0x1a5));this[_0x1c34eb(0x1fe)][_0x1c34eb(0x9a)](_0x466fac,_0x4c161b);if(this[_0x1c34eb(0x13f)](_0x1f1acc[_0x1c34eb(0x1dd)])){const _0x2c767d=parseInt(_0x1f1acc[_0x1c34eb(0x1dd)],0xa),_0x5ad1c7=rs[_0x1c34eb(0x10e)]({'charset':'*','length':_0x2c767d}),_0x8ffce5=_0x4c161b['length'];_0x8ffce5>0x0?_0x8ffce5>_0x2c767d?this[_0x1c34eb(0xc7)][_0x1c34eb(0x20e)](this,_0x1f1acc,_0x1f1acc['hiddendigitspos']===_0x1c34eb(0x11a)?_0x5ad1c7+_0x4c161b[_0x1c34eb(0x23d)](_0x2c767d):_0x4c161b[_0x1c34eb(0x23d)](0x0,_0x8ffce5-_0x2c767d)+_0x5ad1c7):this[_0x1c34eb(0xc7)]['sync'](this,_0x1f1acc,rs[_0x1c34eb(0x10e)]({'charset':'*','length':_0x8ffce5})):this['createSquareDetailsReport'][_0x1c34eb(0x20e)](this,_0x1f1acc,'');}else this[_0x1c34eb(0xc7)][_0x1c34eb(0x20e)](this,_0x1f1acc,_0x4c161b);return _0x5480d;},AGIVertices[a1212_0x3fcc93(0x177)]['getsecretdigits']=function(_0x1a55e9){const _0x12a20a=a1212_0x3fcc93;return logger[_0x12a20a(0x170)](util[_0x12a20a(0x218)](_0x12a20a(0x1cf),_0x1a55e9[_0x12a20a(0x130)])),this[_0x12a20a(0x204)](_0x1a55e9);},AGIVertices[a1212_0x3fcc93(0x177)][a1212_0x3fcc93(0xf4)]=function(_0x107024){const _0x4939b7=a1212_0x3fcc93;return logger[_0x4939b7(0x170)](util['format'](_0x4939b7(0x1d3),_0x107024[_0x4939b7(0x130)])),this[_0x4939b7(0xc7)][_0x4939b7(0x20e)](this,_0x107024,_0x107024[_0x4939b7(0x238)]),this[_0x4939b7(0x1fe)][_0x4939b7(0x23f)](util[_0x4939b7(0x218)]('GOAL\x20%s',_0x107024['goalname']));},AGIVertices['prototype'][a1212_0x3fcc93(0xbb)]=function(_0x48f29c){const _0x3a2251=a1212_0x3fcc93;logger['info'](util[_0x3a2251(0x218)]('[AGI]\x20Enter\x20in\x20AWSPOLLY\x20(%s)\x20block',_0x48f29c[_0x3a2251(0x130)]));if(!this['isConfigured'](_0x48f29c['aws_access_key_id'])||!this[_0x3a2251(0x13f)](_0x48f29c[_0x3a2251(0x248)]))return this['channel'][_0x3a2251(0x23f)](_0x3a2251(0x1e9));if(!this[_0x3a2251(0x13f)](_0x48f29c['text']))return this[_0x3a2251(0x1fe)][_0x3a2251(0x23f)](_0x3a2251(0x133));this[_0x3a2251(0x1fe)]['noop'](util[_0x3a2251(0x218)](_0x3a2251(0xee),_0x48f29c['text']));const _0x3844c4=this['awsPolly'][_0x3a2251(0x20e)](this,_0x48f29c);if(_0x3844c4){this[_0x3a2251(0x1fe)]['noop'](util['format']('aws\x20Polly\x20%s\x20file\x20created',_0x3844c4));const _0xa7068e=this['channel']['streamFile'](_0x3844c4);try{fs['unlink'](_0x3844c4+'.wav');}catch(_0x5aa86){logger[_0x3a2251(0x1f6)](_0x5aa86);}return _0xa7068e;}return this[_0x3a2251(0x1fe)][_0x3a2251(0x1f6)](_0x48f29c,_0x3a2251(0x17a));},AGIVertices['prototype']['awslex']=function(_0x5c8c62){const _0x247330=a1212_0x3fcc93;logger[_0x247330(0x170)](util[_0x247330(0x218)]('Enter\x20in\x20Amazon\x20Lex\x20(%s)\x20block',_0x5c8c62['label']));if(!this[_0x247330(0x13f)](_0x5c8c62[_0x247330(0x99)])||!this[_0x247330(0x13f)](_0x5c8c62[_0x247330(0x248)]))return this[_0x247330(0x1fe)][_0x247330(0x23f)](_0x247330(0x1e9));if(!this[_0x247330(0x13f)](_0x5c8c62['aws_bot_name']))return this[_0x247330(0x1fe)][_0x247330(0x23f)](_0x247330(0x1a0));if(!this[_0x247330(0x13f)](_0x5c8c62['text']))return this['channel'][_0x247330(0x23f)](_0x247330(0x133));this[_0x247330(0x1fe)][_0x247330(0xe0)]=!![],this[_0x247330(0xc7)](_0x5c8c62),this['createSquareMessage'](_0x5c8c62[_0x247330(0xbf)],'in','',''),this[_0x247330(0x1fe)][_0x247330(0x23f)](util[_0x247330(0x218)](_0x247330(0x16e),_0x5c8c62['text']));const _0xe25beb=this[_0x247330(0x199)][_0x247330(0x20e)](this,_0x5c8c62);if(_0xe25beb){for(const _0x2dfb1c in _0xe25beb){typeof _0xe25beb[_0x2dfb1c]!=='undefined'&&_[_0x247330(0xaa)](_0xe25beb[_0x2dfb1c])&&this[_0x247330(0x1fe)][_0x247330(0x9a)](util['format'](_0x247330(0x10a),_0x2dfb1c[_0x247330(0x9c)]()),_0xe25beb[_0x2dfb1c]);}return _[_0x247330(0x211)](_0xe25beb['message'])?this[_0x247330(0x1fe)][_0x247330(0x23f)](_0x247330(0x178)):(this['createSquareMessage'](_0xe25beb[_0x247330(0x142)],_0x247330(0xa8),_0x247330(0x1c3),''),this['channel'][_0x247330(0x23f)](util['format'](_0x247330(0x1e7),_0xe25beb[_0x247330(0x142)])));}return this[_0x247330(0x1fe)][_0x247330(0x1f6)](_0x5c8c62,_0x247330(0x15a));},AGIVertices['prototype']['googleasr']=function(_0x350807){const _0x10ee5d=a1212_0x3fcc93;logger[_0x10ee5d(0x170)](util[_0x10ee5d(0x218)](_0x10ee5d(0x1ad),_0x350807[_0x10ee5d(0x130)],_0x350807['timeout']));if(!this[_0x10ee5d(0x13f)](_0x350807['key']))return this[_0x10ee5d(0x1fe)][_0x10ee5d(0x23f)](_0x10ee5d(0x22d));const _0x4d9c00=_0x10ee5d(0x179),_0xf7efaf=util[_0x10ee5d(0x218)]('%s/recordings/%s',FILES_PATH,rs[_0x10ee5d(0x10e)](0x4)),_0x2feae1=util['format'](_0x10ee5d(0x209),_0xf7efaf,_0x4d9c00);let _0x5e5d4b=!![];_0x350807['beep']==='NOBEEP'&&(_0x5e5d4b=![]);const _0x5eaa25=this[_0x10ee5d(0x1fe)]['recordFile'](_0xf7efaf,_0x4d9c00,_0x350807['intKey'],_0x350807[_0x10ee5d(0x235)],undefined,_0x5e5d4b);if(_0x5eaa25[_0x10ee5d(0x203)]!==-0x1){this['channel'][_0x10ee5d(0x23f)](util[_0x10ee5d(0x218)](_0x10ee5d(0xb1),_0x2feae1));const _0x519c52=this[_0x10ee5d(0x21c)][_0x10ee5d(0x20e)](this,_0x350807,_0x2feae1);if(_0x519c52){for(const _0x2f397c in _0x519c52){typeof _0x519c52[_0x2f397c]!==_0x10ee5d(0x156)&&this[_0x10ee5d(0x1fe)][_0x10ee5d(0x9a)](util[_0x10ee5d(0x218)](_0x10ee5d(0x24a),_0x2f397c[_0x10ee5d(0x9c)]()),_0x519c52[_0x2f397c]);}return this['channel'][_0x10ee5d(0x23f)](util[_0x10ee5d(0x218)]('GoogleASR\x20Result\x20%s',JSON['stringify'](_0x519c52)));}}return _0x5eaa25;},AGIVertices[a1212_0x3fcc93(0x177)][a1212_0x3fcc93(0x1ca)]=function(_0x1dfe7c){const _0x397702=a1212_0x3fcc93;logger[_0x397702(0x170)](util['format'](_0x397702(0xe5),_0x1dfe7c[_0x397702(0x130)]));if(!this[_0x397702(0x13f)](_0x1dfe7c[_0x397702(0xfe)]))return this[_0x397702(0x1fe)]['noop'](_0x397702(0x22e));if(!this[_0x397702(0x13f)](_0x1dfe7c[_0x397702(0x162)]))return this['channel']['noop'](_0x397702(0x16d));const _0x36ad5a=_0x397702(0x179),_0x15303a=util[_0x397702(0x218)](_0x397702(0x20f),FILES_PATH,rs[_0x397702(0x10e)](0x4)),_0x4877bd=util[_0x397702(0x218)](_0x397702(0x209),_0x15303a,_0x36ad5a);let _0x39c609=!![];_0x1dfe7c[_0x397702(0x19f)]===_0x397702(0x1de)&&(_0x39c609=![]);const _0x2e6209=this[_0x397702(0x1fe)][_0x397702(0xa6)](_0x15303a,_0x36ad5a,_0x1dfe7c[_0x397702(0x129)],_0x1dfe7c[_0x397702(0x235)],undefined,_0x39c609);if(_0x2e6209['result']!==-0x1){this['channel'][_0x397702(0x23f)](util[_0x397702(0x218)]('tilde\x20%s\x20file\x20created',_0x4877bd));const _0x1dc3da=this['tildeASR'][_0x397702(0x20e)](this,_0x1dfe7c,_0x4877bd);if(_0x1dc3da){for(const _0x1af743 in _0x1dc3da){typeof _0x1dc3da[_0x1af743]!=='undefined'&&this[_0x397702(0x1fe)][_0x397702(0x9a)](util[_0x397702(0x218)]('TILDE_ASR_%s',_0x1af743[_0x397702(0x9c)]()),_0x1dc3da[_0x1af743]);}return this[_0x397702(0x1fe)]['noop'](util['format'](_0x397702(0x21b),JSON[_0x397702(0x219)](_0x1dc3da)));}}return _0x2e6209;},AGIVertices[a1212_0x3fcc93(0x177)][a1212_0x3fcc93(0x13c)]=function(_0x3f7866){const _0x3f77b2=a1212_0x3fcc93;return logger['info'](util[_0x3f77b2(0x218)]('Enter\x20in\x20GOTO\x20(%s)\x20block',_0x3f7866[_0x3f77b2(0x130)])),this[_0x3f77b2(0x1fe)][_0x3f77b2(0x1da)](_0x3f7866['context'],_0x3f7866[_0x3f77b2(0x112)],_0x3f7866[_0x3f77b2(0x189)]);},AGIVertices[a1212_0x3fcc93(0x177)][a1212_0x3fcc93(0x16b)]=function(_0x2e2a61){const _0x98ab49=a1212_0x3fcc93;logger[_0x98ab49(0x170)](util[_0x98ab49(0x218)](_0x98ab49(0x88),_0x2e2a61['label']));if(!this[_0x98ab49(0x13f)](_0x2e2a61['condition']))return this[_0x98ab49(0x1fe)][_0x98ab49(0x1f6)](_0x2e2a61,_0x98ab49(0xc8));try{const _0x1d0b14=eval(_0x2e2a61[_0x98ab49(0x210)])?'true':_0x98ab49(0xf0);return this[_0x98ab49(0x1fe)]['noop'](util[_0x98ab49(0x218)](_0x98ab49(0x172),_0x2e2a61[_0x98ab49(0x210)],_0x1d0b14)),{'code':0xc8,'result':_0x1d0b14};}catch(_0x4880d3){return{'code':0xc8,'result':_0x98ab49(0xf0)};}},AGIVertices['prototype'][a1212_0x3fcc93(0x252)]=function(_0x5078d1){const _0x4eb5e2=a1212_0x3fcc93;logger[_0x4eb5e2(0x170)](util['format'](_0x4eb5e2(0xdb),_0x5078d1[_0x4eb5e2(0x130)]));if(!this[_0x4eb5e2(0x13f)](_0x5078d1[_0x4eb5e2(0xf5)]))return this[_0x4eb5e2(0x1fe)][_0x4eb5e2(0x1f6)](_0x5078d1,_0x4eb5e2(0x1f9));const _0x50ef1e=this['getIntervals'][_0x4eb5e2(0x20e)](this,_0x5078d1[_0x4eb5e2(0xf5)]);if(!_0x50ef1e)return this[_0x4eb5e2(0x1fe)][_0x4eb5e2(0x1f6)](_0x5078d1,'no\x20intervals\x20found');for(let _0x56eebb=0x0;_0x56eebb<_0x50ef1e[_0x4eb5e2(0xad)];_0x56eebb+=0x1){const _0x384b4b=this[_0x4eb5e2(0x1fe)][_0x4eb5e2(0x1bc)](util[_0x4eb5e2(0x218)](_0x4eb5e2(0x8b),_0x50ef1e[_0x56eebb]));if(_0x384b4b[_0x4eb5e2(0x203)]===-0x1)return _0x384b4b;logger[_0x4eb5e2(0x170)](util[_0x4eb5e2(0x218)]('IFTIME\x20%s\x20%s',_0x50ef1e[_0x56eebb],_0x384b4b[_0x4eb5e2(0x1f1)]));if(_0x384b4b[_0x4eb5e2(0x1f1)]==='true')return logger[_0x4eb5e2(0x170)](util[_0x4eb5e2(0x218)](_0x4eb5e2(0xe6),_0x50ef1e[_0x56eebb],'true')),this[_0x4eb5e2(0x1fe)][_0x4eb5e2(0x23f)](util[_0x4eb5e2(0x218)]('IFTIME\x20%s\x20%s',_0x50ef1e[_0x56eebb],_0x4eb5e2(0x242))),{'code':0xc8,'result':'true'};else logger[_0x4eb5e2(0x170)](util['format'](_0x4eb5e2(0xe6),_0x50ef1e[_0x56eebb],'false')),this[_0x4eb5e2(0x1fe)][_0x4eb5e2(0x23f)](util[_0x4eb5e2(0x218)](_0x4eb5e2(0xe6),_0x50ef1e[_0x56eebb],_0x4eb5e2(0xf0)));}return{'code':0xc8,'result':_0x4eb5e2(0xf0)};},AGIVertices[a1212_0x3fcc93(0x177)][a1212_0x3fcc93(0x234)]=function(_0x55da70){const _0x2f82ed=a1212_0x3fcc93;return logger[_0x2f82ed(0x170)](util[_0x2f82ed(0x218)](_0x2f82ed(0xe1),_0x55da70[_0x2f82ed(0x130)])),this[_0x2f82ed(0x1fe)][_0x2f82ed(0x234)]();},AGIVertices[a1212_0x3fcc93(0x177)][a1212_0x3fcc93(0x186)]=function(_0x80e1c8){const _0x49ab80=a1212_0x3fcc93;logger[_0x49ab80(0x170)](util[_0x49ab80(0x218)]('Enter\x20in\x20ISPEECHASR\x20(%s)\x20block',_0x80e1c8[_0x49ab80(0x130)]));if(!this[_0x49ab80(0x13f)](_0x80e1c8[_0x49ab80(0xef)]))return this[_0x49ab80(0x1fe)]['noop'](_0x49ab80(0x22d));const _0x27e398='wav',_0x592ba5=util[_0x49ab80(0x218)](_0x49ab80(0x20f),FILES_PATH,rs[_0x49ab80(0x10e)](0x4)),_0x5cb195=util[_0x49ab80(0x218)](_0x49ab80(0x209),_0x592ba5,_0x27e398);let _0x91b286=!![];_0x80e1c8[_0x49ab80(0x19f)]===_0x49ab80(0x1de)&&(_0x91b286=![]);const _0x2534a5=this[_0x49ab80(0x1fe)][_0x49ab80(0xa6)](_0x592ba5,_0x27e398,_0x80e1c8[_0x49ab80(0x129)],_0x80e1c8[_0x49ab80(0x235)],undefined,_0x91b286);if(_0x2534a5[_0x49ab80(0x203)]!==-0x1){this[_0x49ab80(0x1fe)][_0x49ab80(0x23f)](util[_0x49ab80(0x218)](_0x49ab80(0x1b5),_0x5cb195));const _0x4fb10d=this[_0x49ab80(0x1af)]['sync'](this,_0x80e1c8,_0x5cb195);if(_0x4fb10d){for(const _0x5affee in _0x4fb10d){typeof _0x4fb10d[_0x5affee]!==_0x49ab80(0x156)&&this[_0x49ab80(0x1fe)][_0x49ab80(0x9a)](util[_0x49ab80(0x218)]('ISPEECH_ASR_%s',_0x5affee[_0x49ab80(0x9c)]()),_0x4fb10d[_0x5affee]);}return this[_0x49ab80(0x1fe)]['noop'](util[_0x49ab80(0x218)]('IspeechASR\x20Result\x20%s',JSON[_0x49ab80(0x219)](_0x4fb10d)));}}return _0x2534a5;},AGIVertices['prototype'][a1212_0x3fcc93(0x16c)]=function(_0x79fe42){const _0x50c8b0=a1212_0x3fcc93;logger[_0x50c8b0(0x170)](util[_0x50c8b0(0x218)](_0x50c8b0(0x92),_0x79fe42[_0x50c8b0(0x130)]));if(!this[_0x50c8b0(0x13f)](_0x79fe42[_0x50c8b0(0xef)]))return this[_0x50c8b0(0x1fe)][_0x50c8b0(0x23f)]('no\x20key\x20configured');if(!this[_0x50c8b0(0x13f)](_0x79fe42[_0x50c8b0(0xbf)]))return this[_0x50c8b0(0x1fe)][_0x50c8b0(0x23f)](_0x50c8b0(0x133));this[_0x50c8b0(0x1fe)]['noop'](util['format'](_0x50c8b0(0x21d),_0x79fe42[_0x50c8b0(0xbf)]));const _0x263b9b=this['ispeechTTS'][_0x50c8b0(0x20e)](this,_0x79fe42);if(_0x263b9b){this[_0x50c8b0(0x1fe)]['noop'](util[_0x50c8b0(0x218)](_0x50c8b0(0x1b5),_0x263b9b));const _0x1d8ce4=this[_0x50c8b0(0x1fe)][_0x50c8b0(0x1be)](_0x263b9b,_0x79fe42[_0x50c8b0(0x129)]);try{fs['unlink'](_0x263b9b+_0x50c8b0(0x223));}catch(_0x3dbca7){logger[_0x50c8b0(0x1f6)](_0x3dbca7);}return _0x1d8ce4;}return this['channel']['error'](_0x79fe42,_0x50c8b0(0x1e3));},AGIVertices[a1212_0x3fcc93(0x177)][a1212_0x3fcc93(0x237)]=function(_0x3c3d8d){const _0x220978=a1212_0x3fcc93;logger[_0x220978(0x170)](util[_0x220978(0x218)]('Enter\x20in\x20LOGIN\x20(%s)\x20block',_0x3c3d8d[_0x220978(0x130)]));if(!this[_0x220978(0x13f)](_0x3c3d8d['findBy']))return this['channel'][_0x220978(0x1f6)](_0x3c3d8d,'no\x20find\x20by\x20configured');logger[_0x220978(0x170)](util[_0x220978(0x218)](_0x220978(0x96),this[_0x220978(0x1fe)][_0x220978(0xf9)],_0x3c3d8d[_0x220978(0x18f)]));const _0x26561c=this['agentLogin']['sync'](this,_0x3c3d8d[_0x220978(0x18f)]);return _0x26561c?(logger['info'](util[_0x220978(0x218)]('AGENT\x20%s\x20FOUND\x20BY',this[_0x220978(0x1fe)][_0x220978(0xf9)],_0x3c3d8d[_0x220978(0x18f)])),this[_0x220978(0x1fe)][_0x220978(0x23f)](util['format'](_0x220978(0x10b),this[_0x220978(0x1fe)][_0x220978(0xf9)],_0x3c3d8d['findBy'])),{'code':0xc8,'result':_0x220978(0x1d9)}):(logger[_0x220978(0x170)](util[_0x220978(0x218)]('AGENT\x20%s\x20NOT\x20FOUND\x20BY',this[_0x220978(0x1fe)][_0x220978(0xf9)],_0x3c3d8d[_0x220978(0x18f)])),this[_0x220978(0x1fe)][_0x220978(0x23f)](util[_0x220978(0x218)](_0x220978(0xaf),this[_0x220978(0x1fe)][_0x220978(0xf9)],_0x3c3d8d[_0x220978(0x18f)])),{'code':0xc8,'result':_0x220978(0x105)});},AGIVertices[a1212_0x3fcc93(0x177)][a1212_0x3fcc93(0x180)]=function(_0x2078da){const _0xa781a1=a1212_0x3fcc93;logger[_0xa781a1(0x170)](util[_0xa781a1(0x218)](_0xa781a1(0xd0),_0x2078da['label']));if(!this[_0xa781a1(0x13f)](_0x2078da['findBy']))return this[_0xa781a1(0x1fe)][_0xa781a1(0x1f6)](_0x2078da,_0xa781a1(0x207));logger[_0xa781a1(0x170)](util[_0xa781a1(0x218)]('FIND\x20AGENT\x20%s\x20BY\x20%s',this[_0xa781a1(0x1fe)][_0xa781a1(0xf9)],_0x2078da[_0xa781a1(0x18f)]));const _0x5db000=this[_0xa781a1(0x153)][_0xa781a1(0x20e)](this,_0x2078da['findBy']);return _0x5db000?(logger[_0xa781a1(0x170)](util[_0xa781a1(0x218)](_0xa781a1(0x10b),this[_0xa781a1(0x1fe)][_0xa781a1(0xf9)],_0x2078da[_0xa781a1(0x18f)])),this[_0xa781a1(0x1fe)][_0xa781a1(0x23f)](util['format'](_0xa781a1(0x10b),this[_0xa781a1(0x1fe)]['callerid'],_0x2078da['findBy'])),{'code':0xc8,'result':_0xa781a1(0x1d9)}):(logger[_0xa781a1(0x170)](util['format'](_0xa781a1(0xaf),this[_0xa781a1(0x1fe)][_0xa781a1(0xf9)],_0x2078da['findBy'])),this[_0xa781a1(0x1fe)][_0xa781a1(0x23f)](util[_0xa781a1(0x218)](_0xa781a1(0xaf),this[_0xa781a1(0x1fe)]['callerid'],_0x2078da[_0xa781a1(0x18f)])),{'code':0xc8,'result':'failure'});},AGIVertices[a1212_0x3fcc93(0x177)][a1212_0x3fcc93(0xe9)]=function(_0x5e792c){const _0x1a0130=a1212_0x3fcc93;logger[_0x1a0130(0x170)](util[_0x1a0130(0x218)](_0x1a0130(0x127),_0x5e792c[_0x1a0130(0x130)]));if(!this[_0x1a0130(0x13f)](_0x5e792c[_0x1a0130(0x1b4)]))return this[_0x1a0130(0x1fe)][_0x1a0130(0x1f6)](_0x5e792c,_0x1a0130(0x253));this['channel']['noop'](util[_0x1a0130(0x218)]('math\x20%s',_0x5e792c['operation']));const _0x594939=eval(_0x5e792c[_0x1a0130(0x1b4)]);if(!this[_0x1a0130(0x13f)](_0x5e792c[_0x1a0130(0x1ff)]))return this[_0x1a0130(0x1fe)][_0x1a0130(0x23f)](_0x1a0130(0x1bb));const _0x1e26af=this['getVariable']['sync'](this,_0x5e792c['variable_id']);if(!_0x1e26af)return this['channel'][_0x1a0130(0x1f6)](_0x5e792c,_0x1a0130(0x1a5));if(_[_0x1a0130(0x140)](_0x594939)){const _0x5815c9=this;return _0x594939[_0x1a0130(0x13d)](function(_0x103bde,_0x18186f){const _0x178edb=_0x1a0130;_0x5815c9['channel']['setVariable'](util['format'](_0x178edb(0x124),_0x1e26af,_0x18186f),_0x103bde);}),this[_0x1a0130(0x1fe)][_0x1a0130(0x23f)](util[_0x1a0130(0x218)]('variable\x20%s[key]\x20set',_0x1e26af));}else return this[_0x1a0130(0x1fe)][_0x1a0130(0x9a)](_0x1e26af,_0x594939);},AGIVertices[a1212_0x3fcc93(0x177)][a1212_0x3fcc93(0xba)]=function(_0x45eaad){const _0x3f1edf=a1212_0x3fcc93;logger[_0x3f1edf(0x170)](util[_0x3f1edf(0x218)](_0x3f1edf(0xc1),_0x45eaad['label']));if(_0x45eaad['retry']===0x0)return this[_0x3f1edf(0x23c)](_0x45eaad);_0x45eaad['retry']-=0x1;if(!this['isConfigured'](_0x45eaad[_0x3f1edf(0xd1)]))return this['channel'][_0x3f1edf(0x1f6)](_0x45eaad,_0x3f1edf(0x148));const _0x147f58=this[_0x3f1edf(0x139)]['sync'](this,_0x45eaad['file_id']);if(!_0x147f58)return this[_0x3f1edf(0x1fe)][_0x3f1edf(0x1f6)](_0x45eaad,_0x3f1edf(0x249));const _0x33854f=this[_0x3f1edf(0x1fe)][_0x3f1edf(0xb3)](_0x147f58,_0x45eaad['response'],_0x45eaad[_0x3f1edf(0x228)]);let _0x35dbc0=_0x33854f[_0x3f1edf(0x203)];if(_0x33854f[_0x3f1edf(0x203)]===-0x1)return this[_0x3f1edf(0xc7)]['sync'](this,_0x45eaad,'-1'),_0x33854f;else{if(_0x33854f[_0x3f1edf(0x1f1)]==='timeout')_0x33854f[_0x3f1edf(0x203)]=_0x33854f[_0x3f1edf(0x203)][_0x3f1edf(0xad)]>0x0?_0x33854f[_0x3f1edf(0x203)]:'t';else _[_0x3f1edf(0x1ac)](_0x33854f[_0x3f1edf(0x203)])&&(_0x33854f[_0x3f1edf(0x203)]='#',_0x35dbc0='#');}if(!this[_0x3f1edf(0x13f)](_0x45eaad['variable_id']))this[_0x3f1edf(0x1fe)][_0x3f1edf(0x23f)](_0x3f1edf(0x1bb));else{const _0x1a1e78=this[_0x3f1edf(0x1bc)][_0x3f1edf(0x20e)](this,_0x45eaad[_0x3f1edf(0x1ff)]);if(!_0x1a1e78)return this[_0x3f1edf(0x1fe)]['error'](_0x45eaad,'no\x20variable\x20found');this[_0x3f1edf(0x1fe)][_0x3f1edf(0x9a)](_0x1a1e78,_0x35dbc0);}return this[_0x3f1edf(0xc7)]['sync'](this,_0x45eaad,_0x35dbc0),_0x33854f;},AGIVertices['prototype'][a1212_0x3fcc93(0x23f)]=function(_0x40d2a4){const _0xfb99=a1212_0x3fcc93;return logger[_0xfb99(0x170)](util[_0xfb99(0x218)]('Enter\x20in\x20NOOP\x20(%s)\x20block',_0x40d2a4['label'])),this['channel']['noop'](_0x40d2a4[_0xfb99(0x243)]||_0x40d2a4[_0xfb99(0x130)]);},AGIVertices['prototype'][a1212_0x3fcc93(0x245)]=function(_0x1a8e72){const _0x14e1b4=a1212_0x3fcc93;logger[_0x14e1b4(0x170)](util['format'](_0x14e1b4(0x239),_0x1a8e72['label']));if(!this[_0x14e1b4(0x13f)](_0x1a8e72[_0x14e1b4(0x18f)]))return this[_0x14e1b4(0x1fe)]['error'](_0x1a8e72,_0x14e1b4(0x207));logger['info'](util[_0x14e1b4(0x218)]('FIND\x20AGENT\x20%s\x20BY\x20%s',this['channel'][_0x14e1b4(0xf9)],_0x1a8e72['findBy']));const _0x12a711=this['getPause'][_0x14e1b4(0x20e)](this,_0x1a8e72[_0x14e1b4(0x24f)]),_0x2605b7=this[_0x14e1b4(0x14a)]['sync'](this,_0x1a8e72[_0x14e1b4(0x18f)],_0x12a711);return _0x2605b7?(logger[_0x14e1b4(0x170)](util[_0x14e1b4(0x218)]('AGENT\x20%s\x20FOUND\x20BY',this[_0x14e1b4(0x1fe)]['callerid'],_0x1a8e72[_0x14e1b4(0x18f)])),this[_0x14e1b4(0x1fe)]['noop'](util['format'](_0x14e1b4(0x10b),this[_0x14e1b4(0x1fe)][_0x14e1b4(0xf9)],_0x1a8e72[_0x14e1b4(0x18f)])),{'code':0xc8,'result':_0x14e1b4(0x1d9)}):(logger[_0x14e1b4(0x170)](util['format'](_0x14e1b4(0xaf),this[_0x14e1b4(0x1fe)][_0x14e1b4(0xf9)],_0x1a8e72[_0x14e1b4(0x18f)])),this[_0x14e1b4(0x1fe)][_0x14e1b4(0x23f)](util[_0x14e1b4(0x218)](_0x14e1b4(0x10b),this['channel'][_0x14e1b4(0xf9)],_0x1a8e72['findBy'])),{'code':0xc8,'result':'failure'});},AGIVertices['prototype'][a1212_0x3fcc93(0x194)]=function(_0x29c565){const _0x5b5a61=a1212_0x3fcc93;logger[_0x5b5a61(0x170)](util[_0x5b5a61(0x218)](_0x5b5a61(0x15d),_0x29c565[_0x5b5a61(0x130)]));if(!this[_0x5b5a61(0x13f)](_0x29c565[_0x5b5a61(0xd1)]))return this['channel'][_0x5b5a61(0x1f6)](_0x29c565,'no\x20file\x20audio\x20selected');const _0x2fcb1a=this[_0x5b5a61(0x139)][_0x5b5a61(0x20e)](this,_0x29c565[_0x5b5a61(0xd1)]);if(!_0x2fcb1a)return this['channel'][_0x5b5a61(0x1f6)](_0x29c565,_0x5b5a61(0x249));const _0x4a5f6f=this[_0x5b5a61(0x1fe)][_0x5b5a61(0x164)]('PLAYBACK',[_0x2fcb1a,_0x29c565['opts']]);if(_0x4a5f6f[_0x5b5a61(0x203)]===-0x1)return _0x4a5f6f;return this[_0x5b5a61(0x1fe)][_0x5b5a61(0x23f)](util[_0x5b5a61(0x218)](_0x5b5a61(0xe2),_0x5b5a61(0x10d),_0x2fcb1a));},AGIVertices[a1212_0x3fcc93(0x177)]['queue']=function(_0x4e2352){const _0x45fd1e=a1212_0x3fcc93;logger[_0x45fd1e(0x170)](util[_0x45fd1e(0x218)](_0x45fd1e(0x232),_0x4e2352[_0x45fd1e(0x130)]));if(!this[_0x45fd1e(0x13f)](_0x4e2352['queue_id']))return this[_0x45fd1e(0x1fe)][_0x45fd1e(0x1f6)](_0x4e2352,_0x45fd1e(0x19a));let _0x2a6609='';const _0x1da241=parseInt(_0x4e2352[_0x45fd1e(0x15c)],0xa);if(isNaN(_0x1da241))_0x2a6609=_0x4e2352[_0x45fd1e(0x15c)];else{_0x2a6609=this[_0x45fd1e(0x1ba)]['sync'](this,_0x4e2352[_0x45fd1e(0x15c)]);if(!_0x2a6609)return this['channel'][_0x45fd1e(0x1f6)](_0x4e2352,_0x45fd1e(0xcc));}let _0x3c9bf0='';if(this[_0x45fd1e(0x13f)](_0x4e2352[_0x45fd1e(0xd1)])){const _0x5958da=this[_0x45fd1e(0x139)][_0x45fd1e(0x20e)](this,_0x4e2352[_0x45fd1e(0xd1)]);_0x5958da&&(_0x3c9bf0=_0x5958da);}this[_0x45fd1e(0xc7)][_0x45fd1e(0x20e)](this,_0x4e2352,_0x2a6609);_0x4e2352[_0x45fd1e(0x20c)][_0x45fd1e(0xd5)]('x')<0x0&&(_0x4e2352[_0x45fd1e(0x20c)]+='x');_0x4e2352[_0x45fd1e(0x20c)][_0x45fd1e(0xd5)]('X')<0x0&&(_0x4e2352[_0x45fd1e(0x20c)]+='X');this[_0x45fd1e(0x1fe)]['setVariable'](_0x45fd1e(0xa3),_0x2a6609?_0x2a6609[_0x45fd1e(0xde)]():'');const _0x30c245=this[_0x45fd1e(0x1fe)][_0x45fd1e(0x164)](_0x45fd1e(0x1c8),[_0x2a6609,_0x4e2352['opts'],_0x4e2352[_0x45fd1e(0xa9)],_0x3c9bf0,_0x4e2352[_0x45fd1e(0x235)],_0x4e2352[_0x45fd1e(0xf1)],_0x4e2352[_0x45fd1e(0x196)],_0x4e2352[_0x45fd1e(0x1eb)],'',_0x4e2352[_0x45fd1e(0xfa)]]);if(_0x30c245[_0x45fd1e(0x203)]===-0x1)return _0x30c245;return this[_0x45fd1e(0x1fe)][_0x45fd1e(0x23f)](util[_0x45fd1e(0x218)](_0x45fd1e(0xe2),_0x45fd1e(0x1c8),_0x2a6609));},AGIVertices['prototype'][a1212_0x3fcc93(0x10f)]=function(_0x345619){const _0x31e404=a1212_0x3fcc93;logger[_0x31e404(0x170)](util[_0x31e404(0x218)]('Enter\x20in\x20RECORD\x20(%s)\x20block',_0x345619[_0x31e404(0x130)]));const _0x38ab4e=_0x345619[_0x31e404(0x221)]||'wav',_0xa57ae8=util[_0x31e404(0x218)](_0x31e404(0x1cc),this[_0x31e404(0x1fe)][_0x31e404(0xff)],rs[_0x31e404(0x10e)](0x5)),_0x1fc7c4=util[_0x31e404(0x218)](_0x31e404(0x1e5),FILES_PATH,_0xa57ae8,_0x38ab4e),_0x574637=util[_0x31e404(0x218)](_0x31e404(0x20f),FILES_PATH,_0xa57ae8);return this[_0x31e404(0x132)]['sync'](this,_0x345619,_0xa57ae8,_0x1fc7c4),this[_0x31e404(0x1fe)][_0x31e404(0x9a)](_0x31e404(0xd7),_0xa57ae8),logger['info'](_0x31e404(0x160),_0x574637,_0x38ab4e,_0x345619[_0x31e404(0x91)],_0x345619[_0x31e404(0x235)]),this['channel'][_0x31e404(0xa6)](_0x574637,_0x38ab4e,_0x345619[_0x31e404(0x91)],_0x345619[_0x31e404(0x235)],undefined,!![]);},AGIVertices[a1212_0x3fcc93(0x177)][a1212_0x3fcc93(0xc0)]=function(_0x1905cf){const _0x1cfabb=a1212_0x3fcc93;logger[_0x1cfabb(0x170)](util[_0x1cfabb(0x218)](_0x1cfabb(0xcd),_0x1905cf['label']));if(!this[_0x1cfabb(0x13f)](_0x1905cf['url']))return this[_0x1cfabb(0x1fe)][_0x1cfabb(0x23f)](_0x1cfabb(0xe3));const _0x5043d3=this[_0x1cfabb(0xa2)][_0x1cfabb(0x20e)](this,_0x1905cf);logger[_0x1cfabb(0x170)](util[_0x1cfabb(0x218)](_0x1cfabb(0x193),util[_0x1cfabb(0x246)](_0x5043d3,{'showHidden':![],'depth':null})));if(!this[_0x1cfabb(0x13f)](_0x1905cf[_0x1cfabb(0x1ff)]))return this['channel'][_0x1cfabb(0x23f)](_0x1cfabb(0x119));const _0x487910=this[_0x1cfabb(0x1bc)][_0x1cfabb(0x20e)](this,_0x1905cf[_0x1cfabb(0x1ff)]);if(!_0x487910)return this[_0x1cfabb(0x1fe)][_0x1cfabb(0x1f6)](_0x1905cf,_0x1cfabb(0x1a5));this[_0x1cfabb(0x1fe)]['setVariable'](util[_0x1cfabb(0x218)](_0x1cfabb(0x123),_0x487910),_0x5043d3['statusCode']?_0x5043d3[_0x1cfabb(0x8f)]:_0x1cfabb(0x233)),this[_0x1cfabb(0x1fe)][_0x1cfabb(0x9a)](util[_0x1cfabb(0x218)](_0x1cfabb(0x240),_0x487910),_0x5043d3['statusMessage']?_0x5043d3[_0x1cfabb(0x22a)]:'OK');if(_0x5043d3[_0x1cfabb(0xd4)])try{this[_0x1cfabb(0x1ec)](_0x5043d3[_0x1cfabb(0xd4)],_0x487910);}catch(_0x554647){logger[_0x1cfabb(0x1f6)](util['format'](_0x1cfabb(0x110),_0x487910));}return this['channel']['noop'](util[_0x1cfabb(0x218)](_0x1cfabb(0x230),_0x487910));},AGIVertices[a1212_0x3fcc93(0x177)]['saydigits']=function(_0x29c708){const _0x549fd4=a1212_0x3fcc93;return logger[_0x549fd4(0x170)](util[_0x549fd4(0x218)]('Enter\x20in\x20SAYDIGITS\x20(%s)\x20block',_0x29c708[_0x549fd4(0x130)])),this[_0x549fd4(0x1fe)]['sayDigits'](_0x29c708[_0x549fd4(0x195)]['replace'](/\s+/g,''),_0x29c708[_0x549fd4(0x91)]);},AGIVertices['prototype'][a1212_0x3fcc93(0x95)]=function(_0x57b683){const _0xf41ecc=a1212_0x3fcc93;return logger[_0xf41ecc(0x170)](util[_0xf41ecc(0x218)](_0xf41ecc(0x11b),_0x57b683[_0xf41ecc(0x130)])),this[_0xf41ecc(0x1fe)][_0xf41ecc(0x121)](_0x57b683[_0xf41ecc(0x187)][_0xf41ecc(0x174)](/\s+/g,''),_0x57b683['escape_digits']);},AGIVertices[a1212_0x3fcc93(0x177)][a1212_0x3fcc93(0x250)]=function(_0x49aa68){const _0x28f00d=a1212_0x3fcc93;return logger[_0x28f00d(0x170)](util[_0x28f00d(0x218)](_0x28f00d(0x104),_0x49aa68[_0x28f00d(0x130)])),this[_0x28f00d(0x1fe)][_0x28f00d(0xc3)](_0x49aa68[_0x28f00d(0xbf)],_0x49aa68['escape_digits']);},AGIVertices['prototype']['sendMail']=function(_0x42a1c2){const _0x5b21a3=a1212_0x3fcc93;logger[_0x5b21a3(0x170)](util['format'](_0x5b21a3(0x18a),_0x42a1c2[_0x5b21a3(0x130)]));if(!this[_0x5b21a3(0x13f)](_0x42a1c2['account_id']))return this[_0x5b21a3(0x1fe)]['noop'](_0x5b21a3(0x131));const _0x1737bd=this['getMailAccount'][_0x5b21a3(0x20e)](this,_0x42a1c2[_0x5b21a3(0x1b7)]);if(!_0x1737bd||!_0x1737bd[_0x5b21a3(0xd2)])return this[_0x5b21a3(0x1fe)]['error'](_0x42a1c2,_0x5b21a3(0x107));const _0x26809c={'from':util[_0x5b21a3(0x218)](_0x5b21a3(0x1cd),_0x1737bd[_0x5b21a3(0x198)],_0x1737bd['email']||_0x1737bd[_0x5b21a3(0xd2)]['user']),'to':_0x42a1c2['to']||'','cc':_0x42a1c2['cc']||'','bcc':_0x42a1c2[_0x5b21a3(0x197)]||'','subject':_0x42a1c2[_0x5b21a3(0x241)],'html':_0x42a1c2['text'],'text':_0x42a1c2[_0x5b21a3(0xbf)]},_0x25bdf0={'tls':{'rejectUnauthorized':![]}};_0x1737bd['Smtp'][_0x5b21a3(0x93)]?_0x25bdf0[_0x5b21a3(0x93)]=_0x1737bd['Smtp'][_0x5b21a3(0x93)]:(_0x25bdf0[_0x5b21a3(0x108)]=_0x1737bd[_0x5b21a3(0xd2)][_0x5b21a3(0x108)],_0x25bdf0[_0x5b21a3(0x20a)]=_0x1737bd[_0x5b21a3(0xd2)]['port'],_0x25bdf0[_0x5b21a3(0x184)]=_0x1737bd[_0x5b21a3(0xd2)][_0x5b21a3(0x184)]);_0x1737bd[_0x5b21a3(0xd2)][_0x5b21a3(0x1d0)]&&(_0x25bdf0[_0x5b21a3(0xdc)]={'user':_0x1737bd['Smtp'][_0x5b21a3(0x192)],'pass':_0x1737bd[_0x5b21a3(0xd2)]['pass']});if(this[_0x5b21a3(0x13f)](_0x42a1c2[_0x5b21a3(0x1bd)])){}return logger[_0x5b21a3(0xc5)]('sendMail\x20message',JSON[_0x5b21a3(0x219)](_0x26809c)),this['createSquareDetailsReport'][_0x5b21a3(0x20e)](this,_0x42a1c2,_0x42a1c2['account_id']),this[_0x5b21a3(0x1fe)]['noop'](util[_0x5b21a3(0x218)](_0x5b21a3(0x191),_0x1737bd[_0x5b21a3(0x198)])),this['sendMailMessage']['sync'](this,_0x25bdf0,_0x26809c),this[_0x5b21a3(0x1fe)][_0x5b21a3(0x23f)](_0x5b21a3(0x201));},AGIVertices[a1212_0x3fcc93(0x177)][a1212_0x3fcc93(0xdf)]=function(_0x320965){const _0x17feed=a1212_0x3fcc93;return logger[_0x17feed(0x170)](util[_0x17feed(0x218)]('Enter\x20in\x20SENDFAX\x20(%s)\x20block',_0x320965[_0x17feed(0x130)])),this[_0x17feed(0x1fe)][_0x17feed(0x23f)](_0x17feed(0xe7));},AGIVertices['prototype']['sendSMS']=function(_0x1197be){const _0x2ca567=a1212_0x3fcc93;logger[_0x2ca567(0x170)](util[_0x2ca567(0x218)](_0x2ca567(0x1a1),_0x1197be[_0x2ca567(0x130)]));if(!this[_0x2ca567(0x13f)](_0x1197be[_0x2ca567(0x89)]))return this[_0x2ca567(0x1fe)]['noop'](_0x2ca567(0x206));const _0x24b784=this[_0x2ca567(0x208)]['sync'](this,_0x1197be[_0x2ca567(0x89)]);if(!_0x24b784)return this[_0x2ca567(0x1fe)][_0x2ca567(0x1f6)](_0x1197be,_0x2ca567(0xed));const _0x4f78a0={'body':_0x1197be['sms_text'],'phone':_0x1197be['to']||'','SmsAccountId':_0x24b784['id']};return logger[_0x2ca567(0xc5)](_0x2ca567(0x1a3),JSON[_0x2ca567(0x219)](_0x4f78a0)),this[_0x2ca567(0xc7)][_0x2ca567(0x20e)](this,_0x1197be,_0x1197be[_0x2ca567(0x89)]),this['channel'][_0x2ca567(0x23f)](util[_0x2ca567(0x218)](_0x2ca567(0x222),_0x24b784[_0x2ca567(0x198)])),this['createSmsMessage'][_0x2ca567(0x20e)](this,_0x4f78a0),this['channel'][_0x2ca567(0x23f)](_0x2ca567(0x21f));},AGIVertices[a1212_0x3fcc93(0x177)][a1212_0x3fcc93(0x231)]=function(_0x28149b){const _0x550344=a1212_0x3fcc93;logger[_0x550344(0x170)](util[_0x550344(0x218)](_0x550344(0x19b),_0x28149b[_0x550344(0x130)]));if(!this[_0x550344(0x13f)](_0x28149b['variable_id']))return this['channel'][_0x550344(0x1f6)](_0x28149b,'no\x20variable\x20selected');const _0x36b12a=this[_0x550344(0x1bc)][_0x550344(0x20e)](this,_0x28149b[_0x550344(0x1ff)]);if(!_0x36b12a)return this[_0x550344(0x1fe)][_0x550344(0x1f6)](_0x28149b,_0x550344(0x1a5));return this[_0x550344(0x1fe)][_0x550344(0x9a)](_0x36b12a,_0x28149b[_0x550344(0x1b9)]);},AGIVertices[a1212_0x3fcc93(0x177)][a1212_0x3fcc93(0xb7)]=function(_0x1bef7f){const _0x15ab5e=a1212_0x3fcc93;logger['info'](util[_0x15ab5e(0x218)](_0x15ab5e(0x1fc),_0x1bef7f[_0x15ab5e(0x130)])),this[_0x15ab5e(0x1fe)][_0x15ab5e(0x23f)](_0x15ab5e(0x18d));if(_0x1bef7f[_0x15ab5e(0x1e1)]==='yes')return this[_0x15ab5e(0x1fe)][_0x15ab5e(0x23f)](_0x15ab5e(0x98)),this[_0x15ab5e(0x1fe)][_0x15ab5e(0x1e1)]();return this[_0x15ab5e(0x1fe)]['noop'](_0x15ab5e(0x1c1));},AGIVertices['prototype'][a1212_0x3fcc93(0x1a4)]=function(_0x53f98b){const _0x2f5aa9=a1212_0x3fcc93;logger[_0x2f5aa9(0x170)](util[_0x2f5aa9(0x218)](_0x2f5aa9(0x8e),_0x53f98b[_0x2f5aa9(0x130)]));if(!this[_0x2f5aa9(0x13f)](_0x53f98b[_0x2f5aa9(0x12b)]))return this[_0x2f5aa9(0x1fe)][_0x2f5aa9(0x1f6)](_0x53f98b,_0x2f5aa9(0x1d4));const _0x22c120=this[_0x2f5aa9(0x126)]['sync'](this,_0x53f98b[_0x2f5aa9(0x12b)]);if(!this[_0x2f5aa9(0x13f)](_0x22c120))return this[_0x2f5aa9(0x1fe)][_0x2f5aa9(0x1f6)](_0x53f98b,util[_0x2f5aa9(0x218)](_0x2f5aa9(0x24e),_0x53f98b[_0x2f5aa9(0x12b)]));if(_0x22c120===this[_0x2f5aa9(0x1fe)][_0x2f5aa9(0x1e4)])return this['channel']['error'](_0x53f98b,'project\x20in\x20subproject\x20must\x20be\x20different\x20from\x20the\x20called\x20project');this['createSquareDetailsReport']['sync'](this,_0x53f98b,_0x22c120);const _0x462727=this[_0x2f5aa9(0x1fe)][_0x2f5aa9(0x164)]('AGI',util[_0x2f5aa9(0x218)](_0x2f5aa9(0x1c5),config['agi'][_0x2f5aa9(0x108)]||'127.0.0.1',_0x22c120,this[_0x2f5aa9(0x1fe)][_0x2f5aa9(0x1e4)]));if(_0x462727['result']===-0x1)return _0x462727;return this['channel'][_0x2f5aa9(0x23f)](util['format'](_0x2f5aa9(0xe2),_0x2f5aa9(0xf2),_0x22c120));},AGIVertices[a1212_0x3fcc93(0x177)][a1212_0x3fcc93(0x22f)]=function(_0x16a410){const _0x2529f7=a1212_0x3fcc93;logger['info'](util['format'](_0x2529f7(0xc4),_0x16a410['label']));const _0x5b4bba=this[_0x2529f7(0x14b)][_0x2529f7(0x20e)](this,_0x16a410[_0x2529f7(0x1c7)]);this[_0x2529f7(0xc7)][_0x2529f7(0x20e)](this,_0x16a410,_0x16a410[_0x2529f7(0x1c7)]);if(this[_0x2529f7(0x13f)](_0x16a410[_0x2529f7(0x1ff)])){const _0x4fc2b7=this[_0x2529f7(0x1bc)][_0x2529f7(0x20e)](this,_0x16a410[_0x2529f7(0x1ff)]);if(_0x4fc2b7)return this[_0x2529f7(0x1fe)][_0x2529f7(0x9a)](_0x4fc2b7,_0x5b4bba),this['channel'][_0x2529f7(0x23f)](util[_0x2529f7(0x218)](_0x2529f7(0x161),_0x16a410['command'],_0x4fc2b7));}return this['channel'][_0x2529f7(0x23f)](util[_0x2529f7(0x218)](_0x2529f7(0x1ef),_0x16a410['command']));},AGIVertices[a1212_0x3fcc93(0x177)]['google_cloud_tts']=function(_0x78ce23){const _0x7bb379=a1212_0x3fcc93;logger[_0x7bb379(0x170)](util['format'](_0x7bb379(0x115),_0x78ce23['label'])),_0x78ce23[_0x7bb379(0xbf)]=_0x78ce23['text'][_0x7bb379(0x174)](/(\r\n|\n|\r)/gm,'\x20');if(!this[_0x7bb379(0x13f)](_0x78ce23[_0x7bb379(0xb5)]))return this[_0x7bb379(0x1fe)][_0x7bb379(0x23f)]('no\x20apiKey\x20configured');if(!this[_0x7bb379(0x13f)](_0x78ce23[_0x7bb379(0xbf)]))return this[_0x7bb379(0x1fe)]['noop'](_0x7bb379(0x133));this[_0x7bb379(0x1fe)]['noop'](util[_0x7bb379(0x218)](_0x7bb379(0x149),_0x78ce23[_0x7bb379(0xbf)]));const _0xb019c2=this[_0x7bb379(0x1b6)][_0x7bb379(0x20e)](this,_0x78ce23);if(_0xb019c2){this[_0x7bb379(0x1fe)][_0x7bb379(0x23f)](util[_0x7bb379(0x218)](_0x7bb379(0x113),_0xb019c2));const _0x838b17=this[_0x7bb379(0x1fe)]['streamFile'](_0xb019c2);try{fs[_0x7bb379(0x17b)](_0xb019c2+_0x7bb379(0x223));}catch(_0x565489){logger[_0x7bb379(0x1f6)](_0x565489);}return _0x838b17;}return this[_0x7bb379(0x1fe)][_0x7bb379(0x1f6)](_0x78ce23,_0x7bb379(0x157));},AGIVertices['prototype'][a1212_0x3fcc93(0xd3)]=function(_0x3a4d8d){const _0x3c5bc3=a1212_0x3fcc93;logger[_0x3c5bc3(0x170)](util[_0x3c5bc3(0x218)](_0x3c5bc3(0x224),_0x3a4d8d[_0x3c5bc3(0x130)])),_0x3a4d8d[_0x3c5bc3(0xbf)]=_0x3a4d8d['text']['replace'](/(\r\n|\n|\r)/gm,'\x20');if(!this[_0x3c5bc3(0x13f)](_0x3a4d8d[_0x3c5bc3(0xbf)]))return this[_0x3c5bc3(0x1fe)][_0x3c5bc3(0x23f)]('no\x20text\x20configured');this['channel'][_0x3c5bc3(0x23f)](util['format'](_0x3c5bc3(0xb9),_0x3a4d8d[_0x3c5bc3(0xbf)]));const _0x414140=this['googleTTS'][_0x3c5bc3(0x20e)](this,_0x3a4d8d);if(_0x414140){this[_0x3c5bc3(0x1fe)][_0x3c5bc3(0x23f)](util['format'](_0x3c5bc3(0x1b0),_0x414140));const _0x4be504=this[_0x3c5bc3(0x1fe)][_0x3c5bc3(0x1be)](_0x414140);try{fs[_0x3c5bc3(0x17b)](_0x414140+_0x3c5bc3(0x223));}catch(_0x3c4665){logger['error'](_0x3c4665);}return _0x4be504;}return this[_0x3c5bc3(0x1fe)][_0x3c5bc3(0x1f6)](_0x3a4d8d,_0x3c5bc3(0x114));},AGIVertices[a1212_0x3fcc93(0x177)][a1212_0x3fcc93(0x168)]=function(_0x384c41){const _0x54462f=a1212_0x3fcc93;logger[_0x54462f(0x170)](util[_0x54462f(0x218)]('Enter\x20in\x20UNPAUSE\x20(%s)\x20block',_0x384c41[_0x54462f(0x130)]));if(!this['isConfigured'](_0x384c41[_0x54462f(0x18f)]))return this[_0x54462f(0x1fe)][_0x54462f(0x1f6)](_0x384c41,_0x54462f(0x207));logger[_0x54462f(0x170)](util['format']('FIND\x20AGENT\x20%s\x20BY\x20%s',this[_0x54462f(0x1fe)][_0x54462f(0xf9)],_0x384c41[_0x54462f(0x18f)]));const _0x4b0160=this[_0x54462f(0xfd)][_0x54462f(0x20e)](this,_0x384c41['findBy']);return _0x4b0160?(logger[_0x54462f(0x170)](util[_0x54462f(0x218)](_0x54462f(0x10b),this['channel'][_0x54462f(0xf9)],_0x384c41[_0x54462f(0x18f)])),this[_0x54462f(0x1fe)][_0x54462f(0x23f)](util[_0x54462f(0x218)](_0x54462f(0x10b),this[_0x54462f(0x1fe)]['callerid'],_0x384c41[_0x54462f(0x18f)])),{'code':0xc8,'result':_0x54462f(0x1d9)}):(logger[_0x54462f(0x170)](util[_0x54462f(0x218)]('AGENT\x20%s\x20NOT\x20FOUND\x20BY',this[_0x54462f(0x1fe)]['callerid'],_0x384c41['findBy'])),this['channel'][_0x54462f(0x23f)](util['format'](_0x54462f(0xaf),this['channel'][_0x54462f(0xf9)],_0x384c41[_0x54462f(0x18f)])),{'code':0xc8,'result':_0x54462f(0x105)});},AGIVertices['prototype'][a1212_0x3fcc93(0xd6)]=function(_0x46b0ce){const _0x1c2fb5=a1212_0x3fcc93;logger[_0x1c2fb5(0x170)](util['format'](_0x1c2fb5(0x214),_0x46b0ce[_0x1c2fb5(0x130)]));const _0x273b2c=this[_0x1c2fb5(0x1fe)][_0x1c2fb5(0x164)](_0x1c2fb5(0x1b1),[_0x46b0ce[_0x1c2fb5(0x217)],_0x46b0ce['options']]);if(_0x273b2c['result']===-0x1)return _0x273b2c;return this[_0x1c2fb5(0x1fe)]['noop'](util['format'](_0x1c2fb5(0xe2),'VOICEMAIL',_0x46b0ce[_0x1c2fb5(0x217)]));},AGIVertices[a1212_0x3fcc93(0x177)][a1212_0x3fcc93(0x141)]=function(_0x9f4a52){const _0x12a066=a1212_0x3fcc93;logger[_0x12a066(0x170)](util['format'](_0x12a066(0x1df),_0x9f4a52[_0x12a066(0x130)]));if(!this[_0x12a066(0x13f)](_0x9f4a52[_0x12a066(0x1ff)]))return this[_0x12a066(0x1fe)]['error'](_0x9f4a52,_0x12a066(0x11d));const _0x8ba580=this['getVariable']['sync'](this,_0x9f4a52[_0x12a066(0x1ff)]);if(!_0x8ba580)return this[_0x12a066(0x1fe)][_0x12a066(0x1f6)](_0x9f4a52,_0x12a066(0x1a5));const _0x20ac3e=this[_0x12a066(0x1fe)]['getVariable'](_0x8ba580);return{'code':0xc8,'result':_0x20ac3e['extra']?_0x20ac3e[_0x12a066(0x1f1)]:'-'};},String[a1212_0x3fcc93(0x177)]['replaceAll']=function(_0x5a874a,_0x478fb5){const _0x28ec23=a1212_0x3fcc93;return this['split'](_0x5a874a)[_0x28ec23(0x1a7)](_0x478fb5);},module[a1212_0x3fcc93(0xb0)]=AGIVertices; \ No newline at end of file diff --git a/server/services/ami/acw/index.js b/server/services/ami/acw/index.js index 1b5c893..3d837a7 100644 --- a/server/services/ami/acw/index.js +++ b/server/services/ami/acw/index.js @@ -1 +1 @@ -const a1049_0x14cd=['[%s][HANGUP:UNIQUEID]','prototype','syncAgentRingNoAnswer','lastPauseAt','agents','milliseconds','transfereeuniqueid','then','stringify','linkedid','origtransfereruniqueid','message','[TIMER][STOP][AGENT:%s]','attendedtransfer','isNil','name','startAcw','isUndefined','mandatoryDisposition','error','[ACW][syncAgentRingNoAnswer]\x20%s','transfertargetuniqueid','agentringnoanswer','[ACW][syncHangupRequest]\x20%s','queue','[ACW][START]\x20%s','updateAcw','[ACW][syncAttendedTransfer]\x20%s','channels','[%s][UPDATE][ACWTIME:%s]','hanguprequest','ACW','[%s][HANGUPATTENDEDTRANSFER:LINKEDID]','Auto-Pause','stopAcw','syncAttendedTransfer','../rpc/user','syncAgentConnectPreview','interface','timers','update','[%s][TIMER:%s][AGENT:%s][QUEUE:%s]','syncBlindTransfer','syncAgentConnect','custom:agentConnectPreview','format','voiceQueues','syncHangup','bind','exports','acwTimeout','mandatoryDispositionPause','savePause','[ACW][syncBlindTransfer]\x20%s','transfererlinkedid','QueuePause','uniqueid','transfereruniqueid','[%s][BLINDTRANSFER:UNIQUEID]','[ACW][syncHangup]\x20%s','all','[%s][UPDATE][ERRORS:%s]','voicePause','YYYY-MM-DD\x20HH:mm:ss','[ACW][syncAgentConnect]\x20%s','[ACW][STOP]\x20Interface\x20%s\x20doesn\x27t\x20have\x20timer','../../../config/logger','catch','getAgent','timer','diff','Action','agentconnect','secondtransfereruniqueid','[%s][INPAUSE][AGENT:%s][QUEUE:%s]','attended','hangup','[ACW][TIMERS]','acw','syncHangupRequest','destlinkedid','info'];(function(_0x23ffc3,_0x14cd3a){const _0x162b65=function(_0x109f27){while(--_0x109f27){_0x23ffc3['push'](_0x23ffc3['shift']());}};_0x162b65(++_0x14cd3a);}(a1049_0x14cd,0x1ca));const a1049_0x162b=function(_0x23ffc3,_0x14cd3a){_0x23ffc3=_0x23ffc3-0x0;let _0x162b65=a1049_0x14cd[_0x23ffc3];return _0x162b65;};const _0x36f805=a1049_0x162b;'use strict';const _=require('lodash'),moment=require('moment'),ami=require('../ami'),logger=require(_0x36f805('0x12'))(_0x36f805('0x1e')),RpcUser=require(_0x36f805('0x46')),RpcVoiceAgentReport=require('../rpc/voiceAgentReport');function Acw(_0x109f27){const _0x174375=_0x36f805;this[_0x174375('0x50')]=_0x109f27['voiceQueues'],this[_0x174375('0x26')]=_0x109f27[_0x174375('0x26')],this[_0x174375('0x49')]=_0x109f27['timers'],this[_0x174375('0x3e')]={},ami['on'](_0x174375('0x18'),this['syncAgentConnect']['bind'](this)),ami['on'](_0x174375('0x40'),this[_0x174375('0x1f')][_0x174375('0x0')](this)),ami['on'](_0x174375('0x1c'),this[_0x174375('0x51')][_0x174375('0x0')](this)),ami['on'](_0x174375('0x38'),this[_0x174375('0x24')][_0x174375('0x0')](this)),ami['on'](_0x174375('0x2f'),this[_0x174375('0x45')]['bind'](this)),ami['on']('blindtransfer',this[_0x174375('0x4c')][_0x174375('0x0')](this)),ami['on'](_0x174375('0x4e'),this['syncAgentConnectPreview']['bind'](this));}function getDiff(_0x4d6ddd){const _0xc662e7=_0x36f805,_0x8d84d0=moment()[_0xc662e7('0x27')](0x0),_0x53a543=moment(_0x4d6ddd)[_0xc662e7('0x27')](0x0);return _0x8d84d0[_0xc662e7('0x16')](_0x53a543,'seconds');}Acw[_0x36f805('0x23')][_0x36f805('0x32')]=function(_0x32726c){const _0x205db6=_0x36f805;try{const _0xfec93=this,_0x452b2a=this[_0x205db6('0x3e')][_0x32726c][_0x205db6('0x48')],_0x52460f=this[_0x205db6('0x3e')][_0x32726c][_0x205db6('0x3a')],_0xa255b2=this['voiceQueues'][_0x52460f];let _0x4465cf=![],_0x451de3=_0x205db6('0x41');_0xa255b2[_0x205db6('0x34')]&&(_0xa255b2[_0x205db6('0x3')][_0x205db6('0x31')]&&(_0x4465cf=!![],_0x451de3=_0xa255b2[_0x205db6('0x3')][_0x205db6('0x31')])),ami[_0x205db6('0x17')]({'action':_0x205db6('0x7'),'interface':_0x452b2a,'paused':!![],'reason':_0x451de3})[_0x205db6('0x29')](function(){const _0xee41c1=_0x205db6;if(_0xfec93[_0xee41c1('0x26')][_0x452b2a])return RpcUser[_0xee41c1('0x14')](_0xfec93[_0xee41c1('0x26')][_0x452b2a]['id'])[_0xee41c1('0x29')](function(_0x5a1e04){const _0x12da95=_0xee41c1;if(_0x5a1e04&&!_0x5a1e04[_0x12da95('0xe')]){logger[_0x12da95('0x21')]('[%s][START][AGENT:%s][QUEUE:%s]',_0x32726c,_0x452b2a,_0x52460f);const _0x26fa35=_0xfec93['channels'][_0x32726c][_0x12da95('0x1b')]&&_0xfec93['channels'][_0x32726c][_0x12da95('0x20')]?_0xfec93['channels'][_0x32726c][_0x12da95('0x20')]:_0x32726c;return RpcUser['savePause'](_0xfec93[_0x12da95('0x26')][_0x452b2a],_0x451de3,_0x26fa35)[_0x12da95('0x29')](function(){const _0x30dfb2=_0x12da95;!_0x4465cf&&(_0xfec93[_0x30dfb2('0x49')][_0x452b2a]={},logger[_0x30dfb2('0x21')](_0x30dfb2('0x4b'),_0x32726c,_0xfec93[_0x30dfb2('0x50')][_0x52460f]['acwTimeout'],_0x452b2a,_0x52460f),_0xfec93[_0x30dfb2('0x49')][_0x452b2a][_0x30dfb2('0x15')]=setTimeout(_0xfec93['stopAcw'][_0x30dfb2('0x0')](_0xfec93,_0x452b2a),_0xfec93[_0x30dfb2('0x50')][_0x52460f][_0x30dfb2('0x2')]*0x3e8),_0xfec93[_0x30dfb2('0x49')][_0x452b2a][_0x30dfb2('0x25')]=moment()[_0x30dfb2('0x4f')](_0x30dfb2('0xf')),_0xfec93[_0x30dfb2('0x49')][_0x452b2a][_0x30dfb2('0x8')]=_0x32726c,_0xfec93[_0x30dfb2('0x49')][_0x452b2a]['queue']=_0x52460f,_0xfec93[_0x30dfb2('0x49')][_0x452b2a][_0x30dfb2('0x3c')]=function(){const _0x5ca93f=_0x30dfb2,_0x213e23=getDiff(_0xfec93[_0x5ca93f('0x49')][_0x452b2a][_0x5ca93f('0x25')]);clearTimeout(_0xfec93[_0x5ca93f('0x49')][_0x452b2a][_0x5ca93f('0x15')]),_0xfec93[_0x5ca93f('0x49')][_0x452b2a][_0x5ca93f('0x15')]=![],RpcVoiceAgentReport[_0x5ca93f('0x4a')]({'acwtime':_0x213e23},_0xfec93[_0x5ca93f('0x49')][_0x452b2a]['uniqueid'],_0x452b2a)['then'](function(_0x14c7ba){const _0x543bca=_0x5ca93f;logger[_0x543bca('0x21')](_0x543bca('0x3f'),_0x32726c,_0x213e23,_0x14c7ba);})['catch'](function(_0x7f3c22){const _0x1788b5=_0x5ca93f;logger[_0x1788b5('0x35')](_0x1788b5('0xd'),_0x32726c,_0x7f3c22);}),delete _0xfec93[_0x5ca93f('0x49')][_0x452b2a];});});}else logger[_0x12da95('0x21')](_0x12da95('0x1a'),_0x32726c,_0x452b2a,_0x52460f);});})[_0x205db6('0x13')](function(){const _0xe8bf3=_0x205db6;logger[_0xe8bf3('0x35')](_0xe8bf3('0x4b'),_0x32726c,_0xfec93['voiceQueues'][_0x52460f]['acwTimeout'],_0x452b2a,_0x52460f);})['finally'](function(){delete _0xfec93['channels'][_0x32726c];});}catch(_0xb43a68){logger[_0x205db6('0x35')](_0x205db6('0x3b'),_0xb43a68[_0x205db6('0x2d')]);}},Acw['prototype'][_0x36f805('0x44')]=function(_0x594f8f){const _0x329959=_0x36f805;try{const _0x4c9cf4=this;if(_0x4c9cf4['timers'][_0x594f8f]){_0x4c9cf4[_0x329959('0x49')][_0x594f8f][_0x329959('0x15')]=![];const _0x1e00a9=_0x4c9cf4['timers'][_0x594f8f][_0x329959('0x8')],_0x3b04b7=_0x4c9cf4[_0x329959('0x49')][_0x594f8f][_0x329959('0x3a')],_0x28d8e8=_0x4c9cf4['voiceQueues'][_0x3b04b7][_0x329959('0x2')];logger['info'](_0x329959('0x2e'),_0x594f8f),RpcUser['saveUnpause'](this[_0x329959('0x26')][_0x594f8f]),RpcVoiceAgentReport['update']({'acwtime':_0x28d8e8,'agentacw':!![]},_0x1e00a9,_0x594f8f)[_0x329959('0x29')](function(_0x449587){const _0x29262d=_0x329959;logger[_0x29262d('0x21')](_0x29262d('0x3f'),_0x1e00a9,_0x28d8e8,_0x449587);})['catch'](function(_0x34a0a4){const _0x37019d=_0x329959;logger[_0x37019d('0x35')](_0x37019d('0xd'),_0x1e00a9,_0x34a0a4);});}else logger[_0x329959('0x35')](_0x329959('0x11'),_0x594f8f),_0x4c9cf4[_0x329959('0x49')]&&logger[_0x329959('0x21')](_0x329959('0x1d'),JSON[_0x329959('0x2a')](_0x4c9cf4[_0x329959('0x49')]));}catch(_0x29ef82){logger['error']('[ACW][STOP]\x20%s',_0x29ef82['message']);}},Acw[_0x36f805('0x23')][_0x36f805('0x4d')]=function(_0x2c5493){const _0x324b13=_0x36f805;try{this[_0x324b13('0x50')][_0x2c5493[_0x324b13('0x3a')]]&&(this[_0x324b13('0x50')][_0x2c5493[_0x324b13('0x3a')]]['acw']||this[_0x324b13('0x50')][_0x2c5493[_0x324b13('0x3a')]][_0x324b13('0x34')])&&(this['agents'][_0x2c5493[_0x324b13('0x48')]]&&(this['channels'][_0x2c5493['uniqueid']]={'queue':_0x2c5493['queue'],'interface':_0x2c5493[_0x324b13('0x48')],'destlinkedid':_0x2c5493['destlinkedid']}));}catch(_0x1172c7){logger[_0x324b13('0x35')](_0x324b13('0x10'),_0x1172c7[_0x324b13('0x2d')]);}},Acw[_0x36f805('0x23')][_0x36f805('0x47')]=function(_0x16640a){const _0x3e25cb=_0x36f805;try{this['voiceQueues'][_0x16640a['queue']]&&(this['voiceQueues'][_0x16640a['queue']][_0x3e25cb('0x1e')]||this[_0x3e25cb('0x50')][_0x16640a['queue']]['mandatoryDisposition'])&&(this[_0x3e25cb('0x26')][_0x16640a[_0x3e25cb('0x48')]]&&(this['channels'][_0x16640a[_0x3e25cb('0x8')]]={'queue':_0x16640a[_0x3e25cb('0x3a')],'interface':_0x16640a['interface']}));}catch(_0x454184){logger['error']('[ACW][syncAgentConnectPreview]\x20%s',_0x454184[_0x3e25cb('0x2d')]);}},Acw[_0x36f805('0x23')][_0x36f805('0x1f')]=function(_0x4b654d){const _0x2b211b=_0x36f805;try{if(this[_0x2b211b('0x3e')][_0x4b654d[_0x2b211b('0x8')]]&&_[_0x2b211b('0x33')](this[_0x2b211b('0x3e')][_0x4b654d[_0x2b211b('0x8')]][_0x2b211b('0x1b')]))logger[_0x2b211b('0x21')](_0x2b211b('0x22'),_0x4b654d[_0x2b211b('0x8')]),this['startAcw'](_0x4b654d['uniqueid']);else this[_0x2b211b('0x3e')][_0x4b654d[_0x2b211b('0x2b')]]&&_[_0x2b211b('0x33')](this[_0x2b211b('0x3e')][_0x4b654d[_0x2b211b('0x2b')]][_0x2b211b('0x1b')])&&(logger[_0x2b211b('0x21')]('[%s][HANGUP:LINKEDID]',_0x4b654d['linkedid']),this['startAcw'](_0x4b654d[_0x2b211b('0x2b')]));}catch(_0x5cff54){logger[_0x2b211b('0x35')](_0x2b211b('0x39'),_0x5cff54['message']);}},Acw[_0x36f805('0x23')][_0x36f805('0x51')]=function(_0x42e868){const _0x37c288=_0x36f805;try{if(this[_0x37c288('0x3e')][_0x42e868[_0x37c288('0x8')]]&&this[_0x37c288('0x3e')][_0x42e868[_0x37c288('0x8')]][_0x37c288('0x1b')])logger[_0x37c288('0x21')]('[%s][HANGUPATTENDEDTRANSFER:UNIQUEID]',_0x42e868['uniqueid']),this[_0x37c288('0x32')](_0x42e868[_0x37c288('0x8')]);else this['channels'][_0x42e868[_0x37c288('0x2b')]]&&this[_0x37c288('0x3e')][_0x42e868[_0x37c288('0x2b')]][_0x37c288('0x1b')]&&(logger[_0x37c288('0x21')](_0x37c288('0x42'),_0x42e868[_0x37c288('0x2b')]),this['startAcw'](_0x42e868[_0x37c288('0x2b')]));}catch(_0x234ba0){logger[_0x37c288('0x35')](_0x37c288('0xb'),_0x234ba0[_0x37c288('0x2d')]);}},Acw['prototype'][_0x36f805('0x45')]=function(_0x3e0386){const _0xd18c70=_0x36f805;try{if(!_[_0xd18c70('0x30')](this[_0xd18c70('0x3e')][_0x3e0386[_0xd18c70('0x28')]]))this[_0xd18c70('0x32')](_0x3e0386['transfereeuniqueid']),this[_0xd18c70('0x3e')][_0x3e0386[_0xd18c70('0x19')]]&&(this[_0xd18c70('0x3e')][_0x3e0386[_0xd18c70('0x19')]][_0xd18c70('0x1b')]=!![],this[_0xd18c70('0x3e')][_0x3e0386[_0xd18c70('0x37')]]=this[_0xd18c70('0x3e')][_0x3e0386[_0xd18c70('0x19')]],delete this['channels'][_0x3e0386['secondtransfereruniqueid']]);else!_['isNil'](this[_0xd18c70('0x3e')][_0x3e0386['transfertargetuniqueid']])&&(this[_0xd18c70('0x32')](_0x3e0386[_0xd18c70('0x37')]),this[_0xd18c70('0x3e')][_0x3e0386['origtransfereruniqueid']]&&(this[_0xd18c70('0x3e')][_0x3e0386[_0xd18c70('0x2c')]]['attended']=!![],this[_0xd18c70('0x3e')][_0x3e0386[_0xd18c70('0x28')]]=this[_0xd18c70('0x3e')][_0x3e0386[_0xd18c70('0x2c')]],delete this[_0xd18c70('0x3e')][_0x3e0386[_0xd18c70('0x2c')]]));}catch(_0x432c82){logger[_0xd18c70('0x35')](_0xd18c70('0x3d'),_0x432c82[_0xd18c70('0x2d')]);}},Acw[_0x36f805('0x23')][_0x36f805('0x4c')]=function(_0x46c5b9){const _0x14ba0d=_0x36f805;try{if(this[_0x14ba0d('0x3e')][_0x46c5b9['transfereruniqueid']])logger[_0x14ba0d('0x21')](_0x14ba0d('0xa'),JSON[_0x14ba0d('0x2a')](_0x46c5b9[_0x14ba0d('0x9')])),this[_0x14ba0d('0x32')](_0x46c5b9[_0x14ba0d('0x9')]);else this[_0x14ba0d('0x3e')][_0x46c5b9['transfererlinkedid']]&&(logger['info']('[%s][BLINDTRANSFER:LINKEDID]',JSON['stringify'](_0x46c5b9['transfererlinkedid'])),this[_0x14ba0d('0x32')](_0x46c5b9[_0x14ba0d('0x6')]));}catch(_0x4392ad){logger[_0x14ba0d('0x35')](_0x14ba0d('0x5'),_0x4392ad[_0x14ba0d('0x2d')]);}},Acw[_0x36f805('0x23')][_0x36f805('0x24')]=function(_0x1ff018){const _0x1553ee=_0x36f805;try{if(this[_0x1553ee('0x50')][_0x1ff018[_0x1553ee('0x3a')]]&&this[_0x1553ee('0x50')][_0x1ff018['queue']]['autopause']===_0x1553ee('0xc')){if(this[_0x1553ee('0x26')][_0x1ff018[_0x1553ee('0x48')]])return logger[_0x1553ee('0x21')]('[%s][AUTOPAUSE][AGENT:%s][QUEUE:%]',_0x1ff018[_0x1553ee('0x8')],_0x1ff018[_0x1553ee('0x48')],_0x1ff018[_0x1553ee('0x3a')]),RpcUser[_0x1553ee('0x4')](this[_0x1553ee('0x26')][_0x1ff018[_0x1553ee('0x48')]],_0x1553ee('0x43'),_0x1ff018[_0x1553ee('0x8')]);}}catch(_0x295801){logger[_0x1553ee('0x35')](_0x1553ee('0x36'),_0x295801[_0x1553ee('0x2d')]);}},module[_0x36f805('0x1')]=Acw; \ No newline at end of file +const a1213_0x3a5c=['channels','[ACW][syncAttendedTransfer]\x20%s','acw','[%s][HANGUP:LINKEDID]','[ACW][STOP]\x20Interface\x20%s\x20doesn\x27t\x20have\x20timer','agentconnect','[ACW][syncHangup]\x20%s','custom:agentConnectPreview','[TIMER][STOP][AGENT:%s]','interface','voiceQueues','seconds','QueuePause','destlinkedid','prototype','[ACW][syncAgentRingNoAnswer]\x20%s','secondtransfereruniqueid','exports','syncAttendedTransfer','name','transfereruniqueid','queue','ACW','mandatoryDispositionPause','then','saveUnpause','[%s][BLINDTRANSFER:LINKEDID]','origtransfereruniqueid','syncHangup','[%s][BLINDTRANSFER:UNIQUEID]','[%s][UPDATE][ERRORS:%s]','updateAcw','[%s][HANGUPATTENDEDTRANSFER:LINKEDID]','savePause','syncAgentConnect','syncAgentConnectPreview','[ACW][syncAgentConnectPreview]\x20%s','transfererlinkedid','update','lastPauseAt','uniqueid','getAgent','attended','YYYY-MM-DD\x20HH:mm:ss','hanguprequest','[ACW][START]\x20%s','[%s][UPDATE][ACWTIME:%s]','message','syncBlindTransfer','[ACW][STOP]\x20%s','info','../ami','transfertargetuniqueid','linkedid','autopause','syncHangupRequest','moment','[%s][INPAUSE][AGENT:%s][QUEUE:%s]','../rpc/voiceAgentReport','[%s][AUTOPAUSE][AGENT:%s][QUEUE:%]','milliseconds','timers','stopAcw','timer','[ACW][TIMERS]','mandatoryDisposition','[%s][TIMER:%s][AGENT:%s][QUEUE:%s]','agents','voicePause','isNil','Auto-Pause','stringify','transfereeuniqueid','bind','catch','isUndefined','startAcw','acwTimeout','agentringnoanswer','format','error','[%s][HANGUPATTENDEDTRANSFER:UNIQUEID]','[ACW][syncAgentConnect]\x20%s','Action','[ACW][syncBlindTransfer]\x20%s','all'];(function(_0x4474f7,_0x37da4d){const _0x3a5c3f=function(_0x3c6335){while(--_0x3c6335){_0x4474f7['push'](_0x4474f7['shift']());}};_0x3a5c3f(++_0x37da4d);}(a1213_0x3a5c,0xde));const a1213_0x3c63=function(_0x4474f7,_0x37da4d){_0x4474f7=_0x4474f7-0x14f;let _0x3a5c3f=a1213_0x3a5c[_0x4474f7];return _0x3a5c3f;};const a1213_0x2772b5=a1213_0x3c63;'use strict';const _=require('lodash'),moment=require(a1213_0x2772b5(0x155)),ami=require(a1213_0x2772b5(0x150)),logger=require('../../../config/logger')('acw'),RpcUser=require('../rpc/user'),RpcVoiceAgentReport=require(a1213_0x2772b5(0x157));function Acw(_0x414be7){const _0x2e797c=a1213_0x2772b5;this[_0x2e797c(0x17d)]=_0x414be7[_0x2e797c(0x17d)],this['agents']=_0x414be7[_0x2e797c(0x160)],this[_0x2e797c(0x15a)]=_0x414be7[_0x2e797c(0x15a)],this[_0x2e797c(0x173)]={},ami['on'](_0x2e797c(0x178),this[_0x2e797c(0x195)][_0x2e797c(0x166)](this)),ami['on'](_0x2e797c(0x19f),this[_0x2e797c(0x154)][_0x2e797c(0x166)](this)),ami['on']('hangup',this['syncHangup'][_0x2e797c(0x166)](this)),ami['on'](_0x2e797c(0x16b),this['syncAgentRingNoAnswer']['bind'](this)),ami['on']('attendedtransfer',this[_0x2e797c(0x185)][_0x2e797c(0x166)](this)),ami['on']('blindtransfer',this['syncBlindTransfer'][_0x2e797c(0x166)](this)),ami['on'](_0x2e797c(0x17a),this[_0x2e797c(0x196)][_0x2e797c(0x166)](this));}function getDiff(_0x2ee872){const _0x22692e=a1213_0x2772b5,_0x56e60b=moment()[_0x22692e(0x159)](0x0),_0x200c7a=moment(_0x2ee872)[_0x22692e(0x159)](0x0);return _0x56e60b['diff'](_0x200c7a,_0x22692e(0x17e));}Acw[a1213_0x2772b5(0x181)][a1213_0x2772b5(0x169)]=function(_0x1f6e9c){const _0x1602ea=a1213_0x2772b5;try{const _0x25adcb=this,_0x50d948=this[_0x1602ea(0x173)][_0x1f6e9c][_0x1602ea(0x17c)],_0xfc7d27=this['channels'][_0x1f6e9c][_0x1602ea(0x188)],_0x1dabea=this[_0x1602ea(0x17d)][_0xfc7d27];let _0x2cd5eb=![],_0x135bcd=_0x1602ea(0x189);_0x1dabea[_0x1602ea(0x15e)]&&(_0x1dabea['mandatoryDispositionPause']['name']&&(_0x2cd5eb=!![],_0x135bcd=_0x1dabea[_0x1602ea(0x18a)][_0x1602ea(0x186)])),ami[_0x1602ea(0x170)]({'action':_0x1602ea(0x17f),'interface':_0x50d948,'paused':!![],'reason':_0x135bcd})[_0x1602ea(0x18b)](function(){const _0x44bfc4=_0x1602ea;if(_0x25adcb[_0x44bfc4(0x160)][_0x50d948])return RpcUser[_0x44bfc4(0x19c)](_0x25adcb[_0x44bfc4(0x160)][_0x50d948]['id'])[_0x44bfc4(0x18b)](function(_0x5c91d1){const _0x44c6ab=_0x44bfc4;if(_0x5c91d1&&!_0x5c91d1[_0x44c6ab(0x161)]){logger[_0x44c6ab(0x14f)]('[%s][START][AGENT:%s][QUEUE:%s]',_0x1f6e9c,_0x50d948,_0xfc7d27);const _0x35e375=_0x25adcb[_0x44c6ab(0x173)][_0x1f6e9c]['attended']&&_0x25adcb[_0x44c6ab(0x173)][_0x1f6e9c][_0x44c6ab(0x180)]?_0x25adcb[_0x44c6ab(0x173)][_0x1f6e9c][_0x44c6ab(0x180)]:_0x1f6e9c;return RpcUser[_0x44c6ab(0x194)](_0x25adcb['agents'][_0x50d948],_0x135bcd,_0x35e375)[_0x44c6ab(0x18b)](function(){const _0x4ac984=_0x44c6ab;!_0x2cd5eb&&(_0x25adcb['timers'][_0x50d948]={},logger[_0x4ac984(0x14f)](_0x4ac984(0x15f),_0x1f6e9c,_0x25adcb[_0x4ac984(0x17d)][_0xfc7d27]['acwTimeout'],_0x50d948,_0xfc7d27),_0x25adcb['timers'][_0x50d948][_0x4ac984(0x15c)]=setTimeout(_0x25adcb[_0x4ac984(0x15b)][_0x4ac984(0x166)](_0x25adcb,_0x50d948),_0x25adcb[_0x4ac984(0x17d)][_0xfc7d27][_0x4ac984(0x16a)]*0x3e8),_0x25adcb[_0x4ac984(0x15a)][_0x50d948][_0x4ac984(0x19a)]=moment()[_0x4ac984(0x16c)](_0x4ac984(0x19e)),_0x25adcb[_0x4ac984(0x15a)][_0x50d948]['uniqueid']=_0x1f6e9c,_0x25adcb['timers'][_0x50d948]['queue']=_0xfc7d27,_0x25adcb[_0x4ac984(0x15a)][_0x50d948][_0x4ac984(0x192)]=function(){const _0x264c7b=_0x4ac984,_0x3ac77a=getDiff(_0x25adcb['timers'][_0x50d948][_0x264c7b(0x19a)]);clearTimeout(_0x25adcb[_0x264c7b(0x15a)][_0x50d948][_0x264c7b(0x15c)]),_0x25adcb[_0x264c7b(0x15a)][_0x50d948][_0x264c7b(0x15c)]=![],RpcVoiceAgentReport['update']({'acwtime':_0x3ac77a},_0x25adcb['timers'][_0x50d948][_0x264c7b(0x19b)],_0x50d948)[_0x264c7b(0x18b)](function(_0xafb389){logger['info']('[%s][UPDATE][ACWTIME:%s]',_0x1f6e9c,_0x3ac77a,_0xafb389);})[_0x264c7b(0x167)](function(_0x145be1){const _0x289908=_0x264c7b;logger['error'](_0x289908(0x191),_0x1f6e9c,_0x145be1);}),delete _0x25adcb[_0x264c7b(0x15a)][_0x50d948];});});}else logger[_0x44c6ab(0x14f)](_0x44c6ab(0x156),_0x1f6e9c,_0x50d948,_0xfc7d27);});})[_0x1602ea(0x167)](function(){const _0x421e41=_0x1602ea;logger[_0x421e41(0x16d)]('[%s][TIMER:%s][AGENT:%s][QUEUE:%s]',_0x1f6e9c,_0x25adcb['voiceQueues'][_0xfc7d27]['acwTimeout'],_0x50d948,_0xfc7d27);})['finally'](function(){delete _0x25adcb['channels'][_0x1f6e9c];});}catch(_0x422eb4){logger[_0x1602ea(0x16d)](_0x1602ea(0x1a0),_0x422eb4['message']);}},Acw['prototype'][a1213_0x2772b5(0x15b)]=function(_0x358a72){const _0x16ca17=a1213_0x2772b5;try{const _0x35d67f=this;if(_0x35d67f[_0x16ca17(0x15a)][_0x358a72]){_0x35d67f[_0x16ca17(0x15a)][_0x358a72][_0x16ca17(0x15c)]=![];const _0x4f5c1c=_0x35d67f[_0x16ca17(0x15a)][_0x358a72][_0x16ca17(0x19b)],_0xb2088b=_0x35d67f[_0x16ca17(0x15a)][_0x358a72]['queue'],_0x1e4d94=_0x35d67f[_0x16ca17(0x17d)][_0xb2088b][_0x16ca17(0x16a)];logger[_0x16ca17(0x14f)](_0x16ca17(0x17b),_0x358a72),RpcUser[_0x16ca17(0x18c)](this[_0x16ca17(0x160)][_0x358a72]),RpcVoiceAgentReport[_0x16ca17(0x199)]({'acwtime':_0x1e4d94,'agentacw':!![]},_0x4f5c1c,_0x358a72)['then'](function(_0x5f3328){const _0xb5060a=_0x16ca17;logger['info'](_0xb5060a(0x1a1),_0x4f5c1c,_0x1e4d94,_0x5f3328);})['catch'](function(_0x390700){const _0x3e2623=_0x16ca17;logger['error'](_0x3e2623(0x191),_0x4f5c1c,_0x390700);});}else logger[_0x16ca17(0x16d)](_0x16ca17(0x177),_0x358a72),_0x35d67f[_0x16ca17(0x15a)]&&logger[_0x16ca17(0x14f)](_0x16ca17(0x15d),JSON[_0x16ca17(0x164)](_0x35d67f[_0x16ca17(0x15a)]));}catch(_0x5c2d6e){logger[_0x16ca17(0x16d)](_0x16ca17(0x1a4),_0x5c2d6e[_0x16ca17(0x1a2)]);}},Acw[a1213_0x2772b5(0x181)][a1213_0x2772b5(0x195)]=function(_0x119953){const _0x5a26e9=a1213_0x2772b5;try{this[_0x5a26e9(0x17d)][_0x119953['queue']]&&(this[_0x5a26e9(0x17d)][_0x119953['queue']]['acw']||this[_0x5a26e9(0x17d)][_0x119953[_0x5a26e9(0x188)]]['mandatoryDisposition'])&&(this[_0x5a26e9(0x160)][_0x119953[_0x5a26e9(0x17c)]]&&(this['channels'][_0x119953[_0x5a26e9(0x19b)]]={'queue':_0x119953[_0x5a26e9(0x188)],'interface':_0x119953[_0x5a26e9(0x17c)],'destlinkedid':_0x119953[_0x5a26e9(0x180)]}));}catch(_0x5d8b28){logger['error'](_0x5a26e9(0x16f),_0x5d8b28[_0x5a26e9(0x1a2)]);}},Acw[a1213_0x2772b5(0x181)][a1213_0x2772b5(0x196)]=function(_0x1fbc9b){const _0x3a8c1c=a1213_0x2772b5;try{this[_0x3a8c1c(0x17d)][_0x1fbc9b['queue']]&&(this[_0x3a8c1c(0x17d)][_0x1fbc9b['queue']][_0x3a8c1c(0x175)]||this[_0x3a8c1c(0x17d)][_0x1fbc9b[_0x3a8c1c(0x188)]][_0x3a8c1c(0x15e)])&&(this['agents'][_0x1fbc9b[_0x3a8c1c(0x17c)]]&&(this['channels'][_0x1fbc9b[_0x3a8c1c(0x19b)]]={'queue':_0x1fbc9b[_0x3a8c1c(0x188)],'interface':_0x1fbc9b['interface']}));}catch(_0x46d288){logger[_0x3a8c1c(0x16d)](_0x3a8c1c(0x197),_0x46d288['message']);}},Acw['prototype']['syncHangupRequest']=function(_0x59ee03){const _0x248c0b=a1213_0x2772b5;try{if(this[_0x248c0b(0x173)][_0x59ee03['uniqueid']]&&_[_0x248c0b(0x168)](this['channels'][_0x59ee03['uniqueid']]['attended']))logger[_0x248c0b(0x14f)]('[%s][HANGUP:UNIQUEID]',_0x59ee03[_0x248c0b(0x19b)]),this['startAcw'](_0x59ee03['uniqueid']);else this[_0x248c0b(0x173)][_0x59ee03['linkedid']]&&_[_0x248c0b(0x168)](this[_0x248c0b(0x173)][_0x59ee03['linkedid']][_0x248c0b(0x19d)])&&(logger['info'](_0x248c0b(0x176),_0x59ee03[_0x248c0b(0x152)]),this[_0x248c0b(0x169)](_0x59ee03[_0x248c0b(0x152)]));}catch(_0x50d6b5){logger[_0x248c0b(0x16d)]('[ACW][syncHangupRequest]\x20%s',_0x50d6b5[_0x248c0b(0x1a2)]);}},Acw[a1213_0x2772b5(0x181)][a1213_0x2772b5(0x18f)]=function(_0xe023ea){const _0x526e12=a1213_0x2772b5;try{if(this[_0x526e12(0x173)][_0xe023ea[_0x526e12(0x19b)]]&&this[_0x526e12(0x173)][_0xe023ea[_0x526e12(0x19b)]][_0x526e12(0x19d)])logger[_0x526e12(0x14f)](_0x526e12(0x16e),_0xe023ea[_0x526e12(0x19b)]),this[_0x526e12(0x169)](_0xe023ea[_0x526e12(0x19b)]);else this[_0x526e12(0x173)][_0xe023ea['linkedid']]&&this[_0x526e12(0x173)][_0xe023ea[_0x526e12(0x152)]][_0x526e12(0x19d)]&&(logger[_0x526e12(0x14f)](_0x526e12(0x193),_0xe023ea['linkedid']),this[_0x526e12(0x169)](_0xe023ea[_0x526e12(0x152)]));}catch(_0x309e93){logger[_0x526e12(0x16d)](_0x526e12(0x179),_0x309e93[_0x526e12(0x1a2)]);}},Acw[a1213_0x2772b5(0x181)][a1213_0x2772b5(0x185)]=function(_0x1acceb){const _0x445895=a1213_0x2772b5;try{if(!_[_0x445895(0x162)](this[_0x445895(0x173)][_0x1acceb[_0x445895(0x165)]]))this[_0x445895(0x169)](_0x1acceb['transfereeuniqueid']),this[_0x445895(0x173)][_0x1acceb['secondtransfereruniqueid']]&&(this['channels'][_0x1acceb[_0x445895(0x183)]][_0x445895(0x19d)]=!![],this['channels'][_0x1acceb['transfertargetuniqueid']]=this[_0x445895(0x173)][_0x1acceb[_0x445895(0x183)]],delete this[_0x445895(0x173)][_0x1acceb[_0x445895(0x183)]]);else!_[_0x445895(0x162)](this[_0x445895(0x173)][_0x1acceb[_0x445895(0x151)]])&&(this[_0x445895(0x169)](_0x1acceb[_0x445895(0x151)]),this['channels'][_0x1acceb['origtransfereruniqueid']]&&(this[_0x445895(0x173)][_0x1acceb['origtransfereruniqueid']][_0x445895(0x19d)]=!![],this[_0x445895(0x173)][_0x1acceb['transfereeuniqueid']]=this[_0x445895(0x173)][_0x1acceb['origtransfereruniqueid']],delete this[_0x445895(0x173)][_0x1acceb[_0x445895(0x18e)]]));}catch(_0x36323e){logger[_0x445895(0x16d)](_0x445895(0x174),_0x36323e[_0x445895(0x1a2)]);}},Acw[a1213_0x2772b5(0x181)][a1213_0x2772b5(0x1a3)]=function(_0x596899){const _0x4c6886=a1213_0x2772b5;try{if(this[_0x4c6886(0x173)][_0x596899[_0x4c6886(0x187)]])logger['info'](_0x4c6886(0x190),JSON[_0x4c6886(0x164)](_0x596899[_0x4c6886(0x187)])),this[_0x4c6886(0x169)](_0x596899[_0x4c6886(0x187)]);else this[_0x4c6886(0x173)][_0x596899[_0x4c6886(0x198)]]&&(logger[_0x4c6886(0x14f)](_0x4c6886(0x18d),JSON[_0x4c6886(0x164)](_0x596899[_0x4c6886(0x198)])),this['startAcw'](_0x596899[_0x4c6886(0x198)]));}catch(_0x5f32c5){logger[_0x4c6886(0x16d)](_0x4c6886(0x171),_0x5f32c5[_0x4c6886(0x1a2)]);}},Acw[a1213_0x2772b5(0x181)]['syncAgentRingNoAnswer']=function(_0x24f847){const _0x2951ec=a1213_0x2772b5;try{if(this['voiceQueues'][_0x24f847['queue']]&&this[_0x2951ec(0x17d)][_0x24f847[_0x2951ec(0x188)]][_0x2951ec(0x153)]===_0x2951ec(0x172)){if(this[_0x2951ec(0x160)][_0x24f847[_0x2951ec(0x17c)]])return logger[_0x2951ec(0x14f)](_0x2951ec(0x158),_0x24f847[_0x2951ec(0x19b)],_0x24f847[_0x2951ec(0x17c)],_0x24f847[_0x2951ec(0x188)]),RpcUser[_0x2951ec(0x194)](this[_0x2951ec(0x160)][_0x24f847[_0x2951ec(0x17c)]],_0x2951ec(0x163),_0x24f847['uniqueid']);}}catch(_0x35a0ce){logger[_0x2951ec(0x16d)](_0x2951ec(0x182),_0x35a0ce[_0x2951ec(0x1a2)]);}},module[a1213_0x2772b5(0x184)]=Acw; \ No newline at end of file diff --git a/server/services/ami/ami.js b/server/services/ami/ami.js index 7026c2c..e93f1b7 100644 --- a/server/services/ami/ami.js +++ b/server/services/ami/ami.js @@ -1 +1 @@ -const a1050_0x1163=['username','Manager\x20\x22%s\x22\x20logged\x20on\x20to\x20%s:%s','ami','sipshowregistry','once','promisify','sippeerstatus','error','log','resolve','../../config/logger','Shutdown\x20\x22%s\x22\x20to\x20%s:%s\x20with:\x0a%s','inspect','asterisk','queuesummary','actionCoreShowChannels','fullybooted','port','connect','keepConnected','Manager\x20\x22%s\x22\x20error\x20to\x20%s:%s\x20with:\x0a%s','actionSipPeerStatus','shutdown','action','close','Action','coreshowchannels','actionSipShowRegistry','then','asterisk-manager','catch','actionQueueSummary','Fullybooted\x20\x22%s\x22\x20to\x20%s:%s','actionDeviceStateList','info','format'];(function(_0x105603,_0x11637a){const _0x559bbb=function(_0x4f8fe2){while(--_0x4f8fe2){_0x105603['push'](_0x105603['shift']());}};_0x559bbb(++_0x11637a);}(a1050_0x1163,0x112));const a1050_0x559b=function(_0x105603,_0x11637a){_0x105603=_0x105603-0x0;let _0x559bbb=a1050_0x1163[_0x105603];return _0x559bbb;};const _0x1e47c9=a1050_0x559b;'use strict';const Manager=require(_0x1e47c9('0x7')),util=require('util'),logger=require(_0x1e47c9('0x18'))(_0x1e47c9('0x10')),config=require('../../config/environment'),ami=new Manager(config['asterisk'][_0x1e47c9('0x1f')],config[_0x1e47c9('0x1b')]['ip'],config[_0x1e47c9('0x1b')][_0x1e47c9('0xe')],config[_0x1e47c9('0x1b')]['password'],!![]);ami[_0x1e47c9('0x21')](),ami[_0x1e47c9('0x3')]=util[_0x1e47c9('0x13')](ami[_0x1e47c9('0x1')]);function error(_0x4f8fe2){const _0x1198ab=_0x1e47c9;logger[_0x1198ab('0x15')](util[_0x1198ab('0xd')](_0x1198ab('0x22'),config['asterisk']['username'],config[_0x1198ab('0x1b')]['ip'],config['asterisk'][_0x1198ab('0x1f')],util[_0x1198ab('0x1a')](_0x4f8fe2,![],null)));}function close(){const _0x406141=_0x1e47c9;logger[_0x406141('0x15')](util[_0x406141('0xd')]('Manager\x20\x22%s\x22\x20closed\x20to\x20%s:%s',config[_0x406141('0x1b')][_0x406141('0xe')],config[_0x406141('0x1b')]['ip'],config[_0x406141('0x1b')][_0x406141('0x1f')]));}ami[_0x1e47c9('0x5')]=function(){return function(){const _0x2ef3ce=a1050_0x559b;return ami[_0x2ef3ce('0x3')]({'action':_0x2ef3ce('0x11')});};},ami[_0x1e47c9('0xb')]=function(){return function(){const _0x48c28a=a1050_0x559b;return ami[_0x48c28a('0x3')]({'action':'devicestatelist'});};},ami['actionSipPeerStatus']=function(){return function(){const _0x6d430e=a1050_0x559b;return ami[_0x6d430e('0x3')]({'action':_0x6d430e('0x14')});};},ami[_0x1e47c9('0x9')]=function(){return function(){const _0x5b4a3a=a1050_0x559b;return ami[_0x5b4a3a('0x3')]({'action':_0x5b4a3a('0x1c')});};},ami[_0x1e47c9('0x1d')]=function(){return function(){const _0xdd8041=a1050_0x559b;return ami[_0xdd8041('0x3')]({'action':_0xdd8041('0x4')});};};function connect(){const _0x2f5667=_0x1e47c9;logger[_0x2f5667('0xc')](util['format'](_0x2f5667('0xf'),config['asterisk'][_0x2f5667('0xe')],config['asterisk']['ip'],config[_0x2f5667('0x1b')]['port'])),ami[_0x2f5667('0x12')]('error',error),ami[_0x2f5667('0x12')](_0x2f5667('0x2'),close);}ami['on'](_0x1e47c9('0x20'),connect),ami['on'](_0x1e47c9('0x0'),function(_0x1e4129){const _0x47e97d=_0x1e47c9;logger['info'](util[_0x47e97d('0xd')](_0x47e97d('0x19'),config[_0x47e97d('0x1b')][_0x47e97d('0xe')],config[_0x47e97d('0x1b')]['ip'],config['asterisk'][_0x47e97d('0x1f')],util[_0x47e97d('0x1a')](_0x1e4129,![],null)));}),ami['on'](_0x1e47c9('0x1e'),function(){const _0x4a7a4b=_0x1e47c9;return logger['info'](util['format'](_0x4a7a4b('0xa'),config[_0x4a7a4b('0x1b')][_0x4a7a4b('0xe')],config['asterisk']['ip'],config[_0x4a7a4b('0x1b')][_0x4a7a4b('0x1f')])),Promise[_0x4a7a4b('0x17')]()[_0x4a7a4b('0x6')](ami[_0x4a7a4b('0x5')]())[_0x4a7a4b('0x6')](ami[_0x4a7a4b('0xb')]())['then'](ami[_0x4a7a4b('0x23')]())[_0x4a7a4b('0x6')](ami[_0x4a7a4b('0x9')]())[_0x4a7a4b('0x6')](ami[_0x4a7a4b('0x1d')]())[_0x4a7a4b('0x8')](function(_0x32152f){const _0x74ad16=_0x4a7a4b;console[_0x74ad16('0x16')](_0x32152f);});}),ami[_0x1e47c9('0x12')](_0x1e47c9('0x15'),error),ami[_0x1e47c9('0x12')](_0x1e47c9('0x2'),close),module['exports']=ami; \ No newline at end of file +const a1214_0x888e=['catch','keepConnected','username','password','port','asterisk','Shutdown\x20\x22%s\x22\x20to\x20%s:%s\x20with:\x0a%s','devicestatelist','sipshowregistry','format','promisify','error','fullybooted','inspect','actionDeviceStateList','resolve','info','Manager\x20\x22%s\x22\x20logged\x20on\x20to\x20%s:%s','actionSipPeerStatus','Action','actionSipShowRegistry','action','close','exports','../../config/logger','connect','once','sippeerstatus','ami','util','actionCoreShowChannels','then','actionQueueSummary','Manager\x20\x22%s\x22\x20closed\x20to\x20%s:%s'];(function(_0xb45dba,_0x516dc4){const _0x888e77=function(_0x2a70de){while(--_0x2a70de){_0xb45dba['push'](_0xb45dba['shift']());}};_0x888e77(++_0x516dc4);}(a1214_0x888e,0x1de));const a1214_0x2a70=function(_0xb45dba,_0x516dc4){_0xb45dba=_0xb45dba-0x89;let _0x888e77=a1214_0x888e[_0xb45dba];return _0x888e77;};const a1214_0x58caa9=a1214_0x2a70;'use strict';const Manager=require('asterisk-manager'),util=require(a1214_0x58caa9(0xa4)),logger=require(a1214_0x58caa9(0x9f))(a1214_0x58caa9(0xa3)),config=require('../../config/environment'),ami=new Manager(config[a1214_0x58caa9(0x8c)]['port'],config[a1214_0x58caa9(0x8c)]['ip'],config['asterisk'][a1214_0x58caa9(0x89)],config[a1214_0x58caa9(0x8c)][a1214_0x58caa9(0x8a)],!![]);ami[a1214_0x58caa9(0xaa)](),ami[a1214_0x58caa9(0x9a)]=util[a1214_0x58caa9(0x91)](ami[a1214_0x58caa9(0x9c)]);function error(_0x50b613){const _0x2b9c7e=a1214_0x58caa9;logger[_0x2b9c7e(0x92)](util['format']('Manager\x20\x22%s\x22\x20error\x20to\x20%s:%s\x20with:\x0a%s',config[_0x2b9c7e(0x8c)][_0x2b9c7e(0x89)],config[_0x2b9c7e(0x8c)]['ip'],config[_0x2b9c7e(0x8c)]['port'],util[_0x2b9c7e(0x94)](_0x50b613,![],null)));}function close(){const _0x23dd26=a1214_0x58caa9;logger[_0x23dd26(0x92)](util['format'](_0x23dd26(0xa8),config[_0x23dd26(0x8c)][_0x23dd26(0x89)],config['asterisk']['ip'],config[_0x23dd26(0x8c)][_0x23dd26(0x8b)]));}ami['actionSipShowRegistry']=function(){return function(){const _0x300472=a1214_0x2a70;return ami[_0x300472(0x9a)]({'action':_0x300472(0x8f)});};},ami[a1214_0x58caa9(0x95)]=function(){return function(){const _0x18d28e=a1214_0x2a70;return ami[_0x18d28e(0x9a)]({'action':_0x18d28e(0x8e)});};},ami['actionSipPeerStatus']=function(){return function(){const _0xb197c9=a1214_0x2a70;return ami['Action']({'action':_0xb197c9(0xa2)});};},ami[a1214_0x58caa9(0xa7)]=function(){return function(){const _0x3d2b30=a1214_0x2a70;return ami[_0x3d2b30(0x9a)]({'action':'queuesummary'});};},ami[a1214_0x58caa9(0xa5)]=function(){return function(){const _0x5d6caa=a1214_0x2a70;return ami[_0x5d6caa(0x9a)]({'action':'coreshowchannels'});};};function connect(){const _0x5e9834=a1214_0x58caa9;logger[_0x5e9834(0x97)](util[_0x5e9834(0x90)](_0x5e9834(0x98),config['asterisk'][_0x5e9834(0x89)],config[_0x5e9834(0x8c)]['ip'],config[_0x5e9834(0x8c)]['port'])),ami[_0x5e9834(0xa1)](_0x5e9834(0x92),error),ami[_0x5e9834(0xa1)](_0x5e9834(0x9d),close);}ami['on'](a1214_0x58caa9(0xa0),connect),ami['on']('shutdown',function(_0x1e41d9){const _0x1c539b=a1214_0x58caa9;logger['info'](util[_0x1c539b(0x90)](_0x1c539b(0x8d),config[_0x1c539b(0x8c)][_0x1c539b(0x89)],config[_0x1c539b(0x8c)]['ip'],config['asterisk'][_0x1c539b(0x8b)],util['inspect'](_0x1e41d9,![],null)));}),ami['on'](a1214_0x58caa9(0x93),function(){const _0xfb40bb=a1214_0x58caa9;return logger[_0xfb40bb(0x97)](util[_0xfb40bb(0x90)]('Fullybooted\x20\x22%s\x22\x20to\x20%s:%s',config[_0xfb40bb(0x8c)][_0xfb40bb(0x89)],config[_0xfb40bb(0x8c)]['ip'],config[_0xfb40bb(0x8c)][_0xfb40bb(0x8b)])),Promise[_0xfb40bb(0x96)]()['then'](ami[_0xfb40bb(0x9b)]())[_0xfb40bb(0xa6)](ami['actionDeviceStateList']())[_0xfb40bb(0xa6)](ami[_0xfb40bb(0x99)]())[_0xfb40bb(0xa6)](ami[_0xfb40bb(0xa7)]())[_0xfb40bb(0xa6)](ami[_0xfb40bb(0xa5)]())[_0xfb40bb(0xa9)](function(_0x16a542){console['log'](_0x16a542);});}),ami['once']('error',error),ami[a1214_0x58caa9(0xa1)](a1214_0x58caa9(0x9d),close),module[a1214_0x58caa9(0x9e)]=ami; \ No newline at end of file diff --git a/server/services/ami/client.js b/server/services/ami/client.js index b692d2e..4c04650 100644 --- a/server/services/ami/client.js +++ b/server/services/ami/client.js @@ -1 +1 @@ -const a1051_0x1c13=['client','request','message','memberReport','error','Request','http','../../config/logger','ami','then','catch','rpc'];(function(_0x4da27b,_0x1c13e7){const _0x370a7a=function(_0x2801f1){while(--_0x2801f1){_0x4da27b['push'](_0x4da27b['shift']());}};_0x370a7a(++_0x1c13e7);}(a1051_0x1c13,0x1da));const a1051_0x370a=function(_0x4da27b,_0x1c13e7){_0x4da27b=_0x4da27b-0x0;let _0x370a7a=a1051_0x1c13[_0x4da27b];return _0x370a7a;};const _0x7e39fa=a1051_0x370a;'use strict';const jayson=require('jayson/promise'),logger=require(_0x7e39fa('0x1'))(_0x7e39fa('0x2')),client=jayson[_0x7e39fa('0x6')][_0x7e39fa('0x0')]({'port':0x2329});client[_0x7e39fa('0xb')]=function(_0x2801f1,_0x41100e){return new Promise(function(_0xb5b3bb,_0x143962){const _0x46d9fe=a1051_0x370a;return client[_0x46d9fe('0x7')](_0x2801f1,_0x41100e)[_0x46d9fe('0x3')](function(_0x4889f4){const _0x37c11d=_0x46d9fe;return logger['debug']('rpc',_0x37c11d('0x9'),_0x2801f1,_0x41100e,_0x4889f4),_0x4889f4[_0x37c11d('0xa')]?(logger[_0x37c11d('0xa')](_0x37c11d('0x5'),'memberReport',_0x2801f1,_0x4889f4[_0x37c11d('0xa')][_0x37c11d('0x8')],_0x41100e),_0x143962(_0x4889f4[_0x37c11d('0xa')][_0x37c11d('0x8')])):_0xb5b3bb(_0x4889f4['result']);})[_0x46d9fe('0x4')](function(_0xaf19e6){const _0x8434dc=_0x46d9fe;return logger[_0x8434dc('0xa')](_0x8434dc('0x5'),_0x8434dc('0x9'),_0x2801f1,_0xaf19e6,_0x41100e),_0x143962(_0xaf19e6);});});},module['exports']=client; \ No newline at end of file +const a1215_0x15fe=['then','client','debug','result','catch','http','error','request','exports','jayson/promise','rpc','Request','message','ami','memberReport'];(function(_0x54a881,_0x9577e1){const _0x15fed4=function(_0x55f2a6){while(--_0x55f2a6){_0x54a881['push'](_0x54a881['shift']());}};_0x15fed4(++_0x9577e1);}(a1215_0x15fe,0xb4));const a1215_0x55f2=function(_0x54a881,_0x9577e1){_0x54a881=_0x54a881-0x10b;let _0x15fed4=a1215_0x15fe[_0x54a881];return _0x15fed4;};const a1215_0x5af0a5=a1215_0x55f2;'use strict';const jayson=require(a1215_0x5af0a5(0x114)),logger=require('../../config/logger')(a1215_0x5af0a5(0x118)),client=jayson[a1215_0x5af0a5(0x10c)][a1215_0x5af0a5(0x110)]({'port':0x2329});client[a1215_0x5af0a5(0x116)]=function(_0x2a673e,_0x5985e1){return new Promise(function(_0xb8ea74,_0x5866be){const _0x4d2986=a1215_0x55f2;return client[_0x4d2986(0x112)](_0x2a673e,_0x5985e1)[_0x4d2986(0x10b)](function(_0x4f98ec){const _0x31fb91=_0x4d2986;return logger[_0x31fb91(0x10d)](_0x31fb91(0x115),_0x31fb91(0x119),_0x2a673e,_0x5985e1,_0x4f98ec),_0x4f98ec['error']?(logger['error'](_0x31fb91(0x115),_0x31fb91(0x119),_0x2a673e,_0x4f98ec['error']['message'],_0x5985e1),_0x5866be(_0x4f98ec[_0x31fb91(0x111)][_0x31fb91(0x117)])):_0xb8ea74(_0x4f98ec[_0x31fb91(0x10e)]);})[_0x4d2986(0x10f)](function(_0x476d79){const _0xd45920=_0x4d2986;return logger[_0xd45920(0x111)](_0xd45920(0x115),'memberReport',_0x2a673e,_0x476d79,_0x5985e1),_0x5866be(_0x476d79);});});},module[a1215_0x5af0a5(0x113)]=client; \ No newline at end of file diff --git a/server/services/ami/dialer/action.js b/server/services/ami/dialer/action.js index 9e78405..3c69ee9 100644 --- a/server/services/ami/dialer/action.js +++ b/server/services/ami/dialer/action.js @@ -1 +1 @@ -const a1052_0x5685=['lodash','callbackat','recallme','countbusyretry','name','phone','countagentrejectretry','uniqueid','active','UserId','getCaller','type','\x22%s\x22\x20<%s>','scheduledat','voiceQueue','Contact','getQueue','ListId','lastName','VoiceQueueId','ContactId','queue','ContactFirstName','countdropretry','callbackuniqueid','countnosuchnumberretry','countcongestionretry','CampaignId','originatecalleridname','countabandonedretry','originatecalleridnum','firstName','dialCutDigit','prototype','dialQueueTimeout','countnoanswerretry','number','format','starttime','idHopper','exports'];(function(_0x521ad4,_0x568569){const _0x3a5859=function(_0x5081d3){while(--_0x5081d3){_0x521ad4['push'](_0x521ad4['shift']());}};_0x3a5859(++_0x568569);}(a1052_0x5685,0xe0));const a1052_0x3a58=function(_0x521ad4,_0x568569){_0x521ad4=_0x521ad4-0x0;let _0x3a5859=a1052_0x5685[_0x521ad4];return _0x3a5859;};const _0x345295=a1052_0x3a58;'use strict';const util=require('util'),_=require(_0x345295('0x16')),moment=require('moment');function checkNameSurname(_0x5081d3,_0x3f9cd1,_0x3e2be7){let _0x4b3bba='';!_['isNil'](_0x3f9cd1)&&'string'===typeof _0x3f9cd1&&(_0x4b3bba+=_0x3f9cd1);!_['isNil'](_0x3e2be7)&&'string'===typeof _0x3e2be7&&(_0x4b3bba+='\x20'+_0x3e2be7);if(_0x4b3bba!=='')return _0x4b3bba;return _0x5081d3;}function Action(_0x27bc72,_0x4eb16f,_0x5462b9){const _0x2775aa=_0x345295;this['voiceQueue']=_0x27bc72,this[_0x2775aa('0x1d')]=_0x5462b9||undefined,this[_0x2775aa('0x1a')]=checkNameSurname(_0x4eb16f[_0x2775aa('0x25')][_0x2775aa('0x1b')],_0x4eb16f[_0x2775aa('0x25')][_0x2775aa('0xc')],_0x4eb16f[_0x2775aa('0x25')][_0x2775aa('0x28')]),this[_0x2775aa('0x11')]=_0x4eb16f['Contact'][_0x2775aa('0x1b')],this[_0x2775aa('0x2')]=_0x27bc72[_0x2775aa('0x1a')],this[_0x2775aa('0x1e')]=_0x4eb16f[_0x2775aa('0x1e')]||![],this[_0x2775aa('0x21')]=_0x27bc72[_0x2775aa('0x21')],this[_0x2775aa('0xf')]=_0x27bc72[_0x2775aa('0xf')]||0x3,this[_0x2775aa('0x23')]=_0x4eb16f['scheduledat'],this['countbusyretry']=_0x4eb16f[_0x2775aa('0x19')],this[_0x2775aa('0x7')]=_0x4eb16f[_0x2775aa('0x7')],this[_0x2775aa('0x10')]=_0x4eb16f[_0x2775aa('0x10')],this[_0x2775aa('0x6')]=_0x4eb16f['countnosuchnumberretry'],this[_0x2775aa('0x4')]=_0x4eb16f[_0x2775aa('0x4')],this['countabandonedretry']=_0x4eb16f[_0x2775aa('0xa')],this['countmachineretry']=_0x4eb16f['countmachineretry'],this[_0x2775aa('0x1c')]=_0x4eb16f[_0x2775aa('0x1c')],this['ContactId']=_0x4eb16f[_0x2775aa('0x1')],this[_0x2775aa('0x27')]=_0x4eb16f[_0x2775aa('0x27')],this[_0x2775aa('0x1f')]=_0x4eb16f[_0x2775aa('0x1f')],this[_0x2775aa('0x0')]=_0x4eb16f[_0x2775aa('0x0')],this[_0x2775aa('0x8')]=_0x4eb16f['CampaignId'],this[_0x2775aa('0x14')]=_0x4eb16f['id'],this[_0x2775aa('0x3')]=_0x4eb16f[_0x2775aa('0x25')]['firstName']||'',this[_0x2775aa('0x13')]=moment()[_0x2775aa('0x12')]('YYYY-MM-DD\x20HH:mm:ss'),this['callback']=_0x4eb16f['callback'],this[_0x2775aa('0x5')]=_0x4eb16f['callbackuniqueid'],this['callbackat']=_0x4eb16f[_0x2775aa('0x17')],this[_0x2775aa('0x18')]=_0x4eb16f[_0x2775aa('0x18')],this[_0x2775aa('0xb')]='',this[_0x2775aa('0x9')]='';}Action[_0x345295('0xe')][_0x345295('0x20')]=function(){const _0x91580f=_0x345295;return util[_0x91580f('0x12')](_0x91580f('0x22'),this['name'],this[_0x91580f('0x24')][_0x91580f('0xd')]>0x0?this[_0x91580f('0x11')]['substring'](this[_0x91580f('0x24')][_0x91580f('0xd')]):this[_0x91580f('0x11')]);},Action[_0x345295('0xe')][_0x345295('0x26')]=function(){const _0xb66696=_0x345295;return this[_0xb66696('0x2')];},module[_0x345295('0x15')]=Action; \ No newline at end of file +const a1216_0x3f17=['countabandonedretry','string','callback','util','callbackuniqueid','YYYY-MM-DD\x20HH:mm:ss','ListId','UserId','countagentrejectretry','voiceQueue','originatecalleridname','VoiceQueueId','recallme','callbackat','countdropretry','Contact','format','CampaignId','getQueue','countnosuchnumberretry','lastName','type','prototype','queue','ContactFirstName','idHopper','isNil','substring','dialCutDigit','countcongestionretry','lodash','name','number','countbusyretry','getCaller','firstName','phone','countmachineretry','uniqueid','dialQueueTimeout','ContactId','exports','starttime'];(function(_0x419881,_0x3b9f4f){const _0x3f17ef=function(_0x30940e){while(--_0x30940e){_0x419881['push'](_0x419881['shift']());}};_0x3f17ef(++_0x3b9f4f);}(a1216_0x3f17,0xfa));const a1216_0x3094=function(_0x419881,_0x3b9f4f){_0x419881=_0x419881-0xf4;let _0x3f17ef=a1216_0x3f17[_0x419881];return _0x3f17ef;};const a1216_0x171d26=a1216_0x3094;'use strict';const util=require(a1216_0x171d26(0xff)),_=require(a1216_0x171d26(0x11a)),moment=require('moment');function checkNameSurname(_0x5d4083,_0x38d603,_0xfee92e){const _0x5210b1=a1216_0x171d26;let _0x2f14f2='';!_[_0x5210b1(0x116)](_0x38d603)&&'string'===typeof _0x38d603&&(_0x2f14f2+=_0x38d603);!_[_0x5210b1(0x116)](_0xfee92e)&&_0x5210b1(0xfd)===typeof _0xfee92e&&(_0x2f14f2+='\x20'+_0xfee92e);if(_0x2f14f2!=='')return _0x2f14f2;return _0x5d4083;}function Action(_0x3c6991,_0xb5e93c,_0x5f685c){const _0x2e9eff=a1216_0x171d26;this[_0x2e9eff(0x105)]=_0x3c6991,this[_0x2e9eff(0xf7)]=_0x5f685c||undefined,this['name']=checkNameSurname(_0xb5e93c[_0x2e9eff(0x10b)][_0x2e9eff(0xf5)],_0xb5e93c[_0x2e9eff(0x10b)]['firstName'],_0xb5e93c[_0x2e9eff(0x10b)][_0x2e9eff(0x110)]),this['number']=_0xb5e93c['Contact']['phone'],this['queue']=_0x3c6991[_0x2e9eff(0x11b)],this['active']=_0xb5e93c['active']||![],this[_0x2e9eff(0x111)]=_0x3c6991[_0x2e9eff(0x111)],this[_0x2e9eff(0xf8)]=_0x3c6991['dialQueueTimeout']||0x3,this['scheduledat']=_0xb5e93c['scheduledat'],this[_0x2e9eff(0x11d)]=_0xb5e93c[_0x2e9eff(0x11d)],this[_0x2e9eff(0x119)]=_0xb5e93c[_0x2e9eff(0x119)],this['countnoanswerretry']=_0xb5e93c['countnoanswerretry'],this['countnosuchnumberretry']=_0xb5e93c[_0x2e9eff(0x10f)],this['countdropretry']=_0xb5e93c[_0x2e9eff(0x10a)],this[_0x2e9eff(0xfc)]=_0xb5e93c[_0x2e9eff(0xfc)],this[_0x2e9eff(0xf6)]=_0xb5e93c['countmachineretry'],this['countagentrejectretry']=_0xb5e93c[_0x2e9eff(0x104)],this[_0x2e9eff(0xf9)]=_0xb5e93c[_0x2e9eff(0xf9)],this[_0x2e9eff(0x102)]=_0xb5e93c[_0x2e9eff(0x102)],this['UserId']=_0xb5e93c[_0x2e9eff(0x103)],this[_0x2e9eff(0x107)]=_0xb5e93c[_0x2e9eff(0x107)],this[_0x2e9eff(0x10d)]=_0xb5e93c[_0x2e9eff(0x10d)],this[_0x2e9eff(0x115)]=_0xb5e93c['id'],this[_0x2e9eff(0x114)]=_0xb5e93c[_0x2e9eff(0x10b)][_0x2e9eff(0xf4)]||'',this[_0x2e9eff(0xfb)]=moment()[_0x2e9eff(0x10c)](_0x2e9eff(0x101)),this[_0x2e9eff(0xfe)]=_0xb5e93c[_0x2e9eff(0xfe)],this[_0x2e9eff(0x100)]=_0xb5e93c[_0x2e9eff(0x100)],this[_0x2e9eff(0x109)]=_0xb5e93c[_0x2e9eff(0x109)],this[_0x2e9eff(0x108)]=_0xb5e93c[_0x2e9eff(0x108)],this['originatecalleridnum']='',this[_0x2e9eff(0x106)]='';}Action[a1216_0x171d26(0x112)][a1216_0x171d26(0x11e)]=function(){const _0x12ac58=a1216_0x171d26;return util['format']('\x22%s\x22\x20<%s>',this[_0x12ac58(0x11b)],this['voiceQueue'][_0x12ac58(0x118)]>0x0?this[_0x12ac58(0x11c)][_0x12ac58(0x117)](this[_0x12ac58(0x105)][_0x12ac58(0x118)]):this['number']);},Action[a1216_0x171d26(0x112)][a1216_0x171d26(0x10e)]=function(){const _0x452654=a1216_0x171d26;return this[_0x452654(0x113)];},module[a1216_0x171d26(0xfa)]=Action; \ No newline at end of file diff --git a/server/services/ami/dialer/agentComplete.js b/server/services/ami/dialer/agentComplete.js index 41bacb0..d569c9c 100644 --- a/server/services/ami/dialer/agentComplete.js +++ b/server/services/ami/dialer/agentComplete.js @@ -1 +1 @@ -const a1053_0x23bb=['countnoanswerretry','type','endtime','name','countmachineretry','countnosuchnumberretry','ListId','callback','membername','callbackuniqueid','uniqueid','callbackat','starttime','countdropretry','statedesc','number','moment','ContactId','CampaignId','originatecalleridnum','calleridname','calleridnum','campaigntype','milliseconds','UserId','countcongestionretry','responsetime','countbusyretry','state','VoiceQueueId','answertime','countabandonedretry','talktime','ringtime','reason','seconds','countagentrejectretry','outbound','scheduledat','Answer','queue','originatecalleridname'];(function(_0x17d4b3,_0x23bbbd){const _0x3fed6f=function(_0x256280){while(--_0x256280){_0x17d4b3['push'](_0x17d4b3['shift']());}};_0x3fed6f(++_0x23bbbd);}(a1053_0x23bb,0x6f));const a1053_0x3fed=function(_0x17d4b3,_0x23bbbd){_0x17d4b3=_0x17d4b3-0x0;let _0x3fed6f=a1053_0x23bb[_0x17d4b3];return _0x3fed6f;};const _0x1e2b4a=a1053_0x3fed;'use strict';const moment=require(_0x1e2b4a('0x1f'));function getSeconds(_0x256280,_0x21fa80){const _0x5859e6=_0x1e2b4a,_0x2de937=moment(_0x256280)[_0x5859e6('0x26')](0x0),_0x2e79f4=moment(_0x21fa80)['milliseconds'](0x0);return _0x2de937['diff'](_0x2e79f4,_0x5859e6('0x8'));}function AgentComplete(_0x55b616,_0x2036dd){const _0x3645f1=_0x1e2b4a;this[_0x3645f1('0x1')]=0x4,this[_0x3645f1('0x1d')]=_0x3645f1('0xc'),this[_0x3645f1('0xb')]=_0x55b616['scheduledat'],this[_0x3645f1('0x10')]=_0x55b616[_0x3645f1('0x10')],this[_0x3645f1('0x25')]=_0x55b616[_0x3645f1('0x10')]===_0x3645f1('0xa')?_0x3645f1('0xd'):_0x55b616['type'],this[_0x3645f1('0x0')]=_0x55b616['countbusyretry'],this[_0x3645f1('0x28')]=_0x55b616['countcongestionretry'],this[_0x3645f1('0xf')]=_0x55b616[_0x3645f1('0xf')],this['countglobal']=_0x55b616['countbusyretry']+_0x55b616['countcongestionretry']+_0x55b616[_0x3645f1('0xf')]+_0x55b616[_0x3645f1('0x14')]+_0x55b616['countdropretry']+_0x55b616[_0x3645f1('0x4')]+_0x55b616[_0x3645f1('0x13')]+_0x55b616[_0x3645f1('0x9')],this['countnosuchnumberretry']=_0x55b616[_0x3645f1('0x14')],this['countdropretry']=_0x55b616[_0x3645f1('0x1c')],this[_0x3645f1('0x4')]=_0x55b616[_0x3645f1('0x4')],this['countmachineretry']=_0x55b616[_0x3645f1('0x13')],this['countagentrejectretry']=_0x55b616[_0x3645f1('0x9')],this[_0x3645f1('0x19')]=_0x2036dd['uniqueid'],this[_0x3645f1('0x23')]=_0x55b616[_0x3645f1('0x12')],this[_0x3645f1('0x24')]=_0x55b616[_0x3645f1('0x1e')],this[_0x3645f1('0x1b')]=_0x55b616[_0x3645f1('0x1b')],this[_0x3645f1('0x29')]=_0x55b616[_0x3645f1('0x29')],this[_0x3645f1('0x3')]=_0x55b616['answertime'],this[_0x3645f1('0x11')]=moment()['format']('YYYY-MM-DD\x20HH:mm:ss'),this[_0x3645f1('0x6')]=getSeconds(_0x55b616[_0x3645f1('0x29')],_0x55b616[_0x3645f1('0x1b')]),this['holdtime']=getSeconds(_0x55b616[_0x3645f1('0x3')],_0x55b616[_0x3645f1('0x29')]),this[_0x3645f1('0x5')]=getSeconds(this['endtime'],_0x55b616[_0x3645f1('0x3')]),this[_0x3645f1('0xd')]=_0x2036dd[_0x3645f1('0xd')],this[_0x3645f1('0x17')]=_0x2036dd[_0x3645f1('0x17')],this['reason']=_0x2036dd[_0x3645f1('0x7')],this[_0x3645f1('0x16')]=_0x55b616['callback'],this[_0x3645f1('0x18')]=_0x55b616[_0x3645f1('0x18')],this[_0x3645f1('0x1a')]=_0x55b616[_0x3645f1('0x1a')],this['recallme']=_0x55b616['recallme'],this[_0x3645f1('0x20')]=_0x55b616['ContactId'],this[_0x3645f1('0x15')]=_0x55b616[_0x3645f1('0x15')],this[_0x3645f1('0x27')]=_0x55b616[_0x3645f1('0x27')],this[_0x3645f1('0x2')]=_0x55b616['VoiceQueueId'],this[_0x3645f1('0x21')]=_0x55b616[_0x3645f1('0x21')],this[_0x3645f1('0x22')]=_0x55b616[_0x3645f1('0x22')]||'',this[_0x3645f1('0xe')]=_0x55b616['originatecalleridname']||'';}module['exports']=AgentComplete; \ No newline at end of file +const a1217_0x3c84=['membername','countabandonedretry','ListId','VoiceQueueId','number','CampaignId','diff','state','seconds','countnoanswerretry','endtime','talktime','type','countagentrejectretry','countnosuchnumberretry','milliseconds','countbusyretry','countglobal','responsetime','outbound','Answer','countdropretry','statedesc','reason','callbackat','recallme','exports','calleridnum','originatecalleridnum','countcongestionretry','answertime','ContactId','uniqueid','ringtime','moment','scheduledat','countmachineretry','originatecalleridname','starttime','queue'];(function(_0x5e252a,_0x35772e){const _0x3c84da=function(_0x1ab916){while(--_0x1ab916){_0x5e252a['push'](_0x5e252a['shift']());}};_0x3c84da(++_0x35772e);}(a1217_0x3c84,0xa6));const a1217_0x1ab9=function(_0x5e252a,_0x35772e){_0x5e252a=_0x5e252a-0x78;let _0x3c84da=a1217_0x3c84[_0x5e252a];return _0x3c84da;};const a1217_0x53ada6=a1217_0x1ab9;'use strict';const moment=require(a1217_0x53ada6(0x94));function getSeconds(_0x361d4f,_0x240d7d){const _0x465a14=a1217_0x53ada6,_0x13f3de=moment(_0x361d4f)[_0x465a14(0x81)](0x0),_0xaf3959=moment(_0x240d7d)[_0x465a14(0x81)](0x0);return _0x13f3de[_0x465a14(0x78)](_0xaf3959,_0x465a14(0x7a));}function AgentComplete(_0x44eeb6,_0x573ece){const _0x5bb946=a1217_0x53ada6;this[_0x5bb946(0x79)]=0x4,this[_0x5bb946(0x88)]=_0x5bb946(0x86),this[_0x5bb946(0x95)]=_0x44eeb6[_0x5bb946(0x95)],this[_0x5bb946(0x7e)]=_0x44eeb6[_0x5bb946(0x7e)],this['campaigntype']=_0x44eeb6[_0x5bb946(0x7e)]===_0x5bb946(0x85)?_0x5bb946(0x99):_0x44eeb6[_0x5bb946(0x7e)],this['countbusyretry']=_0x44eeb6[_0x5bb946(0x82)],this[_0x5bb946(0x8f)]=_0x44eeb6[_0x5bb946(0x8f)],this[_0x5bb946(0x7b)]=_0x44eeb6[_0x5bb946(0x7b)],this[_0x5bb946(0x83)]=_0x44eeb6['countbusyretry']+_0x44eeb6['countcongestionretry']+_0x44eeb6['countnoanswerretry']+_0x44eeb6['countnosuchnumberretry']+_0x44eeb6['countdropretry']+_0x44eeb6[_0x5bb946(0x9b)]+_0x44eeb6[_0x5bb946(0x96)]+_0x44eeb6['countagentrejectretry'],this[_0x5bb946(0x80)]=_0x44eeb6[_0x5bb946(0x80)],this['countdropretry']=_0x44eeb6[_0x5bb946(0x87)],this[_0x5bb946(0x9b)]=_0x44eeb6[_0x5bb946(0x9b)],this['countmachineretry']=_0x44eeb6[_0x5bb946(0x96)],this[_0x5bb946(0x7f)]=_0x44eeb6['countagentrejectretry'],this[_0x5bb946(0x92)]=_0x573ece[_0x5bb946(0x92)],this['calleridname']=_0x44eeb6['name'],this[_0x5bb946(0x8d)]=_0x44eeb6[_0x5bb946(0x9e)],this['starttime']=_0x44eeb6[_0x5bb946(0x98)],this[_0x5bb946(0x84)]=_0x44eeb6[_0x5bb946(0x84)],this[_0x5bb946(0x90)]=_0x44eeb6['answertime'],this[_0x5bb946(0x7c)]=moment()['format']('YYYY-MM-DD\x20HH:mm:ss'),this[_0x5bb946(0x93)]=getSeconds(_0x44eeb6[_0x5bb946(0x84)],_0x44eeb6[_0x5bb946(0x98)]),this['holdtime']=getSeconds(_0x44eeb6['answertime'],_0x44eeb6[_0x5bb946(0x84)]),this[_0x5bb946(0x7d)]=getSeconds(this[_0x5bb946(0x7c)],_0x44eeb6['answertime']),this['queue']=_0x573ece[_0x5bb946(0x99)],this[_0x5bb946(0x9a)]=_0x573ece[_0x5bb946(0x9a)],this[_0x5bb946(0x89)]=_0x573ece[_0x5bb946(0x89)],this['callback']=_0x44eeb6['callback'],this['callbackuniqueid']=_0x44eeb6['callbackuniqueid'],this[_0x5bb946(0x8a)]=_0x44eeb6[_0x5bb946(0x8a)],this[_0x5bb946(0x8b)]=_0x44eeb6[_0x5bb946(0x8b)],this[_0x5bb946(0x91)]=_0x44eeb6['ContactId'],this['ListId']=_0x44eeb6[_0x5bb946(0x9c)],this['UserId']=_0x44eeb6['UserId'],this[_0x5bb946(0x9d)]=_0x44eeb6[_0x5bb946(0x9d)],this[_0x5bb946(0x9f)]=_0x44eeb6[_0x5bb946(0x9f)],this[_0x5bb946(0x8e)]=_0x44eeb6[_0x5bb946(0x8e)]||'',this[_0x5bb946(0x97)]=_0x44eeb6[_0x5bb946(0x97)]||'';}module[a1217_0x53ada6(0x8c)]=AgentComplete; \ No newline at end of file diff --git a/server/services/ami/dialer/final.js b/server/services/ami/dialer/final.js index b4e9d8a..a6b4b91 100644 --- a/server/services/ami/dialer/final.js +++ b/server/services/ami/dialer/final.js @@ -1 +1 @@ -var a1054_0x35d8=['holdtime','calleridnum','countagentrejectretry','calleridname','originatecalleridname','callbackuniqueid','callback','countdropretry','responsetime','callbackat','type','countabandonedretry','ListId','countbusyretry','countmachineretry','exports','VoiceQueueId','ringtime','endtime','starttime','talktime','uniqueid','countcongestionretry','outbound','ContactId','countglobal','recallme','originatecalleridnum','CampaignId','countnosuchnumberretry'];(function(_0x2a5c97,_0x35d841){var _0x26da47=function(_0x3e7773){while(--_0x3e7773){_0x2a5c97['push'](_0x2a5c97['shift']());}};_0x26da47(++_0x35d841);}(a1054_0x35d8,0x10f));var a1054_0x26da=function(_0x2a5c97,_0x35d841){_0x2a5c97=_0x2a5c97-0x0;var _0x26da47=a1054_0x35d8[_0x2a5c97];return _0x26da47;};var _0x239d22=a1054_0x26da;'use strict';function Final(_0x3e7773){var _0x2356c1=a1054_0x26da;this[_0x2356c1('0x14')]=_0x3e7773[_0x2356c1('0x14')],this['scheduledat']=_0x3e7773['scheduledat'],this[_0x2356c1('0x9')]=_0x3e7773[_0x2356c1('0x9')],this['campaigntype']=_0x3e7773['type']===_0x2356c1('0x16')?'queue':_0x3e7773[_0x2356c1('0x9')],this['countbusyretry']=_0x3e7773[_0x2356c1('0xc')],this['countcongestionretry']=_0x3e7773[_0x2356c1('0x15')],this['countnoanswerretry']=_0x3e7773['countnoanswerretry'],this[_0x2356c1('0x18')]=_0x3e7773[_0x2356c1('0xc')]+_0x3e7773[_0x2356c1('0x15')]+_0x3e7773['countnoanswerretry']+_0x3e7773['countnosuchnumberretry']+_0x3e7773[_0x2356c1('0x6')]+_0x3e7773[_0x2356c1('0xa')]+_0x3e7773['countmachineretry']+_0x3e7773[_0x2356c1('0x1')],this[_0x2356c1('0x1c')]=_0x3e7773[_0x2356c1('0x1c')],this['countdropretry']=_0x3e7773['countdropretry'],this[_0x2356c1('0xa')]=_0x3e7773[_0x2356c1('0xa')],this[_0x2356c1('0xd')]=_0x3e7773[_0x2356c1('0xd')],this[_0x2356c1('0x1')]=_0x3e7773[_0x2356c1('0x1')],this['queue']=_0x3e7773['queue'],this[_0x2356c1('0x2')]=_0x3e7773[_0x2356c1('0x2')],this[_0x2356c1('0x0')]=_0x3e7773['calleridnum'],this['starttime']=_0x3e7773[_0x2356c1('0x12')],this[_0x2356c1('0x7')]=_0x3e7773[_0x2356c1('0x7')],this[_0x2356c1('0x11')]=_0x3e7773[_0x2356c1('0x7')],this[_0x2356c1('0x10')]=_0x3e7773[_0x2356c1('0x10')]||0x0,this[_0x2356c1('0x1d')]=_0x3e7773[_0x2356c1('0x1d')]||0x0,this[_0x2356c1('0x13')]=_0x3e7773[_0x2356c1('0x13')]||0x0,this[_0x2356c1('0x5')]=_0x3e7773['callback'],this['callbackuniqueid']=_0x3e7773[_0x2356c1('0x4')],this[_0x2356c1('0x8')]=_0x3e7773[_0x2356c1('0x8')],this[_0x2356c1('0x19')]=_0x3e7773[_0x2356c1('0x19')],this['ContactId']=_0x3e7773[_0x2356c1('0x17')],this['ListId']=_0x3e7773[_0x2356c1('0xb')],this['UserId']=_0x3e7773['UserId'],this[_0x2356c1('0xf')]=_0x3e7773['VoiceQueueId'],this[_0x2356c1('0x1b')]=_0x3e7773['CampaignId'],this[_0x2356c1('0x1a')]=_0x3e7773[_0x2356c1('0x1a')]||'',this[_0x2356c1('0x3')]=_0x3e7773[_0x2356c1('0x3')]||'';}module[_0x239d22('0xe')]=Final; \ No newline at end of file +var a1218_0x38d2=['CampaignId','callbackat','recallme','queue','countcongestionretry','countglobal','outbound','UserId','ContactId','ringtime','type','responsetime','VoiceQueueId','talktime','countagentrejectretry','endtime','calleridnum','ListId','scheduledat','countmachineretry','originatecalleridnum','starttime','countnosuchnumberretry','originatecalleridname','callbackuniqueid','countbusyretry','campaigntype','holdtime','countdropretry','countnoanswerretry','callback','uniqueid'];(function(_0xe688ac,_0x1243b4){var _0x38d240=function(_0x53bd64){while(--_0x53bd64){_0xe688ac['push'](_0xe688ac['shift']());}};_0x38d240(++_0x1243b4);}(a1218_0x38d2,0x115));var a1218_0x53bd=function(_0xe688ac,_0x1243b4){_0xe688ac=_0xe688ac-0x125;var _0x38d240=a1218_0x38d2[_0xe688ac];return _0x38d240;};'use strict';function Final(_0x23da79){var _0x2416e1=a1218_0x53bd;this[_0x2416e1(0x12f)]=_0x23da79[_0x2416e1(0x12f)],this['scheduledat']=_0x23da79[_0x2416e1(0x142)],this[_0x2416e1(0x13a)]=_0x23da79[_0x2416e1(0x13a)],this[_0x2416e1(0x12a)]=_0x23da79[_0x2416e1(0x13a)]===_0x2416e1(0x136)?_0x2416e1(0x133):_0x23da79[_0x2416e1(0x13a)],this[_0x2416e1(0x129)]=_0x23da79[_0x2416e1(0x129)],this['countcongestionretry']=_0x23da79[_0x2416e1(0x134)],this[_0x2416e1(0x12d)]=_0x23da79['countnoanswerretry'],this[_0x2416e1(0x135)]=_0x23da79[_0x2416e1(0x129)]+_0x23da79[_0x2416e1(0x134)]+_0x23da79[_0x2416e1(0x12d)]+_0x23da79[_0x2416e1(0x126)]+_0x23da79[_0x2416e1(0x12c)]+_0x23da79['countabandonedretry']+_0x23da79[_0x2416e1(0x143)]+_0x23da79[_0x2416e1(0x13e)],this[_0x2416e1(0x126)]=_0x23da79[_0x2416e1(0x126)],this[_0x2416e1(0x12c)]=_0x23da79[_0x2416e1(0x12c)],this['countabandonedretry']=_0x23da79['countabandonedretry'],this[_0x2416e1(0x143)]=_0x23da79[_0x2416e1(0x143)],this[_0x2416e1(0x13e)]=_0x23da79[_0x2416e1(0x13e)],this[_0x2416e1(0x133)]=_0x23da79[_0x2416e1(0x133)],this['calleridname']=_0x23da79['calleridname'],this[_0x2416e1(0x140)]=_0x23da79[_0x2416e1(0x140)],this[_0x2416e1(0x125)]=_0x23da79[_0x2416e1(0x125)],this[_0x2416e1(0x13b)]=_0x23da79[_0x2416e1(0x13b)],this[_0x2416e1(0x13f)]=_0x23da79[_0x2416e1(0x13b)],this['ringtime']=_0x23da79[_0x2416e1(0x139)]||0x0,this[_0x2416e1(0x12b)]=_0x23da79[_0x2416e1(0x12b)]||0x0,this['talktime']=_0x23da79[_0x2416e1(0x13d)]||0x0,this['callback']=_0x23da79[_0x2416e1(0x12e)],this[_0x2416e1(0x128)]=_0x23da79['callbackuniqueid'],this[_0x2416e1(0x131)]=_0x23da79[_0x2416e1(0x131)],this['recallme']=_0x23da79[_0x2416e1(0x132)],this[_0x2416e1(0x138)]=_0x23da79[_0x2416e1(0x138)],this[_0x2416e1(0x141)]=_0x23da79[_0x2416e1(0x141)],this[_0x2416e1(0x137)]=_0x23da79[_0x2416e1(0x137)],this[_0x2416e1(0x13c)]=_0x23da79[_0x2416e1(0x13c)],this[_0x2416e1(0x130)]=_0x23da79[_0x2416e1(0x130)],this[_0x2416e1(0x144)]=_0x23da79[_0x2416e1(0x144)]||'',this[_0x2416e1(0x127)]=_0x23da79[_0x2416e1(0x127)]||'';}module['exports']=Final; \ No newline at end of file diff --git a/server/services/ami/dialer/hangup.js b/server/services/ami/dialer/hangup.js index 2da42b5..c1ea6c9 100644 --- a/server/services/ami/dialer/hangup.js +++ b/server/services/ami/dialer/hangup.js @@ -1 +1 @@ -const a1055_0x32c8=['countmachineretry','countcongestionretry','queue','ListId','uniqueid','ringtime','reason','milliseconds','outbound','name','starttime','countnoanswerretry','statedesc','VoiceQueueId','Answer','talktime','countdropretry','number','countabandonedretry','type','callbackuniqueid','recallme','endtime','IVR','membername','seconds','campaigntype','UserId','countnosuchnumberretry','CampaignId','exports','countglobal','calleridnum','responsetime','format','calleridname','callback','cause-txt','countbusyretry','scheduledat','countagentrejectretry'];(function(_0x55ba79,_0x32c8bc){const _0x4a324=function(_0x1e7f13){while(--_0x1e7f13){_0x55ba79['push'](_0x55ba79['shift']());}};_0x4a324(++_0x32c8bc);}(a1055_0x32c8,0x1b0));const a1055_0x4a32=function(_0x55ba79,_0x32c8bc){_0x55ba79=_0x55ba79-0x0;let _0x4a324=a1055_0x32c8[_0x55ba79];return _0x4a324;};const _0x19b738=a1055_0x4a32;'use strict';const moment=require('moment');function getSeconds(_0x1e7f13,_0x310ac7){const _0x6f02ab=a1055_0x4a32,_0x3f2fdd=moment(_0x1e7f13)['milliseconds'](0x0),_0x31cee5=moment(_0x310ac7)[_0x6f02ab('0x1a')](0x0);return _0x3f2fdd['diff'](_0x31cee5,_0x6f02ab('0x3'));}function Hangup(_0x72a34a,_0x69d593){const _0x3e17c1=a1055_0x4a32;this['state']=0x4,this[_0x3e17c1('0x1f')]=_0x3e17c1('0x21'),this[_0x3e17c1('0x11')]=_0x72a34a[_0x3e17c1('0x11')],this[_0x3e17c1('0x26')]=_0x72a34a[_0x3e17c1('0x26')],this[_0x3e17c1('0x4')]=_0x72a34a[_0x3e17c1('0x26')]===_0x3e17c1('0x1b')?_0x3e17c1('0x15'):_0x72a34a['type'],this[_0x3e17c1('0x10')]=_0x72a34a[_0x3e17c1('0x10')],this[_0x3e17c1('0x14')]=_0x72a34a[_0x3e17c1('0x14')],this[_0x3e17c1('0x1e')]=_0x72a34a[_0x3e17c1('0x1e')],this[_0x3e17c1('0x9')]=_0x72a34a['countbusyretry']+_0x72a34a[_0x3e17c1('0x14')]+_0x72a34a[_0x3e17c1('0x1e')]+_0x72a34a['countnosuchnumberretry']+_0x72a34a[_0x3e17c1('0x23')]+_0x72a34a[_0x3e17c1('0x25')]+_0x72a34a[_0x3e17c1('0x13')]+_0x72a34a[_0x3e17c1('0x12')],this[_0x3e17c1('0x6')]=_0x72a34a[_0x3e17c1('0x6')],this[_0x3e17c1('0x23')]=_0x72a34a[_0x3e17c1('0x23')],this[_0x3e17c1('0x25')]=_0x72a34a[_0x3e17c1('0x25')],this[_0x3e17c1('0x13')]=_0x72a34a[_0x3e17c1('0x13')],this[_0x3e17c1('0x12')]=_0x72a34a[_0x3e17c1('0x12')],this[_0x3e17c1('0x17')]=_0x69d593[_0x3e17c1('0x17')],this[_0x3e17c1('0xd')]=_0x72a34a[_0x3e17c1('0x1c')],this[_0x3e17c1('0xa')]=_0x72a34a[_0x3e17c1('0x24')],this[_0x3e17c1('0x1d')]=_0x72a34a[_0x3e17c1('0x1d')],this[_0x3e17c1('0xb')]=_0x72a34a[_0x3e17c1('0xb')],this[_0x3e17c1('0x0')]=moment()[_0x3e17c1('0xc')]('YYYY-MM-DD\x20HH:mm:ss'),this[_0x3e17c1('0x18')]=getSeconds(_0x72a34a['responsetime'],_0x72a34a[_0x3e17c1('0x1d')]),this['holdtime']=0x0,this[_0x3e17c1('0x22')]=getSeconds(this[_0x3e17c1('0x0')],_0x72a34a[_0x3e17c1('0xb')]),this['queue']=_0x72a34a[_0x3e17c1('0x15')],this[_0x3e17c1('0x2')]=_0x3e17c1('0x1'),this[_0x3e17c1('0x19')]=_0x69d593[_0x3e17c1('0xf')],this['callback']=_0x72a34a[_0x3e17c1('0xe')],this['callbackuniqueid']=_0x72a34a[_0x3e17c1('0x27')],this['callbackat']=_0x72a34a['callbackat'],this['recallme']=_0x72a34a[_0x3e17c1('0x28')],this['ContactId']=_0x72a34a['ContactId'],this[_0x3e17c1('0x16')]=_0x72a34a[_0x3e17c1('0x16')],this[_0x3e17c1('0x5')]=_0x72a34a['UserId'],this[_0x3e17c1('0x20')]=_0x72a34a[_0x3e17c1('0x20')],this[_0x3e17c1('0x7')]=_0x72a34a[_0x3e17c1('0x7')];}module[_0x19b738('0x8')]=Hangup; \ No newline at end of file +const a1219_0x431d=['CampaignId','state','countnoanswerretry','UserId','countcongestionretry','countabandonedretry','talktime','countbusyretry','responsetime','endtime','callbackuniqueid','scheduledat','countnosuchnumberretry','Answer','VoiceQueueId','countagentrejectretry','countmachineretry','seconds','milliseconds','ContactId','starttime','uniqueid','callbackat','outbound','membername','callback','countdropretry','diff','calleridnum','holdtime','ringtime','recallme','number','type','statedesc','ListId','queue','countglobal'];(function(_0x563d70,_0xfe393f){const _0x431d59=function(_0x34b6e4){while(--_0x34b6e4){_0x563d70['push'](_0x563d70['shift']());}};_0x431d59(++_0xfe393f);}(a1219_0x431d,0x163));const a1219_0x34b6=function(_0x563d70,_0xfe393f){_0x563d70=_0x563d70-0x1e9;let _0x431d59=a1219_0x431d[_0x563d70];return _0x431d59;};'use strict';const moment=require('moment');function getSeconds(_0x317c9a,_0x2caf04){const _0x45231b=a1219_0x34b6,_0x15448b=moment(_0x317c9a)[_0x45231b(0x1ee)](0x0),_0x4f9016=moment(_0x2caf04)['milliseconds'](0x0);return _0x15448b[_0x45231b(0x1f7)](_0x4f9016,_0x45231b(0x1ed));}function Hangup(_0x420dcd,_0x2dfba0){const _0x467a87=a1219_0x34b6;this[_0x467a87(0x203)]=0x4,this[_0x467a87(0x1fe)]=_0x467a87(0x1e9),this[_0x467a87(0x20d)]=_0x420dcd['scheduledat'],this[_0x467a87(0x1fd)]=_0x420dcd[_0x467a87(0x1fd)],this['campaigntype']=_0x420dcd['type']===_0x467a87(0x1f3)?_0x467a87(0x200):_0x420dcd[_0x467a87(0x1fd)],this[_0x467a87(0x209)]=_0x420dcd[_0x467a87(0x209)],this[_0x467a87(0x206)]=_0x420dcd[_0x467a87(0x206)],this[_0x467a87(0x204)]=_0x420dcd[_0x467a87(0x204)],this[_0x467a87(0x201)]=_0x420dcd[_0x467a87(0x209)]+_0x420dcd[_0x467a87(0x206)]+_0x420dcd[_0x467a87(0x204)]+_0x420dcd[_0x467a87(0x20e)]+_0x420dcd[_0x467a87(0x1f6)]+_0x420dcd[_0x467a87(0x207)]+_0x420dcd[_0x467a87(0x1ec)]+_0x420dcd[_0x467a87(0x1eb)],this[_0x467a87(0x20e)]=_0x420dcd[_0x467a87(0x20e)],this['countdropretry']=_0x420dcd[_0x467a87(0x1f6)],this['countabandonedretry']=_0x420dcd[_0x467a87(0x207)],this[_0x467a87(0x1ec)]=_0x420dcd[_0x467a87(0x1ec)],this[_0x467a87(0x1eb)]=_0x420dcd[_0x467a87(0x1eb)],this[_0x467a87(0x1f1)]=_0x2dfba0['uniqueid'],this['calleridname']=_0x420dcd['name'],this[_0x467a87(0x1f8)]=_0x420dcd[_0x467a87(0x1fc)],this[_0x467a87(0x1f0)]=_0x420dcd[_0x467a87(0x1f0)],this[_0x467a87(0x20a)]=_0x420dcd[_0x467a87(0x20a)],this[_0x467a87(0x20b)]=moment()['format']('YYYY-MM-DD\x20HH:mm:ss'),this[_0x467a87(0x1fa)]=getSeconds(_0x420dcd[_0x467a87(0x20a)],_0x420dcd[_0x467a87(0x1f0)]),this[_0x467a87(0x1f9)]=0x0,this[_0x467a87(0x208)]=getSeconds(this[_0x467a87(0x20b)],_0x420dcd['responsetime']),this[_0x467a87(0x200)]=_0x420dcd[_0x467a87(0x200)],this[_0x467a87(0x1f4)]='IVR',this['reason']=_0x2dfba0['cause-txt'],this[_0x467a87(0x1f5)]=_0x420dcd['callback'],this[_0x467a87(0x20c)]=_0x420dcd[_0x467a87(0x20c)],this[_0x467a87(0x1f2)]=_0x420dcd['callbackat'],this[_0x467a87(0x1fb)]=_0x420dcd['recallme'],this[_0x467a87(0x1ef)]=_0x420dcd[_0x467a87(0x1ef)],this[_0x467a87(0x1ff)]=_0x420dcd[_0x467a87(0x1ff)],this[_0x467a87(0x205)]=_0x420dcd[_0x467a87(0x205)],this[_0x467a87(0x1ea)]=_0x420dcd[_0x467a87(0x1ea)],this[_0x467a87(0x202)]=_0x420dcd['CampaignId'];}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 f0d283d..e94a073 100644 --- a/server/services/ami/dialer/history.js +++ b/server/services/ami/dialer/history.js @@ -1 +1 @@ -const a1056_0x264d=['countmachineretry','countnoanswerretry','ContactId','number','countnosuchnumberretry','uniqueid','countdropretry','diff','CampaignId','UserId','callback','seconds','callbackat','recallme','endtime','milliseconds','VoiceQueueId','starttime','scheduledat','ringtime','calleridnum','talktime','countcongestionretry','type','moment','callbackuniqueid','countagentrejectretry','originatecalleridname','originatecalleridnum','name','calleridname','ListId','queue','countglobal','responsetime','countabandonedretry','countbusyretry'];(function(_0xe4cec6,_0x264d00){const _0x43702c=function(_0x73325f){while(--_0x73325f){_0xe4cec6['push'](_0xe4cec6['shift']());}};_0x43702c(++_0x264d00);}(a1056_0x264d,0x18f));const a1056_0x4370=function(_0xe4cec6,_0x264d00){_0xe4cec6=_0xe4cec6-0x0;let _0x43702c=a1056_0x264d[_0xe4cec6];return _0x43702c;};const _0x2ebb90=a1056_0x4370;'use strict';const moment=require(_0x2ebb90('0x20'));function getSeconds(_0x73325f,_0x5738de){const _0x3251d6=_0x2ebb90,_0x4a184c=moment(_0x73325f)[_0x3251d6('0x17')](0x0),_0x24e327=moment(_0x5738de)[_0x3251d6('0x17')](0x0);return _0x4a184c[_0x3251d6('0xf')](_0x24e327,_0x3251d6('0x13'));}function History(_0x429ce5){const _0x2c19b9=_0x2ebb90;this[_0x2c19b9('0xd')]=_0x429ce5[_0x2c19b9('0xd')],this[_0x2c19b9('0x1a')]=_0x429ce5['scheduledat']||undefined,this[_0x2c19b9('0x1f')]=_0x429ce5['type'],this['campaigntype']=_0x429ce5[_0x2c19b9('0x1f')]==='outbound'?_0x2c19b9('0x3'):_0x429ce5[_0x2c19b9('0x1f')],this[_0x2c19b9('0x7')]=_0x429ce5['countbusyretry'],this[_0x2c19b9('0x1e')]=_0x429ce5[_0x2c19b9('0x1e')],this['countnoanswerretry']=_0x429ce5[_0x2c19b9('0x9')],this[_0x2c19b9('0x4')]=_0x429ce5[_0x2c19b9('0x7')]+_0x429ce5[_0x2c19b9('0x1e')]+_0x429ce5[_0x2c19b9('0x9')]+_0x429ce5[_0x2c19b9('0xc')]+_0x429ce5['countdropretry']+_0x429ce5[_0x2c19b9('0x6')]+_0x429ce5[_0x2c19b9('0x8')]+_0x429ce5[_0x2c19b9('0x22')],this[_0x2c19b9('0xc')]=_0x429ce5[_0x2c19b9('0xc')],this['countdropretry']=_0x429ce5[_0x2c19b9('0xe')],this[_0x2c19b9('0x6')]=_0x429ce5[_0x2c19b9('0x6')],this[_0x2c19b9('0x8')]=_0x429ce5[_0x2c19b9('0x8')],this['countagentrejectretry']=_0x429ce5['countagentrejectretry'],this['queue']=_0x429ce5[_0x2c19b9('0x3')],this[_0x2c19b9('0x1')]=_0x429ce5[_0x2c19b9('0x0')],this[_0x2c19b9('0x1c')]=_0x429ce5[_0x2c19b9('0xb')],this[_0x2c19b9('0x19')]=_0x429ce5[_0x2c19b9('0x19')],this[_0x2c19b9('0x5')]=_0x429ce5[_0x2c19b9('0x5')],this[_0x2c19b9('0x16')]=_0x429ce5['responsetime'],this[_0x2c19b9('0x1b')]=getSeconds(_0x429ce5['responsetime'],_0x429ce5[_0x2c19b9('0x19')]),this['holdtime']=0x0,this[_0x2c19b9('0x1d')]=0x0,this[_0x2c19b9('0x12')]=_0x429ce5[_0x2c19b9('0x12')],this[_0x2c19b9('0x21')]=_0x429ce5['callbackuniqueid'],this[_0x2c19b9('0x14')]=_0x429ce5[_0x2c19b9('0x14')],this[_0x2c19b9('0x15')]=_0x429ce5[_0x2c19b9('0x15')],this['ContactId']=_0x429ce5[_0x2c19b9('0xa')],this[_0x2c19b9('0x2')]=_0x429ce5[_0x2c19b9('0x2')],this['UserId']=_0x429ce5[_0x2c19b9('0x11')],this[_0x2c19b9('0x18')]=_0x429ce5['VoiceQueueId'],this[_0x2c19b9('0x10')]=_0x429ce5['CampaignId'],this[_0x2c19b9('0x24')]=_0x429ce5[_0x2c19b9('0x24')]||'',this[_0x2c19b9('0x23')]=_0x429ce5[_0x2c19b9('0x23')]||'';}module['exports']=History; \ No newline at end of file +const a1220_0x1e53=['milliseconds','name','calleridname','diff','callbackuniqueid','starttime','talktime','type','countdropretry','scheduledat','CampaignId','countnosuchnumberretry','countabandonedretry','countglobal','queue','exports','countbusyretry','seconds','countnoanswerretry','countagentrejectretry','uniqueid','recallme','responsetime','originatecalleridnum','moment','countcongestionretry','ListId','callbackat','UserId','outbound','callback','ringtime','originatecalleridname','countmachineretry','ContactId','campaigntype','VoiceQueueId'];(function(_0x25939c,_0x104637){const _0x1e5309=function(_0x5bd452){while(--_0x5bd452){_0x25939c['push'](_0x25939c['shift']());}};_0x1e5309(++_0x104637);}(a1220_0x1e53,0x159));const a1220_0x5bd4=function(_0x25939c,_0x104637){_0x25939c=_0x25939c-0x12c;let _0x1e5309=a1220_0x1e53[_0x25939c];return _0x1e5309;};const a1220_0x2dc15b=a1220_0x5bd4;'use strict';const moment=require(a1220_0x2dc15b(0x138));function getSeconds(_0x24ea43,_0x22d917){const _0x3e8636=a1220_0x2dc15b,_0x138cf6=moment(_0x24ea43)[_0x3e8636(0x145)](0x0),_0x4f2a83=moment(_0x22d917)[_0x3e8636(0x145)](0x0);return _0x138cf6[_0x3e8636(0x148)](_0x4f2a83,_0x3e8636(0x131));}function History(_0x1c332b){const _0x2aa28c=a1220_0x2dc15b;this[_0x2aa28c(0x134)]=_0x1c332b['uniqueid'],this[_0x2aa28c(0x14e)]=_0x1c332b[_0x2aa28c(0x14e)]||undefined,this[_0x2aa28c(0x14c)]=_0x1c332b['type'],this[_0x2aa28c(0x143)]=_0x1c332b[_0x2aa28c(0x14c)]===_0x2aa28c(0x13d)?_0x2aa28c(0x12e):_0x1c332b['type'],this[_0x2aa28c(0x130)]=_0x1c332b[_0x2aa28c(0x130)],this[_0x2aa28c(0x139)]=_0x1c332b[_0x2aa28c(0x139)],this[_0x2aa28c(0x132)]=_0x1c332b[_0x2aa28c(0x132)],this[_0x2aa28c(0x12d)]=_0x1c332b['countbusyretry']+_0x1c332b[_0x2aa28c(0x139)]+_0x1c332b[_0x2aa28c(0x132)]+_0x1c332b[_0x2aa28c(0x150)]+_0x1c332b[_0x2aa28c(0x14d)]+_0x1c332b[_0x2aa28c(0x12c)]+_0x1c332b[_0x2aa28c(0x141)]+_0x1c332b[_0x2aa28c(0x133)],this[_0x2aa28c(0x150)]=_0x1c332b[_0x2aa28c(0x150)],this[_0x2aa28c(0x14d)]=_0x1c332b['countdropretry'],this['countabandonedretry']=_0x1c332b[_0x2aa28c(0x12c)],this[_0x2aa28c(0x141)]=_0x1c332b[_0x2aa28c(0x141)],this['countagentrejectretry']=_0x1c332b[_0x2aa28c(0x133)],this[_0x2aa28c(0x12e)]=_0x1c332b[_0x2aa28c(0x12e)],this[_0x2aa28c(0x147)]=_0x1c332b[_0x2aa28c(0x146)],this['calleridnum']=_0x1c332b['number'],this[_0x2aa28c(0x14a)]=_0x1c332b[_0x2aa28c(0x14a)],this[_0x2aa28c(0x136)]=_0x1c332b[_0x2aa28c(0x136)],this['endtime']=_0x1c332b[_0x2aa28c(0x136)],this[_0x2aa28c(0x13f)]=getSeconds(_0x1c332b[_0x2aa28c(0x136)],_0x1c332b[_0x2aa28c(0x14a)]),this['holdtime']=0x0,this[_0x2aa28c(0x14b)]=0x0,this[_0x2aa28c(0x13e)]=_0x1c332b[_0x2aa28c(0x13e)],this[_0x2aa28c(0x149)]=_0x1c332b[_0x2aa28c(0x149)],this[_0x2aa28c(0x13b)]=_0x1c332b['callbackat'],this[_0x2aa28c(0x135)]=_0x1c332b[_0x2aa28c(0x135)],this[_0x2aa28c(0x142)]=_0x1c332b[_0x2aa28c(0x142)],this[_0x2aa28c(0x13a)]=_0x1c332b[_0x2aa28c(0x13a)],this['UserId']=_0x1c332b[_0x2aa28c(0x13c)],this[_0x2aa28c(0x144)]=_0x1c332b['VoiceQueueId'],this[_0x2aa28c(0x14f)]=_0x1c332b[_0x2aa28c(0x14f)],this[_0x2aa28c(0x137)]=_0x1c332b['originatecalleridnum']||'',this[_0x2aa28c(0x140)]=_0x1c332b[_0x2aa28c(0x140)]||'';}module[a1220_0x2dc15b(0x12f)]=History; \ No newline at end of file diff --git a/server/services/ami/dialer/index.js b/server/services/ami/dialer/index.js index 0619525..1694cdc 100644 --- a/server/services/ami/dialer/index.js +++ b/server/services/ami/dialer/index.js @@ -1 +1 @@ -const a1057_0x4734=['outboundDropCallsDayTimeout','RUNNING','status','CampaignId','launchHandleIvr','syncAgentComplete','Error','dialAMDMinWordLength','stateGlobal','isEmpty','campaign:ivr:%s','handlePower','syncCampaigns','[syncQueueSummary]\x20Campaign\x20Ivr:\x20','reason\x205\x20busy','avgHandleTime','XMD-AMDMAXIMUMNUMBEROFWORDS','predictiveIntervalPauses','[uniqueid]','collection\x20data\x20in\x20progressive\x20at','../rpc/cmHopperBlack','exten','p\x20=\x20','RecallFailedTimeout','getDataPredictive','stateinterface','outboundAnswerCallsDay','countabandonedretry','Contact.phone','----\x20Agent\x20Busy\x20Factor\x20----','substring','XMD-AMDAFTERGREETINGSILENCE','agentconnect','predictiveIntervalDroppedCallsTimeout','[getContactDialer2]','log','dialQueueProject','XMD-AMDTOTALANALYSISTIME','---------\x20ErlangB\x20---------','dialAMDMaximumWordLength','reachable','Queue','actions','YYYY-MM-DD\x20HH:mm:ss','dialDropRetryFrequency','phone','emit','[startMethodPredictive][StartProgressive][Loop]','countglobal','tryOriginatePredictive','resolve','dialer','checkRetriveMax','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','paused','dialNoAnswerMaxRetry','buildObj','dialOriginateTimeout','loopCampaigns','../ami','tail','predictive','dropRate','enqueue','indexOf','---------------------------','startPredictive','queue','countbusyretry','outboundAbandonedCallsDay','predictiveIntervalAvgTalktime','dialPredictiveInterval','voice:queue:%s','XMD-AMDMAXIMUMWORDLENGTH','[actionOriginatePredictive]\x20','timezones','dialAMDAfterGreetingSilence','dialRandomLastDigitCallerIdNumber','[getContactDialer]\x20','AVG\x20Hold\x20Time:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','endtime','custom:agentreject','agents','cause-txt','waiting','getDataPredictiveOld','Predictive\x20for\x20every\x20interval','[syncCampaigns]','then','RECALLFAILEDTIMEOUT','[Originate][historyBlacklist]','some','ContactId','syncOriginateResponse','../../../config/environment/','callerid','Timezone:\x20','statedesc','contact\x20not\x20moved','--------\x20Drop\x20Rate\x20--------','outboundQueuePauses','predictiveIntervalAvgHoldtime','milliseconds','[moveContactManagedDialer]\x20','ifTime','abandoned','clearZombieChannels','getQueue','%s%s','[ifTime][promiseAll]','[booked][unlockQueueStatus]','AVG\x20Talk\x20Time:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Scheduled\x20Calls:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','syncQueueStatusComplete','dropreason','RESCHEDULED_CONTACTS','[syncAgentComplete][createHistory][10]','campaigns','emptyContact','[decremetOriginate]\x20object\x20originated\x20is\x20negative','\x20Intervals\x20is\x20null\x20','\x20trunk\x20is\x20not\x20reachable','uniqueId','voiceQueues','XMD-ORIGINATECALLERIDNUM','[moveContactManagedDialer][0]','countdropretry','noanswer','[getContactCampaign2]','countnosuchnumberretry','type','[unlock2][syncQueueStatusComplete]','dialTimezone','message','agiafterat','agiIp','[rescheduleContact][Drop]','trim','dialQueueProject2','outboundNoAnswerCallsDay','lodash','RECALLINQUEUE','variable','Drop','channels','match','[checkIsBlackList]\x20','[Catch][Preview][syncQueueStatusComplete]','Global','unlockContact','membername','dialAgentRejectRetryFrequency','bind','[booked][checkContactBlack]','[CatchErlangB]','rrmemory','[booked][unlock3]','Predictive\x20after\x20first\x20interval','dialAbandonedMaxRetry','xcally-motion-dialer',')\x20are\x20more\x20than\x20threshold\x20(','Avg\x20Talk\x20Time\x20is\x20not\x20enough\x20for\x20predictive','createStateFinal','[syncQueueSummary]','calleridnum','Total\x20Calls\x20are\x20not\x20enough\x20for\x20predictive','exports','entity\x20is\x20undefine','[originateError]:\x20%s','predictiveIntervalMinThreshold','TrunkBackup','dialBusyMaxRetry','reason19\x20machine....','Action','checkIsBlackListIvr','[getContactDialer2][ReScheduled]','custom:agentnoanswer','m\x20=\x20','[syncHangupInAMDIvr][createHistory]','clearing\x20variable\x20handle\x20predictive','response','checkIsBlackList','[syncHangupInAMD]','queueBooked','\x5cw{0,','./history','custom:queuesummary','[busyFactor]','toUpper','[booked][checkContactBlack][else]','[syncQueueSummary]\x20Campaign\x20Queue:\x20','newexten','AGENTS_NOT_LOGGED','not_inuse','md5','[unlock3][syncQueueStatusComplete]','is\x20not\x20active','responsetime','roundrobin','[syncAgentComplete][createHistory][11]','[getVoiceQueueRtPauses]\x20','dialAMDMaximumNumberOfWords','[actionOriginate]\x20','diff','outboundRejectCallsDay','startMethodPredictive','temp','./final','evt\x20is\x20undefine','string','check\x20predictive\x20is\x20not\x20undefine','all','util','predictiveIntervalAvailable','CALLEREXIT','dialAMDGreeting','[syncHangupIvr][createHistory]','check\x20failure','contact\x20is\x20undefine','Agent','[rescheduleContact][dialRecallInQueue]','iftime\x20%s,%s','TIMEOUT','[syncHangupInAMD][createHistory]','[abandonmentRate]','[unlock][syncQueueStatusComplete]','outboundReCallsDay','originate\x20action\x20Error','[countReScheduled]\x20','erlangCallToSecond','syncQueueCallerAbandon','loopClearZombieChannels','originated','state','outbound','[booked][unlock2]','sumHoldTime','queueCallerAbandonCreateState','recalculate\x20predictive\x20at','handleIvr','dialAgentRejectMaxRetry','Abandoned','countReScheduled','moveContactManagedDialer','outboundBlacklistCallsDay','[syncAgentComplete][createHistory][3]','outboundNoSuchCallsDay','XMD-AMDBETWEENWORDSSILENCE','optionPredictive','XMD-AMDMINWORDLENGTH','dialMachineMaxRetry','Max\x20Drop\x20','AMD','calleridname','reason\x208\x20congestion','active','strategy','Interval:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','dialOriginateCallerIdNumber','talking','random','ivr','[startMethodPredictive][StartProgressive]','RecallInQueue','[checkIsBlackListIvr]\x20','dialPredictiveOptimization','unlockRR','dialBusyRetryFrequency','outboundUnknownCallsDay','[syncHangupInAMDIvr]','INTERVAL_IS_OVERTIME','dialMachineRetryFrequency','custom:agentcongestion','predictiveCalls','outboundAnswerAgiCallsDay','[rescheduleContact][Machine]','[syncAgentComplete][createHistory][5]','ListId','[callProgressDetecting]','value','length','AVAILABLE_CONTACTS_FINISHED','\x22\x22\x20<>','averageHandleTime','XMD-AMDSILENCETHRESHOLD','dialPredictiveOptimizationPercentage','sendMessageOneNotActive','INTERVAL_IS_NULL','is\x20disactive','maxNumberOriginate','dialCutDigit','total','object','Unknown\x20Predictive','fail\x20to\x20scheduled\x20calls','[rescheduleContact][NoAnswer]','originatecalleridname','amdstatus','NoAnswer','[syncQueueCallerAbandon]\x20[Drop]','checkIfTime','isTrunkReachable','[syncAgentComplete][createHistory][20]','[averageHandleTime]\x20','voiceQueue\x20is\x20undefine','info','catch','outboundBusyCallsDay','[rescheduleContact]\x20[Congestion]','Failure','reason','checkContactBlack','countnoanswerretry','../preview/util/util','dialRecallMeTimeout','seconds','dialRecallInQueue','queueBookedRR','[booked][RR][finaly]','../../../config/config.service','Queue:\x20','dialActive','isNil','format','_rr','startProgressive','dialMethod','\x20Timezone\x20unknow\x20','Interval','power','callProgressDetecting','sequence','Drop\x20in\x20this\x20interval','syncVarSet','channel','finally','dialAgiAfterHangupAgent','true','actionid','agentreject','countmachineretry','OriginateError','[unlockOriginate][syncQueueStatusComplete]','interval','queuemember','clearing\x20variable\x20start\x20predictive','ivrOriginated','updateOriginated','add','getContactDialerIvr','Drop\x20Rate:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','dialAMDTotalAnalysisTime','amd','SIP/%s','booked','[originate][error]','Amax:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','pTalking','ACTIVE','stringify','pick','congestion','[syncAgentComplete][createHistory]','[syncAgentComplete][createHistory][0]','dialCongestionMaxRetry','checkDialMethod','from-sip','dialOriginateCallerIdName','../../../rediscache','dialDropMaxRetry','[syncAgentComplete]','TIMEZONE_UNKNOW','Unknow','content','[callProgressDetecting]\x20','unmanaged','./agentComplete','[handlePredictive]','unmonitored','getVoiceQueueRtPauses','\x20Interval\x20is\x20overtime:\x20','Dropped\x20Exit:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','available','idHopper','\x20INTERVAL_IS_NULL','contacts','isSuccess','interval\x20=\x20','locked','XMD-CAMPAIGNID','dialCongestionRetryFrequency','Machine','MACHINE','[Originate][HistoryRecallClose][historyCatch]','rescheduleContact','[Originate][HistoryRecallClose]','dialGlobalMaxRetry','started\x20in\x20predictive\x20at','undefined','loggerHandler','originatecalleridnum','dialAMDActive','History\x20information\x20are\x20empty','Agent:\x20','reason\x203\x20ringing\x20no\x20answer','NONE','[rescheduleContact][Abandoned]','agentcomplete','[Originate][MoveBlacklist]','XMD-VOICEQUEUEID','checkIfTimeIntervals','dialQueueOptions','Success','tags','VoiceQueueId','[syncAgentComplete][createHistory][?]','checkIsTrunkReachable','run','dialNoSuchNumberMaxRetry','erlangCalls','queueStatusComplete','Agent\x20Busy\x20Factor:\x20\x20\x20\x20\x20\x20\x20\x20\x20','uniqueid','[updateOriginated]\x20object\x20originated\x20is\x20negative','dialQueueTimeout','switch\x20in\x20progressive\x20because\x20available\x20agents\x20(','\x22%s,%s%s,,,%s\x22','createHistory','[ifTime][Action]','replace','inspect','Contact\x20updated','loggedInDb','agent','./hangup','starttime','syncNewExten','countcongestionretry','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','outboundDropCallsDayACS','XMD-AMDINITIALSILENCE','AgentReject','[booked][RR]','queuestatuscomplete','outboundDropCallsDayCallersExit','reason\x2019\x20machine....','answered','predictiveIntervalTotalCalls','preview','outboundOriginateFailureCallsDay','dialAMDSilenceThreshold','syncAgentConnect','predictiveIntervalDroppedCallsCallersExit','[actionOriginateIvr]\x20','syncQueueMember','./action','Ts\x20=\x20','countagentrejectretry','isUndefined','No\x20such\x20channel','ivrTotalCallsDays','floor','dialPrefix','\x22agi://%s/square,%s\x22','dialOrderByScheduledAt','NOT_ACTIVE','erlangAbandonmentRate','reason\x2011\x20abandoned','[getDataPredictive]','[syncHangupIvr]','erlangBusyFactor','[rescheduleContact][AgentReject]','moment','actionOriginate','loggedIn','[emptyContact]','\x20NOT\x20Active','merge','predictiveIntervalErlangCalls','minutes','saveInDb','updatedAt','varset','dialGlobalInterval','reason\x200\x20no\x20such\x20number....','campaign:save','originate','AnswerAGI','Avg\x20Hold\x20Time\x20is\x20not\x20enough\x20for\x20predictive','TRUNK_IS_NOT_REACHABLE','abandonmentRate','answertime','name','trunks','HangupInAMD','IS_DISACTIVED','\x22%s\x22\x20<%s>','GLOBAL_INTERVAL_IS_OVERTIME','getContactDialer','dialAMDBetweenWordsSilence','Contact','dialLimitQueue','[stopMethodPredictive][ReStartProgressive][ExceededDropDay]','method\x20not\x20recognized','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','contactAgent-idHopper:\x20','busyFactor','droptime','inBlackList','../../../config/logger','getCaller','queuestatus','predictiveIntervalMultiplicativeFactor','error','predictiveIntervalHitRate','predictiveIntervalErlangCallsDroppedCalls','syncQueueSummary','dialNoAnswerRetryFrequency','[unlockQueueStatus][undefined]','pow','push','One\x20call\x20every:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Trunk','reason\x2020\x20agentreject','Answered\x20Calls:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','prototype','predictiveIntervalAnsweredCalls','handlePredictive','Intervals','UserId','dialNoSuchNumberRetryFrequency'];(function(_0x3c5e1a,_0x473439){const _0xa5e92b=function(_0x528ed6){while(--_0x528ed6){_0x3c5e1a['push'](_0x3c5e1a['shift']());}};_0xa5e92b(++_0x473439);}(a1057_0x4734,0x1f0));const a1057_0xa5e9=function(_0x3c5e1a,_0x473439){_0x3c5e1a=_0x3c5e1a-0x0;let _0xa5e92b=a1057_0x4734[_0x3c5e1a];return _0xa5e92b;};const _0x31ab94=a1057_0xa5e9;'use strict';const util=require(_0x31ab94('0xf7')),_=require(_0x31ab94('0xaf')),uuid=require('uuid'),moment=require(_0x31ab94('0x1fb')),rr=require('rr'),md5=require(_0x31ab94('0xe5')),ut=require(_0x31ab94('0x15c')),config=require(_0x31ab94('0x81')),logger=require(_0x31ab94('0xd'))(_0x31ab94('0x56')),loggerBooked=require(_0x31ab94('0xd'))('booked'),loggerPredictive=require(_0x31ab94('0xd'))(_0x31ab94('0x60')),loggerPredictiveCalls=require(_0x31ab94('0xd'))(_0x31ab94('0x134')),loggerSyncQueueSummary=require('../../../config/logger')(_0x31ab94('0x14')),ami=require(_0x31ab94('0x5e')),{getSocket}=require(_0x31ab94('0x193')),io=getSocket(),cmHopper=require('../rpc/cmHopper'),cmHopperHistory=require('../rpc/cmHopperHistory'),cmHopperBlack=require(_0x31ab94('0x37')),voiceQueueRt=require('../rpc/voiceQueueRt'),Action=require(_0x31ab94('0x1ea')),History=require(_0x31ab94('0xdc')),Final=require(_0x31ab94('0xf2')),AgentComplete=require(_0x31ab94('0x19b')),QueueCallerAbandon=require('./queueCallerAbandon'),Hangup=require(_0x31ab94('0x1d5')),{getConfigService}=require(_0x31ab94('0x162')),strategy={'rrmemory':_0x31ab94('0xbe'),'roundrobin':_0x31ab94('0xe9')},Sequence=function(){};Sequence['prototype'][_0x31ab94('0x62')]=function(_0x528ed6){const _0x543ea4=_0x31ab94;this[_0x543ea4('0x5f')]=this[_0x543ea4('0x5f')]?this[_0x543ea4('0x5f')][_0x543ea4('0x172')](_0x528ed6):_0x528ed6();};function Dialer(_0x5503a6,_0x1344ec){const _0x3f7506=_0x31ab94;this[_0x3f7506('0x16e')]=new Sequence(),this['preview']=_0x1344ec,this[_0x3f7506('0x9e')]=_0x5503a6[_0x3f7506('0x9e')],this['campaigns']=_0x5503a6[_0x3f7506('0x98')],this[_0x3f7506('0x75')]=_0x5503a6[_0x3f7506('0x75')],this[_0x3f7506('0x210')]=_0x5503a6['trunks'],this[_0x3f7506('0x144')]=config['maxNumberOriginate']||0x2,this[_0x3f7506('0xb3')]={},this[_0x3f7506('0x4d')]={},this['contactsId']={},this[_0x3f7506('0x9d')]={},this[_0x3f7506('0x11b')]={},this[_0x3f7506('0x65')]={},this[_0x3f7506('0x168')]={},this[_0x3f7506('0x17d')]={},this['queueBooked']={},this[_0x3f7506('0x160')]={},ami['on'](_0x3f7506('0x43'),this['syncAgentConnect']['bind'](this)),ami['on']('queuecallerabandon',this[_0x3f7506('0x109')][_0x3f7506('0xbb')](this)),ami['on']('originateresponse',this[_0x3f7506('0x80')][_0x3f7506('0xbb')](this)),ami['on'](_0x3f7506('0x1ba'),this[_0x3f7506('0x28')][_0x3f7506('0xbb')](this)),ami['on'](_0x3f7506('0xdd'),this[_0x3f7506('0x14')]['bind'](this)),ami['on']('hangup',this['syncHangup'][_0x3f7506('0xbb')](this)),ami['on'](_0x3f7506('0xe2'),this[_0x3f7506('0x1d7')][_0x3f7506('0xbb')](this)),ami['on'](_0x3f7506('0x205'),this[_0x3f7506('0x170')][_0x3f7506('0xbb')](this)),ami['on'](_0x3f7506('0x17b'),this[_0x3f7506('0x1e9')][_0x3f7506('0xbb')](this)),ami['on'](_0x3f7506('0x1de'),this[_0x3f7506('0x94')][_0x3f7506('0xbb')](this)),this['loopCampaigns'](),this[_0x3f7506('0x10a')]();}function isNotNull(_0x45c02f){const _0x466722=_0x31ab94;return _0x45c02f!==null&&!_[_0x466722('0x1ed')](_0x45c02f);}function checkIsLoggedIn(_0x1667b1,_0x5a4aba){return function(){const _0x932fea=a1057_0xa5e9;if(_0x5a4aba<=0x0){_0x1667b1[_0x932fea('0xa8')]=_0x932fea('0xe3');throw _0x1667b1['name']+'\x20AGENTS\x20NOT\x20LOGGED';}};}function isActive(_0x3217c9){return _0x3217c9;}function checkIsActive(_0x3eee11,_0x10ffb5){return function(){const _0x54074e=a1057_0xa5e9;if(!isActive(_0x10ffb5)){_0x3eee11['message']=_0x54074e('0x1f4');throw _0x3eee11[_0x54074e('0x20f')]+_0x54074e('0x1ff');}};}function checkInterval(_0x166e6f){return function(){const _0x5085e5=a1057_0xa5e9;if(!isNotNull(_0x166e6f[_0x5085e5('0x16b')])){_0x166e6f['message']=_0x5085e5('0x142');throw _0x166e6f['name']+'\x20INTERVAL_IS_NULL';}if(!isNotNull(_0x166e6f[_0x5085e5('0x16b')]['Intervals'])){_0x166e6f['message']=_0x5085e5('0x142');throw _0x166e6f['name']+_0x5085e5('0x1a3');}if(!isNotNull(_[_0x5085e5('0x2c')](_0x166e6f[_0x5085e5('0x16b')][_0x5085e5('0x20')]))){_0x166e6f[_0x5085e5('0xa8')]='INTERVAL_IS_NULL';throw _0x166e6f['name']+_0x5085e5('0x1a3');}};}function msgResponse(_0x2aa051,_0x170035,_0x4fa0bc){return{'action':_0x2aa051,'response':_0x170035,'message':_0x4fa0bc,'stack':_0x4fa0bc};}function myreject(_0x245346){return function(_0x1e04f8){const _0x11395f=a1057_0xa5e9;return _0x245346(msgResponse(_0x11395f('0x1cf'),_0x11395f('0x29'),JSON[_0x11395f('0x18a')](_0x1e04f8)));};}function getSeconds(_0x198430,_0xe5d9ea){const _0x2106e9=_0x31ab94,_0x5bcf01=moment(_0x198430)['milliseconds'](0x0),_0x2925af=moment(_0xe5d9ea)[_0x2106e9('0x89')](0x0);return _0x5bcf01[_0x2106e9('0xee')](_0x2925af,_0x2106e9('0x15e'));}function emit(_0xcba14d,_0x521961,_0x20c423){const _0x50ab96=_0x31ab94;io['to'](_0xcba14d)[_0x50ab96('0x51')](_0x521961,_0x20c423);}function emitVoiceQueueSummary(_0x416030){const _0x4ba7c2=_0x31ab94;if(_0x416030[_0x4ba7c2('0xa5')]===_0x4ba7c2('0x10d')){const _0xc35ba6={'id':_0x416030['id'],'name':_0x416030[_0x4ba7c2('0x20f')],'strategy':_0x416030[_0x4ba7c2('0x123')],'answered':_0x416030[_0x4ba7c2('0x1e1')],'available':_0x416030[_0x4ba7c2('0x1a1')],'loggedIn':_0x416030[_0x4ba7c2('0x1fd')],'pTalking':_0x416030['pTalking'],'sumBillable':_0x416030['sumBillable'],'sumDuration':_0x416030['sumDuration'],'sumHoldTime':_0x416030[_0x4ba7c2('0x10f')]||0x0,'talking':_0x416030['talking'],'total':_0x416030[_0x4ba7c2('0x146')],'type':_0x416030['type'],'unmanaged':_0x416030[_0x4ba7c2('0x19a')],'abandoned':_0x416030[_0x4ba7c2('0x8c')],'waiting':_0x416030[_0x4ba7c2('0x77')],'loggedInDb':_0x416030[_0x4ba7c2('0x1d3')],'dialActive':_0x416030[_0x4ba7c2('0x164')],'dialMethod':_0x416030[_0x4ba7c2('0x169')],'dialOriginateCallerIdName':_0x416030[_0x4ba7c2('0x192')],'dialOriginateCallerIdNumber':_0x416030['dialOriginateCallerIdNumber'],'dialOriginateTimeout':_0x416030['dialOriginateTimeout'],'dialPrefix':_0x416030[_0x4ba7c2('0x1f1')],'outboundAnswerAgiCallsDay':_0x416030[_0x4ba7c2('0x135')],'outboundAnswerCallsDay':_0x416030['outboundAnswerCallsDay'],'outboundBlacklistCallsDay':_0x416030['outboundBlacklistCallsDay'],'outboundBusyCallsDay':_0x416030[_0x4ba7c2('0x156')],'outboundCongestionCallsDay':_0x416030['outboundCongestionCallsDay'],'outboundDropCallsDayACS':_0x416030[_0x4ba7c2('0x1da')],'outboundDropCallsDayCallersExit':_0x416030[_0x4ba7c2('0x1df')],'outboundDropCallsDayTimeout':_0x416030[_0x4ba7c2('0x23')],'outboundNoAnswerCallsDay':_0x416030[_0x4ba7c2('0xae')],'outboundNoSuchCallsDay':_0x416030[_0x4ba7c2('0x119')],'outboundOriginateFailureCallsDay':_0x416030[_0x4ba7c2('0x1e4')],'outboundReCallsDay':_0x416030[_0x4ba7c2('0x105')],'outboundRejectCallsDay':_0x416030[_0x4ba7c2('0xef')],'outboundUnknownCallsDay':_0x416030[_0x4ba7c2('0x12f')],'predictiveIntervalAnsweredCalls':_0x416030[_0x4ba7c2('0x1e')],'predictiveIntervalAvgHoldtime':_0x416030['predictiveIntervalAvgHoldtime'],'predictiveIntervalAvgTalktime':_0x416030['predictiveIntervalAvgTalktime'],'predictiveIntervalDroppedCallsCallersExit':_0x416030[_0x4ba7c2('0x1e7')],'predictiveIntervalDroppedCallsTimeout':_0x416030[_0x4ba7c2('0x44')],'predictiveIntervalErlangCalls':_0x416030[_0x4ba7c2('0x201')],'predictiveIntervalErlangCallsDroppedCalls':_0x416030['predictiveIntervalErlangCallsDroppedCalls'],'predictiveIntervalHitRate':_0x416030[_0x4ba7c2('0x12')],'predictiveIntervalMultiplicativeFactor':_0x416030[_0x4ba7c2('0x10')],'predictiveIntervalPauses':_0x416030[_0x4ba7c2('0x34')],'predictiveIntervalAvailable':_0x416030[_0x4ba7c2('0xf8')],'predictiveIntervalTotalCalls':_0x416030[_0x4ba7c2('0x1e2')],'message':_0x416030[_0x4ba7c2('0xa8')],'originated':_0x416030[_0x4ba7c2('0x10b')],'erlangCalls':_0x416030[_0x4ba7c2('0x1c6')],'erlangCallToSecond':_0x416030[_0x4ba7c2('0x108')],'erlangAbandonmentRate':_0x416030['erlangAbandonmentRate'],'erlangBusyFactor':_0x416030['erlangBusyFactor'],'startPredictive':_0x416030[_0x4ba7c2('0x65')],'startProgressive':_0x416030[_0x4ba7c2('0x168')]};_0x416030[_0x4ba7c2('0x1a')]&&(_0xc35ba6['Trunk']={'id':_0x416030[_0x4ba7c2('0x1a')]['id'],'name':_0x416030['Trunk'][_0x4ba7c2('0x20f')],'active':_0x416030[_0x4ba7c2('0x1a')][_0x4ba7c2('0x122')],'callerid':_0x416030[_0x4ba7c2('0x1a')][_0x4ba7c2('0x82')]});_0x416030[_0x4ba7c2('0x16b')]&&(_0xc35ba6[_0x4ba7c2('0x16b')]={'id':_0x416030['Interval']['id'],'name':_0x416030[_0x4ba7c2('0x16b')][_0x4ba7c2('0x20f')]});const _0x1f7bab=md5(JSON['stringify'](_0xc35ba6));_0x416030['md5']!==_0x1f7bab&&(_0x416030[_0x4ba7c2('0xe5')]=_0x1f7bab,emit(util[_0x4ba7c2('0x166')](_0x4ba7c2('0x6b'),_0xc35ba6[_0x4ba7c2('0x20f')]),'voice_queue:save',_0xc35ba6));}}function emitCampaignSummary(_0x1f611f){const _0x561163=_0x31ab94;_0x1f611f[_0x561163('0xa5')]===_0x561163('0x128')&&emit(util['format'](_0x561163('0x2d'),_0x1f611f[_0x561163('0x20f')]),_0x561163('0x208'),_0x1f611f);}function checkGetDataPredictive(_0x407c67){const _0x38fef8=_0x31ab94;if(isNotNull(_0x407c67)){if(!_['isEmpty'](_0x407c67)){loggerPredictive['info']('-----\x20Stats\x20Predictive\x20---'),loggerPredictive['info']('Total\x20Calls:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20',_0x407c67[_0x38fef8('0x1e2')]),loggerPredictive[_0x38fef8('0x154')](_0x38fef8('0x1c'),_0x407c67['predictiveIntervalAnsweredCalls']),loggerPredictive[_0x38fef8('0x154')]('Dropped\x20Timeout:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20',_0x407c67['predictiveIntervalDroppedCallsTimeout']),loggerPredictive[_0x38fef8('0x154')](_0x38fef8('0x1a0'),_0x407c67[_0x38fef8('0x1e7')]),loggerPredictive['info'](_0x38fef8('0x72'),_0x407c67[_0x38fef8('0x88')]),loggerPredictive[_0x38fef8('0x154')](_0x38fef8('0x92'),_0x407c67[_0x38fef8('0x69')]),loggerPredictive[_0x38fef8('0x154')](_0x38fef8('0x64'));if(_0x407c67[_0x38fef8('0x1e2')]>0x0){if(!_[_0x38fef8('0x1ed')](_0x407c67[_0x38fef8('0x69')])&&_0x407c67['predictiveIntervalAvgTalktime']>0x0)return!![];else loggerPredictive[_0x38fef8('0x154')](_0x38fef8('0xc4'));if(!_[_0x38fef8('0x1ed')](_0x407c67['predictiveIntervalAvgHoldtime'])&&_0x407c67[_0x38fef8('0x88')]>0x0)return!![];else loggerPredictive['info'](_0x38fef8('0x20b'));}else loggerPredictive[_0x38fef8('0x154')](_0x38fef8('0xc8'));}else loggerPredictive[_0x38fef8('0x154')](_0x38fef8('0x1b5'));}else loggerPredictive[_0x38fef8('0x154')](_0x38fef8('0x1b5'));return![];}function mergeDataErlangB(_0x49a30e){return function(_0x444bc8){const _0x93b581=a1057_0xa5e9;loggerPredictive[_0x93b581('0x154')](_0x93b581('0x49')),loggerPredictive[_0x93b581('0x154')](_0x93b581('0x93'),_0x444bc8[_0x93b581('0x1c6')]),loggerPredictive['info'](_0x93b581('0x19'),_0x444bc8[_0x93b581('0x108')]),loggerPredictive['info'](_0x93b581('0x181'),_0x444bc8[_0x93b581('0x1f5')]),loggerPredictive[_0x93b581('0x154')](_0x93b581('0x1c8'),_0x444bc8[_0x93b581('0x1f9')]),loggerPredictive['info'](_0x93b581('0x181'),_0x444bc8['erlangAbandonmentRate']),loggerPredictive[_0x93b581('0x154')](_0x93b581('0x64')),_[_0x93b581('0x200')](_0x49a30e,_0x444bc8);};}function getDiff(_0x2d080){const _0xec670f=_0x31ab94,_0x3cf42d=moment()['milliseconds'](0x0),_0x5ed2a7=moment(_0x2d080)[_0xec670f('0x89')](0x0);return _0x3cf42d[_0xec670f('0xee')](_0x5ed2a7,_0xec670f('0x15e'));}function ifInterval(_0x3573dd,_0x3b35d9){const _0x5d31b0=_0x31ab94;if(_[_0x5d31b0('0x1ed')](_0x3b35d9))return![];return getDiff(_0x3b35d9)<_0x3573dd*0x3c?!![]:![];}function freeVariablesPredictive(_0x13d124){const _0x588f78=_0x31ab94;isNotNull(_0x13d124)&&(!_[_0x588f78('0x1ed')](_0x13d124[_0x588f78('0x168')])&&(_0x13d124['startProgressive']=undefined,loggerPredictive['info'](_0x13d124['name'],'clearing\x20variable\x20start\x20progressive')),!_['isUndefined'](_0x13d124[_0x588f78('0x65')])&&(_0x13d124[_0x588f78('0x65')]=undefined,loggerPredictive[_0x588f78('0x154')](_0x13d124[_0x588f78('0x20f')],_0x588f78('0x17c'))),!_[_0x588f78('0x1ed')](_0x13d124[_0x588f78('0x1f')])&&(clearInterval(_0x13d124[_0x588f78('0x1f')]),_0x13d124[_0x588f78('0x1f')]=undefined,loggerPredictive[_0x588f78('0x154')](_0x13d124['name'],_0x588f78('0xd6'))));}function erlangb(_0x2cf569,_0x1f692d){if(_0x1f692d===0x0)return 0x0;let _0x55e5d3=0x1;for(let _0x1efb54=0x1;_0x1efb54<=_0x1f692d;_0x1efb54+=0x1){_0x55e5d3=0x1+_0x55e5d3*_0x1efb54/_0x2cf569;}return 0x1/_0x55e5d3;}function isVoiceQueueOutbound(_0x591551){const _0x4f3c6a=_0x31ab94;return _0x591551===_0x4f3c6a('0x10d');}function isNotPreview(_0x3f3ebf){return _0x3f3ebf!=='preview';}function isCampaignIvr(_0x5e020f){return _0x5e020f==='ivr';}function getCallerId(_0x9fa830,_0x4df01d,_0x5c211a){const _0x161e06=_0x31ab94;if(!_[_0x161e06('0x1ed')](_0x5c211a)&&_0x161e06('0xf4')===typeof _0x5c211a&&!_[_0x161e06('0x2c')](_0x5c211a)){if(!_[_0x161e06('0x1ed')](_0x4df01d)&&_0x161e06('0xf4')===typeof _0x4df01d&&!_[_0x161e06('0x2c')](_0x4df01d))return util[_0x161e06('0x166')](_0x161e06('0x0'),_0x4df01d,_0x5c211a);return util[_0x161e06('0x166')](_0x161e06('0x0'),_0x5c211a,_0x5c211a);}if(!_['isUndefined'](_0x9fa830)&&_0x161e06('0xf4')===typeof _0x9fa830&&!_[_0x161e06('0x2c')](_0x9fa830))return _0x9fa830;return _0x161e06('0x13d');}function loggerCatchQueueSummary(_0x13d7be,_0xc4e98e){return function(_0x566364){const _0x2e7600=a1057_0xa5e9;freeVariablesPredictive(_0xc4e98e),emitVoiceQueueSummary(_0xc4e98e),emitCampaignSummary(_0xc4e98e),loggerSyncQueueSummary['error'](_0x13d7be,util[_0x2e7600('0x1d1')](_0x566364,{'showHidden':![],'depth':null}));};}function loggerCatchPredictive(_0x4d3855,_0x23e785){return function(_0x25a2fe){const _0x45afd8=a1057_0xa5e9;loggerPredictive['error'](_0x23e785[_0x45afd8('0x20f')],_0x4d3855),loggerPredictive['error'](_0x25a2fe['stack']),freeVariablesPredictive(_0x23e785);};}function loggerCatch(_0x28ba4b){return function(_0x3d6542){const _0x58dfe9=a1057_0xa5e9;logger[_0x58dfe9('0x11')](_0x28ba4b,util[_0x58dfe9('0x1d1')](_0x3d6542,{'showHidden':![],'depth':null}));};}function checkContactEmpty(_0x5e25f1){const _0x4fddb1=_0x31ab94;return _0x5e25f1&&!_[_0x4fddb1('0x1ed')](_0x5e25f1)&&_0x5e25f1[_0x4fddb1('0x13b')]>0x0;}function decremetOriginate(_0x2208d0){const _0x38cb83=_0x31ab94;!_[_0x38cb83('0x1ed')](_0x2208d0)&&_0x2208d0!==null?typeof _0x2208d0[_0x38cb83('0x10b')]!=='undefined'&&(_0x2208d0[_0x38cb83('0x10b')]>0x0?_0x2208d0[_0x38cb83('0x10b')]-=0x1:logger[_0x38cb83('0x11')](_0x38cb83('0x9a'))):logger[_0x38cb83('0x11')]('[decremetOriginate]\x20is\x20null\x20or\x20undefined');}function checkContactLowerLimitOriginate(_0xe6bfd9,_0x1b8195,_0x4f978a){if(_0x1b8195>_0x4f978a)for(let _0x587206=0x0;_0x587206<_0x1b8195-_0x4f978a;_0x587206+=0x1){decremetOriginate(_0xe6bfd9);}}function loggerGetContactDialer(_0x2144ab,_0x148d03,_0x3b4a67){return function(_0x3e3210){const _0x30d87b=a1057_0xa5e9;checkContactLowerLimitOriginate(_0x148d03,_0x3b4a67,0x0),logger[_0x30d87b('0x11')](_0x2144ab,util['inspect'](_0x3e3210,{'showHidden':![],'depth':null}));};}function sendMessageReschedule(_0x507cf3){return function(_0x3f9eb6){const _0x2e5417=a1057_0xa5e9;isNotNull(_0x3f9eb6)&&isNotNull(_0x3f9eb6[0x0])&&(_0x3f9eb6[0x0]['contactsRescheduled']>0x0?(_0x507cf3['message']=_0x2e5417('0x96'),logger['info'](_0x2e5417('0xd2')+_0x507cf3[_0x2e5417('0x20f')],_0x3f9eb6[0x0]['contactsRescheduled'],_0x2e5417('0x1a4'))):(_0x507cf3[_0x2e5417('0xa8')]='AVAILABLE_CONTACTS_FINISHED',logger[_0x2e5417('0x154')]('[getContactDialer2][Empty]'+_0x507cf3[_0x2e5417('0x20f')])));};}function notSendMessagesQueue(_0x3c87c5){const _0x3de31c=_0x31ab94;_0x3c87c5[_0x3de31c('0x141')]&&(freeVariablesPredictive(_0x3c87c5),_0x3c87c5[_0x3de31c('0x10b')]===0x0&&_0x3c87c5[_0x3de31c('0x126')]===0x0&&_0x3c87c5['waiting']===0x0&&(_0x3c87c5[_0x3de31c('0x188')]||0x0)===0x0?(_0x3c87c5[_0x3de31c('0x141')]=![],_0x3c87c5[_0x3de31c('0x1a1')]=0x0,_0x3c87c5[_0x3de31c('0xa8')]='NOT_ACTIVE',loggerSyncQueueSummary['error'](_0x3de31c('0xe1'),_0x3c87c5[_0x3de31c('0x20f')],'is\x20not\x20active')):(_0x3c87c5['message']='IS_DISACTIVED',loggerSyncQueueSummary[_0x3de31c('0x11')](_0x3de31c('0xe1'),_0x3c87c5[_0x3de31c('0x20f')],_0x3de31c('0x143'))),emitVoiceQueueSummary(_0x3c87c5));}function notSendMessagesCampaign(_0x475dc4){const _0x29ee25=_0x31ab94;_0x475dc4[_0x29ee25('0x141')]&&(_0x475dc4[_0x29ee25('0x10b')]===0x0?(_0x475dc4[_0x29ee25('0x141')]=![],_0x475dc4[_0x29ee25('0xa8')]=_0x29ee25('0x1f4'),loggerSyncQueueSummary[_0x29ee25('0x11')]('[syncQueueSummary]\x20Campaign\x20Ivr:\x20',_0x475dc4[_0x29ee25('0x20f')],_0x29ee25('0xe7'))):(_0x475dc4[_0x29ee25('0xa8')]=_0x29ee25('0x212'),loggerSyncQueueSummary[_0x29ee25('0x11')](_0x29ee25('0x30'),_0x475dc4[_0x29ee25('0x20f')],_0x29ee25('0x143'))),emitCampaignSummary(_0x475dc4));}function createObjHistory(_0x528441,_0x3a62cb,_0x292308,_0x33328a,_0x458f45){const _0x5f481f=_0x31ab94;_0x528441[_0x5f481f('0xa8')]=_0x292308;const _0xd1f226=new Action(_0x528441,_0x3a62cb),_0x34d0cb=new History(_0xd1f226);return _0x34d0cb[_0x5f481f('0x10c')]=_0x33328a,_0x34d0cb['statedesc']=_0x458f45,_0x34d0cb[_0x5f481f('0x73')]=_0xd1f226[_0x5f481f('0x1d6')],_0x34d0cb;}Dialer[_0x31ab94('0x1d')][_0x31ab94('0x10a')]=function(){const _0x1ab049=this;setInterval(function(){const _0x73fa6c=a1057_0xa5e9;_0x1ab049[_0x73fa6c('0x8d')](_0x1ab049['uniqueId'],_0x73fa6c('0x35')),_0x1ab049[_0x73fa6c('0x8d')](_0x1ab049[_0x73fa6c('0x4d')],'[actions]');},0x32c8);},Dialer[_0x31ab94('0x1d')][_0x31ab94('0x8d')]=function(_0x2e6827,_0x23a667){const _0x275614=_0x31ab94,_0x21d51d=this;for(const _0xbeb570 in _0x2e6827){typeof _0x2e6827[_0xbeb570]!==_0x275614('0x1b1')&&this[_0x275614('0x16e')][_0x275614('0x62')](function(){const _0x588fd7=_0x275614;if(!_[_0x588fd7('0x165')](_0x2e6827[_0xbeb570]))return ami[_0x588fd7('0xd0')]({'action':_0x588fd7('0x25'),'channel':_0x2e6827[_0xbeb570][_0x588fd7('0x171')]})[_0x588fd7('0x155')](function(_0x383689){const _0x50505d=_0x588fd7;_0x383689[_0x50505d('0xa8')]===_0x50505d('0x1ee')&&setTimeout(function(){const _0x17f65f=_0x50505d;_0x2e6827[_0xbeb570]&&_0x2e6827[_0xbeb570][_0x17f65f('0xa5')]!=='ivr'&&(_0x21d51d['updateOriginated'](_0x21d51d[_0x17f65f('0x9e')][_0x2e6827[_0xbeb570][_0x17f65f('0x66')]]),logger[_0x17f65f('0x11')]('[Dialer][checkChannel]',_0x23a667,_0xbeb570,_0x2e6827[_0xbeb570][_0x17f65f('0x66')]),delete _0x2e6827[_0xbeb570]),_0x2e6827[_0xbeb570]&&_0x2e6827[_0xbeb570][_0x17f65f('0xa5')]===_0x17f65f('0x128')&&(_0x21d51d[_0x17f65f('0x17e')](_0x21d51d['campaigns'][_0x2e6827[_0xbeb570][_0x17f65f('0x66')]]),logger[_0x17f65f('0x11')]('[Dialer][checkChannel][ivr]',_0x23a667,_0xbeb570,_0x2e6827[_0xbeb570][_0x17f65f('0x66')]),delete _0x2e6827[_0xbeb570]);},0x2328);});});}},Dialer[_0x31ab94('0x1d')][_0x31ab94('0x115')]=function(_0x5a0cb4){const _0x1850d8=_0x31ab94;return Promise[_0x1850d8('0x55')]()[_0x1850d8('0x7b')](cmHopper[_0x1850d8('0x115')](_0x5a0cb4))[_0x1850d8('0x155')](loggerCatch(_0x1850d8('0x107')));},Dialer[_0x31ab94('0x1d')]['checkIsBlackList']=function(_0x4b3712){const _0x51c76a=_0x31ab94;return Promise[_0x51c76a('0x55')]()[_0x51c76a('0x7b')](cmHopperBlack[_0x51c76a('0xd8')](_0x4b3712))[_0x51c76a('0x155')](loggerCatch(_0x51c76a('0xb5')));},Dialer[_0x31ab94('0x1d')][_0x31ab94('0xd1')]=function(_0x1c74b9){const _0x676c77=_0x31ab94;return Promise[_0x676c77('0x55')]()[_0x676c77('0x7b')](cmHopperBlack[_0x676c77('0xd1')](_0x1c74b9))[_0x676c77('0x155')](loggerCatch(_0x676c77('0x12b')));},Dialer[_0x31ab94('0x1d')]['averageHandleTime']=function(_0x49504c){const _0x4f3948=_0x31ab94;return Promise[_0x4f3948('0x55')]()[_0x4f3948('0x7b')](cmHopperHistory[_0x4f3948('0x32')](_0x49504c))['catch'](loggerCatch(_0x4f3948('0x152')));},Dialer[_0x31ab94('0x1d')][_0x31ab94('0x1ad')]=function(_0x4e44d){const _0x121a59=_0x31ab94;return Promise[_0x121a59('0x55')]()[_0x121a59('0x7b')](cmHopper[_0x121a59('0x1ad')](_0x4e44d))[_0x121a59('0x155')](loggerCatch('[rescheduleContact]\x20'));},Dialer[_0x31ab94('0x1d')][_0x31ab94('0xb8')]=function(_0x4e01e6,_0x46fd81,_0x4c2429){const _0x1cfb2a=_0x31ab94;return Promise[_0x1cfb2a('0x55')]()[_0x1cfb2a('0x7b')](cmHopper[_0x1cfb2a('0xb8')](_0x4e01e6,_0x46fd81,_0x4c2429))[_0x1cfb2a('0x155')](loggerCatch('[unlockContact]\x20'));},Dialer['prototype'][_0x31ab94('0x2')]=function(_0x211a45,_0x1b7f3a,_0x484367,_0x3a45cb){const _0x304740=_0x31ab94;return Promise['resolve']()[_0x304740('0x7b')](cmHopper[_0x304740('0x2')](_0x211a45,_0x1b7f3a,_0x484367,_0x3a45cb))['catch'](loggerCatch(_0x304740('0x71')));},Dialer[_0x31ab94('0x1d')][_0x31ab94('0x180')]=function(_0x1eb318,_0x1849af,_0x2f710a){const _0x3cd324=_0x31ab94;return Promise[_0x3cd324('0x55')]()[_0x3cd324('0x7b')](cmHopper['getContactDialerIvr'](_0x1eb318,_0x1849af,_0x2f710a))[_0x3cd324('0x155')](loggerCatch(_0x3cd324('0x71')));},Dialer[_0x31ab94('0x1d')][_0x31ab94('0x19e')]=function(_0x53f9ab){const _0x738444=_0x31ab94;return Promise['resolve']()['then'](voiceQueueRt[_0x738444('0x19e')](_0x53f9ab))[_0x738444('0x155')](loggerCatch(_0x738444('0xeb')));},Dialer['prototype'][_0x31ab94('0x116')]=function(_0x512eea){const _0x386da7=_0x31ab94;return Promise['resolve']()[_0x386da7('0x7b')](cmHopper['moveContactManagedDialer'](_0x512eea))['catch'](loggerCatch(_0x386da7('0x8a')));},Dialer[_0x31ab94('0x1d')][_0x31ab94('0x1ce')]=function(_0x3bea46){const _0x2f59b1=_0x31ab94;return Promise[_0x2f59b1('0x55')]()[_0x2f59b1('0x7b')](cmHopperHistory[_0x2f59b1('0x1ce')](_0x3bea46))[_0x2f59b1('0x155')](loggerCatch('[createHistory]\x20'));},Dialer[_0x31ab94('0x1d')][_0x31ab94('0x17e')]=function(_0x286481){const _0x1896d3=_0x31ab94;!_[_0x1896d3('0x1ed')](_0x286481)&&_0x286481!==null?typeof _0x286481[_0x1896d3('0x10b')]!==_0x1896d3('0x1b1')&&(_0x286481[_0x1896d3('0x10b')]>0x0?_0x286481[_0x1896d3('0x10b')]-=0x1:logger['error'](_0x1896d3('0x1ca'))):logger['error']('[updateOriginated]\x20is\x20null\x20or\x20undefined');},Dialer[_0x31ab94('0x1d')][_0x31ab94('0x1b2')]=function(_0x336d5d,_0x2fd092){const _0x1a3c64=this;return function(_0x119c8d){const _0x603bd6=a1057_0xa5e9;_0x1a3c64[_0x603bd6('0x17e')](_0x2fd092),logger[_0x603bd6('0x11')](_0x336d5d,util['inspect'](_0x119c8d,{'showHidden':![],'depth':null}));};},Dialer['prototype']['emptyContact']=function(_0xfed4fb,_0x1f7170,_0x1618e8){const _0x299303=_0x31ab94,_0x1325c9={'state':0x19,'statedesc':'notFound'};this[_0x299303('0x17e')](_0x1f7170),this[_0x299303('0x203')](_[_0x299303('0x200')](_0x1325c9,_[_0x299303('0x18b')](_0x1618e8,[_0x299303('0x7f'),'ListId',_0x299303('0x21'),_0x299303('0x1c1'),_0x299303('0x26')])),'[emptyContact][createHistory]',_0x299303('0x1fe')),logger[_0x299303('0x11')](_0xfed4fb);},Dialer[_0x31ab94('0x1d')][_0x31ab94('0x1a5')]=function(_0x2dc4fb){const _0x425090=_0x31ab94;return _0x2dc4fb===_0x425090('0x1bf');},Dialer[_0x31ab94('0x1d')]['isTrunkReachable']=function(_0x37654d){const _0x72e09c=_0x31ab94;return!_[_0x72e09c('0x1ed')](_0x37654d)&&_0x37654d&&!_[_0x72e09c('0x1ed')](_0x37654d[_0x72e09c('0x20f')])&&!_['isUndefined'](_0x37654d['active'])&&_0x37654d[_0x72e09c('0x122')]&&(this[_0x72e09c('0x210')][util[_0x72e09c('0x166')](_0x72e09c('0x184'),_0x37654d['name'])][_0x72e09c('0x25')]===_0x72e09c('0x4b')||this[_0x72e09c('0x210')][util[_0x72e09c('0x166')](_0x72e09c('0x184'),_0x37654d['name'])]['status']===_0x72e09c('0x19d'));},Dialer[_0x31ab94('0x1d')][_0x31ab94('0x203')]=function(_0x120ef4,_0x460786,_0x1ff32b){const _0x461653=_0x31ab94;this[_0x461653('0x1ce')](_0x120ef4)['catch'](loggerCatch(_0x460786)),this[_0x461653('0x116')](_0x120ef4)[_0x461653('0x155')](loggerCatch(_0x1ff32b));},Dialer[_0x31ab94('0x1d')][_0x31ab94('0x170')]=function(_0x12c5d8){const _0x3eab04=_0x31ab94,_0x5465ba=this[_0x3eab04('0x9d')][_0x12c5d8[_0x3eab04('0x1c9')]];let _0x3ab1cf;if(!_[_0x3eab04('0x165')](_0x12c5d8)&&!_[_0x3eab04('0x165')](_0x12c5d8[_0x3eab04('0xb1')])&&!_[_0x3eab04('0x165')](_0x12c5d8[_0x3eab04('0xb1')][_0x3eab04('0x14c')])&&_0x12c5d8[_0x3eab04('0x38')]===_0x3eab04('0xc2')&&_0x5465ba){_0x5465ba[_0x3eab04('0xa5')]!==_0x3eab04('0x128')&&this[_0x3eab04('0x9e')][_0x5465ba['queue']]['dialAMDActive']&&_0x12c5d8[_0x3eab04('0x13a')]==='HANGUP'&&(delete this[_0x3eab04('0x9d')][_0x12c5d8[_0x3eab04('0x1c9')]],this[_0x3eab04('0x17e')](this[_0x3eab04('0x9e')][_0x5465ba['queue']]),this['voiceQueues'][_0x5465ba[_0x3eab04('0x66')]][_0x3eab04('0x3d')]+=0x1,this[_0x3eab04('0x9e')][_0x5465ba[_0x3eab04('0x66')]]['outboundAnswerAgiCallsDay']+=0x1,_0x3ab1cf=new Hangup(_0x5465ba,_0x12c5d8),_0x3ab1cf[_0x3eab04('0x10c')]=0x12,_0x3ab1cf['statedesc']=_0x3eab04('0x211'),_0x3ab1cf[_0x3eab04('0xb9')]=_0x3eab04('0x11f'),this[_0x3eab04('0x203')](_0x3ab1cf,_0x3eab04('0x102'),_0x3eab04('0xd9')));if(_0x5465ba[_0x3eab04('0xa5')]!==_0x3eab04('0x128')&&this['voiceQueues'][_0x5465ba[_0x3eab04('0x66')]][_0x3eab04('0x1b4')]&&_0x12c5d8['value']===_0x3eab04('0x1ab')){const _0x5d2a09=this;return new Promise(function(_0x3a0b6d,_0x5f11f4){const _0x1d2f6a=_0x3eab04;delete _0x5d2a09['uniqueId'][_0x12c5d8['uniqueid']],_0x5d2a09[_0x1d2f6a('0x17e')](_0x5d2a09[_0x1d2f6a('0x9e')][_0x5465ba[_0x1d2f6a('0x66')]]),_0x5d2a09['voiceQueues'][_0x5465ba['queue']]['outboundAnswerCallsDay']+=0x1,_0x5d2a09['voiceQueues'][_0x5465ba[_0x1d2f6a('0x66')]]['outboundAnswerAgiCallsDay']+=0x1;const _0x106f02=_0x5d2a09['voiceQueues'][_0x5465ba[_0x1d2f6a('0x66')]],_0xbf8c0c=new Hangup(_0x5465ba,_0x12c5d8);_0xbf8c0c[_0x1d2f6a('0x10c')]=0x13,_0xbf8c0c[_0x1d2f6a('0x84')]=_0x1d2f6a('0x1aa'),_0xbf8c0c[_0x1d2f6a('0xb9')]=_0x1d2f6a('0x11f'),_0xbf8c0c[_0x1d2f6a('0x177')]+=0x1,_0xbf8c0c['countglobal']+=0x1,_0xbf8c0c[_0x1d2f6a('0x183')]=!![],_0x5d2a09[_0x1d2f6a('0x1ce')](_0xbf8c0c)[_0x1d2f6a('0x155')](loggerCatch(_0x1d2f6a('0x18e'))),_0xbf8c0c[_0x1d2f6a('0x67')]+_0xbf8c0c[_0x1d2f6a('0x1d8')]+_0xbf8c0c[_0x1d2f6a('0x15b')]+_0xbf8c0c[_0x1d2f6a('0xa4')]+_0xbf8c0c[_0x1d2f6a('0xa1')]+_0xbf8c0c[_0x1d2f6a('0x3e')]+_0xbf8c0c[_0x1d2f6a('0x177')]+_0xbf8c0c[_0x1d2f6a('0x1ec')]>=_0x106f02[_0x1d2f6a('0x1af')]?_0x5d2a09[_0x1d2f6a('0x2b')](_0xbf8c0c,_0x3a0b6d,_0x5f11f4,_0x1d2f6a('0xcf')):_0xbf8c0c['countmachineretry']>=_0x106f02[_0x1d2f6a('0x11d')]?_0x5d2a09[_0x1d2f6a('0xc5')](_0xbf8c0c,_0x3a0b6d,_0x5f11f4,_0x1d2f6a('0x1e0')):(_0x5d2a09[_0x1d2f6a('0x1ad')]({'active':![],'countmachineretry':_0xbf8c0c[_0x1d2f6a('0x177')],'scheduledat':moment()[_0x1d2f6a('0x17f')](_0x106f02[_0x1d2f6a('0x132')],_0x1d2f6a('0x202'))[_0x1d2f6a('0x166')]('YYYY-MM-DD\x20HH:mm:ss'),'ContactId':_0xbf8c0c[_0x1d2f6a('0x7f')],'ListId':_0xbf8c0c['ListId'],'VoiceQueueId':_0xbf8c0c[_0x1d2f6a('0x1c1')]||undefined,'CampaignId':_0xbf8c0c[_0x1d2f6a('0x26')]||undefined})[_0x1d2f6a('0x155')](loggerCatch(_0x1d2f6a('0x136'))),_0x3a0b6d({'reschedule':0x1}));});}_0x5465ba[_0x3eab04('0xa5')]===_0x3eab04('0x128')&&this[_0x3eab04('0x98')][_0x5465ba[_0x3eab04('0x66')]][_0x3eab04('0x1b4')]&&_0x12c5d8[_0x3eab04('0x13a')]==='HANGUP'&&(delete this[_0x3eab04('0x9d')][_0x12c5d8['uniqueid']],this[_0x3eab04('0x17e')](this[_0x3eab04('0x98')][_0x5465ba[_0x3eab04('0x66')]]),_0x3ab1cf=new Hangup(_0x5465ba,_0x12c5d8),_0x3ab1cf['state']=0x12,_0x3ab1cf[_0x3eab04('0x84')]=_0x3eab04('0x211'),_0x3ab1cf[_0x3eab04('0xb9')]=_0x3eab04('0x11f'),this['saveInDb'](_0x3ab1cf,_0x3eab04('0xd5'),_0x3eab04('0x130')));if(_0x5465ba[_0x3eab04('0xa5')]===_0x3eab04('0x128')&&this[_0x3eab04('0x98')][_0x5465ba[_0x3eab04('0x66')]][_0x3eab04('0x1b4')]&&_0x12c5d8[_0x3eab04('0x13a')]===_0x3eab04('0x1ab')){const _0x39dcf3=this;return new Promise(function(_0x5385af,_0x4da9bc){const _0x305e15=_0x3eab04;delete _0x39dcf3[_0x305e15('0x9d')][_0x12c5d8[_0x305e15('0x1c9')]],_0x39dcf3[_0x305e15('0x17e')](_0x39dcf3[_0x305e15('0x98')][_0x5465ba[_0x305e15('0x66')]]),_0x39dcf3[_0x305e15('0x98')][_0x5465ba['queue']][_0x305e15('0x3d')]+=0x1,_0x39dcf3[_0x305e15('0x98')][_0x5465ba[_0x305e15('0x66')]][_0x305e15('0x135')]+=0x1;const _0xc379f0=_0x39dcf3[_0x305e15('0x98')][_0x5465ba[_0x305e15('0x66')]],_0x2c0192=new Hangup(_0x5465ba,_0x12c5d8);_0x2c0192[_0x305e15('0x10c')]=0x13,_0x2c0192[_0x305e15('0x84')]='Machine',_0x2c0192[_0x305e15('0xb9')]='AMD',_0x2c0192[_0x305e15('0x177')]+=0x1,_0x2c0192[_0x305e15('0x53')]+=0x1,_0x2c0192['amd']=!![],_0x39dcf3[_0x305e15('0x1ce')](_0x2c0192)['catch'](loggerCatch(_0x305e15('0x18e'))),_0x2c0192['countbusyretry']+_0x2c0192['countcongestionretry']+_0x2c0192[_0x305e15('0x15b')]+_0x2c0192[_0x305e15('0xa4')]+_0x2c0192['countdropretry']+_0x2c0192[_0x305e15('0x3e')]+_0x2c0192[_0x305e15('0x177')]+_0x2c0192[_0x305e15('0x1ec')]>=_0xc379f0[_0x305e15('0x1af')]?_0x39dcf3[_0x305e15('0x2b')](_0x2c0192,_0x5385af,_0x4da9bc,_0x305e15('0xcf')):_0x2c0192[_0x305e15('0x177')]>=_0xc379f0[_0x305e15('0x11d')]?_0x39dcf3['createStateFinal'](_0x2c0192,_0x5385af,_0x4da9bc,_0x305e15('0x1e0')):(_0x39dcf3[_0x305e15('0x1ad')]({'active':![],'countmachineretry':_0x2c0192['countmachineretry'],'scheduledat':moment()[_0x305e15('0x17f')](_0xc379f0[_0x305e15('0x132')],_0x305e15('0x202'))[_0x305e15('0x166')](_0x305e15('0x4e')),'ContactId':_0x2c0192[_0x305e15('0x7f')],'ListId':_0x2c0192[_0x305e15('0x138')],'VoiceQueueId':_0x2c0192[_0x305e15('0x1c1')]||undefined,'CampaignId':_0x2c0192[_0x305e15('0x26')]||undefined})[_0x305e15('0x155')](loggerCatch(_0x305e15('0x136'))),_0x5385af({'reschedule':0x1}));});}}},Dialer[_0x31ab94('0x1d')]['syncHangup']=function(_0x29eb42){const _0x48f50e=_0x31ab94,_0x9d3c85=this[_0x48f50e('0x9d')][_0x29eb42[_0x48f50e('0x1c9')]];let _0x3db2dc;_0x9d3c85&&_0x9d3c85['type']===_0x48f50e('0x128')&&(delete this[_0x48f50e('0x9d')][_0x29eb42[_0x48f50e('0x1c9')]],this['updateOriginated'](this['campaigns'][_0x9d3c85['queue']]),this['campaigns'][_0x9d3c85[_0x48f50e('0x66')]]['ivrAnswerCallsDay']+=0x1,_0x3db2dc=new Hangup(_0x9d3c85,_0x29eb42),this[_0x48f50e('0x1ce')](_0x3db2dc)['catch'](loggerCatch(_0x48f50e('0xfb'))),this[_0x48f50e('0x116')](_0x3db2dc)['catch'](loggerCatch(_0x48f50e('0x1f8')))),_0x9d3c85&&_0x9d3c85[_0x48f50e('0xa5')]!=='ivr'&&isNotNull(this[_0x48f50e('0x9e')][_0x9d3c85[_0x48f50e('0x66')]]['dialQueueProject'])&&(delete this[_0x48f50e('0x9d')][_0x29eb42[_0x48f50e('0x1c9')]],this['updateOriginated'](this[_0x48f50e('0x9e')][_0x9d3c85['queue']]),this[_0x48f50e('0x9e')][_0x9d3c85[_0x48f50e('0x66')]][_0x48f50e('0x3d')]+=0x1,this[_0x48f50e('0x9e')][_0x9d3c85[_0x48f50e('0x66')]][_0x48f50e('0x135')]+=0x1,_0x3db2dc=new Hangup(_0x9d3c85,_0x29eb42),_0x3db2dc[_0x48f50e('0x10c')]=0x10,_0x3db2dc[_0x48f50e('0x84')]=_0x48f50e('0x20a'),_0x3db2dc[_0x48f50e('0xb9')]='AGI',this['createHistory'](_0x3db2dc)[_0x48f50e('0x155')](loggerCatch(_0x48f50e('0xfb'))),this[_0x48f50e('0x116')](_0x3db2dc)[_0x48f50e('0x155')](loggerCatch(_0x48f50e('0x1f8')))),_0x9d3c85&&_0x9d3c85[_0x48f50e('0xa5')]!=='ivr'&&!isNotNull(this[_0x48f50e('0x9e')][_0x9d3c85[_0x48f50e('0x66')]]['dialQueueProject'])&&(delete this['uniqueId'][_0x29eb42[_0x48f50e('0x1c9')]],this[_0x48f50e('0x17e')](this['voiceQueues'][_0x9d3c85[_0x48f50e('0x66')]]),this[_0x48f50e('0x9e')][_0x9d3c85['queue']]['outboundUnknownCallsDay']+=0x1,_0x3db2dc=new Hangup(_0x9d3c85,_0x29eb42),_0x3db2dc[_0x48f50e('0x10c')]=0xc,_0x3db2dc[_0x48f50e('0x84')]=_0x29eb42[_0x48f50e('0x76')],_0x3db2dc['membername']=_0x48f50e('0x197'),this[_0x48f50e('0x1ce')](_0x3db2dc)[_0x48f50e('0x155')](loggerCatch(_0x48f50e('0xfb'))),this[_0x48f50e('0x116')](_0x3db2dc)[_0x48f50e('0x155')](loggerCatch(_0x48f50e('0x1f8'))));},Dialer[_0x31ab94('0x1d')]['syncAgentComplete']=function(_0x1c60f8){const _0x923f7d=_0x31ab94,_0x69ae03=this[_0x923f7d('0x9d')][_0x1c60f8['uniqueid']];if(this['voiceQueues'][_0x1c60f8['queue']]){if(_0x69ae03&&_0x69ae03['type']!==_0x923f7d('0x128')){delete this['uniqueId'][_0x1c60f8[_0x923f7d('0x1c9')]],this[_0x923f7d('0x9e')][_0x1c60f8[_0x923f7d('0x66')]][_0x923f7d('0x3d')]+=0x1;const _0x139111=new AgentComplete(_0x69ae03,_0x1c60f8);_0x1c60f8[_0x923f7d('0x159')]===_0x923f7d('0x1d4')&&(_0x139111[_0x923f7d('0xa9')]=this[_0x923f7d('0x9e')][_0x1c60f8['queue']][_0x923f7d('0xad')]&&this['voiceQueues'][_0x1c60f8[_0x923f7d('0x66')]][_0x923f7d('0x173')]?moment()['format'](_0x923f7d('0x4e')):undefined),this[_0x923f7d('0x1ce')](_0x139111)[_0x923f7d('0x155')](loggerCatch('[syncAgentComplete][createHistory]')),this[_0x923f7d('0x116')](_0x139111)[_0x923f7d('0x155')](loggerCatch(_0x923f7d('0x195')));}}},Dialer[_0x31ab94('0x1d')][_0x31ab94('0x1e6')]=function(_0x282779){const _0x3b80ac=_0x31ab94;this[_0x3b80ac('0x9e')][_0x282779[_0x3b80ac('0x66')]]&&(this[_0x3b80ac('0x9d')][_0x282779[_0x3b80ac('0x1c9')]]&&this[_0x3b80ac('0x9d')][_0x282779[_0x3b80ac('0x1c9')]][_0x3b80ac('0xa5')]!==_0x3b80ac('0x128')&&(this[_0x3b80ac('0x17e')](this['voiceQueues'][_0x282779['queue']]),this[_0x3b80ac('0x9d')][_0x282779[_0x3b80ac('0x1c9')]][_0x3b80ac('0x20e')]=moment()[_0x3b80ac('0x166')](_0x3b80ac('0x4e'))));},Dialer[_0x31ab94('0x1d')][_0x31ab94('0x110')]=function(_0x512ea5){const _0x1ca740=_0x31ab94;this[_0x1ca740('0x1ce')](_0x512ea5)['catch'](loggerCatch(_0x1ca740('0x18d'))),this[_0x1ca740('0x116')](_0x512ea5)[_0x1ca740('0x155')](loggerCatch(_0x1ca740('0x14e')));},Dialer[_0x31ab94('0x1d')][_0x31ab94('0x109')]=function(_0x41e61b){const _0x342133=_0x31ab94,_0x20bd2c=this['uniqueId'][_0x41e61b['uniqueid']];if(this[_0x342133('0x9e')][_0x41e61b['queue']]){if(_0x20bd2c&&_0x20bd2c['type']!==_0x342133('0x128')){delete this['uniqueId'][_0x41e61b[_0x342133('0x1c9')]],this[_0x342133('0x17e')](this['voiceQueues'][_0x41e61b[_0x342133('0x66')]]),_0x20bd2c['droptime']=moment()[_0x342133('0x166')](_0x342133('0x4e'));const _0x3213a1=new QueueCallerAbandon(_0x20bd2c,_0x41e61b);if(getSeconds(_0x20bd2c[_0x342133('0xb')],_0x20bd2c[_0x342133('0xe8')])>=_0x20bd2c[_0x342133('0x1cb')]){this[_0x342133('0x9e')][_0x41e61b['queue']][_0x342133('0x44')]+=0x1,this[_0x342133('0x9e')][_0x41e61b[_0x342133('0x66')]][_0x342133('0x23')]+=0x1,this[_0x342133('0x9e')][_0x41e61b['queue']][_0x342133('0x13')]+=0x1,_0x3213a1[_0x342133('0x10c')]=0xa,_0x3213a1['statedesc']='Drop',_0x3213a1[_0x342133('0x95')]=_0x342133('0x101'),_0x3213a1['agiafterat']=this[_0x342133('0x9e')][_0x41e61b[_0x342133('0x66')]][_0x342133('0xad')]?moment()[_0x342133('0x166')](_0x342133('0x4e')):undefined,_0x3213a1[_0x342133('0xa1')]+=0x1,_0x3213a1['countglobal']+=0x1;if(_0x3213a1['countdropretry']>=this[_0x342133('0x9e')][_0x41e61b[_0x342133('0x66')]][_0x342133('0x194')])this[_0x342133('0x110')](_0x3213a1);else{this['rescheduleContact']({'active':![],'countdropretry':_0x3213a1['countdropretry'],'scheduledat':moment()[_0x342133('0x17f')](this['voiceQueues'][_0x41e61b['queue']][_0x342133('0x4f')],_0x342133('0x202'))[_0x342133('0x166')]('YYYY-MM-DD\x20HH:mm:ss'),'ContactId':_0x20bd2c[_0x342133('0x7f')],'ListId':_0x20bd2c['ListId'],'VoiceQueueId':_0x20bd2c[_0x342133('0x1c1')]||undefined,'CampaignId':_0x20bd2c[_0x342133('0x26')]||undefined})[_0x342133('0x155')](loggerCatch(_0x342133('0xab')));const _0x2934d8=new History(_0x3213a1);_0x2934d8[_0x342133('0x10c')]=0xa,_0x2934d8[_0x342133('0x84')]=_0x342133('0xb2'),_0x2934d8[_0x342133('0x1d6')]=moment()[_0x342133('0x166')](_0x342133('0x4e')),_0x2934d8[_0x342133('0x73')]=_0x2934d8[_0x342133('0x1d6')],_0x2934d8[_0x342133('0x120')]=_0x3213a1['calleridname'],_0x2934d8[_0x342133('0xc7')]=_0x3213a1[_0x342133('0xc7')],this['createHistory'](_0x2934d8)[_0x342133('0x155')](loggerCatch(_0x342133('0x97')));}}else{this[_0x342133('0x9e')][_0x41e61b[_0x342133('0x66')]][_0x342133('0x1e7')]+=0x1,this[_0x342133('0x9e')][_0x41e61b[_0x342133('0x66')]]['outboundDropCallsDayCallersExit']+=0x1,_0x3213a1[_0x342133('0x10c')]=0xb,_0x3213a1[_0x342133('0x84')]=_0x342133('0x114'),_0x3213a1[_0x342133('0x95')]=_0x342133('0xf9'),_0x3213a1['countabandonedretry']+=0x1,_0x3213a1[_0x342133('0x53')]+=0x1;if(_0x3213a1[_0x342133('0x3e')]>=this[_0x342133('0x9e')][_0x41e61b['queue']]['dialAbandonedMaxRetry'])this[_0x342133('0x110')](_0x3213a1);else{this[_0x342133('0x1ad')]({'active':![],'countabandonedretry':_0x3213a1[_0x342133('0x3e')],'scheduledat':moment()[_0x342133('0x17f')](this[_0x342133('0x9e')][_0x41e61b['queue']]['dialAbandonedRetryFrequency'],_0x342133('0x202'))[_0x342133('0x166')](_0x342133('0x4e')),'ContactId':_0x20bd2c[_0x342133('0x7f')],'ListId':_0x20bd2c[_0x342133('0x138')],'VoiceQueueId':_0x20bd2c['VoiceQueueId']||undefined,'CampaignId':_0x20bd2c['CampaignId']||undefined})[_0x342133('0x155')](loggerCatch(_0x342133('0x1b9')));const _0x5954dd=new History(_0x3213a1);_0x5954dd[_0x342133('0x10c')]=0xb,_0x5954dd[_0x342133('0x84')]=_0x342133('0x114'),_0x5954dd[_0x342133('0x1d6')]=moment()[_0x342133('0x166')]('YYYY-MM-DD\x20HH:mm:ss'),_0x5954dd['endtime']=_0x5954dd['starttime'],_0x5954dd['calleridname']=_0x3213a1[_0x342133('0x120')],_0x5954dd['calleridnum']=_0x3213a1[_0x342133('0xc7')],this['createHistory'](_0x5954dd)[_0x342133('0x155')](loggerCatch('[syncAgentComplete][createHistory][11]'));}}}}},Dialer[_0x31ab94('0x1d')][_0x31ab94('0x1d7')]=function(_0x3e2cd8){const _0x423e19=_0x31ab94;this['actions'][_0x3e2cd8[_0x423e19('0x1c9')]]&&(this[_0x423e19('0x4d')][_0x3e2cd8['uniqueid']][_0x423e19('0x171')]=_0x3e2cd8[_0x423e19('0x171')]),this['uniqueId'][_0x3e2cd8[_0x423e19('0x1c9')]]&&(this[_0x423e19('0x9d')][_0x3e2cd8[_0x423e19('0x1c9')]][_0x423e19('0x171')]=_0x3e2cd8[_0x423e19('0x171')]);},Dialer[_0x31ab94('0x1d')]['syncQueueMember']=function(_0x1fb3b2){const _0x39a7fe=_0x31ab94;if(strategy[this[_0x39a7fe('0x9e')][this[_0x39a7fe('0x4d')][_0x1fb3b2['actionid']][_0x39a7fe('0x66')]][_0x39a7fe('0x123')]]==='roundrobin')this[_0x39a7fe('0x4d')][_0x1fb3b2[_0x39a7fe('0x175')]]&&_[_0x39a7fe('0x165')](this[_0x39a7fe('0x4d')][_0x1fb3b2['actionid']][_0x39a7fe('0x1a7')])&&_0x1fb3b2['status']==='1'&&_0x1fb3b2['paused']==='0'&&(this[_0x39a7fe('0x75')][_0x1fb3b2[_0x39a7fe('0x3c')]]&&(!this[_0x39a7fe('0x75')][_0x1fb3b2[_0x39a7fe('0x3c')]][_0x39a7fe('0x1a7')]&&(this[_0x39a7fe('0x75')][_0x1fb3b2[_0x39a7fe('0x3c')]][_0x39a7fe('0x1a7')]=!![],this[_0x39a7fe('0x4d')][_0x1fb3b2['actionid']][_0x39a7fe('0x1a7')]=!![],this[_0x39a7fe('0x4d')][_0x1fb3b2[_0x39a7fe('0x175')]][_0x39a7fe('0x3c')]=_0x1fb3b2[_0x39a7fe('0x3c')])));else(strategy[this['voiceQueues'][this['actions'][_0x1fb3b2[_0x39a7fe('0x175')]]['queue']][_0x39a7fe('0x123')]]||_0x39a7fe('0xbe'))===_0x39a7fe('0xbe')&&(this[_0x39a7fe('0x4d')][_0x1fb3b2['actionid']]&&(this[_0x39a7fe('0x75')][_0x1fb3b2[_0x39a7fe('0x3c')]]&&(this[_0x39a7fe('0x4d')][_0x1fb3b2[_0x39a7fe('0x175')]][_0x39a7fe('0x3c')]=_0x1fb3b2[_0x39a7fe('0x3c')],_[_0x39a7fe('0x165')](this[_0x39a7fe('0xda')][this[_0x39a7fe('0x4d')][_0x1fb3b2[_0x39a7fe('0x175')]][_0x39a7fe('0x66')]])&&(this[_0x39a7fe('0xda')][this[_0x39a7fe('0x4d')][_0x1fb3b2[_0x39a7fe('0x175')]][_0x39a7fe('0x66')]]=[]),this[_0x39a7fe('0xda')][this[_0x39a7fe('0x4d')][_0x1fb3b2[_0x39a7fe('0x175')]][_0x39a7fe('0x66')]][_0x39a7fe('0x18')](_[_0x39a7fe('0x200')](_[_0x39a7fe('0x18b')](this[_0x39a7fe('0x4d')][_0x1fb3b2['actionid']],[_0x39a7fe('0x1a2'),_0x39a7fe('0x3c')]),{'status':_0x1fb3b2[_0x39a7fe('0x25')],'paused':_0x1fb3b2[_0x39a7fe('0x59')]})))));};function unlockQueueStatus(_0x2465d9,_0x569fed){setTimeout(function(){const _0x324dc8=a1057_0xa5e9;_[_0x324dc8('0x1ed')](_0x2465d9['queueStatusComplete'])&&loggerBooked[_0x324dc8('0x11')](_0x324dc8('0x16'),_0x569fed),_0x2465d9[_0x324dc8('0x1c7')]=!![],loggerBooked[_0x324dc8('0x154')](_0x324dc8('0x91'),_0x569fed,JSON['stringify'](_[_0x324dc8('0x18b')](_0x2465d9,[_0x324dc8('0x20f'),_0x324dc8('0x1c7')])));},0x1f3);}Dialer[_0x31ab94('0x1d')]['syncQueueStatusComplete']=function(_0x5d3bf5){const _0x50f836=_0x31ab94,_0x3ddea6=this,_0x482fc5=_0x3ddea6[_0x50f836('0x9e')][_0x3ddea6['actions'][_0x5d3bf5[_0x50f836('0x175')]]['queue']];if(strategy[this['voiceQueues'][this[_0x50f836('0x4d')][_0x5d3bf5[_0x50f836('0x175')]][_0x50f836('0x66')]]['strategy']]==='roundrobin')this[_0x50f836('0x4d')][_0x5d3bf5[_0x50f836('0x175')]]&&this[_0x50f836('0x4d')][_0x5d3bf5['actionid']]['stateinterface']?this[_0x50f836('0x1e3')][_0x50f836('0x1c4')](this[_0x50f836('0x4d')][_0x5d3bf5['actionid']][_0x50f836('0x1a2')],this[_0x50f836('0x4d')][_0x5d3bf5[_0x50f836('0x175')]][_0x50f836('0x3c')])[_0x50f836('0x155')](function(_0x1d79f7){const _0x38d508=_0x50f836;logger['error']('[Catch][Preview][syncQueueStatusComplete]',util[_0x38d508('0x1d1')](_0x1d79f7,{'showHidden':![],'depth':null}));})['finally'](function(){const _0x49c2e3=_0x50f836;_0x3ddea6[_0x49c2e3('0x17e')](_0x3ddea6['voiceQueues'][_0x3ddea6[_0x49c2e3('0x4d')][_0x5d3bf5[_0x49c2e3('0x175')]][_0x49c2e3('0x66')]]),_0x3ddea6['agents'][_0x3ddea6[_0x49c2e3('0x4d')][_0x5d3bf5[_0x49c2e3('0x175')]]['stateinterface']][_0x49c2e3('0x1a7')]=![],delete _0x3ddea6[_0x49c2e3('0x4d')][_0x5d3bf5[_0x49c2e3('0x175')]],unlockQueueStatus(_0x482fc5);}):(this[_0x50f836('0x17e')](this[_0x50f836('0x9e')][this[_0x50f836('0x4d')][_0x5d3bf5[_0x50f836('0x175')]][_0x50f836('0x66')]]),this['rescheduleContact']({'active':![],'ContactId':this['actions'][_0x5d3bf5['actionid']][_0x50f836('0x7f')],'ListId':this['actions'][_0x5d3bf5[_0x50f836('0x175')]][_0x50f836('0x138')],'VoiceQueueId':this[_0x50f836('0x4d')][_0x5d3bf5[_0x50f836('0x175')]][_0x50f836('0x1c1')]||undefined,'CampaignId':this['actions'][_0x5d3bf5[_0x50f836('0x175')]][_0x50f836('0x26')]||undefined})[_0x50f836('0x155')](loggerCatch('[unlock][syncQueueStatusComplete]')),delete this[_0x50f836('0x4d')][_0x5d3bf5[_0x50f836('0x175')]],unlockQueueStatus(_0x482fc5));else{if((strategy[this[_0x50f836('0x9e')][this['actions'][_0x5d3bf5[_0x50f836('0x175')]]['queue']][_0x50f836('0x123')]]||'rrmemory')===_0x50f836('0xbe')){let _0x1d2a7c;if(this[_0x50f836('0x4d')][_0x5d3bf5[_0x50f836('0x175')]]&&!_[_0x50f836('0x2c')](this[_0x50f836('0xda')][this[_0x50f836('0x4d')][_0x5d3bf5[_0x50f836('0x175')]][_0x50f836('0x66')]])){this[_0x50f836('0x160')][_0x3ddea6[_0x50f836('0x4d')][_0x5d3bf5[_0x50f836('0x175')]][_0x50f836('0x66')]]&&(this[_0x50f836('0x160')][_0x3ddea6[_0x50f836('0x4d')][_0x5d3bf5['actionid']][_0x50f836('0x66')]]=this[_0x50f836('0x160')][this[_0x50f836('0x4d')][_0x5d3bf5[_0x50f836('0x175')]]['queue']]?this[_0x50f836('0x160')][this[_0x50f836('0x4d')][_0x5d3bf5['actionid']][_0x50f836('0x66')]]:this[_0x50f836('0xda')][this['actions'][_0x5d3bf5[_0x50f836('0x175')]]['queue']]?this[_0x50f836('0xda')][this[_0x50f836('0x4d')][_0x5d3bf5[_0x50f836('0x175')]][_0x50f836('0x66')]]['_rr']||0x0:0x0);this[_0x50f836('0xda')][this[_0x50f836('0x4d')][_0x5d3bf5['actionid']][_0x50f836('0x66')]][_0x50f836('0x167')]=this[_0x50f836('0x160')][this[_0x50f836('0x4d')][_0x5d3bf5[_0x50f836('0x175')]]['queue']];for(let _0x52415d=0x0;_0x52415d=0x0?!![]:![];})['catch'](myreject(_0x1738a0)));}else _0x4222aa['push'](ami[_0x5bf5ab('0xd0')]({'action':'command','command':util['format'](_0x5bf5ab('0x100'),_0x2d176e,!_[_0x5bf5ab('0x1ed')](config[_0x5bf5ab('0x6e')][_0x44eea9])?_0x44eea9:'')})[_0x5bf5ab('0x7b')](function(_0x1b5df9){const _0x12a4e6=_0x5bf5ab;return _0x1b5df9[_0x12a4e6('0x198')][_0x12a4e6('0x63')](_0x12a4e6('0x174'))>=0x0?!![]:![];})[_0x5bf5ab('0x155')](myreject(_0x1738a0)));Promise[_0x5bf5ab('0xf6')](_0x4222aa)[_0x5bf5ab('0x7b')](function(_0x2ef828){const _0x36baa5=_0x5bf5ab,_0x587f42=_[_0x36baa5('0x7e')](_0x2ef828);return _0x587f42?_0x5dd882(_0x587f42):(_0x1931b8[_0x36baa5('0xa8')]=_0x4c267a?_0x36baa5('0x1'):_0x36baa5('0x131'),_0x1738a0(msgResponse(_0x36baa5('0x90'),_0x36baa5('0x158'),'Global:\x20'+_0x4c267a+'\x20'+_0x52891d+_0x36baa5('0x19f')+util[_0x36baa5('0x1d1')](_0x2d176e,{'showHidden':![],'depth':null})+_0x36baa5('0x83')+_0x44eea9)));})[_0x5bf5ab('0x155')](function(_0x1c940c){const _0x1f9243=_0x5bf5ab;return _0x1738a0(msgResponse(_0x1f9243('0x8b'),_0x1f9243('0x158'),JSON[_0x1f9243('0x18a')](_0x1c940c)));});});},Dialer['prototype'][_0x31ab94('0x190')]=function(_0x1de703){const _0x222601=this;return function(){const _0x171247=a1057_0xa5e9;switch(_0x1de703[_0x171247('0x169')]){case'progressive':freeVariablesPredictive(_0x1de703),_0x222601['handlePower'](_0x1de703,0x1);break;case _0x171247('0x16c'):freeVariablesPredictive(_0x1de703),_0x222601['handlePower'](_0x1de703,_0x1de703['dialPowerLevel']);break;case _0x171247('0x60'):_0x222601['predictive'](_0x1de703);break;case _0x171247('0x185'):freeVariablesPredictive(_0x1de703),_0x222601[_0x171247('0x2e')](_0x1de703,0x1);break;default:freeVariablesPredictive(_0x1de703),logger[_0x171247('0x11')](_0x171247('0x4c'),_0x1de703[_0x171247('0x20f')],_0x171247('0x7'));}};},Dialer[_0x31ab94('0x1d')][_0x31ab94('0x27')]=function(_0x12f39c){const _0x3c217c=this;return function(){const _0x484004=a1057_0xa5e9;_0x3c217c[_0x484004('0x112')](_0x12f39c);};},Dialer[_0x31ab94('0x1d')][_0x31ab94('0x14')]=function(_0x197b7f){const _0x2aa768=_0x31ab94,_0x322e77=this;isNotPreview(_0x197b7f[_0x2aa768('0x169')])?isVoiceQueueOutbound(_0x197b7f[_0x2aa768('0xa5')])&&isActive(_0x197b7f[_0x2aa768('0x164')])?(_0x197b7f[_0x2aa768('0x141')]=!![],Promise[_0x2aa768('0x55')]()[_0x2aa768('0x7b')](checkIsLoggedIn(_0x197b7f,_0x197b7f[_0x2aa768('0x1fd')]))[_0x2aa768('0x7b')](checkIsActive(_0x197b7f,_0x197b7f['dialActive']))['then'](checkInterval(_0x197b7f))[_0x2aa768('0x7b')](_0x322e77['checkIsTrunkReachable'](_0x197b7f))[_0x2aa768('0x7b')](_0x322e77[_0x2aa768('0x14f')](_0x197b7f['dialGlobalInterval'],_0x197b7f['dialTimezone'],_0x197b7f['name'],_0x197b7f))['then'](_0x322e77[_0x2aa768('0x1bd')](_0x197b7f['Interval'],_0x197b7f['dialTimezone'],_0x197b7f[_0x2aa768('0x20f')],_0x197b7f))[_0x2aa768('0x7b')](_0x322e77['checkDialMethod'](_0x197b7f))['catch'](loggerCatchQueueSummary(_0x2aa768('0xc6'),_0x197b7f))):notSendMessagesQueue(_0x197b7f):freeVariablesPredictive(_0x197b7f);},Dialer['prototype'][_0x31ab94('0x2f')]=function(){const _0x528cf2=_0x31ab94,_0x5a1ea5=this;let _0x5d35cb;for(const _0x115734 in this[_0x528cf2('0x98')]){typeof this['campaigns'][_0x115734]!==_0x528cf2('0x1b1')&&(_0x5d35cb=this[_0x528cf2('0x98')][_0x115734],isCampaignIvr(_0x5d35cb[_0x528cf2('0xa5')])&&isActive(_0x5d35cb[_0x528cf2('0x122')])?(_0x5d35cb[_0x528cf2('0x141')]=!![],Promise[_0x528cf2('0x55')]()[_0x528cf2('0x7b')](checkIsActive(_0x5d35cb,_0x5d35cb[_0x528cf2('0x122')]))[_0x528cf2('0x7b')](checkInterval(_0x5d35cb))[_0x528cf2('0x7b')](_0x5a1ea5[_0x528cf2('0x1c3')](_0x5d35cb))['then'](_0x5a1ea5[_0x528cf2('0x14f')](_0x5d35cb[_0x528cf2('0x206')],_0x5d35cb[_0x528cf2('0xa7')],_0x5d35cb[_0x528cf2('0x20f')],_0x5d35cb))[_0x528cf2('0x7b')](_0x5a1ea5[_0x528cf2('0x1bd')](_0x5d35cb[_0x528cf2('0x16b')],_0x5d35cb[_0x528cf2('0xa7')],_0x5d35cb['name'],_0x5d35cb))['then'](_0x5a1ea5[_0x528cf2('0x27')](_0x5d35cb))['catch'](loggerCatchQueueSummary(_0x528cf2('0x7a'),_0x5d35cb))):notSendMessagesCampaign(_0x5d35cb));}};function getCallerIdRandom(_0x414f4b,_0x3ff64e){const _0x8d043d=_0x31ab94;_0x3ff64e<=0x0&&(_0x3ff64e=0x1);const _0x5238f0=new RegExp(_0x8d043d('0xdb')+_0x3ff64e+'}$'),_0x1d31c3=Math[_0x8d043d('0x17')](0xa,_0x3ff64e-0x1),_0x518032=Math[_0x8d043d('0x17')](0xa,_0x3ff64e)-0x1;return util[_0x8d043d('0x166')]('%s',_[_0x8d043d('0x1d0')](_0x414f4b,_0x5238f0,_[_0x8d043d('0x127')](_0x1d31c3,_0x518032)));}function extractCalleridName(_0x215688){const _0x4e9669=_0x31ab94,_0x3cc2f7=_0x215688[_0x4e9669('0xb4')](/"(.*?)"/);return _0x3cc2f7?_0x3cc2f7[0x1]:_0x215688;}function extractCalleridNumber(_0x33cbe7){const _0x25e59a=_0x31ab94,_0x2eb84c=_0x33cbe7[_0x25e59a('0xb4')](/<(.*?)>/);return _0x2eb84c?_0x2eb84c[0x1]:_0x33cbe7;}Dialer[_0x31ab94('0x1d')][_0x31ab94('0x1fc')]=function(_0x55cca4,_0x1f0916){const _0x21969d=_0x31ab94,_0x33bd36=getConfigService(),_0x3556fe=this,_0x294e04=uuid['v4']();return this[_0x21969d('0x4d')][_0x294e04]=new Action(_0x55cca4,_0x1f0916,_0x294e04),new Promise(function(_0x349315,_0x1bf951){const _0x4eb987=_0x21969d;if(_['isUndefined'](_0x55cca4)&&_0x4eb987('0x147')!==typeof _0x55cca4)return _0x1bf951(msgResponse(_0x4eb987('0x209'),_0x4eb987('0x158'),_0x4eb987('0x153')));if(_[_0x4eb987('0x1ed')](_0x1f0916[_0x4eb987('0x4')][_0x4eb987('0x50')])||_0x1f0916[_0x4eb987('0x4')][_0x4eb987('0x50')]===null)return _0x1bf951(msgResponse(_0x4eb987('0x209'),_0x4eb987('0x158'),_0x4eb987('0xfd')));const _0x48c1e3={'XMD-CALLERID':_0x3556fe['actions'][_0x294e04][_0x4eb987('0xe')](),'XMD-AGI':_0x55cca4[_0x4eb987('0x47')]?util[_0x4eb987('0x166')](_0x4eb987('0x1f2'),_0x33bd36[_0x4eb987('0xaa')],_0x55cca4['dialQueueProject']):'NONE','XMD-AGIAFTER':_0x55cca4[_0x4eb987('0xad')]?util[_0x4eb987('0x166')](_0x4eb987('0x1f2'),_0x33bd36[_0x4eb987('0xaa')],_0x55cca4['dialQueueProject2']):_0x4eb987('0x1b8'),'XMD-QUEUE':_0x55cca4[_0x4eb987('0xa5')]==='outbound'?util['format'](_0x4eb987('0x1cd'),_0x55cca4[_0x4eb987('0x20f')],_0x55cca4[_0x4eb987('0x1be')]||'',_0x55cca4[_0x4eb987('0x173')]?'c':'',_0x55cca4[_0x4eb987('0x1cb')]||0x3):_0x4eb987('0x1b8'),'XMD-CONTACTID':_0x1f0916[_0x4eb987('0x7f')],'XMD-CDRTYPE':'dialer','CALLERID(all)':_0x3556fe[_0x4eb987('0x4d')][_0x294e04]['getCaller'](),'XMD-AMD':_0x55cca4[_0x4eb987('0x1b4')]?_0x4eb987('0x189'):_0x4eb987('0x1b8'),'XMD-DESTINATION':_0x4eb987('0xc2')};_0x55cca4[_0x4eb987('0x1b4')]&&(_0x48c1e3[_0x4eb987('0x1db')]=_0x55cca4['dialAMDInitialSilence']||0x9c4,_0x48c1e3['XMD-AMDGREETING']=_0x55cca4[_0x4eb987('0xfa')]||0x5dc,_0x48c1e3[_0x4eb987('0x42')]=_0x55cca4[_0x4eb987('0x6f')]||0x320,_0x48c1e3[_0x4eb987('0x48')]=_0x55cca4[_0x4eb987('0x182')]||0x1388,_0x48c1e3[_0x4eb987('0x11c')]=_0x55cca4[_0x4eb987('0x2a')]||0x64,_0x48c1e3[_0x4eb987('0x11a')]=_0x55cca4[_0x4eb987('0x3')]||0x32,_0x48c1e3[_0x4eb987('0x33')]=_0x55cca4[_0x4eb987('0xec')]||0x3,_0x48c1e3[_0x4eb987('0x13f')]=_0x55cca4[_0x4eb987('0x1e5')]||0x100,_0x48c1e3[_0x4eb987('0x6c')]=_0x55cca4[_0x4eb987('0x4a')]||0x1388);_0x55cca4['type']===_0x4eb987('0x10d')?_0x48c1e3[_0x4eb987('0x1bc')]=_0x1f0916['VoiceQueueId']:_0x48c1e3[_0x4eb987('0x1a8')]=_0x1f0916[_0x4eb987('0x26')];for(const _0x34afaa in _0x1f0916[_0x4eb987('0x4')]){typeof _0x1f0916[_0x4eb987('0x4')][_0x34afaa]!==_0x4eb987('0x1b1')&&(isNotNull(_0x1f0916[_0x4eb987('0x4')][_0x34afaa])&&_0x34afaa!=='id'&&_0x34afaa!==_0x4eb987('0x1c0')&&_0x34afaa!=='createdAt'&&_0x34afaa!==_0x4eb987('0x204')&&(_0x48c1e3[util['format'](_0x4eb987('0x8f'),'XMD-',_[_0x4eb987('0xdf')](_0x34afaa))]=_0x1f0916[_0x4eb987('0x4')][_0x34afaa]));}const _0x503f3d=_0x3556fe[_0x4eb987('0x150')](_0x55cca4[_0x4eb987('0x1a')])?getCallerId(_0x55cca4[_0x4eb987('0x1a')]['callerid'],_0x55cca4['dialOriginateCallerIdName'],_0x55cca4[_0x4eb987('0x70')]>0x0?getCallerIdRandom(_0x55cca4[_0x4eb987('0x125')],_0x55cca4['dialRandomLastDigitCallerIdNumber']):_0x55cca4[_0x4eb987('0x125')]):getCallerId(_[_0x4eb987('0x165')](_0x55cca4['TrunkBackup'])?_0x55cca4[_0x4eb987('0x1a')][_0x4eb987('0x82')]:_0x55cca4[_0x4eb987('0xcd')][_0x4eb987('0x82')],_0x55cca4[_0x4eb987('0x192')],_0x55cca4[_0x4eb987('0x70')]>0x0?getCallerIdRandom(_0x55cca4['dialOriginateCallerIdNumber'],_0x55cca4['dialRandomLastDigitCallerIdNumber']):_0x55cca4[_0x4eb987('0x125')]);if(_0x503f3d){const _0x5bcea3=extractCalleridName(_0x503f3d);_0x48c1e3['XMD-ORIGINATECALLERIDNAME']=_0x5bcea3,_0x3556fe[_0x4eb987('0x4d')][_0x294e04][_0x4eb987('0x14b')]=_0x5bcea3;const _0x1edde4=extractCalleridNumber(_0x503f3d);_0x48c1e3[_0x4eb987('0x9f')]==_0x1edde4,_0x3556fe['actions'][_0x294e04][_0x4eb987('0x1b3')]=_0x1edde4;}return ami[_0x4eb987('0xd0')]({'actionid':_0x294e04,'action':'originate','channel':_0x3556fe[_0x4eb987('0x150')](_0x55cca4[_0x4eb987('0x1a')])?util[_0x4eb987('0x166')]('SIP/%s/%s%s',_0x55cca4[_0x4eb987('0x1a')][_0x4eb987('0x20f')],isNotNull(_0x55cca4['dialPrefix'])?_0x55cca4[_0x4eb987('0x1f1')][_0x4eb987('0xac')]()||'':'',_0x55cca4[_0x4eb987('0x145')]>0x0?_0x1f0916[_0x4eb987('0x4')][_0x4eb987('0x50')][_0x4eb987('0x41')](_0x55cca4[_0x4eb987('0x145')]):_0x1f0916[_0x4eb987('0x4')][_0x4eb987('0x50')]):util['format']('SIP/%s/%s%s',_[_0x4eb987('0x165')](_0x55cca4['TrunkBackup'])?_0x55cca4['Trunk'][_0x4eb987('0x20f')]:_0x55cca4[_0x4eb987('0xcd')][_0x4eb987('0x20f')],isNotNull(_0x55cca4[_0x4eb987('0x1f1')])?_0x55cca4['dialPrefix'][_0x4eb987('0xac')]()||'':'',_0x55cca4[_0x4eb987('0x145')]>0x0?_0x1f0916[_0x4eb987('0x4')]['phone']['substring'](_0x55cca4[_0x4eb987('0x145')]):_0x1f0916[_0x4eb987('0x4')][_0x4eb987('0x50')]),'callerid':_0x503f3d,'Exten':_0x4eb987('0xc2'),'Context':_0x4eb987('0x191'),'Priority':'1','variable':_0x48c1e3,'timeout':(_0x55cca4[_0x4eb987('0x5c')]||0x1e)*0x3e8,'async':!![],'channelid':_0x294e04})['then'](function(_0x59a20c){return _0x349315(_0x59a20c);})[_0x4eb987('0x155')](function(_0x299858){const _0xcbb350=_0x4eb987;_0x55cca4['outboundOriginateFailureCallsDay']+=0x1;const _0x372917=new History(_0x3556fe[_0xcbb350('0x4d')][_0x294e04]);logger[_0xcbb350('0x11')](util[_0xcbb350('0x166')](_0xcbb350('0xcb'),JSON[_0xcbb350('0x18a')](_0x299858))),_0x372917[_0xcbb350('0x10c')]=0xe,_0x372917[_0xcbb350('0x84')]=_0xcbb350('0x178'),_0x372917[_0xcbb350('0x1d6')]=moment()[_0xcbb350('0x166')]('YYYY-MM-DD\x20HH:mm:ss'),_0x372917[_0xcbb350('0x73')]=_0x372917[_0xcbb350('0x1d6')],_0x3556fe[_0xcbb350('0x1ce')](_0x372917)[_0xcbb350('0x155')](loggerCatch(_0xcbb350('0x186'))),_0x3556fe[_0xcbb350('0x116')](_0x372917)[_0xcbb350('0x155')](loggerCatch('[originate][error]'))[_0xcbb350('0x172')](function(){const _0x48db32=_0xcbb350;return delete _0x3556fe[_0x48db32('0x4d')][_0x294e04],_0x1bf951(msgResponse(_0x48db32('0x209'),_0x48db32('0x29'),_0x48db32('0x106')));});});});},Dialer[_0x31ab94('0x1d')][_0x31ab94('0x80')]=function(_0x3c869b){const _0x279b10=_0x31ab94,_0x3a9449=this[_0x279b10('0x4d')][_0x3c869b[_0x279b10('0x175')]];if(_0x3a9449){delete this[_0x279b10('0x4d')][_0x3c869b[_0x279b10('0x175')]],_0x3a9449['responsetime']=moment()[_0x279b10('0x166')]('YYYY-MM-DD\x20HH:mm:ss');const _0xe4ec87=_0x3a9449[_0x279b10('0xa5')]===_0x279b10('0x128')?this[_0x279b10('0x98')][_0x3a9449[_0x279b10('0x66')]]:this[_0x279b10('0x9e')][_0x3a9449[_0x279b10('0x8e')]()];if(!this['isSuccess'](_0x3c869b[_0x279b10('0xd7')]))return this[_0x279b10('0x17e')](_0xe4ec87),this[_0x279b10('0x16d')](_0x3a9449,_0xe4ec87,_0x3c869b)[_0x279b10('0x7b')](function(){})[_0x279b10('0x155')](loggerCatch(_0x279b10('0x199')));else this[_0x279b10('0x9d')][_0x3c869b[_0x279b10('0x1c9')]]=_0x3a9449;}},Dialer['prototype']['checkRetriveMax']=function(_0x13e9d2,_0x4e2596,_0x28b9a5){const _0x3e2821=_0x31ab94,_0xa310cc=new History(_0x4e2596);if(_0xa310cc[_0x3e2821('0x67')]+_0xa310cc[_0x3e2821('0x1d8')]+_0xa310cc[_0x3e2821('0x15b')]+_0xa310cc[_0x3e2821('0xa4')]+_0xa310cc[_0x3e2821('0xa1')]+_0xa310cc[_0x3e2821('0x3e')]+_0xa310cc[_0x3e2821('0x177')]+_0xa310cc[_0x3e2821('0x1ec')]>=_0x28b9a5[_0x3e2821('0x1af')]-0x1)return!![];switch(_0x13e9d2){case 0x3:if(_0xa310cc[_0x3e2821('0x15b')]>=_0x28b9a5[_0x3e2821('0x5a')]-0x1)return!![];else this[_0x3e2821('0x1ad')]({'active':![],'countnoanswerretry':_0xa310cc[_0x3e2821('0x15b')]+=0x1,'scheduledat':moment()[_0x3e2821('0x17f')](_0x28b9a5[_0x3e2821('0x15')],_0x3e2821('0x202'))[_0x3e2821('0x166')](_0x3e2821('0x4e')),'ContactId':_0xa310cc['ContactId'],'ListId':_0xa310cc[_0x3e2821('0x138')],'VoiceQueueId':_0xa310cc['VoiceQueueId']||undefined,'CampaignId':_0xa310cc[_0x3e2821('0x26')]||undefined})['catch'](loggerCatch(_0x3e2821('0x14a')));break;case 0x5:if(_0xa310cc['countbusyretry']>=_0x28b9a5[_0x3e2821('0xce')]-0x1)return!![];else this[_0x3e2821('0x1ad')]({'active':![],'countbusyretry':_0xa310cc[_0x3e2821('0x67')]+=0x1,'scheduledat':moment()[_0x3e2821('0x17f')](_0x28b9a5[_0x3e2821('0x12e')],'minutes')[_0x3e2821('0x166')]('YYYY-MM-DD\x20HH:mm:ss'),'ContactId':_0xa310cc[_0x3e2821('0x7f')],'ListId':_0xa310cc[_0x3e2821('0x138')],'VoiceQueueId':_0xa310cc['VoiceQueueId']||undefined,'CampaignId':_0xa310cc[_0x3e2821('0x26')]||undefined})[_0x3e2821('0x155')](loggerCatch('[rescheduleContact]\x20[Busy]'));break;case 0x8:if(_0xa310cc[_0x3e2821('0x1d8')]>=_0x28b9a5[_0x3e2821('0x18f')]-0x1)return!![];else this['rescheduleContact']({'active':![],'countcongestionretry':_0xa310cc['countcongestionretry']+=0x1,'scheduledat':moment()['add'](_0x28b9a5[_0x3e2821('0x1a9')],_0x3e2821('0x202'))[_0x3e2821('0x166')]('YYYY-MM-DD\x20HH:mm:ss'),'ContactId':_0xa310cc['ContactId'],'ListId':_0xa310cc[_0x3e2821('0x138')],'VoiceQueueId':_0xa310cc[_0x3e2821('0x1c1')]||undefined,'CampaignId':_0xa310cc[_0x3e2821('0x26')]||undefined})[_0x3e2821('0x155')](loggerCatch(_0x3e2821('0x157')));break;case 0x0:if(_0xa310cc[_0x3e2821('0xa4')]>=_0x28b9a5[_0x3e2821('0x1c5')]-0x1)return!![];else this[_0x3e2821('0x1ad')]({'active':![],'countnosuchnumberretry':_0xa310cc[_0x3e2821('0xa4')]+=0x1,'scheduledat':moment()[_0x3e2821('0x17f')](_0x28b9a5[_0x3e2821('0x22')],_0x3e2821('0x202'))['format'](_0x3e2821('0x4e')),'ContactId':_0xa310cc[_0x3e2821('0x7f')],'ListId':_0xa310cc['ListId'],'VoiceQueueId':_0xa310cc[_0x3e2821('0x1c1')]||undefined,'CampaignId':_0xa310cc[_0x3e2821('0x26')]||undefined})[_0x3e2821('0x155')](loggerCatch('[rescheduleContact][NoSuchNumber]'));break;case 0xa:if(_0xa310cc[_0x3e2821('0xa1')]>=_0x28b9a5[_0x3e2821('0x194')]-0x1)return!![];else this['rescheduleContact']({'active':![],'countdropretry':_0xa310cc['countdropretry']+=0x1,'scheduledat':moment()['add'](_0x28b9a5[_0x3e2821('0x4f')],_0x3e2821('0x202'))['format'](_0x3e2821('0x4e')),'ContactId':_0xa310cc[_0x3e2821('0x7f')],'ListId':_0xa310cc[_0x3e2821('0x138')],'VoiceQueueId':_0xa310cc[_0x3e2821('0x1c1')]||undefined,'CampaignId':_0xa310cc[_0x3e2821('0x26')]||undefined})[_0x3e2821('0x155')](loggerCatch(_0x3e2821('0xab')));break;case 0xb:if(_0xa310cc['countabandonedretry']>=_0x28b9a5[_0x3e2821('0xc1')]-0x1)return!![];else this[_0x3e2821('0x1ad')]({'active':![],'countabandonedretry':_0xa310cc[_0x3e2821('0x3e')]+=0x1,'scheduledat':moment()[_0x3e2821('0x17f')](_0x28b9a5['dialAbandonedRetryFrequency'],_0x3e2821('0x202'))[_0x3e2821('0x166')](_0x3e2821('0x4e')),'ContactId':_0xa310cc['ContactId'],'ListId':_0xa310cc[_0x3e2821('0x138')],'VoiceQueueId':_0xa310cc[_0x3e2821('0x1c1')]||undefined,'CampaignId':_0xa310cc[_0x3e2821('0x26')]||undefined})[_0x3e2821('0x155')](loggerCatch(_0x3e2821('0x1b9')));break;case 0x13:if(_0xa310cc[_0x3e2821('0x177')]>=_0x28b9a5[_0x3e2821('0x11d')]-0x1)return!![];else this['rescheduleContact']({'active':![],'countmachineretry':_0xa310cc[_0x3e2821('0x177')]+=0x1,'scheduledat':moment()['add'](_0x28b9a5[_0x3e2821('0x132')],_0x3e2821('0x202'))[_0x3e2821('0x166')](_0x3e2821('0x4e')),'ContactId':_0xa310cc[_0x3e2821('0x7f')],'ListId':_0xa310cc[_0x3e2821('0x138')],'VoiceQueueId':_0xa310cc[_0x3e2821('0x1c1')]||undefined,'CampaignId':_0xa310cc[_0x3e2821('0x26')]||undefined})[_0x3e2821('0x155')](loggerCatch(_0x3e2821('0x136')));break;case 0x14:if(_0xa310cc['countagentrejectretry']>=_0x28b9a5[_0x3e2821('0x113')]-0x1)return!![];else this['rescheduleContact']({'active':![],'countagentrejectretry':_0xa310cc[_0x3e2821('0x1ec')]+=0x1,'scheduledat':moment()[_0x3e2821('0x17f')](_0x28b9a5[_0x3e2821('0xba')],'minutes')[_0x3e2821('0x166')](_0x3e2821('0x4e')),'ContactId':_0xa310cc[_0x3e2821('0x7f')],'ListId':_0xa310cc[_0x3e2821('0x138')],'VoiceQueueId':_0xa310cc[_0x3e2821('0x1c1')]||undefined,'CampaignId':_0xa310cc[_0x3e2821('0x26')]||undefined})[_0x3e2821('0x155')](loggerCatch(_0x3e2821('0x1fa')));break;default:return!![];}},Dialer[_0x31ab94('0x1d')][_0x31ab94('0x16d')]=function(_0x3d2911,_0x5cdd11,_0x4f02ba){const _0x261708=this,_0x3756e4=new History(_0x3d2911);return new Promise(function(_0x3c92ec,_0xde0fda){const _0xd10c6a=a1057_0xa5e9;if(_[_0xd10c6a('0x1ed')](_0x5cdd11)&&_0xd10c6a('0x147')!==typeof _0x5cdd11)return _0xde0fda(msgResponse(_0xd10c6a('0x139'),'Failure',_0xd10c6a('0xca')));if(_[_0xd10c6a('0x1ed')](_0x4f02ba)&&_0xd10c6a('0x147')!==typeof _0x4f02ba)return _0xde0fda(msgResponse(_0xd10c6a('0x139'),_0xd10c6a('0x158'),_0xd10c6a('0xf3')));switch(_0x4f02ba[_0xd10c6a('0x159')]){case'0':_0x5cdd11[_0xd10c6a('0x119')]+=0x1,_0x3756e4[_0xd10c6a('0x10c')]=0x0,_0x3756e4[_0xd10c6a('0x84')]='NoSuchNumber',_0x3756e4[_0xd10c6a('0xa4')]+=0x1,_0x3756e4[_0xd10c6a('0x53')]+=0x1,ami[_0xd10c6a('0x51')]('custom:agentnosuchnumber',ut[_0xd10c6a('0x5b')](_0x3d2911,'nosuchnumber')),_0x261708[_0xd10c6a('0x1ce')](_0x3756e4)[_0xd10c6a('0x155')](loggerCatch('[syncAgentComplete][createHistory][0]'));_0x261708[_0xd10c6a('0x57')](0x0,_0x3d2911,_0x5cdd11)&&(_0x3756e4[_0xd10c6a('0xa4')]>=_0x5cdd11[_0xd10c6a('0x1c5')]?_0x261708[_0xd10c6a('0xc5')](_0x3756e4,_0x3c92ec,_0xde0fda,_0xd10c6a('0x207')):_0x261708[_0xd10c6a('0x2b')](_0x3756e4,_0x3c92ec,_0xde0fda,_0xd10c6a('0x207')));break;case'3':_0x5cdd11[_0xd10c6a('0xae')]+=0x1,_0x3756e4['state']=0x3,_0x3756e4['statedesc']=_0xd10c6a('0x14d'),_0x3756e4['countnoanswerretry']+=0x1,_0x3756e4[_0xd10c6a('0x53')]+=0x1,ami[_0xd10c6a('0x51')](_0xd10c6a('0xd3'),ut[_0xd10c6a('0x5b')](_0x3d2911,_0xd10c6a('0xa2'))),_0x261708[_0xd10c6a('0x1ce')](_0x3756e4)[_0xd10c6a('0x155')](loggerCatch(_0xd10c6a('0x118')));_0x261708['checkRetriveMax'](0x3,_0x3d2911,_0x5cdd11)&&(_0x3756e4['countnoanswerretry']>=_0x5cdd11[_0xd10c6a('0x5a')]?_0x261708[_0xd10c6a('0xc5')](_0x3756e4,_0x3c92ec,_0xde0fda,_0xd10c6a('0x1b7')):_0x261708[_0xd10c6a('0x2b')](_0x3756e4,_0x3c92ec,_0xde0fda,_0xd10c6a('0x1b7')));break;case'5':_0x5cdd11[_0xd10c6a('0x156')]+=0x1,_0x3756e4[_0xd10c6a('0x10c')]=0x5,_0x3756e4[_0xd10c6a('0x84')]='Busy',_0x3756e4['countbusyretry']+=0x1,_0x3756e4[_0xd10c6a('0x53')]+=0x1,ami[_0xd10c6a('0x51')]('custom:agentbusy',ut[_0xd10c6a('0x5b')](_0x3d2911,'busy')),_0x261708['createHistory'](_0x3756e4)[_0xd10c6a('0x155')](loggerCatch(_0xd10c6a('0x137')));_0x261708[_0xd10c6a('0x57')](0x5,_0x3d2911,_0x5cdd11)&&(_0x3756e4[_0xd10c6a('0x67')]>=_0x5cdd11[_0xd10c6a('0xce')]?_0x261708[_0xd10c6a('0xc5')](_0x3756e4,_0x3c92ec,_0xde0fda,_0xd10c6a('0x31')):_0x261708[_0xd10c6a('0x2b')](_0x3756e4,_0x3c92ec,_0xde0fda,_0xd10c6a('0x31')));break;case'8':_0x5cdd11['outboundCongestionCallsDay']+=0x1,_0x3756e4[_0xd10c6a('0x10c')]=0x8,_0x3756e4[_0xd10c6a('0x84')]='Congestion',_0x3756e4['countcongestionretry']+=0x1,_0x3756e4[_0xd10c6a('0x53')]+=0x1,ami[_0xd10c6a('0x51')](_0xd10c6a('0x133'),ut['buildObj'](_0x3d2911,_0xd10c6a('0x18c'))),_0x261708[_0xd10c6a('0x1ce')](_0x3756e4)[_0xd10c6a('0x155')](loggerCatch('[syncAgentComplete][createHistory][8]'));_0x261708['checkRetriveMax'](0x8,_0x3d2911,_0x5cdd11)&&(_0x3756e4[_0xd10c6a('0x1d8')]>=_0x5cdd11[_0xd10c6a('0x18f')]?_0x261708['createStateFinal'](_0x3756e4,_0x3c92ec,_0xde0fda,_0xd10c6a('0x121')):_0x261708[_0xd10c6a('0x2b')](_0x3756e4,_0x3c92ec,_0xde0fda,_0xd10c6a('0x121')));break;case'11':_0x5cdd11[_0xd10c6a('0x68')]+=0x1,_0x3756e4[_0xd10c6a('0x10c')]=0xb,_0x3756e4[_0xd10c6a('0x84')]=_0xd10c6a('0x114'),_0x3756e4[_0xd10c6a('0x3e')]+=0x1,_0x3756e4[_0xd10c6a('0x53')]+=0x1,_0x261708[_0xd10c6a('0x1ce')](_0x3756e4)[_0xd10c6a('0x155')](loggerCatch(_0xd10c6a('0xea')));_0x261708['checkRetriveMax'](0xb,_0x3d2911,_0x5cdd11)&&(_0x3756e4[_0xd10c6a('0x3e')]>=_0x5cdd11[_0xd10c6a('0xc1')]?_0x261708[_0xd10c6a('0xc5')](_0x3756e4,_0x3c92ec,_0xde0fda,_0xd10c6a('0x1f6')):_0x261708[_0xd10c6a('0x2b')](_0x3756e4,_0x3c92ec,_0xde0fda,_0xd10c6a('0x1f6')));break;case'20':_0x5cdd11[_0xd10c6a('0xef')]+=0x1,_0x3756e4[_0xd10c6a('0x10c')]=0x14,_0x3756e4['statedesc']=_0xd10c6a('0x1dc'),_0x3756e4[_0xd10c6a('0x1ec')]+=0x1,_0x3756e4['countglobal']+=0x1,ami[_0xd10c6a('0x51')](_0xd10c6a('0x74'),ut[_0xd10c6a('0x5b')](_0x3d2911,_0xd10c6a('0x176'))),_0x261708[_0xd10c6a('0x1ce')](_0x3756e4)[_0xd10c6a('0x155')](loggerCatch(_0xd10c6a('0x151')));_0x261708[_0xd10c6a('0x57')](0x14,_0x3d2911,_0x5cdd11)&&(_0x3756e4[_0xd10c6a('0x1ec')]>=_0x5cdd11[_0xd10c6a('0x113')]?_0x261708[_0xd10c6a('0xc5')](_0x3756e4,_0x3c92ec,_0xde0fda,_0xd10c6a('0x1b')):_0x261708['stateGlobal'](_0x3756e4,_0x3c92ec,_0xde0fda,_0xd10c6a('0x1b')));break;default:_0x5cdd11[_0xd10c6a('0x12f')]+=0x1,_0x3756e4[_0xd10c6a('0x10c')]=0xc,_0x3756e4[_0xd10c6a('0x84')]=_0x4f02ba[_0xd10c6a('0x159')],_0x261708['createHistory'](_0x3756e4)[_0xd10c6a('0x155')](loggerCatch(_0xd10c6a('0x1c2')));_0x261708[_0xd10c6a('0x57')](_0x4f02ba['reason'],_0x3d2911,_0x5cdd11)&&(_0x3756e4[_0xd10c6a('0x67')]+_0x3756e4[_0xd10c6a('0x1d8')]+_0x3756e4[_0xd10c6a('0x15b')]+_0x3756e4[_0xd10c6a('0xa4')]+_0x3756e4[_0xd10c6a('0xa1')]+_0x3756e4[_0xd10c6a('0x3e')]+_0x3756e4['countmachineretry']+_0x3756e4[_0xd10c6a('0x1ec')]>=_0x5cdd11['dialGlobalMaxRetry']?_0x261708[_0xd10c6a('0x2b')](_0x3756e4,_0x3c92ec,_0xde0fda,_0x4f02ba[_0xd10c6a('0x159')]):_0x261708['createStateFinal'](_0x3756e4,_0x3c92ec,_0xde0fda,_0x4f02ba['reason']));}});},Dialer['prototype'][_0x31ab94('0x2b')]=function(_0x27d44d,_0x2cf105,_0x3e895a,_0x4e0f06){const _0x19b6dd=_0x31ab94,_0xe34d19=new Final(_0x27d44d);_0xe34d19[_0x19b6dd('0x10c')]=0xf,_0xe34d19[_0x19b6dd('0x84')]=_0x19b6dd('0xb7'),this[_0x19b6dd('0xc5')](_0xe34d19,_0x2cf105,_0x3e895a,_0x4e0f06);},Dialer[_0x31ab94('0x1d')][_0x31ab94('0xc5')]=function(_0x59ad9a,_0x39b81c,_0x1db8ad,_0x2ba34c){const _0x204ec5=_0x31ab94;this[_0x204ec5('0x116')](_0x59ad9a)[_0x204ec5('0x7b')](function(){const _0xaf7972=_0x204ec5;return _0x39b81c(msgResponse(_0xaf7972('0x139'),_0xaf7972('0x1bf'),_0x2ba34c));})[_0x204ec5('0x155')](function(){const _0x1b816d=_0x204ec5;return _0x1db8ad(msgResponse(_0x1b816d('0xa0'),_0x1b816d('0x158'),_0x1b816d('0x85')));});},Dialer[_0x31ab94('0x1d')]['predictive']=function(_0x47604d){const _0x4034d5=_0x31ab94,_0x4dd65c=_0x47604d[_0x4034d5('0x140')]/0x64,_0x2eeeed=_0x47604d[_0x4034d5('0x23')]/(_0x47604d[_0x4034d5('0x23')]+_0x47604d['outboundAnswerCallsDay']),_0x9a7f22=Math['round'](_0x47604d['predictiveIntervalAvailable']*(_0x47604d['predictiveIntervalMaxThreshold']/0x64)),_0x2c6f83=Math['round'](_0x47604d['predictiveIntervalAvailable']*(_0x47604d[_0x4034d5('0xcc')]/0x64)),_0x27e6ec=_0x47604d[_0x4034d5('0x1a1')]+_0x47604d[_0x4034d5('0x126')],_0xd0bd7e=Math[_0x4034d5('0x1f0')](_0x47604d[_0x4034d5('0x1c6')]*_0x47604d[_0x4034d5('0x1f5')]*_0x47604d[_0x4034d5('0x12')]*_0x47604d[_0x4034d5('0x10')]);if(_[_0x4034d5('0x1ed')](_0x47604d[_0x4034d5('0x168')]))!_['isUndefined'](_0x47604d['startPredictive'])&&(_0x47604d[_0x4034d5('0x65')]=undefined,loggerPredictive[_0x4034d5('0x11')](_0x4034d5('0x129'),_0x4034d5('0xf5'))),!_[_0x4034d5('0x1ed')](_0x47604d[_0x4034d5('0x1f')])&&(loggerPredictive[_0x4034d5('0x11')](_0x4034d5('0x129'),'check\x20handlePredictive\x20is\x20not\x20undefine'),clearInterval(_0x47604d[_0x4034d5('0x1f')]),_0x47604d[_0x4034d5('0x1f')]=undefined),_0x47604d['startProgressive']=moment()[_0x4034d5('0x166')](_0x4034d5('0x4e')),loggerPredictive['info'](_0x47604d[_0x4034d5('0x20f')],_0x4034d5('0x36'),_0x47604d[_0x4034d5('0x168')]),this[_0x4034d5('0x2e')](_0x47604d,0x1);else{if(ifInterval(_0x47604d[_0x4034d5('0x6a')],_0x47604d[_0x4034d5('0x168')]))this[_0x4034d5('0x2e')](_0x47604d,0x1),loggerPredictiveCalls[_0x4034d5('0x154')](_0x4034d5('0x52'),_0x47604d[_0x4034d5('0x168')],_0x47604d[_0x4034d5('0x20f')]),_0x47604d[_0x4034d5('0x1c6')]=0x0,_0x47604d[_0x4034d5('0x13')]=0x0;else{if(_0x4dd65c<_0x2eeeed&&_0x47604d[_0x4034d5('0x12c')]===_0x4034d5('0x61'))freeVariablesPredictive(_0x47604d),loggerPredictive[_0x4034d5('0x154')](_0x4034d5('0x6'),'Dropped\x20calls\x20day',_0x2eeeed,'startProgressive',_0x47604d[_0x4034d5('0x20f')]);else{if(_0xd0bd7e<_0x47604d[_0x4034d5('0x13')]&&_0x47604d[_0x4034d5('0x12c')]===_0x4034d5('0x61'))freeVariablesPredictive(_0x47604d),loggerPredictive[_0x4034d5('0x154')]('[stopMethodPredictive][ReStartProgressive][ExceededDropInterval]',_0x4034d5('0x11e'),_0xd0bd7e,_0x4034d5('0x16f'),_0x47604d[_0x4034d5('0x13')],_0x4034d5('0x168'),_0x47604d[_0x4034d5('0x20f')]);else{if(!ifInterval(_0x47604d[_0x4034d5('0x6a')],_0x47604d[_0x4034d5('0x168')])&&_[_0x4034d5('0x1ed')](_0x47604d[_0x4034d5('0x65')])&&!_[_0x4034d5('0x1ed')](_0x47604d['startProgressive']))_0x47604d[_0x4034d5('0x65')]=moment()['format']('YYYY-MM-DD\x20HH:mm:ss'),loggerPredictive[_0x4034d5('0x154')](_0x47604d[_0x4034d5('0x20f')],_0x4034d5('0x1b0'),_0x47604d[_0x4034d5('0x65')]),this[_0x4034d5('0x13e')](_0x47604d[_0x4034d5('0x6a')])[_0x4034d5('0x7b')](this[_0x4034d5('0x3b')](_0x47604d))['then'](mergeDataErlangB(_0x47604d))[_0x4034d5('0x7b')](this['startMethodPredictive'](_0x47604d))[_0x4034d5('0x155')](loggerCatchPredictive(_0x4034d5('0xc0'),_0x47604d));else{if(!ifInterval(_0x47604d[_0x4034d5('0x6a')],_0x47604d['startPredictive']))_0x47604d[_0x4034d5('0x13')]=0x0,_0x47604d[_0x4034d5('0x65')]=moment()[_0x4034d5('0x166')](_0x4034d5('0x4e')),loggerPredictive['info'](_0x47604d[_0x4034d5('0x20f')],_0x4034d5('0x111'),_0x47604d[_0x4034d5('0x65')]),clearInterval(_0x47604d[_0x4034d5('0x1f')]),_0x47604d[_0x4034d5('0x1f')]=undefined,this[_0x4034d5('0x13e')](_0x47604d[_0x4034d5('0x6a')])[_0x4034d5('0x7b')](this['getDataPredictive'](_0x47604d))[_0x4034d5('0x7b')](mergeDataErlangB(_0x47604d))['then'](this[_0x4034d5('0xf0')](_0x47604d))['catch'](loggerCatchPredictive(_0x4034d5('0x79'),_0x47604d));else{if(_0x47604d[_0x4034d5('0xf8')]&&_0x27e6ec<_0x47604d[_0x4034d5('0xf8')]-_0x2c6f83)freeVariablesPredictive(_0x47604d),loggerPredictive[_0x4034d5('0x154')](_0x47604d['name'],_0x4034d5('0x1cc'),_0x27e6ec,')\x20are\x20less\x20than\x20threshold\x20(',_0x47604d[_0x4034d5('0xf8')],'-',_0x2c6f83,'=',_0x47604d[_0x4034d5('0xf8')]-_0x2c6f83,')');else _0x47604d['predictiveIntervalAvailable']&&_0x27e6ec>_0x47604d['predictiveIntervalAvailable']+_0x9a7f22&&(freeVariablesPredictive(_0x47604d),loggerPredictive[_0x4034d5('0x154')](_0x47604d[_0x4034d5('0x20f')],_0x4034d5('0x1cc'),_0x27e6ec,_0x4034d5('0xc3'),_0x47604d[_0x4034d5('0xf8')],'+',_0x9a7f22,'=',_0x47604d['predictiveIntervalAvailable']+_0x9a7f22,')'));}}}}}}},Dialer[_0x31ab94('0x1d')][_0x31ab94('0x3b')]=function(_0x816d97){const _0x58bf9e=this;return function(_0x23f7ad){return new Promise(function(_0x1d66bd,_0x2a17d8){const _0x5373a9=a1057_0xa5e9;_[_0x5373a9('0x200')](_0x816d97,_0x23f7ad[0x0]);if(checkGetDataPredictive(_0x23f7ad[0x0])){const _0x3fbc3c=_0x816d97[_0x5373a9('0x126')]+_0x816d97[_0x5373a9('0x1a1')];_0x816d97['predictiveIntervalAvailable']=_0x3fbc3c;const _0x6e9a1d=_0x3fbc3c,_0x3d814a=_0x816d97[_0x5373a9('0x6a')]*0x3c,_0x228d7e=_0x23f7ad[0x0]['predictiveIntervalAvgTalktime']+_0x23f7ad[0x0]['predictiveIntervalAvgHoldtime'],_0x226d0e=(_0x23f7ad[0x0]['predictiveIntervalAnsweredCalls']+_0x23f7ad[0x0][_0x5373a9('0x44')]+_0x23f7ad[0x0][_0x5373a9('0x1e7')])/_0x23f7ad[0x0][_0x5373a9('0x1e2')];_0x816d97[_0x5373a9('0x12')]=_0x226d0e>0x0?_0x226d0e:0x1;switch(_0x816d97[_0x5373a9('0x12c')]){case _0x5373a9('0x61'):{const _0x56b659=_0x816d97[_0x5373a9('0x140')]/0x64;return _0x58bf9e[_0x5373a9('0x20d')](_0x6e9a1d,_0x3d814a,_0x228d7e,_0x226d0e,_0x56b659)[_0x5373a9('0x7b')](function(_0x1915c2){return _0x1d66bd(_0x1915c2);});}case'agentBusyFactor':{const _0x41e2ae=_0x816d97[_0x5373a9('0x140')]/0x64;return _0x58bf9e[_0x5373a9('0xa')](_0x6e9a1d,_0x3d814a,_0x228d7e,_0x226d0e,_0x41e2ae)['then'](function(_0x3602e9){return _0x1d66bd(_0x3602e9);});}default:return _0x2a17d8(msgResponse(_0x5373a9('0x1f7'),_0x5373a9('0x158'),_0x5373a9('0x148')));}}else return _0x2a17d8(msgResponse(_0x5373a9('0x1f7'),_0x5373a9('0x158'),_0x5373a9('0xfc')));});};},Dialer['prototype'][_0x31ab94('0x78')]=function(_0x4f2976){const _0x55a2f0=this;return function(_0x50870e){return new Promise(function(_0x2ac009,_0x1b26db){const _0x5f5194=a1057_0xa5e9;_[_0x5f5194('0x200')](_0x4f2976,_0x50870e[0x0]);if(checkGetDataPredictive(_0x50870e[0x0])){loggerPredictive[_0x5f5194('0x154')](JSON['stringify'](_0x50870e[0x0]));if(_0x4f2976[_0x5f5194('0x12c')]===_0x5f5194('0x61'))return _0x55a2f0[_0x5f5194('0x19e')](_0x4f2976['id'])[_0x5f5194('0x7b')](function(_0xf54919){const _0x5458cd=_0x5f5194,_0x2f9423=_0x4f2976[_0x5458cd('0x1fd')]-_0xf54919[0x0][_0x5458cd('0x87')],_0x801061=_0x4f2976['dialPredictiveInterval']*0x3c,_0x371bee=_0x50870e[0x0][_0x5458cd('0x69')]+_0x50870e[0x0][_0x5458cd('0x88')],_0x5810e3=(_0x50870e[0x0][_0x5458cd('0x1e')]+_0x50870e[0x0][_0x5458cd('0x44')]+_0x50870e[0x0][_0x5458cd('0x1e7')])/_0x50870e[0x0][_0x5458cd('0x1e2')],_0x10ba7f=_0x4f2976[_0x5458cd('0x140')]/0x64;return _0x4f2976['predictiveIntervalPauses']=_0xf54919[0x0][_0x5458cd('0x87')]||0x0,_0x4f2976[_0x5458cd('0x12')]=_0x5810e3>0x0?_0x5810e3:0x1,_0x55a2f0[_0x5458cd('0x20d')](_0x2f9423,_0x801061,_0x371bee,_0x5810e3,_0x10ba7f);})[_0x5f5194('0x7b')](function(_0x16d59e){return _0x2ac009(_0x16d59e);})['catch'](function(_0x24323c){const _0xa077a=_0x5f5194;return _0x1b26db(msgResponse(_0xa077a('0xbd'),_0xa077a('0x158'),JSON[_0xa077a('0x18a')](_0x24323c)));});if(_0x4f2976[_0x5f5194('0x12c')]==='agentBusyFactor')return _0x55a2f0['getVoiceQueueRtPauses'](_0x4f2976['id'])[_0x5f5194('0x7b')](function(_0x483d29){const _0x2e6492=_0x5f5194,_0x4e3ae8=_0x4f2976[_0x2e6492('0x1fd')]-_0x483d29[0x0][_0x2e6492('0x87')],_0x215c95=_0x4f2976['dialPredictiveInterval']*0x3c,_0x3fb065=_0x50870e[0x0][_0x2e6492('0x69')]+_0x50870e[0x0][_0x2e6492('0x88')],_0x4ee042=(_0x50870e[0x0][_0x2e6492('0x1e')]+_0x50870e[0x0]['predictiveIntervalDroppedCallsTimeout']+_0x50870e[0x0][_0x2e6492('0x1e7')])/_0x50870e[0x0][_0x2e6492('0x1e2')],_0x28349b=_0x4f2976['dialPredictiveOptimizationPercentage']/0x64;return _0x4f2976[_0x2e6492('0x34')]=_0x483d29[0x0]['outboundQueuePauses']||0x0,_0x4f2976[_0x2e6492('0x12')]=_0x4ee042>0x0?_0x4ee042:0x1,_0x55a2f0[_0x2e6492('0xa')](_0x4e3ae8,_0x215c95,_0x3fb065,_0x4ee042,_0x28349b);})[_0x5f5194('0x7b')](function(_0x516ae1){return _0x2ac009(_0x516ae1);})['catch'](function(_0x3800e7){const _0x3ace7a=_0x5f5194;return _0x1b26db(msgResponse(_0x3ace7a('0xbd'),'Failure',JSON[_0x3ace7a('0x18a')](_0x3800e7)));});}else return _0x1b26db(msgResponse(_0x5f5194('0x1f7'),'Failure',_0x5f5194('0xfc')));});};},Dialer[_0x31ab94('0x1d')]['startMethodPredictive']=function(_0x2d8e6d){const _0x6d63fc=this;return function(){const _0x5942a0=a1057_0xa5e9;let _0x2e51d2=0x0,_0xb6a057=Math[_0x5942a0('0x1f0')](_0x2d8e6d['erlangCallToSecond']*0x3e8);_0xb6a057>0x0?(_0xb6a057=_0xb6a057<0x64?0x64:_0xb6a057,loggerPredictive['info'](_0x2d8e6d['name'],'one\x20call\x20every:',_0xb6a057,'milliseconds'),_0x2d8e6d['handlePredictive']=setInterval(function(){const _0x49d087=_0x5942a0;_0x6d63fc[_0x49d087('0x1f')](_0x2d8e6d),loggerPredictiveCalls[_0x49d087('0x154')](_0x49d087('0x19c'),_0x2e51d2+=0x1);},_0xb6a057)):loggerPredictive[_0x5942a0('0x154')](_0x2d8e6d[_0x5942a0('0x20f')],_0x5942a0('0x149'));};},Dialer[_0x31ab94('0x1d')][_0x31ab94('0x15a')]=function(_0x4bab00,_0x4bd27b){const _0x5d9403=this;return function(_0x117e3d){const _0x38b777=a1057_0xa5e9;if(_[_0x38b777('0x2c')](_0x117e3d)){if(_[_0x38b777('0x165')](_0x4bd27b[_0x38b777('0x21')])||!_0x4bd27b['recallme']){if(_0x4bab00[_0x38b777('0x169')]===_0x38b777('0x185')){_0x4bab00['queueStatusComplete']=_[_0x38b777('0x1ed')](_0x4bab00[_0x38b777('0x1c7')])?!![]:_0x4bab00[_0x38b777('0x1c7')];const _0x5e87d4=uuid['v4']();_0x5d9403[_0x38b777('0x4d')][_0x5e87d4]=new Action(_0x4bab00,_0x4bd27b,_0x5e87d4),loggerBooked[_0x38b777('0x154')](_0x38b777('0xbc'),_0x5e87d4,'queueStatusComplete:\x20',JSON[_0x38b777('0x18a')](_0x4bab00[_0x38b777('0x1c7')]),_0x38b777('0x163'),_0x4bab00[_0x38b777('0x20f')]),_0x4bab00[_0x38b777('0x1c7')]?(_0x4bab00[_0x38b777('0x1c7')]=![],_0x5d9403[_0x38b777('0xda')][_0x5d9403[_0x38b777('0x4d')][_0x5e87d4]['queue']]=[],ami[_0x38b777('0xd0')]({'actionid':_0x5e87d4,'action':_0x38b777('0xf'),'queue':_0x4bab00[_0x38b777('0x20f')]})[_0x38b777('0x155')](function(){const _0x29676e=_0x38b777;_0x5d9403[_0x29676e('0x17e')](_0x4bab00),_0x5d9403[_0x29676e('0x1ad')]({'active':![],'ContactId':_0x5d9403[_0x29676e('0x4d')][_0x5e87d4][_0x29676e('0x7f')],'ListId':_0x5d9403[_0x29676e('0x4d')][_0x5e87d4][_0x29676e('0x138')],'VoiceQueueId':_0x5d9403[_0x29676e('0x4d')][_0x5e87d4][_0x29676e('0x1c1')]||undefined,'CampaignId':_0x5d9403[_0x29676e('0x4d')][_0x5e87d4][_0x29676e('0x26')]||undefined})['catch'](loggerCatch(_0x29676e('0x179'))),delete _0x5d9403[_0x29676e('0x4d')][_0x5e87d4];})):(loggerBooked['info'](_0x38b777('0xe0'),JSON['stringify'](_0x4bab00['queueStatusComplete']),_0x38b777('0x163'),_0x4bab00['name']),_0x5d9403['updateOriginated'](_0x4bab00),_0x5d9403[_0x38b777('0x1ad')]({'active':![],'ContactId':_0x5d9403['actions'][_0x5e87d4][_0x38b777('0x7f')],'ListId':_0x5d9403[_0x38b777('0x4d')][_0x5e87d4][_0x38b777('0x138')],'VoiceQueueId':_0x5d9403['actions'][_0x5e87d4][_0x38b777('0x1c1')]||undefined,'CampaignId':_0x5d9403[_0x38b777('0x4d')][_0x5e87d4][_0x38b777('0x26')]||undefined})[_0x38b777('0x155')](loggerCatch(_0x38b777('0x179'))),delete _0x5d9403[_0x38b777('0x4d')][_0x5e87d4]);}else return _0x5d9403[_0x38b777('0x1fc')](_0x4bab00,_0x4bd27b);}else getDiff(_0x4bd27b['scheduledat'])<_0x4bab00[_0x38b777('0x15d')]*0x3c?_0x4bd27b[_0x38b777('0xfe')]&&!_0x4bd27b[_0x38b777('0xfe')]['voicePause']?_0x5d9403[_0x38b777('0x1e3')][_0x38b777('0x1c4')](_0x4bd27b['id'])['finally'](function(){const _0x2aa014=_0x38b777;_0x5d9403[_0x2aa014('0x17e')](_0x4bab00);}):_0x5d9403[_0x38b777('0xb8')]({'active':![]},_0x4bd27b['id'],0x1)[_0x38b777('0x172')](function(){const _0x26a29f=_0x38b777;console[_0x26a29f('0x46')](_0x26a29f('0x1d2')),_0x5d9403[_0x26a29f('0x17e')](_0x4bab00);}):(_0x4bab00[_0x38b777('0x105')]+=0x1,_0x5d9403[_0x38b777('0x17e')](_0x4bab00),_0x4bab00[_0x38b777('0x15f')]?(_0x5d9403[_0x38b777('0x1ad')]({'active':![],'recallme':![],'UserId':null,'ContactId':_0x4bd27b['ContactId'],'ListId':_0x4bd27b[_0x38b777('0x138')],'VoiceQueueId':_0x4bd27b[_0x38b777('0x1c1')]||undefined,'CampaignId':_0x4bd27b['CampaignId']||undefined})['catch'](loggerCatch(_0x38b777('0xff'))),_0x5d9403[_0x38b777('0x1ce')](createObjHistory(_0x4bab00,_0x4bd27b,_0x38b777('0xb0'),0x17,_0x38b777('0x12a')))[_0x38b777('0x155')](loggerCatch('[Originate][HistoryDialRecallInQueue][historyCatch]'))):_0x5d9403['saveInDb'](createObjHistory(_0x4bab00,_0x4bd27b,_0x38b777('0x7c'),0x16,_0x38b777('0x3a')),_0x38b777('0x1ac'),_0x38b777('0x1ae')));}else{_0x4bab00[_0x38b777('0x117')]+=0x1,_0x5d9403[_0x38b777('0x203')](createObjHistory(_0x4bab00,_0x4bd27b,'BLACKLIST',0xd,'Blacklist'),_0x38b777('0x7d'),_0x38b777('0x1bb'));throw _0x38b777('0xc');}};},Dialer[_0x31ab94('0x1d')][_0x31ab94('0x112')]=function(_0x2bc699){const _0x2fbc97=_0x31ab94,_0x15bb30=this;let _0x297775=_0x2bc699['limitCalls']-_0x2bc699[_0x2fbc97('0x10b')]-_0x2bc699[_0x2fbc97('0xf1')];emitCampaignSummary(_0x2bc699),_0x297775>0x0&&(_0x297775>this[_0x2fbc97('0x144')]&&(_0x297775=this[_0x2fbc97('0x144')]),_0x2bc699[_0x2fbc97('0xf1')]+=_0x297775,this[_0x2fbc97('0x180')](_0x2bc699['id'],_0x297775,_0x2bc699[_0x2fbc97('0x1f3')])['then'](function(_0xc977c1){const _0x75870e=_0x2fbc97;_0x2bc699[_0x75870e('0xf1')]-=_0x297775,_0x2bc699[_0x75870e('0xf1')]=_0x2bc699['temp']>0x0?_0x2bc699[_0x75870e('0xf1')]:0x0;if(!checkContactEmpty(_0xc977c1))_0x2bc699[_0x75870e('0xa8')]=_0x75870e('0x13c'),logger['info']('[getContactCampaign2][Empty]'+_0x2bc699['name']);else{_0x2bc699[_0x75870e('0x10b')]+=_0xc977c1['length'],_0x2bc699[_0x75870e('0xa8')]=_0x75870e('0x24');for(let _0x78d4f7=0x0;_0x78d4f7<_0xc977c1[_0x75870e('0x13b')];_0x78d4f7+=0x1){_0x2bc699[_0x75870e('0x1ef')]+=0x1,_[_0x75870e('0x165')](_0xc977c1[_0x78d4f7])||_[_0x75870e('0x165')](_0xc977c1[_0x78d4f7]['Contact'])||_[_0x75870e('0x165')](_0xc977c1[_0x78d4f7][_0x75870e('0x4')][_0x75870e('0x50')])?_0x15bb30[_0x75870e('0x99')](_0x75870e('0xed'),_0x2bc699,_0xc977c1[_0x78d4f7]):_0x15bb30[_0x75870e('0xd1')](_[_0x75870e('0x18b')](_0xc977c1[_0x78d4f7],['CampaignId',_0x75870e('0x3f')]))[_0x75870e('0x7b')](_0x15bb30['checkContactBlack'](_0x2bc699,_0xc977c1[_0x78d4f7]))[_0x75870e('0x155')](_0x15bb30[_0x75870e('0x1b2')](_0x75870e('0x1e8'),_0x2bc699));}}})[_0x2fbc97('0x155')](loggerGetContactDialer(_0x2fbc97('0xa3'),_0x2bc699,_0x297775)));},Dialer[_0x31ab94('0x1d')][_0x31ab94('0x2e')]=function(_0x12a095,_0x1a1797){const _0x343a59=_0x31ab94,_0x2e6303=this,_0x56f9ff=[];let _0x4ef126=_0x1a1797>=0x1?_0x1a1797:0x1;_0x12a095['dialMethod']===_0x343a59('0x185')&&(_0x4ef126=0x1);let _0x10156d=Math[_0x343a59('0x1f0')](_0x12a095[_0x343a59('0x1a1')]*_0x4ef126)-_0x12a095['originated']-_0x12a095['temp'];emitVoiceQueueSummary(_0x12a095);if(_0x12a095[_0x343a59('0x5')]>0x0){const _0xbb52e2=_0x12a095[_0x343a59('0x5')]-_0x12a095[_0x343a59('0x10b')]-_0x12a095[_0x343a59('0x126')]-_0x12a095[_0x343a59('0xf1')]-_0x12a095[_0x343a59('0x188')];_0x10156d>_0xbb52e2&&(_0x10156d=_0xbb52e2);}if(_0x10156d>0x0){_0x12a095[_0x343a59('0x169')]===_0x343a59('0x185')&&(_0x10156d=0x1);_0x10156d>this['maxNumberOriginate']&&(_0x10156d=this[_0x343a59('0x144')]);_0x12a095[_0x343a59('0xf1')]+=_0x10156d;for(const _0x39c1a6 in this[_0x343a59('0x75')]){typeof this[_0x343a59('0x75')][_0x39c1a6]!==_0x343a59('0x1b1')&&(this[_0x343a59('0x75')][_0x39c1a6][_0x343a59('0x10c')]===_0x343a59('0xe4')&&this['agents'][_0x39c1a6][_0x343a59('0x25')]===_0x343a59('0x4b')&&_0x56f9ff[_0x343a59('0x18')](this['agents'][_0x39c1a6]['id']));}this[_0x343a59('0x2')](_0x12a095['id'],_0x56f9ff,_0x10156d,_0x12a095[_0x343a59('0x1f3')])['then'](function(_0x628da5){const _0x5e6f56=_0x343a59;_0x12a095[_0x5e6f56('0xf1')]-=_0x10156d,_0x12a095[_0x5e6f56('0xf1')]=_0x12a095[_0x5e6f56('0xf1')]>0x0?_0x12a095[_0x5e6f56('0xf1')]:0x0;if(!checkContactEmpty(_0x628da5))_0x2e6303[_0x5e6f56('0x115')](_0x12a095)['then'](sendMessageReschedule(_0x12a095))[_0x5e6f56('0x155')](loggerCatch(_0x5e6f56('0x107')));else{_0x12a095[_0x5e6f56('0x10b')]+=_0x628da5[_0x5e6f56('0x13b')],_0x12a095[_0x5e6f56('0xa8')]=_0x12a095[_0x5e6f56('0x169')]===_0x5e6f56('0x185')?_0x5e6f56('0x189'):_0x5e6f56('0x24');for(let _0x225a1f=0x0;_0x225a1f<_0x628da5[_0x5e6f56('0x13b')];_0x225a1f+=0x1){_[_0x5e6f56('0x165')](_0x628da5[_0x225a1f])||_[_0x5e6f56('0x165')](_0x628da5[_0x225a1f][_0x5e6f56('0x4')])||_['isNil'](_0x628da5[_0x225a1f][_0x5e6f56('0x4')][_0x5e6f56('0x50')])?_0x2e6303['emptyContact'](_0x5e6f56('0xed'),_0x12a095,_0x628da5[_0x225a1f]):_0x2e6303['checkIsBlackList'](_['pick'](_0x628da5[_0x225a1f],['VoiceQueueId',_0x5e6f56('0x3f')]))[_0x5e6f56('0x7b')](_0x2e6303[_0x5e6f56('0x15a')](_0x12a095,_0x628da5[_0x225a1f]))[_0x5e6f56('0x155')](_0x2e6303[_0x5e6f56('0x1b2')](_0x5e6f56('0xed'),_0x12a095));}}})[_0x343a59('0x155')](loggerGetContactDialer(_0x343a59('0x45'),_0x12a095,_0x10156d));}},Dialer[_0x31ab94('0x1d')][_0x31ab94('0x1f')]=function(_0x4a37a2){const _0x3db4fb=_0x31ab94;if(_0x4a37a2[_0x3db4fb('0x5')]>0x0){const _0x512014=_0x4a37a2[_0x3db4fb('0x5')]-_0x4a37a2['originated']-_0x4a37a2[_0x3db4fb('0x126')];_0x512014>0x0?this[_0x3db4fb('0x54')](_0x4a37a2):loggerPredictiveCalls[_0x3db4fb('0x154')]('[handlePredictive][limitChannel]');}else this['tryOriginatePredictive'](_0x4a37a2);},Dialer[_0x31ab94('0x1d')]['tryOriginatePredictive']=function(_0x24c85c){const _0x358980=_0x31ab94,_0x57d7d5=this,_0x2dfb1b=[];_0x24c85c[_0x358980('0x10b')]+=0x1;for(const _0x4e323f in this[_0x358980('0x75')]){typeof this[_0x358980('0x75')][_0x4e323f]!==_0x358980('0x1b1')&&(this[_0x358980('0x75')][_0x4e323f][_0x358980('0x10c')]==='not_inuse'&&this['agents'][_0x4e323f]['status']==='reachable'&&_0x2dfb1b[_0x358980('0x18')](this[_0x358980('0x75')][_0x4e323f]['id']));}this[_0x358980('0x2')](_0x24c85c['id'],_0x2dfb1b,0x1,_0x24c85c['dialOrderByScheduledAt'])[_0x358980('0x7b')](function(_0x462441){const _0x18a22f=_0x358980;!checkContactEmpty(_0x462441)?(checkContactLowerLimitOriginate(_0x24c85c,0x1,0x0),_0x57d7d5[_0x18a22f('0x115')](_0x24c85c)[_0x18a22f('0x7b')](sendMessageReschedule(_0x24c85c))[_0x18a22f('0x155')](loggerCatch(_0x18a22f('0x107')))):(_0x24c85c[_0x18a22f('0xa8')]=_0x18a22f('0x24'),_[_0x18a22f('0x165')](_0x462441[0x0])||_[_0x18a22f('0x165')](_0x462441[0x0][_0x18a22f('0x4')])||_[_0x18a22f('0x165')](_0x462441[0x0]['Contact']['phone'])?_0x57d7d5['emptyContact']('[actionOriginate]\x20',_0x24c85c,_0x462441[0x0]):_0x57d7d5['checkIsBlackList'](_[_0x18a22f('0x18b')](_0x462441[0x0],[_0x18a22f('0x1c1'),_0x18a22f('0x3f')]))['then'](_0x57d7d5[_0x18a22f('0x15a')](_0x24c85c,_0x462441[0x0]))[_0x18a22f('0x155')](_0x57d7d5[_0x18a22f('0x1b2')](_0x18a22f('0x6d'),_0x24c85c)));})[_0x358980('0x155')](loggerGetContactDialer('[getContactDialerPredictive]',_0x24c85c,0x1)),emitVoiceQueueSummary(_0x24c85c);},Dialer[_0x31ab94('0x1d')][_0x31ab94('0x20d')]=function(_0x342627,_0x1fdc6b,_0x4ee1fb,_0x23e602,_0x1ce61e,_0x28c0a9){const _0x4ef73d=_0x31ab94;return loggerPredictive[_0x4ef73d('0x154')](_0x4ef73d('0x86')),loggerPredictive['info']('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',_0x342627),loggerPredictive['info']('Interval:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20',_0x1fdc6b),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',_0x4ee1fb),loggerPredictive[_0x4ef73d('0x154')](_0x4ef73d('0x58'),_0x23e602),loggerPredictive[_0x4ef73d('0x154')](_0x4ef73d('0x187'),_0x1ce61e),loggerPredictive['info'](_0x4ef73d('0x64')),new Promise(function(_0x37e3d3,_0x29588c){const _0x2869ed=_0x4ef73d;if(_0x342627<=0x0||isNaN(_0x342627))return _0x29588c(msgResponse(_0x2869ed('0x103'),_0x2869ed('0x29'),_0x2869ed('0xd4')+_0x342627));if(_0x4ee1fb<=0x0||isNaN(_0x4ee1fb))return _0x29588c(msgResponse(_0x2869ed('0x103'),_0x2869ed('0x29'),_0x2869ed('0x1eb')+_0x4ee1fb));if(_0x23e602<=0x0||isNaN(_0x23e602))return _0x29588c(msgResponse(_0x2869ed('0x103'),_0x2869ed('0x29'),_0x2869ed('0x39')+_0x23e602));if(_0x1fdc6b<=0x0||isNaN(_0x1fdc6b))return _0x29588c(msgResponse(_0x2869ed('0x103'),_0x2869ed('0x29'),_0x2869ed('0x1a6')+_0x1fdc6b));if(_0x1ce61e<=0x0||isNaN(_0x1ce61e))return _0x29588c(msgResponse(_0x2869ed('0x103'),_0x2869ed('0x29'),'Amax\x20=\x20'+_0x1ce61e));_0x28c0a9=_0x28c0a9||0x0;const _0x4661c9=0x1/_0x4ee1fb;let _0x1ad24f=0x0,_0x152861=0x0,_0x239873=0x0,_0x73e8f9=0x0,_0x26d136=0x0;for(_0x26d136=0x0;_0x239873<_0x1ce61e;_0x26d136+=0x1){_0x152861=_0x26d136/_0x1fdc6b,_0x1ad24f=(_0x23e602*_0x152861+_0x28c0a9)/_0x4661c9,_0x239873=erlangb(_0x1ad24f,_0x342627),_0x73e8f9=_0x1ad24f/_0x342627*(0x1-erlangb(_0x1ad24f,_0x342627));}return _0x37e3d3({'erlangCalls':_0x26d136,'erlangCallToSecond':_0x1fdc6b/_0x26d136,'erlangAbandonmentRate':_0x239873,'erlangBusyFactor':_0x73e8f9});});},Dialer[_0x31ab94('0x1d')][_0x31ab94('0xa')]=function(_0x1f158a,_0x1204be,_0x1a86d6,_0x519f06,_0x1d7ac1,_0x134794){const _0x190970=_0x31ab94;return loggerPredictive[_0x190970('0x154')](_0x190970('0x40')),loggerPredictive[_0x190970('0x154')](_0x190970('0x1d9'),_0x1f158a),loggerPredictive[_0x190970('0x154')](_0x190970('0x124'),_0x1204be),loggerPredictive[_0x190970('0x154')](_0x190970('0x8'),_0x1a86d6),loggerPredictive[_0x190970('0x154')](_0x190970('0x58'),_0x519f06),loggerPredictive['info']('Umin:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20',_0x1d7ac1),loggerPredictive['info'](_0x190970('0x64')),new Promise(function(_0x5733a1,_0x223743){const _0x583387=_0x190970;if(_0x1f158a<=0x0||isNaN(_0x1f158a))return _0x223743(msgResponse(_0x583387('0xde'),_0x583387('0x29'),_0x583387('0xd4')+_0x1f158a));if(_0x1a86d6<=0x0||isNaN(_0x1a86d6))return _0x223743(msgResponse(_0x583387('0xde'),_0x583387('0x29'),'Ts\x20=\x20'+_0x1a86d6));if(_0x519f06<=0x0||isNaN(_0x519f06))return _0x223743(msgResponse(_0x583387('0xde'),_0x583387('0x29'),_0x583387('0x39')+_0x519f06));if(_0x1204be<=0x0||isNaN(_0x1204be))return _0x223743(msgResponse(_0x583387('0xde'),_0x583387('0x29'),_0x583387('0x1a6')+_0x1204be));if(_0x1d7ac1<=0x0||isNaN(_0x1d7ac1))return _0x223743(msgResponse(_0x583387('0xde'),_0x583387('0x29'),'Umin\x20=\x20'+_0x1d7ac1));_0x134794=_0x134794||0x0;const _0x3c4ad9=0x1/_0x1a86d6;let _0x21bf0e=0x0,_0x1f3f68=0x0,_0x30f6a8=0x0,_0x1025dd=0x0,_0x5a6a88=0x0;for(_0x5a6a88=0x0;_0x1025dd<_0x1d7ac1;_0x5a6a88+=0x1){_0x1f3f68=_0x5a6a88/_0x1204be,_0x21bf0e=(_0x519f06*_0x1f3f68+_0x134794)/_0x3c4ad9,_0x30f6a8=erlangb(_0x21bf0e,_0x1f158a),_0x1025dd=_0x21bf0e/_0x1f158a*(0x1-erlangb(_0x21bf0e,_0x1f158a));}return _0x5733a1({'erlangCalls':_0x5a6a88,'erlangCallToSecond':_0x1204be/_0x5a6a88,'erlangAbandonmentRate':_0x30f6a8,'erlangBusyFactor':_0x1025dd});});},module[_0x31ab94('0xc9')]=Dialer; \ No newline at end of file +const a1221_0xd382=['dialOrderByScheduledAt','syncNewExten','syncOriginateResponse','[rescheduleContact][Abandoned]','locked','%s%s','[getContactDialer2][Empty]','[syncAgentComplete][createHistory][11]','HANGUP','dialNoAnswerMaxRetry','inBlackList','voice_queue:save','./history','[moveContactManagedDialer]\x20','predictiveIntervalAvgHoldtime','[abandonmentRate]','outboundDropCallsDayTimeout','[getContactDialer2][ReScheduled]','XMD-AMDINITIALSILENCE','recalculate\x20predictive\x20at','ifTime','countagentrejectretry','../../../config/environment/','object','exports','uniqueId','[stopMethodPredictive][ReStartProgressive][ExceededDropDay]','round','milliseconds','format','dialMachineMaxRetry','is\x20disactive','launchHandleIvr','erlangCalls','dialCongestionRetryFrequency','[syncAgentComplete][createHistory][3]','Queue','value','waiting','exten','INTERVAL_IS_NULL','[booked][RR]','rrmemory','ivrOriginated','xcally-motion-dialer','interval','iftime\x20%s,%s','fail\x20to\x20scheduled\x20calls','outboundUnknownCallsDay','agentreject','[unlockContact]\x20','uuid','isSuccess','updatedAt','outboundCongestionCallsDay','../rpc/voiceQueueRt','contactsId','ivrTotalCallsDays','Avg\x20Talk\x20Time\x20is\x20not\x20enough\x20for\x20predictive','countglobal','[getContactDialer2]','toUpper','predictive','NoSuchNumber','endtime','XMD-AMDSILENCETHRESHOLD','[rescheduleContact]\x20','Predictive\x20after\x20first\x20interval','contact\x20is\x20undefine','AMD','MACHINE','predictiveIntervalDroppedCallsCallersExit','Interval:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','agentconnect','catch','AgentReject','[rescheduleContact][NoAnswer]','syncAgentComplete','[decremetOriginate]\x20is\x20null\x20or\x20undefined','[syncQueueSummary]\x20Campaign\x20Ivr:\x20','buildObj','dialRandomLastDigitCallerIdNumber','checkIfTime','dialPredictiveOptimization','countbusyretry','startPredictive','dialAMDMinWordLength','replace','switch\x20in\x20progressive\x20because\x20available\x20agents\x20(','handlePredictive','moment','checkIsTrunkReachable','loopCampaigns','SIP/%s/%s%s','syncQueueCallerAbandon','reason19\x20machine....','\x22agi://%s/square,%s\x22','XMD-AMDAFTERGREETINGSILENCE','RecallFailedTimeout','[syncAgentComplete][createHistory][5]','IS_DISACTIVED','reason\x203\x20ringing\x20no\x20answer','AVAILABLE_CONTACTS_FINISHED','[booked][checkContactBlack][else]','./final','predictiveIntervalAvgTalktime','[syncHangupInAMDIvr]','talking','outboundAnswerCallsDay','\x20trunk\x20is\x20not\x20reachable','[originateError]:\x20%s','\x20INTERVAL_IS_NULL','reason\x205\x20busy','--------\x20Drop\x20Rate\x20--------','dialNoSuchNumberMaxRetry','Scheduled\x20Calls:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','TrunkBackup','agents','[averageHandleTime]\x20','campaign:ivr:%s','erlangAbandonmentRate','[getDataPredictive]','queue','match','one\x20call\x20every:','clearing\x20variable\x20start\x20progressive','countnoanswerretry','dialMethod','interval\x20=\x20','callerid','queueCallerAbandonCreateState','custom:agentbusy','type','custom:agentnosuchnumber','syncVarSet','check\x20failure','outboundNoAnswerCallsDay','outboundOriginateFailureCallsDay','status','erlangBusyFactor','../rpc/cmHopperBlack','info','m\x20=\x20','M:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','[rescheduleContact][NoSuchNumber]','stringify','prototype','getVoiceQueueRtPauses','started\x20in\x20predictive\x20at','XMD-AMDGREETING','agiafterat','AGI','actionOriginate','dialQueueTimeout','queuestatuscomplete','[stopMethodPredictive][ReStartProgressive][ExceededDropInterval]','Ts\x20=\x20','outboundQueuePauses','checkRetriveMax','campaign:save','[actionOriginatePredictive]\x20','dialAMDMaximumWordLength','[syncAgentComplete][createHistory][?]','dialActive','CALLEREXIT','ListId','dialPrefix','dialDropMaxRetry','originate','command','starttime','calleridname','isUndefined','Contact','countdropretry','Predictive\x20for\x20every\x20interval','p\x20=\x20','[startMethodPredictive][StartProgressive][Loop]','stateGlobal','string','getCaller','sumBillable','droptime','erlangCallToSecond','contactsRescheduled','pick','[unlockQueueStatus][undefined]','emptyContact','ACTIVE','checkDialMethod','bind','error','dialCutDigit','syncQueueSummary','dialQueueProject','dialOriginateCallerIdNumber','answered','startMethodPredictive','custom:agentnoanswer','maxNumberOriginate','AGENTS_NOT_LOGGED','Umin\x20=\x20','../preview/util/util','RESCHEDULED_CONTACTS','reason\x2019\x20machine....','channel','total','startProgressive','getContactDialer','[Dialer][checkChannel]','isNil','congestion','[unlock][syncQueueStatusComplete]','[booked][unlock2]','dialGlobalInterval','abandonmentRate','dialLimitQueue','getDataPredictive','dialAMDGreeting','Drop\x20in\x20this\x20interval','sumHoldTime','unlockRR','check\x20handlePredictive\x20is\x20not\x20undefine','syncAgentConnect','content','checkContactBlack','[originate][error]','add','rescheduleContact','syncQueueStatusComplete','queueStatusComplete:\x20','finally','countabandonedretry','\x22%s\x22\x20<%s>','contact\x20not\x20moved','tags','Interval','Failure','paused','queueBooked','[syncCampaigns]','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','countReScheduled','Max\x20Drop\x20','voicePause','loggedIn','Contact.phone','[ifTime][Action]','unmonitored','[CatchErlangB]','dialQueueOptions','phone','getContactDialerIvr','countcongestionretry','not_inuse','reachable','indexOf','./agentComplete','[uniqueid]','queueBookedRR','[booked][unlock3]','syncQueueMember','[syncAgentComplete]','Timezone:\x20','predictiveIntervalTotalCalls','active','dialNoAnswerRetryFrequency','_rr','No\x20such\x20channel','channels','length','ContactId','[getVoiceQueueRtPauses]\x20','recallme','dialAbandonedRetryFrequency','[Catch][Preview][syncQueueStatusComplete]','dialAMDAfterGreetingSilence','[moveContactManagedDialer][0]','predictiveIntervalMinThreshold','Amax:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','tryOriginatePredictive','\x20Intervals\x20is\x20empty\x20','outboundBlacklistCallsDay','originateresponse','History\x20information\x20are\x20empty','predictiveIntervalErlangCallsDroppedCalls','[booked][unlock]','callProgressDetecting','predictiveIntervalMultiplicativeFactor','dialAMDActive','undefined','updateOriginated','booked','voiceQueue\x20is\x20undefine','[rescheduleContact]\x20[Congestion]','[startMethodPredictive][StartProgressive]','campaigns','Contact\x20updated','XMD-','dialOriginateCallerIdName','membername','optionPredictive','dialMachineRetryFrequency','checkIfTimeIntervals','XMD-AMDTOTALANALYSISTIME','[emptyContact]','syncHangup','[unlock3][syncQueueStatusComplete]','floor','trim','XMD-AMDBETWEENWORDSSILENCE','merge','avgHandleTime','NoAnswer','Total\x20Calls\x20are\x20not\x20enough\x20for\x20predictive','dialPredictiveOptimizationPercentage','UserId','nosuchnumber','agentcomplete','Umin:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','outboundReCallsDay','util','[rescheduleContact]\x20[Busy]','[getContactCampaign2]','[ifTime][promiseAll]','voiceQueues','predictiveIntervalAvailable','sendMessageOneNotActive','averageHandleTime','XMD-AMDMAXIMUMNUMBEROFWORDS','handlePower','countmachineretry','Agent','state','roundrobin','isEmpty','[syncHangupInAMD]','RUNNING','HangupInAMD','agentBusyFactor',')\x20are\x20less\x20than\x20threshold\x20(','Avg\x20Hold\x20Time\x20is\x20not\x20enough\x20for\x20predictive','dialer','queuecallerabandon','dialDropRetryFrequency','Dropped\x20Timeout:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','pTalking','reason','Dropped\x20calls\x20day','isTrunkReachable','dialAMDTotalAnalysisTime','\x20Interval\x20is\x20overtime:\x20','Error','reason\x200\x20no\x20such\x20number....','outboundAnswerAgiCallsDay','seconds','temp','predictiveIntervalDroppedCallsTimeout','[emptyContact][createHistory]','\x20Timezone\x20unknow\x20','contactAgent-idHopper:\x20','agent','calleridnum','available','Success','Machine','stateinterface','originatecalleridnum','busyFactor','originated','dialCongestionMaxRetry','[booked][unlockQueueStatus]','GLOBAL_INTERVAL_IS_OVERTIME','dialAMDSilenceThreshold','unmanaged','dialPredictiveInterval','evt\x20is\x20undefine','substring','./hangup','Agent:\x20','tail','loggerHandler','[Originate][HistoryRecallClose]','predictiveIntervalAnsweredCalls','[actionOriginate]\x20','CampaignId','clearZombieChannels','Congestion','actions','Agent\x20Busy\x20Factor:\x20\x20\x20\x20\x20\x20\x20\x20\x20','createStateFinal','reason\x2020\x20agentreject','dialBusyMaxRetry','[actionOriginateIvr]\x20','dropRate','outboundDropCallsDayCallersExit','md5','message','[syncHangupInAMD][createHistory]','predictiveIntervalHitRate','minutes','../rpc/cmHopperHistory','[busyFactor]','custom:agentreject','preview','VoiceQueueId','busy','dialAbandonedMaxRetry','reason\x208\x20congestion','run','XMD-AMDMINWORDLENGTH','uniqueid','dialTimezone','diff','name','Amax\x20=\x20','dialQueueProject2','TIMEOUT','[checkIsBlackList]\x20','createHistory','[getContactDialer]\x20','noanswer','[countReScheduled]\x20','SIP/%s','syncCampaigns','checkIsBlackList','then','outboundNoSuchCallsDay','inspect','clearing\x20variable\x20start\x20predictive','custom:agentcongestion','loopClearZombieChannels','../rpc/cmHopper','AVG\x20Talk\x20Time:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','strategy','resolve','actionid','One\x20call\x20every:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','RECALLINQUEUE','abandoned','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','dialAgentRejectRetryFrequency','trunks','queuestatus','NONE','[syncAgentComplete][createHistory][10]','getDataPredictiveOld','\x20Intervals\x20is\x20null\x20','countnosuchnumberretry','outbound','RecallInQueue','INTERVAL_IS_OVERTIME','[checkIsBlackListIvr]\x20','idHopper','outboundDropCallsDayACS','isArray','[syncAgentComplete][createHistory]','[decremetOriginate]\x20object\x20originated\x20is\x20negative','dialGlobalMaxRetry','statedesc','notFound','Action','[handlePredictive][limitChannel]','[rescheduleContact][AgentReject]','queueStatusComplete','dialAMDMaximumNumberOfWords','Busy','\x22%s,%s%s,,,%s\x22','[syncHangupIvr][createHistory]','[syncAgentComplete][createHistory][20]','YYYY-MM-DD\x20HH:mm:ss','progressive','Global:\x20','Intervals','clearing\x20variable\x20handle\x20predictive','from-sip','dialAMDInitialSilence','originate\x20action\x20Error','variable','predictiveIntervalPauses','[syncQueueSummary]\x20Campaign\x20Queue:\x20','-----\x20Stats\x20Predictive\x20---','cause-txt','saveInDb','[syncHangupInAMDIvr][createHistory]','createdAt','[rescheduleContact][Machine]','getQueue','responsetime','[callProgressDetecting]\x20','../../../config/logger','dialAMDBetweenWordsSilence','response','../../../config/config.service','Abandoned','\x20NOT\x20Active','answertime','Queue:\x20','amd','[actions]','XMD-VOICEQUEUEID','[syncHangupIvr]','unlockContact','[syncAgentComplete][createHistory][8]','scheduledat','outboundBusyCallsDay','dialAgiAfterHangupAgent','Drop\x20Rate:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','[callProgressDetecting]','ivr','sequence','[syncAgentComplete][createHistory][0]','dialAgentRejectMaxRetry','[Originate][historyBlacklist]','../../../rediscache','----\x20Agent\x20Busy\x20Factor\x20----','Unknown\x20Predictive','dropreason','ivrAnswerCallsDay','timezones','emit','[rescheduleContact][dialRecallInQueue]','\x5cw{0,','moveContactManagedDialer','push','dialRecallInQueue','handleIvr','Trunk','reason\x2011\x20abandoned','---------------------------','checkIsBlackListIvr'];(function(_0x2fa5b0,_0x139095){const _0xd382a3=function(_0x14aec4){while(--_0x14aec4){_0x2fa5b0['push'](_0x2fa5b0['shift']());}};_0xd382a3(++_0x139095);}(a1221_0xd382,0xaf));const a1221_0x14ae=function(_0x2fa5b0,_0x139095){_0x2fa5b0=_0x2fa5b0-0x18a;let _0xd382a3=a1221_0xd382[_0x2fa5b0];return _0xd382a3;};const a1221_0x3ebab2=a1221_0x14ae;'use strict';const util=require(a1221_0x3ebab2(0x21c)),_=require('lodash'),uuid=require(a1221_0x3ebab2(0x321)),moment=require(a1221_0x3ebab2(0x348)),rr=require('rr'),md5=require('md5'),ut=require(a1221_0x3ebab2(0x1a5)),config=require(a1221_0x3ebab2(0x304)),logger=require(a1221_0x3ebab2(0x2c5))(a1221_0x3ebab2(0x231)),loggerBooked=require(a1221_0x3ebab2(0x2c5))(a1221_0x3ebab2(0x1ff)),loggerPredictive=require(a1221_0x3ebab2(0x2c5))(a1221_0x3ebab2(0x32c)),loggerPredictiveCalls=require(a1221_0x3ebab2(0x2c5))('predictiveCalls'),loggerSyncQueueSummary=require('../../../config/logger')(a1221_0x3ebab2(0x19c)),ami=require('../ami'),{getSocket}=require(a1221_0x3ebab2(0x2dd)),io=getSocket(),cmHopper=require(a1221_0x3ebab2(0x28b)),cmHopperHistory=require(a1221_0x3ebab2(0x26c)),cmHopperBlack=require(a1221_0x3ebab2(0x37a)),voiceQueueRt=require(a1221_0x3ebab2(0x325)),Action=require('./action'),History=require(a1221_0x3ebab2(0x2fa)),Final=require(a1221_0x3ebab2(0x356)),AgentComplete=require(a1221_0x3ebab2(0x1dc)),QueueCallerAbandon=require('./queueCallerAbandon'),Hangup=require(a1221_0x3ebab2(0x255)),{getConfigService}=require(a1221_0x3ebab2(0x2c8)),strategy={'rrmemory':a1221_0x3ebab2(0x318),'roundrobin':a1221_0x3ebab2(0x229)},Sequence=function(){};Sequence[a1221_0x3ebab2(0x380)]['enqueue']=function(_0x8e3721){const _0x27c477=a1221_0x3ebab2;this[_0x27c477(0x257)]=this[_0x27c477(0x257)]?this[_0x27c477(0x257)][_0x27c477(0x1c2)](_0x8e3721):_0x8e3721();};function Dialer(_0x263788,_0xd58438){const _0x19291b=a1221_0x3ebab2;this[_0x19291b(0x2d9)]=new Sequence(),this[_0x19291b(0x26f)]=_0xd58438,this[_0x19291b(0x220)]=_0x263788[_0x19291b(0x220)],this['campaigns']=_0x263788['campaigns'],this[_0x19291b(0x363)]=_0x263788[_0x19291b(0x363)],this['trunks']=_0x263788[_0x19291b(0x295)],this[_0x19291b(0x1a2)]=config[_0x19291b(0x1a2)]||0x2,this[_0x19291b(0x1e8)]={},this[_0x19291b(0x25f)]={},this[_0x19291b(0x326)]={},this[_0x19291b(0x307)]={},this[_0x19291b(0x208)]={},this['startPredictive']={},this[_0x19291b(0x1aa)]={},this[_0x19291b(0x319)]={},this[_0x19291b(0x1ca)]={},this['queueBookedRR']={},ami['on'](_0x19291b(0x337),this[_0x19291b(0x1ba)][_0x19291b(0x199)](this)),ami['on'](_0x19291b(0x232),this[_0x19291b(0x34c)][_0x19291b(0x199)](this)),ami['on'](_0x19291b(0x1f6),this['syncOriginateResponse'][_0x19291b(0x199)](this)),ami['on'](_0x19291b(0x219),this[_0x19291b(0x33b)]['bind'](this)),ami['on']('custom:queuesummary',this[_0x19291b(0x19c)]['bind'](this)),ami['on']('hangup',this[_0x19291b(0x20d)][_0x19291b(0x199)](this)),ami['on']('newexten',this[_0x19291b(0x2ef)][_0x19291b(0x199)](this)),ami['on']('varset',this[_0x19291b(0x374)][_0x19291b(0x199)](this)),ami['on']('queuemember',this[_0x19291b(0x1e0)][_0x19291b(0x199)](this)),ami['on'](_0x19291b(0x388),this['syncQueueStatusComplete'][_0x19291b(0x199)](this)),this[_0x19291b(0x34a)](),this['loopClearZombieChannels']();}function isNotNull(_0x3540d7){const _0x3ded44=a1221_0x3ebab2;return _0x3540d7!==null&&!_[_0x3ded44(0x39a)](_0x3540d7);}function checkIsLoggedIn(_0x3543b1,_0x46ee2b){return function(){const _0x198eb8=a1221_0x14ae;if(_0x46ee2b<=0x0){_0x3543b1[_0x198eb8(0x268)]=_0x198eb8(0x1a3);throw _0x3543b1[_0x198eb8(0x279)]+'\x20AGENTS\x20NOT\x20LOGGED';}};}function isActive(_0x157029){return _0x157029;}function checkIsActive(_0x9c3d25,_0x3f0392){return function(){const _0x52ebec=a1221_0x14ae;if(!isActive(_0x3f0392)){_0x9c3d25['message']='NOT_ACTIVE';throw _0x9c3d25['name']+_0x52ebec(0x2ca);}};}function checkInterval(_0x799a64){return function(){const _0x43096d=a1221_0x14ae;if(!isNotNull(_0x799a64['Interval'])){_0x799a64[_0x43096d(0x268)]=_0x43096d(0x316);throw _0x799a64[_0x43096d(0x279)]+'\x20INTERVAL_IS_NULL';}if(!isNotNull(_0x799a64[_0x43096d(0x1c7)][_0x43096d(0x2b4)])){_0x799a64['message']=_0x43096d(0x316);throw _0x799a64['name']+_0x43096d(0x35d);}if(!isNotNull(_[_0x43096d(0x22a)](_0x799a64[_0x43096d(0x1c7)]['Intervals']))){_0x799a64[_0x43096d(0x268)]=_0x43096d(0x316);throw _0x799a64['name']+'\x20INTERVAL_IS_NULL';}};}function msgResponse(_0x8117c4,_0xabefb8,_0x4bf9ff){return{'action':_0x8117c4,'response':_0xabefb8,'message':_0x4bf9ff,'stack':_0x4bf9ff};}function myreject(_0x238209){return function(_0x3b6005){const _0x3a6ed1=a1221_0x14ae;return _0x238209(msgResponse(_0x3a6ed1(0x1d2),_0x3a6ed1(0x23b),JSON[_0x3a6ed1(0x37f)](_0x3b6005)));};}function getSeconds(_0x544e8f,_0xb0f51a){const _0xdff8f3=a1221_0x3ebab2,_0x34f003=moment(_0x544e8f)[_0xdff8f3(0x30a)](0x0),_0x31f356=moment(_0xb0f51a)['milliseconds'](0x0);return _0x34f003[_0xdff8f3(0x278)](_0x31f356,_0xdff8f3(0x23e));}function emit(_0x55a89b,_0x45dea0,_0x193059){const _0x555ee9=a1221_0x3ebab2;io['to'](_0x55a89b)[_0x555ee9(0x2e3)](_0x45dea0,_0x193059);}function emitVoiceQueueSummary(_0x566455){const _0x4caa5d=a1221_0x3ebab2;if(_0x566455['type']===_0x4caa5d(0x29c)){const _0x40e311={'id':_0x566455['id'],'name':_0x566455[_0x4caa5d(0x279)],'strategy':_0x566455[_0x4caa5d(0x28d)],'answered':_0x566455[_0x4caa5d(0x19f)],'available':_0x566455[_0x4caa5d(0x246)],'loggedIn':_0x566455[_0x4caa5d(0x1d0)],'pTalking':_0x566455['pTalking'],'sumBillable':_0x566455[_0x4caa5d(0x190)],'sumDuration':_0x566455['sumDuration'],'sumHoldTime':_0x566455[_0x4caa5d(0x1b7)]||0x0,'talking':_0x566455[_0x4caa5d(0x359)],'total':_0x566455[_0x4caa5d(0x1a9)],'type':_0x566455[_0x4caa5d(0x372)],'unmanaged':_0x566455[_0x4caa5d(0x251)],'abandoned':_0x566455[_0x4caa5d(0x292)],'waiting':_0x566455[_0x4caa5d(0x314)],'loggedInDb':_0x566455['loggedInDb'],'dialActive':_0x566455[_0x4caa5d(0x391)],'dialMethod':_0x566455[_0x4caa5d(0x36d)],'dialOriginateCallerIdName':_0x566455[_0x4caa5d(0x206)],'dialOriginateCallerIdNumber':_0x566455[_0x4caa5d(0x19e)],'dialOriginateTimeout':_0x566455['dialOriginateTimeout'],'dialPrefix':_0x566455[_0x4caa5d(0x394)],'outboundAnswerAgiCallsDay':_0x566455[_0x4caa5d(0x23d)],'outboundAnswerCallsDay':_0x566455[_0x4caa5d(0x35a)],'outboundBlacklistCallsDay':_0x566455[_0x4caa5d(0x1f5)],'outboundBusyCallsDay':_0x566455[_0x4caa5d(0x2d4)],'outboundCongestionCallsDay':_0x566455[_0x4caa5d(0x324)],'outboundDropCallsDayACS':_0x566455[_0x4caa5d(0x2a1)],'outboundDropCallsDayCallersExit':_0x566455[_0x4caa5d(0x266)],'outboundDropCallsDayTimeout':_0x566455['outboundDropCallsDayTimeout'],'outboundNoAnswerCallsDay':_0x566455[_0x4caa5d(0x376)],'outboundNoSuchCallsDay':_0x566455['outboundNoSuchCallsDay'],'outboundOriginateFailureCallsDay':_0x566455[_0x4caa5d(0x377)],'outboundReCallsDay':_0x566455[_0x4caa5d(0x21b)],'outboundRejectCallsDay':_0x566455['outboundRejectCallsDay'],'outboundUnknownCallsDay':_0x566455[_0x4caa5d(0x31e)],'predictiveIntervalAnsweredCalls':_0x566455[_0x4caa5d(0x25a)],'predictiveIntervalAvgHoldtime':_0x566455['predictiveIntervalAvgHoldtime'],'predictiveIntervalAvgTalktime':_0x566455[_0x4caa5d(0x357)],'predictiveIntervalDroppedCallsCallersExit':_0x566455['predictiveIntervalDroppedCallsCallersExit'],'predictiveIntervalDroppedCallsTimeout':_0x566455[_0x4caa5d(0x240)],'predictiveIntervalErlangCalls':_0x566455['predictiveIntervalErlangCalls'],'predictiveIntervalErlangCallsDroppedCalls':_0x566455['predictiveIntervalErlangCallsDroppedCalls'],'predictiveIntervalHitRate':_0x566455[_0x4caa5d(0x26a)],'predictiveIntervalMultiplicativeFactor':_0x566455[_0x4caa5d(0x1fb)],'predictiveIntervalPauses':_0x566455[_0x4caa5d(0x2ba)],'predictiveIntervalAvailable':_0x566455[_0x4caa5d(0x221)],'predictiveIntervalTotalCalls':_0x566455[_0x4caa5d(0x1e3)],'message':_0x566455[_0x4caa5d(0x268)],'originated':_0x566455[_0x4caa5d(0x24c)],'erlangCalls':_0x566455[_0x4caa5d(0x30f)],'erlangCallToSecond':_0x566455['erlangCallToSecond'],'erlangAbandonmentRate':_0x566455[_0x4caa5d(0x366)],'erlangBusyFactor':_0x566455[_0x4caa5d(0x379)],'startPredictive':_0x566455[_0x4caa5d(0x343)],'startProgressive':_0x566455[_0x4caa5d(0x1aa)]};_0x566455['Trunk']&&(_0x40e311[_0x4caa5d(0x2ea)]={'id':_0x566455[_0x4caa5d(0x2ea)]['id'],'name':_0x566455[_0x4caa5d(0x2ea)][_0x4caa5d(0x279)],'active':_0x566455[_0x4caa5d(0x2ea)]['active'],'callerid':_0x566455[_0x4caa5d(0x2ea)][_0x4caa5d(0x36f)]});_0x566455[_0x4caa5d(0x1c7)]&&(_0x40e311[_0x4caa5d(0x1c7)]={'id':_0x566455[_0x4caa5d(0x1c7)]['id'],'name':_0x566455[_0x4caa5d(0x1c7)][_0x4caa5d(0x279)]});const _0x47b642=md5(JSON[_0x4caa5d(0x37f)](_0x40e311));_0x566455[_0x4caa5d(0x267)]!==_0x47b642&&(_0x566455[_0x4caa5d(0x267)]=_0x47b642,emit(util[_0x4caa5d(0x30b)]('voice:queue:%s',_0x40e311['name']),_0x4caa5d(0x2f9),_0x40e311));}}function emitCampaignSummary(_0x5ee488){const _0x5f03e9=a1221_0x3ebab2;_0x5ee488[_0x5f03e9(0x372)]===_0x5f03e9(0x2d8)&&emit(util[_0x5f03e9(0x30b)](_0x5f03e9(0x365),_0x5ee488[_0x5f03e9(0x279)]),_0x5f03e9(0x38d),_0x5ee488);}function checkGetDataPredictive(_0x4d2897){const _0x23ece8=a1221_0x3ebab2;if(isNotNull(_0x4d2897)){if(!_['isEmpty'](_0x4d2897)){loggerPredictive['info'](_0x23ece8(0x2bc)),loggerPredictive[_0x23ece8(0x37b)]('Total\x20Calls:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20',_0x4d2897['predictiveIntervalTotalCalls']),loggerPredictive[_0x23ece8(0x37b)]('Answered\x20Calls:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20',_0x4d2897['predictiveIntervalAnsweredCalls']),loggerPredictive[_0x23ece8(0x37b)](_0x23ece8(0x234),_0x4d2897['predictiveIntervalDroppedCallsTimeout']),loggerPredictive[_0x23ece8(0x37b)]('Dropped\x20Exit:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20',_0x4d2897['predictiveIntervalDroppedCallsCallersExit']),loggerPredictive['info']('AVG\x20Hold\x20Time:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20',_0x4d2897[_0x23ece8(0x2fc)]),loggerPredictive[_0x23ece8(0x37b)](_0x23ece8(0x28c),_0x4d2897['predictiveIntervalAvgTalktime']),loggerPredictive[_0x23ece8(0x37b)](_0x23ece8(0x2ec));if(_0x4d2897[_0x23ece8(0x1e3)]>0x0){if(!_[_0x23ece8(0x39a)](_0x4d2897['predictiveIntervalAvgTalktime'])&&_0x4d2897[_0x23ece8(0x357)]>0x0)return!![];else loggerPredictive['info'](_0x23ece8(0x328));if(!_[_0x23ece8(0x39a)](_0x4d2897[_0x23ece8(0x2fc)])&&_0x4d2897[_0x23ece8(0x2fc)]>0x0)return!![];else loggerPredictive['info'](_0x23ece8(0x230));}else loggerPredictive[_0x23ece8(0x37b)](_0x23ece8(0x215));}else loggerPredictive[_0x23ece8(0x37b)](_0x23ece8(0x1f7));}else loggerPredictive[_0x23ece8(0x37b)]('History\x20information\x20are\x20empty');return![];}function mergeDataErlangB(_0x32346c){return function(_0x352145){const _0x1764aa=a1221_0x14ae;loggerPredictive[_0x1764aa(0x37b)]('---------\x20ErlangB\x20---------'),loggerPredictive[_0x1764aa(0x37b)](_0x1764aa(0x361),_0x352145[_0x1764aa(0x30f)]),loggerPredictive[_0x1764aa(0x37b)](_0x1764aa(0x290),_0x352145[_0x1764aa(0x192)]),loggerPredictive['info'](_0x1764aa(0x2d6),_0x352145['erlangAbandonmentRate']),loggerPredictive[_0x1764aa(0x37b)](_0x1764aa(0x260),_0x352145[_0x1764aa(0x379)]),loggerPredictive['info'](_0x1764aa(0x2d6),_0x352145[_0x1764aa(0x366)]),loggerPredictive['info'](_0x1764aa(0x2ec)),_[_0x1764aa(0x212)](_0x32346c,_0x352145);};}function getDiff(_0x382ef4){const _0x5dab01=a1221_0x3ebab2,_0x539563=moment()[_0x5dab01(0x30a)](0x0),_0x2e79e6=moment(_0x382ef4)['milliseconds'](0x0);return _0x539563['diff'](_0x2e79e6,_0x5dab01(0x23e));}function ifInterval(_0x503e61,_0x1d5d0a){if(_['isUndefined'](_0x1d5d0a))return![];return getDiff(_0x1d5d0a)<_0x503e61*0x3c?!![]:![];}function freeVariablesPredictive(_0x220b87){const _0x143680=a1221_0x3ebab2;isNotNull(_0x220b87)&&(!_[_0x143680(0x39a)](_0x220b87[_0x143680(0x1aa)])&&(_0x220b87[_0x143680(0x1aa)]=undefined,loggerPredictive['info'](_0x220b87[_0x143680(0x279)],_0x143680(0x36b))),!_[_0x143680(0x39a)](_0x220b87[_0x143680(0x343)])&&(_0x220b87['startPredictive']=undefined,loggerPredictive[_0x143680(0x37b)](_0x220b87[_0x143680(0x279)],_0x143680(0x288))),!_[_0x143680(0x39a)](_0x220b87[_0x143680(0x347)])&&(clearInterval(_0x220b87['handlePredictive']),_0x220b87[_0x143680(0x347)]=undefined,loggerPredictive[_0x143680(0x37b)](_0x220b87[_0x143680(0x279)],_0x143680(0x2b5))));}function erlangb(_0x4b1755,_0x14bdaa){if(_0x14bdaa===0x0)return 0x0;let _0x572cb9=0x1;for(let _0x2e09d4=0x1;_0x2e09d4<=_0x14bdaa;_0x2e09d4+=0x1){_0x572cb9=0x1+_0x572cb9*_0x2e09d4/_0x4b1755;}return 0x1/_0x572cb9;}function isVoiceQueueOutbound(_0x2b45b0){return _0x2b45b0==='outbound';}function isNotPreview(_0x4afa56){const _0x2d73c5=a1221_0x3ebab2;return _0x4afa56!==_0x2d73c5(0x26f);}function isCampaignIvr(_0x3568ee){const _0x48b8b5=a1221_0x3ebab2;return _0x3568ee===_0x48b8b5(0x2d8);}function getCallerId(_0x38a7ea,_0x540cdb,_0x169c80){const _0x40684c=a1221_0x3ebab2;if(!_[_0x40684c(0x39a)](_0x169c80)&&_0x40684c(0x18e)===typeof _0x169c80&&!_['isEmpty'](_0x169c80)){if(!_[_0x40684c(0x39a)](_0x540cdb)&&_0x40684c(0x18e)===typeof _0x540cdb&&!_[_0x40684c(0x22a)](_0x540cdb))return util[_0x40684c(0x30b)](_0x40684c(0x1c4),_0x540cdb,_0x169c80);return util[_0x40684c(0x30b)]('\x22%s\x22\x20<%s>',_0x169c80,_0x169c80);}if(!_[_0x40684c(0x39a)](_0x38a7ea)&&_0x40684c(0x18e)===typeof _0x38a7ea&&!_[_0x40684c(0x22a)](_0x38a7ea))return _0x38a7ea;return'\x22\x22\x20<>';}function loggerCatchQueueSummary(_0x36a07a,_0x60b08f){return function(_0x32cfb6){const _0x214d6b=a1221_0x14ae;freeVariablesPredictive(_0x60b08f),emitVoiceQueueSummary(_0x60b08f),emitCampaignSummary(_0x60b08f),loggerSyncQueueSummary[_0x214d6b(0x19a)](_0x36a07a,util['inspect'](_0x32cfb6,{'showHidden':![],'depth':null}));};}function loggerCatchPredictive(_0x56f85a,_0x5baf6c){return function(_0x46413f){const _0x47e397=a1221_0x14ae;loggerPredictive[_0x47e397(0x19a)](_0x5baf6c[_0x47e397(0x279)],_0x56f85a),loggerPredictive[_0x47e397(0x19a)](_0x46413f['stack']),freeVariablesPredictive(_0x5baf6c);};}function loggerCatch(_0x2b632c){return function(_0x3ef352){const _0x33238=a1221_0x14ae;logger[_0x33238(0x19a)](_0x2b632c,util[_0x33238(0x287)](_0x3ef352,{'showHidden':![],'depth':null}));};}function checkContactEmpty(_0x93d40){const _0x5096d6=a1221_0x3ebab2;return _0x93d40&&!_[_0x5096d6(0x39a)](_0x93d40)&&_0x93d40[_0x5096d6(0x1e9)]>0x0;}function decremetOriginate(_0x182e72){const _0x2f45df=a1221_0x3ebab2;!_[_0x2f45df(0x39a)](_0x182e72)&&_0x182e72!==null?typeof _0x182e72[_0x2f45df(0x24c)]!=='undefined'&&(_0x182e72['originated']>0x0?_0x182e72[_0x2f45df(0x24c)]-=0x1:logger['error'](_0x2f45df(0x2a4))):logger[_0x2f45df(0x19a)](_0x2f45df(0x33c));}function checkContactLowerLimitOriginate(_0x35e48a,_0x120a95,_0x2c40fd){if(_0x120a95>_0x2c40fd)for(let _0x5b112e=0x0;_0x5b112e<_0x120a95-_0x2c40fd;_0x5b112e+=0x1){decremetOriginate(_0x35e48a);}}function loggerGetContactDialer(_0x2ec727,_0x325a6c,_0x1bb90d){return function(_0xe637e1){const _0x1625a2=a1221_0x14ae;checkContactLowerLimitOriginate(_0x325a6c,_0x1bb90d,0x0),logger[_0x1625a2(0x19a)](_0x2ec727,util[_0x1625a2(0x287)](_0xe637e1,{'showHidden':![],'depth':null}));};}function sendMessageReschedule(_0x221a6d){return function(_0x133d00){const _0x5ce68e=a1221_0x14ae;isNotNull(_0x133d00)&&isNotNull(_0x133d00[0x0])&&(_0x133d00[0x0][_0x5ce68e(0x193)]>0x0?(_0x221a6d[_0x5ce68e(0x268)]=_0x5ce68e(0x1a6),logger[_0x5ce68e(0x37b)](_0x5ce68e(0x2ff)+_0x221a6d['name'],_0x133d00[0x0][_0x5ce68e(0x193)],'contacts')):(_0x221a6d['message']=_0x5ce68e(0x354),logger[_0x5ce68e(0x37b)](_0x5ce68e(0x2f4)+_0x221a6d[_0x5ce68e(0x279)])));};}function notSendMessagesQueue(_0xc1fb27){const _0x48f2ce=a1221_0x3ebab2;_0xc1fb27['sendMessageOneNotActive']&&(freeVariablesPredictive(_0xc1fb27),_0xc1fb27[_0x48f2ce(0x24c)]===0x0&&_0xc1fb27[_0x48f2ce(0x359)]===0x0&&_0xc1fb27[_0x48f2ce(0x314)]===0x0&&(_0xc1fb27['pTalking']||0x0)===0x0?(_0xc1fb27[_0x48f2ce(0x222)]=![],_0xc1fb27[_0x48f2ce(0x246)]=0x0,_0xc1fb27[_0x48f2ce(0x268)]='NOT_ACTIVE',loggerSyncQueueSummary['error'](_0x48f2ce(0x2bb),_0xc1fb27[_0x48f2ce(0x279)],'is\x20not\x20active')):(_0xc1fb27[_0x48f2ce(0x268)]=_0x48f2ce(0x352),loggerSyncQueueSummary[_0x48f2ce(0x19a)](_0x48f2ce(0x2bb),_0xc1fb27[_0x48f2ce(0x279)],_0x48f2ce(0x30d))),emitVoiceQueueSummary(_0xc1fb27));}function notSendMessagesCampaign(_0x45001c){const _0x26145b=a1221_0x3ebab2;_0x45001c[_0x26145b(0x222)]&&(_0x45001c['originated']===0x0?(_0x45001c[_0x26145b(0x222)]=![],_0x45001c[_0x26145b(0x268)]='NOT_ACTIVE',loggerSyncQueueSummary[_0x26145b(0x19a)](_0x26145b(0x33d),_0x45001c[_0x26145b(0x279)],'is\x20not\x20active')):(_0x45001c[_0x26145b(0x268)]=_0x26145b(0x352),loggerSyncQueueSummary[_0x26145b(0x19a)](_0x26145b(0x33d),_0x45001c[_0x26145b(0x279)],_0x26145b(0x30d))),emitCampaignSummary(_0x45001c));}function createObjHistory(_0x2dfb20,_0x57408f,_0x2a3978,_0x12813c,_0x363ce0){const _0x2f7da6=a1221_0x3ebab2;_0x2dfb20['message']=_0x2a3978;const _0x4c5e51=new Action(_0x2dfb20,_0x57408f),_0x204b5e=new History(_0x4c5e51);return _0x204b5e[_0x2f7da6(0x228)]=_0x12813c,_0x204b5e[_0x2f7da6(0x2a6)]=_0x363ce0,_0x204b5e[_0x2f7da6(0x32e)]=_0x4c5e51[_0x2f7da6(0x398)],_0x204b5e;}Dialer['prototype'][a1221_0x3ebab2(0x28a)]=function(){const _0x45a9b1=this;setInterval(function(){const _0x15116a=a1221_0x14ae;_0x45a9b1[_0x15116a(0x25d)](_0x45a9b1[_0x15116a(0x307)],_0x15116a(0x1dd)),_0x45a9b1['clearZombieChannels'](_0x45a9b1['actions'],_0x15116a(0x2ce));},0x32c8);},Dialer[a1221_0x3ebab2(0x380)][a1221_0x3ebab2(0x25d)]=function(_0x1dd0f4,_0x5ca07a){const _0xfbdfce=a1221_0x3ebab2,_0x593ad8=this;for(const _0x5c09a7 in _0x1dd0f4){typeof _0x1dd0f4[_0x5c09a7]!==_0xfbdfce(0x1fd)&&this[_0xfbdfce(0x2d9)]['enqueue'](function(){const _0x2ded2e=_0xfbdfce;if(!_[_0x2ded2e(0x1ad)](_0x1dd0f4[_0x5c09a7]))return ami[_0x2ded2e(0x2a8)]({'action':_0x2ded2e(0x378),'channel':_0x1dd0f4[_0x5c09a7][_0x2ded2e(0x1a8)]})[_0x2ded2e(0x338)](function(_0x550a81){const _0x1ade7e=_0x2ded2e;_0x550a81[_0x1ade7e(0x268)]===_0x1ade7e(0x1e7)&&setTimeout(function(){const _0x31c29a=_0x1ade7e;_0x1dd0f4[_0x5c09a7]&&_0x1dd0f4[_0x5c09a7][_0x31c29a(0x372)]!==_0x31c29a(0x2d8)&&(_0x593ad8[_0x31c29a(0x1fe)](_0x593ad8[_0x31c29a(0x220)][_0x1dd0f4[_0x5c09a7][_0x31c29a(0x368)]]),logger['error'](_0x31c29a(0x1ac),_0x5ca07a,_0x5c09a7,_0x1dd0f4[_0x5c09a7][_0x31c29a(0x368)]),delete _0x1dd0f4[_0x5c09a7]),_0x1dd0f4[_0x5c09a7]&&_0x1dd0f4[_0x5c09a7][_0x31c29a(0x372)]===_0x31c29a(0x2d8)&&(_0x593ad8[_0x31c29a(0x1fe)](_0x593ad8[_0x31c29a(0x203)][_0x1dd0f4[_0x5c09a7][_0x31c29a(0x368)]]),logger[_0x31c29a(0x19a)]('[Dialer][checkChannel][ivr]',_0x5ca07a,_0x5c09a7,_0x1dd0f4[_0x5c09a7][_0x31c29a(0x368)]),delete _0x1dd0f4[_0x5c09a7]);},0x2328);});});}},Dialer[a1221_0x3ebab2(0x380)]['countReScheduled']=function(_0x5952d1){const _0x3eac62=a1221_0x3ebab2;return Promise[_0x3eac62(0x28e)]()['then'](cmHopper[_0x3eac62(0x1cd)](_0x5952d1))[_0x3eac62(0x338)](loggerCatch(_0x3eac62(0x281)));},Dialer[a1221_0x3ebab2(0x380)][a1221_0x3ebab2(0x284)]=function(_0x3b2c52){const _0x11c281=a1221_0x3ebab2;return Promise['resolve']()['then'](cmHopperBlack[_0x11c281(0x284)](_0x3b2c52))[_0x11c281(0x338)](loggerCatch(_0x11c281(0x27d)));},Dialer[a1221_0x3ebab2(0x380)]['checkIsBlackListIvr']=function(_0x102c55){const _0xd8d861=a1221_0x3ebab2;return Promise[_0xd8d861(0x28e)]()[_0xd8d861(0x285)](cmHopperBlack[_0xd8d861(0x2ed)](_0x102c55))[_0xd8d861(0x338)](loggerCatch(_0xd8d861(0x29f)));},Dialer[a1221_0x3ebab2(0x380)][a1221_0x3ebab2(0x223)]=function(_0x4b53ae){const _0x407499=a1221_0x3ebab2;return Promise[_0x407499(0x28e)]()[_0x407499(0x285)](cmHopperHistory[_0x407499(0x213)](_0x4b53ae))[_0x407499(0x338)](loggerCatch(_0x407499(0x364)));},Dialer['prototype']['rescheduleContact']=function(_0x1a51f3){const _0x2c4933=a1221_0x3ebab2;return Promise[_0x2c4933(0x28e)]()['then'](cmHopper[_0x2c4933(0x1bf)](_0x1a51f3))[_0x2c4933(0x338)](loggerCatch(_0x2c4933(0x330)));},Dialer['prototype'][a1221_0x3ebab2(0x2d1)]=function(_0x137929,_0xad9c,_0x2d6848){const _0x2dcf6e=a1221_0x3ebab2;return Promise['resolve']()[_0x2dcf6e(0x285)](cmHopper[_0x2dcf6e(0x2d1)](_0x137929,_0xad9c,_0x2d6848))['catch'](loggerCatch(_0x2dcf6e(0x320)));},Dialer[a1221_0x3ebab2(0x380)]['getContactDialer']=function(_0x30cee9,_0x5f1fca,_0x147dbd,_0x4fe5d9){const _0x68cd5c=a1221_0x3ebab2;return Promise[_0x68cd5c(0x28e)]()['then'](cmHopper[_0x68cd5c(0x1ab)](_0x30cee9,_0x5f1fca,_0x147dbd,_0x4fe5d9))[_0x68cd5c(0x338)](loggerCatch(_0x68cd5c(0x27f)));},Dialer[a1221_0x3ebab2(0x380)][a1221_0x3ebab2(0x1d7)]=function(_0x560485,_0x575e63,_0x17d821){const _0x10f637=a1221_0x3ebab2;return Promise[_0x10f637(0x28e)]()[_0x10f637(0x285)](cmHopper[_0x10f637(0x1d7)](_0x560485,_0x575e63,_0x17d821))['catch'](loggerCatch(_0x10f637(0x27f)));},Dialer['prototype'][a1221_0x3ebab2(0x381)]=function(_0x4365d5){const _0x45c01c=a1221_0x3ebab2;return Promise['resolve']()['then'](voiceQueueRt[_0x45c01c(0x381)](_0x4365d5))['catch'](loggerCatch(_0x45c01c(0x1eb)));},Dialer['prototype'][a1221_0x3ebab2(0x2e6)]=function(_0x56f72e){const _0x5b4931=a1221_0x3ebab2;return Promise[_0x5b4931(0x28e)]()[_0x5b4931(0x285)](cmHopper['moveContactManagedDialer'](_0x56f72e))[_0x5b4931(0x338)](loggerCatch(_0x5b4931(0x2fb)));},Dialer['prototype'][a1221_0x3ebab2(0x27e)]=function(_0x107b5f){const _0x2e611a=a1221_0x3ebab2;return Promise[_0x2e611a(0x28e)]()['then'](cmHopperHistory[_0x2e611a(0x27e)](_0x107b5f))['catch'](loggerCatch('[createHistory]\x20'));},Dialer['prototype'][a1221_0x3ebab2(0x1fe)]=function(_0x1bb32f){const _0x1653c9=a1221_0x3ebab2;!_[_0x1653c9(0x39a)](_0x1bb32f)&&_0x1bb32f!==null?typeof _0x1bb32f['originated']!==_0x1653c9(0x1fd)&&(_0x1bb32f[_0x1653c9(0x24c)]>0x0?_0x1bb32f[_0x1653c9(0x24c)]-=0x1:logger[_0x1653c9(0x19a)]('[updateOriginated]\x20object\x20originated\x20is\x20negative')):logger[_0x1653c9(0x19a)]('[updateOriginated]\x20is\x20null\x20or\x20undefined');},Dialer[a1221_0x3ebab2(0x380)][a1221_0x3ebab2(0x258)]=function(_0x1a77ee,_0x502b70){const _0x2e1e8b=this;return function(_0x5987ff){const _0x3e8e9c=a1221_0x14ae;_0x2e1e8b[_0x3e8e9c(0x1fe)](_0x502b70),logger['error'](_0x1a77ee,util[_0x3e8e9c(0x287)](_0x5987ff,{'showHidden':![],'depth':null}));};},Dialer[a1221_0x3ebab2(0x380)][a1221_0x3ebab2(0x196)]=function(_0x5d4d1f,_0x460470,_0x4074f2){const _0x35a1ec=a1221_0x3ebab2,_0x3f0d8a={'state':0x19,'statedesc':_0x35a1ec(0x2a7)};this[_0x35a1ec(0x1fe)](_0x460470),this[_0x35a1ec(0x2be)](_[_0x35a1ec(0x212)](_0x3f0d8a,_[_0x35a1ec(0x194)](_0x4074f2,[_0x35a1ec(0x1ea),_0x35a1ec(0x393),_0x35a1ec(0x217),_0x35a1ec(0x270),_0x35a1ec(0x25c)])),_0x35a1ec(0x241),_0x35a1ec(0x20c)),logger['error'](_0x5d4d1f);},Dialer[a1221_0x3ebab2(0x380)][a1221_0x3ebab2(0x322)]=function(_0x30f668){const _0x6eff90=a1221_0x3ebab2;return _0x30f668===_0x6eff90(0x247);},Dialer[a1221_0x3ebab2(0x380)][a1221_0x3ebab2(0x238)]=function(_0xb355dc){const _0x3f3ac9=a1221_0x3ebab2;return!_[_0x3f3ac9(0x39a)](_0xb355dc)&&_0xb355dc&&!_[_0x3f3ac9(0x39a)](_0xb355dc['name'])&&!_[_0x3f3ac9(0x39a)](_0xb355dc['active'])&&_0xb355dc[_0x3f3ac9(0x1e4)]&&(this[_0x3f3ac9(0x295)][util['format'](_0x3f3ac9(0x282),_0xb355dc[_0x3f3ac9(0x279)])][_0x3f3ac9(0x378)]===_0x3f3ac9(0x1da)||this[_0x3f3ac9(0x295)][util[_0x3f3ac9(0x30b)]('SIP/%s',_0xb355dc[_0x3f3ac9(0x279)])][_0x3f3ac9(0x378)]===_0x3f3ac9(0x1d3));},Dialer[a1221_0x3ebab2(0x380)]['saveInDb']=function(_0x499300,_0x46ec81,_0x5338cc){const _0x37bc33=a1221_0x3ebab2;this[_0x37bc33(0x27e)](_0x499300)[_0x37bc33(0x338)](loggerCatch(_0x46ec81)),this[_0x37bc33(0x2e6)](_0x499300)['catch'](loggerCatch(_0x5338cc));},Dialer[a1221_0x3ebab2(0x380)][a1221_0x3ebab2(0x374)]=function(_0x520186){const _0xc01ef3=a1221_0x3ebab2,_0x4c29d6=this[_0xc01ef3(0x307)][_0x520186[_0xc01ef3(0x276)]];let _0x5555cb;if(!_[_0xc01ef3(0x1ad)](_0x520186)&&!_[_0xc01ef3(0x1ad)](_0x520186[_0xc01ef3(0x2b9)])&&!_[_0xc01ef3(0x1ad)](_0x520186[_0xc01ef3(0x2b9)]['amdstatus'])&&_0x520186[_0xc01ef3(0x315)]===_0xc01ef3(0x31a)&&_0x4c29d6){_0x4c29d6[_0xc01ef3(0x372)]!==_0xc01ef3(0x2d8)&&this['voiceQueues'][_0x4c29d6[_0xc01ef3(0x368)]]['dialAMDActive']&&_0x520186[_0xc01ef3(0x313)]===_0xc01ef3(0x2f6)&&(delete this[_0xc01ef3(0x307)][_0x520186['uniqueid']],this['updateOriginated'](this[_0xc01ef3(0x220)][_0x4c29d6[_0xc01ef3(0x368)]]),this[_0xc01ef3(0x220)][_0x4c29d6['queue']][_0xc01ef3(0x35a)]+=0x1,this['voiceQueues'][_0x4c29d6[_0xc01ef3(0x368)]][_0xc01ef3(0x23d)]+=0x1,_0x5555cb=new Hangup(_0x4c29d6,_0x520186),_0x5555cb[_0xc01ef3(0x228)]=0x12,_0x5555cb[_0xc01ef3(0x2a6)]=_0xc01ef3(0x22d),_0x5555cb[_0xc01ef3(0x207)]=_0xc01ef3(0x333),this[_0xc01ef3(0x2be)](_0x5555cb,_0xc01ef3(0x269),_0xc01ef3(0x22b)));if(_0x4c29d6[_0xc01ef3(0x372)]!=='ivr'&&this[_0xc01ef3(0x220)][_0x4c29d6[_0xc01ef3(0x368)]]['dialAMDActive']&&_0x520186[_0xc01ef3(0x313)]===_0xc01ef3(0x334)){const _0x304088=this;return new Promise(function(_0x4b7b57,_0xd645ac){const _0x304bd2=_0xc01ef3;delete _0x304088[_0x304bd2(0x307)][_0x520186[_0x304bd2(0x276)]],_0x304088['updateOriginated'](_0x304088[_0x304bd2(0x220)][_0x4c29d6[_0x304bd2(0x368)]]),_0x304088['voiceQueues'][_0x4c29d6[_0x304bd2(0x368)]]['outboundAnswerCallsDay']+=0x1,_0x304088[_0x304bd2(0x220)][_0x4c29d6[_0x304bd2(0x368)]]['outboundAnswerAgiCallsDay']+=0x1;const _0xc30b1e=_0x304088[_0x304bd2(0x220)][_0x4c29d6[_0x304bd2(0x368)]],_0x469d70=new Hangup(_0x4c29d6,_0x520186);_0x469d70[_0x304bd2(0x228)]=0x13,_0x469d70[_0x304bd2(0x2a6)]=_0x304bd2(0x248),_0x469d70['membername']='AMD',_0x469d70[_0x304bd2(0x226)]+=0x1,_0x469d70[_0x304bd2(0x329)]+=0x1,_0x469d70[_0x304bd2(0x2cd)]=!![],_0x304088[_0x304bd2(0x27e)](_0x469d70)['catch'](loggerCatch('[syncAgentComplete][createHistory][0]')),_0x469d70[_0x304bd2(0x342)]+_0x469d70[_0x304bd2(0x1d8)]+_0x469d70['countnoanswerretry']+_0x469d70['countnosuchnumberretry']+_0x469d70[_0x304bd2(0x39c)]+_0x469d70[_0x304bd2(0x1c3)]+_0x469d70[_0x304bd2(0x226)]+_0x469d70[_0x304bd2(0x303)]>=_0xc30b1e[_0x304bd2(0x2a5)]?_0x304088[_0x304bd2(0x18d)](_0x469d70,_0x4b7b57,_0xd645ac,_0x304bd2(0x34d)):_0x469d70['countmachineretry']>=_0xc30b1e['dialMachineMaxRetry']?_0x304088[_0x304bd2(0x261)](_0x469d70,_0x4b7b57,_0xd645ac,_0x304bd2(0x1a7)):(_0x304088[_0x304bd2(0x1bf)]({'active':![],'countmachineretry':_0x469d70[_0x304bd2(0x226)],'scheduledat':moment()[_0x304bd2(0x1be)](_0xc30b1e['dialMachineRetryFrequency'],_0x304bd2(0x26b))[_0x304bd2(0x30b)]('YYYY-MM-DD\x20HH:mm:ss'),'ContactId':_0x469d70['ContactId'],'ListId':_0x469d70[_0x304bd2(0x393)],'VoiceQueueId':_0x469d70[_0x304bd2(0x270)]||undefined,'CampaignId':_0x469d70[_0x304bd2(0x25c)]||undefined})[_0x304bd2(0x338)](loggerCatch('[rescheduleContact][Machine]')),_0x4b7b57({'reschedule':0x1}));});}_0x4c29d6['type']===_0xc01ef3(0x2d8)&&this[_0xc01ef3(0x203)][_0x4c29d6['queue']]['dialAMDActive']&&_0x520186[_0xc01ef3(0x313)]==='HANGUP'&&(delete this[_0xc01ef3(0x307)][_0x520186[_0xc01ef3(0x276)]],this[_0xc01ef3(0x1fe)](this[_0xc01ef3(0x203)][_0x4c29d6[_0xc01ef3(0x368)]]),_0x5555cb=new Hangup(_0x4c29d6,_0x520186),_0x5555cb[_0xc01ef3(0x228)]=0x12,_0x5555cb[_0xc01ef3(0x2a6)]='HangupInAMD',_0x5555cb[_0xc01ef3(0x207)]=_0xc01ef3(0x333),this[_0xc01ef3(0x2be)](_0x5555cb,_0xc01ef3(0x2bf),_0xc01ef3(0x358)));if(_0x4c29d6['type']===_0xc01ef3(0x2d8)&&this[_0xc01ef3(0x203)][_0x4c29d6['queue']][_0xc01ef3(0x1fc)]&&_0x520186[_0xc01ef3(0x313)]===_0xc01ef3(0x334)){const _0x3c0b66=this;return new Promise(function(_0x58f878,_0x35069f){const _0x133aaa=_0xc01ef3;delete _0x3c0b66[_0x133aaa(0x307)][_0x520186[_0x133aaa(0x276)]],_0x3c0b66[_0x133aaa(0x1fe)](_0x3c0b66[_0x133aaa(0x203)][_0x4c29d6[_0x133aaa(0x368)]]),_0x3c0b66[_0x133aaa(0x203)][_0x4c29d6[_0x133aaa(0x368)]][_0x133aaa(0x35a)]+=0x1,_0x3c0b66['campaigns'][_0x4c29d6[_0x133aaa(0x368)]][_0x133aaa(0x23d)]+=0x1;const _0x3cbe5b=_0x3c0b66[_0x133aaa(0x203)][_0x4c29d6[_0x133aaa(0x368)]],_0x3fe415=new Hangup(_0x4c29d6,_0x520186);_0x3fe415[_0x133aaa(0x228)]=0x13,_0x3fe415['statedesc']=_0x133aaa(0x248),_0x3fe415[_0x133aaa(0x207)]=_0x133aaa(0x333),_0x3fe415['countmachineretry']+=0x1,_0x3fe415[_0x133aaa(0x329)]+=0x1,_0x3fe415[_0x133aaa(0x2cd)]=!![],_0x3c0b66[_0x133aaa(0x27e)](_0x3fe415)[_0x133aaa(0x338)](loggerCatch(_0x133aaa(0x2da))),_0x3fe415[_0x133aaa(0x342)]+_0x3fe415[_0x133aaa(0x1d8)]+_0x3fe415[_0x133aaa(0x36c)]+_0x3fe415[_0x133aaa(0x29b)]+_0x3fe415['countdropretry']+_0x3fe415[_0x133aaa(0x1c3)]+_0x3fe415['countmachineretry']+_0x3fe415['countagentrejectretry']>=_0x3cbe5b[_0x133aaa(0x2a5)]?_0x3c0b66[_0x133aaa(0x18d)](_0x3fe415,_0x58f878,_0x35069f,'reason19\x20machine....'):_0x3fe415['countmachineretry']>=_0x3cbe5b['dialMachineMaxRetry']?_0x3c0b66['createStateFinal'](_0x3fe415,_0x58f878,_0x35069f,_0x133aaa(0x1a7)):(_0x3c0b66[_0x133aaa(0x1bf)]({'active':![],'countmachineretry':_0x3fe415[_0x133aaa(0x226)],'scheduledat':moment()[_0x133aaa(0x1be)](_0x3cbe5b[_0x133aaa(0x209)],'minutes')['format']('YYYY-MM-DD\x20HH:mm:ss'),'ContactId':_0x3fe415['ContactId'],'ListId':_0x3fe415[_0x133aaa(0x393)],'VoiceQueueId':_0x3fe415[_0x133aaa(0x270)]||undefined,'CampaignId':_0x3fe415[_0x133aaa(0x25c)]||undefined})['catch'](loggerCatch('[rescheduleContact][Machine]')),_0x58f878({'reschedule':0x1}));});}}},Dialer['prototype']['syncHangup']=function(_0x5756da){const _0x3b5d40=a1221_0x3ebab2,_0x5c174d=this[_0x3b5d40(0x307)][_0x5756da[_0x3b5d40(0x276)]];let _0x335414;_0x5c174d&&_0x5c174d[_0x3b5d40(0x372)]==='ivr'&&(delete this[_0x3b5d40(0x307)][_0x5756da[_0x3b5d40(0x276)]],this[_0x3b5d40(0x1fe)](this[_0x3b5d40(0x203)][_0x5c174d[_0x3b5d40(0x368)]]),this[_0x3b5d40(0x203)][_0x5c174d[_0x3b5d40(0x368)]][_0x3b5d40(0x2e1)]+=0x1,_0x335414=new Hangup(_0x5c174d,_0x5756da),this[_0x3b5d40(0x27e)](_0x335414)[_0x3b5d40(0x338)](loggerCatch(_0x3b5d40(0x2af))),this[_0x3b5d40(0x2e6)](_0x335414)[_0x3b5d40(0x338)](loggerCatch('[syncHangupIvr]'))),_0x5c174d&&_0x5c174d['type']!=='ivr'&&isNotNull(this[_0x3b5d40(0x220)][_0x5c174d[_0x3b5d40(0x368)]][_0x3b5d40(0x19d)])&&(delete this[_0x3b5d40(0x307)][_0x5756da[_0x3b5d40(0x276)]],this[_0x3b5d40(0x1fe)](this['voiceQueues'][_0x5c174d['queue']]),this[_0x3b5d40(0x220)][_0x5c174d[_0x3b5d40(0x368)]][_0x3b5d40(0x35a)]+=0x1,this[_0x3b5d40(0x220)][_0x5c174d[_0x3b5d40(0x368)]][_0x3b5d40(0x23d)]+=0x1,_0x335414=new Hangup(_0x5c174d,_0x5756da),_0x335414[_0x3b5d40(0x228)]=0x10,_0x335414['statedesc']='AnswerAGI',_0x335414['membername']=_0x3b5d40(0x385),this[_0x3b5d40(0x27e)](_0x335414)[_0x3b5d40(0x338)](loggerCatch('[syncHangupIvr][createHistory]')),this[_0x3b5d40(0x2e6)](_0x335414)[_0x3b5d40(0x338)](loggerCatch(_0x3b5d40(0x2d0)))),_0x5c174d&&_0x5c174d['type']!==_0x3b5d40(0x2d8)&&!isNotNull(this[_0x3b5d40(0x220)][_0x5c174d[_0x3b5d40(0x368)]][_0x3b5d40(0x19d)])&&(delete this['uniqueId'][_0x5756da[_0x3b5d40(0x276)]],this['updateOriginated'](this['voiceQueues'][_0x5c174d['queue']]),this[_0x3b5d40(0x220)][_0x5c174d[_0x3b5d40(0x368)]][_0x3b5d40(0x31e)]+=0x1,_0x335414=new Hangup(_0x5c174d,_0x5756da),_0x335414[_0x3b5d40(0x228)]=0xc,_0x335414[_0x3b5d40(0x2a6)]=_0x5756da[_0x3b5d40(0x2bd)],_0x335414[_0x3b5d40(0x207)]='Unknow',this['createHistory'](_0x335414)[_0x3b5d40(0x338)](loggerCatch(_0x3b5d40(0x2af))),this['moveContactManagedDialer'](_0x335414)[_0x3b5d40(0x338)](loggerCatch(_0x3b5d40(0x2d0))));},Dialer[a1221_0x3ebab2(0x380)]['syncAgentComplete']=function(_0x3dd1e3){const _0x2283dc=a1221_0x3ebab2,_0xdbe3ef=this['uniqueId'][_0x3dd1e3[_0x2283dc(0x276)]];if(this[_0x2283dc(0x220)][_0x3dd1e3[_0x2283dc(0x368)]]){if(_0xdbe3ef&&_0xdbe3ef['type']!==_0x2283dc(0x2d8)){delete this[_0x2283dc(0x307)][_0x3dd1e3[_0x2283dc(0x276)]],this[_0x2283dc(0x220)][_0x3dd1e3['queue']][_0x2283dc(0x35a)]+=0x1;const _0x3c5cd0=new AgentComplete(_0xdbe3ef,_0x3dd1e3);_0x3dd1e3[_0x2283dc(0x236)]===_0x2283dc(0x244)&&(_0x3c5cd0[_0x2283dc(0x384)]=this['voiceQueues'][_0x3dd1e3[_0x2283dc(0x368)]]['dialQueueProject2']&&this[_0x2283dc(0x220)][_0x3dd1e3['queue']][_0x2283dc(0x2d5)]?moment()['format']('YYYY-MM-DD\x20HH:mm:ss'):undefined),this[_0x2283dc(0x27e)](_0x3c5cd0)[_0x2283dc(0x338)](loggerCatch(_0x2283dc(0x2a3))),this[_0x2283dc(0x2e6)](_0x3c5cd0)[_0x2283dc(0x338)](loggerCatch(_0x2283dc(0x1e1)));}}},Dialer[a1221_0x3ebab2(0x380)][a1221_0x3ebab2(0x1ba)]=function(_0x66017){const _0x3eded1=a1221_0x3ebab2;this[_0x3eded1(0x220)][_0x66017['queue']]&&(this['uniqueId'][_0x66017[_0x3eded1(0x276)]]&&this[_0x3eded1(0x307)][_0x66017[_0x3eded1(0x276)]][_0x3eded1(0x372)]!=='ivr'&&(this[_0x3eded1(0x1fe)](this[_0x3eded1(0x220)][_0x66017[_0x3eded1(0x368)]]),this[_0x3eded1(0x307)][_0x66017[_0x3eded1(0x276)]][_0x3eded1(0x2cb)]=moment()[_0x3eded1(0x30b)](_0x3eded1(0x2b1))));},Dialer[a1221_0x3ebab2(0x380)]['queueCallerAbandonCreateState']=function(_0x3d0304){const _0x4d9409=a1221_0x3ebab2;this[_0x4d9409(0x27e)](_0x3d0304)[_0x4d9409(0x338)](loggerCatch('[syncAgentComplete][createHistory]')),this[_0x4d9409(0x2e6)](_0x3d0304)['catch'](loggerCatch('[syncQueueCallerAbandon]\x20[Drop]'));},Dialer[a1221_0x3ebab2(0x380)][a1221_0x3ebab2(0x34c)]=function(_0x35462d){const _0x241d54=a1221_0x3ebab2,_0x105cd7=this['uniqueId'][_0x35462d[_0x241d54(0x276)]];if(this['voiceQueues'][_0x35462d[_0x241d54(0x368)]]){if(_0x105cd7&&_0x105cd7[_0x241d54(0x372)]!==_0x241d54(0x2d8)){delete this[_0x241d54(0x307)][_0x35462d[_0x241d54(0x276)]],this[_0x241d54(0x1fe)](this[_0x241d54(0x220)][_0x35462d[_0x241d54(0x368)]]),_0x105cd7['droptime']=moment()[_0x241d54(0x30b)]('YYYY-MM-DD\x20HH:mm:ss');const _0x4c3570=new QueueCallerAbandon(_0x105cd7,_0x35462d);if(getSeconds(_0x105cd7[_0x241d54(0x191)],_0x105cd7['responsetime'])>=_0x105cd7['dialQueueTimeout']){this['voiceQueues'][_0x35462d[_0x241d54(0x368)]]['predictiveIntervalDroppedCallsTimeout']+=0x1,this[_0x241d54(0x220)][_0x35462d['queue']][_0x241d54(0x2fe)]+=0x1,this['voiceQueues'][_0x35462d['queue']][_0x241d54(0x1f8)]+=0x1,_0x4c3570[_0x241d54(0x228)]=0xa,_0x4c3570[_0x241d54(0x2a6)]='Drop',_0x4c3570[_0x241d54(0x2e0)]=_0x241d54(0x27c),_0x4c3570[_0x241d54(0x384)]=this[_0x241d54(0x220)][_0x35462d[_0x241d54(0x368)]]['dialQueueProject2']?moment()['format'](_0x241d54(0x2b1)):undefined,_0x4c3570[_0x241d54(0x39c)]+=0x1,_0x4c3570['countglobal']+=0x1;if(_0x4c3570[_0x241d54(0x39c)]>=this[_0x241d54(0x220)][_0x35462d[_0x241d54(0x368)]][_0x241d54(0x395)])this[_0x241d54(0x370)](_0x4c3570);else{this['rescheduleContact']({'active':![],'countdropretry':_0x4c3570[_0x241d54(0x39c)],'scheduledat':moment()[_0x241d54(0x1be)](this[_0x241d54(0x220)][_0x35462d[_0x241d54(0x368)]][_0x241d54(0x233)],'minutes')[_0x241d54(0x30b)]('YYYY-MM-DD\x20HH:mm:ss'),'ContactId':_0x105cd7[_0x241d54(0x1ea)],'ListId':_0x105cd7[_0x241d54(0x393)],'VoiceQueueId':_0x105cd7[_0x241d54(0x270)]||undefined,'CampaignId':_0x105cd7[_0x241d54(0x25c)]||undefined})[_0x241d54(0x338)](loggerCatch('[rescheduleContact][Drop]'));const _0x4aedcb=new History(_0x4c3570);_0x4aedcb[_0x241d54(0x228)]=0xa,_0x4aedcb[_0x241d54(0x2a6)]='Drop',_0x4aedcb[_0x241d54(0x398)]=moment()[_0x241d54(0x30b)](_0x241d54(0x2b1)),_0x4aedcb['endtime']=_0x4aedcb['starttime'],_0x4aedcb[_0x241d54(0x399)]=_0x4c3570['calleridname'],_0x4aedcb[_0x241d54(0x245)]=_0x4c3570[_0x241d54(0x245)],this['createHistory'](_0x4aedcb)[_0x241d54(0x338)](loggerCatch(_0x241d54(0x298)));}}else{this[_0x241d54(0x220)][_0x35462d[_0x241d54(0x368)]][_0x241d54(0x335)]+=0x1,this['voiceQueues'][_0x35462d[_0x241d54(0x368)]]['outboundDropCallsDayCallersExit']+=0x1,_0x4c3570['state']=0xb,_0x4c3570[_0x241d54(0x2a6)]='Abandoned',_0x4c3570['dropreason']=_0x241d54(0x392),_0x4c3570[_0x241d54(0x1c3)]+=0x1,_0x4c3570['countglobal']+=0x1;if(_0x4c3570[_0x241d54(0x1c3)]>=this[_0x241d54(0x220)][_0x35462d[_0x241d54(0x368)]][_0x241d54(0x272)])this['queueCallerAbandonCreateState'](_0x4c3570);else{this['rescheduleContact']({'active':![],'countabandonedretry':_0x4c3570[_0x241d54(0x1c3)],'scheduledat':moment()['add'](this[_0x241d54(0x220)][_0x35462d[_0x241d54(0x368)]][_0x241d54(0x1ed)],_0x241d54(0x26b))[_0x241d54(0x30b)](_0x241d54(0x2b1)),'ContactId':_0x105cd7[_0x241d54(0x1ea)],'ListId':_0x105cd7[_0x241d54(0x393)],'VoiceQueueId':_0x105cd7[_0x241d54(0x270)]||undefined,'CampaignId':_0x105cd7[_0x241d54(0x25c)]||undefined})[_0x241d54(0x338)](loggerCatch(_0x241d54(0x2f1)));const _0x257ef8=new History(_0x4c3570);_0x257ef8[_0x241d54(0x228)]=0xb,_0x257ef8[_0x241d54(0x2a6)]=_0x241d54(0x2c9),_0x257ef8[_0x241d54(0x398)]=moment()['format']('YYYY-MM-DD\x20HH:mm:ss'),_0x257ef8[_0x241d54(0x32e)]=_0x257ef8['starttime'],_0x257ef8[_0x241d54(0x399)]=_0x4c3570[_0x241d54(0x399)],_0x257ef8[_0x241d54(0x245)]=_0x4c3570[_0x241d54(0x245)],this[_0x241d54(0x27e)](_0x257ef8)[_0x241d54(0x338)](loggerCatch('[syncAgentComplete][createHistory][11]'));}}}}},Dialer[a1221_0x3ebab2(0x380)][a1221_0x3ebab2(0x2ef)]=function(_0xd2fe72){const _0x25bab8=a1221_0x3ebab2;this[_0x25bab8(0x25f)][_0xd2fe72[_0x25bab8(0x276)]]&&(this[_0x25bab8(0x25f)][_0xd2fe72[_0x25bab8(0x276)]]['channel']=_0xd2fe72[_0x25bab8(0x1a8)]),this[_0x25bab8(0x307)][_0xd2fe72['uniqueid']]&&(this[_0x25bab8(0x307)][_0xd2fe72[_0x25bab8(0x276)]][_0x25bab8(0x1a8)]=_0xd2fe72[_0x25bab8(0x1a8)]);},Dialer['prototype'][a1221_0x3ebab2(0x1e0)]=function(_0x1cefd8){const _0x539061=a1221_0x3ebab2;if(strategy[this[_0x539061(0x220)][this[_0x539061(0x25f)][_0x1cefd8[_0x539061(0x28f)]]['queue']][_0x539061(0x28d)]]===_0x539061(0x229))this[_0x539061(0x25f)][_0x1cefd8[_0x539061(0x28f)]]&&_['isNil'](this[_0x539061(0x25f)][_0x1cefd8[_0x539061(0x28f)]][_0x539061(0x2f2)])&&_0x1cefd8['status']==='1'&&_0x1cefd8[_0x539061(0x1c9)]==='0'&&(this[_0x539061(0x363)][_0x1cefd8[_0x539061(0x249)]]&&(!this['agents'][_0x1cefd8['stateinterface']][_0x539061(0x2f2)]&&(this[_0x539061(0x363)][_0x1cefd8[_0x539061(0x249)]][_0x539061(0x2f2)]=!![],this['actions'][_0x1cefd8[_0x539061(0x28f)]][_0x539061(0x2f2)]=!![],this['actions'][_0x1cefd8['actionid']][_0x539061(0x249)]=_0x1cefd8[_0x539061(0x249)])));else(strategy[this[_0x539061(0x220)][this[_0x539061(0x25f)][_0x1cefd8[_0x539061(0x28f)]]['queue']][_0x539061(0x28d)]]||'rrmemory')===_0x539061(0x318)&&(this[_0x539061(0x25f)][_0x1cefd8[_0x539061(0x28f)]]&&(this[_0x539061(0x363)][_0x1cefd8[_0x539061(0x249)]]&&(this[_0x539061(0x25f)][_0x1cefd8['actionid']][_0x539061(0x249)]=_0x1cefd8[_0x539061(0x249)],_[_0x539061(0x1ad)](this['queueBooked'][this['actions'][_0x1cefd8[_0x539061(0x28f)]]['queue']])&&(this[_0x539061(0x1ca)][this[_0x539061(0x25f)][_0x1cefd8[_0x539061(0x28f)]]['queue']]=[]),this[_0x539061(0x1ca)][this['actions'][_0x1cefd8[_0x539061(0x28f)]][_0x539061(0x368)]][_0x539061(0x2e7)](_[_0x539061(0x212)](_[_0x539061(0x194)](this[_0x539061(0x25f)][_0x1cefd8[_0x539061(0x28f)]],[_0x539061(0x2a0),_0x539061(0x249)]),{'status':_0x1cefd8['status'],'paused':_0x1cefd8[_0x539061(0x1c9)]})))));};function unlockQueueStatus(_0x49ad2c,_0x534707){setTimeout(function(){const _0x417d54=a1221_0x14ae;_[_0x417d54(0x39a)](_0x49ad2c[_0x417d54(0x2ab)])&&loggerBooked[_0x417d54(0x19a)](_0x417d54(0x195),_0x534707),_0x49ad2c['queueStatusComplete']=!![],loggerBooked[_0x417d54(0x37b)](_0x417d54(0x24e),_0x534707,JSON[_0x417d54(0x37f)](_['pick'](_0x49ad2c,['name',_0x417d54(0x2ab)])));},0x1f3);}Dialer[a1221_0x3ebab2(0x380)][a1221_0x3ebab2(0x1c0)]=function(_0x363ea9){const _0x51b57d=a1221_0x3ebab2,_0x33bf64=this,_0x10f70a=_0x33bf64[_0x51b57d(0x220)][_0x33bf64[_0x51b57d(0x25f)][_0x363ea9[_0x51b57d(0x28f)]][_0x51b57d(0x368)]];if(strategy[this[_0x51b57d(0x220)][this[_0x51b57d(0x25f)][_0x363ea9[_0x51b57d(0x28f)]][_0x51b57d(0x368)]][_0x51b57d(0x28d)]]===_0x51b57d(0x229))this[_0x51b57d(0x25f)][_0x363ea9[_0x51b57d(0x28f)]]&&this[_0x51b57d(0x25f)][_0x363ea9[_0x51b57d(0x28f)]][_0x51b57d(0x249)]?this[_0x51b57d(0x26f)][_0x51b57d(0x274)](this[_0x51b57d(0x25f)][_0x363ea9[_0x51b57d(0x28f)]][_0x51b57d(0x2a0)],this[_0x51b57d(0x25f)][_0x363ea9[_0x51b57d(0x28f)]][_0x51b57d(0x249)])[_0x51b57d(0x338)](function(_0xf00e77){const _0x33c3c1=_0x51b57d;logger[_0x33c3c1(0x19a)]('[Catch][Preview][syncQueueStatusComplete]',util[_0x33c3c1(0x287)](_0xf00e77,{'showHidden':![],'depth':null}));})[_0x51b57d(0x1c2)](function(){const _0x45a663=_0x51b57d;_0x33bf64[_0x45a663(0x1fe)](_0x33bf64[_0x45a663(0x220)][_0x33bf64[_0x45a663(0x25f)][_0x363ea9[_0x45a663(0x28f)]][_0x45a663(0x368)]]),_0x33bf64[_0x45a663(0x363)][_0x33bf64[_0x45a663(0x25f)][_0x363ea9['actionid']][_0x45a663(0x249)]][_0x45a663(0x2f2)]=![],delete _0x33bf64[_0x45a663(0x25f)][_0x363ea9[_0x45a663(0x28f)]],unlockQueueStatus(_0x10f70a);}):(this['updateOriginated'](this[_0x51b57d(0x220)][this[_0x51b57d(0x25f)][_0x363ea9['actionid']][_0x51b57d(0x368)]]),this[_0x51b57d(0x1bf)]({'active':![],'ContactId':this[_0x51b57d(0x25f)][_0x363ea9[_0x51b57d(0x28f)]][_0x51b57d(0x1ea)],'ListId':this[_0x51b57d(0x25f)][_0x363ea9[_0x51b57d(0x28f)]]['ListId'],'VoiceQueueId':this[_0x51b57d(0x25f)][_0x363ea9[_0x51b57d(0x28f)]]['VoiceQueueId']||undefined,'CampaignId':this[_0x51b57d(0x25f)][_0x363ea9[_0x51b57d(0x28f)]]['CampaignId']||undefined})[_0x51b57d(0x338)](loggerCatch(_0x51b57d(0x1af))),delete this['actions'][_0x363ea9[_0x51b57d(0x28f)]],unlockQueueStatus(_0x10f70a));else{if((strategy[this[_0x51b57d(0x220)][this[_0x51b57d(0x25f)][_0x363ea9[_0x51b57d(0x28f)]][_0x51b57d(0x368)]][_0x51b57d(0x28d)]]||_0x51b57d(0x318))==='rrmemory'){let _0x4a96d6;if(this[_0x51b57d(0x25f)][_0x363ea9[_0x51b57d(0x28f)]]&&!_['isEmpty'](this[_0x51b57d(0x1ca)][this['actions'][_0x363ea9[_0x51b57d(0x28f)]][_0x51b57d(0x368)]])){this['queueBookedRR'][_0x33bf64[_0x51b57d(0x25f)][_0x363ea9[_0x51b57d(0x28f)]][_0x51b57d(0x368)]]&&(this['queueBookedRR'][_0x33bf64[_0x51b57d(0x25f)][_0x363ea9[_0x51b57d(0x28f)]][_0x51b57d(0x368)]]=this['queueBookedRR'][this[_0x51b57d(0x25f)][_0x363ea9[_0x51b57d(0x28f)]][_0x51b57d(0x368)]]?this[_0x51b57d(0x1de)][this[_0x51b57d(0x25f)][_0x363ea9[_0x51b57d(0x28f)]][_0x51b57d(0x368)]]:this[_0x51b57d(0x1ca)][this[_0x51b57d(0x25f)][_0x363ea9[_0x51b57d(0x28f)]][_0x51b57d(0x368)]]?this[_0x51b57d(0x1ca)][this[_0x51b57d(0x25f)][_0x363ea9[_0x51b57d(0x28f)]][_0x51b57d(0x368)]]['_rr']||0x0:0x0);this[_0x51b57d(0x1ca)][this[_0x51b57d(0x25f)][_0x363ea9[_0x51b57d(0x28f)]]['queue']][_0x51b57d(0x1e6)]=this['queueBookedRR'][this['actions'][_0x363ea9[_0x51b57d(0x28f)]]['queue']];for(let _0x9ab7cf=0x0;_0x9ab7cf=0x0?!![]:![];})[_0x426d7b(0x338)](myreject(_0x4e740c)));}else _0x433324[_0x426d7b(0x2e7)](ami[_0x426d7b(0x2a8)]({'action':_0x426d7b(0x397),'command':util[_0x426d7b(0x30b)]('iftime\x20%s,%s',_0x5cdfbd,!_['isUndefined'](config[_0x426d7b(0x2e2)][_0x30ec30])?_0x30ec30:'')})[_0x426d7b(0x285)](function(_0x38ea5d){const _0x3d24be=_0x426d7b;return _0x38ea5d['content'][_0x3d24be(0x1db)]('true')>=0x0?!![]:![];})[_0x426d7b(0x338)](myreject(_0x4e740c)));Promise['all'](_0x433324)[_0x426d7b(0x285)](function(_0x5a03ae){const _0x5a8eed=_0x426d7b,_0x16ed16=_['some'](_0x5a03ae);return _0x16ed16?_0x336b1c(_0x16ed16):(_0x46c163[_0x5a8eed(0x268)]=_0x55d613?_0x5a8eed(0x24f):_0x5a8eed(0x29e),_0x4e740c(msgResponse(_0x5a8eed(0x21f),'Failure',_0x5a8eed(0x2b3)+_0x55d613+'\x20'+_0x51212b+_0x5a8eed(0x23a)+util['inspect'](_0x5cdfbd,{'showHidden':![],'depth':null})+_0x5a8eed(0x1e2)+_0x30ec30)));})['catch'](function(_0xcd5a0a){const _0xd96dfe=_0x426d7b;return _0x4e740c(msgResponse(_0xd96dfe(0x302),'Failure',JSON[_0xd96dfe(0x37f)](_0xcd5a0a)));});});},Dialer[a1221_0x3ebab2(0x380)][a1221_0x3ebab2(0x198)]=function(_0x3c63ec){const _0x7f3af9=this;return function(){const _0x41cc7f=a1221_0x14ae;switch(_0x3c63ec[_0x41cc7f(0x36d)]){case _0x41cc7f(0x2b2):freeVariablesPredictive(_0x3c63ec),_0x7f3af9[_0x41cc7f(0x225)](_0x3c63ec,0x1);break;case'power':freeVariablesPredictive(_0x3c63ec),_0x7f3af9[_0x41cc7f(0x225)](_0x3c63ec,_0x3c63ec['dialPowerLevel']);break;case _0x41cc7f(0x32c):_0x7f3af9[_0x41cc7f(0x32c)](_0x3c63ec);break;case _0x41cc7f(0x1ff):freeVariablesPredictive(_0x3c63ec),_0x7f3af9[_0x41cc7f(0x225)](_0x3c63ec,0x1);break;default:freeVariablesPredictive(_0x3c63ec),logger['error'](_0x41cc7f(0x312),_0x3c63ec['name'],'method\x20not\x20recognized');}};},Dialer[a1221_0x3ebab2(0x380)][a1221_0x3ebab2(0x30e)]=function(_0x71383){const _0x12b725=this;return function(){_0x12b725['handleIvr'](_0x71383);};},Dialer[a1221_0x3ebab2(0x380)]['syncQueueSummary']=function(_0x4d926b){const _0x4cd829=a1221_0x3ebab2,_0x6090d5=this;isNotPreview(_0x4d926b[_0x4cd829(0x36d)])?isVoiceQueueOutbound(_0x4d926b[_0x4cd829(0x372)])&&isActive(_0x4d926b[_0x4cd829(0x391)])?(_0x4d926b[_0x4cd829(0x222)]=!![],Promise[_0x4cd829(0x28e)]()[_0x4cd829(0x285)](checkIsLoggedIn(_0x4d926b,_0x4d926b[_0x4cd829(0x1d0)]))[_0x4cd829(0x285)](checkIsActive(_0x4d926b,_0x4d926b['dialActive']))[_0x4cd829(0x285)](checkInterval(_0x4d926b))[_0x4cd829(0x285)](_0x6090d5[_0x4cd829(0x349)](_0x4d926b))[_0x4cd829(0x285)](_0x6090d5[_0x4cd829(0x340)](_0x4d926b[_0x4cd829(0x1b1)],_0x4d926b[_0x4cd829(0x277)],_0x4d926b['name'],_0x4d926b))[_0x4cd829(0x285)](_0x6090d5[_0x4cd829(0x20a)](_0x4d926b[_0x4cd829(0x1c7)],_0x4d926b[_0x4cd829(0x277)],_0x4d926b[_0x4cd829(0x279)],_0x4d926b))[_0x4cd829(0x285)](_0x6090d5[_0x4cd829(0x198)](_0x4d926b))['catch'](loggerCatchQueueSummary('[syncQueueSummary]',_0x4d926b))):notSendMessagesQueue(_0x4d926b):freeVariablesPredictive(_0x4d926b);},Dialer[a1221_0x3ebab2(0x380)][a1221_0x3ebab2(0x283)]=function(){const _0x479527=a1221_0x3ebab2,_0x3a614e=this;let _0x8573e4;for(const _0x4a3e46 in this['campaigns']){typeof this['campaigns'][_0x4a3e46]!=='undefined'&&(_0x8573e4=this['campaigns'][_0x4a3e46],isCampaignIvr(_0x8573e4[_0x479527(0x372)])&&isActive(_0x8573e4[_0x479527(0x1e4)])?(_0x8573e4[_0x479527(0x222)]=!![],Promise[_0x479527(0x28e)]()[_0x479527(0x285)](checkIsActive(_0x8573e4,_0x8573e4[_0x479527(0x1e4)]))[_0x479527(0x285)](checkInterval(_0x8573e4))[_0x479527(0x285)](_0x3a614e[_0x479527(0x349)](_0x8573e4))['then'](_0x3a614e['checkIfTime'](_0x8573e4['dialGlobalInterval'],_0x8573e4[_0x479527(0x277)],_0x8573e4[_0x479527(0x279)],_0x8573e4))['then'](_0x3a614e[_0x479527(0x20a)](_0x8573e4[_0x479527(0x1c7)],_0x8573e4[_0x479527(0x277)],_0x8573e4[_0x479527(0x279)],_0x8573e4))[_0x479527(0x285)](_0x3a614e[_0x479527(0x30e)](_0x8573e4))[_0x479527(0x338)](loggerCatchQueueSummary(_0x479527(0x1cb),_0x8573e4))):notSendMessagesCampaign(_0x8573e4));}};function getCallerIdRandom(_0x5c79be,_0x4a3d97){const _0x58321b=a1221_0x3ebab2;_0x4a3d97<=0x0&&(_0x4a3d97=0x1);const _0xa9d89c=new RegExp(_0x58321b(0x2e5)+_0x4a3d97+'}$'),_0x3d8656=Math['pow'](0xa,_0x4a3d97-0x1),_0xf6b084=Math['pow'](0xa,_0x4a3d97)-0x1;return util[_0x58321b(0x30b)]('%s',_[_0x58321b(0x345)](_0x5c79be,_0xa9d89c,_['random'](_0x3d8656,_0xf6b084)));}function extractCalleridName(_0x49a3dd){const _0x23f835=a1221_0x3ebab2,_0x22a0f6=_0x49a3dd[_0x23f835(0x369)](/"(.*?)"/);return _0x22a0f6?_0x22a0f6[0x1]:_0x49a3dd;}function extractCalleridNumber(_0x1d3a52){const _0x38130e=a1221_0x3ebab2,_0x14a8d0=_0x1d3a52[_0x38130e(0x369)](/<(.*?)>/);return _0x14a8d0?_0x14a8d0[0x1]:_0x1d3a52;}Dialer[a1221_0x3ebab2(0x380)]['actionOriginate']=function(_0x1b919b,_0x3befb6){const _0xef5013=a1221_0x3ebab2,_0x533998=getConfigService(),_0x44afc8=this,_0x4263a2=uuid['v4']();return this[_0xef5013(0x25f)][_0x4263a2]=new Action(_0x1b919b,_0x3befb6,_0x4263a2),new Promise(function(_0x16bc00,_0x5ba54d){const _0x23566a=_0xef5013;if(_[_0x23566a(0x39a)](_0x1b919b)&&'object'!==typeof _0x1b919b)return _0x5ba54d(msgResponse(_0x23566a(0x396),_0x23566a(0x1c8),_0x23566a(0x200)));if(_[_0x23566a(0x39a)](_0x3befb6[_0x23566a(0x39b)]['phone'])||_0x3befb6['Contact'][_0x23566a(0x1d6)]===null)return _0x5ba54d(msgResponse(_0x23566a(0x396),'Failure',_0x23566a(0x332)));const _0x553b06={'XMD-CALLERID':_0x44afc8[_0x23566a(0x25f)][_0x4263a2][_0x23566a(0x18f)](),'XMD-AGI':_0x1b919b['dialQueueProject']?util[_0x23566a(0x30b)](_0x23566a(0x34e),_0x533998['agiIp'],_0x1b919b[_0x23566a(0x19d)]):_0x23566a(0x297),'XMD-AGIAFTER':_0x1b919b[_0x23566a(0x27b)]?util['format'](_0x23566a(0x34e),_0x533998['agiIp'],_0x1b919b[_0x23566a(0x27b)]):'NONE','XMD-QUEUE':_0x1b919b[_0x23566a(0x372)]===_0x23566a(0x29c)?util[_0x23566a(0x30b)](_0x23566a(0x2ae),_0x1b919b[_0x23566a(0x279)],_0x1b919b[_0x23566a(0x1d5)]||'',_0x1b919b[_0x23566a(0x2d5)]?'c':'',_0x1b919b[_0x23566a(0x387)]||0x3):_0x23566a(0x297),'XMD-CONTACTID':_0x3befb6[_0x23566a(0x1ea)],'XMD-CDRTYPE':_0x23566a(0x231),'CALLERID(all)':_0x44afc8[_0x23566a(0x25f)][_0x4263a2]['getCaller'](),'XMD-AMD':_0x1b919b[_0x23566a(0x1fc)]?'ACTIVE':'NONE','XMD-DESTINATION':_0x23566a(0x31a)};_0x1b919b[_0x23566a(0x1fc)]&&(_0x553b06[_0x23566a(0x300)]=_0x1b919b[_0x23566a(0x2b7)]||0x9c4,_0x553b06[_0x23566a(0x383)]=_0x1b919b[_0x23566a(0x1b5)]||0x5dc,_0x553b06[_0x23566a(0x34f)]=_0x1b919b[_0x23566a(0x1ef)]||0x320,_0x553b06[_0x23566a(0x20b)]=_0x1b919b[_0x23566a(0x239)]||0x1388,_0x553b06[_0x23566a(0x275)]=_0x1b919b[_0x23566a(0x344)]||0x64,_0x553b06[_0x23566a(0x211)]=_0x1b919b[_0x23566a(0x2c6)]||0x32,_0x553b06[_0x23566a(0x224)]=_0x1b919b[_0x23566a(0x2ac)]||0x3,_0x553b06[_0x23566a(0x32f)]=_0x1b919b[_0x23566a(0x250)]||0x100,_0x553b06['XMD-AMDMAXIMUMWORDLENGTH']=_0x1b919b[_0x23566a(0x38f)]||0x1388);_0x1b919b[_0x23566a(0x372)]===_0x23566a(0x29c)?_0x553b06[_0x23566a(0x2cf)]=_0x3befb6[_0x23566a(0x270)]:_0x553b06['XMD-CAMPAIGNID']=_0x3befb6[_0x23566a(0x25c)];for(const _0x26d1b9 in _0x3befb6['Contact']){typeof _0x3befb6[_0x23566a(0x39b)][_0x26d1b9]!==_0x23566a(0x1fd)&&(isNotNull(_0x3befb6[_0x23566a(0x39b)][_0x26d1b9])&&_0x26d1b9!=='id'&&_0x26d1b9!==_0x23566a(0x1c6)&&_0x26d1b9!==_0x23566a(0x2c0)&&_0x26d1b9!==_0x23566a(0x323)&&(_0x553b06[util[_0x23566a(0x30b)](_0x23566a(0x2f3),_0x23566a(0x205),_[_0x23566a(0x32b)](_0x26d1b9))]=_0x3befb6[_0x23566a(0x39b)][_0x26d1b9]));}const _0x4f6109=_0x44afc8[_0x23566a(0x238)](_0x1b919b[_0x23566a(0x2ea)])?getCallerId(_0x1b919b[_0x23566a(0x2ea)][_0x23566a(0x36f)],_0x1b919b[_0x23566a(0x206)],_0x1b919b['dialRandomLastDigitCallerIdNumber']>0x0?getCallerIdRandom(_0x1b919b['dialOriginateCallerIdNumber'],_0x1b919b[_0x23566a(0x33f)]):_0x1b919b[_0x23566a(0x19e)]):getCallerId(_[_0x23566a(0x1ad)](_0x1b919b['TrunkBackup'])?_0x1b919b['Trunk'][_0x23566a(0x36f)]:_0x1b919b[_0x23566a(0x362)][_0x23566a(0x36f)],_0x1b919b[_0x23566a(0x206)],_0x1b919b[_0x23566a(0x33f)]>0x0?getCallerIdRandom(_0x1b919b[_0x23566a(0x19e)],_0x1b919b[_0x23566a(0x33f)]):_0x1b919b[_0x23566a(0x19e)]);if(_0x4f6109){const _0x5eab4b=extractCalleridName(_0x4f6109);_0x553b06['XMD-ORIGINATECALLERIDNAME']=_0x5eab4b,_0x44afc8[_0x23566a(0x25f)][_0x4263a2]['originatecalleridname']=_0x5eab4b;const _0x40a4c7=extractCalleridNumber(_0x4f6109);_0x553b06['XMD-ORIGINATECALLERIDNUM']==_0x40a4c7,_0x44afc8[_0x23566a(0x25f)][_0x4263a2][_0x23566a(0x24a)]=_0x40a4c7;}return ami[_0x23566a(0x2a8)]({'actionid':_0x4263a2,'action':_0x23566a(0x396),'channel':_0x44afc8[_0x23566a(0x238)](_0x1b919b['Trunk'])?util[_0x23566a(0x30b)](_0x23566a(0x34b),_0x1b919b[_0x23566a(0x2ea)][_0x23566a(0x279)],isNotNull(_0x1b919b[_0x23566a(0x394)])?_0x1b919b[_0x23566a(0x394)][_0x23566a(0x210)]()||'':'',_0x1b919b[_0x23566a(0x19b)]>0x0?_0x3befb6[_0x23566a(0x39b)][_0x23566a(0x1d6)][_0x23566a(0x254)](_0x1b919b[_0x23566a(0x19b)]):_0x3befb6[_0x23566a(0x39b)][_0x23566a(0x1d6)]):util['format']('SIP/%s/%s%s',_[_0x23566a(0x1ad)](_0x1b919b[_0x23566a(0x362)])?_0x1b919b[_0x23566a(0x2ea)][_0x23566a(0x279)]:_0x1b919b[_0x23566a(0x362)][_0x23566a(0x279)],isNotNull(_0x1b919b[_0x23566a(0x394)])?_0x1b919b[_0x23566a(0x394)]['trim']()||'':'',_0x1b919b[_0x23566a(0x19b)]>0x0?_0x3befb6[_0x23566a(0x39b)][_0x23566a(0x1d6)]['substring'](_0x1b919b[_0x23566a(0x19b)]):_0x3befb6['Contact'][_0x23566a(0x1d6)]),'callerid':_0x4f6109,'Exten':_0x23566a(0x31a),'Context':_0x23566a(0x2b6),'Priority':'1','variable':_0x553b06,'timeout':(_0x1b919b['dialOriginateTimeout']||0x1e)*0x3e8,'async':!![],'channelid':_0x4263a2})[_0x23566a(0x285)](function(_0x584ca8){return _0x16bc00(_0x584ca8);})['catch'](function(_0x4cc700){const _0x1737c7=_0x23566a;_0x1b919b[_0x1737c7(0x377)]+=0x1;const _0xfe97a9=new History(_0x44afc8[_0x1737c7(0x25f)][_0x4263a2]);logger[_0x1737c7(0x19a)](util['format'](_0x1737c7(0x35c),JSON[_0x1737c7(0x37f)](_0x4cc700))),_0xfe97a9[_0x1737c7(0x228)]=0xe,_0xfe97a9[_0x1737c7(0x2a6)]='OriginateError',_0xfe97a9[_0x1737c7(0x398)]=moment()[_0x1737c7(0x30b)]('YYYY-MM-DD\x20HH:mm:ss'),_0xfe97a9[_0x1737c7(0x32e)]=_0xfe97a9['starttime'],_0x44afc8['createHistory'](_0xfe97a9)[_0x1737c7(0x338)](loggerCatch('[originate][error]')),_0x44afc8['moveContactManagedDialer'](_0xfe97a9)[_0x1737c7(0x338)](loggerCatch(_0x1737c7(0x1bd)))[_0x1737c7(0x1c2)](function(){const _0x323910=_0x1737c7;return delete _0x44afc8[_0x323910(0x25f)][_0x4263a2],_0x5ba54d(msgResponse(_0x323910(0x396),_0x323910(0x23b),_0x323910(0x2b8)));});});});},Dialer[a1221_0x3ebab2(0x380)][a1221_0x3ebab2(0x2f0)]=function(_0x547d0a){const _0x18a457=a1221_0x3ebab2,_0x4e64b8=this['actions'][_0x547d0a[_0x18a457(0x28f)]];if(_0x4e64b8){delete this[_0x18a457(0x25f)][_0x547d0a['actionid']],_0x4e64b8[_0x18a457(0x2c3)]=moment()[_0x18a457(0x30b)](_0x18a457(0x2b1));const _0x4f5429=_0x4e64b8[_0x18a457(0x372)]===_0x18a457(0x2d8)?this['campaigns'][_0x4e64b8[_0x18a457(0x368)]]:this[_0x18a457(0x220)][_0x4e64b8[_0x18a457(0x2c2)]()];if(!this[_0x18a457(0x322)](_0x547d0a[_0x18a457(0x2c7)]))return this[_0x18a457(0x1fe)](_0x4f5429),this[_0x18a457(0x1fa)](_0x4e64b8,_0x4f5429,_0x547d0a)[_0x18a457(0x285)](function(){})[_0x18a457(0x338)](loggerCatch(_0x18a457(0x2c4)));else this[_0x18a457(0x307)][_0x547d0a[_0x18a457(0x276)]]=_0x4e64b8;}},Dialer[a1221_0x3ebab2(0x380)][a1221_0x3ebab2(0x38c)]=function(_0x49e749,_0x38fbbc,_0x11f26e){const _0x41bf3d=a1221_0x3ebab2,_0x319cb6=new History(_0x38fbbc);if(_0x319cb6[_0x41bf3d(0x342)]+_0x319cb6[_0x41bf3d(0x1d8)]+_0x319cb6[_0x41bf3d(0x36c)]+_0x319cb6[_0x41bf3d(0x29b)]+_0x319cb6[_0x41bf3d(0x39c)]+_0x319cb6[_0x41bf3d(0x1c3)]+_0x319cb6[_0x41bf3d(0x226)]+_0x319cb6[_0x41bf3d(0x303)]>=_0x11f26e[_0x41bf3d(0x2a5)]-0x1)return!![];switch(_0x49e749){case 0x3:if(_0x319cb6['countnoanswerretry']>=_0x11f26e[_0x41bf3d(0x2f7)]-0x1)return!![];else this['rescheduleContact']({'active':![],'countnoanswerretry':_0x319cb6[_0x41bf3d(0x36c)]+=0x1,'scheduledat':moment()[_0x41bf3d(0x1be)](_0x11f26e[_0x41bf3d(0x1e5)],_0x41bf3d(0x26b))[_0x41bf3d(0x30b)]('YYYY-MM-DD\x20HH:mm:ss'),'ContactId':_0x319cb6[_0x41bf3d(0x1ea)],'ListId':_0x319cb6[_0x41bf3d(0x393)],'VoiceQueueId':_0x319cb6[_0x41bf3d(0x270)]||undefined,'CampaignId':_0x319cb6['CampaignId']||undefined})[_0x41bf3d(0x338)](loggerCatch(_0x41bf3d(0x33a)));break;case 0x5:if(_0x319cb6[_0x41bf3d(0x342)]>=_0x11f26e[_0x41bf3d(0x263)]-0x1)return!![];else this[_0x41bf3d(0x1bf)]({'active':![],'countbusyretry':_0x319cb6[_0x41bf3d(0x342)]+=0x1,'scheduledat':moment()[_0x41bf3d(0x1be)](_0x11f26e['dialBusyRetryFrequency'],_0x41bf3d(0x26b))['format']('YYYY-MM-DD\x20HH:mm:ss'),'ContactId':_0x319cb6[_0x41bf3d(0x1ea)],'ListId':_0x319cb6['ListId'],'VoiceQueueId':_0x319cb6[_0x41bf3d(0x270)]||undefined,'CampaignId':_0x319cb6[_0x41bf3d(0x25c)]||undefined})[_0x41bf3d(0x338)](loggerCatch(_0x41bf3d(0x21d)));break;case 0x8:if(_0x319cb6[_0x41bf3d(0x1d8)]>=_0x11f26e[_0x41bf3d(0x24d)]-0x1)return!![];else this[_0x41bf3d(0x1bf)]({'active':![],'countcongestionretry':_0x319cb6[_0x41bf3d(0x1d8)]+=0x1,'scheduledat':moment()[_0x41bf3d(0x1be)](_0x11f26e[_0x41bf3d(0x310)],_0x41bf3d(0x26b))[_0x41bf3d(0x30b)](_0x41bf3d(0x2b1)),'ContactId':_0x319cb6[_0x41bf3d(0x1ea)],'ListId':_0x319cb6[_0x41bf3d(0x393)],'VoiceQueueId':_0x319cb6['VoiceQueueId']||undefined,'CampaignId':_0x319cb6[_0x41bf3d(0x25c)]||undefined})[_0x41bf3d(0x338)](loggerCatch(_0x41bf3d(0x201)));break;case 0x0:if(_0x319cb6[_0x41bf3d(0x29b)]>=_0x11f26e[_0x41bf3d(0x360)]-0x1)return!![];else this[_0x41bf3d(0x1bf)]({'active':![],'countnosuchnumberretry':_0x319cb6[_0x41bf3d(0x29b)]+=0x1,'scheduledat':moment()[_0x41bf3d(0x1be)](_0x11f26e['dialNoSuchNumberRetryFrequency'],_0x41bf3d(0x26b))[_0x41bf3d(0x30b)](_0x41bf3d(0x2b1)),'ContactId':_0x319cb6[_0x41bf3d(0x1ea)],'ListId':_0x319cb6[_0x41bf3d(0x393)],'VoiceQueueId':_0x319cb6[_0x41bf3d(0x270)]||undefined,'CampaignId':_0x319cb6[_0x41bf3d(0x25c)]||undefined})[_0x41bf3d(0x338)](loggerCatch(_0x41bf3d(0x37e)));break;case 0xa:if(_0x319cb6[_0x41bf3d(0x39c)]>=_0x11f26e['dialDropMaxRetry']-0x1)return!![];else this[_0x41bf3d(0x1bf)]({'active':![],'countdropretry':_0x319cb6[_0x41bf3d(0x39c)]+=0x1,'scheduledat':moment()[_0x41bf3d(0x1be)](_0x11f26e[_0x41bf3d(0x233)],'minutes')['format'](_0x41bf3d(0x2b1)),'ContactId':_0x319cb6[_0x41bf3d(0x1ea)],'ListId':_0x319cb6[_0x41bf3d(0x393)],'VoiceQueueId':_0x319cb6[_0x41bf3d(0x270)]||undefined,'CampaignId':_0x319cb6['CampaignId']||undefined})[_0x41bf3d(0x338)](loggerCatch('[rescheduleContact][Drop]'));break;case 0xb:if(_0x319cb6[_0x41bf3d(0x1c3)]>=_0x11f26e[_0x41bf3d(0x272)]-0x1)return!![];else this['rescheduleContact']({'active':![],'countabandonedretry':_0x319cb6[_0x41bf3d(0x1c3)]+=0x1,'scheduledat':moment()[_0x41bf3d(0x1be)](_0x11f26e[_0x41bf3d(0x1ed)],_0x41bf3d(0x26b))[_0x41bf3d(0x30b)](_0x41bf3d(0x2b1)),'ContactId':_0x319cb6[_0x41bf3d(0x1ea)],'ListId':_0x319cb6[_0x41bf3d(0x393)],'VoiceQueueId':_0x319cb6[_0x41bf3d(0x270)]||undefined,'CampaignId':_0x319cb6[_0x41bf3d(0x25c)]||undefined})[_0x41bf3d(0x338)](loggerCatch(_0x41bf3d(0x2f1)));break;case 0x13:if(_0x319cb6[_0x41bf3d(0x226)]>=_0x11f26e[_0x41bf3d(0x30c)]-0x1)return!![];else this[_0x41bf3d(0x1bf)]({'active':![],'countmachineretry':_0x319cb6[_0x41bf3d(0x226)]+=0x1,'scheduledat':moment()[_0x41bf3d(0x1be)](_0x11f26e[_0x41bf3d(0x209)],_0x41bf3d(0x26b))[_0x41bf3d(0x30b)]('YYYY-MM-DD\x20HH:mm:ss'),'ContactId':_0x319cb6[_0x41bf3d(0x1ea)],'ListId':_0x319cb6['ListId'],'VoiceQueueId':_0x319cb6[_0x41bf3d(0x270)]||undefined,'CampaignId':_0x319cb6[_0x41bf3d(0x25c)]||undefined})[_0x41bf3d(0x338)](loggerCatch(_0x41bf3d(0x2c1)));break;case 0x14:if(_0x319cb6[_0x41bf3d(0x303)]>=_0x11f26e[_0x41bf3d(0x2db)]-0x1)return!![];else this[_0x41bf3d(0x1bf)]({'active':![],'countagentrejectretry':_0x319cb6[_0x41bf3d(0x303)]+=0x1,'scheduledat':moment()[_0x41bf3d(0x1be)](_0x11f26e[_0x41bf3d(0x294)],_0x41bf3d(0x26b))[_0x41bf3d(0x30b)](_0x41bf3d(0x2b1)),'ContactId':_0x319cb6['ContactId'],'ListId':_0x319cb6[_0x41bf3d(0x393)],'VoiceQueueId':_0x319cb6[_0x41bf3d(0x270)]||undefined,'CampaignId':_0x319cb6[_0x41bf3d(0x25c)]||undefined})[_0x41bf3d(0x338)](loggerCatch(_0x41bf3d(0x2aa)));break;default:return!![];}},Dialer[a1221_0x3ebab2(0x380)]['callProgressDetecting']=function(_0x473114,_0x395431,_0x4d3d06){const _0x5c51b8=this,_0x3b123b=new History(_0x473114);return new Promise(function(_0x31784e,_0x5431fe){const _0x3ccd04=a1221_0x14ae;if(_[_0x3ccd04(0x39a)](_0x395431)&&'object'!==typeof _0x395431)return _0x5431fe(msgResponse('[callProgressDetecting]','Failure','entity\x20is\x20undefine'));if(_[_0x3ccd04(0x39a)](_0x4d3d06)&&_0x3ccd04(0x305)!==typeof _0x4d3d06)return _0x5431fe(msgResponse(_0x3ccd04(0x2d7),_0x3ccd04(0x1c8),_0x3ccd04(0x253)));switch(_0x4d3d06[_0x3ccd04(0x236)]){case'0':_0x395431[_0x3ccd04(0x286)]+=0x1,_0x3b123b[_0x3ccd04(0x228)]=0x0,_0x3b123b[_0x3ccd04(0x2a6)]=_0x3ccd04(0x32d),_0x3b123b[_0x3ccd04(0x29b)]+=0x1,_0x3b123b[_0x3ccd04(0x329)]+=0x1,ami['emit'](_0x3ccd04(0x373),ut[_0x3ccd04(0x33e)](_0x473114,_0x3ccd04(0x218))),_0x5c51b8[_0x3ccd04(0x27e)](_0x3b123b)['catch'](loggerCatch(_0x3ccd04(0x2da)));_0x5c51b8['checkRetriveMax'](0x0,_0x473114,_0x395431)&&(_0x3b123b[_0x3ccd04(0x29b)]>=_0x395431[_0x3ccd04(0x360)]?_0x5c51b8['createStateFinal'](_0x3b123b,_0x31784e,_0x5431fe,_0x3ccd04(0x23c)):_0x5c51b8[_0x3ccd04(0x18d)](_0x3b123b,_0x31784e,_0x5431fe,_0x3ccd04(0x23c)));break;case'3':_0x395431['outboundNoAnswerCallsDay']+=0x1,_0x3b123b[_0x3ccd04(0x228)]=0x3,_0x3b123b[_0x3ccd04(0x2a6)]=_0x3ccd04(0x214),_0x3b123b[_0x3ccd04(0x36c)]+=0x1,_0x3b123b[_0x3ccd04(0x329)]+=0x1,ami['emit'](_0x3ccd04(0x1a1),ut['buildObj'](_0x473114,_0x3ccd04(0x280))),_0x5c51b8[_0x3ccd04(0x27e)](_0x3b123b)[_0x3ccd04(0x338)](loggerCatch(_0x3ccd04(0x311)));_0x5c51b8[_0x3ccd04(0x38c)](0x3,_0x473114,_0x395431)&&(_0x3b123b['countnoanswerretry']>=_0x395431[_0x3ccd04(0x2f7)]?_0x5c51b8['createStateFinal'](_0x3b123b,_0x31784e,_0x5431fe,_0x3ccd04(0x353)):_0x5c51b8['stateGlobal'](_0x3b123b,_0x31784e,_0x5431fe,_0x3ccd04(0x353)));break;case'5':_0x395431['outboundBusyCallsDay']+=0x1,_0x3b123b[_0x3ccd04(0x228)]=0x5,_0x3b123b['statedesc']=_0x3ccd04(0x2ad),_0x3b123b[_0x3ccd04(0x342)]+=0x1,_0x3b123b[_0x3ccd04(0x329)]+=0x1,ami['emit'](_0x3ccd04(0x371),ut['buildObj'](_0x473114,_0x3ccd04(0x271))),_0x5c51b8[_0x3ccd04(0x27e)](_0x3b123b)[_0x3ccd04(0x338)](loggerCatch(_0x3ccd04(0x351)));_0x5c51b8[_0x3ccd04(0x38c)](0x5,_0x473114,_0x395431)&&(_0x3b123b[_0x3ccd04(0x342)]>=_0x395431[_0x3ccd04(0x263)]?_0x5c51b8['createStateFinal'](_0x3b123b,_0x31784e,_0x5431fe,_0x3ccd04(0x35e)):_0x5c51b8[_0x3ccd04(0x18d)](_0x3b123b,_0x31784e,_0x5431fe,_0x3ccd04(0x35e)));break;case'8':_0x395431[_0x3ccd04(0x324)]+=0x1,_0x3b123b['state']=0x8,_0x3b123b[_0x3ccd04(0x2a6)]=_0x3ccd04(0x25e),_0x3b123b[_0x3ccd04(0x1d8)]+=0x1,_0x3b123b[_0x3ccd04(0x329)]+=0x1,ami[_0x3ccd04(0x2e3)](_0x3ccd04(0x289),ut[_0x3ccd04(0x33e)](_0x473114,_0x3ccd04(0x1ae))),_0x5c51b8[_0x3ccd04(0x27e)](_0x3b123b)[_0x3ccd04(0x338)](loggerCatch(_0x3ccd04(0x2d2)));_0x5c51b8['checkRetriveMax'](0x8,_0x473114,_0x395431)&&(_0x3b123b['countcongestionretry']>=_0x395431[_0x3ccd04(0x24d)]?_0x5c51b8['createStateFinal'](_0x3b123b,_0x31784e,_0x5431fe,_0x3ccd04(0x273)):_0x5c51b8[_0x3ccd04(0x18d)](_0x3b123b,_0x31784e,_0x5431fe,'reason\x208\x20congestion'));break;case'11':_0x395431['outboundAbandonedCallsDay']+=0x1,_0x3b123b[_0x3ccd04(0x228)]=0xb,_0x3b123b['statedesc']=_0x3ccd04(0x2c9),_0x3b123b[_0x3ccd04(0x1c3)]+=0x1,_0x3b123b[_0x3ccd04(0x329)]+=0x1,_0x5c51b8[_0x3ccd04(0x27e)](_0x3b123b)[_0x3ccd04(0x338)](loggerCatch(_0x3ccd04(0x2f5)));_0x5c51b8[_0x3ccd04(0x38c)](0xb,_0x473114,_0x395431)&&(_0x3b123b[_0x3ccd04(0x1c3)]>=_0x395431[_0x3ccd04(0x272)]?_0x5c51b8['createStateFinal'](_0x3b123b,_0x31784e,_0x5431fe,'reason\x2011\x20abandoned'):_0x5c51b8[_0x3ccd04(0x18d)](_0x3b123b,_0x31784e,_0x5431fe,_0x3ccd04(0x2eb)));break;case'20':_0x395431['outboundRejectCallsDay']+=0x1,_0x3b123b[_0x3ccd04(0x228)]=0x14,_0x3b123b[_0x3ccd04(0x2a6)]=_0x3ccd04(0x339),_0x3b123b[_0x3ccd04(0x303)]+=0x1,_0x3b123b[_0x3ccd04(0x329)]+=0x1,ami[_0x3ccd04(0x2e3)](_0x3ccd04(0x26e),ut[_0x3ccd04(0x33e)](_0x473114,_0x3ccd04(0x31f))),_0x5c51b8['createHistory'](_0x3b123b)[_0x3ccd04(0x338)](loggerCatch(_0x3ccd04(0x2b0)));_0x5c51b8[_0x3ccd04(0x38c)](0x14,_0x473114,_0x395431)&&(_0x3b123b[_0x3ccd04(0x303)]>=_0x395431[_0x3ccd04(0x2db)]?_0x5c51b8[_0x3ccd04(0x261)](_0x3b123b,_0x31784e,_0x5431fe,_0x3ccd04(0x262)):_0x5c51b8[_0x3ccd04(0x18d)](_0x3b123b,_0x31784e,_0x5431fe,_0x3ccd04(0x262)));break;default:_0x395431[_0x3ccd04(0x31e)]+=0x1,_0x3b123b[_0x3ccd04(0x228)]=0xc,_0x3b123b[_0x3ccd04(0x2a6)]=_0x4d3d06[_0x3ccd04(0x236)],_0x5c51b8['createHistory'](_0x3b123b)[_0x3ccd04(0x338)](loggerCatch(_0x3ccd04(0x390)));_0x5c51b8[_0x3ccd04(0x38c)](_0x4d3d06['reason'],_0x473114,_0x395431)&&(_0x3b123b[_0x3ccd04(0x342)]+_0x3b123b[_0x3ccd04(0x1d8)]+_0x3b123b[_0x3ccd04(0x36c)]+_0x3b123b['countnosuchnumberretry']+_0x3b123b[_0x3ccd04(0x39c)]+_0x3b123b['countabandonedretry']+_0x3b123b[_0x3ccd04(0x226)]+_0x3b123b[_0x3ccd04(0x303)]>=_0x395431[_0x3ccd04(0x2a5)]?_0x5c51b8[_0x3ccd04(0x18d)](_0x3b123b,_0x31784e,_0x5431fe,_0x4d3d06[_0x3ccd04(0x236)]):_0x5c51b8['createStateFinal'](_0x3b123b,_0x31784e,_0x5431fe,_0x4d3d06[_0x3ccd04(0x236)]));}});},Dialer[a1221_0x3ebab2(0x380)]['stateGlobal']=function(_0x594bae,_0x33acdf,_0x2de261,_0x5c9d29){const _0x57f1a5=a1221_0x3ebab2,_0x1b32d4=new Final(_0x594bae);_0x1b32d4[_0x57f1a5(0x228)]=0xf,_0x1b32d4[_0x57f1a5(0x2a6)]='Global',this['createStateFinal'](_0x1b32d4,_0x33acdf,_0x2de261,_0x5c9d29);},Dialer[a1221_0x3ebab2(0x380)][a1221_0x3ebab2(0x261)]=function(_0x1b9367,_0x4d9b06,_0x1c5cc0,_0xce60e){const _0x5b7470=a1221_0x3ebab2;this[_0x5b7470(0x2e6)](_0x1b9367)[_0x5b7470(0x285)](function(){const _0x337190=_0x5b7470;return _0x4d9b06(msgResponse(_0x337190(0x2d7),_0x337190(0x247),_0xce60e));})['catch'](function(){const _0x21e4ab=_0x5b7470;return _0x1c5cc0(msgResponse(_0x21e4ab(0x1f0),_0x21e4ab(0x1c8),_0x21e4ab(0x1c5)));});},Dialer[a1221_0x3ebab2(0x380)]['predictive']=function(_0x5a0d1b){const _0x98da8f=a1221_0x3ebab2,_0x58afb4=_0x5a0d1b['dialPredictiveOptimizationPercentage']/0x64,_0x31966=_0x5a0d1b['outboundDropCallsDayTimeout']/(_0x5a0d1b['outboundDropCallsDayTimeout']+_0x5a0d1b[_0x98da8f(0x35a)]),_0x53c890=Math[_0x98da8f(0x309)](_0x5a0d1b[_0x98da8f(0x221)]*(_0x5a0d1b['predictiveIntervalMaxThreshold']/0x64)),_0x2a9620=Math[_0x98da8f(0x309)](_0x5a0d1b[_0x98da8f(0x221)]*(_0x5a0d1b[_0x98da8f(0x1f1)]/0x64)),_0x579c5d=_0x5a0d1b[_0x98da8f(0x246)]+_0x5a0d1b['talking'],_0x5c5b74=Math['floor'](_0x5a0d1b[_0x98da8f(0x30f)]*_0x5a0d1b['erlangAbandonmentRate']*_0x5a0d1b[_0x98da8f(0x26a)]*_0x5a0d1b[_0x98da8f(0x1fb)]);if(_['isUndefined'](_0x5a0d1b['startProgressive']))!_[_0x98da8f(0x39a)](_0x5a0d1b['startPredictive'])&&(_0x5a0d1b[_0x98da8f(0x343)]=undefined,loggerPredictive['error'](_0x98da8f(0x202),'check\x20predictive\x20is\x20not\x20undefine')),!_[_0x98da8f(0x39a)](_0x5a0d1b['handlePredictive'])&&(loggerPredictive[_0x98da8f(0x19a)]('[startMethodPredictive][StartProgressive]',_0x98da8f(0x1b9)),clearInterval(_0x5a0d1b[_0x98da8f(0x347)]),_0x5a0d1b['handlePredictive']=undefined),_0x5a0d1b[_0x98da8f(0x1aa)]=moment()[_0x98da8f(0x30b)](_0x98da8f(0x2b1)),loggerPredictive[_0x98da8f(0x37b)](_0x5a0d1b[_0x98da8f(0x279)],'collection\x20data\x20in\x20progressive\x20at',_0x5a0d1b[_0x98da8f(0x1aa)]),this[_0x98da8f(0x225)](_0x5a0d1b,0x1);else{if(ifInterval(_0x5a0d1b['dialPredictiveInterval'],_0x5a0d1b[_0x98da8f(0x1aa)]))this['handlePower'](_0x5a0d1b,0x1),loggerPredictiveCalls[_0x98da8f(0x37b)](_0x98da8f(0x18c),_0x5a0d1b[_0x98da8f(0x1aa)],_0x5a0d1b[_0x98da8f(0x279)]),_0x5a0d1b[_0x98da8f(0x30f)]=0x0,_0x5a0d1b['predictiveIntervalErlangCallsDroppedCalls']=0x0;else{if(_0x58afb4<_0x31966&&_0x5a0d1b['dialPredictiveOptimization']==='dropRate')freeVariablesPredictive(_0x5a0d1b),loggerPredictive[_0x98da8f(0x37b)](_0x98da8f(0x308),_0x98da8f(0x237),_0x31966,'startProgressive',_0x5a0d1b[_0x98da8f(0x279)]);else{if(_0x5c5b74<_0x5a0d1b[_0x98da8f(0x1f8)]&&_0x5a0d1b[_0x98da8f(0x341)]===_0x98da8f(0x265))freeVariablesPredictive(_0x5a0d1b),loggerPredictive[_0x98da8f(0x37b)](_0x98da8f(0x389),_0x98da8f(0x1ce),_0x5c5b74,_0x98da8f(0x1b6),_0x5a0d1b[_0x98da8f(0x1f8)],'startProgressive',_0x5a0d1b['name']);else{if(!ifInterval(_0x5a0d1b[_0x98da8f(0x252)],_0x5a0d1b[_0x98da8f(0x1aa)])&&_[_0x98da8f(0x39a)](_0x5a0d1b[_0x98da8f(0x343)])&&!_['isUndefined'](_0x5a0d1b['startProgressive']))_0x5a0d1b[_0x98da8f(0x343)]=moment()[_0x98da8f(0x30b)]('YYYY-MM-DD\x20HH:mm:ss'),loggerPredictive['info'](_0x5a0d1b[_0x98da8f(0x279)],_0x98da8f(0x382),_0x5a0d1b[_0x98da8f(0x343)]),this[_0x98da8f(0x223)](_0x5a0d1b[_0x98da8f(0x252)])[_0x98da8f(0x285)](this[_0x98da8f(0x1b4)](_0x5a0d1b))[_0x98da8f(0x285)](mergeDataErlangB(_0x5a0d1b))[_0x98da8f(0x285)](this[_0x98da8f(0x1a0)](_0x5a0d1b))[_0x98da8f(0x338)](loggerCatchPredictive(_0x98da8f(0x331),_0x5a0d1b));else{if(!ifInterval(_0x5a0d1b[_0x98da8f(0x252)],_0x5a0d1b['startPredictive']))_0x5a0d1b[_0x98da8f(0x1f8)]=0x0,_0x5a0d1b[_0x98da8f(0x343)]=moment()['format'](_0x98da8f(0x2b1)),loggerPredictive[_0x98da8f(0x37b)](_0x5a0d1b[_0x98da8f(0x279)],_0x98da8f(0x301),_0x5a0d1b[_0x98da8f(0x343)]),clearInterval(_0x5a0d1b[_0x98da8f(0x347)]),_0x5a0d1b[_0x98da8f(0x347)]=undefined,this[_0x98da8f(0x223)](_0x5a0d1b['dialPredictiveInterval'])[_0x98da8f(0x285)](this['getDataPredictive'](_0x5a0d1b))[_0x98da8f(0x285)](mergeDataErlangB(_0x5a0d1b))[_0x98da8f(0x285)](this[_0x98da8f(0x1a0)](_0x5a0d1b))[_0x98da8f(0x338)](loggerCatchPredictive(_0x98da8f(0x18a),_0x5a0d1b));else{if(_0x5a0d1b[_0x98da8f(0x221)]&&_0x579c5d<_0x5a0d1b[_0x98da8f(0x221)]-_0x2a9620)freeVariablesPredictive(_0x5a0d1b),loggerPredictive[_0x98da8f(0x37b)](_0x5a0d1b['name'],_0x98da8f(0x346),_0x579c5d,_0x98da8f(0x22f),_0x5a0d1b[_0x98da8f(0x221)],'-',_0x2a9620,'=',_0x5a0d1b['predictiveIntervalAvailable']-_0x2a9620,')');else _0x5a0d1b[_0x98da8f(0x221)]&&_0x579c5d>_0x5a0d1b[_0x98da8f(0x221)]+_0x53c890&&(freeVariablesPredictive(_0x5a0d1b),loggerPredictive[_0x98da8f(0x37b)](_0x5a0d1b[_0x98da8f(0x279)],_0x98da8f(0x346),_0x579c5d,')\x20are\x20more\x20than\x20threshold\x20(',_0x5a0d1b[_0x98da8f(0x221)],'+',_0x53c890,'=',_0x5a0d1b[_0x98da8f(0x221)]+_0x53c890,')'));}}}}}}},Dialer[a1221_0x3ebab2(0x380)][a1221_0x3ebab2(0x1b4)]=function(_0x4d52dc){const _0x53451a=this;return function(_0x50b849){return new Promise(function(_0x91cb46,_0x3ce4c1){const _0x5a793e=a1221_0x14ae;_[_0x5a793e(0x212)](_0x4d52dc,_0x50b849[0x0]);if(checkGetDataPredictive(_0x50b849[0x0])){const _0x320055=_0x4d52dc['talking']+_0x4d52dc[_0x5a793e(0x246)];_0x4d52dc[_0x5a793e(0x221)]=_0x320055;const _0x24073d=_0x320055,_0x292394=_0x4d52dc[_0x5a793e(0x252)]*0x3c,_0x23c3f5=_0x50b849[0x0][_0x5a793e(0x357)]+_0x50b849[0x0][_0x5a793e(0x2fc)],_0x5dc41b=(_0x50b849[0x0][_0x5a793e(0x25a)]+_0x50b849[0x0][_0x5a793e(0x240)]+_0x50b849[0x0][_0x5a793e(0x335)])/_0x50b849[0x0][_0x5a793e(0x1e3)];_0x4d52dc[_0x5a793e(0x26a)]=_0x5dc41b>0x0?_0x5dc41b:0x1;switch(_0x4d52dc['dialPredictiveOptimization']){case _0x5a793e(0x265):{const _0x223d8d=_0x4d52dc[_0x5a793e(0x216)]/0x64;return _0x53451a['abandonmentRate'](_0x24073d,_0x292394,_0x23c3f5,_0x5dc41b,_0x223d8d)['then'](function(_0x17db7b){return _0x91cb46(_0x17db7b);});}case _0x5a793e(0x22e):{const _0x404d14=_0x4d52dc[_0x5a793e(0x216)]/0x64;return _0x53451a['busyFactor'](_0x24073d,_0x292394,_0x23c3f5,_0x5dc41b,_0x404d14)[_0x5a793e(0x285)](function(_0x599e85){return _0x91cb46(_0x599e85);});}default:return _0x3ce4c1(msgResponse('[getDataPredictive]','Failure',_0x5a793e(0x2df)));}}else return _0x3ce4c1(msgResponse('[getDataPredictive]',_0x5a793e(0x1c8),_0x5a793e(0x375)));});};},Dialer[a1221_0x3ebab2(0x380)][a1221_0x3ebab2(0x299)]=function(_0x4edecd){const _0x25e4a9=this;return function(_0x2af80f){return new Promise(function(_0x3b31c4,_0x13dfd4){const _0x18d9bd=a1221_0x14ae;_[_0x18d9bd(0x212)](_0x4edecd,_0x2af80f[0x0]);if(checkGetDataPredictive(_0x2af80f[0x0])){loggerPredictive[_0x18d9bd(0x37b)](JSON[_0x18d9bd(0x37f)](_0x2af80f[0x0]));if(_0x4edecd[_0x18d9bd(0x341)]===_0x18d9bd(0x265))return _0x25e4a9[_0x18d9bd(0x381)](_0x4edecd['id'])[_0x18d9bd(0x285)](function(_0x303cde){const _0x3c776e=_0x18d9bd,_0x410c7d=_0x4edecd[_0x3c776e(0x1d0)]-_0x303cde[0x0][_0x3c776e(0x38b)],_0x8c7903=_0x4edecd[_0x3c776e(0x252)]*0x3c,_0x51463c=_0x2af80f[0x0][_0x3c776e(0x357)]+_0x2af80f[0x0][_0x3c776e(0x2fc)],_0x795030=(_0x2af80f[0x0][_0x3c776e(0x25a)]+_0x2af80f[0x0][_0x3c776e(0x240)]+_0x2af80f[0x0][_0x3c776e(0x335)])/_0x2af80f[0x0][_0x3c776e(0x1e3)],_0x397de7=_0x4edecd['dialPredictiveOptimizationPercentage']/0x64;return _0x4edecd[_0x3c776e(0x2ba)]=_0x303cde[0x0][_0x3c776e(0x38b)]||0x0,_0x4edecd[_0x3c776e(0x26a)]=_0x795030>0x0?_0x795030:0x1,_0x25e4a9['abandonmentRate'](_0x410c7d,_0x8c7903,_0x51463c,_0x795030,_0x397de7);})[_0x18d9bd(0x285)](function(_0x2ae7a7){return _0x3b31c4(_0x2ae7a7);})['catch'](function(_0x3cfbaf){const _0xbb7a62=_0x18d9bd;return _0x13dfd4(msgResponse(_0xbb7a62(0x1d4),_0xbb7a62(0x1c8),JSON[_0xbb7a62(0x37f)](_0x3cfbaf)));});if(_0x4edecd[_0x18d9bd(0x341)]==='agentBusyFactor')return _0x25e4a9[_0x18d9bd(0x381)](_0x4edecd['id'])[_0x18d9bd(0x285)](function(_0x32531b){const _0x1c3972=_0x18d9bd,_0x19ebe6=_0x4edecd['loggedIn']-_0x32531b[0x0][_0x1c3972(0x38b)],_0x35e952=_0x4edecd[_0x1c3972(0x252)]*0x3c,_0x5d02e0=_0x2af80f[0x0][_0x1c3972(0x357)]+_0x2af80f[0x0][_0x1c3972(0x2fc)],_0xa22624=(_0x2af80f[0x0]['predictiveIntervalAnsweredCalls']+_0x2af80f[0x0][_0x1c3972(0x240)]+_0x2af80f[0x0][_0x1c3972(0x335)])/_0x2af80f[0x0][_0x1c3972(0x1e3)],_0xf9cda9=_0x4edecd[_0x1c3972(0x216)]/0x64;return _0x4edecd[_0x1c3972(0x2ba)]=_0x32531b[0x0][_0x1c3972(0x38b)]||0x0,_0x4edecd[_0x1c3972(0x26a)]=_0xa22624>0x0?_0xa22624:0x1,_0x25e4a9[_0x1c3972(0x24b)](_0x19ebe6,_0x35e952,_0x5d02e0,_0xa22624,_0xf9cda9);})[_0x18d9bd(0x285)](function(_0xb6571a){return _0x3b31c4(_0xb6571a);})[_0x18d9bd(0x338)](function(_0x5cfe6f){const _0x36269c=_0x18d9bd;return _0x13dfd4(msgResponse(_0x36269c(0x1d4),'Failure',JSON[_0x36269c(0x37f)](_0x5cfe6f)));});}else return _0x13dfd4(msgResponse(_0x18d9bd(0x367),_0x18d9bd(0x1c8),'check\x20failure'));});};},Dialer[a1221_0x3ebab2(0x380)][a1221_0x3ebab2(0x1a0)]=function(_0x51f1a6){const _0x31644f=this;return function(){const _0xb3837c=a1221_0x14ae;let _0x25a7d1=0x0,_0x521e98=Math[_0xb3837c(0x20f)](_0x51f1a6[_0xb3837c(0x192)]*0x3e8);_0x521e98>0x0?(_0x521e98=_0x521e98<0x64?0x64:_0x521e98,loggerPredictive[_0xb3837c(0x37b)](_0x51f1a6[_0xb3837c(0x279)],_0xb3837c(0x36a),_0x521e98,_0xb3837c(0x30a)),_0x51f1a6[_0xb3837c(0x347)]=setInterval(function(){const _0x14f77c=_0xb3837c;_0x31644f[_0x14f77c(0x347)](_0x51f1a6),loggerPredictiveCalls[_0x14f77c(0x37b)]('[handlePredictive]',_0x25a7d1+=0x1);},_0x521e98)):loggerPredictive[_0xb3837c(0x37b)](_0x51f1a6[_0xb3837c(0x279)],_0xb3837c(0x31d));};},Dialer[a1221_0x3ebab2(0x380)][a1221_0x3ebab2(0x1bc)]=function(_0x251764,_0x48c401){const _0x275665=this;return function(_0x49900a){const _0x500d0b=a1221_0x14ae;if(_[_0x500d0b(0x22a)](_0x49900a)){if(_[_0x500d0b(0x1ad)](_0x48c401[_0x500d0b(0x217)])||!_0x48c401[_0x500d0b(0x1ec)]){if(_0x251764[_0x500d0b(0x36d)]===_0x500d0b(0x1ff)){_0x251764[_0x500d0b(0x2ab)]=_[_0x500d0b(0x39a)](_0x251764[_0x500d0b(0x2ab)])?!![]:_0x251764[_0x500d0b(0x2ab)];const _0x3dcafc=uuid['v4']();_0x275665[_0x500d0b(0x25f)][_0x3dcafc]=new Action(_0x251764,_0x48c401,_0x3dcafc),loggerBooked[_0x500d0b(0x37b)]('[booked][checkContactBlack]',_0x3dcafc,_0x500d0b(0x1c1),JSON[_0x500d0b(0x37f)](_0x251764[_0x500d0b(0x2ab)]),_0x500d0b(0x2cc),_0x251764[_0x500d0b(0x279)]),_0x251764[_0x500d0b(0x2ab)]?(_0x251764['queueStatusComplete']=![],_0x275665['queueBooked'][_0x275665['actions'][_0x3dcafc][_0x500d0b(0x368)]]=[],ami[_0x500d0b(0x2a8)]({'actionid':_0x3dcafc,'action':_0x500d0b(0x296),'queue':_0x251764[_0x500d0b(0x279)]})[_0x500d0b(0x338)](function(){const _0x239a0f=_0x500d0b;_0x275665[_0x239a0f(0x1fe)](_0x251764),_0x275665[_0x239a0f(0x1bf)]({'active':![],'ContactId':_0x275665[_0x239a0f(0x25f)][_0x3dcafc][_0x239a0f(0x1ea)],'ListId':_0x275665['actions'][_0x3dcafc][_0x239a0f(0x393)],'VoiceQueueId':_0x275665[_0x239a0f(0x25f)][_0x3dcafc][_0x239a0f(0x270)]||undefined,'CampaignId':_0x275665[_0x239a0f(0x25f)][_0x3dcafc][_0x239a0f(0x25c)]||undefined})['catch'](loggerCatch('[unlockOriginate][syncQueueStatusComplete]')),delete _0x275665[_0x239a0f(0x25f)][_0x3dcafc];})):(loggerBooked[_0x500d0b(0x37b)](_0x500d0b(0x355),JSON['stringify'](_0x251764[_0x500d0b(0x2ab)]),_0x500d0b(0x2cc),_0x251764[_0x500d0b(0x279)]),_0x275665[_0x500d0b(0x1fe)](_0x251764),_0x275665[_0x500d0b(0x1bf)]({'active':![],'ContactId':_0x275665[_0x500d0b(0x25f)][_0x3dcafc][_0x500d0b(0x1ea)],'ListId':_0x275665[_0x500d0b(0x25f)][_0x3dcafc][_0x500d0b(0x393)],'VoiceQueueId':_0x275665[_0x500d0b(0x25f)][_0x3dcafc]['VoiceQueueId']||undefined,'CampaignId':_0x275665[_0x500d0b(0x25f)][_0x3dcafc]['CampaignId']||undefined})[_0x500d0b(0x338)](loggerCatch('[unlockOriginate][syncQueueStatusComplete]')),delete _0x275665[_0x500d0b(0x25f)][_0x3dcafc]);}else return _0x275665[_0x500d0b(0x386)](_0x251764,_0x48c401);}else getDiff(_0x48c401[_0x500d0b(0x2d3)])<_0x251764['dialRecallMeTimeout']*0x3c?_0x48c401[_0x500d0b(0x227)]&&!_0x48c401['Agent'][_0x500d0b(0x1cf)]?_0x275665[_0x500d0b(0x26f)][_0x500d0b(0x274)](_0x48c401['id'])['finally'](function(){const _0x5163dc=_0x500d0b;_0x275665[_0x5163dc(0x1fe)](_0x251764);}):_0x275665[_0x500d0b(0x2d1)]({'active':![]},_0x48c401['id'],0x1)[_0x500d0b(0x1c2)](function(){const _0xfec273=_0x500d0b;console['log'](_0xfec273(0x204)),_0x275665[_0xfec273(0x1fe)](_0x251764);}):(_0x251764[_0x500d0b(0x21b)]+=0x1,_0x275665[_0x500d0b(0x1fe)](_0x251764),_0x251764[_0x500d0b(0x2e8)]?(_0x275665['rescheduleContact']({'active':![],'recallme':![],'UserId':null,'ContactId':_0x48c401[_0x500d0b(0x1ea)],'ListId':_0x48c401[_0x500d0b(0x393)],'VoiceQueueId':_0x48c401['VoiceQueueId']||undefined,'CampaignId':_0x48c401['CampaignId']||undefined})[_0x500d0b(0x338)](loggerCatch(_0x500d0b(0x2e4))),_0x275665[_0x500d0b(0x27e)](createObjHistory(_0x251764,_0x48c401,_0x500d0b(0x291),0x17,_0x500d0b(0x29d)))[_0x500d0b(0x338)](loggerCatch('[Originate][HistoryDialRecallInQueue][historyCatch]'))):_0x275665[_0x500d0b(0x2be)](createObjHistory(_0x251764,_0x48c401,'RECALLFAILEDTIMEOUT',0x16,_0x500d0b(0x350)),'[Originate][HistoryRecallClose][historyCatch]',_0x500d0b(0x259)));}else{_0x251764[_0x500d0b(0x1f5)]+=0x1,_0x275665['saveInDb'](createObjHistory(_0x251764,_0x48c401,'BLACKLIST',0xd,'Blacklist'),_0x500d0b(0x2dc),'[Originate][MoveBlacklist]');throw _0x500d0b(0x2f8);}};},Dialer[a1221_0x3ebab2(0x380)][a1221_0x3ebab2(0x2e9)]=function(_0x33dd29){const _0x3981de=a1221_0x3ebab2,_0x49032a=this;let _0x268649=_0x33dd29['limitCalls']-_0x33dd29[_0x3981de(0x24c)]-_0x33dd29[_0x3981de(0x23f)];emitCampaignSummary(_0x33dd29),_0x268649>0x0&&(_0x268649>this[_0x3981de(0x1a2)]&&(_0x268649=this[_0x3981de(0x1a2)]),_0x33dd29[_0x3981de(0x23f)]+=_0x268649,this[_0x3981de(0x1d7)](_0x33dd29['id'],_0x268649,_0x33dd29['dialOrderByScheduledAt'])[_0x3981de(0x285)](function(_0x2cf602){const _0x34777d=_0x3981de;_0x33dd29[_0x34777d(0x23f)]-=_0x268649,_0x33dd29['temp']=_0x33dd29['temp']>0x0?_0x33dd29['temp']:0x0;if(!checkContactEmpty(_0x2cf602))_0x33dd29[_0x34777d(0x268)]='AVAILABLE_CONTACTS_FINISHED',logger[_0x34777d(0x37b)]('[getContactCampaign2][Empty]'+_0x33dd29['name']);else{_0x33dd29[_0x34777d(0x24c)]+=_0x2cf602['length'],_0x33dd29[_0x34777d(0x268)]='RUNNING';for(let _0x4819d2=0x0;_0x4819d2<_0x2cf602[_0x34777d(0x1e9)];_0x4819d2+=0x1){_0x33dd29[_0x34777d(0x327)]+=0x1,_[_0x34777d(0x1ad)](_0x2cf602[_0x4819d2])||_[_0x34777d(0x1ad)](_0x2cf602[_0x4819d2][_0x34777d(0x39b)])||_[_0x34777d(0x1ad)](_0x2cf602[_0x4819d2][_0x34777d(0x39b)][_0x34777d(0x1d6)])?_0x49032a['emptyContact'](_0x34777d(0x25b),_0x33dd29,_0x2cf602[_0x4819d2]):_0x49032a[_0x34777d(0x2ed)](_[_0x34777d(0x194)](_0x2cf602[_0x4819d2],[_0x34777d(0x25c),_0x34777d(0x1d1)]))[_0x34777d(0x285)](_0x49032a[_0x34777d(0x1bc)](_0x33dd29,_0x2cf602[_0x4819d2]))[_0x34777d(0x338)](_0x49032a[_0x34777d(0x258)](_0x34777d(0x264),_0x33dd29));}}})['catch'](loggerGetContactDialer(_0x3981de(0x21e),_0x33dd29,_0x268649)));},Dialer[a1221_0x3ebab2(0x380)][a1221_0x3ebab2(0x225)]=function(_0x25c8d6,_0x3d8ad0){const _0x4bc528=a1221_0x3ebab2,_0x3a140f=this,_0x546734=[];let _0x3a7736=_0x3d8ad0>=0x1?_0x3d8ad0:0x1;_0x25c8d6[_0x4bc528(0x36d)]===_0x4bc528(0x1ff)&&(_0x3a7736=0x1);let _0x898b=Math[_0x4bc528(0x20f)](_0x25c8d6[_0x4bc528(0x246)]*_0x3a7736)-_0x25c8d6[_0x4bc528(0x24c)]-_0x25c8d6[_0x4bc528(0x23f)];emitVoiceQueueSummary(_0x25c8d6);if(_0x25c8d6[_0x4bc528(0x1b3)]>0x0){const _0x2ee541=_0x25c8d6[_0x4bc528(0x1b3)]-_0x25c8d6[_0x4bc528(0x24c)]-_0x25c8d6[_0x4bc528(0x359)]-_0x25c8d6[_0x4bc528(0x23f)]-_0x25c8d6[_0x4bc528(0x235)];_0x898b>_0x2ee541&&(_0x898b=_0x2ee541);}if(_0x898b>0x0){_0x25c8d6[_0x4bc528(0x36d)]===_0x4bc528(0x1ff)&&(_0x898b=0x1);_0x898b>this[_0x4bc528(0x1a2)]&&(_0x898b=this[_0x4bc528(0x1a2)]);_0x25c8d6['temp']+=_0x898b;for(const _0x41da56 in this[_0x4bc528(0x363)]){typeof this[_0x4bc528(0x363)][_0x41da56]!=='undefined'&&(this[_0x4bc528(0x363)][_0x41da56][_0x4bc528(0x228)]==='not_inuse'&&this['agents'][_0x41da56]['status']==='reachable'&&_0x546734['push'](this[_0x4bc528(0x363)][_0x41da56]['id']));}this['getContactDialer'](_0x25c8d6['id'],_0x546734,_0x898b,_0x25c8d6[_0x4bc528(0x2ee)])['then'](function(_0x39a886){const _0x3da35d=_0x4bc528;_0x25c8d6[_0x3da35d(0x23f)]-=_0x898b,_0x25c8d6[_0x3da35d(0x23f)]=_0x25c8d6[_0x3da35d(0x23f)]>0x0?_0x25c8d6[_0x3da35d(0x23f)]:0x0;if(!checkContactEmpty(_0x39a886))_0x3a140f[_0x3da35d(0x1cd)](_0x25c8d6)[_0x3da35d(0x285)](sendMessageReschedule(_0x25c8d6))[_0x3da35d(0x338)](loggerCatch('[countReScheduled]\x20'));else{_0x25c8d6[_0x3da35d(0x24c)]+=_0x39a886[_0x3da35d(0x1e9)],_0x25c8d6[_0x3da35d(0x268)]=_0x25c8d6['dialMethod']==='booked'?_0x3da35d(0x197):_0x3da35d(0x22c);for(let _0x3fd247=0x0;_0x3fd247<_0x39a886['length'];_0x3fd247+=0x1){_[_0x3da35d(0x1ad)](_0x39a886[_0x3fd247])||_[_0x3da35d(0x1ad)](_0x39a886[_0x3fd247][_0x3da35d(0x39b)])||_['isNil'](_0x39a886[_0x3fd247]['Contact']['phone'])?_0x3a140f[_0x3da35d(0x196)](_0x3da35d(0x25b),_0x25c8d6,_0x39a886[_0x3fd247]):_0x3a140f[_0x3da35d(0x284)](_[_0x3da35d(0x194)](_0x39a886[_0x3fd247],[_0x3da35d(0x270),'Contact.phone']))[_0x3da35d(0x285)](_0x3a140f['checkContactBlack'](_0x25c8d6,_0x39a886[_0x3fd247]))[_0x3da35d(0x338)](_0x3a140f[_0x3da35d(0x258)](_0x3da35d(0x25b),_0x25c8d6));}}})['catch'](loggerGetContactDialer(_0x4bc528(0x32a),_0x25c8d6,_0x898b));}},Dialer[a1221_0x3ebab2(0x380)][a1221_0x3ebab2(0x347)]=function(_0x3d3905){const _0x5e2145=a1221_0x3ebab2;if(_0x3d3905[_0x5e2145(0x1b3)]>0x0){const _0x5596a6=_0x3d3905[_0x5e2145(0x1b3)]-_0x3d3905[_0x5e2145(0x24c)]-_0x3d3905[_0x5e2145(0x359)];_0x5596a6>0x0?this[_0x5e2145(0x1f3)](_0x3d3905):loggerPredictiveCalls[_0x5e2145(0x37b)](_0x5e2145(0x2a9));}else this[_0x5e2145(0x1f3)](_0x3d3905);},Dialer[a1221_0x3ebab2(0x380)]['tryOriginatePredictive']=function(_0x5e3623){const _0x2c8a96=a1221_0x3ebab2,_0x386c82=this,_0x13aa94=[];_0x5e3623[_0x2c8a96(0x24c)]+=0x1;for(const _0x4e25e5 in this['agents']){typeof this[_0x2c8a96(0x363)][_0x4e25e5]!==_0x2c8a96(0x1fd)&&(this[_0x2c8a96(0x363)][_0x4e25e5][_0x2c8a96(0x228)]===_0x2c8a96(0x1d9)&&this[_0x2c8a96(0x363)][_0x4e25e5]['status']===_0x2c8a96(0x1da)&&_0x13aa94[_0x2c8a96(0x2e7)](this[_0x2c8a96(0x363)][_0x4e25e5]['id']));}this[_0x2c8a96(0x1ab)](_0x5e3623['id'],_0x13aa94,0x1,_0x5e3623[_0x2c8a96(0x2ee)])[_0x2c8a96(0x285)](function(_0x5c4ac2){const _0x2222de=_0x2c8a96;!checkContactEmpty(_0x5c4ac2)?(checkContactLowerLimitOriginate(_0x5e3623,0x1,0x0),_0x386c82[_0x2222de(0x1cd)](_0x5e3623)[_0x2222de(0x285)](sendMessageReschedule(_0x5e3623))[_0x2222de(0x338)](loggerCatch(_0x2222de(0x281)))):(_0x5e3623['message']=_0x2222de(0x22c),_[_0x2222de(0x1ad)](_0x5c4ac2[0x0])||_['isNil'](_0x5c4ac2[0x0]['Contact'])||_['isNil'](_0x5c4ac2[0x0][_0x2222de(0x39b)][_0x2222de(0x1d6)])?_0x386c82[_0x2222de(0x196)]('[actionOriginate]\x20',_0x5e3623,_0x5c4ac2[0x0]):_0x386c82[_0x2222de(0x284)](_[_0x2222de(0x194)](_0x5c4ac2[0x0],[_0x2222de(0x270),'Contact.phone']))[_0x2222de(0x285)](_0x386c82[_0x2222de(0x1bc)](_0x5e3623,_0x5c4ac2[0x0]))[_0x2222de(0x338)](_0x386c82[_0x2222de(0x258)](_0x2222de(0x38e),_0x5e3623)));})[_0x2c8a96(0x338)](loggerGetContactDialer('[getContactDialerPredictive]',_0x5e3623,0x1)),emitVoiceQueueSummary(_0x5e3623);},Dialer[a1221_0x3ebab2(0x380)][a1221_0x3ebab2(0x1b2)]=function(_0x468950,_0x186e0c,_0xb0e62d,_0x4d690d,_0x32056c,_0x1f0a82){const _0x20f725=a1221_0x3ebab2;return loggerPredictive[_0x20f725(0x37b)](_0x20f725(0x35f)),loggerPredictive[_0x20f725(0x37b)](_0x20f725(0x37d),_0x468950),loggerPredictive[_0x20f725(0x37b)](_0x20f725(0x336),_0x186e0c),loggerPredictive[_0x20f725(0x37b)]('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',_0xb0e62d),loggerPredictive[_0x20f725(0x37b)](_0x20f725(0x293),_0x4d690d),loggerPredictive[_0x20f725(0x37b)](_0x20f725(0x1f2),_0x32056c),loggerPredictive[_0x20f725(0x37b)](_0x20f725(0x2ec)),new Promise(function(_0x54a2ac,_0x2127b0){const _0x35f72e=_0x20f725;if(_0x468950<=0x0||isNaN(_0x468950))return _0x2127b0(msgResponse(_0x35f72e(0x2fd),'Error',_0x35f72e(0x37c)+_0x468950));if(_0xb0e62d<=0x0||isNaN(_0xb0e62d))return _0x2127b0(msgResponse(_0x35f72e(0x2fd),_0x35f72e(0x23b),_0x35f72e(0x38a)+_0xb0e62d));if(_0x4d690d<=0x0||isNaN(_0x4d690d))return _0x2127b0(msgResponse('[abandonmentRate]',_0x35f72e(0x23b),'p\x20=\x20'+_0x4d690d));if(_0x186e0c<=0x0||isNaN(_0x186e0c))return _0x2127b0(msgResponse(_0x35f72e(0x2fd),'Error','interval\x20=\x20'+_0x186e0c));if(_0x32056c<=0x0||isNaN(_0x32056c))return _0x2127b0(msgResponse(_0x35f72e(0x2fd),_0x35f72e(0x23b),_0x35f72e(0x27a)+_0x32056c));_0x1f0a82=_0x1f0a82||0x0;const _0x6ef6d2=0x1/_0xb0e62d;let _0x4a7524=0x0,_0x1bdda2=0x0,_0x3123dd=0x0,_0x2e3e00=0x0,_0x56519b=0x0;for(_0x56519b=0x0;_0x3123dd<_0x32056c;_0x56519b+=0x1){_0x1bdda2=_0x56519b/_0x186e0c,_0x4a7524=(_0x4d690d*_0x1bdda2+_0x1f0a82)/_0x6ef6d2,_0x3123dd=erlangb(_0x4a7524,_0x468950),_0x2e3e00=_0x4a7524/_0x468950*(0x1-erlangb(_0x4a7524,_0x468950));}return _0x54a2ac({'erlangCalls':_0x56519b,'erlangCallToSecond':_0x186e0c/_0x56519b,'erlangAbandonmentRate':_0x3123dd,'erlangBusyFactor':_0x2e3e00});});},Dialer[a1221_0x3ebab2(0x380)][a1221_0x3ebab2(0x24b)]=function(_0x511b93,_0x3903df,_0x2ee632,_0x39629a,_0x1f739c,_0x31e149){const _0x339cee=a1221_0x3ebab2;return loggerPredictive['info'](_0x339cee(0x2de)),loggerPredictive['info']('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',_0x511b93),loggerPredictive['info'](_0x339cee(0x336),_0x3903df),loggerPredictive[_0x339cee(0x37b)](_0x339cee(0x1cc),_0x2ee632),loggerPredictive[_0x339cee(0x37b)]('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',_0x39629a),loggerPredictive[_0x339cee(0x37b)](_0x339cee(0x21a),_0x1f739c),loggerPredictive[_0x339cee(0x37b)](_0x339cee(0x2ec)),new Promise(function(_0x5d837d,_0x22ca51){const _0xdf2ff9=_0x339cee;if(_0x511b93<=0x0||isNaN(_0x511b93))return _0x22ca51(msgResponse(_0xdf2ff9(0x26d),_0xdf2ff9(0x23b),_0xdf2ff9(0x37c)+_0x511b93));if(_0x2ee632<=0x0||isNaN(_0x2ee632))return _0x22ca51(msgResponse(_0xdf2ff9(0x26d),_0xdf2ff9(0x23b),_0xdf2ff9(0x38a)+_0x2ee632));if(_0x39629a<=0x0||isNaN(_0x39629a))return _0x22ca51(msgResponse(_0xdf2ff9(0x26d),'Error',_0xdf2ff9(0x18b)+_0x39629a));if(_0x3903df<=0x0||isNaN(_0x3903df))return _0x22ca51(msgResponse('[busyFactor]',_0xdf2ff9(0x23b),_0xdf2ff9(0x36e)+_0x3903df));if(_0x1f739c<=0x0||isNaN(_0x1f739c))return _0x22ca51(msgResponse('[busyFactor]',_0xdf2ff9(0x23b),_0xdf2ff9(0x1a4)+_0x1f739c));_0x31e149=_0x31e149||0x0;const _0x2a1328=0x1/_0x2ee632;let _0x2e35f9=0x0,_0x59113d=0x0,_0x508016=0x0,_0x304e9a=0x0,_0x18b691=0x0;for(_0x18b691=0x0;_0x304e9a<_0x1f739c;_0x18b691+=0x1){_0x59113d=_0x18b691/_0x3903df,_0x2e35f9=(_0x39629a*_0x59113d+_0x31e149)/_0x2a1328,_0x508016=erlangb(_0x2e35f9,_0x511b93),_0x304e9a=_0x2e35f9/_0x511b93*(0x1-erlangb(_0x2e35f9,_0x511b93));}return _0x5d837d({'erlangCalls':_0x18b691,'erlangCallToSecond':_0x3903df/_0x18b691,'erlangAbandonmentRate':_0x508016,'erlangBusyFactor':_0x304e9a});});},module[a1221_0x3ebab2(0x306)]=Dialer; \ No newline at end of file diff --git a/server/services/ami/dialer/queueCallerAbandon.js b/server/services/ami/dialer/queueCallerAbandon.js index 97b4ffd..9ecdb55 100644 --- a/server/services/ami/dialer/queueCallerAbandon.js +++ b/server/services/ami/dialer/queueCallerAbandon.js @@ -1 +1 @@ -const a1058_0xa4f0=['VoiceQueueId','uniqueid','connectedlinename','UserId','countglobal','seconds','countabandonedretry','starttime','originatecalleridnum','countnoanswerretry','calleridname','scheduledat','talktime','recallme','queue','holdtime','countmachineretry','countagentrejectretry','callbackuniqueid','number','countcongestionretry','type','milliseconds','endtime','callback','moment','outbound','countnosuchnumberretry','countdropretry','responsetime','name','originatecalleridname','ringtime','membername','ContactId','campaigntype','countbusyretry','ListId','droptime','reason','callbackat','CampaignId','calleridnum','diff'];(function(_0x449d0d,_0xa4f085){const _0x44b1c2=function(_0x4bf36b){while(--_0x4bf36b){_0x449d0d['push'](_0x449d0d['shift']());}};_0x44b1c2(++_0xa4f085);}(a1058_0xa4f0,0x1b1));const a1058_0x44b1=function(_0x449d0d,_0xa4f085){_0x449d0d=_0x449d0d-0x0;let _0x44b1c2=a1058_0xa4f0[_0x449d0d];return _0x44b1c2;};const _0x1d5f97=a1058_0x44b1;'use strict';const moment=require(_0x1d5f97('0x20'));function getSeconds(_0x4bf36b,_0x2e97a3){const _0x414386=_0x1d5f97,_0x3a2ac8=moment(_0x4bf36b)[_0x414386('0x1d')](0x0),_0x3d7580=moment(_0x2e97a3)[_0x414386('0x1d')](0x0);return _0x3a2ac8[_0x414386('0x6')](_0x3d7580,_0x414386('0xc'));}function QueueCallerAbandon(_0x21871c,_0x333e4b){const _0x2460b6=_0x1d5f97;this['scheduledat']=_0x21871c[_0x2460b6('0x12')],this[_0x2460b6('0x1c')]=_0x21871c[_0x2460b6('0x1c')],this[_0x2460b6('0x2a')]=_0x21871c[_0x2460b6('0x1c')]===_0x2460b6('0x21')?_0x2460b6('0x15'):_0x21871c['type'],this[_0x2460b6('0x2b')]=_0x21871c[_0x2460b6('0x2b')],this[_0x2460b6('0x1b')]=_0x21871c[_0x2460b6('0x1b')],this['countnoanswerretry']=_0x21871c[_0x2460b6('0x10')],this[_0x2460b6('0xb')]=_0x21871c[_0x2460b6('0x2b')]+_0x21871c['countcongestionretry']+_0x21871c[_0x2460b6('0x10')]+_0x21871c[_0x2460b6('0x22')]+_0x21871c[_0x2460b6('0x23')]+_0x21871c[_0x2460b6('0xd')]+_0x21871c[_0x2460b6('0x17')]+_0x21871c[_0x2460b6('0x18')],this[_0x2460b6('0x22')]=_0x21871c[_0x2460b6('0x22')],this['countdropretry']=_0x21871c[_0x2460b6('0x23')],this[_0x2460b6('0xd')]=_0x21871c[_0x2460b6('0xd')],this[_0x2460b6('0x17')]=_0x21871c[_0x2460b6('0x17')],this[_0x2460b6('0x18')]=_0x21871c[_0x2460b6('0x18')],this[_0x2460b6('0x8')]=_0x333e4b[_0x2460b6('0x8')],this[_0x2460b6('0x11')]=_0x21871c[_0x2460b6('0x25')],this[_0x2460b6('0x5')]=_0x21871c[_0x2460b6('0x1a')],this[_0x2460b6('0xe')]=_0x21871c[_0x2460b6('0xe')],this[_0x2460b6('0x24')]=_0x21871c[_0x2460b6('0x24')],this['droptime']=_0x21871c['droptime'],this[_0x2460b6('0x1e')]=this['droptime'],this[_0x2460b6('0x27')]=getSeconds(_0x21871c[_0x2460b6('0x24')],_0x21871c[_0x2460b6('0xe')]),this[_0x2460b6('0x16')]=getSeconds(this[_0x2460b6('0x1')],_0x21871c[_0x2460b6('0x24')]),this[_0x2460b6('0x13')]=0x0,this[_0x2460b6('0x15')]=_0x333e4b[_0x2460b6('0x15')],this[_0x2460b6('0x28')]=_0x333e4b[_0x2460b6('0x9')],this[_0x2460b6('0x2')]=_0x333e4b['reason'],this['callback']=_0x21871c[_0x2460b6('0x1f')],this[_0x2460b6('0x19')]=_0x21871c['callbackuniqueid'],this[_0x2460b6('0x3')]=_0x21871c[_0x2460b6('0x3')],this[_0x2460b6('0x14')]=_0x21871c[_0x2460b6('0x14')],this[_0x2460b6('0x29')]=_0x21871c[_0x2460b6('0x29')],this['ListId']=_0x21871c[_0x2460b6('0x0')],this[_0x2460b6('0xa')]=_0x21871c[_0x2460b6('0xa')],this[_0x2460b6('0x7')]=_0x21871c[_0x2460b6('0x7')],this['CampaignId']=_0x21871c[_0x2460b6('0x4')],this[_0x2460b6('0xf')]=_0x21871c['originatecalleridnum']||'',this['originatecalleridname']=_0x21871c[_0x2460b6('0x26')]||'';}module['exports']=QueueCallerAbandon; \ No newline at end of file +const a1222_0x344d=['originatecalleridnum','UserId','uniqueid','membername','callbackuniqueid','countcongestionretry','endtime','countnosuchnumberretry','countnoanswerretry','starttime','countagentrejectretry','originatecalleridname','ringtime','CampaignId','connectedlinename','number','recallme','callback','scheduledat','VoiceQueueId','ContactId','milliseconds','name','seconds','holdtime','responsetime','queue','moment','countabandonedretry','droptime','reason','type','countbusyretry','callbackat','ListId','countmachineretry','calleridnum'];(function(_0x4ba463,_0x46f02c){const _0x344d12=function(_0xe942ce){while(--_0xe942ce){_0x4ba463['push'](_0x4ba463['shift']());}};_0x344d12(++_0x46f02c);}(a1222_0x344d,0x12d));const a1222_0xe942=function(_0x4ba463,_0x46f02c){_0x4ba463=_0x4ba463-0x10e;let _0x344d12=a1222_0x344d[_0x4ba463];return _0x344d12;};const a1222_0x4a942d=a1222_0xe942;'use strict';const moment=require(a1222_0x4a942d(0x124));function getSeconds(_0x442381,_0x3f632d){const _0x5d8f18=a1222_0x4a942d,_0x30fa22=moment(_0x442381)[_0x5d8f18(0x11e)](0x0),_0x25fbda=moment(_0x3f632d)[_0x5d8f18(0x11e)](0x0);return _0x30fa22['diff'](_0x25fbda,_0x5d8f18(0x120));}function QueueCallerAbandon(_0xe985c2,_0x3d2d6a){const _0x28af8f=a1222_0x4a942d;this[_0x28af8f(0x11b)]=_0xe985c2[_0x28af8f(0x11b)],this[_0x28af8f(0x128)]=_0xe985c2[_0x28af8f(0x128)],this['campaigntype']=_0xe985c2['type']==='outbound'?_0x28af8f(0x123):_0xe985c2[_0x28af8f(0x128)],this[_0x28af8f(0x129)]=_0xe985c2[_0x28af8f(0x129)],this[_0x28af8f(0x10e)]=_0xe985c2[_0x28af8f(0x10e)],this[_0x28af8f(0x111)]=_0xe985c2[_0x28af8f(0x111)],this['countglobal']=_0xe985c2[_0x28af8f(0x129)]+_0xe985c2['countcongestionretry']+_0xe985c2[_0x28af8f(0x111)]+_0xe985c2[_0x28af8f(0x110)]+_0xe985c2['countdropretry']+_0xe985c2['countabandonedretry']+_0xe985c2['countmachineretry']+_0xe985c2[_0x28af8f(0x113)],this[_0x28af8f(0x110)]=_0xe985c2[_0x28af8f(0x110)],this['countdropretry']=_0xe985c2['countdropretry'],this[_0x28af8f(0x125)]=_0xe985c2[_0x28af8f(0x125)],this[_0x28af8f(0x12c)]=_0xe985c2[_0x28af8f(0x12c)],this[_0x28af8f(0x113)]=_0xe985c2['countagentrejectretry'],this['uniqueid']=_0x3d2d6a[_0x28af8f(0x130)],this['calleridname']=_0xe985c2[_0x28af8f(0x11f)],this[_0x28af8f(0x12d)]=_0xe985c2[_0x28af8f(0x118)],this['starttime']=_0xe985c2[_0x28af8f(0x112)],this[_0x28af8f(0x122)]=_0xe985c2[_0x28af8f(0x122)],this[_0x28af8f(0x126)]=_0xe985c2['droptime'],this[_0x28af8f(0x10f)]=this[_0x28af8f(0x126)],this[_0x28af8f(0x115)]=getSeconds(_0xe985c2[_0x28af8f(0x122)],_0xe985c2[_0x28af8f(0x112)]),this[_0x28af8f(0x121)]=getSeconds(this['droptime'],_0xe985c2[_0x28af8f(0x122)]),this['talktime']=0x0,this['queue']=_0x3d2d6a['queue'],this[_0x28af8f(0x131)]=_0x3d2d6a[_0x28af8f(0x117)],this[_0x28af8f(0x127)]=_0x3d2d6a[_0x28af8f(0x127)],this[_0x28af8f(0x11a)]=_0xe985c2['callback'],this[_0x28af8f(0x132)]=_0xe985c2[_0x28af8f(0x132)],this[_0x28af8f(0x12a)]=_0xe985c2['callbackat'],this[_0x28af8f(0x119)]=_0xe985c2[_0x28af8f(0x119)],this[_0x28af8f(0x11d)]=_0xe985c2[_0x28af8f(0x11d)],this['ListId']=_0xe985c2[_0x28af8f(0x12b)],this[_0x28af8f(0x12f)]=_0xe985c2[_0x28af8f(0x12f)],this[_0x28af8f(0x11c)]=_0xe985c2[_0x28af8f(0x11c)],this[_0x28af8f(0x116)]=_0xe985c2[_0x28af8f(0x116)],this[_0x28af8f(0x12e)]=_0xe985c2[_0x28af8f(0x12e)]||'',this[_0x28af8f(0x114)]=_0xe985c2[_0x28af8f(0x114)]||'';}module['exports']=QueueCallerAbandon; \ No newline at end of file diff --git a/server/services/ami/fax/action.js b/server/services/ami/fax/action.js index e0d4e04..86f3fbf 100644 --- a/server/services/ami/fax/action.js +++ b/server/services/ami/fax/action.js @@ -1 +1 @@ -const a1059_0x335f=['headerinfo','util','format','Trunk','fax','AttachmentId','tech','localstationid','exports','channel'];(function(_0x3f521c,_0x335f04){const _0x43c217=function(_0x237d96){while(--_0x237d96){_0x3f521c['push'](_0x3f521c['shift']());}};_0x43c217(++_0x335f04);}(a1059_0x335f,0x1ef));const a1059_0x43c2=function(_0x3f521c,_0x335f04){_0x3f521c=_0x3f521c-0x0;let _0x43c217=a1059_0x335f[_0x3f521c];return _0x43c217;};const _0x532928=a1059_0x43c2;'use strict';const util=require(_0x532928('0x6'));function Action(_0x237d96,_0x2ba088,_0x1bc559){const _0x13d16c=_0x532928;this['uniqueid']=_0x237d96||undefined,this[_0x13d16c('0x4')]=util[_0x13d16c('0x7')]('%s/%s/%s',_0x2ba088[_0x13d16c('0x1')],_0x2ba088[_0x13d16c('0x8')]['name'],_0x1bc559[_0x13d16c('0x9')]),this['localstationid']=_0x2ba088[_0x13d16c('0x2')],this[_0x13d16c('0x5')]=_0x2ba088[_0x13d16c('0x5')],this['path']=_0x1bc559['path'],this['AttachmentId']=_0x1bc559[_0x13d16c('0x0')];}module[_0x532928('0x3')]=Action; \ No newline at end of file +const a1223_0x5be2=['AttachmentId','format','tech','headerinfo','Trunk','localstationid','channel','%s/%s/%s','exports','util','fax'];(function(_0x531ebf,_0x20c521){const _0x5be2ca=function(_0x1411b8){while(--_0x1411b8){_0x531ebf['push'](_0x531ebf['shift']());}};_0x5be2ca(++_0x20c521);}(a1223_0x5be2,0x1e2));const a1223_0x1411=function(_0x531ebf,_0x20c521){_0x531ebf=_0x531ebf-0xe4;let _0x5be2ca=a1223_0x5be2[_0x531ebf];return _0x5be2ca;};const a1223_0x1adf5e=a1223_0x1411;'use strict';const util=require(a1223_0x1adf5e(0xe4));function Action(_0x5015c0,_0x468090,_0x49b786){const _0x240bc4=a1223_0x1adf5e;this['uniqueid']=_0x5015c0||undefined,this[_0x240bc4(0xec)]=util[_0x240bc4(0xe7)](_0x240bc4(0xed),_0x468090[_0x240bc4(0xe8)],_0x468090[_0x240bc4(0xea)]['name'],_0x49b786[_0x240bc4(0xe5)]),this['localstationid']=_0x468090[_0x240bc4(0xeb)],this[_0x240bc4(0xe9)]=_0x468090['headerinfo'],this['path']=_0x49b786['path'],this['AttachmentId']=_0x49b786[_0x240bc4(0xe6)];}module[a1223_0x1adf5e(0xee)]=Action; \ No newline at end of file diff --git a/server/services/ami/fax/index.js b/server/services/ami/fax/index.js index a68c121..7dc3a42 100644 --- a/server/services/ami/fax/index.js +++ b/server/services/ami/fax/index.js @@ -1 +1 @@ -const a1061_0x4ae6=['tiff2pdf','uniqueid','[Fax][Message][NoUpdate1]','syncHangup','unmonitored','SENDING\x20FAILED\x20','Convert\x20pdf\x20to\x20tif','calleridnum','operation','actions','[Fax][execOriginate][failure]','pagestransferred','status','faxstatusstring','newstate','./util/util','update','localstationid','transferrate','isNil','syncFaxStatus','faxstatus','../rpc/attachment','\x20result\x20conversion\x20file\x20','Action','lodash','variable','\x20receiveFax\x20','newexten','varset','syncNewExten','[Fax][checkTrunk][Trunk\x20not\x20work]','trunks','Trunk\x20Reachable','send','response','[Fax][Message][NoUpdate2]','../ami','filename','logger','Fax\x20failed','[Fax][checkTrunk][Empty\x20path]','variablesAction','util','hangup','faxpages','application/pdf','updateStatus','.pdf','channelstatedesc','\x20Trunk\x20is\x20not\x20active','uuid','merge','fax','\x20syncFaxStatus\x20','syncVarSet','/var/opt/motion2/server/files/attachments/','channel','AttachmentId','FaxAccountId','execOriginate','channelstate','path','\x20hangup\x20sendFile\x20','stringify','parse','dir','error','undefined','\x20hangup\x20faxRiceive\x20','info','remotestationid','checkAfterSend','syncNewchannel','SENDING\x20FAILED','value','XMF-PATH','faxAccounts','from-voip-provider','./util/gs','[Fax][checkTrunk][Empty\x20Fax]','checkTrunk','channels','message','[Fax][Message][Updated]','syncReceiveFax','context','format','isTrunkReachable','catch','bind','then','name','reason','resolution','Trunk\x20not\x20working','SENDING\x20FAILED:\x20','create','active','syncOriginateResponse','pick','SUCCESS','ext','SIP/%s','isValid','\x20syncNewchannel\x20','\x20notify\x20','originateresponse','prototype','Fax\x20received'];(function(_0x1d639d,_0x4ae6f2){const _0x488be0=function(_0xb66b){while(--_0xb66b){_0x1d639d['push'](_0x1d639d['shift']());}};_0x488be0(++_0x4ae6f2);}(a1061_0x4ae6,0x139));const a1061_0x488b=function(_0x1d639d,_0x4ae6f2){_0x1d639d=_0x1d639d-0x0;let _0x488be0=a1061_0x4ae6[_0x1d639d];return _0x488be0;};const _0x19cd8c=a1061_0x488b;'use strict';const util=require(_0x19cd8c('0x3c')),_=require(_0x19cd8c('0x2a')),uuid=require(_0x19cd8c('0x44')),path=require(_0x19cd8c('0x4f')),tiff2pdf=require(_0x19cd8c('0x11')),gs=require(_0x19cd8c('0x60')),logger=require('../../../config/logger')('fax'),ami=require(_0x19cd8c('0x36')),ut=require(_0x19cd8c('0x20')),Action=require('./action'),faxAccount=require('../rpc/faxAccount'),attachment=require(_0x19cd8c('0x27')),faxMessage=require('../rpc/faxMessage');function Fax(_0xb66b){const _0x1e9d6c=_0x19cd8c;this[_0x1e9d6c('0x63')]={},this['faxAccounts']=_0xb66b['faxAccounts'],this[_0x1e9d6c('0x31')]=_0xb66b[_0x1e9d6c('0x31')],this[_0x1e9d6c('0x1a')]={},ami['on']('newchannel',this[_0x1e9d6c('0x5a')]['bind'](this)),ami['on'](_0x1e9d6c('0x2e'),this['syncVarSet'][_0x1e9d6c('0x6b')](this)),ami['on'](_0x1e9d6c('0x1f'),this['syncNewState']['bind'](this)),ami['on'](_0x1e9d6c('0x2d'),this['syncNewExten'][_0x1e9d6c('0x6b')](this)),ami['on']('faxstatus',this[_0x1e9d6c('0x25')][_0x1e9d6c('0x6b')](this)),ami['on']('receivefax',this[_0x1e9d6c('0x66')][_0x1e9d6c('0x6b')](this)),ami['on'](_0x1e9d6c('0x3d'),this[_0x1e9d6c('0x14')][_0x1e9d6c('0x6b')](this)),ami['on'](_0x1e9d6c('0xe'),this[_0x1e9d6c('0x6')][_0x1e9d6c('0x6b')](this));}Fax[_0x19cd8c('0xf')][_0x19cd8c('0x5a')]=function(_0xd9e462){const _0x2c4c12=_0x19cd8c;if(_0xd9e462[_0x2c4c12('0x67')]===_0x2c4c12('0x5f'))for(const _0x54819d in this['faxAccounts']){typeof this[_0x2c4c12('0x5e')][_0x54819d]!==_0x2c4c12('0x55')&&(_0xd9e462['exten']===this[_0x2c4c12('0x5e')][_0x54819d][_0x2c4c12('0x22')]&&(this[_0x2c4c12('0x63')][_0xd9e462[_0x2c4c12('0x12')]]={},this[_0x2c4c12('0x63')][_0xd9e462[_0x2c4c12('0x12')]][_0x2c4c12('0x4a')]=_0xd9e462[_0x2c4c12('0x4a')],this[_0x2c4c12('0x63')][_0xd9e462[_0x2c4c12('0x12')]]['id']=this[_0x2c4c12('0x5e')][_0x54819d]['id'],this[_0x2c4c12('0x63')][_0xd9e462[_0x2c4c12('0x12')]][_0x2c4c12('0x6d')]=this[_0x2c4c12('0x5e')][_0x54819d][_0x2c4c12('0x6d')],logger[_0x2c4c12('0x57')](_0xd9e462[_0x2c4c12('0x12')],_0x2c4c12('0xc'))));}this[_0x2c4c12('0x1a')][_0xd9e462['uniqueid']]&&(this[_0x2c4c12('0x63')][_0xd9e462['uniqueid']]={},this[_0x2c4c12('0x63')][_0xd9e462['uniqueid']][_0x2c4c12('0x4a')]=_0xd9e462[_0x2c4c12('0x4a')],logger[_0x2c4c12('0x57')](_0xd9e462[_0x2c4c12('0x12')],_0x2c4c12('0xc')));},Fax[_0x19cd8c('0xf')][_0x19cd8c('0x48')]=function(_0x4c0eda){const _0x58563a=_0x19cd8c;if(this['channels'][_0x4c0eda[_0x58563a('0x12')]])for(const _0x1b7af2 in _0x4c0eda[_0x58563a('0x2b')]){typeof _0x4c0eda[_0x58563a('0x2b')][_0x1b7af2]!==_0x58563a('0x55')&&(this[_0x58563a('0x63')][_0x4c0eda[_0x58563a('0x12')]][_0x1b7af2]=_0x4c0eda[_0x58563a('0x5c')]);}},Fax['prototype']['syncNewState']=function(_0x55e506){const _0x388fbc=_0x19cd8c;this[_0x388fbc('0x63')][_0x55e506[_0x388fbc('0x12')]]&&(this[_0x388fbc('0x63')][_0x55e506[_0x388fbc('0x12')]][_0x388fbc('0x4e')]=_0x55e506[_0x388fbc('0x4e')],this[_0x388fbc('0x63')][_0x55e506[_0x388fbc('0x12')]][_0x388fbc('0x42')]=_0x55e506['channelstatedesc']);},Fax[_0x19cd8c('0xf')][_0x19cd8c('0x2f')]=function(_0x272127){const _0x14d11e=_0x19cd8c;if(this[_0x14d11e('0x63')][_0x272127[_0x14d11e('0x12')]])for(const _0x500908 in _0x272127[_0x14d11e('0x2b')]){typeof _0x272127['variable'][_0x500908]!==_0x14d11e('0x55')&&(this[_0x14d11e('0x63')][_0x272127[_0x14d11e('0x12')]][_0x500908]=_0x272127[_0x14d11e('0x5c')]);}},Fax[_0x19cd8c('0xf')][_0x19cd8c('0x25')]=function(_0x3834a4){const _0x34d776=_0x19cd8c;this['channels'][_0x3834a4[_0x34d776('0x12')]]&&(this['channels'][_0x3834a4[_0x34d776('0x12')]]['operation']=_0x3834a4[_0x34d776('0x19')],this['channels'][_0x3834a4['uniqueid']][_0x34d776('0x1d')]=_0x3834a4[_0x34d776('0x1d')],this['channels'][_0x3834a4['uniqueid']][_0x34d776('0x22')]=_0x3834a4[_0x34d776('0x22')],this['channels'][_0x3834a4[_0x34d776('0x12')]]['filename']=_0x3834a4['filename'],logger[_0x34d776('0x57')](_0x3834a4[_0x34d776('0x12')],_0x34d776('0x47')));},Fax[_0x19cd8c('0xf')][_0x19cd8c('0x66')]=function(_0x56ab06){const _0x488822=_0x19cd8c;if(this[_0x488822('0x63')][_0x56ab06[_0x488822('0x12')]]){const _0x296eda=this[_0x488822('0x63')][_0x56ab06[_0x488822('0x12')]]['id'];this[_0x488822('0x63')][_0x56ab06[_0x488822('0x12')]][_0x488822('0x58')]=_0x56ab06[_0x488822('0x58')],this[_0x488822('0x63')][_0x56ab06[_0x488822('0x12')]]['pagestransferred']=_0x56ab06['pagestransferred'],this['channels'][_0x56ab06[_0x488822('0x12')]][_0x488822('0x22')]=_0x56ab06['localstationid'],this['channels'][_0x56ab06['uniqueid']][_0x488822('0x1')]=_0x56ab06[_0x488822('0x1')],this[_0x488822('0x63')][_0x56ab06[_0x488822('0x12')]][_0x488822('0x23')]=_0x56ab06[_0x488822('0x23')],this[_0x488822('0x63')][_0x56ab06[_0x488822('0x12')]][_0x488822('0x37')]=_0x56ab06[_0x488822('0x37')],this[_0x488822('0x63')][_0x56ab06['uniqueid']][_0x488822('0x18')]=_0x56ab06[_0x488822('0x18')],this[_0x488822('0x63')][_0x56ab06[_0x488822('0x12')]][_0x488822('0x1c')]>0x0&&tiff2pdf(_0x56ab06[_0x488822('0x37')],_0x488822('0x49'),function(_0x1a875c){const _0x181faa=_0x488822;logger['info'](_0x56ab06[_0x181faa('0x12')],_0x181faa('0x28'),_0x1a875c[_0x181faa('0x64')]),attachment[_0x181faa('0x4')]({'name':path[_0x181faa('0x52')](_0x56ab06[_0x181faa('0x37')])['name'],'basename':path[_0x181faa('0x52')](_0x56ab06['filename'])[_0x181faa('0x6d')]+'.pdf','type':_0x181faa('0x3f')})[_0x181faa('0x6c')](function(_0x4e66be){const _0xafbb11=_0x181faa;faxAccount['notify'](_0x296eda,{'from':_0x56ab06[_0xafbb11('0x18')],'mapKey':'fax','body':path['parse'](_0x56ab06[_0xafbb11('0x37')])['name']+_0xafbb11('0x41'),'AttachmentId':_0x4e66be['id']})[_0xafbb11('0x6a')](function(_0x3dfd8f){const _0x39994a=_0xafbb11;logger[_0x39994a('0x54')](_0x56ab06[_0x39994a('0x12')],_0x39994a('0xd'),JSON[_0x39994a('0x51')](_0x3dfd8f));});})['catch'](function(_0x434d8b){const _0x8bd167=_0x181faa;logger[_0x8bd167('0x54')](_0x56ab06['uniqueid'],'\x20receiveFax\x20',JSON[_0x8bd167('0x51')](_0x434d8b));});}),logger['info'](_0x56ab06[_0x488822('0x12')],_0x488822('0x2c'));}},Fax['prototype']['syncOriginateResponse']=function(_0x340f1c){const _0x1e5186=_0x19cd8c;this[_0x1e5186('0x1a')][_0x340f1c[_0x1e5186('0x12')]]&&_[_0x1e5186('0x45')](this[_0x1e5186('0x63')][_0x340f1c[_0x1e5186('0x12')]],_[_0x1e5186('0x7')](_0x340f1c,[_0x1e5186('0x34'),_0x1e5186('0x0')]));};function updateStatus(_0x455d8a){const _0x40787c=_0x19cd8c;_0x455d8a[_0x40787c('0x4b')]?faxMessage[_0x40787c('0x21')](_0x455d8a['AttachmentId'],{'failMessage':_0x40787c('0x16')})[_0x40787c('0x6c')](function(_0x1f002b){const _0x59218c=_0x40787c;ut[_0x59218c('0x38')]('[Fax][Message][Error][Updated]',_0x1f002b);})['catch'](function(_0x3677b5){const _0x36a478=_0x40787c;ut[_0x36a478('0x38')]('[Fax][Message][Error][NoUpdate1]',_0x3677b5);}):ut[_0x40787c('0x38')]('[Fax][Message][Error][NoUpdate2]');}Fax[_0x19cd8c('0xf')]['updateStatus']=function(_0x141f30,_0x2f70bd,_0x5b871c){const _0x34de3a=_0x19cd8c,_0x45ba8f=this;let _0x177477={};_0x2f70bd?_0x177477={'read':_0x2f70bd}:_0x177477={'failMessage':_0x5b871c},this[_0x34de3a('0x1a')][_0x141f30][_0x34de3a('0x4b')]?faxMessage[_0x34de3a('0x21')](this[_0x34de3a('0x1a')][_0x141f30][_0x34de3a('0x4b')],_0x177477)['then'](function(_0x2f952b){const _0x1afe3a=_0x34de3a;ut['logger'](_0x1afe3a('0x65'),_0x2f952b);})['catch'](function(_0x15ff5b){const _0x36794f=_0x34de3a;ut[_0x36794f('0x38')](_0x36794f('0x13'),_0x15ff5b);})['finally'](function(){delete _0x45ba8f['channels'][_0x141f30],delete _0x45ba8f['actions'][_0x141f30];}):(ut[_0x34de3a('0x38')](_0x34de3a('0x35')),delete this[_0x34de3a('0x63')][_0x141f30],delete this['actions'][_0x141f30]);},Fax[_0x19cd8c('0xf')]['syncHangup']=function(_0x3c67de){const _0x350e90=_0x19cd8c;this['channels'][_0x3c67de[_0x350e90('0x12')]]&&(this['actions'][_0x3c67de[_0x350e90('0x12')]]&&(this['channels'][_0x3c67de[_0x350e90('0x12')]]['id']=this[_0x350e90('0x1a')][_0x3c67de[_0x350e90('0x12')]]['id'],this['channels'][_0x3c67de[_0x350e90('0x12')]][_0x350e90('0x6d')]=this[_0x350e90('0x1a')][_0x3c67de[_0x350e90('0x12')]]['name']),logger[_0x350e90('0x57')](_0x3c67de[_0x350e90('0x12')],this[_0x350e90('0x1a')][_0x3c67de[_0x350e90('0x12')]]?_0x350e90('0x50'):_0x350e90('0x56'),JSON[_0x350e90('0x51')](this[_0x350e90('0x63')][_0x3c67de['uniqueid']])),this[_0x350e90('0x1a')][_0x3c67de[_0x350e90('0x12')]]&&(this[_0x350e90('0x63')][_0x3c67de[_0x350e90('0x12')]][_0x350e90('0x3e')]>0x0&&this[_0x350e90('0x63')][_0x3c67de[_0x350e90('0x12')]][_0x350e90('0x26')]===_0x350e90('0x8')?this[_0x350e90('0x40')](_0x3c67de['uniqueid'],!![]):this[_0x350e90('0x40')](_0x3c67de[_0x350e90('0x12')],![],this['channels'][_0x3c67de[_0x350e90('0x12')]][_0x350e90('0x1e')]?_0x350e90('0x3')+this[_0x350e90('0x63')][_0x3c67de['uniqueid']][_0x350e90('0x1e')]:_0x350e90('0x5b'))));},Fax['prototype'][_0x19cd8c('0x33')]=function(_0x51e982){const _0x4dd8ce=this;return new Promise(function(_0xf01fa2,_0x3cc691){const _0x53a342=a1061_0x488b;_0x4dd8ce[_0x53a342('0x4d')](_0x51e982,_0x4dd8ce[_0x53a342('0x5e')][_0x51e982['FaxAccountId']])[_0x53a342('0x6c')](function(_0x53674c){const _0xb5faa2=_0x53a342;ut[_0xb5faa2('0x38')]('[Fax][execOriginate][success]',_0x53674c),_0xf01fa2(ut[_0xb5faa2('0x64')](_0xb5faa2('0x10')));})['catch'](function(_0x32d8dc){const _0x15ddcf=_0x53a342;ut[_0x15ddcf('0x38')](_0x15ddcf('0x1b'),_0x32d8dc),updateStatus(_0x51e982),_0x3cc691(ut['message'](_0x15ddcf('0x39')));});});},Fax[_0x19cd8c('0xf')][_0x19cd8c('0x59')]=function(_0x3800d1){const _0x3f48db=this;return new Promise(function(_0x4f3b14,_0x33856f){const _0x5865cb=a1061_0x488b,_0x2fe4ca=_0x3f48db[_0x5865cb('0x62')](_0x3f48db[_0x5865cb('0x5e')][_0x3800d1[_0x5865cb('0x4c')]]['Trunk'],_0x3800d1);_0x2fe4ca[_0x5865cb('0xb')]?_0x4f3b14(ut[_0x5865cb('0x64')](_0x5865cb('0x32'))):_0x33856f(ut[_0x5865cb('0x64')](_0x2fe4ca['message']));});};function originate(_0x327a96,_0x596ece,_0xc96771){return new Promise(function(_0x5b31a4,_0x14d48c){const _0x421c8e=a1061_0x488b;if(_0xc96771){const _0x4c29b7=util[_0x421c8e('0x68')]('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[_0x421c8e('0x52')](_0x327a96[_0x421c8e('0x4f')])[_0x421c8e('0x6d')],_0x327a96[_0x421c8e('0x4f')]);gs['execute'](_0x4c29b7)[_0x421c8e('0x6c')](function(){const _0x2009a5=_0x421c8e;_0x327a96[_0x2009a5('0x4f')]=util['format']('%s/%s.tif',path['parse'](_0x327a96['path'])[_0x2009a5('0x53')],path['parse'](_0x327a96[_0x2009a5('0x4f')])['name']),_0x596ece[_0x2009a5('0x5d')]=_0x327a96['path'],ut[_0x2009a5('0x38')](_0x2009a5('0x17'),''),ami[_0x2009a5('0x29')](ut[_0x2009a5('0x3b')](_0x327a96,_0x596ece))[_0x2009a5('0x6c')](function(_0x4354b3){_0x5b31a4(_0x4354b3);})['catch'](function(_0x41f390){_0x14d48c(_0x41f390);});})['catch'](function(_0x3b5262){_0x14d48c(_0x3b5262);});}else ami[_0x421c8e('0x29')](ut[_0x421c8e('0x3b')](_0x327a96,_0x596ece))[_0x421c8e('0x6c')](function(_0x5472b5){_0x5b31a4(_0x5472b5);})[_0x421c8e('0x6a')](function(_0x414393){_0x14d48c(_0x414393);});});}Fax[_0x19cd8c('0xf')]['execOriginate']=function(_0x167f92,_0x251d57){const _0x5f173a=this;return new Promise(function(_0x4fadc9,_0x444d25){const _0x1ad8a9=a1061_0x488b,_0x16ebd7=uuid['v4'](),_0x40a253=ut['addVariables'](_0x167f92,_0x251d57);_0x5f173a[_0x1ad8a9('0x1a')][_0x16ebd7]=new Action(_0x16ebd7,_0x251d57,_0x167f92);const _0x30d2b2=_0x5f173a[_0x1ad8a9('0x1a')][_0x16ebd7];path[_0x1ad8a9('0x52')](_0x167f92[_0x1ad8a9('0x4f')])[_0x1ad8a9('0x9')]===_0x1ad8a9('0x41')?originate(_0x30d2b2,_0x40a253,!![])[_0x1ad8a9('0x6c')](function(_0x2f45a0){_0x4fadc9(_0x2f45a0);})[_0x1ad8a9('0x6a')](function(_0x3838cb){_0x444d25(_0x3838cb);}):originate(_0x30d2b2,_0x40a253,![])['then'](function(_0x2dd81b){_0x4fadc9(_0x2dd81b);})[_0x1ad8a9('0x6a')](function(_0x30b96b){_0x444d25(_0x30b96b);});});},Fax['prototype'][_0x19cd8c('0x69')]=function(_0x1a0889){const _0x978732=_0x19cd8c;return!_[_0x978732('0x24')](_0x1a0889)&&!_[_0x978732('0x24')](_0x1a0889[_0x978732('0x6d')])&&!_[_0x978732('0x24')](_0x1a0889[_0x978732('0x5')])&&_0x1a0889[_0x978732('0x5')]&&!_['isNil'](this[_0x978732('0x31')][util['format'](_0x978732('0xa'),_0x1a0889[_0x978732('0x6d')])])&&!_[_0x978732('0x24')](this['trunks'][util[_0x978732('0x68')](_0x978732('0xa'),_0x1a0889[_0x978732('0x6d')])][_0x978732('0x1d')])&&(this[_0x978732('0x31')][util[_0x978732('0x68')](_0x978732('0xa'),_0x1a0889[_0x978732('0x6d')])][_0x978732('0x1d')]==='reachable'||this[_0x978732('0x31')][util['format'](_0x978732('0xa'),_0x1a0889[_0x978732('0x6d')])][_0x978732('0x1d')]===_0x978732('0x15'));},Fax['prototype'][_0x19cd8c('0x62')]=function(_0x231b1a,_0x4ad1ae){const _0x434afc=_0x19cd8c;if(!this[_0x434afc('0x69')](_0x231b1a))return ut[_0x434afc('0x38')](_0x434afc('0x30'),_[_0x434afc('0x24')](_0x231b1a)?'':_0x231b1a['name']+_0x434afc('0x43')),{'isValid':![],'message':_0x434afc('0x2')};if(_['isNil'](_0x4ad1ae[_0x434afc('0x46')]))return ut[_0x434afc('0x38')](_0x434afc('0x61'),JSON[_0x434afc('0x51')](_0x4ad1ae)),{'isValid':![],'message':'Empty\x20Fax'};if(_[_0x434afc('0x24')](_0x4ad1ae['path']))return ut['logger'](_0x434afc('0x3a'),JSON[_0x434afc('0x51')](_0x4ad1ae)),{'isValid':![],'message':'Empty\x20path'};return{'isValid':!![],'message':'Is\x20Valid'};},module['exports']=Fax; \ No newline at end of file +const a1225_0x34cd=['from-voip-provider','Is\x20Valid','./util/util','application/pdf','error','pagestransferred','uniqueid','Trunk','faxAccounts','path','SENDING\x20FAILED\x20','bind','create','\x20syncNewchannel\x20','localstationid','syncNewchannel','message','execOriginate','stringify','syncReceiveFax','transferrate','Trunk\x20not\x20working','.pdf','parse','calleridnum','tiff2pdf','XMF-PATH','SENDING\x20FAILED','merge','Empty\x20path','name','fax','[Fax][execOriginate][success]','syncOriginateResponse','./action','[Fax][Message][Error][Updated]','SUCCESS','syncVarSet','[Fax][Message][Updated]','receivefax','exten','addVariables','../rpc/attachment','[Fax][Message][NoUpdate2]','status','notify','channels','isNil','\x20receiveFax\x20','[Fax][Message][Error][NoUpdate1]','actions','operation','variablesAction','../rpc/faxAccount','then','FaxAccountId','update','Fax\x20failed','varset','[Fax][checkTrunk][Trunk\x20not\x20work]','undefined','reachable','AttachmentId','checkTrunk','info','util','updateStatus','SIP/%s','[Fax][Message][NoUpdate1]','channelstate','checkAfterSend','syncNewExten','lodash','newexten','newchannel','faxstatusstring','channelstatedesc','isValid','filename','\x20result\x20conversion\x20file\x20','active','hangup','Convert\x20pdf\x20to\x20tif','format','syncNewState','isTrunkReachable','syncHangup','logger','remotestationid','prototype','../../../config/logger','context','/var/opt/motion2/server/files/attachments/','../ami','syncFaxStatus','reason','channel','Trunk\x20Reachable','catch','response','unmonitored','resolution','trunks','ext','\x20hangup\x20faxRiceive\x20','exports','uuid','\x20hangup\x20sendFile\x20','dir','Action','variable','value','SENDING\x20FAILED:\x20'];(function(_0x528a4f,_0x2c0abc){const _0x34cd6c=function(_0x19a91d){while(--_0x19a91d){_0x528a4f['push'](_0x528a4f['shift']());}};_0x34cd6c(++_0x2c0abc);}(a1225_0x34cd,0x151));const a1225_0x19a9=function(_0x528a4f,_0x2c0abc){_0x528a4f=_0x528a4f-0x1c8;let _0x34cd6c=a1225_0x34cd[_0x528a4f];return _0x34cd6c;};const a1225_0x82ca06=a1225_0x19a9;'use strict';const util=require(a1225_0x82ca06(0x20b)),_=require(a1225_0x82ca06(0x212)),uuid=require(a1225_0x82ca06(0x234)),path=require(a1225_0x82ca06(0x1d3)),tiff2pdf=require(a1225_0x82ca06(0x1e3)),gs=require('./util/gs'),logger=require(a1225_0x82ca06(0x224))(a1225_0x82ca06(0x1e9)),ami=require(a1225_0x82ca06(0x227)),ut=require(a1225_0x82ca06(0x1cc)),Action=require(a1225_0x82ca06(0x1ec)),faxAccount=require(a1225_0x82ca06(0x1ff)),attachment=require(a1225_0x82ca06(0x1f4)),faxMessage=require('../rpc/faxMessage');function Fax(_0x11c319){const _0x6e9787=a1225_0x82ca06;this['channels']={},this[_0x6e9787(0x1d2)]=_0x11c319[_0x6e9787(0x1d2)],this[_0x6e9787(0x230)]=_0x11c319[_0x6e9787(0x230)],this['actions']={},ami['on'](_0x6e9787(0x214),this['syncNewchannel'][_0x6e9787(0x1d5)](this)),ami['on'](_0x6e9787(0x204),this[_0x6e9787(0x1ef)][_0x6e9787(0x1d5)](this)),ami['on']('newstate',this['syncNewState'][_0x6e9787(0x1d5)](this)),ami['on'](_0x6e9787(0x213),this[_0x6e9787(0x211)][_0x6e9787(0x1d5)](this)),ami['on']('faxstatus',this[_0x6e9787(0x228)][_0x6e9787(0x1d5)](this)),ami['on'](_0x6e9787(0x1f1),this[_0x6e9787(0x1dd)][_0x6e9787(0x1d5)](this)),ami['on'](_0x6e9787(0x21b),this['syncHangup'][_0x6e9787(0x1d5)](this)),ami['on']('originateresponse',this[_0x6e9787(0x1eb)][_0x6e9787(0x1d5)](this));}Fax[a1225_0x82ca06(0x223)][a1225_0x82ca06(0x1d9)]=function(_0x4713d2){const _0x1f18ac=a1225_0x82ca06;if(_0x4713d2[_0x1f18ac(0x225)]===_0x1f18ac(0x1ca))for(const _0x665f9e in this[_0x1f18ac(0x1d2)]){typeof this['faxAccounts'][_0x665f9e]!=='undefined'&&(_0x4713d2[_0x1f18ac(0x1f2)]===this['faxAccounts'][_0x665f9e]['localstationid']&&(this['channels'][_0x4713d2[_0x1f18ac(0x1d0)]]={},this[_0x1f18ac(0x1f8)][_0x4713d2['uniqueid']][_0x1f18ac(0x22a)]=_0x4713d2['channel'],this['channels'][_0x4713d2[_0x1f18ac(0x1d0)]]['id']=this[_0x1f18ac(0x1d2)][_0x665f9e]['id'],this['channels'][_0x4713d2['uniqueid']]['name']=this['faxAccounts'][_0x665f9e][_0x1f18ac(0x1e8)],logger[_0x1f18ac(0x20a)](_0x4713d2[_0x1f18ac(0x1d0)],_0x1f18ac(0x1d7))));}this[_0x1f18ac(0x1fc)][_0x4713d2['uniqueid']]&&(this[_0x1f18ac(0x1f8)][_0x4713d2[_0x1f18ac(0x1d0)]]={},this['channels'][_0x4713d2[_0x1f18ac(0x1d0)]][_0x1f18ac(0x22a)]=_0x4713d2[_0x1f18ac(0x22a)],logger['info'](_0x4713d2['uniqueid'],'\x20syncNewchannel\x20'));},Fax[a1225_0x82ca06(0x223)]['syncVarSet']=function(_0x3286c8){const _0x273ebb=a1225_0x82ca06;if(this[_0x273ebb(0x1f8)][_0x3286c8[_0x273ebb(0x1d0)]])for(const _0x3ab1ec in _0x3286c8[_0x273ebb(0x238)]){typeof _0x3286c8[_0x273ebb(0x238)][_0x3ab1ec]!==_0x273ebb(0x206)&&(this[_0x273ebb(0x1f8)][_0x3286c8[_0x273ebb(0x1d0)]][_0x3ab1ec]=_0x3286c8[_0x273ebb(0x1c8)]);}},Fax['prototype'][a1225_0x82ca06(0x21e)]=function(_0x35975e){const _0x4e26a6=a1225_0x82ca06;this[_0x4e26a6(0x1f8)][_0x35975e[_0x4e26a6(0x1d0)]]&&(this['channels'][_0x35975e['uniqueid']][_0x4e26a6(0x20f)]=_0x35975e[_0x4e26a6(0x20f)],this[_0x4e26a6(0x1f8)][_0x35975e[_0x4e26a6(0x1d0)]][_0x4e26a6(0x216)]=_0x35975e[_0x4e26a6(0x216)]);},Fax['prototype']['syncNewExten']=function(_0x252d59){const _0x1a4508=a1225_0x82ca06;if(this['channels'][_0x252d59[_0x1a4508(0x1d0)]])for(const _0x2ae243 in _0x252d59[_0x1a4508(0x238)]){typeof _0x252d59[_0x1a4508(0x238)][_0x2ae243]!==_0x1a4508(0x206)&&(this['channels'][_0x252d59[_0x1a4508(0x1d0)]][_0x2ae243]=_0x252d59['value']);}},Fax[a1225_0x82ca06(0x223)][a1225_0x82ca06(0x228)]=function(_0x37e444){const _0x46186d=a1225_0x82ca06;this[_0x46186d(0x1f8)][_0x37e444[_0x46186d(0x1d0)]]&&(this[_0x46186d(0x1f8)][_0x37e444[_0x46186d(0x1d0)]][_0x46186d(0x1fd)]=_0x37e444[_0x46186d(0x1fd)],this[_0x46186d(0x1f8)][_0x37e444[_0x46186d(0x1d0)]][_0x46186d(0x1f6)]=_0x37e444[_0x46186d(0x1f6)],this[_0x46186d(0x1f8)][_0x37e444[_0x46186d(0x1d0)]][_0x46186d(0x1d8)]=_0x37e444['localstationid'],this[_0x46186d(0x1f8)][_0x37e444[_0x46186d(0x1d0)]][_0x46186d(0x218)]=_0x37e444[_0x46186d(0x218)],logger[_0x46186d(0x20a)](_0x37e444[_0x46186d(0x1d0)],'\x20syncFaxStatus\x20'));},Fax[a1225_0x82ca06(0x223)][a1225_0x82ca06(0x1dd)]=function(_0x29c186){const _0x4469ad=a1225_0x82ca06;if(this[_0x4469ad(0x1f8)][_0x29c186['uniqueid']]){const _0x1c0cfd=this[_0x4469ad(0x1f8)][_0x29c186[_0x4469ad(0x1d0)]]['id'];this[_0x4469ad(0x1f8)][_0x29c186[_0x4469ad(0x1d0)]][_0x4469ad(0x222)]=_0x29c186[_0x4469ad(0x222)],this[_0x4469ad(0x1f8)][_0x29c186['uniqueid']][_0x4469ad(0x1cf)]=_0x29c186[_0x4469ad(0x1cf)],this[_0x4469ad(0x1f8)][_0x29c186[_0x4469ad(0x1d0)]][_0x4469ad(0x1d8)]=_0x29c186[_0x4469ad(0x1d8)],this[_0x4469ad(0x1f8)][_0x29c186['uniqueid']][_0x4469ad(0x22f)]=_0x29c186[_0x4469ad(0x22f)],this[_0x4469ad(0x1f8)][_0x29c186['uniqueid']][_0x4469ad(0x1de)]=_0x29c186[_0x4469ad(0x1de)],this[_0x4469ad(0x1f8)][_0x29c186[_0x4469ad(0x1d0)]][_0x4469ad(0x218)]=_0x29c186[_0x4469ad(0x218)],this[_0x4469ad(0x1f8)][_0x29c186[_0x4469ad(0x1d0)]]['calleridnum']=_0x29c186[_0x4469ad(0x1e2)],this[_0x4469ad(0x1f8)][_0x29c186[_0x4469ad(0x1d0)]][_0x4469ad(0x1cf)]>0x0&&tiff2pdf(_0x29c186[_0x4469ad(0x218)],_0x4469ad(0x226),function(_0x32a7ec){const _0x1e85af=_0x4469ad;logger['info'](_0x29c186['uniqueid'],_0x1e85af(0x219),_0x32a7ec[_0x1e85af(0x1da)]),attachment[_0x1e85af(0x1d6)]({'name':path[_0x1e85af(0x1e1)](_0x29c186['filename'])[_0x1e85af(0x1e8)],'basename':path['parse'](_0x29c186[_0x1e85af(0x218)])[_0x1e85af(0x1e8)]+_0x1e85af(0x1e0),'type':_0x1e85af(0x1cd)})[_0x1e85af(0x200)](function(_0x3af7e6){const _0x2759c2=_0x1e85af;faxAccount[_0x2759c2(0x1f7)](_0x1c0cfd,{'from':_0x29c186[_0x2759c2(0x1e2)],'mapKey':'fax','body':path['parse'](_0x29c186['filename'])[_0x2759c2(0x1e8)]+_0x2759c2(0x1e0),'AttachmentId':_0x3af7e6['id']})[_0x2759c2(0x22c)](function(_0x1ab2ab){const _0xbaab32=_0x2759c2;logger[_0xbaab32(0x1ce)](_0x29c186[_0xbaab32(0x1d0)],'\x20notify\x20',JSON[_0xbaab32(0x1dc)](_0x1ab2ab));});})[_0x1e85af(0x22c)](function(_0x500ecd){const _0x53b12d=_0x1e85af;logger[_0x53b12d(0x1ce)](_0x29c186[_0x53b12d(0x1d0)],_0x53b12d(0x1fa),JSON[_0x53b12d(0x1dc)](_0x500ecd));});}),logger[_0x4469ad(0x20a)](_0x29c186[_0x4469ad(0x1d0)],_0x4469ad(0x1fa));}},Fax[a1225_0x82ca06(0x223)][a1225_0x82ca06(0x1eb)]=function(_0x5e8616){const _0x26d651=a1225_0x82ca06;this['actions'][_0x5e8616[_0x26d651(0x1d0)]]&&_[_0x26d651(0x1e6)](this['channels'][_0x5e8616[_0x26d651(0x1d0)]],_['pick'](_0x5e8616,[_0x26d651(0x22d),_0x26d651(0x229)]));};function updateStatus(_0x53a318){const _0x467912=a1225_0x82ca06;_0x53a318[_0x467912(0x208)]?faxMessage[_0x467912(0x202)](_0x53a318[_0x467912(0x208)],{'failMessage':_0x467912(0x1d4)})[_0x467912(0x200)](function(_0x2ecb78){const _0x2051bf=_0x467912;ut[_0x2051bf(0x221)](_0x2051bf(0x1ed),_0x2ecb78);})[_0x467912(0x22c)](function(_0x32069e){const _0x49d267=_0x467912;ut[_0x49d267(0x221)](_0x49d267(0x1fb),_0x32069e);}):ut[_0x467912(0x221)]('[Fax][Message][Error][NoUpdate2]');}Fax[a1225_0x82ca06(0x223)][a1225_0x82ca06(0x20c)]=function(_0x479dfb,_0x284aaa,_0x3218de){const _0xa9b0e=a1225_0x82ca06,_0x5d0a29=this;let _0x1a63b4={};_0x284aaa?_0x1a63b4={'read':_0x284aaa}:_0x1a63b4={'failMessage':_0x3218de},this[_0xa9b0e(0x1fc)][_0x479dfb][_0xa9b0e(0x208)]?faxMessage[_0xa9b0e(0x202)](this['actions'][_0x479dfb]['AttachmentId'],_0x1a63b4)[_0xa9b0e(0x200)](function(_0x439e0d){const _0x1decb2=_0xa9b0e;ut[_0x1decb2(0x221)](_0x1decb2(0x1f0),_0x439e0d);})[_0xa9b0e(0x22c)](function(_0x4ee722){const _0x5f2a05=_0xa9b0e;ut[_0x5f2a05(0x221)](_0x5f2a05(0x20e),_0x4ee722);})['finally'](function(){const _0x4e069a=_0xa9b0e;delete _0x5d0a29[_0x4e069a(0x1f8)][_0x479dfb],delete _0x5d0a29[_0x4e069a(0x1fc)][_0x479dfb];}):(ut[_0xa9b0e(0x221)](_0xa9b0e(0x1f5)),delete this[_0xa9b0e(0x1f8)][_0x479dfb],delete this[_0xa9b0e(0x1fc)][_0x479dfb]);},Fax['prototype'][a1225_0x82ca06(0x220)]=function(_0xe65381){const _0x22899b=a1225_0x82ca06;this[_0x22899b(0x1f8)][_0xe65381[_0x22899b(0x1d0)]]&&(this['actions'][_0xe65381['uniqueid']]&&(this['channels'][_0xe65381['uniqueid']]['id']=this[_0x22899b(0x1fc)][_0xe65381[_0x22899b(0x1d0)]]['id'],this[_0x22899b(0x1f8)][_0xe65381[_0x22899b(0x1d0)]][_0x22899b(0x1e8)]=this[_0x22899b(0x1fc)][_0xe65381[_0x22899b(0x1d0)]][_0x22899b(0x1e8)]),logger['info'](_0xe65381['uniqueid'],this[_0x22899b(0x1fc)][_0xe65381[_0x22899b(0x1d0)]]?_0x22899b(0x235):_0x22899b(0x232),JSON[_0x22899b(0x1dc)](this['channels'][_0xe65381[_0x22899b(0x1d0)]])),this[_0x22899b(0x1fc)][_0xe65381[_0x22899b(0x1d0)]]&&(this['channels'][_0xe65381[_0x22899b(0x1d0)]]['faxpages']>0x0&&this[_0x22899b(0x1f8)][_0xe65381[_0x22899b(0x1d0)]]['faxstatus']===_0x22899b(0x1ee)?this['updateStatus'](_0xe65381[_0x22899b(0x1d0)],!![]):this[_0x22899b(0x20c)](_0xe65381[_0x22899b(0x1d0)],![],this[_0x22899b(0x1f8)][_0xe65381['uniqueid']][_0x22899b(0x215)]?_0x22899b(0x1c9)+this['channels'][_0xe65381[_0x22899b(0x1d0)]][_0x22899b(0x215)]:_0x22899b(0x1e5))));},Fax[a1225_0x82ca06(0x223)]['send']=function(_0x445c6b){const _0x4452fa=this;return new Promise(function(_0x832966,_0x41a2f6){const _0x12ef3c=a1225_0x19a9;_0x4452fa[_0x12ef3c(0x1db)](_0x445c6b,_0x4452fa[_0x12ef3c(0x1d2)][_0x445c6b['FaxAccountId']])[_0x12ef3c(0x200)](function(_0x297d6b){const _0x1da053=_0x12ef3c;ut[_0x1da053(0x221)](_0x1da053(0x1ea),_0x297d6b),_0x832966(ut['message']('Fax\x20received'));})[_0x12ef3c(0x22c)](function(_0xeac0b7){const _0x5f35e5=_0x12ef3c;ut[_0x5f35e5(0x221)]('[Fax][execOriginate][failure]',_0xeac0b7),updateStatus(_0x445c6b),_0x41a2f6(ut[_0x5f35e5(0x1da)](_0x5f35e5(0x203)));});});},Fax[a1225_0x82ca06(0x223)][a1225_0x82ca06(0x210)]=function(_0x581305){const _0xfbe78f=this;return new Promise(function(_0x284fcd,_0x381812){const _0x717191=a1225_0x19a9,_0x2b6f10=_0xfbe78f['checkTrunk'](_0xfbe78f['faxAccounts'][_0x581305[_0x717191(0x201)]][_0x717191(0x1d1)],_0x581305);_0x2b6f10[_0x717191(0x217)]?_0x284fcd(ut[_0x717191(0x1da)](_0x717191(0x22b))):_0x381812(ut[_0x717191(0x1da)](_0x2b6f10['message']));});};function originate(_0x538259,_0x281f3b,_0x5b2903){return new Promise(function(_0x42b190,_0x40da2f){const _0x58f8c5=a1225_0x19a9;if(_0x5b2903){const _0x407b00=util[_0x58f8c5(0x21d)]('gs\x20-q\x20-dNOPAUSE\x20-dBATCH\x20-sDEVICE=tiffg4\x20-sPAPERSIZE=letter\x20-sOutputFile=/var/opt/motion2/server/files/attachments/%s.tif\x20\x20%s\x20-c\x20quit',path['parse'](_0x538259['path'])[_0x58f8c5(0x1e8)],_0x538259[_0x58f8c5(0x1d3)]);gs['execute'](_0x407b00)['then'](function(){const _0x83b13=_0x58f8c5;_0x538259[_0x83b13(0x1d3)]=util[_0x83b13(0x21d)]('%s/%s.tif',path[_0x83b13(0x1e1)](_0x538259[_0x83b13(0x1d3)])[_0x83b13(0x236)],path[_0x83b13(0x1e1)](_0x538259[_0x83b13(0x1d3)])[_0x83b13(0x1e8)]),_0x281f3b[_0x83b13(0x1e4)]=_0x538259[_0x83b13(0x1d3)],ut[_0x83b13(0x221)](_0x83b13(0x21c),''),ami[_0x83b13(0x237)](ut[_0x83b13(0x1fe)](_0x538259,_0x281f3b))[_0x83b13(0x200)](function(_0x5cb359){_0x42b190(_0x5cb359);})[_0x83b13(0x22c)](function(_0x57a6ff){_0x40da2f(_0x57a6ff);});})[_0x58f8c5(0x22c)](function(_0xc88ea7){_0x40da2f(_0xc88ea7);});}else ami[_0x58f8c5(0x237)](ut[_0x58f8c5(0x1fe)](_0x538259,_0x281f3b))[_0x58f8c5(0x200)](function(_0x2afa38){_0x42b190(_0x2afa38);})[_0x58f8c5(0x22c)](function(_0x3f9ea1){_0x40da2f(_0x3f9ea1);});});}Fax[a1225_0x82ca06(0x223)][a1225_0x82ca06(0x1db)]=function(_0x127bbf,_0x44ff1f){const _0x229752=this;return new Promise(function(_0x212e7b,_0x3bb376){const _0x655838=a1225_0x19a9,_0x467517=uuid['v4'](),_0x157005=ut[_0x655838(0x1f3)](_0x127bbf,_0x44ff1f);_0x229752[_0x655838(0x1fc)][_0x467517]=new Action(_0x467517,_0x44ff1f,_0x127bbf);const _0x4bc6ad=_0x229752[_0x655838(0x1fc)][_0x467517];path[_0x655838(0x1e1)](_0x127bbf[_0x655838(0x1d3)])[_0x655838(0x231)]===_0x655838(0x1e0)?originate(_0x4bc6ad,_0x157005,!![])[_0x655838(0x200)](function(_0x56b543){_0x212e7b(_0x56b543);})[_0x655838(0x22c)](function(_0x37504a){_0x3bb376(_0x37504a);}):originate(_0x4bc6ad,_0x157005,![])[_0x655838(0x200)](function(_0x4a6680){_0x212e7b(_0x4a6680);})[_0x655838(0x22c)](function(_0x5dfad2){_0x3bb376(_0x5dfad2);});});},Fax[a1225_0x82ca06(0x223)][a1225_0x82ca06(0x21f)]=function(_0x12df55){const _0x1ea3e1=a1225_0x82ca06;return!_['isNil'](_0x12df55)&&!_[_0x1ea3e1(0x1f9)](_0x12df55[_0x1ea3e1(0x1e8)])&&!_['isNil'](_0x12df55[_0x1ea3e1(0x21a)])&&_0x12df55['active']&&!_[_0x1ea3e1(0x1f9)](this[_0x1ea3e1(0x230)][util['format']('SIP/%s',_0x12df55[_0x1ea3e1(0x1e8)])])&&!_[_0x1ea3e1(0x1f9)](this[_0x1ea3e1(0x230)][util['format'](_0x1ea3e1(0x20d),_0x12df55[_0x1ea3e1(0x1e8)])][_0x1ea3e1(0x1f6)])&&(this[_0x1ea3e1(0x230)][util[_0x1ea3e1(0x21d)](_0x1ea3e1(0x20d),_0x12df55[_0x1ea3e1(0x1e8)])]['status']===_0x1ea3e1(0x207)||this[_0x1ea3e1(0x230)][util[_0x1ea3e1(0x21d)](_0x1ea3e1(0x20d),_0x12df55['name'])][_0x1ea3e1(0x1f6)]===_0x1ea3e1(0x22e));},Fax[a1225_0x82ca06(0x223)][a1225_0x82ca06(0x209)]=function(_0x37ed0f,_0x3feb4f){const _0x1f7470=a1225_0x82ca06;if(!this[_0x1f7470(0x21f)](_0x37ed0f))return ut['logger'](_0x1f7470(0x205),_[_0x1f7470(0x1f9)](_0x37ed0f)?'':_0x37ed0f[_0x1f7470(0x1e8)]+'\x20Trunk\x20is\x20not\x20active'),{'isValid':![],'message':_0x1f7470(0x1df)};if(_['isNil'](_0x3feb4f['fax']))return ut[_0x1f7470(0x221)]('[Fax][checkTrunk][Empty\x20Fax]',JSON['stringify'](_0x3feb4f)),{'isValid':![],'message':'Empty\x20Fax'};if(_[_0x1f7470(0x1f9)](_0x3feb4f['path']))return ut[_0x1f7470(0x221)]('[Fax][checkTrunk][Empty\x20path]',JSON['stringify'](_0x3feb4f)),{'isValid':![],'message':_0x1f7470(0x1e7)};return{'isValid':!![],'message':_0x1f7470(0x1cb)};},module[a1225_0x82ca06(0x233)]=Fax; \ No newline at end of file diff --git a/server/services/ami/fax/rpcDb.js b/server/services/ami/fax/rpcDb.js index c203304..e37383c 100644 --- a/server/services/ami/fax/rpcDb.js +++ b/server/services/ami/fax/rpcDb.js @@ -1 +1 @@ -const a1062_0x49bc=['resolve','catch','util','then','../rpc/faxAccount','error','[Notify]\x20','notify','inspect'];(function(_0xd99ac5,_0x49bc41){const _0x426bc8=function(_0x692946){while(--_0x692946){_0xd99ac5['push'](_0xd99ac5['shift']());}};_0x426bc8(++_0x49bc41);}(a1062_0x49bc,0x1d5));const a1062_0x426b=function(_0xd99ac5,_0x49bc41){_0xd99ac5=_0xd99ac5-0x0;let _0x426bc8=a1062_0x49bc[_0xd99ac5];return _0x426bc8;};const _0x4f1875=a1062_0x426b;'use strict';const util=require(_0x4f1875('0x1')),logger=require('../../../config/logger')('preview'),faxAccount=require(_0x4f1875('0x3'));function loggerCatch(_0x692946){return function(_0x1c5ed0){const _0x354ec=a1062_0x426b;logger[_0x354ec('0x4')](_0x692946,util[_0x354ec('0x7')](_0x1c5ed0,{'showHidden':![],'depth':null}));};}exports[_0x4f1875('0x6')]=function(_0x1c7a79,_0x2900d9){const _0x13645d=_0x4f1875;return Promise[_0x13645d('0x8')]()[_0x13645d('0x2')](faxAccount[_0x13645d('0x6')](_0x1c7a79,_0x2900d9))[_0x13645d('0x0')](loggerCatch(_0x13645d('0x5')));}; \ No newline at end of file +const a1226_0x58dd=['notify','catch','[Notify]\x20','preview','resolve','error','util','../rpc/faxAccount'];(function(_0x4943d2,_0x3b9d35){const _0x58ddc2=function(_0x42cfbe){while(--_0x42cfbe){_0x4943d2['push'](_0x4943d2['shift']());}};_0x58ddc2(++_0x3b9d35);}(a1226_0x58dd,0x19a));const a1226_0x42cf=function(_0x4943d2,_0x3b9d35){_0x4943d2=_0x4943d2-0x126;let _0x58ddc2=a1226_0x58dd[_0x4943d2];return _0x58ddc2;};const a1226_0x5bd224=a1226_0x42cf;'use strict';const util=require(a1226_0x5bd224(0x12a)),logger=require('../../../config/logger')(a1226_0x5bd224(0x127)),faxAccount=require(a1226_0x5bd224(0x12b));function loggerCatch(_0x56f1f3){return function(_0x158e0f){const _0x23d094=a1226_0x42cf;logger[_0x23d094(0x129)](_0x56f1f3,util['inspect'](_0x158e0f,{'showHidden':![],'depth':null}));};}exports[a1226_0x5bd224(0x12c)]=function(_0x3fd4e6,_0x55c127){const _0x3dfa51=a1226_0x5bd224;return Promise[_0x3dfa51(0x128)]()['then'](faxAccount['notify'](_0x3fd4e6,_0x55c127))[_0x3dfa51(0x12d)](loggerCatch(_0x3dfa51(0x126)));}; \ 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 9c92f91..32eff18 100644 --- a/server/services/ami/fax/util/gs.js +++ b/server/services/ami/fax/util/gs.js @@ -1 +1 @@ -const a1063_0x2927=['util','Exec\x20gs','info','\x20Error\x20:','../../../../config/logger','inspect','execute','fax'];(function(_0x18e57c,_0x2927ae){const _0x361aff=function(_0x17cf92){while(--_0x17cf92){_0x18e57c['push'](_0x18e57c['shift']());}};_0x361aff(++_0x2927ae);}(a1063_0x2927,0x197));const a1063_0x361a=function(_0x18e57c,_0x2927ae){_0x18e57c=_0x18e57c-0x0;let _0x361aff=a1063_0x2927[_0x18e57c];return _0x361aff;};const _0x5bfd0a=a1063_0x361a;'use strict';const util=require(_0x5bfd0a('0x1')),logger=require(_0x5bfd0a('0x5'))(_0x5bfd0a('0x0')),exec=require('child_process')['exec'];exports[_0x5bfd0a('0x7')]=function(_0x17cf92){return new Promise(function(_0x34ed19,_0x535002){exec(_0x17cf92,function(_0x14c797,_0x446eef,_0x19e241){const _0x293716=a1063_0x361a;logger[_0x293716('0x3')](_0x293716('0x2'),_0x446eef),_0x14c797&&(logger[_0x293716('0x3')]('Exec\x20gs',_0x293716('0x4'),util[_0x293716('0x6')](_0x14c797,{'showHidden':![],'depth':null}),_0x446eef,_0x19e241),_0x535002(_0x14c797)),_0x34ed19(_0x446eef);});});}; \ No newline at end of file +const a1227_0x4a42=['../../../../config/logger','child_process','info','Exec\x20gs','execute','fax','util','inspect'];(function(_0x42666c,_0x533d63){const _0x4a4203=function(_0x2cce09){while(--_0x2cce09){_0x42666c['push'](_0x42666c['shift']());}};_0x4a4203(++_0x533d63);}(a1227_0x4a42,0x149));const a1227_0x2cce=function(_0x42666c,_0x533d63){_0x42666c=_0x42666c-0x83;let _0x4a4203=a1227_0x4a42[_0x42666c];return _0x4a4203;};const a1227_0x2fea83=a1227_0x2cce;'use strict';const util=require(a1227_0x2fea83(0x88)),logger=require(a1227_0x2fea83(0x8a))(a1227_0x2fea83(0x87)),exec=require(a1227_0x2fea83(0x83))['exec'];exports[a1227_0x2fea83(0x86)]=function(_0x1b8322){return new Promise(function(_0xd4dfe8,_0x287b07){exec(_0x1b8322,function(_0x58b04e,_0x451666,_0x5aa9cf){const _0x4aa2dd=a1227_0x2cce;logger[_0x4aa2dd(0x84)](_0x4aa2dd(0x85),_0x451666),_0x58b04e&&(logger[_0x4aa2dd(0x84)](_0x4aa2dd(0x85),'\x20Error\x20:',util[_0x4aa2dd(0x89)](_0x58b04e,{'showHidden':![],'depth':null}),_0x451666,_0x5aa9cf),_0x287b07(_0x58b04e)),_0xd4dfe8(_0x451666);});});}; \ 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 86aaa13..09d7262 100644 --- a/server/services/ami/fax/util/util.js +++ b/server/services/ami/fax/util/util.js @@ -1 +1 @@ -const a1064_0x5606=['\x22%s\x22','localstationid','message','fax','inspect','ecm','t38timeout','format','minrate','uniqueid','headerinfo','util','from-sip','gateway','xcally-motion-fax','modem','faxdetect','\x22%s\x22\x20<%s>','maxrate','variablesAction','originate'];(function(_0x1bb61a,_0x5606a2){const _0x2b2f79=function(_0x4d7f21){while(--_0x4d7f21){_0x1bb61a['push'](_0x1bb61a['shift']());}};_0x2b2f79(++_0x5606a2);}(a1064_0x5606,0x171));const a1064_0x2b2f=function(_0x1bb61a,_0x5606a2){_0x1bb61a=_0x1bb61a-0x0;let _0x2b2f79=a1064_0x5606[_0x1bb61a];return _0x2b2f79;};const _0x7a455e=a1064_0x2b2f;'use strict';const util=require(_0x7a455e('0x14')),logger=require('../../../../config/logger')(_0x7a455e('0xc'));exports[_0x7a455e('0xb')]=function(_0x4d7f21){return{'message':_0x4d7f21};},exports['logger']=function(_0x5bed27,_0x4b9c75){const _0x92bbc5=_0x7a455e;logger['info'](_0x5bed27,util[_0x92bbc5('0xd')](_0x4b9c75,{'showHidden':![],'depth':null}));},exports['addVariables']=function(_0x42c1b3,_0x1220db){const _0x511857=_0x7a455e,_0x37abf4={'XMF-ECM':_0x1220db[_0x511857('0xe')],'XMF-HEADERINFO':_0x1220db[_0x511857('0x13')],'XMF-MINRATE':_0x1220db[_0x511857('0x11')],'XMF-MAXRATE':_0x1220db[_0x511857('0x6')],'XMF-MODEM':util[_0x511857('0x10')](_0x511857('0x9'),_0x1220db[_0x511857('0x3')]),'XMF-GATEWAY':_0x1220db[_0x511857('0x1')],'XMF-FAXDETECT':_0x1220db[_0x511857('0x4')],'XMF-T38TIMEOUT':_0x1220db[_0x511857('0xf')],'XMF-LOCALSTATIONID':_0x1220db[_0x511857('0xa')],'XMF-PATH':_0x42c1b3['path']};return _0x37abf4;},exports[_0x7a455e('0x7')]=function(_0x2d47fa,_0x3bf63d){const _0x3ea46a=_0x7a455e;return{'actionid':_0x2d47fa[_0x3ea46a('0x12')],'action':_0x3ea46a('0x8'),'channel':_0x2d47fa['channel'],'Exten':_0x3ea46a('0x2'),'Context':_0x3ea46a('0x0'),'Priority':'1','callerid':util[_0x3ea46a('0x10')](_0x3ea46a('0x5'),_0x2d47fa[_0x3ea46a('0x13')]?_0x2d47fa[_0x3ea46a('0x13')]:'',_0x2d47fa[_0x3ea46a('0xa')]),'variable':_0x3bf63d,'timeout':0x1e*0x3e8,'async':!![],'channelid':_0x2d47fa[_0x3ea46a('0x12')]};}; \ No newline at end of file +const a1228_0x2555=['from-sip','addVariables','uniqueid','message','xcally-motion-fax','minrate','t38timeout','info','localstationid','channel','variablesAction','format','gateway','logger','inspect','fax','headerinfo','originate'];(function(_0x41ee5a,_0xf14e12){const _0x2555e5=function(_0x3392f9){while(--_0x3392f9){_0x41ee5a['push'](_0x41ee5a['shift']());}};_0x2555e5(++_0xf14e12);}(a1228_0x2555,0x18a));const a1228_0x3392=function(_0x41ee5a,_0xf14e12){_0x41ee5a=_0x41ee5a-0x91;let _0x2555e5=a1228_0x2555[_0x41ee5a];return _0x2555e5;};const a1228_0x224be4=a1228_0x3392;'use strict';const util=require('util'),logger=require('../../../../config/logger')(a1228_0x224be4(0xa2));exports[a1228_0x224be4(0x96)]=function(_0x46225d){return{'message':_0x46225d};},exports[a1228_0x224be4(0xa0)]=function(_0x5c3545,_0x508c99){const _0x2b5c1a=a1228_0x224be4;logger[_0x2b5c1a(0x9a)](_0x5c3545,util[_0x2b5c1a(0xa1)](_0x508c99,{'showHidden':![],'depth':null}));},exports[a1228_0x224be4(0x94)]=function(_0x3adc6a,_0x390dfc){const _0x5605b9=a1228_0x224be4,_0x17a5a6={'XMF-ECM':_0x390dfc['ecm'],'XMF-HEADERINFO':_0x390dfc['headerinfo'],'XMF-MINRATE':_0x390dfc[_0x5605b9(0x98)],'XMF-MAXRATE':_0x390dfc['maxrate'],'XMF-MODEM':util[_0x5605b9(0x9e)]('\x22%s\x22',_0x390dfc['modem']),'XMF-GATEWAY':_0x390dfc[_0x5605b9(0x9f)],'XMF-FAXDETECT':_0x390dfc['faxdetect'],'XMF-T38TIMEOUT':_0x390dfc[_0x5605b9(0x99)],'XMF-LOCALSTATIONID':_0x390dfc[_0x5605b9(0x9b)],'XMF-PATH':_0x3adc6a['path']};return _0x17a5a6;},exports[a1228_0x224be4(0x9d)]=function(_0x542322,_0x3a4cd9){const _0x1ec6aa=a1228_0x224be4;return{'actionid':_0x542322[_0x1ec6aa(0x95)],'action':_0x1ec6aa(0x92),'channel':_0x542322[_0x1ec6aa(0x9c)],'Exten':_0x1ec6aa(0x97),'Context':_0x1ec6aa(0x93),'Priority':'1','callerid':util[_0x1ec6aa(0x9e)]('\x22%s\x22\x20<%s>',_0x542322[_0x1ec6aa(0x91)]?_0x542322['headerinfo']:'',_0x542322['localstationid']),'variable':_0x3a4cd9,'timeout':0x1e*0x3e8,'async':!![],'channelid':_0x542322[_0x1ec6aa(0x95)]};}; \ No newline at end of file diff --git a/server/services/ami/index.js b/server/services/ami/index.js index 2cc395d..01105ac 100644 --- a/server/services/ami/index.js +++ b/server/services/ami/index.js @@ -1 +1 @@ -const a1065_0xf7db=['getVoiceQueueReports','getVoiceQueueHopperHistory','./rpc/voiceQueueReport','./rpc/integrations/zoho','getTelephones','initVtigerAccounts','getFreshsalesAccounts','sync','initVoiceQueueHopperHistory','initFreshsalesAccounts','getCampaigns','./preview','./rpc/cmHopperHistory','./rpc/integrations/desk','./report','initSalesforceAccounts','initSugarcrmAccounts','getVoiceCallReports','./rpc/integrations/vtiger','../../globals','initTelephones','getSalesforceAccounts','initZendeskAccounts','initCampaignHopperHistory','getSugarcrmAccounts','getFaxAccounts','./rpc/template','./rpc/integrations/sugarcrm','get','initAgents','then','./server','moment','./rpc/faxAccount','./rpc/integrations/servicenow','getFreshdeskAccounts','initDynamics365Accounts','initFaxAccounts','getTriggers','initVoiceQueues','initVoiceExtensions','initTemplates','initVoiceCallReports','initTrunks','initZohoAccounts','./rpc/integrations/dynamics365','initFreshdeskAccounts','getTemplates','log','getDynamics365Accounts','./rpc/trunk','getCampaignHopperHistory','getAgents','./rpc/integrations/salesforce','catch','./fax','hour','listen','getServicenowAccounts','getZendeskAccounts','./realtime','getZohoAccounts','./rpc/integrations/freshdesk','getVtigerAccounts','./rpc/integrations/zendesk'];(function(_0x5b996f,_0xf7db22){const _0x3769e1=function(_0x4ccbe3){while(--_0x4ccbe3){_0x5b996f['push'](_0x5b996f['shift']());}};_0x3769e1(++_0xf7db22);}(a1065_0xf7db,0x1a7));const a1065_0x3769=function(_0x5b996f,_0xf7db22){_0x5b996f=_0x5b996f-0x0;let _0x3769e1=a1065_0xf7db[_0x5b996f];return _0x3769e1;};const _0x411f2d=a1065_0x3769;'use strict';require(_0x411f2d('0x33'));const moment=require(_0x411f2d('0x40')),server=require(_0x411f2d('0x3f')),Realtime=require(_0x411f2d('0x1b')),Report=require(_0x411f2d('0x2e')),Preview=require(_0x411f2d('0x2b')),Fax=require(_0x411f2d('0x16')),user=require('./rpc/user'),voiceQueue=require('./rpc/voiceQueue'),voiceQueueReport=require(_0x411f2d('0x22')),voiceCallReport=require('./rpc/voiceCallReport'),trunk=require(_0x411f2d('0x11')),trigger=require('./rpc/trigger'),template=require(_0x411f2d('0x3a')),cmHopperHistory=require(_0x411f2d('0x2c')),campaign=require('./rpc/campaign'),voiceExtension=require('./rpc/voiceExtension'),faxAccount=require(_0x411f2d('0x0')),zendesk=require(_0x411f2d('0x1f')),salesforce=require(_0x411f2d('0x14')),sugarcrm=require(_0x411f2d('0x3b')),freshdesk=require(_0x411f2d('0x1d')),desk=require(_0x411f2d('0x2d')),zoho=require(_0x411f2d('0x23')),vtiger=require(_0x411f2d('0x32')),freshsales=require('./rpc/integrations/freshsales'),servicenow=require(_0x411f2d('0x1')),dynamics365=require(_0x411f2d('0xc')),realtime=new Realtime(),report=new Report(realtime),preview=new Preview(realtime),fax=new Fax(realtime);let isTrue=!![],initP=!![];function ifMidnight(){const _0x4576d2=_0x411f2d;moment()[_0x4576d2('0x3c')](_0x4576d2('0x17'))===0x0&&initP&&(initP=![],isTrue=!![],initParams()),moment()[_0x4576d2('0x3c')](_0x4576d2('0x17'))===0x1&&isTrue&&(isTrue=![],initP=!![]);}function initRealtime(){const _0x5786a2=_0x411f2d;return ifMidnight(),Promise['resolve']()[_0x5786a2('0x3e')](user[_0x5786a2('0x13')]())[_0x5786a2('0x3e')](realtime[_0x5786a2('0x3d')]())[_0x5786a2('0x3e')](user[_0x5786a2('0x24')]())[_0x5786a2('0x3e')](realtime[_0x5786a2('0x34')]())[_0x5786a2('0x3e')](trunk['getTrunks']())[_0x5786a2('0x3e')](realtime[_0x5786a2('0xa')]())['then'](voiceQueue['getVoiceQueues']())['then'](realtime[_0x5786a2('0x6')]())[_0x5786a2('0x3e')](trigger[_0x5786a2('0x5')]())[_0x5786a2('0x3e')](realtime['initTriggers']())[_0x5786a2('0x3e')](template[_0x5786a2('0xe')]())[_0x5786a2('0x3e')](realtime[_0x5786a2('0x8')]())[_0x5786a2('0x3e')](zendesk[_0x5786a2('0x1a')]())[_0x5786a2('0x3e')](realtime[_0x5786a2('0x36')]())[_0x5786a2('0x3e')](salesforce[_0x5786a2('0x35')]())['then'](realtime[_0x5786a2('0x2f')]())[_0x5786a2('0x3e')](sugarcrm[_0x5786a2('0x38')]())['then'](realtime[_0x5786a2('0x30')]())[_0x5786a2('0x3e')](freshdesk[_0x5786a2('0x2')]())['then'](realtime[_0x5786a2('0xd')]())[_0x5786a2('0x3e')](desk['getDeskAccounts']())[_0x5786a2('0x3e')](realtime['initDeskAccounts']())[_0x5786a2('0x3e')](zoho[_0x5786a2('0x1c')]())['then'](realtime[_0x5786a2('0xb')]())[_0x5786a2('0x3e')](vtiger[_0x5786a2('0x1e')]())[_0x5786a2('0x3e')](realtime[_0x5786a2('0x25')]())[_0x5786a2('0x3e')](freshsales[_0x5786a2('0x26')]())[_0x5786a2('0x3e')](realtime[_0x5786a2('0x29')]())['then'](servicenow[_0x5786a2('0x19')]())['then'](realtime['initServicenowAccounts']())[_0x5786a2('0x3e')](dynamics365[_0x5786a2('0x10')]())[_0x5786a2('0x3e')](realtime[_0x5786a2('0x3')]())['then'](campaign[_0x5786a2('0x2a')]())['then'](realtime['initCampaigns']())[_0x5786a2('0x3e')](voiceExtension['getVoiceExtensions']())['then'](realtime[_0x5786a2('0x7')]())['then'](faxAccount[_0x5786a2('0x39')]())['then'](realtime[_0x5786a2('0x4')]())[_0x5786a2('0x3e')](function(){return realtime;});}function initParams(){const _0x542c54=_0x411f2d;return Promise['resolve']()['then'](voiceQueueReport[_0x542c54('0x20')]())[_0x542c54('0x3e')](realtime['initVoiceQueueReports']())['then'](cmHopperHistory[_0x542c54('0x21')]())['then'](realtime[_0x542c54('0x28')]())[_0x542c54('0x3e')](cmHopperHistory[_0x542c54('0x12')]())[_0x542c54('0x3e')](realtime[_0x542c54('0x37')]())[_0x542c54('0x3e')](voiceCallReport[_0x542c54('0x31')]())[_0x542c54('0x3e')](realtime[_0x542c54('0x9')]())[_0x542c54('0x3e')](function(){})[_0x542c54('0x15')](function(_0x4ccbe3){const _0x5e95b2=_0x542c54;console[_0x5e95b2('0xf')](_0x4ccbe3);});}function main(){const _0x2fedd5=_0x411f2d;return server[_0x2fedd5('0x18')](realtime,preview,fax)[_0x2fedd5('0x3e')](function(){return initRealtime();})[_0x2fedd5('0x3e')](function(){return initParams();})[_0x2fedd5('0x3e')](function(){const _0x3428a2=_0x2fedd5;report[_0x3428a2('0x27')](),setInterval(initRealtime,0x1388);})[_0x2fedd5('0x15')](function(_0x39c800){console['log'](_0x39c800);});}main(); \ No newline at end of file +const a1229_0x31de=['initVoiceQueueHopperHistory','./rpc/integrations/dynamics365','./rpc/voiceQueue','initVoiceCallReports','initSalesforceAccounts','getFaxAccounts','sync','./fax','initTelephones','get','./rpc/integrations/freshsales','getVoiceExtensions','./rpc/integrations/servicenow','./rpc/trigger','./rpc/integrations/desk','getDeskAccounts','initDeskAccounts','hour','getVoiceQueueHopperHistory','initServicenowAccounts','getTelephones','initSugarcrmAccounts','./rpc/trunk','getSugarcrmAccounts','resolve','getZohoAccounts','getCampaigns','getTriggers','log','moment','./rpc/integrations/sugarcrm','getFreshdeskAccounts','initVtigerAccounts','./realtime','initTemplates','./rpc/voiceCallReport','getAgents','getDynamics365Accounts','getZendeskAccounts','./report','initDynamics365Accounts','initVoiceQueues','getVoiceCallReports','initTriggers','getTrunks','./rpc/user','./rpc/integrations/freshdesk','initVoiceQueueReports','./rpc/cmHopperHistory','getVoiceQueueReports','./rpc/integrations/salesforce','initAgents','initCampaigns','./rpc/integrations/zoho','./rpc/integrations/zendesk','initCampaignHopperHistory','initVoiceExtensions','./rpc/voiceExtension','initFreshsalesAccounts','./rpc/template','../../globals','./rpc/campaign','./rpc/integrations/vtiger','initFreshdeskAccounts','catch','then','getSalesforceAccounts','./preview','getTemplates','./rpc/faxAccount'];(function(_0x516e25,_0x35adf8){const _0x31de6e=function(_0x5cbec2){while(--_0x5cbec2){_0x516e25['push'](_0x516e25['shift']());}};_0x31de6e(++_0x35adf8);}(a1229_0x31de,0xbe));const a1229_0x5cbe=function(_0x516e25,_0x35adf8){_0x516e25=_0x516e25-0xac;let _0x31de6e=a1229_0x31de[_0x516e25];return _0x31de6e;};const a1229_0x117a9c=a1229_0x5cbe;'use strict';require(a1229_0x117a9c(0xb6));const moment=require(a1229_0x117a9c(0xdd)),server=require('./server'),Realtime=require(a1229_0x117a9c(0xe1)),Report=require(a1229_0x117a9c(0xe7)),Preview=require(a1229_0x117a9c(0xbd)),Fax=require(a1229_0x117a9c(0xc7)),user=require(a1229_0x117a9c(0xed)),voiceQueue=require(a1229_0x117a9c(0xc2)),voiceQueueReport=require('./rpc/voiceQueueReport'),voiceCallReport=require(a1229_0x117a9c(0xe3)),trunk=require(a1229_0x117a9c(0xd6)),trigger=require(a1229_0x117a9c(0xcd)),template=require(a1229_0x117a9c(0xb5)),cmHopperHistory=require(a1229_0x117a9c(0xf0)),campaign=require(a1229_0x117a9c(0xb7)),voiceExtension=require(a1229_0x117a9c(0xb3)),faxAccount=require(a1229_0x117a9c(0xbf)),zendesk=require(a1229_0x117a9c(0xb0)),salesforce=require(a1229_0x117a9c(0xac)),sugarcrm=require(a1229_0x117a9c(0xde)),freshdesk=require(a1229_0x117a9c(0xee)),desk=require(a1229_0x117a9c(0xce)),zoho=require(a1229_0x117a9c(0xaf)),vtiger=require(a1229_0x117a9c(0xb8)),freshsales=require(a1229_0x117a9c(0xca)),servicenow=require(a1229_0x117a9c(0xcc)),dynamics365=require(a1229_0x117a9c(0xc1)),realtime=new Realtime(),report=new Report(realtime),preview=new Preview(realtime),fax=new Fax(realtime);let isTrue=!![],initP=!![];function ifMidnight(){const _0x12b807=a1229_0x117a9c;moment()[_0x12b807(0xc9)]('hour')===0x0&&initP&&(initP=![],isTrue=!![],initParams()),moment()[_0x12b807(0xc9)](_0x12b807(0xd1))===0x1&&isTrue&&(isTrue=![],initP=!![]);}function initRealtime(){const _0x18b59d=a1229_0x117a9c;return ifMidnight(),Promise[_0x18b59d(0xd8)]()[_0x18b59d(0xbb)](user[_0x18b59d(0xe4)]())['then'](realtime[_0x18b59d(0xad)]())['then'](user[_0x18b59d(0xd4)]())['then'](realtime[_0x18b59d(0xc8)]())[_0x18b59d(0xbb)](trunk[_0x18b59d(0xec)]())[_0x18b59d(0xbb)](realtime['initTrunks']())[_0x18b59d(0xbb)](voiceQueue['getVoiceQueues']())[_0x18b59d(0xbb)](realtime[_0x18b59d(0xe9)]())[_0x18b59d(0xbb)](trigger[_0x18b59d(0xdb)]())['then'](realtime[_0x18b59d(0xeb)]())[_0x18b59d(0xbb)](template[_0x18b59d(0xbe)]())['then'](realtime[_0x18b59d(0xe2)]())[_0x18b59d(0xbb)](zendesk[_0x18b59d(0xe6)]())[_0x18b59d(0xbb)](realtime['initZendeskAccounts']())['then'](salesforce[_0x18b59d(0xbc)]())[_0x18b59d(0xbb)](realtime[_0x18b59d(0xc4)]())['then'](sugarcrm[_0x18b59d(0xd7)]())['then'](realtime[_0x18b59d(0xd5)]())[_0x18b59d(0xbb)](freshdesk[_0x18b59d(0xdf)]())[_0x18b59d(0xbb)](realtime[_0x18b59d(0xb9)]())[_0x18b59d(0xbb)](desk[_0x18b59d(0xcf)]())[_0x18b59d(0xbb)](realtime[_0x18b59d(0xd0)]())[_0x18b59d(0xbb)](zoho[_0x18b59d(0xd9)]())[_0x18b59d(0xbb)](realtime['initZohoAccounts']())[_0x18b59d(0xbb)](vtiger['getVtigerAccounts']())[_0x18b59d(0xbb)](realtime[_0x18b59d(0xe0)]())[_0x18b59d(0xbb)](freshsales['getFreshsalesAccounts']())['then'](realtime[_0x18b59d(0xb4)]())[_0x18b59d(0xbb)](servicenow['getServicenowAccounts']())[_0x18b59d(0xbb)](realtime[_0x18b59d(0xd3)]())['then'](dynamics365[_0x18b59d(0xe5)]())[_0x18b59d(0xbb)](realtime[_0x18b59d(0xe8)]())[_0x18b59d(0xbb)](campaign[_0x18b59d(0xda)]())[_0x18b59d(0xbb)](realtime[_0x18b59d(0xae)]())[_0x18b59d(0xbb)](voiceExtension[_0x18b59d(0xcb)]())['then'](realtime[_0x18b59d(0xb2)]())[_0x18b59d(0xbb)](faxAccount[_0x18b59d(0xc5)]())[_0x18b59d(0xbb)](realtime['initFaxAccounts']())[_0x18b59d(0xbb)](function(){return realtime;});}function initParams(){const _0x3bd5d8=a1229_0x117a9c;return Promise[_0x3bd5d8(0xd8)]()[_0x3bd5d8(0xbb)](voiceQueueReport[_0x3bd5d8(0xf1)]())[_0x3bd5d8(0xbb)](realtime[_0x3bd5d8(0xef)]())['then'](cmHopperHistory[_0x3bd5d8(0xd2)]())[_0x3bd5d8(0xbb)](realtime[_0x3bd5d8(0xc0)]())[_0x3bd5d8(0xbb)](cmHopperHistory['getCampaignHopperHistory']())[_0x3bd5d8(0xbb)](realtime[_0x3bd5d8(0xb1)]())['then'](voiceCallReport[_0x3bd5d8(0xea)]())['then'](realtime[_0x3bd5d8(0xc3)]())['then'](function(){})['catch'](function(_0x34a79e){const _0x2d4a7e=_0x3bd5d8;console[_0x2d4a7e(0xdc)](_0x34a79e);});}function main(){const _0x540aef=a1229_0x117a9c;return server['listen'](realtime,preview,fax)['then'](function(){return initRealtime();})[_0x540aef(0xbb)](function(){return initParams();})[_0x540aef(0xbb)](function(){const _0x3be80c=_0x540aef;report[_0x3be80c(0xc6)](),setInterval(initRealtime,0x1388);})[_0x540aef(0xba)](function(_0x238d17){console['log'](_0x238d17);});}main(); \ No newline at end of file diff --git a/server/services/ami/model/agent.js b/server/services/ami/model/agent.js index 6f8da40..b0afa49 100644 --- a/server/services/ami/model/agent.js +++ b/server/services/ami/model/agent.js @@ -1 +1 @@ -const a1066_0x1561=['inuse','prototype','phone','fullname','name','voiceStatusQueue','toLowerCase','talking','stateTime','status','statePause','state','stringify','voiceStatusCallerIdNumber','../../../rediscache','interface','util','email','onhold','md5','idle','unknown','user:save','emit','accountcode','format','exports','online','voiceStatus','not_inuse','toNumber','address'];(function(_0x3a9aa5,_0x156157){const _0x318426=function(_0x21c112){while(--_0x21c112){_0x3a9aa5['push'](_0x3a9aa5['shift']());}};_0x318426(++_0x156157);}(a1066_0x1561,0x1c8));const a1066_0x3184=function(_0x3a9aa5,_0x156157){_0x3a9aa5=_0x3a9aa5-0x0;let _0x318426=a1066_0x1561[_0x3a9aa5];return _0x318426;};const _0x38db39=a1066_0x3184;'use strict';const _=require('lodash'),util=require(_0x38db39('0x8')),moment=require('moment'),md5=require('md5'),{getSocket}=require(_0x38db39('0x6')),io=getSocket();function Agent(_0x21c112){const _0x373750=_0x38db39;this['id']=_0x21c112['id']||0x0,this[_0x373750('0x1c')]=_0x21c112[_0x373750('0x1c')]||'',this[_0x373750('0x9')]=_0x21c112[_0x373750('0x9')]||'',this[_0x373750('0x10')]=_0x21c112[_0x373750('0x10')]||'',this[_0x373750('0x1b')]=_0x21c112['fullname']||'',this[_0x373750('0x3')]=_0x373750('0xd'),this[_0x373750('0x0')]=0x0,this['status']=_0x373750('0xd'),this['address']='',this[_0x373750('0x1a')]='',this['mobile']='',this[_0x373750('0x7')]='',this[_0x373750('0x13')]=_0x21c112[_0x373750('0x13')]||![],this['voiceStatus']=_0x373750('0xd'),this['voiceStatusTime']=0x0,this[_0x373750('0x5')]='',this[_0x373750('0x1d')]='',this[_0x373750('0xa')]=![],this['local']=![],this[_0x373750('0xb')]='';}Agent[_0x38db39('0x19')]['updateStatusRealtime']=function(_0xc72b36){const _0x3704a3=_0x38db39;let _0x293a62;if(_0xc72b36&&_0xc72b36[_0x3704a3('0x3')]){_0x293a62=_0xc72b36[_0x3704a3('0x3')][_0x3704a3('0x1e')]();switch(_0x293a62){case _0x3704a3('0x15'):_0x293a62=_0x3704a3('0xc');break;case _0x3704a3('0x18'):_0x293a62=_0x3704a3('0x1f');break;}}(_0x293a62&&this[_0x3704a3('0x14')]!==_0x293a62||_0xc72b36[_0x3704a3('0x2')])&&(this['voiceStatusTime']=_[_0x3704a3('0x16')](moment()['format']('x')));_0x293a62&&(this['voiceStatus']=_0x293a62);const _0x4c1aa5={'id':this['id'],'name':this[_0x3704a3('0x1c')],'email':this[_0x3704a3('0x9')],'accountcode':this[_0x3704a3('0x10')],'fullname':this['fullname'],'state':this['state'],'stateTime':this['stateTime'],'status':this[_0x3704a3('0x1')],'address':this[_0x3704a3('0x17')],'online':this['online'],'voiceStatus':this['voiceStatus'],'voiceStatusTime':this['voiceStatusTime'],'voiceStatusCallerIdNumber':this[_0x3704a3('0x5')],'voiceStatusQueue':this[_0x3704a3('0x1d')],'interface':this[_0x3704a3('0x7')],'onhold':this['onhold']},_0x528b35=md5(JSON[_0x3704a3('0x4')](_0x4c1aa5));this[_0x3704a3('0xb')]!==_0x528b35&&(this['md5']=_0x528b35,io['to'](util[_0x3704a3('0x11')]('user:%s',_0x4c1aa5[_0x3704a3('0x1c')]))[_0x3704a3('0xf')](_0x3704a3('0xe'),_0x4c1aa5));},module[_0x38db39('0x12')]=Agent; \ No newline at end of file +const a1230_0x43a1=['voiceStatusTime','user:%s','address','updateStatusRealtime','lodash','md5','state','inuse','stateTime','accountcode','prototype','email','mobile','status','voiceStatus','../../../rediscache','interface','voiceStatusQueue','emit','exports','fullname','statePause','name','stringify','unknown','voiceStatusCallerIdNumber','util','phone','format','not_inuse','toLowerCase','talking','idle','toNumber','online','user:save','onhold','moment'];(function(_0x262e1f,_0x2cbc7f){const _0x43a154=function(_0x12c311){while(--_0x12c311){_0x262e1f['push'](_0x262e1f['shift']());}};_0x43a154(++_0x2cbc7f);}(a1230_0x43a1,0xba));const a1230_0x12c3=function(_0x262e1f,_0x2cbc7f){_0x262e1f=_0x262e1f-0xee;let _0x43a154=a1230_0x43a1[_0x262e1f];return _0x43a154;};const a1230_0x50626f=a1230_0x12c3;'use strict';const _=require(a1230_0x50626f(0xf6)),util=require(a1230_0x50626f(0x10c)),moment=require(a1230_0x50626f(0xf1)),md5=require('md5'),{getSocket}=require(a1230_0x50626f(0x101)),io=getSocket();function Agent(_0x3a2121){const _0x2dfd58=a1230_0x50626f;this['id']=_0x3a2121['id']||0x0,this[_0x2dfd58(0x108)]=_0x3a2121[_0x2dfd58(0x108)]||'',this[_0x2dfd58(0xfd)]=_0x3a2121[_0x2dfd58(0xfd)]||'',this['accountcode']=_0x3a2121[_0x2dfd58(0xfb)]||'',this[_0x2dfd58(0x106)]=_0x3a2121['fullname']||'',this[_0x2dfd58(0xf8)]=_0x2dfd58(0x10a),this['stateTime']=0x0,this[_0x2dfd58(0xff)]=_0x2dfd58(0x10a),this[_0x2dfd58(0xf4)]='',this[_0x2dfd58(0x10d)]='',this[_0x2dfd58(0xfe)]='',this[_0x2dfd58(0x102)]='',this['online']=_0x3a2121[_0x2dfd58(0xee)]||![],this[_0x2dfd58(0x100)]=_0x2dfd58(0x10a),this[_0x2dfd58(0xf2)]=0x0,this[_0x2dfd58(0x10b)]='',this[_0x2dfd58(0x103)]='',this[_0x2dfd58(0xf0)]=![],this['local']=![],this['md5']='';}Agent[a1230_0x50626f(0xfc)][a1230_0x50626f(0xf5)]=function(_0x531bfa){const _0x147f14=a1230_0x50626f;let _0x3b9700;if(_0x531bfa&&_0x531bfa[_0x147f14(0xf8)]){_0x3b9700=_0x531bfa['state'][_0x147f14(0x110)]();switch(_0x3b9700){case _0x147f14(0x10f):_0x3b9700=_0x147f14(0x112);break;case _0x147f14(0xf9):_0x3b9700=_0x147f14(0x111);break;}}(_0x3b9700&&this['voiceStatus']!==_0x3b9700||_0x531bfa[_0x147f14(0x107)])&&(this['voiceStatusTime']=_[_0x147f14(0x113)](moment()[_0x147f14(0x10e)]('x')));_0x3b9700&&(this['voiceStatus']=_0x3b9700);const _0xf07df2={'id':this['id'],'name':this[_0x147f14(0x108)],'email':this[_0x147f14(0xfd)],'accountcode':this[_0x147f14(0xfb)],'fullname':this[_0x147f14(0x106)],'state':this[_0x147f14(0xf8)],'stateTime':this[_0x147f14(0xfa)],'status':this['status'],'address':this[_0x147f14(0xf4)],'online':this[_0x147f14(0xee)],'voiceStatus':this[_0x147f14(0x100)],'voiceStatusTime':this[_0x147f14(0xf2)],'voiceStatusCallerIdNumber':this[_0x147f14(0x10b)],'voiceStatusQueue':this[_0x147f14(0x103)],'interface':this['interface'],'onhold':this[_0x147f14(0xf0)]},_0x5ccc2b=md5(JSON[_0x147f14(0x109)](_0xf07df2));this['md5']!==_0x5ccc2b&&(this[_0x147f14(0xf7)]=_0x5ccc2b,io['to'](util[_0x147f14(0x10e)](_0x147f14(0xf3),_0xf07df2[_0x147f14(0x108)]))[_0x147f14(0x104)](_0x147f14(0xef),_0xf07df2));},module[a1230_0x50626f(0x105)]=Agent; \ No newline at end of file diff --git a/server/services/ami/model/campaign.js b/server/services/ami/model/campaign.js index 593e2c4..631f9a2 100644 --- a/server/services/ami/model/campaign.js +++ b/server/services/ami/model/campaign.js @@ -1 +1 @@ -var a1067_0x17c1=['dialAMDInitialSilence','dialNoAnswerMaxRetry','dialRandomLastDigitCallerIdNumber','dialAgentRejectMaxRetry','dialNoAnswerRetryFrequency','dialAMDAfterGreetingSilence','dialAMDMaximumWordLength','dialNoSuchNumberMaxRetry','dialCongestionRetryFrequency','ivrAnswerCallsDay','dialBusyRetryFrequency','dialAMDGreeting','dialTimezone','originated','DESC','dialAMDMinWordLength','dialMachineRetryFrequency','dialQueueProject','dialOrderByScheduledAt','name','Trunk','dialOriginateCallerIdName','exports','dialCutDigit','limitCalls','dialOriginateTimeout','active','dialOriginateCallerIdNumber','dialBusyMaxRetry','dialPrefix','dialCongestionMaxRetry','dialDropMaxRetry','campaign','message','temp','dialAbandonedMaxRetry','type','dialGlobalMaxRetry','Interval','dialAMDSilenceThreshold','dialAgentRejectRetryFrequency','dialMachineMaxRetry','SquareProject','dialGlobalInterval','dialNoSuchNumberRetryFrequency','ivrTotalCallsDays','dialDropRetryFrequency','dialAMDActive','dialAMDMaximumNumberOfWords','dialAbandonedRetryFrequency'];(function(_0x2fc9b6,_0x17c11e){var _0x3301c4=function(_0xc96189){while(--_0xc96189){_0x2fc9b6['push'](_0x2fc9b6['shift']());}};_0x3301c4(++_0x17c11e);}(a1067_0x17c1,0x16e));var a1067_0x3301=function(_0x2fc9b6,_0x17c11e){_0x2fc9b6=_0x2fc9b6-0x0;var _0x3301c4=a1067_0x17c1[_0x2fc9b6];return _0x3301c4;};var _0x227489=a1067_0x3301;'use strict';function Campaign(_0xc96189){var _0xc63a5=a1067_0x3301;this['id']=_0xc96189['id']||0x0,this[_0xc63a5('0x3')]=_0xc96189[_0xc63a5('0x3')]||'',this['type']=_0xc96189[_0xc63a5('0x14')]||_0xc63a5('0x10'),this[_0xc63a5('0x2f')]=0x0,this[_0xc63a5('0x12')]=0x0,this[_0xc63a5('0x2b')]=0x0,this[_0xc63a5('0x1d')]=0x0,this[_0xc63a5('0x11')]='',this['sendMessageOneNotActive']=!![],this[_0xc63a5('0xa')]=_0xc96189[_0xc63a5('0xa')],this[_0xc63a5('0x8')]=_0xc96189[_0xc63a5('0x8')],this[_0xc63a5('0x2e')]=_0xc96189['dialTimezone']||null,this[_0xc63a5('0x1b')]=_0xc96189['dialGlobalInterval']?_0xc96189[_0xc63a5('0x1b')]:null,this['dialOriginateCallerIdName']=_0xc96189[_0xc63a5('0x5')],this[_0xc63a5('0xb')]=_0xc96189[_0xc63a5('0xb')],this['dialOriginateTimeout']=_0xc96189[_0xc63a5('0x9')]||0x1e,this[_0xc63a5('0xe')]=_0xc96189[_0xc63a5('0xe')],this['dialCongestionRetryFrequency']=_0xc96189[_0xc63a5('0x2a')],this[_0xc63a5('0xc')]=_0xc96189[_0xc63a5('0xc')],this[_0xc63a5('0x2c')]=_0xc96189['dialBusyRetryFrequency'],this[_0xc63a5('0x23')]=_0xc96189[_0xc63a5('0x23')],this[_0xc63a5('0x26')]=_0xc96189[_0xc63a5('0x26')],this[_0xc63a5('0x15')]=_0xc96189['dialGlobalMaxRetry'],this[_0xc63a5('0x29')]=_0xc96189['dialNoSuchNumberMaxRetry']||0x3,this[_0xc63a5('0x1c')]=_0xc96189[_0xc63a5('0x1c')]||0x96,this[_0xc63a5('0xf')]=_0xc96189[_0xc63a5('0xf')]||0x3,this['dialDropRetryFrequency']=_0xc96189[_0xc63a5('0x1e')]||0x96,this[_0xc63a5('0x13')]=_0xc96189['dialAbandonedMaxRetry']||0x3,this['dialAbandonedRetryFrequency']=_0xc96189[_0xc63a5('0x21')]||0x96,this[_0xc63a5('0x19')]=_0xc96189[_0xc63a5('0x19')]||0x3,this['dialMachineRetryFrequency']=_0xc96189[_0xc63a5('0x0')]||0x96,this[_0xc63a5('0x25')]=_0xc96189['dialAgentRejectMaxRetry']||0x3,this[_0xc63a5('0x18')]=_0xc96189['dialAgentRejectRetryFrequency']||0x96,this[_0xc63a5('0x2')]=_0xc96189[_0xc63a5('0x2')]||_0xc63a5('0x30'),this[_0xc63a5('0xd')]=_0xc96189[_0xc63a5('0xd')]||undefined,this['dialRandomLastDigitCallerIdNumber']=_0xc96189[_0xc63a5('0x24')]||undefined,this[_0xc63a5('0x7')]=_0xc96189[_0xc63a5('0x7')]||undefined,this['TrunkBackup']=_0xc96189['TrunkBackup']?_0xc96189['TrunkBackup']:undefined,this[_0xc63a5('0x4')]=_0xc96189[_0xc63a5('0x4')]?_0xc96189[_0xc63a5('0x4')]:undefined,this[_0xc63a5('0x16')]=_0xc96189[_0xc63a5('0x16')]?_0xc96189[_0xc63a5('0x16')]:undefined,this[_0xc63a5('0x1a')]=_0xc96189[_0xc63a5('0x1a')]?_0xc96189['SquareProject']:undefined,this[_0xc63a5('0x1')]=_0xc96189[_0xc63a5('0x1a')]?_0xc96189['SquareProject']['name']:undefined,this[_0xc63a5('0x1f')]=_0xc96189[_0xc63a5('0x1f')]||![],this[_0xc63a5('0x22')]=_0xc96189['dialAMDInitialSilence'],this[_0xc63a5('0x2d')]=_0xc96189['dialAMDGreeting'],this[_0xc63a5('0x27')]=_0xc96189[_0xc63a5('0x27')],this['dialAMDTotalAnalysisTime']=_0xc96189['dialAMDTotalAnalysisTime'],this[_0xc63a5('0x31')]=_0xc96189['dialAMDMinWordLength'],this['dialAMDBetweenWordsSilence']=_0xc96189['dialAMDBetweenWordsSilence'],this[_0xc63a5('0x20')]=_0xc96189[_0xc63a5('0x20')],this[_0xc63a5('0x17')]=_0xc96189[_0xc63a5('0x17')],this[_0xc63a5('0x28')]=_0xc96189[_0xc63a5('0x28')];}module[_0x227489('0x6')]=Campaign; \ No newline at end of file +var a1231_0x4bd9=['message','dialAbandonedMaxRetry','dialAMDTotalAnalysisTime','type','limitCalls','dialNoSuchNumberMaxRetry','temp','ivrAnswerCallsDay','dialAMDActive','dialCongestionMaxRetry','dialQueueProject','dialTimezone','Trunk','originated','dialAMDGreeting','SquareProject','dialCutDigit','dialAgentRejectMaxRetry','dialPrefix','dialAMDMaximumNumberOfWords','dialOriginateCallerIdNumber','dialDropMaxRetry','dialAMDAfterGreetingSilence','dialDropRetryFrequency','dialNoAnswerMaxRetry','dialGlobalInterval','exports','name','dialAMDSilenceThreshold','dialAMDBetweenWordsSilence','dialOrderByScheduledAt','dialNoAnswerRetryFrequency','dialAMDInitialSilence','dialBusyMaxRetry','dialAbandonedRetryFrequency','TrunkBackup','dialRandomLastDigitCallerIdNumber','dialCongestionRetryFrequency','dialAMDMinWordLength','sendMessageOneNotActive','dialOriginateTimeout','dialGlobalMaxRetry','dialOriginateCallerIdName','dialMachineRetryFrequency','active','dialMachineMaxRetry','dialAMDMaximumWordLength','campaign','dialAgentRejectRetryFrequency','ivrTotalCallsDays','Interval','dialBusyRetryFrequency','dialNoSuchNumberRetryFrequency'];(function(_0x155f8b,_0x11e20b){var _0x4bd9bd=function(_0x2a62ae){while(--_0x2a62ae){_0x155f8b['push'](_0x155f8b['shift']());}};_0x4bd9bd(++_0x11e20b);}(a1231_0x4bd9,0x12b));var a1231_0x2a62=function(_0x155f8b,_0x11e20b){_0x155f8b=_0x155f8b-0xe6;var _0x4bd9bd=a1231_0x4bd9[_0x155f8b];return _0x4bd9bd;};var a1231_0x1c04cf=a1231_0x2a62;'use strict';function Campaign(_0x370aaf){var _0x3aa006=a1231_0x2a62;this['id']=_0x370aaf['id']||0x0,this[_0x3aa006(0x114)]=_0x370aaf['name']||'',this[_0x3aa006(0xfc)]=_0x370aaf[_0x3aa006(0xfc)]||_0x3aa006(0xf3),this[_0x3aa006(0x106)]=0x0,this[_0x3aa006(0xff)]=0x0,this[_0x3aa006(0x100)]=0x0,this[_0x3aa006(0xf5)]=0x0,this[_0x3aa006(0xf9)]='',this[_0x3aa006(0xeb)]=!![],this[_0x3aa006(0xf0)]=_0x370aaf[_0x3aa006(0xf0)],this[_0x3aa006(0xfd)]=_0x370aaf[_0x3aa006(0xfd)],this[_0x3aa006(0x104)]=_0x370aaf[_0x3aa006(0x104)]||null,this[_0x3aa006(0x112)]=_0x370aaf[_0x3aa006(0x112)]?_0x370aaf[_0x3aa006(0x112)]:null,this[_0x3aa006(0xee)]=_0x370aaf['dialOriginateCallerIdName'],this[_0x3aa006(0x10d)]=_0x370aaf['dialOriginateCallerIdNumber'],this[_0x3aa006(0xec)]=_0x370aaf[_0x3aa006(0xec)]||0x1e,this['dialCongestionMaxRetry']=_0x370aaf[_0x3aa006(0x102)],this[_0x3aa006(0xe9)]=_0x370aaf[_0x3aa006(0xe9)],this[_0x3aa006(0x11a)]=_0x370aaf['dialBusyMaxRetry'],this[_0x3aa006(0xf7)]=_0x370aaf['dialBusyRetryFrequency'],this['dialNoAnswerMaxRetry']=_0x370aaf[_0x3aa006(0x111)],this[_0x3aa006(0x118)]=_0x370aaf['dialNoAnswerRetryFrequency'],this[_0x3aa006(0xed)]=_0x370aaf[_0x3aa006(0xed)],this[_0x3aa006(0xfe)]=_0x370aaf[_0x3aa006(0xfe)]||0x3,this[_0x3aa006(0xf8)]=_0x370aaf['dialNoSuchNumberRetryFrequency']||0x96,this[_0x3aa006(0x10e)]=_0x370aaf[_0x3aa006(0x10e)]||0x3,this[_0x3aa006(0x110)]=_0x370aaf['dialDropRetryFrequency']||0x96,this[_0x3aa006(0xfa)]=_0x370aaf['dialAbandonedMaxRetry']||0x3,this[_0x3aa006(0xe6)]=_0x370aaf['dialAbandonedRetryFrequency']||0x96,this[_0x3aa006(0xf1)]=_0x370aaf[_0x3aa006(0xf1)]||0x3,this[_0x3aa006(0xef)]=_0x370aaf[_0x3aa006(0xef)]||0x96,this[_0x3aa006(0x10a)]=_0x370aaf[_0x3aa006(0x10a)]||0x3,this[_0x3aa006(0xf4)]=_0x370aaf[_0x3aa006(0xf4)]||0x96,this[_0x3aa006(0x117)]=_0x370aaf[_0x3aa006(0x117)]||'DESC',this['dialPrefix']=_0x370aaf[_0x3aa006(0x10b)]||undefined,this['dialRandomLastDigitCallerIdNumber']=_0x370aaf[_0x3aa006(0xe8)]||undefined,this[_0x3aa006(0x109)]=_0x370aaf['dialCutDigit']||undefined,this[_0x3aa006(0xe7)]=_0x370aaf['TrunkBackup']?_0x370aaf[_0x3aa006(0xe7)]:undefined,this[_0x3aa006(0x105)]=_0x370aaf[_0x3aa006(0x105)]?_0x370aaf['Trunk']:undefined,this[_0x3aa006(0xf6)]=_0x370aaf[_0x3aa006(0xf6)]?_0x370aaf[_0x3aa006(0xf6)]:undefined,this[_0x3aa006(0x108)]=_0x370aaf[_0x3aa006(0x108)]?_0x370aaf['SquareProject']:undefined,this[_0x3aa006(0x103)]=_0x370aaf[_0x3aa006(0x108)]?_0x370aaf['SquareProject'][_0x3aa006(0x114)]:undefined,this[_0x3aa006(0x101)]=_0x370aaf[_0x3aa006(0x101)]||![],this[_0x3aa006(0x119)]=_0x370aaf[_0x3aa006(0x119)],this[_0x3aa006(0x107)]=_0x370aaf[_0x3aa006(0x107)],this['dialAMDAfterGreetingSilence']=_0x370aaf[_0x3aa006(0x10f)],this[_0x3aa006(0xfb)]=_0x370aaf[_0x3aa006(0xfb)],this[_0x3aa006(0xea)]=_0x370aaf[_0x3aa006(0xea)],this['dialAMDBetweenWordsSilence']=_0x370aaf[_0x3aa006(0x116)],this[_0x3aa006(0x10c)]=_0x370aaf['dialAMDMaximumNumberOfWords'],this['dialAMDSilenceThreshold']=_0x370aaf[_0x3aa006(0x115)],this[_0x3aa006(0xf2)]=_0x370aaf[_0x3aa006(0xf2)];}module[a1231_0x1c04cf(0x113)]=Campaign; \ No newline at end of file diff --git a/server/services/ami/model/channel.js b/server/services/ami/model/channel.js index f431db0..712fc7b 100644 --- a/server/services/ami/model/channel.js +++ b/server/services/ami/model/channel.js @@ -1 +1 @@ -var a1068_0x3ebd=['calleridnum','queue','billableseconds','type','starttime','unmanaged','transferconnectedlinenum','mohtime','channel','disposition','accountcode','destinationchannel','abandoned','uniqueid','connectedlinenum','monitors','lastapplication','transfercalleridnum','monitor','tag','context','duration','connectedlinename'];(function(_0x93c35d,_0x3ebd66){var _0x52ed56=function(_0x13e57b){while(--_0x13e57b){_0x93c35d['push'](_0x93c35d['shift']());}};_0x52ed56(++_0x3ebd66);}(a1068_0x3ebd,0xcb));var a1068_0x52ed=function(_0x93c35d,_0x3ebd66){_0x93c35d=_0x93c35d-0x0;var _0x52ed56=a1068_0x3ebd[_0x93c35d];return _0x52ed56;};'use strict';function Channel(){var _0x2005a1=a1068_0x52ed;this[_0x2005a1('0x8')]=null,this[_0x2005a1('0xc')]='',this[_0x2005a1('0xf')]='',this[_0x2005a1('0x4')]=0x0,this['calleridname']='',this[_0x2005a1('0x12')]=undefined,this[_0x2005a1('0x3')]=undefined,this[_0x2005a1('0xe')]=0x0,this[_0x2005a1('0x1')]='',this[_0x2005a1('0x11')]=0x0,this['linkedid']=0x0,this['exten']=0x0,this['answered']=![],this['answertime']=null,this['endtime']=null,this[_0x2005a1('0x9')]=![],this[_0x2005a1('0x10')]=![],this[_0x2005a1('0x14')]='',this['lastdata']='',this[_0x2005a1('0x2')]=0x0,this[_0x2005a1('0x6')]=0x0,this['holdtime']=0x0,this[_0x2005a1('0x7')]=null,this[_0x2005a1('0x0')]=null,this[_0x2005a1('0xd')]=null,this[_0x2005a1('0x16')]=![],this['monitorFilename']=null,this[_0x2005a1('0x5')]=null,this[_0x2005a1('0x13')]=[],this[_0x2005a1('0x15')]=undefined,this[_0x2005a1('0xa')]=undefined,this[_0x2005a1('0xb')]=0x0;}module['exports']=Channel; \ No newline at end of file +var a1232_0x29bb=['uniqueid','calleridnum','lastdata','answered','starttime','connectedlinename','monitor','tag','endtime','transferconnectedlinenum','connectedlinenum','answertime','monitorFilename','type','calleridname','duration','channel','exten','monitors','lastapplication','mohtime','disposition','destinationchannel'];(function(_0x506e3b,_0x2889fa){var _0x29bbb4=function(_0x4db7c0){while(--_0x4db7c0){_0x506e3b['push'](_0x506e3b['shift']());}};_0x29bbb4(++_0x2889fa);}(a1232_0x29bb,0x166));var a1232_0x4db7=function(_0x506e3b,_0x2889fa){_0x506e3b=_0x506e3b-0x165;var _0x29bbb4=a1232_0x29bb[_0x506e3b];return _0x29bbb4;};'use strict';function Channel(){var _0x165ae1=a1232_0x4db7;this[_0x165ae1(0x173)]=null,this[_0x165ae1(0x168)]='',this[_0x165ae1(0x16e)]='',this[_0x165ae1(0x170)]=0x0,this[_0x165ae1(0x166)]='',this[_0x165ae1(0x179)]=undefined,this[_0x165ae1(0x174)]=undefined,this['accountcode']=0x0,this['context']='',this[_0x165ae1(0x16f)]=0x0,this['linkedid']=0x0,this[_0x165ae1(0x169)]=0x0,this[_0x165ae1(0x172)]=![],this[_0x165ae1(0x17a)]=null,this[_0x165ae1(0x177)]=null,this['unmanaged']=![],this['abandoned']=![],this[_0x165ae1(0x16b)]='',this[_0x165ae1(0x171)]='',this[_0x165ae1(0x167)]=0x0,this['billableseconds']=0x0,this['holdtime']=0x0,this[_0x165ae1(0x165)]=null,this[_0x165ae1(0x176)]=null,this[_0x165ae1(0x16d)]=null,this[_0x165ae1(0x175)]=![],this[_0x165ae1(0x17b)]=null,this['queue']=null,this[_0x165ae1(0x16a)]=[],this['transfercalleridnum']=undefined,this[_0x165ae1(0x178)]=undefined,this[_0x165ae1(0x16c)]=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 bdcfb6d..e59fbe1 100644 --- a/server/services/ami/model/deskAccount.js +++ b/server/services/ami/model/deskAccount.js @@ -1 +1 @@ -var a1069_0x2642=['Configurations','name','password','remoteUri','username','exports','type','token','serverUrl','consumerKey','authType','consumerSecret','tokenSecret'];(function(_0x171e85,_0x26425b){var _0x213ab8=function(_0x1edbb4){while(--_0x1edbb4){_0x171e85['push'](_0x171e85['shift']());}};_0x213ab8(++_0x26425b);}(a1069_0x2642,0x185));var a1069_0x213a=function(_0x171e85,_0x26425b){_0x171e85=_0x171e85-0x0;var _0x213ab8=a1069_0x2642[_0x171e85];return _0x213ab8;};var _0x118d17=a1069_0x213a;'use strict';function DeskAccount(_0x1edbb4){var _0x3f4b86=a1069_0x213a;this['id']=_0x1edbb4['id']||0x0,this[_0x3f4b86('0x2')]=_0x1edbb4[_0x3f4b86('0x2')]||'',this[_0x3f4b86('0x5')]=_0x1edbb4['username']||'',this[_0x3f4b86('0x4')]=_0x1edbb4['remoteUri']||'',this[_0x3f4b86('0xb')]=_0x1edbb4['authType']||'',this[_0x3f4b86('0x3')]=_0x1edbb4[_0x3f4b86('0x3')]||'',this[_0x3f4b86('0xa')]=_0x1edbb4[_0x3f4b86('0xa')]||'',this[_0x3f4b86('0xc')]=_0x1edbb4[_0x3f4b86('0xc')]||'',this['token']=_0x1edbb4[_0x3f4b86('0x8')]||'',this[_0x3f4b86('0x0')]=_0x1edbb4['tokenSecret']||'',this[_0x3f4b86('0x7')]=_0x1edbb4[_0x3f4b86('0x7')]||'',this[_0x3f4b86('0x9')]=_0x1edbb4[_0x3f4b86('0x9')]||'',this[_0x3f4b86('0x1')]=_0x1edbb4['Configurations']||{};}module[_0x118d17('0x6')]=DeskAccount; \ No newline at end of file +var a1233_0x4070=['authType','tokenSecret','remoteUri','type','serverUrl','token','username','consumerSecret','password','consumerKey','name'];(function(_0x3b9889,_0x32bf9a){var _0x407054=function(_0x21d1f7){while(--_0x21d1f7){_0x3b9889['push'](_0x3b9889['shift']());}};_0x407054(++_0x32bf9a);}(a1233_0x4070,0xfb));var a1233_0x21d1=function(_0x3b9889,_0x32bf9a){_0x3b9889=_0x3b9889-0x152;var _0x407054=a1233_0x4070[_0x3b9889];return _0x407054;};'use strict';function DeskAccount(_0x539335){var _0x5308d1=a1233_0x21d1;this['id']=_0x539335['id']||0x0,this[_0x5308d1(0x153)]=_0x539335['name']||'',this[_0x5308d1(0x15a)]=_0x539335[_0x5308d1(0x15a)]||'',this[_0x5308d1(0x156)]=_0x539335['remoteUri']||'',this[_0x5308d1(0x154)]=_0x539335['authType']||'',this[_0x5308d1(0x15c)]=_0x539335[_0x5308d1(0x15c)]||'',this[_0x5308d1(0x152)]=_0x539335[_0x5308d1(0x152)]||'',this['consumerSecret']=_0x539335[_0x5308d1(0x15b)]||'',this[_0x5308d1(0x159)]=_0x539335[_0x5308d1(0x159)]||'',this['tokenSecret']=_0x539335[_0x5308d1(0x155)]||'',this[_0x5308d1(0x157)]=_0x539335[_0x5308d1(0x157)]||'',this[_0x5308d1(0x158)]=_0x539335[_0x5308d1(0x158)]||'',this['Configurations']=_0x539335['Configurations']||{};}module['exports']=DeskAccount; \ No newline at end of file diff --git a/server/services/ami/model/dynamics365Account.js b/server/services/ami/model/dynamics365Account.js index 284d1e6..17fdc1a 100644 --- a/server/services/ami/model/dynamics365Account.js +++ b/server/services/ami/model/dynamics365Account.js @@ -1 +1 @@ -var a1070_0x3097=['clientSecret','password','Configurations','username','exports','serverUrl','remoteUri','name','clientId','tenantId'];(function(_0x44bae2,_0x30971b){var _0x5ca198=function(_0x49870f){while(--_0x49870f){_0x44bae2['push'](_0x44bae2['shift']());}};_0x5ca198(++_0x30971b);}(a1070_0x3097,0x17a));var a1070_0x5ca1=function(_0x44bae2,_0x30971b){_0x44bae2=_0x44bae2-0x0;var _0x5ca198=a1070_0x3097[_0x44bae2];return _0x5ca198;};var _0xc50e43=a1070_0x5ca1;'use strict';function Dynamics365Account(_0x49870f){var _0x56f12a=a1070_0x5ca1;this['id']=_0x49870f['id']||0x0,this['name']=_0x49870f[_0x56f12a('0x9')]||'',this['username']=_0x49870f[_0x56f12a('0x5')]||'',this[_0x56f12a('0x3')]=_0x49870f[_0x56f12a('0x3')]||'',this[_0x56f12a('0x8')]=_0x49870f[_0x56f12a('0x8')]||'',this[_0x56f12a('0x1')]=_0x49870f['tenantId']||'',this[_0x56f12a('0x0')]=_0x49870f[_0x56f12a('0x0')]||'',this[_0x56f12a('0x2')]=_0x49870f[_0x56f12a('0x2')]||{},this[_0x56f12a('0x7')]=_0x49870f['serverUrl']||'',this[_0x56f12a('0x4')]=_0x49870f['Configurations']||{};}module[_0xc50e43('0x6')]=Dynamics365Account; \ No newline at end of file +var a1234_0x3ec3=['remoteUri','Configurations','clientSecret','clientId','serverUrl','name','password','tenantId'];(function(_0x326c39,_0x20d458){var _0x3ec302=function(_0x407dad){while(--_0x407dad){_0x326c39['push'](_0x326c39['shift']());}};_0x3ec302(++_0x20d458);}(a1234_0x3ec3,0x1e0));var a1234_0x407d=function(_0x326c39,_0x20d458){_0x326c39=_0x326c39-0x108;var _0x3ec302=a1234_0x3ec3[_0x326c39];return _0x3ec302;};'use strict';function Dynamics365Account(_0x534006){var _0x5603fb=a1234_0x407d;this['id']=_0x534006['id']||0x0,this[_0x5603fb(0x10d)]=_0x534006[_0x5603fb(0x10d)]||'',this['username']=_0x534006['username']||'',this[_0x5603fb(0x10e)]=_0x534006[_0x5603fb(0x10e)]||'',this[_0x5603fb(0x108)]=_0x534006[_0x5603fb(0x108)]||'',this[_0x5603fb(0x10f)]=_0x534006[_0x5603fb(0x10f)]||'',this['clientId']=_0x534006[_0x5603fb(0x10b)]||'',this[_0x5603fb(0x10a)]=_0x534006[_0x5603fb(0x10a)]||{},this[_0x5603fb(0x10c)]=_0x534006[_0x5603fb(0x10c)]||'',this['Configurations']=_0x534006[_0x5603fb(0x109)]||{};}module['exports']=Dynamics365Account; \ No newline at end of file diff --git a/server/services/ami/model/faxAccount.js b/server/services/ami/model/faxAccount.js index ec8581e..03751fc 100644 --- a/server/services/ami/model/faxAccount.js +++ b/server/services/ami/model/faxAccount.js @@ -1 +1 @@ -var a1071_0x4618=['SIP','Trunk','maxrate','headerinfo','v17,v27,v29','name','key','modem','exports','ecm','gateway','t38timeout','description','ListId','minrate','tech','localstationid','faxdetect'];(function(_0x401a0d,_0x461812){var _0x509680=function(_0x2aee0b){while(--_0x2aee0b){_0x401a0d['push'](_0x401a0d['shift']());}};_0x509680(++_0x461812);}(a1071_0x4618,0xe0));var a1071_0x5096=function(_0x401a0d,_0x461812){_0x401a0d=_0x401a0d-0x0;var _0x509680=a1071_0x4618[_0x401a0d];return _0x509680;};var _0x2f542c=a1071_0x5096;'use strict';function FaxAccount(_0x2aee0b){var _0x18d65a=a1071_0x5096;this['id']=_0x2aee0b['id']||0x0,this[_0x18d65a('0xf')]=_0x2aee0b[_0x18d65a('0xf')]||'',this[_0x18d65a('0x4')]=_0x2aee0b[_0x18d65a('0x4')],this[_0x18d65a('0x1')]=_0x2aee0b[_0x18d65a('0x1')],this[_0x18d65a('0xd')]=_0x2aee0b[_0x18d65a('0xd')],this[_0x18d65a('0x8')]=_0x2aee0b['localstationid'],this['minrate']=_0x2aee0b[_0x18d65a('0x6')]||0x960,this['maxrate']=_0x2aee0b[_0x18d65a('0xc')]||0x3840,this[_0x18d65a('0x11')]=_0x2aee0b[_0x18d65a('0x11')]||_0x18d65a('0xe'),this[_0x18d65a('0x2')]=_0x2aee0b[_0x18d65a('0x2')]||'no',this[_0x18d65a('0x9')]=_0x2aee0b['faxdetect']||'no',this[_0x18d65a('0x3')]=_0x2aee0b['t38timeout']||0x1388,this[_0x18d65a('0x7')]=_0x2aee0b['tech']||_0x18d65a('0xa'),this[_0x18d65a('0xb')]=_0x2aee0b[_0x18d65a('0xb')]?_0x2aee0b[_0x18d65a('0xb')]:undefined,this['ListId']=_0x2aee0b[_0x18d65a('0x5')],this[_0x18d65a('0x10')]=_0x2aee0b['key'];}module[_0x2f542c('0x0')]=FaxAccount; \ No newline at end of file +var a1235_0x3e1b=['localstationid','key','name','description','faxdetect','SIP','modem','gateway','t38timeout','headerinfo','exports','ecm','minrate','tech','ListId','v17,v27,v29','Trunk'];(function(_0x58b44b,_0x3d5232){var _0x3e1bf3=function(_0x5e4a0){while(--_0x5e4a0){_0x58b44b['push'](_0x58b44b['shift']());}};_0x3e1bf3(++_0x3d5232);}(a1235_0x3e1b,0x91));var a1235_0x5e4a=function(_0x58b44b,_0x3d5232){_0x58b44b=_0x58b44b-0xdb;var _0x3e1bf3=a1235_0x3e1b[_0x58b44b];return _0x3e1bf3;};var a1235_0x2abe4f=a1235_0x5e4a;'use strict';function FaxAccount(_0x288516){var _0x2c7987=a1235_0x5e4a;this['id']=_0x288516['id']||0x0,this['name']=_0x288516[_0x2c7987(0xe5)]||'',this[_0x2c7987(0xe6)]=_0x288516[_0x2c7987(0xe6)],this[_0x2c7987(0xdd)]=_0x288516[_0x2c7987(0xdd)],this[_0x2c7987(0xdb)]=_0x288516['headerinfo'],this[_0x2c7987(0xe3)]=_0x288516[_0x2c7987(0xe3)],this[_0x2c7987(0xde)]=_0x288516['minrate']||0x960,this['maxrate']=_0x288516['maxrate']||0x3840,this[_0x2c7987(0xe9)]=_0x288516[_0x2c7987(0xe9)]||_0x2c7987(0xe1),this[_0x2c7987(0xea)]=_0x288516['gateway']||'no',this[_0x2c7987(0xe7)]=_0x288516[_0x2c7987(0xe7)]||'no',this[_0x2c7987(0xeb)]=_0x288516[_0x2c7987(0xeb)]||0x1388,this[_0x2c7987(0xdf)]=_0x288516[_0x2c7987(0xdf)]||_0x2c7987(0xe8),this[_0x2c7987(0xe2)]=_0x288516[_0x2c7987(0xe2)]?_0x288516[_0x2c7987(0xe2)]:undefined,this[_0x2c7987(0xe0)]=_0x288516[_0x2c7987(0xe0)],this[_0x2c7987(0xe4)]=_0x288516[_0x2c7987(0xe4)];}module[a1235_0x2abe4f(0xdc)]=FaxAccount; \ No newline at end of file diff --git a/server/services/ami/model/freshdeskAccount.js b/server/services/ami/model/freshdeskAccount.js index ae012b9..4a134f2 100644 --- a/server/services/ami/model/freshdeskAccount.js +++ b/server/services/ami/model/freshdeskAccount.js @@ -1 +1 @@ -var a1072_0x3944=['Configurations','name','exports','remoteUri','token','username','serverUrl'];(function(_0x3f68a5,_0x394498){var _0x337d78=function(_0x35ad8c){while(--_0x35ad8c){_0x3f68a5['push'](_0x3f68a5['shift']());}};_0x337d78(++_0x394498);}(a1072_0x3944,0xb2));var a1072_0x337d=function(_0x3f68a5,_0x394498){_0x3f68a5=_0x3f68a5-0x0;var _0x337d78=a1072_0x3944[_0x3f68a5];return _0x337d78;};var _0x139aab=a1072_0x337d;'use strict';function FreshdeskAccount(_0x35ad8c){var _0x316fa9=a1072_0x337d;this['id']=_0x35ad8c['id']||0x0,this['name']=_0x35ad8c[_0x316fa9('0x5')]||'',this[_0x316fa9('0x2')]=_0x35ad8c[_0x316fa9('0x2')]||'',this['apiKey']=_0x35ad8c[_0x316fa9('0x1')]||'',this[_0x316fa9('0x0')]=_0x35ad8c['remoteUri']||'',this[_0x316fa9('0x3')]=_0x35ad8c[_0x316fa9('0x3')]||'',this[_0x316fa9('0x4')]=_0x35ad8c[_0x316fa9('0x4')]||{};}module[_0x139aab('0x6')]=FreshdeskAccount; \ No newline at end of file +var a1236_0x5c7f=['Configurations','username','exports','name','token','apiKey','remoteUri','serverUrl'];(function(_0x313698,_0x95ddd0){var _0x5c7f3d=function(_0x275b84){while(--_0x275b84){_0x313698['push'](_0x313698['shift']());}};_0x5c7f3d(++_0x95ddd0);}(a1236_0x5c7f,0x176));var a1236_0x275b=function(_0x313698,_0x95ddd0){_0x313698=_0x313698-0x16a;var _0x5c7f3d=a1236_0x5c7f[_0x313698];return _0x5c7f3d;};var a1236_0x339df3=a1236_0x275b;'use strict';function FreshdeskAccount(_0x450ae6){var _0x382de6=a1236_0x275b;this['id']=_0x450ae6['id']||0x0,this[_0x382de6(0x16f)]=_0x450ae6[_0x382de6(0x16f)]||'',this[_0x382de6(0x16d)]=_0x450ae6['username']||'',this[_0x382de6(0x171)]=_0x450ae6[_0x382de6(0x170)]||'',this['remoteUri']=_0x450ae6[_0x382de6(0x16a)]||'',this['serverUrl']=_0x450ae6[_0x382de6(0x16b)]||'',this[_0x382de6(0x16c)]=_0x450ae6[_0x382de6(0x16c)]||{};}module[a1236_0x339df3(0x16e)]=FreshdeskAccount; \ No newline at end of file diff --git a/server/services/ami/model/freshsalesAccount.js b/server/services/ami/model/freshsalesAccount.js index 01286b6..26c21bb 100644 --- a/server/services/ami/model/freshsalesAccount.js +++ b/server/services/ami/model/freshsalesAccount.js @@ -1 +1 @@ -var a1073_0x2e36=['remoteUri','name','Configurations','apiKey','username','exports','serverUrl','token'];(function(_0x489c31,_0x2e3649){var _0x468c65=function(_0x36e821){while(--_0x36e821){_0x489c31['push'](_0x489c31['shift']());}};_0x468c65(++_0x2e3649);}(a1073_0x2e36,0xe9));var a1073_0x468c=function(_0x489c31,_0x2e3649){_0x489c31=_0x489c31-0x0;var _0x468c65=a1073_0x2e36[_0x489c31];return _0x468c65;};var _0x3c7b13=a1073_0x468c;'use strict';function FreshsalesAccount(_0x36e821){var _0x3c7a2b=a1073_0x468c;this['id']=_0x36e821['id']||0x0,this[_0x3c7a2b('0x0')]=_0x36e821['name']||'',this[_0x3c7a2b('0x3')]=_0x36e821[_0x3c7a2b('0x3')]||'',this[_0x3c7a2b('0x2')]=_0x36e821[_0x3c7a2b('0x6')]||'',this[_0x3c7a2b('0x7')]=_0x36e821[_0x3c7a2b('0x7')]||'',this[_0x3c7a2b('0x5')]=_0x36e821[_0x3c7a2b('0x5')]||'',this[_0x3c7a2b('0x1')]=_0x36e821[_0x3c7a2b('0x1')]||{};}module[_0x3c7b13('0x4')]=FreshsalesAccount; \ No newline at end of file +var a1237_0x1586=['username','remoteUri','serverUrl','apiKey','exports','name','token','Configurations'];(function(_0x472ad3,_0x31efc5){var _0x15861a=function(_0x467243){while(--_0x467243){_0x472ad3['push'](_0x472ad3['shift']());}};_0x15861a(++_0x31efc5);}(a1237_0x1586,0x1f4));var a1237_0x4672=function(_0x472ad3,_0x31efc5){_0x472ad3=_0x472ad3-0x19b;var _0x15861a=a1237_0x1586[_0x472ad3];return _0x15861a;};var a1237_0x3ccfd6=a1237_0x4672;'use strict';function FreshsalesAccount(_0x1f18d7){var _0x330792=a1237_0x4672;this['id']=_0x1f18d7['id']||0x0,this[_0x330792(0x19c)]=_0x1f18d7[_0x330792(0x19c)]||'',this[_0x330792(0x19f)]=_0x1f18d7[_0x330792(0x19f)]||'',this[_0x330792(0x1a2)]=_0x1f18d7[_0x330792(0x19d)]||'',this['remoteUri']=_0x1f18d7[_0x330792(0x1a0)]||'',this[_0x330792(0x1a1)]=_0x1f18d7[_0x330792(0x1a1)]||'',this[_0x330792(0x19e)]=_0x1f18d7[_0x330792(0x19e)]||{};}module[a1237_0x3ccfd6(0x19b)]=FreshsalesAccount; \ No newline at end of file diff --git a/server/services/ami/model/queueReport.js b/server/services/ami/model/queueReport.js index debb59c..b7af41a 100644 --- a/server/services/ami/model/queueReport.js +++ b/server/services/ami/model/queueReport.js @@ -1 +1 @@ -var a1074_0x107a=['count','queuecallercomplete','originalposition','queuecallerabandonAt','queuecallercompleteAt','holdtime','queuecallerexitAt','channel','lastAssignedTo','queuecallerexit','position','type','uniqueid','connectedlinename','accountcode','queuecallerjoinAt','calleridname','priority','inbound','queue','context'];(function(_0x238488,_0x107a83){var _0x487887=function(_0x12e674){while(--_0x12e674){_0x238488['push'](_0x238488['shift']());}};_0x487887(++_0x107a83);}(a1074_0x107a,0x118));var a1074_0x4878=function(_0x238488,_0x107a83){_0x238488=_0x238488-0x0;var _0x487887=a1074_0x107a[_0x238488];return _0x487887;};'use strict';function QueueReport(){var _0x1587ec=a1074_0x4878;this[_0x1587ec('0x4')]=_0x1587ec('0xb'),this[_0x1587ec('0x5')]='',this['calleridnum']='',this[_0x1587ec('0x9')]='',this[_0x1587ec('0xc')]='',this[_0x1587ec('0x8')]=null,this['queuecallerleaveAt']=null,this[_0x1587ec('0x3')]=0x1,this[_0x1587ec('0xe')]=0x1,this['queuecallerabandon']=![],this[_0x1587ec('0x11')]=null,this[_0x1587ec('0xf')]=![],this[_0x1587ec('0x12')]=null,this[_0x1587ec('0x2')]=![],this[_0x1587ec('0x14')]=null,this[_0x1587ec('0x10')]=0x1,this[_0x1587ec('0x0')]='',this['connectedlinenum']='',this[_0x1587ec('0x6')]='',this[_0x1587ec('0x7')]='',this[_0x1587ec('0xd')]='',this['exten']='',this[_0x1587ec('0xa')]='',this[_0x1587ec('0x13')]=0x0,this['assigned']=![],this[_0x1587ec('0x1')]='',this['mohtime']=0x0,this['variables']={};}module['exports']=QueueReport; \ No newline at end of file +var a1238_0x249f=['priority','type','position','holdtime','assigned','accountcode','queuecallerleaveAt','queuecallerjoinAt','context','exports','channel','mohtime','variables','count','connectedlinename','lastAssignedTo','calleridname','queuecallerexitAt','exten','connectedlinenum','queuecallercompleteAt','queuecallercomplete','queuecallerexit','queue'];(function(_0x521822,_0x41f4d7){var _0x249f74=function(_0x54eac5){while(--_0x54eac5){_0x521822['push'](_0x521822['shift']());}};_0x249f74(++_0x41f4d7);}(a1238_0x249f,0x19a));var a1238_0x54ea=function(_0x521822,_0x41f4d7){_0x521822=_0x521822-0x122;var _0x249f74=a1238_0x249f[_0x521822];return _0x249f74;};var a1238_0x20d716=a1238_0x54ea;'use strict';function QueueReport(){var _0x432ed8=a1238_0x54ea;this[_0x432ed8(0x139)]='inbound',this['uniqueid']='',this['calleridnum']='',this[_0x432ed8(0x130)]='',this[_0x432ed8(0x137)]='',this[_0x432ed8(0x127)]=null,this[_0x432ed8(0x126)]=null,this[_0x432ed8(0x122)]=0x1,this[_0x432ed8(0x12d)]=0x1,this['queuecallerabandon']=![],this['queuecallerabandonAt']=null,this[_0x432ed8(0x135)]=![],this[_0x432ed8(0x134)]=null,this[_0x432ed8(0x136)]=![],this[_0x432ed8(0x131)]=null,this['originalposition']=0x1,this[_0x432ed8(0x12a)]='',this[_0x432ed8(0x133)]='',this[_0x432ed8(0x12e)]='',this[_0x432ed8(0x125)]='',this[_0x432ed8(0x128)]='',this[_0x432ed8(0x132)]='',this[_0x432ed8(0x138)]='',this[_0x432ed8(0x123)]=0x0,this[_0x432ed8(0x124)]=![],this[_0x432ed8(0x12f)]='',this[_0x432ed8(0x12b)]=0x0,this[_0x432ed8(0x12c)]={};}module[a1238_0x20d716(0x129)]=QueueReport; \ No newline at end of file diff --git a/server/services/ami/model/salesforceAccount.js b/server/services/ami/model/salesforceAccount.js index 6811200..d71e7b0 100644 --- a/server/services/ami/model/salesforceAccount.js +++ b/server/services/ami/model/salesforceAccount.js @@ -1 +1 @@ -var a1075_0x44d7=['name','serverUrl','password','exports','securityToken','remoteUri','Configurations','username','integrationTab','type','clientId'];(function(_0x57c894,_0x44d7a0){var _0x50b6f3=function(_0x387a8f){while(--_0x387a8f){_0x57c894['push'](_0x57c894['shift']());}};_0x50b6f3(++_0x44d7a0);}(a1075_0x44d7,0x1f3));var a1075_0x50b6=function(_0x57c894,_0x44d7a0){_0x57c894=_0x57c894-0x0;var _0x50b6f3=a1075_0x44d7[_0x57c894];return _0x50b6f3;};var _0xc806d0=a1075_0x50b6;'use strict';function SalesforceAccount(_0x387a8f){var _0x282bbf=a1075_0x50b6;this['id']=_0x387a8f['id']||0x0,this[_0x282bbf('0x7')]=_0x387a8f['name']||'',this['username']=_0x387a8f[_0x282bbf('0x3')]||'',this[_0x282bbf('0x1')]=_0x387a8f[_0x282bbf('0x1')]||'',this[_0x282bbf('0x9')]=_0x387a8f['password']||'',this[_0x282bbf('0x6')]=_0x387a8f[_0x282bbf('0x6')]||'',this['clientSecret']=_0x387a8f['clientSecret']||'',this[_0x282bbf('0x0')]=_0x387a8f['securityToken']||'',this[_0x282bbf('0x5')]=_0x387a8f[_0x282bbf('0x5')]||_0x282bbf('0x4'),this['serverUrl']=_0x387a8f[_0x282bbf('0x8')]||'',this['Configurations']=_0x387a8f[_0x282bbf('0x2')]||{};}module[_0xc806d0('0xa')]=SalesforceAccount; \ No newline at end of file +var a1239_0xad9e=['type','username','clientId','securityToken','name','remoteUri','integrationTab','serverUrl','clientSecret','password','Configurations'];(function(_0x94e7ad,_0x28e7aa){var _0xad9e60=function(_0x493267){while(--_0x493267){_0x94e7ad['push'](_0x94e7ad['shift']());}};_0xad9e60(++_0x28e7aa);}(a1239_0xad9e,0x85));var a1239_0x4932=function(_0x94e7ad,_0x28e7aa){_0x94e7ad=_0x94e7ad-0x18e;var _0xad9e60=a1239_0xad9e[_0x94e7ad];return _0xad9e60;};'use strict';function SalesforceAccount(_0x4077a2){var _0x3eae34=a1239_0x4932;this['id']=_0x4077a2['id']||0x0,this[_0x3eae34(0x191)]=_0x4077a2[_0x3eae34(0x191)]||'',this[_0x3eae34(0x18e)]=_0x4077a2[_0x3eae34(0x18e)]||'',this[_0x3eae34(0x192)]=_0x4077a2[_0x3eae34(0x192)]||'',this[_0x3eae34(0x196)]=_0x4077a2[_0x3eae34(0x196)]||'',this[_0x3eae34(0x18f)]=_0x4077a2[_0x3eae34(0x18f)]||'',this[_0x3eae34(0x195)]=_0x4077a2[_0x3eae34(0x195)]||'',this[_0x3eae34(0x190)]=_0x4077a2[_0x3eae34(0x190)]||'',this[_0x3eae34(0x198)]=_0x4077a2[_0x3eae34(0x198)]||_0x3eae34(0x193),this[_0x3eae34(0x194)]=_0x4077a2[_0x3eae34(0x194)]||'',this[_0x3eae34(0x197)]=_0x4077a2[_0x3eae34(0x197)]||{};}module['exports']=SalesforceAccount; \ No newline at end of file diff --git a/server/services/ami/model/servicenowAccount.js b/server/services/ami/model/servicenowAccount.js index f18b267..0f27c30 100644 --- a/server/services/ami/model/servicenowAccount.js +++ b/server/services/ami/model/servicenowAccount.js @@ -1 +1 @@ -var a1076_0xabe3=['name','remoteUri','password','serverUrl','username','Configurations','exports'];(function(_0x467b2a,_0xabe333){var _0x1096d9=function(_0x121fd8){while(--_0x121fd8){_0x467b2a['push'](_0x467b2a['shift']());}};_0x1096d9(++_0xabe333);}(a1076_0xabe3,0x15b));var a1076_0x1096=function(_0x467b2a,_0xabe333){_0x467b2a=_0x467b2a-0x0;var _0x1096d9=a1076_0xabe3[_0x467b2a];return _0x1096d9;};var _0x137e4b=a1076_0x1096;'use strict';function ServicenowAccount(_0x121fd8){var _0x5384d9=a1076_0x1096;this['id']=_0x121fd8['id']||0x0,this[_0x5384d9('0x3')]=_0x121fd8[_0x5384d9('0x3')]||'',this['username']=_0x121fd8[_0x5384d9('0x0')]||'',this[_0x5384d9('0x5')]=_0x121fd8[_0x5384d9('0x5')]||'',this[_0x5384d9('0x4')]=_0x121fd8[_0x5384d9('0x4')]||'',this[_0x5384d9('0x6')]=_0x121fd8[_0x5384d9('0x6')]||'',this[_0x5384d9('0x1')]=_0x121fd8['Configurations']||{};}module[_0x137e4b('0x2')]=ServicenowAccount; \ No newline at end of file +var a1240_0x261c=['password','Configurations','exports','name','username'];(function(_0x536661,_0x5ed622){var _0x261cdd=function(_0x18d28e){while(--_0x18d28e){_0x536661['push'](_0x536661['shift']());}};_0x261cdd(++_0x5ed622);}(a1240_0x261c,0x8a));var a1240_0x18d2=function(_0x536661,_0x5ed622){_0x536661=_0x536661-0x1ee;var _0x261cdd=a1240_0x261c[_0x536661];return _0x261cdd;};var a1240_0x17b751=a1240_0x18d2;'use strict';function ServicenowAccount(_0x155757){var _0x33c178=a1240_0x18d2;this['id']=_0x155757['id']||0x0,this[_0x33c178(0x1ee)]=_0x155757[_0x33c178(0x1ee)]||'',this['username']=_0x155757[_0x33c178(0x1ef)]||'',this[_0x33c178(0x1f0)]=_0x155757[_0x33c178(0x1f0)]||'',this['remoteUri']=_0x155757['remoteUri']||'',this['serverUrl']=_0x155757['serverUrl']||'',this[_0x33c178(0x1f1)]=_0x155757[_0x33c178(0x1f1)]||{};}module[a1240_0x17b751(0x1f2)]=ServicenowAccount; \ No newline at end of file diff --git a/server/services/ami/model/sugarcrmAccount.js b/server/services/ami/model/sugarcrmAccount.js index 60e3953..ccf4063 100644 --- a/server/services/ami/model/sugarcrmAccount.js +++ b/server/services/ami/model/sugarcrmAccount.js @@ -1 +1 @@ -var a1077_0x2eb3=['serverUrl','name','Configurations','username','remoteUri','exports','password'];(function(_0x5d0e96,_0x2eb359){var _0x59799a=function(_0x219cee){while(--_0x219cee){_0x5d0e96['push'](_0x5d0e96['shift']());}};_0x59799a(++_0x2eb359);}(a1077_0x2eb3,0x1a3));var a1077_0x5979=function(_0x5d0e96,_0x2eb359){_0x5d0e96=_0x5d0e96-0x0;var _0x59799a=a1077_0x2eb3[_0x5d0e96];return _0x59799a;};var _0x38f491=a1077_0x5979;'use strict';function SugarcrmAccount(_0x219cee){var _0x403507=a1077_0x5979;this['id']=_0x219cee['id']||0x0,this[_0x403507('0x2')]=_0x219cee[_0x403507('0x2')]||'',this[_0x403507('0x4')]=_0x219cee[_0x403507('0x4')]||'',this[_0x403507('0x0')]=_0x219cee[_0x403507('0x0')]||'',this[_0x403507('0x5')]=_0x219cee[_0x403507('0x5')]||'',this[_0x403507('0x1')]=_0x219cee[_0x403507('0x1')]||'',this['Configurations']=_0x219cee[_0x403507('0x3')]||{};}module[_0x38f491('0x6')]=SugarcrmAccount; \ No newline at end of file +var a1241_0x114b=['username','Configurations','remoteUri','exports','name','password','serverUrl'];(function(_0x411e77,_0x58f162){var _0x114b12=function(_0x13f661){while(--_0x13f661){_0x411e77['push'](_0x411e77['shift']());}};_0x114b12(++_0x58f162);}(a1241_0x114b,0x19a));var a1241_0x13f6=function(_0x411e77,_0x58f162){_0x411e77=_0x411e77-0xd9;var _0x114b12=a1241_0x114b[_0x411e77];return _0x114b12;};var a1241_0x2bfa20=a1241_0x13f6;'use strict';function SugarcrmAccount(_0x57fb04){var _0x1c76f5=a1241_0x13f6;this['id']=_0x57fb04['id']||0x0,this[_0x1c76f5(0xd9)]=_0x57fb04[_0x1c76f5(0xd9)]||'',this[_0x1c76f5(0xdc)]=_0x57fb04['username']||'',this[_0x1c76f5(0xda)]=_0x57fb04['password']||'',this[_0x1c76f5(0xde)]=_0x57fb04[_0x1c76f5(0xde)]||'',this[_0x1c76f5(0xdb)]=_0x57fb04['serverUrl']||'',this[_0x1c76f5(0xdd)]=_0x57fb04[_0x1c76f5(0xdd)]||{};}module[a1241_0x2bfa20(0xdf)]=SugarcrmAccount; \ No newline at end of file diff --git a/server/services/ami/model/telephone.js b/server/services/ami/model/telephone.js index 42fcedf..efb72a9 100644 --- a/server/services/ami/model/telephone.js +++ b/server/services/ami/model/telephone.js @@ -1 +1 @@ -var a1078_0x4a7b=['stateTime','unknown','state','name','status','address','accountcode'];(function(_0x3d7a8d,_0x4a7bd2){var _0x4aec76=function(_0x3e4e04){while(--_0x3e4e04){_0x3d7a8d['push'](_0x3d7a8d['shift']());}};_0x4aec76(++_0x4a7bd2);}(a1078_0x4a7b,0x70));var a1078_0x4aec=function(_0x3d7a8d,_0x4a7bd2){_0x3d7a8d=_0x3d7a8d-0x0;var _0x4aec76=a1078_0x4a7b[_0x3d7a8d];return _0x4aec76;};'use strict';function Telephone(_0x3e4e04){var _0x548718=a1078_0x4aec;this['id']=_0x3e4e04['id']||0x0,this[_0x548718('0x3')]=_0x3e4e04['name']||'',this[_0x548718('0x6')]=_0x3e4e04[_0x548718('0x6')]||'',this[_0x548718('0x2')]=_0x548718('0x1'),this[_0x548718('0x0')]=0x0,this[_0x548718('0x4')]=_0x548718('0x1'),this[_0x548718('0x5')]='';}module['exports']=Telephone; \ No newline at end of file +var a1242_0x305e=['exports','name','status','address','accountcode','state','unknown'];(function(_0x137584,_0x5a0398){var _0x305e28=function(_0x5d814c){while(--_0x5d814c){_0x137584['push'](_0x137584['shift']());}};_0x305e28(++_0x5a0398);}(a1242_0x305e,0x16f));var a1242_0x5d81=function(_0x137584,_0x5a0398){_0x137584=_0x137584-0x18e;var _0x305e28=a1242_0x305e[_0x137584];return _0x305e28;};var a1242_0x5f0185=a1242_0x5d81;'use strict';function Telephone(_0x3d043a){var _0x1e9fc1=a1242_0x5d81;this['id']=_0x3d043a['id']||0x0,this[_0x1e9fc1(0x193)]=_0x3d043a[_0x1e9fc1(0x193)]||'',this[_0x1e9fc1(0x18f)]=_0x3d043a[_0x1e9fc1(0x18f)]||'',this[_0x1e9fc1(0x190)]=_0x1e9fc1(0x191),this['stateTime']=0x0,this[_0x1e9fc1(0x194)]=_0x1e9fc1(0x191),this[_0x1e9fc1(0x18e)]='';}module[a1242_0x5f0185(0x192)]=Telephone; \ No newline at end of file diff --git a/server/services/ami/model/template.js b/server/services/ami/model/template.js index f7088f9..6130629 100644 --- a/server/services/ami/model/template.js +++ b/server/services/ami/model/template.js @@ -1 +1 @@ -var a1079_0x5b62=['name','html','exports'];(function(_0x5d2176,_0x5b62d1){var _0x33ba27=function(_0x3e1b10){while(--_0x3e1b10){_0x5d2176['push'](_0x5d2176['shift']());}};_0x33ba27(++_0x5b62d1);}(a1079_0x5b62,0xc4));var a1079_0x33ba=function(_0x5d2176,_0x5b62d1){_0x5d2176=_0x5d2176-0x0;var _0x33ba27=a1079_0x5b62[_0x5d2176];return _0x33ba27;};var _0x29ed88=a1079_0x33ba;'use strict';function template(_0x3e1b10){var _0x5bc60b=a1079_0x33ba;this['id']=_0x3e1b10['id']||0x0,this[_0x5bc60b('0x2')]=_0x3e1b10[_0x5bc60b('0x2')]||'',this['html']=_0x3e1b10[_0x5bc60b('0x0')]||'';}module[_0x29ed88('0x1')]=template; \ No newline at end of file +var a1243_0x163d=['name','exports','html'];(function(_0x424a31,_0x40a893){var _0x163ddc=function(_0x23c16d){while(--_0x23c16d){_0x424a31['push'](_0x424a31['shift']());}};_0x163ddc(++_0x40a893);}(a1243_0x163d,0x66));var a1243_0x23c1=function(_0x424a31,_0x40a893){_0x424a31=_0x424a31-0x1d1;var _0x163ddc=a1243_0x163d[_0x424a31];return _0x163ddc;};var a1243_0x1c8273=a1243_0x23c1;'use strict';function template(_0x587c2b){var _0x83debf=a1243_0x23c1;this['id']=_0x587c2b['id']||0x0,this[_0x83debf(0x1d1)]=_0x587c2b[_0x83debf(0x1d1)]||'',this[_0x83debf(0x1d3)]=_0x587c2b[_0x83debf(0x1d3)]||'';}module[a1243_0x1c8273(0x1d2)]=template; \ No newline at end of file diff --git a/server/services/ami/model/trigger.js b/server/services/ami/model/trigger.js index 5756970..d262b0a 100644 --- a/server/services/ami/model/trigger.js +++ b/server/services/ami/model/trigger.js @@ -1 +1 @@ -var a1080_0x48f1=['AnyConditions','name','Actions','channel','status'];(function(_0x37c5d7,_0x48f1f5){var _0x34efc9=function(_0xa7a86e){while(--_0xa7a86e){_0x37c5d7['push'](_0x37c5d7['shift']());}};_0x34efc9(++_0x48f1f5);}(a1080_0x48f1,0x1b2));var a1080_0x34ef=function(_0x37c5d7,_0x48f1f5){_0x37c5d7=_0x37c5d7-0x0;var _0x34efc9=a1080_0x48f1[_0x37c5d7];return _0x34efc9;};'use strict';function Trigger(_0xa7a86e){var _0x14feba=a1080_0x34ef;this['id']=_0xa7a86e['id']||0x0,this[_0x14feba('0x2')]=_0xa7a86e[_0x14feba('0x2')]||'',this['channel']=_0xa7a86e[_0x14feba('0x4')]||'voice',this[_0x14feba('0x0')]=_0xa7a86e[_0x14feba('0x0')]||![],this['AllConditions']=_0xa7a86e['AllConditions']||[],this['AnyConditions']=_0xa7a86e[_0x14feba('0x1')]||[],this['Actions']=_0xa7a86e[_0x14feba('0x3')]||[];}module['exports']=Trigger; \ No newline at end of file +var a1244_0x5d07=['Actions','AllConditions','status','voice','AnyConditions','name','exports','channel'];(function(_0x278a94,_0xb320f1){var _0x5d0757=function(_0x1fc8b2){while(--_0x1fc8b2){_0x278a94['push'](_0x278a94['shift']());}};_0x5d0757(++_0xb320f1);}(a1244_0x5d07,0x129));var a1244_0x1fc8=function(_0x278a94,_0xb320f1){_0x278a94=_0x278a94-0x1ec;var _0x5d0757=a1244_0x5d07[_0x278a94];return _0x5d0757;};var a1244_0x8a1790=a1244_0x1fc8;'use strict';function Trigger(_0x103585){var _0x3152b9=a1244_0x1fc8;this['id']=_0x103585['id']||0x0,this[_0x3152b9(0x1f0)]=_0x103585[_0x3152b9(0x1f0)]||'',this['channel']=_0x103585[_0x3152b9(0x1f2)]||_0x3152b9(0x1ee),this[_0x3152b9(0x1ed)]=_0x103585[_0x3152b9(0x1ed)]||![],this[_0x3152b9(0x1ec)]=_0x103585[_0x3152b9(0x1ec)]||[],this[_0x3152b9(0x1ef)]=_0x103585[_0x3152b9(0x1ef)]||[],this['Actions']=_0x103585[_0x3152b9(0x1f3)]||[];}module[a1244_0x8a1790(0x1f1)]=Trigger; \ No newline at end of file diff --git a/server/services/ami/model/trunk.js b/server/services/ami/model/trunk.js index e220ce5..9f2fe3a 100644 --- a/server/services/ami/model/trunk.js +++ b/server/services/ami/model/trunk.js @@ -1 +1 @@ -var a1081_0x1500=['refresh','active','registrationtime','name','stateRegistry','stateTime','domain','unknown','split','registry','port','domainport','exports','host','address'];(function(_0x37d7b6,_0x150029){var _0xf2908a=function(_0x3996c3){while(--_0x3996c3){_0x37d7b6['push'](_0x37d7b6['shift']());}};_0xf2908a(++_0x150029);}(a1081_0x1500,0x93));var a1081_0xf290=function(_0x37d7b6,_0x150029){_0x37d7b6=_0x37d7b6-0x0;var _0xf2908a=a1081_0x1500[_0x37d7b6];return _0xf2908a;};var _0x5ce0da=a1081_0xf290;'use strict';function Trunk(_0x3996c3){var _0x133a0c=a1081_0xf290;this['id']=_0x3996c3['id']||0x0,this[_0x133a0c('0x4')]=_0x3996c3[_0x133a0c('0x4')]||![],this[_0x133a0c('0x6')]=_0x3996c3[_0x133a0c('0x6')]||'',this['state']=_0x133a0c('0xa'),this[_0x133a0c('0x8')]=0x0,this['status']=_0x133a0c('0xa'),this[_0x133a0c('0xc')]=_0x3996c3[_0x133a0c('0xc')]&&_0x3996c3[_0x133a0c('0xc')]['indexOf'](':')?_0x3996c3[_0x133a0c('0xc')][_0x133a0c('0xb')](':')[0x0]:'',this[_0x133a0c('0x1')]='',this[_0x133a0c('0xd')]='',this[_0x133a0c('0x9')]='',this[_0x133a0c('0xe')]='',this[_0x133a0c('0x3')]='',this[_0x133a0c('0x7')]=_0x133a0c('0xa'),this[_0x133a0c('0x5')]='',this[_0x133a0c('0x2')]='';}module[_0x5ce0da('0x0')]=Trunk; \ No newline at end of file +var a1245_0x169f=['registry','state','refresh','unknown','status','registrationtime','active','name','port','split','indexOf'];(function(_0x1c6038,_0x29864f){var _0x169fea=function(_0xf452c2){while(--_0xf452c2){_0x1c6038['push'](_0x1c6038['shift']());}};_0x169fea(++_0x29864f);}(a1245_0x169f,0x17e));var a1245_0xf452=function(_0x1c6038,_0x29864f){_0x1c6038=_0x1c6038-0x6a;var _0x169fea=a1245_0x169f[_0x1c6038];return _0x169fea;};'use strict';function Trunk(_0x3f52f8){var _0x18c2e7=a1245_0xf452;this['id']=_0x3f52f8['id']||0x0,this[_0x18c2e7(0x73)]=_0x3f52f8[_0x18c2e7(0x73)]||![],this[_0x18c2e7(0x74)]=_0x3f52f8[_0x18c2e7(0x74)]||'',this[_0x18c2e7(0x6e)]='unknown',this['stateTime']=0x0,this[_0x18c2e7(0x71)]=_0x18c2e7(0x70),this['registry']=_0x3f52f8[_0x18c2e7(0x6d)]&&_0x3f52f8[_0x18c2e7(0x6d)][_0x18c2e7(0x6c)](':')?_0x3f52f8['registry'][_0x18c2e7(0x6b)](':')[0x0]:'',this['host']='',this[_0x18c2e7(0x6a)]='',this['domain']='',this['domainport']='',this[_0x18c2e7(0x6f)]='',this['stateRegistry']=_0x18c2e7(0x70),this[_0x18c2e7(0x72)]='',this['address']='';}module['exports']=Trunk; \ No newline at end of file diff --git a/server/services/ami/model/voiceExtension.js b/server/services/ami/model/voiceExtension.js index 8b6cc47..1dd2247 100644 --- a/server/services/ami/model/voiceExtension.js +++ b/server/services/ami/model/voiceExtension.js @@ -1 +1 @@ -var a1082_0x145e=['recordingFormat','none','exports','mandatoryDisposition','exten'];(function(_0xb94f93,_0x145e8b){var _0x4ab3fa=function(_0x39ba2d){while(--_0x39ba2d){_0xb94f93['push'](_0xb94f93['shift']());}};_0x4ab3fa(++_0x145e8b);}(a1082_0x145e,0x184));var a1082_0x4ab3=function(_0xb94f93,_0x145e8b){_0xb94f93=_0xb94f93-0x0;var _0x4ab3fa=a1082_0x145e[_0xb94f93];return _0x4ab3fa;};var _0x3cf970=a1082_0x4ab3;'use strict';function voiceExtension(_0x39ba2d){var _0x2d2138=a1082_0x4ab3;this['id']=_0x39ba2d['id']||0x0,this[_0x2d2138('0x1')]=_0x39ba2d['exten']||'',this[_0x2d2138('0x2')]=_0x39ba2d[_0x2d2138('0x2')]||_0x2d2138('0x3'),this['mandatoryDisposition']=_0x39ba2d[_0x2d2138('0x0')]||![];}module[_0x3cf970('0x4')]=voiceExtension; \ No newline at end of file +var a1246_0x2b64=['none','exten','mandatoryDisposition','recordingFormat'];(function(_0x3d0625,_0x14f4ba){var _0x2b6404=function(_0x599d61){while(--_0x599d61){_0x3d0625['push'](_0x3d0625['shift']());}};_0x2b6404(++_0x14f4ba);}(a1246_0x2b64,0xe9));var a1246_0x599d=function(_0x3d0625,_0x14f4ba){_0x3d0625=_0x3d0625-0x1c8;var _0x2b6404=a1246_0x2b64[_0x3d0625];return _0x2b6404;};'use strict';function voiceExtension(_0x4f92a4){var _0x11c56f=a1246_0x599d;this['id']=_0x4f92a4['id']||0x0,this[_0x11c56f(0x1c8)]=_0x4f92a4[_0x11c56f(0x1c8)]||'',this['recordingFormat']=_0x4f92a4[_0x11c56f(0x1ca)]||_0x11c56f(0x1cb),this[_0x11c56f(0x1c9)]=_0x4f92a4[_0x11c56f(0x1c9)]||![];}module['exports']=voiceExtension; \ No newline at end of file diff --git a/server/services/ami/model/voiceQueue.js b/server/services/ami/model/voiceQueue.js index da8f9af..98cc202 100644 --- a/server/services/ami/model/voiceQueue.js +++ b/server/services/ami/model/voiceQueue.js @@ -1 +1 @@ -const a1083_0x3ebd=['mandatoryDisposition','erlangBusyFactor','dialAbandonedRetryFrequency','dialAMDSilenceThreshold','outboundUnknownCallsDay','outboundBusyCallsDay','dialAMDGreeting','dialActive','queueStatusComplete','predictiveIntervalMultiplicativeFactor','loggedIn','outboundAbandonedDay','erlangCallToSecond','dialAgentRejectMaxRetry','outboundBlacklistCallsDay','dialNoSuchNumberRetryFrequency','dialPredictiveIntervalMaxThreshold','erlangAbandonmentRate','dialAbandonedMaxRetry','answered','dialAgentRejectRetryFrequency','predictiveIntervalAvgTalktime','anonymous','outboundDropCallsDayCallersExit','dialAMDBetweenWordsSilence','dialAMDMaximumNumberOfWords','dialQueueProject2','dialAgiAfterHangupAgent','acwTimeout','dialPredictiveInterval','dialRecallInQueue','mandatoryDispositionPause','predictiveIntervalErlangCallsDroppedCalls','strategy','dialNoSuchNumberMaxRetry','dialCongestionMaxRetry','talking','dialAMDMinWordLength','dialAMDActive','gsm','dialMethod','tTxX','outboundAnswerCallsDay','sendMessageOneNotActive','outboundDropCallsDayACS','predictiveIntervalMinThreshold','dialPrefix','dialQueueTimeout','exports','predictiveIntervalAvgHoldtime','dialPowerLevel','dialMachineRetryFrequency','acw','roundrobin','outboundCongestionCallsDay','outboundRejectCallsDay','dialPredictiveOptimization','autopause','predictiveIntervalHitRate','type','pTalking','dialCutDigit','dialQueueProject','outboundOriginateFailureCallsDay','dialMachineMaxRetry','Trunk','dialBusyRetryFrequency','dialOriginateTimeout','DESC','progressive','dialRecallMeTimeout','outboundDropCallsDayTimeout','dialLimitChannel','dialDropRetryFrequency','timeout','total','predictiveIntervalAvailable','dialDropMaxRetry','dialRandomLastDigitCallerIdNumber','dialLimitQueue','dialGlobalMaxRetry','dialAMDTotalAnalysisTime','dialAMDAfterGreetingSilence','wav49','dialNoAnswerMaxRetry','dialBusyMaxRetry','sumBillable','predictiveIntervalMaxThreshold','dialOriginateCallerIdName','rrmemory','name','dialCongestionRetryFrequency','Interval','dialAMDInitialSilence','startProgressive','startPredictive','TrunkBackup','outboundReCallsDay','dialNoAnswerRetryFrequency','predictiveIntervalPauses','predictiveIntervalDroppedCallsTimeout','dialOriginateCallerIdNumber','outboundNoSuchCallsDay','erlangCalls','dialAMDMaximumWordLength','predictiveIntervalAnsweredCalls','dialAgiAfterHangupClient','dialGlobalInterval','monitor_format','dialOrderByScheduledAt'];(function(_0x486769,_0x3ebd03){const _0x162c82=function(_0x32a0d6){while(--_0x32a0d6){_0x486769['push'](_0x486769['shift']());}};_0x162c82(++_0x3ebd03);}(a1083_0x3ebd,0x118));const a1083_0x162c=function(_0x486769,_0x3ebd03){_0x486769=_0x486769-0x0;let _0x162c82=a1083_0x3ebd[_0x486769];return _0x162c82;};const _0x3579a1=a1083_0x162c;'use strict';const monitorFormat={'wav':'wav','wav49':_0x3579a1('0x17'),'gsm':_0x3579a1('0x59')},strategy={'rrmemory':_0x3579a1('0x1d'),'roundrobin':_0x3579a1('0x67')};function VoiceQueue(_0x32a0d6){const _0x324506=_0x3579a1;this['id']=_0x32a0d6['id']||0x0,this[_0x324506('0x1e')]=_0x32a0d6[_0x324506('0x1e')]||'',this[_0x324506('0x30')]=_0x32a0d6[_0x324506('0x30')]||'',this[_0x324506('0x6d')]=_0x32a0d6[_0x324506('0x6d')]||'inbound',this['waiting']=0x0,this[_0x324506('0x56')]=0x0,this[_0x324506('0xf')]=0x0,this[_0x324506('0x45')]=0x0,this['sumDuration']=0x0,this['sumHoldTime']=0x0,this[_0x324506('0x1a')]=0x0,this['unmanaged']=0x0,this['abandoned']=0x0,this[_0x324506('0x3c')]=0x0,this['available']=0x0,this[_0x324506('0x66')]=_0x32a0d6[_0x324506('0x66')]||![],this['acwTimeout']=_0x32a0d6[_0x324506('0x4e')]||0xa,this[_0x324506('0x6b')]=_0x32a0d6['autopause']||'no',this[_0x324506('0x5d')]=!![],this['message']='',this['originated']=0x0,this['temp']=0x0,this['dialTimezone']=_0x32a0d6['dialTimezone']||null,this[_0x324506('0x2f')]=_0x32a0d6[_0x324506('0x2f')]?_0x32a0d6['dialGlobalInterval']:null,this['dialActive']=_0x32a0d6[_0x324506('0x39')],this[_0x324506('0x5a')]=_0x32a0d6[_0x324506('0x5a')]||_0x324506('0x9'),this[_0x324506('0xc')]=_0x32a0d6['dialLimitChannel']||0x0,this[_0x324506('0x13')]=_0x32a0d6[_0x324506('0x13')]||0x0,this[_0x324506('0x64')]=_0x32a0d6[_0x324506('0x64')]||0x1,this['dialPredictiveOptimization']=_0x32a0d6[_0x324506('0x6a')]||'dropRate',this['dialPredictiveOptimizationPercentage']=_0x32a0d6['dialPredictiveOptimizationPercentage']||0.03,this[_0x324506('0x4f')]=_0x32a0d6[_0x324506('0x4f')]||0x258,this[_0x324506('0x1c')]=_0x32a0d6[_0x324506('0x1c')]||_0x324506('0x48'),this[_0x324506('0x29')]=_0x32a0d6[_0x324506('0x29')]||_0x324506('0x48'),this[_0x324506('0x7')]=_0x32a0d6[_0x324506('0x7')]||0x1e,this['dialQueueOptions']=_0x32a0d6['dialQueueOptions']||_0x324506('0x5b'),this[_0x324506('0x61')]=_0x32a0d6[_0x324506('0x61')]||0x3,this[_0x324506('0x2')]=_0x32a0d6[_0x324506('0x2')]||undefined,this[_0x324506('0x55')]=_0x32a0d6[_0x324506('0x55')]||0x3,this[_0x324506('0x1f')]=_0x32a0d6[_0x324506('0x1f')]||0x96,this[_0x324506('0x19')]=_0x32a0d6[_0x324506('0x19')]||0x3,this[_0x324506('0x6')]=_0x32a0d6['dialBusyRetryFrequency']||0x96,this[_0x324506('0x18')]=_0x32a0d6['dialNoAnswerMaxRetry']||0x3,this[_0x324506('0x26')]=_0x32a0d6[_0x324506('0x26')]||0x96,this[_0x324506('0x54')]=_0x32a0d6['dialNoSuchNumberMaxRetry']||0x3,this[_0x324506('0x41')]=_0x32a0d6[_0x324506('0x41')]||0x96,this[_0x324506('0x11')]=_0x32a0d6[_0x324506('0x11')]||0x3,this[_0x324506('0xd')]=_0x32a0d6['dialDropRetryFrequency']||0x96,this[_0x324506('0x44')]=_0x32a0d6[_0x324506('0x44')]||0x3,this[_0x324506('0x34')]=_0x32a0d6[_0x324506('0x34')]||0x96,this['dialMachineMaxRetry']=_0x32a0d6[_0x324506('0x4')]||0x3,this['dialMachineRetryFrequency']=_0x32a0d6[_0x324506('0x65')]||0x96,this[_0x324506('0x3f')]=_0x32a0d6[_0x324506('0x3f')]||0x3,this[_0x324506('0x46')]=_0x32a0d6[_0x324506('0x46')]||0x96,this[_0x324506('0x14')]=_0x32a0d6[_0x324506('0x14')]||0x4,this[_0x324506('0x5')]=_0x32a0d6['Trunk']?_0x32a0d6[_0x324506('0x5')]:undefined,this[_0x324506('0x24')]=_0x32a0d6['TrunkBackup']?_0x32a0d6[_0x324506('0x24')]:undefined,this['dialPrefix']=_0x32a0d6[_0x324506('0x60')]||undefined,this[_0x324506('0x20')]=_0x32a0d6[_0x324506('0x20')]?_0x32a0d6['Interval']:undefined,this['dialOrderByScheduledAt']=_0x32a0d6[_0x324506('0x31')]||_0x324506('0x8'),this[_0x324506('0x12')]=_0x32a0d6[_0x324506('0x12')]||undefined,this[_0x324506('0x1')]=_0x32a0d6[_0x324506('0x1')]||undefined,this[_0x324506('0x53')]=strategy[_0x32a0d6[_0x324506('0x53')]]||'rrmemory',this[_0x324506('0x3a')]=!![],this[_0x324506('0x58')]=_0x32a0d6[_0x324506('0x58')]||![],this[_0x324506('0x21')]=_0x32a0d6[_0x324506('0x21')],this[_0x324506('0x38')]=_0x32a0d6[_0x324506('0x38')],this['dialAMDAfterGreetingSilence']=_0x32a0d6[_0x324506('0x16')],this[_0x324506('0x15')]=_0x32a0d6[_0x324506('0x15')],this[_0x324506('0x57')]=_0x32a0d6['dialAMDMinWordLength'],this[_0x324506('0x4a')]=_0x32a0d6[_0x324506('0x4a')],this[_0x324506('0x4b')]=_0x32a0d6[_0x324506('0x4b')],this[_0x324506('0x35')]=_0x32a0d6['dialAMDSilenceThreshold'],this[_0x324506('0x2c')]=_0x32a0d6['dialAMDMaximumWordLength'],this[_0x324506('0x69')]=0x0,this[_0x324506('0x0')]=0x0,this[_0x324506('0xe')]=_0x32a0d6[_0x324506('0xe')],this[_0x324506('0x5c')]=0x0,this['outboundAnswerAgiCallsDay']=0x0,this['outboundNoAnswerCallsDay']=0x0,this[_0x324506('0x37')]=0x0,this[_0x324506('0x68')]=0x0,this[_0x324506('0x2a')]=0x0,this[_0x324506('0x36')]=0x0,this[_0x324506('0x40')]=0x0,this[_0x324506('0x3')]=0x0,this[_0x324506('0x49')]=0x0,this[_0x324506('0xb')]=0x0,this[_0x324506('0x5e')]=0x0,this[_0x324506('0x25')]=0x0,this[_0x324506('0x3d')]=0x0,this[_0x324506('0x22')]=undefined,this[_0x324506('0x23')]=undefined,this['handlePredictive']=undefined,this[_0x324506('0x3b')]=1.05,this['predictiveIntervalTotalCalls']=0x0,this[_0x324506('0x2d')]=0x0,this['predictiveIntervalDroppedCallsCallersExit']=0x0,this[_0x324506('0x28')]=0x0,this[_0x324506('0x63')]=0x0,this[_0x324506('0x47')]=0x0,this[_0x324506('0x27')]=0x0,this[_0x324506('0x10')]=0x0,this[_0x324506('0x1b')]=_0x32a0d6[_0x324506('0x42')]||0x14,this[_0x324506('0x5f')]=_0x32a0d6['dialPredictiveIntervalMaxThreshold']||0xa,this['predictiveIntervalErlangCalls']=0x0,this[_0x324506('0x52')]=0x0,this[_0x324506('0x6c')]=0x1,this[_0x324506('0x2b')]=0x0,this[_0x324506('0x3e')]=0x0,this[_0x324506('0x43')]=0x0,this[_0x324506('0x33')]=0x0,this['dialRecallMeTimeout']=_0x32a0d6[_0x324506('0xa')]||0x1e,this[_0x324506('0x50')]=_0x32a0d6['dialRecallInQueue']||![],this[_0x324506('0x4c')]=_0x32a0d6[_0x324506('0x4c')]||undefined,this[_0x324506('0x2e')]=_0x32a0d6[_0x324506('0x2e')]||![],this[_0x324506('0x4d')]=_0x32a0d6[_0x324506('0x4d')]||![],this[_0x324506('0x30')]=monitorFormat[_0x32a0d6[_0x324506('0x30')]]?monitorFormat[_0x32a0d6[_0x324506('0x30')]]:undefined,this[_0x324506('0x32')]=_0x32a0d6[_0x324506('0x32')]||![],this[_0x324506('0x51')]=_0x32a0d6[_0x324506('0x51')]?_0x32a0d6[_0x324506('0x51')]:undefined;}module[_0x3579a1('0x62')]=VoiceQueue; \ No newline at end of file +const a1247_0xddf5=['TrunkBackup','dialQueueProject','dialOriginateCallerIdName','dialPredictiveOptimization','startPredictive','outboundUnknownCallsDay','dialPrefix','outboundAbandonedDay','mandatoryDispositionPause','autopause','dialAMDSilenceThreshold','dialRecallMeTimeout','mandatoryDisposition','dialAbandonedRetryFrequency','predictiveIntervalMaxThreshold','dialGlobalInterval','unmanaged','dialMachineMaxRetry','dialBusyMaxRetry','predictiveIntervalDroppedCallsTimeout','dialPowerLevel','rrmemory','dialQueueProject2','dialAMDAfterGreetingSilence','dialMachineRetryFrequency','dialRecallInQueue','dialLimitQueue','dialAMDActive','gsm','dialNoAnswerMaxRetry','anonymous','monitor_format','dialCongestionRetryFrequency','dialNoAnswerRetryFrequency','predictiveIntervalErlangCallsDroppedCalls','predictiveIntervalHitRate','predictiveIntervalAvgTalktime','sendMessageOneNotActive','loggedIn','dialQueueTimeout','dialRandomLastDigitCallerIdNumber','startProgressive','predictiveIntervalMultiplicativeFactor','Trunk','dialDropRetryFrequency','dialDropMaxRetry','dialAMDMaximumWordLength','dialQueueOptions','dialBusyRetryFrequency','dialCutDigit','outboundDropCallsDayCallersExit','outboundOriginateFailureCallsDay','DESC','dialOriginateCallerIdNumber','outboundAnswerAgiCallsDay','dialPredictiveInterval','inbound','dialGlobalMaxRetry','dialAMDBetweenWordsSilence','predictiveIntervalAnsweredCalls','predictiveIntervalDroppedCallsCallersExit','dialAgiAfterHangupAgent','dialNoSuchNumberRetryFrequency','sumHoldTime','dialAgiAfterHangupClient','dialAbandonedMaxRetry','dialAMDGreeting','outboundBlacklistCallsDay','message','dialLimitChannel','outboundBusyCallsDay','outboundAnswerCallsDay','originated','total','predictiveIntervalMinThreshold','timeout','dialOriginateTimeout','acwTimeout','predictiveIntervalErlangCalls','dialAgentRejectMaxRetry','available','dialAMDInitialSilence','erlangCallToSecond','dialCongestionMaxRetry','acw','handlePredictive','sumDuration','type','dialAgentRejectRetryFrequency','dialNoSuchNumberMaxRetry','dialMethod','dialAMDMinWordLength','dialActive','outboundNoSuchCallsDay','dialPredictiveIntervalMaxThreshold','wav49','outboundNoAnswerCallsDay','talking','dialAMDMaximumNumberOfWords','dialAMDTotalAnalysisTime','outboundCongestionCallsDay','predictiveIntervalAvgHoldtime','Interval','dialPredictiveOptimizationPercentage','pTalking','exports'];(function(_0x307af4,_0x4394db){const _0xddf57c=function(_0x53aca3){while(--_0x53aca3){_0x307af4['push'](_0x307af4['shift']());}};_0xddf57c(++_0x4394db);}(a1247_0xddf5,0xce));const a1247_0x53ac=function(_0x307af4,_0x4394db){_0x307af4=_0x307af4-0xf2;let _0xddf57c=a1247_0xddf5[_0x307af4];return _0xddf57c;};const a1247_0x404081=a1247_0x53ac;'use strict';const monitorFormat={'wav':'wav','wav49':a1247_0x404081(0x157),'gsm':a1247_0x404081(0x114)},strategy={'rrmemory':'rrmemory','roundrobin':'roundrobin'};function VoiceQueue(_0x212589){const _0x3c4dc7=a1247_0x404081;this['id']=_0x212589['id']||0x0,this['name']=_0x212589['name']||'',this['monitor_format']=_0x212589[_0x3c4dc7(0x117)]||'',this[_0x3c4dc7(0x14f)]=_0x212589[_0x3c4dc7(0x14f)]||_0x3c4dc7(0x130),this['waiting']=0x0,this[_0x3c4dc7(0x159)]=0x0,this[_0x3c4dc7(0x141)]=0x0,this['answered']=0x0,this[_0x3c4dc7(0x14e)]=0x0,this[_0x3c4dc7(0x137)]=0x0,this['sumBillable']=0x0,this[_0x3c4dc7(0x108)]=0x0,this['abandoned']=0x0,this[_0x3c4dc7(0x11e)]=0x0,this[_0x3c4dc7(0x148)]=0x0,this['acw']=_0x212589[_0x3c4dc7(0x14c)]||![],this[_0x3c4dc7(0x145)]=_0x212589[_0x3c4dc7(0x145)]||0xa,this['autopause']=_0x212589[_0x3c4dc7(0x101)]||'no',this[_0x3c4dc7(0x11d)]=!![],this[_0x3c4dc7(0x13c)]='',this[_0x3c4dc7(0x140)]=0x0,this['temp']=0x0,this['dialTimezone']=_0x212589['dialTimezone']||null,this['dialGlobalInterval']=_0x212589[_0x3c4dc7(0x107)]?_0x212589[_0x3c4dc7(0x107)]:null,this[_0x3c4dc7(0x154)]=_0x212589[_0x3c4dc7(0x154)],this[_0x3c4dc7(0x152)]=_0x212589[_0x3c4dc7(0x152)]||'progressive',this[_0x3c4dc7(0x13d)]=_0x212589[_0x3c4dc7(0x13d)]||0x0,this[_0x3c4dc7(0x112)]=_0x212589[_0x3c4dc7(0x112)]||0x0,this['dialPowerLevel']=_0x212589[_0x3c4dc7(0x10c)]||0x1,this[_0x3c4dc7(0xfb)]=_0x212589[_0x3c4dc7(0xfb)]||'dropRate',this[_0x3c4dc7(0xf5)]=_0x212589[_0x3c4dc7(0xf5)]||0.03,this[_0x3c4dc7(0x12f)]=_0x212589['dialPredictiveInterval']||0x258,this['dialOriginateCallerIdName']=_0x212589[_0x3c4dc7(0xfa)]||_0x3c4dc7(0x116),this[_0x3c4dc7(0x12d)]=_0x212589[_0x3c4dc7(0x12d)]||'anonymous',this[_0x3c4dc7(0x144)]=_0x212589['dialOriginateTimeout']||0x1e,this[_0x3c4dc7(0x127)]=_0x212589[_0x3c4dc7(0x127)]||'tTxX',this[_0x3c4dc7(0x11f)]=_0x212589[_0x3c4dc7(0x11f)]||0x3,this[_0x3c4dc7(0xf9)]=_0x212589[_0x3c4dc7(0xf9)]||undefined,this[_0x3c4dc7(0x14b)]=_0x212589[_0x3c4dc7(0x14b)]||0x3,this[_0x3c4dc7(0x118)]=_0x212589['dialCongestionRetryFrequency']||0x96,this[_0x3c4dc7(0x10a)]=_0x212589[_0x3c4dc7(0x10a)]||0x3,this['dialBusyRetryFrequency']=_0x212589[_0x3c4dc7(0x128)]||0x96,this['dialNoAnswerMaxRetry']=_0x212589[_0x3c4dc7(0x115)]||0x3,this[_0x3c4dc7(0x119)]=_0x212589['dialNoAnswerRetryFrequency']||0x96,this[_0x3c4dc7(0x151)]=_0x212589[_0x3c4dc7(0x151)]||0x3,this[_0x3c4dc7(0x136)]=_0x212589[_0x3c4dc7(0x136)]||0x96,this[_0x3c4dc7(0x125)]=_0x212589[_0x3c4dc7(0x125)]||0x3,this[_0x3c4dc7(0x124)]=_0x212589[_0x3c4dc7(0x124)]||0x96,this[_0x3c4dc7(0x139)]=_0x212589['dialAbandonedMaxRetry']||0x3,this[_0x3c4dc7(0x105)]=_0x212589[_0x3c4dc7(0x105)]||0x96,this[_0x3c4dc7(0x109)]=_0x212589[_0x3c4dc7(0x109)]||0x3,this[_0x3c4dc7(0x110)]=_0x212589[_0x3c4dc7(0x110)]||0x96,this[_0x3c4dc7(0x147)]=_0x212589['dialAgentRejectMaxRetry']||0x3,this[_0x3c4dc7(0x150)]=_0x212589[_0x3c4dc7(0x150)]||0x96,this['dialGlobalMaxRetry']=_0x212589[_0x3c4dc7(0x131)]||0x4,this[_0x3c4dc7(0x123)]=_0x212589[_0x3c4dc7(0x123)]?_0x212589[_0x3c4dc7(0x123)]:undefined,this[_0x3c4dc7(0xf8)]=_0x212589['TrunkBackup']?_0x212589[_0x3c4dc7(0xf8)]:undefined,this['dialPrefix']=_0x212589[_0x3c4dc7(0xfe)]||undefined,this['Interval']=_0x212589[_0x3c4dc7(0xf4)]?_0x212589[_0x3c4dc7(0xf4)]:undefined,this['dialOrderByScheduledAt']=_0x212589['dialOrderByScheduledAt']||_0x3c4dc7(0x12c),this[_0x3c4dc7(0x120)]=_0x212589['dialRandomLastDigitCallerIdNumber']||undefined,this[_0x3c4dc7(0x129)]=_0x212589[_0x3c4dc7(0x129)]||undefined,this['strategy']=strategy[_0x212589['strategy']]||_0x3c4dc7(0x10d),this['queueStatusComplete']=!![],this[_0x3c4dc7(0x113)]=_0x212589[_0x3c4dc7(0x113)]||![],this['dialAMDInitialSilence']=_0x212589[_0x3c4dc7(0x149)],this[_0x3c4dc7(0x13a)]=_0x212589[_0x3c4dc7(0x13a)],this[_0x3c4dc7(0x10f)]=_0x212589['dialAMDAfterGreetingSilence'],this[_0x3c4dc7(0x15b)]=_0x212589[_0x3c4dc7(0x15b)],this[_0x3c4dc7(0x153)]=_0x212589[_0x3c4dc7(0x153)],this[_0x3c4dc7(0x132)]=_0x212589[_0x3c4dc7(0x132)],this[_0x3c4dc7(0x15a)]=_0x212589['dialAMDMaximumNumberOfWords'],this[_0x3c4dc7(0x102)]=_0x212589[_0x3c4dc7(0x102)],this[_0x3c4dc7(0x126)]=_0x212589[_0x3c4dc7(0x126)],this['outboundRejectCallsDay']=0x0,this[_0x3c4dc7(0xf6)]=0x0,this[_0x3c4dc7(0x143)]=_0x212589['timeout'],this[_0x3c4dc7(0x13f)]=0x0,this[_0x3c4dc7(0x12e)]=0x0,this[_0x3c4dc7(0x158)]=0x0,this[_0x3c4dc7(0x13e)]=0x0,this[_0x3c4dc7(0xf2)]=0x0,this[_0x3c4dc7(0x155)]=0x0,this[_0x3c4dc7(0xfd)]=0x0,this[_0x3c4dc7(0x13b)]=0x0,this[_0x3c4dc7(0x12b)]=0x0,this[_0x3c4dc7(0x12a)]=0x0,this['outboundDropCallsDayTimeout']=0x0,this['outboundDropCallsDayACS']=0x0,this['outboundReCallsDay']=0x0,this[_0x3c4dc7(0xff)]=0x0,this[_0x3c4dc7(0x121)]=undefined,this[_0x3c4dc7(0xfc)]=undefined,this[_0x3c4dc7(0x14d)]=undefined,this[_0x3c4dc7(0x122)]=1.05,this['predictiveIntervalTotalCalls']=0x0,this[_0x3c4dc7(0x133)]=0x0,this[_0x3c4dc7(0x134)]=0x0,this[_0x3c4dc7(0x10b)]=0x0,this[_0x3c4dc7(0xf3)]=0x0,this[_0x3c4dc7(0x11c)]=0x0,this['predictiveIntervalPauses']=0x0,this['predictiveIntervalAvailable']=0x0,this[_0x3c4dc7(0x106)]=_0x212589[_0x3c4dc7(0x156)]||0x14,this[_0x3c4dc7(0x142)]=_0x212589[_0x3c4dc7(0x156)]||0xa,this[_0x3c4dc7(0x146)]=0x0,this[_0x3c4dc7(0x11a)]=0x0,this[_0x3c4dc7(0x11b)]=0x1,this['erlangCalls']=0x0,this[_0x3c4dc7(0x14a)]=0x0,this['erlangAbandonmentRate']=0x0,this['erlangBusyFactor']=0x0,this[_0x3c4dc7(0x103)]=_0x212589['dialRecallMeTimeout']||0x1e,this[_0x3c4dc7(0x111)]=_0x212589[_0x3c4dc7(0x111)]||![],this[_0x3c4dc7(0x10e)]=_0x212589[_0x3c4dc7(0x10e)]||undefined,this['dialAgiAfterHangupClient']=_0x212589[_0x3c4dc7(0x138)]||![],this[_0x3c4dc7(0x135)]=_0x212589['dialAgiAfterHangupAgent']||![],this['monitor_format']=monitorFormat[_0x212589[_0x3c4dc7(0x117)]]?monitorFormat[_0x212589[_0x3c4dc7(0x117)]]:undefined,this[_0x3c4dc7(0x104)]=_0x212589[_0x3c4dc7(0x104)]||![],this[_0x3c4dc7(0x100)]=_0x212589[_0x3c4dc7(0x100)]?_0x212589[_0x3c4dc7(0x100)]:undefined;}module[a1247_0x404081(0xf7)]=VoiceQueue; \ No newline at end of file diff --git a/server/services/ami/model/vtigerAccount.js b/server/services/ami/model/vtigerAccount.js index bd250e3..451bb3e 100644 --- a/server/services/ami/model/vtigerAccount.js +++ b/server/services/ami/model/vtigerAccount.js @@ -1 +1 @@ -var a1084_0x37d4=['name','remoteUri','username','accessKey','serverUrl','exports','Configurations'];(function(_0x277a8a,_0x37d456){var _0xb56935=function(_0x24e1bc){while(--_0x24e1bc){_0x277a8a['push'](_0x277a8a['shift']());}};_0xb56935(++_0x37d456);}(a1084_0x37d4,0x175));var a1084_0xb569=function(_0x277a8a,_0x37d456){_0x277a8a=_0x277a8a-0x0;var _0xb56935=a1084_0x37d4[_0x277a8a];return _0xb56935;};var _0x24fc60=a1084_0xb569;'use strict';function VtigerAccount(_0x24e1bc){var _0x428f0d=a1084_0xb569;this['id']=_0x24e1bc['id']||0x0,this['name']=_0x24e1bc[_0x428f0d('0x5')]||'',this[_0x428f0d('0x0')]=_0x24e1bc['username']||'',this[_0x428f0d('0x1')]=_0x24e1bc[_0x428f0d('0x1')]||'',this['remoteUri']=_0x24e1bc[_0x428f0d('0x6')]||'',this[_0x428f0d('0x2')]=_0x24e1bc[_0x428f0d('0x2')]||'',this[_0x428f0d('0x4')]=_0x24e1bc['Configurations']||{};}module[_0x24fc60('0x3')]=VtigerAccount; \ No newline at end of file +var a1248_0x2844=['Configurations','exports','remoteUri','serverUrl','accessKey','username','name'];(function(_0x1d86ca,_0x4c53cb){var _0x284473=function(_0x1fe073){while(--_0x1fe073){_0x1d86ca['push'](_0x1d86ca['shift']());}};_0x284473(++_0x4c53cb);}(a1248_0x2844,0xe7));var a1248_0x1fe0=function(_0x1d86ca,_0x4c53cb){_0x1d86ca=_0x1d86ca-0x123;var _0x284473=a1248_0x2844[_0x1d86ca];return _0x284473;};var a1248_0x380324=a1248_0x1fe0;'use strict';function VtigerAccount(_0x472074){var _0x3fb5f4=a1248_0x1fe0;this['id']=_0x472074['id']||0x0,this['name']=_0x472074[_0x3fb5f4(0x129)]||'',this[_0x3fb5f4(0x128)]=_0x472074[_0x3fb5f4(0x128)]||'',this[_0x3fb5f4(0x127)]=_0x472074['accessKey']||'',this[_0x3fb5f4(0x125)]=_0x472074[_0x3fb5f4(0x125)]||'',this['serverUrl']=_0x472074[_0x3fb5f4(0x126)]||'',this[_0x3fb5f4(0x123)]=_0x472074[_0x3fb5f4(0x123)]||{};}module[a1248_0x380324(0x124)]=VtigerAccount; \ No newline at end of file diff --git a/server/services/ami/model/zendeskAccount.js b/server/services/ami/model/zendeskAccount.js index c0833eb..3c67215 100644 --- a/server/services/ami/model/zendeskAccount.js +++ b/server/services/ami/model/zendeskAccount.js @@ -1 +1 @@ -var a1085_0x2fe3=['username','token','serverUrl','type','remoteUri','Configurations','authType','password','name','integrationTab'];(function(_0x165cf4,_0x2fe345){var _0x149d73=function(_0x1921c6){while(--_0x1921c6){_0x165cf4['push'](_0x165cf4['shift']());}};_0x149d73(++_0x2fe345);}(a1085_0x2fe3,0xec));var a1085_0x149d=function(_0x165cf4,_0x2fe345){_0x165cf4=_0x165cf4-0x0;var _0x149d73=a1085_0x2fe3[_0x165cf4];return _0x149d73;};'use strict';function ZendeskAccount(_0x1921c6){var _0x4992c9=a1085_0x149d;this['id']=_0x1921c6['id']||0x0,this['name']=_0x1921c6[_0x4992c9('0x2')]||'',this['username']=_0x1921c6[_0x4992c9('0x4')]||'',this[_0x4992c9('0x1')]=_0x1921c6[_0x4992c9('0x1')]||'',this[_0x4992c9('0x5')]=_0x1921c6[_0x4992c9('0x5')]||'',this[_0x4992c9('0x8')]=_0x1921c6[_0x4992c9('0x8')]||'',this[_0x4992c9('0x0')]=_0x1921c6[_0x4992c9('0x0')]||'',this[_0x4992c9('0x7')]=_0x1921c6['type']||_0x4992c9('0x3'),this[_0x4992c9('0x6')]=_0x1921c6[_0x4992c9('0x6')]||'',this['Configurations']=_0x1921c6[_0x4992c9('0x9')]||{};}module['exports']=ZendeskAccount; \ No newline at end of file +var a1249_0x3710=['type','token','remoteUri','serverUrl','name','exports','integrationTab','username','authType','password','Configurations'];(function(_0x209270,_0x56bc86){var _0x37103e=function(_0x3ddbfa){while(--_0x3ddbfa){_0x209270['push'](_0x209270['shift']());}};_0x37103e(++_0x56bc86);}(a1249_0x3710,0x1d3));var a1249_0x3ddb=function(_0x209270,_0x56bc86){_0x209270=_0x209270-0x7e;var _0x37103e=a1249_0x3710[_0x209270];return _0x37103e;};var a1249_0x5e6c5e=a1249_0x3ddb;'use strict';function ZendeskAccount(_0x73c414){var _0x14fa1d=a1249_0x3ddb;this['id']=_0x73c414['id']||0x0,this[_0x14fa1d(0x88)]=_0x73c414[_0x14fa1d(0x88)]||'',this[_0x14fa1d(0x80)]=_0x73c414[_0x14fa1d(0x80)]||'',this[_0x14fa1d(0x82)]=_0x73c414[_0x14fa1d(0x82)]||'',this[_0x14fa1d(0x85)]=_0x73c414[_0x14fa1d(0x85)]||'',this[_0x14fa1d(0x86)]=_0x73c414['remoteUri']||'',this[_0x14fa1d(0x81)]=_0x73c414[_0x14fa1d(0x81)]||'',this[_0x14fa1d(0x84)]=_0x73c414[_0x14fa1d(0x84)]||_0x14fa1d(0x7f),this[_0x14fa1d(0x87)]=_0x73c414[_0x14fa1d(0x87)]||'',this[_0x14fa1d(0x83)]=_0x73c414[_0x14fa1d(0x83)]||{};}module[a1249_0x5e6c5e(0x7e)]=ZendeskAccount; \ No newline at end of file diff --git a/server/services/ami/model/zohoAccount.js b/server/services/ami/model/zohoAccount.js index 7b5aaf9..3cd83b2 100644 --- a/server/services/ami/model/zohoAccount.js +++ b/server/services/ami/model/zohoAccount.js @@ -1 +1 @@ -var a1086_0x5e45=['serverUrl','clientSecret','zone','code','Configurations','clientId','host','description','name','refreshToken'];(function(_0x31f147,_0x5e45f2){var _0x265360=function(_0x504323){while(--_0x504323){_0x31f147['push'](_0x31f147['shift']());}};_0x265360(++_0x5e45f2);}(a1086_0x5e45,0x186));var a1086_0x2653=function(_0x31f147,_0x5e45f2){_0x31f147=_0x31f147-0x0;var _0x265360=a1086_0x5e45[_0x31f147];return _0x265360;};'use strict';function ZohoAccount(_0x504323){var _0x50e5b9=a1086_0x2653;this['id']=_0x504323['id']||0x0,this[_0x50e5b9('0x8')]=_0x504323[_0x50e5b9('0x8')]||'',this[_0x50e5b9('0x7')]=_0x504323[_0x50e5b9('0x7')]||'',this[_0x50e5b9('0x6')]=_0x504323[_0x50e5b9('0x6')]||'',this[_0x50e5b9('0x2')]=_0x504323[_0x50e5b9('0x2')]||'',this['clientId']=_0x504323[_0x50e5b9('0x5')]||'',this[_0x50e5b9('0x1')]=_0x504323[_0x50e5b9('0x1')]||'',this['serverUrl']=_0x504323[_0x50e5b9('0x0')]||'',this[_0x50e5b9('0x3')]=_0x504323[_0x50e5b9('0x3')]||'',this[_0x50e5b9('0x9')]=_0x504323[_0x50e5b9('0x9')]||'',this[_0x50e5b9('0x4')]=_0x504323['Configurations']||{};}module['exports']=ZohoAccount; \ No newline at end of file +var a1250_0x467c=['clientId','refreshToken','description','code','clientSecret','exports','name','host','Configurations','zone'];(function(_0x15320c,_0x5ba87b){var _0x467cc6=function(_0x3c8120){while(--_0x3c8120){_0x15320c['push'](_0x15320c['shift']());}};_0x467cc6(++_0x5ba87b);}(a1250_0x467c,0x11a));var a1250_0x3c81=function(_0x15320c,_0x5ba87b){_0x15320c=_0x15320c-0x18c;var _0x467cc6=a1250_0x467c[_0x15320c];return _0x467cc6;};var a1250_0x5c4a86=a1250_0x3c81;'use strict';function ZohoAccount(_0x22db6c){var _0x3d28a4=a1250_0x3c81;this['id']=_0x22db6c['id']||0x0,this[_0x3d28a4(0x190)]=_0x22db6c[_0x3d28a4(0x190)]||'',this[_0x3d28a4(0x18c)]=_0x22db6c[_0x3d28a4(0x18c)]||'',this[_0x3d28a4(0x191)]=_0x22db6c[_0x3d28a4(0x191)]||'',this[_0x3d28a4(0x193)]=_0x22db6c['zone']||'',this['clientId']=_0x22db6c[_0x3d28a4(0x194)]||'',this[_0x3d28a4(0x18e)]=_0x22db6c[_0x3d28a4(0x18e)]||'',this['serverUrl']=_0x22db6c['serverUrl']||'',this[_0x3d28a4(0x18d)]=_0x22db6c[_0x3d28a4(0x18d)]||'',this['refreshToken']=_0x22db6c[_0x3d28a4(0x195)]||'',this[_0x3d28a4(0x192)]=_0x22db6c[_0x3d28a4(0x192)]||{};}module[a1250_0x5c4a86(0x18f)]=ZohoAccount; \ No newline at end of file diff --git a/server/services/ami/preview/action.js b/server/services/ami/preview/action.js index f798fd4..4a050a3 100644 --- a/server/services/ami/preview/action.js +++ b/server/services/ami/preview/action.js @@ -1 +1 @@ -const a1087_0x544a=['getCaller','isNil','util','countagentrejectretry','countbusyretry','membername','format','lastName','countabandonedretry','originatecalleridname','recallme','type','countcongestionretry','campaigntype','channelAgent','ContactId','originatecalleridnum','UserId','string','lodash','firstName','countnoanswerretry','SIP/%s','active','dialAnswer','idContact','ListId','prototype','\x22%s\x22\x20<%s>','calleridname','Agent','queue','phone','callbackat','callbackuniqueid','scheduledat','callback','countnosuchnumberretry','countdropretry','VoiceQueueId','countmachineretry','calleridnum','Contact'];(function(_0x4c03a8,_0x544a9d){const _0x397bb3=function(_0xab1b3d){while(--_0xab1b3d){_0x4c03a8['push'](_0x4c03a8['shift']());}};_0x397bb3(++_0x544a9d);}(a1087_0x544a,0x67));const a1087_0x397b=function(_0x4c03a8,_0x544a9d){_0x4c03a8=_0x4c03a8-0x0;let _0x397bb3=a1087_0x544a[_0x4c03a8];return _0x397bb3;};const _0x3abe60=a1087_0x397b;'use strict';const util=require(_0x3abe60('0x1c')),_=require(_0x3abe60('0x2'));function checkNameSurname(_0xab1b3d,_0x38d003,_0x172e83){const _0x2c4e22=_0x3abe60;let _0x504290='';!_['isNil'](_0x38d003)&&_0x2c4e22('0x1')===typeof _0x38d003&&(_0x504290+=_0x38d003);!_[_0x2c4e22('0x1b')](_0x172e83)&&_0x2c4e22('0x1')===typeof _0x172e83&&(_0x504290+='\x20'+_0x172e83);if(_0x504290!=='')return _0x504290;return _0xab1b3d;}function Action(_0x19e684,_0x3a80a0,_0x36066d,_0x2914af){const _0x25da09=_0x3abe60;this['uniqueid']=_0x36066d||undefined,this[_0x25da09('0x8')]=_0x19e684['id'],this[_0x25da09('0xe')]=_0x3a80a0['name'],this[_0x25da09('0x25')]=_0x3a80a0[_0x25da09('0x25')],this[_0x25da09('0x27')]=_0x25da09('0xe'),this[_0x25da09('0x7')]=![],this['membername']=_[_0x25da09('0x1b')](_0x19e684[_0x25da09('0xd')])?undefined:_0x19e684['Agent']['name'],this[_0x25da09('0x28')]=this['membername']?util[_0x25da09('0x20')](_0x25da09('0x5'),this[_0x25da09('0x1f')]):_0x2914af||undefined,this[_0x25da09('0xc')]=checkNameSurname(_0x19e684[_0x25da09('0x19')][_0x25da09('0xf')],_0x19e684['Contact'][_0x25da09('0x3')],_0x19e684['Contact'][_0x25da09('0x21')]),this[_0x25da09('0x6')]=_0x19e684['active']||![],this[_0x25da09('0x18')]=_0x19e684[_0x25da09('0x19')]['phone'],this[_0x25da09('0x12')]=_0x19e684[_0x25da09('0x12')],this[_0x25da09('0x1e')]=_0x19e684['countbusyretry']||0x0,this[_0x25da09('0x26')]=_0x19e684[_0x25da09('0x26')]||0x0,this[_0x25da09('0x4')]=_0x19e684[_0x25da09('0x4')]||0x0,this['countglobal']=(_0x19e684[_0x25da09('0x1e')]||0x0)+(_0x19e684[_0x25da09('0x26')]||0x0)+(_0x19e684['countnoanswerretry']||0x0)+(_0x19e684[_0x25da09('0x14')]||0x0)+(_0x19e684[_0x25da09('0x15')]||0x0)+(_0x19e684[_0x25da09('0x22')]||0x0)+(_0x19e684[_0x25da09('0x17')]||0x0)+(_0x19e684[_0x25da09('0x1d')]||0x0),this[_0x25da09('0x14')]=_0x19e684[_0x25da09('0x14')]||0x0,this['countdropretry']=_0x19e684['countdropretry']||0x0,this['countabandonedretry']=_0x19e684[_0x25da09('0x22')]||0x0,this[_0x25da09('0x17')]=_0x19e684[_0x25da09('0x17')]||0x0,this['countagentrejectretry']=_0x19e684[_0x25da09('0x1d')]||0x0,this[_0x25da09('0x13')]=_0x19e684[_0x25da09('0x13')],this[_0x25da09('0x11')]=_0x19e684[_0x25da09('0x11')],this['callbackat']=_0x19e684[_0x25da09('0x10')],this[_0x25da09('0x24')]=_0x19e684[_0x25da09('0x24')],this[_0x25da09('0x29')]=_0x19e684[_0x25da09('0x29')],this[_0x25da09('0x9')]=_0x19e684['ListId'],this[_0x25da09('0x0')]=_['isNil'](_0x19e684[_0x25da09('0xd')])?_0x19e684['UserId']:_0x19e684[_0x25da09('0xd')]['id'],this[_0x25da09('0x16')]=_0x19e684[_0x25da09('0x16')],this[_0x25da09('0x2a')]='',this[_0x25da09('0x23')]='';}Action[_0x3abe60('0xa')][_0x3abe60('0x1a')]=function(){const _0xc48c1d=_0x3abe60;return util[_0xc48c1d('0x20')](_0xc48c1d('0xb'),this['calleridname'],this['number']);},module['exports']=Action; \ No newline at end of file +const a1251_0x1ac5=['countagentrejectretry','UserId','originatecalleridnum','countnosuchnumberretry','queue','originatecalleridname','format','active','countglobal','countcongestionretry','calleridname','channelAgent','name','ListId','countbusyretry','membername','VoiceQueueId','calleridnum','phone','recallme','countnoanswerretry','campaigntype','scheduledat','util','dialAnswer','idContact','getCaller','countmachineretry','countdropretry','string','ContactId','callbackuniqueid','Contact','uniqueid','number','firstName','SIP/%s','lastName','Agent','isNil','type','callbackat','callback','prototype'];(function(_0x50a8e9,_0x44bcf9){const _0x1ac552=function(_0x11e74d){while(--_0x11e74d){_0x50a8e9['push'](_0x50a8e9['shift']());}};_0x1ac552(++_0x44bcf9);}(a1251_0x1ac5,0x100));const a1251_0x11e7=function(_0x50a8e9,_0x44bcf9){_0x50a8e9=_0x50a8e9-0x160;let _0x1ac552=a1251_0x1ac5[_0x50a8e9];return _0x1ac552;};const a1251_0x409e2a=a1251_0x11e7;'use strict';const util=require(a1251_0x409e2a(0x17f)),_=require('lodash');function checkNameSurname(_0x23ae06,_0x5a3062,_0x27a3fe){const _0xbc692c=a1251_0x409e2a;let _0x4db02f='';!_[_0xbc692c(0x163)](_0x5a3062)&&_0xbc692c(0x185)===typeof _0x5a3062&&(_0x4db02f+=_0x5a3062);!_['isNil'](_0x27a3fe)&&_0xbc692c(0x185)===typeof _0x27a3fe&&(_0x4db02f+='\x20'+_0x27a3fe);if(_0x4db02f!=='')return _0x4db02f;return _0x23ae06;}function Action(_0x97a2d3,_0x2aa78c,_0x38ce46,_0x79ebad){const _0x5dd620=a1251_0x409e2a;this[_0x5dd620(0x189)]=_0x38ce46||undefined,this[_0x5dd620(0x181)]=_0x97a2d3['id'],this[_0x5dd620(0x16c)]=_0x2aa78c[_0x5dd620(0x174)],this[_0x5dd620(0x164)]=_0x2aa78c[_0x5dd620(0x164)],this[_0x5dd620(0x17d)]=_0x5dd620(0x16c),this[_0x5dd620(0x180)]=![],this['membername']=_[_0x5dd620(0x163)](_0x97a2d3[_0x5dd620(0x162)])?undefined:_0x97a2d3['Agent'][_0x5dd620(0x174)],this[_0x5dd620(0x173)]=this[_0x5dd620(0x177)]?util['format'](_0x5dd620(0x160),this['membername']):_0x79ebad||undefined,this[_0x5dd620(0x172)]=checkNameSurname(_0x97a2d3[_0x5dd620(0x188)][_0x5dd620(0x17a)],_0x97a2d3[_0x5dd620(0x188)][_0x5dd620(0x18b)],_0x97a2d3[_0x5dd620(0x188)][_0x5dd620(0x161)]),this[_0x5dd620(0x16f)]=_0x97a2d3[_0x5dd620(0x16f)]||![],this[_0x5dd620(0x179)]=_0x97a2d3[_0x5dd620(0x188)][_0x5dd620(0x17a)],this[_0x5dd620(0x17e)]=_0x97a2d3['scheduledat'],this[_0x5dd620(0x176)]=_0x97a2d3[_0x5dd620(0x176)]||0x0,this[_0x5dd620(0x171)]=_0x97a2d3['countcongestionretry']||0x0,this['countnoanswerretry']=_0x97a2d3['countnoanswerretry']||0x0,this[_0x5dd620(0x170)]=(_0x97a2d3[_0x5dd620(0x176)]||0x0)+(_0x97a2d3[_0x5dd620(0x171)]||0x0)+(_0x97a2d3[_0x5dd620(0x17c)]||0x0)+(_0x97a2d3[_0x5dd620(0x16b)]||0x0)+(_0x97a2d3[_0x5dd620(0x184)]||0x0)+(_0x97a2d3['countabandonedretry']||0x0)+(_0x97a2d3['countmachineretry']||0x0)+(_0x97a2d3[_0x5dd620(0x168)]||0x0),this['countnosuchnumberretry']=_0x97a2d3[_0x5dd620(0x16b)]||0x0,this[_0x5dd620(0x184)]=_0x97a2d3[_0x5dd620(0x184)]||0x0,this['countabandonedretry']=_0x97a2d3['countabandonedretry']||0x0,this[_0x5dd620(0x183)]=_0x97a2d3['countmachineretry']||0x0,this[_0x5dd620(0x168)]=_0x97a2d3[_0x5dd620(0x168)]||0x0,this[_0x5dd620(0x166)]=_0x97a2d3[_0x5dd620(0x166)],this[_0x5dd620(0x187)]=_0x97a2d3['callbackuniqueid'],this[_0x5dd620(0x165)]=_0x97a2d3[_0x5dd620(0x165)],this[_0x5dd620(0x17b)]=_0x97a2d3[_0x5dd620(0x17b)],this[_0x5dd620(0x186)]=_0x97a2d3[_0x5dd620(0x186)],this[_0x5dd620(0x175)]=_0x97a2d3['ListId'],this[_0x5dd620(0x169)]=_['isNil'](_0x97a2d3[_0x5dd620(0x162)])?_0x97a2d3[_0x5dd620(0x169)]:_0x97a2d3['Agent']['id'],this['VoiceQueueId']=_0x97a2d3[_0x5dd620(0x178)],this[_0x5dd620(0x16a)]='',this[_0x5dd620(0x16d)]='';}Action[a1251_0x409e2a(0x167)][a1251_0x409e2a(0x182)]=function(){const _0x57ccdd=a1251_0x409e2a;return util[_0x57ccdd(0x16e)]('\x22%s\x22\x20<%s>',this[_0x57ccdd(0x172)],this[_0x57ccdd(0x18a)]);},module['exports']=Action; \ No newline at end of file diff --git a/server/services/ami/preview/index.js b/server/services/ami/preview/index.js index 3700f73..e179314 100644 --- a/server/services/ami/preview/index.js +++ b/server/services/ami/preview/index.js @@ -1 +1 @@ -const a1088_0x6e8f=['predictiveIntervalErlangCalls','logger','BUSY','dialCongestionMaxRetry','unlockContact','getCallerIdRandom','length','\x20Trunk\x20Backup\x20is\x20not\x20active','busy','Abandoned','[syncHangup][talking][decrement]','[callProgressDetectingAgent]','Contact\x20in\x20black\x20List','getContactPreview','callProgressDetectingAgent','Trunk','originateresponse','tail','dialPrefix','createCustomerFinal','createBody','createAgentHistory','disableContact','active','startProgressive','[syncHangup][talking]','reason','syncNewExten','[callProgressDetectingCustomer][logNoAnswer]','[callProgressDetectingCustomer][logCongestion]','voiceQueues','dialCutDigit','dialNoSuchNumberRetryFrequency','type','available','custom:agentringnoanswer','updateOriginated','actions','dialBusyMaxRetry','dialOriginateCallerIdNumber','actionid','congestion','booked','NOANSWER','Interval','loggedInDb','AgentReject','loggedIn','outboundAnswerAgiCallsDay','outboundAbandonedCallsDay','emit','dialRecallInQueue','originated','paused','blindtransfer','dialAbandonedMaxRety','\x20is\x20not\x20active','AGENTS_NOT_LOGGED','syncOriginateResponse','sumBillable','countabandonedetry','predictiveIntervalMultiplicativeFactor','startPredictive','dialAgentRejectRetryFrequency','validateContact','getContactRecallMe','idContact','predictiveIntervalDroppedCallsTimeout','[originated][decrement][callProgressDetectingAgent]','clone','responsetime','Is\x20Valid','rescheduleContactInQueue','dialNoSuchNumberMaxRetry','execRun','[callProgressDetectingCustomer]','[Preview][validateContact][Trunk\x20not\x20work]','countabandonedretry','[CampaignPreview]\x20Campaign\x20Queue:\x20','isEmpty','clearZombieChannels','ANSWER','rescheduleContact','dialMethod','unlock','prototype','object','outboundDropCallsDayCallersExit','addVariables','[Preview][validateContact][Empty\x20Contact]','outboundRejectCallsDay','callProgressDetectingCustomer','Empty\x20Contact','ListId','sumDuration','preview','buildAcw','outboundNoSuchCallsDay','[16]','[clearZombieChannels][talking]','campaignsPreview','statedesc','custom:agentConnectPreview','outbound','channel','loopCampaigns','newexten','dialBusyRetryFrequency','dialRandomLastDigitCallerIdNumber','NoSuchNumber','dialAgentRejectMaxRetry','outboundUnknownCallsDay','isTrunkReachable','agents','countcongestionretry','TrunkBackup','[Dialer][checkChannel][pTalking][Preview]','[callProgressDetectingCustomer][logAgentReject]','outboundNoAnswerCallsDay','Agent','../../../config/logger','Global','dialQueueProject','NOT_ACTIVE','cause-txt','[callProgressDetectingCustomer][logAbandoned]','dialActive','IsNotLoggedIn','value','erlangCallToSecond','starttime','[callProgressDetectingCustomer][logNoSuchGlobal]','\x20Not\x20Active','countagentrejectretry','[originated][decrement][callProgressDetectingCustomer]','predictiveIntervalAvailable','scheduledAt','predictiveIntervalAnsweredCalls','execCall','VoiceQueueId','dialOriginateTimeout','[callProgressDetectingCustomer][logBusy]','NoAnswer','predictiveIntervalPauses','[syncHangup][talking][increment]','phone','originated:\x20','[syncVarSet][Preview]','[callProgressDetectingAgent][logBusy]','outboundOriginateFailureCallsDay','voice:queue:%s','\x20IdHopper:\x20','nosuchnumber','name','[RecallMe]','lodash','checkIsBlackList','rejected','destuniqueid','filterKey','Contact.phone','bind','enqueue','cause','strategy','exports','\x20Queue','status','size','lookAgent','voicePause','campaign\x20Name:\x20','pTalking','syncCampaigns','YYYY-MM-DD\x20HH:mm:ss','syncHangupRequest','actionPreview','Contact','logAgent','hanguprequest','talking','[callProgressDetectingCustomer][logUnknownGlobal]','IS_DISACTIVED','CONGESTION','format','\x20is\x20disactive','catch','varset','[callProgressDetectingAgent][logAnswerAGI]','channelstate','AnswerAGI','[callProgressDetectingCustomer][logCongestionGlobal]','custom:agentreject','recallme','dialend','Call\x20failed','[Dialer][decrementTalkink][no\x20Hangup][Preview]','[Dialer][checkChannel][Preview]','logCustomer','[callProgressDetectingAgent][logNoSuch]','transfer','syncBlindTransfer','agentReadyId','unmanaged','answered','[callProgressDetectingAgent][logCongestion]','Empty\x20Campaign','finally','recallMe','total','linkedid','keys','complete','[syncHangup][talking][transfer]','crateCustomerReportQueue','[syncHangupRequest][logAgentReject]','error','clearZombieChannel','trim','RecallInQueue','queue','clockClearZombieChannels','pick','[getContactRecallMe]','logger2','../../../rediscache','getDiff','destlinkedid','[Preview][validateContact][Campaign\x20Active]','buildObj','sequence','uniqueid','isNil','Queue','[Blacklist][error]','dialstatus','ACTIVE','syncHangup','outboundCongestionCallsDay','erlangBusyFactor','Calling','undefined','message','createHistory','reachable','outboundDropCallsDayACS','[HistoryRecallClose]','setMessage','countnoanswerretry','isUndefined','pTalking:\x20','TRUNK_IS_NOT_REACHABLE','[Preview][execCall][failure]','scheduledat','checkInBlack','dialAnswer','outboundBlacklistCallsDay','loggerError','info','extractCalleridName','dialOriginateCallerIdName','predictiveIntervalHitRate','outboundReCallsDay','Answer','addVariable','[clearZombieChannel]','syncDialEnd','originatecalleridnum','md5','CANCEL','\x20Trunk\x20is\x20not\x20active','attendedtransfer','then','agentreject','countbusyretry','abandoned','getCallerId','run','substring','variable','[default]','syncAttendedTransfer','[Preview][checkIsBlackList]','[callProgressDetectingCustomer][logUnknown]','unlockAgent','custom:agentcomplete','erlangCalls','trunks','custom:agentcalled','Contact\x20is\x20undefined','dialGlobalMaxRetry','talktime','outboundAnswerCallsDay','totalGlobal','countglobal','stringify','custom:agentcongestion','util','syncVarSet','createCustomerHistory','activeContact','variablesAction','Busy','callerid','[callProgressDetectingCustomer][logNoAnswerGlobal]','./rpcDb','outboundDropCallsDayTimeout','custom:agentnoanswer','decrementTalkink','cloneAction','[Preview][getContactPreview]','transfererlinkedid','SIP/%s','Action','[Preview][validateContact][Empty\x20Campaign]','Congestion','[syncHangup][talking][cause]','countnosuchnumberretry','variables','transfertargetlinkedid'];(function(_0x398cac,_0x6e8fc5){const _0x25e370=function(_0x4cd410){while(--_0x4cd410){_0x398cac['push'](_0x398cac['shift']());}};_0x25e370(++_0x6e8fc5);}(a1088_0x6e8f,0x16e));const a1088_0x25e3=function(_0x398cac,_0x6e8fc5){_0x398cac=_0x398cac-0x0;let _0x25e370=a1088_0x6e8f[_0x398cac];return _0x25e370;};const _0x205838=a1088_0x25e3;'use strict';const util=require(_0x205838('0xfb')),_=require(_0x205838('0x6d')),uuid=require('uuid'),moment=require('moment'),md5=require(_0x205838('0xde')),logger=require('../../../config/logger')(_0x205838('0x31')),loggerAction=require(_0x205838('0x4a'))(_0x205838('0x82')),ami=require('../ami'),rpcDb=require(_0x205838('0x103')),Action=require('./action'),ut=require('./util/util'),{getSocket}=require(_0x205838('0xb3')),io=getSocket(),Sequence=function(){};Sequence[_0x205838('0x27')][_0x205838('0x74')]=function(_0x4cd410){const _0x43b7e8=_0x205838;this[_0x43b7e8('0x123')]=this[_0x43b7e8('0x123')]?this[_0x43b7e8('0x123')][_0x43b7e8('0xa1')](_0x4cd410):_0x4cd410();};function Preview(_0x3de503){const _0x393749=_0x205838;this[_0x393749('0xb8')]=new Sequence(),this[_0x393749('0x36')]=_0x3de503[_0x393749('0x130')],this[_0x393749('0xf1')]=_0x3de503[_0x393749('0xf1')],this[_0x393749('0x137')]={},this['agents']=_0x3de503[_0x393749('0x43')],this[_0x393749('0xaf')]=0x0,ami['on'](_0x393749('0x122'),this[_0x393749('0xc')][_0x393749('0x73')](this)),ami['on']('hangup',this['syncHangup'][_0x393749('0x73')](this)),ami['on'](_0x393749('0x85'),this[_0x393749('0x81')][_0x393749('0x73')](this)),ami['on'](_0x393749('0x94'),this[_0x393749('0xdc')][_0x393749('0x73')](this)),ami['on'](_0x393749('0x3c'),this[_0x393749('0x12d')][_0x393749('0x73')](this)),ami['on'](_0x393749('0x8d'),this['syncVarSet']['bind'](this)),ami['on'](_0x393749('0xe1'),this['syncAttendedTransfer']['bind'](this)),ami['on'](_0x393749('0x8'),this[_0x393749('0x9b')]['bind'](this)),this[_0x393749('0x3b')](this[_0x393749('0x36')]);}function emit(_0x4bd5ca,_0x8a8d18,_0x49cf58){const _0x8bfb1d=_0x205838;io['to'](_0x4bd5ca)[_0x8bfb1d('0x4')](_0x8a8d18,_0x49cf58);}function emitCampaignPreview(_0x2e1f3b){const _0x161db4=_0x205838;if(_0x2e1f3b['type']===_0x161db4('0x39')){const _0x2132c8={'id':_0x2e1f3b['id'],'name':_0x2e1f3b[_0x161db4('0x6b')],'strategy':_0x2e1f3b[_0x161db4('0x76')],'answered':_0x2e1f3b[_0x161db4('0x9e')],'available':_0x2e1f3b[_0x161db4('0x134')],'loggedIn':_0x2e1f3b['loggedIn'],'pTalking':_0x2e1f3b[_0x161db4('0x7e')],'sumBillable':_0x2e1f3b[_0x161db4('0xd')],'sumDuration':_0x2e1f3b[_0x161db4('0x30')],'sumHoldTime':_0x2e1f3b['sumHoldTime']||0x0,'talking':_0x2e1f3b[_0x161db4('0x86')],'total':_0x2e1f3b[_0x161db4('0xa3')],'type':_0x2e1f3b[_0x161db4('0x133')],'unmanaged':_0x2e1f3b[_0x161db4('0x9d')],'abandoned':_0x2e1f3b[_0x161db4('0xe5')],'waiting':_0x2e1f3b['waiting'],'loggedInDb':_0x2e1f3b[_0x161db4('0x13f')],'dialActive':_0x2e1f3b['dialActive'],'dialMethod':_0x2e1f3b[_0x161db4('0x25')],'dialOriginateCallerIdName':_0x2e1f3b[_0x161db4('0xd6')],'dialOriginateCallerIdNumber':_0x2e1f3b[_0x161db4('0x139')],'dialOriginateTimeout':_0x2e1f3b[_0x161db4('0x5e')],'dialPrefix':_0x2e1f3b['dialPrefix'],'outboundAnswerAgiCallsDay':_0x2e1f3b[_0x161db4('0x2')],'outboundAnswerCallsDay':_0x2e1f3b[_0x161db4('0xf6')],'outboundBlacklistCallsDay':_0x2e1f3b[_0x161db4('0xd2')],'outboundBusyCallsDay':_0x2e1f3b['outboundBusyCallsDay'],'outboundCongestionCallsDay':_0x2e1f3b['outboundCongestionCallsDay'],'outboundDropCallsDayACS':_0x2e1f3b[_0x161db4('0xc7')],'outboundDropCallsDayCallersExit':_0x2e1f3b[_0x161db4('0x29')],'outboundDropCallsDayTimeout':_0x2e1f3b[_0x161db4('0x104')],'outboundNoAnswerCallsDay':_0x2e1f3b[_0x161db4('0x48')],'outboundNoSuchCallsDay':_0x2e1f3b[_0x161db4('0x33')],'outboundOriginateFailureCallsDay':_0x2e1f3b[_0x161db4('0x67')],'outboundReCallsDay':_0x2e1f3b[_0x161db4('0xd8')],'outboundRejectCallsDay':_0x2e1f3b[_0x161db4('0x2c')],'outboundUnknownCallsDay':_0x2e1f3b[_0x161db4('0x41')],'outboundAbandonedCallsDay':_0x2e1f3b[_0x161db4('0x3')],'predictiveIntervalAnsweredCalls':_0x2e1f3b[_0x161db4('0x5b')],'predictiveIntervalAvgHoldtime':_0x2e1f3b['predictiveIntervalAvgHoldtime'],'predictiveIntervalAvgTalktime':_0x2e1f3b['predictiveIntervalAvgTalktime'],'predictiveIntervalDroppedCallsCallersExit':_0x2e1f3b['predictiveIntervalDroppedCallsCallersExit'],'predictiveIntervalDroppedCallsTimeout':_0x2e1f3b[_0x161db4('0x15')],'predictiveIntervalErlangCalls':_0x2e1f3b[_0x161db4('0x112')],'predictiveIntervalErlangCallsDroppedCalls':_0x2e1f3b['predictiveIntervalErlangCallsDroppedCalls'],'predictiveIntervalHitRate':_0x2e1f3b[_0x161db4('0xd7')],'predictiveIntervalMultiplicativeFactor':_0x2e1f3b[_0x161db4('0xf')],'predictiveIntervalPauses':_0x2e1f3b[_0x161db4('0x61')],'predictiveIntervalAvailable':_0x2e1f3b[_0x161db4('0x59')],'predictiveIntervalTotalCalls':_0x2e1f3b['predictiveIntervalTotalCalls'],'message':_0x2e1f3b[_0x161db4('0xc4')],'originated':_0x2e1f3b[_0x161db4('0x6')],'erlangCalls':_0x2e1f3b[_0x161db4('0xf0')],'erlangCallToSecond':_0x2e1f3b[_0x161db4('0x53')],'erlangAbandonmentRate':_0x2e1f3b['erlangAbandonmentRate'],'erlangBusyFactor':_0x2e1f3b[_0x161db4('0xc1')],'startPredictive':_0x2e1f3b[_0x161db4('0x10')],'startProgressive':_0x2e1f3b[_0x161db4('0x12a')]};_0x2e1f3b[_0x161db4('0x121')]&&(_0x2132c8['Trunk']={'id':_0x2e1f3b[_0x161db4('0x121')]['id'],'name':_0x2e1f3b['Trunk'][_0x161db4('0x6b')],'active':_0x2e1f3b[_0x161db4('0x121')][_0x161db4('0x129')],'callerid':_0x2e1f3b[_0x161db4('0x121')]['callerid']});_0x2e1f3b[_0x161db4('0x13e')]&&(_0x2132c8[_0x161db4('0x13e')]={'id':_0x2e1f3b[_0x161db4('0x13e')]['id'],'name':_0x2e1f3b[_0x161db4('0x13e')][_0x161db4('0x6b')]});const _0x157365=md5(JSON[_0x161db4('0xf9')](_0x2132c8));_0x2e1f3b[_0x161db4('0xde')]!==_0x157365&&(_0x2e1f3b['md5']=_0x157365,emit(util[_0x161db4('0x8a')]('voice:queue:%s',_0x2132c8[_0x161db4('0x6b')]),'voice_queue:save',_0x2132c8));}}function emitVoiceQueueChannelRemove(_0x4445d4){const _0x3358fc=_0x205838;logger[_0x3358fc('0xd4')]('[DEBUG]\x20Emit\x20voice_queue_channel:remove\x20event',JSON[_0x3358fc('0xf9')](_0x4445d4)),emit(util[_0x3358fc('0x8a')](_0x3358fc('0x68'),_0x4445d4['name']),'voice_queue_channel:remove',_0x4445d4);}function notSendMessagesQueue(_0x489ea9){const _0x44570c=_0x205838;_0x489ea9['sendMessageOneNotActive']&&(_0x489ea9[_0x44570c('0x6')]===0x0&&_0x489ea9[_0x44570c('0x7e')]===0x0?(_0x489ea9['sendMessageOneNotActive']=![],_0x489ea9['available']=0x0,_0x489ea9[_0x44570c('0x7')]=0x0,_0x489ea9[_0x44570c('0xc4')]=_0x44570c('0x4d'),ut['logger'](_0x44570c('0x20'),_0x489ea9[_0x44570c('0x6b')]+_0x44570c('0xa'))):(_0x489ea9[_0x44570c('0xc4')]=_0x44570c('0x88'),ut[_0x44570c('0x113')](_0x44570c('0x20'),_0x489ea9[_0x44570c('0x6b')]+_0x44570c('0x8b'))),emitCampaignPreview(_0x489ea9));}Preview[_0x205838('0x27')][_0x205838('0x3b')]=function(){const _0x15ccaa=this;setInterval(function(){const _0x1636bd=a1088_0x25e3;_0x15ccaa[_0x1636bd('0x7f')]();},0x7cf);},Preview[_0x205838('0x27')][_0x205838('0x7f')]=function(){const _0x6343c5=_0x205838,_0x5c48ea=this['campaignsPreview'];this[_0x6343c5('0xaf')]+=0x1;for(const _0x508267 in _0x5c48ea){typeof _0x5c48ea[_0x508267]!==_0x6343c5('0xc3')&&(_0x5c48ea[_0x508267][_0x6343c5('0x25')]==='preview'||_0x5c48ea[_0x508267][_0x6343c5('0x25')]===_0x6343c5('0x13c'))&&_0x5c48ea[_0x508267][_0x6343c5('0x133')]===_0x6343c5('0x39')&&(this[_0x6343c5('0xaf')]>0x7&&(this[_0x6343c5('0xaf')]=0x0,this[_0x6343c5('0x22')]())),typeof _0x5c48ea[_0x508267]!==_0x6343c5('0xc3')&&_0x5c48ea[_0x508267]['dialMethod']==='preview'&&_0x5c48ea[_0x508267][_0x6343c5('0x133')]===_0x6343c5('0x39')&&(_0x5c48ea[_0x508267]['dialActive']?(this[_0x6343c5('0xc9')](_0x5c48ea[_0x508267]),this[_0x6343c5('0xa2')](_0x5c48ea[_0x508267])):notSendMessagesQueue(_0x5c48ea[_0x508267]));}},Preview[_0x205838('0x27')][_0x205838('0xab')]=function(_0x5beb0c){const _0x16214e=this;this['sequence']['enqueue'](function(){const _0x1b48ac=a1088_0x25e3;if(!_[_0x1b48ac('0xba')](_0x16214e['actions'][_0x5beb0c]))return loggerAction[_0x1b48ac('0xd4')](_0x1b48ac('0x35'),_0x5beb0c,'Queue',_0x16214e[_0x1b48ac('0x137')][_0x5beb0c]['queue'],_0x1b48ac('0x64'),JSON[_0x1b48ac('0xf9')](_0x16214e[_0x1b48ac('0x36')][_0x16214e[_0x1b48ac('0x137')][_0x5beb0c]['queue']][_0x1b48ac('0x6')]),_0x1b48ac('0xcc'),JSON[_0x1b48ac('0xf9')](_0x16214e[_0x1b48ac('0x36')][_0x16214e[_0x1b48ac('0x137')][_0x5beb0c][_0x1b48ac('0xae')]][_0x1b48ac('0x7e')]),JSON[_0x1b48ac('0xf9')](_0x16214e[_0x1b48ac('0x137')][_0x5beb0c][_0x1b48ac('0xd1')]),JSON['stringify'](_[_0x1b48ac('0xb0')](_0x16214e[_0x1b48ac('0x137')][_0x5beb0c],['contactId','UserId',_0x1b48ac('0x5d'),_0x1b48ac('0x2f')]))),ami[_0x1b48ac('0x10b')]({'action':_0x1b48ac('0x79'),'channel':_0x16214e['actions'][_0x5beb0c][_0x1b48ac('0x3a')]})[_0x1b48ac('0x8c')](function(_0x56e6e8){const _0x420fd4=_0x1b48ac;_0x56e6e8[_0x420fd4('0xc4')]==='No\x20such\x20channel'&&setTimeout(function(){const _0x577ee2=_0x420fd4;_0x16214e[_0x577ee2('0x137')][_0x5beb0c]&&(ut[_0x577ee2('0x136')](_0x16214e[_0x577ee2('0x36')][_0x16214e[_0x577ee2('0x137')][_0x5beb0c][_0x577ee2('0xae')]],_0x577ee2('0xdb')),_0x16214e[_0x577ee2('0x137')][_0x5beb0c][_0x577ee2('0xd1')]===!![]&&(ut[_0x577ee2('0x106')](_0x16214e['campaignsPreview'][_0x16214e[_0x577ee2('0x137')][_0x5beb0c][_0x577ee2('0xae')]],'[clearZombieChannel]'),ut[_0x577ee2('0xd3')](_0x577ee2('0x46')+_0x5beb0c,_0x16214e[_0x577ee2('0x137')][_0x5beb0c][_0x577ee2('0xae')])),ut['loggerError'](_0x577ee2('0x97')+_0x5beb0c,_0x16214e['actions'][_0x5beb0c][_0x577ee2('0xae')]),delete _0x16214e[_0x577ee2('0x137')][_0x5beb0c]);},0x2328);});});},Preview['prototype']['clearZombieChannels']=function(){const _0x3f033b=_0x205838,_0x53e497=this;loggerAction[_0x3f033b('0xd4')]('[action]',_[_0x3f033b('0x7a')](this[_0x3f033b('0x137')]));for(const _0xce6ff1 in this[_0x3f033b('0x137')]){typeof _0x53e497['actions'][_0xce6ff1]!==_0x3f033b('0xc3')&&_0x53e497[_0x3f033b('0xab')](_0xce6ff1);}},Preview['prototype'][_0x205838('0xa2')]=function(_0x24bfde){const _0x1e2895=_0x205838,_0x15d698=this;rpcDb[_0x1e2895('0x13')](_0x24bfde['id'],ut[_0x1e2895('0x9c')](this[_0x1e2895('0x43')]))[_0x1e2895('0xe2')](function(_0x45db5d){const _0x3f7d94=_0x1e2895;if(!_[_0x3f7d94('0xba')](_0x45db5d))for(let _0x35a0c4=0x0;_0x35a0c4<_0x45db5d[_0x3f7d94('0x118')];_0x35a0c4+=0x1){if(ut[_0x3f7d94('0xb4')](_0x45db5d[_0x35a0c4][_0x3f7d94('0xcf')])<_0x24bfde['dialRecallMeTimeout']*0x3c)_0x45db5d[_0x35a0c4][_0x3f7d94('0x49')]&&!_0x45db5d[_0x35a0c4][_0x3f7d94('0x49')][_0x3f7d94('0x7c')]?_0x15d698[_0x3f7d94('0xe7')](_0x45db5d[_0x35a0c4]['id'])[_0x3f7d94('0xe2')](ut['logger2'](_0x3f7d94('0x6c')))[_0x3f7d94('0x8c')](ut['logger2'](_0x3f7d94('0x6c'))):rpcDb['disableContact'](_0x45db5d[_0x35a0c4]['id']);else{const _0x2f5731=new Action(_0x45db5d[_0x35a0c4],_0x24bfde);_0x2f5731[_0x3f7d94('0x54')]=moment()[_0x3f7d94('0x8a')](_0x3f7d94('0x80')),_0x24bfde[_0x3f7d94('0xd8')]+=0x1,ut[_0x3f7d94('0x98')](_0x2f5731,0x17,_0x3f7d94('0xad')),_0x24bfde[_0x3f7d94('0x5')]?(rpcDb[_0x3f7d94('0x1a')](ut[_0x3f7d94('0x126')](_0x45db5d[_0x35a0c4])),rpcDb[_0x3f7d94('0xfd')](_0x2f5731,'[HistoryDialRecallInQueue][historyCatch]')):(ut['logCustomer'](_0x2f5731,0x16,'RecallFailedTimeout'),rpcDb[_0x3f7d94('0xfd')](_0x2f5731,_0x3f7d94('0xc8')),rpcDb[_0x3f7d94('0x125')](_0x2f5731,_0x3f7d94('0xc8')));}}})[_0x1e2895('0x8c')](ut[_0x1e2895('0xb2')](_0x1e2895('0xb1')));},Preview['prototype']['setMessage']=function(_0x3b6ed6){const _0x2ddc47=_0x205838;_0x3b6ed6['sendMessageOneNotActive']=!![];if(ut[_0x2ddc47('0x51')](_0x3b6ed6[_0x2ddc47('0x1')]))_0x3b6ed6[_0x2ddc47('0xc4')]=_0x2ddc47('0xb');else{if(!ut['isActive'](_0x3b6ed6[_0x2ddc47('0x50')]))_0x3b6ed6[_0x2ddc47('0xc4')]=_0x2ddc47('0x4d');else!this[_0x2ddc47('0x42')](_0x3b6ed6[_0x2ddc47('0x121')])?!this[_0x2ddc47('0x42')](_0x3b6ed6[_0x2ddc47('0x45')])?_0x3b6ed6[_0x2ddc47('0xc4')]=_0x2ddc47('0xcd'):_0x3b6ed6['message']=_0x2ddc47('0xbe'):_0x3b6ed6['message']='ACTIVE';}emitCampaignPreview(_0x3b6ed6);},Preview[_0x205838('0x27')]['callProgressDetectingCustomer']=function(_0x6cc5a7,_0x23540f,_0x407a7d){const _0x5eda3b=_0x205838,_0xe7adb6=this[_0x5eda3b('0x137')][_0x23540f],_0xc2065e=this[_0x5eda3b('0x36')][_0xe7adb6[_0x5eda3b('0xae')]];let _0x243253;if(_0xc2065e){switch(_0x407a7d){case'1':_0xc2065e[_0x5eda3b('0x33')]+=0x1,_0xe7adb6['countnosuchnumberretry']+=0x1,_0xe7adb6[_0x5eda3b('0xf8')]=ut[_0x5eda3b('0xf7')](_0xe7adb6),ut[_0x5eda3b('0x98')](_0xe7adb6,0x0,_0x5eda3b('0x3f')),ami['emit']('custom:agentnosuchnumber',ut[_0x5eda3b('0xb7')](_0xe7adb6,_0x5eda3b('0x6a'))),rpcDb[_0x5eda3b('0xfd')](_0xe7adb6,'[callProgressDetectingCustomer][logNoSuch]');ut[_0x5eda3b('0xf7')](_0xe7adb6)>=_0xc2065e['dialGlobalMaxRetry']?(_0x243253=ut['cloneAction'](_0xe7adb6,0xf,_0x5eda3b('0x4b')),rpcDb['createCustomerFinal'](_0x243253,_0x5eda3b('0x55'))):_0xe7adb6['countnosuchnumberretry']>=_0xc2065e[_0x5eda3b('0x1b')]?rpcDb[_0x5eda3b('0x125')](_0xe7adb6,_0x5eda3b('0x55')):rpcDb[_0x5eda3b('0x24')](ut[_0x5eda3b('0x5a')](_0xe7adb6,_0x5eda3b('0x10f'),_0xc2065e[_0x5eda3b('0x132')]),_0xe7adb6['unlockAgent'],_0xe7adb6[_0x5eda3b('0xfe')]);delete this[_0x5eda3b('0x137')][_0x6cc5a7[_0x5eda3b('0xa4')]];break;case'ANSWER':{const _0x160da6=moment()[_0x5eda3b('0x8a')](_0x5eda3b('0x80'));_0xe7adb6['responsetime']=_0x160da6,_0xe7adb6['answertime']=_0x160da6,_0xe7adb6[_0x5eda3b('0xd1')]=!![],_0xc2065e[_0x5eda3b('0x7e')]+=0x1,logger[_0x5eda3b('0xd4')](_0x5eda3b('0x62'),_0xe7adb6[_0x5eda3b('0xb9')],_0x5eda3b('0x78'),_0xc2065e[_0x5eda3b('0x6b')],_0x5eda3b('0xcc'),_0xc2065e[_0x5eda3b('0x7e')]),ami[_0x5eda3b('0x4')]('custom:agentconnect',ut[_0x5eda3b('0xb7')](_0xe7adb6,'connect',this[_0x5eda3b('0x36')][_0xe7adb6['queue']])),_0xc2065e['acw']&&ami[_0x5eda3b('0x4')](_0x5eda3b('0x38'),ut[_0x5eda3b('0x32')](_0xe7adb6));}break;case'16':ami[_0x5eda3b('0x4')](_0x5eda3b('0xef'),ut[_0x5eda3b('0xb7')](_0xe7adb6,'complete',this[_0x5eda3b('0x36')][_0xe7adb6['queue']])),emitVoiceQueueChannelRemove(ut[_0x5eda3b('0xb7')](_0xe7adb6,_0x5eda3b('0xa6'))),_0xc2065e[_0x5eda3b('0xf6')]+=0x1,_0xc2065e[_0x5eda3b('0xa3')]+=0x1,_0xc2065e[_0x5eda3b('0x9e')]+=0x1,ut[_0x5eda3b('0x106')](_0xc2065e,_0x5eda3b('0x34')),_0xe7adb6['countglobal']=ut[_0x5eda3b('0xf7')](_0xe7adb6),ut[_0x5eda3b('0x98')](_0xe7adb6,0x4,_0x5eda3b('0xd9')),rpcDb[_0x5eda3b('0xfd')](_0xe7adb6,'[callProgressDetectingCustomer][logAnswer]'),rpcDb[_0x5eda3b('0x125')](_0xe7adb6,'[callProgressDetectingCustomer][logAnswerGlobal]'),rpcDb[_0x5eda3b('0xa8')](_0xe7adb6),_0xc2065e[_0x5eda3b('0x30')]+=_0xe7adb6[_0x5eda3b('0xf5')],_0xc2065e[_0x5eda3b('0xd')]+=_0xe7adb6[_0x5eda3b('0xf5')],logger[_0x5eda3b('0xd4')](_0x5eda3b('0x11c'),_0xe7adb6[_0x5eda3b('0xb9')],'\x20Queue',_0xc2065e[_0x5eda3b('0x6b')],_0x5eda3b('0xcc'),_0xc2065e['pTalking']),delete this[_0x5eda3b('0x137')][_0x6cc5a7['linkedid']];break;case _0x5eda3b('0x114'):_0xc2065e['outboundBusyCallsDay']+=0x1,_0xe7adb6[_0x5eda3b('0xe4')]+=0x1,_0xe7adb6[_0x5eda3b('0xf8')]=ut[_0x5eda3b('0xf7')](_0xe7adb6),ut[_0x5eda3b('0x98')](_0xe7adb6,0x5,_0x5eda3b('0x100')),ami[_0x5eda3b('0x4')]('custom:agentbusy',ut[_0x5eda3b('0xb7')](_0xe7adb6,_0x5eda3b('0x11a'))),rpcDb[_0x5eda3b('0xfd')](_0xe7adb6,_0x5eda3b('0x5f'));ut['totalGlobal'](_0xe7adb6)>=_0xc2065e['dialGlobalMaxRetry']?(_0x243253=ut[_0x5eda3b('0x107')](_0xe7adb6,0xf,_0x5eda3b('0x4b')),rpcDb[_0x5eda3b('0x125')](_0x243253,'[callProgressDetectingCustomer][logBusyGlobal]')):_0xe7adb6['countbusyretry']>=_0xc2065e[_0x5eda3b('0x138')]?rpcDb['createCustomerFinal'](_0xe7adb6,_0x5eda3b('0x5f')):rpcDb[_0x5eda3b('0x24')](ut[_0x5eda3b('0x5a')](_0xe7adb6,_0x5eda3b('0xe4'),_0xc2065e[_0x5eda3b('0x3d')]),_0xe7adb6[_0x5eda3b('0xee')],_0xe7adb6[_0x5eda3b('0xfe')]);break;case _0x5eda3b('0x13d'):_0xc2065e['outboundNoAnswerCallsDay']+=0x1,_0xe7adb6[_0x5eda3b('0xca')]+=0x1,_0xe7adb6[_0x5eda3b('0xf8')]=ut[_0x5eda3b('0xf7')](_0xe7adb6),ut[_0x5eda3b('0x98')](_0xe7adb6,0x3,_0x5eda3b('0x60')),ami[_0x5eda3b('0x4')](_0x5eda3b('0x105'),ut[_0x5eda3b('0xb7')](_0xe7adb6,'noanswer')),rpcDb['createCustomerHistory'](_0xe7adb6,_0x5eda3b('0x12e'));ut['totalGlobal'](_0xe7adb6)>=_0xc2065e[_0x5eda3b('0xf4')]?(_0x243253=ut['cloneAction'](_0xe7adb6,0xf,_0x5eda3b('0x4b')),rpcDb['createCustomerFinal'](_0x243253,_0x5eda3b('0x102'))):_0xe7adb6[_0x5eda3b('0xca')]>=_0xc2065e['dialNoAnswerMaxRetry']?rpcDb['createCustomerFinal'](_0xe7adb6,'[callProgressDetectingCustomer][logNoAnswer]'):rpcDb[_0x5eda3b('0x24')](ut[_0x5eda3b('0x5a')](_0xe7adb6,_0x5eda3b('0xca'),_0xc2065e['dialNoAnswerRetryFrequency']),_0xe7adb6[_0x5eda3b('0xee')],_0xe7adb6[_0x5eda3b('0xfe')]);break;case _0x5eda3b('0x89'):_0xc2065e[_0x5eda3b('0xc0')]+=0x1,_0xe7adb6[_0x5eda3b('0x44')]+=0x1,_0xe7adb6[_0x5eda3b('0xf8')]=ut[_0x5eda3b('0xf7')](_0xe7adb6),ut[_0x5eda3b('0x98')](_0xe7adb6,0x8,_0x5eda3b('0x10d')),ami[_0x5eda3b('0x4')](_0x5eda3b('0xfa'),ut[_0x5eda3b('0xb7')](_0xe7adb6,_0x5eda3b('0x13b'))),rpcDb[_0x5eda3b('0xfd')](_0xe7adb6,_0x5eda3b('0x12f'));ut[_0x5eda3b('0xf7')](_0xe7adb6)>=_0xc2065e['dialGlobalMaxRetry']?(_0x243253=ut[_0x5eda3b('0x107')](_0xe7adb6,0xf,_0x5eda3b('0x4b')),rpcDb[_0x5eda3b('0x125')](_0x243253,_0x5eda3b('0x91'))):_0xe7adb6[_0x5eda3b('0x44')]>=_0xc2065e[_0x5eda3b('0x115')]?rpcDb['createCustomerFinal'](_0xe7adb6,_0x5eda3b('0x12f')):rpcDb['rescheduleContact'](ut[_0x5eda3b('0x5a')](_0xe7adb6,_0x5eda3b('0x44'),_0xc2065e[_0x5eda3b('0x3d')]),_0xe7adb6[_0x5eda3b('0xee')],_0xe7adb6[_0x5eda3b('0xfe')]);break;case _0x5eda3b('0xdf'):_0xc2065e[_0x5eda3b('0x2c')]+=0x1,_0xe7adb6[_0x5eda3b('0x57')]+=0x1,_0xe7adb6[_0x5eda3b('0xf8')]=ut[_0x5eda3b('0xf7')](_0xe7adb6),ut['logCustomer'](_0xe7adb6,0x14,'AgentReject'),ami['emit'](_0x5eda3b('0x92'),ut[_0x5eda3b('0xb7')](_0xe7adb6,_0x5eda3b('0xe3'))),rpcDb[_0x5eda3b('0xfd')](_0xe7adb6,_0x5eda3b('0xa9'));ut[_0x5eda3b('0xf7')](_0xe7adb6)>=_0xc2065e[_0x5eda3b('0xf4')]?(_0x243253=ut[_0x5eda3b('0x107')](_0xe7adb6,0x14,_0x5eda3b('0x0')),rpcDb[_0x5eda3b('0x125')](_0x243253,_0x5eda3b('0x47'))):_0xe7adb6[_0x5eda3b('0x57')]>=_0xc2065e[_0x5eda3b('0x40')]?rpcDb[_0x5eda3b('0x125')](_0xe7adb6,_0x5eda3b('0x47')):rpcDb[_0x5eda3b('0x24')](ut[_0x5eda3b('0x5a')](_0xe7adb6,_0x5eda3b('0x57'),_0xc2065e[_0x5eda3b('0x11')]),_0xe7adb6[_0x5eda3b('0xee')],_0xe7adb6[_0x5eda3b('0xfe')]);break;case'ABANDONED':_0xc2065e[_0x5eda3b('0x3')]+=0x1,_0xe7adb6['countabandonedretry']+=0x1,_0xe7adb6['countglobal']=ut[_0x5eda3b('0xf7')](_0xe7adb6),ut[_0x5eda3b('0x98')](_0xe7adb6,0xb,_0x5eda3b('0x11b')),rpcDb['createCustomerHistory'](_0xe7adb6,_0x5eda3b('0x4f'));ut['totalGlobal'](_0xe7adb6)>=_0xc2065e[_0x5eda3b('0xf4')]?(_0x243253=ut[_0x5eda3b('0x107')](_0xe7adb6,0xf,_0x5eda3b('0x4b')),rpcDb[_0x5eda3b('0x125')](_0x243253,_0x5eda3b('0x4f'))):_0xe7adb6[_0x5eda3b('0xe')]>=_0xc2065e[_0x5eda3b('0x9')]?rpcDb[_0x5eda3b('0x125')](_0xe7adb6,_0x5eda3b('0x4f')):rpcDb[_0x5eda3b('0x24')](ut[_0x5eda3b('0x5a')](_0xe7adb6,_0x5eda3b('0x1f'),_0xc2065e['dialAbandonedRetryFrequency']),_0xe7adb6[_0x5eda3b('0xee')],_0xe7adb6['activeContact']);break;default:_0xe7adb6[_0x5eda3b('0xd1')]&&(ut['decrementTalkink'](_0xc2065e,_0x5eda3b('0xea')),ut[_0x5eda3b('0xd3')](_0x5eda3b('0x96')+_0xc2065e['name'],_0x6cc5a7));_0xc2065e[_0x5eda3b('0x41')]+=0x1,_0xe7adb6[_0x5eda3b('0xf8')]=ut[_0x5eda3b('0xf7')](_0xe7adb6),ut[_0x5eda3b('0x98')](_0xe7adb6,0xc,_0x6cc5a7[_0x5eda3b('0x4e')]||_0x6cc5a7[_0x5eda3b('0xbd')]),rpcDb[_0x5eda3b('0xfd')](_0xe7adb6,_0x5eda3b('0xed'));ut[_0x5eda3b('0xf7')](_0xe7adb6)>=_0xc2065e[_0x5eda3b('0xf4')]?(_0x243253=ut[_0x5eda3b('0x107')](_0xe7adb6,0xf,_0x5eda3b('0x4b')),rpcDb[_0x5eda3b('0x125')](_0x243253,_0x5eda3b('0x87'))):rpcDb[_0x5eda3b('0x125')](_0xe7adb6,_0x5eda3b('0x87'));delete this[_0x5eda3b('0x137')][_0x6cc5a7[_0x5eda3b('0xa4')]];}!(_0xe7adb6[_0x5eda3b('0xd1')]&&_0x407a7d==='16')&&(ut[_0x5eda3b('0x136')](_0xc2065e,_0x5eda3b('0x1d')),logger[_0x5eda3b('0xd4')](_0x5eda3b('0x58'),_0xe7adb6[_0x5eda3b('0xb9')],_0x5eda3b('0x78'),_0xc2065e[_0x5eda3b('0x6b')],_0x5eda3b('0x64'),_0xc2065e['originated'])),_0x407a7d!==_0x5eda3b('0x23')&&(delete this[_0x5eda3b('0x137')][_0x6cc5a7[_0x5eda3b('0xa4')]],delete this['actions'][_0x6cc5a7[_0x5eda3b('0xb5')]]);}},Preview[_0x205838('0x27')][_0x205838('0x120')]=function(_0x49fd1c,_0x538e30,_0x406c7c){const _0x385cce=_0x205838;if(_[_0x385cce('0xcb')](_0x538e30)&&_0x385cce('0x28')!==typeof _0x538e30)return;if(_[_0x385cce('0xcb')](_0x406c7c)&&_0x385cce('0x28')!==typeof _0x406c7c)return;switch(_0x406c7c[_0x385cce('0x12c')]){case'0':ut[_0x385cce('0x84')](_0x49fd1c,0x0,_0x385cce('0x3f')),rpcDb[_0x385cce('0x127')](_0x49fd1c,_0x385cce('0x99'));break;case'3':ut[_0x385cce('0x84')](_0x49fd1c,0x3,_0x385cce('0x60')),rpcDb[_0x385cce('0x127')](_0x49fd1c,'[callProgressDetectingAgent][logNoAnswer]');break;case'5':ut[_0x385cce('0x84')](_0x49fd1c,0x5,_0x385cce('0x100')),rpcDb['createAgentHistory'](_0x49fd1c,_0x385cce('0x66'));break;case'8':ut[_0x385cce('0x84')](_0x49fd1c,0x8,_0x385cce('0x10d')),rpcDb['createAgentHistory'](_0x49fd1c,_0x385cce('0x9f'));break;case'22':ut['logAgent'](_0x49fd1c,0x16,_0x385cce('0x90')),rpcDb['createAgentHistory'](_0x49fd1c,_0x385cce('0x8e'));break;default:ut[_0x385cce('0x84')](_0x49fd1c,0xc,_0x406c7c['reason']),rpcDb['createAgentHistory'](_0x49fd1c,_0x385cce('0x9f'));}ut['updateOriginated'](_0x538e30,_0x385cce('0x11d')),logger[_0x385cce('0xd4')](_0x385cce('0x16'),_0x49fd1c[_0x385cce('0xb9')],_0x385cce('0x78'),_0x538e30['name'],_0x385cce('0x64'),_0x538e30[_0x385cce('0x6')]),delete this['actions'][_0x49fd1c[_0x385cce('0xb9')]];},Preview[_0x205838('0x27')]['checkInBlack']=function(_0x467539,_0x2a9d27,_0x41e567,_0x4303ce,_0x449e0b){const _0x5513c8=this;return new Promise(function(_0x1a1bbd,_0x1fe059){const _0x392bf0=a1088_0x25e3;if(_[_0x392bf0('0xba')](_0x2a9d27)||_[_0x392bf0('0xba')](_0x2a9d27[_0x392bf0('0x83')])||_[_0x392bf0('0xba')](_0x2a9d27[_0x392bf0('0x83')][_0x392bf0('0x63')])||_[_0x392bf0('0xba')](_0x2a9d27[_0x392bf0('0x5d')])){_0x1fe059(ut[_0x392bf0('0xc4')](_0x392bf0('0xf3'),_0x4303ce,_0x449e0b));return;}const _0xb58147=uuid['v4'](),_0x2742eb=_0x5513c8[_0x392bf0('0x36')][_0x2a9d27[_0x392bf0('0xbb')]['name']],_0x33c72f=_0x41e567?_0x5513c8[_0x392bf0('0x43')][_0x41e567]['id']:undefined;_0x5513c8[_0x392bf0('0x137')][_0xb58147]=new Action(_0x2a9d27,_0x2742eb,_0xb58147,_0x41e567,_0x33c72f);const _0x382537=_0x5513c8['actions'][_0xb58147];_0x382537['unlockAgent']=_0x4303ce,_0x382537[_0x392bf0('0xfe')]=_0x449e0b,_0x382537[_0x392bf0('0x7b')]=_0x41e567,_[_0x392bf0('0x21')](_0x467539)?_0x5513c8[_0x392bf0('0x5c')](_0x382537,_0x2742eb,_0x2a9d27,_0x41e567)[_0x392bf0('0xe2')](function(_0x3db7bc){const _0x1d4031=_0x392bf0;logger[_0x1d4031('0xd4')]('[Preview][execCall][success]','Queue:\x20'+_0x382537[_0x1d4031('0xae')]+_0x1d4031('0x69')+_0x382537[_0x1d4031('0x14')],JSON[_0x1d4031('0xf9')](_0x3db7bc)),ami['emit'](_0x1d4031('0xf2'),ut['buildObj'](_0x382537,'called',_0x5513c8[_0x1d4031('0x36')][_0x382537[_0x1d4031('0xae')]])),_0x1a1bbd(ut[_0x1d4031('0xc4')](_0x1d4031('0xc2')));})[_0x392bf0('0x8c')](function(_0x57f0ad){const _0x207dc1=_0x392bf0;ut[_0x207dc1('0x113')](_0x207dc1('0xce'),_0x57f0ad),_0x1fe059(ut[_0x207dc1('0xc4')](_0x207dc1('0x95'),_0x4303ce,_0x449e0b));}):(_0x2742eb[_0x392bf0('0xd2')]+=0x1,ut['logBlacklist'](_0x382537),rpcDb[_0x392bf0('0xc5')](_0x382537,_0x392bf0('0xbc')),delete _0x5513c8[_0x392bf0('0x137')][_0xb58147],_0x1fe059(ut[_0x392bf0('0xc4')](_0x392bf0('0x11e'),_0x4303ce,_0x449e0b)));});},Preview[_0x205838('0x27')][_0x205838('0x42')]=function(_0xea5c71){const _0x11d35d=_0x205838;return!_[_0x11d35d('0xba')](_0xea5c71)&&!_[_0x11d35d('0xba')](_0xea5c71['name'])&&!_[_0x11d35d('0xba')](_0xea5c71[_0x11d35d('0x129')])&&_0xea5c71[_0x11d35d('0x129')]&&!_[_0x11d35d('0xba')](this[_0x11d35d('0xf1')][util[_0x11d35d('0x8a')](_0x11d35d('0x10a'),_0xea5c71['name'])])&&!_[_0x11d35d('0xba')](this[_0x11d35d('0xf1')][util['format'](_0x11d35d('0x10a'),_0xea5c71[_0x11d35d('0x6b')])][_0x11d35d('0x79')])&&(this[_0x11d35d('0xf1')][util[_0x11d35d('0x8a')](_0x11d35d('0x10a'),_0xea5c71[_0x11d35d('0x6b')])][_0x11d35d('0x79')]===_0x11d35d('0xc6')||this[_0x11d35d('0xf1')][util[_0x11d35d('0x8a')]('SIP/%s',_0xea5c71[_0x11d35d('0x6b')])][_0x11d35d('0x79')]==='unmonitored');},Preview[_0x205838('0x27')][_0x205838('0xe7')]=function(_0xc849ca,_0x466bc7){const _0x4c550f=this;return new Promise(function(_0x6a1d54,_0x5cd28c){const _0x16a18b=a1088_0x25e3;_0x4c550f[_0x16a18b('0x1c')](_0xc849ca,_0x466bc7)[_0x16a18b('0xe2')](function(_0x3b674d){const _0x162853=_0x16a18b;_0x6a1d54(_[_0x162853('0xb0')](_0x3b674d,['message']));})[_0x16a18b('0x8c')](function(_0xbf6309){const _0x472899=_0x16a18b;_0xbf6309[_0x472899('0x26')]&&rpcDb['unlockContact'](_0xc849ca),_0xbf6309[_0x472899('0x129')]&&rpcDb[_0x472899('0x128')](_0xc849ca),_0x5cd28c(_['pick'](_0xbf6309,[_0x472899('0xc4')]));});});},Preview['prototype'][_0x205838('0x1c')]=function(_0x3f088d,_0x3d4d7e){const _0x1e7d80=this;return new Promise(function(_0x19e94a,_0x255cd1){const _0x4c17b2=a1088_0x25e3;let _0x494b01,_0x2cad41;rpcDb[_0x4c17b2('0x11f')](_0x3f088d)[_0x4c17b2('0xe2')](function(_0x292ebf){const _0x205a14=_0x4c17b2;!_[_0x205a14('0xba')](_0x292ebf[0x0])&&(_0x2cad41=_0x292ebf[0x0]['recallme']?![]:!![],_0x494b01=_0x292ebf[0x0][_0x205a14('0x93')]?!![]:![],_0x494b01=_0x3d4d7e?!![]:_0x494b01);const _0x7c9d2d=_0x1e7d80[_0x205a14('0x12')](_0x292ebf);_0x7c9d2d['isValid']?rpcDb[_0x205a14('0x6e')](_['pick'](_0x292ebf[0x0],[_0x205a14('0x5d'),_0x205a14('0x72')]))[_0x205a14('0xe2')](function(_0x17b1e3){const _0x5da6df=_0x205a14;_0x1e7d80[_0x5da6df('0xd0')](_0x17b1e3,_0x292ebf[0x0],_0x3d4d7e,_0x2cad41,_0x494b01)[_0x5da6df('0xe2')](function(_0xa72154){_0x19e94a(_0xa72154);})[_0x5da6df('0x8c')](function(_0x2d3395){_0x255cd1(_0x2d3395);});})[_0x205a14('0x8c')](function(_0x48d9ce){const _0x578e5a=_0x205a14;ut['logger'](_0x578e5a('0xec'),_0x48d9ce),_0x255cd1(ut[_0x578e5a('0xc4')]('Call\x20unsuccessful',_0x2cad41,_0x494b01));}):_0x255cd1(ut[_0x205a14('0xc4')](_0x7c9d2d['message'],_0x2cad41,_0x494b01));})['catch'](function(_0x465c04){const _0x3ec062=_0x4c17b2;ut[_0x3ec062('0x113')](_0x3ec062('0x108'),_0x465c04),_0x255cd1(ut['message']('Call\x20unsuccessful',![],!![]));});});},Preview[_0x205838('0x27')]['validateContact']=function(_0x20c6ba){const _0x349986=_0x205838;if(_[_0x349986('0xba')](_0x20c6ba)||_[_0x349986('0x21')](_0x20c6ba)||!_[_0x349986('0xba')](_0x20c6ba[0x0][_0x349986('0x49')])&&_[_0x349986('0xba')](_0x20c6ba[0x0]['Agent'][_0x349986('0x6b')]))return ut[_0x349986('0x113')](_0x349986('0x2b'),_0x20c6ba),{'isValid':![],'message':_0x349986('0x2e')};const _0x53ed98=this[_0x349986('0x36')][_0x20c6ba[0x0][_0x349986('0xbb')][_0x349986('0x6b')]];_0x53ed98['message']=_0x349986('0xbe');if(_['isNil'](_0x53ed98))return ut['logger'](_0x349986('0x10c'),_0x53ed98),{'isValid':![],'message':_0x349986('0xa0')};if(!this[_0x349986('0x42')](_0x53ed98[_0x349986('0x121')])){ut[_0x349986('0x113')](_0x349986('0x1e'),_0x349986('0x7d')+_0x53ed98[_0x349986('0x6b')]+_0x349986('0xe0'));if(!this[_0x349986('0x42')](_0x53ed98['TrunkBackup']))return ut['logger'](_0x349986('0x1e'),_0x53ed98[_0x349986('0x6b')]+_0x349986('0x119')),{'isValid':![],'message':'Trunk\x20not\x20work'};}if(!ut['isActive'](_0x53ed98[_0x349986('0x50')]))return ut[_0x349986('0x113')](_0x349986('0xb6'),_0x53ed98['name']+_0x349986('0x56')),{'isValid':![],'message':_0x349986('0x7d')+_0x53ed98[_0x349986('0x6b')]+_0x349986('0x56')};return{'isValid':!![],'message':_0x349986('0x19')};},Preview[_0x205838('0x27')][_0x205838('0x5c')]=function(_0x331561,_0x376329,_0x42ae45,_0xfd6b75){const _0x173637=this;return new Promise(function(_0x5ee551,_0x1dfd25){const _0x4f4dee=a1088_0x25e3,_0x4b42ec=_0x331561[_0x4f4dee('0xb9')],_0x4d778d=_0x173637[_0x4f4dee('0x42')](_0x376329[_0x4f4dee('0x121')])?util[_0x4f4dee('0x8a')]('SIP/%s/%s%s',_0x376329['Trunk'][_0x4f4dee('0x6b')],_[_0x4f4dee('0xba')](_0x376329[_0x4f4dee('0x124')])?'':_0x376329[_0x4f4dee('0x124')]['trim']()||'',_0x376329['dialCutDigit']>0x0?_0x42ae45[_0x4f4dee('0x83')][_0x4f4dee('0x63')][_0x4f4dee('0xe8')](_0x376329['dialCutDigit']):_0x42ae45['Contact'][_0x4f4dee('0x63')]):util[_0x4f4dee('0x8a')]('SIP/%s/%s%s',_[_0x4f4dee('0xba')](_0x376329[_0x4f4dee('0x45')])?_0x376329[_0x4f4dee('0x121')][_0x4f4dee('0x6b')]:_0x376329['TrunkBackup'][_0x4f4dee('0x6b')],_[_0x4f4dee('0xba')](_0x376329[_0x4f4dee('0x124')])?'':_0x376329[_0x4f4dee('0x124')][_0x4f4dee('0xac')]()||'',_0x376329[_0x4f4dee('0x131')]>0x0?_0x42ae45[_0x4f4dee('0x83')][_0x4f4dee('0x63')][_0x4f4dee('0xe8')](_0x376329[_0x4f4dee('0x131')]):_0x42ae45['Contact'][_0x4f4dee('0x63')]),_0x1e043e=_0x173637[_0x4f4dee('0x42')](_0x376329['Trunk'])?ut[_0x4f4dee('0xe6')](_0x376329[_0x4f4dee('0x121')]['callerid'],_0x376329[_0x4f4dee('0xd6')],_0x376329['dialRandomLastDigitCallerIdNumber']>0x0?ut[_0x4f4dee('0x117')](_0x376329[_0x4f4dee('0x139')],_0x376329[_0x4f4dee('0x3e')]):_0x376329[_0x4f4dee('0x139')]):ut['getCallerId'](_[_0x4f4dee('0xba')](_0x376329['TrunkBackup'])?_0x376329[_0x4f4dee('0x121')][_0x4f4dee('0x101')]:_0x376329['TrunkBackup'][_0x4f4dee('0x101')],_0x376329[_0x4f4dee('0xd6')],_0x376329[_0x4f4dee('0x3e')]>0x0?ut['getCallerIdRandom'](_0x376329['dialOriginateCallerIdNumber'],_0x376329['dialRandomLastDigitCallerIdNumber']):_0x376329['dialOriginateCallerIdNumber']);_0x1e043e&&(_0x331561['originatecalleridname']=ut[_0x4f4dee('0xd5')](_0x1e043e),_0x331561[_0x4f4dee('0xdd')]=ut['extractCalleridNumber'](_0x1e043e));const _0x529857=ut[_0x4f4dee('0x2a')](_0x376329,_0x42ae45,_0x4d778d,_0x1e043e,_0x4b42ec,_0x331561);_['merge'](_0x331561,ut['toLowerVariables'](_0x529857)),_0x331561[_0x4f4dee('0x54')]=moment()[_0x4f4dee('0x8a')](_0x4f4dee('0x80')),ami[_0x4f4dee('0x10b')](ut[_0x4f4dee('0xff')](_0x331561,_0x376329,_0x529857,_0x331561['activeContact'],_0xfd6b75))[_0x4f4dee('0xe2')](function(_0x11987c){const _0x110928=_0x4f4dee;_0x376329[_0x110928('0x6')]+=0x1,logger['info']('[originated][increment]',_0x4b42ec,'\x20Queue',_0x376329[_0x110928('0x6b')],_0x110928('0x64'),_0x376329[_0x110928('0x6')]),_0x5ee551(_0x11987c);})[_0x4f4dee('0x8c')](function(_0x1fd905){const _0x25b551=_0x4f4dee;ut[_0x25b551('0x84')](_0x331561,0xe,'OriginateError'),rpcDb[_0x25b551('0x127')](_0x331561,'[originateFailure][logOriginateFailure]'),_0x1dfd25(_0x1fd905);});});},Preview[_0x205838('0x27')][_0x205838('0x12d')]=function(_0x259915){const _0x3950c6=_0x205838;this[_0x3950c6('0x137')][_0x259915['linkedid']]&&(this[_0x3950c6('0x137')][_0x259915[_0x3950c6('0xa4')]][_0x3950c6('0x3a')]=_0x259915[_0x3950c6('0x3a')]);},Preview['prototype'][_0x205838('0xc')]=function(_0x16a6fb){const _0x299fc7=_0x205838,_0x3e2213=this,_0x2a4b94=this['actions'][_0x16a6fb[_0x299fc7('0x13a')]];if(_0x2a4b94){_0x2a4b94[_0x299fc7('0x7b')]&&this[_0x299fc7('0x43')][_0x2a4b94['lookAgent']]&&ut['logLookAgent'](_0x2a4b94,this['agents'][_0x2a4b94[_0x299fc7('0x7b')]][_0x299fc7('0x6b')],this[_0x299fc7('0x43')][_0x2a4b94[_0x299fc7('0x7b')]]['id']);const _0x5da98c=_[_0x299fc7('0x17')](_0x2a4b94);_0x5da98c[_0x299fc7('0x18')]=moment()[_0x299fc7('0x8a')]('YYYY-MM-DD\x20HH:mm:ss');const _0x3304af=_0x3e2213[_0x299fc7('0x36')][_0x2a4b94[_0x299fc7('0xae')]];ut['isFailure'](_0x16a6fb['response'])?(_0x2a4b94[_0x299fc7('0xee')]&&rpcDb['unlockContact'](_0x2a4b94[_0x299fc7('0x14')]),_0x2a4b94['activeContact']&&rpcDb[_0x299fc7('0x128')](_0x2a4b94[_0x299fc7('0x14')]),ami[_0x299fc7('0x4')](_0x299fc7('0x135'),ut[_0x299fc7('0xb7')](_0x2a4b94,_0x299fc7('0x6f'),this['campaignsPreview'][_0x2a4b94[_0x299fc7('0xae')]])),this[_0x299fc7('0x120')](_0x5da98c,_0x3304af,_0x16a6fb)):(_0x2a4b94['starttime']=moment()[_0x299fc7('0x8a')](_0x299fc7('0x80')),ut[_0x299fc7('0x84')](_0x5da98c,0x4,_0x299fc7('0xd9')),rpcDb[_0x299fc7('0x127')](_0x5da98c,'[callProgressDetectingAgent][logAnswer]'));}},Preview[_0x205838('0x27')][_0x205838('0xbf')]=function(_0x2fa64d){const _0x5c5a89=_0x205838,_0x5b9c25=this[_0x5c5a89('0x137')][_0x2fa64d[_0x5c5a89('0xa4')]];let _0x24df2f;_0x5b9c25&&(_0x24df2f=this[_0x5c5a89('0x36')][_0x5b9c25['queue']],logger[_0x5c5a89('0xd4')](_0x5c5a89('0x12b'),_0x2fa64d[_0x5c5a89('0xa4')],'\x20Queue',_0x24df2f[_0x5c5a89('0x6b')],_0x5c5a89('0xcc'),_0x24df2f[_0x5c5a89('0x7e')]));if(this[_0x5c5a89('0x137')][_0x2fa64d[_0x5c5a89('0xa4')]]&&_0x2fa64d[_0x5c5a89('0xa4')]!==_0x2fa64d[_0x5c5a89('0xb9')]){if(_0x2fa64d[_0x5c5a89('0x75')]==='16'&&this[_0x5c5a89('0x137')][_0x2fa64d[_0x5c5a89('0xa4')]]['dialAnswer'])this[_0x5c5a89('0x2d')](_0x2fa64d,_0x2fa64d[_0x5c5a89('0xa4')],_0x2fa64d[_0x5c5a89('0x75')]);else this[_0x5c5a89('0x137')][_0x2fa64d[_0x5c5a89('0xa4')]][_0x5c5a89('0xd1')]&&(logger[_0x5c5a89('0xd4')](_0x5c5a89('0x10e'),_0x2fa64d[_0x5c5a89('0xa4')],_0x2fa64d[_0x5c5a89('0x75')],_0x5c5a89('0x78'),_0x24df2f['name'],'pTalking:\x20',_0x24df2f[_0x5c5a89('0x7e')]),this[_0x5c5a89('0x2d')](_0x2fa64d,_0x2fa64d[_0x5c5a89('0xa4')],_0x2fa64d['cause']));}else{if(_0x5b9c25&&_['isNil'](_0x5b9c25[_0x5c5a89('0x37')])&&_0x24df2f[_0x5c5a89('0x4c')]&&_0x2fa64d[_0x5c5a89('0xa4')]===_0x2fa64d[_0x5c5a89('0xb9')]&&_['isNil'](_0x2fa64d[_0x5c5a89('0x12c')])&&_0x2fa64d['cause']==='16'&&_0x2fa64d[_0x5c5a89('0x8f')]==='6'&&_[_0x5c5a89('0xcb')](_0x5b9c25['transfer']))_0x5b9c25['unlockAgent']&&rpcDb[_0x5c5a89('0x116')](_0x5b9c25[_0x5c5a89('0x14')]),_0x5b9c25[_0x5c5a89('0xfe')]&&rpcDb[_0x5c5a89('0x128')](_0x5b9c25[_0x5c5a89('0x14')]),_0x2fa64d[_0x5c5a89('0x12c')]='22',this[_0x5c5a89('0x120')](_0x5b9c25,_0x24df2f,_0x2fa64d);else{if(_0x5b9c25&&_0x5b9c25['transfer']){if(_0x2fa64d[_0x5c5a89('0x75')]==='16'&&this[_0x5c5a89('0x137')][_0x2fa64d[_0x5c5a89('0xa4')]][_0x5c5a89('0xd1')])logger[_0x5c5a89('0xd4')](_0x5c5a89('0xa7'),_0x2fa64d[_0x5c5a89('0xa4')],_0x2fa64d['cause'],_0x5c5a89('0x78'),_0x24df2f['name'],_0x5c5a89('0xcc'),_0x24df2f[_0x5c5a89('0x7e')]),this[_0x5c5a89('0x2d')](_0x2fa64d,_0x2fa64d[_0x5c5a89('0xa4')],_0x2fa64d[_0x5c5a89('0x75')]);else this[_0x5c5a89('0x137')][_0x2fa64d['linkedid']][_0x5c5a89('0xd1')]&&(logger[_0x5c5a89('0xd4')](_0x5c5a89('0x10e'),_0x2fa64d[_0x5c5a89('0xa4')],_0x2fa64d[_0x5c5a89('0x75')],_0x5c5a89('0x78'),_0x24df2f['name'],'pTalking:\x20',_0x24df2f[_0x5c5a89('0x7e')]),this[_0x5c5a89('0x2d')](_0x2fa64d,_0x2fa64d[_0x5c5a89('0xa4')],_0x2fa64d[_0x5c5a89('0x75')]));}}}},Preview['prototype'][_0x205838('0xdc')]=function(_0x5ae9e3){const _0x316e47=_0x205838;this[_0x316e47('0x137')][_0x5ae9e3[_0x316e47('0xb5')]]&&_0x5ae9e3['destlinkedid']!==_0x5ae9e3[_0x316e47('0x70')]&&this[_0x316e47('0x2d')](_0x5ae9e3,_0x5ae9e3[_0x316e47('0xb5')],_0x5ae9e3[_0x316e47('0xbd')]);},Preview[_0x205838('0x27')][_0x205838('0x81')]=function(_0x4e0fc5){const _0x3bc537=_0x205838;this[_0x3bc537('0x137')][_0x4e0fc5[_0x3bc537('0xa4')]]&&_0x4e0fc5[_0x3bc537('0xa4')]!==_0x4e0fc5[_0x3bc537('0xb9')]&&!this[_0x3bc537('0x137')][_0x4e0fc5[_0x3bc537('0xa4')]][_0x3bc537('0xd1')]&&(_0x4e0fc5[_0x3bc537('0x75')]==='1'&&this[_0x3bc537('0x2d')](_0x4e0fc5,_0x4e0fc5[_0x3bc537('0xa4')],_0x4e0fc5['cause']));},Preview['prototype'][_0x205838('0xda')]=function(_0x3624dc,_0x222433,_0x3eea35){const _0x449cc2=_0x205838;this[_0x449cc2('0x137')][_0x3624dc]&&(_[_0x449cc2('0xba')](this['actions'][_0x3624dc]['variables'])&&(this[_0x449cc2('0x137')][_0x3624dc][_0x449cc2('0x110')]={}),this['actions'][_0x3624dc][_0x449cc2('0x110')][_0x222433]=_0x3eea35);},Preview['prototype'][_0x205838('0xfc')]=function(_0x7e9891){const _0xa366e6=_0x205838;try{!_[_0xa366e6('0xba')](_0x7e9891)&&(ut[_0xa366e6('0x71')](_[_0xa366e6('0xa5')](_0x7e9891[_0xa366e6('0xe9')])[0x0])&&this[_0xa366e6('0xda')](_0x7e9891[_0xa366e6('0xb9')],_['keys'](_0x7e9891[_0xa366e6('0xe9')])[0x0],_0x7e9891[_0xa366e6('0x52')]));}catch(_0x36d0bd){logger[_0xa366e6('0xaa')](_0xa366e6('0x65'),util['inspect'](_0x36d0bd,{'showHidden':![],'depth':null}));}},Preview['prototype'][_0x205838('0xeb')]=function(_0x5abb34){const _0x58c614=_0x205838;_0x5abb34&&(this[_0x58c614('0x137')][_0x5abb34['transfertargetlinkedid']]&&(this[_0x58c614('0x137')][_0x5abb34[_0x58c614('0x111')]][_0x58c614('0x9a')]=!![]));},Preview[_0x205838('0x27')]['syncBlindTransfer']=function(_0xcb1149){const _0x257e77=_0x205838;_0xcb1149&&(this[_0x257e77('0x137')][_0xcb1149[_0x257e77('0x109')]]&&(this['actions'][_0xcb1149[_0x257e77('0x109')]][_0x257e77('0x9a')]=!![]));},module[_0x205838('0x77')]=Preview; \ No newline at end of file +const a1252_0x54f6=['recallMe','createCustomerHistory','dialAgentRejectRetryFrequency','custom:agentcomplete','destlinkedid','getContactRecallMe','bind','complete','type','custom:agentConnectPreview','logAgent','length','finally','Queue:\x20','loggerError','[default]','[syncHangup][talking][increment]','[Preview][execCall][success]','rescheduleContactInQueue','abandoned','createAgentHistory','agentreject','sumHoldTime','[callProgressDetectingCustomer][logUnknown]','addVariable','[Preview][getContactPreview]','Contact','countbusyretry','voicePause','[callProgressDetectingCustomer][logUnknownGlobal]','newexten','outboundBlacklistCallsDay','attendedtransfer','status','activeContact','clearZombieChannel','Trunk\x20not\x20work','AgentReject','startPredictive','syncOriginateResponse','callProgressDetectingAgent','\x20Not\x20Active','../../../config/logger','outboundCongestionCallsDay','dialActive','reason','dialstatus','AnswerAGI','dialOriginateCallerIdNumber','exports','rejected','predictiveIntervalErlangCalls','../ami','md5','sequence','\x20Queue','dialRecallMeTimeout','undefined','NOANSWER','[syncHangupRequest][logAgentReject]','custom:agentconnect','extractCalleridName','[syncHangup][talking][transfer]','run','unlock','dialAbandonedMaxRety','./action','keys','Queue','[RecallMe]','logger2','countglobal','[callProgressDetectingAgent][logAnswerAGI]','moment','isEmpty','disableContact','buildObj','called','syncHangup','trunks','agentReadyId','stringify','dialRecallInQueue','message','VoiceQueueId','ACTIVE','callerid','filterKey','originatecalleridname','Busy','talktime','countnosuchnumberretry','enqueue','dialNoSuchNumberRetryFrequency','[callProgressDetectingAgent][logCongestion]','answered','util','[callProgressDetectingCustomer][logNoSuch]','YYYY-MM-DD\x20HH:mm:ss','actionPreview','createHistory','[callProgressDetectingCustomer][logCongestion]','syncDialEnd','NOT_ACTIVE','[callProgressDetectingCustomer][logNoAnswer]','dialGlobalMaxRetry','response','outboundOriginateFailureCallsDay','countabandonedetry','custom:agentreject','No\x20such\x20channel','voice:queue:%s','outbound','[HistoryDialRecallInQueue][historyCatch]','Trunk','outboundUnknownCallsDay','[16]','[callProgressDetectingCustomer][logAnswerGlobal]','transfererlinkedid','NoAnswer','idContact','channel','callProgressDetectingCustomer','logger','AGENTS_NOT_LOGGED','sendMessageOneNotActive','getCallerIdRandom','outboundAnswerCallsDay','getDiff','unlockAgent','logLookAgent','[Preview][validateContact][Campaign\x20Active]','scheduledat','pTalking','name','isUndefined','cloneAction','reachable','variable','clearZombieChannels','total','waiting','[callProgressDetectingCustomer][logCongestionGlobal]','isNil','Abandoned','[HistoryRecallClose]','dialCutDigit','syncNewExten','unmonitored','lodash','[syncHangup][talking][cause]','channelstate','originated:\x20','destuniqueid','dialOriginateTimeout','predictiveIntervalDroppedCallsCallersExit','sumDuration','CANCEL','Empty\x20Contact','voiceQueues','format','countcongestionretry','countabandonedretry','outboundReCallsDay','lookAgent','[callProgressDetectingAgent][logBusy]','preview','loopCampaigns','originatecalleridnum','nosuchnumber','RecallInQueue','inspect','noanswer','isTrunkReachable','setMessage','scheduledAt','custom:agentnoanswer','[callProgressDetectingAgent][logNoAnswer]','size','acw','[DEBUG]\x20Emit\x20voice_queue_channel:remove\x20event','prototype','syncAttendedTransfer','Answer','ListId','./rpcDb','execCall','countagentrejectretry','[Blacklist][error]','pTalking:\x20','cause','logCustomer','transfer','Contact\x20is\x20undefined','Global','Action','updateOriginated','OriginateError','dialNoAnswerMaxRetry','dialNoAnswerRetryFrequency','[syncHangup][talking][decrement]','merge','emit','trim','loggedIn','[originated][decrement][callProgressDetectingAgent]','active','linkedid','pick','Interval','checkInBlack','BUSY','tail','[action]','dialend','then','[callProgressDetectingAgent]','buildAcw','[callProgressDetectingCustomer]','syncHangupRequest','Call\x20unsuccessful','actions','starttime','outboundAnswerAgiCallsDay','dialOriginateCallerIdName','dialMethod','syncCampaigns','IsNotLoggedIn','busy','totalGlobal','[callProgressDetectingCustomer][logNoSuchGlobal]','campaignsPreview','RecallFailedTimeout','uniqueid','error','sumBillable','actionid','recallme','isActive','SIP/%s','IS_DISACTIVED','Contact\x20in\x20black\x20List','info','agents','decrementTalkink','erlangCalls','custom:agentbusy','queue','outboundNoAnswerCallsDay','NoSuchNumber','dialAgentRejectMaxRetry','predictiveIntervalAvailable','toLowerVariables','rescheduleContact','dialRandomLastDigitCallerIdNumber','outboundDropCallsDayACS','erlangCallToSecond','responsetime','voice_queue_channel:remove','createCustomerFinal','custom:agentcalled','booked','outboundDropCallsDayCallersExit','dialAnswer','syncVarSet','SIP/%s/%s%s','\x20is\x20disactive','[originateFailure][logOriginateFailure]','unlockContact','outboundNoSuchCallsDay','[callProgressDetectingCustomer][logBusyGlobal]','value','dialBusyRetryFrequency','Agent','[callProgressDetectingAgent][logNoSuch]','dialBusyMaxRetry','predictiveIntervalPauses','crateCustomerReportQueue','extractCalleridNumber','execRun','campaign\x20Name:\x20','checkIsBlackList','transfertargetlinkedid','object','talking','Empty\x20Campaign','predictiveIntervalTotalCalls','[callProgressDetectingCustomer][logAbandoned]','[clearZombieChannels][talking]','[Preview][execCall][failure]','substring','[Dialer][decrementTalkink][no\x20Hangup][Preview]','getCallerId','loggedInDb','custom:agentcongestion','originated','ANSWER','variables','countnoanswerretry','hangup','Is\x20Valid','logBlacklist','dialPrefix','TrunkBackup','statedesc','[CampaignPreview]\x20Campaign\x20Queue:\x20','outboundAbandonedCallsDay','catch','predictiveIntervalMultiplicativeFactor','originateresponse','phone','[callProgressDetectingCustomer][logAgentReject]','Congestion','custom:agentringnoanswer','clockClearZombieChannels','[callProgressDetectingAgent][logAnswer]'];(function(_0xf5cfa6,_0x5eaa26){const _0x54f692=function(_0x4f7a0a){while(--_0x4f7a0a){_0xf5cfa6['push'](_0xf5cfa6['shift']());}};_0x54f692(++_0x5eaa26);}(a1252_0x54f6,0xf5));const a1252_0x4f7a=function(_0xf5cfa6,_0x5eaa26){_0xf5cfa6=_0xf5cfa6-0x1a2;let _0x54f692=a1252_0x54f6[_0xf5cfa6];return _0x54f692;};const a1252_0x450b21=a1252_0x4f7a;'use strict';const util=require(a1252_0x450b21(0x249)),_=require(a1252_0x450b21(0x27e)),uuid=require('uuid'),moment=require(a1252_0x450b21(0x232)),md5=require(a1252_0x450b21(0x21e)),logger=require(a1252_0x450b21(0x213))(a1252_0x450b21(0x28f)),loggerAction=require(a1252_0x450b21(0x213))(a1252_0x450b21(0x24c)),ami=require(a1252_0x450b21(0x21d)),rpcDb=require(a1252_0x450b21(0x2a2)),Action=require(a1252_0x450b21(0x22b)),ut=require('./util/util'),{getSocket}=require('../../../rediscache'),io=getSocket(),Sequence=function(){};Sequence[a1252_0x450b21(0x29e)][a1252_0x450b21(0x245)]=function(_0x3c2f83){const _0x27326a=a1252_0x450b21;this[_0x27326a(0x2bd)]=this[_0x27326a(0x2bd)]?this['tail'][_0x27326a(0x1f5)](_0x3c2f83):_0x3c2f83();};function Preview(_0x39057c){const _0x104889=a1252_0x450b21;this[_0x104889(0x21f)]=new Sequence(),this[_0x104889(0x2d0)]=_0x39057c[_0x104889(0x288)],this['trunks']=_0x39057c[_0x104889(0x238)],this[_0x104889(0x2c6)]={},this['agents']=_0x39057c[_0x104889(0x2dc)],this[_0x104889(0x1e7)]=0x0,ami['on'](_0x104889(0x1e2),this[_0x104889(0x210)]['bind'](this)),ami['on'](_0x104889(0x1d8),this[_0x104889(0x237)]['bind'](this)),ami['on']('hanguprequest',this[_0x104889(0x2c4)][_0x104889(0x1ef)](this)),ami['on'](_0x104889(0x2bf),this[_0x104889(0x24f)][_0x104889(0x1ef)](this)),ami['on'](_0x104889(0x207),this['syncNewExten'][_0x104889(0x1ef)](this)),ami['on']('varset',this[_0x104889(0x1b5)]['bind'](this)),ami['on'](_0x104889(0x209),this[_0x104889(0x29f)][_0x104889(0x1ef)](this)),ami['on']('blindtransfer',this['syncBlindTransfer'][_0x104889(0x1ef)](this)),this[_0x104889(0x290)](this[_0x104889(0x2d0)]);}function emit(_0xd62116,_0x59a76b,_0x3bee6a){io['to'](_0xd62116)['emit'](_0x59a76b,_0x3bee6a);}function emitCampaignPreview(_0x35a0c6){const _0x10dd3a=a1252_0x450b21;if(_0x35a0c6['type']===_0x10dd3a(0x259)){const _0x2860d9={'id':_0x35a0c6['id'],'name':_0x35a0c6['name'],'strategy':_0x35a0c6['strategy'],'answered':_0x35a0c6[_0x10dd3a(0x248)],'available':_0x35a0c6['available'],'loggedIn':_0x35a0c6[_0x10dd3a(0x2b5)],'pTalking':_0x35a0c6[_0x10dd3a(0x26e)],'sumBillable':_0x35a0c6[_0x10dd3a(0x2d4)],'sumDuration':_0x35a0c6[_0x10dd3a(0x285)],'sumHoldTime':_0x35a0c6[_0x10dd3a(0x1ff)]||0x0,'talking':_0x35a0c6[_0x10dd3a(0x1c9)],'total':_0x35a0c6[_0x10dd3a(0x275)],'type':_0x35a0c6[_0x10dd3a(0x1f1)],'unmanaged':_0x35a0c6['unmanaged'],'abandoned':_0x35a0c6[_0x10dd3a(0x1fc)],'waiting':_0x35a0c6[_0x10dd3a(0x276)],'loggedInDb':_0x35a0c6[_0x10dd3a(0x1d2)],'dialActive':_0x35a0c6[_0x10dd3a(0x215)],'dialMethod':_0x35a0c6['dialMethod'],'dialOriginateCallerIdName':_0x35a0c6[_0x10dd3a(0x2c9)],'dialOriginateCallerIdNumber':_0x35a0c6[_0x10dd3a(0x219)],'dialOriginateTimeout':_0x35a0c6[_0x10dd3a(0x283)],'dialPrefix':_0x35a0c6[_0x10dd3a(0x1db)],'outboundAnswerAgiCallsDay':_0x35a0c6[_0x10dd3a(0x2c8)],'outboundAnswerCallsDay':_0x35a0c6['outboundAnswerCallsDay'],'outboundBlacklistCallsDay':_0x35a0c6[_0x10dd3a(0x208)],'outboundBusyCallsDay':_0x35a0c6['outboundBusyCallsDay'],'outboundCongestionCallsDay':_0x35a0c6[_0x10dd3a(0x214)],'outboundDropCallsDayACS':_0x35a0c6[_0x10dd3a(0x1ac)],'outboundDropCallsDayCallersExit':_0x35a0c6[_0x10dd3a(0x1b3)],'outboundDropCallsDayTimeout':_0x35a0c6['outboundDropCallsDayTimeout'],'outboundNoAnswerCallsDay':_0x35a0c6[_0x10dd3a(0x1a5)],'outboundNoSuchCallsDay':_0x35a0c6['outboundNoSuchCallsDay'],'outboundOriginateFailureCallsDay':_0x35a0c6[_0x10dd3a(0x254)],'outboundReCallsDay':_0x35a0c6[_0x10dd3a(0x28c)],'outboundRejectCallsDay':_0x35a0c6['outboundRejectCallsDay'],'outboundUnknownCallsDay':_0x35a0c6[_0x10dd3a(0x25c)],'outboundAbandonedCallsDay':_0x35a0c6[_0x10dd3a(0x1df)],'predictiveIntervalAnsweredCalls':_0x35a0c6['predictiveIntervalAnsweredCalls'],'predictiveIntervalAvgHoldtime':_0x35a0c6['predictiveIntervalAvgHoldtime'],'predictiveIntervalAvgTalktime':_0x35a0c6['predictiveIntervalAvgTalktime'],'predictiveIntervalDroppedCallsCallersExit':_0x35a0c6[_0x10dd3a(0x284)],'predictiveIntervalDroppedCallsTimeout':_0x35a0c6['predictiveIntervalDroppedCallsTimeout'],'predictiveIntervalErlangCalls':_0x35a0c6[_0x10dd3a(0x21c)],'predictiveIntervalErlangCallsDroppedCalls':_0x35a0c6['predictiveIntervalErlangCallsDroppedCalls'],'predictiveIntervalHitRate':_0x35a0c6['predictiveIntervalHitRate'],'predictiveIntervalMultiplicativeFactor':_0x35a0c6[_0x10dd3a(0x1e1)],'predictiveIntervalPauses':_0x35a0c6[_0x10dd3a(0x1c1)],'predictiveIntervalAvailable':_0x35a0c6[_0x10dd3a(0x1a8)],'predictiveIntervalTotalCalls':_0x35a0c6[_0x10dd3a(0x1cb)],'message':_0x35a0c6[_0x10dd3a(0x23c)],'originated':_0x35a0c6['originated'],'erlangCalls':_0x35a0c6[_0x10dd3a(0x1a2)],'erlangCallToSecond':_0x35a0c6[_0x10dd3a(0x1ad)],'erlangAbandonmentRate':_0x35a0c6['erlangAbandonmentRate'],'erlangBusyFactor':_0x35a0c6['erlangBusyFactor'],'startPredictive':_0x35a0c6[_0x10dd3a(0x20f)],'startProgressive':_0x35a0c6['startProgressive']};_0x35a0c6[_0x10dd3a(0x25b)]&&(_0x2860d9['Trunk']={'id':_0x35a0c6['Trunk']['id'],'name':_0x35a0c6['Trunk'][_0x10dd3a(0x26f)],'active':_0x35a0c6['Trunk'][_0x10dd3a(0x2b7)],'callerid':_0x35a0c6[_0x10dd3a(0x25b)]['callerid']});_0x35a0c6[_0x10dd3a(0x2ba)]&&(_0x2860d9['Interval']={'id':_0x35a0c6[_0x10dd3a(0x2ba)]['id'],'name':_0x35a0c6['Interval'][_0x10dd3a(0x26f)]});const _0x5d26f0=md5(JSON['stringify'](_0x2860d9));_0x35a0c6[_0x10dd3a(0x21e)]!==_0x5d26f0&&(_0x35a0c6['md5']=_0x5d26f0,emit(util[_0x10dd3a(0x289)](_0x10dd3a(0x258),_0x2860d9[_0x10dd3a(0x26f)]),'voice_queue:save',_0x2860d9));}}function emitVoiceQueueChannelRemove(_0x2fbc25){const _0x48dac6=a1252_0x450b21;logger[_0x48dac6(0x2db)](_0x48dac6(0x29d),JSON[_0x48dac6(0x23a)](_0x2fbc25)),emit(util[_0x48dac6(0x289)](_0x48dac6(0x258),_0x2fbc25[_0x48dac6(0x26f)]),_0x48dac6(0x1af),_0x2fbc25);}function notSendMessagesQueue(_0x545b28){const _0x593bf9=a1252_0x450b21;_0x545b28[_0x593bf9(0x266)]&&(_0x545b28['originated']===0x0&&_0x545b28['pTalking']===0x0?(_0x545b28['sendMessageOneNotActive']=![],_0x545b28['available']=0x0,_0x545b28['paused']=0x0,_0x545b28['message']=_0x593bf9(0x250),ut['logger'](_0x593bf9(0x1de),_0x545b28[_0x593bf9(0x26f)]+'\x20is\x20not\x20active')):(_0x545b28[_0x593bf9(0x23c)]=_0x593bf9(0x2d9),ut['logger'](_0x593bf9(0x1de),_0x545b28['name']+_0x593bf9(0x1b7))),emitCampaignPreview(_0x545b28));}Preview[a1252_0x450b21(0x29e)][a1252_0x450b21(0x290)]=function(){const _0x4f6ce3=this;setInterval(function(){const _0x3fd4e8=a1252_0x4f7a;_0x4f6ce3[_0x3fd4e8(0x2cb)]();},0x7cf);},Preview[a1252_0x450b21(0x29e)][a1252_0x450b21(0x2cb)]=function(){const _0x398199=a1252_0x450b21,_0x404430=this[_0x398199(0x2d0)];this[_0x398199(0x1e7)]+=0x1;for(const _0x46ad38 in _0x404430){typeof _0x404430[_0x46ad38]!==_0x398199(0x222)&&(_0x404430[_0x46ad38][_0x398199(0x2ca)]===_0x398199(0x28f)||_0x404430[_0x46ad38]['dialMethod']===_0x398199(0x1b2))&&_0x404430[_0x46ad38][_0x398199(0x1f1)]===_0x398199(0x259)&&(this[_0x398199(0x1e7)]>0x7&&(this[_0x398199(0x1e7)]=0x0,this[_0x398199(0x274)]())),typeof _0x404430[_0x46ad38]!==_0x398199(0x222)&&_0x404430[_0x46ad38][_0x398199(0x2ca)]==='preview'&&_0x404430[_0x46ad38][_0x398199(0x1f1)]===_0x398199(0x259)&&(_0x404430[_0x46ad38]['dialActive']?(this[_0x398199(0x297)](_0x404430[_0x46ad38]),this[_0x398199(0x1e9)](_0x404430[_0x46ad38])):notSendMessagesQueue(_0x404430[_0x46ad38]));}},Preview[a1252_0x450b21(0x29e)]['clearZombieChannel']=function(_0x25b432){const _0x655594=a1252_0x450b21,_0x322186=this;this[_0x655594(0x21f)][_0x655594(0x245)](function(){const _0x3aed49=_0x655594;if(!_[_0x3aed49(0x278)](_0x322186[_0x3aed49(0x2c6)][_0x25b432]))return loggerAction[_0x3aed49(0x2db)](_0x3aed49(0x1cd),_0x25b432,'Queue',_0x322186[_0x3aed49(0x2c6)][_0x25b432][_0x3aed49(0x1a4)],_0x3aed49(0x281),JSON[_0x3aed49(0x23a)](_0x322186[_0x3aed49(0x2d0)][_0x322186[_0x3aed49(0x2c6)][_0x25b432][_0x3aed49(0x1a4)]]['originated']),'pTalking:\x20',JSON['stringify'](_0x322186[_0x3aed49(0x2d0)][_0x322186['actions'][_0x25b432][_0x3aed49(0x1a4)]][_0x3aed49(0x26e)]),JSON['stringify'](_0x322186[_0x3aed49(0x2c6)][_0x25b432][_0x3aed49(0x1b4)]),JSON[_0x3aed49(0x23a)](_['pick'](_0x322186[_0x3aed49(0x2c6)][_0x25b432],['contactId','UserId',_0x3aed49(0x23d),_0x3aed49(0x2a1)]))),ami[_0x3aed49(0x2ac)]({'action':_0x3aed49(0x20a),'channel':_0x322186['actions'][_0x25b432][_0x3aed49(0x262)]})[_0x3aed49(0x1e0)](function(_0x39cfbd){const _0x314166=_0x3aed49;_0x39cfbd[_0x314166(0x23c)]===_0x314166(0x257)&&setTimeout(function(){const _0x560a23=_0x314166;_0x322186[_0x560a23(0x2c6)][_0x25b432]&&(ut[_0x560a23(0x2ad)](_0x322186[_0x560a23(0x2d0)][_0x322186['actions'][_0x25b432]['queue']],'[clearZombieChannel]'),_0x322186[_0x560a23(0x2c6)][_0x25b432][_0x560a23(0x1b4)]===!![]&&(ut[_0x560a23(0x2dd)](_0x322186['campaignsPreview'][_0x322186[_0x560a23(0x2c6)][_0x25b432][_0x560a23(0x1a4)]],'[clearZombieChannel]'),ut[_0x560a23(0x1f7)]('[Dialer][checkChannel][pTalking][Preview]'+_0x25b432,_0x322186['actions'][_0x25b432][_0x560a23(0x1a4)])),ut['loggerError']('[Dialer][checkChannel][Preview]'+_0x25b432,_0x322186[_0x560a23(0x2c6)][_0x25b432][_0x560a23(0x1a4)]),delete _0x322186['actions'][_0x25b432]);},0x2328);});});},Preview[a1252_0x450b21(0x29e)][a1252_0x450b21(0x274)]=function(){const _0x1a952a=a1252_0x450b21,_0x1d06d2=this;loggerAction[_0x1a952a(0x2db)](_0x1a952a(0x2be),_[_0x1a952a(0x29b)](this[_0x1a952a(0x2c6)]));for(const _0x11f02a in this[_0x1a952a(0x2c6)]){typeof _0x1d06d2[_0x1a952a(0x2c6)][_0x11f02a]!==_0x1a952a(0x222)&&_0x1d06d2[_0x1a952a(0x20c)](_0x11f02a);}},Preview[a1252_0x450b21(0x29e)]['recallMe']=function(_0xbcd347){const _0x3b491d=a1252_0x450b21,_0x2a837a=this;rpcDb[_0x3b491d(0x1ee)](_0xbcd347['id'],ut[_0x3b491d(0x239)](this['agents']))[_0x3b491d(0x2c0)](function(_0x51df90){const _0x4481ec=_0x3b491d;if(!_['isNil'](_0x51df90))for(let _0x52a5e8=0x0;_0x52a5e8<_0x51df90[_0x4481ec(0x1f4)];_0x52a5e8+=0x1){if(ut[_0x4481ec(0x269)](_0x51df90[_0x52a5e8][_0x4481ec(0x26d)])<_0xbcd347[_0x4481ec(0x221)]*0x3c)_0x51df90[_0x52a5e8][_0x4481ec(0x1be)]&&!_0x51df90[_0x52a5e8][_0x4481ec(0x1be)][_0x4481ec(0x205)]?_0x2a837a[_0x4481ec(0x228)](_0x51df90[_0x52a5e8]['id'])[_0x4481ec(0x2c0)](ut[_0x4481ec(0x22f)](_0x4481ec(0x22e)))['catch'](ut[_0x4481ec(0x22f)](_0x4481ec(0x22e))):rpcDb[_0x4481ec(0x234)](_0x51df90[_0x52a5e8]['id']);else{const _0x2542d5=new Action(_0x51df90[_0x52a5e8],_0xbcd347);_0x2542d5[_0x4481ec(0x2c7)]=moment()[_0x4481ec(0x289)](_0x4481ec(0x24b)),_0xbcd347['outboundReCallsDay']+=0x1,ut[_0x4481ec(0x2a8)](_0x2542d5,0x17,_0x4481ec(0x293)),_0xbcd347[_0x4481ec(0x23b)]?(rpcDb[_0x4481ec(0x1fb)](ut['createBody'](_0x51df90[_0x52a5e8])),rpcDb[_0x4481ec(0x1ea)](_0x2542d5,_0x4481ec(0x25a))):(ut['logCustomer'](_0x2542d5,0x16,_0x4481ec(0x2d1)),rpcDb[_0x4481ec(0x1ea)](_0x2542d5,_0x4481ec(0x27a)),rpcDb[_0x4481ec(0x1b0)](_0x2542d5,_0x4481ec(0x27a)));}}})[_0x3b491d(0x1e0)](ut[_0x3b491d(0x22f)]('[getContactRecallMe]'));},Preview[a1252_0x450b21(0x29e)][a1252_0x450b21(0x297)]=function(_0x3fbf35){const _0x1483aa=a1252_0x450b21;_0x3fbf35[_0x1483aa(0x266)]=!![];if(ut[_0x1483aa(0x2cc)](_0x3fbf35['loggedIn']))_0x3fbf35[_0x1483aa(0x23c)]=_0x1483aa(0x265);else{if(!ut['isActive'](_0x3fbf35[_0x1483aa(0x215)]))_0x3fbf35[_0x1483aa(0x23c)]=_0x1483aa(0x250);else!this[_0x1483aa(0x296)](_0x3fbf35[_0x1483aa(0x25b)])?!this['isTrunkReachable'](_0x3fbf35[_0x1483aa(0x1dc)])?_0x3fbf35['message']='TRUNK_IS_NOT_REACHABLE':_0x3fbf35[_0x1483aa(0x23c)]=_0x1483aa(0x23e):_0x3fbf35[_0x1483aa(0x23c)]='ACTIVE';}emitCampaignPreview(_0x3fbf35);},Preview[a1252_0x450b21(0x29e)]['callProgressDetectingCustomer']=function(_0x283f3b,_0xa5ad39,_0x610a9e){const _0x11dda5=a1252_0x450b21,_0xbbead=this[_0x11dda5(0x2c6)][_0xa5ad39],_0x56e994=this[_0x11dda5(0x2d0)][_0xbbead[_0x11dda5(0x1a4)]];let _0x15559a;if(_0x56e994){switch(_0x610a9e){case'1':_0x56e994[_0x11dda5(0x1ba)]+=0x1,_0xbbead['countnosuchnumberretry']+=0x1,_0xbbead[_0x11dda5(0x230)]=ut[_0x11dda5(0x2ce)](_0xbbead),ut[_0x11dda5(0x2a8)](_0xbbead,0x0,_0x11dda5(0x1a6)),ami[_0x11dda5(0x2b3)]('custom:agentnosuchnumber',ut['buildObj'](_0xbbead,_0x11dda5(0x292))),rpcDb[_0x11dda5(0x1ea)](_0xbbead,_0x11dda5(0x24a));ut['totalGlobal'](_0xbbead)>=_0x56e994['dialGlobalMaxRetry']?(_0x15559a=ut[_0x11dda5(0x271)](_0xbbead,0xf,_0x11dda5(0x2ab)),rpcDb['createCustomerFinal'](_0x15559a,_0x11dda5(0x2cf))):_0xbbead[_0x11dda5(0x244)]>=_0x56e994['dialNoSuchNumberMaxRetry']?rpcDb['createCustomerFinal'](_0xbbead,_0x11dda5(0x2cf)):rpcDb[_0x11dda5(0x1aa)](ut[_0x11dda5(0x298)](_0xbbead,'countnosuchnumberretry',_0x56e994[_0x11dda5(0x246)]),_0xbbead[_0x11dda5(0x26a)],_0xbbead[_0x11dda5(0x20b)]);delete this[_0x11dda5(0x2c6)][_0x283f3b[_0x11dda5(0x2b8)]];break;case _0x11dda5(0x1d5):{const _0x511da1=moment()[_0x11dda5(0x289)]('YYYY-MM-DD\x20HH:mm:ss');_0xbbead[_0x11dda5(0x1ae)]=_0x511da1,_0xbbead['answertime']=_0x511da1,_0xbbead['dialAnswer']=!![],_0x56e994['pTalking']+=0x1,logger[_0x11dda5(0x2db)](_0x11dda5(0x1f9),_0xbbead[_0x11dda5(0x2d2)],'\x20Queue',_0x56e994[_0x11dda5(0x26f)],_0x11dda5(0x2a6),_0x56e994[_0x11dda5(0x26e)]),ami['emit'](_0x11dda5(0x225),ut[_0x11dda5(0x235)](_0xbbead,'connect',this[_0x11dda5(0x2d0)][_0xbbead[_0x11dda5(0x1a4)]])),_0x56e994[_0x11dda5(0x29c)]&&ami['emit'](_0x11dda5(0x1f2),ut[_0x11dda5(0x2c2)](_0xbbead));}break;case'16':ami[_0x11dda5(0x2b3)](_0x11dda5(0x1ec),ut[_0x11dda5(0x235)](_0xbbead,_0x11dda5(0x1f0),this['campaignsPreview'][_0xbbead[_0x11dda5(0x1a4)]])),emitVoiceQueueChannelRemove(ut['buildObj'](_0xbbead,_0x11dda5(0x1f0))),_0x56e994[_0x11dda5(0x268)]+=0x1,_0x56e994[_0x11dda5(0x275)]+=0x1,_0x56e994[_0x11dda5(0x248)]+=0x1,ut[_0x11dda5(0x2dd)](_0x56e994,_0x11dda5(0x25d)),_0xbbead['countglobal']=ut[_0x11dda5(0x2ce)](_0xbbead),ut[_0x11dda5(0x2a8)](_0xbbead,0x4,_0x11dda5(0x2a0)),rpcDb[_0x11dda5(0x1ea)](_0xbbead,'[callProgressDetectingCustomer][logAnswer]'),rpcDb['createCustomerFinal'](_0xbbead,_0x11dda5(0x25e)),rpcDb[_0x11dda5(0x1c2)](_0xbbead),_0x56e994['sumDuration']+=_0xbbead[_0x11dda5(0x243)],_0x56e994[_0x11dda5(0x2d4)]+=_0xbbead['talktime'],logger[_0x11dda5(0x2db)](_0x11dda5(0x2b1),_0xbbead[_0x11dda5(0x2d2)],_0x11dda5(0x220),_0x56e994[_0x11dda5(0x26f)],_0x11dda5(0x2a6),_0x56e994[_0x11dda5(0x26e)]),delete this[_0x11dda5(0x2c6)][_0x283f3b[_0x11dda5(0x2b8)]];break;case _0x11dda5(0x2bc):_0x56e994['outboundBusyCallsDay']+=0x1,_0xbbead[_0x11dda5(0x204)]+=0x1,_0xbbead[_0x11dda5(0x230)]=ut[_0x11dda5(0x2ce)](_0xbbead),ut['logCustomer'](_0xbbead,0x5,_0x11dda5(0x242)),ami['emit'](_0x11dda5(0x1a3),ut[_0x11dda5(0x235)](_0xbbead,_0x11dda5(0x2cd))),rpcDb[_0x11dda5(0x1ea)](_0xbbead,'[callProgressDetectingCustomer][logBusy]');ut['totalGlobal'](_0xbbead)>=_0x56e994['dialGlobalMaxRetry']?(_0x15559a=ut[_0x11dda5(0x271)](_0xbbead,0xf,'Global'),rpcDb[_0x11dda5(0x1b0)](_0x15559a,_0x11dda5(0x1bb))):_0xbbead[_0x11dda5(0x204)]>=_0x56e994[_0x11dda5(0x1c0)]?rpcDb['createCustomerFinal'](_0xbbead,'[callProgressDetectingCustomer][logBusy]'):rpcDb[_0x11dda5(0x1aa)](ut[_0x11dda5(0x298)](_0xbbead,_0x11dda5(0x204),_0x56e994[_0x11dda5(0x1bd)]),_0xbbead[_0x11dda5(0x26a)],_0xbbead[_0x11dda5(0x20b)]);break;case _0x11dda5(0x223):_0x56e994[_0x11dda5(0x1a5)]+=0x1,_0xbbead[_0x11dda5(0x1d7)]+=0x1,_0xbbead[_0x11dda5(0x230)]=ut[_0x11dda5(0x2ce)](_0xbbead),ut[_0x11dda5(0x2a8)](_0xbbead,0x3,_0x11dda5(0x260)),ami['emit'](_0x11dda5(0x299),ut['buildObj'](_0xbbead,_0x11dda5(0x295))),rpcDb[_0x11dda5(0x1ea)](_0xbbead,'[callProgressDetectingCustomer][logNoAnswer]');ut['totalGlobal'](_0xbbead)>=_0x56e994[_0x11dda5(0x252)]?(_0x15559a=ut['cloneAction'](_0xbbead,0xf,_0x11dda5(0x2ab)),rpcDb['createCustomerFinal'](_0x15559a,'[callProgressDetectingCustomer][logNoAnswerGlobal]')):_0xbbead[_0x11dda5(0x1d7)]>=_0x56e994[_0x11dda5(0x2af)]?rpcDb[_0x11dda5(0x1b0)](_0xbbead,_0x11dda5(0x251)):rpcDb['rescheduleContact'](ut[_0x11dda5(0x298)](_0xbbead,_0x11dda5(0x1d7),_0x56e994[_0x11dda5(0x2b0)]),_0xbbead['unlockAgent'],_0xbbead[_0x11dda5(0x20b)]);break;case'CONGESTION':_0x56e994['outboundCongestionCallsDay']+=0x1,_0xbbead[_0x11dda5(0x28a)]+=0x1,_0xbbead['countglobal']=ut[_0x11dda5(0x2ce)](_0xbbead),ut[_0x11dda5(0x2a8)](_0xbbead,0x8,_0x11dda5(0x1e5)),ami['emit'](_0x11dda5(0x1d3),ut[_0x11dda5(0x235)](_0xbbead,'congestion')),rpcDb['createCustomerHistory'](_0xbbead,_0x11dda5(0x24e));ut['totalGlobal'](_0xbbead)>=_0x56e994[_0x11dda5(0x252)]?(_0x15559a=ut[_0x11dda5(0x271)](_0xbbead,0xf,_0x11dda5(0x2ab)),rpcDb['createCustomerFinal'](_0x15559a,_0x11dda5(0x277))):_0xbbead[_0x11dda5(0x28a)]>=_0x56e994['dialCongestionMaxRetry']?rpcDb['createCustomerFinal'](_0xbbead,'[callProgressDetectingCustomer][logCongestion]'):rpcDb[_0x11dda5(0x1aa)](ut[_0x11dda5(0x298)](_0xbbead,_0x11dda5(0x28a),_0x56e994['dialBusyRetryFrequency']),_0xbbead[_0x11dda5(0x26a)],_0xbbead[_0x11dda5(0x20b)]);break;case _0x11dda5(0x286):_0x56e994['outboundRejectCallsDay']+=0x1,_0xbbead[_0x11dda5(0x2a4)]+=0x1,_0xbbead[_0x11dda5(0x230)]=ut[_0x11dda5(0x2ce)](_0xbbead),ut['logCustomer'](_0xbbead,0x14,'AgentReject'),ami[_0x11dda5(0x2b3)](_0x11dda5(0x256),ut[_0x11dda5(0x235)](_0xbbead,_0x11dda5(0x1fe))),rpcDb['createCustomerHistory'](_0xbbead,_0x11dda5(0x224));ut[_0x11dda5(0x2ce)](_0xbbead)>=_0x56e994[_0x11dda5(0x252)]?(_0x15559a=ut['cloneAction'](_0xbbead,0x14,_0x11dda5(0x20e)),rpcDb[_0x11dda5(0x1b0)](_0x15559a,_0x11dda5(0x1e4))):_0xbbead['countagentrejectretry']>=_0x56e994[_0x11dda5(0x1a7)]?rpcDb['createCustomerFinal'](_0xbbead,'[callProgressDetectingCustomer][logAgentReject]'):rpcDb[_0x11dda5(0x1aa)](ut[_0x11dda5(0x298)](_0xbbead,_0x11dda5(0x2a4),_0x56e994[_0x11dda5(0x1eb)]),_0xbbead[_0x11dda5(0x26a)],_0xbbead[_0x11dda5(0x20b)]);break;case'ABANDONED':_0x56e994[_0x11dda5(0x1df)]+=0x1,_0xbbead[_0x11dda5(0x28b)]+=0x1,_0xbbead[_0x11dda5(0x230)]=ut[_0x11dda5(0x2ce)](_0xbbead),ut[_0x11dda5(0x2a8)](_0xbbead,0xb,_0x11dda5(0x279)),rpcDb[_0x11dda5(0x1ea)](_0xbbead,_0x11dda5(0x1cc));ut[_0x11dda5(0x2ce)](_0xbbead)>=_0x56e994[_0x11dda5(0x252)]?(_0x15559a=ut[_0x11dda5(0x271)](_0xbbead,0xf,'Global'),rpcDb[_0x11dda5(0x1b0)](_0x15559a,_0x11dda5(0x1cc))):_0xbbead[_0x11dda5(0x255)]>=_0x56e994[_0x11dda5(0x22a)]?rpcDb[_0x11dda5(0x1b0)](_0xbbead,_0x11dda5(0x1cc)):rpcDb[_0x11dda5(0x1aa)](ut[_0x11dda5(0x298)](_0xbbead,_0x11dda5(0x28b),_0x56e994['dialAbandonedRetryFrequency']),_0xbbead[_0x11dda5(0x26a)],_0xbbead[_0x11dda5(0x20b)]);break;default:_0xbbead[_0x11dda5(0x1b4)]&&(ut['decrementTalkink'](_0x56e994,_0x11dda5(0x1f8)),ut[_0x11dda5(0x1f7)](_0x11dda5(0x1d0)+_0x56e994[_0x11dda5(0x26f)],_0x283f3b));_0x56e994[_0x11dda5(0x25c)]+=0x1,_0xbbead[_0x11dda5(0x230)]=ut[_0x11dda5(0x2ce)](_0xbbead),ut[_0x11dda5(0x2a8)](_0xbbead,0xc,_0x283f3b['cause-txt']||_0x283f3b[_0x11dda5(0x217)]),rpcDb[_0x11dda5(0x1ea)](_0xbbead,_0x11dda5(0x200));ut[_0x11dda5(0x2ce)](_0xbbead)>=_0x56e994[_0x11dda5(0x252)]?(_0x15559a=ut[_0x11dda5(0x271)](_0xbbead,0xf,'Global'),rpcDb[_0x11dda5(0x1b0)](_0x15559a,_0x11dda5(0x206))):rpcDb[_0x11dda5(0x1b0)](_0xbbead,'[callProgressDetectingCustomer][logUnknownGlobal]');delete this[_0x11dda5(0x2c6)][_0x283f3b[_0x11dda5(0x2b8)]];}!(_0xbbead[_0x11dda5(0x1b4)]&&_0x610a9e==='16')&&(ut[_0x11dda5(0x2ad)](_0x56e994,_0x11dda5(0x2c3)),logger['info']('[originated][decrement][callProgressDetectingCustomer]',_0xbbead[_0x11dda5(0x2d2)],_0x11dda5(0x220),_0x56e994[_0x11dda5(0x26f)],_0x11dda5(0x281),_0x56e994[_0x11dda5(0x1d4)])),_0x610a9e!==_0x11dda5(0x1d5)&&(delete this[_0x11dda5(0x2c6)][_0x283f3b[_0x11dda5(0x2b8)]],delete this[_0x11dda5(0x2c6)][_0x283f3b['destlinkedid']]);}},Preview['prototype'][a1252_0x450b21(0x211)]=function(_0x56f094,_0x1cb52d,_0x1ae0c6){const _0x51d511=a1252_0x450b21;if(_[_0x51d511(0x270)](_0x1cb52d)&&_0x51d511(0x1c8)!==typeof _0x1cb52d)return;if(_[_0x51d511(0x270)](_0x1ae0c6)&&_0x51d511(0x1c8)!==typeof _0x1ae0c6)return;switch(_0x1ae0c6[_0x51d511(0x216)]){case'0':ut[_0x51d511(0x1f3)](_0x56f094,0x0,_0x51d511(0x1a6)),rpcDb[_0x51d511(0x1fd)](_0x56f094,_0x51d511(0x1bf));break;case'3':ut[_0x51d511(0x1f3)](_0x56f094,0x3,'NoAnswer'),rpcDb[_0x51d511(0x1fd)](_0x56f094,_0x51d511(0x29a));break;case'5':ut['logAgent'](_0x56f094,0x5,_0x51d511(0x242)),rpcDb[_0x51d511(0x1fd)](_0x56f094,_0x51d511(0x28e));break;case'8':ut[_0x51d511(0x1f3)](_0x56f094,0x8,'Congestion'),rpcDb['createAgentHistory'](_0x56f094,_0x51d511(0x247));break;case'22':ut[_0x51d511(0x1f3)](_0x56f094,0x16,_0x51d511(0x218)),rpcDb[_0x51d511(0x1fd)](_0x56f094,_0x51d511(0x231));break;default:ut[_0x51d511(0x1f3)](_0x56f094,0xc,_0x1ae0c6[_0x51d511(0x216)]),rpcDb[_0x51d511(0x1fd)](_0x56f094,_0x51d511(0x247));}ut['updateOriginated'](_0x1cb52d,_0x51d511(0x2c1)),logger[_0x51d511(0x2db)](_0x51d511(0x2b6),_0x56f094[_0x51d511(0x2d2)],_0x51d511(0x220),_0x1cb52d[_0x51d511(0x26f)],'originated:\x20',_0x1cb52d[_0x51d511(0x1d4)]),delete this[_0x51d511(0x2c6)][_0x56f094[_0x51d511(0x2d2)]];},Preview[a1252_0x450b21(0x29e)][a1252_0x450b21(0x2bb)]=function(_0x152433,_0x5bd4a2,_0x582621,_0x2c2062,_0x2d398f){const _0x5194d7=this;return new Promise(function(_0x50dc6d,_0x575fa4){const _0xeea7fb=a1252_0x4f7a;if(_[_0xeea7fb(0x278)](_0x5bd4a2)||_[_0xeea7fb(0x278)](_0x5bd4a2[_0xeea7fb(0x203)])||_[_0xeea7fb(0x278)](_0x5bd4a2[_0xeea7fb(0x203)][_0xeea7fb(0x1e3)])||_[_0xeea7fb(0x278)](_0x5bd4a2[_0xeea7fb(0x23d)])){_0x575fa4(ut['message'](_0xeea7fb(0x2aa),_0x2c2062,_0x2d398f));return;}const _0x14cfc1=uuid['v4'](),_0x18b126=_0x5194d7[_0xeea7fb(0x2d0)][_0x5bd4a2[_0xeea7fb(0x22d)]['name']],_0x476bf4=_0x582621?_0x5194d7[_0xeea7fb(0x2dc)][_0x582621]['id']:undefined;_0x5194d7[_0xeea7fb(0x2c6)][_0x14cfc1]=new Action(_0x5bd4a2,_0x18b126,_0x14cfc1,_0x582621,_0x476bf4);const _0x2382cb=_0x5194d7[_0xeea7fb(0x2c6)][_0x14cfc1];_0x2382cb[_0xeea7fb(0x26a)]=_0x2c2062,_0x2382cb['activeContact']=_0x2d398f,_0x2382cb[_0xeea7fb(0x28d)]=_0x582621,_[_0xeea7fb(0x233)](_0x152433)?_0x5194d7[_0xeea7fb(0x2a3)](_0x2382cb,_0x18b126,_0x5bd4a2,_0x582621)[_0xeea7fb(0x2c0)](function(_0x23a8b1){const _0x5b2795=_0xeea7fb;logger[_0x5b2795(0x2db)](_0x5b2795(0x1fa),_0x5b2795(0x1f6)+_0x2382cb[_0x5b2795(0x1a4)]+'\x20IdHopper:\x20'+_0x2382cb[_0x5b2795(0x261)],JSON[_0x5b2795(0x23a)](_0x23a8b1)),ami['emit'](_0x5b2795(0x1b1),ut['buildObj'](_0x2382cb,_0x5b2795(0x236),_0x5194d7['campaignsPreview'][_0x2382cb['queue']])),_0x50dc6d(ut[_0x5b2795(0x23c)]('Calling'));})[_0xeea7fb(0x1e0)](function(_0x1519a2){const _0x4d70b5=_0xeea7fb;ut['logger'](_0x4d70b5(0x1ce),_0x1519a2),_0x575fa4(ut['message']('Call\x20failed',_0x2c2062,_0x2d398f));}):(_0x18b126[_0xeea7fb(0x208)]+=0x1,ut[_0xeea7fb(0x1da)](_0x2382cb),rpcDb[_0xeea7fb(0x24d)](_0x2382cb,_0xeea7fb(0x2a5)),delete _0x5194d7[_0xeea7fb(0x2c6)][_0x14cfc1],_0x575fa4(ut[_0xeea7fb(0x23c)](_0xeea7fb(0x2da),_0x2c2062,_0x2d398f)));});},Preview[a1252_0x450b21(0x29e)]['isTrunkReachable']=function(_0x512fe5){const _0x2c5ee9=a1252_0x450b21;return!_[_0x2c5ee9(0x278)](_0x512fe5)&&!_[_0x2c5ee9(0x278)](_0x512fe5[_0x2c5ee9(0x26f)])&&!_[_0x2c5ee9(0x278)](_0x512fe5['active'])&&_0x512fe5[_0x2c5ee9(0x2b7)]&&!_[_0x2c5ee9(0x278)](this[_0x2c5ee9(0x238)][util[_0x2c5ee9(0x289)](_0x2c5ee9(0x2d8),_0x512fe5['name'])])&&!_[_0x2c5ee9(0x278)](this[_0x2c5ee9(0x238)][util[_0x2c5ee9(0x289)](_0x2c5ee9(0x2d8),_0x512fe5['name'])][_0x2c5ee9(0x20a)])&&(this[_0x2c5ee9(0x238)][util[_0x2c5ee9(0x289)](_0x2c5ee9(0x2d8),_0x512fe5[_0x2c5ee9(0x26f)])][_0x2c5ee9(0x20a)]===_0x2c5ee9(0x272)||this[_0x2c5ee9(0x238)][util[_0x2c5ee9(0x289)]('SIP/%s',_0x512fe5[_0x2c5ee9(0x26f)])][_0x2c5ee9(0x20a)]===_0x2c5ee9(0x27d));},Preview['prototype'][a1252_0x450b21(0x228)]=function(_0xb21ee,_0x476135){const _0x1d3efc=this;return new Promise(function(_0x9596ab,_0x455eb6){const _0x207650=a1252_0x4f7a;_0x1d3efc[_0x207650(0x1c4)](_0xb21ee,_0x476135)[_0x207650(0x2c0)](function(_0x21648b){const _0x3a50fd=_0x207650;_0x9596ab(_['pick'](_0x21648b,[_0x3a50fd(0x23c)]));})['catch'](function(_0x2d853d){const _0x2cbb8f=_0x207650;_0x2d853d[_0x2cbb8f(0x229)]&&rpcDb[_0x2cbb8f(0x1b9)](_0xb21ee),_0x2d853d[_0x2cbb8f(0x2b7)]&&rpcDb[_0x2cbb8f(0x234)](_0xb21ee),_0x455eb6(_[_0x2cbb8f(0x2b9)](_0x2d853d,[_0x2cbb8f(0x23c)]));});});},Preview[a1252_0x450b21(0x29e)][a1252_0x450b21(0x1c4)]=function(_0x2cbc72,_0x46c66a){const _0x4ff1fe=this;return new Promise(function(_0x3c2702,_0x4fef42){const _0x1cb9e0=a1252_0x4f7a;let _0x52741a,_0x3432fd;rpcDb['getContactPreview'](_0x2cbc72)[_0x1cb9e0(0x2c0)](function(_0x2e9e37){const _0x56aab5=_0x1cb9e0;!_['isNil'](_0x2e9e37[0x0])&&(_0x3432fd=_0x2e9e37[0x0]['recallme']?![]:!![],_0x52741a=_0x2e9e37[0x0][_0x56aab5(0x2d6)]?!![]:![],_0x52741a=_0x46c66a?!![]:_0x52741a);const _0x3586d9=_0x4ff1fe['validateContact'](_0x2e9e37);_0x3586d9['isValid']?rpcDb[_0x56aab5(0x1c6)](_[_0x56aab5(0x2b9)](_0x2e9e37[0x0],[_0x56aab5(0x23d),'Contact.phone']))['then'](function(_0x596f2e){const _0x270409=_0x56aab5;_0x4ff1fe['checkInBlack'](_0x596f2e,_0x2e9e37[0x0],_0x46c66a,_0x3432fd,_0x52741a)[_0x270409(0x2c0)](function(_0x43a698){_0x3c2702(_0x43a698);})[_0x270409(0x1e0)](function(_0x57c08c){_0x4fef42(_0x57c08c);});})[_0x56aab5(0x1e0)](function(_0x112e16){const _0x4a6938=_0x56aab5;ut['logger']('[Preview][checkIsBlackList]',_0x112e16),_0x4fef42(ut[_0x4a6938(0x23c)](_0x4a6938(0x2c5),_0x3432fd,_0x52741a));}):_0x4fef42(ut[_0x56aab5(0x23c)](_0x3586d9[_0x56aab5(0x23c)],_0x3432fd,_0x52741a));})[_0x1cb9e0(0x1e0)](function(_0x5d4470){const _0x6d1026=_0x1cb9e0;ut[_0x6d1026(0x264)](_0x6d1026(0x202),_0x5d4470),_0x4fef42(ut[_0x6d1026(0x23c)](_0x6d1026(0x2c5),![],!![]));});});},Preview[a1252_0x450b21(0x29e)]['validateContact']=function(_0x12ed4b){const _0x1edde8=a1252_0x450b21;if(_[_0x1edde8(0x278)](_0x12ed4b)||_[_0x1edde8(0x233)](_0x12ed4b)||!_[_0x1edde8(0x278)](_0x12ed4b[0x0][_0x1edde8(0x1be)])&&_[_0x1edde8(0x278)](_0x12ed4b[0x0][_0x1edde8(0x1be)][_0x1edde8(0x26f)]))return ut['logger']('[Preview][validateContact][Empty\x20Contact]',_0x12ed4b),{'isValid':![],'message':_0x1edde8(0x287)};const _0x4498ca=this[_0x1edde8(0x2d0)][_0x12ed4b[0x0][_0x1edde8(0x22d)]['name']];_0x4498ca[_0x1edde8(0x23c)]=_0x1edde8(0x23e);if(_[_0x1edde8(0x278)](_0x4498ca))return ut[_0x1edde8(0x264)]('[Preview][validateContact][Empty\x20Campaign]',_0x4498ca),{'isValid':![],'message':_0x1edde8(0x1ca)};if(!this[_0x1edde8(0x296)](_0x4498ca['Trunk'])){ut[_0x1edde8(0x264)]('[Preview][validateContact][Trunk\x20not\x20work]','campaign\x20Name:\x20'+_0x4498ca[_0x1edde8(0x26f)]+'\x20Trunk\x20is\x20not\x20active');if(!this[_0x1edde8(0x296)](_0x4498ca[_0x1edde8(0x1dc)]))return ut[_0x1edde8(0x264)]('[Preview][validateContact][Trunk\x20not\x20work]',_0x4498ca[_0x1edde8(0x26f)]+'\x20Trunk\x20Backup\x20is\x20not\x20active'),{'isValid':![],'message':_0x1edde8(0x20d)};}if(!ut[_0x1edde8(0x2d7)](_0x4498ca[_0x1edde8(0x215)]))return ut[_0x1edde8(0x264)](_0x1edde8(0x26c),_0x4498ca['name']+_0x1edde8(0x212)),{'isValid':![],'message':_0x1edde8(0x1c5)+_0x4498ca['name']+_0x1edde8(0x212)};return{'isValid':!![],'message':_0x1edde8(0x1d9)};},Preview[a1252_0x450b21(0x29e)][a1252_0x450b21(0x2a3)]=function(_0x3ee967,_0x4729f9,_0x51da78,_0x681447){const _0x2e7f03=this;return new Promise(function(_0x286123,_0xdb859b){const _0x5a63c9=a1252_0x4f7a,_0x4387d7=_0x3ee967[_0x5a63c9(0x2d2)],_0x5d1b82=_0x2e7f03[_0x5a63c9(0x296)](_0x4729f9[_0x5a63c9(0x25b)])?util['format'](_0x5a63c9(0x1b6),_0x4729f9[_0x5a63c9(0x25b)][_0x5a63c9(0x26f)],_[_0x5a63c9(0x278)](_0x4729f9[_0x5a63c9(0x1db)])?'':_0x4729f9[_0x5a63c9(0x1db)][_0x5a63c9(0x2b4)]()||'',_0x4729f9['dialCutDigit']>0x0?_0x51da78['Contact'][_0x5a63c9(0x1e3)][_0x5a63c9(0x1cf)](_0x4729f9[_0x5a63c9(0x27b)]):_0x51da78[_0x5a63c9(0x203)][_0x5a63c9(0x1e3)]):util['format'](_0x5a63c9(0x1b6),_[_0x5a63c9(0x278)](_0x4729f9[_0x5a63c9(0x1dc)])?_0x4729f9[_0x5a63c9(0x25b)][_0x5a63c9(0x26f)]:_0x4729f9[_0x5a63c9(0x1dc)][_0x5a63c9(0x26f)],_[_0x5a63c9(0x278)](_0x4729f9[_0x5a63c9(0x1db)])?'':_0x4729f9[_0x5a63c9(0x1db)][_0x5a63c9(0x2b4)]()||'',_0x4729f9[_0x5a63c9(0x27b)]>0x0?_0x51da78[_0x5a63c9(0x203)]['phone'][_0x5a63c9(0x1cf)](_0x4729f9[_0x5a63c9(0x27b)]):_0x51da78[_0x5a63c9(0x203)][_0x5a63c9(0x1e3)]),_0x410190=_0x2e7f03['isTrunkReachable'](_0x4729f9['Trunk'])?ut[_0x5a63c9(0x1d1)](_0x4729f9[_0x5a63c9(0x25b)][_0x5a63c9(0x23f)],_0x4729f9[_0x5a63c9(0x2c9)],_0x4729f9[_0x5a63c9(0x1ab)]>0x0?ut[_0x5a63c9(0x267)](_0x4729f9[_0x5a63c9(0x219)],_0x4729f9[_0x5a63c9(0x1ab)]):_0x4729f9[_0x5a63c9(0x219)]):ut[_0x5a63c9(0x1d1)](_[_0x5a63c9(0x278)](_0x4729f9['TrunkBackup'])?_0x4729f9[_0x5a63c9(0x25b)]['callerid']:_0x4729f9[_0x5a63c9(0x1dc)][_0x5a63c9(0x23f)],_0x4729f9[_0x5a63c9(0x2c9)],_0x4729f9[_0x5a63c9(0x1ab)]>0x0?ut[_0x5a63c9(0x267)](_0x4729f9['dialOriginateCallerIdNumber'],_0x4729f9[_0x5a63c9(0x1ab)]):_0x4729f9[_0x5a63c9(0x219)]);_0x410190&&(_0x3ee967[_0x5a63c9(0x241)]=ut[_0x5a63c9(0x226)](_0x410190),_0x3ee967[_0x5a63c9(0x291)]=ut[_0x5a63c9(0x1c3)](_0x410190));const _0x3fc499=ut['addVariables'](_0x4729f9,_0x51da78,_0x5d1b82,_0x410190,_0x4387d7,_0x3ee967);_[_0x5a63c9(0x2b2)](_0x3ee967,ut[_0x5a63c9(0x1a9)](_0x3fc499)),_0x3ee967['starttime']=moment()[_0x5a63c9(0x289)](_0x5a63c9(0x24b)),ami[_0x5a63c9(0x2ac)](ut['variablesAction'](_0x3ee967,_0x4729f9,_0x3fc499,_0x3ee967['activeContact'],_0x681447))[_0x5a63c9(0x2c0)](function(_0x456a96){const _0x517055=_0x5a63c9;_0x4729f9[_0x517055(0x1d4)]+=0x1,logger[_0x517055(0x2db)]('[originated][increment]',_0x4387d7,_0x517055(0x220),_0x4729f9[_0x517055(0x26f)],_0x517055(0x281),_0x4729f9[_0x517055(0x1d4)]),_0x286123(_0x456a96);})['catch'](function(_0x29f8fe){const _0x24ad2a=_0x5a63c9;ut['logAgent'](_0x3ee967,0xe,_0x24ad2a(0x2ae)),rpcDb[_0x24ad2a(0x1fd)](_0x3ee967,_0x24ad2a(0x1b8)),_0xdb859b(_0x29f8fe);});});},Preview['prototype'][a1252_0x450b21(0x27c)]=function(_0x1dd4f4){const _0x547e91=a1252_0x450b21;this[_0x547e91(0x2c6)][_0x1dd4f4['linkedid']]&&(this[_0x547e91(0x2c6)][_0x1dd4f4[_0x547e91(0x2b8)]]['channel']=_0x1dd4f4['channel']);},Preview[a1252_0x450b21(0x29e)][a1252_0x450b21(0x210)]=function(_0x27cca6){const _0x31688f=a1252_0x450b21,_0x1679a0=this,_0x3bf401=this[_0x31688f(0x2c6)][_0x27cca6[_0x31688f(0x2d5)]];if(_0x3bf401){_0x3bf401[_0x31688f(0x28d)]&&this[_0x31688f(0x2dc)][_0x3bf401[_0x31688f(0x28d)]]&&ut[_0x31688f(0x26b)](_0x3bf401,this[_0x31688f(0x2dc)][_0x3bf401['lookAgent']][_0x31688f(0x26f)],this[_0x31688f(0x2dc)][_0x3bf401['lookAgent']]['id']);const _0x125a75=_['clone'](_0x3bf401);_0x125a75[_0x31688f(0x1ae)]=moment()['format'](_0x31688f(0x24b));const _0x5a1551=_0x1679a0[_0x31688f(0x2d0)][_0x3bf401[_0x31688f(0x1a4)]];ut['isFailure'](_0x27cca6[_0x31688f(0x253)])?(_0x3bf401[_0x31688f(0x26a)]&&rpcDb['unlockContact'](_0x3bf401[_0x31688f(0x261)]),_0x3bf401[_0x31688f(0x20b)]&&rpcDb['disableContact'](_0x3bf401['idContact']),ami[_0x31688f(0x2b3)](_0x31688f(0x1e6),ut['buildObj'](_0x3bf401,_0x31688f(0x21b),this['campaignsPreview'][_0x3bf401[_0x31688f(0x1a4)]])),this[_0x31688f(0x211)](_0x125a75,_0x5a1551,_0x27cca6)):(_0x3bf401['starttime']=moment()[_0x31688f(0x289)](_0x31688f(0x24b)),ut[_0x31688f(0x1f3)](_0x125a75,0x4,_0x31688f(0x2a0)),rpcDb[_0x31688f(0x1fd)](_0x125a75,_0x31688f(0x1e8)));}},Preview[a1252_0x450b21(0x29e)][a1252_0x450b21(0x237)]=function(_0x1636c8){const _0x22636b=a1252_0x450b21,_0x4e1720=this['actions'][_0x1636c8[_0x22636b(0x2b8)]];let _0x26dbd9;_0x4e1720&&(_0x26dbd9=this['campaignsPreview'][_0x4e1720[_0x22636b(0x1a4)]],logger[_0x22636b(0x2db)]('[syncHangup][talking]',_0x1636c8['linkedid'],_0x22636b(0x220),_0x26dbd9[_0x22636b(0x26f)],_0x22636b(0x2a6),_0x26dbd9[_0x22636b(0x26e)]));if(this[_0x22636b(0x2c6)][_0x1636c8[_0x22636b(0x2b8)]]&&_0x1636c8[_0x22636b(0x2b8)]!==_0x1636c8['uniqueid']){if(_0x1636c8[_0x22636b(0x2a7)]==='16'&&this[_0x22636b(0x2c6)][_0x1636c8['linkedid']][_0x22636b(0x1b4)])this[_0x22636b(0x263)](_0x1636c8,_0x1636c8['linkedid'],_0x1636c8[_0x22636b(0x2a7)]);else this[_0x22636b(0x2c6)][_0x1636c8[_0x22636b(0x2b8)]][_0x22636b(0x1b4)]&&(logger[_0x22636b(0x2db)](_0x22636b(0x27f),_0x1636c8[_0x22636b(0x2b8)],_0x1636c8['cause'],_0x22636b(0x220),_0x26dbd9[_0x22636b(0x26f)],_0x22636b(0x2a6),_0x26dbd9['pTalking']),this[_0x22636b(0x263)](_0x1636c8,_0x1636c8[_0x22636b(0x2b8)],_0x1636c8[_0x22636b(0x2a7)]));}else{if(_0x4e1720&&_['isNil'](_0x4e1720[_0x22636b(0x1dd)])&&_0x26dbd9['dialQueueProject']&&_0x1636c8[_0x22636b(0x2b8)]===_0x1636c8[_0x22636b(0x2d2)]&&_[_0x22636b(0x278)](_0x1636c8[_0x22636b(0x216)])&&_0x1636c8['cause']==='16'&&_0x1636c8[_0x22636b(0x280)]==='6'&&_['isUndefined'](_0x4e1720[_0x22636b(0x2a9)]))_0x4e1720[_0x22636b(0x26a)]&&rpcDb[_0x22636b(0x1b9)](_0x4e1720['idContact']),_0x4e1720['activeContact']&&rpcDb[_0x22636b(0x234)](_0x4e1720[_0x22636b(0x261)]),_0x1636c8[_0x22636b(0x216)]='22',this['callProgressDetectingAgent'](_0x4e1720,_0x26dbd9,_0x1636c8);else{if(_0x4e1720&&_0x4e1720[_0x22636b(0x2a9)]){if(_0x1636c8[_0x22636b(0x2a7)]==='16'&&this[_0x22636b(0x2c6)][_0x1636c8['linkedid']][_0x22636b(0x1b4)])logger[_0x22636b(0x2db)](_0x22636b(0x227),_0x1636c8['linkedid'],_0x1636c8[_0x22636b(0x2a7)],'\x20Queue',_0x26dbd9[_0x22636b(0x26f)],_0x22636b(0x2a6),_0x26dbd9[_0x22636b(0x26e)]),this['callProgressDetectingCustomer'](_0x1636c8,_0x1636c8['linkedid'],_0x1636c8[_0x22636b(0x2a7)]);else this[_0x22636b(0x2c6)][_0x1636c8[_0x22636b(0x2b8)]][_0x22636b(0x1b4)]&&(logger['info']('[syncHangup][talking][cause]',_0x1636c8[_0x22636b(0x2b8)],_0x1636c8['cause'],_0x22636b(0x220),_0x26dbd9[_0x22636b(0x26f)],_0x22636b(0x2a6),_0x26dbd9[_0x22636b(0x26e)]),this[_0x22636b(0x263)](_0x1636c8,_0x1636c8[_0x22636b(0x2b8)],_0x1636c8[_0x22636b(0x2a7)]));}}}},Preview['prototype'][a1252_0x450b21(0x24f)]=function(_0x17de25){const _0x3adf57=a1252_0x450b21;this[_0x3adf57(0x2c6)][_0x17de25[_0x3adf57(0x1ed)]]&&_0x17de25[_0x3adf57(0x1ed)]!==_0x17de25[_0x3adf57(0x282)]&&this[_0x3adf57(0x263)](_0x17de25,_0x17de25[_0x3adf57(0x1ed)],_0x17de25[_0x3adf57(0x217)]);},Preview[a1252_0x450b21(0x29e)][a1252_0x450b21(0x2c4)]=function(_0x12c61d){const _0x44c362=a1252_0x450b21;this[_0x44c362(0x2c6)][_0x12c61d[_0x44c362(0x2b8)]]&&_0x12c61d[_0x44c362(0x2b8)]!==_0x12c61d[_0x44c362(0x2d2)]&&!this[_0x44c362(0x2c6)][_0x12c61d['linkedid']][_0x44c362(0x1b4)]&&(_0x12c61d['cause']==='1'&&this[_0x44c362(0x263)](_0x12c61d,_0x12c61d['linkedid'],_0x12c61d[_0x44c362(0x2a7)]));},Preview[a1252_0x450b21(0x29e)]['addVariable']=function(_0x55ed34,_0x524838,_0x4def49){const _0xcd4128=a1252_0x450b21;this['actions'][_0x55ed34]&&(_[_0xcd4128(0x278)](this[_0xcd4128(0x2c6)][_0x55ed34][_0xcd4128(0x1d6)])&&(this[_0xcd4128(0x2c6)][_0x55ed34]['variables']={}),this[_0xcd4128(0x2c6)][_0x55ed34][_0xcd4128(0x1d6)][_0x524838]=_0x4def49);},Preview[a1252_0x450b21(0x29e)][a1252_0x450b21(0x1b5)]=function(_0x140b7b){const _0x69cbae=a1252_0x450b21;try{!_[_0x69cbae(0x278)](_0x140b7b)&&(ut[_0x69cbae(0x240)](_[_0x69cbae(0x22c)](_0x140b7b[_0x69cbae(0x273)])[0x0])&&this[_0x69cbae(0x201)](_0x140b7b[_0x69cbae(0x2d2)],_[_0x69cbae(0x22c)](_0x140b7b[_0x69cbae(0x273)])[0x0],_0x140b7b[_0x69cbae(0x1bc)]));}catch(_0xf8fba8){logger[_0x69cbae(0x2d3)]('[syncVarSet][Preview]',util[_0x69cbae(0x294)](_0xf8fba8,{'showHidden':![],'depth':null}));}},Preview[a1252_0x450b21(0x29e)][a1252_0x450b21(0x29f)]=function(_0x62a1a5){const _0x39dd90=a1252_0x450b21;_0x62a1a5&&(this[_0x39dd90(0x2c6)][_0x62a1a5['transfertargetlinkedid']]&&(this[_0x39dd90(0x2c6)][_0x62a1a5[_0x39dd90(0x1c7)]][_0x39dd90(0x2a9)]=!![]));},Preview[a1252_0x450b21(0x29e)]['syncBlindTransfer']=function(_0x21e226){const _0x5ae35d=a1252_0x450b21;_0x21e226&&(this[_0x5ae35d(0x2c6)][_0x21e226[_0x5ae35d(0x25f)]]&&(this[_0x5ae35d(0x2c6)][_0x21e226['transfererlinkedid']][_0x5ae35d(0x2a9)]=!![]));},module[a1252_0x450b21(0x21a)]=Preview; \ No newline at end of file diff --git a/server/services/ami/preview/rpcDb.js b/server/services/ami/preview/rpcDb.js index 0dbcb4e..72e36f9 100644 --- a/server/services/ami/preview/rpcDb.js +++ b/server/services/ami/preview/rpcDb.js @@ -1 +1 @@ -const a1089_0x27d7=['inspect','queuecallercompleteAt','context','resolve','../rpc/cmHopperHistory','xcally-motion-preview','[unlockContact]\x20','queuecallercomplete','createAgentHistory','[voiceQueueReport]\x20','queue','from-sip','membername','unlockContact','uniqueid','error','rescheduleContactInQueue','calleridname','[rescheduleContact]\x20','queuecallerexitreason','[moveContactManagedDialer]\x20','[activeContact]\x20','getContactRecallMe','assigned','then','[getContactPreview]\x20','../../../config/logger','holdtime','endtime','queuecallerleaveAt','[rescheduleContactInQueue]\x20','answertime','../rpc/agentReportPreview','rescheduleContact','../rpc/voiceQueueReport','moveContactManagedDialer','catch','[GetContactRecallMe]\x20','createCustomerFinal','countReScheduled','checkIsBlackList','UserId','[countReScheduled]\x20','preview','COMPLETED','[createHistory]\x20','calleridnum','type','getContactPreview','createHistory'];(function(_0x406a98,_0x27d734){const _0x1a3dae=function(_0x11eaf0){while(--_0x11eaf0){_0x406a98['push'](_0x406a98['shift']());}};_0x1a3dae(++_0x27d734);}(a1089_0x27d7,0x76));const a1089_0x1a3d=function(_0x406a98,_0x27d734){_0x406a98=_0x406a98-0x0;let _0x1a3dae=a1089_0x27d7[_0x406a98];return _0x1a3dae;};const _0x48ebf5=a1089_0x1a3d;'use strict';const util=require('util'),logger=require(_0x48ebf5('0x8'))(_0x48ebf5('0x19')),cmHopper=require('../rpc/cmHopper'),cmHopperHistory=require(_0x48ebf5('0x24')),cmHopperBlack=require('../rpc/cmHopperBlack'),agentReportPreview=require(_0x48ebf5('0xe')),voiceQueueReport=require(_0x48ebf5('0x10'));function loggerCatch(_0x11eaf0){return function(_0x1f6bd7){const _0x346eca=a1089_0x1a3d;logger[_0x346eca('0x2f')](_0x11eaf0,util[_0x346eca('0x20')](_0x1f6bd7,{'showHidden':![],'depth':null}));};}function create(_0x2e3802){const _0x45a0e6=_0x48ebf5;return Promise['resolve']()[_0x45a0e6('0x6')](cmHopperHistory['createHistory'](_0x2e3802))[_0x45a0e6('0x12')](loggerCatch(_0x45a0e6('0x1b')));}function createAgent(_0x5b7ac6){const _0xf1ddf9=_0x48ebf5;return Promise[_0xf1ddf9('0x23')]()[_0xf1ddf9('0x6')](agentReportPreview[_0xf1ddf9('0x1f')](_0x5b7ac6))[_0xf1ddf9('0x12')](loggerCatch('[createHistory]\x20'));}function moveContact(_0x24e378){const _0x17d1e3=_0x48ebf5;return Promise[_0x17d1e3('0x23')]()[_0x17d1e3('0x6')](cmHopper[_0x17d1e3('0x11')](_0x24e378,!![]))['catch'](loggerCatch(_0x17d1e3('0x2')));}exports[_0x48ebf5('0x16')]=function(_0x3cd45f){const _0x5c48e8=_0x48ebf5;return Promise['resolve']()[_0x5c48e8('0x6')](cmHopperBlack[_0x5c48e8('0x16')](_0x3cd45f))[_0x5c48e8('0x12')](loggerCatch('[checkIsBlackList]\x20'));},exports[_0x48ebf5('0x1e')]=function(_0x5b273c){const _0x4d51f0=_0x48ebf5;return Promise[_0x4d51f0('0x23')]()[_0x4d51f0('0x6')](cmHopper[_0x4d51f0('0x1e')](_0x5b273c))[_0x4d51f0('0x12')](loggerCatch(_0x4d51f0('0x7')));},exports[_0x48ebf5('0x1f')]=function(_0x4505ac,_0x2b48f7){const _0x2109c8=_0x48ebf5;create(_0x4505ac)[_0x2109c8('0x12')](loggerCatch(_0x2b48f7)),moveContact(_0x4505ac)[_0x2109c8('0x12')](loggerCatch(_0x2b48f7));},exports[_0x48ebf5('0x28')]=function(_0xd486c2,_0x860dae){const _0x4f7fd7=_0x48ebf5;createAgent(_0xd486c2)[_0x4f7fd7('0x12')](loggerCatch(_0x860dae));},exports['createCustomerHistory']=function(_0x59fc83,_0xab60a4){const _0x268510=_0x48ebf5;create(_0x59fc83)[_0x268510('0x12')](loggerCatch(_0xab60a4));},exports[_0x48ebf5('0x14')]=function(_0x469b80,_0x242ddc){const _0x21d24b=_0x48ebf5;moveContact(_0x469b80)[_0x21d24b('0x12')](loggerCatch(_0x242ddc));},exports[_0x48ebf5('0xf')]=function(_0x3a9edc,_0x22e0ac,_0x48ed8c){const _0xd7dac5=_0x48ebf5;return _0x22e0ac&&(_0x3a9edc[_0xd7dac5('0x17')]=null),_0x48ed8c&&(_0x3a9edc['active']=![]),Promise[_0xd7dac5('0x23')]()[_0xd7dac5('0x6')](cmHopper[_0xd7dac5('0xf')](_0x3a9edc))[_0xd7dac5('0x12')](loggerCatch(_0xd7dac5('0x0')));},exports['countReScheduled']=function(_0x54def1){const _0x32ac3e=_0x48ebf5;return Promise[_0x32ac3e('0x23')]()[_0x32ac3e('0x6')](cmHopper[_0x32ac3e('0x15')](_0x54def1))[_0x32ac3e('0x12')](loggerCatch(_0x32ac3e('0x18')));},exports[_0x48ebf5('0x2d')]=function(_0x562519){const _0x47062d=_0x48ebf5;return Promise['resolve']()[_0x47062d('0x6')](cmHopper[_0x47062d('0x2d')]({'UserId':null},_0x562519,0x1))['catch'](loggerCatch(_0x47062d('0x26')));},exports['disableContact']=function(_0x12b1dd){const _0x23e549=_0x48ebf5;return Promise['resolve']()[_0x23e549('0x6')](cmHopper['unlockContact']({'active':![]},_0x12b1dd,0x1))['catch'](loggerCatch(_0x23e549('0x3')));},exports['crateCustomerReportQueue']=function(_0x4bf413){const _0x62cd28=_0x48ebf5,_0x588107={};return _0x588107[_0x62cd28('0x1d')]=_0x4bf413[_0x62cd28('0x1d')],_0x588107[_0x62cd28('0x2e')]=_0x4bf413[_0x62cd28('0x2e')],_0x588107[_0x62cd28('0x1c')]=_0x4bf413['calleridnum'],_0x588107[_0x62cd28('0x31')]=_0x4bf413[_0x62cd28('0x31')],_0x588107[_0x62cd28('0x2a')]=_0x4bf413[_0x62cd28('0x2a')],_0x588107['queuecallerjoinAt']=_0x4bf413[_0x62cd28('0xd')],_0x588107[_0x62cd28('0xb')]=_0x4bf413[_0x62cd28('0xd')],_0x588107[_0x62cd28('0x27')]=0x1,_0x588107[_0x62cd28('0x21')]=_0x4bf413[_0x62cd28('0xa')],_0x588107['connectedlinename']=_0x4bf413['membername'],_0x588107[_0x62cd28('0x22')]=_0x62cd28('0x2b'),_0x588107['exten']=_0x62cd28('0x25'),_0x588107[_0x62cd28('0x9')]=0x0,_0x588107[_0x62cd28('0x5')]=0x1,_0x588107['lastAssignedTo']=_0x4bf413[_0x62cd28('0x2c')],_0x588107[_0x62cd28('0x1')]=_0x62cd28('0x1a'),Promise[_0x62cd28('0x23')]()[_0x62cd28('0x6')](voiceQueueReport['create'](_0x588107))['catch'](loggerCatch(_0x62cd28('0x29')));},exports[_0x48ebf5('0x4')]=function(_0x1f67a5,_0x4b2204){const _0x16ad8c=_0x48ebf5;return Promise['resolve']()[_0x16ad8c('0x6')](cmHopper['getContactRecallMe'](_0x1f67a5,_0x4b2204))[_0x16ad8c('0x12')](loggerCatch(_0x16ad8c('0x13')));},exports[_0x48ebf5('0x30')]=function(_0x49f5cf){const _0x2221c1=_0x48ebf5;return Promise[_0x2221c1('0x23')]()[_0x2221c1('0x6')](cmHopper[_0x2221c1('0xf')](_0x49f5cf,!![],!![]))[_0x2221c1('0x12')](loggerCatch(_0x2221c1('0xc')));}; \ No newline at end of file +const a1253_0x5572=['answertime','countReScheduled','queuecallercompleteAt','unlockContact','../rpc/cmHopperBlack','create','[rescheduleContact]\x20','type','queuecallerjoinAt','preview','endtime','error','[countReScheduled]\x20','disableContact','checkIsBlackList','createCustomerFinal','calleridname','xcally-motion-preview','active','lastAssignedTo','../rpc/cmHopper','assigned','crateCustomerReportQueue','[checkIsBlackList]\x20','then','catch','exten','createHistory','rescheduleContact','resolve','membername','getContactRecallMe','queuecallerexitreason','COMPLETED','[getContactPreview]\x20','calleridnum','getContactPreview','[activeContact]\x20','uniqueid','context','[unlockContact]\x20','createCustomerHistory','[createHistory]\x20','moveContactManagedDialer','queue'];(function(_0x22c53f,_0x56e415){const _0x557232=function(_0x38bf84){while(--_0x38bf84){_0x22c53f['push'](_0x22c53f['shift']());}};_0x557232(++_0x56e415);}(a1253_0x5572,0x1cf));const a1253_0x38bf=function(_0x22c53f,_0x56e415){_0x22c53f=_0x22c53f-0xc9;let _0x557232=a1253_0x5572[_0x22c53f];return _0x557232;};const a1253_0xfd2eb9=a1253_0x38bf;'use strict';const util=require('util'),logger=require('../../../config/logger')(a1253_0xfd2eb9(0xf2)),cmHopper=require(a1253_0xfd2eb9(0xd0)),cmHopperHistory=require('../rpc/cmHopperHistory'),cmHopperBlack=require(a1253_0xfd2eb9(0xed)),agentReportPreview=require('../rpc/agentReportPreview'),voiceQueueReport=require('../rpc/voiceQueueReport');function loggerCatch(_0x214fc3){return function(_0x573b95){const _0x10f9f9=a1253_0x38bf;logger[_0x10f9f9(0xf4)](_0x214fc3,util['inspect'](_0x573b95,{'showHidden':![],'depth':null}));};}function create(_0x5baa59){const _0x2d9f1c=a1253_0xfd2eb9;return Promise['resolve']()[_0x2d9f1c(0xd4)](cmHopperHistory[_0x2d9f1c(0xd7)](_0x5baa59))[_0x2d9f1c(0xd5)](loggerCatch(_0x2d9f1c(0xe6)));}function createAgent(_0x3c4ab9){const _0xf113fd=a1253_0xfd2eb9;return Promise[_0xf113fd(0xd9)]()[_0xf113fd(0xd4)](agentReportPreview['createHistory'](_0x3c4ab9))[_0xf113fd(0xd5)](loggerCatch('[createHistory]\x20'));}function moveContact(_0x11d182){const _0x38c225=a1253_0xfd2eb9;return Promise[_0x38c225(0xd9)]()[_0x38c225(0xd4)](cmHopper[_0x38c225(0xe7)](_0x11d182,!![]))[_0x38c225(0xd5)](loggerCatch('[moveContactManagedDialer]\x20'));}exports[a1253_0xfd2eb9(0xca)]=function(_0x38f660){const _0x39d005=a1253_0xfd2eb9;return Promise[_0x39d005(0xd9)]()['then'](cmHopperBlack['checkIsBlackList'](_0x38f660))[_0x39d005(0xd5)](loggerCatch(_0x39d005(0xd3)));},exports[a1253_0xfd2eb9(0xe0)]=function(_0xaaf4b4){const _0x135943=a1253_0xfd2eb9;return Promise[_0x135943(0xd9)]()[_0x135943(0xd4)](cmHopper['getContactPreview'](_0xaaf4b4))[_0x135943(0xd5)](loggerCatch(_0x135943(0xde)));},exports[a1253_0xfd2eb9(0xd7)]=function(_0x683a27,_0xe78160){const _0x7447da=a1253_0xfd2eb9;create(_0x683a27)[_0x7447da(0xd5)](loggerCatch(_0xe78160)),moveContact(_0x683a27)[_0x7447da(0xd5)](loggerCatch(_0xe78160));},exports['createAgentHistory']=function(_0x1a9dfb,_0x1b7e0b){const _0x2dcb19=a1253_0xfd2eb9;createAgent(_0x1a9dfb)[_0x2dcb19(0xd5)](loggerCatch(_0x1b7e0b));},exports[a1253_0xfd2eb9(0xe5)]=function(_0x354afa,_0x3dfb35){const _0x4ca226=a1253_0xfd2eb9;create(_0x354afa)[_0x4ca226(0xd5)](loggerCatch(_0x3dfb35));},exports[a1253_0xfd2eb9(0xcb)]=function(_0x400c20,_0x41e0d3){const _0x4e3ef8=a1253_0xfd2eb9;moveContact(_0x400c20)[_0x4e3ef8(0xd5)](loggerCatch(_0x41e0d3));},exports['rescheduleContact']=function(_0x37dd1c,_0x54eb08,_0x23dc13){const _0x112aea=a1253_0xfd2eb9;return _0x54eb08&&(_0x37dd1c['UserId']=null),_0x23dc13&&(_0x37dd1c[_0x112aea(0xce)]=![]),Promise['resolve']()[_0x112aea(0xd4)](cmHopper[_0x112aea(0xd8)](_0x37dd1c))[_0x112aea(0xd5)](loggerCatch(_0x112aea(0xef)));},exports[a1253_0xfd2eb9(0xea)]=function(_0x1aecb2){const _0x239090=a1253_0xfd2eb9;return Promise[_0x239090(0xd9)]()[_0x239090(0xd4)](cmHopper[_0x239090(0xea)](_0x1aecb2))['catch'](loggerCatch(_0x239090(0xf5)));},exports[a1253_0xfd2eb9(0xec)]=function(_0x239cf3){const _0x57c358=a1253_0xfd2eb9;return Promise[_0x57c358(0xd9)]()[_0x57c358(0xd4)](cmHopper[_0x57c358(0xec)]({'UserId':null},_0x239cf3,0x1))[_0x57c358(0xd5)](loggerCatch(_0x57c358(0xe4)));},exports[a1253_0xfd2eb9(0xc9)]=function(_0x17c393){const _0x38d200=a1253_0xfd2eb9;return Promise[_0x38d200(0xd9)]()[_0x38d200(0xd4)](cmHopper['unlockContact']({'active':![]},_0x17c393,0x1))[_0x38d200(0xd5)](loggerCatch(_0x38d200(0xe1)));},exports[a1253_0xfd2eb9(0xd2)]=function(_0x4fc7ec){const _0x4ae8fc=a1253_0xfd2eb9,_0x238b96={};return _0x238b96[_0x4ae8fc(0xf0)]=_0x4fc7ec[_0x4ae8fc(0xf0)],_0x238b96[_0x4ae8fc(0xe2)]=_0x4fc7ec['uniqueid'],_0x238b96[_0x4ae8fc(0xdf)]=_0x4fc7ec['calleridnum'],_0x238b96[_0x4ae8fc(0xcc)]=_0x4fc7ec[_0x4ae8fc(0xcc)],_0x238b96[_0x4ae8fc(0xe8)]=_0x4fc7ec[_0x4ae8fc(0xe8)],_0x238b96[_0x4ae8fc(0xf1)]=_0x4fc7ec['answertime'],_0x238b96['queuecallerleaveAt']=_0x4fc7ec[_0x4ae8fc(0xe9)],_0x238b96['queuecallercomplete']=0x1,_0x238b96[_0x4ae8fc(0xeb)]=_0x4fc7ec[_0x4ae8fc(0xf3)],_0x238b96['connectedlinename']=_0x4fc7ec[_0x4ae8fc(0xda)],_0x238b96[_0x4ae8fc(0xe3)]='from-sip',_0x238b96[_0x4ae8fc(0xd6)]=_0x4ae8fc(0xcd),_0x238b96['holdtime']=0x0,_0x238b96[_0x4ae8fc(0xd1)]=0x1,_0x238b96[_0x4ae8fc(0xcf)]=_0x4fc7ec[_0x4ae8fc(0xda)],_0x238b96[_0x4ae8fc(0xdc)]=_0x4ae8fc(0xdd),Promise['resolve']()[_0x4ae8fc(0xd4)](voiceQueueReport[_0x4ae8fc(0xee)](_0x238b96))['catch'](loggerCatch('[voiceQueueReport]\x20'));},exports['getContactRecallMe']=function(_0x12a988,_0x3c7dd0){const _0x13dedb=a1253_0xfd2eb9;return Promise['resolve']()[_0x13dedb(0xd4)](cmHopper[_0x13dedb(0xdb)](_0x12a988,_0x3c7dd0))['catch'](loggerCatch('[GetContactRecallMe]\x20'));},exports['rescheduleContactInQueue']=function(_0x665821){const _0x29591e=a1253_0xfd2eb9;return Promise[_0x29591e(0xd9)]()[_0x29591e(0xd4)](cmHopper[_0x29591e(0xd8)](_0x665821,!![],!![]))[_0x29591e(0xd5)](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 a6fa43f..036c143 100644 --- a/server/services/ami/preview/util/util.js +++ b/server/services/ami/preview/util/util.js @@ -1 +1 @@ -const a1090_0x38ba=['dialer','status','[decrementTalkink]\x20is\x20null\x20or\x20undefined','BOOKED','answertime','channelAgent','createBody','toUpper','toLowerVariables','../../../../config/config.service','[updateOriginated]\x20object\x20originated\x20is\x20negative','format','isEmpty','moment','variablesAction','diff','statedesc','xmd-queue','logAgent','dialAnswer','state','interface','agiIp','Contact','isActive','dialQueueProject2','milliseconds','UserId','rtpaudioqoslossbridged','VoiceQueueId','rtpaudioqosjitterbridged','match','IsNotLoggedIn','rtpaudioqos','xmd-dialurl','uniqueid','rtpaudioqosloss','queue','monitor_format','[decrementTalkink]\x20object\x20talking\x20is\x20negative','dialPreviewUrl','dialOriginateTimeout','starttime','getCallerIdRandom','seconds','xmd-cdrtype','calleridname','lodash','xmd-dialoptions','pTalking','Global','extractCalleridName','Blacklist','bridgepeer','message','loggerError','callbackat','originatecalleridname','[updateOriginated]\x20is\x20null\x20or\x20undefined','dialQueueProject','YYYY-MM-DD\x20HH:mm:ss','calleridnum','xmd-agi','name','preview','NONE','\x22agi://%s/square,%s\x22','campaigntype','CampaignId','rtpaudioqosbridged','countbusyretry','cloneAction','xmd-dialchannel','countnosuchnumberretry','ListId','callbackuniqueid','filterKey','membername','ContactId','string','originatecalleridnum','RECALL','add','updateOriginated','XMD-','isFailure','push','responsetime','_XCALLY_MIXMONITOR_UNIQUEID','addVariables','\x5cw{0,','Failure','xcally-motion-preview','idContact','countglobal','Queue','info','logger','reachable','agentReadyId','getDiff','totalGlobal','loggerCatch','rtpaudioqosjitter','xmd-dialid','error','_XCALLY_MIXMONITOR_FORMAT','timeout','countcongestionretry','buildAcw','scheduledat','originated','undefined','pow','xmd-callerid','xmd-listid','xmd-agiafter','clone','isNil','logLookAgent','countnoanswerretry','bridgepvtcallid','%s%s','logBlacklist','\x22%s\x22\x20<%s>','ringtime','inspect','xmd-dialtimeout','endtime','isUndefined','rtpaudioqosrttbridged','getCallerId','countagentrejectretry','random','U(xcally-mixmonitor-context)','replace','xmd-phone','sipcallid'];(function(_0x5817e1,_0x38bad2){const _0x42e837=function(_0x5c5e19){while(--_0x5c5e19){_0x5817e1['push'](_0x5817e1['shift']());}};_0x42e837(++_0x38bad2);}(a1090_0x38ba,0x81));const a1090_0x42e8=function(_0x5817e1,_0x38bad2){_0x5817e1=_0x5817e1-0x0;let _0x42e837=a1090_0x38ba[_0x5817e1];return _0x42e837;};const _0x282881=a1090_0x42e8;'use strict';const util=require('util'),_=require(_0x282881('0x38')),moment=require(_0x282881('0x16')),logger=require('../../../../config/logger')(_0x282881('0x49')),{getConfigService}=require(_0x282881('0x12'));function getSeconds(_0x5c5e19,_0x5de4f7){const _0x4fb80f=_0x282881,_0x16b093=moment(_0x5c5e19)[_0x4fb80f('0x23')](0x0),_0x314ef8=moment(_0x5de4f7)[_0x4fb80f('0x23')](0x0);return _0x16b093[_0x4fb80f('0x18')](_0x314ef8,_0x4fb80f('0x35'));}exports[_0x282881('0x6f')]=function(_0x138163){return function(_0x30edbb){const _0x27c6cd=a1090_0x42e8;logger['error'](_0x138163,util[_0x27c6cd('0x87')](_0x30edbb,{'showHidden':![],'depth':null}));};},exports[_0x282881('0x6a')]=function(_0x4a4670,_0x26cf4d){logger['info'](_0x4a4670,util['inspect'](_0x26cf4d,{'showHidden':![],'depth':null}));},exports[_0x282881('0x40')]=function(_0x5a7b36,_0x3cb617){const _0x351f1b=_0x282881;logger[_0x351f1b('0x72')](_0x5a7b36,util[_0x351f1b('0x87')](_0x3cb617,{'showHidden':![],'depth':null}));},exports['logger2']=function(_0x42f1a6){return function(_0x9f8d3c){const _0x3e32b8=a1090_0x42e8;logger[_0x3e32b8('0x69')](_0x42f1a6,util[_0x3e32b8('0x87')](_0x9f8d3c,{'showHidden':![],'depth':null}));};},exports[_0x282881('0x3f')]=function(_0xb9067f,_0x4915b2,_0x6b78e4){return{'message':_0xb9067f,'unlock':_0x4915b2,'active':_0x6b78e4};},exports[_0x282881('0x2')]=function(_0x1aead8,_0x5db31b,_0x4ffdd){const _0x4383ec=_0x282881;if(!_[_0x4383ec('0x0')](_0x4ffdd)&&_0x4383ec('0x58')===typeof _0x4ffdd&&!_[_0x4383ec('0x15')](_0x4ffdd)){if(!_['isUndefined'](_0x5db31b)&&_0x4383ec('0x58')===typeof _0x5db31b&&!_[_0x4383ec('0x15')](_0x5db31b))return util[_0x4383ec('0x14')](_0x4383ec('0x85'),_0x5db31b,_0x4ffdd);return util['format'](_0x4383ec('0x85'),_0x4ffdd,_0x4ffdd);}if(!_[_0x4383ec('0x0')](_0x1aead8)&&_0x4383ec('0x58')===typeof _0x1aead8&&!_[_0x4383ec('0x15')](_0x1aead8))return _0x1aead8;return'\x22\x22\x20<>';},exports[_0x282881('0x21')]=function(_0x1383d1){const _0x4cf9c6=_0x282881;if(_[_0x4cf9c6('0x7f')](_0x1383d1))return![];return _0x1383d1;},exports[_0x282881('0x62')]=function(_0x2287f1,_0x17011b,_0x2c35b5,_0x1b098e,_0x1fbb4c,_0x44932b){const _0x2b7550=_0x282881,_0x291f58=getConfigService(),_0x1a6fbd={'XMD-QUEUE':_0x17011b[_0x2b7550('0x68')]?_0x17011b[_0x2b7550('0x68')][_0x2b7550('0x48')]:'','XMD-CALLERID':_0x1b098e,'XMD-CALLERID-PREVIEW':_0x44932b?util[_0x2b7550('0x14')]('\x22%s\x22\x20<%s>',_0x44932b[_0x2b7550('0x37')],_0x44932b['calleridnum']):_0x1b098e,'XMD-DIALID':_0x1fbb4c,'XMD-CONTACTID':_0x17011b['ContactId'],'XMD-CDRTYPE':_0x2b7550('0x9'),'CALLERID(all)':_0x1b098e,'XMD-VOICEQUEUEID':_0x17011b[_0x2b7550('0x26')],'XMD-DIALCHANNEL':_0x2c35b5,'XMD-DIALTIMEOUT':_0x2287f1[_0x2b7550('0x32')]||0x1e,'XMD-DIALOPTIONS':util['format']('\x22rtTxX%s%s\x22',_0x2287f1['dialQueueProject2']?'g':'',_[_0x2b7550('0x15')](_0x2287f1[_0x2b7550('0x2f')])?'':_0x2b7550('0x5')),'XMD-DIALURL':_0x2287f1[_0x2b7550('0x31')]||'','XMD-AGI':_0x2287f1[_0x2b7550('0x44')]?util['format'](_0x2b7550('0x4b'),_0x291f58[_0x2b7550('0x1f')],_0x2287f1[_0x2b7550('0x44')]):_0x2b7550('0x4a'),'XMD-AGIAFTER':_0x2287f1[_0x2b7550('0x22')]?util[_0x2b7550('0x14')](_0x2b7550('0x4b'),_0x291f58[_0x2b7550('0x1f')],_0x2287f1['dialQueueProject2']):_0x2b7550('0x4a'),'XMD-ORIGINATECALLERIDNUM':_0x44932b?_0x44932b[_0x2b7550('0x59')]:'','XMD-ORIGINATECALLERIDNAME':_0x44932b?_0x44932b[_0x2b7550('0x42')]:'','XMD-DESTINATION':'xcally-motion-preview'};!_[_0x2b7550('0x15')](_0x2287f1[_0x2b7550('0x2f')])&&(_0x1a6fbd[util[_0x2b7550('0x14')]('%s',_0x2b7550('0x73'))]=_0x2287f1[_0x2b7550('0x2f')],_0x1a6fbd[util[_0x2b7550('0x14')]('%s',_0x2b7550('0x61'))]=_0x1fbb4c);if(_0x17011b&&_0x17011b[_0x2b7550('0x20')])for(const _0x8df50d in _0x17011b['Contact']){typeof _0x17011b[_0x2b7550('0x20')][_0x8df50d]!==_0x2b7550('0x79')&&(!_[_0x2b7550('0x7f')](_0x17011b[_0x2b7550('0x20')][_0x8df50d])&&_0x8df50d!=='id'&&_0x8df50d!=='tags'&&_0x8df50d!=='createdAt'&&_0x8df50d!=='updatedAt'&&(_0x1a6fbd[util[_0x2b7550('0x14')](_0x2b7550('0x83'),_0x2b7550('0x5d'),_[_0x2b7550('0x10')](_0x8df50d))]=_0x17011b['Contact'][_0x8df50d]));}return _0x1a6fbd;},exports[_0x282881('0x11')]=function(_0x553ba1){const _0x47b516=_0x282881,_0x5c7c89={};for(const _0x3e0c02 in _0x553ba1){typeof _0x553ba1[_0x3e0c02]!==_0x47b516('0x79')&&(_0x5c7c89[util['format']('%s',_['toLower'](_0x3e0c02))]=_0x553ba1[_0x3e0c02]);}return{'variables':_0x5c7c89};},exports[_0x282881('0x5c')]=function(_0xc650d0,_0x30380a){const _0x76f1d6=_0x282881;!_['isNil'](_0xc650d0)?typeof _0xc650d0[_0x76f1d6('0x78')]!==_0x76f1d6('0x79')&&(_0xc650d0[_0x76f1d6('0x78')]>0x0?_0xc650d0['originated']-=0x1:logger[_0x76f1d6('0x72')](_0x76f1d6('0x13'),_0x30380a)):logger[_0x76f1d6('0x72')](_0x76f1d6('0x43'),_0x30380a);},exports[_0x282881('0x84')]=function(_0x419236){const _0x4024bd=_0x282881,_0x2ec869=moment()[_0x4024bd('0x14')]('YYYY-MM-DD\x20HH:mm:ss');_0x419236['state']=0xd,_0x419236[_0x4024bd('0x19')]=_0x4024bd('0x3d'),_0x419236['starttime']=_0x2ec869,_0x419236[_0x4024bd('0x60')]=_0x2ec869,_0x419236[_0x4024bd('0x89')]=_0x2ec869;},exports[_0x282881('0x1b')]=function(_0x56789d,_0x4ce499,_0x486db6){const _0x44c5cd=_0x282881,_0x5a5ad3=moment()[_0x44c5cd('0x14')](_0x44c5cd('0x45'));_0x56789d[_0x44c5cd('0x1d')]=_0x4ce499,_0x56789d['statedesc']=_0x486db6,_0x56789d[_0x44c5cd('0x60')]=_0x5a5ad3,_0x56789d[_0x44c5cd('0x86')]=getSeconds(_0x56789d[_0x44c5cd('0x60')],_0x56789d['starttime']);},exports[_0x282881('0x80')]=function(_0x176d4f,_0x1421e1,_0x4ad1cf){const _0x496a1d=_0x282881;_0x176d4f[_0x496a1d('0x56')]=_0x1421e1,_0x176d4f[_0x496a1d('0x24')]=_0x4ad1cf;},exports['logCustomer']=function(_0x2aeca0,_0x167208,_0x6fad9e){const _0x5556e1=_0x282881,_0x1f5179=moment()[_0x5556e1('0x14')](_0x5556e1('0x45'));_0x2aeca0[_0x5556e1('0x1d')]=_0x167208,_0x2aeca0['statedesc']=_0x6fad9e,_0x2aeca0[_0x5556e1('0x60')]=_0x2aeca0[_0x5556e1('0x60')]?_0x2aeca0['responsetime']:_0x1f5179,_0x2aeca0[_0x5556e1('0x89')]=_0x2aeca0[_0x5556e1('0x89')]?_0x2aeca0['endtime']:_0x1f5179,_0x2aeca0[_0x5556e1('0x86')]=getSeconds(_0x2aeca0[_0x5556e1('0x60')]||0x0,_0x2aeca0[_0x5556e1('0x33')]||0x0),_0x2aeca0['talktime']=_0x2aeca0[_0x5556e1('0xd')]?getSeconds(_0x2aeca0[_0x5556e1('0x89')],_0x2aeca0[_0x5556e1('0xd')]):0x0;},exports[_0x282881('0x5e')]=function(_0x3090ac){const _0x3ee132=_0x282881;return _0x3090ac===_0x3ee132('0x64');},exports[_0x282881('0x17')]=function(_0x3d9100,_0x1f84b2,_0x1912d2,_0x5c257f,_0x4b3c19){const _0x19547f=_0x282881;let _0x98f1c2=_0x5c257f?_0x19547f('0x5a'):_0x3d9100[_0x19547f('0x37')];return _0x98f1c2=_0x4b3c19?_0x19547f('0xc'):_0x98f1c2,{'actionid':_0x3d9100[_0x19547f('0x2c')],'action':'originate','channel':_0x3d9100[_0x19547f('0xe')],'callerid':util[_0x19547f('0x14')](_0x19547f('0x85'),_0x98f1c2,_0x3d9100[_0x19547f('0x46')]),'Exten':_0x19547f('0x65'),'Context':'from-sip','Priority':'1','variable':_0x1912d2,'timeout':(_0x1f84b2[_0x19547f('0x74')]||0x1e)*0x3e8,'async':!![],'channelid':_0x3d9100[_0x19547f('0x2c')]};},exports[_0x282881('0x6e')]=function(_0x31f152){const _0x4a2045=_0x282881;return _0x31f152['countbusyretry']+_0x31f152[_0x4a2045('0x75')]+_0x31f152[_0x4a2045('0x81')]+_0x31f152[_0x4a2045('0x3')]+_0x31f152[_0x4a2045('0x52')];},exports[_0x282881('0x50')]=function(_0x1accd6){const _0x40d674=_0x282881,_0x3108b4=_[_0x40d674('0x7e')](_0x1accd6);return _0x3108b4[_0x40d674('0x1d')]=0xf,_0x3108b4[_0x40d674('0x19')]=_0x40d674('0x3b'),_0x3108b4;},exports['scheduledAt']=function(_0x3da109,_0x3f0710,_0x4b1a13){const _0x2dd85c=_0x282881,_0x2fd4a0={};return _0x2fd4a0[_0x3f0710]=_0x3da109[_0x3f0710],_0x2fd4a0['active']=![],_0x2fd4a0[_0x2dd85c('0x77')]=moment()[_0x2dd85c('0x5b')](_0x4b1a13,'minutes')[_0x2dd85c('0x14')](_0x2dd85c('0x45')),_0x2fd4a0[_0x2dd85c('0x57')]=_0x3da109[_0x2dd85c('0x57')],_0x2fd4a0[_0x2dd85c('0x53')]=_0x3da109[_0x2dd85c('0x53')],_0x2fd4a0[_0x2dd85c('0x26')]=_0x3da109[_0x2dd85c('0x26')]||undefined,_0x2fd4a0;},exports['decrementTalkink']=function(_0x16497f,_0x29cba2){const _0x450263=_0x282881;!_[_0x450263('0x7f')](_0x16497f)?_0x16497f[_0x450263('0x3a')]>0x0?_0x16497f[_0x450263('0x3a')]-=0x1:logger[_0x450263('0x72')](_0x29cba2,_0x450263('0x30')):logger['error'](_0x29cba2,_0x450263('0xb'));},exports[_0x282881('0x29')]=function(_0x4e37bd){if(_0x4e37bd<=0x0)return!![];return![];},exports['buildObj']=function(_0x2752ea,_0x3f3813,_0x1dccc9){const _0x28d6e4=_0x282881;return _0x2752ea['lastevent']=_0x3f3813,_0x2752ea[_0x28d6e4('0x48')]=_0x2752ea['queue'],_0x2752ea[_0x28d6e4('0x1e')]=_0x2752ea[_0x28d6e4('0xe')],_0x1dccc9&&(_0x2752ea['mandatoryDisposition']=_0x1dccc9['mandatoryDisposition']),_0x2752ea;},exports[_0x282881('0x76')]=function(_0x1bdf41){const _0x1099e6=_0x282881,_0x3bda0a={};return _0x3bda0a[_0x1099e6('0x2e')]=_0x1bdf41[_0x1099e6('0x2e')],_0x3bda0a[_0x1099e6('0x1e')]=_0x1bdf41[_0x1099e6('0xe')],_0x3bda0a[_0x1099e6('0x2c')]=_0x1bdf41[_0x1099e6('0x2c')],_0x3bda0a;},exports[_0x282881('0x6c')]=function(_0x1fc3aa){const _0x4ba33d=_0x282881,_0x43ddd6=[];for(const _0x750774 in _0x1fc3aa){typeof _0x1fc3aa[_0x750774]!==_0x4ba33d('0x79')&&(!_[_0x4ba33d('0x7f')](_0x1fc3aa[_0x750774])&&_0x1fc3aa[_0x750774][_0x4ba33d('0x1d')]==='not_inuse'&&_0x1fc3aa[_0x750774][_0x4ba33d('0xa')]===_0x4ba33d('0x6b')&&_0x43ddd6[_0x4ba33d('0x5f')](_0x1fc3aa[_0x750774]['id']));}return _0x43ddd6;},exports[_0x282881('0x6d')]=function(_0x2fa466){const _0x4803cf=_0x282881,_0x1a533e=moment()[_0x4803cf('0x23')](0x0),_0xcc0a36=moment(_0x2fa466)[_0x4803cf('0x23')](0x0);return _0x1a533e['diff'](_0xcc0a36,_0x4803cf('0x35'));},exports[_0x282881('0xf')]=function(_0x52e76f){const _0x29667b=_0x282881;return{'active':![],'recallme':![],'UserId':null,'ContactId':_0x52e76f['ContactId'],'ListId':_0x52e76f[_0x29667b('0x53')],'VoiceQueueId':_0x52e76f[_0x29667b('0x26')]||undefined,'CampaignId':_0x52e76f[_0x29667b('0x4d')]||undefined};},exports[_0x282881('0x55')]=function(_0xe5e734){const _0x3c5d98=_0x282881;if(_0xe5e734==='uniqueid'||_0xe5e734===_0x3c5d98('0x66')||_0xe5e734===_0x3c5d98('0x2e')||_0xe5e734==='type'||_0xe5e734===_0x3c5d98('0x4c')||_0xe5e734===_0x3c5d98('0x1c')||_0xe5e734==='membername'||_0xe5e734===_0x3c5d98('0xe')||_0xe5e734===_0x3c5d98('0x37')||_0xe5e734==='active'||_0xe5e734==='calleridnum'||_0xe5e734===_0x3c5d98('0x77')||_0xe5e734===_0x3c5d98('0x4f')||_0xe5e734===_0x3c5d98('0x75')||_0xe5e734==='countnoanswerretry'||_0xe5e734===_0x3c5d98('0x67')||_0xe5e734==='callback'||_0xe5e734===_0x3c5d98('0x54')||_0xe5e734===_0x3c5d98('0x41')||_0xe5e734==='recallme'||_0xe5e734===_0x3c5d98('0x57')||_0xe5e734==='ListId'||_0xe5e734===_0x3c5d98('0x24')||_0xe5e734===_0x3c5d98('0x26')||_0xe5e734===_0x3c5d98('0x8')||_0xe5e734==='xmd-voicequeueid'||_0xe5e734===_0x3c5d98('0x1a')||_0xe5e734===_0x3c5d98('0x7')||_0xe5e734===_0x3c5d98('0x7c')||_0xe5e734===_0x3c5d98('0x2b')||_0xe5e734===_0x3c5d98('0x88')||_0xe5e734===_0x3c5d98('0x39')||_0xe5e734===_0x3c5d98('0x71')||_0xe5e734===_0x3c5d98('0x51')||_0xe5e734==='xmd-contactid'||_0xe5e734===_0x3c5d98('0x36')||_0xe5e734===_0x3c5d98('0x7b')||_0xe5e734===_0x3c5d98('0x7d')||_0xe5e734===_0x3c5d98('0x47')||_0xe5e734===_0x3c5d98('0x2a')||_0xe5e734===_0x3c5d98('0x4e')||_0xe5e734===_0x3c5d98('0x70')||_0xe5e734===_0x3c5d98('0x27')||_0xe5e734===_0x3c5d98('0x2d')||_0xe5e734===_0x3c5d98('0x25')||_0xe5e734==='rtpaudioqosrtt'||_0xe5e734===_0x3c5d98('0x1')||_0xe5e734===_0x3c5d98('0x2a')||_0xe5e734===_0x3c5d98('0x4e')||_0xe5e734==='rtpaudioqosjitter'||_0xe5e734==='rtpaudioqosjitterbridged'||_0xe5e734===_0x3c5d98('0x2d')||_0xe5e734===_0x3c5d98('0x25')||_0xe5e734==='rtpaudioqosrtt'||_0xe5e734===_0x3c5d98('0x1')||_0xe5e734===_0x3c5d98('0x3e')||_0xe5e734===_0x3c5d98('0x82')||_0xe5e734===_0x3c5d98('0x1d')||_0xe5e734===_0x3c5d98('0x19'))return![];return!![];},exports[_0x282881('0x34')]=function(_0x2e390d,_0x3ade76){const _0x4bd1cc=_0x282881;_0x3ade76<=0x0&&(_0x3ade76=0x1);const _0x337a71=new RegExp(_0x4bd1cc('0x63')+_0x3ade76+'}$'),_0x34174c=Math[_0x4bd1cc('0x7a')](0xa,_0x3ade76-0x1),_0x2ba224=Math[_0x4bd1cc('0x7a')](0xa,_0x3ade76)-0x1;return util['format']('%s',_[_0x4bd1cc('0x6')](_0x2e390d,_0x337a71,_[_0x4bd1cc('0x4')](_0x34174c,_0x2ba224)));},exports[_0x282881('0x3c')]=function(_0x503e04){const _0x1f1411=_0x282881,_0x850fc3=_0x503e04[_0x1f1411('0x28')](/"(.*?)"/);return _0x850fc3?_0x850fc3[0x1]:_0x503e04;},exports['extractCalleridNumber']=function(_0x2a7173){const _0x5c6a9b=_0x282881,_0x4d726a=_0x2a7173[_0x5c6a9b('0x28')](/<(.*?)>/);return _0x4d726a?_0x4d726a[0x1]:_0x2a7173;}; \ No newline at end of file +const a1254_0x1f36=['extractCalleridName','logger','[decrementTalkink]\x20is\x20null\x20or\x20undefined','UserId','scheduledAt','message','xmd-dialurl','milliseconds','toLower','moment','createdAt','YYYY-MM-DD\x20HH:mm:ss','idContact','ListId','filterKey','lastevent','interface','pow','getCallerId','inspect','format','uniqueid','logAgent','logger2','countnoanswerretry','createBody','add','bridgepeer','mandatoryDisposition','preview','countnosuchnumberretry','type','buildAcw','state','callback','decrementTalkink','rtpaudioqosloss','xmd-dialchannel','tags','_XCALLY_MIXMONITOR_FORMAT','membername','not_inuse','util','dialOriginateTimeout','answertime','name','Blacklist','responsetime','xmd-dialid','seconds','Failure','talktime','originate','statedesc','[updateOriginated]\x20is\x20null\x20or\x20undefined','_XCALLY_MIXMONITOR_UNIQUEID','scheduledat','endtime','isUndefined','dialer','rtpaudioqos','getDiff','starttime','calleridnum','xmd-phone','rtpaudioqosbridged','BOOKED','status','logLookAgent','string','rtpaudioqosjitterbridged','calleridname','xmd-voicequeueid','match','from-sip','lodash','xmd-queue','countbusyretry','\x22agi://%s/square,%s\x22','NONE','IsNotLoggedIn','ContactId','undefined','isNil','Contact','VoiceQueueId','[updateOriginated]\x20object\x20originated\x20is\x20negative','isFailure','xmd-dialtimeout','queue','dialQueueProject2','[decrementTalkink]\x20object\x20talking\x20is\x20negative','loggerError','channelAgent','xmd-callerid','info','dialPreviewUrl','rtpaudioqosrttbridged','active','loggerCatch','../../../../config/logger','\x22rtTxX%s%s\x22','monitor_format','\x22%s\x22\x20<%s>','dialQueueProject','../../../../config/config.service','originatecalleridnum','originated','callbackuniqueid','rtpaudioqosjitter','pTalking','isEmpty','diff','rtpaudioqosrtt','error','\x22\x22\x20<>','agentReadyId','rtpaudioqoslossbridged','minutes','countcongestionretry','xmd-agiafter','recallme','ringtime','countglobal','extractCalleridNumber','cloneAction','updatedAt','Queue'];(function(_0x26493d,_0x564c1c){const _0x1f36ce=function(_0x3b2291){while(--_0x3b2291){_0x26493d['push'](_0x26493d['shift']());}};_0x1f36ce(++_0x564c1c);}(a1254_0x1f36,0x1cd));const a1254_0x3b22=function(_0x26493d,_0x564c1c){_0x26493d=_0x26493d-0xc2;let _0x1f36ce=a1254_0x1f36[_0x26493d];return _0x1f36ce;};const a1254_0x36bdde=a1254_0x3b22;'use strict';const util=require(a1254_0x36bdde(0x11f)),_=require(a1254_0x36bdde(0x140)),moment=require(a1254_0x36bdde(0xfe)),logger=require(a1254_0x36bdde(0xd9))(a1254_0x36bdde(0x112)),{getConfigService}=require(a1254_0x36bdde(0xde));function getSeconds(_0x1b9b6d,_0xd2e44){const _0x407950=a1254_0x36bdde,_0xf1fe0c=moment(_0x1b9b6d)[_0x407950(0xfc)](0x0),_0x5746ea=moment(_0xd2e44)['milliseconds'](0x0);return _0xf1fe0c[_0x407950(0xe5)](_0x5746ea,_0x407950(0x126));}exports[a1254_0x36bdde(0xd8)]=function(_0x387307){return function(_0x537569){const _0x11fa27=a1254_0x3b22;logger[_0x11fa27(0xe7)](_0x387307,util[_0x11fa27(0x108)](_0x537569,{'showHidden':![],'depth':null}));};},exports[a1254_0x36bdde(0xf6)]=function(_0x13559e,_0x49ed5f){const _0x281b27=a1254_0x36bdde;logger[_0x281b27(0xd4)](_0x13559e,util[_0x281b27(0x108)](_0x49ed5f,{'showHidden':![],'depth':null}));},exports[a1254_0x36bdde(0xd1)]=function(_0xa9e018,_0x26d526){logger['error'](_0xa9e018,util['inspect'](_0x26d526,{'showHidden':![],'depth':null}));},exports[a1254_0x36bdde(0x10c)]=function(_0x41fd42){return function(_0x57c009){const _0x460aa5=a1254_0x3b22;logger[_0x460aa5(0xd4)](_0x41fd42,util[_0x460aa5(0x108)](_0x57c009,{'showHidden':![],'depth':null}));};},exports[a1254_0x36bdde(0xfa)]=function(_0x163fed,_0x4daf90,_0x52effb){return{'message':_0x163fed,'unlock':_0x4daf90,'active':_0x52effb};},exports[a1254_0x36bdde(0x107)]=function(_0xe394a,_0x5d86ed,_0x2c2efa){const _0x466ed1=a1254_0x36bdde;if(!_['isUndefined'](_0x2c2efa)&&_0x466ed1(0x13a)===typeof _0x2c2efa&&!_[_0x466ed1(0xe4)](_0x2c2efa)){if(!_[_0x466ed1(0x12f)](_0x5d86ed)&&_0x466ed1(0x13a)===typeof _0x5d86ed&&!_['isEmpty'](_0x5d86ed))return util[_0x466ed1(0x109)](_0x466ed1(0xdc),_0x5d86ed,_0x2c2efa);return util[_0x466ed1(0x109)](_0x466ed1(0xdc),_0x2c2efa,_0x2c2efa);}if(!_[_0x466ed1(0x12f)](_0xe394a)&&_0x466ed1(0x13a)===typeof _0xe394a&&!_['isEmpty'](_0xe394a))return _0xe394a;return _0x466ed1(0xe8);},exports['isActive']=function(_0x3b0b79){const _0x2d5389=a1254_0x36bdde;if(_[_0x2d5389(0xc8)](_0x3b0b79))return![];return _0x3b0b79;},exports['addVariables']=function(_0x52c1db,_0x5a9ded,_0x327997,_0x4c0557,_0x57a60d,_0x4a8299){const _0x39f2cd=a1254_0x36bdde,_0x1407b3=getConfigService(),_0x1d0dfc={'XMD-QUEUE':_0x5a9ded[_0x39f2cd(0xf4)]?_0x5a9ded[_0x39f2cd(0xf4)][_0x39f2cd(0x122)]:'','XMD-CALLERID':_0x4c0557,'XMD-CALLERID-PREVIEW':_0x4a8299?util[_0x39f2cd(0x109)](_0x39f2cd(0xdc),_0x4a8299[_0x39f2cd(0x13c)],_0x4a8299[_0x39f2cd(0x134)]):_0x4c0557,'XMD-DIALID':_0x57a60d,'XMD-CONTACTID':_0x5a9ded[_0x39f2cd(0xc6)],'XMD-CDRTYPE':_0x39f2cd(0x130),'CALLERID(all)':_0x4c0557,'XMD-VOICEQUEUEID':_0x5a9ded[_0x39f2cd(0xca)],'XMD-DIALCHANNEL':_0x327997,'XMD-DIALTIMEOUT':_0x52c1db[_0x39f2cd(0x120)]||0x1e,'XMD-DIALOPTIONS':util[_0x39f2cd(0x109)](_0x39f2cd(0xda),_0x52c1db[_0x39f2cd(0xcf)]?'g':'',_[_0x39f2cd(0xe4)](_0x52c1db['monitor_format'])?'':'U(xcally-mixmonitor-context)'),'XMD-DIALURL':_0x52c1db[_0x39f2cd(0xd5)]||'','XMD-AGI':_0x52c1db[_0x39f2cd(0xdd)]?util[_0x39f2cd(0x109)]('\x22agi://%s/square,%s\x22',_0x1407b3['agiIp'],_0x52c1db[_0x39f2cd(0xdd)]):_0x39f2cd(0xc4),'XMD-AGIAFTER':_0x52c1db['dialQueueProject2']?util['format'](_0x39f2cd(0xc3),_0x1407b3['agiIp'],_0x52c1db['dialQueueProject2']):'NONE','XMD-ORIGINATECALLERIDNUM':_0x4a8299?_0x4a8299[_0x39f2cd(0xdf)]:'','XMD-ORIGINATECALLERIDNAME':_0x4a8299?_0x4a8299['originatecalleridname']:'','XMD-DESTINATION':'xcally-motion-preview'};!_[_0x39f2cd(0xe4)](_0x52c1db[_0x39f2cd(0xdb)])&&(_0x1d0dfc[util[_0x39f2cd(0x109)]('%s',_0x39f2cd(0x11c))]=_0x52c1db['monitor_format'],_0x1d0dfc[util[_0x39f2cd(0x109)]('%s',_0x39f2cd(0x12c))]=_0x57a60d);if(_0x5a9ded&&_0x5a9ded[_0x39f2cd(0xc9)])for(const _0x5db332 in _0x5a9ded[_0x39f2cd(0xc9)]){typeof _0x5a9ded['Contact'][_0x5db332]!=='undefined'&&(!_[_0x39f2cd(0xc8)](_0x5a9ded[_0x39f2cd(0xc9)][_0x5db332])&&_0x5db332!=='id'&&_0x5db332!==_0x39f2cd(0x11b)&&_0x5db332!==_0x39f2cd(0xff)&&_0x5db332!==_0x39f2cd(0xf3)&&(_0x1d0dfc[util[_0x39f2cd(0x109)]('%s%s','XMD-',_['toUpper'](_0x5db332))]=_0x5a9ded[_0x39f2cd(0xc9)][_0x5db332]));}return _0x1d0dfc;},exports['toLowerVariables']=function(_0x5c2989){const _0x4536d6=a1254_0x36bdde,_0x550d4e={};for(const _0x1db61b in _0x5c2989){typeof _0x5c2989[_0x1db61b]!=='undefined'&&(_0x550d4e[util[_0x4536d6(0x109)]('%s',_[_0x4536d6(0xfd)](_0x1db61b))]=_0x5c2989[_0x1db61b]);}return{'variables':_0x550d4e};},exports['updateOriginated']=function(_0x17ce0a,_0x1ee1f2){const _0x2810ba=a1254_0x36bdde;!_['isNil'](_0x17ce0a)?typeof _0x17ce0a[_0x2810ba(0xe0)]!==_0x2810ba(0xc7)&&(_0x17ce0a[_0x2810ba(0xe0)]>0x0?_0x17ce0a['originated']-=0x1:logger[_0x2810ba(0xe7)](_0x2810ba(0xcb),_0x1ee1f2)):logger[_0x2810ba(0xe7)](_0x2810ba(0x12b),_0x1ee1f2);},exports['logBlacklist']=function(_0x343b20){const _0x354e3b=a1254_0x36bdde,_0x594eef=moment()[_0x354e3b(0x109)]('YYYY-MM-DD\x20HH:mm:ss');_0x343b20[_0x354e3b(0x116)]=0xd,_0x343b20[_0x354e3b(0x12a)]=_0x354e3b(0x123),_0x343b20[_0x354e3b(0x133)]=_0x594eef,_0x343b20[_0x354e3b(0x124)]=_0x594eef,_0x343b20[_0x354e3b(0x12e)]=_0x594eef;},exports[a1254_0x36bdde(0x10b)]=function(_0xc840bb,_0x46cade,_0x3a46b3){const _0x6b6206=a1254_0x36bdde,_0x58a612=moment()[_0x6b6206(0x109)](_0x6b6206(0x100));_0xc840bb[_0x6b6206(0x116)]=_0x46cade,_0xc840bb[_0x6b6206(0x12a)]=_0x3a46b3,_0xc840bb[_0x6b6206(0x124)]=_0x58a612,_0xc840bb[_0x6b6206(0xef)]=getSeconds(_0xc840bb['responsetime'],_0xc840bb[_0x6b6206(0x133)]);},exports[a1254_0x36bdde(0x139)]=function(_0x379dc7,_0x465653,_0x5e6253){_0x379dc7['membername']=_0x465653,_0x379dc7['UserId']=_0x5e6253;},exports['logCustomer']=function(_0x91d72,_0x5b3c58,_0x4ed5c7){const _0x238c84=a1254_0x36bdde,_0x42ff40=moment()[_0x238c84(0x109)](_0x238c84(0x100));_0x91d72['state']=_0x5b3c58,_0x91d72[_0x238c84(0x12a)]=_0x4ed5c7,_0x91d72['responsetime']=_0x91d72[_0x238c84(0x124)]?_0x91d72[_0x238c84(0x124)]:_0x42ff40,_0x91d72[_0x238c84(0x12e)]=_0x91d72[_0x238c84(0x12e)]?_0x91d72[_0x238c84(0x12e)]:_0x42ff40,_0x91d72[_0x238c84(0xef)]=getSeconds(_0x91d72[_0x238c84(0x124)]||0x0,_0x91d72['starttime']||0x0),_0x91d72[_0x238c84(0x128)]=_0x91d72[_0x238c84(0x121)]?getSeconds(_0x91d72[_0x238c84(0x12e)],_0x91d72[_0x238c84(0x121)]):0x0;},exports[a1254_0x36bdde(0xcc)]=function(_0x1a7f44){const _0x294026=a1254_0x36bdde;return _0x1a7f44===_0x294026(0x127);},exports['variablesAction']=function(_0x5eb2a4,_0x5d1b6e,_0x494dbd,_0x2cfa4d,_0x24931d){const _0x4420e5=a1254_0x36bdde;let _0x4a6240=_0x2cfa4d?'RECALL':_0x5eb2a4[_0x4420e5(0x13c)];return _0x4a6240=_0x24931d?_0x4420e5(0x137):_0x4a6240,{'actionid':_0x5eb2a4[_0x4420e5(0x10a)],'action':_0x4420e5(0x129),'channel':_0x5eb2a4['channelAgent'],'callerid':util[_0x4420e5(0x109)](_0x4420e5(0xdc),_0x4a6240,_0x5eb2a4['calleridnum']),'Exten':'xcally-motion-preview','Context':_0x4420e5(0x13f),'Priority':'1','variable':_0x494dbd,'timeout':(_0x5d1b6e['timeout']||0x1e)*0x3e8,'async':!![],'channelid':_0x5eb2a4['uniqueid']};},exports['totalGlobal']=function(_0xccf8e3){const _0x1f7f7e=a1254_0x36bdde;return _0xccf8e3['countbusyretry']+_0xccf8e3[_0x1f7f7e(0xec)]+_0xccf8e3['countnoanswerretry']+_0xccf8e3['countagentrejectretry']+_0xccf8e3[_0x1f7f7e(0x113)];},exports[a1254_0x36bdde(0xf2)]=function(_0x428fff){const _0x348301=a1254_0x36bdde,_0x414d6c=_['clone'](_0x428fff);return _0x414d6c['state']=0xf,_0x414d6c[_0x348301(0x12a)]='Global',_0x414d6c;},exports[a1254_0x36bdde(0xf9)]=function(_0x5f2b76,_0xee4518,_0x1922aa){const _0x1722e3=a1254_0x36bdde,_0x15cfa2={};return _0x15cfa2[_0xee4518]=_0x5f2b76[_0xee4518],_0x15cfa2[_0x1722e3(0xd7)]=![],_0x15cfa2[_0x1722e3(0x12d)]=moment()[_0x1722e3(0x10f)](_0x1922aa,_0x1722e3(0xeb))[_0x1722e3(0x109)](_0x1722e3(0x100)),_0x15cfa2[_0x1722e3(0xc6)]=_0x5f2b76[_0x1722e3(0xc6)],_0x15cfa2[_0x1722e3(0x102)]=_0x5f2b76[_0x1722e3(0x102)],_0x15cfa2[_0x1722e3(0xca)]=_0x5f2b76[_0x1722e3(0xca)]||undefined,_0x15cfa2;},exports[a1254_0x36bdde(0x118)]=function(_0x53f90a,_0x352f9a){const _0x5ad891=a1254_0x36bdde;!_['isNil'](_0x53f90a)?_0x53f90a[_0x5ad891(0xe3)]>0x0?_0x53f90a[_0x5ad891(0xe3)]-=0x1:logger[_0x5ad891(0xe7)](_0x352f9a,_0x5ad891(0xd0)):logger[_0x5ad891(0xe7)](_0x352f9a,_0x5ad891(0xf7));},exports[a1254_0x36bdde(0xc5)]=function(_0xca408c){if(_0xca408c<=0x0)return!![];return![];},exports['buildObj']=function(_0x22ec7e,_0x2d575a,_0x36255a){const _0x4a52a4=a1254_0x36bdde;return _0x22ec7e[_0x4a52a4(0x104)]=_0x2d575a,_0x22ec7e[_0x4a52a4(0x122)]=_0x22ec7e['queue'],_0x22ec7e[_0x4a52a4(0x105)]=_0x22ec7e[_0x4a52a4(0xd2)],_0x36255a&&(_0x22ec7e[_0x4a52a4(0x111)]=_0x36255a[_0x4a52a4(0x111)]),_0x22ec7e;},exports[a1254_0x36bdde(0x115)]=function(_0x414b0d){const _0x4e76d3=a1254_0x36bdde,_0x8241b3={};return _0x8241b3[_0x4e76d3(0xce)]=_0x414b0d[_0x4e76d3(0xce)],_0x8241b3['interface']=_0x414b0d['channelAgent'],_0x8241b3[_0x4e76d3(0x10a)]=_0x414b0d['uniqueid'],_0x8241b3;},exports[a1254_0x36bdde(0xe9)]=function(_0x58c456){const _0x45e152=a1254_0x36bdde,_0x27bc3f=[];for(const _0x5fda1 in _0x58c456){typeof _0x58c456[_0x5fda1]!==_0x45e152(0xc7)&&(!_['isNil'](_0x58c456[_0x5fda1])&&_0x58c456[_0x5fda1]['state']===_0x45e152(0x11e)&&_0x58c456[_0x5fda1][_0x45e152(0x138)]==='reachable'&&_0x27bc3f['push'](_0x58c456[_0x5fda1]['id']));}return _0x27bc3f;},exports[a1254_0x36bdde(0x132)]=function(_0x47c2f4){const _0x399e0b=a1254_0x36bdde,_0x4ca391=moment()['milliseconds'](0x0),_0x4dc65c=moment(_0x47c2f4)[_0x399e0b(0xfc)](0x0);return _0x4ca391[_0x399e0b(0xe5)](_0x4dc65c,_0x399e0b(0x126));},exports[a1254_0x36bdde(0x10e)]=function(_0x3f5bf9){const _0x28b6cc=a1254_0x36bdde;return{'active':![],'recallme':![],'UserId':null,'ContactId':_0x3f5bf9[_0x28b6cc(0xc6)],'ListId':_0x3f5bf9[_0x28b6cc(0x102)],'VoiceQueueId':_0x3f5bf9['VoiceQueueId']||undefined,'CampaignId':_0x3f5bf9['CampaignId']||undefined};},exports[a1254_0x36bdde(0x103)]=function(_0x3a02b9){const _0x5316f8=a1254_0x36bdde;if(_0x3a02b9===_0x5316f8(0x10a)||_0x3a02b9===_0x5316f8(0x101)||_0x3a02b9==='queue'||_0x3a02b9===_0x5316f8(0x114)||_0x3a02b9==='campaigntype'||_0x3a02b9==='dialAnswer'||_0x3a02b9===_0x5316f8(0x11d)||_0x3a02b9==='channelAgent'||_0x3a02b9===_0x5316f8(0x13c)||_0x3a02b9===_0x5316f8(0xd7)||_0x3a02b9==='calleridnum'||_0x3a02b9===_0x5316f8(0x12d)||_0x3a02b9===_0x5316f8(0xc2)||_0x3a02b9===_0x5316f8(0xec)||_0x3a02b9===_0x5316f8(0x10d)||_0x3a02b9===_0x5316f8(0xf0)||_0x3a02b9===_0x5316f8(0x117)||_0x3a02b9===_0x5316f8(0xe1)||_0x3a02b9==='callbackat'||_0x3a02b9===_0x5316f8(0xee)||_0x3a02b9==='ContactId'||_0x3a02b9==='ListId'||_0x3a02b9===_0x5316f8(0xf8)||_0x3a02b9===_0x5316f8(0xca)||_0x3a02b9==='sipcallid'||_0x3a02b9===_0x5316f8(0x13d)||_0x3a02b9===_0x5316f8(0x141)||_0x3a02b9===_0x5316f8(0x135)||_0x3a02b9==='xmd-listid'||_0x3a02b9===_0x5316f8(0xfb)||_0x3a02b9===_0x5316f8(0xcd)||_0x3a02b9==='xmd-dialoptions'||_0x3a02b9===_0x5316f8(0x125)||_0x3a02b9===_0x5316f8(0x11a)||_0x3a02b9==='xmd-contactid'||_0x3a02b9==='xmd-cdrtype'||_0x3a02b9===_0x5316f8(0xd3)||_0x3a02b9===_0x5316f8(0xed)||_0x3a02b9==='xmd-agi'||_0x3a02b9==='rtpaudioqos'||_0x3a02b9===_0x5316f8(0x136)||_0x3a02b9===_0x5316f8(0xe2)||_0x3a02b9===_0x5316f8(0x13b)||_0x3a02b9==='rtpaudioqosloss'||_0x3a02b9===_0x5316f8(0xea)||_0x3a02b9===_0x5316f8(0xe6)||_0x3a02b9===_0x5316f8(0xd6)||_0x3a02b9===_0x5316f8(0x131)||_0x3a02b9===_0x5316f8(0x136)||_0x3a02b9===_0x5316f8(0xe2)||_0x3a02b9==='rtpaudioqosjitterbridged'||_0x3a02b9===_0x5316f8(0x119)||_0x3a02b9===_0x5316f8(0xea)||_0x3a02b9===_0x5316f8(0xe6)||_0x3a02b9==='rtpaudioqosrttbridged'||_0x3a02b9===_0x5316f8(0x110)||_0x3a02b9==='bridgepvtcallid'||_0x3a02b9===_0x5316f8(0x116)||_0x3a02b9===_0x5316f8(0x12a))return![];return!![];},exports['getCallerIdRandom']=function(_0x5bb23e,_0x55fe5d){const _0xf456ff=a1254_0x36bdde;_0x55fe5d<=0x0&&(_0x55fe5d=0x1);const _0x53b869=new RegExp('\x5cw{0,'+_0x55fe5d+'}$'),_0x460fea=Math[_0xf456ff(0x106)](0xa,_0x55fe5d-0x1),_0x5e14cb=Math[_0xf456ff(0x106)](0xa,_0x55fe5d)-0x1;return util[_0xf456ff(0x109)]('%s',_['replace'](_0x5bb23e,_0x53b869,_['random'](_0x460fea,_0x5e14cb)));},exports[a1254_0x36bdde(0xf5)]=function(_0x324f0b){const _0x36dd33=a1254_0x36bdde,_0x5bde58=_0x324f0b[_0x36dd33(0x13e)](/"(.*?)"/);return _0x5bde58?_0x5bde58[0x1]:_0x324f0b;},exports[a1254_0x36bdde(0xf1)]=function(_0x5ae916){const _0x5268fe=a1254_0x36bdde,_0x5f0df3=_0x5ae916[_0x5268fe(0x13e)](/<(.*?)>/);return _0x5f0df3?_0x5f0df3[0x1]:_0x5ae916;}; \ No newline at end of file diff --git a/server/services/ami/properties.js b/server/services/ami/properties.js index 5e6f7ba..2125c1f 100644 --- a/server/services/ami/properties.js +++ b/server/services/ami/properties.js @@ -1 +1 @@ -var a1091_0x54fe=['boolean','voicequeuechannelredirect','queueremove','voicequeuechannel','string','reload','queuepause'];(function(_0x26f4a1,_0x54fe67){var _0x39026f=function(_0x59a2e0){while(--_0x59a2e0){_0x26f4a1['push'](_0x26f4a1['shift']());}};_0x39026f(++_0x54fe67);}(a1091_0x54fe,0x16c));var a1091_0x3902=function(_0x26f4a1,_0x54fe67){_0x26f4a1=_0x26f4a1-0x0;var _0x39026f=a1091_0x54fe[_0x26f4a1];return _0x39026f;};var _0x4f74bc=a1091_0x3902;'use strict';exports['queueadd']={'queue':{'type':_0x4f74bc('0x4'),'required':!![]},'interface':{'type':_0x4f74bc('0x4'),'required':!![]},'membername':{'type':_0x4f74bc('0x4'),'required':!![]},'penalty':{'type':'number','required':![]},'paused':{'type':_0x4f74bc('0x0'),'required':![]}},exports[_0x4f74bc('0x2')]={'queue':{'type':_0x4f74bc('0x4'),'required':!![]},'interface':{'type':_0x4f74bc('0x4'),'required':!![]}},exports[_0x4f74bc('0x6')]={'interface':{'type':_0x4f74bc('0x4'),'required':!![]},'paused':{'type':_0x4f74bc('0x0')},'reason':{'type':_0x4f74bc('0x4'),'required':![]}},exports[_0x4f74bc('0x5')]={'module':{'type':_0x4f74bc('0x4'),'required':![]}},exports[_0x4f74bc('0x3')]={'uniqueid':{'type':_0x4f74bc('0x4'),'required':!![]}},exports['voicechannel']={'uniqueid':{'type':_0x4f74bc('0x4'),'required':!![]},'filename':{'type':'string'},'format':{'type':'string'},'mixmonitorid':{'type':'string'}},exports['voicequeuechannelhangup']={'uniqueid':{'type':'string','required':!![]}},exports[_0x4f74bc('0x1')]={'uniqueid':{'type':_0x4f74bc('0x4'),'required':!![]},'exten':{'type':_0x4f74bc('0x4'),'required':!![]},'context':{'type':_0x4f74bc('0x4')}}; \ No newline at end of file +var a1255_0x1112=['boolean','number','reload','voicequeuechannelredirect','string','queuepause','queueadd'];(function(_0x225e0e,_0x18abe7){var _0x111237=function(_0x5f474f){while(--_0x5f474f){_0x225e0e['push'](_0x225e0e['shift']());}};_0x111237(++_0x18abe7);}(a1255_0x1112,0x8f));var a1255_0x5f47=function(_0x225e0e,_0x18abe7){_0x225e0e=_0x225e0e-0x164;var _0x111237=a1255_0x1112[_0x225e0e];return _0x111237;};var a1255_0xc32743=a1255_0x5f47;'use strict';exports[a1255_0xc32743(0x167)]={'queue':{'type':a1255_0xc32743(0x165),'required':!![]},'interface':{'type':a1255_0xc32743(0x165),'required':!![]},'membername':{'type':'string','required':!![]},'penalty':{'type':a1255_0xc32743(0x169),'required':![]},'paused':{'type':a1255_0xc32743(0x168),'required':![]}},exports['queueremove']={'queue':{'type':'string','required':!![]},'interface':{'type':'string','required':!![]}},exports[a1255_0xc32743(0x166)]={'interface':{'type':a1255_0xc32743(0x165),'required':!![]},'paused':{'type':a1255_0xc32743(0x168)},'reason':{'type':a1255_0xc32743(0x165),'required':![]}},exports[a1255_0xc32743(0x16a)]={'module':{'type':a1255_0xc32743(0x165),'required':![]}},exports['voicequeuechannel']={'uniqueid':{'type':a1255_0xc32743(0x165),'required':!![]}},exports['voicechannel']={'uniqueid':{'type':a1255_0xc32743(0x165),'required':!![]},'filename':{'type':a1255_0xc32743(0x165)},'format':{'type':a1255_0xc32743(0x165)},'mixmonitorid':{'type':a1255_0xc32743(0x165)}},exports['voicequeuechannelhangup']={'uniqueid':{'type':a1255_0xc32743(0x165),'required':!![]}},exports[a1255_0xc32743(0x164)]={'uniqueid':{'type':a1255_0xc32743(0x165),'required':!![]},'exten':{'type':a1255_0xc32743(0x165),'required':!![]},'context':{'type':a1255_0xc32743(0x165)}}; \ No newline at end of file diff --git a/server/services/ami/realtime/index.js b/server/services/ami/realtime/index.js index 2ea68c8..9a67083 100644 --- a/server/services/ami/realtime/index.js +++ b/server/services/ami/realtime/index.js @@ -1 +1 @@ -const a1092_0x2be8=['queuecallercompleteAt','format','billableseconds','diff','initTrunks','ANSWERED','sumDuration','exports','salesforceAccounts','SIP/%s','initCampaignHopperHistory','initCampaigns','SquareProject','initTriggers','../model/voiceExtension','../model/deskAccount','../model/vtigerAccount','freshdeskAccounts','ivrTotalCallsDays','queuecallerabandonAt','isEmpty','queuecallercomplete','initVoiceExtensions','../model/campaign','queuecallerjoinAt','zendeskAccounts','moment','initDeskAccounts','uniqueid','outboundUnknownCallsDay','length','queuecallerabandon','vtigerAccounts','groupBy','campaigns','triggers','trunks','initZendeskAccounts','outboundCongestionCallsDay','channels','initFaxAccounts','../model/freshsalesAccount','mapKeys','answered','prototype','../model/servicenowAccount','outboundBusyCallsDay','voiceQueues','outboundNoSuchCallsDay','initVoiceCallReports','queuecallerexitAt','telephones','faxAccounts','../model/zendeskAccount','initZohoAccounts','initSalesforceAccounts','unmanaged','../model/zohoAccount','queuecallerexit','sumBillable','outboundRejectCallsDay','sugarcrmAccounts','dynamics365Accounts','total','merge','seconds','outboundAnswerAgiCallsDay','initTelephones','util','queuecallerleaveAt','timers','outboundBlacklistCallsDay','name','mergeFromDatabase','isUndefined','templates','duration','../model/trigger','../model/faxAccount','servicenowAccounts','dialQueueProject','ivrAnswerCallsDay','queueStatusComplete','voiceExtensions','initVoiceQueueReports','initServicenowAccounts','../model/dynamics365Account','interface','freshsalesAccounts','agents','outboundReCallsDay','isNil','../model/voiceQueue','undefined','initVoiceQueues','abandoned','../model/sugarcrmAccount','outboundOriginateFailureCallsDay','outboundDropCallsDayTimeout','outboundNoAnswerCallsDay','initFreshdeskAccounts','../model/template','../model/freshdeskAccount','zohoAccounts','initVtigerAccounts','../model/agent','deskAccounts','outbound','sumHoldTime','outboundDropCallsDayCallersExit'];(function(_0x14cb58,_0x2be897){const _0x35ea43=function(_0x502e25){while(--_0x502e25){_0x14cb58['push'](_0x14cb58['shift']());}};_0x35ea43(++_0x2be897);}(a1092_0x2be8,0x125));const a1092_0x35ea=function(_0x14cb58,_0x2be897){_0x14cb58=_0x14cb58-0x0;let _0x35ea43=a1092_0x2be8[_0x14cb58];return _0x35ea43;};const _0x1fddca=a1092_0x35ea;'use strict';const util=require(_0x1fddca('0x69')),_=require('lodash'),moment=require(_0x1fddca('0x3f')),Agent=require(_0x1fddca('0x20')),Telephone=require('../model/telephone'),Trunk=require('../model/trunk'),VoiceQueue=require(_0x1fddca('0x13')),Trigger=require(_0x1fddca('0x4')),Template=require(_0x1fddca('0x1c')),Campaign=require(_0x1fddca('0x3c')),VoiceExtension=require(_0x1fddca('0x33')),ZendeskAccount=require(_0x1fddca('0x5a')),SalesforceAccount=require('../model/salesforceAccount'),FreshdeskAccount=require(_0x1fddca('0x1d')),SugarcrmAccount=require(_0x1fddca('0x17')),ZohoAccount=require(_0x1fddca('0x5e')),DeskAccount=require(_0x1fddca('0x34')),VtigerAccount=require(_0x1fddca('0x35')),ServicenowAccount=require(_0x1fddca('0x52')),Dynamics365Account=require(_0x1fddca('0xd')),FreshsalesAccount=require(_0x1fddca('0x4e')),FaxAccount=require(_0x1fddca('0x5')),Realtime=function(){const _0x22199b=_0x1fddca;this[_0x22199b('0x10')]={},this[_0x22199b('0x58')]={},this['trunks']={},this[_0x22199b('0x54')]={},this[_0x22199b('0x48')]={},this[_0x22199b('0x47')]={},this[_0x22199b('0x2')]={},this[_0x22199b('0x22')]={'total':0x0,'answered':0x0,'sumHoldTime':0x0,'sumDuration':0x0,'sumBillable':0x0},this[_0x22199b('0xa')]={},this[_0x22199b('0x4c')]={},this['queueChannels']={},this['outboundChannels']={},this[_0x22199b('0x6b')]={},this[_0x22199b('0x3e')]={},this[_0x22199b('0x2d')]={},this[_0x22199b('0x62')]={},this[_0x22199b('0x36')]={},this[_0x22199b('0x1e')]={},this[_0x22199b('0x21')]={},this[_0x22199b('0x45')]={},this[_0x22199b('0x6')]={},this[_0x22199b('0x63')]={},this[_0x22199b('0xf')]={},this[_0x22199b('0x59')]={};};function freeIsNotKey(_0x502e25,_0x4b2ab5,_0x1bbdae){const _0x4554e8=_0x1fddca,_0x4f601c=_[_0x4554e8('0x4f')](_0x502e25,function(_0x3df631){return _0x3df631[_0x1bbdae];});for(const _0x4b7c23 in _0x4b2ab5){typeof _0x4b2ab5[_0x4b7c23]!==_0x4554e8('0x14')&&(!_0x4f601c[_0x4b7c23]&&delete _0x4b2ab5[_0x4b7c23]);}}function freeIsNotKeySip(_0x4389e1,_0x11bdfe){const _0x492a1e=_0x1fddca,_0x2713d7=_['mapKeys'](_0x4389e1,function(_0x1c089a){const _0x432394=a1092_0x35ea;return util[_0x432394('0x26')](_0x432394('0x2e'),_0x1c089a[_0x432394('0x6d')]);});for(const _0x3c69a5 in _0x11bdfe){typeof _0x11bdfe[_0x3c69a5]!==_0x492a1e('0x14')&&(!_0x2713d7[_0x3c69a5]&&delete _0x11bdfe[_0x3c69a5]);}}function freeIsNotKeyAgent(_0x208a16,_0x2b8a71){const _0x27b077=_0x1fddca,_0x456160=_[_0x27b077('0x4f')](_0x208a16,function(_0x74a8b4){const _0x4fb7c3=_0x27b077,_0x230c6d=_[_0x4fb7c3('0x12')](_0x74a8b4['interface'])?util[_0x4fb7c3('0x26')](_0x4fb7c3('0x2e'),_0x74a8b4['name']):_0x74a8b4[_0x4fb7c3('0xe')];return _0x230c6d;});for(const _0x187779 in _0x2b8a71){typeof _0x2b8a71[_0x187779]!==_0x27b077('0x14')&&(!_0x456160[_0x187779]&&delete _0x2b8a71[_0x187779]);}}function clearVoiceCallReports(_0x5e55db){const _0x3fefb1=_0x1fddca;_0x5e55db['total']=0x0,_0x5e55db[_0x3fefb1('0x50')]=0x0,_0x5e55db['sumHoldTime']=0x0,_0x5e55db[_0x3fefb1('0x2b')]=0x0,_0x5e55db[_0x3fefb1('0x60')]=0x0;}function clearCampaigns(_0x56b6cb){const _0x33e42f=_0x1fddca;if(!_[_0x33e42f('0x39')](_0x56b6cb))for(const _0x50b89b in _0x56b6cb){typeof _0x56b6cb[_0x50b89b]!==_0x33e42f('0x14')&&(_0x56b6cb[_0x50b89b][_0x33e42f('0x37')]=0x0,_0x56b6cb[_0x50b89b][_0x33e42f('0x8')]=0x0);}}function clearVoiceQueues(_0x321ba7){const _0x1c0a83=_0x1fddca;if(!_[_0x1c0a83('0x39')](_0x321ba7))for(const _0x121bff in _0x321ba7){typeof _0x321ba7[_0x121bff]!==_0x1c0a83('0x14')&&(_0x321ba7[_0x121bff][_0x1c0a83('0x64')]=0x0,_0x321ba7[_0x121bff][_0x1c0a83('0x50')]=0x0,_0x321ba7[_0x121bff][_0x1c0a83('0x5d')]=0x0,_0x321ba7[_0x121bff][_0x1c0a83('0x16')]=0x0,_0x321ba7[_0x121bff][_0x1c0a83('0x23')]=0x0,_0x321ba7[_0x121bff][_0x1c0a83('0x2b')]=0x0,_0x321ba7[_0x121bff]['sumBillable']=0x0,_0x321ba7[_0x121bff][_0x1c0a83('0x67')]=0x0,_0x321ba7[_0x121bff][_0x1c0a83('0x1a')]=0x0,_0x321ba7[_0x121bff][_0x1c0a83('0x53')]=0x0,_0x321ba7[_0x121bff][_0x1c0a83('0x4b')]=0x0,_0x321ba7[_0x121bff][_0x1c0a83('0x55')]=0x0,_0x321ba7[_0x121bff][_0x1c0a83('0x42')]=0x0,_0x321ba7[_0x121bff][_0x1c0a83('0x19')]=0x0,_0x321ba7[_0x121bff][_0x1c0a83('0x24')]=0x0,_0x321ba7[_0x121bff][_0x1c0a83('0x6c')]=0x0,_0x321ba7[_0x121bff][_0x1c0a83('0x18')]=0x0,_0x321ba7[_0x121bff][_0x1c0a83('0x61')]=0x0,_0x321ba7[_0x121bff][_0x1c0a83('0x11')]=0x0,_0x321ba7[_0x121bff][_0x1c0a83('0x67')]=0x0,_0x321ba7[_0x121bff]['outboundAnswerCallsDay']=0x0,_0x321ba7[_0x121bff][_0x1c0a83('0x9')]=!![]);}}Realtime['prototype'][_0x1fddca('0x0')]=function(_0x4ba870,_0x2d9d51){const _0x1cf6b2=_0x1fddca;for(const _0x7fe8a8 in _0x2d9d51){typeof _0x4ba870[_0x7fe8a8]!==_0x1cf6b2('0x14')&&(_0x4ba870[_0x7fe8a8]=_0x2d9d51[_0x7fe8a8]);}},Realtime['prototype']['initAgents']=function(){const _0x957531=this;return function(_0x3facec){const _0x8f5dbd=a1092_0x35ea;if(_0x3facec){freeIsNotKeyAgent(_0x3facec,_0x957531[_0x8f5dbd('0x10')]);for(let _0x340014=0x0,_0x3a5150={};_0x340014<_0x3facec['length'];_0x340014+=0x1){_0x3a5150=_0x3facec[_0x340014];const _0xce9210=_[_0x8f5dbd('0x12')](_0x3a5150[_0x8f5dbd('0xe')])?util[_0x8f5dbd('0x26')](_0x8f5dbd('0x2e'),_0x3a5150[_0x8f5dbd('0x6d')]):_0x3a5150['interface'];_[_0x8f5dbd('0x1')](_0x957531[_0x8f5dbd('0x10')][_0xce9210])?_0x957531[_0x8f5dbd('0x10')][_0xce9210]=new Agent(_0x3a5150):_0x957531[_0x8f5dbd('0x0')](_0x957531['agents'][_0xce9210],_0x3a5150);}}return _0x957531[_0x8f5dbd('0x10')];};},Realtime[_0x1fddca('0x51')][_0x1fddca('0x68')]=function(){const _0x32559d=this;return function(_0x3d9cec){const _0xe34225=a1092_0x35ea;if(_0x3d9cec){freeIsNotKeySip(_0x3d9cec,_0x32559d[_0xe34225('0x58')]);for(let _0x5648c0=0x0,_0x4d2a53={};_0x5648c0<_0x3d9cec[_0xe34225('0x43')];_0x5648c0+=0x1){_0x4d2a53=_0x3d9cec[_0x5648c0],_[_0xe34225('0x1')](_0x32559d['telephones'][util[_0xe34225('0x26')](_0xe34225('0x2e'),_0x4d2a53[_0xe34225('0x6d')])])?_0x32559d[_0xe34225('0x58')][util[_0xe34225('0x26')](_0xe34225('0x2e'),_0x4d2a53[_0xe34225('0x6d')])]=new Telephone(_0x4d2a53):_0x32559d[_0xe34225('0x0')](_0x32559d['telephones'][util[_0xe34225('0x26')]('SIP/%s',_0x4d2a53[_0xe34225('0x6d')])],_0x4d2a53);}}return _0x32559d[_0xe34225('0x58')];};},Realtime[_0x1fddca('0x51')][_0x1fddca('0x29')]=function(){const _0x4ede0b=this;return function(_0x1dc7e4){const _0x374d94=a1092_0x35ea;if(_0x1dc7e4){freeIsNotKeySip(_0x1dc7e4,_0x4ede0b[_0x374d94('0x49')]);for(let _0x3fd9f6=0x0,_0x55166d={};_0x3fd9f6<_0x1dc7e4[_0x374d94('0x43')];_0x3fd9f6+=0x1){_0x55166d=_0x1dc7e4[_0x3fd9f6],_['isUndefined'](_0x4ede0b[_0x374d94('0x49')][util[_0x374d94('0x26')](_0x374d94('0x2e'),_0x55166d[_0x374d94('0x6d')])])?_0x4ede0b['trunks'][util[_0x374d94('0x26')]('SIP/%s',_0x55166d[_0x374d94('0x6d')])]=new Trunk(_0x55166d):_0x4ede0b[_0x374d94('0x0')](_0x4ede0b[_0x374d94('0x49')][util['format'](_0x374d94('0x2e'),_0x55166d[_0x374d94('0x6d')])],_0x55166d);}}return _0x4ede0b['trunks'];};},Realtime[_0x1fddca('0x51')][_0x1fddca('0x15')]=function(){const _0xce6011=this;return function(_0x1d42cf){const _0x51b68b=a1092_0x35ea;if(_0x1d42cf){freeIsNotKey(_0x1d42cf,_0xce6011[_0x51b68b('0x54')],_0x51b68b('0x6d'));for(let _0xc02bb5=0x0,_0x110987={};_0xc02bb5<_0x1d42cf[_0x51b68b('0x43')];_0xc02bb5+=0x1){_0x110987=_0x1d42cf[_0xc02bb5],_['isUndefined'](_0xce6011[_0x51b68b('0x54')][_0x110987[_0x51b68b('0x6d')]])?_0xce6011[_0x51b68b('0x54')][_0x110987['name']]=new VoiceQueue(_0x110987):_0xce6011[_0x51b68b('0x0')](_0xce6011[_0x51b68b('0x54')][_0x110987['name']],_0x110987);}}return _0xce6011[_0x51b68b('0x54')];};},Realtime[_0x1fddca('0x51')][_0x1fddca('0x32')]=function(){const _0x244bee=this;return function(_0x4c7420){const _0x2289fe=a1092_0x35ea;if(_0x4c7420){freeIsNotKey(_0x4c7420,_0x244bee[_0x2289fe('0x48')],'id');for(let _0x31fff2=0x0,_0x126c71={};_0x31fff2<_0x4c7420[_0x2289fe('0x43')];_0x31fff2+=0x1){_0x126c71=_0x4c7420[_0x31fff2],_['isUndefined'](_0x244bee[_0x2289fe('0x48')][_0x126c71['id']])?_0x244bee[_0x2289fe('0x48')][_0x126c71['id']]=new Trigger(_0x126c71):_0x244bee['mergeFromDatabase'](_0x244bee[_0x2289fe('0x48')][_0x126c71['id']],_0x126c71);}}return _0x244bee['triggers'];};},Realtime[_0x1fddca('0x51')]['initTemplates']=function(){const _0x552156=this;return function(_0x9bfeb2){const _0x2fd87d=a1092_0x35ea;if(_0x9bfeb2){freeIsNotKey(_0x9bfeb2,_0x552156[_0x2fd87d('0x2')],'id');for(let _0x8337c6=0x0,_0x34e7d5={};_0x8337c6<_0x9bfeb2[_0x2fd87d('0x43')];_0x8337c6+=0x1){_0x34e7d5=_0x9bfeb2[_0x8337c6],_[_0x2fd87d('0x1')](_0x552156[_0x2fd87d('0x2')][_0x34e7d5['id']])?_0x552156[_0x2fd87d('0x2')][_0x34e7d5['id']]=new Template(_0x34e7d5):_0x552156[_0x2fd87d('0x0')](_0x552156[_0x2fd87d('0x2')][_0x34e7d5['id']],_0x34e7d5);}}return _0x552156['templates'];};},Realtime[_0x1fddca('0x51')][_0x1fddca('0x4a')]=function(){const _0x356a3c=this;return function(_0x16c834){const _0x33bf11=a1092_0x35ea;if(_0x16c834){freeIsNotKey(_0x16c834,_0x356a3c[_0x33bf11('0x3e')],'id');for(let _0x204e58=0x0,_0x255293={};_0x204e58<_0x16c834[_0x33bf11('0x43')];_0x204e58+=0x1){_0x255293=_0x16c834[_0x204e58],_['isUndefined'](_0x356a3c[_0x33bf11('0x3e')][_0x255293['id']])?_0x356a3c['zendeskAccounts'][_0x255293['id']]=new ZendeskAccount(_0x255293):_0x356a3c[_0x33bf11('0x0')](_0x356a3c[_0x33bf11('0x3e')][_0x255293['id']],_0x255293);}}return _0x356a3c['zendeskAccounts'];};},Realtime[_0x1fddca('0x51')][_0x1fddca('0x5c')]=function(){const _0x4a3fc2=this;return function(_0x3ac78f){const _0x18203a=a1092_0x35ea;if(_0x3ac78f){freeIsNotKey(_0x3ac78f,_0x4a3fc2['salesforceAccounts'],'id');for(let _0x3bab69=0x0,_0x3732f1={};_0x3bab69<_0x3ac78f['length'];_0x3bab69+=0x1){_0x3732f1=_0x3ac78f[_0x3bab69],_['isUndefined'](_0x4a3fc2['salesforceAccounts'][_0x3732f1['id']])?_0x4a3fc2[_0x18203a('0x2d')][_0x3732f1['id']]=new SalesforceAccount(_0x3732f1):_0x4a3fc2[_0x18203a('0x0')](_0x4a3fc2['salesforceAccounts'][_0x3732f1['id']],_0x3732f1);}}return _0x4a3fc2['salesforceAccounts'];};},Realtime['prototype'][_0x1fddca('0x1b')]=function(){const _0x549e9f=this;return function(_0x4f648b){const _0x58ad9f=a1092_0x35ea;if(_0x4f648b){freeIsNotKey(_0x4f648b,_0x549e9f[_0x58ad9f('0x36')],'id');for(let _0x44dc09=0x0,_0x5a4e06={};_0x44dc09<_0x4f648b['length'];_0x44dc09+=0x1){_0x5a4e06=_0x4f648b[_0x44dc09],_['isUndefined'](_0x549e9f['freshdeskAccounts'][_0x5a4e06['id']])?_0x549e9f[_0x58ad9f('0x36')][_0x5a4e06['id']]=new FreshdeskAccount(_0x5a4e06):_0x549e9f[_0x58ad9f('0x0')](_0x549e9f[_0x58ad9f('0x36')][_0x5a4e06['id']],_0x5a4e06);}}return _0x549e9f[_0x58ad9f('0x36')];};},Realtime[_0x1fddca('0x51')][_0x1fddca('0x5b')]=function(){const _0x18e0dc=this;return function(_0x1df6ad){const _0x5c73de=a1092_0x35ea;if(_0x1df6ad){freeIsNotKey(_0x1df6ad,_0x18e0dc[_0x5c73de('0x1e')],'id');for(let _0x426fde=0x0,_0x210fab={};_0x426fde<_0x1df6ad[_0x5c73de('0x43')];_0x426fde+=0x1){_0x210fab=_0x1df6ad[_0x426fde],_['isUndefined'](_0x18e0dc[_0x5c73de('0x1e')][_0x210fab['id']])?_0x18e0dc['zohoAccounts'][_0x210fab['id']]=new ZohoAccount(_0x210fab):_0x18e0dc[_0x5c73de('0x0')](_0x18e0dc[_0x5c73de('0x1e')][_0x210fab['id']],_0x210fab);}}return _0x18e0dc[_0x5c73de('0x1e')];};},Realtime[_0x1fddca('0x51')][_0x1fddca('0x40')]=function(){const _0x3af9dc=this;return function(_0x44059e){const _0x2deb24=a1092_0x35ea;if(_0x44059e){freeIsNotKey(_0x44059e,_0x3af9dc[_0x2deb24('0x21')],'id');for(let _0x44e223=0x0,_0x193ec0={};_0x44e223<_0x44059e[_0x2deb24('0x43')];_0x44e223+=0x1){_0x193ec0=_0x44059e[_0x44e223],_['isUndefined'](_0x3af9dc[_0x2deb24('0x21')][_0x193ec0['id']])?_0x3af9dc[_0x2deb24('0x21')][_0x193ec0['id']]=new DeskAccount(_0x193ec0):_0x3af9dc[_0x2deb24('0x0')](_0x3af9dc[_0x2deb24('0x21')][_0x193ec0['id']],_0x193ec0);}}return _0x3af9dc[_0x2deb24('0x21')];};},Realtime['prototype']['initSugarcrmAccounts']=function(){const _0xb6ab04=this;return function(_0xa0cf03){const _0x1838ba=a1092_0x35ea;if(_0xa0cf03){freeIsNotKey(_0xa0cf03,_0xb6ab04[_0x1838ba('0x62')],'id');for(let _0xe46119=0x0,_0x3e9a40={};_0xe46119<_0xa0cf03[_0x1838ba('0x43')];_0xe46119+=0x1){_0x3e9a40=_0xa0cf03[_0xe46119],_[_0x1838ba('0x1')](_0xb6ab04[_0x1838ba('0x62')][_0x3e9a40['id']])?_0xb6ab04[_0x1838ba('0x62')][_0x3e9a40['id']]=new SugarcrmAccount(_0x3e9a40):_0xb6ab04[_0x1838ba('0x0')](_0xb6ab04[_0x1838ba('0x62')][_0x3e9a40['id']],_0x3e9a40);}}return _0xb6ab04['sugarcrmAccounts'];};},Realtime['prototype'][_0x1fddca('0x1f')]=function(){const _0x431581=this;return function(_0x267f51){const _0x1e0ac8=a1092_0x35ea;if(_0x267f51){freeIsNotKey(_0x267f51,_0x431581[_0x1e0ac8('0x45')],'id');for(let _0x2050c4=0x0,_0xb9d8dc={};_0x2050c4<_0x267f51[_0x1e0ac8('0x43')];_0x2050c4+=0x1){_0xb9d8dc=_0x267f51[_0x2050c4],_['isUndefined'](_0x431581[_0x1e0ac8('0x45')][_0xb9d8dc['id']])?_0x431581['vtigerAccounts'][_0xb9d8dc['id']]=new VtigerAccount(_0xb9d8dc):_0x431581[_0x1e0ac8('0x0')](_0x431581['vtigerAccounts'][_0xb9d8dc['id']],_0xb9d8dc);}}return _0x431581['vtigerAccounts'];};},Realtime['prototype'][_0x1fddca('0xc')]=function(){const _0x493f2f=this;return function(_0x45f347){const _0xf91442=a1092_0x35ea;if(_0x45f347){freeIsNotKey(_0x45f347,_0x493f2f['servicenowAccounts'],'id');for(let _0x511aca=0x0,_0x524d44={};_0x511aca<_0x45f347[_0xf91442('0x43')];_0x511aca+=0x1){_0x524d44=_0x45f347[_0x511aca],_[_0xf91442('0x1')](_0x493f2f[_0xf91442('0x6')][_0x524d44['id']])?_0x493f2f['servicenowAccounts'][_0x524d44['id']]=new ServicenowAccount(_0x524d44):_0x493f2f[_0xf91442('0x0')](_0x493f2f['servicenowAccounts'][_0x524d44['id']],_0x524d44);}}return _0x493f2f[_0xf91442('0x6')];};},Realtime[_0x1fddca('0x51')]['initDynamics365Accounts']=function(){const _0x7d256c=this;return function(_0xd28b4f){const _0x8c069f=a1092_0x35ea;if(_0xd28b4f){freeIsNotKey(_0xd28b4f,_0x7d256c[_0x8c069f('0x63')],'id');for(let _0x2d4068=0x0,_0x1c5ca2={};_0x2d4068<_0xd28b4f[_0x8c069f('0x43')];_0x2d4068+=0x1){_0x1c5ca2=_0xd28b4f[_0x2d4068],_[_0x8c069f('0x1')](_0x7d256c['dynamics365Accounts'][_0x1c5ca2['id']])?_0x7d256c[_0x8c069f('0x63')][_0x1c5ca2['id']]=new Dynamics365Account(_0x1c5ca2):_0x7d256c['mergeFromDatabase'](_0x7d256c[_0x8c069f('0x63')][_0x1c5ca2['id']],_0x1c5ca2);}}return _0x7d256c[_0x8c069f('0x63')];};},Realtime[_0x1fddca('0x51')]['initFreshsalesAccounts']=function(){const _0x1dca3d=this;return function(_0x79132e){const _0x32b425=a1092_0x35ea;if(_0x79132e){freeIsNotKey(_0x79132e,_0x1dca3d['freshsalesAccounts'],'id');for(let _0x30a51f=0x0,_0x2d40ee={};_0x30a51f<_0x79132e['length'];_0x30a51f+=0x1){_0x2d40ee=_0x79132e[_0x30a51f],_['isUndefined'](_0x1dca3d['freshsalesAccounts'][_0x2d40ee['id']])?_0x1dca3d[_0x32b425('0xf')][_0x2d40ee['id']]=new FreshsalesAccount(_0x2d40ee):_0x1dca3d[_0x32b425('0x0')](_0x1dca3d[_0x32b425('0xf')][_0x2d40ee['id']],_0x2d40ee);}}return _0x1dca3d[_0x32b425('0xf')];};},Realtime[_0x1fddca('0x51')]['initVoiceQueueHopperHistory']=function(){const _0x3b5837=this;return function(_0x2c0505){const _0x31abb5=a1092_0x35ea;for(let _0xc946a3=0x0;_0xc946a3<_0x2c0505[_0x31abb5('0x43')];_0xc946a3+=0x1){_[_0x31abb5('0x65')](_0x3b5837['voiceQueues'][_0x2c0505[_0xc946a3]['name']],_0x2c0505[_0xc946a3]);}return _0x3b5837[_0x31abb5('0x54')];};},Realtime['prototype'][_0x1fddca('0xb')]=function(){const _0x3ee043=this;return function(_0x38ee8d){const _0x4e2fb9=a1092_0x35ea;clearVoiceQueues(_0x3ee043[_0x4e2fb9('0x54')]);if(_0x38ee8d){_0x38ee8d=_[_0x4e2fb9('0x46')](_0x38ee8d,_0x4e2fb9('0x41'));for(const _0x3d9422 in _0x38ee8d){if(typeof _0x38ee8d[_0x3d9422]!=='undefined')for(let _0x57c8ac=0x0;_0x57c8ac<_0x38ee8d[_0x3d9422][_0x4e2fb9('0x43')];_0x57c8ac+=0x1){const _0x1eb2e1=_0x38ee8d[_0x3d9422][_0x57c8ac]['queue'];_0x3ee043['voiceQueues'][_0x1eb2e1]&&(_0x38ee8d[_0x3d9422][_0x57c8ac][_0x4e2fb9('0x5f')]&&(_0x3ee043[_0x4e2fb9('0x54')][_0x1eb2e1][_0x4e2fb9('0x5d')]+=0x1),_0x38ee8d[_0x3d9422][_0x57c8ac][_0x4e2fb9('0x44')]&&(_0x3ee043[_0x4e2fb9('0x54')][_0x1eb2e1][_0x4e2fb9('0x16')]+=0x1),_0x3ee043['voiceQueues'][_0x1eb2e1][_0x4e2fb9('0x23')]+=moment(_0x38ee8d[_0x3d9422][_0x57c8ac][_0x4e2fb9('0x6a')])[_0x4e2fb9('0x28')](moment(_0x38ee8d[_0x3d9422][_0x57c8ac][_0x4e2fb9('0x3d')]),_0x4e2fb9('0x66'))||0x0,_0x57c8ac===_0x38ee8d[_0x3d9422][_0x4e2fb9('0x43')]-0x1?(_0x3ee043[_0x4e2fb9('0x54')][_0x1eb2e1]['sumDuration']+=moment(_0x38ee8d[_0x3d9422][_0x57c8ac][_0x4e2fb9('0x25')]||_0x38ee8d[_0x3d9422][_0x57c8ac][_0x4e2fb9('0x38')]||_0x38ee8d[_0x3d9422][_0x57c8ac][_0x4e2fb9('0x57')])['diff'](moment(_0x38ee8d[_0x3d9422][_0x57c8ac][_0x4e2fb9('0x3d')]),_0x4e2fb9('0x66'))||0x0,_0x3ee043[_0x4e2fb9('0x54')][_0x1eb2e1][_0x4e2fb9('0x64')]+=0x1,_0x38ee8d[_0x3d9422][_0x57c8ac][_0x4e2fb9('0x3a')]&&(_0x3ee043[_0x4e2fb9('0x54')][_0x1eb2e1][_0x4e2fb9('0x50')]+=0x1,_0x3ee043[_0x4e2fb9('0x54')][_0x1eb2e1][_0x4e2fb9('0x60')]+=moment(_0x38ee8d[_0x3d9422][_0x57c8ac][_0x4e2fb9('0x25')])[_0x4e2fb9('0x28')](moment(_0x38ee8d[_0x3d9422][_0x57c8ac][_0x4e2fb9('0x6a')]),_0x4e2fb9('0x66'))||0x0)):_0x3ee043[_0x4e2fb9('0x54')][_0x1eb2e1]['sumDuration']+=_0x3ee043[_0x4e2fb9('0x54')][_0x1eb2e1][_0x4e2fb9('0x23')]||0x0);}}}return _0x3ee043['voiceQueues'];};},Realtime[_0x1fddca('0x51')][_0x1fddca('0x56')]=function(){const _0x21c5ac=this;return function(_0x395881){const _0x18d8f9=a1092_0x35ea;clearVoiceCallReports(_0x21c5ac[_0x18d8f9('0x22')]);if(_0x395881)for(let _0x4c725e=0x0;_0x4c725e<_0x395881[_0x18d8f9('0x43')];_0x4c725e+=0x1){_0x21c5ac['outbound']['total']+=0x1,_0x21c5ac[_0x18d8f9('0x22')][_0x18d8f9('0x2b')]+=_0x395881[_0x4c725e][_0x18d8f9('0x3')],_0x395881[_0x4c725e]['disposition']===_0x18d8f9('0x2a')&&(_0x21c5ac[_0x18d8f9('0x22')][_0x18d8f9('0x50')]+=0x1,_0x21c5ac['outbound']['sumHoldTime']+=_0x395881[_0x4c725e][_0x18d8f9('0x3')]-_0x395881[_0x4c725e][_0x18d8f9('0x27')]||0x0,_0x21c5ac['outbound'][_0x18d8f9('0x60')]+=_0x395881[_0x4c725e]['billableseconds']);}return _0x21c5ac['outbound'];};},Realtime[_0x1fddca('0x51')][_0x1fddca('0x30')]=function(){const _0x5ca13c=this;return function(_0x1460f3){const _0x16dae2=a1092_0x35ea;if(_0x1460f3){freeIsNotKey(_0x1460f3,_0x5ca13c[_0x16dae2('0x47')],'name');for(let _0xafa3f8=0x0,_0x733e09={};_0xafa3f8<_0x1460f3['length'];_0xafa3f8+=0x1){_0x733e09=_0x1460f3[_0xafa3f8],_[_0x16dae2('0x1')](_0x5ca13c[_0x16dae2('0x47')][_0x733e09[_0x16dae2('0x6d')]])?_0x5ca13c[_0x16dae2('0x47')][_0x733e09['name']]=new Campaign(_0x733e09):(_0x5ca13c[_0x16dae2('0x0')](_0x5ca13c['campaigns'][_0x733e09['name']],_0x733e09),_0x5ca13c['campaigns'][_0x733e09[_0x16dae2('0x6d')]][_0x16dae2('0x7')]=_0x733e09[_0x16dae2('0x31')]?_0x733e09['SquareProject'][_0x16dae2('0x6d')]:undefined);}}return _0x5ca13c[_0x16dae2('0x47')];};},Realtime['prototype'][_0x1fddca('0x3b')]=function(){const _0x40668b=this;return function(_0xc891a5){const _0x157815=a1092_0x35ea;if(_0xc891a5){freeIsNotKey(_0xc891a5,_0x40668b[_0x157815('0xa')],'id');for(let _0x488de9=0x0,_0x374cd0={};_0x488de9<_0xc891a5[_0x157815('0x43')];_0x488de9+=0x1){_0x374cd0=_0xc891a5[_0x488de9],_[_0x157815('0x1')](_0x40668b[_0x157815('0xa')][_0x374cd0['id']])?_0x40668b[_0x157815('0xa')][_0x374cd0['id']]=new VoiceExtension(_0x374cd0):_0x40668b[_0x157815('0x0')](_0x40668b[_0x157815('0xa')][_0x374cd0['id']],_0x374cd0);}}return _0x40668b[_0x157815('0xa')];};},Realtime['prototype'][_0x1fddca('0x2f')]=function(){const _0x32bb84=this;return function(_0x3d523b){const _0x565862=a1092_0x35ea;clearCampaigns(_0x32bb84['campaigns']);for(let _0x481d3a=0x0;_0x481d3a<_0x3d523b[_0x565862('0x43')];_0x481d3a+=0x1){_[_0x565862('0x65')](_0x32bb84[_0x565862('0x47')][_0x3d523b[_0x481d3a]['name']],_0x3d523b[_0x481d3a]);}return _0x32bb84['campaigns'];};},Realtime['prototype'][_0x1fddca('0x4d')]=function(){const _0x16db3c=this;return function(_0xd910a4){const _0x22626f=a1092_0x35ea;if(_0xd910a4){freeIsNotKey(_0xd910a4,_0x16db3c[_0x22626f('0x59')],'id');for(let _0x26d246=0x0,_0x1ba30c={};_0x26d246<_0xd910a4['length'];_0x26d246+=0x1){_0x1ba30c=_0xd910a4[_0x26d246],_[_0x22626f('0x1')](_0x16db3c[_0x22626f('0x59')][_0x1ba30c['id']])?_0x16db3c['faxAccounts'][_0x1ba30c['id']]=new FaxAccount(_0x1ba30c):_0x16db3c[_0x22626f('0x0')](_0x16db3c[_0x22626f('0x59')][_0x1ba30c['id']],_0x1ba30c);}}return _0x16db3c[_0x22626f('0x59')];};},module[_0x1fddca('0x2c')]=Realtime; \ No newline at end of file +const a1256_0x40e7=['unmanaged','merge','outboundDropCallsDayTimeout','../model/zendeskAccount','triggers','deskAccounts','initTelephones','outboundDropCallsDayCallersExit','../model/freshdeskAccount','voiceExtensions','isNil','diff','queuecallerleaveAt','outboundRejectCallsDay','lodash','outboundUnknownCallsDay','../model/vtigerAccount','undefined','../model/deskAccount','../model/faxAccount','../model/agent','../model/template','outboundChannels','freshsalesAccounts','disposition','../model/zohoAccount','initCampaigns','length','SquareProject','initDeskAccounts','../model/dynamics365Account','mergeFromDatabase','outboundBusyCallsDay','initTemplates','voiceQueues','billableseconds','outboundBlacklistCallsDay','mapKeys','seconds','faxAccounts','outboundAnswerAgiCallsDay','abandoned','queuecallercompleteAt','initVtigerAccounts','name','initZendeskAccounts','servicenowAccounts','SIP/%s','channels','moment','outboundNoAnswerCallsDay','agents','initVoiceCallReports','../model/servicenowAccount','dynamics365Accounts','uniqueid','sumDuration','sumHoldTime','initFreshsalesAccounts','prototype','util','initFaxAccounts','answered','sugarcrmAccounts','initTrunks','sumBillable','outboundOriginateFailureCallsDay','initDynamics365Accounts','timers','zohoAccounts','ivrAnswerCallsDay','salesforceAccounts','queueStatusComplete','initAgents','vtigerAccounts','queuecallercomplete','zendeskAccounts','trunks','groupBy','outboundReCallsDay','../model/telephone','../model/campaign','outboundCongestionCallsDay','exports','../model/salesforceAccount','templates','duration','ANSWERED','queuecallerjoinAt','interface','isEmpty','dialQueueProject','freshdeskAccounts','initCampaignHopperHistory','queuecallerabandonAt','outbound','telephones','campaigns','isUndefined','initSugarcrmAccounts','ivrTotalCallsDays','total','format','../model/voiceQueue','queuecallerexit'];(function(_0x1999f1,_0x56cece){const _0x40e7a4=function(_0x42a0ce){while(--_0x42a0ce){_0x1999f1['push'](_0x1999f1['shift']());}};_0x40e7a4(++_0x56cece);}(a1256_0x40e7,0xb7));const a1256_0x42a0=function(_0x1999f1,_0x56cece){_0x1999f1=_0x1999f1-0x133;let _0x40e7a4=a1256_0x40e7[_0x1999f1];return _0x40e7a4;};const a1256_0x1f5251=a1256_0x42a0;'use strict';const util=require(a1256_0x1f5251(0x18a)),_=require(a1256_0x1f5251(0x15c)),moment=require(a1256_0x1f5251(0x17f)),Agent=require(a1256_0x1f5251(0x162)),Telephone=require(a1256_0x1f5251(0x135)),Trunk=require('../model/trunk'),VoiceQueue=require(a1256_0x1f5251(0x14c)),Trigger=require('../model/trigger'),Template=require(a1256_0x1f5251(0x163)),Campaign=require(a1256_0x1f5251(0x136)),VoiceExtension=require('../model/voiceExtension'),ZendeskAccount=require(a1256_0x1f5251(0x151)),SalesforceAccount=require(a1256_0x1f5251(0x139)),FreshdeskAccount=require(a1256_0x1f5251(0x156)),SugarcrmAccount=require('../model/sugarcrmAccount'),ZohoAccount=require(a1256_0x1f5251(0x167)),DeskAccount=require(a1256_0x1f5251(0x160)),VtigerAccount=require(a1256_0x1f5251(0x15e)),ServicenowAccount=require(a1256_0x1f5251(0x183)),Dynamics365Account=require(a1256_0x1f5251(0x16c)),FreshsalesAccount=require('../model/freshsalesAccount'),FaxAccount=require(a1256_0x1f5251(0x161)),Realtime=function(){const _0x563b8a=a1256_0x1f5251;this[_0x563b8a(0x181)]={},this[_0x563b8a(0x145)]={},this[_0x563b8a(0x19b)]={},this[_0x563b8a(0x170)]={},this[_0x563b8a(0x152)]={},this[_0x563b8a(0x146)]={},this[_0x563b8a(0x13a)]={},this[_0x563b8a(0x144)]={'total':0x0,'answered':0x0,'sumHoldTime':0x0,'sumDuration':0x0,'sumBillable':0x0},this[_0x563b8a(0x157)]={},this[_0x563b8a(0x17e)]={},this['queueChannels']={},this[_0x563b8a(0x164)]={},this[_0x563b8a(0x192)]={},this[_0x563b8a(0x19a)]={},this[_0x563b8a(0x195)]={},this[_0x563b8a(0x18d)]={},this[_0x563b8a(0x141)]={},this['zohoAccounts']={},this[_0x563b8a(0x153)]={},this['vtigerAccounts']={},this[_0x563b8a(0x17c)]={},this[_0x563b8a(0x184)]={},this[_0x563b8a(0x165)]={},this[_0x563b8a(0x175)]={};};function freeIsNotKey(_0x3a4cab,_0x3596ce,_0x3d8b47){const _0x423851=a1256_0x1f5251,_0x37e234=_['mapKeys'](_0x3a4cab,function(_0x40cde3){return _0x40cde3[_0x3d8b47];});for(const _0x1f871e in _0x3596ce){typeof _0x3596ce[_0x1f871e]!==_0x423851(0x15f)&&(!_0x37e234[_0x1f871e]&&delete _0x3596ce[_0x1f871e]);}}function freeIsNotKeySip(_0x4caa2b,_0x1d6a62){const _0x1f6267=_['mapKeys'](_0x4caa2b,function(_0x19c823){const _0x53eab5=a1256_0x42a0;return util[_0x53eab5(0x14b)](_0x53eab5(0x17d),_0x19c823[_0x53eab5(0x17a)]);});for(const _0x4fd84e in _0x1d6a62){typeof _0x1d6a62[_0x4fd84e]!=='undefined'&&(!_0x1f6267[_0x4fd84e]&&delete _0x1d6a62[_0x4fd84e]);}}function freeIsNotKeyAgent(_0x2d87d9,_0x43c48b){const _0x27cdd6=a1256_0x1f5251,_0x2fa832=_[_0x27cdd6(0x173)](_0x2d87d9,function(_0x222fa9){const _0x65fb14=_0x27cdd6,_0x29406e=_['isNil'](_0x222fa9[_0x65fb14(0x13e)])?util[_0x65fb14(0x14b)](_0x65fb14(0x17d),_0x222fa9['name']):_0x222fa9[_0x65fb14(0x13e)];return _0x29406e;});for(const _0x35a5db in _0x43c48b){typeof _0x43c48b[_0x35a5db]!==_0x27cdd6(0x15f)&&(!_0x2fa832[_0x35a5db]&&delete _0x43c48b[_0x35a5db]);}}function clearVoiceCallReports(_0x36458b){const _0x48d1fc=a1256_0x1f5251;_0x36458b[_0x48d1fc(0x14a)]=0x0,_0x36458b[_0x48d1fc(0x18c)]=0x0,_0x36458b[_0x48d1fc(0x187)]=0x0,_0x36458b[_0x48d1fc(0x186)]=0x0,_0x36458b['sumBillable']=0x0;}function clearCampaigns(_0x2f1d38){const _0xc68620=a1256_0x1f5251;if(!_[_0xc68620(0x13f)](_0x2f1d38))for(const _0x519d44 in _0x2f1d38){typeof _0x2f1d38[_0x519d44]!==_0xc68620(0x15f)&&(_0x2f1d38[_0x519d44][_0xc68620(0x149)]=0x0,_0x2f1d38[_0x519d44][_0xc68620(0x194)]=0x0);}}function clearVoiceQueues(_0x132810){const _0x5787d7=a1256_0x1f5251;if(!_[_0x5787d7(0x13f)](_0x132810))for(const _0x110f14 in _0x132810){typeof _0x132810[_0x110f14]!==_0x5787d7(0x15f)&&(_0x132810[_0x110f14][_0x5787d7(0x14a)]=0x0,_0x132810[_0x110f14][_0x5787d7(0x18c)]=0x0,_0x132810[_0x110f14][_0x5787d7(0x14e)]=0x0,_0x132810[_0x110f14][_0x5787d7(0x177)]=0x0,_0x132810[_0x110f14]['sumHoldTime']=0x0,_0x132810[_0x110f14][_0x5787d7(0x186)]=0x0,_0x132810[_0x110f14]['sumBillable']=0x0,_0x132810[_0x110f14][_0x5787d7(0x176)]=0x0,_0x132810[_0x110f14][_0x5787d7(0x180)]=0x0,_0x132810[_0x110f14][_0x5787d7(0x16e)]=0x0,_0x132810[_0x110f14][_0x5787d7(0x137)]=0x0,_0x132810[_0x110f14]['outboundNoSuchCallsDay']=0x0,_0x132810[_0x110f14][_0x5787d7(0x15d)]=0x0,_0x132810[_0x110f14][_0x5787d7(0x150)]=0x0,_0x132810[_0x110f14][_0x5787d7(0x155)]=0x0,_0x132810[_0x110f14][_0x5787d7(0x172)]=0x0,_0x132810[_0x110f14][_0x5787d7(0x190)]=0x0,_0x132810[_0x110f14][_0x5787d7(0x15b)]=0x0,_0x132810[_0x110f14][_0x5787d7(0x134)]=0x0,_0x132810[_0x110f14][_0x5787d7(0x176)]=0x0,_0x132810[_0x110f14]['outboundAnswerCallsDay']=0x0,_0x132810[_0x110f14][_0x5787d7(0x196)]=!![]);}}Realtime['prototype'][a1256_0x1f5251(0x16d)]=function(_0x20ca6f,_0x3bdf0f){const _0x276496=a1256_0x1f5251;for(const _0x1192f2 in _0x3bdf0f){typeof _0x20ca6f[_0x1192f2]!==_0x276496(0x15f)&&(_0x20ca6f[_0x1192f2]=_0x3bdf0f[_0x1192f2]);}},Realtime[a1256_0x1f5251(0x189)][a1256_0x1f5251(0x197)]=function(){const _0xb864a=this;return function(_0x31effc){const _0x12fa4d=a1256_0x42a0;if(_0x31effc){freeIsNotKeyAgent(_0x31effc,_0xb864a[_0x12fa4d(0x181)]);for(let _0x150591=0x0,_0x514de2={};_0x150591<_0x31effc[_0x12fa4d(0x169)];_0x150591+=0x1){_0x514de2=_0x31effc[_0x150591];const _0x1e4164=_[_0x12fa4d(0x158)](_0x514de2[_0x12fa4d(0x13e)])?util[_0x12fa4d(0x14b)](_0x12fa4d(0x17d),_0x514de2[_0x12fa4d(0x17a)]):_0x514de2[_0x12fa4d(0x13e)];_[_0x12fa4d(0x147)](_0xb864a[_0x12fa4d(0x181)][_0x1e4164])?_0xb864a[_0x12fa4d(0x181)][_0x1e4164]=new Agent(_0x514de2):_0xb864a[_0x12fa4d(0x16d)](_0xb864a['agents'][_0x1e4164],_0x514de2);}}return _0xb864a['agents'];};},Realtime['prototype'][a1256_0x1f5251(0x154)]=function(){const _0x23e453=this;return function(_0x2dacb8){const _0x19f83b=a1256_0x42a0;if(_0x2dacb8){freeIsNotKeySip(_0x2dacb8,_0x23e453['telephones']);for(let _0x2ffb82=0x0,_0x5d57c7={};_0x2ffb82<_0x2dacb8['length'];_0x2ffb82+=0x1){_0x5d57c7=_0x2dacb8[_0x2ffb82],_[_0x19f83b(0x147)](_0x23e453[_0x19f83b(0x145)][util['format'](_0x19f83b(0x17d),_0x5d57c7[_0x19f83b(0x17a)])])?_0x23e453[_0x19f83b(0x145)][util['format'](_0x19f83b(0x17d),_0x5d57c7[_0x19f83b(0x17a)])]=new Telephone(_0x5d57c7):_0x23e453[_0x19f83b(0x16d)](_0x23e453[_0x19f83b(0x145)][util['format'](_0x19f83b(0x17d),_0x5d57c7[_0x19f83b(0x17a)])],_0x5d57c7);}}return _0x23e453[_0x19f83b(0x145)];};},Realtime[a1256_0x1f5251(0x189)][a1256_0x1f5251(0x18e)]=function(){const _0x160bce=this;return function(_0xcd11f){const _0x3230f6=a1256_0x42a0;if(_0xcd11f){freeIsNotKeySip(_0xcd11f,_0x160bce[_0x3230f6(0x19b)]);for(let _0x36da10=0x0,_0x570743={};_0x36da10<_0xcd11f[_0x3230f6(0x169)];_0x36da10+=0x1){_0x570743=_0xcd11f[_0x36da10],_['isUndefined'](_0x160bce['trunks'][util[_0x3230f6(0x14b)](_0x3230f6(0x17d),_0x570743[_0x3230f6(0x17a)])])?_0x160bce['trunks'][util[_0x3230f6(0x14b)](_0x3230f6(0x17d),_0x570743['name'])]=new Trunk(_0x570743):_0x160bce['mergeFromDatabase'](_0x160bce[_0x3230f6(0x19b)][util[_0x3230f6(0x14b)](_0x3230f6(0x17d),_0x570743[_0x3230f6(0x17a)])],_0x570743);}}return _0x160bce[_0x3230f6(0x19b)];};},Realtime[a1256_0x1f5251(0x189)]['initVoiceQueues']=function(){const _0x12157d=this;return function(_0x40b52b){const _0x5f01a5=a1256_0x42a0;if(_0x40b52b){freeIsNotKey(_0x40b52b,_0x12157d[_0x5f01a5(0x170)],_0x5f01a5(0x17a));for(let _0xfc5710=0x0,_0x13458b={};_0xfc5710<_0x40b52b[_0x5f01a5(0x169)];_0xfc5710+=0x1){_0x13458b=_0x40b52b[_0xfc5710],_[_0x5f01a5(0x147)](_0x12157d[_0x5f01a5(0x170)][_0x13458b['name']])?_0x12157d[_0x5f01a5(0x170)][_0x13458b['name']]=new VoiceQueue(_0x13458b):_0x12157d[_0x5f01a5(0x16d)](_0x12157d['voiceQueues'][_0x13458b[_0x5f01a5(0x17a)]],_0x13458b);}}return _0x12157d['voiceQueues'];};},Realtime[a1256_0x1f5251(0x189)]['initTriggers']=function(){const _0x5ecb74=this;return function(_0x428736){const _0x54869b=a1256_0x42a0;if(_0x428736){freeIsNotKey(_0x428736,_0x5ecb74[_0x54869b(0x152)],'id');for(let _0x3f5f01=0x0,_0x3c27ec={};_0x3f5f01<_0x428736[_0x54869b(0x169)];_0x3f5f01+=0x1){_0x3c27ec=_0x428736[_0x3f5f01],_['isUndefined'](_0x5ecb74[_0x54869b(0x152)][_0x3c27ec['id']])?_0x5ecb74[_0x54869b(0x152)][_0x3c27ec['id']]=new Trigger(_0x3c27ec):_0x5ecb74[_0x54869b(0x16d)](_0x5ecb74[_0x54869b(0x152)][_0x3c27ec['id']],_0x3c27ec);}}return _0x5ecb74[_0x54869b(0x152)];};},Realtime['prototype'][a1256_0x1f5251(0x16f)]=function(){const _0x5e616f=this;return function(_0x2d3492){const _0x33d86e=a1256_0x42a0;if(_0x2d3492){freeIsNotKey(_0x2d3492,_0x5e616f['templates'],'id');for(let _0x58c861=0x0,_0x47a4cd={};_0x58c861<_0x2d3492[_0x33d86e(0x169)];_0x58c861+=0x1){_0x47a4cd=_0x2d3492[_0x58c861],_[_0x33d86e(0x147)](_0x5e616f[_0x33d86e(0x13a)][_0x47a4cd['id']])?_0x5e616f['templates'][_0x47a4cd['id']]=new Template(_0x47a4cd):_0x5e616f[_0x33d86e(0x16d)](_0x5e616f[_0x33d86e(0x13a)][_0x47a4cd['id']],_0x47a4cd);}}return _0x5e616f['templates'];};},Realtime[a1256_0x1f5251(0x189)][a1256_0x1f5251(0x17b)]=function(){const _0x40e719=this;return function(_0x307156){const _0x13af1c=a1256_0x42a0;if(_0x307156){freeIsNotKey(_0x307156,_0x40e719[_0x13af1c(0x19a)],'id');for(let _0x41cc05=0x0,_0x2fa4f1={};_0x41cc05<_0x307156[_0x13af1c(0x169)];_0x41cc05+=0x1){_0x2fa4f1=_0x307156[_0x41cc05],_[_0x13af1c(0x147)](_0x40e719[_0x13af1c(0x19a)][_0x2fa4f1['id']])?_0x40e719[_0x13af1c(0x19a)][_0x2fa4f1['id']]=new ZendeskAccount(_0x2fa4f1):_0x40e719[_0x13af1c(0x16d)](_0x40e719[_0x13af1c(0x19a)][_0x2fa4f1['id']],_0x2fa4f1);}}return _0x40e719[_0x13af1c(0x19a)];};},Realtime['prototype']['initSalesforceAccounts']=function(){const _0x2703fd=this;return function(_0x16a0f8){const _0x3b920d=a1256_0x42a0;if(_0x16a0f8){freeIsNotKey(_0x16a0f8,_0x2703fd[_0x3b920d(0x195)],'id');for(let _0x2444bc=0x0,_0x37b5f2={};_0x2444bc<_0x16a0f8[_0x3b920d(0x169)];_0x2444bc+=0x1){_0x37b5f2=_0x16a0f8[_0x2444bc],_[_0x3b920d(0x147)](_0x2703fd[_0x3b920d(0x195)][_0x37b5f2['id']])?_0x2703fd['salesforceAccounts'][_0x37b5f2['id']]=new SalesforceAccount(_0x37b5f2):_0x2703fd[_0x3b920d(0x16d)](_0x2703fd['salesforceAccounts'][_0x37b5f2['id']],_0x37b5f2);}}return _0x2703fd[_0x3b920d(0x195)];};},Realtime[a1256_0x1f5251(0x189)]['initFreshdeskAccounts']=function(){const _0x31166e=this;return function(_0x1e8022){const _0x5900e9=a1256_0x42a0;if(_0x1e8022){freeIsNotKey(_0x1e8022,_0x31166e[_0x5900e9(0x141)],'id');for(let _0x24d3ed=0x0,_0x428944={};_0x24d3ed<_0x1e8022[_0x5900e9(0x169)];_0x24d3ed+=0x1){_0x428944=_0x1e8022[_0x24d3ed],_[_0x5900e9(0x147)](_0x31166e[_0x5900e9(0x141)][_0x428944['id']])?_0x31166e[_0x5900e9(0x141)][_0x428944['id']]=new FreshdeskAccount(_0x428944):_0x31166e['mergeFromDatabase'](_0x31166e[_0x5900e9(0x141)][_0x428944['id']],_0x428944);}}return _0x31166e[_0x5900e9(0x141)];};},Realtime[a1256_0x1f5251(0x189)]['initZohoAccounts']=function(){const _0x563a6d=this;return function(_0x592771){const _0x717424=a1256_0x42a0;if(_0x592771){freeIsNotKey(_0x592771,_0x563a6d[_0x717424(0x193)],'id');for(let _0x35bda4=0x0,_0x464d31={};_0x35bda4<_0x592771[_0x717424(0x169)];_0x35bda4+=0x1){_0x464d31=_0x592771[_0x35bda4],_[_0x717424(0x147)](_0x563a6d[_0x717424(0x193)][_0x464d31['id']])?_0x563a6d[_0x717424(0x193)][_0x464d31['id']]=new ZohoAccount(_0x464d31):_0x563a6d[_0x717424(0x16d)](_0x563a6d[_0x717424(0x193)][_0x464d31['id']],_0x464d31);}}return _0x563a6d[_0x717424(0x193)];};},Realtime[a1256_0x1f5251(0x189)][a1256_0x1f5251(0x16b)]=function(){const _0x198a03=this;return function(_0x4ab551){const _0x12b61b=a1256_0x42a0;if(_0x4ab551){freeIsNotKey(_0x4ab551,_0x198a03[_0x12b61b(0x153)],'id');for(let _0x539c9b=0x0,_0x28d9a0={};_0x539c9b<_0x4ab551[_0x12b61b(0x169)];_0x539c9b+=0x1){_0x28d9a0=_0x4ab551[_0x539c9b],_[_0x12b61b(0x147)](_0x198a03[_0x12b61b(0x153)][_0x28d9a0['id']])?_0x198a03[_0x12b61b(0x153)][_0x28d9a0['id']]=new DeskAccount(_0x28d9a0):_0x198a03[_0x12b61b(0x16d)](_0x198a03['deskAccounts'][_0x28d9a0['id']],_0x28d9a0);}}return _0x198a03[_0x12b61b(0x153)];};},Realtime['prototype'][a1256_0x1f5251(0x148)]=function(){const _0x217899=this;return function(_0x45419e){const _0x4240f3=a1256_0x42a0;if(_0x45419e){freeIsNotKey(_0x45419e,_0x217899[_0x4240f3(0x18d)],'id');for(let _0x221fcc=0x0,_0x4019bf={};_0x221fcc<_0x45419e['length'];_0x221fcc+=0x1){_0x4019bf=_0x45419e[_0x221fcc],_[_0x4240f3(0x147)](_0x217899[_0x4240f3(0x18d)][_0x4019bf['id']])?_0x217899[_0x4240f3(0x18d)][_0x4019bf['id']]=new SugarcrmAccount(_0x4019bf):_0x217899[_0x4240f3(0x16d)](_0x217899[_0x4240f3(0x18d)][_0x4019bf['id']],_0x4019bf);}}return _0x217899[_0x4240f3(0x18d)];};},Realtime[a1256_0x1f5251(0x189)][a1256_0x1f5251(0x179)]=function(){const _0x5a3076=this;return function(_0x41ad77){const _0x3269ef=a1256_0x42a0;if(_0x41ad77){freeIsNotKey(_0x41ad77,_0x5a3076['vtigerAccounts'],'id');for(let _0x4a1579=0x0,_0x88b70f={};_0x4a1579<_0x41ad77[_0x3269ef(0x169)];_0x4a1579+=0x1){_0x88b70f=_0x41ad77[_0x4a1579],_[_0x3269ef(0x147)](_0x5a3076['vtigerAccounts'][_0x88b70f['id']])?_0x5a3076[_0x3269ef(0x198)][_0x88b70f['id']]=new VtigerAccount(_0x88b70f):_0x5a3076[_0x3269ef(0x16d)](_0x5a3076[_0x3269ef(0x198)][_0x88b70f['id']],_0x88b70f);}}return _0x5a3076[_0x3269ef(0x198)];};},Realtime[a1256_0x1f5251(0x189)]['initServicenowAccounts']=function(){const _0x289aa8=this;return function(_0x27d407){const _0x538e39=a1256_0x42a0;if(_0x27d407){freeIsNotKey(_0x27d407,_0x289aa8[_0x538e39(0x17c)],'id');for(let _0x287d30=0x0,_0x52b9b8={};_0x287d30<_0x27d407[_0x538e39(0x169)];_0x287d30+=0x1){_0x52b9b8=_0x27d407[_0x287d30],_['isUndefined'](_0x289aa8['servicenowAccounts'][_0x52b9b8['id']])?_0x289aa8[_0x538e39(0x17c)][_0x52b9b8['id']]=new ServicenowAccount(_0x52b9b8):_0x289aa8['mergeFromDatabase'](_0x289aa8[_0x538e39(0x17c)][_0x52b9b8['id']],_0x52b9b8);}}return _0x289aa8[_0x538e39(0x17c)];};},Realtime[a1256_0x1f5251(0x189)][a1256_0x1f5251(0x191)]=function(){const _0x1b0684=this;return function(_0x33de98){const _0x6f13f2=a1256_0x42a0;if(_0x33de98){freeIsNotKey(_0x33de98,_0x1b0684['dynamics365Accounts'],'id');for(let _0x592e55=0x0,_0x4f3925={};_0x592e55<_0x33de98[_0x6f13f2(0x169)];_0x592e55+=0x1){_0x4f3925=_0x33de98[_0x592e55],_['isUndefined'](_0x1b0684[_0x6f13f2(0x184)][_0x4f3925['id']])?_0x1b0684[_0x6f13f2(0x184)][_0x4f3925['id']]=new Dynamics365Account(_0x4f3925):_0x1b0684['mergeFromDatabase'](_0x1b0684[_0x6f13f2(0x184)][_0x4f3925['id']],_0x4f3925);}}return _0x1b0684['dynamics365Accounts'];};},Realtime[a1256_0x1f5251(0x189)][a1256_0x1f5251(0x188)]=function(){const _0x326c17=this;return function(_0x360108){const _0x793d4d=a1256_0x42a0;if(_0x360108){freeIsNotKey(_0x360108,_0x326c17['freshsalesAccounts'],'id');for(let _0x4f79a7=0x0,_0x30dbe5={};_0x4f79a7<_0x360108[_0x793d4d(0x169)];_0x4f79a7+=0x1){_0x30dbe5=_0x360108[_0x4f79a7],_[_0x793d4d(0x147)](_0x326c17[_0x793d4d(0x165)][_0x30dbe5['id']])?_0x326c17['freshsalesAccounts'][_0x30dbe5['id']]=new FreshsalesAccount(_0x30dbe5):_0x326c17['mergeFromDatabase'](_0x326c17['freshsalesAccounts'][_0x30dbe5['id']],_0x30dbe5);}}return _0x326c17[_0x793d4d(0x165)];};},Realtime['prototype']['initVoiceQueueHopperHistory']=function(){const _0x534e69=this;return function(_0x5a4173){const _0x19866a=a1256_0x42a0;for(let _0x4b888b=0x0;_0x4b888b<_0x5a4173[_0x19866a(0x169)];_0x4b888b+=0x1){_[_0x19866a(0x14f)](_0x534e69[_0x19866a(0x170)][_0x5a4173[_0x4b888b]['name']],_0x5a4173[_0x4b888b]);}return _0x534e69[_0x19866a(0x170)];};},Realtime[a1256_0x1f5251(0x189)]['initVoiceQueueReports']=function(){const _0x21608b=this;return function(_0x4f6457){const _0xec8bf8=a1256_0x42a0;clearVoiceQueues(_0x21608b[_0xec8bf8(0x170)]);if(_0x4f6457){_0x4f6457=_[_0xec8bf8(0x133)](_0x4f6457,_0xec8bf8(0x185));for(const _0x11a79f in _0x4f6457){if(typeof _0x4f6457[_0x11a79f]!==_0xec8bf8(0x15f))for(let _0x536d5f=0x0;_0x536d5f<_0x4f6457[_0x11a79f][_0xec8bf8(0x169)];_0x536d5f+=0x1){const _0x474e79=_0x4f6457[_0x11a79f][_0x536d5f]['queue'];_0x21608b[_0xec8bf8(0x170)][_0x474e79]&&(_0x4f6457[_0x11a79f][_0x536d5f][_0xec8bf8(0x14d)]&&(_0x21608b[_0xec8bf8(0x170)][_0x474e79][_0xec8bf8(0x14e)]+=0x1),_0x4f6457[_0x11a79f][_0x536d5f]['queuecallerabandon']&&(_0x21608b['voiceQueues'][_0x474e79][_0xec8bf8(0x177)]+=0x1),_0x21608b[_0xec8bf8(0x170)][_0x474e79][_0xec8bf8(0x187)]+=moment(_0x4f6457[_0x11a79f][_0x536d5f][_0xec8bf8(0x15a)])[_0xec8bf8(0x159)](moment(_0x4f6457[_0x11a79f][_0x536d5f][_0xec8bf8(0x13d)]),'seconds')||0x0,_0x536d5f===_0x4f6457[_0x11a79f][_0xec8bf8(0x169)]-0x1?(_0x21608b[_0xec8bf8(0x170)][_0x474e79]['sumDuration']+=moment(_0x4f6457[_0x11a79f][_0x536d5f][_0xec8bf8(0x178)]||_0x4f6457[_0x11a79f][_0x536d5f][_0xec8bf8(0x143)]||_0x4f6457[_0x11a79f][_0x536d5f]['queuecallerexitAt'])[_0xec8bf8(0x159)](moment(_0x4f6457[_0x11a79f][_0x536d5f][_0xec8bf8(0x13d)]),_0xec8bf8(0x174))||0x0,_0x21608b['voiceQueues'][_0x474e79][_0xec8bf8(0x14a)]+=0x1,_0x4f6457[_0x11a79f][_0x536d5f][_0xec8bf8(0x199)]&&(_0x21608b[_0xec8bf8(0x170)][_0x474e79][_0xec8bf8(0x18c)]+=0x1,_0x21608b['voiceQueues'][_0x474e79][_0xec8bf8(0x18f)]+=moment(_0x4f6457[_0x11a79f][_0x536d5f][_0xec8bf8(0x178)])[_0xec8bf8(0x159)](moment(_0x4f6457[_0x11a79f][_0x536d5f][_0xec8bf8(0x15a)]),_0xec8bf8(0x174))||0x0)):_0x21608b[_0xec8bf8(0x170)][_0x474e79][_0xec8bf8(0x186)]+=_0x21608b['voiceQueues'][_0x474e79][_0xec8bf8(0x187)]||0x0);}}}return _0x21608b[_0xec8bf8(0x170)];};},Realtime[a1256_0x1f5251(0x189)][a1256_0x1f5251(0x182)]=function(){const _0x1168a5=this;return function(_0x5e3c81){const _0x233c34=a1256_0x42a0;clearVoiceCallReports(_0x1168a5[_0x233c34(0x144)]);if(_0x5e3c81)for(let _0x379a64=0x0;_0x379a64<_0x5e3c81[_0x233c34(0x169)];_0x379a64+=0x1){_0x1168a5['outbound'][_0x233c34(0x14a)]+=0x1,_0x1168a5[_0x233c34(0x144)][_0x233c34(0x186)]+=_0x5e3c81[_0x379a64][_0x233c34(0x13b)],_0x5e3c81[_0x379a64][_0x233c34(0x166)]===_0x233c34(0x13c)&&(_0x1168a5['outbound'][_0x233c34(0x18c)]+=0x1,_0x1168a5[_0x233c34(0x144)][_0x233c34(0x187)]+=_0x5e3c81[_0x379a64][_0x233c34(0x13b)]-_0x5e3c81[_0x379a64][_0x233c34(0x171)]||0x0,_0x1168a5['outbound']['sumBillable']+=_0x5e3c81[_0x379a64][_0x233c34(0x171)]);}return _0x1168a5[_0x233c34(0x144)];};},Realtime['prototype'][a1256_0x1f5251(0x168)]=function(){const _0x250d96=this;return function(_0x5dc4fe){const _0x21e3f8=a1256_0x42a0;if(_0x5dc4fe){freeIsNotKey(_0x5dc4fe,_0x250d96[_0x21e3f8(0x146)],_0x21e3f8(0x17a));for(let _0x379af5=0x0,_0x1907cc={};_0x379af5<_0x5dc4fe['length'];_0x379af5+=0x1){_0x1907cc=_0x5dc4fe[_0x379af5],_['isUndefined'](_0x250d96[_0x21e3f8(0x146)][_0x1907cc[_0x21e3f8(0x17a)]])?_0x250d96['campaigns'][_0x1907cc[_0x21e3f8(0x17a)]]=new Campaign(_0x1907cc):(_0x250d96[_0x21e3f8(0x16d)](_0x250d96[_0x21e3f8(0x146)][_0x1907cc[_0x21e3f8(0x17a)]],_0x1907cc),_0x250d96[_0x21e3f8(0x146)][_0x1907cc[_0x21e3f8(0x17a)]][_0x21e3f8(0x140)]=_0x1907cc[_0x21e3f8(0x16a)]?_0x1907cc[_0x21e3f8(0x16a)][_0x21e3f8(0x17a)]:undefined);}}return _0x250d96['campaigns'];};},Realtime['prototype']['initVoiceExtensions']=function(){const _0x2d7e44=this;return function(_0x1a457b){const _0x6f0867=a1256_0x42a0;if(_0x1a457b){freeIsNotKey(_0x1a457b,_0x2d7e44[_0x6f0867(0x157)],'id');for(let _0x7c47c8=0x0,_0x5d2f9f={};_0x7c47c8<_0x1a457b['length'];_0x7c47c8+=0x1){_0x5d2f9f=_0x1a457b[_0x7c47c8],_[_0x6f0867(0x147)](_0x2d7e44[_0x6f0867(0x157)][_0x5d2f9f['id']])?_0x2d7e44['voiceExtensions'][_0x5d2f9f['id']]=new VoiceExtension(_0x5d2f9f):_0x2d7e44['mergeFromDatabase'](_0x2d7e44[_0x6f0867(0x157)][_0x5d2f9f['id']],_0x5d2f9f);}}return _0x2d7e44[_0x6f0867(0x157)];};},Realtime[a1256_0x1f5251(0x189)][a1256_0x1f5251(0x142)]=function(){const _0x5aae24=this;return function(_0x1a47ab){const _0x3347ff=a1256_0x42a0;clearCampaigns(_0x5aae24[_0x3347ff(0x146)]);for(let _0x3c8b81=0x0;_0x3c8b81<_0x1a47ab[_0x3347ff(0x169)];_0x3c8b81+=0x1){_[_0x3347ff(0x14f)](_0x5aae24[_0x3347ff(0x146)][_0x1a47ab[_0x3c8b81][_0x3347ff(0x17a)]],_0x1a47ab[_0x3c8b81]);}return _0x5aae24[_0x3347ff(0x146)];};},Realtime[a1256_0x1f5251(0x189)][a1256_0x1f5251(0x18b)]=function(){const _0x85f307=this;return function(_0x54fe4d){const _0x57f242=a1256_0x42a0;if(_0x54fe4d){freeIsNotKey(_0x54fe4d,_0x85f307['faxAccounts'],'id');for(let _0x33fe68=0x0,_0x9d9d08={};_0x33fe68<_0x54fe4d['length'];_0x33fe68+=0x1){_0x9d9d08=_0x54fe4d[_0x33fe68],_[_0x57f242(0x147)](_0x85f307[_0x57f242(0x175)][_0x9d9d08['id']])?_0x85f307['faxAccounts'][_0x9d9d08['id']]=new FaxAccount(_0x9d9d08):_0x85f307['mergeFromDatabase'](_0x85f307['faxAccounts'][_0x9d9d08['id']],_0x9d9d08);}}return _0x85f307[_0x57f242(0x175)];};},module[a1256_0x1f5251(0x138)]=Realtime; \ No newline at end of file diff --git a/server/services/ami/report/index.js b/server/services/ami/report/index.js index 432ede1..c29ac9d 100644 --- a/server/services/ami/report/index.js +++ b/server/services/ami/report/index.js @@ -1 +1 @@ -const a1093_0x47cd=['linkedid','destination','queuecallercomplete','destinationchannel','findAgent','channel','prototype','agents','blindTransfer','attendedTransfer','transfers','../rpc/voiceAgentReport','telephones','custom:voiceQueueReport','isNil','../rpc/voiceTransferReport','exten','sync','startsWith','from-voip-provider','indexOf','xdr','attendedtransfer','blindtransfer','../rpc/voiceQueueReport','queue','Local','format','calleridname','originatecalleridnum','connectedlinenum','create','membername','callerid','transfererlinkedid','xcally-motion-preview','interface','voiceAgentReport','../rpc/voiceCallReport','monitors','disposition','../rpc/voiceDialReport','voiceDialReport','ANSWERED','SIP/%s','queuecallerexit','connectedlinename','custom:voiceCallReport','../../../config/environment','moment','context','uniqueid','YYYY-MM-DD\x20HH:mm:ss','voiceCallReport','name','xcally-motion-dialer','find','substring','custom:voiceAgentReport','accountcode','createdAt','voiceQueueReport','calleridnum','queuecallerexitAt','assigned','bind','monitorFilename','calleridpreview','../ami','lastapplication','monitor','length','exports','lastdata','transfereelinkedid','../rpc/memberReport','type','match'];(function(_0x458e00,_0x47cd04){const _0x16e613=function(_0x244920){while(--_0x244920){_0x458e00['push'](_0x458e00['shift']());}};_0x16e613(++_0x47cd04);}(a1093_0x47cd,0xcc));const a1093_0x16e6=function(_0x458e00,_0x47cd04){_0x458e00=_0x458e00-0x0;let _0x16e613=a1093_0x47cd[_0x458e00];return _0x16e613;};const _0xff6586=a1093_0x16e6;'use strict';const _=require('lodash'),moment=require(_0xff6586('0x1')),util=require('util'),config=require(_0xff6586('0x0')),ami=require(_0xff6586('0x14')),RpcVoiceAgentReport=require(_0xff6586('0x29')),RpcVoiceCallReport=require(_0xff6586('0x44')),RpcVoiceDialReport=require(_0xff6586('0x47')),RpcMemberReport=require(_0xff6586('0x1b')),RpcVoiceQueueReport=require(_0xff6586('0x36')),RpcVoiceRecording=require('../rpc/voiceRecording'),RpcVoiceTransferReport=require(_0xff6586('0x2d'));function Report(_0x244920){const _0x438021=_0xff6586;this['realtime']=_0x244920,this[_0x438021('0x25')]=_0x244920[_0x438021('0x25')],this['telephones']=_0x244920['telephones'];}Report[_0xff6586('0x24')][_0xff6586('0x2f')]=function(){const _0x25f2f8=_0xff6586;config[_0x25f2f8('0x33')]&&config[_0x25f2f8('0x33')]['disabled']&&(ami['on'](_0x25f2f8('0x2b'),this[_0x25f2f8('0xd')][_0x25f2f8('0x11')](this)),ami['on'](_0x25f2f8('0x4d'),this[_0x25f2f8('0x5')][_0x25f2f8('0x11')](this)),ami['on'](_0x25f2f8('0xa'),this['voiceAgentReport']['bind'](this)),ami['on']('custom:voiceDialReport',this[_0x25f2f8('0x48')][_0x25f2f8('0x11')](this)),ami['on'](_0x25f2f8('0x35'),this[_0x25f2f8('0x26')]['bind'](this)),ami['on'](_0x25f2f8('0x34'),this['attendedTransfer'][_0x25f2f8('0x11')](this)));},Report[_0xff6586('0x24')][_0xff6586('0x22')]=function(_0x42d53a){const _0x361aef=_0xff6586;let _0x25d297=undefined;_0x25d297=_[_0x361aef('0x8')](this[_0x361aef('0x25')],function(_0x6ce428){const _0x3ae4bd=_0x361aef;return _0x6ce428[_0x3ae4bd('0xb')]==_0x42d53a||_0x6ce428[_0x3ae4bd('0x6')]==_0x42d53a;});if(_[_0x361aef('0x2c')](_0x25d297)){const _0x52caae=_[_0x361aef('0x8')](this[_0x361aef('0x2a')],function(_0x5e8716){const _0x2c9703=_0x361aef;return _0x5e8716[_0x2c9703('0xb')]==_0x42d53a||_0x5e8716['name']==_0x42d53a;});_0x52caae&&(_0x25d297=_[_0x361aef('0x8')](this[_0x361aef('0x25')],function(_0x126ef3){const _0x5312ed=_0x361aef;return _0x126ef3[_0x5312ed('0x42')]==util['format']('SIP/%s',_0x52caae[_0x5312ed('0x6')]);}));}return _0x25d297;},Report['prototype']['voiceQueueReport']=function(_0xd8db6d){const _0x22d27c=_0xff6586;for(let _0x2d3810=0x0;_0x2d3810<_0xd8db6d[_0x22d27c('0x17')];_0x2d3810+=0x1){const _0x3e5bbc=this['findAgent'](_0xd8db6d[_0x2d3810]['connectedlinenum']);_0x3e5bbc&&(_0xd8db6d[_0x2d3810][_0x22d27c('0xb')]=_0x3e5bbc[_0x22d27c('0xb')],_0xd8db6d[_0x2d3810][_0x22d27c('0x10')]=!![],_0xd8db6d[_0x2d3810]['lastAssignedTo']=_0x3e5bbc[_0x22d27c('0x6')],_0xd8db6d[_0x2d3810][_0x22d27c('0x42')]=_[_0x22d27c('0x2c')](_0x3e5bbc[_0x22d27c('0x42')])?util['format'](_0x22d27c('0x4a'),_0x3e5bbc[_0x22d27c('0x6')]):_0x3e5bbc[_0x22d27c('0x42')],_0xd8db6d[_0x2d3810][_0x22d27c('0x20')]&&(_0xd8db6d[_0x2d3810]['queuecallercompleteAt']=moment()[_0x22d27c('0x39')]('YYYY-MM-DD\x20HH:mm:ss')),_0xd8db6d[_0x2d3810][_0x22d27c('0x4b')]&&(_0xd8db6d[_0x2d3810][_0x22d27c('0xf')]=moment()[_0x22d27c('0x39')](_0x22d27c('0x4'))),RpcMemberReport[_0x22d27c('0xd')](_0xd8db6d[_0x2d3810])),RpcVoiceQueueReport['create'](_0xd8db6d[_0x2d3810]);}};function extractCalleridNumber(_0x536493){const _0x4b255c=_0xff6586,_0x2c2332=_0x536493[_0x4b255c('0x1d')](/<(.*?)>/);return _0x2c2332?_0x2c2332[0x1]:_0x536493;}Report[_0xff6586('0x24')][_0xff6586('0x5')]=function(_0x1d9ec2){const _0x31a11b=_0xff6586;_0x1d9ec2['destination']=_0x1d9ec2[_0x31a11b('0x1f')]||_0x1d9ec2[_0x31a11b('0x2e')];if(_0x1d9ec2[_0x31a11b('0x1c')]=='dialer'){_0x1d9ec2[_0x31a11b('0x15')]=_0x31a11b('0x37'),_0x1d9ec2[_0x31a11b('0x19')]=_0x1d9ec2[_0x31a11b('0x37')];if(_0x1d9ec2[_0x31a11b('0x2')]==_0x31a11b('0x31'))_0x1d9ec2['accountcode']='',_0x1d9ec2[_0x31a11b('0x1f')]=extractCalleridNumber(_0x1d9ec2[_0x31a11b('0x3f')]);else _0x1d9ec2[_0x31a11b('0x2')]=='from-sip'&&(_0x1d9ec2[_0x31a11b('0x1f')]=='xcally-motion-preview'?(_0x1d9ec2['destination']=extractCalleridNumber(_0x1d9ec2['calleridpreview']),_0x1d9ec2[_0x31a11b('0xe')]=_0x1d9ec2['originatecalleridnum'],_0x1d9ec2[_0x31a11b('0x21')]=[_0x1d9ec2[_0x31a11b('0x23')],_0x1d9ec2['channel']=_0x1d9ec2[_0x31a11b('0x21')]][0x0],_0x1d9ec2[_0x31a11b('0x3f')]=_0x1d9ec2[_0x31a11b('0x13')]):(_0x1d9ec2[_0x31a11b('0x1f')]=_0x1d9ec2[_0x31a11b('0xe')],_0x1d9ec2['calleridnum']=_0x1d9ec2[_0x31a11b('0x3b')],_0x1d9ec2[_0x31a11b('0x46')]==_0x31a11b('0x49')?_0x1d9ec2[_0x31a11b('0xb')]=_0x1d9ec2[_0x31a11b('0x3c')]:_0x1d9ec2['accountcode']=''));}else _0x1d9ec2[_0x31a11b('0x3f')]=util[_0x31a11b('0x39')]('\x22%s\x22\x20<%s>',_0x1d9ec2[_0x31a11b('0x3a')],_0x1d9ec2[_0x31a11b('0xe')]);if(RpcVoiceTransferReport['transfers'][_0x1d9ec2[_0x31a11b('0x1e')]]){const _0x2f2c41=RpcVoiceTransferReport[_0x31a11b('0x28')][_0x1d9ec2[_0x31a11b('0x1e')]];_0x2f2c41[_0x31a11b('0x1a')]=_0x1d9ec2[_0x31a11b('0x3')],RpcVoiceTransferReport[_0x31a11b('0x26')](_0x2f2c41),delete RpcVoiceTransferReport[_0x31a11b('0x28')][_0x1d9ec2['linkedid']];}RpcVoiceCallReport[_0x31a11b('0x3d')](_0x1d9ec2);if(_0x1d9ec2[_0x31a11b('0x16')])for(let _0x11f38f=0x0;_0x11f38f<_0x1d9ec2[_0x31a11b('0x45')][_0x31a11b('0x17')];_0x11f38f+=0x1){_0x1d9ec2[_0x31a11b('0x12')]=_0x1d9ec2[_0x31a11b('0x45')][_0x11f38f]['filename'],_0x1d9ec2['createdAt']=_0x1d9ec2[_0x31a11b('0x45')][_0x11f38f][_0x31a11b('0xc')];if(_0x1d9ec2[_0x31a11b('0x2e')]==_0x31a11b('0x41'))_0x1d9ec2[_0x31a11b('0xe')]=_0x1d9ec2[_0x31a11b('0x3c')],_0x1d9ec2[_0x31a11b('0x3a')]=_0x1d9ec2['connectedlinename'],_0x1d9ec2[_0x31a11b('0x3c')]=_0x1d9ec2[_0x31a11b('0xb')],_0x1d9ec2[_0x31a11b('0x4c')]=_0x1d9ec2[_0x31a11b('0x3e')],_0x1d9ec2[_0x31a11b('0x2e')]=_0x1d9ec2[_0x31a11b('0x3b')];else _0x1d9ec2[_0x31a11b('0x2e')]==_0x31a11b('0x7')&&(_0x1d9ec2[_0x31a11b('0xe')]=_0x1d9ec2[_0x31a11b('0x1f')],_0x1d9ec2[_0x31a11b('0x2e')]=_0x1d9ec2[_0x31a11b('0x3b')]);RpcVoiceRecording[_0x31a11b('0x3d')](_0x1d9ec2);}},Report[_0xff6586('0x24')][_0xff6586('0x43')]=function(_0xdcc8db){const _0x529df6=_0xff6586;_['isArray'](_0xdcc8db)?_0xdcc8db['forEach'](function(_0x5da5b8){const _0x276515=a1093_0x16e6;RpcVoiceAgentReport[_0x276515('0x3d')](_0x5da5b8);}):RpcVoiceAgentReport[_0x529df6('0x3d')](_0xdcc8db);},Report[_0xff6586('0x24')][_0xff6586('0x48')]=function(_0x393256){const _0x4406a0=_0xff6586;RpcVoiceDialReport[_0x4406a0('0x3d')](_0x393256);let _0x17c544=undefined;const _0x3aefaa=_0x393256['channel'];if(_[_0x4406a0('0x30')](_0x3aefaa,_0x4406a0('0x38'))){const _0x34a09d=_0x3aefaa['substring'](_0x3aefaa['indexOf']('/')+0x1,_0x3aefaa[_0x4406a0('0x32')]('@'));_0x17c544=_[_0x4406a0('0x8')](this['agents'],function(_0x493a2e){return _0x493a2e['mobile']==_0x34a09d||_0x493a2e['phone']==_0x34a09d||_0x493a2e['accountcode']==_0x34a09d;});}else{const _0x35148c=_0x3aefaa[_0x4406a0('0x9')](_0x3aefaa[_0x4406a0('0x32')]('/')+0x1,_0x3aefaa['lastIndexOf']('-'));_0x17c544=this['findAgent'](_0x35148c);}_0x17c544&&(_0x393256[_0x4406a0('0x42')]=_['isNil'](_0x17c544[_0x4406a0('0x42')])?util[_0x4406a0('0x39')](_0x4406a0('0x4a'),_0x17c544[_0x4406a0('0x6')]):_0x17c544[_0x4406a0('0x42')],_0x393256[_0x4406a0('0x3e')]=_0x17c544[_0x4406a0('0x6')],_0x393256[_0x4406a0('0xb')]=_0x17c544[_0x4406a0('0xb')],RpcMemberReport[_0x4406a0('0x48')](_0x393256));},Report[_0xff6586('0x24')][_0xff6586('0x26')]=function(_0x6dffdf){const _0x5b2f2b=_0xff6586;RpcVoiceTransferReport[_0x5b2f2b('0x28')][_0x6dffdf[_0x5b2f2b('0x40')]]=_0x6dffdf;},Report['prototype']['attendedTransfer']=function(_0x2cb39d){const _0x6e3d13=_0xff6586;RpcVoiceTransferReport[_0x6e3d13('0x27')](_0x2cb39d);},module[_0xff6586('0x18')]=Report; \ No newline at end of file +const a1257_0x1d01=['accountcode','uniqueid','indexOf','monitorFilename','exten','createdAt','../rpc/voiceTransferReport','create','isArray','findAgent','../ami','format','realtime','blindTransfer','custom:voiceDialReport','custom:voiceCallReport','from-sip','prototype','lastAssignedTo','disposition','assigned','context','util','../rpc/voiceDialReport','voiceCallReport','../rpc/voiceCallReport','calleridpreview','substring','forEach','find','membername','lastdata','connectedlinenum','xcally-motion-dialer','transfererlinkedid','disabled','calleridname','blindtransfer','destinationchannel','queuecallercompleteAt','YYYY-MM-DD\x20HH:mm:ss','ANSWERED','voiceQueueReport','type','from-voip-provider','originatecalleridnum','agents','monitors','filename','calleridnum','custom:voiceQueueReport','voiceDialReport','voiceAgentReport','isNil','bind','monitor','xdr','../../../config/environment','phone','transfers','transfereelinkedid','linkedid','telephones','custom:voiceAgentReport','attendedTransfer','../rpc/voiceAgentReport','length','destination','xcally-motion-preview','SIP/%s','queuecallerexitAt','callerid','sync','moment','channel','name','interface'];(function(_0xf4319d,_0x58751f){const _0x1d01d8=function(_0x5a9058){while(--_0x5a9058){_0xf4319d['push'](_0xf4319d['shift']());}};_0x1d01d8(++_0x58751f);}(a1257_0x1d01,0xaf));const a1257_0x5a90=function(_0xf4319d,_0x58751f){_0xf4319d=_0xf4319d-0x111;let _0x1d01d8=a1257_0x1d01[_0xf4319d];return _0x1d01d8;};const a1257_0x895286=a1257_0x5a90;'use strict';const _=require('lodash'),moment=require(a1257_0x895286(0x145)),util=require(a1257_0x895286(0x112)),config=require(a1257_0x895286(0x135)),ami=require(a1257_0x895286(0x153)),RpcVoiceAgentReport=require(a1257_0x895286(0x13d)),RpcVoiceCallReport=require(a1257_0x895286(0x115)),RpcVoiceDialReport=require(a1257_0x895286(0x113)),RpcMemberReport=require('../rpc/memberReport'),RpcVoiceQueueReport=require('../rpc/voiceQueueReport'),RpcVoiceRecording=require('../rpc/voiceRecording'),RpcVoiceTransferReport=require(a1257_0x895286(0x14f));function Report(_0x5c83f8){const _0x353900=a1257_0x895286;this[_0x353900(0x155)]=_0x5c83f8,this[_0x353900(0x12a)]=_0x5c83f8[_0x353900(0x12a)],this[_0x353900(0x13a)]=_0x5c83f8[_0x353900(0x13a)];}Report[a1257_0x895286(0x15a)][a1257_0x895286(0x144)]=function(){const _0x2a8cf9=a1257_0x895286;config[_0x2a8cf9(0x134)]&&config[_0x2a8cf9(0x134)][_0x2a8cf9(0x11f)]&&(ami['on'](_0x2a8cf9(0x12e),this[_0x2a8cf9(0x126)][_0x2a8cf9(0x132)](this)),ami['on'](_0x2a8cf9(0x158),this[_0x2a8cf9(0x114)][_0x2a8cf9(0x132)](this)),ami['on'](_0x2a8cf9(0x13b),this[_0x2a8cf9(0x130)]['bind'](this)),ami['on'](_0x2a8cf9(0x157),this[_0x2a8cf9(0x12f)][_0x2a8cf9(0x132)](this)),ami['on'](_0x2a8cf9(0x121),this[_0x2a8cf9(0x156)][_0x2a8cf9(0x132)](this)),ami['on']('attendedtransfer',this[_0x2a8cf9(0x13c)][_0x2a8cf9(0x132)](this)));},Report['prototype'][a1257_0x895286(0x152)]=function(_0x4629cd){const _0x58e741=a1257_0x895286;let _0x10f815=undefined;_0x10f815=_[_0x58e741(0x119)](this['agents'],function(_0x256451){const _0x14515d=_0x58e741;return _0x256451[_0x14515d(0x149)]==_0x4629cd||_0x256451['name']==_0x4629cd;});if(_[_0x58e741(0x131)](_0x10f815)){const _0x28bf88=_[_0x58e741(0x119)](this['telephones'],function(_0x36b157){const _0x4765e5=_0x58e741;return _0x36b157[_0x4765e5(0x149)]==_0x4629cd||_0x36b157[_0x4765e5(0x147)]==_0x4629cd;});_0x28bf88&&(_0x10f815=_[_0x58e741(0x119)](this[_0x58e741(0x12a)],function(_0x4b0ccb){const _0x5eac04=_0x58e741;return _0x4b0ccb['interface']==util[_0x5eac04(0x154)]('SIP/%s',_0x28bf88[_0x5eac04(0x147)]);}));}return _0x10f815;},Report[a1257_0x895286(0x15a)][a1257_0x895286(0x126)]=function(_0x249ec4){const _0x129e0e=a1257_0x895286;for(let _0x4f4410=0x0;_0x4f4410<_0x249ec4['length'];_0x4f4410+=0x1){const _0x55bc64=this[_0x129e0e(0x152)](_0x249ec4[_0x4f4410][_0x129e0e(0x11c)]);_0x55bc64&&(_0x249ec4[_0x4f4410]['accountcode']=_0x55bc64[_0x129e0e(0x149)],_0x249ec4[_0x4f4410][_0x129e0e(0x15d)]=!![],_0x249ec4[_0x4f4410][_0x129e0e(0x15b)]=_0x55bc64[_0x129e0e(0x147)],_0x249ec4[_0x4f4410][_0x129e0e(0x148)]=_['isNil'](_0x55bc64[_0x129e0e(0x148)])?util[_0x129e0e(0x154)]('SIP/%s',_0x55bc64['name']):_0x55bc64[_0x129e0e(0x148)],_0x249ec4[_0x4f4410]['queuecallercomplete']&&(_0x249ec4[_0x4f4410][_0x129e0e(0x123)]=moment()[_0x129e0e(0x154)](_0x129e0e(0x124))),_0x249ec4[_0x4f4410]['queuecallerexit']&&(_0x249ec4[_0x4f4410][_0x129e0e(0x142)]=moment()[_0x129e0e(0x154)](_0x129e0e(0x124))),RpcMemberReport[_0x129e0e(0x126)](_0x249ec4[_0x4f4410])),RpcVoiceQueueReport['create'](_0x249ec4[_0x4f4410]);}};function extractCalleridNumber(_0x95a453){const _0x42b029=_0x95a453['match'](/<(.*?)>/);return _0x42b029?_0x42b029[0x1]:_0x95a453;}Report['prototype']['voiceCallReport']=function(_0x58008c){const _0x2eae04=a1257_0x895286;_0x58008c[_0x2eae04(0x13f)]=_0x58008c['destination']||_0x58008c[_0x2eae04(0x14d)];if(_0x58008c[_0x2eae04(0x127)]=='dialer'){_0x58008c['lastapplication']='queue',_0x58008c[_0x2eae04(0x11b)]=_0x58008c['queue'];if(_0x58008c[_0x2eae04(0x111)]==_0x2eae04(0x128))_0x58008c[_0x2eae04(0x149)]='',_0x58008c['destination']=extractCalleridNumber(_0x58008c[_0x2eae04(0x143)]);else _0x58008c[_0x2eae04(0x111)]==_0x2eae04(0x159)&&(_0x58008c['destination']==_0x2eae04(0x140)?(_0x58008c['destination']=extractCalleridNumber(_0x58008c[_0x2eae04(0x116)]),_0x58008c[_0x2eae04(0x12d)]=_0x58008c[_0x2eae04(0x129)],_0x58008c[_0x2eae04(0x122)]=[_0x58008c[_0x2eae04(0x146)],_0x58008c['channel']=_0x58008c[_0x2eae04(0x122)]][0x0],_0x58008c[_0x2eae04(0x143)]=_0x58008c[_0x2eae04(0x116)]):(_0x58008c[_0x2eae04(0x13f)]=_0x58008c['calleridnum'],_0x58008c[_0x2eae04(0x12d)]=_0x58008c['originatecalleridnum'],_0x58008c[_0x2eae04(0x15c)]==_0x2eae04(0x125)?_0x58008c[_0x2eae04(0x149)]=_0x58008c[_0x2eae04(0x11c)]:_0x58008c[_0x2eae04(0x149)]=''));}else _0x58008c[_0x2eae04(0x143)]=util[_0x2eae04(0x154)]('\x22%s\x22\x20<%s>',_0x58008c['calleridname'],_0x58008c[_0x2eae04(0x12d)]);if(RpcVoiceTransferReport['transfers'][_0x58008c[_0x2eae04(0x139)]]){const _0x20205d=RpcVoiceTransferReport[_0x2eae04(0x137)][_0x58008c[_0x2eae04(0x139)]];_0x20205d[_0x2eae04(0x138)]=_0x58008c[_0x2eae04(0x14a)],RpcVoiceTransferReport[_0x2eae04(0x156)](_0x20205d),delete RpcVoiceTransferReport[_0x2eae04(0x137)][_0x58008c[_0x2eae04(0x139)]];}RpcVoiceCallReport['create'](_0x58008c);if(_0x58008c[_0x2eae04(0x133)])for(let _0x21fa3e=0x0;_0x21fa3e<_0x58008c['monitors'][_0x2eae04(0x13e)];_0x21fa3e+=0x1){_0x58008c[_0x2eae04(0x14c)]=_0x58008c[_0x2eae04(0x12b)][_0x21fa3e][_0x2eae04(0x12c)],_0x58008c[_0x2eae04(0x14e)]=_0x58008c[_0x2eae04(0x12b)][_0x21fa3e][_0x2eae04(0x14e)];if(_0x58008c[_0x2eae04(0x14d)]==_0x2eae04(0x140))_0x58008c[_0x2eae04(0x12d)]=_0x58008c[_0x2eae04(0x11c)],_0x58008c[_0x2eae04(0x120)]=_0x58008c['connectedlinename'],_0x58008c[_0x2eae04(0x11c)]=_0x58008c[_0x2eae04(0x149)],_0x58008c['connectedlinename']=_0x58008c[_0x2eae04(0x11a)],_0x58008c[_0x2eae04(0x14d)]=_0x58008c['originatecalleridnum'];else _0x58008c[_0x2eae04(0x14d)]==_0x2eae04(0x11d)&&(_0x58008c['calleridnum']=_0x58008c[_0x2eae04(0x13f)],_0x58008c[_0x2eae04(0x14d)]=_0x58008c[_0x2eae04(0x129)]);RpcVoiceRecording[_0x2eae04(0x150)](_0x58008c);}},Report[a1257_0x895286(0x15a)][a1257_0x895286(0x130)]=function(_0x1ab678){const _0x1ffeab=a1257_0x895286;_[_0x1ffeab(0x151)](_0x1ab678)?_0x1ab678[_0x1ffeab(0x118)](function(_0x33e6cb){RpcVoiceAgentReport['create'](_0x33e6cb);}):RpcVoiceAgentReport['create'](_0x1ab678);},Report[a1257_0x895286(0x15a)]['voiceDialReport']=function(_0x35a547){const _0x5ba20c=a1257_0x895286;RpcVoiceDialReport['create'](_0x35a547);let _0x1ac410=undefined;const _0x38303d=_0x35a547['channel'];if(_['startsWith'](_0x38303d,'Local')){const _0x230143=_0x38303d[_0x5ba20c(0x117)](_0x38303d['indexOf']('/')+0x1,_0x38303d[_0x5ba20c(0x14b)]('@'));_0x1ac410=_[_0x5ba20c(0x119)](this['agents'],function(_0x370fc2){const _0x253fff=_0x5ba20c;return _0x370fc2['mobile']==_0x230143||_0x370fc2[_0x253fff(0x136)]==_0x230143||_0x370fc2['accountcode']==_0x230143;});}else{const _0x491679=_0x38303d['substring'](_0x38303d['indexOf']('/')+0x1,_0x38303d['lastIndexOf']('-'));_0x1ac410=this[_0x5ba20c(0x152)](_0x491679);}_0x1ac410&&(_0x35a547[_0x5ba20c(0x148)]=_[_0x5ba20c(0x131)](_0x1ac410[_0x5ba20c(0x148)])?util[_0x5ba20c(0x154)](_0x5ba20c(0x141),_0x1ac410[_0x5ba20c(0x147)]):_0x1ac410[_0x5ba20c(0x148)],_0x35a547[_0x5ba20c(0x11a)]=_0x1ac410['name'],_0x35a547[_0x5ba20c(0x149)]=_0x1ac410[_0x5ba20c(0x149)],RpcMemberReport[_0x5ba20c(0x12f)](_0x35a547));},Report[a1257_0x895286(0x15a)][a1257_0x895286(0x156)]=function(_0x1ff59a){const _0x42ef02=a1257_0x895286;RpcVoiceTransferReport[_0x42ef02(0x137)][_0x1ff59a[_0x42ef02(0x11e)]]=_0x1ff59a;},Report[a1257_0x895286(0x15a)]['attendedTransfer']=function(_0x17a856){const _0x19cb03=a1257_0x895286;RpcVoiceTransferReport[_0x19cb03(0x13c)](_0x17a856);},module['exports']=Report; \ No newline at end of file diff --git a/server/services/ami/report/userReport.js b/server/services/ami/report/userReport.js index b617952..0d3edeb 100644 --- a/server/services/ami/report/userReport.js +++ b/server/services/ami/report/userReport.js @@ -1 +1 @@ -const a1094_0x51a6=['toNumber','prototype','mobile','format','telephone:%s','syncDeviceState','status','inuse','toLowerCase','agents','merge','trunk:%s','address','indexOf','local','registered','../ami','omit','[syncPeerStatus][UserReport]','[syncRegistry][UserReport]','find','moment','name','Queue','registry','device','telephones','trunks','isUndefined','actionDeviceStateList','actionid','syncRegistry','substring','catch','syncPeerStatus','ami','peer','state','peerstatus','bind','then','isNotNull','actionSipShowRegistry','phone','updateStatusRealtime','accountcode','[loopSyncRealTimeShow]','lodash','inspect','resolve','actionSipPeerStatus','telephone:save','startsWith','emit','trunk:save','util','stateTime','loopSyncRealTimeShow','error','devicestatechange','event'];(function(_0x4833d7,_0x51a601){const _0x2ae23b=function(_0x30b15c){while(--_0x30b15c){_0x4833d7['push'](_0x4833d7['shift']());}};_0x2ae23b(++_0x51a601);}(a1094_0x51a6,0x102));const a1094_0x2ae2=function(_0x4833d7,_0x51a601){_0x4833d7=_0x4833d7-0x0;let _0x2ae23b=a1094_0x51a6[_0x4833d7];return _0x2ae23b;};const _0x1c96f5=a1094_0x2ae2;'use strict';const _=require(_0x1c96f5('0x21')),moment=require(_0x1c96f5('0x7')),util=require(_0x1c96f5('0x29')),logger=require('../../../config/logger')(_0x1c96f5('0x15')),ami=require(_0x1c96f5('0x2')),{getSocket}=require('../../../rediscache'),io=getSocket();function UserReport(_0x30b15c){const _0x483d6e=_0x1c96f5;return this[_0x483d6e('0xd')]=_0x30b15c[_0x483d6e('0xd')],this['agents']=_0x30b15c[_0x483d6e('0x38')],this[_0x483d6e('0xc')]=_0x30b15c[_0x483d6e('0xc')],ami['on']('registryentry',this['syncRegistry']['bind'](this)),ami['on'](_0x483d6e('0xa'),this[_0x483d6e('0x11')][_0x483d6e('0x19')](this)),ami['on'](_0x483d6e('0x2d'),this['syncDeviceState'][_0x483d6e('0x19')](this)),ami['on'](_0x483d6e('0x18'),this[_0x483d6e('0x14')]['bind'](this)),this[_0x483d6e('0x2b')](),Promise[_0x483d6e('0x23')]()[_0x483d6e('0x1a')](ami[_0x483d6e('0x1c')]())[_0x483d6e('0x1a')](ami[_0x483d6e('0xf')]())['then'](ami[_0x483d6e('0x24')]())[_0x483d6e('0x13')](loggerCatch(_0x483d6e('0x20')));}function loggerCatch(_0x8fb5c7){return function(_0x4e8453){const _0x589ab8=a1094_0x2ae2;logger['error'](_0x8fb5c7,util[_0x589ab8('0x22')](_0x4e8453,{'showHidden':![],'depth':null}));};}UserReport[_0x1c96f5('0x30')][_0x1c96f5('0x2b')]=function(){setInterval(function(){const _0x41f050=a1094_0x2ae2;Promise[_0x41f050('0x23')]()[_0x41f050('0x1a')](ami[_0x41f050('0x1c')]())[_0x41f050('0x1a')](ami['actionDeviceStateList']())[_0x41f050('0x1a')](ami[_0x41f050('0x24')]())[_0x41f050('0x13')](loggerCatch(_0x41f050('0x20')));},0x32c8);},UserReport['prototype'][_0x1c96f5('0x1b')]=function(_0x5b402e){const _0x193fd9=_0x1c96f5;return _0x5b402e!==null&&!_[_0x193fd9('0xe')](_0x5b402e);},UserReport[_0x1c96f5('0x30')]['emit']=function(_0x364ea1,_0x101b0c,_0x4ce767){const _0x152e08=_0x1c96f5;io['to'](_0x364ea1)[_0x152e08('0x27')](_0x101b0c,_0x4ce767);},UserReport[_0x1c96f5('0x30')][_0x1c96f5('0x11')]=function(_0x447c82){const _0x2f02cb=_0x1c96f5;try{if(this[_0x2f02cb('0x1b')](_0x447c82)){const _0x38bdd2=_[_0x2f02cb('0x6')](this[_0x2f02cb('0xd')],{'registry':_0x447c82['username']});_0x38bdd2&&(_0x447c82['stateRegistry']=_0x447c82[_0x2f02cb('0x17')],_[_0x2f02cb('0x39')](_0x38bdd2,_[_0x2f02cb('0x3')](_0x447c82,[_0x2f02cb('0x2e'),_0x2f02cb('0x10'),'username',_0x2f02cb('0x17')])),this['emit'](util[_0x2f02cb('0x32')](_0x2f02cb('0x3a'),_0x38bdd2['name']),_0x2f02cb('0x28'),_0x38bdd2));}}catch(_0xc8f78b){logger[_0x2f02cb('0x2c')](_0x2f02cb('0x5'),util['inspect'](_0xc8f78b,{'showHidden':![],'depth':null}));}},UserReport[_0x1c96f5('0x30')][_0x1c96f5('0x34')]=function(_0x3d8afc){const _0x412b93=_0x1c96f5;try{if(this[_0x412b93('0x1b')](_0x3d8afc)){if(this['agents'][_0x3d8afc[_0x412b93('0xb')]])(!this[_0x412b93('0x38')][_0x3d8afc[_0x412b93('0xb')]][_0x412b93('0x0')]||_0x3d8afc[_0x412b93('0x17')]['toLowerCase']()==_0x412b93('0x36'))&&(this[_0x412b93('0x38')][_0x3d8afc[_0x412b93('0xb')]][_0x412b93('0x0')]=![],this[_0x412b93('0x38')][_0x3d8afc[_0x412b93('0xb')]][_0x412b93('0x17')]!==_0x3d8afc['state'][_0x412b93('0x37')]()&&(this[_0x412b93('0x38')][_0x3d8afc['device']][_0x412b93('0x2a')]=_[_0x412b93('0x2f')](moment()['format']('x'))),this[_0x412b93('0x38')][_0x3d8afc[_0x412b93('0xb')]][_0x412b93('0x17')]=_0x3d8afc['state'][_0x412b93('0x37')](),this['agents'][_0x3d8afc['device']][_0x412b93('0x1e')](_0x3d8afc));else{if(this[_0x412b93('0xc')][_0x3d8afc[_0x412b93('0xb')]])this[_0x412b93('0xc')][_0x3d8afc[_0x412b93('0xb')]][_0x412b93('0x17')]!==_0x3d8afc[_0x412b93('0x17')][_0x412b93('0x37')]()&&(this['telephones'][_0x3d8afc[_0x412b93('0xb')]][_0x412b93('0x2a')]=_['toNumber'](moment()[_0x412b93('0x32')]('x'))),this['telephones'][_0x3d8afc[_0x412b93('0xb')]][_0x412b93('0x17')]=_0x3d8afc['state']['toLowerCase'](),this[_0x412b93('0x27')](util[_0x412b93('0x32')](_0x412b93('0x33'),this[_0x412b93('0xc')][_0x3d8afc[_0x412b93('0xb')]][_0x412b93('0x8')]),_0x412b93('0x25'),this[_0x412b93('0xc')][_0x3d8afc[_0x412b93('0xb')]]);else{if(this[_0x412b93('0xd')][_0x3d8afc['device']])this['trunks'][_0x3d8afc[_0x412b93('0xb')]][_0x412b93('0x17')]!==_0x3d8afc[_0x412b93('0x17')][_0x412b93('0x37')]()&&(this[_0x412b93('0xd')][_0x3d8afc['device']][_0x412b93('0x2a')]=_[_0x412b93('0x2f')](moment()[_0x412b93('0x32')]('x'))),this[_0x412b93('0xd')][_0x3d8afc['device']]['state']=_0x3d8afc[_0x412b93('0x17')][_0x412b93('0x37')](),this['emit'](util[_0x412b93('0x32')](_0x412b93('0x3a'),this[_0x412b93('0xd')][_0x3d8afc[_0x412b93('0xb')]][_0x412b93('0x8')]),_0x412b93('0x28'),this[_0x412b93('0xd')][_0x3d8afc[_0x412b93('0xb')]]);else{if(_[_0x412b93('0x26')](_0x3d8afc[_0x412b93('0xb')],_0x412b93('0x9'))){}else{if(_['startsWith'](_0x3d8afc['device'],'Local')){const _0x12bcdc=_0x3d8afc[_0x412b93('0xb')],_0x153c1d=_0x12bcdc[_0x412b93('0x12')](_0x12bcdc[_0x412b93('0x3c')]('/')+0x1,_0x12bcdc[_0x412b93('0x3c')]('@')),_0x55e9ee=_['find'](this[_0x412b93('0x38')],function(_0x432533){const _0x3493e6=_0x412b93;return _0x432533[_0x3493e6('0x31')]==_0x153c1d||_0x432533[_0x3493e6('0x1d')]==_0x153c1d||_0x432533[_0x3493e6('0x1f')]==_0x153c1d;});_0x55e9ee&&(_0x55e9ee[_0x412b93('0x17')]!==_0x3d8afc[_0x412b93('0x17')][_0x412b93('0x37')]()&&(_0x55e9ee[_0x412b93('0x2a')]=_[_0x412b93('0x2f')](moment()[_0x412b93('0x32')]('x'))),_0x55e9ee[_0x412b93('0x17')]=_0x3d8afc[_0x412b93('0x17')][_0x412b93('0x37')](),_0x55e9ee[_0x412b93('0x0')]=!![],_0x55e9ee[_0x412b93('0x1e')](_0x3d8afc));}else{}}}}}}}catch(_0x162829){logger[_0x412b93('0x2c')]('[syncDeviceState][UserReport]',util[_0x412b93('0x22')](_0x162829,{'showHidden':![],'depth':null}));}},UserReport[_0x1c96f5('0x30')][_0x1c96f5('0x14')]=function(_0x41b1e3){const _0x3d7beb=_0x1c96f5;try{if(this[_0x3d7beb('0x1b')](_0x41b1e3)&&this[_0x3d7beb('0x1b')](_0x41b1e3[_0x3d7beb('0x18')])){if(this[_0x3d7beb('0x38')][_0x41b1e3['peer']])(!this[_0x3d7beb('0x38')][_0x41b1e3['peer']][_0x3d7beb('0x0')]||_0x41b1e3[_0x3d7beb('0x18')][_0x3d7beb('0x37')]()==_0x3d7beb('0x1'))&&(this[_0x3d7beb('0x38')][_0x41b1e3['peer']][_0x3d7beb('0x0')]=![],this['agents'][_0x41b1e3[_0x3d7beb('0x16')]][_0x3d7beb('0x35')]=_0x41b1e3[_0x3d7beb('0x18')]['toLowerCase'](),this[_0x3d7beb('0x38')][_0x41b1e3[_0x3d7beb('0x16')]]['address']=_0x41b1e3[_0x3d7beb('0x3b')],this['agents'][_0x41b1e3[_0x3d7beb('0x16')]]['updateStatusRealtime'](_0x41b1e3));else{if(this[_0x3d7beb('0xc')][_0x41b1e3[_0x3d7beb('0x16')]])this['telephones'][_0x41b1e3['peer']]['status']=_0x41b1e3[_0x3d7beb('0x18')][_0x3d7beb('0x37')](),this['telephones'][_0x41b1e3[_0x3d7beb('0x16')]][_0x3d7beb('0x3b')]=_0x41b1e3[_0x3d7beb('0x3b')],this[_0x3d7beb('0x27')](util[_0x3d7beb('0x32')](_0x3d7beb('0x33'),this['telephones'][_0x41b1e3[_0x3d7beb('0x16')]]['name']),'telephone:save',this[_0x3d7beb('0xc')][_0x41b1e3['peer']]);else{if(this['trunks'][_0x41b1e3[_0x3d7beb('0x16')]])this[_0x3d7beb('0xd')][_0x41b1e3['peer']][_0x3d7beb('0x35')]=_0x41b1e3[_0x3d7beb('0x18')][_0x3d7beb('0x37')](),this['trunks'][_0x41b1e3['peer']]['address']=_0x41b1e3['address'],this[_0x3d7beb('0x27')](util['format'](_0x3d7beb('0x3a'),this['trunks'][_0x41b1e3[_0x3d7beb('0x16')]][_0x3d7beb('0x8')]),_0x3d7beb('0x28'),this[_0x3d7beb('0xd')][_0x41b1e3[_0x3d7beb('0x16')]]);else{}}}}}catch(_0x1c0bf7){logger[_0x3d7beb('0x2c')](_0x3d7beb('0x4'),util[_0x3d7beb('0x22')](_0x1c0bf7,{'showHidden':![],'depth':null}));}},module['exports']=UserReport; \ No newline at end of file +const a1258_0x71d7=['peer','inspect','[loopSyncRealTimeShow]','ami','local','find','status','catch','emit','actionSipShowRegistry','trunk:%s','syncDeviceState','telephone:%s','telephones','../../../config/logger','prototype','isNotNull','omit','trunks','bind','address','../../../rediscache','resolve','state','registryentry','device','error','util','format','agents','isUndefined','registered','startsWith','trunk:save','exports','accountcode','username','telephone:save','updateStatusRealtime','event','devicestatechange','loopSyncRealTimeShow','toLowerCase','peerstatus','lodash','syncPeerStatus','actionDeviceStateList','name','[syncPeerStatus][UserReport]','indexOf','actionSipPeerStatus','registry','syncRegistry','then','toNumber','[syncDeviceState][UserReport]','stateRegistry','stateTime'];(function(_0x3dd2aa,_0x1a45df){const _0x71d77a=function(_0x3e60fc){while(--_0x3e60fc){_0x3dd2aa['push'](_0x3dd2aa['shift']());}};_0x71d77a(++_0x1a45df);}(a1258_0x71d7,0x14c));const a1258_0x3e60=function(_0x3dd2aa,_0x1a45df){_0x3dd2aa=_0x3dd2aa-0x119;let _0x71d77a=a1258_0x71d7[_0x3dd2aa];return _0x71d77a;};const a1258_0x172378=a1258_0x3e60;'use strict';const _=require(a1258_0x172378(0x11b)),moment=require('moment'),util=require(a1258_0x172378(0x144)),logger=require(a1258_0x172378(0x137))(a1258_0x172378(0x12c)),ami=require('../ami'),{getSocket}=require(a1258_0x172378(0x13e)),io=getSocket();function UserReport(_0x2b1020){const _0x3e1f72=a1258_0x172378;return this[_0x3e1f72(0x13b)]=_0x2b1020['trunks'],this['agents']=_0x2b1020[_0x3e1f72(0x146)],this[_0x3e1f72(0x136)]=_0x2b1020[_0x3e1f72(0x136)],ami['on'](_0x3e1f72(0x141),this[_0x3e1f72(0x123)]['bind'](this)),ami['on'](_0x3e1f72(0x122),this[_0x3e1f72(0x123)][_0x3e1f72(0x13c)](this)),ami['on'](_0x3e1f72(0x151),this[_0x3e1f72(0x134)]['bind'](this)),ami['on'](_0x3e1f72(0x11a),this[_0x3e1f72(0x11c)]['bind'](this)),this[_0x3e1f72(0x152)](),Promise['resolve']()['then'](ami['actionSipShowRegistry']())[_0x3e1f72(0x124)](ami[_0x3e1f72(0x11d)]())[_0x3e1f72(0x124)](ami['actionSipPeerStatus']())[_0x3e1f72(0x130)](loggerCatch(_0x3e1f72(0x12b)));}function loggerCatch(_0x1dc829){return function(_0x46ab17){const _0x79d994=a1258_0x3e60;logger[_0x79d994(0x143)](_0x1dc829,util[_0x79d994(0x12a)](_0x46ab17,{'showHidden':![],'depth':null}));};}UserReport['prototype']['loopSyncRealTimeShow']=function(){setInterval(function(){const _0x54d5dc=a1258_0x3e60;Promise[_0x54d5dc(0x13f)]()[_0x54d5dc(0x124)](ami[_0x54d5dc(0x132)]())[_0x54d5dc(0x124)](ami[_0x54d5dc(0x11d)]())[_0x54d5dc(0x124)](ami[_0x54d5dc(0x121)]())[_0x54d5dc(0x130)](loggerCatch(_0x54d5dc(0x12b)));},0x32c8);},UserReport[a1258_0x172378(0x138)][a1258_0x172378(0x139)]=function(_0x212af3){const _0x3543b1=a1258_0x172378;return _0x212af3!==null&&!_[_0x3543b1(0x147)](_0x212af3);},UserReport['prototype'][a1258_0x172378(0x131)]=function(_0x2d1e51,_0x4fd1e4,_0x3c1dd8){io['to'](_0x2d1e51)['emit'](_0x4fd1e4,_0x3c1dd8);},UserReport[a1258_0x172378(0x138)]['syncRegistry']=function(_0x57b2e5){const _0x3f9770=a1258_0x172378;try{if(this['isNotNull'](_0x57b2e5)){const _0xaf2cf6=_[_0x3f9770(0x12e)](this[_0x3f9770(0x13b)],{'registry':_0x57b2e5['username']});_0xaf2cf6&&(_0x57b2e5[_0x3f9770(0x127)]=_0x57b2e5['state'],_['merge'](_0xaf2cf6,_[_0x3f9770(0x13a)](_0x57b2e5,[_0x3f9770(0x150),'actionid',_0x3f9770(0x14d),_0x3f9770(0x140)])),this[_0x3f9770(0x131)](util[_0x3f9770(0x145)](_0x3f9770(0x133),_0xaf2cf6[_0x3f9770(0x11e)]),_0x3f9770(0x14a),_0xaf2cf6));}}catch(_0x39e2e1){logger[_0x3f9770(0x143)]('[syncRegistry][UserReport]',util[_0x3f9770(0x12a)](_0x39e2e1,{'showHidden':![],'depth':null}));}},UserReport['prototype'][a1258_0x172378(0x134)]=function(_0x53316f){const _0x10f67b=a1258_0x172378;try{if(this[_0x10f67b(0x139)](_0x53316f)){if(this[_0x10f67b(0x146)][_0x53316f[_0x10f67b(0x142)]])(!this[_0x10f67b(0x146)][_0x53316f['device']][_0x10f67b(0x12d)]||_0x53316f['state']['toLowerCase']()=='inuse')&&(this[_0x10f67b(0x146)][_0x53316f[_0x10f67b(0x142)]][_0x10f67b(0x12d)]=![],this[_0x10f67b(0x146)][_0x53316f[_0x10f67b(0x142)]][_0x10f67b(0x140)]!==_0x53316f[_0x10f67b(0x140)][_0x10f67b(0x119)]()&&(this[_0x10f67b(0x146)][_0x53316f[_0x10f67b(0x142)]][_0x10f67b(0x128)]=_['toNumber'](moment()[_0x10f67b(0x145)]('x'))),this[_0x10f67b(0x146)][_0x53316f[_0x10f67b(0x142)]][_0x10f67b(0x140)]=_0x53316f[_0x10f67b(0x140)]['toLowerCase'](),this[_0x10f67b(0x146)][_0x53316f[_0x10f67b(0x142)]][_0x10f67b(0x14f)](_0x53316f));else{if(this[_0x10f67b(0x136)][_0x53316f[_0x10f67b(0x142)]])this[_0x10f67b(0x136)][_0x53316f[_0x10f67b(0x142)]][_0x10f67b(0x140)]!==_0x53316f[_0x10f67b(0x140)][_0x10f67b(0x119)]()&&(this['telephones'][_0x53316f[_0x10f67b(0x142)]][_0x10f67b(0x128)]=_[_0x10f67b(0x125)](moment()['format']('x'))),this[_0x10f67b(0x136)][_0x53316f[_0x10f67b(0x142)]]['state']=_0x53316f[_0x10f67b(0x140)][_0x10f67b(0x119)](),this['emit'](util[_0x10f67b(0x145)](_0x10f67b(0x135),this[_0x10f67b(0x136)][_0x53316f['device']]['name']),_0x10f67b(0x14e),this[_0x10f67b(0x136)][_0x53316f[_0x10f67b(0x142)]]);else{if(this[_0x10f67b(0x13b)][_0x53316f[_0x10f67b(0x142)]])this[_0x10f67b(0x13b)][_0x53316f[_0x10f67b(0x142)]][_0x10f67b(0x140)]!==_0x53316f[_0x10f67b(0x140)]['toLowerCase']()&&(this[_0x10f67b(0x13b)][_0x53316f['device']]['stateTime']=_[_0x10f67b(0x125)](moment()[_0x10f67b(0x145)]('x'))),this['trunks'][_0x53316f['device']][_0x10f67b(0x140)]=_0x53316f[_0x10f67b(0x140)][_0x10f67b(0x119)](),this[_0x10f67b(0x131)](util[_0x10f67b(0x145)](_0x10f67b(0x133),this[_0x10f67b(0x13b)][_0x53316f[_0x10f67b(0x142)]]['name']),'trunk:save',this[_0x10f67b(0x13b)][_0x53316f[_0x10f67b(0x142)]]);else{if(_[_0x10f67b(0x149)](_0x53316f[_0x10f67b(0x142)],'Queue')){}else{if(_[_0x10f67b(0x149)](_0x53316f[_0x10f67b(0x142)],'Local')){const _0x21942b=_0x53316f['device'],_0x829832=_0x21942b['substring'](_0x21942b[_0x10f67b(0x120)]('/')+0x1,_0x21942b[_0x10f67b(0x120)]('@')),_0xfa03dc=_[_0x10f67b(0x12e)](this[_0x10f67b(0x146)],function(_0x3fff9e){const _0x256824=_0x10f67b;return _0x3fff9e['mobile']==_0x829832||_0x3fff9e['phone']==_0x829832||_0x3fff9e[_0x256824(0x14c)]==_0x829832;});_0xfa03dc&&(_0xfa03dc['state']!==_0x53316f[_0x10f67b(0x140)][_0x10f67b(0x119)]()&&(_0xfa03dc[_0x10f67b(0x128)]=_[_0x10f67b(0x125)](moment()['format']('x'))),_0xfa03dc['state']=_0x53316f['state'][_0x10f67b(0x119)](),_0xfa03dc['local']=!![],_0xfa03dc[_0x10f67b(0x14f)](_0x53316f));}else{}}}}}}}catch(_0x554c83){logger[_0x10f67b(0x143)](_0x10f67b(0x126),util[_0x10f67b(0x12a)](_0x554c83,{'showHidden':![],'depth':null}));}},UserReport[a1258_0x172378(0x138)][a1258_0x172378(0x11c)]=function(_0xa10d07){const _0x57a793=a1258_0x172378;try{if(this['isNotNull'](_0xa10d07)&&this[_0x57a793(0x139)](_0xa10d07[_0x57a793(0x11a)])){if(this[_0x57a793(0x146)][_0xa10d07[_0x57a793(0x129)]])(!this[_0x57a793(0x146)][_0xa10d07[_0x57a793(0x129)]][_0x57a793(0x12d)]||_0xa10d07[_0x57a793(0x11a)]['toLowerCase']()==_0x57a793(0x148))&&(this['agents'][_0xa10d07['peer']]['local']=![],this[_0x57a793(0x146)][_0xa10d07['peer']][_0x57a793(0x12f)]=_0xa10d07[_0x57a793(0x11a)][_0x57a793(0x119)](),this[_0x57a793(0x146)][_0xa10d07['peer']][_0x57a793(0x13d)]=_0xa10d07[_0x57a793(0x13d)],this['agents'][_0xa10d07[_0x57a793(0x129)]]['updateStatusRealtime'](_0xa10d07));else{if(this['telephones'][_0xa10d07[_0x57a793(0x129)]])this[_0x57a793(0x136)][_0xa10d07[_0x57a793(0x129)]][_0x57a793(0x12f)]=_0xa10d07[_0x57a793(0x11a)]['toLowerCase'](),this[_0x57a793(0x136)][_0xa10d07['peer']][_0x57a793(0x13d)]=_0xa10d07[_0x57a793(0x13d)],this[_0x57a793(0x131)](util[_0x57a793(0x145)](_0x57a793(0x135),this[_0x57a793(0x136)][_0xa10d07[_0x57a793(0x129)]][_0x57a793(0x11e)]),_0x57a793(0x14e),this[_0x57a793(0x136)][_0xa10d07[_0x57a793(0x129)]]);else{if(this['trunks'][_0xa10d07[_0x57a793(0x129)]])this[_0x57a793(0x13b)][_0xa10d07['peer']][_0x57a793(0x12f)]=_0xa10d07[_0x57a793(0x11a)][_0x57a793(0x119)](),this[_0x57a793(0x13b)][_0xa10d07[_0x57a793(0x129)]][_0x57a793(0x13d)]=_0xa10d07[_0x57a793(0x13d)],this[_0x57a793(0x131)](util[_0x57a793(0x145)](_0x57a793(0x133),this[_0x57a793(0x13b)][_0xa10d07[_0x57a793(0x129)]][_0x57a793(0x11e)]),'trunk:save',this['trunks'][_0xa10d07[_0x57a793(0x129)]]);else{}}}}}catch(_0x10fab9){logger[_0x57a793(0x143)](_0x57a793(0x11f),util[_0x57a793(0x12a)](_0x10fab9,{'showHidden':![],'depth':null}));}},module[a1258_0x172378(0x14b)]=UserReport; \ No newline at end of file diff --git a/server/services/ami/report/voiceAgentReport.js b/server/services/ami/report/voiceAgentReport.js index 2570b30..44212cf 100644 --- a/server/services/ami/report/voiceAgentReport.js +++ b/server/services/ami/report/voiceAgentReport.js @@ -1 +1 @@ -const a1095_0x1e92=['includes','[%s][voiceAgentReport][agentringnoanswer]\x20event:','talktime','bridgepvtcallid','bridgepeer','[%s][voiceAgentReport][agentringnoanswer]','agentcomplete','privilege','custom:agentqueuecallerabandon','[%s][voiceAgentReport][agentcalled]\x20sending\x20user:called\x20event:','holdtime','[%s][voiceAgentReport][attendedtransfer]','agentringnoanswer','sipcallid','agentringnoanswerAt','lastevent','[%s][voiceAgentReport][agentcomplete]\x20event:','syncBlindTransfer','[%s][voiceAgentReport][blindtransfer]','format','memberrealtime','[%s][voiceAgentReport][blindtransfer]\x20agent:%s\x20destuniqueid:%s\x20lastevent:complete','[%s][voiceAgentReport][queuecallerabandon]','util','YYYY-MM-DD\x20HH:mm:ss','[%s][voiceAgentReport][hangup]\x20event:','[%s][voiceAgentReport][attendedtransfer]\x20agent:%s\x20destuniqueid:%s\x20lastevent:complete','../../../config/logger','value','[%s][voiceAgentReport][hangup]','queuecallerabandon','debug','custom:agentcomplete','event','[%s][voiceAgentReport][agentringnoanswer]\x20sending\x20agentringnoanswer\x20event:','[%s][voiceAgentReport][musiconholdstart]\x20event:','destchannelstate','custom:agentcalled','syncMusicOnHoldStop','syncMusicOnHoldStart','[%s][voiceAgentReport][agentcalled]\x20event:','abandoned','syncHangup','rtpaudioqosrttbridged','user:called','rtpaudioqosbridged','omit','info','rtpaudioqos','destchannelstatedesc','musiconholdstart','keys','onhold','diff','ami','channels','[%s][voiceAgentReport][agentringnoanswer]\x20agent:%s\x20destuniqueid:%s\x20lastevent:rejected','memberinterface','agentacw','memberpenalty','[%s][voiceAgentReport][varset]\x20event:','reason','[%s][voiceAgentReport][musiconholdstop]\x20event:','substring','syncAgentConnect','agentcompleteAt','merge','inspect','answered_elsewhere','syncAgentCalled','isUndefined','[%s][voiceAgentReport][attendedtransfer]\x20event:','connect','[%s][voiceAgentReport][agentcomplete]','agents','rejected','voiceQueues','transfer','[%s][voiceAgentReport][agentcalled]','[%s][voiceAgentReport][agentconnect]\x20sending\x20agentconnect\x20event:','acw','agentconnect','connectedlinenum','seconds','prototype','custom:agentringnoanswer','channel','syncVarSet','syncAgentRingNoAnswer','syncAttendedTransfer','memberdynamic','[%s][voiceAgentReport][agentcomplete]\x20agent:%s\x20destuniqueid:%s\x20lastevent:complete','isNotNull','rtpaudioqosjitterbridged','variable','error','[%s][voiceAgentReport][agentconnect]\x20event:','blindtransfer','acwTimeout','lastIndexOf','sipuri','memberlastcall','custom:agentansweredelsewhere','[%s][voiceAgentReport][musiconholdstart]','[%s][voiceAgentReport][agentcalled]\x20sending\x20user:agentconnect\x20event:','varset','agent','destuniqueid','rtpaudioqosrtt','emit','rtpaudioqosjitter','user:%s','custom:agentconnect','answeredelsewheredestinationuniqueid','[%s][voiceAgentReport][hangup]\x20sending\x20voiceAgentReport\x20event:','syncQueueCallerAbandon','[%s][voiceAgentReport][agentcalled]\x20sending\x20agentcalled\x20event:','attendedtransfer','musiconholdstop','agentconnectAt','syncAgentComplete','values','undefined','../../../rediscache','lodash','hangup','bind','uniqueid','[%s][voiceAgentReport][agentconnect]\x20agent:%s\x20destuniqueid:%s\x20lastevent:answered_elsewhere','moment','exports','origtransfereruniqueid','user:agentcomplete','connectedlinename','[%s][voiceAgentReport][queuecallerabandon]\x20agent:%s\x20destuniqueid:%s\x20lastevent:abandoned','destconnectedlinenum','variables','[%s][voiceAgentReport][agentconnect]','type','[%s][voiceAgentReport][musiconholdstart]\x20interface:%s','complete','isNil','[%s][voiceAgentReport][agentcomplete]\x20sending\x20agentcomplete\x20event:','transfereeuniqueid','membercalls','agentcalled','interface','secondtransfereruniqueid','queue','membername','[%s][voiceAgentReport][agentconnect]\x20agent:%s\x20destuniqueid:%s\x20lastevent:connect'];(function(_0x3d2909,_0x1e9246){const _0x47887f=function(_0x3b2860){while(--_0x3b2860){_0x3d2909['push'](_0x3d2909['shift']());}};_0x47887f(++_0x1e9246);}(a1095_0x1e92,0x124));const a1095_0x4788=function(_0x3d2909,_0x1e9246){_0x3d2909=_0x3d2909-0x0;let _0x47887f=a1095_0x1e92[_0x3d2909];return _0x47887f;};const _0x40e42b=a1095_0x4788;'use strict';const _=require(_0x40e42b('0x86')),moment=require(_0x40e42b('0x8b')),util=require(_0x40e42b('0x21')),logger=require(_0x40e42b('0x25'))(_0x40e42b('0x40')),ami=require('../ami'),{getSocket}=require(_0x40e42b('0x85')),io=getSocket();function VoiceAgentReport(_0x3b2860){const _0x233c9a=_0x40e42b;this[_0x233c9a('0x41')]={},this[_0x233c9a('0x56')]=_0x3b2860[_0x233c9a('0x56')],this['agents']=_0x3b2860['agents'],this[_0x233c9a('0x92')]={},ami['on'](_0x233c9a('0x4'),this[_0x233c9a('0x4f')][_0x233c9a('0x88')](this)),ami['on'](_0x233c9a('0x5b'),this[_0x233c9a('0x4a')][_0x233c9a('0x88')](this)),ami['on'](_0x233c9a('0x16'),this[_0x233c9a('0x62')][_0x233c9a('0x88')](this)),ami['on'](_0x233c9a('0x28'),this[_0x233c9a('0x7d')][_0x233c9a('0x88')](this)),ami['on'](_0x233c9a('0x10'),this[_0x233c9a('0x82')][_0x233c9a('0x88')](this)),ami['on'](_0x233c9a('0x73'),this['syncVarSet'][_0x233c9a('0x88')](this)),ami['on'](_0x233c9a('0x87'),this[_0x233c9a('0x34')][_0x233c9a('0x88')](this)),ami['on'](_0x233c9a('0x3c'),this['syncMusicOnHoldStart'][_0x233c9a('0x88')](this)),ami['on'](_0x233c9a('0x80'),this[_0x233c9a('0x30')][_0x233c9a('0x88')](this)),ami['on'](_0x233c9a('0x7f'),this[_0x233c9a('0x63')][_0x233c9a('0x88')](this)),ami['on'](_0x233c9a('0x6b'),this['syncBlindTransfer'][_0x233c9a('0x88')](this));}VoiceAgentReport[_0x40e42b('0x5e')][_0x40e42b('0x77')]=function(_0x2a47a3,_0xa98a0a,_0x461d89){const _0x572ae7=_0x40e42b;io['to'](_0x2a47a3)[_0x572ae7('0x77')](_0xa98a0a,_0x461d89);},VoiceAgentReport[_0x40e42b('0x5e')][_0x40e42b('0x66')]=function(_0x450a6c){return _0x450a6c!==null&&!_['isUndefined'](_0x450a6c);},VoiceAgentReport[_0x40e42b('0x5e')]['syncAgentCalled']=function(_0x4634d1){const _0x10fa7f=_0x40e42b;try{this['isNotNull'](_0x4634d1)&&(logger[_0x10fa7f('0x39')]('[%s][voiceAgentReport][agentcalled]\x20agent:%s\x20destuniqueid:%s\x20lastevent:called',_0x4634d1['uniqueid'],_0x4634d1[_0x10fa7f('0x8')],_0x4634d1[_0x10fa7f('0x75')]),logger[_0x10fa7f('0x29')](_0x10fa7f('0x32'),_0x4634d1['uniqueid'],util[_0x10fa7f('0x4d')](_0x4634d1,{'showHidden':![],'depth':null})),_[_0x10fa7f('0x50')](this[_0x10fa7f('0x41')][_0x4634d1[_0x10fa7f('0x89')]])&&(this[_0x10fa7f('0x41')][_0x4634d1[_0x10fa7f('0x89')]]={}),_['isUndefined'](this[_0x10fa7f('0x41')][_0x4634d1['uniqueid']][_0x4634d1[_0x10fa7f('0x75')]])&&(this['channels'][_0x4634d1['uniqueid']][_0x4634d1[_0x10fa7f('0x75')]]={'agentcalledAt':moment()['format'](_0x10fa7f('0x22')),'lastevent':'called','mandatoryDisposition':this[_0x10fa7f('0x56')][_0x4634d1[_0x10fa7f('0x7')]]?this[_0x10fa7f('0x56')][_0x4634d1[_0x10fa7f('0x7')]]['mandatoryDisposition']||![]:![],'type':this['voiceQueues'][_0x4634d1[_0x10fa7f('0x7')]]?this[_0x10fa7f('0x56')][_0x4634d1['queue']][_0x10fa7f('0x94')]||'inbound':'inbound','variables':this['variables'][_0x4634d1[_0x10fa7f('0x89')]]}),_['merge'](this[_0x10fa7f('0x41')][_0x4634d1[_0x10fa7f('0x89')]][_0x4634d1[_0x10fa7f('0x75')]],_[_0x10fa7f('0x38')](_0x4634d1,[_0x10fa7f('0x2b'),_0x10fa7f('0x11')])),logger['debug'](_0x10fa7f('0x7e'),_0x4634d1[_0x10fa7f('0x89')],util[_0x10fa7f('0x4d')](this[_0x10fa7f('0x41')][_0x4634d1[_0x10fa7f('0x89')]][_0x4634d1[_0x10fa7f('0x75')]],{'showHidden':![],'depth':null})),ami[_0x10fa7f('0x77')](_0x10fa7f('0x2f'),this[_0x10fa7f('0x41')][_0x4634d1[_0x10fa7f('0x89')]][_0x4634d1[_0x10fa7f('0x75')]]),logger[_0x10fa7f('0x29')](_0x10fa7f('0x13'),_0x4634d1[_0x10fa7f('0x89')],util[_0x10fa7f('0x4d')](this['channels'][_0x4634d1['uniqueid']][_0x4634d1[_0x10fa7f('0x75')]],{'showHidden':![],'depth':null})),this[_0x10fa7f('0x77')](util[_0x10fa7f('0x1d')](_0x10fa7f('0x79'),_0x4634d1['membername']),_0x10fa7f('0x36'),this[_0x10fa7f('0x41')][_0x4634d1[_0x10fa7f('0x89')]][_0x4634d1[_0x10fa7f('0x75')]]));}catch(_0x138e4b){logger[_0x10fa7f('0x69')](_0x10fa7f('0x58'),_0x4634d1['uniqueid'],util[_0x10fa7f('0x4d')](_0x138e4b,{'showHidden':![],'depth':null}));}},VoiceAgentReport[_0x40e42b('0x5e')]['syncAgentConnect']=function(_0x38bb12){const _0x1ef66b=_0x40e42b;try{if(this[_0x1ef66b('0x66')](_0x38bb12)){if(this[_0x1ef66b('0x41')][_0x38bb12[_0x1ef66b('0x89')]]){logger['debug'](_0x1ef66b('0x6a'),_0x38bb12[_0x1ef66b('0x89')],util[_0x1ef66b('0x4d')](_0x38bb12,{'showHidden':![],'depth':null}));for(const _0x59ed6b in this[_0x1ef66b('0x41')][_0x38bb12['uniqueid']]){if(typeof this['channels'][_0x38bb12[_0x1ef66b('0x89')]][_0x59ed6b]!==_0x1ef66b('0x84')){if(_0x38bb12[_0x1ef66b('0x75')]===_0x59ed6b)logger[_0x1ef66b('0x39')](_0x1ef66b('0x9'),_0x38bb12[_0x1ef66b('0x89')],_0x38bb12[_0x1ef66b('0x8')],_0x38bb12['destuniqueid']),this[_0x1ef66b('0x41')][_0x38bb12[_0x1ef66b('0x89')]][_0x59ed6b][_0x1ef66b('0x81')]=moment()[_0x1ef66b('0x1d')]('YYYY-MM-DD\x20HH:mm:ss'),this[_0x1ef66b('0x41')][_0x38bb12[_0x1ef66b('0x89')]][_0x59ed6b][_0x1ef66b('0x8f')]=_0x38bb12[_0x1ef66b('0x8f')],this[_0x1ef66b('0x41')][_0x38bb12[_0x1ef66b('0x89')]][_0x59ed6b][_0x1ef66b('0x5c')]=_0x38bb12[_0x1ef66b('0x5c')],this[_0x1ef66b('0x41')][_0x38bb12[_0x1ef66b('0x89')]][_0x59ed6b][_0x1ef66b('0x2e')]=_0x38bb12[_0x1ef66b('0x2e')],this[_0x1ef66b('0x41')][_0x38bb12[_0x1ef66b('0x89')]][_0x59ed6b][_0x1ef66b('0x3b')]=_0x38bb12[_0x1ef66b('0x3b')],this[_0x1ef66b('0x41')][_0x38bb12[_0x1ef66b('0x89')]][_0x59ed6b][_0x1ef66b('0x14')]=_0x38bb12[_0x1ef66b('0x14')],this[_0x1ef66b('0x41')][_0x38bb12['uniqueid']][_0x59ed6b][_0x1ef66b('0x19')]=_0x1ef66b('0x52'),_[_0x1ef66b('0x4c')](this[_0x1ef66b('0x54')][_0x38bb12[_0x1ef66b('0x5')]],_['pick'](_0x38bb12,[_0x1ef66b('0x7'),_0x1ef66b('0x91')])),logger[_0x1ef66b('0x29')](_0x1ef66b('0x59'),_0x38bb12['uniqueid'],util[_0x1ef66b('0x4d')](this[_0x1ef66b('0x41')][_0x38bb12['uniqueid']][_0x38bb12['destuniqueid']],{'showHidden':![],'depth':null})),ami['emit'](_0x1ef66b('0x7a'),this[_0x1ef66b('0x41')][_0x38bb12[_0x1ef66b('0x89')]][_0x38bb12[_0x1ef66b('0x75')]]),logger[_0x1ef66b('0x29')](_0x1ef66b('0x72'),_0x38bb12[_0x1ef66b('0x89')],util[_0x1ef66b('0x4d')](this[_0x1ef66b('0x41')][_0x38bb12[_0x1ef66b('0x89')]][_0x38bb12['destuniqueid']],{'showHidden':![],'depth':null})),this['emit'](util[_0x1ef66b('0x1d')]('user:%s',_0x38bb12[_0x1ef66b('0x8')]),'user:agentconnect',this[_0x1ef66b('0x41')][_0x38bb12[_0x1ef66b('0x89')]][_0x38bb12['destuniqueid']]);else!this[_0x1ef66b('0x41')][_0x38bb12[_0x1ef66b('0x89')]][_0x59ed6b][_0x1ef66b('0x16')]&&!this[_0x1ef66b('0x41')][_0x38bb12['uniqueid']][_0x59ed6b][_0x1ef66b('0x10')]&&(logger['info'](_0x1ef66b('0x8a'),_0x38bb12[_0x1ef66b('0x89')],this[_0x1ef66b('0x41')][_0x38bb12[_0x1ef66b('0x89')]][_0x59ed6b][_0x1ef66b('0x8')],_0x59ed6b),this[_0x1ef66b('0x41')][_0x38bb12[_0x1ef66b('0x89')]][_0x59ed6b]['agentringnoanswer']=!![],this[_0x1ef66b('0x41')][_0x38bb12[_0x1ef66b('0x89')]][_0x59ed6b][_0x1ef66b('0x18')]=moment()[_0x1ef66b('0x1d')](_0x1ef66b('0x22')),this[_0x1ef66b('0x41')][_0x38bb12[_0x1ef66b('0x89')]][_0x59ed6b][_0x1ef66b('0x7b')]=_0x38bb12[_0x1ef66b('0x75')],this[_0x1ef66b('0x41')][_0x38bb12[_0x1ef66b('0x89')]][_0x59ed6b]['answeredelsewheremembername']=_0x38bb12[_0x1ef66b('0x8')],this[_0x1ef66b('0x41')][_0x38bb12[_0x1ef66b('0x89')]][_0x59ed6b][_0x1ef66b('0x19')]=_0x1ef66b('0x4e'),this[_0x1ef66b('0x41')][_0x38bb12[_0x1ef66b('0x89')]][_0x59ed6b][_0x1ef66b('0x47')]=_0x1ef66b('0x4e'),logger[_0x1ef66b('0x29')]('[%s][voiceAgentReport][agentconnect]\x20sending\x20agentansweredelsewhere\x20event:',_0x38bb12[_0x1ef66b('0x89')],util['inspect'](this['channels'][_0x38bb12[_0x1ef66b('0x89')]][_0x59ed6b],{'showHidden':![],'depth':null})),ami['emit'](_0x1ef66b('0x70'),this['channels'][_0x38bb12[_0x1ef66b('0x89')]][_0x59ed6b]));}}}}}catch(_0x38d60a){logger[_0x1ef66b('0x69')](_0x1ef66b('0x93'),_0x38bb12[_0x1ef66b('0x89')],util[_0x1ef66b('0x4d')](_0x38d60a,{'showHidden':![],'depth':null}));}},VoiceAgentReport[_0x40e42b('0x5e')][_0x40e42b('0x62')]=function(_0xcfb1dc){const _0x594944=_0x40e42b;try{this['isNotNull'](_0xcfb1dc)&&(logger['debug'](_0x594944('0xb'),_0xcfb1dc['uniqueid'],util[_0x594944('0x4d')](_0xcfb1dc,{'showHidden':![],'depth':null})),this[_0x594944('0x41')][_0xcfb1dc[_0x594944('0x89')]]&&this['channels'][_0xcfb1dc[_0x594944('0x89')]][_0xcfb1dc[_0x594944('0x75')]]&&(logger['info'](_0x594944('0x42'),_0xcfb1dc[_0x594944('0x89')],_0xcfb1dc['membername'],_0xcfb1dc['destuniqueid']),this[_0x594944('0x41')][_0xcfb1dc[_0x594944('0x89')]][_0xcfb1dc[_0x594944('0x75')]]['agentringnoanswer']=!![],this['channels'][_0xcfb1dc['uniqueid']][_0xcfb1dc[_0x594944('0x75')]]['agentringnoanswerAt']=moment()[_0x594944('0x1d')](_0x594944('0x22')),this[_0x594944('0x41')][_0xcfb1dc[_0x594944('0x89')]][_0xcfb1dc[_0x594944('0x75')]][_0x594944('0x19')]='rejected',this[_0x594944('0x41')][_0xcfb1dc[_0x594944('0x89')]][_0xcfb1dc['destuniqueid']]['reason']=_0x594944('0x55'),logger['debug'](_0x594944('0x2c'),_0xcfb1dc[_0x594944('0x89')],util[_0x594944('0x4d')](this[_0x594944('0x41')][_0xcfb1dc['uniqueid']][_0xcfb1dc['destuniqueid']],{'showHidden':![],'depth':null})),ami[_0x594944('0x77')](_0x594944('0x5f'),this[_0x594944('0x41')][_0xcfb1dc[_0x594944('0x89')]][_0xcfb1dc['destuniqueid']])));}catch(_0x3d765f){logger[_0x594944('0x69')](_0x594944('0xf'),_0xcfb1dc[_0x594944('0x89')],util[_0x594944('0x4d')](_0x3d765f,{'showHidden':![],'depth':null}));}},VoiceAgentReport[_0x40e42b('0x5e')][_0x40e42b('0x7d')]=function(_0x4df8b){const _0x42e2a9=_0x40e42b;try{if(this[_0x42e2a9('0x66')](_0x4df8b)){logger[_0x42e2a9('0x29')]('[%s][voiceAgentReport][queuecallerabandon]\x20event:',_0x4df8b[_0x42e2a9('0x89')],util[_0x42e2a9('0x4d')](_0x4df8b,{'showHidden':![],'depth':null}));if(this[_0x42e2a9('0x41')][_0x4df8b[_0x42e2a9('0x89')]])for(const _0xeeeb45 in this[_0x42e2a9('0x41')][_0x4df8b['uniqueid']]){typeof this[_0x42e2a9('0x41')][_0x4df8b['uniqueid']][_0xeeeb45]!==_0x42e2a9('0x84')&&!this[_0x42e2a9('0x41')][_0x4df8b[_0x42e2a9('0x89')]][_0xeeeb45][_0x42e2a9('0x16')]&&!this[_0x42e2a9('0x41')][_0x4df8b[_0x42e2a9('0x89')]][_0xeeeb45][_0x42e2a9('0x10')]&&(logger[_0x42e2a9('0x39')](_0x42e2a9('0x90'),_0x4df8b['uniqueid'],this[_0x42e2a9('0x41')][_0x4df8b[_0x42e2a9('0x89')]][_0xeeeb45][_0x42e2a9('0x8')],_0xeeeb45),this[_0x42e2a9('0x41')][_0x4df8b[_0x42e2a9('0x89')]][_0xeeeb45][_0x42e2a9('0x16')]=!![],this[_0x42e2a9('0x41')][_0x4df8b['uniqueid']][_0xeeeb45][_0x42e2a9('0x18')]=moment()[_0x42e2a9('0x1d')](_0x42e2a9('0x22')),this[_0x42e2a9('0x41')][_0x4df8b[_0x42e2a9('0x89')]][_0xeeeb45][_0x42e2a9('0x19')]=_0x42e2a9('0x33'),this[_0x42e2a9('0x41')][_0x4df8b['uniqueid']][_0xeeeb45][_0x42e2a9('0x47')]=_0x42e2a9('0x33'),logger['debug']('[%s][voiceAgentReport][queuecallerabandon]\x20sending\x20agentqueuecallerabandon\x20event:',_0x4df8b[_0x42e2a9('0x89')],util[_0x42e2a9('0x4d')](this[_0x42e2a9('0x41')][_0x4df8b['uniqueid']][_0xeeeb45],{'showHidden':![],'depth':null})),ami[_0x42e2a9('0x77')](_0x42e2a9('0x12'),this[_0x42e2a9('0x41')][_0x4df8b[_0x42e2a9('0x89')]][_0xeeeb45]));}}}catch(_0x50f27f){logger[_0x42e2a9('0x69')](_0x42e2a9('0x20'),_0x4df8b[_0x42e2a9('0x89')],util['inspect'](_0x50f27f,{'showHidden':![],'depth':null}));}},VoiceAgentReport[_0x40e42b('0x5e')][_0x40e42b('0x82')]=function(_0x5d32c4){const _0x186ccd=_0x40e42b;try{if(this['isNotNull'](_0x5d32c4)){logger[_0x186ccd('0x29')](_0x186ccd('0x1a'),_0x5d32c4['uniqueid'],util[_0x186ccd('0x4d')](_0x5d32c4,{'showHidden':![],'depth':null}));if(this[_0x186ccd('0x41')][_0x5d32c4[_0x186ccd('0x89')]])for(const _0x1504e4 in this[_0x186ccd('0x41')][_0x5d32c4['uniqueid']]){typeof this[_0x186ccd('0x41')][_0x5d32c4[_0x186ccd('0x89')]][_0x1504e4]!==_0x186ccd('0x84')&&(this[_0x186ccd('0x41')][_0x5d32c4['uniqueid']][_0x1504e4][_0x186ccd('0x81')]&&!this['channels'][_0x5d32c4['uniqueid']][_0x1504e4][_0x186ccd('0x10')]&&(logger['info'](_0x186ccd('0x65'),_0x5d32c4['uniqueid'],this['channels'][_0x5d32c4[_0x186ccd('0x89')]][_0x1504e4]['membername'],_0x1504e4),this[_0x186ccd('0x41')][_0x5d32c4['uniqueid']][_0x1504e4][_0x186ccd('0x10')]=!![],this['channels'][_0x5d32c4[_0x186ccd('0x89')]][_0x1504e4]['agentcompleteAt']=moment()[_0x186ccd('0x1d')](_0x186ccd('0x22')),this['channels'][_0x5d32c4['uniqueid']][_0x1504e4]['lastevent']='complete',this['channels'][_0x5d32c4['uniqueid']][_0x1504e4][_0x186ccd('0x47')]=_0x5d32c4[_0x186ccd('0x47')]==_0x186ccd('0x57')?_0x186ccd('0x74'):_0x5d32c4['reason'],this[_0x186ccd('0x41')][_0x5d32c4['uniqueid']][_0x1504e4][_0x186ccd('0xc')]=_0x5d32c4[_0x186ccd('0xc')],this[_0x186ccd('0x56')][_0x5d32c4[_0x186ccd('0x7')]]&&this['voiceQueues'][_0x5d32c4[_0x186ccd('0x7')]][_0x186ccd('0x5a')]&&(this['channels'][_0x5d32c4[_0x186ccd('0x89')]][_0x1504e4]['acwtime']=this['voiceQueues'][_0x5d32c4[_0x186ccd('0x7')]][_0x186ccd('0x6c')],this[_0x186ccd('0x41')][_0x5d32c4[_0x186ccd('0x89')]][_0x1504e4][_0x186ccd('0x44')]=!![]),this['agents'][_0x5d32c4[_0x186ccd('0x5')]]=_['omit'](this[_0x186ccd('0x54')][_0x5d32c4['interface']],[_0x186ccd('0x7'),_0x186ccd('0x91')]),logger[_0x186ccd('0x29')](_0x186ccd('0x1'),_0x5d32c4[_0x186ccd('0x89')],util[_0x186ccd('0x4d')](this['channels'][_0x5d32c4['uniqueid']][_0x1504e4],{'showHidden':![],'depth':null})),ami[_0x186ccd('0x77')](_0x186ccd('0x2a'),this[_0x186ccd('0x41')][_0x5d32c4['uniqueid']][_0x1504e4]),logger[_0x186ccd('0x29')]('[%s][voiceAgentReport][agentcomplete]\x20sending\x20user:agentcomplete\x20event:',_0x5d32c4[_0x186ccd('0x89')],util[_0x186ccd('0x4d')](this[_0x186ccd('0x41')][_0x5d32c4[_0x186ccd('0x89')]][_0x1504e4],{'showHidden':![],'depth':null})),this[_0x186ccd('0x77')](util[_0x186ccd('0x1d')](_0x186ccd('0x79'),_0x5d32c4[_0x186ccd('0x8')]),_0x186ccd('0x8e'),this[_0x186ccd('0x41')][_0x5d32c4[_0x186ccd('0x89')]][_0x1504e4])));}}}catch(_0x58fc2e){logger[_0x186ccd('0x69')](_0x186ccd('0x53'),_0x5d32c4[_0x186ccd('0x89')],util[_0x186ccd('0x4d')](_0x58fc2e,{'showHidden':![],'depth':null}));}},VoiceAgentReport['prototype'][_0x40e42b('0x61')]=function(_0x3adea0){const _0x49959c=_0x40e42b;try{if(this['isNotNull'](_0x3adea0)){logger[_0x49959c('0x29')](_0x49959c('0x46'),_0x3adea0[_0x49959c('0x89')],util[_0x49959c('0x4d')](_0x3adea0,{'showHidden':![],'depth':null})),this['addVariable'](_0x3adea0[_0x49959c('0x89')],_[_0x49959c('0x3d')](_0x3adea0[_0x49959c('0x68')])[0x0],_0x3adea0[_0x49959c('0x26')]);if(this['channels'][_0x3adea0[_0x49959c('0x89')]])for(const _0x3f0166 in this[_0x49959c('0x41')][_0x3adea0[_0x49959c('0x89')]]){typeof this[_0x49959c('0x41')][_0x3adea0[_0x49959c('0x89')]][_0x3f0166]!==_0x49959c('0x84')&&(logger[_0x49959c('0x39')]('[%s][voiceAgentReport][varset]\x20destuniqueid:%s\x20variable:%s\x20value:%s',_0x3adea0[_0x49959c('0x89')],_0x3f0166,_[_0x49959c('0x3d')](_0x3adea0[_0x49959c('0x68')])[0x0],_0x3adea0[_0x49959c('0x26')]),_['isUndefined'](this[_0x49959c('0x41')][_0x3adea0[_0x49959c('0x89')]][_0x3f0166][_0x49959c('0x92')])&&(this[_0x49959c('0x41')][_0x3adea0[_0x49959c('0x89')]][_0x3f0166]['variables']={}),this[_0x49959c('0x41')][_0x3adea0[_0x49959c('0x89')]][_0x3f0166]['variables']=this[_0x49959c('0x92')][_0x3adea0['uniqueid']]);}}}catch(_0x3829f4){logger['error']('[%s][voiceAgentReport][varset]',_0x3adea0[_0x49959c('0x89')],util[_0x49959c('0x4d')](_0x3829f4,{'showHidden':![],'depth':null}));}},VoiceAgentReport[_0x40e42b('0x5e')]['addVariable']=function(_0x44d6f5,_0x3fc074,_0x571d09){const _0x2a81be=_0x40e42b,_0x6e53bc=[_0x2a81be('0x3a'),_0x2a81be('0x37'),_0x2a81be('0x78'),_0x2a81be('0x67'),'rtpaudioqosloss','rtpaudioqoslossbridged',_0x2a81be('0x76'),_0x2a81be('0x35'),_0x2a81be('0x17'),_0x2a81be('0x6e'),_0x2a81be('0xe'),_0x2a81be('0xd'),_0x2a81be('0x3'),_0x2a81be('0x64'),_0x2a81be('0x43'),_0x2a81be('0x6f'),_0x2a81be('0x8'),_0x2a81be('0x45'),_0x2a81be('0x1e')];!_[_0x2a81be('0x0')](_0x3fc074)&&!_[_0x2a81be('0xa')](_0x6e53bc,_0x3fc074)&&(_['isUndefined'](this['variables'][_0x44d6f5])&&(this[_0x2a81be('0x92')][_0x44d6f5]={}),this[_0x2a81be('0x92')][_0x44d6f5][_0x3fc074]=_0x571d09);},VoiceAgentReport[_0x40e42b('0x5e')][_0x40e42b('0x34')]=function(_0x197b1f){const _0x46946d=_0x40e42b;try{if(this[_0x46946d('0x66')](_0x197b1f)){logger[_0x46946d('0x29')](_0x46946d('0x23'),_0x197b1f[_0x46946d('0x89')],util[_0x46946d('0x4d')](_0x197b1f,{'showHidden':![],'depth':null}));if(this[_0x46946d('0x41')][_0x197b1f[_0x46946d('0x89')]]){for(const _0x296ac3 in this['channels'][_0x197b1f['uniqueid']]){typeof this['channels'][_0x197b1f['uniqueid']][_0x296ac3]!=='undefined'&&(this[_0x46946d('0x41')][_0x197b1f['uniqueid']][_0x296ac3][_0x46946d('0x47')]==_0x46946d('0x57')&&this[_0x46946d('0x41')][_0x197b1f[_0x46946d('0x89')]][_0x296ac3]['agentcomplete']&&(logger[_0x46946d('0x39')]('[%s][voiceAgentReport][hangup]\x20destuniqueid:%s',_0x197b1f[_0x46946d('0x89')],_0x296ac3),this[_0x46946d('0x41')][_0x197b1f['uniqueid']][_0x296ac3][_0x46946d('0x4b')]=moment()[_0x46946d('0x1d')]('YYYY-MM-DD\x20HH:mm:ss')));}logger[_0x46946d('0x29')](_0x46946d('0x7c'),_0x197b1f[_0x46946d('0x89')],util['inspect'](_[_0x46946d('0x83')](this[_0x46946d('0x41')][_0x197b1f[_0x46946d('0x89')]]),{'showHidden':![],'depth':null})),ami[_0x46946d('0x77')]('custom:voiceAgentReport',_[_0x46946d('0x83')](this[_0x46946d('0x41')][_0x197b1f['uniqueid']])),delete this[_0x46946d('0x41')][_0x197b1f[_0x46946d('0x89')]];}this[_0x46946d('0x92')][_0x197b1f[_0x46946d('0x89')]]&&delete this[_0x46946d('0x92')][_0x197b1f[_0x46946d('0x89')]];}}catch(_0x5e5fe3){logger['error'](_0x46946d('0x27'),_0x197b1f[_0x46946d('0x89')],util[_0x46946d('0x4d')](_0x5e5fe3,{'showHidden':![],'depth':null}));}},VoiceAgentReport[_0x40e42b('0x5e')][_0x40e42b('0x63')]=function(_0x8ff434){const _0x1a1850=_0x40e42b;try{if(this['isNotNull'](_0x8ff434)){logger['debug'](_0x1a1850('0x51'),_0x8ff434[_0x1a1850('0x89')],util[_0x1a1850('0x4d')](_0x8ff434,{'showHidden':![],'depth':null}));if(this[_0x1a1850('0x41')][_0x8ff434[_0x1a1850('0x2')]])for(const _0x292c34 in this['channels'][_0x8ff434['transfereeuniqueid']]){if(typeof this[_0x1a1850('0x41')][_0x8ff434[_0x1a1850('0x2')]][_0x292c34]!=='undefined'){if(_0x8ff434[_0x1a1850('0x8d')]===_0x292c34){logger[_0x1a1850('0x39')](_0x1a1850('0x24'),_0x8ff434[_0x1a1850('0x89')],this[_0x1a1850('0x41')][_0x8ff434[_0x1a1850('0x2')]][_0x292c34]['membername'],_0x292c34);const _0x31d01c=moment();this[_0x1a1850('0x41')][_0x8ff434['transfereeuniqueid']][_0x292c34][_0x1a1850('0x10')]=!![],this[_0x1a1850('0x41')][_0x8ff434[_0x1a1850('0x2')]][_0x292c34]['agentcompleteAt']=moment()[_0x1a1850('0x1d')](_0x1a1850('0x22')),this[_0x1a1850('0x41')][_0x8ff434[_0x1a1850('0x2')]][_0x292c34]['lastevent']='complete',this['channels'][_0x8ff434[_0x1a1850('0x2')]][_0x292c34][_0x1a1850('0x47')]=_0x1a1850('0x57'),this['channels'][_0x8ff434[_0x1a1850('0x2')]][_0x292c34]['talktime']=_0x31d01c[_0x1a1850('0x3f')](this[_0x1a1850('0x41')][_0x8ff434[_0x1a1850('0x2')]][_0x292c34]['agentconnectAt'],_0x1a1850('0x5d'));}}}if(this['channels'][_0x8ff434[_0x1a1850('0x6')]]){const _0x2f600a=this[_0x1a1850('0x41')][_0x8ff434[_0x1a1850('0x6')]];this[_0x1a1850('0x41')][_0x8ff434['secondtransfereruniqueid']]=this[_0x1a1850('0x41')][_0x8ff434[_0x1a1850('0x2')]],this[_0x1a1850('0x41')][_0x8ff434[_0x1a1850('0x2')]]=_0x2f600a;}}}catch(_0x1e02f5){logger[_0x1a1850('0x69')](_0x1a1850('0x15'),_0x8ff434['uniqueid'],util[_0x1a1850('0x4d')](_0x1e02f5,{'showHidden':![],'depth':null}));}},VoiceAgentReport[_0x40e42b('0x5e')][_0x40e42b('0x1b')]=function(_0x1b8c2d){const _0x15dc63=_0x40e42b;try{if(this[_0x15dc63('0x66')](_0x1b8c2d)){logger[_0x15dc63('0x29')]('[%s][voiceAgentReport][blindtransfer]\x20event:',_0x1b8c2d[_0x15dc63('0x89')],util['inspect'](_0x1b8c2d,{'showHidden':![],'depth':null}));if(this[_0x15dc63('0x41')][_0x1b8c2d['transfereeuniqueid']])for(const _0x24d778 in this['channels'][_0x1b8c2d[_0x15dc63('0x2')]]){if(typeof this[_0x15dc63('0x41')][_0x1b8c2d[_0x15dc63('0x2')]][_0x24d778]!==_0x15dc63('0x84')){if(_0x1b8c2d['transfereruniqueid']===_0x24d778){logger[_0x15dc63('0x39')](_0x15dc63('0x1f'),_0x1b8c2d[_0x15dc63('0x89')],this[_0x15dc63('0x41')][_0x1b8c2d[_0x15dc63('0x2')]][_0x24d778][_0x15dc63('0x8')],_0x24d778);const _0x439305=moment();this[_0x15dc63('0x41')][_0x1b8c2d[_0x15dc63('0x2')]][_0x24d778][_0x15dc63('0x10')]=!![],this['channels'][_0x1b8c2d[_0x15dc63('0x2')]][_0x24d778]['agentcompleteAt']=_0x439305,this[_0x15dc63('0x41')][_0x1b8c2d[_0x15dc63('0x2')]][_0x24d778][_0x15dc63('0x19')]=_0x15dc63('0x96'),this[_0x15dc63('0x41')][_0x1b8c2d['transfereeuniqueid']][_0x24d778][_0x15dc63('0x47')]=_0x15dc63('0x57'),this[_0x15dc63('0x41')][_0x1b8c2d[_0x15dc63('0x2')]][_0x24d778][_0x15dc63('0xc')]=_0x439305[_0x15dc63('0x3f')](this['channels'][_0x1b8c2d[_0x15dc63('0x2')]][_0x24d778]['agentconnectAt'],_0x15dc63('0x5d'));}}}}}catch(_0x4693e9){logger['error'](_0x15dc63('0x1c'),_0x1b8c2d[_0x15dc63('0x89')],util['inspect'](_0x4693e9,{'showHidden':![],'depth':null}));}},VoiceAgentReport[_0x40e42b('0x5e')][_0x40e42b('0x31')]=function(_0xfa1ed){const _0x198224=_0x40e42b;let _0x116e5b='';try{this['isNotNull'](_0xfa1ed)&&(logger[_0x198224('0x29')](_0x198224('0x2d'),_0xfa1ed['uniqueid'],util[_0x198224('0x4d')](_0xfa1ed,{'showHidden':![],'depth':null})),_0xfa1ed['channel']&&(_0x116e5b=_0xfa1ed[_0x198224('0x60')][_0x198224('0x49')](0x0,_0xfa1ed[_0x198224('0x60')]['lastIndexOf']('-')),this[_0x198224('0x54')][_0x116e5b]&&(logger[_0x198224('0x39')](_0x198224('0x95'),_0xfa1ed[_0x198224('0x89')],_0x116e5b),this['agents'][_0x116e5b][_0x198224('0x3e')]=!![])));}catch(_0x2e0cd3){logger[_0x198224('0x69')](_0x198224('0x71'),_0xfa1ed[_0x198224('0x89')],util[_0x198224('0x4d')](_0x2e0cd3,{'showHidden':![],'depth':null}));}},VoiceAgentReport['prototype'][_0x40e42b('0x30')]=function(_0x570eae){const _0x4f25d2=_0x40e42b;let _0x100fbf='';try{this['isNotNull'](_0x570eae)&&(logger['debug'](_0x4f25d2('0x48'),_0x570eae[_0x4f25d2('0x89')],util[_0x4f25d2('0x4d')](_0x570eae,{'showHidden':![],'depth':null})),_0x570eae[_0x4f25d2('0x60')]&&(_0x100fbf=_0x570eae[_0x4f25d2('0x60')][_0x4f25d2('0x49')](0x0,_0x570eae[_0x4f25d2('0x60')][_0x4f25d2('0x6d')]('-')),this[_0x4f25d2('0x54')][_0x100fbf]&&(logger[_0x4f25d2('0x39')]('[%s][voiceAgentReport][musiconholdstop]\x20interface:%s',_0x570eae[_0x4f25d2('0x89')],_0x100fbf),this['agents'][_0x100fbf][_0x4f25d2('0x3e')]=![])));}catch(_0x2304c7){logger[_0x4f25d2('0x69')]('[%s][voiceAgentReport][musiconholdstop]',_0x570eae[_0x4f25d2('0x89')],util[_0x4f25d2('0x4d')](_0x2304c7,{'showHidden':![],'depth':null}));}},module[_0x40e42b('0x8c')]=VoiceAgentReport; \ No newline at end of file +const a1259_0x4436=['user:agentcomplete','mandatoryDisposition','transfereeuniqueid','custom:agentconnect','[%s][voiceAgentReport][agentconnect]\x20event:','keys','type','isNotNull','[%s][voiceAgentReport][musiconholdstart]\x20interface:%s','merge','[%s][voiceAgentReport][agentcomplete]\x20agent:%s\x20destuniqueid:%s\x20lastevent:complete','secondtransfereruniqueid','[%s][voiceAgentReport][varset]','format','ami','rtpaudioqosloss','membername','agents','emit','rtpaudioqosjitter','substring','user:%s','value','transfereruniqueid','lastevent','[%s][voiceAgentReport][blindtransfer]\x20event:','syncAgentConnect','seconds','[%s][voiceAgentReport][agentringnoanswer]\x20agent:%s\x20destuniqueid:%s\x20lastevent:rejected','[%s][voiceAgentReport][attendedtransfer]\x20agent:%s\x20destuniqueid:%s\x20lastevent:complete','rtpaudioqosbridged','prototype','[%s][voiceAgentReport][blindtransfer]\x20agent:%s\x20destuniqueid:%s\x20lastevent:complete','moment','inbound','YYYY-MM-DD\x20HH:mm:ss','[%s][voiceAgentReport][agentcalled]\x20sending\x20agentcalled\x20event:','[%s][voiceAgentReport][agentcalled]\x20sending\x20user:agentconnect\x20event:','complete','custom:agentansweredelsewhere','debug','acwtime','../ami','[%s][voiceAgentReport][musiconholdstart]\x20event:','rtpaudioqos','exports','answeredelsewheremembername','agentconnectAt','membercalls','addVariable','sipuri','acw','bridgepeer','queuecallerabandon','../../../rediscache','[%s][voiceAgentReport][agentcomplete]\x20sending\x20agentcomplete\x20event:','queue','syncAgentCalled','[%s][voiceAgentReport][musiconholdstop]\x20event:','agentringnoanswer','talktime','omit','[%s][voiceAgentReport][agentconnect]\x20agent:%s\x20destuniqueid:%s\x20lastevent:connect','event','answeredelsewheredestinationuniqueid','syncQueueCallerAbandon','abandoned','variable','interface','syncVarSet','channel','origtransfereruniqueid','syncAgentRingNoAnswer','[%s][voiceAgentReport][agentcalled]','voiceQueues','[%s][voiceAgentReport][hangup]\x20sending\x20voiceAgentReport\x20event:','[%s][voiceAgentReport][queuecallerabandon]\x20sending\x20agentqueuecallerabandon\x20event:','memberdynamic','varset','[%s][voiceAgentReport][agentcomplete]\x20sending\x20user:agentcomplete\x20event:','syncAttendedTransfer','[%s][voiceAgentReport][attendedtransfer]\x20event:','agentcompleteAt','connectedlinenum','rejected','bind','undefined','values','channels','syncMusicOnHoldStart','error','rtpaudioqosrttbridged','syncHangup','diff','[%s][voiceAgentReport][attendedtransfer]','variables','transfer','syncMusicOnHoldStop','inspect','destchannelstatedesc','[%s][voiceAgentReport][agentcomplete]\x20event:','custom:agentqueuecallerabandon','[%s][voiceAgentReport][blindtransfer]','agentcomplete','memberrealtime','lastIndexOf','[%s][voiceAgentReport][musiconholdstop]\x20interface:%s','[%s][voiceAgentReport][agentringnoanswer]\x20event:','uniqueid','isUndefined','custom:agentcomplete','agentcalled','syncAgentComplete','lodash','connectedlinename','[%s][voiceAgentReport][agentcomplete]','destchannelstate','rtpaudioqoslossbridged','onhold','answered_elsewhere','[%s][voiceAgentReport][hangup]','syncBlindTransfer','pick','memberinterface','isNil','destuniqueid','[%s][voiceAgentReport][varset]\x20destuniqueid:%s\x20variable:%s\x20value:%s','rtpaudioqosjitterbridged','reason','user:agentconnect','destconnectedlinenum','connect','holdtime','memberpenalty','[%s][voiceAgentReport][agentringnoanswer]','acwTimeout','[%s][voiceAgentReport][hangup]\x20event:','privilege','[%s][voiceAgentReport][varset]\x20event:','info','agentringnoanswerAt','[%s][voiceAgentReport][agentcalled]\x20agent:%s\x20destuniqueid:%s\x20lastevent:called'];(function(_0x2bcd25,_0x45554f){const _0x443687=function(_0x1cbf7c){while(--_0x1cbf7c){_0x2bcd25['push'](_0x2bcd25['shift']());}};_0x443687(++_0x45554f);}(a1259_0x4436,0x17a));const a1259_0x1cbf=function(_0x2bcd25,_0x45554f){_0x2bcd25=_0x2bcd25-0x146;let _0x443687=a1259_0x4436[_0x2bcd25];return _0x443687;};const a1259_0x359621=a1259_0x1cbf;'use strict';const _=require(a1259_0x359621(0x159)),moment=require(a1259_0x359621(0x197)),util=require('util'),logger=require('../../../config/logger')(a1259_0x359621(0x184)),ami=require(a1259_0x359621(0x1a0)),{getSocket}=require(a1259_0x359621(0x1ac)),io=getSocket();function VoiceAgentReport(_0x4440d8){const _0x3757e0=a1259_0x359621;this[_0x3757e0(0x1ce)]={},this[_0x3757e0(0x1c0)]=_0x4440d8[_0x3757e0(0x1c0)],this[_0x3757e0(0x187)]=_0x4440d8['agents'],this[_0x3757e0(0x147)]={},ami['on'](_0x3757e0(0x157),this[_0x3757e0(0x1af)]['bind'](this)),ami['on']('agentconnect',this[_0x3757e0(0x190)][_0x3757e0(0x1cb)](this)),ami['on'](_0x3757e0(0x1b1),this[_0x3757e0(0x1be)][_0x3757e0(0x1cb)](this)),ami['on'](_0x3757e0(0x1ab),this[_0x3757e0(0x1b7)]['bind'](this)),ami['on']('agentcomplete',this['syncAgentComplete'][_0x3757e0(0x1cb)](this)),ami['on'](_0x3757e0(0x1c4),this[_0x3757e0(0x1bb)][_0x3757e0(0x1cb)](this)),ami['on']('hangup',this[_0x3757e0(0x1d2)][_0x3757e0(0x1cb)](this)),ami['on']('musiconholdstart',this[_0x3757e0(0x1cf)][_0x3757e0(0x1cb)](this)),ami['on']('musiconholdstop',this['syncMusicOnHoldStop'][_0x3757e0(0x1cb)](this)),ami['on']('attendedtransfer',this[_0x3757e0(0x1c6)][_0x3757e0(0x1cb)](this)),ami['on']('blindtransfer',this[_0x3757e0(0x161)][_0x3757e0(0x1cb)](this));}VoiceAgentReport[a1259_0x359621(0x195)][a1259_0x359621(0x188)]=function(_0x238ecc,_0x525078,_0x5a4ee0){const _0x809b5e=a1259_0x359621;io['to'](_0x238ecc)[_0x809b5e(0x188)](_0x525078,_0x5a4ee0);},VoiceAgentReport['prototype']['isNotNull']=function(_0x25e3d9){const _0x5a5ae9=a1259_0x359621;return _0x25e3d9!==null&&!_[_0x5a5ae9(0x155)](_0x25e3d9);},VoiceAgentReport['prototype'][a1259_0x359621(0x1af)]=function(_0x4ec9f0){const _0x4c8029=a1259_0x359621;try{this[_0x4c8029(0x17d)](_0x4ec9f0)&&(logger[_0x4c8029(0x173)](_0x4c8029(0x175),_0x4ec9f0[_0x4c8029(0x154)],_0x4ec9f0[_0x4c8029(0x186)],_0x4ec9f0[_0x4c8029(0x165)]),logger[_0x4c8029(0x19e)]('[%s][voiceAgentReport][agentcalled]\x20event:',_0x4ec9f0[_0x4c8029(0x154)],util[_0x4c8029(0x14a)](_0x4ec9f0,{'showHidden':![],'depth':null})),_[_0x4c8029(0x155)](this[_0x4c8029(0x1ce)][_0x4ec9f0[_0x4c8029(0x154)]])&&(this[_0x4c8029(0x1ce)][_0x4ec9f0[_0x4c8029(0x154)]]={}),_[_0x4c8029(0x155)](this[_0x4c8029(0x1ce)][_0x4ec9f0[_0x4c8029(0x154)]][_0x4ec9f0['destuniqueid']])&&(this[_0x4c8029(0x1ce)][_0x4ec9f0[_0x4c8029(0x154)]][_0x4ec9f0[_0x4c8029(0x165)]]={'agentcalledAt':moment()[_0x4c8029(0x183)](_0x4c8029(0x199)),'lastevent':'called','mandatoryDisposition':this[_0x4c8029(0x1c0)][_0x4ec9f0[_0x4c8029(0x1ae)]]?this[_0x4c8029(0x1c0)][_0x4ec9f0[_0x4c8029(0x1ae)]][_0x4c8029(0x177)]||![]:![],'type':this['voiceQueues'][_0x4ec9f0[_0x4c8029(0x1ae)]]?this[_0x4c8029(0x1c0)][_0x4ec9f0[_0x4c8029(0x1ae)]][_0x4c8029(0x17c)]||_0x4c8029(0x198):_0x4c8029(0x198),'variables':this[_0x4c8029(0x147)][_0x4ec9f0['uniqueid']]}),_[_0x4c8029(0x17f)](this[_0x4c8029(0x1ce)][_0x4ec9f0['uniqueid']][_0x4ec9f0[_0x4c8029(0x165)]],_['omit'](_0x4ec9f0,[_0x4c8029(0x1b5),_0x4c8029(0x171)])),logger[_0x4c8029(0x19e)](_0x4c8029(0x19a),_0x4ec9f0[_0x4c8029(0x154)],util[_0x4c8029(0x14a)](this[_0x4c8029(0x1ce)][_0x4ec9f0[_0x4c8029(0x154)]][_0x4ec9f0[_0x4c8029(0x165)]],{'showHidden':![],'depth':null})),ami[_0x4c8029(0x188)]('custom:agentcalled',this[_0x4c8029(0x1ce)][_0x4ec9f0[_0x4c8029(0x154)]][_0x4ec9f0['destuniqueid']]),logger[_0x4c8029(0x19e)]('[%s][voiceAgentReport][agentcalled]\x20sending\x20user:called\x20event:',_0x4ec9f0['uniqueid'],util[_0x4c8029(0x14a)](this['channels'][_0x4ec9f0[_0x4c8029(0x154)]][_0x4ec9f0[_0x4c8029(0x165)]],{'showHidden':![],'depth':null})),this[_0x4c8029(0x188)](util['format'](_0x4c8029(0x18b),_0x4ec9f0[_0x4c8029(0x186)]),'user:called',this['channels'][_0x4ec9f0[_0x4c8029(0x154)]][_0x4ec9f0[_0x4c8029(0x165)]]));}catch(_0x545838){logger[_0x4c8029(0x1d0)](_0x4c8029(0x1bf),_0x4ec9f0[_0x4c8029(0x154)],util[_0x4c8029(0x14a)](_0x545838,{'showHidden':![],'depth':null}));}},VoiceAgentReport[a1259_0x359621(0x195)][a1259_0x359621(0x190)]=function(_0x48a972){const _0x22a4d8=a1259_0x359621;try{if(this[_0x22a4d8(0x17d)](_0x48a972)){if(this[_0x22a4d8(0x1ce)][_0x48a972[_0x22a4d8(0x154)]]){logger[_0x22a4d8(0x19e)](_0x22a4d8(0x17a),_0x48a972[_0x22a4d8(0x154)],util[_0x22a4d8(0x14a)](_0x48a972,{'showHidden':![],'depth':null}));for(const _0x52365f in this['channels'][_0x48a972['uniqueid']]){if(typeof this[_0x22a4d8(0x1ce)][_0x48a972[_0x22a4d8(0x154)]][_0x52365f]!==_0x22a4d8(0x1cc)){if(_0x48a972['destuniqueid']===_0x52365f)logger[_0x22a4d8(0x173)](_0x22a4d8(0x1b4),_0x48a972[_0x22a4d8(0x154)],_0x48a972['membername'],_0x48a972['destuniqueid']),this[_0x22a4d8(0x1ce)][_0x48a972[_0x22a4d8(0x154)]][_0x52365f][_0x22a4d8(0x1a5)]=moment()[_0x22a4d8(0x183)]('YYYY-MM-DD\x20HH:mm:ss'),this['channels'][_0x48a972[_0x22a4d8(0x154)]][_0x52365f][_0x22a4d8(0x15a)]=_0x48a972[_0x22a4d8(0x15a)],this[_0x22a4d8(0x1ce)][_0x48a972['uniqueid']][_0x52365f][_0x22a4d8(0x1c9)]=_0x48a972[_0x22a4d8(0x1c9)],this[_0x22a4d8(0x1ce)][_0x48a972[_0x22a4d8(0x154)]][_0x52365f]['destchannelstate']=_0x48a972[_0x22a4d8(0x15c)],this[_0x22a4d8(0x1ce)][_0x48a972['uniqueid']][_0x52365f][_0x22a4d8(0x14b)]=_0x48a972[_0x22a4d8(0x14b)],this[_0x22a4d8(0x1ce)][_0x48a972[_0x22a4d8(0x154)]][_0x52365f][_0x22a4d8(0x16c)]=_0x48a972[_0x22a4d8(0x16c)],this[_0x22a4d8(0x1ce)][_0x48a972['uniqueid']][_0x52365f][_0x22a4d8(0x18e)]=_0x22a4d8(0x16b),_[_0x22a4d8(0x17f)](this[_0x22a4d8(0x187)][_0x48a972[_0x22a4d8(0x1ba)]],_[_0x22a4d8(0x162)](_0x48a972,[_0x22a4d8(0x1ae),_0x22a4d8(0x16a)])),logger[_0x22a4d8(0x19e)]('[%s][voiceAgentReport][agentconnect]\x20sending\x20agentconnect\x20event:',_0x48a972[_0x22a4d8(0x154)],util[_0x22a4d8(0x14a)](this[_0x22a4d8(0x1ce)][_0x48a972[_0x22a4d8(0x154)]][_0x48a972[_0x22a4d8(0x165)]],{'showHidden':![],'depth':null})),ami[_0x22a4d8(0x188)](_0x22a4d8(0x179),this[_0x22a4d8(0x1ce)][_0x48a972[_0x22a4d8(0x154)]][_0x48a972[_0x22a4d8(0x165)]]),logger['debug'](_0x22a4d8(0x19b),_0x48a972[_0x22a4d8(0x154)],util[_0x22a4d8(0x14a)](this['channels'][_0x48a972['uniqueid']][_0x48a972[_0x22a4d8(0x165)]],{'showHidden':![],'depth':null})),this[_0x22a4d8(0x188)](util[_0x22a4d8(0x183)](_0x22a4d8(0x18b),_0x48a972[_0x22a4d8(0x186)]),_0x22a4d8(0x169),this[_0x22a4d8(0x1ce)][_0x48a972[_0x22a4d8(0x154)]][_0x48a972['destuniqueid']]);else!this[_0x22a4d8(0x1ce)][_0x48a972[_0x22a4d8(0x154)]][_0x52365f][_0x22a4d8(0x1b1)]&&!this[_0x22a4d8(0x1ce)][_0x48a972[_0x22a4d8(0x154)]][_0x52365f][_0x22a4d8(0x14f)]&&(logger[_0x22a4d8(0x173)]('[%s][voiceAgentReport][agentconnect]\x20agent:%s\x20destuniqueid:%s\x20lastevent:answered_elsewhere',_0x48a972[_0x22a4d8(0x154)],this[_0x22a4d8(0x1ce)][_0x48a972[_0x22a4d8(0x154)]][_0x52365f][_0x22a4d8(0x186)],_0x52365f),this['channels'][_0x48a972[_0x22a4d8(0x154)]][_0x52365f][_0x22a4d8(0x1b1)]=!![],this['channels'][_0x48a972[_0x22a4d8(0x154)]][_0x52365f][_0x22a4d8(0x174)]=moment()['format']('YYYY-MM-DD\x20HH:mm:ss'),this['channels'][_0x48a972[_0x22a4d8(0x154)]][_0x52365f][_0x22a4d8(0x1b6)]=_0x48a972[_0x22a4d8(0x165)],this[_0x22a4d8(0x1ce)][_0x48a972['uniqueid']][_0x52365f][_0x22a4d8(0x1a4)]=_0x48a972['membername'],this[_0x22a4d8(0x1ce)][_0x48a972[_0x22a4d8(0x154)]][_0x52365f]['lastevent']='answered_elsewhere',this[_0x22a4d8(0x1ce)][_0x48a972[_0x22a4d8(0x154)]][_0x52365f]['reason']=_0x22a4d8(0x15f),logger[_0x22a4d8(0x19e)]('[%s][voiceAgentReport][agentconnect]\x20sending\x20agentansweredelsewhere\x20event:',_0x48a972[_0x22a4d8(0x154)],util[_0x22a4d8(0x14a)](this[_0x22a4d8(0x1ce)][_0x48a972[_0x22a4d8(0x154)]][_0x52365f],{'showHidden':![],'depth':null})),ami[_0x22a4d8(0x188)](_0x22a4d8(0x19d),this[_0x22a4d8(0x1ce)][_0x48a972[_0x22a4d8(0x154)]][_0x52365f]));}}}}}catch(_0xc820f0){logger[_0x22a4d8(0x1d0)]('[%s][voiceAgentReport][agentconnect]',_0x48a972[_0x22a4d8(0x154)],util[_0x22a4d8(0x14a)](_0xc820f0,{'showHidden':![],'depth':null}));}},VoiceAgentReport[a1259_0x359621(0x195)][a1259_0x359621(0x1be)]=function(_0x32679a){const _0x4c348a=a1259_0x359621;try{this[_0x4c348a(0x17d)](_0x32679a)&&(logger[_0x4c348a(0x19e)](_0x4c348a(0x153),_0x32679a[_0x4c348a(0x154)],util[_0x4c348a(0x14a)](_0x32679a,{'showHidden':![],'depth':null})),this[_0x4c348a(0x1ce)][_0x32679a[_0x4c348a(0x154)]]&&this[_0x4c348a(0x1ce)][_0x32679a[_0x4c348a(0x154)]][_0x32679a[_0x4c348a(0x165)]]&&(logger[_0x4c348a(0x173)](_0x4c348a(0x192),_0x32679a['uniqueid'],_0x32679a[_0x4c348a(0x186)],_0x32679a[_0x4c348a(0x165)]),this[_0x4c348a(0x1ce)][_0x32679a[_0x4c348a(0x154)]][_0x32679a['destuniqueid']][_0x4c348a(0x1b1)]=!![],this['channels'][_0x32679a[_0x4c348a(0x154)]][_0x32679a[_0x4c348a(0x165)]][_0x4c348a(0x174)]=moment()[_0x4c348a(0x183)](_0x4c348a(0x199)),this['channels'][_0x32679a[_0x4c348a(0x154)]][_0x32679a[_0x4c348a(0x165)]][_0x4c348a(0x18e)]=_0x4c348a(0x1ca),this[_0x4c348a(0x1ce)][_0x32679a[_0x4c348a(0x154)]][_0x32679a[_0x4c348a(0x165)]][_0x4c348a(0x168)]=_0x4c348a(0x1ca),logger['debug']('[%s][voiceAgentReport][agentringnoanswer]\x20sending\x20agentringnoanswer\x20event:',_0x32679a[_0x4c348a(0x154)],util[_0x4c348a(0x14a)](this[_0x4c348a(0x1ce)][_0x32679a[_0x4c348a(0x154)]][_0x32679a[_0x4c348a(0x165)]],{'showHidden':![],'depth':null})),ami[_0x4c348a(0x188)]('custom:agentringnoanswer',this[_0x4c348a(0x1ce)][_0x32679a['uniqueid']][_0x32679a[_0x4c348a(0x165)]])));}catch(_0x32065c){logger[_0x4c348a(0x1d0)](_0x4c348a(0x16e),_0x32679a[_0x4c348a(0x154)],util[_0x4c348a(0x14a)](_0x32065c,{'showHidden':![],'depth':null}));}},VoiceAgentReport[a1259_0x359621(0x195)][a1259_0x359621(0x1b7)]=function(_0x56c246){const _0x36aac6=a1259_0x359621;try{if(this['isNotNull'](_0x56c246)){logger['debug']('[%s][voiceAgentReport][queuecallerabandon]\x20event:',_0x56c246['uniqueid'],util[_0x36aac6(0x14a)](_0x56c246,{'showHidden':![],'depth':null}));if(this[_0x36aac6(0x1ce)][_0x56c246[_0x36aac6(0x154)]])for(const _0x4f1e78 in this[_0x36aac6(0x1ce)][_0x56c246[_0x36aac6(0x154)]]){typeof this[_0x36aac6(0x1ce)][_0x56c246[_0x36aac6(0x154)]][_0x4f1e78]!==_0x36aac6(0x1cc)&&!this[_0x36aac6(0x1ce)][_0x56c246[_0x36aac6(0x154)]][_0x4f1e78]['agentringnoanswer']&&!this[_0x36aac6(0x1ce)][_0x56c246['uniqueid']][_0x4f1e78][_0x36aac6(0x14f)]&&(logger[_0x36aac6(0x173)]('[%s][voiceAgentReport][queuecallerabandon]\x20agent:%s\x20destuniqueid:%s\x20lastevent:abandoned',_0x56c246[_0x36aac6(0x154)],this[_0x36aac6(0x1ce)][_0x56c246[_0x36aac6(0x154)]][_0x4f1e78][_0x36aac6(0x186)],_0x4f1e78),this[_0x36aac6(0x1ce)][_0x56c246[_0x36aac6(0x154)]][_0x4f1e78]['agentringnoanswer']=!![],this['channels'][_0x56c246[_0x36aac6(0x154)]][_0x4f1e78][_0x36aac6(0x174)]=moment()[_0x36aac6(0x183)]('YYYY-MM-DD\x20HH:mm:ss'),this[_0x36aac6(0x1ce)][_0x56c246['uniqueid']][_0x4f1e78][_0x36aac6(0x18e)]=_0x36aac6(0x1b8),this[_0x36aac6(0x1ce)][_0x56c246[_0x36aac6(0x154)]][_0x4f1e78]['reason']=_0x36aac6(0x1b8),logger[_0x36aac6(0x19e)](_0x36aac6(0x1c2),_0x56c246[_0x36aac6(0x154)],util[_0x36aac6(0x14a)](this[_0x36aac6(0x1ce)][_0x56c246[_0x36aac6(0x154)]][_0x4f1e78],{'showHidden':![],'depth':null})),ami[_0x36aac6(0x188)](_0x36aac6(0x14d),this[_0x36aac6(0x1ce)][_0x56c246[_0x36aac6(0x154)]][_0x4f1e78]));}}}catch(_0x23d5e4){logger[_0x36aac6(0x1d0)]('[%s][voiceAgentReport][queuecallerabandon]',_0x56c246[_0x36aac6(0x154)],util[_0x36aac6(0x14a)](_0x23d5e4,{'showHidden':![],'depth':null}));}},VoiceAgentReport[a1259_0x359621(0x195)][a1259_0x359621(0x158)]=function(_0x1564ca){const _0x23972f=a1259_0x359621;try{if(this['isNotNull'](_0x1564ca)){logger[_0x23972f(0x19e)](_0x23972f(0x14c),_0x1564ca['uniqueid'],util[_0x23972f(0x14a)](_0x1564ca,{'showHidden':![],'depth':null}));if(this[_0x23972f(0x1ce)][_0x1564ca[_0x23972f(0x154)]])for(const _0x3b2aa0 in this[_0x23972f(0x1ce)][_0x1564ca[_0x23972f(0x154)]]){typeof this[_0x23972f(0x1ce)][_0x1564ca[_0x23972f(0x154)]][_0x3b2aa0]!==_0x23972f(0x1cc)&&(this['channels'][_0x1564ca[_0x23972f(0x154)]][_0x3b2aa0][_0x23972f(0x1a5)]&&!this[_0x23972f(0x1ce)][_0x1564ca[_0x23972f(0x154)]][_0x3b2aa0][_0x23972f(0x14f)]&&(logger['info'](_0x23972f(0x180),_0x1564ca[_0x23972f(0x154)],this['channels'][_0x1564ca[_0x23972f(0x154)]][_0x3b2aa0][_0x23972f(0x186)],_0x3b2aa0),this[_0x23972f(0x1ce)][_0x1564ca[_0x23972f(0x154)]][_0x3b2aa0][_0x23972f(0x14f)]=!![],this[_0x23972f(0x1ce)][_0x1564ca[_0x23972f(0x154)]][_0x3b2aa0][_0x23972f(0x1c8)]=moment()[_0x23972f(0x183)](_0x23972f(0x199)),this[_0x23972f(0x1ce)][_0x1564ca['uniqueid']][_0x3b2aa0][_0x23972f(0x18e)]='complete',this['channels'][_0x1564ca['uniqueid']][_0x3b2aa0]['reason']=_0x1564ca[_0x23972f(0x168)]==_0x23972f(0x148)?'agent':_0x1564ca[_0x23972f(0x168)],this[_0x23972f(0x1ce)][_0x1564ca['uniqueid']][_0x3b2aa0][_0x23972f(0x1b2)]=_0x1564ca[_0x23972f(0x1b2)],this['voiceQueues'][_0x1564ca[_0x23972f(0x1ae)]]&&this[_0x23972f(0x1c0)][_0x1564ca[_0x23972f(0x1ae)]][_0x23972f(0x1a9)]&&(this[_0x23972f(0x1ce)][_0x1564ca[_0x23972f(0x154)]][_0x3b2aa0][_0x23972f(0x19f)]=this[_0x23972f(0x1c0)][_0x1564ca[_0x23972f(0x1ae)]][_0x23972f(0x16f)],this[_0x23972f(0x1ce)][_0x1564ca[_0x23972f(0x154)]][_0x3b2aa0]['agentacw']=!![]),this[_0x23972f(0x187)][_0x1564ca[_0x23972f(0x1ba)]]=_[_0x23972f(0x1b3)](this[_0x23972f(0x187)][_0x1564ca[_0x23972f(0x1ba)]],[_0x23972f(0x1ae),_0x23972f(0x16a)]),logger['debug'](_0x23972f(0x1ad),_0x1564ca[_0x23972f(0x154)],util['inspect'](this[_0x23972f(0x1ce)][_0x1564ca[_0x23972f(0x154)]][_0x3b2aa0],{'showHidden':![],'depth':null})),ami[_0x23972f(0x188)](_0x23972f(0x156),this[_0x23972f(0x1ce)][_0x1564ca[_0x23972f(0x154)]][_0x3b2aa0]),logger[_0x23972f(0x19e)](_0x23972f(0x1c5),_0x1564ca[_0x23972f(0x154)],util[_0x23972f(0x14a)](this['channels'][_0x1564ca[_0x23972f(0x154)]][_0x3b2aa0],{'showHidden':![],'depth':null})),this['emit'](util[_0x23972f(0x183)](_0x23972f(0x18b),_0x1564ca[_0x23972f(0x186)]),_0x23972f(0x176),this[_0x23972f(0x1ce)][_0x1564ca[_0x23972f(0x154)]][_0x3b2aa0])));}}}catch(_0x242944){logger[_0x23972f(0x1d0)](_0x23972f(0x15b),_0x1564ca[_0x23972f(0x154)],util['inspect'](_0x242944,{'showHidden':![],'depth':null}));}},VoiceAgentReport['prototype'][a1259_0x359621(0x1bb)]=function(_0x364197){const _0x453f56=a1259_0x359621;try{if(this[_0x453f56(0x17d)](_0x364197)){logger[_0x453f56(0x19e)](_0x453f56(0x172),_0x364197[_0x453f56(0x154)],util['inspect'](_0x364197,{'showHidden':![],'depth':null})),this[_0x453f56(0x1a7)](_0x364197['uniqueid'],_[_0x453f56(0x17b)](_0x364197[_0x453f56(0x1b9)])[0x0],_0x364197[_0x453f56(0x18c)]);if(this[_0x453f56(0x1ce)][_0x364197[_0x453f56(0x154)]])for(const _0x5a37b5 in this[_0x453f56(0x1ce)][_0x364197['uniqueid']]){typeof this[_0x453f56(0x1ce)][_0x364197[_0x453f56(0x154)]][_0x5a37b5]!==_0x453f56(0x1cc)&&(logger[_0x453f56(0x173)](_0x453f56(0x166),_0x364197[_0x453f56(0x154)],_0x5a37b5,_['keys'](_0x364197[_0x453f56(0x1b9)])[0x0],_0x364197[_0x453f56(0x18c)]),_['isUndefined'](this[_0x453f56(0x1ce)][_0x364197['uniqueid']][_0x5a37b5][_0x453f56(0x147)])&&(this[_0x453f56(0x1ce)][_0x364197[_0x453f56(0x154)]][_0x5a37b5][_0x453f56(0x147)]={}),this[_0x453f56(0x1ce)][_0x364197['uniqueid']][_0x5a37b5][_0x453f56(0x147)]=this[_0x453f56(0x147)][_0x364197[_0x453f56(0x154)]]);}}}catch(_0x1ec691){logger[_0x453f56(0x1d0)](_0x453f56(0x182),_0x364197[_0x453f56(0x154)],util['inspect'](_0x1ec691,{'showHidden':![],'depth':null}));}},VoiceAgentReport[a1259_0x359621(0x195)][a1259_0x359621(0x1a7)]=function(_0x93a65f,_0x47e2cc,_0x18e039){const _0x1cd289=a1259_0x359621,_0x9b1e8=[_0x1cd289(0x1a2),_0x1cd289(0x194),_0x1cd289(0x189),_0x1cd289(0x167),_0x1cd289(0x185),_0x1cd289(0x15d),'rtpaudioqosrtt',_0x1cd289(0x1d1),'sipcallid',_0x1cd289(0x1a8),_0x1cd289(0x1aa),'bridgepvtcallid',_0x1cd289(0x1a6),_0x1cd289(0x1c3),_0x1cd289(0x163),'memberlastcall',_0x1cd289(0x186),_0x1cd289(0x16d),_0x1cd289(0x150)];!_[_0x1cd289(0x164)](_0x47e2cc)&&!_['includes'](_0x9b1e8,_0x47e2cc)&&(_['isUndefined'](this[_0x1cd289(0x147)][_0x93a65f])&&(this[_0x1cd289(0x147)][_0x93a65f]={}),this['variables'][_0x93a65f][_0x47e2cc]=_0x18e039);},VoiceAgentReport['prototype'][a1259_0x359621(0x1d2)]=function(_0x4d284c){const _0x3b8fef=a1259_0x359621;try{if(this['isNotNull'](_0x4d284c)){logger[_0x3b8fef(0x19e)](_0x3b8fef(0x170),_0x4d284c['uniqueid'],util[_0x3b8fef(0x14a)](_0x4d284c,{'showHidden':![],'depth':null}));if(this[_0x3b8fef(0x1ce)][_0x4d284c['uniqueid']]){for(const _0x48a3d3 in this[_0x3b8fef(0x1ce)][_0x4d284c['uniqueid']]){typeof this['channels'][_0x4d284c[_0x3b8fef(0x154)]][_0x48a3d3]!==_0x3b8fef(0x1cc)&&(this['channels'][_0x4d284c[_0x3b8fef(0x154)]][_0x48a3d3]['reason']==_0x3b8fef(0x148)&&this['channels'][_0x4d284c[_0x3b8fef(0x154)]][_0x48a3d3][_0x3b8fef(0x14f)]&&(logger[_0x3b8fef(0x173)]('[%s][voiceAgentReport][hangup]\x20destuniqueid:%s',_0x4d284c[_0x3b8fef(0x154)],_0x48a3d3),this[_0x3b8fef(0x1ce)][_0x4d284c['uniqueid']][_0x48a3d3][_0x3b8fef(0x1c8)]=moment()['format'](_0x3b8fef(0x199))));}logger[_0x3b8fef(0x19e)](_0x3b8fef(0x1c1),_0x4d284c['uniqueid'],util['inspect'](_[_0x3b8fef(0x1cd)](this['channels'][_0x4d284c['uniqueid']]),{'showHidden':![],'depth':null})),ami['emit']('custom:voiceAgentReport',_[_0x3b8fef(0x1cd)](this['channels'][_0x4d284c[_0x3b8fef(0x154)]])),delete this['channels'][_0x4d284c[_0x3b8fef(0x154)]];}this[_0x3b8fef(0x147)][_0x4d284c[_0x3b8fef(0x154)]]&&delete this[_0x3b8fef(0x147)][_0x4d284c['uniqueid']];}}catch(_0x660e78){logger['error'](_0x3b8fef(0x160),_0x4d284c['uniqueid'],util[_0x3b8fef(0x14a)](_0x660e78,{'showHidden':![],'depth':null}));}},VoiceAgentReport[a1259_0x359621(0x195)][a1259_0x359621(0x1c6)]=function(_0x48f8e9){const _0x26fae7=a1259_0x359621;try{if(this[_0x26fae7(0x17d)](_0x48f8e9)){logger['debug'](_0x26fae7(0x1c7),_0x48f8e9[_0x26fae7(0x154)],util[_0x26fae7(0x14a)](_0x48f8e9,{'showHidden':![],'depth':null}));if(this[_0x26fae7(0x1ce)][_0x48f8e9[_0x26fae7(0x178)]])for(const _0x287ce3 in this['channels'][_0x48f8e9[_0x26fae7(0x178)]]){if(typeof this[_0x26fae7(0x1ce)][_0x48f8e9['transfereeuniqueid']][_0x287ce3]!==_0x26fae7(0x1cc)){if(_0x48f8e9[_0x26fae7(0x1bd)]===_0x287ce3){logger['info'](_0x26fae7(0x193),_0x48f8e9[_0x26fae7(0x154)],this[_0x26fae7(0x1ce)][_0x48f8e9[_0x26fae7(0x178)]][_0x287ce3][_0x26fae7(0x186)],_0x287ce3);const _0x234a0c=moment();this[_0x26fae7(0x1ce)][_0x48f8e9['transfereeuniqueid']][_0x287ce3][_0x26fae7(0x14f)]=!![],this['channels'][_0x48f8e9[_0x26fae7(0x178)]][_0x287ce3][_0x26fae7(0x1c8)]=moment()['format'](_0x26fae7(0x199)),this[_0x26fae7(0x1ce)][_0x48f8e9[_0x26fae7(0x178)]][_0x287ce3][_0x26fae7(0x18e)]=_0x26fae7(0x19c),this[_0x26fae7(0x1ce)][_0x48f8e9[_0x26fae7(0x178)]][_0x287ce3]['reason']=_0x26fae7(0x148),this[_0x26fae7(0x1ce)][_0x48f8e9[_0x26fae7(0x178)]][_0x287ce3][_0x26fae7(0x1b2)]=_0x234a0c[_0x26fae7(0x1d3)](this[_0x26fae7(0x1ce)][_0x48f8e9[_0x26fae7(0x178)]][_0x287ce3][_0x26fae7(0x1a5)],'seconds');}}}if(this['channels'][_0x48f8e9[_0x26fae7(0x181)]]){const _0x9a0b18=this['channels'][_0x48f8e9[_0x26fae7(0x181)]];this[_0x26fae7(0x1ce)][_0x48f8e9[_0x26fae7(0x181)]]=this[_0x26fae7(0x1ce)][_0x48f8e9['transfereeuniqueid']],this[_0x26fae7(0x1ce)][_0x48f8e9['transfereeuniqueid']]=_0x9a0b18;}}}catch(_0x551ab1){logger[_0x26fae7(0x1d0)](_0x26fae7(0x146),_0x48f8e9[_0x26fae7(0x154)],util[_0x26fae7(0x14a)](_0x551ab1,{'showHidden':![],'depth':null}));}},VoiceAgentReport[a1259_0x359621(0x195)][a1259_0x359621(0x161)]=function(_0x257fed){const _0x41d8e3=a1259_0x359621;try{if(this[_0x41d8e3(0x17d)](_0x257fed)){logger[_0x41d8e3(0x19e)](_0x41d8e3(0x18f),_0x257fed[_0x41d8e3(0x154)],util[_0x41d8e3(0x14a)](_0x257fed,{'showHidden':![],'depth':null}));if(this['channels'][_0x257fed[_0x41d8e3(0x178)]])for(const _0xa36631 in this['channels'][_0x257fed['transfereeuniqueid']]){if(typeof this[_0x41d8e3(0x1ce)][_0x257fed[_0x41d8e3(0x178)]][_0xa36631]!=='undefined'){if(_0x257fed[_0x41d8e3(0x18d)]===_0xa36631){logger[_0x41d8e3(0x173)](_0x41d8e3(0x196),_0x257fed[_0x41d8e3(0x154)],this[_0x41d8e3(0x1ce)][_0x257fed[_0x41d8e3(0x178)]][_0xa36631][_0x41d8e3(0x186)],_0xa36631);const _0x16f93f=moment();this['channels'][_0x257fed[_0x41d8e3(0x178)]][_0xa36631][_0x41d8e3(0x14f)]=!![],this['channels'][_0x257fed[_0x41d8e3(0x178)]][_0xa36631][_0x41d8e3(0x1c8)]=_0x16f93f,this['channels'][_0x257fed['transfereeuniqueid']][_0xa36631][_0x41d8e3(0x18e)]=_0x41d8e3(0x19c),this[_0x41d8e3(0x1ce)][_0x257fed[_0x41d8e3(0x178)]][_0xa36631][_0x41d8e3(0x168)]=_0x41d8e3(0x148),this[_0x41d8e3(0x1ce)][_0x257fed[_0x41d8e3(0x178)]][_0xa36631][_0x41d8e3(0x1b2)]=_0x16f93f[_0x41d8e3(0x1d3)](this['channels'][_0x257fed['transfereeuniqueid']][_0xa36631]['agentconnectAt'],_0x41d8e3(0x191));}}}}}catch(_0x1bbf84){logger['error'](_0x41d8e3(0x14e),_0x257fed[_0x41d8e3(0x154)],util['inspect'](_0x1bbf84,{'showHidden':![],'depth':null}));}},VoiceAgentReport[a1259_0x359621(0x195)][a1259_0x359621(0x1cf)]=function(_0x4ad92c){const _0x4247ad=a1259_0x359621;let _0x1e122f='';try{this[_0x4247ad(0x17d)](_0x4ad92c)&&(logger[_0x4247ad(0x19e)](_0x4247ad(0x1a1),_0x4ad92c[_0x4247ad(0x154)],util[_0x4247ad(0x14a)](_0x4ad92c,{'showHidden':![],'depth':null})),_0x4ad92c[_0x4247ad(0x1bc)]&&(_0x1e122f=_0x4ad92c['channel'][_0x4247ad(0x18a)](0x0,_0x4ad92c[_0x4247ad(0x1bc)][_0x4247ad(0x151)]('-')),this[_0x4247ad(0x187)][_0x1e122f]&&(logger[_0x4247ad(0x173)](_0x4247ad(0x17e),_0x4ad92c[_0x4247ad(0x154)],_0x1e122f),this[_0x4247ad(0x187)][_0x1e122f][_0x4247ad(0x15e)]=!![])));}catch(_0x599013){logger[_0x4247ad(0x1d0)]('[%s][voiceAgentReport][musiconholdstart]',_0x4ad92c[_0x4247ad(0x154)],util['inspect'](_0x599013,{'showHidden':![],'depth':null}));}},VoiceAgentReport[a1259_0x359621(0x195)][a1259_0x359621(0x149)]=function(_0x24b660){const _0x226ea7=a1259_0x359621;let _0x472dc1='';try{this[_0x226ea7(0x17d)](_0x24b660)&&(logger['debug'](_0x226ea7(0x1b0),_0x24b660[_0x226ea7(0x154)],util[_0x226ea7(0x14a)](_0x24b660,{'showHidden':![],'depth':null})),_0x24b660[_0x226ea7(0x1bc)]&&(_0x472dc1=_0x24b660[_0x226ea7(0x1bc)][_0x226ea7(0x18a)](0x0,_0x24b660['channel'][_0x226ea7(0x151)]('-')),this[_0x226ea7(0x187)][_0x472dc1]&&(logger[_0x226ea7(0x173)](_0x226ea7(0x152),_0x24b660['uniqueid'],_0x472dc1),this['agents'][_0x472dc1]['onhold']=![])));}catch(_0x2e30ec){logger[_0x226ea7(0x1d0)]('[%s][voiceAgentReport][musiconholdstop]',_0x24b660[_0x226ea7(0x154)],util[_0x226ea7(0x14a)](_0x2e30ec,{'showHidden':![],'depth':null}));}},module[a1259_0x359621(0x1a3)]=VoiceAgentReport; \ No newline at end of file diff --git a/server/services/ami/report/voiceCallReport.js b/server/services/ami/report/voiceCallReport.js index 96ffb86..9ff8570 100644 --- a/server/services/ami/report/voiceCallReport.js +++ b/server/services/ami/report/voiceCallReport.js @@ -1 +1 @@ -const a1096_0x3f1f=['monitors','connectedlinename','lastapplication','lastdata','originatecalleridnum','hangup','musiconholdstart','application','duration','disposition','event','omit','linkedid','secondtransfereruniqueid','transfereeuniqueid','destconnectedlinenum','calleridnum','custom:voiceCallReport','syncNewState','exports','[syncNewExten][VoiceCallReport]','xcally-motion-preview','split','origtransfereruniqueid','accountcode','inspect','cdr(','OutgoingSpoolFailed','connectedlinenum','emit','uniqueid','.wav49','monitorFilename','../../../rediscache','[syncBlindTransfer][VoiceCallReport]','util','ami','toLowerCase','ANSWERED','billableseconds','origtransferercalleridnum','bind','musiconholdstop','[syncMusicOnHoldStop][VoiceCallReport]','agi','membername','syncHangup','agents','error','seconds','extension','isNil','[syncMusicOnHoldStart][VoiceCallReport]','starttime','NO\x20ANSWER','syncVarSet','syncMixMonitorFilename','syncNewExten','[syncNewCallerId][VoiceCallReport]','pick','applicationdata','transfertargetuniqueid','push','../ami','moment','milliseconds','BlindTransfer','destination','endsWith','transfertargetcalleridnum','newchannel','merge','channel','resolve','prototype','UserId','[syncAttendedTransfer][VoiceCallReport]','transferconnectedlinenum','syncBlindTransfer','syncNewChannel','path','YYYY-MM-DD\x20HH:mm:ss','answered','callerid','calleridname','context','xmd-queue','variable','[syncVarSet][VoiceCallReport]','rec','../model/channel','find','type','from-sip','catch','toNumber','keys','user:agentconnect','channels','blindTransfers','answertime','holdtime','name','../../../config/logger','value','mixmonitor_filename','user:agentcomplete','exten','isNotNull','includes','playback','varset','syncMusicOnHoldStart','channelstate','[syncHangup][VoiceCallReport]','xmd-phone','blindtransfer','parse','[syncNewState][VoiceCallReport]','replace','log','mohtime','isUndefined','lodash','destinationchannel','actionCoreShowChannels','xmcs-queue','match','appdata','user:%s','queue','mohstarttime','xmd-callerid-preview','format','sipcallid','syncNewCallerId','calleridpreview','diff','monitor','FAILED','xmd-callerid'];(function(_0x477e7a,_0x3f1f2b){const _0xf59300=function(_0x290964){while(--_0x290964){_0x477e7a['push'](_0x477e7a['shift']());}};_0xf59300(++_0x3f1f2b);}(a1096_0x3f1f,0xf5));const a1096_0xf593=function(_0x477e7a,_0x3f1f2b){_0x477e7a=_0x477e7a-0x0;let _0xf59300=a1096_0x3f1f[_0x477e7a];return _0xf59300;};const _0x365d3d=a1096_0xf593;'use strict';const _=require(_0x365d3d('0x13')),moment=require(_0x365d3d('0x65')),util=require(_0x365d3d('0x48')),path=require(_0x365d3d('0x75')),logger=require(_0x365d3d('0x8c'))(_0x365d3d('0x49')),ami=require(_0x365d3d('0x64')),Channel=require(_0x365d3d('0x7f')),applications=['set','queue',_0x365d3d('0x51'),'dial',_0x365d3d('0x6'),'voicemail'],dispositions=['NO\x20ANSWER',_0x365d3d('0x23'),_0x365d3d('0x23'),_0x365d3d('0x5b'),_0x365d3d('0x5b'),'NO\x20ANSWER',_0x365d3d('0x4b'),'BUSY',_0x365d3d('0x23'),_0x365d3d('0x23'),_0x365d3d('0x23')],{getSocket}=require(_0x365d3d('0x46')),io=getSocket();function VoiceCallReport(_0x290964){const _0x3dd5ca=_0x365d3d;return this[_0x3dd5ca('0x87')]=_0x290964[_0x3dd5ca('0x87')],this[_0x3dd5ca('0x54')]=_0x290964[_0x3dd5ca('0x54')],this[_0x3dd5ca('0x88')]={},ami['on']('coreshowchannel',this['syncNewExten']['bind'](this)),ami['on']('newexten',this[_0x3dd5ca('0x5e')][_0x3dd5ca('0x4e')](this)),ami['on'](_0x3dd5ca('0x6b'),this['syncNewChannel'][_0x3dd5ca('0x4e')](this)),ami['on']('newstate',this[_0x3dd5ca('0x37')]['bind'](this)),ami['on'](_0x3dd5ca('0x7'),this[_0x3dd5ca('0x5c')][_0x3dd5ca('0x4e')](this)),ami['on'](_0x3dd5ca('0x2a'),this[_0x3dd5ca('0x53')]['bind'](this)),ami['on']('newcallerid',this[_0x3dd5ca('0x1f')][_0x3dd5ca('0x4e')](this)),ami['on']('attendedtransfer',this['syncAttendedTransfer'][_0x3dd5ca('0x4e')](this)),ami['on'](_0x3dd5ca('0xc'),this[_0x3dd5ca('0x73')][_0x3dd5ca('0x4e')](this)),ami['on'](_0x3dd5ca('0x2b'),this[_0x3dd5ca('0x8')][_0x3dd5ca('0x4e')](this)),ami['on'](_0x3dd5ca('0x4f'),this['syncMusicOnHoldStop'][_0x3dd5ca('0x4e')](this)),Promise[_0x3dd5ca('0x6e')]()['then'](ami[_0x3dd5ca('0x15')]())[_0x3dd5ca('0x83')](function(_0x3d96e7){const _0x9b9564=_0x3dd5ca;console[_0x9b9564('0x10')](_0x3d96e7);});}VoiceCallReport[_0x365d3d('0x6f')]['isNotNull']=function(_0x4ce531){const _0x45d487=_0x365d3d;return _0x4ce531!==null&&!_[_0x45d487('0x12')](_0x4ce531);},VoiceCallReport[_0x365d3d('0x6f')][_0x365d3d('0x42')]=function(_0x1f897b,_0x1c5b6f,_0x1c495a){io['to'](_0x1f897b)['emit'](_0x1c5b6f,_0x1c495a);},VoiceCallReport['prototype'][_0x365d3d('0x1f')]=function(_0x2c4e69){const _0x20af04=_0x365d3d;try{this[_0x20af04('0x4')](_0x2c4e69)&&(_0x2c4e69[_0x20af04('0x43')]===_0x2c4e69['linkedid']&&(!_['isUndefined'](this['channels'][_0x2c4e69['uniqueid']])&&_['merge'](this[_0x20af04('0x87')][_0x2c4e69['uniqueid']],_['pick'](_0x2c4e69,_['keys'](this[_0x20af04('0x87')][_0x2c4e69['uniqueid']])))));}catch(_0x5679f0){logger[_0x20af04('0x55')](_0x20af04('0x5f'),util[_0x20af04('0x3e')](_0x5679f0,{'showHidden':![],'depth':null}));}},VoiceCallReport[_0x365d3d('0x6f')][_0x365d3d('0x74')]=function(_0x15d2da){const _0x169148=_0x365d3d;try{this['isNotNull'](_0x15d2da)&&(_0x15d2da[_0x169148('0x43')]===_0x15d2da[_0x169148('0x31')]&&_0x15d2da[_0x169148('0x6d')]!='OutgoingSpoolFailed'&&(_['isUndefined'](this[_0x169148('0x87')][_0x15d2da[_0x169148('0x43')]])&&(this['channels'][_0x15d2da[_0x169148('0x43')]]=new Channel(),this['channels'][_0x15d2da['uniqueid']][_0x169148('0x5a')]=moment()['format'](_0x169148('0x76')),this[_0x169148('0x87')][_0x15d2da[_0x169148('0x43')]][_0x169148('0x2e')]=dispositions[_[_0x169148('0x84')](_0x15d2da[_0x169148('0x9')])],_[_0x169148('0x6c')](this[_0x169148('0x87')][_0x15d2da[_0x169148('0x43')]],_[_0x169148('0x60')](_0x15d2da,_[_0x169148('0x85')](this[_0x169148('0x87')][_0x15d2da[_0x169148('0x43')]]))),_0x15d2da[_0x169148('0x7a')]===_0x169148('0x82')&&(this[_0x169148('0x54')][_0x15d2da[_0x169148('0x6d')][_0x169148('0x3b')]('-')[0x0]]&&(this[_0x169148('0x54')][_0x15d2da['channel'][_0x169148('0x3b')]('-')[0x0]]['destconnectedlinenum']=_0x15d2da['exten'],this[_0x169148('0x42')](util['format'](_0x169148('0x19'),this[_0x169148('0x54')][_0x15d2da[_0x169148('0x6d')][_0x169148('0x3b')]('-')[0x0]]['name']),_0x169148('0x86'),{'destaccountcode':this[_0x169148('0x54')][_0x15d2da[_0x169148('0x6d')][_0x169148('0x3b')]('-')[0x0]][_0x169148('0x3d')],'destconnectedlinenum':_0x15d2da[_0x169148('0x3')]}))))));}catch(_0x2e6907){logger[_0x169148('0x55')]('[syncNewChannel][VoiceCallReport]',util['inspect'](_0x2e6907,{'showHidden':![],'depth':null}));}},VoiceCallReport[_0x365d3d('0x6f')]['syncNewExten']=function(_0x227c2b){const _0xe1b576=_0x365d3d;try{if(this['isNotNull'](_0x227c2b)){if(_0x227c2b[_0xe1b576('0x43')]===_0x227c2b[_0xe1b576('0x31')]&&_0x227c2b[_0xe1b576('0x3')]!='h'&&_0x227c2b['channel']!=_0xe1b576('0x40')){_0x227c2b[_0xe1b576('0x2c')]=_0x227c2b[_0xe1b576('0x2c')][_0xe1b576('0x4a')](),_0x227c2b[_0xe1b576('0x61')]=(_0x227c2b[_0xe1b576('0x18')]||_0x227c2b[_0xe1b576('0x61')])[_0xe1b576('0x4a')]();_[_0xe1b576('0x12')](this[_0xe1b576('0x87')][_0x227c2b['uniqueid']])&&(this[_0xe1b576('0x87')][_0x227c2b['uniqueid']]=new Channel(),this['channels'][_0x227c2b[_0xe1b576('0x43')]][_0xe1b576('0x5a')]=_0x227c2b[_0xe1b576('0x2d')]?moment()['subtract'](moment['duration'](_0x227c2b[_0xe1b576('0x2d')])[_0xe1b576('0x56')](),_0xe1b576('0x56'))[_0xe1b576('0x1d')](_0xe1b576('0x76')):moment()[_0xe1b576('0x1d')](_0xe1b576('0x76')),this[_0xe1b576('0x87')][_0x227c2b[_0xe1b576('0x43')]]['disposition']=_0xe1b576('0x5b'));_[_0xe1b576('0x6c')](this[_0xe1b576('0x87')][_0x227c2b[_0xe1b576('0x43')]],_[_0xe1b576('0x60')](_0x227c2b,_['keys'](this[_0xe1b576('0x87')][_0x227c2b[_0xe1b576('0x43')]])));if(_[_0xe1b576('0x5')](applications,_0x227c2b[_0xe1b576('0x2c')])){this[_0xe1b576('0x87')][_0x227c2b[_0xe1b576('0x43')]][_0xe1b576('0x27')]=_0x227c2b[_0xe1b576('0x2c')],this[_0xe1b576('0x87')][_0x227c2b[_0xe1b576('0x43')]][_0xe1b576('0x28')]=_0x227c2b[_0xe1b576('0x61')];if(_0x227c2b[_0xe1b576('0x2c')]==='set'&&_['startsWith'](_0x227c2b[_0xe1b576('0x61')],_0xe1b576('0x3f'))){const _0x589527=_0x227c2b[_0xe1b576('0x61')]['split']('='),_0x31f185=_0x589527[0x0][_0xe1b576('0x17')](/cdr\((.*)\)/);_0x31f185&&(this['channels'][_0x227c2b['uniqueid']][_0x31f185[0x1]]=_0x589527[0x1]);}else _0x227c2b[_0xe1b576('0x2c')]===_0xe1b576('0x1a')&&(this[_0xe1b576('0x87')][_0x227c2b[_0xe1b576('0x43')]][_0xe1b576('0x1a')]=_0x227c2b['applicationdata'][_0xe1b576('0x3b')](',')[0x0]);}}}}catch(_0x3cf316){logger[_0xe1b576('0x55')](_0xe1b576('0x39'),util[_0xe1b576('0x3e')](_0x3cf316,{'showHidden':![],'depth':null}));}},VoiceCallReport[_0x365d3d('0x6f')][_0x365d3d('0x37')]=function(_0x309528){const _0xb247f4=_0x365d3d;try{if(this[_0xb247f4('0x4')](_0x309528)){if(_0x309528[_0xb247f4('0x43')]!==_0x309528[_0xb247f4('0x31')]){if(this['channels'][_0x309528['linkedid']]){if(_0x309528[_0xb247f4('0x9')]==='6'){if(!this['channels'][_0x309528[_0xb247f4('0x31')]][_0xb247f4('0x77')]){const _0xfb226a=moment();this[_0xb247f4('0x87')][_0x309528[_0xb247f4('0x31')]][_0xb247f4('0x77')]=!![],this['channels'][_0x309528['linkedid']][_0xb247f4('0x89')]=_0xfb226a[_0xb247f4('0x1d')]('YYYY-MM-DD\x20HH:mm:ss'),this[_0xb247f4('0x87')][_0x309528[_0xb247f4('0x31')]][_0xb247f4('0x5a')]&&(this[_0xb247f4('0x87')][_0x309528[_0xb247f4('0x31')]][_0xb247f4('0x8a')]=_0xfb226a[_0xb247f4('0x21')](this[_0xb247f4('0x87')][_0x309528[_0xb247f4('0x31')]][_0xb247f4('0x5a')],_0xb247f4('0x56')));}this[_0xb247f4('0x87')][_0x309528['linkedid']][_0xb247f4('0x31')]=_0x309528[_0xb247f4('0x43')],_0x309528['calleridnum']!==_0xb247f4('0x3a')&&(this['channels'][_0x309528['linkedid']][_0xb247f4('0x41')]=_0x309528[_0xb247f4('0x35')]),this['channels'][_0x309528[_0xb247f4('0x31')]][_0xb247f4('0x26')]=_0x309528[_0xb247f4('0x79')],this[_0xb247f4('0x87')][_0x309528[_0xb247f4('0x31')]][_0xb247f4('0x14')]=_0x309528[_0xb247f4('0x6d')],this[_0xb247f4('0x87')][_0x309528[_0xb247f4('0x31')]][_0xb247f4('0x2e')]=dispositions[_[_0xb247f4('0x84')](_0x309528['channelstate'])],this['agents'][_0x309528[_0xb247f4('0x6d')][_0xb247f4('0x3b')]('-')[0x0]]&&(this[_0xb247f4('0x87')][_0x309528['linkedid']][_0xb247f4('0x70')]=this[_0xb247f4('0x54')][_0x309528[_0xb247f4('0x6d')][_0xb247f4('0x3b')]('-')[0x0]]['id'],this['channels'][_0x309528[_0xb247f4('0x31')]][_0xb247f4('0x52')]=this['agents'][_0x309528[_0xb247f4('0x6d')][_0xb247f4('0x3b')]('-')[0x0]]['name']);}}}else this['channels'][_0x309528[_0xb247f4('0x43')]]&&(_0x309528[_0xb247f4('0x9')]==='6'&&(this[_0xb247f4('0x54')][_0x309528[_0xb247f4('0x6d')]['split']('-')[0x0]]&&(this['channels'][_0x309528[_0xb247f4('0x43')]][_0xb247f4('0x70')]=this[_0xb247f4('0x54')][_0x309528[_0xb247f4('0x6d')]['split']('-')[0x0]]['id'],this[_0xb247f4('0x87')][_0x309528[_0xb247f4('0x43')]]['membername']=this['agents'][_0x309528['channel']['split']('-')[0x0]][_0xb247f4('0x8b')])));}}catch(_0xa8b940){logger[_0xb247f4('0x55')](_0xb247f4('0xe'),util[_0xb247f4('0x3e')](_0xa8b940,{'showHidden':![],'depth':null}));}},VoiceCallReport[_0x365d3d('0x6f')][_0x365d3d('0x5d')]=function(_0x55767c,_0x41a05d){const _0x57974e=_0x365d3d;if(this[_0x57974e('0x87')][_0x55767c]){this[_0x57974e('0x87')][_0x55767c][_0x57974e('0x22')]=!![];_[_0x57974e('0x69')](_0x41a05d,_0x57974e('0x44'))&&(_0x41a05d=_0x41a05d[_0x57974e('0xf')](_0x57974e('0x44'),'.WAV'));this['channels'][_0x55767c][_0x57974e('0x45')]=_0x41a05d;const _0x21631e=_[_0x57974e('0x80')](this[_0x57974e('0x87')][_0x55767c][_0x57974e('0x25')],{'filename':_0x41a05d});_[_0x57974e('0x58')](_0x21631e)&&this['channels'][_0x55767c]['monitors'][_0x57974e('0x63')]({'filename':_0x41a05d,'createdAt':moment()[_0x57974e('0x1d')](_0x57974e('0x76')),'mixmonitorid':'','status':_0x57974e('0x7e')});}},VoiceCallReport[_0x365d3d('0x6f')][_0x365d3d('0x5c')]=function(_0x307123){const _0x3a3af9=_0x365d3d;try{if(this[_0x3a3af9('0x4')](_0x307123)){if(this['channels'][_0x307123[_0x3a3af9('0x43')]]&&_0x307123[_0x3a3af9('0x6d')]!=_0x3a3af9('0x40')){if(this[_0x3a3af9('0x4')](_0x307123[_0x3a3af9('0x7c')])){if(this[_0x3a3af9('0x4')](_0x307123[_0x3a3af9('0x7c')]['mixmonitor_filename']))this['syncMixMonitorFilename'](_0x307123[_0x3a3af9('0x43')],_0x307123[_0x3a3af9('0x0')]);else{if(this[_0x3a3af9('0x4')](_0x307123['variable'][_0x3a3af9('0xb')]))this['channels'][_0x307123[_0x3a3af9('0x43')]][_0x3a3af9('0x35')]=_0x307123['value'];else{if(this[_0x3a3af9('0x4')](_0x307123['variable'][_0x3a3af9('0x24')]))this[_0x3a3af9('0x87')][_0x307123[_0x3a3af9('0x43')]][_0x3a3af9('0x78')]=_0x307123[_0x3a3af9('0x0')];else{if(this[_0x3a3af9('0x4')](_0x307123[_0x3a3af9('0x7c')]['xmd-cdrtype']))this[_0x3a3af9('0x87')][_0x307123[_0x3a3af9('0x43')]]['type']=_0x307123['value'];else{if(this['isNotNull'](_0x307123[_0x3a3af9('0x7c')][_0x3a3af9('0x7b')]))this[_0x3a3af9('0x87')][_0x307123['uniqueid']][_0x3a3af9('0x1a')]=_0x307123['value']['split'](',')[0x0];else{if(this[_0x3a3af9('0x4')](_0x307123[_0x3a3af9('0x7c')]['xmd-originatecalleridnum']))this[_0x3a3af9('0x87')][_0x307123['uniqueid']][_0x3a3af9('0x29')]=_0x307123[_0x3a3af9('0x0')];else{if(this[_0x3a3af9('0x4')](_0x307123['variable']['xmd-destination']))this[_0x3a3af9('0x87')][_0x307123[_0x3a3af9('0x43')]][_0x3a3af9('0x68')]=_0x307123[_0x3a3af9('0x0')];else{if(this[_0x3a3af9('0x4')](_0x307123[_0x3a3af9('0x7c')][_0x3a3af9('0x1c')]))this[_0x3a3af9('0x87')][_0x307123[_0x3a3af9('0x43')]][_0x3a3af9('0x20')]=_0x307123[_0x3a3af9('0x0')];else{if(this[_0x3a3af9('0x4')](_0x307123[_0x3a3af9('0x7c')][_0x3a3af9('0x16')]))this[_0x3a3af9('0x87')][_0x307123[_0x3a3af9('0x43')]]['queue']=_0x307123[_0x3a3af9('0x0')];else this[_0x3a3af9('0x4')](_0x307123[_0x3a3af9('0x7c')][_0x3a3af9('0x1e')])&&(this[_0x3a3af9('0x87')][_0x307123[_0x3a3af9('0x43')]]['sipcalluniqueid']=_0x307123[_0x3a3af9('0x0')]);}}}}}}}}}}else{if(this[_0x3a3af9('0x4')](_0x307123[_0x3a3af9('0x7c')][_0x3a3af9('0x1')])){if(_0x307123[_0x3a3af9('0x0')]){const _0x3fae0b=path[_0x3a3af9('0xd')](_0x307123[_0x3a3af9('0x0')])['name'];this[_0x3a3af9('0x5d')](_0x3fae0b,_0x307123[_0x3a3af9('0x0')]);}}else this['channels'][_0x307123['linkedid']]&&(this[_0x3a3af9('0x4')](_0x307123[_0x3a3af9('0x7c')])&&(this[_0x3a3af9('0x4')](_0x307123['variable'][_0x3a3af9('0x1e')])&&(this[_0x3a3af9('0x87')][_0x307123[_0x3a3af9('0x31')]]['sipcalllinkedid']=_0x307123[_0x3a3af9('0x0')])));}}}catch(_0x1cf75c){logger['error'](_0x3a3af9('0x7d'),util[_0x3a3af9('0x3e')](_0x1cf75c,{'showHidden':![],'depth':null}));}},VoiceCallReport[_0x365d3d('0x6f')][_0x365d3d('0x53')]=function(_0x13601a){const _0x4fdd6e=_0x365d3d;try{if(this[_0x4fdd6e('0x4')](_0x13601a)){if(this['channels'][_0x13601a[_0x4fdd6e('0x43')]]){const _0x1355cb=moment();this['channels'][_0x13601a[_0x4fdd6e('0x43')]]['endtime']=_0x1355cb[_0x4fdd6e('0x1d')](_0x4fdd6e('0x76')),this[_0x4fdd6e('0x87')][_0x13601a['uniqueid']][_0x4fdd6e('0x2d')]=_0x1355cb[_0x4fdd6e('0x21')](this[_0x4fdd6e('0x87')][_0x13601a[_0x4fdd6e('0x43')]][_0x4fdd6e('0x5a')],'seconds'),this[_0x4fdd6e('0x87')][_0x13601a['uniqueid']][_0x4fdd6e('0x77')]&&(this[_0x4fdd6e('0x87')][_0x13601a[_0x4fdd6e('0x43')]][_0x4fdd6e('0x4c')]=_0x1355cb[_0x4fdd6e('0x21')](this[_0x4fdd6e('0x87')][_0x13601a[_0x4fdd6e('0x43')]][_0x4fdd6e('0x89')],_0x4fdd6e('0x56')),this[_0x4fdd6e('0x87')][_0x13601a['uniqueid']][_0x4fdd6e('0x8a')]=this[_0x4fdd6e('0x87')][_0x13601a[_0x4fdd6e('0x43')]]['duration']-this[_0x4fdd6e('0x87')][_0x13601a[_0x4fdd6e('0x43')]][_0x4fdd6e('0x4c')]),_0x13601a['context']===_0x4fdd6e('0x82')&&(this[_0x4fdd6e('0x54')][_0x13601a[_0x4fdd6e('0x6d')][_0x4fdd6e('0x3b')]('-')[0x0]]&&(this[_0x4fdd6e('0x54')][_0x13601a[_0x4fdd6e('0x6d')]['split']('-')[0x0]]=_[_0x4fdd6e('0x30')](this[_0x4fdd6e('0x54')][_0x13601a[_0x4fdd6e('0x6d')][_0x4fdd6e('0x3b')]('-')[0x0]],[_0x4fdd6e('0x34')]),this[_0x4fdd6e('0x42')](util['format'](_0x4fdd6e('0x19'),this[_0x4fdd6e('0x54')][_0x13601a[_0x4fdd6e('0x6d')]['split']('-')[0x0]]['name']),_0x4fdd6e('0x2'),{'destaccountcode':this['agents'][_0x13601a[_0x4fdd6e('0x6d')]['split']('-')[0x0]][_0x4fdd6e('0x3d')]}))),_0x13601a[_0x4fdd6e('0x2f')]===_0x4fdd6e('0x67')?this['blindTransfers'][_0x13601a[_0x4fdd6e('0x43')]]=this['channels'][_0x13601a[_0x4fdd6e('0x43')]]:this[_0x4fdd6e('0x87')][_0x13601a['uniqueid']][_0x4fdd6e('0x81')]==='outbound'&&this[_0x4fdd6e('0x88')][_0x13601a[_0x4fdd6e('0x43')]]&&(this[_0x4fdd6e('0x87')][_0x13601a[_0x4fdd6e('0x43')]][_0x4fdd6e('0x43')]=[this['channels'][_0x13601a[_0x4fdd6e('0x43')]][_0x4fdd6e('0x31')],this[_0x4fdd6e('0x87')][_0x13601a[_0x4fdd6e('0x43')]][_0x4fdd6e('0x31')]=this[_0x4fdd6e('0x87')][_0x13601a[_0x4fdd6e('0x43')]][_0x4fdd6e('0x43')]][0x0],delete this[_0x4fdd6e('0x88')][_0x13601a[_0x4fdd6e('0x43')]]),ami[_0x4fdd6e('0x42')](_0x4fdd6e('0x36'),this[_0x4fdd6e('0x87')][_0x13601a[_0x4fdd6e('0x43')]]),delete this[_0x4fdd6e('0x87')][_0x13601a[_0x4fdd6e('0x43')]];}}}catch(_0x2b2c2d){logger['error'](_0x4fdd6e('0xa'),util[_0x4fdd6e('0x3e')](_0x2b2c2d,{'showHidden':![],'depth':null}));}},VoiceCallReport['prototype']['syncAttendedTransfer']=function(_0x2bdc5b){const _0x2d01fb=_0x365d3d;try{if(this[_0x2d01fb('0x4')](_0x2bdc5b)){if(this[_0x2d01fb('0x87')][_0x2bdc5b[_0x2d01fb('0x33')]]){this[_0x2d01fb('0x87')][_0x2bdc5b[_0x2d01fb('0x33')]]['transfercalleridnum']=_0x2bdc5b[_0x2d01fb('0x4d')],this[_0x2d01fb('0x87')][_0x2bdc5b['transfereeuniqueid']][_0x2d01fb('0x72')]=_0x2bdc5b[_0x2d01fb('0x6a')];if(this['channels'][_0x2bdc5b[_0x2d01fb('0x32')]]){const _0x401b85=this['channels'][_0x2bdc5b[_0x2d01fb('0x32')]];this[_0x2d01fb('0x87')][_0x2bdc5b['secondtransfereruniqueid']]=this[_0x2d01fb('0x87')][_0x2bdc5b[_0x2d01fb('0x33')]],this[_0x2d01fb('0x87')][_0x2bdc5b[_0x2d01fb('0x33')]]=_0x401b85;}}else{if(this[_0x2d01fb('0x87')][_0x2bdc5b[_0x2d01fb('0x62')]]){this[_0x2d01fb('0x87')][_0x2bdc5b[_0x2d01fb('0x62')]]['transfercalleridnum']=_0x2bdc5b[_0x2d01fb('0x4d')],this[_0x2d01fb('0x87')][_0x2bdc5b[_0x2d01fb('0x62')]][_0x2d01fb('0x72')]=_0x2bdc5b[_0x2d01fb('0x6a')];if(this['channels'][_0x2bdc5b['origtransfereruniqueid']]){const _0x35b2be=this[_0x2d01fb('0x87')][_0x2bdc5b[_0x2d01fb('0x3c')]];this['channels'][_0x2bdc5b['origtransfereruniqueid']]=this[_0x2d01fb('0x87')][_0x2bdc5b[_0x2d01fb('0x62')]],this[_0x2d01fb('0x87')][_0x2bdc5b[_0x2d01fb('0x62')]]=_0x35b2be;}}}}}catch(_0x188aed){logger[_0x2d01fb('0x55')](_0x2d01fb('0x71'),util[_0x2d01fb('0x3e')](_0x188aed,{'showHidden':![],'depth':null}));}},VoiceCallReport[_0x365d3d('0x6f')][_0x365d3d('0x73')]=function(_0x4f9e39){const _0x1ee0f6=_0x365d3d;try{this['isNotNull'](_0x4f9e39)&&(this[_0x1ee0f6('0x87')][_0x4f9e39['transfereeuniqueid']]&&(this['channels'][_0x4f9e39[_0x1ee0f6('0x33')]]['transfercalleridnum']=_0x4f9e39['transfereecalleridnum'],this[_0x1ee0f6('0x87')][_0x4f9e39['transfereeuniqueid']][_0x1ee0f6('0x72')]=_0x4f9e39[_0x1ee0f6('0x57')],this[_0x1ee0f6('0x53')]({'event':_0x1ee0f6('0x67'),'uniqueid':_0x4f9e39[_0x1ee0f6('0x33')],'context':_0x4f9e39[_0x1ee0f6('0x7a')],'channel':_0x4f9e39['transfererchannel']})));}catch(_0x5c7937){logger[_0x1ee0f6('0x55')](_0x1ee0f6('0x47'),util[_0x1ee0f6('0x3e')](_0x5c7937,{'showHidden':![],'depth':null}));}},VoiceCallReport['prototype'][_0x365d3d('0x8')]=function(_0x6e1c9d){const _0x240463=_0x365d3d;try{this['isNotNull'](_0x6e1c9d)&&(this[_0x240463('0x87')][_0x6e1c9d[_0x240463('0x43')]]&&(!_['isNil'](this[_0x240463('0x87')][_0x6e1c9d[_0x240463('0x43')]][_0x240463('0x89')])&&(this[_0x240463('0x87')][_0x6e1c9d['uniqueid']]['mohstarttime']=moment()[_0x240463('0x1d')](_0x240463('0x76')))));}catch(_0x38e55e){logger['error'](_0x240463('0x59'),util[_0x240463('0x3e')](_0x38e55e,{'showHidden':![],'depth':null}));}},VoiceCallReport['prototype']['syncMusicOnHoldStop']=function(_0x1e3826){const _0x1dd184=_0x365d3d;try{this[_0x1dd184('0x4')](_0x1e3826)&&(this[_0x1dd184('0x87')][_0x1e3826[_0x1dd184('0x43')]]&&(!_[_0x1dd184('0x58')](this['channels'][_0x1e3826['uniqueid']]['mohstarttime'])&&(this[_0x1dd184('0x87')][_0x1e3826[_0x1dd184('0x43')]][_0x1dd184('0x11')]+=moment()[_0x1dd184('0x66')](0x0)[_0x1dd184('0x21')](this['channels'][_0x1e3826['uniqueid']][_0x1dd184('0x1b')],'seconds'),delete this[_0x1dd184('0x87')][_0x1e3826[_0x1dd184('0x43')]][_0x1dd184('0x1b')])));}catch(_0x217c9d){logger[_0x1dd184('0x55')](_0x1dd184('0x50'),util['inspect'](_0x217c9d,{'showHidden':![],'depth':null}));}},module[_0x365d3d('0x38')]=VoiceCallReport; \ No newline at end of file +const a1260_0x42f4=['value','then','hangup','lastdata','seconds','OutgoingSpoolFailed','xmd-queue','cdr(','[syncMusicOnHoldStart][VoiceCallReport]','moment','BUSY','uniqueid','error','syncVarSet','actionCoreShowChannels','monitors','xmd-callerid-preview','isUndefined','NO\x20ANSWER','subtract','set','from-sip','xmcs-queue','transfercalleridnum','coreshowchannel','syncMusicOnHoldStart','FAILED','prototype','syncNewExten','voicemail','blindtransfer','calleridnum','find','musiconholdstart','milliseconds','keys','replace','format','bind','inspect','answertime','[syncAttendedTransfer][VoiceCallReport]','pick','syncHangup','agi','secondtransfereruniqueid','agents','split','originatecalleridnum','[syncHangup][VoiceCallReport]','linkedid','xmd-destination','.WAV','xmd-cdrtype','diff','channelstate','exten','playback','sipcallid','billableseconds','monitor','queue','[syncNewCallerId][VoiceCallReport]','match','xmd-originatecalleridnum','syncNewChannel','extension','util','path','applicationdata','parse','emit','startsWith','syncBlindTransfer','channels','disposition','duration','mohstarttime','merge','monitorFilename','event','transfereeuniqueid','name','[syncNewChannel][VoiceCallReport]','blindTransfers','.wav49','newexten','transfereecalleridnum','syncMixMonitorFilename','../../../config/logger','answered','user:agentconnect','UserId','xmd-callerid','xcally-motion-preview','origtransferercalleridnum','YYYY-MM-DD\x20HH:mm:ss','toLowerCase','syncMusicOnHoldStop','../model/channel','lodash','appdata','isNotNull','endtime','transferconnectedlinenum','calleridname','syncNewState','origtransfereruniqueid','../../../rediscache','sipcalluniqueid','newstate','user:%s','membername','destconnectedlinenum','isNil','exports','syncAttendedTransfer','callerid','push','channel','xmd-phone','connectedlinename','omit','../ami','attendedtransfer','starttime','resolve','outbound','sipcalllinkedid','context','user:agentcomplete','variable','catch','calleridpreview','type','ami','holdtime','newchannel','transfertargetuniqueid','newcallerid','BlindTransfer','application','ANSWERED','mixmonitor_filename','varset','transfertargetcalleridnum','toNumber','[syncBlindTransfer][VoiceCallReport]','dial','syncNewCallerId'];(function(_0x58736d,_0x3ff917){const _0x42f4c0=function(_0x350600){while(--_0x350600){_0x58736d['push'](_0x58736d['shift']());}};_0x42f4c0(++_0x3ff917);}(a1260_0x42f4,0x97));const a1260_0x3506=function(_0x58736d,_0x3ff917){_0x58736d=_0x58736d-0x17f;let _0x42f4c0=a1260_0x42f4[_0x58736d];return _0x42f4c0;};const a1260_0x53f2e8=a1260_0x3506;'use strict';const _=require(a1260_0x53f2e8(0x1e2)),moment=require(a1260_0x53f2e8(0x187)),util=require(a1260_0x53f2e8(0x1c1)),path=require(a1260_0x53f2e8(0x1c2)),logger=require(a1260_0x53f2e8(0x1d7))(a1260_0x53f2e8(0x205)),ami=require(a1260_0x53f2e8(0x1f9)),Channel=require(a1260_0x53f2e8(0x1e1)),applications=[a1260_0x53f2e8(0x192),a1260_0x53f2e8(0x1bb),a1260_0x53f2e8(0x1aa),a1260_0x53f2e8(0x212),a1260_0x53f2e8(0x1b7),a1260_0x53f2e8(0x19b)],dispositions=[a1260_0x53f2e8(0x190),a1260_0x53f2e8(0x198),a1260_0x53f2e8(0x198),'NO\x20ANSWER',a1260_0x53f2e8(0x190),a1260_0x53f2e8(0x190),a1260_0x53f2e8(0x20c),a1260_0x53f2e8(0x188),a1260_0x53f2e8(0x198),a1260_0x53f2e8(0x198),a1260_0x53f2e8(0x198)],{getSocket}=require(a1260_0x53f2e8(0x1ea)),io=getSocket();function VoiceCallReport(_0x7fd7c2){const _0x1c34ab=a1260_0x53f2e8;return this[_0x1c34ab(0x1c8)]=_0x7fd7c2[_0x1c34ab(0x1c8)],this['agents']=_0x7fd7c2['agents'],this[_0x1c34ab(0x1d2)]={},ami['on'](_0x1c34ab(0x196),this[_0x1c34ab(0x19a)][_0x1c34ab(0x1a4)](this)),ami['on'](_0x1c34ab(0x1d4),this[_0x1c34ab(0x19a)][_0x1c34ab(0x1a4)](this)),ami['on'](_0x1c34ab(0x207),this[_0x1c34ab(0x1bf)][_0x1c34ab(0x1a4)](this)),ami['on'](_0x1c34ab(0x1ec),this[_0x1c34ab(0x1e8)][_0x1c34ab(0x1a4)](this)),ami['on'](_0x1c34ab(0x20e),this[_0x1c34ab(0x18b)][_0x1c34ab(0x1a4)](this)),ami['on'](_0x1c34ab(0x180),this[_0x1c34ab(0x1a9)][_0x1c34ab(0x1a4)](this)),ami['on'](_0x1c34ab(0x209),this['syncNewCallerId']['bind'](this)),ami['on'](_0x1c34ab(0x1fa),this[_0x1c34ab(0x1f2)][_0x1c34ab(0x1a4)](this)),ami['on'](_0x1c34ab(0x19c),this['syncBlindTransfer']['bind'](this)),ami['on'](_0x1c34ab(0x19f),this['syncMusicOnHoldStart']['bind'](this)),ami['on']('musiconholdstop',this[_0x1c34ab(0x1e0)]['bind'](this)),Promise[_0x1c34ab(0x1fc)]()[_0x1c34ab(0x17f)](ami[_0x1c34ab(0x18c)]())[_0x1c34ab(0x202)](function(_0x49f679){console['log'](_0x49f679);});}VoiceCallReport[a1260_0x53f2e8(0x199)][a1260_0x53f2e8(0x1e4)]=function(_0x426d77){const _0xa048e2=a1260_0x53f2e8;return _0x426d77!==null&&!_[_0xa048e2(0x18f)](_0x426d77);},VoiceCallReport[a1260_0x53f2e8(0x199)][a1260_0x53f2e8(0x1c5)]=function(_0x42aa86,_0x1a396e,_0x4f0e72){io['to'](_0x42aa86)['emit'](_0x1a396e,_0x4f0e72);},VoiceCallReport[a1260_0x53f2e8(0x199)][a1260_0x53f2e8(0x213)]=function(_0x430db4){const _0x57c3a8=a1260_0x53f2e8;try{this[_0x57c3a8(0x1e4)](_0x430db4)&&(_0x430db4[_0x57c3a8(0x189)]===_0x430db4[_0x57c3a8(0x1b0)]&&(!_[_0x57c3a8(0x18f)](this[_0x57c3a8(0x1c8)][_0x430db4[_0x57c3a8(0x189)]])&&_[_0x57c3a8(0x1cc)](this[_0x57c3a8(0x1c8)][_0x430db4[_0x57c3a8(0x189)]],_[_0x57c3a8(0x1a8)](_0x430db4,_[_0x57c3a8(0x1a1)](this[_0x57c3a8(0x1c8)][_0x430db4[_0x57c3a8(0x189)]])))));}catch(_0x45fe60){logger['error'](_0x57c3a8(0x1bc),util[_0x57c3a8(0x1a5)](_0x45fe60,{'showHidden':![],'depth':null}));}},VoiceCallReport[a1260_0x53f2e8(0x199)][a1260_0x53f2e8(0x1bf)]=function(_0xb1e5cc){const _0x23ebf2=a1260_0x53f2e8;try{this[_0x23ebf2(0x1e4)](_0xb1e5cc)&&(_0xb1e5cc[_0x23ebf2(0x189)]===_0xb1e5cc['linkedid']&&_0xb1e5cc[_0x23ebf2(0x1f5)]!=_0x23ebf2(0x183)&&(_[_0x23ebf2(0x18f)](this[_0x23ebf2(0x1c8)][_0xb1e5cc[_0x23ebf2(0x189)]])&&(this[_0x23ebf2(0x1c8)][_0xb1e5cc['uniqueid']]=new Channel(),this[_0x23ebf2(0x1c8)][_0xb1e5cc['uniqueid']][_0x23ebf2(0x1fb)]=moment()[_0x23ebf2(0x1a3)](_0x23ebf2(0x1de)),this['channels'][_0xb1e5cc['uniqueid']][_0x23ebf2(0x1c9)]=dispositions[_['toNumber'](_0xb1e5cc['channelstate'])],_['merge'](this[_0x23ebf2(0x1c8)][_0xb1e5cc['uniqueid']],_['pick'](_0xb1e5cc,_[_0x23ebf2(0x1a1)](this['channels'][_0xb1e5cc[_0x23ebf2(0x189)]]))),_0xb1e5cc[_0x23ebf2(0x1ff)]===_0x23ebf2(0x193)&&(this[_0x23ebf2(0x1ac)][_0xb1e5cc[_0x23ebf2(0x1f5)]['split']('-')[0x0]]&&(this[_0x23ebf2(0x1ac)][_0xb1e5cc[_0x23ebf2(0x1f5)][_0x23ebf2(0x1ad)]('-')[0x0]]['destconnectedlinenum']=_0xb1e5cc[_0x23ebf2(0x1b6)],this[_0x23ebf2(0x1c5)](util['format'](_0x23ebf2(0x1ed),this['agents'][_0xb1e5cc['channel'][_0x23ebf2(0x1ad)]('-')[0x0]]['name']),_0x23ebf2(0x1d9),{'destaccountcode':this[_0x23ebf2(0x1ac)][_0xb1e5cc[_0x23ebf2(0x1f5)][_0x23ebf2(0x1ad)]('-')[0x0]]['accountcode'],'destconnectedlinenum':_0xb1e5cc[_0x23ebf2(0x1b6)]}))))));}catch(_0xb19cff){logger[_0x23ebf2(0x18a)](_0x23ebf2(0x1d1),util[_0x23ebf2(0x1a5)](_0xb19cff,{'showHidden':![],'depth':null}));}},VoiceCallReport[a1260_0x53f2e8(0x199)][a1260_0x53f2e8(0x19a)]=function(_0x2aadd6){const _0x536b8b=a1260_0x53f2e8;try{if(this['isNotNull'](_0x2aadd6)){if(_0x2aadd6[_0x536b8b(0x189)]===_0x2aadd6[_0x536b8b(0x1b0)]&&_0x2aadd6[_0x536b8b(0x1b6)]!='h'&&_0x2aadd6[_0x536b8b(0x1f5)]!=_0x536b8b(0x183)){_0x2aadd6[_0x536b8b(0x20b)]=_0x2aadd6[_0x536b8b(0x20b)]['toLowerCase'](),_0x2aadd6[_0x536b8b(0x1c3)]=(_0x2aadd6[_0x536b8b(0x1e3)]||_0x2aadd6['applicationdata'])[_0x536b8b(0x1df)]();_[_0x536b8b(0x18f)](this[_0x536b8b(0x1c8)][_0x2aadd6[_0x536b8b(0x189)]])&&(this[_0x536b8b(0x1c8)][_0x2aadd6[_0x536b8b(0x189)]]=new Channel(),this['channels'][_0x2aadd6[_0x536b8b(0x189)]]['starttime']=_0x2aadd6[_0x536b8b(0x1ca)]?moment()[_0x536b8b(0x191)](moment[_0x536b8b(0x1ca)](_0x2aadd6[_0x536b8b(0x1ca)])[_0x536b8b(0x182)](),_0x536b8b(0x182))[_0x536b8b(0x1a3)](_0x536b8b(0x1de)):moment()[_0x536b8b(0x1a3)](_0x536b8b(0x1de)),this[_0x536b8b(0x1c8)][_0x2aadd6[_0x536b8b(0x189)]][_0x536b8b(0x1c9)]=_0x536b8b(0x190));_['merge'](this[_0x536b8b(0x1c8)][_0x2aadd6[_0x536b8b(0x189)]],_[_0x536b8b(0x1a8)](_0x2aadd6,_[_0x536b8b(0x1a1)](this[_0x536b8b(0x1c8)][_0x2aadd6[_0x536b8b(0x189)]])));if(_['includes'](applications,_0x2aadd6[_0x536b8b(0x20b)])){this[_0x536b8b(0x1c8)][_0x2aadd6[_0x536b8b(0x189)]]['lastapplication']=_0x2aadd6[_0x536b8b(0x20b)],this[_0x536b8b(0x1c8)][_0x2aadd6[_0x536b8b(0x189)]][_0x536b8b(0x181)]=_0x2aadd6[_0x536b8b(0x1c3)];if(_0x2aadd6['application']==='set'&&_[_0x536b8b(0x1c6)](_0x2aadd6[_0x536b8b(0x1c3)],_0x536b8b(0x185))){const _0x580c11=_0x2aadd6[_0x536b8b(0x1c3)][_0x536b8b(0x1ad)]('='),_0x2fa278=_0x580c11[0x0][_0x536b8b(0x1bd)](/cdr\((.*)\)/);_0x2fa278&&(this[_0x536b8b(0x1c8)][_0x2aadd6['uniqueid']][_0x2fa278[0x1]]=_0x580c11[0x1]);}else _0x2aadd6['application']==='queue'&&(this[_0x536b8b(0x1c8)][_0x2aadd6[_0x536b8b(0x189)]]['queue']=_0x2aadd6[_0x536b8b(0x1c3)][_0x536b8b(0x1ad)](',')[0x0]);}}}}catch(_0x15c094){logger[_0x536b8b(0x18a)]('[syncNewExten][VoiceCallReport]',util['inspect'](_0x15c094,{'showHidden':![],'depth':null}));}},VoiceCallReport[a1260_0x53f2e8(0x199)][a1260_0x53f2e8(0x1e8)]=function(_0x952890){const _0x193893=a1260_0x53f2e8;try{if(this['isNotNull'](_0x952890)){if(_0x952890['uniqueid']!==_0x952890[_0x193893(0x1b0)]){if(this[_0x193893(0x1c8)][_0x952890[_0x193893(0x1b0)]]){if(_0x952890[_0x193893(0x1b5)]==='6'){if(!this[_0x193893(0x1c8)][_0x952890[_0x193893(0x1b0)]][_0x193893(0x1d8)]){const _0x1fe8a4=moment();this['channels'][_0x952890['linkedid']][_0x193893(0x1d8)]=!![],this['channels'][_0x952890['linkedid']][_0x193893(0x1a6)]=_0x1fe8a4[_0x193893(0x1a3)]('YYYY-MM-DD\x20HH:mm:ss'),this['channels'][_0x952890[_0x193893(0x1b0)]][_0x193893(0x1fb)]&&(this['channels'][_0x952890['linkedid']][_0x193893(0x206)]=_0x1fe8a4[_0x193893(0x1b4)](this[_0x193893(0x1c8)][_0x952890[_0x193893(0x1b0)]][_0x193893(0x1fb)],_0x193893(0x182)));}this[_0x193893(0x1c8)][_0x952890[_0x193893(0x1b0)]][_0x193893(0x1b0)]=_0x952890[_0x193893(0x189)],_0x952890[_0x193893(0x19d)]!==_0x193893(0x1dc)&&(this[_0x193893(0x1c8)][_0x952890[_0x193893(0x1b0)]]['connectedlinenum']=_0x952890[_0x193893(0x19d)]),this[_0x193893(0x1c8)][_0x952890[_0x193893(0x1b0)]][_0x193893(0x1f7)]=_0x952890[_0x193893(0x1e7)],this[_0x193893(0x1c8)][_0x952890[_0x193893(0x1b0)]]['destinationchannel']=_0x952890['channel'],this[_0x193893(0x1c8)][_0x952890[_0x193893(0x1b0)]][_0x193893(0x1c9)]=dispositions[_[_0x193893(0x210)](_0x952890[_0x193893(0x1b5)])],this[_0x193893(0x1ac)][_0x952890[_0x193893(0x1f5)][_0x193893(0x1ad)]('-')[0x0]]&&(this['channels'][_0x952890[_0x193893(0x1b0)]][_0x193893(0x1da)]=this[_0x193893(0x1ac)][_0x952890['channel'][_0x193893(0x1ad)]('-')[0x0]]['id'],this['channels'][_0x952890[_0x193893(0x1b0)]][_0x193893(0x1ee)]=this[_0x193893(0x1ac)][_0x952890['channel'][_0x193893(0x1ad)]('-')[0x0]][_0x193893(0x1d0)]);}}}else this[_0x193893(0x1c8)][_0x952890['uniqueid']]&&(_0x952890[_0x193893(0x1b5)]==='6'&&(this[_0x193893(0x1ac)][_0x952890[_0x193893(0x1f5)][_0x193893(0x1ad)]('-')[0x0]]&&(this[_0x193893(0x1c8)][_0x952890[_0x193893(0x189)]][_0x193893(0x1da)]=this[_0x193893(0x1ac)][_0x952890[_0x193893(0x1f5)]['split']('-')[0x0]]['id'],this[_0x193893(0x1c8)][_0x952890[_0x193893(0x189)]][_0x193893(0x1ee)]=this[_0x193893(0x1ac)][_0x952890[_0x193893(0x1f5)][_0x193893(0x1ad)]('-')[0x0]][_0x193893(0x1d0)])));}}catch(_0x2d3d22){logger[_0x193893(0x18a)]('[syncNewState][VoiceCallReport]',util['inspect'](_0x2d3d22,{'showHidden':![],'depth':null}));}},VoiceCallReport[a1260_0x53f2e8(0x199)][a1260_0x53f2e8(0x1d6)]=function(_0x5f01ec,_0x6b0a20){const _0x5054c9=a1260_0x53f2e8;if(this[_0x5054c9(0x1c8)][_0x5f01ec]){this[_0x5054c9(0x1c8)][_0x5f01ec][_0x5054c9(0x1ba)]=!![];_['endsWith'](_0x6b0a20,_0x5054c9(0x1d3))&&(_0x6b0a20=_0x6b0a20[_0x5054c9(0x1a2)](_0x5054c9(0x1d3),_0x5054c9(0x1b2)));this['channels'][_0x5f01ec][_0x5054c9(0x1cd)]=_0x6b0a20;const _0x2e685d=_[_0x5054c9(0x19e)](this[_0x5054c9(0x1c8)][_0x5f01ec][_0x5054c9(0x18d)],{'filename':_0x6b0a20});_['isNil'](_0x2e685d)&&this['channels'][_0x5f01ec][_0x5054c9(0x18d)][_0x5054c9(0x1f4)]({'filename':_0x6b0a20,'createdAt':moment()[_0x5054c9(0x1a3)](_0x5054c9(0x1de)),'mixmonitorid':'','status':'rec'});}},VoiceCallReport['prototype']['syncVarSet']=function(_0x366b1a){const _0x2937ec=a1260_0x53f2e8;try{if(this['isNotNull'](_0x366b1a)){if(this[_0x2937ec(0x1c8)][_0x366b1a[_0x2937ec(0x189)]]&&_0x366b1a[_0x2937ec(0x1f5)]!='OutgoingSpoolFailed'){if(this[_0x2937ec(0x1e4)](_0x366b1a[_0x2937ec(0x201)])){if(this[_0x2937ec(0x1e4)](_0x366b1a[_0x2937ec(0x201)][_0x2937ec(0x20d)]))this[_0x2937ec(0x1d6)](_0x366b1a[_0x2937ec(0x189)],_0x366b1a[_0x2937ec(0x214)]);else{if(this['isNotNull'](_0x366b1a[_0x2937ec(0x201)][_0x2937ec(0x1f6)]))this[_0x2937ec(0x1c8)][_0x366b1a['uniqueid']][_0x2937ec(0x19d)]=_0x366b1a[_0x2937ec(0x214)];else{if(this['isNotNull'](_0x366b1a[_0x2937ec(0x201)][_0x2937ec(0x1db)]))this[_0x2937ec(0x1c8)][_0x366b1a['uniqueid']][_0x2937ec(0x1f3)]=_0x366b1a[_0x2937ec(0x214)];else{if(this[_0x2937ec(0x1e4)](_0x366b1a[_0x2937ec(0x201)][_0x2937ec(0x1b3)]))this['channels'][_0x366b1a[_0x2937ec(0x189)]]['type']=_0x366b1a[_0x2937ec(0x214)];else{if(this[_0x2937ec(0x1e4)](_0x366b1a[_0x2937ec(0x201)][_0x2937ec(0x184)]))this[_0x2937ec(0x1c8)][_0x366b1a[_0x2937ec(0x189)]]['queue']=_0x366b1a[_0x2937ec(0x214)][_0x2937ec(0x1ad)](',')[0x0];else{if(this['isNotNull'](_0x366b1a[_0x2937ec(0x201)][_0x2937ec(0x1be)]))this[_0x2937ec(0x1c8)][_0x366b1a[_0x2937ec(0x189)]][_0x2937ec(0x1ae)]=_0x366b1a['value'];else{if(this['isNotNull'](_0x366b1a[_0x2937ec(0x201)][_0x2937ec(0x1b1)]))this[_0x2937ec(0x1c8)][_0x366b1a[_0x2937ec(0x189)]]['destination']=_0x366b1a['value'];else{if(this[_0x2937ec(0x1e4)](_0x366b1a['variable'][_0x2937ec(0x18e)]))this[_0x2937ec(0x1c8)][_0x366b1a['uniqueid']][_0x2937ec(0x203)]=_0x366b1a[_0x2937ec(0x214)];else{if(this['isNotNull'](_0x366b1a[_0x2937ec(0x201)][_0x2937ec(0x194)]))this[_0x2937ec(0x1c8)][_0x366b1a['uniqueid']][_0x2937ec(0x1bb)]=_0x366b1a['value'];else this[_0x2937ec(0x1e4)](_0x366b1a[_0x2937ec(0x201)][_0x2937ec(0x1b8)])&&(this['channels'][_0x366b1a[_0x2937ec(0x189)]][_0x2937ec(0x1eb)]=_0x366b1a[_0x2937ec(0x214)]);}}}}}}}}}}else{if(this[_0x2937ec(0x1e4)](_0x366b1a[_0x2937ec(0x201)][_0x2937ec(0x20d)])){if(_0x366b1a[_0x2937ec(0x214)]){const _0x3442ed=path[_0x2937ec(0x1c4)](_0x366b1a['value'])[_0x2937ec(0x1d0)];this[_0x2937ec(0x1d6)](_0x3442ed,_0x366b1a[_0x2937ec(0x214)]);}}else this[_0x2937ec(0x1c8)][_0x366b1a['linkedid']]&&(this[_0x2937ec(0x1e4)](_0x366b1a[_0x2937ec(0x201)])&&(this[_0x2937ec(0x1e4)](_0x366b1a[_0x2937ec(0x201)][_0x2937ec(0x1b8)])&&(this['channels'][_0x366b1a[_0x2937ec(0x1b0)]][_0x2937ec(0x1fe)]=_0x366b1a['value'])));}}}catch(_0x23a034){logger['error']('[syncVarSet][VoiceCallReport]',util[_0x2937ec(0x1a5)](_0x23a034,{'showHidden':![],'depth':null}));}},VoiceCallReport[a1260_0x53f2e8(0x199)][a1260_0x53f2e8(0x1a9)]=function(_0x199354){const _0x4d2d87=a1260_0x53f2e8;try{if(this[_0x4d2d87(0x1e4)](_0x199354)){if(this[_0x4d2d87(0x1c8)][_0x199354[_0x4d2d87(0x189)]]){const _0x310023=moment();this[_0x4d2d87(0x1c8)][_0x199354[_0x4d2d87(0x189)]][_0x4d2d87(0x1e5)]=_0x310023[_0x4d2d87(0x1a3)]('YYYY-MM-DD\x20HH:mm:ss'),this[_0x4d2d87(0x1c8)][_0x199354[_0x4d2d87(0x189)]]['duration']=_0x310023['diff'](this[_0x4d2d87(0x1c8)][_0x199354[_0x4d2d87(0x189)]][_0x4d2d87(0x1fb)],_0x4d2d87(0x182)),this[_0x4d2d87(0x1c8)][_0x199354[_0x4d2d87(0x189)]][_0x4d2d87(0x1d8)]&&(this[_0x4d2d87(0x1c8)][_0x199354[_0x4d2d87(0x189)]][_0x4d2d87(0x1b9)]=_0x310023[_0x4d2d87(0x1b4)](this[_0x4d2d87(0x1c8)][_0x199354[_0x4d2d87(0x189)]]['answertime'],_0x4d2d87(0x182)),this[_0x4d2d87(0x1c8)][_0x199354[_0x4d2d87(0x189)]][_0x4d2d87(0x206)]=this['channels'][_0x199354[_0x4d2d87(0x189)]]['duration']-this[_0x4d2d87(0x1c8)][_0x199354['uniqueid']]['billableseconds']),_0x199354[_0x4d2d87(0x1ff)]==='from-sip'&&(this['agents'][_0x199354['channel'][_0x4d2d87(0x1ad)]('-')[0x0]]&&(this[_0x4d2d87(0x1ac)][_0x199354[_0x4d2d87(0x1f5)][_0x4d2d87(0x1ad)]('-')[0x0]]=_[_0x4d2d87(0x1f8)](this[_0x4d2d87(0x1ac)][_0x199354[_0x4d2d87(0x1f5)][_0x4d2d87(0x1ad)]('-')[0x0]],[_0x4d2d87(0x1ef)]),this['emit'](util['format'](_0x4d2d87(0x1ed),this[_0x4d2d87(0x1ac)][_0x199354[_0x4d2d87(0x1f5)][_0x4d2d87(0x1ad)]('-')[0x0]][_0x4d2d87(0x1d0)]),_0x4d2d87(0x200),{'destaccountcode':this[_0x4d2d87(0x1ac)][_0x199354[_0x4d2d87(0x1f5)][_0x4d2d87(0x1ad)]('-')[0x0]]['accountcode']}))),_0x199354[_0x4d2d87(0x1ce)]===_0x4d2d87(0x20a)?this[_0x4d2d87(0x1d2)][_0x199354[_0x4d2d87(0x189)]]=this['channels'][_0x199354['uniqueid']]:this[_0x4d2d87(0x1c8)][_0x199354['uniqueid']][_0x4d2d87(0x204)]===_0x4d2d87(0x1fd)&&this[_0x4d2d87(0x1d2)][_0x199354[_0x4d2d87(0x189)]]&&(this[_0x4d2d87(0x1c8)][_0x199354[_0x4d2d87(0x189)]][_0x4d2d87(0x189)]=[this[_0x4d2d87(0x1c8)][_0x199354[_0x4d2d87(0x189)]][_0x4d2d87(0x1b0)],this[_0x4d2d87(0x1c8)][_0x199354[_0x4d2d87(0x189)]][_0x4d2d87(0x1b0)]=this['channels'][_0x199354[_0x4d2d87(0x189)]][_0x4d2d87(0x189)]][0x0],delete this['blindTransfers'][_0x199354[_0x4d2d87(0x189)]]),ami['emit']('custom:voiceCallReport',this[_0x4d2d87(0x1c8)][_0x199354['uniqueid']]),delete this['channels'][_0x199354[_0x4d2d87(0x189)]];}}}catch(_0x36dc5d){logger[_0x4d2d87(0x18a)](_0x4d2d87(0x1af),util[_0x4d2d87(0x1a5)](_0x36dc5d,{'showHidden':![],'depth':null}));}},VoiceCallReport[a1260_0x53f2e8(0x199)][a1260_0x53f2e8(0x1f2)]=function(_0x31e1cc){const _0x47d98f=a1260_0x53f2e8;try{if(this[_0x47d98f(0x1e4)](_0x31e1cc)){if(this[_0x47d98f(0x1c8)][_0x31e1cc[_0x47d98f(0x1cf)]]){this[_0x47d98f(0x1c8)][_0x31e1cc[_0x47d98f(0x1cf)]]['transfercalleridnum']=_0x31e1cc[_0x47d98f(0x1dd)],this[_0x47d98f(0x1c8)][_0x31e1cc['transfereeuniqueid']]['transferconnectedlinenum']=_0x31e1cc[_0x47d98f(0x20f)];if(this[_0x47d98f(0x1c8)][_0x31e1cc[_0x47d98f(0x1ab)]]){const _0x534d83=this[_0x47d98f(0x1c8)][_0x31e1cc['secondtransfereruniqueid']];this[_0x47d98f(0x1c8)][_0x31e1cc[_0x47d98f(0x1ab)]]=this[_0x47d98f(0x1c8)][_0x31e1cc[_0x47d98f(0x1cf)]],this['channels'][_0x31e1cc[_0x47d98f(0x1cf)]]=_0x534d83;}}else{if(this[_0x47d98f(0x1c8)][_0x31e1cc[_0x47d98f(0x208)]]){this[_0x47d98f(0x1c8)][_0x31e1cc['transfertargetuniqueid']]['transfercalleridnum']=_0x31e1cc[_0x47d98f(0x1dd)],this[_0x47d98f(0x1c8)][_0x31e1cc[_0x47d98f(0x208)]]['transferconnectedlinenum']=_0x31e1cc[_0x47d98f(0x20f)];if(this[_0x47d98f(0x1c8)][_0x31e1cc['origtransfereruniqueid']]){const _0x131af4=this[_0x47d98f(0x1c8)][_0x31e1cc[_0x47d98f(0x1e9)]];this['channels'][_0x31e1cc['origtransfereruniqueid']]=this[_0x47d98f(0x1c8)][_0x31e1cc[_0x47d98f(0x208)]],this[_0x47d98f(0x1c8)][_0x31e1cc['transfertargetuniqueid']]=_0x131af4;}}}}}catch(_0x1425d6){logger[_0x47d98f(0x18a)](_0x47d98f(0x1a7),util[_0x47d98f(0x1a5)](_0x1425d6,{'showHidden':![],'depth':null}));}},VoiceCallReport['prototype'][a1260_0x53f2e8(0x1c7)]=function(_0x142768){const _0x537b87=a1260_0x53f2e8;try{this[_0x537b87(0x1e4)](_0x142768)&&(this[_0x537b87(0x1c8)][_0x142768[_0x537b87(0x1cf)]]&&(this['channels'][_0x142768[_0x537b87(0x1cf)]][_0x537b87(0x195)]=_0x142768[_0x537b87(0x1d5)],this['channels'][_0x142768[_0x537b87(0x1cf)]][_0x537b87(0x1e6)]=_0x142768[_0x537b87(0x1c0)],this[_0x537b87(0x1a9)]({'event':_0x537b87(0x20a),'uniqueid':_0x142768[_0x537b87(0x1cf)],'context':_0x142768[_0x537b87(0x1ff)],'channel':_0x142768['transfererchannel']})));}catch(_0x5a46f8){logger[_0x537b87(0x18a)](_0x537b87(0x211),util['inspect'](_0x5a46f8,{'showHidden':![],'depth':null}));}},VoiceCallReport[a1260_0x53f2e8(0x199)][a1260_0x53f2e8(0x197)]=function(_0x2722d6){const _0x23dd44=a1260_0x53f2e8;try{this['isNotNull'](_0x2722d6)&&(this['channels'][_0x2722d6[_0x23dd44(0x189)]]&&(!_[_0x23dd44(0x1f0)](this[_0x23dd44(0x1c8)][_0x2722d6[_0x23dd44(0x189)]][_0x23dd44(0x1a6)])&&(this[_0x23dd44(0x1c8)][_0x2722d6['uniqueid']][_0x23dd44(0x1cb)]=moment()[_0x23dd44(0x1a3)](_0x23dd44(0x1de)))));}catch(_0x148f0f){logger['error'](_0x23dd44(0x186),util['inspect'](_0x148f0f,{'showHidden':![],'depth':null}));}},VoiceCallReport[a1260_0x53f2e8(0x199)]['syncMusicOnHoldStop']=function(_0x1262bf){const _0x1e4518=a1260_0x53f2e8;try{this['isNotNull'](_0x1262bf)&&(this['channels'][_0x1262bf[_0x1e4518(0x189)]]&&(!_[_0x1e4518(0x1f0)](this[_0x1e4518(0x1c8)][_0x1262bf[_0x1e4518(0x189)]][_0x1e4518(0x1cb)])&&(this[_0x1e4518(0x1c8)][_0x1262bf[_0x1e4518(0x189)]]['mohtime']+=moment()[_0x1e4518(0x1a0)](0x0)[_0x1e4518(0x1b4)](this[_0x1e4518(0x1c8)][_0x1262bf['uniqueid']][_0x1e4518(0x1cb)],_0x1e4518(0x182)),delete this['channels'][_0x1262bf[_0x1e4518(0x189)]][_0x1e4518(0x1cb)])));}catch(_0x39ad38){logger['error']('[syncMusicOnHoldStop][VoiceCallReport]',util[_0x1e4518(0x1a5)](_0x39ad38,{'showHidden':![],'depth':null}));}},module[a1260_0x53f2e8(0x1f1)]=VoiceCallReport; \ No newline at end of file diff --git a/server/services/ami/report/voiceDialReport.js b/server/services/ami/report/voiceDialReport.js index 7a8e838..d885517 100644 --- a/server/services/ami/report/voiceDialReport.js +++ b/server/services/ami/report/voiceDialReport.js @@ -1 +1 @@ -const a1097_0x5c27=['emit','syncHangup','outboundChannels','voice_outbound:save','sumDuration','../ami','uniqueid','dialstatus','isUndefined','ami','starttime','varset','connectedlinename','syncDialBegin','[syncDialBegin][VoiceDialReport]','isNotNull','addVariable','connectedlinenum','stringify','connect','custom:dialconnect','variables','diff','duration','billableseconds','memberrealtime','called','info','syncVarSet','bind','rtpaudioqosbridged','event','exports','rtpaudioqosrtt','prototype','inspect','value','rtpaudioqosloss','membername','variable','isNil','keys','../../../rediscache','endtime','moment','linkedid','channel','outbound','syncDialEnd','error','memberpenalty','[syncHangup][VoiceDialReport]','rtpaudioqos','lastevent','custom:dialend','outboundrouteid','util','merge','memberdynamic','format','voice_outbound_channel:save','voice:outbound','dialend','channels','../../../config/logger','rtpaudioqosjitter','bridgepvtcallid','rtpaudioqosjitterbridged','ANSWER','total','answertime','[syncVarSet][VoiceDialReport]','complete','holdtime','lodash','lastIndexOf','includes'];(function(_0x440a19,_0x5c27b3){const _0x2d95d6=function(_0x212c55){while(--_0x212c55){_0x440a19['push'](_0x440a19['shift']());}};_0x2d95d6(++_0x5c27b3);}(a1097_0x5c27,0x6e));const a1097_0x2d95=function(_0x440a19,_0x5c27b3){_0x440a19=_0x440a19-0x0;let _0x2d95d6=a1097_0x5c27[_0x440a19];return _0x2d95d6;};const _0x4c001a=a1097_0x2d95;'use strict';const _=require(_0x4c001a('0x29')),moment=require(_0x4c001a('0xb')),util=require(_0x4c001a('0x17')),logger=require(_0x4c001a('0x1f'))(_0x4c001a('0x35')),ami=require(_0x4c001a('0x31')),{getSocket}=require(_0x4c001a('0x9')),io=getSocket();function VoiceDialReport(_0x212c55){const _0x5272de=_0x4c001a;this[_0x5272de('0x1e')]=_0x212c55[_0x5272de('0x2e')],this[_0x5272de('0xe')]=_0x212c55[_0x5272de('0xe')],this['variables']={},ami['on']('dialbegin',this[_0x5272de('0x39')][_0x5272de('0x49')](this)),ami['on'](_0x5272de('0x1d'),this[_0x5272de('0xf')][_0x5272de('0x49')](this)),ami['on'](_0x5272de('0x37'),this[_0x5272de('0x48')][_0x5272de('0x49')](this)),ami['on']('hangup',this[_0x5272de('0x2d')][_0x5272de('0x49')](this));}VoiceDialReport[_0x4c001a('0x1')]['isNotNull']=function(_0x462f9e){const _0x58fff6=_0x4c001a;return _0x462f9e!==null&&!_[_0x58fff6('0x34')](_0x462f9e);},VoiceDialReport[_0x4c001a('0x1')]['emit']=function(_0x28d0f2,_0x55b899,_0x50d6f3){const _0xd193a8=_0x4c001a;io['to'](_0x28d0f2)[_0xd193a8('0x2c')](_0x55b899,_0x50d6f3);},VoiceDialReport[_0x4c001a('0x1')][_0x4c001a('0x39')]=function(_0x5c0995){const _0x42c563=_0x4c001a;try{this[_0x42c563('0x3b')](_0x5c0995)&&(this[_0x42c563('0x1e')][_0x5c0995[_0x42c563('0x32')]]&&(_[_0x42c563('0x18')](this['channels'][_0x5c0995['uniqueid']],{'starttime':moment()[_0x42c563('0x1a')]('YYYY-MM-DD\x20HH:mm:ss'),'lastevent':_0x42c563('0x46'),'interface':_0x5c0995[_0x42c563('0xd')]['substring'](0x0,_0x5c0995[_0x42c563('0xd')][_0x42c563('0x2a')]('-')),'membername':_0x5c0995[_0x42c563('0xd')]['substring'](_0x5c0995[_0x42c563('0xd')][_0x42c563('0x2a')]('/')+0x1,_0x5c0995['channel']['lastIndexOf']('-'))},_['omit'](_0x5c0995,[_0x42c563('0x4b'),'privilege'])),this[_0x42c563('0x2c')]('voice:outbound',_0x42c563('0x1b'),this[_0x42c563('0x1e')][_0x5c0995[_0x42c563('0x32')]]),ami[_0x42c563('0x2c')]('custom:dialbegin',this[_0x42c563('0x1e')][_0x5c0995[_0x42c563('0x32')]])));}catch(_0x41be74){logger[_0x42c563('0x10')](_0x42c563('0x3a'),util['inspect'](_0x41be74,{'showHidden':![],'depth':null}));}},VoiceDialReport[_0x4c001a('0x1')][_0x4c001a('0xf')]=function(_0x1ab975){const _0x49e743=_0x4c001a;try{this['isNotNull'](_0x1ab975)&&(this['channels'][_0x1ab975['uniqueid']]&&(this['channels'][_0x1ab975['uniqueid']]['dialstatus']=_0x1ab975[_0x49e743('0x33')],_0x1ab975['dialstatus']===_0x49e743('0x23')&&(this[_0x49e743('0x1e')][_0x1ab975[_0x49e743('0x32')]][_0x49e743('0x3d')]=_0x1ab975[_0x49e743('0x3d')],this[_0x49e743('0x1e')][_0x1ab975[_0x49e743('0x32')]][_0x49e743('0x38')]=_0x1ab975[_0x49e743('0x38')],this['channels'][_0x1ab975['uniqueid']][_0x49e743('0x25')]=moment()['format']('YYYY-MM-DD\x20HH:mm:ss'),this[_0x49e743('0x1e')][_0x1ab975[_0x49e743('0x32')]][_0x49e743('0x14')]=_0x49e743('0x3f'),ami[_0x49e743('0x2c')](_0x49e743('0x40'),this['channels'][_0x1ab975['uniqueid']])),this[_0x49e743('0x2c')](_0x49e743('0x1c'),'voice_outbound_channel:save',this['channels'][_0x1ab975[_0x49e743('0x32')]])));}catch(_0x4c458e){logger['error']('[syncDialEnd][VoiceDialReport]',util['inspect'](_0x4c458e,{'showHidden':![],'depth':null}));}},VoiceDialReport[_0x4c001a('0x1')][_0x4c001a('0x48')]=function(_0x3227fa){const _0x3a1bff=_0x4c001a;try{this['isNotNull'](_0x3227fa)&&(this[_0x3a1bff('0x3c')](_0x3227fa[_0x3a1bff('0x32')],_[_0x3a1bff('0x8')](_0x3227fa[_0x3a1bff('0x6')])[0x0],_0x3227fa[_0x3a1bff('0x3')]),this['isNotNull'](_0x3227fa[_0x3a1bff('0x6')])&&this[_0x3a1bff('0x3b')](_0x3227fa[_0x3a1bff('0x6')][_0x3a1bff('0x16')])&&(_[_0x3a1bff('0x34')](this[_0x3a1bff('0x1e')][_0x3227fa[_0x3a1bff('0x32')]])&&(this[_0x3a1bff('0x1e')][_0x3227fa[_0x3a1bff('0x32')]]={'routeId':_0x3227fa[_0x3a1bff('0x3')],'variables':this[_0x3a1bff('0x41')][_0x3227fa[_0x3a1bff('0x32')]]},this[_0x3a1bff('0x2c')]('voice:outbound','voice_outbound_channel:save',this[_0x3a1bff('0x1e')][_0x3227fa[_0x3a1bff('0x32')]]))));}catch(_0x765f1e){logger[_0x3a1bff('0x10')](_0x3a1bff('0x26'),util[_0x3a1bff('0x2')](_0x765f1e,{'showHidden':![],'depth':null}));}},VoiceDialReport[_0x4c001a('0x1')][_0x4c001a('0x3c')]=function(_0x23dc4b,_0x52b60c,_0x42e1c3){const _0x1c2100=_0x4c001a,_0x3c45f6=[_0x1c2100('0x13'),_0x1c2100('0x4a'),_0x1c2100('0x20'),_0x1c2100('0x22'),_0x1c2100('0x4'),'rtpaudioqoslossbridged',_0x1c2100('0x0'),'rtpaudioqosrttbridged','sipcallid','sipuri','bridgepeer',_0x1c2100('0x21'),'membercalls',_0x1c2100('0x19'),'memberinterface','memberlastcall',_0x1c2100('0x5'),_0x1c2100('0x11'),_0x1c2100('0x45')];!_[_0x1c2100('0x7')](_0x52b60c)&&!_[_0x1c2100('0x2b')](_0x3c45f6,_0x52b60c)&&(_['isUndefined'](this[_0x1c2100('0x41')][_0x23dc4b])&&(this[_0x1c2100('0x41')][_0x23dc4b]={}),this[_0x1c2100('0x41')][_0x23dc4b][_0x52b60c]=_0x42e1c3);},VoiceDialReport[_0x4c001a('0x1')][_0x4c001a('0x2d')]=function(_0x11647e){const _0x35ce90=_0x4c001a;try{if(this[_0x35ce90('0x3b')](_0x11647e)){if(this['channels'][_0x11647e[_0x35ce90('0x32')]])this[_0x35ce90('0x1e')][_0x11647e[_0x35ce90('0x32')]]['endtime']=moment()['format']('YYYY-MM-DD\x20HH:mm:ss'),this[_0x35ce90('0x1e')][_0x11647e[_0x35ce90('0x32')]]['duration']=moment(this[_0x35ce90('0x1e')][_0x11647e['uniqueid']][_0x35ce90('0xa')])[_0x35ce90('0x42')](this[_0x35ce90('0x1e')][_0x11647e[_0x35ce90('0x32')]][_0x35ce90('0x36')],'seconds'),this[_0x35ce90('0x1e')][_0x11647e[_0x35ce90('0x32')]][_0x35ce90('0x14')]=_0x35ce90('0x27'),this['outbound'][_0x35ce90('0x24')]+=0x1,this[_0x35ce90('0x1e')][_0x11647e['uniqueid']]['answertime']&&(this[_0x35ce90('0xe')]['answered']+=0x1,this['channels'][_0x11647e[_0x35ce90('0x32')]][_0x35ce90('0x28')]=moment(this[_0x35ce90('0x1e')][_0x11647e[_0x35ce90('0x32')]][_0x35ce90('0x25')])[_0x35ce90('0x42')](this[_0x35ce90('0x1e')][_0x11647e[_0x35ce90('0x32')]][_0x35ce90('0x36')],'seconds'),this[_0x35ce90('0x1e')][_0x11647e[_0x35ce90('0x32')]]['billableseconds']=moment(this[_0x35ce90('0x1e')][_0x11647e['uniqueid']][_0x35ce90('0xa')])[_0x35ce90('0x42')](this['channels'][_0x11647e[_0x35ce90('0x32')]][_0x35ce90('0x25')],'seconds'),this['outbound']['sumHoldTime']+=this[_0x35ce90('0x1e')][_0x11647e[_0x35ce90('0x32')]]['holdtime']||0x0,this[_0x35ce90('0xe')]['sumBillable']+=this[_0x35ce90('0x1e')][_0x11647e['uniqueid']][_0x35ce90('0x44')]),this[_0x35ce90('0xe')][_0x35ce90('0x30')]+=this[_0x35ce90('0x1e')][_0x11647e[_0x35ce90('0x32')]][_0x35ce90('0x43')],ami['emit']('custom:voiceDialReport',this['channels'][_0x11647e[_0x35ce90('0x32')]]),ami[_0x35ce90('0x2c')](_0x35ce90('0x15'),this[_0x35ce90('0x1e')][_0x11647e[_0x35ce90('0x32')]]),this[_0x35ce90('0x2c')](_0x35ce90('0x1c'),_0x35ce90('0x2f'),this[_0x35ce90('0xe')]),logger[_0x35ce90('0x47')]('[DEBUG]\x20Emit\x20voice_outbound_channel:remove\x20event',JSON[_0x35ce90('0x3e')](this[_0x35ce90('0x1e')][_0x11647e[_0x35ce90('0x32')]])),this['emit'](_0x35ce90('0x1c'),'voice_outbound_channel:remove',this[_0x35ce90('0x1e')][_0x11647e[_0x35ce90('0x32')]]),delete this[_0x35ce90('0x1e')][_0x11647e['uniqueid']];else this[_0x35ce90('0x1e')][_0x11647e[_0x35ce90('0xc')]]&&(this['channels'][_0x11647e[_0x35ce90('0xc')]][_0x35ce90('0x32')]=this['channels'][_0x11647e[_0x35ce90('0xc')]]['destuniqueid']);this[_0x35ce90('0x41')][_0x11647e[_0x35ce90('0x32')]]&&delete this['variables'][_0x11647e[_0x35ce90('0x32')]];}}catch(_0x2920a6){logger['error'](_0x35ce90('0x12'),util[_0x35ce90('0x2')](_0x2920a6,{'showHidden':![],'depth':null}));}},module[_0x4c001a('0x4c')]=VoiceDialReport; \ No newline at end of file +const a1261_0x23a8=['outboundChannels','custom:dialend','syncDialEnd','diff','inspect','memberlastcall','event','membername','billableseconds','../../../rediscache','sumHoldTime','info','lodash','includes','emit','addVariable','rtpaudioqosrttbridged','hangup','variables','custom:voiceDialReport','util','privilege','answertime','isNil','sumBillable','dialbegin','dialstatus','connectedlinenum','destuniqueid','lastIndexOf','bridgepeer','ami','isNotNull','YYYY-MM-DD\x20HH:mm:ss','voice_outbound_channel:save','bridgepvtcallid','uniqueid','prototype','stringify','channel','answered','endtime','keys','memberpenalty','value','voice_outbound:save','error','isUndefined','membercalls','lastevent','memberinterface','outbound','[syncVarSet][VoiceDialReport]','omit','voice_outbound_channel:remove','rtpaudioqosrtt','bind','custom:dialbegin','substring','memberdynamic','rtpaudioqos','outboundrouteid','syncDialBegin','called','variable','merge','syncHangup','voice:outbound','dialend','ANSWER','rtpaudioqoslossbridged','varset','connectedlinename','moment','linkedid','memberrealtime','sumDuration','sipuri','format','../../../config/logger','channels','holdtime','starttime','connect','sipcallid'];(function(_0x46c650,_0x45d4fe){const _0x23a8c8=function(_0x2159ea){while(--_0x2159ea){_0x46c650['push'](_0x46c650['shift']());}};_0x23a8c8(++_0x45d4fe);}(a1261_0x23a8,0xb2));const a1261_0x2159=function(_0x46c650,_0x45d4fe){_0x46c650=_0x46c650-0x162;let _0x23a8c8=a1261_0x23a8[_0x46c650];return _0x23a8c8;};const a1261_0xea591e=a1261_0x2159;'use strict';const _=require(a1261_0xea591e(0x166)),moment=require(a1261_0xea591e(0x1a3)),util=require(a1261_0xea591e(0x16e)),logger=require(a1261_0xea591e(0x1a9))(a1261_0xea591e(0x179)),ami=require('../ami'),{getSocket}=require(a1261_0xea591e(0x163)),io=getSocket();function VoiceDialReport(_0xe63a5b){const _0x5cf72e=a1261_0xea591e;this[_0x5cf72e(0x1aa)]=_0xe63a5b[_0x5cf72e(0x1af)],this[_0x5cf72e(0x18d)]=_0xe63a5b[_0x5cf72e(0x18d)],this[_0x5cf72e(0x16c)]={},ami['on'](_0x5cf72e(0x173),this[_0x5cf72e(0x198)][_0x5cf72e(0x192)](this)),ami['on'](_0x5cf72e(0x19e),this[_0x5cf72e(0x1b1)][_0x5cf72e(0x192)](this)),ami['on'](_0x5cf72e(0x1a1),this['syncVarSet']['bind'](this)),ami['on'](_0x5cf72e(0x16b),this[_0x5cf72e(0x19c)]['bind'](this));}VoiceDialReport[a1261_0xea591e(0x17f)][a1261_0xea591e(0x17a)]=function(_0x2f574d){const _0x2b7128=a1261_0xea591e;return _0x2f574d!==null&&!_[_0x2b7128(0x189)](_0x2f574d);},VoiceDialReport[a1261_0xea591e(0x17f)][a1261_0xea591e(0x168)]=function(_0x52f45b,_0x20821c,_0x476d18){const _0x5c681f=a1261_0xea591e;io['to'](_0x52f45b)[_0x5c681f(0x168)](_0x20821c,_0x476d18);},VoiceDialReport['prototype']['syncDialBegin']=function(_0x435812){const _0x49e5bd=a1261_0xea591e;try{this[_0x49e5bd(0x17a)](_0x435812)&&(this[_0x49e5bd(0x1aa)][_0x435812['uniqueid']]&&(_[_0x49e5bd(0x19b)](this['channels'][_0x435812[_0x49e5bd(0x17e)]],{'starttime':moment()['format']('YYYY-MM-DD\x20HH:mm:ss'),'lastevent':_0x49e5bd(0x199),'interface':_0x435812[_0x49e5bd(0x181)][_0x49e5bd(0x194)](0x0,_0x435812[_0x49e5bd(0x181)][_0x49e5bd(0x177)]('-')),'membername':_0x435812[_0x49e5bd(0x181)][_0x49e5bd(0x194)](_0x435812[_0x49e5bd(0x181)][_0x49e5bd(0x177)]('/')+0x1,_0x435812['channel']['lastIndexOf']('-'))},_[_0x49e5bd(0x18f)](_0x435812,[_0x49e5bd(0x1b5),_0x49e5bd(0x16f)])),this[_0x49e5bd(0x168)](_0x49e5bd(0x19d),_0x49e5bd(0x17c),this['channels'][_0x435812[_0x49e5bd(0x17e)]]),ami['emit'](_0x49e5bd(0x193),this['channels'][_0x435812[_0x49e5bd(0x17e)]])));}catch(_0x4f84a4){logger[_0x49e5bd(0x188)]('[syncDialBegin][VoiceDialReport]',util[_0x49e5bd(0x1b3)](_0x4f84a4,{'showHidden':![],'depth':null}));}},VoiceDialReport['prototype'][a1261_0xea591e(0x1b1)]=function(_0x7dff69){const _0x375fe0=a1261_0xea591e;try{this[_0x375fe0(0x17a)](_0x7dff69)&&(this[_0x375fe0(0x1aa)][_0x7dff69[_0x375fe0(0x17e)]]&&(this[_0x375fe0(0x1aa)][_0x7dff69[_0x375fe0(0x17e)]][_0x375fe0(0x174)]=_0x7dff69['dialstatus'],_0x7dff69['dialstatus']===_0x375fe0(0x19f)&&(this['channels'][_0x7dff69[_0x375fe0(0x17e)]][_0x375fe0(0x175)]=_0x7dff69[_0x375fe0(0x175)],this[_0x375fe0(0x1aa)][_0x7dff69[_0x375fe0(0x17e)]]['connectedlinename']=_0x7dff69[_0x375fe0(0x1a2)],this[_0x375fe0(0x1aa)][_0x7dff69[_0x375fe0(0x17e)]][_0x375fe0(0x170)]=moment()['format']('YYYY-MM-DD\x20HH:mm:ss'),this[_0x375fe0(0x1aa)][_0x7dff69['uniqueid']]['lastevent']=_0x375fe0(0x1ad),ami['emit']('custom:dialconnect',this[_0x375fe0(0x1aa)][_0x7dff69['uniqueid']])),this[_0x375fe0(0x168)]('voice:outbound',_0x375fe0(0x17c),this['channels'][_0x7dff69[_0x375fe0(0x17e)]])));}catch(_0x4db3e4){logger[_0x375fe0(0x188)]('[syncDialEnd][VoiceDialReport]',util[_0x375fe0(0x1b3)](_0x4db3e4,{'showHidden':![],'depth':null}));}},VoiceDialReport['prototype']['syncVarSet']=function(_0x3b1c23){const _0x369ca3=a1261_0xea591e;try{this[_0x369ca3(0x17a)](_0x3b1c23)&&(this[_0x369ca3(0x169)](_0x3b1c23['uniqueid'],_[_0x369ca3(0x184)](_0x3b1c23['variable'])[0x0],_0x3b1c23[_0x369ca3(0x186)]),this[_0x369ca3(0x17a)](_0x3b1c23[_0x369ca3(0x19a)])&&this[_0x369ca3(0x17a)](_0x3b1c23[_0x369ca3(0x19a)][_0x369ca3(0x197)])&&(_['isUndefined'](this['channels'][_0x3b1c23['uniqueid']])&&(this[_0x369ca3(0x1aa)][_0x3b1c23['uniqueid']]={'routeId':_0x3b1c23[_0x369ca3(0x186)],'variables':this[_0x369ca3(0x16c)][_0x3b1c23[_0x369ca3(0x17e)]]},this['emit'](_0x369ca3(0x19d),'voice_outbound_channel:save',this[_0x369ca3(0x1aa)][_0x3b1c23[_0x369ca3(0x17e)]]))));}catch(_0x355150){logger[_0x369ca3(0x188)](_0x369ca3(0x18e),util['inspect'](_0x355150,{'showHidden':![],'depth':null}));}},VoiceDialReport[a1261_0xea591e(0x17f)][a1261_0xea591e(0x169)]=function(_0x34984c,_0x5cba1d,_0x219952){const _0x3d5220=a1261_0xea591e,_0x5b8d55=[_0x3d5220(0x196),'rtpaudioqosbridged','rtpaudioqosjitter','rtpaudioqosjitterbridged','rtpaudioqosloss',_0x3d5220(0x1a0),_0x3d5220(0x191),_0x3d5220(0x16a),_0x3d5220(0x1ae),_0x3d5220(0x1a7),_0x3d5220(0x178),_0x3d5220(0x17d),_0x3d5220(0x18a),_0x3d5220(0x195),_0x3d5220(0x18c),_0x3d5220(0x1b4),_0x3d5220(0x1b6),_0x3d5220(0x185),_0x3d5220(0x1a5)];!_[_0x3d5220(0x171)](_0x5cba1d)&&!_[_0x3d5220(0x167)](_0x5b8d55,_0x5cba1d)&&(_[_0x3d5220(0x189)](this[_0x3d5220(0x16c)][_0x34984c])&&(this[_0x3d5220(0x16c)][_0x34984c]={}),this[_0x3d5220(0x16c)][_0x34984c][_0x5cba1d]=_0x219952);},VoiceDialReport[a1261_0xea591e(0x17f)][a1261_0xea591e(0x19c)]=function(_0x2bdfd1){const _0x1a44c7=a1261_0xea591e;try{if(this[_0x1a44c7(0x17a)](_0x2bdfd1)){if(this['channels'][_0x2bdfd1[_0x1a44c7(0x17e)]])this[_0x1a44c7(0x1aa)][_0x2bdfd1['uniqueid']][_0x1a44c7(0x183)]=moment()[_0x1a44c7(0x1a8)](_0x1a44c7(0x17b)),this[_0x1a44c7(0x1aa)][_0x2bdfd1[_0x1a44c7(0x17e)]]['duration']=moment(this[_0x1a44c7(0x1aa)][_0x2bdfd1[_0x1a44c7(0x17e)]][_0x1a44c7(0x183)])[_0x1a44c7(0x1b2)](this[_0x1a44c7(0x1aa)][_0x2bdfd1[_0x1a44c7(0x17e)]][_0x1a44c7(0x1ac)],'seconds'),this[_0x1a44c7(0x1aa)][_0x2bdfd1[_0x1a44c7(0x17e)]][_0x1a44c7(0x18b)]='complete',this['outbound']['total']+=0x1,this['channels'][_0x2bdfd1[_0x1a44c7(0x17e)]]['answertime']&&(this[_0x1a44c7(0x18d)][_0x1a44c7(0x182)]+=0x1,this[_0x1a44c7(0x1aa)][_0x2bdfd1[_0x1a44c7(0x17e)]][_0x1a44c7(0x1ab)]=moment(this[_0x1a44c7(0x1aa)][_0x2bdfd1[_0x1a44c7(0x17e)]]['answertime'])[_0x1a44c7(0x1b2)](this[_0x1a44c7(0x1aa)][_0x2bdfd1[_0x1a44c7(0x17e)]][_0x1a44c7(0x1ac)],'seconds'),this[_0x1a44c7(0x1aa)][_0x2bdfd1[_0x1a44c7(0x17e)]][_0x1a44c7(0x162)]=moment(this[_0x1a44c7(0x1aa)][_0x2bdfd1['uniqueid']][_0x1a44c7(0x183)])[_0x1a44c7(0x1b2)](this[_0x1a44c7(0x1aa)][_0x2bdfd1['uniqueid']][_0x1a44c7(0x170)],'seconds'),this['outbound'][_0x1a44c7(0x164)]+=this[_0x1a44c7(0x1aa)][_0x2bdfd1[_0x1a44c7(0x17e)]][_0x1a44c7(0x1ab)]||0x0,this[_0x1a44c7(0x18d)][_0x1a44c7(0x172)]+=this[_0x1a44c7(0x1aa)][_0x2bdfd1[_0x1a44c7(0x17e)]][_0x1a44c7(0x162)]),this[_0x1a44c7(0x18d)][_0x1a44c7(0x1a6)]+=this[_0x1a44c7(0x1aa)][_0x2bdfd1[_0x1a44c7(0x17e)]]['duration'],ami[_0x1a44c7(0x168)](_0x1a44c7(0x16d),this[_0x1a44c7(0x1aa)][_0x2bdfd1[_0x1a44c7(0x17e)]]),ami['emit'](_0x1a44c7(0x1b0),this[_0x1a44c7(0x1aa)][_0x2bdfd1[_0x1a44c7(0x17e)]]),this[_0x1a44c7(0x168)](_0x1a44c7(0x19d),_0x1a44c7(0x187),this[_0x1a44c7(0x18d)]),logger[_0x1a44c7(0x165)]('[DEBUG]\x20Emit\x20voice_outbound_channel:remove\x20event',JSON[_0x1a44c7(0x180)](this[_0x1a44c7(0x1aa)][_0x2bdfd1[_0x1a44c7(0x17e)]])),this[_0x1a44c7(0x168)](_0x1a44c7(0x19d),_0x1a44c7(0x190),this['channels'][_0x2bdfd1[_0x1a44c7(0x17e)]]),delete this[_0x1a44c7(0x1aa)][_0x2bdfd1['uniqueid']];else this[_0x1a44c7(0x1aa)][_0x2bdfd1[_0x1a44c7(0x1a4)]]&&(this[_0x1a44c7(0x1aa)][_0x2bdfd1[_0x1a44c7(0x1a4)]][_0x1a44c7(0x17e)]=this[_0x1a44c7(0x1aa)][_0x2bdfd1[_0x1a44c7(0x1a4)]][_0x1a44c7(0x176)]);this['variables'][_0x2bdfd1[_0x1a44c7(0x17e)]]&&delete this[_0x1a44c7(0x16c)][_0x2bdfd1['uniqueid']];}}catch(_0x152542){logger[_0x1a44c7(0x188)]('[syncHangup][VoiceDialReport]',util[_0x1a44c7(0x1b3)](_0x152542,{'showHidden':![],'depth':null}));}},module['exports']=VoiceDialReport; \ No newline at end of file diff --git a/server/services/ami/report/voiceQueueReport.js b/server/services/ami/report/voiceQueueReport.js index edc0da5..f37f352 100644 --- a/server/services/ami/report/voiceQueueReport.js +++ b/server/services/ami/report/voiceQueueReport.js @@ -1 +1 @@ -const a1098_0x1ff1=['originalposition','rtpaudioqosrtt','stringify','name','campaigns','varset','syncQueueSummaryComplete','sumHoldTime','musiconholdstart','syncQueueCallerJoin','queue','[DEBUG]\x20Emit\x20voice_queue_channel:remove\x20event','queuecallerleaveAt','loggedIn','Action','status','transfererchannel','syncAgentComplete','syncNewExten','talking','isNil','flagQueueSummary','transferuniqueid','isEmpty','bridgepvtcallid','inbound','membername','blindtransfer','then','callerid','inspect','linkedid','diff','FORWARDTRANSFER','syncFullyBooted','queuecallerexit','position','variables','agentcomplete','attendedtransfer','COMPLETEDBYAGENT','syncMusicOnHoldStart','memberrealtime','unmanaged','queuecallercompleteAt','value','catch','loggedin','queuecallercomplete','keys','channels','syncBlindTransfer','loopQueueShow','Interval','startsWith','queueStatusComplete','[syncAttendedTransfer][VoiceQueueReport]','context','tail','agents','secondtransfereruniqueid','sipuri','syncQueueCallerLeave','format','No\x20such\x20channel','toUpperCase','message','../ami','custom:queuecallerabandon','[queuesummary]','isNotNull','unlockRR','clearQueueReport','voiceQueues','abandoned','bind','reason','Trunk','COMPLETEDBY','lastevent','total','emit','ATTENDEDTRANSFER','transfereeuniqueid','prototype','queueChannels','origtransfererexten','strategy','seconds','syncQueueSummary','syncMusicOnHoldStop','agentconnect','mohstarttime','EXITWITHKEY','queuecallerexitAt','md5','musiconholdstop','sumDuration','info','sequence','clearZombieChannels','channel','lodash','timeout','origtransfereruniqueid','transfertargetuniqueid','[syncHangup][VoiceQueueReport]','sumBillable','push','[voiceQueueReport][checkChannel]','switch','enqueue','toLowerCase','count','CONTINUE','rtpaudioqos','finally','rtpaudioqosrttbridged','BLINDTRANSFER','loopQueueSummary','[syncQueueCallerAbandon][VoiceQueueReport]','callers','pTalking','rtpaudioqosbridged','voice:queue:%s','voice_queue_channel:remove','BlindTransfer','ATTENDED','error','holdtime','transfer','rtpaudioqosjitterbridged','moment','fullybooted','[queues]','custom:queuesummary','sipcallid','rtpaudioqosjitter','toNumber','pick','emitVoiceQueueSummary','available','emitVoiceQueueChannelSave','merge','queuestatus','queuesummary','queuecallerleave','queuecallerabandon','type','waiting','[voiceQueueReport][checkVariables]','queueposition','last','queuesummarycomplete','transferexten','add','COMPLETED','transfertype','../../../rediscache','YYYY-MM-DD\x20HH:mm:ss','exports','answered','syncAttendedTransfer','countBy','syncHangup','queuecallerjoinAt','secondtransfererexten','includes','syncAgentConnect','active','milliseconds','undefined','isUndefined','variable','queuecallerjoin','rtpaudioqoslossbridged','connectedlinenum','connectedlinename','queueReports','lastAssignedTo','syncVarSet','length','ami','extension','BLIND','util','syncQueueCallerAbandon','[syncQueueSummary][VoiceQueueReport]','[syncBlindTransfer][VoiceQueueReport]','emitVoiceQueueChannelRemove','queuecallerexitreason','TIMEOUT','queuecallerabandonAt','[voiceQueueReport][checkQueueReport]','queues','uniqueid'];(function(_0x117a14,_0x1ff12c){const _0x4e447=function(_0x385425){while(--_0x385425){_0x117a14['push'](_0x117a14['shift']());}};_0x4e447(++_0x1ff12c);}(a1098_0x1ff1,0xbc));const a1098_0x4e44=function(_0x117a14,_0x1ff12c){_0x117a14=_0x117a14-0x0;let _0x4e447=a1098_0x1ff1[_0x117a14];return _0x4e447;};const _0x12b863=a1098_0x4e44;'use strict';const _=require(_0x12b863('0x6e')),moment=require(_0x12b863('0x8c')),util=require(_0x12b863('0xc1')),md5=require(_0x12b863('0x67')),logger=require('../../../config/logger')(_0x12b863('0xbe')),ami=require(_0x12b863('0x4b')),QueueReport=require('../model/queueReport'),{getSocket}=require(_0x12b863('0xa6')),io=getSocket(),Sequence=function(){};Sequence[_0x12b863('0x5c')][_0x12b863('0x77')]=function(_0x385425){const _0x32a713=_0x12b863;this['tail']=this[_0x32a713('0x42')]?this[_0x32a713('0x42')][_0x32a713('0x7c')](_0x385425):_0x385425();};function VoiceQueueReport(_0x4f561c){const _0x568da5=_0x12b863;this[_0x568da5('0x6b')]=new Sequence(),this[_0x568da5('0xba')]={},this[_0x568da5('0x43')]=_0x4f561c[_0x568da5('0x43')],this['channels']=_0x4f561c[_0x568da5('0x5d')],this[_0x568da5('0x51')]=_0x4f561c[_0x568da5('0x51')],this[_0x568da5('0x1d')]=!![],this[_0x568da5('0xc')]=_0x4f561c[_0x568da5('0xc')],this[_0x568da5('0x2d')]={},ami['on'](_0x568da5('0x99'),this[_0x568da5('0x61')][_0x568da5('0x53')](this)),ami['on'](_0x568da5('0xa1'),this['syncQueueSummaryComplete'][_0x568da5('0x53')](this)),ami['on'](_0x568da5('0xb6'),this[_0x568da5('0x11')][_0x568da5('0x53')](this)),ami['on'](_0x568da5('0x9b'),this[_0x568da5('0xc2')][_0x568da5('0x53')](this)),ami['on'](_0x568da5('0x9a'),this[_0x568da5('0x46')]['bind'](this)),ami['on'](_0x568da5('0x2e'),this['syncAgentComplete'][_0x568da5('0x53')](this)),ami['on'](_0x568da5('0x63'),this[_0x568da5('0xb0')]['bind'](this)),ami['on'](_0x568da5('0xd'),this[_0x568da5('0xbc')][_0x568da5('0x53')](this)),ami['on']('hangup',this[_0x568da5('0xac')][_0x568da5('0x53')](this)),ami['on'](_0x568da5('0x8d'),this['syncFullyBooted'][_0x568da5('0x53')](this)),ami['on'](_0x568da5('0x10'),this[_0x568da5('0x31')]['bind'](this)),ami['on'](_0x568da5('0x68'),this[_0x568da5('0x62')][_0x568da5('0x53')](this)),ami['on'](_0x568da5('0x2f'),this[_0x568da5('0xaa')][_0x568da5('0x53')](this)),ami['on'](_0x568da5('0x23'),this[_0x568da5('0x3b')][_0x568da5('0x53')](this)),this[_0x568da5('0x7f')](),this[_0x568da5('0x3c')]();}function clearChannels(_0xb70c9b){const _0x1e47b5=_0x12b863;if(!_[_0x1e47b5('0x1f')](_0xb70c9b))for(const _0x2233ef in _0xb70c9b){typeof _0xb70c9b[_0x2233ef]!==_0x1e47b5('0xb3')&&delete _0xb70c9b[_0x2233ef];}}function clearCampaigns(_0x2e6104){const _0x38e72a=_0x12b863;if(!_[_0x38e72a('0x1f')](_0x2e6104))for(const _0xc90aa5 in _0x2e6104){typeof _0x2e6104[_0xc90aa5]!=='undefined'&&(_0x2e6104[_0xc90aa5]['originated']=0x0);}}function clearVoiceQueues(_0x1ce100){const _0x497821=_0x12b863;if(!_[_0x497821('0x1f')](_0x1ce100))for(const _0x4edc36 in _0x1ce100){typeof _0x1ce100[_0x4edc36]!==_0x497821('0xb3')&&(_0x1ce100[_0x4edc36]['originated']=0x0,_0x1ce100[_0x4edc36][_0x497821('0x1b')]=0x0,_0x1ce100[_0x4edc36][_0x497821('0x82')]=0x0,_0x1ce100[_0x4edc36][_0x497821('0x9d')]=0x0,_0x1ce100[_0x4edc36][_0x497821('0x3f')]=!![]);}}function clearAgentBooked(_0x2c44a9){const _0x2887cf=_0x12b863;if(!_[_0x2887cf('0x1f')](_0x2c44a9))for(const _0x2e2dc2 in _0x2c44a9){typeof _0x2c44a9[_0x2e2dc2]!==_0x2887cf('0xb3')&&(_0x2c44a9[_0x2e2dc2][_0x2887cf('0x4f')]=!![]);}}VoiceQueueReport[_0x12b863('0x5c')][_0x12b863('0x6c')]=function(){const _0x1e6bef=_0x12b863,_0x87342=this;for(const _0x5dff13 in this['channels']){typeof this['channels'][_0x5dff13]!==_0x1e6bef('0xb3')&&!this[_0x1e6bef('0x3a')][_0x5dff13][_0x1e6bef('0x76')]&&this['sequence'][_0x1e6bef('0x77')](function(){const _0x2675b6=_0x1e6bef;if(!_[_0x2675b6('0x1c')](_0x87342[_0x2675b6('0x3a')][_0x5dff13]))return ami[_0x2675b6('0x16')]({'action':_0x2675b6('0x17'),'channel':_0x87342[_0x2675b6('0x3a')][_0x5dff13][_0x2675b6('0x6d')]})[_0x2675b6('0x36')](function(_0x1bb274){const _0x26097b=_0x2675b6;_0x1bb274[_0x26097b('0x4a')]===_0x26097b('0x48')&&setTimeout(function(){const _0xadb48b=_0x26097b;_0x87342[_0xadb48b('0x3a')][_0x5dff13]&&(delete _0x87342[_0xadb48b('0x3a')][_0x5dff13],logger[_0xadb48b('0x88')](_0xadb48b('0x75'),_0x5dff13)),_0x87342[_0xadb48b('0xba')][_0x5dff13]&&(delete _0x87342[_0xadb48b('0xba')][_0x5dff13],logger['error'](_0xadb48b('0x5'),_0x5dff13)),_0x87342[_0xadb48b('0x2d')][_0x5dff13]&&(delete _0x87342[_0xadb48b('0x2d')][_0x5dff13],logger['error'](_0xadb48b('0x9e'),_0x5dff13));},0x1f40);});});}},VoiceQueueReport['prototype'][_0x12b863('0x2a')]=function(){const _0x13aeda=_0x12b863;logger['error']('[FullyBooted]\x20clear\x20realtime'),clearChannels(this[_0x13aeda('0x3a')]),this[_0x13aeda('0x50')](this[_0x13aeda('0xba')]),clearAgentBooked(this['agents']),clearVoiceQueues(this[_0x13aeda('0x51')]),clearCampaigns(this['campaigns']);},VoiceQueueReport['prototype']['clearQueueReport']=function(_0x3ffbfd){const _0x1946fb=_0x12b863,_0xa1f152=this;if(!_[_0x1946fb('0x1f')](_0x3ffbfd))for(const _0x3f7660 in _0x3ffbfd){typeof _0x3ffbfd[_0x3f7660]!==_0x1946fb('0xb3')&&(_0xa1f152[_0x1946fb('0x1')](_0x3ffbfd[_0x3f7660]),delete _0x3ffbfd[_0x3f7660]);}};function loggerCatch(_0x1dcb29){return function(_0x123fdc){const _0x1e5b12=a1098_0x4e44;logger[_0x1e5b12('0x88')](_0x1dcb29,util[_0x1e5b12('0x26')](_0x123fdc,{'showHidden':![],'depth':null}));};}VoiceQueueReport[_0x12b863('0x5c')][_0x12b863('0x59')]=function(_0x10dd64,_0x1eccf3,_0xe7af4d){const _0x59750f=_0x12b863;io['to'](_0x10dd64)[_0x59750f('0x59')](_0x1eccf3,_0xe7af4d);},VoiceQueueReport[_0x12b863('0x5c')][_0x12b863('0x96')]=function(_0x1fb1d8){const _0x36ac0c=_0x12b863;this[_0x36ac0c('0x59')](util['format'](_0x36ac0c('0x84'),_0x1fb1d8['name']),'voice_queue_channel:save',_0x1fb1d8);},VoiceQueueReport['prototype'][_0x12b863('0x1')]=function(_0x43e932){const _0x30931b=_0x12b863;logger[_0x30931b('0x6a')](_0x30931b('0x13'),JSON[_0x30931b('0xa')](_0x43e932)),this[_0x30931b('0x59')](util[_0x30931b('0x47')]('voice:queue:%s',_0x43e932[_0x30931b('0xb')]),_0x30931b('0x85'),_0x43e932);},VoiceQueueReport[_0x12b863('0x5c')][_0x12b863('0x94')]=function(_0x10946a){const _0x2b82a9=_0x12b863;if(_0x10946a[_0x2b82a9('0x9c')]===_0x2b82a9('0x21')){const _0x1388e4={'id':_0x10946a['id'],'name':_0x10946a['name'],'strategy':_0x10946a[_0x2b82a9('0x5f')],'answered':_0x10946a[_0x2b82a9('0xa9')],'available':_0x10946a[_0x2b82a9('0x95')],'loggedIn':_0x10946a[_0x2b82a9('0x15')],'pTalking':_0x10946a[_0x2b82a9('0x82')],'sumBillable':_0x10946a[_0x2b82a9('0x73')],'sumDuration':_0x10946a[_0x2b82a9('0x69')],'sumHoldTime':_0x10946a['sumHoldTime']||0x0,'talking':_0x10946a[_0x2b82a9('0x1b')],'total':_0x10946a[_0x2b82a9('0x58')],'type':_0x10946a[_0x2b82a9('0x9c')],'unmanaged':_0x10946a[_0x2b82a9('0x33')],'abandoned':_0x10946a[_0x2b82a9('0x52')],'waiting':_0x10946a[_0x2b82a9('0x9d')]};_0x10946a[_0x2b82a9('0x55')]&&(_0x1388e4[_0x2b82a9('0x55')]={'id':_0x10946a[_0x2b82a9('0x55')]['id'],'name':_0x10946a[_0x2b82a9('0x55')][_0x2b82a9('0xb')],'active':_0x10946a[_0x2b82a9('0x55')][_0x2b82a9('0xb1')],'callerid':_0x10946a[_0x2b82a9('0x55')][_0x2b82a9('0x25')]});_0x10946a[_0x2b82a9('0x3d')]&&(_0x1388e4[_0x2b82a9('0x3d')]={'id':_0x10946a['Interval']['id'],'name':_0x10946a[_0x2b82a9('0x3d')][_0x2b82a9('0xb')]});const _0x213875=md5(JSON[_0x2b82a9('0xa')](_0x1388e4));_0x10946a[_0x2b82a9('0x67')]!==_0x213875&&(_0x10946a[_0x2b82a9('0x67')]=_0x213875,this[_0x2b82a9('0x59')](util[_0x2b82a9('0x47')](_0x2b82a9('0x84'),_0x1388e4[_0x2b82a9('0xb')]),'voice_queue:save',_0x1388e4));}},VoiceQueueReport[_0x12b863('0x5c')][_0x12b863('0x4e')]=function(_0x1b8dfb){const _0x52f0cd=_0x12b863;return _0x1b8dfb!==null&&!_[_0x52f0cd('0xb4')](_0x1b8dfb);},VoiceQueueReport[_0x12b863('0x5c')][_0x12b863('0x3c')]=function(){const _0xd08855=this;setInterval(function(){const _0x39b43e=a1098_0x4e44;_0xd08855[_0x39b43e('0x6c')](),ami['Action']({'action':_0x39b43e('0x6')})[_0x39b43e('0x36')](loggerCatch(_0x39b43e('0x8e')));},0x2710);},VoiceQueueReport['prototype'][_0x12b863('0x7f')]=function(){const _0x438a4c=this;setInterval(function(){const _0xd8c9ec=a1098_0x4e44;if(_0x438a4c[_0xd8c9ec('0x1d')])return ami[_0xd8c9ec('0x16')]({'action':'queuesummary'})[_0xd8c9ec('0x24')](function(){_0x438a4c['flagQueueSummary']=![];})[_0xd8c9ec('0x36')](loggerCatch(_0xd8c9ec('0x4d')));},0x3e8);},VoiceQueueReport[_0x12b863('0x5c')][_0x12b863('0x61')]=function(_0x1d04d4){const _0xb7bf06=_0x12b863;try{if(this[_0xb7bf06('0x4e')](_0x1d04d4)&&this[_0xb7bf06('0x4e')](_0x1d04d4[_0xb7bf06('0x12')])){if(this[_0xb7bf06('0x51')][_0x1d04d4[_0xb7bf06('0x12')]]){const _0x38b158=_[_0xb7bf06('0xab')](this['channels'],_0xb7bf06('0x12'))[_0x1d04d4[_0xb7bf06('0x12')]]||0x0,_0x1b6518=_0x38b158-_0x1d04d4[_0xb7bf06('0x81')];(this[_0xb7bf06('0x51')][_0x1d04d4['queue']]['waiting']!==_[_0xb7bf06('0x92')](_0x1d04d4[_0xb7bf06('0x81')])||this[_0xb7bf06('0x51')][_0x1d04d4[_0xb7bf06('0x12')]]['loggedIn']!==_[_0xb7bf06('0x92')](_0x1d04d4[_0xb7bf06('0x37')])||this[_0xb7bf06('0x51')][_0x1d04d4[_0xb7bf06('0x12')]][_0xb7bf06('0x95')]!==_[_0xb7bf06('0x92')](_0x1d04d4[_0xb7bf06('0x95')])||this['voiceQueues'][_0x1d04d4[_0xb7bf06('0x12')]]['talking']!==_0x1b6518)&&(this['voiceQueues'][_0x1d04d4[_0xb7bf06('0x12')]][_0xb7bf06('0x9d')]=_['toNumber'](_0x1d04d4[_0xb7bf06('0x81')]),this[_0xb7bf06('0x51')][_0x1d04d4[_0xb7bf06('0x12')]][_0xb7bf06('0x15')]=_['toNumber'](_0x1d04d4[_0xb7bf06('0x37')]),this[_0xb7bf06('0x51')][_0x1d04d4['queue']]['available']=_['toNumber'](_0x1d04d4[_0xb7bf06('0x95')]),this[_0xb7bf06('0x51')][_0x1d04d4[_0xb7bf06('0x12')]]['talking']=_0x1b6518>0x0?_0x1b6518:0x0,this['voiceQueues'][_0x1d04d4[_0xb7bf06('0x12')]][_0xb7bf06('0x1b')]=this[_0xb7bf06('0x51')][_0x1d04d4[_0xb7bf06('0x12')]][_0xb7bf06('0x1b')]>_[_0xb7bf06('0x92')](_0x1d04d4[_0xb7bf06('0x37')])?_[_0xb7bf06('0x92')](_0x1d04d4[_0xb7bf06('0x37')]):this['voiceQueues'][_0x1d04d4[_0xb7bf06('0x12')]]['talking'],this[_0xb7bf06('0x94')](this['voiceQueues'][_0x1d04d4['queue']])),ami[_0xb7bf06('0x59')](_0xb7bf06('0x8f'),this[_0xb7bf06('0x51')][_0x1d04d4[_0xb7bf06('0x12')]]);}}}catch(_0xcc42fb){logger[_0xb7bf06('0x88')](_0xb7bf06('0xc3'),util[_0xb7bf06('0x26')](_0xcc42fb,{'showHidden':![],'depth':null}));}},VoiceQueueReport[_0x12b863('0x5c')][_0x12b863('0xe')]=function(){const _0x478187=_0x12b863;this[_0x478187('0x1d')]=!![];},VoiceQueueReport[_0x12b863('0x5c')][_0x12b863('0x1a')]=function(){},VoiceQueueReport[_0x12b863('0x5c')][_0x12b863('0x11')]=function(_0x16168d){const _0x411e7d=_0x12b863;try{if(this[_0x411e7d('0x4e')](_0x16168d)){_[_0x411e7d('0xb4')](this[_0x411e7d('0xba')][_0x16168d[_0x411e7d('0x7')]])&&(this['queueReports'][_0x16168d[_0x411e7d('0x7')]]=[],this[_0x411e7d('0x3a')][_0x16168d[_0x411e7d('0x7')]]={});const _0x306f72=new QueueReport();_0x306f72['name']=_0x16168d['queue'],_0x306f72['type']=this[_0x411e7d('0x51')][_0x306f72['name']]&&this['voiceQueues'][_0x306f72['name']]['type']?this['voiceQueues'][_0x306f72[_0x411e7d('0xb')]][_0x411e7d('0x9c')]||_0x411e7d('0x21'):_0x411e7d('0x21'),_0x306f72[_0x411e7d('0x12')]=_0x16168d[_0x411e7d('0x12')],_0x306f72['queuecallerjoinAt']=moment()[_0x411e7d('0x47')](_0x411e7d('0xa7')),_0x306f72['position']=_0x16168d[_0x411e7d('0x2c')],_0x306f72[_0x411e7d('0x79')]=_0x16168d['count'],_[_0x411e7d('0x97')](_0x306f72,_[_0x411e7d('0x93')](_0x16168d,_[_0x411e7d('0x39')](_0x306f72))),this[_0x411e7d('0xba')][_0x16168d[_0x411e7d('0x7')]][_0x411e7d('0x74')](_0x306f72),this[_0x411e7d('0x3a')][_0x16168d[_0x411e7d('0x7')]]=_0x306f72,this[_0x411e7d('0x96')](_0x306f72);}}catch(_0x3ae7c3){logger[_0x411e7d('0x88')]('[syncQueueCallerJoin][VoiceQueueReport]',util[_0x411e7d('0x26')](_0x3ae7c3,{'showHidden':![],'depth':null}));}},VoiceQueueReport['prototype'][_0x12b863('0xc2')]=function(_0x6c717e){const _0x4fd17d=_0x12b863;try{if(this['isNotNull'](_0x6c717e)){if(this[_0x4fd17d('0xba')][_0x6c717e['uniqueid']]){const _0xd8b5ba=_[_0x4fd17d('0xa0')](this['queueReports'][_0x6c717e['uniqueid']]);_0xd8b5ba[_0x4fd17d('0x38')]=![],_0xd8b5ba[_0x4fd17d('0x34')]=null,_0xd8b5ba[_0x4fd17d('0x89')]=_0x6c717e['holdtime'],_0xd8b5ba[_0x4fd17d('0x8')]=_0x6c717e[_0x4fd17d('0x8')],_0xd8b5ba['queuecallerabandon']=!![],_0xd8b5ba[_0x4fd17d('0x4')]=moment()[_0x4fd17d('0x47')](_0x4fd17d('0xa7')),_0xd8b5ba['queuecallerexitreason']='ABANDONED',_0xd8b5ba[_0x4fd17d('0xbb')]=null,this[_0x4fd17d('0x3a')][_0x6c717e['uniqueid']]=_0xd8b5ba,this[_0x4fd17d('0x1')](_0xd8b5ba);}}}catch(_0x24ce92){logger[_0x4fd17d('0x88')](_0x4fd17d('0x80'),util[_0x4fd17d('0x26')](_0x24ce92,{'showHidden':![],'depth':null}));}},VoiceQueueReport['prototype'][_0x12b863('0x46')]=function(_0x3ae197){const _0x4c5604=_0x12b863;try{if(this[_0x4c5604('0x4e')](_0x3ae197)){if(this[_0x4c5604('0xba')][_0x3ae197['uniqueid']]){const _0x14e8af=_['last'](this['queueReports'][_0x3ae197[_0x4c5604('0x7')]]);_0x14e8af[_0x4c5604('0x14')]=moment()['format'](_0x4c5604('0xa7')),_0x14e8af['connectedlinenum']=_0x3ae197[_0x4c5604('0xb8')],_0x14e8af['connectedlinename']=_0x3ae197[_0x4c5604('0xb9')],this[_0x4c5604('0x3a')][_0x3ae197[_0x4c5604('0x7')]]=_0x14e8af,this[_0x4c5604('0x96')](_0x14e8af);}}}catch(_0x4ebc7a){logger['error']('[syncQueueCallerLeave][VoiceQueueReport]',util['inspect'](_0x4ebc7a,{'showHidden':![],'depth':null}));}},VoiceQueueReport[_0x12b863('0x5c')]['syncAgentConnect']=function(_0x4e47e1){const _0x40a907=_0x12b863;try{if(this[_0x40a907('0x4e')](_0x4e47e1)){if(this[_0x40a907('0xba')][_0x4e47e1[_0x40a907('0x7')]]){const _0x4627f1=_['last'](this[_0x40a907('0xba')][_0x4e47e1[_0x40a907('0x7')]]);_0x4627f1[_0x40a907('0x38')]=!![],_0x4627f1['queuecallerexitreason']=_0x40a907('0x30');}}}catch(_0x212ead){logger['error']('[syncAgentConnect][VoiceQueueReport]',util[_0x40a907('0x26')](_0x212ead,{'showHidden':![],'depth':null}));}},VoiceQueueReport[_0x12b863('0x5c')][_0x12b863('0x19')]=function(_0x38becc){const _0xfb094b=_0x12b863;try{if(this[_0xfb094b('0x4e')](_0x38becc)){if(this[_0xfb094b('0xba')][_0x38becc[_0xfb094b('0x7')]]){const _0x5dba9a=_[_0xfb094b('0xa0')](this[_0xfb094b('0xba')][_0x38becc['uniqueid']]);_0x5dba9a[_0xfb094b('0x9b')]=![],_0x5dba9a[_0xfb094b('0x4')]=null,_0x5dba9a['assigned']=!![],_0x5dba9a[_0xfb094b('0xbb')]=_0x38becc[_0xfb094b('0x22')],_0x5dba9a[_0xfb094b('0x89')]=_0x38becc[_0xfb094b('0x89')],_0x5dba9a['queuecallercomplete']=!![],_0x5dba9a[_0xfb094b('0x2b')]=![],_0x5dba9a['queuecallerexitAt']=null;if(!_0x5dba9a[_0xfb094b('0x8a')]){if(_0x38becc[_0xfb094b('0x54')]=='transfer')_0x5dba9a[_0xfb094b('0x2')]=_0xfb094b('0xa4');else{if(_[_0xfb094b('0x3e')](_0x38becc['channel'][_0xfb094b('0x78')](),'local/')){if(this['queueReports'][_0x38becc[_0xfb094b('0x27')]]){const _0x58ec4e=_[_0xfb094b('0xa0')](this['queueReports'][_0x38becc['linkedid']]);_0x58ec4e[_0xfb094b('0x38')]=![],_0x58ec4e[_0xfb094b('0x2b')]=!![],_0x58ec4e[_0xfb094b('0x66')]=moment(_0x5dba9a['queuecallerjoinAt'])[_0xfb094b('0xa3')](_0x38becc[_0xfb094b('0x89')],_0xfb094b('0x60'))[_0xfb094b('0x47')](_0xfb094b('0xa7')),_0x58ec4e[_0xfb094b('0x2')]=_0xfb094b('0x29'),_0x58ec4e[_0xfb094b('0x8a')]=!![],_0x58ec4e['transfertype']='FORWARD',_0x58ec4e[_0xfb094b('0xa2')]=_0x38becc['destexten'],_0x58ec4e[_0xfb094b('0x1e')]=_0x38becc[_0xfb094b('0x7')];const _0x433886=this[_0xfb094b('0xba')][_0x38becc[_0xfb094b('0x27')]];this[_0xfb094b('0xba')][_0x38becc['linkedid']]=this[_0xfb094b('0xba')][_0x38becc[_0xfb094b('0x7')]],this[_0xfb094b('0xba')][_0x38becc[_0xfb094b('0x7')]]=_0x433886;}}else _0x5dba9a[_0xfb094b('0x2')]=_0xfb094b('0x56')+_0x38becc[_0xfb094b('0x54')][_0xfb094b('0x49')]();}}this[_0xfb094b('0x3a')][_0x38becc[_0xfb094b('0x7')]]=_0x5dba9a,this[_0xfb094b('0x1')](_0x5dba9a);}}}catch(_0x327f89){logger[_0xfb094b('0x88')]('[syncAgentComplete][VoiceQueueReport]',util[_0xfb094b('0x26')](_0x327f89,{'showHidden':![],'depth':null}));}},VoiceQueueReport['prototype'][_0x12b863('0xbc')]=function(_0x3d6caa){const _0x3d7467=_0x12b863;try{if(this[_0x3d7467('0x4e')](_0x3d6caa)){this['addVariable'](_0x3d6caa[_0x3d7467('0x7')],_[_0x3d7467('0x39')](_0x3d6caa['variable'])[0x0],_0x3d6caa['value']);if(this[_0x3d7467('0xba')][_0x3d6caa[_0x3d7467('0x7')]]){const _0x3d539c=_[_0x3d7467('0xa0')](this[_0x3d7467('0xba')][_0x3d6caa['uniqueid']]);if(_0x3d539c){if(this['isNotNull'](_0x3d6caa[_0x3d7467('0xb5')])&&this[_0x3d7467('0x4e')](_0x3d6caa[_0x3d7467('0xb5')][_0x3d7467('0x98')])){switch(_0x3d6caa[_0x3d7467('0x35')]){case _0x3d7467('0x7a'):_0x3d539c['queuecallerexit']=![],_0x3d539c['queuecallerexitAt']=null;break;case _0x3d7467('0x3'):_0x3d539c[_0x3d7467('0x57')]=_0x3d7467('0x6f'),ami[_0x3d7467('0x59')]('custom:timeout',_0x3d539c);break;default:_0x3d539c['queuecallerexit']=!![],_0x3d539c[_0x3d7467('0x66')]=moment()['format'](_0x3d7467('0xa7')),_0x3d539c['queuecallerleaveAt']=moment()[_0x3d7467('0x47')](_0x3d7467('0xa7'));}_0x3d539c[_0x3d7467('0x9b')]=![],_0x3d539c[_0x3d7467('0x4')]=null,_0x3d539c[_0x3d7467('0x2')]=_0x3d6caa[_0x3d7467('0x35')],this[_0x3d7467('0x3a')][_0x3d6caa['uniqueid']]=_0x3d539c,this[_0x3d7467('0x1')](_0x3d539c);}else this['isNotNull'](_0x3d6caa[_0x3d7467('0xb5')])&&this[_0x3d7467('0x4e')](_0x3d6caa['variable'][_0x3d7467('0x9f')])&&(!_0x3d539c[_0x3d7467('0x9b')]&&(_0x3d539c[_0x3d7467('0x2b')]=!![],_0x3d539c['queuecallerexitAt']=moment()[_0x3d7467('0x47')](_0x3d7467('0xa7')),_0x3d539c['queuecallerexitreason']=_0x3d7467('0x65'),_0x3d539c[_0x3d7467('0x14')]=moment()['format'](_0x3d7467('0xa7')),this[_0x3d7467('0x3a')][_0x3d6caa[_0x3d7467('0x7')]]=_0x3d539c));_0x3d539c[_0x3d7467('0x2d')]=this[_0x3d7467('0x2d')][_0x3d6caa[_0x3d7467('0x7')]];}}}}catch(_0x39865d){logger[_0x3d7467('0x88')]('[syncVarSet][VoiceQueueReport]',util[_0x3d7467('0x26')](_0x39865d,{'showHidden':![],'depth':null}));}},VoiceQueueReport[_0x12b863('0x5c')]['addVariable']=function(_0x16e125,_0x49304f,_0x5b3232){const _0x5db227=_0x12b863,_0x1b9034=[_0x5db227('0x7b'),_0x5db227('0x83'),_0x5db227('0x91'),_0x5db227('0x8b'),'rtpaudioqosloss',_0x5db227('0xb7'),_0x5db227('0x9'),_0x5db227('0x7d'),_0x5db227('0x90'),_0x5db227('0x45'),'bridgepeer',_0x5db227('0x20'),'membercalls','memberdynamic','memberinterface','memberlastcall',_0x5db227('0x22'),'memberpenalty',_0x5db227('0x32')];!_[_0x5db227('0x1c')](_0x49304f)&&!_[_0x5db227('0xaf')](_0x1b9034,_0x49304f)&&(_[_0x5db227('0xb4')](this[_0x5db227('0x2d')][_0x16e125])&&(this[_0x5db227('0x2d')][_0x16e125]={}),this[_0x5db227('0x2d')][_0x16e125][_0x49304f]=_0x5b3232);},VoiceQueueReport[_0x12b863('0x5c')][_0x12b863('0xac')]=function(_0x58d9f2){const _0x3e2cb4=_0x12b863;try{if(this['isNotNull'](_0x58d9f2)){if(this[_0x3e2cb4('0xba')][_0x58d9f2[_0x3e2cb4('0x7')]]){for(let _0x274704=0x0,_0x250045={};_0x2747040x0?_0x10b5d8:0x0,this[_0x380677(0xd0)][_0x3b2905[_0x380677(0xfe)]][_0x380677(0x102)]=this[_0x380677(0xd0)][_0x3b2905[_0x380677(0xfe)]]['talking']>_['toNumber'](_0x3b2905[_0x380677(0xca)])?_['toNumber'](_0x3b2905['loggedin']):this['voiceQueues'][_0x3b2905[_0x380677(0xfe)]][_0x380677(0x102)],this[_0x380677(0x8d)](this['voiceQueues'][_0x3b2905[_0x380677(0xfe)]])),ami[_0x380677(0x12f)](_0x380677(0x104),this[_0x380677(0xd0)][_0x3b2905['queue']]);}}}catch(_0x1d4d3a){logger[_0x380677(0xac)](_0x380677(0xcd),util['inspect'](_0x1d4d3a,{'showHidden':![],'depth':null}));}},VoiceQueueReport[a1262_0x13485b(0xf3)][a1262_0x13485b(0xe0)]=function(){this['flagQueueSummary']=!![];},VoiceQueueReport[a1262_0x13485b(0xf3)][a1262_0x13485b(0xb2)]=function(){},VoiceQueueReport['prototype'][a1262_0x13485b(0xb6)]=function(_0x1bdd4b){const _0x34c127=a1262_0x13485b;try{if(this[_0x34c127(0xa2)](_0x1bdd4b)){_['isUndefined'](this['queueReports'][_0x1bdd4b[_0x34c127(0xf8)]])&&(this[_0x34c127(0xbd)][_0x1bdd4b[_0x34c127(0xf8)]]=[],this[_0x34c127(0xb8)][_0x1bdd4b[_0x34c127(0xf8)]]={});const _0x11cb1b=new QueueReport();_0x11cb1b[_0x34c127(0x128)]=_0x1bdd4b[_0x34c127(0xfe)],_0x11cb1b[_0x34c127(0xdb)]=this['voiceQueues'][_0x11cb1b['name']]&&this[_0x34c127(0xd0)][_0x11cb1b[_0x34c127(0x128)]]['type']?this['voiceQueues'][_0x11cb1b[_0x34c127(0x128)]][_0x34c127(0xdb)]||'inbound':'inbound',_0x11cb1b[_0x34c127(0xfe)]=_0x1bdd4b[_0x34c127(0xfe)],_0x11cb1b[_0x34c127(0x136)]=moment()[_0x34c127(0x92)]('YYYY-MM-DD\x20HH:mm:ss'),_0x11cb1b[_0x34c127(0x96)]=_0x1bdd4b[_0x34c127(0x96)],_0x11cb1b[_0x34c127(0xf2)]=_0x1bdd4b[_0x34c127(0xf2)],_[_0x34c127(0xc4)](_0x11cb1b,_['pick'](_0x1bdd4b,_[_0x34c127(0xdc)](_0x11cb1b))),this[_0x34c127(0xbd)][_0x1bdd4b[_0x34c127(0xf8)]]['push'](_0x11cb1b),this['channels'][_0x1bdd4b[_0x34c127(0xf8)]]=_0x11cb1b,this['emitVoiceQueueChannelSave'](_0x11cb1b);}}catch(_0x2f8426){logger[_0x34c127(0xac)](_0x34c127(0xe9),util[_0x34c127(0xcc)](_0x2f8426,{'showHidden':![],'depth':null}));}},VoiceQueueReport['prototype'][a1262_0x13485b(0xc6)]=function(_0x1dc53a){const _0x403944=a1262_0x13485b;try{if(this[_0x403944(0xa2)](_0x1dc53a)){if(this[_0x403944(0xbd)][_0x1dc53a[_0x403944(0xf8)]]){const _0x33404d=_[_0x403944(0xe5)](this[_0x403944(0xbd)][_0x1dc53a[_0x403944(0xf8)]]);_0x33404d[_0x403944(0x129)]=![],_0x33404d[_0x403944(0xb4)]=null,_0x33404d['holdtime']=_0x1dc53a[_0x403944(0xa4)],_0x33404d['originalposition']=_0x1dc53a['originalposition'],_0x33404d['queuecallerabandon']=!![],_0x33404d['queuecallerabandonAt']=moment()['format'](_0x403944(0xdd)),_0x33404d['queuecallerexitreason']='ABANDONED',_0x33404d[_0x403944(0xf6)]=null,this[_0x403944(0xb8)][_0x1dc53a[_0x403944(0xf8)]]=_0x33404d,this[_0x403944(0x82)](_0x33404d);}}}catch(_0x36a6f0){logger[_0x403944(0xac)](_0x403944(0xb3),util[_0x403944(0xcc)](_0x36a6f0,{'showHidden':![],'depth':null}));}},VoiceQueueReport[a1262_0x13485b(0xf3)][a1262_0x13485b(0x10e)]=function(_0x138075){const _0x5a96ff=a1262_0x13485b;try{if(this[_0x5a96ff(0xa2)](_0x138075)){if(this[_0x5a96ff(0xbd)][_0x138075['uniqueid']]){const _0x416ec6=_[_0x5a96ff(0xe5)](this['queueReports'][_0x138075[_0x5a96ff(0xf8)]]);_0x416ec6[_0x5a96ff(0x109)]=moment()[_0x5a96ff(0x92)](_0x5a96ff(0xdd)),_0x416ec6['connectedlinenum']=_0x138075['connectedlinenum'],_0x416ec6['connectedlinename']=_0x138075[_0x5a96ff(0x11f)],this[_0x5a96ff(0xb8)][_0x138075[_0x5a96ff(0xf8)]]=_0x416ec6,this[_0x5a96ff(0x12c)](_0x416ec6);}}}catch(_0x57711d){logger['error'](_0x5a96ff(0xd3),util[_0x5a96ff(0xcc)](_0x57711d,{'showHidden':![],'depth':null}));}},VoiceQueueReport[a1262_0x13485b(0xf3)]['syncAgentConnect']=function(_0x498e5e){const _0x5cf034=a1262_0x13485b;try{if(this[_0x5cf034(0xa2)](_0x498e5e)){if(this['queueReports'][_0x498e5e['uniqueid']]){const _0x5cec99=_['last'](this[_0x5cf034(0xbd)][_0x498e5e[_0x5cf034(0xf8)]]);_0x5cec99[_0x5cf034(0x129)]=!![],_0x5cec99[_0x5cf034(0xa8)]='COMPLETEDBYAGENT';}}}catch(_0x45fe40){logger[_0x5cf034(0xac)](_0x5cf034(0xea),util[_0x5cf034(0xcc)](_0x45fe40,{'showHidden':![],'depth':null}));}},VoiceQueueReport[a1262_0x13485b(0xf3)]['syncAgentComplete']=function(_0x18ff5f){const _0x173b14=a1262_0x13485b;try{if(this[_0x173b14(0xa2)](_0x18ff5f)){if(this['queueReports'][_0x18ff5f[_0x173b14(0xf8)]]){const _0x48356e=_[_0x173b14(0xe5)](this['queueReports'][_0x18ff5f[_0x173b14(0xf8)]]);_0x48356e[_0x173b14(0x111)]=![],_0x48356e['queuecallerabandonAt']=null,_0x48356e['assigned']=!![],_0x48356e[_0x173b14(0xf6)]=_0x18ff5f[_0x173b14(0x110)],_0x48356e[_0x173b14(0xa4)]=_0x18ff5f[_0x173b14(0xa4)],_0x48356e['queuecallercomplete']=!![],_0x48356e['queuecallerexit']=![],_0x48356e['queuecallerexitAt']=null;if(!_0x48356e[_0x173b14(0x83)]){if(_0x18ff5f['reason']==_0x173b14(0x83))_0x48356e['queuecallerexitreason']=_0x173b14(0xcf);else{if(_[_0x173b14(0x13e)](_0x18ff5f['channel'][_0x173b14(0x124)](),'local/')){if(this['queueReports'][_0x18ff5f[_0x173b14(0xbf)]]){const _0x3ae98f=_[_0x173b14(0xe5)](this[_0x173b14(0xbd)][_0x18ff5f[_0x173b14(0xbf)]]);_0x3ae98f[_0x173b14(0x129)]=![],_0x3ae98f[_0x173b14(0x120)]=!![],_0x3ae98f[_0x173b14(0x10b)]=moment(_0x48356e[_0x173b14(0x136)])[_0x173b14(0x116)](_0x18ff5f[_0x173b14(0xa4)],'seconds')[_0x173b14(0x92)](_0x173b14(0xdd)),_0x3ae98f['queuecallerexitreason']=_0x173b14(0x81),_0x3ae98f[_0x173b14(0x83)]=!![],_0x3ae98f[_0x173b14(0x8a)]='FORWARD',_0x3ae98f['transferexten']=_0x18ff5f[_0x173b14(0x90)],_0x3ae98f[_0x173b14(0xc7)]=_0x18ff5f[_0x173b14(0xf8)];const _0x41c926=this['queueReports'][_0x18ff5f['linkedid']];this[_0x173b14(0xbd)][_0x18ff5f['linkedid']]=this[_0x173b14(0xbd)][_0x18ff5f[_0x173b14(0xf8)]],this[_0x173b14(0xbd)][_0x18ff5f['uniqueid']]=_0x41c926;}}else _0x48356e['queuecallerexitreason']='COMPLETEDBY'+_0x18ff5f['reason'][_0x173b14(0x103)]();}}this['channels'][_0x18ff5f[_0x173b14(0xf8)]]=_0x48356e,this[_0x173b14(0x82)](_0x48356e);}}}catch(_0x1d2344){logger['error'](_0x173b14(0xd9),util[_0x173b14(0xcc)](_0x1d2344,{'showHidden':![],'depth':null}));}},VoiceQueueReport[a1262_0x13485b(0xf3)][a1262_0x13485b(0x13d)]=function(_0x55ad03){const _0x424b0f=a1262_0x13485b;try{if(this[_0x424b0f(0xa2)](_0x55ad03)){this[_0x424b0f(0x119)](_0x55ad03[_0x424b0f(0xf8)],_[_0x424b0f(0xdc)](_0x55ad03[_0x424b0f(0xf4)])[0x0],_0x55ad03['value']);if(this[_0x424b0f(0xbd)][_0x55ad03[_0x424b0f(0xf8)]]){const _0x513b59=_['last'](this[_0x424b0f(0xbd)][_0x55ad03[_0x424b0f(0xf8)]]);if(_0x513b59){if(this[_0x424b0f(0xa2)](_0x55ad03[_0x424b0f(0xf4)])&&this['isNotNull'](_0x55ad03[_0x424b0f(0xf4)]['queuestatus'])){switch(_0x55ad03[_0x424b0f(0x134)]){case _0x424b0f(0x9f):_0x513b59[_0x424b0f(0x120)]=![],_0x513b59[_0x424b0f(0x10b)]=null;break;case _0x424b0f(0x13a):_0x513b59[_0x424b0f(0xb5)]=_0x424b0f(0x12e),ami['emit'](_0x424b0f(0x85),_0x513b59);break;default:_0x513b59['queuecallerexit']=!![],_0x513b59[_0x424b0f(0x10b)]=moment()['format']('YYYY-MM-DD\x20HH:mm:ss'),_0x513b59[_0x424b0f(0x109)]=moment()['format']('YYYY-MM-DD\x20HH:mm:ss');}_0x513b59['queuecallerabandon']=![],_0x513b59[_0x424b0f(0x139)]=null,_0x513b59['queuecallerexitreason']=_0x55ad03['value'],this[_0x424b0f(0xb8)][_0x55ad03['uniqueid']]=_0x513b59,this[_0x424b0f(0x82)](_0x513b59);}else this[_0x424b0f(0xa2)](_0x55ad03['variable'])&&this['isNotNull'](_0x55ad03['variable'][_0x424b0f(0xfb)])&&(!_0x513b59[_0x424b0f(0x111)]&&(_0x513b59[_0x424b0f(0x120)]=!![],_0x513b59[_0x424b0f(0x10b)]=moment()[_0x424b0f(0x92)](_0x424b0f(0xdd)),_0x513b59['queuecallerexitreason']=_0x424b0f(0xfc),_0x513b59[_0x424b0f(0x109)]=moment()[_0x424b0f(0x92)](_0x424b0f(0xdd)),this[_0x424b0f(0xb8)][_0x55ad03['uniqueid']]=_0x513b59));_0x513b59[_0x424b0f(0x9d)]=this[_0x424b0f(0x9d)][_0x55ad03[_0x424b0f(0xf8)]];}}}}catch(_0xdbcde){logger[_0x424b0f(0xac)](_0x424b0f(0x117),util['inspect'](_0xdbcde,{'showHidden':![],'depth':null}));}},VoiceQueueReport[a1262_0x13485b(0xf3)][a1262_0x13485b(0x119)]=function(_0x5ecc66,_0x2a7e63,_0x1870a6){const _0x1fb071=a1262_0x13485b,_0x186740=[_0x1fb071(0x12b),_0x1fb071(0x113),'rtpaudioqosjitter',_0x1fb071(0x12a),'rtpaudioqosloss',_0x1fb071(0x121),'rtpaudioqosrtt',_0x1fb071(0x9b),_0x1fb071(0x125),_0x1fb071(0x137),_0x1fb071(0x132),'bridgepvtcallid',_0x1fb071(0x138),'memberdynamic',_0x1fb071(0xe6),'memberlastcall',_0x1fb071(0x110),_0x1fb071(0xf5),_0x1fb071(0x98)];!_[_0x1fb071(0x101)](_0x2a7e63)&&!_[_0x1fb071(0x107)](_0x186740,_0x2a7e63)&&(_['isUndefined'](this['variables'][_0x5ecc66])&&(this[_0x1fb071(0x9d)][_0x5ecc66]={}),this['variables'][_0x5ecc66][_0x2a7e63]=_0x1870a6);},VoiceQueueReport[a1262_0x13485b(0xf3)][a1262_0x13485b(0x105)]=function(_0x3dc266){const _0x21b399=a1262_0x13485b;try{if(this['isNotNull'](_0x3dc266)){if(this[_0x21b399(0xbd)][_0x3dc266[_0x21b399(0xf8)]]){for(let _0x239dbe=0x0,_0x5be40e={};_0x239dbe=0x0?moment(_0x1c41a1[_0x12f095('0x16')])[_0x12f095('0xb')](_0x1c41a1[_0x12f095('0x19')],_0x12f095('0x12')):null,'data1':_0x12f095('0x8'),'data2':_0x1c41a1[_0x12f095('0x2')],'data3':_0x1c41a1[_0x12f095('0xe')],'data4':_0x1c41a1[_0x12f095('0x4')]||null,'role':_0x12f095('0x15'),'internal':_0x1c41a1[_0x12f095('0x2')]?_[_0x12f095('0x7')](_0x1c41a1[_0x12f095('0x2')]):undefined,'uniqueid':_0x1c41a1[_0x12f095('0x0')]},'log':_0x12f095('0x10')});}; \ No newline at end of file +const a1283_0x5f20=['Request','outbound','calleridnum','exten','moment','agent','isNil','TALKING','accountcode','inbound','../client','toNumber','voiceQueueReport','seconds','queuecallercompleteAt','membername','lastAssignedTo','interface','endtime','uniqueid','format','starttime','queuecallerleaveAt','CreateMemberReport','util','queuecallerexitAt','voiceDialReport','diff'];(function(_0x377ef6,_0x31e04d){const _0x5f2079=function(_0x2db0f9){while(--_0x2db0f9){_0x377ef6['push'](_0x377ef6['shift']());}};_0x5f2079(++_0x31e04d);}(a1283_0x5f20,0x155));const a1283_0x2db0=function(_0x377ef6,_0x31e04d){_0x377ef6=_0x377ef6-0x16f;let _0x5f2079=a1283_0x5f20[_0x377ef6];return _0x5f2079;};const a1283_0x52041f=a1283_0x2db0;'use strict';const moment=require(a1283_0x52041f(0x18a)),_=require('lodash'),util=require(a1283_0x52041f(0x182)),client=require(a1283_0x52041f(0x174));exports[a1283_0x52041f(0x176)]=function(_0x3a02cd){const _0x4bae27=a1283_0x52041f,_0x4ef959=_0x3a02cd[_0x4bae27(0x178)]||_0x3a02cd[_0x4bae27(0x183)];return client['Request'](_0x4bae27(0x181),{'body':{'channel':'voice','membername':_0x3a02cd[_0x4bae27(0x17a)],'interface':_[_0x4bae27(0x170)](_0x3a02cd[_0x4bae27(0x17b)])?util[_0x4bae27(0x17e)]('SIP/%s',_0x3a02cd[_0x4bae27(0x17a)]):_0x3a02cd[_0x4bae27(0x17b)],'type':_0x4bae27(0x171),'enterAt':_0x3a02cd[_0x4bae27(0x180)],'exitAt':_0x4ef959,'duration':moment(_0x4ef959)[_0x4bae27(0x185)](_0x3a02cd['queuecallerleaveAt'],_0x4bae27(0x177)),'data1':_0x4bae27(0x173),'data2':_0x3a02cd[_0x4bae27(0x188)],'data3':_0x3a02cd[_0x4bae27(0x189)],'data4':null,'data5':_0x3a02cd['queue'],'role':_0x4bae27(0x16f),'internal':_0x3a02cd['accountcode']?_[_0x4bae27(0x175)](_0x3a02cd['accountcode']):undefined,'uniqueid':_0x3a02cd[_0x4bae27(0x17d)]},'log':_0x4bae27(0x181)});},exports[a1283_0x52041f(0x184)]=function(_0x5bb3df){const _0x4aa000=a1283_0x52041f;return client[_0x4aa000(0x186)](_0x4aa000(0x181),{'body':{'channel':'voice','membername':_0x5bb3df[_0x4aa000(0x179)],'interface':_0x5bb3df[_0x4aa000(0x17b)],'type':'TALKING','enterAt':_0x5bb3df[_0x4aa000(0x17f)],'exitAt':_0x5bb3df[_0x4aa000(0x17c)],'duration':moment(_0x5bb3df[_0x4aa000(0x17c)])[_0x4aa000(0x185)](_0x5bb3df[_0x4aa000(0x17f)],_0x4aa000(0x177))>=0x0?moment(_0x5bb3df[_0x4aa000(0x17c)])['diff'](_0x5bb3df['starttime'],_0x4aa000(0x177)):null,'data1':_0x4aa000(0x187),'data2':_0x5bb3df[_0x4aa000(0x172)],'data3':_0x5bb3df['exten'],'data4':_0x5bb3df['dialstring']||null,'role':_0x4aa000(0x16f),'internal':_0x5bb3df['accountcode']?_['toNumber'](_0x5bb3df[_0x4aa000(0x172)]):undefined,'uniqueid':_0x5bb3df[_0x4aa000(0x17d)]},'log':_0x4aa000(0x181)});}; \ No newline at end of file diff --git a/server/services/ami/rpc/template.js b/server/services/ami/rpc/template.js index 14bdb79..3c258e0 100644 --- a/server/services/ami/rpc/template.js +++ b/server/services/ami/rpc/template.js @@ -1 +1 @@ -const a1120_0x29e2=['html','../client','Request','getTemplates','name','GetTemplate'];(function(_0x28c9b3,_0x29e2bc){const _0xd6024b=function(_0x4309b4){while(--_0x4309b4){_0x28c9b3['push'](_0x28c9b3['shift']());}};_0xd6024b(++_0x29e2bc);}(a1120_0x29e2,0x89));const a1120_0xd602=function(_0x28c9b3,_0x29e2bc){_0x28c9b3=_0x28c9b3-0x0;let _0xd6024b=a1120_0x29e2[_0x28c9b3];return _0xd6024b;};const _0x23301c=a1120_0xd602;'use strict';const client=require(_0x23301c('0x2'));exports[_0x23301c('0x4')]=function(){return function(){const _0xf71e68=a1120_0xd602;return client[_0xf71e68('0x3')](_0xf71e68('0x0'),{'options':{'raw':!![],'attributes':['id',_0xf71e68('0x5'),_0xf71e68('0x1')]},'log':_0xf71e68('0x0')});};}; \ No newline at end of file +const a1284_0x54f8=['getTemplates','Request'];(function(_0x3b4152,_0x5da326){const _0x54f821=function(_0x20f008){while(--_0x20f008){_0x3b4152['push'](_0x3b4152['shift']());}};_0x54f821(++_0x5da326);}(a1284_0x54f8,0xa7));const a1284_0x20f0=function(_0x3b4152,_0x5da326){_0x3b4152=_0x3b4152-0x128;let _0x54f821=a1284_0x54f8[_0x3b4152];return _0x54f821;};const a1284_0x304246=a1284_0x20f0;'use strict';const client=require('../client');exports[a1284_0x304246(0x129)]=function(){return function(){const _0xac39b2=a1284_0x20f0;return client[_0xac39b2(0x128)]('GetTemplate',{'options':{'raw':!![],'attributes':['id','name','html']},'log':'GetTemplate'});};}; \ No newline at end of file diff --git a/server/services/ami/rpc/trigger.js b/server/services/ami/rpc/trigger.js index bd99187..3fa7fef 100644 --- a/server/services/ami/rpc/trigger.js +++ b/server/services/ami/rpc/trigger.js @@ -1 +1 @@ -const a1121_0x1701=['operator','action','data3','data2','name','Request','Actions','field','data6','../client','data5','status','Condition','AnyConditions','data1','data4','value'];(function(_0x3f82fa,_0x1701b1){const _0x52c124=function(_0x182eaf){while(--_0x182eaf){_0x3f82fa['push'](_0x3f82fa['shift']());}};_0x52c124(++_0x1701b1);}(a1121_0x1701,0xbd));const a1121_0x52c1=function(_0x3f82fa,_0x1701b1){_0x3f82fa=_0x3f82fa-0x0;let _0x52c124=a1121_0x1701[_0x3f82fa];return _0x52c124;};const _0x3cfcef=a1121_0x52c1;'use strict';const client=require(_0x3cfcef('0x7'));exports['getTriggers']=function(){return function(){const _0x361324=a1121_0x52c1;return client[_0x361324('0x3')]('GetTrigger',{'options':{'raw':![],'attributes':['id',_0x361324('0x2'),'channel',_0x361324('0x9')],'include':[{'model':'Condition','as':'AllConditions','attributes':['id',_0x361324('0x5'),_0x361324('0xf'),_0x361324('0xe')]},{'model':_0x361324('0xa'),'as':_0x361324('0xb'),'attributes':['id','field',_0x361324('0xf'),'value']},{'model':'Action','as':_0x361324('0x4'),'attributes':['id',_0x361324('0x10'),_0x361324('0xc'),_0x361324('0x1'),_0x361324('0x0'),_0x361324('0xd'),_0x361324('0x8'),_0x361324('0x6'),'data7']}]},'log':'GetTrigger'});};}; \ No newline at end of file +const a1285_0x1543=['operator','Actions','name','AllConditions','data1','AnyConditions','data6','Condition','status','action','data7','Action','GetTrigger','data4','../client','field','value','data2','getTriggers'];(function(_0x5e452b,_0x35f1fe){const _0x1543e4=function(_0xa1064b){while(--_0xa1064b){_0x5e452b['push'](_0x5e452b['shift']());}};_0x1543e4(++_0x35f1fe);}(a1285_0x1543,0x7b));const a1285_0xa106=function(_0x5e452b,_0x35f1fe){_0x5e452b=_0x5e452b-0x10d;let _0x1543e4=a1285_0x1543[_0x5e452b];return _0x1543e4;};const a1285_0x11c748=a1285_0xa106;'use strict';const client=require(a1285_0x11c748(0x112));exports[a1285_0x11c748(0x116)]=function(){return function(){const _0x5a6899=a1285_0xa106;return client['Request'](_0x5a6899(0x110),{'options':{'raw':![],'attributes':['id',_0x5a6899(0x119),'channel',_0x5a6899(0x11f)],'include':[{'model':'Condition','as':_0x5a6899(0x11a),'attributes':['id',_0x5a6899(0x113),_0x5a6899(0x117),_0x5a6899(0x114)]},{'model':_0x5a6899(0x11e),'as':_0x5a6899(0x11c),'attributes':['id',_0x5a6899(0x113),'operator',_0x5a6899(0x114)]},{'model':_0x5a6899(0x10f),'as':_0x5a6899(0x118),'attributes':['id',_0x5a6899(0x10d),_0x5a6899(0x11b),_0x5a6899(0x115),'data3',_0x5a6899(0x111),'data5',_0x5a6899(0x11d),_0x5a6899(0x10e)]}]},'log':'GetTrigger'});};}; \ No newline at end of file diff --git a/server/services/ami/rpc/trunk.js b/server/services/ami/rpc/trunk.js index 5c2cd03..61ca5ea 100644 --- a/server/services/ami/rpc/trunk.js +++ b/server/services/ami/rpc/trunk.js @@ -1 +1 @@ -const a1122_0x20e5=['registry','Request','GetTrunk','getTrunks'];(function(_0x4906a4,_0x20e5d5){const _0x43ba3d=function(_0x4dd243){while(--_0x4dd243){_0x4906a4['push'](_0x4906a4['shift']());}};_0x43ba3d(++_0x20e5d5);}(a1122_0x20e5,0x1b5));const a1122_0x43ba=function(_0x4906a4,_0x20e5d5){_0x4906a4=_0x4906a4-0x0;let _0x43ba3d=a1122_0x20e5[_0x4906a4];return _0x43ba3d;};const _0x843d9f=a1122_0x43ba;'use strict';const client=require('../client');exports[_0x843d9f('0x2')]=function(){return function(){const _0x10a6e7=a1122_0x43ba;return client[_0x10a6e7('0x0')](_0x10a6e7('0x1'),{'options':{'raw':!![],'where':{'active':0x1},'attributes':['id','name',_0x10a6e7('0x3')]},'log':_0x10a6e7('0x1')});};}; \ No newline at end of file +const a1286_0xa446=['GetTrunk','registry','Request','getTrunks'];(function(_0x496c73,_0x5947e5){const _0xa44602=function(_0x4921a8){while(--_0x4921a8){_0x496c73['push'](_0x496c73['shift']());}};_0xa44602(++_0x5947e5);}(a1286_0xa446,0xc2));const a1286_0x4921=function(_0x496c73,_0x5947e5){_0x496c73=_0x496c73-0x118;let _0xa44602=a1286_0xa446[_0x496c73];return _0xa44602;};const a1286_0x56815b=a1286_0x4921;'use strict';const client=require('../client');exports[a1286_0x56815b(0x119)]=function(){return function(){const _0x320111=a1286_0x4921;return client[_0x320111(0x118)](_0x320111(0x11a),{'options':{'raw':!![],'where':{'active':0x1},'attributes':['id','name',_0x320111(0x11b)]},'log':'GetTrunk'});};}; \ No newline at end of file diff --git a/server/services/ami/rpc/user.js b/server/services/ami/rpc/user.js index 523f928..159cd2e 100644 --- a/server/services/ami/rpc/user.js +++ b/server/services/ami/rpc/user.js @@ -1 +1 @@ -const a1123_0x4764=['getAgents','internal','telephone','getAgent','lastPauseAt','accountcode','agent','phone','lastLoginAt','saveUnpause','PauseUser','GetUser','voicePause','Request','name','fullname','pauseType','getTelephones','UnpauseUser','online','../client','ShowUser','interface','savePause','email'];(function(_0x1d758a,_0x4764d9){const _0xc7e35e=function(_0x10279b){while(--_0x10279b){_0x1d758a['push'](_0x1d758a['shift']());}};_0xc7e35e(++_0x4764d9);}(a1123_0x4764,0xd6));const a1123_0xc7e3=function(_0x1d758a,_0x4764d9){_0x1d758a=_0x1d758a-0x0;let _0xc7e35e=a1123_0x4764[_0x1d758a];return _0xc7e35e;};const _0x376a1b=a1123_0xc7e3;'use strict';const client=require(_0x376a1b('0x6'));exports[_0x376a1b('0xb')]=function(){return function(){const _0x5d3e7b=a1123_0xc7e3;return client[_0x5d3e7b('0x18')](_0x5d3e7b('0x16'),{'options':{'raw':![],'where':{'role':_0x5d3e7b('0x11')},'attributes':['id',_0x5d3e7b('0x0'),_0x5d3e7b('0xa'),_0x5d3e7b('0x10'),_0x5d3e7b('0x1'),'online','lastLoginAt',_0x5d3e7b('0x2'),_0x5d3e7b('0xf'),'voicePause',_0x5d3e7b('0x12'),'mobile',_0x5d3e7b('0x8')]},'log':_0x5d3e7b('0xb')});};},exports[_0x376a1b('0x3')]=function(){return function(){const _0x4ac502=a1123_0xc7e3;return client[_0x4ac502('0x18')](_0x4ac502('0x16'),{'options':{'raw':!![],'where':{'role':_0x4ac502('0xd')},'attributes':['id',_0x4ac502('0x0'),_0x4ac502('0x10'),_0x4ac502('0xc')]},'log':_0x4ac502('0x3')});};},exports[_0x376a1b('0x9')]=function(_0x10279b,_0x4e2a02,_0x15b88d){const _0x3fb4ec=_0x376a1b;return client[_0x3fb4ec('0x18')](_0x3fb4ec('0x15'),{'body':{'type':_0x4e2a02,'uniqueid':_0x15b88d},'options':{'where':{'id':_0x10279b['id']}},'log':_0x3fb4ec('0x9')});},exports[_0x376a1b('0x14')]=function(_0x15312f){const _0x46abb1=_0x376a1b;return client[_0x46abb1('0x18')](_0x46abb1('0x4'),{'body':{},'options':{'where':{'id':_0x15312f['id']}},'log':_0x46abb1('0x9')});},exports[_0x376a1b('0xe')]=function(_0x5840b8){const _0x5a6a9c=_0x376a1b;return client[_0x5a6a9c('0x18')](_0x5a6a9c('0x7'),{'options':{'raw':![],'where':{'role':_0x5a6a9c('0x11'),'id':_0x5840b8},'attributes':['id',_0x5a6a9c('0x0'),_0x5a6a9c('0xa'),_0x5a6a9c('0x10'),'fullname',_0x5a6a9c('0x5'),_0x5a6a9c('0x13'),'pauseType',_0x5a6a9c('0xf'),_0x5a6a9c('0x17'),'interface']},'log':_0x5a6a9c('0xe')});}; \ No newline at end of file +const a1287_0x4022=['PauseUser','getAgent','agent','savePause','UnpauseUser','voicePause','ShowUser','online','accountcode','mobile','getTelephones','fullname','GetUser','lastLoginAt','email','Request','phone','getAgents','lastPauseAt','name','../client','internal','saveUnpause','interface'];(function(_0x120e43,_0x265782){const _0x402240=function(_0x1e9208){while(--_0x1e9208){_0x120e43['push'](_0x120e43['shift']());}};_0x402240(++_0x265782);}(a1287_0x4022,0x199));const a1287_0x1e92=function(_0x120e43,_0x265782){_0x120e43=_0x120e43-0xee;let _0x402240=a1287_0x4022[_0x120e43];return _0x402240;};const a1287_0x53556c=a1287_0x1e92;'use strict';const client=require(a1287_0x53556c(0x101));exports[a1287_0x53556c(0xfe)]=function(){return function(){const _0x513da7=a1287_0x1e92;return client[_0x513da7(0xfc)](_0x513da7(0xf9),{'options':{'raw':![],'where':{'role':_0x513da7(0xef)},'attributes':['id',_0x513da7(0x100),_0x513da7(0xfb),_0x513da7(0xf5),_0x513da7(0xf8),'online',_0x513da7(0xfa),'pauseType','lastPauseAt',_0x513da7(0xf2),_0x513da7(0xfd),_0x513da7(0xf6),_0x513da7(0x104)]},'log':_0x513da7(0xfe)});};},exports[a1287_0x53556c(0xf7)]=function(){return function(){const _0x3ab24e=a1287_0x1e92;return client[_0x3ab24e(0xfc)](_0x3ab24e(0xf9),{'options':{'raw':!![],'where':{'role':'telephone'},'attributes':['id',_0x3ab24e(0x100),_0x3ab24e(0xf5),_0x3ab24e(0x102)]},'log':_0x3ab24e(0xf7)});};},exports['savePause']=function(_0x215822,_0xadea39,_0x59a46c){const _0x2d4229=a1287_0x53556c;return client['Request'](_0x2d4229(0x105),{'body':{'type':_0xadea39,'uniqueid':_0x59a46c},'options':{'where':{'id':_0x215822['id']}},'log':_0x2d4229(0xf0)});},exports[a1287_0x53556c(0x103)]=function(_0x1c84bf){const _0x26825d=a1287_0x53556c;return client['Request'](_0x26825d(0xf1),{'body':{},'options':{'where':{'id':_0x1c84bf['id']}},'log':_0x26825d(0xf0)});},exports[a1287_0x53556c(0xee)]=function(_0x4813f1){const _0x485b35=a1287_0x53556c;return client[_0x485b35(0xfc)](_0x485b35(0xf3),{'options':{'raw':![],'where':{'role':_0x485b35(0xef),'id':_0x4813f1},'attributes':['id',_0x485b35(0x100),_0x485b35(0xfb),_0x485b35(0xf5),_0x485b35(0xf8),_0x485b35(0xf4),_0x485b35(0xfa),'pauseType',_0x485b35(0xff),'voicePause',_0x485b35(0x104)]},'log':_0x485b35(0xee)});}; \ No newline at end of file diff --git a/server/services/ami/rpc/voiceAgentReport.js b/server/services/ami/rpc/voiceAgentReport.js index ed0c458..c6f4161 100644 --- a/server/services/ami/rpc/voiceAgentReport.js +++ b/server/services/ami/rpc/voiceAgentReport.js @@ -1 +1 @@ -const a1124_0x285e=['UpdateVoiceAgentReport','../client','Request','CreateVoiceAgentReport','update'];(function(_0x2e65d1,_0x285ebe){const _0x19d4a3=function(_0x3ad635){while(--_0x3ad635){_0x2e65d1['push'](_0x2e65d1['shift']());}};_0x19d4a3(++_0x285ebe);}(a1124_0x285e,0xa0));const a1124_0x19d4=function(_0x2e65d1,_0x285ebe){_0x2e65d1=_0x2e65d1-0x0;let _0x19d4a3=a1124_0x285e[_0x2e65d1];return _0x19d4a3;};const _0x563ac3=a1124_0x19d4;'use strict';const client=require(_0x563ac3('0x1'));exports['create']=function(_0x3ad635){const _0x1df656=_0x563ac3;return client[_0x1df656('0x2')]('CreateVoiceAgentReport',{'body':_0x3ad635,'log':_0x1df656('0x3')});},exports[_0x563ac3('0x4')]=function(_0x4a2cd3,_0xf6990d,_0x5aa063){const _0x193417=_0x563ac3;return client['Request'](_0x193417('0x0'),{'body':_0x4a2cd3,'options':{'where':{'uniqueid':_0xf6990d,'interface':_0x5aa063,'agentcomplete':!![]}},'log':_0x193417('0x0')});}; \ No newline at end of file +const a1288_0x5cca=['Request','UpdateVoiceAgentReport','../client','update','CreateVoiceAgentReport'];(function(_0x189e14,_0x28e17b){const _0x5cca1c=function(_0x4ba50e){while(--_0x4ba50e){_0x189e14['push'](_0x189e14['shift']());}};_0x5cca1c(++_0x28e17b);}(a1288_0x5cca,0x165));const a1288_0x4ba5=function(_0x189e14,_0x28e17b){_0x189e14=_0x189e14-0x1aa;let _0x5cca1c=a1288_0x5cca[_0x189e14];return _0x5cca1c;};const a1288_0xcfece=a1288_0x4ba5;'use strict';const client=require(a1288_0xcfece(0x1aa));exports['create']=function(_0x5732e5){const _0x35e4f2=a1288_0xcfece;return client[_0x35e4f2(0x1ad)](_0x35e4f2(0x1ac),{'body':_0x5732e5,'log':'CreateVoiceAgentReport'});},exports[a1288_0xcfece(0x1ab)]=function(_0x34250a,_0x28ebb1,_0xdce90d){const _0xf52187=a1288_0xcfece;return client[_0xf52187(0x1ad)]('UpdateVoiceAgentReport',{'body':_0x34250a,'options':{'where':{'uniqueid':_0x28ebb1,'interface':_0xdce90d,'agentcomplete':!![]}},'log':_0xf52187(0x1ae)});}; \ No newline at end of file diff --git a/server/services/ami/rpc/voiceCallReport.js b/server/services/ami/rpc/voiceCallReport.js index 8fe7967..c8c7dfe 100644 --- a/server/services/ami/rpc/voiceCallReport.js +++ b/server/services/ami/rpc/voiceCallReport.js @@ -1 +1 @@ -const a1125_0x3d38=['YYYY-MM-DD\x20HH:mm:ss','merge','endOf','format','day','duration','create','outbound','lodash','type','Request','context','GetVoiceCallReports','callerid','moment','disposition','DOCUMENTATION','CreateVoiceCallReport','startOf','billableseconds'];(function(_0x19d163,_0x3d3856){const _0x418184=function(_0x28a4bf){while(--_0x28a4bf){_0x19d163['push'](_0x19d163['shift']());}};_0x418184(++_0x3d3856);}(a1125_0x3d38,0x18b));const a1125_0x4181=function(_0x19d163,_0x3d3856){_0x19d163=_0x19d163-0x0;let _0x418184=a1125_0x3d38[_0x19d163];return _0x418184;};const _0x2fc0d8=a1125_0x4181;'use strict';const moment=require(_0x2fc0d8('0x13')),_=require(_0x2fc0d8('0xd')),client=require('../client');exports[_0x2fc0d8('0xb')]=function(_0x28a4bf){const _0x5be232=_0x2fc0d8;return client[_0x5be232('0xf')](_0x5be232('0x2'),{'body':_[_0x5be232('0x6')](_0x28a4bf,{'source':_0x28a4bf['calleridnum'],'destinationcontext':_0x28a4bf[_0x5be232('0x10')],'callerid':_0x28a4bf[_0x5be232('0x12')],'amaflags':_0x5be232('0x1')}),'log':_0x5be232('0x2')});},exports['getVoiceCallReports']=function(){return function(){const _0x28e59f=a1125_0x4181;return client['Request']('GetVoiceCallReport',{'options':{'where':{'type':[_0x28e59f('0xc')],'createdAt':{'$between':[moment()[_0x28e59f('0x3')]('day')[_0x28e59f('0x8')](_0x28e59f('0x5')),moment()[_0x28e59f('0x7')](_0x28e59f('0x9'))[_0x28e59f('0x8')](_0x28e59f('0x5'))]}},'attributes':[_0x28e59f('0xe'),_0x28e59f('0x0'),_0x28e59f('0xa'),_0x28e59f('0x4')]},'log':_0x28e59f('0x11')});};}; \ No newline at end of file +const a1289_0x444a=['disposition','../client','GetVoiceCallReports','endOf','CreateVoiceCallReport','Request','merge','type','moment','format','day','callerid','lodash','getVoiceCallReports','GetVoiceCallReport','context','billableseconds','duration'];(function(_0x39623c,_0x40ce9c){const _0x444a9e=function(_0x7fe84f){while(--_0x7fe84f){_0x39623c['push'](_0x39623c['shift']());}};_0x444a9e(++_0x40ce9c);}(a1289_0x444a,0x73));const a1289_0x7fe8=function(_0x39623c,_0x40ce9c){_0x39623c=_0x39623c-0x118;let _0x444a9e=a1289_0x444a[_0x39623c];return _0x444a9e;};const a1289_0x1ff3c7=a1289_0x7fe8;'use strict';const moment=require(a1289_0x1ff3c7(0x119)),_=require(a1289_0x1ff3c7(0x11d)),client=require(a1289_0x1ff3c7(0x124));exports['create']=function(_0x5bdd51){const _0x4ce427=a1289_0x1ff3c7;return client[_0x4ce427(0x128)](_0x4ce427(0x127),{'body':_[_0x4ce427(0x129)](_0x5bdd51,{'source':_0x5bdd51['calleridnum'],'destinationcontext':_0x5bdd51[_0x4ce427(0x120)],'callerid':_0x5bdd51[_0x4ce427(0x11c)],'amaflags':'DOCUMENTATION'}),'log':'CreateVoiceCallReport'});},exports[a1289_0x1ff3c7(0x11e)]=function(){return function(){const _0x50ba5b=a1289_0x7fe8;return client[_0x50ba5b(0x128)](_0x50ba5b(0x11f),{'options':{'where':{'type':['outbound'],'createdAt':{'$between':[moment()['startOf'](_0x50ba5b(0x11b))[_0x50ba5b(0x11a)]('YYYY-MM-DD\x20HH:mm:ss'),moment()[_0x50ba5b(0x126)]('day')[_0x50ba5b(0x11a)]('YYYY-MM-DD\x20HH:mm:ss')]}},'attributes':[_0x50ba5b(0x118),_0x50ba5b(0x123),_0x50ba5b(0x122),_0x50ba5b(0x121)]},'log':_0x50ba5b(0x125)});};}; \ No newline at end of file diff --git a/server/services/ami/rpc/voiceDialReport.js b/server/services/ami/rpc/voiceDialReport.js index 5ea1d15..8fc007e 100644 --- a/server/services/ami/rpc/voiceDialReport.js +++ b/server/services/ami/rpc/voiceDialReport.js @@ -1 +1 @@ -const a1126_0x599c=['Request','create','../client','CreateVoiceDialReport'];(function(_0x2e8605,_0x599cf6){const _0x47cf43=function(_0x13a197){while(--_0x13a197){_0x2e8605['push'](_0x2e8605['shift']());}};_0x47cf43(++_0x599cf6);}(a1126_0x599c,0x1ce));const a1126_0x47cf=function(_0x2e8605,_0x599cf6){_0x2e8605=_0x2e8605-0x0;let _0x47cf43=a1126_0x599c[_0x2e8605];return _0x47cf43;};const _0x3aea07=a1126_0x47cf;'use strict';const client=require(_0x3aea07('0x0'));exports[_0x3aea07('0x3')]=function(_0x13a197){const _0xc11881=_0x3aea07;return client[_0xc11881('0x2')](_0xc11881('0x1'),{'body':_0x13a197,'log':_0xc11881('0x1')});}; \ No newline at end of file +const a1290_0x37e2=['create','Request','CreateVoiceDialReport'];(function(_0x27ce3c,_0x5f2382){const _0x37e288=function(_0x2e80e5){while(--_0x2e80e5){_0x27ce3c['push'](_0x27ce3c['shift']());}};_0x37e288(++_0x5f2382);}(a1290_0x37e2,0x103));const a1290_0x2e80=function(_0x27ce3c,_0x5f2382){_0x27ce3c=_0x27ce3c-0x8e;let _0x37e288=a1290_0x37e2[_0x27ce3c];return _0x37e288;};const a1290_0xfc0b17=a1290_0x2e80;'use strict';const client=require('../client');exports[a1290_0xfc0b17(0x90)]=function(_0x322753){const _0x21903f=a1290_0xfc0b17;return client[_0x21903f(0x8e)](_0x21903f(0x8f),{'body':_0x322753,'log':_0x21903f(0x8f)});}; \ No newline at end of file diff --git a/server/services/ami/rpc/voiceExtension.js b/server/services/ami/rpc/voiceExtension.js index 3f30ecc..bb7eb6a 100644 --- a/server/services/ami/rpc/voiceExtension.js +++ b/server/services/ami/rpc/voiceExtension.js @@ -1 +1 @@ -const a1127_0x2ea9=['Request','exten','../client','GetVoiceExtension','recordingFormat','getVoiceExtensions'];(function(_0x4c68e2,_0x2ea954){const _0x4b2e42=function(_0x105297){while(--_0x105297){_0x4c68e2['push'](_0x4c68e2['shift']());}};_0x4b2e42(++_0x2ea954);}(a1127_0x2ea9,0x72));const a1127_0x4b2e=function(_0x4c68e2,_0x2ea954){_0x4c68e2=_0x4c68e2-0x0;let _0x4b2e42=a1127_0x2ea9[_0x4c68e2];return _0x4b2e42;};const _0xe8e182=a1127_0x4b2e;'use strict';const client=require(_0xe8e182('0x2'));exports['getVoiceExtensions']=function(){return function(){const _0x24081e=a1127_0x4b2e;return client[_0x24081e('0x0')](_0x24081e('0x3'),{'options':{'raw':!![],'attributes':['id',_0x24081e('0x1'),_0x24081e('0x4')],'where':{'VoiceExtensionId':null}},'log':_0x24081e('0x5')});};}; \ No newline at end of file +const a1291_0x3572=['getVoiceExtensions','recordingFormat','exten','../client','Request','GetVoiceExtension'];(function(_0x4e89b8,_0x3b4390){const _0x357289=function(_0x348688){while(--_0x348688){_0x4e89b8['push'](_0x4e89b8['shift']());}};_0x357289(++_0x3b4390);}(a1291_0x3572,0x132));const a1291_0x3486=function(_0x4e89b8,_0x3b4390){_0x4e89b8=_0x4e89b8-0x150;let _0x357289=a1291_0x3572[_0x4e89b8];return _0x357289;};const a1291_0x263845=a1291_0x3486;'use strict';const client=require(a1291_0x263845(0x153));exports[a1291_0x263845(0x150)]=function(){return function(){const _0x3144e8=a1291_0x3486;return client[_0x3144e8(0x154)](_0x3144e8(0x155),{'options':{'raw':!![],'attributes':['id',_0x3144e8(0x152),_0x3144e8(0x151)],'where':{'VoiceExtensionId':null}},'log':'getVoiceExtensions'});};}; \ No newline at end of file diff --git a/server/services/ami/rpc/voiceQueue.js b/server/services/ami/rpc/voiceQueue.js index 25f247b..5e9dbca 100644 --- a/server/services/ami/rpc/voiceQueue.js +++ b/server/services/ami/rpc/voiceQueue.js @@ -1 +1 @@ -const a1128_0x3bf8=['dialAMDMinWordLength','mandatoryDisposition','dialAgentRejectRetryFrequency','Request','Pause','dialCheckDuplicateType','active','dialAMDAfterGreetingSilence','dialCutDigit','dialAgentRejectMaxRetry','dialAMDSilenceThreshold','type','Intervals','dialPredictiveOptimization','dialActive','dialMethod','TrunkBackup','dialAMDMaximumNumberOfWords','acwTimeout','GetVoiceQueue','dialOriginateTimeout','dialCongestionRetryFrequency','dialAMDBetweenWordsSilence','Interval','dialDropMaxRetry','dialMachineMaxRetry','dialPredictiveIntervalMinThreshold','dialAMDGreeting','getVoiceQueues','dialCongestionMaxRetry','dialAgiAfterHangupAgent','dialGlobalInterval','dialDropRetryFrequency','Trunk','dialTimezone','dialRecallMeTimeout','dialAMDMaximumWordLength','dialOriginateCallerIdName','dialRecallInQueue','monitor_format','dialPredictiveIntervalMaxThreshold','dialAbandonedMaxRetry','../client','dialAgiAfterHangupClient','dialLimitChannel','name','callerid','dialNoAnswerMaxRetry','dialPowerLevel','dialAMDTotalAnalysisTime','dialBusyMaxRetry','acw','dialGlobalMaxRetry','dialNoAnswerRetryFrequency','dialPredictiveOptimizationPercentage','autopause','strategy','dialNoSuchNumberMaxRetry'];(function(_0x14cda8,_0x3bf8ef){const _0x1d51ee=function(_0x2c7c09){while(--_0x2c7c09){_0x14cda8['push'](_0x14cda8['shift']());}};_0x1d51ee(++_0x3bf8ef);}(a1128_0x3bf8,0x1a8));const a1128_0x1d51=function(_0x14cda8,_0x3bf8ef){_0x14cda8=_0x14cda8-0x0;let _0x1d51ee=a1128_0x3bf8[_0x14cda8];return _0x1d51ee;};const _0x31acc5=a1128_0x1d51;'use strict';const client=require(_0x31acc5('0x18'));exports[_0x31acc5('0xa')]=function(){return function(){const _0xf42d82=a1128_0x1d51;return client[_0xf42d82('0x2b')](_0xf42d82('0x1'),{'options':{'raw':![],'attributes':['id',_0xf42d82('0x1b'),_0xf42d82('0x21'),_0xf42d82('0x0'),_0xf42d82('0x25'),_0xf42d82('0x15'),_0xf42d82('0x33'),_0xf42d82('0x36'),_0xf42d82('0x37'),_0xf42d82('0x1a'),'dialLimitQueue',_0xf42d82('0x1e'),_0xf42d82('0x35'),_0xf42d82('0x24'),'dialPredictiveInterval',_0xf42d82('0x13'),'dialOriginateCallerIdNumber',_0xf42d82('0x2'),'dialQueueOptions','dialQueueTimeout','dialQueueProject',_0xf42d82('0xb'),_0xf42d82('0x3'),_0xf42d82('0x20'),'dialBusyRetryFrequency',_0xf42d82('0x1d'),_0xf42d82('0x23'),_0xf42d82('0x22'),_0xf42d82('0x10'),_0xf42d82('0xd'),'dialPrefix',_0xf42d82('0x2d'),'dialAMDActive','dialAMDInitialSilence',_0xf42d82('0x9'),_0xf42d82('0x2f'),_0xf42d82('0x1f'),_0xf42d82('0x28'),_0xf42d82('0x4'),_0xf42d82('0x39'),_0xf42d82('0x32'),_0xf42d82('0x12'),'timeout',_0xf42d82('0x11'),_0xf42d82('0x14'),'dialOrderByScheduledAt',_0xf42d82('0xc'),_0xf42d82('0x19'),'dialQueueProject2',_0xf42d82('0x15'),_0xf42d82('0x26'),'dialRandomLastDigitCallerIdNumber',_0xf42d82('0x30'),_0xf42d82('0x27'),'dialNoSuchNumberRetryFrequency',_0xf42d82('0x6'),_0xf42d82('0xe'),_0xf42d82('0x17'),'dialAbandonedRetryFrequency',_0xf42d82('0x7'),'dialMachineRetryFrequency',_0xf42d82('0x31'),_0xf42d82('0x2a'),_0xf42d82('0x29'),_0xf42d82('0x16'),_0xf42d82('0x8')],'include':[{'model':_0xf42d82('0xf'),'as':_0xf42d82('0xf'),'attributes':['id',_0xf42d82('0x1b'),_0xf42d82('0x1c'),_0xf42d82('0x2e')]},{'model':_0xf42d82('0x2c'),'as':'mandatoryDispositionPause','attributes':['id',_0xf42d82('0x1b')]},{'model':_0xf42d82('0xf'),'as':_0xf42d82('0x38'),'attributes':['id',_0xf42d82('0x1b'),_0xf42d82('0x1c'),'active']},{'model':'Interval','as':_0xf42d82('0x5'),'attributes':['id',_0xf42d82('0x1b')],'include':[{'model':_0xf42d82('0x5'),'as':_0xf42d82('0x34'),'attributes':['id','name','interval']}]}]},'log':_0xf42d82('0xa')});};}; \ No newline at end of file +const a1292_0x694e=['dialOriginateTimeout','Trunk','dialQueueProject2','timeout','dialQueueProject','acwTimeout','callerid','dialCongestionRetryFrequency','monitor_format','dialMachineMaxRetry','mandatoryDisposition','dialNoAnswerRetryFrequency','mandatoryDispositionPause','dialNoSuchNumberRetryFrequency','dialAMDGreeting','dialOriginateCallerIdName','dialPredictiveIntervalMinThreshold','dialAgentRejectRetryFrequency','getVoiceQueues','dialAgiAfterHangupClient','dialAMDTotalAnalysisTime','dialAgentRejectMaxRetry','active','dialQueueOptions','dialAMDInitialSilence','dialAMDSilenceThreshold','dialPredictiveIntervalMaxThreshold','strategy','dialQueueTimeout','autopause','dialOriginateCallerIdNumber','dialDropRetryFrequency','Request','interval','dialPredictiveInterval','dialRecallMeTimeout','dialPredictiveOptimizationPercentage','dialAMDMaximumWordLength','dialOrderByScheduledAt','dialGlobalMaxRetry','name','dialLimitChannel','GetVoiceQueue','dialRandomLastDigitCallerIdNumber','dialAbandonedMaxRetry','dialLimitQueue','dialMethod','dialGlobalInterval','dialMachineRetryFrequency','Interval','dialDropMaxRetry','dialTimezone','dialAMDMinWordLength','dialBusyRetryFrequency','dialNoAnswerMaxRetry','dialAgiAfterHangupAgent','dialPrefix'];(function(_0x2f7f43,_0x37cd04){const _0x694e75=function(_0x4c3b64){while(--_0x4c3b64){_0x2f7f43['push'](_0x2f7f43['shift']());}};_0x694e75(++_0x37cd04);}(a1292_0x694e,0x15d));const a1292_0x4c3b=function(_0x2f7f43,_0x37cd04){_0x2f7f43=_0x2f7f43-0x6c;let _0x694e75=a1292_0x694e[_0x2f7f43];return _0x694e75;};const a1292_0xf671de=a1292_0x4c3b;'use strict';const client=require('../client');exports[a1292_0xf671de(0x77)]=function(){return function(){const _0x92ec36=a1292_0x4c3b;return client[_0x92ec36(0x85)](_0x92ec36(0x8f),{'options':{'raw':![],'attributes':['id',_0x92ec36(0x8d),'acw',_0x92ec36(0xa3),_0x92ec36(0x82),'monitor_format','type','dialActive',_0x92ec36(0x93),_0x92ec36(0x8e),_0x92ec36(0x92),'dialPowerLevel','dialPredictiveOptimization',_0x92ec36(0x89),_0x92ec36(0x87),_0x92ec36(0x74),_0x92ec36(0x83),_0x92ec36(0x9e),_0x92ec36(0x7c),_0x92ec36(0x81),_0x92ec36(0xa2),'dialCongestionMaxRetry',_0x92ec36(0x6c),'dialBusyMaxRetry',_0x92ec36(0x9a),_0x92ec36(0x9b),_0x92ec36(0x70),_0x92ec36(0x8c),_0x92ec36(0x98),_0x92ec36(0x94),_0x92ec36(0x9d),'dialCheckDuplicateType','dialAMDActive',_0x92ec36(0x7d),_0x92ec36(0x73),'dialAMDAfterGreetingSilence',_0x92ec36(0x79),_0x92ec36(0x99),'dialAMDBetweenWordsSilence','dialAMDMaximumNumberOfWords',_0x92ec36(0x7e),_0x92ec36(0x8a),_0x92ec36(0xa1),_0x92ec36(0x88),'dialRecallInQueue',_0x92ec36(0x8b),_0x92ec36(0x9c),_0x92ec36(0x78),_0x92ec36(0xa0),_0x92ec36(0x6d),_0x92ec36(0x80),_0x92ec36(0x90),'dialCutDigit','dialNoSuchNumberMaxRetry',_0x92ec36(0x72),_0x92ec36(0x97),_0x92ec36(0x84),_0x92ec36(0x91),'dialAbandonedRetryFrequency',_0x92ec36(0x6e),_0x92ec36(0x95),_0x92ec36(0x7a),_0x92ec36(0x76),_0x92ec36(0x6f),_0x92ec36(0x7f),_0x92ec36(0x75)],'include':[{'model':_0x92ec36(0x9f),'as':_0x92ec36(0x9f),'attributes':['id',_0x92ec36(0x8d),_0x92ec36(0xa4),_0x92ec36(0x7b)]},{'model':'Pause','as':_0x92ec36(0x71),'attributes':['id',_0x92ec36(0x8d)]},{'model':_0x92ec36(0x9f),'as':'TrunkBackup','attributes':['id','name',_0x92ec36(0xa4),_0x92ec36(0x7b)]},{'model':_0x92ec36(0x96),'as':'Interval','attributes':['id',_0x92ec36(0x8d)],'include':[{'model':'Interval','as':'Intervals','attributes':['id',_0x92ec36(0x8d),_0x92ec36(0x86)]}]}]},'log':_0x92ec36(0x77)});};}; \ No newline at end of file diff --git a/server/services/ami/rpc/voiceQueueReport.js b/server/services/ami/rpc/voiceQueueReport.js index 569826d..53ccd66 100644 --- a/server/services/ami/rpc/voiceQueueReport.js +++ b/server/services/ami/rpc/voiceQueueReport.js @@ -1 +1 @@ -const a1129_0x2f88=['queuecallercompleteAt','queuecallerexitAt','format','day','CreateVoiceQueueReport','GetVoiceQueueReports','Request','endOf','uniqueid','moment','queuecallerexit','YYYY-MM-DD\x20HH:mm:ss','queuecallerjoinAt','create','startOf','queuecallerabandon','queuecallerleaveAt'];(function(_0x2a1b93,_0x2f88e6){const _0x45afd6=function(_0x46fb1a){while(--_0x46fb1a){_0x2a1b93['push'](_0x2a1b93['shift']());}};_0x45afd6(++_0x2f88e6);}(a1129_0x2f88,0x90));const a1129_0x45af=function(_0x2a1b93,_0x2f88e6){_0x2a1b93=_0x2a1b93-0x0;let _0x45afd6=a1129_0x2f88[_0x2a1b93];return _0x45afd6;};const _0x2c691e=a1129_0x45af;'use strict';const moment=require(_0x2c691e('0x1')),client=require('../client');exports[_0x2c691e('0x5')]=function(_0x46fb1a){const _0x43ebe9=_0x2c691e;return client['Request'](_0x43ebe9('0xd'),{'body':_0x46fb1a,'log':_0x43ebe9('0xd')});},exports['getVoiceQueueReports']=function(){return function(){const _0x282a02=a1129_0x45af;return client[_0x282a02('0xf')]('GetVoiceQueueReport',{'options':{'where':{'createdAt':{'$between':[moment()[_0x282a02('0x6')](_0x282a02('0xc'))[_0x282a02('0xb')](_0x282a02('0x3')),moment()[_0x282a02('0x10')](_0x282a02('0xc'))['format'](_0x282a02('0x3'))]}},'attributes':[_0x282a02('0x0'),'queue',_0x282a02('0x4'),_0x282a02('0x8'),'queuecallercomplete',_0x282a02('0x9'),_0x282a02('0x2'),_0x282a02('0xa'),_0x282a02('0x7'),'queuecallerabandonAt']},'log':_0x282a02('0xe')});};}; \ No newline at end of file +const a1293_0x4c50=['endOf','format','getVoiceQueueReports','Request','queuecallerabandonAt','queuecallerleaveAt','queuecallerjoinAt','queuecallerexit','YYYY-MM-DD\x20HH:mm:ss','queuecallerexitAt','CreateVoiceQueueReport','../client','queuecallercomplete','moment','create','GetVoiceQueueReport','startOf','day','queue','queuecallerabandon'];(function(_0x3d82b7,_0x22a295){const _0x4c501c=function(_0x5cb100){while(--_0x5cb100){_0x3d82b7['push'](_0x3d82b7['shift']());}};_0x4c501c(++_0x22a295);}(a1293_0x4c50,0x1d8));const a1293_0x5cb1=function(_0x3d82b7,_0x22a295){_0x3d82b7=_0x3d82b7-0xc3;let _0x4c501c=a1293_0x4c50[_0x3d82b7];return _0x4c501c;};const a1293_0xb69b38=a1293_0x5cb1;'use strict';const moment=require(a1293_0xb69b38(0xc4)),client=require(a1293_0xb69b38(0xd6));exports[a1293_0xb69b38(0xc5)]=function(_0x17018e){const _0x52d8fe=a1293_0xb69b38;return client[_0x52d8fe(0xce)](_0x52d8fe(0xd5),{'body':_0x17018e,'log':'CreateVoiceQueueReport'});},exports[a1293_0xb69b38(0xcd)]=function(){return function(){const _0x8c2b1e=a1293_0x5cb1;return client['Request'](_0x8c2b1e(0xc6),{'options':{'where':{'createdAt':{'$between':[moment()[_0x8c2b1e(0xc7)](_0x8c2b1e(0xc8))['format'](_0x8c2b1e(0xd3)),moment()[_0x8c2b1e(0xcb)]('day')[_0x8c2b1e(0xcc)](_0x8c2b1e(0xd3))]}},'attributes':['uniqueid',_0x8c2b1e(0xc9),_0x8c2b1e(0xd1),_0x8c2b1e(0xd0),_0x8c2b1e(0xc3),'queuecallercompleteAt',_0x8c2b1e(0xd2),_0x8c2b1e(0xd4),_0x8c2b1e(0xca),_0x8c2b1e(0xcf)]},'log':'GetVoiceQueueReports'});};}; \ No newline at end of file diff --git a/server/services/ami/rpc/voiceQueueRt.js b/server/services/ami/rpc/voiceQueueRt.js index b7fce09..09b1300 100644 --- a/server/services/ami/rpc/voiceQueueRt.js +++ b/server/services/ami/rpc/voiceQueueRt.js @@ -1 +1 @@ -const a1130_0x1195=['getVoiceQueueRtPauses','../client'];(function(_0x490e54,_0x119578){const _0x3e1cca=function(_0x25846c){while(--_0x25846c){_0x490e54['push'](_0x490e54['shift']());}};_0x3e1cca(++_0x119578);}(a1130_0x1195,0xbd));const a1130_0x3e1c=function(_0x490e54,_0x119578){_0x490e54=_0x490e54-0x0;let _0x3e1cca=a1130_0x1195[_0x490e54];return _0x3e1cca;};const _0x1dd72e=a1130_0x3e1c;'use strict';const client=require(_0x1dd72e('0x0'));exports['getVoiceQueueRtPauses']=function(_0x25846c){return function(){const _0x4e60bd=a1130_0x3e1c;return client['Request']('GetVoiceQueueRtPauses',{'options':{'where':{'VoiceQueueId':_0x25846c,'paused':!![]},'raw':!![]},'log':_0x4e60bd('0x1')});};}; \ No newline at end of file +const a1294_0x52e9=['GetVoiceQueueRtPauses','getVoiceQueueRtPauses','Request','../client'];(function(_0x364ac0,_0x3b94b6){const _0x52e975=function(_0x574ff7){while(--_0x574ff7){_0x364ac0['push'](_0x364ac0['shift']());}};_0x52e975(++_0x3b94b6);}(a1294_0x52e9,0xcb));const a1294_0x574f=function(_0x364ac0,_0x3b94b6){_0x364ac0=_0x364ac0-0x7a;let _0x52e975=a1294_0x52e9[_0x364ac0];return _0x52e975;};const a1294_0x2456d2=a1294_0x574f;'use strict';const client=require(a1294_0x2456d2(0x7a));exports['getVoiceQueueRtPauses']=function(_0x56ef96){return function(){const _0x511171=a1294_0x574f;return client[_0x511171(0x7d)](_0x511171(0x7b),{'options':{'where':{'VoiceQueueId':_0x56ef96,'paused':!![]},'raw':!![]},'log':_0x511171(0x7c)});};}; \ No newline at end of file diff --git a/server/services/ami/rpc/voiceRecording.js b/server/services/ami/rpc/voiceRecording.js index fca384f..c0e5129 100644 --- a/server/services/ami/rpc/voiceRecording.js +++ b/server/services/ami/rpc/voiceRecording.js @@ -1 +1 @@ -const a1131_0x5cca=['create','lodash','merge','../client','CreateVoiceRecording'];(function(_0x4a4881,_0x5cca5f){const _0x4f5f8f=function(_0xc7f3e9){while(--_0xc7f3e9){_0x4a4881['push'](_0x4a4881['shift']());}};_0x4f5f8f(++_0x5cca5f);}(a1131_0x5cca,0x89));const a1131_0x4f5f=function(_0x4a4881,_0x5cca5f){_0x4a4881=_0x4a4881-0x0;let _0x4f5f8f=a1131_0x5cca[_0x4a4881];return _0x4f5f8f;};const _0x182560=a1131_0x4f5f;'use strict';const _=require(_0x182560('0x4')),client=require(_0x182560('0x1'));exports[_0x182560('0x3')]=function(_0xc7f3e9){const _0x35287e=_0x182560;return client['Request'](_0x35287e('0x2'),{'body':_[_0x35287e('0x0')](_0xc7f3e9,{'value':_0xc7f3e9['monitorFilename']}),'log':_0x35287e('0x2')});}; \ No newline at end of file +const a1295_0x29f5=['lodash','monitorFilename','../client','merge','Request','CreateVoiceRecording'];(function(_0x25d54b,_0x3e254d){const _0x29f573=function(_0x3cc9f9){while(--_0x3cc9f9){_0x25d54b['push'](_0x25d54b['shift']());}};_0x29f573(++_0x3e254d);}(a1295_0x29f5,0x1ad));const a1295_0x3cc9=function(_0x25d54b,_0x3e254d){_0x25d54b=_0x25d54b-0xcb;let _0x29f573=a1295_0x29f5[_0x25d54b];return _0x29f573;};const a1295_0x10b4b8=a1295_0x3cc9;'use strict';const _=require(a1295_0x10b4b8(0xce)),client=require(a1295_0x10b4b8(0xd0));exports['create']=function(_0xf730a3){const _0x445d33=a1295_0x10b4b8;return client[_0x445d33(0xcc)](_0x445d33(0xcd),{'body':_[_0x445d33(0xcb)](_0xf730a3,{'value':_0xf730a3[_0x445d33(0xcf)]}),'log':'CreateVoiceRecording'});}; \ No newline at end of file diff --git a/server/services/ami/rpc/voiceTransferReport.js b/server/services/ami/rpc/voiceTransferReport.js index 9003aea..0fb5b22 100644 --- a/server/services/ami/rpc/voiceTransferReport.js +++ b/server/services/ami/rpc/voiceTransferReport.js @@ -1 +1 @@ -const a1132_0x1763=['CreateVoiceTransferReport','transfereecalleridnum','transfereeconnectedlinename','transfererlinkedid','transfererconnectedlinename','origtransfereraccountcode','origtransfererlinkedid','transfertargetconnectedlinenum','transfererchannel','transfererexten','../client','transfereecalleridname','transfertargetexten','transfereeexten','secondtransfererexten','origtransfererchannel','origtransferercontext','transfertargetlinkedid','transfertargetcalleridname','Request','transferercalleridnum','blind','blindTransfer','origtransferercalleridname','transferercalleridname','transfereelinkedid','origtransfererexten','transfertargetaccountcode','secondtransferercontext','origtransferercalleridnum','transfereechannel','extension','attendedTransfer','transfereraccountcode','attended','transfertargetcalleridnum','transfertargetchannel','transfereecontext','transfereeaccountcode','transfertargetconnectedlinename','transfertargetcontext','isexternal','transfereeconnectedlinenum'];(function(_0x15b0da,_0x17630a){const _0x39de93=function(_0x2003cf){while(--_0x2003cf){_0x15b0da['push'](_0x15b0da['shift']());}};_0x39de93(++_0x17630a);}(a1132_0x1763,0xb0));const a1132_0x39de=function(_0x15b0da,_0x17630a){_0x15b0da=_0x15b0da-0x0;let _0x39de93=a1132_0x1763[_0x15b0da];return _0x39de93;};const _0x293231=a1132_0x39de;'use strict';const client=require(_0x293231('0x6'));exports['transfers']={},exports[_0x293231('0x12')]=function(_0x2003cf){const _0x3f393f=_0x293231;return client[_0x3f393f('0xf')](_0x3f393f('0x27'),{'body':{'result':_0x2003cf['result'],'transfererchannel':_0x2003cf[_0x3f393f('0x4')],'transferercalleridnum':_0x2003cf[_0x3f393f('0x10')],'transferercalleridname':_0x2003cf[_0x3f393f('0x14')],'transfererconnectedlinenum':_0x2003cf['transfererconnectedlinenum'],'transfererconnectedlinename':_0x2003cf[_0x3f393f('0x0')],'transfereraccountcode':_0x2003cf[_0x3f393f('0x1d')],'transferercontext':_0x2003cf['transferercontext'],'transfererexten':_0x2003cf[_0x3f393f('0x5')],'transfererlinkedid':_0x2003cf[_0x3f393f('0x2a')],'transfereechannel':_0x2003cf[_0x3f393f('0x1a')],'transfereecalleridnum':_0x2003cf[_0x3f393f('0x28')],'transfereecalleridname':_0x2003cf[_0x3f393f('0x7')],'transfereeconnectedlinenum':_0x2003cf[_0x3f393f('0x26')],'transfereeconnectedlinename':_0x2003cf[_0x3f393f('0x29')],'transfereeaccountcode':_0x2003cf[_0x3f393f('0x22')],'transfereecontext':_0x2003cf[_0x3f393f('0x21')],'transfereeexten':_0x2003cf[_0x3f393f('0x9')],'transfereelinkedid':_0x2003cf[_0x3f393f('0x15')],'isexternal':_0x2003cf[_0x3f393f('0x25')],'context':_0x2003cf['context'],'extension':_0x2003cf[_0x3f393f('0x1b')],'type':_0x3f393f('0x11')},'log':_0x3f393f('0x27')});},exports[_0x293231('0x1c')]=function(_0x333394){const _0x4fe8b6=_0x293231;return client[_0x4fe8b6('0xf')](_0x4fe8b6('0x27'),{'body':{'result':_0x333394['result'],'transfererchannel':_0x333394[_0x4fe8b6('0xb')],'transferercalleridnum':_0x333394[_0x4fe8b6('0x19')],'transferercalleridname':_0x333394[_0x4fe8b6('0x13')],'transfererconnectedlinenum':_0x333394['secondtransfererconnectedlinenum'],'transfererconnectedlinename':_0x333394['secondtransfererconnectedlinename'],'transfereraccountcode':_0x333394[_0x4fe8b6('0x1')],'transferercontext':_0x333394[_0x4fe8b6('0x18')],'transfererexten':_0x333394[_0x4fe8b6('0xa')],'transfererlinkedid':_0x333394[_0x4fe8b6('0x2')],'transfereechannel':_0x333394[_0x4fe8b6('0x20')],'transfereecalleridnum':_0x333394[_0x4fe8b6('0x1f')],'transfereecalleridname':_0x333394[_0x4fe8b6('0xe')],'transfereeconnectedlinenum':_0x333394[_0x4fe8b6('0x3')],'transfereeconnectedlinename':_0x333394[_0x4fe8b6('0x23')],'transfereeaccountcode':_0x333394[_0x4fe8b6('0x17')],'transfereecontext':_0x333394[_0x4fe8b6('0x24')],'transfereeexten':_0x333394[_0x4fe8b6('0x8')],'transfereelinkedid':_0x333394[_0x4fe8b6('0xd')],'isexternal':_0x333394[_0x4fe8b6('0x25')],'context':_0x333394[_0x4fe8b6('0xc')],'extension':_0x333394[_0x4fe8b6('0x16')],'type':_0x4fe8b6('0x1e')},'log':_0x4fe8b6('0x27')});}; \ No newline at end of file +const a1296_0x5b97=['secondtransfererconnectedlinename','../client','result','secondtransferercontext','origtransfererlinkedid','transfererconnectedlinenum','transfererexten','blindTransfer','transfereecalleridname','context','transfereeexten','transfereecontext','transfereeaccountcode','origtransferercalleridname','transfertargetexten','transfertargetconnectedlinename','isexternal','attendedTransfer','transferercalleridnum','CreateVoiceTransferReport','transfererchannel','origtransfereraccountcode','blind','transfereeconnectedlinename','transfereeconnectedlinenum','transfertargetcalleridname','transfertargetcalleridnum','transfertargetaccountcode','transfereraccountcode','transfererlinkedid','transfers','transfertargetconnectedlinenum','transferercalleridname','transfereelinkedid','attended','transfertargetlinkedid','origtransfererexten','Request'];(function(_0x38d5d6,_0x28224f){const _0x5b9766=function(_0x38e3e3){while(--_0x38e3e3){_0x38d5d6['push'](_0x38d5d6['shift']());}};_0x5b9766(++_0x28224f);}(a1296_0x5b97,0x1da));const a1296_0x38e3=function(_0x38d5d6,_0x28224f){_0x38d5d6=_0x38d5d6-0x125;let _0x5b9766=a1296_0x5b97[_0x38d5d6];return _0x5b9766;};const a1296_0x5001e0=a1296_0x38e3;'use strict';const client=require(a1296_0x5001e0(0x13a));exports[a1296_0x5001e0(0x131)]={},exports[a1296_0x5001e0(0x140)]=function(_0x7a48d7){const _0x3cc1d1=a1296_0x5001e0;return client[_0x3cc1d1(0x138)](_0x3cc1d1(0x126),{'body':{'result':_0x7a48d7[_0x3cc1d1(0x13b)],'transfererchannel':_0x7a48d7[_0x3cc1d1(0x127)],'transferercalleridnum':_0x7a48d7[_0x3cc1d1(0x125)],'transferercalleridname':_0x7a48d7[_0x3cc1d1(0x133)],'transfererconnectedlinenum':_0x7a48d7[_0x3cc1d1(0x13e)],'transfererconnectedlinename':_0x7a48d7['transfererconnectedlinename'],'transfereraccountcode':_0x7a48d7[_0x3cc1d1(0x12f)],'transferercontext':_0x7a48d7['transferercontext'],'transfererexten':_0x7a48d7[_0x3cc1d1(0x13f)],'transfererlinkedid':_0x7a48d7[_0x3cc1d1(0x130)],'transfereechannel':_0x7a48d7['transfereechannel'],'transfereecalleridnum':_0x7a48d7['transfereecalleridnum'],'transfereecalleridname':_0x7a48d7[_0x3cc1d1(0x141)],'transfereeconnectedlinenum':_0x7a48d7[_0x3cc1d1(0x12b)],'transfereeconnectedlinename':_0x7a48d7[_0x3cc1d1(0x12a)],'transfereeaccountcode':_0x7a48d7[_0x3cc1d1(0x145)],'transfereecontext':_0x7a48d7[_0x3cc1d1(0x144)],'transfereeexten':_0x7a48d7[_0x3cc1d1(0x143)],'transfereelinkedid':_0x7a48d7[_0x3cc1d1(0x134)],'isexternal':_0x7a48d7[_0x3cc1d1(0x149)],'context':_0x7a48d7[_0x3cc1d1(0x142)],'extension':_0x7a48d7['extension'],'type':_0x3cc1d1(0x129)},'log':_0x3cc1d1(0x126)});},exports[a1296_0x5001e0(0x14a)]=function(_0x11adf4){const _0x22e661=a1296_0x5001e0;return client[_0x22e661(0x138)](_0x22e661(0x126),{'body':{'result':_0x11adf4[_0x22e661(0x13b)],'transfererchannel':_0x11adf4['origtransfererchannel'],'transferercalleridnum':_0x11adf4['origtransferercalleridnum'],'transferercalleridname':_0x11adf4[_0x22e661(0x146)],'transfererconnectedlinenum':_0x11adf4['secondtransfererconnectedlinenum'],'transfererconnectedlinename':_0x11adf4[_0x22e661(0x139)],'transfereraccountcode':_0x11adf4[_0x22e661(0x128)],'transferercontext':_0x11adf4[_0x22e661(0x13c)],'transfererexten':_0x11adf4['secondtransfererexten'],'transfererlinkedid':_0x11adf4[_0x22e661(0x13d)],'transfereechannel':_0x11adf4['transfertargetchannel'],'transfereecalleridnum':_0x11adf4[_0x22e661(0x12d)],'transfereecalleridname':_0x11adf4[_0x22e661(0x12c)],'transfereeconnectedlinenum':_0x11adf4[_0x22e661(0x132)],'transfereeconnectedlinename':_0x11adf4[_0x22e661(0x148)],'transfereeaccountcode':_0x11adf4[_0x22e661(0x12e)],'transfereecontext':_0x11adf4['transfertargetcontext'],'transfereeexten':_0x11adf4[_0x22e661(0x147)],'transfereelinkedid':_0x11adf4[_0x22e661(0x136)],'isexternal':_0x11adf4['isexternal'],'context':_0x11adf4['origtransferercontext'],'extension':_0x11adf4[_0x22e661(0x137)],'type':_0x22e661(0x135)},'log':_0x22e661(0x126)});}; \ No newline at end of file diff --git a/server/services/ami/server/index.js b/server/services/ami/server/index.js index 2db148b..6ec0c74 100644 --- a/server/services/ami/server/index.js +++ b/server/services/ami/server/index.js @@ -1 +1 @@ -const a1133_0x59ad=['util','erlangCallToSecond','callerid','stop','context','MixMonitor\x20Success','keys','predictiveIntervalTotalCalls','127.0.0.1','originated','erlangBusyFactor','outbound','outboundBusyCallsDay','mixmonitorid','destinationchannel','outboundDropCallsDayCallersExit','values','channels','wav','predictiveIntervalErlangCallsDroppedCalls','undefined','then','type','outboundDropCallsDayTimeout','outboundBlacklistCallsDay','outboundReCallsDay','Interval','voiceQueues','../../../config/environment','timers','strategy','command','AMI\x20RPC\x20server\x20listening\x20on\x20127.0.0.1:%d!','join','loggedIn','dialMethod','timer','/var/spool/asterisk/monitor/','checkAfterSend','event','abandoned','Action','content','Reload','%s.%s','dialPrefix','startPredictive','asterisk','voicechannel','queueChannels','ami\x20disconnected','jayson/promise','StopMixMonitor\x20Success','find','predictiveIntervalAvgTalktime','answered','isNil','ai(mixmonitorid)','channel','outboundCongestionCallsDay','MixMonitor','dialOriginateTimeout','campaigns','active','%s/%s','pause','uniqueid','dialOriginateCallerIdName','StopMixMonitor','status','predictiveIntervalAvgHoldtime','message','outboundRejectCallsDay','outboundOriginateFailureCallsDay','Event\x20name\x20mandatory','sumBillable','listen','outboundChannels','predictiveIntervalErlangCalls','total','voicequeuechannelhangup','waiting','outboundAnswerAgiCallsDay','sumHoldTime','filename','predictiveIntervalAvailable','pick','predictiveIntervalDroppedCallsTimeout','username','custom:','outboundAnswerCallsDay','loggedInDb','monitors','outboundNoSuchCallsDay','erlangCalls','dialOriginateCallerIdNumber','predictiveIntervalMultiplicativeFactor','RPC\x20listening\x20on\x20port:','sumDuration','voicequeuechannelredirect','outboundDropCallsDayACS','moment','validate','Trunk','faxAccounts','toLowerCase','../ami','startProgressive','map','../properties','Hangup','catch','predictiveIntervalPauses','exten','format','length','action','pTalking','server','name','predictiveIntervalDroppedCallsCallersExit','unmanaged','isConnected','error','outboundUnknownCallsDay','send','voicequeuechannel','Channel\x20doesn\x27t\x20exist','predictiveIntervalAnsweredCalls','erlangAbandonmentRate','lodash','outboundNoAnswerCallsDay','dialActive','rec','predictiveIntervalHitRate','push'];(function(_0x4c7165,_0x59ad5e){const _0x1e052b=function(_0x7c9da8){while(--_0x7c9da8){_0x4c7165['push'](_0x4c7165['shift']());}};_0x1e052b(++_0x59ad5e);}(a1133_0x59ad,0x19c));const a1133_0x1e05=function(_0x4c7165,_0x59ad5e){_0x4c7165=_0x4c7165-0x0;let _0x1e052b=a1133_0x59ad[_0x4c7165];return _0x1e052b;};const _0x167dd2=a1133_0x1e05;'use strict';const _=require(_0x167dd2('0x7e')),util=require(_0x167dd2('0x84')),jayson=require(_0x167dd2('0x2f')),schema=require(_0x167dd2('0x62')),moment=require(_0x167dd2('0x61')),config=require(_0x167dd2('0x18')),properties=require(_0x167dd2('0x69')),ami=require(_0x167dd2('0x66'));exports['listen']=function(_0x7c9da8,_0x292796,_0x1cedb4){return new Promise(function(_0x41c720,_0x58fa79){const _0x2512d1=a1133_0x1e05,_0x203350={'QueuePause':function(_0x1fb2e1){return new Promise(function(_0x7d1761){const _0x54e05d=a1133_0x1e05,_0x4cd4f5=util[_0x54e05d('0x6e')](_0x54e05d('0x3c'),'SIP',_0x1fb2e1[_0x54e05d('0x73')]);_0x7c9da8['timers']&&_0x7c9da8['timers'][_0x4cd4f5]&&_0x7c9da8[_0x54e05d('0x19')][_0x4cd4f5][_0x54e05d('0x20')]&&_0x7c9da8[_0x54e05d('0x19')][_0x4cd4f5]['updateAcw'](),_0x7c9da8['agents'][_0x4cd4f5]&&_0x7c9da8['agents'][_0x4cd4f5]['updateStatusRealtime']({'statePause':_0x1fb2e1[_0x54e05d('0x3d')]?!![]:![]}),_0x7d1761({'code':0xc8,'message':'QueuePause'});});},'Reload':function(_0x5f02af){const _0x372558=this;return new Promise(function(_0x2d95c0,_0x51a2b8){const _0x13215d=a1133_0x1e05;if(ami[_0x13215d('0x76')]()==![])return _0x51a2b8(_0x372558['error'](0x1f4,[config[_0x13215d('0x2b')]['ip'],config[_0x13215d('0x2b')][_0x13215d('0x54')],_0x13215d('0x2e')]['join']('\x20')));return _0x5f02af=_[_0x13215d('0x52')](_0x5f02af,_[_0x13215d('0x2')](properties['module'])),_0x5f02af[_0x13215d('0x70')]=_0x13215d('0x27'),ami[_0x13215d('0x25')](_0x5f02af)['then'](function(_0x3d6d73){const _0x5f4591=_0x13215d;_0x2d95c0({'code':0xc8,'message':_0x3d6d73[_0x5f4591('0x43')]});})[_0x13215d('0x6b')](function(_0x353bd6){const _0x3f5d28=_0x13215d;_0x51a2b8(_0x372558['error'](0x1f5,_0x353bd6[_0x3f5d28('0x43')]));});});},'Command':function(_0x440cfa){const _0x3059ec=this;return new Promise(function(_0x2b49b4,_0x4e140d){const _0x59938e=a1133_0x1e05;if(ami['isConnected']()==![])return _0x4e140d(_0x3059ec[_0x59938e('0x77')](0x1f4,[config[_0x59938e('0x2b')]['ip'],config['asterisk']['username'],_0x59938e('0x2e')][_0x59938e('0x1d')]('\x20')));return _0x440cfa=_[_0x59938e('0x52')](_0x440cfa,_0x59938e('0x1b')),_0x440cfa[_0x59938e('0x70')]='Command',ami['Action'](_0x440cfa)[_0x59938e('0x11')](function(_0x1b10bc){const _0x1f2c69=_0x59938e;_0x2b49b4({'code':0xc8,'message':_0x1b10bc[_0x1f2c69('0x26')]});})[_0x59938e('0x6b')](function(_0x462eff){const _0x289efb=_0x59938e;_0x4e140d(_0x3059ec[_0x289efb('0x77')](0x1f5,_0x462eff[_0x289efb('0x43')]));});});},'VoiceQueues':function(){return new Promise(function(_0x517519){const _0x4b209d=a1133_0x1e05,_0x3a876a=[];for(const _0x3c6b68 in _0x7c9da8['voiceQueues']){if(typeof _0x7c9da8[_0x4b209d('0x17')][_0x3c6b68]!==_0x4b209d('0x10')){const _0x498efc=_0x7c9da8['voiceQueues'][_0x3c6b68],_0x25282c={'id':_0x498efc['id'],'name':_0x498efc[_0x4b209d('0x73')],'strategy':_0x498efc[_0x4b209d('0x1a')],'answered':_0x498efc[_0x4b209d('0x33')],'available':_0x498efc['available'],'loggedIn':_0x498efc[_0x4b209d('0x1e')],'pTalking':_0x498efc[_0x4b209d('0x71')],'sumBillable':_0x498efc[_0x4b209d('0x47')],'sumDuration':_0x498efc[_0x4b209d('0x5e')],'sumHoldTime':_0x498efc[_0x4b209d('0x4f')]||0x0,'talking':_0x498efc['talking'],'total':_0x498efc[_0x4b209d('0x4b')],'type':_0x498efc[_0x4b209d('0x12')],'unmanaged':_0x498efc[_0x4b209d('0x75')],'abandoned':_0x498efc[_0x4b209d('0x24')],'waiting':_0x498efc[_0x4b209d('0x4d')],'loggedInDb':_0x498efc[_0x4b209d('0x57')]};_0x498efc[_0x4b209d('0x12')]===_0x4b209d('0x7')&&(_0x25282c[_0x4b209d('0x80')]=_0x498efc[_0x4b209d('0x80')],_0x25282c[_0x4b209d('0x1f')]=_0x498efc[_0x4b209d('0x1f')],_0x25282c[_0x4b209d('0x3f')]=_0x498efc[_0x4b209d('0x3f')],_0x25282c[_0x4b209d('0x5b')]=_0x498efc[_0x4b209d('0x5b')],_0x25282c[_0x4b209d('0x39')]=_0x498efc['dialOriginateTimeout'],_0x25282c['dialPrefix']=_0x498efc[_0x4b209d('0x29')],_0x25282c[_0x4b209d('0x4e')]=_0x498efc['outboundAnswerAgiCallsDay'],_0x25282c[_0x4b209d('0x56')]=_0x498efc[_0x4b209d('0x56')],_0x25282c[_0x4b209d('0x14')]=_0x498efc[_0x4b209d('0x14')],_0x25282c[_0x4b209d('0x8')]=_0x498efc[_0x4b209d('0x8')],_0x25282c[_0x4b209d('0x37')]=_0x498efc[_0x4b209d('0x37')],_0x25282c['outboundDropCallsDayACS']=_0x498efc[_0x4b209d('0x60')],_0x25282c[_0x4b209d('0xb')]=_0x498efc[_0x4b209d('0xb')],_0x25282c[_0x4b209d('0x13')]=_0x498efc[_0x4b209d('0x13')],_0x25282c[_0x4b209d('0x7f')]=_0x498efc[_0x4b209d('0x7f')],_0x25282c[_0x4b209d('0x59')]=_0x498efc[_0x4b209d('0x59')],_0x25282c[_0x4b209d('0x45')]=_0x498efc[_0x4b209d('0x45')],_0x25282c[_0x4b209d('0x15')]=_0x498efc[_0x4b209d('0x15')],_0x25282c[_0x4b209d('0x44')]=_0x498efc[_0x4b209d('0x44')],_0x25282c[_0x4b209d('0x78')]=_0x498efc[_0x4b209d('0x78')],_0x25282c['predictiveIntervalAnsweredCalls']=_0x498efc[_0x4b209d('0x7c')],_0x25282c[_0x4b209d('0x42')]=_0x498efc[_0x4b209d('0x42')],_0x25282c[_0x4b209d('0x32')]=_0x498efc['predictiveIntervalAvgTalktime'],_0x25282c[_0x4b209d('0x74')]=_0x498efc[_0x4b209d('0x74')],_0x25282c['predictiveIntervalDroppedCallsTimeout']=_0x498efc[_0x4b209d('0x53')],_0x25282c[_0x4b209d('0x4a')]=_0x498efc['predictiveIntervalErlangCalls'],_0x25282c[_0x4b209d('0xf')]=_0x498efc[_0x4b209d('0xf')],_0x25282c[_0x4b209d('0x82')]=_0x498efc['predictiveIntervalHitRate'],_0x25282c[_0x4b209d('0x5c')]=_0x498efc[_0x4b209d('0x5c')],_0x25282c[_0x4b209d('0x6c')]=_0x498efc[_0x4b209d('0x6c')],_0x25282c[_0x4b209d('0x51')]=_0x498efc['predictiveIntervalAvailable'],_0x25282c[_0x4b209d('0x3')]=_0x498efc[_0x4b209d('0x3')],_0x25282c['message']=_0x498efc['message'],_0x25282c['originated']=_0x498efc[_0x4b209d('0x5')],_0x25282c[_0x4b209d('0x5a')]=_0x498efc['erlangCalls'],_0x25282c[_0x4b209d('0x85')]=_0x498efc[_0x4b209d('0x85')],_0x25282c['erlangAbandonmentRate']=_0x498efc[_0x4b209d('0x7d')],_0x25282c[_0x4b209d('0x6')]=_0x498efc['erlangBusyFactor'],_0x25282c[_0x4b209d('0x2a')]=_0x498efc[_0x4b209d('0x2a')],_0x25282c[_0x4b209d('0x67')]=_0x498efc[_0x4b209d('0x67')]),_0x498efc[_0x4b209d('0x63')]&&(_0x25282c[_0x4b209d('0x63')]={'id':_0x498efc[_0x4b209d('0x63')]['id'],'name':_0x498efc[_0x4b209d('0x63')][_0x4b209d('0x73')],'active':_0x498efc[_0x4b209d('0x63')][_0x4b209d('0x3b')],'callerid':_0x498efc['Trunk'][_0x4b209d('0x86')]}),_0x498efc['Interval']&&(_0x25282c[_0x4b209d('0x16')]={'id':_0x498efc[_0x4b209d('0x16')]['id'],'name':_0x498efc[_0x4b209d('0x16')][_0x4b209d('0x73')]}),_0x3a876a[_0x4b209d('0x83')](_0x25282c);}}_0x517519({'count':_0x3a876a['length'],'rows':_0x3a876a});});},'VoiceChannels':function(){return new Promise(function(_0x267ee1){const _0x4e0f8f=a1133_0x1e05,_0x52253f=_[_0x4e0f8f('0xc')](_0x7c9da8[_0x4e0f8f('0xd')]);_0x267ee1({'count':_0x52253f[_0x4e0f8f('0x6f')],'rows':_0x52253f});});},'VoiceChannelMixMonitor':function(_0x251247){const _0x4709a1=this;return new Promise(function(_0x2ba3bf,_0x9c2706){const _0x47119a=a1133_0x1e05;if(ami[_0x47119a('0x76')]()==![])return _0x9c2706(_0x4709a1[_0x47119a('0x77')](0x1f4,[config['asterisk']['ip'],config[_0x47119a('0x2b')][_0x47119a('0x54')],'ami\x20disconnected'][_0x47119a('0x1d')]('\x20')));const _0x4af4aa=schema(properties[_0x47119a('0x2c')])[_0x47119a('0x62')](_0x251247);if(_0x4af4aa[_0x47119a('0x6f')]>0x0)return _0x9c2706(_0x4709a1[_0x47119a('0x77')](0x1f4,_[_0x47119a('0x68')](_0x4af4aa,_0x47119a('0x43'))[_0x47119a('0x1d')](',\x20')));const _0x1ac1ff=_['find'](_0x7c9da8[_0x47119a('0xd')],{'uniqueid':_0x251247[_0x47119a('0x3e')]});if(_0x1ac1ff&&_0x1ac1ff['channel']){const _0x11f054=util[_0x47119a('0x6e')](_0x47119a('0x28'),_0x251247[_0x47119a('0x50')]||_0x251247['uniqueid'],_0x251247['format']||_0x47119a('0xe'));return ami[_0x47119a('0x25')]({'action':_0x47119a('0x38'),'channel':_0x1ac1ff[_0x47119a('0x36')],'file':_0x11f054,'options':_0x47119a('0x35')})[_0x47119a('0x11')](function(_0x278701){const _0x3cd946=_0x47119a,_0x1f37bf=_[_0x3cd946('0x31')](_0x1ac1ff[_0x3cd946('0x58')],{'filename':_0x3cd946('0x21')+_0x11f054[_0x3cd946('0x65')]()});_[_0x3cd946('0x34')](_0x1f37bf)?_0x1ac1ff[_0x3cd946('0x58')][_0x3cd946('0x83')]({'filename':_0x3cd946('0x21')+_0x11f054['toLowerCase'](),'createdAt':moment()[_0x3cd946('0x6e')]('YYYY-MM-DD\x20HH:mm:ss'),'mixmonitorid':_0x278701[_0x3cd946('0x9')],'status':_0x3cd946('0x81')}):(_0x1f37bf['mixmonitorid']=_0x278701[_0x3cd946('0x9')],_0x1f37bf[_0x3cd946('0x41')]='rec'),_0x2ba3bf({'code':0xc8,'message':[_0x251247[_0x3cd946('0x3e')],_0x3cd946('0x1'),_0x278701[_0x3cd946('0x9')]][_0x3cd946('0x1d')]('\x20'),'mixmonitorid':_0x278701[_0x3cd946('0x9')]});})[_0x47119a('0x6b')](function(_0x21780a){const _0x579f23=_0x47119a;_0x9c2706(_0x4709a1[_0x579f23('0x77')](0x1f5,[_0x251247['uniqueid'],_0x21780a[_0x579f23('0x43')][_0x579f23('0x65')]()][_0x579f23('0x1d')]('\x20')));});}else return _0x9c2706(_0x4709a1['error'](0x1f5,_0x47119a('0x7b')));});},'VoiceChannelStopMixMonitor':function(_0x73b76e){const _0x19640f=this;return new Promise(function(_0x456ffa,_0x252bf6){const _0x4950b4=a1133_0x1e05;if(ami[_0x4950b4('0x76')]()==![])return _0x252bf6(_0x19640f[_0x4950b4('0x77')](0x1f4,[config['asterisk']['ip'],config[_0x4950b4('0x2b')][_0x4950b4('0x54')],_0x4950b4('0x2e')][_0x4950b4('0x1d')]('\x20')));const _0x23f312=schema(properties[_0x4950b4('0x2c')])[_0x4950b4('0x62')](_0x73b76e);if(_0x23f312[_0x4950b4('0x6f')]>0x0)return _0x252bf6(_0x19640f[_0x4950b4('0x77')](0x1f4,_['map'](_0x23f312,_0x4950b4('0x43'))['join'](',\x20')));const _0x1b72b8=_['find'](_0x7c9da8[_0x4950b4('0xd')],{'uniqueid':_0x73b76e['uniqueid']});return _0x1b72b8?Promise['resolve']()[_0x4950b4('0x11')](function(){const _0x483728=_0x4950b4;if(_0x1b72b8[_0x483728('0x36')])return ami['Action']({'action':_0x483728('0x40'),'channel':_0x1b72b8[_0x483728('0x36')],'mixmonitorid':_0x73b76e['mixmonitorid']})[_0x483728('0x6b')](function(){});})[_0x4950b4('0x11')](function(){const _0x2d90be=_0x4950b4;if(_0x1b72b8[_0x2d90be('0xa')])return ami[_0x2d90be('0x25')]({'action':_0x2d90be('0x40'),'channel':_0x1b72b8[_0x2d90be('0xa')],'mixmonitorid':_0x73b76e[_0x2d90be('0x9')]})['catch'](function(){});})['then'](function(){const _0xe897cd=_0x4950b4,_0x9498cc=_[_0xe897cd('0x31')](_0x1b72b8['monitors'],{'mixmonitorid':_0x73b76e[_0xe897cd('0x9')]});_0x9498cc&&(_0x9498cc['status']=_0xe897cd('0x87'));})[_0x4950b4('0x11')](function(){const _0x4ab7f3=_0x4950b4,_0x3f48d6=util[_0x4ab7f3('0x6e')](_0x4ab7f3('0x28'),_0x73b76e[_0x4ab7f3('0x50')]||_0x73b76e['uniqueid'],_0x73b76e[_0x4ab7f3('0x6e')]||_0x4ab7f3('0xe')),_0x2909b9=_[_0x4ab7f3('0x31')](_0x1b72b8[_0x4ab7f3('0x58')],{'filename':_0x4ab7f3('0x21')+_0x3f48d6[_0x4ab7f3('0x65')]()});_0x2909b9&&(_0x2909b9[_0x4ab7f3('0x41')]='stop');})[_0x4950b4('0x11')](function(){const _0x281e3f=_0x4950b4;_0x456ffa({'code':0xc8,'message':[_0x73b76e[_0x281e3f('0x3e')],_0x281e3f('0x30')][_0x281e3f('0x1d')]('\x20')});})[_0x4950b4('0x6b')](function(_0x45d561){const _0x286128=_0x4950b4;_0x252bf6(_0x19640f[_0x286128('0x77')](0x1f5,[_0x73b76e['uniqueid'],_0x45d561['message'][_0x286128('0x65')]()][_0x286128('0x1d')]('\x20')));}):_0x252bf6(_0x19640f[_0x4950b4('0x77')](0x1f5,'Channel\x20doesn\x27t\x20exist'));});},'VoiceQueuesChannels':function(){return new Promise(function(_0x34dd75){const _0x5f0863=a1133_0x1e05,_0x18e6c7=_[_0x5f0863('0xc')](_0x7c9da8[_0x5f0863('0x2d')]);_0x34dd75({'count':_0x18e6c7['length'],'rows':_0x18e6c7});});},'VoiceQueuesChannel':function(_0x643e69){const _0x59d73e=this;return new Promise(function(_0x7fa25f,_0x41c4ca){const _0x412bab=a1133_0x1e05,_0x47e7df=schema(properties[_0x412bab('0x7a')])[_0x412bab('0x62')](_0x643e69);if(_0x47e7df[_0x412bab('0x6f')]>0x0)return _0x41c4ca(_0x59d73e[_0x412bab('0x77')](0x1f4,_['map'](_0x47e7df,_0x412bab('0x43'))[_0x412bab('0x1d')](',\x20')));const _0x586eac=_[_0x412bab('0x31')](_0x7c9da8[_0x412bab('0x2d')],{'uniqueid':_0x643e69[_0x412bab('0x3e')]});if(_0x586eac)_0x7fa25f(_0x586eac);else return _0x41c4ca(_0x59d73e[_0x412bab('0x77')](0x1f5,_0x412bab('0x7b')));});},'VoiceQueuesChannelHangup':function(_0x40252f){const _0x12c15c=this;return new Promise(function(_0x4c4efb,_0x13a92f){const _0x3d7c42=a1133_0x1e05;if(ami[_0x3d7c42('0x76')]()==![])return _0x13a92f(_0x12c15c['error'](0x1f4,[config[_0x3d7c42('0x2b')]['ip'],config[_0x3d7c42('0x2b')][_0x3d7c42('0x54')],'ami\x20disconnected']['join']('\x20')));const _0xec1662=schema(properties[_0x3d7c42('0x4c')])[_0x3d7c42('0x62')](_0x40252f);if(_0xec1662[_0x3d7c42('0x6f')]>0x0)return _0x13a92f(_0x12c15c['error'](0x1f4,_[_0x3d7c42('0x68')](_0xec1662,'message')['join'](',\x20')));const _0x4f7c48=_[_0x3d7c42('0x31')](_0x7c9da8[_0x3d7c42('0x2d')],{'uniqueid':_0x40252f[_0x3d7c42('0x3e')]});return _0x4f7c48&&_0x4f7c48[_0x3d7c42('0x36')]?ami['Action']({'action':_0x3d7c42('0x6a'),'channel':_0x4f7c48[_0x3d7c42('0x36')]})['then'](function(_0x571c6d){const _0x58cef3=_0x3d7c42;_0x4c4efb({'code':0xc8,'message':[_0x40252f[_0x58cef3('0x3e')],_0x571c6d[_0x58cef3('0x43')][_0x58cef3('0x65')]()]['join']('\x20')});})['catch'](function(_0x3461b3){const _0x1eca7f=_0x3d7c42;_0x13a92f(_0x12c15c[_0x1eca7f('0x77')](0x1f5,[_0x40252f['uniqueid'],_0x3461b3[_0x1eca7f('0x43')][_0x1eca7f('0x65')]()][_0x1eca7f('0x1d')]('\x20')));}):_0x13a92f(_0x12c15c[_0x3d7c42('0x77')](0x1f5,_0x3d7c42('0x7b')));});},'VoiceQueuesChannelRedirect':function(_0x502837){const _0x16705b=this;return new Promise(function(_0x5717e5,_0x385e37){const _0x2d881c=a1133_0x1e05;if(ami[_0x2d881c('0x76')]()==![])return _0x385e37(_0x16705b['error'](0x1f4,[config['asterisk']['ip'],config[_0x2d881c('0x2b')]['username'],_0x2d881c('0x2e')]['join']('\x20')));const _0x2e18ee=schema(properties[_0x2d881c('0x5f')])[_0x2d881c('0x62')](_0x502837);if(_0x2e18ee[_0x2d881c('0x6f')]>0x0)return _0x385e37(_0x16705b['error'](0x1f4,_['map'](_0x2e18ee,_0x2d881c('0x43'))[_0x2d881c('0x1d')](',\x20')));const _0x2fc269=_[_0x2d881c('0x31')](_0x7c9da8[_0x2d881c('0x2d')],{'uniqueid':_0x502837[_0x2d881c('0x3e')]});return _0x2fc269&&_0x2fc269[_0x2d881c('0x36')]?ami['Action']({'action':'Redirect','channel':_0x2fc269[_0x2d881c('0x36')],'exten':_0x502837[_0x2d881c('0x6d')],'context':_0x502837[_0x2d881c('0x0')]||_0x2fc269['context'],'priority':0x1})[_0x2d881c('0x11')](function(_0x5c38d0){const _0x5c5470=_0x2d881c;_0x5717e5({'code':0xc8,'message':[_0x502837['uniqueid'],_0x5c38d0[_0x5c5470('0x43')][_0x5c5470('0x65')]()][_0x5c5470('0x1d')]('\x20')});})[_0x2d881c('0x6b')](function(_0x49cf1a){const _0x588b4d=_0x2d881c;_0x385e37(_0x16705b[_0x588b4d('0x77')](0x1f5,[_0x502837[_0x588b4d('0x3e')],_0x49cf1a[_0x588b4d('0x43')][_0x588b4d('0x65')]()][_0x588b4d('0x1d')]('\x20')));}):_0x385e37(_0x16705b[_0x2d881c('0x77')](0x1f5,'Channel\x20doesn\x27t\x20exist'));});},'Agents':function(){return new Promise(function(_0xc2b0e4){const _0x5432a2=a1133_0x1e05,_0x3f0a02=_['values'](_0x7c9da8['agents']);_0xc2b0e4({'count':_0x3f0a02[_0x5432a2('0x6f')],'rows':_0x3f0a02});});},'Telephones':function(){return new Promise(function(_0x39d976){const _0x2a2a6f=a1133_0x1e05,_0x5e1a63=_['values'](_0x7c9da8['telephones']);_0x39d976({'count':_0x5e1a63[_0x2a2a6f('0x6f')],'rows':_0x5e1a63});});},'Trunks':function(){return new Promise(function(_0x2d392b){const _0x5e27c3=a1133_0x1e05,_0x2b3a05=_[_0x5e27c3('0xc')](_0x7c9da8['trunks']);_0x2d392b({'count':_0x2b3a05['length'],'rows':_0x2b3a05});});},'OutboundChannels':function(){return new Promise(function(_0x165c00){const _0x57732e=a1133_0x1e05,_0x3a3719=_[_0x57732e('0xc')](_0x7c9da8[_0x57732e('0x49')]);_0x165c00({'count':_0x3a3719[_0x57732e('0x6f')],'rows':_0x3a3719});});},'Outbound':function(){return new Promise(function(_0x15970c){_0x15970c(_0x7c9da8['outbound']);});},'Campaigns':function(){return new Promise(function(_0x4ed59c){const _0x4a7b82=a1133_0x1e05,_0x3016ce=_['values'](_0x7c9da8[_0x4a7b82('0x3a')]);_0x4ed59c({'count':_0x3016ce[_0x4a7b82('0x6f')],'rows':_0x3016ce});});},'VoiceQueuesPreview':function(_0x5eeefa){const _0xaa446f=this;return new Promise(function(_0x3cfabe,_0x5c3fcf){const _0x2f4b65=a1133_0x1e05;_0x292796['run'](_0x5eeefa['id'])[_0x2f4b65('0x11')](function(_0x2047e4){const _0x37c3bf=_0x2f4b65;_0x3cfabe({'code':0xc8,'message':_0x2047e4[_0x37c3bf('0x43')]});})[_0x2f4b65('0x6b')](function(_0xc3a811){const _0x1b6b11=_0x2f4b65;_0x5c3fcf(_0xaa446f['error'](0x1f4,_0xc3a811[_0x1b6b11('0x43')]));});});},'EventManager':function(_0x1a4073){const _0x3c26f7=this;return new Promise(function(_0x221c85,_0x5e5467){const _0x345db1=a1133_0x1e05;if(!_0x1a4073[_0x345db1('0x23')])return _0x5e5467(_0x3c26f7[_0x345db1('0x77')](0x1f4,_0x345db1('0x46')));ami['emit'](_0x345db1('0x55')+_0x1a4073[_0x345db1('0x23')],_0x1a4073['message']),_0x221c85({'code':0xc8,'message':_0x1a4073});});},'FaxAccounts':function(){return new Promise(function(_0x421c87){const _0x35ac7f=a1133_0x1e05,_0x34a8cd=_['values'](_0x7c9da8[_0x35ac7f('0x64')]);_0x421c87({'count':_0x34a8cd['length'],'rows':_0x34a8cd});});},'SendFax':function(_0x30d9f7){const _0x56f18c=this;return new Promise(function(_0x4392b0,_0x4be37b){const _0x5e580d=a1133_0x1e05;_0x1cedb4[_0x5e580d('0x79')](_0x30d9f7)[_0x5e580d('0x11')](function(_0x1b73a1){const _0x17a028=_0x5e580d;_0x4392b0({'code':0xc8,'message':_0x1b73a1[_0x17a028('0x43')]});})[_0x5e580d('0x6b')](function(_0x392482){const _0xf5d0da=_0x5e580d;_0x4be37b(_0x56f18c['error'](0x1f4,_0x392482[_0xf5d0da('0x43')]));});});},'CheckAfterSend':function(_0x4bac91){const _0x5474ea=this;return new Promise(function(_0x56efa1,_0x60647a){const _0x36b2b=a1133_0x1e05;_0x1cedb4[_0x36b2b('0x22')](_0x4bac91)[_0x36b2b('0x11')](function(_0x2539a3){const _0x29af43=_0x36b2b;_0x56efa1({'code':0xc8,'message':_0x2539a3[_0x29af43('0x43')]});})[_0x36b2b('0x6b')](function(_0x1af4f9){_0x60647a(_0x5474ea['error'](0x1f4,_0x1af4f9['message']));});});}},_0x32aec7=jayson[_0x2512d1('0x72')](_0x203350)['http']();_0x32aec7['on'](_0x2512d1('0x77'),function(_0x1c99ae){return _0x58fa79(_0x1c99ae);}),_0x32aec7[_0x2512d1('0x48')](0x232a,_0x2512d1('0x4'),function(){const _0x427a48=_0x2512d1;return console['log'](_0x427a48('0x1c'),0x232a),_0x41c720(_0x427a48('0x5d')+0x232a);});});}; \ No newline at end of file +const a1297_0xa856=['waiting','Interval','predictiveIntervalMultiplicativeFactor','predictiveIntervalPauses','outboundRejectCallsDay','predictiveIntervalAvgTalktime','sumBillable','Action','outboundOriginateFailureCallsDay','send','log','../ami','outboundChannels','talking','outboundAnswerAgiCallsDay','pause','outboundReCallsDay','action','StopMixMonitor','Trunk','dialOriginateCallerIdNumber','jayson/promise','map','predictiveIntervalDroppedCallsCallersExit','strategy','voicequeuechannelhangup','unmanaged','asterisk','pick','abandoned','outboundDropCallsDayCallersExit','predictiveIntervalErlangCallsDroppedCalls','listen','sumHoldTime','faxAccounts','callerid','erlangBusyFactor','telephones','ai(mixmonitorid)','SIP','Event\x20name\x20mandatory','outbound','sumDuration','uniqueid','resolve','updateStatusRealtime','join','pTalking','push','status','127.0.0.1','voicequeuechannelredirect','custom:','voicequeuechannel','updateAcw','predictiveIntervalAvgHoldtime','predictiveIntervalHitRate','StopMixMonitor\x20Success','event','destinationchannel','startPredictive','outboundNoSuchCallsDay','../properties','channels','voiceQueues','find','outboundBlacklistCallsDay','wav','lodash','MixMonitor\x20Success','queueChannels','Channel\x20doesn\x27t\x20exist','format','Command','isConnected','name','dialPrefix','erlangCalls','loggedInDb','erlangCallToSecond','outboundDropCallsDayACS','active','dialOriginateTimeout','predictiveIntervalDroppedCallsTimeout','outboundAnswerCallsDay','RPC\x20listening\x20on\x20port:','outboundCongestionCallsDay','monitors','predictiveIntervalAnsweredCalls','ami\x20disconnected','username','QueuePause','error','predictiveIntervalErlangCalls','startProgressive','outboundUnknownCallsDay','dialMethod','isNil','/var/spool/asterisk/monitor/','toLowerCase','agents','loggedIn','predictiveIntervalTotalCalls','total','Redirect','outboundBusyCallsDay','module','validate','rec','timers','originated','erlangAbandonmentRate','available','values','AMI\x20RPC\x20server\x20listening\x20on\x20127.0.0.1:%d!','then','voicechannel','dialOriginateCallerIdName','outboundNoAnswerCallsDay','context','stop','filename','catch','undefined','mixmonitorid','keys','channel','%s.%s','length','answered','message','content','dialActive'];(function(_0x12e4e4,_0x3a455e){const _0xa856c4=function(_0x150252){while(--_0x150252){_0x12e4e4['push'](_0x12e4e4['shift']());}};_0xa856c4(++_0x3a455e);}(a1297_0xa856,0x9b));const a1297_0x1502=function(_0x12e4e4,_0x3a455e){_0x12e4e4=_0x12e4e4-0xe6;let _0xa856c4=a1297_0xa856[_0x12e4e4];return _0xa856c4;};const a1297_0xe44058=a1297_0x1502;'use strict';const _=require(a1297_0xe44058(0x114)),util=require('util'),jayson=require(a1297_0xe44058(0x16a)),schema=require(a1297_0xe44058(0x13b)),moment=require('moment'),config=require('../../../config/environment'),properties=require(a1297_0xe44058(0x10e)),ami=require(a1297_0xe44058(0x160));exports['listen']=function(_0x3cee02,_0x2b34e2,_0x298f92){return new Promise(function(_0x2a1845,_0x59efb6){const _0x582dc2=a1297_0x1502,_0xfaf4b5={'QueuePause':function(_0x4650ac){return new Promise(function(_0x5e9849){const _0x4bc06e=a1297_0x1502,_0x10d621=util['format']('%s/%s',_0x4bc06e(0xf7),_0x4650ac[_0x4bc06e(0x11b)]);_0x3cee02[_0x4bc06e(0x13d)]&&_0x3cee02[_0x4bc06e(0x13d)][_0x10d621]&&_0x3cee02['timers'][_0x10d621]['timer']&&_0x3cee02[_0x4bc06e(0x13d)][_0x10d621][_0x4bc06e(0x106)](),_0x3cee02['agents'][_0x10d621]&&_0x3cee02[_0x4bc06e(0x134)][_0x10d621][_0x4bc06e(0xfd)]({'statePause':_0x4650ac[_0x4bc06e(0x164)]?!![]:![]}),_0x5e9849({'code':0xc8,'message':_0x4bc06e(0x12b)});});},'Reload':function(_0x4b192c){const _0x2b5b92=this;return new Promise(function(_0x5e60e4,_0x1f7353){const _0x2f65fa=a1297_0x1502;if(ami[_0x2f65fa(0x11a)]()==![])return _0x1f7353(_0x2b5b92[_0x2f65fa(0x12c)](0x1f4,[config[_0x2f65fa(0xeb)]['ip'],config[_0x2f65fa(0xeb)][_0x2f65fa(0x12a)],_0x2f65fa(0x129)][_0x2f65fa(0xfe)]('\x20')));return _0x4b192c=_['pick'](_0x4b192c,_[_0x2f65fa(0x14d)](properties[_0x2f65fa(0x13a)])),_0x4b192c[_0x2f65fa(0x166)]='Reload',ami[_0x2f65fa(0x15c)](_0x4b192c)[_0x2f65fa(0x143)](function(_0x1cc528){const _0xc5929d=_0x2f65fa;_0x5e60e4({'code':0xc8,'message':_0x1cc528[_0xc5929d(0x152)]});})['catch'](function(_0x12b744){const _0x3c6cc0=_0x2f65fa;_0x1f7353(_0x2b5b92[_0x3c6cc0(0x12c)](0x1f5,_0x12b744['message']));});});},'Command':function(_0x295ce7){const _0x2c42ec=this;return new Promise(function(_0x4c518f,_0x20d2e7){const _0x3a3a1a=a1297_0x1502;if(ami[_0x3a3a1a(0x11a)]()==![])return _0x20d2e7(_0x2c42ec[_0x3a3a1a(0x12c)](0x1f4,[config['asterisk']['ip'],config['asterisk'][_0x3a3a1a(0x12a)],_0x3a3a1a(0x129)][_0x3a3a1a(0xfe)]('\x20')));return _0x295ce7=_[_0x3a3a1a(0xec)](_0x295ce7,'command'),_0x295ce7['action']=_0x3a3a1a(0x119),ami['Action'](_0x295ce7)[_0x3a3a1a(0x143)](function(_0x16fb0b){const _0x891aa7=_0x3a3a1a;_0x4c518f({'code':0xc8,'message':_0x16fb0b[_0x891aa7(0x153)]});})[_0x3a3a1a(0x14a)](function(_0x5c022c){const _0x16f38b=_0x3a3a1a;_0x20d2e7(_0x2c42ec[_0x16f38b(0x12c)](0x1f5,_0x5c022c[_0x16f38b(0x152)]));});});},'VoiceQueues':function(){return new Promise(function(_0x43ea51){const _0x2391ea=a1297_0x1502,_0x22089d=[];for(const _0x57d782 in _0x3cee02[_0x2391ea(0x110)]){if(typeof _0x3cee02[_0x2391ea(0x110)][_0x57d782]!==_0x2391ea(0x14b)){const _0x26b4d1=_0x3cee02[_0x2391ea(0x110)][_0x57d782],_0x1bc241={'id':_0x26b4d1['id'],'name':_0x26b4d1[_0x2391ea(0x11b)],'strategy':_0x26b4d1[_0x2391ea(0xe8)],'answered':_0x26b4d1[_0x2391ea(0x151)],'available':_0x26b4d1[_0x2391ea(0x140)],'loggedIn':_0x26b4d1[_0x2391ea(0x135)],'pTalking':_0x26b4d1[_0x2391ea(0xff)],'sumBillable':_0x26b4d1[_0x2391ea(0x15b)],'sumDuration':_0x26b4d1[_0x2391ea(0xfa)],'sumHoldTime':_0x26b4d1[_0x2391ea(0xf1)]||0x0,'talking':_0x26b4d1[_0x2391ea(0x162)],'total':_0x26b4d1[_0x2391ea(0x137)],'type':_0x26b4d1['type'],'unmanaged':_0x26b4d1[_0x2391ea(0xea)],'abandoned':_0x26b4d1[_0x2391ea(0xed)],'waiting':_0x26b4d1[_0x2391ea(0x155)],'loggedInDb':_0x26b4d1[_0x2391ea(0x11e)]};_0x26b4d1['type']===_0x2391ea(0xf9)&&(_0x1bc241[_0x2391ea(0x154)]=_0x26b4d1['dialActive'],_0x1bc241[_0x2391ea(0x130)]=_0x26b4d1['dialMethod'],_0x1bc241[_0x2391ea(0x145)]=_0x26b4d1[_0x2391ea(0x145)],_0x1bc241[_0x2391ea(0x169)]=_0x26b4d1[_0x2391ea(0x169)],_0x1bc241[_0x2391ea(0x122)]=_0x26b4d1[_0x2391ea(0x122)],_0x1bc241[_0x2391ea(0x11c)]=_0x26b4d1[_0x2391ea(0x11c)],_0x1bc241[_0x2391ea(0x163)]=_0x26b4d1[_0x2391ea(0x163)],_0x1bc241[_0x2391ea(0x124)]=_0x26b4d1[_0x2391ea(0x124)],_0x1bc241[_0x2391ea(0x112)]=_0x26b4d1[_0x2391ea(0x112)],_0x1bc241[_0x2391ea(0x139)]=_0x26b4d1[_0x2391ea(0x139)],_0x1bc241[_0x2391ea(0x126)]=_0x26b4d1['outboundCongestionCallsDay'],_0x1bc241[_0x2391ea(0x120)]=_0x26b4d1[_0x2391ea(0x120)],_0x1bc241[_0x2391ea(0xee)]=_0x26b4d1[_0x2391ea(0xee)],_0x1bc241['outboundDropCallsDayTimeout']=_0x26b4d1['outboundDropCallsDayTimeout'],_0x1bc241[_0x2391ea(0x146)]=_0x26b4d1[_0x2391ea(0x146)],_0x1bc241[_0x2391ea(0x10d)]=_0x26b4d1[_0x2391ea(0x10d)],_0x1bc241[_0x2391ea(0x15d)]=_0x26b4d1[_0x2391ea(0x15d)],_0x1bc241[_0x2391ea(0x165)]=_0x26b4d1[_0x2391ea(0x165)],_0x1bc241[_0x2391ea(0x159)]=_0x26b4d1[_0x2391ea(0x159)],_0x1bc241[_0x2391ea(0x12f)]=_0x26b4d1[_0x2391ea(0x12f)],_0x1bc241[_0x2391ea(0x128)]=_0x26b4d1[_0x2391ea(0x128)],_0x1bc241[_0x2391ea(0x107)]=_0x26b4d1['predictiveIntervalAvgHoldtime'],_0x1bc241['predictiveIntervalAvgTalktime']=_0x26b4d1[_0x2391ea(0x15a)],_0x1bc241[_0x2391ea(0xe7)]=_0x26b4d1['predictiveIntervalDroppedCallsCallersExit'],_0x1bc241[_0x2391ea(0x123)]=_0x26b4d1[_0x2391ea(0x123)],_0x1bc241[_0x2391ea(0x12d)]=_0x26b4d1[_0x2391ea(0x12d)],_0x1bc241[_0x2391ea(0xef)]=_0x26b4d1[_0x2391ea(0xef)],_0x1bc241[_0x2391ea(0x108)]=_0x26b4d1['predictiveIntervalHitRate'],_0x1bc241[_0x2391ea(0x157)]=_0x26b4d1['predictiveIntervalMultiplicativeFactor'],_0x1bc241[_0x2391ea(0x158)]=_0x26b4d1[_0x2391ea(0x158)],_0x1bc241['predictiveIntervalAvailable']=_0x26b4d1['predictiveIntervalAvailable'],_0x1bc241['predictiveIntervalTotalCalls']=_0x26b4d1[_0x2391ea(0x136)],_0x1bc241[_0x2391ea(0x152)]=_0x26b4d1[_0x2391ea(0x152)],_0x1bc241[_0x2391ea(0x13e)]=_0x26b4d1[_0x2391ea(0x13e)],_0x1bc241['erlangCalls']=_0x26b4d1[_0x2391ea(0x11d)],_0x1bc241[_0x2391ea(0x11f)]=_0x26b4d1[_0x2391ea(0x11f)],_0x1bc241['erlangAbandonmentRate']=_0x26b4d1[_0x2391ea(0x13f)],_0x1bc241[_0x2391ea(0xf4)]=_0x26b4d1[_0x2391ea(0xf4)],_0x1bc241[_0x2391ea(0x10c)]=_0x26b4d1['startPredictive'],_0x1bc241[_0x2391ea(0x12e)]=_0x26b4d1[_0x2391ea(0x12e)]),_0x26b4d1[_0x2391ea(0x168)]&&(_0x1bc241[_0x2391ea(0x168)]={'id':_0x26b4d1['Trunk']['id'],'name':_0x26b4d1[_0x2391ea(0x168)][_0x2391ea(0x11b)],'active':_0x26b4d1['Trunk'][_0x2391ea(0x121)],'callerid':_0x26b4d1[_0x2391ea(0x168)][_0x2391ea(0xf3)]}),_0x26b4d1[_0x2391ea(0x156)]&&(_0x1bc241[_0x2391ea(0x156)]={'id':_0x26b4d1[_0x2391ea(0x156)]['id'],'name':_0x26b4d1[_0x2391ea(0x156)][_0x2391ea(0x11b)]}),_0x22089d[_0x2391ea(0x100)](_0x1bc241);}}_0x43ea51({'count':_0x22089d[_0x2391ea(0x150)],'rows':_0x22089d});});},'VoiceChannels':function(){return new Promise(function(_0x16bfc7){const _0x1741a8=a1297_0x1502,_0x24a2c0=_[_0x1741a8(0x141)](_0x3cee02[_0x1741a8(0x10f)]);_0x16bfc7({'count':_0x24a2c0[_0x1741a8(0x150)],'rows':_0x24a2c0});});},'VoiceChannelMixMonitor':function(_0x5af44a){const _0x7c145c=this;return new Promise(function(_0x57790e,_0x2d9976){const _0x4553bb=a1297_0x1502;if(ami[_0x4553bb(0x11a)]()==![])return _0x2d9976(_0x7c145c['error'](0x1f4,[config[_0x4553bb(0xeb)]['ip'],config[_0x4553bb(0xeb)][_0x4553bb(0x12a)],_0x4553bb(0x129)][_0x4553bb(0xfe)]('\x20')));const _0x27f1b1=schema(properties[_0x4553bb(0x144)])[_0x4553bb(0x13b)](_0x5af44a);if(_0x27f1b1[_0x4553bb(0x150)]>0x0)return _0x2d9976(_0x7c145c[_0x4553bb(0x12c)](0x1f4,_[_0x4553bb(0xe6)](_0x27f1b1,'message')[_0x4553bb(0xfe)](',\x20')));const _0x208cad=_['find'](_0x3cee02[_0x4553bb(0x10f)],{'uniqueid':_0x5af44a[_0x4553bb(0xfb)]});if(_0x208cad&&_0x208cad['channel']){const _0x5216bd=util[_0x4553bb(0x118)](_0x4553bb(0x14f),_0x5af44a['filename']||_0x5af44a['uniqueid'],_0x5af44a[_0x4553bb(0x118)]||_0x4553bb(0x113));return ami[_0x4553bb(0x15c)]({'action':'MixMonitor','channel':_0x208cad[_0x4553bb(0x14e)],'file':_0x5216bd,'options':_0x4553bb(0xf6)})['then'](function(_0x3de6bc){const _0x529b3b=_0x4553bb,_0x4a7662=_['find'](_0x208cad[_0x529b3b(0x127)],{'filename':'/var/spool/asterisk/monitor/'+_0x5216bd[_0x529b3b(0x133)]()});_[_0x529b3b(0x131)](_0x4a7662)?_0x208cad['monitors'][_0x529b3b(0x100)]({'filename':_0x529b3b(0x132)+_0x5216bd['toLowerCase'](),'createdAt':moment()[_0x529b3b(0x118)]('YYYY-MM-DD\x20HH:mm:ss'),'mixmonitorid':_0x3de6bc['mixmonitorid'],'status':_0x529b3b(0x13c)}):(_0x4a7662[_0x529b3b(0x14c)]=_0x3de6bc[_0x529b3b(0x14c)],_0x4a7662[_0x529b3b(0x101)]=_0x529b3b(0x13c)),_0x57790e({'code':0xc8,'message':[_0x5af44a[_0x529b3b(0xfb)],_0x529b3b(0x115),_0x3de6bc[_0x529b3b(0x14c)]][_0x529b3b(0xfe)]('\x20'),'mixmonitorid':_0x3de6bc[_0x529b3b(0x14c)]});})[_0x4553bb(0x14a)](function(_0x570ebf){const _0x502280=_0x4553bb;_0x2d9976(_0x7c145c[_0x502280(0x12c)](0x1f5,[_0x5af44a[_0x502280(0xfb)],_0x570ebf[_0x502280(0x152)]['toLowerCase']()][_0x502280(0xfe)]('\x20')));});}else return _0x2d9976(_0x7c145c[_0x4553bb(0x12c)](0x1f5,_0x4553bb(0x117)));});},'VoiceChannelStopMixMonitor':function(_0x2b70f6){const _0x3dd3c5=this;return new Promise(function(_0x5c2c7c,_0x2d8071){const _0x494c00=a1297_0x1502;if(ami['isConnected']()==![])return _0x2d8071(_0x3dd3c5[_0x494c00(0x12c)](0x1f4,[config['asterisk']['ip'],config[_0x494c00(0xeb)]['username'],'ami\x20disconnected']['join']('\x20')));const _0x338485=schema(properties[_0x494c00(0x144)])[_0x494c00(0x13b)](_0x2b70f6);if(_0x338485[_0x494c00(0x150)]>0x0)return _0x2d8071(_0x3dd3c5[_0x494c00(0x12c)](0x1f4,_[_0x494c00(0xe6)](_0x338485,_0x494c00(0x152))[_0x494c00(0xfe)](',\x20')));const _0x12f4b7=_[_0x494c00(0x111)](_0x3cee02[_0x494c00(0x10f)],{'uniqueid':_0x2b70f6['uniqueid']});return _0x12f4b7?Promise[_0x494c00(0xfc)]()[_0x494c00(0x143)](function(){const _0x1751ed=_0x494c00;if(_0x12f4b7['channel'])return ami[_0x1751ed(0x15c)]({'action':_0x1751ed(0x167),'channel':_0x12f4b7['channel'],'mixmonitorid':_0x2b70f6['mixmonitorid']})[_0x1751ed(0x14a)](function(){});})[_0x494c00(0x143)](function(){const _0x30039a=_0x494c00;if(_0x12f4b7[_0x30039a(0x10b)])return ami['Action']({'action':_0x30039a(0x167),'channel':_0x12f4b7[_0x30039a(0x10b)],'mixmonitorid':_0x2b70f6[_0x30039a(0x14c)]})[_0x30039a(0x14a)](function(){});})[_0x494c00(0x143)](function(){const _0x30f56c=_0x494c00,_0x5a1aa4=_[_0x30f56c(0x111)](_0x12f4b7['monitors'],{'mixmonitorid':_0x2b70f6[_0x30f56c(0x14c)]});_0x5a1aa4&&(_0x5a1aa4[_0x30f56c(0x101)]=_0x30f56c(0x148));})[_0x494c00(0x143)](function(){const _0x113ee5=_0x494c00,_0xc6ae67=util[_0x113ee5(0x118)](_0x113ee5(0x14f),_0x2b70f6[_0x113ee5(0x149)]||_0x2b70f6[_0x113ee5(0xfb)],_0x2b70f6['format']||_0x113ee5(0x113)),_0x2b6a1f=_[_0x113ee5(0x111)](_0x12f4b7[_0x113ee5(0x127)],{'filename':'/var/spool/asterisk/monitor/'+_0xc6ae67[_0x113ee5(0x133)]()});_0x2b6a1f&&(_0x2b6a1f[_0x113ee5(0x101)]=_0x113ee5(0x148));})[_0x494c00(0x143)](function(){const _0xee1ab7=_0x494c00;_0x5c2c7c({'code':0xc8,'message':[_0x2b70f6[_0xee1ab7(0xfb)],_0xee1ab7(0x109)][_0xee1ab7(0xfe)]('\x20')});})[_0x494c00(0x14a)](function(_0x517b88){const _0x3be85d=_0x494c00;_0x2d8071(_0x3dd3c5['error'](0x1f5,[_0x2b70f6['uniqueid'],_0x517b88[_0x3be85d(0x152)][_0x3be85d(0x133)]()]['join']('\x20')));}):_0x2d8071(_0x3dd3c5['error'](0x1f5,_0x494c00(0x117)));});},'VoiceQueuesChannels':function(){return new Promise(function(_0x317789){const _0x1bb341=a1297_0x1502,_0x1963a2=_['values'](_0x3cee02[_0x1bb341(0x116)]);_0x317789({'count':_0x1963a2['length'],'rows':_0x1963a2});});},'VoiceQueuesChannel':function(_0x5f464a){const _0x413146=this;return new Promise(function(_0x50281c,_0x5ca52c){const _0x296996=a1297_0x1502,_0x384ad2=schema(properties[_0x296996(0x105)])[_0x296996(0x13b)](_0x5f464a);if(_0x384ad2[_0x296996(0x150)]>0x0)return _0x5ca52c(_0x413146[_0x296996(0x12c)](0x1f4,_[_0x296996(0xe6)](_0x384ad2,_0x296996(0x152))['join'](',\x20')));const _0x5ccfb1=_[_0x296996(0x111)](_0x3cee02[_0x296996(0x116)],{'uniqueid':_0x5f464a[_0x296996(0xfb)]});if(_0x5ccfb1)_0x50281c(_0x5ccfb1);else return _0x5ca52c(_0x413146[_0x296996(0x12c)](0x1f5,_0x296996(0x117)));});},'VoiceQueuesChannelHangup':function(_0x3ab1a3){const _0x43806c=this;return new Promise(function(_0x2f4c3f,_0x151ec1){const _0x34d959=a1297_0x1502;if(ami[_0x34d959(0x11a)]()==![])return _0x151ec1(_0x43806c[_0x34d959(0x12c)](0x1f4,[config[_0x34d959(0xeb)]['ip'],config[_0x34d959(0xeb)][_0x34d959(0x12a)],_0x34d959(0x129)][_0x34d959(0xfe)]('\x20')));const _0x194ce6=schema(properties[_0x34d959(0xe9)])[_0x34d959(0x13b)](_0x3ab1a3);if(_0x194ce6[_0x34d959(0x150)]>0x0)return _0x151ec1(_0x43806c[_0x34d959(0x12c)](0x1f4,_[_0x34d959(0xe6)](_0x194ce6,_0x34d959(0x152))[_0x34d959(0xfe)](',\x20')));const _0x5a0598=_[_0x34d959(0x111)](_0x3cee02[_0x34d959(0x116)],{'uniqueid':_0x3ab1a3[_0x34d959(0xfb)]});return _0x5a0598&&_0x5a0598[_0x34d959(0x14e)]?ami['Action']({'action':'Hangup','channel':_0x5a0598[_0x34d959(0x14e)]})['then'](function(_0x1e31f0){const _0x2403ce=_0x34d959;_0x2f4c3f({'code':0xc8,'message':[_0x3ab1a3[_0x2403ce(0xfb)],_0x1e31f0['message'][_0x2403ce(0x133)]()][_0x2403ce(0xfe)]('\x20')});})[_0x34d959(0x14a)](function(_0x27ac36){const _0x118dec=_0x34d959;_0x151ec1(_0x43806c[_0x118dec(0x12c)](0x1f5,[_0x3ab1a3['uniqueid'],_0x27ac36[_0x118dec(0x152)]['toLowerCase']()][_0x118dec(0xfe)]('\x20')));}):_0x151ec1(_0x43806c['error'](0x1f5,_0x34d959(0x117)));});},'VoiceQueuesChannelRedirect':function(_0x3235aa){const _0x4320d0=this;return new Promise(function(_0x20918d,_0xbe517d){const _0x3c4079=a1297_0x1502;if(ami[_0x3c4079(0x11a)]()==![])return _0xbe517d(_0x4320d0[_0x3c4079(0x12c)](0x1f4,[config[_0x3c4079(0xeb)]['ip'],config[_0x3c4079(0xeb)][_0x3c4079(0x12a)],_0x3c4079(0x129)][_0x3c4079(0xfe)]('\x20')));const _0x5b1cdd=schema(properties[_0x3c4079(0x103)])[_0x3c4079(0x13b)](_0x3235aa);if(_0x5b1cdd[_0x3c4079(0x150)]>0x0)return _0xbe517d(_0x4320d0[_0x3c4079(0x12c)](0x1f4,_[_0x3c4079(0xe6)](_0x5b1cdd,_0x3c4079(0x152))['join'](',\x20')));const _0x4a3da6=_[_0x3c4079(0x111)](_0x3cee02['queueChannels'],{'uniqueid':_0x3235aa[_0x3c4079(0xfb)]});return _0x4a3da6&&_0x4a3da6[_0x3c4079(0x14e)]?ami['Action']({'action':_0x3c4079(0x138),'channel':_0x4a3da6['channel'],'exten':_0x3235aa['exten'],'context':_0x3235aa[_0x3c4079(0x147)]||_0x4a3da6[_0x3c4079(0x147)],'priority':0x1})['then'](function(_0x98feee){const _0x2105fe=_0x3c4079;_0x20918d({'code':0xc8,'message':[_0x3235aa[_0x2105fe(0xfb)],_0x98feee['message'][_0x2105fe(0x133)]()][_0x2105fe(0xfe)]('\x20')});})[_0x3c4079(0x14a)](function(_0x16f5d0){const _0xbbc695=_0x3c4079;_0xbe517d(_0x4320d0[_0xbbc695(0x12c)](0x1f5,[_0x3235aa[_0xbbc695(0xfb)],_0x16f5d0[_0xbbc695(0x152)][_0xbbc695(0x133)]()][_0xbbc695(0xfe)]('\x20')));}):_0xbe517d(_0x4320d0[_0x3c4079(0x12c)](0x1f5,'Channel\x20doesn\x27t\x20exist'));});},'Agents':function(){return new Promise(function(_0x52675b){const _0x15cedb=a1297_0x1502,_0x30c92f=_[_0x15cedb(0x141)](_0x3cee02[_0x15cedb(0x134)]);_0x52675b({'count':_0x30c92f[_0x15cedb(0x150)],'rows':_0x30c92f});});},'Telephones':function(){return new Promise(function(_0x57c3b9){const _0x2c1c14=a1297_0x1502,_0x61373e=_[_0x2c1c14(0x141)](_0x3cee02[_0x2c1c14(0xf5)]);_0x57c3b9({'count':_0x61373e[_0x2c1c14(0x150)],'rows':_0x61373e});});},'Trunks':function(){return new Promise(function(_0x385464){const _0x172347=a1297_0x1502,_0x37b7fc=_[_0x172347(0x141)](_0x3cee02['trunks']);_0x385464({'count':_0x37b7fc[_0x172347(0x150)],'rows':_0x37b7fc});});},'OutboundChannels':function(){return new Promise(function(_0xd1da16){const _0x40a62b=a1297_0x1502,_0x1e2103=_[_0x40a62b(0x141)](_0x3cee02[_0x40a62b(0x161)]);_0xd1da16({'count':_0x1e2103[_0x40a62b(0x150)],'rows':_0x1e2103});});},'Outbound':function(){return new Promise(function(_0x349473){_0x349473(_0x3cee02['outbound']);});},'Campaigns':function(){return new Promise(function(_0x31825f){const _0x33ea9d=a1297_0x1502,_0x484be5=_['values'](_0x3cee02['campaigns']);_0x31825f({'count':_0x484be5[_0x33ea9d(0x150)],'rows':_0x484be5});});},'VoiceQueuesPreview':function(_0x36acb7){const _0xc91aba=this;return new Promise(function(_0x87a6e9,_0x480f7f){const _0x94cec9=a1297_0x1502;_0x2b34e2['run'](_0x36acb7['id'])[_0x94cec9(0x143)](function(_0x6fc0a6){const _0x5d3bff=_0x94cec9;_0x87a6e9({'code':0xc8,'message':_0x6fc0a6[_0x5d3bff(0x152)]});})['catch'](function(_0x42af54){const _0x463e7f=_0x94cec9;_0x480f7f(_0xc91aba[_0x463e7f(0x12c)](0x1f4,_0x42af54[_0x463e7f(0x152)]));});});},'EventManager':function(_0x53108f){const _0x3dae81=this;return new Promise(function(_0x5bab6b,_0x3d1e60){const _0x5d0bdb=a1297_0x1502;if(!_0x53108f[_0x5d0bdb(0x10a)])return _0x3d1e60(_0x3dae81['error'](0x1f4,_0x5d0bdb(0xf8)));ami['emit'](_0x5d0bdb(0x104)+_0x53108f['event'],_0x53108f[_0x5d0bdb(0x152)]),_0x5bab6b({'code':0xc8,'message':_0x53108f});});},'FaxAccounts':function(){return new Promise(function(_0x41cde2){const _0x313287=a1297_0x1502,_0x46a305=_[_0x313287(0x141)](_0x3cee02[_0x313287(0xf2)]);_0x41cde2({'count':_0x46a305[_0x313287(0x150)],'rows':_0x46a305});});},'SendFax':function(_0x389fb1){const _0x3f4cec=this;return new Promise(function(_0x4b8b05,_0x474dd1){const _0x551c20=a1297_0x1502;_0x298f92[_0x551c20(0x15e)](_0x389fb1)[_0x551c20(0x143)](function(_0x674b8a){const _0x34f1ba=_0x551c20;_0x4b8b05({'code':0xc8,'message':_0x674b8a[_0x34f1ba(0x152)]});})[_0x551c20(0x14a)](function(_0x63fab7){const _0x44c3e7=_0x551c20;_0x474dd1(_0x3f4cec[_0x44c3e7(0x12c)](0x1f4,_0x63fab7[_0x44c3e7(0x152)]));});});},'CheckAfterSend':function(_0x2cca7d){const _0x601f6c=this;return new Promise(function(_0x42fa34,_0x5e7b11){const _0x235a14=a1297_0x1502;_0x298f92['checkAfterSend'](_0x2cca7d)[_0x235a14(0x143)](function(_0x17a73d){const _0x129538=_0x235a14;_0x42fa34({'code':0xc8,'message':_0x17a73d[_0x129538(0x152)]});})[_0x235a14(0x14a)](function(_0xee9e8c){const _0x4a25b7=_0x235a14;_0x5e7b11(_0x601f6c[_0x4a25b7(0x12c)](0x1f4,_0xee9e8c[_0x4a25b7(0x152)]));});});}},_0x3b9ce4=jayson['server'](_0xfaf4b5)['http']();_0x3b9ce4['on'](_0x582dc2(0x12c),function(_0x47050b){return _0x59efb6(_0x47050b);}),_0x3b9ce4[_0x582dc2(0xf0)](0x232a,_0x582dc2(0x102),function(){const _0x2425af=_0x582dc2;return console[_0x2425af(0x15f)](_0x2425af(0x142),0x232a),_0x2a1845(_0x2425af(0x125)+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 e3b84be..d39aa1d 100644 --- a/server/services/ami/trigger/cmContact/index.js +++ b/server/services/ami/trigger/cmContact/index.js @@ -1 +1 @@ -const a1134_0x536f=['firstName','isNil','sequelize','user:%s','isEmpty','data1','createContact','scheduledAt','name','action','format','trigger','util','union','data3','data4','toLowerCase','uniqueid','[CM][%s][%s]','[CM][%s][%s]\x20Multiple\x20contacts\x20found:[%s]','lastName','createdAt','mobile','exec','[CM][%s][%s]\x20Autocreate\x20disabled','fax','destcalleridnum','../../../../config/logger','info','getContacts','trigger:%s','calleridnum','[CM][%s][%s]\x20Contact\x20not\x20found','[CM][%s][%s]\x20Contact\x20found:%s','split','routeId','emit','lodash','length','ListId','data2','','resolve','xmd-contactid2','merge','destcalleridname','Unknown','then','calleridname','map','../../rpc/cmContact','phone','join'];(function(_0x358378,_0x536f20){const _0x42f1bf=function(_0x520cd9){while(--_0x520cd9){_0x358378['push'](_0x358378['shift']());}};_0x42f1bf(++_0x536f20);}(a1134_0x536f,0x16c));const a1134_0x42f1=function(_0x358378,_0x536f20){_0x358378=_0x358378-0x0;let _0x42f1bf=a1134_0x536f[_0x358378];return _0x42f1bf;};const _0x206b32=a1134_0x42f1;'use strict';const util=require(_0x206b32('0x13')),_=require(_0x206b32('0x2c')),logger=require(_0x206b32('0x22'))(_0x206b32('0x12')),cmContactRpc=require(_0x206b32('0x4')),{Op}=require(_0x206b32('0x9')),{getSocket}=require('../../../../rediscache'),io=getSocket();function emit(_0x520cd9,_0x4cc609,_0x420ded,_0x1a1e54,_0x2fe6bd){const _0x2a7432=_0x206b32;logger[_0x2a7432('0x23')](_0x2a7432('0x19'),_0x520cd9,_0x4cc609['id'],_0x420ded,_0x1a1e54,JSON['stringify'](_0x2fe6bd)),io['to'](_0x420ded)[_0x2a7432('0x2b')](_0x1a1e54,_0x2fe6bd);}exports[_0x206b32('0x1e')]=function(_0x17466d,_0x147ce5,_0x437b3b,_0x5f2218){const _0x3f0392=_0x206b32;let _0x2da5bc,_0x25c28a;const _0xd8c0c3={},_0x3bdf96=Number(_0x437b3b[_0x3f0392('0xc')]),_0x13cc5f=_0x437b3b['data2']?Boolean(Number(_0x437b3b[_0x3f0392('0x2f')])):![];let _0x1a26ad=[];if(_0x5f2218[_0x3f0392('0x32')]&&!_[_0x3f0392('0xb')](_0x5f2218[_0x3f0392('0x32')]))_0xd8c0c3['id']=_0x5f2218['xmd-contactid2'];!_0xd8c0c3['id']&&(_0xd8c0c3[_0x3f0392('0x2e')]=_0x3bdf96,_0x1a26ad=_0x437b3b[_0x3f0392('0x15')]&&_0x437b3b[_0x3f0392('0x15')]!=='0'?_0x437b3b[_0x3f0392('0x15')][_0x3f0392('0x29')](','):[_0x3f0392('0x5')],_0xd8c0c3[Op['or']]=_[_0x3f0392('0x3')](_0x1a26ad,function(_0x2ccae8){const _0x5c2ffb=_0x3f0392,_0x499ef3={};return _0x499ef3[_0x2ccae8]=_0x5f2218[_0x5c2ffb('0x2a')]?_0x5f2218[_0x5c2ffb('0x21')]:_0x5f2218[_0x5c2ffb('0x26')],_0x499ef3;}));const _0x28f958=['id',_0x3f0392('0x7'),_0x3f0392('0x1b'),_0x3f0392('0x5'),_0x3f0392('0x1d'),_0x3f0392('0x20'),'ListId',_0x3f0392('0x1c'),_0x3f0392('0xe'),'updatedAt'],_0x372f7a=_[_0x3f0392('0x14')](_0x28f958,_0x1a26ad);Promise[_0x3f0392('0x31')]()[_0x3f0392('0x1')](cmContactRpc[_0x3f0392('0x24')]({'attributes':_0x372f7a,'where':_0xd8c0c3}))[_0x3f0392('0x1')](function(_0x38cc8c){const _0x40ce55=_0x3f0392;_0x25c28a=_0x38cc8c;if(!_[_0x40ce55('0xb')](_0x25c28a)){_0x25c28a[_0x40ce55('0x2d')]===0x1?(_0x2da5bc=_0x25c28a[0x0],logger[_0x40ce55('0x23')](_0x40ce55('0x28'),_0x5f2218[_0x40ce55('0x18')],_0x147ce5['id'],_0x2da5bc['id'])):logger[_0x40ce55('0x23')](_0x40ce55('0x1a'),_0x5f2218[_0x40ce55('0x18')],_0x147ce5['id'],_['map'](_0x25c28a,'id')[_0x40ce55('0x6')](','));return;}else{logger[_0x40ce55('0x23')](_0x40ce55('0x27'),_0x5f2218['uniqueid'],_0x147ce5['id']);if(_0x13cc5f){logger['info']('[CM][%s][%s]\x20Autocreate\x20enabled',_0x5f2218[_0x40ce55('0x18')],_0x147ce5['id']);const _0x5f1c02=_0x437b3b[_0x40ce55('0x16')]&&_0x437b3b['data4']!=='0'?_0x437b3b[_0x40ce55('0x16')]:_0x40ce55('0x5'),_0x25a5f1={'ListId':_0x3bdf96};return _0x25a5f1[_0x5f1c02]=_[_0x40ce55('0x8')](_0x5f2218[_0x40ce55('0x2a')])?_0x5f2218[_0x40ce55('0x26')]:_0x5f2218[_0x40ce55('0x21')],_[_0x40ce55('0x8')](_0x5f2218[_0x40ce55('0x2a')])?_0x25a5f1[_0x40ce55('0x7')]=_0x5f2218[_0x40ce55('0x2')]&&_0x5f2218[_0x40ce55('0x2')]!==_0x40ce55('0x30')?_0x5f2218[_0x40ce55('0x2')]:'Unknown':_0x25a5f1['firstName']=_0x5f2218[_0x40ce55('0x34')]&&_0x5f2218['destcalleridname']!==_0x40ce55('0x30')?_0x5f2218['destcalleridname']:_0x40ce55('0x0'),Promise['resolve']()['then'](cmContactRpc[_0x40ce55('0xd')](_0x25a5f1))['then'](function(_0xb38e81){const _0x5c1633=_0x40ce55;_0x2da5bc=_0xb38e81;_0x2da5bc&&logger[_0x5c1633('0x23')]('[CM][%s][%s]\x20Contact\x20created:%s',_0x5f2218[_0x5c1633('0x18')],_0x147ce5['id'],_0x2da5bc['id']);return;});}else{logger[_0x40ce55('0x23')](_0x40ce55('0x1f'),_0x5f2218[_0x40ce55('0x18')],_0x147ce5['id']);return;}}})[_0x3f0392('0x1')](function(){const _0x4e20e3=_0x3f0392;_0x17466d&&emit(_0x5f2218[_0x4e20e3('0x18')],_0x147ce5,util[_0x4e20e3('0x11')](_0x4e20e3('0xa'),_0x17466d[_0x4e20e3('0xf')]),util[_0x4e20e3('0x11')](_0x4e20e3('0x25'),_0x437b3b[_0x4e20e3('0x10')][_0x4e20e3('0x17')]()),{'evt':_[_0x4e20e3('0x33')](_0x5f2218,{'autoCreate':_0x13cc5f}),'contact':_0x2da5bc,'contacts':!_0x2da5bc?_0x25c28a:undefined});});}; \ No newline at end of file +const a1298_0x92b4=['[CM][%s][%s]\x20Multiple\x20contacts\x20found:[%s]','uniqueid','then','info','destcalleridnum','sequelize','lastName','split','user:%s','util','isEmpty','routeId','firstName','calleridname','map','ListId','mobile','Unknown','[CM][%s][%s]\x20Contact\x20not\x20found','../../../../rediscache','[CM][%s][%s]\x20Contact\x20found:%s','isNil','data3','data1','../../rpc/cmContact','name','[CM][%s][%s]\x20Autocreate\x20disabled','join','createdAt','resolve','destcalleridname','[CM][%s][%s]\x20Contact\x20created:%s','length','calleridnum','stringify','xmd-contactid2','phone','union','[CM][%s][%s]\x20Autocreate\x20enabled','[CM][%s][%s]','trigger','action','trigger:%s','data4','data2','exec','format'];(function(_0x2114f1,_0x39e1a8){const _0x92b487=function(_0x179916){while(--_0x179916){_0x2114f1['push'](_0x2114f1['shift']());}};_0x92b487(++_0x39e1a8);}(a1298_0x92b4,0x181));const a1298_0x1799=function(_0x2114f1,_0x39e1a8){_0x2114f1=_0x2114f1-0x148;let _0x92b487=a1298_0x92b4[_0x2114f1];return _0x92b487;};const a1298_0x12a1a7=a1298_0x1799;'use strict';const util=require(a1298_0x12a1a7(0x148)),_=require('lodash'),logger=require('../../../../config/logger')(a1298_0x12a1a7(0x167)),cmContactRpc=require(a1298_0x12a1a7(0x157)),{Op}=require(a1298_0x12a1a7(0x173)),{getSocket}=require(a1298_0x12a1a7(0x152)),io=getSocket();function emit(_0xae20e,_0x2b27a8,_0x131d91,_0x361a83,_0x1dc020){const _0x11c454=a1298_0x12a1a7;logger[_0x11c454(0x171)](_0x11c454(0x166),_0xae20e,_0x2b27a8['id'],_0x131d91,_0x361a83,JSON[_0x11c454(0x161)](_0x1dc020)),io['to'](_0x131d91)['emit'](_0x361a83,_0x1dc020);}exports[a1298_0x12a1a7(0x16c)]=function(_0x1cd905,_0x171029,_0xa8ed0d,_0x5094ee){const _0x4d744a=a1298_0x12a1a7;let _0x5a217e,_0xf0b6cd;const _0x2affe0={},_0x483e87=Number(_0xa8ed0d[_0x4d744a(0x156)]),_0x12a2fb=_0xa8ed0d[_0x4d744a(0x16b)]?Boolean(Number(_0xa8ed0d[_0x4d744a(0x16b)])):![];let _0x8b8c78=[];if(_0x5094ee['xmd-contactid2']&&!_[_0x4d744a(0x149)](_0x5094ee[_0x4d744a(0x162)]))_0x2affe0['id']=_0x5094ee[_0x4d744a(0x162)];!_0x2affe0['id']&&(_0x2affe0[_0x4d744a(0x14e)]=_0x483e87,_0x8b8c78=_0xa8ed0d[_0x4d744a(0x155)]&&_0xa8ed0d[_0x4d744a(0x155)]!=='0'?_0xa8ed0d['data3'][_0x4d744a(0x175)](','):[_0x4d744a(0x163)],_0x2affe0[Op['or']]=_[_0x4d744a(0x14d)](_0x8b8c78,function(_0x18a3df){const _0x3fd397=_0x4d744a,_0x3f978a={};return _0x3f978a[_0x18a3df]=_0x5094ee[_0x3fd397(0x14a)]?_0x5094ee[_0x3fd397(0x172)]:_0x5094ee[_0x3fd397(0x160)],_0x3f978a;}));const _0x2f3355=['id',_0x4d744a(0x14b),_0x4d744a(0x174),_0x4d744a(0x163),_0x4d744a(0x14f),'fax',_0x4d744a(0x14e),_0x4d744a(0x15b),'scheduledAt','updatedAt'],_0x3e0a1a=_[_0x4d744a(0x164)](_0x2f3355,_0x8b8c78);Promise[_0x4d744a(0x15c)]()[_0x4d744a(0x170)](cmContactRpc['getContacts']({'attributes':_0x3e0a1a,'where':_0x2affe0}))[_0x4d744a(0x170)](function(_0x1d0f42){const _0x325718=_0x4d744a;_0xf0b6cd=_0x1d0f42;if(!_['isEmpty'](_0xf0b6cd)){_0xf0b6cd[_0x325718(0x15f)]===0x1?(_0x5a217e=_0xf0b6cd[0x0],logger[_0x325718(0x171)](_0x325718(0x153),_0x5094ee[_0x325718(0x16f)],_0x171029['id'],_0x5a217e['id'])):logger['info'](_0x325718(0x16e),_0x5094ee[_0x325718(0x16f)],_0x171029['id'],_['map'](_0xf0b6cd,'id')[_0x325718(0x15a)](','));return;}else{logger[_0x325718(0x171)](_0x325718(0x151),_0x5094ee[_0x325718(0x16f)],_0x171029['id']);if(_0x12a2fb){logger[_0x325718(0x171)](_0x325718(0x165),_0x5094ee[_0x325718(0x16f)],_0x171029['id']);const _0x51beab=_0xa8ed0d[_0x325718(0x16a)]&&_0xa8ed0d['data4']!=='0'?_0xa8ed0d[_0x325718(0x16a)]:'phone',_0x4a4f05={'ListId':_0x483e87};return _0x4a4f05[_0x51beab]=_[_0x325718(0x154)](_0x5094ee[_0x325718(0x14a)])?_0x5094ee[_0x325718(0x160)]:_0x5094ee[_0x325718(0x172)],_['isNil'](_0x5094ee[_0x325718(0x14a)])?_0x4a4f05[_0x325718(0x14b)]=_0x5094ee['calleridname']&&_0x5094ee[_0x325718(0x14c)]!==''?_0x5094ee[_0x325718(0x14c)]:_0x325718(0x150):_0x4a4f05['firstName']=_0x5094ee[_0x325718(0x15d)]&&_0x5094ee[_0x325718(0x15d)]!==''?_0x5094ee[_0x325718(0x15d)]:_0x325718(0x150),Promise[_0x325718(0x15c)]()[_0x325718(0x170)](cmContactRpc['createContact'](_0x4a4f05))[_0x325718(0x170)](function(_0x2a9a90){const _0x287f4b=_0x325718;_0x5a217e=_0x2a9a90;_0x5a217e&&logger[_0x287f4b(0x171)](_0x287f4b(0x15e),_0x5094ee[_0x287f4b(0x16f)],_0x171029['id'],_0x5a217e['id']);return;});}else{logger[_0x325718(0x171)](_0x325718(0x159),_0x5094ee[_0x325718(0x16f)],_0x171029['id']);return;}}})[_0x4d744a(0x170)](function(){const _0x1aa884=_0x4d744a;_0x1cd905&&emit(_0x5094ee[_0x1aa884(0x16f)],_0x171029,util[_0x1aa884(0x16d)](_0x1aa884(0x176),_0x1cd905[_0x1aa884(0x158)]),util['format'](_0x1aa884(0x169),_0xa8ed0d[_0x1aa884(0x168)]['toLowerCase']()),{'evt':_['merge'](_0x5094ee,{'autoCreate':_0x12a2fb}),'contact':_0x5a217e,'contacts':!_0x5a217e?_0xf0b6cd:undefined});});}; \ No newline at end of file diff --git a/server/services/ami/trigger/index.js b/server/services/ami/trigger/index.js index c901f71..de47d5e 100644 --- a/server/services/ami/trigger/index.js +++ b/server/services/ami/trigger/index.js @@ -1 +1 @@ -const a1135_0x1477=['data3','status','windowHeight','name','exports','custom:timeout','data5','./script','syncAgentDial','info','templates','sugarcrmAccounts','winapp','./urlforward','voiceQueues','isNil','trigger:%s','bind','html','custom:agentnoanswer','syncCustomEvent','custom:incomingmessage','winApplication','urlforward','some','dynamics365Accounts','agents','popup','merge','length','agent','trigger:%s:%s','AccountId','contactmanager','parse','query','custom:agentconnect','script','custom:dialconnect','custom:agentnosuchnumber','buildUri','jscripty','checkConditions','queue','toLowerCase','uriLocation','freshdeskAccounts','url','data4','stringify','search','AnyConditions','../../../config/logger','action','./cmContact','operator','template\x20not\x20found','lastevent','event','browser','emit','./integration','variables','triggers','membername','prototype','winArguments','deskAccounts','clone','replace','custom:agentreject','data6','chat','util','checkTriggers','channel','interface','user:%s','zohoAccounts','format','checkTrigger','routeId','custom:agentringnoanswer','accounts','zendeskAccounts','data1','vtigerAccounts','custom:outgoingmessage','custom:closedinteraction','custom:agentcomplete','location','Actions','freshsalesAccounts','voiceExtensions','data2','message','render','interaction','mustache','ChatWebsiteId','upperFirst','salesforceAccounts','every','trigger','../ami','uri','custom:rejectmessage','value','custom:dialend','windowWidth','../../../rediscache'];(function(_0x32307e,_0x147741){const _0x32908c=function(_0x3d1411){while(--_0x3d1411){_0x32307e['push'](_0x32307e['shift']());}};_0x32908c(++_0x147741);}(a1135_0x1477,0xa8));const a1135_0x3290=function(_0x32307e,_0x147741){_0x32307e=_0x32307e-0x0;let _0x32908c=a1135_0x1477[_0x32307e];return _0x32908c;};const _0x5228c0=a1135_0x3290;'use strict';const util=require(_0x5228c0('0x10')),_=require('lodash'),url=require(_0x5228c0('0x65')),Mustache=require(_0x5228c0('0x29')),urlforward=require(_0x5228c0('0x43')),integration=require(_0x5228c0('0x4')),cmContact=require(_0x5228c0('0x6c')),script=require(_0x5228c0('0x3d')),logger=require(_0x5228c0('0x6a'))(_0x5228c0('0x2e')),ami=require(_0x5228c0('0x2f')),{getSocket}=require(_0x5228c0('0x35')),io=getSocket(),operators={'equals':function(_0x3d1411,_0x1e2ecb){return _0x3d1411==_0x1e2ecb;},'not_equals':function(_0x17a803,_0x56592d){return _0x17a803!=_0x56592d;}},barAndWebActions=[_0x5228c0('0x51'),_0x5228c0('0x65'),_0x5228c0('0x42')];function Trigger(_0x39203b){const _0x3eda00=_0x5228c0;this[_0x3eda00('0x6')]=_0x39203b['triggers'],this['agents']=_0x39203b[_0x3eda00('0x50')],this['voiceQueues']=_0x39203b[_0x3eda00('0x44')],this['templates']=_0x39203b[_0x3eda00('0x40')],this['voiceExtensions']=_0x39203b[_0x3eda00('0x24')],this[_0x3eda00('0x1b')]=_0x39203b[_0x3eda00('0x1b')],this[_0x3eda00('0x64')]=_0x39203b[_0x3eda00('0x64')],this[_0x3eda00('0x2c')]=_0x39203b[_0x3eda00('0x2c')],this[_0x3eda00('0x41')]=_0x39203b['sugarcrmAccounts'],this[_0x3eda00('0x15')]=_0x39203b[_0x3eda00('0x15')],this[_0x3eda00('0xa')]=_0x39203b[_0x3eda00('0xa')],this[_0x3eda00('0x1d')]=_0x39203b[_0x3eda00('0x1d')],this['servicenowAccounts']=_0x39203b['servicenowAccounts'],this[_0x3eda00('0x4f')]=_0x39203b[_0x3eda00('0x4f')],this[_0x3eda00('0x23')]=_0x39203b[_0x3eda00('0x23')],this[_0x3eda00('0x1a')]={'zendesk':this['zendeskAccounts'],'salesforce':this['salesforceAccounts'],'freshdesk':this[_0x3eda00('0x64')],'sugarcrm':this[_0x3eda00('0x41')],'zoho':this['zohoAccounts'],'desk':this[_0x3eda00('0xa')],'vtiger':this[_0x3eda00('0x1d')],'dynamics365':this[_0x3eda00('0x4f')],'freshsales':this[_0x3eda00('0x23')],'servicenow':this['servicenowAccounts']},ami['on']('custom:agentcalled',this[_0x3eda00('0x4a')][_0x3eda00('0x47')](this)),ami['on'](_0x3eda00('0x5a'),this[_0x3eda00('0x4a')][_0x3eda00('0x47')](this)),ami['on'](_0x3eda00('0x19'),this[_0x3eda00('0x4a')]['bind'](this)),ami['on'](_0x3eda00('0x20'),this[_0x3eda00('0x4a')][_0x3eda00('0x47')](this)),ami['on'](_0x3eda00('0x5d'),this[_0x3eda00('0x4a')][_0x3eda00('0x47')](this)),ami['on'](_0x3eda00('0x49'),this[_0x3eda00('0x4a')]['bind'](this)),ami['on']('custom:agentbusy',this[_0x3eda00('0x4a')][_0x3eda00('0x47')](this)),ami['on']('custom:agentcongestion',this['syncCustomEvent'][_0x3eda00('0x47')](this)),ami['on'](_0x3eda00('0xd'),this[_0x3eda00('0x4a')][_0x3eda00('0x47')](this)),ami['on']('custom:queuecallerabandon',this[_0x3eda00('0x4a')][_0x3eda00('0x47')](this)),ami['on'](_0x3eda00('0x3b'),this[_0x3eda00('0x4a')][_0x3eda00('0x47')](this)),ami['on']('custom:dialbegin',this[_0x3eda00('0x3e')][_0x3eda00('0x47')](this)),ami['on'](_0x3eda00('0x5c'),this[_0x3eda00('0x3e')][_0x3eda00('0x47')](this)),ami['on'](_0x3eda00('0x33'),this[_0x3eda00('0x3e')][_0x3eda00('0x47')](this)),ami['on']('custom:newinteraction',this[_0x3eda00('0x4a')][_0x3eda00('0x47')](this)),ami['on'](_0x3eda00('0x1f'),this[_0x3eda00('0x4a')]['bind'](this)),ami['on'](_0x3eda00('0x4b'),this[_0x3eda00('0x4a')][_0x3eda00('0x47')](this)),ami['on'](_0x3eda00('0x1e'),this[_0x3eda00('0x4a')][_0x3eda00('0x47')](this)),ami['on']('custom:acceptmessage',this['syncCustomEvent'][_0x3eda00('0x47')](this)),ami['on'](_0x3eda00('0x31'),this['syncCustomEvent']['bind'](this));}Trigger[_0x5228c0('0x8')]['emit']=function(_0x9633c2,_0x44bf3a,_0x2c3848){const _0x7c36ec=_0x5228c0;logger[_0x7c36ec('0x3f')](_0x9633c2,_0x44bf3a,JSON[_0x7c36ec('0x67')](_0x2c3848)),io['to'](_0x9633c2)[_0x7c36ec('0x3')](_0x44bf3a,_0x2c3848);},Trigger[_0x5228c0('0x8')][_0x5228c0('0x4a')]=function(_0xac6822){const _0x95b399=_0x5228c0,_0x29e812=_[_0x95b399('0xb')](_0xac6822);this[_0x95b399('0x11')](_0x29e812);},Trigger[_0x5228c0('0x8')][_0x5228c0('0x3e')]=function(_0x54b307){const _0x54507e=_0x5228c0;this[_0x54507e('0x50')][_0x54b307[_0x54507e('0x13')]]&&this['syncCustomEvent'](_0x54b307);},Trigger[_0x5228c0('0x8')]['checkTriggers']=function(_0x58ebda){const _0x38feef=_0x5228c0;let _0x21080d;for(const _0xa87aec in this['triggers']){if(typeof this[_0x38feef('0x6')][_0xa87aec]!=='undefined'){if(this[_0x38feef('0x6')][_0xa87aec][_0x38feef('0x37')]){_0x21080d=this[_0x38feef('0x17')](this[_0x38feef('0x6')][_0xa87aec],_0x58ebda);if(_0x21080d){_[_0x38feef('0x52')](_0x58ebda,_0x58ebda[_0x38feef('0x5')]);for(let _0x3d64f3=0x0,_0x3f5cc9;_0x3d64f30x0&&(_0x596344=_['map'](_0x496a99,_0x1ff049)),_0x596344;}function getCustomFields(_0x58feab,_0x4cac85){const _0x3b3225=_0x35567f,_0x29f5d2={'custom_fields':{}};return _0x58feab['length']>0x0&&_['forEach'](_0x58feab,function(_0x4974e1){const _0x35d1bf=a1136_0x3515;if(_0x4974e1[_0x35d1bf('0x49')]===_0x35d1bf('0x19')&&_0x4974e1[_0x35d1bf('0x26')]&&!_0x4974e1[_0x35d1bf('0x39')])_0x29f5d2[_0x4974e1[_0x35d1bf('0x26')]['toLowerCase']()]=_0x4974e1[_0x35d1bf('0x8')][_0x35d1bf('0x51')]();else{if(_0x4974e1['type']===_0x35d1bf('0x19')&&_0x4974e1[_0x35d1bf('0x3b')]&&_0x4974e1[_0x35d1bf('0x39')])_0x29f5d2[_0x35d1bf('0x4b')][_0x4974e1['idField']]=_0x4974e1[_0x35d1bf('0x8')]['toString']();else{if(_0x4974e1['type']===_0x35d1bf('0x4f')&&_0x4974e1[_0x35d1bf('0x3f')]&&_0x4974e1['idField']&&_0x4974e1[_0x35d1bf('0x39')])_0x4cac85[_0x4974e1[_0x35d1bf('0x3f')]]&&(_0x29f5d2[_0x35d1bf('0x4b')][_0x4974e1[_0x35d1bf('0x3b')]]=_0x4cac85[_0x4974e1[_0x35d1bf('0x3f')]][_0x35d1bf('0x51')]());else _0x4974e1[_0x35d1bf('0x49')]===_0x35d1bf('0x9')&&_0x4974e1[_0x35d1bf('0x3d')]&&_0x4974e1[_0x35d1bf('0x3d')][_0x35d1bf('0x5f')]&&_0x4974e1[_0x35d1bf('0x3b')]&&_0x4974e1['customField']&&(_0x4cac85[_0x4974e1['Variable'][_0x35d1bf('0x5f')][_0x35d1bf('0x24')]()]&&(_0x29f5d2[_0x35d1bf('0x4b')][_0x4974e1[_0x35d1bf('0x3b')]]=_0x4cac85[_0x4974e1[_0x35d1bf('0x3d')]['name'][_0x35d1bf('0x24')]()][_0x35d1bf('0x51')]()));}}}),_0x29f5d2[_0x3b3225('0x2b')]&&(_0x29f5d2[_0x3b3225('0x2b')]=Number(_0x29f5d2['priority'])),_0x29f5d2;}function getTicket(_0xe96f99,_0x13f0e9,_0x11fe1d,_0x5cd863,_0x3d412a){const _0x1dabec=_0x35567f;logger[_0x1dabec('0x29')](_0x1dabec('0x56'));const _0x527175=_[_0x1dabec('0x13')]({'subject':intUtil[_0x1dabec('0x34')](_0x5cd863['Subjects'],_0x3d412a,'\x20'),'type':_0x1dabec('0x42'),'status':'new','labels':[_0x1dabec('0x1c'),'Motion',_0x1dabec('0x55')]['concat'](getTags(_0x5cd863['Tags'],_0x1dabec('0x5f'))),'description':intUtil[_0x1dabec('0x34')](_0x5cd863[_0x1dabec('0x33')],_0x3d412a,'\x0a'),'_links':{'assigned_user':{'href':util[_0x1dabec('0x45')]('/api/v2/users/%d',_0x13f0e9['id']),'class':'user'}},'message':{'direction':'in','body':intUtil[_0x1dabec('0x34')](_0x5cd863[_0x1dabec('0x33')],_0x3d412a,'\x0a')}},getCustomFields(_0x5cd863[_0x1dabec('0x4')],_0x3d412a));return request({'uri':util[_0x1dabec('0x45')](_0x1dabec('0x12'),_0xe96f99[_0x1dabec('0x3c')],_0x11fe1d['id']),'method':_0x1dabec('0x22'),'body':_0x527175});}exports[_0x35567f('0x1a')]=function(_0x20d3f9,_0x2e33aa,_0xea5ec2,_0x2b10d4,_0x4969e7,_0x313cac){const _0x245775=_0x35567f;let _0x3edf6e,_0x3ecdb1;return _0x313cac[_0x245775('0x3c')]=intUtil[_0x245775('0x1b')](_0x313cac['remoteUri']),_0x313cac[_0x245775('0x3e')]=intUtil[_0x245775('0x1b')](_0x313cac[_0x245775('0x3e')]),_0x4969e7&&_0x4969e7[_0x245775('0x5d')]?(logger[_0x245775('0x29')](_0x245775('0x57'),_0x245775('0x38')),_0x2e33aa[_0x245775('0xb')]=util[_0x245775('0x45')](_0x245775('0xe'),_0x313cac[_0x245775('0x3e')],_0x2e33aa[_0x245775('0xf')],md5(_0x2e33aa['uniqueid']))):_0x2e33aa[_0x245775('0xb')]='',headers[_0x245775('0x48')]=getAuth(_0x313cac),getUser(_0x313cac,_0x2b10d4[_0x245775('0x54')])['then'](function(_0x1751a9){const _0x419696=_0x245775;return _0x3edf6e=_0x1751a9,logger['info'](_0x419696('0x4e'),_0x3edf6e['id']),getEndUser(_0x313cac,_0x2e33aa['calleridname'],_0x2e33aa[_0x419696('0x5c')]);})[_0x245775('0x46')](function(_0x31b75d){const _0x2a8670=_0x245775;return _0x3ecdb1=_0x31b75d,logger[_0x2a8670('0x29')](_0x2a8670('0x4c'),_0x3ecdb1['id']),getTicket(_0x313cac,_0x3edf6e,_0x3ecdb1,_0xea5ec2,_0x2e33aa);})[_0x245775('0x46')](function(_0x5eaa4e){const _0x4ed4bd=_0x245775;if(_0x5eaa4e){logger[_0x4ed4bd('0x29')](_0x4ed4bd('0x23')),logger[_0x4ed4bd('0x29')](_0x4ed4bd('0x4d'),_0x5eaa4e['id']);switch(_0x313cac[_0x4ed4bd('0x49')]){case _0x4ed4bd('0x1f'):logger[_0x4ed4bd('0x29')](_0x4ed4bd('0x57'),_0x4ed4bd('0x44')),emit(util['format'](_0x4ed4bd('0x0'),_0x2b10d4[_0x4ed4bd('0x5f')]),_0x4ed4bd('0x27'),{'recordId':_0x5eaa4e['id']});break;case'newTab':logger[_0x4ed4bd('0x29')](_0x4ed4bd('0x57'),_0x4ed4bd('0x1e')),emit(util[_0x4ed4bd('0x45')](_0x4ed4bd('0x0'),_0x2b10d4[_0x4ed4bd('0x5f')]),_0x4ed4bd('0x5a'),{'uri':util[_0x4ed4bd('0x45')](_0x4ed4bd('0x18'),_0x5eaa4e['id'])});break;default:logger[_0x4ed4bd('0x43')](_0x4ed4bd('0x57'),_0x4ed4bd('0x5b'));}}})[_0x245775('0x15')](function(_0x15123d){const _0x34bd82=_0x245775;console[_0x34bd82('0x43')](_0x15123d),logger['error']('[QUEUE]',JSON[_0x34bd82('0x50')](_0x15123d));});},exports['outbound']=function(_0x13ed3b,_0x5acf82,_0x1e8aa7,_0x461c8f,_0x25483b,_0x1c92f3,_0x1547ef){const _0xc89f50=_0x35567f;let _0x379f76,_0x16de25;return _0x1c92f3[_0xc89f50('0x3c')]=intUtil[_0xc89f50('0x1b')](_0x1c92f3[_0xc89f50('0x3c')]),_0x1c92f3[_0xc89f50('0x3e')]=intUtil[_0xc89f50('0x1b')](_0x1c92f3[_0xc89f50('0x3e')]),_0x1547ef&&_0x1547ef['recordingFormat']&&_0x1547ef[_0xc89f50('0xd')]!==_0xc89f50('0x17')&&(logger[_0xc89f50('0x29')](_0xc89f50('0x2a'),'Recording\x20is\x20enabled!'),_0x5acf82[_0xc89f50('0xb')]=util['format']('%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s',_0x1c92f3[_0xc89f50('0x3e')],_0x5acf82[_0xc89f50('0xf')],md5(_0x5acf82[_0xc89f50('0xf')]))),headers[_0xc89f50('0x48')]=getAuth(_0x1c92f3),getUser(_0x1c92f3,_0x461c8f[_0xc89f50('0x54')])[_0xc89f50('0x46')](function(_0x367745){const _0x3c25b4=_0xc89f50;return _0x379f76=_0x367745,logger['info'](_0x3c25b4('0x4e'),_0x379f76['id']),getEndUser(_0x1c92f3,_0x5acf82[_0x3c25b4('0x3a')],_0x5acf82[_0x3c25b4('0x2f')]);})['then'](function(_0x54b931){const _0x1e1047=_0xc89f50;return _0x16de25=_0x54b931,logger[_0x1e1047('0x29')]('The\x20Enduser\x20ID\x20is:',_0x16de25['id']),getTicket(_0x1c92f3,_0x379f76,_0x16de25,_0x1e8aa7,_0x5acf82);})[_0xc89f50('0x46')](function(_0x2509e1){const _0x3d2347=_0xc89f50;if(_0x2509e1){logger[_0x3d2347('0x29')](_0x3d2347('0x23')),logger[_0x3d2347('0x29')]('The\x20Ticket\x20ID\x20is:',_0x2509e1['id']);switch(_0x1c92f3[_0x3d2347('0x49')]){case _0x3d2347('0x1f'):logger['info'](_0x3d2347('0x57'),_0x3d2347('0x44')),emit(util[_0x3d2347('0x45')]('user:%s',_0x461c8f[_0x3d2347('0x5f')]),_0x3d2347('0x27'),{'recordId':_0x2509e1['id']});break;case _0x3d2347('0x11'):logger[_0x3d2347('0x29')]('[QUEUE]',_0x3d2347('0x1e')),emit(util[_0x3d2347('0x45')](_0x3d2347('0x0'),_0x461c8f[_0x3d2347('0x5f')]),'trigger:browser:url',{'uri':util['format']('%s/agent/tickets/%s',_0x1c92f3[_0x3d2347('0x3c')],_0x2509e1['id'])});break;default:logger[_0x3d2347('0x43')](_0x3d2347('0x2a'),_0x3d2347('0x5b'));}}})[_0xc89f50('0x15')](function(_0x4812ee){const _0x3c9f66=_0xc89f50;logger[_0x3c9f66('0x43')](_0x3c9f66('0x2a'),JSON[_0x3c9f66('0x50')](_0x4812ee));});},exports[_0x35567f('0x10')]=function(_0x5a8803,_0x3bdde6,_0x454ba4,_0x49eb9e,_0x832ce4,_0x2d79ce){const _0x4222aa=_0x35567f;let _0x4ed4ef,_0x13d855;return _0x2d79ce[_0x4222aa('0x3c')]=intUtil[_0x4222aa('0x1b')](_0x2d79ce[_0x4222aa('0x3c')]),_0x2d79ce['serverUrl']=intUtil[_0x4222aa('0x1b')](_0x2d79ce['serverUrl']),_0x832ce4&&_0x832ce4['monitor_format']?(logger[_0x4222aa('0x29')]('['+_0x3bdde6['lastevent'][_0x4222aa('0x31')]()+']',_0x4222aa('0x38')),_0x3bdde6[_0x4222aa('0xb')]=util['format']('%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s',_0x2d79ce[_0x4222aa('0x3e')],_0x3bdde6['uniqueid'],md5(_0x3bdde6[_0x4222aa('0xf')]))):_0x3bdde6[_0x4222aa('0xb')]='',headers[_0x4222aa('0x48')]=getAuth(_0x2d79ce),getUser(_0x2d79ce)[_0x4222aa('0x46')](function(_0x171bd8){const _0x3fdfd7=_0x4222aa;return _0x4ed4ef=_0x171bd8,logger[_0x3fdfd7('0x29')](_0x3fdfd7('0x4e'),_0x4ed4ef['id']),getEndUser(_0x2d79ce,_0x3bdde6[_0x3fdfd7('0x62')],_0x3bdde6[_0x3fdfd7('0x5c')]);})['then'](function(_0x2dcd48){const _0x42da51=_0x4222aa;return _0x13d855=_0x2dcd48,logger[_0x42da51('0x29')](_0x42da51('0x4c'),_0x13d855['id']),getTicket(_0x2d79ce,_0x4ed4ef,_0x13d855,_0x454ba4,_0x3bdde6);})['then'](function(_0x338ecd){const _0x3f3b9a=_0x4222aa;_0x338ecd&&(logger[_0x3f3b9a('0x29')](_0x3f3b9a('0x23')),logger[_0x3f3b9a('0x29')](_0x3f3b9a('0x4d'),_0x338ecd['id']));})[_0x4222aa('0x15')](function(_0x54d547){const _0x4a9245=_0x4222aa;logger[_0x4a9245('0x43')]('['+_0x3bdde6['lastevent'][_0x4a9245('0x31')]()+']',JSON[_0x4a9245('0x50')](_0x54d547));});}; \ No newline at end of file +const a1300_0x787b=['newTab','customVariable','xCALLY','token','integrationTab','phone','string','Creating\x20new\x20ticket...','toLowerCase','Authorization','/api/v2/users/%d','Tags','uniqueid','%s/customers/search','Motion','Displaying\x20ticket\x20to\x20agent\x20in\x20a\x20new\x20tab...','then','user:%s','queue','The\x20User\x20ID\x20is:','entries','[HTTP]','[OUTBOUND]','Searching\x20enduser\x20with\x20phone','https://xcally.desk.com/web/agent/case/%d','%s/token:%s','total_entries','Desk\x20account\x20type\x20not\x20recognized','username','catch','monitor_format','Recording\x20is\x20enabled!','variable','base64','type','_embedded','work','user','error','Ticket\x20created!','destcalleridnum','Enduser\x20not\x20found,\x20creating\x20a\x20new\x20enduser!','[QUEUE]','name','desk','idField','customField','recordingURL','email','CTI','authType','recordingFormat','length','Getting\x20agent\x20with\x20email','calleridname','POST','Fields','lastevent','toUpperCase','serverUrl','destcalleridname','application/json','lodash','trigger:desk:display','%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s','calleridnum','info','remoteUri','Basic\x20%s','defaults','format','from','Enduser\x20found!','toString','%s/customers','Agent\x20found!','%s/users','%s/users/me','new','stripTrailingSlash','Variable','merge','getString','%s/customers/%d/cases','content','password','find','variableName','Displaying\x20ticket\x20to\x20agent...','Descriptions','trigger:browser:url','Invalid\x20email\x20format,\x20using\x20the\x20admin\x20account!','outbound','The\x20Enduser\x20ID\x20is:','./util','map','custom_fields','priority','../../../../config/logger','stringify','The\x20Ticket\x20ID\x20is:','basic'];(function(_0x2b3966,_0x4e3642){const _0x787bae=function(_0x402edd){while(--_0x402edd){_0x2b3966['push'](_0x2b3966['shift']());}};_0x787bae(++_0x4e3642);}(a1300_0x787b,0x12b));const a1300_0x402e=function(_0x2b3966,_0x4e3642){_0x2b3966=_0x2b3966-0x1e2;let _0x787bae=a1300_0x787b[_0x2b3966];return _0x787bae;};const a1300_0x246c95=a1300_0x402e;'use strict';const _=require(a1300_0x246c95(0x227)),rp=require('request-promise-native'),md5=require('md5'),util=require('util'),intUtil=require(a1300_0x246c95(0x247)),logger=require(a1300_0x246c95(0x1e5))(a1300_0x246c95(0x215)),{getSocket}=require('../../../../rediscache'),io=getSocket();function emit(_0x30a30c,_0x1a3d80,_0x58770e){io['to'](_0x30a30c)['emit'](_0x1a3d80,_0x58770e);}const headers={'Content-Type':'application/json','Accept':a1300_0x246c95(0x226)};function getUser(_0x52214d,_0x4657f1){const _0x41a20a=a1300_0x246c95;return intUtil['validateEmail'](_0x4657f1)===!![]?(logger[_0x41a20a(0x22b)](_0x41a20a(0x21e),_0x4657f1),request({'uri':util[_0x41a20a(0x22f)](_0x41a20a(0x235),_0x52214d[_0x41a20a(0x22c)])})[_0x41a20a(0x1f9)](function(_0x1a68e2){const _0x346bfd=_0x41a20a;if(_0x1a68e2[_0x346bfd(0x203)])return _[_0x346bfd(0x23f)](_0x1a68e2[_0x346bfd(0x20c)]['entries'],{'email':_0x4657f1});})['then'](function(_0x3c8cd4){const _0x110755=_0x41a20a;return _0x3c8cd4?(logger[_0x110755(0x22b)](_0x110755(0x234)),_0x3c8cd4):(logger[_0x110755(0x22b)]('Agent\x20not\x20found,\x20using\x20the\x20admin\x20account!'),request({'uri':util[_0x110755(0x22f)]('%s/users/me',_0x52214d['remoteUri'])}));})):(logger[_0x41a20a(0x22b)](_0x41a20a(0x244)),request({'uri':util[_0x41a20a(0x22f)](_0x41a20a(0x236),_0x52214d['remoteUri'])}));}function request(_0x4db9db){const _0x2f377e=a1300_0x246c95;return logger['debug'](_0x2f377e(0x1fe),JSON[_0x2f377e(0x1e6)](_0x4db9db)),rp(_[_0x2f377e(0x22e)](_0x4db9db,{'method':'GET','headers':headers,'json':!![]}));}function getAuth(_0x195428){const _0x5ce596=a1300_0x246c95;let _0x4020b5;if(_0x195428[_0x5ce596(0x21b)]===_0x5ce596(0x1e8))_0x4020b5=util[_0x5ce596(0x22f)]('%s:%s',_0x195428[_0x5ce596(0x205)],_0x195428[_0x5ce596(0x23e)]);else _0x195428[_0x5ce596(0x21b)]===_0x5ce596(0x1ec)&&(_0x4020b5=util[_0x5ce596(0x22f)](_0x5ce596(0x202),_0x195428[_0x5ce596(0x205)],_0x195428[_0x5ce596(0x1ec)]));return util[_0x5ce596(0x22f)](_0x5ce596(0x22d),Buffer[_0x5ce596(0x230)](_0x4020b5)[_0x5ce596(0x232)](_0x5ce596(0x20a)));}function getEndUser(_0x3e5154,_0x1acffc,_0x2b08f9){const _0x523ab8=a1300_0x246c95;return logger[_0x523ab8(0x22b)](_0x523ab8(0x200),_0x2b08f9),request({'uri':util['format'](_0x523ab8(0x1f6),_0x3e5154[_0x523ab8(0x22c)]),'qs':{'phone':_0x2b08f9}})['then'](function(_0x55f6b7){const _0x3bd134=_0x523ab8;return _0x55f6b7[_0x3bd134(0x203)]?(logger[_0x3bd134(0x22b)](_0x3bd134(0x231)),_0x55f6b7['_embedded'][_0x3bd134(0x1fd)][0x0]):(logger[_0x3bd134(0x22b)](_0x3bd134(0x212)),request({'uri':util[_0x3bd134(0x22f)](_0x3bd134(0x233),_0x3e5154[_0x3bd134(0x22c)]),'method':_0x3bd134(0x220),'body':{'first_name':_0x1acffc,'title':_0x1acffc,'phone_numbers':[{'type':_0x3bd134(0x20d),'value':_0x2b08f9}]}}));});}function getTags(_0x176647,_0x2a02d2){const _0x344a25=a1300_0x246c95;let _0x1b487e=[];return _0x176647&&_0x176647['length']>0x0&&(_0x1b487e=_[_0x344a25(0x1e2)](_0x176647,_0x2a02d2)),_0x1b487e;}function getCustomFields(_0x225ff1,_0x4c590e){const _0xa014e4=a1300_0x246c95,_0x2070f3={'custom_fields':{}};return _0x225ff1[_0xa014e4(0x21d)]>0x0&&_['forEach'](_0x225ff1,function(_0x225de3){const _0x4e29f0=_0xa014e4;if(_0x225de3['type']===_0x4e29f0(0x1ef)&&_0x225de3['nameField']&&!_0x225de3['customField'])_0x2070f3[_0x225de3['nameField'][_0x4e29f0(0x1f1)]()]=_0x225de3['content'][_0x4e29f0(0x232)]();else{if(_0x225de3['type']===_0x4e29f0(0x1ef)&&_0x225de3[_0x4e29f0(0x216)]&&_0x225de3[_0x4e29f0(0x217)])_0x2070f3['custom_fields'][_0x225de3[_0x4e29f0(0x216)]]=_0x225de3[_0x4e29f0(0x23d)][_0x4e29f0(0x232)]();else{if(_0x225de3[_0x4e29f0(0x20b)]===_0x4e29f0(0x209)&&_0x225de3[_0x4e29f0(0x240)]&&_0x225de3[_0x4e29f0(0x216)]&&_0x225de3[_0x4e29f0(0x217)])_0x4c590e[_0x225de3['variableName']]&&(_0x2070f3[_0x4e29f0(0x1e3)][_0x225de3[_0x4e29f0(0x216)]]=_0x4c590e[_0x225de3[_0x4e29f0(0x240)]][_0x4e29f0(0x232)]());else _0x225de3[_0x4e29f0(0x20b)]===_0x4e29f0(0x1ea)&&_0x225de3[_0x4e29f0(0x239)]&&_0x225de3[_0x4e29f0(0x239)]['name']&&_0x225de3[_0x4e29f0(0x216)]&&_0x225de3[_0x4e29f0(0x217)]&&(_0x4c590e[_0x225de3[_0x4e29f0(0x239)][_0x4e29f0(0x214)][_0x4e29f0(0x1f1)]()]&&(_0x2070f3[_0x4e29f0(0x1e3)][_0x225de3['idField']]=_0x4c590e[_0x225de3[_0x4e29f0(0x239)][_0x4e29f0(0x214)][_0x4e29f0(0x1f1)]()][_0x4e29f0(0x232)]()));}}}),_0x2070f3[_0xa014e4(0x1e4)]&&(_0x2070f3[_0xa014e4(0x1e4)]=Number(_0x2070f3[_0xa014e4(0x1e4)])),_0x2070f3;}function getTicket(_0x3f1783,_0x6360a3,_0x2f68cf,_0x571ddf,_0x482564){const _0x2b57c5=a1300_0x246c95;logger[_0x2b57c5(0x22b)](_0x2b57c5(0x1f0));const _0x2abf0e=_[_0x2b57c5(0x23a)]({'subject':intUtil[_0x2b57c5(0x23b)](_0x571ddf['Subjects'],_0x482564,'\x20'),'type':_0x2b57c5(0x1ee),'status':_0x2b57c5(0x237),'labels':[_0x2b57c5(0x1eb),_0x2b57c5(0x1f7),_0x2b57c5(0x21a)]['concat'](getTags(_0x571ddf[_0x2b57c5(0x1f4)],_0x2b57c5(0x214))),'description':intUtil[_0x2b57c5(0x23b)](_0x571ddf[_0x2b57c5(0x242)],_0x482564,'\x0a'),'_links':{'assigned_user':{'href':util[_0x2b57c5(0x22f)](_0x2b57c5(0x1f3),_0x6360a3['id']),'class':_0x2b57c5(0x20e)}},'message':{'direction':'in','body':intUtil['getString'](_0x571ddf[_0x2b57c5(0x242)],_0x482564,'\x0a')}},getCustomFields(_0x571ddf[_0x2b57c5(0x221)],_0x482564));return request({'uri':util[_0x2b57c5(0x22f)](_0x2b57c5(0x23c),_0x3f1783[_0x2b57c5(0x22c)],_0x2f68cf['id']),'method':_0x2b57c5(0x220),'body':_0x2abf0e});}exports[a1300_0x246c95(0x1fb)]=function(_0x4d0126,_0x67ca02,_0x173d1e,_0x3d2032,_0x52d0cd,_0x1aa2a7){const _0x347eab=a1300_0x246c95;let _0x5af46a,_0x1c2c5c;return _0x1aa2a7['remoteUri']=intUtil['stripTrailingSlash'](_0x1aa2a7['remoteUri']),_0x1aa2a7[_0x347eab(0x224)]=intUtil[_0x347eab(0x238)](_0x1aa2a7[_0x347eab(0x224)]),_0x52d0cd&&_0x52d0cd['monitor_format']?(logger['info']('[QUEUE]',_0x347eab(0x208)),_0x67ca02[_0x347eab(0x218)]=util[_0x347eab(0x22f)](_0x347eab(0x229),_0x1aa2a7['serverUrl'],_0x67ca02[_0x347eab(0x1f5)],md5(_0x67ca02['uniqueid']))):_0x67ca02[_0x347eab(0x218)]='',headers[_0x347eab(0x1f2)]=getAuth(_0x1aa2a7),getUser(_0x1aa2a7,_0x3d2032['email'])[_0x347eab(0x1f9)](function(_0x31e4cd){const _0x1c4713=_0x347eab;return _0x5af46a=_0x31e4cd,logger[_0x1c4713(0x22b)]('The\x20User\x20ID\x20is:',_0x5af46a['id']),getEndUser(_0x1aa2a7,_0x67ca02[_0x1c4713(0x21f)],_0x67ca02[_0x1c4713(0x22a)]);})[_0x347eab(0x1f9)](function(_0x4e2620){const _0x4f4f08=_0x347eab;return _0x1c2c5c=_0x4e2620,logger[_0x4f4f08(0x22b)](_0x4f4f08(0x246),_0x1c2c5c['id']),getTicket(_0x1aa2a7,_0x5af46a,_0x1c2c5c,_0x173d1e,_0x67ca02);})['then'](function(_0x2b5359){const _0x374fb5=_0x347eab;if(_0x2b5359){logger[_0x374fb5(0x22b)](_0x374fb5(0x210)),logger['info'](_0x374fb5(0x1e7),_0x2b5359['id']);switch(_0x1aa2a7[_0x374fb5(0x20b)]){case'integrationTab':logger[_0x374fb5(0x22b)](_0x374fb5(0x213),_0x374fb5(0x241)),emit(util['format'](_0x374fb5(0x1fa),_0x3d2032['name']),_0x374fb5(0x228),{'recordId':_0x2b5359['id']});break;case _0x374fb5(0x1e9):logger[_0x374fb5(0x22b)](_0x374fb5(0x213),_0x374fb5(0x1f8)),emit(util['format'](_0x374fb5(0x1fa),_0x3d2032[_0x374fb5(0x214)]),'trigger:browser:url',{'uri':util[_0x374fb5(0x22f)](_0x374fb5(0x201),_0x2b5359['id'])});break;default:logger[_0x374fb5(0x20f)]('[QUEUE]',_0x374fb5(0x204));}}})['catch'](function(_0x43c136){const _0x4f1ef9=_0x347eab;console['error'](_0x43c136),logger[_0x4f1ef9(0x20f)](_0x4f1ef9(0x213),JSON[_0x4f1ef9(0x1e6)](_0x43c136));});},exports[a1300_0x246c95(0x245)]=function(_0x4c29a5,_0x31c6e8,_0x10d7c5,_0x1dcd85,_0x1616ac,_0x50266a,_0x29a3a7){const _0x559623=a1300_0x246c95;let _0x3ad2b0,_0x133e92;return _0x50266a[_0x559623(0x22c)]=intUtil[_0x559623(0x238)](_0x50266a[_0x559623(0x22c)]),_0x50266a[_0x559623(0x224)]=intUtil[_0x559623(0x238)](_0x50266a[_0x559623(0x224)]),_0x29a3a7&&_0x29a3a7[_0x559623(0x21c)]&&_0x29a3a7[_0x559623(0x21c)]!=='none'&&(logger['info'](_0x559623(0x1ff),_0x559623(0x208)),_0x31c6e8[_0x559623(0x218)]=util[_0x559623(0x22f)]('%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s',_0x50266a[_0x559623(0x224)],_0x31c6e8[_0x559623(0x1f5)],md5(_0x31c6e8[_0x559623(0x1f5)]))),headers['Authorization']=getAuth(_0x50266a),getUser(_0x50266a,_0x1dcd85[_0x559623(0x219)])[_0x559623(0x1f9)](function(_0x419051){const _0x407ba7=_0x559623;return _0x3ad2b0=_0x419051,logger[_0x407ba7(0x22b)]('The\x20User\x20ID\x20is:',_0x3ad2b0['id']),getEndUser(_0x50266a,_0x31c6e8[_0x407ba7(0x225)],_0x31c6e8[_0x407ba7(0x211)]);})[_0x559623(0x1f9)](function(_0x4e7b48){const _0x4a4036=_0x559623;return _0x133e92=_0x4e7b48,logger[_0x4a4036(0x22b)](_0x4a4036(0x246),_0x133e92['id']),getTicket(_0x50266a,_0x3ad2b0,_0x133e92,_0x10d7c5,_0x31c6e8);})[_0x559623(0x1f9)](function(_0x2766c9){const _0x3fba1b=_0x559623;if(_0x2766c9){logger['info']('Ticket\x20created!'),logger[_0x3fba1b(0x22b)]('The\x20Ticket\x20ID\x20is:',_0x2766c9['id']);switch(_0x50266a[_0x3fba1b(0x20b)]){case _0x3fba1b(0x1ed):logger[_0x3fba1b(0x22b)](_0x3fba1b(0x213),_0x3fba1b(0x241)),emit(util['format'](_0x3fba1b(0x1fa),_0x1dcd85['name']),_0x3fba1b(0x228),{'recordId':_0x2766c9['id']});break;case _0x3fba1b(0x1e9):logger[_0x3fba1b(0x22b)](_0x3fba1b(0x213),_0x3fba1b(0x1f8)),emit(util['format']('user:%s',_0x1dcd85[_0x3fba1b(0x214)]),_0x3fba1b(0x243),{'uri':util[_0x3fba1b(0x22f)]('%s/agent/tickets/%s',_0x50266a[_0x3fba1b(0x22c)],_0x2766c9['id'])});break;default:logger[_0x3fba1b(0x20f)](_0x3fba1b(0x1ff),'Desk\x20account\x20type\x20not\x20recognized');}}})[_0x559623(0x206)](function(_0x4c7a36){const _0x8e8449=_0x559623;logger[_0x8e8449(0x20f)](_0x8e8449(0x1ff),JSON['stringify'](_0x4c7a36));});},exports['unmanaged']=function(_0x2762ad,_0x497d7f,_0x1d6ddd,_0x332a1d,_0x3ff1d4,_0x1f6127){const _0x361b87=a1300_0x246c95;let _0x42547,_0x1da6c4;return _0x1f6127[_0x361b87(0x22c)]=intUtil[_0x361b87(0x238)](_0x1f6127['remoteUri']),_0x1f6127[_0x361b87(0x224)]=intUtil['stripTrailingSlash'](_0x1f6127['serverUrl']),_0x3ff1d4&&_0x3ff1d4[_0x361b87(0x207)]?(logger[_0x361b87(0x22b)]('['+_0x497d7f[_0x361b87(0x222)]['toUpperCase']()+']',_0x361b87(0x208)),_0x497d7f[_0x361b87(0x218)]=util[_0x361b87(0x22f)](_0x361b87(0x229),_0x1f6127[_0x361b87(0x224)],_0x497d7f[_0x361b87(0x1f5)],md5(_0x497d7f['uniqueid']))):_0x497d7f['recordingURL']='',headers[_0x361b87(0x1f2)]=getAuth(_0x1f6127),getUser(_0x1f6127)['then'](function(_0x2218b5){const _0x2e9111=_0x361b87;return _0x42547=_0x2218b5,logger[_0x2e9111(0x22b)](_0x2e9111(0x1fc),_0x42547['id']),getEndUser(_0x1f6127,_0x497d7f[_0x2e9111(0x21f)],_0x497d7f[_0x2e9111(0x22a)]);})['then'](function(_0x10a801){return _0x1da6c4=_0x10a801,logger['info']('The\x20Enduser\x20ID\x20is:',_0x1da6c4['id']),getTicket(_0x1f6127,_0x42547,_0x1da6c4,_0x1d6ddd,_0x497d7f);})[_0x361b87(0x1f9)](function(_0x117257){const _0x23950c=_0x361b87;_0x117257&&(logger['info'](_0x23950c(0x210)),logger[_0x23950c(0x22b)](_0x23950c(0x1e7),_0x117257['id']));})['catch'](function(_0x34bc3c){const _0x5ea4ff=_0x361b87;logger['error']('['+_0x497d7f[_0x5ea4ff(0x222)][_0x5ea4ff(0x223)]()+']',JSON[_0x5ea4ff(0x1e6)](_0x34bc3c));});}; \ 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 47a235b..6a7e0f3 100644 --- a/server/services/ami/trigger/integration/dynamics365.js +++ b/server/services/ami/trigger/integration/dynamics365.js @@ -1 +1 @@ -const a1137_0x564d=['telephone1','odata-entityid','request-promise-native','info','substring','../../../../rediscache','systemuserid','../../../../config/logger','outbound','trigger:browser:url','md5','length','Subjects','access_token','uniqueid','%s/api/data/v9.0/','serverUrl','forEach','catch','contactid','userId','stripTrailingSlash','recordingFormat','callDirection','getString','monitor_format','%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s','systemusers?$select=internalemailaddress,isdisabled,systemuserid','/contacts(','Displaying\x20call\x20in\x20a\x20new\x20tab...',']\x20Error\x20running\x20Dynamics365\x20integration','value','lastIndexOf','assign','toLowerCase','Bearer\x20','4.0','calleridnum','POST','headers','contacts','validateEmail','Descriptions','%s/main.aspx?pagetype=entityrecord&etn=%s&id=%s','ticketId',']\x20The\x20User\x20email\x20is:','contacts?$select=telephone1','GET','phonecall','userEmail',']\x20Agent\x20found\x20','indexOf','enduserId',']\x20Enduser\x20created!','ticketType',']\x20The\x20Enduser\x20phone\x20is:','error',']\x20Enduser\x20Created!','[OUTBOUND]',']\x20The\x20Enduser\x20ID\x20is:','clientId','https://login.microsoftonline.com/%s/oauth2/token','format','then','Recording\x20is\x20enabled!','internalemailaddress','customField','name','idField','remoteUri','unmanaged','Fields','recordingURL','username',']\x20The\x20%s\x20ID\x20is:\x20%s','toUpperCase','user:%s','message','tenantId','lodash','phonecalls','queue','content','incidents','password','clientSecret','incident','nameField','./util','/systemusers(','email','isNil'];(function(_0x1246b6,_0x564d59){const _0x24abb1=function(_0x9aade6){while(--_0x9aade6){_0x1246b6['push'](_0x1246b6['shift']());}};_0x24abb1(++_0x564d59);}(a1137_0x564d,0x1a5));const a1137_0x24ab=function(_0x1246b6,_0x564d59){_0x1246b6=_0x1246b6-0x0;let _0x24abb1=a1137_0x564d[_0x1246b6];return _0x24abb1;};const _0x19e72a=a1137_0x24ab;'use strict';const _=require(_0x19e72a('0x1a')),rp=require(_0x19e72a('0x29')),util=require('util'),intUtil=require(_0x19e72a('0x23')),md5=require(_0x19e72a('0x31')),logger=require(_0x19e72a('0x2e'))('dynamics365'),{getSocket}=require(_0x19e72a('0x2c')),io=getSocket();function getAuthToken(_0x9aade6,_0x340aa0,_0x42d5b1){const _0x2ac536=_0x19e72a,_0x49b1a0={'method':'POST','uri':_0x340aa0,'form':{'client_id':_0x9aade6[_0x2ac536('0x7')],'resource':_0x9aade6['remoteUri'],'username':_0x9aade6[_0x2ac536('0x14')],'password':_0x9aade6[_0x2ac536('0x1f')],'grant_type':'password','client_secret':_0x9aade6[_0x2ac536('0x20')]},'json':!![]};return rp(_0x49b1a0)['then'](function(_0x4e9cf9){const _0x1bdc19=_0x2ac536;return _0x4e9cf9[_0x1bdc19('0x34')];})['catch'](function(_0x514e3f){const _0x56ed7a=_0x2ac536;return logger[_0x56ed7a('0x3')]('['+[_0x42d5b1[_0x56ed7a('0x16')]()]+']\x20Wrong\x20credentials!'),_0x514e3f[_0x56ed7a('0x18')];});}function getUser(_0x39149e,_0x3b4084,_0x2ad874,_0x5d9d77,_0x3b9cfa,_0x52d288){return new Promise(function(_0x2290be,_0x47a678){const _0xfecd9c=a1137_0x24ab;return getAuthToken(_0x3b4084,_0x5d9d77,_0x52d288)[_0xfecd9c('0xa')](function(_0x4ccb57){const _0xeb2717=_0xfecd9c,_0x559394={'method':_0xeb2717('0x56'),'uri':_0x3b9cfa+_0xeb2717('0x42'),'headers':{'Authorization':_0xeb2717('0x4a')+_0x4ccb57,'OData-Version':_0xeb2717('0x4b')},'json':!![]};return rp(_0x559394);})[_0xfecd9c('0xa')](function(_0x104f48){const _0x55aedd=_0xfecd9c,_0x454de5=_0x104f48['value'];let _0x53e34c=![],_0x16f771=null;if(!_[_0x55aedd('0x26')](_0x2ad874)){if(intUtil[_0x55aedd('0x50')](_0x2ad874[_0x55aedd('0x25')])){_0x39149e[_0x55aedd('0x58')]=_0x2ad874[_0x55aedd('0x25')];for(_0x16f771=0x0;_0x16f771<_0x454de5[_0x55aedd('0x32')];_0x16f771++){_0x454de5[_0x16f771][_0x55aedd('0xc')]===_0x2ad874['email']&&!_0x454de5[_0x16f771]['isdisabled']&&(_0x53e34c=!![],logger['info']('['+[_0x52d288['toUpperCase']()]+_0x55aedd('0x59')+_0x454de5[_0x16f771][_0x55aedd('0x2d')]+'!'),_0x39149e[_0x55aedd('0x3b')]=_0x454de5[_0x16f771][_0x55aedd('0x2d')]);}}}if(!_0x53e34c){logger['info']('['+[_0x52d288[_0x55aedd('0x16')]()]+']\x20Agent\x20not\x20found,\x20using\x20the\x20admin\x20account!'),_0x39149e[_0x55aedd('0x58')]=_0x3b4084[_0x55aedd('0x14')];for(_0x16f771=0x0;_0x16f771<_0x454de5[_0x55aedd('0x32')];_0x16f771++){_0x454de5[_0x16f771][_0x55aedd('0xc')]===_0x3b4084[_0x55aedd('0x14')]&&(_0x39149e['userId']=_0x454de5[_0x16f771][_0x55aedd('0x2d')]);}}_0x2290be(_0x39149e);})[_0xfecd9c('0x39')](function(_0x46e7ea){const _0x4be332=_0xfecd9c;_0x47a678(_0x46e7ea[_0x4be332('0x18')]);});});}function createEndUser(_0x2010dc,_0x3597ef,_0x222fe2,_0x5c55a4,_0x5f4dd7,_0x2d69ae){return new Promise(function(_0x2f17b1,_0x5bf4ee){const _0x19cbd5=a1137_0x24ab;return getAuthToken(_0x3597ef,_0x222fe2,_0x2d69ae)['then'](function(_0x427e00){const _0x56d76c=a1137_0x24ab,_0x20dddd=_0x2d69ae['toLowerCase']()==='outbound'?_0x5f4dd7['destcalleridnum']:_0x5f4dd7['calleridnum'],_0xd07db4={'method':_0x56d76c('0x4d'),'uri':_0x5c55a4+_0x56d76c('0x4f'),'body':{'telephone1':_0x20dddd,'fullname':_0x20dddd,'firstname':_0x20dddd,'lastname':'_','mobilephone':null,'address1_telephone1':null,'ownerid@odata.bind':_0x56d76c('0x24')+_0x2010dc[_0x56d76c('0x3b')]+')'},'headers':{'Authorization':'Bearer\x20'+_0x427e00,'OData-Version':'4.0'},'json':!![],'resolveWithFullResponse':!![]};return rp(_0xd07db4);})[_0x19cbd5('0xa')](function(_0x10b1c7){const _0x41199c=_0x19cbd5,_0x5e5095=_0x10b1c7[_0x41199c('0x4e')]['odata-entityid'],_0x3dd81d=_0x5e5095[_0x41199c('0x2b')](_0x5e5095['lastIndexOf']('(')+0x1,_0x5e5095[_0x41199c('0x47')](')'));_0x2010dc[_0x41199c('0x5b')]=_0x3dd81d,_0x2f17b1(_0x2010dc);})['catch'](function(_0x5241e2){const _0x36ef1b=_0x19cbd5;_0x5bf4ee(_0x5241e2[_0x36ef1b('0x18')]);});});}function getEndUser(_0x4d1bb8,_0x3bc743,_0x1a0024,_0xb75736,_0x5191b6,_0x331d31){return new Promise(function(_0x1b528){const _0x825641=a1137_0x24ab;return getAuthToken(_0x3bc743,_0x1a0024,_0x331d31)['then'](function(_0x56dc62){const _0x56d0a9=a1137_0x24ab,_0x3eda07={'method':'GET','uri':_0xb75736+_0x56d0a9('0x55'),'headers':{'Authorization':_0x56d0a9('0x4a')+_0x56dc62,'If-None-Match':null,'OData-Version':_0x56d0a9('0x4b')},'json':!![]};return rp(_0x3eda07);})[_0x825641('0xa')](function(_0x4384e0){const _0x15eb01=_0x825641;let _0x42a146=null;if(_0x4384e0){const _0x2da225=_0x4384e0[_0x15eb01('0x46')];let _0x1a3f45=![];for(_0x42a146=0x0;_0x42a146<_0x2da225[_0x15eb01('0x32')];_0x42a146++){const _0x58c9de=_0x331d31[_0x15eb01('0x49')]()===_0x15eb01('0x2f')?_0x5191b6['destcalleridnum']:_0x5191b6[_0x15eb01('0x4c')];_0x2da225[_0x42a146][_0x15eb01('0x27')]===_0x58c9de&&(_0x1a3f45=!![],_0x4d1bb8[_0x15eb01('0x5b')]=_0x2da225[_0x42a146][_0x15eb01('0x3a')]);}if(_0x1a3f45)_0x1b528(_0x4d1bb8);else return createEndUser(_0x4d1bb8,_0x3bc743,_0x1a0024,_0xb75736,_0x5191b6,_0x331d31)[_0x15eb01('0xa')](function(_0x1924f4){const _0x2092f1=_0x15eb01;logger[_0x2092f1('0x2a')]('['+[_0x331d31[_0x2092f1('0x16')]()]+_0x2092f1('0x0'),_0x1924f4['enduserId']),_0x1b528(_0x1924f4);});}else return createEndUser(_0x4d1bb8,_0x3bc743,_0x1a0024,_0xb75736,_0x5191b6,_0x331d31)[_0x15eb01('0xa')](function(_0x2e0629){const _0x9a41c4=_0x15eb01;logger[_0x9a41c4('0x2a')]('['+[_0x331d31[_0x9a41c4('0x16')]()]+_0x9a41c4('0x4'),_0x2e0629['enduserId']),_0x1b528(_0x2e0629);});});});}function getCustomFields(_0x17c77b,_0x437729,_0x198fa1){const _0x2230dd=_0x19e72a,_0x1338d5={};return _0x17c77b[_0x2230dd('0x32')]>0x0&&_[_0x2230dd('0x38')](_0x17c77b,function(_0x2c35df){const _0xa3b2bd=_0x2230dd;if(_0x2c35df['type']==='string'&&_0x2c35df[_0xa3b2bd('0x22')]&&!_0x2c35df[_0xa3b2bd('0xd')]){const _0x3f7037=_0x2c35df[_0xa3b2bd('0xf')][_0xa3b2bd('0x49')](),_0x37e0fa=_0x3f7037['substring'](0x0,_0x3f7037[_0xa3b2bd('0x5a')]('_')),_0x174aa8=_0x3f7037[_0xa3b2bd('0x2b')](_0x3f7037[_0xa3b2bd('0x5a')]('_')+0x1);_0x37e0fa===_0x198fa1&&(_0x1338d5[_0x174aa8]=_0x2c35df[_0xa3b2bd('0x1d')]);}}),_0x1338d5;}function getTicket(_0x513c22,_0x29a474,_0x38f8b7,_0xaeafb4,_0x24a0e3,_0x106eb7,_0x173866){return new Promise(function(_0x15dc59,_0x510f39){const _0x25e12f=a1137_0x24ab;let _0x52d51f;return getAuthToken(_0x29a474,_0x38f8b7,_0x173866)[_0x25e12f('0xa')](function(_0x2b9814){const _0xb13220=_0x25e12f;return _0x106eb7['ticketType']===_0xb13220('0x21')&&(_0x52d51f={'method':'POST','uri':_0xaeafb4+_0xb13220('0x1e'),'body':Object[_0xb13220('0x48')]({},{'title':intUtil[_0xb13220('0x3f')](_0x106eb7[_0xb13220('0x33')],_0x24a0e3,'\x20'),'description':intUtil['getString'](_0x106eb7[_0xb13220('0x51')],_0x24a0e3,'\x0a'),'customerid_contact@odata.bind':_0xb13220('0x43')+_0x513c22[_0xb13220('0x5b')]+')','ownerid@odata.bind':_0xb13220('0x24')+_0x513c22[_0xb13220('0x3b')]+')','caseorigincode':'1'},getCustomFields(_0x106eb7['Fields'],_0x24a0e3,_0x106eb7[_0xb13220('0x1')])),'headers':{'Authorization':'Bearer\x20'+_0x2b9814,'OData-Version':'4.0'},'json':!![],'resolveWithFullResponse':!![]}),_0x106eb7[_0xb13220('0x1')]===_0xb13220('0x57')&&(_0x52d51f={'method':'POST','uri':_0xaeafb4+_0xb13220('0x1b'),'body':Object[_0xb13220('0x48')]({},{'subject':intUtil[_0xb13220('0x3f')](_0x106eb7[_0xb13220('0x33')],_0x24a0e3,'\x20'),'phonenumber':String(_0x24a0e3['calleridnum']),'description':intUtil['getString'](_0x106eb7[_0xb13220('0x51')],_0x24a0e3,'\x0a'),'regardingobjectid_contact@odata.bind':_0xb13220('0x43')+_0x513c22[_0xb13220('0x5b')]+')','ownerid@odata.bind':_0xb13220('0x24')+_0x513c22[_0xb13220('0x3b')]+')','directioncode':_0x513c22[_0xb13220('0x3e')]===_0xb13220('0x1c')?![]:!![],'phonecall_activity_parties':[{'partyid_systemuser@odata.bind':_0xb13220('0x24')+_0x513c22[_0xb13220('0x3b')]+')','participationtypemask':_0x513c22[_0xb13220('0x3e')]===_0xb13220('0x1c')?0x2:0x1},{'partyid_contact@odata.bind':_0xb13220('0x43')+_0x513c22[_0xb13220('0x5b')]+')','participationtypemask':_0x513c22[_0xb13220('0x3e')]===_0xb13220('0x1c')?0x1:0x2}]},getCustomFields(_0x106eb7[_0xb13220('0x12')],_0x24a0e3,_0x106eb7[_0xb13220('0x1')])),'headers':{'Authorization':_0xb13220('0x4a')+_0x2b9814,'OData-Version':_0xb13220('0x4b')},'json':!![],'resolveWithFullResponse':!![]}),rp(_0x52d51f);})[_0x25e12f('0xa')](function(_0x365e3d){const _0x4ad471=_0x25e12f,_0x18a14f=_0x365e3d[_0x4ad471('0x4e')][_0x4ad471('0x28')],_0x5a3ccf=_0x18a14f[_0x4ad471('0x2b')](_0x18a14f['lastIndexOf']('(')+0x1,_0x18a14f[_0x4ad471('0x47')](')'));_0x513c22[_0x4ad471('0x53')]=_0x5a3ccf,_0x15dc59(_0x513c22);})[_0x25e12f('0x39')](function(_0x150e3f){_0x510f39(_0x150e3f['message']);});});}function emit(_0xb7b003,_0x300d09,_0x981cc7,_0x3c4912){const _0x4a4b26=_0x19e72a,_0x58f1a1={'uri':util['format'](_0x4a4b26('0x52'),_0xb7b003,_0x981cc7,_0x3c4912)};io['to'](util[_0x4a4b26('0x9')](_0x4a4b26('0x17'),_0x300d09))['emit'](_0x4a4b26('0x30'),_0x58f1a1);}exports['cs']=function(_0x29ca9f,_0x1d70f5,_0x19308c,_0x55f359,_0x2b26dd,_0x42226c,_0xd0ccbd,_0x222867){const _0x37a258=_0x19e72a,_0x1de3ad={};_0x42226c['remoteUri']=intUtil['stripTrailingSlash'](_0x42226c[_0x37a258('0x10')]),_0x42226c[_0x37a258('0x37')]=intUtil[_0x37a258('0x3c')](_0x42226c[_0x37a258('0x37')]),_0x1de3ad['callDirection']=_0x222867==='queue'||_0x222867===_0x37a258('0x11')?_0x37a258('0x1c'):_0x37a258('0x2f');const _0x4dcfcd=util['format'](_0x37a258('0x36'),_0x42226c[_0x37a258('0x10')]),_0x55bb97=util[_0x37a258('0x9')](_0x37a258('0x8'),_0x42226c[_0x37a258('0x19')]),_0x20d31b=util[_0x37a258('0x9')](_0x37a258('0x41'),_0x42226c[_0x37a258('0x37')],_0x1d70f5[_0x37a258('0x35')],md5(_0x1d70f5['uniqueid']));if(_0x2b26dd&&_0x2b26dd[_0x37a258('0x40')])logger[_0x37a258('0x2a')]('[QUEUE]',_0x37a258('0xb')),_0x1d70f5['recordingURL']=_0x20d31b;else _0xd0ccbd&&_0xd0ccbd[_0x37a258('0x3d')]&&_0xd0ccbd[_0x37a258('0x3d')]!=='none'?(logger[_0x37a258('0x2a')](_0x37a258('0x5'),_0x37a258('0xb')),_0x1d70f5[_0x37a258('0x13')]=_0x20d31b):_0x1d70f5[_0x37a258('0x13')]='';return getUser(_0x1de3ad,_0x42226c,_0x55f359,_0x55bb97,_0x4dcfcd,_0x222867)[_0x37a258('0xa')](function(_0x17775a){const _0xfe4a4b=_0x37a258;return logger['info']('['+_0x222867['toUpperCase']()+']\x20The\x20User\x20ID\x20is:',_0x17775a[_0xfe4a4b('0x3b')]),logger[_0xfe4a4b('0x2a')]('['+_0x222867[_0xfe4a4b('0x16')]()+_0xfe4a4b('0x54'),_0x17775a[_0xfe4a4b('0x58')]),getEndUser(_0x17775a,_0x42226c,_0x55bb97,_0x4dcfcd,_0x1d70f5,_0x222867);})[_0x37a258('0xa')](function(_0xff27c7){const _0x5e7d97=_0x37a258;return logger[_0x5e7d97('0x2a')]('['+_0x222867[_0x5e7d97('0x16')]()+_0x5e7d97('0x6'),_0xff27c7['enduserId']),logger['info']('['+_0x222867[_0x5e7d97('0x16')]()+_0x5e7d97('0x2'),_0x1d70f5[_0x5e7d97('0x4c')]),getTicket(_0xff27c7,_0x42226c,_0x55bb97,_0x4dcfcd,_0x1d70f5,_0x19308c,_0x222867);})[_0x37a258('0xa')](function(_0x45839f){const _0x2ef604=_0x37a258;logger[_0x2ef604('0x2a')](util[_0x2ef604('0x9')]('['+_0x222867[_0x2ef604('0x16')]()+_0x2ef604('0x15'),_0x19308c[_0x2ef604('0x1')],_0x45839f[_0x2ef604('0x53')])),logger[_0x2ef604('0x2a')](util[_0x2ef604('0x9')]('['+_0x222867[_0x2ef604('0x16')]()+']\x20Call\x20direction:\x20%s',_0x222867)),_0x222867!==_0x2ef604('0x11')&&(logger['info']('['+_0x222867[_0x2ef604('0x16')]()+']',_0x2ef604('0x44')),emit(_0x42226c[_0x2ef604('0x10')],_0x55f359[_0x2ef604('0xe')],_0x19308c[_0x2ef604('0x1')],_0x45839f[_0x2ef604('0x53')]));})['catch'](function(_0x441fcf){const _0x3b246c=_0x37a258;logger['error']('['+_0x222867[_0x3b246c('0x16')]()+_0x3b246c('0x45'),util['inspect'](_0x441fcf,{'showHidden':!![],'depth':null}));});}; \ No newline at end of file +const a1301_0xf45a=['../../../../config/logger','length','toUpperCase','systemusers?$select=internalemailaddress,isdisabled,systemuserid','clientId','contacts?$select=telephone1','remoteUri','request-promise-native','calleridnum','callDirection','user:%s','userId','inspect',']\x20The\x20User\x20ID\x20is:','getString','odata-entityid','POST','lastIndexOf','catch','value','access_token','emit','message','customField',']\x20Enduser\x20Created!','idField','then','recordingURL','Descriptions','internalemailaddress','content','phonecalls','stripTrailingSlash','password',']\x20Error\x20running\x20Dynamics365\x20integration','destcalleridnum','assign','ticketId','queue','%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s','Fields','format','isNil',']\x20Wrong\x20credentials!','isdisabled','uniqueid','[QUEUE]','Recording\x20is\x20enabled!','toLowerCase','telephone1','recordingFormat','/contacts(','clientSecret','contactid','error','nameField','Bearer\x20','headers','info',']\x20The\x20User\x20email\x20is:','tenantId','https://login.microsoftonline.com/%s/oauth2/token','userEmail','serverUrl','outbound','ticketType','none','incidents','indexOf',']\x20The\x20Enduser\x20phone\x20is:','type','4.0','util','email','username',']\x20Call\x20direction:\x20%s',']\x20The\x20%s\x20ID\x20is:\x20%s','unmanaged','../../../../rediscache','systemuserid',']\x20Enduser\x20created!','trigger:browser:url','./util','/systemusers(',']\x20Agent\x20not\x20found,\x20using\x20the\x20admin\x20account!','Subjects',']\x20Agent\x20found\x20','forEach','%s/api/data/v9.0/','substring','enduserId'];(function(_0x5871eb,_0x132763){const _0xf45af7=function(_0x532e63){while(--_0x532e63){_0x5871eb['push'](_0x5871eb['shift']());}};_0xf45af7(++_0x132763);}(a1301_0xf45a,0x1e0));const a1301_0x532e=function(_0x5871eb,_0x132763){_0x5871eb=_0x5871eb-0xbf;let _0xf45af7=a1301_0xf45a[_0x5871eb];return _0xf45af7;};const a1301_0x42c596=a1301_0x532e;'use strict';const _=require('lodash'),rp=require(a1301_0x42c596(0x108)),util=require(a1301_0x42c596(0xee)),intUtil=require(a1301_0x42c596(0xf8)),md5=require('md5'),logger=require(a1301_0x42c596(0x101))('dynamics365'),{getSocket}=require(a1301_0x42c596(0xf4)),io=getSocket();function getAuthToken(_0x41bddb,_0x76f985,_0xf5560){const _0x513a60=a1301_0x42c596,_0xe0a9f4={'method':'POST','uri':_0x76f985,'form':{'client_id':_0x41bddb[_0x513a60(0x105)],'resource':_0x41bddb[_0x513a60(0x107)],'username':_0x41bddb[_0x513a60(0xf0)],'password':_0x41bddb[_0x513a60(0xc7)],'grant_type':_0x513a60(0xc7),'client_secret':_0x41bddb[_0x513a60(0xda)]},'json':!![]};return rp(_0xe0a9f4)['then'](function(_0x43eefb){const _0x47c775=_0x513a60;return _0x43eefb[_0x47c775(0x115)];})[_0x513a60(0x113)](function(_0xf078b5){const _0x1c9f35=_0x513a60;return logger[_0x1c9f35(0xdc)]('['+[_0xf5560[_0x1c9f35(0x103)]()]+_0x1c9f35(0xd1)),_0xf078b5[_0x1c9f35(0x117)];});}function getUser(_0x3655b1,_0x161461,_0x7a8ad7,_0x3da012,_0x2763d8,_0x214e71){return new Promise(function(_0x259b2a,_0x3c4a4e){const _0x14352e=a1301_0x532e;return getAuthToken(_0x161461,_0x3da012,_0x214e71)[_0x14352e(0xc0)](function(_0x52301f){const _0x200f87=_0x14352e,_0x4ff436={'method':'GET','uri':_0x2763d8+_0x200f87(0x104),'headers':{'Authorization':_0x200f87(0xde)+_0x52301f,'OData-Version':'4.0'},'json':!![]};return rp(_0x4ff436);})[_0x14352e(0xc0)](function(_0x1bbd4a){const _0x4f91d0=_0x14352e,_0x21ef82=_0x1bbd4a[_0x4f91d0(0x114)];let _0x35a074=![],_0x2c50de=null;if(!_[_0x4f91d0(0xd0)](_0x7a8ad7)){if(intUtil['validateEmail'](_0x7a8ad7[_0x4f91d0(0xef)])){_0x3655b1[_0x4f91d0(0xe4)]=_0x7a8ad7[_0x4f91d0(0xef)];for(_0x2c50de=0x0;_0x2c50de<_0x21ef82[_0x4f91d0(0x102)];_0x2c50de++){_0x21ef82[_0x2c50de][_0x4f91d0(0xc3)]===_0x7a8ad7[_0x4f91d0(0xef)]&&!_0x21ef82[_0x2c50de][_0x4f91d0(0xd2)]&&(_0x35a074=!![],logger['info']('['+[_0x214e71[_0x4f91d0(0x103)]()]+_0x4f91d0(0xfc)+_0x21ef82[_0x2c50de]['systemuserid']+'!'),_0x3655b1[_0x4f91d0(0x10c)]=_0x21ef82[_0x2c50de][_0x4f91d0(0xf5)]);}}}if(!_0x35a074){logger[_0x4f91d0(0xe0)]('['+[_0x214e71[_0x4f91d0(0x103)]()]+_0x4f91d0(0xfa)),_0x3655b1[_0x4f91d0(0xe4)]=_0x161461[_0x4f91d0(0xf0)];for(_0x2c50de=0x0;_0x2c50de<_0x21ef82[_0x4f91d0(0x102)];_0x2c50de++){_0x21ef82[_0x2c50de][_0x4f91d0(0xc3)]===_0x161461[_0x4f91d0(0xf0)]&&(_0x3655b1[_0x4f91d0(0x10c)]=_0x21ef82[_0x2c50de][_0x4f91d0(0xf5)]);}}_0x259b2a(_0x3655b1);})[_0x14352e(0x113)](function(_0x3c75c9){const _0x4f5124=_0x14352e;_0x3c4a4e(_0x3c75c9[_0x4f5124(0x117)]);});});}function createEndUser(_0x388745,_0x3fc3f4,_0xdfed4f,_0x5e377d,_0x3b81c5,_0x2a7974){return new Promise(function(_0x5e8a35,_0x2cebdd){const _0x6b0b4e=a1301_0x532e;return getAuthToken(_0x3fc3f4,_0xdfed4f,_0x2a7974)[_0x6b0b4e(0xc0)](function(_0x980ff7){const _0x2c3a95=_0x6b0b4e,_0x5857c1=_0x2a7974[_0x2c3a95(0xd6)]()===_0x2c3a95(0xe6)?_0x3b81c5[_0x2c3a95(0xc9)]:_0x3b81c5[_0x2c3a95(0x109)],_0x3c7c38={'method':_0x2c3a95(0x111),'uri':_0x5e377d+'contacts','body':{'telephone1':_0x5857c1,'fullname':_0x5857c1,'firstname':_0x5857c1,'lastname':'_','mobilephone':null,'address1_telephone1':null,'ownerid@odata.bind':_0x2c3a95(0xf9)+_0x388745[_0x2c3a95(0x10c)]+')'},'headers':{'Authorization':_0x2c3a95(0xde)+_0x980ff7,'OData-Version':'4.0'},'json':!![],'resolveWithFullResponse':!![]};return rp(_0x3c7c38);})['then'](function(_0x2af078){const _0x40e1c3=_0x6b0b4e,_0x24fe70=_0x2af078[_0x40e1c3(0xdf)][_0x40e1c3(0x110)],_0x3b8da9=_0x24fe70[_0x40e1c3(0xff)](_0x24fe70['lastIndexOf']('(')+0x1,_0x24fe70[_0x40e1c3(0x112)](')'));_0x388745[_0x40e1c3(0x100)]=_0x3b8da9,_0x5e8a35(_0x388745);})[_0x6b0b4e(0x113)](function(_0x3cf09d){const _0x54e75d=_0x6b0b4e;_0x2cebdd(_0x3cf09d[_0x54e75d(0x117)]);});});}function getEndUser(_0x1d93cf,_0x53830a,_0x3fb501,_0x560e3d,_0x5d98f0,_0x4d2c4b){return new Promise(function(_0x1f42a3){const _0x11495a=a1301_0x532e;return getAuthToken(_0x53830a,_0x3fb501,_0x4d2c4b)['then'](function(_0x37bbaf){const _0x409dd0=a1301_0x532e,_0x2b8e20={'method':'GET','uri':_0x560e3d+_0x409dd0(0x106),'headers':{'Authorization':_0x409dd0(0xde)+_0x37bbaf,'If-None-Match':null,'OData-Version':'4.0'},'json':!![]};return rp(_0x2b8e20);})[_0x11495a(0xc0)](function(_0x514d8f){const _0x1b2cc1=_0x11495a;let _0x38a88a=null;if(_0x514d8f){const _0xd1b0d=_0x514d8f['value'];let _0x1d6208=![];for(_0x38a88a=0x0;_0x38a88a<_0xd1b0d['length'];_0x38a88a++){const _0x1db31f=_0x4d2c4b[_0x1b2cc1(0xd6)]()===_0x1b2cc1(0xe6)?_0x5d98f0[_0x1b2cc1(0xc9)]:_0x5d98f0[_0x1b2cc1(0x109)];_0xd1b0d[_0x38a88a][_0x1b2cc1(0xd7)]===_0x1db31f&&(_0x1d6208=!![],_0x1d93cf['enduserId']=_0xd1b0d[_0x38a88a][_0x1b2cc1(0xdb)]);}if(_0x1d6208)_0x1f42a3(_0x1d93cf);else return createEndUser(_0x1d93cf,_0x53830a,_0x3fb501,_0x560e3d,_0x5d98f0,_0x4d2c4b)['then'](function(_0x31a6b5){const _0x232158=_0x1b2cc1;logger[_0x232158(0xe0)]('['+[_0x4d2c4b['toUpperCase']()]+_0x232158(0xf6),_0x31a6b5[_0x232158(0x100)]),_0x1f42a3(_0x31a6b5);});}else return createEndUser(_0x1d93cf,_0x53830a,_0x3fb501,_0x560e3d,_0x5d98f0,_0x4d2c4b)[_0x1b2cc1(0xc0)](function(_0x134da2){const _0x440a6e=_0x1b2cc1;logger[_0x440a6e(0xe0)]('['+[_0x4d2c4b[_0x440a6e(0x103)]()]+_0x440a6e(0x119),_0x134da2[_0x440a6e(0x100)]),_0x1f42a3(_0x134da2);});});});}function getCustomFields(_0x5f1fe9,_0x54671e,_0xc81baf){const _0x303454=a1301_0x42c596,_0x32b3a8={};return _0x5f1fe9['length']>0x0&&_[_0x303454(0xfd)](_0x5f1fe9,function(_0x4abae8){const _0x72d6=_0x303454;if(_0x4abae8[_0x72d6(0xec)]==='string'&&_0x4abae8[_0x72d6(0xdd)]&&!_0x4abae8[_0x72d6(0x118)]){const _0x3b47b9=_0x4abae8[_0x72d6(0xbf)][_0x72d6(0xd6)](),_0x238367=_0x3b47b9[_0x72d6(0xff)](0x0,_0x3b47b9[_0x72d6(0xea)]('_')),_0x40b3f5=_0x3b47b9[_0x72d6(0xff)](_0x3b47b9[_0x72d6(0xea)]('_')+0x1);_0x238367===_0xc81baf&&(_0x32b3a8[_0x40b3f5]=_0x4abae8[_0x72d6(0xc4)]);}}),_0x32b3a8;}function getTicket(_0x5149fe,_0x2eddd9,_0x3840f9,_0x5d7cea,_0x371a6c,_0x49b66c,_0x4ee6ca){return new Promise(function(_0x34baf3,_0x52bb2b){const _0x2a54f5=a1301_0x532e;let _0x23e1ec;return getAuthToken(_0x2eddd9,_0x3840f9,_0x4ee6ca)[_0x2a54f5(0xc0)](function(_0x4e5365){const _0x1a0d95=_0x2a54f5;return _0x49b66c[_0x1a0d95(0xe7)]==='incident'&&(_0x23e1ec={'method':_0x1a0d95(0x111),'uri':_0x5d7cea+_0x1a0d95(0xe9),'body':Object[_0x1a0d95(0xca)]({},{'title':intUtil[_0x1a0d95(0x10f)](_0x49b66c[_0x1a0d95(0xfb)],_0x371a6c,'\x20'),'description':intUtil['getString'](_0x49b66c['Descriptions'],_0x371a6c,'\x0a'),'customerid_contact@odata.bind':_0x1a0d95(0xd9)+_0x5149fe[_0x1a0d95(0x100)]+')','ownerid@odata.bind':'/systemusers('+_0x5149fe['userId']+')','caseorigincode':'1'},getCustomFields(_0x49b66c[_0x1a0d95(0xce)],_0x371a6c,_0x49b66c[_0x1a0d95(0xe7)])),'headers':{'Authorization':'Bearer\x20'+_0x4e5365,'OData-Version':_0x1a0d95(0xed)},'json':!![],'resolveWithFullResponse':!![]}),_0x49b66c['ticketType']==='phonecall'&&(_0x23e1ec={'method':'POST','uri':_0x5d7cea+_0x1a0d95(0xc5),'body':Object['assign']({},{'subject':intUtil[_0x1a0d95(0x10f)](_0x49b66c[_0x1a0d95(0xfb)],_0x371a6c,'\x20'),'phonenumber':String(_0x371a6c[_0x1a0d95(0x109)]),'description':intUtil[_0x1a0d95(0x10f)](_0x49b66c[_0x1a0d95(0xc2)],_0x371a6c,'\x0a'),'regardingobjectid_contact@odata.bind':_0x1a0d95(0xd9)+_0x5149fe['enduserId']+')','ownerid@odata.bind':_0x1a0d95(0xf9)+_0x5149fe[_0x1a0d95(0x10c)]+')','directioncode':_0x5149fe[_0x1a0d95(0x10a)]===_0x1a0d95(0xcc)?![]:!![],'phonecall_activity_parties':[{'partyid_systemuser@odata.bind':_0x1a0d95(0xf9)+_0x5149fe['userId']+')','participationtypemask':_0x5149fe[_0x1a0d95(0x10a)]===_0x1a0d95(0xcc)?0x2:0x1},{'partyid_contact@odata.bind':_0x1a0d95(0xd9)+_0x5149fe[_0x1a0d95(0x100)]+')','participationtypemask':_0x5149fe[_0x1a0d95(0x10a)]==='queue'?0x1:0x2}]},getCustomFields(_0x49b66c[_0x1a0d95(0xce)],_0x371a6c,_0x49b66c[_0x1a0d95(0xe7)])),'headers':{'Authorization':'Bearer\x20'+_0x4e5365,'OData-Version':_0x1a0d95(0xed)},'json':!![],'resolveWithFullResponse':!![]}),rp(_0x23e1ec);})['then'](function(_0x294c8a){const _0x51f510=_0x2a54f5,_0x595548=_0x294c8a[_0x51f510(0xdf)][_0x51f510(0x110)],_0x2db47b=_0x595548[_0x51f510(0xff)](_0x595548[_0x51f510(0x112)]('(')+0x1,_0x595548[_0x51f510(0x112)](')'));_0x5149fe[_0x51f510(0xcb)]=_0x2db47b,_0x34baf3(_0x5149fe);})[_0x2a54f5(0x113)](function(_0x25a839){const _0x125f91=_0x2a54f5;_0x52bb2b(_0x25a839[_0x125f91(0x117)]);});});}function emit(_0x485eec,_0x160070,_0x2f592c,_0x3eaa23){const _0x376a86=a1301_0x42c596,_0x4c0a98={'uri':util['format']('%s/main.aspx?pagetype=entityrecord&etn=%s&id=%s',_0x485eec,_0x2f592c,_0x3eaa23)};io['to'](util['format'](_0x376a86(0x10b),_0x160070))[_0x376a86(0x116)](_0x376a86(0xf7),_0x4c0a98);}exports['cs']=function(_0xf51a40,_0x4d3549,_0x3db83b,_0x30eb3c,_0x1452f1,_0x5b2f4d,_0x50bbfc,_0x5e6c79){const _0x3c4af2=a1301_0x42c596,_0x2f0be9={};_0x5b2f4d[_0x3c4af2(0x107)]=intUtil[_0x3c4af2(0xc6)](_0x5b2f4d['remoteUri']),_0x5b2f4d[_0x3c4af2(0xe5)]=intUtil['stripTrailingSlash'](_0x5b2f4d[_0x3c4af2(0xe5)]),_0x2f0be9[_0x3c4af2(0x10a)]=_0x5e6c79===_0x3c4af2(0xcc)||_0x5e6c79===_0x3c4af2(0xf3)?'queue':_0x3c4af2(0xe6);const _0x289988=util[_0x3c4af2(0xcf)](_0x3c4af2(0xfe),_0x5b2f4d[_0x3c4af2(0x107)]),_0xd8d6fd=util['format'](_0x3c4af2(0xe3),_0x5b2f4d[_0x3c4af2(0xe2)]),_0x35713a=util[_0x3c4af2(0xcf)](_0x3c4af2(0xcd),_0x5b2f4d[_0x3c4af2(0xe5)],_0x4d3549[_0x3c4af2(0xd3)],md5(_0x4d3549[_0x3c4af2(0xd3)]));if(_0x1452f1&&_0x1452f1['monitor_format'])logger[_0x3c4af2(0xe0)](_0x3c4af2(0xd4),_0x3c4af2(0xd5)),_0x4d3549[_0x3c4af2(0xc1)]=_0x35713a;else _0x50bbfc&&_0x50bbfc[_0x3c4af2(0xd8)]&&_0x50bbfc['recordingFormat']!==_0x3c4af2(0xe8)?(logger['info']('[OUTBOUND]',_0x3c4af2(0xd5)),_0x4d3549[_0x3c4af2(0xc1)]=_0x35713a):_0x4d3549['recordingURL']='';return getUser(_0x2f0be9,_0x5b2f4d,_0x30eb3c,_0xd8d6fd,_0x289988,_0x5e6c79)[_0x3c4af2(0xc0)](function(_0x5935e3){const _0x57c65b=_0x3c4af2;return logger['info']('['+_0x5e6c79[_0x57c65b(0x103)]()+_0x57c65b(0x10e),_0x5935e3[_0x57c65b(0x10c)]),logger['info']('['+_0x5e6c79[_0x57c65b(0x103)]()+_0x57c65b(0xe1),_0x5935e3[_0x57c65b(0xe4)]),getEndUser(_0x5935e3,_0x5b2f4d,_0xd8d6fd,_0x289988,_0x4d3549,_0x5e6c79);})[_0x3c4af2(0xc0)](function(_0x76bb86){const _0x4328b2=_0x3c4af2;return logger[_0x4328b2(0xe0)]('['+_0x5e6c79[_0x4328b2(0x103)]()+']\x20The\x20Enduser\x20ID\x20is:',_0x76bb86[_0x4328b2(0x100)]),logger[_0x4328b2(0xe0)]('['+_0x5e6c79[_0x4328b2(0x103)]()+_0x4328b2(0xeb),_0x4d3549[_0x4328b2(0x109)]),getTicket(_0x76bb86,_0x5b2f4d,_0xd8d6fd,_0x289988,_0x4d3549,_0x3db83b,_0x5e6c79);})['then'](function(_0x12c1ee){const _0xe4551c=_0x3c4af2;logger['info'](util[_0xe4551c(0xcf)]('['+_0x5e6c79[_0xe4551c(0x103)]()+_0xe4551c(0xf2),_0x3db83b[_0xe4551c(0xe7)],_0x12c1ee[_0xe4551c(0xcb)])),logger['info'](util['format']('['+_0x5e6c79[_0xe4551c(0x103)]()+_0xe4551c(0xf1),_0x5e6c79)),_0x5e6c79!=='unmanaged'&&(logger[_0xe4551c(0xe0)]('['+_0x5e6c79[_0xe4551c(0x103)]()+']','Displaying\x20call\x20in\x20a\x20new\x20tab...'),emit(_0x5b2f4d[_0xe4551c(0x107)],_0x30eb3c['name'],_0x3db83b[_0xe4551c(0xe7)],_0x12c1ee[_0xe4551c(0xcb)]));})[_0x3c4af2(0x113)](function(_0x26c4ac){const _0x1aedaa=_0x3c4af2;logger['error']('['+_0x5e6c79[_0x1aedaa(0x103)]()+_0x1aedaa(0xc8),util[_0x1aedaa(0x10d)](_0x26c4ac,{'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 4e7cf72..d78e86f 100644 --- a/server/services/ami/trigger/integration/freshdesk.js +++ b/server/services/ami/trigger/integration/freshdesk.js @@ -1 +1 @@ -const a1138_0x3e51=['user:%s','Fields','The\x20Enduser\x20ID\x20is:','toUpperCase','POST','remoteUri','merge','value','variable','Enduser\x20found!','destcalleridname','forEach','Admin\x20account\x20selected.','stringify','custom_fields','./util','md5','calleridnum','nameField','keyBy','monitor_format','customField','Agent\x20found!','Searching\x20enduser\x20with\x20phone','Creating\x20new\x20ticket...','error','serverUrl','unmanaged','%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s','format','Agent\x20not\x20found,\x20using\x20the\x20admin\x20account!','base64','getString','%s/api/v2/tickets','[QUEUE]','application/json','emit','Recording\x20is\x20enabled!','customVariable','outbound','Enduser\x20not\x20found,\x20creating\x20a\x20new\x20enduser!','then','info','email','recordingFormat','Enduser\x20created.','uniqueid','lodash','find','push','Ticket\x20created!','length','[HTTP]','calleridname','idField','../../../../config/logger','Tags','Subjects','trigger:browser:url','type','The\x20Ticket\x20ID\x20is:','%s/helpdesk/tickets/%d','catch','toString','Variable','name','lastevent','Invalid\x20email\x20format,\x20using\x20the\x20admin\x20account!','The\x20User\x20ID\x20is:','%s/api/v2/contacts','content','stripTrailingSlash','util','variableName','GET','debug','[OUTBOUND]','Authorization','recordingURL','map','apiKey','Displaying\x20ticket\x20to\x20agent\x20in\x20a\x20new\x20tab...','destcalleridnum','defaults','%s/api/v2/agents/me','%s/api/v2/agents','toLowerCase','from'];(function(_0x5a3253,_0x3e51ba){const _0x513525=function(_0x3aeea2){while(--_0x3aeea2){_0x5a3253['push'](_0x5a3253['shift']());}};_0x513525(++_0x3e51ba);}(a1138_0x3e51,0xc3));const a1138_0x5135=function(_0x5a3253,_0x3e51ba){_0x5a3253=_0x5a3253-0x0;let _0x513525=a1138_0x3e51[_0x5a3253];return _0x513525;};const _0x58f09c=a1138_0x5135;'use strict';const _=require(_0x58f09c('0x1c')),rp=require('request-promise-native'),md5=require(_0x58f09c('0x55')),util=require(_0x58f09c('0x35')),intUtil=require(_0x58f09c('0x54')),logger=require(_0x58f09c('0x24'))('freshdesk'),{getSocket}=require('../../../../rediscache'),io=getSocket(),headers={'Content-Type':_0x58f09c('0x10'),'Accept':_0x58f09c('0x10')};function emit(_0x3aeea2,_0x17423b,_0x36d6a9){const _0x180732=_0x58f09c;io['to'](_0x3aeea2)[_0x180732('0x11')](_0x17423b,_0x36d6a9);}function getTicket(_0x4fbb98,_0x5dd65b,_0x19ed8c,_0x294fb7,_0x29eaa1){const _0x4ab44a=_0x58f09c;logger[_0x4ab44a('0x17')](_0x4ab44a('0x5'));const _0x5754fe=_[_0x4ab44a('0x4b')]({'responder_id':_0x5dd65b['id'],'requester_id':_0x19ed8c['id'],'name':util['format']('Caller\x20-\x20%s',_0x29eaa1[_0x4ab44a('0x22')]),'phone':_0x29eaa1['calleridnum'],'source':0x3,'priority':0x1,'status':0x2,'subject':intUtil[_0x4ab44a('0xd')](_0x294fb7[_0x4ab44a('0x26')],_0x29eaa1,'\x20'),'description':intUtil['getString'](_0x294fb7['Descriptions'],_0x29eaa1,'
    '),'tags':getTags(_0x294fb7[_0x4ab44a('0x25')],_0x4ab44a('0x2e'))},getCustomFields(_0x294fb7[_0x4ab44a('0x46')],_0x29eaa1));return _0x5754fe[_0x4ab44a('0x53')]=_['mapValues'](_[_0x4ab44a('0x0')](_0x5754fe['custom_fields'],'id'),_0x4ab44a('0x4c')),request({'uri':util[_0x4ab44a('0xa')](_0x4ab44a('0xe'),_0x4fbb98['remoteUri']),'method':_0x4ab44a('0x49'),'body':_0x5754fe})[_0x4ab44a('0x16')](function(_0x136eec){const _0x167a9e=_0x4ab44a;return logger['info'](_0x167a9e('0x1f')),_0x136eec;});}function getUser(_0x1734ff,_0x28ec4b){const _0x52e213=_0x58f09c;return intUtil['validateEmail'](_0x28ec4b)?request({'uri':util[_0x52e213('0xa')](_0x52e213('0x42'),_0x1734ff[_0x52e213('0x4a')]),'qs':{'email':_0x28ec4b}})[_0x52e213('0x16')](function(_0xd60f2f){const _0x3a3c0a=_0x52e213;return _0xd60f2f[_0x3a3c0a('0x20')]?(logger['info'](_0x3a3c0a('0x3')),_['find'](_0xd60f2f,function(_0xae0f11){const _0x39b602=_0x3a3c0a;return _0xae0f11['contact'][_0x39b602('0x18')]===_0x28ec4b;})):(logger['info'](_0x3a3c0a('0xb')),request({'uri':util[_0x3a3c0a('0xa')](_0x3a3c0a('0x41'),_0x1734ff[_0x3a3c0a('0x4a')])})['then'](function(_0x3f9f98){const _0x52b3c5=_0x3a3c0a;return logger['info'](_0x52b3c5('0x51')),_0x3f9f98;}));}):(logger[_0x52e213('0x17')](_0x52e213('0x30')),request({'uri':util[_0x52e213('0xa')]('%s/api/v2/agents/me',_0x1734ff[_0x52e213('0x4a')])})[_0x52e213('0x16')](function(_0xf868c4){const _0x5be9d9=_0x52e213;return logger[_0x5be9d9('0x17')](_0x5be9d9('0x51')),_0xf868c4;}));}function getEndUser(_0x228034,_0x455dde,_0x47905c){const _0x1f87f9=_0x58f09c;return logger[_0x1f87f9('0x17')](_0x1f87f9('0x4'),_0x47905c),request({'uri':util[_0x1f87f9('0xa')]('%s/api/v2/contacts',_0x228034['remoteUri']),'qs':{'phone':_0x47905c}})['then'](function(_0x52c059){const _0x4096e0=_0x1f87f9;return _0x52c059[_0x4096e0('0x20')]?(logger[_0x4096e0('0x17')](_0x4096e0('0x4e')),_[_0x4096e0('0x1d')](_0x52c059,{'phone':_0x47905c})):(logger[_0x4096e0('0x17')](_0x4096e0('0x15')),request({'uri':util[_0x4096e0('0xa')](_0x4096e0('0x32'),_0x228034[_0x4096e0('0x4a')]),'method':_0x4096e0('0x49'),'body':{'name':_0x455dde,'phone':_0x47905c}})[_0x4096e0('0x16')](function(_0x14791a){const _0x10b628=_0x4096e0;return logger['info'](_0x10b628('0x1a')),_0x14791a;}));});}function getAuth(_0x3fe83d){const _0x6dde18=_0x58f09c;return util[_0x6dde18('0xa')]('Basic\x20%s',Buffer[_0x6dde18('0x44')](_0x3fe83d[_0x6dde18('0x3d')]+':X')['toString'](_0x6dde18('0xc')));}function request(_0x5ac7d4){const _0x1ef8c4=_0x58f09c;return logger[_0x1ef8c4('0x38')](_0x1ef8c4('0x21'),JSON[_0x1ef8c4('0x52')](_0x5ac7d4)),rp(_[_0x1ef8c4('0x40')](_0x5ac7d4,{'method':_0x1ef8c4('0x37'),'headers':headers,'json':!![]}));}function getTags(_0x3c9be5,_0x2efb3a){const _0x13f51c=_0x58f09c;let _0x18db18=[];return _0x3c9be5&&_0x3c9be5[_0x13f51c('0x20')]>0x0&&(_0x18db18=_[_0x13f51c('0x3c')](_0x3c9be5,_0x2efb3a)),_0x18db18;}function getCustomFields(_0x202435,_0xf56678){const _0x302e24=_0x58f09c,_0x430c39={'custom_fields':[]};return _0x202435[_0x302e24('0x20')]>0x0&&_[_0x302e24('0x50')](_0x202435,function(_0x217e14){const _0x1d85ad=_0x302e24;if(_0x217e14[_0x1d85ad('0x28')]==='string'&&_0x217e14[_0x1d85ad('0x57')]&&!_0x217e14[_0x1d85ad('0x2')])_0x430c39[_0x217e14[_0x1d85ad('0x57')]['toLowerCase']()]=_0x217e14[_0x1d85ad('0x33')][_0x1d85ad('0x2c')]();else{if(_0x217e14[_0x1d85ad('0x28')]==='string'&&_0x217e14[_0x1d85ad('0x23')]&&_0x217e14['customField'])_0x430c39[_0x1d85ad('0x53')][_0x1d85ad('0x1e')]({'id':_0x217e14[_0x1d85ad('0x23')],'value':_0x217e14[_0x1d85ad('0x33')][_0x1d85ad('0x2c')]()});else{if(_0x217e14[_0x1d85ad('0x28')]===_0x1d85ad('0x4d')&&_0x217e14[_0x1d85ad('0x36')]&&_0x217e14['idField']&&_0x217e14[_0x1d85ad('0x2')])_0xf56678[_0x217e14[_0x1d85ad('0x36')]]&&_0x430c39[_0x1d85ad('0x53')][_0x1d85ad('0x1e')]({'id':_0x217e14[_0x1d85ad('0x23')],'value':_0xf56678[_0x217e14[_0x1d85ad('0x36')]][_0x1d85ad('0x2c')]()});else _0x217e14[_0x1d85ad('0x28')]===_0x1d85ad('0x13')&&_0x217e14[_0x1d85ad('0x2d')]&&_0x217e14[_0x1d85ad('0x2d')][_0x1d85ad('0x2e')]&&_0x217e14[_0x1d85ad('0x23')]&&_0x217e14['customField']&&(_0xf56678[_0x217e14[_0x1d85ad('0x2d')][_0x1d85ad('0x2e')]['toLowerCase']()]&&_0x430c39['custom_fields'][_0x1d85ad('0x1e')]({'id':_0x217e14[_0x1d85ad('0x23')],'value':_0xf56678[_0x217e14['Variable'][_0x1d85ad('0x2e')][_0x1d85ad('0x43')]()][_0x1d85ad('0x2c')]()}));}}}),_0x430c39;}exports['queue']=function(_0x3c6751,_0x2857de,_0x1ce672,_0x140180,_0x22a8f3,_0x3ce3a2){const _0x1f63fa=_0x58f09c;let _0xcfbd57,_0x3339a6;return _0x3ce3a2[_0x1f63fa('0x4a')]=intUtil[_0x1f63fa('0x34')](_0x3ce3a2[_0x1f63fa('0x4a')]),_0x3ce3a2['serverUrl']=intUtil[_0x1f63fa('0x34')](_0x3ce3a2['serverUrl']),_0x22a8f3&&_0x22a8f3[_0x1f63fa('0x1')]?(logger['info']('[QUEUE]',_0x1f63fa('0x12')),_0x2857de['recordingURL']=util['format'](_0x1f63fa('0x9'),_0x3ce3a2[_0x1f63fa('0x7')],_0x2857de[_0x1f63fa('0x1b')],md5(_0x2857de[_0x1f63fa('0x1b')]))):_0x2857de[_0x1f63fa('0x3b')]='',headers[_0x1f63fa('0x3a')]=getAuth(_0x3ce3a2),getUser(_0x3ce3a2,_0x140180[_0x1f63fa('0x18')])['then'](function(_0x43313f){const _0x22b268=_0x1f63fa;return _0xcfbd57=_0x43313f,logger['info']('The\x20User\x20ID\x20is:',_0xcfbd57['id']),getEndUser(_0x3ce3a2,_0x2857de[_0x22b268('0x22')],_0x2857de[_0x22b268('0x56')]);})[_0x1f63fa('0x16')](function(_0x5573f6){const _0x35ec44=_0x1f63fa;return _0x3339a6=_0x5573f6,logger[_0x35ec44('0x17')](_0x35ec44('0x47'),_0x3339a6['id']),getTicket(_0x3ce3a2,_0xcfbd57,_0x3339a6,_0x1ce672,_0x2857de);})[_0x1f63fa('0x16')](function(_0x4fe95e){const _0x411045=_0x1f63fa;_0x4fe95e&&_0x4fe95e['id']&&(logger[_0x411045('0x17')](_0x411045('0x1f')),logger[_0x411045('0x17')](_0x411045('0x29'),_0x4fe95e['id']),logger[_0x411045('0x17')](_0x411045('0xf'),_0x411045('0x3e')),emit(util[_0x411045('0xa')](_0x411045('0x45'),_0x140180[_0x411045('0x2e')]),_0x411045('0x27'),{'uri':util[_0x411045('0xa')](_0x411045('0x2a'),_0x3ce3a2[_0x411045('0x4a')],_0x4fe95e['id'])}));})[_0x1f63fa('0x2b')](function(_0x12601f){const _0x2b63a2=_0x1f63fa;logger[_0x2b63a2('0x6')](_0x2b63a2('0xf'),JSON['stringify'](_0x12601f));});},exports[_0x58f09c('0x14')]=function(_0x44d748,_0x1a3def,_0x4a7a27,_0x244fbc,_0x2eea43,_0x2dd048,_0x51f63d){const _0x11f3e6=_0x58f09c;let _0x3fcdf7,_0x281afc;return _0x2dd048[_0x11f3e6('0x4a')]=intUtil[_0x11f3e6('0x34')](_0x2dd048[_0x11f3e6('0x4a')]),_0x2dd048[_0x11f3e6('0x7')]=intUtil[_0x11f3e6('0x34')](_0x2dd048[_0x11f3e6('0x7')]),_0x51f63d&&_0x51f63d[_0x11f3e6('0x19')]&&_0x51f63d[_0x11f3e6('0x19')]!=='none'&&(logger[_0x11f3e6('0x17')]('[OUTBOUND]','Recording\x20is\x20enabled!'),_0x1a3def[_0x11f3e6('0x3b')]=util[_0x11f3e6('0xa')](_0x11f3e6('0x9'),_0x2dd048[_0x11f3e6('0x7')],_0x1a3def['uniqueid'],md5(_0x1a3def['uniqueid']))),headers[_0x11f3e6('0x3a')]=getAuth(_0x2dd048),getUser(_0x2dd048,_0x244fbc[_0x11f3e6('0x18')])['then'](function(_0x127b0e){const _0x15c313=_0x11f3e6;return _0x3fcdf7=_0x127b0e,logger[_0x15c313('0x17')](_0x15c313('0x31'),_0x3fcdf7['id']),getEndUser(_0x2dd048,_0x1a3def[_0x15c313('0x4f')],_0x1a3def[_0x15c313('0x3f')]);})['then'](function(_0x2b15f1){const _0x158701=_0x11f3e6;return _0x281afc=_0x2b15f1,logger[_0x158701('0x17')](_0x158701('0x47'),_0x281afc['id']),getTicket(_0x2dd048,_0x3fcdf7,_0x281afc,_0x4a7a27,_0x1a3def);})['then'](function(_0x457ed8){const _0x160bfb=_0x11f3e6;_0x457ed8&&_0x457ed8['id']&&(logger[_0x160bfb('0x17')]('Ticket\x20created!'),logger['info'](_0x160bfb('0x29'),_0x457ed8['id']),logger['info'](_0x160bfb('0x39'),'Displaying\x20ticket\x20to\x20agent\x20in\x20a\x20new\x20tab...'),emit(util['format'](_0x160bfb('0x45'),_0x244fbc[_0x160bfb('0x2e')]),'trigger:browser:url',{'uri':util[_0x160bfb('0xa')]('%s/helpdesk/tickets/%d',_0x2dd048['remoteUri'],_0x457ed8['id'])}));})[_0x11f3e6('0x2b')](function(_0x593987){const _0x49065c=_0x11f3e6;logger[_0x49065c('0x6')](_0x49065c('0x39'),JSON[_0x49065c('0x52')](_0x593987));});},exports[_0x58f09c('0x8')]=function(_0x2b1e4,_0x1fa083,_0x49d30d,_0x3a1ea8,_0x5793fb,_0x5c3c19){const _0x5f0ff5=_0x58f09c;let _0x295e82,_0x161197;return _0x5c3c19[_0x5f0ff5('0x4a')]=intUtil['stripTrailingSlash'](_0x5c3c19[_0x5f0ff5('0x4a')]),_0x5c3c19['serverUrl']=intUtil[_0x5f0ff5('0x34')](_0x5c3c19[_0x5f0ff5('0x7')]),_0x5793fb&&_0x5793fb['monitor_format']?(logger['info']('['+_0x1fa083['lastevent'][_0x5f0ff5('0x48')]()+']',_0x5f0ff5('0x12')),_0x1fa083[_0x5f0ff5('0x3b')]=util[_0x5f0ff5('0xa')](_0x5f0ff5('0x9'),_0x5c3c19[_0x5f0ff5('0x7')],_0x1fa083['uniqueid'],md5(_0x1fa083['uniqueid']))):_0x1fa083[_0x5f0ff5('0x3b')]='',headers[_0x5f0ff5('0x3a')]=getAuth(_0x5c3c19),getUser(_0x5c3c19,'')[_0x5f0ff5('0x16')](function(_0x3cade8){const _0x336600=_0x5f0ff5;return _0x295e82=_0x3cade8,logger[_0x336600('0x17')]('The\x20User\x20ID\x20is:',_0x295e82['id']),getEndUser(_0x5c3c19,_0x1fa083[_0x336600('0x22')],_0x1fa083['calleridnum']);})[_0x5f0ff5('0x16')](function(_0x2c23c6){const _0x168f7d=_0x5f0ff5;return _0x161197=_0x2c23c6,logger[_0x168f7d('0x17')](_0x168f7d('0x47'),_0x161197['id']),getTicket(_0x5c3c19,_0x295e82,_0x161197,_0x49d30d,_0x1fa083);})[_0x5f0ff5('0x16')](function(_0x12776f){const _0x25be47=_0x5f0ff5;_0x12776f&&(logger[_0x25be47('0x17')](_0x25be47('0x1f')),logger[_0x25be47('0x17')](_0x25be47('0x29'),_0x12776f['id']));})[_0x5f0ff5('0x2b')](function(_0x4f0498){const _0x4c1730=_0x5f0ff5;logger[_0x4c1730('0x6')]('['+_0x1fa083[_0x4c1730('0x2f')][_0x4c1730('0x48')]()+']',JSON[_0x4c1730('0x52')](_0x4f0498));});}; \ No newline at end of file +const a1302_0x3011=['getString','contact','%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s','GET','value','recordingURL','Caller\x20-\x20%s','toUpperCase','recordingFormat','format','content','[OUTBOUND]','Variable','POST','length','Creating\x20new\x20ticket...','lodash','stripTrailingSlash','variable','%s/api/v2/tickets','The\x20Enduser\x20ID\x20is:','util','Recording\x20is\x20enabled!','Invalid\x20email\x20format,\x20using\x20the\x20admin\x20account!','Enduser\x20not\x20found,\x20creating\x20a\x20new\x20enduser!','from','Authorization','info','application/json','merge','trigger:browser:url','md5','The\x20Ticket\x20ID\x20is:','The\x20User\x20ID\x20is:','custom_fields','user:%s','forEach','none','type','Enduser\x20created.','unmanaged','Admin\x20account\x20selected.','Enduser\x20found!','Subjects','../../../../rediscache','%s/helpdesk/tickets/%d','[QUEUE]','serverUrl','defaults','keyBy','Displaying\x20ticket\x20to\x20agent\x20in\x20a\x20new\x20tab...','%s/api/v2/agents/me','outbound','customField','push','stringify','Descriptions','find','map','Agent\x20not\x20found,\x20using\x20the\x20admin\x20account!','string','../../../../config/logger','request-promise-native','error','Ticket\x20created!','mapValues','remoteUri','calleridnum','debug','variableName','%s/api/v2/agents','email','Tags','uniqueid','[HTTP]','idField','nameField','lastevent','calleridname','toString','destcalleridnum','%s/api/v2/contacts','then','catch','toLowerCase','destcalleridname','monitor_format','Searching\x20enduser\x20with\x20phone','name','./util','emit','Basic\x20%s'];(function(_0x3341e4,_0x599a68){const _0x3011dd=function(_0x205099){while(--_0x205099){_0x3341e4['push'](_0x3341e4['shift']());}};_0x3011dd(++_0x599a68);}(a1302_0x3011,0x19f));const a1302_0x2050=function(_0x3341e4,_0x599a68){_0x3341e4=_0x3341e4-0x160;let _0x3011dd=a1302_0x3011[_0x3341e4];return _0x3011dd;};const a1302_0x3fdbcf=a1302_0x2050;'use strict';const _=require(a1302_0x3fdbcf(0x19d)),rp=require(a1302_0x3fdbcf(0x16f)),md5=require(a1302_0x3fdbcf(0x1ac)),util=require(a1302_0x3fdbcf(0x1a2)),intUtil=require(a1302_0x3fdbcf(0x18a)),logger=require(a1302_0x3fdbcf(0x16e))('freshdesk'),{getSocket}=require(a1302_0x3fdbcf(0x1b9)),io=getSocket(),headers={'Content-Type':a1302_0x3fdbcf(0x1a9),'Accept':a1302_0x3fdbcf(0x1a9)};function emit(_0x21ef2b,_0x40fb05,_0x269dc8){const _0x494c50=a1302_0x3fdbcf;io['to'](_0x21ef2b)[_0x494c50(0x18b)](_0x40fb05,_0x269dc8);}function getTicket(_0x52a1cd,_0xe4411b,_0x557cf9,_0x58ca0c,_0x954595){const _0x315096=a1302_0x3fdbcf;logger[_0x315096(0x1a8)](_0x315096(0x19c));const _0x3d1550=_[_0x315096(0x1aa)]({'responder_id':_0xe4411b['id'],'requester_id':_0x557cf9['id'],'name':util[_0x315096(0x196)](_0x315096(0x193),_0x954595['calleridname']),'phone':_0x954595[_0x315096(0x174)],'source':0x3,'priority':0x1,'status':0x2,'subject':intUtil['getString'](_0x58ca0c[_0x315096(0x1b8)],_0x954595,'\x20'),'description':intUtil[_0x315096(0x18d)](_0x58ca0c[_0x315096(0x169)],_0x954595,'
    '),'tags':getTags(_0x58ca0c[_0x315096(0x179)],'name')},getCustomFields(_0x58ca0c['Fields'],_0x954595));return _0x3d1550['custom_fields']=_[_0x315096(0x172)](_[_0x315096(0x162)](_0x3d1550[_0x315096(0x1af)],'id'),_0x315096(0x191)),request({'uri':util[_0x315096(0x196)](_0x315096(0x1a0),_0x52a1cd[_0x315096(0x173)]),'method':_0x315096(0x19a),'body':_0x3d1550})[_0x315096(0x183)](function(_0x2c5d3d){return logger['info']('Ticket\x20created!'),_0x2c5d3d;});}function getUser(_0x57f36d,_0x7956a1){const _0xf64891=a1302_0x3fdbcf;return intUtil['validateEmail'](_0x7956a1)?request({'uri':util['format'](_0xf64891(0x177),_0x57f36d[_0xf64891(0x173)]),'qs':{'email':_0x7956a1}})['then'](function(_0x42a790){const _0x536f05=_0xf64891;return _0x42a790[_0x536f05(0x19b)]?(logger[_0x536f05(0x1a8)]('Agent\x20found!'),_['find'](_0x42a790,function(_0x52f296){const _0x2f4c3c=_0x536f05;return _0x52f296[_0x2f4c3c(0x18e)][_0x2f4c3c(0x178)]===_0x7956a1;})):(logger[_0x536f05(0x1a8)](_0x536f05(0x16c)),request({'uri':util[_0x536f05(0x196)](_0x536f05(0x164),_0x57f36d[_0x536f05(0x173)])})[_0x536f05(0x183)](function(_0xa73b41){const _0x1c790b=_0x536f05;return logger[_0x1c790b(0x1a8)](_0x1c790b(0x1b6)),_0xa73b41;}));}):(logger[_0xf64891(0x1a8)](_0xf64891(0x1a4)),request({'uri':util[_0xf64891(0x196)]('%s/api/v2/agents/me',_0x57f36d['remoteUri'])})['then'](function(_0xe69c6d){const _0x33dbbb=_0xf64891;return logger[_0x33dbbb(0x1a8)](_0x33dbbb(0x1b6)),_0xe69c6d;}));}function getEndUser(_0x42981b,_0x5daad8,_0xa1356c){const _0x41c121=a1302_0x3fdbcf;return logger['info'](_0x41c121(0x188),_0xa1356c),request({'uri':util[_0x41c121(0x196)](_0x41c121(0x182),_0x42981b[_0x41c121(0x173)]),'qs':{'phone':_0xa1356c}})[_0x41c121(0x183)](function(_0x589a89){const _0x3a8bdd=_0x41c121;return _0x589a89[_0x3a8bdd(0x19b)]?(logger[_0x3a8bdd(0x1a8)](_0x3a8bdd(0x1b7)),_[_0x3a8bdd(0x16a)](_0x589a89,{'phone':_0xa1356c})):(logger[_0x3a8bdd(0x1a8)](_0x3a8bdd(0x1a5)),request({'uri':util['format'](_0x3a8bdd(0x182),_0x42981b[_0x3a8bdd(0x173)]),'method':_0x3a8bdd(0x19a),'body':{'name':_0x5daad8,'phone':_0xa1356c}})['then'](function(_0x358ade){const _0x4df4b2=_0x3a8bdd;return logger[_0x4df4b2(0x1a8)](_0x4df4b2(0x1b4)),_0x358ade;}));});}function getAuth(_0x37fd24){const _0x4d8115=a1302_0x3fdbcf;return util['format'](_0x4d8115(0x18c),Buffer[_0x4d8115(0x1a6)](_0x37fd24['apiKey']+':X')[_0x4d8115(0x180)]('base64'));}function request(_0x3decbf){const _0x5d2a44=a1302_0x3fdbcf;return logger[_0x5d2a44(0x175)](_0x5d2a44(0x17b),JSON['stringify'](_0x3decbf)),rp(_[_0x5d2a44(0x161)](_0x3decbf,{'method':_0x5d2a44(0x190),'headers':headers,'json':!![]}));}function getTags(_0x25f0e4,_0x5fe665){const _0xf9d428=a1302_0x3fdbcf;let _0x2a3c3f=[];return _0x25f0e4&&_0x25f0e4[_0xf9d428(0x19b)]>0x0&&(_0x2a3c3f=_[_0xf9d428(0x16b)](_0x25f0e4,_0x5fe665)),_0x2a3c3f;}function getCustomFields(_0x3ddadc,_0x3a40b6){const _0x252ff4=a1302_0x3fdbcf,_0x283c4a={'custom_fields':[]};return _0x3ddadc[_0x252ff4(0x19b)]>0x0&&_[_0x252ff4(0x1b1)](_0x3ddadc,function(_0xbb050f){const _0x1c30c1=_0x252ff4;if(_0xbb050f[_0x1c30c1(0x1b3)]===_0x1c30c1(0x16d)&&_0xbb050f[_0x1c30c1(0x17d)]&&!_0xbb050f['customField'])_0x283c4a[_0xbb050f[_0x1c30c1(0x17d)]['toLowerCase']()]=_0xbb050f[_0x1c30c1(0x197)]['toString']();else{if(_0xbb050f[_0x1c30c1(0x1b3)]===_0x1c30c1(0x16d)&&_0xbb050f['idField']&&_0xbb050f[_0x1c30c1(0x166)])_0x283c4a[_0x1c30c1(0x1af)][_0x1c30c1(0x167)]({'id':_0xbb050f[_0x1c30c1(0x17c)],'value':_0xbb050f[_0x1c30c1(0x197)][_0x1c30c1(0x180)]()});else{if(_0xbb050f['type']===_0x1c30c1(0x19f)&&_0xbb050f['variableName']&&_0xbb050f['idField']&&_0xbb050f[_0x1c30c1(0x166)])_0x3a40b6[_0xbb050f[_0x1c30c1(0x176)]]&&_0x283c4a[_0x1c30c1(0x1af)][_0x1c30c1(0x167)]({'id':_0xbb050f[_0x1c30c1(0x17c)],'value':_0x3a40b6[_0xbb050f[_0x1c30c1(0x176)]]['toString']()});else _0xbb050f[_0x1c30c1(0x1b3)]==='customVariable'&&_0xbb050f['Variable']&&_0xbb050f[_0x1c30c1(0x199)]['name']&&_0xbb050f[_0x1c30c1(0x17c)]&&_0xbb050f[_0x1c30c1(0x166)]&&(_0x3a40b6[_0xbb050f[_0x1c30c1(0x199)][_0x1c30c1(0x189)][_0x1c30c1(0x185)]()]&&_0x283c4a[_0x1c30c1(0x1af)][_0x1c30c1(0x167)]({'id':_0xbb050f['idField'],'value':_0x3a40b6[_0xbb050f['Variable']['name']['toLowerCase']()][_0x1c30c1(0x180)]()}));}}}),_0x283c4a;}exports['queue']=function(_0x4fb71b,_0x38dea4,_0x509119,_0xeaf930,_0x2e31bc,_0x58e94c){const _0x57d0d7=a1302_0x3fdbcf;let _0x9b1f56,_0x47c779;return _0x58e94c[_0x57d0d7(0x173)]=intUtil[_0x57d0d7(0x19e)](_0x58e94c[_0x57d0d7(0x173)]),_0x58e94c[_0x57d0d7(0x160)]=intUtil[_0x57d0d7(0x19e)](_0x58e94c[_0x57d0d7(0x160)]),_0x2e31bc&&_0x2e31bc[_0x57d0d7(0x187)]?(logger[_0x57d0d7(0x1a8)](_0x57d0d7(0x1bb),_0x57d0d7(0x1a3)),_0x38dea4['recordingURL']=util[_0x57d0d7(0x196)]('%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s',_0x58e94c[_0x57d0d7(0x160)],_0x38dea4[_0x57d0d7(0x17a)],md5(_0x38dea4['uniqueid']))):_0x38dea4[_0x57d0d7(0x192)]='',headers[_0x57d0d7(0x1a7)]=getAuth(_0x58e94c),getUser(_0x58e94c,_0xeaf930['email'])[_0x57d0d7(0x183)](function(_0x14772b){const _0x474ff9=_0x57d0d7;return _0x9b1f56=_0x14772b,logger[_0x474ff9(0x1a8)]('The\x20User\x20ID\x20is:',_0x9b1f56['id']),getEndUser(_0x58e94c,_0x38dea4[_0x474ff9(0x17f)],_0x38dea4[_0x474ff9(0x174)]);})[_0x57d0d7(0x183)](function(_0x47f2dd){const _0x1640c4=_0x57d0d7;return _0x47c779=_0x47f2dd,logger[_0x1640c4(0x1a8)](_0x1640c4(0x1a1),_0x47c779['id']),getTicket(_0x58e94c,_0x9b1f56,_0x47c779,_0x509119,_0x38dea4);})[_0x57d0d7(0x183)](function(_0x6d28ff){const _0x1ac920=_0x57d0d7;_0x6d28ff&&_0x6d28ff['id']&&(logger[_0x1ac920(0x1a8)](_0x1ac920(0x171)),logger[_0x1ac920(0x1a8)](_0x1ac920(0x1ad),_0x6d28ff['id']),logger[_0x1ac920(0x1a8)](_0x1ac920(0x1bb),_0x1ac920(0x163)),emit(util[_0x1ac920(0x196)](_0x1ac920(0x1b0),_0xeaf930[_0x1ac920(0x189)]),_0x1ac920(0x1ab),{'uri':util[_0x1ac920(0x196)]('%s/helpdesk/tickets/%d',_0x58e94c[_0x1ac920(0x173)],_0x6d28ff['id'])}));})[_0x57d0d7(0x184)](function(_0x16378b){const _0xa90c2f=_0x57d0d7;logger[_0xa90c2f(0x170)]('[QUEUE]',JSON[_0xa90c2f(0x168)](_0x16378b));});},exports[a1302_0x3fdbcf(0x165)]=function(_0x2dbc37,_0x25517d,_0x1a4053,_0xf1cf47,_0x1cafb9,_0x5a765c,_0x34058d){const _0x19afca=a1302_0x3fdbcf;let _0x2f1206,_0x3fb399;return _0x5a765c[_0x19afca(0x173)]=intUtil[_0x19afca(0x19e)](_0x5a765c[_0x19afca(0x173)]),_0x5a765c[_0x19afca(0x160)]=intUtil[_0x19afca(0x19e)](_0x5a765c['serverUrl']),_0x34058d&&_0x34058d[_0x19afca(0x195)]&&_0x34058d['recordingFormat']!==_0x19afca(0x1b2)&&(logger[_0x19afca(0x1a8)](_0x19afca(0x198),'Recording\x20is\x20enabled!'),_0x25517d['recordingURL']=util[_0x19afca(0x196)]('%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s',_0x5a765c[_0x19afca(0x160)],_0x25517d[_0x19afca(0x17a)],md5(_0x25517d[_0x19afca(0x17a)]))),headers[_0x19afca(0x1a7)]=getAuth(_0x5a765c),getUser(_0x5a765c,_0xf1cf47['email'])['then'](function(_0x3f3e96){const _0x5e0466=_0x19afca;return _0x2f1206=_0x3f3e96,logger[_0x5e0466(0x1a8)](_0x5e0466(0x1ae),_0x2f1206['id']),getEndUser(_0x5a765c,_0x25517d[_0x5e0466(0x186)],_0x25517d[_0x5e0466(0x181)]);})[_0x19afca(0x183)](function(_0x422ca8){return _0x3fb399=_0x422ca8,logger['info']('The\x20Enduser\x20ID\x20is:',_0x3fb399['id']),getTicket(_0x5a765c,_0x2f1206,_0x3fb399,_0x1a4053,_0x25517d);})[_0x19afca(0x183)](function(_0x51d353){const _0x228e3a=_0x19afca;_0x51d353&&_0x51d353['id']&&(logger[_0x228e3a(0x1a8)]('Ticket\x20created!'),logger[_0x228e3a(0x1a8)]('The\x20Ticket\x20ID\x20is:',_0x51d353['id']),logger[_0x228e3a(0x1a8)](_0x228e3a(0x198),_0x228e3a(0x163)),emit(util['format'](_0x228e3a(0x1b0),_0xf1cf47[_0x228e3a(0x189)]),'trigger:browser:url',{'uri':util[_0x228e3a(0x196)](_0x228e3a(0x1ba),_0x5a765c[_0x228e3a(0x173)],_0x51d353['id'])}));})[_0x19afca(0x184)](function(_0x18776d){const _0x5e59b1=_0x19afca;logger[_0x5e59b1(0x170)]('[OUTBOUND]',JSON[_0x5e59b1(0x168)](_0x18776d));});},exports[a1302_0x3fdbcf(0x1b5)]=function(_0x33365b,_0x2e4794,_0x522798,_0x23c728,_0x379da6,_0x53587e){const _0x2ec8d2=a1302_0x3fdbcf;let _0x3bce94,_0x13bd12;return _0x53587e[_0x2ec8d2(0x173)]=intUtil[_0x2ec8d2(0x19e)](_0x53587e[_0x2ec8d2(0x173)]),_0x53587e[_0x2ec8d2(0x160)]=intUtil['stripTrailingSlash'](_0x53587e[_0x2ec8d2(0x160)]),_0x379da6&&_0x379da6['monitor_format']?(logger[_0x2ec8d2(0x1a8)]('['+_0x2e4794[_0x2ec8d2(0x17e)]['toUpperCase']()+']',_0x2ec8d2(0x1a3)),_0x2e4794[_0x2ec8d2(0x192)]=util[_0x2ec8d2(0x196)](_0x2ec8d2(0x18f),_0x53587e['serverUrl'],_0x2e4794['uniqueid'],md5(_0x2e4794[_0x2ec8d2(0x17a)]))):_0x2e4794[_0x2ec8d2(0x192)]='',headers['Authorization']=getAuth(_0x53587e),getUser(_0x53587e,'')['then'](function(_0xe948ff){const _0x8099d3=_0x2ec8d2;return _0x3bce94=_0xe948ff,logger['info'](_0x8099d3(0x1ae),_0x3bce94['id']),getEndUser(_0x53587e,_0x2e4794[_0x8099d3(0x17f)],_0x2e4794[_0x8099d3(0x174)]);})[_0x2ec8d2(0x183)](function(_0x5af864){const _0x4e67da=_0x2ec8d2;return _0x13bd12=_0x5af864,logger[_0x4e67da(0x1a8)](_0x4e67da(0x1a1),_0x13bd12['id']),getTicket(_0x53587e,_0x3bce94,_0x13bd12,_0x522798,_0x2e4794);})[_0x2ec8d2(0x183)](function(_0x4e0f13){const _0x11facb=_0x2ec8d2;_0x4e0f13&&(logger[_0x11facb(0x1a8)](_0x11facb(0x171)),logger[_0x11facb(0x1a8)](_0x11facb(0x1ad),_0x4e0f13['id']));})['catch'](function(_0x37fc26){const _0x41c62b=_0x2ec8d2;logger[_0x41c62b(0x170)]('['+_0x2e4794[_0x41c62b(0x17e)][_0x41c62b(0x194)]()+']',JSON[_0x41c62b(0x168)](_0x37fc26));});}; \ 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 d4b38ec..069648b 100644 --- a/server/services/ami/trigger/integration/freshsales.js +++ b/server/services/ami/trigger/integration/freshsales.js @@ -1 +1 @@ -const a1139_0x2ff1=['GET','The\x20ticket\x20ID\x20is:\x20%s','[OUTBOUND]','contactNumber','request-promise-native','serverUrl','Subjects','Contact','uniqueid','stripTrailingSlash','format','monitor_format','All\x20Contacts','toLowerCase','apiKey','then','work_number','/api/tasks','filters','task','/contacts/','Admin\x20selected','User\x20found:','Searching\x20contact\x20with\x20phone','recordingFormat','./util','Task\x20created:','/api/selector/owners','../../../../rediscache','recordingURL','Displaying\x20task\x20in\x20a\x20new\x20tab...','contacts','username','freshsales','outbound','users','name','Getting\x20contacts\x20filter','emit','/api/contacts/filters',']\x20Error\x20running\x20Freshsales\x20integration','Contact\x20created:','userEmail','endUserId','queue','trigger:browser:url','length','message','remoteUri','Getting\x20contact\x20list','error','mobile_number','Getting\x20admin\x20information','toUpperCase','/api/contacts','catch','md5','user:%s','agentEmail','Recording\x20is\x20enabled!','Admin\x20found:','YYYY-MM-DDTHH:mm:ss','adminEmail','userId','unmanaged','headers','/api/contacts/view/','add','info','inspect','adminId','Creating\x20new\x20task','email','ticketId','Contact\x20not\x20found,\x20creating\x20a\x20new\x20contact','lodash','Requested\x20Resource\x20not\x20Found','contact','getString','../../../../config/logger'];(function(_0x5a0887,_0x2ff182){const _0xb2ef36=function(_0x3a0226){while(--_0x3a0226){_0x5a0887['push'](_0x5a0887['shift']());}};_0xb2ef36(++_0x2ff182);}(a1139_0x2ff1,0x1e2));const a1139_0xb2ef=function(_0x5a0887,_0x2ff182){_0x5a0887=_0x5a0887-0x0;let _0xb2ef36=a1139_0x2ff1[_0x5a0887];return _0xb2ef36;};const _0x3f5913=a1139_0xb2ef;'use strict';const _=require(_0x3f5913('0x49')),rp=require(_0x3f5913('0x2')),md5=require(_0x3f5913('0x36')),util=require('util'),moment=require('moment'),intUtil=require(_0x3f5913('0x17')),logger=require(_0x3f5913('0x4d'))(_0x3f5913('0x1f')),{getSocket}=require(_0x3f5913('0x1a')),io=getSocket();function getAdminId(_0x3a0226,_0x340f3d,_0x2a756b,_0x50708a){return new Promise(function(_0x32c4e0,_0x5f2a21){const _0x332b27=a1139_0xb2ef;let _0x325ac5=![];const _0x3f5c75={'method':_0x332b27('0x4e'),'uri':_0x50708a+_0x332b27('0x19'),'json':!![]};return _0x3f5c75[_0x332b27('0x3f')]=_0x2a756b,logger['info'](_0x332b27('0x32')),rp(_0x3f5c75)['then'](function(_0x1dd599){const _0xaf5855=_0x332b27;if(_0x1dd599){const _0xae5355=_0x1dd599[_0xaf5855('0x21')];let _0x3879f6=null;for(_0x3879f6=0x0;_0x3879f6<_0xae5355[_0xaf5855('0x2c')];_0x3879f6++){_0xae5355[_0x3879f6][_0xaf5855('0x46')]===_0x3a0226[_0xaf5855('0x3c')]&&(_0x3a0226['adminId']=_0xae5355[_0x3879f6]['id'],_0x325ac5=!![]);}_0x325ac5?(logger[_0xaf5855('0x42')](_0xaf5855('0x3a'),_0x3a0226[_0xaf5855('0x44')]),_0x32c4e0(_0x3a0226)):_0x5f2a21({'statusCode':0x194,'message':_0xaf5855('0x4a')});}else _0x5f2a21({'statusCode':0x194,'message':_0xaf5855('0x4a')});})['catch'](function(_0x42f615){const _0x2c52ff=_0x332b27;logger[_0x2c52ff('0x30')]('['+[_0x340f3d['toUpperCase']()]+']',_0x42f615[_0x2c52ff('0x2d')]),_0x5f2a21(_0x42f615);});});}function getUser(_0x4a6814,_0x2ffcc0,_0x11324a){return function(_0x25a9b3){return new Promise(function(_0x2307f9,_0x7a2083){const _0x201e9f=a1139_0xb2ef,_0x1c9a27={'method':_0x201e9f('0x4e'),'uri':_0x11324a+_0x201e9f('0x19'),'json':!![]};return _0x1c9a27[_0x201e9f('0x3f')]=_0x2ffcc0,logger[_0x201e9f('0x42')]('Getting\x20user\x20list'),rp(_0x1c9a27)['then'](function(_0xd1afcb){const _0x25087e=_0x201e9f;if(_0xd1afcb){const _0x2f2614=_0xd1afcb['users'];let _0xd5ac6b=![],_0x237f58=null;if(_0x25a9b3[_0x25087e('0x38')]!==null){logger[_0x25087e('0x42')]('Getting\x20user\x20with\x20email',_0x25a9b3[_0x25087e('0x38')]),_0x25a9b3[_0x25087e('0x28')]=_0x25a9b3[_0x25087e('0x38')];for(_0x237f58=0x0;_0x237f58<_0x2f2614[_0x25087e('0x2c')];_0x237f58++){_0x2f2614[_0x237f58][_0x25087e('0x46')]===_0x25a9b3[_0x25087e('0x38')]&&(_0xd5ac6b=!![],_0x25a9b3[_0x25087e('0x3d')]=_0x2f2614[_0x237f58]['id'],logger[_0x25087e('0x42')](_0x25087e('0x14'),_0x25a9b3[_0x25087e('0x3d')]));}}!_0xd5ac6b&&(logger[_0x25087e('0x42')](_0x25087e('0x13')),_0x25a9b3[_0x25087e('0x28')]=_0x25a9b3[_0x25087e('0x3c')],_0x25a9b3[_0x25087e('0x3d')]=_0x25a9b3[_0x25087e('0x44')],_0xd5ac6b=!![]),_0xd5ac6b?_0x2307f9(_0x25a9b3):_0x7a2083({'statusCode':0x194,'message':_0x25087e('0x4a')});}else _0x7a2083({'statusCode':0x194,'message':_0x25087e('0x4a')});})[_0x201e9f('0x35')](function(_0xc57501){const _0x1af0d6=_0x201e9f;logger[_0x1af0d6('0x30')]('['+[_0x4a6814['toUpperCase']()]+']',_0xc57501[_0x1af0d6('0x2d')]),_0x7a2083(_0xc57501);});});};}function getEndUser(_0x447b5a,_0x4dfe51,_0x2c1a69){return function(_0x331126){return new Promise(function(_0x56bebf){const _0x1f416d=a1139_0xb2ef;let _0x52dd91=0x0;const _0x348f6e={'method':_0x1f416d('0x4e'),'uri':_0x2c1a69+_0x1f416d('0x25'),'json':!![]};return _0x348f6e['headers']=_0x4dfe51,logger[_0x1f416d('0x42')](_0x1f416d('0x23')),rp(_0x348f6e)['then'](function(_0x39ccde){const _0x6bd1a7=_0x1f416d;_0x39ccde[_0x6bd1a7('0x10')]['forEach'](function(_0x312ab0){const _0x3d0bf5=_0x6bd1a7;_0x312ab0[_0x3d0bf5('0x22')]===_0x3d0bf5('0xa')&&(_0x52dd91=_0x312ab0['id']);});})[_0x1f416d('0xd')](function(){const _0x33ff6d=_0x1f416d;logger[_0x33ff6d('0x42')](_0x33ff6d('0x2f'));const _0x340589={'method':_0x33ff6d('0x4e'),'uri':_0x2c1a69+_0x33ff6d('0x40')+_0x52dd91,'json':!![]};return _0x340589[_0x33ff6d('0x3f')]=_0x4dfe51,rp(_0x340589);})[_0x1f416d('0xd')](function(_0x44455a){const _0xc0db7b=_0x1f416d;logger['info'](_0xc0db7b('0x15'),_0x331126[_0xc0db7b('0x1')]);if(_0x44455a[_0xc0db7b('0x1d')][_0xc0db7b('0x2c')]>0x0){const _0x30ee64=_['find'](_0x44455a[_0xc0db7b('0x1d')],function(_0x25cb52){const _0x2e6b96=_0xc0db7b;if(_0x25cb52[_0x2e6b96('0xe')]===_0x331126[_0x2e6b96('0x1')]||_0x25cb52[_0x2e6b96('0x31')]===_0x331126['contactNumber'])return _0x25cb52;});if(_0x30ee64)_0x331126[_0xc0db7b('0x29')]=_0x30ee64['id'],logger[_0xc0db7b('0x42')]('Contact\x20found:',_0x331126[_0xc0db7b('0x29')]),_0x56bebf(_0x331126);else return createEndUser(_0x331126,_0x447b5a,_0x4dfe51,_0x2c1a69)['then'](function(_0x46b3ba){const _0x690576=_0xc0db7b;logger[_0x690576('0x42')](_0x690576('0x27'),_0x331126[_0x690576('0x29')]),_0x56bebf(_0x46b3ba);});}else return createEndUser(_0x331126,_0x447b5a,_0x4dfe51,_0x2c1a69)[_0xc0db7b('0xd')](function(_0x451eeb){const _0x4f095e=_0xc0db7b;logger[_0x4f095e('0x42')]('Contact\x20created:',_0x331126[_0x4f095e('0x29')]),_0x56bebf(_0x451eeb);});})['catch'](function(_0xc6bc5d){const _0x175002=_0x1f416d;throw new Error(_0xc6bc5d[_0x175002('0x2d')]);});});};}function createEndUser(_0x3e94e7,_0x2a2615,_0x1633df,_0x385740){return new Promise(function(_0x45980e,_0x1d22e7){const _0x2de350=a1139_0xb2ef,_0x55b13f=moment(),_0x103027={'method':'POST','uri':_0x385740+_0x2de350('0x34'),'body':{'contact':{'last_name':_0x3e94e7[_0x2de350('0x1')],'work_number':_0x3e94e7[_0x2de350('0x1')],'mobile_number':_0x3e94e7[_0x2de350('0x1')],'owner_id':_0x3e94e7[_0x2de350('0x3d')],'created_at':_0x55b13f[_0x2de350('0x8')](_0x2de350('0x3b'))}},'json':!![]};return _0x103027[_0x2de350('0x3f')]=_0x1633df,logger[_0x2de350('0x42')](_0x2de350('0x48')),rp(_0x103027)[_0x2de350('0xd')](function(_0x307525){const _0x591cfc=_0x2de350;_0x3e94e7[_0x591cfc('0x29')]=_0x307525[_0x591cfc('0x4b')]['id'],_0x45980e(_0x3e94e7);})['catch'](function(_0x17692){const _0x4dc95f=_0x2de350;logger[_0x4dc95f('0x30')]('['+[_0x2a2615[_0x4dc95f('0x33')]()]+']',_0x17692['message']),_0x1d22e7(_0x17692[_0x4dc95f('0x2d')]);});});}function getTicket(_0xc1139a,_0x45ab32,_0x3bd724,_0xa71af2,_0x4a95c8){return function(_0x41b1e6){const _0x3f672f=a1139_0xb2ef;return logger[_0x3f672f('0x42')](_0x3f672f('0x45')),new Promise(function(_0x10d0cf,_0xfe2bee){const _0x1b2476=_0x3f672f,_0x1d034e=moment(),_0x15a2cd={'method':'POST','uri':_0x3bd724+_0x1b2476('0xf'),'body':{'title':intUtil[_0x1b2476('0x4c')](_0xa71af2[_0x1b2476('0x4')],_0x4a95c8,'\x20'),'description':intUtil['getString'](_0xa71af2['Descriptions'],_0x4a95c8,'\x0a'),'owner_id':_0x41b1e6['userId'],'creater_id':_0x41b1e6[_0x1b2476('0x44')],'targetable_id':_0x41b1e6[_0x1b2476('0x29')],'targetable_type':_0x1b2476('0x5'),'created_at':_0x1d034e[_0x1b2476('0x8')]('YYYY-MM-DDTHH:mm:ss'),'due_date':_0x1d034e[_0x1b2476('0x41')](0x1e,'m')[_0x1b2476('0x8')](_0x1b2476('0x3b'))},'json':!![]};return _0x15a2cd['headers']=_0x45ab32,rp(_0x15a2cd)[_0x1b2476('0xd')](function(_0x57f737){const _0x3b6a69=_0x1b2476;_0x41b1e6[_0x3b6a69('0x47')]=_0x57f737[_0x3b6a69('0x11')]['id'],logger[_0x3b6a69('0x42')](_0x3b6a69('0x18'),_0x41b1e6['ticketId']),_0x10d0cf(_0x41b1e6);})[_0x1b2476('0x35')](function(_0x1f8cf){const _0x114b78=_0x1b2476;logger['error']('['+[_0xc1139a['toUpperCase']()]+']',_0x1f8cf[_0x114b78('0x2d')]),_0xfe2bee(_0x1f8cf['message']);});});};}function emit(_0x5b4053,_0x10e25d,_0x21ff2c){const _0x12ac8e=_0x3f5913,_0x3ee69d={'uri':_0x5b4053+_0x12ac8e('0x12')+_0x21ff2c};io['to'](util[_0x12ac8e('0x8')](_0x12ac8e('0x37'),_0x10e25d))[_0x12ac8e('0x24')](_0x12ac8e('0x2b'),_0x3ee69d);}exports['cs']=function(_0x447a64,_0x44f90d,_0x7bc71c,_0x5bce8f,_0x1e34a6,_0x502cf2,_0x45ca1c,_0x224082){const _0x44b0b4=_0x3f5913,_0x1aae4e={},_0x4cee26={'Authorization':'Token\x20token='+_0x502cf2[_0x44b0b4('0xc')]};_0x502cf2[_0x44b0b4('0x2e')]=intUtil[_0x44b0b4('0x7')](_0x502cf2['remoteUri']),_0x502cf2[_0x44b0b4('0x3')]=intUtil['stripTrailingSlash'](_0x502cf2[_0x44b0b4('0x3')]);const _0x18dd43=_0x502cf2[_0x44b0b4('0x2e')];_0x1aae4e['adminEmail']=_0x502cf2[_0x44b0b4('0x1e')],_0x1aae4e[_0x44b0b4('0x1')]=_0x224082[_0x44b0b4('0xb')]()===_0x44b0b4('0x20')?_0x44f90d['destcalleridnum']:_0x44f90d['calleridnum'],_0x1aae4e['callDirection']=_0x224082===_0x44b0b4('0x2a')||_0x224082==='unmanaged'?'queue':_0x44b0b4('0x20');_0x5bce8f&&(_0x1aae4e[_0x44b0b4('0x38')]=_0x5bce8f[_0x44b0b4('0x46')]);const _0x4cd001=util['format']('%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s',_0x502cf2[_0x44b0b4('0x3')],_0x44f90d[_0x44b0b4('0x6')],md5(_0x44f90d[_0x44b0b4('0x6')]));if(_0x1e34a6&&_0x1e34a6[_0x44b0b4('0x9')])logger[_0x44b0b4('0x42')]('[QUEUE]','Recording\x20is\x20enabled!'),_0x44f90d[_0x44b0b4('0x1b')]=_0x4cd001;else _0x45ca1c&&_0x45ca1c[_0x44b0b4('0x16')]&&_0x45ca1c[_0x44b0b4('0x16')]!=='none'?(logger['info'](_0x44b0b4('0x0'),_0x44b0b4('0x39')),_0x44f90d[_0x44b0b4('0x1b')]=_0x4cd001):_0x44f90d['recordingURL']='';return getAdminId(_0x1aae4e,_0x224082,_0x4cee26,_0x18dd43)[_0x44b0b4('0xd')](getUser(_0x224082,_0x4cee26,_0x18dd43))['then'](getEndUser(_0x224082,_0x4cee26,_0x18dd43))[_0x44b0b4('0xd')](getTicket(_0x224082,_0x4cee26,_0x18dd43,_0x7bc71c,_0x44f90d))['then'](function(_0x1668fb){const _0x1ec553=_0x44b0b4;logger[_0x1ec553('0x42')](util[_0x1ec553('0x8')](_0x1ec553('0x4f'),_0x1668fb[_0x1ec553('0x47')])),_0x224082!==_0x1ec553('0x3e')&&(logger[_0x1ec553('0x42')]('['+[_0x224082[_0x1ec553('0x33')]()]+']',_0x1ec553('0x1c')),emit(_0x18dd43,_0x5bce8f[_0x1ec553('0x22')],_0x1668fb['endUserId']));})[_0x44b0b4('0x35')](function(_0x57c3c1){const _0x1f948f=_0x44b0b4;logger[_0x1f948f('0x30')]('['+[_0x224082[_0x1f948f('0x33')]()]+_0x1f948f('0x26'),util[_0x1f948f('0x43')](_0x57c3c1,{'showHidden':!![],'depth':null}));});}; \ No newline at end of file +const a1303_0x229d=['Getting\x20contact\x20list','userEmail','message','md5','ticketId','/api/tasks','unmanaged','Admin\x20found:','username','Admin\x20selected','Searching\x20contact\x20with\x20phone','adminId','headers','adminEmail','name','endUserId','The\x20ticket\x20ID\x20is:\x20%s','freshsales','getString','find','catch','[QUEUE]','format','task','info','Contact\x20found:','contactNumber','length','user:%s','queue','toLowerCase',']\x20Error\x20running\x20Freshsales\x20integration','trigger:browser:url','none','Contact\x20created:','userId','users','callDirection','serverUrl','./util','forEach','/contacts/','Creating\x20new\x20task','error','/api/contacts','agentEmail','lodash','All\x20Contacts','recordingURL','email','apiKey','Getting\x20user\x20with\x20email','emit','then','contacts','Getting\x20admin\x20information','Contact','GET','[OUTBOUND]','/api/selector/owners','Requested\x20Resource\x20not\x20Found','stripTrailingSlash','YYYY-MM-DDTHH:mm:ss','Displaying\x20task\x20in\x20a\x20new\x20tab...','request-promise-native','outbound','mobile_number','/api/contacts/view/','toUpperCase','util','destcalleridnum','filters','remoteUri','add','Getting\x20user\x20list','POST','uniqueid'];(function(_0x10a180,_0x6babd3){const _0x229d2d=function(_0x5512cd){while(--_0x5512cd){_0x10a180['push'](_0x10a180['shift']());}};_0x229d2d(++_0x6babd3);}(a1303_0x229d,0x7b));const a1303_0x5512=function(_0x10a180,_0x6babd3){_0x10a180=_0x10a180-0x1f2;let _0x229d2d=a1303_0x229d[_0x10a180];return _0x229d2d;};const a1303_0x5083a1=a1303_0x5512;'use strict';const _=require(a1303_0x5083a1(0x1f2)),rp=require(a1303_0x5083a1(0x204)),md5=require(a1303_0x5083a1(0x214)),util=require(a1303_0x5083a1(0x209)),moment=require('moment'),intUtil=require(a1303_0x5083a1(0x238)),logger=require('../../../../config/logger')(a1303_0x5083a1(0x222)),{getSocket}=require('../../../../rediscache'),io=getSocket();function getAdminId(_0x342d2a,_0x413e14,_0x4b189a,_0x5a17b4){return new Promise(function(_0x7fcdfe,_0x55f8a6){const _0x3355b2=a1303_0x5512;let _0x31c229=![];const _0x38d416={'method':_0x3355b2(0x1fd),'uri':_0x5a17b4+_0x3355b2(0x1ff),'json':!![]};return _0x38d416[_0x3355b2(0x21d)]=_0x4b189a,logger['info'](_0x3355b2(0x1fb)),rp(_0x38d416)[_0x3355b2(0x1f9)](function(_0x428c77){const _0xbf82a2=_0x3355b2;if(_0x428c77){const _0x223e59=_0x428c77['users'];let _0x36c4fb=null;for(_0x36c4fb=0x0;_0x36c4fb<_0x223e59['length'];_0x36c4fb++){_0x223e59[_0x36c4fb][_0xbf82a2(0x1f5)]===_0x342d2a[_0xbf82a2(0x21e)]&&(_0x342d2a[_0xbf82a2(0x21c)]=_0x223e59[_0x36c4fb]['id'],_0x31c229=!![]);}_0x31c229?(logger[_0xbf82a2(0x229)](_0xbf82a2(0x218),_0x342d2a[_0xbf82a2(0x21c)]),_0x7fcdfe(_0x342d2a)):_0x55f8a6({'statusCode':0x194,'message':_0xbf82a2(0x200)});}else _0x55f8a6({'statusCode':0x194,'message':'Requested\x20Resource\x20not\x20Found'});})[_0x3355b2(0x225)](function(_0x1920b3){const _0x3fb160=_0x3355b2;logger['error']('['+[_0x413e14[_0x3fb160(0x208)]()]+']',_0x1920b3[_0x3fb160(0x213)]),_0x55f8a6(_0x1920b3);});});}function getUser(_0x55b2be,_0x3ba94a,_0x56dc5e){return function(_0x36c298){return new Promise(function(_0x1769ea,_0x1c852e){const _0x4e7ce8=a1303_0x5512,_0x15084b={'method':_0x4e7ce8(0x1fd),'uri':_0x56dc5e+_0x4e7ce8(0x1ff),'json':!![]};return _0x15084b[_0x4e7ce8(0x21d)]=_0x3ba94a,logger[_0x4e7ce8(0x229)](_0x4e7ce8(0x20e)),rp(_0x15084b)['then'](function(_0x50a313){const _0x5e8797=_0x4e7ce8;if(_0x50a313){const _0x2462a6=_0x50a313[_0x5e8797(0x235)];let _0x130420=![],_0xa64ea6=null;if(_0x36c298[_0x5e8797(0x23e)]!==null){logger[_0x5e8797(0x229)](_0x5e8797(0x1f7),_0x36c298[_0x5e8797(0x23e)]),_0x36c298[_0x5e8797(0x212)]=_0x36c298[_0x5e8797(0x23e)];for(_0xa64ea6=0x0;_0xa64ea6<_0x2462a6['length'];_0xa64ea6++){_0x2462a6[_0xa64ea6][_0x5e8797(0x1f5)]===_0x36c298[_0x5e8797(0x23e)]&&(_0x130420=!![],_0x36c298[_0x5e8797(0x234)]=_0x2462a6[_0xa64ea6]['id'],logger[_0x5e8797(0x229)]('User\x20found:',_0x36c298[_0x5e8797(0x234)]));}}!_0x130420&&(logger['info'](_0x5e8797(0x21a)),_0x36c298[_0x5e8797(0x212)]=_0x36c298['adminEmail'],_0x36c298[_0x5e8797(0x234)]=_0x36c298['adminId'],_0x130420=!![]),_0x130420?_0x1769ea(_0x36c298):_0x1c852e({'statusCode':0x194,'message':'Requested\x20Resource\x20not\x20Found'});}else _0x1c852e({'statusCode':0x194,'message':_0x5e8797(0x200)});})['catch'](function(_0x178b59){const _0x30ff3e=_0x4e7ce8;logger[_0x30ff3e(0x23c)]('['+[_0x55b2be[_0x30ff3e(0x208)]()]+']',_0x178b59[_0x30ff3e(0x213)]),_0x1c852e(_0x178b59);});});};}function getEndUser(_0x3be779,_0xecfac5,_0x26956f){return function(_0x3bac94){return new Promise(function(_0x16151c){const _0x4e9206=a1303_0x5512;let _0xd90bda=0x0;const _0x41f149={'method':'GET','uri':_0x26956f+'/api/contacts/filters','json':!![]};return _0x41f149['headers']=_0xecfac5,logger['info']('Getting\x20contacts\x20filter'),rp(_0x41f149)[_0x4e9206(0x1f9)](function(_0x273f2f){const _0x452a45=_0x4e9206;_0x273f2f[_0x452a45(0x20b)][_0x452a45(0x239)](function(_0x47f4d9){const _0x41f7ff=_0x452a45;_0x47f4d9['name']===_0x41f7ff(0x1f3)&&(_0xd90bda=_0x47f4d9['id']);});})['then'](function(){const _0x1c2665=_0x4e9206;logger[_0x1c2665(0x229)](_0x1c2665(0x211));const _0x3b8283={'method':_0x1c2665(0x1fd),'uri':_0x26956f+_0x1c2665(0x207)+_0xd90bda,'json':!![]};return _0x3b8283[_0x1c2665(0x21d)]=_0xecfac5,rp(_0x3b8283);})['then'](function(_0x444290){const _0x20efed=_0x4e9206;logger['info'](_0x20efed(0x21b),_0x3bac94[_0x20efed(0x22b)]);if(_0x444290[_0x20efed(0x1fa)][_0x20efed(0x22c)]>0x0){const _0x4bdb80=_[_0x20efed(0x224)](_0x444290['contacts'],function(_0x5b12c1){const _0x196fae=_0x20efed;if(_0x5b12c1['work_number']===_0x3bac94[_0x196fae(0x22b)]||_0x5b12c1[_0x196fae(0x206)]===_0x3bac94['contactNumber'])return _0x5b12c1;});if(_0x4bdb80)_0x3bac94['endUserId']=_0x4bdb80['id'],logger['info'](_0x20efed(0x22a),_0x3bac94[_0x20efed(0x220)]),_0x16151c(_0x3bac94);else return createEndUser(_0x3bac94,_0x3be779,_0xecfac5,_0x26956f)[_0x20efed(0x1f9)](function(_0x415d18){const _0x2e8d35=_0x20efed;logger['info'](_0x2e8d35(0x233),_0x3bac94[_0x2e8d35(0x220)]),_0x16151c(_0x415d18);});}else return createEndUser(_0x3bac94,_0x3be779,_0xecfac5,_0x26956f)[_0x20efed(0x1f9)](function(_0x36986a){const _0x239c44=_0x20efed;logger[_0x239c44(0x229)](_0x239c44(0x233),_0x3bac94[_0x239c44(0x220)]),_0x16151c(_0x36986a);});})[_0x4e9206(0x225)](function(_0x869c8){const _0x5b1ce8=_0x4e9206;throw new Error(_0x869c8[_0x5b1ce8(0x213)]);});});};}function createEndUser(_0x27c14b,_0x419f73,_0x5ac6e0,_0x21d27b){return new Promise(function(_0x54e2b5,_0x2950f5){const _0x47d893=a1303_0x5512,_0x2daada=moment(),_0x3a0818={'method':_0x47d893(0x20f),'uri':_0x21d27b+_0x47d893(0x23d),'body':{'contact':{'last_name':_0x27c14b[_0x47d893(0x22b)],'work_number':_0x27c14b[_0x47d893(0x22b)],'mobile_number':_0x27c14b[_0x47d893(0x22b)],'owner_id':_0x27c14b[_0x47d893(0x234)],'created_at':_0x2daada[_0x47d893(0x227)](_0x47d893(0x202))}},'json':!![]};return _0x3a0818[_0x47d893(0x21d)]=_0x5ac6e0,logger[_0x47d893(0x229)]('Contact\x20not\x20found,\x20creating\x20a\x20new\x20contact'),rp(_0x3a0818)[_0x47d893(0x1f9)](function(_0x62fa3f){const _0x4c8f63=_0x47d893;_0x27c14b[_0x4c8f63(0x220)]=_0x62fa3f['contact']['id'],_0x54e2b5(_0x27c14b);})[_0x47d893(0x225)](function(_0x45788f){const _0x1aa572=_0x47d893;logger[_0x1aa572(0x23c)]('['+[_0x419f73[_0x1aa572(0x208)]()]+']',_0x45788f[_0x1aa572(0x213)]),_0x2950f5(_0x45788f[_0x1aa572(0x213)]);});});}function getTicket(_0x2ca8d1,_0xc62648,_0x372bc0,_0x4c575b,_0xa37fb4){return function(_0x58b80a){const _0x356bac=a1303_0x5512;return logger[_0x356bac(0x229)](_0x356bac(0x23b)),new Promise(function(_0x86d7b5,_0x501f44){const _0x166ff8=_0x356bac,_0x4a117d=moment(),_0x6e65e={'method':_0x166ff8(0x20f),'uri':_0x372bc0+_0x166ff8(0x216),'body':{'title':intUtil['getString'](_0x4c575b['Subjects'],_0xa37fb4,'\x20'),'description':intUtil[_0x166ff8(0x223)](_0x4c575b['Descriptions'],_0xa37fb4,'\x0a'),'owner_id':_0x58b80a[_0x166ff8(0x234)],'creater_id':_0x58b80a[_0x166ff8(0x21c)],'targetable_id':_0x58b80a[_0x166ff8(0x220)],'targetable_type':_0x166ff8(0x1fc),'created_at':_0x4a117d[_0x166ff8(0x227)](_0x166ff8(0x202)),'due_date':_0x4a117d[_0x166ff8(0x20d)](0x1e,'m')['format'](_0x166ff8(0x202))},'json':!![]};return _0x6e65e['headers']=_0xc62648,rp(_0x6e65e)['then'](function(_0x3e8837){const _0x4ba835=_0x166ff8;_0x58b80a[_0x4ba835(0x215)]=_0x3e8837[_0x4ba835(0x228)]['id'],logger[_0x4ba835(0x229)]('Task\x20created:',_0x58b80a[_0x4ba835(0x215)]),_0x86d7b5(_0x58b80a);})[_0x166ff8(0x225)](function(_0x33d9f2){const _0x389ac4=_0x166ff8;logger['error']('['+[_0x2ca8d1[_0x389ac4(0x208)]()]+']',_0x33d9f2['message']),_0x501f44(_0x33d9f2[_0x389ac4(0x213)]);});});};}function emit(_0x4e1c55,_0x2bd936,_0x2fbceb){const _0x7e86d4=a1303_0x5083a1,_0x2d584d={'uri':_0x4e1c55+_0x7e86d4(0x23a)+_0x2fbceb};io['to'](util[_0x7e86d4(0x227)](_0x7e86d4(0x22d),_0x2bd936))[_0x7e86d4(0x1f8)](_0x7e86d4(0x231),_0x2d584d);}exports['cs']=function(_0x24da24,_0x2c8a90,_0xcb899d,_0x4c15df,_0x7fc645,_0x4ed9ed,_0x51a090,_0x15a8c3){const _0x1de08e=a1303_0x5083a1,_0x55c2c0={},_0x4d8c52={'Authorization':'Token\x20token='+_0x4ed9ed[_0x1de08e(0x1f6)]};_0x4ed9ed[_0x1de08e(0x20c)]=intUtil[_0x1de08e(0x201)](_0x4ed9ed[_0x1de08e(0x20c)]),_0x4ed9ed['serverUrl']=intUtil['stripTrailingSlash'](_0x4ed9ed[_0x1de08e(0x237)]);const _0x4c5f04=_0x4ed9ed[_0x1de08e(0x20c)];_0x55c2c0[_0x1de08e(0x21e)]=_0x4ed9ed[_0x1de08e(0x219)],_0x55c2c0[_0x1de08e(0x22b)]=_0x15a8c3[_0x1de08e(0x22f)]()===_0x1de08e(0x205)?_0x2c8a90[_0x1de08e(0x20a)]:_0x2c8a90['calleridnum'],_0x55c2c0[_0x1de08e(0x236)]=_0x15a8c3===_0x1de08e(0x22e)||_0x15a8c3===_0x1de08e(0x217)?'queue':_0x1de08e(0x205);_0x4c15df&&(_0x55c2c0[_0x1de08e(0x23e)]=_0x4c15df[_0x1de08e(0x1f5)]);const _0x3771ab=util[_0x1de08e(0x227)]('%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s',_0x4ed9ed[_0x1de08e(0x237)],_0x2c8a90[_0x1de08e(0x210)],md5(_0x2c8a90[_0x1de08e(0x210)]));if(_0x7fc645&&_0x7fc645['monitor_format'])logger[_0x1de08e(0x229)](_0x1de08e(0x226),'Recording\x20is\x20enabled!'),_0x2c8a90[_0x1de08e(0x1f4)]=_0x3771ab;else _0x51a090&&_0x51a090['recordingFormat']&&_0x51a090['recordingFormat']!==_0x1de08e(0x232)?(logger[_0x1de08e(0x229)](_0x1de08e(0x1fe),'Recording\x20is\x20enabled!'),_0x2c8a90[_0x1de08e(0x1f4)]=_0x3771ab):_0x2c8a90[_0x1de08e(0x1f4)]='';return getAdminId(_0x55c2c0,_0x15a8c3,_0x4d8c52,_0x4c5f04)['then'](getUser(_0x15a8c3,_0x4d8c52,_0x4c5f04))[_0x1de08e(0x1f9)](getEndUser(_0x15a8c3,_0x4d8c52,_0x4c5f04))[_0x1de08e(0x1f9)](getTicket(_0x15a8c3,_0x4d8c52,_0x4c5f04,_0xcb899d,_0x2c8a90))[_0x1de08e(0x1f9)](function(_0x1ec764){const _0x101162=_0x1de08e;logger[_0x101162(0x229)](util[_0x101162(0x227)](_0x101162(0x221),_0x1ec764[_0x101162(0x215)])),_0x15a8c3!==_0x101162(0x217)&&(logger['info']('['+[_0x15a8c3['toUpperCase']()]+']',_0x101162(0x203)),emit(_0x4c5f04,_0x4c15df[_0x101162(0x21f)],_0x1ec764[_0x101162(0x220)]));})[_0x1de08e(0x225)](function(_0x1d3748){const _0x176288=_0x1de08e;logger[_0x176288(0x23c)]('['+[_0x15a8c3[_0x176288(0x208)]()]+_0x176288(0x230),util['inspect'](_0x1d3748,{'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 d123fee..a76a4c6 100644 --- a/server/services/ami/trigger/integration/index.js +++ b/server/services/ami/trigger/integration/index.js @@ -1 +1 @@ -const a1140_0x5168=['zoho','data1','./sugarcrm','%s\x20configuration\x20#%s\x20not\x20found','data2','toLowerCase','error','Configurations','find','log','outbound','sugarcrm','exec','./desk','salesforce','desk','./freshsales','%s\x20account\x20#%s\x20not\x20found','vtiger','unmanaged','dynamics365','lodash','./zendesk','freshdesk','servicenow','[EXEC]','format','./zoho','freshsales','queue','./dynamics365','../../../../config/logger','./salesforce','./freshdesk','data3','routeId','zendesk'];(function(_0x36d925,_0x5168a4){const _0xfba254=function(_0x50cc1d){while(--_0x50cc1d){_0x36d925['push'](_0x36d925['shift']());}};_0xfba254(++_0x5168a4);}(a1140_0x5168,0x1b1));const a1140_0xfba2=function(_0x36d925,_0x5168a4){_0x36d925=_0x36d925-0x0;let _0xfba254=a1140_0x5168[_0x36d925];return _0xfba254;};const _0x1e3ac1=a1140_0xfba2;'use strict';const _=require(_0x1e3ac1('0x20')),util=require('util'),zendesk=require(_0x1e3ac1('0x21')),salesforce=require(_0x1e3ac1('0x6')),sugarcrm=require(_0x1e3ac1('0xd')),freshdesk=require(_0x1e3ac1('0x7')),zoho=require(_0x1e3ac1('0x1')),desk=require(_0x1e3ac1('0x18')),vtiger=require('./vtiger'),servicenow=require('./servicenow'),dynamics365=require(_0x1e3ac1('0x4')),freshsales=require(_0x1e3ac1('0x1b')),integrations=[_0x1e3ac1('0xa'),'salesforce',_0x1e3ac1('0x16'),_0x1e3ac1('0x22'),_0x1e3ac1('0xb'),_0x1e3ac1('0x1a'),'vtiger',_0x1e3ac1('0x1f'),_0x1e3ac1('0x2'),_0x1e3ac1('0x23')];exports[_0x1e3ac1('0x17')]=function(_0x50cc1d,_0x2e410a,_0x2daf7b,_0x8754e3,_0x32d6af,_0x27035f){const _0x158b0d=_0x1e3ac1;if(_0x2daf7b){if(_['includes'](integrations,_0x50cc1d[_0x158b0d('0xc')][_0x158b0d('0x10')]()))try{let _0x782d71=null,_0x418945='';const _0x502e0e=_0x2daf7b[_0x50cc1d[_0x158b0d('0xc')][_0x158b0d('0x10')]()];if(_0x502e0e){const _0x3c248c=_0x502e0e[_0x50cc1d[_0x158b0d('0xf')]];if(_0x3c248c){const _0xa13249=_[_0x158b0d('0x13')](_0x3c248c[_0x158b0d('0x12')],{'id':parseInt(_0x50cc1d[_0x158b0d('0x8')],0xa)});if(_0xa13249){if(_0x8754e3){if(_0x32d6af&&_0x2e410a[_0x158b0d('0x3')])_0x418945=_0x158b0d('0x3');else _0x2e410a[_0x158b0d('0x9')]?_0x418945=_0x158b0d('0x15'):console[_0x158b0d('0x14')]('EVENT\x20UNKNOWN',_0x2e410a);}else _0x418945=_0x158b0d('0x1e');switch(_0x50cc1d['data1'][_0x158b0d('0x10')]()){case _0x158b0d('0xa'):zendesk[_0x418945](_0x50cc1d,_0x2e410a,_0xa13249,_0x8754e3,_0x32d6af,_0x3c248c,_0x27035f);break;case _0x158b0d('0x19'):salesforce[_0x418945](_0x50cc1d,_0x2e410a,_0xa13249,_0x8754e3,_0x32d6af,_0x3c248c,_0x27035f);break;case _0x158b0d('0x16'):sugarcrm[_0x418945](_0x50cc1d,_0x2e410a,_0xa13249,_0x8754e3,_0x32d6af,_0x3c248c,_0x27035f);break;case _0x158b0d('0x22'):freshdesk[_0x418945](_0x50cc1d,_0x2e410a,_0xa13249,_0x8754e3,_0x32d6af,_0x3c248c,_0x27035f);break;case _0x158b0d('0xb'):zoho[_0x418945](_0x50cc1d,_0x2e410a,_0xa13249,_0x8754e3,_0x32d6af,_0x3c248c,_0x27035f);break;case _0x158b0d('0x1a'):desk[_0x418945](_0x50cc1d,_0x2e410a,_0xa13249,_0x8754e3,_0x32d6af,_0x3c248c,_0x27035f);break;case _0x158b0d('0x1d'):vtiger[_0x418945](_0x50cc1d,_0x2e410a,_0xa13249,_0x8754e3,_0x32d6af,_0x3c248c,_0x27035f);break;case _0x158b0d('0x2'):freshsales['cs'](_0x50cc1d,_0x2e410a,_0xa13249,_0x8754e3,_0x32d6af,_0x3c248c,_0x27035f,_0x418945);break;case _0x158b0d('0x23'):servicenow['cs'](_0x50cc1d,_0x2e410a,_0xa13249,_0x8754e3,_0x32d6af,_0x3c248c,_0x27035f,_0x418945);break;case _0x158b0d('0x1f'):dynamics365['cs'](_0x50cc1d,_0x2e410a,_0xa13249,_0x8754e3,_0x32d6af,_0x3c248c,_0x27035f,_0x418945);break;default:console['log']('unknown\x20integration');}}else _0x782d71=require('../../../../config/logger')(_0x50cc1d[_0x158b0d('0xc')][_0x158b0d('0x10')]()),_0x782d71[_0x158b0d('0x11')](_0x158b0d('0x24'),util[_0x158b0d('0x0')](_0x158b0d('0xe'),_0x50cc1d[_0x158b0d('0xc')][_0x158b0d('0x10')](),_0x50cc1d[_0x158b0d('0x8')]));}else _0x782d71=require(_0x158b0d('0x5'))(_0x50cc1d[_0x158b0d('0xc')][_0x158b0d('0x10')]()),_0x782d71[_0x158b0d('0x11')](_0x158b0d('0x24'),util[_0x158b0d('0x0')](_0x158b0d('0x1c'),_0x50cc1d[_0x158b0d('0xc')][_0x158b0d('0x10')](),_0x50cc1d[_0x158b0d('0xf')]));}else{}}catch(_0x2dcac6){console[_0x158b0d('0x11')](_0x2dcac6);}}}; \ No newline at end of file +const a1304_0x4e38=['freshsales','util','./freshsales','vtiger','queue','./zendesk','./freshdesk','./salesforce','toLowerCase','data1','./vtiger','outbound','sugarcrm','data3','%s\x20configuration\x20#%s\x20not\x20found','%s\x20account\x20#%s\x20not\x20found','servicenow','routeId','../../../../config/logger','unmanaged','log','exec','desk','data2','./dynamics365','format','zoho','[EXEC]','salesforce','error','lodash','./desk','./sugarcrm','Configurations','dynamics365','./zoho','zendesk','freshdesk'];(function(_0x12e09b,_0x3bb469){const _0x4e38c1=function(_0x1a11a2){while(--_0x1a11a2){_0x12e09b['push'](_0x12e09b['shift']());}};_0x4e38c1(++_0x3bb469);}(a1304_0x4e38,0xb5));const a1304_0x1a11=function(_0x12e09b,_0x3bb469){_0x12e09b=_0x12e09b-0x14a;let _0x4e38c1=a1304_0x4e38[_0x12e09b];return _0x4e38c1;};const a1304_0x1fc2aa=a1304_0x1a11;'use strict';const _=require(a1304_0x1fc2aa(0x14b)),util=require(a1304_0x1fc2aa(0x154)),zendesk=require(a1304_0x1fc2aa(0x158)),salesforce=require(a1304_0x1fc2aa(0x15a)),sugarcrm=require(a1304_0x1fc2aa(0x14d)),freshdesk=require(a1304_0x1fc2aa(0x159)),zoho=require(a1304_0x1fc2aa(0x150)),desk=require(a1304_0x1fc2aa(0x14c)),vtiger=require(a1304_0x1fc2aa(0x15d)),servicenow=require('./servicenow'),dynamics365=require(a1304_0x1fc2aa(0x16b)),freshsales=require(a1304_0x1fc2aa(0x155)),integrations=[a1304_0x1fc2aa(0x151),a1304_0x1fc2aa(0x16f),'sugarcrm',a1304_0x1fc2aa(0x152),a1304_0x1fc2aa(0x16d),a1304_0x1fc2aa(0x169),a1304_0x1fc2aa(0x156),'dynamics365',a1304_0x1fc2aa(0x153),a1304_0x1fc2aa(0x163)];exports[a1304_0x1fc2aa(0x168)]=function(_0x49b571,_0x4b5f0a,_0x1ba3d6,_0x5b5ced,_0x27527f,_0x4ca940){const _0x57bc72=a1304_0x1fc2aa;if(_0x1ba3d6){if(_['includes'](integrations,_0x49b571[_0x57bc72(0x15c)][_0x57bc72(0x15b)]()))try{let _0x18e191=null,_0x3deabc='';const _0xd1bf75=_0x1ba3d6[_0x49b571[_0x57bc72(0x15c)][_0x57bc72(0x15b)]()];if(_0xd1bf75){const _0x2f3927=_0xd1bf75[_0x49b571[_0x57bc72(0x16a)]];if(_0x2f3927){const _0x1ea379=_['find'](_0x2f3927[_0x57bc72(0x14e)],{'id':parseInt(_0x49b571['data3'],0xa)});if(_0x1ea379){if(_0x5b5ced){if(_0x27527f&&_0x4b5f0a[_0x57bc72(0x157)])_0x3deabc=_0x57bc72(0x157);else _0x4b5f0a[_0x57bc72(0x164)]?_0x3deabc=_0x57bc72(0x15e):console['log']('EVENT\x20UNKNOWN',_0x4b5f0a);}else _0x3deabc=_0x57bc72(0x166);switch(_0x49b571[_0x57bc72(0x15c)][_0x57bc72(0x15b)]()){case _0x57bc72(0x151):zendesk[_0x3deabc](_0x49b571,_0x4b5f0a,_0x1ea379,_0x5b5ced,_0x27527f,_0x2f3927,_0x4ca940);break;case _0x57bc72(0x16f):salesforce[_0x3deabc](_0x49b571,_0x4b5f0a,_0x1ea379,_0x5b5ced,_0x27527f,_0x2f3927,_0x4ca940);break;case _0x57bc72(0x15f):sugarcrm[_0x3deabc](_0x49b571,_0x4b5f0a,_0x1ea379,_0x5b5ced,_0x27527f,_0x2f3927,_0x4ca940);break;case _0x57bc72(0x152):freshdesk[_0x3deabc](_0x49b571,_0x4b5f0a,_0x1ea379,_0x5b5ced,_0x27527f,_0x2f3927,_0x4ca940);break;case _0x57bc72(0x16d):zoho[_0x3deabc](_0x49b571,_0x4b5f0a,_0x1ea379,_0x5b5ced,_0x27527f,_0x2f3927,_0x4ca940);break;case _0x57bc72(0x169):desk[_0x3deabc](_0x49b571,_0x4b5f0a,_0x1ea379,_0x5b5ced,_0x27527f,_0x2f3927,_0x4ca940);break;case _0x57bc72(0x156):vtiger[_0x3deabc](_0x49b571,_0x4b5f0a,_0x1ea379,_0x5b5ced,_0x27527f,_0x2f3927,_0x4ca940);break;case _0x57bc72(0x153):freshsales['cs'](_0x49b571,_0x4b5f0a,_0x1ea379,_0x5b5ced,_0x27527f,_0x2f3927,_0x4ca940,_0x3deabc);break;case _0x57bc72(0x163):servicenow['cs'](_0x49b571,_0x4b5f0a,_0x1ea379,_0x5b5ced,_0x27527f,_0x2f3927,_0x4ca940,_0x3deabc);break;case _0x57bc72(0x14f):dynamics365['cs'](_0x49b571,_0x4b5f0a,_0x1ea379,_0x5b5ced,_0x27527f,_0x2f3927,_0x4ca940,_0x3deabc);break;default:console[_0x57bc72(0x167)]('unknown\x20integration');}}else _0x18e191=require(_0x57bc72(0x165))(_0x49b571[_0x57bc72(0x15c)]['toLowerCase']()),_0x18e191[_0x57bc72(0x14a)](_0x57bc72(0x16e),util[_0x57bc72(0x16c)](_0x57bc72(0x161),_0x49b571['data1']['toLowerCase'](),_0x49b571[_0x57bc72(0x160)]));}else _0x18e191=require(_0x57bc72(0x165))(_0x49b571[_0x57bc72(0x15c)][_0x57bc72(0x15b)]()),_0x18e191['error']('[EXEC]',util[_0x57bc72(0x16c)](_0x57bc72(0x162),_0x49b571[_0x57bc72(0x15c)][_0x57bc72(0x15b)](),_0x49b571[_0x57bc72(0x16a)]));}else{}}catch(_0x4143aa){console[_0x57bc72(0x14a)](_0x4143aa);}}}; \ 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 55ef693..be5b8e9 100644 --- a/server/services/ami/trigger/integration/salesforce.js +++ b/server/services/ami/trigger/integration/salesforce.js @@ -1 +1 @@ -const a1141_0x2d10=['Agent\x20%s\x20not\x20found.\x20Switch\x20to\x20the\x20admin\x20account.','[QUEUE]\x20Salesforce\x20account\x20type\x20not\x20recognized.','type','toLowerCase','string','content','User','Enduser\x20with\x20phone\x20%s\x20not\x20found.','recordingFormat','util','Salesforce\x20account\x20type\x20not\x20recognized','lead','name','contact','trigger:salesforce:display','destcalleridnum','then','ContactId','variableName','Fields','Searching\x20enduser\x20with\x20phone\x20%s.\x20Serching\x20method\x20used\x20%s.','Lead','stripTrailingSlash','variable','recordingURL','resolve',']\x20Integration\x20account\x20type\x20%s.','Phone','salesforce','[OUTBOUND]','ticketType','%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s','Subjects','forEach','Enduser\x20with\x20phone\x20%s\x20found.','%s/%s/e','clientSecret','Recording\x20is\x20enabled!','Variable','Agent\x20%s\x20found.','idField','instanceUrl','serverUrl','toString','unmanaged','../../../../rediscache','format','moduleCreate','No\x20Company','moduleSearch','newTab','utc','./util',']\x20Ticket\x20%s\x20created.','remoteUri','[QUEUE]\x20Ticket\x20%s\x20created','[QUEUE]','Name','Task','Company','stringify','emit','monitor_format','[QUEUE]\x20Displaying\x20ticket\x20%s\x20to\x20agent\x20%s.\x20Integration\x20account\x20type\x20%s.','length','','md5','Caller\x20-\x20%s','lodash','Connection\x20established.','Enduser\x20with\x20phone\x20%s.\x20Creating\x20method\x20used\x20%s.','calleridnum','concat','find','display_name','uniqueid','execute','contact_lead','clientId','WhoId','customVariable','sobject','toUpperCase','password','user_id','email','calleridname','assign','error','outbound','isNil','user:%s','[OUTBOUND]\x20Displaying\x20ticket\x20%s\x20to\x20agent\x20%s.\x20Integration\x20account\x20type\x20%s.','jsforce','info','lastevent','username','getString','securityToken','catch','integrationTab','Connection','Case','Descriptions','Contact','queue','create'];(function(_0x403395,_0x2d104f){const _0x4df25c=function(_0x357351){while(--_0x357351){_0x403395['push'](_0x403395['shift']());}};_0x4df25c(++_0x2d104f);}(a1141_0x2d10,0x1ee));const a1141_0x4df2=function(_0x403395,_0x2d104f){_0x403395=_0x403395-0x0;let _0x4df25c=a1141_0x2d10[_0x403395];return _0x4df25c;};const _0x3c20e3=a1141_0x4df2;'use strict';const _=require(_0x3c20e3('0x2')),moment=require('moment'),md5=require(_0x3c20e3('0x0')),jsforce=require(_0x3c20e3('0x1b')),util=require(_0x3c20e3('0x32')),intUtil=require(_0x3c20e3('0x5d')),logger=require('../../../../config/logger')(_0x3c20e3('0x45')),{getSocket}=require(_0x3c20e3('0x56')),io=getSocket();function emit(_0x357351,_0x4c2686,_0x4977d5){const _0x696b7e=_0x3c20e3;io['to'](_0x357351)[_0x696b7e('0x66')](_0x4c2686,_0x4977d5);}function getTicket(_0x3dd51d,_0x26fdec,_0x57106a,_0xa8ee54,_0x3fe155,_0x2e01ed,_0x89d895){const _0x280fc2=_0x3c20e3;let _0x2cf47f={};if(_0xa8ee54[_0x280fc2('0x47')]===_0x280fc2('0x63'))_0x2cf47f=Object['assign']({},{'OwnerId':_0x26fdec['id'],'ActivityDate':moment[_0x280fc2('0x5c')](),'IsReminderSet':![],'IsRecurrence':![],'Subject':intUtil[_0x280fc2('0x1f')](_0xa8ee54[_0x280fc2('0x49')],_0x3fe155,'\x20'),'Description':intUtil['getString'](_0xa8ee54[_0x280fc2('0x25')],_0x3fe155,'\x0a')},getCustomFields(_0x2e01ed,_0x3fe155)),_0x57106a&&(_0x2cf47f[_0x280fc2('0xd')]=_0x57106a['id']);else _0xa8ee54[_0x280fc2('0x47')]===_0x280fc2('0x24')&&(_0x2cf47f=Object[_0x280fc2('0x15')]({},{'OwnerId':_0x26fdec['id'],'Subject':intUtil[_0x280fc2('0x1f')](_0xa8ee54[_0x280fc2('0x49')],_0x3fe155,'\x20'),'Description':intUtil[_0x280fc2('0x1f')](_0xa8ee54['Descriptions'],_0x3fe155,'\x0a')},getCustomFields(_0x2e01ed,_0x3fe155)),_0x57106a&&(_0x2cf47f[_0x280fc2('0x3a')]=_0x57106a['id']));return _0x89d895['sobject'](_0xa8ee54['ticketType'])['create'](_0x2cf47f);}function getUser(_0x253755,_0x33f14b,_0x351118){const _0x36a856=_0x3c20e3;if(!_[_0x36a856('0x18')](_0x33f14b)&&intUtil['validateEmail'](_0x33f14b)){const _0x13ecb5={'Email':_0x33f14b},_0x57db08={'Id':!![],'Username':!![],'Name':!![],'Email':!![]};return _0x351118['sobject'](_0x36a856('0x2f'))[_0x36a856('0x7')](_0x13ecb5,_0x57db08)[_0x36a856('0xa')]()['then'](function(_0x3da0ab){const _0x30e86e=_0x36a856;if(_0x3da0ab[_0x30e86e('0x69')]){const _0x3c6d01=_[_0x30e86e('0x7')](_0x3da0ab,function(_0x53057a){return _0x53057a['Email']===_0x33f14b;});if(_0x3c6d01)return logger[_0x30e86e('0x1c')](_0x30e86e('0x50'),_0x33f14b),Promise[_0x30e86e('0x42')]({'id':_0x3c6d01['Id'],'name':_0x3c6d01[_0x30e86e('0x62')]});}else return logger[_0x30e86e('0x1c')](_0x30e86e('0x29'),_0x33f14b),_0x351118['identity']()[_0x30e86e('0x39')](function(_0x2ac8d0){const _0x362d71=_0x30e86e;return Promise[_0x362d71('0x42')]({'id':_0x2ac8d0[_0x362d71('0x12')],'name':_0x2ac8d0[_0x362d71('0x8')]});});});}else return logger[_0x36a856('0x1c')]('Agent\x20%s\x20not\x20found.\x20Switch\x20to\x20the\x20admin\x20account.',_0x33f14b),_0x351118['identity']()[_0x36a856('0x39')](function(_0x46a7ee){const _0x299d71=_0x36a856;return Promise[_0x299d71('0x42')]({'id':_0x46a7ee[_0x299d71('0x12')],'name':_0x46a7ee[_0x299d71('0x8')]});});}function getEndUser(_0x598863,_0xeb3562,_0xd71319,_0x19bb4c,_0x1b085a){const _0xeddca2=_0x3c20e3,_0x356d5d={'Phone':_0x19bb4c},_0x22448d={'Id':!![],'Name':!![],'Phone':!![]};return Promise[_0xeddca2('0x42')]()[_0xeddca2('0x39')](function(){const _0x3cc238=_0xeddca2;if(_0xeb3562[_0x3cc238('0x47')]==='Task'){logger[_0x3cc238('0x1c')]('Searching\x20enduser\x20with\x20phone\x20%s.\x20Serching\x20method\x20used\x20%s.',_0x19bb4c,_0xeb3562['moduleSearch']);switch(_0xeb3562[_0x3cc238('0x5a')]){case _0x3cc238('0xb'):return _0x1b085a['sobject']('Contact')[_0x3cc238('0x7')](_0x356d5d,_0x22448d)['execute']()[_0x3cc238('0x39')](function(_0x3e1ac4){const _0x3baf1a=_0x3cc238;return _0x3e1ac4&&_0x3e1ac4[_0x3baf1a('0x69')]?_0x3e1ac4:_0x1b085a[_0x3baf1a('0xf')](_0x3baf1a('0x3e'))['find'](_0x356d5d,_0x22448d);});case'contact':return _0x1b085a[_0x3cc238('0xf')]('Contact')[_0x3cc238('0x7')](_0x356d5d,_0x22448d)[_0x3cc238('0xa')]();case _0x3cc238('0x34'):return _0x1b085a['sobject']('Lead')[_0x3cc238('0x7')](_0x356d5d,_0x22448d);default:return null;}}else{if(_0xeb3562[_0x3cc238('0x47')]===_0x3cc238('0x24'))return logger['info'](_0x3cc238('0x3d'),_0x19bb4c,_0x3cc238('0x36')),_0x1b085a[_0x3cc238('0xf')](_0x3cc238('0x26'))['find'](_0x356d5d,_0x22448d)[_0x3cc238('0xa')]();}})[_0xeddca2('0x39')](function(_0x573cd2){const _0x1a558b=_0xeddca2;if(_0x573cd2&&_0x573cd2[_0x1a558b('0x69')]){const _0xe4415f=_[_0x1a558b('0x7')](_0x573cd2,function(_0x4571cc){const _0x322ccb=_0x1a558b;return _0x4571cc[_0x322ccb('0x44')]===_0x19bb4c;});if(_0xe4415f)return Promise[_0x1a558b('0x42')]({'id':_0xe4415f['Id'],'name':_0xe4415f['Name'],'phone':_0xe4415f[_0x1a558b('0x44')]});}})['then'](function(_0x1b00c0){const _0x5d5911=_0xeddca2;if(_0x1b00c0)return logger[_0x5d5911('0x1c')](_0x5d5911('0x4b'),_0x19bb4c),Promise[_0x5d5911('0x42')](_0x1b00c0);else{logger[_0x5d5911('0x1c')](_0x5d5911('0x30'),_0x19bb4c);const _0x345915={'LastName':_0xd71319!==_0x5d5911('0x6a')?_0xd71319:util[_0x5d5911('0x57')](_0x5d5911('0x1'),_0x19bb4c),'Phone':_0x19bb4c};if(_0xeb3562['moduleCreate']){if(_0xeb3562[_0x5d5911('0x58')]===_0x5d5911('0x36'))logger[_0x5d5911('0x1c')](_0x5d5911('0x4'),_0x19bb4c,_0xeb3562['moduleCreate']);else{if(_0xeb3562['moduleCreate']===_0x5d5911('0x34')&&_0xeb3562[_0x5d5911('0x47')]===_0x5d5911('0x63'))logger[_0x5d5911('0x1c')](_0x5d5911('0x4'),_0x19bb4c,_0xeb3562[_0x5d5911('0x58')]),_0x345915[_0x5d5911('0x64')]=_0x5d5911('0x59');else return null;}}return _0x1b085a[_0x5d5911('0xf')](_['upperFirst'](_0xeb3562['moduleCreate']))[_0x5d5911('0x28')](_0x345915);}});}function getCustomFields(_0x382864,_0x536db0){const _0x14c3d3=_0x3c20e3,_0x14b3da={};return _0x382864[_0x14c3d3('0x69')]>0x0&&_[_0x14c3d3('0x4a')](_0x382864,function(_0x38d620){const _0x13be68=_0x14c3d3;if(_0x38d620[_0x13be68('0x2b')]===_0x13be68('0x2d')&&_0x38d620['idField'])_0x14b3da[_0x38d620[_0x13be68('0x51')]]=_0x38d620[_0x13be68('0x2e')][_0x13be68('0x54')]();else{if(_0x38d620['type']===_0x13be68('0x40')&&_0x38d620[_0x13be68('0x3b')]&&_0x38d620[_0x13be68('0x51')])_0x536db0[_0x38d620[_0x13be68('0x3b')]]&&(_0x14b3da[_0x38d620[_0x13be68('0x51')]]=_0x536db0[_0x38d620[_0x13be68('0x3b')]][_0x13be68('0x54')]());else _0x38d620[_0x13be68('0x2b')]===_0x13be68('0xe')&&_0x38d620[_0x13be68('0x4f')]&&_0x38d620[_0x13be68('0x4f')][_0x13be68('0x35')]&&_0x38d620[_0x13be68('0x51')]&&(_0x536db0[_0x38d620[_0x13be68('0x4f')][_0x13be68('0x35')][_0x13be68('0x2c')]()]&&(_0x14b3da[_0x38d620[_0x13be68('0x51')]]=_0x536db0[_0x38d620['Variable']['name'][_0x13be68('0x2c')]()][_0x13be68('0x54')]()));}}),_0x14b3da;}function getConnection(_0x7a2c4e){const _0x245ee1=_0x3c20e3,_0x17c703=_0x7a2c4e[_0x245ee1('0x11')][_0x245ee1('0x6')](_0x7a2c4e[_0x245ee1('0x20')]),_0x320b9d=new jsforce[(_0x245ee1('0x23'))]({'oauth2':{'loginUrl':_0x7a2c4e[_0x245ee1('0x5f')]||'https://login.salesforce.com','clientId':_0x7a2c4e[_0x245ee1('0xc')],'clientSecret':_0x7a2c4e[_0x245ee1('0x4d')]}});return _0x320b9d['login'](_0x7a2c4e[_0x245ee1('0x1e')],_0x17c703)[_0x245ee1('0x39')](function(){const _0x5e86c8=_0x245ee1;return logger['info'](_0x5e86c8('0x3')),_0x320b9d;});}exports[_0x3c20e3('0x27')]=function(_0x53cdba,_0x50d276,_0x150b92,_0x2f770f,_0x53c65c,_0x581e18){const _0xe2cbae=_0x3c20e3;let _0x51699c,_0x1ec2dd,_0x5b4609,_0x16afe0;return _0x581e18[_0xe2cbae('0x53')]=intUtil[_0xe2cbae('0x3f')](_0x581e18[_0xe2cbae('0x53')]),_0x581e18[_0xe2cbae('0x5f')]=intUtil[_0xe2cbae('0x3f')](_0x581e18[_0xe2cbae('0x5f')]),_0x53c65c&&_0x53c65c[_0xe2cbae('0x67')]?(logger[_0xe2cbae('0x1c')](_0xe2cbae('0x61'),'Recording\x20is\x20enabled!'),_0x50d276[_0xe2cbae('0x41')]=util[_0xe2cbae('0x57')](_0xe2cbae('0x48'),_0x581e18['serverUrl'],_0x50d276[_0xe2cbae('0x9')],md5(_0x50d276['uniqueid']))):_0x50d276[_0xe2cbae('0x41')]='',getConnection(_0x581e18)[_0xe2cbae('0x39')](function(_0x564ad2){const _0x215d3d=_0xe2cbae;return _0x16afe0=_0x564ad2,getUser(_0x581e18,_0x2f770f[_0x215d3d('0x13')],_0x16afe0);})['then'](function(_0x53a066){const _0x4b9453=_0xe2cbae;return _0x51699c=_0x53a066,getEndUser(_0x581e18,_0x150b92,_0x50d276[_0x4b9453('0x14')],_0x50d276['calleridnum'],_0x16afe0);})['then'](function(_0x452915){const _0x5d8378=_0xe2cbae;return _0x1ec2dd=_0x452915,getTicket(_0x581e18,_0x51699c,_0x1ec2dd,_0x150b92,_0x50d276,_0x150b92['Fields'],_0x16afe0,_0x5d8378('0x27'));})['then'](function(_0x1008de){const _0x583e1d=_0xe2cbae;_0x5b4609=_0x1008de,logger[_0x583e1d('0x1c')](_0x583e1d('0x60'),_0x5b4609['id']),logger[_0x583e1d('0x1c')](_0x583e1d('0x68'),_0x5b4609['id'],_0x2f770f[_0x583e1d('0x35')],_0x581e18['type']);switch(_0x581e18['type']){case'integrationTab':emit(util['format']('user:%s',_0x2f770f[_0x583e1d('0x35')]),_0x583e1d('0x37'),{'recordId':_0x5b4609['id']});break;case _0x583e1d('0x5b'):emit(util[_0x583e1d('0x57')](_0x583e1d('0x19'),_0x2f770f[_0x583e1d('0x35')]),'trigger:browser:url',{'uri':util[_0x583e1d('0x57')]('%s/%s/e',_0x16afe0[_0x583e1d('0x52')],_0x5b4609['id'])});break;default:logger[_0x583e1d('0x16')](_0x583e1d('0x2a'));}})[_0xe2cbae('0x21')](function(_0xc655de){const _0x3fa0cc=_0xe2cbae;logger[_0x3fa0cc('0x16')]('[QUEUE]',JSON[_0x3fa0cc('0x65')](_0xc655de));});},exports[_0x3c20e3('0x17')]=function(_0x1ac36d,_0x97e394,_0x360588,_0xc7f2f9,_0x5df439,_0x25a05a,_0x2a47ce){const _0x180c74=_0x3c20e3;let _0x1bcd14,_0x1f8ed0,_0x4885ae,_0x1c41d3;return _0x25a05a[_0x180c74('0x53')]=intUtil[_0x180c74('0x3f')](_0x25a05a[_0x180c74('0x53')]),_0x25a05a[_0x180c74('0x5f')]=intUtil[_0x180c74('0x3f')](_0x25a05a[_0x180c74('0x5f')]),_0x2a47ce&&_0x2a47ce[_0x180c74('0x31')]&&_0x2a47ce[_0x180c74('0x31')]!=='none'&&(logger[_0x180c74('0x1c')](_0x180c74('0x46'),_0x180c74('0x4e')),_0x97e394['recordingURL']=util[_0x180c74('0x57')](_0x180c74('0x48'),_0x25a05a[_0x180c74('0x53')],_0x97e394[_0x180c74('0x9')],md5(_0x97e394[_0x180c74('0x9')]))),getConnection(_0x25a05a)[_0x180c74('0x39')](function(_0x27237f){const _0x346b09=_0x180c74;return _0x1c41d3=_0x27237f,getUser(_0x25a05a,_0xc7f2f9[_0x346b09('0x13')],_0x1c41d3);})[_0x180c74('0x39')](function(_0x18b576){const _0x23ebea=_0x180c74;return _0x1bcd14=_0x18b576,getEndUser(_0x25a05a,_0x360588,_0x97e394['destcalleridname'],_0x97e394[_0x23ebea('0x38')],_0x1c41d3);})[_0x180c74('0x39')](function(_0x11dbfe){const _0x5d003f=_0x180c74;return _0x1f8ed0=_0x11dbfe,getTicket(_0x25a05a,_0x1bcd14,_0x1f8ed0,_0x360588,_0x97e394,_0x360588[_0x5d003f('0x3c')],_0x1c41d3,_0x5d003f('0x17'));})['then'](function(_0x44f128){const _0x5cb6db=_0x180c74;_0x4885ae=_0x44f128,logger['info']('[OUTBOUND]\x20Ticket\x20%s\x20created.',_0x4885ae['id']),logger['info'](_0x5cb6db('0x1a'),_0x4885ae['id'],_0xc7f2f9[_0x5cb6db('0x35')],_0x25a05a[_0x5cb6db('0x2b')]);switch(_0x25a05a[_0x5cb6db('0x2b')]){case _0x5cb6db('0x22'):emit(util['format'](_0x5cb6db('0x19'),_0xc7f2f9['name']),_0x5cb6db('0x37'),{'recordId':_0x4885ae['id']});break;case _0x5cb6db('0x5b'):emit(util[_0x5cb6db('0x57')](_0x5cb6db('0x19'),_0xc7f2f9[_0x5cb6db('0x35')]),'trigger:browser:url',{'uri':util[_0x5cb6db('0x57')](_0x5cb6db('0x4c'),_0x1c41d3[_0x5cb6db('0x52')],_0x4885ae['id'])});break;default:logger['error'](_0x5cb6db('0x46'),_0x5cb6db('0x33'));}})['catch'](function(_0x3aea64){const _0x5e392c=_0x180c74;logger['error'](_0x5e392c('0x46'),JSON[_0x5e392c('0x65')](_0x3aea64));});},exports[_0x3c20e3('0x55')]=function(_0x5d383e,_0x1bb0a8,_0x3ff695,_0x2cd3c8,_0xf49eb,_0x228ff0){const _0x4d114d=_0x3c20e3;let _0x183303,_0x49168f,_0x15fb62,_0x4c716c;return _0x228ff0[_0x4d114d('0x53')]=intUtil[_0x4d114d('0x3f')](_0x228ff0[_0x4d114d('0x53')]),_0x228ff0[_0x4d114d('0x5f')]=intUtil[_0x4d114d('0x3f')](_0x228ff0[_0x4d114d('0x5f')]),_0xf49eb&&_0xf49eb[_0x4d114d('0x67')]?(logger['info']('['+_0x1bb0a8[_0x4d114d('0x1d')][_0x4d114d('0x10')]()+']','Recording\x20is\x20enabled!'),_0x1bb0a8[_0x4d114d('0x41')]=util[_0x4d114d('0x57')](_0x4d114d('0x48'),_0x228ff0[_0x4d114d('0x53')],_0x1bb0a8['uniqueid'],md5(_0x1bb0a8['uniqueid']))):_0x1bb0a8[_0x4d114d('0x41')]='',getConnection(_0x228ff0)['then'](function(_0x9240fe){const _0x40f2fb=_0x4d114d;return _0x4c716c=_0x9240fe,!_[_0x40f2fb('0x18')](_0x2cd3c8)?getUser(_0x228ff0,_0x2cd3c8[_0x40f2fb('0x35')],_0x4c716c):getUser(_0x228ff0,null,_0x4c716c);})[_0x4d114d('0x39')](function(_0x247e86){const _0x361cd3=_0x4d114d;return _0x183303=_0x247e86,getEndUser(_0x228ff0,_0x3ff695,_0x1bb0a8['calleridname'],_0x1bb0a8[_0x361cd3('0x5')],_0x4c716c);})[_0x4d114d('0x39')](function(_0x22ae4e){return _0x49168f=_0x22ae4e,getTicket(_0x228ff0,_0x183303,_0x49168f,_0x3ff695,_0x1bb0a8,_0x3ff695['Fields'],_0x4c716c);})['then'](function(_0x32d26e){const _0x545a5d=_0x4d114d;_0x15fb62=_0x32d26e,logger[_0x545a5d('0x1c')]('['+_0x1bb0a8[_0x545a5d('0x1d')][_0x545a5d('0x10')]()+_0x545a5d('0x5e'),_0x15fb62['id']),logger[_0x545a5d('0x1c')]('['+_0x1bb0a8[_0x545a5d('0x1d')][_0x545a5d('0x10')]()+_0x545a5d('0x43'),_0x228ff0[_0x545a5d('0x2b')]);})[_0x4d114d('0x21')](function(_0x4c3b40){const _0x1bd38d=_0x4d114d;logger[_0x1bd38d('0x16')]('['+_0x1bb0a8[_0x1bd38d('0x1d')]['toUpperCase']()+']',JSON[_0x1bd38d('0x65')](_0x4c3b40));});}; \ No newline at end of file +const a1305_0x2be2=['display_name','username','destcalleridname','Salesforce\x20account\x20type\x20not\x20recognized','clientSecret','unmanaged','monitor_format','salesforce','upperFirst','variableName','Subjects','clientId','[OUTBOUND]','concat','Enduser\x20with\x20phone\x20%s\x20found.','Caller\x20-\x20%s','[QUEUE]\x20Salesforce\x20account\x20type\x20not\x20recognized.','forEach','getString','ContactId','Enduser\x20with\x20phone\x20%s\x20not\x20found.','recordingFormat','identity','toString','Agent\x20%s\x20not\x20found.\x20Switch\x20to\x20the\x20admin\x20account.','serverUrl','ticketType','resolve','catch','Connection\x20established.','remoteUri','trigger:browser:url','calleridname','integrationTab','string','instanceUrl','assign','info','%s/%s/e','./util','Contact','sobject','[OUTBOUND]\x20Ticket\x20%s\x20created.','Recording\x20is\x20enabled!','moduleCreate','type','then','format','contact','calleridnum','Enduser\x20with\x20phone\x20%s.\x20Creating\x20method\x20used\x20%s.','recordingURL','Lead','toUpperCase','Fields','none','[QUEUE]\x20Ticket\x20%s\x20created','outbound','moduleSearch','user_id','user:%s',']\x20Integration\x20account\x20type\x20%s.','lodash','idField','trigger:salesforce:display','stripTrailingSlash','utc','execute','Searching\x20enduser\x20with\x20phone\x20%s.\x20Serching\x20method\x20used\x20%s.','error','[QUEUE]','length','md5','Phone','../../../../config/logger','stringify','isNil','lastevent','%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s','uniqueid','find','Descriptions','validateEmail','[OUTBOUND]\x20Displaying\x20ticket\x20%s\x20to\x20agent\x20%s.\x20Integration\x20account\x20type\x20%s.','name','Variable','destcalleridnum','jsforce','login','Task','toLowerCase','email','create','util','','variable',']\x20Ticket\x20%s\x20created.','lead','password'];(function(_0xf53ebd,_0x53c7b1){const _0x2be20e=function(_0x5f5675){while(--_0x5f5675){_0xf53ebd['push'](_0xf53ebd['shift']());}};_0x2be20e(++_0x53c7b1);}(a1305_0x2be2,0x106));const a1305_0x5f56=function(_0xf53ebd,_0x53c7b1){_0xf53ebd=_0xf53ebd-0x1b5;let _0x2be20e=a1305_0x2be2[_0xf53ebd];return _0x2be20e;};const a1305_0x930d2c=a1305_0x5f56;'use strict';const _=require(a1305_0x930d2c(0x216)),moment=require('moment'),md5=require(a1305_0x930d2c(0x1bd)),jsforce=require(a1305_0x930d2c(0x1cc)),util=require(a1305_0x930d2c(0x1d2)),intUtil=require(a1305_0x930d2c(0x1ff)),logger=require(a1305_0x930d2c(0x1bf))(a1305_0x930d2c(0x1df)),{getSocket}=require('../../../../rediscache'),io=getSocket();function emit(_0x9563ed,_0xf0ef77,_0x123aff){io['to'](_0x9563ed)['emit'](_0xf0ef77,_0x123aff);}function getTicket(_0x55ea2a,_0x1e0e60,_0x2ce866,_0x29d803,_0x2151f7,_0xa71828,_0x413864){const _0x22c619=a1305_0x930d2c;let _0x2cb7e1={};if(_0x29d803[_0x22c619(0x1f2)]===_0x22c619(0x1ce))_0x2cb7e1=Object[_0x22c619(0x1fc)]({},{'OwnerId':_0x1e0e60['id'],'ActivityDate':moment[_0x22c619(0x1b7)](),'IsReminderSet':![],'IsRecurrence':![],'Subject':intUtil[_0x22c619(0x1ea)](_0x29d803[_0x22c619(0x1e2)],_0x2151f7,'\x20'),'Description':intUtil[_0x22c619(0x1ea)](_0x29d803[_0x22c619(0x1c6)],_0x2151f7,'\x0a')},getCustomFields(_0xa71828,_0x2151f7)),_0x2ce866&&(_0x2cb7e1['WhoId']=_0x2ce866['id']);else _0x29d803[_0x22c619(0x1f2)]==='Case'&&(_0x2cb7e1=Object[_0x22c619(0x1fc)]({},{'OwnerId':_0x1e0e60['id'],'Subject':intUtil[_0x22c619(0x1ea)](_0x29d803[_0x22c619(0x1e2)],_0x2151f7,'\x20'),'Description':intUtil[_0x22c619(0x1ea)](_0x29d803[_0x22c619(0x1c6)],_0x2151f7,'\x0a')},getCustomFields(_0xa71828,_0x2151f7)),_0x2ce866&&(_0x2cb7e1[_0x22c619(0x1eb)]=_0x2ce866['id']));return _0x413864['sobject'](_0x29d803['ticketType'])[_0x22c619(0x1d1)](_0x2cb7e1);}function getUser(_0x19f647,_0x53a020,_0x540123){const _0x2eff38=a1305_0x930d2c;if(!_[_0x2eff38(0x1c1)](_0x53a020)&&intUtil[_0x2eff38(0x1c7)](_0x53a020)){const _0xe2633f={'Email':_0x53a020},_0x9a6ea2={'Id':!![],'Username':!![],'Name':!![],'Email':!![]};return _0x540123['sobject']('User')[_0x2eff38(0x1c5)](_0xe2633f,_0x9a6ea2)[_0x2eff38(0x1b8)]()[_0x2eff38(0x206)](function(_0x2aea85){const _0x32f62d=_0x2eff38;if(_0x2aea85['length']){const _0x8d9e70=_[_0x32f62d(0x1c5)](_0x2aea85,function(_0x1cc1fb){return _0x1cc1fb['Email']===_0x53a020;});if(_0x8d9e70)return logger[_0x32f62d(0x1fd)]('Agent\x20%s\x20found.',_0x53a020),Promise[_0x32f62d(0x1f3)]({'id':_0x8d9e70['Id'],'name':_0x8d9e70['Name']});}else return logger[_0x32f62d(0x1fd)](_0x32f62d(0x1f0),_0x53a020),_0x540123[_0x32f62d(0x1ee)]()[_0x32f62d(0x206)](function(_0x13b59d){const _0x31e4e2=_0x32f62d;return Promise[_0x31e4e2(0x1f3)]({'id':_0x13b59d['user_id'],'name':_0x13b59d[_0x31e4e2(0x1d8)]});});});}else return logger['info'](_0x2eff38(0x1f0),_0x53a020),_0x540123[_0x2eff38(0x1ee)]()[_0x2eff38(0x206)](function(_0x3d207b){const _0x4ef3f4=_0x2eff38;return Promise[_0x4ef3f4(0x1f3)]({'id':_0x3d207b[_0x4ef3f4(0x213)],'name':_0x3d207b[_0x4ef3f4(0x1d8)]});});}function getEndUser(_0x1828d3,_0x26175e,_0x59186b,_0xb4f8f6,_0x12aa2c){const _0x3fce1a=a1305_0x930d2c,_0x2aa47b={'Phone':_0xb4f8f6},_0x575dd8={'Id':!![],'Name':!![],'Phone':!![]};return Promise[_0x3fce1a(0x1f3)]()[_0x3fce1a(0x206)](function(){const _0x55db64=_0x3fce1a;if(_0x26175e['ticketType']===_0x55db64(0x1ce)){logger['info'](_0x55db64(0x1b9),_0xb4f8f6,_0x26175e[_0x55db64(0x212)]);switch(_0x26175e[_0x55db64(0x212)]){case'contact_lead':return _0x12aa2c['sobject'](_0x55db64(0x200))['find'](_0x2aa47b,_0x575dd8)['execute']()['then'](function(_0x5eda2c){const _0x33e71d=_0x55db64;return _0x5eda2c&&_0x5eda2c[_0x33e71d(0x1bc)]?_0x5eda2c:_0x12aa2c[_0x33e71d(0x201)](_0x33e71d(0x20c))[_0x33e71d(0x1c5)](_0x2aa47b,_0x575dd8);});case _0x55db64(0x208):return _0x12aa2c['sobject'](_0x55db64(0x200))['find'](_0x2aa47b,_0x575dd8)[_0x55db64(0x1b8)]();case _0x55db64(0x1d6):return _0x12aa2c[_0x55db64(0x201)](_0x55db64(0x20c))[_0x55db64(0x1c5)](_0x2aa47b,_0x575dd8);default:return null;}}else{if(_0x26175e[_0x55db64(0x1f2)]==='Case')return logger['info'](_0x55db64(0x1b9),_0xb4f8f6,_0x55db64(0x208)),_0x12aa2c['sobject'](_0x55db64(0x200))[_0x55db64(0x1c5)](_0x2aa47b,_0x575dd8)['execute']();}})[_0x3fce1a(0x206)](function(_0x3a35e9){const _0x36e72c=_0x3fce1a;if(_0x3a35e9&&_0x3a35e9[_0x36e72c(0x1bc)]){const _0x3d8896=_[_0x36e72c(0x1c5)](_0x3a35e9,function(_0x46bc63){const _0x5a6573=_0x36e72c;return _0x46bc63[_0x5a6573(0x1be)]===_0xb4f8f6;});if(_0x3d8896)return Promise[_0x36e72c(0x1f3)]({'id':_0x3d8896['Id'],'name':_0x3d8896['Name'],'phone':_0x3d8896[_0x36e72c(0x1be)]});}})[_0x3fce1a(0x206)](function(_0x19a990){const _0x4f2672=_0x3fce1a;if(_0x19a990)return logger['info'](_0x4f2672(0x1e6),_0xb4f8f6),Promise['resolve'](_0x19a990);else{logger[_0x4f2672(0x1fd)](_0x4f2672(0x1ec),_0xb4f8f6);const _0x459235={'LastName':_0x59186b!==_0x4f2672(0x1d3)?_0x59186b:util[_0x4f2672(0x207)](_0x4f2672(0x1e7),_0xb4f8f6),'Phone':_0xb4f8f6};if(_0x26175e['moduleCreate']){if(_0x26175e[_0x4f2672(0x204)]===_0x4f2672(0x208))logger[_0x4f2672(0x1fd)](_0x4f2672(0x20a),_0xb4f8f6,_0x26175e['moduleCreate']);else{if(_0x26175e[_0x4f2672(0x204)]==='lead'&&_0x26175e[_0x4f2672(0x1f2)]===_0x4f2672(0x1ce))logger[_0x4f2672(0x1fd)](_0x4f2672(0x20a),_0xb4f8f6,_0x26175e[_0x4f2672(0x204)]),_0x459235['Company']='No\x20Company';else return null;}}return _0x12aa2c[_0x4f2672(0x201)](_[_0x4f2672(0x1e0)](_0x26175e[_0x4f2672(0x204)]))[_0x4f2672(0x1d1)](_0x459235);}});}function getCustomFields(_0x571cb4,_0x585428){const _0x46010b=a1305_0x930d2c,_0x162299={};return _0x571cb4['length']>0x0&&_[_0x46010b(0x1e9)](_0x571cb4,function(_0x1d9afa){const _0x348439=_0x46010b;if(_0x1d9afa['type']===_0x348439(0x1fa)&&_0x1d9afa['idField'])_0x162299[_0x1d9afa[_0x348439(0x217)]]=_0x1d9afa['content']['toString']();else{if(_0x1d9afa['type']===_0x348439(0x1d4)&&_0x1d9afa[_0x348439(0x1e1)]&&_0x1d9afa[_0x348439(0x217)])_0x585428[_0x1d9afa['variableName']]&&(_0x162299[_0x1d9afa[_0x348439(0x217)]]=_0x585428[_0x1d9afa[_0x348439(0x1e1)]][_0x348439(0x1ef)]());else _0x1d9afa[_0x348439(0x205)]==='customVariable'&&_0x1d9afa[_0x348439(0x1ca)]&&_0x1d9afa[_0x348439(0x1ca)][_0x348439(0x1c9)]&&_0x1d9afa[_0x348439(0x217)]&&(_0x585428[_0x1d9afa[_0x348439(0x1ca)][_0x348439(0x1c9)]['toLowerCase']()]&&(_0x162299[_0x1d9afa['idField']]=_0x585428[_0x1d9afa[_0x348439(0x1ca)][_0x348439(0x1c9)][_0x348439(0x1cf)]()][_0x348439(0x1ef)]()));}}),_0x162299;}function getConnection(_0x5ef25d){const _0x573a86=a1305_0x930d2c,_0x3c93b0=_0x5ef25d[_0x573a86(0x1d7)][_0x573a86(0x1e5)](_0x5ef25d['securityToken']),_0x3e3fc8=new jsforce['Connection']({'oauth2':{'loginUrl':_0x5ef25d[_0x573a86(0x1f6)]||'https://login.salesforce.com','clientId':_0x5ef25d[_0x573a86(0x1e3)],'clientSecret':_0x5ef25d[_0x573a86(0x1dc)]}});return _0x3e3fc8[_0x573a86(0x1cd)](_0x5ef25d[_0x573a86(0x1d9)],_0x3c93b0)[_0x573a86(0x206)](function(){const _0x7aba6d=_0x573a86;return logger['info'](_0x7aba6d(0x1f5)),_0x3e3fc8;});}exports['queue']=function(_0x560d0c,_0x548eef,_0x1a1086,_0x26b26b,_0x896226,_0xa26310){const _0x4b1f0e=a1305_0x930d2c;let _0x163fbe,_0x48e417,_0x2fd576,_0x1c2bbc;return _0xa26310['serverUrl']=intUtil['stripTrailingSlash'](_0xa26310[_0x4b1f0e(0x1f1)]),_0xa26310[_0x4b1f0e(0x1f6)]=intUtil[_0x4b1f0e(0x1b6)](_0xa26310[_0x4b1f0e(0x1f6)]),_0x896226&&_0x896226[_0x4b1f0e(0x1de)]?(logger['info'](_0x4b1f0e(0x1bb),_0x4b1f0e(0x203)),_0x548eef[_0x4b1f0e(0x20b)]=util[_0x4b1f0e(0x207)](_0x4b1f0e(0x1c3),_0xa26310[_0x4b1f0e(0x1f1)],_0x548eef['uniqueid'],md5(_0x548eef['uniqueid']))):_0x548eef[_0x4b1f0e(0x20b)]='',getConnection(_0xa26310)['then'](function(_0x4cb06a){const _0xf6e9b1=_0x4b1f0e;return _0x1c2bbc=_0x4cb06a,getUser(_0xa26310,_0x26b26b[_0xf6e9b1(0x1d0)],_0x1c2bbc);})[_0x4b1f0e(0x206)](function(_0x3f5001){const _0x461298=_0x4b1f0e;return _0x163fbe=_0x3f5001,getEndUser(_0xa26310,_0x1a1086,_0x548eef[_0x461298(0x1f8)],_0x548eef['calleridnum'],_0x1c2bbc);})[_0x4b1f0e(0x206)](function(_0x20d418){const _0xdb61d5=_0x4b1f0e;return _0x48e417=_0x20d418,getTicket(_0xa26310,_0x163fbe,_0x48e417,_0x1a1086,_0x548eef,_0x1a1086[_0xdb61d5(0x20e)],_0x1c2bbc,'queue');})['then'](function(_0x5009e7){const _0x50a34b=_0x4b1f0e;_0x2fd576=_0x5009e7,logger[_0x50a34b(0x1fd)](_0x50a34b(0x210),_0x2fd576['id']),logger['info']('[QUEUE]\x20Displaying\x20ticket\x20%s\x20to\x20agent\x20%s.\x20Integration\x20account\x20type\x20%s.',_0x2fd576['id'],_0x26b26b[_0x50a34b(0x1c9)],_0xa26310['type']);switch(_0xa26310['type']){case _0x50a34b(0x1f9):emit(util[_0x50a34b(0x207)]('user:%s',_0x26b26b[_0x50a34b(0x1c9)]),_0x50a34b(0x1b5),{'recordId':_0x2fd576['id']});break;case'newTab':emit(util[_0x50a34b(0x207)](_0x50a34b(0x214),_0x26b26b[_0x50a34b(0x1c9)]),_0x50a34b(0x1f7),{'uri':util[_0x50a34b(0x207)]('%s/%s/e',_0x1c2bbc[_0x50a34b(0x1fb)],_0x2fd576['id'])});break;default:logger[_0x50a34b(0x1ba)](_0x50a34b(0x1e8));}})['catch'](function(_0x4fd995){const _0x5c1d3c=_0x4b1f0e;logger['error'](_0x5c1d3c(0x1bb),JSON[_0x5c1d3c(0x1c0)](_0x4fd995));});},exports['outbound']=function(_0x3cc101,_0x3f7dbe,_0x555260,_0x2a37b4,_0x363e5a,_0x23f5a2,_0x30d4ad){const _0x6b35b2=a1305_0x930d2c;let _0x4c4774,_0xcaf4f,_0x124b1e,_0x48b8f4;return _0x23f5a2[_0x6b35b2(0x1f1)]=intUtil[_0x6b35b2(0x1b6)](_0x23f5a2[_0x6b35b2(0x1f1)]),_0x23f5a2[_0x6b35b2(0x1f6)]=intUtil[_0x6b35b2(0x1b6)](_0x23f5a2['remoteUri']),_0x30d4ad&&_0x30d4ad[_0x6b35b2(0x1ed)]&&_0x30d4ad[_0x6b35b2(0x1ed)]!==_0x6b35b2(0x20f)&&(logger[_0x6b35b2(0x1fd)](_0x6b35b2(0x1e4),_0x6b35b2(0x203)),_0x3f7dbe['recordingURL']=util[_0x6b35b2(0x207)](_0x6b35b2(0x1c3),_0x23f5a2[_0x6b35b2(0x1f1)],_0x3f7dbe[_0x6b35b2(0x1c4)],md5(_0x3f7dbe[_0x6b35b2(0x1c4)]))),getConnection(_0x23f5a2)[_0x6b35b2(0x206)](function(_0x498b45){const _0x339a6c=_0x6b35b2;return _0x48b8f4=_0x498b45,getUser(_0x23f5a2,_0x2a37b4[_0x339a6c(0x1d0)],_0x48b8f4);})[_0x6b35b2(0x206)](function(_0x2a6db0){const _0x32900d=_0x6b35b2;return _0x4c4774=_0x2a6db0,getEndUser(_0x23f5a2,_0x555260,_0x3f7dbe[_0x32900d(0x1da)],_0x3f7dbe[_0x32900d(0x1cb)],_0x48b8f4);})[_0x6b35b2(0x206)](function(_0x335f85){const _0x24f687=_0x6b35b2;return _0xcaf4f=_0x335f85,getTicket(_0x23f5a2,_0x4c4774,_0xcaf4f,_0x555260,_0x3f7dbe,_0x555260[_0x24f687(0x20e)],_0x48b8f4,_0x24f687(0x211));})[_0x6b35b2(0x206)](function(_0x49637d){const _0x580378=_0x6b35b2;_0x124b1e=_0x49637d,logger['info'](_0x580378(0x202),_0x124b1e['id']),logger['info'](_0x580378(0x1c8),_0x124b1e['id'],_0x2a37b4[_0x580378(0x1c9)],_0x23f5a2[_0x580378(0x205)]);switch(_0x23f5a2[_0x580378(0x205)]){case _0x580378(0x1f9):emit(util[_0x580378(0x207)](_0x580378(0x214),_0x2a37b4[_0x580378(0x1c9)]),_0x580378(0x1b5),{'recordId':_0x124b1e['id']});break;case'newTab':emit(util[_0x580378(0x207)](_0x580378(0x214),_0x2a37b4[_0x580378(0x1c9)]),_0x580378(0x1f7),{'uri':util['format'](_0x580378(0x1fe),_0x48b8f4[_0x580378(0x1fb)],_0x124b1e['id'])});break;default:logger[_0x580378(0x1ba)](_0x580378(0x1e4),_0x580378(0x1db));}})['catch'](function(_0x4c9e7f){const _0x579bb6=_0x6b35b2;logger[_0x579bb6(0x1ba)](_0x579bb6(0x1e4),JSON[_0x579bb6(0x1c0)](_0x4c9e7f));});},exports[a1305_0x930d2c(0x1dd)]=function(_0xe882eb,_0x3d4da3,_0x29afd7,_0x5b48cf,_0x5b8ccd,_0x327fd5){const _0xd29b41=a1305_0x930d2c;let _0x2ac97a,_0x2a555e,_0x2399c1,_0x4137f1;return _0x327fd5[_0xd29b41(0x1f1)]=intUtil[_0xd29b41(0x1b6)](_0x327fd5[_0xd29b41(0x1f1)]),_0x327fd5['remoteUri']=intUtil[_0xd29b41(0x1b6)](_0x327fd5[_0xd29b41(0x1f6)]),_0x5b8ccd&&_0x5b8ccd[_0xd29b41(0x1de)]?(logger[_0xd29b41(0x1fd)]('['+_0x3d4da3[_0xd29b41(0x1c2)]['toUpperCase']()+']',_0xd29b41(0x203)),_0x3d4da3[_0xd29b41(0x20b)]=util[_0xd29b41(0x207)](_0xd29b41(0x1c3),_0x327fd5[_0xd29b41(0x1f1)],_0x3d4da3['uniqueid'],md5(_0x3d4da3[_0xd29b41(0x1c4)]))):_0x3d4da3[_0xd29b41(0x20b)]='',getConnection(_0x327fd5)[_0xd29b41(0x206)](function(_0x56e1b7){return _0x4137f1=_0x56e1b7,!_['isNil'](_0x5b48cf)?getUser(_0x327fd5,_0x5b48cf['name'],_0x4137f1):getUser(_0x327fd5,null,_0x4137f1);})[_0xd29b41(0x206)](function(_0x3f60d2){const _0x476167=_0xd29b41;return _0x2ac97a=_0x3f60d2,getEndUser(_0x327fd5,_0x29afd7,_0x3d4da3[_0x476167(0x1f8)],_0x3d4da3[_0x476167(0x209)],_0x4137f1);})['then'](function(_0x1a849d){const _0x2e705a=_0xd29b41;return _0x2a555e=_0x1a849d,getTicket(_0x327fd5,_0x2ac97a,_0x2a555e,_0x29afd7,_0x3d4da3,_0x29afd7[_0x2e705a(0x20e)],_0x4137f1);})[_0xd29b41(0x206)](function(_0x44fb39){const _0x40526e=_0xd29b41;_0x2399c1=_0x44fb39,logger[_0x40526e(0x1fd)]('['+_0x3d4da3['lastevent'][_0x40526e(0x20d)]()+_0x40526e(0x1d5),_0x2399c1['id']),logger[_0x40526e(0x1fd)]('['+_0x3d4da3['lastevent'][_0x40526e(0x20d)]()+_0x40526e(0x215),_0x327fd5['type']);})[_0xd29b41(0x1f4)](function(_0x4ef2af){const _0x451818=_0xd29b41;logger['error']('['+_0x3d4da3[_0x451818(0x1c2)]['toUpperCase']()+']',JSON[_0x451818(0x1c0)](_0x4ef2af));});}; \ 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 e5fdbcb..8389efb 100644 --- a/server/services/ami/trigger/integration/servicenow.js +++ b/server/services/ami/trigger/integration/servicenow.js @@ -1 +1 @@ -const a1142_0x4caf=['validateEmail','remoteUri',']\x20Error\x20running\x20ServiceNow\x20integration','idField','md5','endUserId','The\x20ticket\x20ID\x20is:\x20%s','user:%s','length','callDirection','adminId','calleridnum','result','uniqueid','string','ticketNumber','type','outbound','sys_user?sysparm_query=phone%3D','System','/nav_to.do?uri=incident.do?sys_id%3D','[QUEUE]','lodash','toLowerCase','],\x20createEndUser\x20input\x20crm','queue','Displaying\x20call\x20in\x20a\x20new\x20tab...','name','sys_user?sysparm_query=user_name%3Dadmin','destcalleridnum','assign','%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s','sys_user?sysparm_query=email%3D','toString','sysparm_limit=1','],\x20EndUser\x20schema','format','emit','message','customField','%s/api/now/table/','recordingFormat','getString','endUserNumber','call\x20direction:\x20%s','],\x20getUser\x20input\x20crm','],\x20getUser\x20crm',']\x20using\x20admin\x20profile','%255EORDERBYDESCnumber','active','nameField',']\x20getTicket\x20crm','incident','user','./util','variableName','GET','recordingURL','catch','variable','userEmail','toUpperCase','isNil','unmanaged','../../../../config/logger','util','ticketId','%26sysparm_record_row%3D1%26sysparm_record_rows%3D39','info','],\x20getUser\x20entity','serverUrl','Fields','],\x20getUser\x20rp\x20obj','servicenow','true','request-promise-native','%26sysparm_record_list%3Dactive%253Dtrue','customVariable','POST','%26sysparm_record_target%3Dincident',']\x20POST\x20incident\x20entity\x20schema','stripTrailingSlash','Variable','content','],\x20getEndUser\x20input\x20crm','monitor_format','Recording\x20is\x20enabled!','then','Descriptions','sys_id','forEach','userId','error','email','adminEmail'];(function(_0x1a737d,_0x4caf5a){const _0x57d4ca=function(_0xe1232b){while(--_0xe1232b){_0x1a737d['push'](_0x1a737d['shift']());}};_0x57d4ca(++_0x4caf5a);}(a1142_0x4caf,0x11c));const a1142_0x57d4=function(_0x1a737d,_0x4caf5a){_0x1a737d=_0x1a737d-0x0;let _0x57d4ca=a1142_0x4caf[_0x1a737d];return _0x57d4ca;};const _0x33d02f=a1142_0x57d4;'use strict';const _=require(_0x33d02f('0x17')),rp=require(_0x33d02f('0x4c')),util=require(_0x33d02f('0x42')),md5=require(_0x33d02f('0x5')),intUtil=require(_0x33d02f('0x37')),logger=require(_0x33d02f('0x41'))(_0x33d02f('0x4a')),{getSocket}=require('../../../../rediscache'),io=getSocket();function getAdminUser(_0xe1232b,_0x59d9d1,_0x349de8,_0x5e8030,_0x172cd6,_0x1e33f6){return new Promise(function(_0x2f9354,_0x47315e){const _0x2864fd=a1142_0x57d4,_0x3fe155={'method':_0x2864fd('0x39'),'uri':_0x5e8030+_0x2864fd('0x1d')+'&'+_0x172cd6+'&'+_0x1e33f6,'auth':_0x59d9d1,'json':!![]};return rp(_0x3fe155)['then'](function(_0x4ba301){const _0x3a708d=_0x2864fd;_0x4ba301[_0x3a708d('0xd')][_0x3a708d('0x9')]>0x0&&(_0x349de8[_0x3a708d('0xb')]=_0x4ba301[_0x3a708d('0xd')][0x0][_0x3a708d('0x5a')]),logger[_0x3a708d('0x45')]('['+[_0xe1232b[_0x3a708d('0x3e')]()]+'],\x20getAdminUser\x20crm',_0x349de8),_0x2f9354(_0x349de8);})[_0x2864fd('0x3b')](function(_0x49c67e){const _0x156f62=_0x2864fd;logger['error']('['+[_0xe1232b[_0x156f62('0x3e')]()]+']',_0x49c67e[_0x156f62('0x27')]),_0x47315e(_0x49c67e[_0x156f62('0x27')]);});});}function getUser(_0x3641c3,_0x41f4b2,_0x26b983,_0xbb2cbc,_0x5dad4b){return function(_0x416618){const _0x51fcd4=a1142_0x57d4;return logger[_0x51fcd4('0x45')]('['+[_0x3641c3[_0x51fcd4('0x3e')]()]+_0x51fcd4('0x2e'),_0x416618),new Promise(function(_0x4a3580,_0x30baa3){const _0x29f7da=_0x51fcd4;if(intUtil[_0x29f7da('0x1')](_0x416618[_0x29f7da('0x3d')])){const _0x35486d={'method':_0x29f7da('0x39'),'uri':_0x26b983+_0x29f7da('0x21')+_0x416618[_0x29f7da('0x3d')]+'&'+_0xbb2cbc+'&'+_0x5dad4b,'auth':_0x41f4b2,'json':!![]};return logger[_0x29f7da('0x45')]('['+[_0x3641c3[_0x29f7da('0x3e')]()]+_0x29f7da('0x49'),_0x35486d),rp(_0x35486d)[_0x29f7da('0x58')](function(_0x3bd0cf){const _0x3c58bd=_0x29f7da;logger[_0x3c58bd('0x45')]('['+[_0x3641c3[_0x3c58bd('0x3e')]()]+_0x3c58bd('0x46'),_0x3bd0cf),_0x3bd0cf[_0x3c58bd('0xd')][_0x3c58bd('0x9')]>0x0&&String(_0x3bd0cf['result'][0x0][_0x3c58bd('0x32')])===_0x3c58bd('0x4b')?_0x416618[_0x3c58bd('0x5c')]=_0x3bd0cf[_0x3c58bd('0xd')][0x0][_0x3c58bd('0x5a')]:(_0x416618['userId']=_0x416618[_0x3c58bd('0xb')],_0x416618[_0x3c58bd('0x3d')]=_0x416618[_0x3c58bd('0x0')]),logger[_0x3c58bd('0x45')]('['+[_0x3641c3[_0x3c58bd('0x3e')]()]+_0x3c58bd('0x2f'),_0x416618),_0x4a3580(_0x416618);})[_0x29f7da('0x3b')](function(_0x5a7b16){const _0x1d5a4c=_0x29f7da;logger['error']('['+[_0x3641c3[_0x1d5a4c('0x3e')]()]+']',_0x5a7b16[_0x1d5a4c('0x27')]),_0x30baa3(_0x5a7b16['message']);});}else logger['info']('['+[_0x3641c3[_0x29f7da('0x3e')]()]+_0x29f7da('0x30')),_0x416618[_0x29f7da('0x5c')]=_0x416618[_0x29f7da('0xb')],_0x416618[_0x29f7da('0x3d')]=_0x416618[_0x29f7da('0x0')],_0x4a3580(_0x416618);});};}function createEndUser(_0x39effd,_0x39fcb6,_0x7139c7,_0x195a80,_0x55562f){const _0xa9c3db=_0x33d02f;return logger[_0xa9c3db('0x45')]('['+[_0x39effd['toUpperCase']()]+_0xa9c3db('0x19'),_0x7139c7),new Promise(function(_0x4a9968,_0x3266d3){const _0x1824a4=_0xa9c3db,_0x55ef0b={'method':_0x1824a4('0x4f'),'uri':_0x195a80+'sys_user?'+_0x55562f,'body':{'user_name':_0x7139c7[_0x1824a4('0x2c')],'roles':_0x1824a4('0x36'),'first_name':_0x7139c7[_0x1824a4('0x2c')],'active':'true','date_format':_0x1824a4('0x14'),'phone':_0x7139c7[_0x1824a4('0x2c')]},'auth':_0x39fcb6,'json':!![]};return rp(_0x55ef0b)[_0x1824a4('0x58')](function(_0x88fbb1){const _0x2b688d=_0x1824a4;logger[_0x2b688d('0x45')]('['+[_0x39effd[_0x2b688d('0x3e')]()]+_0x2b688d('0x24'),_0x88fbb1['result']),_0x7139c7[_0x2b688d('0x6')]=_0x88fbb1['result'][_0x2b688d('0x5a')],_0x4a9968(_0x7139c7);})[_0x1824a4('0x3b')](function(_0x108c34){const _0x5f35d0=_0x1824a4;logger[_0x5f35d0('0x5d')]('['+[_0x39effd[_0x5f35d0('0x3e')]()]+']',_0x108c34[_0x5f35d0('0x27')]),_0x3266d3(_0x108c34['message']);});});}function getEndUser(_0x2d27ef,_0x29201d,_0x32236f,_0x388491,_0x1d0735){return function(_0x50d90d){const _0x2a1594=a1142_0x57d4;return logger[_0x2a1594('0x45')]('['+[_0x2d27ef[_0x2a1594('0x3e')]()]+_0x2a1594('0x55'),_0x50d90d),new Promise(function(_0x2941e0,_0xb6ac72){const _0x43e08a=_0x2a1594,_0x5b7718={'method':_0x43e08a('0x39'),'uri':_0x32236f+_0x43e08a('0x13')+_0x50d90d['endUserNumber']+'&'+_0x388491+'&'+_0x1d0735,'auth':_0x29201d,'json':!![]};return rp(_0x5b7718)[_0x43e08a('0x58')](function(_0x13759c){const _0x47d7f8=_0x43e08a;if(_0x13759c[_0x47d7f8('0xd')][_0x47d7f8('0x9')]>0x0)_0x50d90d[_0x47d7f8('0x6')]=_0x13759c[_0x47d7f8('0xd')][0x0][_0x47d7f8('0x5a')],logger[_0x47d7f8('0x45')]('['+[_0x2d27ef[_0x47d7f8('0x3e')]()]+'],\x20getEndUser\x20crm',_0x50d90d),_0x2941e0(_0x50d90d);else return createEndUser(_0x2d27ef,_0x29201d,_0x50d90d,_0x32236f,_0x388491)['then'](function(_0x3f2515){const _0x30d77f=_0x47d7f8;logger[_0x30d77f('0x45')]('['+[_0x2d27ef[_0x30d77f('0x3e')]()]+'],\x20createEndUser\x20crm',_0x3f2515),_0x2941e0(_0x3f2515);});})['catch'](function(_0xde97ea){const _0x4d2774=_0x43e08a;logger[_0x4d2774('0x5d')]('['+[_0x2d27ef[_0x4d2774('0x3e')]()]+']',_0xde97ea[_0x4d2774('0x27')]),_0xb6ac72(_0xde97ea[_0x4d2774('0x27')]);});});};}function getCustomFields(_0x160e16,_0x2a59c8){const _0x5cccf4=_0x33d02f,_0x254dbb={};return _0x160e16[_0x5cccf4('0x9')]>0x0&&_[_0x5cccf4('0x5b')](_0x160e16,function(_0x2ef597){const _0x451f30=_0x5cccf4;if(_0x2ef597[_0x451f30('0x11')]===_0x451f30('0xf')&&_0x2ef597[_0x451f30('0x33')]&&!_0x2ef597['customField'])_0x254dbb[_0x2ef597[_0x451f30('0x4')][_0x451f30('0x18')]()]=_0x2ef597[_0x451f30('0x54')][_0x451f30('0x22')]();else{if(_0x2ef597[_0x451f30('0x11')]==='string'&&_0x2ef597[_0x451f30('0x4')]&&_0x2ef597[_0x451f30('0x28')])_0x254dbb[_0x2ef597['idField'][_0x451f30('0x18')]()]=_0x2ef597['content'][_0x451f30('0x22')]();else{if(_0x2ef597[_0x451f30('0x11')]===_0x451f30('0x3c')&&_0x2ef597['variableName']&&_0x2ef597[_0x451f30('0x4')]&&_0x2ef597[_0x451f30('0x28')])_0x254dbb[_0x2ef597['idField'][_0x451f30('0x18')]()]=_0x2a59c8[_0x2ef597[_0x451f30('0x38')]]['toString']();else _0x2ef597[_0x451f30('0x11')]===_0x451f30('0x4e')&&_0x2ef597[_0x451f30('0x53')]&&_0x2ef597[_0x451f30('0x53')][_0x451f30('0x1c')]&&_0x2ef597['idField']&&_0x2ef597[_0x451f30('0x28')]&&(_0x254dbb[_0x2ef597[_0x451f30('0x4')][_0x451f30('0x18')]()]=_0x2a59c8[_0x2ef597[_0x451f30('0x53')][_0x451f30('0x1c')]['toLowerCase']()]['toString']());}}}),_0x254dbb;}function getTicket(_0x3c0ed9,_0x30199a,_0x2ac830,_0x416d96,_0x49d713,_0x14daf4){return function(_0x5b820c){const _0x3a3fd1=a1142_0x57d4;return logger[_0x3a3fd1('0x45')]('['+[_0x3c0ed9[_0x3a3fd1('0x3e')]()]+']\x20getTicket\x20input\x20crm',_0x5b820c),new Promise(function(_0x422ffa,_0x58465e){const _0x14281d=_0x3a3fd1,_0x2dec38=_0x3c0ed9['toLowerCase']()===_0x14281d('0x12')?_0x5b820c['userId']:_0x5b820c[_0x14281d('0x6')],_0x585777={'method':'POST','uri':_0x2ac830+_0x14281d('0x35')+'?'+_0x14daf4,'body':Object[_0x14281d('0x1f')]({},{'active':_0x14281d('0x4b'),'caller_id':_0x2dec38,'assigned_to':_0x5b820c[_0x14281d('0x5c')],'short_description':intUtil[_0x14281d('0x2b')](_0x416d96['Subjects'],_0x49d713,'\x20'),'description':intUtil['getString'](_0x416d96[_0x14281d('0x59')],_0x49d713,'\x0a')},getCustomFields(_0x416d96[_0x14281d('0x48')],_0x49d713)),'auth':_0x30199a,'json':!![]};return rp(_0x585777)[_0x14281d('0x58')](function(_0xda0fda){const _0x134279=_0x14281d;logger[_0x134279('0x45')]('['+[_0x3c0ed9[_0x134279('0x3e')]()]+_0x134279('0x51'),_0xda0fda['result']),_0x5b820c[_0x134279('0x43')]=_0xda0fda[_0x134279('0xd')]['sys_id'],_0x5b820c[_0x134279('0x10')]=_0xda0fda[_0x134279('0xd')]['number'],logger[_0x134279('0x45')]('['+[_0x3c0ed9[_0x134279('0x3e')]()]+_0x134279('0x34'),_0x5b820c),_0x422ffa(_0x5b820c);})[_0x14281d('0x3b')](function(_0x96436d){const _0x658fab=_0x14281d;logger['error']('['+[_0x3c0ed9[_0x658fab('0x3e')]()]+']',_0x96436d[_0x658fab('0x27')]),_0x58465e(_0x96436d[_0x658fab('0x27')]);});});};}function emit(_0x5b0794,_0x505fd7,_0x13aba2){const _0x3026c7=_0x33d02f,_0x27d1a0=_0x3026c7('0x50')+_0x3026c7('0x44')+_0x3026c7('0x4d')+_0x3026c7('0x31'),_0x483b1f={'uri':_0x5b0794+_0x3026c7('0x15')+_0x13aba2+_0x27d1a0};io['to'](util[_0x3026c7('0x25')](_0x3026c7('0x8'),_0x505fd7))[_0x3026c7('0x26')]('trigger:browser:url',_0x483b1f);}exports['cs']=function(_0x550ea0,_0x3b9c62,_0x49e001,_0x2eeb29,_0x2dfd22,_0x10ceaa,_0x141098,_0x59865d){const _0x357a49=_0x33d02f,_0x5b374e={},_0x4bc179={'user':_0x10ceaa['username'],'pass':_0x10ceaa['password']},_0x696bd6=_0x357a49('0x23'),_0x47f9a7='sysparm_display_value=true';_0x10ceaa[_0x357a49('0x2')]=intUtil[_0x357a49('0x52')](_0x10ceaa['remoteUri']),_0x10ceaa[_0x357a49('0x47')]=intUtil['stripTrailingSlash'](_0x10ceaa[_0x357a49('0x47')]);const _0x249e69=util[_0x357a49('0x25')](_0x357a49('0x29'),_0x10ceaa['remoteUri']);_0x5b374e[_0x357a49('0x3d')]=!_[_0x357a49('0x3f')](_0x2eeb29)?_0x2eeb29[_0x357a49('0x5e')]:null,_0x5b374e[_0x357a49('0x0')]=_0x10ceaa[_0x357a49('0x5e')],_0x5b374e['endUserNumber']=_0x59865d[_0x357a49('0x18')]()===_0x357a49('0x12')?_0x3b9c62[_0x357a49('0x1e')]:_0x3b9c62[_0x357a49('0xc')],_0x5b374e[_0x357a49('0xa')]=_0x59865d==='queue'||_0x59865d===_0x357a49('0x40')?_0x357a49('0x1a'):'outbound';const _0x3eff91=util[_0x357a49('0x25')](_0x357a49('0x20'),_0x10ceaa[_0x357a49('0x47')],_0x3b9c62[_0x357a49('0xe')],md5(_0x3b9c62[_0x357a49('0xe')]));if(_0x2dfd22&&_0x2dfd22[_0x357a49('0x56')])logger[_0x357a49('0x45')](_0x357a49('0x16'),'Recording\x20is\x20enabled!'),_0x3b9c62[_0x357a49('0x3a')]=_0x3eff91;else _0x141098&&_0x141098[_0x357a49('0x2a')]&&_0x141098[_0x357a49('0x2a')]!=='none'?(logger[_0x357a49('0x45')]('[OUTBOUND]',_0x357a49('0x57')),_0x3b9c62[_0x357a49('0x3a')]=_0x3eff91):_0x3b9c62[_0x357a49('0x3a')]='';return getAdminUser(_0x59865d,_0x4bc179,_0x5b374e,_0x249e69,_0x47f9a7,_0x696bd6)[_0x357a49('0x58')](getUser(_0x59865d,_0x4bc179,_0x249e69,_0x47f9a7,_0x696bd6))['then'](getEndUser(_0x59865d,_0x4bc179,_0x249e69,_0x47f9a7,_0x696bd6))[_0x357a49('0x58')](getTicket(_0x59865d,_0x4bc179,_0x249e69,_0x49e001,_0x3b9c62,_0x47f9a7))[_0x357a49('0x58')](function(_0x36a6ab){const _0x3568f0=_0x357a49;logger[_0x3568f0('0x45')](util[_0x3568f0('0x25')](_0x3568f0('0x7'),_0x36a6ab['ticketId'])),logger['info'](util[_0x3568f0('0x25')](_0x3568f0('0x2d'),_0x59865d)),_0x59865d!==_0x3568f0('0x40')&&(logger[_0x3568f0('0x45')]('['+[_0x59865d['toUpperCase']()]+']',_0x3568f0('0x1b')),emit(_0x10ceaa[_0x3568f0('0x2')],_0x2eeb29[_0x3568f0('0x1c')],_0x36a6ab[_0x3568f0('0x43')]));})[_0x357a49('0x3b')](function(_0x50347b){const _0x5b255a=_0x357a49;logger['error']('['+[_0x59865d[_0x5b255a('0x3e')]()]+_0x5b255a('0x3'),util['inspect'](_0x50347b,{'showHidden':!![],'depth':null}));});}; \ No newline at end of file +const a1306_0x3e59=['],\x20getUser\x20entity','adminEmail','info','],\x20getUser\x20input\x20crm','type','recordingFormat','sys_id','%26sysparm_record_row%3D1%26sysparm_record_rows%3D39','message','idField','error','lodash','password','util','uniqueid','endUserId','incident','getString','customField','sysparm_display_value=true','destcalleridnum','],\x20getAdminUser\x20crm',']\x20Error\x20running\x20ServiceNow\x20integration','result','sys_user?sysparm_query=user_name%3Dadmin','%s/api/now/table/','queue',']\x20getTicket\x20crm','The\x20ticket\x20ID\x20is:\x20%s','inspect','Variable','toUpperCase','length','variable','GET','recordingURL','format','catch','monitor_format','],\x20getUser\x20rp\x20obj','name','true','toLowerCase','unmanaged','%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s','user','endUserNumber','serverUrl','sys_user?sysparm_query=email%3D','remoteUri','number','stripTrailingSlash',']\x20POST\x20incident\x20entity\x20schema','active','validateEmail','isNil','/nav_to.do?uri=incident.do?sys_id%3D','adminId','Recording\x20is\x20enabled!','assign','],\x20createEndUser\x20input\x20crm','user:%s','Fields','userId','variableName','then','%26sysparm_record_list%3Dactive%253Dtrue','ticketId','ticketNumber','outbound','none','content',']\x20using\x20admin\x20profile','./util','],\x20getEndUser\x20crm','md5','string','toString','call\x20direction:\x20%s','],\x20EndUser\x20schema','nameField','userEmail','%255EORDERBYDESCnumber','email','../../../../config/logger',']\x20getTicket\x20input\x20crm','[OUTBOUND]','callDirection','emit','],\x20getUser\x20crm'];(function(_0x13a852,_0x550d15){const _0x3e5968=function(_0x5cf74d){while(--_0x5cf74d){_0x13a852['push'](_0x13a852['shift']());}};_0x3e5968(++_0x550d15);}(a1306_0x3e59,0xf7));const a1306_0x5cf7=function(_0x13a852,_0x550d15){_0x13a852=_0x13a852-0x1d4;let _0x3e5968=a1306_0x3e59[_0x13a852];return _0x3e5968;};const a1306_0x40bca0=a1306_0x5cf7;'use strict';const _=require(a1306_0x40bca0(0x1f6)),rp=require('request-promise-native'),util=require(a1306_0x40bca0(0x1f8)),md5=require(a1306_0x40bca0(0x1dc)),intUtil=require(a1306_0x40bca0(0x1da)),logger=require(a1306_0x40bca0(0x1e5))('servicenow'),{getSocket}=require('../../../../rediscache'),io=getSocket();function getAdminUser(_0x6da96e,_0x2aa986,_0x210cef,_0x4e1ab2,_0x1ee40,_0xcdad10){return new Promise(function(_0x3a4ae5,_0x1dce54){const _0x1c95cf=a1306_0x5cf7,_0x410e8a={'method':'GET','uri':_0x4e1ab2+_0x1c95cf(0x203)+'&'+_0x1ee40+'&'+_0xcdad10,'auth':_0x2aa986,'json':!![]};return rp(_0x410e8a)[_0x1c95cf(0x22c)](function(_0x74eaae){const _0x2af3a3=_0x1c95cf;_0x74eaae[_0x2af3a3(0x202)][_0x2af3a3(0x20b)]>0x0&&(_0x210cef[_0x2af3a3(0x224)]=_0x74eaae['result'][0x0]['sys_id']),logger[_0x2af3a3(0x1ed)]('['+[_0x6da96e[_0x2af3a3(0x20a)]()]+_0x2af3a3(0x200),_0x210cef),_0x3a4ae5(_0x210cef);})[_0x1c95cf(0x210)](function(_0x471264){const _0x21b356=_0x1c95cf;logger[_0x21b356(0x1f5)]('['+[_0x6da96e['toUpperCase']()]+']',_0x471264[_0x21b356(0x1f3)]),_0x1dce54(_0x471264[_0x21b356(0x1f3)]);});});}function getUser(_0x54d98f,_0x349714,_0x748cb8,_0xcb2901,_0x1fe93d){return function(_0x166fa9){const _0x32f7ca=a1306_0x5cf7;return logger['info']('['+[_0x54d98f[_0x32f7ca(0x20a)]()]+_0x32f7ca(0x1ee),_0x166fa9),new Promise(function(_0x59be71,_0x3f49c9){const _0x5fb764=_0x32f7ca;if(intUtil[_0x5fb764(0x221)](_0x166fa9[_0x5fb764(0x1e2)])){const _0x54d9eb={'method':_0x5fb764(0x20d),'uri':_0x748cb8+_0x5fb764(0x21b)+_0x166fa9['userEmail']+'&'+_0xcb2901+'&'+_0x1fe93d,'auth':_0x349714,'json':!![]};return logger[_0x5fb764(0x1ed)]('['+[_0x54d98f[_0x5fb764(0x20a)]()]+_0x5fb764(0x212),_0x54d9eb),rp(_0x54d9eb)[_0x5fb764(0x22c)](function(_0x3e2ee7){const _0x2f3d75=_0x5fb764;logger[_0x2f3d75(0x1ed)]('['+[_0x54d98f[_0x2f3d75(0x20a)]()]+_0x2f3d75(0x1eb),_0x3e2ee7),_0x3e2ee7[_0x2f3d75(0x202)][_0x2f3d75(0x20b)]>0x0&&String(_0x3e2ee7['result'][0x0][_0x2f3d75(0x220)])==='true'?_0x166fa9[_0x2f3d75(0x22a)]=_0x3e2ee7[_0x2f3d75(0x202)][0x0][_0x2f3d75(0x1f1)]:(_0x166fa9['userId']=_0x166fa9[_0x2f3d75(0x224)],_0x166fa9[_0x2f3d75(0x1e2)]=_0x166fa9[_0x2f3d75(0x1ec)]),logger[_0x2f3d75(0x1ed)]('['+[_0x54d98f['toUpperCase']()]+_0x2f3d75(0x1ea),_0x166fa9),_0x59be71(_0x166fa9);})[_0x5fb764(0x210)](function(_0x2e34ed){const _0x56dd36=_0x5fb764;logger[_0x56dd36(0x1f5)]('['+[_0x54d98f[_0x56dd36(0x20a)]()]+']',_0x2e34ed[_0x56dd36(0x1f3)]),_0x3f49c9(_0x2e34ed['message']);});}else logger[_0x5fb764(0x1ed)]('['+[_0x54d98f[_0x5fb764(0x20a)]()]+_0x5fb764(0x1d9)),_0x166fa9[_0x5fb764(0x22a)]=_0x166fa9[_0x5fb764(0x224)],_0x166fa9[_0x5fb764(0x1e2)]=_0x166fa9[_0x5fb764(0x1ec)],_0x59be71(_0x166fa9);});};}function createEndUser(_0xcbd580,_0x170eee,_0x1b8038,_0x1383fb,_0x357b48){const _0x268e50=a1306_0x40bca0;return logger[_0x268e50(0x1ed)]('['+[_0xcbd580[_0x268e50(0x20a)]()]+_0x268e50(0x227),_0x1b8038),new Promise(function(_0x67cd50,_0x3914be){const _0x3be233=_0x268e50,_0xd80ccc={'method':'POST','uri':_0x1383fb+'sys_user?'+_0x357b48,'body':{'user_name':_0x1b8038['endUserNumber'],'roles':_0x3be233(0x218),'first_name':_0x1b8038[_0x3be233(0x219)],'active':_0x3be233(0x214),'date_format':'System','phone':_0x1b8038[_0x3be233(0x219)]},'auth':_0x170eee,'json':!![]};return rp(_0xd80ccc)[_0x3be233(0x22c)](function(_0x407696){const _0x9b59c1=_0x3be233;logger[_0x9b59c1(0x1ed)]('['+[_0xcbd580[_0x9b59c1(0x20a)]()]+_0x9b59c1(0x1e0),_0x407696['result']),_0x1b8038[_0x9b59c1(0x1fa)]=_0x407696['result']['sys_id'],_0x67cd50(_0x1b8038);})[_0x3be233(0x210)](function(_0xe65784){const _0x23a450=_0x3be233;logger[_0x23a450(0x1f5)]('['+[_0xcbd580[_0x23a450(0x20a)]()]+']',_0xe65784['message']),_0x3914be(_0xe65784[_0x23a450(0x1f3)]);});});}function getEndUser(_0x4d93ab,_0x39d2a2,_0x416bc8,_0x45bbf7,_0x2647f7){return function(_0x1664ac){return logger['info']('['+[_0x4d93ab['toUpperCase']()]+'],\x20getEndUser\x20input\x20crm',_0x1664ac),new Promise(function(_0x120375,_0x40fed1){const _0x2bb7e9=a1306_0x5cf7,_0x92ff4a={'method':'GET','uri':_0x416bc8+'sys_user?sysparm_query=phone%3D'+_0x1664ac[_0x2bb7e9(0x219)]+'&'+_0x45bbf7+'&'+_0x2647f7,'auth':_0x39d2a2,'json':!![]};return rp(_0x92ff4a)[_0x2bb7e9(0x22c)](function(_0x4bf288){const _0x1dd591=_0x2bb7e9;if(_0x4bf288[_0x1dd591(0x202)][_0x1dd591(0x20b)]>0x0)_0x1664ac[_0x1dd591(0x1fa)]=_0x4bf288[_0x1dd591(0x202)][0x0]['sys_id'],logger[_0x1dd591(0x1ed)]('['+[_0x4d93ab[_0x1dd591(0x20a)]()]+_0x1dd591(0x1db),_0x1664ac),_0x120375(_0x1664ac);else return createEndUser(_0x4d93ab,_0x39d2a2,_0x1664ac,_0x416bc8,_0x45bbf7)['then'](function(_0x5e3920){const _0xc90251=_0x1dd591;logger['info']('['+[_0x4d93ab[_0xc90251(0x20a)]()]+'],\x20createEndUser\x20crm',_0x5e3920),_0x120375(_0x5e3920);});})['catch'](function(_0x3b0c8c){const _0x3292ca=_0x2bb7e9;logger[_0x3292ca(0x1f5)]('['+[_0x4d93ab[_0x3292ca(0x20a)]()]+']',_0x3b0c8c[_0x3292ca(0x1f3)]),_0x40fed1(_0x3b0c8c[_0x3292ca(0x1f3)]);});});};}function getCustomFields(_0x2ae845,_0x3d2718){const _0x1f57ff=a1306_0x40bca0,_0x914c51={};return _0x2ae845[_0x1f57ff(0x20b)]>0x0&&_['forEach'](_0x2ae845,function(_0xc7d7b1){const _0x5af63a=_0x1f57ff;if(_0xc7d7b1[_0x5af63a(0x1ef)]===_0x5af63a(0x1dd)&&_0xc7d7b1[_0x5af63a(0x1e1)]&&!_0xc7d7b1[_0x5af63a(0x1fd)])_0x914c51[_0xc7d7b1[_0x5af63a(0x1f4)][_0x5af63a(0x215)]()]=_0xc7d7b1['content'][_0x5af63a(0x1de)]();else{if(_0xc7d7b1[_0x5af63a(0x1ef)]===_0x5af63a(0x1dd)&&_0xc7d7b1[_0x5af63a(0x1f4)]&&_0xc7d7b1['customField'])_0x914c51[_0xc7d7b1[_0x5af63a(0x1f4)][_0x5af63a(0x215)]()]=_0xc7d7b1[_0x5af63a(0x1d8)]['toString']();else{if(_0xc7d7b1[_0x5af63a(0x1ef)]===_0x5af63a(0x20c)&&_0xc7d7b1[_0x5af63a(0x22b)]&&_0xc7d7b1[_0x5af63a(0x1f4)]&&_0xc7d7b1[_0x5af63a(0x1fd)])_0x914c51[_0xc7d7b1[_0x5af63a(0x1f4)][_0x5af63a(0x215)]()]=_0x3d2718[_0xc7d7b1[_0x5af63a(0x22b)]][_0x5af63a(0x1de)]();else _0xc7d7b1['type']==='customVariable'&&_0xc7d7b1[_0x5af63a(0x209)]&&_0xc7d7b1[_0x5af63a(0x209)][_0x5af63a(0x213)]&&_0xc7d7b1[_0x5af63a(0x1f4)]&&_0xc7d7b1[_0x5af63a(0x1fd)]&&(_0x914c51[_0xc7d7b1[_0x5af63a(0x1f4)][_0x5af63a(0x215)]()]=_0x3d2718[_0xc7d7b1[_0x5af63a(0x209)]['name'][_0x5af63a(0x215)]()][_0x5af63a(0x1de)]());}}}),_0x914c51;}function getTicket(_0x5a120a,_0x52abcb,_0x4f14a0,_0x6b9510,_0x111ebb,_0x286188){return function(_0x993727){const _0x48ebf2=a1306_0x5cf7;return logger[_0x48ebf2(0x1ed)]('['+[_0x5a120a[_0x48ebf2(0x20a)]()]+_0x48ebf2(0x1e6),_0x993727),new Promise(function(_0x52df9d,_0x8c1881){const _0x300a57=_0x48ebf2,_0x539b0b=_0x5a120a[_0x300a57(0x215)]()===_0x300a57(0x1d6)?_0x993727[_0x300a57(0x22a)]:_0x993727['endUserId'],_0x3241e2={'method':'POST','uri':_0x4f14a0+_0x300a57(0x1fb)+'?'+_0x286188,'body':Object[_0x300a57(0x226)]({},{'active':_0x300a57(0x214),'caller_id':_0x539b0b,'assigned_to':_0x993727[_0x300a57(0x22a)],'short_description':intUtil['getString'](_0x6b9510['Subjects'],_0x111ebb,'\x20'),'description':intUtil[_0x300a57(0x1fc)](_0x6b9510['Descriptions'],_0x111ebb,'\x0a')},getCustomFields(_0x6b9510[_0x300a57(0x229)],_0x111ebb)),'auth':_0x52abcb,'json':!![]};return rp(_0x3241e2)[_0x300a57(0x22c)](function(_0x2d0d69){const _0x29f698=_0x300a57;logger[_0x29f698(0x1ed)]('['+[_0x5a120a['toUpperCase']()]+_0x29f698(0x21f),_0x2d0d69[_0x29f698(0x202)]),_0x993727[_0x29f698(0x1d4)]=_0x2d0d69[_0x29f698(0x202)][_0x29f698(0x1f1)],_0x993727[_0x29f698(0x1d5)]=_0x2d0d69[_0x29f698(0x202)][_0x29f698(0x21d)],logger[_0x29f698(0x1ed)]('['+[_0x5a120a[_0x29f698(0x20a)]()]+_0x29f698(0x206),_0x993727),_0x52df9d(_0x993727);})[_0x300a57(0x210)](function(_0x365400){const _0x24a7a7=_0x300a57;logger[_0x24a7a7(0x1f5)]('['+[_0x5a120a[_0x24a7a7(0x20a)]()]+']',_0x365400[_0x24a7a7(0x1f3)]),_0x8c1881(_0x365400[_0x24a7a7(0x1f3)]);});});};}function emit(_0x37421d,_0x19732d,_0x4efb57){const _0xdac75c=a1306_0x40bca0,_0x2a6e18='%26sysparm_record_target%3Dincident'+_0xdac75c(0x1f2)+_0xdac75c(0x22d)+_0xdac75c(0x1e3),_0x45130a={'uri':_0x37421d+_0xdac75c(0x223)+_0x4efb57+_0x2a6e18};io['to'](util[_0xdac75c(0x20f)](_0xdac75c(0x228),_0x19732d))[_0xdac75c(0x1e9)]('trigger:browser:url',_0x45130a);}exports['cs']=function(_0x4d103a,_0x202e01,_0x38c122,_0x18e6d8,_0x4dba50,_0x5b0054,_0x167893,_0x5661c2){const _0x4b87e8=a1306_0x40bca0,_0x535f44={},_0x7d3126={'user':_0x5b0054['username'],'pass':_0x5b0054[_0x4b87e8(0x1f7)]},_0x23cda2='sysparm_limit=1',_0x382fdf=_0x4b87e8(0x1fe);_0x5b0054[_0x4b87e8(0x21c)]=intUtil['stripTrailingSlash'](_0x5b0054[_0x4b87e8(0x21c)]),_0x5b0054[_0x4b87e8(0x21a)]=intUtil[_0x4b87e8(0x21e)](_0x5b0054[_0x4b87e8(0x21a)]);const _0x4ac70a=util[_0x4b87e8(0x20f)](_0x4b87e8(0x204),_0x5b0054[_0x4b87e8(0x21c)]);_0x535f44[_0x4b87e8(0x1e2)]=!_[_0x4b87e8(0x222)](_0x18e6d8)?_0x18e6d8[_0x4b87e8(0x1e4)]:null,_0x535f44[_0x4b87e8(0x1ec)]=_0x5b0054[_0x4b87e8(0x1e4)],_0x535f44[_0x4b87e8(0x219)]=_0x5661c2[_0x4b87e8(0x215)]()===_0x4b87e8(0x1d6)?_0x202e01[_0x4b87e8(0x1ff)]:_0x202e01['calleridnum'],_0x535f44[_0x4b87e8(0x1e8)]=_0x5661c2==='queue'||_0x5661c2===_0x4b87e8(0x216)?_0x4b87e8(0x205):_0x4b87e8(0x1d6);const _0x3a23e5=util[_0x4b87e8(0x20f)](_0x4b87e8(0x217),_0x5b0054[_0x4b87e8(0x21a)],_0x202e01['uniqueid'],md5(_0x202e01[_0x4b87e8(0x1f9)]));if(_0x4dba50&&_0x4dba50[_0x4b87e8(0x211)])logger[_0x4b87e8(0x1ed)]('[QUEUE]','Recording\x20is\x20enabled!'),_0x202e01[_0x4b87e8(0x20e)]=_0x3a23e5;else _0x167893&&_0x167893[_0x4b87e8(0x1f0)]&&_0x167893[_0x4b87e8(0x1f0)]!==_0x4b87e8(0x1d7)?(logger[_0x4b87e8(0x1ed)](_0x4b87e8(0x1e7),_0x4b87e8(0x225)),_0x202e01['recordingURL']=_0x3a23e5):_0x202e01[_0x4b87e8(0x20e)]='';return getAdminUser(_0x5661c2,_0x7d3126,_0x535f44,_0x4ac70a,_0x382fdf,_0x23cda2)[_0x4b87e8(0x22c)](getUser(_0x5661c2,_0x7d3126,_0x4ac70a,_0x382fdf,_0x23cda2))['then'](getEndUser(_0x5661c2,_0x7d3126,_0x4ac70a,_0x382fdf,_0x23cda2))[_0x4b87e8(0x22c)](getTicket(_0x5661c2,_0x7d3126,_0x4ac70a,_0x38c122,_0x202e01,_0x382fdf))[_0x4b87e8(0x22c)](function(_0x382416){const _0x50d0c4=_0x4b87e8;logger[_0x50d0c4(0x1ed)](util['format'](_0x50d0c4(0x207),_0x382416[_0x50d0c4(0x1d4)])),logger['info'](util[_0x50d0c4(0x20f)](_0x50d0c4(0x1df),_0x5661c2)),_0x5661c2!==_0x50d0c4(0x216)&&(logger['info']('['+[_0x5661c2['toUpperCase']()]+']','Displaying\x20call\x20in\x20a\x20new\x20tab...'),emit(_0x5b0054['remoteUri'],_0x18e6d8['name'],_0x382416['ticketId']));})[_0x4b87e8(0x210)](function(_0x5d5aa3){const _0x43a356=_0x4b87e8;logger[_0x43a356(0x1f5)]('['+[_0x5661c2[_0x43a356(0x20a)]()]+_0x43a356(0x201),util[_0x43a356(0x208)](_0x5d5aa3,{'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 0f5d5bd..84d96b9 100644 --- a/server/services/ami/trigger/integration/sugarcrm.js +++ b/server/services/ami/trigger/integration/sugarcrm.js @@ -1 +1 @@ -const a1143_0x579a=['Inbound','Contacts','%s/index.php?action=ajaxui#ajaxUILoc=index.php%3Fmodule%3DCalls%26action%3DEditView%26record%3D%s','find','The\x20Ticket\x20ID\x20is:','date_start','name_value_list','password','toUpperCase','trigger:browser:url','unmanaged','error','%s/service/v4_1/rest.php','','POST','JSON','user_id','The\x20Enduser\x20ID\x20is:','[QUEUE]','parent_id','charAt','Caller\x20-\x20%s','push','idField','calleridname','destcalleridnum','The\x20User\x20ID\x20is:','get_entry_list','slice','destcalleridname','name','set_entry','stripTrailingSlash','toISOString','duration_hours','sessionID','../../../../config/logger','PLAIN','phone_home','entry_list','Enduser\x20created.','merge','user_name','resolve','request-promise-native','first_name','info','created_by','get_server_info','%s/#bwc/index.php?module=Calls&action=EditView&record=%s','variableName','util','[OUTBOUND]','login','description','Fields','users','serverUrl','Enduser\x20found!','none','stringify','md5','Subjects','user:%s','isNil','contacts.phone_home\x20=\x20\x22%s\x22','catch','duration_minutes','replace','parent_type','Descriptions','format','lastevent','./util','length','Ticket\x20created!','parent_name','uri','getString','[HTTP]','Agent\x20found!','Searching\x20enduser\x20with\x20phone','Employees','%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s','recordingURL','monitor_format','emit','remoteUri','uniqueid','Account\x20%d\x20is\x20not\x20valid','Displaying\x20ticket\x20to\x20agent\x20in\x20a\x20new\x20tab...','Calls','direction','version','outbound','value','recordingFormat','then','../../../../rediscache','INSTR\x20(\x20users.user_name,\x20\x22%s\x22)\x20>\x200','Agent\x20not\x20found,\x20using\x20the\x20admin\x20account!','Recording\x20is\x20enabled!','contacts'];(function(_0x483e20,_0x579af4){const _0x54a85f=function(_0x188c30){while(--_0x188c30){_0x483e20['push'](_0x483e20['shift']());}};_0x54a85f(++_0x579af4);}(a1143_0x579a,0xff));const a1143_0x54a8=function(_0x483e20,_0x579af4){_0x483e20=_0x483e20-0x0;let _0x54a85f=a1143_0x579a[_0x483e20];return _0x54a85f;};const _0x34ad0a=a1143_0x54a8;'use strict';const _=require('lodash'),rp=require(_0x34ad0a('0x62')),md5=require(_0x34ad0a('0xc')),util=require(_0x34ad0a('0x2')),intUtil=require(_0x34ad0a('0x18')),logger=require(_0x34ad0a('0x5a'))('sugarcrm'),{getSocket}=require(_0x34ad0a('0x31')),io=getSocket(),def={'method':_0x34ad0a('0x44'),'json':!![]};function emit(_0x188c30,_0x37f4d7,_0x3dfbbc){const _0x3e314b=_0x34ad0a;io['to'](_0x188c30)[_0x3e314b('0x25')](_0x37f4d7,_0x3dfbbc);}function getTicket(_0x5218ab,_0x385cfd,_0x2bbd79,_0x37ee1a,_0x40b0f5,_0x1fbeb1,_0x3c58a7,_0x568613){const _0xdf3705=_0x34ad0a;logger[_0xdf3705('0x64')]('Creating\x20new\x20ticket...');const _0x4f1b26=new Date(),_0x190779=[{'name':_0xdf3705('0x54'),'value':intUtil[_0xdf3705('0x1d')](_0x37ee1a[_0xdf3705('0xd')],_0x40b0f5,'\x20')},{'name':'assigned_user_id','value':_0x385cfd['id']},{'name':_0xdf3705('0x65'),'value':_0x385cfd['id']},{'name':_0xdf3705('0x5'),'value':intUtil[_0xdf3705('0x1d')](_0x37ee1a[_0xdf3705('0x15')],_0x40b0f5,'\x0a')},{'name':_0xdf3705('0x3b'),'value':_0x4f1b26[_0xdf3705('0x57')]()[_0xdf3705('0x52')](0x0,0x13)[_0xdf3705('0x13')]('T','\x20')},{'name':_0xdf3705('0x58'),'value':'0'},{'name':_0xdf3705('0x12'),'value':'15'},{'name':_0xdf3705('0x49'),'value':_0x2bbd79['id']},{'name':_0xdf3705('0x14'),'value':_0xdf3705('0x37')},{'name':_0xdf3705('0x1b'),'value':_0x2bbd79[_0xdf3705('0x54')]},{'name':_0xdf3705('0x2b'),'value':_0x568613}];return _0x1fbeb1[_0xdf3705('0x19')]&&_['forEach'](_0x1fbeb1,function(_0x54c56e){const _0x389e96=_0xdf3705;_0x40b0f5[_0x54c56e[_0x389e96('0x1')]]&&_0x190779[_0x389e96('0x4c')]({'name':_0x54c56e[_0x389e96('0x4d')],'value':_0x40b0f5[_0x54c56e[_0x389e96('0x1')]]});}),request({'form':{'method':_0xdf3705('0x55'),'input_type':_0xdf3705('0x45'),'response_type':'JSON','rest_data':JSON[_0xdf3705('0xb')]({'session':_0x3c58a7['id'],'module_name':_0xdf3705('0x2a'),'name_value_list':_0x190779})}});}function getServerInfo(_0x3403c4){const _0x343190=_0x34ad0a;return request({'form':{'method':_0x343190('0x66'),'input_type':_0x343190('0x45'),'response_type':_0x343190('0x45'),'rest_data':JSON[_0x343190('0xb')]({'session':_0x3403c4['id']})}});}function getUser(_0x134b1f,_0x514cc9,_0x5e310c){const _0x14878d=_0x34ad0a;return!_[_0x14878d('0xf')](_0x514cc9)?(logger[_0x14878d('0x64')]('Getting\x20agent\x20with\x20name',_0x514cc9),request({'form':{'method':_0x14878d('0x51'),'input_type':_0x14878d('0x45'),'response_type':'JSON','rest_data':JSON[_0x14878d('0xb')]({'session':_0x5e310c['id'],'module_name':_0x14878d('0x21'),'query':util['format'](_0x14878d('0x32'),_0x514cc9),'order_by':'','offset':'0','select_fields':['id','name',_0x14878d('0x60')],'link_name_to_fields_array':[],'max_results':-0x1,'deleted':'0'})}})['then'](function(_0x41418c){const _0x111875=_0x14878d;if(_0x41418c['entry_list'][_0x111875('0x19')]){const _0x914134=_[_0x111875('0x39')](_0x41418c[_0x111875('0x5d')],function(_0x27564b){const _0x32e9fc=_0x111875;return _0x27564b[_0x32e9fc('0x3c')]['user_name'][_0x32e9fc('0x2e')]===_0x514cc9;});if(_0x914134)return logger['info'](_0x111875('0x1f')),Promise['resolve']({'id':_0x914134['name_value_list']['id']['value'],'name':_0x914134[_0x111875('0x3c')][_0x111875('0x54')][_0x111875('0x2e')]});}return logger[_0x111875('0x64')](_0x111875('0x33')),Promise['resolve']({'id':_0x5e310c[_0x111875('0x3c')][_0x111875('0x46')][_0x111875('0x2e')],'name':_0x5e310c[_0x111875('0x3c')][_0x111875('0x60')][_0x111875('0x2e')]});})):(logger['info']('Agent\x20not\x20available,\x20using\x20the\x20admin\x20account!'),Promise[_0x14878d('0x61')]({'id':_0x5e310c[_0x14878d('0x3c')]['user_id'][_0x14878d('0x2e')],'name':_0x5e310c['name_value_list'][_0x14878d('0x60')][_0x14878d('0x2e')]}));}function getEndUser(_0xa880a,_0x4df1dd,_0x558e88,_0x57ca54){const _0x291bc2=_0x34ad0a;return logger[_0x291bc2('0x64')](_0x291bc2('0x20'),_0x558e88),request({'form':{'method':'get_entry_list','input_type':_0x291bc2('0x45'),'response_type':_0x291bc2('0x45'),'rest_data':JSON[_0x291bc2('0xb')]({'session':_0x57ca54['id'],'module_name':_0x291bc2('0x37'),'query':util[_0x291bc2('0x16')](_0x291bc2('0x10'),_0x558e88),'order_by':'','offset':'0','select_fields':['id',_0x291bc2('0x54'),'phone_home'],'link_name_to_fields_array':[],'max_results':-0x1,'deleted':'0'})}})[_0x291bc2('0x30')](function(_0x21bfa1){const _0x151099=_0x291bc2;if(_0x21bfa1[_0x151099('0x5d')][_0x151099('0x19')]){const _0x3d56ab=_[_0x151099('0x39')](_0x21bfa1[_0x151099('0x5d')],function(_0x1f9694){const _0x5a7012=_0x151099;return _0x1f9694[_0x5a7012('0x3c')][_0x5a7012('0x5c')][_0x5a7012('0x2e')]===_0x558e88;});if(_0x3d56ab)return logger[_0x151099('0x64')](_0x151099('0x9')),Promise[_0x151099('0x61')]({'id':_0x3d56ab[_0x151099('0x3c')]['id'][_0x151099('0x2e')],'name':_0x3d56ab['name_value_list']['name'][_0x151099('0x2e')],'phone':_0x3d56ab['name_value_list'][_0x151099('0x5c')]['value']});}else return logger[_0x151099('0x64')]('Enduser\x20not\x20found,\x20creating\x20a\x20new\x20enduser!'),request({'form':{'method':_0x151099('0x55'),'input_type':_0x151099('0x45'),'response_type':_0x151099('0x45'),'rest_data':JSON[_0x151099('0xb')]({'session':_0x57ca54['id'],'module_name':_0x151099('0x37'),'name_value_list':[{'name':_0x151099('0x63'),'value':_0x4df1dd!==_0x151099('0x43')?_0x4df1dd:util[_0x151099('0x16')](_0x151099('0x4b'),_0x558e88)},{'name':_0x151099('0x5c'),'value':_0x558e88}]})}})[_0x151099('0x30')](function(_0x5878ba){const _0xac2eeb=_0x151099;return logger['info'](_0xac2eeb('0x5e')),Promise['resolve']({'id':_0x5878ba['id'],'name':_0x5878ba[_0xac2eeb('0x5d')][_0xac2eeb('0x63')][_0xac2eeb('0x2e')],'phone':_0x5878ba[_0xac2eeb('0x5d')]['phone_home'][_0xac2eeb('0x2e')]});});});}function request(_0x141f59){const _0xc53d25=_0x34ad0a;return logger['debug'](_0xc53d25('0x1e'),JSON[_0xc53d25('0xb')](_0x141f59)),rp(_[_0xc53d25('0x5f')](def,_0x141f59));}function getConnection(_0x5a3b9b){const _0x4e4770=_0x34ad0a;return request({'method':_0x4e4770('0x44'),'form':{'method':_0x4e4770('0x4'),'input_type':_0x4e4770('0x45'),'response_type':_0x4e4770('0x45'),'rest_data':JSON[_0x4e4770('0xb')]({'user_auth':{'user_name':_0x5a3b9b['username'],'password':_0x5a3b9b[_0x4e4770('0x3d')],'encryption':_0x4e4770('0x5b')},'application':'xCALLY\x20Motion\x20integration'})}})[_0x4e4770('0x30')](function(_0x1998f9){const _0x4f8d58=_0x4e4770,_0x4dc5fa=_0x1998f9;if(_0x4dc5fa['id'])return def[_0x4f8d58('0x59')]=_0x4dc5fa['id'],Promise['resolve'](_0x4dc5fa);else throw new Error(util[_0x4f8d58('0x16')](_0x4f8d58('0x28'),_0x5a3b9b['id']));});}function setRelationship(_0x2d855f,_0x535ca8,_0x3856af,_0x5a788c){const _0x42dc56=_0x34ad0a;return request({'form':{'method':'set_relationship','input_type':_0x42dc56('0x45'),'response_type':_0x42dc56('0x45'),'rest_data':JSON[_0x42dc56('0xb')]({'session':_0x2d855f['id'],'module_name':_0x42dc56('0x2a'),'module_id':_0x3856af['id'],'link_field_name':_0x5a788c,'related_ids':[_0x535ca8['id']]})}});}exports['queue']=function(_0x31e3d0,_0x32c5e3,_0x254fe7,_0x5dfec3,_0x475b8f,_0x4e9b2b){const _0xbd2956=_0x34ad0a;let _0x390210,_0x3fb585,_0x563c42,_0x302500;return _0x4e9b2b[_0xbd2956('0x26')]=intUtil[_0xbd2956('0x56')](_0x4e9b2b[_0xbd2956('0x26')]),_0x4e9b2b['serverUrl']=intUtil[_0xbd2956('0x56')](_0x4e9b2b[_0xbd2956('0x8')]),def[_0xbd2956('0x1c')]=util[_0xbd2956('0x16')](_0xbd2956('0x42'),_0x4e9b2b[_0xbd2956('0x26')]),_0x475b8f&&_0x475b8f[_0xbd2956('0x24')]?(logger[_0xbd2956('0x64')](_0xbd2956('0x48'),_0xbd2956('0x34')),_0x32c5e3[_0xbd2956('0x23')]=util[_0xbd2956('0x16')](_0xbd2956('0x22'),_0x4e9b2b[_0xbd2956('0x8')],_0x32c5e3['uniqueid'],md5(_0x32c5e3[_0xbd2956('0x27')]))):_0x32c5e3[_0xbd2956('0x23')]='',getConnection(_0x4e9b2b)[_0xbd2956('0x30')](function(_0x4e8c34){const _0x254e7a=_0xbd2956;return _0x302500=_0x4e8c34,getUser(_0x4e9b2b,_0x5dfec3[_0x254e7a('0x54')],_0x302500);})['then'](function(_0x51de7d){const _0x627adb=_0xbd2956;return _0x390210=_0x51de7d,logger[_0x627adb('0x64')]('The\x20User\x20ID\x20is:',_0x390210['id']),getEndUser(_0x4e9b2b,_0x32c5e3[_0x627adb('0x4e')],_0x32c5e3['calleridnum'],_0x302500);})[_0xbd2956('0x30')](function(_0x4f896e){const _0x238809=_0xbd2956;return _0x3fb585=_0x4f896e,logger[_0x238809('0x64')](_0x238809('0x47'),_0x3fb585['id']),getTicket(_0x4e9b2b,_0x390210,_0x3fb585,_0x254fe7,_0x32c5e3,_0x254fe7[_0x238809('0x6')],_0x302500,_0x238809('0x36'));})[_0xbd2956('0x30')](function(_0x55aab3){const _0x347f0e=_0xbd2956;return _0x563c42=_0x55aab3,logger[_0x347f0e('0x64')](_0x347f0e('0x1a')),logger[_0x347f0e('0x64')](_0x347f0e('0x3a'),_0x563c42['id']),setRelationship(_0x302500,_0x390210,_0x563c42,'users');})['then'](function(){const _0x8c8409=_0xbd2956;return setRelationship(_0x302500,_0x3fb585,_0x563c42,_0x8c8409('0x35'));})[_0xbd2956('0x30')](function(){return getServerInfo(_0x302500);})['then'](function(_0x17a5db){const _0x4fa0e9=_0xbd2956,_0x4697b2=parseInt(_0x17a5db[_0x4fa0e9('0x2c')][_0x4fa0e9('0x4a')](0x0));let _0x4cca2d=util[_0x4fa0e9('0x16')](_0x4fa0e9('0x38'),_0x4e9b2b['remoteUri'],_0x563c42['id']);_0x4697b2>0x6&&(_0x4cca2d=util['format']('%s/#bwc/index.php?module=Calls&action=EditView&record=%s',_0x4e9b2b[_0x4fa0e9('0x26')],_0x563c42['id'])),logger['info']('[QUEUE]',_0x4fa0e9('0x29')),emit(util[_0x4fa0e9('0x16')](_0x4fa0e9('0xe'),_0x5dfec3[_0x4fa0e9('0x54')]),'trigger:browser:url',{'uri':_0x4cca2d});})[_0xbd2956('0x11')](function(_0x1ccf11){const _0x4a0053=_0xbd2956;logger[_0x4a0053('0x41')](_0x4a0053('0x48'),JSON[_0x4a0053('0xb')](_0x1ccf11));});},exports[_0x34ad0a('0x2d')]=function(_0x10b352,_0x2e1e8f,_0x5570e1,_0x1a19d6,_0x31bc41,_0xb07c5e,_0x49b627){const _0x48af24=_0x34ad0a;let _0x1b2472,_0x287951,_0x40e9df,_0x3e4c7d;return _0xb07c5e[_0x48af24('0x26')]=intUtil[_0x48af24('0x56')](_0xb07c5e[_0x48af24('0x26')]),_0xb07c5e[_0x48af24('0x8')]=intUtil[_0x48af24('0x56')](_0xb07c5e[_0x48af24('0x8')]),def['uri']=util['format'](_0x48af24('0x42'),_0xb07c5e['remoteUri']),_0x49b627&&_0x49b627[_0x48af24('0x2f')]&&_0x49b627[_0x48af24('0x2f')]!==_0x48af24('0xa')&&(logger[_0x48af24('0x64')](_0x48af24('0x3'),_0x48af24('0x34')),_0x2e1e8f[_0x48af24('0x23')]=util[_0x48af24('0x16')](_0x48af24('0x22'),_0xb07c5e[_0x48af24('0x8')],_0x2e1e8f[_0x48af24('0x27')],md5(_0x2e1e8f[_0x48af24('0x27')]))),getConnection(_0xb07c5e)[_0x48af24('0x30')](function(_0x6a6f4d){const _0x3dd19a=_0x48af24;return _0x3e4c7d=_0x6a6f4d,getUser(_0xb07c5e,_0x1a19d6[_0x3dd19a('0x54')],_0x3e4c7d);})[_0x48af24('0x30')](function(_0x252f6b){const _0x2f803f=_0x48af24;return _0x1b2472=_0x252f6b,logger[_0x2f803f('0x64')](_0x2f803f('0x50'),_0x1b2472['id']),getEndUser(_0xb07c5e,_0x2e1e8f[_0x2f803f('0x53')],_0x2e1e8f[_0x2f803f('0x4f')],_0x3e4c7d);})['then'](function(_0x1b9ecb){const _0xcac995=_0x48af24;return _0x287951=_0x1b9ecb,logger[_0xcac995('0x64')](_0xcac995('0x47'),_0x287951['id']),getTicket(_0xb07c5e,_0x1b2472,_0x287951,_0x5570e1,_0x2e1e8f,_0x5570e1[_0xcac995('0x6')],_0x3e4c7d,'Outbound');})[_0x48af24('0x30')](function(_0x2b808f){const _0x5b893f=_0x48af24;return _0x40e9df=_0x2b808f,logger[_0x5b893f('0x64')]('Ticket\x20created!'),logger[_0x5b893f('0x64')](_0x5b893f('0x3a'),_0x40e9df['id']),setRelationship(_0x3e4c7d,_0x1b2472,_0x40e9df,_0x5b893f('0x7'));})['then'](function(){const _0x27b5dd=_0x48af24;return setRelationship(_0x3e4c7d,_0x287951,_0x40e9df,_0x27b5dd('0x35'));})[_0x48af24('0x30')](function(){return getServerInfo(_0x3e4c7d);})[_0x48af24('0x30')](function(_0x1c7ce0){const _0x5ee996=_0x48af24,_0x280f96=parseInt(_0x1c7ce0[_0x5ee996('0x2c')][_0x5ee996('0x4a')](0x0));let _0x2e9f5e=util[_0x5ee996('0x16')](_0x5ee996('0x38'),_0xb07c5e[_0x5ee996('0x26')],_0x40e9df['id']);_0x280f96>0x6&&(_0x2e9f5e=util[_0x5ee996('0x16')](_0x5ee996('0x0'),_0xb07c5e[_0x5ee996('0x26')],_0x40e9df['id'])),logger[_0x5ee996('0x64')]('[OUTBOUND]',_0x5ee996('0x29')),emit(util[_0x5ee996('0x16')](_0x5ee996('0xe'),_0x1a19d6[_0x5ee996('0x54')]),_0x5ee996('0x3f'),{'uri':_0x2e9f5e});})['catch'](function(_0x13f5d2){const _0x1cae1e=_0x48af24;logger[_0x1cae1e('0x41')](_0x1cae1e('0x3'),JSON[_0x1cae1e('0xb')](_0x13f5d2));});},exports[_0x34ad0a('0x40')]=function(_0x5ef056,_0x4af6db,_0x261b41,_0x10bd3c,_0xf3314c,_0x26212b){const _0x12446f=_0x34ad0a;let _0x1cf0ab,_0x22a281,_0x523adb,_0x185552;return _0x26212b['remoteUri']=intUtil[_0x12446f('0x56')](_0x26212b[_0x12446f('0x26')]),_0x26212b[_0x12446f('0x8')]=intUtil['stripTrailingSlash'](_0x26212b[_0x12446f('0x8')]),def[_0x12446f('0x1c')]=util[_0x12446f('0x16')]('%s/service/v4_1/rest.php',_0x26212b[_0x12446f('0x26')]),_0xf3314c&&_0xf3314c[_0x12446f('0x24')]?(logger['info']('['+_0x4af6db[_0x12446f('0x17')][_0x12446f('0x3e')]()+']','Recording\x20is\x20enabled!'),_0x4af6db[_0x12446f('0x23')]=util[_0x12446f('0x16')](_0x12446f('0x22'),_0x26212b['serverUrl'],_0x4af6db[_0x12446f('0x27')],md5(_0x4af6db[_0x12446f('0x27')]))):_0x4af6db[_0x12446f('0x23')]='',getConnection(_0x26212b)[_0x12446f('0x30')](function(_0x487423){const _0x530d97=_0x12446f;return _0x185552=_0x487423,!_['isNil'](_0x10bd3c)?getUser(_0x26212b,_0x10bd3c[_0x530d97('0x54')],_0x185552):getUser(_0x26212b,null,_0x185552);})[_0x12446f('0x30')](function(_0x3ac552){const _0x1d1a0d=_0x12446f;return _0x1cf0ab=_0x3ac552,logger[_0x1d1a0d('0x64')](_0x1d1a0d('0x50'),_0x1cf0ab['id']),getEndUser(_0x26212b,_0x4af6db['calleridname'],_0x4af6db['calleridnum'],_0x185552);})[_0x12446f('0x30')](function(_0x382378){const _0x48c283=_0x12446f;return _0x22a281=_0x382378,logger['info'](_0x48c283('0x47'),_0x22a281['id']),getTicket(_0x26212b,_0x1cf0ab,_0x22a281,_0x261b41,_0x4af6db,_0x261b41[_0x48c283('0x6')],_0x185552,_0x48c283('0x36'));})[_0x12446f('0x30')](function(_0x333e9c){const _0xf9cafb=_0x12446f;return _0x523adb=_0x333e9c,logger[_0xf9cafb('0x64')]('Ticket\x20created!'),logger[_0xf9cafb('0x64')](_0xf9cafb('0x3a'),_0x523adb['id']),setRelationship(_0x185552,_0x1cf0ab,_0x523adb,_0xf9cafb('0x7'));})['then'](function(){const _0x1f5c64=_0x12446f;return setRelationship(_0x185552,_0x22a281,_0x523adb,_0x1f5c64('0x35'));})[_0x12446f('0x30')](function(){return getServerInfo(_0x185552);})[_0x12446f('0x11')](function(_0x2ef3ee){const _0x3884ec=_0x12446f;logger[_0x3884ec('0x41')]('['+_0x4af6db[_0x3884ec('0x17')][_0x3884ec('0x3e')]()+']',JSON[_0x3884ec('0xb')](_0x2ef3ee));});}; \ No newline at end of file +const a1307_0x12c5=['forEach','name','JSON','merge','queue','toUpperCase','[HTTP]','Descriptions','Agent\x20not\x20available,\x20using\x20the\x20admin\x20account!','value','Enduser\x20not\x20found,\x20creating\x20a\x20new\x20enduser!','isNil','contacts','resolve','destcalleridnum','remoteUri','error','duration_minutes','%s/service/v4_1/rest.php','uri','users','get_entry_list','unmanaged','debug','description','Calls','idField','Ticket\x20created!','info','getString','xCALLY\x20Motion\x20integration','slice','Subjects','get_server_info','then','[QUEUE]','POST','catch','recordingURL','user_id','username','Account\x20%d\x20is\x20not\x20valid','created_by','The\x20User\x20ID\x20is:','%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s','charAt','../../../../config/logger','The\x20Enduser\x20ID\x20is:','stringify','variableName','%s/index.php?action=ajaxui#ajaxUILoc=index.php%3Fmodule%3DCalls%26action%3DEditView%26record%3D%s','user:%s','replace','version','%s/#bwc/index.php?module=Calls&action=EditView&record=%s','name_value_list','Creating\x20new\x20ticket...','The\x20Ticket\x20ID\x20is:','login','monitor_format','set_relationship','Searching\x20enduser\x20with\x20phone','Displaying\x20ticket\x20to\x20agent\x20in\x20a\x20new\x20tab...','serverUrl','entry_list','stripTrailingSlash','set_entry','calleridnum','Inbound','Fields','length','PLAIN','uniqueid','recordingFormat','parent_type','trigger:browser:url','user_name','','format','lastevent','first_name','sessionID','Contacts','find','direction','INSTR\x20(\x20users.user_name,\x20\x22%s\x22)\x20>\x200','calleridname','Outbound','md5','util','parent_id','Employees','password','toISOString','parent_name','[OUTBOUND]','assigned_user_id','Getting\x20agent\x20with\x20name','Recording\x20is\x20enabled!','Enduser\x20created.','Agent\x20not\x20found,\x20using\x20the\x20admin\x20account!','phone_home'];(function(_0xc239da,_0x5888a3){const _0x12c5b9=function(_0x175830){while(--_0x175830){_0xc239da['push'](_0xc239da['shift']());}};_0x12c5b9(++_0x5888a3);}(a1307_0x12c5,0x1a7));const a1307_0x1758=function(_0xc239da,_0x5888a3){_0xc239da=_0xc239da-0xca;let _0x12c5b9=a1307_0x12c5[_0xc239da];return _0x12c5b9;};const a1307_0x27c3e7=a1307_0x1758;'use strict';const _=require('lodash'),rp=require('request-promise-native'),md5=require(a1307_0x27c3e7(0x113)),util=require(a1307_0x27c3e7(0x114)),intUtil=require('./util'),logger=require(a1307_0x27c3e7(0xe9))('sugarcrm'),{getSocket}=require('../../../../rediscache'),io=getSocket(),def={'method':a1307_0x27c3e7(0xdf),'json':!![]};function emit(_0x48f7f6,_0x311bd9,_0x1aee35){io['to'](_0x48f7f6)['emit'](_0x311bd9,_0x1aee35);}function getTicket(_0x372a2e,_0x5ec775,_0x3e9748,_0x6ab4f4,_0x496bc1,_0x30f128,_0x196c3b,_0x17e5d8){const _0x2ba880=a1307_0x27c3e7;logger[_0x2ba880(0xd7)](_0x2ba880(0xf3));const _0x5c7ad9=new Date(),_0x573464=[{'name':_0x2ba880(0x122),'value':intUtil['getString'](_0x6ab4f4[_0x2ba880(0xdb)],_0x496bc1,'\x20')},{'name':_0x2ba880(0x11b),'value':_0x5ec775['id']},{'name':_0x2ba880(0xe5),'value':_0x5ec775['id']},{'name':_0x2ba880(0xd3),'value':intUtil[_0x2ba880(0xd8)](_0x6ab4f4[_0x2ba880(0x128)],_0x496bc1,'\x0a')},{'name':'date_start','value':_0x5c7ad9[_0x2ba880(0x118)]()[_0x2ba880(0xda)](0x0,0x13)[_0x2ba880(0xef)]('T','\x20')},{'name':'duration_hours','value':'0'},{'name':_0x2ba880(0xcc),'value':'15'},{'name':_0x2ba880(0x115),'value':_0x3e9748['id']},{'name':_0x2ba880(0x105),'value':_0x2ba880(0x10d)},{'name':_0x2ba880(0x119),'value':_0x3e9748['name']},{'name':_0x2ba880(0x10f),'value':_0x17e5d8}];return _0x30f128[_0x2ba880(0x101)]&&_[_0x2ba880(0x121)](_0x30f128,function(_0x4c2915){const _0x2c7cd7=_0x2ba880;_0x496bc1[_0x4c2915[_0x2c7cd7(0xec)]]&&_0x573464['push']({'name':_0x4c2915[_0x2c7cd7(0xd5)],'value':_0x496bc1[_0x4c2915[_0x2c7cd7(0xec)]]});}),request({'form':{'method':_0x2ba880(0xfd),'input_type':'JSON','response_type':'JSON','rest_data':JSON[_0x2ba880(0xeb)]({'session':_0x196c3b['id'],'module_name':_0x2ba880(0xd4),'name_value_list':_0x573464})}});}function getServerInfo(_0x30e774){const _0x5b3fd6=a1307_0x27c3e7;return request({'form':{'method':_0x5b3fd6(0xdc),'input_type':'JSON','response_type':'JSON','rest_data':JSON['stringify']({'session':_0x30e774['id']})}});}function getUser(_0x381e55,_0x2ff9c0,_0x1c4839){const _0x476c23=a1307_0x27c3e7;return!_[_0x476c23(0x12c)](_0x2ff9c0)?(logger[_0x476c23(0xd7)](_0x476c23(0x11c),_0x2ff9c0),request({'form':{'method':_0x476c23(0xd0),'input_type':_0x476c23(0x123),'response_type':_0x476c23(0x123),'rest_data':JSON[_0x476c23(0xeb)]({'session':_0x1c4839['id'],'module_name':_0x476c23(0x116),'query':util['format'](_0x476c23(0x110),_0x2ff9c0),'order_by':'','offset':'0','select_fields':['id',_0x476c23(0x122),_0x476c23(0x107)],'link_name_to_fields_array':[],'max_results':-0x1,'deleted':'0'})}})[_0x476c23(0xdd)](function(_0x4ea7fb){const _0x48e0de=_0x476c23;if(_0x4ea7fb[_0x48e0de(0xfb)][_0x48e0de(0x101)]){const _0x2e66ad=_[_0x48e0de(0x10e)](_0x4ea7fb[_0x48e0de(0xfb)],function(_0x48f3c5){const _0x51253a=_0x48e0de;return _0x48f3c5[_0x51253a(0xf2)][_0x51253a(0x107)]['value']===_0x2ff9c0;});if(_0x2e66ad)return logger[_0x48e0de(0xd7)]('Agent\x20found!'),Promise[_0x48e0de(0x12e)]({'id':_0x2e66ad[_0x48e0de(0xf2)]['id'][_0x48e0de(0x12a)],'name':_0x2e66ad['name_value_list'][_0x48e0de(0x122)][_0x48e0de(0x12a)]});}return logger[_0x48e0de(0xd7)](_0x48e0de(0x11f)),Promise['resolve']({'id':_0x1c4839['name_value_list'][_0x48e0de(0xe2)][_0x48e0de(0x12a)],'name':_0x1c4839[_0x48e0de(0xf2)][_0x48e0de(0x107)][_0x48e0de(0x12a)]});})):(logger[_0x476c23(0xd7)](_0x476c23(0x129)),Promise[_0x476c23(0x12e)]({'id':_0x1c4839[_0x476c23(0xf2)][_0x476c23(0xe2)][_0x476c23(0x12a)],'name':_0x1c4839[_0x476c23(0xf2)][_0x476c23(0x107)][_0x476c23(0x12a)]}));}function getEndUser(_0x13f5ed,_0x160e7a,_0x3e48ec,_0x66da44){const _0x28334e=a1307_0x27c3e7;return logger['info'](_0x28334e(0xf8),_0x3e48ec),request({'form':{'method':_0x28334e(0xd0),'input_type':'JSON','response_type':_0x28334e(0x123),'rest_data':JSON[_0x28334e(0xeb)]({'session':_0x66da44['id'],'module_name':_0x28334e(0x10d),'query':util[_0x28334e(0x109)]('contacts.phone_home\x20=\x20\x22%s\x22',_0x3e48ec),'order_by':'','offset':'0','select_fields':['id','name',_0x28334e(0x120)],'link_name_to_fields_array':[],'max_results':-0x1,'deleted':'0'})}})[_0x28334e(0xdd)](function(_0xbe882){const _0x4698c3=_0x28334e;if(_0xbe882['entry_list'][_0x4698c3(0x101)]){const _0x36645c=_[_0x4698c3(0x10e)](_0xbe882[_0x4698c3(0xfb)],function(_0x3054a3){const _0x2e71ae=_0x4698c3;return _0x3054a3[_0x2e71ae(0xf2)]['phone_home'][_0x2e71ae(0x12a)]===_0x3e48ec;});if(_0x36645c)return logger[_0x4698c3(0xd7)]('Enduser\x20found!'),Promise[_0x4698c3(0x12e)]({'id':_0x36645c[_0x4698c3(0xf2)]['id'][_0x4698c3(0x12a)],'name':_0x36645c['name_value_list'][_0x4698c3(0x122)][_0x4698c3(0x12a)],'phone':_0x36645c[_0x4698c3(0xf2)][_0x4698c3(0x120)][_0x4698c3(0x12a)]});}else return logger[_0x4698c3(0xd7)](_0x4698c3(0x12b)),request({'form':{'method':'set_entry','input_type':_0x4698c3(0x123),'response_type':_0x4698c3(0x123),'rest_data':JSON[_0x4698c3(0xeb)]({'session':_0x66da44['id'],'module_name':'Contacts','name_value_list':[{'name':_0x4698c3(0x10b),'value':_0x160e7a!==_0x4698c3(0x108)?_0x160e7a:util['format']('Caller\x20-\x20%s',_0x3e48ec)},{'name':_0x4698c3(0x120),'value':_0x3e48ec}]})}})[_0x4698c3(0xdd)](function(_0x4eb90d){const _0x4f2d9c=_0x4698c3;return logger['info'](_0x4f2d9c(0x11e)),Promise[_0x4f2d9c(0x12e)]({'id':_0x4eb90d['id'],'name':_0x4eb90d[_0x4f2d9c(0xfb)][_0x4f2d9c(0x10b)]['value'],'phone':_0x4eb90d[_0x4f2d9c(0xfb)][_0x4f2d9c(0x120)]['value']});});});}function request(_0x1c0599){const _0x4be8b0=a1307_0x27c3e7;return logger[_0x4be8b0(0xd2)](_0x4be8b0(0x127),JSON['stringify'](_0x1c0599)),rp(_[_0x4be8b0(0x124)](def,_0x1c0599));}function getConnection(_0x1b1035){const _0x3b9db2=a1307_0x27c3e7;return request({'method':_0x3b9db2(0xdf),'form':{'method':_0x3b9db2(0xf5),'input_type':_0x3b9db2(0x123),'response_type':'JSON','rest_data':JSON[_0x3b9db2(0xeb)]({'user_auth':{'user_name':_0x1b1035[_0x3b9db2(0xe3)],'password':_0x1b1035[_0x3b9db2(0x117)],'encryption':_0x3b9db2(0x102)},'application':_0x3b9db2(0xd9)})}})[_0x3b9db2(0xdd)](function(_0x1a38ec){const _0x3d48d9=_0x3b9db2,_0x325717=_0x1a38ec;if(_0x325717['id'])return def[_0x3d48d9(0x10c)]=_0x325717['id'],Promise[_0x3d48d9(0x12e)](_0x325717);else throw new Error(util['format'](_0x3d48d9(0xe4),_0x1b1035['id']));});}function setRelationship(_0x57507a,_0x19c0e2,_0x53eb24,_0x4e5b95){const _0x4e23ec=a1307_0x27c3e7;return request({'form':{'method':_0x4e23ec(0xf7),'input_type':_0x4e23ec(0x123),'response_type':'JSON','rest_data':JSON[_0x4e23ec(0xeb)]({'session':_0x57507a['id'],'module_name':_0x4e23ec(0xd4),'module_id':_0x53eb24['id'],'link_field_name':_0x4e5b95,'related_ids':[_0x19c0e2['id']]})}});}exports[a1307_0x27c3e7(0x125)]=function(_0x271152,_0x124831,_0x14b7bb,_0xa3ac25,_0x4b5f25,_0x5656c7){const _0x13f0c8=a1307_0x27c3e7;let _0x56520e,_0x43c0e4,_0x4ed1e2,_0x454dda;return _0x5656c7['remoteUri']=intUtil['stripTrailingSlash'](_0x5656c7[_0x13f0c8(0xca)]),_0x5656c7[_0x13f0c8(0xfa)]=intUtil['stripTrailingSlash'](_0x5656c7[_0x13f0c8(0xfa)]),def['uri']=util[_0x13f0c8(0x109)](_0x13f0c8(0xcd),_0x5656c7[_0x13f0c8(0xca)]),_0x4b5f25&&_0x4b5f25[_0x13f0c8(0xf6)]?(logger[_0x13f0c8(0xd7)](_0x13f0c8(0xde),_0x13f0c8(0x11d)),_0x124831['recordingURL']=util['format'](_0x13f0c8(0xe7),_0x5656c7[_0x13f0c8(0xfa)],_0x124831[_0x13f0c8(0x103)],md5(_0x124831[_0x13f0c8(0x103)]))):_0x124831[_0x13f0c8(0xe1)]='',getConnection(_0x5656c7)[_0x13f0c8(0xdd)](function(_0x409834){const _0x4a9241=_0x13f0c8;return _0x454dda=_0x409834,getUser(_0x5656c7,_0xa3ac25[_0x4a9241(0x122)],_0x454dda);})[_0x13f0c8(0xdd)](function(_0x740db8){const _0x476016=_0x13f0c8;return _0x56520e=_0x740db8,logger['info'](_0x476016(0xe6),_0x56520e['id']),getEndUser(_0x5656c7,_0x124831[_0x476016(0x111)],_0x124831[_0x476016(0xfe)],_0x454dda);})[_0x13f0c8(0xdd)](function(_0x14f9a6){const _0x3e5d18=_0x13f0c8;return _0x43c0e4=_0x14f9a6,logger['info'](_0x3e5d18(0xea),_0x43c0e4['id']),getTicket(_0x5656c7,_0x56520e,_0x43c0e4,_0x14b7bb,_0x124831,_0x14b7bb[_0x3e5d18(0x100)],_0x454dda,_0x3e5d18(0xff));})[_0x13f0c8(0xdd)](function(_0x3dce42){const _0x47c467=_0x13f0c8;return _0x4ed1e2=_0x3dce42,logger[_0x47c467(0xd7)]('Ticket\x20created!'),logger[_0x47c467(0xd7)](_0x47c467(0xf4),_0x4ed1e2['id']),setRelationship(_0x454dda,_0x56520e,_0x4ed1e2,_0x47c467(0xcf));})[_0x13f0c8(0xdd)](function(){const _0x10a951=_0x13f0c8;return setRelationship(_0x454dda,_0x43c0e4,_0x4ed1e2,_0x10a951(0x12d));})[_0x13f0c8(0xdd)](function(){return getServerInfo(_0x454dda);})[_0x13f0c8(0xdd)](function(_0x1f6826){const _0x5cfb59=_0x13f0c8,_0xa2db8e=parseInt(_0x1f6826[_0x5cfb59(0xf0)]['charAt'](0x0));let _0x2eac52=util[_0x5cfb59(0x109)](_0x5cfb59(0xed),_0x5656c7['remoteUri'],_0x4ed1e2['id']);_0xa2db8e>0x6&&(_0x2eac52=util[_0x5cfb59(0x109)](_0x5cfb59(0xf1),_0x5656c7[_0x5cfb59(0xca)],_0x4ed1e2['id'])),logger[_0x5cfb59(0xd7)](_0x5cfb59(0xde),_0x5cfb59(0xf9)),emit(util[_0x5cfb59(0x109)](_0x5cfb59(0xee),_0xa3ac25['name']),_0x5cfb59(0x106),{'uri':_0x2eac52});})[_0x13f0c8(0xe0)](function(_0x4f2c56){logger['error']('[QUEUE]',JSON['stringify'](_0x4f2c56));});},exports['outbound']=function(_0x56f52e,_0x4572b3,_0x2abfeb,_0x4724e2,_0x2d1b89,_0xcc1d8a,_0x45657e){const _0xa58a9=a1307_0x27c3e7;let _0x3debe7,_0x5b8bda,_0x4a93f4,_0x2caf13;return _0xcc1d8a[_0xa58a9(0xca)]=intUtil[_0xa58a9(0xfc)](_0xcc1d8a['remoteUri']),_0xcc1d8a[_0xa58a9(0xfa)]=intUtil['stripTrailingSlash'](_0xcc1d8a[_0xa58a9(0xfa)]),def[_0xa58a9(0xce)]=util[_0xa58a9(0x109)](_0xa58a9(0xcd),_0xcc1d8a[_0xa58a9(0xca)]),_0x45657e&&_0x45657e[_0xa58a9(0x104)]&&_0x45657e[_0xa58a9(0x104)]!=='none'&&(logger[_0xa58a9(0xd7)](_0xa58a9(0x11a),_0xa58a9(0x11d)),_0x4572b3[_0xa58a9(0xe1)]=util[_0xa58a9(0x109)](_0xa58a9(0xe7),_0xcc1d8a['serverUrl'],_0x4572b3['uniqueid'],md5(_0x4572b3[_0xa58a9(0x103)]))),getConnection(_0xcc1d8a)[_0xa58a9(0xdd)](function(_0x47a5a2){return _0x2caf13=_0x47a5a2,getUser(_0xcc1d8a,_0x4724e2['name'],_0x2caf13);})[_0xa58a9(0xdd)](function(_0x1f233d){const _0x56dbfb=_0xa58a9;return _0x3debe7=_0x1f233d,logger[_0x56dbfb(0xd7)](_0x56dbfb(0xe6),_0x3debe7['id']),getEndUser(_0xcc1d8a,_0x4572b3['destcalleridname'],_0x4572b3[_0x56dbfb(0x12f)],_0x2caf13);})['then'](function(_0x1ecb91){const _0x240307=_0xa58a9;return _0x5b8bda=_0x1ecb91,logger[_0x240307(0xd7)](_0x240307(0xea),_0x5b8bda['id']),getTicket(_0xcc1d8a,_0x3debe7,_0x5b8bda,_0x2abfeb,_0x4572b3,_0x2abfeb[_0x240307(0x100)],_0x2caf13,_0x240307(0x112));})[_0xa58a9(0xdd)](function(_0x2688d9){const _0x588b6f=_0xa58a9;return _0x4a93f4=_0x2688d9,logger[_0x588b6f(0xd7)](_0x588b6f(0xd6)),logger[_0x588b6f(0xd7)](_0x588b6f(0xf4),_0x4a93f4['id']),setRelationship(_0x2caf13,_0x3debe7,_0x4a93f4,_0x588b6f(0xcf));})[_0xa58a9(0xdd)](function(){const _0x2541f4=_0xa58a9;return setRelationship(_0x2caf13,_0x5b8bda,_0x4a93f4,_0x2541f4(0x12d));})['then'](function(){return getServerInfo(_0x2caf13);})[_0xa58a9(0xdd)](function(_0x336ddb){const _0xe8e633=_0xa58a9,_0x5d6501=parseInt(_0x336ddb[_0xe8e633(0xf0)][_0xe8e633(0xe8)](0x0));let _0x4b0d62=util[_0xe8e633(0x109)](_0xe8e633(0xed),_0xcc1d8a[_0xe8e633(0xca)],_0x4a93f4['id']);_0x5d6501>0x6&&(_0x4b0d62=util[_0xe8e633(0x109)](_0xe8e633(0xf1),_0xcc1d8a['remoteUri'],_0x4a93f4['id'])),logger[_0xe8e633(0xd7)](_0xe8e633(0x11a),_0xe8e633(0xf9)),emit(util[_0xe8e633(0x109)](_0xe8e633(0xee),_0x4724e2[_0xe8e633(0x122)]),'trigger:browser:url',{'uri':_0x4b0d62});})['catch'](function(_0x159d0c){const _0x111d5d=_0xa58a9;logger[_0x111d5d(0xcb)]('[OUTBOUND]',JSON[_0x111d5d(0xeb)](_0x159d0c));});},exports[a1307_0x27c3e7(0xd1)]=function(_0x115fd6,_0x5b4e0a,_0x532bc8,_0x3dc588,_0x12d92e,_0x58775b){const _0x3be93c=a1307_0x27c3e7;let _0x61406,_0x45506d,_0xa133c3,_0x2c0a34;return _0x58775b[_0x3be93c(0xca)]=intUtil['stripTrailingSlash'](_0x58775b[_0x3be93c(0xca)]),_0x58775b['serverUrl']=intUtil['stripTrailingSlash'](_0x58775b[_0x3be93c(0xfa)]),def[_0x3be93c(0xce)]=util[_0x3be93c(0x109)]('%s/service/v4_1/rest.php',_0x58775b[_0x3be93c(0xca)]),_0x12d92e&&_0x12d92e[_0x3be93c(0xf6)]?(logger[_0x3be93c(0xd7)]('['+_0x5b4e0a[_0x3be93c(0x10a)][_0x3be93c(0x126)]()+']',_0x3be93c(0x11d)),_0x5b4e0a['recordingURL']=util['format'](_0x3be93c(0xe7),_0x58775b[_0x3be93c(0xfa)],_0x5b4e0a[_0x3be93c(0x103)],md5(_0x5b4e0a[_0x3be93c(0x103)]))):_0x5b4e0a['recordingURL']='',getConnection(_0x58775b)[_0x3be93c(0xdd)](function(_0x4a8b49){const _0x4376cd=_0x3be93c;return _0x2c0a34=_0x4a8b49,!_[_0x4376cd(0x12c)](_0x3dc588)?getUser(_0x58775b,_0x3dc588[_0x4376cd(0x122)],_0x2c0a34):getUser(_0x58775b,null,_0x2c0a34);})[_0x3be93c(0xdd)](function(_0x3b0cbf){const _0x1834d6=_0x3be93c;return _0x61406=_0x3b0cbf,logger['info'](_0x1834d6(0xe6),_0x61406['id']),getEndUser(_0x58775b,_0x5b4e0a['calleridname'],_0x5b4e0a[_0x1834d6(0xfe)],_0x2c0a34);})[_0x3be93c(0xdd)](function(_0x1eeaa4){const _0x435ee2=_0x3be93c;return _0x45506d=_0x1eeaa4,logger['info']('The\x20Enduser\x20ID\x20is:',_0x45506d['id']),getTicket(_0x58775b,_0x61406,_0x45506d,_0x532bc8,_0x5b4e0a,_0x532bc8['Fields'],_0x2c0a34,_0x435ee2(0xff));})[_0x3be93c(0xdd)](function(_0x3728c2){const _0x2be093=_0x3be93c;return _0xa133c3=_0x3728c2,logger[_0x2be093(0xd7)](_0x2be093(0xd6)),logger[_0x2be093(0xd7)]('The\x20Ticket\x20ID\x20is:',_0xa133c3['id']),setRelationship(_0x2c0a34,_0x61406,_0xa133c3,_0x2be093(0xcf));})['then'](function(){const _0x3117c7=_0x3be93c;return setRelationship(_0x2c0a34,_0x45506d,_0xa133c3,_0x3117c7(0x12d));})[_0x3be93c(0xdd)](function(){return getServerInfo(_0x2c0a34);})[_0x3be93c(0xe0)](function(_0x570580){const _0x527684=_0x3be93c;logger[_0x527684(0xcb)]('['+_0x5b4e0a[_0x527684(0x10a)][_0x527684(0x126)]()+']',JSON[_0x527684(0xeb)](_0x570580));});}; \ 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 42f8504..76fcedf 100644 --- a/server/services/ami/trigger/integration/util.js +++ b/server/services/ami/trigger/integration/util.js @@ -1 +1 @@ -const a1144_0x4fca=['sortBy','name','keyContent','content','toString','type','validateEmail','slice','toLowerCase','push','lodash','customVariable','stripTrailingSlash','keyValue','variable','substring','%s:\x20%s','keyType','format','isNil','variableName','length','lastIndexOf','join','key','test','string','Variable'];(function(_0x301c05,_0x4fca67){const _0x411431=function(_0x3f8d37){while(--_0x3f8d37){_0x301c05['push'](_0x301c05['shift']());}};_0x411431(++_0x4fca67);}(a1144_0x4fca,0x155));const a1144_0x4114=function(_0x301c05,_0x4fca67){_0x301c05=_0x301c05-0x0;let _0x411431=a1144_0x4fca[_0x301c05];return _0x411431;};const _0x583aab=a1144_0x4114;'use strict';const _=require(_0x583aab('0x5')),util=require('util');exports['getString']=function(_0x3f8d37,_0x5030d4,_0xb4e7f1){const _0x109bb8=_0x583aab,_0x5d9272=[];if(_0x3f8d37['length']>0x0){const _0x5780f8=_[_0x109bb8('0x17')](_0x3f8d37,['id']);for(let _0x27499f=0x0;_0x27499f<_0x5780f8[_0x109bb8('0x10')];_0x27499f++){const _0x26fbc4=_0x5780f8[_0x27499f];if(_0x26fbc4[_0x109bb8('0x0')]==='string')_0x5d9272['push'](_0x26fbc4[_0x109bb8('0x1a')]);else{if(_0x26fbc4[_0x109bb8('0x0')]===_0x109bb8('0x9')&&_0x26fbc4['variableName'])_0x5030d4[_0x26fbc4['variableName']]&&_0x5d9272[_0x109bb8('0x4')](_0x5030d4[_0x26fbc4[_0x109bb8('0xf')]][_0x109bb8('0x1b')]());else{if(_0x26fbc4[_0x109bb8('0x0')]===_0x109bb8('0x6')&&_0x26fbc4[_0x109bb8('0x16')]&&_0x26fbc4[_0x109bb8('0x16')][_0x109bb8('0x18')])_0x5030d4[_0x26fbc4[_0x109bb8('0x16')][_0x109bb8('0x18')]['toLowerCase']()]&&_0x5d9272['push'](_0x5030d4[_0x26fbc4[_0x109bb8('0x16')][_0x109bb8('0x18')][_0x109bb8('0x3')]()][_0x109bb8('0x1b')]());else{if(_0x26fbc4['type']===_0x109bb8('0x8')){if(_0x26fbc4[_0x109bb8('0xc')]===_0x109bb8('0x15')&&_0x26fbc4[_0x109bb8('0x13')])_0x5d9272[_0x109bb8('0x4')](util[_0x109bb8('0xd')](_0x109bb8('0xb'),_0x26fbc4['key'],_0x26fbc4[_0x109bb8('0x19')]));else{if(_0x26fbc4['keyType']==='variable'&&_0x26fbc4[_0x109bb8('0xf')]&&_0x26fbc4['key'])_0x5030d4[_0x26fbc4[_0x109bb8('0xf')]]&&_0x5d9272['push'](util[_0x109bb8('0xd')]('%s:\x20%s',_0x26fbc4[_0x109bb8('0x13')],_0x5030d4[_0x26fbc4['variableName']]));else _0x26fbc4[_0x109bb8('0xc')]===_0x109bb8('0x6')&&_0x26fbc4[_0x109bb8('0x16')]&&_0x26fbc4[_0x109bb8('0x16')][_0x109bb8('0x18')]&&_0x26fbc4[_0x109bb8('0x13')]&&(_0x5030d4[_0x26fbc4[_0x109bb8('0x16')][_0x109bb8('0x18')][_0x109bb8('0x3')]()]&&_0x5d9272[_0x109bb8('0x4')](util[_0x109bb8('0xd')](_0x109bb8('0xb'),_0x26fbc4[_0x109bb8('0x13')],_0x5030d4[_0x26fbc4['Variable'][_0x109bb8('0x18')][_0x109bb8('0x3')]()])));}}}}}}}return _0x5d9272[_0x109bb8('0x12')](_0xb4e7f1);},exports[_0x583aab('0x7')]=function(_0x5458cc){const _0x124823=_0x583aab,_0x3fdac1=_0x5458cc[_0x124823('0x2')](-0x1);return _0x3fdac1==='/'&&(_0x5458cc=_0x5458cc[_0x124823('0xa')](0x0,_0x5458cc[_0x124823('0x11')](_0x3fdac1))),_0x5458cc;},exports[_0x583aab('0x1')]=function(_0x27810c){const _0x1adf4a=_0x583aab;if(!_[_0x1adf4a('0xe')](_0x27810c)&&_0x27810c!==''){const _0x5b6f29=/^(([^<>()[\]\\.,;:\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 _0x5b6f29[_0x1adf4a('0x14')](String(_0x27810c)['toLowerCase']());}else return![];}; \ No newline at end of file +const a1308_0x5238=['variableName','keyContent','type','isNil','substring','stripTrailingSlash','sortBy','customVariable','key','variable','%s:\x20%s','keyType','length','content','name','toLowerCase','Variable','join','getString','keyValue','lastIndexOf','toString','slice','util','format','string','push'];(function(_0x59b621,_0x4a74e7){const _0x5238aa=function(_0x239be6){while(--_0x239be6){_0x59b621['push'](_0x59b621['shift']());}};_0x5238aa(++_0x4a74e7);}(a1308_0x5238,0x80));const a1308_0x239b=function(_0x59b621,_0x4a74e7){_0x59b621=_0x59b621-0x78;let _0x5238aa=a1308_0x5238[_0x59b621];return _0x5238aa;};const a1308_0x54bb19=a1308_0x239b;'use strict';const _=require('lodash'),util=require(a1308_0x54bb19(0x7b));exports[a1308_0x54bb19(0x91)]=function(_0x52403a,_0x173624,_0x3e3e18){const _0x59ca67=a1308_0x54bb19,_0x252634=[];if(_0x52403a[_0x59ca67(0x8b)]>0x0){const _0x2b2abe=_[_0x59ca67(0x85)](_0x52403a,['id']);for(let _0x7017ea=0x0;_0x7017ea<_0x2b2abe[_0x59ca67(0x8b)];_0x7017ea++){const _0x5045c6=_0x2b2abe[_0x7017ea];if(_0x5045c6['type']===_0x59ca67(0x7d))_0x252634[_0x59ca67(0x7e)](_0x5045c6[_0x59ca67(0x8c)]);else{if(_0x5045c6[_0x59ca67(0x81)]===_0x59ca67(0x88)&&_0x5045c6['variableName'])_0x173624[_0x5045c6[_0x59ca67(0x7f)]]&&_0x252634[_0x59ca67(0x7e)](_0x173624[_0x5045c6['variableName']][_0x59ca67(0x79)]());else{if(_0x5045c6['type']===_0x59ca67(0x86)&&_0x5045c6[_0x59ca67(0x8f)]&&_0x5045c6[_0x59ca67(0x8f)][_0x59ca67(0x8d)])_0x173624[_0x5045c6[_0x59ca67(0x8f)]['name'][_0x59ca67(0x8e)]()]&&_0x252634[_0x59ca67(0x7e)](_0x173624[_0x5045c6[_0x59ca67(0x8f)][_0x59ca67(0x8d)][_0x59ca67(0x8e)]()][_0x59ca67(0x79)]());else{if(_0x5045c6['type']===_0x59ca67(0x92)){if(_0x5045c6[_0x59ca67(0x8a)]===_0x59ca67(0x7d)&&_0x5045c6['key'])_0x252634['push'](util[_0x59ca67(0x7c)](_0x59ca67(0x89),_0x5045c6[_0x59ca67(0x87)],_0x5045c6[_0x59ca67(0x80)]));else{if(_0x5045c6[_0x59ca67(0x8a)]===_0x59ca67(0x88)&&_0x5045c6[_0x59ca67(0x7f)]&&_0x5045c6['key'])_0x173624[_0x5045c6['variableName']]&&_0x252634[_0x59ca67(0x7e)](util[_0x59ca67(0x7c)](_0x59ca67(0x89),_0x5045c6[_0x59ca67(0x87)],_0x173624[_0x5045c6[_0x59ca67(0x7f)]]));else _0x5045c6[_0x59ca67(0x8a)]===_0x59ca67(0x86)&&_0x5045c6[_0x59ca67(0x8f)]&&_0x5045c6[_0x59ca67(0x8f)][_0x59ca67(0x8d)]&&_0x5045c6[_0x59ca67(0x87)]&&(_0x173624[_0x5045c6[_0x59ca67(0x8f)]['name'][_0x59ca67(0x8e)]()]&&_0x252634[_0x59ca67(0x7e)](util[_0x59ca67(0x7c)](_0x59ca67(0x89),_0x5045c6[_0x59ca67(0x87)],_0x173624[_0x5045c6['Variable']['name']['toLowerCase']()])));}}}}}}}return _0x252634[_0x59ca67(0x90)](_0x3e3e18);},exports[a1308_0x54bb19(0x84)]=function(_0x4e001b){const _0x5dd8cf=a1308_0x54bb19,_0x2f70f4=_0x4e001b[_0x5dd8cf(0x7a)](-0x1);return _0x2f70f4==='/'&&(_0x4e001b=_0x4e001b[_0x5dd8cf(0x83)](0x0,_0x4e001b[_0x5dd8cf(0x78)](_0x2f70f4))),_0x4e001b;},exports['validateEmail']=function(_0xf29ca1){const _0x2acd52=a1308_0x54bb19;if(!_[_0x2acd52(0x82)](_0xf29ca1)&&_0xf29ca1!==''){const _0x1f1559=/^(([^<>()[\]\\.,;:\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 _0x1f1559['test'](String(_0xf29ca1)['toLowerCase']());}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 2e8cffd..c2d35ca 100644 --- a/server/services/ami/trigger/integration/vtiger.js +++ b/server/services/ami/trigger/integration/vtiger.js @@ -1 +1 @@ -const a1145_0x25e1=['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;','lodash','outbound','uniqueid','length','validateEmail','Getting\x20agent\x20with\x20email','request-promise-native','none','The\x20Enduser\x20ID\x20is:','create','accessKey','resolve','type','stripTrailingSlash','Agent\x20found!','Normal','remoteUri','SELECT\x20first_name,\x20last_name,\x20email1\x20FROM\x20Users\x20WHERE\x20email1=\x27%s\x27;','Variable','result','Enduser\x20not\x20found,\x20creating\x20a\x20new\x20enduser!','statusCode','calleridname','%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s','calleridnum','firstname','emit','POST','createTicket','toUpperCase','idField','[vTiger],\x20%s,\x20%s,\x20%s','The\x20Ticket\x20ID\x20is:','util','query','Enduser\x20created.','Creating\x20new\x20ticket...','catch','GET','getConnection','%s/index.php?module=HelpDesk&view=Detail&record=%s&app=SUPPORT','info','customVariable','stringify','content','format','login','phone','username','serverUrl','Displaying\x20ticket\x20to\x20agent\x20in\x20a\x20new\x20tab...','unmanaged','error','lastevent','sessionName','lastname','[OUTBOUND]','The\x20User\x20ID\x20is:','getUser','email','Fields','userId','Subjects','Agent\x20not\x20found,\x20using\x20the\x20admin\x20account!','string','[HTTP]','admin','destcalleridname','monitor_format','HelpDesk','then','user:%s','md5','[QUEUE]','Enduser\x20found!','forEach','success','getString','%s/webservice.php','toLowerCase','queue','toString','variableName','Descriptions','Ticket\x20could\x20not\x20be\x20created\x20due\x20to:\x20%s','name','Searching\x20end\x20user\x20with\x20phone','Ticket\x20created!','recordingURL','token','Open'];(function(_0x805926,_0x25e1d4){const _0x3ea61e=function(_0x3e8ef0){while(--_0x3e8ef0){_0x805926['push'](_0x805926['shift']());}};_0x3ea61e(++_0x25e1d4);}(a1145_0x25e1,0x177));const a1145_0x3ea6=function(_0x805926,_0x25e1d4){_0x805926=_0x805926-0x0;let _0x3ea61e=a1145_0x25e1[_0x805926];return _0x3ea61e;};const _0x5ec492=a1145_0x3ea6;'use strict';const _=require(_0x5ec492('0x56')),rp=require(_0x5ec492('0x0')),md5=require(_0x5ec492('0x42')),util=require(_0x5ec492('0x1b')),intUtil=require('./util'),logger=require('../../../../config/logger')('vTiger'),{getSocket}=require('../../../../rediscache'),io=getSocket();function emit(_0x3e8ef0,_0x480105,_0x4f2ee0){const _0x109714=_0x5ec492;io['to'](_0x3e8ef0)[_0x109714('0x14')](_0x480105,_0x4f2ee0);}function getCustomFields(_0xb00126,_0x43a890){const _0x22004a=_0x5ec492,_0x33ab8b={};return _0xb00126[_0x22004a('0x59')]>0x0&&_[_0x22004a('0x45')](_0xb00126,function(_0x21d396){const _0xac4264=_0x22004a;if(_0x21d396[_0xac4264('0x6')]===_0xac4264('0x3a')&&_0x21d396[_0xac4264('0x18')])_0x33ab8b[_0x21d396['idField']]=_0x21d396[_0xac4264('0x26')][_0xac4264('0x4b')]();else{if(_0x21d396[_0xac4264('0x6')]==='variable'&&_0x21d396[_0xac4264('0x4c')]&&_0x21d396['idField']&&_0x43a890[_0x21d396[_0xac4264('0x4c')]])_0x33ab8b[_0x21d396[_0xac4264('0x18')]]=_0x43a890[_0x21d396[_0xac4264('0x4c')]][_0xac4264('0x4b')]();else _0x21d396[_0xac4264('0x6')]===_0xac4264('0x24')&&_0x21d396[_0xac4264('0xc')]&&_0x21d396[_0xac4264('0xc')][_0xac4264('0x4f')]&&_0x21d396[_0xac4264('0x18')]&&_0x43a890[_0x21d396[_0xac4264('0xc')][_0xac4264('0x4f')][_0xac4264('0x49')]()]&&(_0x33ab8b[_0x21d396[_0xac4264('0x18')]]=_0x43a890[_0x21d396[_0xac4264('0xc')][_0xac4264('0x4f')]['toLowerCase']()][_0xac4264('0x4b')]());}}),_0x33ab8b;}function createTicket(_0x39f72d,_0x57907c,_0x4f5835,_0x475c35,_0x5e1e02,_0xe28101,_0x3a53ac){const _0x307ca0=_0x5ec492;logger[_0x307ca0('0x23')](_0x307ca0('0x1e'));const _0x27663c=_['merge']({'parent_id':'','assigned_user_id':_0x57907c['id'],'ticketpriorities':_0x307ca0('0x9'),'ticketstatus':_0x307ca0('0x54'),'ticket_title':intUtil[_0x307ca0('0x47')](_0x475c35[_0x307ca0('0x38')],_0x5e1e02,'\x20'),'description':intUtil['getString'](_0x475c35[_0x307ca0('0x4d')],_0x5e1e02,'\x0a'),'contact_id':_0x4f5835['id']},getCustomFields(_0xe28101,_0x5e1e02)),_0x2ed601={'method':_0x307ca0('0x15'),'uri':util['format'](_0x307ca0('0x48'),_0x39f72d[_0x307ca0('0xa')]),'form':{'operation':_0x307ca0('0x3'),'username':_0x39f72d[_0x307ca0('0x2a')],'sessionName':_0x3a53ac[_0x307ca0('0x30')],'elementType':_0x307ca0('0x3f'),'element':JSON[_0x307ca0('0x25')](_0x27663c)},'json':!![]};return request(_0x2ed601)['then'](function(_0x1f08a8){const _0x3e5085=_0x307ca0;if(_0x1f08a8[_0x3e5085('0x46')])return Promise[_0x3e5085('0x5')]({'id':_0x1f08a8[_0x3e5085('0xd')]['id']});else throw new Error(util[_0x3e5085('0x27')](_0x3e5085('0x4e'),JSON[_0x3e5085('0x25')](_0x1f08a8['error'])));})['catch'](function(_0x41d834){const _0x35d757=_0x307ca0,_0x563edd=_0x41d834[_0x35d757('0xf')]||0x1f4;logger[_0x35d757('0x2e')](_0x35d757('0x19'),_0x35d757('0x16'),_0x563edd,JSON['stringify'](_0x41d834));});}function getUser(_0x353216,_0x5e3fc7,_0x216014){const _0x524450=_0x5ec492;return intUtil[_0x524450('0x5a')](_0x5e3fc7)?(logger[_0x524450('0x23')](_0x524450('0x5b'),_0x5e3fc7),request({'method':_0x524450('0x20'),'uri':util[_0x524450('0x27')]('%s/webservice.php',_0x353216[_0x524450('0xa')]),'qs':{'operation':_0x524450('0x1c'),'username':_0x353216[_0x524450('0x2a')],'sessionName':_0x216014['sessionName'],'query':util[_0x524450('0x27')](_0x524450('0xb'),_0x5e3fc7)},'json':!![]})[_0x524450('0x40')](function(_0x1e0aa9){const _0x458f11=_0x524450;return _0x1e0aa9[_0x458f11('0x46')]&&_0x1e0aa9[_0x458f11('0xd')]['length']?(logger[_0x458f11('0x23')](_0x458f11('0x8')),Promise['resolve']({'id':_0x1e0aa9['result'][0x0]['id'],'email':_0x1e0aa9[_0x458f11('0xd')][0x0]['email1'],'name':_0x1e0aa9[_0x458f11('0xd')][0x0]['first_name']+'\x20'+_0x1e0aa9['result']['last_name']})):(logger[_0x458f11('0x23')](_0x458f11('0x39')),Promise['resolve']({'id':_0x216014[_0x458f11('0x37')],'email':_0x353216[_0x458f11('0x2a')],'name':_0x458f11('0x3c')}));})[_0x524450('0x1f')](function(_0xaa5eb){const _0x1a7fc1=_0x524450,_0xf4d87c=_0xaa5eb[_0x1a7fc1('0xf')]||0x1f4;logger[_0x1a7fc1('0x2e')](_0x1a7fc1('0x19'),'getUser',_0xf4d87c,JSON[_0x1a7fc1('0x25')](_0xaa5eb));})):(logger['info'](_0x524450('0x39')),Promise[_0x524450('0x5')]({'id':_0x216014['userId'],'email':_0x353216['username'],'name':_0x524450('0x3c')})[_0x524450('0x1f')](function(_0x4bf67f){const _0x29ca29=_0x524450,_0x421b82=_0x4bf67f[_0x29ca29('0xf')]||0x1f4;logger['error'](_0x29ca29('0x19'),_0x29ca29('0x34'),_0x421b82,JSON[_0x29ca29('0x25')](_0x4bf67f));}));}function getEndUser(_0x46b615,_0x167d93,_0x1eb2c0,_0x1199d5){const _0x250498=_0x5ec492;return logger[_0x250498('0x23')](_0x250498('0x50'),_0x1eb2c0),request({'method':_0x250498('0x20'),'uri':util[_0x250498('0x27')](_0x250498('0x48'),_0x46b615[_0x250498('0xa')]),'qs':{'operation':'query','username':_0x46b615['username'],'sessionName':_0x1199d5['sessionName'],'query':util[_0x250498('0x27')](_0x250498('0x55'),_0x1eb2c0,_0x1eb2c0,_0x1eb2c0,_0x1eb2c0,_0x1eb2c0)},'json':!![]})['then'](function(_0x1a61de){const _0x4f6ac0=_0x250498;return _0x1a61de[_0x4f6ac0('0x46')]&&_0x1a61de['result']['length']?(logger[_0x4f6ac0('0x23')](_0x4f6ac0('0x44')),Promise['resolve']({'id':_0x1a61de[_0x4f6ac0('0xd')][0x0]['id'],'name':_0x1a61de[_0x4f6ac0('0xd')][0x0][_0x4f6ac0('0x13')]+'\x20'+_0x1a61de[_0x4f6ac0('0xd')][0x0][_0x4f6ac0('0x31')],'phone':_0x1eb2c0})):(logger['info'](_0x4f6ac0('0xe')),request({'method':_0x4f6ac0('0x15'),'uri':util[_0x4f6ac0('0x27')](_0x4f6ac0('0x48'),_0x46b615[_0x4f6ac0('0xa')]),'form':{'operation':_0x4f6ac0('0x3'),'sessionName':_0x1199d5['sessionName'],'elementType':'Contacts','element':JSON[_0x4f6ac0('0x25')]({'lastname':_0x167d93,'phone':_0x1eb2c0,'assigned_user_id':'\x20'})},'json':!![]})['then'](function(_0x3041e8){const _0x1f5b43=_0x4f6ac0;return logger[_0x1f5b43('0x23')](_0x1f5b43('0x1d')),Promise[_0x1f5b43('0x5')]({'id':_0x3041e8[_0x1f5b43('0xd')]['id'],'name':_0x3041e8[_0x1f5b43('0xd')]['lastname'],'phone':_0x3041e8['result'][_0x1f5b43('0x29')]});})['catch'](function(_0x250e9f){const _0x33aad1=_0x4f6ac0,_0x3ed9dc=_0x250e9f[_0x33aad1('0xf')]||0x1f4;logger['error'](_0x33aad1('0x19'),'getEndUser',_0x3ed9dc,JSON[_0x33aad1('0x25')](_0x250e9f));}));});}function getConnection(_0x4ff98c){const _0x204e01=_0x5ec492,_0x55f701=_0x4ff98c[_0x204e01('0x2a')],_0x56ef35=_0x4ff98c[_0x204e01('0x4')];return request({'method':_0x204e01('0x20'),'uri':util[_0x204e01('0x27')](_0x204e01('0x48'),_0x4ff98c[_0x204e01('0xa')]),'qs':{'operation':'getchallenge','username':_0x55f701},'json':!![]})['then'](function(_0x470271){const _0x12a0f4=_0x204e01;if(_0x470271[_0x12a0f4('0x46')])return request({'method':_0x12a0f4('0x15'),'uri':util[_0x12a0f4('0x27')](_0x12a0f4('0x48'),_0x4ff98c[_0x12a0f4('0xa')]),'form':{'operation':_0x12a0f4('0x28'),'username':_0x55f701,'accessKey':md5(_0x470271[_0x12a0f4('0xd')][_0x12a0f4('0x53')]+_0x56ef35)},'json':!![]});})[_0x204e01('0x40')](function(_0x316dda){const _0x23a7aa=_0x204e01;if(_0x316dda[_0x23a7aa('0x46')])return Promise[_0x23a7aa('0x5')](_0x316dda[_0x23a7aa('0xd')]);else throw new Error(util['format']('Account\x20%d\x20is\x20not\x20valid',_0x4ff98c['id']));})[_0x204e01('0x1f')](function(_0xe8c03a){const _0x203a80=_0x204e01,_0x85c9c9=_0xe8c03a[_0x203a80('0xf')]||0x1f4;logger[_0x203a80('0x2e')](_0x203a80('0x19'),_0x203a80('0x21'),_0x85c9c9,JSON['stringify'](_0xe8c03a));});}function request(_0x5a80ad){const _0x314976=_0x5ec492;return logger[_0x314976('0x23')](_0x314976('0x3b'),JSON[_0x314976('0x25')](_0x5a80ad)),rp(_0x5a80ad);}exports[_0x5ec492('0x4a')]=function(_0x2047d3,_0x3fd8a7,_0x2b59bd,_0x43b2f6,_0x12b79d,_0x562ad7){const _0x4cb224=_0x5ec492;let _0x15c1df,_0x5368fb,_0x103cbf,_0x49180d;return _0x562ad7[_0x4cb224('0xa')]=intUtil[_0x4cb224('0x7')](_0x562ad7[_0x4cb224('0xa')]),_0x12b79d&&_0x12b79d[_0x4cb224('0x3e')]?(logger[_0x4cb224('0x23')](_0x4cb224('0x43'),'Recording\x20is\x20enabled!'),_0x3fd8a7['recordingURL']=util[_0x4cb224('0x27')](_0x4cb224('0x11'),_0x562ad7[_0x4cb224('0x2b')],_0x3fd8a7[_0x4cb224('0x58')],md5(_0x3fd8a7[_0x4cb224('0x58')]))):_0x3fd8a7[_0x4cb224('0x52')]='',getConnection(_0x562ad7)[_0x4cb224('0x40')](function(_0x2be450){const _0x18a6fd=_0x4cb224;return _0x49180d=_0x2be450,getUser(_0x562ad7,_0x43b2f6[_0x18a6fd('0x35')],_0x49180d);})['then'](function(_0x3cce96){const _0x4ef567=_0x4cb224;return _0x15c1df=_0x3cce96,logger[_0x4ef567('0x23')](_0x4ef567('0x33'),_0x15c1df['id']),getEndUser(_0x562ad7,_0x3fd8a7[_0x4ef567('0x10')],_0x3fd8a7[_0x4ef567('0x12')],_0x49180d);})[_0x4cb224('0x40')](function(_0x2311b4){const _0x530d4e=_0x4cb224;return _0x5368fb=_0x2311b4,logger[_0x530d4e('0x23')](_0x530d4e('0x2'),_0x5368fb['id']),createTicket(_0x562ad7,_0x15c1df,_0x5368fb,_0x2b59bd,_0x3fd8a7,_0x2b59bd[_0x530d4e('0x36')],_0x49180d);})['then'](function(_0xd3215){const _0x1c3357=_0x4cb224;_0x103cbf=_0xd3215,logger[_0x1c3357('0x23')]('Ticket\x20created!'),logger[_0x1c3357('0x23')](_0x1c3357('0x1a'),_0x103cbf['id']);const _0x169d77=util[_0x1c3357('0x27')](_0x1c3357('0x22'),_0x562ad7[_0x1c3357('0xa')],_['split'](_0x103cbf['id'],'x')[0x1]);logger[_0x1c3357('0x23')](_0x1c3357('0x43'),'Displaying\x20ticket\x20to\x20agent\x20in\x20a\x20new\x20tab...'),emit(util[_0x1c3357('0x27')](_0x1c3357('0x41'),_0x43b2f6[_0x1c3357('0x4f')]),'trigger:browser:url',{'uri':_0x169d77});})[_0x4cb224('0x1f')](function(_0x57f6e2){const _0x1b4ec7=_0x4cb224;logger[_0x1b4ec7('0x2e')](_0x1b4ec7('0x43'),JSON[_0x1b4ec7('0x25')](_0x57f6e2));});},exports[_0x5ec492('0x57')]=function(_0x1fc8b2,_0x36ebb3,_0x4fe8ba,_0xaa86d4,_0x3d0098,_0x19b875,_0x3d48fe){const _0x42db59=_0x5ec492;let _0x10c163,_0x747f98,_0x599ed2,_0x5d5448;return _0x19b875['remoteUri']=intUtil['stripTrailingSlash'](_0x19b875['remoteUri']),_0x19b875[_0x42db59('0x2b')]=intUtil[_0x42db59('0x7')](_0x19b875[_0x42db59('0x2b')]),_0x3d48fe&&_0x3d48fe['recordingFormat']&&_0x3d48fe['recordingFormat']!==_0x42db59('0x1')&&(logger['info'](_0x42db59('0x32'),'Recording\x20is\x20enabled!'),_0x36ebb3[_0x42db59('0x52')]=util[_0x42db59('0x27')](_0x42db59('0x11'),_0x19b875[_0x42db59('0x2b')],_0x36ebb3[_0x42db59('0x58')],md5(_0x36ebb3[_0x42db59('0x58')]))),getConnection(_0x19b875)[_0x42db59('0x40')](function(_0x9f9dec){const _0x42480f=_0x42db59;return _0x5d5448=_0x9f9dec,getUser(_0x19b875,_0xaa86d4[_0x42480f('0x35')],_0x5d5448);})['then'](function(_0x2a073f){const _0x21d3b1=_0x42db59;return _0x10c163=_0x2a073f,logger[_0x21d3b1('0x23')](_0x21d3b1('0x33'),_0x10c163['id']),getEndUser(_0x19b875,_0x36ebb3[_0x21d3b1('0x3d')],_0x36ebb3['destcalleridnum'],_0x5d5448);})[_0x42db59('0x40')](function(_0x2a3fa1){const _0x48139d=_0x42db59;return _0x747f98=_0x2a3fa1,logger['info'](_0x48139d('0x2'),_0x747f98['id']),createTicket(_0x19b875,_0x10c163,_0x747f98,_0x4fe8ba,_0x36ebb3,_0x4fe8ba[_0x48139d('0x36')],_0x5d5448);})[_0x42db59('0x40')](function(_0x86a341){const _0x14d38f=_0x42db59;_0x599ed2=_0x86a341,logger['info'](_0x14d38f('0x51')),logger[_0x14d38f('0x23')](_0x14d38f('0x1a'),_0x599ed2['id']);const _0x3a7e9d=util[_0x14d38f('0x27')](_0x14d38f('0x22'),_0x19b875['remoteUri'],_['split'](_0x599ed2['id'],'x')[0x1]);logger[_0x14d38f('0x23')](_0x14d38f('0x32'),_0x14d38f('0x2c')),emit(util[_0x14d38f('0x27')](_0x14d38f('0x41'),_0xaa86d4[_0x14d38f('0x4f')]),'trigger:browser:url',{'uri':_0x3a7e9d});})[_0x42db59('0x1f')](function(_0x104a4f){const _0xeec18f=_0x42db59;logger['error'](_0xeec18f('0x32'),JSON[_0xeec18f('0x25')](_0x104a4f));});},exports[_0x5ec492('0x2d')]=function(_0x7cd2b0,_0x379431,_0x1fcfde,_0x1f8e4b,_0x31dd96,_0x4df547){const _0x154818=_0x5ec492;let _0x262d09,_0x247ec7,_0x33fb16,_0x3991ca;return _0x4df547[_0x154818('0xa')]=intUtil[_0x154818('0x7')](_0x4df547[_0x154818('0xa')]),_0x4df547[_0x154818('0x2b')]=intUtil['stripTrailingSlash'](_0x4df547['serverUrl']),_0x31dd96&&_0x31dd96['monitor_format']?(logger[_0x154818('0x23')]('['+_0x379431[_0x154818('0x2f')][_0x154818('0x17')]()+']','Recording\x20is\x20enabled!'),_0x379431['recordingURL']=util[_0x154818('0x27')](_0x154818('0x11'),_0x4df547['serverUrl'],_0x379431[_0x154818('0x58')],md5(_0x379431[_0x154818('0x58')]))):_0x379431[_0x154818('0x52')]='',getConnection(_0x4df547)[_0x154818('0x40')](function(_0x44e411){return _0x3991ca=_0x44e411,getUser(_0x4df547,'',_0x3991ca);})[_0x154818('0x40')](function(_0x4ff1dd){const _0xf70ab3=_0x154818;return _0x262d09=_0x4ff1dd,logger['info'](_0xf70ab3('0x33'),_0x262d09['id']),getEndUser(_0x4df547,_0x379431[_0xf70ab3('0x10')],_0x379431['calleridnum'],_0x3991ca);})[_0x154818('0x40')](function(_0x2be427){const _0x28ba69=_0x154818;return _0x247ec7=_0x2be427,logger['info']('The\x20Enduser\x20ID\x20is:',_0x247ec7['id']),createTicket(_0x4df547,_0x262d09,_0x247ec7,_0x1fcfde,_0x379431,_0x1fcfde[_0x28ba69('0x36')],_0x3991ca);})['then'](function(_0x2340b3){const _0x477251=_0x154818;_0x33fb16=_0x2340b3,logger[_0x477251('0x23')]('Ticket\x20created!'),logger[_0x477251('0x23')](_0x477251('0x1a'),_0x33fb16['id']);})['catch'](function(_0x5279e5){const _0x34bc2e=_0x154818;logger['error']('['+_0x379431['lastevent'][_0x34bc2e('0x17')]()+']',JSON[_0x34bc2e('0x25')](_0x5279e5));});}; \ No newline at end of file +const a1309_0x19ad=['The\x20User\x20ID\x20is:','monitor_format','getchallenge','The\x20Ticket\x20ID\x20is:','recordingFormat','Normal','[vTiger],\x20%s,\x20%s,\x20%s','%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s','string','token','Displaying\x20ticket\x20to\x20agent\x20in\x20a\x20new\x20tab...','variable','success','toUpperCase','getUser','destcalleridname','outbound','query','createTicket','Recording\x20is\x20enabled!','info','recordingURL','then','../../../../rediscache','GET','HelpDesk','The\x20Enduser\x20ID\x20is:','../../../../config/logger','[QUEUE]','toLowerCase','statusCode','./util','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;','idField','type','calleridname','%s/webservice.php','firstname','variableName','email','uniqueid','util','format','lastevent','calleridnum','create','queue','Enduser\x20found!','lastname','unmanaged','last_name','sessionName','Searching\x20end\x20user\x20with\x20phone','validateEmail','Agent\x20not\x20found,\x20using\x20the\x20admin\x20account!','request-promise-native','Contacts','result','remoteUri','Subjects','SELECT\x20first_name,\x20last_name,\x20email1\x20FROM\x20Users\x20WHERE\x20email1=\x27%s\x27;','phone','stripTrailingSlash','getString','split','[OUTBOUND]','length','catch','first_name','Variable','name','error','email1','toString','Ticket\x20could\x20not\x20be\x20created\x20due\x20to:\x20%s','serverUrl','trigger:browser:url','Fields','resolve','lodash','customVariable','stringify','merge','admin','vTiger','username','Account\x20%d\x20is\x20not\x20valid','getConnection','Agent\x20found!','user:%s','Descriptions','Getting\x20agent\x20with\x20email','none','md5','POST','Ticket\x20created!'];(function(_0x15f140,_0x3b23eb){const _0x19ada4=function(_0xa3f864){while(--_0xa3f864){_0x15f140['push'](_0x15f140['shift']());}};_0x19ada4(++_0x3b23eb);}(a1309_0x19ad,0x1c2));const a1309_0xa3f8=function(_0x15f140,_0x3b23eb){_0x15f140=_0x15f140-0x10e;let _0x19ada4=a1309_0x19ad[_0x15f140];return _0x19ada4;};const a1309_0x2a507f=a1309_0xa3f8;'use strict';const _=require(a1309_0x2a507f(0x11b)),rp=require(a1309_0x2a507f(0x163)),md5=require(a1309_0x2a507f(0x129)),util=require(a1309_0x2a507f(0x155)),intUtil=require(a1309_0x2a507f(0x14b)),logger=require(a1309_0x2a507f(0x147))(a1309_0x2a507f(0x120)),{getSocket}=require(a1309_0x2a507f(0x143)),io=getSocket();function emit(_0x18d4ed,_0xacb60,_0x13b81c){io['to'](_0x18d4ed)['emit'](_0xacb60,_0x13b81c);}function getCustomFields(_0x221cf3,_0x41225f){const _0x3bb6d5=a1309_0x2a507f,_0x15254f={};return _0x221cf3[_0x3bb6d5(0x10e)]>0x0&&_['forEach'](_0x221cf3,function(_0x3c11b9){const _0x3553cb=_0x3bb6d5;if(_0x3c11b9[_0x3553cb(0x14e)]===_0x3553cb(0x134)&&_0x3c11b9['idField'])_0x15254f[_0x3c11b9[_0x3553cb(0x14d)]]=_0x3c11b9['content'][_0x3553cb(0x115)]();else{if(_0x3c11b9[_0x3553cb(0x14e)]===_0x3553cb(0x137)&&_0x3c11b9[_0x3553cb(0x152)]&&_0x3c11b9['idField']&&_0x41225f[_0x3c11b9[_0x3553cb(0x152)]])_0x15254f[_0x3c11b9[_0x3553cb(0x14d)]]=_0x41225f[_0x3c11b9[_0x3553cb(0x152)]][_0x3553cb(0x115)]();else _0x3c11b9[_0x3553cb(0x14e)]===_0x3553cb(0x11c)&&_0x3c11b9[_0x3553cb(0x111)]&&_0x3c11b9[_0x3553cb(0x111)][_0x3553cb(0x112)]&&_0x3c11b9[_0x3553cb(0x14d)]&&_0x41225f[_0x3c11b9[_0x3553cb(0x111)][_0x3553cb(0x112)]['toLowerCase']()]&&(_0x15254f[_0x3c11b9['idField']]=_0x41225f[_0x3c11b9[_0x3553cb(0x111)][_0x3553cb(0x112)][_0x3553cb(0x149)]()]['toString']());}}),_0x15254f;}function createTicket(_0x1cf75d,_0x5f312b,_0x262d5b,_0x15655c,_0x47fc5a,_0x3ed41f,_0x41fc7b){const _0x3295fb=a1309_0x2a507f;logger[_0x3295fb(0x140)]('Creating\x20new\x20ticket...');const _0x119c62=_[_0x3295fb(0x11e)]({'parent_id':'','assigned_user_id':_0x5f312b['id'],'ticketpriorities':_0x3295fb(0x131),'ticketstatus':'Open','ticket_title':intUtil[_0x3295fb(0x16b)](_0x15655c[_0x3295fb(0x167)],_0x47fc5a,'\x20'),'description':intUtil[_0x3295fb(0x16b)](_0x15655c[_0x3295fb(0x126)],_0x47fc5a,'\x0a'),'contact_id':_0x262d5b['id']},getCustomFields(_0x3ed41f,_0x47fc5a)),_0x34fc2e={'method':'POST','uri':util[_0x3295fb(0x156)](_0x3295fb(0x150),_0x1cf75d[_0x3295fb(0x166)]),'form':{'operation':_0x3295fb(0x159),'username':_0x1cf75d[_0x3295fb(0x121)],'sessionName':_0x41fc7b[_0x3295fb(0x15f)],'elementType':_0x3295fb(0x145),'element':JSON[_0x3295fb(0x11d)](_0x119c62)},'json':!![]};return request(_0x34fc2e)['then'](function(_0x4a9987){const _0xe33e29=_0x3295fb;if(_0x4a9987['success'])return Promise['resolve']({'id':_0x4a9987[_0xe33e29(0x165)]['id']});else throw new Error(util['format'](_0xe33e29(0x116),JSON[_0xe33e29(0x11d)](_0x4a9987[_0xe33e29(0x113)])));})['catch'](function(_0x1e8e49){const _0x184eb7=_0x3295fb,_0x46a520=_0x1e8e49[_0x184eb7(0x14a)]||0x1f4;logger[_0x184eb7(0x113)](_0x184eb7(0x132),_0x184eb7(0x13e),_0x46a520,JSON[_0x184eb7(0x11d)](_0x1e8e49));});}function getUser(_0x1d963d,_0x49bbe9,_0x400828){const _0x1b5377=a1309_0x2a507f;return intUtil[_0x1b5377(0x161)](_0x49bbe9)?(logger[_0x1b5377(0x140)](_0x1b5377(0x127),_0x49bbe9),request({'method':_0x1b5377(0x144),'uri':util[_0x1b5377(0x156)](_0x1b5377(0x150),_0x1d963d['remoteUri']),'qs':{'operation':'query','username':_0x1d963d[_0x1b5377(0x121)],'sessionName':_0x400828['sessionName'],'query':util[_0x1b5377(0x156)](_0x1b5377(0x168),_0x49bbe9)},'json':!![]})[_0x1b5377(0x142)](function(_0x1a538f){const _0x5ae363=_0x1b5377;return _0x1a538f[_0x5ae363(0x138)]&&_0x1a538f['result']['length']?(logger['info'](_0x5ae363(0x124)),Promise[_0x5ae363(0x11a)]({'id':_0x1a538f['result'][0x0]['id'],'email':_0x1a538f[_0x5ae363(0x165)][0x0][_0x5ae363(0x114)],'name':_0x1a538f[_0x5ae363(0x165)][0x0][_0x5ae363(0x110)]+'\x20'+_0x1a538f[_0x5ae363(0x165)][_0x5ae363(0x15e)]})):(logger['info'](_0x5ae363(0x162)),Promise[_0x5ae363(0x11a)]({'id':_0x400828['userId'],'email':_0x1d963d[_0x5ae363(0x121)],'name':_0x5ae363(0x11f)}));})['catch'](function(_0x2587db){const _0x229f36=_0x1b5377,_0x1ee2cf=_0x2587db['statusCode']||0x1f4;logger[_0x229f36(0x113)](_0x229f36(0x132),'getUser',_0x1ee2cf,JSON[_0x229f36(0x11d)](_0x2587db));})):(logger[_0x1b5377(0x140)](_0x1b5377(0x162)),Promise[_0x1b5377(0x11a)]({'id':_0x400828['userId'],'email':_0x1d963d[_0x1b5377(0x121)],'name':_0x1b5377(0x11f)})[_0x1b5377(0x10f)](function(_0xa117d3){const _0x26908a=_0x1b5377,_0x17e28e=_0xa117d3[_0x26908a(0x14a)]||0x1f4;logger[_0x26908a(0x113)](_0x26908a(0x132),_0x26908a(0x13a),_0x17e28e,JSON[_0x26908a(0x11d)](_0xa117d3));}));}function getEndUser(_0x4f6f8a,_0x5c3e31,_0x3cf682,_0x12d03f){const _0x166d81=a1309_0x2a507f;return logger['info'](_0x166d81(0x160),_0x3cf682),request({'method':_0x166d81(0x144),'uri':util[_0x166d81(0x156)](_0x166d81(0x150),_0x4f6f8a[_0x166d81(0x166)]),'qs':{'operation':_0x166d81(0x13d),'username':_0x4f6f8a['username'],'sessionName':_0x12d03f[_0x166d81(0x15f)],'query':util['format'](_0x166d81(0x14c),_0x3cf682,_0x3cf682,_0x3cf682,_0x3cf682,_0x3cf682)},'json':!![]})[_0x166d81(0x142)](function(_0x57c99){const _0x52728b=_0x166d81;return _0x57c99[_0x52728b(0x138)]&&_0x57c99['result']['length']?(logger[_0x52728b(0x140)](_0x52728b(0x15b)),Promise['resolve']({'id':_0x57c99['result'][0x0]['id'],'name':_0x57c99[_0x52728b(0x165)][0x0][_0x52728b(0x151)]+'\x20'+_0x57c99[_0x52728b(0x165)][0x0][_0x52728b(0x15c)],'phone':_0x3cf682})):(logger[_0x52728b(0x140)]('Enduser\x20not\x20found,\x20creating\x20a\x20new\x20enduser!'),request({'method':_0x52728b(0x12a),'uri':util[_0x52728b(0x156)](_0x52728b(0x150),_0x4f6f8a[_0x52728b(0x166)]),'form':{'operation':_0x52728b(0x159),'sessionName':_0x12d03f[_0x52728b(0x15f)],'elementType':_0x52728b(0x164),'element':JSON[_0x52728b(0x11d)]({'lastname':_0x5c3e31,'phone':_0x3cf682,'assigned_user_id':'\x20'})},'json':!![]})['then'](function(_0x4d2f9c){const _0x13887b=_0x52728b;return logger[_0x13887b(0x140)]('Enduser\x20created.'),Promise[_0x13887b(0x11a)]({'id':_0x4d2f9c[_0x13887b(0x165)]['id'],'name':_0x4d2f9c[_0x13887b(0x165)][_0x13887b(0x15c)],'phone':_0x4d2f9c[_0x13887b(0x165)][_0x13887b(0x169)]});})['catch'](function(_0x1bca60){const _0x599a70=_0x52728b,_0x334530=_0x1bca60[_0x599a70(0x14a)]||0x1f4;logger['error'](_0x599a70(0x132),'getEndUser',_0x334530,JSON[_0x599a70(0x11d)](_0x1bca60));}));});}function getConnection(_0x1e355a){const _0x574573=a1309_0x2a507f,_0x4d6fd5=_0x1e355a[_0x574573(0x121)],_0x406c74=_0x1e355a['accessKey'];return request({'method':_0x574573(0x144),'uri':util['format'](_0x574573(0x150),_0x1e355a[_0x574573(0x166)]),'qs':{'operation':_0x574573(0x12e),'username':_0x4d6fd5},'json':!![]})[_0x574573(0x142)](function(_0x287518){const _0x409a9a=_0x574573;if(_0x287518[_0x409a9a(0x138)])return request({'method':_0x409a9a(0x12a),'uri':util[_0x409a9a(0x156)](_0x409a9a(0x150),_0x1e355a[_0x409a9a(0x166)]),'form':{'operation':'login','username':_0x4d6fd5,'accessKey':md5(_0x287518[_0x409a9a(0x165)][_0x409a9a(0x135)]+_0x406c74)},'json':!![]});})['then'](function(_0x391704){const _0x4b0e06=_0x574573;if(_0x391704['success'])return Promise[_0x4b0e06(0x11a)](_0x391704['result']);else throw new Error(util['format'](_0x4b0e06(0x122),_0x1e355a['id']));})[_0x574573(0x10f)](function(_0x42185e){const _0x11b5fa=_0x574573,_0x57f946=_0x42185e[_0x11b5fa(0x14a)]||0x1f4;logger[_0x11b5fa(0x113)](_0x11b5fa(0x132),_0x11b5fa(0x123),_0x57f946,JSON[_0x11b5fa(0x11d)](_0x42185e));});}function request(_0x44bd9e){const _0x5e6363=a1309_0x2a507f;return logger[_0x5e6363(0x140)]('[HTTP]',JSON[_0x5e6363(0x11d)](_0x44bd9e)),rp(_0x44bd9e);}exports[a1309_0x2a507f(0x15a)]=function(_0x31359e,_0x5b08e7,_0x1bb57d,_0x1ee256,_0x514c50,_0x42835f){const _0x27d6d0=a1309_0x2a507f;let _0x46297e,_0x2179f4,_0x524d34,_0x10321d;return _0x42835f[_0x27d6d0(0x166)]=intUtil['stripTrailingSlash'](_0x42835f[_0x27d6d0(0x166)]),_0x514c50&&_0x514c50[_0x27d6d0(0x12d)]?(logger[_0x27d6d0(0x140)]('[QUEUE]','Recording\x20is\x20enabled!'),_0x5b08e7[_0x27d6d0(0x141)]=util[_0x27d6d0(0x156)](_0x27d6d0(0x133),_0x42835f[_0x27d6d0(0x117)],_0x5b08e7[_0x27d6d0(0x154)],md5(_0x5b08e7[_0x27d6d0(0x154)]))):_0x5b08e7['recordingURL']='',getConnection(_0x42835f)[_0x27d6d0(0x142)](function(_0x85da6c){const _0x210ef0=_0x27d6d0;return _0x10321d=_0x85da6c,getUser(_0x42835f,_0x1ee256[_0x210ef0(0x153)],_0x10321d);})[_0x27d6d0(0x142)](function(_0x100f96){const _0x556744=_0x27d6d0;return _0x46297e=_0x100f96,logger[_0x556744(0x140)](_0x556744(0x12c),_0x46297e['id']),getEndUser(_0x42835f,_0x5b08e7[_0x556744(0x14f)],_0x5b08e7[_0x556744(0x158)],_0x10321d);})['then'](function(_0x5c8b88){const _0x3e0562=_0x27d6d0;return _0x2179f4=_0x5c8b88,logger[_0x3e0562(0x140)](_0x3e0562(0x146),_0x2179f4['id']),createTicket(_0x42835f,_0x46297e,_0x2179f4,_0x1bb57d,_0x5b08e7,_0x1bb57d[_0x3e0562(0x119)],_0x10321d);})['then'](function(_0x453a50){const _0x4e7fec=_0x27d6d0;_0x524d34=_0x453a50,logger['info'](_0x4e7fec(0x12b)),logger[_0x4e7fec(0x140)]('The\x20Ticket\x20ID\x20is:',_0x524d34['id']);const _0x4dcf0b=util[_0x4e7fec(0x156)]('%s/index.php?module=HelpDesk&view=Detail&record=%s&app=SUPPORT',_0x42835f[_0x4e7fec(0x166)],_[_0x4e7fec(0x16c)](_0x524d34['id'],'x')[0x1]);logger['info'](_0x4e7fec(0x148),_0x4e7fec(0x136)),emit(util['format']('user:%s',_0x1ee256[_0x4e7fec(0x112)]),_0x4e7fec(0x118),{'uri':_0x4dcf0b});})['catch'](function(_0x2ff9de){const _0x27bd1a=_0x27d6d0;logger[_0x27bd1a(0x113)](_0x27bd1a(0x148),JSON['stringify'](_0x2ff9de));});},exports[a1309_0x2a507f(0x13c)]=function(_0x1e133f,_0x2f7aa0,_0x349219,_0x3a3667,_0x3c433a,_0x5f0e7c,_0x2f04cb){const _0x5caf81=a1309_0x2a507f;let _0x2920c8,_0x3971ea,_0x3339ab,_0x397a55;return _0x5f0e7c[_0x5caf81(0x166)]=intUtil[_0x5caf81(0x16a)](_0x5f0e7c['remoteUri']),_0x5f0e7c['serverUrl']=intUtil[_0x5caf81(0x16a)](_0x5f0e7c['serverUrl']),_0x2f04cb&&_0x2f04cb[_0x5caf81(0x130)]&&_0x2f04cb[_0x5caf81(0x130)]!==_0x5caf81(0x128)&&(logger[_0x5caf81(0x140)](_0x5caf81(0x16d),'Recording\x20is\x20enabled!'),_0x2f7aa0[_0x5caf81(0x141)]=util[_0x5caf81(0x156)](_0x5caf81(0x133),_0x5f0e7c['serverUrl'],_0x2f7aa0[_0x5caf81(0x154)],md5(_0x2f7aa0[_0x5caf81(0x154)]))),getConnection(_0x5f0e7c)[_0x5caf81(0x142)](function(_0x5963cb){return _0x397a55=_0x5963cb,getUser(_0x5f0e7c,_0x3a3667['email'],_0x397a55);})['then'](function(_0x2b8724){const _0x3a4628=_0x5caf81;return _0x2920c8=_0x2b8724,logger[_0x3a4628(0x140)](_0x3a4628(0x12c),_0x2920c8['id']),getEndUser(_0x5f0e7c,_0x2f7aa0[_0x3a4628(0x13b)],_0x2f7aa0['destcalleridnum'],_0x397a55);})[_0x5caf81(0x142)](function(_0x14617a){const _0x10935a=_0x5caf81;return _0x3971ea=_0x14617a,logger[_0x10935a(0x140)]('The\x20Enduser\x20ID\x20is:',_0x3971ea['id']),createTicket(_0x5f0e7c,_0x2920c8,_0x3971ea,_0x349219,_0x2f7aa0,_0x349219[_0x10935a(0x119)],_0x397a55);})[_0x5caf81(0x142)](function(_0x304bcc){const _0x1930e9=_0x5caf81;_0x3339ab=_0x304bcc,logger[_0x1930e9(0x140)]('Ticket\x20created!'),logger[_0x1930e9(0x140)](_0x1930e9(0x12f),_0x3339ab['id']);const _0x350e78=util[_0x1930e9(0x156)]('%s/index.php?module=HelpDesk&view=Detail&record=%s&app=SUPPORT',_0x5f0e7c['remoteUri'],_[_0x1930e9(0x16c)](_0x3339ab['id'],'x')[0x1]);logger[_0x1930e9(0x140)](_0x1930e9(0x16d),_0x1930e9(0x136)),emit(util[_0x1930e9(0x156)](_0x1930e9(0x125),_0x3a3667[_0x1930e9(0x112)]),_0x1930e9(0x118),{'uri':_0x350e78});})[_0x5caf81(0x10f)](function(_0x516aa2){const _0x2e7fa5=_0x5caf81;logger[_0x2e7fa5(0x113)]('[OUTBOUND]',JSON['stringify'](_0x516aa2));});},exports[a1309_0x2a507f(0x15d)]=function(_0x59fded,_0x360656,_0x294045,_0xabf7ad,_0x3e94ac,_0x5a13b6){const _0x2b1874=a1309_0x2a507f;let _0x48b670,_0x18372c,_0x17c98a,_0x46a1e2;return _0x5a13b6[_0x2b1874(0x166)]=intUtil['stripTrailingSlash'](_0x5a13b6[_0x2b1874(0x166)]),_0x5a13b6[_0x2b1874(0x117)]=intUtil[_0x2b1874(0x16a)](_0x5a13b6[_0x2b1874(0x117)]),_0x3e94ac&&_0x3e94ac[_0x2b1874(0x12d)]?(logger['info']('['+_0x360656[_0x2b1874(0x157)][_0x2b1874(0x139)]()+']',_0x2b1874(0x13f)),_0x360656[_0x2b1874(0x141)]=util[_0x2b1874(0x156)](_0x2b1874(0x133),_0x5a13b6[_0x2b1874(0x117)],_0x360656[_0x2b1874(0x154)],md5(_0x360656[_0x2b1874(0x154)]))):_0x360656[_0x2b1874(0x141)]='',getConnection(_0x5a13b6)[_0x2b1874(0x142)](function(_0x35b0aa){return _0x46a1e2=_0x35b0aa,getUser(_0x5a13b6,'',_0x46a1e2);})[_0x2b1874(0x142)](function(_0x2fed02){const _0x3a923e=_0x2b1874;return _0x48b670=_0x2fed02,logger['info'](_0x3a923e(0x12c),_0x48b670['id']),getEndUser(_0x5a13b6,_0x360656[_0x3a923e(0x14f)],_0x360656[_0x3a923e(0x158)],_0x46a1e2);})[_0x2b1874(0x142)](function(_0x4e9330){const _0x30efde=_0x2b1874;return _0x18372c=_0x4e9330,logger['info'](_0x30efde(0x146),_0x18372c['id']),createTicket(_0x5a13b6,_0x48b670,_0x18372c,_0x294045,_0x360656,_0x294045[_0x30efde(0x119)],_0x46a1e2);})[_0x2b1874(0x142)](function(_0x1e0e6d){const _0x2b25ee=_0x2b1874;_0x17c98a=_0x1e0e6d,logger[_0x2b25ee(0x140)](_0x2b25ee(0x12b)),logger['info'](_0x2b25ee(0x12f),_0x17c98a['id']);})[_0x2b1874(0x10f)](function(_0x39ccc8){const _0x5509bf=_0x2b1874;logger[_0x5509bf(0x113)]('['+_0x360656[_0x5509bf(0x157)][_0x5509bf(0x139)]()+']',JSON[_0x5509bf(0x11d)](_0x39ccc8));});}; \ 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 ed6a8d1..8d486d9 100644 --- a/server/services/ami/trigger/integration/zendesk.js +++ b/server/services/ami/trigger/integration/zendesk.js @@ -1 +1 @@ -const a1146_0x420d=['ticket','type','%s/users.json','%s/search.json','md5','variableName','format','first','merge','none','uniqueid','%s/tickets.json','idField','serverUrl','Enduser\x20not\x20found,\x20creating\x20a\x20new\x20enduser!','newTab','Displaying\x20ticket\x20to\x20agent\x20in\x20a\x20new\x20tab...','remoteUri','POST','getString','Ticket\x20created!','Recording\x20is\x20enabled!','calleridnum','destcalleridname','The\x20Enduser\x20ID\x20is:','type:user\x20role:end-user\x20phone:%s','request-promise-native','%s/channels/voice/agents/%d/tickets/%d/display.json','application/json','email','emit','replace','Fields','string','count','Displaying\x20ticket\x20to\x20agent...','user','destcalleridnum','../../../../rediscache','nameField','find','Searching\x20enduser\x20with\x20phone','catch','%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s','push','toString','Agent\x20found!','queue','Admin\x20account\x20selected.','username','unmanaged','stripTrailingSlash','calleridname','integrationTab','type:user\x20role:agent\x20email:%s','user:%s','[OUTBOUND]\x20Error\x20running\x20Zendesk\x20integration','%s/agent/tickets/%s','%s/token:%s','recordingFormat','toLowerCase','./util','Subjects','then','The\x20User\x20ID\x20is:','Authorization','authType','%s:%s','defaults','forEach','end-user','Agent\x20not\x20found,\x20using\x20the\x20admin\x20account!','error','[QUEUE]\x20Error\x20running\x20Zendesk\x20integration','token','Zendesk\x20account\x20type\x20not\x20recognized','/api/v2','Enduser\x20found!','Caller\x20-\x20%s','Getting\x20agent\x20with\x20email','recordingURL','name','%s/users/me.json','util','results','map','inspect','custom_fields','monitor_format','trigger:browser:url','toUpperCase','variable','info','GET','password','Creating\x20new\x20ticket...','[QUEUE]','Variable','length','The\x20Ticket\x20ID\x20is:','lodash','Tags','Descriptions','customField','[OUTBOUND]','from'];(function(_0x133cf0,_0x420df7){const _0x2a00c9=function(_0x3439de){while(--_0x3439de){_0x133cf0['push'](_0x133cf0['shift']());}};_0x2a00c9(++_0x420df7);}(a1146_0x420d,0x148));const a1146_0x2a00=function(_0x133cf0,_0x420df7){_0x133cf0=_0x133cf0-0x0;let _0x2a00c9=a1146_0x420d[_0x133cf0];return _0x2a00c9;};const _0x488f6a=a1146_0x2a00;'use strict';const _=require(_0x488f6a('0x5a')),rp=require(_0x488f6a('0x10')),md5=require(_0x488f6a('0x64')),util=require(_0x488f6a('0x49')),intUtil=require(_0x488f6a('0x33')),logger=require('../../../../config/logger')('zendesk'),{getSocket}=require(_0x488f6a('0x1c')),io=getSocket();function emit(_0x3439de,_0x1f72d8,_0x246a6f){const _0x5d824c=_0x488f6a;io['to'](_0x3439de)[_0x5d824c('0x14')](_0x1f72d8,_0x246a6f);}const headers={'Content-Type':_0x488f6a('0x12'),'Accept':'application/json'};function getTicket(_0x586f38,_0x53909c,_0x529e4d,_0x4591b7,_0x50e817){const _0x193129=_0x488f6a;return logger[_0x193129('0x52')](_0x193129('0x55')),request({'uri':util['format'](_0x193129('0x1'),_0x586f38[_0x193129('0x7')]),'method':'POST','body':{'ticket':_[_0x193129('0x68')]({'requester_id':_0x529e4d['id'],'submitter_id':_0x53909c?_0x53909c['id']:undefined,'assignee_id':_0x53909c?_0x53909c['id']:undefined,'tags':getTags(_0x4591b7[_0x193129('0x5b')],_0x193129('0x47')),'subject':intUtil[_0x193129('0x9')](_0x4591b7[_0x193129('0x34')],_0x50e817,'\x20'),'description':intUtil[_0x193129('0x9')](_0x4591b7[_0x193129('0x5c')],_0x50e817,'\x0a'),'comment':{'public':![],'body':intUtil[_0x193129('0x9')](_0x4591b7[_0x193129('0x5c')],_0x50e817,'\x0a')}},getCustomFields(_0x4591b7[_0x193129('0x16')],_0x50e817))}})[_0x193129('0x35')](function(_0xd1ac19){const _0x76c7a2=_0x193129;return logger[_0x76c7a2('0x52')](_0x76c7a2('0xa')),_0xd1ac19[_0x76c7a2('0x60')];});}function getUser(_0x2e785f,_0x32e20b){const _0x4ec2b0=_0x488f6a;return intUtil['validateEmail'](_0x32e20b)?(logger[_0x4ec2b0('0x52')](_0x4ec2b0('0x45'),_0x32e20b),request({'uri':util[_0x4ec2b0('0x66')](_0x4ec2b0('0x63'),_0x2e785f[_0x4ec2b0('0x7')]),'qs':{'query':util[_0x4ec2b0('0x66')](_0x4ec2b0('0x2c'),_0x32e20b)}})[_0x4ec2b0('0x35')](function(_0x1e80f4){const _0x11a072=_0x4ec2b0;return _0x1e80f4[_0x11a072('0x18')]?(logger[_0x11a072('0x52')](_0x11a072('0x24')),_[_0x11a072('0x1e')](_0x1e80f4[_0x11a072('0x4a')],{'email':_0x32e20b,'role':'agent'})):(logger[_0x11a072('0x52')](_0x11a072('0x3d')),request({'uri':util['format']('%s/users/me.json',_0x2e785f[_0x11a072('0x7')])})['then'](function(_0x3da1ba){const _0x1e4602=_0x11a072;return logger[_0x1e4602('0x52')](_0x1e4602('0x26')),_0x3da1ba[_0x1e4602('0x1a')];}));})):(logger[_0x4ec2b0('0x52')](_0x4ec2b0('0x3d')),request({'uri':util['format'](_0x4ec2b0('0x48'),_0x2e785f['remoteUri'])})['then'](function(_0x21a409){const _0x2ac863=_0x4ec2b0;return logger[_0x2ac863('0x52')](_0x2ac863('0x26')),_0x21a409[_0x2ac863('0x1a')];}));}function getEndUser(_0x2f44c0,_0xa211dd,_0x3815ad){const _0x437743=_0x488f6a;return logger['info'](_0x437743('0x1f'),_0x3815ad),request({'uri':util['format'](_0x437743('0x63'),_0x2f44c0[_0x437743('0x7')]),'qs':{'query':util[_0x437743('0x66')](_0x437743('0xf'),_0x3815ad)}})[_0x437743('0x35')](function(_0x3e7a4a){const _0x330948=_0x437743;let _0x43503c;return _0x3e7a4a['results']['length']&&(_0x3e7a4a['results']=_['filter'](_0x3e7a4a['results'],{'suspended':![],'role':_0x330948('0x3c')}),_0x3e7a4a[_0x330948('0x4a')][_0x330948('0x58')]&&(_0x43503c=_[_0x330948('0x67')](_0x3e7a4a[_0x330948('0x4a')]))),_0x43503c?(logger['info'](_0x330948('0x43')),_0x43503c):(logger[_0x330948('0x52')](_0x330948('0x4')),request({'uri':util[_0x330948('0x66')](_0x330948('0x62'),_0x2f44c0[_0x330948('0x7')]),'method':_0x330948('0x8'),'body':{'user':{'role':'end-user','name':util[_0x330948('0x66')](_0x330948('0x44'),_0xa211dd||_0x3815ad),'phone':_0x3815ad}}})['then'](function(_0xf771f2){const _0x59cb56=_0x330948;return logger[_0x59cb56('0x52')]('Enduser\x20created.'),_0xf771f2[_0x59cb56('0x1a')];}));});}function getAuth(_0x7eec41){const _0x36c2d3=_0x488f6a;let _0x50b2e7;if(_0x7eec41[_0x36c2d3('0x38')]===_0x36c2d3('0x54'))_0x50b2e7=util['format'](_0x36c2d3('0x39'),_0x7eec41[_0x36c2d3('0x27')],_0x7eec41[_0x36c2d3('0x54')]);else _0x7eec41[_0x36c2d3('0x38')]===_0x36c2d3('0x40')&&(_0x50b2e7=util['format'](_0x36c2d3('0x30'),_0x7eec41[_0x36c2d3('0x27')],_0x7eec41[_0x36c2d3('0x40')]));return util[_0x36c2d3('0x66')]('Basic\x20%s',Buffer[_0x36c2d3('0x5f')](_0x50b2e7)[_0x36c2d3('0x23')]('base64'));}function request(_0x192710){const _0x5c29b5=_0x488f6a;return logger['debug']('[HTTP]',JSON['stringify'](_0x192710)),rp(_[_0x5c29b5('0x3a')](_0x192710,{'method':_0x5c29b5('0x53'),'headers':headers,'json':!![]}));}function getTags(_0x3c25ea,_0x80b29e){const _0x476d60=_0x488f6a;let _0x10a770=[];return _0x3c25ea&&_0x3c25ea[_0x476d60('0x58')]>0x0&&(_0x10a770=_[_0x476d60('0x4b')](_0x3c25ea,_0x80b29e)),_0x10a770;}function getCustomFields(_0x6b7708,_0x428cc9){const _0x509786=_0x488f6a,_0x516c1a={'custom_fields':[]};return _0x6b7708[_0x509786('0x58')]>0x0&&_[_0x509786('0x3b')](_0x6b7708,function(_0x5d8018){const _0x228e5e=_0x509786;if(_0x5d8018['type']===_0x228e5e('0x17')&&_0x5d8018[_0x228e5e('0x1d')]&&!_0x5d8018[_0x228e5e('0x5d')])_0x516c1a[_0x5d8018[_0x228e5e('0x1d')][_0x228e5e('0x32')]()]=_0x5d8018['content'][_0x228e5e('0x23')]();else{if(_0x5d8018['type']===_0x228e5e('0x17')&&_0x5d8018['idField']&&_0x5d8018[_0x228e5e('0x5d')])_0x516c1a[_0x228e5e('0x4d')]['push']({'id':_0x5d8018[_0x228e5e('0x2')],'value':_0x5d8018['content'][_0x228e5e('0x23')]()});else{if(_0x5d8018['type']===_0x228e5e('0x51')&&_0x5d8018[_0x228e5e('0x65')]&&_0x5d8018['idField']&&_0x5d8018[_0x228e5e('0x5d')])_0x428cc9[_0x5d8018[_0x228e5e('0x65')]]&&_0x516c1a[_0x228e5e('0x4d')][_0x228e5e('0x22')]({'id':_0x5d8018[_0x228e5e('0x2')],'value':_0x428cc9[_0x5d8018[_0x228e5e('0x65')]][_0x228e5e('0x23')]()});else _0x5d8018[_0x228e5e('0x61')]==='customVariable'&&_0x5d8018[_0x228e5e('0x57')]&&_0x5d8018[_0x228e5e('0x57')][_0x228e5e('0x47')]&&_0x5d8018[_0x228e5e('0x2')]&&_0x5d8018[_0x228e5e('0x5d')]&&(_0x428cc9[_0x5d8018[_0x228e5e('0x57')]['name'][_0x228e5e('0x32')]()]&&_0x516c1a['custom_fields'][_0x228e5e('0x22')]({'id':_0x5d8018['idField'],'value':_0x428cc9[_0x5d8018[_0x228e5e('0x57')]['name'][_0x228e5e('0x32')]()][_0x228e5e('0x23')]()}));}}}),_0x516c1a;}exports[_0x488f6a('0x25')]=function(_0x2c2432,_0xa793c9,_0x334f97,_0x2aaa81,_0x1efaa8,_0x1cf279){const _0xb8211d=_0x488f6a;let _0x6b69a7,_0x3c07ce;return _0x1cf279[_0xb8211d('0x7')]=intUtil[_0xb8211d('0x29')](_0x1cf279['remoteUri']),_0x1cf279[_0xb8211d('0x3')]=intUtil[_0xb8211d('0x29')](_0x1cf279['serverUrl']),_0x1efaa8&&_0x1efaa8['monitor_format']?(logger[_0xb8211d('0x52')](_0xb8211d('0x56'),'Recording\x20is\x20enabled!'),_0xa793c9[_0xb8211d('0x46')]=util[_0xb8211d('0x66')](_0xb8211d('0x21'),_0x1cf279[_0xb8211d('0x3')],_0xa793c9[_0xb8211d('0x0')],md5(_0xa793c9[_0xb8211d('0x0')]))):_0xa793c9[_0xb8211d('0x46')]='',headers[_0xb8211d('0x37')]=getAuth(_0x1cf279),getUser(_0x1cf279,_0x2aaa81['email'])[_0xb8211d('0x35')](function(_0x23ec06){const _0xfb58be=_0xb8211d;return _0x6b69a7=_0x23ec06,logger['info'](_0xfb58be('0x36'),_0x6b69a7['id']),getEndUser(_0x1cf279,_0xa793c9[_0xfb58be('0x2a')],_0xa793c9[_0xfb58be('0xc')]);})['then'](function(_0x10dcf5){const _0x36e4da=_0xb8211d;return _0x3c07ce=_0x10dcf5,logger[_0x36e4da('0x52')](_0x36e4da('0xe'),_0x3c07ce['id']),getTicket(_0x1cf279,_0x6b69a7,_0x3c07ce,_0x334f97,_0xa793c9);})[_0xb8211d('0x35')](function(_0x18eeef){const _0x1eca37=_0xb8211d;if(_0x18eeef){logger[_0x1eca37('0x52')](_0x1eca37('0x59'),_0x18eeef['id']);switch(_0x1cf279['type']){case _0x1eca37('0x2b'):logger[_0x1eca37('0x52')](_0x1eca37('0x56'),'Displaying\x20ticket\x20to\x20agent...');return request({'uri':util[_0x1eca37('0x66')]('%s/channels/voice/agents/%d/tickets/%d/display.json',_0x1cf279[_0x1eca37('0x7')],_0x6b69a7['id'],_0x18eeef['id']),'method':'POST'});case _0x1eca37('0x5'):logger[_0x1eca37('0x52')](_0x1eca37('0x56'),_0x1eca37('0x6')),emit(util['format'](_0x1eca37('0x2d'),_0x2aaa81[_0x1eca37('0x47')]),_0x1eca37('0x4f'),{'uri':util[_0x1eca37('0x66')](_0x1eca37('0x2f'),_0x1cf279[_0x1eca37('0x7')][_0x1eca37('0x15')]('/api/v2'),_0x18eeef['id'])});break;default:logger[_0x1eca37('0x3e')](_0x1eca37('0x56'),_0x1eca37('0x41'));}}})[_0xb8211d('0x20')](function(_0x145ccb){const _0x1f4cdb=_0xb8211d;logger['error'](_0x1f4cdb('0x3f'),util[_0x1f4cdb('0x4c')](_0x145ccb,{'showHidden':!![],'depth':null}));});},exports['outbound']=function(_0x3aa299,_0x3fdf6e,_0x4a937b,_0x272027,_0x2c9847,_0x95030f,_0x1ecf39){const _0x40a7b1=_0x488f6a;let _0x1ccc48,_0x5cfd65;return _0x95030f[_0x40a7b1('0x7')]=intUtil[_0x40a7b1('0x29')](_0x95030f[_0x40a7b1('0x7')]),_0x95030f[_0x40a7b1('0x3')]=intUtil[_0x40a7b1('0x29')](_0x95030f[_0x40a7b1('0x3')]),_0x1ecf39&&_0x1ecf39[_0x40a7b1('0x31')]&&_0x1ecf39[_0x40a7b1('0x31')]!==_0x40a7b1('0x69')&&(logger[_0x40a7b1('0x52')](_0x40a7b1('0x5e'),_0x40a7b1('0xb')),_0x3fdf6e[_0x40a7b1('0x46')]=util[_0x40a7b1('0x66')](_0x40a7b1('0x21'),_0x95030f[_0x40a7b1('0x3')],_0x3fdf6e[_0x40a7b1('0x0')],md5(_0x3fdf6e[_0x40a7b1('0x0')]))),headers[_0x40a7b1('0x37')]=getAuth(_0x95030f),getUser(_0x95030f,_0x272027[_0x40a7b1('0x13')])[_0x40a7b1('0x35')](function(_0x14713d){const _0x15e815=_0x40a7b1;return _0x1ccc48=_0x14713d,logger['info'](_0x15e815('0x36'),_0x1ccc48['id']),getEndUser(_0x95030f,_0x3fdf6e[_0x15e815('0xd')],_0x3fdf6e[_0x15e815('0x1b')]);})[_0x40a7b1('0x35')](function(_0x9429f){const _0xa9de8f=_0x40a7b1;return _0x5cfd65=_0x9429f,logger[_0xa9de8f('0x52')](_0xa9de8f('0xe'),_0x5cfd65['id']),getTicket(_0x95030f,_0x1ccc48,_0x5cfd65,_0x4a937b,_0x3fdf6e);})[_0x40a7b1('0x35')](function(_0x285e8f){const _0x36f22e=_0x40a7b1;if(_0x285e8f){logger[_0x36f22e('0x52')](_0x36f22e('0x59'),_0x285e8f['id']);switch(_0x95030f[_0x36f22e('0x61')]){case _0x36f22e('0x2b'):logger[_0x36f22e('0x52')](_0x36f22e('0x5e'),_0x36f22e('0x19'));return request({'uri':util[_0x36f22e('0x66')](_0x36f22e('0x11'),_0x95030f['remoteUri'],_0x1ccc48['id'],_0x285e8f['id']),'method':_0x36f22e('0x8')});case'newTab':logger[_0x36f22e('0x52')]('[OUTBOUND]',_0x36f22e('0x6')),emit(util['format'](_0x36f22e('0x2d'),_0x272027['name']),_0x36f22e('0x4f'),{'uri':util[_0x36f22e('0x66')]('%s/agent/tickets/%s',_0x95030f['remoteUri']['replace'](_0x36f22e('0x42')),_0x285e8f['id'])});break;default:logger[_0x36f22e('0x3e')]('[OUTBOUND]',_0x36f22e('0x41'));}}})[_0x40a7b1('0x20')](function(_0x2ae39c){const _0xed510e=_0x40a7b1;logger[_0xed510e('0x3e')](_0xed510e('0x2e'),util['inspect'](_0x2ae39c,{'showHidden':!![],'depth':null}));});},exports[_0x488f6a('0x28')]=function(_0x24dced,_0x30faf8,_0x189aa3,_0x207485,_0x3cea51,_0x2722aa){const _0x14a9a6=_0x488f6a;let _0x2f3f9a,_0x47d530;return _0x2722aa['remoteUri']=intUtil[_0x14a9a6('0x29')](_0x2722aa[_0x14a9a6('0x7')]),_0x2722aa[_0x14a9a6('0x3')]=intUtil['stripTrailingSlash'](_0x2722aa[_0x14a9a6('0x3')]),_0x3cea51&&_0x3cea51[_0x14a9a6('0x4e')]?(logger[_0x14a9a6('0x52')]('['+_0x30faf8['lastevent'][_0x14a9a6('0x50')]()+']','Recording\x20is\x20enabled!'),_0x30faf8[_0x14a9a6('0x46')]=util[_0x14a9a6('0x66')](_0x14a9a6('0x21'),_0x2722aa[_0x14a9a6('0x3')],_0x30faf8['uniqueid'],md5(_0x30faf8[_0x14a9a6('0x0')]))):_0x30faf8[_0x14a9a6('0x46')]='',headers[_0x14a9a6('0x37')]=getAuth(_0x2722aa),getUser(_0x2722aa)[_0x14a9a6('0x35')](function(_0xbf4d67){const _0x1ba6bc=_0x14a9a6;return _0x2f3f9a=_0xbf4d67,logger[_0x1ba6bc('0x52')](_0x1ba6bc('0x36'),_0x2f3f9a['id']),getEndUser(_0x2722aa,_0x30faf8[_0x1ba6bc('0x2a')],_0x30faf8[_0x1ba6bc('0xc')]);})[_0x14a9a6('0x35')](function(_0x3c8ab8){const _0x4b9287=_0x14a9a6;return _0x47d530=_0x3c8ab8,logger['info'](_0x4b9287('0xe'),_0x47d530['id']),getTicket(_0x2722aa,_0x2f3f9a,_0x47d530,_0x189aa3,_0x30faf8);})[_0x14a9a6('0x35')](function(_0x48eab0){const _0x47a61e=_0x14a9a6;_0x48eab0&&logger[_0x47a61e('0x52')]('The\x20Ticket\x20ID\x20is:',_0x48eab0['id']);})['catch'](function(_0x1b8289){const _0x471a23=_0x14a9a6;logger[_0x471a23('0x3e')]('['+_0x30faf8['lastevent']['toUpperCase']()+']'+'\x20Error\x20running\x20Zendesk\x20integration',util[_0x471a23('0x4c')](_0x1b8289,{'showHidden':!![],'depth':null}));});}; \ No newline at end of file +const a1310_0xd172=['customField','idField','Variable','The\x20Ticket\x20ID\x20is:','Subjects','recordingFormat','string','Ticket\x20created!','%s/token:%s','Displaying\x20ticket\x20to\x20agent\x20in\x20a\x20new\x20tab...','queue','type','Recording\x20is\x20enabled!','destcalleridnum','getString','serverUrl','error','replace','Authorization','outbound','Agent\x20not\x20found,\x20using\x20the\x20admin\x20account!','../../../../rediscache','%s/agent/tickets/%s','uniqueid','defaults','Caller\x20-\x20%s','results','Zendesk\x20account\x20type\x20not\x20recognized','%s/tickets.json','[OUTBOUND]\x20Error\x20running\x20Zendesk\x20integration','emit','lodash','unmanaged','push','request-promise-native','Getting\x20agent\x20with\x20email','Admin\x20account\x20selected.','Enduser\x20not\x20found,\x20creating\x20a\x20new\x20enduser!','user','newTab','name','username','ticket','end-user','monitor_format','agent','merge','catch','The\x20User\x20ID\x20is:','zendesk','toLowerCase','Displaying\x20ticket\x20to\x20agent...','destcalleridname','toString','find','then','from','token','Enduser\x20created.','nameField','Fields','calleridname','variableName','[HTTP]','authType','%s/users/me.json','stripTrailingSlash','recordingURL','integrationTab','The\x20Enduser\x20ID\x20is:','%s/search.json','stringify','Creating\x20new\x20ticket...','remoteUri','[QUEUE]','user:%s','POST','variable','/api/v2','password','./util','type:user\x20role:agent\x20email:%s','format','trigger:browser:url','forEach','none','base64','calleridnum','toUpperCase','custom_fields','count','application/json','Searching\x20enduser\x20with\x20phone','Descriptions','%s/channels/voice/agents/%d/tickets/%d/display.json','util','debug','%s:%s','inspect','[OUTBOUND]','type:user\x20role:end-user\x20phone:%s','length','%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s','lastevent','Enduser\x20found!','email','info','first','[QUEUE]\x20Error\x20running\x20Zendesk\x20integration','content'];(function(_0x3a27d2,_0x90473d){const _0xd172cf=function(_0x3cf983){while(--_0x3cf983){_0x3a27d2['push'](_0x3a27d2['shift']());}};_0xd172cf(++_0x90473d);}(a1310_0xd172,0x139));const a1310_0x3cf9=function(_0x3a27d2,_0x90473d){_0x3a27d2=_0x3a27d2-0x1e9;let _0xd172cf=a1310_0xd172[_0x3a27d2];return _0xd172cf;};const a1310_0x1229da=a1310_0x3cf9;'use strict';const _=require(a1310_0x1229da(0x219)),rp=require(a1310_0x1229da(0x21c)),md5=require('md5'),util=require(a1310_0x1229da(0x1eb)),intUtil=require(a1310_0x1229da(0x24a)),logger=require('../../../../config/logger')(a1310_0x1229da(0x22b)),{getSocket}=require(a1310_0x1229da(0x20f)),io=getSocket();function emit(_0x1d4c60,_0x3eef00,_0x29a5b5){const _0x25b778=a1310_0x1229da;io['to'](_0x1d4c60)[_0x25b778(0x218)](_0x3eef00,_0x29a5b5);}const headers={'Content-Type':'application/json','Accept':a1310_0x1229da(0x255)};function getTicket(_0xc2dd28,_0x42608b,_0x31e87e,_0x8d0624,_0x547bb4){const _0x2d2b3c=a1310_0x1229da;return logger[_0x2d2b3c(0x1f6)](_0x2d2b3c(0x242)),request({'uri':util[_0x2d2b3c(0x24c)](_0x2d2b3c(0x216),_0xc2dd28[_0x2d2b3c(0x243)]),'method':'POST','body':{'ticket':_[_0x2d2b3c(0x228)]({'requester_id':_0x31e87e['id'],'submitter_id':_0x42608b?_0x42608b['id']:undefined,'assignee_id':_0x42608b?_0x42608b['id']:undefined,'tags':getTags(_0x8d0624['Tags'],_0x2d2b3c(0x222)),'subject':intUtil['getString'](_0x8d0624[_0x2d2b3c(0x1fe)],_0x547bb4,'\x20'),'description':intUtil['getString'](_0x8d0624[_0x2d2b3c(0x1e9)],_0x547bb4,'\x0a'),'comment':{'public':![],'body':intUtil[_0x2d2b3c(0x208)](_0x8d0624[_0x2d2b3c(0x1e9)],_0x547bb4,'\x0a')}},getCustomFields(_0x8d0624[_0x2d2b3c(0x236)],_0x547bb4))}})[_0x2d2b3c(0x231)](function(_0x1d9cfd){const _0x541306=_0x2d2b3c;return logger[_0x541306(0x1f6)](_0x541306(0x201)),_0x1d9cfd[_0x541306(0x224)];});}function getUser(_0x36091c,_0x41045f){const _0x6de690=a1310_0x1229da;return intUtil['validateEmail'](_0x41045f)?(logger[_0x6de690(0x1f6)](_0x6de690(0x21d),_0x41045f),request({'uri':util[_0x6de690(0x24c)](_0x6de690(0x240),_0x36091c[_0x6de690(0x243)]),'qs':{'query':util['format'](_0x6de690(0x24b),_0x41045f)}})['then'](function(_0x5cc392){const _0x628b3=_0x6de690;return _0x5cc392[_0x628b3(0x254)]?(logger[_0x628b3(0x1f6)]('Agent\x20found!'),_[_0x628b3(0x230)](_0x5cc392['results'],{'email':_0x41045f,'role':_0x628b3(0x227)})):(logger[_0x628b3(0x1f6)](_0x628b3(0x20e)),request({'uri':util['format'](_0x628b3(0x23b),_0x36091c[_0x628b3(0x243)])})[_0x628b3(0x231)](function(_0x121bd3){const _0x1d00c2=_0x628b3;return logger['info'](_0x1d00c2(0x21e)),_0x121bd3['user'];}));})):(logger[_0x6de690(0x1f6)]('Agent\x20not\x20found,\x20using\x20the\x20admin\x20account!'),request({'uri':util['format']('%s/users/me.json',_0x36091c[_0x6de690(0x243)])})[_0x6de690(0x231)](function(_0x1059dc){const _0x171ce5=_0x6de690;return logger[_0x171ce5(0x1f6)](_0x171ce5(0x21e)),_0x1059dc['user'];}));}function getEndUser(_0x193be7,_0x224755,_0x3ec158){const _0x462d17=a1310_0x1229da;return logger['info'](_0x462d17(0x256),_0x3ec158),request({'uri':util[_0x462d17(0x24c)]('%s/search.json',_0x193be7[_0x462d17(0x243)]),'qs':{'query':util[_0x462d17(0x24c)](_0x462d17(0x1f0),_0x3ec158)}})[_0x462d17(0x231)](function(_0x15d5f6){const _0x4a1b52=_0x462d17;let _0x26fad8;return _0x15d5f6[_0x4a1b52(0x214)][_0x4a1b52(0x1f1)]&&(_0x15d5f6[_0x4a1b52(0x214)]=_['filter'](_0x15d5f6[_0x4a1b52(0x214)],{'suspended':![],'role':'end-user'}),_0x15d5f6[_0x4a1b52(0x214)][_0x4a1b52(0x1f1)]&&(_0x26fad8=_[_0x4a1b52(0x1f7)](_0x15d5f6[_0x4a1b52(0x214)]))),_0x26fad8?(logger[_0x4a1b52(0x1f6)](_0x4a1b52(0x1f4)),_0x26fad8):(logger[_0x4a1b52(0x1f6)](_0x4a1b52(0x21f)),request({'uri':util['format']('%s/users.json',_0x193be7[_0x4a1b52(0x243)]),'method':_0x4a1b52(0x246),'body':{'user':{'role':_0x4a1b52(0x225),'name':util[_0x4a1b52(0x24c)](_0x4a1b52(0x213),_0x224755||_0x3ec158),'phone':_0x3ec158}}})[_0x4a1b52(0x231)](function(_0x2d32f4){const _0x26716d=_0x4a1b52;return logger[_0x26716d(0x1f6)](_0x26716d(0x234)),_0x2d32f4[_0x26716d(0x220)];}));});}function getAuth(_0x2195c2){const _0x25b390=a1310_0x1229da;let _0x186b77;if(_0x2195c2[_0x25b390(0x23a)]===_0x25b390(0x249))_0x186b77=util[_0x25b390(0x24c)](_0x25b390(0x1ed),_0x2195c2[_0x25b390(0x223)],_0x2195c2[_0x25b390(0x249)]);else _0x2195c2[_0x25b390(0x23a)]===_0x25b390(0x233)&&(_0x186b77=util['format'](_0x25b390(0x202),_0x2195c2[_0x25b390(0x223)],_0x2195c2[_0x25b390(0x233)]));return util[_0x25b390(0x24c)]('Basic\x20%s',Buffer[_0x25b390(0x232)](_0x186b77)['toString'](_0x25b390(0x250)));}function request(_0x2537e5){const _0x3fbfcd=a1310_0x1229da;return logger[_0x3fbfcd(0x1ec)](_0x3fbfcd(0x239),JSON[_0x3fbfcd(0x241)](_0x2537e5)),rp(_[_0x3fbfcd(0x212)](_0x2537e5,{'method':'GET','headers':headers,'json':!![]}));}function getTags(_0x318f46,_0x386b6d){const _0x57f6f4=a1310_0x1229da;let _0x45750b=[];return _0x318f46&&_0x318f46[_0x57f6f4(0x1f1)]>0x0&&(_0x45750b=_['map'](_0x318f46,_0x386b6d)),_0x45750b;}function getCustomFields(_0x46d478,_0x170afc){const _0xeb5b5d=a1310_0x1229da,_0x3f0cc8={'custom_fields':[]};return _0x46d478['length']>0x0&&_[_0xeb5b5d(0x24e)](_0x46d478,function(_0x4b4610){const _0x4835db=_0xeb5b5d;if(_0x4b4610['type']===_0x4835db(0x200)&&_0x4b4610[_0x4835db(0x235)]&&!_0x4b4610[_0x4835db(0x1fa)])_0x3f0cc8[_0x4b4610[_0x4835db(0x235)][_0x4835db(0x22c)]()]=_0x4b4610[_0x4835db(0x1f9)][_0x4835db(0x22f)]();else{if(_0x4b4610[_0x4835db(0x205)]===_0x4835db(0x200)&&_0x4b4610[_0x4835db(0x1fb)]&&_0x4b4610[_0x4835db(0x1fa)])_0x3f0cc8[_0x4835db(0x253)][_0x4835db(0x21b)]({'id':_0x4b4610[_0x4835db(0x1fb)],'value':_0x4b4610['content'][_0x4835db(0x22f)]()});else{if(_0x4b4610['type']===_0x4835db(0x247)&&_0x4b4610[_0x4835db(0x238)]&&_0x4b4610['idField']&&_0x4b4610['customField'])_0x170afc[_0x4b4610[_0x4835db(0x238)]]&&_0x3f0cc8[_0x4835db(0x253)][_0x4835db(0x21b)]({'id':_0x4b4610[_0x4835db(0x1fb)],'value':_0x170afc[_0x4b4610[_0x4835db(0x238)]]['toString']()});else _0x4b4610['type']==='customVariable'&&_0x4b4610[_0x4835db(0x1fc)]&&_0x4b4610[_0x4835db(0x1fc)][_0x4835db(0x222)]&&_0x4b4610['idField']&&_0x4b4610[_0x4835db(0x1fa)]&&(_0x170afc[_0x4b4610[_0x4835db(0x1fc)]['name'][_0x4835db(0x22c)]()]&&_0x3f0cc8[_0x4835db(0x253)][_0x4835db(0x21b)]({'id':_0x4b4610[_0x4835db(0x1fb)],'value':_0x170afc[_0x4b4610[_0x4835db(0x1fc)][_0x4835db(0x222)][_0x4835db(0x22c)]()]['toString']()}));}}}),_0x3f0cc8;}exports[a1310_0x1229da(0x204)]=function(_0x20c8f4,_0x519c97,_0x638419,_0x5112c3,_0x35edb1,_0x34a5f3){const _0x418af8=a1310_0x1229da;let _0x3ac2e2,_0x8e6b91;return _0x34a5f3['remoteUri']=intUtil['stripTrailingSlash'](_0x34a5f3[_0x418af8(0x243)]),_0x34a5f3[_0x418af8(0x209)]=intUtil['stripTrailingSlash'](_0x34a5f3['serverUrl']),_0x35edb1&&_0x35edb1[_0x418af8(0x226)]?(logger['info']('[QUEUE]',_0x418af8(0x206)),_0x519c97[_0x418af8(0x23d)]=util[_0x418af8(0x24c)](_0x418af8(0x1f2),_0x34a5f3[_0x418af8(0x209)],_0x519c97[_0x418af8(0x211)],md5(_0x519c97[_0x418af8(0x211)]))):_0x519c97[_0x418af8(0x23d)]='',headers[_0x418af8(0x20c)]=getAuth(_0x34a5f3),getUser(_0x34a5f3,_0x5112c3['email'])[_0x418af8(0x231)](function(_0xbc3319){const _0x2c2a05=_0x418af8;return _0x3ac2e2=_0xbc3319,logger[_0x2c2a05(0x1f6)](_0x2c2a05(0x22a),_0x3ac2e2['id']),getEndUser(_0x34a5f3,_0x519c97[_0x2c2a05(0x237)],_0x519c97[_0x2c2a05(0x251)]);})[_0x418af8(0x231)](function(_0xb0ef97){const _0x1ffebb=_0x418af8;return _0x8e6b91=_0xb0ef97,logger[_0x1ffebb(0x1f6)]('The\x20Enduser\x20ID\x20is:',_0x8e6b91['id']),getTicket(_0x34a5f3,_0x3ac2e2,_0x8e6b91,_0x638419,_0x519c97);})[_0x418af8(0x231)](function(_0x5ab965){const _0x196208=_0x418af8;if(_0x5ab965){logger[_0x196208(0x1f6)](_0x196208(0x1fd),_0x5ab965['id']);switch(_0x34a5f3[_0x196208(0x205)]){case _0x196208(0x23e):logger[_0x196208(0x1f6)](_0x196208(0x244),_0x196208(0x22d));return request({'uri':util[_0x196208(0x24c)](_0x196208(0x1ea),_0x34a5f3[_0x196208(0x243)],_0x3ac2e2['id'],_0x5ab965['id']),'method':_0x196208(0x246)});case _0x196208(0x221):logger['info'](_0x196208(0x244),'Displaying\x20ticket\x20to\x20agent\x20in\x20a\x20new\x20tab...'),emit(util['format'](_0x196208(0x245),_0x5112c3[_0x196208(0x222)]),'trigger:browser:url',{'uri':util[_0x196208(0x24c)](_0x196208(0x210),_0x34a5f3['remoteUri'][_0x196208(0x20b)]('/api/v2'),_0x5ab965['id'])});break;default:logger[_0x196208(0x20a)](_0x196208(0x244),'Zendesk\x20account\x20type\x20not\x20recognized');}}})[_0x418af8(0x229)](function(_0x554e5b){const _0x56adcd=_0x418af8;logger['error'](_0x56adcd(0x1f8),util[_0x56adcd(0x1ee)](_0x554e5b,{'showHidden':!![],'depth':null}));});},exports[a1310_0x1229da(0x20d)]=function(_0x5b6e41,_0x5cb4aa,_0x493bff,_0x3f2eb2,_0x2c6539,_0x449f52,_0x463ac1){const _0x45af5d=a1310_0x1229da;let _0x5e8429,_0x570662;return _0x449f52[_0x45af5d(0x243)]=intUtil[_0x45af5d(0x23c)](_0x449f52[_0x45af5d(0x243)]),_0x449f52['serverUrl']=intUtil[_0x45af5d(0x23c)](_0x449f52[_0x45af5d(0x209)]),_0x463ac1&&_0x463ac1[_0x45af5d(0x1ff)]&&_0x463ac1[_0x45af5d(0x1ff)]!==_0x45af5d(0x24f)&&(logger['info'](_0x45af5d(0x1ef),_0x45af5d(0x206)),_0x5cb4aa[_0x45af5d(0x23d)]=util['format'](_0x45af5d(0x1f2),_0x449f52[_0x45af5d(0x209)],_0x5cb4aa[_0x45af5d(0x211)],md5(_0x5cb4aa[_0x45af5d(0x211)]))),headers['Authorization']=getAuth(_0x449f52),getUser(_0x449f52,_0x3f2eb2[_0x45af5d(0x1f5)])[_0x45af5d(0x231)](function(_0x48520c){const _0x41006d=_0x45af5d;return _0x5e8429=_0x48520c,logger[_0x41006d(0x1f6)](_0x41006d(0x22a),_0x5e8429['id']),getEndUser(_0x449f52,_0x5cb4aa[_0x41006d(0x22e)],_0x5cb4aa[_0x41006d(0x207)]);})[_0x45af5d(0x231)](function(_0x4b8d2c){const _0x25a020=_0x45af5d;return _0x570662=_0x4b8d2c,logger['info'](_0x25a020(0x23f),_0x570662['id']),getTicket(_0x449f52,_0x5e8429,_0x570662,_0x493bff,_0x5cb4aa);})['then'](function(_0x29deb6){const _0x12f4f5=_0x45af5d;if(_0x29deb6){logger[_0x12f4f5(0x1f6)](_0x12f4f5(0x1fd),_0x29deb6['id']);switch(_0x449f52['type']){case _0x12f4f5(0x23e):logger[_0x12f4f5(0x1f6)]('[OUTBOUND]',_0x12f4f5(0x22d));return request({'uri':util[_0x12f4f5(0x24c)](_0x12f4f5(0x1ea),_0x449f52[_0x12f4f5(0x243)],_0x5e8429['id'],_0x29deb6['id']),'method':_0x12f4f5(0x246)});case _0x12f4f5(0x221):logger['info'](_0x12f4f5(0x1ef),_0x12f4f5(0x203)),emit(util[_0x12f4f5(0x24c)](_0x12f4f5(0x245),_0x3f2eb2['name']),_0x12f4f5(0x24d),{'uri':util['format'](_0x12f4f5(0x210),_0x449f52[_0x12f4f5(0x243)]['replace'](_0x12f4f5(0x248)),_0x29deb6['id'])});break;default:logger[_0x12f4f5(0x20a)]('[OUTBOUND]',_0x12f4f5(0x215));}}})['catch'](function(_0x2efe2a){const _0x50ad99=_0x45af5d;logger[_0x50ad99(0x20a)](_0x50ad99(0x217),util[_0x50ad99(0x1ee)](_0x2efe2a,{'showHidden':!![],'depth':null}));});},exports[a1310_0x1229da(0x21a)]=function(_0x449ede,_0x5e6596,_0x1e67f3,_0x41bf55,_0x33bc2b,_0x4e9842){const _0x1f2d27=a1310_0x1229da;let _0x59dd32,_0x586663;return _0x4e9842[_0x1f2d27(0x243)]=intUtil[_0x1f2d27(0x23c)](_0x4e9842['remoteUri']),_0x4e9842[_0x1f2d27(0x209)]=intUtil[_0x1f2d27(0x23c)](_0x4e9842[_0x1f2d27(0x209)]),_0x33bc2b&&_0x33bc2b[_0x1f2d27(0x226)]?(logger['info']('['+_0x5e6596[_0x1f2d27(0x1f3)]['toUpperCase']()+']',_0x1f2d27(0x206)),_0x5e6596[_0x1f2d27(0x23d)]=util[_0x1f2d27(0x24c)]('%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s',_0x4e9842[_0x1f2d27(0x209)],_0x5e6596['uniqueid'],md5(_0x5e6596[_0x1f2d27(0x211)]))):_0x5e6596[_0x1f2d27(0x23d)]='',headers[_0x1f2d27(0x20c)]=getAuth(_0x4e9842),getUser(_0x4e9842)['then'](function(_0x2c82c5){const _0xc2017b=_0x1f2d27;return _0x59dd32=_0x2c82c5,logger['info'](_0xc2017b(0x22a),_0x59dd32['id']),getEndUser(_0x4e9842,_0x5e6596[_0xc2017b(0x237)],_0x5e6596[_0xc2017b(0x251)]);})[_0x1f2d27(0x231)](function(_0x203aab){const _0x301eb4=_0x1f2d27;return _0x586663=_0x203aab,logger[_0x301eb4(0x1f6)]('The\x20Enduser\x20ID\x20is:',_0x586663['id']),getTicket(_0x4e9842,_0x59dd32,_0x586663,_0x1e67f3,_0x5e6596);})[_0x1f2d27(0x231)](function(_0x20790d){const _0x19ceb5=_0x1f2d27;_0x20790d&&logger[_0x19ceb5(0x1f6)](_0x19ceb5(0x1fd),_0x20790d['id']);})[_0x1f2d27(0x229)](function(_0x1a30c0){const _0x1f4bcd=_0x1f2d27;logger[_0x1f4bcd(0x20a)]('['+_0x5e6596[_0x1f4bcd(0x1f3)][_0x1f4bcd(0x252)]()+']'+'\x20Error\x20running\x20Zendesk\x20integration',util['inspect'](_0x1a30c0,{'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 da323d1..e4ed79a 100644 --- a/server/services/ami/trigger/integration/zoho.js +++ b/server/services/ami/trigger/integration/zoho.js @@ -1 +1 @@ -const a1147_0x2a4f=['clientId','Description','Call_Result','recordingURL','Displaying\x20call\x20to\x20agent\x20in\x20a\x20new\x20tab...','Unable\x20to\x20retrieve\x20zoho\x20account\x20users:\x20','stack','called','Creating\x20new\x20call...','user','Subjects','com','Administrator','[HTTP]','access_token','Leads','The\x20failing\x20result\x20is','findIndex','Timeout','split','Rejected','calleridname','variableName','YYYY-MM-DDTHH:mm:ss','POST','uniqueid','../../../../rediscache','Subject','Abandoned','ActiveUsers','recordingFormat','nothing','answertime','user:%s','queue','[QUEUE]','isBefore','outbound','destcalleridname','zoho.eu','Call_Type','host','/downloads?type=uniqueid&token=','none','talktime','connect','utc','https://www.zohoapis.','users','Contacts','uri','destcalleridnum','zone','toLowerCase','name','https://accounts.zoho.com.cn','complete','Descriptions','moment','abandoned','then','Call_Duration','trigger:browser:url','lastevent','/crm/v2/Calls','toUpperCase','last_name','refresh_token','util','endtime','refreshToken','moduleSearch','https://accounts.zoho.com.au','What_Id','SUCCESS','https://accounts.zoho.in','code','role','The\x20Call\x20ID\x20is:','The\x20User\x20ID\x20is:','isNil','info','https://www.zohoapis.%s/crm/v2/users','idField','/crm/v2/','emit','/crm/v2/Contacts/search?criteria=((Phone:equals:','details','startCase','toString','https://crm.','Full_Name','timeout','data','starttime','Zoho-oauthtoken\x20','stringify','profile','type','email','request-promise-native','https://accounts.zoho.eu','Agent\x20found!','[OUTBOUND]','isArrayLikeObject','GET','/oauth/v2/token','/api/voice/recordings/','md5','catch','string','add','moduleCreate','Who_Id','variable','https://accounts.zoho.com','Outbound','clientSecret','/crm/EntityInfo.do?module=Calls&id=','Call\x20created!','enduserType','Variable','indexOf','./util','error','Error:\x20','Last_Name','forEach','log','agentcalledAt','stripTrailingSlash','rejected','Answered','First_Name','serverUrl','mm:ss','Failing\x20creating\x20the\x20access_token','unmanaged','Using\x20the\x20admin\x20account!','expires_in','format','getString','first_name','contact','/crm/v2/Leads/search?criteria=((Phone:equals:','Recording\x20is\x20enabled!','Fields','Inbound','monitor_format','debug'];(function(_0x1c9a8f,_0x2a4fff){const _0x177573=function(_0x55a3d3){while(--_0x55a3d3){_0x1c9a8f['push'](_0x1c9a8f['shift']());}};_0x177573(++_0x2a4fff);}(a1147_0x2a4f,0xbb));const a1147_0x1775=function(_0x1c9a8f,_0x2a4fff){_0x1c9a8f=_0x1c9a8f-0x0;let _0x177573=a1147_0x2a4f[_0x1c9a8f];return _0x177573;};const _0x569ecb=a1147_0x1775;'use strict';const _=require('lodash'),rp=require(_0x569ecb('0x3f')),md5=require(_0x569ecb('0x47')),util=require(_0x569ecb('0x1f')),intUtil=require(_0x569ecb('0x56')),moment=require(_0x569ecb('0x15')),logger=require('../../../../config/logger')('zoho'),{getSocket}=require(_0x569ecb('0x8b')),io=getSocket();function emit(_0x55a3d3,_0x5d661c,_0x13513f){const _0xfe4f64=_0x569ecb;io['to'](_0x55a3d3)[_0xfe4f64('0x30')](_0x5d661c,_0x13513f);}function request(_0x2d53e1){const _0x345cd6=_0x569ecb;return logger[_0x345cd6('0x70')](_0x345cd6('0x7e'),JSON[_0x345cd6('0x3b')](_0x2d53e1)),rp(_0x2d53e1);}function getCustomFields(_0x22ec01,_0x45d5b4){const _0x208a98=_0x569ecb,_0x32b18d={};return _0x22ec01['length']>0x0&&_[_0x208a98('0x5a')](_0x22ec01,function(_0x4f974c){const _0x1c7f36=_0x208a98;if(_0x4f974c[_0x1c7f36('0x3d')]===_0x1c7f36('0x49')&&_0x4f974c[_0x1c7f36('0x2e')])_0x32b18d[_0x4f974c[_0x1c7f36('0x2e')]]=_0x4f974c['content'][_0x1c7f36('0x34')]();else{if(_0x4f974c[_0x1c7f36('0x3d')]===_0x1c7f36('0x4d')&&_0x4f974c['variableName']&&_0x4f974c['idField']&&_0x45d5b4[_0x4f974c[_0x1c7f36('0x87')]])_0x32b18d[_0x4f974c[_0x1c7f36('0x2e')]]=_0x45d5b4[_0x4f974c[_0x1c7f36('0x87')]][_0x1c7f36('0x34')]();else _0x4f974c[_0x1c7f36('0x3d')]==='customVariable'&&_0x4f974c[_0x1c7f36('0x54')]&&_0x4f974c['Variable'][_0x1c7f36('0x11')]&&_0x4f974c['idField']&&_0x45d5b4[_0x4f974c[_0x1c7f36('0x54')]['name'][_0x1c7f36('0x10')]()]&&(_0x32b18d[_0x4f974c[_0x1c7f36('0x2e')]]=_0x45d5b4[_0x4f974c[_0x1c7f36('0x54')][_0x1c7f36('0x11')]['toLowerCase']()][_0x1c7f36('0x34')]());}}),_0x32b18d;}function getName(_0x55a5b1){const _0x3bea2a=_0x569ecb;if(_0x55a5b1[_0x3bea2a('0x55')]('\x20')>0x0){const _0xfa2983=_0x55a5b1[_0x3bea2a('0x84')](/ (.+)/);if(_0xfa2983[0x1])return _0xfa2983;}return[_0x55a5b1,_0x55a5b1];}const accountsTokens={};function getAccessToken(_0x6430b1){return new Promise(function(_0x336b04,_0x5d81b2){const _0x2c6e76=a1147_0x1775;!_[_0x2c6e76('0x2b')](accountsTokens[_0x6430b1['id']])&&!_[_0x2c6e76('0x2b')](accountsTokens[_0x6430b1['id']]['access_token'])&&(moment()[_0x2c6e76('0x95')](accountsTokens[_0x6430b1['id']][_0x2c6e76('0x66')])&&_0x336b04(accountsTokens[_0x6430b1['id']][_0x2c6e76('0x7f')]));let _0x59f031;switch(_0x6430b1[_0x2c6e76('0xf')]){case'US':_0x59f031=_0x2c6e76('0x4e');break;case'AU':_0x59f031=_0x2c6e76('0x23');break;case'EU':_0x59f031='https://accounts.zoho.eu';break;case'IN':_0x59f031=_0x2c6e76('0x26');break;case'CN':_0x59f031=_0x2c6e76('0x12');break;default:_0x59f031=_0x2c6e76('0x40');break;}const _0x24015d={'method':'POST','uri':_0x59f031+_0x2c6e76('0x45'),'qs':{'refresh_token':_0x6430b1[_0x2c6e76('0x21')],'client_id':_0x6430b1[_0x2c6e76('0x71')],'client_secret':_0x6430b1[_0x2c6e76('0x50')],'grant_type':_0x2c6e76('0x1e')},'json':!![]};return rp(_0x24015d)[_0x2c6e76('0x17')](function(_0x22b52a){const _0x50b470=_0x2c6e76;accountsTokens[_0x6430b1['id']]={'access_token':_0x22b52a[_0x50b470('0x7f')],'expires_in':moment()[_0x50b470('0x4a')](_0x22b52a[_0x50b470('0x66')],'seconds')},_0x336b04(_0x22b52a[_0x50b470('0x7f')]);})[_0x2c6e76('0x48')](function(_0x176428){const _0x32ca49=_0x2c6e76;logger[_0x32ca49('0x57')](_0x32ca49('0x63'),_0x176428['stack']),_0x5d81b2(_0x176428);});});}function getUser(_0x8c8264,_0x2de600,_0xda588a,_0x386866){const _0x4f5e70=_0x569ecb;return logger[_0x4f5e70('0x2c')]('Search\x20user'),request({'method':'GET','uri':util[_0x4f5e70('0x67')](_0x4f5e70('0x2d'),_0x2de600),'qs':{'type':_0x4f5e70('0x8e')},'headers':{'Authorization':_0x4f5e70('0x3a')+_0x8c8264},'json':!![]})['then'](function(_0x3a069a){const _0x33e6e1=_0x4f5e70;if(_0x3a069a['users']){let _0x1b70a5=-0x1;if(_[_0x33e6e1('0x43')](_0x3a069a['users']))return!_[_0x33e6e1('0x2b')](_0x386866)&&(_0x1b70a5=_[_0x33e6e1('0x82')](_0x3a069a[_0x33e6e1('0xb')],function(_0x27dd33){const _0x7a44c5=_0x33e6e1;return _0x27dd33[_0x7a44c5('0x3e')]===_0x386866;})),_0x1b70a5>=0x0?logger['info'](_0x33e6e1('0x41')):(logger['info'](_0x33e6e1('0x65')),_0x1b70a5=_['findIndex'](_0x3a069a[_0x33e6e1('0xb')],function(_0x45b52c){const _0x35f403=_0x33e6e1;return _0x45b52c[_0x35f403('0x3c')]['name']==='Administrator';})),_0x3a069a['users'][_0x1b70a5];else{if(_0x3a069a[_0x33e6e1('0x7a')]['profile'][_0x33e6e1('0x11')]===_0x33e6e1('0x7d')){logger[_0x33e6e1('0x2c')](_0x33e6e1('0x65'));const _0x103868=_0x3a069a[_0x33e6e1('0x7a')];return _0x103868;}else{logger[_0x33e6e1('0x57')]('The\x20failing\x20result\x20is',JSON[_0x33e6e1('0x3b')](_0x3a069a));throw new Error(_0x33e6e1('0x76')+JSON[_0x33e6e1('0x3b')](_0x3a069a));}}}else{logger[_0x33e6e1('0x57')](_0x33e6e1('0x81'),JSON[_0x33e6e1('0x3b')](_0x3a069a));throw new Error(_0x33e6e1('0x76')+JSON[_0x33e6e1('0x3b')](_0x3a069a));}})[_0x4f5e70('0x48')](function(_0x19082d){const _0x195006=_0x4f5e70;console[_0x195006('0x57')](_0x19082d);});}function getZohoUser(_0x49139f,_0x394b2d){return new Promise(function(_0x42b645,_0x5e84f9){const _0x59a17f=a1147_0x1775;request(_0x49139f)[_0x59a17f('0x17')](function(_0x58803d){const _0x112244=_0x59a17f;let _0x436aaf=null;_0x58803d&&(_0x436aaf=_0x58803d[_0x112244('0x38')][0x0],_0x436aaf[_0x112244('0x53')]=_0x394b2d),_0x42b645(_0x436aaf);})[_0x59a17f('0x48')](function(_0x42433e){_0x5e84f9(_0x42433e);});});}function createEndUser(_0x53ce65,_0x14ad52,_0x31f76a,_0x299d57,_0x346d27,_0x175adc){const _0xb55057=_0x569ecb;return _0x31f76a=getName(_0x31f76a),request({'method':_0xb55057('0x89'),'uri':_0xb55057('0xa')+_0x14ad52+_0xb55057('0x2f')+_['startCase'](_0x175adc['moduleCreate'])+'s','body':{'data':[{'Last_Name':_0x31f76a[0x1],'First_Name':_0x31f76a[0x0],'Phone':_0x299d57,'Owner':{'name':!_[_0xb55057('0x2b')](_0x346d27['role'][_0xb55057('0x11')])?_0x346d27[_0xb55057('0x28')][_0xb55057('0x11')]:!_[_0xb55057('0x2b')](_0x346d27[_0xb55057('0x69')])?_0x346d27[_0xb55057('0x69')]+'\x20'+_0x346d27['last_name']:_0x346d27[_0xb55057('0x1d')],'id':_0x346d27['id']}}]},'headers':{'Authorization':_0xb55057('0x3a')+_0x53ce65},'json':!![]})['then'](function(_0x5716f3){const _0x43e750=_0xb55057;if(_0x5716f3&&_0x5716f3['data'][0x0][_0x43e750('0x27')]==='SUCCESS'){const _0x335010=_0x5716f3['data'][0x0][_0x43e750('0x32')];return _0x335010[_0x43e750('0x53')]=_[_0x43e750('0x33')](_0x175adc[_0x43e750('0x4b')])+'s',_0x335010;}const _0x5270d9=_0x5716f3[_0x43e750('0x38')];logger[_0x43e750('0x57')](_0x43e750('0x81'),JSON['stringify'](_0x5270d9));throw new Error(_0x43e750('0x58')+JSON[_0x43e750('0x3b')](_0x5270d9));})['catch'](function(_0x1d5664){const _0x1e00e4=_0xb55057;console[_0x1e00e4('0x5b')]('CREATE\x20ERROR',_0x1d5664);});}function getEndUser(_0x595a6e,_0x3acf46,_0x4f6467,_0x4c6105,_0x28af6a,_0x39c155,_0x57532e){const _0x1c4f6e=_0x569ecb,_0x4e44d3={'method':_0x1c4f6e('0x44'),'uri':'','headers':{'Authorization':'Zoho-oauthtoken\x20'+_0x595a6e},'json':!![]};switch(_0x57532e[_0x1c4f6e('0x22')]){case'contact_lead':_0x4e44d3[_0x1c4f6e('0xd')]=_0x1c4f6e('0xa')+_0x3acf46+'/crm/v2/Contacts/search?criteria=((Phone:equals:'+_0x28af6a+'))';return getZohoUser(_0x4e44d3,_0x1c4f6e('0xc'))[_0x1c4f6e('0x17')](function(_0x15bf92){const _0x5f470b=_0x1c4f6e;if(_0x15bf92)return _0x15bf92;return _0x4e44d3[_0x5f470b('0xd')]=_0x5f470b('0xa')+_0x3acf46+_0x5f470b('0x6b')+_0x28af6a+'))',getZohoUser(_0x4e44d3,_0x5f470b('0x80'))[_0x5f470b('0x17')](function(_0x776244){const _0x4cfa62=_0x5f470b;if(_0x776244)return _0x776244;return _0x57532e['moduleCreate']!=_0x4cfa62('0x90')?createEndUser(_0x595a6e,_0x3acf46,_0x4c6105,_0x28af6a,_0x39c155,_0x57532e):{};});});case _0x1c4f6e('0x6a'):_0x4e44d3[_0x1c4f6e('0xd')]='https://www.zohoapis.'+_0x3acf46+_0x1c4f6e('0x31')+_0x28af6a+'))';return getZohoUser(_0x4e44d3,_0x1c4f6e('0xc'))[_0x1c4f6e('0x17')](function(_0x5e753a){const _0x1b43e9=_0x1c4f6e;if(_0x5e753a)return _0x5e753a;return _0x57532e[_0x1b43e9('0x4b')]!=_0x1b43e9('0x90')?createEndUser(_0x595a6e,_0x3acf46,_0x4c6105,_0x28af6a,_0x39c155,_0x57532e):{};});case'lead':_0x4e44d3['uri']=_0x1c4f6e('0xa')+_0x3acf46+'/crm/v2/Leads/search?criteria=((Phone:equals:'+_0x28af6a+'))';return getZohoUser(_0x4e44d3,'Leads')['then'](function(_0x1eccd4){const _0x217804=_0x1c4f6e;if(_0x1eccd4)return _0x1eccd4;return _0x57532e[_0x217804('0x4b')]!=_0x217804('0x90')?createEndUser(_0x595a6e,_0x3acf46,_0x4c6105,_0x28af6a,_0x39c155,_0x57532e):{};});}}function getCall(_0x2f5452,_0x4129e0,_0x1c3582,_0x1dcd56,_0x2e967c,_0x3498cb,_0x59c546,_0x163b61){const _0x173ba8=_0x569ecb;logger[_0x173ba8('0x2c')](_0x173ba8('0x79'));let _0x16d759={};_0x16d759['Owner']={'name':!_[_0x173ba8('0x2b')](_0x1dcd56[_0x173ba8('0x28')][_0x173ba8('0x11')])&&!_['isNil'](_0x1dcd56[_0x173ba8('0x3c')][_0x173ba8('0x11')])&&_0x1dcd56[_0x173ba8('0x3c')][_0x173ba8('0x11')]==='administrator'?_0x1dcd56[_0x173ba8('0x28')][_0x173ba8('0x11')]:!_[_0x173ba8('0x2b')](_0x1dcd56[_0x173ba8('0x69')])?_0x1dcd56[_0x173ba8('0x69')]+'\x20'+_0x1dcd56['last_name']:_0x1dcd56['last_name'],'id':_0x1dcd56['id']},_0x16d759[_0x173ba8('0x8c')]=intUtil[_0x173ba8('0x68')](_0x3498cb[_0x173ba8('0x7b')],_0x59c546,'\x20'),_0x16d759[_0x173ba8('0x72')]=intUtil[_0x173ba8('0x68')](_0x3498cb[_0x173ba8('0x14')],_0x59c546,'\x0a');_0x2e967c[_0x173ba8('0x53')]===_0x173ba8('0xc')&&(_0x16d759[_0x173ba8('0x4c')]={'name':!_['isNil'](_0x2e967c[_0x173ba8('0x36')])?_0x2e967c[_0x173ba8('0x36')]:!_[_0x173ba8('0x2b')](_0x2e967c[_0x173ba8('0x60')])?_0x2e967c['First_Name']+'\x20'+_0x2e967c['Last_Name']:_0x2e967c['Last_Name'],'id':_0x2e967c['id']});_0x2e967c[_0x173ba8('0x53')]===_0x173ba8('0x80')&&(_0x16d759[_0x173ba8('0x24')]={'name':!_['isNil'](_0x2e967c[_0x173ba8('0x36')])?_0x2e967c[_0x173ba8('0x36')]:!_[_0x173ba8('0x2b')](_0x2e967c[_0x173ba8('0x60')])?_0x2e967c[_0x173ba8('0x60')]+'\x20'+_0x2e967c[_0x173ba8('0x59')]:_0x2e967c[_0x173ba8('0x59')],'id':_0x2e967c['id']},_0x16d759['$se_module']=_['startCase'](_0x2e967c[_0x173ba8('0x53')]));if(_0x59c546[_0x173ba8('0x7')])_0x16d759[_0x173ba8('0x18')]=moment[_0x173ba8('0x9')](parseInt(_0x59c546[_0x173ba8('0x7')])*0x3e8)[_0x173ba8('0x67')](_0x173ba8('0x62'));else _0x59c546[_0x173ba8('0x91')]&&_0x59c546[_0x173ba8('0x20')]&&(_0x16d759[_0x173ba8('0x18')]=moment['utc'](moment(_0x59c546['endtime'],_0x173ba8('0x88'))['diff'](moment(_0x59c546[_0x173ba8('0x39')],_0x173ba8('0x88'))))[_0x173ba8('0x67')](_0x173ba8('0x62')));switch(_0x59c546['lastevent']){case _0x173ba8('0x78'):_0x16d759[_0x173ba8('0x73')]='Called';break;case _0x173ba8('0x13'):case _0x173ba8('0x8'):_0x16d759['Call_Result']=_0x173ba8('0x5f');break;case _0x173ba8('0x5e'):_0x16d759[_0x173ba8('0x73')]=_0x173ba8('0x85');break;case _0x173ba8('0x16'):_0x16d759[_0x173ba8('0x73')]=_0x173ba8('0x8d');break;case _0x173ba8('0x37'):_0x16d759[_0x173ba8('0x73')]=_0x173ba8('0x83');break;default:break;}return _0x16d759['Call_Start_Time']=(_0x163b61===_0x173ba8('0x0')?moment(_0x59c546[_0x173ba8('0x39')])[_0x173ba8('0x67')]('YYYY-MM-DDTHH:mm:ss'):moment(_0x59c546[_0x173ba8('0x5c')])[_0x173ba8('0x67')](_0x173ba8('0x88')))||moment()[_0x173ba8('0x67')](_0x173ba8('0x88')),_0x16d759[_0x173ba8('0x3')]=_0x163b61||_0x173ba8('0x6e'),_0x16d759=_['merge'](_0x16d759,getCustomFields(_0x3498cb[_0x173ba8('0x6d')],_0x59c546)),request({'method':'POST','uri':_0x173ba8('0xa')+_0x4129e0+_0x173ba8('0x1b'),'headers':{'Authorization':_0x173ba8('0x3a')+_0x2f5452},'body':{'data':[_0x16d759]},'json':!![]})['then'](function(_0x3da0ab){const _0x421264=_0x173ba8;if(_0x3da0ab&&_0x3da0ab[_0x421264('0x38')][0x0][_0x421264('0x27')]===_0x421264('0x25'))return logger[_0x421264('0x2c')](_0x421264('0x52')),{'id':_0x3da0ab[_0x421264('0x38')][0x0][_0x421264('0x32')]['id']};})[_0x173ba8('0x48')](function(_0x4f8e94){const _0x23d59a=_0x173ba8;logger['info']('err',_0x4f8e94[_0x23d59a('0x77')]),console[_0x23d59a('0x5b')]('err',_0x4f8e94);});}exports[_0x569ecb('0x93')]=function(_0x8c042b,_0x429484,_0x5cc2e0,_0x305b18,_0x307555,_0x42bff6){const _0x367589=_0x569ecb;let _0xccbb3b,_0x4eb2f1,_0x1744ca;_0x42bff6[_0x367589('0x4')]=intUtil[_0x367589('0x5d')](_0x42bff6[_0x367589('0x4')]),_0x42bff6['serverUrl']=intUtil['stripTrailingSlash'](_0x42bff6[_0x367589('0x61')]);_0x307555&&_0x307555['monitor_format']?(logger['info'](_0x367589('0x94'),_0x367589('0x6c')),_0x429484[_0x367589('0x74')]=_0x42bff6[_0x367589('0x61')]+_0x367589('0x46')+_0x429484[_0x367589('0x8a')]+'/downloads?type=uniqueid&token='+md5(_0x429484[_0x367589('0x8a')])):_0x429484['recordingURL']='';const _0x8810d9=_0x42bff6[_0x367589('0x4')]===_0x367589('0x2')?'eu':_0x367589('0x7c');return getAccessToken(_0x42bff6)[_0x367589('0x17')](function(_0x1098a8){const _0x4a471d=_0x367589;return _0x1744ca=_0x1098a8,getUser(_0x1744ca,_0x8810d9,_0x42bff6,_0x305b18[_0x4a471d('0x3e')]);})[_0x367589('0x17')](function(_0x4210ed){const _0x561f82=_0x367589;return _0xccbb3b=_0x4210ed,logger[_0x561f82('0x2c')]('The\x20User\x20ID\x20is:',_0xccbb3b['id']),getEndUser(_0x1744ca,_0x8810d9,_0x42bff6,_0x429484[_0x561f82('0x86')],_0x429484['calleridnum'],_0xccbb3b,_0x5cc2e0);})[_0x367589('0x17')](function(_0x290387){const _0x1af57d=_0x367589;return _0x4eb2f1=_0x290387,getCall(_0x1744ca,_0x8810d9,_0x42bff6,_0xccbb3b,_0x4eb2f1,_0x5cc2e0,_0x429484,_0x1af57d('0x6e'));})['then'](function(_0x3ca18a){const _0x20bd8e=_0x367589;_0x3ca18a&&(logger[_0x20bd8e('0x2c')](_0x20bd8e('0x29'),_0x3ca18a['id']),logger[_0x20bd8e('0x2c')](_0x20bd8e('0x94'),'Displaying\x20call\x20to\x20agent\x20in\x20a\x20new\x20tab...'),emit(util[_0x20bd8e('0x67')]('user:%s',_0x305b18[_0x20bd8e('0x11')]),_0x20bd8e('0x19'),{'uri':_0x20bd8e('0x35')+_0x42bff6[_0x20bd8e('0x4')]+_0x20bd8e('0x51')+_0x3ca18a['id']}));})[_0x367589('0x48')](function(_0x4330d5){const _0x20dfec=_0x367589;logger[_0x20dfec('0x57')](_0x20dfec('0x94'),JSON[_0x20dfec('0x3b')](_0x4330d5));});},exports['outbound']=function(_0x4b11b5,_0x3bcadf,_0x483b82,_0xb936c2,_0x40e4fb,_0x30ef3c,_0x22f21c){const _0x512ec2=_0x569ecb;let _0x169c1a,_0x59315a,_0x3a6d74;_0x30ef3c[_0x512ec2('0x4')]=intUtil[_0x512ec2('0x5d')](_0x30ef3c['host']),_0x30ef3c[_0x512ec2('0x61')]=intUtil[_0x512ec2('0x5d')](_0x30ef3c[_0x512ec2('0x61')]);_0x22f21c&&_0x22f21c['recordingFormat']&&_0x22f21c[_0x512ec2('0x8f')]!==_0x512ec2('0x6')&&(logger[_0x512ec2('0x2c')](_0x512ec2('0x42'),_0x512ec2('0x6c')),_0x3bcadf[_0x512ec2('0x74')]=_0x30ef3c[_0x512ec2('0x61')]+'/api/voice/recordings/'+_0x3bcadf['uniqueid']+_0x512ec2('0x5')+md5(_0x3bcadf[_0x512ec2('0x8a')]));const _0x38db3c=_0x30ef3c['host']===_0x512ec2('0x2')?'eu':_0x512ec2('0x7c');return getAccessToken(_0x30ef3c)[_0x512ec2('0x17')](function(_0x368b71){const _0x5a55db=_0x512ec2;return _0x3a6d74=_0x368b71,getUser(_0x3a6d74,_0x38db3c,_0x30ef3c,_0xb936c2[_0x5a55db('0x3e')]);})[_0x512ec2('0x17')](function(_0x436fb6){const _0x1f855e=_0x512ec2;return _0x169c1a=_0x436fb6,logger[_0x1f855e('0x2c')](_0x1f855e('0x2a'),_0x169c1a['id']),getEndUser(_0x3a6d74,_0x38db3c,_0x30ef3c,_0x3bcadf[_0x1f855e('0x1')],_0x3bcadf[_0x1f855e('0xe')],_0x169c1a,_0x483b82);})[_0x512ec2('0x17')](function(_0x1aa98c){const _0x4bddf0=_0x512ec2;return _0x59315a=_0x1aa98c,getCall(_0x3a6d74,_0x38db3c,_0x30ef3c,_0x169c1a,_0x59315a,_0x483b82,_0x3bcadf,_0x4bddf0('0x4f'));})[_0x512ec2('0x17')](function(_0x5b33e7){const _0x51a341=_0x512ec2;_0x5b33e7&&(logger[_0x51a341('0x2c')](_0x51a341('0x29'),_0x5b33e7['id']),logger[_0x51a341('0x2c')]('[OUTBOUND]',_0x51a341('0x75')),emit(util[_0x51a341('0x67')](_0x51a341('0x92'),_0xb936c2['name']),_0x51a341('0x19'),{'uri':_0x51a341('0x35')+_0x30ef3c[_0x51a341('0x4')]+'/crm/EntityInfo.do?module=Calls&id='+_0x5b33e7['id']}));})['catch'](function(_0x383377){const _0x3e96d9=_0x512ec2;logger[_0x3e96d9('0x57')](_0x3e96d9('0x42'),JSON[_0x3e96d9('0x3b')](_0x383377));});},exports[_0x569ecb('0x64')]=function(_0x3639f8,_0x394079,_0x584456,_0x1dd447,_0x443b41,_0x3cbc47){const _0x104d04=_0x569ecb;let _0x26a3f7,_0x3a37ef,_0x2cdfc9;_0x3cbc47[_0x104d04('0x4')]=intUtil['stripTrailingSlash'](_0x3cbc47['host']),_0x3cbc47[_0x104d04('0x61')]=intUtil[_0x104d04('0x5d')](_0x3cbc47['serverUrl']);_0x443b41&&_0x443b41[_0x104d04('0x6f')]?(logger[_0x104d04('0x2c')]('['+_0x394079[_0x104d04('0x1a')][_0x104d04('0x1c')]()+']',_0x104d04('0x6c')),_0x394079['recordingURL']=_0x3cbc47[_0x104d04('0x61')]+_0x104d04('0x46')+_0x394079['uniqueid']+_0x104d04('0x5')+md5(_0x394079[_0x104d04('0x8a')])):_0x394079[_0x104d04('0x74')]='';const _0x380f8d=_0x3cbc47[_0x104d04('0x4')]===_0x104d04('0x2')?'eu':_0x104d04('0x7c');return getAccessToken(_0x3cbc47)[_0x104d04('0x17')](function(_0x5c30a8){return _0x2cdfc9=_0x5c30a8,getUser(_0x2cdfc9,_0x380f8d,_0x3cbc47);})['then'](function(_0x37b000){const _0x18cf97=_0x104d04;return _0x26a3f7=_0x37b000,logger[_0x18cf97('0x2c')](_0x18cf97('0x2a'),_0x26a3f7['id']),getEndUser(_0x2cdfc9,_0x380f8d,_0x3cbc47,_0x394079['calleridname'],_0x394079['calleridnum'],_0x26a3f7,_0x584456);})[_0x104d04('0x17')](function(_0x530336){const _0x2f7c3f=_0x104d04;return _0x3a37ef=_0x530336,getCall(_0x2cdfc9,_0x380f8d,_0x3cbc47,_0x26a3f7,_0x3a37ef,_0x584456,_0x394079,_0x2f7c3f('0x6e'));})[_0x104d04('0x17')](function(_0x212705){const _0x344d77=_0x104d04;_0x212705&&logger[_0x344d77('0x2c')](_0x344d77('0x29'),_0x212705['id']);})[_0x104d04('0x48')](function(_0x1141b1){const _0x3a0f2e=_0x104d04;logger[_0x3a0f2e('0x57')]('['+_0x394079[_0x3a0f2e('0x1a')][_0x3a0f2e('0x1c')]()+']',JSON['stringify'](_0x1141b1));});}; \ No newline at end of file +const a1311_0x3c8c=['merge','https://accounts.zoho.in','data','idField','uniqueid','../../../../config/logger','monitor_format','refresh_token','Call_Type','/crm/EntityInfo.do?module=Calls&id=','trigger:browser:url','uri','unmanaged','GET','lead','variableName','startCase','toString','Contacts','connect','/api/voice/recordings/','Inbound','destcalleridnum','POST','clientId','agentcalledAt','log','Subjects','Abandoned','debug','The\x20failing\x20result\x20is','add','Agent\x20found!','stack','stringify','Timeout','catch','error','last_name','users','host','emit','access_token','enduserType','https://accounts.zoho.eu','details','content','talktime','getString','contact_lead','zoho.eu','https://www.zohoapis.%s/crm/v2/users','code','utc','Full_Name','Owner','/oauth/v2/token','err','abandoned','type','then','serverUrl','/downloads?type=uniqueid&token=','https://www.zohoapis.','indexOf','Call_Result','Variable','Creating\x20new\x20call...','Outbound','answertime','https://accounts.zoho.com.cn','profile','forEach','queue','https://accounts.zoho.com','/crm/v2/Contacts/search?criteria=((Phone:equals:','Who_Id','Using\x20the\x20admin\x20account!','recordingURL','util','calleridname','customVariable','rejected','/crm/v2/','seconds','request-promise-native','toUpperCase','endtime','https://crm.','user:%s','starttime','YYYY-MM-DDTHH:mm:ss','split','clientSecret','moduleSearch','administrator','moduleCreate','Answered','What_Id','Recording\x20is\x20enabled!','isNil','nothing','mm:ss','info','/crm/v2/Calls','https://accounts.zoho.com.au','lodash','Call_Start_Time','called','stripTrailingSlash','[OUTBOUND]','format','Subject','name','Zoho-oauthtoken\x20','first_name','/crm/v2/Leads/search?criteria=((Phone:equals:','[QUEUE]','com','variable','email','none','user','isArrayLikeObject','contact','expires_in','Leads','./util','zone','lastevent','Call\x20created!','Displaying\x20call\x20to\x20agent\x20in\x20a\x20new\x20tab...','Last_Name','Fields','The\x20User\x20ID\x20is:','isBefore','refreshToken','role','SUCCESS','Administrator','findIndex','outbound','First_Name','The\x20Call\x20ID\x20is:','toLowerCase','Call_Duration','calleridnum','recordingFormat'];(function(_0x1d37f5,_0x159ce4){const _0x3c8c49=function(_0x5bff8b){while(--_0x5bff8b){_0x1d37f5['push'](_0x1d37f5['shift']());}};_0x3c8c49(++_0x159ce4);}(a1311_0x3c8c,0x15f));const a1311_0x5bff=function(_0x1d37f5,_0x159ce4){_0x1d37f5=_0x1d37f5-0x17c;let _0x3c8c49=a1311_0x3c8c[_0x1d37f5];return _0x3c8c49;};const a1311_0x42e60a=a1311_0x5bff;'use strict';const _=require(a1311_0x42e60a(0x1af)),rp=require(a1311_0x42e60a(0x19a)),md5=require('md5'),util=require(a1311_0x42e60a(0x194)),intUtil=require(a1311_0x42e60a(0x1c4)),moment=require('moment'),logger=require(a1311_0x42e60a(0x1de))('zoho'),{getSocket}=require('../../../../rediscache'),io=getSocket();function emit(_0x218945,_0x24c31e,_0x2506c2){const _0x37a301=a1311_0x42e60a;io['to'](_0x218945)[_0x37a301(0x202)](_0x24c31e,_0x2506c2);}function request(_0x2751d5){const _0x3a9c8f=a1311_0x42e60a;return logger[_0x3a9c8f(0x1f6)]('[HTTP]',JSON[_0x3a9c8f(0x1fb)](_0x2751d5)),rp(_0x2751d5);}function getCustomFields(_0x44a3ee,_0x3dfcc9){const _0x1f4ce1=a1311_0x42e60a,_0x2bec8f={};return _0x44a3ee['length']>0x0&&_[_0x1f4ce1(0x18d)](_0x44a3ee,function(_0x1a98e0){const _0xa37d2c=_0x1f4ce1;if(_0x1a98e0[_0xa37d2c(0x180)]==='string'&&_0x1a98e0[_0xa37d2c(0x1dc)])_0x2bec8f[_0x1a98e0['idField']]=_0x1a98e0[_0xa37d2c(0x207)]['toString']();else{if(_0x1a98e0[_0xa37d2c(0x180)]===_0xa37d2c(0x1bc)&&_0x1a98e0[_0xa37d2c(0x1e8)]&&_0x1a98e0[_0xa37d2c(0x1dc)]&&_0x3dfcc9[_0x1a98e0[_0xa37d2c(0x1e8)]])_0x2bec8f[_0x1a98e0[_0xa37d2c(0x1dc)]]=_0x3dfcc9[_0x1a98e0[_0xa37d2c(0x1e8)]][_0xa37d2c(0x1ea)]();else _0x1a98e0[_0xa37d2c(0x180)]===_0xa37d2c(0x196)&&_0x1a98e0[_0xa37d2c(0x187)]&&_0x1a98e0[_0xa37d2c(0x187)][_0xa37d2c(0x1b6)]&&_0x1a98e0[_0xa37d2c(0x1dc)]&&_0x3dfcc9[_0x1a98e0[_0xa37d2c(0x187)][_0xa37d2c(0x1b6)][_0xa37d2c(0x1d5)]()]&&(_0x2bec8f[_0x1a98e0[_0xa37d2c(0x1dc)]]=_0x3dfcc9[_0x1a98e0['Variable'][_0xa37d2c(0x1b6)][_0xa37d2c(0x1d5)]()][_0xa37d2c(0x1ea)]());}}),_0x2bec8f;}function getName(_0x318e41){const _0x1e17fc=a1311_0x42e60a;if(_0x318e41[_0x1e17fc(0x185)]('\x20')>0x0){const _0x1a1f0d=_0x318e41[_0x1e17fc(0x1a1)](/ (.+)/);if(_0x1a1f0d[0x1])return _0x1a1f0d;}return[_0x318e41,_0x318e41];}const accountsTokens={};function getAccessToken(_0x2cd6a6){return new Promise(function(_0x762245,_0x4118d5){const _0x56758e=a1311_0x5bff;!_[_0x56758e(0x1a9)](accountsTokens[_0x2cd6a6['id']])&&!_[_0x56758e(0x1a9)](accountsTokens[_0x2cd6a6['id']]['access_token'])&&(moment()[_0x56758e(0x1cc)](accountsTokens[_0x2cd6a6['id']][_0x56758e(0x1c2)])&&_0x762245(accountsTokens[_0x2cd6a6['id']]['access_token']));let _0x2c0fa1;switch(_0x2cd6a6[_0x56758e(0x1c5)]){case'US':_0x2c0fa1=_0x56758e(0x18f);break;case'AU':_0x2c0fa1=_0x56758e(0x1ae);break;case'EU':_0x2c0fa1=_0x56758e(0x205);break;case'IN':_0x2c0fa1=_0x56758e(0x1da);break;case'CN':_0x2c0fa1=_0x56758e(0x18b);break;default:_0x2c0fa1=_0x56758e(0x205);break;}const _0x3638a8={'method':_0x56758e(0x1f0),'uri':_0x2c0fa1+_0x56758e(0x17d),'qs':{'refresh_token':_0x2cd6a6[_0x56758e(0x1cd)],'client_id':_0x2cd6a6[_0x56758e(0x1f1)],'client_secret':_0x2cd6a6[_0x56758e(0x1a2)],'grant_type':_0x56758e(0x1e0)},'json':!![]};return rp(_0x3638a8)[_0x56758e(0x181)](function(_0x2606ac){const _0x5d5173=_0x56758e;accountsTokens[_0x2cd6a6['id']]={'access_token':_0x2606ac[_0x5d5173(0x203)],'expires_in':moment()[_0x5d5173(0x1f8)](_0x2606ac['expires_in'],_0x5d5173(0x199))},_0x762245(_0x2606ac['access_token']);})[_0x56758e(0x1fd)](function(_0x2221ad){const _0x412f14=_0x56758e;logger['error']('Failing\x20creating\x20the\x20access_token',_0x2221ad[_0x412f14(0x1fa)]),_0x4118d5(_0x2221ad);});});}function getUser(_0x7e0615,_0x37983d,_0x44076d,_0x4284ce){const _0x160e3e=a1311_0x42e60a;return logger[_0x160e3e(0x1ac)]('Search\x20user'),request({'method':_0x160e3e(0x1e6),'uri':util['format'](_0x160e3e(0x20c),_0x37983d),'qs':{'type':'ActiveUsers'},'headers':{'Authorization':_0x160e3e(0x1b7)+_0x7e0615},'json':!![]})[_0x160e3e(0x181)](function(_0x57882b){const _0x16fab2=_0x160e3e;if(_0x57882b[_0x16fab2(0x200)]){let _0x5e24a3=-0x1;if(_[_0x16fab2(0x1c0)](_0x57882b[_0x16fab2(0x200)]))return!_[_0x16fab2(0x1a9)](_0x4284ce)&&(_0x5e24a3=_[_0x16fab2(0x1d1)](_0x57882b['users'],function(_0x243210){return _0x243210['email']===_0x4284ce;})),_0x5e24a3>=0x0?logger[_0x16fab2(0x1ac)](_0x16fab2(0x1f9)):(logger[_0x16fab2(0x1ac)](_0x16fab2(0x192)),_0x5e24a3=_[_0x16fab2(0x1d1)](_0x57882b[_0x16fab2(0x200)],function(_0x1e6688){const _0x29fe42=_0x16fab2;return _0x1e6688[_0x29fe42(0x18c)][_0x29fe42(0x1b6)]===_0x29fe42(0x1d0);})),_0x57882b[_0x16fab2(0x200)][_0x5e24a3];else{if(_0x57882b[_0x16fab2(0x1bf)]['profile'][_0x16fab2(0x1b6)]===_0x16fab2(0x1d0)){logger[_0x16fab2(0x1ac)]('Using\x20the\x20admin\x20account!');const _0x426f7d=_0x57882b[_0x16fab2(0x1bf)];return _0x426f7d;}else{logger[_0x16fab2(0x1fe)](_0x16fab2(0x1f7),JSON[_0x16fab2(0x1fb)](_0x57882b));throw new Error('Unable\x20to\x20retrieve\x20zoho\x20account\x20users:\x20'+JSON[_0x16fab2(0x1fb)](_0x57882b));}}}else{logger['error']('The\x20failing\x20result\x20is',JSON[_0x16fab2(0x1fb)](_0x57882b));throw new Error('Unable\x20to\x20retrieve\x20zoho\x20account\x20users:\x20'+JSON[_0x16fab2(0x1fb)](_0x57882b));}})[_0x160e3e(0x1fd)](function(_0x3ed6a0){const _0x3fed5c=_0x160e3e;console[_0x3fed5c(0x1fe)](_0x3ed6a0);});}function getZohoUser(_0x34fc7c,_0x1dd1e7){return new Promise(function(_0x3c1c9f,_0x5ba615){const _0x129d6c=a1311_0x5bff;request(_0x34fc7c)[_0x129d6c(0x181)](function(_0x3be7b9){const _0x57c7d5=_0x129d6c;let _0x1692b9=null;_0x3be7b9&&(_0x1692b9=_0x3be7b9[_0x57c7d5(0x1db)][0x0],_0x1692b9[_0x57c7d5(0x204)]=_0x1dd1e7),_0x3c1c9f(_0x1692b9);})[_0x129d6c(0x1fd)](function(_0x1f39fe){_0x5ba615(_0x1f39fe);});});}function createEndUser(_0x938a8,_0x42f498,_0x2ec9ac,_0x385795,_0x5955d8,_0x56540b){const _0x345d23=a1311_0x42e60a;return _0x2ec9ac=getName(_0x2ec9ac),request({'method':_0x345d23(0x1f0),'uri':_0x345d23(0x184)+_0x42f498+_0x345d23(0x198)+_[_0x345d23(0x1e9)](_0x56540b[_0x345d23(0x1a5)])+'s','body':{'data':[{'Last_Name':_0x2ec9ac[0x1],'First_Name':_0x2ec9ac[0x0],'Phone':_0x385795,'Owner':{'name':!_[_0x345d23(0x1a9)](_0x5955d8['role'][_0x345d23(0x1b6)])?_0x5955d8[_0x345d23(0x1ce)][_0x345d23(0x1b6)]:!_['isNil'](_0x5955d8['first_name'])?_0x5955d8[_0x345d23(0x1b8)]+'\x20'+_0x5955d8[_0x345d23(0x1ff)]:_0x5955d8[_0x345d23(0x1ff)],'id':_0x5955d8['id']}}]},'headers':{'Authorization':_0x345d23(0x1b7)+_0x938a8},'json':!![]})[_0x345d23(0x181)](function(_0x4c5df8){const _0x458f50=_0x345d23;if(_0x4c5df8&&_0x4c5df8['data'][0x0]['code']===_0x458f50(0x1cf)){const _0x17136a=_0x4c5df8[_0x458f50(0x1db)][0x0][_0x458f50(0x206)];return _0x17136a['enduserType']=_['startCase'](_0x56540b[_0x458f50(0x1a5)])+'s',_0x17136a;}const _0x1f84d3=_0x4c5df8[_0x458f50(0x1db)];logger['error']('The\x20failing\x20result\x20is',JSON['stringify'](_0x1f84d3));throw new Error('Error:\x20'+JSON[_0x458f50(0x1fb)](_0x1f84d3));})[_0x345d23(0x1fd)](function(_0x1e3b8e){console['log']('CREATE\x20ERROR',_0x1e3b8e);});}function getEndUser(_0x5d2a14,_0x1d302d,_0x51a423,_0x39c86d,_0x1a1e12,_0x1d5775,_0x2d2ae8){const _0x427929=a1311_0x42e60a,_0x10d85b={'method':_0x427929(0x1e6),'uri':'','headers':{'Authorization':_0x427929(0x1b7)+_0x5d2a14},'json':!![]};switch(_0x2d2ae8[_0x427929(0x1a3)]){case _0x427929(0x20a):_0x10d85b[_0x427929(0x1e4)]=_0x427929(0x184)+_0x1d302d+'/crm/v2/Contacts/search?criteria=((Phone:equals:'+_0x1a1e12+'))';return getZohoUser(_0x10d85b,_0x427929(0x1eb))[_0x427929(0x181)](function(_0x3e428f){const _0x29ed4c=_0x427929;if(_0x3e428f)return _0x3e428f;return _0x10d85b['uri']=_0x29ed4c(0x184)+_0x1d302d+_0x29ed4c(0x1b9)+_0x1a1e12+'))',getZohoUser(_0x10d85b,'Leads')['then'](function(_0x2dd661){const _0x4e3d8d=_0x29ed4c;if(_0x2dd661)return _0x2dd661;return _0x2d2ae8[_0x4e3d8d(0x1a5)]!='nothing'?createEndUser(_0x5d2a14,_0x1d302d,_0x39c86d,_0x1a1e12,_0x1d5775,_0x2d2ae8):{};});});case _0x427929(0x1c1):_0x10d85b['uri']=_0x427929(0x184)+_0x1d302d+_0x427929(0x190)+_0x1a1e12+'))';return getZohoUser(_0x10d85b,_0x427929(0x1eb))['then'](function(_0x3c4935){const _0x480db6=_0x427929;if(_0x3c4935)return _0x3c4935;return _0x2d2ae8[_0x480db6(0x1a5)]!=_0x480db6(0x1aa)?createEndUser(_0x5d2a14,_0x1d302d,_0x39c86d,_0x1a1e12,_0x1d5775,_0x2d2ae8):{};});case _0x427929(0x1e7):_0x10d85b['uri']=_0x427929(0x184)+_0x1d302d+_0x427929(0x1b9)+_0x1a1e12+'))';return getZohoUser(_0x10d85b,_0x427929(0x1c3))[_0x427929(0x181)](function(_0x239362){const _0x101c51=_0x427929;if(_0x239362)return _0x239362;return _0x2d2ae8[_0x101c51(0x1a5)]!=_0x101c51(0x1aa)?createEndUser(_0x5d2a14,_0x1d302d,_0x39c86d,_0x1a1e12,_0x1d5775,_0x2d2ae8):{};});}}function getCall(_0x3ff4c4,_0x1c4c8e,_0x1af2c2,_0x585acb,_0x2fb0eb,_0x29bf43,_0x2a7acb,_0x1d3bb6){const _0x52450a=a1311_0x42e60a;logger[_0x52450a(0x1ac)](_0x52450a(0x188));let _0x5f03e6={};_0x5f03e6[_0x52450a(0x17c)]={'name':!_[_0x52450a(0x1a9)](_0x585acb[_0x52450a(0x1ce)][_0x52450a(0x1b6)])&&!_['isNil'](_0x585acb['profile'][_0x52450a(0x1b6)])&&_0x585acb[_0x52450a(0x18c)][_0x52450a(0x1b6)]===_0x52450a(0x1a4)?_0x585acb[_0x52450a(0x1ce)][_0x52450a(0x1b6)]:!_['isNil'](_0x585acb[_0x52450a(0x1b8)])?_0x585acb[_0x52450a(0x1b8)]+'\x20'+_0x585acb[_0x52450a(0x1ff)]:_0x585acb[_0x52450a(0x1ff)],'id':_0x585acb['id']},_0x5f03e6[_0x52450a(0x1b5)]=intUtil[_0x52450a(0x209)](_0x29bf43[_0x52450a(0x1f4)],_0x2a7acb,'\x20'),_0x5f03e6['Description']=intUtil['getString'](_0x29bf43['Descriptions'],_0x2a7acb,'\x0a');_0x2fb0eb['enduserType']===_0x52450a(0x1eb)&&(_0x5f03e6[_0x52450a(0x191)]={'name':!_[_0x52450a(0x1a9)](_0x2fb0eb[_0x52450a(0x20f)])?_0x2fb0eb[_0x52450a(0x20f)]:!_[_0x52450a(0x1a9)](_0x2fb0eb['First_Name'])?_0x2fb0eb[_0x52450a(0x1d3)]+'\x20'+_0x2fb0eb[_0x52450a(0x1c9)]:_0x2fb0eb[_0x52450a(0x1c9)],'id':_0x2fb0eb['id']});_0x2fb0eb[_0x52450a(0x204)]===_0x52450a(0x1c3)&&(_0x5f03e6[_0x52450a(0x1a7)]={'name':!_['isNil'](_0x2fb0eb[_0x52450a(0x20f)])?_0x2fb0eb[_0x52450a(0x20f)]:!_[_0x52450a(0x1a9)](_0x2fb0eb['First_Name'])?_0x2fb0eb[_0x52450a(0x1d3)]+'\x20'+_0x2fb0eb['Last_Name']:_0x2fb0eb[_0x52450a(0x1c9)],'id':_0x2fb0eb['id']},_0x5f03e6['$se_module']=_[_0x52450a(0x1e9)](_0x2fb0eb[_0x52450a(0x204)]));if(_0x2a7acb['talktime'])_0x5f03e6[_0x52450a(0x1d6)]=moment[_0x52450a(0x20e)](parseInt(_0x2a7acb[_0x52450a(0x208)])*0x3e8)[_0x52450a(0x1b4)](_0x52450a(0x1ab));else _0x2a7acb[_0x52450a(0x18a)]&&_0x2a7acb['endtime']&&(_0x5f03e6[_0x52450a(0x1d6)]=moment[_0x52450a(0x20e)](moment(_0x2a7acb[_0x52450a(0x19c)],_0x52450a(0x1a0))['diff'](moment(_0x2a7acb[_0x52450a(0x19f)],_0x52450a(0x1a0))))['format'](_0x52450a(0x1ab)));switch(_0x2a7acb[_0x52450a(0x1c6)]){case _0x52450a(0x1b1):_0x5f03e6[_0x52450a(0x186)]='Called';break;case'complete':case _0x52450a(0x1ec):_0x5f03e6[_0x52450a(0x186)]=_0x52450a(0x1a6);break;case _0x52450a(0x197):_0x5f03e6[_0x52450a(0x186)]='Rejected';break;case _0x52450a(0x17f):_0x5f03e6['Call_Result']=_0x52450a(0x1f5);break;case'timeout':_0x5f03e6[_0x52450a(0x186)]=_0x52450a(0x1fc);break;default:break;}return _0x5f03e6[_0x52450a(0x1b0)]=(_0x1d3bb6===_0x52450a(0x1d2)?moment(_0x2a7acb['starttime'])[_0x52450a(0x1b4)]('YYYY-MM-DDTHH:mm:ss'):moment(_0x2a7acb[_0x52450a(0x1f2)])[_0x52450a(0x1b4)]('YYYY-MM-DDTHH:mm:ss'))||moment()['format']('YYYY-MM-DDTHH:mm:ss'),_0x5f03e6[_0x52450a(0x1e1)]=_0x1d3bb6||'Inbound',_0x5f03e6=_[_0x52450a(0x1d9)](_0x5f03e6,getCustomFields(_0x29bf43[_0x52450a(0x1ca)],_0x2a7acb)),request({'method':_0x52450a(0x1f0),'uri':_0x52450a(0x184)+_0x1c4c8e+_0x52450a(0x1ad),'headers':{'Authorization':_0x52450a(0x1b7)+_0x3ff4c4},'body':{'data':[_0x5f03e6]},'json':!![]})['then'](function(_0x5edecf){const _0x44b20b=_0x52450a;if(_0x5edecf&&_0x5edecf[_0x44b20b(0x1db)][0x0][_0x44b20b(0x20d)]===_0x44b20b(0x1cf))return logger[_0x44b20b(0x1ac)](_0x44b20b(0x1c7)),{'id':_0x5edecf[_0x44b20b(0x1db)][0x0][_0x44b20b(0x206)]['id']};})[_0x52450a(0x1fd)](function(_0x109f14){const _0x754289=_0x52450a;logger[_0x754289(0x1ac)](_0x754289(0x17e),_0x109f14[_0x754289(0x1fa)]),console[_0x754289(0x1f3)](_0x754289(0x17e),_0x109f14);});}exports[a1311_0x42e60a(0x18e)]=function(_0x588a9a,_0x50a695,_0x16a7d1,_0x4f59d5,_0x3e04cd,_0x2c9515){const _0x7c39e7=a1311_0x42e60a;let _0x1c74d7,_0x40e7aa,_0x4e0b32;_0x2c9515[_0x7c39e7(0x201)]=intUtil[_0x7c39e7(0x1b2)](_0x2c9515[_0x7c39e7(0x201)]),_0x2c9515[_0x7c39e7(0x182)]=intUtil[_0x7c39e7(0x1b2)](_0x2c9515[_0x7c39e7(0x182)]);_0x3e04cd&&_0x3e04cd[_0x7c39e7(0x1df)]?(logger['info'](_0x7c39e7(0x1ba),'Recording\x20is\x20enabled!'),_0x50a695['recordingURL']=_0x2c9515[_0x7c39e7(0x182)]+'/api/voice/recordings/'+_0x50a695[_0x7c39e7(0x1dd)]+_0x7c39e7(0x183)+md5(_0x50a695[_0x7c39e7(0x1dd)])):_0x50a695['recordingURL']='';const _0x23b410=_0x2c9515[_0x7c39e7(0x201)]===_0x7c39e7(0x20b)?'eu':'com';return getAccessToken(_0x2c9515)[_0x7c39e7(0x181)](function(_0x239e9a){return _0x4e0b32=_0x239e9a,getUser(_0x4e0b32,_0x23b410,_0x2c9515,_0x4f59d5['email']);})['then'](function(_0x13e577){const _0x15ed42=_0x7c39e7;return _0x1c74d7=_0x13e577,logger['info'](_0x15ed42(0x1cb),_0x1c74d7['id']),getEndUser(_0x4e0b32,_0x23b410,_0x2c9515,_0x50a695[_0x15ed42(0x195)],_0x50a695[_0x15ed42(0x1d7)],_0x1c74d7,_0x16a7d1);})['then'](function(_0x252c79){const _0x410715=_0x7c39e7;return _0x40e7aa=_0x252c79,getCall(_0x4e0b32,_0x23b410,_0x2c9515,_0x1c74d7,_0x40e7aa,_0x16a7d1,_0x50a695,_0x410715(0x1ee));})['then'](function(_0x676c54){const _0x1843e0=_0x7c39e7;_0x676c54&&(logger[_0x1843e0(0x1ac)]('The\x20Call\x20ID\x20is:',_0x676c54['id']),logger[_0x1843e0(0x1ac)](_0x1843e0(0x1ba),'Displaying\x20call\x20to\x20agent\x20in\x20a\x20new\x20tab...'),emit(util[_0x1843e0(0x1b4)](_0x1843e0(0x19e),_0x4f59d5[_0x1843e0(0x1b6)]),_0x1843e0(0x1e3),{'uri':_0x1843e0(0x19d)+_0x2c9515['host']+'/crm/EntityInfo.do?module=Calls&id='+_0x676c54['id']}));})['catch'](function(_0x5a1f8d){const _0x54e108=_0x7c39e7;logger['error'](_0x54e108(0x1ba),JSON[_0x54e108(0x1fb)](_0x5a1f8d));});},exports[a1311_0x42e60a(0x1d2)]=function(_0x38cab3,_0x433b93,_0x46ece8,_0x3fe983,_0x5f4055,_0xce3fa3,_0x58b26a){const _0x56da12=a1311_0x42e60a;let _0x3a92a3,_0x4642d8,_0x3920d3;_0xce3fa3[_0x56da12(0x201)]=intUtil[_0x56da12(0x1b2)](_0xce3fa3[_0x56da12(0x201)]),_0xce3fa3[_0x56da12(0x182)]=intUtil['stripTrailingSlash'](_0xce3fa3[_0x56da12(0x182)]);_0x58b26a&&_0x58b26a[_0x56da12(0x1d8)]&&_0x58b26a['recordingFormat']!==_0x56da12(0x1be)&&(logger[_0x56da12(0x1ac)]('[OUTBOUND]',_0x56da12(0x1a8)),_0x433b93[_0x56da12(0x193)]=_0xce3fa3[_0x56da12(0x182)]+_0x56da12(0x1ed)+_0x433b93[_0x56da12(0x1dd)]+'/downloads?type=uniqueid&token='+md5(_0x433b93[_0x56da12(0x1dd)]));const _0x2eeb20=_0xce3fa3[_0x56da12(0x201)]==='zoho.eu'?'eu':_0x56da12(0x1bb);return getAccessToken(_0xce3fa3)[_0x56da12(0x181)](function(_0x28c967){const _0x11b785=_0x56da12;return _0x3920d3=_0x28c967,getUser(_0x3920d3,_0x2eeb20,_0xce3fa3,_0x3fe983[_0x11b785(0x1bd)]);})[_0x56da12(0x181)](function(_0x493925){const _0xbfd960=_0x56da12;return _0x3a92a3=_0x493925,logger[_0xbfd960(0x1ac)](_0xbfd960(0x1cb),_0x3a92a3['id']),getEndUser(_0x3920d3,_0x2eeb20,_0xce3fa3,_0x433b93['destcalleridname'],_0x433b93[_0xbfd960(0x1ef)],_0x3a92a3,_0x46ece8);})[_0x56da12(0x181)](function(_0x70b789){const _0x1226a4=_0x56da12;return _0x4642d8=_0x70b789,getCall(_0x3920d3,_0x2eeb20,_0xce3fa3,_0x3a92a3,_0x4642d8,_0x46ece8,_0x433b93,_0x1226a4(0x189));})['then'](function(_0x1b6610){const _0x7b3781=_0x56da12;_0x1b6610&&(logger[_0x7b3781(0x1ac)](_0x7b3781(0x1d4),_0x1b6610['id']),logger['info']('[OUTBOUND]',_0x7b3781(0x1c8)),emit(util[_0x7b3781(0x1b4)](_0x7b3781(0x19e),_0x3fe983[_0x7b3781(0x1b6)]),_0x7b3781(0x1e3),{'uri':'https://crm.'+_0xce3fa3['host']+_0x7b3781(0x1e2)+_0x1b6610['id']}));})['catch'](function(_0x4fb968){const _0x32b2de=_0x56da12;logger[_0x32b2de(0x1fe)](_0x32b2de(0x1b3),JSON['stringify'](_0x4fb968));});},exports[a1311_0x42e60a(0x1e5)]=function(_0x3c72b8,_0x21fab4,_0x4b06ea,_0x33627d,_0x2f2f3f,_0x564c6e){const _0x23a7bf=a1311_0x42e60a;let _0x29b29b,_0x513662,_0x1e1a76;_0x564c6e[_0x23a7bf(0x201)]=intUtil[_0x23a7bf(0x1b2)](_0x564c6e[_0x23a7bf(0x201)]),_0x564c6e[_0x23a7bf(0x182)]=intUtil[_0x23a7bf(0x1b2)](_0x564c6e[_0x23a7bf(0x182)]);_0x2f2f3f&&_0x2f2f3f[_0x23a7bf(0x1df)]?(logger[_0x23a7bf(0x1ac)]('['+_0x21fab4[_0x23a7bf(0x1c6)][_0x23a7bf(0x19b)]()+']',_0x23a7bf(0x1a8)),_0x21fab4[_0x23a7bf(0x193)]=_0x564c6e[_0x23a7bf(0x182)]+_0x23a7bf(0x1ed)+_0x21fab4[_0x23a7bf(0x1dd)]+'/downloads?type=uniqueid&token='+md5(_0x21fab4[_0x23a7bf(0x1dd)])):_0x21fab4[_0x23a7bf(0x193)]='';const _0x4ed370=_0x564c6e[_0x23a7bf(0x201)]===_0x23a7bf(0x20b)?'eu':_0x23a7bf(0x1bb);return getAccessToken(_0x564c6e)[_0x23a7bf(0x181)](function(_0x5edca2){return _0x1e1a76=_0x5edca2,getUser(_0x1e1a76,_0x4ed370,_0x564c6e);})[_0x23a7bf(0x181)](function(_0x219893){const _0x5d9a79=_0x23a7bf;return _0x29b29b=_0x219893,logger[_0x5d9a79(0x1ac)](_0x5d9a79(0x1cb),_0x29b29b['id']),getEndUser(_0x1e1a76,_0x4ed370,_0x564c6e,_0x21fab4[_0x5d9a79(0x195)],_0x21fab4['calleridnum'],_0x29b29b,_0x4b06ea);})[_0x23a7bf(0x181)](function(_0x309f61){const _0x2cb709=_0x23a7bf;return _0x513662=_0x309f61,getCall(_0x1e1a76,_0x4ed370,_0x564c6e,_0x29b29b,_0x513662,_0x4b06ea,_0x21fab4,_0x2cb709(0x1ee));})[_0x23a7bf(0x181)](function(_0x402f69){const _0x13b54a=_0x23a7bf;_0x402f69&&logger[_0x13b54a(0x1ac)](_0x13b54a(0x1d4),_0x402f69['id']);})[_0x23a7bf(0x1fd)](function(_0x3f56d7){const _0x5b8bc3=_0x23a7bf;logger[_0x5b8bc3(0x1fe)]('['+_0x21fab4[_0x5b8bc3(0x1c6)][_0x5b8bc3(0x19b)]()+']',JSON['stringify'](_0x3f56d7));});}; \ 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 fff6a26..e96db69 100644 --- a/server/services/ami/trigger/script/index.js +++ b/server/services/ami/trigger/script/index.js @@ -1 +1 @@ -const a1148_0x46d8=['util','shelljs','%s\x20\x27%s\x27\x20failed\x20with\x20code\x20%d\x20and\x20error:\x20%s','trigger','render','exec','%s\x20\x27%s\x27\x20succeeded\x20with\x20output:\x20%s','data2','../../../../config/logger','Script','mustache','data3','info','format'];(function(_0xb64810,_0x46d8aa){const _0x17c719=function(_0x33d5ef){while(--_0x33d5ef){_0xb64810['push'](_0xb64810['shift']());}};_0x17c719(++_0x46d8aa);}(a1148_0x46d8,0x1b2));const a1148_0x17c7=function(_0xb64810,_0x46d8aa){_0xb64810=_0xb64810-0x0;let _0x17c719=a1148_0x46d8[_0xb64810];return _0x17c719;};const _0x57ceb2=a1148_0x17c7;'use strict';const util=require(_0x57ceb2('0x0')),sh=require(_0x57ceb2('0x1')),Mustache=require(_0x57ceb2('0xa')),logger=require(_0x57ceb2('0x8'))(_0x57ceb2('0x3'));exports[_0x57ceb2('0x5')]=function(_0x33d5ef,_0x1bb5ef){const _0x4394be=_0x57ceb2,_0x4fb1fb=_0x33d5ef[_0x4394be('0x7')]?_0x33d5ef[_0x4394be('0x7')]:_0x4394be('0x9'),_0x119eca=_0x33d5ef['data3']?Mustache[_0x4394be('0x4')](_0x33d5ef[_0x4394be('0xb')],_0x1bb5ef):_0x1bb5ef;sh[_0x4394be('0x5')](_0x119eca,function(_0x298303,_0x6df30b,_0x504698){const _0x2a0b0f=_0x4394be;_0x298303!==0x0?logger['error'](util[_0x2a0b0f('0xd')](_0x2a0b0f('0x2'),_0x4fb1fb,_0x119eca,_0x298303,_0x504698)):logger[_0x2a0b0f('0xc')](util['format'](_0x2a0b0f('0x6'),_0x4fb1fb,_0x119eca,_0x6df30b));});}; \ No newline at end of file +const a1312_0x3c7e=['data2','trigger','format','util','error','%s\x20\x27%s\x27\x20succeeded\x20with\x20output:\x20%s','data3','shelljs','../../../../config/logger','exec','Script','render','mustache','info'];(function(_0x26989b,_0x3a0a87){const _0x3c7eb6=function(_0x4f4e2d){while(--_0x4f4e2d){_0x26989b['push'](_0x26989b['shift']());}};_0x3c7eb6(++_0x3a0a87);}(a1312_0x3c7e,0x1f3));const a1312_0x4f4e=function(_0x26989b,_0x3a0a87){_0x26989b=_0x26989b-0x1a4;let _0x3c7eb6=a1312_0x3c7e[_0x26989b];return _0x3c7eb6;};const a1312_0x801364=a1312_0x4f4e;'use strict';const util=require(a1312_0x801364(0x1ac)),sh=require(a1312_0x801364(0x1b0)),Mustache=require(a1312_0x801364(0x1a7)),logger=require(a1312_0x801364(0x1b1))(a1312_0x801364(0x1aa));exports[a1312_0x801364(0x1a4)]=function(_0x2cbe16,_0x5e0280){const _0x336897=a1312_0x801364,_0xe500e2=_0x2cbe16[_0x336897(0x1a9)]?_0x2cbe16[_0x336897(0x1a9)]:_0x336897(0x1a5),_0x237696=_0x2cbe16[_0x336897(0x1af)]?Mustache[_0x336897(0x1a6)](_0x2cbe16[_0x336897(0x1af)],_0x5e0280):_0x5e0280;sh[_0x336897(0x1a4)](_0x237696,function(_0x318e8a,_0x1ef4ab,_0x39f051){const _0x10c8a6=_0x336897;_0x318e8a!==0x0?logger[_0x10c8a6(0x1ad)](util[_0x10c8a6(0x1ab)]('%s\x20\x27%s\x27\x20failed\x20with\x20code\x20%d\x20and\x20error:\x20%s',_0xe500e2,_0x237696,_0x318e8a,_0x39f051)):logger[_0x10c8a6(0x1a8)](util[_0x10c8a6(0x1ab)](_0x10c8a6(0x1ae),_0xe500e2,_0x237696,_0x1ef4ab));});}; \ 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 14d1ab8..a94d1ee 100644 --- a/server/services/ami/trigger/urlforward/index.js +++ b/server/services/ami/trigger/urlforward/index.js @@ -1 +1 @@ -const a1149_0x5517=['data1','body\x20has\x20been\x20passed\x20to\x20URLforward\x20in\x20a\x20wrong\x20format','render','data6','%s\x20%s\x20succeeded\x20with\x20status:\x20%d\x20and\x20response:\x20%s','PUT','../../../../config/logger','name','DELETE','stringify','POST','object','data5','%s\x20%s\x20failed\x20with\x20status:\x20%d\x20and\x20error:\x20%s\x20%s','trigger','toUpperCase','exec','data2','then','format','error','isNil','request-promise-native','body','GET','parse','statusCode','info','data7','lodash','stack'];(function(_0x319f93,_0x5517e2){const _0x341cdc=function(_0x30ba60){while(--_0x30ba60){_0x319f93['push'](_0x319f93['shift']());}};_0x341cdc(++_0x5517e2);}(a1149_0x5517,0xfb));const a1149_0x341c=function(_0x319f93,_0x5517e2){_0x319f93=_0x319f93-0x0;let _0x341cdc=a1149_0x5517[_0x319f93];return _0x341cdc;};const _0x2f74a8=a1149_0x341c;'use strict';const rp=require(_0x2f74a8('0x13')),util=require('util'),_=require(_0x2f74a8('0x1a')),Mustache=require('mustache'),logger=require(_0x2f74a8('0x3'))(_0x2f74a8('0xb'));exports[_0x2f74a8('0xd')]=function(_0x30ba60,_0x1c23c5){const _0x2953b8=_0x2f74a8;let _0x1ac9d8,_0x3c1278;const _0x1c5173={'method':_0x30ba60[_0x2953b8('0x1c')][_0x2953b8('0xc')](),'uri':Mustache[_0x2953b8('0x1e')](_0x30ba60[_0x2953b8('0xe')],_0x1c23c5),'json':!![],'resolveWithFullResponse':!![],'timeout':typeof parseInt(_0x30ba60[_0x2953b8('0x9')])==='number'&&parseInt(_0x30ba60['data5'])>=0x1&&parseInt(_0x30ba60['data5'])<=0xa?parseInt(_0x30ba60[_0x2953b8('0x9')])*0x3e8:0x5*0x3e8};try{_0x1c5173['headers']=_0x30ba60[_0x2953b8('0x0')]?JSON[_0x2953b8('0x16')](Mustache[_0x2953b8('0x1e')](_0x30ba60[_0x2953b8('0x0')],_0x1c23c5)):{};}catch(_0x583069){logger[_0x2953b8('0x11')](_0x583069['stack']);}switch(_0x30ba60[_0x2953b8('0x1c')][_0x2953b8('0xc')]()){case _0x2953b8('0x15'):case _0x2953b8('0x5'):_0x1ac9d8=null,_0x1c5173['qs']=_0x1c23c5;break;case _0x2953b8('0x7'):case _0x2953b8('0x2'):if(_0x30ba60[_0x2953b8('0x19')])try{_0x1ac9d8=JSON[_0x2953b8('0x16')](Mustache[_0x2953b8('0x1e')](_0x30ba60[_0x2953b8('0x19')],_0x1c23c5)),_0x1c5173[_0x2953b8('0x14')]=_0x1ac9d8;}catch(_0x32ff17){logger[_0x2953b8('0x11')](_0x32ff17[_0x2953b8('0x1b')]),logger['error'](_0x2953b8('0x1d'));}else _0x1ac9d8=_0x1c23c5,_0x1c5173[_0x2953b8('0x14')]=_0x1ac9d8;break;}logger[_0x2953b8('0x18')](util[_0x2953b8('0x10')]('%s\x20%s\x20sending\x20request\x20with\x20following\x20options:\x20%s',_0x30ba60[_0x2953b8('0x1c')],_0x30ba60['data2'],JSON['stringify'](_0x1c5173))),rp(_0x1c5173)[_0x2953b8('0xf')](function(_0x2aa383){const _0x4c5b82=_0x2953b8;_0x1ac9d8=!_[_0x4c5b82('0x12')](_0x1ac9d8)?',\x20request\x20body:\x20'+_0x1ac9d8:'',_0x3c1278=typeof _0x2aa383[_0x4c5b82('0x14')]===_0x4c5b82('0x8')?JSON[_0x4c5b82('0x6')](_0x2aa383[_0x4c5b82('0x14')]):_0x2aa383[_0x4c5b82('0x14')],logger['info'](util['format'](_0x4c5b82('0x1'),_0x30ba60['data1'],_0x30ba60[_0x4c5b82('0xe')],_0x2aa383[_0x4c5b82('0x17')],_0x3c1278));})['catch'](function(_0x46ecff){const _0x26b7c4=_0x2953b8;logger[_0x26b7c4('0x11')](util[_0x26b7c4('0x10')](_0x26b7c4('0xa'),_0x30ba60[_0x26b7c4('0x1c')],_0x30ba60[_0x26b7c4('0xe')],_0x46ecff[_0x26b7c4('0x17')],_0x46ecff[_0x26b7c4('0x4')],_0x46ecff['message']));});}; \ No newline at end of file +const a1313_0x1a63=['%s\x20%s\x20sending\x20request\x20with\x20following\x20options:\x20%s','%s\x20%s\x20failed\x20with\x20status:\x20%d\x20and\x20error:\x20%s\x20%s','GET','lodash','data1','render','util','data7','format','number','data5','stack','stringify','PUT','data6','message','info','parse','body','headers','trigger','POST','name','statusCode','DELETE',',\x20request\x20body:\x20','toUpperCase','data2','error','body\x20has\x20been\x20passed\x20to\x20URLforward\x20in\x20a\x20wrong\x20format','then','isNil','request-promise-native','%s\x20%s\x20succeeded\x20with\x20status:\x20%d\x20and\x20response:\x20%s'];(function(_0x1903a1,_0x2bce82){const _0x1a6321=function(_0x13dbba){while(--_0x13dbba){_0x1903a1['push'](_0x1903a1['shift']());}};_0x1a6321(++_0x2bce82);}(a1313_0x1a63,0x124));const a1313_0x13db=function(_0x1903a1,_0x2bce82){_0x1903a1=_0x1903a1-0x1e9;let _0x1a6321=a1313_0x1a63[_0x1903a1];return _0x1a6321;};const a1313_0x3e71f2=a1313_0x13db;'use strict';const rp=require(a1313_0x3e71f2(0x1f5)),util=require(a1313_0x3e71f2(0x1fd)),_=require(a1313_0x3e71f2(0x1fa)),Mustache=require('mustache'),logger=require('../../../../config/logger')(a1313_0x3e71f2(0x1e9));exports['exec']=function(_0x2a55c1,_0x1a466c){const _0x45e5ad=a1313_0x3e71f2;let _0x11cb29,_0x4ff98e;const _0x1eb688={'method':_0x2a55c1[_0x45e5ad(0x1fb)][_0x45e5ad(0x1ef)](),'uri':Mustache[_0x45e5ad(0x1fc)](_0x2a55c1[_0x45e5ad(0x1f0)],_0x1a466c),'json':!![],'resolveWithFullResponse':!![],'timeout':typeof parseInt(_0x2a55c1[_0x45e5ad(0x201)])===_0x45e5ad(0x200)&&parseInt(_0x2a55c1[_0x45e5ad(0x201)])>=0x1&&parseInt(_0x2a55c1[_0x45e5ad(0x201)])<=0xa?parseInt(_0x2a55c1[_0x45e5ad(0x201)])*0x3e8:0x5*0x3e8};try{_0x1eb688[_0x45e5ad(0x20a)]=_0x2a55c1['data6']?JSON['parse'](Mustache[_0x45e5ad(0x1fc)](_0x2a55c1[_0x45e5ad(0x205)],_0x1a466c)):{};}catch(_0x4e4e9e){logger['error'](_0x4e4e9e[_0x45e5ad(0x202)]);}switch(_0x2a55c1[_0x45e5ad(0x1fb)][_0x45e5ad(0x1ef)]()){case _0x45e5ad(0x1f9):case _0x45e5ad(0x1ed):_0x11cb29=null,_0x1eb688['qs']=_0x1a466c;break;case _0x45e5ad(0x1ea):case _0x45e5ad(0x204):if(_0x2a55c1[_0x45e5ad(0x1fe)])try{_0x11cb29=JSON[_0x45e5ad(0x208)](Mustache[_0x45e5ad(0x1fc)](_0x2a55c1[_0x45e5ad(0x1fe)],_0x1a466c)),_0x1eb688[_0x45e5ad(0x209)]=_0x11cb29;}catch(_0x5ad4d8){logger[_0x45e5ad(0x1f1)](_0x5ad4d8['stack']),logger[_0x45e5ad(0x1f1)](_0x45e5ad(0x1f2));}else _0x11cb29=_0x1a466c,_0x1eb688[_0x45e5ad(0x209)]=_0x11cb29;break;}logger[_0x45e5ad(0x207)](util[_0x45e5ad(0x1ff)](_0x45e5ad(0x1f7),_0x2a55c1[_0x45e5ad(0x1fb)],_0x2a55c1[_0x45e5ad(0x1f0)],JSON['stringify'](_0x1eb688))),rp(_0x1eb688)[_0x45e5ad(0x1f3)](function(_0x825ed9){const _0x13775c=_0x45e5ad;_0x11cb29=!_[_0x13775c(0x1f4)](_0x11cb29)?_0x13775c(0x1ee)+_0x11cb29:'',_0x4ff98e=typeof _0x825ed9[_0x13775c(0x209)]==='object'?JSON[_0x13775c(0x203)](_0x825ed9[_0x13775c(0x209)]):_0x825ed9[_0x13775c(0x209)],logger[_0x13775c(0x207)](util['format'](_0x13775c(0x1f6),_0x2a55c1[_0x13775c(0x1fb)],_0x2a55c1[_0x13775c(0x1f0)],_0x825ed9['statusCode'],_0x4ff98e));})['catch'](function(_0x47dc68){const _0x950860=_0x45e5ad;logger['error'](util[_0x950860(0x1ff)](_0x950860(0x1f8),_0x2a55c1['data1'],_0x2a55c1['data2'],_0x47dc68[_0x950860(0x1ec)],_0x47dc68[_0x950860(0x1eb)],_0x47dc68[_0x950860(0x206)]));});}; \ No newline at end of file diff --git a/server/services/email/client.js b/server/services/email/client.js index 09896f7..196a0e4 100644 --- a/server/services/email/client.js +++ b/server/services/email/client.js @@ -1 +1 @@ -const a1150_0x4067=['exports','http','error','rpc','routing','result','message','jayson/promise','request','then','../../config/logger','client','catch','Request','debug'];(function(_0x49028f,_0x406711){const _0x2da052=function(_0x3db1e2){while(--_0x3db1e2){_0x49028f['push'](_0x49028f['shift']());}};_0x2da052(++_0x406711);}(a1150_0x4067,0xb9));const a1150_0x2da0=function(_0x49028f,_0x406711){_0x49028f=_0x49028f-0x0;let _0x2da052=a1150_0x4067[_0x49028f];return _0x2da052;};const _0x203cab=a1150_0x2da0;'use strict';const jayson=require(_0x203cab('0x2')),logger=require(_0x203cab('0x5'))(_0x203cab('0xe')),client=jayson[_0x203cab('0x6')][_0x203cab('0xb')]({'port':0x2329});client[_0x203cab('0x8')]=function(_0x3db1e2,_0x4b61ac){return new Promise(function(_0x16a80b,_0x5aac91){const _0x2cd63f=a1150_0x2da0;return client[_0x2cd63f('0x3')](_0x3db1e2,_0x4b61ac)[_0x2cd63f('0x4')](function(_0x2c6bca){const _0x520c01=_0x2cd63f;return logger[_0x520c01('0x9')](_0x520c01('0xd'),_0x520c01('0xe'),_0x3db1e2,_0x4b61ac,_0x2c6bca),_0x2c6bca['error']?(logger[_0x520c01('0xc')](_0x520c01('0xd'),_0x520c01('0xe'),_0x3db1e2,_0x2c6bca[_0x520c01('0xc')][_0x520c01('0x1')],_0x4b61ac),_0x5aac91(_0x2c6bca['error'][_0x520c01('0x1')])):_0x16a80b(_0x2c6bca[_0x520c01('0x0')]);})[_0x2cd63f('0x7')](function(_0x1426b6){const _0x905dfe=_0x2cd63f;return logger[_0x905dfe('0xc')]('rpc',_0x905dfe('0xe'),_0x3db1e2,_0x1426b6,_0x4b61ac),_0x5aac91(_0x1426b6);});});},module[_0x203cab('0xa')]=client; \ No newline at end of file +const a1314_0x16f8=['catch','rpc','routing','debug','client','error','result','jayson/promise','exports','message','then','Request','http'];(function(_0x456412,_0x3c9ee5){const _0x16f854=function(_0x3b782c){while(--_0x3b782c){_0x456412['push'](_0x456412['shift']());}};_0x16f854(++_0x3c9ee5);}(a1314_0x16f8,0xb6));const a1314_0x3b78=function(_0x456412,_0x3c9ee5){_0x456412=_0x456412-0x1d0;let _0x16f854=a1314_0x16f8[_0x456412];return _0x16f854;};const a1314_0x1c61ca=a1314_0x3b78;'use strict';const jayson=require(a1314_0x1c61ca(0x1d7)),logger=require('../../config/logger')(a1314_0x1c61ca(0x1d2)),client=jayson[a1314_0x1c61ca(0x1d4)][a1314_0x1c61ca(0x1dc)]({'port':0x2329});client[a1314_0x1c61ca(0x1db)]=function(_0x40f324,_0x27c665){return new Promise(function(_0x1410fe,_0x2b5e7b){const _0x437bf5=a1314_0x3b78;return client['request'](_0x40f324,_0x27c665)[_0x437bf5(0x1da)](function(_0x256e98){const _0x1b5e75=_0x437bf5;return logger[_0x1b5e75(0x1d3)]('rpc','routing',_0x40f324,_0x27c665,_0x256e98),_0x256e98[_0x1b5e75(0x1d5)]?(logger[_0x1b5e75(0x1d5)](_0x1b5e75(0x1d1),_0x1b5e75(0x1d2),_0x40f324,_0x256e98[_0x1b5e75(0x1d5)][_0x1b5e75(0x1d9)],_0x27c665),_0x2b5e7b(_0x256e98['error'][_0x1b5e75(0x1d9)])):_0x1410fe(_0x256e98[_0x1b5e75(0x1d6)]);})[_0x437bf5(0x1d0)](function(_0x48c21c){const _0xcf98da=_0x437bf5;return logger[_0xcf98da(0x1d5)](_0xcf98da(0x1d1),'routing',_0x40f324,_0x48c21c,_0x27c665),_0x2b5e7b(_0x48c21c);});});},module[a1314_0x1c61ca(0x1d8)]=client; \ No newline at end of file diff --git a/server/services/email/index.js b/server/services/email/index.js index 3ecfd81..4fa87f7 100644 --- a/server/services/email/index.js +++ b/server/services/email/index.js @@ -1 +1 @@ -const a1151_0x7b9b=['Setting','refresh','./lib/email','./server','resolve','then','loginMailFrequency','findOne','../../mysqldb','getMailAccounts','listen','initMailAccounts'];(function(_0x6a076a,_0x7b9b27){const _0x1b3861=function(_0x6d1111){while(--_0x6d1111){_0x6a076a['push'](_0x6a076a['shift']());}};_0x1b3861(++_0x7b9b27);}(a1151_0x7b9b,0x13a));const a1151_0x1b38=function(_0x6a076a,_0x7b9b27){_0x6a076a=_0x6a076a-0x0;let _0x1b3861=a1151_0x7b9b[_0x6a076a];return _0x1b3861;};const _0x2d1a03=a1151_0x1b38;'use strict';require('../../globals');const server=require(_0x2d1a03('0x1')),Realtime=require('./realtime'),EmailChannel=require(_0x2d1a03('0x0')),mailAccount=require('./rpc/mailAccount'),realtime=new Realtime(),email=new EmailChannel(realtime),db=require(_0x2d1a03('0x6'))['db'];function initRealtime(){const _0x1bf8c2=_0x2d1a03;return Promise[_0x1bf8c2('0x2')]()[_0x1bf8c2('0x3')](mailAccount[_0x1bf8c2('0x7')]())[_0x1bf8c2('0x3')](realtime[_0x1bf8c2('0x9')]())[_0x1bf8c2('0x3')](function(){const _0x2ef2ac=_0x1bf8c2;return email[_0x2ef2ac('0xb')](realtime['mailAccounts']),realtime;});}function main(){const _0x1eaf30=_0x2d1a03;return server[_0x1eaf30('0x8')](realtime,email)[_0x1eaf30('0x3')](function(){return initRealtime();})[_0x1eaf30('0x3')](function(){const _0x22536c=_0x1eaf30;return db[_0x22536c('0xa')][_0x22536c('0x5')]({'attributes':['id','loginMailFrequency'],'raw':!![]});})[_0x1eaf30('0x3')](function(_0x6d1111){const _0xb853fd=_0x1eaf30;return setInterval(initRealtime,_0x6d1111[_0xb853fd('0x4')]*0x3e8);})['catch'](function(_0x442943){console['log'](_0x442943);});}main(); \ No newline at end of file +const a1315_0xa7fa=['listen','../../globals','./rpc/mailAccount','./server','initMailAccounts','then','./lib/email','loginMailFrequency','../../mysqldb','getMailAccounts','findOne','resolve','mailAccounts'];(function(_0x7314d5,_0x3424fc){const _0xa7faea=function(_0x492726){while(--_0x492726){_0x7314d5['push'](_0x7314d5['shift']());}};_0xa7faea(++_0x3424fc);}(a1315_0xa7fa,0x137));const a1315_0x4927=function(_0x7314d5,_0x3424fc){_0x7314d5=_0x7314d5-0x15f;let _0xa7faea=a1315_0xa7fa[_0x7314d5];return _0xa7faea;};const a1315_0x46d1e2=a1315_0x4927;'use strict';require(a1315_0x46d1e2(0x161));const server=require(a1315_0x46d1e2(0x163)),Realtime=require('./realtime'),EmailChannel=require(a1315_0x46d1e2(0x166)),mailAccount=require(a1315_0x46d1e2(0x162)),realtime=new Realtime(),email=new EmailChannel(realtime),{db}=require(a1315_0x46d1e2(0x168));function initRealtime(){const _0x4da398=a1315_0x46d1e2;return Promise[_0x4da398(0x16b)]()['then'](mailAccount[_0x4da398(0x169)]())[_0x4da398(0x165)](realtime[_0x4da398(0x164)]())[_0x4da398(0x165)](function(){const _0x2bcee6=_0x4da398;return email['refresh'](realtime[_0x2bcee6(0x15f)]),realtime;});}function main(){const _0x571cbe=a1315_0x46d1e2;return server[_0x571cbe(0x160)](realtime,email)['then'](function(){return initRealtime();})[_0x571cbe(0x165)](function(){const _0xc5af5b=_0x571cbe;return db['Setting'][_0xc5af5b(0x16a)]({'attributes':['id',_0xc5af5b(0x167)],'raw':!![]});})[_0x571cbe(0x165)](function(_0x3013a1){const _0x51d64f=_0x571cbe;return setInterval(initRealtime,_0x3013a1[_0x51d64f(0x167)]*0x3e8);})['catch'](function(_0x1ac8e7){console['log'](_0x1ac8e7);});}main(); \ No newline at end of file diff --git a/server/services/email/lib/email.js b/server/services/email/lib/email.js index 1cd5046..425646b 100644 --- a/server/services/email/lib/email.js +++ b/server/services/email/lib/email.js @@ -1 +1 @@ -const a1152_0x51ee=['handleImapEnd','handleImapBox','verify','active','status','Smtp','undefined','catch','name','../../../config/logger','Imap','lodash','mailAccount:update','mailAccounts','error','sendMail','Mail\x20accepted\x20from\x20routing','start\x20email\x20channel','prototype','Mail\x20not\x20accepted\x20from\x20routing\x20%s','total','refresh','messageStatus','bind','handleImapError','notify','connected','disabled','stringify','New\x20email\x20from\x20%s\x20%s\x20%s\x20to\x20%s','messages','exports','smtp','email','../../../rediscache','emit','../rpc/mailAccount','box','imapAccounts','isNil','then','verifySmtp','handleImapEmail','./smtp','md5'];(function(_0x1fcfb5,_0x51ee71){const _0xbd9d3=function(_0xb6fe5a){while(--_0xb6fe5a){_0x1fcfb5['push'](_0x1fcfb5['shift']());}};_0xbd9d3(++_0x51ee71);}(a1152_0x51ee,0x11a));const a1152_0xbd9d=function(_0x1fcfb5,_0x51ee71){_0x1fcfb5=_0x1fcfb5-0x0;let _0xbd9d3=a1152_0x51ee[_0x1fcfb5];return _0xbd9d3;};const _0x129032=a1152_0xbd9d;'use strict';const _=require(_0x129032('0x2c')),moment=require('moment'),md5=require(_0x129032('0x20')),logger=require(_0x129032('0x2a'))(_0x129032('0x15')),{getSocket}=require(_0x129032('0x16')),io=getSocket(),EmailImap=require('./imap'),EmailSmtp=require(_0x129032('0x1f')),mailAccount=require(_0x129032('0x18')),md5Accounts={};function EmailChannel(_0xb6fe5a){const _0x440f12=_0x129032;logger['info'](_0x440f12('0x5')),this['mailAccounts']=_0xb6fe5a[_0x440f12('0x1')],this['imapAccounts']={},this['smtp']=new EmailSmtp();}EmailChannel[_0x129032('0x6')]['emit']=function(_0x163b22){const _0x565ca0=_0x129032,_0x1aee97=this[_0x565ca0('0x1')][_0x163b22],_0x1527f2={'id':_0x1aee97['id'],'name':_0x1aee97[_0x565ca0('0x29')],'key':_0x1aee97['key'],'active':_0x1aee97[_0x565ca0('0x24')],'Imap':{'status':_0x1aee97[_0x565ca0('0x2b')]['status'],'messageStatus':_0x1aee97[_0x565ca0('0x2b')][_0x565ca0('0xa')],'total':_0x1aee97[_0x565ca0('0x2b')][_0x565ca0('0x8')]}};_[_0x565ca0('0x1b')](md5Accounts[_0x163b22])&&(md5Accounts[_0x163b22]={});const _0x300be9=md5(JSON[_0x565ca0('0x10')](_0x1527f2));md5Accounts[_0x163b22][_0x565ca0('0x20')]!==_0x300be9&&(md5Accounts[_0x163b22][_0x565ca0('0x20')]=_0x300be9,io['emit'](_0x565ca0('0x0'),_0x1527f2));},EmailChannel['prototype'][_0x129032('0x9')]=function(_0x3c6974){const _0x2618f1=_0x129032;for(const _0x59acfb in _0x3c6974){if(typeof _0x3c6974[_0x59acfb]!=='undefined'){if(_0x3c6974[_0x59acfb][_0x2618f1('0x2b')]&&_0x3c6974[_0x59acfb][_0x2618f1('0x24')]){const _0x3d4c25=_0x3c6974[_0x59acfb]['Imap'];typeof this[_0x2618f1('0x1a')][_0x3d4c25['id']]===_0x2618f1('0x27')&&(this[_0x2618f1('0x1a')][_0x3d4c25['id']]=new EmailImap(_0x3d4c25,_0x3c6974[_0x59acfb][_0x2618f1('0x15')]),this[_0x2618f1('0x1a')][_0x3d4c25['id']]['on'](_0x2618f1('0x19'),this[_0x2618f1('0x22')][_0x2618f1('0xb')](this,_0x59acfb)),this['imapAccounts'][_0x3d4c25['id']]['on']('email',this[_0x2618f1('0x1e')]['bind'](this,_0x59acfb)),this[_0x2618f1('0x1a')][_0x3d4c25['id']]['on']('end',this[_0x2618f1('0x21')][_0x2618f1('0xb')](this,_0x59acfb)),this[_0x2618f1('0x1a')][_0x3d4c25['id']]['on'](_0x2618f1('0x2'),this['handleImapError']['bind'](this,_0x59acfb)));}else _[_0x2618f1('0x1b')](this[_0x2618f1('0x1')][_0x59acfb]['Imap'])&&(this[_0x2618f1('0x1')][_0x59acfb][_0x2618f1('0x2b')]={}),this[_0x2618f1('0x1')][_0x59acfb][_0x2618f1('0x2b')]['status']=_0x2618f1('0xf'),this[_0x2618f1('0x1')][_0x59acfb][_0x2618f1('0x2b')][_0x2618f1('0xa')]='',this['emit'](_0x59acfb);}}},EmailChannel[_0x129032('0x6')][_0x129032('0x22')]=function(_0x892dd9,_0x4c7400){const _0x3a0212=_0x129032;if(this[_0x3a0212('0x1')][_0x892dd9])return this[_0x3a0212('0x1')][_0x892dd9]['Imap'][_0x3a0212('0x25')]=_0x3a0212('0xe'),this[_0x3a0212('0x1')][_0x892dd9][_0x3a0212('0x2b')]['messageStatus']=_0x4c7400[_0x3a0212('0x29')],_0x4c7400[_0x3a0212('0x12')]&&(this[_0x3a0212('0x1')][_0x892dd9][_0x3a0212('0x2b')][_0x3a0212('0x8')]=_0x4c7400[_0x3a0212('0x12')][_0x3a0212('0x8')]),this[_0x3a0212('0x17')](_0x892dd9);},EmailChannel['prototype'][_0x129032('0x1e')]=function(_0x18551f,_0x12f937){const _0x175465=_0x129032;logger['info'](_0x175465('0x11'),_0x12f937['firstName'],_0x12f937['lastName'],_0x12f937['from'],_0x18551f);if(this[_0x175465('0x1')][_0x18551f])return mailAccount[_0x175465('0xd')](_0x18551f,_0x12f937)['then'](function(_0x355b35){const _0x262adf=_0x175465;_0x355b35&&logger['info'](_0x262adf('0x4'));})[_0x175465('0x28')](function(_0x221863){const _0x31c3ad=_0x175465;logger['error'](_0x31c3ad('0x7'),JSON[_0x31c3ad('0x10')](_0x221863));});},EmailChannel[_0x129032('0x6')][_0x129032('0x21')]=function(_0x2cbe64){const _0x39fd86=_0x129032;this[_0x39fd86('0x1')][_0x2cbe64]&&this['mailAccounts'][_0x2cbe64][_0x39fd86('0x2b')]&&(this['imapAccounts'][this[_0x39fd86('0x1')][_0x2cbe64]['Imap']['id']]&&delete this['imapAccounts'][this[_0x39fd86('0x1')][_0x2cbe64][_0x39fd86('0x2b')]['id']],this[_0x39fd86('0x1')][_0x2cbe64][_0x39fd86('0x2b')]['lastSync']=moment(),this[_0x39fd86('0x17')](_0x2cbe64));},EmailChannel[_0x129032('0x6')][_0x129032('0xc')]=function(_0x4ab390,_0x33b7f3){const _0x48f81a=_0x129032;if(this[_0x48f81a('0x1')][_0x4ab390])return this[_0x48f81a('0x1')][_0x4ab390][_0x48f81a('0x2b')][_0x48f81a('0x25')]=_0x48f81a('0x2'),this[_0x48f81a('0x1')][_0x4ab390][_0x48f81a('0x2b')][_0x48f81a('0xa')]=_0x33b7f3,this[_0x48f81a('0x17')](_0x4ab390);},EmailChannel[_0x129032('0x6')][_0x129032('0x3')]=function(_0x11578e,_0x4b3e91){return this['smtp']['send'](_0x11578e,_0x4b3e91);},EmailChannel[_0x129032('0x6')][_0x129032('0x1d')]=function(_0x1d579f){const _0x186e02=_0x129032,_0x5820dd=this;if(this[_0x186e02('0x1')][_0x1d579f['id']])return _[_0x186e02('0x1b')](this[_0x186e02('0x1')][_0x1d579f['id']]['Smtp'])&&(this[_0x186e02('0x1')][_0x1d579f['id']][_0x186e02('0x26')]={}),this[_0x186e02('0x1')][_0x1d579f['id']][_0x186e02('0x26')]['lastSync']=moment(),new Promise(function(_0x4c1df2,_0x57ada8){const _0x192b7e=_0x186e02;return _0x5820dd[_0x192b7e('0x14')]['verify'](_0x1d579f)[_0x192b7e('0x1c')](function(_0x126cc0){const _0x13c05e=_0x192b7e;_0x5820dd[_0x13c05e('0x1')][_0x1d579f['id']][_0x13c05e('0x26')][_0x13c05e('0x25')]='verified',_0x5820dd['mailAccounts'][_0x1d579f['id']][_0x13c05e('0x26')][_0x13c05e('0xa')]='',_0x5820dd[_0x13c05e('0x17')](_0x1d579f['id']),_0x4c1df2(_0x126cc0);})[_0x192b7e('0x28')](function(_0x29eec0){const _0xd52283=_0x192b7e;_0x5820dd[_0xd52283('0x1')][_0x1d579f['id']][_0xd52283('0x26')][_0xd52283('0x25')]=_0xd52283('0x2'),_0x5820dd[_0xd52283('0x1')][_0x1d579f['id']][_0xd52283('0x26')][_0xd52283('0xa')]=_0x29eec0,_0x5820dd[_0xd52283('0x17')](_0x1d579f['id']),_0x57ada8(_0x29eec0);});});return this[_0x186e02('0x14')][_0x186e02('0x23')](_0x1d579f);},module[_0x129032('0x13')]=EmailChannel; \ No newline at end of file +const a1316_0x4467=['handleImapEmail','../../../config/logger','handleImapError','undefined','../../../rediscache','name','mailAccount:update','messages','start\x20email\x20channel','catch','verifySmtp','messageStatus','sendMail','lastName','imapAccounts','verify','key','total','mailAccounts','refresh','notify','handleImapBox','stringify','connected','info','Mail\x20not\x20accepted\x20from\x20routing\x20%s','emit','./smtp','lastSync','box','./imap','error','prototype','exports','smtp','bind','lodash','email','Smtp','firstName','status','handleImapEnd','active','isNil','end','New\x20email\x20from\x20%s\x20%s\x20%s\x20to\x20%s','md5','Imap','then'];(function(_0x3c0a61,_0xe8795c){const _0x44678d=function(_0x41a29c){while(--_0x41a29c){_0x3c0a61['push'](_0x3c0a61['shift']());}};_0x44678d(++_0xe8795c);}(a1316_0x4467,0xc6));const a1316_0x41a2=function(_0x3c0a61,_0xe8795c){_0x3c0a61=_0x3c0a61-0x1cc;let _0x44678d=a1316_0x4467[_0x3c0a61];return _0x44678d;};const a1316_0x3a9de0=a1316_0x41a2;'use strict';const _=require(a1316_0x3a9de0(0x1ee)),moment=require('moment'),md5=require(a1316_0x3a9de0(0x1f8)),logger=require(a1316_0x3a9de0(0x1fc))(a1316_0x3a9de0(0x1ef)),{getSocket}=require(a1316_0x3a9de0(0x1ce)),io=getSocket(),EmailImap=require(a1316_0x3a9de0(0x1e8)),EmailSmtp=require(a1316_0x3a9de0(0x1e5)),mailAccount=require('../rpc/mailAccount'),md5Accounts={};function EmailChannel(_0x270361){const _0x33e02d=a1316_0x3a9de0;logger[_0x33e02d(0x1e2)](_0x33e02d(0x1d2)),this[_0x33e02d(0x1dc)]=_0x270361[_0x33e02d(0x1dc)],this[_0x33e02d(0x1d8)]={},this[_0x33e02d(0x1ec)]=new EmailSmtp();}EmailChannel[a1316_0x3a9de0(0x1ea)][a1316_0x3a9de0(0x1e4)]=function(_0x2c45d4){const _0x1fb1fa=a1316_0x3a9de0,_0xcb009f=this[_0x1fb1fa(0x1dc)][_0x2c45d4],_0xe66a36={'id':_0xcb009f['id'],'name':_0xcb009f[_0x1fb1fa(0x1cf)],'key':_0xcb009f[_0x1fb1fa(0x1da)],'active':_0xcb009f[_0x1fb1fa(0x1f4)],'Imap':{'status':_0xcb009f[_0x1fb1fa(0x1f9)][_0x1fb1fa(0x1f2)],'messageStatus':_0xcb009f[_0x1fb1fa(0x1f9)][_0x1fb1fa(0x1d5)],'total':_0xcb009f[_0x1fb1fa(0x1f9)][_0x1fb1fa(0x1db)]}};_[_0x1fb1fa(0x1f5)](md5Accounts[_0x2c45d4])&&(md5Accounts[_0x2c45d4]={});const _0x158fc7=md5(JSON[_0x1fb1fa(0x1e0)](_0xe66a36));md5Accounts[_0x2c45d4][_0x1fb1fa(0x1f8)]!==_0x158fc7&&(md5Accounts[_0x2c45d4][_0x1fb1fa(0x1f8)]=_0x158fc7,io[_0x1fb1fa(0x1e4)](_0x1fb1fa(0x1d0),_0xe66a36));},EmailChannel[a1316_0x3a9de0(0x1ea)][a1316_0x3a9de0(0x1dd)]=function(_0x403792){const _0x408086=a1316_0x3a9de0;for(const _0x1f9969 in _0x403792){if(typeof _0x403792[_0x1f9969]!==_0x408086(0x1cd)){if(_0x403792[_0x1f9969]['Imap']&&_0x403792[_0x1f9969][_0x408086(0x1f4)]){const _0x4d48de=_0x403792[_0x1f9969][_0x408086(0x1f9)];typeof this[_0x408086(0x1d8)][_0x4d48de['id']]===_0x408086(0x1cd)&&(this[_0x408086(0x1d8)][_0x4d48de['id']]=new EmailImap(_0x4d48de,_0x403792[_0x1f9969][_0x408086(0x1ef)]),this[_0x408086(0x1d8)][_0x4d48de['id']]['on'](_0x408086(0x1e7),this['handleImapBox']['bind'](this,_0x1f9969)),this[_0x408086(0x1d8)][_0x4d48de['id']]['on'](_0x408086(0x1ef),this[_0x408086(0x1fb)]['bind'](this,_0x1f9969)),this[_0x408086(0x1d8)][_0x4d48de['id']]['on'](_0x408086(0x1f6),this[_0x408086(0x1f3)][_0x408086(0x1ed)](this,_0x1f9969)),this[_0x408086(0x1d8)][_0x4d48de['id']]['on'](_0x408086(0x1e9),this[_0x408086(0x1cc)][_0x408086(0x1ed)](this,_0x1f9969)));}else _[_0x408086(0x1f5)](this[_0x408086(0x1dc)][_0x1f9969]['Imap'])&&(this['mailAccounts'][_0x1f9969]['Imap']={}),this[_0x408086(0x1dc)][_0x1f9969]['Imap'][_0x408086(0x1f2)]='disabled',this[_0x408086(0x1dc)][_0x1f9969][_0x408086(0x1f9)][_0x408086(0x1d5)]='',this['emit'](_0x1f9969);}}},EmailChannel['prototype'][a1316_0x3a9de0(0x1df)]=function(_0x1b9d19,_0x585d55){const _0x1d0fcf=a1316_0x3a9de0;if(this['mailAccounts'][_0x1b9d19])return this[_0x1d0fcf(0x1dc)][_0x1b9d19][_0x1d0fcf(0x1f9)][_0x1d0fcf(0x1f2)]=_0x1d0fcf(0x1e1),this['mailAccounts'][_0x1b9d19][_0x1d0fcf(0x1f9)]['messageStatus']=_0x585d55[_0x1d0fcf(0x1cf)],_0x585d55[_0x1d0fcf(0x1d1)]&&(this[_0x1d0fcf(0x1dc)][_0x1b9d19]['Imap'][_0x1d0fcf(0x1db)]=_0x585d55[_0x1d0fcf(0x1d1)][_0x1d0fcf(0x1db)]),this[_0x1d0fcf(0x1e4)](_0x1b9d19);},EmailChannel[a1316_0x3a9de0(0x1ea)][a1316_0x3a9de0(0x1fb)]=function(_0x548509,_0x5d21f3){const _0x5ced6a=a1316_0x3a9de0;logger[_0x5ced6a(0x1e2)](_0x5ced6a(0x1f7),_0x5d21f3[_0x5ced6a(0x1f1)],_0x5d21f3[_0x5ced6a(0x1d7)],_0x5d21f3['from'],_0x548509);if(this[_0x5ced6a(0x1dc)][_0x548509])return mailAccount[_0x5ced6a(0x1de)](_0x548509,_0x5d21f3)[_0x5ced6a(0x1fa)](function(_0x351343){const _0x5aa8cf=_0x5ced6a;_0x351343&&logger[_0x5aa8cf(0x1e2)]('Mail\x20accepted\x20from\x20routing');})[_0x5ced6a(0x1d3)](function(_0x1e6c65){const _0xd7dc76=_0x5ced6a;logger[_0xd7dc76(0x1e9)](_0xd7dc76(0x1e3),JSON['stringify'](_0x1e6c65));});},EmailChannel[a1316_0x3a9de0(0x1ea)][a1316_0x3a9de0(0x1f3)]=function(_0x2e2d9f){const _0x5c3b2f=a1316_0x3a9de0;this['mailAccounts'][_0x2e2d9f]&&this[_0x5c3b2f(0x1dc)][_0x2e2d9f][_0x5c3b2f(0x1f9)]&&(this['imapAccounts'][this[_0x5c3b2f(0x1dc)][_0x2e2d9f][_0x5c3b2f(0x1f9)]['id']]&&delete this['imapAccounts'][this[_0x5c3b2f(0x1dc)][_0x2e2d9f][_0x5c3b2f(0x1f9)]['id']],this[_0x5c3b2f(0x1dc)][_0x2e2d9f][_0x5c3b2f(0x1f9)][_0x5c3b2f(0x1e6)]=moment(),this[_0x5c3b2f(0x1e4)](_0x2e2d9f));},EmailChannel[a1316_0x3a9de0(0x1ea)]['handleImapError']=function(_0x208ed5,_0x225ceb){const _0x28f068=a1316_0x3a9de0;if(this[_0x28f068(0x1dc)][_0x208ed5])return this[_0x28f068(0x1dc)][_0x208ed5]['Imap'][_0x28f068(0x1f2)]=_0x28f068(0x1e9),this['mailAccounts'][_0x208ed5]['Imap'][_0x28f068(0x1d5)]=_0x225ceb,this[_0x28f068(0x1e4)](_0x208ed5);},EmailChannel[a1316_0x3a9de0(0x1ea)][a1316_0x3a9de0(0x1d6)]=function(_0x540d4e,_0x4f2671){const _0x387125=a1316_0x3a9de0;return this[_0x387125(0x1ec)]['send'](_0x540d4e,_0x4f2671);},EmailChannel[a1316_0x3a9de0(0x1ea)][a1316_0x3a9de0(0x1d4)]=function(_0x3aa96a){const _0x636d8d=a1316_0x3a9de0,_0x515e07=this;if(this[_0x636d8d(0x1dc)][_0x3aa96a['id']])return _[_0x636d8d(0x1f5)](this[_0x636d8d(0x1dc)][_0x3aa96a['id']][_0x636d8d(0x1f0)])&&(this[_0x636d8d(0x1dc)][_0x3aa96a['id']]['Smtp']={}),this[_0x636d8d(0x1dc)][_0x3aa96a['id']]['Smtp'][_0x636d8d(0x1e6)]=moment(),new Promise(function(_0x2b23cb,_0x2a953c){const _0x2d8a53=_0x636d8d;return _0x515e07[_0x2d8a53(0x1ec)][_0x2d8a53(0x1d9)](_0x3aa96a)[_0x2d8a53(0x1fa)](function(_0x1eb1a9){const _0x10fb24=_0x2d8a53;_0x515e07['mailAccounts'][_0x3aa96a['id']][_0x10fb24(0x1f0)][_0x10fb24(0x1f2)]='verified',_0x515e07[_0x10fb24(0x1dc)][_0x3aa96a['id']][_0x10fb24(0x1f0)]['messageStatus']='',_0x515e07[_0x10fb24(0x1e4)](_0x3aa96a['id']),_0x2b23cb(_0x1eb1a9);})['catch'](function(_0x36e184){const _0x8c4be0=_0x2d8a53;_0x515e07[_0x8c4be0(0x1dc)][_0x3aa96a['id']][_0x8c4be0(0x1f0)][_0x8c4be0(0x1f2)]='error',_0x515e07['mailAccounts'][_0x3aa96a['id']][_0x8c4be0(0x1f0)][_0x8c4be0(0x1d5)]=_0x36e184,_0x515e07[_0x8c4be0(0x1e4)](_0x3aa96a['id']),_0x2a953c(_0x36e184);});});return this[_0x636d8d(0x1ec)]['verify'](_0x3aa96a);},module[a1316_0x3a9de0(0x1eb)]=EmailChannel; \ No newline at end of file diff --git a/server/services/email/lib/imap.js b/server/services/email/lib/imap.js index e905eb4..7b80985 100644 --- a/server/services/email/lib/imap.js +++ b/server/services/email/lib/imap.js @@ -1 +1 @@ -const a1153_0x429c=['iconv','simpleParser','handleReady','handleEnd','handleMessageEnd','tls','stringify','undefined','exports','EventEmitter','fetch','bind','UNSEEN','getHost','error','getAccount','upperFirst','account','readUnseen','connTimeout','handleMessageBody','handleError','service','handleMessageAttributes','authTimeout','user','prototype','once','handleCloseBox','openBox','inherits','anonymous@xcally.com','textCode','port','Iconv','mailbox','handleFetchMessage','attributes','password','handleSimpleParser','events','handleFetchError','isNil','authentication','emit','closeBox','length','handleReadUnseen','box','lodash','handleFetchEnd','email','search','imap','autotls','host','end'];(function(_0x2dca4b,_0x429c14){const _0x5b9bcd=function(_0x1151b6){while(--_0x1151b6){_0x2dca4b['push'](_0x2dca4b['shift']());}};_0x5b9bcd(++_0x429c14);}(a1153_0x429c,0x18c));const a1153_0x5b9b=function(_0x2dca4b,_0x429c14){_0x2dca4b=_0x2dca4b-0x0;let _0x5b9bcd=a1153_0x429c[_0x2dca4b];return _0x5b9bcd;};const _0x556557=a1153_0x5b9b;'use strict';const util=require('util'),Imap=require(_0x556557('0x38')),_=require(_0x556557('0x34')),simpleParser=require('mailparser')[_0x556557('0x4')],Iconv=require(_0x556557('0x3'))[_0x556557('0x25')],EventEmitter=require(_0x556557('0x2b'))[_0x556557('0xc')],utils=require('./utils'),logger=require('../../../config/logger')(_0x556557('0x36'));function EmailImap(_0x1151b6,_0x2307ff){const _0x19e472=_0x556557;this[_0x19e472('0x26')]='INBOX',this[_0x19e472('0x14')]=this[_0x19e472('0x12')](_0x1151b6,_0x2307ff),this[_0x19e472('0x38')]=new Imap(this[_0x19e472('0x14')]),this[_0x19e472('0x38')]['once']('ready',this[_0x19e472('0x5')][_0x19e472('0xe')](this)),this[_0x19e472('0x38')][_0x19e472('0x1e')](_0x19e472('0x2'),this['handleEnd'][_0x19e472('0xe')](this)),this['imap']['on'](_0x19e472('0x11'),this[_0x19e472('0x18')][_0x19e472('0xe')](this)),this[_0x19e472('0x38')]['connect']();}util[_0x556557('0x21')](EmailImap,EventEmitter),EmailImap['prototype'][_0x556557('0x12')]=function(_0x5afbb3,_0x2cb105){const _0x13a3f3=_0x556557,_0x587d66={'connTimeout':_0x5afbb3['connTimeout']?_0x5afbb3[_0x13a3f3('0x16')]*0x3e8:0x2710,'authTimeout':_0x5afbb3[_0x13a3f3('0x1b')]?_0x5afbb3[_0x13a3f3('0x1b')]*0x3e8:0x1388};return _[_0x13a3f3('0x2d')](_0x5afbb3[_0x13a3f3('0x19')])?(_0x5afbb3[_0x13a3f3('0x2e')]&&(_0x587d66[_0x13a3f3('0x1c')]=_0x5afbb3[_0x13a3f3('0x1c')],_0x587d66[_0x13a3f3('0x29')]=_0x5afbb3[_0x13a3f3('0x29')]),_0x587d66[_0x13a3f3('0x1')]=_0x5afbb3['host'],_0x587d66[_0x13a3f3('0x24')]=_0x5afbb3[_0x13a3f3('0x24')]||0x3e1,_0x5afbb3[_0x13a3f3('0x8')]?_0x587d66[_0x13a3f3('0x8')]=!![]:(_0x587d66[_0x13a3f3('0x8')]=![],_0x587d66[_0x13a3f3('0x0')]='required')):(_0x587d66['user']=_0x5afbb3[_0x13a3f3('0x1c')],_0x587d66[_0x13a3f3('0x29')]=_0x5afbb3['password'],_0x587d66['host']=utils[_0x13a3f3('0x10')](_0x5afbb3[_0x13a3f3('0x19')]),_0x587d66[_0x13a3f3('0x24')]=0x3e1,_0x587d66[_0x13a3f3('0x8')]=!![]),_0x587d66[_0x13a3f3('0x36')]=_0x2cb105||_0x5afbb3['user']||_0x13a3f3('0x22'),_0x587d66;},EmailImap[_0x556557('0x1d')][_0x556557('0x5')]=function(){const _0xc20e15=_0x556557;this[_0xc20e15('0x38')][_0xc20e15('0x20')](this['mailbox'],![],this['handleOpenBox'][_0xc20e15('0xe')](this));},EmailImap[_0x556557('0x1d')]['handleOpenBox']=function(_0x3b5541,_0x146d44){const _0x79e6cd=_0x556557;_0x3b5541?this[_0x79e6cd('0x18')](_0x3b5541,!![]):(this[_0x79e6cd('0x2f')](_0x79e6cd('0x33'),_0x146d44),this[_0x79e6cd('0x15')]());},EmailImap['prototype'][_0x556557('0x1f')]=function(_0x2f1d0b){const _0x2ff9d7=_0x556557;_0x2f1d0b?this[_0x2ff9d7('0x18')](_0x2f1d0b,!![]):this[_0x2ff9d7('0x38')][_0x2ff9d7('0x2')]();},EmailImap[_0x556557('0x1d')][_0x556557('0x15')]=function(){const _0x32ecc6=_0x556557;this[_0x32ecc6('0x38')][_0x32ecc6('0x37')]([_0x32ecc6('0xf')],this[_0x32ecc6('0x32')][_0x32ecc6('0xe')](this));},EmailImap[_0x556557('0x1d')][_0x556557('0x32')]=function(_0x3ca5fd,_0x3aa7db){const _0x53cf20=_0x556557;if(_0x3ca5fd)this[_0x53cf20('0x18')](_0x3ca5fd,!![]);else{if(_0x3aa7db[_0x53cf20('0x31')])try{const _0x2eec77=this[_0x53cf20('0x38')][_0x53cf20('0xd')](_0x3aa7db,{'bodies':'','markSeen':!![]});_0x2eec77['on']('message',this[_0x53cf20('0x27')][_0x53cf20('0xe')](this)),_0x2eec77[_0x53cf20('0x1e')](_0x53cf20('0x11'),this[_0x53cf20('0x2c')][_0x53cf20('0xe')](this)),_0x2eec77['once'](_0x53cf20('0x2'),this[_0x53cf20('0x35')][_0x53cf20('0xe')](this));}catch(_0x4d1f8e){logger[_0x53cf20('0x11')](_0x4d1f8e);}else this[_0x53cf20('0x38')]['closeBox'](!![],this[_0x53cf20('0x1f')][_0x53cf20('0xe')](this));}},EmailImap[_0x556557('0x1d')][_0x556557('0x27')]=function(_0x2fb080){const _0x5a3bf9=_0x556557;_0x2fb080['on']('body',this[_0x5a3bf9('0x17')]['bind'](this)),_0x2fb080[_0x5a3bf9('0x1e')](_0x5a3bf9('0x28'),this['handleMessageAttributes'][_0x5a3bf9('0xe')](this)),_0x2fb080[_0x5a3bf9('0x1e')]('end',this[_0x5a3bf9('0x7')][_0x5a3bf9('0xe')](this));},EmailImap[_0x556557('0x1d')][_0x556557('0x17')]=function(_0x46121d){const _0x2b5cc8=_0x556557;simpleParser(_0x46121d,{'Iconv':Iconv},this[_0x2b5cc8('0x2a')][_0x2b5cc8('0xe')](this));},EmailImap[_0x556557('0x1d')][_0x556557('0x1a')]=function(){},EmailImap[_0x556557('0x1d')][_0x556557('0x7')]=function(){},EmailImap[_0x556557('0x1d')]['handleSimpleParser']=function(_0x66e943,_0xa89cf1){const _0xc06b62=_0x556557;if(_0x66e943)logger[_0xc06b62('0x11')](_0x66e943);else{const _0x5d7ac2=this;utils['parser'](this['account'],_0xa89cf1,function(_0x4e0b50){const _0x4c56dd=_0xc06b62;_0x5d7ac2['emit'](_0x4c56dd('0x36'),_0x4e0b50);});}},EmailImap[_0x556557('0x1d')][_0x556557('0x35')]=function(){const _0x4c17f2=_0x556557;this[_0x4c17f2('0x38')]['closeBox'](!![],this[_0x4c17f2('0x1f')][_0x4c17f2('0xe')](this));},EmailImap[_0x556557('0x1d')][_0x556557('0x2c')]=function(_0x5b2883){const _0x901244=_0x556557;this['handleError'](_0x5b2883),this['imap'][_0x901244('0x30')](!![],this[_0x901244('0x1f')][_0x901244('0xe')](this));},EmailImap[_0x556557('0x1d')][_0x556557('0x6')]=function(){const _0x43053b=_0x556557;this[_0x43053b('0x2f')](_0x43053b('0x2'));},EmailImap[_0x556557('0x1d')][_0x556557('0x18')]=function(_0x3eddc1,_0x88a447){const _0xe5970f=_0x556557;logger[_0xe5970f('0x11')](_0xe5970f('0x18'),this[_0xe5970f('0x14')][_0xe5970f('0x36')],JSON[_0xe5970f('0x9')](_0x3eddc1));let _0x30e567='';if(_0x3eddc1){if(_0x3eddc1[_0xe5970f('0x23')])_0x30e567=_0x3eddc1[_0xe5970f('0x23')];else for(const _0x418f49 in _0x3eddc1){typeof _0x3eddc1[_0x418f49]!==_0xe5970f('0xa')&&(_0x30e567+=_[_0xe5970f('0x13')](_0x418f49)+':\x20'+_0x3eddc1[_0x418f49]+'\x0a');}}_0x88a447?this[_0xe5970f('0x38')][_0xe5970f('0x2')]():(this['emit']('error',_0x30e567),this[_0xe5970f('0x2f')](_0xe5970f('0x2')));},module[_0x556557('0xb')]=EmailImap; \ No newline at end of file +const a1317_0x34ab=['handleMessageAttributes','authTimeout','EventEmitter','Iconv','getHost','message','ready','simpleParser','service','closeBox','openBox','anonymous@xcally.com','imap','mailbox','upperFirst','handleMessageBody','handleFetchEnd','stringify','user','error','handleReadUnseen','attributes','parser','length','handleCloseBox','handleReady','lodash','bind','authentication','prototype','./utils','connTimeout','port','INBOX','getAccount','emit','handleEnd','isNil','account','handleError','handleFetchMessage','email','host','textCode','tls','iconv','end','mailparser','handleOpenBox','autotls','exports','search','connect','password','handleSimpleParser','util','handleMessageEnd','once','box','undefined'];(function(_0x348d94,_0x5d2a4b){const _0x34ab64=function(_0x385cdd){while(--_0x385cdd){_0x348d94['push'](_0x348d94['shift']());}};_0x34ab64(++_0x5d2a4b);}(a1317_0x34ab,0xcd));const a1317_0x385c=function(_0x348d94,_0x5d2a4b){_0x348d94=_0x348d94-0xfc;let _0x34ab64=a1317_0x34ab[_0x348d94];return _0x34ab64;};const a1317_0x146ef8=a1317_0x385c;'use strict';const util=require(a1317_0x146ef8(0x11a)),Imap=require(a1317_0x146ef8(0x12b)),_=require(a1317_0x146ef8(0xfd)),simpleParser=require(a1317_0x146ef8(0x112))[a1317_0x146ef8(0x126)],Iconv=require(a1317_0x146ef8(0x110))[a1317_0x146ef8(0x122)],EventEmitter=require('events')[a1317_0x146ef8(0x121)],utils=require(a1317_0x146ef8(0x101)),logger=require('../../../config/logger')('email');function EmailImap(_0x1a8143,_0x5dec58){const _0xd4c95f=a1317_0x146ef8;this[_0xd4c95f(0x12c)]=_0xd4c95f(0x104),this[_0xd4c95f(0x109)]=this[_0xd4c95f(0x105)](_0x1a8143,_0x5dec58),this[_0xd4c95f(0x12b)]=new Imap(this[_0xd4c95f(0x109)]),this['imap']['once'](_0xd4c95f(0x125),this[_0xd4c95f(0xfc)][_0xd4c95f(0xfe)](this)),this[_0xd4c95f(0x12b)][_0xd4c95f(0x11c)](_0xd4c95f(0x111),this[_0xd4c95f(0x107)][_0xd4c95f(0xfe)](this)),this[_0xd4c95f(0x12b)]['on'](_0xd4c95f(0x132),this[_0xd4c95f(0x10a)]['bind'](this)),this[_0xd4c95f(0x12b)][_0xd4c95f(0x117)]();}util['inherits'](EmailImap,EventEmitter),EmailImap[a1317_0x146ef8(0x100)][a1317_0x146ef8(0x105)]=function(_0x456ac0,_0x248692){const _0xd74e02=a1317_0x146ef8,_0x48a8e6={'connTimeout':_0x456ac0[_0xd74e02(0x102)]?_0x456ac0[_0xd74e02(0x102)]*0x3e8:0x2710,'authTimeout':_0x456ac0['authTimeout']?_0x456ac0[_0xd74e02(0x120)]*0x3e8:0x1388};return _[_0xd74e02(0x108)](_0x456ac0[_0xd74e02(0x127)])?(_0x456ac0[_0xd74e02(0xff)]&&(_0x48a8e6[_0xd74e02(0x131)]=_0x456ac0['user'],_0x48a8e6['password']=_0x456ac0[_0xd74e02(0x118)]),_0x48a8e6[_0xd74e02(0x10d)]=_0x456ac0[_0xd74e02(0x10d)],_0x48a8e6['port']=_0x456ac0[_0xd74e02(0x103)]||0x3e1,_0x456ac0[_0xd74e02(0x10f)]?_0x48a8e6[_0xd74e02(0x10f)]=!![]:(_0x48a8e6[_0xd74e02(0x10f)]=![],_0x48a8e6[_0xd74e02(0x114)]='required')):(_0x48a8e6[_0xd74e02(0x131)]=_0x456ac0['user'],_0x48a8e6[_0xd74e02(0x118)]=_0x456ac0['password'],_0x48a8e6[_0xd74e02(0x10d)]=utils[_0xd74e02(0x123)](_0x456ac0[_0xd74e02(0x127)]),_0x48a8e6['port']=0x3e1,_0x48a8e6[_0xd74e02(0x10f)]=!![]),_0x48a8e6[_0xd74e02(0x10c)]=_0x248692||_0x456ac0[_0xd74e02(0x131)]||_0xd74e02(0x12a),_0x48a8e6;},EmailImap[a1317_0x146ef8(0x100)][a1317_0x146ef8(0xfc)]=function(){const _0x4c31d8=a1317_0x146ef8;this[_0x4c31d8(0x12b)][_0x4c31d8(0x129)](this['mailbox'],![],this[_0x4c31d8(0x113)]['bind'](this));},EmailImap[a1317_0x146ef8(0x100)][a1317_0x146ef8(0x113)]=function(_0x461743,_0x4cc106){const _0x4f5840=a1317_0x146ef8;_0x461743?this[_0x4f5840(0x10a)](_0x461743,!![]):(this['emit'](_0x4f5840(0x11d),_0x4cc106),this['readUnseen']());},EmailImap[a1317_0x146ef8(0x100)][a1317_0x146ef8(0x137)]=function(_0x2c938d){const _0x21de65=a1317_0x146ef8;_0x2c938d?this[_0x21de65(0x10a)](_0x2c938d,!![]):this[_0x21de65(0x12b)][_0x21de65(0x111)]();},EmailImap[a1317_0x146ef8(0x100)]['readUnseen']=function(){const _0x3b45df=a1317_0x146ef8;this[_0x3b45df(0x12b)][_0x3b45df(0x116)](['UNSEEN'],this[_0x3b45df(0x133)]['bind'](this));},EmailImap[a1317_0x146ef8(0x100)][a1317_0x146ef8(0x133)]=function(_0x1656a2,_0x13e502){const _0x521fe8=a1317_0x146ef8;if(_0x1656a2)this['handleError'](_0x1656a2,!![]);else{if(_0x13e502[_0x521fe8(0x136)])try{const _0x5a563e=this[_0x521fe8(0x12b)]['fetch'](_0x13e502,{'bodies':'','markSeen':!![]});_0x5a563e['on'](_0x521fe8(0x124),this[_0x521fe8(0x10b)]['bind'](this)),_0x5a563e[_0x521fe8(0x11c)](_0x521fe8(0x132),this['handleFetchError'][_0x521fe8(0xfe)](this)),_0x5a563e[_0x521fe8(0x11c)](_0x521fe8(0x111),this[_0x521fe8(0x12f)][_0x521fe8(0xfe)](this));}catch(_0x3235e8){logger[_0x521fe8(0x132)](_0x3235e8);}else this[_0x521fe8(0x12b)][_0x521fe8(0x128)](!![],this['handleCloseBox'][_0x521fe8(0xfe)](this));}},EmailImap[a1317_0x146ef8(0x100)][a1317_0x146ef8(0x10b)]=function(_0x201f41){const _0x58d3c5=a1317_0x146ef8;_0x201f41['on']('body',this[_0x58d3c5(0x12e)]['bind'](this)),_0x201f41[_0x58d3c5(0x11c)](_0x58d3c5(0x134),this[_0x58d3c5(0x11f)][_0x58d3c5(0xfe)](this)),_0x201f41[_0x58d3c5(0x11c)](_0x58d3c5(0x111),this[_0x58d3c5(0x11b)][_0x58d3c5(0xfe)](this));},EmailImap[a1317_0x146ef8(0x100)][a1317_0x146ef8(0x12e)]=function(_0xab8f11){const _0xc676af=a1317_0x146ef8;simpleParser(_0xab8f11,{'Iconv':Iconv},this[_0xc676af(0x119)][_0xc676af(0xfe)](this));},EmailImap[a1317_0x146ef8(0x100)][a1317_0x146ef8(0x11f)]=function(){},EmailImap[a1317_0x146ef8(0x100)][a1317_0x146ef8(0x11b)]=function(){},EmailImap['prototype'][a1317_0x146ef8(0x119)]=function(_0x2c7671,_0x3ce412){const _0x3fb5ac=a1317_0x146ef8;if(_0x2c7671)logger[_0x3fb5ac(0x132)](_0x2c7671);else{const _0x5856e4=this;utils[_0x3fb5ac(0x135)](this[_0x3fb5ac(0x109)],_0x3ce412,function(_0x9d9e2e){const _0x29744d=_0x3fb5ac;_0x5856e4[_0x29744d(0x106)](_0x29744d(0x10c),_0x9d9e2e);});}},EmailImap[a1317_0x146ef8(0x100)][a1317_0x146ef8(0x12f)]=function(){const _0x102c87=a1317_0x146ef8;this[_0x102c87(0x12b)][_0x102c87(0x128)](!![],this[_0x102c87(0x137)]['bind'](this));},EmailImap['prototype']['handleFetchError']=function(_0x1dbadd){const _0x32c964=a1317_0x146ef8;this[_0x32c964(0x10a)](_0x1dbadd),this[_0x32c964(0x12b)][_0x32c964(0x128)](!![],this[_0x32c964(0x137)][_0x32c964(0xfe)](this));},EmailImap[a1317_0x146ef8(0x100)][a1317_0x146ef8(0x107)]=function(){const _0x417ea2=a1317_0x146ef8;this[_0x417ea2(0x106)](_0x417ea2(0x111));},EmailImap[a1317_0x146ef8(0x100)][a1317_0x146ef8(0x10a)]=function(_0x19c7cb,_0x5dc552){const _0x14ac6b=a1317_0x146ef8;logger[_0x14ac6b(0x132)]('handleError',this[_0x14ac6b(0x109)][_0x14ac6b(0x10c)],JSON[_0x14ac6b(0x130)](_0x19c7cb));let _0x1edd92='';if(_0x19c7cb){if(_0x19c7cb[_0x14ac6b(0x10e)])_0x1edd92=_0x19c7cb[_0x14ac6b(0x10e)];else for(const _0x1ed539 in _0x19c7cb){typeof _0x19c7cb[_0x1ed539]!==_0x14ac6b(0x11e)&&(_0x1edd92+=_[_0x14ac6b(0x12d)](_0x1ed539)+':\x20'+_0x19c7cb[_0x1ed539]+'\x0a');}}_0x5dc552?this[_0x14ac6b(0x12b)]['end']():(this[_0x14ac6b(0x106)](_0x14ac6b(0x132),_0x1edd92),this[_0x14ac6b(0x106)](_0x14ac6b(0x111)));},module[a1317_0x146ef8(0x115)]=EmailImap; \ No newline at end of file diff --git a/server/services/email/lib/smtp.js b/server/services/email/lib/smtp.js index 0b3455e..d05fd88 100644 --- a/server/services/email/lib/smtp.js +++ b/server/services/email/lib/smtp.js @@ -1 +1 @@ -const a1154_0x224d=['verify','createTransport','nodemailer-plugin-inline-base64','Not\x20verifired','nodemailer','toString','exports','prototype','use'];(function(_0x2629b3,_0x224d20){const _0x3064bc=function(_0x4dc9ab){while(--_0x4dc9ab){_0x2629b3['push'](_0x2629b3['shift']());}};_0x3064bc(++_0x224d20);}(a1154_0x224d,0x125));const a1154_0x3064=function(_0x2629b3,_0x224d20){_0x2629b3=_0x2629b3-0x0;let _0x3064bc=a1154_0x224d[_0x2629b3];return _0x3064bc;};const _0x4843cb=a1154_0x3064;'use strict';const nodemailer=require(_0x4843cb('0x8')),inlineBase64=require(_0x4843cb('0x6'));function EmailSmtp(){}EmailSmtp[_0x4843cb('0x2')]['send']=function(_0x4dc9ab,_0x3abd12){return new Promise(function(_0x29538a,_0x224833){const _0x597cfb=a1154_0x3064,_0x4cfb5a=nodemailer[_0x597cfb('0x5')](_0x4dc9ab);_0x4cfb5a[_0x597cfb('0x3')]('compile',inlineBase64()),_0x4cfb5a['sendMail'](_0x3abd12,function(_0x5c3e22,_0x258824){_0x5c3e22?_0x224833(_0x5c3e22['toString']()):_0x29538a(_0x258824);});});},EmailSmtp[_0x4843cb('0x2')][_0x4843cb('0x4')]=function(_0x1b9a62){return new Promise(function(_0x56dff9,_0x59fd78){const _0x50bf69=a1154_0x3064,_0x329354=nodemailer[_0x50bf69('0x5')](_0x1b9a62);_0x329354[_0x50bf69('0x4')](function(_0xee8a27,_0x8bd597){const _0x1f9b85=_0x50bf69;_0xee8a27?_0x59fd78(_0xee8a27[_0x1f9b85('0x0')]()):_0x8bd597?_0x56dff9(_0x8bd597):_0x59fd78(_0x1f9b85('0x7'));});});},module[_0x4843cb('0x1')]=EmailSmtp; \ No newline at end of file +const a1318_0x3d90=['createTransport','compile','send','use','toString','sendMail','nodemailer-plugin-inline-base64','verify'];(function(_0x2ac84c,_0x1c6420){const _0x3d9011=function(_0xd59ab7){while(--_0xd59ab7){_0x2ac84c['push'](_0x2ac84c['shift']());}};_0x3d9011(++_0x1c6420);}(a1318_0x3d90,0xe8));const a1318_0xd59a=function(_0x2ac84c,_0x1c6420){_0x2ac84c=_0x2ac84c-0xf3;let _0x3d9011=a1318_0x3d90[_0x2ac84c];return _0x3d9011;};const a1318_0x2ab413=a1318_0xd59a;'use strict';const nodemailer=require('nodemailer'),inlineBase64=require(a1318_0x2ab413(0xf9));function EmailSmtp(){}EmailSmtp['prototype'][a1318_0x2ab413(0xf5)]=function(_0x39804b,_0x369001){return new Promise(function(_0x4df01e,_0x521aad){const _0x131a80=a1318_0xd59a,_0x36b2a3=nodemailer['createTransport'](_0x39804b);_0x36b2a3[_0x131a80(0xf6)](_0x131a80(0xf4),inlineBase64()),_0x36b2a3[_0x131a80(0xf8)](_0x369001,function(_0x1d1d48,_0x4f4ef7){_0x1d1d48?_0x521aad(_0x1d1d48['toString']()):_0x4df01e(_0x4f4ef7);});});},EmailSmtp['prototype'][a1318_0x2ab413(0xfa)]=function(_0xdd6a69){return new Promise(function(_0x3a8f84,_0x475271){const _0x5b99d6=a1318_0xd59a,_0x68d993=nodemailer[_0x5b99d6(0xf3)](_0xdd6a69);_0x68d993['verify'](function(_0x2306e5,_0x9c6be1){const _0x1701c5=_0x5b99d6;_0x2306e5?_0x475271(_0x2306e5[_0x1701c5(0xf7)]()):_0x9c6be1?_0x3a8f84(_0x9c6be1):_0x475271('Not\x20verifired');});});},module['exports']=EmailSmtp; \ No newline at end of file diff --git a/server/services/email/lib/utils.js b/server/services/email/lib/utils.js index 660f333..e6a1e2e 100644 --- a/server/services/email/lib/utils.js +++ b/server/services/email/lib/utils.js @@ -1 +1 @@ -const a1155_0x4705=['anonymous','address','attachments','Attachments','join','imap.gmail.com','parseBuffer','originTo','attachment','date','subject','replace','first','contentType','path','YYYY-MM-DD\x20HH:mm:ss','parser','isEmpty','length','yahoo','format','

    Empty\x20message

    ','outlook.office365.com','message','includes','127.0.0.1','attach','root','head','attachment-','push','BodyHTML','hotmail','type','writeFileSync','@xcally.com','gmail','originCc','html','imap.mail.yahoo.com','test','randomstring','messageId','email','0x1?_0x493e5c[_0x3f6b69('0x26')]():'';}return'';}function getMails(_0x4e8b9e,_0x1425c3){const _0x343625=_0x456c92;let _0x51a728='';for(let _0x47937b=0x0;_0x47937b<_0x1425c3[_0x343625('0x28')][_0x343625('0x3c')];_0x47937b+=0x1){_0x1425c3[_0x343625('0x28')][_0x47937b][_0x343625('0x2b')]!==_0x4e8b9e&&(!_['isEmpty'](_0x51a728)&&(_0x51a728+=','),_0x51a728+=_0x1425c3[_0x343625('0x28')][_0x47937b]['name']||_0x1425c3[_0x343625('0x28')][_0x47937b]['address']||'',_0x51a728+='\x20<',_0x51a728+=_0x1425c3[_0x343625('0x28')][_0x47937b][_0x343625('0x2b')]?_0x1425c3[_0x343625('0x28')][_0x47937b][_0x343625('0x2b')]:_0x343625('0x2a')+random['generate'](0x6)+_0x343625('0xc'),_0x51a728+='>');}return _0x51a728;}function parseEmail(_0x1cf4ab,_0x35521b,_0x3f733a){const _0x27307a=_0x456c92;if(_0x35521b[_0x27307a('0xf')]){const _0x2fddd0=/)<[^<]*)*<\/script>/gi;while(_0x2fddd0[_0x27307a('0x11')](_0x35521b[_0x27307a('0xf')])){_0x35521b[_0x27307a('0xf')]=_0x35521b[_0x27307a('0xf')][_0x27307a('0x35')](_0x2fddd0,'');}_0x3f733a[_0x27307a('0x22')]=_0x35521b[_0x27307a('0xf')];}else _0x3f733a['body']=_0x35521b[_0x27307a('0x20')];_0x3f733a['body']&&(_0x3f733a['body']=_0x3f733a[_0x27307a('0x22')]['replace'](/Empty\x20message

    ','Title','attachment-','lodash','join','attachments','Anonymous','format','../../../config/environment','generate','filter','node-tnef','files/attachments/','getHost'];(function(_0x2fd323,_0x4c34df){const _0x1d8e92=function(_0x52e33a){while(--_0x52e33a){_0x2fd323['push'](_0x2fd323['shift']());}};_0x1d8e92(++_0x4c34df);}(a1319_0x1d8e,0x1a7));const a1319_0x52e3=function(_0x2fd323,_0x4c34df){_0x2fd323=_0x2fd323-0x1f4;let _0x1d8e92=a1319_0x1d8e[_0x2fd323];return _0x1d8e92;};const a1319_0x15b78f=a1319_0x52e3;'use strict';const _=require(a1319_0x15b78f(0x1f4)),moment=require('moment'),random=require(a1319_0x15b78f(0x228)),fs=require('fs'),path=require(a1319_0x15b78f(0x20d)),util=require(a1319_0x15b78f(0x1ff)),tnef=require(a1319_0x15b78f(0x1fc)),logger=require(a1319_0x15b78f(0x226))('email'),config=require(a1319_0x15b78f(0x1f9));function getAddress(_0x22323a){const _0x4f6e22=a1319_0x15b78f,_0x2615a7=_[_0x4f6e22(0x21b)](_0x22323a['value']);return _0x2615a7&&_0x2615a7[_0x4f6e22(0x202)]?_0x2615a7[_0x4f6e22(0x202)]:_0x4f6e22(0x21c)+random['generate'](0x6)+_0x4f6e22(0x20a);}function getFirstName(_0x352f7e){const _0x369d1e=a1319_0x15b78f,_0x40b720=_[_0x369d1e(0x21b)](_0x352f7e[_0x369d1e(0x212)]);if(_0x40b720&&_0x40b720[_0x369d1e(0x201)]){const _0x26bab6=_0x40b720[_0x369d1e(0x201)][_0x369d1e(0x20b)](/\s+/);return _0x26bab6['length']?_0x26bab6['slice'](0x0,-0x1)['join']('\x20'):_0x40b720[_0x369d1e(0x201)];}return _0x369d1e(0x1f7);}function getLastName(_0x48dc31){const _0x172155=a1319_0x15b78f,_0x429c9b=_[_0x172155(0x21b)](_0x48dc31[_0x172155(0x212)]);if(_0x429c9b&&_0x429c9b[_0x172155(0x201)]){const _0x4fba2d=_0x429c9b[_0x172155(0x201)][_0x172155(0x20b)](/\s+/);return _0x4fba2d[_0x172155(0x215)]>0x1?_0x4fba2d['pop']():'';}return'';}function getMails(_0xc9dac0,_0x394c6b){const _0x3ad938=a1319_0x15b78f;let _0x2136b3='';for(let _0x418b5d=0x0;_0x418b5d<_0x394c6b[_0x3ad938(0x212)][_0x3ad938(0x215)];_0x418b5d+=0x1){_0x394c6b[_0x3ad938(0x212)][_0x418b5d][_0x3ad938(0x202)]!==_0xc9dac0&&(!_['isEmpty'](_0x2136b3)&&(_0x2136b3+=','),_0x2136b3+=_0x394c6b['value'][_0x418b5d]['name']||_0x394c6b[_0x3ad938(0x212)][_0x418b5d]['address']||'',_0x2136b3+='\x20<',_0x2136b3+=_0x394c6b[_0x3ad938(0x212)][_0x418b5d][_0x3ad938(0x202)]?_0x394c6b[_0x3ad938(0x212)][_0x418b5d][_0x3ad938(0x202)]:_0x3ad938(0x21c)+random[_0x3ad938(0x1fa)](0x6)+_0x3ad938(0x20a),_0x2136b3+='>');}return _0x2136b3;}function parseEmail(_0x20340f,_0x550bad,_0x572721){const _0x1f8d05=a1319_0x15b78f;if(_0x550bad[_0x1f8d05(0x22e)]){const _0x3dc594=/)<[^<]*)*<\/script>/gi;while(_0x3dc594[_0x1f8d05(0x209)](_0x550bad[_0x1f8d05(0x22e)])){_0x550bad[_0x1f8d05(0x22e)]=_0x550bad['html'][_0x1f8d05(0x218)](_0x3dc594,'');}_0x572721[_0x1f8d05(0x211)]=_0x550bad[_0x1f8d05(0x22e)];}else _0x572721[_0x1f8d05(0x211)]=_0x550bad[_0x1f8d05(0x208)];_0x572721[_0x1f8d05(0x211)]&&(_0x572721[_0x1f8d05(0x211)]=_0x572721[_0x1f8d05(0x211)][_0x1f8d05(0x218)](/0x0?this[_0x11d01f+_0x4cea2a('0x20')]>0x0&&this[_0x11d01f+_0x4cea2a('0x2a')]>=this[_0x11d01f+_0x4cea2a('0x20')]?_0x4cea2a('0x17'):_0x4cea2a('0xd'):_0x4cea2a('0x14');},Agent[_0x371026('0x19')][_0x371026('0x0')]=function(){const _0x2b4948=_0x371026,_0x31dee5=[_0x2b4948('0x7'),'chat',_0x2b4948('0x4'),_0x2b4948('0x26'),_0x2b4948('0x1d'),'whatsapp'];for(let _0x2999b3=0x0;_0x2999b3<_0x31dee5['length'];_0x2999b3+=0x1){const _0x2fd292=this[_0x2b4948('0x2d')](_0x31dee5[_0x2999b3]);this[_0x31dee5[_0x2999b3]+_0x2b4948('0x11')]!==_0x2fd292&&(this[_0x31dee5[_0x2999b3]+_0x2b4948('0x22')]=_['toNumber'](moment()[_0x2b4948('0x10')]('x'))),this[_0x31dee5[_0x2999b3]+_0x2b4948('0x11')]=_0x2fd292;}const _0x3bd0cf={'id':this['id'],'name':this['name'],'online':this[_0x2b4948('0x25')],'voicePause':this[_0x2b4948('0x2')],'chatPause':this[_0x2b4948('0x2b')],'mailPause':this['mailPause'],'smsPause':this[_0x2b4948('0x2e')],'faxPause':this[_0x2b4948('0xa')],'openchannelPause':this[_0x2b4948('0xe')],'chatStatus':this[_0x2b4948('0x2c')],'chatStatusTime':this[_0x2b4948('0x1e')],'chatCapacity':this[_0x2b4948('0x24')],'chatCurrentCapacity':this[_0x2b4948('0x16')],'mailStatus':this[_0x2b4948('0x34')],'mailStatusTime':this['mailStatusTime'],'mailCapacity':this[_0x2b4948('0x18')],'mailCurrentCapacity':this[_0x2b4948('0xc')],'faxStatus':this[_0x2b4948('0x29')],'faxStatusTime':this[_0x2b4948('0x21')],'faxCapacity':this[_0x2b4948('0x28')],'faxCurrentCapacity':this[_0x2b4948('0x3')],'smsStatus':this[_0x2b4948('0x8')],'smsStatusTime':this[_0x2b4948('0x23')],'smsCapacity':this[_0x2b4948('0xf')],'smsCurrentCapacity':this[_0x2b4948('0x1c')],'whatsappStatus':this['whatsappStatus'],'whatsappStatusTime':this['whatsappStatusTime'],'whatsappCapacity':this[_0x2b4948('0x27')],'whatsappCurrentCapacity':this[_0x2b4948('0xb')],'openchannelStatus':this[_0x2b4948('0x30')],'openchannelStatusTime':this['openchannelStatusTime'],'openchannelCapacity':this[_0x2b4948('0x9')],'openchannelCurrentCapacity':this[_0x2b4948('0x6')],'busy':this[_0x2b4948('0x31')],'busyQueue':this[_0x2b4948('0x5')]},_0x14c211=md5(JSON['stringify'](_0x3bd0cf));this[_0x2b4948('0x32')]!==_0x14c211&&(this[_0x2b4948('0x32')]=_0x14c211,io[_0x2b4948('0x1')](_0x2b4948('0x33'),_0x3bd0cf));},module['exports']=Agent; \ No newline at end of file +const a1329_0x11ef=['mailStatusTime','fax','faxPause','smsStatus','moment','whatsappStatus','emit','faxCapacity','StatusTime','exports','whatsappStatusTime','chat','md5','online','prototype','idle','format','lodash','mailPause','chatStatus','../../../rediscache','getChannelStatus','chatCapacity','smsStatusTime','whatsapp','faxStatusTime','openchannel','smsCapacity','sms','updateRealtime','chatCurrentCapacity','busy','working','mailStatus','voicePause','mail','chatPause','name','smsPause','faxStatus','stringify','mailCurrentCapacity','CurrentCapacity','unknown','chatStatusTime','whatsappCapacity','whatsappCurrentCapacity','openchannelCurrentCapacity','length','openchannelCapacity','Capacity','openchannelPause','mailCapacity','openchannelStatusTime','smsCurrentCapacity','faxCurrentCapacity','Status'];(function(_0x5c0d30,_0x4db46f){const _0x11efa4=function(_0x38d018){while(--_0x38d018){_0x5c0d30['push'](_0x5c0d30['shift']());}};_0x11efa4(++_0x4db46f);}(a1329_0x11ef,0xbb));const a1329_0x38d0=function(_0x5c0d30,_0x4db46f){_0x5c0d30=_0x5c0d30-0x1bb;let _0x11efa4=a1329_0x11ef[_0x5c0d30];return _0x11efa4;};const a1329_0x18d6e4=a1329_0x38d0;'use strict';const _=require(a1329_0x18d6e4(0x1bc)),moment=require(a1329_0x18d6e4(0x1e8)),md5=require(a1329_0x18d6e4(0x1f0)),{getSocket}=require(a1329_0x18d6e4(0x1bf)),io=getSocket();function Agent(_0x4bf60e){const _0x96fcf9=a1329_0x18d6e4;this['id']=_0x4bf60e['id']||0x0,this['name']=_0x4bf60e[_0x96fcf9(0x1d0)]||'',this[_0x96fcf9(0x1f1)]=_0x4bf60e[_0x96fcf9(0x1f1)]||!![],this[_0x96fcf9(0x1cd)]=_0x4bf60e[_0x96fcf9(0x1cd)]||![],this[_0x96fcf9(0x1cf)]=_0x4bf60e['chatPause']||![],this[_0x96fcf9(0x1bd)]=_0x4bf60e[_0x96fcf9(0x1bd)]||![],this[_0x96fcf9(0x1e6)]=_0x4bf60e[_0x96fcf9(0x1e6)]||![],this[_0x96fcf9(0x1d1)]=_0x4bf60e[_0x96fcf9(0x1d1)]||![],this['openchannelPause']=_0x4bf60e[_0x96fcf9(0x1de)]||![],this['chatStatus']=_0x96fcf9(0x1d6),this[_0x96fcf9(0x1d7)]=0x0,this[_0x96fcf9(0x1c1)]=_0x4bf60e[_0x96fcf9(0x1c1)]||0x0,this[_0x96fcf9(0x1c9)]=0x0,this[_0x96fcf9(0x1cc)]=_0x96fcf9(0x1d6),this[_0x96fcf9(0x1e4)]=0x0,this[_0x96fcf9(0x1df)]=_0x4bf60e[_0x96fcf9(0x1df)]||0x0,this[_0x96fcf9(0x1d4)]=0x0,this[_0x96fcf9(0x1d2)]='unknown',this[_0x96fcf9(0x1c4)]=0x0,this['faxCapacity']=_0x4bf60e[_0x96fcf9(0x1eb)]||0x0,this[_0x96fcf9(0x1e2)]=0x0,this[_0x96fcf9(0x1e7)]=_0x96fcf9(0x1d6),this[_0x96fcf9(0x1c2)]=0x0,this[_0x96fcf9(0x1c6)]=_0x4bf60e['smsCapacity']||0x0,this[_0x96fcf9(0x1e1)]=0x0,this[_0x96fcf9(0x1e9)]=_0x96fcf9(0x1d6),this['whatsappStatusTime']=0x0,this[_0x96fcf9(0x1d8)]=_0x4bf60e['whatsappCapacity']||0x0,this[_0x96fcf9(0x1d9)]=0x0,this['openchannelStatus']='unknown',this[_0x96fcf9(0x1e0)]=0x0,this[_0x96fcf9(0x1dc)]=_0x4bf60e[_0x96fcf9(0x1dc)]||0x0,this[_0x96fcf9(0x1da)]=0x0,this[_0x96fcf9(0x1ca)]=![],this['busyQueue']=undefined,this[_0x96fcf9(0x1f0)]='',this[_0x96fcf9(0x1c8)]();}Agent[a1329_0x18d6e4(0x1f2)]['getChannelStatus']=function(_0x4f8932){const _0x37a4c2=a1329_0x18d6e4;return this[_0x4f8932+'CurrentCapacity']>0x0?this[_0x4f8932+'Capacity']>0x0&&this[_0x4f8932+_0x37a4c2(0x1d5)]>=this[_0x4f8932+_0x37a4c2(0x1dd)]?'maxcapacity':_0x37a4c2(0x1cb):_0x37a4c2(0x1f3);},Agent['prototype'][a1329_0x18d6e4(0x1c8)]=function(){const _0x4b1a6e=a1329_0x18d6e4,_0x2c006a=[_0x4b1a6e(0x1ce),_0x4b1a6e(0x1ef),_0x4b1a6e(0x1c5),_0x4b1a6e(0x1e5),_0x4b1a6e(0x1c7),_0x4b1a6e(0x1c3)];for(let _0x345902=0x0;_0x345902<_0x2c006a[_0x4b1a6e(0x1db)];_0x345902+=0x1){const _0x1ff538=this[_0x4b1a6e(0x1c0)](_0x2c006a[_0x345902]);this[_0x2c006a[_0x345902]+_0x4b1a6e(0x1e3)]!==_0x1ff538&&(this[_0x2c006a[_0x345902]+_0x4b1a6e(0x1ec)]=_['toNumber'](moment()[_0x4b1a6e(0x1bb)]('x'))),this[_0x2c006a[_0x345902]+_0x4b1a6e(0x1e3)]=_0x1ff538;}const _0x330221={'id':this['id'],'name':this['name'],'online':this[_0x4b1a6e(0x1f1)],'voicePause':this[_0x4b1a6e(0x1cd)],'chatPause':this[_0x4b1a6e(0x1cf)],'mailPause':this[_0x4b1a6e(0x1bd)],'smsPause':this[_0x4b1a6e(0x1d1)],'faxPause':this[_0x4b1a6e(0x1e6)],'openchannelPause':this[_0x4b1a6e(0x1de)],'chatStatus':this[_0x4b1a6e(0x1be)],'chatStatusTime':this[_0x4b1a6e(0x1d7)],'chatCapacity':this[_0x4b1a6e(0x1c1)],'chatCurrentCapacity':this[_0x4b1a6e(0x1c9)],'mailStatus':this['mailStatus'],'mailStatusTime':this[_0x4b1a6e(0x1e4)],'mailCapacity':this['mailCapacity'],'mailCurrentCapacity':this[_0x4b1a6e(0x1d4)],'faxStatus':this[_0x4b1a6e(0x1d2)],'faxStatusTime':this[_0x4b1a6e(0x1c4)],'faxCapacity':this[_0x4b1a6e(0x1eb)],'faxCurrentCapacity':this[_0x4b1a6e(0x1e2)],'smsStatus':this[_0x4b1a6e(0x1e7)],'smsStatusTime':this['smsStatusTime'],'smsCapacity':this[_0x4b1a6e(0x1c6)],'smsCurrentCapacity':this['smsCurrentCapacity'],'whatsappStatus':this[_0x4b1a6e(0x1e9)],'whatsappStatusTime':this[_0x4b1a6e(0x1ee)],'whatsappCapacity':this['whatsappCapacity'],'whatsappCurrentCapacity':this[_0x4b1a6e(0x1d9)],'openchannelStatus':this['openchannelStatus'],'openchannelStatusTime':this[_0x4b1a6e(0x1e0)],'openchannelCapacity':this[_0x4b1a6e(0x1dc)],'openchannelCurrentCapacity':this['openchannelCurrentCapacity'],'busy':this[_0x4b1a6e(0x1ca)],'busyQueue':this['busyQueue']},_0xf025e2=md5(JSON[_0x4b1a6e(0x1d3)](_0x330221));this[_0x4b1a6e(0x1f0)]!==_0xf025e2&&(this[_0x4b1a6e(0x1f0)]=_0xf025e2,io[_0x4b1a6e(0x1ea)]('user:save',_0x330221));},module[a1329_0x18d6e4(0x1ed)]=Agent; \ No newline at end of file diff --git a/server/services/routing/model/chatQueue.js b/server/services/routing/model/chatQueue.js index d8ff370..4112322 100644 --- a/server/services/routing/model/chatQueue.js +++ b/server/services/routing/model/chatQueue.js @@ -1 +1 @@ -const a1166_0xcfa8=['Agents','available','loggedIn','beepall','updateRealtime','waiting','chat:queue:%s','chatPause','length','emit','name','_rr','prototype','util','format','../../../rediscache','lodash','mapAgentsId','timeout','strategy','md5','paused'];(function(_0x1e2713,_0xcfa84b){const _0x43a433=function(_0x36ccad){while(--_0x36ccad){_0x1e2713['push'](_0x1e2713['shift']());}};_0x43a433(++_0xcfa84b);}(a1166_0xcfa8,0x126));const a1166_0x43a4=function(_0x1e2713,_0xcfa84b){_0x1e2713=_0x1e2713-0x0;let _0x43a433=a1166_0xcfa8[_0x1e2713];return _0x43a433;};const _0x4cb1ac=a1166_0x43a4;'use strict';const _=require(_0x4cb1ac('0x8')),md5=require(_0x4cb1ac('0xc')),util=require(_0x4cb1ac('0x5')),{getSocket}=require(_0x4cb1ac('0x7')),io=getSocket();function ChatQueue(_0x36ccad){const _0x421445=_0x4cb1ac;this['id']=_0x36ccad['id']||0x0,this[_0x421445('0x2')]=_0x36ccad[_0x421445('0x2')]||'',this['timeout']=_0x36ccad[_0x421445('0xa')]||0xa,this[_0x421445('0xb')]=_0x36ccad[_0x421445('0xb')]||_0x421445('0x11'),this['Agents']=_0x36ccad[_0x421445('0xe')],this[_0x421445('0x9')]={},this[_0x421445('0x13')]=0x0,this[_0x421445('0xc')]='',this['updateRouting'](),this[_0x421445('0x12')]();}ChatQueue[_0x4cb1ac('0x4')]['updateRouting']=function(){const _0x1c7655=_0x4cb1ac,_0x11d6b6=this[_0x1c7655('0x9')][_0x1c7655('0x3')];this[_0x1c7655('0x9')]=_['map'](this[_0x1c7655('0xe')],'id'),this['mapAgentsId'][_0x1c7655('0x3')]=_0x11d6b6;},ChatQueue[_0x4cb1ac('0x4')][_0x4cb1ac('0x12')]=function(){const _0x568094=_0x4cb1ac;this['loggedIn']=0x0,this[_0x568094('0xd')]=0x0;for(let _0x44fd28=0x0;_0x44fd28=0x0?this[_0x568094('0xf')]:0x0;const _0x58116c={'id':this['id'],'available':this['available'],'loggedIn':this[_0x568094('0x10')],'name':this[_0x568094('0x2')],'paused':this['paused'],'waiting':this[_0x568094('0x13')]},_0x413d76=md5(JSON['stringify'](_0x58116c));this['md5']!==_0x413d76&&(this[_0x568094('0xc')]=_0x413d76,io['to'](util[_0x568094('0x6')](_0x568094('0x14'),_0x58116c['name']))[_0x568094('0x1')]('chat_queue:save',_0x58116c));},module['exports']=ChatQueue; \ No newline at end of file +const a1330_0x47cf=['map','mapAgentsId','Agents','prototype','../../../rediscache','util','updateRouting','stringify','paused','beepall','format','chat_queue:save','chat:queue:%s','strategy','loggedIn','waiting','updateRealtime','md5','available','_rr','name','timeout','online','length'];(function(_0x3338b5,_0x68835b){const _0x47cf9a=function(_0x4d800f){while(--_0x4d800f){_0x3338b5['push'](_0x3338b5['shift']());}};_0x47cf9a(++_0x68835b);}(a1330_0x47cf,0x123));const a1330_0x4d80=function(_0x3338b5,_0x68835b){_0x3338b5=_0x3338b5-0x9e;let _0x47cf9a=a1330_0x47cf[_0x3338b5];return _0x47cf9a;};const a1330_0x5d7682=a1330_0x4d80;'use strict';const _=require('lodash'),md5=require('md5'),util=require(a1330_0x5d7682(0xa0)),{getSocket}=require(a1330_0x5d7682(0x9f)),io=getSocket();function ChatQueue(_0x53c65c){const _0x469df1=a1330_0x5d7682;this['id']=_0x53c65c['id']||0x0,this[_0x469df1(0xaf)]=_0x53c65c[_0x469df1(0xaf)]||'',this[_0x469df1(0xb0)]=_0x53c65c[_0x469df1(0xb0)]||0xa,this[_0x469df1(0xa8)]=_0x53c65c[_0x469df1(0xa8)]||_0x469df1(0xa4),this[_0x469df1(0xb5)]=_0x53c65c[_0x469df1(0xb5)],this[_0x469df1(0xb4)]={},this['waiting']=0x0,this[_0x469df1(0xac)]='',this[_0x469df1(0xa1)](),this[_0x469df1(0xab)]();}ChatQueue[a1330_0x5d7682(0x9e)][a1330_0x5d7682(0xa1)]=function(){const _0x21a679=a1330_0x5d7682,_0x5c3948=this[_0x21a679(0xb4)][_0x21a679(0xae)];this[_0x21a679(0xb4)]=_[_0x21a679(0xb3)](this[_0x21a679(0xb5)],'id'),this[_0x21a679(0xb4)][_0x21a679(0xae)]=_0x5c3948;},ChatQueue['prototype'][a1330_0x5d7682(0xab)]=function(){const _0xbb2455=a1330_0x5d7682;this['loggedIn']=0x0,this[_0xbb2455(0xa3)]=0x0;for(let _0x51a132=0x0;_0x51a132=0x0?this[_0xbb2455(0xad)]:0x0;const _0xf90a94={'id':this['id'],'available':this[_0xbb2455(0xad)],'loggedIn':this[_0xbb2455(0xa9)],'name':this['name'],'paused':this[_0xbb2455(0xa3)],'waiting':this[_0xbb2455(0xaa)]},_0x475622=md5(JSON[_0xbb2455(0xa2)](_0xf90a94));this[_0xbb2455(0xac)]!==_0x475622&&(this['md5']=_0x475622,io['to'](util[_0xbb2455(0xa5)](_0xbb2455(0xa7),_0xf90a94['name']))['emit'](_0xbb2455(0xa6),_0xf90a94));},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 c098611..721b8cd 100644 --- a/server/services/routing/model/faxQueue.js +++ b/server/services/routing/model/faxQueue.js @@ -1 +1 @@ -const a1167_0x6467=['_rr','updateRouting','timeout','paused','stringify','available','emit','Agents','faxPause','strategy','loggedIn','util','format','online','../../../rediscache','prototype','md5','fax:queue:%s','fax_queue:save','waiting','lodash','mapAgentsId','exports','length','updateRealtime','name'];(function(_0x2f1543,_0x64678f){const _0x55d1b2=function(_0x29a123){while(--_0x29a123){_0x2f1543['push'](_0x2f1543['shift']());}};_0x55d1b2(++_0x64678f);}(a1167_0x6467,0xe3));const a1167_0x55d1=function(_0x2f1543,_0x64678f){_0x2f1543=_0x2f1543-0x0;let _0x55d1b2=a1167_0x6467[_0x2f1543];return _0x55d1b2;};const _0x40b4b8=a1167_0x55d1;'use strict';const _=require(_0x40b4b8('0x1')),md5=require('md5'),util=require(_0x40b4b8('0x12')),{getSocket}=require(_0x40b4b8('0x15')),io=getSocket();function FaxQueue(_0x29a123){const _0x3c2cd2=_0x40b4b8;this['id']=_0x29a123['id']||0x0,this[_0x3c2cd2('0x6')]=_0x29a123[_0x3c2cd2('0x6')]||'',this[_0x3c2cd2('0x9')]=_0x29a123[_0x3c2cd2('0x9')]||0xa,this[_0x3c2cd2('0x10')]=_0x29a123['strategy']||'beepall',this[_0x3c2cd2('0xe')]=_0x29a123['Agents'],this[_0x3c2cd2('0x2')]={},this['waiting']=0x0,this[_0x3c2cd2('0x17')]='',this[_0x3c2cd2('0x8')](),this['updateRealtime']();}FaxQueue[_0x40b4b8('0x16')][_0x40b4b8('0x8')]=function(){const _0x285436=_0x40b4b8,_0x1b154f=this['mapAgentsId'][_0x285436('0x7')];this[_0x285436('0x2')]=_['map'](this[_0x285436('0xe')],'id'),this[_0x285436('0x2')]['_rr']=_0x1b154f;},FaxQueue['prototype'][_0x40b4b8('0x5')]=function(){const _0xe706a=_0x40b4b8;this[_0xe706a('0x11')]=0x0,this[_0xe706a('0xa')]=0x0;for(let _0x546163=0x0;_0x546163=0x0?this[_0xe706a('0xc')]:0x0;const _0x10a460={'id':this['id'],'available':this[_0xe706a('0xc')],'loggedIn':this['loggedIn'],'name':this[_0xe706a('0x6')],'paused':this['paused'],'waiting':this[_0xe706a('0x0')]},_0x12109a=md5(JSON[_0xe706a('0xb')](_0x10a460));this['md5']!==_0x12109a&&(this[_0xe706a('0x17')]=_0x12109a,io['to'](util[_0xe706a('0x13')](_0xe706a('0x18'),_0x10a460[_0xe706a('0x6')]))[_0xe706a('0xd')](_0xe706a('0x19'),_0x10a460));},module[_0x40b4b8('0x3')]=FaxQueue; \ No newline at end of file +const a1331_0x5a6a=['beepall','lodash','name','emit','_rr','stringify','map','fax_queue:save','mapAgentsId','length','online','format','md5','loggedIn','Agents','available','paused','util','updateRealtime','prototype','updateRouting','waiting','fax:queue:%s','../../../rediscache','faxPause','exports'];(function(_0x29beca,_0x577c5e){const _0x5a6a9d=function(_0x144075){while(--_0x144075){_0x29beca['push'](_0x29beca['shift']());}};_0x5a6a9d(++_0x577c5e);}(a1331_0x5a6a,0x8b));const a1331_0x1440=function(_0x29beca,_0x577c5e){_0x29beca=_0x29beca-0x1f2;let _0x5a6a9d=a1331_0x5a6a[_0x29beca];return _0x5a6a9d;};const a1331_0x36f07e=a1331_0x1440;'use strict';const _=require(a1331_0x36f07e(0x204)),md5=require(a1331_0x36f07e(0x1f5)),util=require(a1331_0x36f07e(0x1fa)),{getSocket}=require(a1331_0x36f07e(0x200)),io=getSocket();function FaxQueue(_0x4c25de){const _0x25f890=a1331_0x36f07e;this['id']=_0x4c25de['id']||0x0,this['name']=_0x4c25de['name']||'',this['timeout']=_0x4c25de['timeout']||0xa,this['strategy']=_0x4c25de['strategy']||_0x25f890(0x203),this['Agents']=_0x4c25de[_0x25f890(0x1f7)],this[_0x25f890(0x20b)]={},this[_0x25f890(0x1fe)]=0x0,this[_0x25f890(0x1f5)]='',this[_0x25f890(0x1fd)](),this[_0x25f890(0x1fb)]();}FaxQueue[a1331_0x36f07e(0x1fc)][a1331_0x36f07e(0x1fd)]=function(){const _0x5872dc=a1331_0x36f07e,_0x17f643=this[_0x5872dc(0x20b)]['_rr'];this[_0x5872dc(0x20b)]=_[_0x5872dc(0x209)](this[_0x5872dc(0x1f7)],'id'),this['mapAgentsId'][_0x5872dc(0x207)]=_0x17f643;},FaxQueue[a1331_0x36f07e(0x1fc)][a1331_0x36f07e(0x1fb)]=function(){const _0x15a257=a1331_0x36f07e;this[_0x15a257(0x1f6)]=0x0,this[_0x15a257(0x1f9)]=0x0;for(let _0x3e7cc5=0x0;_0x3e7cc5=0x0?this[_0x15a257(0x1f8)]:0x0;const _0x539cd4={'id':this['id'],'available':this['available'],'loggedIn':this[_0x15a257(0x1f6)],'name':this[_0x15a257(0x205)],'paused':this[_0x15a257(0x1f9)],'waiting':this['waiting']},_0x401dae=md5(JSON[_0x15a257(0x208)](_0x539cd4));this['md5']!==_0x401dae&&(this[_0x15a257(0x1f5)]=_0x401dae,io['to'](util[_0x15a257(0x1f4)](_0x15a257(0x1ff),_0x539cd4[_0x15a257(0x205)]))[_0x15a257(0x206)](_0x15a257(0x20a),_0x539cd4));},module[a1331_0x36f07e(0x202)]=FaxQueue; \ No newline at end of file diff --git a/server/services/routing/model/interval.js b/server/services/routing/model/interval.js index 0831d3e..1df22cc 100644 --- a/server/services/routing/model/interval.js +++ b/server/services/routing/model/interval.js @@ -1 +1 @@ -var a1168_0x6c81=['exports','name','Intervals'];(function(_0x38bc5b,_0x6c81c1){var _0x6e7f29=function(_0x16f8f9){while(--_0x16f8f9){_0x38bc5b['push'](_0x38bc5b['shift']());}};_0x6e7f29(++_0x6c81c1);}(a1168_0x6c81,0x1eb));var a1168_0x6e7f=function(_0x38bc5b,_0x6c81c1){_0x38bc5b=_0x38bc5b-0x0;var _0x6e7f29=a1168_0x6c81[_0x38bc5b];return _0x6e7f29;};var _0x144b11=a1168_0x6e7f;'use strict';function Interval(_0x16f8f9){var _0x31cd22=a1168_0x6e7f;this['id']=_0x16f8f9['id']||0x0,this[_0x31cd22('0x2')]=_0x16f8f9[_0x31cd22('0x2')]||'',this[_0x31cd22('0x0')]=_0x16f8f9[_0x31cd22('0x0')]||{};}module[_0x144b11('0x1')]=Interval; \ No newline at end of file +var a1332_0x255f=['Intervals','name','exports'];(function(_0x56bed4,_0x3e7895){var _0x255ff4=function(_0x2e2473){while(--_0x2e2473){_0x56bed4['push'](_0x56bed4['shift']());}};_0x255ff4(++_0x3e7895);}(a1332_0x255f,0x11c));var a1332_0x2e24=function(_0x56bed4,_0x3e7895){_0x56bed4=_0x56bed4-0xce;var _0x255ff4=a1332_0x255f[_0x56bed4];return _0x255ff4;};var a1332_0x42fbf1=a1332_0x2e24;'use strict';function Interval(_0x71ca98){var _0x10ff94=a1332_0x2e24;this['id']=_0x71ca98['id']||0x0,this[_0x10ff94(0xd0)]=_0x71ca98['name']||'',this[_0x10ff94(0xcf)]=_0x71ca98['Intervals']||{};}module[a1332_0x42fbf1(0xce)]=Interval; \ No newline at end of file diff --git a/server/services/routing/model/mailQueue.js b/server/services/routing/model/mailQueue.js index ab9e7aa..c4e7f51 100644 --- a/server/services/routing/model/mailQueue.js +++ b/server/services/routing/model/mailQueue.js @@ -1 +1 @@ -const a1169_0x5874=['mapAgentsId','timeout','mail_queue:save','updateRealtime','format','lodash','util','available','name','Agents','prototype','beepall','exports','paused','stringify','waiting','emit','mailPause','length','updateRouting','mail:queue:%s','_rr','online','md5','loggedIn'];(function(_0x3e6335,_0x58744f){const _0x2f7304=function(_0x4da90f){while(--_0x4da90f){_0x3e6335['push'](_0x3e6335['shift']());}};_0x2f7304(++_0x58744f);}(a1169_0x5874,0xb5));const a1169_0x2f73=function(_0x3e6335,_0x58744f){_0x3e6335=_0x3e6335-0x0;let _0x2f7304=a1169_0x5874[_0x3e6335];return _0x2f7304;};const _0x11f086=a1169_0x2f73;'use strict';const _=require(_0x11f086('0x18')),md5=require(_0x11f086('0x11')),util=require(_0x11f086('0x0')),{getSocket}=require('../../../rediscache'),io=getSocket();function MailQueue(_0x4da90f){const _0x1d56a2=_0x11f086;this['id']=_0x4da90f['id']||0x0,this[_0x1d56a2('0x2')]=_0x4da90f[_0x1d56a2('0x2')]||'',this[_0x1d56a2('0x14')]=_0x4da90f[_0x1d56a2('0x14')]||0xa,this['strategy']=_0x4da90f['strategy']||_0x1d56a2('0x5'),this[_0x1d56a2('0x3')]=_0x4da90f[_0x1d56a2('0x3')],this[_0x1d56a2('0x13')]={},this[_0x1d56a2('0x9')]=0x0,this['md5']='',this[_0x1d56a2('0xd')](),this[_0x1d56a2('0x16')]();}MailQueue['prototype']['updateRouting']=function(){const _0x2dbebe=_0x11f086,_0x27a92b=this['mapAgentsId'][_0x2dbebe('0xf')];this['mapAgentsId']=_['map'](this['Agents'],'id'),this['mapAgentsId'][_0x2dbebe('0xf')]=_0x27a92b;},MailQueue[_0x11f086('0x4')][_0x11f086('0x16')]=function(){const _0xe0562=_0x11f086;this['loggedIn']=0x0,this[_0xe0562('0x7')]=0x0;for(let _0x6fcf06=0x0;_0x6fcf06=0x0?this[_0xe0562('0x1')]:0x0;const _0x3e2794={'id':this['id'],'available':this[_0xe0562('0x1')],'loggedIn':this[_0xe0562('0x12')],'name':this['name'],'paused':this['paused'],'waiting':this[_0xe0562('0x9')]},_0x36d083=md5(JSON[_0xe0562('0x8')](_0x3e2794));this[_0xe0562('0x11')]!==_0x36d083&&(this[_0xe0562('0x11')]=_0x36d083,io['to'](util[_0xe0562('0x17')](_0xe0562('0xe'),_0x3e2794[_0xe0562('0x2')]))[_0xe0562('0xa')](_0xe0562('0x15'),_0x3e2794));},module[_0x11f086('0x6')]=MailQueue; \ No newline at end of file +const a1333_0x5884=['strategy','beepall','available','online','map','name','stringify','exports','updateRouting','_rr','mapAgentsId','mail_queue:save','prototype','timeout','paused','length','loggedIn','../../../rediscache','emit','Agents','waiting','md5','updateRealtime'];(function(_0x54b65a,_0x5f5207){const _0x588463=function(_0x4fd3ff){while(--_0x4fd3ff){_0x54b65a['push'](_0x54b65a['shift']());}};_0x588463(++_0x5f5207);}(a1333_0x5884,0x111));const a1333_0x4fd3=function(_0x54b65a,_0x5f5207){_0x54b65a=_0x54b65a-0x71;let _0x588463=a1333_0x5884[_0x54b65a];return _0x588463;};const a1333_0x495b16=a1333_0x4fd3;'use strict';const _=require('lodash'),md5=require('md5'),util=require('util'),{getSocket}=require(a1333_0x495b16(0x85)),io=getSocket();function MailQueue(_0x9749e5){const _0x48b514=a1333_0x495b16;this['id']=_0x9749e5['id']||0x0,this[_0x48b514(0x79)]=_0x9749e5[_0x48b514(0x79)]||'',this[_0x48b514(0x81)]=_0x9749e5[_0x48b514(0x81)]||0xa,this[_0x48b514(0x74)]=_0x9749e5[_0x48b514(0x74)]||_0x48b514(0x75),this[_0x48b514(0x87)]=_0x9749e5[_0x48b514(0x87)],this[_0x48b514(0x7e)]={},this[_0x48b514(0x71)]=0x0,this['md5']='',this[_0x48b514(0x7c)](),this[_0x48b514(0x73)]();}MailQueue[a1333_0x495b16(0x80)][a1333_0x495b16(0x7c)]=function(){const _0x54a5e6=a1333_0x495b16,_0x230f9c=this[_0x54a5e6(0x7e)][_0x54a5e6(0x7d)];this[_0x54a5e6(0x7e)]=_[_0x54a5e6(0x78)](this[_0x54a5e6(0x87)],'id'),this[_0x54a5e6(0x7e)][_0x54a5e6(0x7d)]=_0x230f9c;},MailQueue[a1333_0x495b16(0x80)][a1333_0x495b16(0x73)]=function(){const _0x159ec6=a1333_0x495b16;this['loggedIn']=0x0,this[_0x159ec6(0x82)]=0x0;for(let _0xae8c6b=0x0;_0xae8c6b=0x0?this[_0x159ec6(0x76)]:0x0;const _0xe98417={'id':this['id'],'available':this['available'],'loggedIn':this[_0x159ec6(0x84)],'name':this[_0x159ec6(0x79)],'paused':this['paused'],'waiting':this[_0x159ec6(0x71)]},_0x4a68dc=md5(JSON[_0x159ec6(0x7a)](_0xe98417));this['md5']!==_0x4a68dc&&(this[_0x159ec6(0x72)]=_0x4a68dc,io['to'](util['format']('mail:queue:%s',_0xe98417[_0x159ec6(0x79)]))[_0x159ec6(0x86)](_0x159ec6(0x7f),_0xe98417));},module[a1333_0x495b16(0x7b)]=MailQueue; \ No newline at end of file diff --git a/server/services/routing/model/openchannelQueue.js b/server/services/routing/model/openchannelQueue.js index 08ed91a..e82916d 100644 --- a/server/services/routing/model/openchannelQueue.js +++ b/server/services/routing/model/openchannelQueue.js @@ -1 +1 @@ -const a1170_0xe168=['length','openchannel:queue:%s','openchannel_queue:save','loggedIn','updateRealtime','format','available','emit','prototype','stringify','mapAgentsId','../../../rediscache','online','beepall','util','Agents','strategy','_rr','updateRouting','timeout','name','exports','md5','waiting','paused','openchannelPause'];(function(_0x2b8ec5,_0xe16802){const _0x22ea13=function(_0xd3bc){while(--_0xd3bc){_0x2b8ec5['push'](_0x2b8ec5['shift']());}};_0x22ea13(++_0xe16802);}(a1170_0xe168,0xe2));const a1170_0x22ea=function(_0x2b8ec5,_0xe16802){_0x2b8ec5=_0x2b8ec5-0x0;let _0x22ea13=a1170_0xe168[_0x2b8ec5];return _0x22ea13;};const _0x1f5152=a1170_0x22ea;'use strict';const _=require('lodash'),md5=require('md5'),util=require(_0x1f5152('0x16')),{getSocket}=require(_0x1f5152('0x13')),io=getSocket();function OpenchannelQueue(_0xd3bc){const _0x8e22bd=_0x1f5152;this['id']=_0xd3bc['id']||0x0,this[_0x8e22bd('0x2')]=_0xd3bc[_0x8e22bd('0x2')]||'',this[_0x8e22bd('0x1')]=_0xd3bc['timeout']||0xa,this[_0x8e22bd('0x18')]=_0xd3bc['strategy']||_0x8e22bd('0x15'),this[_0x8e22bd('0x17')]=_0xd3bc[_0x8e22bd('0x17')],this[_0x8e22bd('0x12')]={},this[_0x8e22bd('0x5')]=0x0,this['md5']='',this[_0x8e22bd('0x0')](),this[_0x8e22bd('0xc')]();}OpenchannelQueue[_0x1f5152('0x10')][_0x1f5152('0x0')]=function(){const _0x45e47d=_0x1f5152,_0x567781=this[_0x45e47d('0x12')][_0x45e47d('0x19')];this[_0x45e47d('0x12')]=_['map'](this[_0x45e47d('0x17')],'id'),this[_0x45e47d('0x12')]['_rr']=_0x567781;},OpenchannelQueue[_0x1f5152('0x10')][_0x1f5152('0xc')]=function(){const _0x2c83e8=_0x1f5152;this[_0x2c83e8('0xb')]=0x0,this[_0x2c83e8('0x6')]=0x0;for(let _0x4c7012=0x0;_0x4c7012=0x0?this['available']:0x0;const _0x46226b={'id':this['id'],'available':this[_0x2c83e8('0xe')],'loggedIn':this[_0x2c83e8('0xb')],'name':this['name'],'paused':this[_0x2c83e8('0x6')],'waiting':this['waiting']},_0x4bc04e=md5(JSON[_0x2c83e8('0x11')](_0x46226b));this[_0x2c83e8('0x4')]!==_0x4bc04e&&(this[_0x2c83e8('0x4')]=_0x4bc04e,io['to'](util[_0x2c83e8('0xd')](_0x2c83e8('0x9'),_0x46226b[_0x2c83e8('0x2')]))[_0x2c83e8('0xf')](_0x2c83e8('0xa'),_0x46226b));},module[_0x1f5152('0x3')]=OpenchannelQueue; \ No newline at end of file +const a1334_0x1084=['openchannel_queue:save','stringify','online','updateRouting','emit','lodash','Agents','loggedIn','md5','prototype','_rr','available','beepall','name','timeout','length','map','updateRealtime','strategy','util','paused','openchannelPause','waiting','mapAgentsId'];(function(_0x3a9f19,_0x2abdac){const _0x108447=function(_0xd9e0a5){while(--_0xd9e0a5){_0x3a9f19['push'](_0x3a9f19['shift']());}};_0x108447(++_0x2abdac);}(a1334_0x1084,0x7d));const a1334_0xd9e0=function(_0x3a9f19,_0x2abdac){_0x3a9f19=_0x3a9f19-0x151;let _0x108447=a1334_0x1084[_0x3a9f19];return _0x108447;};const a1334_0x264cb1=a1334_0xd9e0;'use strict';const _=require(a1334_0x264cb1(0x151)),md5=require(a1334_0x264cb1(0x154)),util=require(a1334_0x264cb1(0x15f)),{getSocket}=require('../../../rediscache'),io=getSocket();function OpenchannelQueue(_0x40eeaf){const _0x46dc34=a1334_0x264cb1;this['id']=_0x40eeaf['id']||0x0,this[_0x46dc34(0x159)]=_0x40eeaf[_0x46dc34(0x159)]||'',this['timeout']=_0x40eeaf[_0x46dc34(0x15a)]||0xa,this[_0x46dc34(0x15e)]=_0x40eeaf[_0x46dc34(0x15e)]||_0x46dc34(0x158),this[_0x46dc34(0x152)]=_0x40eeaf[_0x46dc34(0x152)],this['mapAgentsId']={},this[_0x46dc34(0x162)]=0x0,this[_0x46dc34(0x154)]='',this[_0x46dc34(0x167)](),this[_0x46dc34(0x15d)]();}OpenchannelQueue[a1334_0x264cb1(0x155)][a1334_0x264cb1(0x167)]=function(){const _0x13e1f0=a1334_0x264cb1,_0x4512e5=this[_0x13e1f0(0x163)][_0x13e1f0(0x156)];this[_0x13e1f0(0x163)]=_[_0x13e1f0(0x15c)](this[_0x13e1f0(0x152)],'id'),this[_0x13e1f0(0x163)][_0x13e1f0(0x156)]=_0x4512e5;},OpenchannelQueue[a1334_0x264cb1(0x155)][a1334_0x264cb1(0x15d)]=function(){const _0xc0f7c0=a1334_0x264cb1;this[_0xc0f7c0(0x153)]=0x0,this[_0xc0f7c0(0x160)]=0x0;for(let _0x4ccd23=0x0;_0x4ccd23=0x0?this[_0xc0f7c0(0x157)]:0x0;const _0x5a1f14={'id':this['id'],'available':this[_0xc0f7c0(0x157)],'loggedIn':this[_0xc0f7c0(0x153)],'name':this['name'],'paused':this[_0xc0f7c0(0x160)],'waiting':this['waiting']},_0xdadd11=md5(JSON[_0xc0f7c0(0x165)](_0x5a1f14));this['md5']!==_0xdadd11&&(this[_0xc0f7c0(0x154)]=_0xdadd11,io['to'](util['format']('openchannel:queue:%s',_0x5a1f14[_0xc0f7c0(0x159)]))[_0xc0f7c0(0x168)](_0xc0f7c0(0x164),_0x5a1f14));},module['exports']=OpenchannelQueue; \ No newline at end of file diff --git a/server/services/routing/model/smsQueue.js b/server/services/routing/model/smsQueue.js index 622687c..94fd8b0 100644 --- a/server/services/routing/model/smsQueue.js +++ b/server/services/routing/model/smsQueue.js @@ -1 +1 @@ -const a1171_0x5acf=['available','waiting','loggedIn','online','sms_queue:save','Agents','map','mapAgentsId','_rr','name','format','updateRouting','../../../rediscache','length','emit','prototype','smsPause','md5','stringify','beepall','strategy','sms:queue:%s','updateRealtime','paused'];(function(_0x2ac096,_0x5acf16){const _0x5afc85=function(_0x29e4a2){while(--_0x29e4a2){_0x2ac096['push'](_0x2ac096['shift']());}};_0x5afc85(++_0x5acf16);}(a1171_0x5acf,0x121));const a1171_0x5afc=function(_0x2ac096,_0x5acf16){_0x2ac096=_0x2ac096-0x0;let _0x5afc85=a1171_0x5acf[_0x2ac096];return _0x5afc85;};const _0x357ef0=a1171_0x5afc;'use strict';const _=require('lodash'),md5=require('md5'),util=require('util'),{getSocket}=require(_0x357ef0('0xb')),io=getSocket();function SmsQueue(_0x29e4a2){const _0x3d66cc=_0x357ef0;this['id']=_0x29e4a2['id']||0x0,this['name']=_0x29e4a2[_0x3d66cc('0x8')]||'',this['timeout']=_0x29e4a2['timeout']||0xa,this[_0x3d66cc('0x13')]=_0x29e4a2[_0x3d66cc('0x13')]||_0x3d66cc('0x12'),this['Agents']=_0x29e4a2[_0x3d66cc('0x4')],this['mapAgentsId']={},this[_0x3d66cc('0x0')]=0x0,this[_0x3d66cc('0x10')]='',this[_0x3d66cc('0xa')](),this[_0x3d66cc('0x15')]();}SmsQueue[_0x357ef0('0xe')]['updateRouting']=function(){const _0x2b5c43=_0x357ef0,_0x5e14b7=this[_0x2b5c43('0x6')]['_rr'];this[_0x2b5c43('0x6')]=_[_0x2b5c43('0x5')](this[_0x2b5c43('0x4')],'id'),this[_0x2b5c43('0x6')][_0x2b5c43('0x7')]=_0x5e14b7;},SmsQueue[_0x357ef0('0xe')][_0x357ef0('0x15')]=function(){const _0x4d92a5=_0x357ef0;this[_0x4d92a5('0x1')]=0x0,this[_0x4d92a5('0x16')]=0x0;for(let _0x88f59=0x0;_0x88f59=0x0?this[_0x4d92a5('0x17')]:0x0;const _0x4aae9f={'id':this['id'],'available':this['available'],'loggedIn':this[_0x4d92a5('0x1')],'name':this[_0x4d92a5('0x8')],'paused':this[_0x4d92a5('0x16')],'waiting':this[_0x4d92a5('0x0')]},_0xfd1649=md5(JSON[_0x4d92a5('0x11')](_0x4aae9f));this['md5']!==_0xfd1649&&(this[_0x4d92a5('0x10')]=_0xfd1649,io['to'](util[_0x4d92a5('0x9')](_0x4d92a5('0x14'),_0x4aae9f[_0x4d92a5('0x8')]))[_0x4d92a5('0xd')](_0x4d92a5('0x3'),_0x4aae9f));},module['exports']=SmsQueue; \ No newline at end of file +const a1335_0x1ff6=['smsPause','prototype','strategy','Agents','beepall','timeout','mapAgentsId','_rr','md5','paused','map','online','updateRouting','format','length','waiting','util','loggedIn','name','updateRealtime','sms:queue:%s','../../../rediscache','sms_queue:save','available'];(function(_0x3b58dc,_0x31d408){const _0x1ff6d5=function(_0x5e57ec){while(--_0x5e57ec){_0x3b58dc['push'](_0x3b58dc['shift']());}};_0x1ff6d5(++_0x31d408);}(a1335_0x1ff6,0x13f));const a1335_0x5e57=function(_0x3b58dc,_0x31d408){_0x3b58dc=_0x3b58dc-0x194;let _0x1ff6d5=a1335_0x1ff6[_0x3b58dc];return _0x1ff6d5;};const a1335_0x196392=a1335_0x5e57;'use strict';const _=require('lodash'),md5=require(a1335_0x196392(0x195)),util=require(a1335_0x196392(0x19d)),{getSocket}=require(a1335_0x196392(0x1a2)),io=getSocket();function SmsQueue(_0x38932f){const _0x3207d9=a1335_0x196392;this['id']=_0x38932f['id']||0x0,this['name']=_0x38932f[_0x3207d9(0x19f)]||'',this[_0x3207d9(0x1aa)]=_0x38932f[_0x3207d9(0x1aa)]||0xa,this[_0x3207d9(0x1a7)]=_0x38932f['strategy']||_0x3207d9(0x1a9),this[_0x3207d9(0x1a8)]=_0x38932f['Agents'],this[_0x3207d9(0x1ab)]={},this[_0x3207d9(0x19c)]=0x0,this['md5']='',this[_0x3207d9(0x199)](),this['updateRealtime']();}SmsQueue[a1335_0x196392(0x1a6)][a1335_0x196392(0x199)]=function(){const _0x44c010=a1335_0x196392,_0x2d7969=this['mapAgentsId'][_0x44c010(0x194)];this[_0x44c010(0x1ab)]=_[_0x44c010(0x197)](this['Agents'],'id'),this[_0x44c010(0x1ab)][_0x44c010(0x194)]=_0x2d7969;},SmsQueue[a1335_0x196392(0x1a6)][a1335_0x196392(0x1a0)]=function(){const _0x5be125=a1335_0x196392;this[_0x5be125(0x19e)]=0x0,this[_0x5be125(0x196)]=0x0;for(let _0x2c8b5a=0x0;_0x2c8b5a=0x0?this['available']:0x0;const _0x3a41c0={'id':this['id'],'available':this[_0x5be125(0x1a4)],'loggedIn':this[_0x5be125(0x19e)],'name':this[_0x5be125(0x19f)],'paused':this[_0x5be125(0x196)],'waiting':this[_0x5be125(0x19c)]},_0xf2be=md5(JSON['stringify'](_0x3a41c0));this[_0x5be125(0x195)]!==_0xf2be&&(this[_0x5be125(0x195)]=_0xf2be,io['to'](util[_0x5be125(0x19a)](_0x5be125(0x1a1),_0x3a41c0['name']))['emit'](_0x5be125(0x1a3),_0x3a41c0));},module['exports']=SmsQueue; \ No newline at end of file diff --git a/server/services/routing/model/whatsappQueue.js b/server/services/routing/model/whatsappQueue.js index dee6687..abef0c5 100644 --- a/server/services/routing/model/whatsappQueue.js +++ b/server/services/routing/model/whatsappQueue.js @@ -1 +1 @@ -const a1172_0x345b=['util','_rr','mapAgentsId','beepall','strategy','length','waiting','stringify','updateRouting','md5','whatsapp_queue:save','emit','../../../rediscache','prototype','available','loggedIn','Agents','updateRealtime','name','timeout','whatsappPause','exports'];(function(_0x54add3,_0x345b51){const _0x566533=function(_0x229015){while(--_0x229015){_0x54add3['push'](_0x54add3['shift']());}};_0x566533(++_0x345b51);}(a1172_0x345b,0x1b8));const a1172_0x5665=function(_0x54add3,_0x345b51){_0x54add3=_0x54add3-0x0;let _0x566533=a1172_0x345b[_0x54add3];return _0x566533;};const _0x56cd46=a1172_0x5665;'use strict';const _=require('lodash'),md5=require(_0x56cd46('0x9')),util=require(_0x56cd46('0x0')),{getSocket}=require(_0x56cd46('0xc')),io=getSocket();function WhatsappQueue(_0x229015){const _0x44bbe5=_0x56cd46;this['id']=_0x229015['id']||0x0,this[_0x44bbe5('0x12')]=_0x229015[_0x44bbe5('0x12')]||'',this[_0x44bbe5('0x13')]=_0x229015[_0x44bbe5('0x13')]||0xa,this[_0x44bbe5('0x4')]=_0x229015['strategy']||_0x44bbe5('0x3'),this['Agents']=_0x229015[_0x44bbe5('0x10')],this[_0x44bbe5('0x2')]={},this[_0x44bbe5('0x6')]=0x0,this['md5']='',this[_0x44bbe5('0x8')](),this['updateRealtime']();}WhatsappQueue['prototype'][_0x56cd46('0x8')]=function(){const _0x19f5e3=_0x56cd46,_0x3f21d7=this[_0x19f5e3('0x2')][_0x19f5e3('0x1')];this[_0x19f5e3('0x2')]=_['map'](this['Agents'],'id'),this[_0x19f5e3('0x2')][_0x19f5e3('0x1')]=_0x3f21d7;},WhatsappQueue[_0x56cd46('0xd')][_0x56cd46('0x11')]=function(){const _0x499537=_0x56cd46;this[_0x499537('0xf')]=0x0,this['paused']=0x0;for(let _0x1b2b25=0x0;_0x1b2b25=0x0?this[_0x499537('0xe')]:0x0;const _0x101ce8={'id':this['id'],'available':this[_0x499537('0xe')],'loggedIn':this[_0x499537('0xf')],'name':this[_0x499537('0x12')],'paused':this['paused'],'waiting':this[_0x499537('0x6')]},_0x275c9d=md5(JSON[_0x499537('0x7')](_0x101ce8));this[_0x499537('0x9')]!==_0x275c9d&&(this[_0x499537('0x9')]=_0x275c9d,io['to'](util['format']('whatsapp:queue:%s',_0x101ce8['name']))[_0x499537('0xb')](_0x499537('0xa'),_0x101ce8));},module[_0x56cd46('0x15')]=WhatsappQueue; \ No newline at end of file +const a1336_0x170c=['waiting','beepall','_rr','map','util','available','mapAgentsId','paused','online','updateRouting','name','stringify','lodash','../../../rediscache','timeout','loggedIn','strategy','length','md5','whatsappPause','format','prototype','Agents'];(function(_0x25b531,_0x112cda){const _0x170cf9=function(_0x228743){while(--_0x228743){_0x25b531['push'](_0x25b531['shift']());}};_0x170cf9(++_0x112cda);}(a1336_0x170c,0x1a3));const a1336_0x2287=function(_0x25b531,_0x112cda){_0x25b531=_0x25b531-0xd1;let _0x170cf9=a1336_0x170c[_0x25b531];return _0x170cf9;};const a1336_0x220700=a1336_0x2287;'use strict';const _=require(a1336_0x220700(0xd8)),md5=require(a1336_0x220700(0xde)),util=require(a1336_0x220700(0xe7)),{getSocket}=require(a1336_0x220700(0xd9)),io=getSocket();function WhatsappQueue(_0x3d9e95){const _0x27fa75=a1336_0x220700;this['id']=_0x3d9e95['id']||0x0,this[_0x27fa75(0xd6)]=_0x3d9e95[_0x27fa75(0xd6)]||'',this[_0x27fa75(0xda)]=_0x3d9e95[_0x27fa75(0xda)]||0xa,this[_0x27fa75(0xdc)]=_0x3d9e95[_0x27fa75(0xdc)]||_0x27fa75(0xe4),this[_0x27fa75(0xe2)]=_0x3d9e95[_0x27fa75(0xe2)],this[_0x27fa75(0xd2)]={},this['waiting']=0x0,this[_0x27fa75(0xde)]='',this['updateRouting'](),this['updateRealtime']();}WhatsappQueue[a1336_0x220700(0xe1)][a1336_0x220700(0xd5)]=function(){const _0xe3a7f4=a1336_0x220700,_0xeeb2a5=this[_0xe3a7f4(0xd2)][_0xe3a7f4(0xe5)];this[_0xe3a7f4(0xd2)]=_[_0xe3a7f4(0xe6)](this[_0xe3a7f4(0xe2)],'id'),this[_0xe3a7f4(0xd2)][_0xe3a7f4(0xe5)]=_0xeeb2a5;},WhatsappQueue['prototype']['updateRealtime']=function(){const _0x1021d2=a1336_0x220700;this[_0x1021d2(0xdb)]=0x0,this['paused']=0x0;for(let _0x4154a8=0x0;_0x4154a8=0x0?this['available']:0x0;const _0x52ca06={'id':this['id'],'available':this['available'],'loggedIn':this[_0x1021d2(0xdb)],'name':this[_0x1021d2(0xd6)],'paused':this[_0x1021d2(0xd3)],'waiting':this[_0x1021d2(0xe3)]},_0x4fb011=md5(JSON[_0x1021d2(0xd7)](_0x52ca06));this[_0x1021d2(0xde)]!==_0x4fb011&&(this[_0x1021d2(0xde)]=_0x4fb011,io['to'](util[_0x1021d2(0xe0)]('whatsapp:queue:%s',_0x52ca06[_0x1021d2(0xd6)]))['emit']('whatsapp_queue:save',_0x52ca06));},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 e56ac2d..fa3af8d 100644 --- a/server/services/routing/realtime/index.js +++ b/server/services/routing/realtime/index.js @@ -1 +1 @@ -const a1173_0x3e16=['initIntervals','../model/whatsappQueue','mailQueues','undefined','isUndefined','intervals','lodash','smsQueues','initFaxQueues','../model/mailQueue','whatsappQueuesWaitingInteractions','mapKeys','openchannelQueuesWaitingInteractions','../model/chatQueue','updateRealtime','../model/openchannelQueue','faxQueuesWaitingInteractions','length','chatQueuesWaitingInteractions','smsQueuesWaitingInteractions','exports','../model/interval','agents','../model/smsQueue','updateRouting','mergeFromDatabase','prototype','initMailQueues','openchannelQueues','initAgents','../model/agent','../model/faxQueue','chatQueues','whatsappQueues','faxQueues'];(function(_0x95ffcb,_0x3e160){const _0x17a259=function(_0x526ac0){while(--_0x526ac0){_0x95ffcb['push'](_0x95ffcb['shift']());}};_0x17a259(++_0x3e160);}(a1173_0x3e16,0x1b4));const a1173_0x17a2=function(_0x95ffcb,_0x3e160){_0x95ffcb=_0x95ffcb-0x0;let _0x17a259=a1173_0x3e16[_0x95ffcb];return _0x17a259;};const _0x3de3a5=a1173_0x17a2;'use strict';const _=require(_0x3de3a5('0x19')),Agent=require(_0x3de3a5('0xe')),Interval=require(_0x3de3a5('0x5')),OpenchannelQueue=require(_0x3de3a5('0x22')),ChatQueue=require(_0x3de3a5('0x20')),SmsQueue=require(_0x3de3a5('0x7')),MailQueue=require(_0x3de3a5('0x1c')),FaxQueue=require(_0x3de3a5('0xf')),WhatsappQueue=require(_0x3de3a5('0x14')),Realtime=function(){const _0x600a32=_0x3de3a5;this['agents']={},this[_0x600a32('0x18')]={},this[_0x600a32('0xc')]={},this[_0x600a32('0x10')]={},this[_0x600a32('0x1a')]={},this[_0x600a32('0x15')]={},this['faxQueues']={},this[_0x600a32('0x11')]={},this[_0x600a32('0x2')]={},this['mailQueuesWaitingInteractions']={},this[_0x600a32('0x1f')]={},this[_0x600a32('0x3')]={},this[_0x600a32('0x0')]={},this[_0x600a32('0x1d')]={};};function freeIsNotKey(_0x526ac0,_0x4f194b,_0x586397){const _0x67222=_0x3de3a5,_0x16376d=_[_0x67222('0x1e')](_0x526ac0,function(_0xa2337e){return _0xa2337e[_0x586397];});for(const _0x2af499 in _0x4f194b){typeof _0x4f194b[_0x2af499]!==_0x67222('0x16')&&(!_0x16376d[_0x2af499]&&delete _0x4f194b[_0x2af499]);}}Realtime[_0x3de3a5('0xa')]['mergeFromDatabase']=function(_0x5c6ceb,_0x442fcd){for(const _0x944dcf in _0x442fcd){typeof _0x5c6ceb[_0x944dcf]!=='undefined'&&(_0x5c6ceb[_0x944dcf]=_0x442fcd[_0x944dcf]);}},Realtime[_0x3de3a5('0xa')][_0x3de3a5('0xd')]=function(){const _0x2ec4d6=this;return function(_0x45696c){const _0x531a1d=a1173_0x17a2;if(_0x45696c){freeIsNotKey(_0x45696c,_0x2ec4d6[_0x531a1d('0x6')],'id');for(let _0x4fb5cc=0x0,_0xcec385={};_0x4fb5cc<_0x45696c[_0x531a1d('0x1')];_0x4fb5cc+=0x1){_0xcec385=_0x45696c[_0x4fb5cc],_[_0x531a1d('0x17')](_0x2ec4d6['agents'][_0xcec385['id']])?_0x2ec4d6['agents'][_0xcec385['id']]=new Agent(_0xcec385):_0x2ec4d6[_0x531a1d('0x9')](_0x2ec4d6[_0x531a1d('0x6')][_0xcec385['id']],_0xcec385);}}return _0x2ec4d6['agents'];};},Realtime[_0x3de3a5('0xa')][_0x3de3a5('0x13')]=function(){const _0x17a18b=this;return function(_0x8d78d1){const _0x1e8267=a1173_0x17a2;if(_0x8d78d1){freeIsNotKey(_0x8d78d1,_0x17a18b[_0x1e8267('0x18')],'id');for(let _0x2d1655=0x0,_0x2d0d64={};_0x2d1655<_0x8d78d1['length'];_0x2d1655+=0x1){_0x2d0d64=_0x8d78d1[_0x2d1655],_[_0x1e8267('0x17')](_0x17a18b['intervals'][_0x2d0d64['id']])?_0x17a18b['intervals'][_0x2d0d64['id']]=new Interval(_0x2d0d64):_0x17a18b[_0x1e8267('0x9')](_0x17a18b['intervals'][_0x2d0d64['id']],_0x2d0d64);}}return _0x17a18b[_0x1e8267('0x18')];};},Realtime[_0x3de3a5('0xa')]['initOpenchannelQueues']=function(){const _0x33319b=this;return function(_0x2aa09d){const _0x52076c=a1173_0x17a2;if(_0x2aa09d){freeIsNotKey(_0x2aa09d,_0x33319b[_0x52076c('0xc')],'id');for(let _0xf46fc4=0x0,_0x3009fb={};_0xf46fc4<_0x2aa09d['length'];_0xf46fc4+=0x1){_0x3009fb=_0x2aa09d[_0xf46fc4],_[_0x52076c('0x17')](_0x33319b[_0x52076c('0xc')][_0x3009fb['id']])?_0x33319b['openchannelQueues'][_0x3009fb['id']]=new OpenchannelQueue(_0x3009fb):_0x33319b[_0x52076c('0x9')](_0x33319b[_0x52076c('0xc')][_0x3009fb['id']],_0x3009fb),_0x33319b[_0x52076c('0xc')][_0x3009fb['id']][_0x52076c('0x8')](),_0x33319b[_0x52076c('0xc')][_0x3009fb['id']][_0x52076c('0x21')]();}}return _0x33319b[_0x52076c('0xc')];};},Realtime[_0x3de3a5('0xa')]['initChatQueues']=function(){const _0x27c4ef=this;return function(_0x2d964a){const _0x49340c=a1173_0x17a2;if(_0x2d964a){freeIsNotKey(_0x2d964a,_0x27c4ef[_0x49340c('0x10')],'id');for(let _0x3bf14d=0x0,_0x425a47={};_0x3bf14d<_0x2d964a[_0x49340c('0x1')];_0x3bf14d+=0x1){_0x425a47=_0x2d964a[_0x3bf14d],_[_0x49340c('0x17')](_0x27c4ef[_0x49340c('0x10')][_0x425a47['id']])?_0x27c4ef[_0x49340c('0x10')][_0x425a47['id']]=new ChatQueue(_0x425a47):_0x27c4ef[_0x49340c('0x9')](_0x27c4ef['chatQueues'][_0x425a47['id']],_0x425a47),_0x27c4ef[_0x49340c('0x10')][_0x425a47['id']][_0x49340c('0x8')](),_0x27c4ef[_0x49340c('0x10')][_0x425a47['id']]['updateRealtime']();}}return _0x27c4ef['chatQueues'];};},Realtime[_0x3de3a5('0xa')]['initSmsQueues']=function(){const _0x5cbae3=this;return function(_0x36c87c){const _0x3f5696=a1173_0x17a2;if(_0x36c87c){freeIsNotKey(_0x36c87c,_0x5cbae3[_0x3f5696('0x1a')],'id');for(let _0x103eb3=0x0,_0x3592ea={};_0x103eb3<_0x36c87c[_0x3f5696('0x1')];_0x103eb3+=0x1){_0x3592ea=_0x36c87c[_0x103eb3],_['isUndefined'](_0x5cbae3['smsQueues'][_0x3592ea['id']])?_0x5cbae3['smsQueues'][_0x3592ea['id']]=new SmsQueue(_0x3592ea):_0x5cbae3[_0x3f5696('0x9')](_0x5cbae3['smsQueues'][_0x3592ea['id']],_0x3592ea),_0x5cbae3[_0x3f5696('0x1a')][_0x3592ea['id']][_0x3f5696('0x8')](),_0x5cbae3[_0x3f5696('0x1a')][_0x3592ea['id']]['updateRealtime']();}}return _0x5cbae3[_0x3f5696('0x1a')];};},Realtime[_0x3de3a5('0xa')][_0x3de3a5('0xb')]=function(){const _0x2ef03d=this;return function(_0x4e6463){const _0x214418=a1173_0x17a2;if(_0x4e6463){freeIsNotKey(_0x4e6463,_0x2ef03d[_0x214418('0x15')],'id');for(let _0x5ad4df=0x0,_0x7417f7={};_0x5ad4df<_0x4e6463[_0x214418('0x1')];_0x5ad4df+=0x1){_0x7417f7=_0x4e6463[_0x5ad4df],_[_0x214418('0x17')](_0x2ef03d['mailQueues'][_0x7417f7['id']])?_0x2ef03d[_0x214418('0x15')][_0x7417f7['id']]=new MailQueue(_0x7417f7):_0x2ef03d['mergeFromDatabase'](_0x2ef03d[_0x214418('0x15')][_0x7417f7['id']],_0x7417f7),_0x2ef03d['mailQueues'][_0x7417f7['id']]['updateRouting'](),_0x2ef03d['mailQueues'][_0x7417f7['id']][_0x214418('0x21')]();}}return _0x2ef03d[_0x214418('0x15')];};},Realtime[_0x3de3a5('0xa')][_0x3de3a5('0x1b')]=function(){const _0x1b29b2=this;return function(_0x4e59ef){const _0x9cbd1c=a1173_0x17a2;if(_0x4e59ef){freeIsNotKey(_0x4e59ef,_0x1b29b2[_0x9cbd1c('0x12')],'id');for(let _0x783946=0x0,_0x33eca6={};_0x783946<_0x4e59ef[_0x9cbd1c('0x1')];_0x783946+=0x1){_0x33eca6=_0x4e59ef[_0x783946],_['isUndefined'](_0x1b29b2[_0x9cbd1c('0x12')][_0x33eca6['id']])?_0x1b29b2['faxQueues'][_0x33eca6['id']]=new FaxQueue(_0x33eca6):_0x1b29b2[_0x9cbd1c('0x9')](_0x1b29b2['faxQueues'][_0x33eca6['id']],_0x33eca6),_0x1b29b2[_0x9cbd1c('0x12')][_0x33eca6['id']][_0x9cbd1c('0x8')](),_0x1b29b2['faxQueues'][_0x33eca6['id']][_0x9cbd1c('0x21')]();}}return _0x1b29b2[_0x9cbd1c('0x12')];};},Realtime['prototype']['initWhatsappQueues']=function(){const _0x4df169=this;return function(_0x3d814c){const _0x2fe489=a1173_0x17a2;if(_0x3d814c){freeIsNotKey(_0x3d814c,_0x4df169['whatsappQueues'],'id');for(let _0x8e084e=0x0,_0x28746c={};_0x8e084e<_0x3d814c['length'];_0x8e084e+=0x1){_0x28746c=_0x3d814c[_0x8e084e],_[_0x2fe489('0x17')](_0x4df169[_0x2fe489('0x11')][_0x28746c['id']])?_0x4df169[_0x2fe489('0x11')][_0x28746c['id']]=new WhatsappQueue(_0x28746c):_0x4df169[_0x2fe489('0x9')](_0x4df169[_0x2fe489('0x11')][_0x28746c['id']],_0x28746c),_0x4df169['whatsappQueues'][_0x28746c['id']][_0x2fe489('0x8')](),_0x4df169[_0x2fe489('0x11')][_0x28746c['id']]['updateRealtime']();}}return _0x4df169[_0x2fe489('0x11')];};},module[_0x3de3a5('0x4')]=Realtime; \ No newline at end of file +const a1337_0x5ddc=['mapKeys','../model/whatsappQueue','faxQueuesWaitingInteractions','smsQueues','chatQueues','mailQueuesWaitingInteractions','lodash','../model/faxQueue','whatsappQueuesWaitingInteractions','length','updateRealtime','exports','chatQueuesWaitingInteractions','initFaxQueues','initChatQueues','intervals','prototype','updateRouting','initSmsQueues','../model/mailQueue','whatsappQueues','initIntervals','../model/smsQueue','agents','openchannelQueuesWaitingInteractions','../model/openchannelQueue','mergeFromDatabase','initAgents','mailQueues','openchannelQueues','undefined','isUndefined','../model/agent','faxQueues','../model/chatQueue'];(function(_0x5934f4,_0x15e6e6){const _0x5ddc44=function(_0x31637e){while(--_0x31637e){_0x5934f4['push'](_0x5934f4['shift']());}};_0x5ddc44(++_0x15e6e6);}(a1337_0x5ddc,0x69));const a1337_0x3163=function(_0x5934f4,_0x15e6e6){_0x5934f4=_0x5934f4-0x7b;let _0x5ddc44=a1337_0x5ddc[_0x5934f4];return _0x5ddc44;};const a1337_0x11a946=a1337_0x3163;'use strict';const _=require(a1337_0x11a946(0x81)),Agent=require(a1337_0x11a946(0x9b)),Interval=require('../model/interval'),OpenchannelQueue=require(a1337_0x11a946(0x94)),ChatQueue=require(a1337_0x11a946(0x9d)),SmsQueue=require(a1337_0x11a946(0x91)),MailQueue=require(a1337_0x11a946(0x8e)),FaxQueue=require(a1337_0x11a946(0x82)),WhatsappQueue=require(a1337_0x11a946(0x7c)),Realtime=function(){const _0x1f5b01=a1337_0x11a946;this[_0x1f5b01(0x92)]={},this['intervals']={},this['openchannelQueues']={},this[_0x1f5b01(0x7f)]={},this[_0x1f5b01(0x7e)]={},this['mailQueues']={},this[_0x1f5b01(0x9c)]={},this[_0x1f5b01(0x8f)]={},this[_0x1f5b01(0x87)]={},this[_0x1f5b01(0x80)]={},this[_0x1f5b01(0x93)]={},this['smsQueuesWaitingInteractions']={},this[_0x1f5b01(0x7d)]={},this[_0x1f5b01(0x83)]={};};function freeIsNotKey(_0x140b6a,_0x2527da,_0x67f4b6){const _0x338491=a1337_0x11a946,_0x326330=_[_0x338491(0x7b)](_0x140b6a,function(_0x451e8c){return _0x451e8c[_0x67f4b6];});for(const _0x265482 in _0x2527da){typeof _0x2527da[_0x265482]!==_0x338491(0x99)&&(!_0x326330[_0x265482]&&delete _0x2527da[_0x265482]);}}Realtime['prototype'][a1337_0x11a946(0x95)]=function(_0x400420,_0x50042b){const _0xb1fee9=a1337_0x11a946;for(const _0x276e35 in _0x50042b){typeof _0x400420[_0x276e35]!==_0xb1fee9(0x99)&&(_0x400420[_0x276e35]=_0x50042b[_0x276e35]);}},Realtime[a1337_0x11a946(0x8b)][a1337_0x11a946(0x96)]=function(){const _0x33e07c=this;return function(_0x184554){const _0x21bc46=a1337_0x3163;if(_0x184554){freeIsNotKey(_0x184554,_0x33e07c[_0x21bc46(0x92)],'id');for(let _0x492594=0x0,_0x272bc5={};_0x492594<_0x184554[_0x21bc46(0x84)];_0x492594+=0x1){_0x272bc5=_0x184554[_0x492594],_[_0x21bc46(0x9a)](_0x33e07c['agents'][_0x272bc5['id']])?_0x33e07c[_0x21bc46(0x92)][_0x272bc5['id']]=new Agent(_0x272bc5):_0x33e07c[_0x21bc46(0x95)](_0x33e07c[_0x21bc46(0x92)][_0x272bc5['id']],_0x272bc5);}}return _0x33e07c[_0x21bc46(0x92)];};},Realtime[a1337_0x11a946(0x8b)][a1337_0x11a946(0x90)]=function(){const _0xf780c0=this;return function(_0x5e5114){const _0x5664b7=a1337_0x3163;if(_0x5e5114){freeIsNotKey(_0x5e5114,_0xf780c0[_0x5664b7(0x8a)],'id');for(let _0x1751a1=0x0,_0x2090d0={};_0x1751a1<_0x5e5114[_0x5664b7(0x84)];_0x1751a1+=0x1){_0x2090d0=_0x5e5114[_0x1751a1],_[_0x5664b7(0x9a)](_0xf780c0[_0x5664b7(0x8a)][_0x2090d0['id']])?_0xf780c0[_0x5664b7(0x8a)][_0x2090d0['id']]=new Interval(_0x2090d0):_0xf780c0[_0x5664b7(0x95)](_0xf780c0['intervals'][_0x2090d0['id']],_0x2090d0);}}return _0xf780c0[_0x5664b7(0x8a)];};},Realtime[a1337_0x11a946(0x8b)]['initOpenchannelQueues']=function(){const _0x3eaf86=this;return function(_0x5d2039){const _0x17d72d=a1337_0x3163;if(_0x5d2039){freeIsNotKey(_0x5d2039,_0x3eaf86[_0x17d72d(0x98)],'id');for(let _0x1eb3e5=0x0,_0x194f02={};_0x1eb3e5<_0x5d2039[_0x17d72d(0x84)];_0x1eb3e5+=0x1){_0x194f02=_0x5d2039[_0x1eb3e5],_[_0x17d72d(0x9a)](_0x3eaf86[_0x17d72d(0x98)][_0x194f02['id']])?_0x3eaf86[_0x17d72d(0x98)][_0x194f02['id']]=new OpenchannelQueue(_0x194f02):_0x3eaf86[_0x17d72d(0x95)](_0x3eaf86[_0x17d72d(0x98)][_0x194f02['id']],_0x194f02),_0x3eaf86['openchannelQueues'][_0x194f02['id']][_0x17d72d(0x8c)](),_0x3eaf86['openchannelQueues'][_0x194f02['id']][_0x17d72d(0x85)]();}}return _0x3eaf86[_0x17d72d(0x98)];};},Realtime[a1337_0x11a946(0x8b)][a1337_0x11a946(0x89)]=function(){const _0x2e375a=this;return function(_0x10bdf1){const _0x158a84=a1337_0x3163;if(_0x10bdf1){freeIsNotKey(_0x10bdf1,_0x2e375a['chatQueues'],'id');for(let _0x5df6cc=0x0,_0x41bf24={};_0x5df6cc<_0x10bdf1[_0x158a84(0x84)];_0x5df6cc+=0x1){_0x41bf24=_0x10bdf1[_0x5df6cc],_['isUndefined'](_0x2e375a['chatQueues'][_0x41bf24['id']])?_0x2e375a[_0x158a84(0x7f)][_0x41bf24['id']]=new ChatQueue(_0x41bf24):_0x2e375a['mergeFromDatabase'](_0x2e375a[_0x158a84(0x7f)][_0x41bf24['id']],_0x41bf24),_0x2e375a[_0x158a84(0x7f)][_0x41bf24['id']][_0x158a84(0x8c)](),_0x2e375a[_0x158a84(0x7f)][_0x41bf24['id']]['updateRealtime']();}}return _0x2e375a[_0x158a84(0x7f)];};},Realtime[a1337_0x11a946(0x8b)][a1337_0x11a946(0x8d)]=function(){const _0x170e9a=this;return function(_0xa59be1){const _0x4f0a2f=a1337_0x3163;if(_0xa59be1){freeIsNotKey(_0xa59be1,_0x170e9a['smsQueues'],'id');for(let _0x4ed8bc=0x0,_0x29eaa0={};_0x4ed8bc<_0xa59be1[_0x4f0a2f(0x84)];_0x4ed8bc+=0x1){_0x29eaa0=_0xa59be1[_0x4ed8bc],_[_0x4f0a2f(0x9a)](_0x170e9a[_0x4f0a2f(0x7e)][_0x29eaa0['id']])?_0x170e9a[_0x4f0a2f(0x7e)][_0x29eaa0['id']]=new SmsQueue(_0x29eaa0):_0x170e9a[_0x4f0a2f(0x95)](_0x170e9a['smsQueues'][_0x29eaa0['id']],_0x29eaa0),_0x170e9a[_0x4f0a2f(0x7e)][_0x29eaa0['id']][_0x4f0a2f(0x8c)](),_0x170e9a[_0x4f0a2f(0x7e)][_0x29eaa0['id']][_0x4f0a2f(0x85)]();}}return _0x170e9a['smsQueues'];};},Realtime[a1337_0x11a946(0x8b)]['initMailQueues']=function(){const _0x1261e6=this;return function(_0xfcc4c4){const _0x3ada8f=a1337_0x3163;if(_0xfcc4c4){freeIsNotKey(_0xfcc4c4,_0x1261e6['mailQueues'],'id');for(let _0x3338f1=0x0,_0x535cef={};_0x3338f1<_0xfcc4c4[_0x3ada8f(0x84)];_0x3338f1+=0x1){_0x535cef=_0xfcc4c4[_0x3338f1],_[_0x3ada8f(0x9a)](_0x1261e6[_0x3ada8f(0x97)][_0x535cef['id']])?_0x1261e6[_0x3ada8f(0x97)][_0x535cef['id']]=new MailQueue(_0x535cef):_0x1261e6[_0x3ada8f(0x95)](_0x1261e6[_0x3ada8f(0x97)][_0x535cef['id']],_0x535cef),_0x1261e6[_0x3ada8f(0x97)][_0x535cef['id']]['updateRouting'](),_0x1261e6[_0x3ada8f(0x97)][_0x535cef['id']][_0x3ada8f(0x85)]();}}return _0x1261e6['mailQueues'];};},Realtime[a1337_0x11a946(0x8b)][a1337_0x11a946(0x88)]=function(){const _0x528b5b=this;return function(_0x39d398){const _0x4f39cc=a1337_0x3163;if(_0x39d398){freeIsNotKey(_0x39d398,_0x528b5b[_0x4f39cc(0x9c)],'id');for(let _0x537334=0x0,_0x1a6e00={};_0x537334<_0x39d398[_0x4f39cc(0x84)];_0x537334+=0x1){_0x1a6e00=_0x39d398[_0x537334],_[_0x4f39cc(0x9a)](_0x528b5b[_0x4f39cc(0x9c)][_0x1a6e00['id']])?_0x528b5b[_0x4f39cc(0x9c)][_0x1a6e00['id']]=new FaxQueue(_0x1a6e00):_0x528b5b[_0x4f39cc(0x95)](_0x528b5b[_0x4f39cc(0x9c)][_0x1a6e00['id']],_0x1a6e00),_0x528b5b[_0x4f39cc(0x9c)][_0x1a6e00['id']][_0x4f39cc(0x8c)](),_0x528b5b[_0x4f39cc(0x9c)][_0x1a6e00['id']][_0x4f39cc(0x85)]();}}return _0x528b5b[_0x4f39cc(0x9c)];};},Realtime[a1337_0x11a946(0x8b)]['initWhatsappQueues']=function(){const _0x7f4244=this;return function(_0x13457e){const _0x41216a=a1337_0x3163;if(_0x13457e){freeIsNotKey(_0x13457e,_0x7f4244[_0x41216a(0x8f)],'id');for(let _0x35cbc4=0x0,_0x3ffbed={};_0x35cbc4<_0x13457e[_0x41216a(0x84)];_0x35cbc4+=0x1){_0x3ffbed=_0x13457e[_0x35cbc4],_['isUndefined'](_0x7f4244[_0x41216a(0x8f)][_0x3ffbed['id']])?_0x7f4244['whatsappQueues'][_0x3ffbed['id']]=new WhatsappQueue(_0x3ffbed):_0x7f4244[_0x41216a(0x95)](_0x7f4244[_0x41216a(0x8f)][_0x3ffbed['id']],_0x3ffbed),_0x7f4244['whatsappQueues'][_0x3ffbed['id']][_0x41216a(0x8c)](),_0x7f4244[_0x41216a(0x8f)][_0x3ffbed['id']][_0x41216a(0x85)]();}}return _0x7f4244[_0x41216a(0x8f)];};},module[a1337_0x11a946(0x86)]=Realtime; \ No newline at end of file diff --git a/server/services/routing/rpc/chatInteraction.js b/server/services/routing/rpc/chatInteraction.js index 3438d6e..90eac9a 100644 --- a/server/services/routing/rpc/chatInteraction.js +++ b/server/services/routing/rpc/chatInteraction.js @@ -1 +1 @@ -const a1174_0x52ba=['addTags','updateChatInteraction','AddTagsToChatInteraction','Request','UpdateChatInteraction','../client'];(function(_0x309b82,_0x52ba44){const _0x4f2010=function(_0x1600cc){while(--_0x1600cc){_0x309b82['push'](_0x309b82['shift']());}};_0x4f2010(++_0x52ba44);}(a1174_0x52ba,0x1cb));const a1174_0x4f20=function(_0x309b82,_0x52ba44){_0x309b82=_0x309b82-0x0;let _0x4f2010=a1174_0x52ba[_0x309b82];return _0x4f2010;};const _0x1b5ea2=a1174_0x4f20;'use strict';const client=require(_0x1b5ea2('0x2'));exports['update']=function(_0x1600cc,_0x126abc){const _0x14dea0=_0x1b5ea2;return client[_0x14dea0('0x0')](_0x14dea0('0x1'),{'body':_0x126abc,'options':{'where':{'id':_0x1600cc}},'log':_0x14dea0('0x4')});},exports[_0x1b5ea2('0x3')]=function(_0x12313e,_0x574b18){const _0x28c165=_0x1b5ea2;return client[_0x28c165('0x0')](_0x28c165('0x5'),{'body':_0x574b18,'options':{'where':{'id':_0x12313e}},'log':'addTagsToChatInteraction'});}; \ No newline at end of file +const a1338_0x2401=['Request','addTags','updateChatInteraction','addTagsToChatInteraction','UpdateChatInteraction','update'];(function(_0x423200,_0x108421){const _0x2401a9=function(_0x350243){while(--_0x350243){_0x423200['push'](_0x423200['shift']());}};_0x2401a9(++_0x108421);}(a1338_0x2401,0x15e));const a1338_0x3502=function(_0x423200,_0x108421){_0x423200=_0x423200-0xe4;let _0x2401a9=a1338_0x2401[_0x423200];return _0x2401a9;};const a1338_0x15c678=a1338_0x3502;'use strict';const client=require('../client');exports[a1338_0x15c678(0xe7)]=function(_0x342472,_0xa55db2){const _0x8ea71e=a1338_0x15c678;return client[_0x8ea71e(0xe8)](_0x8ea71e(0xe6),{'body':_0xa55db2,'options':{'where':{'id':_0x342472}},'log':_0x8ea71e(0xe4)});},exports[a1338_0x15c678(0xe9)]=function(_0x449761,_0x167bd6){const _0x6dc1c1=a1338_0x15c678;return client['Request']('AddTagsToChatInteraction',{'body':_0x167bd6,'options':{'where':{'id':_0x449761}},'log':_0x6dc1c1(0xe5)});}; \ No newline at end of file diff --git a/server/services/routing/rpc/chatMessage.js b/server/services/routing/rpc/chatMessage.js index b9e7d92..024273b 100644 --- a/server/services/routing/rpc/chatMessage.js +++ b/server/services/routing/rpc/chatMessage.js @@ -1 +1 @@ -const a1175_0x22ce=['Request','../client','createChatMessage','create'];(function(_0x1904aa,_0x22ce19){const _0x70d5ee=function(_0x556502){while(--_0x556502){_0x1904aa['push'](_0x1904aa['shift']());}};_0x70d5ee(++_0x22ce19);}(a1175_0x22ce,0xf2));const a1175_0x70d5=function(_0x1904aa,_0x22ce19){_0x1904aa=_0x1904aa-0x0;let _0x70d5ee=a1175_0x22ce[_0x1904aa];return _0x70d5ee;};const _0x452384=a1175_0x70d5;'use strict';const client=require(_0x452384('0x3'));exports[_0x452384('0x1')]=function(_0x556502){const _0x198738=_0x452384;return client[_0x198738('0x2')]('CreateChatMessage',{'body':_0x556502,'log':_0x198738('0x0')});}; \ No newline at end of file +const a1339_0x29e7=['../client','Request','CreateChatMessage','createChatMessage','create'];(function(_0x3c5046,_0x4ebf1d){const _0x29e7b2=function(_0x3c3c3b){while(--_0x3c3c3b){_0x3c5046['push'](_0x3c5046['shift']());}};_0x29e7b2(++_0x4ebf1d);}(a1339_0x29e7,0x1cd));const a1339_0x3c3c=function(_0x3c5046,_0x4ebf1d){_0x3c5046=_0x3c5046-0x121;let _0x29e7b2=a1339_0x29e7[_0x3c5046];return _0x29e7b2;};const a1339_0x5674af=a1339_0x3c3c;'use strict';const client=require(a1339_0x5674af(0x125));exports[a1339_0x5674af(0x124)]=function(_0x26e56b){const _0x8047b9=a1339_0x5674af;return client[_0x8047b9(0x121)](_0x8047b9(0x122),{'body':_0x26e56b,'log':_0x8047b9(0x123)});}; \ No newline at end of file diff --git a/server/services/routing/rpc/chatQueue.js b/server/services/routing/rpc/chatQueue.js index addee00..4b077b7 100644 --- a/server/services/routing/rpc/chatQueue.js +++ b/server/services/routing/rpc/chatQueue.js @@ -1 +1 @@ -const a1176_0x21d6=['GetChatQueue','Request','name','timeout','chatPause'];(function(_0x261e1d,_0x21d6d7){const _0xc112e7=function(_0x501718){while(--_0x501718){_0x261e1d['push'](_0x261e1d['shift']());}};_0xc112e7(++_0x21d6d7);}(a1176_0x21d6,0x169));const a1176_0xc112=function(_0x261e1d,_0x21d6d7){_0x261e1d=_0x261e1d-0x0;let _0xc112e7=a1176_0x21d6[_0x261e1d];return _0xc112e7;};'use strict';const client=require('../client');exports['getChatQueues']=function(){return function(){const _0xc3be9e=a1176_0xc112;return client[_0xc3be9e('0x0')](_0xc3be9e('0x4'),{'options':{'raw':![],'attributes':['id',_0xc3be9e('0x1'),_0xc3be9e('0x2'),'strategy'],'include':[{'model':'User','as':'Agents','attributes':['id',_0xc3be9e('0x1'),'online',_0xc3be9e('0x3')]}]},'log':'getChatQueues'});};}; \ No newline at end of file +const a1340_0x5582=['timeout','User','getChatQueues','GetChatQueue','strategy','online','Request','chatPause','Agents','name'];(function(_0x49e7c9,_0x55925d){const _0x558209=function(_0x28b749){while(--_0x28b749){_0x49e7c9['push'](_0x49e7c9['shift']());}};_0x558209(++_0x55925d);}(a1340_0x5582,0x102));const a1340_0x28b7=function(_0x49e7c9,_0x55925d){_0x49e7c9=_0x49e7c9-0x1c3;let _0x558209=a1340_0x5582[_0x49e7c9];return _0x558209;};const a1340_0x4e6a73=a1340_0x28b7;'use strict';const client=require('../client');exports[a1340_0x4e6a73(0x1c7)]=function(){return function(){const _0x4d06e7=a1340_0x28b7;return client[_0x4d06e7(0x1cb)](_0x4d06e7(0x1c8),{'options':{'raw':![],'attributes':['id',_0x4d06e7(0x1c4),_0x4d06e7(0x1c5),_0x4d06e7(0x1c9)],'include':[{'model':_0x4d06e7(0x1c6),'as':_0x4d06e7(0x1c3),'attributes':['id',_0x4d06e7(0x1c4),_0x4d06e7(0x1ca),_0x4d06e7(0x1cc)]}]},'log':_0x4d06e7(0x1c7)});};}; \ No newline at end of file diff --git a/server/services/routing/rpc/chatQueueReport.js b/server/services/routing/rpc/chatQueueReport.js index 576b07a..a9c0272 100644 --- a/server/services/routing/rpc/chatQueueReport.js +++ b/server/services/routing/rpc/chatQueueReport.js @@ -1 +1 @@ -const a1177_0x1d1a=['update','UpdateChatQueueReport','DESC','create','CreateChatQueueReport','../client','Request'];(function(_0x20c41f,_0x1d1a5a){const _0x5944d5=function(_0x316d88){while(--_0x316d88){_0x20c41f['push'](_0x20c41f['shift']());}};_0x5944d5(++_0x1d1a5a);}(a1177_0x1d1a,0x69));const a1177_0x5944=function(_0x20c41f,_0x1d1a5a){_0x20c41f=_0x20c41f-0x0;let _0x5944d5=a1177_0x1d1a[_0x20c41f];return _0x5944d5;};const _0x556210=a1177_0x5944;'use strict';const client=require(_0x556210('0x5'));exports[_0x556210('0x3')]=function(_0x316d88){const _0x543934=_0x556210;return client[_0x543934('0x6')]('CreateChatQueueReport',{'body':_0x316d88,'log':_0x543934('0x4')});},exports[_0x556210('0x0')]=function(_0x4f5776,_0x59a9a8){const _0xed7642=_0x556210;return client['Request'](_0xed7642('0x1'),{'body':_0x59a9a8,'options':{'where':{'uniqueid':_0x4f5776},'order':[['id',_0xed7642('0x2')]],'limit':0x1},'log':_0xed7642('0x1')});}; \ No newline at end of file +const a1341_0x1c33=['DESC','Request','update','CreateChatQueueReport','../client'];(function(_0x23c66d,_0x4aebcd){const _0x1c33bc=function(_0x40f1d0){while(--_0x40f1d0){_0x23c66d['push'](_0x23c66d['shift']());}};_0x1c33bc(++_0x4aebcd);}(a1341_0x1c33,0xeb));const a1341_0x40f1=function(_0x23c66d,_0x4aebcd){_0x23c66d=_0x23c66d-0x1d9;let _0x1c33bc=a1341_0x1c33[_0x23c66d];return _0x1c33bc;};const a1341_0x11d183=a1341_0x40f1;'use strict';const client=require(a1341_0x11d183(0x1dd));exports['create']=function(_0x132c63){const _0x43867a=a1341_0x11d183;return client[_0x43867a(0x1da)](_0x43867a(0x1dc),{'body':_0x132c63,'log':'CreateChatQueueReport'});},exports[a1341_0x11d183(0x1db)]=function(_0x5b3c6a,_0xa18510){const _0x5b1e12=a1341_0x11d183;return client[_0x5b1e12(0x1da)]('UpdateChatQueueReport',{'body':_0xa18510,'options':{'where':{'uniqueid':_0x5b3c6a},'order':[['id',_0x5b1e12(0x1d9)]],'limit':0x1},'log':'UpdateChatQueueReport'});}; \ No newline at end of file diff --git a/server/services/routing/rpc/faxInteraction.js b/server/services/routing/rpc/faxInteraction.js index c2ec75d..1ec0f4f 100644 --- a/server/services/routing/rpc/faxInteraction.js +++ b/server/services/routing/rpc/faxInteraction.js @@ -1 +1 @@ -const a1178_0x4e31=['addTagsToFaxInteraction','Request','update','addTags','../client','UpdateFaxInteraction'];(function(_0x11b1fa,_0x4e3125){const _0x383dd1=function(_0x3b9036){while(--_0x3b9036){_0x11b1fa['push'](_0x11b1fa['shift']());}};_0x383dd1(++_0x4e3125);}(a1178_0x4e31,0x102));const a1178_0x383d=function(_0x11b1fa,_0x4e3125){_0x11b1fa=_0x11b1fa-0x0;let _0x383dd1=a1178_0x4e31[_0x11b1fa];return _0x383dd1;};const _0x3f31b5=a1178_0x383d;'use strict';const client=require(_0x3f31b5('0x4'));exports[_0x3f31b5('0x2')]=function(_0x3b9036,_0x3a08ef){const _0xc12dc9=_0x3f31b5;return client[_0xc12dc9('0x1')](_0xc12dc9('0x5'),{'body':_0x3a08ef,'options':{'where':{'id':_0x3b9036}},'log':'updateFaxInteraction'});},exports[_0x3f31b5('0x3')]=function(_0x5f332d,_0x1b4063){const _0x3a9762=_0x3f31b5;return client[_0x3a9762('0x1')]('AddTagsToFaxInteraction',{'body':_0x1b4063,'options':{'where':{'id':_0x5f332d}},'log':_0x3a9762('0x0')});}; \ No newline at end of file +const a1342_0xa1fa=['AddTagsToFaxInteraction','updateFaxInteraction','Request','addTagsToFaxInteraction','../client','UpdateFaxInteraction','addTags'];(function(_0x18d452,_0x5df040){const _0xa1fa47=function(_0x81f115){while(--_0x81f115){_0x18d452['push'](_0x18d452['shift']());}};_0xa1fa47(++_0x5df040);}(a1342_0xa1fa,0x172));const a1342_0x81f1=function(_0x18d452,_0x5df040){_0x18d452=_0x18d452-0x93;let _0xa1fa47=a1342_0xa1fa[_0x18d452];return _0xa1fa47;};const a1342_0xa974b6=a1342_0x81f1;'use strict';const client=require(a1342_0xa974b6(0x98));exports['update']=function(_0x404ed7,_0x1ec19b){const _0x2ec9cc=a1342_0xa974b6;return client[_0x2ec9cc(0x96)](_0x2ec9cc(0x99),{'body':_0x1ec19b,'options':{'where':{'id':_0x404ed7}},'log':_0x2ec9cc(0x95)});},exports[a1342_0xa974b6(0x93)]=function(_0x4f25ef,_0x5d645a){const _0x2f2670=a1342_0xa974b6;return client[_0x2f2670(0x96)](_0x2f2670(0x94),{'body':_0x5d645a,'options':{'where':{'id':_0x4f25ef}},'log':_0x2f2670(0x97)});}; \ No newline at end of file diff --git a/server/services/routing/rpc/faxMessage.js b/server/services/routing/rpc/faxMessage.js index b19b0a6..41cf40a 100644 --- a/server/services/routing/rpc/faxMessage.js +++ b/server/services/routing/rpc/faxMessage.js @@ -1 +1 @@ -const a1179_0x24bf=['createFaxMessage','../client','Request','CreateFaxMessage'];(function(_0x4af6c5,_0x24bf9f){const _0x7d47e6=function(_0x251ba6){while(--_0x251ba6){_0x4af6c5['push'](_0x4af6c5['shift']());}};_0x7d47e6(++_0x24bf9f);}(a1179_0x24bf,0x94));const a1179_0x7d47=function(_0x4af6c5,_0x24bf9f){_0x4af6c5=_0x4af6c5-0x0;let _0x7d47e6=a1179_0x24bf[_0x4af6c5];return _0x7d47e6;};const _0x61fc0f=a1179_0x7d47;'use strict';const client=require(_0x61fc0f('0x1'));exports['create']=function(_0x251ba6){const _0x4d5a32=_0x61fc0f;return client[_0x4d5a32('0x2')](_0x4d5a32('0x3'),{'body':_0x251ba6,'log':_0x4d5a32('0x0')});}; \ No newline at end of file +const a1343_0x49c6=['Request','CreateFaxMessage','create','../client','createFaxMessage'];(function(_0x3638e9,_0x1ff436){const _0x49c647=function(_0x2da8e7){while(--_0x2da8e7){_0x3638e9['push'](_0x3638e9['shift']());}};_0x49c647(++_0x1ff436);}(a1343_0x49c6,0x1b3));const a1343_0x2da8=function(_0x3638e9,_0x1ff436){_0x3638e9=_0x3638e9-0xe2;let _0x49c647=a1343_0x49c6[_0x3638e9];return _0x49c647;};const a1343_0x1141ac=a1343_0x2da8;'use strict';const client=require(a1343_0x1141ac(0xe5));exports[a1343_0x1141ac(0xe4)]=function(_0x474233){const _0x1bd47e=a1343_0x1141ac;return client[_0x1bd47e(0xe2)](_0x1bd47e(0xe3),{'body':_0x474233,'log':_0x1bd47e(0xe6)});}; \ No newline at end of file diff --git a/server/services/routing/rpc/faxQueue.js b/server/services/routing/rpc/faxQueue.js index 58fdb5a..f253863 100644 --- a/server/services/routing/rpc/faxQueue.js +++ b/server/services/routing/rpc/faxQueue.js @@ -1 +1 @@ -const a1180_0x4abf=['Request','User','faxPause','name','strategy','timeout','Agents','getFaxQueues'];(function(_0x46c45b,_0x4abf8d){const _0x1c00b7=function(_0x5dfbb0){while(--_0x5dfbb0){_0x46c45b['push'](_0x46c45b['shift']());}};_0x1c00b7(++_0x4abf8d);}(a1180_0x4abf,0x135));const a1180_0x1c00=function(_0x46c45b,_0x4abf8d){_0x46c45b=_0x46c45b-0x0;let _0x1c00b7=a1180_0x4abf[_0x46c45b];return _0x1c00b7;};const _0x3541cd=a1180_0x1c00;'use strict';const client=require('../client');exports[_0x3541cd('0x2')]=function(){return function(){const _0x42876a=a1180_0x1c00;return client[_0x42876a('0x3')]('GetFaxQueue',{'options':{'raw':![],'attributes':['id',_0x42876a('0x6'),_0x42876a('0x0'),_0x42876a('0x7')],'include':[{'model':_0x42876a('0x4'),'as':_0x42876a('0x1'),'attributes':['id',_0x42876a('0x6'),'online',_0x42876a('0x5')]}]},'log':_0x42876a('0x2')});};}; \ No newline at end of file +const a1344_0x4f51=['User','../client','GetFaxQueue','getFaxQueues','Agents','faxPause','Request','name','strategy'];(function(_0x4cfe61,_0x164e51){const _0x4f51b4=function(_0x2691aa){while(--_0x2691aa){_0x4cfe61['push'](_0x4cfe61['shift']());}};_0x4f51b4(++_0x164e51);}(a1344_0x4f51,0x7e));const a1344_0x2691=function(_0x4cfe61,_0x164e51){_0x4cfe61=_0x4cfe61-0x16a;let _0x4f51b4=a1344_0x4f51[_0x4cfe61];return _0x4f51b4;};const a1344_0x4792e2=a1344_0x2691;'use strict';const client=require(a1344_0x4792e2(0x16b));exports[a1344_0x4792e2(0x16d)]=function(){return function(){const _0x340b45=a1344_0x2691;return client[_0x340b45(0x170)](_0x340b45(0x16c),{'options':{'raw':![],'attributes':['id',_0x340b45(0x171),'timeout',_0x340b45(0x172)],'include':[{'model':_0x340b45(0x16a),'as':_0x340b45(0x16e),'attributes':['id','name','online',_0x340b45(0x16f)]}]},'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 416361a..b1a9a35 100644 --- a/server/services/routing/rpc/faxQueueReport.js +++ b/server/services/routing/rpc/faxQueueReport.js @@ -1 +1 @@ -const a1181_0x3d41=['update','CreateFaxQueueReport','create','Request','UpdateFaxQueueReport','../client','DESC'];(function(_0x22882c,_0x3d419c){const _0x139dab=function(_0x205ef4){while(--_0x205ef4){_0x22882c['push'](_0x22882c['shift']());}};_0x139dab(++_0x3d419c);}(a1181_0x3d41,0x1e9));const a1181_0x139d=function(_0x22882c,_0x3d419c){_0x22882c=_0x22882c-0x0;let _0x139dab=a1181_0x3d41[_0x22882c];return _0x139dab;};const _0x451d21=a1181_0x139d;'use strict';const client=require(_0x451d21('0x6'));exports[_0x451d21('0x3')]=function(_0x205ef4){const _0x31ebd8=_0x451d21;return client['Request'](_0x31ebd8('0x2'),{'body':_0x205ef4,'log':'CreateFaxQueueReport'});},exports[_0x451d21('0x1')]=function(_0x1299da,_0x4039c9){const _0xe44c7b=_0x451d21;return client[_0xe44c7b('0x4')](_0xe44c7b('0x5'),{'body':_0x4039c9,'options':{'where':{'uniqueid':_0x1299da},'order':[['id',_0xe44c7b('0x0')]],'limit':0x1},'log':'UpdateFaxQueueReport'});}; \ No newline at end of file +const a1345_0x2fff=['UpdateFaxQueueReport','CreateFaxQueueReport','../client','DESC','Request','create'];(function(_0x5bf2db,_0x5f5783){const _0x2fff46=function(_0x45e00f){while(--_0x45e00f){_0x5bf2db['push'](_0x5bf2db['shift']());}};_0x2fff46(++_0x5f5783);}(a1345_0x2fff,0x125));const a1345_0x45e0=function(_0x5bf2db,_0x5f5783){_0x5bf2db=_0x5bf2db-0x1c6;let _0x2fff46=a1345_0x2fff[_0x5bf2db];return _0x2fff46;};const a1345_0x2ee213=a1345_0x45e0;'use strict';const client=require(a1345_0x2ee213(0x1c9));exports[a1345_0x2ee213(0x1c6)]=function(_0x2cb787){const _0x182ea3=a1345_0x2ee213;return client[_0x182ea3(0x1cb)](_0x182ea3(0x1c8),{'body':_0x2cb787,'log':_0x182ea3(0x1c8)});},exports['update']=function(_0x129e00,_0x5816b1){const _0x342a78=a1345_0x2ee213;return client[_0x342a78(0x1cb)](_0x342a78(0x1c7),{'body':_0x5816b1,'options':{'where':{'uniqueid':_0x129e00},'order':[['id',_0x342a78(0x1ca)]],'limit':0x1},'log':'UpdateFaxQueueReport'});}; \ No newline at end of file diff --git a/server/services/routing/rpc/interval.js b/server/services/routing/rpc/interval.js index 7f51a0c..875b3d3 100644 --- a/server/services/routing/rpc/interval.js +++ b/server/services/routing/rpc/interval.js @@ -1 +1 @@ -const a1182_0x5c45=['Request','Interval','../client','getIntervals','GetInterval'];(function(_0x440d67,_0x5c459b){const _0x8c2d30=function(_0x87aed4){while(--_0x87aed4){_0x440d67['push'](_0x440d67['shift']());}};_0x8c2d30(++_0x5c459b);}(a1182_0x5c45,0x1a6));const a1182_0x8c2d=function(_0x440d67,_0x5c459b){_0x440d67=_0x440d67-0x0;let _0x8c2d30=a1182_0x5c45[_0x440d67];return _0x8c2d30;};const _0x1aa7a6=a1182_0x8c2d;'use strict';const client=require(_0x1aa7a6('0x0'));exports[_0x1aa7a6('0x1')]=function(){return function(){const _0x23ab3d=a1182_0x8c2d;return client[_0x23ab3d('0x3')](_0x23ab3d('0x2'),{'options':{'raw':![],'where':{'IntervalId':null},'attributes':['id','name'],'include':[{'model':_0x23ab3d('0x4'),'as':'Intervals','attributes':['id','name','interval']}]},'log':_0x23ab3d('0x1')});};}; \ No newline at end of file +const a1346_0x35fb=['Intervals','Interval','../client','interval','name','getIntervals','GetInterval'];(function(_0x29af9f,_0x279dd8){const _0x35fbdb=function(_0x39e249){while(--_0x39e249){_0x29af9f['push'](_0x29af9f['shift']());}};_0x35fbdb(++_0x279dd8);}(a1346_0x35fb,0x1c9));const a1346_0x39e2=function(_0x29af9f,_0x279dd8){_0x29af9f=_0x29af9f-0x7a;let _0x35fbdb=a1346_0x35fb[_0x29af9f];return _0x35fbdb;};const a1346_0x3fcb1b=a1346_0x39e2;'use strict';const client=require(a1346_0x3fcb1b(0x7a));exports[a1346_0x3fcb1b(0x7d)]=function(){return function(){const _0x38720c=a1346_0x39e2;return client['Request'](_0x38720c(0x7e),{'options':{'raw':![],'where':{'IntervalId':null},'attributes':['id',_0x38720c(0x7c)],'include':[{'model':_0x38720c(0x80),'as':_0x38720c(0x7f),'attributes':['id',_0x38720c(0x7c),_0x38720c(0x7b)]}]},'log':_0x38720c(0x7d)});};}; \ No newline at end of file diff --git a/server/services/routing/rpc/mailInteraction.js b/server/services/routing/rpc/mailInteraction.js index cba3914..1635866 100644 --- a/server/services/routing/rpc/mailInteraction.js +++ b/server/services/routing/rpc/mailInteraction.js @@ -1 +1 @@ -const a1183_0x413b=['UpdateMailInteraction','addTagsToChatInteraction','update','../client','Request','addTags','updateMailInteraction'];(function(_0x3154a4,_0x413b5e){const _0x225d91=function(_0x4d6358){while(--_0x4d6358){_0x3154a4['push'](_0x3154a4['shift']());}};_0x225d91(++_0x413b5e);}(a1183_0x413b,0xd4));const a1183_0x225d=function(_0x3154a4,_0x413b5e){_0x3154a4=_0x3154a4-0x0;let _0x225d91=a1183_0x413b[_0x3154a4];return _0x225d91;};const _0x1f8ee9=a1183_0x225d;'use strict';const client=require(_0x1f8ee9('0x1'));exports[_0x1f8ee9('0x0')]=function(_0x4d6358,_0x5645e7){const _0x58869a=_0x1f8ee9;return client[_0x58869a('0x2')](_0x58869a('0x5'),{'body':_0x5645e7,'options':{'where':{'id':_0x4d6358}},'log':_0x58869a('0x4')});},exports[_0x1f8ee9('0x3')]=function(_0x5d0a2b,_0x4965ec){const _0x461827=_0x1f8ee9;return client['Request']('AddTagsToMailInteraction',{'body':_0x4965ec,'options':{'where':{'id':_0x5d0a2b}},'log':_0x461827('0x6')});}; \ No newline at end of file +const a1347_0x31a2=['addTags','updateMailInteraction','Request'];(function(_0x31b634,_0x554cc3){const _0x31a263=function(_0x3ecb76){while(--_0x3ecb76){_0x31b634['push'](_0x31b634['shift']());}};_0x31a263(++_0x554cc3);}(a1347_0x31a2,0x141));const a1347_0x3ecb=function(_0x31b634,_0x554cc3){_0x31b634=_0x31b634-0x17c;let _0x31a263=a1347_0x31a2[_0x31b634];return _0x31a263;};const a1347_0x268aa9=a1347_0x3ecb;'use strict';const client=require('../client');exports['update']=function(_0x2c0584,_0x3b8305){const _0x397d77=a1347_0x3ecb;return client['Request']('UpdateMailInteraction',{'body':_0x3b8305,'options':{'where':{'id':_0x2c0584}},'log':_0x397d77(0x17d)});},exports[a1347_0x268aa9(0x17c)]=function(_0x15f1af,_0x395d6c){const _0x1cba32=a1347_0x268aa9;return client[_0x1cba32(0x17e)]('AddTagsToMailInteraction',{'body':_0x395d6c,'options':{'where':{'id':_0x15f1af}},'log':'addTagsToChatInteraction'});}; \ No newline at end of file diff --git a/server/services/routing/rpc/mailMessage.js b/server/services/routing/rpc/mailMessage.js index 71df55c..33e736b 100644 --- a/server/services/routing/rpc/mailMessage.js +++ b/server/services/routing/rpc/mailMessage.js @@ -1 +1 @@ -const a1184_0x3d78=['create','CreateMailMessage','../client'];(function(_0x27077c,_0x3d78ae){const _0x27d54f=function(_0x4680a4){while(--_0x4680a4){_0x27077c['push'](_0x27077c['shift']());}};_0x27d54f(++_0x3d78ae);}(a1184_0x3d78,0x105));const a1184_0x27d5=function(_0x27077c,_0x3d78ae){_0x27077c=_0x27077c-0x0;let _0x27d54f=a1184_0x3d78[_0x27077c];return _0x27d54f;};const _0x2727c5=a1184_0x27d5;'use strict';const client=require(_0x2727c5('0x2'));exports[_0x2727c5('0x0')]=function(_0x4680a4){const _0x7d8b56=_0x2727c5;return client['Request'](_0x7d8b56('0x1'),{'body':_0x4680a4,'log':'createMailMessage'});}; \ No newline at end of file +const a1348_0x18d4=['../client','create','Request'];(function(_0x27dc49,_0x5aa8af){const _0x18d42a=function(_0x142e12){while(--_0x142e12){_0x27dc49['push'](_0x27dc49['shift']());}};_0x18d42a(++_0x5aa8af);}(a1348_0x18d4,0x8f));const a1348_0x142e=function(_0x27dc49,_0x5aa8af){_0x27dc49=_0x27dc49-0xd2;let _0x18d42a=a1348_0x18d4[_0x27dc49];return _0x18d42a;};const a1348_0x2c29f7=a1348_0x142e;'use strict';const client=require(a1348_0x2c29f7(0xd3));exports[a1348_0x2c29f7(0xd4)]=function(_0x57bf9b){const _0x34434d=a1348_0x2c29f7;return client[_0x34434d(0xd2)]('CreateMailMessage',{'body':_0x57bf9b,'log':'createMailMessage'});}; \ No newline at end of file diff --git a/server/services/routing/rpc/mailQueue.js b/server/services/routing/rpc/mailQueue.js index 6dbf50c..7beb3f4 100644 --- a/server/services/routing/rpc/mailQueue.js +++ b/server/services/routing/rpc/mailQueue.js @@ -1 +1 @@ -const a1185_0x1060=['User','timeout','../client','strategy','online','Agents','getMailQueues','Request'];(function(_0xa28608,_0x1060a0){const _0xa457ee=function(_0x30f6a4){while(--_0x30f6a4){_0xa28608['push'](_0xa28608['shift']());}};_0xa457ee(++_0x1060a0);}(a1185_0x1060,0xa3));const a1185_0xa457=function(_0xa28608,_0x1060a0){_0xa28608=_0xa28608-0x0;let _0xa457ee=a1185_0x1060[_0xa28608];return _0xa457ee;};const _0x457f02=a1185_0xa457;'use strict';const client=require(_0x457f02('0x7'));exports['getMailQueues']=function(){return function(){const _0x2b2607=a1185_0xa457;return client[_0x2b2607('0x4')]('GetMailQueue',{'options':{'raw':![],'attributes':['id','name',_0x2b2607('0x6'),_0x2b2607('0x0')],'include':[{'model':_0x2b2607('0x5'),'as':_0x2b2607('0x2'),'attributes':['id','name',_0x2b2607('0x1'),'mailPause']}]},'log':_0x2b2607('0x3')});};}; \ No newline at end of file +const a1349_0x5193=['../client','online','timeout','Agents','GetMailQueue','mailPause','User','getMailQueues','name'];(function(_0x24c9c8,_0x235fb1){const _0x5193f9=function(_0x1644f4){while(--_0x1644f4){_0x24c9c8['push'](_0x24c9c8['shift']());}};_0x5193f9(++_0x235fb1);}(a1349_0x5193,0x8a));const a1349_0x1644=function(_0x24c9c8,_0x235fb1){_0x24c9c8=_0x24c9c8-0x1af;let _0x5193f9=a1349_0x5193[_0x24c9c8];return _0x5193f9;};const a1349_0x35170f=a1349_0x1644;'use strict';const client=require(a1349_0x35170f(0x1b5));exports[a1349_0x35170f(0x1b3)]=function(){return function(){const _0x341681=a1349_0x1644;return client['Request'](_0x341681(0x1b0),{'options':{'raw':![],'attributes':['id',_0x341681(0x1b4),_0x341681(0x1b7),'strategy'],'include':[{'model':_0x341681(0x1b2),'as':_0x341681(0x1af),'attributes':['id','name',_0x341681(0x1b6),_0x341681(0x1b1)]}]},'log':_0x341681(0x1b3)});};}; \ No newline at end of file diff --git a/server/services/routing/rpc/mailQueueReport.js b/server/services/routing/rpc/mailQueueReport.js index b4a594f..4fc5b5d 100644 --- a/server/services/routing/rpc/mailQueueReport.js +++ b/server/services/routing/rpc/mailQueueReport.js @@ -1 +1 @@ -const a1186_0x47e6=['CreateMailQueueReport','UpdateMailQueueReport','update','Request','../client'];(function(_0x3f122b,_0x47e647){const _0x5c1088=function(_0x467fd0){while(--_0x467fd0){_0x3f122b['push'](_0x3f122b['shift']());}};_0x5c1088(++_0x47e647);}(a1186_0x47e6,0x9c));const a1186_0x5c10=function(_0x3f122b,_0x47e647){_0x3f122b=_0x3f122b-0x0;let _0x5c1088=a1186_0x47e6[_0x3f122b];return _0x5c1088;};const _0x23b4fb=a1186_0x5c10;'use strict';const client=require(_0x23b4fb('0x3'));exports['create']=function(_0x467fd0){const _0x13ee11=_0x23b4fb;return client[_0x13ee11('0x2')]('CreateMailQueueReport',{'body':_0x467fd0,'log':_0x13ee11('0x4')});},exports[_0x23b4fb('0x1')]=function(_0x2953db,_0x1eb5d9){const _0x186501=_0x23b4fb;return client[_0x186501('0x2')](_0x186501('0x0'),{'body':_0x1eb5d9,'options':{'where':{'uniqueid':_0x2953db},'order':[['id','DESC']],'limit':0x1},'log':_0x186501('0x0')});}; \ No newline at end of file +const a1350_0x1365=['create','UpdateMailQueueReport','Request','CreateMailQueueReport','DESC'];(function(_0x543c9a,_0x43f9a2){const _0x13652f=function(_0x5b6403){while(--_0x5b6403){_0x543c9a['push'](_0x543c9a['shift']());}};_0x13652f(++_0x43f9a2);}(a1350_0x1365,0x1ca));const a1350_0x5b64=function(_0x543c9a,_0x43f9a2){_0x543c9a=_0x543c9a-0x116;let _0x13652f=a1350_0x1365[_0x543c9a];return _0x13652f;};const a1350_0x190056=a1350_0x5b64;'use strict';const client=require('../client');exports[a1350_0x190056(0x118)]=function(_0x54735e){const _0x109f64=a1350_0x190056;return client[_0x109f64(0x11a)](_0x109f64(0x116),{'body':_0x54735e,'log':'CreateMailQueueReport'});},exports['update']=function(_0x3f2dac,_0x2f64d9){const _0x4dbd9e=a1350_0x190056;return client[_0x4dbd9e(0x11a)](_0x4dbd9e(0x119),{'body':_0x2f64d9,'options':{'where':{'uniqueid':_0x3f2dac},'order':[['id',_0x4dbd9e(0x117)]],'limit':0x1},'log':_0x4dbd9e(0x119)});}; \ No newline at end of file diff --git a/server/services/routing/rpc/openchannelInteraction.js b/server/services/routing/rpc/openchannelInteraction.js index 5af936c..6a8755a 100644 --- a/server/services/routing/rpc/openchannelInteraction.js +++ b/server/services/routing/rpc/openchannelInteraction.js @@ -1 +1 @@ -const a1187_0x8f09=['addTagsToChatInteraction','Request','update','AddTagsToOpenchannelInteraction','updateOpenchannelInteraction','UpdateOpenchannelInteraction','../client'];(function(_0x5ebe82,_0x8f099c){const _0x370500=function(_0x66305c){while(--_0x66305c){_0x5ebe82['push'](_0x5ebe82['shift']());}};_0x370500(++_0x8f099c);}(a1187_0x8f09,0x155));const a1187_0x3705=function(_0x5ebe82,_0x8f099c){_0x5ebe82=_0x5ebe82-0x0;let _0x370500=a1187_0x8f09[_0x5ebe82];return _0x370500;};const _0x4a8d7e=a1187_0x3705;'use strict';const client=require(_0x4a8d7e('0x1'));exports[_0x4a8d7e('0x4')]=function(_0x66305c,_0x4eb697){const _0x51c551=_0x4a8d7e;return client['Request'](_0x51c551('0x0'),{'body':_0x4eb697,'options':{'where':{'id':_0x66305c}},'log':_0x51c551('0x6')});},exports['addTags']=function(_0x56d407,_0x34d482){const _0x513db6=_0x4a8d7e;return client[_0x513db6('0x3')](_0x513db6('0x5'),{'body':_0x34d482,'options':{'where':{'id':_0x56d407}},'log':_0x513db6('0x2')});}; \ No newline at end of file +const a1351_0x5076=['update','UpdateOpenchannelInteraction','AddTagsToOpenchannelInteraction','addTags','addTagsToChatInteraction','Request'];(function(_0x4e0e2c,_0x157445){const _0x50764a=function(_0x4f61ef){while(--_0x4f61ef){_0x4e0e2c['push'](_0x4e0e2c['shift']());}};_0x50764a(++_0x157445);}(a1351_0x5076,0x1da));const a1351_0x4f61=function(_0x4e0e2c,_0x157445){_0x4e0e2c=_0x4e0e2c-0x126;let _0x50764a=a1351_0x5076[_0x4e0e2c];return _0x50764a;};const a1351_0x4bf5b9=a1351_0x4f61;'use strict';const client=require('../client');exports[a1351_0x4bf5b9(0x126)]=function(_0x2a7dd8,_0x5db6e2){const _0x305803=a1351_0x4bf5b9;return client[_0x305803(0x12b)](_0x305803(0x127),{'body':_0x5db6e2,'options':{'where':{'id':_0x2a7dd8}},'log':'updateOpenchannelInteraction'});},exports[a1351_0x4bf5b9(0x129)]=function(_0x1d60c3,_0x2e6a1c){const _0x4fa27a=a1351_0x4bf5b9;return client[_0x4fa27a(0x12b)](_0x4fa27a(0x128),{'body':_0x2e6a1c,'options':{'where':{'id':_0x1d60c3}},'log':_0x4fa27a(0x12a)});}; \ No newline at end of file diff --git a/server/services/routing/rpc/openchannelMessage.js b/server/services/routing/rpc/openchannelMessage.js index a0b9481..8949ffd 100644 --- a/server/services/routing/rpc/openchannelMessage.js +++ b/server/services/routing/rpc/openchannelMessage.js @@ -1 +1 @@ -const a1188_0x22e9=['create','CreateOpenchannelMessage','Request','../client','createOpenchannelMessage'];(function(_0x172206,_0x22e96c){const _0x15b3ad=function(_0x27f606){while(--_0x27f606){_0x172206['push'](_0x172206['shift']());}};_0x15b3ad(++_0x22e96c);}(a1188_0x22e9,0x1c7));const a1188_0x15b3=function(_0x172206,_0x22e96c){_0x172206=_0x172206-0x0;let _0x15b3ad=a1188_0x22e9[_0x172206];return _0x15b3ad;};const _0x52ba75=a1188_0x15b3;'use strict';const client=require(_0x52ba75('0x3'));exports[_0x52ba75('0x0')]=function(_0x27f606){const _0x455bea=_0x52ba75;return client[_0x455bea('0x2')](_0x455bea('0x1'),{'body':_0x27f606,'log':_0x455bea('0x4')});}; \ No newline at end of file +const a1352_0x51f1=['CreateOpenchannelMessage','Request','createOpenchannelMessage'];(function(_0x4355ef,_0xea45a6){const _0x51f1dc=function(_0x40d909){while(--_0x40d909){_0x4355ef['push'](_0x4355ef['shift']());}};_0x51f1dc(++_0xea45a6);}(a1352_0x51f1,0x165));const a1352_0x40d9=function(_0x4355ef,_0xea45a6){_0x4355ef=_0x4355ef-0x16a;let _0x51f1dc=a1352_0x51f1[_0x4355ef];return _0x51f1dc;};'use strict';const client=require('../client');exports['create']=function(_0x5a262f){const _0xc4eca2=a1352_0x40d9;return client[_0xc4eca2(0x16b)](_0xc4eca2(0x16a),{'body':_0x5a262f,'log':_0xc4eca2(0x16c)});}; \ No newline at end of file diff --git a/server/services/routing/rpc/openchannelQueue.js b/server/services/routing/rpc/openchannelQueue.js index 6a1a66b..1ed8fc1 100644 --- a/server/services/routing/rpc/openchannelQueue.js +++ b/server/services/routing/rpc/openchannelQueue.js @@ -1 +1 @@ -const a1189_0x3c3e=['Request','openchannelPause','getOpenchannelQueues','User','timeout','Agents','GetOpenchannelQueue','name'];(function(_0x2fbe5a,_0x3c3ed6){const _0x32b8e9=function(_0x550a20){while(--_0x550a20){_0x2fbe5a['push'](_0x2fbe5a['shift']());}};_0x32b8e9(++_0x3c3ed6);}(a1189_0x3c3e,0x131));const a1189_0x32b8=function(_0x2fbe5a,_0x3c3ed6){_0x2fbe5a=_0x2fbe5a-0x0;let _0x32b8e9=a1189_0x3c3e[_0x2fbe5a];return _0x32b8e9;};const _0x525671=a1189_0x32b8;'use strict';const client=require('../client');exports[_0x525671('0x1')]=function(){return function(){const _0xbcbae9=a1189_0x32b8;return client[_0xbcbae9('0x7')](_0xbcbae9('0x5'),{'options':{'raw':![],'attributes':['id',_0xbcbae9('0x6'),_0xbcbae9('0x3'),'strategy'],'include':[{'model':_0xbcbae9('0x2'),'as':_0xbcbae9('0x4'),'attributes':['id',_0xbcbae9('0x6'),'online',_0xbcbae9('0x0')]}]},'log':_0xbcbae9('0x1')});};}; \ No newline at end of file +const a1353_0x5eac=['../client','strategy','timeout','User','openchannelPause','Agents','online','getOpenchannelQueues','name'];(function(_0x299abb,_0x4ab7e0){const _0x5eacc1=function(_0x5055ff){while(--_0x5055ff){_0x299abb['push'](_0x299abb['shift']());}};_0x5eacc1(++_0x4ab7e0);}(a1353_0x5eac,0xff));const a1353_0x5055=function(_0x299abb,_0x4ab7e0){_0x299abb=_0x299abb-0xbd;let _0x5eacc1=a1353_0x5eac[_0x299abb];return _0x5eacc1;};const a1353_0x562b4a=a1353_0x5055;'use strict';const client=require(a1353_0x562b4a(0xc3));exports[a1353_0x562b4a(0xc1)]=function(){return function(){const _0x570c80=a1353_0x5055;return client['Request']('GetOpenchannelQueue',{'options':{'raw':![],'attributes':['id',_0x570c80(0xc2),_0x570c80(0xc5),_0x570c80(0xc4)],'include':[{'model':_0x570c80(0xbd),'as':_0x570c80(0xbf),'attributes':['id',_0x570c80(0xc2),_0x570c80(0xc0),_0x570c80(0xbe)]}]},'log':_0x570c80(0xc1)});};}; \ No newline at end of file diff --git a/server/services/routing/rpc/openchannelQueueReport.js b/server/services/routing/rpc/openchannelQueueReport.js index f36a513..4fcd6f3 100644 --- a/server/services/routing/rpc/openchannelQueueReport.js +++ b/server/services/routing/rpc/openchannelQueueReport.js @@ -1 +1 @@ -const a1190_0x4254=['CreateOpenchannelQueueReport','UpdateOpenchannelQueueReport','create','../client','Request'];(function(_0x2b3259,_0x425492){const _0x33c9b0=function(_0x284306){while(--_0x284306){_0x2b3259['push'](_0x2b3259['shift']());}};_0x33c9b0(++_0x425492);}(a1190_0x4254,0x138));const a1190_0x33c9=function(_0x2b3259,_0x425492){_0x2b3259=_0x2b3259-0x0;let _0x33c9b0=a1190_0x4254[_0x2b3259];return _0x33c9b0;};const _0x24a495=a1190_0x33c9;'use strict';const client=require(_0x24a495('0x1'));exports[_0x24a495('0x0')]=function(_0x284306){const _0x2b9a73=_0x24a495;return client[_0x2b9a73('0x2')](_0x2b9a73('0x3'),{'body':_0x284306,'log':_0x2b9a73('0x3')});},exports['update']=function(_0x4abdb7,_0x3cf112){const _0x2d3cb7=_0x24a495;return client[_0x2d3cb7('0x2')](_0x2d3cb7('0x4'),{'body':_0x3cf112,'options':{'where':{'uniqueid':_0x4abdb7},'order':[['id','DESC']],'limit':0x1},'log':_0x2d3cb7('0x4')});}; \ No newline at end of file +const a1354_0x4bbd=['DESC','../client','CreateOpenchannelQueueReport','update','UpdateOpenchannelQueueReport','Request','create'];(function(_0x167bfc,_0x5410a4){const _0x4bbdb9=function(_0x129619){while(--_0x129619){_0x167bfc['push'](_0x167bfc['shift']());}};_0x4bbdb9(++_0x5410a4);}(a1354_0x4bbd,0x12a));const a1354_0x1296=function(_0x167bfc,_0x5410a4){_0x167bfc=_0x167bfc-0x1ce;let _0x4bbdb9=a1354_0x4bbd[_0x167bfc];return _0x4bbdb9;};const a1354_0x46f884=a1354_0x1296;'use strict';const client=require(a1354_0x46f884(0x1d2));exports[a1354_0x46f884(0x1d0)]=function(_0x1b355e){const _0x25a3a9=a1354_0x46f884;return client[_0x25a3a9(0x1cf)](_0x25a3a9(0x1d3),{'body':_0x1b355e,'log':'CreateOpenchannelQueueReport'});},exports[a1354_0x46f884(0x1d4)]=function(_0x44c592,_0x141466){const _0x5a088c=a1354_0x46f884;return client[_0x5a088c(0x1cf)]('UpdateOpenchannelQueueReport',{'body':_0x141466,'options':{'where':{'uniqueid':_0x44c592},'order':[['id',_0x5a088c(0x1d1)]],'limit':0x1},'log':_0x5a088c(0x1ce)});}; \ No newline at end of file diff --git a/server/services/routing/rpc/smsInteraction.js b/server/services/routing/rpc/smsInteraction.js index cc14aa0..453014e 100644 --- a/server/services/routing/rpc/smsInteraction.js +++ b/server/services/routing/rpc/smsInteraction.js @@ -1 +1 @@ -const a1191_0xb2b2=['AddTagsToSmsInteraction','addTags','Request','updateSmsInteraction','addTagsToSmsInteraction'];(function(_0x3b1896,_0xb2b249){const _0x25db5e=function(_0x5104e3){while(--_0x5104e3){_0x3b1896['push'](_0x3b1896['shift']());}};_0x25db5e(++_0xb2b249);}(a1191_0xb2b2,0xe0));const a1191_0x25db=function(_0x3b1896,_0xb2b249){_0x3b1896=_0x3b1896-0x0;let _0x25db5e=a1191_0xb2b2[_0x3b1896];return _0x25db5e;};const _0x347dd4=a1191_0x25db;'use strict';const client=require('../client');exports['update']=function(_0x5104e3,_0x294cf9){const _0x437268=a1191_0x25db;return client[_0x437268('0x3')]('UpdateSmsInteraction',{'body':_0x294cf9,'options':{'where':{'id':_0x5104e3}},'log':_0x437268('0x4')});},exports[_0x347dd4('0x2')]=function(_0x437036,_0x26eb67){const _0x114cc3=_0x347dd4;return client[_0x114cc3('0x3')](_0x114cc3('0x1'),{'body':_0x26eb67,'options':{'where':{'id':_0x437036}},'log':_0x114cc3('0x0')});}; \ No newline at end of file +const a1355_0x550d=['UpdateSmsInteraction','addTags','AddTagsToSmsInteraction','addTagsToSmsInteraction','Request','updateSmsInteraction','update'];(function(_0x547580,_0x2bfa1c){const _0x550db8=function(_0x258df0){while(--_0x258df0){_0x547580['push'](_0x547580['shift']());}};_0x550db8(++_0x2bfa1c);}(a1355_0x550d,0x169));const a1355_0x258d=function(_0x547580,_0x2bfa1c){_0x547580=_0x547580-0x164;let _0x550db8=a1355_0x550d[_0x547580];return _0x550db8;};const a1355_0x5df9fc=a1355_0x258d;'use strict';const client=require('../client');exports[a1355_0x5df9fc(0x166)]=function(_0x34b574,_0xc26acc){const _0x25e28d=a1355_0x5df9fc;return client[_0x25e28d(0x164)](_0x25e28d(0x167),{'body':_0xc26acc,'options':{'where':{'id':_0x34b574}},'log':_0x25e28d(0x165)});},exports[a1355_0x5df9fc(0x168)]=function(_0x4ea618,_0x49731c){const _0x42e0c3=a1355_0x5df9fc;return client['Request'](_0x42e0c3(0x169),{'body':_0x49731c,'options':{'where':{'id':_0x4ea618}},'log':_0x42e0c3(0x16a)});}; \ No newline at end of file diff --git a/server/services/routing/rpc/smsMessage.js b/server/services/routing/rpc/smsMessage.js index 8679aa9..581990c 100644 --- a/server/services/routing/rpc/smsMessage.js +++ b/server/services/routing/rpc/smsMessage.js @@ -1 +1 @@ -const a1192_0x186c=['../client','createSmsMessage','Request','create'];(function(_0x9ace1e,_0x186c40){const _0x206906=function(_0x148cdd){while(--_0x148cdd){_0x9ace1e['push'](_0x9ace1e['shift']());}};_0x206906(++_0x186c40);}(a1192_0x186c,0x1ac));const a1192_0x2069=function(_0x9ace1e,_0x186c40){_0x9ace1e=_0x9ace1e-0x0;let _0x206906=a1192_0x186c[_0x9ace1e];return _0x206906;};const _0x393531=a1192_0x2069;'use strict';const client=require(_0x393531('0x0'));exports[_0x393531('0x3')]=function(_0x148cdd){const _0x2cfc9a=_0x393531;return client[_0x2cfc9a('0x2')]('CreateSmsMessage',{'body':_0x148cdd,'log':_0x2cfc9a('0x1')});}; \ No newline at end of file +const a1356_0x5b50=['create','createSmsMessage','../client','Request','CreateSmsMessage'];(function(_0x5c6cf0,_0x52af42){const _0x5b50f8=function(_0xef6434){while(--_0xef6434){_0x5c6cf0['push'](_0x5c6cf0['shift']());}};_0x5b50f8(++_0x52af42);}(a1356_0x5b50,0x142));const a1356_0xef64=function(_0x5c6cf0,_0x52af42){_0x5c6cf0=_0x5c6cf0-0xb1;let _0x5b50f8=a1356_0x5b50[_0x5c6cf0];return _0x5b50f8;};const a1356_0x44cbc7=a1356_0xef64;'use strict';const client=require(a1356_0x44cbc7(0xb1));exports[a1356_0x44cbc7(0xb4)]=function(_0x34eebd){const _0xeed56c=a1356_0x44cbc7;return client[_0xeed56c(0xb2)](_0xeed56c(0xb3),{'body':_0x34eebd,'log':_0xeed56c(0xb5)});}; \ No newline at end of file diff --git a/server/services/routing/rpc/smsQueue.js b/server/services/routing/rpc/smsQueue.js index 5fb52fe..3f4b406 100644 --- a/server/services/routing/rpc/smsQueue.js +++ b/server/services/routing/rpc/smsQueue.js @@ -1 +1 @@ -const a1193_0x60ae=['Agents','timeout','name','smsPause','GetSmsQueue','getSmsQueues'];(function(_0x5800ae,_0x60ae16){const _0x3de5c7=function(_0x4f0b0e){while(--_0x4f0b0e){_0x5800ae['push'](_0x5800ae['shift']());}};_0x3de5c7(++_0x60ae16);}(a1193_0x60ae,0x166));const a1193_0x3de5=function(_0x5800ae,_0x60ae16){_0x5800ae=_0x5800ae-0x0;let _0x3de5c7=a1193_0x60ae[_0x5800ae];return _0x3de5c7;};const _0x3e1cd6=a1193_0x3de5;'use strict';const client=require('../client');exports[_0x3e1cd6('0x1')]=function(){return function(){const _0x42189b=a1193_0x3de5;return client['Request'](_0x42189b('0x0'),{'options':{'raw':![],'attributes':['id',_0x42189b('0x4'),_0x42189b('0x3'),'strategy'],'include':[{'model':'User','as':_0x42189b('0x2'),'attributes':['id',_0x42189b('0x4'),'online',_0x42189b('0x5')]}]},'log':_0x42189b('0x1')});};}; \ No newline at end of file +const a1357_0x207a=['Request','../client','getSmsQueues','User','Agents','name','strategy','smsPause','online','timeout'];(function(_0x538f47,_0x55a4b2){const _0x207a16=function(_0x358341){while(--_0x358341){_0x538f47['push'](_0x538f47['shift']());}};_0x207a16(++_0x55a4b2);}(a1357_0x207a,0x167));const a1357_0x3583=function(_0x538f47,_0x55a4b2){_0x538f47=_0x538f47-0x1ea;let _0x207a16=a1357_0x207a[_0x538f47];return _0x207a16;};const a1357_0xca7415=a1357_0x3583;'use strict';const client=require(a1357_0xca7415(0x1ec));exports[a1357_0xca7415(0x1ed)]=function(){return function(){const _0x4e0f5e=a1357_0x3583;return client[_0x4e0f5e(0x1eb)]('GetSmsQueue',{'options':{'raw':![],'attributes':['id','name',_0x4e0f5e(0x1ea),_0x4e0f5e(0x1f1)],'include':[{'model':_0x4e0f5e(0x1ee),'as':_0x4e0f5e(0x1ef),'attributes':['id',_0x4e0f5e(0x1f0),_0x4e0f5e(0x1f3),_0x4e0f5e(0x1f2)]}]},'log':_0x4e0f5e(0x1ed)});};}; \ No newline at end of file diff --git a/server/services/routing/rpc/smsQueueReport.js b/server/services/routing/rpc/smsQueueReport.js index a3b1705..c7dd054 100644 --- a/server/services/routing/rpc/smsQueueReport.js +++ b/server/services/routing/rpc/smsQueueReport.js @@ -1 +1 @@ -const a1194_0x119f=['Request','create','update','CreateSmsQueueReport','UpdateSmsQueueReport','DESC'];(function(_0x4c097c,_0x119f94){const _0x426440=function(_0x4c6aad){while(--_0x4c6aad){_0x4c097c['push'](_0x4c097c['shift']());}};_0x426440(++_0x119f94);}(a1194_0x119f,0xa4));const a1194_0x4264=function(_0x4c097c,_0x119f94){_0x4c097c=_0x4c097c-0x0;let _0x426440=a1194_0x119f[_0x4c097c];return _0x426440;};const _0x18f2f5=a1194_0x4264;'use strict';const client=require('../client');exports[_0x18f2f5('0x5')]=function(_0x4c6aad){const _0x55652d=_0x18f2f5;return client[_0x55652d('0x4')](_0x55652d('0x1'),{'body':_0x4c6aad,'log':'CreateSmsQueueReport'});},exports[_0x18f2f5('0x0')]=function(_0x3c6289,_0x4ce8b4){const _0x1f7be0=_0x18f2f5;return client['Request'](_0x1f7be0('0x2'),{'body':_0x4ce8b4,'options':{'where':{'uniqueid':_0x3c6289},'order':[['id',_0x1f7be0('0x3')]],'limit':0x1},'log':'UpdateSmsQueueReport'});}; \ No newline at end of file +const a1358_0x2ef1=['CreateSmsQueueReport','UpdateSmsQueueReport','create','Request'];(function(_0xfab024,_0x31e0fc){const _0x2ef1c8=function(_0x2afe77){while(--_0x2afe77){_0xfab024['push'](_0xfab024['shift']());}};_0x2ef1c8(++_0x31e0fc);}(a1358_0x2ef1,0x168));const a1358_0x2afe=function(_0xfab024,_0x31e0fc){_0xfab024=_0xfab024-0x114;let _0x2ef1c8=a1358_0x2ef1[_0xfab024];return _0x2ef1c8;};const a1358_0x2bc074=a1358_0x2afe;'use strict';const client=require('../client');exports[a1358_0x2bc074(0x116)]=function(_0x52efdd){const _0x4544c=a1358_0x2bc074;return client[_0x4544c(0x117)]('CreateSmsQueueReport',{'body':_0x52efdd,'log':_0x4544c(0x114)});},exports['update']=function(_0x225cd7,_0x3262f9){const _0x2ccc5f=a1358_0x2bc074;return client['Request'](_0x2ccc5f(0x115),{'body':_0x3262f9,'options':{'where':{'uniqueid':_0x225cd7},'order':[['id','DESC']],'limit':0x1},'log':_0x2ccc5f(0x115)});}; \ No newline at end of file diff --git a/server/services/routing/rpc/user.js b/server/services/routing/rpc/user.js index fdb4cd2..cf0df5f 100644 --- a/server/services/routing/rpc/user.js +++ b/server/services/routing/rpc/user.js @@ -1 +1 @@ -const a1195_0x1744=['smsCapacity','openchannelPause','voicePause','mailCapacity','faxPause','openchannelCapacity','Request','lastPauseAt','smsPause','chatPause','name','online','pauseType','getAgents','whatsappPause','whatsappCapacity','agent','mailPause','chatCapacity','faxCapacity'];(function(_0x2af581,_0x174400){const _0x34a506=function(_0x49ea02){while(--_0x49ea02){_0x2af581['push'](_0x2af581['shift']());}};_0x34a506(++_0x174400);}(a1195_0x1744,0x7b));const a1195_0x34a5=function(_0x2af581,_0x174400){_0x2af581=_0x2af581-0x0;let _0x34a506=a1195_0x1744[_0x2af581];return _0x34a506;};const _0x1d8c60=a1195_0x34a5;'use strict';const client=require('../client');exports[_0x1d8c60('0xa')]=function(){return function(){const _0x142c0f=a1195_0x34a5;return client[_0x142c0f('0x3')]('GetUser',{'options':{'raw':!![],'where':{'role':_0x142c0f('0xd')},'attributes':['id',_0x142c0f('0x7'),_0x142c0f('0x8'),_0x142c0f('0x9'),_0x142c0f('0x4'),_0x142c0f('0x13'),_0x142c0f('0x6'),_0x142c0f('0xe'),_0x142c0f('0x1'),_0x142c0f('0x5'),_0x142c0f('0xb'),_0x142c0f('0x12'),_0x142c0f('0xf'),_0x142c0f('0x0'),_0x142c0f('0x10'),_0x142c0f('0x11'),_0x142c0f('0xc'),_0x142c0f('0x2')]},'log':'getAgents'});};}; \ No newline at end of file +const a1359_0x42bd=['faxPause','pauseType','chatPause','GetUser','Request','openchannelPause','getAgents','online','whatsappPause','../client','lastPauseAt','agent','mailCapacity','name','chatCapacity','voicePause'];(function(_0x382406,_0x15607d){const _0x42bd24=function(_0x1b9881){while(--_0x1b9881){_0x382406['push'](_0x382406['shift']());}};_0x42bd24(++_0x15607d);}(a1359_0x42bd,0x1e1));const a1359_0x1b98=function(_0x382406,_0x15607d){_0x382406=_0x382406-0x1a7;let _0x42bd24=a1359_0x42bd[_0x382406];return _0x42bd24;};const a1359_0x421652=a1359_0x1b98;'use strict';const client=require(a1359_0x421652(0x1af));exports['getAgents']=function(){return function(){const _0x4f9d3a=a1359_0x1b98;return client[_0x4f9d3a(0x1aa)](_0x4f9d3a(0x1a9),{'options':{'raw':!![],'where':{'role':_0x4f9d3a(0x1b1)},'attributes':['id',_0x4f9d3a(0x1b3),_0x4f9d3a(0x1ad),_0x4f9d3a(0x1a7),_0x4f9d3a(0x1b0),_0x4f9d3a(0x1b5),_0x4f9d3a(0x1a8),'mailPause',_0x4f9d3a(0x1b6),'smsPause',_0x4f9d3a(0x1ae),_0x4f9d3a(0x1ab),_0x4f9d3a(0x1b4),_0x4f9d3a(0x1b2),'faxCapacity','smsCapacity','whatsappCapacity','openchannelCapacity']},'log':_0x4f9d3a(0x1ac)});};}; \ No newline at end of file diff --git a/server/services/routing/rpc/whatsappInteraction.js b/server/services/routing/rpc/whatsappInteraction.js index 299b1ae..26323ff 100644 --- a/server/services/routing/rpc/whatsappInteraction.js +++ b/server/services/routing/rpc/whatsappInteraction.js @@ -1 +1 @@ -const a1196_0x328a=['addTagsToWhatsappInteraction','update','addTags','Request','AddTagsToWhatsappInteraction','../client','UpdateWhatsappInteraction'];(function(_0x9421a2,_0x328a9f){const _0x3143ae=function(_0x45e1b6){while(--_0x45e1b6){_0x9421a2['push'](_0x9421a2['shift']());}};_0x3143ae(++_0x328a9f);}(a1196_0x328a,0xcd));const a1196_0x3143=function(_0x9421a2,_0x328a9f){_0x9421a2=_0x9421a2-0x0;let _0x3143ae=a1196_0x328a[_0x9421a2];return _0x3143ae;};const _0xed930b=a1196_0x3143;'use strict';const client=require(_0xed930b('0x3'));exports[_0xed930b('0x6')]=function(_0x45e1b6,_0x55291b){const _0x5f06a8=_0xed930b;return client[_0x5f06a8('0x1')](_0x5f06a8('0x4'),{'body':_0x55291b,'options':{'where':{'id':_0x45e1b6}},'log':'updateWhatsappInteraction'});},exports[_0xed930b('0x0')]=function(_0x4a0a13,_0x46adbe){const _0x4828e2=_0xed930b;return client[_0x4828e2('0x1')](_0x4828e2('0x2'),{'body':_0x46adbe,'options':{'where':{'id':_0x4a0a13}},'log':_0x4828e2('0x5')});}; \ No newline at end of file +const a1360_0x5be8=['UpdateWhatsappInteraction','addTagsToWhatsappInteraction','Request','update','AddTagsToWhatsappInteraction','../client'];(function(_0x355a4a,_0x5908a5){const _0x5be8ca=function(_0x3b214b){while(--_0x3b214b){_0x355a4a['push'](_0x355a4a['shift']());}};_0x5be8ca(++_0x5908a5);}(a1360_0x5be8,0x102));const a1360_0x3b21=function(_0x355a4a,_0x5908a5){_0x355a4a=_0x355a4a-0x1c3;let _0x5be8ca=a1360_0x5be8[_0x355a4a];return _0x5be8ca;};const a1360_0x21301b=a1360_0x3b21;'use strict';const client=require(a1360_0x21301b(0x1c8));exports[a1360_0x21301b(0x1c6)]=function(_0x4c042d,_0x3cb687){const _0x4b05c9=a1360_0x21301b;return client[_0x4b05c9(0x1c5)](_0x4b05c9(0x1c3),{'body':_0x3cb687,'options':{'where':{'id':_0x4c042d}},'log':'updateWhatsappInteraction'});},exports['addTags']=function(_0x1fc9fb,_0x4eb003){const _0x2cc9d0=a1360_0x21301b;return client['Request'](_0x2cc9d0(0x1c7),{'body':_0x4eb003,'options':{'where':{'id':_0x1fc9fb}},'log':_0x2cc9d0(0x1c4)});}; \ No newline at end of file diff --git a/server/services/routing/rpc/whatsappMessage.js b/server/services/routing/rpc/whatsappMessage.js index 36efed2..462afcf 100644 --- a/server/services/routing/rpc/whatsappMessage.js +++ b/server/services/routing/rpc/whatsappMessage.js @@ -1 +1 @@ -const a1197_0x26a8=['../client','create','createWhatsappMessage','Request','CreateWhatsappMessage'];(function(_0x1ccdc4,_0x26a8b1){const _0x542e18=function(_0x34d8c5){while(--_0x34d8c5){_0x1ccdc4['push'](_0x1ccdc4['shift']());}};_0x542e18(++_0x26a8b1);}(a1197_0x26a8,0xe6));const a1197_0x542e=function(_0x1ccdc4,_0x26a8b1){_0x1ccdc4=_0x1ccdc4-0x0;let _0x542e18=a1197_0x26a8[_0x1ccdc4];return _0x542e18;};const _0x2d5f17=a1197_0x542e;'use strict';const client=require(_0x2d5f17('0x0'));exports[_0x2d5f17('0x1')]=function(_0x34d8c5){const _0x9c06f3=_0x2d5f17;return client[_0x9c06f3('0x3')](_0x9c06f3('0x4'),{'body':_0x34d8c5,'log':_0x9c06f3('0x2')});}; \ No newline at end of file +const a1361_0xb681=['../client','CreateWhatsappMessage','createWhatsappMessage'];(function(_0x47cdda,_0x1f8d51){const _0xb68148=function(_0x780e1d){while(--_0x780e1d){_0x47cdda['push'](_0x47cdda['shift']());}};_0xb68148(++_0x1f8d51);}(a1361_0xb681,0x186));const a1361_0x780e=function(_0x47cdda,_0x1f8d51){_0x47cdda=_0x47cdda-0x66;let _0xb68148=a1361_0xb681[_0x47cdda];return _0xb68148;};const a1361_0x4ff04d=a1361_0x780e;'use strict';const client=require(a1361_0x4ff04d(0x66));exports['create']=function(_0x3eb649){const _0x59c5cf=a1361_0x4ff04d;return client['Request'](_0x59c5cf(0x67),{'body':_0x3eb649,'log':_0x59c5cf(0x68)});}; \ No newline at end of file diff --git a/server/services/routing/rpc/whatsappQueue.js b/server/services/routing/rpc/whatsappQueue.js index 08a1db1..6d9b9fa 100644 --- a/server/services/routing/rpc/whatsappQueue.js +++ b/server/services/routing/rpc/whatsappQueue.js @@ -1 +1 @@ -const a1198_0x38d4=['online','GetWhatsappQueue','strategy','getWhatsappQueues','../client','timeout','whatsappPause','User'];(function(_0x5d0446,_0x38d44b){const _0x40d882=function(_0xd9b776){while(--_0xd9b776){_0x5d0446['push'](_0x5d0446['shift']());}};_0x40d882(++_0x38d44b);}(a1198_0x38d4,0x7f));const a1198_0x40d8=function(_0x5d0446,_0x38d44b){_0x5d0446=_0x5d0446-0x0;let _0x40d882=a1198_0x38d4[_0x5d0446];return _0x40d882;};const _0x26a7f1=a1198_0x40d8;'use strict';const client=require(_0x26a7f1('0x5'));exports[_0x26a7f1('0x4')]=function(){return function(){const _0xe1f7c7=a1198_0x40d8;return client['Request'](_0xe1f7c7('0x2'),{'options':{'raw':![],'attributes':['id','name',_0xe1f7c7('0x6'),_0xe1f7c7('0x3')],'include':[{'model':_0xe1f7c7('0x0'),'as':'Agents','attributes':['id','name',_0xe1f7c7('0x1'),_0xe1f7c7('0x7')]}]},'log':_0xe1f7c7('0x4')});};}; \ No newline at end of file +const a1362_0x41e9=['Request','Agents','getWhatsappQueues','online','timeout','GetWhatsappQueue','strategy','name','../client','User'];(function(_0x2d6184,_0x522aaf){const _0x41e9c9=function(_0x2077d1){while(--_0x2077d1){_0x2d6184['push'](_0x2d6184['shift']());}};_0x41e9c9(++_0x522aaf);}(a1362_0x41e9,0x1b6));const a1362_0x2077=function(_0x2d6184,_0x522aaf){_0x2d6184=_0x2d6184-0x16f;let _0x41e9c9=a1362_0x41e9[_0x2d6184];return _0x41e9c9;};const a1362_0xb14aff=a1362_0x2077;'use strict';const client=require(a1362_0xb14aff(0x16f));exports['getWhatsappQueues']=function(){return function(){const _0xe4e559=a1362_0x2077;return client[_0xe4e559(0x171)](_0xe4e559(0x176),{'options':{'raw':![],'attributes':['id',_0xe4e559(0x178),_0xe4e559(0x175),_0xe4e559(0x177)],'include':[{'model':_0xe4e559(0x170),'as':_0xe4e559(0x172),'attributes':['id',_0xe4e559(0x178),_0xe4e559(0x174),'whatsappPause']}]},'log':_0xe4e559(0x173)});};}; \ No newline at end of file diff --git a/server/services/routing/rpc/whatsappQueueReport.js b/server/services/routing/rpc/whatsappQueueReport.js index 3d756cc..9bc1622 100644 --- a/server/services/routing/rpc/whatsappQueueReport.js +++ b/server/services/routing/rpc/whatsappQueueReport.js @@ -1 +1 @@ -const a1199_0x1994=['CreateWhatsappQueueReport','../client','Request','UpdateWhatsappQueueReport','DESC','update'];(function(_0x288558,_0x199457){const _0x36d189=function(_0x4e78c4){while(--_0x4e78c4){_0x288558['push'](_0x288558['shift']());}};_0x36d189(++_0x199457);}(a1199_0x1994,0x1c8));const a1199_0x36d1=function(_0x288558,_0x199457){_0x288558=_0x288558-0x0;let _0x36d189=a1199_0x1994[_0x288558];return _0x36d189;};const _0x13c69d=a1199_0x36d1;'use strict';const client=require(_0x13c69d('0x1'));exports['create']=function(_0x4e78c4){const _0x16fd49=_0x13c69d;return client['Request'](_0x16fd49('0x0'),{'body':_0x4e78c4,'log':'CreateWhatsappQueueReport'});},exports[_0x13c69d('0x5')]=function(_0x11e7dc,_0x42c55e){const _0x16493f=_0x13c69d;return client[_0x16493f('0x2')]('UpdateWhatsappQueueReport',{'body':_0x42c55e,'options':{'where':{'uniqueid':_0x11e7dc},'order':[['id',_0x16493f('0x4')]],'limit':0x1},'log':_0x16493f('0x3')});}; \ No newline at end of file +const a1363_0x212a=['UpdateWhatsappQueueReport','CreateWhatsappQueueReport','DESC','create','Request'];(function(_0x15d6d8,_0x191e3d){const _0x212adf=function(_0x2facb4){while(--_0x2facb4){_0x15d6d8['push'](_0x15d6d8['shift']());}};_0x212adf(++_0x191e3d);}(a1363_0x212a,0x197));const a1363_0x2fac=function(_0x15d6d8,_0x191e3d){_0x15d6d8=_0x15d6d8-0x93;let _0x212adf=a1363_0x212a[_0x15d6d8];return _0x212adf;};const a1363_0x1bac14=a1363_0x2fac;'use strict';const client=require('../client');exports[a1363_0x1bac14(0x94)]=function(_0x11c048){const _0x2b90c9=a1363_0x1bac14;return client['Request']('CreateWhatsappQueueReport',{'body':_0x11c048,'log':_0x2b90c9(0x97)});},exports['update']=function(_0x3103ed,_0x31e4af){const _0x7c710f=a1363_0x1bac14;return client[_0x7c710f(0x95)](_0x7c710f(0x96),{'body':_0x31e4af,'options':{'where':{'uniqueid':_0x3103ed},'order':[['id',_0x7c710f(0x93)]],'limit':0x1},'log':_0x7c710f(0x96)});}; \ 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 016faf7..df428b1 100644 --- a/server/services/routing/server/applications/agent.js +++ b/server/services/routing/server/applications/agent.js @@ -1 +1 @@ -const a1200_0x29ee=['[%s][AGENT]\x20%s','stack','atimeout','timeout\x20is\x20a\x20number','agent','channel','find','message','routing','validate','name','[%s][AGENT]\x20agent\x20not\x20found\x20%s','agents','./strategy','error','rules','log','end','START:%s','map','util','stop','format','info','complete','timeout','[%s][AGENT][NAME:%s][STATUS:%s]','next','close','[%s][QUEUE]\x20%s','../../../../config/logger','seq-queue','name\x20is\x20a\x20string\x20and\x20it\x20is\x20required','string','[%s][AGENT]\x20ROUTING\x20END','toLowerCase'];(function(_0x1430b1,_0x29ee3e){const _0x3dc684=function(_0x2357d1){while(--_0x2357d1){_0x1430b1['push'](_0x1430b1['shift']());}};_0x3dc684(++_0x29ee3e);}(a1200_0x29ee,0x17a));const a1200_0x3dc6=function(_0x1430b1,_0x29ee3e){_0x1430b1=_0x1430b1-0x0;let _0x3dc684=a1200_0x29ee[_0x1430b1];return _0x3dc684;};const _0xd5218e=a1200_0x3dc6;'use strict';const schema=require('validate'),_=require('lodash'),util=require(_0xd5218e('0x2')),seqqueue=require(_0xd5218e('0xd')),logger=require(_0xd5218e('0xc'))(_0xd5218e('0x1a')),strategy=require(_0xd5218e('0x1f')),queue=schema({'name':{'type':_0xd5218e('0xf'),'required':!![],'message':_0xd5218e('0xe')},'timeout':{'type':'number','message':_0xd5218e('0x15')}});function writeLog(_0x2357d1,_0x32d0a4,_0x12b6d4){const _0xe88c43=_0xd5218e;return logger['info'](util[_0xe88c43('0x4')](_0xe88c43('0x8'),_0x2357d1,_0x32d0a4['name'],_0x12b6d4));}function handleFindAgent(_0x1f7e33){return function(_0x295594){const _0x2596d3=a1200_0x3dc6;return _0x295594[_0x2596d3('0x1c')][_0x2596d3('0x11')]()===_0x1f7e33['toLowerCase']();};}exports['consequence']=function(_0x3cab08,_0x439f32,_0x2b8847,_0x8d1dd6){return function(_0x1034be){const _0x29e65d=a1200_0x3dc6;try{const _0x5832d2={'name':_0x439f32[0x0],'timeout':_0x439f32[0x1]},_0x185907=queue[_0x29e65d('0x1b')](_0x5832d2,{'typecast':!![]});if(_0x185907['length'])logger[_0x29e65d('0x20')](_0x29e65d('0x12'),_0x3cab08,_[_0x29e65d('0x1')](_0x185907,_0x29e65d('0x19'))['join'](',\x20')),_0x1034be[_0x29e65d('0x3')]();else{const _0x5692f7=_[_0x29e65d('0x18')](_0x2b8847[_0x29e65d('0x1e')],handleFindAgent(_0x5832d2[_0x29e65d('0x1c')]));if(_0x5692f7){const _0x549c83=(_0x5832d2[_0x29e65d('0x7')]||0xa)*0x3e8;let _0x399e9d;const _0x1ccefa=seqqueue['createQueue'](_0x549c83);_0x1ccefa['id']=_0x3cab08,_0x1ccefa[_0x29e65d('0x14')]=_0x549c83,_0x1ccefa[_0x29e65d('0x17')]=_0x8d1dd6[_0x29e65d('0x17')],writeLog(_0x3cab08,_0x5692f7,util['format'](_0x29e65d('0x0'),_0x549c83)),_0x2b8847[_0x29e65d('0x21')][_0x3cab08]['on'](_0x29e65d('0x23'),function(){const _0x5cce35=_0x29e65d;logger[_0x5cce35('0x5')]('[%s][AGENT]\x20ROUTING\x20STOPPED',_0x3cab08),clearTimeout(_0x399e9d),_0x399e9d=undefined,_0x1ccefa[_0x5cce35('0xa')](),_0x2b8847['rules'][_0x3cab08]&&delete _0x2b8847[_0x5cce35('0x21')][_0x3cab08],_0x1034be[_0x5cce35('0x3')]();}),_0x2b8847[_0x29e65d('0x21')][_0x3cab08]['on'](_0x29e65d('0x6'),function(){const _0x441860=_0x29e65d;_0x2b8847['rules'][_0x3cab08]&&delete _0x2b8847[_0x441860('0x21')][_0x3cab08];}),_0x399e9d=setTimeout(function(){const _0x1c7061=_0x29e65d;logger[_0x1c7061('0x5')](_0x1c7061('0x10'),_0x3cab08),clearTimeout(_0x399e9d),_0x1ccefa[_0x1c7061('0xa')](),_0x1034be[_0x1c7061('0x9')]();},_0x549c83),strategy[_0x29e65d('0x16')](_0x1ccefa,_0x5692f7,_0x2b8847,_0x8d1dd6);}else logger['error'](_0x29e65d('0x1d'),_0x3cab08,_0x5832d2['name']),_0x1034be['stop']();}}catch(_0x5e1573){console[_0x29e65d('0x22')](_0x5e1573),logger[_0x29e65d('0x20')](_0x29e65d('0xb'),_0x3cab08,_0x5e1573[_0x29e65d('0x13')]),_0x1034be[_0x29e65d('0x3')]();}};}; \ No newline at end of file +const a1364_0x4ff4=['timeout\x20is\x20a\x20number','lodash','format','stop','complete','stack','timeout','message','close','map','validate','agent','channel','info','end','error','../../../../config/logger','./strategy','agents','name','number','[%s][AGENT]\x20ROUTING\x20END','toLowerCase','log','[%s][QUEUE]\x20%s','length','util','name\x20is\x20a\x20string\x20and\x20it\x20is\x20required','[%s][AGENT]\x20ROUTING\x20STOPPED','[%s][AGENT]\x20%s','consequence','atimeout','join','rules','seq-queue','routing','[%s][AGENT][NAME:%s][STATUS:%s]','next','START:%s'];(function(_0x98e36f,_0x397c87){const _0x4ff447=function(_0x4f700b){while(--_0x4f700b){_0x98e36f['push'](_0x98e36f['shift']());}};_0x4ff447(++_0x397c87);}(a1364_0x4ff4,0xce));const a1364_0x4f70=function(_0x98e36f,_0x397c87){_0x98e36f=_0x98e36f-0xe0;let _0x4ff447=a1364_0x4ff4[_0x98e36f];return _0x4ff447;};const a1364_0x23d96b=a1364_0x4f70;'use strict';const schema=require(a1364_0x23d96b(0x106)),_=require(a1364_0x23d96b(0xfd)),util=require(a1364_0x23d96b(0xef)),seqqueue=require(a1364_0x23d96b(0xf7)),logger=require(a1364_0x23d96b(0xe5))(a1364_0x23d96b(0xf8)),strategy=require(a1364_0x23d96b(0xe6)),queue=schema({'name':{'type':'string','required':!![],'message':a1364_0x23d96b(0xf0)},'timeout':{'type':a1364_0x23d96b(0xe9),'message':a1364_0x23d96b(0xfc)}});function writeLog(_0x3c6805,_0xb2244a,_0x3e02d2){const _0x1beccc=a1364_0x23d96b;return logger[_0x1beccc(0xe2)](util[_0x1beccc(0xfe)](_0x1beccc(0xf9),_0x3c6805,_0xb2244a[_0x1beccc(0xe8)],_0x3e02d2));}function handleFindAgent(_0x48a762){return function(_0x48d88d){const _0x3e82a0=a1364_0x4f70;return _0x48d88d[_0x3e82a0(0xe8)]['toLowerCase']()===_0x48a762[_0x3e82a0(0xeb)]();};}exports[a1364_0x23d96b(0xf3)]=function(_0x198e5b,_0x50ca99,_0x52f5a2,_0x7daffc){return function(_0x384539){const _0x18ac55=a1364_0x4f70;try{const _0x30e9c3={'name':_0x50ca99[0x0],'timeout':_0x50ca99[0x1]},_0x22bb53=queue[_0x18ac55(0x106)](_0x30e9c3,{'typecast':!![]});if(_0x22bb53[_0x18ac55(0xee)])logger[_0x18ac55(0xe4)](_0x18ac55(0xf2),_0x198e5b,_[_0x18ac55(0x105)](_0x22bb53,_0x18ac55(0x103))[_0x18ac55(0xf5)](',\x20')),_0x384539[_0x18ac55(0xff)]();else{const _0x5de1bc=_['find'](_0x52f5a2[_0x18ac55(0xe7)],handleFindAgent(_0x30e9c3['name']));if(_0x5de1bc){const _0x1a5679=(_0x30e9c3[_0x18ac55(0x102)]||0xa)*0x3e8;let _0x16af40;const _0x19c12a=seqqueue['createQueue'](_0x1a5679);_0x19c12a['id']=_0x198e5b,_0x19c12a[_0x18ac55(0xf4)]=_0x1a5679,_0x19c12a[_0x18ac55(0xe1)]=_0x7daffc[_0x18ac55(0xe1)],writeLog(_0x198e5b,_0x5de1bc,util[_0x18ac55(0xfe)](_0x18ac55(0xfb),_0x1a5679)),_0x52f5a2[_0x18ac55(0xf6)][_0x198e5b]['on'](_0x18ac55(0xe3),function(){const _0x1d7a1c=_0x18ac55;logger[_0x1d7a1c(0xe2)](_0x1d7a1c(0xf1),_0x198e5b),clearTimeout(_0x16af40),_0x16af40=undefined,_0x19c12a[_0x1d7a1c(0x104)](),_0x52f5a2['rules'][_0x198e5b]&&delete _0x52f5a2[_0x1d7a1c(0xf6)][_0x198e5b],_0x384539[_0x1d7a1c(0xff)]();}),_0x52f5a2[_0x18ac55(0xf6)][_0x198e5b]['on'](_0x18ac55(0x100),function(){const _0x3efff7=_0x18ac55;_0x52f5a2[_0x3efff7(0xf6)][_0x198e5b]&&delete _0x52f5a2[_0x3efff7(0xf6)][_0x198e5b];}),_0x16af40=setTimeout(function(){const _0x2b8f21=_0x18ac55;logger[_0x2b8f21(0xe2)](_0x2b8f21(0xea),_0x198e5b),clearTimeout(_0x16af40),_0x19c12a['close'](),_0x384539[_0x2b8f21(0xfa)]();},_0x1a5679),strategy[_0x18ac55(0xe0)](_0x19c12a,_0x5de1bc,_0x52f5a2,_0x7daffc);}else logger['error']('[%s][AGENT]\x20agent\x20not\x20found\x20%s',_0x198e5b,_0x30e9c3[_0x18ac55(0xe8)]),_0x384539[_0x18ac55(0xff)]();}}catch(_0x5aaf61){console[_0x18ac55(0xec)](_0x5aaf61),logger[_0x18ac55(0xe4)](_0x18ac55(0xed),_0x198e5b,_0x5aaf61[_0x18ac55(0x101)]),_0x384539[_0x18ac55(0xff)]();}};}; \ 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 0355457..289d90d 100644 --- a/server/services/routing/server/applications/amazonlex.js +++ b/server/services/routing/server/applications/amazonlex.js @@ -1 +1 @@ -const a1201_0x52f4=['created','../../rpc/smsMessage','create','phone','account','../../rpc/openchannelMessage','dialogState','ChatWebsiteId','InteractionId','../../rpc/whatsappMessage','YYYY-MM-DD\x20HH:mm:ss','Message','../../rpc/mailMessage','providerResponse','error','format','out','then','providerName','routing','../../rpc/faxMessage','[%s][AMAZONLEX]\x20%s','next','Agent\x20is\x20managing\x20the\x20interaction.\x20Go\x20to\x20next\x20application.','$LATEST','stringify','stop','message','aws-sdk','whatsapp','isEmpty','info','amazonlex','body','lodash','Failed','AccountId','isNil','contact','upperFirst','consequence','finally','catch','interaction'];(function(_0x1da2a7,_0x52f41c){const _0x4417be=function(_0x455aa0){while(--_0x455aa0){_0x1da2a7['push'](_0x1da2a7['shift']());}};_0x4417be(++_0x52f41c);}(a1201_0x52f4,0x1a6));const a1201_0x4417=function(_0x1da2a7,_0x52f41c){_0x1da2a7=_0x1da2a7-0x0;let _0x4417be=a1201_0x52f4[_0x1da2a7];return _0x4417be;};const _0x255474=a1201_0x4417;'use strict';const _=require(_0x255474('0x8')),moment=require('moment'),AWS=require(_0x255474('0x2')),utils=require('./utils'),logger=require('../../../../config/logger')(_0x255474('0x25')),rpc={'chatMessage':require('../../rpc/chatMessage'),'openchannelMessage':require(_0x255474('0x17')),'mailMessage':require(_0x255474('0x1e')),'smsMessage':require(_0x255474('0x13')),'faxMessage':require(_0x255474('0x26')),'whatsappMessage':require(_0x255474('0x1b'))};exports[_0x255474('0xe')]=function(_0x455aa0,_0x17a80d){return function(_0x44ffa6){const _0x2d1045=a1201_0x4417;try{if(!_[_0x2d1045('0xb')](this[_0x2d1045('0x11')]['UserId']))return logger[_0x2d1045('0x5')](_0x2d1045('0x27'),_0x455aa0,_0x2d1045('0x29')),_0x44ffa6[_0x2d1045('0x28')]();const _0x59d0c1={'ContactId':this[_0x2d1045('0xc')]['id'],'sentAt':moment()[_0x2d1045('0x21')](_0x2d1045('0x1c')),'direction':_0x2d1045('0x22')};(this['channel']==='sms'||this['channel']===_0x2d1045('0x3'))&&(_0x59d0c1[_0x2d1045('0x15')]=this['interaction'][_0x2d1045('0x15')]);const _0x45fc70=this['channel'];_0x45fc70==='chat'?_0x59d0c1[_0x2d1045('0x19')]=this['account']['id']:_0x59d0c1[_[_0x2d1045('0xd')](_0x45fc70)+_0x2d1045('0xa')]=this[_0x2d1045('0x16')]['id'];_0x59d0c1[_[_0x2d1045('0xd')](_0x45fc70)+_0x2d1045('0x1a')]=this[_0x2d1045('0x11')]['id'];if(this['interaction'][_0x2d1045('0x12')]){const _0x5b4fa9=_0x17a80d[0x4];if(!_[_0x2d1045('0x4')](_0x5b4fa9))return _0x59d0c1[_0x2d1045('0x7')]=utils['getMustacheRender'](_0x5b4fa9,this),rpc[_0x45fc70+_0x2d1045('0x1d')][_0x2d1045('0x14')](_0x59d0c1)[_0x2d1045('0x23')](function(){const _0x2705ab=_0x2d1045;logger['info'](_0x2705ab('0x27'),_0x455aa0,_0x59d0c1[_0x2705ab('0x7')]);})['catch'](function(_0x4ad97b){const _0x1eba2f=_0x2d1045;logger[_0x1eba2f('0x20')](_0x1eba2f('0x27'),_0x455aa0,JSON[_0x1eba2f('0x2b')](_0x4ad97b));})[_0x2d1045('0xf')](function(){const _0x47e141=_0x2d1045;logger[_0x47e141('0x5')]('[%s][AMAZONLEX]\x20Welcome\x20Message\x20has\x20been\x20sent!',_0x455aa0),_0x44ffa6[_0x47e141('0x0')]();});else logger[_0x2d1045('0x5')]('[%s][AMAZONLEX]\x20Welcome\x20Message\x20is\x20empty.\x20It\x20will\x20wait\x20for\x20a\x20message\x20from\x20customer!',_0x455aa0),_0x44ffa6[_0x2d1045('0x0')]();}else{const _0x16b3ee=this,_0x274a96=new AWS['LexRuntime']({'accessKeyId':_0x17a80d[0x0],'secretAccessKey':_0x17a80d[0x1],'region':_0x17a80d[0x2]}),_0x19793d={'botAlias':_0x2d1045('0x2a'),'botName':_0x17a80d[0x3],'inputText':this['message'][_0x2d1045('0x7')],'userId':this['channel']+':'+this[_0x2d1045('0x11')]['id']['toString']()};_0x274a96['postText'](_0x19793d,function(_0x4130a4,_0x4c4429){const _0x5abb33=_0x2d1045;if(_0x4130a4)logger[_0x5abb33('0x20')](_0x5abb33('0x27'),_0x455aa0,_0x4130a4[_0x5abb33('0x1')]),_0x44ffa6[_0x5abb33('0x28')]();else{if(_0x4c4429&&_0x4c4429[_0x5abb33('0x1')])return _0x16b3ee['body'][_0x5abb33('0x6')]=_0x4c4429,_0x59d0c1[_0x5abb33('0x7')]=_0x4c4429[_0x5abb33('0x1')],_0x59d0c1[_0x5abb33('0x24')]='amazonlex',_0x59d0c1[_0x5abb33('0x1f')]=JSON[_0x5abb33('0x2b')](_0x4c4429),rpc[_0x45fc70+_0x5abb33('0x1d')][_0x5abb33('0x14')](_0x59d0c1)['then'](function(){const _0x2e1524=_0x5abb33;logger[_0x2e1524('0x5')](_0x2e1524('0x27'),_0x455aa0,_0x59d0c1[_0x2e1524('0x7')]),_0x4c4429[_0x2e1524('0x18')]==_0x2e1524('0x9')?_0x44ffa6['next']():_0x44ffa6[_0x2e1524('0x0')]();})[_0x5abb33('0x10')](function(_0x4394f3){const _0x397a82=_0x5abb33;logger[_0x397a82('0x20')]('[%s][AMAZONLEX]\x20%s',_0x455aa0,JSON[_0x397a82('0x2b')](_0x4394f3)),_0x44ffa6[_0x397a82('0x28')]();});else _0x44ffa6[_0x5abb33('0x28')]();}});}}catch(_0x73da80){logger['error'](_0x2d1045('0x27'),_0x455aa0,JSON['stringify'](_0x73da80)),_0x44ffa6['stop']();}};}; \ No newline at end of file +const a1365_0xc387=['postText','create','UserId','../../rpc/smsMessage','moment','providerResponse','Agent\x20is\x20managing\x20the\x20interaction.\x20Go\x20to\x20next\x20application.','channel','body','dialogState','../../rpc/faxMessage','Failed','ChatWebsiteId','account','YYYY-MM-DD\x20HH:mm:ss','../../rpc/chatMessage','finally','routing','stringify','catch','upperFirst','../../rpc/mailMessage','stop','[%s][AMAZONLEX]\x20%s','isNil','next','phone','sms','consequence','out','[%s][AMAZONLEX]\x20Welcome\x20Message\x20has\x20been\x20sent!','info','then','contact','interaction','../../rpc/openchannelMessage','../../../../config/logger','error','./utils','message','whatsapp','isEmpty'];(function(_0x22127b,_0x1c9c66){const _0xc38716=function(_0xb0291f){while(--_0xb0291f){_0x22127b['push'](_0x22127b['shift']());}};_0xc38716(++_0x1c9c66);}(a1365_0xc387,0x1c2));const a1365_0xb029=function(_0x22127b,_0x1c9c66){_0x22127b=_0x22127b-0xc5;let _0xc38716=a1365_0xc387[_0x22127b];return _0xc38716;};const a1365_0x2febf6=a1365_0xb029;'use strict';const _=require('lodash'),moment=require(a1365_0x2febf6(0xd5)),AWS=require('aws-sdk'),utils=require(a1365_0x2febf6(0xcd)),logger=require(a1365_0x2febf6(0xcb))(a1365_0x2febf6(0xe2)),rpc={'chatMessage':require(a1365_0x2febf6(0xe0)),'openchannelMessage':require(a1365_0x2febf6(0xca)),'mailMessage':require(a1365_0x2febf6(0xe6)),'smsMessage':require(a1365_0x2febf6(0xd4)),'faxMessage':require(a1365_0x2febf6(0xdb)),'whatsappMessage':require('../../rpc/whatsappMessage')};exports[a1365_0x2febf6(0xed)]=function(_0x312fc4,_0x5b2e2e){return function(_0x5ab48a){const _0x565265=a1365_0xb029;try{if(!_[_0x565265(0xe9)](this[_0x565265(0xc9)][_0x565265(0xd3)]))return logger['info'](_0x565265(0xe8),_0x312fc4,_0x565265(0xd7)),_0x5ab48a[_0x565265(0xea)]();const _0x36fc9b={'ContactId':this[_0x565265(0xc8)]['id'],'sentAt':moment()['format'](_0x565265(0xdf)),'direction':_0x565265(0xee)};(this['channel']===_0x565265(0xec)||this['channel']===_0x565265(0xcf))&&(_0x36fc9b[_0x565265(0xeb)]=this[_0x565265(0xc9)][_0x565265(0xeb)]);const _0x37ad3a=this[_0x565265(0xd8)];_0x37ad3a==='chat'?_0x36fc9b[_0x565265(0xdd)]=this[_0x565265(0xde)]['id']:_0x36fc9b[_['upperFirst'](_0x37ad3a)+'AccountId']=this[_0x565265(0xde)]['id'];_0x36fc9b[_[_0x565265(0xe5)](_0x37ad3a)+'InteractionId']=this[_0x565265(0xc9)]['id'];if(this[_0x565265(0xc9)]['created']){const _0x39a7f8=_0x5b2e2e[0x4];if(!_[_0x565265(0xd0)](_0x39a7f8))return _0x36fc9b[_0x565265(0xd9)]=utils['getMustacheRender'](_0x39a7f8,this),rpc[_0x37ad3a+'Message'][_0x565265(0xd2)](_0x36fc9b)[_0x565265(0xc7)](function(){const _0x509d40=_0x565265;logger[_0x509d40(0xc6)](_0x509d40(0xe8),_0x312fc4,_0x36fc9b[_0x509d40(0xd9)]);})[_0x565265(0xe4)](function(_0x5e36be){const _0x24ef61=_0x565265;logger[_0x24ef61(0xcc)](_0x24ef61(0xe8),_0x312fc4,JSON[_0x24ef61(0xe3)](_0x5e36be));})[_0x565265(0xe1)](function(){const _0x48c554=_0x565265;logger['info'](_0x48c554(0xc5),_0x312fc4),_0x5ab48a[_0x48c554(0xe7)]();});else logger[_0x565265(0xc6)]('[%s][AMAZONLEX]\x20Welcome\x20Message\x20is\x20empty.\x20It\x20will\x20wait\x20for\x20a\x20message\x20from\x20customer!',_0x312fc4),_0x5ab48a['stop']();}else{const _0x4b5898=this,_0x4e18e1=new AWS['LexRuntime']({'accessKeyId':_0x5b2e2e[0x0],'secretAccessKey':_0x5b2e2e[0x1],'region':_0x5b2e2e[0x2]}),_0x240660={'botAlias':'$LATEST','botName':_0x5b2e2e[0x3],'inputText':this[_0x565265(0xce)][_0x565265(0xd9)],'userId':this[_0x565265(0xd8)]+':'+this['interaction']['id']['toString']()};_0x4e18e1[_0x565265(0xd1)](_0x240660,function(_0x2dcc62,_0x56dc4b){const _0x2e33f9=_0x565265;if(_0x2dcc62)logger[_0x2e33f9(0xcc)]('[%s][AMAZONLEX]\x20%s',_0x312fc4,_0x2dcc62[_0x2e33f9(0xce)]),_0x5ab48a[_0x2e33f9(0xea)]();else{if(_0x56dc4b&&_0x56dc4b['message'])return _0x4b5898['body']['amazonlex']=_0x56dc4b,_0x36fc9b['body']=_0x56dc4b[_0x2e33f9(0xce)],_0x36fc9b['providerName']='amazonlex',_0x36fc9b[_0x2e33f9(0xd6)]=JSON[_0x2e33f9(0xe3)](_0x56dc4b),rpc[_0x37ad3a+'Message'][_0x2e33f9(0xd2)](_0x36fc9b)['then'](function(){const _0x5251e0=_0x2e33f9;logger[_0x5251e0(0xc6)](_0x5251e0(0xe8),_0x312fc4,_0x36fc9b[_0x5251e0(0xd9)]),_0x56dc4b[_0x5251e0(0xda)]==_0x5251e0(0xdc)?_0x5ab48a[_0x5251e0(0xea)]():_0x5ab48a[_0x5251e0(0xe7)]();})[_0x2e33f9(0xe4)](function(_0x5d48d7){const _0x868a65=_0x2e33f9;logger['error']('[%s][AMAZONLEX]\x20%s',_0x312fc4,JSON[_0x868a65(0xe3)](_0x5d48d7)),_0x5ab48a['next']();});else _0x5ab48a[_0x2e33f9(0xea)]();}});}}catch(_0x153642){logger[_0x565265(0xcc)](_0x565265(0xe8),_0x312fc4,JSON[_0x565265(0xe3)](_0x153642)),_0x5ab48a[_0x565265(0xe7)]();}};}; \ 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 67bc3fb..13cae8f 100644 --- a/server/services/routing/server/applications/autoreply.js +++ b/server/services/routing/server/applications/autoreply.js @@ -1 +1 @@ -const a1202_0x32b0=['startsWith','account','AccountId','stringify','create','moment','interaction','then','read','contact','[RPC][%s][AUTOREPLY]\x20%s','message','chat','InteractionId','html','subject','Re:\x20','mail','../../../../config/logger','../../mailRpc','body',''+_[_0xde3b56('0x28')](_0x50a69a[_0xde3b56('0x11')],_0xde3b56('0x12'),_0xde3b56('0x31'))+'',mailRpc[_0xde3b56('0x14')](_0x4aa2bb,_0x50a69a)[_0xde3b56('0x4')](function(_0x5554cf){const _0x4d5656=_0xde3b56;return logger['info']('[%s][AUTOREPLY]\x20SMTP\x20SENT',_0x3a939a),_0x50a69a['messageId']=_0x5554cf[_0x4d5656('0x8')][_0x4d5656('0x37')],rpc[_0x132b3e+_0x4d5656('0x21')]['create'](_0x50a69a);})[_0xde3b56('0x4')](function(_0x13863d){const _0x4fc2c8=_0xde3b56;logger[_0x4fc2c8('0x32')]('[%s][AUTOREPLY]\x20%s',_0x3a939a,JSON['stringify'](_0x13863d));})[_0xde3b56('0x36')](function(_0x5d714d){const _0x362917=_0xde3b56;logger[_0x362917('0x2f')](_0x362917('0x7'),_0x3a939a,JSON[_0x362917('0x0')](_0x5d714d));})[_0xde3b56('0x19')](function(){const _0x47e72a=_0xde3b56;_0x3aad05[_0x47e72a('0x2e')]();});}else return rpc[this['channel']+_0xde3b56('0x21')][_0xde3b56('0x1')](_0x50a69a)[_0xde3b56('0x4')](function(){const _0x134107=_0xde3b56;logger[_0x134107('0x32')](_0x134107('0x1e'),_0x3a939a,_0x50a69a[_0x134107('0x11')]);})[_0xde3b56('0x36')](function(_0xbf40cf){const _0x566043=_0xde3b56;logger[_0x566043('0x2f')](_0x566043('0x1e'),_0x3a939a,JSON['stringify'](_0xbf40cf));})[_0xde3b56('0x19')](function(){const _0x5d7171=_0xde3b56;_0x3aad05[_0x5d7171('0x2e')]();});}}catch(_0x509dc7){logger[_0xde3b56('0x2f')](_0xde3b56('0x1e'),_0x3a939a,JSON[_0xde3b56('0x0')](_0x509dc7)),_0x3aad05['stop']();}};}; \ No newline at end of file +const a1366_0x5634=['Autoreply\x20already\x20sent','authentication','stop','host','startsWith','../../rpc/smsMessage','contact','isNil','create','stringify','catch','[%s][AUTOREPLY]\x20SMTP\x20SENT','../../rpc/openchannelMessage','created','messageId','chat','InteractionId','Re:\x20','out','pass','Message','../../rpc/chatMessage','subject','[%s][AUTOREPLY]\x20%s','next','phone','getMustacheRender','secure','consequence','format','message','channel','html','service','port','../../rpc/whatsappMessage','Re:','mail','inReplyTo','','finally','[RPC][%s][AUTOREPLY]\x20%s','info','lodash','./utils','account','routing','interaction','sendMailMessage','AccountId','../../rpc/mailMessage','upperFirst','Smtp','body','../../mailRpc','from','read','error','../../rpc/faxMessage','then','',mailRpc[_0x37ca42(0x179)](_0x47eea8,_0xf1a1a2)[_0x37ca42(0x184)](function(_0x1c8e3f){const _0x2c7efe=_0x37ca42;return logger[_0x2c7efe(0x173)](_0x2c7efe(0x192),_0x1ce796),_0xf1a1a2[_0x2c7efe(0x195)]=_0x1c8e3f[_0x2c7efe(0x167)][_0x2c7efe(0x195)],rpc[_0x550f0c+'Message'][_0x2c7efe(0x18f)](_0xf1a1a2);})['then'](function(_0x6b9b6a){const _0x4a986a=_0x37ca42;logger[_0x4a986a(0x173)]('[%s][AUTOREPLY]\x20%s',_0x1ce796,JSON[_0x4a986a(0x190)](_0x6b9b6a));})[_0x37ca42(0x191)](function(_0x2a5de4){const _0x328b15=_0x37ca42;logger[_0x328b15(0x182)](_0x328b15(0x172),_0x1ce796,JSON[_0x328b15(0x190)](_0x2a5de4));})[_0x37ca42(0x171)](function(){const _0x416dbe=_0x37ca42;_0x5cf532[_0x416dbe(0x161)]();});}else return rpc[this[_0x37ca42(0x168)]+_0x37ca42(0x15d)][_0x37ca42(0x18f)](_0xf1a1a2)[_0x37ca42(0x184)](function(){const _0x2dc5da=_0x37ca42;logger[_0x2dc5da(0x173)](_0x2dc5da(0x160),_0x1ce796,_0xf1a1a2[_0x2dc5da(0x17e)]);})['catch'](function(_0x3065fc){const _0xb9019d=_0x37ca42;logger[_0xb9019d(0x182)](_0xb9019d(0x160),_0x1ce796,JSON[_0xb9019d(0x190)](_0x3065fc));})[_0x37ca42(0x171)](function(){const _0x1d28da=_0x37ca42;_0x5cf532[_0x1d28da(0x161)]();});}}catch(_0x301166){logger[_0x37ca42(0x182)](_0x37ca42(0x160),_0x1ce796,JSON[_0x37ca42(0x190)](_0x301166)),_0x5cf532[_0x37ca42(0x189)]();}};}; \ No newline at end of file diff --git a/server/services/routing/server/applications/close.js b/server/services/routing/server/applications/close.js index c137909..c7247ea 100644 --- a/server/services/routing/server/applications/close.js +++ b/server/services/routing/server/applications/close.js @@ -1 +1 @@ -const a1203_0x4f51=['[%s][CLOSE]\x20reason\x20%s','moment','[%s][CLOSE]\x20interaction\x20%s\x20has\x20been\x20closed!','YYYY-MM-DD\x20HH:mm:ss','stop','consequence','stringify','info','interaction','../../rpc/whatsappInteraction','../../rpc/smsInteraction','then','routing','../../../../config/logger','format','Interaction','../../rpc/mailInteraction','../../rpc/chatInteraction','channel','error','[%s][CLOSE]\x20%s','catch'];(function(_0x3a02bf,_0x4f511d){const _0x3f56a9=function(_0x305529){while(--_0x305529){_0x3a02bf['push'](_0x3a02bf['shift']());}};_0x3f56a9(++_0x4f511d);}(a1203_0x4f51,0x119));const a1203_0x3f56=function(_0x3a02bf,_0x4f511d){_0x3a02bf=_0x3a02bf-0x0;let _0x3f56a9=a1203_0x4f51[_0x3a02bf];return _0x3f56a9;};const _0x4cfbdb=a1203_0x3f56;'use strict';const moment=require(_0x4cfbdb('0x6')),logger=require(_0x4cfbdb('0x12'))(_0x4cfbdb('0x11')),rpc={'chatInteraction':require(_0x4cfbdb('0x0')),'openchannelInteraction':require('../../rpc/openchannelInteraction'),'smsInteraction':require(_0x4cfbdb('0xf')),'mailInteraction':require(_0x4cfbdb('0x15')),'faxInteraction':require('../../rpc/faxInteraction'),'whatsappInteraction':require(_0x4cfbdb('0xe'))};exports[_0x4cfbdb('0xa')]=function(_0x305529,_0x20ced,_0x19c2bb,_0x6deda9){return function(_0x4b995b){const _0x21bafd=a1203_0x3f56;try{logger[_0x21bafd('0xc')](_0x21bafd('0x5'),_0x305529,_0x20ced[0x0]);const _0x1e63d3={'closed':0x1,'closedAt':moment()[_0x21bafd('0x13')](_0x21bafd('0x8')),'closeReason':'system','disposition':_0x20ced[0x0]};rpc[_0x6deda9[_0x21bafd('0x1')]+_0x21bafd('0x14')]&&rpc[_0x6deda9[_0x21bafd('0x1')]+_0x21bafd('0x14')]['update'](_0x6deda9[_0x21bafd('0xd')]['id'],_0x1e63d3)[_0x21bafd('0x10')](function(){const _0x54a089=_0x21bafd;logger['info'](_0x54a089('0x7'),_0x305529,_0x6deda9[_0x54a089('0xd')]['id']);})[_0x21bafd('0x4')](function(_0x2ad825){const _0x4e1bcb=_0x21bafd;logger[_0x4e1bcb('0x2')](_0x4e1bcb('0x3'),_0x305529,JSON[_0x4e1bcb('0xb')](_0x2ad825));})['finally'](function(){const _0x53d5a7=_0x21bafd;_0x4b995b[_0x53d5a7('0x9')]();});}catch(_0x593545){logger['error'](_0x21bafd('0x3'),_0x305529,JSON[_0x21bafd('0xb')](_0x593545)),_0x4b995b['stop']();}};}; \ No newline at end of file +const a1367_0x47a0=['moment','[%s][CLOSE]\x20interaction\x20%s\x20has\x20been\x20closed!','channel','error','YYYY-MM-DD\x20HH:mm:ss','stop','../../rpc/chatInteraction','../../rpc/whatsappInteraction','info','format','finally','catch','[%s][CLOSE]\x20%s','consequence','../../rpc/openchannelInteraction','stringify','../../rpc/mailInteraction','Interaction','then','../../rpc/smsInteraction','../../rpc/faxInteraction','[%s][CLOSE]\x20reason\x20%s','interaction','routing','system'];(function(_0x41fbe3,_0x559d8a){const _0x47a05d=function(_0xa55e2f){while(--_0xa55e2f){_0x41fbe3['push'](_0x41fbe3['shift']());}};_0x47a05d(++_0x559d8a);}(a1367_0x47a0,0x106));const a1367_0xa55e=function(_0x41fbe3,_0x559d8a){_0x41fbe3=_0x41fbe3-0x14d;let _0x47a05d=a1367_0x47a0[_0x41fbe3];return _0x47a05d;};const a1367_0xa68e6f=a1367_0xa55e;'use strict';const moment=require(a1367_0xa68e6f(0x15a)),logger=require('../../../../config/logger')(a1367_0xa68e6f(0x158)),rpc={'chatInteraction':require(a1367_0xa68e6f(0x160)),'openchannelInteraction':require(a1367_0xa68e6f(0x14f)),'smsInteraction':require(a1367_0xa68e6f(0x154)),'mailInteraction':require(a1367_0xa68e6f(0x151)),'faxInteraction':require(a1367_0xa68e6f(0x155)),'whatsappInteraction':require(a1367_0xa68e6f(0x161))};exports[a1367_0xa68e6f(0x14e)]=function(_0x57f6c7,_0x4a149f,_0x3693e3,_0x237b2f){return function(_0x45b927){const _0x48eae3=a1367_0xa55e;try{logger['info'](_0x48eae3(0x156),_0x57f6c7,_0x4a149f[0x0]);const _0x51e64c={'closed':0x1,'closedAt':moment()[_0x48eae3(0x163)](_0x48eae3(0x15e)),'closeReason':_0x48eae3(0x159),'disposition':_0x4a149f[0x0]};rpc[_0x237b2f['channel']+_0x48eae3(0x152)]&&rpc[_0x237b2f[_0x48eae3(0x15c)]+_0x48eae3(0x152)]['update'](_0x237b2f[_0x48eae3(0x157)]['id'],_0x51e64c)[_0x48eae3(0x153)](function(){const _0x29c4d5=_0x48eae3;logger[_0x29c4d5(0x162)](_0x29c4d5(0x15b),_0x57f6c7,_0x237b2f[_0x29c4d5(0x157)]['id']);})[_0x48eae3(0x165)](function(_0x189dde){logger['error']('[%s][CLOSE]\x20%s',_0x57f6c7,JSON['stringify'](_0x189dde));})[_0x48eae3(0x164)](function(){const _0x4e8867=_0x48eae3;_0x45b927[_0x4e8867(0x15f)]();});}catch(_0x2de32e){logger[_0x48eae3(0x15d)](_0x48eae3(0x14d),_0x57f6c7,JSON[_0x48eae3(0x150)](_0x2de32e)),_0x45b927[_0x48eae3(0x15f)]();}};}; \ No newline at end of file diff --git a/server/services/routing/server/applications/dialogflow.js b/server/services/routing/server/applications/dialogflow.js index bc9440f..8408959 100644 --- a/server/services/routing/server/applications/dialogflow.js +++ b/server/services/routing/server/applications/dialogflow.js @@ -1 +1 @@ -const a1204_0x812c=['apiai-promise','[%s][DIALOGFLOW]\x20Welcome\x20Message\x20is\x20empty.\x20It\x20will\x20wait\x20for\x20a\x20message\x20from\x20customer!','ChatWebsiteId','stop','result','body','create','catch','lodash','contact','metadata','./utils','stringify','upperFirst','providerName','InteractionId','out','isNil','isEmpty','../../rpc/faxMessage','error','getMustacheRender','interaction','YYYY-MM-DD\x20HH:mm:ss','UserId','format','sms','textRequest','chat','[%s][DIALOGFLOW]\x20Welcome\x20Message\x20has\x20been\x20sent!','dialogflow','message','moment','Agent\x20is\x20managing\x20the\x20interaction.\x20Go\x20to\x20next\x20application.','account','../../rpc/smsMessage','consequence','[%s][DIALOGFLOW]\x20%s','AccountId','routing','channel','endConversation','phone','../../rpc/openchannelMessage','next','../../rpc/whatsappMessage','then','whatsapp','info','Message','md5','../../rpc/mailMessage'];(function(_0x496c2e,_0x812cbb){const _0x3d570c=function(_0x3f33d6){while(--_0x3f33d6){_0x496c2e['push'](_0x496c2e['shift']());}};_0x3d570c(++_0x812cbb);}(a1204_0x812c,0x118));const a1204_0x3d57=function(_0x496c2e,_0x812cbb){_0x496c2e=_0x496c2e-0x0;let _0x3d570c=a1204_0x812c[_0x496c2e];return _0x3d570c;};const _0x47d337=a1204_0x3d57;'use strict';const _=require(_0x47d337('0x28')),moment=require(_0x47d337('0xc')),apiai=require(_0x47d337('0x20')),md5=require(_0x47d337('0x1e')),utils=require(_0x47d337('0x2b')),logger=require('../../../../config/logger')(_0x47d337('0x13')),rpc={'chatMessage':require('../../rpc/chatMessage'),'openchannelMessage':require(_0x47d337('0x17')),'mailMessage':require(_0x47d337('0x1f')),'smsMessage':require(_0x47d337('0xf')),'faxMessage':require(_0x47d337('0x33')),'whatsappMessage':require(_0x47d337('0x19'))};exports[_0x47d337('0x10')]=function(_0x3f33d6,_0x55776e){return function(_0x30f2c2){const _0x28e885=a1204_0x3d57;try{if(!_[_0x28e885('0x31')](this[_0x28e885('0x2')][_0x28e885('0x4')]))return logger['info'](_0x28e885('0x11'),_0x3f33d6,_0x28e885('0xd')),_0x30f2c2[_0x28e885('0x18')]();const _0x3cf0b9={'ContactId':this[_0x28e885('0x29')]['id'],'sentAt':moment()[_0x28e885('0x5')](_0x28e885('0x3')),'direction':_0x28e885('0x30')};(this['channel']===_0x28e885('0x6')||this['channel']===_0x28e885('0x1b'))&&(_0x3cf0b9[_0x28e885('0x16')]=this['interaction'][_0x28e885('0x16')]);const _0x50ac4d=this[_0x28e885('0x14')];_0x50ac4d===_0x28e885('0x8')?_0x3cf0b9[_0x28e885('0x22')]=this[_0x28e885('0xe')]['id']:_0x3cf0b9[_[_0x28e885('0x2d')](_0x50ac4d)+_0x28e885('0x12')]=this[_0x28e885('0xe')]['id'];_0x3cf0b9[_[_0x28e885('0x2d')](_0x50ac4d)+_0x28e885('0x2f')]=this[_0x28e885('0x2')]['id'];if(this['interaction']['created']){const _0x5cd2a8=_0x55776e[0x2];if(!_[_0x28e885('0x32')](_0x5cd2a8))return _0x3cf0b9[_0x28e885('0x25')]=utils[_0x28e885('0x1')](_0x5cd2a8,this),rpc[_0x50ac4d+_0x28e885('0x1d')][_0x28e885('0x26')](_0x3cf0b9)[_0x28e885('0x1a')](function(){const _0x146cb9=_0x28e885;logger['info'](_0x146cb9('0x11'),_0x3f33d6,_0x3cf0b9[_0x146cb9('0x25')]);})[_0x28e885('0x27')](function(_0x9edd00){const _0x1de4ca=_0x28e885;logger['error'](_0x1de4ca('0x11'),_0x3f33d6,JSON['stringify'](_0x9edd00));})['finally'](function(){const _0x180513=_0x28e885;logger[_0x180513('0x1c')](_0x180513('0x9'),_0x3f33d6),_0x30f2c2['stop']();});else logger[_0x28e885('0x1c')](_0x28e885('0x21'),_0x3f33d6),_0x30f2c2['stop']();}else{const _0x204195=this,_0x265cd6=apiai(_0x55776e[0x0],{'language':_0x55776e[0x1]||'en'});return _0x265cd6[_0x28e885('0x7')](this['message'][_0x28e885('0x25')],{'sessionId':md5(this[_0x28e885('0x2')]['id'])})[_0x28e885('0x1a')](function(_0x18254a){const _0x2824eb=_0x28e885;return _0x204195['body'][_0x2824eb('0xa')]=_0x18254a,_0x3cf0b9[_0x2824eb('0x25')]=_0x18254a[_0x2824eb('0x24')]['fulfillment']['speech'],_0x3cf0b9[_0x2824eb('0x2e')]='dialogflow',_0x3cf0b9['providerResponse']=JSON[_0x2824eb('0x2c')](_0x18254a),rpc[_0x50ac4d+_0x2824eb('0x1d')][_0x2824eb('0x26')](_0x3cf0b9)[_0x2824eb('0x1a')](function(){const _0x5e7fcf=_0x2824eb;logger[_0x5e7fcf('0x1c')](_0x5e7fcf('0x11'),_0x3f33d6,_0x3cf0b9['body']),_0x18254a[_0x5e7fcf('0x24')][_0x5e7fcf('0x2a')][_0x5e7fcf('0x15')]?_0x30f2c2[_0x5e7fcf('0x18')]():_0x30f2c2[_0x5e7fcf('0x23')]();})[_0x2824eb('0x27')](function(_0x41c6d3){const _0x91f6e1=_0x2824eb;logger['error'](_0x91f6e1('0x11'),_0x3f33d6,JSON[_0x91f6e1('0x2c')](_0x41c6d3)),_0x30f2c2['next']();});})['catch'](function(_0x240ad9){const _0x18b3f7=_0x28e885;logger['error'](_0x18b3f7('0x11'),_0x3f33d6,_0x240ad9[_0x18b3f7('0xb')]),_0x30f2c2[_0x18b3f7('0x18')]();});}}catch(_0x4211db){logger[_0x28e885('0x0')](_0x28e885('0x11'),_0x3f33d6,JSON['stringify'](_0x4211db)),_0x30f2c2[_0x28e885('0x23')]();}};}; \ No newline at end of file +const a1368_0x54cf=['then','../../rpc/smsMessage','stop','../../rpc/chatMessage','result','../../rpc/openchannelMessage','account','message','md5','AccountId','out','./utils','contact','metadata','InteractionId','chat','apiai-promise','../../rpc/faxMessage','error','Agent\x20is\x20managing\x20the\x20interaction.\x20Go\x20to\x20next\x20application.','lodash','getMustacheRender','stringify','dialogflow','isNil','[%s][DIALOGFLOW]\x20Welcome\x20Message\x20has\x20been\x20sent!','../../../../config/logger','[%s][DIALOGFLOW]\x20%s','ChatWebsiteId','upperFirst','whatsapp','speech','catch','format','[%s][DIALOGFLOW]\x20Welcome\x20Message\x20is\x20empty.\x20It\x20will\x20wait\x20for\x20a\x20message\x20from\x20customer!','next','../../rpc/mailMessage','phone','isEmpty','Message','interaction','body','channel','sms','create','info','fulfillment','providerResponse','textRequest'];(function(_0x3d232b,_0x152938){const _0x54cfc7=function(_0x2e9c70){while(--_0x2e9c70){_0x3d232b['push'](_0x3d232b['shift']());}};_0x54cfc7(++_0x152938);}(a1368_0x54cf,0xe3));const a1368_0x2e9c=function(_0x3d232b,_0x152938){_0x3d232b=_0x3d232b-0x1aa;let _0x54cfc7=a1368_0x54cf[_0x3d232b];return _0x54cfc7;};const a1368_0x1eceee=a1368_0x2e9c;'use strict';const _=require(a1368_0x1eceee(0x1d0)),moment=require('moment'),apiai=require(a1368_0x1eceee(0x1cc)),md5=require(a1368_0x1eceee(0x1c4)),utils=require(a1368_0x1eceee(0x1c7)),logger=require(a1368_0x1eceee(0x1d6))('routing'),rpc={'chatMessage':require(a1368_0x1eceee(0x1bf)),'openchannelMessage':require(a1368_0x1eceee(0x1c1)),'mailMessage':require(a1368_0x1eceee(0x1af)),'smsMessage':require(a1368_0x1eceee(0x1bd)),'faxMessage':require(a1368_0x1eceee(0x1cd)),'whatsappMessage':require('../../rpc/whatsappMessage')};exports['consequence']=function(_0x3479ae,_0x1c3131){return function(_0x5ae090){const _0x5969c0=a1368_0x2e9c;try{if(!_[_0x5969c0(0x1d4)](this[_0x5969c0(0x1b3)]['UserId']))return logger['info'](_0x5969c0(0x1d7),_0x3479ae,_0x5969c0(0x1cf)),_0x5ae090['next']();const _0x4a8626={'ContactId':this[_0x5969c0(0x1c8)]['id'],'sentAt':moment()[_0x5969c0(0x1ac)]('YYYY-MM-DD\x20HH:mm:ss'),'direction':_0x5969c0(0x1c6)};(this[_0x5969c0(0x1b5)]===_0x5969c0(0x1b6)||this[_0x5969c0(0x1b5)]===_0x5969c0(0x1da))&&(_0x4a8626[_0x5969c0(0x1b0)]=this[_0x5969c0(0x1b3)]['phone']);const _0x2a7660=this[_0x5969c0(0x1b5)];_0x2a7660===_0x5969c0(0x1cb)?_0x4a8626[_0x5969c0(0x1d8)]=this[_0x5969c0(0x1c2)]['id']:_0x4a8626[_['upperFirst'](_0x2a7660)+_0x5969c0(0x1c5)]=this[_0x5969c0(0x1c2)]['id'];_0x4a8626[_[_0x5969c0(0x1d9)](_0x2a7660)+_0x5969c0(0x1ca)]=this[_0x5969c0(0x1b3)]['id'];if(this[_0x5969c0(0x1b3)]['created']){const _0x422f85=_0x1c3131[0x2];if(!_[_0x5969c0(0x1b1)](_0x422f85))return _0x4a8626['body']=utils[_0x5969c0(0x1d1)](_0x422f85,this),rpc[_0x2a7660+_0x5969c0(0x1b2)][_0x5969c0(0x1b7)](_0x4a8626)['then'](function(){const _0x34233c=_0x5969c0;logger[_0x34233c(0x1b8)](_0x34233c(0x1d7),_0x3479ae,_0x4a8626[_0x34233c(0x1b4)]);})[_0x5969c0(0x1ab)](function(_0x24f80a){const _0x369754=_0x5969c0;logger[_0x369754(0x1ce)](_0x369754(0x1d7),_0x3479ae,JSON['stringify'](_0x24f80a));})['finally'](function(){const _0x2a2f5a=_0x5969c0;logger['info'](_0x2a2f5a(0x1d5),_0x3479ae),_0x5ae090[_0x2a2f5a(0x1be)]();});else logger[_0x5969c0(0x1b8)](_0x5969c0(0x1ad),_0x3479ae),_0x5ae090[_0x5969c0(0x1be)]();}else{const _0x529cd1=this,_0x2e19ec=apiai(_0x1c3131[0x0],{'language':_0x1c3131[0x1]||'en'});return _0x2e19ec[_0x5969c0(0x1bb)](this[_0x5969c0(0x1c3)][_0x5969c0(0x1b4)],{'sessionId':md5(this[_0x5969c0(0x1b3)]['id'])})[_0x5969c0(0x1bc)](function(_0x51eae2){const _0x268c9c=_0x5969c0;return _0x529cd1[_0x268c9c(0x1b4)][_0x268c9c(0x1d3)]=_0x51eae2,_0x4a8626[_0x268c9c(0x1b4)]=_0x51eae2[_0x268c9c(0x1c0)][_0x268c9c(0x1b9)][_0x268c9c(0x1aa)],_0x4a8626['providerName']=_0x268c9c(0x1d3),_0x4a8626[_0x268c9c(0x1ba)]=JSON[_0x268c9c(0x1d2)](_0x51eae2),rpc[_0x2a7660+_0x268c9c(0x1b2)]['create'](_0x4a8626)[_0x268c9c(0x1bc)](function(){const _0x2bd5fc=_0x268c9c;logger[_0x2bd5fc(0x1b8)](_0x2bd5fc(0x1d7),_0x3479ae,_0x4a8626[_0x2bd5fc(0x1b4)]),_0x51eae2[_0x2bd5fc(0x1c0)][_0x2bd5fc(0x1c9)]['endConversation']?_0x5ae090[_0x2bd5fc(0x1ae)]():_0x5ae090[_0x2bd5fc(0x1be)]();})[_0x268c9c(0x1ab)](function(_0x546e74){const _0x1b592d=_0x268c9c;logger[_0x1b592d(0x1ce)](_0x1b592d(0x1d7),_0x3479ae,JSON['stringify'](_0x546e74)),_0x5ae090[_0x1b592d(0x1ae)]();});})[_0x5969c0(0x1ab)](function(_0xcffb95){const _0x478e32=_0x5969c0;logger[_0x478e32(0x1ce)](_0x478e32(0x1d7),_0x3479ae,_0xcffb95[_0x478e32(0x1c3)]),_0x5ae090['next']();});}}catch(_0x1316e7){logger[_0x5969c0(0x1ce)]('[%s][DIALOGFLOW]\x20%s',_0x3479ae,JSON[_0x5969c0(0x1d2)](_0x1316e7)),_0x5ae090[_0x5969c0(0x1be)]();}};}; \ No newline at end of file diff --git a/server/services/routing/server/applications/dialogflowV2.js b/server/services/routing/server/applications/dialogflowV2.js index 0fd3cb8..bcf938f 100644 --- a/server/services/routing/server/applications/dialogflowV2.js +++ b/server/services/routing/server/applications/dialogflowV2.js @@ -1 +1 @@ -const a1205_0x258f=['ChatWebsiteId','Message','diagnosticInfo','queryResult','allRequiredParamsPresent','clone','channel','../../rpc/smsMessage','AccountId','./utils','account','boolValue','queryText','md5','../../rpc/faxMessage','../../rpc/chatMessage','sms','../../rpc/whatsappMessage','fulfillmentText','message','intent','intentDetectionConfidence','create','end_conversation','getMustacheRender','body','[%s][DIALOGFLOWV2]\x20Welcome\x20Message\x20has\x20been\x20sent!','upperFirst','whatsapp','../../rpc/mailMessage','map','created','isEmpty','interaction','isNil','[%s][DIALOGFLOWV2]\x20%s','chat','contact','stringify','next','projectAgentSessionPath','@google-cloud/dialogflow','all','name','stop','out','YYYY-MM-DD\x20HH:mm:ss','error','info','displayName','fields','SessionsClient','[%s][DIALOGFLOWV2]\x20Welcome\x20Message\x20is\x20empty.\x20It\x20will\x20wait\x20for\x20a\x20message\x20from\x20customer!','providerName','providerResponse','replace','phone','routing'];(function(_0x5d114a,_0x258fed){const _0x3b7638=function(_0x243f20){while(--_0x243f20){_0x5d114a['push'](_0x5d114a['shift']());}};_0x3b7638(++_0x258fed);}(a1205_0x258f,0x1c8));const a1205_0x3b76=function(_0x5d114a,_0x258fed){_0x5d114a=_0x5d114a-0x0;let _0x3b7638=a1205_0x258f[_0x5d114a];return _0x3b7638;};const _0x2f5277=a1205_0x3b76;'use strict';const _=require('lodash'),dialogflow=require(_0x2f5277('0x31')),md5=require(_0x2f5277('0x15')),moment=require('moment'),logger=require('../../../../config/logger')(_0x2f5277('0x7')),utils=require(_0x2f5277('0x11')),rpc={'chatMessage':require(_0x2f5277('0x17')),'openchannelMessage':require('../../rpc/openchannelMessage'),'mailMessage':require(_0x2f5277('0x25')),'smsMessage':require(_0x2f5277('0xf')),'faxMessage':require(_0x2f5277('0x16')),'whatsappMessage':require(_0x2f5277('0x19'))};async function createMessage(_0x243f20,_0x3a9487,_0x4829f4,_0x149b98){const _0x184b2a=_0x2f5277,_0x43bf91=_[_0x184b2a('0xd')](_0x4829f4);_0x43bf91[_0x184b2a('0x21')]=_0x149b98;try{const _0x1bbee6=await rpc[_0x3a9487+_0x184b2a('0x9')][_0x184b2a('0x1e')](_0x43bf91);return logger[_0x184b2a('0x38')]('[%s][DIALOGFLOWV2]\x20%s',_0x243f20,_0x1bbee6[_0x184b2a('0x21')]),_0x1bbee6;}catch(_0x1198ca){logger[_0x184b2a('0x37')](_0x184b2a('0x2b'),_0x243f20,JSON[_0x184b2a('0x2e')](_0x1198ca));throw _0x1198ca;}}function consequence(_0x30d79a,_0x23d218){async function _0xb38a5d(_0x4d5711){const _0x3bcef0=a1205_0x3b76;try{if(!_[_0x3bcef0('0x2a')](this[_0x3bcef0('0x29')]['UserId']))return logger[_0x3bcef0('0x38')](_0x3bcef0('0x2b'),_0x30d79a,'Agent\x20is\x20managing\x20the\x20interaction.\x20Go\x20to\x20next\x20application.'),_0x4d5711['next']();let _0x36fc0d={'ContactId':this[_0x3bcef0('0x2d')]['id'],'sentAt':moment()['format'](_0x3bcef0('0x36')),'direction':_0x3bcef0('0x35')};(this[_0x3bcef0('0xe')]===_0x3bcef0('0x18')||this[_0x3bcef0('0xe')]===_0x3bcef0('0x24'))&&(_0x36fc0d[_0x3bcef0('0x6')]=this[_0x3bcef0('0x29')][_0x3bcef0('0x6')]);const _0x57d02f=this[_0x3bcef0('0xe')];_0x57d02f===_0x3bcef0('0x2c')?_0x36fc0d[_0x3bcef0('0x8')]=this[_0x3bcef0('0x12')]['id']:_0x36fc0d[_[_0x3bcef0('0x23')](_0x57d02f)+_0x3bcef0('0x10')]=this[_0x3bcef0('0x12')]['id'];_0x36fc0d[_[_0x3bcef0('0x23')](_0x57d02f)+'InteractionId']=this['interaction']['id'];if(this[_0x3bcef0('0x29')][_0x3bcef0('0x27')]){const _0x35e5d9=_0x23d218[0x4];if(!_[_0x3bcef0('0x28')](_0x35e5d9))try{_0x36fc0d[_0x3bcef0('0x21')]=utils[_0x3bcef0('0x20')](_0x35e5d9,this),_0x36fc0d=await rpc[_0x57d02f+_0x3bcef0('0x9')]['create'](_0x36fc0d),logger['info'](_0x3bcef0('0x2b'),_0x30d79a,_0x36fc0d[_0x3bcef0('0x21')]);}catch(_0x407acd){logger[_0x3bcef0('0x37')](_0x3bcef0('0x2b'),_0x30d79a,JSON[_0x3bcef0('0x2e')](_0x407acd));}finally{logger['info'](_0x3bcef0('0x22'),_0x30d79a),_0x4d5711[_0x3bcef0('0x34')]();}else logger[_0x3bcef0('0x38')](_0x3bcef0('0x2'),_0x30d79a),_0x4d5711[_0x3bcef0('0x34')]();}else{const _0x5c8deb=_0x23d218[0x2][_0x3bcef0('0x5')](/\\n/g,'\x0a'),_0x199de7={'credentials':{'private_key':_0x5c8deb,'client_email':_0x23d218[0x1]}},_0x2f5c23=new dialogflow[(_0x3bcef0('0x1'))](_0x199de7),_0x3f141a=_0x2f5c23[_0x3bcef0('0x30')](_0x23d218[0x0],md5(this[_0x3bcef0('0x29')]['id'])),_0x2d7a13={'session':_0x3f141a,'queryInput':{'text':{'text':this[_0x3bcef0('0x1b')][_0x3bcef0('0x21')],'languageCode':_0x23d218[0x3]||'en'}}};try{const _0x186342=await _0x2f5c23['detectIntent'](_0x2d7a13);if(_0x186342&&_0x186342['length']){this[_0x3bcef0('0x21')]['dialogflowV2']=_0x186342;const _0x1518d7=_0x186342[0x0],_0xfa5a29=_0x1518d7[_0x3bcef0('0xb')]['diagnosticInfo']&&_0x1518d7[_0x3bcef0('0xb')][_0x3bcef0('0xa')][_0x3bcef0('0x0')]?_0x1518d7['queryResult']['diagnosticInfo'][_0x3bcef0('0x0')]['end_conversation'][_0x3bcef0('0x13')]:![];this['body']={...this[_0x3bcef0('0x21')],'DIALOGFLOWV2_ACTION':_0x1518d7[_0x3bcef0('0xb')]['action'],'DIALOGFLOWV2_ALLREQUIREDPARAMSPRESENT':_0x1518d7[_0x3bcef0('0xb')][_0x3bcef0('0xc')],'DIALOGFLOWV2_ENDCONVERSATION':_0x1518d7[_0x3bcef0('0xb')]['diagnosticInfo']&&_0x1518d7['queryResult'][_0x3bcef0('0xa')][_0x3bcef0('0x0')]?_0x1518d7['queryResult'][_0x3bcef0('0xa')][_0x3bcef0('0x0')][_0x3bcef0('0x1f')]['boolValue']:![],'DIALOGFLOWV2_INTENTNAME':_0x1518d7[_0x3bcef0('0xb')][_0x3bcef0('0x1c')][_0x3bcef0('0x33')],'DIALOGFLOWV2_INTENTDISPLAYNAME':_0x1518d7[_0x3bcef0('0xb')]['intent'][_0x3bcef0('0x39')],'DIALOGFLOWV2_LANGUAGECODE':_0x1518d7[_0x3bcef0('0xb')]['languageCode'],'DIALOGFLOWV2_QUERYTEXT':_0x1518d7['queryResult'][_0x3bcef0('0x14')],'DIALOGFLOWV2_SCORE':_0x1518d7[_0x3bcef0('0xb')][_0x3bcef0('0x1d')]},_0x36fc0d[_0x3bcef0('0x3')]='dialogflowV2',_0x36fc0d[_0x3bcef0('0x4')]=JSON[_0x3bcef0('0x2e')](_0x186342);const _0x16f717=_0x186342[_0x3bcef0('0x26')](_0x84becb=>{const _0x40bade=_0x3bcef0,_0x2ab756=_0x84becb&&_0x84becb[_0x40bade('0xb')]&&_0x84becb[_0x40bade('0xb')]['fulfillmentText'];return _0x2ab756?createMessage(_0x30d79a,_0x57d02f,_0x36fc0d,_0x84becb['queryResult'][_0x40bade('0x1a')]):null;})['filter'](_0x94945f=>_0x94945f!==null);await Promise[_0x3bcef0('0x32')](_0x16f717),_0xfa5a29?_0x4d5711[_0x3bcef0('0x2f')]():_0x4d5711[_0x3bcef0('0x34')]();}}catch(_0x3a6c7d){logger[_0x3bcef0('0x37')](_0x3bcef0('0x2b'),_0x30d79a,_0x3a6c7d[_0x3bcef0('0x1b')]),_0x4d5711[_0x3bcef0('0x2f')]();}}}catch(_0x5113d4){logger[_0x3bcef0('0x37')]('[%s][DIALOGFLOWV2]\x20%s',_0x30d79a,JSON['stringify'](_0x5113d4)),_0x4d5711[_0x3bcef0('0x34')]();}}return _0xb38a5d;}module['exports']={'consequence':consequence}; \ No newline at end of file +const a1369_0x8271=['phone','clone','YYYY-MM-DD\x20HH:mm:ss','out','UserId','intentDetectionConfidence','error','SessionsClient','exports','message','info','lodash','end_conversation','account','[%s][DIALOGFLOWV2]\x20Welcome\x20Message\x20is\x20empty.\x20It\x20will\x20wait\x20for\x20a\x20message\x20from\x20customer!','fields','channel','intent','projectAgentSessionPath','create','../../rpc/whatsappMessage','consequence','queryResult','../../rpc/smsMessage','boolValue','displayName','created','allRequiredParamsPresent','../../rpc/openchannelMessage','[%s][DIALOGFLOWV2]\x20Welcome\x20Message\x20has\x20been\x20sent!','../../rpc/faxMessage','detectIntent','../../rpc/chatMessage','name','dialogflowV2','../../../../config/logger','stop','contact','ChatWebsiteId','AccountId','Message','stringify','diagnosticInfo','interaction','isNil','filter','getMustacheRender','languageCode','next','@google-cloud/dialogflow','md5','fulfillmentText','sms','upperFirst','body','./utils','InteractionId','replace','[%s][DIALOGFLOWV2]\x20%s','routing','length','providerResponse'];(function(_0x1901a6,_0x26aa7){const _0x827171=function(_0x337195){while(--_0x337195){_0x1901a6['push'](_0x1901a6['shift']());}};_0x827171(++_0x26aa7);}(a1369_0x8271,0x9b));const a1369_0x3371=function(_0x1901a6,_0x26aa7){_0x1901a6=_0x1901a6-0x138;let _0x827171=a1369_0x8271[_0x1901a6];return _0x827171;};const a1369_0x20d901=a1369_0x3371;'use strict';const _=require(a1369_0x20d901(0x162)),dialogflow=require(a1369_0x20d901(0x14a)),md5=require(a1369_0x20d901(0x14b)),moment=require('moment'),logger=require(a1369_0x20d901(0x13c))(a1369_0x20d901(0x154)),utils=require(a1369_0x20d901(0x150)),rpc={'chatMessage':require(a1369_0x20d901(0x139)),'openchannelMessage':require(a1369_0x20d901(0x173)),'mailMessage':require('../../rpc/mailMessage'),'smsMessage':require(a1369_0x20d901(0x16e)),'faxMessage':require(a1369_0x20d901(0x175)),'whatsappMessage':require(a1369_0x20d901(0x16b))};async function createMessage(_0x52a9b8,_0x4d11a6,_0xf808b2,_0x346c50){const _0x2385fe=a1369_0x20d901,_0x1c814d=_[_0x2385fe(0x158)](_0xf808b2);_0x1c814d[_0x2385fe(0x14f)]=_0x346c50;try{const _0x27b170=await rpc[_0x4d11a6+'Message'][_0x2385fe(0x16a)](_0x1c814d);return logger[_0x2385fe(0x161)](_0x2385fe(0x153),_0x52a9b8,_0x27b170['body']),_0x27b170;}catch(_0x67282e){logger[_0x2385fe(0x15d)](_0x2385fe(0x153),_0x52a9b8,JSON['stringify'](_0x67282e));throw _0x67282e;}}function consequence(_0x45e194,_0x5960bd){async function _0x260051(_0x9bd924){const _0x552207=a1369_0x3371;try{if(!_[_0x552207(0x145)](this[_0x552207(0x144)][_0x552207(0x15b)]))return logger['info']('[%s][DIALOGFLOWV2]\x20%s',_0x45e194,'Agent\x20is\x20managing\x20the\x20interaction.\x20Go\x20to\x20next\x20application.'),_0x9bd924[_0x552207(0x149)]();let _0xbb80e0={'ContactId':this[_0x552207(0x13e)]['id'],'sentAt':moment()['format'](_0x552207(0x159)),'direction':_0x552207(0x15a)};(this[_0x552207(0x167)]===_0x552207(0x14d)||this[_0x552207(0x167)]==='whatsapp')&&(_0xbb80e0[_0x552207(0x157)]=this[_0x552207(0x144)]['phone']);const _0x187e0c=this['channel'];_0x187e0c==='chat'?_0xbb80e0[_0x552207(0x13f)]=this[_0x552207(0x164)]['id']:_0xbb80e0[_[_0x552207(0x14e)](_0x187e0c)+_0x552207(0x140)]=this[_0x552207(0x164)]['id'];_0xbb80e0[_[_0x552207(0x14e)](_0x187e0c)+_0x552207(0x151)]=this['interaction']['id'];if(this[_0x552207(0x144)][_0x552207(0x171)]){const _0x47e359=_0x5960bd[0x4];if(!_['isEmpty'](_0x47e359))try{_0xbb80e0[_0x552207(0x14f)]=utils[_0x552207(0x147)](_0x47e359,this),_0xbb80e0=await rpc[_0x187e0c+_0x552207(0x141)][_0x552207(0x16a)](_0xbb80e0),logger[_0x552207(0x161)]('[%s][DIALOGFLOWV2]\x20%s',_0x45e194,_0xbb80e0[_0x552207(0x14f)]);}catch(_0x230a3d){logger[_0x552207(0x15d)](_0x552207(0x153),_0x45e194,JSON['stringify'](_0x230a3d));}finally{logger[_0x552207(0x161)](_0x552207(0x174),_0x45e194),_0x9bd924['stop']();}else logger['info'](_0x552207(0x165),_0x45e194),_0x9bd924[_0x552207(0x13d)]();}else{const _0x5957fe=_0x5960bd[0x2][_0x552207(0x152)](/\\n/g,'\x0a'),_0x3cbe36={'credentials':{'private_key':_0x5957fe,'client_email':_0x5960bd[0x1]}},_0x5ddb3e=new dialogflow[(_0x552207(0x15e))](_0x3cbe36),_0x5c0b10=_0x5ddb3e[_0x552207(0x169)](_0x5960bd[0x0],md5(this[_0x552207(0x144)]['id'])),_0x32ec70={'session':_0x5c0b10,'queryInput':{'text':{'text':this[_0x552207(0x160)][_0x552207(0x14f)],'languageCode':_0x5960bd[0x3]||'en'}}};try{const _0x213536=await _0x5ddb3e[_0x552207(0x138)](_0x32ec70);if(_0x213536&&_0x213536[_0x552207(0x155)]){this[_0x552207(0x14f)][_0x552207(0x13b)]=_0x213536;const _0x551c83=_0x213536[0x0],_0x420bb3=_0x551c83[_0x552207(0x16d)][_0x552207(0x143)]&&_0x551c83[_0x552207(0x16d)][_0x552207(0x143)][_0x552207(0x166)]?_0x551c83['queryResult'][_0x552207(0x143)][_0x552207(0x166)][_0x552207(0x163)][_0x552207(0x16f)]:![];this[_0x552207(0x14f)]={...this[_0x552207(0x14f)],'DIALOGFLOWV2_ACTION':_0x551c83[_0x552207(0x16d)]['action'],'DIALOGFLOWV2_ALLREQUIREDPARAMSPRESENT':_0x551c83[_0x552207(0x16d)][_0x552207(0x172)],'DIALOGFLOWV2_ENDCONVERSATION':_0x551c83[_0x552207(0x16d)][_0x552207(0x143)]&&_0x551c83[_0x552207(0x16d)]['diagnosticInfo'][_0x552207(0x166)]?_0x551c83['queryResult']['diagnosticInfo'][_0x552207(0x166)][_0x552207(0x163)][_0x552207(0x16f)]:![],'DIALOGFLOWV2_INTENTNAME':_0x551c83[_0x552207(0x16d)]['intent'][_0x552207(0x13a)],'DIALOGFLOWV2_INTENTDISPLAYNAME':_0x551c83['queryResult'][_0x552207(0x168)][_0x552207(0x170)],'DIALOGFLOWV2_LANGUAGECODE':_0x551c83[_0x552207(0x16d)][_0x552207(0x148)],'DIALOGFLOWV2_QUERYTEXT':_0x551c83[_0x552207(0x16d)]['queryText'],'DIALOGFLOWV2_SCORE':_0x551c83[_0x552207(0x16d)][_0x552207(0x15c)]},_0xbb80e0['providerName']=_0x552207(0x13b),_0xbb80e0[_0x552207(0x156)]=JSON[_0x552207(0x142)](_0x213536);const _0x22344f=_0x213536['map'](_0x4bcec3=>{const _0x9dd788=_0x552207,_0x1de868=_0x4bcec3&&_0x4bcec3[_0x9dd788(0x16d)]&&_0x4bcec3['queryResult']['fulfillmentText'];return _0x1de868?createMessage(_0x45e194,_0x187e0c,_0xbb80e0,_0x4bcec3[_0x9dd788(0x16d)][_0x9dd788(0x14c)]):null;})[_0x552207(0x146)](_0x5862de=>_0x5862de!==null);await Promise['all'](_0x22344f),_0x420bb3?_0x9bd924[_0x552207(0x149)]():_0x9bd924[_0x552207(0x13d)]();}}catch(_0x3fb249){logger[_0x552207(0x15d)](_0x552207(0x153),_0x45e194,_0x3fb249[_0x552207(0x160)]),_0x9bd924[_0x552207(0x149)]();}}}catch(_0x40bcfa){logger[_0x552207(0x15d)]('[%s][DIALOGFLOWV2]\x20%s',_0x45e194,JSON[_0x552207(0x142)](_0x40bcfa)),_0x9bd924[_0x552207(0x13d)]();}}return _0x260051;}module[a1369_0x20d901(0x15f)][a1369_0x20d901(0x16c)]=consequence; \ No newline at end of file diff --git a/server/services/routing/server/applications/gotoif.js b/server/services/routing/server/applications/gotoif.js index 06381c7..c069208 100644 --- a/server/services/routing/server/applications/gotoif.js +++ b/server/services/routing/server/applications/gotoif.js @@ -1 +1 @@ -const a1206_0x1285=['[%s][GOTOIF]\x20eval\x20error:\x20%s','[%s][GOTOIF]\x20priority\x20%s\x20found\x20at\x20index:\x20%s','stringify','join','condition','next','message','number','./utils','[%s][GOTOIF]\x20%s','../../../../config/logger','rules','info','consequence','error','condition\x20is\x20a\x20string\x20and\x20it\x20is\x20required','map','[%s][GOTOIF]\x20priority\x20%s\x20not\x20found','[%s][GOTOIF]\x20condition\x20%s\x20is\x20%s\x20try\x20goto\x20priority\x20%s','stop','priority\x20false\x20is\x20a\x20number','routing','priorityTrue'];(function(_0x45e87d,_0x12858a){const _0x6799ec=function(_0x173700){while(--_0x173700){_0x45e87d['push'](_0x45e87d['shift']());}};_0x6799ec(++_0x12858a);}(a1206_0x1285,0xcd));const a1206_0x6799=function(_0x45e87d,_0x12858a){_0x45e87d=_0x45e87d-0x0;let _0x6799ec=a1206_0x1285[_0x45e87d];return _0x6799ec;};const _0x3c42c6=a1206_0x6799;'use strict';const schema=require('validate'),_=require('lodash'),{htmlToText}=require('html-to-text'),utils=require(_0x3c42c6('0xa')),logger=require(_0x3c42c6('0xc'))(_0x3c42c6('0x0')),gotoif=schema({'condition':{'type':'string','required':!![],'message':_0x3c42c6('0x11')},'priorityTrue':{'type':'number','message':'priority\x20true\x20is\x20a\x20number'},'priorityFalse':{'type':_0x3c42c6('0x9'),'message':_0x3c42c6('0x16')}});exports[_0x3c42c6('0xf')]=function(_0x173700,_0x314a8b){return function(_0x1e033e){const _0x2ac012=a1206_0x6799;try{const _0x39ea4a={'condition':htmlToText(utils['getMustacheRender'](_0x314a8b[0x0],this),{'wordwrap':![]})['replace'](/<\/?[^>]+(>|$)/g,''),'priorityTrue':_0x314a8b[0x1],'priorityFalse':_0x314a8b[0x2]},_0x2e1a1b=gotoif['validate'](_0x39ea4a,{'typecast':!![]});if(_0x2e1a1b['length'])logger[_0x2ac012('0x10')](_0x2ac012('0xb'),_0x173700,_[_0x2ac012('0x12')](_0x2e1a1b,'message')[_0x2ac012('0x5')](',\x20')),_0x1e033e[_0x2ac012('0x15')]();else try{const _0x2d68a6=eval('('+_0x39ea4a[_0x2ac012('0x6')]+')'),_0x5ba42e=_0x2d68a6?_0x39ea4a[_0x2ac012('0x1')]:_0x39ea4a['priorityFalse'];logger['info'](_0x2ac012('0x14'),_0x173700,_0x39ea4a[_0x2ac012('0x6')],_0x2d68a6,_0x5ba42e||'next');if(_0x5ba42e){const _0x490a2e=_['findIndex'](_0x1e033e[_0x2ac012('0xd')](),{'p':_0x5ba42e});_0x490a2e>=0x0?(logger[_0x2ac012('0xe')](_0x2ac012('0x3'),_0x173700,_0x5ba42e||_0x2ac012('0x7'),_0x490a2e),_0x1e033e['next'](_0x490a2e)):(logger[_0x2ac012('0xe')](_0x2ac012('0x13'),_0x173700,_0x5ba42e||'next'),_0x1e033e[_0x2ac012('0x15')]());}else _0x1e033e['next']();}catch(_0x53b117){logger[_0x2ac012('0x10')](_0x2ac012('0x2'),_0x173700,_0x53b117[_0x2ac012('0x8')]),_0x1e033e[_0x2ac012('0x15')]();}}catch(_0xb1d026){logger[_0x2ac012('0x10')](_0x2ac012('0xb'),_0x173700,JSON[_0x2ac012('0x4')](_0xb1d026)),_0x1e033e[_0x2ac012('0x15')]();}};}; \ No newline at end of file +const a1370_0x2122=['[%s][GOTOIF]\x20priority\x20%s\x20not\x20found','length','message','priorityFalse','info','[%s][GOTOIF]\x20priority\x20%s\x20found\x20at\x20index:\x20%s','priorityTrue','number','html-to-text','join','string','lodash','replace','validate','stop','priority\x20false\x20is\x20a\x20number','./utils','[%s][GOTOIF]\x20eval\x20error:\x20%s','[%s][GOTOIF]\x20%s','getMustacheRender','routing','rules','../../../../config/logger','condition','error','condition\x20is\x20a\x20string\x20and\x20it\x20is\x20required','priority\x20true\x20is\x20a\x20number','next'];(function(_0x1a9873,_0x35d227){const _0x2122e2=function(_0x57d29c){while(--_0x57d29c){_0x1a9873['push'](_0x1a9873['shift']());}};_0x2122e2(++_0x35d227);}(a1370_0x2122,0xd0));const a1370_0x57d2=function(_0x1a9873,_0x35d227){_0x1a9873=_0x1a9873-0xe9;let _0x2122e2=a1370_0x2122[_0x1a9873];return _0x2122e2;};const a1370_0x5ee21e=a1370_0x57d2;'use strict';const schema=require(a1370_0x5ee21e(0xea)),_=require(a1370_0x5ee21e(0x104)),{htmlToText}=require(a1370_0x5ee21e(0x101)),utils=require(a1370_0x5ee21e(0xed)),logger=require(a1370_0x5ee21e(0xf3))(a1370_0x5ee21e(0xf1)),gotoif=schema({'condition':{'type':a1370_0x5ee21e(0x103),'required':!![],'message':a1370_0x5ee21e(0xf6)},'priorityTrue':{'type':a1370_0x5ee21e(0x100),'message':a1370_0x5ee21e(0xf7)},'priorityFalse':{'type':'number','message':a1370_0x5ee21e(0xec)}});exports['consequence']=function(_0x45a326,_0x55bfa0){return function(_0x14a507){const _0x34a40e=a1370_0x57d2;try{const _0x2a00dc={'condition':htmlToText(utils[_0x34a40e(0xf0)](_0x55bfa0[0x0],this),{'wordwrap':![]})[_0x34a40e(0xe9)](/<\/?[^>]+(>|$)/g,''),'priorityTrue':_0x55bfa0[0x1],'priorityFalse':_0x55bfa0[0x2]},_0x17064f=gotoif[_0x34a40e(0xea)](_0x2a00dc,{'typecast':!![]});if(_0x17064f[_0x34a40e(0xfa)])logger['error'](_0x34a40e(0xef),_0x45a326,_['map'](_0x17064f,'message')[_0x34a40e(0x102)](',\x20')),_0x14a507[_0x34a40e(0xeb)]();else try{const _0x244409=eval('('+_0x2a00dc['condition']+')'),_0x5c8297=_0x244409?_0x2a00dc[_0x34a40e(0xff)]:_0x2a00dc[_0x34a40e(0xfc)];logger[_0x34a40e(0xfd)]('[%s][GOTOIF]\x20condition\x20%s\x20is\x20%s\x20try\x20goto\x20priority\x20%s',_0x45a326,_0x2a00dc[_0x34a40e(0xf4)],_0x244409,_0x5c8297||'next');if(_0x5c8297){const _0x2aba6b=_['findIndex'](_0x14a507[_0x34a40e(0xf2)](),{'p':_0x5c8297});_0x2aba6b>=0x0?(logger['info'](_0x34a40e(0xfe),_0x45a326,_0x5c8297||_0x34a40e(0xf8),_0x2aba6b),_0x14a507['next'](_0x2aba6b)):(logger[_0x34a40e(0xfd)](_0x34a40e(0xf9),_0x45a326,_0x5c8297||_0x34a40e(0xf8)),_0x14a507[_0x34a40e(0xeb)]());}else _0x14a507[_0x34a40e(0xf8)]();}catch(_0x24b34e){logger[_0x34a40e(0xf5)](_0x34a40e(0xee),_0x45a326,_0x24b34e[_0x34a40e(0xfb)]),_0x14a507[_0x34a40e(0xeb)]();}}catch(_0x1711e7){logger[_0x34a40e(0xf5)](_0x34a40e(0xef),_0x45a326,JSON['stringify'](_0x1711e7)),_0x14a507[_0x34a40e(0xeb)]();}};}; \ 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 421eaf9..313265d 100644 --- a/server/services/routing/server/applications/gotop.js +++ b/server/services/routing/server/applications/gotop.js @@ -1 +1 @@ -const a1207_0x5882=['info','[%s][GOTOP]\x20%s','routing','../../../../config/logger','validate','message','[%s][GOTOP]\x20priority\x20%s','number','priority','error','length','join','[%s][GOTOP]\x20priority\x20%s\x20found\x20at\x20index:\x20%s','consequence','stop','findIndex','priority\x20is\x20a\x20number\x20and\x20it\x20is\x20required','[%s][GOTOP]\x20priority\x20%s\x20not\x20found','map','stringify','next'];(function(_0x328a89,_0x588275){const _0x44d0d1=function(_0x4324a0){while(--_0x4324a0){_0x328a89['push'](_0x328a89['shift']());}};_0x44d0d1(++_0x588275);}(a1207_0x5882,0x156));const a1207_0x44d0=function(_0x328a89,_0x588275){_0x328a89=_0x328a89-0x0;let _0x44d0d1=a1207_0x5882[_0x328a89];return _0x44d0d1;};const _0x4d905f=a1207_0x44d0;'use strict';const schema=require(_0x4d905f('0x13')),_=require('lodash'),logger=require(_0x4d905f('0x12'))(_0x4d905f('0x11')),gotop=schema({'priority':{'type':_0x4d905f('0x1'),'required':!![],'message':_0x4d905f('0xa')}});exports[_0x4d905f('0x7')]=function(_0x4324a0,_0xcd0c1a){return function(_0x35f453){const _0x155e02=a1207_0x44d0;try{const _0x4aa8c8={'priority':_0xcd0c1a[0x0]},_0x5615fc=gotop[_0x155e02('0x13')](_0x4aa8c8,{'typecast':!![]});if(_0x5615fc[_0x155e02('0x4')])logger[_0x155e02('0x3')]('[%s][GOTOP]\x20%s',_0x4324a0,_[_0x155e02('0xc')](_0x5615fc,_0x155e02('0x14'))[_0x155e02('0x5')](',\x20')),_0x35f453[_0x155e02('0x8')]();else{logger['info'](_0x155e02('0x0'),_0x4324a0,_0x4aa8c8[_0x155e02('0x2')]);if(_0x4aa8c8[_0x155e02('0x2')]){const _0x471e42=_[_0x155e02('0x9')](_0x35f453['rules'](),{'p':_0x4aa8c8[_0x155e02('0x2')]});_0x471e42>=0x0?(logger[_0x155e02('0xf')](_0x155e02('0x6'),_0x4324a0,_0x4aa8c8[_0x155e02('0x2')]||'next',_0x471e42),_0x35f453[_0x155e02('0xe')](_0x471e42)):(logger['info'](_0x155e02('0xb'),_0x4324a0,_0x4aa8c8[_0x155e02('0x2')]||'next'),_0x35f453['stop']());}else _0x35f453[_0x155e02('0xe')]();}}catch(_0x9a760a){logger[_0x155e02('0x3')](_0x155e02('0x10'),_0x4324a0,JSON[_0x155e02('0xd')](_0x9a760a)),_0x35f453['stop']();}};}; \ No newline at end of file +const a1371_0x29e7=['rules','[%s][GOTOP]\x20priority\x20%s','stop','[%s][GOTOP]\x20%s','message','validate','../../../../config/logger','error','length','next','info','stringify','priority','consequence','lodash','priority\x20is\x20a\x20number\x20and\x20it\x20is\x20required','map','routing'];(function(_0x3ba555,_0x511bcb){const _0x29e7dc=function(_0x367d46){while(--_0x367d46){_0x3ba555['push'](_0x3ba555['shift']());}};_0x29e7dc(++_0x511bcb);}(a1371_0x29e7,0x1a1));const a1371_0x367d=function(_0x3ba555,_0x511bcb){_0x3ba555=_0x3ba555-0x9f;let _0x29e7dc=a1371_0x29e7[_0x3ba555];return _0x29e7dc;};const a1371_0xd4f066=a1371_0x367d;'use strict';const schema=require(a1371_0xd4f066(0xa1)),_=require(a1371_0xd4f066(0xaa)),logger=require(a1371_0xd4f066(0xa2))(a1371_0xd4f066(0xad)),gotop=schema({'priority':{'type':'number','required':!![],'message':a1371_0xd4f066(0xab)}});exports[a1371_0xd4f066(0xa9)]=function(_0x327fbb,_0x509ee8){return function(_0x2b338e){const _0x25d41f=a1371_0x367d;try{const _0x258708={'priority':_0x509ee8[0x0]},_0x19a182=gotop['validate'](_0x258708,{'typecast':!![]});if(_0x19a182[_0x25d41f(0xa4)])logger[_0x25d41f(0xa3)](_0x25d41f(0x9f),_0x327fbb,_[_0x25d41f(0xac)](_0x19a182,_0x25d41f(0xa0))['join'](',\x20')),_0x2b338e[_0x25d41f(0xb0)]();else{logger[_0x25d41f(0xa6)](_0x25d41f(0xaf),_0x327fbb,_0x258708[_0x25d41f(0xa8)]);if(_0x258708[_0x25d41f(0xa8)]){const _0x5d4382=_['findIndex'](_0x2b338e[_0x25d41f(0xae)](),{'p':_0x258708['priority']});_0x5d4382>=0x0?(logger[_0x25d41f(0xa6)]('[%s][GOTOP]\x20priority\x20%s\x20found\x20at\x20index:\x20%s',_0x327fbb,_0x258708['priority']||_0x25d41f(0xa5),_0x5d4382),_0x2b338e['next'](_0x5d4382)):(logger[_0x25d41f(0xa6)]('[%s][GOTOP]\x20priority\x20%s\x20not\x20found',_0x327fbb,_0x258708['priority']||_0x25d41f(0xa5)),_0x2b338e['stop']());}else _0x2b338e[_0x25d41f(0xa5)]();}}catch(_0x11af1e){logger[_0x25d41f(0xa3)](_0x25d41f(0x9f),_0x327fbb,JSON[_0x25d41f(0xa7)](_0x11af1e)),_0x2b338e['stop']();}};}; \ 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 7254204..674fa6b 100644 --- a/server/services/routing/server/applications/message.js +++ b/server/services/routing/server/applications/message.js @@ -1 +1 @@ -const a1208_0x5ddb=['interaction','then','stop','upperFirst','contact','body','create','info','../../rpc/chatMessage','../../rpc/smsMessage','error','consequence','ChatWebsiteId','./utils','chat','stringify','routing','channel','../../rpc/mailMessage','../../rpc/openchannelMessage','[%s][MESSAGE]\x20%s','catch','next','account','../../rpc/whatsappMessage','Message','AccountId'];(function(_0x2895ec,_0x5ddbe4){const _0x5de0fc=function(_0x315867){while(--_0x315867){_0x2895ec['push'](_0x2895ec['shift']());}};_0x5de0fc(++_0x5ddbe4);}(a1208_0x5ddb,0xb1));const a1208_0x5de0=function(_0x2895ec,_0x5ddbe4){_0x2895ec=_0x2895ec-0x0;let _0x5de0fc=a1208_0x5ddb[_0x2895ec];return _0x5de0fc;};const _0x13f624=a1208_0x5de0;'use strict';const _=require('lodash'),utils=require(_0x13f624('0x19')),logger=require('../../../../config/logger')(_0x13f624('0x1')),rpc={'chatMessage':require(_0x13f624('0x14')),'openchannelMessage':require(_0x13f624('0x4')),'mailMessage':require(_0x13f624('0x3')),'smsMessage':require(_0x13f624('0x15')),'faxMessage':require('../../rpc/faxMessage'),'whatsappMessage':require(_0x13f624('0x9'))};exports[_0x13f624('0x17')]=function(_0x315867,_0x1d56a9){return function(_0x40dfe2){const _0x2be70b=a1208_0x5de0;try{const _0x1ae71c={'body':utils['getMustacheRender'](_0x1d56a9[0x0],this),'ContactId':this[_0x2be70b('0x10')]['id']};this['channel']===_0x2be70b('0x1a')?_0x1ae71c[_0x2be70b('0x18')]=this[_0x2be70b('0x8')]['id']:_0x1ae71c[_[_0x2be70b('0xf')](this[_0x2be70b('0x2')])+_0x2be70b('0xb')]=this[_0x2be70b('0x8')]['id'];_0x1ae71c[_[_0x2be70b('0xf')](this['channel'])+'InteractionId']=this[_0x2be70b('0xc')]['id'];if(rpc[this['channel']+'Message'])return rpc[this['channel']+_0x2be70b('0xa')][_0x2be70b('0x12')](_0x1ae71c)[_0x2be70b('0xd')](function(){const _0x4cfb2c=_0x2be70b;logger[_0x4cfb2c('0x13')](_0x4cfb2c('0x5'),_0x315867,_0x1ae71c[_0x4cfb2c('0x11')]),_0x40dfe2[_0x4cfb2c('0x7')]();})[_0x2be70b('0x6')](function(_0x4e3951){const _0x358b74=_0x2be70b;logger[_0x358b74('0x16')]('[%s][MESSAGE]\x20%s',_0x315867,JSON[_0x358b74('0x0')](_0x4e3951)),_0x40dfe2[_0x358b74('0xe')]();});}catch(_0x3a42d8){logger[_0x2be70b('0x16')](_0x2be70b('0x5'),_0x315867,JSON[_0x2be70b('0x0')](_0x3a42d8)),_0x40dfe2[_0x2be70b('0xe')]();}};}; \ No newline at end of file +const a1372_0x26b1=['stringify','interaction','AccountId','../../rpc/openchannelMessage','error','../../rpc/smsMessage','upperFirst','chat','catch','../../rpc/faxMessage','then','../../../../config/logger','contact','Message','account','InteractionId','channel','./utils','body','[%s][MESSAGE]\x20%s','stop','../../rpc/mailMessage','getMustacheRender','info'];(function(_0x1fe2a2,_0xd952f8){const _0x26b1ec=function(_0xb14cf7){while(--_0xb14cf7){_0x1fe2a2['push'](_0x1fe2a2['shift']());}};_0x26b1ec(++_0xd952f8);}(a1372_0x26b1,0x73));const a1372_0xb14c=function(_0x1fe2a2,_0xd952f8){_0x1fe2a2=_0x1fe2a2-0xb6;let _0x26b1ec=a1372_0x26b1[_0x1fe2a2];return _0x26b1ec;};const a1372_0x353cd7=a1372_0xb14c;'use strict';const _=require('lodash'),utils=require(a1372_0x353cd7(0xcc)),logger=require(a1372_0x353cd7(0xc6))('routing'),rpc={'chatMessage':require('../../rpc/chatMessage'),'openchannelMessage':require(a1372_0x353cd7(0xbe)),'mailMessage':require(a1372_0x353cd7(0xb8)),'smsMessage':require(a1372_0x353cd7(0xc0)),'faxMessage':require(a1372_0x353cd7(0xc4)),'whatsappMessage':require('../../rpc/whatsappMessage')};exports['consequence']=function(_0x4c2420,_0xb3393){return function(_0x1b3dc0){const _0x5b08f6=a1372_0xb14c;try{const _0xaa46dc={'body':utils[_0x5b08f6(0xb9)](_0xb3393[0x0],this),'ContactId':this[_0x5b08f6(0xc7)]['id']};this[_0x5b08f6(0xcb)]===_0x5b08f6(0xc2)?_0xaa46dc['ChatWebsiteId']=this[_0x5b08f6(0xc9)]['id']:_0xaa46dc[_[_0x5b08f6(0xc1)](this[_0x5b08f6(0xcb)])+_0x5b08f6(0xbd)]=this[_0x5b08f6(0xc9)]['id'];_0xaa46dc[_[_0x5b08f6(0xc1)](this['channel'])+_0x5b08f6(0xca)]=this[_0x5b08f6(0xbc)]['id'];if(rpc[this[_0x5b08f6(0xcb)]+_0x5b08f6(0xc8)])return rpc[this[_0x5b08f6(0xcb)]+_0x5b08f6(0xc8)]['create'](_0xaa46dc)[_0x5b08f6(0xc5)](function(){const _0x100b2e=_0x5b08f6;logger[_0x100b2e(0xba)](_0x100b2e(0xb6),_0x4c2420,_0xaa46dc[_0x100b2e(0xcd)]),_0x1b3dc0['next']();})[_0x5b08f6(0xc3)](function(_0x4ee71e){const _0x37c0b1=_0x5b08f6;logger[_0x37c0b1(0xbf)](_0x37c0b1(0xb6),_0x4c2420,JSON[_0x37c0b1(0xbb)](_0x4ee71e)),_0x1b3dc0[_0x37c0b1(0xb7)]();});}catch(_0x5805b7){logger[_0x5b08f6(0xbf)](_0x5b08f6(0xb6),_0x4c2420,JSON[_0x5b08f6(0xbb)](_0x5805b7)),_0x1b3dc0['stop']();}};}; \ 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 2739ade..4ef9d59 100644 --- a/server/services/routing/server/applications/noop.js +++ b/server/services/routing/server/applications/noop.js @@ -1 +1 @@ -const a1209_0x15ab=['stringify','./utils','getMustacheRender','routing','[%s][NOOP]\x20%s','consequence','stop'];(function(_0x35f8ca,_0x15ab0b){const _0x1d3482=function(_0x1ca83c){while(--_0x1ca83c){_0x35f8ca['push'](_0x35f8ca['shift']());}};_0x1d3482(++_0x15ab0b);}(a1209_0x15ab,0x1c9));const a1209_0x1d34=function(_0x35f8ca,_0x15ab0b){_0x35f8ca=_0x35f8ca-0x0;let _0x1d3482=a1209_0x15ab[_0x35f8ca];return _0x1d3482;};const _0x1bbc69=a1209_0x1d34;'use strict';const utils=require(_0x1bbc69('0x6')),logger=require('../../../../config/logger')(_0x1bbc69('0x1'));exports[_0x1bbc69('0x3')]=function(_0x1ca83c,_0x44f850){return function(_0x47b347){const _0x19ad6f=a1209_0x1d34;try{logger['info'](_0x19ad6f('0x2'),_0x1ca83c,utils[_0x19ad6f('0x0')](_0x44f850[0x0],this)),_0x47b347['next']();}catch(_0x333b66){logger['error'](_0x19ad6f('0x2'),_0x1ca83c,JSON[_0x19ad6f('0x5')](_0x333b66)),_0x47b347[_0x19ad6f('0x4')]();}};}; \ No newline at end of file +const a1373_0x9908=['../../../../config/logger','[%s][NOOP]\x20%s','info','getMustacheRender','stop','routing','stringify','next','error'];(function(_0x286013,_0x2ff33e){const _0x990874=function(_0x1e395b){while(--_0x1e395b){_0x286013['push'](_0x286013['shift']());}};_0x990874(++_0x2ff33e);}(a1373_0x9908,0x79));const a1373_0x1e39=function(_0x286013,_0x2ff33e){_0x286013=_0x286013-0x1f4;let _0x990874=a1373_0x9908[_0x286013];return _0x990874;};const a1373_0x2c5d22=a1373_0x1e39;'use strict';const utils=require('./utils'),logger=require(a1373_0x2c5d22(0x1f9))(a1373_0x2c5d22(0x1f5));exports['consequence']=function(_0x5dd758,_0x409aee){return function(_0x3c680b){const _0x15b342=a1373_0x1e39;try{logger[_0x15b342(0x1fb)](_0x15b342(0x1fa),_0x5dd758,utils[_0x15b342(0x1fc)](_0x409aee[0x0],this)),_0x3c680b[_0x15b342(0x1f7)]();}catch(_0x1282c6){logger[_0x15b342(0x1f8)]('[%s][NOOP]\x20%s',_0x5dd758,JSON[_0x15b342(0x1f6)](_0x1282c6)),_0x3c680b[_0x15b342(0x1f4)]();}};}; \ 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 72da3d6..98e58f7 100644 --- a/server/services/routing/server/applications/queue.js +++ b/server/services/routing/server/applications/queue.js @@ -1 +1 @@ -const a1210_0x490d=['contact','QueueId','../../rpc/chatQueueReport','YYYY-MM-DD\x20HH:mm:ss','[%s][END:QUEUE][NAME:%s]','length','strategy','chat','[%s][START:QUEUE][NAME:%s]','qtimeout','accepted','util','rules','info','[%s][QUEUE]\x20%s','%s_queue_waiting_interaction:%s','stop','remove','number','atimeout','QueueReport','create','join','complete','toLowerCase','../../rpc/faxQueueReport','error','WebsiteId','routing','from','InteractionId','next','lodash','moment','update\x20queue\x20report','../../../../config/logger','../../rpc/openchannelQueueReport','%sQueuesWaitingInteractions','find','../../rpc/smsQueueReport','create\x20queue\x20report','[%s][QUEUE]\x20ROUTING\x20STOPPED','../../../../rediscache','stack','interaction','end','waiting','name','close','%s:queue:%s','joinAt','queue','queue_id','[%s][STOP:QUEUE][NAME:%s]','MessageId','validate','upperFirst','channel','catch','timeout','message','log','save','body','consequence','../../rpc/whatsappQueueReport','string','format','list','update','account','pick','createQueue'];(function(_0x593193,_0x490d6a){const _0x47dbb3=function(_0x37cac3){while(--_0x37cac3){_0x593193['push'](_0x593193['shift']());}};_0x47dbb3(++_0x490d6a);}(a1210_0x490d,0xf5));const a1210_0x47db=function(_0x593193,_0x490d6a){_0x593193=_0x593193-0x0;let _0x47dbb3=a1210_0x490d[_0x593193];return _0x47dbb3;};const _0x2dfb55=a1210_0x47db;'use strict';const schema=require('validate'),_=require(_0x2dfb55('0x6')),util=require(_0x2dfb55('0x3a')),seqqueue=require('seq-queue'),moment=require(_0x2dfb55('0x7')),logger=require(_0x2dfb55('0x9'))(_0x2dfb55('0x2')),strategy=require('./strategy'),{getSocket}=require(_0x2dfb55('0x10')),io=getSocket(),attributes=['id',_0x2dfb55('0x1a'),_0x2dfb55('0x2c'),_0x2dfb55('0x19'),_0x2dfb55('0x3'),_0x2dfb55('0x18')];function emit(_0x37cac3,_0xe1efc3,_0x119f47){io['to'](_0x37cac3)['emit'](_0xe1efc3,_0x119f47);}function emitChannelQueueInteraction(_0x203d83,_0xec0e0c,_0x2f9145,_0x445f6e,_0x46a00d,_0x195683,_0x1cb60b,_0x50e60c){const _0x2ac806=_0x2dfb55,_0x469284=_['clone'](_0x2f9145);_0x469284['queue_id']=_0x50e60c,_0x469284[_0x2ac806('0x19')]=_0xec0e0c,_0x469284['account']=_0x445f6e,_0x469284['id']=_0x46a00d,_0x195683?_0x1cb60b[util['format'](_0x2ac806('0xb'),_0x203d83)][_0x46a00d]=_[_0x2ac806('0x2d')](_0x469284,attributes):delete _0x1cb60b[util[_0x2ac806('0x29')](_0x2ac806('0xb'),_0x203d83)][_0x46a00d],emit(util[_0x2ac806('0x29')](_0x2ac806('0x17'),_0x203d83,_0xec0e0c),util[_0x2ac806('0x29')](_0x2ac806('0x3e'),_0x203d83,_0x195683?_0x2ac806('0x24'):_0x2ac806('0x40')),_['pick'](_0x469284,attributes));}const rpc={'openchannelQueueReport':require(_0x2dfb55('0xa')),'mailQueueReport':require('../../rpc/mailQueueReport'),'chatQueueReport':require(_0x2dfb55('0x31')),'smsQueueReport':require(_0x2dfb55('0xd')),'faxQueueReport':require(_0x2dfb55('0x48')),'whatsappQueueReport':require(_0x2dfb55('0x27'))},queue=schema({'name':{'type':_0x2dfb55('0x28'),'required':!![],'message':'name\x20is\x20a\x20string\x20and\x20it\x20is\x20required'},'timeout':{'type':_0x2dfb55('0x41'),'message':'timeout\x20is\x20a\x20number'}});function startRouting(_0x59dbe6,_0x11e0cb,_0x3a41a3,_0x23edb0){const _0x23cb5c=_0x2dfb55;if(_0x59dbe6&&_0x11e0cb&&_0x3a41a3){_0x11e0cb[_0x23cb5c('0x14')]+=0x1;const _0x27beff={'uniqueid':_0x59dbe6,'from':_0x3a41a3[_0x23cb5c('0x25')]?_0x3a41a3['body'][_0x23cb5c('0x3')]:'','joinAt':moment()[_0x23cb5c('0x29')](_0x23cb5c('0x32')),'ContactId':_0x3a41a3[_0x23cb5c('0x2f')]?_0x3a41a3[_0x23cb5c('0x2f')]['id']:null,'ListId':_0x3a41a3[_0x23cb5c('0x2a')]?_0x3a41a3[_0x23cb5c('0x2a')]['id']:null};_0x27beff[_[_0x23cb5c('0x1e')](_0x3a41a3['channel'])+_0x23cb5c('0x30')]=_0x11e0cb['id']||null,_0x27beff[_[_0x23cb5c('0x1e')](_0x3a41a3[_0x23cb5c('0x1f')])+_0x23cb5c('0x4')]=_0x3a41a3[_0x23cb5c('0x12')]?_0x3a41a3['interaction']['id']:null,_0x27beff[_[_0x23cb5c('0x1e')](_0x3a41a3[_0x23cb5c('0x1f')])+_0x23cb5c('0x1c')]=_0x3a41a3[_0x23cb5c('0x22')]?_0x3a41a3['message']['id']:null,_0x27beff[_[_0x23cb5c('0x1e')](_0x3a41a3[_0x23cb5c('0x1f')])+(_0x3a41a3['channel']!==_0x23cb5c('0x36')?'AccountId':_0x23cb5c('0x1'))]=_0x3a41a3[_0x23cb5c('0x2c')]?_0x3a41a3[_0x23cb5c('0x2c')]['id']:null,logger[_0x23cb5c('0x3c')](util['format'](_0x23cb5c('0x37'),_0x59dbe6,_0x11e0cb[_0x23cb5c('0x15')])),emitChannelQueueInteraction(_0x3a41a3[_0x23cb5c('0x1f')],_0x11e0cb['name'],_0x27beff,_0x3a41a3['account'][_0x23cb5c('0x15')],_0x3a41a3['message']['id'],!![],_0x23edb0,_0x11e0cb['id']);if(rpc[_0x3a41a3['channel']+'QueueReport'])return rpc[_0x3a41a3[_0x23cb5c('0x1f')]+_0x23cb5c('0x43')][_0x23cb5c('0x44')](_0x27beff)[_0x23cb5c('0x20')](function(){const _0x348a7f=_0x23cb5c;logger[_0x348a7f('0x0')](_0x348a7f('0xe'));});}}function stopRouting(_0x33df32,_0x111209,_0x3cf5b9,_0x2a384d){const _0x339943=_0x2dfb55;if(_0x33df32&&_0x111209){_0x111209[_0x339943('0x14')]-=0x1;const _0x5e930d={'leaveAt':moment()[_0x339943('0x29')](_0x339943('0x32')),'acceptAt':moment()[_0x339943('0x29')](_0x339943('0x32')),'reason':_0x339943('0x39')};logger[_0x339943('0x3c')](util[_0x339943('0x29')](_0x339943('0x1b'),_0x33df32,_0x111209['name'])),emitChannelQueueInteraction(_0x3cf5b9[_0x339943('0x1f')],_0x111209[_0x339943('0x15')],_0x3cf5b9[_0x339943('0x25')],_0x3cf5b9[_0x339943('0x2c')]['name'],_0x3cf5b9[_0x339943('0x22')]['id'],![],_0x2a384d,_0x111209['id']);if(rpc[_0x3cf5b9[_0x339943('0x1f')]+_0x339943('0x43')])return rpc[_0x3cf5b9[_0x339943('0x1f')]+_0x339943('0x43')]['update'](_0x33df32,_0x5e930d)[_0x339943('0x20')](function(){const _0x1b183f=_0x339943;logger['error'](_0x1b183f('0x8'));});}}function endRouting(_0x872f9d,_0x2d09eb,_0x397759,_0x22ec44){const _0x3a2df2=_0x2dfb55;if(_0x872f9d&&_0x2d09eb){_0x2d09eb['waiting']-=0x1;const _0x51291b={'leaveAt':moment()[_0x3a2df2('0x29')]('YYYY-MM-DD\x20HH:mm:ss'),'exitAt':moment()[_0x3a2df2('0x29')](_0x3a2df2('0x32')),'reason':_0x3a2df2('0x21')};logger[_0x3a2df2('0x3c')](util[_0x3a2df2('0x29')](_0x3a2df2('0x33'),_0x872f9d,_0x2d09eb[_0x3a2df2('0x15')])),emitChannelQueueInteraction(_0x397759[_0x3a2df2('0x1f')],_0x2d09eb[_0x3a2df2('0x15')],_0x397759[_0x3a2df2('0x25')],_0x397759[_0x3a2df2('0x2c')][_0x3a2df2('0x15')],_0x397759[_0x3a2df2('0x22')]['id'],![],_0x22ec44);if(rpc[_0x397759[_0x3a2df2('0x1f')]+'QueueReport'])return rpc[_0x397759[_0x3a2df2('0x1f')]+_0x3a2df2('0x43')][_0x3a2df2('0x2b')](_0x872f9d,_0x51291b)[_0x3a2df2('0x20')](function(){const _0x217e7e=_0x3a2df2;logger[_0x217e7e('0x0')](_0x217e7e('0x8'));});}}function handleFindQueue(_0x38fd6d){return function(_0x3d4553){const _0x241aa1=a1210_0x47db;return _0x3d4553['name'][_0x241aa1('0x47')]()===_0x38fd6d[_0x241aa1('0x47')]();};}exports[_0x2dfb55('0x26')]=function(_0x176a3c,_0x2fa65a,_0x1c4cad,_0x29063e){return function(_0x8ffe3e){const _0x5d256d=a1210_0x47db;try{const _0x4fd0bd={'name':_0x2fa65a[0x0],'timeout':_0x2fa65a[0x1]},_0x2b8c13=queue[_0x5d256d('0x1d')](_0x4fd0bd,{'typecast':!![]});if(_0x2b8c13[_0x5d256d('0x34')])logger['error'](_0x5d256d('0x3d'),_0x176a3c,_['map'](_0x2b8c13,'message')[_0x5d256d('0x45')](',\x20')),_0x8ffe3e[_0x5d256d('0x3f')]();else{const _0x48e334=_[_0x5d256d('0xc')](_0x1c4cad[_0x29063e['channel']+'Queues'],handleFindQueue(_0x4fd0bd[_0x5d256d('0x15')]));if(_0x48e334){startRouting(_0x176a3c,_0x48e334,_0x29063e,_0x1c4cad);const _0x51c007=(_0x48e334[_0x5d256d('0x21')]||0xa)*0x3e8;let _0x212831=(_0x4fd0bd[_0x5d256d('0x21')]||0x14)*0x3e8,_0x5a289e;_0x51c007>_0x212831&&(_0x212831=_0x51c007);const _0x4a018b=seqqueue[_0x5d256d('0x2e')](_0x51c007);_0x4a018b['id']=_0x176a3c,_0x4a018b[_0x5d256d('0x42')]=_0x51c007,_0x4a018b[_0x5d256d('0x38')]=_0x212831,_0x4a018b[_0x5d256d('0x1f')]=_0x29063e[_0x5d256d('0x1f')],_0x1c4cad[_0x5d256d('0x3b')][_0x176a3c]['on'](_0x5d256d('0x13'),function(){const _0x3a39d1=_0x5d256d;logger[_0x3a39d1('0x3c')](_0x3a39d1('0xf'),_0x176a3c),stopRouting(_0x176a3c,_0x48e334,_0x29063e,_0x1c4cad),clearTimeout(_0x5a289e),_0x5a289e=undefined,_0x4a018b['close'](!![]),_0x1c4cad[_0x3a39d1('0x3b')][_0x176a3c]&&delete _0x1c4cad[_0x3a39d1('0x3b')][_0x176a3c],_0x8ffe3e[_0x3a39d1('0x3f')]();}),_0x1c4cad[_0x5d256d('0x3b')][_0x176a3c]['on'](_0x5d256d('0x46'),function(){const _0x5ca617=_0x5d256d;_0x1c4cad[_0x5ca617('0x3b')][_0x176a3c]&&delete _0x1c4cad['rules'][_0x176a3c];}),_0x5a289e=setTimeout(function(){const _0x5ac871=_0x5d256d;logger['info']('[%s][QUEUE]\x20APPLICATION\x20END',_0x176a3c),endRouting(_0x176a3c,_0x48e334,_0x29063e,_0x1c4cad),clearTimeout(_0x5a289e),_0x4a018b[_0x5ac871('0x16')](!![]),_0x8ffe3e[_0x5ac871('0x5')]();},_0x212831);switch(_0x48e334[_0x5d256d('0x35')]){case'rrmemory':strategy['rrmemory'](_0x4a018b,_0x48e334,_0x1c4cad,_0x29063e);break;default:strategy['beepall'](_0x4a018b,_0x48e334,_0x1c4cad,_0x29063e);}}else logger[_0x5d256d('0x0')]('[%s][QUEUE]\x20queue\x20not\x20found\x20%s',_0x176a3c,_0x4fd0bd[_0x5d256d('0x15')]),_0x8ffe3e[_0x5d256d('0x3f')]();}}catch(_0x4eb73b){console[_0x5d256d('0x23')](_0x4eb73b),logger[_0x5d256d('0x0')](_0x5d256d('0x3d'),_0x176a3c,_0x4eb73b[_0x5d256d('0x11')]),_0x8ffe3e[_0x5d256d('0x3f')]();}};}; \ No newline at end of file +const a1374_0x27c4=['catch','queue','MessageId','queue_id','validate','upperFirst','strategy','[%s][END:QUEUE][NAME:%s]','../../../../config/logger','clone','contact','../../rpc/openchannelQueueReport','rules','close','length','timeout\x20is\x20a\x20number','createQueue','log','%sQueuesWaitingInteractions','toLowerCase','[%s][QUEUE]\x20queue\x20not\x20found\x20%s','next','stop','interaction','WebsiteId','name','util','moment','list','../../rpc/mailQueueReport','end','chat','accepted','rrmemory','qtimeout','[%s][QUEUE]\x20APPLICATION\x20END','name\x20is\x20a\x20string\x20and\x20it\x20is\x20required','map','[%s][START:QUEUE][NAME:%s]','timeout','pick','join','update\x20queue\x20report','consequence','channel','YYYY-MM-DD\x20HH:mm:ss','routing','update','account','create\x20queue\x20report','format','joinAt','body','./strategy','AccountId','remove','stack','[%s][QUEUE]\x20%s','from','../../../../rediscache','waiting','QueueReport','%s_queue_waiting_interaction:%s','info','error','atimeout','message'];(function(_0x51cdeb,_0x931f20){const _0x27c4c1=function(_0x29afa9){while(--_0x29afa9){_0x51cdeb['push'](_0x51cdeb['shift']());}};_0x27c4c1(++_0x931f20);}(a1374_0x27c4,0x8d));const a1374_0x29af=function(_0x51cdeb,_0x931f20){_0x51cdeb=_0x51cdeb-0x19b;let _0x27c4c1=a1374_0x27c4[_0x51cdeb];return _0x27c4c1;};const a1374_0x2b2969=a1374_0x29af;'use strict';const schema=require(a1374_0x2b2969(0x1db)),_=require('lodash'),util=require(a1374_0x2b2969(0x1ae)),seqqueue=require('seq-queue'),moment=require(a1374_0x2b2969(0x1af)),logger=require(a1374_0x2b2969(0x19c))(a1374_0x2b2969(0x1c2)),strategy=require(a1374_0x2b2969(0x1c9)),{getSocket}=require(a1374_0x2b2969(0x1cf)),io=getSocket(),attributes=['id',a1374_0x2b2969(0x1da),'account',a1374_0x2b2969(0x1d8),a1374_0x2b2969(0x1ce),a1374_0x2b2969(0x1c7)];function emit(_0x2ba6df,_0x422a71,_0x26918c){io['to'](_0x2ba6df)['emit'](_0x422a71,_0x26918c);}function emitChannelQueueInteraction(_0xf5e304,_0x239ec6,_0x4a47fc,_0x50f35a,_0x595d0b,_0xcfa307,_0x40b6bf,_0x5c2fe0){const _0x2cc740=a1374_0x2b2969,_0x208955=_[_0x2cc740(0x19d)](_0x4a47fc);_0x208955['queue_id']=_0x5c2fe0,_0x208955[_0x2cc740(0x1d8)]=_0x239ec6,_0x208955[_0x2cc740(0x1c4)]=_0x50f35a,_0x208955['id']=_0x595d0b,_0xcfa307?_0x40b6bf[util[_0x2cc740(0x1c6)](_0x2cc740(0x1a6),_0xf5e304)][_0x595d0b]=_[_0x2cc740(0x1bc)](_0x208955,attributes):delete _0x40b6bf[util[_0x2cc740(0x1c6)](_0x2cc740(0x1a6),_0xf5e304)][_0x595d0b],emit(util[_0x2cc740(0x1c6)]('%s:queue:%s',_0xf5e304,_0x239ec6),util[_0x2cc740(0x1c6)](_0x2cc740(0x1d2),_0xf5e304,_0xcfa307?'save':_0x2cc740(0x1cb)),_[_0x2cc740(0x1bc)](_0x208955,attributes));}const rpc={'openchannelQueueReport':require(a1374_0x2b2969(0x19f)),'mailQueueReport':require(a1374_0x2b2969(0x1b1)),'chatQueueReport':require('../../rpc/chatQueueReport'),'smsQueueReport':require('../../rpc/smsQueueReport'),'faxQueueReport':require('../../rpc/faxQueueReport'),'whatsappQueueReport':require('../../rpc/whatsappQueueReport')},queue=schema({'name':{'type':'string','required':!![],'message':a1374_0x2b2969(0x1b8)},'timeout':{'type':'number','message':a1374_0x2b2969(0x1a3)}});function startRouting(_0x53bbc8,_0x25c8f2,_0x12d777,_0x466948){const _0x1c5d0b=a1374_0x2b2969;if(_0x53bbc8&&_0x25c8f2&&_0x12d777){_0x25c8f2[_0x1c5d0b(0x1d0)]+=0x1;const _0x145697={'uniqueid':_0x53bbc8,'from':_0x12d777['body']?_0x12d777[_0x1c5d0b(0x1c8)][_0x1c5d0b(0x1ce)]:'','joinAt':moment()[_0x1c5d0b(0x1c6)](_0x1c5d0b(0x1c1)),'ContactId':_0x12d777[_0x1c5d0b(0x19e)]?_0x12d777[_0x1c5d0b(0x19e)]['id']:null,'ListId':_0x12d777[_0x1c5d0b(0x1b0)]?_0x12d777[_0x1c5d0b(0x1b0)]['id']:null};_0x145697[_[_0x1c5d0b(0x1dc)](_0x12d777[_0x1c5d0b(0x1c0)])+'QueueId']=_0x25c8f2['id']||null,_0x145697[_[_0x1c5d0b(0x1dc)](_0x12d777[_0x1c5d0b(0x1c0)])+'InteractionId']=_0x12d777[_0x1c5d0b(0x1ab)]?_0x12d777['interaction']['id']:null,_0x145697[_['upperFirst'](_0x12d777['channel'])+_0x1c5d0b(0x1d9)]=_0x12d777[_0x1c5d0b(0x1d6)]?_0x12d777[_0x1c5d0b(0x1d6)]['id']:null,_0x145697[_['upperFirst'](_0x12d777[_0x1c5d0b(0x1c0)])+(_0x12d777[_0x1c5d0b(0x1c0)]!==_0x1c5d0b(0x1b3)?_0x1c5d0b(0x1ca):_0x1c5d0b(0x1ac))]=_0x12d777[_0x1c5d0b(0x1c4)]?_0x12d777[_0x1c5d0b(0x1c4)]['id']:null,logger[_0x1c5d0b(0x1d3)](util[_0x1c5d0b(0x1c6)](_0x1c5d0b(0x1ba),_0x53bbc8,_0x25c8f2[_0x1c5d0b(0x1ad)])),emitChannelQueueInteraction(_0x12d777[_0x1c5d0b(0x1c0)],_0x25c8f2['name'],_0x145697,_0x12d777[_0x1c5d0b(0x1c4)][_0x1c5d0b(0x1ad)],_0x12d777['message']['id'],!![],_0x466948,_0x25c8f2['id']);if(rpc[_0x12d777[_0x1c5d0b(0x1c0)]+_0x1c5d0b(0x1d1)])return rpc[_0x12d777[_0x1c5d0b(0x1c0)]+_0x1c5d0b(0x1d1)]['create'](_0x145697)[_0x1c5d0b(0x1d7)](function(){const _0x5b817d=_0x1c5d0b;logger[_0x5b817d(0x1d4)](_0x5b817d(0x1c5));});}}function stopRouting(_0x2e312a,_0x3ecd61,_0x216211,_0x40d38b){const _0x4dce43=a1374_0x2b2969;if(_0x2e312a&&_0x3ecd61){_0x3ecd61['waiting']-=0x1;const _0x37a386={'leaveAt':moment()[_0x4dce43(0x1c6)]('YYYY-MM-DD\x20HH:mm:ss'),'acceptAt':moment()[_0x4dce43(0x1c6)](_0x4dce43(0x1c1)),'reason':_0x4dce43(0x1b4)};logger[_0x4dce43(0x1d3)](util[_0x4dce43(0x1c6)]('[%s][STOP:QUEUE][NAME:%s]',_0x2e312a,_0x3ecd61[_0x4dce43(0x1ad)])),emitChannelQueueInteraction(_0x216211['channel'],_0x3ecd61[_0x4dce43(0x1ad)],_0x216211[_0x4dce43(0x1c8)],_0x216211[_0x4dce43(0x1c4)]['name'],_0x216211['message']['id'],![],_0x40d38b,_0x3ecd61['id']);if(rpc[_0x216211[_0x4dce43(0x1c0)]+_0x4dce43(0x1d1)])return rpc[_0x216211[_0x4dce43(0x1c0)]+_0x4dce43(0x1d1)][_0x4dce43(0x1c3)](_0x2e312a,_0x37a386)[_0x4dce43(0x1d7)](function(){const _0x31b830=_0x4dce43;logger['error'](_0x31b830(0x1be));});}}function endRouting(_0x3865d4,_0x160b31,_0x38c340,_0x4f8e95){const _0x4c955e=a1374_0x2b2969;if(_0x3865d4&&_0x160b31){_0x160b31[_0x4c955e(0x1d0)]-=0x1;const _0x555508={'leaveAt':moment()['format'](_0x4c955e(0x1c1)),'exitAt':moment()[_0x4c955e(0x1c6)](_0x4c955e(0x1c1)),'reason':_0x4c955e(0x1bb)};logger['info'](util['format'](_0x4c955e(0x19b),_0x3865d4,_0x160b31[_0x4c955e(0x1ad)])),emitChannelQueueInteraction(_0x38c340[_0x4c955e(0x1c0)],_0x160b31[_0x4c955e(0x1ad)],_0x38c340['body'],_0x38c340['account'][_0x4c955e(0x1ad)],_0x38c340['message']['id'],![],_0x4f8e95);if(rpc[_0x38c340[_0x4c955e(0x1c0)]+'QueueReport'])return rpc[_0x38c340[_0x4c955e(0x1c0)]+_0x4c955e(0x1d1)][_0x4c955e(0x1c3)](_0x3865d4,_0x555508)[_0x4c955e(0x1d7)](function(){const _0x23823b=_0x4c955e;logger[_0x23823b(0x1d4)](_0x23823b(0x1be));});}}function handleFindQueue(_0x5b14ae){return function(_0x40b350){const _0x48ce10=a1374_0x29af;return _0x40b350[_0x48ce10(0x1ad)][_0x48ce10(0x1a7)]()===_0x5b14ae['toLowerCase']();};}exports[a1374_0x2b2969(0x1bf)]=function(_0x5d5db9,_0x5925c6,_0x2f964c,_0x2b02b1){return function(_0x549031){const _0x55edd6=a1374_0x29af;try{const _0x1f202d={'name':_0x5925c6[0x0],'timeout':_0x5925c6[0x1]},_0x47f416=queue[_0x55edd6(0x1db)](_0x1f202d,{'typecast':!![]});if(_0x47f416[_0x55edd6(0x1a2)])logger[_0x55edd6(0x1d4)](_0x55edd6(0x1cd),_0x5d5db9,_[_0x55edd6(0x1b9)](_0x47f416,_0x55edd6(0x1d6))[_0x55edd6(0x1bd)](',\x20')),_0x549031['stop']();else{const _0x465964=_['find'](_0x2f964c[_0x2b02b1[_0x55edd6(0x1c0)]+'Queues'],handleFindQueue(_0x1f202d[_0x55edd6(0x1ad)]));if(_0x465964){startRouting(_0x5d5db9,_0x465964,_0x2b02b1,_0x2f964c);const _0x579a1d=(_0x465964[_0x55edd6(0x1bb)]||0xa)*0x3e8;let _0x2f6727=(_0x1f202d[_0x55edd6(0x1bb)]||0x14)*0x3e8,_0x405e01;_0x579a1d>_0x2f6727&&(_0x2f6727=_0x579a1d);const _0xf5c8fd=seqqueue[_0x55edd6(0x1a4)](_0x579a1d);_0xf5c8fd['id']=_0x5d5db9,_0xf5c8fd[_0x55edd6(0x1d5)]=_0x579a1d,_0xf5c8fd[_0x55edd6(0x1b6)]=_0x2f6727,_0xf5c8fd[_0x55edd6(0x1c0)]=_0x2b02b1[_0x55edd6(0x1c0)],_0x2f964c[_0x55edd6(0x1a0)][_0x5d5db9]['on'](_0x55edd6(0x1b2),function(){const _0x4b455c=_0x55edd6;logger['info']('[%s][QUEUE]\x20ROUTING\x20STOPPED',_0x5d5db9),stopRouting(_0x5d5db9,_0x465964,_0x2b02b1,_0x2f964c),clearTimeout(_0x405e01),_0x405e01=undefined,_0xf5c8fd[_0x4b455c(0x1a1)](!![]),_0x2f964c[_0x4b455c(0x1a0)][_0x5d5db9]&&delete _0x2f964c[_0x4b455c(0x1a0)][_0x5d5db9],_0x549031['stop']();}),_0x2f964c[_0x55edd6(0x1a0)][_0x5d5db9]['on']('complete',function(){const _0x3fe400=_0x55edd6;_0x2f964c['rules'][_0x5d5db9]&&delete _0x2f964c[_0x3fe400(0x1a0)][_0x5d5db9];}),_0x405e01=setTimeout(function(){const _0xaab6cc=_0x55edd6;logger[_0xaab6cc(0x1d3)](_0xaab6cc(0x1b7),_0x5d5db9),endRouting(_0x5d5db9,_0x465964,_0x2b02b1,_0x2f964c),clearTimeout(_0x405e01),_0xf5c8fd[_0xaab6cc(0x1a1)](!![]),_0x549031[_0xaab6cc(0x1a9)]();},_0x2f6727);switch(_0x465964[_0x55edd6(0x1dd)]){case'rrmemory':strategy[_0x55edd6(0x1b5)](_0xf5c8fd,_0x465964,_0x2f964c,_0x2b02b1);break;default:strategy['beepall'](_0xf5c8fd,_0x465964,_0x2f964c,_0x2b02b1);}}else logger[_0x55edd6(0x1d4)](_0x55edd6(0x1a8),_0x5d5db9,_0x1f202d['name']),_0x549031[_0x55edd6(0x1aa)]();}}catch(_0x1bb952){console[_0x55edd6(0x1a5)](_0x1bb952),logger[_0x55edd6(0x1d4)]('[%s][QUEUE]\x20%s',_0x5d5db9,_0x1bb952[_0x55edd6(0x1cc)]),_0x549031[_0x55edd6(0x1aa)]();}};}; \ 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 ca682f7..2a46b55 100644 --- a/server/services/routing/server/applications/strategy/agent.js +++ b/server/services/routing/server/applications/strategy/agent.js @@ -1 +1 @@ -const a1211_0x132b=['prototype','showNotification','busy','agent','uuid','handleRun','exports','channel','TIMEOUT','squeue','busyQueue','realtime','handleTimeout','handleDrained','[%s][AGENT]\x20agent\x20%s\x20is\x20not\x20available','notificationId','routing','STOP','drained','push','[%s][AGENT]\x20timeout\x20with\x20%s','agents','writeLog','lodash','bind','RINGING','forcedOwnership','isAgentAvailable','isNil','../../../../../config/logger','info','[%s][AGENT]\x20agent\x20skipped,\x20unknown\x20id\x20%s','hideNotification'];(function(_0x39c024,_0x132b9d){const _0x5aaa01=function(_0xba4f1c){while(--_0xba4f1c){_0x39c024['push'](_0x39c024['shift']());}};_0x5aaa01(++_0x132b9d);}(a1211_0x132b,0x14c));const a1211_0x5aaa=function(_0x39c024,_0x132b9d){_0x39c024=_0x39c024-0x0;let _0x5aaa01=a1211_0x132b[_0x39c024];return _0x5aaa01;};const _0x5e7f56=a1211_0x5aaa;'use strict';const _=require(_0x5e7f56('0x15')),uuid=require(_0x5e7f56('0x2')),util=require('./util'),logger=require(_0x5e7f56('0x1b'))('routing'),Agent=function(_0xba4f1c,_0x54e30b,_0xf3dcad,_0x531840){const _0x1d0bbf=_0x5e7f56;this[_0x1d0bbf('0xd')]=uuid['v4'](),this[_0x1d0bbf('0x7')]=_0xba4f1c,this[_0x1d0bbf('0x1')]=_0x54e30b,this['realtime']=_0xf3dcad,this[_0x1d0bbf('0xe')]=_0x531840,this['squeue'][_0x1d0bbf('0x11')](this[_0x1d0bbf('0x3')][_0x1d0bbf('0x16')](this),this[_0x1d0bbf('0xa')][_0x1d0bbf('0x16')](this)),this['squeue']['on']('timeout',this[_0x1d0bbf('0xa')][_0x1d0bbf('0x16')](this)),this['squeue']['on'](_0x1d0bbf('0x10'),this[_0x1d0bbf('0xb')][_0x1d0bbf('0x16')](this));};Agent[_0x5e7f56('0x1f')]['push']=function(){const _0x383364=_0x5e7f56;this['squeue'][_0x383364('0x11')](this[_0x383364('0x3')]['bind'](this),this[_0x383364('0xa')][_0x383364('0x16')](this));},Agent[_0x5e7f56('0x1f')]['handleDrained']=function(){const _0x1359ed=_0x5e7f56;this[_0x1359ed('0xa')](!![]);},Agent['prototype'][_0x5e7f56('0x3')]=function(){const _0x7b666b=_0x5e7f56;logger[_0x7b666b('0x1c')]('[%s][AGENT]\x20try\x20with\x20%s',this['squeue']['id'],this[_0x7b666b('0x1')]['id']),_['isNil'](this[_0x7b666b('0x9')][_0x7b666b('0x13')][this[_0x7b666b('0x1')]['id']])?(logger[_0x7b666b('0x1c')](_0x7b666b('0x1d'),this['squeue']['id'],this[_0x7b666b('0x1')]['id']),setTimeout(this[_0x7b666b('0x11')][_0x7b666b('0x16')](this),0x3e8)):this['routing'][_0x7b666b('0x18')]||util[_0x7b666b('0x19')](this[_0x7b666b('0x7')]['id'],this[_0x7b666b('0x9')][_0x7b666b('0x13')][this[_0x7b666b('0x1')]['id']],this[_0x7b666b('0x7')][_0x7b666b('0x5')],![])?(this[_0x7b666b('0x9')][_0x7b666b('0x13')][this[_0x7b666b('0x1')]['id']][_0x7b666b('0x0')]=!![],this[_0x7b666b('0x9')][_0x7b666b('0x13')][this[_0x7b666b('0x1')]['id']][_0x7b666b('0x8')]=undefined,util[_0x7b666b('0x20')](this['notificationId'],this[_0x7b666b('0x7')]['id'],this[_0x7b666b('0x9')][_0x7b666b('0x13')][this[_0x7b666b('0x1')]['id']],null,this['routing']),util['writeLog'](this['squeue']['id'],this[_0x7b666b('0x9')]['agents'][this[_0x7b666b('0x1')]['id']],_0x7b666b('0x17')+(this[_0x7b666b('0xe')]['forcedOwnership']?':FORCED':''))):(logger[_0x7b666b('0x1c')](_0x7b666b('0xc'),this['squeue']['id'],this['agent']['id']),setTimeout(this[_0x7b666b('0x11')]['bind'](this),0x3e8));},Agent[_0x5e7f56('0x1f')][_0x5e7f56('0xa')]=function(_0x89487b){const _0xe8d705=_0x5e7f56;if(_[_0xe8d705('0x1a')](this[_0xe8d705('0x9')]['agents'][this[_0xe8d705('0x1')]['id']]))return logger[_0xe8d705('0x1c')](_0xe8d705('0x1d'),this[_0xe8d705('0x7')]['id'],this[_0xe8d705('0x1')]['id']);else logger[_0xe8d705('0x1c')](_0xe8d705('0x12'),this[_0xe8d705('0x7')]['id'],this[_0xe8d705('0x1')]['id']),util[_0xe8d705('0x1e')](this[_0xe8d705('0xd')],this[_0xe8d705('0x7')]['id'],this[_0xe8d705('0x9')]['agents'][this[_0xe8d705('0x1')]['id']],null,this[_0xe8d705('0xe')]),this[_0xe8d705('0x9')][_0xe8d705('0x13')][this['agent']['id']][_0xe8d705('0x0')]=![],this[_0xe8d705('0x9')]['agents'][this['agent']['id']][_0xe8d705('0x8')]=undefined,util[_0xe8d705('0x14')](this['squeue']['id'],this[_0xe8d705('0x9')]['agents'][this['agent']['id']],_0x89487b?_0xe8d705('0xf'):_0xe8d705('0x6'));!_0x89487b&&setTimeout(this[_0xe8d705('0x11')][_0xe8d705('0x16')](this),0x3e8);};function agent(_0x4eb9c0,_0x85ff28,_0x5237f9,_0x5ad056){return new Agent(_0x4eb9c0,_0x85ff28,_0x5237f9,_0x5ad056);}module[_0x5e7f56('0x4')]=agent; \ No newline at end of file +const a1375_0xc4ff=['isNil','routing','handleTimeout','drained','prototype','busy','writeLog','forcedOwnership','notificationId','lodash','[%s][AGENT]\x20agent\x20skipped,\x20unknown\x20id\x20%s','push','channel','[%s][AGENT]\x20timeout\x20with\x20%s','./util','isAgentAvailable','busyQueue','agent','squeue','uuid','RINGING','[%s][AGENT]\x20try\x20with\x20%s','realtime',':FORCED','bind','timeout','agents','exports','handleDrained','info','handleRun'];(function(_0x52ce72,_0xd9cb29){const _0xc4ff80=function(_0x78d5dd){while(--_0x78d5dd){_0x52ce72['push'](_0x52ce72['shift']());}};_0xc4ff80(++_0xd9cb29);}(a1375_0xc4ff,0x1aa));const a1375_0x78d5=function(_0x52ce72,_0xd9cb29){_0x52ce72=_0x52ce72-0x1df;let _0xc4ff80=a1375_0xc4ff[_0x52ce72];return _0xc4ff80;};const a1375_0x132e25=a1375_0x78d5;'use strict';const _=require(a1375_0x132e25(0x1f0)),uuid=require(a1375_0x132e25(0x1fa)),util=require(a1375_0x132e25(0x1f5)),logger=require('../../../../../config/logger')(a1375_0x132e25(0x1e8)),Agent=function(_0x5a85ef,_0x2b322d,_0x1156da,_0x4b726d){const _0x1c93af=a1375_0x132e25;this[_0x1c93af(0x1ef)]=uuid['v4'](),this[_0x1c93af(0x1f9)]=_0x5a85ef,this[_0x1c93af(0x1f8)]=_0x2b322d,this[_0x1c93af(0x1fd)]=_0x1156da,this[_0x1c93af(0x1e8)]=_0x4b726d,this['squeue'][_0x1c93af(0x1f2)](this['handleRun']['bind'](this),this['handleTimeout']['bind'](this)),this[_0x1c93af(0x1f9)]['on'](_0x1c93af(0x1e1),this[_0x1c93af(0x1e9)][_0x1c93af(0x1e0)](this)),this[_0x1c93af(0x1f9)]['on'](_0x1c93af(0x1ea),this[_0x1c93af(0x1e4)][_0x1c93af(0x1e0)](this));};Agent[a1375_0x132e25(0x1eb)][a1375_0x132e25(0x1f2)]=function(){const _0x18092d=a1375_0x132e25;this[_0x18092d(0x1f9)][_0x18092d(0x1f2)](this[_0x18092d(0x1e6)][_0x18092d(0x1e0)](this),this[_0x18092d(0x1e9)]['bind'](this));},Agent[a1375_0x132e25(0x1eb)][a1375_0x132e25(0x1e4)]=function(){const _0x110552=a1375_0x132e25;this[_0x110552(0x1e9)](!![]);},Agent[a1375_0x132e25(0x1eb)][a1375_0x132e25(0x1e6)]=function(){const _0xa68026=a1375_0x132e25;logger[_0xa68026(0x1e5)](_0xa68026(0x1fc),this[_0xa68026(0x1f9)]['id'],this['agent']['id']),_[_0xa68026(0x1e7)](this[_0xa68026(0x1fd)][_0xa68026(0x1e2)][this[_0xa68026(0x1f8)]['id']])?(logger[_0xa68026(0x1e5)](_0xa68026(0x1f1),this[_0xa68026(0x1f9)]['id'],this['agent']['id']),setTimeout(this[_0xa68026(0x1f2)][_0xa68026(0x1e0)](this),0x3e8)):this['routing'][_0xa68026(0x1ee)]||util[_0xa68026(0x1f6)](this[_0xa68026(0x1f9)]['id'],this['realtime'][_0xa68026(0x1e2)][this[_0xa68026(0x1f8)]['id']],this[_0xa68026(0x1f9)][_0xa68026(0x1f3)],![])?(this[_0xa68026(0x1fd)]['agents'][this['agent']['id']][_0xa68026(0x1ec)]=!![],this[_0xa68026(0x1fd)][_0xa68026(0x1e2)][this[_0xa68026(0x1f8)]['id']][_0xa68026(0x1f7)]=undefined,util['showNotification'](this[_0xa68026(0x1ef)],this[_0xa68026(0x1f9)]['id'],this[_0xa68026(0x1fd)][_0xa68026(0x1e2)][this[_0xa68026(0x1f8)]['id']],null,this[_0xa68026(0x1e8)]),util['writeLog'](this[_0xa68026(0x1f9)]['id'],this[_0xa68026(0x1fd)][_0xa68026(0x1e2)][this[_0xa68026(0x1f8)]['id']],_0xa68026(0x1fb)+(this[_0xa68026(0x1e8)][_0xa68026(0x1ee)]?_0xa68026(0x1df):''))):(logger[_0xa68026(0x1e5)]('[%s][AGENT]\x20agent\x20%s\x20is\x20not\x20available',this[_0xa68026(0x1f9)]['id'],this[_0xa68026(0x1f8)]['id']),setTimeout(this[_0xa68026(0x1f2)]['bind'](this),0x3e8));},Agent[a1375_0x132e25(0x1eb)][a1375_0x132e25(0x1e9)]=function(_0xe78f68){const _0x5032d1=a1375_0x132e25;if(_[_0x5032d1(0x1e7)](this[_0x5032d1(0x1fd)][_0x5032d1(0x1e2)][this['agent']['id']]))return logger['info'](_0x5032d1(0x1f1),this[_0x5032d1(0x1f9)]['id'],this[_0x5032d1(0x1f8)]['id']);else logger[_0x5032d1(0x1e5)](_0x5032d1(0x1f4),this[_0x5032d1(0x1f9)]['id'],this[_0x5032d1(0x1f8)]['id']),util['hideNotification'](this[_0x5032d1(0x1ef)],this[_0x5032d1(0x1f9)]['id'],this[_0x5032d1(0x1fd)][_0x5032d1(0x1e2)][this['agent']['id']],null,this[_0x5032d1(0x1e8)]),this[_0x5032d1(0x1fd)][_0x5032d1(0x1e2)][this[_0x5032d1(0x1f8)]['id']]['busy']=![],this[_0x5032d1(0x1fd)][_0x5032d1(0x1e2)][this[_0x5032d1(0x1f8)]['id']][_0x5032d1(0x1f7)]=undefined,util[_0x5032d1(0x1ed)](this[_0x5032d1(0x1f9)]['id'],this[_0x5032d1(0x1fd)]['agents'][this['agent']['id']],_0xe78f68?'STOP':'TIMEOUT');!_0xe78f68&&setTimeout(this['push'][_0x5032d1(0x1e0)](this),0x3e8);};function agent(_0x2cf98c,_0x442ed8,_0xce0b86,_0x42de9a){return new Agent(_0x2cf98c,_0x442ed8,_0xce0b86,_0x42de9a);}module[a1375_0x132e25(0x1e3)]=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 88629f3..d727153 100644 --- a/server/services/routing/server/applications/strategy/beepall.js +++ b/server/services/routing/server/applications/strategy/beepall.js @@ -1 +1 @@ -const a1212_0x4308=['isNil','Agents','handleRun','showNotification','writeLog','[%s][QUEUE]\x20ALL\x20AGENTS\x20ARE\x20BUSY','name','agents','notificationId','exports','squeue','realtime','[%s][QUEUE]\x20agent\x20skipped,\x20unknown\x20id\x20%s','busyQueue','isAgentAvailable','busy','STOP','drained','routing','handleTimeout','[%s][QUEUE]\x20EMPTY','queue','uuid','prototype','./util','push','RINGING','bind','TIMEOUT','hideNotification','length','handleDrained','info','../../../../../config/logger','lodash'];(function(_0x25800b,_0x430839){const _0x5047c2=function(_0x420298){while(--_0x420298){_0x25800b['push'](_0x25800b['shift']());}};_0x5047c2(++_0x430839);}(a1212_0x4308,0xfb));const a1212_0x5047=function(_0x25800b,_0x430839){_0x25800b=_0x25800b-0x0;let _0x5047c2=a1212_0x4308[_0x25800b];return _0x5047c2;};const _0x588fdd=a1212_0x5047;'use strict';const _=require(_0x588fdd('0x1c')),uuid=require(_0x588fdd('0x10')),util=require(_0x588fdd('0x12')),logger=require(_0x588fdd('0x1b'))(_0x588fdd('0xc')),Beepall=function(_0x420298,_0x472ad2,_0x56d388,_0xcef9e1){const _0x2723eb=_0x588fdd;this[_0x2723eb('0x2')]=uuid['v4'](),this[_0x2723eb('0x4')]=_0x420298,this['queue']=_0x472ad2,this[_0x2723eb('0x5')]=_0x56d388,this[_0x2723eb('0xc')]=_0xcef9e1,this[_0x2723eb('0x4')][_0x2723eb('0x13')](this[_0x2723eb('0x1f')][_0x2723eb('0x15')](this),this['handleTimeout'][_0x2723eb('0x15')](this)),this['squeue']['on']('timeout',this[_0x2723eb('0xd')][_0x2723eb('0x15')](this)),this[_0x2723eb('0x4')]['on'](_0x2723eb('0xb'),this[_0x2723eb('0x19')][_0x2723eb('0x15')](this));};Beepall[_0x588fdd('0x11')][_0x588fdd('0x13')]=function(){const _0x4ef4d1=_0x588fdd;this[_0x4ef4d1('0x4')]['push'](this[_0x4ef4d1('0x1f')]['bind'](this),this[_0x4ef4d1('0xd')][_0x4ef4d1('0x15')](this));},Beepall['prototype'][_0x588fdd('0x19')]=function(){const _0xeac8f9=_0x588fdd;this[_0xeac8f9('0xd')](!![]);},Beepall[_0x588fdd('0x11')][_0x588fdd('0x1f')]=function(){const _0x14daa4=_0x588fdd;let _0x3ef455=!![];if(!_[_0x14daa4('0x1d')](this[_0x14daa4('0xf')])&&!_['isNil'](this[_0x14daa4('0xf')]['Agents'])&&this[_0x14daa4('0xf')][_0x14daa4('0x1e')][_0x14daa4('0x18')]>0x0){for(let _0x3cccd9=0x0,_0x1af9ad;_0x3cccd90x0){for(let _0x4a381c=0x0,_0x3100a1;_0x4a381c0x0&&_0x43a188[_0x42bedb+_0x44e1d8('0x23')]>=_0x43a188[_0x42bedb+'Capacity'])return writeLog(_0x1618a2,_0x43a188,_0x42bedb[_0x44e1d8('0x24')]()+_0x44e1d8('0x18')),![];}return!![];},exports[_0x4b37a0('0x21')]=function(_0x6b8bd5,_0x37ed48,_0x5f1d73,_0x2fbb53,_0x1f0d9d){return sendNotification(!![],_0x6b8bd5,_0x37ed48,_0x5f1d73,_0x2fbb53,_0x1f0d9d);},exports[_0x4b37a0('0x1c')]=function(_0x20ba4f,_0x515662,_0x32c5a9,_0x181cf7,_0x219eea){return sendNotification(![],_0x20ba4f,_0x515662,_0x32c5a9,_0x181cf7,_0x219eea);},exports[_0x4b37a0('0x27')]=writeLog; \ No newline at end of file +const a1379_0x19eb=['\x20interaction','queue','../../../../../rediscache','PAUSE','user:save','name','toUpperCase','body','account','CurrentCapacity','format','writeLog','I\x20can\x27t\x20render\x20your\x20template','util','Pause','remove','split','emit','busy','../../../../../config/logger','online','hideNotification','showNotification','save','Capacity','error','[%s][QUEUE]\x20%s','undefined','notification:%s','user:%s','BUSY','isAgentAvailable','routing','notificationShake','../utils','notificationTemplate','msg'];(function(_0x4a0e69,_0x206e39){const _0x19eb9b=function(_0x39ccc3){while(--_0x39ccc3){_0x4a0e69['push'](_0x4a0e69['shift']());}};_0x19eb9b(++_0x206e39);}(a1379_0x19eb,0x66));const a1379_0x39cc=function(_0x4a0e69,_0x206e39){_0x4a0e69=_0x4a0e69-0xb6;let _0x19eb9b=a1379_0x19eb[_0x4a0e69];return _0x19eb9b;};const a1379_0x34aef6=a1379_0x39cc;'use strict';const util=require(a1379_0x34aef6(0xcc)),utils=require(a1379_0x34aef6(0xbc)),logger=require(a1379_0x34aef6(0xd2))(a1379_0x34aef6(0xba)),{getSocket}=require(a1379_0x34aef6(0xc1)),io=getSocket();function sendNotification(_0x3539ae,_0x5abe96,_0x779e6,_0xd07517,_0x365ba9,_0x3159d8){const _0x2613db=a1379_0x34aef6;io['to'](util[_0x2613db(0xc9)]('user:%s',_0xd07517['name']))[_0x2613db(0xd0)](_0x2613db(0xc3),_0xd07517);const _0x34ed3f=_0x3159d8||{},_0x1c6271=_0x779e6[_0x2613db(0xcf)]('.'),_0xbf9f5={'uniqueid':_0x5abe96,'channel':_0x1c6271[0x0],'id':_0x1c6271[0x1],'title':_0x1c6271[0x0]+_0x2613db(0xbf),'interactionId':_0x1c6271[0x2],'queue':_0x365ba9?_0x365ba9[_0x2613db(0xc4)]:null,'sound':_0x34ed3f['account']['notificationSound'],'shake':_0x34ed3f['account'][_0x2613db(0xbb)]};try{!_0x34ed3f['body']&&(_0x34ed3f['body']={});if(_0x365ba9)_0x34ed3f['body'][_0x2613db(0xc0)]=_0x365ba9;else _0x34ed3f[_0x2613db(0xc6)]['queue']&&delete _0x34ed3f[_0x2613db(0xc6)][_0x2613db(0xc0)];_0xbf9f5['msg']=utils['getMustacheRender'](_0x34ed3f[_0x2613db(0xc7)][_0x2613db(0xbd)],_0x34ed3f);}catch(_0x2571a8){_0xbf9f5[_0x2613db(0xbe)]=_0x2613db(0xcb),logger[_0x2613db(0xd8)](util['format'](_0x2613db(0xd9),_0x5abe96,_0x2571a8['message']));}io['to'](util['format'](_0x2613db(0xb7),_0xd07517[_0x2613db(0xc4)]))[_0x2613db(0xd0)](util[_0x2613db(0xc9)](_0x2613db(0xb6),_0x3539ae?_0x2613db(0xd6):_0x2613db(0xce)),_0xbf9f5);}function writeLog(_0x3485d7,_0x2536dd,_0x539ed4){const _0x54a2a9=a1379_0x34aef6;return logger['info'](util[_0x54a2a9(0xc9)]('[%s][QUEUE][AGENT:%s][STATUS:%s]',_0x3485d7,_0x2536dd[_0x54a2a9(0xc4)],_0x539ed4));}exports[a1379_0x34aef6(0xb9)]=function(_0x19cd42,_0x46768d,_0x2df5ff,_0x4d93c5){const _0x272935=a1379_0x34aef6;if(_0x46768d[_0x272935(0xd1)])return writeLog(_0x19cd42,_0x46768d,_0x272935(0xb8)),![];if(!_0x46768d[_0x272935(0xd3)])return writeLog(_0x19cd42,_0x46768d,'OFFLINE'),![];if(_0x46768d[_0x2df5ff+_0x272935(0xcd)])return writeLog(_0x19cd42,_0x46768d,_0x272935(0xc2)),![];if(_0x4d93c5&&typeof _0x46768d[_0x2df5ff+_0x272935(0xd7)]!==_0x272935(0xda)&&typeof _0x46768d[_0x2df5ff+_0x272935(0xc8)]!==_0x272935(0xda)){if(_0x46768d[_0x2df5ff+'Capacity']>0x0&&_0x46768d[_0x2df5ff+_0x272935(0xc8)]>=_0x46768d[_0x2df5ff+_0x272935(0xd7)])return writeLog(_0x19cd42,_0x46768d,_0x2df5ff[_0x272935(0xc5)]()+'\x20MAXCAPACITY'),![];}return!![];},exports[a1379_0x34aef6(0xd5)]=function(_0x5d8774,_0x569252,_0x187a97,_0xb5e3a3,_0x73af92){return sendNotification(!![],_0x5d8774,_0x569252,_0x187a97,_0xb5e3a3,_0x73af92);},exports[a1379_0x34aef6(0xd4)]=function(_0x4fc534,_0x1c6bfe,_0x5db04d,_0x43deee,_0x4d2364){return sendNotification(![],_0x4fc534,_0x1c6bfe,_0x5db04d,_0x43deee,_0x4d2364);},exports[a1379_0x34aef6(0xca)]=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 b1b6c2e..d646eca 100644 --- a/server/services/routing/server/applications/system.js +++ b/server/services/routing/server/applications/system.js @@ -1 +1 @@ -const a1216_0x1fab=['error','[%s][SYSTEM]\x20commnad:\x20%s','[%s][SYSTEM]\x20result\x20code:\x20%s','isEmpty','length','trim','consequence','exec','message','map','info','replace','[%s][SYSTEM]\x20no\x20command\x20executed,\x20force\x20next','getMustacheRender','./utils','../../../../config/logger','next','string','isNil','[%s][SYSTEM]\x20set\x20variable\x20%s:\x20%s','stringify','shelljs','body','[%s][SYSTEM]\x20%s'];(function(_0x4b2009,_0x1fab5b){const _0x32f019=function(_0x5b82ac){while(--_0x5b82ac){_0x4b2009['push'](_0x4b2009['shift']());}};_0x32f019(++_0x1fab5b);}(a1216_0x1fab,0x1b9));const a1216_0x32f0=function(_0x4b2009,_0x1fab5b){_0x4b2009=_0x4b2009-0x0;let _0x32f019=a1216_0x1fab[_0x4b2009];return _0x32f019;};const _0x2e6bfc=a1216_0x32f0;'use strict';const schema=require('validate'),sh=require(_0x2e6bfc('0xc')),_=require('lodash'),utils=require(_0x2e6bfc('0x5')),logger=require(_0x2e6bfc('0x6'))('routing'),system=schema({'command':{'type':_0x2e6bfc('0x8'),'required':!![],'message':'command\x20is\x20a\x20string\x20and\x20it\x20is\x20required'}});exports[_0x2e6bfc('0x15')]=function(_0x5b82ac,_0x4dc734){return function(_0x1eb417){const _0x391686=a1216_0x32f0;try{const _0x49875e={'command':_0x4dc734[0x0]},_0x3f9b7a=system['validate'](_0x49875e,{'typecast':!![]});if(_0x3f9b7a[_0x391686('0x13')])logger[_0x391686('0xf')](_0x391686('0xe'),_0x5b82ac,_[_0x391686('0x0')](_0x3f9b7a,_0x391686('0x17'))['join'](',\x20')),logger[_0x391686('0x1')](_0x391686('0x3'),_0x5b82ac),_0x1eb417[_0x391686('0x7')]();else{const _0x19eeba=this,_0x581a70=utils[_0x391686('0x4')](_0x4dc734[0x0],this);logger['info'](_0x391686('0x10'),_0x5b82ac,_0x581a70),sh[_0x391686('0x16')](_[_0x391686('0x14')](_0x581a70),function(_0x5d9eee,_0x407c64){const _0x27ee45=_0x391686;logger[_0x27ee45('0x1')](_0x27ee45('0x11'),_0x5b82ac,_0x5d9eee);if(_0x5d9eee==0x0){const _0x4c7f3d=_0x407c64[_0x27ee45('0x2')](/(\r\n|\n|\r)/gm,'');_[_0x27ee45('0x9')](_0x4dc734[0x1])||_[_0x27ee45('0x12')](_0x4dc734[0x1])?(logger[_0x27ee45('0x1')]('[%s][SYSTEM]\x20no\x20variable',_0x5b82ac),_0x19eeba['body'][_0x4dc734[0x1]]=_0x4c7f3d):(logger[_0x27ee45('0x1')](_0x27ee45('0xa'),_0x5b82ac,_0x4dc734[0x1],_0x4c7f3d),_0x19eeba[_0x27ee45('0xd')][_0x4dc734[0x1]]=_0x4c7f3d);}_0x1eb417[_0x27ee45('0x7')]();});}}catch(_0x8cd9ac){logger[_0x391686('0xf')](_0x391686('0xe'),_0x5b82ac,_['isObject'](_0x8cd9ac)?JSON[_0x391686('0xb')](_0x8cd9ac):_0x8cd9ac),logger[_0x391686('0x1')](_0x391686('0x3'),_0x5b82ac),_0x1eb417[_0x391686('0x7')]();}};}; \ No newline at end of file +const a1380_0x4570=['[%s][SYSTEM]\x20no\x20variable','map','consequence','[%s][SYSTEM]\x20%s','message','next','isObject','error','routing','shelljs','[%s][SYSTEM]\x20commnad:\x20%s','exec','[%s][SYSTEM]\x20set\x20variable\x20%s:\x20%s','getMustacheRender','join','body','command\x20is\x20a\x20string\x20and\x20it\x20is\x20required','trim','lodash','info','[%s][SYSTEM]\x20no\x20command\x20executed,\x20force\x20next','validate'];(function(_0x26916b,_0x10d5fc){const _0x457086=function(_0x4e3827){while(--_0x4e3827){_0x26916b['push'](_0x26916b['shift']());}};_0x457086(++_0x10d5fc);}(a1380_0x4570,0xcc));const a1380_0x4e38=function(_0x26916b,_0x10d5fc){_0x26916b=_0x26916b-0x1ba;let _0x457086=a1380_0x4570[_0x26916b];return _0x457086;};const a1380_0x137f3e=a1380_0x4e38;'use strict';const schema=require(a1380_0x137f3e(0x1c9)),sh=require(a1380_0x137f3e(0x1bd)),_=require(a1380_0x137f3e(0x1c6)),utils=require('./utils'),logger=require('../../../../config/logger')(a1380_0x137f3e(0x1bc)),system=schema({'command':{'type':'string','required':!![],'message':a1380_0x137f3e(0x1c4)}});exports[a1380_0x137f3e(0x1cc)]=function(_0x1d6357,_0x161706){return function(_0x351b95){const _0x55df41=a1380_0x4e38;try{const _0x57612c={'command':_0x161706[0x0]},_0x2646e7=system[_0x55df41(0x1c9)](_0x57612c,{'typecast':!![]});if(_0x2646e7['length'])logger[_0x55df41(0x1bb)]('[%s][SYSTEM]\x20%s',_0x1d6357,_[_0x55df41(0x1cb)](_0x2646e7,_0x55df41(0x1ce))[_0x55df41(0x1c2)](',\x20')),logger[_0x55df41(0x1c7)]('[%s][SYSTEM]\x20no\x20command\x20executed,\x20force\x20next',_0x1d6357),_0x351b95[_0x55df41(0x1cf)]();else{const _0x538759=this,_0x41ab30=utils[_0x55df41(0x1c1)](_0x161706[0x0],this);logger[_0x55df41(0x1c7)](_0x55df41(0x1be),_0x1d6357,_0x41ab30),sh[_0x55df41(0x1bf)](_[_0x55df41(0x1c5)](_0x41ab30),function(_0x5d0c33,_0xecb5f0){const _0x3eb2c7=_0x55df41;logger[_0x3eb2c7(0x1c7)]('[%s][SYSTEM]\x20result\x20code:\x20%s',_0x1d6357,_0x5d0c33);if(_0x5d0c33==0x0){const _0xdfb823=_0xecb5f0['replace'](/(\r\n|\n|\r)/gm,'');_['isNil'](_0x161706[0x1])||_['isEmpty'](_0x161706[0x1])?(logger[_0x3eb2c7(0x1c7)](_0x3eb2c7(0x1ca),_0x1d6357),_0x538759[_0x3eb2c7(0x1c3)][_0x161706[0x1]]=_0xdfb823):(logger[_0x3eb2c7(0x1c7)](_0x3eb2c7(0x1c0),_0x1d6357,_0x161706[0x1],_0xdfb823),_0x538759[_0x3eb2c7(0x1c3)][_0x161706[0x1]]=_0xdfb823);}_0x351b95[_0x3eb2c7(0x1cf)]();});}}catch(_0x212edd){logger['error'](_0x55df41(0x1cd),_0x1d6357,_[_0x55df41(0x1ba)](_0x212edd)?JSON['stringify'](_0x212edd):_0x212edd),logger[_0x55df41(0x1c7)](_0x55df41(0x1c8),_0x1d6357),_0x351b95[_0x55df41(0x1cf)]();}};}; \ 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 1a94b0f..ca320f0 100644 --- a/server/services/routing/server/applications/tag.js +++ b/server/services/routing/server/applications/tag.js @@ -1 +1 @@ -const a1217_0x4e43=['isObject','../../../../config/logger','../../rpc/mailInteraction','addTags','[%s][TAG]\x20tag\x20\x22%s\x22\x20added\x20to\x20%s\x20interaction\x20%s','TagId\x20is\x20a\x20string\x20and\x20it\x20is\x20required','message','lodash','validate','length','number','Interaction','then','channel','../../rpc/chatInteraction','info','map','join','routing','finally','../../rpc/faxInteraction','[%s][TAG]\x20no\x20tags\x20saved,\x20force\x20next','next','error','stringify','../../rpc/openchannelInteraction','[%s][TAG]\x20%s','interaction'];(function(_0x103904,_0x4e435d){const _0x11d9a6=function(_0x4ad5bd){while(--_0x4ad5bd){_0x103904['push'](_0x103904['shift']());}};_0x11d9a6(++_0x4e435d);}(a1217_0x4e43,0x1dc));const a1217_0x11d9=function(_0x103904,_0x4e435d){_0x103904=_0x103904-0x0;let _0x11d9a6=a1217_0x4e43[_0x103904];return _0x11d9a6;};const _0x3b9c2c=a1217_0x11d9;'use strict';const schema=require(_0x3b9c2c('0x8')),_=require(_0x3b9c2c('0x7')),rpc={'chatInteraction':require(_0x3b9c2c('0xe')),'openchannelInteraction':require(_0x3b9c2c('0x19')),'smsInteraction':require('../../rpc/smsInteraction'),'mailInteraction':require(_0x3b9c2c('0x2')),'faxInteraction':require(_0x3b9c2c('0x14')),'whatsappInteraction':require('../../rpc/whatsappInteraction')},logger=require(_0x3b9c2c('0x1'))(_0x3b9c2c('0x12')),tag=schema({'tag':{'type':_0x3b9c2c('0xa'),'required':!![],'message':_0x3b9c2c('0x5')}});exports['consequence']=function(_0x4ad5bd,_0x264329,_0x4a005e,_0x38dbee){return function(_0x2b6bdd){const _0x59ea1a=a1217_0x11d9;try{const _0xdbf29d={'tag':_0x264329[0x0]},_0x348d96=tag[_0x59ea1a('0x8')](_0xdbf29d,{'typecast':!![]});if(_0x348d96[_0x59ea1a('0x9')])logger[_0x59ea1a('0x17')]('[%s][TAG]\x20%s',_0x4ad5bd,_[_0x59ea1a('0x10')](_0x348d96,_0x59ea1a('0x6'))[_0x59ea1a('0x11')](',\x20')),logger['info'](_0x59ea1a('0x15'),_0x4ad5bd),_0x2b6bdd[_0x59ea1a('0x16')]();else{const _0x39f3f3={'ids':[_0x264329[0x0]]};rpc[_0x38dbee[_0x59ea1a('0xd')]+_0x59ea1a('0xb')]&&rpc[_0x38dbee[_0x59ea1a('0xd')]+_0x59ea1a('0xb')][_0x59ea1a('0x3')](_0x38dbee[_0x59ea1a('0x1b')]['id'],_0x39f3f3)[_0x59ea1a('0xc')](function(){const _0x2bf4b6=_0x59ea1a;logger[_0x2bf4b6('0xf')](_0x2bf4b6('0x4'),_0x4ad5bd,_0x264329[0x1],_0x38dbee[_0x2bf4b6('0xd')],_0x38dbee[_0x2bf4b6('0x1b')]['id']);})['catch'](function(_0x1a2a8b){const _0x2b22e6=_0x59ea1a;logger[_0x2b22e6('0x17')](_0x2b22e6('0x1a'),_0x4ad5bd,JSON[_0x2b22e6('0x18')](_0x1a2a8b)),logger['info'](_0x2b22e6('0x15'),_0x4ad5bd);})[_0x59ea1a('0x13')](function(){const _0x17f73e=_0x59ea1a;_0x2b6bdd[_0x17f73e('0x16')]();});}}catch(_0x4594b7){logger[_0x59ea1a('0x17')](_0x59ea1a('0x1a'),_0x4ad5bd,_[_0x59ea1a('0x0')](_0x4594b7)?JSON['stringify'](_0x4594b7):_0x4594b7),logger[_0x59ea1a('0xf')](_0x59ea1a('0x15'),_0x4ad5bd),_0x2b6bdd[_0x59ea1a('0x16')]();}};}; \ No newline at end of file +const a1381_0x406e=['isObject','Interaction','lodash','TagId\x20is\x20a\x20string\x20and\x20it\x20is\x20required','message','../../rpc/openchannelInteraction','channel','catch','[%s][TAG]\x20%s','../../rpc/chatInteraction','length','info','join','error','then','addTags','../../rpc/faxInteraction','validate','../../rpc/mailInteraction','next','stringify','[%s][TAG]\x20tag\x20\x22%s\x22\x20added\x20to\x20%s\x20interaction\x20%s','[%s][TAG]\x20no\x20tags\x20saved,\x20force\x20next','../../../../config/logger'];(function(_0x3b952d,_0x4f4ab0){const _0x406ed8=function(_0x112f9f){while(--_0x112f9f){_0x3b952d['push'](_0x3b952d['shift']());}};_0x406ed8(++_0x4f4ab0);}(a1381_0x406e,0x14c));const a1381_0x112f=function(_0x3b952d,_0x4f4ab0){_0x3b952d=_0x3b952d-0x10c;let _0x406ed8=a1381_0x406e[_0x3b952d];return _0x406ed8;};const a1381_0x19e7b8=a1381_0x112f;'use strict';const schema=require(a1381_0x19e7b8(0x121)),_=require(a1381_0x19e7b8(0x112)),rpc={'chatInteraction':require(a1381_0x19e7b8(0x119)),'openchannelInteraction':require(a1381_0x19e7b8(0x115)),'smsInteraction':require('../../rpc/smsInteraction'),'mailInteraction':require(a1381_0x19e7b8(0x122)),'faxInteraction':require(a1381_0x19e7b8(0x120)),'whatsappInteraction':require('../../rpc/whatsappInteraction')},logger=require(a1381_0x19e7b8(0x10f))('routing'),tag=schema({'tag':{'type':'number','required':!![],'message':a1381_0x19e7b8(0x113)}});exports['consequence']=function(_0x2e1184,_0x2d1882,_0x539d91,_0x36a84d){return function(_0x43d748){const _0x49ee30=a1381_0x112f;try{const _0x35461f={'tag':_0x2d1882[0x0]},_0x162be1=tag[_0x49ee30(0x121)](_0x35461f,{'typecast':!![]});if(_0x162be1[_0x49ee30(0x11a)])logger[_0x49ee30(0x11d)](_0x49ee30(0x118),_0x2e1184,_['map'](_0x162be1,_0x49ee30(0x114))[_0x49ee30(0x11c)](',\x20')),logger[_0x49ee30(0x11b)](_0x49ee30(0x10e),_0x2e1184),_0x43d748[_0x49ee30(0x123)]();else{const _0x3be449={'ids':[_0x2d1882[0x0]]};rpc[_0x36a84d[_0x49ee30(0x116)]+'Interaction']&&rpc[_0x36a84d[_0x49ee30(0x116)]+_0x49ee30(0x111)][_0x49ee30(0x11f)](_0x36a84d['interaction']['id'],_0x3be449)[_0x49ee30(0x11e)](function(){const _0x53c081=_0x49ee30;logger[_0x53c081(0x11b)](_0x53c081(0x10d),_0x2e1184,_0x2d1882[0x1],_0x36a84d[_0x53c081(0x116)],_0x36a84d['interaction']['id']);})[_0x49ee30(0x117)](function(_0x2ea557){const _0x43b8ad=_0x49ee30;logger['error'](_0x43b8ad(0x118),_0x2e1184,JSON[_0x43b8ad(0x10c)](_0x2ea557)),logger['info'](_0x43b8ad(0x10e),_0x2e1184);})['finally'](function(){const _0x4771cd=_0x49ee30;_0x43d748[_0x4771cd(0x123)]();});}}catch(_0x57dcfa){logger[_0x49ee30(0x11d)](_0x49ee30(0x118),_0x2e1184,_[_0x49ee30(0x110)](_0x57dcfa)?JSON[_0x49ee30(0x10c)](_0x57dcfa):_0x57dcfa),logger[_0x49ee30(0x11b)]('[%s][TAG]\x20no\x20tags\x20saved,\x20force\x20next',_0x2e1184),_0x43d748[_0x49ee30(0x123)]();}};}; \ 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 3844c84..a828ee3 100644 --- a/server/services/routing/server/applications/utils.js +++ b/server/services/routing/server/applications/utils.js @@ -1 +1 @@ -const a1218_0x1f6a=['account','mustache','render','message','merge','list','interaction'];(function(_0x98fe5d,_0x1f6af3){const _0x53f119=function(_0x59a6c6){while(--_0x59a6c6){_0x98fe5d['push'](_0x98fe5d['shift']());}};_0x53f119(++_0x1f6af3);}(a1218_0x1f6a,0x152));const a1218_0x53f1=function(_0x98fe5d,_0x1f6af3){_0x98fe5d=_0x98fe5d-0x0;let _0x53f119=a1218_0x1f6a[_0x98fe5d];return _0x53f119;};const _0x2f7282=a1218_0x53f1;'use strict';const Mustache=require(_0x2f7282('0x6')),_=require('lodash');module['exports']={'getMustacheRender':function(_0x59a6c6,_0x58654c){const _0x47ce04=_0x2f7282;return Mustache[_0x47ce04('0x0')](_0x59a6c6,_[_0x47ce04('0x2')](_0x58654c['body'],{'contact':_0x58654c['contact'],'message':_0x58654c[_0x47ce04('0x1')],'account':_0x58654c[_0x47ce04('0x5')],'interaction':_0x58654c[_0x47ce04('0x4')],'list':_0x58654c[_0x47ce04('0x3')]}))||'';}}; \ No newline at end of file +const a1382_0x2f5e=['body','merge','mustache','render','contact','lodash','getMustacheRender','exports','interaction'];(function(_0x1bebe3,_0x174ed9){const _0x2f5e2c=function(_0x5513fd){while(--_0x5513fd){_0x1bebe3['push'](_0x1bebe3['shift']());}};_0x2f5e2c(++_0x174ed9);}(a1382_0x2f5e,0x14f));const a1382_0x5513=function(_0x1bebe3,_0x174ed9){_0x1bebe3=_0x1bebe3-0x147;let _0x2f5e2c=a1382_0x2f5e[_0x1bebe3];return _0x2f5e2c;};const a1382_0x43c27d=a1382_0x5513;'use strict';const Mustache=require(a1382_0x43c27d(0x147)),_=require(a1382_0x43c27d(0x14a));function getMustacheRender(_0x56e966,_0x542923){const _0x38ba72=a1382_0x43c27d;return Mustache[_0x38ba72(0x148)](_0x56e966,_[_0x38ba72(0x14f)](_0x542923[_0x38ba72(0x14e)],{'contact':_0x542923[_0x38ba72(0x149)],'message':_0x542923['message'],'account':_0x542923['account'],'interaction':_0x542923[_0x38ba72(0x14d)],'list':_0x542923['list']}))||'';}module[a1382_0x43c27d(0x14c)][a1382_0x43c27d(0x14b)]=getMustacheRender; \ No newline at end of file diff --git a/server/services/routing/server/index.js b/server/services/routing/server/index.js index 34db4aa..1d90e29 100644 --- a/server/services/routing/server/index.js +++ b/server/services/routing/server/index.js @@ -1 +1 @@ -const a1219_0x188b=['paused','Routing\x20RPC\x20server\x20listening\x20on\x20127.0.0.1:%d!','channel','UserId','interval','stack','TagId','../rpc/openchannelQueueReport','push','isNil','emit','smsQueuesWaitingInteractions','chatQueuesWaitingInteractions','../rpc/faxQueueReport','busy','Please\x20create\x20a\x20new\x20file\x20under','agent\x20not\x20found','../rpc/whatsappQueueReport','lodash','server','../rpc/mailQueueReport','whatsappQueuesWaitingInteractions','stringify','%s:%s:%s','complete','end','matchPath','dialogflow','openchannelQueues','name','No\x20applications\x20to\x20execute','http','length','agents','faxQueuesWaitingInteractions','dialogflowv2','intervals','join','faxQueues','toLowerCase','./applications/','slice','waiting','available','jayson/promise','routing','openchannelQueuesWaitingInteractions','../lib/rule-engine','values','rules','message','split','condition','map','CurrentCapacity','IntervalId','appdata','consequence','on\x20interval','agent','interaction','listen','error','busyQueue','smsQueues','isArray','../rpc/chatQueueReport','Applications\x20executed','format','%s.%s.%s','Intervals','applications','amazonlex','.js','../rpc/smsQueueReport','existsSync','tag','mailQueues','autoreply','capacity','./interval','loggedIn','info','log','undefined','message\x20is\x20empty','chatQueues','app','127.0.0.1','whatsappQueues'];(function(_0x41a086,_0x188b06){const _0x3db3d2=function(_0x45eca7){while(--_0x45eca7){_0x41a086['push'](_0x41a086['shift']());}};_0x3db3d2(++_0x188b06);}(a1219_0x188b,0x130));const a1219_0x3db3=function(_0x41a086,_0x188b06){_0x41a086=_0x41a086-0x0;let _0x3db3d2=a1219_0x188b[_0x41a086];return _0x3db3d2;};const _0x35cf56=a1219_0x3db3;'use strict';const _=require(_0x35cf56('0x4a')),util=require('util'),path=require('path'),fs=require('fs'),jayson=require(_0x35cf56('0xa')),logger=require('../../../config/logger')(_0x35cf56('0xb')),rpc={'openchannelQueueReport':require(_0x35cf56('0x3f')),'mailQueueReport':require(_0x35cf56('0x4c')),'chatQueueReport':require(_0x35cf56('0x20')),'smsQueueReport':require(_0x35cf56('0x28')),'faxQueueReport':require(_0x35cf56('0x45')),'whatsappQueueReport':require(_0x35cf56('0x49'))},RuleEngine=require(_0x35cf56('0xd'));function getId(_0x45eca7,_0x44ddc2,_0x2264d1){const _0x390edc=_0x35cf56;return util[_0x390edc('0x22')](_0x390edc('0x23'),_0x45eca7,_0x44ddc2||0x0,_0x2264d1||0x0);}function getIntervals(_0x4a26e4,_0x56c365){const _0x4ab299=_0x35cf56;let _0x9ec5c6=[];if(!_[_0x4ab299('0x41')](_0x56c365[_0x4ab299('0x15')])&&!_[_0x4ab299('0x41')](_0x4a26e4[_0x56c365[_0x4ab299('0x15')]])&&!_['isNil'](_0x4a26e4[_0x56c365[_0x4ab299('0x15')]][_0x4ab299('0x24')]))_0x9ec5c6=_[_0x4ab299('0x13')](_0x4a26e4[_0x56c365[_0x4ab299('0x15')]][_0x4ab299('0x24')],_0x4ab299('0x3c'));else!_[_0x4ab299('0x41')](_0x56c365['interval'])&&(_0x9ec5c6=[_0x56c365[_0x4ab299('0x3c')]]);return _0x9ec5c6;}exports[_0x35cf56('0x1b')]=function(_0x4f136b){const _0x11606b=_0x35cf56;return _0x4f136b[_0x11606b('0xf')]={},new Promise(function(_0x4c66b4,_0x22b3c5){const _0x56f675=_0x11606b,_0x5caa12={'Start':function(_0x2379cc){const _0x700f68=this;return new Promise(function(_0x4d0334,_0x55d822){const _0x1ac530=a1219_0x3db3;if(_0x2379cc)try{const _0x41409d=[],_0x30202b=getId(_0x2379cc[_0x1ac530('0x3a')],_0x2379cc[_0x1ac530('0x10')]?_0x2379cc[_0x1ac530('0x10')]['id']:0x0,_0x2379cc[_0x1ac530('0x1a')]?_0x2379cc['interaction']['id']:0x0);if(_0x2379cc[_0x1ac530('0x25')]&&_[_0x1ac530('0x1f')](_0x2379cc[_0x1ac530('0x25')])&&_0x2379cc[_0x1ac530('0x25')][_0x1ac530('0x58')]){for(let _0x3d86fe=0x0;_0x3d86fe<_0x2379cc[_0x1ac530('0x25')][_0x1ac530('0x58')];_0x3d86fe+=0x1){const _0x1ddd5f=_0x2379cc['applications'][_0x3d86fe];if(fs[_0x1ac530('0x29')](path[_0x1ac530('0x3')](__dirname,'applications',_0x1ddd5f['app']+_0x1ac530('0x27')))){let _0x52d9d3=[];switch(_0x1ddd5f['app'][_0x1ac530('0x5')]()){case _0x1ac530('0x2c'):{const _0x5f2eb7=_0x1ddd5f[_0x1ac530('0x16')][_0x1ac530('0x11')](',');_0x52d9d3[_0x1ac530('0x40')](_0x5f2eb7[0x0]),_0x52d9d3['push'](_0x5f2eb7[_0x1ac530('0x7')](0x1,_0x5f2eb7[_0x1ac530('0x58')])[_0x1ac530('0x3')](','));}break;case _0x1ac530('0x53'):{const _0x44ffe3=_0x1ddd5f[_0x1ac530('0x16')]['split'](',');_0x52d9d3[_0x1ac530('0x40')](_0x44ffe3[0x0]),_0x52d9d3[_0x1ac530('0x40')](_0x44ffe3[0x1]),_0x52d9d3[_0x1ac530('0x40')](_0x44ffe3['slice'](0x2,_0x44ffe3['length'])[_0x1ac530('0x3')](','));}break;case _0x1ac530('0x1'):{const _0x12051a=_0x1ddd5f['appdata'][_0x1ac530('0x11')](',');_0x52d9d3[_0x1ac530('0x40')](_0x12051a[0x0]),_0x52d9d3[_0x1ac530('0x40')](_0x12051a[0x1]),_0x52d9d3[_0x1ac530('0x40')](_0x12051a[0x2]),_0x52d9d3[_0x1ac530('0x40')](_0x12051a[0x3]),_0x52d9d3[_0x1ac530('0x40')](_0x12051a[_0x1ac530('0x7')](0x4,_0x12051a[_0x1ac530('0x58')])['join'](','));}break;case _0x1ac530('0x26'):{const _0x4702fc=_0x1ddd5f[_0x1ac530('0x16')][_0x1ac530('0x11')](',');_0x52d9d3[_0x1ac530('0x40')](_0x4702fc[0x0]),_0x52d9d3['push'](_0x4702fc[0x1]),_0x52d9d3[_0x1ac530('0x40')](_0x4702fc[0x2]),_0x52d9d3[_0x1ac530('0x40')](_0x4702fc[0x3]),_0x52d9d3[_0x1ac530('0x40')](_0x4702fc[_0x1ac530('0x7')](0x4,_0x4702fc[_0x1ac530('0x58')])[_0x1ac530('0x3')](','));}break;case _0x1ac530('0x10'):_0x52d9d3[_0x1ac530('0x40')](_0x1ddd5f[_0x1ac530('0x16')]);break;case _0x1ac530('0x2a'):_0x52d9d3['push'](_0x1ddd5f[_0x1ac530('0x3e')]),_0x52d9d3[_0x1ac530('0x40')](_0x1ddd5f[_0x1ac530('0x16')]);break;default:_0x52d9d3=_[_0x1ac530('0x41')](_0x1ddd5f[_0x1ac530('0x16')])?[]:_0x1ddd5f[_0x1ac530('0x16')][_0x1ac530('0x11')](',');}const _0x5a6941={'id':util[_0x1ac530('0x22')](_0x1ac530('0x4f'),_0x30202b,_0x1ddd5f['id'],_0x1ddd5f[_0x1ac530('0x35')]),'condition':require(_0x1ac530('0x2e'))[_0x1ac530('0x12')](_0x30202b,getIntervals(_0x4f136b[_0x1ac530('0x2')],_0x1ddd5f),_0x4f136b),'consequence':require(_0x1ac530('0x6')+_0x1ddd5f[_0x1ac530('0x35')])[_0x1ac530('0x17')](_0x30202b,_0x52d9d3,_0x4f136b,_0x2379cc),'p':_0x1ddd5f['priority']||0x0};logger['info']('Push\x20new\x20rule',_0x5a6941['id'],_0x1ac530('0x18'),getIntervals(_0x4f136b[_0x1ac530('0x2')],_0x1ddd5f)[_0x1ac530('0x3')]('\x20|\x20')),_0x41409d[_0x1ac530('0x40')](_0x5a6941);}else logger['error'](_0x1ac530('0x47'),path[_0x1ac530('0x3')](__dirname,_0x1ac530('0x25'),_0x1ddd5f[_0x1ac530('0x35')]+_0x1ac530('0x27')));}return _0x4f136b['rules'][_0x30202b]=new RuleEngine(_0x41409d),_0x4f136b[_0x1ac530('0xf')][_0x30202b]['execute'](_0x2379cc,function(_0x368a32){const _0x59367a=_0x1ac530;logger[_0x59367a('0x30')](_0x59367a('0x21'),JSON[_0x59367a('0x4e')](_0x368a32[_0x59367a('0x52')])),_0x4f136b[_0x59367a('0xf')][_0x30202b]&&_0x4f136b[_0x59367a('0xf')][_0x30202b][_0x59367a('0x42')](_0x59367a('0x50'));}),_0x4d0334({'code':0xc8,'message':_0x2379cc});}else return logger[_0x1ac530('0x30')](_0x1ac530('0x56')),_0x4d0334({'code':0xc8,'message':_0x2379cc});}catch(_0x11b488){return logger[_0x1ac530('0x1c')](_0x11b488[_0x1ac530('0x3d')]),_0x55d822(_0x700f68['error'](0x1f4,_0x11b488));}return _0x55d822('routing\x20is\x20empty');});},'AcceptMessage':function(_0x1d8376){const _0x226152=this;return new Promise(function(_0x28d868,_0xa681f0){const _0x3a1269=a1219_0x3db3;if(_0x1d8376[_0x3a1269('0x10')]&&_0x1d8376[_0x3a1269('0x10')]['id'])try{const _0x2358f0=getId(_0x1d8376['channel'],_0x1d8376[_0x3a1269('0x10')]?_0x1d8376['message']['id']:0x0,_0x1d8376[_0x3a1269('0x1a')]?_0x1d8376['interaction']['id']:0x0);return _0x4f136b['rules'][_0x2358f0]&&(_0x4f136b[_0x3a1269('0xf')][_0x2358f0][_0x3a1269('0x42')]('end'),rpc[_0x1d8376[_0x3a1269('0x3a')]+'QueueReport']&&rpc[_0x1d8376[_0x3a1269('0x3a')]+'QueueReport']['update'](_0x2358f0,{'UserId':_0x1d8376[_0x3a1269('0x10')][_0x3a1269('0x3b')]})['catch'](function(){logger['error']('error\x20update\x20queue\x20report');})),_0x28d868({'code':0xc8,'message':_0x1d8376});}catch(_0x56b4bc){return logger[_0x3a1269('0x1c')](_0x56b4bc[_0x3a1269('0x3d')]),_0xa681f0(_0x226152[_0x3a1269('0x1c')](0x1f4,_0x56b4bc));}return logger[_0x3a1269('0x1c')](_0x3a1269('0x33')),_0xa681f0(_0x226152['error'](0x1f4,'message\x20is\x20empty'));});},'RejectMessage':function(_0x549575){const _0x439436=this;return new Promise(function(_0x1bc07f,_0x539a19){const _0x14b5c4=a1219_0x3db3;if(_0x549575[_0x14b5c4('0x19')]&&_0x549575[_0x14b5c4('0x19')]['id'])try{return _0x4f136b[_0x14b5c4('0x59')][_0x549575[_0x14b5c4('0x19')]['id']]&&(_0x4f136b[_0x14b5c4('0x59')][_0x549575['agent']['id']][_0x14b5c4('0x46')]=![],_0x4f136b[_0x14b5c4('0x59')][_0x549575[_0x14b5c4('0x19')]['id']][_0x14b5c4('0x1d')]=undefined),_0x1bc07f({'code':0xc8,'message':_0x549575});}catch(_0x2d7009){return logger['error'](_0x2d7009[_0x14b5c4('0x3d')]),_0x539a19(_0x439436[_0x14b5c4('0x1c')](0x1f4,_0x2d7009));}return logger[_0x14b5c4('0x1c')](_0x14b5c4('0x33')),_0x539a19(_0x439436[_0x14b5c4('0x1c')](0x1f4,_0x14b5c4('0x33')));});},'AbandonInteraction':function(_0x12e33d){const _0x1aefb9=this;return new Promise(function(_0x2338e3,_0x319efa){const _0x71f299=a1219_0x3db3;if(_0x12e33d['channel']&&_0x12e33d[_0x71f299('0x1a')]&&_0x12e33d[_0x71f299('0x1a')]['id'])try{const _0x26c488=getId(_0x12e33d[_0x71f299('0x3a')],_0x12e33d[_0x71f299('0x10')]?_0x12e33d[_0x71f299('0x10')]['id']:0x0,_0x12e33d[_0x71f299('0x1a')]?_0x12e33d[_0x71f299('0x1a')]['id']:0x0);return _0x4f136b['rules'][_0x26c488]&&_0x4f136b[_0x71f299('0xf')][_0x26c488][_0x71f299('0x42')](_0x71f299('0x51')),_0x2338e3({'code':0xc8,'message':_0x12e33d});}catch(_0x464cc6){return logger[_0x71f299('0x1c')](_0x464cc6['stack']),_0x319efa(_0x1aefb9[_0x71f299('0x1c')](0x1f4,_0x464cc6));}return logger['error'](_0x71f299('0x33')),_0x319efa(_0x1aefb9[_0x71f299('0x1c')](0x1f4,_0x71f299('0x33')));});},'AgentCapacity':function(_0x8d8b56){const _0x15f1f8=this;return new Promise(function(_0x4ffe1e,_0x581fb6){const _0x4faddf=a1219_0x3db3;if(typeof _0x4f136b[_0x4faddf('0x59')][_0x8d8b56['id']]!==_0x4faddf('0x32')){for(const _0x550cce in _0x8d8b56[_0x4faddf('0x2d')]){typeof _0x8d8b56[_0x4faddf('0x2d')][_0x550cce]!==_0x4faddf('0x32')&&(typeof _0x4f136b[_0x4faddf('0x59')][_0x8d8b56['id']][_0x550cce+_0x4faddf('0x14')]!==_0x4faddf('0x32')&&(_0x4f136b[_0x4faddf('0x59')][_0x8d8b56['id']][_0x550cce+_0x4faddf('0x14')]=parseInt(_0x8d8b56['capacity'][_0x550cce],0xa)));}return _0x4f136b['agents'][_0x8d8b56['id']]['updateRealtime'](),_0x4ffe1e({'code':0xc8,'message':_0x4f136b[_0x4faddf('0x59')][_0x8d8b56['id']]});}else return _0x581fb6(_0x15f1f8[_0x4faddf('0x1c')](0x1f4,_0x4faddf('0x48')));});},'Agents':function(){return new Promise(function(_0x3dc889){const _0x58b343=a1219_0x3db3,_0x4ba69e=_[_0x58b343('0xe')](_0x4f136b['agents']);_0x3dc889({'count':_0x4ba69e[_0x58b343('0x58')],'rows':_0x4ba69e});});},'ChatQueues':function(){return new Promise(function(_0xd74572){const _0x291d95=a1219_0x3db3,_0x4f7d47=[];for(const _0x5039b0 in _0x4f136b[_0x291d95('0x34')]){if(typeof _0x4f136b['chatQueues'][_0x5039b0]!==_0x291d95('0x32')){const _0x589732=_0x4f136b[_0x291d95('0x34')][_0x5039b0],_0x2d3817={'id':_0x589732['id'],'available':_0x589732[_0x291d95('0x9')],'loggedIn':_0x589732[_0x291d95('0x2f')],'name':_0x589732['name'],'paused':_0x589732['paused'],'waiting':_0x589732[_0x291d95('0x8')]};_0x4f7d47['push'](_0x2d3817);}}_0xd74572({'count':_0x4f7d47[_0x291d95('0x58')],'rows':_0x4f7d47});});},'MailQueues':function(){return new Promise(function(_0x241c46){const _0x19ebfb=a1219_0x3db3,_0x419b07=[];for(const _0xaffa29 in _0x4f136b[_0x19ebfb('0x2b')]){if(typeof _0x4f136b[_0x19ebfb('0x2b')][_0xaffa29]!=='undefined'){const _0x1b52d8=_0x4f136b[_0x19ebfb('0x2b')][_0xaffa29],_0x318f06={'id':_0x1b52d8['id'],'available':_0x1b52d8[_0x19ebfb('0x9')],'loggedIn':_0x1b52d8[_0x19ebfb('0x2f')],'name':_0x1b52d8['name'],'paused':_0x1b52d8[_0x19ebfb('0x38')],'waiting':_0x1b52d8[_0x19ebfb('0x8')]};_0x419b07[_0x19ebfb('0x40')](_0x318f06);}}_0x241c46({'count':_0x419b07[_0x19ebfb('0x58')],'rows':_0x419b07});});},'OpenchannelQueues':function(){return new Promise(function(_0x4b65f7){const _0x2b32bf=a1219_0x3db3,_0xbf0c7d=[];for(const _0xd92bc7 in _0x4f136b[_0x2b32bf('0x54')]){if(typeof _0x4f136b['openchannelQueues'][_0xd92bc7]!==_0x2b32bf('0x32')){const _0x344654=_0x4f136b['openchannelQueues'][_0xd92bc7],_0x17a8a2={'id':_0x344654['id'],'available':_0x344654[_0x2b32bf('0x9')],'loggedIn':_0x344654['loggedIn'],'name':_0x344654[_0x2b32bf('0x55')],'paused':_0x344654[_0x2b32bf('0x38')],'waiting':_0x344654[_0x2b32bf('0x8')]};_0xbf0c7d[_0x2b32bf('0x40')](_0x17a8a2);}}_0x4b65f7({'count':_0xbf0c7d['length'],'rows':_0xbf0c7d});});},'SmsQueues':function(){return new Promise(function(_0x16ee04){const _0x12ac97=a1219_0x3db3,_0x23fc1f=[];for(const _0x2bc70f in _0x4f136b['smsQueues']){if(typeof _0x4f136b[_0x12ac97('0x1e')][_0x2bc70f]!==_0x12ac97('0x32')){const _0x162362=_0x4f136b[_0x12ac97('0x1e')][_0x2bc70f],_0x509799={'id':_0x162362['id'],'available':_0x162362['available'],'loggedIn':_0x162362[_0x12ac97('0x2f')],'name':_0x162362[_0x12ac97('0x55')],'paused':_0x162362[_0x12ac97('0x38')],'waiting':_0x162362[_0x12ac97('0x8')]};_0x23fc1f[_0x12ac97('0x40')](_0x509799);}}_0x16ee04({'count':_0x23fc1f[_0x12ac97('0x58')],'rows':_0x23fc1f});});},'FaxQueues':function(){return new Promise(function(_0x22a9f9){const _0x42c76c=a1219_0x3db3,_0x224040=[];for(const _0x172ebe in _0x4f136b[_0x42c76c('0x4')]){if(typeof _0x4f136b[_0x42c76c('0x4')][_0x172ebe]!=='undefined'){const _0x91bb5b=_0x4f136b['faxQueues'][_0x172ebe],_0x18517d={'id':_0x91bb5b['id'],'available':_0x91bb5b[_0x42c76c('0x9')],'loggedIn':_0x91bb5b[_0x42c76c('0x2f')],'name':_0x91bb5b[_0x42c76c('0x55')],'paused':_0x91bb5b['paused'],'waiting':_0x91bb5b[_0x42c76c('0x8')]};_0x224040[_0x42c76c('0x40')](_0x18517d);}}_0x22a9f9({'count':_0x224040[_0x42c76c('0x58')],'rows':_0x224040});});},'WhatsappQueues':function(){return new Promise(function(_0x2a1fa5){const _0x24a747=a1219_0x3db3,_0x4984f9=[];for(const _0x437aa5 in _0x4f136b[_0x24a747('0x37')]){if(typeof _0x4f136b['whatsappQueues'][_0x437aa5]!=='undefined'){const _0x23a9ae=_0x4f136b[_0x24a747('0x37')][_0x437aa5],_0x4ff196={'id':_0x23a9ae['id'],'available':_0x23a9ae[_0x24a747('0x9')],'loggedIn':_0x23a9ae['loggedIn'],'name':_0x23a9ae[_0x24a747('0x55')],'paused':_0x23a9ae[_0x24a747('0x38')],'waiting':_0x23a9ae[_0x24a747('0x8')]};_0x4984f9[_0x24a747('0x40')](_0x4ff196);}}_0x2a1fa5({'count':_0x4984f9['length'],'rows':_0x4984f9});});},'ChatQueuesWaitingInteractions':function(){return new Promise(function(_0x239811){const _0x337d06=a1219_0x3db3,_0x28dfc5=_['values'](_0x4f136b[_0x337d06('0x44')]);_0x239811({'count':_0x28dfc5[_0x337d06('0x58')],'rows':_0x28dfc5});});},'MailQueuesWaitingInteractions':function(){return new Promise(function(_0x4ee05f){const _0x5d8b28=a1219_0x3db3,_0x3ebec0=_[_0x5d8b28('0xe')](_0x4f136b['mailQueuesWaitingInteractions']);_0x4ee05f({'count':_0x3ebec0[_0x5d8b28('0x58')],'rows':_0x3ebec0});});},'OpenchannelQueuesWaitingInteractions':function(){return new Promise(function(_0x95d704){const _0x50e1e3=a1219_0x3db3,_0x22b481=_[_0x50e1e3('0xe')](_0x4f136b[_0x50e1e3('0xc')]);_0x95d704({'count':_0x22b481[_0x50e1e3('0x58')],'rows':_0x22b481});});},'SmsQueuesWaitingInteractions':function(){return new Promise(function(_0x33cf61){const _0x5b981d=a1219_0x3db3,_0x33ed04=_[_0x5b981d('0xe')](_0x4f136b[_0x5b981d('0x43')]);_0x33cf61({'count':_0x33ed04['length'],'rows':_0x33ed04});});},'FaxQueuesWaitingInteractions':function(){return new Promise(function(_0x46e0f6){const _0x321d26=a1219_0x3db3,_0x23231b=_[_0x321d26('0xe')](_0x4f136b[_0x321d26('0x0')]);_0x46e0f6({'count':_0x23231b[_0x321d26('0x58')],'rows':_0x23231b});});},'WhatsappQueuesWaitingInteractions':function(){return new Promise(function(_0xcfaa8c){const _0x365027=a1219_0x3db3,_0x11d917=_[_0x365027('0xe')](_0x4f136b[_0x365027('0x4d')]);_0xcfaa8c({'count':_0x11d917[_0x365027('0x58')],'rows':_0x11d917});});}},_0xd74751=jayson[_0x56f675('0x4b')](_0x5caa12)[_0x56f675('0x57')]();_0xd74751['on'](_0x56f675('0x1c'),function(_0x32210e){const _0x67fbd9=_0x56f675;return logger[_0x67fbd9('0x1c')](JSON[_0x67fbd9('0x4e')](_0x32210e)),_0x22b3c5(_0x32210e);}),_0xd74751['listen'](0x232c,_0x56f675('0x36'),function(){const _0xab735e=_0x56f675;return console[_0xab735e('0x31')](_0xab735e('0x39'),0x232c),_0x4c66b4('RPC\x20listening\x20on\x20port:'+0x232c);});});}; \ No newline at end of file +const a1383_0x2796=['values','whatsappQueues','lodash','util','listen','applications','mailQueuesWaitingInteractions','consequence','openchannelQueues','undefined','chatQueues','info','intervals','No\x20applications\x20to\x20execute','rules','Applications\x20executed','../rpc/openchannelQueueReport','Routing\x20RPC\x20server\x20listening\x20on\x20127.0.0.1:%d!','message\x20is\x20empty','RPC\x20listening\x20on\x20port:','faxQueues','jayson/promise','catch','interval','update','error','UserId','join','format','interaction','chatQueuesWaitingInteractions','Push\x20new\x20rule','busy','push','%s.%s.%s','.js','capacity','Intervals','end','execute','app','message','complete','smsQueues','slice','waiting','Please\x20create\x20a\x20new\x20file\x20under','openchannelQueuesWaitingInteractions','127.0.0.1','path','../rpc/faxQueueReport','faxQueuesWaitingInteractions','../rpc/smsQueueReport','QueueReport','./applications/','emit','split','length','stringify','../rpc/whatsappQueueReport','isNil','../rpc/mailQueueReport','priority','\x20|\x20','paused','../../../config/logger','name','available','channel','log','CurrentCapacity','toLowerCase','loggedIn','error\x20update\x20queue\x20report','IntervalId','agents','appdata','agent\x20not\x20found','dialogflow','on\x20interval','agent','dialogflowv2','map','http','../rpc/chatQueueReport','stack','isArray','mailQueues'];(function(_0x54ff0d,_0x42e645){const _0x27965d=function(_0xbef824){while(--_0xbef824){_0x54ff0d['push'](_0x54ff0d['shift']());}};_0x27965d(++_0x42e645);}(a1383_0x2796,0xe6));const a1383_0xbef8=function(_0x54ff0d,_0x42e645){_0x54ff0d=_0x54ff0d-0xb0;let _0x27965d=a1383_0x2796[_0x54ff0d];return _0x27965d;};const a1383_0x5a6054=a1383_0xbef8;'use strict';const _=require(a1383_0x5a6054(0xd4)),util=require(a1383_0x5a6054(0xd5)),path=require(a1383_0x5a6054(0x103)),fs=require('fs'),jayson=require(a1383_0x5a6054(0xe7)),logger=require(a1383_0x5a6054(0xbb))('routing'),rpc={'openchannelQueueReport':require(a1383_0x5a6054(0xe2)),'mailQueueReport':require(a1383_0x5a6054(0xb7)),'chatQueueReport':require(a1383_0x5a6054(0xce)),'smsQueueReport':require(a1383_0x5a6054(0x106)),'faxQueueReport':require(a1383_0x5a6054(0x104)),'whatsappQueueReport':require(a1383_0x5a6054(0xb5))},RuleEngine=require('../lib/rule-engine');function getId(_0x54d390,_0x2a1b78,_0x160dfb){const _0x2df34b=a1383_0x5a6054;return util['format'](_0x2df34b(0xf4),_0x54d390,_0x2a1b78||0x0,_0x160dfb||0x0);}function getIntervals(_0x327989,_0x16c980){const _0x24e682=a1383_0x5a6054;let _0x1abb6b=[];if(!_[_0x24e682(0xb6)](_0x16c980[_0x24e682(0xc4)])&&!_['isNil'](_0x327989[_0x16c980[_0x24e682(0xc4)]])&&!_[_0x24e682(0xb6)](_0x327989[_0x16c980[_0x24e682(0xc4)]][_0x24e682(0xf7)]))_0x1abb6b=_[_0x24e682(0xcc)](_0x327989[_0x16c980['IntervalId']][_0x24e682(0xf7)],'interval');else!_[_0x24e682(0xb6)](_0x16c980[_0x24e682(0xe9)])&&(_0x1abb6b=[_0x16c980['interval']]);return _0x1abb6b;}exports[a1383_0x5a6054(0xd6)]=function(_0x4c8972){const _0x39640c=a1383_0x5a6054;return _0x4c8972[_0x39640c(0xe0)]={},new Promise(function(_0x2c9093,_0x6de83b){const _0x3c9ca8=_0x39640c,_0x4103b2={'Start':function(_0x4709a4){const _0x5db9e3=this;return new Promise(function(_0x1686ed,_0x4cde5c){const _0x10ba1d=a1383_0xbef8;if(_0x4709a4)try{const _0x4d1a8a=[],_0x3f64b3=getId(_0x4709a4['channel'],_0x4709a4[_0x10ba1d(0xfb)]?_0x4709a4[_0x10ba1d(0xfb)]['id']:0x0,_0x4709a4[_0x10ba1d(0xef)]?_0x4709a4[_0x10ba1d(0xef)]['id']:0x0);if(_0x4709a4[_0x10ba1d(0xd7)]&&_[_0x10ba1d(0xd0)](_0x4709a4[_0x10ba1d(0xd7)])&&_0x4709a4[_0x10ba1d(0xd7)][_0x10ba1d(0xb3)]){for(let _0x3fdf8f=0x0;_0x3fdf8f<_0x4709a4[_0x10ba1d(0xd7)][_0x10ba1d(0xb3)];_0x3fdf8f+=0x1){const _0x2dabf1=_0x4709a4['applications'][_0x3fdf8f];if(fs['existsSync'](path[_0x10ba1d(0xed)](__dirname,'applications',_0x2dabf1[_0x10ba1d(0xfa)]+_0x10ba1d(0xf5)))){let _0x426bf6=[];switch(_0x2dabf1[_0x10ba1d(0xfa)][_0x10ba1d(0xc1)]()){case'autoreply':{const _0x3c0c30=_0x2dabf1[_0x10ba1d(0xc6)][_0x10ba1d(0xb2)](',');_0x426bf6[_0x10ba1d(0xf3)](_0x3c0c30[0x0]),_0x426bf6[_0x10ba1d(0xf3)](_0x3c0c30['slice'](0x1,_0x3c0c30[_0x10ba1d(0xb3)])['join'](','));}break;case _0x10ba1d(0xc8):{const _0x230d83=_0x2dabf1[_0x10ba1d(0xc6)][_0x10ba1d(0xb2)](',');_0x426bf6[_0x10ba1d(0xf3)](_0x230d83[0x0]),_0x426bf6[_0x10ba1d(0xf3)](_0x230d83[0x1]),_0x426bf6[_0x10ba1d(0xf3)](_0x230d83[_0x10ba1d(0xfe)](0x2,_0x230d83[_0x10ba1d(0xb3)])[_0x10ba1d(0xed)](','));}break;case _0x10ba1d(0xcb):{const _0x5f022d=_0x2dabf1['appdata']['split'](',');_0x426bf6[_0x10ba1d(0xf3)](_0x5f022d[0x0]),_0x426bf6[_0x10ba1d(0xf3)](_0x5f022d[0x1]),_0x426bf6[_0x10ba1d(0xf3)](_0x5f022d[0x2]),_0x426bf6[_0x10ba1d(0xf3)](_0x5f022d[0x3]),_0x426bf6['push'](_0x5f022d[_0x10ba1d(0xfe)](0x4,_0x5f022d[_0x10ba1d(0xb3)])[_0x10ba1d(0xed)](','));}break;case'amazonlex':{const _0x1a73d7=_0x2dabf1[_0x10ba1d(0xc6)][_0x10ba1d(0xb2)](',');_0x426bf6[_0x10ba1d(0xf3)](_0x1a73d7[0x0]),_0x426bf6[_0x10ba1d(0xf3)](_0x1a73d7[0x1]),_0x426bf6['push'](_0x1a73d7[0x2]),_0x426bf6[_0x10ba1d(0xf3)](_0x1a73d7[0x3]),_0x426bf6['push'](_0x1a73d7[_0x10ba1d(0xfe)](0x4,_0x1a73d7[_0x10ba1d(0xb3)])[_0x10ba1d(0xed)](','));}break;case _0x10ba1d(0xfb):_0x426bf6[_0x10ba1d(0xf3)](_0x2dabf1[_0x10ba1d(0xc6)]);break;case'tag':_0x426bf6[_0x10ba1d(0xf3)](_0x2dabf1['TagId']),_0x426bf6[_0x10ba1d(0xf3)](_0x2dabf1['appdata']);break;default:_0x426bf6=_['isNil'](_0x2dabf1[_0x10ba1d(0xc6)])?[]:_0x2dabf1[_0x10ba1d(0xc6)][_0x10ba1d(0xb2)](',');}const _0x226608={'id':util[_0x10ba1d(0xee)]('%s:%s:%s',_0x3f64b3,_0x2dabf1['id'],_0x2dabf1['app']),'condition':require('./interval')['condition'](_0x3f64b3,getIntervals(_0x4c8972[_0x10ba1d(0xde)],_0x2dabf1),_0x4c8972),'consequence':require(_0x10ba1d(0xb0)+_0x2dabf1[_0x10ba1d(0xfa)])[_0x10ba1d(0xd9)](_0x3f64b3,_0x426bf6,_0x4c8972,_0x4709a4),'p':_0x2dabf1[_0x10ba1d(0xb8)]||0x0};logger[_0x10ba1d(0xdd)](_0x10ba1d(0xf1),_0x226608['id'],_0x10ba1d(0xc9),getIntervals(_0x4c8972[_0x10ba1d(0xde)],_0x2dabf1)[_0x10ba1d(0xed)](_0x10ba1d(0xb9))),_0x4d1a8a[_0x10ba1d(0xf3)](_0x226608);}else logger['error'](_0x10ba1d(0x100),path['join'](__dirname,_0x10ba1d(0xd7),_0x2dabf1['app']+'.js'));}return _0x4c8972[_0x10ba1d(0xe0)][_0x3f64b3]=new RuleEngine(_0x4d1a8a),_0x4c8972[_0x10ba1d(0xe0)][_0x3f64b3][_0x10ba1d(0xf9)](_0x4709a4,function(_0x559da6){const _0x5e645e=_0x10ba1d;logger[_0x5e645e(0xdd)](_0x5e645e(0xe1),JSON['stringify'](_0x559da6['matchPath'])),_0x4c8972[_0x5e645e(0xe0)][_0x3f64b3]&&_0x4c8972[_0x5e645e(0xe0)][_0x3f64b3][_0x5e645e(0xb1)](_0x5e645e(0xfc));}),_0x1686ed({'code':0xc8,'message':_0x4709a4});}else return logger[_0x10ba1d(0xdd)](_0x10ba1d(0xdf)),_0x1686ed({'code':0xc8,'message':_0x4709a4});}catch(_0xe5d76b){return logger[_0x10ba1d(0xeb)](_0xe5d76b['stack']),_0x4cde5c(_0x5db9e3[_0x10ba1d(0xeb)](0x1f4,_0xe5d76b));}return _0x4cde5c('routing\x20is\x20empty');});},'AcceptMessage':function(_0x527439){const _0x2365df=this;return new Promise(function(_0x32fa07,_0x46ed4b){const _0x93cf97=a1383_0xbef8;if(_0x527439[_0x93cf97(0xfb)]&&_0x527439[_0x93cf97(0xfb)]['id'])try{const _0x4324a9=getId(_0x527439[_0x93cf97(0xbe)],_0x527439[_0x93cf97(0xfb)]?_0x527439[_0x93cf97(0xfb)]['id']:0x0,_0x527439[_0x93cf97(0xef)]?_0x527439[_0x93cf97(0xef)]['id']:0x0);return _0x4c8972['rules'][_0x4324a9]&&(_0x4c8972[_0x93cf97(0xe0)][_0x4324a9][_0x93cf97(0xb1)](_0x93cf97(0xf8)),rpc[_0x527439[_0x93cf97(0xbe)]+'QueueReport']&&rpc[_0x527439[_0x93cf97(0xbe)]+_0x93cf97(0x107)][_0x93cf97(0xea)](_0x4324a9,{'UserId':_0x527439[_0x93cf97(0xfb)][_0x93cf97(0xec)]})[_0x93cf97(0xe8)](function(){const _0x27af1c=_0x93cf97;logger[_0x27af1c(0xeb)](_0x27af1c(0xc3));})),_0x32fa07({'code':0xc8,'message':_0x527439});}catch(_0x2a929a){return logger[_0x93cf97(0xeb)](_0x2a929a[_0x93cf97(0xcf)]),_0x46ed4b(_0x2365df[_0x93cf97(0xeb)](0x1f4,_0x2a929a));}return logger[_0x93cf97(0xeb)](_0x93cf97(0xe4)),_0x46ed4b(_0x2365df[_0x93cf97(0xeb)](0x1f4,'message\x20is\x20empty'));});},'RejectMessage':function(_0x3e3a55){const _0x293dfb=this;return new Promise(function(_0x13b73b,_0x16cf07){const _0x3bfa31=a1383_0xbef8;if(_0x3e3a55['agent']&&_0x3e3a55['agent']['id'])try{return _0x4c8972[_0x3bfa31(0xc5)][_0x3e3a55['agent']['id']]&&(_0x4c8972[_0x3bfa31(0xc5)][_0x3e3a55[_0x3bfa31(0xca)]['id']][_0x3bfa31(0xf2)]=![],_0x4c8972[_0x3bfa31(0xc5)][_0x3e3a55[_0x3bfa31(0xca)]['id']]['busyQueue']=undefined),_0x13b73b({'code':0xc8,'message':_0x3e3a55});}catch(_0x1ded74){return logger['error'](_0x1ded74['stack']),_0x16cf07(_0x293dfb['error'](0x1f4,_0x1ded74));}return logger[_0x3bfa31(0xeb)](_0x3bfa31(0xe4)),_0x16cf07(_0x293dfb[_0x3bfa31(0xeb)](0x1f4,'message\x20is\x20empty'));});},'AbandonInteraction':function(_0x80ba52){const _0x52ae33=this;return new Promise(function(_0x47ec46,_0x489f94){const _0x1529a6=a1383_0xbef8;if(_0x80ba52[_0x1529a6(0xbe)]&&_0x80ba52[_0x1529a6(0xef)]&&_0x80ba52[_0x1529a6(0xef)]['id'])try{const _0x596cd7=getId(_0x80ba52[_0x1529a6(0xbe)],_0x80ba52['message']?_0x80ba52[_0x1529a6(0xfb)]['id']:0x0,_0x80ba52['interaction']?_0x80ba52[_0x1529a6(0xef)]['id']:0x0);return _0x4c8972[_0x1529a6(0xe0)][_0x596cd7]&&_0x4c8972[_0x1529a6(0xe0)][_0x596cd7][_0x1529a6(0xb1)]('end'),_0x47ec46({'code':0xc8,'message':_0x80ba52});}catch(_0x31857c){return logger[_0x1529a6(0xeb)](_0x31857c[_0x1529a6(0xcf)]),_0x489f94(_0x52ae33['error'](0x1f4,_0x31857c));}return logger['error'](_0x1529a6(0xe4)),_0x489f94(_0x52ae33[_0x1529a6(0xeb)](0x1f4,'message\x20is\x20empty'));});},'AgentCapacity':function(_0x39037d){const _0x1a7206=this;return new Promise(function(_0xa8e762,_0x4ebd64){const _0x1026c1=a1383_0xbef8;if(typeof _0x4c8972[_0x1026c1(0xc5)][_0x39037d['id']]!==_0x1026c1(0xdb)){for(const _0x3880b7 in _0x39037d[_0x1026c1(0xf6)]){typeof _0x39037d['capacity'][_0x3880b7]!==_0x1026c1(0xdb)&&(typeof _0x4c8972[_0x1026c1(0xc5)][_0x39037d['id']][_0x3880b7+_0x1026c1(0xc0)]!==_0x1026c1(0xdb)&&(_0x4c8972[_0x1026c1(0xc5)][_0x39037d['id']][_0x3880b7+'CurrentCapacity']=parseInt(_0x39037d[_0x1026c1(0xf6)][_0x3880b7],0xa)));}return _0x4c8972['agents'][_0x39037d['id']]['updateRealtime'](),_0xa8e762({'code':0xc8,'message':_0x4c8972[_0x1026c1(0xc5)][_0x39037d['id']]});}else return _0x4ebd64(_0x1a7206['error'](0x1f4,_0x1026c1(0xc7)));});},'Agents':function(){return new Promise(function(_0x1675c7){const _0x5cf3c7=a1383_0xbef8,_0x31e2be=_['values'](_0x4c8972[_0x5cf3c7(0xc5)]);_0x1675c7({'count':_0x31e2be[_0x5cf3c7(0xb3)],'rows':_0x31e2be});});},'ChatQueues':function(){return new Promise(function(_0x3b253a){const _0x401370=a1383_0xbef8,_0x55670f=[];for(const _0x209faf in _0x4c8972[_0x401370(0xdc)]){if(typeof _0x4c8972[_0x401370(0xdc)][_0x209faf]!==_0x401370(0xdb)){const _0x50149c=_0x4c8972[_0x401370(0xdc)][_0x209faf],_0x8940ee={'id':_0x50149c['id'],'available':_0x50149c['available'],'loggedIn':_0x50149c[_0x401370(0xc2)],'name':_0x50149c['name'],'paused':_0x50149c[_0x401370(0xba)],'waiting':_0x50149c[_0x401370(0xff)]};_0x55670f[_0x401370(0xf3)](_0x8940ee);}}_0x3b253a({'count':_0x55670f[_0x401370(0xb3)],'rows':_0x55670f});});},'MailQueues':function(){return new Promise(function(_0x1d6231){const _0x435070=a1383_0xbef8,_0x2251b8=[];for(const _0x4df9bd in _0x4c8972[_0x435070(0xd1)]){if(typeof _0x4c8972[_0x435070(0xd1)][_0x4df9bd]!=='undefined'){const _0x4f89a2=_0x4c8972[_0x435070(0xd1)][_0x4df9bd],_0x503f0a={'id':_0x4f89a2['id'],'available':_0x4f89a2[_0x435070(0xbd)],'loggedIn':_0x4f89a2[_0x435070(0xc2)],'name':_0x4f89a2[_0x435070(0xbc)],'paused':_0x4f89a2[_0x435070(0xba)],'waiting':_0x4f89a2[_0x435070(0xff)]};_0x2251b8[_0x435070(0xf3)](_0x503f0a);}}_0x1d6231({'count':_0x2251b8[_0x435070(0xb3)],'rows':_0x2251b8});});},'OpenchannelQueues':function(){return new Promise(function(_0x151be5){const _0x39b050=a1383_0xbef8,_0x445501=[];for(const _0x104897 in _0x4c8972[_0x39b050(0xda)]){if(typeof _0x4c8972['openchannelQueues'][_0x104897]!=='undefined'){const _0x28d934=_0x4c8972[_0x39b050(0xda)][_0x104897],_0x332be5={'id':_0x28d934['id'],'available':_0x28d934[_0x39b050(0xbd)],'loggedIn':_0x28d934['loggedIn'],'name':_0x28d934['name'],'paused':_0x28d934[_0x39b050(0xba)],'waiting':_0x28d934['waiting']};_0x445501[_0x39b050(0xf3)](_0x332be5);}}_0x151be5({'count':_0x445501[_0x39b050(0xb3)],'rows':_0x445501});});},'SmsQueues':function(){return new Promise(function(_0x52605c){const _0x29d071=a1383_0xbef8,_0x348c71=[];for(const _0x277dc2 in _0x4c8972[_0x29d071(0xfd)]){if(typeof _0x4c8972[_0x29d071(0xfd)][_0x277dc2]!==_0x29d071(0xdb)){const _0x205eb3=_0x4c8972[_0x29d071(0xfd)][_0x277dc2],_0x1ac3d0={'id':_0x205eb3['id'],'available':_0x205eb3[_0x29d071(0xbd)],'loggedIn':_0x205eb3[_0x29d071(0xc2)],'name':_0x205eb3[_0x29d071(0xbc)],'paused':_0x205eb3[_0x29d071(0xba)],'waiting':_0x205eb3[_0x29d071(0xff)]};_0x348c71['push'](_0x1ac3d0);}}_0x52605c({'count':_0x348c71[_0x29d071(0xb3)],'rows':_0x348c71});});},'FaxQueues':function(){return new Promise(function(_0x23202d){const _0x1491b5=a1383_0xbef8,_0x2d0b50=[];for(const _0x7c27af in _0x4c8972[_0x1491b5(0xe6)]){if(typeof _0x4c8972[_0x1491b5(0xe6)][_0x7c27af]!==_0x1491b5(0xdb)){const _0x35d7ec=_0x4c8972[_0x1491b5(0xe6)][_0x7c27af],_0x302715={'id':_0x35d7ec['id'],'available':_0x35d7ec[_0x1491b5(0xbd)],'loggedIn':_0x35d7ec[_0x1491b5(0xc2)],'name':_0x35d7ec[_0x1491b5(0xbc)],'paused':_0x35d7ec['paused'],'waiting':_0x35d7ec[_0x1491b5(0xff)]};_0x2d0b50[_0x1491b5(0xf3)](_0x302715);}}_0x23202d({'count':_0x2d0b50['length'],'rows':_0x2d0b50});});},'WhatsappQueues':function(){return new Promise(function(_0x20a998){const _0x3543ea=a1383_0xbef8,_0x5cb412=[];for(const _0x18128b in _0x4c8972[_0x3543ea(0xd3)]){if(typeof _0x4c8972[_0x3543ea(0xd3)][_0x18128b]!=='undefined'){const _0x38a108=_0x4c8972[_0x3543ea(0xd3)][_0x18128b],_0x21c6c6={'id':_0x38a108['id'],'available':_0x38a108[_0x3543ea(0xbd)],'loggedIn':_0x38a108[_0x3543ea(0xc2)],'name':_0x38a108['name'],'paused':_0x38a108[_0x3543ea(0xba)],'waiting':_0x38a108[_0x3543ea(0xff)]};_0x5cb412[_0x3543ea(0xf3)](_0x21c6c6);}}_0x20a998({'count':_0x5cb412['length'],'rows':_0x5cb412});});},'ChatQueuesWaitingInteractions':function(){return new Promise(function(_0x1cfdb6){const _0x3f2409=a1383_0xbef8,_0x1cd7a9=_[_0x3f2409(0xd2)](_0x4c8972[_0x3f2409(0xf0)]);_0x1cfdb6({'count':_0x1cd7a9[_0x3f2409(0xb3)],'rows':_0x1cd7a9});});},'MailQueuesWaitingInteractions':function(){return new Promise(function(_0x147170){const _0x149dd4=a1383_0xbef8,_0x2a808c=_[_0x149dd4(0xd2)](_0x4c8972[_0x149dd4(0xd8)]);_0x147170({'count':_0x2a808c['length'],'rows':_0x2a808c});});},'OpenchannelQueuesWaitingInteractions':function(){return new Promise(function(_0x54b4a4){const _0x42a8d1=a1383_0xbef8,_0x4ac004=_[_0x42a8d1(0xd2)](_0x4c8972[_0x42a8d1(0x101)]);_0x54b4a4({'count':_0x4ac004[_0x42a8d1(0xb3)],'rows':_0x4ac004});});},'SmsQueuesWaitingInteractions':function(){return new Promise(function(_0x41fbf1){const _0x4673de=a1383_0xbef8,_0x4d1b7f=_[_0x4673de(0xd2)](_0x4c8972['smsQueuesWaitingInteractions']);_0x41fbf1({'count':_0x4d1b7f[_0x4673de(0xb3)],'rows':_0x4d1b7f});});},'FaxQueuesWaitingInteractions':function(){return new Promise(function(_0x154454){const _0x160398=a1383_0xbef8,_0x1ced15=_['values'](_0x4c8972[_0x160398(0x105)]);_0x154454({'count':_0x1ced15[_0x160398(0xb3)],'rows':_0x1ced15});});},'WhatsappQueuesWaitingInteractions':function(){return new Promise(function(_0x4c15fa){const _0x2b5e76=a1383_0xbef8,_0xed5974=_[_0x2b5e76(0xd2)](_0x4c8972['whatsappQueuesWaitingInteractions']);_0x4c15fa({'count':_0xed5974[_0x2b5e76(0xb3)],'rows':_0xed5974});});}},_0x42ad55=jayson['server'](_0x4103b2)[_0x3c9ca8(0xcd)]();_0x42ad55['on']('error',function(_0x3ce6b3){const _0x36500d=_0x3c9ca8;return logger[_0x36500d(0xeb)](JSON[_0x36500d(0xb4)](_0x3ce6b3)),_0x6de83b(_0x3ce6b3);}),_0x42ad55[_0x3c9ca8(0xd6)](0x232c,_0x3c9ca8(0x102),function(){const _0x4fa562=_0x3c9ca8;return console[_0x4fa562(0xbf)](_0x4fa562(0xe3),0x232c),_0x2c9093(_0x4fa562(0xe5)+0x232c);});});}; \ No newline at end of file diff --git a/server/services/routing/server/interval.js b/server/services/routing/server/interval.js index 5eb83d2..652a57f 100644 --- a/server/services/routing/server/interval.js +++ b/server/services/routing/server/interval.js @@ -1 +1 @@ -const a1220_0x2590=['[%s][INTERVAL]\x20%s\x20%s','jayson/promise','condition','lodash','stack','some','error','join','then','format','when','true','result','message','../../../config/logger','\x20|\x20','info','catch','[%s][INTERVAL]\x20%s','rules','all','[%s][INTERVAL]\x20ROUTING\x20STOPPED','iftime\x20%s','stop','log'];(function(_0x28a422,_0x259009){const _0x46ba0a=function(_0x42f08a){while(--_0x42f08a){_0x28a422['push'](_0x28a422['shift']());}};_0x46ba0a(++_0x259009);}(a1220_0x2590,0x111));const a1220_0x46ba=function(_0x28a422,_0x259009){_0x28a422=_0x28a422-0x0;let _0x46ba0a=a1220_0x2590[_0x28a422];return _0x46ba0a;};const _0x3f552a=a1220_0x46ba;'use strict';const util=require('util'),jayson=require(_0x3f552a('0x3')),_=require(_0x3f552a('0x5')),logger=require(_0x3f552a('0x10'))('routing'),client=jayson['client']['http']({'port':0x232a});function request(_0x42f08a,_0x1599ce){return new Promise(function(_0x7ca4e0,_0x1cff92){const _0x5b55c4=a1220_0x46ba;return client['request'](_0x42f08a,_0x1599ce)[_0x5b55c4('0xa')](function(_0x471960){const _0x3f253d=_0x5b55c4;return _0x471960[_0x3f253d('0x8')]?_0x1cff92(_0x471960[_0x3f253d('0x8')]['message']):_0x7ca4e0(_0x471960[_0x3f253d('0xe')]);})['catch'](function(_0x8fc55){return _0x1cff92(_0x8fc55);});});}exports[_0x3f552a('0x4')]=function(_0x158280,_0x5308c6,_0x46e398){return function(_0x1359e3){const _0x350aa5=a1220_0x46ba;if(_0x46e398[_0x350aa5('0x15')]&&!_0x46e398['rules'][_0x158280])return logger[_0x350aa5('0x12')](_0x350aa5('0x17'),_0x158280),_0x1359e3[_0x350aa5('0x0')]();const _0x287eb3=[];for(let _0x13defb=0x0;_0x13defb<_0x5308c6['length'];_0x13defb+=0x1){_0x287eb3['push'](request('Command',{'command':util[_0x350aa5('0xb')](_0x350aa5('0x18'),_0x5308c6[_0x13defb])})['then'](function(_0x417dd3){const _0x5193f6=_0x350aa5;return _0x417dd3&&_0x417dd3[_0x5193f6('0xf')]&&_0x417dd3[_0x5193f6('0xf')]['indexOf'](_0x5193f6('0xd'))>=0x0?!![]:![];})[_0x350aa5('0x13')](function(){const _0x2b6fd6=_0x350aa5;logger[_0x2b6fd6('0x8')](_0x2b6fd6('0x14'),_0x158280,_0x5308c6[_0x13defb]);}));}Promise[_0x350aa5('0x16')](_0x287eb3)[_0x350aa5('0xa')](function(_0x30320d){const _0x359219=_0x350aa5,_0xabdabe=_[_0x359219('0x7')](_0x30320d);logger['info'](_0x359219('0x2'),_0x158280,_0x5308c6[_0x359219('0x9')](_0x359219('0x11')),_0xabdabe),_0x1359e3[_0x359219('0xc')](_0xabdabe);})[_0x350aa5('0x13')](function(_0x99f555){const _0x212092=_0x350aa5;console[_0x212092('0x1')](_0x99f555),logger['error'](_0x212092('0x2'),_0x158280,_0x5308c6[_0x212092('0x9')]('\x20|\x20'),_0x99f555[_0x212092('0x6')]),_0x1359e3[_0x212092('0x0')]();});};}; \ No newline at end of file +const a1384_0x5cee=['log','stack','join','[%s][INTERVAL]\x20ROUTING\x20STOPPED','when','iftime\x20%s','Command','rules','catch','error','jayson/promise','length','routing','client','lodash','true','condition','[%s][INTERVAL]\x20%s\x20%s','info','some','all','then','result','message','\x20|\x20'];(function(_0x592c23,_0x5977ae){const _0x5cee5f=function(_0x3f30b4){while(--_0x3f30b4){_0x592c23['push'](_0x592c23['shift']());}};_0x5cee5f(++_0x5977ae);}(a1384_0x5cee,0x12f));const a1384_0x3f30=function(_0x592c23,_0x5977ae){_0x592c23=_0x592c23-0x1a9;let _0x5cee5f=a1384_0x5cee[_0x592c23];return _0x5cee5f;};const a1384_0xad7511=a1384_0x3f30;'use strict';const util=require('util'),jayson=require(a1384_0xad7511(0x1b0)),_=require(a1384_0xad7511(0x1b4)),logger=require('../../../config/logger')(a1384_0xad7511(0x1b2)),client=jayson[a1384_0xad7511(0x1b3)]['http']({'port':0x232a});function request(_0x76f83c,_0x1eb500){return new Promise(function(_0x45b3fa,_0xfe990f){const _0x4ceac4=a1384_0x3f30;return client['request'](_0x76f83c,_0x1eb500)[_0x4ceac4(0x1bb)](function(_0x762488){const _0x423fb6=_0x4ceac4;return _0x762488[_0x423fb6(0x1af)]?_0xfe990f(_0x762488[_0x423fb6(0x1af)][_0x423fb6(0x1bd)]):_0x45b3fa(_0x762488[_0x423fb6(0x1bc)]);})[_0x4ceac4(0x1ae)](function(_0xf576d9){return _0xfe990f(_0xf576d9);});});}exports[a1384_0xad7511(0x1b6)]=function(_0x15303b,_0x3254ed,_0x48d1d5){return function(_0x39d158){const _0x18ddad=a1384_0x3f30;if(_0x48d1d5[_0x18ddad(0x1ad)]&&!_0x48d1d5[_0x18ddad(0x1ad)][_0x15303b])return logger[_0x18ddad(0x1b8)](_0x18ddad(0x1a9),_0x15303b),_0x39d158['stop']();const _0x4e82c4=[];for(let _0x4ae2d7=0x0;_0x4ae2d7<_0x3254ed[_0x18ddad(0x1b1)];_0x4ae2d7+=0x1){_0x4e82c4['push'](request(_0x18ddad(0x1ac),{'command':util['format'](_0x18ddad(0x1ab),_0x3254ed[_0x4ae2d7])})[_0x18ddad(0x1bb)](function(_0x1c831f){const _0x517489=_0x18ddad;return _0x1c831f&&_0x1c831f[_0x517489(0x1bd)]&&_0x1c831f[_0x517489(0x1bd)]['indexOf'](_0x517489(0x1b5))>=0x0?!![]:![];})['catch'](function(){const _0x5c2daf=_0x18ddad;logger[_0x5c2daf(0x1af)]('[%s][INTERVAL]\x20%s',_0x15303b,_0x3254ed[_0x4ae2d7]);}));}Promise[_0x18ddad(0x1ba)](_0x4e82c4)[_0x18ddad(0x1bb)](function(_0x3e30f5){const _0x17ae36=_0x18ddad,_0x587b40=_[_0x17ae36(0x1b9)](_0x3e30f5);logger[_0x17ae36(0x1b8)](_0x17ae36(0x1b7),_0x15303b,_0x3254ed[_0x17ae36(0x1c1)](_0x17ae36(0x1be)),_0x587b40),_0x39d158[_0x17ae36(0x1aa)](_0x587b40);})[_0x18ddad(0x1ae)](function(_0x135aee){const _0x21e68a=_0x18ddad;console[_0x21e68a(0x1bf)](_0x135aee),logger[_0x21e68a(0x1af)](_0x21e68a(0x1b7),_0x15303b,_0x3254ed['join'](_0x21e68a(0x1be)),_0x135aee[_0x21e68a(0x1c0)]),_0x39d158['stop']();});};}; \ No newline at end of file diff --git a/server/services/xdr/agents.controller.js b/server/services/xdr/agents.controller.js index 5a4b708..098f923 100644 --- a/server/services/xdr/agents.controller.js +++ b/server/services/xdr/agents.controller.js @@ -1 +1 @@ -const a1221_0x4da9=['cause','agentringnoanswer','interface','CreateVoiceAgentReport','transferuniqueid','acwtime','transfereeuniqueid','secondtransfererlinkedid','transfer','transferexten','channel','connect','ATTENDED','format','agentcalledAt','agentcompleteAt','stack','connectedlinename','lodash','destuniqueid','agententerreason','includes','now','acwTimeout','queue','rejected','answeredelsewheremembername','isNil','forIn','then','abandoned','origtransfereruniqueid','transfertargetuniqueid','error','uniqueid','attendedtransfer','origtransfererexten','origtransfererlinkedid','info','agentconnect','complete','diffTime','acw','agentringnoanswerAt','extension','answered_elsewhere','AGENT|%s|%s|%s|%s|%s|%s|%s|%s','holdtime','type','lastevent','agentcomplete','calleridname','secondtransfereruniqueid','talktime','queuecallerabandon','calleridnum','blind','answeredelsewheredestinationuniqueid','hangup','splice','reason','agentconnectAt','indexOf','called','connectedlinenum','secondtransfererexten','agent','transfertype','transfereruniqueid','membername','request','timeout','ringtime','agentacw','getVoiceQueueByName','clone'];(function(_0x543031,_0x4da9b8){const _0x258a2c=function(_0x33ccb8){while(--_0x33ccb8){_0x543031['push'](_0x543031['shift']());}};_0x258a2c(++_0x4da9b8);}(a1221_0x4da9,0x19e));const a1221_0x258a=function(_0x543031,_0x4da9b8){_0x543031=_0x543031-0x0;let _0x258a2c=a1221_0x4da9[_0x543031];return _0x258a2c;};const _0xaa6297=a1221_0x258a;'use strict';const _=require(_0xaa6297('0x3c')),util=require('util'),utils=require('./utils'),agents={},transfers={},unanswered=[];function writeDB(_0x33ccb8,_0x48634f){const _0x2a0858=_0xaa6297;utils[_0x2a0858('0x4')](util[_0x2a0858('0x37')](_0x2a0858('0xc'),_0x33ccb8[_0x2a0858('0x0')],_0x33ccb8[_0x2a0858('0x34')],_0x33ccb8['queue'],_0x33ccb8[_0x2a0858('0x23')],_0x33ccb8[_0x2a0858('0x2c')],_0x33ccb8['calleridnum'],_0x33ccb8[_0x2a0858('0x1e')],_0x33ccb8['lastevent'])),_0x33ccb8[_0x2a0858('0x42')]?utils[_0x2a0858('0x28')](_0x33ccb8['queue'])[_0x2a0858('0x47')](function(_0x42f3c6){const _0x3a8429=_0x2a0858;_0x42f3c6&&(_0x33ccb8[_0x3a8429('0xe')]=_0x42f3c6[_0x3a8429('0xe')],_0x33ccb8[_0x3a8429('0x27')]=_0x33ccb8[_0x3a8429('0x10')]?_0x42f3c6[_0x3a8429('0x8')]:![],_0x33ccb8[_0x3a8429('0x2f')]=_0x33ccb8[_0x3a8429('0x27')]?_0x42f3c6[_0x3a8429('0x41')]:0x0),utils['request']('CreateVoiceAgentReport',_0x33ccb8);}):utils[_0x2a0858('0x24')](_0x2a0858('0x2d'),_0x33ccb8),_0x48634f?delete transfers[_0x33ccb8[_0x2a0858('0x0')]]:delete agents[_0x33ccb8[_0x2a0858('0x3d')]];}exports['agentcalled']=function(_0x2b0f84){const _0x231da8=_0xaa6297;try{agents[_0x2b0f84['destuniqueid']]=_0x2b0f84,agents[_0x2b0f84[_0x231da8('0x3d')]][_0x231da8('0x38')]=utils['now'](),agents[_0x2b0f84[_0x231da8('0x3d')]][_0x231da8('0xf')]=_0x231da8('0x1d'),agents[_0x2b0f84[_0x231da8('0x3d')]]['connectedlinenum']=null,agents[_0x2b0f84[_0x231da8('0x3d')]][_0x231da8('0x3b')]=null;}catch(_0x2bb6b0){utils[_0x231da8('0x4b')](_0x2bb6b0['stack']);}},exports[_0xaa6297('0x2b')]=function(_0x6b57ca){const _0x393e7d=_0xaa6297;try{!_['isNil'](agents[_0x6b57ca[_0x393e7d('0x3d')]])&&(agents[_0x6b57ca['destuniqueid']][_0x393e7d('0x2b')]=!![],agents[_0x6b57ca[_0x393e7d('0x3d')]][_0x393e7d('0x9')]=utils[_0x393e7d('0x40')](),agents[_0x6b57ca[_0x393e7d('0x3d')]][_0x393e7d('0xf')]=_0x393e7d('0x25'),agents[_0x6b57ca[_0x393e7d('0x3d')]][_0x393e7d('0x1a')]=_0x393e7d('0x25'),agents[_0x6b57ca[_0x393e7d('0x3d')]][_0x393e7d('0xd')]=_0x6b57ca[_0x393e7d('0x26')]?parseInt(_0x6b57ca[_0x393e7d('0x26')])/0x3e8:0x0,agents[_0x6b57ca[_0x393e7d('0x3d')]][_0x393e7d('0x13')]=0x0,unanswered['push'](_0x6b57ca[_0x393e7d('0x3d')]));}catch(_0x356222){utils['error'](_0x356222[_0x393e7d('0x3a')]);}},exports[_0xaa6297('0x14')]=function(_0x511527){const _0x15b8df=_0xaa6297;try{_[_0x15b8df('0x46')](agents,function(_0x3d7747){const _0x1ce9b3=_0x15b8df;_0x3d7747[_0x1ce9b3('0x0')]==_0x511527['uniqueid']&&!_[_0x1ce9b3('0x3f')](unanswered,_0x3d7747[_0x1ce9b3('0x3d')])&&(_0x3d7747[_0x1ce9b3('0x2b')]=!![],_0x3d7747[_0x1ce9b3('0x9')]=utils['now'](),_0x3d7747[_0x1ce9b3('0xf')]=_0x1ce9b3('0x48'),_0x3d7747['reason']=_0x1ce9b3('0x48'),_0x3d7747[_0x1ce9b3('0xd')]=_0x511527[_0x1ce9b3('0xd')],_0x3d7747['talktime']=0x0,writeDB(_0x3d7747));});}catch(_0x5b86cb){utils['error'](_0x5b86cb['stack']);}},exports[_0xaa6297('0x5')]=function(_0x311ac7){const _0x4b9527=_0xaa6297;try{agents[_0x311ac7[_0x4b9527('0x3d')]]&&(agents[_0x311ac7[_0x4b9527('0x3d')]]['agentconnectAt']=utils[_0x4b9527('0x40')](),agents[_0x311ac7[_0x4b9527('0x3d')]]['connectedlinenum']=_0x311ac7[_0x4b9527('0x1e')],agents[_0x311ac7[_0x4b9527('0x3d')]][_0x4b9527('0x3b')]=_0x311ac7[_0x4b9527('0x3b')],agents[_0x311ac7[_0x4b9527('0x3d')]][_0x4b9527('0xd')]=_0x311ac7[_0x4b9527('0x26')],agents[_0x311ac7[_0x4b9527('0x3d')]]['lastevent']=_0x4b9527('0x35'),_[_0x4b9527('0x46')](agents,function(_0x3d2402){const _0x30480a=_0x4b9527;_0x3d2402[_0x30480a('0x3d')]!=_0x311ac7['destuniqueid']&&_0x3d2402[_0x30480a('0x0')]==_0x311ac7[_0x30480a('0x0')]&&(_0x3d2402['talktime']=0x0,_0x3d2402[_0x30480a('0xd')]=_0x311ac7['ringtime'],_0x3d2402['agentringnoanswer']=!![],_0x3d2402[_0x30480a('0x9')]=utils[_0x30480a('0x40')](),_0x3d2402['lastevent']='answered_elsewhere',_0x3d2402[_0x30480a('0x1a')]=_0x30480a('0xb'),_0x3d2402[_0x30480a('0x17')]=_0x311ac7[_0x30480a('0x3d')],_0x3d2402[_0x30480a('0x44')]=_0x311ac7[_0x30480a('0x23')],writeDB(_0x3d2402));}));}catch(_0x27f5ab){utils['error'](_0x27f5ab[_0x4b9527('0x3a')]);}},exports[_0xaa6297('0x10')]=function(_0x1d3b25){const _0x32ca6a=_0xaa6297;try{!_['isNil'](agents[_0x1d3b25[_0x32ca6a('0x3d')]])&&(agents[_0x1d3b25[_0x32ca6a('0x3d')]][_0x32ca6a('0x10')]=!![],agents[_0x1d3b25[_0x32ca6a('0x3d')]][_0x32ca6a('0x39')]=utils[_0x32ca6a('0x40')](),agents[_0x1d3b25[_0x32ca6a('0x3d')]]['talktime']=utils[_0x32ca6a('0x7')](agents[_0x1d3b25['destuniqueid']][_0x32ca6a('0x39')],agents[_0x1d3b25['destuniqueid']][_0x32ca6a('0x1b')]),agents[_0x1d3b25[_0x32ca6a('0x3d')]]['reason']=_0x1d3b25[_0x32ca6a('0x1a')],agents[_0x1d3b25[_0x32ca6a('0x3d')]]['lastevent']=_0x32ca6a('0x6'),writeDB(agents[_0x1d3b25[_0x32ca6a('0x3d')]]));}catch(_0x360b13){utils[_0x32ca6a('0x4b')](_0x360b13[_0x32ca6a('0x3a')]);}},exports['blindtransfer']=function(_0x2a4af4){const _0x57ad2b=_0xaa6297;try{!_[_0x57ad2b('0x45')](agents[_0x2a4af4[_0x57ad2b('0x22')]])&&(agents[_0x2a4af4['transfereruniqueid']][_0x57ad2b('0x32')]=!![],agents[_0x2a4af4[_0x57ad2b('0x22')]]['transfertype']=_0x57ad2b('0x16'),agents[_0x2a4af4['transfereruniqueid']]['transferexten']=_0x2a4af4[_0x57ad2b('0xa')],agents[_0x2a4af4['transfereruniqueid']]['transferuniqueid']=agents[_0x2a4af4[_0x57ad2b('0x22')]][_0x57ad2b('0x0')]);}catch(_0x129307){utils[_0x57ad2b('0x4b')](_0x129307[_0x57ad2b('0x3a')]);}},exports[_0xaa6297('0x1')]=function(_0x283afd){const _0xf9c76=_0xaa6297;try{if(_0x283afd[_0xf9c76('0x49')]==_0x283afd[_0xf9c76('0x3')])!_[_0xf9c76('0x45')](agents[_0x283afd['secondtransfereruniqueid']])&&(agents[_0x283afd[_0xf9c76('0x12')]][_0xf9c76('0x32')]=!![],agents[_0x283afd['secondtransfereruniqueid']][_0xf9c76('0x21')]=_0xf9c76('0x36'),agents[_0x283afd[_0xf9c76('0x12')]][_0xf9c76('0x33')]=_0x283afd[_0xf9c76('0x2')],agents[_0x283afd['secondtransfereruniqueid']][_0xf9c76('0x2e')]=_0x283afd['origtransfereruniqueid']),_0x283afd[_0xf9c76('0x30')]&&agents[_0x283afd[_0xf9c76('0x30')]]&&(agents[_0x283afd[_0xf9c76('0x30')]][_0xf9c76('0x3e')]=0x1,transfers[_0x283afd['transfereeuniqueid']]=_[_0xf9c76('0x29')](agents[_0x283afd[_0xf9c76('0x30')]]),transfers[_0x283afd[_0xf9c76('0x30')]]['calleridnum']=agents[_0x283afd[_0xf9c76('0x12')]]['calleridnum'],transfers[_0x283afd[_0xf9c76('0x30')]][_0xf9c76('0x11')]=agents[_0x283afd['secondtransfereruniqueid']][_0xf9c76('0x11')],transfers[_0x283afd[_0xf9c76('0x30')]][_0xf9c76('0x38')]=utils[_0xf9c76('0x40')](),transfers[_0x283afd[_0xf9c76('0x30')]]['agentconnectAt']=utils[_0xf9c76('0x40')](),transfers[_0x283afd[_0xf9c76('0x30')]]['holdtime']=0x0,transfers[_0x283afd['transfereeuniqueid']]['agententerreason']=0x2);else _0x283afd['secondtransfereruniqueid']==_0x283afd[_0xf9c76('0x31')]&&(!_[_0xf9c76('0x45')](agents[_0x283afd['origtransfereruniqueid']])&&(agents[_0x283afd['origtransfereruniqueid']][_0xf9c76('0x32')]=!![],agents[_0x283afd[_0xf9c76('0x49')]][_0xf9c76('0x21')]=_0xf9c76('0x36'),agents[_0x283afd[_0xf9c76('0x49')]][_0xf9c76('0x33')]=_0x283afd[_0xf9c76('0x1f')],agents[_0x283afd[_0xf9c76('0x49')]]['transferuniqueid']=_0x283afd[_0xf9c76('0x12')]),_0x283afd[_0xf9c76('0x4a')]&&agents[_0x283afd[_0xf9c76('0x4a')]]&&(agents[_0x283afd[_0xf9c76('0x4a')]][_0xf9c76('0x3e')]=0x1,transfers[_0x283afd[_0xf9c76('0x4a')]]=_['clone'](agents[_0x283afd[_0xf9c76('0x4a')]]),transfers[_0x283afd[_0xf9c76('0x4a')]][_0xf9c76('0x15')]=agents[_0x283afd[_0xf9c76('0x49')]][_0xf9c76('0x15')],transfers[_0x283afd[_0xf9c76('0x4a')]]['calleridname']=agents[_0x283afd[_0xf9c76('0x49')]]['calleridname'],transfers[_0x283afd['transfertargetuniqueid']][_0xf9c76('0x38')]=utils['now'](),transfers[_0x283afd[_0xf9c76('0x4a')]][_0xf9c76('0x1b')]=utils[_0xf9c76('0x40')](),transfers[_0x283afd[_0xf9c76('0x4a')]][_0xf9c76('0xd')]=0x0,transfers[_0x283afd[_0xf9c76('0x4a')]]['agententerreason']=0x2));}catch(_0x274573){utils[_0xf9c76('0x4b')](_0x274573[_0xf9c76('0x3a')]);}},exports[_0xaa6297('0x18')]=function(_0xe61863){const _0x56d36e=_0xaa6297;try{if(agents[_0xe61863[_0x56d36e('0x0')]]&&agents[_0xe61863[_0x56d36e('0x0')]]['reason']===_0x56d36e('0x25')){_0xe61863[_0x56d36e('0x2a')]==='21'&&(agents[_0xe61863[_0x56d36e('0x0')]][_0x56d36e('0x1a')]=_0x56d36e('0x43'),agents[_0xe61863['uniqueid']]['lastevent']=_0x56d36e('0x43'));writeDB(agents[_0xe61863[_0x56d36e('0x0')]]);const _0x2cbbf4=unanswered[_0x56d36e('0x1c')](_0xe61863[_0x56d36e('0x0')]);if(_0x2cbbf4>-0x1)unanswered[_0x56d36e('0x19')](_0x2cbbf4,0x1);}transfers[_0xe61863[_0x56d36e('0x0')]]&&(transfers[_0xe61863[_0x56d36e('0x0')]]['agentcomplete']=!![],transfers[_0xe61863[_0x56d36e('0x0')]]['agentcompleteAt']=utils[_0x56d36e('0x40')](),transfers[_0xe61863['uniqueid']][_0x56d36e('0x13')]=utils[_0x56d36e('0x7')](transfers[_0xe61863['uniqueid']][_0x56d36e('0x39')],transfers[_0xe61863[_0x56d36e('0x0')]]['agentconnectAt']),transfers[_0xe61863[_0x56d36e('0x0')]][_0x56d36e('0x1a')]='agent',transfers[_0xe61863[_0x56d36e('0x0')]][_0x56d36e('0xf')]=_0x56d36e('0x6'),writeDB(transfers[_0xe61863[_0x56d36e('0x0')]],!![])),agents[_0xe61863[_0x56d36e('0x0')]]&&agents[_0xe61863[_0x56d36e('0x0')]]['agentconnectAt']&&(agents[_0xe61863['uniqueid']][_0x56d36e('0x10')]=!![],agents[_0xe61863['uniqueid']][_0x56d36e('0x39')]=utils[_0x56d36e('0x40')](),agents[_0xe61863[_0x56d36e('0x0')]]['talktime']=utils[_0x56d36e('0x7')](agents[_0xe61863[_0x56d36e('0x0')]]['agentcompleteAt'],agents[_0xe61863[_0x56d36e('0x0')]][_0x56d36e('0x1b')]),agents[_0xe61863[_0x56d36e('0x0')]][_0x56d36e('0x1a')]=agents[_0xe61863[_0x56d36e('0x0')]][_0x56d36e('0x32')]?'transfer':_0x56d36e('0x20'),agents[_0xe61863[_0x56d36e('0x0')]][_0x56d36e('0xf')]=_0x56d36e('0x6'),writeDB(agents[_0xe61863[_0x56d36e('0x0')]]));}catch(_0x29fa43){utils[_0x56d36e('0x4b')](_0x29fa43['stack']);}}; \ No newline at end of file +const a1385_0x5aae=['rejected','now','isNil','./utils','extension','calleridnum','type','agententerreason','secondtransfereruniqueid','timeout','request','lastevent','diffTime','transfereruniqueid','destuniqueid','queuecallerabandon','stack','agent','acwtime','origtransfereruniqueid','agentconnectAt','answeredelsewheredestinationuniqueid','transferexten','agentcalledAt','agentacw','origtransfererexten','called','acw','queue','calleridname','push','CreateVoiceAgentReport','attendedtransfer','membername','agentcompleteAt','transfer','connectedlinenum','complete','forIn','ATTENDED','acwTimeout','transferuniqueid','agentringnoanswerAt','holdtime','includes','secondtransfererexten','origtransfererlinkedid','clone','uniqueid','reason','connect','AGENT|%s|%s|%s|%s|%s|%s|%s|%s','agentcomplete','transfertargetuniqueid','indexOf','interface','error','transfertype','format','info','transfereeuniqueid','answered_elsewhere','abandoned','secondtransfererlinkedid','connectedlinename','blindtransfer','answeredelsewheremembername','talktime','ringtime','agentringnoanswer'];(function(_0x52fff9,_0x3314b8){const _0x5aaec7=function(_0x2e3e78){while(--_0x2e3e78){_0x52fff9['push'](_0x52fff9['shift']());}};_0x5aaec7(++_0x3314b8);}(a1385_0x5aae,0xf7));const a1385_0x2e3e=function(_0x52fff9,_0x3314b8){_0x52fff9=_0x52fff9-0x155;let _0x5aaec7=a1385_0x5aae[_0x52fff9];return _0x5aaec7;};const a1385_0x134209=a1385_0x2e3e;'use strict';const _=require('lodash'),util=require('util'),utils=require(a1385_0x134209(0x179)),agents={},transfers={},unanswered=[];function writeDB(_0x19e6c2,_0xf76faa){const _0x8ec26d=a1385_0x134209;utils[_0x8ec26d(0x16b)](util[_0x8ec26d(0x16a)](_0x8ec26d(0x163),_0x19e6c2['uniqueid'],_0x19e6c2['channel'],_0x19e6c2['queue'],_0x19e6c2[_0x8ec26d(0x197)],_0x19e6c2[_0x8ec26d(0x167)],_0x19e6c2[_0x8ec26d(0x17b)],_0x19e6c2[_0x8ec26d(0x19a)],_0x19e6c2['lastevent'])),_0x19e6c2[_0x8ec26d(0x192)]?utils['getVoiceQueueByName'](_0x19e6c2['queue'])['then'](function(_0x5c74d3){const _0x2d6fe0=_0x8ec26d;_0x5c74d3&&(_0x19e6c2[_0x2d6fe0(0x17c)]=_0x5c74d3['type'],_0x19e6c2[_0x2d6fe0(0x18e)]=_0x19e6c2[_0x2d6fe0(0x164)]?_0x5c74d3[_0x2d6fe0(0x191)]:![],_0x19e6c2[_0x2d6fe0(0x188)]=_0x19e6c2[_0x2d6fe0(0x18e)]?_0x5c74d3[_0x2d6fe0(0x158)]:0x0),utils[_0x2d6fe0(0x180)]('CreateVoiceAgentReport',_0x19e6c2);}):utils[_0x8ec26d(0x180)](_0x8ec26d(0x195),_0x19e6c2),_0xf76faa?delete transfers[_0x19e6c2[_0x8ec26d(0x160)]]:delete agents[_0x19e6c2[_0x8ec26d(0x184)]];}exports['agentcalled']=function(_0x14a461){const _0x49b50a=a1385_0x134209;try{agents[_0x14a461[_0x49b50a(0x184)]]=_0x14a461,agents[_0x14a461['destuniqueid']][_0x49b50a(0x18d)]=utils[_0x49b50a(0x177)](),agents[_0x14a461['destuniqueid']]['lastevent']=_0x49b50a(0x190),agents[_0x14a461[_0x49b50a(0x184)]]['connectedlinenum']=null,agents[_0x14a461[_0x49b50a(0x184)]]['connectedlinename']=null;}catch(_0x399059){utils[_0x49b50a(0x168)](_0x399059[_0x49b50a(0x186)]);}},exports[a1385_0x134209(0x175)]=function(_0x12b564){const _0x57d1a0=a1385_0x134209;try{!_[_0x57d1a0(0x178)](agents[_0x12b564[_0x57d1a0(0x184)]])&&(agents[_0x12b564[_0x57d1a0(0x184)]]['agentringnoanswer']=!![],agents[_0x12b564[_0x57d1a0(0x184)]]['agentringnoanswerAt']=utils[_0x57d1a0(0x177)](),agents[_0x12b564['destuniqueid']][_0x57d1a0(0x181)]=_0x57d1a0(0x17f),agents[_0x12b564[_0x57d1a0(0x184)]][_0x57d1a0(0x161)]=_0x57d1a0(0x17f),agents[_0x12b564[_0x57d1a0(0x184)]]['holdtime']=_0x12b564[_0x57d1a0(0x174)]?parseInt(_0x12b564[_0x57d1a0(0x174)])/0x3e8:0x0,agents[_0x12b564[_0x57d1a0(0x184)]][_0x57d1a0(0x173)]=0x0,unanswered[_0x57d1a0(0x194)](_0x12b564['destuniqueid']));}catch(_0xb47d31){utils[_0x57d1a0(0x168)](_0xb47d31[_0x57d1a0(0x186)]);}},exports[a1385_0x134209(0x185)]=function(_0x378ffe){try{_['forIn'](agents,function(_0x118330){const _0x152ea3=a1385_0x2e3e;_0x118330[_0x152ea3(0x160)]==_0x378ffe[_0x152ea3(0x160)]&&!_[_0x152ea3(0x15c)](unanswered,_0x118330[_0x152ea3(0x184)])&&(_0x118330[_0x152ea3(0x175)]=!![],_0x118330[_0x152ea3(0x15a)]=utils[_0x152ea3(0x177)](),_0x118330[_0x152ea3(0x181)]=_0x152ea3(0x16e),_0x118330[_0x152ea3(0x161)]=_0x152ea3(0x16e),_0x118330[_0x152ea3(0x15b)]=_0x378ffe[_0x152ea3(0x15b)],_0x118330['talktime']=0x0,writeDB(_0x118330));});}catch(_0xc9a0a4){utils['error'](_0xc9a0a4['stack']);}},exports['agentconnect']=function(_0x759463){const _0x4a5a63=a1385_0x134209;try{agents[_0x759463[_0x4a5a63(0x184)]]&&(agents[_0x759463[_0x4a5a63(0x184)]][_0x4a5a63(0x18a)]=utils['now'](),agents[_0x759463[_0x4a5a63(0x184)]][_0x4a5a63(0x19a)]=_0x759463[_0x4a5a63(0x19a)],agents[_0x759463[_0x4a5a63(0x184)]][_0x4a5a63(0x170)]=_0x759463[_0x4a5a63(0x170)],agents[_0x759463[_0x4a5a63(0x184)]][_0x4a5a63(0x15b)]=_0x759463['ringtime'],agents[_0x759463[_0x4a5a63(0x184)]][_0x4a5a63(0x181)]=_0x4a5a63(0x162),_[_0x4a5a63(0x156)](agents,function(_0x298ddb){const _0x39b3fc=_0x4a5a63;_0x298ddb[_0x39b3fc(0x184)]!=_0x759463[_0x39b3fc(0x184)]&&_0x298ddb[_0x39b3fc(0x160)]==_0x759463[_0x39b3fc(0x160)]&&(_0x298ddb[_0x39b3fc(0x173)]=0x0,_0x298ddb['holdtime']=_0x759463[_0x39b3fc(0x174)],_0x298ddb['agentringnoanswer']=!![],_0x298ddb[_0x39b3fc(0x15a)]=utils[_0x39b3fc(0x177)](),_0x298ddb['lastevent']=_0x39b3fc(0x16d),_0x298ddb['reason']=_0x39b3fc(0x16d),_0x298ddb[_0x39b3fc(0x18b)]=_0x759463[_0x39b3fc(0x184)],_0x298ddb[_0x39b3fc(0x172)]=_0x759463[_0x39b3fc(0x197)],writeDB(_0x298ddb));}));}catch(_0x56db75){utils[_0x4a5a63(0x168)](_0x56db75[_0x4a5a63(0x186)]);}},exports[a1385_0x134209(0x164)]=function(_0x51e461){const _0x1750de=a1385_0x134209;try{!_[_0x1750de(0x178)](agents[_0x51e461[_0x1750de(0x184)]])&&(agents[_0x51e461[_0x1750de(0x184)]][_0x1750de(0x164)]=!![],agents[_0x51e461[_0x1750de(0x184)]]['agentcompleteAt']=utils[_0x1750de(0x177)](),agents[_0x51e461[_0x1750de(0x184)]][_0x1750de(0x173)]=utils[_0x1750de(0x182)](agents[_0x51e461[_0x1750de(0x184)]][_0x1750de(0x198)],agents[_0x51e461['destuniqueid']][_0x1750de(0x18a)]),agents[_0x51e461[_0x1750de(0x184)]][_0x1750de(0x161)]=_0x51e461[_0x1750de(0x161)],agents[_0x51e461[_0x1750de(0x184)]][_0x1750de(0x181)]=_0x1750de(0x155),writeDB(agents[_0x51e461[_0x1750de(0x184)]]));}catch(_0x38d0bd){utils[_0x1750de(0x168)](_0x38d0bd[_0x1750de(0x186)]);}},exports[a1385_0x134209(0x171)]=function(_0x27b014){const _0xfe0776=a1385_0x134209;try{!_[_0xfe0776(0x178)](agents[_0x27b014[_0xfe0776(0x183)]])&&(agents[_0x27b014[_0xfe0776(0x183)]][_0xfe0776(0x199)]=!![],agents[_0x27b014[_0xfe0776(0x183)]]['transfertype']='blind',agents[_0x27b014[_0xfe0776(0x183)]][_0xfe0776(0x18c)]=_0x27b014[_0xfe0776(0x17a)],agents[_0x27b014[_0xfe0776(0x183)]][_0xfe0776(0x159)]=agents[_0x27b014[_0xfe0776(0x183)]][_0xfe0776(0x160)]);}catch(_0x3e2e50){utils['error'](_0x3e2e50[_0xfe0776(0x186)]);}},exports[a1385_0x134209(0x196)]=function(_0x4a725c){const _0x3c7a55=a1385_0x134209;try{if(_0x4a725c['origtransfereruniqueid']==_0x4a725c[_0x3c7a55(0x15e)])!_[_0x3c7a55(0x178)](agents[_0x4a725c['secondtransfereruniqueid']])&&(agents[_0x4a725c[_0x3c7a55(0x17e)]][_0x3c7a55(0x199)]=!![],agents[_0x4a725c['secondtransfereruniqueid']][_0x3c7a55(0x169)]=_0x3c7a55(0x157),agents[_0x4a725c[_0x3c7a55(0x17e)]]['transferexten']=_0x4a725c[_0x3c7a55(0x18f)],agents[_0x4a725c['secondtransfereruniqueid']]['transferuniqueid']=_0x4a725c['origtransfereruniqueid']),_0x4a725c[_0x3c7a55(0x16c)]&&agents[_0x4a725c[_0x3c7a55(0x16c)]]&&(agents[_0x4a725c[_0x3c7a55(0x16c)]][_0x3c7a55(0x17d)]=0x1,transfers[_0x4a725c[_0x3c7a55(0x16c)]]=_[_0x3c7a55(0x15f)](agents[_0x4a725c[_0x3c7a55(0x16c)]]),transfers[_0x4a725c[_0x3c7a55(0x16c)]]['calleridnum']=agents[_0x4a725c['secondtransfereruniqueid']][_0x3c7a55(0x17b)],transfers[_0x4a725c[_0x3c7a55(0x16c)]][_0x3c7a55(0x193)]=agents[_0x4a725c[_0x3c7a55(0x17e)]][_0x3c7a55(0x193)],transfers[_0x4a725c[_0x3c7a55(0x16c)]][_0x3c7a55(0x18d)]=utils[_0x3c7a55(0x177)](),transfers[_0x4a725c[_0x3c7a55(0x16c)]][_0x3c7a55(0x18a)]=utils[_0x3c7a55(0x177)](),transfers[_0x4a725c[_0x3c7a55(0x16c)]][_0x3c7a55(0x15b)]=0x0,transfers[_0x4a725c[_0x3c7a55(0x16c)]][_0x3c7a55(0x17d)]=0x2);else _0x4a725c[_0x3c7a55(0x17e)]==_0x4a725c[_0x3c7a55(0x16f)]&&(!_[_0x3c7a55(0x178)](agents[_0x4a725c['origtransfereruniqueid']])&&(agents[_0x4a725c[_0x3c7a55(0x189)]]['transfer']=!![],agents[_0x4a725c[_0x3c7a55(0x189)]][_0x3c7a55(0x169)]=_0x3c7a55(0x157),agents[_0x4a725c[_0x3c7a55(0x189)]][_0x3c7a55(0x18c)]=_0x4a725c[_0x3c7a55(0x15d)],agents[_0x4a725c[_0x3c7a55(0x189)]][_0x3c7a55(0x159)]=_0x4a725c[_0x3c7a55(0x17e)]),_0x4a725c['transfertargetuniqueid']&&agents[_0x4a725c['transfertargetuniqueid']]&&(agents[_0x4a725c['transfertargetuniqueid']]['agententerreason']=0x1,transfers[_0x4a725c[_0x3c7a55(0x165)]]=_[_0x3c7a55(0x15f)](agents[_0x4a725c[_0x3c7a55(0x165)]]),transfers[_0x4a725c[_0x3c7a55(0x165)]][_0x3c7a55(0x17b)]=agents[_0x4a725c[_0x3c7a55(0x189)]][_0x3c7a55(0x17b)],transfers[_0x4a725c['transfertargetuniqueid']]['calleridname']=agents[_0x4a725c[_0x3c7a55(0x189)]]['calleridname'],transfers[_0x4a725c[_0x3c7a55(0x165)]][_0x3c7a55(0x18d)]=utils[_0x3c7a55(0x177)](),transfers[_0x4a725c[_0x3c7a55(0x165)]][_0x3c7a55(0x18a)]=utils[_0x3c7a55(0x177)](),transfers[_0x4a725c[_0x3c7a55(0x165)]][_0x3c7a55(0x15b)]=0x0,transfers[_0x4a725c[_0x3c7a55(0x165)]][_0x3c7a55(0x17d)]=0x2));}catch(_0x2c6da6){utils[_0x3c7a55(0x168)](_0x2c6da6['stack']);}},exports['hangup']=function(_0x2d53c4){const _0x160099=a1385_0x134209;try{if(agents[_0x2d53c4[_0x160099(0x160)]]&&agents[_0x2d53c4[_0x160099(0x160)]][_0x160099(0x161)]==='timeout'){_0x2d53c4['cause']==='21'&&(agents[_0x2d53c4[_0x160099(0x160)]][_0x160099(0x161)]=_0x160099(0x176),agents[_0x2d53c4[_0x160099(0x160)]][_0x160099(0x181)]='rejected');writeDB(agents[_0x2d53c4[_0x160099(0x160)]]);const _0x5370b5=unanswered[_0x160099(0x166)](_0x2d53c4[_0x160099(0x160)]);if(_0x5370b5>-0x1)unanswered['splice'](_0x5370b5,0x1);}transfers[_0x2d53c4[_0x160099(0x160)]]&&(transfers[_0x2d53c4[_0x160099(0x160)]][_0x160099(0x164)]=!![],transfers[_0x2d53c4[_0x160099(0x160)]][_0x160099(0x198)]=utils[_0x160099(0x177)](),transfers[_0x2d53c4[_0x160099(0x160)]]['talktime']=utils[_0x160099(0x182)](transfers[_0x2d53c4[_0x160099(0x160)]][_0x160099(0x198)],transfers[_0x2d53c4[_0x160099(0x160)]][_0x160099(0x18a)]),transfers[_0x2d53c4['uniqueid']][_0x160099(0x161)]=_0x160099(0x187),transfers[_0x2d53c4['uniqueid']][_0x160099(0x181)]='complete',writeDB(transfers[_0x2d53c4[_0x160099(0x160)]],!![])),agents[_0x2d53c4[_0x160099(0x160)]]&&agents[_0x2d53c4[_0x160099(0x160)]][_0x160099(0x18a)]&&(agents[_0x2d53c4[_0x160099(0x160)]]['agentcomplete']=!![],agents[_0x2d53c4[_0x160099(0x160)]][_0x160099(0x198)]=utils[_0x160099(0x177)](),agents[_0x2d53c4[_0x160099(0x160)]]['talktime']=utils[_0x160099(0x182)](agents[_0x2d53c4['uniqueid']][_0x160099(0x198)],agents[_0x2d53c4['uniqueid']][_0x160099(0x18a)]),agents[_0x2d53c4[_0x160099(0x160)]]['reason']=agents[_0x2d53c4[_0x160099(0x160)]][_0x160099(0x199)]?'transfer':_0x160099(0x187),agents[_0x2d53c4[_0x160099(0x160)]][_0x160099(0x181)]=_0x160099(0x155),writeDB(agents[_0x2d53c4[_0x160099(0x160)]]));}catch(_0x2e8926){utils[_0x160099(0x168)](_0x2e8926['stack']);}}; \ No newline at end of file diff --git a/server/services/xdr/calls.controller.js b/server/services/xdr/calls.controller.js index 076cf34..4e05138 100644 --- a/server/services/xdr/calls.controller.js +++ b/server/services/xdr/calls.controller.js @@ -1 +1 @@ -const a1222_0x4c7b=['toLowerCase','origtransfererchannel','musiconholdstartAt','destinationchannel','info','DOCUMENTATION','sipcallid','FAILED','destination','stack','newstate','secondtransfererchannel','lastIndexOf','transfereechannel','format','channelstate','billableseconds','now','calleridnum','ANSWERED','newchannel','substring','_attended','util','uniqueid','application','UserId','context','lodash','includes','hangup','xmd-queue','request','xmd-callerid','gotoif','exten','accountcode','transfer','error','calleridname','appdata','BUSY','xmd-originatecalleridnum','split','then','musiconholdstop','type','diffTime','systemanswertime','toNumber','xmd-contactid','source','channel','starttime','Queue','linkedid','userfield','NO\x20ANSWER','ContactId','execif','newexten','queue','callerid','isNil','CreateVoiceCallReport','mohtime','answertime','OutgoingSpoolFailed','set','getUserByInternal','attendedtransfer','xmd-callerid-preview','lastapplication','endtime','variable','xmcs-queue','localtwolinkedid','CALL|%s|%s|%s|%s|%s|%s|%s|%s','xmd-cdrtype','value','lastdata'];(function(_0x5ff407,_0x4c7b23){const _0xa071a3=function(_0x1c21a6){while(--_0x1c21a6){_0x5ff407['push'](_0x5ff407['shift']());}};_0xa071a3(++_0x4c7b23);}(a1222_0x4c7b,0x140));const a1222_0xa071=function(_0x5ff407,_0x4c7b23){_0x5ff407=_0x5ff407-0x0;let _0xa071a3=a1222_0x4c7b[_0x5ff407];return _0xa071a3;};const _0x2e1a54=a1222_0xa071;'use strict';const _=require(_0x2e1a54('0x20')),util=require(_0x2e1a54('0x1b')),utils=require('./utils'),dispositions=[_0x2e1a54('0x3d'),_0x2e1a54('0xb'),'FAILED',_0x2e1a54('0x3d'),_0x2e1a54('0x3d'),_0x2e1a54('0x3d'),_0x2e1a54('0x17'),_0x2e1a54('0x2d'),_0x2e1a54('0xb'),'FAILED','FAILED'],channels={};function writeDB(_0x1c21a6){const _0x96069c=_0x2e1a54;utils[_0x96069c('0x8')](util[_0x96069c('0x12')](_0x96069c('0x0'),_0x1c21a6[_0x96069c('0x1c')],_0x1c21a6[_0x96069c('0x38')],_0x1c21a6[_0x96069c('0x32')],_0x1c21a6['accountcode'],_0x1c21a6[_0x96069c('0x37')],_0x1c21a6[_0x96069c('0xc')],_0x1c21a6[_0x96069c('0x42')],_0x1c21a6['disposition'])),_0x1c21a6[_0x96069c('0x28')]?utils[_0x96069c('0x49')](_0x1c21a6[_0x96069c('0x28')])[_0x96069c('0x30')](function(_0x30754a){const _0x317370=_0x96069c;_0x30754a&&(_0x1c21a6[_0x317370('0x1e')]=_0x30754a['id']),utils[_0x317370('0x24')](_0x317370('0x44'),_0x1c21a6);}):utils['request'](_0x96069c('0x44'),_0x1c21a6),channels[_0x1c21a6['uniqueid']]&&delete channels[_0x1c21a6[_0x96069c('0x1c')]];}exports[_0x2e1a54('0x18')]=function(_0x3457d1){const _0x387981=_0x2e1a54;try{_0x3457d1[_0x387981('0x1c')]==_0x3457d1['linkedid']&&_0x3457d1[_0x387981('0x38')]!=_0x387981('0x47')&&(channels[_0x3457d1[_0x387981('0x1c')]]={'uniqueid':_0x3457d1[_0x387981('0x1c')],'accountcode':_0x3457d1['accountcode'],'source':_0x3457d1[_0x387981('0x16')],'destination':_0x3457d1[_0x387981('0x27')],'destinationcontext':_0x3457d1[_0x387981('0x1f')],'channel':_0x3457d1[_0x387981('0x38')],'starttime':utils[_0x387981('0x15')](),'answertime':null,'systemanswertime':null,'mohtime':0x0,'disposition':'NO\x20ANSWER','amaflags':_0x387981('0x9')});}catch(_0x32d9dd){utils[_0x387981('0x2a')](_0x32d9dd['stack']);}},exports[_0x2e1a54('0xe')]=function(_0x32567a){const _0x2edae7=_0x2e1a54;try{if(!_[_0x2edae7('0x43')](channels[_0x32567a[_0x2edae7('0x1c')]])&&_0x32567a['channelstate']==0x6)_[_0x2edae7('0x43')](channels[_0x32567a['uniqueid']][_0x2edae7('0x34')])&&(channels[_0x32567a['uniqueid']][_0x2edae7('0x34')]=utils[_0x2edae7('0x15')]());else!_['isNil'](channels[_0x32567a[_0x2edae7('0x3b')]])&&_0x32567a['channelstate']==0x6&&_0x32567a[_0x2edae7('0x1f')]!=_0x2edae7('0x29')&&(channels[_0x32567a[_0x2edae7('0x3b')]]['accountcode']=_0x32567a[_0x2edae7('0x28')],channels[_0x32567a[_0x2edae7('0x3b')]][_0x2edae7('0x7')]=_0x32567a[_0x2edae7('0x38')],_['isNil'](channels[_0x32567a[_0x2edae7('0x3b')]][_0x2edae7('0x46')])&&(channels[_0x32567a['linkedid']][_0x2edae7('0x46')]=utils[_0x2edae7('0x15')]()),channels[_0x32567a['linkedid']]['disposition']=dispositions[_[_0x2edae7('0x35')](_0x32567a[_0x2edae7('0x13')])]||_0x2edae7('0x17'));}catch(_0x301411){utils['error'](_0x301411[_0x2edae7('0xd')]);}},exports[_0x2e1a54('0x22')]=function(_0x505620){const _0x383bdc=_0x2e1a54;try{!_['isNil'](channels[_0x505620['uniqueid']])&&(_[_0x383bdc('0x43')](channels[_0x505620[_0x383bdc('0x1c')]][_0x383bdc('0x42')])&&(channels[_0x505620[_0x383bdc('0x1c')]][_0x383bdc('0x42')]=_0x505620[_0x383bdc('0x2b')]+'\x20<'+_0x505620['calleridnum']+'>'),channels[_0x505620['uniqueid']][_0x383bdc('0x4d')]=utils[_0x383bdc('0x15')](),channels[_0x505620[_0x383bdc('0x1c')]]['duration']=utils[_0x383bdc('0x33')](channels[_0x505620['uniqueid']][_0x383bdc('0x4d')],channels[_0x505620['uniqueid']][_0x383bdc('0x39')]),channels[_0x505620[_0x383bdc('0x1c')]][_0x383bdc('0x14')]=channels[_0x505620[_0x383bdc('0x1c')]]['answertime']?utils[_0x383bdc('0x33')](channels[_0x505620['uniqueid']][_0x383bdc('0x4d')],channels[_0x505620[_0x383bdc('0x1c')]][_0x383bdc('0x46')]):0x0,writeDB(channels[_0x505620[_0x383bdc('0x1c')]]));}catch(_0x20ec92){utils[_0x383bdc('0x2a')](_0x20ec92[_0x383bdc('0xd')]);}},exports[_0x2e1a54('0x4a')]=function(_0x2dc077){const _0x45d3db=_0x2e1a54;try{if(!_['isNil'](channels[_0x2dc077['localtwolinkedid']])){if(channels[_0x2dc077[_0x45d3db('0x50')]][_0x45d3db('0x38')]==_0x2dc077[_0x45d3db('0x11')])channels[_0x2dc077['localtwolinkedid']][_0x45d3db('0x7')]=_0x2dc077[_0x45d3db('0xf')],channels[_0x2dc077['localtwolinkedid']]['userfield']=_0x45d3db('0x1a');else(channels[_0x2dc077[_0x45d3db('0x50')]]['channel']=_0x2dc077['transfertargetchannel'])&&(channels[_0x2dc077[_0x45d3db('0x50')]][_0x45d3db('0x7')]=_0x2dc077[_0x45d3db('0x5')],channels[_0x2dc077[_0x45d3db('0x50')]][_0x45d3db('0x3c')]=_0x45d3db('0x1a'));}}catch(_0x3adeef){utils[_0x45d3db('0x2a')](_0x3adeef[_0x45d3db('0xd')]);}},exports['musiconholdstart']=function(_0x4392f3){const _0x3c0e98=_0x2e1a54;try{!_[_0x3c0e98('0x43')](channels[_0x4392f3[_0x3c0e98('0x1c')]])&&(channels[_0x4392f3[_0x3c0e98('0x1c')]][_0x3c0e98('0x6')]=utils['now']());}catch(_0x4f0c2e){utils[_0x3c0e98('0x2a')](_0x4f0c2e[_0x3c0e98('0xd')]);}},exports[_0x2e1a54('0x31')]=function(_0x2f2f78){const _0x509623=_0x2e1a54;try{!_[_0x509623('0x43')](channels[_0x2f2f78['uniqueid']])&&(!_[_0x509623('0x43')](channels[_0x2f2f78[_0x509623('0x1c')]][_0x509623('0x6')])&&(channels[_0x2f2f78['uniqueid']][_0x509623('0x45')]+=utils[_0x509623('0x33')](utils[_0x509623('0x15')](),channels[_0x2f2f78['uniqueid']][_0x509623('0x6')]),delete channels[_0x2f2f78['uniqueid']]['musiconholdstartAt']));}catch(_0x503e4e){utils[_0x509623('0x2a')](_0x503e4e[_0x509623('0xd')]);}},exports['varset']=function(_0x25bf9e){const _0x1f1d18=_0x2e1a54;try{!_[_0x1f1d18('0x43')](channels[_0x25bf9e[_0x1f1d18('0x1c')]])&&(!_['isNil'](_0x25bf9e[_0x1f1d18('0x4e')][_0x1f1d18('0x2e')])&&(channels[_0x25bf9e['uniqueid']][_0x1f1d18('0x37')]=_0x25bf9e[_0x1f1d18('0x2')]),!_[_0x1f1d18('0x43')](_0x25bf9e[_0x1f1d18('0x4e')]['xmd-phone'])&&(channels[_0x25bf9e[_0x1f1d18('0x1c')]][_0x1f1d18('0xc')]=_0x25bf9e[_0x1f1d18('0x2')],channels[_0x25bf9e[_0x1f1d18('0x1c')]]['callerid']='\x22'+_0x25bf9e[_0x1f1d18('0x2')]+'\x22\x20<'+_0x25bf9e['value']+'>'),(!_[_0x1f1d18('0x43')](_0x25bf9e[_0x1f1d18('0x4e')][_0x1f1d18('0x4b')])||!_[_0x1f1d18('0x43')](_0x25bf9e[_0x1f1d18('0x4e')][_0x1f1d18('0x25')]))&&(channels[_0x25bf9e['uniqueid']][_0x1f1d18('0x42')]=_0x25bf9e[_0x1f1d18('0x2')]),(!_['isNil'](_0x25bf9e['variable'][_0x1f1d18('0x23')])||!_[_0x1f1d18('0x43')](_0x25bf9e[_0x1f1d18('0x4e')][_0x1f1d18('0x4f')]))&&(channels[_0x25bf9e[_0x1f1d18('0x1c')]][_0x1f1d18('0x4c')]=_0x1f1d18('0x3a'),channels[_0x25bf9e['uniqueid']]['lastdata']=_0x25bf9e['value'],channels[_0x25bf9e['uniqueid']][_0x1f1d18('0x41')]=!![]),!_['isNil'](_0x25bf9e[_0x1f1d18('0x4e')][_0x1f1d18('0x36')])&&(channels[_0x25bf9e[_0x1f1d18('0x1c')]][_0x1f1d18('0x3e')]=_0x25bf9e[_0x1f1d18('0x2')]),!_[_0x1f1d18('0x43')](_0x25bf9e[_0x1f1d18('0x4e')][_0x1f1d18('0x1')])&&(channels[_0x25bf9e[_0x1f1d18('0x1c')]]['type']=_0x25bf9e['value']),!_[_0x1f1d18('0x43')](_0x25bf9e[_0x1f1d18('0x4e')]['outboundrouteid'])&&(channels[_0x25bf9e[_0x1f1d18('0x1c')]]['routeid']=_0x25bf9e[_0x1f1d18('0x2')]),!_[_0x1f1d18('0x43')](_0x25bf9e[_0x1f1d18('0x4e')][_0x1f1d18('0xa')])&&(channels[_0x25bf9e[_0x1f1d18('0x1c')]][_0x1f1d18('0xa')]=_0x25bf9e[_0x1f1d18('0x2')]));}catch(_0x552f43){utils[_0x1f1d18('0x2a')](_0x552f43['stack']);}},exports[_0x2e1a54('0x40')]=function(_0x5bbc78){const _0x205ea2=_0x2e1a54;try{if(!_['isNil'](channels[_0x5bbc78[_0x205ea2('0x1c')]])){if(_0x5bbc78[_0x205ea2('0x1d')][_0x205ea2('0x4')]()==_0x205ea2('0x48')&&_['startsWith'](_0x5bbc78[_0x205ea2('0x2c')][_0x205ea2('0x4')](),'cdr')){const _0xec5a7b=_0x5bbc78[_0x205ea2('0x2c')][_0x205ea2('0x2f')]('='),_0x4ea5cb=_0xec5a7b[0x0][_0x205ea2('0x19')](_0xec5a7b[0x0]['lastIndexOf']('(')+0x1,_0xec5a7b[0x0][_0x205ea2('0x10')](')')),_0x4d7ac9=_0xec5a7b[0x1];channels[_0x5bbc78['uniqueid']][_0x4ea5cb]=_0x4d7ac9;}!_[_0x205ea2('0x21')]([_0x205ea2('0x22'),'noop',_0x205ea2('0x3f'),_0x205ea2('0x48'),_0x205ea2('0x26')],_0x5bbc78[_0x205ea2('0x1d')][_0x205ea2('0x4')]())&&(channels[_0x5bbc78[_0x205ea2('0x1c')]]['lastapplication']=_0x5bbc78[_0x205ea2('0x1d')],channels[_0x5bbc78[_0x205ea2('0x1c')]][_0x205ea2('0x3')]=_0x5bbc78[_0x205ea2('0x2c')]);}}catch(_0x24c0e2){utils['error'](_0x24c0e2[_0x205ea2('0xd')]);}}; \ No newline at end of file +const a1386_0x2524=['appdata','request','now','routeid','isNil','FAILED','OutgoingSpoolFailed','startsWith','getUserByInternal','musiconholdstart','application','uniqueid','toLowerCase','transfer','context','DOCUMENTATION','newexten','transfertargetchannel','lastIndexOf','Queue','calleridnum','accountcode','musiconholdstartAt','cdr','\x22\x20<','endtime','destination','answertime','toNumber','source','newstate','duration','channel','exten','value','execif','ContactId','sipcallid','xmd-callerid','origtransfererchannel','variable','NO\x20ANSWER','xmcs-queue','mohtime','info','type','_attended','substring','includes','lastdata','stack','ANSWERED','callerid','channelstate','destinationchannel','outboundrouteid','then','lodash','newchannel','xmd-originatecalleridnum','./utils','set','format','split','disposition','queue','diffTime','xmd-phone','CreateVoiceCallReport','musiconholdstop','attendedtransfer','CALL|%s|%s|%s|%s|%s|%s|%s|%s','localtwolinkedid','xmd-contactid','hangup','BUSY','util','linkedid','error'];(function(_0x4e23b9,_0x5a7d72){const _0x2524a1=function(_0x53a912){while(--_0x53a912){_0x4e23b9['push'](_0x4e23b9['shift']());}};_0x2524a1(++_0x5a7d72);}(a1386_0x2524,0x180));const a1386_0x53a9=function(_0x4e23b9,_0x5a7d72){_0x4e23b9=_0x4e23b9-0x171;let _0x2524a1=a1386_0x2524[_0x4e23b9];return _0x2524a1;};const a1386_0x3a1b45=a1386_0x53a9;'use strict';const _=require(a1386_0x3a1b45(0x1b5)),util=require(a1386_0x3a1b45(0x179)),utils=require(a1386_0x3a1b45(0x1b8)),dispositions=[a1386_0x3a1b45(0x1a5),a1386_0x3a1b45(0x181),a1386_0x3a1b45(0x181),a1386_0x3a1b45(0x1a5),a1386_0x3a1b45(0x1a5),a1386_0x3a1b45(0x1a5),a1386_0x3a1b45(0x1af),a1386_0x3a1b45(0x178),a1386_0x3a1b45(0x181),'FAILED','FAILED'],channels={};function writeDB(_0x457ac1){const _0xcbac07=a1386_0x3a1b45;utils[_0xcbac07(0x1a8)](util[_0xcbac07(0x1ba)](_0xcbac07(0x174),_0x457ac1['uniqueid'],_0x457ac1[_0xcbac07(0x19c)],_0x457ac1[_0xcbac07(0x1a9)],_0x457ac1[_0xcbac07(0x191)],_0x457ac1['source'],_0x457ac1[_0xcbac07(0x196)],_0x457ac1[_0xcbac07(0x1b0)],_0x457ac1[_0xcbac07(0x1bc)])),_0x457ac1[_0xcbac07(0x191)]?utils[_0xcbac07(0x184)](_0x457ac1['accountcode'])[_0xcbac07(0x1b4)](function(_0x23a2fd){const _0x1afda6=_0xcbac07;_0x23a2fd&&(_0x457ac1['UserId']=_0x23a2fd['id']),utils['request'](_0x1afda6(0x171),_0x457ac1);}):utils[_0xcbac07(0x17d)]('CreateVoiceCallReport',_0x457ac1),channels[_0x457ac1['uniqueid']]&&delete channels[_0x457ac1['uniqueid']];}exports[a1386_0x3a1b45(0x1b6)]=function(_0x52f9ac){const _0x564098=a1386_0x3a1b45;try{_0x52f9ac[_0x564098(0x187)]==_0x52f9ac[_0x564098(0x17a)]&&_0x52f9ac[_0x564098(0x19c)]!=_0x564098(0x182)&&(channels[_0x52f9ac[_0x564098(0x187)]]={'uniqueid':_0x52f9ac['uniqueid'],'accountcode':_0x52f9ac['accountcode'],'source':_0x52f9ac[_0x564098(0x190)],'destination':_0x52f9ac[_0x564098(0x19d)],'destinationcontext':_0x52f9ac['context'],'channel':_0x52f9ac[_0x564098(0x19c)],'starttime':utils['now'](),'answertime':null,'systemanswertime':null,'mohtime':0x0,'disposition':'NO\x20ANSWER','amaflags':_0x564098(0x18b)});}catch(_0x4bcfe6){utils['error'](_0x4bcfe6['stack']);}},exports[a1386_0x3a1b45(0x19a)]=function(_0x485a4e){const _0x19f489=a1386_0x3a1b45;try{if(!_[_0x19f489(0x180)](channels[_0x485a4e['uniqueid']])&&_0x485a4e[_0x19f489(0x1b1)]==0x6)_[_0x19f489(0x180)](channels[_0x485a4e[_0x19f489(0x187)]]['systemanswertime'])&&(channels[_0x485a4e[_0x19f489(0x187)]]['systemanswertime']=utils[_0x19f489(0x17e)]());else!_[_0x19f489(0x180)](channels[_0x485a4e[_0x19f489(0x17a)]])&&_0x485a4e[_0x19f489(0x1b1)]==0x6&&_0x485a4e[_0x19f489(0x18a)]!=_0x19f489(0x189)&&(channels[_0x485a4e[_0x19f489(0x17a)]]['accountcode']=_0x485a4e['accountcode'],channels[_0x485a4e[_0x19f489(0x17a)]]['destinationchannel']=_0x485a4e[_0x19f489(0x19c)],_[_0x19f489(0x180)](channels[_0x485a4e['linkedid']][_0x19f489(0x197)])&&(channels[_0x485a4e['linkedid']][_0x19f489(0x197)]=utils[_0x19f489(0x17e)]()),channels[_0x485a4e[_0x19f489(0x17a)]][_0x19f489(0x1bc)]=dispositions[_[_0x19f489(0x198)](_0x485a4e['channelstate'])]||_0x19f489(0x1af));}catch(_0xf31c16){utils[_0x19f489(0x17b)](_0xf31c16[_0x19f489(0x1ae)]);}},exports['hangup']=function(_0x55d1c9){const _0x5159b5=a1386_0x3a1b45;try{!_['isNil'](channels[_0x55d1c9['uniqueid']])&&(_['isNil'](channels[_0x55d1c9[_0x5159b5(0x187)]][_0x5159b5(0x1b0)])&&(channels[_0x55d1c9['uniqueid']][_0x5159b5(0x1b0)]=_0x55d1c9['calleridname']+'\x20<'+_0x55d1c9[_0x5159b5(0x190)]+'>'),channels[_0x55d1c9[_0x5159b5(0x187)]][_0x5159b5(0x195)]=utils['now'](),channels[_0x55d1c9['uniqueid']][_0x5159b5(0x19b)]=utils[_0x5159b5(0x1be)](channels[_0x55d1c9['uniqueid']][_0x5159b5(0x195)],channels[_0x55d1c9[_0x5159b5(0x187)]]['starttime']),channels[_0x55d1c9['uniqueid']]['billableseconds']=channels[_0x55d1c9[_0x5159b5(0x187)]][_0x5159b5(0x197)]?utils['diffTime'](channels[_0x55d1c9[_0x5159b5(0x187)]][_0x5159b5(0x195)],channels[_0x55d1c9[_0x5159b5(0x187)]][_0x5159b5(0x197)]):0x0,writeDB(channels[_0x55d1c9[_0x5159b5(0x187)]]));}catch(_0x110544){utils[_0x5159b5(0x17b)](_0x110544[_0x5159b5(0x1ae)]);}},exports[a1386_0x3a1b45(0x173)]=function(_0xf9fcdb){const _0x54ee61=a1386_0x3a1b45;try{if(!_['isNil'](channels[_0xf9fcdb['localtwolinkedid']])){if(channels[_0xf9fcdb[_0x54ee61(0x175)]]['channel']==_0xf9fcdb['transfereechannel'])channels[_0xf9fcdb['localtwolinkedid']][_0x54ee61(0x1b2)]=_0xf9fcdb['secondtransfererchannel'],channels[_0xf9fcdb[_0x54ee61(0x175)]]['userfield']=_0x54ee61(0x1aa);else(channels[_0xf9fcdb[_0x54ee61(0x175)]][_0x54ee61(0x19c)]=_0xf9fcdb[_0x54ee61(0x18d)])&&(channels[_0xf9fcdb[_0x54ee61(0x175)]][_0x54ee61(0x1b2)]=_0xf9fcdb[_0x54ee61(0x1a3)],channels[_0xf9fcdb['localtwolinkedid']]['userfield']=_0x54ee61(0x1aa));}}catch(_0xf7865b){utils[_0x54ee61(0x17b)](_0xf7865b['stack']);}},exports[a1386_0x3a1b45(0x185)]=function(_0x41aa27){const _0x5c03f4=a1386_0x3a1b45;try{!_[_0x5c03f4(0x180)](channels[_0x41aa27[_0x5c03f4(0x187)]])&&(channels[_0x41aa27[_0x5c03f4(0x187)]]['musiconholdstartAt']=utils['now']());}catch(_0x3df9dd){utils[_0x5c03f4(0x17b)](_0x3df9dd['stack']);}},exports[a1386_0x3a1b45(0x172)]=function(_0x21a2ac){const _0x1fec4d=a1386_0x3a1b45;try{!_[_0x1fec4d(0x180)](channels[_0x21a2ac[_0x1fec4d(0x187)]])&&(!_[_0x1fec4d(0x180)](channels[_0x21a2ac['uniqueid']]['musiconholdstartAt'])&&(channels[_0x21a2ac[_0x1fec4d(0x187)]][_0x1fec4d(0x1a7)]+=utils[_0x1fec4d(0x1be)](utils['now'](),channels[_0x21a2ac[_0x1fec4d(0x187)]][_0x1fec4d(0x192)]),delete channels[_0x21a2ac[_0x1fec4d(0x187)]][_0x1fec4d(0x192)]));}catch(_0x2447bd){utils[_0x1fec4d(0x17b)](_0x2447bd[_0x1fec4d(0x1ae)]);}},exports['varset']=function(_0x1eb51a){const _0x5396ce=a1386_0x3a1b45;try{!_['isNil'](channels[_0x1eb51a[_0x5396ce(0x187)]])&&(!_[_0x5396ce(0x180)](_0x1eb51a[_0x5396ce(0x1a4)][_0x5396ce(0x1b7)])&&(channels[_0x1eb51a['uniqueid']][_0x5396ce(0x199)]=_0x1eb51a[_0x5396ce(0x19e)]),!_[_0x5396ce(0x180)](_0x1eb51a[_0x5396ce(0x1a4)][_0x5396ce(0x1bf)])&&(channels[_0x1eb51a[_0x5396ce(0x187)]][_0x5396ce(0x196)]=_0x1eb51a[_0x5396ce(0x19e)],channels[_0x1eb51a[_0x5396ce(0x187)]]['callerid']='\x22'+_0x1eb51a[_0x5396ce(0x19e)]+_0x5396ce(0x194)+_0x1eb51a['value']+'>'),(!_['isNil'](_0x1eb51a[_0x5396ce(0x1a4)]['xmd-callerid-preview'])||!_[_0x5396ce(0x180)](_0x1eb51a[_0x5396ce(0x1a4)][_0x5396ce(0x1a2)]))&&(channels[_0x1eb51a[_0x5396ce(0x187)]][_0x5396ce(0x1b0)]=_0x1eb51a[_0x5396ce(0x19e)]),(!_['isNil'](_0x1eb51a[_0x5396ce(0x1a4)]['xmd-queue'])||!_[_0x5396ce(0x180)](_0x1eb51a[_0x5396ce(0x1a4)][_0x5396ce(0x1a6)]))&&(channels[_0x1eb51a[_0x5396ce(0x187)]]['lastapplication']=_0x5396ce(0x18f),channels[_0x1eb51a[_0x5396ce(0x187)]][_0x5396ce(0x1ad)]=_0x1eb51a[_0x5396ce(0x19e)],channels[_0x1eb51a[_0x5396ce(0x187)]][_0x5396ce(0x1bd)]=!![]),!_[_0x5396ce(0x180)](_0x1eb51a[_0x5396ce(0x1a4)][_0x5396ce(0x176)])&&(channels[_0x1eb51a[_0x5396ce(0x187)]][_0x5396ce(0x1a0)]=_0x1eb51a['value']),!_[_0x5396ce(0x180)](_0x1eb51a[_0x5396ce(0x1a4)]['xmd-cdrtype'])&&(channels[_0x1eb51a[_0x5396ce(0x187)]][_0x5396ce(0x1a9)]=_0x1eb51a[_0x5396ce(0x19e)]),!_[_0x5396ce(0x180)](_0x1eb51a[_0x5396ce(0x1a4)][_0x5396ce(0x1b3)])&&(channels[_0x1eb51a[_0x5396ce(0x187)]][_0x5396ce(0x17f)]=_0x1eb51a[_0x5396ce(0x19e)]),!_['isNil'](_0x1eb51a[_0x5396ce(0x1a4)][_0x5396ce(0x1a1)])&&(channels[_0x1eb51a[_0x5396ce(0x187)]][_0x5396ce(0x1a1)]=_0x1eb51a[_0x5396ce(0x19e)]));}catch(_0x3779d9){utils[_0x5396ce(0x17b)](_0x3779d9[_0x5396ce(0x1ae)]);}},exports[a1386_0x3a1b45(0x18c)]=function(_0x501981){const _0x2cdd7b=a1386_0x3a1b45;try{if(!_[_0x2cdd7b(0x180)](channels[_0x501981[_0x2cdd7b(0x187)]])){if(_0x501981['application'][_0x2cdd7b(0x188)]()==_0x2cdd7b(0x1b9)&&_[_0x2cdd7b(0x183)](_0x501981[_0x2cdd7b(0x17c)][_0x2cdd7b(0x188)](),_0x2cdd7b(0x193))){const _0x331035=_0x501981[_0x2cdd7b(0x17c)][_0x2cdd7b(0x1bb)]('='),_0x303a1b=_0x331035[0x0][_0x2cdd7b(0x1ab)](_0x331035[0x0][_0x2cdd7b(0x18e)]('(')+0x1,_0x331035[0x0][_0x2cdd7b(0x18e)](')')),_0xef21dd=_0x331035[0x1];channels[_0x501981['uniqueid']][_0x303a1b]=_0xef21dd;}!_[_0x2cdd7b(0x1ac)]([_0x2cdd7b(0x177),'noop',_0x2cdd7b(0x19f),'set','gotoif'],_0x501981['application'][_0x2cdd7b(0x188)]())&&(channels[_0x501981['uniqueid']]['lastapplication']=_0x501981[_0x2cdd7b(0x186)],channels[_0x501981[_0x2cdd7b(0x187)]][_0x2cdd7b(0x1ad)]=_0x501981['appdata']);}}catch(_0x5ac0ef){utils[_0x2cdd7b(0x17b)](_0x5ac0ef[_0x2cdd7b(0x1ae)]);}}; \ No newline at end of file diff --git a/server/services/xdr/core.controller.js b/server/services/xdr/core.controller.js index 9a05632..dbe6ce1 100644 --- a/server/services/xdr/core.controller.js +++ b/server/services/xdr/core.controller.js @@ -1 +1 @@ -const a1223_0x5e67=['CONNECTED','error','CLOSE','./utils','shutdown','FULLYBOOTED','managerevent','close','info','fullybooted'];(function(_0x288749,_0x5e6734){const _0x2fc29e=function(_0x1dc44f){while(--_0x1dc44f){_0x288749['push'](_0x288749['shift']());}};_0x2fc29e(++_0x5e6734);}(a1223_0x5e67,0x19f));const a1223_0x2fc2=function(_0x288749,_0x5e6734){_0x288749=_0x288749-0x0;let _0x2fc29e=a1223_0x5e67[_0x288749];return _0x2fc29e;};const _0x421f96=a1223_0x2fc2;'use strict';const utils=require(_0x421f96('0x8'));exports['connect']=function(){const _0xb1573d=_0x421f96;utils[_0xb1573d('0x3')](_0xb1573d('0x5'));},exports[_0x421f96('0x9')]=function(){const _0x5b28f6=_0x421f96;utils[_0x5b28f6('0x3')]('SHUTDOWN');},exports[_0x421f96('0x4')]=function(){const _0x2503b7=_0x421f96;utils[_0x2503b7('0x3')](_0x2503b7('0x0'));},exports['error']=function(_0x1dc44f){const _0x42110c=_0x421f96;utils[_0x42110c('0x6')](_0x1dc44f);},exports[_0x421f96('0x2')]=function(){const _0x546257=_0x421f96;utils['info'](_0x546257('0x7'));},exports[_0x421f96('0x1')]=function(){}; \ No newline at end of file +const a1387_0x92bc=['connect','managerevent','CLOSE','shutdown','FULLYBOOTED','info','error','CONNECTED','./utils','SHUTDOWN'];(function(_0x4f5700,_0x29434d){const _0x92bc16=function(_0x50f5ab){while(--_0x50f5ab){_0x4f5700['push'](_0x4f5700['shift']());}};_0x92bc16(++_0x29434d);}(a1387_0x92bc,0x18b));const a1387_0x50f5=function(_0x4f5700,_0x29434d){_0x4f5700=_0x4f5700-0x177;let _0x92bc16=a1387_0x92bc[_0x4f5700];return _0x92bc16;};const a1387_0x2466ec=a1387_0x50f5;'use strict';const utils=require(a1387_0x2466ec(0x17a));exports[a1387_0x2466ec(0x17c)]=function(){const _0x22ac11=a1387_0x2466ec;utils[_0x22ac11(0x177)](_0x22ac11(0x179));},exports[a1387_0x2466ec(0x17f)]=function(){const _0x163d44=a1387_0x2466ec;utils['info'](_0x163d44(0x17b));},exports['fullybooted']=function(){const _0x431e20=a1387_0x2466ec;utils[_0x431e20(0x177)](_0x431e20(0x180));},exports[a1387_0x2466ec(0x178)]=function(_0x33aa3e){const _0x2d4bdd=a1387_0x2466ec;utils[_0x2d4bdd(0x178)](_0x33aa3e);},exports['close']=function(){const _0x33d740=a1387_0x2466ec;utils[_0x33d740(0x177)](_0x33d740(0x17e));},exports[a1387_0x2466ec(0x17d)]=function(){}; \ No newline at end of file diff --git a/server/services/xdr/dials.controller.js b/server/services/xdr/dials.controller.js index 22e0fb7..e3eb40e 100644 --- a/server/services/xdr/dials.controller.js +++ b/server/services/xdr/dials.controller.js @@ -1 +1 @@ -const a1224_0x1a38=['error','dialstring','lodash','endtime','lastevent','newexten','answertime','isNil','assign','uniqueid','variable','DIAL|%s|%s|%s|%s|%s|%s','toLowerCase','dialstatus','channel','varset','startsWith','diffTime','connectedlinenum','outboundrouteid','now','value','duration','CreateVoiceDialReport','./utils','starttime','complete','dialbegin','holdtime','cdr(routeid)','connect','stack','called','appdata'];(function(_0x12c3a8,_0x1a38fa){const _0x57c3b0=function(_0x37f920){while(--_0x37f920){_0x12c3a8['push'](_0x12c3a8['shift']());}};_0x57c3b0(++_0x1a38fa);}(a1224_0x1a38,0x11e));const a1224_0x57c3=function(_0x12c3a8,_0x1a38fa){_0x12c3a8=_0x12c3a8-0x0;let _0x57c3b0=a1224_0x1a38[_0x12c3a8];return _0x57c3b0;};const _0x3b92cf=a1224_0x57c3;'use strict';const _=require(_0x3b92cf('0x16')),util=require('util'),utils=require(_0x3b92cf('0xa')),dials={};function writeDB(_0x37f920){const _0x3d7015=_0x3b92cf;utils['info'](util['format'](_0x3d7015('0x1f'),_0x37f920[_0x3d7015('0x1d')],_0x37f920[_0x3d7015('0x0')],_0x37f920[_0x3d7015('0x15')],_0x37f920['calleridnum'],_0x37f920[_0x3d7015('0x4')],_0x37f920[_0x3d7015('0x21')])),utils['request'](_0x3d7015('0x9'),_0x37f920),delete dials[_0x37f920['uniqueid']];}exports[_0x3b92cf('0x19')]=function(_0x968b12){const _0x2d965f=_0x3b92cf;try{if(_0x968b12['application'][_0x2d965f('0x20')]()=='set'&&_[_0x2d965f('0x2')](_0x968b12['appdata'][_0x2d965f('0x20')](),_0x2d965f('0xf'))){const _0x17fb58=_0x968b12[_0x2d965f('0x13')]['split']('=');dials[_0x968b12['uniqueid']]={'routeId':_0x17fb58[0x1]};}}catch(_0x464574){utils[_0x2d965f('0x14')](_0x464574['stack']);}},exports[_0x3b92cf('0x1')]=function(_0x4d6c1b){const _0x565269=_0x3b92cf;try{!_[_0x565269('0x1b')](_0x4d6c1b[_0x565269('0x1e')][_0x565269('0x5')])&&(dials[_0x4d6c1b['uniqueid']]={'routeId':_0x4d6c1b[_0x565269('0x7')]});}catch(_0x5a06da){utils[_0x565269('0x14')](_0x5a06da['stack']);}},exports[_0x3b92cf('0xd')]=function(_0x4b8c09){const _0x217f8f=_0x3b92cf;try{!_[_0x217f8f('0x1b')](dials[_0x4b8c09[_0x217f8f('0x1d')]])&&(dials[_0x4b8c09[_0x217f8f('0x1d')]]=_[_0x217f8f('0x1c')](dials[_0x4b8c09[_0x217f8f('0x1d')]],_0x4b8c09),dials[_0x4b8c09[_0x217f8f('0x1d')]]['starttime']=utils['now'](),dials[_0x4b8c09[_0x217f8f('0x1d')]]['lastevent']=_0x217f8f('0x12'));}catch(_0x4f8f01){utils[_0x217f8f('0x14')](_0x4f8f01[_0x217f8f('0x11')]);}},exports['dialend']=function(_0x1e8255){const _0x127909=_0x3b92cf;try{!_[_0x127909('0x1b')](dials[_0x1e8255[_0x127909('0x1d')]])&&(dials[_0x1e8255['uniqueid']][_0x127909('0x21')]=_0x1e8255[_0x127909('0x21')],_0x1e8255[_0x127909('0x21')]=='ANSWER'&&(dials[_0x1e8255['uniqueid']]=_['assign'](dials[_0x1e8255['uniqueid']],_0x1e8255),dials[_0x1e8255[_0x127909('0x1d')]][_0x127909('0x1a')]=utils['now'](),dials[_0x1e8255[_0x127909('0x1d')]][_0x127909('0x18')]=_0x127909('0x10')));}catch(_0x19630f){utils[_0x127909('0x14')](_0x19630f[_0x127909('0x11')]);}},exports['hangup']=function(_0x431670){const _0x210c65=_0x3b92cf;try{!_[_0x210c65('0x1b')](dials[_0x431670[_0x210c65('0x1d')]])&&(dials[_0x431670[_0x210c65('0x1d')]]=_[_0x210c65('0x1c')](dials[_0x431670[_0x210c65('0x1d')]],{'endtime':utils[_0x210c65('0x6')](),'lastevent':_0x210c65('0xc')}),dials[_0x431670['uniqueid']][_0x210c65('0x8')]=utils[_0x210c65('0x3')](dials[_0x431670['uniqueid']][_0x210c65('0x17')],dials[_0x431670[_0x210c65('0x1d')]][_0x210c65('0xb')]),dials[_0x431670[_0x210c65('0x1d')]][_0x210c65('0xe')]=utils[_0x210c65('0x3')](dials[_0x431670[_0x210c65('0x1d')]][_0x210c65('0x1a')]||dials[_0x431670[_0x210c65('0x1d')]]['endtime'],dials[_0x431670['uniqueid']][_0x210c65('0xb')]),dials[_0x431670[_0x210c65('0x1d')]]['billableseconds']=dials[_0x431670[_0x210c65('0x1d')]][_0x210c65('0x1a')]?utils[_0x210c65('0x3')](dials[_0x431670[_0x210c65('0x1d')]][_0x210c65('0x17')],dials[_0x431670[_0x210c65('0x1d')]][_0x210c65('0x1a')]):0x0,writeDB(dials[_0x431670['uniqueid']]));}catch(_0x5c4704){utils[_0x210c65('0x14')](_0x5c4704[_0x210c65('0x11')]);}}; \ No newline at end of file +const a1388_0x3bed=['diffTime','now','error','assign','dialbegin','split','format','answertime','connect','lodash','./utils','holdtime','uniqueid','dialstatus','info','ANSWER','called','starttime','application','outboundrouteid','appdata','lastevent','toLowerCase','connectedlinenum','request','billableseconds','stack','set','isNil','newexten','varset','endtime','DIAL|%s|%s|%s|%s|%s|%s','cdr(routeid)'];(function(_0x4fe26f,_0x4954f8){const _0x3bed6=function(_0x200a9a){while(--_0x200a9a){_0x4fe26f['push'](_0x4fe26f['shift']());}};_0x3bed6(++_0x4954f8);}(a1388_0x3bed,0xee));const a1388_0x200a=function(_0x4fe26f,_0x4954f8){_0x4fe26f=_0x4fe26f-0xee;let _0x3bed6=a1388_0x3bed[_0x4fe26f];return _0x3bed6;};const a1388_0x4ba552=a1388_0x200a;'use strict';const _=require(a1388_0x4ba552(0xf7)),util=require('util'),utils=require(a1388_0x4ba552(0xf8)),dials={};function writeDB(_0x266a4e){const _0x389775=a1388_0x4ba552;utils[_0x389775(0xfc)](util[_0x389775(0xf4)](_0x389775(0x10e),_0x266a4e['uniqueid'],_0x266a4e['channel'],_0x266a4e['dialstring'],_0x266a4e['calleridnum'],_0x266a4e[_0x389775(0x105)],_0x266a4e['dialstatus'])),utils[_0x389775(0x106)]('CreateVoiceDialReport',_0x266a4e),delete dials[_0x266a4e['uniqueid']];}exports[a1388_0x4ba552(0x10b)]=function(_0x58feba){const _0x2a11d9=a1388_0x4ba552;try{if(_0x58feba[_0x2a11d9(0x100)]['toLowerCase']()==_0x2a11d9(0x109)&&_['startsWith'](_0x58feba[_0x2a11d9(0x102)][_0x2a11d9(0x104)](),_0x2a11d9(0x10f))){const _0x2a6bbe=_0x58feba['appdata'][_0x2a11d9(0xf3)]('=');dials[_0x58feba[_0x2a11d9(0xfa)]]={'routeId':_0x2a6bbe[0x1]};}}catch(_0x32a067){utils[_0x2a11d9(0xf0)](_0x32a067[_0x2a11d9(0x108)]);}},exports[a1388_0x4ba552(0x10c)]=function(_0x32c657){const _0x533bc5=a1388_0x4ba552;try{!_['isNil'](_0x32c657['variable'][_0x533bc5(0x101)])&&(dials[_0x32c657['uniqueid']]={'routeId':_0x32c657['value']});}catch(_0xa40c5b){utils[_0x533bc5(0xf0)](_0xa40c5b[_0x533bc5(0x108)]);}},exports[a1388_0x4ba552(0xf2)]=function(_0x4ccf9e){const _0x5179b9=a1388_0x4ba552;try{!_[_0x5179b9(0x10a)](dials[_0x4ccf9e[_0x5179b9(0xfa)]])&&(dials[_0x4ccf9e[_0x5179b9(0xfa)]]=_['assign'](dials[_0x4ccf9e[_0x5179b9(0xfa)]],_0x4ccf9e),dials[_0x4ccf9e[_0x5179b9(0xfa)]][_0x5179b9(0xff)]=utils[_0x5179b9(0xef)](),dials[_0x4ccf9e[_0x5179b9(0xfa)]]['lastevent']=_0x5179b9(0xfe));}catch(_0x24c5e3){utils[_0x5179b9(0xf0)](_0x24c5e3['stack']);}},exports['dialend']=function(_0x313994){const _0x50af6c=a1388_0x4ba552;try{!_['isNil'](dials[_0x313994[_0x50af6c(0xfa)]])&&(dials[_0x313994[_0x50af6c(0xfa)]]['dialstatus']=_0x313994['dialstatus'],_0x313994[_0x50af6c(0xfb)]==_0x50af6c(0xfd)&&(dials[_0x313994[_0x50af6c(0xfa)]]=_[_0x50af6c(0xf1)](dials[_0x313994[_0x50af6c(0xfa)]],_0x313994),dials[_0x313994[_0x50af6c(0xfa)]][_0x50af6c(0xf5)]=utils[_0x50af6c(0xef)](),dials[_0x313994[_0x50af6c(0xfa)]][_0x50af6c(0x103)]=_0x50af6c(0xf6)));}catch(_0x4d2fe7){utils[_0x50af6c(0xf0)](_0x4d2fe7[_0x50af6c(0x108)]);}},exports['hangup']=function(_0x5689f6){const _0x3aefd2=a1388_0x4ba552;try{!_['isNil'](dials[_0x5689f6[_0x3aefd2(0xfa)]])&&(dials[_0x5689f6['uniqueid']]=_[_0x3aefd2(0xf1)](dials[_0x5689f6[_0x3aefd2(0xfa)]],{'endtime':utils[_0x3aefd2(0xef)](),'lastevent':'complete'}),dials[_0x5689f6[_0x3aefd2(0xfa)]]['duration']=utils[_0x3aefd2(0xee)](dials[_0x5689f6[_0x3aefd2(0xfa)]][_0x3aefd2(0x10d)],dials[_0x5689f6[_0x3aefd2(0xfa)]][_0x3aefd2(0xff)]),dials[_0x5689f6['uniqueid']][_0x3aefd2(0xf9)]=utils[_0x3aefd2(0xee)](dials[_0x5689f6['uniqueid']]['answertime']||dials[_0x5689f6[_0x3aefd2(0xfa)]]['endtime'],dials[_0x5689f6[_0x3aefd2(0xfa)]]['starttime']),dials[_0x5689f6[_0x3aefd2(0xfa)]][_0x3aefd2(0x107)]=dials[_0x5689f6[_0x3aefd2(0xfa)]][_0x3aefd2(0xf5)]?utils[_0x3aefd2(0xee)](dials[_0x5689f6[_0x3aefd2(0xfa)]][_0x3aefd2(0x10d)],dials[_0x5689f6['uniqueid']][_0x3aefd2(0xf5)]):0x0,writeDB(dials[_0x5689f6[_0x3aefd2(0xfa)]]));}catch(_0x43e3e8){utils[_0x3aefd2(0xf0)](_0x43e3e8[_0x3aefd2(0x108)]);}}; \ No newline at end of file diff --git a/server/services/xdr/index.js b/server/services/xdr/index.js index 7801481..bf01870 100644 --- a/server/services/xdr/index.js +++ b/server/services/xdr/index.js @@ -1 +1 @@ -const a1225_0x1541=['xdr','../../config/environment','agentconnect','newchannel','agentcalled','varset','./dials.controller','blindtransfer','hangup','queuecallerjoin','dialbegin','./utils','devicestatechange','asterisk','./queues.controller','cdr','error','newexten','close','attendedtransfer','./members.controller','managerevent','agentcomplete','dialend','info','XDR\x20DISABLED','disabled','../../globals','shutdown','connect','queuecallerabandon','./recordings.controller','./calls.controller','agentringnoanswer','queuecallerleave','fullybooted','musiconholdstart','newstate','musiconholdstop'];(function(_0x2ca027,_0x1541db){const _0x5637cd=function(_0x3a680c){while(--_0x3a680c){_0x2ca027['push'](_0x2ca027['shift']());}};_0x5637cd(++_0x1541db);}(a1225_0x1541,0x15a));const a1225_0x5637=function(_0x2ca027,_0x1541db){_0x2ca027=_0x2ca027-0x0;let _0x5637cd=a1225_0x1541[_0x2ca027];return _0x5637cd;};const _0x202256=a1225_0x5637;require(_0x202256('0x20'));const AsteriskManager=require('asterisk-manager'),config=require(_0x202256('0x6')),utils=require(_0x202256('0x10')),ami=new AsteriskManager(config[_0x202256('0x12')]['port'],config[_0x202256('0x12')]['ip'],config[_0x202256('0x12')]['username'],config['asterisk']['password'],!![]);ami['keepConnected']();if(config[_0x202256('0x5')]&&config[_0x202256('0x5')][_0x202256('0x1f')])utils[_0x202256('0x1d')](_0x202256('0x1e'));else{const agents=require('./agents.controller'),calls=require(_0x202256('0x25')),queues=require(_0x202256('0x13')),recordings=require(_0x202256('0x24')),members=require(_0x202256('0x19')),dials=require(_0x202256('0xb')),transfers=require('./transfers.controller'),core=require('./core.controller');ami['on']('connect',core[_0x202256('0x22')]),ami['on'](_0x202256('0x21'),core['shutdown']),ami['on'](_0x202256('0x1'),core[_0x202256('0x1')]),ami['on'](_0x202256('0x15'),core['error']),ami['on']('close',core[_0x202256('0x17')]),ami['on'](_0x202256('0x1a'),core[_0x202256('0x1a')]),ami['on'](_0x202256('0x11'),function(_0x3a680c){const _0x18499c=_0x202256;try{members['devicestatechange'](_0x3a680c);}catch(_0x4fdf67){utils[_0x18499c('0x15')](_0x4fdf67);}}),ami['on'](_0x202256('0x9'),function(_0x405615){const _0xf63f3a=_0x202256;try{agents[_0xf63f3a('0x9')](_0x405615);}catch(_0x8e763d){utils[_0xf63f3a('0x15')](_0x8e763d);}}),ami['on'](_0x202256('0x26'),function(_0x56988a){const _0x231895=_0x202256;try{agents[_0x231895('0x26')](_0x56988a);}catch(_0x5606da){utils[_0x231895('0x15')](_0x5606da);}}),ami['on']('agentconnect',function(_0x23728d){const _0x2b7bd3=_0x202256;try{agents[_0x2b7bd3('0x7')](_0x23728d),queues[_0x2b7bd3('0x7')](_0x23728d);}catch(_0x52038e){utils[_0x2b7bd3('0x15')](_0x52038e);}}),ami['on'](_0x202256('0x1b'),function(_0x1dbce5){const _0x56327a=_0x202256;try{agents[_0x56327a('0x1b')](_0x1dbce5),queues[_0x56327a('0x1b')](_0x1dbce5),members[_0x56327a('0x1b')](_0x1dbce5);}catch(_0x8f756e){utils['error'](_0x8f756e);}}),ami['on'](_0x202256('0x23'),function(_0x2a1639){const _0x598844=_0x202256;try{agents['queuecallerabandon'](_0x2a1639),queues[_0x598844('0x23')](_0x2a1639);}catch(_0xfa0dd1){utils[_0x598844('0x15')](_0xfa0dd1);}}),ami['on'](_0x202256('0xe'),function(_0x43a372){const _0x19034c=_0x202256;try{queues[_0x19034c('0xe')](_0x43a372),recordings[_0x19034c('0xe')](_0x43a372);}catch(_0x151779){utils[_0x19034c('0x15')](_0x151779);}}),ami['on'](_0x202256('0x0'),function(_0x531d7a){const _0x320194=_0x202256;try{queues[_0x320194('0x0')](_0x531d7a);}catch(_0x4f01ea){utils[_0x320194('0x15')](_0x4f01ea);}}),ami['on'](_0x202256('0x2'),function(_0x5e1389){const _0x372d37=_0x202256;try{queues['musiconholdstart'](_0x5e1389),calls[_0x372d37('0x2')](_0x5e1389);}catch(_0x1ec331){utils[_0x372d37('0x15')](_0x1ec331);}}),ami['on'](_0x202256('0x4'),function(_0x16eb64){const _0x302f82=_0x202256;try{queues[_0x302f82('0x4')](_0x16eb64),calls[_0x302f82('0x4')](_0x16eb64);}catch(_0x4c1c5f){utils[_0x302f82('0x15')](_0x4c1c5f);}}),ami['on']('newstate',function(_0x37a383){const _0x2ac33d=_0x202256;try{calls[_0x2ac33d('0x3')](_0x37a383),recordings[_0x2ac33d('0x3')](_0x37a383);}catch(_0x83f78e){utils[_0x2ac33d('0x15')](_0x83f78e);}}),ami['on']('hangup',function(_0x119575){const _0x551ccf=_0x202256;try{calls[_0x551ccf('0xd')](_0x119575),recordings[_0x551ccf('0xd')](_0x119575),dials[_0x551ccf('0xd')](_0x119575),agents[_0x551ccf('0xd')](_0x119575),queues['hangup'](_0x119575);}catch(_0x4ee0a5){utils[_0x551ccf('0x15')](_0x4ee0a5);}}),ami['on']('cdr',function(_0x187ba2){const _0x3fd4d8=_0x202256;try{members[_0x3fd4d8('0x14')](_0x187ba2);}catch(_0x3354d0){utils[_0x3fd4d8('0x15')](_0x3354d0);}}),ami['on']('blindtransfer',function(_0xd653fb){const _0x4519ed=_0x202256;try{queues['blindtransfer'](_0xd653fb),agents[_0x4519ed('0xc')](_0xd653fb),transfers[_0x4519ed('0xc')](_0xd653fb);}catch(_0x1ca980){utils[_0x4519ed('0x15')](_0x1ca980);}}),ami['on'](_0x202256('0x18'),function(_0x33cd95){const _0xd6a593=_0x202256;try{queues[_0xd6a593('0x18')](_0x33cd95),transfers[_0xd6a593('0x18')](_0x33cd95),agents[_0xd6a593('0x18')](_0x33cd95),calls[_0xd6a593('0x18')](_0x33cd95);}catch(_0x29d70e){utils[_0xd6a593('0x15')](_0x29d70e);}}),ami['on']('varset',function(_0x4fa391){const _0x343206=_0x202256;try{queues['varset'](_0x4fa391),recordings[_0x343206('0xa')](_0x4fa391),calls[_0x343206('0xa')](_0x4fa391),dials[_0x343206('0xa')](_0x4fa391);}catch(_0x471e93){utils[_0x343206('0x15')](_0x471e93);}}),ami['on'](_0x202256('0x16'),function(_0x456562){const _0x5dbfc2=_0x202256;try{calls[_0x5dbfc2('0x16')](_0x456562),recordings[_0x5dbfc2('0x16')](_0x456562),dials['newexten'](_0x456562);}catch(_0xdaf11){utils[_0x5dbfc2('0x15')](_0xdaf11);}}),ami['on'](_0x202256('0x8'),function(_0x1f32af){const _0xa2a1dc=_0x202256;try{calls[_0xa2a1dc('0x8')](_0x1f32af),recordings['newchannel'](_0x1f32af);}catch(_0xb42cb2){utils['error'](_0xb42cb2);}}),ami['on'](_0x202256('0xf'),function(_0x12df97){const _0x51e3e1=_0x202256;try{dials[_0x51e3e1('0xf')](_0x12df97);}catch(_0x23e332){utils['error'](_0x23e332);}}),ami['on'](_0x202256('0x1c'),function(_0x3c1127){const _0x4df347=_0x202256;try{dials[_0x4df347('0x1c')](_0x3c1127);}catch(_0x4b21f1){utils[_0x4df347('0x15')](_0x4b21f1);}});} \ No newline at end of file +const a1389_0x5211=['attendedtransfer','../../globals','newstate','blindtransfer','./members.controller','musiconholdstart','username','./recordings.controller','queuecallerabandon','dialbegin','agentcomplete','musiconholdstop','hangup','asterisk','connect','keepConnected','asterisk-manager','agentcalled','cdr','disabled','newexten','agentconnect','fullybooted','./transfers.controller','./core.controller','devicestatechange','managerevent','info','shutdown','dialend','varset','close','xdr','newchannel','./calls.controller','password','port','error','agentringnoanswer','queuecallerjoin'];(function(_0x16f132,_0x529f77){const _0x52118c=function(_0x3715cf){while(--_0x3715cf){_0x16f132['push'](_0x16f132['shift']());}};_0x52118c(++_0x529f77);}(a1389_0x5211,0x71));const a1389_0x3715=function(_0x16f132,_0x529f77){_0x16f132=_0x16f132-0xfe;let _0x52118c=a1389_0x5211[_0x16f132];return _0x52118c;};const a1389_0x59c994=a1389_0x3715;require(a1389_0x59c994(0x106));const AsteriskManager=require(a1389_0x59c994(0x115)),config=require('../../config/environment'),utils=require('./utils'),ami=new AsteriskManager(config[a1389_0x59c994(0x112)][a1389_0x59c994(0x101)],config[a1389_0x59c994(0x112)]['ip'],config[a1389_0x59c994(0x112)][a1389_0x59c994(0x10b)],config[a1389_0x59c994(0x112)][a1389_0x59c994(0x100)],!![]);ami[a1389_0x59c994(0x114)]();if(config[a1389_0x59c994(0x125)]&&config[a1389_0x59c994(0x125)][a1389_0x59c994(0x118)])utils[a1389_0x59c994(0x120)]('XDR\x20DISABLED');else{const agents=require('./agents.controller'),calls=require(a1389_0x59c994(0xff)),queues=require('./queues.controller'),recordings=require(a1389_0x59c994(0x10c)),members=require(a1389_0x59c994(0x109)),dials=require('./dials.controller'),transfers=require(a1389_0x59c994(0x11c)),core=require(a1389_0x59c994(0x11d));ami['on'](a1389_0x59c994(0x113),core[a1389_0x59c994(0x113)]),ami['on']('shutdown',core[a1389_0x59c994(0x121)]),ami['on'](a1389_0x59c994(0x11b),core[a1389_0x59c994(0x11b)]),ami['on']('error',core[a1389_0x59c994(0x102)]),ami['on']('close',core[a1389_0x59c994(0x124)]),ami['on'](a1389_0x59c994(0x11f),core[a1389_0x59c994(0x11f)]),ami['on'](a1389_0x59c994(0x11e),function(_0x324fec){const _0x4abaa7=a1389_0x59c994;try{members[_0x4abaa7(0x11e)](_0x324fec);}catch(_0x3f2aba){utils[_0x4abaa7(0x102)](_0x3f2aba);}}),ami['on'](a1389_0x59c994(0x116),function(_0x1c1451){const _0x293b23=a1389_0x59c994;try{agents[_0x293b23(0x116)](_0x1c1451);}catch(_0x2abe23){utils[_0x293b23(0x102)](_0x2abe23);}}),ami['on'](a1389_0x59c994(0x103),function(_0x8dad8){const _0xd27c2a=a1389_0x59c994;try{agents[_0xd27c2a(0x103)](_0x8dad8);}catch(_0x3e821b){utils[_0xd27c2a(0x102)](_0x3e821b);}}),ami['on']('agentconnect',function(_0x37c23a){const _0x40b1b1=a1389_0x59c994;try{agents[_0x40b1b1(0x11a)](_0x37c23a),queues[_0x40b1b1(0x11a)](_0x37c23a);}catch(_0x2cce0c){utils['error'](_0x2cce0c);}}),ami['on'](a1389_0x59c994(0x10f),function(_0x681d5e){const _0x1848b6=a1389_0x59c994;try{agents[_0x1848b6(0x10f)](_0x681d5e),queues[_0x1848b6(0x10f)](_0x681d5e),members[_0x1848b6(0x10f)](_0x681d5e);}catch(_0x5a781d){utils[_0x1848b6(0x102)](_0x5a781d);}}),ami['on'](a1389_0x59c994(0x10d),function(_0x781631){const _0xef1534=a1389_0x59c994;try{agents[_0xef1534(0x10d)](_0x781631),queues[_0xef1534(0x10d)](_0x781631);}catch(_0x1af448){utils['error'](_0x1af448);}}),ami['on'](a1389_0x59c994(0x104),function(_0x1a902b){const _0xbec956=a1389_0x59c994;try{queues[_0xbec956(0x104)](_0x1a902b),recordings[_0xbec956(0x104)](_0x1a902b);}catch(_0x351925){utils['error'](_0x351925);}}),ami['on']('queuecallerleave',function(_0x1330d0){try{queues['queuecallerleave'](_0x1330d0);}catch(_0x1ae01f){utils['error'](_0x1ae01f);}}),ami['on'](a1389_0x59c994(0x10a),function(_0x217374){const _0x4dc9b4=a1389_0x59c994;try{queues['musiconholdstart'](_0x217374),calls[_0x4dc9b4(0x10a)](_0x217374);}catch(_0x3b2abd){utils[_0x4dc9b4(0x102)](_0x3b2abd);}}),ami['on'](a1389_0x59c994(0x110),function(_0x29cf1c){const _0x57a9bd=a1389_0x59c994;try{queues['musiconholdstop'](_0x29cf1c),calls[_0x57a9bd(0x110)](_0x29cf1c);}catch(_0x389066){utils[_0x57a9bd(0x102)](_0x389066);}}),ami['on'](a1389_0x59c994(0x107),function(_0x47e813){const _0x1a98e1=a1389_0x59c994;try{calls['newstate'](_0x47e813),recordings[_0x1a98e1(0x107)](_0x47e813);}catch(_0x4f3ab3){utils[_0x1a98e1(0x102)](_0x4f3ab3);}}),ami['on']('hangup',function(_0x21fa7d){const _0x44ec88=a1389_0x59c994;try{calls[_0x44ec88(0x111)](_0x21fa7d),recordings[_0x44ec88(0x111)](_0x21fa7d),dials[_0x44ec88(0x111)](_0x21fa7d),agents[_0x44ec88(0x111)](_0x21fa7d),queues[_0x44ec88(0x111)](_0x21fa7d);}catch(_0x6d35f6){utils['error'](_0x6d35f6);}}),ami['on']('cdr',function(_0x1f097b){const _0x309130=a1389_0x59c994;try{members[_0x309130(0x117)](_0x1f097b);}catch(_0x1a3c01){utils['error'](_0x1a3c01);}}),ami['on'](a1389_0x59c994(0x108),function(_0x26029a){const _0x34bc7e=a1389_0x59c994;try{queues['blindtransfer'](_0x26029a),agents[_0x34bc7e(0x108)](_0x26029a),transfers[_0x34bc7e(0x108)](_0x26029a);}catch(_0x320c04){utils[_0x34bc7e(0x102)](_0x320c04);}}),ami['on'](a1389_0x59c994(0x105),function(_0x5bab93){const _0x4bff91=a1389_0x59c994;try{queues[_0x4bff91(0x105)](_0x5bab93),transfers[_0x4bff91(0x105)](_0x5bab93),agents['attendedtransfer'](_0x5bab93),calls['attendedtransfer'](_0x5bab93);}catch(_0x4e5fc5){utils[_0x4bff91(0x102)](_0x4e5fc5);}}),ami['on'](a1389_0x59c994(0x123),function(_0x19c899){const _0x37188f=a1389_0x59c994;try{queues[_0x37188f(0x123)](_0x19c899),recordings[_0x37188f(0x123)](_0x19c899),calls[_0x37188f(0x123)](_0x19c899),dials[_0x37188f(0x123)](_0x19c899);}catch(_0x54ba8d){utils[_0x37188f(0x102)](_0x54ba8d);}}),ami['on']('newexten',function(_0x2258be){const _0x294cf4=a1389_0x59c994;try{calls[_0x294cf4(0x119)](_0x2258be),recordings['newexten'](_0x2258be),dials[_0x294cf4(0x119)](_0x2258be);}catch(_0x5ef705){utils[_0x294cf4(0x102)](_0x5ef705);}}),ami['on'](a1389_0x59c994(0xfe),function(_0x586418){const _0x559c58=a1389_0x59c994;try{calls[_0x559c58(0xfe)](_0x586418),recordings[_0x559c58(0xfe)](_0x586418);}catch(_0xec68b6){utils[_0x559c58(0x102)](_0xec68b6);}}),ami['on'](a1389_0x59c994(0x10e),function(_0x534738){const _0x6d2b09=a1389_0x59c994;try{dials[_0x6d2b09(0x10e)](_0x534738);}catch(_0x3aed7f){utils[_0x6d2b09(0x102)](_0x3aed7f);}}),ami['on'](a1389_0x59c994(0x122),function(_0x2bb495){try{dials['dialend'](_0x2bb495);}catch(_0x257941){utils['error'](_0x257941);}});} \ No newline at end of file diff --git a/server/services/xdr/members.controller.js b/server/services/xdr/members.controller.js index 9c3c85d..96a971d 100644 --- a/server/services/xdr/members.controller.js +++ b/server/services/xdr/members.controller.js @@ -1 +1 @@ -const a1226_0x1ac5=['BUSY','data3','enterAt','internal','catch','type','INUSE','then','TALKING','./utils','interface','request','now','data1','destinationchannel','split','data2','isNil','channel','name','util','some','agentcomplete','agent','format','duration','Queue:','getUserByInterface','info','lodash','assign','source','diffTime','NOT_INUSE','state','startsWith','queue','getUserByName','exitAt','error','CreateMemberReport','membername','MEMBER|%s|%s|%s|%s|%s|%s','uniqueid','device'];(function(_0x46227d,_0x1ac56b){const _0x4bd8ae=function(_0x4b3675){while(--_0x4b3675){_0x46227d['push'](_0x46227d['shift']());}};_0x4bd8ae(++_0x1ac56b);}(a1226_0x1ac5,0x91));const a1226_0x4bd8=function(_0x46227d,_0x1ac56b){_0x46227d=_0x46227d-0x0;let _0x4bd8ae=a1226_0x1ac5[_0x46227d];return _0x4bd8ae;};const _0xcc0f7a=a1226_0x4bd8;'use strict';const _=require(_0xcc0f7a('0x13')),util=require(_0xcc0f7a('0xa')),utils=require(_0xcc0f7a('0x2c')),members={},exclude=['Local/_attended@transfer',_0xcc0f7a('0x10')];function writeDB(_0x4b3675){const _0x496aea=_0xcc0f7a;utils[_0x496aea('0x12')](util[_0x496aea('0xe')](_0x496aea('0x20'),_0x4b3675[_0x496aea('0x21')],_0x4b3675[_0x496aea('0x0')],_0x4b3675[_0x496aea('0x8')],_0x4b3675[_0x496aea('0x6')],_0x4b3675['membername'],_0x4b3675[_0x496aea('0x28')])),_0x4b3675['interface']&&utils[_0x496aea('0x11')](_0x4b3675[_0x496aea('0x0')])[_0x496aea('0x2a')](function(_0x306f44){const _0x3c7315=_0x496aea;_0x306f44?(_0x4b3675[_0x3c7315('0x1f')]=_0x306f44[_0x3c7315('0x9')],_0x4b3675[_0x3c7315('0x26')]=_0x306f44[_0x3c7315('0x26')],utils['request'](_0x3c7315('0x1e'),_0x4b3675)):utils[_0x3c7315('0x1b')](_0x4b3675[_0x3c7315('0x0')][_0x3c7315('0x5')]('/')[0x1])[_0x3c7315('0x2a')](function(_0x2166af){const _0x1961c0=_0x3c7315;_0x2166af&&(_0x4b3675[_0x1961c0('0x1f')]=_0x2166af[_0x1961c0('0x9')],_0x4b3675[_0x1961c0('0x26')]=_0x2166af[_0x1961c0('0x26')],utils[_0x1961c0('0x1')](_0x1961c0('0x1e'),_0x4b3675));});})[_0x496aea('0x27')](function(_0x5c1243){const _0x3663c2=_0x496aea;utils[_0x3663c2('0x1d')](_0x5c1243);}),delete members[_0x4b3675['interface']];}function startsWith(_0x18af6f,_0x38cff0){const _0x13a200=_0xcc0f7a;return _[_0x13a200('0xb')](_0x18af6f,function(_0x1e12af){const _0x244e1f=_0x13a200;return _[_0x244e1f('0x19')](_0x38cff0,_0x1e12af);});}exports['devicestatechange']=function(_0x3ac72b){const _0x58cd66=_0xcc0f7a;switch(_0x3ac72b[_0x58cd66('0x18')]){case _0x58cd66('0x29'):case _0x58cd66('0x23'):!startsWith(exclude,_0x3ac72b[_0x58cd66('0x22')])&&(members[_0x3ac72b[_0x58cd66('0x22')]]={'channel':'voice','interface':_0x3ac72b['device'],'type':_0x58cd66('0x2b'),'enterAt':utils['now'](),'role':_0x58cd66('0xd')});break;case _0x58cd66('0x17'):!_[_0x58cd66('0x7')](members[_0x3ac72b[_0x58cd66('0x22')]])&&(members[_0x3ac72b[_0x58cd66('0x22')]][_0x58cd66('0x1c')]=utils[_0x58cd66('0x2')](),members[_0x3ac72b[_0x58cd66('0x22')]][_0x58cd66('0xf')]=utils[_0x58cd66('0x16')](members[_0x3ac72b['device']][_0x58cd66('0x1c')],members[_0x3ac72b['device']][_0x58cd66('0x25')]),members[_0x3ac72b[_0x58cd66('0x22')]][_0x58cd66('0x21')]&&writeDB(members[_0x3ac72b[_0x58cd66('0x22')]]));break;default:break;}},exports[_0xcc0f7a('0xc')]=function(_0x397a49){const _0x233549=_0xcc0f7a;!_['isNil'](members[_0x397a49[_0x233549('0x0')]])&&(members[_0x397a49[_0x233549('0x0')]]=_[_0x233549('0x14')](members[_0x397a49[_0x233549('0x0')]],{'data4':_0x397a49[_0x233549('0x1a')],'uniqueid':_0x397a49['uniqueid']}));},exports['cdr']=function(_0x4b087d){const _0x54549f=_0xcc0f7a;if(_0x4b087d[_0x54549f('0x8')]){const _0x424b8c=_0x4b087d[_0x54549f('0x8')][_0x54549f('0x5')]('-')[0x0];!_[_0x54549f('0x7')](members[_0x424b8c])&&(members[_0x424b8c]=_[_0x54549f('0x14')](members[_0x424b8c],{'data1':members[_0x424b8c][_0x54549f('0x3')]||_0x4b087d[_0x54549f('0x28')],'data2':members[_0x424b8c][_0x54549f('0x6')]||_0x4b087d[_0x54549f('0x15')],'data3':members[_0x424b8c]['data3']||_0x4b087d['destination'],'uniqueid':members[_0x424b8c][_0x54549f('0x21')]||_0x4b087d[_0x54549f('0x21')]}),members[_0x424b8c][_0x54549f('0x1c')]&&writeDB(members[_0x424b8c]));}if(_0x4b087d[_0x54549f('0x4')]){const _0x48e5f6=_0x4b087d['destinationchannel'][_0x54549f('0x5')]('-')[0x0];!_['isNil'](members[_0x48e5f6])&&(members[_0x48e5f6]=_[_0x54549f('0x14')](members[_0x48e5f6],{'data1':members[_0x48e5f6]['data1']||_0x4b087d['type'],'data2':members[_0x48e5f6]['data2']||_0x4b087d[_0x54549f('0x15')],'data3':members[_0x48e5f6][_0x54549f('0x24')]||_0x4b087d['destination'],'uniqueid':members[_0x48e5f6][_0x54549f('0x21')]||_0x4b087d[_0x54549f('0x21')]}),members[_0x48e5f6][_0x54549f('0x1c')]&&writeDB(members[_0x48e5f6]));}}; \ No newline at end of file +const a1390_0x2f0e=['internal','getUserByName','agent','startsWith','uniqueid','some','split','channel','data3','queue','source','cdr','isNil','Local/_attended@transfer','name','CreateMemberReport','membername','destinationchannel','data2','getUserByInterface','catch','assign','then','TALKING','interface','type','./utils','state','request','now','BUSY','MEMBER|%s|%s|%s|%s|%s|%s','Queue:','diffTime','error','util','exitAt','destination','data1','device'];(function(_0x2f73fb,_0x27e2a1){const _0x2f0e59=function(_0x3d9148){while(--_0x3d9148){_0x2f73fb['push'](_0x2f73fb['shift']());}};_0x2f0e59(++_0x27e2a1);}(a1390_0x2f0e,0x18a));const a1390_0x3d91=function(_0x2f73fb,_0x27e2a1){_0x2f73fb=_0x2f73fb-0x1a6;let _0x2f0e59=a1390_0x2f0e[_0x2f73fb];return _0x2f0e59;};const a1390_0x24e541=a1390_0x3d91;'use strict';const _=require('lodash'),util=require(a1390_0x24e541(0x1a7)),utils=require(a1390_0x24e541(0x1c6)),members={},exclude=[a1390_0x24e541(0x1b9),a1390_0x24e541(0x1cc)];function writeDB(_0x3431c8){const _0x1107d7=a1390_0x24e541;utils['info'](util['format'](_0x1107d7(0x1cb),_0x3431c8['uniqueid'],_0x3431c8[_0x1107d7(0x1c4)],_0x3431c8['channel'],_0x3431c8[_0x1107d7(0x1be)],_0x3431c8['membername'],_0x3431c8[_0x1107d7(0x1c5)])),_0x3431c8[_0x1107d7(0x1c4)]&&utils[_0x1107d7(0x1bf)](_0x3431c8[_0x1107d7(0x1c4)])['then'](function(_0x94e396){const _0x4d787f=_0x1107d7;_0x94e396?(_0x3431c8[_0x4d787f(0x1bc)]=_0x94e396[_0x4d787f(0x1ba)],_0x3431c8[_0x4d787f(0x1ac)]=_0x94e396[_0x4d787f(0x1ac)],utils[_0x4d787f(0x1c8)]('CreateMemberReport',_0x3431c8)):utils[_0x4d787f(0x1ad)](_0x3431c8[_0x4d787f(0x1c4)]['split']('/')[0x1])[_0x4d787f(0x1c2)](function(_0x38d047){const _0x39c281=_0x4d787f;_0x38d047&&(_0x3431c8[_0x39c281(0x1bc)]=_0x38d047[_0x39c281(0x1ba)],_0x3431c8[_0x39c281(0x1ac)]=_0x38d047[_0x39c281(0x1ac)],utils['request'](_0x39c281(0x1bb),_0x3431c8));});})[_0x1107d7(0x1c0)](function(_0x269860){const _0x525b27=_0x1107d7;utils[_0x525b27(0x1a6)](_0x269860);}),delete members[_0x3431c8[_0x1107d7(0x1c4)]];}function startsWith(_0x43e2fa,_0x3f9a3d){const _0x53af15=a1390_0x24e541;return _[_0x53af15(0x1b1)](_0x43e2fa,function(_0x3dd204){const _0x228d08=_0x53af15;return _[_0x228d08(0x1af)](_0x3f9a3d,_0x3dd204);});}exports['devicestatechange']=function(_0x434108){const _0x8030d9=a1390_0x24e541;switch(_0x434108[_0x8030d9(0x1c7)]){case'INUSE':case _0x8030d9(0x1ca):!startsWith(exclude,_0x434108['device'])&&(members[_0x434108['device']]={'channel':'voice','interface':_0x434108[_0x8030d9(0x1ab)],'type':_0x8030d9(0x1c3),'enterAt':utils['now'](),'role':_0x8030d9(0x1ae)});break;case'NOT_INUSE':!_[_0x8030d9(0x1b8)](members[_0x434108['device']])&&(members[_0x434108[_0x8030d9(0x1ab)]][_0x8030d9(0x1a8)]=utils[_0x8030d9(0x1c9)](),members[_0x434108[_0x8030d9(0x1ab)]]['duration']=utils[_0x8030d9(0x1cd)](members[_0x434108[_0x8030d9(0x1ab)]]['exitAt'],members[_0x434108[_0x8030d9(0x1ab)]]['enterAt']),members[_0x434108[_0x8030d9(0x1ab)]][_0x8030d9(0x1b0)]&&writeDB(members[_0x434108[_0x8030d9(0x1ab)]]));break;default:break;}},exports['agentcomplete']=function(_0x2f7a2c){const _0x57d509=a1390_0x24e541;!_[_0x57d509(0x1b8)](members[_0x2f7a2c['interface']])&&(members[_0x2f7a2c[_0x57d509(0x1c4)]]=_[_0x57d509(0x1c1)](members[_0x2f7a2c['interface']],{'data4':_0x2f7a2c[_0x57d509(0x1b5)],'uniqueid':_0x2f7a2c['uniqueid']}));},exports[a1390_0x24e541(0x1b7)]=function(_0x328241){const _0x2c7f3e=a1390_0x24e541;if(_0x328241[_0x2c7f3e(0x1b3)]){const _0x8f1a73=_0x328241[_0x2c7f3e(0x1b3)][_0x2c7f3e(0x1b2)]('-')[0x0];!_[_0x2c7f3e(0x1b8)](members[_0x8f1a73])&&(members[_0x8f1a73]=_['assign'](members[_0x8f1a73],{'data1':members[_0x8f1a73][_0x2c7f3e(0x1aa)]||_0x328241['type'],'data2':members[_0x8f1a73][_0x2c7f3e(0x1be)]||_0x328241[_0x2c7f3e(0x1b6)],'data3':members[_0x8f1a73]['data3']||_0x328241[_0x2c7f3e(0x1a9)],'uniqueid':members[_0x8f1a73][_0x2c7f3e(0x1b0)]||_0x328241['uniqueid']}),members[_0x8f1a73]['exitAt']&&writeDB(members[_0x8f1a73]));}if(_0x328241[_0x2c7f3e(0x1bd)]){const _0x28dc49=_0x328241['destinationchannel'][_0x2c7f3e(0x1b2)]('-')[0x0];!_[_0x2c7f3e(0x1b8)](members[_0x28dc49])&&(members[_0x28dc49]=_[_0x2c7f3e(0x1c1)](members[_0x28dc49],{'data1':members[_0x28dc49][_0x2c7f3e(0x1aa)]||_0x328241['type'],'data2':members[_0x28dc49][_0x2c7f3e(0x1be)]||_0x328241['source'],'data3':members[_0x28dc49][_0x2c7f3e(0x1b4)]||_0x328241['destination'],'uniqueid':members[_0x28dc49][_0x2c7f3e(0x1b0)]||_0x328241['uniqueid']}),members[_0x28dc49][_0x2c7f3e(0x1a8)]&&writeDB(members[_0x28dc49]));}}; \ No newline at end of file diff --git a/server/services/xdr/queues.controller.js b/server/services/xdr/queues.controller.js index 0b31aa0..2ac0ae0 100644 --- a/server/services/xdr/queues.controller.js +++ b/server/services/xdr/queues.controller.js @@ -1 +1 @@ -const a1227_0x4ada=['blindtransfer','secondtransfereruniqueid','queuecallerexitAt','EXITWITHKEY','./utils','holdtime','queuestatus','varset','transfereduniqueid','request','queuecallerexitreason','transferexten','then','transferuniqueid','assign','diffTime','util','origtransfereruniqueid','BLIND','getVoiceQueueByName','error','extension','queuecallercomplete','musiconholdstartAt','transfertype','now','queuecallerleave','stack','origtransfererlinkedid','transfer','queuecallerabandonAt','count','type','assigned','info','transfertargetlinkedid','queuecallercompleteAt','BLINDTRANSFER','lastAssignedTo','isNil','accountcode','queuecallerjoinAt','transfereelinkedid','agentcomplete','musiconholdstop','connectedlinenum','queuecallerleaveAt','toUpperCase','mohtime','ATTENDED','origtransfererexten','musiconholdstart','CONTINUE','COMPLETEDBYAGENT','membername','calleridnum','variable','queue','CreateVoiceQueueReport','format','TRANSFER','ATTENDEDTRANSFER','transfertargetuniqueid','value','queuecallerexit','queuecallerabandon','connectedlinename','uniqueid','queuecallerenterreason','position','transfereeuniqueid','secondtransfererlinkedid','clone','calleridname','queueposition','reason','hangup','destaccountcode','channel'];(function(_0x5b7a53,_0x4adaaf){const _0x3ec8c3=function(_0x29de9b){while(--_0x29de9b){_0x5b7a53['push'](_0x5b7a53['shift']());}};_0x3ec8c3(++_0x4adaaf);}(a1227_0x4ada,0x16c));const a1227_0x3ec8=function(_0x5b7a53,_0x4adaaf){_0x5b7a53=_0x5b7a53-0x0;let _0x3ec8c3=a1227_0x4ada[_0x5b7a53];return _0x3ec8c3;};const _0x1987a9=a1227_0x3ec8;'use strict';const _=require('lodash'),util=require(_0x1987a9('0x2f')),utils=require(_0x1987a9('0x23')),queues={};function writeDB(_0x29de9b){const _0x464bb5=_0x1987a9;utils[_0x464bb5('0x41')](util[_0x464bb5('0xb')]('QUEUE|%s|%s|%s|%s|%s|%s|%s',_0x29de9b['uniqueid'],_0x29de9b[_0x464bb5('0x1e')],_0x29de9b[_0x464bb5('0x9')],_0x29de9b[_0x464bb5('0x45')],_0x29de9b[_0x464bb5('0x7')],_0x29de9b[_0x464bb5('0x47')],_0x29de9b[_0x464bb5('0x29')])),_0x29de9b['queue']?utils[_0x464bb5('0x32')](_0x29de9b[_0x464bb5('0x9')])[_0x464bb5('0x2b')](function(_0x179963){const _0x94c890=_0x464bb5;_0x179963&&(_0x29de9b[_0x94c890('0x3f')]=_0x179963['type']),utils['request'](_0x94c890('0xa'),_0x29de9b);}):utils[_0x464bb5('0x28')](_0x464bb5('0xa'),_0x29de9b),_0x29de9b['transfereduniqueid']?delete queues[_0x29de9b[_0x464bb5('0x27')]]:delete queues[_0x29de9b[_0x464bb5('0x13')]];}exports['queuecallerjoin']=function(_0x1ee1fb){const _0x4c5c88=_0x1987a9;queues[_0x1ee1fb[_0x4c5c88('0x13')]]=_[_0x4c5c88('0x2d')](_0x1ee1fb,{'originalposition':_0x1ee1fb[_0x4c5c88('0x15')],'queuecallerjoinAt':utils[_0x4c5c88('0x38')](),'mohtime':0x0});},exports[_0x1987a9('0x1c')]=function(_0x2c3e03){const _0x4bf2bc=_0x1987a9;!_[_0x4bf2bc('0x46')](queues[_0x2c3e03[_0x4bf2bc('0x13')]])&&(queues[_0x2c3e03[_0x4bf2bc('0x13')]][_0x4bf2bc('0x4d')]?(!queues[_0x2c3e03[_0x4bf2bc('0x13')]]['queuecallerabandon']&&!queues[_0x2c3e03[_0x4bf2bc('0x13')]][_0x4bf2bc('0x10')]&&(queues[_0x2c3e03[_0x4bf2bc('0x13')]][_0x4bf2bc('0x35')]=!![],queues[_0x2c3e03[_0x4bf2bc('0x13')]][_0x4bf2bc('0x43')]=utils[_0x4bf2bc('0x38')](),queues[_0x2c3e03[_0x4bf2bc('0x13')]][_0x4bf2bc('0x29')]=_0x4bf2bc('0x5')),writeDB(queues[_0x2c3e03[_0x4bf2bc('0x13')]])):queues[_0x2c3e03['uniqueid']]['transfereduniqueid']&&(queues[queues[_0x2c3e03[_0x4bf2bc('0x13')]]['transfereduniqueid']]=queues[_0x2c3e03[_0x4bf2bc('0x13')]],queues[queues[_0x2c3e03[_0x4bf2bc('0x13')]][_0x4bf2bc('0x27')]][_0x4bf2bc('0x14')]=0x2,delete queues[_0x2c3e03[_0x4bf2bc('0x13')]]));},exports[_0x1987a9('0x26')]=function(_0xf90514){const _0x3c20c2=_0x1987a9;if(!_['isNil'](_0xf90514['variable'][_0x3c20c2('0x25')])&&_0xf90514[_0x3c20c2('0xf')][_0x3c20c2('0x4e')]()!==_0x3c20c2('0x4'))!_['isNil'](queues[_0xf90514[_0x3c20c2('0x13')]])&&(queues[_0xf90514[_0x3c20c2('0x13')]]['queuecallerabandon']=![],queues[_0xf90514[_0x3c20c2('0x13')]][_0x3c20c2('0x3d')]=null,queues[_0xf90514[_0x3c20c2('0x13')]][_0x3c20c2('0x10')]=!![],queues[_0xf90514[_0x3c20c2('0x13')]][_0x3c20c2('0x21')]=utils[_0x3c20c2('0x38')](),queues[_0xf90514['uniqueid']][_0x3c20c2('0x29')]=_0xf90514[_0x3c20c2('0xf')][_0x3c20c2('0x4e')](),writeDB(queues[_0xf90514[_0x3c20c2('0x13')]]));else!_[_0x3c20c2('0x46')](_0xf90514[_0x3c20c2('0x8')][_0x3c20c2('0x1a')])&&(!_[_0x3c20c2('0x46')](queues[_0xf90514[_0x3c20c2('0x13')]])&&!queues[_0xf90514[_0x3c20c2('0x13')]][_0x3c20c2('0x11')]&&(queues[_0xf90514[_0x3c20c2('0x13')]][_0x3c20c2('0x11')]=![],queues[_0xf90514[_0x3c20c2('0x13')]][_0x3c20c2('0x3d')]=null,queues[_0xf90514['uniqueid']][_0x3c20c2('0x10')]=!![],queues[_0xf90514[_0x3c20c2('0x13')]][_0x3c20c2('0x21')]=utils['now'](),queues[_0xf90514['uniqueid']][_0x3c20c2('0x29')]=_0x3c20c2('0x22')));},exports[_0x1987a9('0x11')]=function(_0x55543b){const _0x39bc1e=_0x1987a9;!_[_0x39bc1e('0x46')](queues[_0x55543b[_0x39bc1e('0x13')]])&&(queues[_0x55543b['uniqueid']][_0x39bc1e('0x10')]=![],queues[_0x55543b[_0x39bc1e('0x13')]][_0x39bc1e('0x21')]=null,queues[_0x55543b[_0x39bc1e('0x13')]][_0x39bc1e('0x11')]=!![],queues[_0x55543b['uniqueid']][_0x39bc1e('0x3d')]=utils['now'](),queues[_0x55543b[_0x39bc1e('0x13')]][_0x39bc1e('0x29')]='ABANDONED');},exports[_0x1987a9('0x39')]=function(_0x34e81b){const _0x9fa388=_0x1987a9;!_[_0x9fa388('0x46')](queues[_0x34e81b[_0x9fa388('0x13')]])&&(queues[_0x34e81b['uniqueid']]['queuecallerleave']=!![],queues[_0x34e81b['uniqueid']][_0x9fa388('0x4d')]=utils[_0x9fa388('0x38')](),queues[_0x34e81b['uniqueid']][_0x9fa388('0x24')]=utils[_0x9fa388('0x2e')](queues[_0x34e81b[_0x9fa388('0x13')]]['queuecallerleaveAt'],queues[_0x34e81b[_0x9fa388('0x13')]][_0x9fa388('0x48')]),queues[_0x34e81b[_0x9fa388('0x13')]][_0x9fa388('0x15')]=_0x34e81b[_0x9fa388('0x15')],queues[_0x34e81b['uniqueid']]['count']=_0x34e81b[_0x9fa388('0x3e')],queues[_0x34e81b[_0x9fa388('0x13')]][_0x9fa388('0x4c')]=_0x34e81b[_0x9fa388('0x4c')],queues[_0x34e81b[_0x9fa388('0x13')]][_0x9fa388('0x12')]=_0x34e81b[_0x9fa388('0x12')]);},exports['agentconnect']=function(_0x32ac66){const _0x388534=_0x1987a9;!_['isNil'](queues[_0x32ac66[_0x388534('0x13')]])&&(queues[_0x32ac66[_0x388534('0x13')]][_0x388534('0x11')]=![],queues[_0x32ac66[_0x388534('0x13')]]['queuecallerabandon']=![],queues[_0x32ac66[_0x388534('0x13')]][_0x388534('0x3d')]=null,queues[_0x32ac66[_0x388534('0x13')]][_0x388534('0x10')]=![],queues[_0x32ac66[_0x388534('0x13')]][_0x388534('0x29')]=null,queues[_0x32ac66[_0x388534('0x13')]][_0x388534('0x21')]=null,queues[_0x32ac66['uniqueid']][_0x388534('0x40')]=!![],queues[_0x32ac66[_0x388534('0x13')]][_0x388534('0x47')]=_0x32ac66[_0x388534('0x1d')],queues[_0x32ac66[_0x388534('0x13')]]['lastAssignedTo']=_0x32ac66[_0x388534('0x6')]);},exports[_0x1987a9('0x4a')]=function(_0x30898e){const _0x366abb=_0x1987a9;!_['isNil'](queues[_0x30898e[_0x366abb('0x13')]])&&(queues[_0x30898e[_0x366abb('0x13')]][_0x366abb('0x4d')]&&(queues[_0x30898e[_0x366abb('0x13')]]['queuecallerabandon']=![],queues[_0x30898e[_0x366abb('0x13')]]['queuecallerabandon']=![],queues[_0x30898e[_0x366abb('0x13')]][_0x366abb('0x3d')]=null,queues[_0x30898e[_0x366abb('0x13')]]['queuecallerexit']=![],queues[_0x30898e[_0x366abb('0x13')]]['queuecallerexitAt']=null,queues[_0x30898e[_0x366abb('0x13')]][_0x366abb('0x40')]=!![],queues[_0x30898e[_0x366abb('0x13')]][_0x366abb('0x45')]=_0x30898e[_0x366abb('0x6')],queues[_0x30898e['uniqueid']][_0x366abb('0x35')]=!![],queues[_0x30898e[_0x366abb('0x13')]][_0x366abb('0x43')]=utils[_0x366abb('0x38')](),_0x30898e[_0x366abb('0x1b')]=='transfer'?!queues[_0x30898e[_0x366abb('0x13')]][_0x366abb('0x3c')]&&(queues[_0x30898e[_0x366abb('0x13')]][_0x366abb('0x29')]=_0x366abb('0xc')):queues[_0x30898e[_0x366abb('0x13')]][_0x366abb('0x29')]='COMPLETEDBY'+_0x30898e[_0x366abb('0x1b')][_0x366abb('0x4e')](),writeDB(queues[_0x30898e['uniqueid']])));},exports[_0x1987a9('0x1f')]=function(_0x74bc2){const _0x54b38f=_0x1987a9;!_['isNil'](queues[_0x74bc2[_0x54b38f('0x16')]])&&(queues[_0x74bc2[_0x54b38f('0x16')]][_0x54b38f('0x3c')]=!![],queues[_0x74bc2[_0x54b38f('0x16')]][_0x54b38f('0x37')]=_0x54b38f('0x31'),queues[_0x74bc2[_0x54b38f('0x16')]][_0x54b38f('0x2a')]=_0x74bc2[_0x54b38f('0x34')],queues[_0x74bc2['transfereeuniqueid']][_0x54b38f('0x2c')]=_0x74bc2[_0x54b38f('0x16')],queues[_0x74bc2[_0x54b38f('0x16')]]['queuecallerexitreason']=_0x54b38f('0x44'));},exports['attendedtransfer']=function(_0x27e78b){const _0x22fbb8=_0x1987a9;try{if(_0x27e78b[_0x22fbb8('0x30')]==_0x27e78b[_0x22fbb8('0x3b')])!_[_0x22fbb8('0x46')](queues[_0x27e78b[_0x22fbb8('0x17')]])&&(queues[_0x27e78b['secondtransfererlinkedid']][_0x22fbb8('0x3c')]=!![],queues[_0x27e78b[_0x22fbb8('0x17')]]['transfertype']=_0x22fbb8('0x1'),queues[_0x27e78b[_0x22fbb8('0x17')]][_0x22fbb8('0x2a')]=_0x27e78b[_0x22fbb8('0x2')],queues[_0x27e78b[_0x22fbb8('0x17')]][_0x22fbb8('0x2c')]=_0x27e78b[_0x22fbb8('0x30')],queues[_0x27e78b[_0x22fbb8('0x17')]][_0x22fbb8('0x29')]='ATTENDEDTRANSFER'),!_[_0x22fbb8('0x46')](queues[_0x27e78b[_0x22fbb8('0x3b')]])&&(_0x27e78b[_0x22fbb8('0x49')]&&queues[_0x27e78b[_0x22fbb8('0x49')]]?(queues[_0x27e78b[_0x22fbb8('0x49')]][_0x22fbb8('0x14')]=0x1,queues[_0x27e78b[_0x22fbb8('0x16')]]=_[_0x22fbb8('0x18')](queues[_0x27e78b[_0x22fbb8('0x49')]]),queues[_0x27e78b[_0x22fbb8('0x16')]][_0x22fbb8('0x27')]=_0x27e78b[_0x22fbb8('0xe')],queues[_0x27e78b['transfereeuniqueid']][_0x22fbb8('0x14')]=0x2,queues[_0x27e78b[_0x22fbb8('0x16')]][_0x22fbb8('0x7')]=queues[_0x27e78b['secondtransfererlinkedid']]['calleridnum'],queues[_0x27e78b[_0x22fbb8('0x16')]][_0x22fbb8('0x19')]=queues[_0x27e78b[_0x22fbb8('0x17')]][_0x22fbb8('0x19')],queues[_0x27e78b['transfereeuniqueid']][_0x22fbb8('0x48')]=utils[_0x22fbb8('0x38')](),queues[_0x27e78b[_0x22fbb8('0x16')]]['queuecallerleaveAt']=utils[_0x22fbb8('0x38')](),queues[_0x27e78b[_0x22fbb8('0x16')]]['holdtime']=0x0,queues[_0x27e78b['transfereeuniqueid']][_0x22fbb8('0x0')]=0x0):queues[_0x27e78b[_0x22fbb8('0x3b')]][_0x22fbb8('0x27')]=_0x27e78b[_0x22fbb8('0x17')]);else _0x27e78b[_0x22fbb8('0x20')]==_0x27e78b[_0x22fbb8('0x17')]&&(!_['isNil'](queues[_0x27e78b[_0x22fbb8('0x3b')]])&&(queues[_0x27e78b[_0x22fbb8('0x3b')]][_0x22fbb8('0x3c')]=!![],queues[_0x27e78b[_0x22fbb8('0x3b')]][_0x22fbb8('0x37')]=_0x22fbb8('0x1'),queues[_0x27e78b[_0x22fbb8('0x3b')]]['transferexten']=_0x27e78b['secondtransfererexten'],queues[_0x27e78b['origtransfererlinkedid']][_0x22fbb8('0x2c')]=_0x27e78b[_0x22fbb8('0x20')],queues[_0x27e78b[_0x22fbb8('0x3b')]][_0x22fbb8('0x29')]=_0x22fbb8('0xd')),!_[_0x22fbb8('0x46')](queues[_0x27e78b[_0x22fbb8('0x17')]])&&(_0x27e78b[_0x22fbb8('0x42')]&&queues[_0x27e78b['transfertargetlinkedid']]?(queues[_0x27e78b[_0x22fbb8('0x42')]][_0x22fbb8('0x14')]=0x1,queues[_0x27e78b[_0x22fbb8('0xe')]]=_['clone'](queues[_0x27e78b[_0x22fbb8('0x42')]]),queues[_0x27e78b['transfertargetuniqueid']][_0x22fbb8('0x27')]=_0x27e78b[_0x22fbb8('0xe')],queues[_0x27e78b[_0x22fbb8('0xe')]][_0x22fbb8('0x14')]=0x2,queues[_0x27e78b[_0x22fbb8('0xe')]][_0x22fbb8('0x7')]=queues[_0x27e78b['origtransfererlinkedid']][_0x22fbb8('0x7')],queues[_0x27e78b[_0x22fbb8('0xe')]][_0x22fbb8('0x19')]=queues[_0x27e78b[_0x22fbb8('0x3b')]][_0x22fbb8('0x19')],queues[_0x27e78b[_0x22fbb8('0xe')]]['queuecallerjoinAt']=utils[_0x22fbb8('0x38')](),queues[_0x27e78b[_0x22fbb8('0xe')]][_0x22fbb8('0x4d')]=utils[_0x22fbb8('0x38')](),queues[_0x27e78b[_0x22fbb8('0xe')]][_0x22fbb8('0x24')]=0x0,queues[_0x27e78b['transfertargetuniqueid']][_0x22fbb8('0x0')]=0x0):queues[_0x27e78b[_0x22fbb8('0x17')]][_0x22fbb8('0x27')]=_0x27e78b[_0x22fbb8('0x3b')]));}catch(_0x1e7236){utils[_0x22fbb8('0x33')](_0x1e7236[_0x22fbb8('0x3a')]);}},exports[_0x1987a9('0x3')]=function(_0x1a3620){const _0x48507a=_0x1987a9;!_[_0x48507a('0x46')](queues[_0x1a3620[_0x48507a('0x13')]])&&(queues[_0x1a3620[_0x48507a('0x13')]][_0x48507a('0x36')]=utils[_0x48507a('0x38')]());},exports[_0x1987a9('0x4b')]=function(_0x2da0ea){const _0x34d20c=_0x1987a9;!_[_0x34d20c('0x46')](queues[_0x2da0ea[_0x34d20c('0x13')]])&&(!_[_0x34d20c('0x46')](queues[_0x2da0ea[_0x34d20c('0x13')]][_0x34d20c('0x36')])&&(queues[_0x2da0ea[_0x34d20c('0x13')]][_0x34d20c('0x0')]+=utils[_0x34d20c('0x2e')](utils[_0x34d20c('0x38')](),queues[_0x2da0ea[_0x34d20c('0x13')]][_0x34d20c('0x36')]),delete queues[_0x2da0ea[_0x34d20c('0x13')]][_0x34d20c('0x36')]));}; \ No newline at end of file +const a1391_0x274d=['attendedtransfer','lodash','assigned','transfertargetuniqueid','transfereelinkedid','ATTENDEDTRANSFER','transferuniqueid','mohtime','transfereduniqueid','connectedlinenum','COMPLETEDBYAGENT','channel','queue','BLIND','agentcomplete','transfer','transferexten','ABANDONED','isNil','queuecallerabandon','musiconholdstart','transfertargetlinkedid','uniqueid','queuecallerexitreason','accountcode','calleridnum','clone','queuecallerleaveAt','origtransfererlinkedid','queuecallerjoin','position','queuecallerjoinAt','ATTENDED','origtransfereruniqueid','request','count','connectedlinename','assign','queuecallerenterreason','then','transfereeuniqueid','util','reason','queuecallerleave','secondtransfereruniqueid','format','secondtransfererexten','diffTime','CreateVoiceQueueReport','extension','agentconnect','lastAssignedTo','calleridname','queuecallerexit','transfertype','secondtransfererlinkedid','error','queuecallerexitAt','varset','membername','queuecallerabandonAt','TRANSFER','hangup','holdtime','musiconholdstartAt','toUpperCase','COMPLETEDBY','value','origtransfererexten','./utils','BLINDTRANSFER','type','stack','variable','queuecallercompleteAt','now','queuecallercomplete'];(function(_0x236d51,_0x2f8140){const _0x274d47=function(_0x1e7ef4){while(--_0x1e7ef4){_0x236d51['push'](_0x236d51['shift']());}};_0x274d47(++_0x2f8140);}(a1391_0x274d,0x8f));const a1391_0x1e7e=function(_0x236d51,_0x2f8140){_0x236d51=_0x236d51-0x89;let _0x274d47=a1391_0x274d[_0x236d51];return _0x274d47;};const a1391_0x1aee6c=a1391_0x1e7e;'use strict';const _=require(a1391_0x1aee6c(0x95)),util=require(a1391_0x1aee6c(0xbd)),utils=require(a1391_0x1aee6c(0x8c)),queues={};function writeDB(_0x3792b2){const _0x595877=a1391_0x1aee6c;utils['info'](util[_0x595877(0xc1)]('QUEUE|%s|%s|%s|%s|%s|%s|%s',_0x3792b2[_0x595877(0xaa)],_0x3792b2[_0x595877(0x9f)],_0x3792b2[_0x595877(0xa0)],_0x3792b2[_0x595877(0xc7)],_0x3792b2[_0x595877(0xad)],_0x3792b2['accountcode'],_0x3792b2[_0x595877(0xab)])),_0x3792b2[_0x595877(0xa0)]?utils['getVoiceQueueByName'](_0x3792b2[_0x595877(0xa0)])[_0x595877(0xbb)](function(_0x4a50fa){const _0xe02a9e=_0x595877;_0x4a50fa&&(_0x3792b2[_0xe02a9e(0x8e)]=_0x4a50fa['type']),utils[_0xe02a9e(0xb6)](_0xe02a9e(0xc4),_0x3792b2);}):utils['request'](_0x595877(0xc4),_0x3792b2),_0x3792b2['transfereduniqueid']?delete queues[_0x3792b2[_0x595877(0x9c)]]:delete queues[_0x3792b2[_0x595877(0xaa)]];}exports[a1391_0x1aee6c(0xb1)]=function(_0xf4cbcc){const _0x519f94=a1391_0x1aee6c;queues[_0xf4cbcc[_0x519f94(0xaa)]]=_[_0x519f94(0xb9)](_0xf4cbcc,{'originalposition':_0xf4cbcc[_0x519f94(0xb2)],'queuecallerjoinAt':utils[_0x519f94(0x92)](),'mohtime':0x0});},exports[a1391_0x1aee6c(0xd2)]=function(_0x569ddb){const _0x429c89=a1391_0x1aee6c;!_[_0x429c89(0xa6)](queues[_0x569ddb[_0x429c89(0xaa)]])&&(queues[_0x569ddb['uniqueid']]['queuecallerleaveAt']?(!queues[_0x569ddb[_0x429c89(0xaa)]][_0x429c89(0xa7)]&&!queues[_0x569ddb['uniqueid']][_0x429c89(0xc9)]&&(queues[_0x569ddb[_0x429c89(0xaa)]][_0x429c89(0x93)]=!![],queues[_0x569ddb[_0x429c89(0xaa)]][_0x429c89(0x91)]=utils[_0x429c89(0x92)](),queues[_0x569ddb[_0x429c89(0xaa)]]['queuecallerexitreason']=_0x429c89(0x9e)),writeDB(queues[_0x569ddb[_0x429c89(0xaa)]])):queues[_0x569ddb[_0x429c89(0xaa)]]['transfereduniqueid']&&(queues[queues[_0x569ddb[_0x429c89(0xaa)]]['transfereduniqueid']]=queues[_0x569ddb[_0x429c89(0xaa)]],queues[queues[_0x569ddb['uniqueid']]['transfereduniqueid']]['queuecallerenterreason']=0x2,delete queues[_0x569ddb[_0x429c89(0xaa)]]));},exports[a1391_0x1aee6c(0xce)]=function(_0x5264ec){const _0xe63faa=a1391_0x1aee6c;if(!_['isNil'](_0x5264ec[_0xe63faa(0x90)]['queuestatus'])&&_0x5264ec[_0xe63faa(0x8a)][_0xe63faa(0xd5)]()!=='CONTINUE')!_[_0xe63faa(0xa6)](queues[_0x5264ec[_0xe63faa(0xaa)]])&&(queues[_0x5264ec[_0xe63faa(0xaa)]][_0xe63faa(0xa7)]=![],queues[_0x5264ec['uniqueid']]['queuecallerabandonAt']=null,queues[_0x5264ec[_0xe63faa(0xaa)]]['queuecallerexit']=!![],queues[_0x5264ec[_0xe63faa(0xaa)]][_0xe63faa(0xcd)]=utils['now'](),queues[_0x5264ec['uniqueid']][_0xe63faa(0xab)]=_0x5264ec[_0xe63faa(0x8a)][_0xe63faa(0xd5)](),writeDB(queues[_0x5264ec[_0xe63faa(0xaa)]]));else!_['isNil'](_0x5264ec[_0xe63faa(0x90)]['queueposition'])&&(!_[_0xe63faa(0xa6)](queues[_0x5264ec[_0xe63faa(0xaa)]])&&!queues[_0x5264ec['uniqueid']]['queuecallerabandon']&&(queues[_0x5264ec[_0xe63faa(0xaa)]][_0xe63faa(0xa7)]=![],queues[_0x5264ec[_0xe63faa(0xaa)]][_0xe63faa(0xd0)]=null,queues[_0x5264ec[_0xe63faa(0xaa)]][_0xe63faa(0xc9)]=!![],queues[_0x5264ec[_0xe63faa(0xaa)]][_0xe63faa(0xcd)]=utils['now'](),queues[_0x5264ec[_0xe63faa(0xaa)]]['queuecallerexitreason']='EXITWITHKEY'));},exports['queuecallerabandon']=function(_0x3dbb53){const _0x3cb745=a1391_0x1aee6c;!_[_0x3cb745(0xa6)](queues[_0x3dbb53['uniqueid']])&&(queues[_0x3dbb53[_0x3cb745(0xaa)]][_0x3cb745(0xc9)]=![],queues[_0x3dbb53['uniqueid']]['queuecallerexitAt']=null,queues[_0x3dbb53[_0x3cb745(0xaa)]][_0x3cb745(0xa7)]=!![],queues[_0x3dbb53[_0x3cb745(0xaa)]][_0x3cb745(0xd0)]=utils[_0x3cb745(0x92)](),queues[_0x3dbb53[_0x3cb745(0xaa)]][_0x3cb745(0xab)]=_0x3cb745(0xa5));},exports[a1391_0x1aee6c(0xbf)]=function(_0xdb1d32){const _0x49e87d=a1391_0x1aee6c;!_['isNil'](queues[_0xdb1d32[_0x49e87d(0xaa)]])&&(queues[_0xdb1d32['uniqueid']]['queuecallerleave']=!![],queues[_0xdb1d32[_0x49e87d(0xaa)]][_0x49e87d(0xaf)]=utils[_0x49e87d(0x92)](),queues[_0xdb1d32['uniqueid']][_0x49e87d(0xd3)]=utils['diffTime'](queues[_0xdb1d32[_0x49e87d(0xaa)]]['queuecallerleaveAt'],queues[_0xdb1d32[_0x49e87d(0xaa)]][_0x49e87d(0xb3)]),queues[_0xdb1d32['uniqueid']][_0x49e87d(0xb2)]=_0xdb1d32[_0x49e87d(0xb2)],queues[_0xdb1d32['uniqueid']][_0x49e87d(0xb7)]=_0xdb1d32[_0x49e87d(0xb7)],queues[_0xdb1d32[_0x49e87d(0xaa)]]['connectedlinenum']=_0xdb1d32[_0x49e87d(0x9d)],queues[_0xdb1d32[_0x49e87d(0xaa)]][_0x49e87d(0xb8)]=_0xdb1d32['connectedlinename']);},exports[a1391_0x1aee6c(0xc6)]=function(_0x44aed8){const _0x3f8808=a1391_0x1aee6c;!_[_0x3f8808(0xa6)](queues[_0x44aed8['uniqueid']])&&(queues[_0x44aed8['uniqueid']][_0x3f8808(0xa7)]=![],queues[_0x44aed8[_0x3f8808(0xaa)]][_0x3f8808(0xa7)]=![],queues[_0x44aed8['uniqueid']][_0x3f8808(0xd0)]=null,queues[_0x44aed8['uniqueid']]['queuecallerexit']=![],queues[_0x44aed8['uniqueid']]['queuecallerexitreason']=null,queues[_0x44aed8['uniqueid']]['queuecallerexitAt']=null,queues[_0x44aed8[_0x3f8808(0xaa)]][_0x3f8808(0x96)]=!![],queues[_0x44aed8[_0x3f8808(0xaa)]][_0x3f8808(0xac)]=_0x44aed8['destaccountcode'],queues[_0x44aed8[_0x3f8808(0xaa)]][_0x3f8808(0xc7)]=_0x44aed8[_0x3f8808(0xcf)]);},exports[a1391_0x1aee6c(0xa2)]=function(_0xe486d4){const _0x108a6e=a1391_0x1aee6c;!_[_0x108a6e(0xa6)](queues[_0xe486d4['uniqueid']])&&(queues[_0xe486d4[_0x108a6e(0xaa)]][_0x108a6e(0xaf)]&&(queues[_0xe486d4[_0x108a6e(0xaa)]][_0x108a6e(0xa7)]=![],queues[_0xe486d4[_0x108a6e(0xaa)]][_0x108a6e(0xa7)]=![],queues[_0xe486d4[_0x108a6e(0xaa)]][_0x108a6e(0xd0)]=null,queues[_0xe486d4['uniqueid']][_0x108a6e(0xc9)]=![],queues[_0xe486d4['uniqueid']][_0x108a6e(0xcd)]=null,queues[_0xe486d4[_0x108a6e(0xaa)]][_0x108a6e(0x96)]=!![],queues[_0xe486d4[_0x108a6e(0xaa)]][_0x108a6e(0xc7)]=_0xe486d4[_0x108a6e(0xcf)],queues[_0xe486d4[_0x108a6e(0xaa)]][_0x108a6e(0x93)]=!![],queues[_0xe486d4['uniqueid']][_0x108a6e(0x91)]=utils[_0x108a6e(0x92)](),_0xe486d4['reason']==_0x108a6e(0xa3)?!queues[_0xe486d4[_0x108a6e(0xaa)]][_0x108a6e(0xa3)]&&(queues[_0xe486d4[_0x108a6e(0xaa)]]['queuecallerexitreason']=_0x108a6e(0xd1)):queues[_0xe486d4[_0x108a6e(0xaa)]][_0x108a6e(0xab)]=_0x108a6e(0x89)+_0xe486d4[_0x108a6e(0xbe)][_0x108a6e(0xd5)](),writeDB(queues[_0xe486d4[_0x108a6e(0xaa)]])));},exports['blindtransfer']=function(_0x1b972e){const _0x207ed5=a1391_0x1aee6c;!_['isNil'](queues[_0x1b972e['transfereeuniqueid']])&&(queues[_0x1b972e[_0x207ed5(0xbc)]]['transfer']=!![],queues[_0x1b972e['transfereeuniqueid']][_0x207ed5(0xca)]=_0x207ed5(0xa1),queues[_0x1b972e['transfereeuniqueid']][_0x207ed5(0xa4)]=_0x1b972e[_0x207ed5(0xc5)],queues[_0x1b972e[_0x207ed5(0xbc)]][_0x207ed5(0x9a)]=_0x1b972e[_0x207ed5(0xbc)],queues[_0x1b972e['transfereeuniqueid']][_0x207ed5(0xab)]=_0x207ed5(0x8d));},exports[a1391_0x1aee6c(0x94)]=function(_0x546a6e){const _0x55134c=a1391_0x1aee6c;try{if(_0x546a6e[_0x55134c(0xb5)]==_0x546a6e['origtransfererlinkedid'])!_[_0x55134c(0xa6)](queues[_0x546a6e[_0x55134c(0xcb)]])&&(queues[_0x546a6e[_0x55134c(0xcb)]][_0x55134c(0xa3)]=!![],queues[_0x546a6e[_0x55134c(0xcb)]][_0x55134c(0xca)]=_0x55134c(0xb4),queues[_0x546a6e[_0x55134c(0xcb)]]['transferexten']=_0x546a6e[_0x55134c(0x8b)],queues[_0x546a6e['secondtransfererlinkedid']][_0x55134c(0x9a)]=_0x546a6e[_0x55134c(0xb5)],queues[_0x546a6e[_0x55134c(0xcb)]][_0x55134c(0xab)]=_0x55134c(0x99)),!_[_0x55134c(0xa6)](queues[_0x546a6e[_0x55134c(0xb0)]])&&(_0x546a6e[_0x55134c(0x98)]&&queues[_0x546a6e[_0x55134c(0x98)]]?(queues[_0x546a6e[_0x55134c(0x98)]][_0x55134c(0xba)]=0x1,queues[_0x546a6e[_0x55134c(0xbc)]]=_[_0x55134c(0xae)](queues[_0x546a6e[_0x55134c(0x98)]]),queues[_0x546a6e['transfereeuniqueid']][_0x55134c(0x9c)]=_0x546a6e[_0x55134c(0x97)],queues[_0x546a6e[_0x55134c(0xbc)]]['queuecallerenterreason']=0x2,queues[_0x546a6e['transfereeuniqueid']][_0x55134c(0xad)]=queues[_0x546a6e[_0x55134c(0xcb)]][_0x55134c(0xad)],queues[_0x546a6e[_0x55134c(0xbc)]][_0x55134c(0xc8)]=queues[_0x546a6e['secondtransfererlinkedid']][_0x55134c(0xc8)],queues[_0x546a6e[_0x55134c(0xbc)]][_0x55134c(0xb3)]=utils[_0x55134c(0x92)](),queues[_0x546a6e['transfereeuniqueid']][_0x55134c(0xaf)]=utils[_0x55134c(0x92)](),queues[_0x546a6e[_0x55134c(0xbc)]][_0x55134c(0xd3)]=0x0,queues[_0x546a6e[_0x55134c(0xbc)]][_0x55134c(0x9b)]=0x0):queues[_0x546a6e[_0x55134c(0xb0)]][_0x55134c(0x9c)]=_0x546a6e[_0x55134c(0xcb)]);else _0x546a6e[_0x55134c(0xc0)]==_0x546a6e[_0x55134c(0xcb)]&&(!_['isNil'](queues[_0x546a6e['origtransfererlinkedid']])&&(queues[_0x546a6e[_0x55134c(0xb0)]][_0x55134c(0xa3)]=!![],queues[_0x546a6e[_0x55134c(0xb0)]][_0x55134c(0xca)]='ATTENDED',queues[_0x546a6e[_0x55134c(0xb0)]][_0x55134c(0xa4)]=_0x546a6e[_0x55134c(0xc2)],queues[_0x546a6e['origtransfererlinkedid']][_0x55134c(0x9a)]=_0x546a6e['secondtransfereruniqueid'],queues[_0x546a6e[_0x55134c(0xb0)]][_0x55134c(0xab)]='ATTENDEDTRANSFER'),!_['isNil'](queues[_0x546a6e[_0x55134c(0xcb)]])&&(_0x546a6e[_0x55134c(0xa9)]&&queues[_0x546a6e[_0x55134c(0xa9)]]?(queues[_0x546a6e['transfertargetlinkedid']]['queuecallerenterreason']=0x1,queues[_0x546a6e[_0x55134c(0x97)]]=_[_0x55134c(0xae)](queues[_0x546a6e[_0x55134c(0xa9)]]),queues[_0x546a6e[_0x55134c(0x97)]]['transfereduniqueid']=_0x546a6e['transfertargetuniqueid'],queues[_0x546a6e['transfertargetuniqueid']][_0x55134c(0xba)]=0x2,queues[_0x546a6e['transfertargetuniqueid']][_0x55134c(0xad)]=queues[_0x546a6e[_0x55134c(0xb0)]][_0x55134c(0xad)],queues[_0x546a6e[_0x55134c(0x97)]][_0x55134c(0xc8)]=queues[_0x546a6e['origtransfererlinkedid']][_0x55134c(0xc8)],queues[_0x546a6e['transfertargetuniqueid']]['queuecallerjoinAt']=utils[_0x55134c(0x92)](),queues[_0x546a6e[_0x55134c(0x97)]][_0x55134c(0xaf)]=utils[_0x55134c(0x92)](),queues[_0x546a6e[_0x55134c(0x97)]][_0x55134c(0xd3)]=0x0,queues[_0x546a6e[_0x55134c(0x97)]][_0x55134c(0x9b)]=0x0):queues[_0x546a6e['secondtransfererlinkedid']][_0x55134c(0x9c)]=_0x546a6e[_0x55134c(0xb0)]));}catch(_0x10e6c4){utils[_0x55134c(0xcc)](_0x10e6c4[_0x55134c(0x8f)]);}},exports[a1391_0x1aee6c(0xa8)]=function(_0x3cd03c){const _0x1b0940=a1391_0x1aee6c;!_[_0x1b0940(0xa6)](queues[_0x3cd03c[_0x1b0940(0xaa)]])&&(queues[_0x3cd03c[_0x1b0940(0xaa)]][_0x1b0940(0xd4)]=utils[_0x1b0940(0x92)]());},exports['musiconholdstop']=function(_0x3efa46){const _0x238c6f=a1391_0x1aee6c;!_[_0x238c6f(0xa6)](queues[_0x3efa46['uniqueid']])&&(!_[_0x238c6f(0xa6)](queues[_0x3efa46['uniqueid']][_0x238c6f(0xd4)])&&(queues[_0x3efa46[_0x238c6f(0xaa)]][_0x238c6f(0x9b)]+=utils[_0x238c6f(0xc3)](utils[_0x238c6f(0x92)](),queues[_0x3efa46[_0x238c6f(0xaa)]][_0x238c6f(0xd4)]),delete queues[_0x3efa46['uniqueid']][_0x238c6f(0xd4)]));}; \ No newline at end of file diff --git a/server/services/xdr/recordings.controller.js b/server/services/xdr/recordings.controller.js index e65aafa..f96856a 100644 --- a/server/services/xdr/recordings.controller.js +++ b/server/services/xdr/recordings.controller.js @@ -1 +1 @@ -const a1228_0x5eb6=['request','queue','type','membername','connectedlinename','debug','isNil','CreateVoiceRecording','monitors','mixmonitor_filename','name','UserId','cdr','find','channel','calleridname','substring','exten','value','appdata','toLowerCase','calleridnum','endsWith','linkedid','connectedlinenum','variable','transfer','push','.wav49','split','hangup','newstate','outbound','stack','lodash','lastIndexOf','channelstate','.WAV','error','uniqueid','clone','varset','then','context','application','accountcode','replace'];(function(_0x30432f,_0x5eb653){const _0x367391=function(_0x1798ae){while(--_0x1798ae){_0x30432f['push'](_0x30432f['shift']());}};_0x367391(++_0x5eb653);}(a1228_0x5eb6,0x1cb));const a1228_0x3673=function(_0x30432f,_0x5eb653){_0x30432f=_0x30432f-0x0;let _0x367391=a1228_0x5eb6[_0x30432f];return _0x367391;};const _0x31e44f=a1228_0x3673;'use strict';const _=require(_0x31e44f('0x2d')),utils=require('./utils'),recordings={};function writeDB(_0x1798ae){const _0x2d4ffb=_0x31e44f;utils[_0x2d4ffb('0x10')](_0x1798ae),_0x1798ae[_0x2d4ffb('0x9')]?utils['getUserByInternal'](_0x1798ae['accountcode'])[_0x2d4ffb('0x6')](function(_0x45a2e6){const _0x2e83c9=_0x2d4ffb;_0x45a2e6&&(_0x1798ae[_0x2e83c9('0xe')]=_0x45a2e6[_0x2e83c9('0x15')],_0x1798ae[_0x2e83c9('0x16')]=_0x45a2e6['id']),utils[_0x2e83c9('0xb')](_0x2e83c9('0x12'),_0x1798ae);}):utils['request'](_0x2d4ffb('0x12'),_0x1798ae);}exports['newchannel']=function(_0x55d7e9){const _0xdf22f1=_0x31e44f;try{_0x55d7e9['uniqueid']==_0x55d7e9['linkedid']&&(recordings[_0x55d7e9[_0xdf22f1('0x3')]]={'uniqueid':_0x55d7e9[_0xdf22f1('0x3')],'accountcode':_0x55d7e9['accountcode'],'exten':_0x55d7e9[_0xdf22f1('0x1c')],'context':_0x55d7e9[_0xdf22f1('0x7')],'channel':_0x55d7e9[_0xdf22f1('0x19')],'monitors':[]});}catch(_0x5ab99e){utils[_0xdf22f1('0x2')](_0x5ab99e[_0xdf22f1('0x2c')]);}},exports[_0x31e44f('0x2a')]=function(_0x4f08c2){const _0x4036e5=_0x31e44f;try{if(!_[_0x4036e5('0x11')](recordings[_0x4f08c2['uniqueid']])&&_0x4f08c2[_0x4036e5('0x0')]==0x6){}else!_['isNil'](recordings[_0x4f08c2['linkedid']])&&_0x4f08c2['channelstate']==0x6&&_0x4f08c2['context']!=_0x4036e5('0x25')&&(recordings[_0x4f08c2['linkedid']][_0x4036e5('0x9')]=_0x4f08c2[_0x4036e5('0x9')]);}catch(_0x4df5e7){utils[_0x4036e5('0x2')](_0x4df5e7[_0x4036e5('0x2c')]);}},exports[_0x31e44f('0x5')]=function(_0x8d81ca){const _0x983aad=_0x31e44f;try{if(!_[_0x983aad('0x11')](_0x8d81ca['variable'])&&!_[_0x983aad('0x11')](_0x8d81ca[_0x983aad('0x24')][_0x983aad('0x14')])){_[_0x983aad('0x21')](_0x8d81ca[_0x983aad('0x1d')],_0x983aad('0x27'))&&(_0x8d81ca[_0x983aad('0x1d')]=_0x8d81ca['value'][_0x983aad('0xa')](_0x983aad('0x27'),_0x983aad('0x1')));if(recordings[_0x8d81ca[_0x983aad('0x22')]]){const _0x1b688b=_[_0x983aad('0x18')](recordings[_0x8d81ca[_0x983aad('0x22')]]['monitors'],{'value':_0x8d81ca[_0x983aad('0x1d')]});_['isNil'](_0x1b688b)&&recordings[_0x8d81ca[_0x983aad('0x22')]]['monitors'][_0x983aad('0x26')]({'value':_0x8d81ca[_0x983aad('0x1d')]});}}}catch(_0x1dc94e){utils[_0x983aad('0x2')](_0x1dc94e[_0x983aad('0x2c')]);}},exports[_0x31e44f('0x29')]=function(_0x280747){const _0x3f02b8=_0x31e44f;try{!_[_0x3f02b8('0x11')](recordings[_0x280747['uniqueid']])&&(recordings[_0x280747[_0x3f02b8('0x3')]][_0x3f02b8('0x20')]=_0x280747['calleridnum'],recordings[_0x280747[_0x3f02b8('0x3')]][_0x3f02b8('0x1a')]=_0x280747[_0x3f02b8('0x1a')],recordings[_0x280747['uniqueid']]['connectedlinenum']=_0x280747['connectedlinenum'],recordings[_0x280747[_0x3f02b8('0x3')]][_0x3f02b8('0xf')]=_0x280747['connectedlinename'],recordings[_0x280747[_0x3f02b8('0x3')]][_0x3f02b8('0xd')]==_0x3f02b8('0x2b')&&recordings[_0x280747['uniqueid']][_0x3f02b8('0x9')]&&(recordings[_0x280747[_0x3f02b8('0x3')]][_0x3f02b8('0x23')]=recordings[_0x280747[_0x3f02b8('0x3')]][_0x3f02b8('0x9')],recordings[_0x280747[_0x3f02b8('0x3')]][_0x3f02b8('0xf')]=''),recordings[_0x280747[_0x3f02b8('0x3')]][_0x3f02b8('0x13')]['forEach'](_0x278b28=>{const _0x584ed2=_0x3f02b8,_0x42e1ec=_[_0x584ed2('0x4')](recordings[_0x280747[_0x584ed2('0x3')]]);_0x42e1ec[_0x584ed2('0x1d')]=_0x278b28[_0x584ed2('0x1d')],writeDB(_0x42e1ec);}),delete recordings[_0x280747[_0x3f02b8('0x3')]]);}catch(_0x268ddf){utils[_0x3f02b8('0x2')](_0x268ddf[_0x3f02b8('0x2c')]);}},exports['newexten']=function(_0x3c877a){const _0x2afe87=_0x31e44f;try{if(!_['isNil'](recordings[_0x3c877a[_0x2afe87('0x3')]])){if(_0x3c877a[_0x2afe87('0x8')][_0x2afe87('0x1f')]()=='set'&&_['startsWith'](_0x3c877a['appdata'][_0x2afe87('0x1f')](),_0x2afe87('0x17'))){const _0x19f1de=_0x3c877a[_0x2afe87('0x1e')][_0x2afe87('0x28')]('='),_0x1b25c6=_0x19f1de[0x0][_0x2afe87('0x1b')](_0x19f1de[0x0][_0x2afe87('0x2e')]('(')+0x1,_0x19f1de[0x0]['lastIndexOf'](')')),_0x2d4aeb=_0x19f1de[0x1];recordings[_0x3c877a['uniqueid']][_0x1b25c6]=_0x2d4aeb;}}}catch(_0x3eed48){utils[_0x2afe87('0x2')](_0x3eed48[_0x2afe87('0x2c')]);}},exports['queuecallerjoin']=function(_0x16c6b2){const _0x72d43f=_0x31e44f;try{!_[_0x72d43f('0x11')](recordings[_0x16c6b2[_0x72d43f('0x3')]])&&(recordings[_0x16c6b2['uniqueid']][_0x72d43f('0xc')]=_0x16c6b2[_0x72d43f('0xc')]);}catch(_0xf98613){utils[_0x72d43f('0x2')](_0xf98613[_0x72d43f('0x2c')]);}}; \ No newline at end of file +const a1392_0x1bea=['appdata','monitors','stack','.WAV','connectedlinenum','request','name','uniqueid','substring','UserId','clone','newchannel','membername','channelstate','hangup','context','varset','replace','then','type','./utils','lastIndexOf','lodash','queue','isNil','variable','endsWith','linkedid','mixmonitor_filename','toLowerCase','find','value','outbound','queuecallerjoin','calleridname','newexten','error','set','connectedlinename','push','accountcode','getUserByInternal','.wav49','split','calleridnum'];(function(_0x48be8e,_0x385438){const _0x1bea7c=function(_0x3fcbd2){while(--_0x3fcbd2){_0x48be8e['push'](_0x48be8e['shift']());}};_0x1bea7c(++_0x385438);}(a1392_0x1bea,0x19f));const a1392_0x3fcb=function(_0x48be8e,_0x385438){_0x48be8e=_0x48be8e-0x140;let _0x1bea7c=a1392_0x1bea[_0x48be8e];return _0x1bea7c;};const a1392_0x5162af=a1392_0x3fcb;'use strict';const _=require(a1392_0x5162af(0x14c)),utils=require(a1392_0x5162af(0x14a)),recordings={};function writeDB(_0x24fd15){const _0x1041ad=a1392_0x5162af;utils['debug'](_0x24fd15),_0x24fd15[_0x1041ad(0x15e)]?utils[_0x1041ad(0x15f)](_0x24fd15[_0x1041ad(0x15e)])[_0x1041ad(0x148)](function(_0x246ce1){const _0x2bde0f=_0x1041ad;_0x246ce1&&(_0x24fd15[_0x2bde0f(0x142)]=_0x246ce1[_0x2bde0f(0x169)],_0x24fd15[_0x2bde0f(0x16c)]=_0x246ce1['id']),utils[_0x2bde0f(0x168)]('CreateVoiceRecording',_0x24fd15);}):utils[_0x1041ad(0x168)]('CreateVoiceRecording',_0x24fd15);}exports[a1392_0x5162af(0x141)]=function(_0x186f5b){const _0x1fe223=a1392_0x5162af;try{_0x186f5b['uniqueid']==_0x186f5b[_0x1fe223(0x151)]&&(recordings[_0x186f5b['uniqueid']]={'uniqueid':_0x186f5b[_0x1fe223(0x16a)],'accountcode':_0x186f5b['accountcode'],'exten':_0x186f5b['exten'],'context':_0x186f5b[_0x1fe223(0x145)],'channel':_0x186f5b['channel'],'monitors':[]});}catch(_0x15a768){utils[_0x1fe223(0x15a)](_0x15a768[_0x1fe223(0x165)]);}},exports['newstate']=function(_0x2fac57){const _0xdadf42=a1392_0x5162af;try{if(!_['isNil'](recordings[_0x2fac57[_0xdadf42(0x16a)]])&&_0x2fac57[_0xdadf42(0x143)]==0x6){}else!_['isNil'](recordings[_0x2fac57[_0xdadf42(0x151)]])&&_0x2fac57[_0xdadf42(0x143)]==0x6&&_0x2fac57['context']!='transfer'&&(recordings[_0x2fac57['linkedid']][_0xdadf42(0x15e)]=_0x2fac57['accountcode']);}catch(_0x43a35a){utils[_0xdadf42(0x15a)](_0x43a35a['stack']);}},exports[a1392_0x5162af(0x146)]=function(_0x3ffcd7){const _0x128af2=a1392_0x5162af;try{if(!_[_0x128af2(0x14e)](_0x3ffcd7[_0x128af2(0x14f)])&&!_[_0x128af2(0x14e)](_0x3ffcd7['variable'][_0x128af2(0x152)])){_[_0x128af2(0x150)](_0x3ffcd7['value'],'.wav49')&&(_0x3ffcd7[_0x128af2(0x155)]=_0x3ffcd7[_0x128af2(0x155)][_0x128af2(0x147)](_0x128af2(0x160),_0x128af2(0x166)));if(recordings[_0x3ffcd7[_0x128af2(0x151)]]){const _0x5069c1=_[_0x128af2(0x154)](recordings[_0x3ffcd7[_0x128af2(0x151)]][_0x128af2(0x164)],{'value':_0x3ffcd7[_0x128af2(0x155)]});_[_0x128af2(0x14e)](_0x5069c1)&&recordings[_0x3ffcd7['linkedid']][_0x128af2(0x164)][_0x128af2(0x15d)]({'value':_0x3ffcd7[_0x128af2(0x155)]});}}}catch(_0x4eafcd){utils[_0x128af2(0x15a)](_0x4eafcd[_0x128af2(0x165)]);}},exports[a1392_0x5162af(0x144)]=function(_0x4eb0aa){const _0x9caee0=a1392_0x5162af;try{!_[_0x9caee0(0x14e)](recordings[_0x4eb0aa['uniqueid']])&&(recordings[_0x4eb0aa[_0x9caee0(0x16a)]][_0x9caee0(0x162)]=_0x4eb0aa[_0x9caee0(0x162)],recordings[_0x4eb0aa[_0x9caee0(0x16a)]][_0x9caee0(0x158)]=_0x4eb0aa[_0x9caee0(0x158)],recordings[_0x4eb0aa['uniqueid']]['connectedlinenum']=_0x4eb0aa[_0x9caee0(0x167)],recordings[_0x4eb0aa[_0x9caee0(0x16a)]][_0x9caee0(0x15c)]=_0x4eb0aa['connectedlinename'],recordings[_0x4eb0aa[_0x9caee0(0x16a)]][_0x9caee0(0x149)]==_0x9caee0(0x156)&&recordings[_0x4eb0aa[_0x9caee0(0x16a)]][_0x9caee0(0x15e)]&&(recordings[_0x4eb0aa[_0x9caee0(0x16a)]][_0x9caee0(0x167)]=recordings[_0x4eb0aa['uniqueid']][_0x9caee0(0x15e)],recordings[_0x4eb0aa[_0x9caee0(0x16a)]]['connectedlinename']=''),recordings[_0x4eb0aa[_0x9caee0(0x16a)]][_0x9caee0(0x164)]['forEach'](_0x5164d4=>{const _0x2de4fb=_0x9caee0,_0x1bae18=_[_0x2de4fb(0x140)](recordings[_0x4eb0aa[_0x2de4fb(0x16a)]]);_0x1bae18[_0x2de4fb(0x155)]=_0x5164d4[_0x2de4fb(0x155)],writeDB(_0x1bae18);}),delete recordings[_0x4eb0aa['uniqueid']]);}catch(_0x310c70){utils[_0x9caee0(0x15a)](_0x310c70[_0x9caee0(0x165)]);}},exports[a1392_0x5162af(0x159)]=function(_0xa69d6){const _0x309222=a1392_0x5162af;try{if(!_[_0x309222(0x14e)](recordings[_0xa69d6[_0x309222(0x16a)]])){if(_0xa69d6['application'][_0x309222(0x153)]()==_0x309222(0x15b)&&_['startsWith'](_0xa69d6['appdata'][_0x309222(0x153)](),'cdr')){const _0x590755=_0xa69d6[_0x309222(0x163)][_0x309222(0x161)]('='),_0x5386fb=_0x590755[0x0][_0x309222(0x16b)](_0x590755[0x0][_0x309222(0x14b)]('(')+0x1,_0x590755[0x0][_0x309222(0x14b)](')')),_0x597a7a=_0x590755[0x1];recordings[_0xa69d6[_0x309222(0x16a)]][_0x5386fb]=_0x597a7a;}}}catch(_0x319a74){utils[_0x309222(0x15a)](_0x319a74[_0x309222(0x165)]);}},exports[a1392_0x5162af(0x157)]=function(_0x1e590a){const _0x1f0ff9=a1392_0x5162af;try{!_[_0x1f0ff9(0x14e)](recordings[_0x1e590a[_0x1f0ff9(0x16a)]])&&(recordings[_0x1e590a[_0x1f0ff9(0x16a)]][_0x1f0ff9(0x14d)]=_0x1e590a[_0x1f0ff9(0x14d)]);}catch(_0x25909a){utils['error'](_0x25909a[_0x1f0ff9(0x165)]);}}; \ No newline at end of file diff --git a/server/services/xdr/transfers.controller.js b/server/services/xdr/transfers.controller.js index 13da61b..127ff56 100644 --- a/server/services/xdr/transfers.controller.js +++ b/server/services/xdr/transfers.controller.js @@ -1 +1 @@ -const a1229_0x5516=['transfertargetcalleridnum','./utils','origtransfererlinkedid','transfertargetaccountcode','transfertargetcalleridname','secondtransfererconnectedlinenum','assign','origtransferercalleridnum','transfertargetexten','blind','transfertargetconnectedlinenum','secondtransferercontext','error','origtransferercontext','origtransferercalleridname','secondtransfererconnectedlinename','format','info','type','isNil','transfertargetchannel','origtransfereraccountcode','TRANSFER|%s','request','origtransfererchannel','util','stack','secondtransfererexten'];(function(_0x292594,_0x55167b){const _0x68937e=function(_0x46b997){while(--_0x46b997){_0x292594['push'](_0x292594['shift']());}};_0x68937e(++_0x55167b);}(a1229_0x5516,0x98));const a1229_0x6893=function(_0x292594,_0x55167b){_0x292594=_0x292594-0x0;let _0x68937e=a1229_0x5516[_0x292594];return _0x68937e;};const _0xd5aec3=a1229_0x6893;'use strict';const _=require('lodash'),util=require(_0xd5aec3('0xd')),utils=require(_0xd5aec3('0x11'));function writeDB(_0x46b997){const _0xa24ba6=_0xd5aec3;utils[_0xa24ba6('0x5')](util[_0xa24ba6('0x4')](_0xa24ba6('0xa'),_0x46b997[_0xa24ba6('0x6')])),utils[_0xa24ba6('0xb')]('CreateVoiceTransferReport',_0x46b997);}exports['blindtransfer']=function(_0x1bf817){const _0x38ae40=_0xd5aec3;try{_0x1bf817[_0x38ae40('0x6')]=_0x38ae40('0x19'),writeDB(_0x1bf817);}catch(_0x388949){utils[_0x38ae40('0x0')](_0x388949[_0x38ae40('0xe')]);}},exports['attendedtransfer']=function(_0x43f66c){const _0x2133bd=_0xd5aec3;try{_0x43f66c=_[_0x2133bd('0x16')](_0x43f66c,{'transfererchannel':_0x43f66c[_0x2133bd('0xc')],'transferercalleridnum':_0x43f66c[_0x2133bd('0x17')],'transferercalleridname':_0x43f66c[_0x2133bd('0x2')],'transfererconnectedlinenum':_0x43f66c[_0x2133bd('0x15')],'transfererconnectedlinename':_0x43f66c[_0x2133bd('0x3')],'transfereraccountcode':_0x43f66c[_0x2133bd('0x9')],'transferercontext':_0x43f66c[_0x2133bd('0x1b')],'transfererexten':_0x43f66c[_0x2133bd('0xf')],'transfererlinkedid':_0x43f66c[_0x2133bd('0x12')],'context':_0x43f66c[_0x2133bd('0x1')],'extension':_0x43f66c['origtransfererexten'],'type':'attended'}),_[_0x2133bd('0x7')](_0x43f66c['transfereechannel'])&&(_0x43f66c=_[_0x2133bd('0x16')](_0x43f66c,{'transfereechannel':_0x43f66c[_0x2133bd('0x8')],'transfereecalleridnum':_0x43f66c[_0x2133bd('0x10')],'transfereecalleridname':_0x43f66c[_0x2133bd('0x14')],'transfereeconnectedlinenum':_0x43f66c[_0x2133bd('0x1a')],'transfereeconnectedlinename':_0x43f66c['transfertargetconnectedlinename'],'transfereeaccountcode':_0x43f66c[_0x2133bd('0x13')],'transfereecontext':_0x43f66c['transfertargetcontext'],'transfereeexten':_0x43f66c[_0x2133bd('0x18')],'transfereelinkedid':_0x43f66c['transfertargetlinkedid']})),writeDB(_0x43f66c);}catch(_0x3cea69){utils[_0x2133bd('0x0')](_0x3cea69[_0x2133bd('0xe')]);}}; \ No newline at end of file +const a1393_0x4e32=['secondtransfererexten','origtransferercontext','attended','transfertargetchannel','transfertargetconnectedlinename','type','transfertargetaccountcode','blindtransfer','transfertargetexten','stack','isNil','origtransfererchannel','origtransfererlinkedid','TRANSFER|%s','assign','attendedtransfer','error','lodash','secondtransfererconnectedlinename','origtransfereraccountcode','format','transfertargetlinkedid','util','origtransfererexten','transfertargetcontext','secondtransferercontext','CreateVoiceTransferReport','blind','transfertargetcalleridnum','request'];(function(_0x42960b,_0x2aca73){const _0x4e3230=function(_0xf376f8){while(--_0xf376f8){_0x42960b['push'](_0x42960b['shift']());}};_0x4e3230(++_0x2aca73);}(a1393_0x4e32,0x86));const a1393_0xf376=function(_0x42960b,_0x2aca73){_0x42960b=_0x42960b-0x13b;let _0x4e3230=a1393_0x4e32[_0x42960b];return _0x4e3230;};const a1393_0x241c72=a1393_0xf376;'use strict';const _=require(a1393_0x241c72(0x13e)),util=require(a1393_0x241c72(0x143)),utils=require('./utils');function writeDB(_0x3ed26a){const _0x5858fa=a1393_0x241c72;utils['info'](util[_0x5858fa(0x141)](_0x5858fa(0x158),_0x3ed26a[_0x5858fa(0x150)])),utils[_0x5858fa(0x14a)](_0x5858fa(0x147),_0x3ed26a);}exports[a1393_0x241c72(0x152)]=function(_0x24ba6e){const _0x2b26ca=a1393_0x241c72;try{_0x24ba6e[_0x2b26ca(0x150)]=_0x2b26ca(0x148),writeDB(_0x24ba6e);}catch(_0x4716b2){utils[_0x2b26ca(0x13d)](_0x4716b2['stack']);}},exports[a1393_0x241c72(0x13c)]=function(_0x2f8dd0){const _0x5c9f2c=a1393_0x241c72;try{_0x2f8dd0=_[_0x5c9f2c(0x13b)](_0x2f8dd0,{'transfererchannel':_0x2f8dd0[_0x5c9f2c(0x156)],'transferercalleridnum':_0x2f8dd0['origtransferercalleridnum'],'transferercalleridname':_0x2f8dd0['origtransferercalleridname'],'transfererconnectedlinenum':_0x2f8dd0['secondtransfererconnectedlinenum'],'transfererconnectedlinename':_0x2f8dd0[_0x5c9f2c(0x13f)],'transfereraccountcode':_0x2f8dd0[_0x5c9f2c(0x140)],'transferercontext':_0x2f8dd0[_0x5c9f2c(0x146)],'transfererexten':_0x2f8dd0[_0x5c9f2c(0x14b)],'transfererlinkedid':_0x2f8dd0[_0x5c9f2c(0x157)],'context':_0x2f8dd0[_0x5c9f2c(0x14c)],'extension':_0x2f8dd0[_0x5c9f2c(0x144)],'type':_0x5c9f2c(0x14d)}),_[_0x5c9f2c(0x155)](_0x2f8dd0['transfereechannel'])&&(_0x2f8dd0=_[_0x5c9f2c(0x13b)](_0x2f8dd0,{'transfereechannel':_0x2f8dd0[_0x5c9f2c(0x14e)],'transfereecalleridnum':_0x2f8dd0[_0x5c9f2c(0x149)],'transfereecalleridname':_0x2f8dd0['transfertargetcalleridname'],'transfereeconnectedlinenum':_0x2f8dd0['transfertargetconnectedlinenum'],'transfereeconnectedlinename':_0x2f8dd0[_0x5c9f2c(0x14f)],'transfereeaccountcode':_0x2f8dd0[_0x5c9f2c(0x151)],'transfereecontext':_0x2f8dd0[_0x5c9f2c(0x145)],'transfereeexten':_0x2f8dd0[_0x5c9f2c(0x153)],'transfereelinkedid':_0x2f8dd0[_0x5c9f2c(0x142)]})),writeDB(_0x2f8dd0);}catch(_0x37e318){utils['error'](_0x37e318[_0x5c9f2c(0x154)]);}}; \ No newline at end of file diff --git a/server/services/xdr/utils.js b/server/services/xdr/utils.js index eeb3e1a..6ab585d 100644 --- a/server/services/xdr/utils.js +++ b/server/services/xdr/utils.js @@ -1 +1 @@ -const a1230_0x4490=['http','error','subtract','xdr','getUserByName','isAfter','GetUser','then','diff','getUserByInterface','GetVoiceQueue','name','GETVOICEQUEUEBYNAME|','result','interface','seconds','addTime','NOTFOUND','YYYY-MM-DD\x20HH:mm:ss','acw','format','type','FOUND','isBefore','getVoiceQueueByName','stringify','add','stack','length','diffTime','../../config/logger','debug','request','moment','now','getUserByInternal','jayson/promise','info','acwTimeout','catch','sumTime'];(function(_0x50442c,_0x449097){const _0x4cf776=function(_0x1c09ef){while(--_0x1c09ef){_0x50442c['push'](_0x50442c['shift']());}};_0x4cf776(++_0x449097);}(a1230_0x4490,0x193));const a1230_0x4cf7=function(_0x50442c,_0x449097){_0x50442c=_0x50442c-0x0;let _0x4cf776=a1230_0x4490[_0x50442c];return _0x4cf776;};const _0x29e46d=a1230_0x4cf7;'use strict';const jayson=require(_0x29e46d('0x2')),moment=require(_0x29e46d('0x28')),client=jayson['client'][_0x29e46d('0x7')]({'port':0x2329}),logger=require(_0x29e46d('0x25'))(_0x29e46d('0xa'));exports[_0x29e46d('0x3')]=function(_0x1c09ef){const _0x1f435f=_0x29e46d;logger[_0x1f435f('0x3')](_0x1c09ef);},exports[_0x29e46d('0x26')]=function(_0x449103){const _0x30a0d4=_0x29e46d;logger[_0x30a0d4('0x26')](JSON['stringify'](_0x449103));},exports[_0x29e46d('0x8')]=function(_0x22cc24){logger['error'](_0x22cc24['stack']);},exports[_0x29e46d('0x27')]=function(_0x31a41a,_0x3c3ee7){const _0x463ee9=_0x29e46d;return client[_0x463ee9('0x27')](_0x31a41a,{'body':_0x3c3ee7})['then'](function(_0x38d831){const _0x480ae8=_0x463ee9;logger[_0x480ae8('0x26')](JSON[_0x480ae8('0x20')](_0x38d831));})['catch'](function(_0x59d552){const _0x31cdba=_0x463ee9;logger[_0x31cdba('0x8')](_0x59d552['stack']);});};function getUser(_0x4ab8be){const _0x2b7ee4=_0x29e46d;return client[_0x2b7ee4('0x27')](_0x2b7ee4('0xd'),{'options':{'raw':!![],'attributes':['id','internal',_0x2b7ee4('0x12'),_0x2b7ee4('0x15')],'where':_0x4ab8be,'limit':0x1}})[_0x2b7ee4('0xe')](function(_0x25b1bc){const _0x2d81fe=_0x2b7ee4;return logger['info']('GETUSER|'+JSON[_0x2d81fe('0x20')](_0x4ab8be)+'|'+(_0x25b1bc[_0x2d81fe('0x14')][_0x2d81fe('0x23')]?_0x2d81fe('0x1d'):'NOTFOUND')),_0x25b1bc[_0x2d81fe('0x14')][_0x2d81fe('0x23')]?_0x25b1bc[_0x2d81fe('0x14')][0x0]:null;});}exports[_0x29e46d('0x1')]=function(_0x4d2f99){return new Promise(function(_0xde4ed8){const _0x44e913=a1230_0x4cf7;return _0x4d2f99?getUser({'internal':_0x4d2f99})[_0x44e913('0xe')](function(_0x5b0133){return _0xde4ed8(_0x5b0133);})[_0x44e913('0x5')](function(_0x2caf73){const _0x4ff5b7=_0x44e913;return logger[_0x4ff5b7('0x8')](_0x2caf73['stack']),_0xde4ed8(null);}):_0xde4ed8(null);});},exports[_0x29e46d('0x10')]=function(_0x398a94){return new Promise(function(_0x331d73){const _0x58956e=a1230_0x4cf7;return _0x398a94?getUser({'interface':_0x398a94})[_0x58956e('0xe')](function(_0x33e1c7){return _0x331d73(_0x33e1c7);})[_0x58956e('0x5')](function(_0x1ec8ee){const _0x1b4ac5=_0x58956e;return logger[_0x1b4ac5('0x8')](_0x1ec8ee[_0x1b4ac5('0x22')]),_0x331d73(null);}):_0x331d73(null);});},exports[_0x29e46d('0xb')]=function(_0x10124d){return new Promise(function(_0x3e01e7){const _0xb829c0=a1230_0x4cf7;return _0x10124d?getUser({'name':_0x10124d})[_0xb829c0('0xe')](function(_0x42bbf9){return _0x3e01e7(_0x42bbf9);})['catch'](function(_0xd8385){const _0x23c044=_0xb829c0;return logger[_0x23c044('0x8')](_0xd8385['stack']),_0x3e01e7(null);}):_0x3e01e7(null);});},exports[_0x29e46d('0x1f')]=function(_0xfc9e9d){return new Promise(function(_0x3bb43b){const _0x56164=a1230_0x4cf7;return _0xfc9e9d?client[_0x56164('0x27')](_0x56164('0x11'),{'options':{'raw':!![],'attributes':['id',_0x56164('0x12'),_0x56164('0x1c'),_0x56164('0x1a'),_0x56164('0x4')],'where':{'name':_0xfc9e9d},'limit':0x1}})[_0x56164('0xe')](function(_0x90d5ed){const _0xe47f77=_0x56164;return logger[_0xe47f77('0x3')](_0xe47f77('0x13')+_0xfc9e9d+'|'+(_0x90d5ed[_0xe47f77('0x14')]['length']?_0xe47f77('0x1d'):_0xe47f77('0x18'))),_0x3bb43b(_0x90d5ed[_0xe47f77('0x14')][_0xe47f77('0x23')]?_0x90d5ed['result'][0x0]:null);})[_0x56164('0x5')](function(_0xa23cce){const _0x17fd24=_0x56164;return logger[_0x17fd24('0x8')](_0xa23cce[_0x17fd24('0x22')]),_0x3bb43b(null);}):_0x3bb43b(null);});},exports[_0x29e46d('0x17')]=function(_0xa2f004,_0x2b32d7){const _0x2026af=_0x29e46d;return moment(_0xa2f004)[_0x2026af('0x21')](_0x2b32d7,_0x2026af('0x16'))[_0x2026af('0x1b')](_0x2026af('0x19'));},exports['subtractTime']=function(_0x5aa45b,_0x5865aa){const _0x59101e=_0x29e46d;return moment(_0x5aa45b)[_0x59101e('0x9')](_0x5865aa,'seconds')[_0x59101e('0x1b')]('YYYY-MM-DD\x20HH:mm:ss');},exports[_0x29e46d('0x24')]=function(_0x3b9b74,_0x33fd11){const _0x936a2f=_0x29e46d;return moment(_0x3b9b74)[_0x936a2f('0xf')](moment(_0x33fd11),_0x936a2f('0x16'));},exports[_0x29e46d('0x6')]=function(_0x7d3e4a,_0x2468e0){return parseInt(_0x7d3e4a,0xa)+parseInt(_0x2468e0,0xa);},exports[_0x29e46d('0x0')]=function(){const _0x56a5b2=_0x29e46d;return moment()['format'](_0x56a5b2('0x19'));},exports[_0x29e46d('0xc')]=function(_0x3611e1,_0x3fd7f8){const _0x587fc5=_0x29e46d;return _0x3fd7f8?moment(_0x3611e1)[_0x587fc5('0xc')](_0x3fd7f8):!![];},exports[_0x29e46d('0x1e')]=function(_0x4a8039,_0x15af1e){if(_0x15af1e)return moment(_0x4a8039)['isBefore'](_0x15af1e);else return _0x4a8039?!![]:![];}; \ No newline at end of file +const a1394_0x2e19=['internal','error','diff','stack','type','name','FOUND','GETVOICEQUEUEBYNAME|','getUserByInterface','debug','info','http','add','then','getUserByName','YYYY-MM-DD\x20HH:mm:ss','stringify','subtractTime','length','request','jayson/promise','addTime','result','interface','seconds','isAfter','subtract','NOTFOUND','isBefore','acwTimeout','getVoiceQueueByName','diffTime','getUserByInternal','format','xdr','moment','catch','sumTime'];(function(_0x498a40,_0x2c9e79){const _0x2e19ee=function(_0x4ab8a2){while(--_0x4ab8a2){_0x498a40['push'](_0x498a40['shift']());}};_0x2e19ee(++_0x2c9e79);}(a1394_0x2e19,0x162));const a1394_0x4ab8=function(_0x498a40,_0x2c9e79){_0x498a40=_0x498a40-0x1e4;let _0x2e19ee=a1394_0x2e19[_0x498a40];return _0x2e19ee;};const a1394_0x42f698=a1394_0x4ab8;'use strict';const jayson=require(a1394_0x42f698(0x1ec)),moment=require(a1394_0x42f698(0x1fb)),client=jayson['client'][a1394_0x42f698(0x209)]({'port':0x2329}),logger=require('../../config/logger')(a1394_0x42f698(0x1fa));exports['info']=function(_0x2039b2){const _0x1dad26=a1394_0x42f698;logger[_0x1dad26(0x208)](_0x2039b2);},exports[a1394_0x42f698(0x207)]=function(_0xb806a3){const _0x366161=a1394_0x42f698;logger[_0x366161(0x207)](JSON[_0x366161(0x1e8)](_0xb806a3));},exports[a1394_0x42f698(0x1ff)]=function(_0x491eca){const _0x369968=a1394_0x42f698;logger[_0x369968(0x1ff)](_0x491eca[_0x369968(0x201)]);},exports[a1394_0x42f698(0x1eb)]=function(_0x5d96cd,_0x352498){const _0xed849=a1394_0x42f698;return client['request'](_0x5d96cd,{'body':_0x352498})[_0xed849(0x1e5)](function(_0x20816d){const _0x5fb5f5=_0xed849;logger[_0x5fb5f5(0x207)](JSON[_0x5fb5f5(0x1e8)](_0x20816d));})[_0xed849(0x1fc)](function(_0x408202){const _0x206e10=_0xed849;logger['error'](_0x408202[_0x206e10(0x201)]);});};function getUser(_0x237774){const _0x346a9a=a1394_0x42f698;return client[_0x346a9a(0x1eb)]('GetUser',{'options':{'raw':!![],'attributes':['id',_0x346a9a(0x1fe),_0x346a9a(0x203),_0x346a9a(0x1ef)],'where':_0x237774,'limit':0x1}})[_0x346a9a(0x1e5)](function(_0x42ea92){const _0x31bef0=_0x346a9a;return logger[_0x31bef0(0x208)]('GETUSER|'+JSON[_0x31bef0(0x1e8)](_0x237774)+'|'+(_0x42ea92[_0x31bef0(0x1ee)][_0x31bef0(0x1ea)]?_0x31bef0(0x204):_0x31bef0(0x1f3))),_0x42ea92[_0x31bef0(0x1ee)]['length']?_0x42ea92[_0x31bef0(0x1ee)][0x0]:null;});}exports[a1394_0x42f698(0x1f8)]=function(_0x51ef23){return new Promise(function(_0x344bea){const _0x2b1bd1=a1394_0x4ab8;return _0x51ef23?getUser({'internal':_0x51ef23})[_0x2b1bd1(0x1e5)](function(_0x45c892){return _0x344bea(_0x45c892);})['catch'](function(_0x3b76d8){const _0x18329=_0x2b1bd1;return logger['error'](_0x3b76d8[_0x18329(0x201)]),_0x344bea(null);}):_0x344bea(null);});},exports[a1394_0x42f698(0x206)]=function(_0x305698){return new Promise(function(_0x36fd82){const _0x1bfa9b=a1394_0x4ab8;return _0x305698?getUser({'interface':_0x305698})[_0x1bfa9b(0x1e5)](function(_0xb3384f){return _0x36fd82(_0xb3384f);})[_0x1bfa9b(0x1fc)](function(_0x19f1a1){const _0x38707c=_0x1bfa9b;return logger['error'](_0x19f1a1[_0x38707c(0x201)]),_0x36fd82(null);}):_0x36fd82(null);});},exports[a1394_0x42f698(0x1e6)]=function(_0x46e9f7){return new Promise(function(_0x3af242){const _0x465700=a1394_0x4ab8;return _0x46e9f7?getUser({'name':_0x46e9f7})[_0x465700(0x1e5)](function(_0x1385a2){return _0x3af242(_0x1385a2);})[_0x465700(0x1fc)](function(_0x225e8a){return logger['error'](_0x225e8a['stack']),_0x3af242(null);}):_0x3af242(null);});},exports[a1394_0x42f698(0x1f6)]=function(_0x2bfb93){return new Promise(function(_0x1ef7ed){const _0x50d3f9=a1394_0x4ab8;return _0x2bfb93?client[_0x50d3f9(0x1eb)]('GetVoiceQueue',{'options':{'raw':!![],'attributes':['id','name',_0x50d3f9(0x202),'acw',_0x50d3f9(0x1f5)],'where':{'name':_0x2bfb93},'limit':0x1}})[_0x50d3f9(0x1e5)](function(_0x426e98){const _0x3ef6b7=_0x50d3f9;return logger[_0x3ef6b7(0x208)](_0x3ef6b7(0x205)+_0x2bfb93+'|'+(_0x426e98['result']['length']?'FOUND':'NOTFOUND')),_0x1ef7ed(_0x426e98[_0x3ef6b7(0x1ee)][_0x3ef6b7(0x1ea)]?_0x426e98[_0x3ef6b7(0x1ee)][0x0]:null);})[_0x50d3f9(0x1fc)](function(_0x4694fa){const _0x36fe47=_0x50d3f9;return logger[_0x36fe47(0x1ff)](_0x4694fa[_0x36fe47(0x201)]),_0x1ef7ed(null);}):_0x1ef7ed(null);});},exports[a1394_0x42f698(0x1ed)]=function(_0x59d26c,_0x2076ec){const _0x1fd92d=a1394_0x42f698;return moment(_0x59d26c)[_0x1fd92d(0x1e4)](_0x2076ec,'seconds')[_0x1fd92d(0x1f9)](_0x1fd92d(0x1e7));},exports[a1394_0x42f698(0x1e9)]=function(_0x393e8c,_0x5d3caf){const _0x5af934=a1394_0x42f698;return moment(_0x393e8c)[_0x5af934(0x1f2)](_0x5d3caf,_0x5af934(0x1f0))['format'](_0x5af934(0x1e7));},exports[a1394_0x42f698(0x1f7)]=function(_0x3d67c3,_0x282ec1){const _0xc0b0d6=a1394_0x42f698;return moment(_0x3d67c3)[_0xc0b0d6(0x200)](moment(_0x282ec1),_0xc0b0d6(0x1f0));},exports[a1394_0x42f698(0x1fd)]=function(_0x1abff8,_0x2acc26){return parseInt(_0x1abff8,0xa)+parseInt(_0x2acc26,0xa);},exports['now']=function(){const _0x2c461a=a1394_0x42f698;return moment()[_0x2c461a(0x1f9)](_0x2c461a(0x1e7));},exports[a1394_0x42f698(0x1f1)]=function(_0x57cb4f,_0x9c5b11){const _0x4cb3a6=a1394_0x42f698;return _0x9c5b11?moment(_0x57cb4f)[_0x4cb3a6(0x1f1)](_0x9c5b11):!![];},exports[a1394_0x42f698(0x1f4)]=function(_0x2f260e,_0x4993aa){if(_0x4993aa)return moment(_0x2f260e)['isBefore'](_0x4993aa);else return _0x2f260e?!![]:![];}; \ No newline at end of file diff --git a/server/utils/build-info.js b/server/utils/build-info.js index 05f33f2..381f885 100644 --- a/server/utils/build-info.js +++ b/server/utils/build-info.js @@ -1 +1 @@ -const a1231_0xb9ca=['../../package.json','git-last-commit','xcally','resolve','../config/config.service','isProduction','exports','join'];(function(_0xc46c94,_0xb9ca6a){const _0x4fed5d=function(_0x128fd5){while(--_0x128fd5){_0xc46c94['push'](_0xc46c94['shift']());}};_0x4fed5d(++_0xb9ca6a);}(a1231_0xb9ca,0x7c));const a1231_0x4fed=function(_0xc46c94,_0xb9ca6a){_0xc46c94=_0xc46c94-0x0;let _0x4fed5d=a1231_0xb9ca[_0xc46c94];return _0x4fed5d;};const _0x441981=a1231_0x4fed,{getLastCommit}=require(_0x441981('0x5')),{getConfigService}=require(_0x441981('0x0')),packageJson=require(_0x441981('0x4')),cs=getConfigService();function getBuildInfo(){return new Promise((_0x128fd5,_0x435621)=>{getLastCommit(function(_0x1d5307,_0xef95d1){const _0x1c269c=a1231_0x4fed;if(_0x1d5307)_0x435621(_0x1d5307);else{const {shortHash:_0x1ed1c6,branch:_0x1f7429,committedOn:_0x3d3f33,tags:_0x10ddbb}=_0xef95d1;_0x128fd5({'shortHash':_0x1ed1c6,'branch':_0x1f7429,'tag':_0x10ddbb[_0x1c269c('0x3')](',\x20'),'committedOn':new Date(Number(_0x3d3f33)*0x3e8),'buildDate':new Date()});}});});}function readBuildInfo(){const _0x45de73=_0x441981;return cs[_0x45de73('0x1')]&&typeof packageJson[_0x45de73('0x6')]!=='undefined'?Promise[_0x45de73('0x7')](packageJson['xcally']):getBuildInfo();}module[_0x441981('0x2')]={'getBuildInfo':getBuildInfo,'readBuildInfo':readBuildInfo}; \ No newline at end of file +const a1395_0x3358=['../config/config.service','xcally','exports','git-last-commit','resolve'];(function(_0x5493f0,_0x54f0f1){const _0x33587e=function(_0x5b53b4){while(--_0x5b53b4){_0x5493f0['push'](_0x5493f0['shift']());}};_0x33587e(++_0x54f0f1);}(a1395_0x3358,0xd0));const a1395_0x5b53=function(_0x5493f0,_0x54f0f1){_0x5493f0=_0x5493f0-0x81;let _0x33587e=a1395_0x3358[_0x5493f0];return _0x33587e;};const a1395_0xab047a=a1395_0x5b53,{getLastCommit}=require(a1395_0xab047a(0x81)),{getConfigService}=require(a1395_0xab047a(0x83)),packageJson=require('../../package.json'),cs=getConfigService();function getBuildInfo(){return new Promise((_0x323f9c,_0xbb25bc)=>{getLastCommit(function(_0x323c21,_0x291509){if(_0x323c21)_0xbb25bc(_0x323c21);else{const {shortHash:_0x74530d,branch:_0x16a30e,committedOn:_0x2ca9e7,tags:_0x1f8258}=_0x291509;_0x323f9c({'shortHash':_0x74530d,'branch':_0x16a30e,'tag':_0x1f8258['join'](',\x20'),'committedOn':new Date(Number(_0x2ca9e7)*0x3e8),'buildDate':new Date()});}});});}function readBuildInfo(){const _0x1aa148=a1395_0xab047a;return cs['isProduction']&&typeof packageJson[_0x1aa148(0x84)]!=='undefined'?Promise[_0x1aa148(0x82)](packageJson[_0x1aa148(0x84)]):getBuildInfo();}module['exports']['getBuildInfo']=getBuildInfo,module[a1395_0xab047a(0x85)]['readBuildInfo']=readBuildInfo; \ No newline at end of file diff --git a/server/utils/mask-sensistive-data.js b/server/utils/mask-sensistive-data.js index 0affe40..5373687 100644 --- a/server/utils/mask-sensistive-data.js +++ b/server/utils/mask-sensistive-data.js @@ -1 +1 @@ -const a1232_0x36a0=['authToken','phone','code','securityToken','secretaccesskey','lastName','accessToken','newPassword','privateKey','}@@','isArray','apiKey','street','clientSecret','membername','key','exten','firstName','oldPassword','username','vidaooApiKey','replace','includes','exports','consumerSecret','calleridname','accessKey','registry','isString','pass','clientId','accessTokenSecret','calleridnum','localstationid','consumerKey','password','lodash','@@{','isPlainObject'];(function(_0x5a1ced,_0x36a0d8){const _0x266295=function(_0x52e759){while(--_0x52e759){_0x5a1ced['push'](_0x5a1ced['shift']());}};_0x266295(++_0x36a0d8);}(a1232_0x36a0,0xf9));const a1232_0x2662=function(_0x5a1ced,_0x36a0d8){_0x5a1ced=_0x5a1ced-0x0;let _0x266295=a1232_0x36a0[_0x5a1ced];return _0x266295;};const _0x272439=a1232_0x2662,_=require(_0x272439('0x15')),sensitiveFields=[_0x272439('0x4'),_0x272439('0x14'),_0x272439('0x1f'),_0x272439('0x23'),_0x272439('0x2'),_0x272439('0x1d'),_0x272439('0x24'),_0x272439('0x19'),'mobile','fax','email',_0x272439('0xf'),_0x272439('0x25'),_0x272439('0x1b'),_0x272439('0x1a'),_0x272439('0xb'),'tenantId','token','channelSecret',_0x272439('0x1e'),_0x272439('0x10'),_0x272439('0x18'),_0x272439('0x13'),_0x272439('0x9'),_0x272439('0x26'),_0x272439('0xa'),_0x272439('0x11'),_0x272439('0x1'),_0x272439('0x5'),'clientEmail',_0x272439('0x20'),'accesskeyid',_0x272439('0x1c'),_0x272439('0x0'),'user',_0x272439('0xe'),'accountSid',_0x272439('0x12'),'dsn','secret',_0x272439('0xc'),_0x272439('0x3')];function maskSensitiveData(_0x52e759){const _0x30a54b=_0x272439,_0x5bdee1=/(?!^)[\s\S](?!$)/g;for(const _0x4ae8be in _0x52e759){if(_[_0x30a54b('0x22')](_0x52e759[_0x4ae8be]))for(let _0x142e69=0x0;_0x142e69<_0x52e759[_0x4ae8be]['length'];_0x142e69++){maskSensitiveData(_0x52e759[_0x4ae8be][_0x142e69]);}else{if(_[_0x30a54b('0x17')](_0x52e759[_0x4ae8be]))maskSensitiveData(_0x52e759[_0x4ae8be]);else _[_0x30a54b('0xd')](_0x52e759[_0x4ae8be])&&(_0x52e759[_0x4ae8be]=_0x52e759[_0x4ae8be]['replace'](/{{{/g,_0x30a54b('0x16'))[_0x30a54b('0x6')](/}}}/g,_0x30a54b('0x21'))[_0x30a54b('0x6')](/{{/g,'@{')[_0x30a54b('0x6')](/}}/g,'}@'),_[_0x30a54b('0x7')](sensitiveFields,_0x4ae8be)&&(_0x52e759[_0x4ae8be]=_0x52e759[_0x4ae8be][_0x30a54b('0x6')](_0x5bdee1,'*')));}}}module[_0x272439('0x8')]={'maskSensitiveData':maskSensitiveData}; \ No newline at end of file +const a1396_0x2560=['clientId','accessTokenSecret','password','token','firstName','accesskeyid','secretaccesskey','street','phone','secret','calleridnum','accountSid','length','replace','isPlainObject','registry','lastName','@@{','accessKey','key','clientEmail','accessToken','dsn','}@@','code','pass','consumerSecret','isString','calleridname','newPassword','email','authToken','apiKey','consumerKey','mobile','user','channelSecret','exten','privateKey','securityToken'];(function(_0x42df22,_0x5508ff){const _0x256062=function(_0x12c3b7){while(--_0x12c3b7){_0x42df22['push'](_0x42df22['shift']());}};_0x256062(++_0x5508ff);}(a1396_0x2560,0x1c9));const a1396_0x12c3=function(_0x42df22,_0x5508ff){_0x42df22=_0x42df22-0x64;let _0x256062=a1396_0x2560[_0x42df22];return _0x256062;};const a1396_0x21a258=a1396_0x12c3,_=require('lodash'),sensitiveFields=['username',a1396_0x21a258(0x7d),a1396_0x21a258(0x70),a1396_0x21a258(0x73),a1396_0x21a258(0x7f),a1396_0x21a258(0x8b),a1396_0x21a258(0x82),a1396_0x21a258(0x83),a1396_0x21a258(0x75),'fax',a1396_0x21a258(0x71),a1396_0x21a258(0x7b),'clientSecret',a1396_0x21a258(0x7a),a1396_0x21a258(0x6b),a1396_0x21a258(0x65),'tenantId',a1396_0x21a258(0x7e),a1396_0x21a258(0x77),a1396_0x21a258(0x68),a1396_0x21a258(0x7c),a1396_0x21a258(0x72),a1396_0x21a258(0x74),a1396_0x21a258(0x6d),'membername',a1396_0x21a258(0x6f),a1396_0x21a258(0x85),a1396_0x21a258(0x78),'vidaooApiKey',a1396_0x21a258(0x67),a1396_0x21a258(0x79),a1396_0x21a258(0x80),a1396_0x21a258(0x81),a1396_0x21a258(0x66),a1396_0x21a258(0x76),a1396_0x21a258(0x6c),a1396_0x21a258(0x86),'localstationid',a1396_0x21a258(0x69),a1396_0x21a258(0x84),a1396_0x21a258(0x8a),'oldPassword'];function maskSensitiveData(_0x4d07f5){const _0x161873=a1396_0x21a258,_0x4f7b1b=/(?!^)[\s\S](?!$)/g;for(const _0x28553c in _0x4d07f5){if(_['isArray'](_0x4d07f5[_0x28553c]))for(let _0x52cc77=0x0;_0x52cc77<_0x4d07f5[_0x28553c][_0x161873(0x87)];_0x52cc77++){maskSensitiveData(_0x4d07f5[_0x28553c][_0x52cc77]);}else{if(_[_0x161873(0x89)](_0x4d07f5[_0x28553c]))maskSensitiveData(_0x4d07f5[_0x28553c]);else _[_0x161873(0x6e)](_0x4d07f5[_0x28553c])&&(_0x4d07f5[_0x28553c]=_0x4d07f5[_0x28553c][_0x161873(0x88)](/{{{/g,_0x161873(0x64))[_0x161873(0x88)](/}}}/g,_0x161873(0x6a))[_0x161873(0x88)](/{{/g,'@{')[_0x161873(0x88)](/}}/g,'}@'),_['includes'](sensitiveFields,_0x28553c)&&(_0x4d07f5[_0x28553c]=_0x4d07f5[_0x28553c][_0x161873(0x88)](_0x4f7b1b,'*')));}}}module['exports']['maskSensitiveData']=maskSensitiveData; \ No newline at end of file diff --git a/snippets/chat_v3.0.0-alpha/fonts/00fe515d7113c2841e5d74c9ff891413.svg b/snippets/chat_v3.0.0-alpha.1/fonts/00fe515d7113c2841e5d74c9ff891413.svg similarity index 100% rename from snippets/chat_v3.0.0-alpha/fonts/00fe515d7113c2841e5d74c9ff891413.svg rename to snippets/chat_v3.0.0-alpha.1/fonts/00fe515d7113c2841e5d74c9ff891413.svg diff --git a/snippets/chat_v3.0.0-alpha/fonts/3b24a6b94b2631f4d565d76f4f7f18d6.svg b/snippets/chat_v3.0.0-alpha.1/fonts/3b24a6b94b2631f4d565d76f4f7f18d6.svg similarity index 100% rename from snippets/chat_v3.0.0-alpha/fonts/3b24a6b94b2631f4d565d76f4f7f18d6.svg rename to snippets/chat_v3.0.0-alpha.1/fonts/3b24a6b94b2631f4d565d76f4f7f18d6.svg diff --git a/snippets/chat_v3.0.0-alpha/fonts/6e274885f90f6e3ad514d4aeff71d861.svg b/snippets/chat_v3.0.0-alpha.1/fonts/6e274885f90f6e3ad514d4aeff71d861.svg similarity index 100% rename from snippets/chat_v3.0.0-alpha/fonts/6e274885f90f6e3ad514d4aeff71d861.svg rename to snippets/chat_v3.0.0-alpha.1/fonts/6e274885f90f6e3ad514d4aeff71d861.svg diff --git a/snippets/chat_v3.0.0-alpha/fonts/85982b357eae1e408ca5c9eb9a749a68.svg b/snippets/chat_v3.0.0-alpha.1/fonts/85982b357eae1e408ca5c9eb9a749a68.svg similarity index 100% rename from snippets/chat_v3.0.0-alpha/fonts/85982b357eae1e408ca5c9eb9a749a68.svg rename to snippets/chat_v3.0.0-alpha.1/fonts/85982b357eae1e408ca5c9eb9a749a68.svg diff --git a/snippets/chat_v3.0.0-alpha/fonts/c9f502ad417b1b987198457bca8144c0.svg b/snippets/chat_v3.0.0-alpha.1/fonts/c9f502ad417b1b987198457bca8144c0.svg similarity index 100% rename from snippets/chat_v3.0.0-alpha/fonts/c9f502ad417b1b987198457bca8144c0.svg rename to snippets/chat_v3.0.0-alpha.1/fonts/c9f502ad417b1b987198457bca8144c0.svg diff --git a/snippets/chat_v3.0.0-alpha/fonts/d42c4ce660cb31c37f1429fc47d37ed9.svg b/snippets/chat_v3.0.0-alpha.1/fonts/d42c4ce660cb31c37f1429fc47d37ed9.svg similarity index 100% rename from snippets/chat_v3.0.0-alpha/fonts/d42c4ce660cb31c37f1429fc47d37ed9.svg rename to snippets/chat_v3.0.0-alpha.1/fonts/d42c4ce660cb31c37f1429fc47d37ed9.svg diff --git a/snippets/chat_v3.0.0-alpha/fonts/f1aa544de7c14120afaa330ff3216de0.svg b/snippets/chat_v3.0.0-alpha.1/fonts/f1aa544de7c14120afaa330ff3216de0.svg similarity index 100% rename from snippets/chat_v3.0.0-alpha/fonts/f1aa544de7c14120afaa330ff3216de0.svg rename to snippets/chat_v3.0.0-alpha.1/fonts/f1aa544de7c14120afaa330ff3216de0.svg diff --git a/snippets/chat_v3.0.0-alpha/images/1caa43fa2b705156a7e96b8cb2ed2586.svg b/snippets/chat_v3.0.0-alpha.1/images/1caa43fa2b705156a7e96b8cb2ed2586.svg similarity index 100% rename from snippets/chat_v3.0.0-alpha/images/1caa43fa2b705156a7e96b8cb2ed2586.svg rename to snippets/chat_v3.0.0-alpha.1/images/1caa43fa2b705156a7e96b8cb2ed2586.svg diff --git a/snippets/chat_v3.0.0-alpha/images/73d7c63288b2f8f50246337cf716dcda.svg b/snippets/chat_v3.0.0-alpha.1/images/73d7c63288b2f8f50246337cf716dcda.svg similarity index 100% rename from snippets/chat_v3.0.0-alpha/images/73d7c63288b2f8f50246337cf716dcda.svg rename to snippets/chat_v3.0.0-alpha.1/images/73d7c63288b2f8f50246337cf716dcda.svg diff --git a/snippets/chat_v3.0.0-alpha/images/8690d33d189422f00cd7310f4bc5276b.svg b/snippets/chat_v3.0.0-alpha.1/images/8690d33d189422f00cd7310f4bc5276b.svg similarity index 100% rename from snippets/chat_v3.0.0-alpha/images/8690d33d189422f00cd7310f4bc5276b.svg rename to snippets/chat_v3.0.0-alpha.1/images/8690d33d189422f00cd7310f4bc5276b.svg diff --git a/snippets/chat_v3.0.0-alpha/images/b4f34fdd9c2202ec42d7aa72e8b674e6.svg b/snippets/chat_v3.0.0-alpha.1/images/b4f34fdd9c2202ec42d7aa72e8b674e6.svg similarity index 100% rename from snippets/chat_v3.0.0-alpha/images/b4f34fdd9c2202ec42d7aa72e8b674e6.svg rename to snippets/chat_v3.0.0-alpha.1/images/b4f34fdd9c2202ec42d7aa72e8b674e6.svg diff --git a/snippets/chat_v3.0.0-alpha/images/b6577b3c667d665545b4ed631f34c339.svg b/snippets/chat_v3.0.0-alpha.1/images/b6577b3c667d665545b4ed631f34c339.svg similarity index 100% rename from snippets/chat_v3.0.0-alpha/images/b6577b3c667d665545b4ed631f34c339.svg rename to snippets/chat_v3.0.0-alpha.1/images/b6577b3c667d665545b4ed631f34c339.svg diff --git a/snippets/chat_v3.0.0-alpha/images/c3a358780fbd96e66787d6dca1a9f46d.svg b/snippets/chat_v3.0.0-alpha.1/images/c3a358780fbd96e66787d6dca1a9f46d.svg similarity index 100% rename from snippets/chat_v3.0.0-alpha/images/c3a358780fbd96e66787d6dca1a9f46d.svg rename to snippets/chat_v3.0.0-alpha.1/images/c3a358780fbd96e66787d6dca1a9f46d.svg diff --git a/snippets/chat_v3.0.0-alpha/images/fc212b55b3e002b93debef9d67c0b0bd.svg b/snippets/chat_v3.0.0-alpha.1/images/fc212b55b3e002b93debef9d67c0b0bd.svg similarity index 100% rename from snippets/chat_v3.0.0-alpha/images/fc212b55b3e002b93debef9d67c0b0bd.svg rename to snippets/chat_v3.0.0-alpha.1/images/fc212b55b3e002b93debef9d67c0b0bd.svg diff --git a/snippets/chat_v3.0.0-alpha/index.html b/snippets/chat_v3.0.0-alpha.1/index.html similarity index 88% rename from snippets/chat_v3.0.0-alpha/index.html rename to snippets/chat_v3.0.0-alpha.1/index.html index 9576537..cd8ed50 100644 --- a/snippets/chat_v3.0.0-alpha/index.html +++ b/snippets/chat_v3.0.0-alpha.1/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 diff --git a/snippets/chat_v3.0.0-alpha/scripts/464.js b/snippets/chat_v3.0.0-alpha.1/scripts/464.js similarity index 100% rename from snippets/chat_v3.0.0-alpha/scripts/464.js rename to snippets/chat_v3.0.0-alpha.1/scripts/464.js diff --git a/snippets/chat_v3.0.0-alpha/scripts/464.js.LICENSE.txt b/snippets/chat_v3.0.0-alpha.1/scripts/464.js.LICENSE.txt similarity index 100% rename from snippets/chat_v3.0.0-alpha/scripts/464.js.LICENSE.txt rename to snippets/chat_v3.0.0-alpha.1/scripts/464.js.LICENSE.txt diff --git a/snippets/chat_v3.0.0-alpha/scripts/464.js.map b/snippets/chat_v3.0.0-alpha.1/scripts/464.js.map similarity index 100% rename from snippets/chat_v3.0.0-alpha/scripts/464.js.map rename to snippets/chat_v3.0.0-alpha.1/scripts/464.js.map diff --git a/snippets/chat_v3.0.0-alpha/scripts/angular.min.js b/snippets/chat_v3.0.0-alpha.1/scripts/angular.min.js similarity index 100% rename from snippets/chat_v3.0.0-alpha/scripts/angular.min.js rename to snippets/chat_v3.0.0-alpha.1/scripts/angular.min.js diff --git a/snippets/chat_v3.0.0-alpha/scripts/app.js b/snippets/chat_v3.0.0-alpha.1/scripts/app.js similarity index 100% rename from snippets/chat_v3.0.0-alpha/scripts/app.js rename to snippets/chat_v3.0.0-alpha.1/scripts/app.js diff --git a/snippets/chat_v3.0.0-alpha/scripts/app.js.LICENSE.txt b/snippets/chat_v3.0.0-alpha.1/scripts/app.js.LICENSE.txt similarity index 100% rename from snippets/chat_v3.0.0-alpha/scripts/app.js.LICENSE.txt rename to snippets/chat_v3.0.0-alpha.1/scripts/app.js.LICENSE.txt diff --git a/snippets/chat_v3.0.0-alpha/scripts/chat.js b/snippets/chat_v3.0.0-alpha.1/scripts/chat.js similarity index 100% rename from snippets/chat_v3.0.0-alpha/scripts/chat.js rename to snippets/chat_v3.0.0-alpha.1/scripts/chat.js diff --git a/snippets/chat_v3.0.0-alpha/scripts/chat.js.map b/snippets/chat_v3.0.0-alpha.1/scripts/chat.js.map similarity index 100% rename from snippets/chat_v3.0.0-alpha/scripts/chat.js.map rename to snippets/chat_v3.0.0-alpha.1/scripts/chat.js.map diff --git a/snippets/chat_v3.0.0-alpha/scripts/jquery.min.js b/snippets/chat_v3.0.0-alpha.1/scripts/jquery.min.js similarity index 100% rename from snippets/chat_v3.0.0-alpha/scripts/jquery.min.js rename to snippets/chat_v3.0.0-alpha.1/scripts/jquery.min.js diff --git a/snippets/chat_v3.0.0-alpha/scripts/jquery.min.js.LICENSE.txt b/snippets/chat_v3.0.0-alpha.1/scripts/jquery.min.js.LICENSE.txt similarity index 100% rename from snippets/chat_v3.0.0-alpha/scripts/jquery.min.js.LICENSE.txt rename to snippets/chat_v3.0.0-alpha.1/scripts/jquery.min.js.LICENSE.txt diff --git a/snippets/chat_v3.0.0-alpha/scripts/mobile.js b/snippets/chat_v3.0.0-alpha.1/scripts/mobile.js similarity index 100% rename from snippets/chat_v3.0.0-alpha/scripts/mobile.js rename to snippets/chat_v3.0.0-alpha.1/scripts/mobile.js diff --git a/snippets/chat_v3.0.0-alpha/scripts/runtime.js b/snippets/chat_v3.0.0-alpha.1/scripts/runtime.js similarity index 100% rename from snippets/chat_v3.0.0-alpha/scripts/runtime.js rename to snippets/chat_v3.0.0-alpha.1/scripts/runtime.js diff --git a/snippets/chat_v3.0.0-alpha/scripts/runtime.js.map b/snippets/chat_v3.0.0-alpha.1/scripts/runtime.js.map similarity index 100% rename from snippets/chat_v3.0.0-alpha/scripts/runtime.js.map rename to snippets/chat_v3.0.0-alpha.1/scripts/runtime.js.map diff --git a/snippets/chat_v3.0.0-alpha/scripts/vendors-styles.js b/snippets/chat_v3.0.0-alpha.1/scripts/vendors-styles.js similarity index 100% rename from snippets/chat_v3.0.0-alpha/scripts/vendors-styles.js rename to snippets/chat_v3.0.0-alpha.1/scripts/vendors-styles.js diff --git a/snippets/chat_v3.0.0-alpha/styles/465.css b/snippets/chat_v3.0.0-alpha.1/styles/465.css similarity index 100% rename from snippets/chat_v3.0.0-alpha/styles/465.css rename to snippets/chat_v3.0.0-alpha.1/styles/465.css diff --git a/snippets/chat_v3.0.0-alpha/styles/465.css.map b/snippets/chat_v3.0.0-alpha.1/styles/465.css.map similarity index 100% rename from snippets/chat_v3.0.0-alpha/styles/465.css.map rename to snippets/chat_v3.0.0-alpha.1/styles/465.css.map diff --git a/snippets/chat_v3.0.0-alpha/styles/app.css b/snippets/chat_v3.0.0-alpha.1/styles/app.css similarity index 100% rename from snippets/chat_v3.0.0-alpha/styles/app.css rename to snippets/chat_v3.0.0-alpha.1/styles/app.css diff --git a/snippets/chat_v3.0.0-alpha/styles/app.css.map b/snippets/chat_v3.0.0-alpha.1/styles/app.css.map similarity index 100% rename from snippets/chat_v3.0.0-alpha/styles/app.css.map rename to snippets/chat_v3.0.0-alpha.1/styles/app.css.map diff --git a/snippets/chat_v3.0.0-alpha/styles/mobile.css b/snippets/chat_v3.0.0-alpha.1/styles/mobile.css similarity index 100% rename from snippets/chat_v3.0.0-alpha/styles/mobile.css rename to snippets/chat_v3.0.0-alpha.1/styles/mobile.css diff --git a/snippets/chat_v3.0.0-alpha/styles/mobile.css.map b/snippets/chat_v3.0.0-alpha.1/styles/mobile.css.map similarity index 100% rename from snippets/chat_v3.0.0-alpha/styles/mobile.css.map rename to snippets/chat_v3.0.0-alpha.1/styles/mobile.css.map diff --git a/snippets/chat_v3.0.0-alpha/styles/vendors-styles.css b/snippets/chat_v3.0.0-alpha.1/styles/vendors-styles.css similarity index 100% rename from snippets/chat_v3.0.0-alpha/styles/vendors-styles.css rename to snippets/chat_v3.0.0-alpha.1/styles/vendors-styles.css diff --git a/snippets/chat_v3.0.0-alpha/styles/vendors-styles.css.map b/snippets/chat_v3.0.0-alpha.1/styles/vendors-styles.css.map similarity index 100% rename from snippets/chat_v3.0.0-alpha/styles/vendors-styles.css.map rename to snippets/chat_v3.0.0-alpha.1/styles/vendors-styles.css.map diff --git a/snippets/chat_v3.0.0-alpha/templates/chat/index.tpl.html/index.tpl.html b/snippets/chat_v3.0.0-alpha.1/templates/chat/index.tpl.html/index.tpl.html similarity index 100% rename from snippets/chat_v3.0.0-alpha/templates/chat/index.tpl.html/index.tpl.html rename to snippets/chat_v3.0.0-alpha.1/templates/chat/index.tpl.html/index.tpl.html diff --git a/snippets/chat_v3.0.0-alpha/templates/closing/index.tpl.html/index.tpl.html b/snippets/chat_v3.0.0-alpha.1/templates/closing/index.tpl.html/index.tpl.html similarity index 100% rename from snippets/chat_v3.0.0-alpha/templates/closing/index.tpl.html/index.tpl.html rename to snippets/chat_v3.0.0-alpha.1/templates/closing/index.tpl.html/index.tpl.html diff --git a/snippets/chat_v3.0.0-alpha/templates/offline/index.tpl.html/index.tpl.html b/snippets/chat_v3.0.0-alpha.1/templates/offline/index.tpl.html/index.tpl.html similarity index 100% rename from snippets/chat_v3.0.0-alpha/templates/offline/index.tpl.html/index.tpl.html rename to snippets/chat_v3.0.0-alpha.1/templates/offline/index.tpl.html/index.tpl.html diff --git a/snippets/chat_v3.0.0-alpha/templates/online/index.tpl.html/index.tpl.html b/snippets/chat_v3.0.0-alpha.1/templates/online/index.tpl.html/index.tpl.html similarity index 100% rename from snippets/chat_v3.0.0-alpha/templates/online/index.tpl.html/index.tpl.html rename to snippets/chat_v3.0.0-alpha.1/templates/online/index.tpl.html/index.tpl.html diff --git a/snippets/chat_v3.0.0-alpha/templates/unmanaged/index.tpl.html/index.tpl.html b/snippets/chat_v3.0.0-alpha.1/templates/unmanaged/index.tpl.html/index.tpl.html similarity index 100% rename from snippets/chat_v3.0.0-alpha/templates/unmanaged/index.tpl.html/index.tpl.html rename to snippets/chat_v3.0.0-alpha.1/templates/unmanaged/index.tpl.html/index.tpl.html diff --git a/snippets/chat_v3.0.0-alpha/templates/waiting/index.tpl.html/index.tpl.html b/snippets/chat_v3.0.0-alpha.1/templates/waiting/index.tpl.html/index.tpl.html similarity index 100% rename from snippets/chat_v3.0.0-alpha/templates/waiting/index.tpl.html/index.tpl.html rename to snippets/chat_v3.0.0-alpha.1/templates/waiting/index.tpl.html/index.tpl.html